From ce9ca6788f0e2224f546ed720d7b78b64b0711a6 Mon Sep 17 00:00:00 2001 From: Kenny Kerr Date: Fri, 5 Jan 2024 12:14:58 -0600 Subject: [PATCH 01/10] windows code gen --- .../src/Windows/AI/MachineLearning/impl.rs | 8 +- .../src/Windows/AI/MachineLearning/mod.rs | 1407 +- .../ApplicationModel/Activation/impl.rs | 122 +- .../ApplicationModel/Activation/mod.rs | 2271 ++-- .../ApplicationModel/AppExtensions/mod.rs | 143 +- .../ApplicationModel/AppService/mod.rs | 218 +- .../Appointments/AppointmentsProvider/mod.rs | 73 +- .../Appointments/DataProvider/mod.rs | 238 +- .../ApplicationModel/Appointments/impl.rs | 2 +- .../ApplicationModel/Appointments/mod.rs | 626 +- .../ApplicationModel/Background/impl.rs | 18 +- .../ApplicationModel/Background/mod.rs | 1782 +-- .../ApplicationModel/Calls/Background/mod.rs | 122 +- .../ApplicationModel/Calls/Provider/mod.rs | 125 +- .../src/Windows/ApplicationModel/Calls/mod.rs | 762 +- .../src/Windows/ApplicationModel/Chat/impl.rs | 2 +- .../src/Windows/ApplicationModel/Chat/mod.rs | 941 +- .../CommunicationBlocking/mod.rs | 41 +- .../Contacts/DataProvider/mod.rs | 189 +- .../ApplicationModel/Contacts/Provider/mod.rs | 49 +- .../Windows/ApplicationModel/Contacts/impl.rs | 8 +- .../Windows/ApplicationModel/Contacts/mod.rs | 1472 +-- .../ConversationalAgent/mod.rs | 353 +- .../src/Windows/ApplicationModel/Core/impl.rs | 6 +- .../src/Windows/ApplicationModel/Core/mod.rs | 335 +- .../DataTransfer/DragDrop/Core/impl.rs | 2 +- .../DataTransfer/DragDrop/Core/mod.rs | 140 +- .../DataTransfer/ShareTarget/mod.rs | 60 +- .../ApplicationModel/DataTransfer/mod.rs | 820 +- .../Email/DataProvider/mod.rs | 552 +- .../src/Windows/ApplicationModel/Email/mod.rs | 1100 +- .../ExtendedExecution/Foreground/mod.rs | 38 +- .../ApplicationModel/ExtendedExecution/mod.rs | 38 +- .../ApplicationModel/Holographic/mod.rs | 28 +- .../ApplicationModel/LockScreen/mod.rs | 96 +- .../ApplicationModel/Payments/Provider/mod.rs | 94 +- .../Windows/ApplicationModel/Payments/mod.rs | 519 +- .../Preview/Holographic/mod.rs | 60 +- .../Preview/InkWorkspace/mod.rs | 28 +- .../ApplicationModel/Preview/Notes/mod.rs | 110 +- .../ApplicationModel/Resources/Core/mod.rs | 392 +- .../Resources/Management/mod.rs | 97 +- .../Windows/ApplicationModel/Resources/mod.rs | 85 +- .../ApplicationModel/Search/Core/mod.rs | 68 +- .../Windows/ApplicationModel/Search/impl.rs | 2 +- .../Windows/ApplicationModel/Search/mod.rs | 415 +- .../Store/LicenseManagement/mod.rs | 66 +- .../Store/Preview/InstallControl/mod.rs | 411 +- .../ApplicationModel/Store/Preview/mod.rs | 193 +- .../src/Windows/ApplicationModel/Store/mod.rs | 340 +- .../UserActivities/Core/mod.rs | 11 +- .../ApplicationModel/UserActivities/impl.rs | 2 +- .../ApplicationModel/UserActivities/mod.rs | 335 +- .../UserDataAccounts/Provider/impl.rs | 2 +- .../UserDataAccounts/Provider/mod.rs | 92 +- .../UserDataAccounts/SystemAccess/mod.rs | 166 +- .../ApplicationModel/UserDataAccounts/mod.rs | 183 +- .../UserDataTasks/DataProvider/mod.rs | 204 +- .../ApplicationModel/UserDataTasks/mod.rs | 246 +- .../ApplicationModel/VoiceCommands/mod.rs | 202 +- .../ApplicationModel/Wallet/System/mod.rs | 71 +- .../Windows/ApplicationModel/Wallet/mod.rs | 349 +- .../src/Windows/ApplicationModel/impl.rs | 12 +- .../src/Windows/ApplicationModel/mod.rs | 1009 +- .../libs/windows/src/Windows/Data/Html/mod.rs | 11 +- .../windows/src/Windows/Data/Json/impl.rs | 2 +- .../libs/windows/src/Windows/Data/Json/mod.rs | 251 +- .../libs/windows/src/Windows/Data/Pdf/mod.rs | 107 +- .../libs/windows/src/Windows/Data/Text/mod.rs | 329 +- .../windows/src/Windows/Data/Xml/Dom/impl.rs | 10 +- .../windows/src/Windows/Data/Xml/Dom/mod.rs | 1725 +-- .../windows/src/Windows/Data/Xml/Xsl/mod.rs | 49 +- .../src/Windows/Devices/Adc/Provider/impl.rs | 4 +- .../src/Windows/Devices/Adc/Provider/mod.rs | 24 +- .../windows/src/Windows/Devices/Adc/mod.rs | 64 +- .../src/Windows/Devices/Background/mod.rs | 34 +- .../Devices/Bluetooth/Advertisement/mod.rs | 348 +- .../Devices/Bluetooth/Background/mod.rs | 181 +- .../Bluetooth/GenericAttributeProfile/mod.rs | 945 +- .../Windows/Devices/Bluetooth/Rfcomm/mod.rs | 157 +- .../src/Windows/Devices/Bluetooth/mod.rs | 547 +- .../src/Windows/Devices/Custom/impl.rs | 2 +- .../windows/src/Windows/Devices/Custom/mod.rs | 86 +- .../src/Windows/Devices/Display/Core/mod.rs | 593 +- .../src/Windows/Devices/Display/mod.rs | 41 +- .../Windows/Devices/Enumeration/Pnp/mod.rs | 101 +- .../src/Windows/Devices/Enumeration/impl.rs | 2 +- .../src/Windows/Devices/Enumeration/mod.rs | 603 +- .../Devices/Geolocation/Geofencing/mod.rs | 89 +- .../Devices/Geolocation/Provider/mod.rs | 17 +- .../src/Windows/Devices/Geolocation/impl.rs | 2 +- .../src/Windows/Devices/Geolocation/mod.rs | 546 +- .../src/Windows/Devices/Gpio/Provider/impl.rs | 6 +- .../src/Windows/Devices/Gpio/Provider/mod.rs | 64 +- .../windows/src/Windows/Devices/Gpio/mod.rs | 145 +- .../src/Windows/Devices/Haptics/mod.rs | 84 +- .../Devices/HumanInterfaceDevice/mod.rs | 206 +- .../src/Windows/Devices/I2c/Provider/impl.rs | 6 +- .../src/Windows/Devices/I2c/Provider/mod.rs | 57 +- .../windows/src/Windows/Devices/I2c/impl.rs | 2 +- .../windows/src/Windows/Devices/I2c/mod.rs | 93 +- .../src/Windows/Devices/Input/Preview/mod.rs | 181 +- .../windows/src/Windows/Devices/Input/mod.rs | 319 +- .../Windows/Devices/Lights/Effects/impl.rs | 2 +- .../src/Windows/Devices/Lights/Effects/mod.rs | 282 +- .../windows/src/Windows/Devices/Lights/mod.rs | 115 +- .../windows/src/Windows/Devices/Midi/impl.rs | 4 +- .../windows/src/Windows/Devices/Midi/mod.rs | 601 +- .../Devices/PointOfService/Provider/mod.rs | 523 +- .../Windows/Devices/PointOfService/impl.rs | 12 +- .../src/Windows/Devices/PointOfService/mod.rs | 2142 +-- .../src/Windows/Devices/Portable/mod.rs | 22 +- .../windows/src/Windows/Devices/Power/mod.rs | 45 +- .../Devices/Printers/Extensions/mod.rs | 162 +- .../src/Windows/Devices/Printers/mod.rs | 401 +- .../src/Windows/Devices/Pwm/Provider/impl.rs | 4 +- .../src/Windows/Devices/Pwm/Provider/mod.rs | 24 +- .../windows/src/Windows/Devices/Pwm/mod.rs | 75 +- .../windows/src/Windows/Devices/Radios/mod.rs | 28 +- .../src/Windows/Devices/Scanners/impl.rs | 4 +- .../src/Windows/Devices/Scanners/mod.rs | 287 +- .../src/Windows/Devices/Sensors/Custom/mod.rs | 92 +- .../src/Windows/Devices/Sensors/impl.rs | 4 +- .../src/Windows/Devices/Sensors/mod.rs | 2251 +--- .../Devices/SerialCommunication/mod.rs | 66 +- .../src/Windows/Devices/SmartCards/mod.rs | 971 +- .../windows/src/Windows/Devices/Sms/impl.rs | 10 +- .../windows/src/Windows/Devices/Sms/mod.rs | 834 +- .../src/Windows/Devices/Spi/Provider/impl.rs | 6 +- .../src/Windows/Devices/Spi/Provider/mod.rs | 68 +- .../windows/src/Windows/Devices/Spi/impl.rs | 2 +- .../windows/src/Windows/Devices/Spi/mod.rs | 110 +- .../windows/src/Windows/Devices/Usb/mod.rs | 468 +- .../windows/src/Windows/Devices/WiFi/mod.rs | 198 +- .../Devices/WiFiDirect/Services/mod.rs | 199 +- .../src/Windows/Devices/WiFiDirect/mod.rs | 272 +- .../libs/windows/src/Windows/Devices/impl.rs | 2 +- .../libs/windows/src/Windows/Devices/mod.rs | 75 +- .../Windows/Embedded/DeviceLockdown/mod.rs | 28 +- .../Windows/Foundation/Collections/impl.rs | 24 +- .../src/Windows/Foundation/Collections/mod.rs | 294 +- .../Windows/Foundation/Diagnostics/impl.rs | 10 +- .../src/Windows/Foundation/Diagnostics/mod.rs | 477 +- .../src/Windows/Foundation/Metadata/mod.rs | 11 +- .../windows/src/Windows/Foundation/impl.rs | 28 +- .../windows/src/Windows/Foundation/mod.rs | 646 +- .../src/Windows/Gaming/Input/Custom/impl.rs | 12 +- .../src/Windows/Gaming/Input/Custom/mod.rs | 250 +- .../Gaming/Input/ForceFeedback/impl.rs | 2 +- .../Windows/Gaming/Input/ForceFeedback/mod.rs | 153 +- .../src/Windows/Gaming/Input/Preview/mod.rs | 19 +- .../windows/src/Windows/Gaming/Input/impl.rs | 4 +- .../windows/src/Windows/Gaming/Input/mod.rs | 449 +- .../Gaming/Preview/GamesEnumeration/impl.rs | 2 +- .../Gaming/Preview/GamesEnumeration/mod.rs | 170 +- .../libs/windows/src/Windows/Gaming/UI/mod.rs | 100 +- .../Windows/Gaming/XboxLive/Storage/mod.rs | 218 +- .../Windows/Globalization/Collation/mod.rs | 63 +- .../Globalization/DateTimeFormatting/mod.rs | 68 +- .../src/Windows/Globalization/Fonts/mod.rs | 45 +- .../Globalization/NumberFormatting/impl.rs | 16 +- .../Globalization/NumberFormatting/mod.rs | 560 +- .../PhoneNumberFormatting/mod.rs | 71 +- .../windows/src/Windows/Globalization/mod.rs | 390 +- .../src/Windows/Graphics/Capture/mod.rs | 209 +- .../Graphics/DirectX/Direct3D11/impl.rs | 4 +- .../Graphics/DirectX/Direct3D11/mod.rs | 32 +- .../src/Windows/Graphics/Display/Core/mod.rs | 58 +- .../src/Windows/Graphics/Display/mod.rs | 310 +- .../src/Windows/Graphics/Effects/impl.rs | 4 +- .../src/Windows/Graphics/Effects/mod.rs | 26 +- .../src/Windows/Graphics/Holographic/mod.rs | 662 +- .../src/Windows/Graphics/Imaging/impl.rs | 6 +- .../src/Windows/Graphics/Imaging/mod.rs | 518 +- .../Graphics/Printing/OptionDetails/impl.rs | 10 +- .../Graphics/Printing/OptionDetails/mod.rs | 747 +- .../Graphics/Printing/PrintSupport/mod.rs | 247 +- .../Graphics/Printing/PrintTicket/mod.rs | 136 +- .../Windows/Graphics/Printing/Workflow/mod.rs | 625 +- .../src/Windows/Graphics/Printing/impl.rs | 8 +- .../src/Windows/Graphics/Printing/mod.rs | 460 +- .../src/Windows/Graphics/Printing3D/mod.rs | 662 +- .../libs/windows/src/Windows/Graphics/impl.rs | 2 +- .../libs/windows/src/Windows/Graphics/mod.rs | 12 +- .../src/Windows/Management/Core/mod.rs | 28 +- .../Management/Deployment/Preview/mod.rs | 28 +- .../src/Windows/Management/Deployment/mod.rs | 765 +- .../src/Windows/Management/Policies/mod.rs | 28 +- .../src/Windows/Management/Update/mod.rs | 336 +- .../src/Windows/Management/Workplace/mod.rs | 33 +- .../windows/src/Windows/Management/mod.rs | 49 +- .../src/Windows/Media/AppBroadcasting/mod.rs | 79 +- .../src/Windows/Media/AppRecording/mod.rs | 117 +- .../windows/src/Windows/Media/Audio/impl.rs | 8 +- .../windows/src/Windows/Media/Audio/mod.rs | 1610 +-- .../src/Windows/Media/Capture/Core/mod.rs | 47 +- .../src/Windows/Media/Capture/Frames/mod.rs | 494 +- .../windows/src/Windows/Media/Capture/mod.rs | 2105 +-- .../windows/src/Windows/Media/Casting/mod.rs | 134 +- .../src/Windows/Media/ClosedCaptioning/mod.rs | 22 +- .../Windows/Media/ContentRestrictions/mod.rs | 81 +- .../windows/src/Windows/Media/Control/mod.rs | 198 +- .../src/Windows/Media/Core/Preview/mod.rs | 11 +- .../windows/src/Windows/Media/Core/impl.rs | 14 +- .../windows/src/Windows/Media/Core/mod.rs | 2181 +-- .../src/Windows/Media/Devices/Core/mod.rs | 341 +- .../windows/src/Windows/Media/Devices/impl.rs | 4 +- .../windows/src/Windows/Media/Devices/mod.rs | 1220 +- .../src/Windows/Media/DialProtocol/mod.rs | 190 +- .../windows/src/Windows/Media/Editing/mod.rs | 221 +- .../windows/src/Windows/Media/Effects/impl.rs | 12 +- .../windows/src/Windows/Media/Effects/mod.rs | 410 +- .../src/Windows/Media/FaceAnalysis/mod.rs | 73 +- .../windows/src/Windows/Media/Import/mod.rs | 283 +- .../src/Windows/Media/MediaProperties/impl.rs | 2 +- .../src/Windows/Media/MediaProperties/mod.rs | 650 +- .../windows/src/Windows/Media/Miracast/mod.rs | 314 +- .../libs/windows/src/Windows/Media/Ocr/mod.rs | 79 +- .../windows/src/Windows/Media/PlayTo/mod.rs | 412 +- .../src/Windows/Media/Playback/impl.rs | 4 +- .../windows/src/Windows/Media/Playback/mod.rs | 1323 +- .../src/Windows/Media/Playlists/mod.rs | 40 +- .../Media/Protection/PlayReady/impl.rs | 46 +- .../Windows/Media/Protection/PlayReady/mod.rs | 1417 +- .../src/Windows/Media/Protection/impl.rs | 2 +- .../src/Windows/Media/Protection/mod.rs | 244 +- .../Windows/Media/SpeechRecognition/impl.rs | 2 +- .../Windows/Media/SpeechRecognition/mod.rs | 511 +- .../src/Windows/Media/SpeechSynthesis/mod.rs | 202 +- .../Windows/Media/Streaming/Adaptive/mod.rs | 505 +- .../src/Windows/Media/Transcoding/mod.rs | 77 +- crates/libs/windows/src/Windows/Media/impl.rs | 8 +- crates/libs/windows/src/Windows/Media/mod.rs | 749 +- .../Networking/BackgroundTransfer/impl.rs | 8 +- .../Networking/BackgroundTransfer/mod.rs | 732 +- .../Windows/Networking/Connectivity/mod.rs | 666 +- .../Networking/NetworkOperators/mod.rs | 1814 +-- .../src/Windows/Networking/Proximity/mod.rs | 225 +- .../Networking/PushNotifications/mod.rs | 180 +- .../Networking/ServiceDiscovery/Dnssd/mod.rs | 89 +- .../src/Windows/Networking/Sockets/impl.rs | 14 +- .../src/Windows/Networking/Sockets/mod.rs | 1159 +- .../src/Windows/Networking/Vpn/impl.rs | 22 +- .../windows/src/Windows/Networking/Vpn/mod.rs | 1205 +- .../src/Windows/Networking/XboxLive/mod.rs | 205 +- .../windows/src/Windows/Networking/mod.rs | 71 +- .../Windows/Perception/Automation/Core/mod.rs | 15 +- .../src/Windows/Perception/People/mod.rs | 96 +- .../Windows/Perception/Spatial/Preview/mod.rs | 39 +- .../Perception/Spatial/Surfaces/mod.rs | 122 +- .../src/Windows/Perception/Spatial/mod.rs | 471 +- .../windows/src/Windows/Perception/mod.rs | 52 +- .../src/Windows/Phone/ApplicationModel/mod.rs | 11 +- .../Windows/Phone/Devices/Notification/mod.rs | 28 +- .../src/Windows/Phone/Devices/Power/mod.rs | 28 +- .../Phone/Management/Deployment/mod.rs | 101 +- .../src/Windows/Phone/Media/Devices/mod.rs | 28 +- .../Phone/Notification/Management/impl.rs | 2 +- .../Phone/Notification/Management/mod.rs | 567 +- .../PersonalInformation/Provisioning/mod.rs | 47 +- .../Windows/Phone/PersonalInformation/impl.rs | 4 +- .../Windows/Phone/PersonalInformation/mod.rs | 250 +- .../src/Windows/Phone/StartScreen/impl.rs | 2 +- .../src/Windows/Phone/StartScreen/mod.rs | 40 +- .../src/Windows/Phone/System/Power/mod.rs | 22 +- .../src/Windows/Phone/System/Profile/mod.rs | 18 +- .../UserProfile/GameServices/Core/mod.rs | 43 +- .../windows/src/Windows/Phone/System/mod.rs | 22 +- .../windows/src/Windows/Phone/UI/Input/mod.rs | 56 +- .../Authentication/Identity/Core/mod.rs | 104 +- .../Security/Authentication/Identity/mod.rs | 45 +- .../Security/Authentication/OnlineId/mod.rs | 183 +- .../Security/Authentication/Web/Core/mod.rs | 243 +- .../Authentication/Web/Provider/impl.rs | 14 +- .../Authentication/Web/Provider/mod.rs | 480 +- .../Security/Authentication/Web/mod.rs | 39 +- .../Authorization/AppCapabilityAccess/mod.rs | 68 +- .../Windows/Security/Credentials/UI/mod.rs | 60 +- .../src/Windows/Security/Credentials/impl.rs | 2 +- .../src/Windows/Security/Credentials/mod.rs | 288 +- .../Security/Cryptography/Certificates/mod.rs | 701 +- .../Windows/Security/Cryptography/Core/mod.rs | 524 +- .../Cryptography/DataProtection/mod.rs | 48 +- .../src/Windows/Security/Cryptography/mod.rs | 33 +- .../Windows/Security/DataProtection/mod.rs | 95 +- .../Windows/Security/EnterpriseData/mod.rs | 503 +- .../ExchangeActiveSyncProvisioning/mod.rs | 79 +- .../src/Windows/Security/Isolation/mod.rs | 501 +- .../src/Windows/Services/Maps/Guidance/mod.rs | 263 +- .../Windows/Services/Maps/LocalSearch/mod.rs | 118 +- .../Windows/Services/Maps/OfflineMaps/mod.rs | 62 +- .../windows/src/Windows/Services/Maps/mod.rs | 512 +- .../windows/src/Windows/Services/Store/mod.rs | 780 +- .../Windows/Services/TargetedContent/mod.rs | 262 +- .../src/Windows/Storage/AccessCache/impl.rs | 2 +- .../src/Windows/Storage/AccessCache/mod.rs | 212 +- .../src/Windows/Storage/BulkAccess/impl.rs | 2 +- .../src/Windows/Storage/BulkAccess/mod.rs | 303 +- .../src/Windows/Storage/Compression/mod.rs | 96 +- .../Windows/Storage/FileProperties/impl.rs | 2 +- .../src/Windows/Storage/FileProperties/mod.rs | 319 +- .../Windows/Storage/Pickers/Provider/mod.rs | 175 +- .../src/Windows/Storage/Pickers/mod.rs | 268 +- .../src/Windows/Storage/Provider/impl.rs | 16 +- .../src/Windows/Storage/Provider/mod.rs | 539 +- .../src/Windows/Storage/Search/impl.rs | 6 +- .../windows/src/Windows/Storage/Search/mod.rs | 389 +- .../src/Windows/Storage/Streams/impl.rs | 22 +- .../src/Windows/Storage/Streams/mod.rs | 587 +- .../libs/windows/src/Windows/Storage/impl.rs | 22 +- .../libs/windows/src/Windows/Storage/mod.rs | 1509 +-- .../System/Diagnostics/DevicePortal/mod.rs | 100 +- .../System/Diagnostics/Telemetry/mod.rs | 45 +- .../System/Diagnostics/TraceReporting/mod.rs | 49 +- .../src/Windows/System/Diagnostics/mod.rs | 321 +- .../windows/src/Windows/System/Display/mod.rs | 17 +- .../Implementation/FileExplorer/impl.rs | 6 +- .../System/Implementation/FileExplorer/mod.rs | 64 +- .../src/Windows/System/Inventory/mod.rs | 32 +- .../windows/src/Windows/System/Power/mod.rs | 47 +- .../System/Profile/SystemManufacturers/mod.rs | 67 +- .../windows/src/Windows/System/Profile/mod.rs | 247 +- .../Windows/System/RemoteDesktop/Input/mod.rs | 44 +- .../System/RemoteDesktop/Provider/mod.rs | 116 +- .../src/Windows/System/RemoteDesktop/mod.rs | 11 +- .../src/Windows/System/RemoteSystems/impl.rs | 2 +- .../src/Windows/System/RemoteSystems/mod.rs | 1039 +- .../src/Windows/System/Threading/Core/mod.rs | 68 +- .../src/Windows/System/Threading/mod.rs | 79 +- .../windows/src/Windows/System/Update/mod.rs | 45 +- .../src/Windows/System/UserProfile/mod.rs | 293 +- .../libs/windows/src/Windows/System/impl.rs | 2 +- crates/libs/windows/src/Windows/System/mod.rs | 1231 +- .../src/Windows/UI/Accessibility/mod.rs | 34 +- .../src/Windows/UI/ApplicationSettings/mod.rs | 368 +- .../src/Windows/UI/Composition/Core/mod.rs | 21 +- .../src/Windows/UI/Composition/Desktop/mod.rs | 78 +- .../Windows/UI/Composition/Diagnostics/mod.rs | 61 +- .../src/Windows/UI/Composition/Effects/mod.rs | 46 +- .../UI/Composition/Interactions/impl.rs | 4 +- .../UI/Composition/Interactions/mod.rs | 1284 +- .../src/Windows/UI/Composition/Scenes/mod.rs | 1574 +-- .../src/Windows/UI/Composition/impl.rs | 14 +- .../windows/src/Windows/UI/Composition/mod.rs | 10926 ++++++---------- .../Windows/UI/Core/AnimationMetrics/impl.rs | 2 +- .../Windows/UI/Core/AnimationMetrics/mod.rs | 114 +- .../src/Windows/UI/Core/Preview/mod.rs | 73 +- .../libs/windows/src/Windows/UI/Core/impl.rs | 16 +- .../libs/windows/src/Windows/UI/Core/mod.rs | 1086 +- .../windows/src/Windows/UI/Input/Core/mod.rs | 41 +- .../Windows/UI/Input/Inking/Analysis/impl.rs | 4 +- .../Windows/UI/Input/Inking/Analysis/mod.rs | 338 +- .../src/Windows/UI/Input/Inking/Core/mod.rs | 141 +- .../Windows/UI/Input/Inking/Preview/mod.rs | 42 +- .../src/Windows/UI/Input/Inking/impl.rs | 10 +- .../src/Windows/UI/Input/Inking/mod.rs | 910 +- .../Windows/UI/Input/Preview/Injection/mod.rs | 164 +- .../src/Windows/UI/Input/Preview/mod.rs | 11 +- .../src/Windows/UI/Input/Spatial/mod.rs | 728 +- .../libs/windows/src/Windows/UI/Input/impl.rs | 2 +- .../libs/windows/src/Windows/UI/Input/mod.rs | 1103 +- .../UI/Notifications/Management/mod.rs | 28 +- .../Windows/UI/Notifications/Preview/mod.rs | 11 +- .../src/Windows/UI/Notifications/impl.rs | 2 +- .../src/Windows/UI/Notifications/mod.rs | 1049 +- .../windows/src/Windows/UI/Popups/impl.rs | 2 +- .../libs/windows/src/Windows/UI/Popups/mod.rs | 100 +- .../libs/windows/src/Windows/UI/Shell/impl.rs | 4 +- .../libs/windows/src/Windows/UI/Shell/mod.rs | 404 +- .../windows/src/Windows/UI/StartScreen/mod.rs | 321 +- .../windows/src/Windows/UI/Text/Core/mod.rs | 305 +- .../libs/windows/src/Windows/UI/Text/impl.rs | 10 +- .../libs/windows/src/Windows/UI/Text/mod.rs | 458 +- .../src/Windows/UI/UIAutomation/Core/impl.rs | 4 +- .../src/Windows/UI/UIAutomation/Core/mod.rs | 189 +- .../src/Windows/UI/UIAutomation/mod.rs | 68 +- .../src/Windows/UI/ViewManagement/Core/mod.rs | 309 +- .../src/Windows/UI/ViewManagement/mod.rs | 813 +- .../windows/src/Windows/UI/WebUI/Core/impl.rs | 4 +- .../windows/src/Windows/UI/WebUI/Core/mod.rs | 224 +- .../libs/windows/src/Windows/UI/WebUI/impl.rs | 6 +- .../libs/windows/src/Windows/UI/WebUI/mod.rs | 1991 +-- .../UI/WindowManagement/Preview/mod.rs | 28 +- .../src/Windows/UI/WindowManagement/mod.rs | 444 +- crates/libs/windows/src/Windows/UI/mod.rs | 101 +- .../windows/src/Windows/Web/AtomPub/mod.rs | 205 +- .../src/Windows/Web/Http/Diagnostics/mod.rs | 113 +- .../src/Windows/Web/Http/Filters/impl.rs | 2 +- .../src/Windows/Web/Http/Filters/mod.rs | 145 +- .../src/Windows/Web/Http/Headers/mod.rs | 1612 +-- .../libs/windows/src/Windows/Web/Http/impl.rs | 2 +- .../libs/windows/src/Windows/Web/Http/mod.rs | 692 +- .../src/Windows/Web/Syndication/impl.rs | 6 +- .../src/Windows/Web/Syndication/mod.rs | 616 +- .../windows/src/Windows/Web/UI/Interop/mod.rs | 158 +- .../libs/windows/src/Windows/Web/UI/impl.rs | 4 +- crates/libs/windows/src/Windows/Web/UI/mod.rs | 295 +- crates/libs/windows/src/Windows/Web/impl.rs | 2 +- crates/libs/windows/src/Windows/Web/mod.rs | 23 +- .../Win32/AI/MachineLearning/DirectML/impl.rs | 24 +- .../Win32/AI/MachineLearning/DirectML/mod.rs | 190 +- .../Win32/AI/MachineLearning/WinML/impl.rs | 32 +- .../Win32/AI/MachineLearning/WinML/mod.rs | 192 +- .../src/Windows/Win32/Data/HtmlHelp/impl.rs | 12 +- .../src/Windows/Win32/Data/HtmlHelp/mod.rs | 82 +- .../src/Windows/Win32/Data/Xml/MsXml/impl.rs | 172 +- .../src/Windows/Win32/Data/Xml/MsXml/mod.rs | 1742 +-- .../Windows/Win32/Data/Xml/XmlLite/impl.rs | 8 +- .../src/Windows/Win32/Data/Xml/XmlLite/mod.rs | 48 +- .../Win32/Devices/DeviceAccess/impl.rs | 6 +- .../Windows/Win32/Devices/DeviceAccess/mod.rs | 38 +- .../src/Windows/Win32/Devices/Display/impl.rs | 4 +- .../src/Windows/Win32/Devices/Display/mod.rs | 24 +- .../Win32/Devices/Enumeration/Pnp/impl.rs | 52 +- .../Win32/Devices/Enumeration/Pnp/mod.rs | 372 +- .../src/Windows/Win32/Devices/Fax/impl.rs | 124 +- .../src/Windows/Win32/Devices/Fax/mod.rs | 1322 +- .../Win32/Devices/FunctionDiscovery/impl.rs | 34 +- .../Win32/Devices/FunctionDiscovery/mod.rs | 218 +- .../Windows/Win32/Devices/Geolocation/impl.rs | 28 +- .../Windows/Win32/Devices/Geolocation/mod.rs | 234 +- .../Devices/HumanInterfaceDevice/impl.rs | 40 +- .../Win32/Devices/HumanInterfaceDevice/mod.rs | 240 +- .../Win32/Devices/ImageAcquisition/impl.rs | 62 +- .../Win32/Devices/ImageAcquisition/mod.rs | 372 +- .../Win32/Devices/PortableDevices/impl.rs | 68 +- .../Win32/Devices/PortableDevices/mod.rs | 428 +- .../src/Windows/Win32/Devices/Sensors/impl.rs | 14 +- .../src/Windows/Win32/Devices/Sensors/mod.rs | 84 +- .../src/Windows/Win32/Devices/Tapi/impl.rs | 238 +- .../src/Windows/Win32/Devices/Tapi/mod.rs | 2306 ++-- .../Devices/WebServicesOnDevices/impl.rs | 62 +- .../Win32/Devices/WebServicesOnDevices/mod.rs | 372 +- .../windows/src/Windows/Win32/Gaming/impl.rs | 16 +- .../windows/src/Windows/Win32/Gaming/mod.rs | 96 +- .../src/Windows/Win32/Globalization/impl.rs | 54 +- .../src/Windows/Win32/Globalization/mod.rs | 324 +- .../Graphics/CompositionSwapchain/impl.rs | 18 +- .../Graphics/CompositionSwapchain/mod.rs | 108 +- .../src/Windows/Win32/Graphics/DXCore/impl.rs | 6 +- .../src/Windows/Win32/Graphics/DXCore/mod.rs | 48 +- .../Win32/Graphics/Direct2D/Common/impl.rs | 2 +- .../Win32/Graphics/Direct2D/Common/mod.rs | 12 +- .../Windows/Win32/Graphics/Direct2D/impl.rs | 222 +- .../Windows/Win32/Graphics/Direct2D/mod.rs | 1346 +- .../Win32/Graphics/Direct3D/Dxc/impl.rs | 52 +- .../Win32/Graphics/Direct3D/Dxc/mod.rs | 324 +- .../Windows/Win32/Graphics/Direct3D/impl.rs | 4 +- .../Windows/Win32/Graphics/Direct3D/mod.rs | 31 +- .../Windows/Win32/Graphics/Direct3D10/impl.rs | 70 +- .../Windows/Win32/Graphics/Direct3D10/mod.rs | 586 +- .../Windows/Win32/Graphics/Direct3D11/impl.rs | 174 +- .../Windows/Win32/Graphics/Direct3D11/mod.rs | 1115 +- .../Win32/Graphics/Direct3D11on12/impl.rs | 6 +- .../Win32/Graphics/Direct3D11on12/mod.rs | 48 +- .../Windows/Win32/Graphics/Direct3D12/impl.rs | 302 +- .../Windows/Win32/Graphics/Direct3D12/mod.rs | 1993 +-- .../Windows/Win32/Graphics/Direct3D9/impl.rs | 40 +- .../Windows/Win32/Graphics/Direct3D9/mod.rs | 240 +- .../Win32/Graphics/Direct3D9on12/impl.rs | 2 +- .../Win32/Graphics/Direct3D9on12/mod.rs | 12 +- .../Win32/Graphics/DirectComposition/impl.rs | 90 +- .../Win32/Graphics/DirectComposition/mod.rs | 550 +- .../Windows/Win32/Graphics/DirectDraw/impl.rs | 36 +- .../Windows/Win32/Graphics/DirectDraw/mod.rs | 216 +- .../Win32/Graphics/DirectManipulation/impl.rs | 36 +- .../Win32/Graphics/DirectManipulation/mod.rs | 252 +- .../Win32/Graphics/DirectWrite/impl.rs | 180 +- .../Windows/Win32/Graphics/DirectWrite/mod.rs | 1082 +- .../src/Windows/Win32/Graphics/Dxgi/impl.rs | 94 +- .../src/Windows/Win32/Graphics/Dxgi/mod.rs | 714 +- .../Windows/Win32/Graphics/GdiPlus/impl.rs | 2 +- .../src/Windows/Win32/Graphics/GdiPlus/mod.rs | 19 +- .../Win32/Graphics/Imaging/D2D/impl.rs | 4 +- .../Windows/Win32/Graphics/Imaging/D2D/mod.rs | 24 +- .../Windows/Win32/Graphics/Imaging/impl.rs | 102 +- .../src/Windows/Win32/Graphics/Imaging/mod.rs | 632 +- .../Windows/Win32/Graphics/Printing/impl.rs | 200 +- .../Windows/Win32/Graphics/Printing/mod.rs | 1550 +-- .../src/Windows/Win32/Media/Audio/Apo/impl.rs | 34 +- .../src/Windows/Win32/Media/Audio/Apo/mod.rs | 204 +- .../Win32/Media/Audio/DirectMusic/impl.rs | 26 +- .../Win32/Media/Audio/DirectMusic/mod.rs | 156 +- .../Win32/Media/Audio/DirectSound/impl.rs | 44 +- .../Win32/Media/Audio/DirectSound/mod.rs | 264 +- .../Win32/Media/Audio/Endpoints/impl.rs | 22 +- .../Win32/Media/Audio/Endpoints/mod.rs | 132 +- .../Windows/Win32/Media/Audio/XAudio2/impl.rs | 10 +- .../Windows/Win32/Media/Audio/XAudio2/mod.rs | 108 +- .../src/Windows/Win32/Media/Audio/impl.rs | 152 +- .../src/Windows/Win32/Media/Audio/mod.rs | 932 +- .../Windows/Win32/Media/DeviceManager/impl.rs | 116 +- .../Windows/Win32/Media/DeviceManager/mod.rs | 696 +- .../Windows/Win32/Media/DirectShow/Tv/impl.rs | 574 +- .../Windows/Win32/Media/DirectShow/Tv/mod.rs | 4618 ++----- .../Win32/Media/DirectShow/Xml/impl.rs | 2 +- .../Windows/Win32/Media/DirectShow/Xml/mod.rs | 12 +- .../Windows/Win32/Media/DirectShow/impl.rs | 568 +- .../src/Windows/Win32/Media/DirectShow/mod.rs | 3708 ++---- .../Win32/Media/DxMediaObjects/impl.rs | 12 +- .../Windows/Win32/Media/DxMediaObjects/mod.rs | 72 +- .../Win32/Media/KernelStreaming/impl.rs | 50 +- .../Win32/Media/KernelStreaming/mod.rs | 300 +- .../Media/LibrarySharingServices/impl.rs | 10 +- .../Win32/Media/LibrarySharingServices/mod.rs | 110 +- .../Win32/Media/MediaFoundation/impl.rs | 730 +- .../Win32/Media/MediaFoundation/mod.rs | 4784 ++----- .../Windows/Win32/Media/MediaPlayer/impl.rs | 214 +- .../Windows/Win32/Media/MediaPlayer/mod.rs | 1828 +-- .../Windows/Win32/Media/Multimedia/impl.rs | 12 +- .../src/Windows/Win32/Media/Multimedia/mod.rs | 82 +- .../Win32/Media/PictureAcquisition/impl.rs | 22 +- .../Win32/Media/PictureAcquisition/mod.rs | 132 +- .../src/Windows/Win32/Media/Speech/impl.rs | 194 +- .../src/Windows/Win32/Media/Speech/mod.rs | 1749 +-- .../Win32/Media/WindowsMediaFormat/impl.rs | 212 +- .../Win32/Media/WindowsMediaFormat/mod.rs | 1274 +- .../windows/src/Windows/Win32/Media/impl.rs | 6 +- .../windows/src/Windows/Win32/Media/mod.rs | 36 +- .../NetworkManagement/MobileBroadband/impl.rs | 84 +- .../NetworkManagement/MobileBroadband/mod.rs | 512 +- .../NetworkManagement/NetManagement/impl.rs | 50 +- .../NetworkManagement/NetManagement/mod.rs | 300 +- .../NetworkDiagnosticsFramework/impl.rs | 10 +- .../NetworkDiagnosticsFramework/mod.rs | 62 +- .../NetworkPolicyServer/impl.rs | 14 +- .../NetworkPolicyServer/mod.rs | 154 +- .../Win32/NetworkManagement/WiFi/impl.rs | 20 +- .../Win32/NetworkManagement/WiFi/mod.rs | 120 +- .../WindowsConnectNow/impl.rs | 4 +- .../WindowsConnectNow/mod.rs | 24 +- .../NetworkManagement/WindowsFirewall/impl.rs | 88 +- .../NetworkManagement/WindowsFirewall/mod.rs | 868 +- .../Win32/Networking/ActiveDirectory/impl.rs | 156 +- .../Win32/Networking/ActiveDirectory/mod.rs | 1526 +-- .../impl.rs | 74 +- .../mod.rs | 464 +- .../Win32/Networking/Clustering/impl.rs | 114 +- .../Win32/Networking/Clustering/mod.rs | 1084 +- .../Networking/NetworkListManager/impl.rs | 28 +- .../Networking/NetworkListManager/mod.rs | 238 +- .../RemoteDifferentialCompression/impl.rs | 34 +- .../RemoteDifferentialCompression/mod.rs | 204 +- .../Windows/Win32/Networking/WinHttp/impl.rs | 4 +- .../Windows/Win32/Networking/WinHttp/mod.rs | 34 +- .../Windows/Win32/Networking/WinInet/impl.rs | 10 +- .../Windows/Win32/Networking/WinInet/mod.rs | 60 +- .../Networking/WindowsWebServices/impl.rs | 2 +- .../Networking/WindowsWebServices/mod.rs | 12 +- .../Authentication/Identity/Provider/impl.rs | 28 +- .../Authentication/Identity/Provider/mod.rs | 168 +- .../Security/Authentication/Identity/impl.rs | 2 +- .../Security/Authentication/Identity/mod.rs | 12 +- .../Win32/Security/Authorization/UI/impl.rs | 14 +- .../Win32/Security/Authorization/UI/mod.rs | 84 +- .../Win32/Security/Authorization/impl.rs | 68 +- .../Win32/Security/Authorization/mod.rs | 748 +- .../Security/ConfigurationSnapin/impl.rs | 4 +- .../Win32/Security/ConfigurationSnapin/mod.rs | 24 +- .../Cryptography/Certificates/impl.rs | 294 +- .../Security/Cryptography/Certificates/mod.rs | 3178 ++--- .../Win32/Security/Cryptography/impl.rs | 12 +- .../Win32/Security/Cryptography/mod.rs | 132 +- .../Win32/Security/EnterpriseData/impl.rs | 6 +- .../Win32/Security/EnterpriseData/mod.rs | 62 +- .../ExtensibleAuthenticationProtocol/impl.rs | 12 +- .../ExtensibleAuthenticationProtocol/mod.rs | 72 +- .../Windows/Win32/Security/Isolation/impl.rs | 2 +- .../Windows/Win32/Security/Isolation/mod.rs | 12 +- .../src/Windows/Win32/Security/Tpm/impl.rs | 8 +- .../src/Windows/Win32/Security/Tpm/mod.rs | 48 +- .../Win32/Storage/DataDeduplication/impl.rs | 12 +- .../Win32/Storage/DataDeduplication/mod.rs | 72 +- .../Win32/Storage/EnhancedStorage/impl.rs | 12 +- .../Win32/Storage/EnhancedStorage/mod.rs | 72 +- .../Windows/Win32/Storage/FileHistory/impl.rs | 8 +- .../Windows/Win32/Storage/FileHistory/mod.rs | 48 +- .../Storage/FileServerResourceManager/impl.rs | 122 +- .../Storage/FileServerResourceManager/mod.rs | 1340 +- .../Windows/Win32/Storage/FileSystem/impl.rs | 10 +- .../Windows/Win32/Storage/FileSystem/mod.rs | 70 +- .../src/Windows/Win32/Storage/Imapi/impl.rs | 116 +- .../src/Windows/Win32/Storage/Imapi/mod.rs | 1166 +- .../Windows/Win32/Storage/IndexServer/impl.rs | 4 +- .../Windows/Win32/Storage/IndexServer/mod.rs | 24 +- .../Win32/Storage/OfflineFiles/impl.rs | 70 +- .../Windows/Win32/Storage/OfflineFiles/mod.rs | 420 +- .../Win32/Storage/Packaging/Appx/impl.rs | 172 +- .../Win32/Storage/Packaging/Appx/mod.rs | 1032 +- .../Win32/Storage/Packaging/Opc/impl.rs | 62 +- .../Win32/Storage/Packaging/Opc/mod.rs | 392 +- .../Win32/Storage/VirtualDiskService/impl.rs | 148 +- .../Win32/Storage/VirtualDiskService/mod.rs | 888 +- .../src/Windows/Win32/Storage/Vss/impl.rs | 46 +- .../src/Windows/Win32/Storage/Vss/mod.rs | 290 +- .../Win32/Storage/Xps/Printing/impl.rs | 12 +- .../Windows/Win32/Storage/Xps/Printing/mod.rs | 96 +- .../src/Windows/Win32/Storage/Xps/impl.rs | 136 +- .../src/Windows/Win32/Storage/Xps/mod.rs | 816 +- .../Windows/Win32/System/AddressBook/impl.rs | 42 +- .../Windows/Win32/System/AddressBook/mod.rs | 252 +- .../Windows/Win32/System/Antimalware/impl.rs | 12 +- .../Windows/Win32/System/Antimalware/mod.rs | 72 +- .../impl.rs | 78 +- .../mod.rs | 538 +- .../Win32/System/AssessmentTool/impl.rs | 18 +- .../Win32/System/AssessmentTool/mod.rs | 158 +- .../Windows/Win32/System/ClrHosting/impl.rs | 134 +- .../Windows/Win32/System/ClrHosting/mod.rs | 814 +- .../Windows/Win32/System/Com/CallObj/impl.rs | 14 +- .../Windows/Win32/System/Com/CallObj/mod.rs | 84 +- .../System/Com/ChannelCredentials/impl.rs | 2 +- .../System/Com/ChannelCredentials/mod.rs | 12 +- .../Windows/Win32/System/Com/Events/impl.rs | 32 +- .../Windows/Win32/System/Com/Events/mod.rs | 192 +- .../Windows/Win32/System/Com/Marshal/impl.rs | 6 +- .../Windows/Win32/System/Com/Marshal/mod.rs | 38 +- .../System/Com/StructuredStorage/impl.rs | 28 +- .../Win32/System/Com/StructuredStorage/mod.rs | 172 +- .../src/Windows/Win32/System/Com/UI/impl.rs | 4 +- .../src/Windows/Win32/System/Com/UI/mod.rs | 24 +- .../Windows/Win32/System/Com/Urlmon/impl.rs | 94 +- .../Windows/Win32/System/Com/Urlmon/mod.rs | 564 +- .../src/Windows/Win32/System/Com/impl.rs | 230 +- .../src/Windows/Win32/System/Com/mod.rs | 1412 +- .../Win32/System/ComponentServices/impl.rs | 246 +- .../Win32/System/ComponentServices/mod.rs | 1752 +-- .../src/Windows/Win32/System/Contacts/impl.rs | 32 +- .../src/Windows/Win32/System/Contacts/mod.rs | 192 +- .../Win32/System/DeploymentServices/impl.rs | 50 +- .../Win32/System/DeploymentServices/mod.rs | 550 +- .../Win32/System/DesktopSharing/impl.rs | 56 +- .../Win32/System/DesktopSharing/mod.rs | 524 +- .../System/Diagnostics/ClrProfiling/impl.rs | 127 +- .../System/Diagnostics/ClrProfiling/mod.rs | 396 +- .../Diagnostics/Debug/ActiveScript/impl.rs | 248 +- .../Diagnostics/Debug/ActiveScript/mod.rs | 1490 +-- .../Diagnostics/Debug/Extensions/impl.rs | 238 +- .../Diagnostics/Debug/Extensions/mod.rs | 1439 +- .../Win32/System/Diagnostics/Debug/impl.rs | 22 +- .../Win32/System/Diagnostics/Debug/mod.rs | 132 +- .../Win32/System/Diagnostics/Etw/impl.rs | 6 +- .../Win32/System/Diagnostics/Etw/mod.rs | 36 +- .../DistributedTransactionCoordinator/impl.rs | 132 +- .../DistributedTransactionCoordinator/mod.rs | 794 +- .../System/EventNotificationService/impl.rs | 8 +- .../System/EventNotificationService/mod.rs | 88 +- .../Windows/Win32/System/GroupPolicy/impl.rs | 88 +- .../Windows/Win32/System/GroupPolicy/mod.rs | 938 +- .../src/Windows/Win32/System/Iis/impl.rs | 44 +- .../src/Windows/Win32/System/Iis/mod.rs | 264 +- .../Win32/System/MessageQueuing/impl.rs | 86 +- .../Win32/System/MessageQueuing/mod.rs | 942 +- .../src/Windows/Win32/System/Mmc/impl.rs | 138 +- .../src/Windows/Win32/System/Mmc/mod.rs | 1036 +- .../src/Windows/Win32/System/Ole/impl.rs | 186 +- .../src/Windows/Win32/System/Ole/mod.rs | 1202 +- .../Win32/System/ParentalControls/impl.rs | 16 +- .../Win32/System/ParentalControls/mod.rs | 96 +- .../Windows/Win32/System/Performance/impl.rs | 66 +- .../Windows/Win32/System/Performance/mod.rs | 636 +- .../System/RealTimeCommunications/impl.rs | 132 +- .../System/RealTimeCommunications/mod.rs | 1080 +- .../Win32/System/RemoteAssistance/impl.rs | 6 +- .../Win32/System/RemoteAssistance/mod.rs | 44 +- .../Win32/System/RemoteDesktop/impl.rs | 202 +- .../Windows/Win32/System/RemoteDesktop/mod.rs | 1362 +- .../Win32/System/RemoteManagement/impl.rs | 24 +- .../Win32/System/RemoteManagement/mod.rs | 254 +- .../src/Windows/Win32/System/Search/impl.rs | 350 +- .../src/Windows/Win32/System/Search/mod.rs | 2201 +--- .../Win32/System/SecurityCenter/impl.rs | 10 +- .../Win32/System/SecurityCenter/mod.rs | 110 +- .../Windows/Win32/System/ServerBackup/impl.rs | 6 +- .../Windows/Win32/System/ServerBackup/mod.rs | 36 +- .../SettingsManagementInfrastructure/impl.rs | 16 +- .../SettingsManagementInfrastructure/mod.rs | 96 +- .../src/Windows/Win32/System/SideShow/impl.rs | 22 +- .../src/Windows/Win32/System/SideShow/mod.rs | 132 +- .../Win32/System/TaskScheduler/impl.rs | 98 +- .../Windows/Win32/System/TaskScheduler/mod.rs | 988 +- .../Windows/Win32/System/Threading/impl.rs | 8 +- .../src/Windows/Win32/System/Threading/mod.rs | 48 +- .../Win32/System/TransactionServer/impl.rs | 10 +- .../Win32/System/TransactionServer/mod.rs | 110 +- .../Windows/Win32/System/UpdateAgent/impl.rs | 152 +- .../Windows/Win32/System/UpdateAgent/mod.rs | 1608 +-- .../Win32/System/UpdateAssessment/impl.rs | 2 +- .../Win32/System/UpdateAssessment/mod.rs | 12 +- .../Win32/System/WinRT/AllJoyn/impl.rs | 8 +- .../Windows/Win32/System/WinRT/AllJoyn/mod.rs | 52 +- .../Win32/System/WinRT/Composition/impl.rs | 16 +- .../Win32/System/WinRT/Composition/mod.rs | 100 +- .../Win32/System/WinRT/CoreInputView/impl.rs | 2 +- .../Win32/System/WinRT/CoreInputView/mod.rs | 14 +- .../Win32/System/WinRT/Direct3D11/impl.rs | 2 +- .../Win32/System/WinRT/Direct3D11/mod.rs | 14 +- .../Win32/System/WinRT/Display/impl.rs | 4 +- .../Windows/Win32/System/WinRT/Display/mod.rs | 24 +- .../System/WinRT/Graphics/Capture/impl.rs | 2 +- .../System/WinRT/Graphics/Capture/mod.rs | 16 +- .../System/WinRT/Graphics/Direct2D/impl.rs | 4 +- .../System/WinRT/Graphics/Direct2D/mod.rs | 24 +- .../System/WinRT/Graphics/Imaging/impl.rs | 4 +- .../System/WinRT/Graphics/Imaging/mod.rs | 30 +- .../Win32/System/WinRT/Holographic/impl.rs | 8 +- .../Win32/System/WinRT/Holographic/mod.rs | 48 +- .../Win32/System/WinRT/Isolation/impl.rs | 2 +- .../Win32/System/WinRT/Isolation/mod.rs | 12 +- .../src/Windows/Win32/System/WinRT/ML/impl.rs | 12 +- .../src/Windows/Win32/System/WinRT/ML/mod.rs | 72 +- .../Windows/Win32/System/WinRT/Media/impl.rs | 8 +- .../Windows/Win32/System/WinRT/Media/mod.rs | 58 +- .../Win32/System/WinRT/Metadata/impl.rs | 36 +- .../Win32/System/WinRT/Metadata/mod.rs | 230 +- .../Windows/Win32/System/WinRT/Pdf/impl.rs | 2 +- .../src/Windows/Win32/System/WinRT/Pdf/mod.rs | 12 +- .../Win32/System/WinRT/Printing/impl.rs | 14 +- .../Win32/System/WinRT/Printing/mod.rs | 92 +- .../Windows/Win32/System/WinRT/Shell/impl.rs | 2 +- .../Windows/Win32/System/WinRT/Shell/mod.rs | 12 +- .../Win32/System/WinRT/Storage/impl.rs | 12 +- .../Windows/Win32/System/WinRT/Storage/mod.rs | 72 +- .../src/Windows/Win32/System/WinRT/impl.rs | 76 +- .../src/Windows/Win32/System/WinRT/mod.rs | 506 +- .../Win32/System/WindowsProgramming/impl.rs | 20 +- .../Win32/System/WindowsProgramming/mod.rs | 120 +- .../Windows/Win32/System/WindowsSync/impl.rs | 158 +- .../Windows/Win32/System/WindowsSync/mod.rs | 968 +- .../src/Windows/Win32/System/Wmi/impl.rs | 140 +- .../src/Windows/Win32/System/Wmi/mod.rs | 1102 +- .../Windows/Win32/UI/Accessibility/impl.rs | 272 +- .../src/Windows/Win32/UI/Accessibility/mod.rs | 1680 +-- .../src/Windows/Win32/UI/Animation/impl.rs | 62 +- .../src/Windows/Win32/UI/Animation/mod.rs | 372 +- .../src/Windows/Win32/UI/ColorSystem/impl.rs | 4 +- .../src/Windows/Win32/UI/ColorSystem/mod.rs | 24 +- .../Windows/Win32/UI/Controls/Dialogs/impl.rs | 4 +- .../Windows/Win32/UI/Controls/Dialogs/mod.rs | 24 +- .../Win32/UI/Controls/RichEdit/impl.rs | 48 +- .../Windows/Win32/UI/Controls/RichEdit/mod.rs | 446 +- .../src/Windows/Win32/UI/Controls/impl.rs | 4 +- .../src/Windows/Win32/UI/Controls/mod.rs | 26 +- .../src/Windows/Win32/UI/Input/Ime/impl.rs | 34 +- .../src/Windows/Win32/UI/Input/Ime/mod.rs | 216 +- .../src/Windows/Win32/UI/Input/Ink/impl.rs | 12 +- .../src/Windows/Win32/UI/Input/Ink/mod.rs | 76 +- .../src/Windows/Win32/UI/Input/Radial/impl.rs | 6 +- .../src/Windows/Win32/UI/Input/Radial/mod.rs | 42 +- .../src/Windows/Win32/UI/Input/Touch/impl.rs | 6 +- .../src/Windows/Win32/UI/Input/Touch/mod.rs | 36 +- .../LegacyWindowsEnvironmentFeatures/impl.rs | 16 +- .../LegacyWindowsEnvironmentFeatures/mod.rs | 96 +- .../Windows/Win32/UI/Notifications/impl.rs | 2 +- .../src/Windows/Win32/UI/Notifications/mod.rs | 12 +- .../src/Windows/Win32/UI/Ribbon/impl.rs | 24 +- .../src/Windows/Win32/UI/Ribbon/mod.rs | 144 +- .../src/Windows/Win32/UI/Shell/Common/impl.rs | 4 +- .../src/Windows/Win32/UI/Shell/Common/mod.rs | 28 +- .../Win32/UI/Shell/PropertiesSystem/impl.rs | 52 +- .../Win32/UI/Shell/PropertiesSystem/mod.rs | 360 +- .../src/Windows/Win32/UI/Shell/impl.rs | 832 +- .../windows/src/Windows/Win32/UI/Shell/mod.rs | 5846 ++------- .../src/Windows/Win32/UI/TabletPC/impl.rs | 138 +- .../src/Windows/Win32/UI/TabletPC/mod.rs | 1316 +- .../src/Windows/Win32/UI/TextServices/impl.rs | 312 +- .../src/Windows/Win32/UI/TextServices/mod.rs | 1876 +-- .../windows/src/Windows/Win32/UI/Wpf/impl.rs | 40 +- .../windows/src/Windows/Win32/UI/Wpf/mod.rs | 240 +- .../Win32/Web/InternetExplorer/impl.rs | 150 +- .../Windows/Win32/Web/InternetExplorer/mod.rs | 1054 +- 771 files changed, 60947 insertions(+), 170727 deletions(-) diff --git a/crates/libs/windows/src/Windows/AI/MachineLearning/impl.rs b/crates/libs/windows/src/Windows/AI/MachineLearning/impl.rs index 10264b561d..533573feda 100644 --- a/crates/libs/windows/src/Windows/AI/MachineLearning/impl.rs +++ b/crates/libs/windows/src/Windows/AI/MachineLearning/impl.rs @@ -64,7 +64,7 @@ impl ILearningModelFeatureDescriptor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ILearningModelFeatureValue_Impl: Sized { @@ -89,7 +89,7 @@ impl ILearningModelFeatureValue_Vtbl { Self { base__: ::windows_core::IInspectable_Vtbl::new::(), Kind: Kind:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ILearningModelOperatorProvider_Impl: Sized {} @@ -101,7 +101,7 @@ impl ILearningModelOperatorProvider_Vtbl { Self { base__: ::windows_core::IInspectable_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -147,6 +147,6 @@ impl ITensor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs b/crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs index 3fcce80d48..553553ecad 100644 --- a/crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs +++ b/crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IImageFeatureDescriptor(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IImageFeatureDescriptor { - type Vtable = IImageFeatureDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IImageFeatureDescriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x365585a5_171a_4a2a_985f_265159d3895a); -} +::windows_core::imp::com_interface!(IImageFeatureDescriptor, IImageFeatureDescriptor_Vtbl, 0x365585a5_171a_4a2a_985f_265159d3895a); #[repr(C)] #[doc(hidden)] pub struct IImageFeatureDescriptor_Vtbl { @@ -23,32 +14,14 @@ pub struct IImageFeatureDescriptor_Vtbl { pub Width: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, pub Height: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IImageFeatureDescriptor2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IImageFeatureDescriptor2 { - type Vtable = IImageFeatureDescriptor2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IImageFeatureDescriptor2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2b27cca7_d533_5862_bb98_1611b155b0e1); -} +::windows_core::imp::com_interface!(IImageFeatureDescriptor2, IImageFeatureDescriptor2_Vtbl, 0x2b27cca7_d533_5862_bb98_1611b155b0e1); #[repr(C)] #[doc(hidden)] pub struct IImageFeatureDescriptor2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub PixelRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut LearningModelPixelRange) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IImageFeatureValue(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IImageFeatureValue { - type Vtable = IImageFeatureValue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IImageFeatureValue { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf0414fd9_c9aa_4405_b7fb_94f87c8a3037); -} +::windows_core::imp::com_interface!(IImageFeatureValue, IImageFeatureValue_Vtbl, 0xf0414fd9_c9aa_4405_b7fb_94f87c8a3037); #[repr(C)] #[doc(hidden)] pub struct IImageFeatureValue_Vtbl { @@ -58,16 +31,7 @@ pub struct IImageFeatureValue_Vtbl { #[cfg(not(feature = "Media"))] VideoFrame: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IImageFeatureValueStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IImageFeatureValueStatics { - type Vtable = IImageFeatureValueStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IImageFeatureValueStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1bc317fd_23cb_4610_b085_c8e1c87ebaa0); -} +::windows_core::imp::com_interface!(IImageFeatureValueStatics, IImageFeatureValueStatics_Vtbl, 0x1bc317fd_23cb_4610_b085_c8e1c87ebaa0); #[repr(C)] #[doc(hidden)] pub struct IImageFeatureValueStatics_Vtbl { @@ -77,16 +41,7 @@ pub struct IImageFeatureValueStatics_Vtbl { #[cfg(not(feature = "Media"))] CreateFromVideoFrame: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILearningModel(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILearningModel { - type Vtable = ILearningModel_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILearningModel { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5b8e4920_489f_4e86_9128_265a327b78fa); -} +::windows_core::imp::com_interface!(ILearningModel, ILearningModel_Vtbl, 0x5b8e4920_489f_4e86_9128_265a327b78fa); #[repr(C)] #[doc(hidden)] pub struct ILearningModel_Vtbl { @@ -109,16 +64,7 @@ pub struct ILearningModel_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] OutputFeatures: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILearningModelBinding(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILearningModelBinding { - type Vtable = ILearningModelBinding_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILearningModelBinding { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xea312f20_168f_4f8c_94fe_2e7ac31b4aa8); -} +::windows_core::imp::com_interface!(ILearningModelBinding, ILearningModelBinding_Vtbl, 0xea312f20_168f_4f8c_94fe_2e7ac31b4aa8); #[repr(C)] #[doc(hidden)] pub struct ILearningModelBinding_Vtbl { @@ -130,32 +76,14 @@ pub struct ILearningModelBinding_Vtbl { BindWithProperties: usize, pub Clear: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILearningModelBindingFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILearningModelBindingFactory { - type Vtable = ILearningModelBindingFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILearningModelBindingFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc95f7a7a_e788_475e_8917_23aa381faf0b); -} +::windows_core::imp::com_interface!(ILearningModelBindingFactory, ILearningModelBindingFactory_Vtbl, 0xc95f7a7a_e788_475e_8917_23aa381faf0b); #[repr(C)] #[doc(hidden)] pub struct ILearningModelBindingFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateFromSession: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, session: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILearningModelDevice(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILearningModelDevice { - type Vtable = ILearningModelDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILearningModelDevice { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf5c2c8fe_3f56_4a8c_ac5f_fdb92d8b8252); -} +::windows_core::imp::com_interface!(ILearningModelDevice, ILearningModelDevice_Vtbl, 0xf5c2c8fe_3f56_4a8c_ac5f_fdb92d8b8252); #[repr(C)] #[doc(hidden)] pub struct ILearningModelDevice_Vtbl { @@ -169,32 +97,14 @@ pub struct ILearningModelDevice_Vtbl { #[cfg(not(feature = "Graphics_DirectX_Direct3D11"))] Direct3D11Device: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILearningModelDeviceFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILearningModelDeviceFactory { - type Vtable = ILearningModelDeviceFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILearningModelDeviceFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9cffd74d_b1e5_4f20_80ad_0a56690db06b); -} +::windows_core::imp::com_interface!(ILearningModelDeviceFactory, ILearningModelDeviceFactory_Vtbl, 0x9cffd74d_b1e5_4f20_80ad_0a56690db06b); #[repr(C)] #[doc(hidden)] pub struct ILearningModelDeviceFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, devicekind: LearningModelDeviceKind, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILearningModelDeviceStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILearningModelDeviceStatics { - type Vtable = ILearningModelDeviceStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILearningModelDeviceStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x49f32107_a8bf_42bb_92c7_10b12dc5d21f); -} +::windows_core::imp::com_interface!(ILearningModelDeviceStatics, ILearningModelDeviceStatics_Vtbl, 0x49f32107_a8bf_42bb_92c7_10b12dc5d21f); #[repr(C)] #[doc(hidden)] pub struct ILearningModelDeviceStatics_Vtbl { @@ -204,16 +114,7 @@ pub struct ILearningModelDeviceStatics_Vtbl { #[cfg(not(feature = "Graphics_DirectX_Direct3D11"))] CreateFromDirect3D11Device: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILearningModelEvaluationResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILearningModelEvaluationResult { - type Vtable = ILearningModelEvaluationResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILearningModelEvaluationResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb2f9bfcd_960e_49c0_8593_eb190ae3eee2); -} +::windows_core::imp::com_interface!(ILearningModelEvaluationResult, ILearningModelEvaluationResult_Vtbl, 0xb2f9bfcd_960e_49c0_8593_eb190ae3eee2); #[repr(C)] #[doc(hidden)] pub struct ILearningModelEvaluationResult_Vtbl { @@ -226,9 +127,8 @@ pub struct ILearningModelEvaluationResult_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Outputs: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILearningModelFeatureDescriptor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ILearningModelFeatureDescriptor, ILearningModelFeatureDescriptor_Vtbl, 0xbc08cf7c_6ed0_4004_97ba_b9a2eecd2b4f); +::windows_core::imp::interface_hierarchy!(ILearningModelFeatureDescriptor, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ILearningModelFeatureDescriptor { pub fn Name(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -259,16 +159,9 @@ impl ILearningModelFeatureDescriptor { } } } -::windows_core::imp::interface_hierarchy!(ILearningModelFeatureDescriptor, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for ILearningModelFeatureDescriptor { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for ILearningModelFeatureDescriptor { - type Vtable = ILearningModelFeatureDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILearningModelFeatureDescriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbc08cf7c_6ed0_4004_97ba_b9a2eecd2b4f); -} #[repr(C)] #[doc(hidden)] pub struct ILearningModelFeatureDescriptor_Vtbl { @@ -278,9 +171,8 @@ pub struct ILearningModelFeatureDescriptor_Vtbl { pub Kind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut LearningModelFeatureKind) -> ::windows_core::HRESULT, pub IsRequired: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILearningModelFeatureValue(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ILearningModelFeatureValue, ILearningModelFeatureValue_Vtbl, 0xf51005db_4085_4dfe_9fed_95eb0c0cf75c); +::windows_core::imp::interface_hierarchy!(ILearningModelFeatureValue, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ILearningModelFeatureValue { pub fn Kind(&self) -> ::windows_core::Result { let this = self; @@ -290,51 +182,27 @@ impl ILearningModelFeatureValue { } } } -::windows_core::imp::interface_hierarchy!(ILearningModelFeatureValue, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for ILearningModelFeatureValue { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for ILearningModelFeatureValue { - type Vtable = ILearningModelFeatureValue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILearningModelFeatureValue { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf51005db_4085_4dfe_9fed_95eb0c0cf75c); -} #[repr(C)] #[doc(hidden)] pub struct ILearningModelFeatureValue_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Kind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut LearningModelFeatureKind) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILearningModelOperatorProvider(::windows_core::IUnknown); -impl ILearningModelOperatorProvider {} +::windows_core::imp::com_interface!(ILearningModelOperatorProvider, ILearningModelOperatorProvider_Vtbl, 0x2a222e5d_afb1_47ed_bfad_b5b3a459ec04); ::windows_core::imp::interface_hierarchy!(ILearningModelOperatorProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); +impl ILearningModelOperatorProvider {} impl ::windows_core::RuntimeType for ILearningModelOperatorProvider { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for ILearningModelOperatorProvider { - type Vtable = ILearningModelOperatorProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILearningModelOperatorProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2a222e5d_afb1_47ed_bfad_b5b3a459ec04); -} #[repr(C)] #[doc(hidden)] pub struct ILearningModelOperatorProvider_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILearningModelSession(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILearningModelSession { - type Vtable = ILearningModelSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILearningModelSession { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8e58f8f6_b787_4c11_90f0_7129aeca74a9); -} +::windows_core::imp::com_interface!(ILearningModelSession, ILearningModelSession_Vtbl, 0x8e58f8f6_b787_4c11_90f0_7129aeca74a9); #[repr(C)] #[doc(hidden)] pub struct ILearningModelSession_Vtbl { @@ -356,16 +224,7 @@ pub struct ILearningModelSession_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] EvaluateFeatures: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILearningModelSessionFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILearningModelSessionFactory { - type Vtable = ILearningModelSessionFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILearningModelSessionFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0f6b881d_1c9b_47b6_bfe0_f1cf62a67579); -} +::windows_core::imp::com_interface!(ILearningModelSessionFactory, ILearningModelSessionFactory_Vtbl, 0x0f6b881d_1c9b_47b6_bfe0_f1cf62a67579); #[repr(C)] #[doc(hidden)] pub struct ILearningModelSessionFactory_Vtbl { @@ -373,32 +232,14 @@ pub struct ILearningModelSessionFactory_Vtbl { pub CreateFromModel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, model: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateFromModelOnDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, model: *mut ::core::ffi::c_void, devicetorunon: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILearningModelSessionFactory2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILearningModelSessionFactory2 { - type Vtable = ILearningModelSessionFactory2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILearningModelSessionFactory2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4e5c88bf_0a1f_5fec_ade0_2fd91e4ef29b); -} +::windows_core::imp::com_interface!(ILearningModelSessionFactory2, ILearningModelSessionFactory2_Vtbl, 0x4e5c88bf_0a1f_5fec_ade0_2fd91e4ef29b); #[repr(C)] #[doc(hidden)] pub struct ILearningModelSessionFactory2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateFromModelOnDeviceWithSessionOptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, model: *mut ::core::ffi::c_void, devicetorunon: *mut ::core::ffi::c_void, learningmodelsessionoptions: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILearningModelSessionOptions(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILearningModelSessionOptions { - type Vtable = ILearningModelSessionOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILearningModelSessionOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb8f63fa1_134d_5133_8cff_3a5c3c263beb); -} +::windows_core::imp::com_interface!(ILearningModelSessionOptions, ILearningModelSessionOptions_Vtbl, 0xb8f63fa1_134d_5133_8cff_3a5c3c263beb); #[repr(C)] #[doc(hidden)] pub struct ILearningModelSessionOptions_Vtbl { @@ -406,16 +247,7 @@ pub struct ILearningModelSessionOptions_Vtbl { pub BatchSizeOverride: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, pub SetBatchSizeOverride: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILearningModelSessionOptions2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILearningModelSessionOptions2 { - type Vtable = ILearningModelSessionOptions2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILearningModelSessionOptions2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6fcd1dc4_175f_5bd2_8de5_2f2006a25adf); -} +::windows_core::imp::com_interface!(ILearningModelSessionOptions2, ILearningModelSessionOptions2_Vtbl, 0x6fcd1dc4_175f_5bd2_8de5_2f2006a25adf); #[repr(C)] #[doc(hidden)] pub struct ILearningModelSessionOptions2_Vtbl { @@ -423,32 +255,14 @@ pub struct ILearningModelSessionOptions2_Vtbl { pub CloseModelOnSessionCreation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetCloseModelOnSessionCreation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILearningModelSessionOptions3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILearningModelSessionOptions3 { - type Vtable = ILearningModelSessionOptions3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILearningModelSessionOptions3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x58e15cee_d8c2_56fc_92e8_76d751081086); -} +::windows_core::imp::com_interface!(ILearningModelSessionOptions3, ILearningModelSessionOptions3_Vtbl, 0x58e15cee_d8c2_56fc_92e8_76d751081086); #[repr(C)] #[doc(hidden)] pub struct ILearningModelSessionOptions3_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub OverrideNamedDimension: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows_core::HSTRING>, dimension: u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILearningModelStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILearningModelStatics { - type Vtable = ILearningModelStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILearningModelStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe3b977e8_6952_4e47_8ef4_1f7f07897c6d); -} +::windows_core::imp::com_interface!(ILearningModelStatics, ILearningModelStatics_Vtbl, 0xe3b977e8_6952_4e47_8ef4_1f7f07897c6d); #[repr(C)] #[doc(hidden)] pub struct ILearningModelStatics_Vtbl { @@ -480,16 +294,7 @@ pub struct ILearningModelStatics_Vtbl { #[cfg(not(feature = "Storage_Streams"))] LoadFromStreamWithOperatorProvider: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMapFeatureDescriptor(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMapFeatureDescriptor { - type Vtable = IMapFeatureDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMapFeatureDescriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x530424bd_a257_436d_9e60_c2981f7cc5c4); -} +::windows_core::imp::com_interface!(IMapFeatureDescriptor, IMapFeatureDescriptor_Vtbl, 0x530424bd_a257_436d_9e60_c2981f7cc5c4); #[repr(C)] #[doc(hidden)] pub struct IMapFeatureDescriptor_Vtbl { @@ -497,25 +302,16 @@ pub struct IMapFeatureDescriptor_Vtbl { pub KeyKind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut TensorKind) -> ::windows_core::HRESULT, pub ValueDescriptor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISequenceFeatureDescriptor(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISequenceFeatureDescriptor { - type Vtable = ISequenceFeatureDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISequenceFeatureDescriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x84f6945a_562b_4d62_a851_739aced96668); -} +::windows_core::imp::com_interface!(ISequenceFeatureDescriptor, ISequenceFeatureDescriptor_Vtbl, 0x84f6945a_562b_4d62_a851_739aced96668); #[repr(C)] #[doc(hidden)] pub struct ISequenceFeatureDescriptor_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ElementDescriptor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITensor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITensor, ITensor_Vtbl, 0x05489593_a305_4a25_ad09_440119b4b7f6); +::windows_core::imp::interface_hierarchy!(ITensor, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ITensor, ILearningModelFeatureValue); impl ITensor { pub fn TensorKind(&self) -> ::windows_core::Result { let this = self; @@ -534,24 +330,16 @@ impl ITensor { } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(ITensor, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ITensor {} impl ::windows_core::RuntimeType for ITensor { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for ITensor { - type Vtable = ITensor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITensor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x05489593_a305_4a25_ad09_440119b4b7f6); -} #[repr(C)] #[doc(hidden)] pub struct ITensor_Vtbl { @@ -562,16 +350,7 @@ pub struct ITensor_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Shape: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITensorBoolean(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITensorBoolean { - type Vtable = ITensorBoolean_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITensorBoolean { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x50f311ed_29e9_4a5c_a44d_8fc512584eed); -} +::windows_core::imp::com_interface!(ITensorBoolean, ITensorBoolean_Vtbl, 0x50f311ed_29e9_4a5c_a44d_8fc512584eed); #[repr(C)] #[doc(hidden)] pub struct ITensorBoolean_Vtbl { @@ -581,16 +360,7 @@ pub struct ITensorBoolean_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetAsVectorView: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITensorBooleanStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITensorBooleanStatics { - type Vtable = ITensorBooleanStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITensorBooleanStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2796862c_2357_49a7_b476_d0aa3dfe6866); -} +::windows_core::imp::com_interface!(ITensorBooleanStatics, ITensorBooleanStatics_Vtbl, 0x2796862c_2357_49a7_b476_d0aa3dfe6866); #[repr(C)] #[doc(hidden)] pub struct ITensorBooleanStatics_Vtbl { @@ -609,16 +379,7 @@ pub struct ITensorBooleanStatics_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] CreateFromIterable: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITensorBooleanStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITensorBooleanStatics2 { - type Vtable = ITensorBooleanStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITensorBooleanStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa3a4a501_6a2d_52d7_b04b_c435baee0115); -} +::windows_core::imp::com_interface!(ITensorBooleanStatics2, ITensorBooleanStatics2_Vtbl, 0xa3a4a501_6a2d_52d7_b04b_c435baee0115); #[repr(C)] #[doc(hidden)] pub struct ITensorBooleanStatics2_Vtbl { @@ -629,16 +390,7 @@ pub struct ITensorBooleanStatics2_Vtbl { #[cfg(not(feature = "Storage_Streams"))] CreateFromBuffer: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITensorDouble(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITensorDouble { - type Vtable = ITensorDouble_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITensorDouble { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x91e41252_7a8f_4f0e_a28f_9637ffc8a3d0); -} +::windows_core::imp::com_interface!(ITensorDouble, ITensorDouble_Vtbl, 0x91e41252_7a8f_4f0e_a28f_9637ffc8a3d0); #[repr(C)] #[doc(hidden)] pub struct ITensorDouble_Vtbl { @@ -648,16 +400,7 @@ pub struct ITensorDouble_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetAsVectorView: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITensorDoubleStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITensorDoubleStatics { - type Vtable = ITensorDoubleStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITensorDoubleStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa86693c5_9538_44e7_a3ca_5df374a5a70c); -} +::windows_core::imp::com_interface!(ITensorDoubleStatics, ITensorDoubleStatics_Vtbl, 0xa86693c5_9538_44e7_a3ca_5df374a5a70c); #[repr(C)] #[doc(hidden)] pub struct ITensorDoubleStatics_Vtbl { @@ -676,16 +419,7 @@ pub struct ITensorDoubleStatics_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] CreateFromIterable: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITensorDoubleStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITensorDoubleStatics2 { - type Vtable = ITensorDoubleStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITensorDoubleStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x93a570de_5e9a_5094_85c8_592c655e68ac); -} +::windows_core::imp::com_interface!(ITensorDoubleStatics2, ITensorDoubleStatics2_Vtbl, 0x93a570de_5e9a_5094_85c8_592c655e68ac); #[repr(C)] #[doc(hidden)] pub struct ITensorDoubleStatics2_Vtbl { @@ -696,16 +430,7 @@ pub struct ITensorDoubleStatics2_Vtbl { #[cfg(not(feature = "Storage_Streams"))] CreateFromBuffer: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITensorFeatureDescriptor(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITensorFeatureDescriptor { - type Vtable = ITensorFeatureDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITensorFeatureDescriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x74455c80_946a_4310_a19c_ee0af028fce4); -} +::windows_core::imp::com_interface!(ITensorFeatureDescriptor, ITensorFeatureDescriptor_Vtbl, 0x74455c80_946a_4310_a19c_ee0af028fce4); #[repr(C)] #[doc(hidden)] pub struct ITensorFeatureDescriptor_Vtbl { @@ -716,16 +441,7 @@ pub struct ITensorFeatureDescriptor_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Shape: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITensorFloat(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITensorFloat { - type Vtable = ITensorFloat_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITensorFloat { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf2282d82_aa02_42c8_a0c8_df1efc9676e1); -} +::windows_core::imp::com_interface!(ITensorFloat, ITensorFloat_Vtbl, 0xf2282d82_aa02_42c8_a0c8_df1efc9676e1); #[repr(C)] #[doc(hidden)] pub struct ITensorFloat_Vtbl { @@ -735,16 +451,7 @@ pub struct ITensorFloat_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetAsVectorView: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITensorFloat16Bit(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITensorFloat16Bit { - type Vtable = ITensorFloat16Bit_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITensorFloat16Bit { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0ab994fc_5b89_4c3c_b5e4_5282a5316c0a); -} +::windows_core::imp::com_interface!(ITensorFloat16Bit, ITensorFloat16Bit_Vtbl, 0x0ab994fc_5b89_4c3c_b5e4_5282a5316c0a); #[repr(C)] #[doc(hidden)] pub struct ITensorFloat16Bit_Vtbl { @@ -754,16 +461,7 @@ pub struct ITensorFloat16Bit_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetAsVectorView: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITensorFloat16BitStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITensorFloat16BitStatics { - type Vtable = ITensorFloat16BitStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITensorFloat16BitStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa52db6f5_318a_44d4_820b_0cdc7054a84a); -} +::windows_core::imp::com_interface!(ITensorFloat16BitStatics, ITensorFloat16BitStatics_Vtbl, 0xa52db6f5_318a_44d4_820b_0cdc7054a84a); #[repr(C)] #[doc(hidden)] pub struct ITensorFloat16BitStatics_Vtbl { @@ -782,16 +480,7 @@ pub struct ITensorFloat16BitStatics_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] CreateFromIterable: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITensorFloat16BitStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITensorFloat16BitStatics2 { - type Vtable = ITensorFloat16BitStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITensorFloat16BitStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x68545726_2dc7_51bf_b470_0b344cc2a1bc); -} +::windows_core::imp::com_interface!(ITensorFloat16BitStatics2, ITensorFloat16BitStatics2_Vtbl, 0x68545726_2dc7_51bf_b470_0b344cc2a1bc); #[repr(C)] #[doc(hidden)] pub struct ITensorFloat16BitStatics2_Vtbl { @@ -802,16 +491,7 @@ pub struct ITensorFloat16BitStatics2_Vtbl { #[cfg(not(feature = "Storage_Streams"))] CreateFromBuffer: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITensorFloatStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITensorFloatStatics { - type Vtable = ITensorFloatStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITensorFloatStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdbcd395b_3ba3_452f_b10d_3c135e573fa9); -} +::windows_core::imp::com_interface!(ITensorFloatStatics, ITensorFloatStatics_Vtbl, 0xdbcd395b_3ba3_452f_b10d_3c135e573fa9); #[repr(C)] #[doc(hidden)] pub struct ITensorFloatStatics_Vtbl { @@ -830,16 +510,7 @@ pub struct ITensorFloatStatics_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] CreateFromIterable: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITensorFloatStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITensorFloatStatics2 { - type Vtable = ITensorFloatStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITensorFloatStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x24610bc1_5e44_5713_b281_8f4ad4d555e8); -} +::windows_core::imp::com_interface!(ITensorFloatStatics2, ITensorFloatStatics2_Vtbl, 0x24610bc1_5e44_5713_b281_8f4ad4d555e8); #[repr(C)] #[doc(hidden)] pub struct ITensorFloatStatics2_Vtbl { @@ -850,16 +521,7 @@ pub struct ITensorFloatStatics2_Vtbl { #[cfg(not(feature = "Storage_Streams"))] CreateFromBuffer: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITensorInt16Bit(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITensorInt16Bit { - type Vtable = ITensorInt16Bit_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITensorInt16Bit { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x98a32d39_e6d6_44af_8afa_baebc44dc020); -} +::windows_core::imp::com_interface!(ITensorInt16Bit, ITensorInt16Bit_Vtbl, 0x98a32d39_e6d6_44af_8afa_baebc44dc020); #[repr(C)] #[doc(hidden)] pub struct ITensorInt16Bit_Vtbl { @@ -869,16 +531,7 @@ pub struct ITensorInt16Bit_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetAsVectorView: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITensorInt16BitStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITensorInt16BitStatics { - type Vtable = ITensorInt16BitStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITensorInt16BitStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x98646293_266e_4b1a_821f_e60d70898b91); -} +::windows_core::imp::com_interface!(ITensorInt16BitStatics, ITensorInt16BitStatics_Vtbl, 0x98646293_266e_4b1a_821f_e60d70898b91); #[repr(C)] #[doc(hidden)] pub struct ITensorInt16BitStatics_Vtbl { @@ -897,16 +550,7 @@ pub struct ITensorInt16BitStatics_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] CreateFromIterable: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITensorInt16BitStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITensorInt16BitStatics2 { - type Vtable = ITensorInt16BitStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITensorInt16BitStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0cd70cf4_696c_5e5f_95d8_5ebf9670148b); -} +::windows_core::imp::com_interface!(ITensorInt16BitStatics2, ITensorInt16BitStatics2_Vtbl, 0x0cd70cf4_696c_5e5f_95d8_5ebf9670148b); #[repr(C)] #[doc(hidden)] pub struct ITensorInt16BitStatics2_Vtbl { @@ -917,16 +561,7 @@ pub struct ITensorInt16BitStatics2_Vtbl { #[cfg(not(feature = "Storage_Streams"))] CreateFromBuffer: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITensorInt32Bit(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITensorInt32Bit { - type Vtable = ITensorInt32Bit_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITensorInt32Bit { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2c0c28d3_207c_4486_a7d2_884522c5e589); -} +::windows_core::imp::com_interface!(ITensorInt32Bit, ITensorInt32Bit_Vtbl, 0x2c0c28d3_207c_4486_a7d2_884522c5e589); #[repr(C)] #[doc(hidden)] pub struct ITensorInt32Bit_Vtbl { @@ -936,16 +571,7 @@ pub struct ITensorInt32Bit_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetAsVectorView: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITensorInt32BitStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITensorInt32BitStatics { - type Vtable = ITensorInt32BitStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITensorInt32BitStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6539864b_52fa_4e35_907c_834cac417b50); -} +::windows_core::imp::com_interface!(ITensorInt32BitStatics, ITensorInt32BitStatics_Vtbl, 0x6539864b_52fa_4e35_907c_834cac417b50); #[repr(C)] #[doc(hidden)] pub struct ITensorInt32BitStatics_Vtbl { @@ -964,16 +590,7 @@ pub struct ITensorInt32BitStatics_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] CreateFromIterable: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITensorInt32BitStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITensorInt32BitStatics2 { - type Vtable = ITensorInt32BitStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITensorInt32BitStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7c4b079a_e956_5ce0_a3bd_157d9d79b5ec); -} +::windows_core::imp::com_interface!(ITensorInt32BitStatics2, ITensorInt32BitStatics2_Vtbl, 0x7c4b079a_e956_5ce0_a3bd_157d9d79b5ec); #[repr(C)] #[doc(hidden)] pub struct ITensorInt32BitStatics2_Vtbl { @@ -984,16 +601,7 @@ pub struct ITensorInt32BitStatics2_Vtbl { #[cfg(not(feature = "Storage_Streams"))] CreateFromBuffer: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITensorInt64Bit(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITensorInt64Bit { - type Vtable = ITensorInt64Bit_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITensorInt64Bit { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x499665ba_1fa2_45ad_af25_a0bd9bda4c87); -} +::windows_core::imp::com_interface!(ITensorInt64Bit, ITensorInt64Bit_Vtbl, 0x499665ba_1fa2_45ad_af25_a0bd9bda4c87); #[repr(C)] #[doc(hidden)] pub struct ITensorInt64Bit_Vtbl { @@ -1003,16 +611,7 @@ pub struct ITensorInt64Bit_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetAsVectorView: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITensorInt64BitStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITensorInt64BitStatics { - type Vtable = ITensorInt64BitStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITensorInt64BitStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9648ad9d_1198_4d74_9517_783ab62b9cc2); -} +::windows_core::imp::com_interface!(ITensorInt64BitStatics, ITensorInt64BitStatics_Vtbl, 0x9648ad9d_1198_4d74_9517_783ab62b9cc2); #[repr(C)] #[doc(hidden)] pub struct ITensorInt64BitStatics_Vtbl { @@ -1031,16 +630,7 @@ pub struct ITensorInt64BitStatics_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] CreateFromIterable: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITensorInt64BitStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITensorInt64BitStatics2 { - type Vtable = ITensorInt64BitStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITensorInt64BitStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6d3d9dcb_ff40_5ec2_89fe_084e2b6bc6db); -} +::windows_core::imp::com_interface!(ITensorInt64BitStatics2, ITensorInt64BitStatics2_Vtbl, 0x6d3d9dcb_ff40_5ec2_89fe_084e2b6bc6db); #[repr(C)] #[doc(hidden)] pub struct ITensorInt64BitStatics2_Vtbl { @@ -1051,16 +641,7 @@ pub struct ITensorInt64BitStatics2_Vtbl { #[cfg(not(feature = "Storage_Streams"))] CreateFromBuffer: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITensorInt8Bit(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITensorInt8Bit { - type Vtable = ITensorInt8Bit_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITensorInt8Bit { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcddd97c5_ffd8_4fef_aefb_30e1a485b2ee); -} +::windows_core::imp::com_interface!(ITensorInt8Bit, ITensorInt8Bit_Vtbl, 0xcddd97c5_ffd8_4fef_aefb_30e1a485b2ee); #[repr(C)] #[doc(hidden)] pub struct ITensorInt8Bit_Vtbl { @@ -1070,16 +651,7 @@ pub struct ITensorInt8Bit_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetAsVectorView: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITensorInt8BitStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITensorInt8BitStatics { - type Vtable = ITensorInt8BitStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITensorInt8BitStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb1a12284_095c_4c76_a661_ac4cee1f3e8b); -} +::windows_core::imp::com_interface!(ITensorInt8BitStatics, ITensorInt8BitStatics_Vtbl, 0xb1a12284_095c_4c76_a661_ac4cee1f3e8b); #[repr(C)] #[doc(hidden)] pub struct ITensorInt8BitStatics_Vtbl { @@ -1098,16 +670,7 @@ pub struct ITensorInt8BitStatics_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] CreateFromIterable: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITensorInt8BitStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITensorInt8BitStatics2 { - type Vtable = ITensorInt8BitStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITensorInt8BitStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc0d59637_c468_56fb_9535_c052bdb93dc0); -} +::windows_core::imp::com_interface!(ITensorInt8BitStatics2, ITensorInt8BitStatics2_Vtbl, 0xc0d59637_c468_56fb_9535_c052bdb93dc0); #[repr(C)] #[doc(hidden)] pub struct ITensorInt8BitStatics2_Vtbl { @@ -1118,16 +681,7 @@ pub struct ITensorInt8BitStatics2_Vtbl { #[cfg(not(feature = "Storage_Streams"))] CreateFromBuffer: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITensorString(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITensorString { - type Vtable = ITensorString_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITensorString { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x582335c8_bdb1_4610_bc75_35e9cbf009b7); -} +::windows_core::imp::com_interface!(ITensorString, ITensorString_Vtbl, 0x582335c8_bdb1_4610_bc75_35e9cbf009b7); #[repr(C)] #[doc(hidden)] pub struct ITensorString_Vtbl { @@ -1137,16 +691,7 @@ pub struct ITensorString_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetAsVectorView: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITensorStringStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITensorStringStatics { - type Vtable = ITensorStringStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITensorStringStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x83623324_cf26_4f17_a2d4_20ef8d097d53); -} +::windows_core::imp::com_interface!(ITensorStringStatics, ITensorStringStatics_Vtbl, 0x83623324_cf26_4f17_a2d4_20ef8d097d53); #[repr(C)] #[doc(hidden)] pub struct ITensorStringStatics_Vtbl { @@ -1165,32 +710,14 @@ pub struct ITensorStringStatics_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] CreateFromIterable: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITensorStringStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITensorStringStatics2 { - type Vtable = ITensorStringStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITensorStringStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9e355ed0_c8e2_5254_9137_0193a3668fd8); -} +::windows_core::imp::com_interface!(ITensorStringStatics2, ITensorStringStatics2_Vtbl, 0x9e355ed0_c8e2_5254_9137_0193a3668fd8); #[repr(C)] #[doc(hidden)] pub struct ITensorStringStatics2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateFromShapeArrayAndDataArray: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, shape_array_size: u32, shape: *const i64, data_array_size: u32, data: *const ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITensorUInt16Bit(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITensorUInt16Bit { - type Vtable = ITensorUInt16Bit_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITensorUInt16Bit { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x68140f4b_23c0_42f3_81f6_a891c011bc3f); -} +::windows_core::imp::com_interface!(ITensorUInt16Bit, ITensorUInt16Bit_Vtbl, 0x68140f4b_23c0_42f3_81f6_a891c011bc3f); #[repr(C)] #[doc(hidden)] pub struct ITensorUInt16Bit_Vtbl { @@ -1200,16 +727,7 @@ pub struct ITensorUInt16Bit_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetAsVectorView: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITensorUInt16BitStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITensorUInt16BitStatics { - type Vtable = ITensorUInt16BitStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITensorUInt16BitStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5df745dd_028a_481a_a27c_c7e6435e52dd); -} +::windows_core::imp::com_interface!(ITensorUInt16BitStatics, ITensorUInt16BitStatics_Vtbl, 0x5df745dd_028a_481a_a27c_c7e6435e52dd); #[repr(C)] #[doc(hidden)] pub struct ITensorUInt16BitStatics_Vtbl { @@ -1228,16 +746,7 @@ pub struct ITensorUInt16BitStatics_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] CreateFromIterable: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITensorUInt16BitStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITensorUInt16BitStatics2 { - type Vtable = ITensorUInt16BitStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITensorUInt16BitStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8af40c64_d69f_5315_9348_490877bbd642); -} +::windows_core::imp::com_interface!(ITensorUInt16BitStatics2, ITensorUInt16BitStatics2_Vtbl, 0x8af40c64_d69f_5315_9348_490877bbd642); #[repr(C)] #[doc(hidden)] pub struct ITensorUInt16BitStatics2_Vtbl { @@ -1248,16 +757,7 @@ pub struct ITensorUInt16BitStatics2_Vtbl { #[cfg(not(feature = "Storage_Streams"))] CreateFromBuffer: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITensorUInt32Bit(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITensorUInt32Bit { - type Vtable = ITensorUInt32Bit_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITensorUInt32Bit { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd8c9c2ff_7511_45a3_bfac_c38f370d2237); -} +::windows_core::imp::com_interface!(ITensorUInt32Bit, ITensorUInt32Bit_Vtbl, 0xd8c9c2ff_7511_45a3_bfac_c38f370d2237); #[repr(C)] #[doc(hidden)] pub struct ITensorUInt32Bit_Vtbl { @@ -1267,16 +767,7 @@ pub struct ITensorUInt32Bit_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetAsVectorView: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITensorUInt32BitStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITensorUInt32BitStatics { - type Vtable = ITensorUInt32BitStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITensorUInt32BitStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x417c3837_e773_4378_8e7f_0cc33dbea697); -} +::windows_core::imp::com_interface!(ITensorUInt32BitStatics, ITensorUInt32BitStatics_Vtbl, 0x417c3837_e773_4378_8e7f_0cc33dbea697); #[repr(C)] #[doc(hidden)] pub struct ITensorUInt32BitStatics_Vtbl { @@ -1295,16 +786,7 @@ pub struct ITensorUInt32BitStatics_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] CreateFromIterable: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITensorUInt32BitStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITensorUInt32BitStatics2 { - type Vtable = ITensorUInt32BitStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITensorUInt32BitStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xef1a1f1c_314e_569d_b496_5c8447d20cd2); -} +::windows_core::imp::com_interface!(ITensorUInt32BitStatics2, ITensorUInt32BitStatics2_Vtbl, 0xef1a1f1c_314e_569d_b496_5c8447d20cd2); #[repr(C)] #[doc(hidden)] pub struct ITensorUInt32BitStatics2_Vtbl { @@ -1315,16 +797,7 @@ pub struct ITensorUInt32BitStatics2_Vtbl { #[cfg(not(feature = "Storage_Streams"))] CreateFromBuffer: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITensorUInt64Bit(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITensorUInt64Bit { - type Vtable = ITensorUInt64Bit_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITensorUInt64Bit { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2e70ffad_04bf_4825_839a_82baef8c7886); -} +::windows_core::imp::com_interface!(ITensorUInt64Bit, ITensorUInt64Bit_Vtbl, 0x2e70ffad_04bf_4825_839a_82baef8c7886); #[repr(C)] #[doc(hidden)] pub struct ITensorUInt64Bit_Vtbl { @@ -1334,16 +807,7 @@ pub struct ITensorUInt64Bit_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetAsVectorView: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITensorUInt64BitStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITensorUInt64BitStatics { - type Vtable = ITensorUInt64BitStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITensorUInt64BitStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7a7e20eb_242f_47cb_a9c6_f602ecfbfee4); -} +::windows_core::imp::com_interface!(ITensorUInt64BitStatics, ITensorUInt64BitStatics_Vtbl, 0x7a7e20eb_242f_47cb_a9c6_f602ecfbfee4); #[repr(C)] #[doc(hidden)] pub struct ITensorUInt64BitStatics_Vtbl { @@ -1362,16 +826,7 @@ pub struct ITensorUInt64BitStatics_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] CreateFromIterable: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITensorUInt64BitStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITensorUInt64BitStatics2 { - type Vtable = ITensorUInt64BitStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITensorUInt64BitStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x085a687d_67e1_5b1e_b232_4fabe9ca20b3); -} +::windows_core::imp::com_interface!(ITensorUInt64BitStatics2, ITensorUInt64BitStatics2_Vtbl, 0x085a687d_67e1_5b1e_b232_4fabe9ca20b3); #[repr(C)] #[doc(hidden)] pub struct ITensorUInt64BitStatics2_Vtbl { @@ -1382,16 +837,7 @@ pub struct ITensorUInt64BitStatics2_Vtbl { #[cfg(not(feature = "Storage_Streams"))] CreateFromBuffer: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITensorUInt8Bit(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITensorUInt8Bit { - type Vtable = ITensorUInt8Bit_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITensorUInt8Bit { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x58e1ae27_622b_48e3_be22_d867aed1daac); -} +::windows_core::imp::com_interface!(ITensorUInt8Bit, ITensorUInt8Bit_Vtbl, 0x58e1ae27_622b_48e3_be22_d867aed1daac); #[repr(C)] #[doc(hidden)] pub struct ITensorUInt8Bit_Vtbl { @@ -1401,16 +847,7 @@ pub struct ITensorUInt8Bit_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetAsVectorView: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITensorUInt8BitStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITensorUInt8BitStatics { - type Vtable = ITensorUInt8BitStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITensorUInt8BitStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x05f67583_bc24_4220_8a41_2dcd8c5ed33c); -} +::windows_core::imp::com_interface!(ITensorUInt8BitStatics, ITensorUInt8BitStatics_Vtbl, 0x05f67583_bc24_4220_8a41_2dcd8c5ed33c); #[repr(C)] #[doc(hidden)] pub struct ITensorUInt8BitStatics_Vtbl { @@ -1429,16 +866,7 @@ pub struct ITensorUInt8BitStatics_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] CreateFromIterable: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITensorUInt8BitStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITensorUInt8BitStatics2 { - type Vtable = ITensorUInt8BitStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITensorUInt8BitStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2ba042d6_373e_5a3a_a2fc_a6c41bd52789); -} +::windows_core::imp::com_interface!(ITensorUInt8BitStatics2, ITensorUInt8BitStatics2_Vtbl, 0x2ba042d6_373e_5a3a_a2fc_a6c41bd52789); #[repr(C)] #[doc(hidden)] pub struct ITensorUInt8BitStatics2_Vtbl { @@ -1452,6 +880,8 @@ pub struct ITensorUInt8BitStatics2_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ImageFeatureDescriptor(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ImageFeatureDescriptor, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ImageFeatureDescriptor, ILearningModelFeatureDescriptor); impl ImageFeatureDescriptor { #[doc = "Required features: `\"Graphics_Imaging\"`"] #[cfg(feature = "Graphics_Imaging")] @@ -1486,35 +916,35 @@ impl ImageFeatureDescriptor { } } pub fn PixelRange(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PixelRange)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Name(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Name)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Description(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Description)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsRequired(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsRequired)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1526,20 +956,18 @@ impl ::windows_core::RuntimeType for ImageFeatureDescriptor { } unsafe impl ::windows_core::Interface for ImageFeatureDescriptor { type Vtable = IImageFeatureDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ImageFeatureDescriptor { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ImageFeatureDescriptor { const NAME: &'static str = "Windows.AI.MachineLearning.ImageFeatureDescriptor"; } -::windows_core::imp::interface_hierarchy!(ImageFeatureDescriptor, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ImageFeatureDescriptor {} unsafe impl ::core::marker::Send for ImageFeatureDescriptor {} unsafe impl ::core::marker::Sync for ImageFeatureDescriptor {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ImageFeatureValue(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ImageFeatureValue, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ImageFeatureValue, ILearningModelFeatureValue); impl ImageFeatureValue { #[doc = "Required features: `\"Media\"`"] #[cfg(feature = "Media")] @@ -1562,7 +990,7 @@ impl ImageFeatureValue { }) } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1579,23 +1007,21 @@ impl ::windows_core::RuntimeType for ImageFeatureValue { } unsafe impl ::windows_core::Interface for ImageFeatureValue { type Vtable = IImageFeatureValue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ImageFeatureValue { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ImageFeatureValue { const NAME: &'static str = "Windows.AI.MachineLearning.ImageFeatureValue"; } -::windows_core::imp::interface_hierarchy!(ImageFeatureValue, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ImageFeatureValue {} unsafe impl ::core::marker::Send for ImageFeatureValue {} unsafe impl ::core::marker::Sync for ImageFeatureValue {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LearningModel(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LearningModel, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(LearningModel, super::super::Foundation::IClosable); impl LearningModel { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Author(&self) -> ::windows_core::Result<::windows_core::HSTRING> { @@ -1664,22 +1090,22 @@ impl LearningModel { #[cfg(feature = "Storage")] pub fn LoadFromStorageFileAsync(modelfile: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::ILearningModelStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).LoadFromStorageFileAsync)(::windows_core::Interface::as_raw(this), modelfile.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).LoadFromStorageFileAsync)(::windows_core::Interface::as_raw(this), modelfile.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn LoadFromStreamAsync(modelstream: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::ILearningModelStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).LoadFromStreamAsync)(::windows_core::Interface::as_raw(this), modelstream.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).LoadFromStreamAsync)(::windows_core::Interface::as_raw(this), modelstream.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn LoadFromFilePath(filepath: &::windows_core::HSTRING) -> ::windows_core::Result { @@ -1692,56 +1118,56 @@ impl LearningModel { #[cfg(feature = "Storage_Streams")] pub fn LoadFromStream(modelstream: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::ILearningModelStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).LoadFromStream)(::windows_core::Interface::as_raw(this), modelstream.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).LoadFromStream)(::windows_core::Interface::as_raw(this), modelstream.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Storage\"`"] #[cfg(feature = "Storage")] pub fn LoadFromStorageFileWithOperatorProviderAsync(modelfile: P0, operatorprovider: P1) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { Self::ILearningModelStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).LoadFromStorageFileWithOperatorProviderAsync)(::windows_core::Interface::as_raw(this), modelfile.try_into_param()?.abi(), operatorprovider.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).LoadFromStorageFileWithOperatorProviderAsync)(::windows_core::Interface::as_raw(this), modelfile.into_param().abi(), operatorprovider.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn LoadFromStreamWithOperatorProviderAsync(modelstream: P0, operatorprovider: P1) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { Self::ILearningModelStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).LoadFromStreamWithOperatorProviderAsync)(::windows_core::Interface::as_raw(this), modelstream.try_into_param()?.abi(), operatorprovider.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).LoadFromStreamWithOperatorProviderAsync)(::windows_core::Interface::as_raw(this), modelstream.into_param().abi(), operatorprovider.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn LoadFromFilePathWithOperatorProvider(filepath: &::windows_core::HSTRING, operatorprovider: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).LoadFromFilePathWithOperatorProvider)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(filepath), operatorprovider.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn LoadFromStreamWithOperatorProvider(modelstream: P0, operatorprovider: P1) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { Self::ILearningModelStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).LoadFromStreamWithOperatorProvider)(::windows_core::Interface::as_raw(this), modelstream.try_into_param()?.abi(), operatorprovider.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).LoadFromStreamWithOperatorProvider)(::windows_core::Interface::as_raw(this), modelstream.into_param().abi(), operatorprovider.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -1755,25 +1181,24 @@ impl ::windows_core::RuntimeType for LearningModel { } unsafe impl ::windows_core::Interface for LearningModel { type Vtable = ILearningModel_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LearningModel { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LearningModel { const NAME: &'static str = "Windows.AI.MachineLearning.LearningModel"; } -::windows_core::imp::interface_hierarchy!(LearningModel, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for LearningModel {} unsafe impl ::core::marker::Send for LearningModel {} unsafe impl ::core::marker::Sync for LearningModel {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LearningModelBinding(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LearningModelBinding, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(LearningModelBinding, super::super::Foundation::Collections::IIterable::>, super::super::Foundation::Collections::IMapView::<::windows_core::HSTRING, ::windows_core::IInspectable>); impl LearningModelBinding { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> ::windows_core::Result>> { - let this = &::windows_core::ComInterface::cast::>>(self)?; + let this = &::windows_core::Interface::cast::>>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1791,10 +1216,10 @@ impl LearningModelBinding { pub fn BindWithProperties(&self, name: &::windows_core::HSTRING, value: P0, props: P1) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, - P1: ::windows_core::TryIntoParam, + P1: ::windows_core::IntoParam, { 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.try_into_param()?.abi()).ok() } + 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() } } pub fn Clear(&self) -> ::windows_core::Result<()> { let this = self; @@ -1812,7 +1237,7 @@ impl LearningModelBinding { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Lookup(&self, key: &::windows_core::HSTRING) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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), ::core::mem::transmute_copy(key), &mut result__).from_abi(result__) @@ -1821,7 +1246,7 @@ impl LearningModelBinding { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Size(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Size)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1830,7 +1255,7 @@ impl LearningModelBinding { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn HasKey(&self, key: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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), ::core::mem::transmute_copy(key), &mut result__).from_abi(result__) @@ -1839,7 +1264,7 @@ impl LearningModelBinding { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Split(&self, first: &mut ::core::option::Option>, second: &mut ::core::option::Option>) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).Split)(::windows_core::Interface::as_raw(this), first as *mut _ as _, second as *mut _ as _).ok() } } #[doc(hidden)] @@ -1853,9 +1278,7 @@ impl ::windows_core::RuntimeType for LearningModelBinding { } unsafe impl ::windows_core::Interface for LearningModelBinding { type Vtable = ILearningModelBinding_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LearningModelBinding { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LearningModelBinding { const NAME: &'static str = "Windows.AI.MachineLearning.LearningModelBinding"; @@ -1876,16 +1299,12 @@ impl ::core::iter::IntoIterator for &LearningModelBinding { self.First().unwrap() } } -::windows_core::imp::interface_hierarchy!(LearningModelBinding, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto>> for LearningModelBinding {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for LearningModelBinding {} unsafe impl ::core::marker::Send for LearningModelBinding {} unsafe impl ::core::marker::Sync for LearningModelBinding {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LearningModelDevice(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LearningModelDevice, ::windows_core::IUnknown, ::windows_core::IInspectable); impl LearningModelDevice { #[doc = "Required features: `\"Graphics\"`"] #[cfg(feature = "Graphics")] @@ -1915,11 +1334,11 @@ impl LearningModelDevice { #[cfg(feature = "Graphics_DirectX_Direct3D11")] pub fn CreateFromDirect3D11Device(device: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::ILearningModelDeviceStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateFromDirect3D11Device)(::windows_core::Interface::as_raw(this), device.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateFromDirect3D11Device)(::windows_core::Interface::as_raw(this), device.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -1938,19 +1357,17 @@ impl ::windows_core::RuntimeType for LearningModelDevice { } unsafe impl ::windows_core::Interface for LearningModelDevice { type Vtable = ILearningModelDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LearningModelDevice { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LearningModelDevice { const NAME: &'static str = "Windows.AI.MachineLearning.LearningModelDevice"; } -::windows_core::imp::interface_hierarchy!(LearningModelDevice, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for LearningModelDevice {} unsafe impl ::core::marker::Sync for LearningModelDevice {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LearningModelEvaluationResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LearningModelEvaluationResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl LearningModelEvaluationResult { pub fn CorrelationId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1988,22 +1405,21 @@ impl ::windows_core::RuntimeType for LearningModelEvaluationResult { } unsafe impl ::windows_core::Interface for LearningModelEvaluationResult { type Vtable = ILearningModelEvaluationResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LearningModelEvaluationResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LearningModelEvaluationResult { const NAME: &'static str = "Windows.AI.MachineLearning.LearningModelEvaluationResult"; } -::windows_core::imp::interface_hierarchy!(LearningModelEvaluationResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for LearningModelEvaluationResult {} unsafe impl ::core::marker::Sync for LearningModelEvaluationResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LearningModelSession(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LearningModelSession, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(LearningModelSession, super::super::Foundation::IClosable); impl LearningModelSession { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Model(&self) -> ::windows_core::Result { @@ -2043,12 +1459,12 @@ impl LearningModelSession { #[cfg(feature = "Foundation_Collections")] pub fn EvaluateFeaturesAsync(&self, features: P0, correlationid: &::windows_core::HSTRING) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).EvaluateFeaturesAsync)(::windows_core::Interface::as_raw(this), features.try_into_param()?.abi(), ::core::mem::transmute_copy(correlationid), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).EvaluateFeaturesAsync)(::windows_core::Interface::as_raw(this), features.into_param().abi(), ::core::mem::transmute_copy(correlationid), &mut result__).from_abi(result__) } } pub fn Evaluate(&self, bindings: P0, correlationid: &::windows_core::HSTRING) -> ::windows_core::Result @@ -2065,12 +1481,12 @@ impl LearningModelSession { #[cfg(feature = "Foundation_Collections")] pub fn EvaluateFeatures(&self, features: P0, correlationid: &::windows_core::HSTRING) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).EvaluateFeatures)(::windows_core::Interface::as_raw(this), features.try_into_param()?.abi(), ::core::mem::transmute_copy(correlationid), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).EvaluateFeatures)(::windows_core::Interface::as_raw(this), features.into_param().abi(), ::core::mem::transmute_copy(correlationid), &mut result__).from_abi(result__) } } pub fn CreateFromModel(model: P0) -> ::windows_core::Result @@ -2119,20 +1535,17 @@ impl ::windows_core::RuntimeType for LearningModelSession { } unsafe impl ::windows_core::Interface for LearningModelSession { type Vtable = ILearningModelSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LearningModelSession { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LearningModelSession { const NAME: &'static str = "Windows.AI.MachineLearning.LearningModelSession"; } -::windows_core::imp::interface_hierarchy!(LearningModelSession, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for LearningModelSession {} unsafe impl ::core::marker::Send for LearningModelSession {} unsafe impl ::core::marker::Sync for LearningModelSession {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LearningModelSessionOptions(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LearningModelSessionOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); impl LearningModelSessionOptions { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2153,18 +1566,18 @@ impl LearningModelSessionOptions { unsafe { (::windows_core::Interface::vtable(this).SetBatchSizeOverride)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn CloseModelOnSessionCreation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CloseModelOnSessionCreation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetCloseModelOnSessionCreation(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCloseModelOnSessionCreation)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn OverrideNamedDimension(&self, name: &::windows_core::HSTRING, dimension: u32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).OverrideNamedDimension)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(name), dimension).ok() } } } @@ -2173,43 +1586,42 @@ impl ::windows_core::RuntimeType for LearningModelSessionOptions { } unsafe impl ::windows_core::Interface for LearningModelSessionOptions { type Vtable = ILearningModelSessionOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LearningModelSessionOptions { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LearningModelSessionOptions { const NAME: &'static str = "Windows.AI.MachineLearning.LearningModelSessionOptions"; } -::windows_core::imp::interface_hierarchy!(LearningModelSessionOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for LearningModelSessionOptions {} unsafe impl ::core::marker::Sync for LearningModelSessionOptions {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MapFeatureDescriptor(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MapFeatureDescriptor, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(MapFeatureDescriptor, ILearningModelFeatureDescriptor); impl MapFeatureDescriptor { pub fn Name(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Name)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Description(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Description)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsRequired(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsRequired)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2235,44 +1647,42 @@ impl ::windows_core::RuntimeType for MapFeatureDescriptor { } unsafe impl ::windows_core::Interface for MapFeatureDescriptor { type Vtable = IMapFeatureDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MapFeatureDescriptor { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MapFeatureDescriptor { const NAME: &'static str = "Windows.AI.MachineLearning.MapFeatureDescriptor"; } -::windows_core::imp::interface_hierarchy!(MapFeatureDescriptor, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for MapFeatureDescriptor {} unsafe impl ::core::marker::Send for MapFeatureDescriptor {} unsafe impl ::core::marker::Sync for MapFeatureDescriptor {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SequenceFeatureDescriptor(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SequenceFeatureDescriptor, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(SequenceFeatureDescriptor, ILearningModelFeatureDescriptor); impl SequenceFeatureDescriptor { pub fn Name(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Name)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Description(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Description)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsRequired(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsRequired)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2291,41 +1701,39 @@ impl ::windows_core::RuntimeType for SequenceFeatureDescriptor { } unsafe impl ::windows_core::Interface for SequenceFeatureDescriptor { type Vtable = ISequenceFeatureDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SequenceFeatureDescriptor { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SequenceFeatureDescriptor { const NAME: &'static str = "Windows.AI.MachineLearning.SequenceFeatureDescriptor"; } -::windows_core::imp::interface_hierarchy!(SequenceFeatureDescriptor, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for SequenceFeatureDescriptor {} unsafe impl ::core::marker::Send for SequenceFeatureDescriptor {} unsafe impl ::core::marker::Sync for SequenceFeatureDescriptor {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct TensorBoolean(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(TensorBoolean, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(TensorBoolean, super::super::Foundation::IClosable, ILearningModelFeatureValue, super::super::Foundation::IMemoryBuffer, ITensor); impl TensorBoolean { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CreateReference(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateReference)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TensorKind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TensorKind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2334,7 +1742,7 @@ impl TensorBoolean { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Shape(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Shape)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2359,34 +1767,34 @@ impl TensorBoolean { #[cfg(feature = "Foundation_Collections")] pub fn Create2(shape: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::ITensorBooleanStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).Create2)(::windows_core::Interface::as_raw(this), shape.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).Create2)(::windows_core::Interface::as_raw(this), shape.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn CreateFromArray(shape: P0, data: &[bool]) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::ITensorBooleanStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateFromArray)(::windows_core::Interface::as_raw(this), shape.try_into_param()?.abi(), data.len().try_into().unwrap(), data.as_ptr(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn CreateFromIterable(shape: P0, data: P1) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, - P1: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, + P1: ::windows_core::IntoParam>, { Self::ITensorBooleanStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateFromIterable)(::windows_core::Interface::as_raw(this), shape.try_into_param()?.abi(), data.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateFromIterable)(::windows_core::Interface::as_raw(this), shape.into_param().abi(), data.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn CreateFromShapeArrayAndDataArray(shape: &[i64], data: &[bool]) -> ::windows_core::Result { @@ -2399,11 +1807,11 @@ impl TensorBoolean { #[cfg(feature = "Storage_Streams")] pub fn CreateFromBuffer(shape: &[i64], buffer: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } #[doc(hidden)] @@ -2422,44 +1830,39 @@ impl ::windows_core::RuntimeType for TensorBoolean { } unsafe impl ::windows_core::Interface for TensorBoolean { type Vtable = ITensorBoolean_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TensorBoolean { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for TensorBoolean { const NAME: &'static str = "Windows.AI.MachineLearning.TensorBoolean"; } -::windows_core::imp::interface_hierarchy!(TensorBoolean, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for TensorBoolean {} -impl ::windows_core::CanTryInto for TensorBoolean {} -impl ::windows_core::CanTryInto for TensorBoolean {} -impl ::windows_core::CanTryInto for TensorBoolean {} unsafe impl ::core::marker::Send for TensorBoolean {} unsafe impl ::core::marker::Sync for TensorBoolean {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct TensorDouble(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(TensorDouble, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(TensorDouble, super::super::Foundation::IClosable, ILearningModelFeatureValue, super::super::Foundation::IMemoryBuffer, ITensor); impl TensorDouble { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CreateReference(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateReference)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TensorKind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TensorKind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2468,7 +1871,7 @@ impl TensorDouble { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Shape(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Shape)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2493,34 +1896,34 @@ impl TensorDouble { #[cfg(feature = "Foundation_Collections")] pub fn Create2(shape: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::ITensorDoubleStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).Create2)(::windows_core::Interface::as_raw(this), shape.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).Create2)(::windows_core::Interface::as_raw(this), shape.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn CreateFromArray(shape: P0, data: &[f64]) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::ITensorDoubleStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateFromArray)(::windows_core::Interface::as_raw(this), shape.try_into_param()?.abi(), data.len().try_into().unwrap(), data.as_ptr(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn CreateFromIterable(shape: P0, data: P1) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, - P1: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, + P1: ::windows_core::IntoParam>, { Self::ITensorDoubleStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateFromIterable)(::windows_core::Interface::as_raw(this), shape.try_into_param()?.abi(), data.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateFromIterable)(::windows_core::Interface::as_raw(this), shape.into_param().abi(), data.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn CreateFromShapeArrayAndDataArray(shape: &[i64], data: &[f64]) -> ::windows_core::Result { @@ -2533,11 +1936,11 @@ impl TensorDouble { #[cfg(feature = "Storage_Streams")] pub fn CreateFromBuffer(shape: &[i64], buffer: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } #[doc(hidden)] @@ -2556,47 +1959,42 @@ impl ::windows_core::RuntimeType for TensorDouble { } unsafe impl ::windows_core::Interface for TensorDouble { type Vtable = ITensorDouble_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TensorDouble { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for TensorDouble { const NAME: &'static str = "Windows.AI.MachineLearning.TensorDouble"; } -::windows_core::imp::interface_hierarchy!(TensorDouble, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for TensorDouble {} -impl ::windows_core::CanTryInto for TensorDouble {} -impl ::windows_core::CanTryInto for TensorDouble {} -impl ::windows_core::CanTryInto for TensorDouble {} unsafe impl ::core::marker::Send for TensorDouble {} unsafe impl ::core::marker::Sync for TensorDouble {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct TensorFeatureDescriptor(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(TensorFeatureDescriptor, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(TensorFeatureDescriptor, ILearningModelFeatureDescriptor); impl TensorFeatureDescriptor { pub fn Name(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Name)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Description(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Description)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsRequired(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsRequired)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2624,41 +2022,39 @@ impl ::windows_core::RuntimeType for TensorFeatureDescriptor { } unsafe impl ::windows_core::Interface for TensorFeatureDescriptor { type Vtable = ITensorFeatureDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TensorFeatureDescriptor { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for TensorFeatureDescriptor { const NAME: &'static str = "Windows.AI.MachineLearning.TensorFeatureDescriptor"; } -::windows_core::imp::interface_hierarchy!(TensorFeatureDescriptor, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for TensorFeatureDescriptor {} unsafe impl ::core::marker::Send for TensorFeatureDescriptor {} unsafe impl ::core::marker::Sync for TensorFeatureDescriptor {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct TensorFloat(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(TensorFloat, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(TensorFloat, super::super::Foundation::IClosable, ILearningModelFeatureValue, super::super::Foundation::IMemoryBuffer, ITensor); impl TensorFloat { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CreateReference(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateReference)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TensorKind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TensorKind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2667,7 +2063,7 @@ impl TensorFloat { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Shape(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Shape)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2692,34 +2088,34 @@ impl TensorFloat { #[cfg(feature = "Foundation_Collections")] pub fn Create2(shape: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::ITensorFloatStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).Create2)(::windows_core::Interface::as_raw(this), shape.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).Create2)(::windows_core::Interface::as_raw(this), shape.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn CreateFromArray(shape: P0, data: &[f32]) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::ITensorFloatStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateFromArray)(::windows_core::Interface::as_raw(this), shape.try_into_param()?.abi(), data.len().try_into().unwrap(), data.as_ptr(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn CreateFromIterable(shape: P0, data: P1) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, - P1: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, + P1: ::windows_core::IntoParam>, { Self::ITensorFloatStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateFromIterable)(::windows_core::Interface::as_raw(this), shape.try_into_param()?.abi(), data.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateFromIterable)(::windows_core::Interface::as_raw(this), shape.into_param().abi(), data.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn CreateFromShapeArrayAndDataArray(shape: &[i64], data: &[f32]) -> ::windows_core::Result { @@ -2732,11 +2128,11 @@ impl TensorFloat { #[cfg(feature = "Storage_Streams")] pub fn CreateFromBuffer(shape: &[i64], buffer: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } #[doc(hidden)] @@ -2755,44 +2151,39 @@ impl ::windows_core::RuntimeType for TensorFloat { } unsafe impl ::windows_core::Interface for TensorFloat { type Vtable = ITensorFloat_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TensorFloat { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for TensorFloat { const NAME: &'static str = "Windows.AI.MachineLearning.TensorFloat"; } -::windows_core::imp::interface_hierarchy!(TensorFloat, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for TensorFloat {} -impl ::windows_core::CanTryInto for TensorFloat {} -impl ::windows_core::CanTryInto for TensorFloat {} -impl ::windows_core::CanTryInto for TensorFloat {} unsafe impl ::core::marker::Send for TensorFloat {} unsafe impl ::core::marker::Sync for TensorFloat {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct TensorFloat16Bit(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(TensorFloat16Bit, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(TensorFloat16Bit, super::super::Foundation::IClosable, ILearningModelFeatureValue, super::super::Foundation::IMemoryBuffer, ITensor); impl TensorFloat16Bit { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CreateReference(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateReference)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TensorKind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TensorKind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2801,7 +2192,7 @@ impl TensorFloat16Bit { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Shape(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Shape)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2826,34 +2217,34 @@ impl TensorFloat16Bit { #[cfg(feature = "Foundation_Collections")] pub fn Create2(shape: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::ITensorFloat16BitStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).Create2)(::windows_core::Interface::as_raw(this), shape.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).Create2)(::windows_core::Interface::as_raw(this), shape.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn CreateFromArray(shape: P0, data: &[f32]) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::ITensorFloat16BitStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateFromArray)(::windows_core::Interface::as_raw(this), shape.try_into_param()?.abi(), data.len().try_into().unwrap(), data.as_ptr(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn CreateFromIterable(shape: P0, data: P1) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, - P1: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, + P1: ::windows_core::IntoParam>, { Self::ITensorFloat16BitStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateFromIterable)(::windows_core::Interface::as_raw(this), shape.try_into_param()?.abi(), data.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateFromIterable)(::windows_core::Interface::as_raw(this), shape.into_param().abi(), data.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn CreateFromShapeArrayAndDataArray(shape: &[i64], data: &[f32]) -> ::windows_core::Result { @@ -2866,11 +2257,11 @@ impl TensorFloat16Bit { #[cfg(feature = "Storage_Streams")] pub fn CreateFromBuffer(shape: &[i64], buffer: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } #[doc(hidden)] @@ -2889,44 +2280,39 @@ impl ::windows_core::RuntimeType for TensorFloat16Bit { } unsafe impl ::windows_core::Interface for TensorFloat16Bit { type Vtable = ITensorFloat16Bit_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TensorFloat16Bit { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for TensorFloat16Bit { const NAME: &'static str = "Windows.AI.MachineLearning.TensorFloat16Bit"; } -::windows_core::imp::interface_hierarchy!(TensorFloat16Bit, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for TensorFloat16Bit {} -impl ::windows_core::CanTryInto for TensorFloat16Bit {} -impl ::windows_core::CanTryInto for TensorFloat16Bit {} -impl ::windows_core::CanTryInto for TensorFloat16Bit {} unsafe impl ::core::marker::Send for TensorFloat16Bit {} unsafe impl ::core::marker::Sync for TensorFloat16Bit {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct TensorInt16Bit(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(TensorInt16Bit, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(TensorInt16Bit, super::super::Foundation::IClosable, ILearningModelFeatureValue, super::super::Foundation::IMemoryBuffer, ITensor); impl TensorInt16Bit { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CreateReference(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateReference)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TensorKind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TensorKind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2935,7 +2321,7 @@ impl TensorInt16Bit { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Shape(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Shape)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2960,34 +2346,34 @@ impl TensorInt16Bit { #[cfg(feature = "Foundation_Collections")] pub fn Create2(shape: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::ITensorInt16BitStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).Create2)(::windows_core::Interface::as_raw(this), shape.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).Create2)(::windows_core::Interface::as_raw(this), shape.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn CreateFromArray(shape: P0, data: &[i16]) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::ITensorInt16BitStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateFromArray)(::windows_core::Interface::as_raw(this), shape.try_into_param()?.abi(), data.len().try_into().unwrap(), data.as_ptr(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn CreateFromIterable(shape: P0, data: P1) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, - P1: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, + P1: ::windows_core::IntoParam>, { Self::ITensorInt16BitStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateFromIterable)(::windows_core::Interface::as_raw(this), shape.try_into_param()?.abi(), data.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateFromIterable)(::windows_core::Interface::as_raw(this), shape.into_param().abi(), data.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn CreateFromShapeArrayAndDataArray(shape: &[i64], data: &[i16]) -> ::windows_core::Result { @@ -3000,11 +2386,11 @@ impl TensorInt16Bit { #[cfg(feature = "Storage_Streams")] pub fn CreateFromBuffer(shape: &[i64], buffer: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } #[doc(hidden)] @@ -3023,44 +2409,39 @@ impl ::windows_core::RuntimeType for TensorInt16Bit { } unsafe impl ::windows_core::Interface for TensorInt16Bit { type Vtable = ITensorInt16Bit_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TensorInt16Bit { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for TensorInt16Bit { const NAME: &'static str = "Windows.AI.MachineLearning.TensorInt16Bit"; } -::windows_core::imp::interface_hierarchy!(TensorInt16Bit, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for TensorInt16Bit {} -impl ::windows_core::CanTryInto for TensorInt16Bit {} -impl ::windows_core::CanTryInto for TensorInt16Bit {} -impl ::windows_core::CanTryInto for TensorInt16Bit {} unsafe impl ::core::marker::Send for TensorInt16Bit {} unsafe impl ::core::marker::Sync for TensorInt16Bit {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct TensorInt32Bit(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(TensorInt32Bit, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(TensorInt32Bit, super::super::Foundation::IClosable, ILearningModelFeatureValue, super::super::Foundation::IMemoryBuffer, ITensor); impl TensorInt32Bit { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CreateReference(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateReference)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TensorKind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TensorKind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3069,7 +2450,7 @@ impl TensorInt32Bit { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Shape(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Shape)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3094,34 +2475,34 @@ impl TensorInt32Bit { #[cfg(feature = "Foundation_Collections")] pub fn Create2(shape: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::ITensorInt32BitStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).Create2)(::windows_core::Interface::as_raw(this), shape.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).Create2)(::windows_core::Interface::as_raw(this), shape.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn CreateFromArray(shape: P0, data: &[i32]) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::ITensorInt32BitStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateFromArray)(::windows_core::Interface::as_raw(this), shape.try_into_param()?.abi(), data.len().try_into().unwrap(), data.as_ptr(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn CreateFromIterable(shape: P0, data: P1) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, - P1: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, + P1: ::windows_core::IntoParam>, { Self::ITensorInt32BitStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateFromIterable)(::windows_core::Interface::as_raw(this), shape.try_into_param()?.abi(), data.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateFromIterable)(::windows_core::Interface::as_raw(this), shape.into_param().abi(), data.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn CreateFromShapeArrayAndDataArray(shape: &[i64], data: &[i32]) -> ::windows_core::Result { @@ -3134,11 +2515,11 @@ impl TensorInt32Bit { #[cfg(feature = "Storage_Streams")] pub fn CreateFromBuffer(shape: &[i64], buffer: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } #[doc(hidden)] @@ -3157,44 +2538,39 @@ impl ::windows_core::RuntimeType for TensorInt32Bit { } unsafe impl ::windows_core::Interface for TensorInt32Bit { type Vtable = ITensorInt32Bit_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TensorInt32Bit { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for TensorInt32Bit { const NAME: &'static str = "Windows.AI.MachineLearning.TensorInt32Bit"; } -::windows_core::imp::interface_hierarchy!(TensorInt32Bit, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for TensorInt32Bit {} -impl ::windows_core::CanTryInto for TensorInt32Bit {} -impl ::windows_core::CanTryInto for TensorInt32Bit {} -impl ::windows_core::CanTryInto for TensorInt32Bit {} unsafe impl ::core::marker::Send for TensorInt32Bit {} unsafe impl ::core::marker::Sync for TensorInt32Bit {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct TensorInt64Bit(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(TensorInt64Bit, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(TensorInt64Bit, super::super::Foundation::IClosable, ILearningModelFeatureValue, super::super::Foundation::IMemoryBuffer, ITensor); impl TensorInt64Bit { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CreateReference(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateReference)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TensorKind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TensorKind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3203,7 +2579,7 @@ impl TensorInt64Bit { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Shape(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Shape)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3228,34 +2604,34 @@ impl TensorInt64Bit { #[cfg(feature = "Foundation_Collections")] pub fn Create2(shape: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::ITensorInt64BitStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).Create2)(::windows_core::Interface::as_raw(this), shape.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).Create2)(::windows_core::Interface::as_raw(this), shape.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn CreateFromArray(shape: P0, data: &[i64]) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::ITensorInt64BitStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateFromArray)(::windows_core::Interface::as_raw(this), shape.try_into_param()?.abi(), data.len().try_into().unwrap(), data.as_ptr(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn CreateFromIterable(shape: P0, data: P1) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, - P1: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, + P1: ::windows_core::IntoParam>, { Self::ITensorInt64BitStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateFromIterable)(::windows_core::Interface::as_raw(this), shape.try_into_param()?.abi(), data.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateFromIterable)(::windows_core::Interface::as_raw(this), shape.into_param().abi(), data.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn CreateFromShapeArrayAndDataArray(shape: &[i64], data: &[i64]) -> ::windows_core::Result { @@ -3268,11 +2644,11 @@ impl TensorInt64Bit { #[cfg(feature = "Storage_Streams")] pub fn CreateFromBuffer(shape: &[i64], buffer: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } #[doc(hidden)] @@ -3291,44 +2667,39 @@ impl ::windows_core::RuntimeType for TensorInt64Bit { } unsafe impl ::windows_core::Interface for TensorInt64Bit { type Vtable = ITensorInt64Bit_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TensorInt64Bit { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for TensorInt64Bit { const NAME: &'static str = "Windows.AI.MachineLearning.TensorInt64Bit"; } -::windows_core::imp::interface_hierarchy!(TensorInt64Bit, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for TensorInt64Bit {} -impl ::windows_core::CanTryInto for TensorInt64Bit {} -impl ::windows_core::CanTryInto for TensorInt64Bit {} -impl ::windows_core::CanTryInto for TensorInt64Bit {} unsafe impl ::core::marker::Send for TensorInt64Bit {} unsafe impl ::core::marker::Sync for TensorInt64Bit {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct TensorInt8Bit(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(TensorInt8Bit, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(TensorInt8Bit, super::super::Foundation::IClosable, ILearningModelFeatureValue, super::super::Foundation::IMemoryBuffer, ITensor); impl TensorInt8Bit { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CreateReference(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateReference)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TensorKind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TensorKind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3337,7 +2708,7 @@ impl TensorInt8Bit { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Shape(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Shape)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3362,34 +2733,34 @@ impl TensorInt8Bit { #[cfg(feature = "Foundation_Collections")] pub fn Create2(shape: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::ITensorInt8BitStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).Create2)(::windows_core::Interface::as_raw(this), shape.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).Create2)(::windows_core::Interface::as_raw(this), shape.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn CreateFromArray(shape: P0, data: &[u8]) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::ITensorInt8BitStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateFromArray)(::windows_core::Interface::as_raw(this), shape.try_into_param()?.abi(), data.len().try_into().unwrap(), data.as_ptr(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn CreateFromIterable(shape: P0, data: P1) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, - P1: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, + P1: ::windows_core::IntoParam>, { Self::ITensorInt8BitStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateFromIterable)(::windows_core::Interface::as_raw(this), shape.try_into_param()?.abi(), data.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateFromIterable)(::windows_core::Interface::as_raw(this), shape.into_param().abi(), data.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn CreateFromShapeArrayAndDataArray(shape: &[i64], data: &[u8]) -> ::windows_core::Result { @@ -3402,11 +2773,11 @@ impl TensorInt8Bit { #[cfg(feature = "Storage_Streams")] pub fn CreateFromBuffer(shape: &[i64], buffer: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } #[doc(hidden)] @@ -3425,44 +2796,39 @@ impl ::windows_core::RuntimeType for TensorInt8Bit { } unsafe impl ::windows_core::Interface for TensorInt8Bit { type Vtable = ITensorInt8Bit_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TensorInt8Bit { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for TensorInt8Bit { const NAME: &'static str = "Windows.AI.MachineLearning.TensorInt8Bit"; } -::windows_core::imp::interface_hierarchy!(TensorInt8Bit, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for TensorInt8Bit {} -impl ::windows_core::CanTryInto for TensorInt8Bit {} -impl ::windows_core::CanTryInto for TensorInt8Bit {} -impl ::windows_core::CanTryInto for TensorInt8Bit {} unsafe impl ::core::marker::Send for TensorInt8Bit {} unsafe impl ::core::marker::Sync for TensorInt8Bit {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct TensorString(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(TensorString, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(TensorString, super::super::Foundation::IClosable, ILearningModelFeatureValue, super::super::Foundation::IMemoryBuffer, ITensor); impl TensorString { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CreateReference(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateReference)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TensorKind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TensorKind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3471,7 +2837,7 @@ impl TensorString { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Shape(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Shape)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3496,34 +2862,34 @@ impl TensorString { #[cfg(feature = "Foundation_Collections")] pub fn Create2(shape: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::ITensorStringStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).Create2)(::windows_core::Interface::as_raw(this), shape.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).Create2)(::windows_core::Interface::as_raw(this), shape.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn CreateFromArray(shape: P0, data: &[::windows_core::HSTRING]) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::ITensorStringStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateFromArray)(::windows_core::Interface::as_raw(this), shape.try_into_param()?.abi(), data.len().try_into().unwrap(), ::core::mem::transmute(data.as_ptr()), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn CreateFromIterable(shape: P0, data: P1) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, - P1: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, + P1: ::windows_core::IntoParam>, { Self::ITensorStringStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateFromIterable)(::windows_core::Interface::as_raw(this), shape.try_into_param()?.abi(), data.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateFromIterable)(::windows_core::Interface::as_raw(this), shape.into_param().abi(), data.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn CreateFromShapeArrayAndDataArray(shape: &[i64], data: &[::windows_core::HSTRING]) -> ::windows_core::Result { @@ -3548,44 +2914,39 @@ impl ::windows_core::RuntimeType for TensorString { } unsafe impl ::windows_core::Interface for TensorString { type Vtable = ITensorString_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TensorString { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for TensorString { const NAME: &'static str = "Windows.AI.MachineLearning.TensorString"; } -::windows_core::imp::interface_hierarchy!(TensorString, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for TensorString {} -impl ::windows_core::CanTryInto for TensorString {} -impl ::windows_core::CanTryInto for TensorString {} -impl ::windows_core::CanTryInto for TensorString {} unsafe impl ::core::marker::Send for TensorString {} unsafe impl ::core::marker::Sync for TensorString {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct TensorUInt16Bit(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(TensorUInt16Bit, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(TensorUInt16Bit, super::super::Foundation::IClosable, ILearningModelFeatureValue, super::super::Foundation::IMemoryBuffer, ITensor); impl TensorUInt16Bit { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CreateReference(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateReference)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TensorKind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TensorKind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3594,7 +2955,7 @@ impl TensorUInt16Bit { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Shape(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Shape)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3619,34 +2980,34 @@ impl TensorUInt16Bit { #[cfg(feature = "Foundation_Collections")] pub fn Create2(shape: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::ITensorUInt16BitStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).Create2)(::windows_core::Interface::as_raw(this), shape.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).Create2)(::windows_core::Interface::as_raw(this), shape.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn CreateFromArray(shape: P0, data: &[u16]) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::ITensorUInt16BitStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateFromArray)(::windows_core::Interface::as_raw(this), shape.try_into_param()?.abi(), data.len().try_into().unwrap(), data.as_ptr(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn CreateFromIterable(shape: P0, data: P1) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, - P1: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, + P1: ::windows_core::IntoParam>, { Self::ITensorUInt16BitStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateFromIterable)(::windows_core::Interface::as_raw(this), shape.try_into_param()?.abi(), data.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateFromIterable)(::windows_core::Interface::as_raw(this), shape.into_param().abi(), data.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn CreateFromShapeArrayAndDataArray(shape: &[i64], data: &[u16]) -> ::windows_core::Result { @@ -3659,11 +3020,11 @@ impl TensorUInt16Bit { #[cfg(feature = "Storage_Streams")] pub fn CreateFromBuffer(shape: &[i64], buffer: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } #[doc(hidden)] @@ -3682,44 +3043,39 @@ impl ::windows_core::RuntimeType for TensorUInt16Bit { } unsafe impl ::windows_core::Interface for TensorUInt16Bit { type Vtable = ITensorUInt16Bit_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TensorUInt16Bit { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for TensorUInt16Bit { const NAME: &'static str = "Windows.AI.MachineLearning.TensorUInt16Bit"; } -::windows_core::imp::interface_hierarchy!(TensorUInt16Bit, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for TensorUInt16Bit {} -impl ::windows_core::CanTryInto for TensorUInt16Bit {} -impl ::windows_core::CanTryInto for TensorUInt16Bit {} -impl ::windows_core::CanTryInto for TensorUInt16Bit {} unsafe impl ::core::marker::Send for TensorUInt16Bit {} unsafe impl ::core::marker::Sync for TensorUInt16Bit {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct TensorUInt32Bit(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(TensorUInt32Bit, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(TensorUInt32Bit, super::super::Foundation::IClosable, ILearningModelFeatureValue, super::super::Foundation::IMemoryBuffer, ITensor); impl TensorUInt32Bit { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CreateReference(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateReference)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TensorKind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TensorKind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3728,7 +3084,7 @@ impl TensorUInt32Bit { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Shape(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Shape)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3753,34 +3109,34 @@ impl TensorUInt32Bit { #[cfg(feature = "Foundation_Collections")] pub fn Create2(shape: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::ITensorUInt32BitStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).Create2)(::windows_core::Interface::as_raw(this), shape.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).Create2)(::windows_core::Interface::as_raw(this), shape.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn CreateFromArray(shape: P0, data: &[u32]) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::ITensorUInt32BitStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateFromArray)(::windows_core::Interface::as_raw(this), shape.try_into_param()?.abi(), data.len().try_into().unwrap(), data.as_ptr(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn CreateFromIterable(shape: P0, data: P1) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, - P1: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, + P1: ::windows_core::IntoParam>, { Self::ITensorUInt32BitStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateFromIterable)(::windows_core::Interface::as_raw(this), shape.try_into_param()?.abi(), data.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateFromIterable)(::windows_core::Interface::as_raw(this), shape.into_param().abi(), data.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn CreateFromShapeArrayAndDataArray(shape: &[i64], data: &[u32]) -> ::windows_core::Result { @@ -3793,11 +3149,11 @@ impl TensorUInt32Bit { #[cfg(feature = "Storage_Streams")] pub fn CreateFromBuffer(shape: &[i64], buffer: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } #[doc(hidden)] @@ -3816,44 +3172,39 @@ impl ::windows_core::RuntimeType for TensorUInt32Bit { } unsafe impl ::windows_core::Interface for TensorUInt32Bit { type Vtable = ITensorUInt32Bit_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TensorUInt32Bit { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for TensorUInt32Bit { const NAME: &'static str = "Windows.AI.MachineLearning.TensorUInt32Bit"; } -::windows_core::imp::interface_hierarchy!(TensorUInt32Bit, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for TensorUInt32Bit {} -impl ::windows_core::CanTryInto for TensorUInt32Bit {} -impl ::windows_core::CanTryInto for TensorUInt32Bit {} -impl ::windows_core::CanTryInto for TensorUInt32Bit {} unsafe impl ::core::marker::Send for TensorUInt32Bit {} unsafe impl ::core::marker::Sync for TensorUInt32Bit {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct TensorUInt64Bit(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(TensorUInt64Bit, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(TensorUInt64Bit, super::super::Foundation::IClosable, ILearningModelFeatureValue, super::super::Foundation::IMemoryBuffer, ITensor); impl TensorUInt64Bit { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CreateReference(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateReference)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TensorKind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TensorKind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3862,7 +3213,7 @@ impl TensorUInt64Bit { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Shape(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Shape)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3887,34 +3238,34 @@ impl TensorUInt64Bit { #[cfg(feature = "Foundation_Collections")] pub fn Create2(shape: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::ITensorUInt64BitStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).Create2)(::windows_core::Interface::as_raw(this), shape.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).Create2)(::windows_core::Interface::as_raw(this), shape.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn CreateFromArray(shape: P0, data: &[u64]) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::ITensorUInt64BitStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateFromArray)(::windows_core::Interface::as_raw(this), shape.try_into_param()?.abi(), data.len().try_into().unwrap(), data.as_ptr(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn CreateFromIterable(shape: P0, data: P1) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, - P1: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, + P1: ::windows_core::IntoParam>, { Self::ITensorUInt64BitStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateFromIterable)(::windows_core::Interface::as_raw(this), shape.try_into_param()?.abi(), data.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateFromIterable)(::windows_core::Interface::as_raw(this), shape.into_param().abi(), data.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn CreateFromShapeArrayAndDataArray(shape: &[i64], data: &[u64]) -> ::windows_core::Result { @@ -3927,11 +3278,11 @@ impl TensorUInt64Bit { #[cfg(feature = "Storage_Streams")] pub fn CreateFromBuffer(shape: &[i64], buffer: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } #[doc(hidden)] @@ -3950,44 +3301,39 @@ impl ::windows_core::RuntimeType for TensorUInt64Bit { } unsafe impl ::windows_core::Interface for TensorUInt64Bit { type Vtable = ITensorUInt64Bit_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TensorUInt64Bit { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for TensorUInt64Bit { const NAME: &'static str = "Windows.AI.MachineLearning.TensorUInt64Bit"; } -::windows_core::imp::interface_hierarchy!(TensorUInt64Bit, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for TensorUInt64Bit {} -impl ::windows_core::CanTryInto for TensorUInt64Bit {} -impl ::windows_core::CanTryInto for TensorUInt64Bit {} -impl ::windows_core::CanTryInto for TensorUInt64Bit {} unsafe impl ::core::marker::Send for TensorUInt64Bit {} unsafe impl ::core::marker::Sync for TensorUInt64Bit {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct TensorUInt8Bit(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(TensorUInt8Bit, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(TensorUInt8Bit, super::super::Foundation::IClosable, ILearningModelFeatureValue, super::super::Foundation::IMemoryBuffer, ITensor); impl TensorUInt8Bit { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CreateReference(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateReference)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TensorKind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TensorKind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3996,7 +3342,7 @@ impl TensorUInt8Bit { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Shape(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Shape)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4021,34 +3367,34 @@ impl TensorUInt8Bit { #[cfg(feature = "Foundation_Collections")] pub fn Create2(shape: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::ITensorUInt8BitStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).Create2)(::windows_core::Interface::as_raw(this), shape.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).Create2)(::windows_core::Interface::as_raw(this), shape.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn CreateFromArray(shape: P0, data: &[u8]) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::ITensorUInt8BitStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateFromArray)(::windows_core::Interface::as_raw(this), shape.try_into_param()?.abi(), data.len().try_into().unwrap(), data.as_ptr(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn CreateFromIterable(shape: P0, data: P1) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, - P1: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, + P1: ::windows_core::IntoParam>, { Self::ITensorUInt8BitStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateFromIterable)(::windows_core::Interface::as_raw(this), shape.try_into_param()?.abi(), data.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateFromIterable)(::windows_core::Interface::as_raw(this), shape.into_param().abi(), data.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn CreateFromShapeArrayAndDataArray(shape: &[i64], data: &[u8]) -> ::windows_core::Result { @@ -4061,11 +3407,11 @@ impl TensorUInt8Bit { #[cfg(feature = "Storage_Streams")] pub fn CreateFromBuffer(shape: &[i64], buffer: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } #[doc(hidden)] @@ -4084,18 +3430,11 @@ impl ::windows_core::RuntimeType for TensorUInt8Bit { } unsafe impl ::windows_core::Interface for TensorUInt8Bit { type Vtable = ITensorUInt8Bit_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TensorUInt8Bit { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for TensorUInt8Bit { const NAME: &'static str = "Windows.AI.MachineLearning.TensorUInt8Bit"; } -::windows_core::imp::interface_hierarchy!(TensorUInt8Bit, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for TensorUInt8Bit {} -impl ::windows_core::CanTryInto for TensorUInt8Bit {} -impl ::windows_core::CanTryInto for TensorUInt8Bit {} -impl ::windows_core::CanTryInto for TensorUInt8Bit {} unsafe impl ::core::marker::Send for TensorUInt8Bit {} unsafe impl ::core::marker::Sync for TensorUInt8Bit {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Activation/impl.rs b/crates/libs/windows/src/Windows/ApplicationModel/Activation/impl.rs index 71e8de904a..2d6260fdcc 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Activation/impl.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Activation/impl.rs @@ -50,7 +50,7 @@ impl IActivatedEventArgs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"System\"`"] @@ -80,7 +80,7 @@ impl IActivatedEventArgsWithUser_Vtbl { Self { base__: ::windows_core::IInspectable_Vtbl::new::(), User: User:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IApplicationViewActivatedEventArgs_Impl: Sized + IActivatedEventArgs_Impl { @@ -108,7 +108,7 @@ impl IApplicationViewActivatedEventArgs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAppointmentsProviderActivatedEventArgs_Impl: Sized + IActivatedEventArgs_Impl { @@ -137,7 +137,7 @@ impl IAppointmentsProviderActivatedEventArgs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"ApplicationModel_Appointments_AppointmentsProvider\"`"] @@ -170,7 +170,7 @@ impl IAppointmentsProviderAddAppointmentActivatedEventArgs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"ApplicationModel_Appointments_AppointmentsProvider\"`"] @@ -203,7 +203,7 @@ impl IAppointmentsProviderRemoveAppointmentActivatedEventArgs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"ApplicationModel_Appointments_AppointmentsProvider\"`"] @@ -236,7 +236,7 @@ impl IAppointmentsProviderReplaceAppointmentActivatedEventArgs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAppointmentsProviderShowAppointmentDetailsActivatedEventArgs_Impl: Sized + IActivatedEventArgs_Impl + IAppointmentsProviderActivatedEventArgs_Impl { @@ -293,7 +293,7 @@ impl IAppointmentsProviderShowAppointmentDetailsActivatedEventArgs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAppointmentsProviderShowTimeFrameActivatedEventArgs_Impl: Sized + IActivatedEventArgs_Impl + IAppointmentsProviderActivatedEventArgs_Impl { @@ -334,7 +334,7 @@ impl IAppointmentsProviderShowTimeFrameActivatedEventArgs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"ApplicationModel_Background\"`"] @@ -367,7 +367,7 @@ impl IBackgroundActivatedEventArgs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IBarcodeScannerPreviewActivatedEventArgs_Impl: Sized + IActivatedEventArgs_Impl { @@ -396,7 +396,7 @@ impl IBarcodeScannerPreviewActivatedEventArgs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Storage_Provider\"`"] @@ -429,7 +429,7 @@ impl ICachedFileUpdaterActivatedEventArgs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICameraSettingsActivatedEventArgs_Impl: Sized + IActivatedEventArgs_Impl { @@ -472,7 +472,7 @@ impl ICameraSettingsActivatedEventArgs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICommandLineActivatedEventArgs_Impl: Sized + IActivatedEventArgs_Impl { @@ -501,7 +501,7 @@ impl ICommandLineActivatedEventArgs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IContactActivatedEventArgs_Impl: Sized + IActivatedEventArgs_Impl { @@ -527,7 +527,7 @@ impl IContactActivatedEventArgs_Vtbl { Self { base__: ::windows_core::IInspectable_Vtbl::new::(), Verb: Verb:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"ApplicationModel_Contacts\"`"] @@ -588,7 +588,7 @@ impl IContactCallActivatedEventArgs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"ApplicationModel_Contacts\"`"] @@ -635,7 +635,7 @@ impl IContactMapActivatedEventArgs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"ApplicationModel_Contacts\"`"] @@ -696,7 +696,7 @@ impl IContactMessageActivatedEventArgs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"ApplicationModel_Contacts\"`"] @@ -743,7 +743,7 @@ impl IContactPanelActivatedEventArgs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"ApplicationModel_Contacts_Provider\"`"] @@ -776,7 +776,7 @@ impl IContactPickerActivatedEventArgs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"ApplicationModel_Contacts\"`"] @@ -837,7 +837,7 @@ impl IContactPostActivatedEventArgs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"ApplicationModel_Contacts\"`"] @@ -898,7 +898,7 @@ impl IContactVideoCallActivatedEventArgs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IContactsProviderActivatedEventArgs_Impl: Sized + IActivatedEventArgs_Impl { @@ -924,7 +924,7 @@ impl IContactsProviderActivatedEventArgs_Vtbl { Self { base__: ::windows_core::IInspectable_Vtbl::new::(), Verb: Verb:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -957,7 +957,7 @@ impl IContinuationActivatedEventArgs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDeviceActivatedEventArgs_Impl: Sized + IActivatedEventArgs_Impl { @@ -1000,7 +1000,7 @@ impl IDeviceActivatedEventArgs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Devices_Enumeration\"`"] @@ -1033,7 +1033,7 @@ impl IDevicePairingActivatedEventArgs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDialReceiverActivatedEventArgs_Impl: Sized + IActivatedEventArgs_Impl + ILaunchActivatedEventArgs_Impl { @@ -1062,7 +1062,7 @@ impl IDialReceiverActivatedEventArgs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Storage\"`"] @@ -1109,7 +1109,7 @@ impl IFileActivatedEventArgs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IFileActivatedEventArgsWithCallerPackageFamilyName_Impl: Sized + IActivatedEventArgs_Impl { @@ -1138,7 +1138,7 @@ impl IFileActivatedEventArgsWithCallerPackageFamilyName_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Storage_Search\"`"] @@ -1171,7 +1171,7 @@ impl IFileActivatedEventArgsWithNeighboringFiles_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Storage_Pickers_Provider\"`"] @@ -1204,7 +1204,7 @@ impl IFileOpenPickerActivatedEventArgs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IFileOpenPickerActivatedEventArgs2_Impl: Sized { @@ -1233,7 +1233,7 @@ impl IFileOpenPickerActivatedEventArgs2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Storage\"`, `\"deprecated\"`"] @@ -1266,7 +1266,7 @@ impl IFileOpenPickerContinuationEventArgs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Storage_Pickers_Provider\"`"] @@ -1299,7 +1299,7 @@ impl IFileSavePickerActivatedEventArgs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IFileSavePickerActivatedEventArgs2_Impl: Sized { @@ -1342,7 +1342,7 @@ impl IFileSavePickerActivatedEventArgs2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Storage\"`, `\"deprecated\"`"] @@ -1372,7 +1372,7 @@ impl IFileSavePickerContinuationEventArgs_Vtbl { Self { base__: ::windows_core::IInspectable_Vtbl::new::(), File: File:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Storage\"`, `\"deprecated\"`"] @@ -1405,7 +1405,7 @@ impl IFolderPickerContinuationEventArgs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ILaunchActivatedEventArgs_Impl: Sized + IActivatedEventArgs_Impl { @@ -1448,7 +1448,7 @@ impl ILaunchActivatedEventArgs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ILaunchActivatedEventArgs2_Impl: Sized + IActivatedEventArgs_Impl + ILaunchActivatedEventArgs_Impl { @@ -1477,7 +1477,7 @@ impl ILaunchActivatedEventArgs2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ILockScreenActivatedEventArgs_Impl: Sized + IActivatedEventArgs_Impl { @@ -1503,7 +1503,7 @@ impl ILockScreenActivatedEventArgs_Vtbl { Self { base__: ::windows_core::IInspectable_Vtbl::new::(), Info: Info:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"ApplicationModel_Calls\"`"] @@ -1536,7 +1536,7 @@ impl ILockScreenCallActivatedEventArgs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPhoneCallActivatedEventArgs_Impl: Sized + IActivatedEventArgs_Impl { @@ -1561,7 +1561,7 @@ impl IPhoneCallActivatedEventArgs_Vtbl { Self { base__: ::windows_core::IInspectable_Vtbl::new::(), LineId: LineId:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPickerReturnedActivatedEventArgs_Impl: Sized + IActivatedEventArgs_Impl { @@ -1590,7 +1590,7 @@ impl IPickerReturnedActivatedEventArgs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPrelaunchActivatedEventArgs_Impl: Sized + IActivatedEventArgs_Impl { @@ -1618,7 +1618,7 @@ impl IPrelaunchActivatedEventArgs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Devices_Printers_Extensions\"`"] @@ -1651,7 +1651,7 @@ impl IPrint3DWorkflowActivatedEventArgs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Devices_Printers_Extensions\"`"] @@ -1684,7 +1684,7 @@ impl IPrintTaskSettingsActivatedEventArgs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IProtocolActivatedEventArgs_Impl: Sized + IActivatedEventArgs_Impl { @@ -1710,7 +1710,7 @@ impl IProtocolActivatedEventArgs_Vtbl { Self { base__: ::windows_core::IInspectable_Vtbl::new::(), Uri: Uri:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -1757,7 +1757,7 @@ impl IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"System\"`"] @@ -1790,7 +1790,7 @@ impl IProtocolForResultsActivatedEventArgs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRestrictedLaunchActivatedEventArgs_Impl: Sized + IActivatedEventArgs_Impl { @@ -1819,7 +1819,7 @@ impl IRestrictedLaunchActivatedEventArgs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISearchActivatedEventArgs_Impl: Sized + IActivatedEventArgs_Impl { @@ -1862,7 +1862,7 @@ impl ISearchActivatedEventArgs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"ApplicationModel_Search\"`"] @@ -1895,7 +1895,7 @@ impl ISearchActivatedEventArgsWithLinguisticDetails_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"ApplicationModel_DataTransfer_ShareTarget\"`"] @@ -1928,7 +1928,7 @@ impl IShareTargetActivatedEventArgs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IStartupTaskActivatedEventArgs_Impl: Sized + IActivatedEventArgs_Impl { @@ -1954,7 +1954,7 @@ impl IStartupTaskActivatedEventArgs_Vtbl { Self { base__: ::windows_core::IInspectable_Vtbl::new::(), TaskId: TaskId:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -2001,7 +2001,7 @@ impl IToastNotificationActivatedEventArgs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"ApplicationModel_UserDataAccounts_Provider\"`"] @@ -2034,7 +2034,7 @@ impl IUserDataAccountProviderActivatedEventArgs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"UI_ViewManagement\"`"] @@ -2067,7 +2067,7 @@ impl IViewSwitcherProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Media_SpeechRecognition\"`"] @@ -2097,7 +2097,7 @@ impl IVoiceCommandActivatedEventArgs_Vtbl { Self { base__: ::windows_core::IInspectable_Vtbl::new::(), Result: Result:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"ApplicationModel_Wallet\"`, `\"deprecated\"`"] @@ -2157,7 +2157,7 @@ impl IWalletActionActivatedEventArgs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Security_Authentication_Web_Provider\"`"] @@ -2190,7 +2190,7 @@ impl IWebAccountProviderActivatedEventArgs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Security_Authentication_Web\"`"] @@ -2223,6 +2223,6 @@ impl IWebAuthenticationBrokerContinuationEventArgs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs index 4c95e97036..fa20fa4996 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs @@ -1,6 +1,5 @@ -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IActivatedEventArgs, IActivatedEventArgs_Vtbl, 0xcf651713_cd08_4fd8_b697_a281b6544e2e); +::windows_core::imp::interface_hierarchy!(IActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IActivatedEventArgs { pub fn Kind(&self) -> ::windows_core::Result { let this = self; @@ -24,16 +23,9 @@ impl IActivatedEventArgs { } } } -::windows_core::imp::interface_hierarchy!(IActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IActivatedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IActivatedEventArgs { - type Vtable = IActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActivatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcf651713_cd08_4fd8_b697_a281b6544e2e); -} #[repr(C)] #[doc(hidden)] pub struct IActivatedEventArgs_Vtbl { @@ -42,9 +34,9 @@ pub struct IActivatedEventArgs_Vtbl { pub PreviousExecutionState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ApplicationExecutionState) -> ::windows_core::HRESULT, pub SplashScreen: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActivatedEventArgsWithUser(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IActivatedEventArgsWithUser, IActivatedEventArgsWithUser_Vtbl, 0x1cf09b9e_9962_4936_80ff_afc8e8ae5c8c); +::windows_core::imp::interface_hierarchy!(IActivatedEventArgsWithUser, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IActivatedEventArgsWithUser, IActivatedEventArgs); impl IActivatedEventArgsWithUser { #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] @@ -56,38 +48,30 @@ impl IActivatedEventArgsWithUser { } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(IActivatedEventArgsWithUser, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IActivatedEventArgsWithUser {} impl ::windows_core::RuntimeType for IActivatedEventArgsWithUser { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IActivatedEventArgsWithUser { - type Vtable = IActivatedEventArgsWithUser_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActivatedEventArgsWithUser { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1cf09b9e_9962_4936_80ff_afc8e8ae5c8c); -} #[repr(C)] #[doc(hidden)] pub struct IActivatedEventArgsWithUser_Vtbl { @@ -97,9 +81,9 @@ pub struct IActivatedEventArgsWithUser_Vtbl { #[cfg(not(feature = "System"))] User: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IApplicationViewActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IApplicationViewActivatedEventArgs, IApplicationViewActivatedEventArgs_Vtbl, 0x930cef4b_b829_40fc_88f4_8513e8a64738); +::windows_core::imp::interface_hierarchy!(IApplicationViewActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IApplicationViewActivatedEventArgs, IActivatedEventArgs); impl IApplicationViewActivatedEventArgs { pub fn CurrentlyShownApplicationViewId(&self) -> ::windows_core::Result { let this = self; @@ -109,47 +93,39 @@ impl IApplicationViewActivatedEventArgs { } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(IApplicationViewActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IApplicationViewActivatedEventArgs {} impl ::windows_core::RuntimeType for IApplicationViewActivatedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IApplicationViewActivatedEventArgs { - type Vtable = IApplicationViewActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IApplicationViewActivatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x930cef4b_b829_40fc_88f4_8513e8a64738); -} #[repr(C)] #[doc(hidden)] pub struct IApplicationViewActivatedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CurrentlyShownApplicationViewId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppointmentsProviderActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppointmentsProviderActivatedEventArgs, IAppointmentsProviderActivatedEventArgs_Vtbl, 0x3364c405_933c_4e7d_a034_500fb8dcd9f3); +::windows_core::imp::interface_hierarchy!(IAppointmentsProviderActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IAppointmentsProviderActivatedEventArgs, IActivatedEventArgs); impl IAppointmentsProviderActivatedEventArgs { pub fn Verb(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -159,47 +135,39 @@ impl IAppointmentsProviderActivatedEventArgs { } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(IAppointmentsProviderActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IAppointmentsProviderActivatedEventArgs {} impl ::windows_core::RuntimeType for IAppointmentsProviderActivatedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IAppointmentsProviderActivatedEventArgs { - type Vtable = IAppointmentsProviderActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppointmentsProviderActivatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3364c405_933c_4e7d_a034_500fb8dcd9f3); -} #[repr(C)] #[doc(hidden)] pub struct IAppointmentsProviderActivatedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Verb: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppointmentsProviderAddAppointmentActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppointmentsProviderAddAppointmentActivatedEventArgs, IAppointmentsProviderAddAppointmentActivatedEventArgs_Vtbl, 0xa2861367_cee5_4e4d_9ed7_41c34ec18b02); +::windows_core::imp::interface_hierarchy!(IAppointmentsProviderAddAppointmentActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IAppointmentsProviderAddAppointmentActivatedEventArgs, IActivatedEventArgs, IAppointmentsProviderActivatedEventArgs); impl IAppointmentsProviderAddAppointmentActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Appointments_AppointmentsProvider\"`"] #[cfg(feature = "ApplicationModel_Appointments_AppointmentsProvider")] @@ -211,46 +179,37 @@ impl IAppointmentsProviderAddAppointmentActivatedEventArgs { } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Verb(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Verb)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(IAppointmentsProviderAddAppointmentActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IAppointmentsProviderAddAppointmentActivatedEventArgs {} -impl ::windows_core::CanTryInto for IAppointmentsProviderAddAppointmentActivatedEventArgs {} impl ::windows_core::RuntimeType for IAppointmentsProviderAddAppointmentActivatedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IAppointmentsProviderAddAppointmentActivatedEventArgs { - type Vtable = IAppointmentsProviderAddAppointmentActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppointmentsProviderAddAppointmentActivatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa2861367_cee5_4e4d_9ed7_41c34ec18b02); -} #[repr(C)] #[doc(hidden)] pub struct IAppointmentsProviderAddAppointmentActivatedEventArgs_Vtbl { @@ -260,9 +219,9 @@ pub struct IAppointmentsProviderAddAppointmentActivatedEventArgs_Vtbl { #[cfg(not(feature = "ApplicationModel_Appointments_AppointmentsProvider"))] AddAppointmentOperation: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppointmentsProviderRemoveAppointmentActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppointmentsProviderRemoveAppointmentActivatedEventArgs, IAppointmentsProviderRemoveAppointmentActivatedEventArgs_Vtbl, 0x751f3ab8_0b8e_451c_9f15_966e699bac25); +::windows_core::imp::interface_hierarchy!(IAppointmentsProviderRemoveAppointmentActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IAppointmentsProviderRemoveAppointmentActivatedEventArgs, IActivatedEventArgs, IAppointmentsProviderActivatedEventArgs); impl IAppointmentsProviderRemoveAppointmentActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Appointments_AppointmentsProvider\"`"] #[cfg(feature = "ApplicationModel_Appointments_AppointmentsProvider")] @@ -274,46 +233,37 @@ impl IAppointmentsProviderRemoveAppointmentActivatedEventArgs { } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Verb(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Verb)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(IAppointmentsProviderRemoveAppointmentActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IAppointmentsProviderRemoveAppointmentActivatedEventArgs {} -impl ::windows_core::CanTryInto for IAppointmentsProviderRemoveAppointmentActivatedEventArgs {} impl ::windows_core::RuntimeType for IAppointmentsProviderRemoveAppointmentActivatedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IAppointmentsProviderRemoveAppointmentActivatedEventArgs { - type Vtable = IAppointmentsProviderRemoveAppointmentActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppointmentsProviderRemoveAppointmentActivatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x751f3ab8_0b8e_451c_9f15_966e699bac25); -} #[repr(C)] #[doc(hidden)] pub struct IAppointmentsProviderRemoveAppointmentActivatedEventArgs_Vtbl { @@ -323,9 +273,9 @@ pub struct IAppointmentsProviderRemoveAppointmentActivatedEventArgs_Vtbl { #[cfg(not(feature = "ApplicationModel_Appointments_AppointmentsProvider"))] RemoveAppointmentOperation: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppointmentsProviderReplaceAppointmentActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppointmentsProviderReplaceAppointmentActivatedEventArgs, IAppointmentsProviderReplaceAppointmentActivatedEventArgs_Vtbl, 0x1551b7d4_a981_4067_8a62_0524e4ade121); +::windows_core::imp::interface_hierarchy!(IAppointmentsProviderReplaceAppointmentActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IAppointmentsProviderReplaceAppointmentActivatedEventArgs, IActivatedEventArgs, IAppointmentsProviderActivatedEventArgs); impl IAppointmentsProviderReplaceAppointmentActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Appointments_AppointmentsProvider\"`"] #[cfg(feature = "ApplicationModel_Appointments_AppointmentsProvider")] @@ -337,46 +287,37 @@ impl IAppointmentsProviderReplaceAppointmentActivatedEventArgs { } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Verb(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Verb)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(IAppointmentsProviderReplaceAppointmentActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IAppointmentsProviderReplaceAppointmentActivatedEventArgs {} -impl ::windows_core::CanTryInto for IAppointmentsProviderReplaceAppointmentActivatedEventArgs {} impl ::windows_core::RuntimeType for IAppointmentsProviderReplaceAppointmentActivatedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IAppointmentsProviderReplaceAppointmentActivatedEventArgs { - type Vtable = IAppointmentsProviderReplaceAppointmentActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppointmentsProviderReplaceAppointmentActivatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1551b7d4_a981_4067_8a62_0524e4ade121); -} #[repr(C)] #[doc(hidden)] pub struct IAppointmentsProviderReplaceAppointmentActivatedEventArgs_Vtbl { @@ -386,9 +327,9 @@ pub struct IAppointmentsProviderReplaceAppointmentActivatedEventArgs_Vtbl { #[cfg(not(feature = "ApplicationModel_Appointments_AppointmentsProvider"))] ReplaceAppointmentOperation: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppointmentsProviderShowAppointmentDetailsActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppointmentsProviderShowAppointmentDetailsActivatedEventArgs, IAppointmentsProviderShowAppointmentDetailsActivatedEventArgs_Vtbl, 0x3958f065_9841_4ca5_999b_885198b9ef2a); +::windows_core::imp::interface_hierarchy!(IAppointmentsProviderShowAppointmentDetailsActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IAppointmentsProviderShowAppointmentDetailsActivatedEventArgs, IActivatedEventArgs, IAppointmentsProviderActivatedEventArgs); impl IAppointmentsProviderShowAppointmentDetailsActivatedEventArgs { pub fn InstanceStartDate(&self) -> ::windows_core::Result> { let this = self; @@ -412,46 +353,37 @@ impl IAppointmentsProviderShowAppointmentDetailsActivatedEventArgs { } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Verb(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Verb)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(IAppointmentsProviderShowAppointmentDetailsActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IAppointmentsProviderShowAppointmentDetailsActivatedEventArgs {} -impl ::windows_core::CanTryInto for IAppointmentsProviderShowAppointmentDetailsActivatedEventArgs {} impl ::windows_core::RuntimeType for IAppointmentsProviderShowAppointmentDetailsActivatedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IAppointmentsProviderShowAppointmentDetailsActivatedEventArgs { - type Vtable = IAppointmentsProviderShowAppointmentDetailsActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppointmentsProviderShowAppointmentDetailsActivatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3958f065_9841_4ca5_999b_885198b9ef2a); -} #[repr(C)] #[doc(hidden)] pub struct IAppointmentsProviderShowAppointmentDetailsActivatedEventArgs_Vtbl { @@ -460,9 +392,9 @@ pub struct IAppointmentsProviderShowAppointmentDetailsActivatedEventArgs_Vtbl { pub LocalId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub RoamingId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppointmentsProviderShowTimeFrameActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppointmentsProviderShowTimeFrameActivatedEventArgs, IAppointmentsProviderShowTimeFrameActivatedEventArgs_Vtbl, 0x9baeaba6_0e0b_49aa_babc_12b1dc774986); +::windows_core::imp::interface_hierarchy!(IAppointmentsProviderShowTimeFrameActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IAppointmentsProviderShowTimeFrameActivatedEventArgs, IActivatedEventArgs, IAppointmentsProviderActivatedEventArgs); impl IAppointmentsProviderShowTimeFrameActivatedEventArgs { pub fn TimeToShow(&self) -> ::windows_core::Result { let this = self; @@ -479,46 +411,37 @@ impl IAppointmentsProviderShowTimeFrameActivatedEventArgs { } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Verb(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Verb)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(IAppointmentsProviderShowTimeFrameActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IAppointmentsProviderShowTimeFrameActivatedEventArgs {} -impl ::windows_core::CanTryInto for IAppointmentsProviderShowTimeFrameActivatedEventArgs {} impl ::windows_core::RuntimeType for IAppointmentsProviderShowTimeFrameActivatedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IAppointmentsProviderShowTimeFrameActivatedEventArgs { - type Vtable = IAppointmentsProviderShowTimeFrameActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppointmentsProviderShowTimeFrameActivatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9baeaba6_0e0b_49aa_babc_12b1dc774986); -} #[repr(C)] #[doc(hidden)] pub struct IAppointmentsProviderShowTimeFrameActivatedEventArgs_Vtbl { @@ -526,9 +449,8 @@ pub struct IAppointmentsProviderShowTimeFrameActivatedEventArgs_Vtbl { pub TimeToShow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::DateTime) -> ::windows_core::HRESULT, pub Duration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::TimeSpan) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBackgroundActivatedEventArgs, IBackgroundActivatedEventArgs_Vtbl, 0xab14bee0_e760_440e_a91c_44796de3a92d); +::windows_core::imp::interface_hierarchy!(IBackgroundActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IBackgroundActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Background\"`"] #[cfg(feature = "ApplicationModel_Background")] @@ -540,16 +462,9 @@ impl IBackgroundActivatedEventArgs { } } } -::windows_core::imp::interface_hierarchy!(IBackgroundActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IBackgroundActivatedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IBackgroundActivatedEventArgs { - type Vtable = IBackgroundActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundActivatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xab14bee0_e760_440e_a91c_44796de3a92d); -} #[repr(C)] #[doc(hidden)] pub struct IBackgroundActivatedEventArgs_Vtbl { @@ -559,9 +474,9 @@ pub struct IBackgroundActivatedEventArgs_Vtbl { #[cfg(not(feature = "ApplicationModel_Background"))] TaskInstance: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBarcodeScannerPreviewActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBarcodeScannerPreviewActivatedEventArgs, IBarcodeScannerPreviewActivatedEventArgs_Vtbl, 0x6772797c_99bf_4349_af22_e4123560371c); +::windows_core::imp::interface_hierarchy!(IBarcodeScannerPreviewActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IBarcodeScannerPreviewActivatedEventArgs, IActivatedEventArgs); impl IBarcodeScannerPreviewActivatedEventArgs { pub fn ConnectionId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -571,47 +486,39 @@ impl IBarcodeScannerPreviewActivatedEventArgs { } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(IBarcodeScannerPreviewActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IBarcodeScannerPreviewActivatedEventArgs {} impl ::windows_core::RuntimeType for IBarcodeScannerPreviewActivatedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IBarcodeScannerPreviewActivatedEventArgs { - type Vtable = IBarcodeScannerPreviewActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBarcodeScannerPreviewActivatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6772797c_99bf_4349_af22_e4123560371c); -} #[repr(C)] #[doc(hidden)] pub struct IBarcodeScannerPreviewActivatedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ConnectionId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICachedFileUpdaterActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICachedFileUpdaterActivatedEventArgs, ICachedFileUpdaterActivatedEventArgs_Vtbl, 0xd06eb1c7_3805_4ecb_b757_6cf15e26fef3); +::windows_core::imp::interface_hierarchy!(ICachedFileUpdaterActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ICachedFileUpdaterActivatedEventArgs, IActivatedEventArgs); impl ICachedFileUpdaterActivatedEventArgs { #[doc = "Required features: `\"Storage_Provider\"`"] #[cfg(feature = "Storage_Provider")] @@ -623,38 +530,30 @@ impl ICachedFileUpdaterActivatedEventArgs { } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(ICachedFileUpdaterActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ICachedFileUpdaterActivatedEventArgs {} impl ::windows_core::RuntimeType for ICachedFileUpdaterActivatedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for ICachedFileUpdaterActivatedEventArgs { - type Vtable = ICachedFileUpdaterActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICachedFileUpdaterActivatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd06eb1c7_3805_4ecb_b757_6cf15e26fef3); -} #[repr(C)] #[doc(hidden)] pub struct ICachedFileUpdaterActivatedEventArgs_Vtbl { @@ -664,9 +563,9 @@ pub struct ICachedFileUpdaterActivatedEventArgs_Vtbl { #[cfg(not(feature = "Storage_Provider"))] CachedFileUpdaterUI: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICameraSettingsActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICameraSettingsActivatedEventArgs, ICameraSettingsActivatedEventArgs_Vtbl, 0xfb67a508_2dad_490a_9170_dca036eb114b); +::windows_core::imp::interface_hierarchy!(ICameraSettingsActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ICameraSettingsActivatedEventArgs, IActivatedEventArgs); impl ICameraSettingsActivatedEventArgs { pub fn VideoDeviceController(&self) -> ::windows_core::Result<::windows_core::IInspectable> { let this = self; @@ -683,38 +582,30 @@ impl ICameraSettingsActivatedEventArgs { } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(ICameraSettingsActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ICameraSettingsActivatedEventArgs {} impl ::windows_core::RuntimeType for ICameraSettingsActivatedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for ICameraSettingsActivatedEventArgs { - type Vtable = ICameraSettingsActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICameraSettingsActivatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfb67a508_2dad_490a_9170_dca036eb114b); -} #[repr(C)] #[doc(hidden)] pub struct ICameraSettingsActivatedEventArgs_Vtbl { @@ -722,9 +613,9 @@ pub struct ICameraSettingsActivatedEventArgs_Vtbl { pub VideoDeviceController: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub VideoDeviceExtension: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICommandLineActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICommandLineActivatedEventArgs, ICommandLineActivatedEventArgs_Vtbl, 0x4506472c_006a_48eb_8afb_d07ab25e3366); +::windows_core::imp::interface_hierarchy!(ICommandLineActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ICommandLineActivatedEventArgs, IActivatedEventArgs); impl ICommandLineActivatedEventArgs { pub fn Operation(&self) -> ::windows_core::Result { let this = self; @@ -734,54 +625,37 @@ impl ICommandLineActivatedEventArgs { } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(ICommandLineActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ICommandLineActivatedEventArgs {} impl ::windows_core::RuntimeType for ICommandLineActivatedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for ICommandLineActivatedEventArgs { - type Vtable = ICommandLineActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICommandLineActivatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4506472c_006a_48eb_8afb_d07ab25e3366); -} #[repr(C)] #[doc(hidden)] pub struct ICommandLineActivatedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Operation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICommandLineActivationOperation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICommandLineActivationOperation { - type Vtable = ICommandLineActivationOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICommandLineActivationOperation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x994b2841_c59e_4f69_bcfd_b61ed4e622eb); -} +::windows_core::imp::com_interface!(ICommandLineActivationOperation, ICommandLineActivationOperation_Vtbl, 0x994b2841_c59e_4f69_bcfd_b61ed4e622eb); #[repr(C)] #[doc(hidden)] pub struct ICommandLineActivationOperation_Vtbl { @@ -792,9 +666,9 @@ pub struct ICommandLineActivationOperation_Vtbl { pub ExitCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IContactActivatedEventArgs, IContactActivatedEventArgs_Vtbl, 0xd627a1c4_c025_4c41_9def_f1eafad075e7); +::windows_core::imp::interface_hierarchy!(IContactActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IContactActivatedEventArgs, IActivatedEventArgs); impl IContactActivatedEventArgs { pub fn Verb(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -804,47 +678,39 @@ impl IContactActivatedEventArgs { } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(IContactActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IContactActivatedEventArgs {} impl ::windows_core::RuntimeType for IContactActivatedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IContactActivatedEventArgs { - type Vtable = IContactActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactActivatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd627a1c4_c025_4c41_9def_f1eafad075e7); -} #[repr(C)] #[doc(hidden)] pub struct IContactActivatedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Verb: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactCallActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IContactCallActivatedEventArgs, IContactCallActivatedEventArgs_Vtbl, 0xc2df14c7_30eb_41c6_b3bc_5b1694f9dab3); +::windows_core::imp::interface_hierarchy!(IContactCallActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IContactCallActivatedEventArgs, IActivatedEventArgs, IContactActivatedEventArgs); impl IContactCallActivatedEventArgs { pub fn ServiceId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -870,46 +736,37 @@ impl IContactCallActivatedEventArgs { } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Verb(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Verb)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(IContactCallActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IContactCallActivatedEventArgs {} -impl ::windows_core::CanTryInto for IContactCallActivatedEventArgs {} impl ::windows_core::RuntimeType for IContactCallActivatedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IContactCallActivatedEventArgs { - type Vtable = IContactCallActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactCallActivatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc2df14c7_30eb_41c6_b3bc_5b1694f9dab3); -} #[repr(C)] #[doc(hidden)] pub struct IContactCallActivatedEventArgs_Vtbl { @@ -921,9 +778,9 @@ pub struct IContactCallActivatedEventArgs_Vtbl { #[cfg(not(feature = "ApplicationModel_Contacts"))] Contact: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactMapActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IContactMapActivatedEventArgs, IContactMapActivatedEventArgs_Vtbl, 0xb32bf870_eee7_4ad2_aaf1_a87effcf00a4); +::windows_core::imp::interface_hierarchy!(IContactMapActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IContactMapActivatedEventArgs, IActivatedEventArgs, IContactActivatedEventArgs); impl IContactMapActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Contacts\"`"] #[cfg(feature = "ApplicationModel_Contacts")] @@ -944,46 +801,37 @@ impl IContactMapActivatedEventArgs { } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Verb(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Verb)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(IContactMapActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IContactMapActivatedEventArgs {} -impl ::windows_core::CanTryInto for IContactMapActivatedEventArgs {} impl ::windows_core::RuntimeType for IContactMapActivatedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IContactMapActivatedEventArgs { - type Vtable = IContactMapActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactMapActivatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb32bf870_eee7_4ad2_aaf1_a87effcf00a4); -} #[repr(C)] #[doc(hidden)] pub struct IContactMapActivatedEventArgs_Vtbl { @@ -997,9 +845,9 @@ pub struct IContactMapActivatedEventArgs_Vtbl { #[cfg(not(feature = "ApplicationModel_Contacts"))] Contact: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactMessageActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IContactMessageActivatedEventArgs, IContactMessageActivatedEventArgs_Vtbl, 0xde598db2_0e03_43b0_bf56_bcc40b3162df); +::windows_core::imp::interface_hierarchy!(IContactMessageActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IContactMessageActivatedEventArgs, IActivatedEventArgs, IContactActivatedEventArgs); impl IContactMessageActivatedEventArgs { pub fn ServiceId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1025,46 +873,37 @@ impl IContactMessageActivatedEventArgs { } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Verb(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Verb)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(IContactMessageActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IContactMessageActivatedEventArgs {} -impl ::windows_core::CanTryInto for IContactMessageActivatedEventArgs {} impl ::windows_core::RuntimeType for IContactMessageActivatedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IContactMessageActivatedEventArgs { - type Vtable = IContactMessageActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactMessageActivatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xde598db2_0e03_43b0_bf56_bcc40b3162df); -} #[repr(C)] #[doc(hidden)] pub struct IContactMessageActivatedEventArgs_Vtbl { @@ -1076,9 +915,8 @@ pub struct IContactMessageActivatedEventArgs_Vtbl { #[cfg(not(feature = "ApplicationModel_Contacts"))] Contact: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactPanelActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IContactPanelActivatedEventArgs, IContactPanelActivatedEventArgs_Vtbl, 0x52bb63e4_d3d4_4b63_8051_4af2082cab80); +::windows_core::imp::interface_hierarchy!(IContactPanelActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IContactPanelActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Contacts\"`"] #[cfg(feature = "ApplicationModel_Contacts")] @@ -1099,16 +937,9 @@ impl IContactPanelActivatedEventArgs { } } } -::windows_core::imp::interface_hierarchy!(IContactPanelActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IContactPanelActivatedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IContactPanelActivatedEventArgs { - type Vtable = IContactPanelActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactPanelActivatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x52bb63e4_d3d4_4b63_8051_4af2082cab80); -} #[repr(C)] #[doc(hidden)] pub struct IContactPanelActivatedEventArgs_Vtbl { @@ -1122,9 +953,9 @@ pub struct IContactPanelActivatedEventArgs_Vtbl { #[cfg(not(feature = "ApplicationModel_Contacts"))] Contact: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactPickerActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IContactPickerActivatedEventArgs, IContactPickerActivatedEventArgs_Vtbl, 0xce57aae7_6449_45a7_971f_d113be7a8936); +::windows_core::imp::interface_hierarchy!(IContactPickerActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IContactPickerActivatedEventArgs, IActivatedEventArgs); impl IContactPickerActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Contacts_Provider\"`"] #[cfg(feature = "ApplicationModel_Contacts_Provider")] @@ -1136,38 +967,30 @@ impl IContactPickerActivatedEventArgs { } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(IContactPickerActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IContactPickerActivatedEventArgs {} impl ::windows_core::RuntimeType for IContactPickerActivatedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IContactPickerActivatedEventArgs { - type Vtable = IContactPickerActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactPickerActivatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xce57aae7_6449_45a7_971f_d113be7a8936); -} #[repr(C)] #[doc(hidden)] pub struct IContactPickerActivatedEventArgs_Vtbl { @@ -1177,9 +1000,9 @@ pub struct IContactPickerActivatedEventArgs_Vtbl { #[cfg(not(feature = "ApplicationModel_Contacts_Provider"))] ContactPickerUI: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactPostActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IContactPostActivatedEventArgs, IContactPostActivatedEventArgs_Vtbl, 0xb35a3c67_f1e7_4655_ad6e_4857588f552f); +::windows_core::imp::interface_hierarchy!(IContactPostActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IContactPostActivatedEventArgs, IActivatedEventArgs, IContactActivatedEventArgs); impl IContactPostActivatedEventArgs { pub fn ServiceId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1205,46 +1028,37 @@ impl IContactPostActivatedEventArgs { } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Verb(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Verb)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(IContactPostActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IContactPostActivatedEventArgs {} -impl ::windows_core::CanTryInto for IContactPostActivatedEventArgs {} impl ::windows_core::RuntimeType for IContactPostActivatedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IContactPostActivatedEventArgs { - type Vtable = IContactPostActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactPostActivatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb35a3c67_f1e7_4655_ad6e_4857588f552f); -} #[repr(C)] #[doc(hidden)] pub struct IContactPostActivatedEventArgs_Vtbl { @@ -1256,9 +1070,9 @@ pub struct IContactPostActivatedEventArgs_Vtbl { #[cfg(not(feature = "ApplicationModel_Contacts"))] Contact: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactVideoCallActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IContactVideoCallActivatedEventArgs, IContactVideoCallActivatedEventArgs_Vtbl, 0x61079db8_e3e7_4b4f_858d_5c63a96ef684); +::windows_core::imp::interface_hierarchy!(IContactVideoCallActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IContactVideoCallActivatedEventArgs, IActivatedEventArgs, IContactActivatedEventArgs); impl IContactVideoCallActivatedEventArgs { pub fn ServiceId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1284,46 +1098,37 @@ impl IContactVideoCallActivatedEventArgs { } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Verb(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Verb)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(IContactVideoCallActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IContactVideoCallActivatedEventArgs {} -impl ::windows_core::CanTryInto for IContactVideoCallActivatedEventArgs {} impl ::windows_core::RuntimeType for IContactVideoCallActivatedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IContactVideoCallActivatedEventArgs { - type Vtable = IContactVideoCallActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactVideoCallActivatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x61079db8_e3e7_4b4f_858d_5c63a96ef684); -} #[repr(C)] #[doc(hidden)] pub struct IContactVideoCallActivatedEventArgs_Vtbl { @@ -1335,9 +1140,9 @@ pub struct IContactVideoCallActivatedEventArgs_Vtbl { #[cfg(not(feature = "ApplicationModel_Contacts"))] Contact: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactsProviderActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IContactsProviderActivatedEventArgs, IContactsProviderActivatedEventArgs_Vtbl, 0x4580dca8_5750_4916_aa52_c0829521eb94); +::windows_core::imp::interface_hierarchy!(IContactsProviderActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IContactsProviderActivatedEventArgs, IActivatedEventArgs); impl IContactsProviderActivatedEventArgs { pub fn Verb(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1347,47 +1152,39 @@ impl IContactsProviderActivatedEventArgs { } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(IContactsProviderActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IContactsProviderActivatedEventArgs {} impl ::windows_core::RuntimeType for IContactsProviderActivatedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IContactsProviderActivatedEventArgs { - type Vtable = IContactsProviderActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactsProviderActivatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4580dca8_5750_4916_aa52_c0829521eb94); -} #[repr(C)] #[doc(hidden)] pub struct IContactsProviderActivatedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Verb: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContinuationActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IContinuationActivatedEventArgs, IContinuationActivatedEventArgs_Vtbl, 0xe58106b5_155f_4a94_a742_c7e08f4e188c); +::windows_core::imp::interface_hierarchy!(IContinuationActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IContinuationActivatedEventArgs, IActivatedEventArgs); impl IContinuationActivatedEventArgs { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -1399,38 +1196,30 @@ impl IContinuationActivatedEventArgs { } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(IContinuationActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IContinuationActivatedEventArgs {} impl ::windows_core::RuntimeType for IContinuationActivatedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IContinuationActivatedEventArgs { - type Vtable = IContinuationActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContinuationActivatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe58106b5_155f_4a94_a742_c7e08f4e188c); -} #[repr(C)] #[doc(hidden)] pub struct IContinuationActivatedEventArgs_Vtbl { @@ -1440,9 +1229,9 @@ pub struct IContinuationActivatedEventArgs_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] ContinuationData: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDeviceActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDeviceActivatedEventArgs, IDeviceActivatedEventArgs_Vtbl, 0xcd50b9a9_ce10_44d2_8234_c355a073ef33); +::windows_core::imp::interface_hierarchy!(IDeviceActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IDeviceActivatedEventArgs, IActivatedEventArgs); impl IDeviceActivatedEventArgs { pub fn DeviceInformationId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1459,38 +1248,30 @@ impl IDeviceActivatedEventArgs { } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(IDeviceActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IDeviceActivatedEventArgs {} impl ::windows_core::RuntimeType for IDeviceActivatedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IDeviceActivatedEventArgs { - type Vtable = IDeviceActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDeviceActivatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcd50b9a9_ce10_44d2_8234_c355a073ef33); -} #[repr(C)] #[doc(hidden)] pub struct IDeviceActivatedEventArgs_Vtbl { @@ -1498,9 +1279,9 @@ pub struct IDeviceActivatedEventArgs_Vtbl { pub DeviceInformationId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Verb: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDevicePairingActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDevicePairingActivatedEventArgs, IDevicePairingActivatedEventArgs_Vtbl, 0xeba0d1e4_ecc6_4148_94ed_f4b37ec05b3e); +::windows_core::imp::interface_hierarchy!(IDevicePairingActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IDevicePairingActivatedEventArgs, IActivatedEventArgs); impl IDevicePairingActivatedEventArgs { #[doc = "Required features: `\"Devices_Enumeration\"`"] #[cfg(feature = "Devices_Enumeration")] @@ -1512,38 +1293,30 @@ impl IDevicePairingActivatedEventArgs { } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(IDevicePairingActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IDevicePairingActivatedEventArgs {} impl ::windows_core::RuntimeType for IDevicePairingActivatedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IDevicePairingActivatedEventArgs { - type Vtable = IDevicePairingActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDevicePairingActivatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeba0d1e4_ecc6_4148_94ed_f4b37ec05b3e); -} #[repr(C)] #[doc(hidden)] pub struct IDevicePairingActivatedEventArgs_Vtbl { @@ -1553,9 +1326,9 @@ pub struct IDevicePairingActivatedEventArgs_Vtbl { #[cfg(not(feature = "Devices_Enumeration"))] DeviceInformation: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDialReceiverActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDialReceiverActivatedEventArgs, IDialReceiverActivatedEventArgs_Vtbl, 0xfb777ed7_85ee_456e_a44d_85d730e70aed); +::windows_core::imp::interface_hierarchy!(IDialReceiverActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IDialReceiverActivatedEventArgs, IActivatedEventArgs, ILaunchActivatedEventArgs); impl IDialReceiverActivatedEventArgs { pub fn AppName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1565,62 +1338,53 @@ impl IDialReceiverActivatedEventArgs { } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Arguments(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Arguments)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TileId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TileId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(IDialReceiverActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IDialReceiverActivatedEventArgs {} -impl ::windows_core::CanTryInto for IDialReceiverActivatedEventArgs {} impl ::windows_core::RuntimeType for IDialReceiverActivatedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IDialReceiverActivatedEventArgs { - type Vtable = IDialReceiverActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDialReceiverActivatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfb777ed7_85ee_456e_a44d_85d730e70aed); -} #[repr(C)] #[doc(hidden)] pub struct IDialReceiverActivatedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub AppName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFileActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFileActivatedEventArgs, IFileActivatedEventArgs_Vtbl, 0xbb2afc33_93b1_42ed_8b26_236dd9c78496); +::windows_core::imp::interface_hierarchy!(IFileActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IFileActivatedEventArgs, IActivatedEventArgs); impl IFileActivatedEventArgs { #[doc = "Required features: `\"Foundation_Collections\"`, `\"Storage\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Storage"))] @@ -1639,38 +1403,30 @@ impl IFileActivatedEventArgs { } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(IFileActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IFileActivatedEventArgs {} impl ::windows_core::RuntimeType for IFileActivatedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IFileActivatedEventArgs { - type Vtable = IFileActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFileActivatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbb2afc33_93b1_42ed_8b26_236dd9c78496); -} #[repr(C)] #[doc(hidden)] pub struct IFileActivatedEventArgs_Vtbl { @@ -1681,9 +1437,9 @@ pub struct IFileActivatedEventArgs_Vtbl { Files: usize, pub Verb: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFileActivatedEventArgsWithCallerPackageFamilyName(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFileActivatedEventArgsWithCallerPackageFamilyName, IFileActivatedEventArgsWithCallerPackageFamilyName_Vtbl, 0x2d60f06b_d25f_4d25_8653_e1c5e1108309); +::windows_core::imp::interface_hierarchy!(IFileActivatedEventArgsWithCallerPackageFamilyName, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IFileActivatedEventArgsWithCallerPackageFamilyName, IActivatedEventArgs); impl IFileActivatedEventArgsWithCallerPackageFamilyName { pub fn CallerPackageFamilyName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1693,47 +1449,39 @@ impl IFileActivatedEventArgsWithCallerPackageFamilyName { } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(IFileActivatedEventArgsWithCallerPackageFamilyName, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IFileActivatedEventArgsWithCallerPackageFamilyName {} impl ::windows_core::RuntimeType for IFileActivatedEventArgsWithCallerPackageFamilyName { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IFileActivatedEventArgsWithCallerPackageFamilyName { - type Vtable = IFileActivatedEventArgsWithCallerPackageFamilyName_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFileActivatedEventArgsWithCallerPackageFamilyName { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2d60f06b_d25f_4d25_8653_e1c5e1108309); -} #[repr(C)] #[doc(hidden)] pub struct IFileActivatedEventArgsWithCallerPackageFamilyName_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CallerPackageFamilyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFileActivatedEventArgsWithNeighboringFiles(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFileActivatedEventArgsWithNeighboringFiles, IFileActivatedEventArgsWithNeighboringFiles_Vtbl, 0x433ba1a4_e1e2_48fd_b7fc_b5d6eee65033); +::windows_core::imp::interface_hierarchy!(IFileActivatedEventArgsWithNeighboringFiles, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IFileActivatedEventArgsWithNeighboringFiles, IActivatedEventArgs, IFileActivatedEventArgs); impl IFileActivatedEventArgsWithNeighboringFiles { #[doc = "Required features: `\"Storage_Search\"`"] #[cfg(feature = "Storage_Search")] @@ -1745,21 +1493,21 @@ impl IFileActivatedEventArgsWithNeighboringFiles { } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1768,32 +1516,23 @@ impl IFileActivatedEventArgsWithNeighboringFiles { #[doc = "Required features: `\"Foundation_Collections\"`, `\"Storage\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Storage"))] pub fn Files(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Files)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Verb(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Verb)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(IFileActivatedEventArgsWithNeighboringFiles, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IFileActivatedEventArgsWithNeighboringFiles {} -impl ::windows_core::CanTryInto for IFileActivatedEventArgsWithNeighboringFiles {} impl ::windows_core::RuntimeType for IFileActivatedEventArgsWithNeighboringFiles { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IFileActivatedEventArgsWithNeighboringFiles { - type Vtable = IFileActivatedEventArgsWithNeighboringFiles_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFileActivatedEventArgsWithNeighboringFiles { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x433ba1a4_e1e2_48fd_b7fc_b5d6eee65033); -} #[repr(C)] #[doc(hidden)] pub struct IFileActivatedEventArgsWithNeighboringFiles_Vtbl { @@ -1803,9 +1542,9 @@ pub struct IFileActivatedEventArgsWithNeighboringFiles_Vtbl { #[cfg(not(feature = "Storage_Search"))] NeighboringFilesQuery: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFileOpenPickerActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFileOpenPickerActivatedEventArgs, IFileOpenPickerActivatedEventArgs_Vtbl, 0x72827082_5525_4bf2_bc09_1f5095d4964d); +::windows_core::imp::interface_hierarchy!(IFileOpenPickerActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IFileOpenPickerActivatedEventArgs, IActivatedEventArgs); impl IFileOpenPickerActivatedEventArgs { #[doc = "Required features: `\"Storage_Pickers_Provider\"`"] #[cfg(feature = "Storage_Pickers_Provider")] @@ -1817,38 +1556,30 @@ impl IFileOpenPickerActivatedEventArgs { } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(IFileOpenPickerActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IFileOpenPickerActivatedEventArgs {} impl ::windows_core::RuntimeType for IFileOpenPickerActivatedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IFileOpenPickerActivatedEventArgs { - type Vtable = IFileOpenPickerActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFileOpenPickerActivatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x72827082_5525_4bf2_bc09_1f5095d4964d); -} #[repr(C)] #[doc(hidden)] pub struct IFileOpenPickerActivatedEventArgs_Vtbl { @@ -1858,9 +1589,8 @@ pub struct IFileOpenPickerActivatedEventArgs_Vtbl { #[cfg(not(feature = "Storage_Pickers_Provider"))] FileOpenPickerUI: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFileOpenPickerActivatedEventArgs2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFileOpenPickerActivatedEventArgs2, IFileOpenPickerActivatedEventArgs2_Vtbl, 0x5e731f66_8d1f_45fb_af1d_73205c8fc7a1); +::windows_core::imp::interface_hierarchy!(IFileOpenPickerActivatedEventArgs2, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IFileOpenPickerActivatedEventArgs2 { pub fn CallerPackageFamilyName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1870,27 +1600,26 @@ impl IFileOpenPickerActivatedEventArgs2 { } } } -::windows_core::imp::interface_hierarchy!(IFileOpenPickerActivatedEventArgs2, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IFileOpenPickerActivatedEventArgs2 { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IFileOpenPickerActivatedEventArgs2 { - type Vtable = IFileOpenPickerActivatedEventArgs2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFileOpenPickerActivatedEventArgs2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5e731f66_8d1f_45fb_af1d_73205c8fc7a1); -} #[repr(C)] #[doc(hidden)] pub struct IFileOpenPickerActivatedEventArgs2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CallerPackageFamilyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFileOpenPickerContinuationEventArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + IFileOpenPickerContinuationEventArgs, + IFileOpenPickerContinuationEventArgs_Vtbl, + 0xf0fa3f3a_d4e8_4ad3_9c34_2308f32fcec9 +); +#[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(IFileOpenPickerContinuationEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "deprecated")] +::windows_core::imp::required_hierarchy!(IFileOpenPickerContinuationEventArgs, IActivatedEventArgs, IContinuationActivatedEventArgs); #[cfg(feature = "deprecated")] impl IFileOpenPickerContinuationEventArgs { #[doc = "Required features: `\"Foundation_Collections\"`, `\"Storage\"`, `\"deprecated\"`"] @@ -1903,21 +1632,21 @@ impl IFileOpenPickerContinuationEventArgs { } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1926,7 +1655,7 @@ impl IFileOpenPickerContinuationEventArgs { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn ContinuationData(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ContinuationData)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1934,24 +1663,10 @@ impl IFileOpenPickerContinuationEventArgs { } } #[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(IFileOpenPickerContinuationEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] -impl ::windows_core::CanTryInto for IFileOpenPickerContinuationEventArgs {} -#[cfg(feature = "deprecated")] -impl ::windows_core::CanTryInto for IFileOpenPickerContinuationEventArgs {} -#[cfg(feature = "deprecated")] impl ::windows_core::RuntimeType for IFileOpenPickerContinuationEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for IFileOpenPickerContinuationEventArgs { - type Vtable = IFileOpenPickerContinuationEventArgs_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for IFileOpenPickerContinuationEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf0fa3f3a_d4e8_4ad3_9c34_2308f32fcec9); -} -#[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] pub struct IFileOpenPickerContinuationEventArgs_Vtbl { @@ -1961,9 +1676,9 @@ pub struct IFileOpenPickerContinuationEventArgs_Vtbl { #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage", feature = "deprecated")))] Files: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFileSavePickerActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFileSavePickerActivatedEventArgs, IFileSavePickerActivatedEventArgs_Vtbl, 0x81c19cf1_74e6_4387_82eb_bb8fd64b4346); +::windows_core::imp::interface_hierarchy!(IFileSavePickerActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IFileSavePickerActivatedEventArgs, IActivatedEventArgs); impl IFileSavePickerActivatedEventArgs { #[doc = "Required features: `\"Storage_Pickers_Provider\"`"] #[cfg(feature = "Storage_Pickers_Provider")] @@ -1975,38 +1690,30 @@ impl IFileSavePickerActivatedEventArgs { } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(IFileSavePickerActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IFileSavePickerActivatedEventArgs {} impl ::windows_core::RuntimeType for IFileSavePickerActivatedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IFileSavePickerActivatedEventArgs { - type Vtable = IFileSavePickerActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFileSavePickerActivatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x81c19cf1_74e6_4387_82eb_bb8fd64b4346); -} #[repr(C)] #[doc(hidden)] pub struct IFileSavePickerActivatedEventArgs_Vtbl { @@ -2016,9 +1723,8 @@ pub struct IFileSavePickerActivatedEventArgs_Vtbl { #[cfg(not(feature = "Storage_Pickers_Provider"))] FileSavePickerUI: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFileSavePickerActivatedEventArgs2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFileSavePickerActivatedEventArgs2, IFileSavePickerActivatedEventArgs2_Vtbl, 0x6b73fe13_2cf2_4d48_8cbc_af67d23f1ce7); +::windows_core::imp::interface_hierarchy!(IFileSavePickerActivatedEventArgs2, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IFileSavePickerActivatedEventArgs2 { pub fn CallerPackageFamilyName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -2035,16 +1741,9 @@ impl IFileSavePickerActivatedEventArgs2 { } } } -::windows_core::imp::interface_hierarchy!(IFileSavePickerActivatedEventArgs2, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IFileSavePickerActivatedEventArgs2 { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IFileSavePickerActivatedEventArgs2 { - type Vtable = IFileSavePickerActivatedEventArgs2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFileSavePickerActivatedEventArgs2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6b73fe13_2cf2_4d48_8cbc_af67d23f1ce7); -} #[repr(C)] #[doc(hidden)] pub struct IFileSavePickerActivatedEventArgs2_Vtbl { @@ -2052,11 +1751,17 @@ pub struct IFileSavePickerActivatedEventArgs2_Vtbl { pub CallerPackageFamilyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub EnterpriseId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFileSavePickerContinuationEventArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + IFileSavePickerContinuationEventArgs, + IFileSavePickerContinuationEventArgs_Vtbl, + 0x2c846fe1_3bad_4f33_8c8b_e46fae824b4b +); +#[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(IFileSavePickerContinuationEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "deprecated")] +::windows_core::imp::required_hierarchy!(IFileSavePickerContinuationEventArgs, IActivatedEventArgs, IContinuationActivatedEventArgs); #[cfg(feature = "deprecated")] impl IFileSavePickerContinuationEventArgs { #[doc = "Required features: `\"Storage\"`, `\"deprecated\"`"] @@ -2069,21 +1774,21 @@ impl IFileSavePickerContinuationEventArgs { } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2092,7 +1797,7 @@ impl IFileSavePickerContinuationEventArgs { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn ContinuationData(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ContinuationData)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2100,24 +1805,10 @@ impl IFileSavePickerContinuationEventArgs { } } #[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(IFileSavePickerContinuationEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] -impl ::windows_core::CanTryInto for IFileSavePickerContinuationEventArgs {} -#[cfg(feature = "deprecated")] -impl ::windows_core::CanTryInto for IFileSavePickerContinuationEventArgs {} -#[cfg(feature = "deprecated")] impl ::windows_core::RuntimeType for IFileSavePickerContinuationEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for IFileSavePickerContinuationEventArgs { - type Vtable = IFileSavePickerContinuationEventArgs_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for IFileSavePickerContinuationEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2c846fe1_3bad_4f33_8c8b_e46fae824b4b); -} -#[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] pub struct IFileSavePickerContinuationEventArgs_Vtbl { @@ -2127,11 +1818,17 @@ pub struct IFileSavePickerContinuationEventArgs_Vtbl { #[cfg(not(all(feature = "Storage", feature = "deprecated")))] File: usize, } -#[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFolderPickerContinuationEventArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + IFolderPickerContinuationEventArgs, + IFolderPickerContinuationEventArgs_Vtbl, + 0x51882366_9f4b_498f_beb0_42684f6e1c29 +); +#[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(IFolderPickerContinuationEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "deprecated")] +::windows_core::imp::required_hierarchy!(IFolderPickerContinuationEventArgs, IActivatedEventArgs, IContinuationActivatedEventArgs); #[cfg(feature = "deprecated")] impl IFolderPickerContinuationEventArgs { #[doc = "Required features: `\"Storage\"`, `\"deprecated\"`"] @@ -2144,21 +1841,21 @@ impl IFolderPickerContinuationEventArgs { } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2167,7 +1864,7 @@ impl IFolderPickerContinuationEventArgs { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn ContinuationData(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ContinuationData)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2175,24 +1872,10 @@ impl IFolderPickerContinuationEventArgs { } } #[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(IFolderPickerContinuationEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] -impl ::windows_core::CanTryInto for IFolderPickerContinuationEventArgs {} -#[cfg(feature = "deprecated")] -impl ::windows_core::CanTryInto for IFolderPickerContinuationEventArgs {} -#[cfg(feature = "deprecated")] impl ::windows_core::RuntimeType for IFolderPickerContinuationEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for IFolderPickerContinuationEventArgs { - type Vtable = IFolderPickerContinuationEventArgs_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for IFolderPickerContinuationEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51882366_9f4b_498f_beb0_42684f6e1c29); -} -#[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] pub struct IFolderPickerContinuationEventArgs_Vtbl { @@ -2202,9 +1885,9 @@ pub struct IFolderPickerContinuationEventArgs_Vtbl { #[cfg(not(all(feature = "Storage", feature = "deprecated")))] Folder: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILaunchActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ILaunchActivatedEventArgs, ILaunchActivatedEventArgs_Vtbl, 0xfbc93e26_a14a_4b4f_82b0_33bed920af52); +::windows_core::imp::interface_hierarchy!(ILaunchActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ILaunchActivatedEventArgs, IActivatedEventArgs); impl ILaunchActivatedEventArgs { pub fn Arguments(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -2221,38 +1904,30 @@ impl ILaunchActivatedEventArgs { } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(ILaunchActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ILaunchActivatedEventArgs {} impl ::windows_core::RuntimeType for ILaunchActivatedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for ILaunchActivatedEventArgs { - type Vtable = ILaunchActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILaunchActivatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfbc93e26_a14a_4b4f_82b0_33bed920af52); -} #[repr(C)] #[doc(hidden)] pub struct ILaunchActivatedEventArgs_Vtbl { @@ -2260,9 +1935,9 @@ pub struct ILaunchActivatedEventArgs_Vtbl { pub Arguments: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub TileId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILaunchActivatedEventArgs2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ILaunchActivatedEventArgs2, ILaunchActivatedEventArgs2_Vtbl, 0x0fd37ebc_9dc9_46b5_9ace_bd95d4565345); +::windows_core::imp::interface_hierarchy!(ILaunchActivatedEventArgs2, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ILaunchActivatedEventArgs2, IActivatedEventArgs, ILaunchActivatedEventArgs); impl ILaunchActivatedEventArgs2 { pub fn TileActivatedInfo(&self) -> ::windows_core::Result { let this = self; @@ -2272,62 +1947,53 @@ impl ILaunchActivatedEventArgs2 { } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Arguments(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Arguments)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TileId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TileId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(ILaunchActivatedEventArgs2, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ILaunchActivatedEventArgs2 {} -impl ::windows_core::CanTryInto for ILaunchActivatedEventArgs2 {} impl ::windows_core::RuntimeType for ILaunchActivatedEventArgs2 { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for ILaunchActivatedEventArgs2 { - type Vtable = ILaunchActivatedEventArgs2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILaunchActivatedEventArgs2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0fd37ebc_9dc9_46b5_9ace_bd95d4565345); -} #[repr(C)] #[doc(hidden)] pub struct ILaunchActivatedEventArgs2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub TileActivatedInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILockScreenActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ILockScreenActivatedEventArgs, ILockScreenActivatedEventArgs_Vtbl, 0x3ca77966_6108_4a41_8220_ee7d133c8532); +::windows_core::imp::interface_hierarchy!(ILockScreenActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ILockScreenActivatedEventArgs, IActivatedEventArgs); impl ILockScreenActivatedEventArgs { pub fn Info(&self) -> ::windows_core::Result<::windows_core::IInspectable> { let this = self; @@ -2337,47 +2003,39 @@ impl ILockScreenActivatedEventArgs { } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(ILockScreenActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ILockScreenActivatedEventArgs {} impl ::windows_core::RuntimeType for ILockScreenActivatedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for ILockScreenActivatedEventArgs { - type Vtable = ILockScreenActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILockScreenActivatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3ca77966_6108_4a41_8220_ee7d133c8532); -} #[repr(C)] #[doc(hidden)] pub struct ILockScreenActivatedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Info: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILockScreenCallActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ILockScreenCallActivatedEventArgs, ILockScreenCallActivatedEventArgs_Vtbl, 0x06f37fbe_b5f2_448b_b13e_e328ac1c516a); +::windows_core::imp::interface_hierarchy!(ILockScreenCallActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ILockScreenCallActivatedEventArgs, IActivatedEventArgs, ILaunchActivatedEventArgs); impl ILockScreenCallActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Calls\"`"] #[cfg(feature = "ApplicationModel_Calls")] @@ -2389,53 +2047,44 @@ impl ILockScreenCallActivatedEventArgs { } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Arguments(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Arguments)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TileId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TileId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(ILockScreenCallActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ILockScreenCallActivatedEventArgs {} -impl ::windows_core::CanTryInto for ILockScreenCallActivatedEventArgs {} impl ::windows_core::RuntimeType for ILockScreenCallActivatedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for ILockScreenCallActivatedEventArgs { - type Vtable = ILockScreenCallActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILockScreenCallActivatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x06f37fbe_b5f2_448b_b13e_e328ac1c516a); -} #[repr(C)] #[doc(hidden)] pub struct ILockScreenCallActivatedEventArgs_Vtbl { @@ -2445,9 +2094,9 @@ pub struct ILockScreenCallActivatedEventArgs_Vtbl { #[cfg(not(feature = "ApplicationModel_Calls"))] CallUI: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhoneCallActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPhoneCallActivatedEventArgs, IPhoneCallActivatedEventArgs_Vtbl, 0x54615221_a3c1_4ced_b62f_8c60523619ad); +::windows_core::imp::interface_hierarchy!(IPhoneCallActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IPhoneCallActivatedEventArgs, IActivatedEventArgs); impl IPhoneCallActivatedEventArgs { pub fn LineId(&self) -> ::windows_core::Result<::windows_core::GUID> { let this = self; @@ -2457,47 +2106,39 @@ impl IPhoneCallActivatedEventArgs { } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(IPhoneCallActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IPhoneCallActivatedEventArgs {} impl ::windows_core::RuntimeType for IPhoneCallActivatedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IPhoneCallActivatedEventArgs { - type Vtable = IPhoneCallActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhoneCallActivatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x54615221_a3c1_4ced_b62f_8c60523619ad); -} #[repr(C)] #[doc(hidden)] pub struct IPhoneCallActivatedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub LineId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPickerReturnedActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPickerReturnedActivatedEventArgs, IPickerReturnedActivatedEventArgs_Vtbl, 0x360defb9_a9d3_4984_a4ed_9ec734604921); +::windows_core::imp::interface_hierarchy!(IPickerReturnedActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IPickerReturnedActivatedEventArgs, IActivatedEventArgs); impl IPickerReturnedActivatedEventArgs { pub fn PickerOperationId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -2507,47 +2148,39 @@ impl IPickerReturnedActivatedEventArgs { } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(IPickerReturnedActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IPickerReturnedActivatedEventArgs {} impl ::windows_core::RuntimeType for IPickerReturnedActivatedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IPickerReturnedActivatedEventArgs { - type Vtable = IPickerReturnedActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPickerReturnedActivatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x360defb9_a9d3_4984_a4ed_9ec734604921); -} #[repr(C)] #[doc(hidden)] pub struct IPickerReturnedActivatedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub PickerOperationId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrelaunchActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPrelaunchActivatedEventArgs, IPrelaunchActivatedEventArgs_Vtbl, 0x0c44717b_19f7_48d6_b046_cf22826eaa74); +::windows_core::imp::interface_hierarchy!(IPrelaunchActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IPrelaunchActivatedEventArgs, IActivatedEventArgs); impl IPrelaunchActivatedEventArgs { pub fn PrelaunchActivated(&self) -> ::windows_core::Result { let this = self; @@ -2557,47 +2190,39 @@ impl IPrelaunchActivatedEventArgs { } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(IPrelaunchActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IPrelaunchActivatedEventArgs {} impl ::windows_core::RuntimeType for IPrelaunchActivatedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IPrelaunchActivatedEventArgs { - type Vtable = IPrelaunchActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrelaunchActivatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c44717b_19f7_48d6_b046_cf22826eaa74); -} #[repr(C)] #[doc(hidden)] pub struct IPrelaunchActivatedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub PrelaunchActivated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrint3DWorkflowActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPrint3DWorkflowActivatedEventArgs, IPrint3DWorkflowActivatedEventArgs_Vtbl, 0x3f57e78b_f2ac_4619_8302_ef855e1c9b90); +::windows_core::imp::interface_hierarchy!(IPrint3DWorkflowActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IPrint3DWorkflowActivatedEventArgs, IActivatedEventArgs); impl IPrint3DWorkflowActivatedEventArgs { #[doc = "Required features: `\"Devices_Printers_Extensions\"`"] #[cfg(feature = "Devices_Printers_Extensions")] @@ -2609,38 +2234,30 @@ impl IPrint3DWorkflowActivatedEventArgs { } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(IPrint3DWorkflowActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IPrint3DWorkflowActivatedEventArgs {} impl ::windows_core::RuntimeType for IPrint3DWorkflowActivatedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IPrint3DWorkflowActivatedEventArgs { - type Vtable = IPrint3DWorkflowActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrint3DWorkflowActivatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3f57e78b_f2ac_4619_8302_ef855e1c9b90); -} #[repr(C)] #[doc(hidden)] pub struct IPrint3DWorkflowActivatedEventArgs_Vtbl { @@ -2650,9 +2267,9 @@ pub struct IPrint3DWorkflowActivatedEventArgs_Vtbl { #[cfg(not(feature = "Devices_Printers_Extensions"))] Workflow: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintTaskSettingsActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPrintTaskSettingsActivatedEventArgs, IPrintTaskSettingsActivatedEventArgs_Vtbl, 0xee30a0c9_ce56_4865_ba8e_8954ac271107); +::windows_core::imp::interface_hierarchy!(IPrintTaskSettingsActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IPrintTaskSettingsActivatedEventArgs, IActivatedEventArgs); impl IPrintTaskSettingsActivatedEventArgs { #[doc = "Required features: `\"Devices_Printers_Extensions\"`"] #[cfg(feature = "Devices_Printers_Extensions")] @@ -2664,38 +2281,30 @@ impl IPrintTaskSettingsActivatedEventArgs { } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(IPrintTaskSettingsActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IPrintTaskSettingsActivatedEventArgs {} impl ::windows_core::RuntimeType for IPrintTaskSettingsActivatedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IPrintTaskSettingsActivatedEventArgs { - type Vtable = IPrintTaskSettingsActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintTaskSettingsActivatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xee30a0c9_ce56_4865_ba8e_8954ac271107); -} #[repr(C)] #[doc(hidden)] pub struct IPrintTaskSettingsActivatedEventArgs_Vtbl { @@ -2705,9 +2314,9 @@ pub struct IPrintTaskSettingsActivatedEventArgs_Vtbl { #[cfg(not(feature = "Devices_Printers_Extensions"))] Configuration: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProtocolActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IProtocolActivatedEventArgs, IProtocolActivatedEventArgs_Vtbl, 0x6095f4dd_b7c0_46ab_81fe_d90f36d00d24); +::windows_core::imp::interface_hierarchy!(IProtocolActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IProtocolActivatedEventArgs, IActivatedEventArgs); impl IProtocolActivatedEventArgs { pub fn Uri(&self) -> ::windows_core::Result { let this = self; @@ -2717,47 +2326,39 @@ impl IProtocolActivatedEventArgs { } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(IProtocolActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IProtocolActivatedEventArgs {} impl ::windows_core::RuntimeType for IProtocolActivatedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IProtocolActivatedEventArgs { - type Vtable = IProtocolActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProtocolActivatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6095f4dd_b7c0_46ab_81fe_d90f36d00d24); -} #[repr(C)] #[doc(hidden)] pub struct IProtocolActivatedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Uri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData, IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData_Vtbl, 0xd84a0c12_5c8f_438c_83cb_c28fcc0b2fdb); +::windows_core::imp::interface_hierarchy!(IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData, IActivatedEventArgs); impl IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData { pub fn CallerPackageFamilyName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -2776,38 +2377,30 @@ impl IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData { } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData {} impl ::windows_core::RuntimeType for IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData { - type Vtable = IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd84a0c12_5c8f_438c_83cb_c28fcc0b2fdb); -} #[repr(C)] #[doc(hidden)] pub struct IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData_Vtbl { @@ -2818,9 +2411,9 @@ pub struct IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Data: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProtocolForResultsActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IProtocolForResultsActivatedEventArgs, IProtocolForResultsActivatedEventArgs_Vtbl, 0xe75132c2_7ae7_4517_80ac_dbe8d7cc5b9c); +::windows_core::imp::interface_hierarchy!(IProtocolForResultsActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IProtocolForResultsActivatedEventArgs, IActivatedEventArgs); impl IProtocolForResultsActivatedEventArgs { #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] @@ -2832,38 +2425,30 @@ impl IProtocolForResultsActivatedEventArgs { } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(IProtocolForResultsActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IProtocolForResultsActivatedEventArgs {} impl ::windows_core::RuntimeType for IProtocolForResultsActivatedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IProtocolForResultsActivatedEventArgs { - type Vtable = IProtocolForResultsActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProtocolForResultsActivatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe75132c2_7ae7_4517_80ac_dbe8d7cc5b9c); -} #[repr(C)] #[doc(hidden)] pub struct IProtocolForResultsActivatedEventArgs_Vtbl { @@ -2873,9 +2458,9 @@ pub struct IProtocolForResultsActivatedEventArgs_Vtbl { #[cfg(not(feature = "System"))] ProtocolForResultsOperation: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRestrictedLaunchActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRestrictedLaunchActivatedEventArgs, IRestrictedLaunchActivatedEventArgs_Vtbl, 0xe0b7ac81_bfc3_4344_a5da_19fd5a27baae); +::windows_core::imp::interface_hierarchy!(IRestrictedLaunchActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IRestrictedLaunchActivatedEventArgs, IActivatedEventArgs); impl IRestrictedLaunchActivatedEventArgs { pub fn SharedContext(&self) -> ::windows_core::Result<::windows_core::IInspectable> { let this = self; @@ -2885,47 +2470,39 @@ impl IRestrictedLaunchActivatedEventArgs { } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(IRestrictedLaunchActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IRestrictedLaunchActivatedEventArgs {} impl ::windows_core::RuntimeType for IRestrictedLaunchActivatedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IRestrictedLaunchActivatedEventArgs { - type Vtable = IRestrictedLaunchActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRestrictedLaunchActivatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe0b7ac81_bfc3_4344_a5da_19fd5a27baae); -} #[repr(C)] #[doc(hidden)] pub struct IRestrictedLaunchActivatedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub SharedContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISearchActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISearchActivatedEventArgs, ISearchActivatedEventArgs_Vtbl, 0x8cb36951_58c8_43e3_94bc_41d33f8b630e); +::windows_core::imp::interface_hierarchy!(ISearchActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ISearchActivatedEventArgs, IActivatedEventArgs); impl ISearchActivatedEventArgs { pub fn QueryText(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -2942,38 +2519,30 @@ impl ISearchActivatedEventArgs { } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(ISearchActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ISearchActivatedEventArgs {} impl ::windows_core::RuntimeType for ISearchActivatedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for ISearchActivatedEventArgs { - type Vtable = ISearchActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISearchActivatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8cb36951_58c8_43e3_94bc_41d33f8b630e); -} #[repr(C)] #[doc(hidden)] pub struct ISearchActivatedEventArgs_Vtbl { @@ -2981,9 +2550,8 @@ pub struct ISearchActivatedEventArgs_Vtbl { pub QueryText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Language: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISearchActivatedEventArgsWithLinguisticDetails(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISearchActivatedEventArgsWithLinguisticDetails, ISearchActivatedEventArgsWithLinguisticDetails_Vtbl, 0xc09f33da_08ab_4931_9b7c_451025f21f81); +::windows_core::imp::interface_hierarchy!(ISearchActivatedEventArgsWithLinguisticDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ISearchActivatedEventArgsWithLinguisticDetails { #[doc = "Required features: `\"ApplicationModel_Search\"`"] #[cfg(feature = "ApplicationModel_Search")] @@ -2995,16 +2563,9 @@ impl ISearchActivatedEventArgsWithLinguisticDetails { } } } -::windows_core::imp::interface_hierarchy!(ISearchActivatedEventArgsWithLinguisticDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for ISearchActivatedEventArgsWithLinguisticDetails { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for ISearchActivatedEventArgsWithLinguisticDetails { - type Vtable = ISearchActivatedEventArgsWithLinguisticDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISearchActivatedEventArgsWithLinguisticDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc09f33da_08ab_4931_9b7c_451025f21f81); -} #[repr(C)] #[doc(hidden)] pub struct ISearchActivatedEventArgsWithLinguisticDetails_Vtbl { @@ -3014,9 +2575,9 @@ pub struct ISearchActivatedEventArgsWithLinguisticDetails_Vtbl { #[cfg(not(feature = "ApplicationModel_Search"))] LinguisticDetails: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShareTargetActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IShareTargetActivatedEventArgs, IShareTargetActivatedEventArgs_Vtbl, 0x4bdaf9c8_cdb2_4acb_bfc3_6648563378ec); +::windows_core::imp::interface_hierarchy!(IShareTargetActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IShareTargetActivatedEventArgs, IActivatedEventArgs); impl IShareTargetActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_DataTransfer_ShareTarget\"`"] #[cfg(feature = "ApplicationModel_DataTransfer_ShareTarget")] @@ -3028,38 +2589,30 @@ impl IShareTargetActivatedEventArgs { } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(IShareTargetActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IShareTargetActivatedEventArgs {} impl ::windows_core::RuntimeType for IShareTargetActivatedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IShareTargetActivatedEventArgs { - type Vtable = IShareTargetActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IShareTargetActivatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4bdaf9c8_cdb2_4acb_bfc3_6648563378ec); -} #[repr(C)] #[doc(hidden)] pub struct IShareTargetActivatedEventArgs_Vtbl { @@ -3069,16 +2622,7 @@ pub struct IShareTargetActivatedEventArgs_Vtbl { #[cfg(not(feature = "ApplicationModel_DataTransfer_ShareTarget"))] ShareOperation: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISplashScreen(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISplashScreen { - type Vtable = ISplashScreen_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISplashScreen { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xca4d975c_d4d6_43f0_97c0_0833c6391c24); -} +::windows_core::imp::com_interface!(ISplashScreen, ISplashScreen_Vtbl, 0xca4d975c_d4d6_43f0_97c0_0833c6391c24); #[repr(C)] #[doc(hidden)] pub struct ISplashScreen_Vtbl { @@ -3087,9 +2631,9 @@ pub struct ISplashScreen_Vtbl { pub Dismissed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveDismissed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStartupTaskActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IStartupTaskActivatedEventArgs, IStartupTaskActivatedEventArgs_Vtbl, 0x03b11a58_5276_4d91_8621_54611864d5fa); +::windows_core::imp::interface_hierarchy!(IStartupTaskActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IStartupTaskActivatedEventArgs, IActivatedEventArgs); impl IStartupTaskActivatedEventArgs { pub fn TaskId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -3099,54 +2643,37 @@ impl IStartupTaskActivatedEventArgs { } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(IStartupTaskActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IStartupTaskActivatedEventArgs {} impl ::windows_core::RuntimeType for IStartupTaskActivatedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IStartupTaskActivatedEventArgs { - type Vtable = IStartupTaskActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStartupTaskActivatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x03b11a58_5276_4d91_8621_54611864d5fa); -} #[repr(C)] #[doc(hidden)] pub struct IStartupTaskActivatedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub TaskId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITileActivatedInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITileActivatedInfo { - type Vtable = ITileActivatedInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITileActivatedInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x80e4a3b1_3980_4f17_b738_89194e0b8f65); -} +::windows_core::imp::com_interface!(ITileActivatedInfo, ITileActivatedInfo_Vtbl, 0x80e4a3b1_3980_4f17_b738_89194e0b8f65); #[repr(C)] #[doc(hidden)] pub struct ITileActivatedInfo_Vtbl { @@ -3156,9 +2683,9 @@ pub struct ITileActivatedInfo_Vtbl { #[cfg(not(all(feature = "Foundation_Collections", feature = "UI_Notifications")))] RecentlyShownNotifications: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IToastNotificationActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IToastNotificationActivatedEventArgs, IToastNotificationActivatedEventArgs_Vtbl, 0x92a86f82_5290_431d_be85_c4aaeeb8685f); +::windows_core::imp::interface_hierarchy!(IToastNotificationActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IToastNotificationActivatedEventArgs, IActivatedEventArgs); impl IToastNotificationActivatedEventArgs { pub fn Argument(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -3177,38 +2704,30 @@ impl IToastNotificationActivatedEventArgs { } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(IToastNotificationActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IToastNotificationActivatedEventArgs {} impl ::windows_core::RuntimeType for IToastNotificationActivatedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IToastNotificationActivatedEventArgs { - type Vtable = IToastNotificationActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IToastNotificationActivatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x92a86f82_5290_431d_be85_c4aaeeb8685f); -} #[repr(C)] #[doc(hidden)] pub struct IToastNotificationActivatedEventArgs_Vtbl { @@ -3219,9 +2738,9 @@ pub struct IToastNotificationActivatedEventArgs_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] UserInput: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserDataAccountProviderActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUserDataAccountProviderActivatedEventArgs, IUserDataAccountProviderActivatedEventArgs_Vtbl, 0x1bc9f723_8ef1_4a51_a63a_fe711eeab607); +::windows_core::imp::interface_hierarchy!(IUserDataAccountProviderActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IUserDataAccountProviderActivatedEventArgs, IActivatedEventArgs); impl IUserDataAccountProviderActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_UserDataAccounts_Provider\"`"] #[cfg(feature = "ApplicationModel_UserDataAccounts_Provider")] @@ -3233,38 +2752,30 @@ impl IUserDataAccountProviderActivatedEventArgs { } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(IUserDataAccountProviderActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IUserDataAccountProviderActivatedEventArgs {} impl ::windows_core::RuntimeType for IUserDataAccountProviderActivatedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IUserDataAccountProviderActivatedEventArgs { - type Vtable = IUserDataAccountProviderActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserDataAccountProviderActivatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1bc9f723_8ef1_4a51_a63a_fe711eeab607); -} #[repr(C)] #[doc(hidden)] pub struct IUserDataAccountProviderActivatedEventArgs_Vtbl { @@ -3274,9 +2785,9 @@ pub struct IUserDataAccountProviderActivatedEventArgs_Vtbl { #[cfg(not(feature = "ApplicationModel_UserDataAccounts_Provider"))] Operation: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IViewSwitcherProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IViewSwitcherProvider, IViewSwitcherProvider_Vtbl, 0x33f288a6_5c2c_4d27_bac7_7536088f1219); +::windows_core::imp::interface_hierarchy!(IViewSwitcherProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IViewSwitcherProvider, IActivatedEventArgs); impl IViewSwitcherProvider { #[doc = "Required features: `\"UI_ViewManagement\"`"] #[cfg(feature = "UI_ViewManagement")] @@ -3288,38 +2799,30 @@ impl IViewSwitcherProvider { } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(IViewSwitcherProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IViewSwitcherProvider {} impl ::windows_core::RuntimeType for IViewSwitcherProvider { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IViewSwitcherProvider { - type Vtable = IViewSwitcherProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IViewSwitcherProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x33f288a6_5c2c_4d27_bac7_7536088f1219); -} #[repr(C)] #[doc(hidden)] pub struct IViewSwitcherProvider_Vtbl { @@ -3329,9 +2832,9 @@ pub struct IViewSwitcherProvider_Vtbl { #[cfg(not(feature = "UI_ViewManagement"))] ViewSwitcher: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVoiceCommandActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVoiceCommandActivatedEventArgs, IVoiceCommandActivatedEventArgs_Vtbl, 0xab92dcfd_8d43_4de6_9775_20704b581b00); +::windows_core::imp::interface_hierarchy!(IVoiceCommandActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IVoiceCommandActivatedEventArgs, IActivatedEventArgs); impl IVoiceCommandActivatedEventArgs { #[doc = "Required features: `\"Media_SpeechRecognition\"`"] #[cfg(feature = "Media_SpeechRecognition")] @@ -3343,38 +2846,30 @@ impl IVoiceCommandActivatedEventArgs { } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(IVoiceCommandActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IVoiceCommandActivatedEventArgs {} impl ::windows_core::RuntimeType for IVoiceCommandActivatedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IVoiceCommandActivatedEventArgs { - type Vtable = IVoiceCommandActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVoiceCommandActivatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xab92dcfd_8d43_4de6_9775_20704b581b00); -} #[repr(C)] #[doc(hidden)] pub struct IVoiceCommandActivatedEventArgs_Vtbl { @@ -3384,11 +2879,17 @@ pub struct IVoiceCommandActivatedEventArgs_Vtbl { #[cfg(not(feature = "Media_SpeechRecognition"))] Result: usize, } -#[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWalletActionActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + IWalletActionActivatedEventArgs, + IWalletActionActivatedEventArgs_Vtbl, + 0xfcfc027b_1a1a_4d22_923f_ae6f45fa52d9 +); +#[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(IWalletActionActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "deprecated")] +::windows_core::imp::required_hierarchy!(IWalletActionActivatedEventArgs, IActivatedEventArgs); #[cfg(feature = "deprecated")] impl IWalletActionActivatedEventArgs { #[doc = "Required features: `\"deprecated\"`"] @@ -3419,21 +2920,21 @@ impl IWalletActionActivatedEventArgs { } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3441,22 +2942,10 @@ impl IWalletActionActivatedEventArgs { } } #[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(IWalletActionActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] -impl ::windows_core::CanTryInto for IWalletActionActivatedEventArgs {} -#[cfg(feature = "deprecated")] impl ::windows_core::RuntimeType for IWalletActionActivatedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for IWalletActionActivatedEventArgs { - type Vtable = IWalletActionActivatedEventArgs_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for IWalletActionActivatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfcfc027b_1a1a_4d22_923f_ae6f45fa52d9); -} -#[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] pub struct IWalletActionActivatedEventArgs_Vtbl { @@ -3474,9 +2963,9 @@ pub struct IWalletActionActivatedEventArgs_Vtbl { #[cfg(not(feature = "deprecated"))] ActionId: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebAccountProviderActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWebAccountProviderActivatedEventArgs, IWebAccountProviderActivatedEventArgs_Vtbl, 0x72b71774_98ea_4ccf_9752_46d9051004f1); +::windows_core::imp::interface_hierarchy!(IWebAccountProviderActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IWebAccountProviderActivatedEventArgs, IActivatedEventArgs); impl IWebAccountProviderActivatedEventArgs { #[doc = "Required features: `\"Security_Authentication_Web_Provider\"`"] #[cfg(feature = "Security_Authentication_Web_Provider")] @@ -3488,38 +2977,30 @@ impl IWebAccountProviderActivatedEventArgs { } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(IWebAccountProviderActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IWebAccountProviderActivatedEventArgs {} impl ::windows_core::RuntimeType for IWebAccountProviderActivatedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IWebAccountProviderActivatedEventArgs { - type Vtable = IWebAccountProviderActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebAccountProviderActivatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x72b71774_98ea_4ccf_9752_46d9051004f1); -} #[repr(C)] #[doc(hidden)] pub struct IWebAccountProviderActivatedEventArgs_Vtbl { @@ -3529,9 +3010,9 @@ pub struct IWebAccountProviderActivatedEventArgs_Vtbl { #[cfg(not(feature = "Security_Authentication_Web_Provider"))] Operation: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebAuthenticationBrokerContinuationEventArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWebAuthenticationBrokerContinuationEventArgs, IWebAuthenticationBrokerContinuationEventArgs_Vtbl, 0x75dda3d4_7714_453d_b7ff_b95e3a1709da); +::windows_core::imp::interface_hierarchy!(IWebAuthenticationBrokerContinuationEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IWebAuthenticationBrokerContinuationEventArgs, IActivatedEventArgs, IContinuationActivatedEventArgs); impl IWebAuthenticationBrokerContinuationEventArgs { #[doc = "Required features: `\"Security_Authentication_Web\"`"] #[cfg(feature = "Security_Authentication_Web")] @@ -3543,21 +3024,21 @@ impl IWebAuthenticationBrokerContinuationEventArgs { } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3566,25 +3047,16 @@ impl IWebAuthenticationBrokerContinuationEventArgs { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn ContinuationData(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ContinuationData)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(IWebAuthenticationBrokerContinuationEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IWebAuthenticationBrokerContinuationEventArgs {} -impl ::windows_core::CanTryInto for IWebAuthenticationBrokerContinuationEventArgs {} impl ::windows_core::RuntimeType for IWebAuthenticationBrokerContinuationEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IWebAuthenticationBrokerContinuationEventArgs { - type Vtable = IWebAuthenticationBrokerContinuationEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebAuthenticationBrokerContinuationEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x75dda3d4_7714_453d_b7ff_b95e3a1709da); -} #[repr(C)] #[doc(hidden)] pub struct IWebAuthenticationBrokerContinuationEventArgs_Vtbl { @@ -3597,23 +3069,25 @@ pub struct IWebAuthenticationBrokerContinuationEventArgs_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppointmentsProviderAddAppointmentActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppointmentsProviderAddAppointmentActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(AppointmentsProviderAddAppointmentActivatedEventArgs, IActivatedEventArgs, IActivatedEventArgsWithUser, IAppointmentsProviderActivatedEventArgs, IAppointmentsProviderAddAppointmentActivatedEventArgs); impl AppointmentsProviderAddAppointmentActivatedEventArgs { pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3622,14 +3096,14 @@ impl AppointmentsProviderAddAppointmentActivatedEventArgs { #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Verb(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Verb)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3650,40 +3124,35 @@ impl ::windows_core::RuntimeType for AppointmentsProviderAddAppointmentActivated } unsafe impl ::windows_core::Interface for AppointmentsProviderAddAppointmentActivatedEventArgs { type Vtable = IAppointmentsProviderAddAppointmentActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppointmentsProviderAddAppointmentActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppointmentsProviderAddAppointmentActivatedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Activation.AppointmentsProviderAddAppointmentActivatedEventArgs"; } -::windows_core::imp::interface_hierarchy!(AppointmentsProviderAddAppointmentActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for AppointmentsProviderAddAppointmentActivatedEventArgs {} -impl ::windows_core::CanTryInto for AppointmentsProviderAddAppointmentActivatedEventArgs {} -impl ::windows_core::CanTryInto for AppointmentsProviderAddAppointmentActivatedEventArgs {} -impl ::windows_core::CanTryInto for AppointmentsProviderAddAppointmentActivatedEventArgs {} unsafe impl ::core::marker::Send for AppointmentsProviderAddAppointmentActivatedEventArgs {} unsafe impl ::core::marker::Sync for AppointmentsProviderAddAppointmentActivatedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppointmentsProviderRemoveAppointmentActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppointmentsProviderRemoveAppointmentActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(AppointmentsProviderRemoveAppointmentActivatedEventArgs, IActivatedEventArgs, IActivatedEventArgsWithUser, IAppointmentsProviderActivatedEventArgs, IAppointmentsProviderRemoveAppointmentActivatedEventArgs); impl AppointmentsProviderRemoveAppointmentActivatedEventArgs { pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3692,14 +3161,14 @@ impl AppointmentsProviderRemoveAppointmentActivatedEventArgs { #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Verb(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Verb)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3720,40 +3189,35 @@ impl ::windows_core::RuntimeType for AppointmentsProviderRemoveAppointmentActiva } unsafe impl ::windows_core::Interface for AppointmentsProviderRemoveAppointmentActivatedEventArgs { type Vtable = IAppointmentsProviderRemoveAppointmentActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppointmentsProviderRemoveAppointmentActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppointmentsProviderRemoveAppointmentActivatedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Activation.AppointmentsProviderRemoveAppointmentActivatedEventArgs"; } -::windows_core::imp::interface_hierarchy!(AppointmentsProviderRemoveAppointmentActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for AppointmentsProviderRemoveAppointmentActivatedEventArgs {} -impl ::windows_core::CanTryInto for AppointmentsProviderRemoveAppointmentActivatedEventArgs {} -impl ::windows_core::CanTryInto for AppointmentsProviderRemoveAppointmentActivatedEventArgs {} -impl ::windows_core::CanTryInto for AppointmentsProviderRemoveAppointmentActivatedEventArgs {} unsafe impl ::core::marker::Send for AppointmentsProviderRemoveAppointmentActivatedEventArgs {} unsafe impl ::core::marker::Sync for AppointmentsProviderRemoveAppointmentActivatedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppointmentsProviderReplaceAppointmentActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppointmentsProviderReplaceAppointmentActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(AppointmentsProviderReplaceAppointmentActivatedEventArgs, IActivatedEventArgs, IActivatedEventArgsWithUser, IAppointmentsProviderActivatedEventArgs, IAppointmentsProviderReplaceAppointmentActivatedEventArgs); impl AppointmentsProviderReplaceAppointmentActivatedEventArgs { pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3762,14 +3226,14 @@ impl AppointmentsProviderReplaceAppointmentActivatedEventArgs { #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Verb(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Verb)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3790,40 +3254,35 @@ impl ::windows_core::RuntimeType for AppointmentsProviderReplaceAppointmentActiv } unsafe impl ::windows_core::Interface for AppointmentsProviderReplaceAppointmentActivatedEventArgs { type Vtable = IAppointmentsProviderReplaceAppointmentActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppointmentsProviderReplaceAppointmentActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppointmentsProviderReplaceAppointmentActivatedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Activation.AppointmentsProviderReplaceAppointmentActivatedEventArgs"; } -::windows_core::imp::interface_hierarchy!(AppointmentsProviderReplaceAppointmentActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for AppointmentsProviderReplaceAppointmentActivatedEventArgs {} -impl ::windows_core::CanTryInto for AppointmentsProviderReplaceAppointmentActivatedEventArgs {} -impl ::windows_core::CanTryInto for AppointmentsProviderReplaceAppointmentActivatedEventArgs {} -impl ::windows_core::CanTryInto for AppointmentsProviderReplaceAppointmentActivatedEventArgs {} unsafe impl ::core::marker::Send for AppointmentsProviderReplaceAppointmentActivatedEventArgs {} unsafe impl ::core::marker::Sync for AppointmentsProviderReplaceAppointmentActivatedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppointmentsProviderShowAppointmentDetailsActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppointmentsProviderShowAppointmentDetailsActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(AppointmentsProviderShowAppointmentDetailsActivatedEventArgs, IActivatedEventArgs, IActivatedEventArgsWithUser, IAppointmentsProviderActivatedEventArgs, IAppointmentsProviderShowAppointmentDetailsActivatedEventArgs); impl AppointmentsProviderShowAppointmentDetailsActivatedEventArgs { pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3832,14 +3291,14 @@ impl AppointmentsProviderShowAppointmentDetailsActivatedEventArgs { #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Verb(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Verb)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3872,40 +3331,35 @@ impl ::windows_core::RuntimeType for AppointmentsProviderShowAppointmentDetailsA } unsafe impl ::windows_core::Interface for AppointmentsProviderShowAppointmentDetailsActivatedEventArgs { type Vtable = IAppointmentsProviderShowAppointmentDetailsActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppointmentsProviderShowAppointmentDetailsActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppointmentsProviderShowAppointmentDetailsActivatedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Activation.AppointmentsProviderShowAppointmentDetailsActivatedEventArgs"; } -::windows_core::imp::interface_hierarchy!(AppointmentsProviderShowAppointmentDetailsActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for AppointmentsProviderShowAppointmentDetailsActivatedEventArgs {} -impl ::windows_core::CanTryInto for AppointmentsProviderShowAppointmentDetailsActivatedEventArgs {} -impl ::windows_core::CanTryInto for AppointmentsProviderShowAppointmentDetailsActivatedEventArgs {} -impl ::windows_core::CanTryInto for AppointmentsProviderShowAppointmentDetailsActivatedEventArgs {} unsafe impl ::core::marker::Send for AppointmentsProviderShowAppointmentDetailsActivatedEventArgs {} unsafe impl ::core::marker::Sync for AppointmentsProviderShowAppointmentDetailsActivatedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppointmentsProviderShowTimeFrameActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppointmentsProviderShowTimeFrameActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(AppointmentsProviderShowTimeFrameActivatedEventArgs, IActivatedEventArgs, IActivatedEventArgsWithUser, IAppointmentsProviderActivatedEventArgs, IAppointmentsProviderShowTimeFrameActivatedEventArgs); impl AppointmentsProviderShowTimeFrameActivatedEventArgs { pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3914,14 +3368,14 @@ impl AppointmentsProviderShowTimeFrameActivatedEventArgs { #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Verb(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Verb)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3947,23 +3401,18 @@ impl ::windows_core::RuntimeType for AppointmentsProviderShowTimeFrameActivatedE } unsafe impl ::windows_core::Interface for AppointmentsProviderShowTimeFrameActivatedEventArgs { type Vtable = IAppointmentsProviderShowTimeFrameActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppointmentsProviderShowTimeFrameActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppointmentsProviderShowTimeFrameActivatedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Activation.AppointmentsProviderShowTimeFrameActivatedEventArgs"; } -::windows_core::imp::interface_hierarchy!(AppointmentsProviderShowTimeFrameActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for AppointmentsProviderShowTimeFrameActivatedEventArgs {} -impl ::windows_core::CanTryInto for AppointmentsProviderShowTimeFrameActivatedEventArgs {} -impl ::windows_core::CanTryInto for AppointmentsProviderShowTimeFrameActivatedEventArgs {} -impl ::windows_core::CanTryInto for AppointmentsProviderShowTimeFrameActivatedEventArgs {} unsafe impl ::core::marker::Send for AppointmentsProviderShowTimeFrameActivatedEventArgs {} unsafe impl ::core::marker::Sync for AppointmentsProviderShowTimeFrameActivatedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BackgroundActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BackgroundActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(BackgroundActivatedEventArgs, IBackgroundActivatedEventArgs); impl BackgroundActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Background\"`"] #[cfg(feature = "ApplicationModel_Background")] @@ -3980,37 +3429,35 @@ impl ::windows_core::RuntimeType for BackgroundActivatedEventArgs { } unsafe impl ::windows_core::Interface for BackgroundActivatedEventArgs { type Vtable = IBackgroundActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BackgroundActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BackgroundActivatedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Activation.BackgroundActivatedEventArgs"; } -::windows_core::imp::interface_hierarchy!(BackgroundActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for BackgroundActivatedEventArgs {} unsafe impl ::core::marker::Send for BackgroundActivatedEventArgs {} unsafe impl ::core::marker::Sync for BackgroundActivatedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BarcodeScannerPreviewActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BarcodeScannerPreviewActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(BarcodeScannerPreviewActivatedEventArgs, IActivatedEventArgs, IActivatedEventArgsWithUser, IBarcodeScannerPreviewActivatedEventArgs); impl BarcodeScannerPreviewActivatedEventArgs { pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4019,7 +3466,7 @@ impl BarcodeScannerPreviewActivatedEventArgs { #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4038,39 +3485,35 @@ impl ::windows_core::RuntimeType for BarcodeScannerPreviewActivatedEventArgs { } unsafe impl ::windows_core::Interface for BarcodeScannerPreviewActivatedEventArgs { type Vtable = IBarcodeScannerPreviewActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BarcodeScannerPreviewActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BarcodeScannerPreviewActivatedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Activation.BarcodeScannerPreviewActivatedEventArgs"; } -::windows_core::imp::interface_hierarchy!(BarcodeScannerPreviewActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for BarcodeScannerPreviewActivatedEventArgs {} -impl ::windows_core::CanTryInto for BarcodeScannerPreviewActivatedEventArgs {} -impl ::windows_core::CanTryInto for BarcodeScannerPreviewActivatedEventArgs {} unsafe impl ::core::marker::Send for BarcodeScannerPreviewActivatedEventArgs {} unsafe impl ::core::marker::Sync for BarcodeScannerPreviewActivatedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CachedFileUpdaterActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CachedFileUpdaterActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(CachedFileUpdaterActivatedEventArgs, IActivatedEventArgs, IActivatedEventArgsWithUser, ICachedFileUpdaterActivatedEventArgs); impl CachedFileUpdaterActivatedEventArgs { pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4079,7 +3522,7 @@ impl CachedFileUpdaterActivatedEventArgs { #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4100,39 +3543,35 @@ impl ::windows_core::RuntimeType for CachedFileUpdaterActivatedEventArgs { } unsafe impl ::windows_core::Interface for CachedFileUpdaterActivatedEventArgs { type Vtable = ICachedFileUpdaterActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CachedFileUpdaterActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CachedFileUpdaterActivatedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Activation.CachedFileUpdaterActivatedEventArgs"; } -::windows_core::imp::interface_hierarchy!(CachedFileUpdaterActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CachedFileUpdaterActivatedEventArgs {} -impl ::windows_core::CanTryInto for CachedFileUpdaterActivatedEventArgs {} -impl ::windows_core::CanTryInto for CachedFileUpdaterActivatedEventArgs {} unsafe impl ::core::marker::Send for CachedFileUpdaterActivatedEventArgs {} unsafe impl ::core::marker::Sync for CachedFileUpdaterActivatedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CameraSettingsActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CameraSettingsActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(CameraSettingsActivatedEventArgs, IActivatedEventArgs, ICameraSettingsActivatedEventArgs); impl CameraSettingsActivatedEventArgs { pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4158,38 +3597,35 @@ impl ::windows_core::RuntimeType for CameraSettingsActivatedEventArgs { } unsafe impl ::windows_core::Interface for CameraSettingsActivatedEventArgs { type Vtable = ICameraSettingsActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CameraSettingsActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CameraSettingsActivatedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Activation.CameraSettingsActivatedEventArgs"; } -::windows_core::imp::interface_hierarchy!(CameraSettingsActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CameraSettingsActivatedEventArgs {} -impl ::windows_core::CanTryInto for CameraSettingsActivatedEventArgs {} unsafe impl ::core::marker::Send for CameraSettingsActivatedEventArgs {} unsafe impl ::core::marker::Sync for CameraSettingsActivatedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CommandLineActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CommandLineActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(CommandLineActivatedEventArgs, IActivatedEventArgs, IActivatedEventArgsWithUser, ICommandLineActivatedEventArgs); impl CommandLineActivatedEventArgs { pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4198,7 +3634,7 @@ impl CommandLineActivatedEventArgs { #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4217,22 +3653,17 @@ impl ::windows_core::RuntimeType for CommandLineActivatedEventArgs { } unsafe impl ::windows_core::Interface for CommandLineActivatedEventArgs { type Vtable = ICommandLineActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CommandLineActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CommandLineActivatedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Activation.CommandLineActivatedEventArgs"; } -::windows_core::imp::interface_hierarchy!(CommandLineActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CommandLineActivatedEventArgs {} -impl ::windows_core::CanTryInto for CommandLineActivatedEventArgs {} -impl ::windows_core::CanTryInto for CommandLineActivatedEventArgs {} unsafe impl ::core::marker::Send for CommandLineActivatedEventArgs {} unsafe impl ::core::marker::Sync for CommandLineActivatedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CommandLineActivationOperation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CommandLineActivationOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CommandLineActivationOperation { pub fn Arguments(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -4272,43 +3703,42 @@ impl ::windows_core::RuntimeType for CommandLineActivationOperation { } unsafe impl ::windows_core::Interface for CommandLineActivationOperation { type Vtable = ICommandLineActivationOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CommandLineActivationOperation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CommandLineActivationOperation { const NAME: &'static str = "Windows.ApplicationModel.Activation.CommandLineActivationOperation"; } -::windows_core::imp::interface_hierarchy!(CommandLineActivationOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CommandLineActivationOperation {} unsafe impl ::core::marker::Sync for CommandLineActivationOperation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContactCallActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContactCallActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ContactCallActivatedEventArgs, IActivatedEventArgs, IContactActivatedEventArgs, IContactCallActivatedEventArgs); impl ContactCallActivatedEventArgs { pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Verb(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Verb)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4343,46 +3773,42 @@ impl ::windows_core::RuntimeType for ContactCallActivatedEventArgs { } unsafe impl ::windows_core::Interface for ContactCallActivatedEventArgs { type Vtable = IContactCallActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContactCallActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContactCallActivatedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Activation.ContactCallActivatedEventArgs"; } -::windows_core::imp::interface_hierarchy!(ContactCallActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ContactCallActivatedEventArgs {} -impl ::windows_core::CanTryInto for ContactCallActivatedEventArgs {} -impl ::windows_core::CanTryInto for ContactCallActivatedEventArgs {} unsafe impl ::core::marker::Send for ContactCallActivatedEventArgs {} unsafe impl ::core::marker::Sync for ContactCallActivatedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContactMapActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContactMapActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ContactMapActivatedEventArgs, IActivatedEventArgs, IContactActivatedEventArgs, IContactMapActivatedEventArgs); impl ContactMapActivatedEventArgs { pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Verb(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Verb)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4412,46 +3838,42 @@ impl ::windows_core::RuntimeType for ContactMapActivatedEventArgs { } unsafe impl ::windows_core::Interface for ContactMapActivatedEventArgs { type Vtable = IContactMapActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContactMapActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContactMapActivatedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Activation.ContactMapActivatedEventArgs"; } -::windows_core::imp::interface_hierarchy!(ContactMapActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ContactMapActivatedEventArgs {} -impl ::windows_core::CanTryInto for ContactMapActivatedEventArgs {} -impl ::windows_core::CanTryInto for ContactMapActivatedEventArgs {} unsafe impl ::core::marker::Send for ContactMapActivatedEventArgs {} unsafe impl ::core::marker::Sync for ContactMapActivatedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContactMessageActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContactMessageActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ContactMessageActivatedEventArgs, IActivatedEventArgs, IContactActivatedEventArgs, IContactMessageActivatedEventArgs); impl ContactMessageActivatedEventArgs { pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Verb(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Verb)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4486,39 +3908,35 @@ impl ::windows_core::RuntimeType for ContactMessageActivatedEventArgs { } unsafe impl ::windows_core::Interface for ContactMessageActivatedEventArgs { type Vtable = IContactMessageActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContactMessageActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContactMessageActivatedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Activation.ContactMessageActivatedEventArgs"; } -::windows_core::imp::interface_hierarchy!(ContactMessageActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ContactMessageActivatedEventArgs {} -impl ::windows_core::CanTryInto for ContactMessageActivatedEventArgs {} -impl ::windows_core::CanTryInto for ContactMessageActivatedEventArgs {} unsafe impl ::core::marker::Send for ContactMessageActivatedEventArgs {} unsafe impl ::core::marker::Sync for ContactMessageActivatedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContactPanelActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContactPanelActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ContactPanelActivatedEventArgs, IActivatedEventArgs, IActivatedEventArgsWithUser, IContactPanelActivatedEventArgs); impl ContactPanelActivatedEventArgs { pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4527,7 +3945,7 @@ impl ContactPanelActivatedEventArgs { #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4557,39 +3975,35 @@ impl ::windows_core::RuntimeType for ContactPanelActivatedEventArgs { } unsafe impl ::windows_core::Interface for ContactPanelActivatedEventArgs { type Vtable = IContactPanelActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContactPanelActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContactPanelActivatedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Activation.ContactPanelActivatedEventArgs"; } -::windows_core::imp::interface_hierarchy!(ContactPanelActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ContactPanelActivatedEventArgs {} -impl ::windows_core::CanTryInto for ContactPanelActivatedEventArgs {} -impl ::windows_core::CanTryInto for ContactPanelActivatedEventArgs {} unsafe impl ::core::marker::Send for ContactPanelActivatedEventArgs {} unsafe impl ::core::marker::Sync for ContactPanelActivatedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContactPickerActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContactPickerActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ContactPickerActivatedEventArgs, IActivatedEventArgs, IContactPickerActivatedEventArgs); impl ContactPickerActivatedEventArgs { pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4610,45 +4024,42 @@ impl ::windows_core::RuntimeType for ContactPickerActivatedEventArgs { } unsafe impl ::windows_core::Interface for ContactPickerActivatedEventArgs { type Vtable = IContactPickerActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContactPickerActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContactPickerActivatedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Activation.ContactPickerActivatedEventArgs"; } -::windows_core::imp::interface_hierarchy!(ContactPickerActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ContactPickerActivatedEventArgs {} -impl ::windows_core::CanTryInto for ContactPickerActivatedEventArgs {} unsafe impl ::core::marker::Send for ContactPickerActivatedEventArgs {} unsafe impl ::core::marker::Sync for ContactPickerActivatedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContactPostActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContactPostActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ContactPostActivatedEventArgs, IActivatedEventArgs, IContactActivatedEventArgs, IContactPostActivatedEventArgs); impl ContactPostActivatedEventArgs { pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Verb(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Verb)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4683,46 +4094,42 @@ impl ::windows_core::RuntimeType for ContactPostActivatedEventArgs { } unsafe impl ::windows_core::Interface for ContactPostActivatedEventArgs { type Vtable = IContactPostActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContactPostActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContactPostActivatedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Activation.ContactPostActivatedEventArgs"; } -::windows_core::imp::interface_hierarchy!(ContactPostActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ContactPostActivatedEventArgs {} -impl ::windows_core::CanTryInto for ContactPostActivatedEventArgs {} -impl ::windows_core::CanTryInto for ContactPostActivatedEventArgs {} unsafe impl ::core::marker::Send for ContactPostActivatedEventArgs {} unsafe impl ::core::marker::Sync for ContactPostActivatedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContactVideoCallActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContactVideoCallActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ContactVideoCallActivatedEventArgs, IActivatedEventArgs, IContactActivatedEventArgs, IContactVideoCallActivatedEventArgs); impl ContactVideoCallActivatedEventArgs { pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Verb(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Verb)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4757,39 +4164,35 @@ impl ::windows_core::RuntimeType for ContactVideoCallActivatedEventArgs { } unsafe impl ::windows_core::Interface for ContactVideoCallActivatedEventArgs { type Vtable = IContactVideoCallActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContactVideoCallActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContactVideoCallActivatedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Activation.ContactVideoCallActivatedEventArgs"; } -::windows_core::imp::interface_hierarchy!(ContactVideoCallActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ContactVideoCallActivatedEventArgs {} -impl ::windows_core::CanTryInto for ContactVideoCallActivatedEventArgs {} -impl ::windows_core::CanTryInto for ContactVideoCallActivatedEventArgs {} unsafe impl ::core::marker::Send for ContactVideoCallActivatedEventArgs {} unsafe impl ::core::marker::Sync for ContactVideoCallActivatedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DeviceActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DeviceActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(DeviceActivatedEventArgs, IActivatedEventArgs, IActivatedEventArgsWithUser, IApplicationViewActivatedEventArgs, IDeviceActivatedEventArgs, IViewSwitcherProvider); impl DeviceActivatedEventArgs { pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4798,14 +4201,14 @@ impl DeviceActivatedEventArgs { #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CurrentlyShownApplicationViewId(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CurrentlyShownApplicationViewId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4828,7 +4231,7 @@ impl DeviceActivatedEventArgs { #[doc = "Required features: `\"UI_ViewManagement\"`"] #[cfg(feature = "UI_ViewManagement")] pub fn ViewSwitcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ViewSwitcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4840,41 +4243,35 @@ impl ::windows_core::RuntimeType for DeviceActivatedEventArgs { } unsafe impl ::windows_core::Interface for DeviceActivatedEventArgs { type Vtable = IDeviceActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DeviceActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DeviceActivatedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Activation.DeviceActivatedEventArgs"; } -::windows_core::imp::interface_hierarchy!(DeviceActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for DeviceActivatedEventArgs {} -impl ::windows_core::CanTryInto for DeviceActivatedEventArgs {} -impl ::windows_core::CanTryInto for DeviceActivatedEventArgs {} -impl ::windows_core::CanTryInto for DeviceActivatedEventArgs {} -impl ::windows_core::CanTryInto for DeviceActivatedEventArgs {} unsafe impl ::core::marker::Send for DeviceActivatedEventArgs {} unsafe impl ::core::marker::Sync for DeviceActivatedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DevicePairingActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DevicePairingActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(DevicePairingActivatedEventArgs, IActivatedEventArgs, IActivatedEventArgsWithUser, IDevicePairingActivatedEventArgs); impl DevicePairingActivatedEventArgs { pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4883,7 +4280,7 @@ impl DevicePairingActivatedEventArgs { #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4904,39 +4301,35 @@ impl ::windows_core::RuntimeType for DevicePairingActivatedEventArgs { } unsafe impl ::windows_core::Interface for DevicePairingActivatedEventArgs { type Vtable = IDevicePairingActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DevicePairingActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DevicePairingActivatedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Activation.DevicePairingActivatedEventArgs"; } -::windows_core::imp::interface_hierarchy!(DevicePairingActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for DevicePairingActivatedEventArgs {} -impl ::windows_core::CanTryInto for DevicePairingActivatedEventArgs {} -impl ::windows_core::CanTryInto for DevicePairingActivatedEventArgs {} unsafe impl ::core::marker::Send for DevicePairingActivatedEventArgs {} unsafe impl ::core::marker::Sync for DevicePairingActivatedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DialReceiverActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DialReceiverActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(DialReceiverActivatedEventArgs, IActivatedEventArgs, IActivatedEventArgsWithUser, IApplicationViewActivatedEventArgs, IDialReceiverActivatedEventArgs, ILaunchActivatedEventArgs, IViewSwitcherProvider); impl DialReceiverActivatedEventArgs { pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4945,14 +4338,14 @@ impl DialReceiverActivatedEventArgs { #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CurrentlyShownApplicationViewId(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CurrentlyShownApplicationViewId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4966,14 +4359,14 @@ impl DialReceiverActivatedEventArgs { } } pub fn Arguments(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Arguments)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TileId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TileId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4982,7 +4375,7 @@ impl DialReceiverActivatedEventArgs { #[doc = "Required features: `\"UI_ViewManagement\"`"] #[cfg(feature = "UI_ViewManagement")] pub fn ViewSwitcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ViewSwitcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4994,42 +4387,35 @@ impl ::windows_core::RuntimeType for DialReceiverActivatedEventArgs { } unsafe impl ::windows_core::Interface for DialReceiverActivatedEventArgs { type Vtable = IDialReceiverActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DialReceiverActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DialReceiverActivatedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Activation.DialReceiverActivatedEventArgs"; } -::windows_core::imp::interface_hierarchy!(DialReceiverActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for DialReceiverActivatedEventArgs {} -impl ::windows_core::CanTryInto for DialReceiverActivatedEventArgs {} -impl ::windows_core::CanTryInto for DialReceiverActivatedEventArgs {} -impl ::windows_core::CanTryInto for DialReceiverActivatedEventArgs {} -impl ::windows_core::CanTryInto for DialReceiverActivatedEventArgs {} -impl ::windows_core::CanTryInto for DialReceiverActivatedEventArgs {} unsafe impl ::core::marker::Send for DialReceiverActivatedEventArgs {} unsafe impl ::core::marker::Sync for DialReceiverActivatedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct FileActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(FileActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(FileActivatedEventArgs, IActivatedEventArgs, IActivatedEventArgsWithUser, IApplicationViewActivatedEventArgs, IFileActivatedEventArgs, IFileActivatedEventArgsWithCallerPackageFamilyName, IFileActivatedEventArgsWithNeighboringFiles, IViewSwitcherProvider); impl FileActivatedEventArgs { pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5038,14 +4424,14 @@ impl FileActivatedEventArgs { #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CurrentlyShownApplicationViewId(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CurrentlyShownApplicationViewId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5068,7 +4454,7 @@ impl FileActivatedEventArgs { } } pub fn CallerPackageFamilyName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CallerPackageFamilyName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5077,7 +4463,7 @@ impl FileActivatedEventArgs { #[doc = "Required features: `\"Storage_Search\"`"] #[cfg(feature = "Storage_Search")] pub fn NeighboringFilesQuery(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NeighboringFilesQuery)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5086,7 +4472,7 @@ impl FileActivatedEventArgs { #[doc = "Required features: `\"UI_ViewManagement\"`"] #[cfg(feature = "UI_ViewManagement")] pub fn ViewSwitcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ViewSwitcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5098,43 +4484,35 @@ impl ::windows_core::RuntimeType for FileActivatedEventArgs { } unsafe impl ::windows_core::Interface for FileActivatedEventArgs { type Vtable = IFileActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for FileActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for FileActivatedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Activation.FileActivatedEventArgs"; } -::windows_core::imp::interface_hierarchy!(FileActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for FileActivatedEventArgs {} -impl ::windows_core::CanTryInto for FileActivatedEventArgs {} -impl ::windows_core::CanTryInto for FileActivatedEventArgs {} -impl ::windows_core::CanTryInto for FileActivatedEventArgs {} -impl ::windows_core::CanTryInto for FileActivatedEventArgs {} -impl ::windows_core::CanTryInto for FileActivatedEventArgs {} -impl ::windows_core::CanTryInto for FileActivatedEventArgs {} unsafe impl ::core::marker::Send for FileActivatedEventArgs {} unsafe impl ::core::marker::Sync for FileActivatedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct FileOpenPickerActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(FileOpenPickerActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(FileOpenPickerActivatedEventArgs, IActivatedEventArgs, IActivatedEventArgsWithUser, IFileOpenPickerActivatedEventArgs, IFileOpenPickerActivatedEventArgs2); impl FileOpenPickerActivatedEventArgs { pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5143,7 +4521,7 @@ impl FileOpenPickerActivatedEventArgs { #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5159,7 +4537,7 @@ impl FileOpenPickerActivatedEventArgs { } } pub fn CallerPackageFamilyName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CallerPackageFamilyName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5171,18 +4549,11 @@ impl ::windows_core::RuntimeType for FileOpenPickerActivatedEventArgs { } unsafe impl ::windows_core::Interface for FileOpenPickerActivatedEventArgs { type Vtable = IFileOpenPickerActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for FileOpenPickerActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for FileOpenPickerActivatedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Activation.FileOpenPickerActivatedEventArgs"; } -::windows_core::imp::interface_hierarchy!(FileOpenPickerActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for FileOpenPickerActivatedEventArgs {} -impl ::windows_core::CanTryInto for FileOpenPickerActivatedEventArgs {} -impl ::windows_core::CanTryInto for FileOpenPickerActivatedEventArgs {} -impl ::windows_core::CanTryInto for FileOpenPickerActivatedEventArgs {} unsafe impl ::core::marker::Send for FileOpenPickerActivatedEventArgs {} unsafe impl ::core::marker::Sync for FileOpenPickerActivatedEventArgs {} #[doc = "Required features: `\"deprecated\"`"] @@ -5191,23 +4562,27 @@ unsafe impl ::core::marker::Sync for FileOpenPickerActivatedEventArgs {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct FileOpenPickerContinuationEventArgs(::windows_core::IUnknown); #[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(FileOpenPickerContinuationEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "deprecated")] +::windows_core::imp::required_hierarchy!(FileOpenPickerContinuationEventArgs, IActivatedEventArgs, IActivatedEventArgsWithUser, IContinuationActivatedEventArgs, IFileOpenPickerContinuationEventArgs); +#[cfg(feature = "deprecated")] impl FileOpenPickerContinuationEventArgs { pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5216,7 +4591,7 @@ impl FileOpenPickerContinuationEventArgs { #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5225,7 +4600,7 @@ impl FileOpenPickerContinuationEventArgs { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn ContinuationData(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ContinuationData)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5248,49 +4623,38 @@ impl ::windows_core::RuntimeType for FileOpenPickerContinuationEventArgs { #[cfg(feature = "deprecated")] unsafe impl ::windows_core::Interface for FileOpenPickerContinuationEventArgs { type Vtable = IFileOpenPickerContinuationEventArgs_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for FileOpenPickerContinuationEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "deprecated")] impl ::windows_core::RuntimeName for FileOpenPickerContinuationEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Activation.FileOpenPickerContinuationEventArgs"; } #[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(FileOpenPickerContinuationEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] -impl ::windows_core::CanTryInto for FileOpenPickerContinuationEventArgs {} -#[cfg(feature = "deprecated")] -impl ::windows_core::CanTryInto for FileOpenPickerContinuationEventArgs {} -#[cfg(feature = "deprecated")] -impl ::windows_core::CanTryInto for FileOpenPickerContinuationEventArgs {} -#[cfg(feature = "deprecated")] -impl ::windows_core::CanTryInto for FileOpenPickerContinuationEventArgs {} -#[cfg(feature = "deprecated")] unsafe impl ::core::marker::Send for FileOpenPickerContinuationEventArgs {} #[cfg(feature = "deprecated")] unsafe impl ::core::marker::Sync for FileOpenPickerContinuationEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct FileSavePickerActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(FileSavePickerActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(FileSavePickerActivatedEventArgs, IActivatedEventArgs, IActivatedEventArgsWithUser, IFileSavePickerActivatedEventArgs, IFileSavePickerActivatedEventArgs2); impl FileSavePickerActivatedEventArgs { pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5299,7 +4663,7 @@ impl FileSavePickerActivatedEventArgs { #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5315,14 +4679,14 @@ impl FileSavePickerActivatedEventArgs { } } pub fn CallerPackageFamilyName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CallerPackageFamilyName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn EnterpriseId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).EnterpriseId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5334,18 +4698,11 @@ impl ::windows_core::RuntimeType for FileSavePickerActivatedEventArgs { } unsafe impl ::windows_core::Interface for FileSavePickerActivatedEventArgs { type Vtable = IFileSavePickerActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for FileSavePickerActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for FileSavePickerActivatedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Activation.FileSavePickerActivatedEventArgs"; } -::windows_core::imp::interface_hierarchy!(FileSavePickerActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for FileSavePickerActivatedEventArgs {} -impl ::windows_core::CanTryInto for FileSavePickerActivatedEventArgs {} -impl ::windows_core::CanTryInto for FileSavePickerActivatedEventArgs {} -impl ::windows_core::CanTryInto for FileSavePickerActivatedEventArgs {} unsafe impl ::core::marker::Send for FileSavePickerActivatedEventArgs {} unsafe impl ::core::marker::Sync for FileSavePickerActivatedEventArgs {} #[doc = "Required features: `\"deprecated\"`"] @@ -5354,23 +4711,27 @@ unsafe impl ::core::marker::Sync for FileSavePickerActivatedEventArgs {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct FileSavePickerContinuationEventArgs(::windows_core::IUnknown); #[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(FileSavePickerContinuationEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "deprecated")] +::windows_core::imp::required_hierarchy!(FileSavePickerContinuationEventArgs, IActivatedEventArgs, IActivatedEventArgsWithUser, IContinuationActivatedEventArgs, IFileSavePickerContinuationEventArgs); +#[cfg(feature = "deprecated")] impl FileSavePickerContinuationEventArgs { pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5379,7 +4740,7 @@ impl FileSavePickerContinuationEventArgs { #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5388,7 +4749,7 @@ impl FileSavePickerContinuationEventArgs { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn ContinuationData(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ContinuationData)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5411,26 +4772,13 @@ impl ::windows_core::RuntimeType for FileSavePickerContinuationEventArgs { #[cfg(feature = "deprecated")] unsafe impl ::windows_core::Interface for FileSavePickerContinuationEventArgs { type Vtable = IFileSavePickerContinuationEventArgs_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for FileSavePickerContinuationEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "deprecated")] impl ::windows_core::RuntimeName for FileSavePickerContinuationEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Activation.FileSavePickerContinuationEventArgs"; } #[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(FileSavePickerContinuationEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] -impl ::windows_core::CanTryInto for FileSavePickerContinuationEventArgs {} -#[cfg(feature = "deprecated")] -impl ::windows_core::CanTryInto for FileSavePickerContinuationEventArgs {} -#[cfg(feature = "deprecated")] -impl ::windows_core::CanTryInto for FileSavePickerContinuationEventArgs {} -#[cfg(feature = "deprecated")] -impl ::windows_core::CanTryInto for FileSavePickerContinuationEventArgs {} -#[cfg(feature = "deprecated")] unsafe impl ::core::marker::Send for FileSavePickerContinuationEventArgs {} #[cfg(feature = "deprecated")] unsafe impl ::core::marker::Sync for FileSavePickerContinuationEventArgs {} @@ -5440,23 +4788,27 @@ unsafe impl ::core::marker::Sync for FileSavePickerContinuationEventArgs {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct FolderPickerContinuationEventArgs(::windows_core::IUnknown); #[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(FolderPickerContinuationEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "deprecated")] +::windows_core::imp::required_hierarchy!(FolderPickerContinuationEventArgs, IActivatedEventArgs, IActivatedEventArgsWithUser, IContinuationActivatedEventArgs, IFolderPickerContinuationEventArgs); +#[cfg(feature = "deprecated")] impl FolderPickerContinuationEventArgs { pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5465,7 +4817,7 @@ impl FolderPickerContinuationEventArgs { #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5474,7 +4826,7 @@ impl FolderPickerContinuationEventArgs { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn ContinuationData(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ContinuationData)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5497,49 +4849,38 @@ impl ::windows_core::RuntimeType for FolderPickerContinuationEventArgs { #[cfg(feature = "deprecated")] unsafe impl ::windows_core::Interface for FolderPickerContinuationEventArgs { type Vtable = IFolderPickerContinuationEventArgs_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for FolderPickerContinuationEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "deprecated")] impl ::windows_core::RuntimeName for FolderPickerContinuationEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Activation.FolderPickerContinuationEventArgs"; } #[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(FolderPickerContinuationEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] -impl ::windows_core::CanTryInto for FolderPickerContinuationEventArgs {} -#[cfg(feature = "deprecated")] -impl ::windows_core::CanTryInto for FolderPickerContinuationEventArgs {} -#[cfg(feature = "deprecated")] -impl ::windows_core::CanTryInto for FolderPickerContinuationEventArgs {} -#[cfg(feature = "deprecated")] -impl ::windows_core::CanTryInto for FolderPickerContinuationEventArgs {} -#[cfg(feature = "deprecated")] unsafe impl ::core::marker::Send for FolderPickerContinuationEventArgs {} #[cfg(feature = "deprecated")] unsafe impl ::core::marker::Sync for FolderPickerContinuationEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LaunchActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LaunchActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(LaunchActivatedEventArgs, IActivatedEventArgs, IActivatedEventArgsWithUser, IApplicationViewActivatedEventArgs, ILaunchActivatedEventArgs, ILaunchActivatedEventArgs2, IPrelaunchActivatedEventArgs, IViewSwitcherProvider); impl LaunchActivatedEventArgs { pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5548,14 +4889,14 @@ impl LaunchActivatedEventArgs { #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CurrentlyShownApplicationViewId(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CurrentlyShownApplicationViewId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5576,14 +4917,14 @@ impl LaunchActivatedEventArgs { } } pub fn TileActivatedInfo(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TileActivatedInfo)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PrelaunchActivated(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PrelaunchActivated)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5592,7 +4933,7 @@ impl LaunchActivatedEventArgs { #[doc = "Required features: `\"UI_ViewManagement\"`"] #[cfg(feature = "UI_ViewManagement")] pub fn ViewSwitcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ViewSwitcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5604,43 +4945,35 @@ impl ::windows_core::RuntimeType for LaunchActivatedEventArgs { } unsafe impl ::windows_core::Interface for LaunchActivatedEventArgs { type Vtable = ILaunchActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LaunchActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LaunchActivatedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Activation.LaunchActivatedEventArgs"; } -::windows_core::imp::interface_hierarchy!(LaunchActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for LaunchActivatedEventArgs {} -impl ::windows_core::CanTryInto for LaunchActivatedEventArgs {} -impl ::windows_core::CanTryInto for LaunchActivatedEventArgs {} -impl ::windows_core::CanTryInto for LaunchActivatedEventArgs {} -impl ::windows_core::CanTryInto for LaunchActivatedEventArgs {} -impl ::windows_core::CanTryInto for LaunchActivatedEventArgs {} -impl ::windows_core::CanTryInto for LaunchActivatedEventArgs {} unsafe impl ::core::marker::Send for LaunchActivatedEventArgs {} unsafe impl ::core::marker::Sync for LaunchActivatedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LockScreenActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LockScreenActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(LockScreenActivatedEventArgs, IActivatedEventArgs, IActivatedEventArgsWithUser, ILockScreenActivatedEventArgs); impl LockScreenActivatedEventArgs { pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5649,7 +4982,7 @@ impl LockScreenActivatedEventArgs { #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5668,60 +5001,56 @@ impl ::windows_core::RuntimeType for LockScreenActivatedEventArgs { } unsafe impl ::windows_core::Interface for LockScreenActivatedEventArgs { type Vtable = ILockScreenActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LockScreenActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LockScreenActivatedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Activation.LockScreenActivatedEventArgs"; } -::windows_core::imp::interface_hierarchy!(LockScreenActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for LockScreenActivatedEventArgs {} -impl ::windows_core::CanTryInto for LockScreenActivatedEventArgs {} -impl ::windows_core::CanTryInto for LockScreenActivatedEventArgs {} unsafe impl ::core::marker::Send for LockScreenActivatedEventArgs {} unsafe impl ::core::marker::Sync for LockScreenActivatedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LockScreenCallActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LockScreenCallActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(LockScreenCallActivatedEventArgs, IActivatedEventArgs, IApplicationViewActivatedEventArgs, ILaunchActivatedEventArgs, ILockScreenCallActivatedEventArgs, IViewSwitcherProvider); impl LockScreenCallActivatedEventArgs { pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CurrentlyShownApplicationViewId(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CurrentlyShownApplicationViewId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Arguments(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Arguments)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TileId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TileId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5739,7 +5068,7 @@ impl LockScreenCallActivatedEventArgs { #[doc = "Required features: `\"UI_ViewManagement\"`"] #[cfg(feature = "UI_ViewManagement")] pub fn ViewSwitcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ViewSwitcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5751,24 +5080,18 @@ impl ::windows_core::RuntimeType for LockScreenCallActivatedEventArgs { } unsafe impl ::windows_core::Interface for LockScreenCallActivatedEventArgs { type Vtable = ILockScreenCallActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LockScreenCallActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LockScreenCallActivatedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Activation.LockScreenCallActivatedEventArgs"; } -::windows_core::imp::interface_hierarchy!(LockScreenCallActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for LockScreenCallActivatedEventArgs {} -impl ::windows_core::CanTryInto for LockScreenCallActivatedEventArgs {} -impl ::windows_core::CanTryInto for LockScreenCallActivatedEventArgs {} -impl ::windows_core::CanTryInto for LockScreenCallActivatedEventArgs {} -impl ::windows_core::CanTryInto for LockScreenCallActivatedEventArgs {} unsafe impl ::core::marker::Send for LockScreenCallActivatedEventArgs {} unsafe impl ::core::marker::Sync for LockScreenCallActivatedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LockScreenComponentActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LockScreenComponentActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(LockScreenComponentActivatedEventArgs, IActivatedEventArgs); impl LockScreenComponentActivatedEventArgs { pub fn Kind(&self) -> ::windows_core::Result { let this = self; @@ -5797,37 +5120,35 @@ impl ::windows_core::RuntimeType for LockScreenComponentActivatedEventArgs { } unsafe impl ::windows_core::Interface for LockScreenComponentActivatedEventArgs { type Vtable = IActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LockScreenComponentActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LockScreenComponentActivatedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Activation.LockScreenComponentActivatedEventArgs"; } -::windows_core::imp::interface_hierarchy!(LockScreenComponentActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for LockScreenComponentActivatedEventArgs {} unsafe impl ::core::marker::Send for LockScreenComponentActivatedEventArgs {} unsafe impl ::core::marker::Sync for LockScreenComponentActivatedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PhoneCallActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PhoneCallActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(PhoneCallActivatedEventArgs, IActivatedEventArgs, IActivatedEventArgsWithUser, IPhoneCallActivatedEventArgs); impl PhoneCallActivatedEventArgs { pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5836,7 +5157,7 @@ impl PhoneCallActivatedEventArgs { #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5855,39 +5176,35 @@ impl ::windows_core::RuntimeType for PhoneCallActivatedEventArgs { } unsafe impl ::windows_core::Interface for PhoneCallActivatedEventArgs { type Vtable = IPhoneCallActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PhoneCallActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PhoneCallActivatedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Activation.PhoneCallActivatedEventArgs"; } -::windows_core::imp::interface_hierarchy!(PhoneCallActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for PhoneCallActivatedEventArgs {} -impl ::windows_core::CanTryInto for PhoneCallActivatedEventArgs {} -impl ::windows_core::CanTryInto for PhoneCallActivatedEventArgs {} unsafe impl ::core::marker::Send for PhoneCallActivatedEventArgs {} unsafe impl ::core::marker::Sync for PhoneCallActivatedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PickerReturnedActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PickerReturnedActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(PickerReturnedActivatedEventArgs, IActivatedEventArgs, IPickerReturnedActivatedEventArgs); impl PickerReturnedActivatedEventArgs { pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5906,38 +5223,35 @@ impl ::windows_core::RuntimeType for PickerReturnedActivatedEventArgs { } unsafe impl ::windows_core::Interface for PickerReturnedActivatedEventArgs { type Vtable = IPickerReturnedActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PickerReturnedActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PickerReturnedActivatedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Activation.PickerReturnedActivatedEventArgs"; } -::windows_core::imp::interface_hierarchy!(PickerReturnedActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for PickerReturnedActivatedEventArgs {} -impl ::windows_core::CanTryInto for PickerReturnedActivatedEventArgs {} unsafe impl ::core::marker::Send for PickerReturnedActivatedEventArgs {} unsafe impl ::core::marker::Sync for PickerReturnedActivatedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Print3DWorkflowActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Print3DWorkflowActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(Print3DWorkflowActivatedEventArgs, IActivatedEventArgs, IPrint3DWorkflowActivatedEventArgs); impl Print3DWorkflowActivatedEventArgs { pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5958,38 +5272,35 @@ impl ::windows_core::RuntimeType for Print3DWorkflowActivatedEventArgs { } unsafe impl ::windows_core::Interface for Print3DWorkflowActivatedEventArgs { type Vtable = IPrint3DWorkflowActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Print3DWorkflowActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Print3DWorkflowActivatedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Activation.Print3DWorkflowActivatedEventArgs"; } -::windows_core::imp::interface_hierarchy!(Print3DWorkflowActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for Print3DWorkflowActivatedEventArgs {} -impl ::windows_core::CanTryInto for Print3DWorkflowActivatedEventArgs {} unsafe impl ::core::marker::Send for Print3DWorkflowActivatedEventArgs {} unsafe impl ::core::marker::Sync for Print3DWorkflowActivatedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintTaskSettingsActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintTaskSettingsActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(PrintTaskSettingsActivatedEventArgs, IActivatedEventArgs, IPrintTaskSettingsActivatedEventArgs); impl PrintTaskSettingsActivatedEventArgs { pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6010,38 +5321,35 @@ impl ::windows_core::RuntimeType for PrintTaskSettingsActivatedEventArgs { } unsafe impl ::windows_core::Interface for PrintTaskSettingsActivatedEventArgs { type Vtable = IPrintTaskSettingsActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintTaskSettingsActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintTaskSettingsActivatedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Activation.PrintTaskSettingsActivatedEventArgs"; } -::windows_core::imp::interface_hierarchy!(PrintTaskSettingsActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for PrintTaskSettingsActivatedEventArgs {} -impl ::windows_core::CanTryInto for PrintTaskSettingsActivatedEventArgs {} unsafe impl ::core::marker::Send for PrintTaskSettingsActivatedEventArgs {} unsafe impl ::core::marker::Sync for PrintTaskSettingsActivatedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ProtocolActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ProtocolActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ProtocolActivatedEventArgs, IActivatedEventArgs, IActivatedEventArgsWithUser, IApplicationViewActivatedEventArgs, IProtocolActivatedEventArgs, IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData, IViewSwitcherProvider); impl ProtocolActivatedEventArgs { pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6050,14 +5358,14 @@ impl ProtocolActivatedEventArgs { #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CurrentlyShownApplicationViewId(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CurrentlyShownApplicationViewId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6071,7 +5379,7 @@ impl ProtocolActivatedEventArgs { } } pub fn CallerPackageFamilyName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CallerPackageFamilyName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6080,7 +5388,7 @@ impl ProtocolActivatedEventArgs { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Data(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Data)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6089,7 +5397,7 @@ impl ProtocolActivatedEventArgs { #[doc = "Required features: `\"UI_ViewManagement\"`"] #[cfg(feature = "UI_ViewManagement")] pub fn ViewSwitcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ViewSwitcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6101,42 +5409,35 @@ impl ::windows_core::RuntimeType for ProtocolActivatedEventArgs { } unsafe impl ::windows_core::Interface for ProtocolActivatedEventArgs { type Vtable = IProtocolActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ProtocolActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ProtocolActivatedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Activation.ProtocolActivatedEventArgs"; } -::windows_core::imp::interface_hierarchy!(ProtocolActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ProtocolActivatedEventArgs {} -impl ::windows_core::CanTryInto for ProtocolActivatedEventArgs {} -impl ::windows_core::CanTryInto for ProtocolActivatedEventArgs {} -impl ::windows_core::CanTryInto for ProtocolActivatedEventArgs {} -impl ::windows_core::CanTryInto for ProtocolActivatedEventArgs {} -impl ::windows_core::CanTryInto for ProtocolActivatedEventArgs {} unsafe impl ::core::marker::Send for ProtocolActivatedEventArgs {} unsafe impl ::core::marker::Sync for ProtocolActivatedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ProtocolForResultsActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ProtocolForResultsActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ProtocolForResultsActivatedEventArgs, IActivatedEventArgs, IActivatedEventArgsWithUser, IApplicationViewActivatedEventArgs, IProtocolActivatedEventArgs, IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData, IProtocolForResultsActivatedEventArgs, IViewSwitcherProvider); impl ProtocolForResultsActivatedEventArgs { pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6145,28 +5446,28 @@ impl ProtocolForResultsActivatedEventArgs { #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CurrentlyShownApplicationViewId(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CurrentlyShownApplicationViewId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Uri(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Uri)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CallerPackageFamilyName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CallerPackageFamilyName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6175,7 +5476,7 @@ impl ProtocolForResultsActivatedEventArgs { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Data(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Data)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6193,7 +5494,7 @@ impl ProtocolForResultsActivatedEventArgs { #[doc = "Required features: `\"UI_ViewManagement\"`"] #[cfg(feature = "UI_ViewManagement")] pub fn ViewSwitcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ViewSwitcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6205,43 +5506,35 @@ impl ::windows_core::RuntimeType for ProtocolForResultsActivatedEventArgs { } unsafe impl ::windows_core::Interface for ProtocolForResultsActivatedEventArgs { type Vtable = IProtocolForResultsActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ProtocolForResultsActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ProtocolForResultsActivatedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Activation.ProtocolForResultsActivatedEventArgs"; } -::windows_core::imp::interface_hierarchy!(ProtocolForResultsActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ProtocolForResultsActivatedEventArgs {} -impl ::windows_core::CanTryInto for ProtocolForResultsActivatedEventArgs {} -impl ::windows_core::CanTryInto for ProtocolForResultsActivatedEventArgs {} -impl ::windows_core::CanTryInto for ProtocolForResultsActivatedEventArgs {} -impl ::windows_core::CanTryInto for ProtocolForResultsActivatedEventArgs {} -impl ::windows_core::CanTryInto for ProtocolForResultsActivatedEventArgs {} -impl ::windows_core::CanTryInto for ProtocolForResultsActivatedEventArgs {} unsafe impl ::core::marker::Send for ProtocolForResultsActivatedEventArgs {} unsafe impl ::core::marker::Sync for ProtocolForResultsActivatedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RestrictedLaunchActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RestrictedLaunchActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(RestrictedLaunchActivatedEventArgs, IActivatedEventArgs, IActivatedEventArgsWithUser, IRestrictedLaunchActivatedEventArgs); impl RestrictedLaunchActivatedEventArgs { pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6250,7 +5543,7 @@ impl RestrictedLaunchActivatedEventArgs { #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6269,39 +5562,35 @@ impl ::windows_core::RuntimeType for RestrictedLaunchActivatedEventArgs { } unsafe impl ::windows_core::Interface for RestrictedLaunchActivatedEventArgs { type Vtable = IRestrictedLaunchActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RestrictedLaunchActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RestrictedLaunchActivatedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Activation.RestrictedLaunchActivatedEventArgs"; } -::windows_core::imp::interface_hierarchy!(RestrictedLaunchActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for RestrictedLaunchActivatedEventArgs {} -impl ::windows_core::CanTryInto for RestrictedLaunchActivatedEventArgs {} -impl ::windows_core::CanTryInto for RestrictedLaunchActivatedEventArgs {} unsafe impl ::core::marker::Send for RestrictedLaunchActivatedEventArgs {} unsafe impl ::core::marker::Sync for RestrictedLaunchActivatedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SearchActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SearchActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(SearchActivatedEventArgs, IActivatedEventArgs, IActivatedEventArgsWithUser, IApplicationViewActivatedEventArgs, ISearchActivatedEventArgs, ISearchActivatedEventArgsWithLinguisticDetails, IViewSwitcherProvider); impl SearchActivatedEventArgs { pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6310,14 +5599,14 @@ impl SearchActivatedEventArgs { #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CurrentlyShownApplicationViewId(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CurrentlyShownApplicationViewId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6340,7 +5629,7 @@ impl SearchActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Search\"`"] #[cfg(feature = "ApplicationModel_Search")] pub fn LinguisticDetails(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).LinguisticDetails)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6349,7 +5638,7 @@ impl SearchActivatedEventArgs { #[doc = "Required features: `\"UI_ViewManagement\"`"] #[cfg(feature = "UI_ViewManagement")] pub fn ViewSwitcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ViewSwitcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6361,42 +5650,35 @@ impl ::windows_core::RuntimeType for SearchActivatedEventArgs { } unsafe impl ::windows_core::Interface for SearchActivatedEventArgs { type Vtable = ISearchActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SearchActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SearchActivatedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Activation.SearchActivatedEventArgs"; } -::windows_core::imp::interface_hierarchy!(SearchActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for SearchActivatedEventArgs {} -impl ::windows_core::CanTryInto for SearchActivatedEventArgs {} -impl ::windows_core::CanTryInto for SearchActivatedEventArgs {} -impl ::windows_core::CanTryInto for SearchActivatedEventArgs {} -impl ::windows_core::CanTryInto for SearchActivatedEventArgs {} -impl ::windows_core::CanTryInto for SearchActivatedEventArgs {} unsafe impl ::core::marker::Send for SearchActivatedEventArgs {} unsafe impl ::core::marker::Sync for SearchActivatedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ShareTargetActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ShareTargetActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ShareTargetActivatedEventArgs, IActivatedEventArgs, IActivatedEventArgsWithUser, IShareTargetActivatedEventArgs); impl ShareTargetActivatedEventArgs { pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6405,7 +5687,7 @@ impl ShareTargetActivatedEventArgs { #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6426,22 +5708,17 @@ impl ::windows_core::RuntimeType for ShareTargetActivatedEventArgs { } unsafe impl ::windows_core::Interface for ShareTargetActivatedEventArgs { type Vtable = IShareTargetActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ShareTargetActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ShareTargetActivatedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Activation.ShareTargetActivatedEventArgs"; } -::windows_core::imp::interface_hierarchy!(ShareTargetActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ShareTargetActivatedEventArgs {} -impl ::windows_core::CanTryInto for ShareTargetActivatedEventArgs {} -impl ::windows_core::CanTryInto for ShareTargetActivatedEventArgs {} unsafe impl ::core::marker::Send for ShareTargetActivatedEventArgs {} unsafe impl ::core::marker::Sync for ShareTargetActivatedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SplashScreen(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SplashScreen, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SplashScreen { pub fn ImageLocation(&self) -> ::windows_core::Result { let this = self; @@ -6470,34 +5747,33 @@ impl ::windows_core::RuntimeType for SplashScreen { } unsafe impl ::windows_core::Interface for SplashScreen { type Vtable = ISplashScreen_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SplashScreen { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SplashScreen { const NAME: &'static str = "Windows.ApplicationModel.Activation.SplashScreen"; } -::windows_core::imp::interface_hierarchy!(SplashScreen, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StartupTaskActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StartupTaskActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(StartupTaskActivatedEventArgs, IActivatedEventArgs, IActivatedEventArgsWithUser, IStartupTaskActivatedEventArgs); impl StartupTaskActivatedEventArgs { pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6506,7 +5782,7 @@ impl StartupTaskActivatedEventArgs { #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6525,22 +5801,17 @@ impl ::windows_core::RuntimeType for StartupTaskActivatedEventArgs { } unsafe impl ::windows_core::Interface for StartupTaskActivatedEventArgs { type Vtable = IStartupTaskActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StartupTaskActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StartupTaskActivatedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Activation.StartupTaskActivatedEventArgs"; } -::windows_core::imp::interface_hierarchy!(StartupTaskActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for StartupTaskActivatedEventArgs {} -impl ::windows_core::CanTryInto for StartupTaskActivatedEventArgs {} -impl ::windows_core::CanTryInto for StartupTaskActivatedEventArgs {} unsafe impl ::core::marker::Send for StartupTaskActivatedEventArgs {} unsafe impl ::core::marker::Sync for StartupTaskActivatedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct TileActivatedInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(TileActivatedInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl TileActivatedInfo { #[doc = "Required features: `\"Foundation_Collections\"`, `\"UI_Notifications\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "UI_Notifications"))] @@ -6557,36 +5828,35 @@ impl ::windows_core::RuntimeType for TileActivatedInfo { } unsafe impl ::windows_core::Interface for TileActivatedInfo { type Vtable = ITileActivatedInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TileActivatedInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for TileActivatedInfo { const NAME: &'static str = "Windows.ApplicationModel.Activation.TileActivatedInfo"; } -::windows_core::imp::interface_hierarchy!(TileActivatedInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for TileActivatedInfo {} unsafe impl ::core::marker::Sync for TileActivatedInfo {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ToastNotificationActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ToastNotificationActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ToastNotificationActivatedEventArgs, IActivatedEventArgs, IActivatedEventArgsWithUser, IApplicationViewActivatedEventArgs, IToastNotificationActivatedEventArgs); impl ToastNotificationActivatedEventArgs { pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6595,14 +5865,14 @@ impl ToastNotificationActivatedEventArgs { #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CurrentlyShownApplicationViewId(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CurrentlyShownApplicationViewId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6630,40 +5900,35 @@ impl ::windows_core::RuntimeType for ToastNotificationActivatedEventArgs { } unsafe impl ::windows_core::Interface for ToastNotificationActivatedEventArgs { type Vtable = IToastNotificationActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ToastNotificationActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ToastNotificationActivatedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Activation.ToastNotificationActivatedEventArgs"; } -::windows_core::imp::interface_hierarchy!(ToastNotificationActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ToastNotificationActivatedEventArgs {} -impl ::windows_core::CanTryInto for ToastNotificationActivatedEventArgs {} -impl ::windows_core::CanTryInto for ToastNotificationActivatedEventArgs {} -impl ::windows_core::CanTryInto for ToastNotificationActivatedEventArgs {} unsafe impl ::core::marker::Send for ToastNotificationActivatedEventArgs {} unsafe impl ::core::marker::Sync for ToastNotificationActivatedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UserDataAccountProviderActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UserDataAccountProviderActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(UserDataAccountProviderActivatedEventArgs, IActivatedEventArgs, IUserDataAccountProviderActivatedEventArgs); impl UserDataAccountProviderActivatedEventArgs { pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6684,38 +5949,35 @@ impl ::windows_core::RuntimeType for UserDataAccountProviderActivatedEventArgs { } unsafe impl ::windows_core::Interface for UserDataAccountProviderActivatedEventArgs { type Vtable = IUserDataAccountProviderActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UserDataAccountProviderActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UserDataAccountProviderActivatedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Activation.UserDataAccountProviderActivatedEventArgs"; } -::windows_core::imp::interface_hierarchy!(UserDataAccountProviderActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for UserDataAccountProviderActivatedEventArgs {} -impl ::windows_core::CanTryInto for UserDataAccountProviderActivatedEventArgs {} unsafe impl ::core::marker::Send for UserDataAccountProviderActivatedEventArgs {} unsafe impl ::core::marker::Sync for UserDataAccountProviderActivatedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VoiceCommandActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VoiceCommandActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(VoiceCommandActivatedEventArgs, IActivatedEventArgs, IActivatedEventArgsWithUser, IVoiceCommandActivatedEventArgs); impl VoiceCommandActivatedEventArgs { pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6724,7 +5986,7 @@ impl VoiceCommandActivatedEventArgs { #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6745,17 +6007,11 @@ impl ::windows_core::RuntimeType for VoiceCommandActivatedEventArgs { } unsafe impl ::windows_core::Interface for VoiceCommandActivatedEventArgs { type Vtable = IVoiceCommandActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VoiceCommandActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VoiceCommandActivatedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Activation.VoiceCommandActivatedEventArgs"; } -::windows_core::imp::interface_hierarchy!(VoiceCommandActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for VoiceCommandActivatedEventArgs {} -impl ::windows_core::CanTryInto for VoiceCommandActivatedEventArgs {} -impl ::windows_core::CanTryInto for VoiceCommandActivatedEventArgs {} unsafe impl ::core::marker::Send for VoiceCommandActivatedEventArgs {} unsafe impl ::core::marker::Sync for VoiceCommandActivatedEventArgs {} #[doc = "Required features: `\"deprecated\"`"] @@ -6764,23 +6020,27 @@ unsafe impl ::core::marker::Sync for VoiceCommandActivatedEventArgs {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WalletActionActivatedEventArgs(::windows_core::IUnknown); #[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(WalletActionActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "deprecated")] +::windows_core::imp::required_hierarchy!(WalletActionActivatedEventArgs, IActivatedEventArgs, IWalletActionActivatedEventArgs); +#[cfg(feature = "deprecated")] impl WalletActionActivatedEventArgs { pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6821,45 +6081,38 @@ impl ::windows_core::RuntimeType for WalletActionActivatedEventArgs { #[cfg(feature = "deprecated")] unsafe impl ::windows_core::Interface for WalletActionActivatedEventArgs { type Vtable = IWalletActionActivatedEventArgs_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for WalletActionActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "deprecated")] impl ::windows_core::RuntimeName for WalletActionActivatedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Activation.WalletActionActivatedEventArgs"; } #[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(WalletActionActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] -impl ::windows_core::CanTryInto for WalletActionActivatedEventArgs {} -#[cfg(feature = "deprecated")] -impl ::windows_core::CanTryInto for WalletActionActivatedEventArgs {} -#[cfg(feature = "deprecated")] unsafe impl ::core::marker::Send for WalletActionActivatedEventArgs {} #[cfg(feature = "deprecated")] unsafe impl ::core::marker::Sync for WalletActionActivatedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebAccountProviderActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WebAccountProviderActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(WebAccountProviderActivatedEventArgs, IActivatedEventArgs, IActivatedEventArgsWithUser, IWebAccountProviderActivatedEventArgs); impl WebAccountProviderActivatedEventArgs { pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6868,7 +6121,7 @@ impl WebAccountProviderActivatedEventArgs { #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6889,39 +6142,35 @@ impl ::windows_core::RuntimeType for WebAccountProviderActivatedEventArgs { } unsafe impl ::windows_core::Interface for WebAccountProviderActivatedEventArgs { type Vtable = IWebAccountProviderActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WebAccountProviderActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WebAccountProviderActivatedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Activation.WebAccountProviderActivatedEventArgs"; } -::windows_core::imp::interface_hierarchy!(WebAccountProviderActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for WebAccountProviderActivatedEventArgs {} -impl ::windows_core::CanTryInto for WebAccountProviderActivatedEventArgs {} -impl ::windows_core::CanTryInto for WebAccountProviderActivatedEventArgs {} unsafe impl ::core::marker::Send for WebAccountProviderActivatedEventArgs {} unsafe impl ::core::marker::Sync for WebAccountProviderActivatedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebAuthenticationBrokerContinuationEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WebAuthenticationBrokerContinuationEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(WebAuthenticationBrokerContinuationEventArgs, IActivatedEventArgs, IContinuationActivatedEventArgs, IWebAuthenticationBrokerContinuationEventArgs); impl WebAuthenticationBrokerContinuationEventArgs { pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6930,7 +6179,7 @@ impl WebAuthenticationBrokerContinuationEventArgs { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn ContinuationData(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ContinuationData)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6951,17 +6200,11 @@ impl ::windows_core::RuntimeType for WebAuthenticationBrokerContinuationEventArg } unsafe impl ::windows_core::Interface for WebAuthenticationBrokerContinuationEventArgs { type Vtable = IWebAuthenticationBrokerContinuationEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WebAuthenticationBrokerContinuationEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WebAuthenticationBrokerContinuationEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Activation.WebAuthenticationBrokerContinuationEventArgs"; } -::windows_core::imp::interface_hierarchy!(WebAuthenticationBrokerContinuationEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for WebAuthenticationBrokerContinuationEventArgs {} -impl ::windows_core::CanTryInto for WebAuthenticationBrokerContinuationEventArgs {} -impl ::windows_core::CanTryInto for WebAuthenticationBrokerContinuationEventArgs {} unsafe impl ::core::marker::Send for WebAuthenticationBrokerContinuationEventArgs {} unsafe impl ::core::marker::Sync for WebAuthenticationBrokerContinuationEventArgs {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/ApplicationModel/AppExtensions/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/AppExtensions/mod.rs index df7a289b90..00cd5832e0 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/AppExtensions/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/AppExtensions/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppExtension(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppExtension { - type Vtable = IAppExtension_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppExtension { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8450902c_15ed_4faf_93ea_2237bbf8cbd6); -} +::windows_core::imp::com_interface!(IAppExtension, IAppExtension_Vtbl, 0x8450902c_15ed_4faf_93ea_2237bbf8cbd6); #[repr(C)] #[doc(hidden)] pub struct IAppExtension_Vtbl { @@ -26,32 +17,14 @@ pub struct IAppExtension_Vtbl { #[cfg(not(feature = "Storage"))] GetPublicFolderAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppExtension2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppExtension2 { - type Vtable = IAppExtension2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppExtension2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xab3b15f0_14f9_4b9f_9419_a349a242ef38); -} +::windows_core::imp::com_interface!(IAppExtension2, IAppExtension2_Vtbl, 0xab3b15f0_14f9_4b9f_9419_a349a242ef38); #[repr(C)] #[doc(hidden)] pub struct IAppExtension2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub AppUserModelId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppExtensionCatalog(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppExtensionCatalog { - type Vtable = IAppExtensionCatalog_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppExtensionCatalog { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x97872032_8426_4ad1_9084_92e88c2da200); -} +::windows_core::imp::com_interface!(IAppExtensionCatalog, IAppExtensionCatalog_Vtbl, 0x97872032_8426_4ad1_9084_92e88c2da200); #[repr(C)] #[doc(hidden)] pub struct IAppExtensionCatalog_Vtbl { @@ -72,32 +45,14 @@ pub struct IAppExtensionCatalog_Vtbl { pub PackageStatusChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemovePackageStatusChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppExtensionCatalogStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppExtensionCatalogStatics { - type Vtable = IAppExtensionCatalogStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppExtensionCatalogStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3c36668a_5f18_4f0b_9ce5_cab61d196f11); -} +::windows_core::imp::com_interface!(IAppExtensionCatalogStatics, IAppExtensionCatalogStatics_Vtbl, 0x3c36668a_5f18_4f0b_9ce5_cab61d196f11); #[repr(C)] #[doc(hidden)] pub struct IAppExtensionCatalogStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Open: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, appextensionname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppExtensionPackageInstalledEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppExtensionPackageInstalledEventArgs { - type Vtable = IAppExtensionPackageInstalledEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppExtensionPackageInstalledEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x39e59234_3351_4a8d_9745_e7d3dd45bc48); -} +::windows_core::imp::com_interface!(IAppExtensionPackageInstalledEventArgs, IAppExtensionPackageInstalledEventArgs_Vtbl, 0x39e59234_3351_4a8d_9745_e7d3dd45bc48); #[repr(C)] #[doc(hidden)] pub struct IAppExtensionPackageInstalledEventArgs_Vtbl { @@ -109,16 +64,7 @@ pub struct IAppExtensionPackageInstalledEventArgs_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Extensions: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppExtensionPackageStatusChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppExtensionPackageStatusChangedEventArgs { - type Vtable = IAppExtensionPackageStatusChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppExtensionPackageStatusChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1ce17433_1153_44fd_87b1_8ae1050303df); -} +::windows_core::imp::com_interface!(IAppExtensionPackageStatusChangedEventArgs, IAppExtensionPackageStatusChangedEventArgs_Vtbl, 0x1ce17433_1153_44fd_87b1_8ae1050303df); #[repr(C)] #[doc(hidden)] pub struct IAppExtensionPackageStatusChangedEventArgs_Vtbl { @@ -126,16 +72,7 @@ pub struct IAppExtensionPackageStatusChangedEventArgs_Vtbl { pub AppExtensionName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Package: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppExtensionPackageUninstallingEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppExtensionPackageUninstallingEventArgs { - type Vtable = IAppExtensionPackageUninstallingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppExtensionPackageUninstallingEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x60f160c5_171e_40ff_ae98_ab2c20dd4d75); -} +::windows_core::imp::com_interface!(IAppExtensionPackageUninstallingEventArgs, IAppExtensionPackageUninstallingEventArgs_Vtbl, 0x60f160c5_171e_40ff_ae98_ab2c20dd4d75); #[repr(C)] #[doc(hidden)] pub struct IAppExtensionPackageUninstallingEventArgs_Vtbl { @@ -143,16 +80,7 @@ pub struct IAppExtensionPackageUninstallingEventArgs_Vtbl { pub AppExtensionName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Package: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppExtensionPackageUpdatedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppExtensionPackageUpdatedEventArgs { - type Vtable = IAppExtensionPackageUpdatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppExtensionPackageUpdatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3a83c43f_797e_44b5_ba24_a4c8b5a543d7); -} +::windows_core::imp::com_interface!(IAppExtensionPackageUpdatedEventArgs, IAppExtensionPackageUpdatedEventArgs_Vtbl, 0x3a83c43f_797e_44b5_ba24_a4c8b5a543d7); #[repr(C)] #[doc(hidden)] pub struct IAppExtensionPackageUpdatedEventArgs_Vtbl { @@ -164,16 +92,7 @@ pub struct IAppExtensionPackageUpdatedEventArgs_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Extensions: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppExtensionPackageUpdatingEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppExtensionPackageUpdatingEventArgs { - type Vtable = IAppExtensionPackageUpdatingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppExtensionPackageUpdatingEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7ed59329_1a65_4800_a700_b321009e306a); -} +::windows_core::imp::com_interface!(IAppExtensionPackageUpdatingEventArgs, IAppExtensionPackageUpdatingEventArgs_Vtbl, 0x7ed59329_1a65_4800_a700_b321009e306a); #[repr(C)] #[doc(hidden)] pub struct IAppExtensionPackageUpdatingEventArgs_Vtbl { @@ -184,6 +103,7 @@ pub struct IAppExtensionPackageUpdatingEventArgs_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppExtension(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppExtension, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppExtension { pub fn Id(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -239,7 +159,7 @@ impl AppExtension { } } pub fn AppUserModelId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AppUserModelId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -251,19 +171,17 @@ impl ::windows_core::RuntimeType for AppExtension { } unsafe impl ::windows_core::Interface for AppExtension { type Vtable = IAppExtension_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppExtension { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppExtension { const NAME: &'static str = "Windows.ApplicationModel.AppExtensions.AppExtension"; } -::windows_core::imp::interface_hierarchy!(AppExtension, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppExtension {} unsafe impl ::core::marker::Sync for AppExtension {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppExtensionCatalog(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppExtensionCatalog, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppExtensionCatalog { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -368,17 +286,15 @@ impl ::windows_core::RuntimeType for AppExtensionCatalog { } unsafe impl ::windows_core::Interface for AppExtensionCatalog { type Vtable = IAppExtensionCatalog_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppExtensionCatalog { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppExtensionCatalog { const NAME: &'static str = "Windows.ApplicationModel.AppExtensions.AppExtensionCatalog"; } -::windows_core::imp::interface_hierarchy!(AppExtensionCatalog, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppExtensionPackageInstalledEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppExtensionPackageInstalledEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppExtensionPackageInstalledEventArgs { pub fn AppExtensionName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -409,19 +325,17 @@ impl ::windows_core::RuntimeType for AppExtensionPackageInstalledEventArgs { } unsafe impl ::windows_core::Interface for AppExtensionPackageInstalledEventArgs { type Vtable = IAppExtensionPackageInstalledEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppExtensionPackageInstalledEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppExtensionPackageInstalledEventArgs { const NAME: &'static str = "Windows.ApplicationModel.AppExtensions.AppExtensionPackageInstalledEventArgs"; } -::windows_core::imp::interface_hierarchy!(AppExtensionPackageInstalledEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppExtensionPackageInstalledEventArgs {} unsafe impl ::core::marker::Sync for AppExtensionPackageInstalledEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppExtensionPackageStatusChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppExtensionPackageStatusChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppExtensionPackageStatusChangedEventArgs { pub fn AppExtensionName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -443,19 +357,17 @@ impl ::windows_core::RuntimeType for AppExtensionPackageStatusChangedEventArgs { } unsafe impl ::windows_core::Interface for AppExtensionPackageStatusChangedEventArgs { type Vtable = IAppExtensionPackageStatusChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppExtensionPackageStatusChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppExtensionPackageStatusChangedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.AppExtensions.AppExtensionPackageStatusChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(AppExtensionPackageStatusChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppExtensionPackageStatusChangedEventArgs {} unsafe impl ::core::marker::Sync for AppExtensionPackageStatusChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppExtensionPackageUninstallingEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppExtensionPackageUninstallingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppExtensionPackageUninstallingEventArgs { pub fn AppExtensionName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -477,19 +389,17 @@ impl ::windows_core::RuntimeType for AppExtensionPackageUninstallingEventArgs { } unsafe impl ::windows_core::Interface for AppExtensionPackageUninstallingEventArgs { type Vtable = IAppExtensionPackageUninstallingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppExtensionPackageUninstallingEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppExtensionPackageUninstallingEventArgs { const NAME: &'static str = "Windows.ApplicationModel.AppExtensions.AppExtensionPackageUninstallingEventArgs"; } -::windows_core::imp::interface_hierarchy!(AppExtensionPackageUninstallingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppExtensionPackageUninstallingEventArgs {} unsafe impl ::core::marker::Sync for AppExtensionPackageUninstallingEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppExtensionPackageUpdatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppExtensionPackageUpdatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppExtensionPackageUpdatedEventArgs { pub fn AppExtensionName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -520,19 +430,17 @@ impl ::windows_core::RuntimeType for AppExtensionPackageUpdatedEventArgs { } unsafe impl ::windows_core::Interface for AppExtensionPackageUpdatedEventArgs { type Vtable = IAppExtensionPackageUpdatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppExtensionPackageUpdatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppExtensionPackageUpdatedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.AppExtensions.AppExtensionPackageUpdatedEventArgs"; } -::windows_core::imp::interface_hierarchy!(AppExtensionPackageUpdatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppExtensionPackageUpdatedEventArgs {} unsafe impl ::core::marker::Sync for AppExtensionPackageUpdatedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppExtensionPackageUpdatingEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppExtensionPackageUpdatingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppExtensionPackageUpdatingEventArgs { pub fn AppExtensionName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -554,13 +462,10 @@ impl ::windows_core::RuntimeType for AppExtensionPackageUpdatingEventArgs { } unsafe impl ::windows_core::Interface for AppExtensionPackageUpdatingEventArgs { type Vtable = IAppExtensionPackageUpdatingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppExtensionPackageUpdatingEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppExtensionPackageUpdatingEventArgs { const NAME: &'static str = "Windows.ApplicationModel.AppExtensions.AppExtensionPackageUpdatingEventArgs"; } -::windows_core::imp::interface_hierarchy!(AppExtensionPackageUpdatingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppExtensionPackageUpdatingEventArgs {} unsafe impl ::core::marker::Sync for AppExtensionPackageUpdatingEventArgs {} diff --git a/crates/libs/windows/src/Windows/ApplicationModel/AppService/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/AppService/mod.rs index 7122adb55e..896b710885 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/AppService/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/AppService/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppServiceCatalogStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppServiceCatalogStatics { - type Vtable = IAppServiceCatalogStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppServiceCatalogStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xef0d2507_d132_4c85_8395_3c31d5a1e941); -} +::windows_core::imp::com_interface!(IAppServiceCatalogStatics, IAppServiceCatalogStatics_Vtbl, 0xef0d2507_d132_4c85_8395_3c31d5a1e941); #[repr(C)] #[doc(hidden)] pub struct IAppServiceCatalogStatics_Vtbl { @@ -17,32 +8,14 @@ pub struct IAppServiceCatalogStatics_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] FindAppServiceProvidersAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppServiceClosedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppServiceClosedEventArgs { - type Vtable = IAppServiceClosedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppServiceClosedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xde6016f6_cb03_4d35_ac8d_cc6303239731); -} +::windows_core::imp::com_interface!(IAppServiceClosedEventArgs, IAppServiceClosedEventArgs_Vtbl, 0xde6016f6_cb03_4d35_ac8d_cc6303239731); #[repr(C)] #[doc(hidden)] pub struct IAppServiceClosedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut AppServiceClosedStatus) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppServiceConnection(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppServiceConnection { - type Vtable = IAppServiceConnection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppServiceConnection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9dd474a2_871f_4d52_89a9_9e090531bd27); -} +::windows_core::imp::com_interface!(IAppServiceConnection, IAppServiceConnection_Vtbl, 0x9dd474a2_871f_4d52_89a9_9e090531bd27); #[repr(C)] #[doc(hidden)] pub struct IAppServiceConnection_Vtbl { @@ -61,16 +34,7 @@ pub struct IAppServiceConnection_Vtbl { pub ServiceClosed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveServiceClosed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppServiceConnection2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppServiceConnection2 { - type Vtable = IAppServiceConnection2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppServiceConnection2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8bdfcd5f_2302_4fbd_8061_52511c2f8bf9); -} +::windows_core::imp::com_interface!(IAppServiceConnection2, IAppServiceConnection2_Vtbl, 0x8bdfcd5f_2302_4fbd_8061_52511c2f8bf9); #[repr(C)] #[doc(hidden)] pub struct IAppServiceConnection2_Vtbl { @@ -88,16 +52,7 @@ pub struct IAppServiceConnection2_Vtbl { #[cfg(not(feature = "System"))] SetUser: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppServiceConnectionStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppServiceConnectionStatics { - type Vtable = IAppServiceConnectionStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppServiceConnectionStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xadc56ce9_d408_5673_8637_827a4b274168); -} +::windows_core::imp::com_interface!(IAppServiceConnectionStatics, IAppServiceConnectionStatics_Vtbl, 0xadc56ce9_d408_5673_8637_827a4b274168); #[repr(C)] #[doc(hidden)] pub struct IAppServiceConnectionStatics_Vtbl { @@ -107,32 +62,14 @@ pub struct IAppServiceConnectionStatics_Vtbl { #[cfg(not(all(feature = "Foundation_Collections", feature = "System_RemoteSystems")))] SendStatelessMessageAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppServiceDeferral(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppServiceDeferral { - type Vtable = IAppServiceDeferral_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppServiceDeferral { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7e1b5322_eab0_4248_ae04_fdf93838e472); -} +::windows_core::imp::com_interface!(IAppServiceDeferral, IAppServiceDeferral_Vtbl, 0x7e1b5322_eab0_4248_ae04_fdf93838e472); #[repr(C)] #[doc(hidden)] pub struct IAppServiceDeferral_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Complete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppServiceRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppServiceRequest { - type Vtable = IAppServiceRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppServiceRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x20e58d9d_18de_4b01_80ba_90a76204e3c8); -} +::windows_core::imp::com_interface!(IAppServiceRequest, IAppServiceRequest_Vtbl, 0x20e58d9d_18de_4b01_80ba_90a76204e3c8); #[repr(C)] #[doc(hidden)] pub struct IAppServiceRequest_Vtbl { @@ -146,16 +83,7 @@ pub struct IAppServiceRequest_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] SendResponseAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppServiceRequestReceivedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppServiceRequestReceivedEventArgs { - type Vtable = IAppServiceRequestReceivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppServiceRequestReceivedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6e122360_ff65_44ae_9e45_857fe4180681); -} +::windows_core::imp::com_interface!(IAppServiceRequestReceivedEventArgs, IAppServiceRequestReceivedEventArgs_Vtbl, 0x6e122360_ff65_44ae_9e45_857fe4180681); #[repr(C)] #[doc(hidden)] pub struct IAppServiceRequestReceivedEventArgs_Vtbl { @@ -163,16 +91,7 @@ pub struct IAppServiceRequestReceivedEventArgs_Vtbl { pub Request: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppServiceResponse(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppServiceResponse { - type Vtable = IAppServiceResponse_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppServiceResponse { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8d503cec_9aa3_4e68_9559_9de63e372ce4); -} +::windows_core::imp::com_interface!(IAppServiceResponse, IAppServiceResponse_Vtbl, 0x8d503cec_9aa3_4e68_9559_9de63e372ce4); #[repr(C)] #[doc(hidden)] pub struct IAppServiceResponse_Vtbl { @@ -183,16 +102,7 @@ pub struct IAppServiceResponse_Vtbl { Message: usize, pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut AppServiceResponseStatus) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppServiceTriggerDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppServiceTriggerDetails { - type Vtable = IAppServiceTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppServiceTriggerDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x88a2dcac_ad28_41b8_80bb_bdf1b2169e19); -} +::windows_core::imp::com_interface!(IAppServiceTriggerDetails, IAppServiceTriggerDetails_Vtbl, 0x88a2dcac_ad28_41b8_80bb_bdf1b2169e19); #[repr(C)] #[doc(hidden)] pub struct IAppServiceTriggerDetails_Vtbl { @@ -201,64 +111,28 @@ pub struct IAppServiceTriggerDetails_Vtbl { pub CallerPackageFamilyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub AppServiceConnection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppServiceTriggerDetails2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppServiceTriggerDetails2 { - type Vtable = IAppServiceTriggerDetails2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppServiceTriggerDetails2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe83d54b2_28cc_43f2_b465_c0482e59e2dc); -} +::windows_core::imp::com_interface!(IAppServiceTriggerDetails2, IAppServiceTriggerDetails2_Vtbl, 0xe83d54b2_28cc_43f2_b465_c0482e59e2dc); #[repr(C)] #[doc(hidden)] pub struct IAppServiceTriggerDetails2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub IsRemoteSystemConnection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppServiceTriggerDetails3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppServiceTriggerDetails3 { - type Vtable = IAppServiceTriggerDetails3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppServiceTriggerDetails3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfbd71e21_7939_4e68_9e3c_7780147aabb6); -} +::windows_core::imp::com_interface!(IAppServiceTriggerDetails3, IAppServiceTriggerDetails3_Vtbl, 0xfbd71e21_7939_4e68_9e3c_7780147aabb6); #[repr(C)] #[doc(hidden)] pub struct IAppServiceTriggerDetails3_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CheckCallerForCapabilityAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, capabilityname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppServiceTriggerDetails4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppServiceTriggerDetails4 { - type Vtable = IAppServiceTriggerDetails4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppServiceTriggerDetails4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1185b180_8861_5e30_ab55_1cf4d08bbf6d); -} +::windows_core::imp::com_interface!(IAppServiceTriggerDetails4, IAppServiceTriggerDetails4_Vtbl, 0x1185b180_8861_5e30_ab55_1cf4d08bbf6d); #[repr(C)] #[doc(hidden)] pub struct IAppServiceTriggerDetails4_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CallerRemoteConnectionToken: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStatelessAppServiceResponse(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStatelessAppServiceResponse { - type Vtable = IStatelessAppServiceResponse_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStatelessAppServiceResponse { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x43754af7_a9ec_52fe_82e7_939b68dc9388); -} +::windows_core::imp::com_interface!(IStatelessAppServiceResponse, IStatelessAppServiceResponse_Vtbl, 0x43754af7_a9ec_52fe_82e7_939b68dc9388); #[repr(C)] #[doc(hidden)] pub struct IStatelessAppServiceResponse_Vtbl { @@ -291,6 +165,7 @@ impl ::windows_core::RuntimeName for AppServiceCatalog { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppServiceClosedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppServiceClosedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppServiceClosedEventArgs { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -305,19 +180,18 @@ impl ::windows_core::RuntimeType for AppServiceClosedEventArgs { } unsafe impl ::windows_core::Interface for AppServiceClosedEventArgs { type Vtable = IAppServiceClosedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppServiceClosedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppServiceClosedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.AppService.AppServiceClosedEventArgs"; } -::windows_core::imp::interface_hierarchy!(AppServiceClosedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppServiceClosedEventArgs {} unsafe impl ::core::marker::Sync for AppServiceClosedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppServiceConnection(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppServiceConnection, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(AppServiceConnection, super::super::Foundation::IClosable); impl AppServiceConnection { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -401,7 +275,7 @@ impl AppServiceConnection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -410,7 +284,7 @@ impl AppServiceConnection { #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -422,7 +296,7 @@ impl AppServiceConnection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`, `\"System_RemoteSystems\"`"] @@ -439,7 +313,7 @@ impl AppServiceConnection { }) } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } #[doc(hidden)] @@ -453,20 +327,17 @@ impl ::windows_core::RuntimeType for AppServiceConnection { } unsafe impl ::windows_core::Interface for AppServiceConnection { type Vtable = IAppServiceConnection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppServiceConnection { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppServiceConnection { const NAME: &'static str = "Windows.ApplicationModel.AppService.AppServiceConnection"; } -::windows_core::imp::interface_hierarchy!(AppServiceConnection, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for AppServiceConnection {} unsafe impl ::core::marker::Send for AppServiceConnection {} unsafe impl ::core::marker::Sync for AppServiceConnection {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppServiceDeferral(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppServiceDeferral, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppServiceDeferral { pub fn Complete(&self) -> ::windows_core::Result<()> { let this = self; @@ -478,19 +349,17 @@ impl ::windows_core::RuntimeType for AppServiceDeferral { } unsafe impl ::windows_core::Interface for AppServiceDeferral { type Vtable = IAppServiceDeferral_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppServiceDeferral { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppServiceDeferral { const NAME: &'static str = "Windows.ApplicationModel.AppService.AppServiceDeferral"; } -::windows_core::imp::interface_hierarchy!(AppServiceDeferral, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppServiceDeferral {} unsafe impl ::core::marker::Sync for AppServiceDeferral {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppServiceRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppServiceRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppServiceRequest { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -519,19 +388,17 @@ impl ::windows_core::RuntimeType for AppServiceRequest { } unsafe impl ::windows_core::Interface for AppServiceRequest { type Vtable = IAppServiceRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppServiceRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppServiceRequest { const NAME: &'static str = "Windows.ApplicationModel.AppService.AppServiceRequest"; } -::windows_core::imp::interface_hierarchy!(AppServiceRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppServiceRequest {} unsafe impl ::core::marker::Sync for AppServiceRequest {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppServiceRequestReceivedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppServiceRequestReceivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppServiceRequestReceivedEventArgs { pub fn Request(&self) -> ::windows_core::Result { let this = self; @@ -553,19 +420,17 @@ impl ::windows_core::RuntimeType for AppServiceRequestReceivedEventArgs { } unsafe impl ::windows_core::Interface for AppServiceRequestReceivedEventArgs { type Vtable = IAppServiceRequestReceivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppServiceRequestReceivedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppServiceRequestReceivedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.AppService.AppServiceRequestReceivedEventArgs"; } -::windows_core::imp::interface_hierarchy!(AppServiceRequestReceivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppServiceRequestReceivedEventArgs {} unsafe impl ::core::marker::Sync for AppServiceRequestReceivedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppServiceResponse(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppServiceResponse, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppServiceResponse { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -589,19 +454,17 @@ impl ::windows_core::RuntimeType for AppServiceResponse { } unsafe impl ::windows_core::Interface for AppServiceResponse { type Vtable = IAppServiceResponse_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppServiceResponse { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppServiceResponse { const NAME: &'static str = "Windows.ApplicationModel.AppService.AppServiceResponse"; } -::windows_core::imp::interface_hierarchy!(AppServiceResponse, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppServiceResponse {} unsafe impl ::core::marker::Sync for AppServiceResponse {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppServiceTriggerDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppServiceTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppServiceTriggerDetails { pub fn Name(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -625,21 +488,21 @@ impl AppServiceTriggerDetails { } } pub fn IsRemoteSystemConnection(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsRemoteSystemConnection)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CheckCallerForCapabilityAsync(&self, capabilityname: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CheckCallerForCapabilityAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(capabilityname), &mut result__).from_abi(result__) } } pub fn CallerRemoteConnectionToken(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CallerRemoteConnectionToken)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -651,19 +514,17 @@ impl ::windows_core::RuntimeType for AppServiceTriggerDetails { } unsafe impl ::windows_core::Interface for AppServiceTriggerDetails { type Vtable = IAppServiceTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppServiceTriggerDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppServiceTriggerDetails { const NAME: &'static str = "Windows.ApplicationModel.AppService.AppServiceTriggerDetails"; } -::windows_core::imp::interface_hierarchy!(AppServiceTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppServiceTriggerDetails {} unsafe impl ::core::marker::Sync for AppServiceTriggerDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StatelessAppServiceResponse(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StatelessAppServiceResponse, ::windows_core::IUnknown, ::windows_core::IInspectable); impl StatelessAppServiceResponse { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -687,14 +548,11 @@ impl ::windows_core::RuntimeType for StatelessAppServiceResponse { } unsafe impl ::windows_core::Interface for StatelessAppServiceResponse { type Vtable = IStatelessAppServiceResponse_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StatelessAppServiceResponse { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StatelessAppServiceResponse { const NAME: &'static str = "Windows.ApplicationModel.AppService.StatelessAppServiceResponse"; } -::windows_core::imp::interface_hierarchy!(StatelessAppServiceResponse, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for StatelessAppServiceResponse {} unsafe impl ::core::marker::Sync for StatelessAppServiceResponse {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Appointments/AppointmentsProvider/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Appointments/AppointmentsProvider/mod.rs index b61ee98544..c1d67f1114 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Appointments/AppointmentsProvider/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Appointments/AppointmentsProvider/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAddAppointmentOperation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAddAppointmentOperation { - type Vtable = IAddAppointmentOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAddAppointmentOperation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xec4a9af3_620d_4c69_add7_9794e918081f); -} +::windows_core::imp::com_interface!(IAddAppointmentOperation, IAddAppointmentOperation_Vtbl, 0xec4a9af3_620d_4c69_add7_9794e918081f); #[repr(C)] #[doc(hidden)] pub struct IAddAppointmentOperation_Vtbl { @@ -19,16 +10,7 @@ pub struct IAddAppointmentOperation_Vtbl { pub ReportError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub DismissUI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppointmentsProviderLaunchActionVerbsStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppointmentsProviderLaunchActionVerbsStatics { - type Vtable = IAppointmentsProviderLaunchActionVerbsStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppointmentsProviderLaunchActionVerbsStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x36dbba28_9e2e_49c6_8ef7_3ab7a5dcc8b8); -} +::windows_core::imp::com_interface!(IAppointmentsProviderLaunchActionVerbsStatics, IAppointmentsProviderLaunchActionVerbsStatics_Vtbl, 0x36dbba28_9e2e_49c6_8ef7_3ab7a5dcc8b8); #[repr(C)] #[doc(hidden)] pub struct IAppointmentsProviderLaunchActionVerbsStatics_Vtbl { @@ -38,32 +20,14 @@ pub struct IAppointmentsProviderLaunchActionVerbsStatics_Vtbl { pub RemoveAppointment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub ShowTimeFrame: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppointmentsProviderLaunchActionVerbsStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppointmentsProviderLaunchActionVerbsStatics2 { - type Vtable = IAppointmentsProviderLaunchActionVerbsStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppointmentsProviderLaunchActionVerbsStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xef9049a4_af21_473c_88dc_76cd89f60ca5); -} +::windows_core::imp::com_interface!(IAppointmentsProviderLaunchActionVerbsStatics2, IAppointmentsProviderLaunchActionVerbsStatics2_Vtbl, 0xef9049a4_af21_473c_88dc_76cd89f60ca5); #[repr(C)] #[doc(hidden)] pub struct IAppointmentsProviderLaunchActionVerbsStatics2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ShowAppointmentDetails: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoveAppointmentOperation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoveAppointmentOperation { - type Vtable = IRemoveAppointmentOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoveAppointmentOperation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x08b66aba_fe33_46cd_a50c_a8ffb3260537); -} +::windows_core::imp::com_interface!(IRemoveAppointmentOperation, IRemoveAppointmentOperation_Vtbl, 0x08b66aba_fe33_46cd_a50c_a8ffb3260537); #[repr(C)] #[doc(hidden)] pub struct IRemoveAppointmentOperation_Vtbl { @@ -76,16 +40,7 @@ pub struct IRemoveAppointmentOperation_Vtbl { pub ReportError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub DismissUI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IReplaceAppointmentOperation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IReplaceAppointmentOperation { - type Vtable = IReplaceAppointmentOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IReplaceAppointmentOperation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf4903d9b_9e61_4de2_a732_2687c07d1de8); -} +::windows_core::imp::com_interface!(IReplaceAppointmentOperation, IReplaceAppointmentOperation_Vtbl, 0xf4903d9b_9e61_4de2_a732_2687c07d1de8); #[repr(C)] #[doc(hidden)] pub struct IReplaceAppointmentOperation_Vtbl { @@ -102,6 +57,7 @@ pub struct IReplaceAppointmentOperation_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AddAppointmentOperation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AddAppointmentOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AddAppointmentOperation { pub fn AppointmentInformation(&self) -> ::windows_core::Result { let this = self; @@ -139,14 +95,11 @@ impl ::windows_core::RuntimeType for AddAppointmentOperation { } unsafe impl ::windows_core::Interface for AddAppointmentOperation { type Vtable = IAddAppointmentOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AddAppointmentOperation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AddAppointmentOperation { const NAME: &'static str = "Windows.ApplicationModel.Appointments.AppointmentsProvider.AddAppointmentOperation"; } -::windows_core::imp::interface_hierarchy!(AddAppointmentOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AddAppointmentOperation {} unsafe impl ::core::marker::Sync for AddAppointmentOperation {} pub struct AppointmentsProviderLaunchActionVerbs; @@ -198,6 +151,7 @@ impl ::windows_core::RuntimeName for AppointmentsProviderLaunchActionVerbs { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RemoveAppointmentOperation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RemoveAppointmentOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RemoveAppointmentOperation { pub fn AppointmentId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -242,19 +196,17 @@ impl ::windows_core::RuntimeType for RemoveAppointmentOperation { } unsafe impl ::windows_core::Interface for RemoveAppointmentOperation { type Vtable = IRemoveAppointmentOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RemoveAppointmentOperation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RemoveAppointmentOperation { const NAME: &'static str = "Windows.ApplicationModel.Appointments.AppointmentsProvider.RemoveAppointmentOperation"; } -::windows_core::imp::interface_hierarchy!(RemoveAppointmentOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RemoveAppointmentOperation {} unsafe impl ::core::marker::Sync for RemoveAppointmentOperation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ReplaceAppointmentOperation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ReplaceAppointmentOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ReplaceAppointmentOperation { pub fn AppointmentId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -306,13 +258,10 @@ impl ::windows_core::RuntimeType for ReplaceAppointmentOperation { } unsafe impl ::windows_core::Interface for ReplaceAppointmentOperation { type Vtable = IReplaceAppointmentOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ReplaceAppointmentOperation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ReplaceAppointmentOperation { const NAME: &'static str = "Windows.ApplicationModel.Appointments.AppointmentsProvider.ReplaceAppointmentOperation"; } -::windows_core::imp::interface_hierarchy!(ReplaceAppointmentOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ReplaceAppointmentOperation {} unsafe impl ::core::marker::Sync for ReplaceAppointmentOperation {} 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 14a17fd82b..9a05497ad2 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Appointments/DataProvider/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Appointments/DataProvider/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppointmentCalendarCancelMeetingRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppointmentCalendarCancelMeetingRequest { - type Vtable = IAppointmentCalendarCancelMeetingRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppointmentCalendarCancelMeetingRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x49460f8d_6434_40d7_ad46_6297419314d1); -} +::windows_core::imp::com_interface!(IAppointmentCalendarCancelMeetingRequest, IAppointmentCalendarCancelMeetingRequest_Vtbl, 0x49460f8d_6434_40d7_ad46_6297419314d1); #[repr(C)] #[doc(hidden)] pub struct IAppointmentCalendarCancelMeetingRequest_Vtbl { @@ -21,16 +12,7 @@ pub struct IAppointmentCalendarCancelMeetingRequest_Vtbl { pub ReportCompletedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ReportFailedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppointmentCalendarCancelMeetingRequestEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppointmentCalendarCancelMeetingRequestEventArgs { - type Vtable = IAppointmentCalendarCancelMeetingRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppointmentCalendarCancelMeetingRequestEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1a79be16_7f30_4e35_beef_9d2c7b6dcae1); -} +::windows_core::imp::com_interface!(IAppointmentCalendarCancelMeetingRequestEventArgs, IAppointmentCalendarCancelMeetingRequestEventArgs_Vtbl, 0x1a79be16_7f30_4e35_beef_9d2c7b6dcae1); #[repr(C)] #[doc(hidden)] pub struct IAppointmentCalendarCancelMeetingRequestEventArgs_Vtbl { @@ -38,16 +20,7 @@ pub struct IAppointmentCalendarCancelMeetingRequestEventArgs_Vtbl { pub Request: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppointmentCalendarCreateOrUpdateAppointmentRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppointmentCalendarCreateOrUpdateAppointmentRequest { - type Vtable = IAppointmentCalendarCreateOrUpdateAppointmentRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppointmentCalendarCreateOrUpdateAppointmentRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2e62f2b2_ca96_48ac_9124_406b19fefa70); -} +::windows_core::imp::com_interface!(IAppointmentCalendarCreateOrUpdateAppointmentRequest, IAppointmentCalendarCreateOrUpdateAppointmentRequest_Vtbl, 0x2e62f2b2_ca96_48ac_9124_406b19fefa70); #[repr(C)] #[doc(hidden)] pub struct IAppointmentCalendarCreateOrUpdateAppointmentRequest_Vtbl { @@ -62,16 +35,7 @@ pub struct IAppointmentCalendarCreateOrUpdateAppointmentRequest_Vtbl { pub ReportCompletedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, createdorupdatedappointment: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ReportFailedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppointmentCalendarCreateOrUpdateAppointmentRequestEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppointmentCalendarCreateOrUpdateAppointmentRequestEventArgs { - type Vtable = IAppointmentCalendarCreateOrUpdateAppointmentRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppointmentCalendarCreateOrUpdateAppointmentRequestEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcf8ded28_002e_4bf7_8e9d_5e20d49aa3ba); -} +::windows_core::imp::com_interface!(IAppointmentCalendarCreateOrUpdateAppointmentRequestEventArgs, IAppointmentCalendarCreateOrUpdateAppointmentRequestEventArgs_Vtbl, 0xcf8ded28_002e_4bf7_8e9d_5e20d49aa3ba); #[repr(C)] #[doc(hidden)] pub struct IAppointmentCalendarCreateOrUpdateAppointmentRequestEventArgs_Vtbl { @@ -79,16 +43,7 @@ pub struct IAppointmentCalendarCreateOrUpdateAppointmentRequestEventArgs_Vtbl { pub Request: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppointmentCalendarForwardMeetingRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppointmentCalendarForwardMeetingRequest { - type Vtable = IAppointmentCalendarForwardMeetingRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppointmentCalendarForwardMeetingRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x82e5ee56_26b6_4253_8a8f_6cf5f2ff7884); -} +::windows_core::imp::com_interface!(IAppointmentCalendarForwardMeetingRequest, IAppointmentCalendarForwardMeetingRequest_Vtbl, 0x82e5ee56_26b6_4253_8a8f_6cf5f2ff7884); #[repr(C)] #[doc(hidden)] pub struct IAppointmentCalendarForwardMeetingRequest_Vtbl { @@ -106,16 +61,7 @@ pub struct IAppointmentCalendarForwardMeetingRequest_Vtbl { pub ReportCompletedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ReportFailedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppointmentCalendarForwardMeetingRequestEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppointmentCalendarForwardMeetingRequestEventArgs { - type Vtable = IAppointmentCalendarForwardMeetingRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppointmentCalendarForwardMeetingRequestEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3109151a_23a2_42fd_9c82_c9a60d59f8a8); -} +::windows_core::imp::com_interface!(IAppointmentCalendarForwardMeetingRequestEventArgs, IAppointmentCalendarForwardMeetingRequestEventArgs_Vtbl, 0x3109151a_23a2_42fd_9c82_c9a60d59f8a8); #[repr(C)] #[doc(hidden)] pub struct IAppointmentCalendarForwardMeetingRequestEventArgs_Vtbl { @@ -123,16 +69,7 @@ pub struct IAppointmentCalendarForwardMeetingRequestEventArgs_Vtbl { pub Request: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppointmentCalendarProposeNewTimeForMeetingRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppointmentCalendarProposeNewTimeForMeetingRequest { - type Vtable = IAppointmentCalendarProposeNewTimeForMeetingRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppointmentCalendarProposeNewTimeForMeetingRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xce1c63f5_edf6_43c3_82b7_be6b368c6900); -} +::windows_core::imp::com_interface!(IAppointmentCalendarProposeNewTimeForMeetingRequest, IAppointmentCalendarProposeNewTimeForMeetingRequest_Vtbl, 0xce1c63f5_edf6_43c3_82b7_be6b368c6900); #[repr(C)] #[doc(hidden)] pub struct IAppointmentCalendarProposeNewTimeForMeetingRequest_Vtbl { @@ -147,16 +84,7 @@ pub struct IAppointmentCalendarProposeNewTimeForMeetingRequest_Vtbl { pub ReportCompletedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ReportFailedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppointmentCalendarProposeNewTimeForMeetingRequestEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppointmentCalendarProposeNewTimeForMeetingRequestEventArgs { - type Vtable = IAppointmentCalendarProposeNewTimeForMeetingRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppointmentCalendarProposeNewTimeForMeetingRequestEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd2d777d8_fed1_4280_a3ba_2e1f47609aa2); -} +::windows_core::imp::com_interface!(IAppointmentCalendarProposeNewTimeForMeetingRequestEventArgs, IAppointmentCalendarProposeNewTimeForMeetingRequestEventArgs_Vtbl, 0xd2d777d8_fed1_4280_a3ba_2e1f47609aa2); #[repr(C)] #[doc(hidden)] pub struct IAppointmentCalendarProposeNewTimeForMeetingRequestEventArgs_Vtbl { @@ -164,16 +92,7 @@ pub struct IAppointmentCalendarProposeNewTimeForMeetingRequestEventArgs_Vtbl { pub Request: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppointmentCalendarSyncManagerSyncRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppointmentCalendarSyncManagerSyncRequest { - type Vtable = IAppointmentCalendarSyncManagerSyncRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppointmentCalendarSyncManagerSyncRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x12ab382b_7163_4a56_9a4e_7223a84adf46); -} +::windows_core::imp::com_interface!(IAppointmentCalendarSyncManagerSyncRequest, IAppointmentCalendarSyncManagerSyncRequest_Vtbl, 0x12ab382b_7163_4a56_9a4e_7223a84adf46); #[repr(C)] #[doc(hidden)] pub struct IAppointmentCalendarSyncManagerSyncRequest_Vtbl { @@ -182,16 +101,7 @@ pub struct IAppointmentCalendarSyncManagerSyncRequest_Vtbl { pub ReportCompletedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ReportFailedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppointmentCalendarSyncManagerSyncRequestEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppointmentCalendarSyncManagerSyncRequestEventArgs { - type Vtable = IAppointmentCalendarSyncManagerSyncRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppointmentCalendarSyncManagerSyncRequestEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xca17c6f7_0284_4edd_87ba_4d8f69dcf5c0); -} +::windows_core::imp::com_interface!(IAppointmentCalendarSyncManagerSyncRequestEventArgs, IAppointmentCalendarSyncManagerSyncRequestEventArgs_Vtbl, 0xca17c6f7_0284_4edd_87ba_4d8f69dcf5c0); #[repr(C)] #[doc(hidden)] pub struct IAppointmentCalendarSyncManagerSyncRequestEventArgs_Vtbl { @@ -199,16 +109,7 @@ pub struct IAppointmentCalendarSyncManagerSyncRequestEventArgs_Vtbl { pub Request: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppointmentCalendarUpdateMeetingResponseRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppointmentCalendarUpdateMeetingResponseRequest { - type Vtable = IAppointmentCalendarUpdateMeetingResponseRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppointmentCalendarUpdateMeetingResponseRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa36d608c_c29d_4b94_b086_7e9ff7bd84a0); -} +::windows_core::imp::com_interface!(IAppointmentCalendarUpdateMeetingResponseRequest, IAppointmentCalendarUpdateMeetingResponseRequest_Vtbl, 0xa36d608c_c29d_4b94_b086_7e9ff7bd84a0); #[repr(C)] #[doc(hidden)] pub struct IAppointmentCalendarUpdateMeetingResponseRequest_Vtbl { @@ -223,16 +124,7 @@ pub struct IAppointmentCalendarUpdateMeetingResponseRequest_Vtbl { pub ReportCompletedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ReportFailedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppointmentCalendarUpdateMeetingResponseRequestEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppointmentCalendarUpdateMeetingResponseRequestEventArgs { - type Vtable = IAppointmentCalendarUpdateMeetingResponseRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppointmentCalendarUpdateMeetingResponseRequestEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x88759883_97bf_479d_aed5_0be8ce567d1e); -} +::windows_core::imp::com_interface!(IAppointmentCalendarUpdateMeetingResponseRequestEventArgs, IAppointmentCalendarUpdateMeetingResponseRequestEventArgs_Vtbl, 0x88759883_97bf_479d_aed5_0be8ce567d1e); #[repr(C)] #[doc(hidden)] pub struct IAppointmentCalendarUpdateMeetingResponseRequestEventArgs_Vtbl { @@ -240,16 +132,7 @@ pub struct IAppointmentCalendarUpdateMeetingResponseRequestEventArgs_Vtbl { pub Request: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppointmentDataProviderConnection(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppointmentDataProviderConnection { - type Vtable = IAppointmentDataProviderConnection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppointmentDataProviderConnection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf3dd9d83_3254_465f_abdb_928046552cf4); -} +::windows_core::imp::com_interface!(IAppointmentDataProviderConnection, IAppointmentDataProviderConnection_Vtbl, 0xf3dd9d83_3254_465f_abdb_928046552cf4); #[repr(C)] #[doc(hidden)] pub struct IAppointmentDataProviderConnection_Vtbl { @@ -268,16 +151,7 @@ pub struct IAppointmentDataProviderConnection_Vtbl { pub RemoveUpdateMeetingResponseRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub Start: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppointmentDataProviderTriggerDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppointmentDataProviderTriggerDetails { - type Vtable = IAppointmentDataProviderTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppointmentDataProviderTriggerDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb3283c01_7e12_4e5e_b1ef_74fb68ac6f2a); -} +::windows_core::imp::com_interface!(IAppointmentDataProviderTriggerDetails, IAppointmentDataProviderTriggerDetails_Vtbl, 0xb3283c01_7e12_4e5e_b1ef_74fb68ac6f2a); #[repr(C)] #[doc(hidden)] pub struct IAppointmentDataProviderTriggerDetails_Vtbl { @@ -287,6 +161,7 @@ pub struct IAppointmentDataProviderTriggerDetails_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppointmentCalendarCancelMeetingRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppointmentCalendarCancelMeetingRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppointmentCalendarCancelMeetingRequest { pub fn AppointmentCalendarLocalId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -350,19 +225,17 @@ impl ::windows_core::RuntimeType for AppointmentCalendarCancelMeetingRequest { } unsafe impl ::windows_core::Interface for AppointmentCalendarCancelMeetingRequest { type Vtable = IAppointmentCalendarCancelMeetingRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppointmentCalendarCancelMeetingRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppointmentCalendarCancelMeetingRequest { const NAME: &'static str = "Windows.ApplicationModel.Appointments.DataProvider.AppointmentCalendarCancelMeetingRequest"; } -::windows_core::imp::interface_hierarchy!(AppointmentCalendarCancelMeetingRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppointmentCalendarCancelMeetingRequest {} unsafe impl ::core::marker::Sync for AppointmentCalendarCancelMeetingRequest {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppointmentCalendarCancelMeetingRequestEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppointmentCalendarCancelMeetingRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppointmentCalendarCancelMeetingRequestEventArgs { pub fn Request(&self) -> ::windows_core::Result { let this = self; @@ -384,19 +257,17 @@ impl ::windows_core::RuntimeType for AppointmentCalendarCancelMeetingRequestEven } unsafe impl ::windows_core::Interface for AppointmentCalendarCancelMeetingRequestEventArgs { type Vtable = IAppointmentCalendarCancelMeetingRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppointmentCalendarCancelMeetingRequestEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppointmentCalendarCancelMeetingRequestEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Appointments.DataProvider.AppointmentCalendarCancelMeetingRequestEventArgs"; } -::windows_core::imp::interface_hierarchy!(AppointmentCalendarCancelMeetingRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppointmentCalendarCancelMeetingRequestEventArgs {} unsafe impl ::core::marker::Sync for AppointmentCalendarCancelMeetingRequestEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppointmentCalendarCreateOrUpdateAppointmentRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppointmentCalendarCreateOrUpdateAppointmentRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppointmentCalendarCreateOrUpdateAppointmentRequest { pub fn AppointmentCalendarLocalId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -451,19 +322,17 @@ impl ::windows_core::RuntimeType for AppointmentCalendarCreateOrUpdateAppointmen } unsafe impl ::windows_core::Interface for AppointmentCalendarCreateOrUpdateAppointmentRequest { type Vtable = IAppointmentCalendarCreateOrUpdateAppointmentRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppointmentCalendarCreateOrUpdateAppointmentRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppointmentCalendarCreateOrUpdateAppointmentRequest { const NAME: &'static str = "Windows.ApplicationModel.Appointments.DataProvider.AppointmentCalendarCreateOrUpdateAppointmentRequest"; } -::windows_core::imp::interface_hierarchy!(AppointmentCalendarCreateOrUpdateAppointmentRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppointmentCalendarCreateOrUpdateAppointmentRequest {} unsafe impl ::core::marker::Sync for AppointmentCalendarCreateOrUpdateAppointmentRequest {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppointmentCalendarCreateOrUpdateAppointmentRequestEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppointmentCalendarCreateOrUpdateAppointmentRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppointmentCalendarCreateOrUpdateAppointmentRequestEventArgs { pub fn Request(&self) -> ::windows_core::Result { let this = self; @@ -485,19 +354,17 @@ impl ::windows_core::RuntimeType for AppointmentCalendarCreateOrUpdateAppointmen } unsafe impl ::windows_core::Interface for AppointmentCalendarCreateOrUpdateAppointmentRequestEventArgs { type Vtable = IAppointmentCalendarCreateOrUpdateAppointmentRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppointmentCalendarCreateOrUpdateAppointmentRequestEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppointmentCalendarCreateOrUpdateAppointmentRequestEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Appointments.DataProvider.AppointmentCalendarCreateOrUpdateAppointmentRequestEventArgs"; } -::windows_core::imp::interface_hierarchy!(AppointmentCalendarCreateOrUpdateAppointmentRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppointmentCalendarCreateOrUpdateAppointmentRequestEventArgs {} unsafe impl ::core::marker::Sync for AppointmentCalendarCreateOrUpdateAppointmentRequestEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppointmentCalendarForwardMeetingRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppointmentCalendarForwardMeetingRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppointmentCalendarForwardMeetingRequest { pub fn AppointmentCalendarLocalId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -570,19 +437,17 @@ impl ::windows_core::RuntimeType for AppointmentCalendarForwardMeetingRequest { } unsafe impl ::windows_core::Interface for AppointmentCalendarForwardMeetingRequest { type Vtable = IAppointmentCalendarForwardMeetingRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppointmentCalendarForwardMeetingRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppointmentCalendarForwardMeetingRequest { const NAME: &'static str = "Windows.ApplicationModel.Appointments.DataProvider.AppointmentCalendarForwardMeetingRequest"; } -::windows_core::imp::interface_hierarchy!(AppointmentCalendarForwardMeetingRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppointmentCalendarForwardMeetingRequest {} unsafe impl ::core::marker::Sync for AppointmentCalendarForwardMeetingRequest {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppointmentCalendarForwardMeetingRequestEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppointmentCalendarForwardMeetingRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppointmentCalendarForwardMeetingRequestEventArgs { pub fn Request(&self) -> ::windows_core::Result { let this = self; @@ -604,19 +469,17 @@ impl ::windows_core::RuntimeType for AppointmentCalendarForwardMeetingRequestEve } unsafe impl ::windows_core::Interface for AppointmentCalendarForwardMeetingRequestEventArgs { type Vtable = IAppointmentCalendarForwardMeetingRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppointmentCalendarForwardMeetingRequestEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppointmentCalendarForwardMeetingRequestEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Appointments.DataProvider.AppointmentCalendarForwardMeetingRequestEventArgs"; } -::windows_core::imp::interface_hierarchy!(AppointmentCalendarForwardMeetingRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppointmentCalendarForwardMeetingRequestEventArgs {} unsafe impl ::core::marker::Sync for AppointmentCalendarForwardMeetingRequestEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppointmentCalendarProposeNewTimeForMeetingRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppointmentCalendarProposeNewTimeForMeetingRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppointmentCalendarProposeNewTimeForMeetingRequest { pub fn AppointmentCalendarLocalId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -687,19 +550,17 @@ impl ::windows_core::RuntimeType for AppointmentCalendarProposeNewTimeForMeeting } unsafe impl ::windows_core::Interface for AppointmentCalendarProposeNewTimeForMeetingRequest { type Vtable = IAppointmentCalendarProposeNewTimeForMeetingRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppointmentCalendarProposeNewTimeForMeetingRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppointmentCalendarProposeNewTimeForMeetingRequest { const NAME: &'static str = "Windows.ApplicationModel.Appointments.DataProvider.AppointmentCalendarProposeNewTimeForMeetingRequest"; } -::windows_core::imp::interface_hierarchy!(AppointmentCalendarProposeNewTimeForMeetingRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppointmentCalendarProposeNewTimeForMeetingRequest {} unsafe impl ::core::marker::Sync for AppointmentCalendarProposeNewTimeForMeetingRequest {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppointmentCalendarProposeNewTimeForMeetingRequestEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppointmentCalendarProposeNewTimeForMeetingRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppointmentCalendarProposeNewTimeForMeetingRequestEventArgs { pub fn Request(&self) -> ::windows_core::Result { let this = self; @@ -721,19 +582,17 @@ impl ::windows_core::RuntimeType for AppointmentCalendarProposeNewTimeForMeeting } unsafe impl ::windows_core::Interface for AppointmentCalendarProposeNewTimeForMeetingRequestEventArgs { type Vtable = IAppointmentCalendarProposeNewTimeForMeetingRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppointmentCalendarProposeNewTimeForMeetingRequestEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppointmentCalendarProposeNewTimeForMeetingRequestEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Appointments.DataProvider.AppointmentCalendarProposeNewTimeForMeetingRequestEventArgs"; } -::windows_core::imp::interface_hierarchy!(AppointmentCalendarProposeNewTimeForMeetingRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppointmentCalendarProposeNewTimeForMeetingRequestEventArgs {} unsafe impl ::core::marker::Sync for AppointmentCalendarProposeNewTimeForMeetingRequestEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppointmentCalendarSyncManagerSyncRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppointmentCalendarSyncManagerSyncRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppointmentCalendarSyncManagerSyncRequest { pub fn AppointmentCalendarLocalId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -762,19 +621,17 @@ impl ::windows_core::RuntimeType for AppointmentCalendarSyncManagerSyncRequest { } unsafe impl ::windows_core::Interface for AppointmentCalendarSyncManagerSyncRequest { type Vtable = IAppointmentCalendarSyncManagerSyncRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppointmentCalendarSyncManagerSyncRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppointmentCalendarSyncManagerSyncRequest { const NAME: &'static str = "Windows.ApplicationModel.Appointments.DataProvider.AppointmentCalendarSyncManagerSyncRequest"; } -::windows_core::imp::interface_hierarchy!(AppointmentCalendarSyncManagerSyncRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppointmentCalendarSyncManagerSyncRequest {} unsafe impl ::core::marker::Sync for AppointmentCalendarSyncManagerSyncRequest {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppointmentCalendarSyncManagerSyncRequestEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppointmentCalendarSyncManagerSyncRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppointmentCalendarSyncManagerSyncRequestEventArgs { pub fn Request(&self) -> ::windows_core::Result { let this = self; @@ -796,19 +653,17 @@ impl ::windows_core::RuntimeType for AppointmentCalendarSyncManagerSyncRequestEv } unsafe impl ::windows_core::Interface for AppointmentCalendarSyncManagerSyncRequestEventArgs { type Vtable = IAppointmentCalendarSyncManagerSyncRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppointmentCalendarSyncManagerSyncRequestEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppointmentCalendarSyncManagerSyncRequestEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Appointments.DataProvider.AppointmentCalendarSyncManagerSyncRequestEventArgs"; } -::windows_core::imp::interface_hierarchy!(AppointmentCalendarSyncManagerSyncRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppointmentCalendarSyncManagerSyncRequestEventArgs {} unsafe impl ::core::marker::Sync for AppointmentCalendarSyncManagerSyncRequestEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppointmentCalendarUpdateMeetingResponseRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppointmentCalendarUpdateMeetingResponseRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppointmentCalendarUpdateMeetingResponseRequest { pub fn AppointmentCalendarLocalId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -879,19 +734,17 @@ impl ::windows_core::RuntimeType for AppointmentCalendarUpdateMeetingResponseReq } unsafe impl ::windows_core::Interface for AppointmentCalendarUpdateMeetingResponseRequest { type Vtable = IAppointmentCalendarUpdateMeetingResponseRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppointmentCalendarUpdateMeetingResponseRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppointmentCalendarUpdateMeetingResponseRequest { const NAME: &'static str = "Windows.ApplicationModel.Appointments.DataProvider.AppointmentCalendarUpdateMeetingResponseRequest"; } -::windows_core::imp::interface_hierarchy!(AppointmentCalendarUpdateMeetingResponseRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppointmentCalendarUpdateMeetingResponseRequest {} unsafe impl ::core::marker::Sync for AppointmentCalendarUpdateMeetingResponseRequest {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppointmentCalendarUpdateMeetingResponseRequestEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppointmentCalendarUpdateMeetingResponseRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppointmentCalendarUpdateMeetingResponseRequestEventArgs { pub fn Request(&self) -> ::windows_core::Result { let this = self; @@ -913,19 +766,17 @@ impl ::windows_core::RuntimeType for AppointmentCalendarUpdateMeetingResponseReq } unsafe impl ::windows_core::Interface for AppointmentCalendarUpdateMeetingResponseRequestEventArgs { type Vtable = IAppointmentCalendarUpdateMeetingResponseRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppointmentCalendarUpdateMeetingResponseRequestEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppointmentCalendarUpdateMeetingResponseRequestEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Appointments.DataProvider.AppointmentCalendarUpdateMeetingResponseRequestEventArgs"; } -::windows_core::imp::interface_hierarchy!(AppointmentCalendarUpdateMeetingResponseRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppointmentCalendarUpdateMeetingResponseRequestEventArgs {} unsafe impl ::core::marker::Sync for AppointmentCalendarUpdateMeetingResponseRequestEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppointmentDataProviderConnection(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppointmentDataProviderConnection, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppointmentDataProviderConnection { pub fn SyncRequested(&self, handler: P0) -> ::windows_core::Result where @@ -1021,19 +872,17 @@ impl ::windows_core::RuntimeType for AppointmentDataProviderConnection { } unsafe impl ::windows_core::Interface for AppointmentDataProviderConnection { type Vtable = IAppointmentDataProviderConnection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppointmentDataProviderConnection { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppointmentDataProviderConnection { const NAME: &'static str = "Windows.ApplicationModel.Appointments.DataProvider.AppointmentDataProviderConnection"; } -::windows_core::imp::interface_hierarchy!(AppointmentDataProviderConnection, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppointmentDataProviderConnection {} unsafe impl ::core::marker::Sync for AppointmentDataProviderConnection {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppointmentDataProviderTriggerDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppointmentDataProviderTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppointmentDataProviderTriggerDetails { pub fn Connection(&self) -> ::windows_core::Result { let this = self; @@ -1048,13 +897,10 @@ impl ::windows_core::RuntimeType for AppointmentDataProviderTriggerDetails { } unsafe impl ::windows_core::Interface for AppointmentDataProviderTriggerDetails { type Vtable = IAppointmentDataProviderTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppointmentDataProviderTriggerDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppointmentDataProviderTriggerDetails { const NAME: &'static str = "Windows.ApplicationModel.Appointments.DataProvider.AppointmentDataProviderTriggerDetails"; } -::windows_core::imp::interface_hierarchy!(AppointmentDataProviderTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppointmentDataProviderTriggerDetails {} unsafe impl ::core::marker::Sync for AppointmentDataProviderTriggerDetails {} diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Appointments/impl.rs b/crates/libs/windows/src/Windows/ApplicationModel/Appointments/impl.rs index 46ce7f655f..c7854e6272 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Appointments/impl.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Appointments/impl.rs @@ -52,6 +52,6 @@ impl IAppointmentParticipant_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs index 7f0a538a5d..5948cbefc9 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs @@ -4,16 +4,7 @@ pub mod AppointmentsProvider; #[cfg(feature = "ApplicationModel_Appointments_DataProvider")] #[doc = "Required features: `\"ApplicationModel_Appointments_DataProvider\"`"] pub mod DataProvider; -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppointment(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppointment { - type Vtable = IAppointment_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppointment { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdd002f2f_2bdd_4076_90a3_22c275312965); -} +::windows_core::imp::com_interface!(IAppointment, IAppointment_Vtbl, 0xdd002f2f_2bdd_4076_90a3_22c275312965); #[repr(C)] #[doc(hidden)] pub struct IAppointment_Vtbl { @@ -47,16 +38,7 @@ pub struct IAppointment_Vtbl { pub Uri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetUri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppointment2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppointment2 { - type Vtable = IAppointment2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppointment2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5e85983c_540f_3452_9b5c_0dd7ad4c65a2); -} +::windows_core::imp::com_interface!(IAppointment2, IAppointment2_Vtbl, 0x5e85983c_540f_3452_9b5c_0dd7ad4c65a2); #[repr(C)] #[doc(hidden)] pub struct IAppointment2_Vtbl { @@ -82,16 +64,7 @@ pub struct IAppointment2_Vtbl { pub IsOrganizedByUser: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetIsOrganizedByUser: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppointment3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppointment3 { - type Vtable = IAppointment3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppointment3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbfcc45a9_8961_4991_934b_c48768e5a96c); -} +::windows_core::imp::com_interface!(IAppointment3, IAppointment3_Vtbl, 0xbfcc45a9_8961_4991_934b_c48768e5a96c); #[repr(C)] #[doc(hidden)] pub struct IAppointment3_Vtbl { @@ -102,16 +75,7 @@ pub struct IAppointment3_Vtbl { pub DetailsKind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut AppointmentDetailsKind) -> ::windows_core::HRESULT, pub SetDetailsKind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: AppointmentDetailsKind) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppointmentCalendar(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppointmentCalendar { - type Vtable = IAppointmentCalendar_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppointmentCalendar { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5273819d_8339_3d4f_a02f_64084452bb5d); -} +::windows_core::imp::com_interface!(IAppointmentCalendar, IAppointmentCalendar_Vtbl, 0x5273819d_8339_3d4f_a02f_64084452bb5d); #[repr(C)] #[doc(hidden)] pub struct IAppointmentCalendar_Vtbl { @@ -167,16 +131,7 @@ pub struct IAppointmentCalendar_Vtbl { pub DeleteAppointmentInstanceAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, localid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, instancestarttime: super::super::Foundation::DateTime, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SaveAppointmentAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pappointment: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppointmentCalendar2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppointmentCalendar2 { - type Vtable = IAppointmentCalendar2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppointmentCalendar2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x18e7e422_2467_4e1c_a459_d8a29303d092); -} +::windows_core::imp::com_interface!(IAppointmentCalendar2, IAppointmentCalendar2_Vtbl, 0x18e7e422_2467_4e1c_a459_d8a29303d092); #[repr(C)] #[doc(hidden)] pub struct IAppointmentCalendar2_Vtbl { @@ -213,32 +168,14 @@ pub struct IAppointmentCalendar2_Vtbl { pub TryProposeNewTimeForMeetingAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, meeting: *mut ::core::ffi::c_void, newstarttime: super::super::Foundation::DateTime, newduration: super::super::Foundation::TimeSpan, subject: ::std::mem::MaybeUninit<::windows_core::HSTRING>, comment: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub TryUpdateMeetingResponseAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, meeting: *mut ::core::ffi::c_void, response: AppointmentParticipantResponse, subject: ::std::mem::MaybeUninit<::windows_core::HSTRING>, comment: ::std::mem::MaybeUninit<::windows_core::HSTRING>, sendupdate: bool, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppointmentCalendar3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppointmentCalendar3 { - type Vtable = IAppointmentCalendar3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppointmentCalendar3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeb23d22b_a685_42ae_8495_b3119adb4167); -} +::windows_core::imp::com_interface!(IAppointmentCalendar3, IAppointmentCalendar3_Vtbl, 0xeb23d22b_a685_42ae_8495_b3119adb4167); #[repr(C)] #[doc(hidden)] pub struct IAppointmentCalendar3_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub RegisterSyncManagerAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppointmentCalendarSyncManager(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppointmentCalendarSyncManager { - type Vtable = IAppointmentCalendarSyncManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppointmentCalendarSyncManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2b21b3a0_4aff_4392_bc5f_5645ffcffb17); -} +::windows_core::imp::com_interface!(IAppointmentCalendarSyncManager, IAppointmentCalendarSyncManager_Vtbl, 0x2b21b3a0_4aff_4392_bc5f_5645ffcffb17); #[repr(C)] #[doc(hidden)] pub struct IAppointmentCalendarSyncManager_Vtbl { @@ -250,16 +187,7 @@ pub struct IAppointmentCalendarSyncManager_Vtbl { pub SyncStatusChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveSyncStatusChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppointmentCalendarSyncManager2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppointmentCalendarSyncManager2 { - type Vtable = IAppointmentCalendarSyncManager2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppointmentCalendarSyncManager2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x647528ad_0d29_4c7c_aaa7_bf996805537c); -} +::windows_core::imp::com_interface!(IAppointmentCalendarSyncManager2, IAppointmentCalendarSyncManager2_Vtbl, 0x647528ad_0d29_4c7c_aaa7_bf996805537c); #[repr(C)] #[doc(hidden)] pub struct IAppointmentCalendarSyncManager2_Vtbl { @@ -268,16 +196,7 @@ pub struct IAppointmentCalendarSyncManager2_Vtbl { pub SetLastSuccessfulSyncTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::Foundation::DateTime) -> ::windows_core::HRESULT, pub SetLastAttemptedSyncTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::Foundation::DateTime) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppointmentConflictResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppointmentConflictResult { - type Vtable = IAppointmentConflictResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppointmentConflictResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd5cdf0be_2f2f_3b7d_af0a_a7e20f3a46e3); -} +::windows_core::imp::com_interface!(IAppointmentConflictResult, IAppointmentConflictResult_Vtbl, 0xd5cdf0be_2f2f_3b7d_af0a_a7e20f3a46e3); #[repr(C)] #[doc(hidden)] pub struct IAppointmentConflictResult_Vtbl { @@ -285,16 +204,7 @@ pub struct IAppointmentConflictResult_Vtbl { pub Type: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut AppointmentConflictType) -> ::windows_core::HRESULT, pub Date: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::DateTime) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppointmentException(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppointmentException { - type Vtable = IAppointmentException_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppointmentException { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa2076767_16f6_4bce_9f5a_8600b8019fcb); -} +::windows_core::imp::com_interface!(IAppointmentException, IAppointmentException_Vtbl, 0xa2076767_16f6_4bce_9f5a_8600b8019fcb); #[repr(C)] #[doc(hidden)] pub struct IAppointmentException_Vtbl { @@ -306,16 +216,7 @@ pub struct IAppointmentException_Vtbl { ExceptionProperties: usize, pub IsDeleted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppointmentInvitee(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppointmentInvitee { - type Vtable = IAppointmentInvitee_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppointmentInvitee { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x13bf0796_9842_495b_b0e7_ef8f79c0701d); -} +::windows_core::imp::com_interface!(IAppointmentInvitee, IAppointmentInvitee_Vtbl, 0x13bf0796_9842_495b_b0e7_ef8f79c0701d); #[repr(C)] #[doc(hidden)] pub struct IAppointmentInvitee_Vtbl { @@ -325,16 +226,7 @@ pub struct IAppointmentInvitee_Vtbl { pub Response: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut AppointmentParticipantResponse) -> ::windows_core::HRESULT, pub SetResponse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: AppointmentParticipantResponse) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppointmentManagerForUser(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppointmentManagerForUser { - type Vtable = IAppointmentManagerForUser_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppointmentManagerForUser { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x70261423_73cc_4660_b318_b01365302a03); -} +::windows_core::imp::com_interface!(IAppointmentManagerForUser, IAppointmentManagerForUser_Vtbl, 0x70261423_73cc_4660_b318_b01365302a03); #[repr(C)] #[doc(hidden)] pub struct IAppointmentManagerForUser_Vtbl { @@ -372,16 +264,7 @@ pub struct IAppointmentManagerForUser_Vtbl { #[cfg(not(feature = "System"))] User: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppointmentManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppointmentManagerStatics { - type Vtable = IAppointmentManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppointmentManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3a30fa01_5c40_499d_b33f_a43050f74fc4); -} +::windows_core::imp::com_interface!(IAppointmentManagerStatics, IAppointmentManagerStatics_Vtbl, 0x3a30fa01_5c40_499d_b33f_a43050f74fc4); #[repr(C)] #[doc(hidden)] pub struct IAppointmentManagerStatics_Vtbl { @@ -411,16 +294,7 @@ pub struct IAppointmentManagerStatics_Vtbl { ShowRemoveAppointmentWithPlacementAndDateAsync: usize, pub ShowTimeFrameAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, timetoshow: super::super::Foundation::DateTime, duration: super::super::Foundation::TimeSpan, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppointmentManagerStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppointmentManagerStatics2 { - type Vtable = IAppointmentManagerStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppointmentManagerStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0a81f60d_d04f_4034_af72_a36573b45ff0); -} +::windows_core::imp::com_interface!(IAppointmentManagerStatics2, IAppointmentManagerStatics2_Vtbl, 0x0a81f60d_d04f_4034_af72_a36573b45ff0); #[repr(C)] #[doc(hidden)] pub struct IAppointmentManagerStatics2_Vtbl { @@ -430,16 +304,7 @@ pub struct IAppointmentManagerStatics2_Vtbl { pub ShowEditNewAppointmentAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, appointment: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RequestStoreAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, options: AppointmentStoreAccessType, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppointmentManagerStatics3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppointmentManagerStatics3 { - type Vtable = IAppointmentManagerStatics3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppointmentManagerStatics3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2f9ae09c_b34c_4dc7_a35d_cafd88ae3ec6); -} +::windows_core::imp::com_interface!(IAppointmentManagerStatics3, IAppointmentManagerStatics3_Vtbl, 0x2f9ae09c_b34c_4dc7_a35d_cafd88ae3ec6); #[repr(C)] #[doc(hidden)] pub struct IAppointmentManagerStatics3_Vtbl { @@ -449,9 +314,8 @@ pub struct IAppointmentManagerStatics3_Vtbl { #[cfg(not(feature = "System"))] GetForUser: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppointmentParticipant(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppointmentParticipant, IAppointmentParticipant_Vtbl, 0x615e2902_9718_467b_83fb_b293a19121de); +::windows_core::imp::interface_hierarchy!(IAppointmentParticipant, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IAppointmentParticipant { pub fn DisplayName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -476,16 +340,9 @@ impl IAppointmentParticipant { unsafe { (::windows_core::Interface::vtable(this).SetAddress)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } } -::windows_core::imp::interface_hierarchy!(IAppointmentParticipant, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IAppointmentParticipant { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IAppointmentParticipant { - type Vtable = IAppointmentParticipant_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppointmentParticipant { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x615e2902_9718_467b_83fb_b293a19121de); -} #[repr(C)] #[doc(hidden)] pub struct IAppointmentParticipant_Vtbl { @@ -495,16 +352,7 @@ pub struct IAppointmentParticipant_Vtbl { pub Address: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppointmentPropertiesStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppointmentPropertiesStatics { - type Vtable = IAppointmentPropertiesStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppointmentPropertiesStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x25141fe9_68ae_3aae_855f_bc4441caa234); -} +::windows_core::imp::com_interface!(IAppointmentPropertiesStatics, IAppointmentPropertiesStatics_Vtbl, 0x25141fe9_68ae_3aae_855f_bc4441caa234); #[repr(C)] #[doc(hidden)] pub struct IAppointmentPropertiesStatics_Vtbl { @@ -536,16 +384,7 @@ pub struct IAppointmentPropertiesStatics_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] DefaultProperties: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppointmentPropertiesStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppointmentPropertiesStatics2 { - type Vtable = IAppointmentPropertiesStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppointmentPropertiesStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdffc434b_b017_45dd_8af5_d163d10801bb); -} +::windows_core::imp::com_interface!(IAppointmentPropertiesStatics2, IAppointmentPropertiesStatics2_Vtbl, 0xdffc434b_b017_45dd_8af5_d163d10801bb); #[repr(C)] #[doc(hidden)] pub struct IAppointmentPropertiesStatics2_Vtbl { @@ -554,16 +393,7 @@ pub struct IAppointmentPropertiesStatics2_Vtbl { pub RemoteChangeNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub DetailsKind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppointmentRecurrence(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppointmentRecurrence { - type Vtable = IAppointmentRecurrence_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppointmentRecurrence { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd87b3e83_15a6_487b_b959_0c361e60e954); -} +::windows_core::imp::com_interface!(IAppointmentRecurrence, IAppointmentRecurrence_Vtbl, 0xd87b3e83_15a6_487b_b959_0c361e60e954); #[repr(C)] #[doc(hidden)] pub struct IAppointmentRecurrence_Vtbl { @@ -585,16 +415,7 @@ pub struct IAppointmentRecurrence_Vtbl { pub Day: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, pub SetDay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppointmentRecurrence2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppointmentRecurrence2 { - type Vtable = IAppointmentRecurrence2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppointmentRecurrence2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3df3a2e0_05a7_4f50_9f86_b03f9436254d); -} +::windows_core::imp::com_interface!(IAppointmentRecurrence2, IAppointmentRecurrence2_Vtbl, 0x3df3a2e0_05a7_4f50_9f86_b03f9436254d); #[repr(C)] #[doc(hidden)] pub struct IAppointmentRecurrence2_Vtbl { @@ -603,32 +424,14 @@ pub struct IAppointmentRecurrence2_Vtbl { pub TimeZone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetTimeZone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppointmentRecurrence3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppointmentRecurrence3 { - type Vtable = IAppointmentRecurrence3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppointmentRecurrence3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x89ff96d9_da4d_4a17_8dd2_1cebc2b5ff9d); -} +::windows_core::imp::com_interface!(IAppointmentRecurrence3, IAppointmentRecurrence3_Vtbl, 0x89ff96d9_da4d_4a17_8dd2_1cebc2b5ff9d); #[repr(C)] #[doc(hidden)] pub struct IAppointmentRecurrence3_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CalendarIdentifier: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppointmentStore(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppointmentStore { - type Vtable = IAppointmentStore_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppointmentStore { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa461918c_7a47_4d96_96c9_15cd8a05a735); -} +::windows_core::imp::com_interface!(IAppointmentStore, IAppointmentStore_Vtbl, 0xa461918c_7a47_4d96_96c9_15cd8a05a735); #[repr(C)] #[doc(hidden)] pub struct IAppointmentStore_Vtbl { @@ -676,16 +479,7 @@ pub struct IAppointmentStore_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] FindLocalIdsFromRoamingIdAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppointmentStore2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppointmentStore2 { - type Vtable = IAppointmentStore2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppointmentStore2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x25c48c20_1c41_424f_8084_67c1cfe0a854); -} +::windows_core::imp::com_interface!(IAppointmentStore2, IAppointmentStore2_Vtbl, 0x25c48c20_1c41_424f_8084_67c1cfe0a854); #[repr(C)] #[doc(hidden)] pub struct IAppointmentStore2_Vtbl { @@ -694,32 +488,14 @@ pub struct IAppointmentStore2_Vtbl { pub RemoveStoreChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub CreateAppointmentCalendarInAccountAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows_core::HSTRING>, userdataaccountid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppointmentStore3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppointmentStore3 { - type Vtable = IAppointmentStore3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppointmentStore3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4251940b_b078_470a_9a40_c2e01761f72f); -} +::windows_core::imp::com_interface!(IAppointmentStore3, IAppointmentStore3_Vtbl, 0x4251940b_b078_470a_9a40_c2e01761f72f); #[repr(C)] #[doc(hidden)] pub struct IAppointmentStore3_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetChangeTracker: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, identity: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppointmentStoreChange(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppointmentStoreChange { - type Vtable = IAppointmentStoreChange_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppointmentStoreChange { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa5a6e035_0a33_3654_8463_b543e90c3b79); -} +::windows_core::imp::com_interface!(IAppointmentStoreChange, IAppointmentStoreChange_Vtbl, 0xa5a6e035_0a33_3654_8463_b543e90c3b79); #[repr(C)] #[doc(hidden)] pub struct IAppointmentStoreChange_Vtbl { @@ -727,32 +503,14 @@ pub struct IAppointmentStoreChange_Vtbl { pub Appointment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ChangeType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut AppointmentStoreChangeType) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppointmentStoreChange2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppointmentStoreChange2 { - type Vtable = IAppointmentStoreChange2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppointmentStoreChange2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb37d0dce_5211_4402_a608_a96fe70b8ee2); -} +::windows_core::imp::com_interface!(IAppointmentStoreChange2, IAppointmentStoreChange2_Vtbl, 0xb37d0dce_5211_4402_a608_a96fe70b8ee2); #[repr(C)] #[doc(hidden)] pub struct IAppointmentStoreChange2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub AppointmentCalendar: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppointmentStoreChangeReader(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppointmentStoreChangeReader { - type Vtable = IAppointmentStoreChangeReader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppointmentStoreChangeReader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8b2409f1_65f3_42a0_961d_4c209bf30370); -} +::windows_core::imp::com_interface!(IAppointmentStoreChangeReader, IAppointmentStoreChangeReader_Vtbl, 0x8b2409f1_65f3_42a0_961d_4c209bf30370); #[repr(C)] #[doc(hidden)] pub struct IAppointmentStoreChangeReader_Vtbl { @@ -764,16 +522,7 @@ pub struct IAppointmentStoreChangeReader_Vtbl { pub AcceptChanges: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub AcceptChangesThrough: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lastchangetoaccept: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppointmentStoreChangeTracker(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppointmentStoreChangeTracker { - type Vtable = IAppointmentStoreChangeTracker_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppointmentStoreChangeTracker { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1b25f4b1_8ece_4f17_93c8_e6412458fd5c); -} +::windows_core::imp::com_interface!(IAppointmentStoreChangeTracker, IAppointmentStoreChangeTracker_Vtbl, 0x1b25f4b1_8ece_4f17_93c8_e6412458fd5c); #[repr(C)] #[doc(hidden)] pub struct IAppointmentStoreChangeTracker_Vtbl { @@ -782,79 +531,34 @@ pub struct IAppointmentStoreChangeTracker_Vtbl { pub Enable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppointmentStoreChangeTracker2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppointmentStoreChangeTracker2 { - type Vtable = IAppointmentStoreChangeTracker2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppointmentStoreChangeTracker2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb66aaf45_9542_4cf7_8550_eb370e0c08d3); -} +::windows_core::imp::com_interface!(IAppointmentStoreChangeTracker2, IAppointmentStoreChangeTracker2_Vtbl, 0xb66aaf45_9542_4cf7_8550_eb370e0c08d3); #[repr(C)] #[doc(hidden)] pub struct IAppointmentStoreChangeTracker2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub IsTracking: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppointmentStoreChangedDeferral(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppointmentStoreChangedDeferral { - type Vtable = IAppointmentStoreChangedDeferral_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppointmentStoreChangedDeferral { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4cb82026_fedb_4bc3_9662_95a9befdf4df); -} +::windows_core::imp::com_interface!(IAppointmentStoreChangedDeferral, IAppointmentStoreChangedDeferral_Vtbl, 0x4cb82026_fedb_4bc3_9662_95a9befdf4df); #[repr(C)] #[doc(hidden)] pub struct IAppointmentStoreChangedDeferral_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Complete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppointmentStoreChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppointmentStoreChangedEventArgs { - type Vtable = IAppointmentStoreChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppointmentStoreChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2285f8b9_0791_417e_bfea_cc6d41636c8c); -} +::windows_core::imp::com_interface!(IAppointmentStoreChangedEventArgs, IAppointmentStoreChangedEventArgs_Vtbl, 0x2285f8b9_0791_417e_bfea_cc6d41636c8c); #[repr(C)] #[doc(hidden)] pub struct IAppointmentStoreChangedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppointmentStoreNotificationTriggerDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppointmentStoreNotificationTriggerDetails { - type Vtable = IAppointmentStoreNotificationTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppointmentStoreNotificationTriggerDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9b33cb11_c301_421e_afef_047ecfa76adb); -} +::windows_core::imp::com_interface!(IAppointmentStoreNotificationTriggerDetails, IAppointmentStoreNotificationTriggerDetails_Vtbl, 0x9b33cb11_c301_421e_afef_047ecfa76adb); #[repr(C)] #[doc(hidden)] pub struct IAppointmentStoreNotificationTriggerDetails_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFindAppointmentsOptions(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFindAppointmentsOptions { - type Vtable = IFindAppointmentsOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFindAppointmentsOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x55f7dc55_9942_3086_82b5_2cb29f64d5f5); -} +::windows_core::imp::com_interface!(IFindAppointmentsOptions, IFindAppointmentsOptions_Vtbl, 0x55f7dc55_9942_3086_82b5_2cb29f64d5f5); #[repr(C)] #[doc(hidden)] pub struct IFindAppointmentsOptions_Vtbl { @@ -875,6 +579,7 @@ pub struct IFindAppointmentsOptions_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Appointment(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Appointment, ::windows_core::IUnknown, ::windows_core::IInspectable); impl Appointment { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -947,10 +652,10 @@ impl Appointment { } pub fn SetReminder(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetReminder)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetReminder)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn Organizer(&self) -> ::windows_core::Result { let this = self; @@ -1037,72 +742,72 @@ impl Appointment { unsafe { (::windows_core::Interface::vtable(this).SetUri)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn LocalId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).LocalId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CalendarId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CalendarId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn RoamingId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RoamingId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetRoamingId(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRoamingId)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn OriginalStartTime(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OriginalStartTime)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsResponseRequested(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsResponseRequested)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsResponseRequested(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsResponseRequested)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn AllowNewTimeProposal(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AllowNewTimeProposal)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetAllowNewTimeProposal(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetAllowNewTimeProposal)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn OnlineMeetingLink(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OnlineMeetingLink)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetOnlineMeetingLink(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetOnlineMeetingLink)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ReplyTime(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ReplyTime)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1110,78 +815,78 @@ impl Appointment { } pub fn SetReplyTime(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetReplyTime)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn UserResponse(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).UserResponse)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetUserResponse(&self, value: AppointmentParticipantResponse) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetUserResponse)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn HasInvitees(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).HasInvitees)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsCanceledMeeting(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsCanceledMeeting)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsCanceledMeeting(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsCanceledMeeting)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsOrganizedByUser(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsOrganizedByUser)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsOrganizedByUser(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsOrganizedByUser)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn ChangeNumber(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ChangeNumber)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn RemoteChangeNumber(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RemoteChangeNumber)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetRemoteChangeNumber(&self, value: u64) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRemoteChangeNumber)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn DetailsKind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DetailsKind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDetailsKind(&self, value: AppointmentDetailsKind) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDetailsKind)(::windows_core::Interface::as_raw(this), value).ok() } } } @@ -1190,19 +895,17 @@ impl ::windows_core::RuntimeType for Appointment { } unsafe impl ::windows_core::Interface for Appointment { type Vtable = IAppointment_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Appointment { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Appointment { const NAME: &'static str = "Windows.ApplicationModel.Appointments.Appointment"; } -::windows_core::imp::interface_hierarchy!(Appointment, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for Appointment {} unsafe impl ::core::marker::Sync for Appointment {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppointmentCalendar(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppointmentCalendar, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppointmentCalendar { #[doc = "Required features: `\"UI\"`"] #[cfg(feature = "UI")] @@ -1403,122 +1106,122 @@ impl AppointmentCalendar { } } pub fn SyncManager(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SyncManager)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn RemoteId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RemoteId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetRemoteId(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRemoteId)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } #[doc = "Required features: `\"UI\"`"] #[cfg(feature = "UI")] pub fn SetDisplayColor(&self, value: super::super::UI::Color) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDisplayColor)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn SetIsHidden(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsHidden)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn UserDataAccountId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).UserDataAccountId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CanCreateOrUpdateAppointments(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CanCreateOrUpdateAppointments)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetCanCreateOrUpdateAppointments(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCanCreateOrUpdateAppointments)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn CanCancelMeetings(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CanCancelMeetings)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetCanCancelMeetings(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCanCancelMeetings)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn CanForwardMeetings(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CanForwardMeetings)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetCanForwardMeetings(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCanForwardMeetings)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn CanProposeNewTimeForMeetings(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CanProposeNewTimeForMeetings)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetCanProposeNewTimeForMeetings(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCanProposeNewTimeForMeetings)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn CanUpdateMeetingResponses(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CanUpdateMeetingResponses)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetCanUpdateMeetingResponses(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCanUpdateMeetingResponses)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn CanNotifyInvitees(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CanNotifyInvitees)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetCanNotifyInvitees(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCanNotifyInvitees)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn MustNofityInvitees(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MustNofityInvitees)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetMustNofityInvitees(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMustNofityInvitees)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn TryCreateOrUpdateAppointmentAsync(&self, appointment: P0, notifyinvitees: bool) -> ::windows_core::Result> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -1528,7 +1231,7 @@ impl AppointmentCalendar { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -1539,19 +1242,19 @@ impl AppointmentCalendar { 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::TryIntoParam>, + P1: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), ::core::mem::transmute_copy(subject), ::core::mem::transmute_copy(forwardheader), ::core::mem::transmute_copy(comment), &mut result__).from_abi(result__) + (::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__).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, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -1561,14 +1264,14 @@ impl AppointmentCalendar { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RegisterSyncManagerAsync(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RegisterSyncManagerAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1580,19 +1283,17 @@ impl ::windows_core::RuntimeType for AppointmentCalendar { } unsafe impl ::windows_core::Interface for AppointmentCalendar { type Vtable = IAppointmentCalendar_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppointmentCalendar { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppointmentCalendar { const NAME: &'static str = "Windows.ApplicationModel.Appointments.AppointmentCalendar"; } -::windows_core::imp::interface_hierarchy!(AppointmentCalendar, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppointmentCalendar {} unsafe impl ::core::marker::Sync for AppointmentCalendar {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppointmentCalendarSyncManager(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppointmentCalendarSyncManager, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppointmentCalendarSyncManager { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -1637,15 +1338,15 @@ impl AppointmentCalendarSyncManager { unsafe { (::windows_core::Interface::vtable(this).RemoveSyncStatusChanged)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn SetStatus(&self, value: AppointmentCalendarSyncStatus) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetStatus)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn SetLastSuccessfulSyncTime(&self, value: super::super::Foundation::DateTime) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetLastSuccessfulSyncTime)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn SetLastAttemptedSyncTime(&self, value: super::super::Foundation::DateTime) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetLastAttemptedSyncTime)(::windows_core::Interface::as_raw(this), value).ok() } } } @@ -1654,19 +1355,17 @@ impl ::windows_core::RuntimeType for AppointmentCalendarSyncManager { } unsafe impl ::windows_core::Interface for AppointmentCalendarSyncManager { type Vtable = IAppointmentCalendarSyncManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppointmentCalendarSyncManager { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppointmentCalendarSyncManager { const NAME: &'static str = "Windows.ApplicationModel.Appointments.AppointmentCalendarSyncManager"; } -::windows_core::imp::interface_hierarchy!(AppointmentCalendarSyncManager, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppointmentCalendarSyncManager {} unsafe impl ::core::marker::Sync for AppointmentCalendarSyncManager {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppointmentConflictResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppointmentConflictResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppointmentConflictResult { pub fn Type(&self) -> ::windows_core::Result { let this = self; @@ -1688,19 +1387,17 @@ impl ::windows_core::RuntimeType for AppointmentConflictResult { } unsafe impl ::windows_core::Interface for AppointmentConflictResult { type Vtable = IAppointmentConflictResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppointmentConflictResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppointmentConflictResult { const NAME: &'static str = "Windows.ApplicationModel.Appointments.AppointmentConflictResult"; } -::windows_core::imp::interface_hierarchy!(AppointmentConflictResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppointmentConflictResult {} unsafe impl ::core::marker::Sync for AppointmentConflictResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppointmentException(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppointmentException, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppointmentException { pub fn Appointment(&self) -> ::windows_core::Result { let this = self; @@ -1731,19 +1428,18 @@ impl ::windows_core::RuntimeType for AppointmentException { } unsafe impl ::windows_core::Interface for AppointmentException { type Vtable = IAppointmentException_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppointmentException { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppointmentException { const NAME: &'static str = "Windows.ApplicationModel.Appointments.AppointmentException"; } -::windows_core::imp::interface_hierarchy!(AppointmentException, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppointmentException {} unsafe impl ::core::marker::Sync for AppointmentException {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppointmentInvitee(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppointmentInvitee, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(AppointmentInvitee, IAppointmentParticipant); impl AppointmentInvitee { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1775,25 +1471,25 @@ impl AppointmentInvitee { unsafe { (::windows_core::Interface::vtable(this).SetResponse)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn DisplayName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DisplayName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDisplayName(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDisplayName)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn Address(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Address)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetAddress(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetAddress)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } } @@ -1802,15 +1498,11 @@ impl ::windows_core::RuntimeType for AppointmentInvitee { } unsafe impl ::windows_core::Interface for AppointmentInvitee { type Vtable = IAppointmentInvitee_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppointmentInvitee { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppointmentInvitee { const NAME: &'static str = "Windows.ApplicationModel.Appointments.AppointmentInvitee"; } -::windows_core::imp::interface_hierarchy!(AppointmentInvitee, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for AppointmentInvitee {} unsafe impl ::core::marker::Send for AppointmentInvitee {} unsafe impl ::core::marker::Sync for AppointmentInvitee {} pub struct AppointmentManager; @@ -1954,6 +1646,7 @@ impl ::windows_core::RuntimeName for AppointmentManager { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppointmentManagerForUser(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppointmentManagerForUser, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppointmentManagerForUser { pub fn ShowAddAppointmentAsync(&self, appointment: P0, selection: super::super::Foundation::Rect) -> ::windows_core::Result> where @@ -2089,19 +1782,18 @@ impl ::windows_core::RuntimeType for AppointmentManagerForUser { } unsafe impl ::windows_core::Interface for AppointmentManagerForUser { type Vtable = IAppointmentManagerForUser_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppointmentManagerForUser { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppointmentManagerForUser { const NAME: &'static str = "Windows.ApplicationModel.Appointments.AppointmentManagerForUser"; } -::windows_core::imp::interface_hierarchy!(AppointmentManagerForUser, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppointmentManagerForUser {} unsafe impl ::core::marker::Sync for AppointmentManagerForUser {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppointmentOrganizer(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppointmentOrganizer, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(AppointmentOrganizer, IAppointmentParticipant); impl AppointmentOrganizer { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2138,15 +1830,11 @@ impl ::windows_core::RuntimeType for AppointmentOrganizer { } unsafe impl ::windows_core::Interface for AppointmentOrganizer { type Vtable = IAppointmentParticipant_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppointmentOrganizer { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppointmentOrganizer { const NAME: &'static str = "Windows.ApplicationModel.Appointments.AppointmentOrganizer"; } -::windows_core::imp::interface_hierarchy!(AppointmentOrganizer, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for AppointmentOrganizer {} unsafe impl ::core::marker::Send for AppointmentOrganizer {} unsafe impl ::core::marker::Sync for AppointmentOrganizer {} pub struct AppointmentProperties; @@ -2326,6 +2014,7 @@ impl ::windows_core::RuntimeName for AppointmentProperties { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppointmentRecurrence(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppointmentRecurrence, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppointmentRecurrence { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2354,10 +2043,10 @@ impl AppointmentRecurrence { } pub fn SetOccurrences(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetOccurrences)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetOccurrences)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn Until(&self) -> ::windows_core::Result> { let this = self; @@ -2368,10 +2057,10 @@ impl AppointmentRecurrence { } pub fn SetUntil(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetUntil)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetUntil)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn Interval(&self) -> ::windows_core::Result { let this = self; @@ -2429,25 +2118,25 @@ impl AppointmentRecurrence { unsafe { (::windows_core::Interface::vtable(this).SetDay)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn RecurrenceType(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RecurrenceType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TimeZone(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TimeZone)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetTimeZone(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetTimeZone)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn CalendarIdentifier(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CalendarIdentifier)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2459,19 +2148,17 @@ impl ::windows_core::RuntimeType for AppointmentRecurrence { } unsafe impl ::windows_core::Interface for AppointmentRecurrence { type Vtable = IAppointmentRecurrence_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppointmentRecurrence { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppointmentRecurrence { const NAME: &'static str = "Windows.ApplicationModel.Appointments.AppointmentRecurrence"; } -::windows_core::imp::interface_hierarchy!(AppointmentRecurrence, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppointmentRecurrence {} unsafe impl ::core::marker::Sync for AppointmentRecurrence {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppointmentStore(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppointmentStore, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppointmentStore { pub fn ChangeTracker(&self) -> ::windows_core::Result { let this = self; @@ -2663,25 +2350,25 @@ impl AppointmentStore { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveStoreChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveStoreChanged)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn CreateAppointmentCalendarInAccountAsync(&self, name: &::windows_core::HSTRING, userdataaccountid: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateAppointmentCalendarInAccountAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(name), ::core::mem::transmute_copy(userdataaccountid), &mut result__).from_abi(result__) } } pub fn GetChangeTracker(&self, identity: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetChangeTracker)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(identity), &mut result__).from_abi(result__) @@ -2693,19 +2380,17 @@ impl ::windows_core::RuntimeType for AppointmentStore { } unsafe impl ::windows_core::Interface for AppointmentStore { type Vtable = IAppointmentStore_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppointmentStore { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppointmentStore { const NAME: &'static str = "Windows.ApplicationModel.Appointments.AppointmentStore"; } -::windows_core::imp::interface_hierarchy!(AppointmentStore, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppointmentStore {} unsafe impl ::core::marker::Sync for AppointmentStore {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppointmentStoreChange(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppointmentStoreChange, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppointmentStoreChange { pub fn Appointment(&self) -> ::windows_core::Result { let this = self; @@ -2722,7 +2407,7 @@ impl AppointmentStoreChange { } } pub fn AppointmentCalendar(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AppointmentCalendar)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2734,19 +2419,17 @@ impl ::windows_core::RuntimeType for AppointmentStoreChange { } unsafe impl ::windows_core::Interface for AppointmentStoreChange { type Vtable = IAppointmentStoreChange_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppointmentStoreChange { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppointmentStoreChange { const NAME: &'static str = "Windows.ApplicationModel.Appointments.AppointmentStoreChange"; } -::windows_core::imp::interface_hierarchy!(AppointmentStoreChange, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppointmentStoreChange {} unsafe impl ::core::marker::Sync for AppointmentStoreChange {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppointmentStoreChangeReader(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppointmentStoreChangeReader, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppointmentStoreChangeReader { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -2774,19 +2457,17 @@ impl ::windows_core::RuntimeType for AppointmentStoreChangeReader { } unsafe impl ::windows_core::Interface for AppointmentStoreChangeReader { type Vtable = IAppointmentStoreChangeReader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppointmentStoreChangeReader { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppointmentStoreChangeReader { const NAME: &'static str = "Windows.ApplicationModel.Appointments.AppointmentStoreChangeReader"; } -::windows_core::imp::interface_hierarchy!(AppointmentStoreChangeReader, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppointmentStoreChangeReader {} unsafe impl ::core::marker::Sync for AppointmentStoreChangeReader {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppointmentStoreChangeTracker(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppointmentStoreChangeTracker, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppointmentStoreChangeTracker { pub fn GetChangeReader(&self) -> ::windows_core::Result { let this = self; @@ -2804,7 +2485,7 @@ impl AppointmentStoreChangeTracker { unsafe { (::windows_core::Interface::vtable(this).Reset)(::windows_core::Interface::as_raw(this)).ok() } } pub fn IsTracking(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsTracking)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2816,19 +2497,17 @@ impl ::windows_core::RuntimeType for AppointmentStoreChangeTracker { } unsafe impl ::windows_core::Interface for AppointmentStoreChangeTracker { type Vtable = IAppointmentStoreChangeTracker_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppointmentStoreChangeTracker { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppointmentStoreChangeTracker { const NAME: &'static str = "Windows.ApplicationModel.Appointments.AppointmentStoreChangeTracker"; } -::windows_core::imp::interface_hierarchy!(AppointmentStoreChangeTracker, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppointmentStoreChangeTracker {} unsafe impl ::core::marker::Sync for AppointmentStoreChangeTracker {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppointmentStoreChangedDeferral(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppointmentStoreChangedDeferral, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppointmentStoreChangedDeferral { pub fn Complete(&self) -> ::windows_core::Result<()> { let this = self; @@ -2840,19 +2519,17 @@ impl ::windows_core::RuntimeType for AppointmentStoreChangedDeferral { } unsafe impl ::windows_core::Interface for AppointmentStoreChangedDeferral { type Vtable = IAppointmentStoreChangedDeferral_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppointmentStoreChangedDeferral { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppointmentStoreChangedDeferral { const NAME: &'static str = "Windows.ApplicationModel.Appointments.AppointmentStoreChangedDeferral"; } -::windows_core::imp::interface_hierarchy!(AppointmentStoreChangedDeferral, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppointmentStoreChangedDeferral {} unsafe impl ::core::marker::Sync for AppointmentStoreChangedDeferral {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppointmentStoreChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppointmentStoreChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppointmentStoreChangedEventArgs { pub fn GetDeferral(&self) -> ::windows_core::Result { let this = self; @@ -2867,38 +2544,34 @@ impl ::windows_core::RuntimeType for AppointmentStoreChangedEventArgs { } unsafe impl ::windows_core::Interface for AppointmentStoreChangedEventArgs { type Vtable = IAppointmentStoreChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppointmentStoreChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppointmentStoreChangedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Appointments.AppointmentStoreChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(AppointmentStoreChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppointmentStoreChangedEventArgs {} unsafe impl ::core::marker::Sync for AppointmentStoreChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppointmentStoreNotificationTriggerDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppointmentStoreNotificationTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppointmentStoreNotificationTriggerDetails {} impl ::windows_core::RuntimeType for AppointmentStoreNotificationTriggerDetails { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_class::(); } unsafe impl ::windows_core::Interface for AppointmentStoreNotificationTriggerDetails { type Vtable = IAppointmentStoreNotificationTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppointmentStoreNotificationTriggerDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppointmentStoreNotificationTriggerDetails { const NAME: &'static str = "Windows.ApplicationModel.Appointments.AppointmentStoreNotificationTriggerDetails"; } -::windows_core::imp::interface_hierarchy!(AppointmentStoreNotificationTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppointmentStoreNotificationTriggerDetails {} unsafe impl ::core::marker::Sync for AppointmentStoreNotificationTriggerDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct FindAppointmentsOptions(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(FindAppointmentsOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); impl FindAppointmentsOptions { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2953,14 +2626,11 @@ impl ::windows_core::RuntimeType for FindAppointmentsOptions { } unsafe impl ::windows_core::Interface for FindAppointmentsOptions { type Vtable = IFindAppointmentsOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for FindAppointmentsOptions { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for FindAppointmentsOptions { const NAME: &'static str = "Windows.ApplicationModel.Appointments.FindAppointmentsOptions"; } -::windows_core::imp::interface_hierarchy!(FindAppointmentsOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for FindAppointmentsOptions {} unsafe impl ::core::marker::Sync for FindAppointmentsOptions {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Background/impl.rs b/crates/libs/windows/src/Windows/ApplicationModel/Background/impl.rs index 981d79dd36..336e6003c6 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Background/impl.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Background/impl.rs @@ -7,7 +7,7 @@ impl IBackgroundCondition_Vtbl { Self { base__: ::windows_core::IInspectable_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IBackgroundTask_Impl: Sized { @@ -26,7 +26,7 @@ impl IBackgroundTask_Vtbl { Self { base__: ::windows_core::IInspectable_Vtbl::new::(), Run: Run:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IBackgroundTaskInstance_Impl: Sized { @@ -149,7 +149,7 @@ impl IBackgroundTaskInstance_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IBackgroundTaskInstance2_Impl: Sized + IBackgroundTaskInstance_Impl { @@ -177,7 +177,7 @@ impl IBackgroundTaskInstance2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"System\"`"] @@ -207,7 +207,7 @@ impl IBackgroundTaskInstance4_Vtbl { Self { base__: ::windows_core::IInspectable_Vtbl::new::(), User: User:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IBackgroundTaskRegistration_Impl: Sized { @@ -296,7 +296,7 @@ impl IBackgroundTaskRegistration_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IBackgroundTaskRegistration2_Impl: Sized + IBackgroundTaskRegistration_Impl { @@ -322,7 +322,7 @@ impl IBackgroundTaskRegistration2_Vtbl { Self { base__: ::windows_core::IInspectable_Vtbl::new::(), Trigger: Trigger:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IBackgroundTaskRegistration3_Impl: Sized + IBackgroundTaskRegistration_Impl { @@ -351,7 +351,7 @@ impl IBackgroundTaskRegistration3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IBackgroundTrigger_Impl: Sized {} @@ -363,6 +363,6 @@ impl IBackgroundTrigger_Vtbl { Self { base__: ::windows_core::IInspectable_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs index 9e85efda1b..1e7f32bb93 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActivitySensorTrigger(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IActivitySensorTrigger { - type Vtable = IActivitySensorTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActivitySensorTrigger { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd0dd4342_e37b_4823_a5fe_6b31dfefdeb0); -} +::windows_core::imp::com_interface!(IActivitySensorTrigger, IActivitySensorTrigger_Vtbl, 0xd0dd4342_e37b_4823_a5fe_6b31dfefdeb0); #[repr(C)] #[doc(hidden)] pub struct IActivitySensorTrigger_Vtbl { @@ -23,32 +14,14 @@ pub struct IActivitySensorTrigger_Vtbl { SupportedActivities: usize, pub MinimumReportInterval: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActivitySensorTriggerFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IActivitySensorTriggerFactory { - type Vtable = IActivitySensorTriggerFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActivitySensorTriggerFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa72691c3_3837_44f7_831b_0132cc872bc3); -} +::windows_core::imp::com_interface!(IActivitySensorTriggerFactory, IActivitySensorTriggerFactory_Vtbl, 0xa72691c3_3837_44f7_831b_0132cc872bc3); #[repr(C)] #[doc(hidden)] pub struct IActivitySensorTriggerFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, reportintervalinmilliseconds: u32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAlarmApplicationManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAlarmApplicationManagerStatics { - type Vtable = IAlarmApplicationManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAlarmApplicationManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xca03fa3b_cce6_4de2_b09b_9628bd33bbbe); -} +::windows_core::imp::com_interface!(IAlarmApplicationManagerStatics, IAlarmApplicationManagerStatics_Vtbl, 0xca03fa3b_cce6_4de2_b09b_9628bd33bbbe); #[repr(C)] #[doc(hidden)] pub struct IAlarmApplicationManagerStatics_Vtbl { @@ -56,16 +29,7 @@ pub struct IAlarmApplicationManagerStatics_Vtbl { pub RequestAccessAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetAccessStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut AlarmAccessStatus) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppBroadcastTrigger(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppBroadcastTrigger { - type Vtable = IAppBroadcastTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppBroadcastTrigger { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x74d4f496_8d37_44ec_9481_2a0b9854eb48); -} +::windows_core::imp::com_interface!(IAppBroadcastTrigger, IAppBroadcastTrigger_Vtbl, 0x74d4f496_8d37_44ec_9481_2a0b9854eb48); #[repr(C)] #[doc(hidden)] pub struct IAppBroadcastTrigger_Vtbl { @@ -73,32 +37,14 @@ pub struct IAppBroadcastTrigger_Vtbl { pub SetProviderInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ProviderInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppBroadcastTriggerFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppBroadcastTriggerFactory { - type Vtable = IAppBroadcastTriggerFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppBroadcastTriggerFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x280b9f44_22f4_4618_a02e_e7e411eb7238); -} +::windows_core::imp::com_interface!(IAppBroadcastTriggerFactory, IAppBroadcastTriggerFactory_Vtbl, 0x280b9f44_22f4_4618_a02e_e7e411eb7238); #[repr(C)] #[doc(hidden)] pub struct IAppBroadcastTriggerFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateAppBroadcastTrigger: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, providerkey: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppBroadcastTriggerProviderInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppBroadcastTriggerProviderInfo { - type Vtable = IAppBroadcastTriggerProviderInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppBroadcastTriggerProviderInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf219352d_9de8_4420_9ce2_5eff8f17376b); -} +::windows_core::imp::com_interface!(IAppBroadcastTriggerProviderInfo, IAppBroadcastTriggerProviderInfo_Vtbl, 0xf219352d_9de8_4420_9ce2_5eff8f17376b); #[repr(C)] #[doc(hidden)] pub struct IAppBroadcastTriggerProviderInfo_Vtbl { @@ -116,16 +62,7 @@ pub struct IAppBroadcastTriggerProviderInfo_Vtbl { pub SetMaxVideoHeight: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: u32) -> ::windows_core::HRESULT, pub MaxVideoHeight: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IApplicationTrigger(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IApplicationTrigger { - type Vtable = IApplicationTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IApplicationTrigger { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0b468630_9574_492c_9e93_1a3ae6335fe9); -} +::windows_core::imp::com_interface!(IApplicationTrigger, IApplicationTrigger_Vtbl, 0x0b468630_9574_492c_9e93_1a3ae6335fe9); #[repr(C)] #[doc(hidden)] pub struct IApplicationTrigger_Vtbl { @@ -136,16 +73,7 @@ pub struct IApplicationTrigger_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] RequestAsyncWithArguments: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IApplicationTriggerDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IApplicationTriggerDetails { - type Vtable = IApplicationTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IApplicationTriggerDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x97dc6ab2_2219_4a9e_9c5e_41d047f76e82); -} +::windows_core::imp::com_interface!(IApplicationTriggerDetails, IApplicationTriggerDetails_Vtbl, 0x97dc6ab2_2219_4a9e_9c5e_41d047f76e82); #[repr(C)] #[doc(hidden)] pub struct IApplicationTriggerDetails_Vtbl { @@ -155,50 +83,24 @@ pub struct IApplicationTriggerDetails_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Arguments: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppointmentStoreNotificationTrigger(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppointmentStoreNotificationTrigger { - type Vtable = IAppointmentStoreNotificationTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppointmentStoreNotificationTrigger { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x64d4040c_c201_42ad_aa2a_e21ba3425b6d); -} +::windows_core::imp::com_interface!(IAppointmentStoreNotificationTrigger, IAppointmentStoreNotificationTrigger_Vtbl, 0x64d4040c_c201_42ad_aa2a_e21ba3425b6d); #[repr(C)] #[doc(hidden)] pub struct IAppointmentStoreNotificationTrigger_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundCondition(::windows_core::IUnknown); -impl IBackgroundCondition {} +::windows_core::imp::com_interface!(IBackgroundCondition, IBackgroundCondition_Vtbl, 0xae48a1ee_8951_400a_8302_9c9c9a2a3a3b); ::windows_core::imp::interface_hierarchy!(IBackgroundCondition, ::windows_core::IUnknown, ::windows_core::IInspectable); +impl IBackgroundCondition {} impl ::windows_core::RuntimeType for IBackgroundCondition { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IBackgroundCondition { - type Vtable = IBackgroundCondition_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundCondition { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xae48a1ee_8951_400a_8302_9c9c9a2a3a3b); -} #[repr(C)] #[doc(hidden)] pub struct IBackgroundCondition_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundExecutionManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBackgroundExecutionManagerStatics { - type Vtable = IBackgroundExecutionManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundExecutionManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe826ea58_66a9_4d41_83d4_b4c18c87b846); -} +::windows_core::imp::com_interface!(IBackgroundExecutionManagerStatics, IBackgroundExecutionManagerStatics_Vtbl, 0xe826ea58_66a9_4d41_83d4_b4c18c87b846); #[repr(C)] #[doc(hidden)] pub struct IBackgroundExecutionManagerStatics_Vtbl { @@ -210,32 +112,14 @@ pub struct IBackgroundExecutionManagerStatics_Vtbl { pub GetAccessStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut BackgroundAccessStatus) -> ::windows_core::HRESULT, pub GetAccessStatusForApplication: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, applicationid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut BackgroundAccessStatus) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundExecutionManagerStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBackgroundExecutionManagerStatics2 { - type Vtable = IBackgroundExecutionManagerStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundExecutionManagerStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x469b24ef_9bbb_4e18_999a_fd6512931be9); -} +::windows_core::imp::com_interface!(IBackgroundExecutionManagerStatics2, IBackgroundExecutionManagerStatics2_Vtbl, 0x469b24ef_9bbb_4e18_999a_fd6512931be9); #[repr(C)] #[doc(hidden)] pub struct IBackgroundExecutionManagerStatics2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub RequestAccessKindAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, requestedaccess: BackgroundAccessRequestKind, reason: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundExecutionManagerStatics3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBackgroundExecutionManagerStatics3 { - type Vtable = IBackgroundExecutionManagerStatics3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundExecutionManagerStatics3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x98a5d3f6_5a25_5b6c_9192_d77a43dfedc4); -} +::windows_core::imp::com_interface!(IBackgroundExecutionManagerStatics3, IBackgroundExecutionManagerStatics3_Vtbl, 0x98a5d3f6_5a25_5b6c_9192_d77a43dfedc4); #[repr(C)] #[doc(hidden)] pub struct IBackgroundExecutionManagerStatics3_Vtbl { @@ -244,44 +128,27 @@ pub struct IBackgroundExecutionManagerStatics3_Vtbl { pub GetAccessStatusForModernStandby: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut BackgroundAccessStatus) -> ::windows_core::HRESULT, pub GetAccessStatusForModernStandbyForApplication: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, applicationid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut BackgroundAccessStatus) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundTask(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBackgroundTask, IBackgroundTask_Vtbl, 0x7d13d534_fd12_43ce_8c22_ea1ff13c06df); +::windows_core::imp::interface_hierarchy!(IBackgroundTask, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IBackgroundTask { pub fn Run(&self, taskinstance: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).Run)(::windows_core::Interface::as_raw(this), taskinstance.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).Run)(::windows_core::Interface::as_raw(this), taskinstance.into_param().abi()).ok() } } } -::windows_core::imp::interface_hierarchy!(IBackgroundTask, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IBackgroundTask { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IBackgroundTask { - type Vtable = IBackgroundTask_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundTask { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7d13d534_fd12_43ce_8c22_ea1ff13c06df); -} #[repr(C)] #[doc(hidden)] pub struct IBackgroundTask_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Run: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, taskinstance: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundTaskBuilder(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBackgroundTaskBuilder { - type Vtable = IBackgroundTaskBuilder_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundTaskBuilder { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0351550e_3e64_4572_a93a_84075a37c917); -} +::windows_core::imp::com_interface!(IBackgroundTaskBuilder, IBackgroundTaskBuilder_Vtbl, 0x0351550e_3e64_4572_a93a_84075a37c917); #[repr(C)] #[doc(hidden)] pub struct IBackgroundTaskBuilder_Vtbl { @@ -294,16 +161,7 @@ pub struct IBackgroundTaskBuilder_Vtbl { pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Register: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundTaskBuilder2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBackgroundTaskBuilder2 { - type Vtable = IBackgroundTaskBuilder2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundTaskBuilder2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6ae7cfb1_104f_406d_8db6_844a570f42bb); -} +::windows_core::imp::com_interface!(IBackgroundTaskBuilder2, IBackgroundTaskBuilder2_Vtbl, 0x6ae7cfb1_104f_406d_8db6_844a570f42bb); #[repr(C)] #[doc(hidden)] pub struct IBackgroundTaskBuilder2_Vtbl { @@ -311,16 +169,7 @@ pub struct IBackgroundTaskBuilder2_Vtbl { pub SetCancelOnConditionLoss: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, pub CancelOnConditionLoss: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundTaskBuilder3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBackgroundTaskBuilder3 { - type Vtable = IBackgroundTaskBuilder3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundTaskBuilder3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x28c74f4a_8ba9_4c09_a24f_19683e2c924c); -} +::windows_core::imp::com_interface!(IBackgroundTaskBuilder3, IBackgroundTaskBuilder3_Vtbl, 0x28c74f4a_8ba9_4c09_a24f_19683e2c924c); #[repr(C)] #[doc(hidden)] pub struct IBackgroundTaskBuilder3_Vtbl { @@ -328,16 +177,7 @@ pub struct IBackgroundTaskBuilder3_Vtbl { pub SetIsNetworkRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, pub IsNetworkRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundTaskBuilder4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBackgroundTaskBuilder4 { - type Vtable = IBackgroundTaskBuilder4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundTaskBuilder4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4755e522_cba2_4e35_bd16_a6da7f1c19aa); -} +::windows_core::imp::com_interface!(IBackgroundTaskBuilder4, IBackgroundTaskBuilder4_Vtbl, 0x4755e522_cba2_4e35_bd16_a6da7f1c19aa); #[repr(C)] #[doc(hidden)] pub struct IBackgroundTaskBuilder4_Vtbl { @@ -345,32 +185,14 @@ pub struct IBackgroundTaskBuilder4_Vtbl { pub TaskGroup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetTaskGroup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundTaskBuilder5(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBackgroundTaskBuilder5 { - type Vtable = IBackgroundTaskBuilder5_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundTaskBuilder5 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x077103f6_99f5_4af4_bcad_4731d0330d43); -} +::windows_core::imp::com_interface!(IBackgroundTaskBuilder5, IBackgroundTaskBuilder5_Vtbl, 0x077103f6_99f5_4af4_bcad_4731d0330d43); #[repr(C)] #[doc(hidden)] pub struct IBackgroundTaskBuilder5_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub SetTaskEntryPointClsid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, taskentrypoint: ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundTaskCompletedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBackgroundTaskCompletedEventArgs { - type Vtable = IBackgroundTaskCompletedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundTaskCompletedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x565d25cf_f209_48f4_9967_2b184f7bfbf0); -} +::windows_core::imp::com_interface!(IBackgroundTaskCompletedEventArgs, IBackgroundTaskCompletedEventArgs_Vtbl, 0x565d25cf_f209_48f4_9967_2b184f7bfbf0); #[repr(C)] #[doc(hidden)] pub struct IBackgroundTaskCompletedEventArgs_Vtbl { @@ -378,25 +200,15 @@ pub struct IBackgroundTaskCompletedEventArgs_Vtbl { pub InstanceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, pub CheckResult: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundTaskDeferral(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBackgroundTaskDeferral { - type Vtable = IBackgroundTaskDeferral_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundTaskDeferral { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x93cc156d_af27_4dd3_846e_24ee40cadd25); -} +::windows_core::imp::com_interface!(IBackgroundTaskDeferral, IBackgroundTaskDeferral_Vtbl, 0x93cc156d_af27_4dd3_846e_24ee40cadd25); #[repr(C)] #[doc(hidden)] pub struct IBackgroundTaskDeferral_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Complete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundTaskInstance(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBackgroundTaskInstance, IBackgroundTaskInstance_Vtbl, 0x865bda7a_21d8_4573_8f32_928a1b0641f6); +::windows_core::imp::interface_hierarchy!(IBackgroundTaskInstance, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IBackgroundTaskInstance { pub fn InstanceId(&self) -> ::windows_core::Result<::windows_core::GUID> { let this = self; @@ -459,16 +271,9 @@ impl IBackgroundTaskInstance { } } } -::windows_core::imp::interface_hierarchy!(IBackgroundTaskInstance, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IBackgroundTaskInstance { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IBackgroundTaskInstance { - type Vtable = IBackgroundTaskInstance_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundTaskInstance { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x865bda7a_21d8_4573_8f32_928a1b0641f6); -} #[repr(C)] #[doc(hidden)] pub struct IBackgroundTaskInstance_Vtbl { @@ -483,9 +288,9 @@ pub struct IBackgroundTaskInstance_Vtbl { pub SuspendedCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundTaskInstance2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBackgroundTaskInstance2, IBackgroundTaskInstance2_Vtbl, 0x4f7d0176_0c76_4fb4_896d_5de1864122f6); +::windows_core::imp::interface_hierarchy!(IBackgroundTaskInstance2, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IBackgroundTaskInstance2, IBackgroundTaskInstance); impl IBackgroundTaskInstance2 { pub fn GetThrottleCount(&self, counter: BackgroundTaskThrottleCounter) -> ::windows_core::Result { let this = self; @@ -495,32 +300,32 @@ impl IBackgroundTaskInstance2 { } } pub fn InstanceId(&self) -> ::windows_core::Result<::windows_core::GUID> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).InstanceId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Task(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Task)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Progress(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + 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), &mut result__).from_abi(result__) } } pub fn SetProgress(&self, value: u32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetProgress)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn TriggerDetails(&self) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TriggerDetails)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -530,51 +335,43 @@ impl IBackgroundTaskInstance2 { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveCanceled(&self, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveCanceled)(::windows_core::Interface::as_raw(this), cookie).ok() } } pub fn SuspendedCount(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SuspendedCount)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetDeferral(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetDeferral)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(IBackgroundTaskInstance2, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IBackgroundTaskInstance2 {} impl ::windows_core::RuntimeType for IBackgroundTaskInstance2 { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IBackgroundTaskInstance2 { - type Vtable = IBackgroundTaskInstance2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundTaskInstance2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4f7d0176_0c76_4fb4_896d_5de1864122f6); -} #[repr(C)] #[doc(hidden)] pub struct IBackgroundTaskInstance2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetThrottleCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, counter: BackgroundTaskThrottleCounter, result__: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundTaskInstance4(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBackgroundTaskInstance4, IBackgroundTaskInstance4_Vtbl, 0x7f29f23c_aa04_4b08_97b0_06d874cdabf5); +::windows_core::imp::interface_hierarchy!(IBackgroundTaskInstance4, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IBackgroundTaskInstance4, IBackgroundTaskInstance); impl IBackgroundTaskInstance4 { #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] @@ -586,32 +383,32 @@ impl IBackgroundTaskInstance4 { } } pub fn InstanceId(&self) -> ::windows_core::Result<::windows_core::GUID> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).InstanceId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Task(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Task)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Progress(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + 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), &mut result__).from_abi(result__) } } pub fn SetProgress(&self, value: u32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetProgress)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn TriggerDetails(&self) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TriggerDetails)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -621,42 +418,34 @@ impl IBackgroundTaskInstance4 { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveCanceled(&self, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveCanceled)(::windows_core::Interface::as_raw(this), cookie).ok() } } pub fn SuspendedCount(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SuspendedCount)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetDeferral(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetDeferral)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(IBackgroundTaskInstance4, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IBackgroundTaskInstance4 {} impl ::windows_core::RuntimeType for IBackgroundTaskInstance4 { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IBackgroundTaskInstance4 { - type Vtable = IBackgroundTaskInstance4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundTaskInstance4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7f29f23c_aa04_4b08_97b0_06d874cdabf5); -} #[repr(C)] #[doc(hidden)] pub struct IBackgroundTaskInstance4_Vtbl { @@ -666,16 +455,7 @@ pub struct IBackgroundTaskInstance4_Vtbl { #[cfg(not(feature = "System"))] User: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundTaskProgressEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBackgroundTaskProgressEventArgs { - type Vtable = IBackgroundTaskProgressEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundTaskProgressEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfb1468ac_8332_4d0a_9532_03eae684da31); -} +::windows_core::imp::com_interface!(IBackgroundTaskProgressEventArgs, IBackgroundTaskProgressEventArgs_Vtbl, 0xfb1468ac_8332_4d0a_9532_03eae684da31); #[repr(C)] #[doc(hidden)] pub struct IBackgroundTaskProgressEventArgs_Vtbl { @@ -683,9 +463,8 @@ pub struct IBackgroundTaskProgressEventArgs_Vtbl { pub InstanceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, pub Progress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundTaskRegistration(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBackgroundTaskRegistration, IBackgroundTaskRegistration_Vtbl, 0x10654cc2_a26e_43bf_8c12_1fb40dbfbfa0); +::windows_core::imp::interface_hierarchy!(IBackgroundTaskRegistration, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IBackgroundTaskRegistration { pub fn TaskId(&self) -> ::windows_core::Result<::windows_core::GUID> { let this = self; @@ -734,16 +513,9 @@ impl IBackgroundTaskRegistration { unsafe { (::windows_core::Interface::vtable(this).Unregister)(::windows_core::Interface::as_raw(this), canceltask).ok() } } } -::windows_core::imp::interface_hierarchy!(IBackgroundTaskRegistration, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IBackgroundTaskRegistration { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IBackgroundTaskRegistration { - type Vtable = IBackgroundTaskRegistration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundTaskRegistration { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x10654cc2_a26e_43bf_8c12_1fb40dbfbfa0); -} #[repr(C)] #[doc(hidden)] pub struct IBackgroundTaskRegistration_Vtbl { @@ -756,9 +528,9 @@ pub struct IBackgroundTaskRegistration_Vtbl { pub RemoveCompleted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub Unregister: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, canceltask: bool) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundTaskRegistration2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBackgroundTaskRegistration2, IBackgroundTaskRegistration2_Vtbl, 0x6138c703_bb86_4112_afc3_7f939b166e3b); +::windows_core::imp::interface_hierarchy!(IBackgroundTaskRegistration2, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IBackgroundTaskRegistration2, IBackgroundTaskRegistration); impl IBackgroundTaskRegistration2 { pub fn Trigger(&self) -> ::windows_core::Result { let this = self; @@ -768,14 +540,14 @@ impl IBackgroundTaskRegistration2 { } } pub fn TaskId(&self) -> ::windows_core::Result<::windows_core::GUID> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TaskId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Name(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Name)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -785,55 +557,47 @@ impl IBackgroundTaskRegistration2 { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveProgress(&self, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveProgress)(::windows_core::Interface::as_raw(this), cookie).ok() } } pub fn Completed(&self, handler: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveCompleted(&self, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveCompleted)(::windows_core::Interface::as_raw(this), cookie).ok() } } pub fn Unregister(&self, canceltask: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Unregister)(::windows_core::Interface::as_raw(this), canceltask).ok() } } } -::windows_core::imp::interface_hierarchy!(IBackgroundTaskRegistration2, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IBackgroundTaskRegistration2 {} impl ::windows_core::RuntimeType for IBackgroundTaskRegistration2 { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IBackgroundTaskRegistration2 { - type Vtable = IBackgroundTaskRegistration2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundTaskRegistration2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6138c703_bb86_4112_afc3_7f939b166e3b); -} #[repr(C)] #[doc(hidden)] pub struct IBackgroundTaskRegistration2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Trigger: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundTaskRegistration3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBackgroundTaskRegistration3, IBackgroundTaskRegistration3_Vtbl, 0xfe338195_9423_4d8b_830d_b1dd2c7badd5); +::windows_core::imp::interface_hierarchy!(IBackgroundTaskRegistration3, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IBackgroundTaskRegistration3, IBackgroundTaskRegistration); impl IBackgroundTaskRegistration3 { pub fn TaskGroup(&self) -> ::windows_core::Result { let this = self; @@ -843,14 +607,14 @@ impl IBackgroundTaskRegistration3 { } } pub fn TaskId(&self) -> ::windows_core::Result<::windows_core::GUID> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TaskId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Name(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Name)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -860,62 +624,45 @@ impl IBackgroundTaskRegistration3 { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveProgress(&self, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveProgress)(::windows_core::Interface::as_raw(this), cookie).ok() } } pub fn Completed(&self, handler: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveCompleted(&self, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveCompleted)(::windows_core::Interface::as_raw(this), cookie).ok() } } pub fn Unregister(&self, canceltask: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Unregister)(::windows_core::Interface::as_raw(this), canceltask).ok() } } } -::windows_core::imp::interface_hierarchy!(IBackgroundTaskRegistration3, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IBackgroundTaskRegistration3 {} impl ::windows_core::RuntimeType for IBackgroundTaskRegistration3 { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IBackgroundTaskRegistration3 { - type Vtable = IBackgroundTaskRegistration3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundTaskRegistration3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfe338195_9423_4d8b_830d_b1dd2c7badd5); -} #[repr(C)] #[doc(hidden)] pub struct IBackgroundTaskRegistration3_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub TaskGroup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundTaskRegistrationGroup(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBackgroundTaskRegistrationGroup { - type Vtable = IBackgroundTaskRegistrationGroup_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundTaskRegistrationGroup { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2ab1919a_871b_4167_8a76_055cd67b5b23); -} +::windows_core::imp::com_interface!(IBackgroundTaskRegistrationGroup, IBackgroundTaskRegistrationGroup_Vtbl, 0x2ab1919a_871b_4167_8a76_055cd67b5b23); #[repr(C)] #[doc(hidden)] pub struct IBackgroundTaskRegistrationGroup_Vtbl { @@ -932,16 +679,7 @@ pub struct IBackgroundTaskRegistrationGroup_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] AllTasks: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundTaskRegistrationGroupFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBackgroundTaskRegistrationGroupFactory { - type Vtable = IBackgroundTaskRegistrationGroupFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundTaskRegistrationGroupFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x83d92b69_44cf_4631_9740_03c7d8741bc5); -} +::windows_core::imp::com_interface!(IBackgroundTaskRegistrationGroupFactory, IBackgroundTaskRegistrationGroupFactory_Vtbl, 0x83d92b69_44cf_4631_9740_03c7d8741bc5); #[repr(C)] #[doc(hidden)] pub struct IBackgroundTaskRegistrationGroupFactory_Vtbl { @@ -949,16 +687,7 @@ pub struct IBackgroundTaskRegistrationGroupFactory_Vtbl { pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateWithName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: ::std::mem::MaybeUninit<::windows_core::HSTRING>, name: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundTaskRegistrationStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBackgroundTaskRegistrationStatics { - type Vtable = IBackgroundTaskRegistrationStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundTaskRegistrationStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4c542f69_b000_42ba_a093_6a563c65e3f8); -} +::windows_core::imp::com_interface!(IBackgroundTaskRegistrationStatics, IBackgroundTaskRegistrationStatics_Vtbl, 0x4c542f69_b000_42ba_a093_6a563c65e3f8); #[repr(C)] #[doc(hidden)] pub struct IBackgroundTaskRegistrationStatics_Vtbl { @@ -968,16 +697,7 @@ pub struct IBackgroundTaskRegistrationStatics_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] AllTasks: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundTaskRegistrationStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBackgroundTaskRegistrationStatics2 { - type Vtable = IBackgroundTaskRegistrationStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundTaskRegistrationStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x174b671e_b20d_4fa9_ad9a_e93ad6c71e01); -} +::windows_core::imp::com_interface!(IBackgroundTaskRegistrationStatics2, IBackgroundTaskRegistrationStatics2_Vtbl, 0x174b671e_b20d_4fa9_ad9a_e93ad6c71e01); #[repr(C)] #[doc(hidden)] pub struct IBackgroundTaskRegistrationStatics2_Vtbl { @@ -988,51 +708,25 @@ pub struct IBackgroundTaskRegistrationStatics2_Vtbl { AllTaskGroups: usize, pub GetTaskGroup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, groupid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundTrigger(::windows_core::IUnknown); -impl IBackgroundTrigger {} +::windows_core::imp::com_interface!(IBackgroundTrigger, IBackgroundTrigger_Vtbl, 0x84b3a058_6027_4b87_9790_bdf3f757dbd7); ::windows_core::imp::interface_hierarchy!(IBackgroundTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); +impl IBackgroundTrigger {} impl ::windows_core::RuntimeType for IBackgroundTrigger { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IBackgroundTrigger { - type Vtable = IBackgroundTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundTrigger { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x84b3a058_6027_4b87_9790_bdf3f757dbd7); -} #[repr(C)] #[doc(hidden)] pub struct IBackgroundTrigger_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundWorkCostStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBackgroundWorkCostStatics { - type Vtable = IBackgroundWorkCostStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundWorkCostStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc740a662_c310_4b82_b3e3_3bcfb9e4c77d); -} +::windows_core::imp::com_interface!(IBackgroundWorkCostStatics, IBackgroundWorkCostStatics_Vtbl, 0xc740a662_c310_4b82_b3e3_3bcfb9e4c77d); #[repr(C)] #[doc(hidden)] pub struct IBackgroundWorkCostStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CurrentBackgroundWorkCost: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut BackgroundWorkCostValue) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBluetoothLEAdvertisementPublisherTrigger(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBluetoothLEAdvertisementPublisherTrigger { - type Vtable = IBluetoothLEAdvertisementPublisherTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBluetoothLEAdvertisementPublisherTrigger { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xab3e2612_25d3_48ae_8724_d81877ae6129); -} +::windows_core::imp::com_interface!(IBluetoothLEAdvertisementPublisherTrigger, IBluetoothLEAdvertisementPublisherTrigger_Vtbl, 0xab3e2612_25d3_48ae_8724_d81877ae6129); #[repr(C)] #[doc(hidden)] pub struct IBluetoothLEAdvertisementPublisherTrigger_Vtbl { @@ -1042,16 +736,7 @@ pub struct IBluetoothLEAdvertisementPublisherTrigger_Vtbl { #[cfg(not(feature = "Devices_Bluetooth_Advertisement"))] Advertisement: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBluetoothLEAdvertisementPublisherTrigger2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBluetoothLEAdvertisementPublisherTrigger2 { - type Vtable = IBluetoothLEAdvertisementPublisherTrigger2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBluetoothLEAdvertisementPublisherTrigger2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaa28d064_38f4_597d_b597_4e55588c6503); -} +::windows_core::imp::com_interface!(IBluetoothLEAdvertisementPublisherTrigger2, IBluetoothLEAdvertisementPublisherTrigger2_Vtbl, 0xaa28d064_38f4_597d_b597_4e55588c6503); #[repr(C)] #[doc(hidden)] pub struct IBluetoothLEAdvertisementPublisherTrigger2_Vtbl { @@ -1065,16 +750,7 @@ pub struct IBluetoothLEAdvertisementPublisherTrigger2_Vtbl { pub IncludeTransmitPowerLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetIncludeTransmitPowerLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBluetoothLEAdvertisementWatcherTrigger(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBluetoothLEAdvertisementWatcherTrigger { - type Vtable = IBluetoothLEAdvertisementWatcherTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBluetoothLEAdvertisementWatcherTrigger { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1aab1819_bce1_48eb_a827_59fb7cee52a6); -} +::windows_core::imp::com_interface!(IBluetoothLEAdvertisementWatcherTrigger, IBluetoothLEAdvertisementWatcherTrigger_Vtbl, 0x1aab1819_bce1_48eb_a827_59fb7cee52a6); #[repr(C)] #[doc(hidden)] pub struct IBluetoothLEAdvertisementWatcherTrigger_Vtbl { @@ -1100,16 +776,7 @@ pub struct IBluetoothLEAdvertisementWatcherTrigger_Vtbl { #[cfg(not(feature = "Devices_Bluetooth_Advertisement"))] SetAdvertisementFilter: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBluetoothLEAdvertisementWatcherTrigger2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBluetoothLEAdvertisementWatcherTrigger2 { - type Vtable = IBluetoothLEAdvertisementWatcherTrigger2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBluetoothLEAdvertisementWatcherTrigger2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x39b56799_eb39_5ab6_9932_aa9e4549604d); -} +::windows_core::imp::com_interface!(IBluetoothLEAdvertisementWatcherTrigger2, IBluetoothLEAdvertisementWatcherTrigger2_Vtbl, 0x39b56799_eb39_5ab6_9932_aa9e4549604d); #[repr(C)] #[doc(hidden)] pub struct IBluetoothLEAdvertisementWatcherTrigger2_Vtbl { @@ -1117,31 +784,13 @@ pub struct IBluetoothLEAdvertisementWatcherTrigger2_Vtbl { pub AllowExtendedAdvertisements: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetAllowExtendedAdvertisements: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICachedFileUpdaterTrigger(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICachedFileUpdaterTrigger { - type Vtable = ICachedFileUpdaterTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICachedFileUpdaterTrigger { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe21caeeb_32f2_4d31_b553_b9e01bde37e0); -} +::windows_core::imp::com_interface!(ICachedFileUpdaterTrigger, ICachedFileUpdaterTrigger_Vtbl, 0xe21caeeb_32f2_4d31_b553_b9e01bde37e0); #[repr(C)] #[doc(hidden)] pub struct ICachedFileUpdaterTrigger_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICachedFileUpdaterTriggerDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICachedFileUpdaterTriggerDetails { - type Vtable = ICachedFileUpdaterTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICachedFileUpdaterTriggerDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x71838c13_1314_47b4_9597_dc7e248c17cc); -} +::windows_core::imp::com_interface!(ICachedFileUpdaterTriggerDetails, ICachedFileUpdaterTriggerDetails_Vtbl, 0x71838c13_1314_47b4_9597_dc7e248c17cc); #[repr(C)] #[doc(hidden)] pub struct ICachedFileUpdaterTriggerDetails_Vtbl { @@ -1156,108 +805,45 @@ pub struct ICachedFileUpdaterTriggerDetails_Vtbl { UpdateRequest: usize, pub CanRequestUserInput: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IChatMessageNotificationTrigger(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IChatMessageNotificationTrigger { - type Vtable = IChatMessageNotificationTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IChatMessageNotificationTrigger { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x513b43bf_1d40_5c5d_78f5_c923fee3739e); -} +::windows_core::imp::com_interface!(IChatMessageNotificationTrigger, IChatMessageNotificationTrigger_Vtbl, 0x513b43bf_1d40_5c5d_78f5_c923fee3739e); #[repr(C)] #[doc(hidden)] pub struct IChatMessageNotificationTrigger_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IChatMessageReceivedNotificationTrigger(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IChatMessageReceivedNotificationTrigger { - type Vtable = IChatMessageReceivedNotificationTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IChatMessageReceivedNotificationTrigger { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3ea3760e_baf5_4077_88e9_060cf6f0c6d5); -} +::windows_core::imp::com_interface!(IChatMessageReceivedNotificationTrigger, IChatMessageReceivedNotificationTrigger_Vtbl, 0x3ea3760e_baf5_4077_88e9_060cf6f0c6d5); #[repr(C)] #[doc(hidden)] pub struct IChatMessageReceivedNotificationTrigger_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICommunicationBlockingAppSetAsActiveTrigger(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICommunicationBlockingAppSetAsActiveTrigger { - type Vtable = ICommunicationBlockingAppSetAsActiveTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICommunicationBlockingAppSetAsActiveTrigger { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfb91f28a_16a5_486d_974c_7835a8477be2); -} +::windows_core::imp::com_interface!(ICommunicationBlockingAppSetAsActiveTrigger, ICommunicationBlockingAppSetAsActiveTrigger_Vtbl, 0xfb91f28a_16a5_486d_974c_7835a8477be2); #[repr(C)] #[doc(hidden)] pub struct ICommunicationBlockingAppSetAsActiveTrigger_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactStoreNotificationTrigger(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactStoreNotificationTrigger { - type Vtable = IContactStoreNotificationTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactStoreNotificationTrigger { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc833419b_4705_4571_9a16_06b997bf9c96); -} +::windows_core::imp::com_interface!(IContactStoreNotificationTrigger, IContactStoreNotificationTrigger_Vtbl, 0xc833419b_4705_4571_9a16_06b997bf9c96); #[repr(C)] #[doc(hidden)] pub struct IContactStoreNotificationTrigger_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContentPrefetchTrigger(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContentPrefetchTrigger { - type Vtable = IContentPrefetchTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContentPrefetchTrigger { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x710627ee_04fa_440b_80c0_173202199e5d); -} +::windows_core::imp::com_interface!(IContentPrefetchTrigger, IContentPrefetchTrigger_Vtbl, 0x710627ee_04fa_440b_80c0_173202199e5d); #[repr(C)] #[doc(hidden)] pub struct IContentPrefetchTrigger_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub WaitInterval: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::TimeSpan) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContentPrefetchTriggerFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContentPrefetchTriggerFactory { - type Vtable = IContentPrefetchTriggerFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContentPrefetchTriggerFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc2643eda_8a03_409e_b8c4_88814c28ccb6); -} +::windows_core::imp::com_interface!(IContentPrefetchTriggerFactory, IContentPrefetchTriggerFactory_Vtbl, 0xc2643eda_8a03_409e_b8c4_88814c28ccb6); #[repr(C)] #[doc(hidden)] pub struct IContentPrefetchTriggerFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, waitinterval: super::super::Foundation::TimeSpan, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICustomSystemEventTrigger(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICustomSystemEventTrigger { - type Vtable = ICustomSystemEventTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICustomSystemEventTrigger { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf3596798_cf6b_4ef4_a0ca_29cf4a278c87); -} +::windows_core::imp::com_interface!(ICustomSystemEventTrigger, ICustomSystemEventTrigger_Vtbl, 0xf3596798_cf6b_4ef4_a0ca_29cf4a278c87); #[repr(C)] #[doc(hidden)] pub struct ICustomSystemEventTrigger_Vtbl { @@ -1265,32 +851,14 @@ pub struct ICustomSystemEventTrigger_Vtbl { pub TriggerId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Recurrence: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut CustomSystemEventTriggerRecurrence) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICustomSystemEventTriggerFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICustomSystemEventTriggerFactory { - type Vtable = ICustomSystemEventTriggerFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICustomSystemEventTriggerFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6bcb16c5_f2dc_41b2_9efd_b96bdcd13ced); -} +::windows_core::imp::com_interface!(ICustomSystemEventTriggerFactory, ICustomSystemEventTriggerFactory_Vtbl, 0x6bcb16c5_f2dc_41b2_9efd_b96bdcd13ced); #[repr(C)] #[doc(hidden)] pub struct ICustomSystemEventTriggerFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, triggerid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, recurrence: CustomSystemEventTriggerRecurrence, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDeviceConnectionChangeTrigger(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDeviceConnectionChangeTrigger { - type Vtable = IDeviceConnectionChangeTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDeviceConnectionChangeTrigger { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x90875e64_3cdd_4efb_ab1c_5b3b6a60ce34); -} +::windows_core::imp::com_interface!(IDeviceConnectionChangeTrigger, IDeviceConnectionChangeTrigger_Vtbl, 0x90875e64_3cdd_4efb_ab1c_5b3b6a60ce34); #[repr(C)] #[doc(hidden)] pub struct IDeviceConnectionChangeTrigger_Vtbl { @@ -1300,35 +868,20 @@ pub struct IDeviceConnectionChangeTrigger_Vtbl { pub MaintainConnection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetMaintainConnection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDeviceConnectionChangeTriggerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDeviceConnectionChangeTriggerStatics { - type Vtable = IDeviceConnectionChangeTriggerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDeviceConnectionChangeTriggerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc3ea246a_4efd_4498_aa60_a4e4e3b17ab9); -} +::windows_core::imp::com_interface!(IDeviceConnectionChangeTriggerStatics, IDeviceConnectionChangeTriggerStatics_Vtbl, 0xc3ea246a_4efd_4498_aa60_a4e4e3b17ab9); #[repr(C)] #[doc(hidden)] pub struct IDeviceConnectionChangeTriggerStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub FromIdAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, deviceid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDeviceManufacturerNotificationTrigger(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for IDeviceManufacturerNotificationTrigger { - type Vtable = IDeviceManufacturerNotificationTrigger_Vtbl; -} #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for IDeviceManufacturerNotificationTrigger { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x81278ab5_41ab_16da_86c2_7f7bf0912f5b); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + IDeviceManufacturerNotificationTrigger, + IDeviceManufacturerNotificationTrigger_Vtbl, + 0x81278ab5_41ab_16da_86c2_7f7bf0912f5b +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -1343,19 +896,13 @@ pub struct IDeviceManufacturerNotificationTrigger_Vtbl { #[cfg(not(feature = "deprecated"))] OneShot: usize, } -#[doc(hidden)] -#[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDeviceManufacturerNotificationTriggerFactory(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for IDeviceManufacturerNotificationTriggerFactory { - type Vtable = IDeviceManufacturerNotificationTriggerFactory_Vtbl; -} #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for IDeviceManufacturerNotificationTriggerFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7955de75_25bb_4153_a1a2_3029fcabb652); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + IDeviceManufacturerNotificationTriggerFactory, + IDeviceManufacturerNotificationTriggerFactory_Vtbl, + 0x7955de75_25bb_4153_a1a2_3029fcabb652 +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -1366,16 +913,7 @@ pub struct IDeviceManufacturerNotificationTriggerFactory_Vtbl { #[cfg(not(feature = "deprecated"))] Create: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDeviceServicingTrigger(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDeviceServicingTrigger { - type Vtable = IDeviceServicingTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDeviceServicingTrigger { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1ab217ad_6e34_49d3_9e6f_17f1b6dfa881); -} +::windows_core::imp::com_interface!(IDeviceServicingTrigger, IDeviceServicingTrigger_Vtbl, 0x1ab217ad_6e34_49d3_9e6f_17f1b6dfa881); #[repr(C)] #[doc(hidden)] pub struct IDeviceServicingTrigger_Vtbl { @@ -1383,16 +921,7 @@ pub struct IDeviceServicingTrigger_Vtbl { pub RequestAsyncSimple: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, deviceid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, expectedduration: super::super::Foundation::TimeSpan, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RequestAsyncWithArguments: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, deviceid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, expectedduration: super::super::Foundation::TimeSpan, arguments: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDeviceUseTrigger(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDeviceUseTrigger { - type Vtable = IDeviceUseTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDeviceUseTrigger { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0da68011_334f_4d57_b6ec_6dca64b412e4); -} +::windows_core::imp::com_interface!(IDeviceUseTrigger, IDeviceUseTrigger_Vtbl, 0x0da68011_334f_4d57_b6ec_6dca64b412e4); #[repr(C)] #[doc(hidden)] pub struct IDeviceUseTrigger_Vtbl { @@ -1400,46 +929,19 @@ pub struct IDeviceUseTrigger_Vtbl { pub RequestAsyncSimple: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, deviceid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RequestAsyncWithArguments: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, deviceid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, arguments: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDeviceWatcherTrigger(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDeviceWatcherTrigger { - type Vtable = IDeviceWatcherTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDeviceWatcherTrigger { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa4617fdd_8573_4260_befc_5bec89cb693d); -} +::windows_core::imp::com_interface!(IDeviceWatcherTrigger, IDeviceWatcherTrigger_Vtbl, 0xa4617fdd_8573_4260_befc_5bec89cb693d); #[repr(C)] #[doc(hidden)] pub struct IDeviceWatcherTrigger_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailStoreNotificationTrigger(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailStoreNotificationTrigger { - type Vtable = IEmailStoreNotificationTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailStoreNotificationTrigger { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x986d06da_47eb_4268_a4f2_f3f77188388a); -} +::windows_core::imp::com_interface!(IEmailStoreNotificationTrigger, IEmailStoreNotificationTrigger_Vtbl, 0x986d06da_47eb_4268_a4f2_f3f77188388a); #[repr(C)] #[doc(hidden)] pub struct IEmailStoreNotificationTrigger_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGattCharacteristicNotificationTrigger(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGattCharacteristicNotificationTrigger { - type Vtable = IGattCharacteristicNotificationTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGattCharacteristicNotificationTrigger { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe25f8fc8_0696_474f_a732_f292b0cebc5d); -} +::windows_core::imp::com_interface!(IGattCharacteristicNotificationTrigger, IGattCharacteristicNotificationTrigger_Vtbl, 0xe25f8fc8_0696_474f_a732_f292b0cebc5d); #[repr(C)] #[doc(hidden)] pub struct IGattCharacteristicNotificationTrigger_Vtbl { @@ -1449,16 +951,7 @@ pub struct IGattCharacteristicNotificationTrigger_Vtbl { #[cfg(not(feature = "Devices_Bluetooth_GenericAttributeProfile"))] Characteristic: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGattCharacteristicNotificationTrigger2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGattCharacteristicNotificationTrigger2 { - type Vtable = IGattCharacteristicNotificationTrigger2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGattCharacteristicNotificationTrigger2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9322a2c4_ae0e_42f2_b28c_f51372e69245); -} +::windows_core::imp::com_interface!(IGattCharacteristicNotificationTrigger2, IGattCharacteristicNotificationTrigger2_Vtbl, 0x9322a2c4_ae0e_42f2_b28c_f51372e69245); #[repr(C)] #[doc(hidden)] pub struct IGattCharacteristicNotificationTrigger2_Vtbl { @@ -1468,16 +961,7 @@ pub struct IGattCharacteristicNotificationTrigger2_Vtbl { #[cfg(not(feature = "Devices_Bluetooth_Background"))] EventTriggeringMode: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGattCharacteristicNotificationTriggerFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGattCharacteristicNotificationTriggerFactory { - type Vtable = IGattCharacteristicNotificationTriggerFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGattCharacteristicNotificationTriggerFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x57ba1995_b143_4575_9f6b_fd59d93ace1a); -} +::windows_core::imp::com_interface!(IGattCharacteristicNotificationTriggerFactory, IGattCharacteristicNotificationTriggerFactory_Vtbl, 0x57ba1995_b143_4575_9f6b_fd59d93ace1a); #[repr(C)] #[doc(hidden)] pub struct IGattCharacteristicNotificationTriggerFactory_Vtbl { @@ -1487,16 +971,7 @@ pub struct IGattCharacteristicNotificationTriggerFactory_Vtbl { #[cfg(not(feature = "Devices_Bluetooth_GenericAttributeProfile"))] Create: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGattCharacteristicNotificationTriggerFactory2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGattCharacteristicNotificationTriggerFactory2 { - type Vtable = IGattCharacteristicNotificationTriggerFactory2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGattCharacteristicNotificationTriggerFactory2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5998e91f_8a53_4e9f_a32c_23cd33664cee); -} +::windows_core::imp::com_interface!(IGattCharacteristicNotificationTriggerFactory2, IGattCharacteristicNotificationTriggerFactory2_Vtbl, 0x5998e91f_8a53_4e9f_a32c_23cd33664cee); #[repr(C)] #[doc(hidden)] pub struct IGattCharacteristicNotificationTriggerFactory2_Vtbl { @@ -1506,16 +981,7 @@ pub struct IGattCharacteristicNotificationTriggerFactory2_Vtbl { #[cfg(not(all(feature = "Devices_Bluetooth_Background", feature = "Devices_Bluetooth_GenericAttributeProfile")))] CreateWithEventTriggeringMode: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGattServiceProviderTrigger(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGattServiceProviderTrigger { - type Vtable = IGattServiceProviderTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGattServiceProviderTrigger { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xddc6a3e9_1557_4bd8_8542_468aa0c696f6); -} +::windows_core::imp::com_interface!(IGattServiceProviderTrigger, IGattServiceProviderTrigger_Vtbl, 0xddc6a3e9_1557_4bd8_8542_468aa0c696f6); #[repr(C)] #[doc(hidden)] pub struct IGattServiceProviderTrigger_Vtbl { @@ -1534,16 +1000,7 @@ pub struct IGattServiceProviderTrigger_Vtbl { #[cfg(not(feature = "Devices_Bluetooth_GenericAttributeProfile"))] AdvertisingParameters: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGattServiceProviderTriggerResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGattServiceProviderTriggerResult { - type Vtable = IGattServiceProviderTriggerResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGattServiceProviderTriggerResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3c4691b1_b198_4e84_bad4_cf4ad299ed3a); -} +::windows_core::imp::com_interface!(IGattServiceProviderTriggerResult, IGattServiceProviderTriggerResult_Vtbl, 0x3c4691b1_b198_4e84_bad4_cf4ad299ed3a); #[repr(C)] #[doc(hidden)] pub struct IGattServiceProviderTriggerResult_Vtbl { @@ -1554,32 +1011,14 @@ pub struct IGattServiceProviderTriggerResult_Vtbl { #[cfg(not(feature = "Devices_Bluetooth"))] Error: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGattServiceProviderTriggerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGattServiceProviderTriggerStatics { - type Vtable = IGattServiceProviderTriggerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGattServiceProviderTriggerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb413a36a_e294_4591_a5a6_64891a828153); -} +::windows_core::imp::com_interface!(IGattServiceProviderTriggerStatics, IGattServiceProviderTriggerStatics_Vtbl, 0xb413a36a_e294_4591_a5a6_64891a828153); #[repr(C)] #[doc(hidden)] pub struct IGattServiceProviderTriggerStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, triggerid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, serviceuuid: ::windows_core::GUID, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGeovisitTrigger(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGeovisitTrigger { - type Vtable = IGeovisitTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGeovisitTrigger { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4818edaa_04e1_4127_9a4c_19351b8a80a4); -} +::windows_core::imp::com_interface!(IGeovisitTrigger, IGeovisitTrigger_Vtbl, 0x4818edaa_04e1_4127_9a4c_19351b8a80a4); #[repr(C)] #[doc(hidden)] pub struct IGeovisitTrigger_Vtbl { @@ -1593,48 +1032,21 @@ pub struct IGeovisitTrigger_Vtbl { #[cfg(not(feature = "Devices_Geolocation"))] SetMonitoringScope: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILocationTrigger(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILocationTrigger { - type Vtable = ILocationTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILocationTrigger { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x47666a1c_6877_481e_8026_ff7e14a811a0); -} +::windows_core::imp::com_interface!(ILocationTrigger, ILocationTrigger_Vtbl, 0x47666a1c_6877_481e_8026_ff7e14a811a0); #[repr(C)] #[doc(hidden)] pub struct ILocationTrigger_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub TriggerType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut LocationTriggerType) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILocationTriggerFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILocationTriggerFactory { - type Vtable = ILocationTriggerFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILocationTriggerFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1106bb07_ff69_4e09_aa8b_1384ea475e98); -} +::windows_core::imp::com_interface!(ILocationTriggerFactory, ILocationTriggerFactory_Vtbl, 0x1106bb07_ff69_4e09_aa8b_1384ea475e98); #[repr(C)] #[doc(hidden)] pub struct ILocationTriggerFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, triggertype: LocationTriggerType, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMaintenanceTrigger(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMaintenanceTrigger { - type Vtable = IMaintenanceTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMaintenanceTrigger { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x68184c83_fc22_4ce5_841a_7239a9810047); -} +::windows_core::imp::com_interface!(IMaintenanceTrigger, IMaintenanceTrigger_Vtbl, 0x68184c83_fc22_4ce5_841a_7239a9810047); #[repr(C)] #[doc(hidden)] pub struct IMaintenanceTrigger_Vtbl { @@ -1642,32 +1054,14 @@ pub struct IMaintenanceTrigger_Vtbl { pub FreshnessTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, pub OneShot: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMaintenanceTriggerFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMaintenanceTriggerFactory { - type Vtable = IMaintenanceTriggerFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMaintenanceTriggerFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4b3ddb2e_97dd_4629_88b0_b06cf9482ae5); -} +::windows_core::imp::com_interface!(IMaintenanceTriggerFactory, IMaintenanceTriggerFactory_Vtbl, 0x4b3ddb2e_97dd_4629_88b0_b06cf9482ae5); #[repr(C)] #[doc(hidden)] pub struct IMaintenanceTriggerFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, freshnesstime: u32, oneshot: bool, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaProcessingTrigger(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaProcessingTrigger { - type Vtable = IMediaProcessingTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaProcessingTrigger { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9a95be65_8a52_4b30_9011_cf38040ea8b0); -} +::windows_core::imp::com_interface!(IMediaProcessingTrigger, IMediaProcessingTrigger_Vtbl, 0x9a95be65_8a52_4b30_9011_cf38040ea8b0); #[repr(C)] #[doc(hidden)] pub struct IMediaProcessingTrigger_Vtbl { @@ -1678,63 +1072,27 @@ pub struct IMediaProcessingTrigger_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] RequestAsyncWithArguments: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetworkOperatorHotspotAuthenticationTrigger(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INetworkOperatorHotspotAuthenticationTrigger { - type Vtable = INetworkOperatorHotspotAuthenticationTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INetworkOperatorHotspotAuthenticationTrigger { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe756c791_3001_4de5_83c7_de61d88831d0); -} +::windows_core::imp::com_interface!(INetworkOperatorHotspotAuthenticationTrigger, INetworkOperatorHotspotAuthenticationTrigger_Vtbl, 0xe756c791_3001_4de5_83c7_de61d88831d0); #[repr(C)] #[doc(hidden)] pub struct INetworkOperatorHotspotAuthenticationTrigger_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetworkOperatorNotificationTrigger(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INetworkOperatorNotificationTrigger { - type Vtable = INetworkOperatorNotificationTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INetworkOperatorNotificationTrigger { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x90089cc6_63cd_480c_95d1_6e6aef801e4a); -} +::windows_core::imp::com_interface!(INetworkOperatorNotificationTrigger, INetworkOperatorNotificationTrigger_Vtbl, 0x90089cc6_63cd_480c_95d1_6e6aef801e4a); #[repr(C)] #[doc(hidden)] pub struct INetworkOperatorNotificationTrigger_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub NetworkAccountId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetworkOperatorNotificationTriggerFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INetworkOperatorNotificationTriggerFactory { - type Vtable = INetworkOperatorNotificationTriggerFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INetworkOperatorNotificationTriggerFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0a223e00_27d7_4353_adb9_9265aaea579d); -} +::windows_core::imp::com_interface!(INetworkOperatorNotificationTriggerFactory, INetworkOperatorNotificationTriggerFactory_Vtbl, 0x0a223e00_27d7_4353_adb9_9265aaea579d); #[repr(C)] #[doc(hidden)] pub struct INetworkOperatorNotificationTriggerFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, networkaccountid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhoneTrigger(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhoneTrigger { - type Vtable = IPhoneTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhoneTrigger { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8dcfe99b_d4c5_49f1_b7d3_82e87a0e9dde); -} +::windows_core::imp::com_interface!(IPhoneTrigger, IPhoneTrigger_Vtbl, 0x8dcfe99b_d4c5_49f1_b7d3_82e87a0e9dde); #[repr(C)] #[doc(hidden)] pub struct IPhoneTrigger_Vtbl { @@ -1745,16 +1103,7 @@ pub struct IPhoneTrigger_Vtbl { #[cfg(not(feature = "ApplicationModel_Calls_Background"))] TriggerType: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhoneTriggerFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhoneTriggerFactory { - type Vtable = IPhoneTriggerFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhoneTriggerFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa0d93cda_5fc1_48fb_a546_32262040157b); -} +::windows_core::imp::com_interface!(IPhoneTriggerFactory, IPhoneTriggerFactory_Vtbl, 0xa0d93cda_5fc1_48fb_a546_32262040157b); #[repr(C)] #[doc(hidden)] pub struct IPhoneTriggerFactory_Vtbl { @@ -1764,47 +1113,20 @@ pub struct IPhoneTriggerFactory_Vtbl { #[cfg(not(feature = "ApplicationModel_Calls_Background"))] Create: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPushNotificationTriggerFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPushNotificationTriggerFactory { - type Vtable = IPushNotificationTriggerFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPushNotificationTriggerFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6dd8ed1b_458e_4fc2_bc2e_d5664f77ed19); -} +::windows_core::imp::com_interface!(IPushNotificationTriggerFactory, IPushNotificationTriggerFactory_Vtbl, 0x6dd8ed1b_458e_4fc2_bc2e_d5664f77ed19); #[repr(C)] #[doc(hidden)] pub struct IPushNotificationTriggerFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, applicationid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRcsEndUserMessageAvailableTrigger(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRcsEndUserMessageAvailableTrigger { - type Vtable = IRcsEndUserMessageAvailableTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRcsEndUserMessageAvailableTrigger { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x986d0d6a_b2f6_467f_a978_a44091c11a66); -} +::windows_core::imp::com_interface!(IRcsEndUserMessageAvailableTrigger, IRcsEndUserMessageAvailableTrigger_Vtbl, 0x986d0d6a_b2f6_467f_a978_a44091c11a66); #[repr(C)] #[doc(hidden)] pub struct IRcsEndUserMessageAvailableTrigger_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRfcommConnectionTrigger(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRfcommConnectionTrigger { - type Vtable = IRfcommConnectionTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRfcommConnectionTrigger { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe8c4cae2_0b53_4464_9394_fd875654de64); -} +::windows_core::imp::com_interface!(IRfcommConnectionTrigger, IRfcommConnectionTrigger_Vtbl, 0xe8c4cae2_0b53_4464_9394_fd875654de64); #[repr(C)] #[doc(hidden)] pub struct IRfcommConnectionTrigger_Vtbl { @@ -1836,50 +1158,26 @@ pub struct IRfcommConnectionTrigger_Vtbl { #[cfg(not(feature = "Networking"))] SetRemoteHostName: usize, } -#[doc(hidden)] -#[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISecondaryAuthenticationFactorAuthenticationTrigger(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for ISecondaryAuthenticationFactorAuthenticationTrigger { - type Vtable = ISecondaryAuthenticationFactorAuthenticationTrigger_Vtbl; -} #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for ISecondaryAuthenticationFactorAuthenticationTrigger { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf237f327_5181_4f24_96a7_700a4e5fac62); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + ISecondaryAuthenticationFactorAuthenticationTrigger, + ISecondaryAuthenticationFactorAuthenticationTrigger_Vtbl, + 0xf237f327_5181_4f24_96a7_700a4e5fac62 +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] pub struct ISecondaryAuthenticationFactorAuthenticationTrigger_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISensorDataThresholdTrigger(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISensorDataThresholdTrigger { - type Vtable = ISensorDataThresholdTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISensorDataThresholdTrigger { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5bc0f372_d48b_4b7f_abec_15f9bacc12e2); -} +::windows_core::imp::com_interface!(ISensorDataThresholdTrigger, ISensorDataThresholdTrigger_Vtbl, 0x5bc0f372_d48b_4b7f_abec_15f9bacc12e2); #[repr(C)] #[doc(hidden)] pub struct ISensorDataThresholdTrigger_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISensorDataThresholdTriggerFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISensorDataThresholdTriggerFactory { - type Vtable = ISensorDataThresholdTriggerFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISensorDataThresholdTriggerFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x921fe675_7df0_4da3_97b3_e544ee857fe6); -} +::windows_core::imp::com_interface!(ISensorDataThresholdTriggerFactory, ISensorDataThresholdTriggerFactory_Vtbl, 0x921fe675_7df0_4da3_97b3_e544ee857fe6); #[repr(C)] #[doc(hidden)] pub struct ISensorDataThresholdTriggerFactory_Vtbl { @@ -1889,16 +1187,7 @@ pub struct ISensorDataThresholdTriggerFactory_Vtbl { #[cfg(not(feature = "Devices_Sensors"))] Create: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmartCardTrigger(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISmartCardTrigger { - type Vtable = ISmartCardTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmartCardTrigger { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf53bc5ac_84ca_4972_8ce9_e58f97b37a50); -} +::windows_core::imp::com_interface!(ISmartCardTrigger, ISmartCardTrigger_Vtbl, 0xf53bc5ac_84ca_4972_8ce9_e58f97b37a50); #[repr(C)] #[doc(hidden)] pub struct ISmartCardTrigger_Vtbl { @@ -1908,16 +1197,7 @@ pub struct ISmartCardTrigger_Vtbl { #[cfg(not(feature = "Devices_SmartCards"))] TriggerType: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmartCardTriggerFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISmartCardTriggerFactory { - type Vtable = ISmartCardTriggerFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmartCardTriggerFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x63bf54c3_89c1_4e00_a9d3_97c629269dad); -} +::windows_core::imp::com_interface!(ISmartCardTriggerFactory, ISmartCardTriggerFactory_Vtbl, 0x63bf54c3_89c1_4e00_a9d3_97c629269dad); #[repr(C)] #[doc(hidden)] pub struct ISmartCardTriggerFactory_Vtbl { @@ -1927,16 +1207,7 @@ pub struct ISmartCardTriggerFactory_Vtbl { #[cfg(not(feature = "Devices_SmartCards"))] Create: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmsMessageReceivedTriggerFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISmsMessageReceivedTriggerFactory { - type Vtable = ISmsMessageReceivedTriggerFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmsMessageReceivedTriggerFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xea3ad8c8_6ba4_4ab2_8d21_bc6b09c77564); -} +::windows_core::imp::com_interface!(ISmsMessageReceivedTriggerFactory, ISmsMessageReceivedTriggerFactory_Vtbl, 0xea3ad8c8_6ba4_4ab2_8d21_bc6b09c77564); #[repr(C)] #[doc(hidden)] pub struct ISmsMessageReceivedTriggerFactory_Vtbl { @@ -1946,32 +1217,14 @@ pub struct ISmsMessageReceivedTriggerFactory_Vtbl { #[cfg(not(feature = "Devices_Sms"))] Create: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISocketActivityTrigger(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISocketActivityTrigger { - type Vtable = ISocketActivityTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISocketActivityTrigger { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa9bbf810_9dde_4f8a_83e3_b0e0e7a50d70); -} +::windows_core::imp::com_interface!(ISocketActivityTrigger, ISocketActivityTrigger_Vtbl, 0xa9bbf810_9dde_4f8a_83e3_b0e0e7a50d70); #[repr(C)] #[doc(hidden)] pub struct ISocketActivityTrigger_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub IsWakeFromLowPowerSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageLibraryChangeTrackerTriggerFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorageLibraryChangeTrackerTriggerFactory { - type Vtable = IStorageLibraryChangeTrackerTriggerFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageLibraryChangeTrackerTriggerFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1eb0ffd0_5a85_499e_a888_824607124f50); -} +::windows_core::imp::com_interface!(IStorageLibraryChangeTrackerTriggerFactory, IStorageLibraryChangeTrackerTriggerFactory_Vtbl, 0x1eb0ffd0_5a85_499e_a888_824607124f50); #[repr(C)] #[doc(hidden)] pub struct IStorageLibraryChangeTrackerTriggerFactory_Vtbl { @@ -1981,31 +1234,13 @@ pub struct IStorageLibraryChangeTrackerTriggerFactory_Vtbl { #[cfg(not(feature = "Storage"))] Create: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageLibraryContentChangedTrigger(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorageLibraryContentChangedTrigger { - type Vtable = IStorageLibraryContentChangedTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageLibraryContentChangedTrigger { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1637e0a7_829c_45bc_929b_a1e7ea78d89b); -} +::windows_core::imp::com_interface!(IStorageLibraryContentChangedTrigger, IStorageLibraryContentChangedTrigger_Vtbl, 0x1637e0a7_829c_45bc_929b_a1e7ea78d89b); #[repr(C)] #[doc(hidden)] pub struct IStorageLibraryContentChangedTrigger_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageLibraryContentChangedTriggerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorageLibraryContentChangedTriggerStatics { - type Vtable = IStorageLibraryContentChangedTriggerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageLibraryContentChangedTriggerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7f9f1b39_5f90_4e12_914e_a7d8e0bbfb18); -} +::windows_core::imp::com_interface!(IStorageLibraryContentChangedTriggerStatics, IStorageLibraryContentChangedTriggerStatics_Vtbl, 0x7f9f1b39_5f90_4e12_914e_a7d8e0bbfb18); #[repr(C)] #[doc(hidden)] pub struct IStorageLibraryContentChangedTriggerStatics_Vtbl { @@ -2019,48 +1254,21 @@ pub struct IStorageLibraryContentChangedTriggerStatics_Vtbl { #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage")))] CreateFromLibraries: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISystemCondition(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISystemCondition { - type Vtable = ISystemCondition_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISystemCondition { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc15fb476_89c5_420b_abd3_fb3030472128); -} +::windows_core::imp::com_interface!(ISystemCondition, ISystemCondition_Vtbl, 0xc15fb476_89c5_420b_abd3_fb3030472128); #[repr(C)] #[doc(hidden)] pub struct ISystemCondition_Vtbl { - pub base__: ::windows_core::IInspectable_Vtbl, - pub ConditionType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut SystemConditionType) -> ::windows_core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISystemConditionFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISystemConditionFactory { - type Vtable = ISystemConditionFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISystemConditionFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd269d1f1_05a7_49ae_87d7_16b2b8b9a553); + pub base__: ::windows_core::IInspectable_Vtbl, + pub ConditionType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut SystemConditionType) -> ::windows_core::HRESULT, } +::windows_core::imp::com_interface!(ISystemConditionFactory, ISystemConditionFactory_Vtbl, 0xd269d1f1_05a7_49ae_87d7_16b2b8b9a553); #[repr(C)] #[doc(hidden)] pub struct ISystemConditionFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, conditiontype: SystemConditionType, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISystemTrigger(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISystemTrigger { - type Vtable = ISystemTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISystemTrigger { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1d80c776_3748_4463_8d7e_276dc139ac1c); -} +::windows_core::imp::com_interface!(ISystemTrigger, ISystemTrigger_Vtbl, 0x1d80c776_3748_4463_8d7e_276dc139ac1c); #[repr(C)] #[doc(hidden)] pub struct ISystemTrigger_Vtbl { @@ -2068,32 +1276,14 @@ pub struct ISystemTrigger_Vtbl { pub OneShot: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub TriggerType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut SystemTriggerType) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISystemTriggerFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISystemTriggerFactory { - type Vtable = ISystemTriggerFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISystemTriggerFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe80423d4_8791_4579_8126_87ec8aaa407a); -} +::windows_core::imp::com_interface!(ISystemTriggerFactory, ISystemTriggerFactory_Vtbl, 0xe80423d4_8791_4579_8126_87ec8aaa407a); #[repr(C)] #[doc(hidden)] pub struct ISystemTriggerFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, triggertype: SystemTriggerType, oneshot: bool, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITimeTrigger(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITimeTrigger { - type Vtable = ITimeTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITimeTrigger { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x656e5556_0b2a_4377_ba70_3b45a935547f); -} +::windows_core::imp::com_interface!(ITimeTrigger, ITimeTrigger_Vtbl, 0x656e5556_0b2a_4377_ba70_3b45a935547f); #[repr(C)] #[doc(hidden)] pub struct ITimeTrigger_Vtbl { @@ -2101,64 +1291,28 @@ pub struct ITimeTrigger_Vtbl { pub FreshnessTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, pub OneShot: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITimeTriggerFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITimeTriggerFactory { - type Vtable = ITimeTriggerFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITimeTriggerFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x38c682fe_9b54_45e6_b2f3_269b87a6f734); -} +::windows_core::imp::com_interface!(ITimeTriggerFactory, ITimeTriggerFactory_Vtbl, 0x38c682fe_9b54_45e6_b2f3_269b87a6f734); #[repr(C)] #[doc(hidden)] pub struct ITimeTriggerFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, freshnesstime: u32, oneshot: bool, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IToastNotificationActionTriggerFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IToastNotificationActionTriggerFactory { - type Vtable = IToastNotificationActionTriggerFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IToastNotificationActionTriggerFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb09dfc27_6480_4349_8125_97b3efaa0a3a); -} +::windows_core::imp::com_interface!(IToastNotificationActionTriggerFactory, IToastNotificationActionTriggerFactory_Vtbl, 0xb09dfc27_6480_4349_8125_97b3efaa0a3a); #[repr(C)] #[doc(hidden)] pub struct IToastNotificationActionTriggerFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, applicationid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IToastNotificationHistoryChangedTriggerFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IToastNotificationHistoryChangedTriggerFactory { - type Vtable = IToastNotificationHistoryChangedTriggerFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IToastNotificationHistoryChangedTriggerFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x81c6faad_8797_4785_81b4_b0cccb73d1d9); -} +::windows_core::imp::com_interface!(IToastNotificationHistoryChangedTriggerFactory, IToastNotificationHistoryChangedTriggerFactory_Vtbl, 0x81c6faad_8797_4785_81b4_b0cccb73d1d9); #[repr(C)] #[doc(hidden)] pub struct IToastNotificationHistoryChangedTriggerFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, applicationid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserNotificationChangedTriggerFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserNotificationChangedTriggerFactory { - type Vtable = IUserNotificationChangedTriggerFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserNotificationChangedTriggerFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcad4436c_69ab_4e18_a48a_5ed2ac435957); -} +::windows_core::imp::com_interface!(IUserNotificationChangedTriggerFactory, IUserNotificationChangedTriggerFactory_Vtbl, 0xcad4436c_69ab_4e18_a48a_5ed2ac435957); #[repr(C)] #[doc(hidden)] pub struct IUserNotificationChangedTriggerFactory_Vtbl { @@ -2171,6 +1325,8 @@ pub struct IUserNotificationChangedTriggerFactory_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ActivitySensorTrigger(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ActivitySensorTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ActivitySensorTrigger, IBackgroundTrigger); impl ActivitySensorTrigger { #[doc = "Required features: `\"Devices_Sensors\"`, `\"Foundation_Collections\"`"] #[cfg(all(feature = "Devices_Sensors", feature = "Foundation_Collections"))] @@ -2221,15 +1377,11 @@ impl ::windows_core::RuntimeType for ActivitySensorTrigger { } unsafe impl ::windows_core::Interface for ActivitySensorTrigger { type Vtable = IActivitySensorTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ActivitySensorTrigger { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ActivitySensorTrigger { const NAME: &'static str = "Windows.ApplicationModel.Background.ActivitySensorTrigger"; } -::windows_core::imp::interface_hierarchy!(ActivitySensorTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ActivitySensorTrigger {} unsafe impl ::core::marker::Send for ActivitySensorTrigger {} unsafe impl ::core::marker::Sync for ActivitySensorTrigger {} pub struct AlarmApplicationManager; @@ -2258,6 +1410,8 @@ impl ::windows_core::RuntimeName for AlarmApplicationManager { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppBroadcastTrigger(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppBroadcastTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(AppBroadcastTrigger, IBackgroundTrigger); impl AppBroadcastTrigger { pub fn SetProviderInfo(&self, value: P0) -> ::windows_core::Result<()> where @@ -2290,20 +1444,17 @@ impl ::windows_core::RuntimeType for AppBroadcastTrigger { } unsafe impl ::windows_core::Interface for AppBroadcastTrigger { type Vtable = IAppBroadcastTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppBroadcastTrigger { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppBroadcastTrigger { const NAME: &'static str = "Windows.ApplicationModel.Background.AppBroadcastTrigger"; } -::windows_core::imp::interface_hierarchy!(AppBroadcastTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for AppBroadcastTrigger {} unsafe impl ::core::marker::Send for AppBroadcastTrigger {} unsafe impl ::core::marker::Sync for AppBroadcastTrigger {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppBroadcastTriggerProviderInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppBroadcastTriggerProviderInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppBroadcastTriggerProviderInfo { pub fn SetDisplayNameResource(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { let this = self; @@ -2377,19 +1528,18 @@ impl ::windows_core::RuntimeType for AppBroadcastTriggerProviderInfo { } unsafe impl ::windows_core::Interface for AppBroadcastTriggerProviderInfo { type Vtable = IAppBroadcastTriggerProviderInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppBroadcastTriggerProviderInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppBroadcastTriggerProviderInfo { const NAME: &'static str = "Windows.ApplicationModel.Background.AppBroadcastTriggerProviderInfo"; } -::windows_core::imp::interface_hierarchy!(AppBroadcastTriggerProviderInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppBroadcastTriggerProviderInfo {} unsafe impl ::core::marker::Sync for AppBroadcastTriggerProviderInfo {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ApplicationTrigger(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ApplicationTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ApplicationTrigger, IBackgroundTrigger); impl ApplicationTrigger { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2423,20 +1573,17 @@ impl ::windows_core::RuntimeType for ApplicationTrigger { } unsafe impl ::windows_core::Interface for ApplicationTrigger { type Vtable = IApplicationTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ApplicationTrigger { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ApplicationTrigger { const NAME: &'static str = "Windows.ApplicationModel.Background.ApplicationTrigger"; } -::windows_core::imp::interface_hierarchy!(ApplicationTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ApplicationTrigger {} unsafe impl ::core::marker::Send for ApplicationTrigger {} unsafe impl ::core::marker::Sync for ApplicationTrigger {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ApplicationTriggerDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ApplicationTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ApplicationTriggerDetails { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -2453,19 +1600,18 @@ impl ::windows_core::RuntimeType for ApplicationTriggerDetails { } unsafe impl ::windows_core::Interface for ApplicationTriggerDetails { type Vtable = IApplicationTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ApplicationTriggerDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ApplicationTriggerDetails { const NAME: &'static str = "Windows.ApplicationModel.Background.ApplicationTriggerDetails"; } -::windows_core::imp::interface_hierarchy!(ApplicationTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ApplicationTriggerDetails {} unsafe impl ::core::marker::Sync for ApplicationTriggerDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppointmentStoreNotificationTrigger(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppointmentStoreNotificationTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(AppointmentStoreNotificationTrigger, IBackgroundTrigger); impl AppointmentStoreNotificationTrigger { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2480,15 +1626,11 @@ impl ::windows_core::RuntimeType for AppointmentStoreNotificationTrigger { } unsafe impl ::windows_core::Interface for AppointmentStoreNotificationTrigger { type Vtable = IAppointmentStoreNotificationTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppointmentStoreNotificationTrigger { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppointmentStoreNotificationTrigger { const NAME: &'static str = "Windows.ApplicationModel.Background.AppointmentStoreNotificationTrigger"; } -::windows_core::imp::interface_hierarchy!(AppointmentStoreNotificationTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for AppointmentStoreNotificationTrigger {} unsafe impl ::core::marker::Send for AppointmentStoreNotificationTrigger {} unsafe impl ::core::marker::Sync for AppointmentStoreNotificationTrigger {} pub struct BackgroundExecutionManager; @@ -2569,6 +1711,7 @@ impl ::windows_core::RuntimeName for BackgroundExecutionManager { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BackgroundTaskBuilder(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BackgroundTaskBuilder, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BackgroundTaskBuilder { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2590,17 +1733,17 @@ impl BackgroundTaskBuilder { } pub fn SetTrigger(&self, trigger: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetTrigger)(::windows_core::Interface::as_raw(this), trigger.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetTrigger)(::windows_core::Interface::as_raw(this), trigger.into_param().abi()).ok() } } pub fn AddCondition(&self, condition: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).AddCondition)(::windows_core::Interface::as_raw(this), condition.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).AddCondition)(::windows_core::Interface::as_raw(this), condition.into_param().abi()).ok() } } pub fn SetName(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { let this = self; @@ -2621,29 +1764,29 @@ impl BackgroundTaskBuilder { } } pub fn SetCancelOnConditionLoss(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCancelOnConditionLoss)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn CancelOnConditionLoss(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CancelOnConditionLoss)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsNetworkRequested(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsNetworkRequested)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsNetworkRequested(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsNetworkRequested)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TaskGroup(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TaskGroup)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2653,11 +1796,11 @@ impl BackgroundTaskBuilder { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn SetTaskEntryPointClsid(&self, taskentrypoint: ::windows_core::GUID) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetTaskEntryPointClsid)(::windows_core::Interface::as_raw(this), taskentrypoint).ok() } } } @@ -2666,17 +1809,15 @@ impl ::windows_core::RuntimeType for BackgroundTaskBuilder { } unsafe impl ::windows_core::Interface for BackgroundTaskBuilder { type Vtable = IBackgroundTaskBuilder_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BackgroundTaskBuilder { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BackgroundTaskBuilder { const NAME: &'static str = "Windows.ApplicationModel.Background.BackgroundTaskBuilder"; } -::windows_core::imp::interface_hierarchy!(BackgroundTaskBuilder, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BackgroundTaskCompletedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BackgroundTaskCompletedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BackgroundTaskCompletedEventArgs { pub fn InstanceId(&self) -> ::windows_core::Result<::windows_core::GUID> { let this = self; @@ -2695,19 +1836,17 @@ impl ::windows_core::RuntimeType for BackgroundTaskCompletedEventArgs { } unsafe impl ::windows_core::Interface for BackgroundTaskCompletedEventArgs { type Vtable = IBackgroundTaskCompletedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BackgroundTaskCompletedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BackgroundTaskCompletedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Background.BackgroundTaskCompletedEventArgs"; } -::windows_core::imp::interface_hierarchy!(BackgroundTaskCompletedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BackgroundTaskCompletedEventArgs {} unsafe impl ::core::marker::Sync for BackgroundTaskCompletedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BackgroundTaskDeferral(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BackgroundTaskDeferral, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BackgroundTaskDeferral { pub fn Complete(&self) -> ::windows_core::Result<()> { let this = self; @@ -2719,19 +1858,17 @@ impl ::windows_core::RuntimeType for BackgroundTaskDeferral { } unsafe impl ::windows_core::Interface for BackgroundTaskDeferral { type Vtable = IBackgroundTaskDeferral_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BackgroundTaskDeferral { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BackgroundTaskDeferral { const NAME: &'static str = "Windows.ApplicationModel.Background.BackgroundTaskDeferral"; } -::windows_core::imp::interface_hierarchy!(BackgroundTaskDeferral, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BackgroundTaskDeferral {} unsafe impl ::core::marker::Sync for BackgroundTaskDeferral {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BackgroundTaskProgressEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BackgroundTaskProgressEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BackgroundTaskProgressEventArgs { pub fn InstanceId(&self) -> ::windows_core::Result<::windows_core::GUID> { let this = self; @@ -2753,19 +1890,18 @@ impl ::windows_core::RuntimeType for BackgroundTaskProgressEventArgs { } unsafe impl ::windows_core::Interface for BackgroundTaskProgressEventArgs { type Vtable = IBackgroundTaskProgressEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BackgroundTaskProgressEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BackgroundTaskProgressEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Background.BackgroundTaskProgressEventArgs"; } -::windows_core::imp::interface_hierarchy!(BackgroundTaskProgressEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BackgroundTaskProgressEventArgs {} unsafe impl ::core::marker::Sync for BackgroundTaskProgressEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BackgroundTaskRegistration(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BackgroundTaskRegistration, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(BackgroundTaskRegistration, IBackgroundTaskRegistration, IBackgroundTaskRegistration2, IBackgroundTaskRegistration3); impl BackgroundTaskRegistration { pub fn TaskId(&self) -> ::windows_core::Result<::windows_core::GUID> { let this = self; @@ -2814,14 +1950,14 @@ impl BackgroundTaskRegistration { unsafe { (::windows_core::Interface::vtable(this).Unregister)(::windows_core::Interface::as_raw(this), canceltask).ok() } } pub fn Trigger(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Trigger)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TaskGroup(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TaskGroup)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2865,22 +2001,17 @@ impl ::windows_core::RuntimeType for BackgroundTaskRegistration { } unsafe impl ::windows_core::Interface for BackgroundTaskRegistration { type Vtable = IBackgroundTaskRegistration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BackgroundTaskRegistration { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BackgroundTaskRegistration { const NAME: &'static str = "Windows.ApplicationModel.Background.BackgroundTaskRegistration"; } -::windows_core::imp::interface_hierarchy!(BackgroundTaskRegistration, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for BackgroundTaskRegistration {} -impl ::windows_core::CanTryInto for BackgroundTaskRegistration {} -impl ::windows_core::CanTryInto for BackgroundTaskRegistration {} unsafe impl ::core::marker::Send for BackgroundTaskRegistration {} unsafe impl ::core::marker::Sync for BackgroundTaskRegistration {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BackgroundTaskRegistrationGroup(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BackgroundTaskRegistrationGroup, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BackgroundTaskRegistrationGroup { pub fn Id(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -2944,14 +2075,11 @@ impl ::windows_core::RuntimeType for BackgroundTaskRegistrationGroup { } unsafe impl ::windows_core::Interface for BackgroundTaskRegistrationGroup { type Vtable = IBackgroundTaskRegistrationGroup_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BackgroundTaskRegistrationGroup { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BackgroundTaskRegistrationGroup { const NAME: &'static str = "Windows.ApplicationModel.Background.BackgroundTaskRegistrationGroup"; } -::windows_core::imp::interface_hierarchy!(BackgroundTaskRegistrationGroup, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BackgroundTaskRegistrationGroup {} unsafe impl ::core::marker::Sync for BackgroundTaskRegistrationGroup {} pub struct BackgroundWorkCost; @@ -2974,6 +2102,8 @@ impl ::windows_core::RuntimeName for BackgroundWorkCost { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BluetoothLEAdvertisementPublisherTrigger(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BluetoothLEAdvertisementPublisherTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(BluetoothLEAdvertisementPublisherTrigger, IBackgroundTrigger); impl BluetoothLEAdvertisementPublisherTrigger { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2992,7 +2122,7 @@ impl BluetoothLEAdvertisementPublisherTrigger { } } pub fn PreferredTransmitPowerLevelInDBm(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreferredTransmitPowerLevelInDBm)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3000,42 +2130,42 @@ impl BluetoothLEAdvertisementPublisherTrigger { } pub fn SetPreferredTransmitPowerLevelInDBm(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetPreferredTransmitPowerLevelInDBm)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn UseExtendedFormat(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).UseExtendedFormat)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetUseExtendedFormat(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetUseExtendedFormat)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsAnonymous(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsAnonymous)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsAnonymous(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsAnonymous)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IncludeTransmitPowerLevel(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IncludeTransmitPowerLevel)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIncludeTransmitPowerLevel(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIncludeTransmitPowerLevel)(::windows_core::Interface::as_raw(this), value).ok() } } } @@ -3044,20 +2174,18 @@ impl ::windows_core::RuntimeType for BluetoothLEAdvertisementPublisherTrigger { } unsafe impl ::windows_core::Interface for BluetoothLEAdvertisementPublisherTrigger { type Vtable = IBluetoothLEAdvertisementPublisherTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BluetoothLEAdvertisementPublisherTrigger { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BluetoothLEAdvertisementPublisherTrigger { const NAME: &'static str = "Windows.ApplicationModel.Background.BluetoothLEAdvertisementPublisherTrigger"; } -::windows_core::imp::interface_hierarchy!(BluetoothLEAdvertisementPublisherTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for BluetoothLEAdvertisementPublisherTrigger {} unsafe impl ::core::marker::Send for BluetoothLEAdvertisementPublisherTrigger {} unsafe impl ::core::marker::Sync for BluetoothLEAdvertisementPublisherTrigger {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BluetoothLEAdvertisementWatcherTrigger(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BluetoothLEAdvertisementWatcherTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(BluetoothLEAdvertisementWatcherTrigger, IBackgroundTrigger); impl BluetoothLEAdvertisementWatcherTrigger { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -3131,14 +2259,14 @@ impl BluetoothLEAdvertisementWatcherTrigger { unsafe { (::windows_core::Interface::vtable(this).SetAdvertisementFilter)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn AllowExtendedAdvertisements(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AllowExtendedAdvertisements)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetAllowExtendedAdvertisements(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetAllowExtendedAdvertisements)(::windows_core::Interface::as_raw(this), value).ok() } } } @@ -3147,20 +2275,18 @@ impl ::windows_core::RuntimeType for BluetoothLEAdvertisementWatcherTrigger { } unsafe impl ::windows_core::Interface for BluetoothLEAdvertisementWatcherTrigger { type Vtable = IBluetoothLEAdvertisementWatcherTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BluetoothLEAdvertisementWatcherTrigger { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BluetoothLEAdvertisementWatcherTrigger { const NAME: &'static str = "Windows.ApplicationModel.Background.BluetoothLEAdvertisementWatcherTrigger"; } -::windows_core::imp::interface_hierarchy!(BluetoothLEAdvertisementWatcherTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for BluetoothLEAdvertisementWatcherTrigger {} unsafe impl ::core::marker::Send for BluetoothLEAdvertisementWatcherTrigger {} unsafe impl ::core::marker::Sync for BluetoothLEAdvertisementWatcherTrigger {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CachedFileUpdaterTrigger(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CachedFileUpdaterTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(CachedFileUpdaterTrigger, IBackgroundTrigger); impl CachedFileUpdaterTrigger { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -3175,20 +2301,17 @@ impl ::windows_core::RuntimeType for CachedFileUpdaterTrigger { } unsafe impl ::windows_core::Interface for CachedFileUpdaterTrigger { type Vtable = ICachedFileUpdaterTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CachedFileUpdaterTrigger { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CachedFileUpdaterTrigger { const NAME: &'static str = "Windows.ApplicationModel.Background.CachedFileUpdaterTrigger"; } -::windows_core::imp::interface_hierarchy!(CachedFileUpdaterTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CachedFileUpdaterTrigger {} unsafe impl ::core::marker::Send for CachedFileUpdaterTrigger {} unsafe impl ::core::marker::Sync for CachedFileUpdaterTrigger {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CachedFileUpdaterTriggerDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CachedFileUpdaterTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CachedFileUpdaterTriggerDetails { #[doc = "Required features: `\"Storage_Provider\"`"] #[cfg(feature = "Storage_Provider")] @@ -3221,19 +2344,18 @@ impl ::windows_core::RuntimeType for CachedFileUpdaterTriggerDetails { } unsafe impl ::windows_core::Interface for CachedFileUpdaterTriggerDetails { type Vtable = ICachedFileUpdaterTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CachedFileUpdaterTriggerDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CachedFileUpdaterTriggerDetails { const NAME: &'static str = "Windows.ApplicationModel.Background.CachedFileUpdaterTriggerDetails"; } -::windows_core::imp::interface_hierarchy!(CachedFileUpdaterTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CachedFileUpdaterTriggerDetails {} unsafe impl ::core::marker::Sync for CachedFileUpdaterTriggerDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ChatMessageNotificationTrigger(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ChatMessageNotificationTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ChatMessageNotificationTrigger, IBackgroundTrigger); impl ChatMessageNotificationTrigger { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -3248,20 +2370,18 @@ impl ::windows_core::RuntimeType for ChatMessageNotificationTrigger { } unsafe impl ::windows_core::Interface for ChatMessageNotificationTrigger { type Vtable = IChatMessageNotificationTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ChatMessageNotificationTrigger { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ChatMessageNotificationTrigger { const NAME: &'static str = "Windows.ApplicationModel.Background.ChatMessageNotificationTrigger"; } -::windows_core::imp::interface_hierarchy!(ChatMessageNotificationTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ChatMessageNotificationTrigger {} unsafe impl ::core::marker::Send for ChatMessageNotificationTrigger {} unsafe impl ::core::marker::Sync for ChatMessageNotificationTrigger {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ChatMessageReceivedNotificationTrigger(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ChatMessageReceivedNotificationTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ChatMessageReceivedNotificationTrigger, IBackgroundTrigger); impl ChatMessageReceivedNotificationTrigger { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -3276,20 +2396,18 @@ impl ::windows_core::RuntimeType for ChatMessageReceivedNotificationTrigger { } unsafe impl ::windows_core::Interface for ChatMessageReceivedNotificationTrigger { type Vtable = IChatMessageReceivedNotificationTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ChatMessageReceivedNotificationTrigger { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ChatMessageReceivedNotificationTrigger { const NAME: &'static str = "Windows.ApplicationModel.Background.ChatMessageReceivedNotificationTrigger"; } -::windows_core::imp::interface_hierarchy!(ChatMessageReceivedNotificationTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ChatMessageReceivedNotificationTrigger {} unsafe impl ::core::marker::Send for ChatMessageReceivedNotificationTrigger {} unsafe impl ::core::marker::Sync for ChatMessageReceivedNotificationTrigger {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CommunicationBlockingAppSetAsActiveTrigger(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CommunicationBlockingAppSetAsActiveTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(CommunicationBlockingAppSetAsActiveTrigger, IBackgroundTrigger); impl CommunicationBlockingAppSetAsActiveTrigger { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -3304,20 +2422,18 @@ impl ::windows_core::RuntimeType for CommunicationBlockingAppSetAsActiveTrigger } unsafe impl ::windows_core::Interface for CommunicationBlockingAppSetAsActiveTrigger { type Vtable = ICommunicationBlockingAppSetAsActiveTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CommunicationBlockingAppSetAsActiveTrigger { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CommunicationBlockingAppSetAsActiveTrigger { const NAME: &'static str = "Windows.ApplicationModel.Background.CommunicationBlockingAppSetAsActiveTrigger"; } -::windows_core::imp::interface_hierarchy!(CommunicationBlockingAppSetAsActiveTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CommunicationBlockingAppSetAsActiveTrigger {} unsafe impl ::core::marker::Send for CommunicationBlockingAppSetAsActiveTrigger {} unsafe impl ::core::marker::Sync for CommunicationBlockingAppSetAsActiveTrigger {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContactStoreNotificationTrigger(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContactStoreNotificationTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ContactStoreNotificationTrigger, IBackgroundTrigger); impl ContactStoreNotificationTrigger { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -3332,20 +2448,18 @@ impl ::windows_core::RuntimeType for ContactStoreNotificationTrigger { } unsafe impl ::windows_core::Interface for ContactStoreNotificationTrigger { type Vtable = IContactStoreNotificationTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContactStoreNotificationTrigger { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContactStoreNotificationTrigger { const NAME: &'static str = "Windows.ApplicationModel.Background.ContactStoreNotificationTrigger"; } -::windows_core::imp::interface_hierarchy!(ContactStoreNotificationTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ContactStoreNotificationTrigger {} unsafe impl ::core::marker::Send for ContactStoreNotificationTrigger {} unsafe impl ::core::marker::Sync for ContactStoreNotificationTrigger {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContentPrefetchTrigger(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContentPrefetchTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ContentPrefetchTrigger, IBackgroundTrigger); impl ContentPrefetchTrigger { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -3378,18 +2492,16 @@ impl ::windows_core::RuntimeType for ContentPrefetchTrigger { } unsafe impl ::windows_core::Interface for ContentPrefetchTrigger { type Vtable = IContentPrefetchTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContentPrefetchTrigger { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContentPrefetchTrigger { const NAME: &'static str = "Windows.ApplicationModel.Background.ContentPrefetchTrigger"; } -::windows_core::imp::interface_hierarchy!(ContentPrefetchTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ContentPrefetchTrigger {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ConversationalAgentTrigger(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ConversationalAgentTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ConversationalAgentTrigger, IBackgroundTrigger); impl ConversationalAgentTrigger { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -3404,18 +2516,16 @@ impl ::windows_core::RuntimeType for ConversationalAgentTrigger { } unsafe impl ::windows_core::Interface for ConversationalAgentTrigger { type Vtable = IBackgroundTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ConversationalAgentTrigger { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ConversationalAgentTrigger { const NAME: &'static str = "Windows.ApplicationModel.Background.ConversationalAgentTrigger"; } -::windows_core::imp::interface_hierarchy!(ConversationalAgentTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ConversationalAgentTrigger {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CustomSystemEventTrigger(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CustomSystemEventTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(CustomSystemEventTrigger, IBackgroundTrigger); impl CustomSystemEventTrigger { pub fn TriggerId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -3448,18 +2558,16 @@ impl ::windows_core::RuntimeType for CustomSystemEventTrigger { } unsafe impl ::windows_core::Interface for CustomSystemEventTrigger { type Vtable = ICustomSystemEventTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CustomSystemEventTrigger { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CustomSystemEventTrigger { const NAME: &'static str = "Windows.ApplicationModel.Background.CustomSystemEventTrigger"; } -::windows_core::imp::interface_hierarchy!(CustomSystemEventTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CustomSystemEventTrigger {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DeviceConnectionChangeTrigger(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DeviceConnectionChangeTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(DeviceConnectionChangeTrigger, IBackgroundTrigger); impl DeviceConnectionChangeTrigger { pub fn DeviceId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -3503,15 +2611,11 @@ impl ::windows_core::RuntimeType for DeviceConnectionChangeTrigger { } unsafe impl ::windows_core::Interface for DeviceConnectionChangeTrigger { type Vtable = IDeviceConnectionChangeTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DeviceConnectionChangeTrigger { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DeviceConnectionChangeTrigger { const NAME: &'static str = "Windows.ApplicationModel.Background.DeviceConnectionChangeTrigger"; } -::windows_core::imp::interface_hierarchy!(DeviceConnectionChangeTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for DeviceConnectionChangeTrigger {} unsafe impl ::core::marker::Send for DeviceConnectionChangeTrigger {} unsafe impl ::core::marker::Sync for DeviceConnectionChangeTrigger {} #[doc = "Required features: `\"deprecated\"`"] @@ -3520,6 +2624,10 @@ unsafe impl ::core::marker::Sync for DeviceConnectionChangeTrigger {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DeviceManufacturerNotificationTrigger(::windows_core::IUnknown); #[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(DeviceManufacturerNotificationTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "deprecated")] +::windows_core::imp::required_hierarchy!(DeviceManufacturerNotificationTrigger, IBackgroundTrigger); +#[cfg(feature = "deprecated")] impl DeviceManufacturerNotificationTrigger { #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] @@ -3561,22 +2669,17 @@ impl ::windows_core::RuntimeType for DeviceManufacturerNotificationTrigger { #[cfg(feature = "deprecated")] unsafe impl ::windows_core::Interface for DeviceManufacturerNotificationTrigger { type Vtable = IDeviceManufacturerNotificationTrigger_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for DeviceManufacturerNotificationTrigger { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "deprecated")] impl ::windows_core::RuntimeName for DeviceManufacturerNotificationTrigger { const NAME: &'static str = "Windows.ApplicationModel.Background.DeviceManufacturerNotificationTrigger"; } -#[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(DeviceManufacturerNotificationTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] -impl ::windows_core::CanTryInto for DeviceManufacturerNotificationTrigger {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DeviceServicingTrigger(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DeviceServicingTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(DeviceServicingTrigger, IBackgroundTrigger); impl DeviceServicingTrigger { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -3605,20 +2708,18 @@ impl ::windows_core::RuntimeType for DeviceServicingTrigger { } unsafe impl ::windows_core::Interface for DeviceServicingTrigger { type Vtable = IDeviceServicingTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DeviceServicingTrigger { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DeviceServicingTrigger { const NAME: &'static str = "Windows.ApplicationModel.Background.DeviceServicingTrigger"; } -::windows_core::imp::interface_hierarchy!(DeviceServicingTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for DeviceServicingTrigger {} unsafe impl ::core::marker::Send for DeviceServicingTrigger {} unsafe impl ::core::marker::Sync for DeviceServicingTrigger {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DeviceUseTrigger(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DeviceUseTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(DeviceUseTrigger, IBackgroundTrigger); impl DeviceUseTrigger { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -3647,38 +2748,34 @@ impl ::windows_core::RuntimeType for DeviceUseTrigger { } unsafe impl ::windows_core::Interface for DeviceUseTrigger { type Vtable = IDeviceUseTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DeviceUseTrigger { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DeviceUseTrigger { const NAME: &'static str = "Windows.ApplicationModel.Background.DeviceUseTrigger"; } -::windows_core::imp::interface_hierarchy!(DeviceUseTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for DeviceUseTrigger {} unsafe impl ::core::marker::Send for DeviceUseTrigger {} unsafe impl ::core::marker::Sync for DeviceUseTrigger {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DeviceWatcherTrigger(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DeviceWatcherTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(DeviceWatcherTrigger, IBackgroundTrigger); impl DeviceWatcherTrigger {} impl ::windows_core::RuntimeType for DeviceWatcherTrigger { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_class::(); } unsafe impl ::windows_core::Interface for DeviceWatcherTrigger { type Vtable = IDeviceWatcherTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DeviceWatcherTrigger { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DeviceWatcherTrigger { const NAME: &'static str = "Windows.ApplicationModel.Background.DeviceWatcherTrigger"; } -::windows_core::imp::interface_hierarchy!(DeviceWatcherTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for DeviceWatcherTrigger {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EmailStoreNotificationTrigger(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EmailStoreNotificationTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(EmailStoreNotificationTrigger, IBackgroundTrigger); impl EmailStoreNotificationTrigger { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -3693,20 +2790,18 @@ impl ::windows_core::RuntimeType for EmailStoreNotificationTrigger { } unsafe impl ::windows_core::Interface for EmailStoreNotificationTrigger { type Vtable = IEmailStoreNotificationTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EmailStoreNotificationTrigger { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EmailStoreNotificationTrigger { const NAME: &'static str = "Windows.ApplicationModel.Background.EmailStoreNotificationTrigger"; } -::windows_core::imp::interface_hierarchy!(EmailStoreNotificationTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for EmailStoreNotificationTrigger {} unsafe impl ::core::marker::Send for EmailStoreNotificationTrigger {} unsafe impl ::core::marker::Sync for EmailStoreNotificationTrigger {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GattCharacteristicNotificationTrigger(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GattCharacteristicNotificationTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(GattCharacteristicNotificationTrigger, IBackgroundTrigger); impl GattCharacteristicNotificationTrigger { #[doc = "Required features: `\"Devices_Bluetooth_GenericAttributeProfile\"`"] #[cfg(feature = "Devices_Bluetooth_GenericAttributeProfile")] @@ -3720,7 +2815,7 @@ impl GattCharacteristicNotificationTrigger { #[doc = "Required features: `\"Devices_Bluetooth_Background\"`"] #[cfg(feature = "Devices_Bluetooth_Background")] pub fn EventTriggeringMode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).EventTriggeringMode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3764,20 +2859,18 @@ impl ::windows_core::RuntimeType for GattCharacteristicNotificationTrigger { } unsafe impl ::windows_core::Interface for GattCharacteristicNotificationTrigger { type Vtable = IGattCharacteristicNotificationTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GattCharacteristicNotificationTrigger { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GattCharacteristicNotificationTrigger { const NAME: &'static str = "Windows.ApplicationModel.Background.GattCharacteristicNotificationTrigger"; } -::windows_core::imp::interface_hierarchy!(GattCharacteristicNotificationTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for GattCharacteristicNotificationTrigger {} unsafe impl ::core::marker::Send for GattCharacteristicNotificationTrigger {} unsafe impl ::core::marker::Sync for GattCharacteristicNotificationTrigger {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GattServiceProviderTrigger(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GattServiceProviderTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(GattServiceProviderTrigger, IBackgroundTrigger); impl GattServiceProviderTrigger { pub fn TriggerId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -3830,20 +2923,17 @@ impl ::windows_core::RuntimeType for GattServiceProviderTrigger { } unsafe impl ::windows_core::Interface for GattServiceProviderTrigger { type Vtable = IGattServiceProviderTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GattServiceProviderTrigger { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GattServiceProviderTrigger { const NAME: &'static str = "Windows.ApplicationModel.Background.GattServiceProviderTrigger"; } -::windows_core::imp::interface_hierarchy!(GattServiceProviderTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for GattServiceProviderTrigger {} unsafe impl ::core::marker::Send for GattServiceProviderTrigger {} unsafe impl ::core::marker::Sync for GattServiceProviderTrigger {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GattServiceProviderTriggerResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GattServiceProviderTriggerResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GattServiceProviderTriggerResult { pub fn Trigger(&self) -> ::windows_core::Result { let this = self; @@ -3867,19 +2957,18 @@ impl ::windows_core::RuntimeType for GattServiceProviderTriggerResult { } unsafe impl ::windows_core::Interface for GattServiceProviderTriggerResult { type Vtable = IGattServiceProviderTriggerResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GattServiceProviderTriggerResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GattServiceProviderTriggerResult { const NAME: &'static str = "Windows.ApplicationModel.Background.GattServiceProviderTriggerResult"; } -::windows_core::imp::interface_hierarchy!(GattServiceProviderTriggerResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GattServiceProviderTriggerResult {} unsafe impl ::core::marker::Sync for GattServiceProviderTriggerResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GeovisitTrigger(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GeovisitTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(GeovisitTrigger, IBackgroundTrigger); impl GeovisitTrigger { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -3909,20 +2998,18 @@ impl ::windows_core::RuntimeType for GeovisitTrigger { } unsafe impl ::windows_core::Interface for GeovisitTrigger { type Vtable = IGeovisitTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GeovisitTrigger { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GeovisitTrigger { const NAME: &'static str = "Windows.ApplicationModel.Background.GeovisitTrigger"; } -::windows_core::imp::interface_hierarchy!(GeovisitTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for GeovisitTrigger {} unsafe impl ::core::marker::Send for GeovisitTrigger {} unsafe impl ::core::marker::Sync for GeovisitTrigger {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LocationTrigger(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LocationTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(LocationTrigger, IBackgroundTrigger); impl LocationTrigger { pub fn TriggerType(&self) -> ::windows_core::Result { let this = self; @@ -3948,20 +3035,18 @@ impl ::windows_core::RuntimeType for LocationTrigger { } unsafe impl ::windows_core::Interface for LocationTrigger { type Vtable = ILocationTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LocationTrigger { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LocationTrigger { const NAME: &'static str = "Windows.ApplicationModel.Background.LocationTrigger"; } -::windows_core::imp::interface_hierarchy!(LocationTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for LocationTrigger {} unsafe impl ::core::marker::Send for LocationTrigger {} unsafe impl ::core::marker::Sync for LocationTrigger {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MaintenanceTrigger(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MaintenanceTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(MaintenanceTrigger, IBackgroundTrigger); impl MaintenanceTrigger { pub fn FreshnessTime(&self) -> ::windows_core::Result { let this = self; @@ -3994,18 +3079,16 @@ impl ::windows_core::RuntimeType for MaintenanceTrigger { } unsafe impl ::windows_core::Interface for MaintenanceTrigger { type Vtable = IMaintenanceTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MaintenanceTrigger { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MaintenanceTrigger { const NAME: &'static str = "Windows.ApplicationModel.Background.MaintenanceTrigger"; } -::windows_core::imp::interface_hierarchy!(MaintenanceTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for MaintenanceTrigger {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaProcessingTrigger(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaProcessingTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(MediaProcessingTrigger, IBackgroundTrigger); impl MediaProcessingTrigger { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -4039,18 +3122,16 @@ impl ::windows_core::RuntimeType for MediaProcessingTrigger { } unsafe impl ::windows_core::Interface for MediaProcessingTrigger { type Vtable = IMediaProcessingTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaProcessingTrigger { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaProcessingTrigger { const NAME: &'static str = "Windows.ApplicationModel.Background.MediaProcessingTrigger"; } -::windows_core::imp::interface_hierarchy!(MediaProcessingTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for MediaProcessingTrigger {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MobileBroadbandDeviceServiceNotificationTrigger(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MobileBroadbandDeviceServiceNotificationTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(MobileBroadbandDeviceServiceNotificationTrigger, IBackgroundTrigger); impl MobileBroadbandDeviceServiceNotificationTrigger { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -4065,20 +3146,18 @@ impl ::windows_core::RuntimeType for MobileBroadbandDeviceServiceNotificationTri } unsafe impl ::windows_core::Interface for MobileBroadbandDeviceServiceNotificationTrigger { type Vtable = IBackgroundTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MobileBroadbandDeviceServiceNotificationTrigger { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MobileBroadbandDeviceServiceNotificationTrigger { const NAME: &'static str = "Windows.ApplicationModel.Background.MobileBroadbandDeviceServiceNotificationTrigger"; } -::windows_core::imp::interface_hierarchy!(MobileBroadbandDeviceServiceNotificationTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for MobileBroadbandDeviceServiceNotificationTrigger {} unsafe impl ::core::marker::Send for MobileBroadbandDeviceServiceNotificationTrigger {} unsafe impl ::core::marker::Sync for MobileBroadbandDeviceServiceNotificationTrigger {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MobileBroadbandPcoDataChangeTrigger(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MobileBroadbandPcoDataChangeTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(MobileBroadbandPcoDataChangeTrigger, IBackgroundTrigger); impl MobileBroadbandPcoDataChangeTrigger { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -4093,20 +3172,18 @@ impl ::windows_core::RuntimeType for MobileBroadbandPcoDataChangeTrigger { } unsafe impl ::windows_core::Interface for MobileBroadbandPcoDataChangeTrigger { type Vtable = IBackgroundTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MobileBroadbandPcoDataChangeTrigger { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MobileBroadbandPcoDataChangeTrigger { const NAME: &'static str = "Windows.ApplicationModel.Background.MobileBroadbandPcoDataChangeTrigger"; } -::windows_core::imp::interface_hierarchy!(MobileBroadbandPcoDataChangeTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for MobileBroadbandPcoDataChangeTrigger {} unsafe impl ::core::marker::Send for MobileBroadbandPcoDataChangeTrigger {} unsafe impl ::core::marker::Sync for MobileBroadbandPcoDataChangeTrigger {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MobileBroadbandPinLockStateChangeTrigger(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MobileBroadbandPinLockStateChangeTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(MobileBroadbandPinLockStateChangeTrigger, IBackgroundTrigger); impl MobileBroadbandPinLockStateChangeTrigger { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -4121,20 +3198,18 @@ impl ::windows_core::RuntimeType for MobileBroadbandPinLockStateChangeTrigger { } unsafe impl ::windows_core::Interface for MobileBroadbandPinLockStateChangeTrigger { type Vtable = IBackgroundTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MobileBroadbandPinLockStateChangeTrigger { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MobileBroadbandPinLockStateChangeTrigger { const NAME: &'static str = "Windows.ApplicationModel.Background.MobileBroadbandPinLockStateChangeTrigger"; } -::windows_core::imp::interface_hierarchy!(MobileBroadbandPinLockStateChangeTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for MobileBroadbandPinLockStateChangeTrigger {} unsafe impl ::core::marker::Send for MobileBroadbandPinLockStateChangeTrigger {} unsafe impl ::core::marker::Sync for MobileBroadbandPinLockStateChangeTrigger {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MobileBroadbandRadioStateChangeTrigger(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MobileBroadbandRadioStateChangeTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(MobileBroadbandRadioStateChangeTrigger, IBackgroundTrigger); impl MobileBroadbandRadioStateChangeTrigger { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -4149,20 +3224,18 @@ impl ::windows_core::RuntimeType for MobileBroadbandRadioStateChangeTrigger { } unsafe impl ::windows_core::Interface for MobileBroadbandRadioStateChangeTrigger { type Vtable = IBackgroundTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MobileBroadbandRadioStateChangeTrigger { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MobileBroadbandRadioStateChangeTrigger { const NAME: &'static str = "Windows.ApplicationModel.Background.MobileBroadbandRadioStateChangeTrigger"; } -::windows_core::imp::interface_hierarchy!(MobileBroadbandRadioStateChangeTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for MobileBroadbandRadioStateChangeTrigger {} unsafe impl ::core::marker::Send for MobileBroadbandRadioStateChangeTrigger {} unsafe impl ::core::marker::Sync for MobileBroadbandRadioStateChangeTrigger {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MobileBroadbandRegistrationStateChangeTrigger(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MobileBroadbandRegistrationStateChangeTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(MobileBroadbandRegistrationStateChangeTrigger, IBackgroundTrigger); impl MobileBroadbandRegistrationStateChangeTrigger { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -4177,20 +3250,18 @@ impl ::windows_core::RuntimeType for MobileBroadbandRegistrationStateChangeTrigg } unsafe impl ::windows_core::Interface for MobileBroadbandRegistrationStateChangeTrigger { type Vtable = IBackgroundTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MobileBroadbandRegistrationStateChangeTrigger { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MobileBroadbandRegistrationStateChangeTrigger { const NAME: &'static str = "Windows.ApplicationModel.Background.MobileBroadbandRegistrationStateChangeTrigger"; } -::windows_core::imp::interface_hierarchy!(MobileBroadbandRegistrationStateChangeTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for MobileBroadbandRegistrationStateChangeTrigger {} unsafe impl ::core::marker::Send for MobileBroadbandRegistrationStateChangeTrigger {} unsafe impl ::core::marker::Sync for MobileBroadbandRegistrationStateChangeTrigger {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct NetworkOperatorDataUsageTrigger(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(NetworkOperatorDataUsageTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(NetworkOperatorDataUsageTrigger, IBackgroundTrigger); impl NetworkOperatorDataUsageTrigger { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -4205,20 +3276,18 @@ impl ::windows_core::RuntimeType for NetworkOperatorDataUsageTrigger { } unsafe impl ::windows_core::Interface for NetworkOperatorDataUsageTrigger { type Vtable = IBackgroundTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for NetworkOperatorDataUsageTrigger { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for NetworkOperatorDataUsageTrigger { const NAME: &'static str = "Windows.ApplicationModel.Background.NetworkOperatorDataUsageTrigger"; } -::windows_core::imp::interface_hierarchy!(NetworkOperatorDataUsageTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for NetworkOperatorDataUsageTrigger {} unsafe impl ::core::marker::Send for NetworkOperatorDataUsageTrigger {} unsafe impl ::core::marker::Sync for NetworkOperatorDataUsageTrigger {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct NetworkOperatorHotspotAuthenticationTrigger(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(NetworkOperatorHotspotAuthenticationTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(NetworkOperatorHotspotAuthenticationTrigger, IBackgroundTrigger); impl NetworkOperatorHotspotAuthenticationTrigger { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -4233,18 +3302,16 @@ impl ::windows_core::RuntimeType for NetworkOperatorHotspotAuthenticationTrigger } unsafe impl ::windows_core::Interface for NetworkOperatorHotspotAuthenticationTrigger { type Vtable = INetworkOperatorHotspotAuthenticationTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for NetworkOperatorHotspotAuthenticationTrigger { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for NetworkOperatorHotspotAuthenticationTrigger { const NAME: &'static str = "Windows.ApplicationModel.Background.NetworkOperatorHotspotAuthenticationTrigger"; } -::windows_core::imp::interface_hierarchy!(NetworkOperatorHotspotAuthenticationTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for NetworkOperatorHotspotAuthenticationTrigger {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct NetworkOperatorNotificationTrigger(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(NetworkOperatorNotificationTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(NetworkOperatorNotificationTrigger, IBackgroundTrigger); impl NetworkOperatorNotificationTrigger { pub fn NetworkAccountId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -4270,18 +3337,16 @@ impl ::windows_core::RuntimeType for NetworkOperatorNotificationTrigger { } unsafe impl ::windows_core::Interface for NetworkOperatorNotificationTrigger { type Vtable = INetworkOperatorNotificationTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for NetworkOperatorNotificationTrigger { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for NetworkOperatorNotificationTrigger { const NAME: &'static str = "Windows.ApplicationModel.Background.NetworkOperatorNotificationTrigger"; } -::windows_core::imp::interface_hierarchy!(NetworkOperatorNotificationTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for NetworkOperatorNotificationTrigger {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PaymentAppCanMakePaymentTrigger(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PaymentAppCanMakePaymentTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(PaymentAppCanMakePaymentTrigger, IBackgroundTrigger); impl PaymentAppCanMakePaymentTrigger { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -4296,20 +3361,18 @@ impl ::windows_core::RuntimeType for PaymentAppCanMakePaymentTrigger { } unsafe impl ::windows_core::Interface for PaymentAppCanMakePaymentTrigger { type Vtable = IBackgroundTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PaymentAppCanMakePaymentTrigger { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PaymentAppCanMakePaymentTrigger { const NAME: &'static str = "Windows.ApplicationModel.Background.PaymentAppCanMakePaymentTrigger"; } -::windows_core::imp::interface_hierarchy!(PaymentAppCanMakePaymentTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for PaymentAppCanMakePaymentTrigger {} unsafe impl ::core::marker::Send for PaymentAppCanMakePaymentTrigger {} unsafe impl ::core::marker::Sync for PaymentAppCanMakePaymentTrigger {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PhoneTrigger(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PhoneTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(PhoneTrigger, IBackgroundTrigger); impl PhoneTrigger { pub fn OneShot(&self) -> ::windows_core::Result { let this = self; @@ -4346,20 +3409,18 @@ impl ::windows_core::RuntimeType for PhoneTrigger { } unsafe impl ::windows_core::Interface for PhoneTrigger { type Vtable = IPhoneTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PhoneTrigger { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PhoneTrigger { const NAME: &'static str = "Windows.ApplicationModel.Background.PhoneTrigger"; } -::windows_core::imp::interface_hierarchy!(PhoneTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for PhoneTrigger {} unsafe impl ::core::marker::Send for PhoneTrigger {} unsafe impl ::core::marker::Sync for PhoneTrigger {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PushNotificationTrigger(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PushNotificationTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(PushNotificationTrigger, IBackgroundTrigger); impl PushNotificationTrigger { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -4385,20 +3446,18 @@ impl ::windows_core::RuntimeType for PushNotificationTrigger { } unsafe impl ::windows_core::Interface for PushNotificationTrigger { type Vtable = IBackgroundTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PushNotificationTrigger { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PushNotificationTrigger { const NAME: &'static str = "Windows.ApplicationModel.Background.PushNotificationTrigger"; } -::windows_core::imp::interface_hierarchy!(PushNotificationTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for PushNotificationTrigger {} unsafe impl ::core::marker::Send for PushNotificationTrigger {} unsafe impl ::core::marker::Sync for PushNotificationTrigger {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RcsEndUserMessageAvailableTrigger(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RcsEndUserMessageAvailableTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(RcsEndUserMessageAvailableTrigger, IBackgroundTrigger); impl RcsEndUserMessageAvailableTrigger { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -4413,20 +3472,18 @@ impl ::windows_core::RuntimeType for RcsEndUserMessageAvailableTrigger { } unsafe impl ::windows_core::Interface for RcsEndUserMessageAvailableTrigger { type Vtable = IRcsEndUserMessageAvailableTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RcsEndUserMessageAvailableTrigger { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RcsEndUserMessageAvailableTrigger { const NAME: &'static str = "Windows.ApplicationModel.Background.RcsEndUserMessageAvailableTrigger"; } -::windows_core::imp::interface_hierarchy!(RcsEndUserMessageAvailableTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for RcsEndUserMessageAvailableTrigger {} unsafe impl ::core::marker::Send for RcsEndUserMessageAvailableTrigger {} unsafe impl ::core::marker::Sync for RcsEndUserMessageAvailableTrigger {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RfcommConnectionTrigger(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RfcommConnectionTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(RfcommConnectionTrigger, IBackgroundTrigger); impl RfcommConnectionTrigger { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -4503,15 +3560,11 @@ impl ::windows_core::RuntimeType for RfcommConnectionTrigger { } unsafe impl ::windows_core::Interface for RfcommConnectionTrigger { type Vtable = IRfcommConnectionTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RfcommConnectionTrigger { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RfcommConnectionTrigger { const NAME: &'static str = "Windows.ApplicationModel.Background.RfcommConnectionTrigger"; } -::windows_core::imp::interface_hierarchy!(RfcommConnectionTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for RfcommConnectionTrigger {} unsafe impl ::core::marker::Send for RfcommConnectionTrigger {} unsafe impl ::core::marker::Sync for RfcommConnectionTrigger {} #[doc = "Required features: `\"deprecated\"`"] @@ -4520,6 +3573,10 @@ unsafe impl ::core::marker::Sync for RfcommConnectionTrigger {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SecondaryAuthenticationFactorAuthenticationTrigger(::windows_core::IUnknown); #[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(SecondaryAuthenticationFactorAuthenticationTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "deprecated")] +::windows_core::imp::required_hierarchy!(SecondaryAuthenticationFactorAuthenticationTrigger, IBackgroundTrigger); +#[cfg(feature = "deprecated")] impl SecondaryAuthenticationFactorAuthenticationTrigger { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -4536,32 +3593,27 @@ impl ::windows_core::RuntimeType for SecondaryAuthenticationFactorAuthentication #[cfg(feature = "deprecated")] unsafe impl ::windows_core::Interface for SecondaryAuthenticationFactorAuthenticationTrigger { type Vtable = ISecondaryAuthenticationFactorAuthenticationTrigger_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for SecondaryAuthenticationFactorAuthenticationTrigger { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "deprecated")] impl ::windows_core::RuntimeName for SecondaryAuthenticationFactorAuthenticationTrigger { const NAME: &'static str = "Windows.ApplicationModel.Background.SecondaryAuthenticationFactorAuthenticationTrigger"; } -#[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(SecondaryAuthenticationFactorAuthenticationTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] -impl ::windows_core::CanTryInto for SecondaryAuthenticationFactorAuthenticationTrigger {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SensorDataThresholdTrigger(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SensorDataThresholdTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(SensorDataThresholdTrigger, IBackgroundTrigger); impl SensorDataThresholdTrigger { #[doc = "Required features: `\"Devices_Sensors\"`"] #[cfg(feature = "Devices_Sensors")] pub fn Create(threshold: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::ISensorDataThresholdTriggerFactory(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).Create)(::windows_core::Interface::as_raw(this), threshold.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).Create)(::windows_core::Interface::as_raw(this), threshold.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -4575,20 +3627,18 @@ impl ::windows_core::RuntimeType for SensorDataThresholdTrigger { } unsafe impl ::windows_core::Interface for SensorDataThresholdTrigger { type Vtable = ISensorDataThresholdTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SensorDataThresholdTrigger { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SensorDataThresholdTrigger { const NAME: &'static str = "Windows.ApplicationModel.Background.SensorDataThresholdTrigger"; } -::windows_core::imp::interface_hierarchy!(SensorDataThresholdTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for SensorDataThresholdTrigger {} unsafe impl ::core::marker::Send for SensorDataThresholdTrigger {} unsafe impl ::core::marker::Sync for SensorDataThresholdTrigger {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SmartCardTrigger(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SmartCardTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(SmartCardTrigger, IBackgroundTrigger); impl SmartCardTrigger { #[doc = "Required features: `\"Devices_SmartCards\"`"] #[cfg(feature = "Devices_SmartCards")] @@ -4618,18 +3668,16 @@ impl ::windows_core::RuntimeType for SmartCardTrigger { } unsafe impl ::windows_core::Interface for SmartCardTrigger { type Vtable = ISmartCardTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SmartCardTrigger { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SmartCardTrigger { const NAME: &'static str = "Windows.ApplicationModel.Background.SmartCardTrigger"; } -::windows_core::imp::interface_hierarchy!(SmartCardTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for SmartCardTrigger {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SmsMessageReceivedTrigger(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SmsMessageReceivedTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(SmsMessageReceivedTrigger, IBackgroundTrigger); impl SmsMessageReceivedTrigger { #[doc = "Required features: `\"Devices_Sms\"`"] #[cfg(feature = "Devices_Sms")] @@ -4653,20 +3701,18 @@ impl ::windows_core::RuntimeType for SmsMessageReceivedTrigger { } unsafe impl ::windows_core::Interface for SmsMessageReceivedTrigger { type Vtable = IBackgroundTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SmsMessageReceivedTrigger { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SmsMessageReceivedTrigger { const NAME: &'static str = "Windows.ApplicationModel.Background.SmsMessageReceivedTrigger"; } -::windows_core::imp::interface_hierarchy!(SmsMessageReceivedTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for SmsMessageReceivedTrigger {} unsafe impl ::core::marker::Send for SmsMessageReceivedTrigger {} unsafe impl ::core::marker::Sync for SmsMessageReceivedTrigger {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SocketActivityTrigger(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SocketActivityTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(SocketActivityTrigger, IBackgroundTrigger); impl SocketActivityTrigger { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -4676,7 +3722,7 @@ impl SocketActivityTrigger { SHARED.call(callback) } pub fn IsWakeFromLowPowerSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsWakeFromLowPowerSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4688,20 +3734,18 @@ impl ::windows_core::RuntimeType for SocketActivityTrigger { } unsafe impl ::windows_core::Interface for SocketActivityTrigger { type Vtable = IBackgroundTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SocketActivityTrigger { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SocketActivityTrigger { const NAME: &'static str = "Windows.ApplicationModel.Background.SocketActivityTrigger"; } -::windows_core::imp::interface_hierarchy!(SocketActivityTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for SocketActivityTrigger {} unsafe impl ::core::marker::Send for SocketActivityTrigger {} unsafe impl ::core::marker::Sync for SocketActivityTrigger {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StorageLibraryChangeTrackerTrigger(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StorageLibraryChangeTrackerTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(StorageLibraryChangeTrackerTrigger, IBackgroundTrigger); impl StorageLibraryChangeTrackerTrigger { #[doc = "Required features: `\"Storage\"`"] #[cfg(feature = "Storage")] @@ -4725,20 +3769,18 @@ impl ::windows_core::RuntimeType for StorageLibraryChangeTrackerTrigger { } unsafe impl ::windows_core::Interface for StorageLibraryChangeTrackerTrigger { type Vtable = IBackgroundTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StorageLibraryChangeTrackerTrigger { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StorageLibraryChangeTrackerTrigger { const NAME: &'static str = "Windows.ApplicationModel.Background.StorageLibraryChangeTrackerTrigger"; } -::windows_core::imp::interface_hierarchy!(StorageLibraryChangeTrackerTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for StorageLibraryChangeTrackerTrigger {} unsafe impl ::core::marker::Send for StorageLibraryChangeTrackerTrigger {} unsafe impl ::core::marker::Sync for StorageLibraryChangeTrackerTrigger {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StorageLibraryContentChangedTrigger(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StorageLibraryContentChangedTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(StorageLibraryContentChangedTrigger, IBackgroundTrigger); impl StorageLibraryContentChangedTrigger { #[doc = "Required features: `\"Storage\"`"] #[cfg(feature = "Storage")] @@ -4755,11 +3797,11 @@ impl StorageLibraryContentChangedTrigger { #[cfg(all(feature = "Foundation_Collections", feature = "Storage"))] pub fn CreateFromLibraries(storagelibraries: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::IStorageLibraryContentChangedTriggerStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateFromLibraries)(::windows_core::Interface::as_raw(this), storagelibraries.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateFromLibraries)(::windows_core::Interface::as_raw(this), storagelibraries.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -4773,18 +3815,16 @@ impl ::windows_core::RuntimeType for StorageLibraryContentChangedTrigger { } unsafe impl ::windows_core::Interface for StorageLibraryContentChangedTrigger { type Vtable = IStorageLibraryContentChangedTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StorageLibraryContentChangedTrigger { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StorageLibraryContentChangedTrigger { const NAME: &'static str = "Windows.ApplicationModel.Background.StorageLibraryContentChangedTrigger"; } -::windows_core::imp::interface_hierarchy!(StorageLibraryContentChangedTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for StorageLibraryContentChangedTrigger {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SystemCondition(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SystemCondition, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(SystemCondition, IBackgroundCondition); impl SystemCondition { pub fn ConditionType(&self) -> ::windows_core::Result { let this = self; @@ -4810,18 +3850,16 @@ impl ::windows_core::RuntimeType for SystemCondition { } unsafe impl ::windows_core::Interface for SystemCondition { type Vtable = ISystemCondition_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SystemCondition { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SystemCondition { const NAME: &'static str = "Windows.ApplicationModel.Background.SystemCondition"; } -::windows_core::imp::interface_hierarchy!(SystemCondition, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for SystemCondition {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SystemTrigger(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SystemTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(SystemTrigger, IBackgroundTrigger); impl SystemTrigger { pub fn OneShot(&self) -> ::windows_core::Result { let this = self; @@ -4854,18 +3892,16 @@ impl ::windows_core::RuntimeType for SystemTrigger { } unsafe impl ::windows_core::Interface for SystemTrigger { type Vtable = ISystemTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SystemTrigger { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SystemTrigger { const NAME: &'static str = "Windows.ApplicationModel.Background.SystemTrigger"; } -::windows_core::imp::interface_hierarchy!(SystemTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for SystemTrigger {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct TetheringEntitlementCheckTrigger(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(TetheringEntitlementCheckTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(TetheringEntitlementCheckTrigger, IBackgroundTrigger); impl TetheringEntitlementCheckTrigger { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -4880,20 +3916,18 @@ impl ::windows_core::RuntimeType for TetheringEntitlementCheckTrigger { } unsafe impl ::windows_core::Interface for TetheringEntitlementCheckTrigger { type Vtable = IBackgroundTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TetheringEntitlementCheckTrigger { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for TetheringEntitlementCheckTrigger { const NAME: &'static str = "Windows.ApplicationModel.Background.TetheringEntitlementCheckTrigger"; } -::windows_core::imp::interface_hierarchy!(TetheringEntitlementCheckTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for TetheringEntitlementCheckTrigger {} unsafe impl ::core::marker::Send for TetheringEntitlementCheckTrigger {} unsafe impl ::core::marker::Sync for TetheringEntitlementCheckTrigger {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct TimeTrigger(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(TimeTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(TimeTrigger, IBackgroundTrigger); impl TimeTrigger { pub fn FreshnessTime(&self) -> ::windows_core::Result { let this = self; @@ -4926,18 +3960,16 @@ impl ::windows_core::RuntimeType for TimeTrigger { } unsafe impl ::windows_core::Interface for TimeTrigger { type Vtable = ITimeTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TimeTrigger { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for TimeTrigger { const NAME: &'static str = "Windows.ApplicationModel.Background.TimeTrigger"; } -::windows_core::imp::interface_hierarchy!(TimeTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for TimeTrigger {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ToastNotificationActionTrigger(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ToastNotificationActionTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ToastNotificationActionTrigger, IBackgroundTrigger); impl ToastNotificationActionTrigger { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -4963,20 +3995,18 @@ impl ::windows_core::RuntimeType for ToastNotificationActionTrigger { } unsafe impl ::windows_core::Interface for ToastNotificationActionTrigger { type Vtable = IBackgroundTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ToastNotificationActionTrigger { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ToastNotificationActionTrigger { const NAME: &'static str = "Windows.ApplicationModel.Background.ToastNotificationActionTrigger"; } -::windows_core::imp::interface_hierarchy!(ToastNotificationActionTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ToastNotificationActionTrigger {} unsafe impl ::core::marker::Send for ToastNotificationActionTrigger {} unsafe impl ::core::marker::Sync for ToastNotificationActionTrigger {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ToastNotificationHistoryChangedTrigger(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ToastNotificationHistoryChangedTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ToastNotificationHistoryChangedTrigger, IBackgroundTrigger); impl ToastNotificationHistoryChangedTrigger { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -5002,20 +4032,18 @@ impl ::windows_core::RuntimeType for ToastNotificationHistoryChangedTrigger { } unsafe impl ::windows_core::Interface for ToastNotificationHistoryChangedTrigger { type Vtable = IBackgroundTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ToastNotificationHistoryChangedTrigger { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ToastNotificationHistoryChangedTrigger { const NAME: &'static str = "Windows.ApplicationModel.Background.ToastNotificationHistoryChangedTrigger"; } -::windows_core::imp::interface_hierarchy!(ToastNotificationHistoryChangedTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ToastNotificationHistoryChangedTrigger {} unsafe impl ::core::marker::Send for ToastNotificationHistoryChangedTrigger {} unsafe impl ::core::marker::Sync for ToastNotificationHistoryChangedTrigger {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UserNotificationChangedTrigger(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UserNotificationChangedTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(UserNotificationChangedTrigger, IBackgroundTrigger); impl UserNotificationChangedTrigger { #[doc = "Required features: `\"UI_Notifications\"`"] #[cfg(feature = "UI_Notifications")] @@ -5036,20 +4064,18 @@ impl ::windows_core::RuntimeType for UserNotificationChangedTrigger { } unsafe impl ::windows_core::Interface for UserNotificationChangedTrigger { type Vtable = IBackgroundTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UserNotificationChangedTrigger { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UserNotificationChangedTrigger { const NAME: &'static str = "Windows.ApplicationModel.Background.UserNotificationChangedTrigger"; } -::windows_core::imp::interface_hierarchy!(UserNotificationChangedTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for UserNotificationChangedTrigger {} unsafe impl ::core::marker::Send for UserNotificationChangedTrigger {} unsafe impl ::core::marker::Sync for UserNotificationChangedTrigger {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WiFiOnDemandHotspotConnectTrigger(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WiFiOnDemandHotspotConnectTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(WiFiOnDemandHotspotConnectTrigger, IBackgroundTrigger); impl WiFiOnDemandHotspotConnectTrigger { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -5064,20 +4090,18 @@ impl ::windows_core::RuntimeType for WiFiOnDemandHotspotConnectTrigger { } unsafe impl ::windows_core::Interface for WiFiOnDemandHotspotConnectTrigger { type Vtable = IBackgroundTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WiFiOnDemandHotspotConnectTrigger { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WiFiOnDemandHotspotConnectTrigger { const NAME: &'static str = "Windows.ApplicationModel.Background.WiFiOnDemandHotspotConnectTrigger"; } -::windows_core::imp::interface_hierarchy!(WiFiOnDemandHotspotConnectTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for WiFiOnDemandHotspotConnectTrigger {} unsafe impl ::core::marker::Send for WiFiOnDemandHotspotConnectTrigger {} unsafe impl ::core::marker::Sync for WiFiOnDemandHotspotConnectTrigger {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WiFiOnDemandHotspotUpdateMetadataTrigger(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WiFiOnDemandHotspotUpdateMetadataTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(WiFiOnDemandHotspotUpdateMetadataTrigger, IBackgroundTrigger); impl WiFiOnDemandHotspotUpdateMetadataTrigger { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -5092,15 +4116,11 @@ impl ::windows_core::RuntimeType for WiFiOnDemandHotspotUpdateMetadataTrigger { } unsafe impl ::windows_core::Interface for WiFiOnDemandHotspotUpdateMetadataTrigger { type Vtable = IBackgroundTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WiFiOnDemandHotspotUpdateMetadataTrigger { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WiFiOnDemandHotspotUpdateMetadataTrigger { const NAME: &'static str = "Windows.ApplicationModel.Background.WiFiOnDemandHotspotUpdateMetadataTrigger"; } -::windows_core::imp::interface_hierarchy!(WiFiOnDemandHotspotUpdateMetadataTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for WiFiOnDemandHotspotUpdateMetadataTrigger {} unsafe impl ::core::marker::Send for WiFiOnDemandHotspotUpdateMetadataTrigger {} unsafe impl ::core::marker::Sync for WiFiOnDemandHotspotUpdateMetadataTrigger {} #[repr(transparent)] @@ -5383,9 +4403,7 @@ impl ::core::fmt::Debug for SystemTriggerType { impl ::windows_core::RuntimeType for SystemTriggerType { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.Background.SystemTriggerType;i4)"); } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct BackgroundTaskCanceledEventHandler(pub ::windows_core::IUnknown); +::windows_core::imp::com_interface!(BackgroundTaskCanceledEventHandler, BackgroundTaskCanceledEventHandler_Vtbl, 0xa6c4bac0_51f8_4c57_ac3f_156dd1680c4f); impl BackgroundTaskCanceledEventHandler { pub fn new, BackgroundTaskCancellationReason) -> ::windows_core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = BackgroundTaskCanceledEventHandlerBox:: { vtable: &BackgroundTaskCanceledEventHandlerBox::::VTABLE, count: ::windows_core::imp::RefCount::new(1), invoke }; @@ -5393,10 +4411,10 @@ impl BackgroundTaskCanceledEventHandler { } pub fn Invoke(&self, sender: P0, reason: BackgroundTaskCancellationReason) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).Invoke)(::windows_core::Interface::as_raw(this), sender.try_into_param()?.abi(), reason).ok() } + unsafe { (::windows_core::Interface::vtable(this).Invoke)(::windows_core::Interface::as_raw(this), sender.into_param().abi(), reason).ok() } } } #[repr(C)] @@ -5415,7 +4433,7 @@ impl, BackgroundTaskCa if iid.is_null() || interface.is_null() { return ::windows_core::HRESULT(-2147467261); } - *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; + *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::Interface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::Interface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; if (*interface).is_null() { ::windows_core::HRESULT(-2147467262) } else { @@ -5440,12 +4458,6 @@ impl, BackgroundTaskCa ((*this).invoke)(::windows_core::from_raw_borrowed(&sender), reason).into() } } -unsafe impl ::windows_core::Interface for BackgroundTaskCanceledEventHandler { - type Vtable = BackgroundTaskCanceledEventHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BackgroundTaskCanceledEventHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa6c4bac0_51f8_4c57_ac3f_156dd1680c4f); -} impl ::windows_core::RuntimeType for BackgroundTaskCanceledEventHandler { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } @@ -5455,9 +4467,7 @@ pub struct BackgroundTaskCanceledEventHandler_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Invoke: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sender: *mut ::core::ffi::c_void, reason: BackgroundTaskCancellationReason) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct BackgroundTaskCompletedEventHandler(pub ::windows_core::IUnknown); +::windows_core::imp::com_interface!(BackgroundTaskCompletedEventHandler, BackgroundTaskCompletedEventHandler_Vtbl, 0x5b38e929_a086_46a7_a678_439135822bcf); impl BackgroundTaskCompletedEventHandler { pub fn new, ::core::option::Option<&BackgroundTaskCompletedEventArgs>) -> ::windows_core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = BackgroundTaskCompletedEventHandlerBox:: { vtable: &BackgroundTaskCompletedEventHandlerBox::::VTABLE, count: ::windows_core::imp::RefCount::new(1), invoke }; @@ -5488,7 +4498,7 @@ impl, ::core::optio if iid.is_null() || interface.is_null() { return ::windows_core::HRESULT(-2147467261); } - *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; + *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::Interface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::Interface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; if (*interface).is_null() { ::windows_core::HRESULT(-2147467262) } else { @@ -5513,12 +4523,6 @@ impl, ::core::optio ((*this).invoke)(::windows_core::from_raw_borrowed(&sender), ::windows_core::from_raw_borrowed(&args)).into() } } -unsafe impl ::windows_core::Interface for BackgroundTaskCompletedEventHandler { - type Vtable = BackgroundTaskCompletedEventHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BackgroundTaskCompletedEventHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5b38e929_a086_46a7_a678_439135822bcf); -} impl ::windows_core::RuntimeType for BackgroundTaskCompletedEventHandler { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } @@ -5528,9 +4532,7 @@ pub struct BackgroundTaskCompletedEventHandler_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Invoke: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sender: *mut ::core::ffi::c_void, args: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct BackgroundTaskProgressEventHandler(pub ::windows_core::IUnknown); +::windows_core::imp::com_interface!(BackgroundTaskProgressEventHandler, BackgroundTaskProgressEventHandler_Vtbl, 0x46e0683c_8a88_4c99_804c_76897f6277a6); impl BackgroundTaskProgressEventHandler { pub fn new, ::core::option::Option<&BackgroundTaskProgressEventArgs>) -> ::windows_core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = BackgroundTaskProgressEventHandlerBox:: { vtable: &BackgroundTaskProgressEventHandlerBox::::VTABLE, count: ::windows_core::imp::RefCount::new(1), invoke }; @@ -5561,7 +4563,7 @@ impl, ::core::optio if iid.is_null() || interface.is_null() { return ::windows_core::HRESULT(-2147467261); } - *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; + *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::Interface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::Interface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; if (*interface).is_null() { ::windows_core::HRESULT(-2147467262) } else { @@ -5586,12 +4588,6 @@ impl, ::core::optio ((*this).invoke)(::windows_core::from_raw_borrowed(&sender), ::windows_core::from_raw_borrowed(&args)).into() } } -unsafe impl ::windows_core::Interface for BackgroundTaskProgressEventHandler { - type Vtable = BackgroundTaskProgressEventHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BackgroundTaskProgressEventHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x46e0683c_8a88_4c99_804c_76897f6277a6); -} impl ::windows_core::RuntimeType for BackgroundTaskProgressEventHandler { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Calls/Background/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Calls/Background/mod.rs index 2a2ca72730..0d5c9abc89 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Calls/Background/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Calls/Background/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhoneCallBlockedTriggerDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhoneCallBlockedTriggerDetails { - type Vtable = IPhoneCallBlockedTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhoneCallBlockedTriggerDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa4a690a2_e4c1_427f_864e_e470477ddb67); -} +::windows_core::imp::com_interface!(IPhoneCallBlockedTriggerDetails, IPhoneCallBlockedTriggerDetails_Vtbl, 0xa4a690a2_e4c1_427f_864e_e470477ddb67); #[repr(C)] #[doc(hidden)] pub struct IPhoneCallBlockedTriggerDetails_Vtbl { @@ -16,19 +7,13 @@ pub struct IPhoneCallBlockedTriggerDetails_Vtbl { pub LineId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, pub CallBlockedReason: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut PhoneCallBlockedReason) -> ::windows_core::HRESULT, } -#[doc(hidden)] #[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhoneCallOriginDataRequestTriggerDetails(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for IPhoneCallOriginDataRequestTriggerDetails { - type Vtable = IPhoneCallOriginDataRequestTriggerDetails_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for IPhoneCallOriginDataRequestTriggerDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6e9b5b3f_c54b_4e82_4cc9_e329a4184592); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + IPhoneCallOriginDataRequestTriggerDetails, + IPhoneCallOriginDataRequestTriggerDetails_Vtbl, + 0x6e9b5b3f_c54b_4e82_4cc9_e329a4184592 +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -43,19 +28,13 @@ pub struct IPhoneCallOriginDataRequestTriggerDetails_Vtbl { #[cfg(not(feature = "deprecated"))] PhoneNumber: usize, } -#[doc(hidden)] #[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhoneIncomingCallDismissedTriggerDetails(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for IPhoneIncomingCallDismissedTriggerDetails { - type Vtable = IPhoneIncomingCallDismissedTriggerDetails_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for IPhoneIncomingCallDismissedTriggerDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbad30276_83b6_5732_9c38_0c206546196a); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + IPhoneIncomingCallDismissedTriggerDetails, + IPhoneIncomingCallDismissedTriggerDetails_Vtbl, + 0xbad30276_83b6_5732_9c38_0c206546196a +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -86,16 +65,7 @@ pub struct IPhoneIncomingCallDismissedTriggerDetails_Vtbl { #[cfg(not(feature = "deprecated"))] Reason: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhoneIncomingCallNotificationTriggerDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhoneIncomingCallNotificationTriggerDetails { - type Vtable = IPhoneIncomingCallNotificationTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhoneIncomingCallNotificationTriggerDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2b0e6044_9b32_5d42_8222_d2812e39fb21); -} +::windows_core::imp::com_interface!(IPhoneIncomingCallNotificationTriggerDetails, IPhoneIncomingCallNotificationTriggerDetails_Vtbl, 0x2b0e6044_9b32_5d42_8222_d2812e39fb21); #[repr(C)] #[doc(hidden)] pub struct IPhoneIncomingCallNotificationTriggerDetails_Vtbl { @@ -103,16 +73,7 @@ pub struct IPhoneIncomingCallNotificationTriggerDetails_Vtbl { pub LineId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, pub CallId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhoneLineChangedTriggerDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhoneLineChangedTriggerDetails { - type Vtable = IPhoneLineChangedTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhoneLineChangedTriggerDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc6d321e7_d11d_40d8_b2b7_e40a01d66249); -} +::windows_core::imp::com_interface!(IPhoneLineChangedTriggerDetails, IPhoneLineChangedTriggerDetails_Vtbl, 0xc6d321e7_d11d_40d8_b2b7_e40a01d66249); #[repr(C)] #[doc(hidden)] pub struct IPhoneLineChangedTriggerDetails_Vtbl { @@ -121,16 +82,7 @@ pub struct IPhoneLineChangedTriggerDetails_Vtbl { pub ChangeType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut PhoneLineChangeKind) -> ::windows_core::HRESULT, pub HasLinePropertyChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lineproperty: PhoneLineProperties, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhoneNewVoicemailMessageTriggerDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhoneNewVoicemailMessageTriggerDetails { - type Vtable = IPhoneNewVoicemailMessageTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhoneNewVoicemailMessageTriggerDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x13a8c01b_b831_48d3_8ba9_8d22a6580dcf); -} +::windows_core::imp::com_interface!(IPhoneNewVoicemailMessageTriggerDetails, IPhoneNewVoicemailMessageTriggerDetails_Vtbl, 0x13a8c01b_b831_48d3_8ba9_8d22a6580dcf); #[repr(C)] #[doc(hidden)] pub struct IPhoneNewVoicemailMessageTriggerDetails_Vtbl { @@ -142,6 +94,7 @@ pub struct IPhoneNewVoicemailMessageTriggerDetails_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PhoneCallBlockedTriggerDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PhoneCallBlockedTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PhoneCallBlockedTriggerDetails { pub fn PhoneNumber(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -170,14 +123,11 @@ impl ::windows_core::RuntimeType for PhoneCallBlockedTriggerDetails { } unsafe impl ::windows_core::Interface for PhoneCallBlockedTriggerDetails { type Vtable = IPhoneCallBlockedTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PhoneCallBlockedTriggerDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PhoneCallBlockedTriggerDetails { const NAME: &'static str = "Windows.ApplicationModel.Calls.Background.PhoneCallBlockedTriggerDetails"; } -::windows_core::imp::interface_hierarchy!(PhoneCallBlockedTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PhoneCallBlockedTriggerDetails {} unsafe impl ::core::marker::Sync for PhoneCallBlockedTriggerDetails {} #[doc = "Required features: `\"deprecated\"`"] @@ -186,6 +136,8 @@ unsafe impl ::core::marker::Sync for PhoneCallBlockedTriggerDetails {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PhoneCallOriginDataRequestTriggerDetails(::windows_core::IUnknown); #[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(PhoneCallOriginDataRequestTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "deprecated")] impl PhoneCallOriginDataRequestTriggerDetails { #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] @@ -213,18 +165,13 @@ impl ::windows_core::RuntimeType for PhoneCallOriginDataRequestTriggerDetails { #[cfg(feature = "deprecated")] unsafe impl ::windows_core::Interface for PhoneCallOriginDataRequestTriggerDetails { type Vtable = IPhoneCallOriginDataRequestTriggerDetails_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for PhoneCallOriginDataRequestTriggerDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "deprecated")] impl ::windows_core::RuntimeName for PhoneCallOriginDataRequestTriggerDetails { const NAME: &'static str = "Windows.ApplicationModel.Calls.Background.PhoneCallOriginDataRequestTriggerDetails"; } #[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(PhoneCallOriginDataRequestTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] unsafe impl ::core::marker::Send for PhoneCallOriginDataRequestTriggerDetails {} #[cfg(feature = "deprecated")] unsafe impl ::core::marker::Sync for PhoneCallOriginDataRequestTriggerDetails {} @@ -234,6 +181,8 @@ unsafe impl ::core::marker::Sync for PhoneCallOriginDataRequestTriggerDetails {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PhoneIncomingCallDismissedTriggerDetails(::windows_core::IUnknown); #[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(PhoneIncomingCallDismissedTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "deprecated")] impl PhoneIncomingCallDismissedTriggerDetails { #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] @@ -297,24 +246,20 @@ impl ::windows_core::RuntimeType for PhoneIncomingCallDismissedTriggerDetails { #[cfg(feature = "deprecated")] unsafe impl ::windows_core::Interface for PhoneIncomingCallDismissedTriggerDetails { type Vtable = IPhoneIncomingCallDismissedTriggerDetails_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for PhoneIncomingCallDismissedTriggerDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "deprecated")] impl ::windows_core::RuntimeName for PhoneIncomingCallDismissedTriggerDetails { const NAME: &'static str = "Windows.ApplicationModel.Calls.Background.PhoneIncomingCallDismissedTriggerDetails"; } #[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(PhoneIncomingCallDismissedTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] unsafe impl ::core::marker::Send for PhoneIncomingCallDismissedTriggerDetails {} #[cfg(feature = "deprecated")] unsafe impl ::core::marker::Sync for PhoneIncomingCallDismissedTriggerDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PhoneIncomingCallNotificationTriggerDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PhoneIncomingCallNotificationTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PhoneIncomingCallNotificationTriggerDetails { pub fn LineId(&self) -> ::windows_core::Result<::windows_core::GUID> { let this = self; @@ -336,19 +281,17 @@ impl ::windows_core::RuntimeType for PhoneIncomingCallNotificationTriggerDetails } unsafe impl ::windows_core::Interface for PhoneIncomingCallNotificationTriggerDetails { type Vtable = IPhoneIncomingCallNotificationTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PhoneIncomingCallNotificationTriggerDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PhoneIncomingCallNotificationTriggerDetails { const NAME: &'static str = "Windows.ApplicationModel.Calls.Background.PhoneIncomingCallNotificationTriggerDetails"; } -::windows_core::imp::interface_hierarchy!(PhoneIncomingCallNotificationTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PhoneIncomingCallNotificationTriggerDetails {} unsafe impl ::core::marker::Sync for PhoneIncomingCallNotificationTriggerDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PhoneLineChangedTriggerDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PhoneLineChangedTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PhoneLineChangedTriggerDetails { pub fn LineId(&self) -> ::windows_core::Result<::windows_core::GUID> { let this = self; @@ -377,19 +320,17 @@ impl ::windows_core::RuntimeType for PhoneLineChangedTriggerDetails { } unsafe impl ::windows_core::Interface for PhoneLineChangedTriggerDetails { type Vtable = IPhoneLineChangedTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PhoneLineChangedTriggerDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PhoneLineChangedTriggerDetails { const NAME: &'static str = "Windows.ApplicationModel.Calls.Background.PhoneLineChangedTriggerDetails"; } -::windows_core::imp::interface_hierarchy!(PhoneLineChangedTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PhoneLineChangedTriggerDetails {} unsafe impl ::core::marker::Sync for PhoneLineChangedTriggerDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PhoneNewVoicemailMessageTriggerDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PhoneNewVoicemailMessageTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PhoneNewVoicemailMessageTriggerDetails { pub fn LineId(&self) -> ::windows_core::Result<::windows_core::GUID> { let this = self; @@ -418,14 +359,11 @@ impl ::windows_core::RuntimeType for PhoneNewVoicemailMessageTriggerDetails { } unsafe impl ::windows_core::Interface for PhoneNewVoicemailMessageTriggerDetails { type Vtable = IPhoneNewVoicemailMessageTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PhoneNewVoicemailMessageTriggerDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PhoneNewVoicemailMessageTriggerDetails { const NAME: &'static str = "Windows.ApplicationModel.Calls.Background.PhoneNewVoicemailMessageTriggerDetails"; } -::windows_core::imp::interface_hierarchy!(PhoneNewVoicemailMessageTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PhoneNewVoicemailMessageTriggerDetails {} unsafe impl ::core::marker::Sync for PhoneNewVoicemailMessageTriggerDetails {} #[repr(transparent)] 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 4df809e6fe..99b7164c55 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Calls/Provider/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Calls/Provider/mod.rs @@ -1,16 +1,10 @@ -#[doc(hidden)] -#[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhoneCallOrigin(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for IPhoneCallOrigin { - type Vtable = IPhoneCallOrigin_Vtbl; -} #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for IPhoneCallOrigin { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x20613479_0ef9_4454_871c_afb66a14b6a5); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + IPhoneCallOrigin, + IPhoneCallOrigin_Vtbl, + 0x20613479_0ef9_4454_871c_afb66a14b6a5 +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -41,19 +35,13 @@ pub struct IPhoneCallOrigin_Vtbl { #[cfg(not(feature = "deprecated"))] SetLocation: usize, } -#[doc(hidden)] -#[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhoneCallOrigin2(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for IPhoneCallOrigin2 { - type Vtable = IPhoneCallOrigin2_Vtbl; -} #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for IPhoneCallOrigin2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x04c7e980_9ac2_4768_b536_b68da4957d02); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + IPhoneCallOrigin2, + IPhoneCallOrigin2_Vtbl, + 0x04c7e980_9ac2_4768_b536_b68da4957d02 +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -68,19 +56,13 @@ pub struct IPhoneCallOrigin2_Vtbl { #[cfg(not(feature = "deprecated"))] SetDisplayName: usize, } -#[doc(hidden)] -#[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhoneCallOrigin3(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for IPhoneCallOrigin3 { - type Vtable = IPhoneCallOrigin3_Vtbl; -} #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for IPhoneCallOrigin3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x49330fb4_d1a7_43a2_aeee_c07b6dbaf068); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + IPhoneCallOrigin3, + IPhoneCallOrigin3_Vtbl, + 0x49330fb4_d1a7_43a2_aeee_c07b6dbaf068 +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -95,19 +77,13 @@ pub struct IPhoneCallOrigin3_Vtbl { #[cfg(not(all(feature = "Storage", feature = "deprecated")))] SetDisplayPicture: usize, } -#[doc(hidden)] #[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhoneCallOriginManagerStatics(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for IPhoneCallOriginManagerStatics { - type Vtable = IPhoneCallOriginManagerStatics_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for IPhoneCallOriginManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xccfc5a0a_9af7_6149_39d0_e076fcce1395); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + IPhoneCallOriginManagerStatics, + IPhoneCallOriginManagerStatics_Vtbl, + 0xccfc5a0a_9af7_6149_39d0_e076fcce1395 +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -126,19 +102,13 @@ pub struct IPhoneCallOriginManagerStatics_Vtbl { #[cfg(not(feature = "deprecated"))] SetCallOrigin: usize, } -#[doc(hidden)] -#[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhoneCallOriginManagerStatics2(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for IPhoneCallOriginManagerStatics2 { - type Vtable = IPhoneCallOriginManagerStatics2_Vtbl; -} #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for IPhoneCallOriginManagerStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8bf3ee3f_40f4_4380_8c7c_aea2c9b8dd7a); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + IPhoneCallOriginManagerStatics2, + IPhoneCallOriginManagerStatics2_Vtbl, + 0x8bf3ee3f_40f4_4380_8c7c_aea2c9b8dd7a +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -149,19 +119,13 @@ pub struct IPhoneCallOriginManagerStatics2_Vtbl { #[cfg(not(feature = "deprecated"))] RequestSetAsActiveCallOriginAppAsync: usize, } -#[doc(hidden)] #[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhoneCallOriginManagerStatics3(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for IPhoneCallOriginManagerStatics3 { - type Vtable = IPhoneCallOriginManagerStatics3_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for IPhoneCallOriginManagerStatics3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2ed69764_a6e3_50f0_b76a_d67cb39bdfde); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + IPhoneCallOriginManagerStatics3, + IPhoneCallOriginManagerStatics3_Vtbl, + 0x2ed69764_a6e3_50f0_b76a_d67cb39bdfde +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -178,6 +142,8 @@ pub struct IPhoneCallOriginManagerStatics3_Vtbl { #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PhoneCallOrigin(::windows_core::IUnknown); #[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(PhoneCallOrigin, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "deprecated")] impl PhoneCallOrigin { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -234,7 +200,7 @@ impl PhoneCallOrigin { #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] pub fn DisplayName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DisplayName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -243,13 +209,13 @@ impl PhoneCallOrigin { #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] pub fn SetDisplayName(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDisplayName)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } #[doc = "Required features: `\"Storage\"`, `\"deprecated\"`"] #[cfg(all(feature = "Storage", feature = "deprecated"))] pub fn DisplayPicture(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DisplayPicture)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -261,7 +227,7 @@ impl PhoneCallOrigin { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } } @@ -272,18 +238,13 @@ impl ::windows_core::RuntimeType for PhoneCallOrigin { #[cfg(feature = "deprecated")] unsafe impl ::windows_core::Interface for PhoneCallOrigin { type Vtable = IPhoneCallOrigin_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for PhoneCallOrigin { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "deprecated")] impl ::windows_core::RuntimeName for PhoneCallOrigin { const NAME: &'static str = "Windows.ApplicationModel.Calls.Provider.PhoneCallOrigin"; } #[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(PhoneCallOrigin, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] unsafe impl ::core::marker::Send for PhoneCallOrigin {} #[cfg(feature = "deprecated")] unsafe impl ::core::marker::Sync for PhoneCallOrigin {} diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs index 92c1ee67a1..3b50141c53 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs @@ -4,80 +4,35 @@ pub mod Background; #[cfg(feature = "ApplicationModel_Calls_Provider")] #[doc = "Required features: `\"ApplicationModel_Calls_Provider\"`"] pub mod Provider; -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICallAnswerEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICallAnswerEventArgs { - type Vtable = ICallAnswerEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICallAnswerEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfd789617_2dd7_4c8c_b2bd_95d17a5bb733); -} +::windows_core::imp::com_interface!(ICallAnswerEventArgs, ICallAnswerEventArgs_Vtbl, 0xfd789617_2dd7_4c8c_b2bd_95d17a5bb733); #[repr(C)] #[doc(hidden)] pub struct ICallAnswerEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub AcceptedMedia: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut VoipPhoneCallMedia) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICallRejectEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICallRejectEventArgs { - type Vtable = ICallRejectEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICallRejectEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xda47fad7_13d4_4d92_a1c2_b77811ee37ec); -} +::windows_core::imp::com_interface!(ICallRejectEventArgs, ICallRejectEventArgs_Vtbl, 0xda47fad7_13d4_4d92_a1c2_b77811ee37ec); #[repr(C)] #[doc(hidden)] pub struct ICallRejectEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub RejectReason: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut VoipPhoneCallRejectReason) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICallStateChangeEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICallStateChangeEventArgs { - type Vtable = ICallStateChangeEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICallStateChangeEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeab2349e_66f5_47f9_9fb5_459c5198c720); -} +::windows_core::imp::com_interface!(ICallStateChangeEventArgs, ICallStateChangeEventArgs_Vtbl, 0xeab2349e_66f5_47f9_9fb5_459c5198c720); #[repr(C)] #[doc(hidden)] pub struct ICallStateChangeEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub State: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut VoipPhoneCallState) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILockScreenCallEndCallDeferral(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILockScreenCallEndCallDeferral { - type Vtable = ILockScreenCallEndCallDeferral_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILockScreenCallEndCallDeferral { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2dd7ed0d_98ed_4041_9632_50ff812b773f); -} +::windows_core::imp::com_interface!(ILockScreenCallEndCallDeferral, ILockScreenCallEndCallDeferral_Vtbl, 0x2dd7ed0d_98ed_4041_9632_50ff812b773f); #[repr(C)] #[doc(hidden)] pub struct ILockScreenCallEndCallDeferral_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Complete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILockScreenCallEndRequestedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILockScreenCallEndRequestedEventArgs { - type Vtable = ILockScreenCallEndRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILockScreenCallEndRequestedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8190a363_6f27_46e9_aeb6_c0ae83e47dc7); -} +::windows_core::imp::com_interface!(ILockScreenCallEndRequestedEventArgs, ILockScreenCallEndRequestedEventArgs_Vtbl, 0x8190a363_6f27_46e9_aeb6_c0ae83e47dc7); #[repr(C)] #[doc(hidden)] pub struct ILockScreenCallEndRequestedEventArgs_Vtbl { @@ -85,16 +40,7 @@ pub struct ILockScreenCallEndRequestedEventArgs_Vtbl { pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Deadline: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::DateTime) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILockScreenCallUI(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILockScreenCallUI { - type Vtable = ILockScreenCallUI_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILockScreenCallUI { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc596fd8d_73c9_4a14_b021_ec1c50a3b727); -} +::windows_core::imp::com_interface!(ILockScreenCallUI, ILockScreenCallUI_Vtbl, 0xc596fd8d_73c9_4a14_b021_ec1c50a3b727); #[repr(C)] #[doc(hidden)] pub struct ILockScreenCallUI_Vtbl { @@ -107,32 +53,14 @@ pub struct ILockScreenCallUI_Vtbl { pub CallTitle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetCallTitle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMuteChangeEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMuteChangeEventArgs { - type Vtable = IMuteChangeEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMuteChangeEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8585e159_0c41_432c_814d_c5f1fdf530be); -} +::windows_core::imp::com_interface!(IMuteChangeEventArgs, IMuteChangeEventArgs_Vtbl, 0x8585e159_0c41_432c_814d_c5f1fdf530be); #[repr(C)] #[doc(hidden)] pub struct IMuteChangeEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Muted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhoneCall(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhoneCall { - type Vtable = IPhoneCall_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhoneCall { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc14ed0f8_c17d_59d2_9628_66e545b6cd21); -} +::windows_core::imp::com_interface!(IPhoneCall, IPhoneCall_Vtbl, 0xc14ed0f8_c17d_59d2_9628_66e545b6cd21); #[repr(C)] #[doc(hidden)] pub struct IPhoneCall_Vtbl { @@ -168,16 +96,7 @@ pub struct IPhoneCall_Vtbl { pub ChangeAudioDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, endpoint: PhoneCallAudioDevice, result__: *mut PhoneCallOperationStatus) -> ::windows_core::HRESULT, pub ChangeAudioDeviceAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, endpoint: PhoneCallAudioDevice, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhoneCallBlockingStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhoneCallBlockingStatics { - type Vtable = IPhoneCallBlockingStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhoneCallBlockingStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x19646f84_2b79_26f1_a46f_694be043f313); -} +::windows_core::imp::com_interface!(IPhoneCallBlockingStatics, IPhoneCallBlockingStatics_Vtbl, 0x19646f84_2b79_26f1_a46f_694be043f313); #[repr(C)] #[doc(hidden)] pub struct IPhoneCallBlockingStatics_Vtbl { @@ -191,16 +110,7 @@ pub struct IPhoneCallBlockingStatics_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] SetCallBlockingListAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhoneCallHistoryEntry(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhoneCallHistoryEntry { - type Vtable = IPhoneCallHistoryEntry_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhoneCallHistoryEntry { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfab0e129_32a4_4b85_83d1_f90d8c23a857); -} +::windows_core::imp::com_interface!(IPhoneCallHistoryEntry, IPhoneCallHistoryEntry_Vtbl, 0xfab0e129_32a4_4b85_83d1_f90d8c23a857); #[repr(C)] #[doc(hidden)] pub struct IPhoneCallHistoryEntry_Vtbl { @@ -240,16 +150,7 @@ pub struct IPhoneCallHistoryEntry_Vtbl { pub StartTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::DateTime) -> ::windows_core::HRESULT, pub SetStartTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::Foundation::DateTime) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhoneCallHistoryEntryAddress(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhoneCallHistoryEntryAddress { - type Vtable = IPhoneCallHistoryEntryAddress_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhoneCallHistoryEntryAddress { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x30f159da_3955_4042_84e6_66eebf82e67f); -} +::windows_core::imp::com_interface!(IPhoneCallHistoryEntryAddress, IPhoneCallHistoryEntryAddress_Vtbl, 0x30f159da_3955_4042_84e6_66eebf82e67f); #[repr(C)] #[doc(hidden)] pub struct IPhoneCallHistoryEntryAddress_Vtbl { @@ -263,32 +164,14 @@ pub struct IPhoneCallHistoryEntryAddress_Vtbl { pub RawAddressKind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut PhoneCallHistoryEntryRawAddressKind) -> ::windows_core::HRESULT, pub SetRawAddressKind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: PhoneCallHistoryEntryRawAddressKind) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhoneCallHistoryEntryAddressFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhoneCallHistoryEntryAddressFactory { - type Vtable = IPhoneCallHistoryEntryAddressFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhoneCallHistoryEntryAddressFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfb0fadba_c7f0_4bb6_9f6b_ba5d73209aca); -} +::windows_core::imp::com_interface!(IPhoneCallHistoryEntryAddressFactory, IPhoneCallHistoryEntryAddressFactory_Vtbl, 0xfb0fadba_c7f0_4bb6_9f6b_ba5d73209aca); #[repr(C)] #[doc(hidden)] pub struct IPhoneCallHistoryEntryAddressFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rawaddress: ::std::mem::MaybeUninit<::windows_core::HSTRING>, rawaddresskind: PhoneCallHistoryEntryRawAddressKind, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhoneCallHistoryEntryQueryOptions(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhoneCallHistoryEntryQueryOptions { - type Vtable = IPhoneCallHistoryEntryQueryOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhoneCallHistoryEntryQueryOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9c5fe15c_8bed_40ca_b06e_c4ca8eae5c87); -} +::windows_core::imp::com_interface!(IPhoneCallHistoryEntryQueryOptions, IPhoneCallHistoryEntryQueryOptions_Vtbl, 0x9c5fe15c_8bed_40ca_b06e_c4ca8eae5c87); #[repr(C)] #[doc(hidden)] pub struct IPhoneCallHistoryEntryQueryOptions_Vtbl { @@ -300,16 +183,7 @@ pub struct IPhoneCallHistoryEntryQueryOptions_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] SourceIds: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhoneCallHistoryEntryReader(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhoneCallHistoryEntryReader { - type Vtable = IPhoneCallHistoryEntryReader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhoneCallHistoryEntryReader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x61ece4be_8d86_479f_8404_a9846920fee6); -} +::windows_core::imp::com_interface!(IPhoneCallHistoryEntryReader, IPhoneCallHistoryEntryReader_Vtbl, 0x61ece4be_8d86_479f_8404_a9846920fee6); #[repr(C)] #[doc(hidden)] pub struct IPhoneCallHistoryEntryReader_Vtbl { @@ -319,16 +193,7 @@ pub struct IPhoneCallHistoryEntryReader_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] ReadBatchAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhoneCallHistoryManagerForUser(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhoneCallHistoryManagerForUser { - type Vtable = IPhoneCallHistoryManagerForUser_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhoneCallHistoryManagerForUser { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd925c523_f55f_4353_9db4_0205a5265a55); -} +::windows_core::imp::com_interface!(IPhoneCallHistoryManagerForUser, IPhoneCallHistoryManagerForUser_Vtbl, 0xd925c523_f55f_4353_9db4_0205a5265a55); #[repr(C)] #[doc(hidden)] pub struct IPhoneCallHistoryManagerForUser_Vtbl { @@ -339,32 +204,14 @@ pub struct IPhoneCallHistoryManagerForUser_Vtbl { #[cfg(not(feature = "System"))] User: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhoneCallHistoryManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhoneCallHistoryManagerStatics { - type Vtable = IPhoneCallHistoryManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhoneCallHistoryManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf5a6da39_b31f_4f45_ac8e_1b08893c1b50); -} +::windows_core::imp::com_interface!(IPhoneCallHistoryManagerStatics, IPhoneCallHistoryManagerStatics_Vtbl, 0xf5a6da39_b31f_4f45_ac8e_1b08893c1b50); #[repr(C)] #[doc(hidden)] pub struct IPhoneCallHistoryManagerStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub RequestStoreAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, accesstype: PhoneCallHistoryStoreAccessType, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhoneCallHistoryManagerStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhoneCallHistoryManagerStatics2 { - type Vtable = IPhoneCallHistoryManagerStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhoneCallHistoryManagerStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xefd474f0_a2db_4188_9e92_bc3cfa6813cf); -} +::windows_core::imp::com_interface!(IPhoneCallHistoryManagerStatics2, IPhoneCallHistoryManagerStatics2_Vtbl, 0xefd474f0_a2db_4188_9e92_bc3cfa6813cf); #[repr(C)] #[doc(hidden)] pub struct IPhoneCallHistoryManagerStatics2_Vtbl { @@ -374,16 +221,7 @@ pub struct IPhoneCallHistoryManagerStatics2_Vtbl { #[cfg(not(feature = "System"))] GetForUser: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhoneCallHistoryStore(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhoneCallHistoryStore { - type Vtable = IPhoneCallHistoryStore_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhoneCallHistoryStore { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2f907db8_b40e_422b_8545_cb1910a61c52); -} +::windows_core::imp::com_interface!(IPhoneCallHistoryStore, IPhoneCallHistoryStore_Vtbl, 0x2f907db8_b40e_422b_8545_cb1910a61c52); #[repr(C)] #[doc(hidden)] pub struct IPhoneCallHistoryStore_Vtbl { @@ -413,16 +251,7 @@ pub struct IPhoneCallHistoryStore_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] MarkSourcesAsSeenAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhoneCallInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhoneCallInfo { - type Vtable = IPhoneCallInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhoneCallInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x22b42577_3e4d_5dc6_89c2_469fe5ffc189); -} +::windows_core::imp::com_interface!(IPhoneCallInfo, IPhoneCallInfo_Vtbl, 0x22b42577_3e4d_5dc6_89c2_469fe5ffc189); #[repr(C)] #[doc(hidden)] pub struct IPhoneCallInfo_Vtbl { @@ -434,32 +263,14 @@ pub struct IPhoneCallInfo_Vtbl { pub DisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub CallDirection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut PhoneCallDirection) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhoneCallManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhoneCallManagerStatics { - type Vtable = IPhoneCallManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhoneCallManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x60edac78_78a6_4872_a3ef_98325ec8b843); -} +::windows_core::imp::com_interface!(IPhoneCallManagerStatics, IPhoneCallManagerStatics_Vtbl, 0x60edac78_78a6_4872_a3ef_98325ec8b843); #[repr(C)] #[doc(hidden)] pub struct IPhoneCallManagerStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ShowPhoneCallUI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phonenumber: ::std::mem::MaybeUninit<::windows_core::HSTRING>, displayname: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhoneCallManagerStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhoneCallManagerStatics2 { - type Vtable = IPhoneCallManagerStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhoneCallManagerStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc7e3c8bc_2370_431c_98fd_43be5f03086d); -} +::windows_core::imp::com_interface!(IPhoneCallManagerStatics2, IPhoneCallManagerStatics2_Vtbl, 0xc7e3c8bc_2370_431c_98fd_43be5f03086d); #[repr(C)] #[doc(hidden)] pub struct IPhoneCallManagerStatics2_Vtbl { @@ -471,32 +282,14 @@ pub struct IPhoneCallManagerStatics2_Vtbl { pub ShowPhoneCallSettingsUI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RequestStoreAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhoneCallStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhoneCallStatics { - type Vtable = IPhoneCallStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhoneCallStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2218eeab_f60b_53e7_ba13_5aeafbc22957); -} +::windows_core::imp::com_interface!(IPhoneCallStatics, IPhoneCallStatics_Vtbl, 0x2218eeab_f60b_53e7_ba13_5aeafbc22957); #[repr(C)] #[doc(hidden)] pub struct IPhoneCallStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetFromId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, callid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhoneCallStore(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhoneCallStore { - type Vtable = IPhoneCallStore_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhoneCallStore { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5f610748_18a6_4173_86d1_28be9dc62dba); -} +::windows_core::imp::com_interface!(IPhoneCallStore, IPhoneCallStore_Vtbl, 0x5f610748_18a6_4173_86d1_28be9dc62dba); #[repr(C)] #[doc(hidden)] pub struct IPhoneCallStore_Vtbl { @@ -505,48 +298,21 @@ pub struct IPhoneCallStore_Vtbl { pub GetDefaultLineAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RequestLineWatcher: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhoneCallVideoCapabilities(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhoneCallVideoCapabilities { - type Vtable = IPhoneCallVideoCapabilities_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhoneCallVideoCapabilities { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x02382786_b16a_4fdb_be3b_c4240e13ad0d); -} +::windows_core::imp::com_interface!(IPhoneCallVideoCapabilities, IPhoneCallVideoCapabilities_Vtbl, 0x02382786_b16a_4fdb_be3b_c4240e13ad0d); #[repr(C)] #[doc(hidden)] pub struct IPhoneCallVideoCapabilities_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub IsVideoCallingCapable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhoneCallVideoCapabilitiesManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhoneCallVideoCapabilitiesManagerStatics { - type Vtable = IPhoneCallVideoCapabilitiesManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhoneCallVideoCapabilitiesManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf3c64b56_f00b_4a1c_a0c6_ee1910749ce7); -} +::windows_core::imp::com_interface!(IPhoneCallVideoCapabilitiesManagerStatics, IPhoneCallVideoCapabilitiesManagerStatics_Vtbl, 0xf3c64b56_f00b_4a1c_a0c6_ee1910749ce7); #[repr(C)] #[doc(hidden)] pub struct IPhoneCallVideoCapabilitiesManagerStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetCapabilitiesAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phonenumber: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhoneCallsResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhoneCallsResult { - type Vtable = IPhoneCallsResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhoneCallsResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1bfad365_57cf_57dd_986d_b057c91eac33); -} +::windows_core::imp::com_interface!(IPhoneCallsResult, IPhoneCallsResult_Vtbl, 0x1bfad365_57cf_57dd_986d_b057c91eac33); #[repr(C)] #[doc(hidden)] pub struct IPhoneCallsResult_Vtbl { @@ -557,16 +323,7 @@ pub struct IPhoneCallsResult_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] AllActivePhoneCalls: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhoneDialOptions(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhoneDialOptions { - type Vtable = IPhoneDialOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhoneDialOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb639c4b8_f06f_36cb_a863_823742b5f2d4); -} +::windows_core::imp::com_interface!(IPhoneDialOptions, IPhoneDialOptions_Vtbl, 0xb639c4b8_f06f_36cb_a863_823742b5f2d4); #[repr(C)] #[doc(hidden)] pub struct IPhoneDialOptions_Vtbl { @@ -596,16 +353,7 @@ pub struct IPhoneDialOptions_Vtbl { pub AudioEndpoint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut PhoneAudioRoutingEndpoint) -> ::windows_core::HRESULT, pub SetAudioEndpoint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: PhoneAudioRoutingEndpoint) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhoneLine(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhoneLine { - type Vtable = IPhoneLine_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhoneLine { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x27c66f30_6a69_34ca_a2ba_65302530c311); -} +::windows_core::imp::com_interface!(IPhoneLine, IPhoneLine_Vtbl, 0x27c66f30_6a69_34ca_a2ba_65302530c311); #[repr(C)] #[doc(hidden)] pub struct IPhoneLine_Vtbl { @@ -631,16 +379,7 @@ pub struct IPhoneLine_Vtbl { pub Dial: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, number: ::std::mem::MaybeUninit<::windows_core::HSTRING>, displayname: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub DialWithOptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, options: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhoneLine2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhoneLine2 { - type Vtable = IPhoneLine2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhoneLine2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0167f56a_5344_5d64_8af3_a31a950e916a); -} +::windows_core::imp::com_interface!(IPhoneLine2, IPhoneLine2_Vtbl, 0x0167f56a_5344_5d64_8af3_a31a950e916a); #[repr(C)] #[doc(hidden)] pub struct IPhoneLine2_Vtbl { @@ -651,16 +390,7 @@ pub struct IPhoneLine2_Vtbl { EnableTextReply: usize, pub TransportDeviceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhoneLine3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhoneLine3 { - type Vtable = IPhoneLine3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhoneLine3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe2e33cf7_2406_57f3_826a_e5a5f40d6fb5); -} +::windows_core::imp::com_interface!(IPhoneLine3, IPhoneLine3_Vtbl, 0xe2e33cf7_2406_57f3_826a_e5a5f40d6fb5); #[repr(C)] #[doc(hidden)] pub struct IPhoneLine3_Vtbl { @@ -670,16 +400,7 @@ pub struct IPhoneLine3_Vtbl { pub GetAllActivePhoneCalls: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetAllActivePhoneCallsAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhoneLineCellularDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhoneLineCellularDetails { - type Vtable = IPhoneLineCellularDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhoneLineCellularDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x192601d5_147c_4769_b673_98a5ec8426cb); -} +::windows_core::imp::com_interface!(IPhoneLineCellularDetails, IPhoneLineCellularDetails_Vtbl, 0x192601d5_147c_4769_b673_98a5ec8426cb); #[repr(C)] #[doc(hidden)] pub struct IPhoneLineCellularDetails_Vtbl { @@ -690,16 +411,7 @@ pub struct IPhoneLineCellularDetails_Vtbl { pub RegistrationRejectCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows_core::HRESULT, pub GetNetworkOperatorDisplayText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, location: PhoneLineNetworkOperatorDisplayTextLocation, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhoneLineConfiguration(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhoneLineConfiguration { - type Vtable = IPhoneLineConfiguration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhoneLineConfiguration { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfe265862_f64f_4312_b2a8_4e257721aa95); -} +::windows_core::imp::com_interface!(IPhoneLineConfiguration, IPhoneLineConfiguration_Vtbl, 0xfe265862_f64f_4312_b2a8_4e257721aa95); #[repr(C)] #[doc(hidden)] pub struct IPhoneLineConfiguration_Vtbl { @@ -710,16 +422,7 @@ pub struct IPhoneLineConfiguration_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] ExtendedProperties: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhoneLineDialResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhoneLineDialResult { - type Vtable = IPhoneLineDialResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhoneLineDialResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe825a30a_5c7f_546f_b918_3ad2fe70fb34); -} +::windows_core::imp::com_interface!(IPhoneLineDialResult, IPhoneLineDialResult_Vtbl, 0xe825a30a_5c7f_546f_b918_3ad2fe70fb34); #[repr(C)] #[doc(hidden)] pub struct IPhoneLineDialResult_Vtbl { @@ -727,32 +430,14 @@ pub struct IPhoneLineDialResult_Vtbl { pub DialCallStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut PhoneCallOperationStatus) -> ::windows_core::HRESULT, pub DialedCall: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhoneLineStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhoneLineStatics { - type Vtable = IPhoneLineStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhoneLineStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf38b5f23_ceb0_404f_bcf2_ba9f697d8adf); -} +::windows_core::imp::com_interface!(IPhoneLineStatics, IPhoneLineStatics_Vtbl, 0xf38b5f23_ceb0_404f_bcf2_ba9f697d8adf); #[repr(C)] #[doc(hidden)] pub struct IPhoneLineStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub FromIdAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lineid: ::windows_core::GUID, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhoneLineTransportDevice(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhoneLineTransportDevice { - type Vtable = IPhoneLineTransportDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhoneLineTransportDevice { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xefa8f889_cffa_59f4_97e4_74705b7dc490); -} +::windows_core::imp::com_interface!(IPhoneLineTransportDevice, IPhoneLineTransportDevice_Vtbl, 0xefa8f889_cffa_59f4_97e4_74705b7dc490); #[repr(C)] #[doc(hidden)] pub struct IPhoneLineTransportDevice_Vtbl { @@ -777,16 +462,7 @@ pub struct IPhoneLineTransportDevice_Vtbl { pub Connect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub ConnectAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhoneLineTransportDevice2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhoneLineTransportDevice2 { - type Vtable = IPhoneLineTransportDevice2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhoneLineTransportDevice2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x64c885f2_ecf4_5761_8c04_3c248ce61690); -} +::windows_core::imp::com_interface!(IPhoneLineTransportDevice2, IPhoneLineTransportDevice2_Vtbl, 0x64c885f2_ecf4_5761_8c04_3c248ce61690); #[repr(C)] #[doc(hidden)] pub struct IPhoneLineTransportDevice2_Vtbl { @@ -798,16 +474,7 @@ pub struct IPhoneLineTransportDevice2_Vtbl { pub InBandRingingEnabledChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveInBandRingingEnabledChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhoneLineTransportDeviceStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhoneLineTransportDeviceStatics { - type Vtable = IPhoneLineTransportDeviceStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhoneLineTransportDeviceStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0f3121ac_d609_51a1_96f3_fb00d1819252); -} +::windows_core::imp::com_interface!(IPhoneLineTransportDeviceStatics, IPhoneLineTransportDeviceStatics_Vtbl, 0x0f3121ac_d609_51a1_96f3_fb00d1819252); #[repr(C)] #[doc(hidden)] pub struct IPhoneLineTransportDeviceStatics_Vtbl { @@ -816,16 +483,7 @@ pub struct IPhoneLineTransportDeviceStatics_Vtbl { pub GetDeviceSelector: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub GetDeviceSelectorForPhoneLineTransport: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, transport: PhoneLineTransport, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhoneLineWatcher(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhoneLineWatcher { - type Vtable = IPhoneLineWatcher_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhoneLineWatcher { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8a45cd0a_6323_44e0_a6f6_9f21f64dc90a); -} +::windows_core::imp::com_interface!(IPhoneLineWatcher, IPhoneLineWatcher_Vtbl, 0x8a45cd0a_6323_44e0_a6f6_9f21f64dc90a); #[repr(C)] #[doc(hidden)] pub struct IPhoneLineWatcher_Vtbl { @@ -844,32 +502,14 @@ pub struct IPhoneLineWatcher_Vtbl { pub RemoveStopped: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut PhoneLineWatcherStatus) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhoneLineWatcherEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhoneLineWatcherEventArgs { - type Vtable = IPhoneLineWatcherEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhoneLineWatcherEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd07c753e_9e12_4a37_82b7_ad535dad6a67); -} +::windows_core::imp::com_interface!(IPhoneLineWatcherEventArgs, IPhoneLineWatcherEventArgs_Vtbl, 0xd07c753e_9e12_4a37_82b7_ad535dad6a67); #[repr(C)] #[doc(hidden)] pub struct IPhoneLineWatcherEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub LineId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhoneVoicemail(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhoneVoicemail { - type Vtable = IPhoneVoicemail_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhoneVoicemail { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc9ce77f6_6e9f_3a8b_b727_6e0cf6998224); -} +::windows_core::imp::com_interface!(IPhoneVoicemail, IPhoneVoicemail_Vtbl, 0xc9ce77f6_6e9f_3a8b_b727_6e0cf6998224); #[repr(C)] #[doc(hidden)] pub struct IPhoneVoicemail_Vtbl { @@ -879,16 +519,7 @@ pub struct IPhoneVoicemail_Vtbl { pub Type: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut PhoneVoicemailType) -> ::windows_core::HRESULT, pub DialVoicemailAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVoipCallCoordinator(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVoipCallCoordinator { - type Vtable = IVoipCallCoordinator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVoipCallCoordinator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4f118bcf_e8ef_4434_9c5f_a8d893fafe79); -} +::windows_core::imp::com_interface!(IVoipCallCoordinator, IVoipCallCoordinator_Vtbl, 0x4f118bcf_e8ef_4434_9c5f_a8d893fafe79); #[repr(C)] #[doc(hidden)] pub struct IVoipCallCoordinator_Vtbl { @@ -905,32 +536,14 @@ pub struct IVoipCallCoordinator_Vtbl { pub TerminateCellularCall: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, callupgradeguid: ::windows_core::GUID) -> ::windows_core::HRESULT, pub CancelUpgrade: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, callupgradeguid: ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVoipCallCoordinator2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVoipCallCoordinator2 { - type Vtable = IVoipCallCoordinator2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVoipCallCoordinator2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbeb4a9f3_c704_4234_89ce_e88cc0d28fbe); -} +::windows_core::imp::com_interface!(IVoipCallCoordinator2, IVoipCallCoordinator2_Vtbl, 0xbeb4a9f3_c704_4234_89ce_e88cc0d28fbe); #[repr(C)] #[doc(hidden)] pub struct IVoipCallCoordinator2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub SetupNewAcceptedCall: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: ::std::mem::MaybeUninit<::windows_core::HSTRING>, contactname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, contactnumber: ::std::mem::MaybeUninit<::windows_core::HSTRING>, servicename: ::std::mem::MaybeUninit<::windows_core::HSTRING>, media: VoipPhoneCallMedia, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVoipCallCoordinator3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVoipCallCoordinator3 { - type Vtable = IVoipCallCoordinator3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVoipCallCoordinator3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x338d0cbf_9b55_4021_87ca_e64b9bd666c7); -} +::windows_core::imp::com_interface!(IVoipCallCoordinator3, IVoipCallCoordinator3_Vtbl, 0x338d0cbf_9b55_4021_87ca_e64b9bd666c7); #[repr(C)] #[doc(hidden)] pub struct IVoipCallCoordinator3_Vtbl { @@ -938,48 +551,21 @@ pub struct IVoipCallCoordinator3_Vtbl { pub RequestNewAppInitiatedCall: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: ::std::mem::MaybeUninit<::windows_core::HSTRING>, contactname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, contactnumber: ::std::mem::MaybeUninit<::windows_core::HSTRING>, servicename: ::std::mem::MaybeUninit<::windows_core::HSTRING>, media: VoipPhoneCallMedia, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RequestNewIncomingCallWithContactRemoteId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: ::std::mem::MaybeUninit<::windows_core::HSTRING>, contactname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, contactnumber: ::std::mem::MaybeUninit<::windows_core::HSTRING>, contactimage: *mut ::core::ffi::c_void, servicename: ::std::mem::MaybeUninit<::windows_core::HSTRING>, brandingimage: *mut ::core::ffi::c_void, calldetails: ::std::mem::MaybeUninit<::windows_core::HSTRING>, ringtone: *mut ::core::ffi::c_void, media: VoipPhoneCallMedia, ringtimeout: super::super::Foundation::TimeSpan, contactremoteid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVoipCallCoordinator4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVoipCallCoordinator4 { - type Vtable = IVoipCallCoordinator4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVoipCallCoordinator4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x83737239_9311_468f_bb49_47e0dfb5d93e); -} +::windows_core::imp::com_interface!(IVoipCallCoordinator4, IVoipCallCoordinator4_Vtbl, 0x83737239_9311_468f_bb49_47e0dfb5d93e); #[repr(C)] #[doc(hidden)] pub struct IVoipCallCoordinator4_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ReserveOneProcessCallResourcesAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVoipCallCoordinatorStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVoipCallCoordinatorStatics { - type Vtable = IVoipCallCoordinatorStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVoipCallCoordinatorStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7f5d1f2b_e04a_4d10_b31a_a55c922cc2fb); -} +::windows_core::imp::com_interface!(IVoipCallCoordinatorStatics, IVoipCallCoordinatorStatics_Vtbl, 0x7f5d1f2b_e04a_4d10_b31a_a55c922cc2fb); #[repr(C)] #[doc(hidden)] pub struct IVoipCallCoordinatorStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetDefault: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVoipPhoneCall(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVoipPhoneCall { - type Vtable = IVoipPhoneCall_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVoipPhoneCall { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6cf1f19a_7794_4a5a_8c68_ae87947a6990); -} +::windows_core::imp::com_interface!(IVoipPhoneCall, IVoipPhoneCall_Vtbl, 0x6cf1f19a_7794_4a5a_8c68_ae87947a6990); #[repr(C)] #[doc(hidden)] pub struct IVoipPhoneCall_Vtbl { @@ -1005,32 +591,14 @@ pub struct IVoipPhoneCall_Vtbl { pub SetCallMedia: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: VoipPhoneCallMedia) -> ::windows_core::HRESULT, pub NotifyCallReady: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVoipPhoneCall2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVoipPhoneCall2 { - type Vtable = IVoipPhoneCall2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVoipPhoneCall2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x741b46e1_245f_41f3_9399_3141d25b52e3); -} +::windows_core::imp::com_interface!(IVoipPhoneCall2, IVoipPhoneCall2_Vtbl, 0x741b46e1_245f_41f3_9399_3141d25b52e3); #[repr(C)] #[doc(hidden)] pub struct IVoipPhoneCall2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub TryShowAppUI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVoipPhoneCall3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVoipPhoneCall3 { - type Vtable = IVoipPhoneCall3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVoipPhoneCall3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0d891522_e258_4aa9_907a_1aa413c25523); -} +::windows_core::imp::com_interface!(IVoipPhoneCall3, IVoipPhoneCall3_Vtbl, 0x0d891522_e258_4aa9_907a_1aa413c25523); #[repr(C)] #[doc(hidden)] pub struct IVoipPhoneCall3_Vtbl { @@ -1040,6 +608,7 @@ pub struct IVoipPhoneCall3_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CallAnswerEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CallAnswerEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CallAnswerEventArgs { pub fn AcceptedMedia(&self) -> ::windows_core::Result { let this = self; @@ -1054,19 +623,17 @@ impl ::windows_core::RuntimeType for CallAnswerEventArgs { } unsafe impl ::windows_core::Interface for CallAnswerEventArgs { type Vtable = ICallAnswerEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CallAnswerEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CallAnswerEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Calls.CallAnswerEventArgs"; } -::windows_core::imp::interface_hierarchy!(CallAnswerEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CallAnswerEventArgs {} unsafe impl ::core::marker::Sync for CallAnswerEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CallRejectEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CallRejectEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CallRejectEventArgs { pub fn RejectReason(&self) -> ::windows_core::Result { let this = self; @@ -1081,19 +648,17 @@ impl ::windows_core::RuntimeType for CallRejectEventArgs { } unsafe impl ::windows_core::Interface for CallRejectEventArgs { type Vtable = ICallRejectEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CallRejectEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CallRejectEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Calls.CallRejectEventArgs"; } -::windows_core::imp::interface_hierarchy!(CallRejectEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CallRejectEventArgs {} unsafe impl ::core::marker::Sync for CallRejectEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CallStateChangeEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CallStateChangeEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CallStateChangeEventArgs { pub fn State(&self) -> ::windows_core::Result { let this = self; @@ -1108,19 +673,17 @@ impl ::windows_core::RuntimeType for CallStateChangeEventArgs { } unsafe impl ::windows_core::Interface for CallStateChangeEventArgs { type Vtable = ICallStateChangeEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CallStateChangeEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CallStateChangeEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Calls.CallStateChangeEventArgs"; } -::windows_core::imp::interface_hierarchy!(CallStateChangeEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CallStateChangeEventArgs {} unsafe impl ::core::marker::Sync for CallStateChangeEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LockScreenCallEndCallDeferral(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LockScreenCallEndCallDeferral, ::windows_core::IUnknown, ::windows_core::IInspectable); impl LockScreenCallEndCallDeferral { pub fn Complete(&self) -> ::windows_core::Result<()> { let this = self; @@ -1132,19 +695,17 @@ impl ::windows_core::RuntimeType for LockScreenCallEndCallDeferral { } unsafe impl ::windows_core::Interface for LockScreenCallEndCallDeferral { type Vtable = ILockScreenCallEndCallDeferral_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LockScreenCallEndCallDeferral { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LockScreenCallEndCallDeferral { const NAME: &'static str = "Windows.ApplicationModel.Calls.LockScreenCallEndCallDeferral"; } -::windows_core::imp::interface_hierarchy!(LockScreenCallEndCallDeferral, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for LockScreenCallEndCallDeferral {} unsafe impl ::core::marker::Sync for LockScreenCallEndCallDeferral {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LockScreenCallEndRequestedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LockScreenCallEndRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl LockScreenCallEndRequestedEventArgs { pub fn GetDeferral(&self) -> ::windows_core::Result { let this = self; @@ -1166,19 +727,17 @@ impl ::windows_core::RuntimeType for LockScreenCallEndRequestedEventArgs { } unsafe impl ::windows_core::Interface for LockScreenCallEndRequestedEventArgs { type Vtable = ILockScreenCallEndRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LockScreenCallEndRequestedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LockScreenCallEndRequestedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Calls.LockScreenCallEndRequestedEventArgs"; } -::windows_core::imp::interface_hierarchy!(LockScreenCallEndRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for LockScreenCallEndRequestedEventArgs {} unsafe impl ::core::marker::Sync for LockScreenCallEndRequestedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LockScreenCallUI(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LockScreenCallUI, ::windows_core::IUnknown, ::windows_core::IInspectable); impl LockScreenCallUI { pub fn Dismiss(&self) -> ::windows_core::Result<()> { let this = self; @@ -1229,19 +788,17 @@ impl ::windows_core::RuntimeType for LockScreenCallUI { } unsafe impl ::windows_core::Interface for LockScreenCallUI { type Vtable = ILockScreenCallUI_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LockScreenCallUI { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LockScreenCallUI { const NAME: &'static str = "Windows.ApplicationModel.Calls.LockScreenCallUI"; } -::windows_core::imp::interface_hierarchy!(LockScreenCallUI, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for LockScreenCallUI {} unsafe impl ::core::marker::Sync for LockScreenCallUI {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MuteChangeEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MuteChangeEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MuteChangeEventArgs { pub fn Muted(&self) -> ::windows_core::Result { let this = self; @@ -1256,19 +813,17 @@ impl ::windows_core::RuntimeType for MuteChangeEventArgs { } unsafe impl ::windows_core::Interface for MuteChangeEventArgs { type Vtable = IMuteChangeEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MuteChangeEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MuteChangeEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Calls.MuteChangeEventArgs"; } -::windows_core::imp::interface_hierarchy!(MuteChangeEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MuteChangeEventArgs {} unsafe impl ::core::marker::Sync for MuteChangeEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PhoneCall(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PhoneCall, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PhoneCall { pub fn StatusChanged(&self, handler: P0) -> ::windows_core::Result where @@ -1497,14 +1052,11 @@ impl ::windows_core::RuntimeType for PhoneCall { } unsafe impl ::windows_core::Interface for PhoneCall { type Vtable = IPhoneCall_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PhoneCall { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PhoneCall { const NAME: &'static str = "Windows.ApplicationModel.Calls.PhoneCall"; } -::windows_core::imp::interface_hierarchy!(PhoneCall, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PhoneCall {} unsafe impl ::core::marker::Sync for PhoneCall {} pub struct PhoneCallBlocking; @@ -1531,11 +1083,11 @@ impl PhoneCallBlocking { #[cfg(feature = "Foundation_Collections")] pub fn SetCallBlockingListAsync(phonenumberlist: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::IPhoneCallBlockingStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).SetCallBlockingListAsync)(::windows_core::Interface::as_raw(this), phonenumberlist.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SetCallBlockingListAsync)(::windows_core::Interface::as_raw(this), phonenumberlist.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -1550,6 +1102,7 @@ impl ::windows_core::RuntimeName for PhoneCallBlocking { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PhoneCallHistoryEntry(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PhoneCallHistoryEntry, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PhoneCallHistoryEntry { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1588,10 +1141,10 @@ impl PhoneCallHistoryEntry { } pub fn SetDuration(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetDuration)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetDuration)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn IsCallerIdBlocked(&self) -> ::windows_core::Result { let this = self; @@ -1760,19 +1313,17 @@ impl ::windows_core::RuntimeType for PhoneCallHistoryEntry { } unsafe impl ::windows_core::Interface for PhoneCallHistoryEntry { type Vtable = IPhoneCallHistoryEntry_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PhoneCallHistoryEntry { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PhoneCallHistoryEntry { const NAME: &'static str = "Windows.ApplicationModel.Calls.PhoneCallHistoryEntry"; } -::windows_core::imp::interface_hierarchy!(PhoneCallHistoryEntry, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PhoneCallHistoryEntry {} unsafe impl ::core::marker::Sync for PhoneCallHistoryEntry {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PhoneCallHistoryEntryAddress(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PhoneCallHistoryEntryAddress, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PhoneCallHistoryEntryAddress { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1842,19 +1393,17 @@ impl ::windows_core::RuntimeType for PhoneCallHistoryEntryAddress { } unsafe impl ::windows_core::Interface for PhoneCallHistoryEntryAddress { type Vtable = IPhoneCallHistoryEntryAddress_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PhoneCallHistoryEntryAddress { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PhoneCallHistoryEntryAddress { const NAME: &'static str = "Windows.ApplicationModel.Calls.PhoneCallHistoryEntryAddress"; } -::windows_core::imp::interface_hierarchy!(PhoneCallHistoryEntryAddress, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PhoneCallHistoryEntryAddress {} unsafe impl ::core::marker::Sync for PhoneCallHistoryEntryAddress {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PhoneCallHistoryEntryQueryOptions(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PhoneCallHistoryEntryQueryOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PhoneCallHistoryEntryQueryOptions { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1889,19 +1438,17 @@ impl ::windows_core::RuntimeType for PhoneCallHistoryEntryQueryOptions { } unsafe impl ::windows_core::Interface for PhoneCallHistoryEntryQueryOptions { type Vtable = IPhoneCallHistoryEntryQueryOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PhoneCallHistoryEntryQueryOptions { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PhoneCallHistoryEntryQueryOptions { const NAME: &'static str = "Windows.ApplicationModel.Calls.PhoneCallHistoryEntryQueryOptions"; } -::windows_core::imp::interface_hierarchy!(PhoneCallHistoryEntryQueryOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PhoneCallHistoryEntryQueryOptions {} unsafe impl ::core::marker::Sync for PhoneCallHistoryEntryQueryOptions {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PhoneCallHistoryEntryReader(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PhoneCallHistoryEntryReader, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PhoneCallHistoryEntryReader { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -1918,14 +1465,11 @@ impl ::windows_core::RuntimeType for PhoneCallHistoryEntryReader { } unsafe impl ::windows_core::Interface for PhoneCallHistoryEntryReader { type Vtable = IPhoneCallHistoryEntryReader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PhoneCallHistoryEntryReader { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PhoneCallHistoryEntryReader { const NAME: &'static str = "Windows.ApplicationModel.Calls.PhoneCallHistoryEntryReader"; } -::windows_core::imp::interface_hierarchy!(PhoneCallHistoryEntryReader, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PhoneCallHistoryEntryReader {} unsafe impl ::core::marker::Sync for PhoneCallHistoryEntryReader {} pub struct PhoneCallHistoryManager; @@ -1964,6 +1508,7 @@ impl ::windows_core::RuntimeName for PhoneCallHistoryManager { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PhoneCallHistoryManagerForUser(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PhoneCallHistoryManagerForUser, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PhoneCallHistoryManagerForUser { pub fn RequestStoreAsync(&self, accesstype: PhoneCallHistoryStoreAccessType) -> ::windows_core::Result> { let this = self; @@ -1987,19 +1532,17 @@ impl ::windows_core::RuntimeType for PhoneCallHistoryManagerForUser { } unsafe impl ::windows_core::Interface for PhoneCallHistoryManagerForUser { type Vtable = IPhoneCallHistoryManagerForUser_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PhoneCallHistoryManagerForUser { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PhoneCallHistoryManagerForUser { const NAME: &'static str = "Windows.ApplicationModel.Calls.PhoneCallHistoryManagerForUser"; } -::windows_core::imp::interface_hierarchy!(PhoneCallHistoryManagerForUser, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PhoneCallHistoryManagerForUser {} unsafe impl ::core::marker::Sync for PhoneCallHistoryManagerForUser {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PhoneCallHistoryStore(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PhoneCallHistoryStore, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PhoneCallHistoryStore { pub fn GetEntryAsync(&self, callhistoryentryid: &::windows_core::HSTRING) -> ::windows_core::Result> { let this = self; @@ -2049,12 +1592,12 @@ impl PhoneCallHistoryStore { #[cfg(feature = "Foundation_Collections")] pub fn DeleteEntriesAsync(&self, callhistoryentries: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).DeleteEntriesAsync)(::windows_core::Interface::as_raw(this), callhistoryentries.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).DeleteEntriesAsync)(::windows_core::Interface::as_raw(this), callhistoryentries.into_param().abi(), &mut result__).from_abi(result__) } } pub fn MarkEntryAsSeenAsync(&self, callhistoryentry: P0) -> ::windows_core::Result @@ -2071,12 +1614,12 @@ impl PhoneCallHistoryStore { #[cfg(feature = "Foundation_Collections")] pub fn MarkEntriesAsSeenAsync(&self, callhistoryentries: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).MarkEntriesAsSeenAsync)(::windows_core::Interface::as_raw(this), callhistoryentries.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).MarkEntriesAsSeenAsync)(::windows_core::Interface::as_raw(this), callhistoryentries.into_param().abi(), &mut result__).from_abi(result__) } } pub fn GetUnseenCountAsync(&self) -> ::windows_core::Result> { @@ -2097,24 +1640,24 @@ impl PhoneCallHistoryStore { #[cfg(feature = "Foundation_Collections")] pub fn GetSourcesUnseenCountAsync(&self, sourceids: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).GetSourcesUnseenCountAsync)(::windows_core::Interface::as_raw(this), sourceids.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).GetSourcesUnseenCountAsync)(::windows_core::Interface::as_raw(this), sourceids.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn MarkSourcesAsSeenAsync(&self, sourceids: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).MarkSourcesAsSeenAsync)(::windows_core::Interface::as_raw(this), sourceids.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).MarkSourcesAsSeenAsync)(::windows_core::Interface::as_raw(this), sourceids.into_param().abi(), &mut result__).from_abi(result__) } } } @@ -2123,19 +1666,17 @@ impl ::windows_core::RuntimeType for PhoneCallHistoryStore { } unsafe impl ::windows_core::Interface for PhoneCallHistoryStore { type Vtable = IPhoneCallHistoryStore_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PhoneCallHistoryStore { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PhoneCallHistoryStore { const NAME: &'static str = "Windows.ApplicationModel.Calls.PhoneCallHistoryStore"; } -::windows_core::imp::interface_hierarchy!(PhoneCallHistoryStore, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PhoneCallHistoryStore {} unsafe impl ::core::marker::Sync for PhoneCallHistoryStore {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PhoneCallInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PhoneCallInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PhoneCallInfo { pub fn LineId(&self) -> ::windows_core::Result<::windows_core::GUID> { let this = self; @@ -2185,14 +1726,11 @@ impl ::windows_core::RuntimeType for PhoneCallInfo { } unsafe impl ::windows_core::Interface for PhoneCallInfo { type Vtable = IPhoneCallInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PhoneCallInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PhoneCallInfo { const NAME: &'static str = "Windows.ApplicationModel.Calls.PhoneCallInfo"; } -::windows_core::imp::interface_hierarchy!(PhoneCallInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PhoneCallInfo {} unsafe impl ::core::marker::Sync for PhoneCallInfo {} pub struct PhoneCallManager; @@ -2250,6 +1788,7 @@ impl ::windows_core::RuntimeName for PhoneCallManager { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PhoneCallStore(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PhoneCallStore, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PhoneCallStore { pub fn IsEmergencyPhoneNumberAsync(&self, number: &::windows_core::HSTRING) -> ::windows_core::Result> { let this = self; @@ -2278,19 +1817,17 @@ impl ::windows_core::RuntimeType for PhoneCallStore { } unsafe impl ::windows_core::Interface for PhoneCallStore { type Vtable = IPhoneCallStore_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PhoneCallStore { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PhoneCallStore { const NAME: &'static str = "Windows.ApplicationModel.Calls.PhoneCallStore"; } -::windows_core::imp::interface_hierarchy!(PhoneCallStore, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PhoneCallStore {} unsafe impl ::core::marker::Sync for PhoneCallStore {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PhoneCallVideoCapabilities(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PhoneCallVideoCapabilities, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PhoneCallVideoCapabilities { pub fn IsVideoCallingCapable(&self) -> ::windows_core::Result { let this = self; @@ -2305,14 +1842,11 @@ impl ::windows_core::RuntimeType for PhoneCallVideoCapabilities { } unsafe impl ::windows_core::Interface for PhoneCallVideoCapabilities { type Vtable = IPhoneCallVideoCapabilities_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PhoneCallVideoCapabilities { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PhoneCallVideoCapabilities { const NAME: &'static str = "Windows.ApplicationModel.Calls.PhoneCallVideoCapabilities"; } -::windows_core::imp::interface_hierarchy!(PhoneCallVideoCapabilities, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PhoneCallVideoCapabilities {} unsafe impl ::core::marker::Sync for PhoneCallVideoCapabilities {} pub struct PhoneCallVideoCapabilitiesManager; @@ -2335,6 +1869,7 @@ impl ::windows_core::RuntimeName for PhoneCallVideoCapabilitiesManager { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PhoneCallsResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PhoneCallsResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PhoneCallsResult { pub fn OperationStatus(&self) -> ::windows_core::Result { let this = self; @@ -2358,19 +1893,17 @@ impl ::windows_core::RuntimeType for PhoneCallsResult { } unsafe impl ::windows_core::Interface for PhoneCallsResult { type Vtable = IPhoneCallsResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PhoneCallsResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PhoneCallsResult { const NAME: &'static str = "Windows.ApplicationModel.Calls.PhoneCallsResult"; } -::windows_core::imp::interface_hierarchy!(PhoneCallsResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PhoneCallsResult {} unsafe impl ::core::marker::Sync for PhoneCallsResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PhoneDialOptions(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PhoneDialOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PhoneDialOptions { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2465,19 +1998,17 @@ impl ::windows_core::RuntimeType for PhoneDialOptions { } unsafe impl ::windows_core::Interface for PhoneDialOptions { type Vtable = IPhoneDialOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PhoneDialOptions { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PhoneDialOptions { const NAME: &'static str = "Windows.ApplicationModel.Calls.PhoneDialOptions"; } -::windows_core::imp::interface_hierarchy!(PhoneDialOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PhoneDialOptions {} unsafe impl ::core::marker::Sync for PhoneDialOptions {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PhoneLine(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PhoneLine, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PhoneLine { pub fn LineChanged(&self, handler: P0) -> ::windows_core::Result where @@ -2600,39 +2131,39 @@ impl PhoneLine { #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] pub fn EnableTextReply(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).EnableTextReply)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn TransportDeviceId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TransportDeviceId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn DialWithResult(&self, number: &::windows_core::HSTRING, displayname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DialWithResult)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(number), ::core::mem::transmute_copy(displayname), &mut result__).from_abi(result__) } } pub fn DialWithResultAsync(&self, number: &::windows_core::HSTRING, displayname: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DialWithResultAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(number), ::core::mem::transmute_copy(displayname), &mut result__).from_abi(result__) } } pub fn GetAllActivePhoneCalls(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetAllActivePhoneCalls)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetAllActivePhoneCallsAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetAllActivePhoneCallsAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2655,19 +2186,17 @@ impl ::windows_core::RuntimeType for PhoneLine { } unsafe impl ::windows_core::Interface for PhoneLine { type Vtable = IPhoneLine_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PhoneLine { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PhoneLine { const NAME: &'static str = "Windows.ApplicationModel.Calls.PhoneLine"; } -::windows_core::imp::interface_hierarchy!(PhoneLine, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PhoneLine {} unsafe impl ::core::marker::Sync for PhoneLine {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PhoneLineCellularDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PhoneLineCellularDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PhoneLineCellularDetails { pub fn SimState(&self) -> ::windows_core::Result { let this = self; @@ -2710,19 +2239,17 @@ impl ::windows_core::RuntimeType for PhoneLineCellularDetails { } unsafe impl ::windows_core::Interface for PhoneLineCellularDetails { type Vtable = IPhoneLineCellularDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PhoneLineCellularDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PhoneLineCellularDetails { const NAME: &'static str = "Windows.ApplicationModel.Calls.PhoneLineCellularDetails"; } -::windows_core::imp::interface_hierarchy!(PhoneLineCellularDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PhoneLineCellularDetails {} unsafe impl ::core::marker::Sync for PhoneLineCellularDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PhoneLineConfiguration(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PhoneLineConfiguration, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PhoneLineConfiguration { pub fn IsVideoCallingEnabled(&self) -> ::windows_core::Result { let this = self; @@ -2746,19 +2273,17 @@ impl ::windows_core::RuntimeType for PhoneLineConfiguration { } unsafe impl ::windows_core::Interface for PhoneLineConfiguration { type Vtable = IPhoneLineConfiguration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PhoneLineConfiguration { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PhoneLineConfiguration { const NAME: &'static str = "Windows.ApplicationModel.Calls.PhoneLineConfiguration"; } -::windows_core::imp::interface_hierarchy!(PhoneLineConfiguration, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PhoneLineConfiguration {} unsafe impl ::core::marker::Sync for PhoneLineConfiguration {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PhoneLineDialResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PhoneLineDialResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PhoneLineDialResult { pub fn DialCallStatus(&self) -> ::windows_core::Result { let this = self; @@ -2780,19 +2305,17 @@ impl ::windows_core::RuntimeType for PhoneLineDialResult { } unsafe impl ::windows_core::Interface for PhoneLineDialResult { type Vtable = IPhoneLineDialResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PhoneLineDialResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PhoneLineDialResult { const NAME: &'static str = "Windows.ApplicationModel.Calls.PhoneLineDialResult"; } -::windows_core::imp::interface_hierarchy!(PhoneLineDialResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PhoneLineDialResult {} unsafe impl ::core::marker::Sync for PhoneLineDialResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PhoneLineTransportDevice(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PhoneLineTransportDevice, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PhoneLineTransportDevice { pub fn DeviceId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -2865,7 +2388,7 @@ impl PhoneLineTransportDevice { } } pub fn AudioRoutingStatus(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AudioRoutingStatus)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2875,18 +2398,18 @@ impl PhoneLineTransportDevice { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveAudioRoutingStatusChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveAudioRoutingStatusChanged)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn InBandRingingEnabled(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).InBandRingingEnabled)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2896,14 +2419,14 @@ impl PhoneLineTransportDevice { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveInBandRingingEnabledChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveInBandRingingEnabledChanged)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn FromId(id: &::windows_core::HSTRING) -> ::windows_core::Result { @@ -2935,19 +2458,17 @@ impl ::windows_core::RuntimeType for PhoneLineTransportDevice { } unsafe impl ::windows_core::Interface for PhoneLineTransportDevice { type Vtable = IPhoneLineTransportDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PhoneLineTransportDevice { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PhoneLineTransportDevice { const NAME: &'static str = "Windows.ApplicationModel.Calls.PhoneLineTransportDevice"; } -::windows_core::imp::interface_hierarchy!(PhoneLineTransportDevice, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PhoneLineTransportDevice {} unsafe impl ::core::marker::Sync for PhoneLineTransportDevice {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PhoneLineWatcher(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PhoneLineWatcher, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PhoneLineWatcher { pub fn Start(&self) -> ::windows_core::Result<()> { let this = self; @@ -3040,19 +2561,17 @@ impl ::windows_core::RuntimeType for PhoneLineWatcher { } unsafe impl ::windows_core::Interface for PhoneLineWatcher { type Vtable = IPhoneLineWatcher_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PhoneLineWatcher { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PhoneLineWatcher { const NAME: &'static str = "Windows.ApplicationModel.Calls.PhoneLineWatcher"; } -::windows_core::imp::interface_hierarchy!(PhoneLineWatcher, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PhoneLineWatcher {} unsafe impl ::core::marker::Sync for PhoneLineWatcher {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PhoneLineWatcherEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PhoneLineWatcherEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PhoneLineWatcherEventArgs { pub fn LineId(&self) -> ::windows_core::Result<::windows_core::GUID> { let this = self; @@ -3067,19 +2586,17 @@ impl ::windows_core::RuntimeType for PhoneLineWatcherEventArgs { } unsafe impl ::windows_core::Interface for PhoneLineWatcherEventArgs { type Vtable = IPhoneLineWatcherEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PhoneLineWatcherEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PhoneLineWatcherEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Calls.PhoneLineWatcherEventArgs"; } -::windows_core::imp::interface_hierarchy!(PhoneLineWatcherEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PhoneLineWatcherEventArgs {} unsafe impl ::core::marker::Sync for PhoneLineWatcherEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PhoneVoicemail(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PhoneVoicemail, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PhoneVoicemail { pub fn Number(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -3115,19 +2632,17 @@ impl ::windows_core::RuntimeType for PhoneVoicemail { } unsafe impl ::windows_core::Interface for PhoneVoicemail { type Vtable = IPhoneVoicemail_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PhoneVoicemail { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PhoneVoicemail { const NAME: &'static str = "Windows.ApplicationModel.Calls.PhoneVoicemail"; } -::windows_core::imp::interface_hierarchy!(PhoneVoicemail, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PhoneVoicemail {} unsafe impl ::core::marker::Sync for PhoneVoicemail {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VoipCallCoordinator(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VoipCallCoordinator, ::windows_core::IUnknown, ::windows_core::IInspectable); impl VoipCallCoordinator { pub fn ReserveCallResourcesAsync(&self, taskentrypoint: &::windows_core::HSTRING) -> ::windows_core::Result> { let this = self; @@ -3205,14 +2720,14 @@ impl VoipCallCoordinator { unsafe { (::windows_core::Interface::vtable(this).CancelUpgrade)(::windows_core::Interface::as_raw(this), callupgradeguid).ok() } } pub fn SetupNewAcceptedCall(&self, context: &::windows_core::HSTRING, contactname: &::windows_core::HSTRING, contactnumber: &::windows_core::HSTRING, servicename: &::windows_core::HSTRING, media: VoipPhoneCallMedia) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SetupNewAcceptedCall)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(context), ::core::mem::transmute_copy(contactname), ::core::mem::transmute_copy(contactnumber), ::core::mem::transmute_copy(servicename), media, &mut result__).from_abi(result__) } } pub fn RequestNewAppInitiatedCall(&self, context: &::windows_core::HSTRING, contactname: &::windows_core::HSTRING, contactnumber: &::windows_core::HSTRING, servicename: &::windows_core::HSTRING, media: VoipPhoneCallMedia) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RequestNewAppInitiatedCall)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(context), ::core::mem::transmute_copy(contactname), ::core::mem::transmute_copy(contactnumber), ::core::mem::transmute_copy(servicename), media, &mut result__).from_abi(result__) @@ -3224,14 +2739,14 @@ impl VoipCallCoordinator { P1: ::windows_core::IntoParam, P2: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn ReserveOneProcessCallResourcesAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ReserveOneProcessCallResourcesAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3254,19 +2769,17 @@ impl ::windows_core::RuntimeType for VoipCallCoordinator { } unsafe impl ::windows_core::Interface for VoipCallCoordinator { type Vtable = IVoipCallCoordinator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VoipCallCoordinator { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VoipCallCoordinator { const NAME: &'static str = "Windows.ApplicationModel.Calls.VoipCallCoordinator"; } -::windows_core::imp::interface_hierarchy!(VoipCallCoordinator, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for VoipCallCoordinator {} unsafe impl ::core::marker::Sync for VoipCallCoordinator {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VoipPhoneCall(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VoipPhoneCall, ::windows_core::IUnknown, ::windows_core::IInspectable); impl VoipPhoneCall { pub fn EndRequested(&self, handler: P0) -> ::windows_core::Result where @@ -3388,11 +2901,11 @@ impl VoipPhoneCall { unsafe { (::windows_core::Interface::vtable(this).NotifyCallReady)(::windows_core::Interface::as_raw(this)).ok() } } pub fn TryShowAppUI(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).TryShowAppUI)(::windows_core::Interface::as_raw(this)).ok() } } pub fn NotifyCallAccepted(&self, media: VoipPhoneCallMedia) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).NotifyCallAccepted)(::windows_core::Interface::as_raw(this), media).ok() } } } @@ -3401,14 +2914,11 @@ impl ::windows_core::RuntimeType for VoipPhoneCall { } unsafe impl ::windows_core::Interface for VoipPhoneCall { type Vtable = IVoipPhoneCall_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VoipPhoneCall { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VoipPhoneCall { const NAME: &'static str = "Windows.ApplicationModel.Calls.VoipPhoneCall"; } -::windows_core::imp::interface_hierarchy!(VoipPhoneCall, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for VoipPhoneCall {} unsafe impl ::core::marker::Sync for VoipPhoneCall {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Chat/impl.rs b/crates/libs/windows/src/Windows/ApplicationModel/Chat/impl.rs index 226dc44bb9..1dd26a5231 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Chat/impl.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Chat/impl.rs @@ -20,6 +20,6 @@ impl IChatItem_Vtbl { Self { base__: ::windows_core::IInspectable_Vtbl::new::(), ItemKind: ItemKind:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs index 98a7b1b0e5..e8f1f6dd95 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IChatCapabilities(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IChatCapabilities { - type Vtable = IChatCapabilities_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IChatCapabilities { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3aff77bc_39c9_4dd1_ad2d_3964dd9d403f); -} +::windows_core::imp::com_interface!(IChatCapabilities, IChatCapabilities_Vtbl, 0x3aff77bc_39c9_4dd1_ad2d_3964dd9d403f); #[repr(C)] #[doc(hidden)] pub struct IChatCapabilities_Vtbl { @@ -18,16 +9,7 @@ pub struct IChatCapabilities_Vtbl { pub IsGeoLocationPushCapable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub IsIntegratedMessagingCapable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IChatCapabilitiesManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IChatCapabilitiesManagerStatics { - type Vtable = IChatCapabilitiesManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IChatCapabilitiesManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb57a2f30_7041_458e_b0cf_7c0d9fea333a); -} +::windows_core::imp::com_interface!(IChatCapabilitiesManagerStatics, IChatCapabilitiesManagerStatics_Vtbl, 0xb57a2f30_7041_458e_b0cf_7c0d9fea333a); #[repr(C)] #[doc(hidden)] pub struct IChatCapabilitiesManagerStatics_Vtbl { @@ -35,16 +17,7 @@ pub struct IChatCapabilitiesManagerStatics_Vtbl { pub GetCachedCapabilitiesAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, address: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetCapabilitiesFromNetworkAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, address: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IChatCapabilitiesManagerStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IChatCapabilitiesManagerStatics2 { - type Vtable = IChatCapabilitiesManagerStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IChatCapabilitiesManagerStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe30d4274_d5c1_4ac9_9ffc_40e69184fec8); -} +::windows_core::imp::com_interface!(IChatCapabilitiesManagerStatics2, IChatCapabilitiesManagerStatics2_Vtbl, 0xe30d4274_d5c1_4ac9_9ffc_40e69184fec8); #[repr(C)] #[doc(hidden)] pub struct IChatCapabilitiesManagerStatics2_Vtbl { @@ -52,16 +25,7 @@ pub struct IChatCapabilitiesManagerStatics2_Vtbl { pub GetCachedCapabilitiesForTransportAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, address: ::std::mem::MaybeUninit<::windows_core::HSTRING>, transportid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetCapabilitiesFromNetworkForTransportAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, address: ::std::mem::MaybeUninit<::windows_core::HSTRING>, transportid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IChatConversation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IChatConversation { - type Vtable = IChatConversation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IChatConversation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa58c080d_1a6f_46dc_8f3d_f5028660b6ee); -} +::windows_core::imp::com_interface!(IChatConversation, IChatConversation_Vtbl, 0xa58c080d_1a6f_46dc_8f3d_f5028660b6ee); #[repr(C)] #[doc(hidden)] pub struct IChatConversation_Vtbl { @@ -88,16 +52,7 @@ pub struct IChatConversation_Vtbl { pub RemoteParticipantComposingChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveRemoteParticipantComposingChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IChatConversation2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IChatConversation2 { - type Vtable = IChatConversation2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IChatConversation2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0a030cd1_983a_47aa_9a90_ee48ee997b59); -} +::windows_core::imp::com_interface!(IChatConversation2, IChatConversation2_Vtbl, 0x0a030cd1_983a_47aa_9a90_ee48ee997b59); #[repr(C)] #[doc(hidden)] pub struct IChatConversation2_Vtbl { @@ -105,16 +60,7 @@ pub struct IChatConversation2_Vtbl { pub CanModifyParticipants: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetCanModifyParticipants: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IChatConversationReader(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IChatConversationReader { - type Vtable = IChatConversationReader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IChatConversationReader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x055136d2_de32_4a47_a93a_b3dc0833852b); -} +::windows_core::imp::com_interface!(IChatConversationReader, IChatConversationReader_Vtbl, 0x055136d2_de32_4a47_a93a_b3dc0833852b); #[repr(C)] #[doc(hidden)] pub struct IChatConversationReader_Vtbl { @@ -128,16 +74,7 @@ pub struct IChatConversationReader_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] ReadBatchWithCountAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IChatConversationThreadingInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IChatConversationThreadingInfo { - type Vtable = IChatConversationThreadingInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IChatConversationThreadingInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x331c21dc_7a07_4422_a32c_24be7c6dab24); -} +::windows_core::imp::com_interface!(IChatConversationThreadingInfo, IChatConversationThreadingInfo_Vtbl, 0x331c21dc_7a07_4422_a32c_24be7c6dab24); #[repr(C)] #[doc(hidden)] pub struct IChatConversationThreadingInfo_Vtbl { @@ -155,9 +92,8 @@ pub struct IChatConversationThreadingInfo_Vtbl { pub Kind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ChatConversationThreadingKind) -> ::windows_core::HRESULT, pub SetKind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ChatConversationThreadingKind) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IChatItem(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IChatItem, IChatItem_Vtbl, 0x8751d000_ceb1_4243_b803_15d45a1dd428); +::windows_core::imp::interface_hierarchy!(IChatItem, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IChatItem { pub fn ItemKind(&self) -> ::windows_core::Result { let this = self; @@ -167,32 +103,16 @@ impl IChatItem { } } } -::windows_core::imp::interface_hierarchy!(IChatItem, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IChatItem { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IChatItem { - type Vtable = IChatItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IChatItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8751d000_ceb1_4243_b803_15d45a1dd428); -} #[repr(C)] #[doc(hidden)] pub struct IChatItem_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ItemKind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ChatItemKind) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IChatMessage(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IChatMessage { - type Vtable = IChatMessage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IChatMessage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4b39052a_1142_5089_76da_f2db3d17cd05); -} +::windows_core::imp::com_interface!(IChatMessage, IChatMessage_Vtbl, 0x4b39052a_1142_5089_76da_f2db3d17cd05); #[repr(C)] #[doc(hidden)] pub struct IChatMessage_Vtbl { @@ -224,16 +144,7 @@ pub struct IChatMessage_Vtbl { pub TransportId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetTransportId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IChatMessage2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IChatMessage2 { - type Vtable = IChatMessage2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IChatMessage2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x86668332_543f_49f5_ac71_6c2afc6565fd); -} +::windows_core::imp::com_interface!(IChatMessage2, IChatMessage2_Vtbl, 0x86668332_543f_49f5_ac71_6c2afc6565fd); #[repr(C)] #[doc(hidden)] pub struct IChatMessage2_Vtbl { @@ -270,32 +181,14 @@ pub struct IChatMessage2_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] RecipientsDeliveryInfos: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IChatMessage3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IChatMessage3 { - type Vtable = IChatMessage3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IChatMessage3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x74eb2fb0_3ba7_459f_8e0b_e8af0febd9ad); -} +::windows_core::imp::com_interface!(IChatMessage3, IChatMessage3_Vtbl, 0x74eb2fb0_3ba7_459f_8e0b_e8af0febd9ad); #[repr(C)] #[doc(hidden)] pub struct IChatMessage3_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub RemoteId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IChatMessage4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IChatMessage4 { - type Vtable = IChatMessage4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IChatMessage4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2d144b0f_d2bf_460c_aa68_6d3f8483c9bf); -} +::windows_core::imp::com_interface!(IChatMessage4, IChatMessage4_Vtbl, 0x2d144b0f_d2bf_460c_aa68_6d3f8483c9bf); #[repr(C)] #[doc(hidden)] pub struct IChatMessage4_Vtbl { @@ -303,16 +196,7 @@ pub struct IChatMessage4_Vtbl { pub SyncId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetSyncId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IChatMessageAttachment(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IChatMessageAttachment { - type Vtable = IChatMessageAttachment_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IChatMessageAttachment { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc7c4fd74_bf63_58eb_508c_8b863ff16b67); -} +::windows_core::imp::com_interface!(IChatMessageAttachment, IChatMessageAttachment_Vtbl, 0xc7c4fd74_bf63_58eb_508c_8b863ff16b67); #[repr(C)] #[doc(hidden)] pub struct IChatMessageAttachment_Vtbl { @@ -332,16 +216,7 @@ pub struct IChatMessageAttachment_Vtbl { pub Text: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IChatMessageAttachment2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IChatMessageAttachment2 { - type Vtable = IChatMessageAttachment2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IChatMessageAttachment2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5ed99270_7dd1_4a87_a8ce_acdd87d80dc8); -} +::windows_core::imp::com_interface!(IChatMessageAttachment2, IChatMessageAttachment2_Vtbl, 0x5ed99270_7dd1_4a87_a8ce_acdd87d80dc8); #[repr(C)] #[doc(hidden)] pub struct IChatMessageAttachment2_Vtbl { @@ -359,16 +234,7 @@ pub struct IChatMessageAttachment2_Vtbl { pub OriginalFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetOriginalFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IChatMessageAttachmentFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IChatMessageAttachmentFactory { - type Vtable = IChatMessageAttachmentFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IChatMessageAttachmentFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x205852a2_a356_5b71_6ca9_66c985b7d0d5); -} +::windows_core::imp::com_interface!(IChatMessageAttachmentFactory, IChatMessageAttachmentFactory_Vtbl, 0x205852a2_a356_5b71_6ca9_66c985b7d0d5); #[repr(C)] #[doc(hidden)] pub struct IChatMessageAttachmentFactory_Vtbl { @@ -378,32 +244,14 @@ pub struct IChatMessageAttachmentFactory_Vtbl { #[cfg(not(feature = "Storage_Streams"))] CreateChatMessageAttachment: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IChatMessageBlockingStatic(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IChatMessageBlockingStatic { - type Vtable = IChatMessageBlockingStatic_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IChatMessageBlockingStatic { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf6b9a380_cdea_11e4_8830_0800200c9a66); -} +::windows_core::imp::com_interface!(IChatMessageBlockingStatic, IChatMessageBlockingStatic_Vtbl, 0xf6b9a380_cdea_11e4_8830_0800200c9a66); #[repr(C)] #[doc(hidden)] pub struct IChatMessageBlockingStatic_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub MarkMessageAsBlockedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, localchatmessageid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, blocked: bool, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IChatMessageChange(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IChatMessageChange { - type Vtable = IChatMessageChange_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IChatMessageChange { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1c18c355_421e_54b8_6d38_6b3a6c82fccc); -} +::windows_core::imp::com_interface!(IChatMessageChange, IChatMessageChange_Vtbl, 0x1c18c355_421e_54b8_6d38_6b3a6c82fccc); #[repr(C)] #[doc(hidden)] pub struct IChatMessageChange_Vtbl { @@ -411,16 +259,7 @@ pub struct IChatMessageChange_Vtbl { pub ChangeType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ChatMessageChangeType) -> ::windows_core::HRESULT, pub Message: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IChatMessageChangeReader(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IChatMessageChangeReader { - type Vtable = IChatMessageChangeReader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IChatMessageChangeReader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x14267020_28ce_5f26_7b05_9a5c7cce87ca); -} +::windows_core::imp::com_interface!(IChatMessageChangeReader, IChatMessageChangeReader_Vtbl, 0x14267020_28ce_5f26_7b05_9a5c7cce87ca); #[repr(C)] #[doc(hidden)] pub struct IChatMessageChangeReader_Vtbl { @@ -432,16 +271,7 @@ pub struct IChatMessageChangeReader_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] ReadBatchAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IChatMessageChangeTracker(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IChatMessageChangeTracker { - type Vtable = IChatMessageChangeTracker_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IChatMessageChangeTracker { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x60b7f066_70a0_5224_508c_242ef7c1d06f); -} +::windows_core::imp::com_interface!(IChatMessageChangeTracker, IChatMessageChangeTracker_Vtbl, 0x60b7f066_70a0_5224_508c_242ef7c1d06f); #[repr(C)] #[doc(hidden)] pub struct IChatMessageChangeTracker_Vtbl { @@ -450,48 +280,21 @@ pub struct IChatMessageChangeTracker_Vtbl { pub GetChangeReader: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IChatMessageChangedDeferral(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IChatMessageChangedDeferral { - type Vtable = IChatMessageChangedDeferral_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IChatMessageChangedDeferral { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfbc6b30c_788c_4dcc_ace7_6282382968cf); -} +::windows_core::imp::com_interface!(IChatMessageChangedDeferral, IChatMessageChangedDeferral_Vtbl, 0xfbc6b30c_788c_4dcc_ace7_6282382968cf); #[repr(C)] #[doc(hidden)] pub struct IChatMessageChangedDeferral_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Complete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IChatMessageChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IChatMessageChangedEventArgs { - type Vtable = IChatMessageChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IChatMessageChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb6b73e2d_691c_4edf_8660_6eb9896892e3); -} +::windows_core::imp::com_interface!(IChatMessageChangedEventArgs, IChatMessageChangedEventArgs_Vtbl, 0xb6b73e2d_691c_4edf_8660_6eb9896892e3); #[repr(C)] #[doc(hidden)] pub struct IChatMessageChangedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IChatMessageManager2Statics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IChatMessageManager2Statics { - type Vtable = IChatMessageManager2Statics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IChatMessageManager2Statics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1d45390f_9f4f_4e35_964e_1b9ca61ac044); -} +::windows_core::imp::com_interface!(IChatMessageManager2Statics, IChatMessageManager2Statics_Vtbl, 0x1d45390f_9f4f_4e35_964e_1b9ca61ac044); #[repr(C)] #[doc(hidden)] pub struct IChatMessageManager2Statics_Vtbl { @@ -499,16 +302,7 @@ pub struct IChatMessageManager2Statics_Vtbl { pub RegisterTransportAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetTransportAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, transportid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IChatMessageManagerStatic(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IChatMessageManagerStatic { - type Vtable = IChatMessageManagerStatic_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IChatMessageManagerStatic { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf15c60f7_d5e8_5e92_556d_e03b60253104); -} +::windows_core::imp::com_interface!(IChatMessageManagerStatic, IChatMessageManagerStatic_Vtbl, 0xf15c60f7_d5e8_5e92_556d_e03b60253104); #[repr(C)] #[doc(hidden)] pub struct IChatMessageManagerStatic_Vtbl { @@ -521,48 +315,21 @@ pub struct IChatMessageManagerStatic_Vtbl { pub ShowComposeSmsMessageAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, message: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ShowSmsSettings: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IChatMessageManagerStatics3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IChatMessageManagerStatics3 { - type Vtable = IChatMessageManagerStatics3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IChatMessageManagerStatics3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x208b830d_6755_48cc_9ab3_fd03c463fc92); -} +::windows_core::imp::com_interface!(IChatMessageManagerStatics3, IChatMessageManagerStatics3_Vtbl, 0x208b830d_6755_48cc_9ab3_fd03c463fc92); #[repr(C)] #[doc(hidden)] pub struct IChatMessageManagerStatics3_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub RequestSyncManagerAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IChatMessageNotificationTriggerDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IChatMessageNotificationTriggerDetails { - type Vtable = IChatMessageNotificationTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IChatMessageNotificationTriggerDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfd344dfb_3063_4e17_8586_c6c08262e6c0); -} +::windows_core::imp::com_interface!(IChatMessageNotificationTriggerDetails, IChatMessageNotificationTriggerDetails_Vtbl, 0xfd344dfb_3063_4e17_8586_c6c08262e6c0); #[repr(C)] #[doc(hidden)] pub struct IChatMessageNotificationTriggerDetails_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ChatMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IChatMessageNotificationTriggerDetails2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IChatMessageNotificationTriggerDetails2 { - type Vtable = IChatMessageNotificationTriggerDetails2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IChatMessageNotificationTriggerDetails2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6bb522e0_aa07_4fd1_9471_77934fb75ee6); -} +::windows_core::imp::com_interface!(IChatMessageNotificationTriggerDetails2, IChatMessageNotificationTriggerDetails2_Vtbl, 0x6bb522e0_aa07_4fd1_9471_77934fb75ee6); #[repr(C)] #[doc(hidden)] pub struct IChatMessageNotificationTriggerDetails2_Vtbl { @@ -572,16 +339,7 @@ pub struct IChatMessageNotificationTriggerDetails2_Vtbl { pub ShouldUpdateBadge: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub ShouldUpdateActionCenter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IChatMessageReader(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IChatMessageReader { - type Vtable = IChatMessageReader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IChatMessageReader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb6ea78ce_4489_56f9_76aa_e204682514cf); -} +::windows_core::imp::com_interface!(IChatMessageReader, IChatMessageReader_Vtbl, 0xb6ea78ce_4489_56f9_76aa_e204682514cf); #[repr(C)] #[doc(hidden)] pub struct IChatMessageReader_Vtbl { @@ -591,16 +349,7 @@ pub struct IChatMessageReader_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] ReadBatchAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IChatMessageReader2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IChatMessageReader2 { - type Vtable = IChatMessageReader2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IChatMessageReader2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x89643683_64bb_470d_9df4_0de8be1a05bf); -} +::windows_core::imp::com_interface!(IChatMessageReader2, IChatMessageReader2_Vtbl, 0x89643683_64bb_470d_9df4_0de8be1a05bf); #[repr(C)] #[doc(hidden)] pub struct IChatMessageReader2_Vtbl { @@ -610,16 +359,7 @@ pub struct IChatMessageReader2_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] ReadBatchWithCountAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IChatMessageStore(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IChatMessageStore { - type Vtable = IChatMessageStore_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IChatMessageStore { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x31f2fd01_ccf6_580b_4976_0a07dd5d3b47); -} +::windows_core::imp::com_interface!(IChatMessageStore, IChatMessageStore_Vtbl, 0x31f2fd01_ccf6_580b_4976_0a07dd5d3b47); #[repr(C)] #[doc(hidden)] pub struct IChatMessageStore_Vtbl { @@ -637,16 +377,7 @@ pub struct IChatMessageStore_Vtbl { pub MessageChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveMessageChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IChatMessageStore2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IChatMessageStore2 { - type Vtable = IChatMessageStore2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IChatMessageStore2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xad4dc4ee_3ad4_491b_b311_abdf9bb22768); -} +::windows_core::imp::com_interface!(IChatMessageStore2, IChatMessageStore2_Vtbl, 0xad4dc4ee_3ad4_491b_b311_abdf9bb22768); #[repr(C)] #[doc(hidden)] pub struct IChatMessageStore2_Vtbl { @@ -684,32 +415,14 @@ pub struct IChatMessageStore2_Vtbl { pub StoreChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveStoreChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IChatMessageStore3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IChatMessageStore3 { - type Vtable = IChatMessageStore3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IChatMessageStore3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9adbbb09_4345_4ec1_8b74_b7338243719c); -} +::windows_core::imp::com_interface!(IChatMessageStore3, IChatMessageStore3_Vtbl, 0x9adbbb09_4345_4ec1_8b74_b7338243719c); #[repr(C)] #[doc(hidden)] pub struct IChatMessageStore3_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetMessageBySyncIdAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, syncid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IChatMessageStoreChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IChatMessageStoreChangedEventArgs { - type Vtable = IChatMessageStoreChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IChatMessageStoreChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x65c66fac_fe8c_46d4_9119_57b8410311d5); -} +::windows_core::imp::com_interface!(IChatMessageStoreChangedEventArgs, IChatMessageStoreChangedEventArgs_Vtbl, 0x65c66fac_fe8c_46d4_9119_57b8410311d5); #[repr(C)] #[doc(hidden)] pub struct IChatMessageStoreChangedEventArgs_Vtbl { @@ -717,16 +430,7 @@ pub struct IChatMessageStoreChangedEventArgs_Vtbl { pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Kind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ChatStoreChangedEventKind) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IChatMessageTransport(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IChatMessageTransport { - type Vtable = IChatMessageTransport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IChatMessageTransport { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x63a9dbf8_e6b3_5c9a_5f85_d47925b9bd18); -} +::windows_core::imp::com_interface!(IChatMessageTransport, IChatMessageTransport_Vtbl, 0x63a9dbf8_e6b3_5c9a_5f85_d47925b9bd18); #[repr(C)] #[doc(hidden)] pub struct IChatMessageTransport_Vtbl { @@ -737,16 +441,7 @@ pub struct IChatMessageTransport_Vtbl { pub TransportId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub RequestSetAsNotificationProviderAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IChatMessageTransport2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IChatMessageTransport2 { - type Vtable = IChatMessageTransport2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IChatMessageTransport2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x90a75622_d84a_4c22_a94d_544444edc8a1); -} +::windows_core::imp::com_interface!(IChatMessageTransport2, IChatMessageTransport2_Vtbl, 0x90a75622_d84a_4c22_a94d_544444edc8a1); #[repr(C)] #[doc(hidden)] pub struct IChatMessageTransport2_Vtbl { @@ -754,16 +449,7 @@ pub struct IChatMessageTransport2_Vtbl { pub Configuration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub TransportKind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ChatMessageTransportKind) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IChatMessageTransportConfiguration(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IChatMessageTransportConfiguration { - type Vtable = IChatMessageTransportConfiguration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IChatMessageTransportConfiguration { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x879ff725_1a08_4aca_a075_3355126312e6); -} +::windows_core::imp::com_interface!(IChatMessageTransportConfiguration, IChatMessageTransportConfiguration_Vtbl, 0x879ff725_1a08_4aca_a075_3355126312e6); #[repr(C)] #[doc(hidden)] pub struct IChatMessageTransportConfiguration_Vtbl { @@ -780,16 +466,7 @@ pub struct IChatMessageTransportConfiguration_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] ExtendedProperties: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IChatMessageValidationResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IChatMessageValidationResult { - type Vtable = IChatMessageValidationResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IChatMessageValidationResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x25e93a03_28ec_5889_569b_7e486b126f18); -} +::windows_core::imp::com_interface!(IChatMessageValidationResult, IChatMessageValidationResult_Vtbl, 0x25e93a03_28ec_5889_569b_7e486b126f18); #[repr(C)] #[doc(hidden)] pub struct IChatMessageValidationResult_Vtbl { @@ -799,16 +476,7 @@ pub struct IChatMessageValidationResult_Vtbl { pub RemainingCharacterCountInPart: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ChatMessageValidationStatus) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IChatQueryOptions(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IChatQueryOptions { - type Vtable = IChatQueryOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IChatQueryOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2fd364a6_bf36_42f7_b7e7_923c0aabfe16); -} +::windows_core::imp::com_interface!(IChatQueryOptions, IChatQueryOptions_Vtbl, 0x2fd364a6_bf36_42f7_b7e7_923c0aabfe16); #[repr(C)] #[doc(hidden)] pub struct IChatQueryOptions_Vtbl { @@ -816,16 +484,7 @@ pub struct IChatQueryOptions_Vtbl { pub SearchString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetSearchString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IChatRecipientDeliveryInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IChatRecipientDeliveryInfo { - type Vtable = IChatRecipientDeliveryInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IChatRecipientDeliveryInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xffc7b2a2_283c_4c0a_8a0e_8c33bdbf0545); -} +::windows_core::imp::com_interface!(IChatRecipientDeliveryInfo, IChatRecipientDeliveryInfo_Vtbl, 0xffc7b2a2_283c_4c0a_8a0e_8c33bdbf0545); #[repr(C)] #[doc(hidden)] pub struct IChatRecipientDeliveryInfo_Vtbl { @@ -842,16 +501,7 @@ pub struct IChatRecipientDeliveryInfo_Vtbl { pub IsErrorPermanent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ChatMessageStatus) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IChatSearchReader(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IChatSearchReader { - type Vtable = IChatSearchReader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IChatSearchReader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4665fe49_9020_4752_980d_39612325f589); -} +::windows_core::imp::com_interface!(IChatSearchReader, IChatSearchReader_Vtbl, 0x4665fe49_9020_4752_980d_39612325f589); #[repr(C)] #[doc(hidden)] pub struct IChatSearchReader_Vtbl { @@ -865,16 +515,7 @@ pub struct IChatSearchReader_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] ReadBatchWithCountAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IChatSyncConfiguration(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IChatSyncConfiguration { - type Vtable = IChatSyncConfiguration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IChatSyncConfiguration { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x09f869b2_69f4_4aff_82b6_06992ff402d2); -} +::windows_core::imp::com_interface!(IChatSyncConfiguration, IChatSyncConfiguration_Vtbl, 0x09f869b2_69f4_4aff_82b6_06992ff402d2); #[repr(C)] #[doc(hidden)] pub struct IChatSyncConfiguration_Vtbl { @@ -884,16 +525,7 @@ pub struct IChatSyncConfiguration_Vtbl { pub RestoreHistorySpan: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ChatRestoreHistorySpan) -> ::windows_core::HRESULT, pub SetRestoreHistorySpan: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ChatRestoreHistorySpan) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IChatSyncManager(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IChatSyncManager { - type Vtable = IChatSyncManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IChatSyncManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7ba52c63_2650_486f_b4b4_6bd9d3d63c84); -} +::windows_core::imp::com_interface!(IChatSyncManager, IChatSyncManager_Vtbl, 0x7ba52c63_2650_486f_b4b4_6bd9d3d63c84); #[repr(C)] #[doc(hidden)] pub struct IChatSyncManager_Vtbl { @@ -911,16 +543,7 @@ pub struct IChatSyncManager_Vtbl { pub StartSync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetConfigurationAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, configuration: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRcsEndUserMessage(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRcsEndUserMessage { - type Vtable = IRcsEndUserMessage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRcsEndUserMessage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd7cda5eb_cbd7_4f3b_8526_b506dec35c53); -} +::windows_core::imp::com_interface!(IRcsEndUserMessage, IRcsEndUserMessage_Vtbl, 0xd7cda5eb_cbd7_4f3b_8526_b506dec35c53); #[repr(C)] #[doc(hidden)] pub struct IRcsEndUserMessage_Vtbl { @@ -936,32 +559,14 @@ pub struct IRcsEndUserMessage_Vtbl { pub SendResponseAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, action: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SendResponseWithPinAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, action: *mut ::core::ffi::c_void, pin: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRcsEndUserMessageAction(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRcsEndUserMessageAction { - type Vtable = IRcsEndUserMessageAction_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRcsEndUserMessageAction { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x92378737_9b42_46d3_9d5e_3c1b2dae7cb8); -} +::windows_core::imp::com_interface!(IRcsEndUserMessageAction, IRcsEndUserMessageAction_Vtbl, 0x92378737_9b42_46d3_9d5e_3c1b2dae7cb8); #[repr(C)] #[doc(hidden)] pub struct IRcsEndUserMessageAction_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Label: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRcsEndUserMessageAvailableEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRcsEndUserMessageAvailableEventArgs { - type Vtable = IRcsEndUserMessageAvailableEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRcsEndUserMessageAvailableEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2d45ae01_3f89_41ea_9702_9e9ed411aa98); -} +::windows_core::imp::com_interface!(IRcsEndUserMessageAvailableEventArgs, IRcsEndUserMessageAvailableEventArgs_Vtbl, 0x2d45ae01_3f89_41ea_9702_9e9ed411aa98); #[repr(C)] #[doc(hidden)] pub struct IRcsEndUserMessageAvailableEventArgs_Vtbl { @@ -969,16 +574,7 @@ pub struct IRcsEndUserMessageAvailableEventArgs_Vtbl { pub IsMessageAvailable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub Message: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRcsEndUserMessageAvailableTriggerDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRcsEndUserMessageAvailableTriggerDetails { - type Vtable = IRcsEndUserMessageAvailableTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRcsEndUserMessageAvailableTriggerDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5b97742d_351f_4692_b41e_1b035dc18986); -} +::windows_core::imp::com_interface!(IRcsEndUserMessageAvailableTriggerDetails, IRcsEndUserMessageAvailableTriggerDetails_Vtbl, 0x5b97742d_351f_4692_b41e_1b035dc18986); #[repr(C)] #[doc(hidden)] pub struct IRcsEndUserMessageAvailableTriggerDetails_Vtbl { @@ -986,16 +582,7 @@ pub struct IRcsEndUserMessageAvailableTriggerDetails_Vtbl { pub Title: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Text: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRcsEndUserMessageManager(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRcsEndUserMessageManager { - type Vtable = IRcsEndUserMessageManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRcsEndUserMessageManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3054ae5a_4d1f_4b59_9433_126c734e86a6); -} +::windows_core::imp::com_interface!(IRcsEndUserMessageManager, IRcsEndUserMessageManager_Vtbl, 0x3054ae5a_4d1f_4b59_9433_126c734e86a6); #[repr(C)] #[doc(hidden)] pub struct IRcsEndUserMessageManager_Vtbl { @@ -1003,16 +590,7 @@ pub struct IRcsEndUserMessageManager_Vtbl { pub MessageAvailableChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveMessageAvailableChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRcsManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRcsManagerStatics { - type Vtable = IRcsManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRcsManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7d270ac5_0abd_4f31_9b99_a59e71a7b731); -} +::windows_core::imp::com_interface!(IRcsManagerStatics, IRcsManagerStatics_Vtbl, 0x7d270ac5_0abd_4f31_9b99_a59e71a7b731); #[repr(C)] #[doc(hidden)] pub struct IRcsManagerStatics_Vtbl { @@ -1025,16 +603,7 @@ pub struct IRcsManagerStatics_Vtbl { pub GetTransportAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, transportid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub LeaveConversationAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, conversation: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRcsManagerStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRcsManagerStatics2 { - type Vtable = IRcsManagerStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRcsManagerStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcd49ad18_ad8a_42aa_8eeb_a798a8808959); -} +::windows_core::imp::com_interface!(IRcsManagerStatics2, IRcsManagerStatics2_Vtbl, 0xcd49ad18_ad8a_42aa_8eeb_a798a8808959); #[repr(C)] #[doc(hidden)] pub struct IRcsManagerStatics2_Vtbl { @@ -1042,32 +611,14 @@ pub struct IRcsManagerStatics2_Vtbl { pub TransportListChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveTransportListChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRcsServiceKindSupportedChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRcsServiceKindSupportedChangedEventArgs { - type Vtable = IRcsServiceKindSupportedChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRcsServiceKindSupportedChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf47ea244_e783_4866_b3a7_4e5ccf023070); -} +::windows_core::imp::com_interface!(IRcsServiceKindSupportedChangedEventArgs, IRcsServiceKindSupportedChangedEventArgs_Vtbl, 0xf47ea244_e783_4866_b3a7_4e5ccf023070); #[repr(C)] #[doc(hidden)] pub struct IRcsServiceKindSupportedChangedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ServiceKind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut RcsServiceKind) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRcsTransport(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRcsTransport { - type Vtable = IRcsTransport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRcsTransport { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfea34759_f37c_4319_8546_ec84d21d30ff); -} +::windows_core::imp::com_interface!(IRcsTransport, IRcsTransport_Vtbl, 0xfea34759_f37c_4319_8546_ec84d21d30ff); #[repr(C)] #[doc(hidden)] pub struct IRcsTransport_Vtbl { @@ -1085,16 +636,7 @@ pub struct IRcsTransport_Vtbl { pub ServiceKindSupportedChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveServiceKindSupportedChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRcsTransportConfiguration(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRcsTransportConfiguration { - type Vtable = IRcsTransportConfiguration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRcsTransportConfiguration { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1fccb102_2472_4bb9_9988_c1211c83e8a9); -} +::windows_core::imp::com_interface!(IRcsTransportConfiguration, IRcsTransportConfiguration_Vtbl, 0x1fccb102_2472_4bb9_9988_c1211c83e8a9); #[repr(C)] #[doc(hidden)] pub struct IRcsTransportConfiguration_Vtbl { @@ -1106,16 +648,7 @@ pub struct IRcsTransportConfiguration_Vtbl { pub MaxFileSizeInKilobytes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows_core::HRESULT, pub WarningFileSizeInKilobytes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteParticipantComposingChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteParticipantComposingChangedEventArgs { - type Vtable = IRemoteParticipantComposingChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteParticipantComposingChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1ec045a7_cfc9_45c9_9876_449f2bc180f5); -} +::windows_core::imp::com_interface!(IRemoteParticipantComposingChangedEventArgs, IRemoteParticipantComposingChangedEventArgs_Vtbl, 0x1ec045a7_cfc9_45c9_9876_449f2bc180f5); #[repr(C)] #[doc(hidden)] pub struct IRemoteParticipantComposingChangedEventArgs_Vtbl { @@ -1127,6 +660,7 @@ pub struct IRemoteParticipantComposingChangedEventArgs_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ChatCapabilities(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ChatCapabilities, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ChatCapabilities { pub fn IsOnline(&self) -> ::windows_core::Result { let this = self; @@ -1169,14 +703,11 @@ impl ::windows_core::RuntimeType for ChatCapabilities { } unsafe impl ::windows_core::Interface for ChatCapabilities { type Vtable = IChatCapabilities_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ChatCapabilities { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ChatCapabilities { const NAME: &'static str = "Windows.ApplicationModel.Chat.ChatCapabilities"; } -::windows_core::imp::interface_hierarchy!(ChatCapabilities, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ChatCapabilities {} unsafe impl ::core::marker::Sync for ChatCapabilities {} pub struct ChatCapabilitiesManager; @@ -1222,6 +753,8 @@ impl ::windows_core::RuntimeName for ChatCapabilitiesManager { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ChatConversation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ChatConversation, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ChatConversation, IChatItem); impl ChatConversation { pub fn HasUnreadMessages(&self) -> ::windows_core::Result { let this = self; @@ -1340,18 +873,18 @@ impl ChatConversation { unsafe { (::windows_core::Interface::vtable(this).RemoveRemoteParticipantComposingChanged)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn CanModifyParticipants(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CanModifyParticipants)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetCanModifyParticipants(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCanModifyParticipants)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn ItemKind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ItemKind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1363,20 +896,17 @@ impl ::windows_core::RuntimeType for ChatConversation { } unsafe impl ::windows_core::Interface for ChatConversation { type Vtable = IChatConversation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ChatConversation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ChatConversation { const NAME: &'static str = "Windows.ApplicationModel.Chat.ChatConversation"; } -::windows_core::imp::interface_hierarchy!(ChatConversation, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ChatConversation {} unsafe impl ::core::marker::Send for ChatConversation {} unsafe impl ::core::marker::Sync for ChatConversation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ChatConversationReader(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ChatConversationReader, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ChatConversationReader { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -1402,19 +932,17 @@ impl ::windows_core::RuntimeType for ChatConversationReader { } unsafe impl ::windows_core::Interface for ChatConversationReader { type Vtable = IChatConversationReader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ChatConversationReader { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ChatConversationReader { const NAME: &'static str = "Windows.ApplicationModel.Chat.ChatConversationReader"; } -::windows_core::imp::interface_hierarchy!(ChatConversationReader, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ChatConversationReader {} unsafe impl ::core::marker::Sync for ChatConversationReader {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ChatConversationThreadingInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ChatConversationThreadingInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ChatConversationThreadingInfo { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1482,19 +1010,18 @@ impl ::windows_core::RuntimeType for ChatConversationThreadingInfo { } unsafe impl ::windows_core::Interface for ChatConversationThreadingInfo { type Vtable = IChatConversationThreadingInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ChatConversationThreadingInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ChatConversationThreadingInfo { const NAME: &'static str = "Windows.ApplicationModel.Chat.ChatConversationThreadingInfo"; } -::windows_core::imp::interface_hierarchy!(ChatConversationThreadingInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ChatConversationThreadingInfo {} unsafe impl ::core::marker::Sync for ChatConversationThreadingInfo {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ChatMessage(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ChatMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ChatMessage, IChatItem); impl ChatMessage { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1504,7 +1031,7 @@ impl ChatMessage { SHARED.call(callback) } pub fn ItemKind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ItemKind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1630,134 +1157,134 @@ impl ChatMessage { unsafe { (::windows_core::Interface::vtable(this).SetTransportId)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn EstimatedDownloadSize(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).EstimatedDownloadSize)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetEstimatedDownloadSize(&self, value: u64) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetEstimatedDownloadSize)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn SetFrom(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetFrom)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn IsAutoReply(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsAutoReply)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsAutoReply(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsAutoReply)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn SetIsForwardingDisabled(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsForwardingDisabled)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsReplyDisabled(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsReplyDisabled)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsIncoming(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsIncoming)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn SetIsRead(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsRead)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsSeen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsSeen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsSeen(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsSeen)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsSimMessage(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsSimMessage)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetLocalTimestamp(&self, value: super::super::Foundation::DateTime) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetLocalTimestamp)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn MessageKind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MessageKind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetMessageKind(&self, value: ChatMessageKind) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMessageKind)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn MessageOperatorKind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MessageOperatorKind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetMessageOperatorKind(&self, value: ChatMessageOperatorKind) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMessageOperatorKind)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn SetNetworkTimestamp(&self, value: super::super::Foundation::DateTime) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetNetworkTimestamp)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsReceivedDuringQuietHours(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsReceivedDuringQuietHours)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsReceivedDuringQuietHours(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsReceivedDuringQuietHours)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn SetRemoteId(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRemoteId)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn SetStatus(&self, value: ChatMessageStatus) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetStatus)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn SetSubject(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetSubject)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ShouldSuppressNotification(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ShouldSuppressNotification)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetShouldSuppressNotification(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetShouldSuppressNotification)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn ThreadingInfo(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ThreadingInfo)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1767,34 +1294,34 @@ impl ChatMessage { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn RecipientsDeliveryInfos(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RecipientsDeliveryInfos)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn RemoteId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RemoteId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SyncId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SyncId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetSyncId(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetSyncId)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } } @@ -1803,20 +1330,17 @@ impl ::windows_core::RuntimeType for ChatMessage { } unsafe impl ::windows_core::Interface for ChatMessage { type Vtable = IChatMessage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ChatMessage { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ChatMessage { const NAME: &'static str = "Windows.ApplicationModel.Chat.ChatMessage"; } -::windows_core::imp::interface_hierarchy!(ChatMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ChatMessage {} unsafe impl ::core::marker::Send for ChatMessage {} unsafe impl ::core::marker::Sync for ChatMessage {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ChatMessageAttachment(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ChatMessageAttachment, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ChatMessageAttachment { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] @@ -1831,10 +1355,10 @@ impl ChatMessageAttachment { #[cfg(feature = "Storage_Streams")] pub fn SetDataStreamReference(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetDataStreamReference)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetDataStreamReference)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn GroupId(&self) -> ::windows_core::Result { let this = self; @@ -1872,7 +1396,7 @@ impl ChatMessageAttachment { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn Thumbnail(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Thumbnail)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1882,42 +1406,42 @@ impl ChatMessageAttachment { #[cfg(feature = "Storage_Streams")] pub fn SetThumbnail(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetThumbnail)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn TransferProgress(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TransferProgress)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetTransferProgress(&self, value: f64) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetTransferProgress)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn OriginalFileName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OriginalFileName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetOriginalFileName(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetOriginalFileName)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn CreateChatMessageAttachment(mimetype: &::windows_core::HSTRING, datastreamreference: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateChatMessageAttachment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(mimetype), datastreamreference.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -1931,14 +1455,11 @@ impl ::windows_core::RuntimeType for ChatMessageAttachment { } unsafe impl ::windows_core::Interface for ChatMessageAttachment { type Vtable = IChatMessageAttachment_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ChatMessageAttachment { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ChatMessageAttachment { const NAME: &'static str = "Windows.ApplicationModel.Chat.ChatMessageAttachment"; } -::windows_core::imp::interface_hierarchy!(ChatMessageAttachment, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ChatMessageAttachment {} unsafe impl ::core::marker::Sync for ChatMessageAttachment {} pub struct ChatMessageBlocking; @@ -1961,6 +1482,7 @@ impl ::windows_core::RuntimeName for ChatMessageBlocking { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ChatMessageChange(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ChatMessageChange, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ChatMessageChange { pub fn ChangeType(&self) -> ::windows_core::Result { let this = self; @@ -1982,19 +1504,17 @@ impl ::windows_core::RuntimeType for ChatMessageChange { } unsafe impl ::windows_core::Interface for ChatMessageChange { type Vtable = IChatMessageChange_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ChatMessageChange { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ChatMessageChange { const NAME: &'static str = "Windows.ApplicationModel.Chat.ChatMessageChange"; } -::windows_core::imp::interface_hierarchy!(ChatMessageChange, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ChatMessageChange {} unsafe impl ::core::marker::Sync for ChatMessageChange {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ChatMessageChangeReader(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ChatMessageChangeReader, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ChatMessageChangeReader { pub fn AcceptChanges(&self) -> ::windows_core::Result<()> { let this = self; @@ -2022,19 +1542,17 @@ impl ::windows_core::RuntimeType for ChatMessageChangeReader { } unsafe impl ::windows_core::Interface for ChatMessageChangeReader { type Vtable = IChatMessageChangeReader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ChatMessageChangeReader { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ChatMessageChangeReader { const NAME: &'static str = "Windows.ApplicationModel.Chat.ChatMessageChangeReader"; } -::windows_core::imp::interface_hierarchy!(ChatMessageChangeReader, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ChatMessageChangeReader {} unsafe impl ::core::marker::Sync for ChatMessageChangeReader {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ChatMessageChangeTracker(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ChatMessageChangeTracker, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ChatMessageChangeTracker { pub fn Enable(&self) -> ::windows_core::Result<()> { let this = self; @@ -2057,19 +1575,17 @@ impl ::windows_core::RuntimeType for ChatMessageChangeTracker { } unsafe impl ::windows_core::Interface for ChatMessageChangeTracker { type Vtable = IChatMessageChangeTracker_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ChatMessageChangeTracker { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ChatMessageChangeTracker { const NAME: &'static str = "Windows.ApplicationModel.Chat.ChatMessageChangeTracker"; } -::windows_core::imp::interface_hierarchy!(ChatMessageChangeTracker, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ChatMessageChangeTracker {} unsafe impl ::core::marker::Sync for ChatMessageChangeTracker {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ChatMessageChangedDeferral(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ChatMessageChangedDeferral, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ChatMessageChangedDeferral { pub fn Complete(&self) -> ::windows_core::Result<()> { let this = self; @@ -2081,19 +1597,17 @@ impl ::windows_core::RuntimeType for ChatMessageChangedDeferral { } unsafe impl ::windows_core::Interface for ChatMessageChangedDeferral { type Vtable = IChatMessageChangedDeferral_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ChatMessageChangedDeferral { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ChatMessageChangedDeferral { const NAME: &'static str = "Windows.ApplicationModel.Chat.ChatMessageChangedDeferral"; } -::windows_core::imp::interface_hierarchy!(ChatMessageChangedDeferral, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ChatMessageChangedDeferral {} unsafe impl ::core::marker::Sync for ChatMessageChangedDeferral {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ChatMessageChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ChatMessageChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ChatMessageChangedEventArgs { pub fn GetDeferral(&self) -> ::windows_core::Result { let this = self; @@ -2108,14 +1622,11 @@ impl ::windows_core::RuntimeType for ChatMessageChangedEventArgs { } unsafe impl ::windows_core::Interface for ChatMessageChangedEventArgs { type Vtable = IChatMessageChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ChatMessageChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ChatMessageChangedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Chat.ChatMessageChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(ChatMessageChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ChatMessageChangedEventArgs {} unsafe impl ::core::marker::Sync for ChatMessageChangedEventArgs {} pub struct ChatMessageManager; @@ -2186,6 +1697,7 @@ impl ::windows_core::RuntimeName for ChatMessageManager { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ChatMessageNotificationTriggerDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ChatMessageNotificationTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ChatMessageNotificationTriggerDetails { pub fn ChatMessage(&self) -> ::windows_core::Result { let this = self; @@ -2195,28 +1707,28 @@ impl ChatMessageNotificationTriggerDetails { } } pub fn ShouldDisplayToast(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ShouldDisplayToast)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ShouldUpdateDetailText(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ShouldUpdateDetailText)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ShouldUpdateBadge(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ShouldUpdateBadge)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ShouldUpdateActionCenter(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ShouldUpdateActionCenter)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2228,19 +1740,17 @@ impl ::windows_core::RuntimeType for ChatMessageNotificationTriggerDetails { } unsafe impl ::windows_core::Interface for ChatMessageNotificationTriggerDetails { type Vtable = IChatMessageNotificationTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ChatMessageNotificationTriggerDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ChatMessageNotificationTriggerDetails { const NAME: &'static str = "Windows.ApplicationModel.Chat.ChatMessageNotificationTriggerDetails"; } -::windows_core::imp::interface_hierarchy!(ChatMessageNotificationTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ChatMessageNotificationTriggerDetails {} unsafe impl ::core::marker::Sync for ChatMessageNotificationTriggerDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ChatMessageReader(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ChatMessageReader, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ChatMessageReader { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -2254,7 +1764,7 @@ impl ChatMessageReader { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn ReadBatchWithCountAsync(&self, count: i32) -> ::windows_core::Result>> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ReadBatchWithCountAsync)(::windows_core::Interface::as_raw(this), count, &mut result__).from_abi(result__) @@ -2266,19 +1776,17 @@ impl ::windows_core::RuntimeType for ChatMessageReader { } unsafe impl ::windows_core::Interface for ChatMessageReader { type Vtable = IChatMessageReader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ChatMessageReader { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ChatMessageReader { const NAME: &'static str = "Windows.ApplicationModel.Chat.ChatMessageReader"; } -::windows_core::imp::interface_hierarchy!(ChatMessageReader, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ChatMessageReader {} unsafe impl ::core::marker::Sync for ChatMessageReader {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ChatMessageStore(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ChatMessageStore, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ChatMessageStore { pub fn ChangeTracker(&self) -> ::windows_core::Result { let this = self; @@ -2374,16 +1882,16 @@ impl ChatMessageStore { #[cfg(feature = "Foundation_Collections")] pub fn ForwardMessageAsync(&self, localchatmessageid: &::windows_core::HSTRING, addresses: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ForwardMessageAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(localchatmessageid), addresses.into_param().abi(), &mut result__).from_abi(result__) } } pub fn GetConversationAsync(&self, conversationid: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetConversationAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(conversationid), &mut result__).from_abi(result__) @@ -2393,26 +1901,26 @@ impl ChatMessageStore { #[cfg(feature = "Foundation_Collections")] pub fn GetConversationForTransportsAsync(&self, conversationid: &::windows_core::HSTRING, transportids: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).GetConversationForTransportsAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(conversationid), transportids.into_param().abi(), &mut result__).from_abi(result__) } } pub fn GetConversationFromThreadingInfoAsync(&self, threadinginfo: P0) -> ::windows_core::Result> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn GetConversationReader(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetConversationReader)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2422,23 +1930,23 @@ impl ChatMessageStore { #[cfg(feature = "Foundation_Collections")] pub fn GetConversationForTransportsReader(&self, transportids: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).GetConversationForTransportsReader)(::windows_core::Interface::as_raw(this), transportids.into_param().abi(), &mut result__).from_abi(result__) } } pub fn GetMessageByRemoteIdAsync(&self, transportid: &::windows_core::HSTRING, remoteid: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetMessageByRemoteIdAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(transportid), ::core::mem::transmute_copy(remoteid), &mut result__).from_abi(result__) } } pub fn GetUnseenCountAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetUnseenCountAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2448,16 +1956,16 @@ impl ChatMessageStore { #[cfg(feature = "Foundation_Collections")] pub fn GetUnseenCountForTransportsReaderAsync(&self, transportids: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).GetUnseenCountForTransportsReaderAsync)(::windows_core::Interface::as_raw(this), transportids.into_param().abi(), &mut result__).from_abi(result__) } } pub fn MarkAsSeenAsync(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MarkAsSeenAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2467,19 +1975,19 @@ impl ChatMessageStore { #[cfg(feature = "Foundation_Collections")] pub fn MarkAsSeenForTransportsAsync(&self, transportids: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).MarkAsSeenForTransportsAsync)(::windows_core::Interface::as_raw(this), transportids.into_param().abi(), &mut result__).from_abi(result__) } } pub fn GetSearchReader(&self, value: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -2489,21 +1997,21 @@ impl ChatMessageStore { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn TryCancelDownloadMessageAsync(&self, localchatmessageid: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryCancelDownloadMessageAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(localchatmessageid), &mut result__).from_abi(result__) } } pub fn TryCancelSendMessageAsync(&self, localchatmessageid: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryCancelSendMessageAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(localchatmessageid), &mut result__).from_abi(result__) @@ -2513,18 +2021,18 @@ impl ChatMessageStore { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveStoreChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveStoreChanged)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn GetMessageBySyncIdAsync(&self, syncid: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetMessageBySyncIdAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(syncid), &mut result__).from_abi(result__) @@ -2536,19 +2044,17 @@ impl ::windows_core::RuntimeType for ChatMessageStore { } unsafe impl ::windows_core::Interface for ChatMessageStore { type Vtable = IChatMessageStore_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ChatMessageStore { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ChatMessageStore { const NAME: &'static str = "Windows.ApplicationModel.Chat.ChatMessageStore"; } -::windows_core::imp::interface_hierarchy!(ChatMessageStore, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ChatMessageStore {} unsafe impl ::core::marker::Sync for ChatMessageStore {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ChatMessageStoreChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ChatMessageStoreChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ChatMessageStoreChangedEventArgs { pub fn Id(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -2570,19 +2076,17 @@ impl ::windows_core::RuntimeType for ChatMessageStoreChangedEventArgs { } unsafe impl ::windows_core::Interface for ChatMessageStoreChangedEventArgs { type Vtable = IChatMessageStoreChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ChatMessageStoreChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ChatMessageStoreChangedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Chat.ChatMessageStoreChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(ChatMessageStoreChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ChatMessageStoreChangedEventArgs {} unsafe impl ::core::marker::Sync for ChatMessageStoreChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ChatMessageTransport(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ChatMessageTransport, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ChatMessageTransport { pub fn IsAppSetAsNotificationProvider(&self) -> ::windows_core::Result { let this = self; @@ -2620,14 +2124,14 @@ impl ChatMessageTransport { } } pub fn Configuration(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Configuration)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TransportKind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TransportKind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2639,19 +2143,17 @@ impl ::windows_core::RuntimeType for ChatMessageTransport { } unsafe impl ::windows_core::Interface for ChatMessageTransport { type Vtable = IChatMessageTransport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ChatMessageTransport { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ChatMessageTransport { const NAME: &'static str = "Windows.ApplicationModel.Chat.ChatMessageTransport"; } -::windows_core::imp::interface_hierarchy!(ChatMessageTransport, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ChatMessageTransport {} unsafe impl ::core::marker::Sync for ChatMessageTransport {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ChatMessageTransportConfiguration(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ChatMessageTransportConfiguration, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ChatMessageTransportConfiguration { pub fn MaxAttachmentCount(&self) -> ::windows_core::Result { let this = self; @@ -2698,19 +2200,17 @@ impl ::windows_core::RuntimeType for ChatMessageTransportConfiguration { } unsafe impl ::windows_core::Interface for ChatMessageTransportConfiguration { type Vtable = IChatMessageTransportConfiguration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ChatMessageTransportConfiguration { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ChatMessageTransportConfiguration { const NAME: &'static str = "Windows.ApplicationModel.Chat.ChatMessageTransportConfiguration"; } -::windows_core::imp::interface_hierarchy!(ChatMessageTransportConfiguration, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ChatMessageTransportConfiguration {} unsafe impl ::core::marker::Sync for ChatMessageTransportConfiguration {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ChatMessageValidationResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ChatMessageValidationResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ChatMessageValidationResult { pub fn MaxPartCount(&self) -> ::windows_core::Result> { let this = self; @@ -2746,19 +2246,17 @@ impl ::windows_core::RuntimeType for ChatMessageValidationResult { } unsafe impl ::windows_core::Interface for ChatMessageValidationResult { type Vtable = IChatMessageValidationResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ChatMessageValidationResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ChatMessageValidationResult { const NAME: &'static str = "Windows.ApplicationModel.Chat.ChatMessageValidationResult"; } -::windows_core::imp::interface_hierarchy!(ChatMessageValidationResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ChatMessageValidationResult {} unsafe impl ::core::marker::Sync for ChatMessageValidationResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ChatQueryOptions(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ChatQueryOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ChatQueryOptions { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2784,19 +2282,17 @@ impl ::windows_core::RuntimeType for ChatQueryOptions { } unsafe impl ::windows_core::Interface for ChatQueryOptions { type Vtable = IChatQueryOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ChatQueryOptions { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ChatQueryOptions { const NAME: &'static str = "Windows.ApplicationModel.Chat.ChatQueryOptions"; } -::windows_core::imp::interface_hierarchy!(ChatQueryOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ChatQueryOptions {} unsafe impl ::core::marker::Sync for ChatQueryOptions {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ChatRecipientDeliveryInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ChatRecipientDeliveryInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ChatRecipientDeliveryInfo { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2825,10 +2321,10 @@ impl ChatRecipientDeliveryInfo { } pub fn SetDeliveryTime(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetDeliveryTime)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetDeliveryTime)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn ReadTime(&self) -> ::windows_core::Result> { let this = self; @@ -2839,10 +2335,10 @@ impl ChatRecipientDeliveryInfo { } pub fn SetReadTime(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetReadTime)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetReadTime)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn TransportErrorCodeCategory(&self) -> ::windows_core::Result { let this = self; @@ -2885,19 +2381,17 @@ impl ::windows_core::RuntimeType for ChatRecipientDeliveryInfo { } unsafe impl ::windows_core::Interface for ChatRecipientDeliveryInfo { type Vtable = IChatRecipientDeliveryInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ChatRecipientDeliveryInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ChatRecipientDeliveryInfo { const NAME: &'static str = "Windows.ApplicationModel.Chat.ChatRecipientDeliveryInfo"; } -::windows_core::imp::interface_hierarchy!(ChatRecipientDeliveryInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ChatRecipientDeliveryInfo {} unsafe impl ::core::marker::Sync for ChatRecipientDeliveryInfo {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ChatSearchReader(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ChatSearchReader, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ChatSearchReader { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -2923,19 +2417,17 @@ impl ::windows_core::RuntimeType for ChatSearchReader { } unsafe impl ::windows_core::Interface for ChatSearchReader { type Vtable = IChatSearchReader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ChatSearchReader { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ChatSearchReader { const NAME: &'static str = "Windows.ApplicationModel.Chat.ChatSearchReader"; } -::windows_core::imp::interface_hierarchy!(ChatSearchReader, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ChatSearchReader {} unsafe impl ::core::marker::Sync for ChatSearchReader {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ChatSyncConfiguration(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ChatSyncConfiguration, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ChatSyncConfiguration { pub fn IsSyncEnabled(&self) -> ::windows_core::Result { let this = self; @@ -2965,19 +2457,17 @@ impl ::windows_core::RuntimeType for ChatSyncConfiguration { } unsafe impl ::windows_core::Interface for ChatSyncConfiguration { type Vtable = IChatSyncConfiguration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ChatSyncConfiguration { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ChatSyncConfiguration { const NAME: &'static str = "Windows.ApplicationModel.Chat.ChatSyncConfiguration"; } -::windows_core::imp::interface_hierarchy!(ChatSyncConfiguration, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ChatSyncConfiguration {} unsafe impl ::core::marker::Sync for ChatSyncConfiguration {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ChatSyncManager(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ChatSyncManager, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ChatSyncManager { pub fn Configuration(&self) -> ::windows_core::Result { let this = self; @@ -3037,19 +2527,17 @@ impl ::windows_core::RuntimeType for ChatSyncManager { } unsafe impl ::windows_core::Interface for ChatSyncManager { type Vtable = IChatSyncManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ChatSyncManager { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ChatSyncManager { const NAME: &'static str = "Windows.ApplicationModel.Chat.ChatSyncManager"; } -::windows_core::imp::interface_hierarchy!(ChatSyncManager, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ChatSyncManager {} unsafe impl ::core::marker::Sync for ChatSyncManager {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RcsEndUserMessage(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RcsEndUserMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RcsEndUserMessage { pub fn TransportId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -3114,19 +2602,17 @@ impl ::windows_core::RuntimeType for RcsEndUserMessage { } unsafe impl ::windows_core::Interface for RcsEndUserMessage { type Vtable = IRcsEndUserMessage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RcsEndUserMessage { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RcsEndUserMessage { const NAME: &'static str = "Windows.ApplicationModel.Chat.RcsEndUserMessage"; } -::windows_core::imp::interface_hierarchy!(RcsEndUserMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RcsEndUserMessage {} unsafe impl ::core::marker::Sync for RcsEndUserMessage {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RcsEndUserMessageAction(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RcsEndUserMessageAction, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RcsEndUserMessageAction { pub fn Label(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -3141,19 +2627,17 @@ impl ::windows_core::RuntimeType for RcsEndUserMessageAction { } unsafe impl ::windows_core::Interface for RcsEndUserMessageAction { type Vtable = IRcsEndUserMessageAction_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RcsEndUserMessageAction { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RcsEndUserMessageAction { const NAME: &'static str = "Windows.ApplicationModel.Chat.RcsEndUserMessageAction"; } -::windows_core::imp::interface_hierarchy!(RcsEndUserMessageAction, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RcsEndUserMessageAction {} unsafe impl ::core::marker::Sync for RcsEndUserMessageAction {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RcsEndUserMessageAvailableEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RcsEndUserMessageAvailableEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RcsEndUserMessageAvailableEventArgs { pub fn IsMessageAvailable(&self) -> ::windows_core::Result { let this = self; @@ -3175,19 +2659,17 @@ impl ::windows_core::RuntimeType for RcsEndUserMessageAvailableEventArgs { } unsafe impl ::windows_core::Interface for RcsEndUserMessageAvailableEventArgs { type Vtable = IRcsEndUserMessageAvailableEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RcsEndUserMessageAvailableEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RcsEndUserMessageAvailableEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Chat.RcsEndUserMessageAvailableEventArgs"; } -::windows_core::imp::interface_hierarchy!(RcsEndUserMessageAvailableEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RcsEndUserMessageAvailableEventArgs {} unsafe impl ::core::marker::Sync for RcsEndUserMessageAvailableEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RcsEndUserMessageAvailableTriggerDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RcsEndUserMessageAvailableTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RcsEndUserMessageAvailableTriggerDetails { pub fn Title(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -3209,19 +2691,17 @@ impl ::windows_core::RuntimeType for RcsEndUserMessageAvailableTriggerDetails { } unsafe impl ::windows_core::Interface for RcsEndUserMessageAvailableTriggerDetails { type Vtable = IRcsEndUserMessageAvailableTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RcsEndUserMessageAvailableTriggerDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RcsEndUserMessageAvailableTriggerDetails { const NAME: &'static str = "Windows.ApplicationModel.Chat.RcsEndUserMessageAvailableTriggerDetails"; } -::windows_core::imp::interface_hierarchy!(RcsEndUserMessageAvailableTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RcsEndUserMessageAvailableTriggerDetails {} unsafe impl ::core::marker::Sync for RcsEndUserMessageAvailableTriggerDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RcsEndUserMessageManager(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RcsEndUserMessageManager, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RcsEndUserMessageManager { pub fn MessageAvailableChanged(&self, handler: P0) -> ::windows_core::Result where @@ -3243,14 +2723,11 @@ impl ::windows_core::RuntimeType for RcsEndUserMessageManager { } unsafe impl ::windows_core::Interface for RcsEndUserMessageManager { type Vtable = IRcsEndUserMessageManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RcsEndUserMessageManager { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RcsEndUserMessageManager { const NAME: &'static str = "Windows.ApplicationModel.Chat.RcsEndUserMessageManager"; } -::windows_core::imp::interface_hierarchy!(RcsEndUserMessageManager, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RcsEndUserMessageManager {} unsafe impl ::core::marker::Sync for RcsEndUserMessageManager {} pub struct RcsManager; @@ -3313,6 +2790,7 @@ impl ::windows_core::RuntimeName for RcsManager { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RcsServiceKindSupportedChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RcsServiceKindSupportedChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RcsServiceKindSupportedChangedEventArgs { pub fn ServiceKind(&self) -> ::windows_core::Result { let this = self; @@ -3327,19 +2805,17 @@ impl ::windows_core::RuntimeType for RcsServiceKindSupportedChangedEventArgs { } unsafe impl ::windows_core::Interface for RcsServiceKindSupportedChangedEventArgs { type Vtable = IRcsServiceKindSupportedChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RcsServiceKindSupportedChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RcsServiceKindSupportedChangedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Chat.RcsServiceKindSupportedChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(RcsServiceKindSupportedChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RcsServiceKindSupportedChangedEventArgs {} unsafe impl ::core::marker::Sync for RcsServiceKindSupportedChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RcsTransport(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RcsTransport, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RcsTransport { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -3412,19 +2888,17 @@ impl ::windows_core::RuntimeType for RcsTransport { } unsafe impl ::windows_core::Interface for RcsTransport { type Vtable = IRcsTransport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RcsTransport { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RcsTransport { const NAME: &'static str = "Windows.ApplicationModel.Chat.RcsTransport"; } -::windows_core::imp::interface_hierarchy!(RcsTransport, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RcsTransport {} unsafe impl ::core::marker::Sync for RcsTransport {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RcsTransportConfiguration(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RcsTransportConfiguration, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RcsTransportConfiguration { pub fn MaxAttachmentCount(&self) -> ::windows_core::Result { let this = self; @@ -3474,19 +2948,17 @@ impl ::windows_core::RuntimeType for RcsTransportConfiguration { } unsafe impl ::windows_core::Interface for RcsTransportConfiguration { type Vtable = IRcsTransportConfiguration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RcsTransportConfiguration { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RcsTransportConfiguration { const NAME: &'static str = "Windows.ApplicationModel.Chat.RcsTransportConfiguration"; } -::windows_core::imp::interface_hierarchy!(RcsTransportConfiguration, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RcsTransportConfiguration {} unsafe impl ::core::marker::Sync for RcsTransportConfiguration {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RemoteParticipantComposingChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RemoteParticipantComposingChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RemoteParticipantComposingChangedEventArgs { pub fn TransportId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -3515,14 +2987,11 @@ impl ::windows_core::RuntimeType for RemoteParticipantComposingChangedEventArgs } unsafe impl ::windows_core::Interface for RemoteParticipantComposingChangedEventArgs { type Vtable = IRemoteParticipantComposingChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RemoteParticipantComposingChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RemoteParticipantComposingChangedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Chat.RemoteParticipantComposingChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(RemoteParticipantComposingChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RemoteParticipantComposingChangedEventArgs {} unsafe impl ::core::marker::Sync for RemoteParticipantComposingChangedEventArgs {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/ApplicationModel/CommunicationBlocking/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/CommunicationBlocking/mod.rs index c87157bddb..2756e6fcb0 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/CommunicationBlocking/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/CommunicationBlocking/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICommunicationBlockingAccessManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICommunicationBlockingAccessManagerStatics { - type Vtable = ICommunicationBlockingAccessManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICommunicationBlockingAccessManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1c969998_9d2a_5db7_edd5_0ce407fc2595); -} +::windows_core::imp::com_interface!(ICommunicationBlockingAccessManagerStatics, ICommunicationBlockingAccessManagerStatics_Vtbl, 0x1c969998_9d2a_5db7_edd5_0ce407fc2595); #[repr(C)] #[doc(hidden)] pub struct ICommunicationBlockingAccessManagerStatics_Vtbl { @@ -25,16 +16,7 @@ pub struct ICommunicationBlockingAccessManagerStatics_Vtbl { pub ShowBlockedCallsUI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ShowBlockedMessagesUI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICommunicationBlockingAppManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICommunicationBlockingAppManagerStatics { - type Vtable = ICommunicationBlockingAppManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICommunicationBlockingAppManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x77db58ec_14a6_4baa_942a_6a673d999bf2); -} +::windows_core::imp::com_interface!(ICommunicationBlockingAppManagerStatics, ICommunicationBlockingAppManagerStatics_Vtbl, 0x77db58ec_14a6_4baa_942a_6a673d999bf2); #[repr(C)] #[doc(hidden)] pub struct ICommunicationBlockingAppManagerStatics_Vtbl { @@ -42,16 +24,7 @@ pub struct ICommunicationBlockingAppManagerStatics_Vtbl { pub IsCurrentAppActiveBlockingApp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub ShowCommunicationBlockingSettingsUI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICommunicationBlockingAppManagerStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICommunicationBlockingAppManagerStatics2 { - type Vtable = ICommunicationBlockingAppManagerStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICommunicationBlockingAppManagerStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x14a68edd_ed88_457a_a364_a3634d6f166d); -} +::windows_core::imp::com_interface!(ICommunicationBlockingAppManagerStatics2, ICommunicationBlockingAppManagerStatics2_Vtbl, 0x14a68edd_ed88_457a_a364_a3634d6f166d); #[repr(C)] #[doc(hidden)] pub struct ICommunicationBlockingAppManagerStatics2_Vtbl { @@ -76,22 +49,22 @@ impl CommunicationBlockingAccessManager { #[cfg(feature = "Foundation_Collections")] pub fn ShowBlockNumbersUI(phonenumbers: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::ICommunicationBlockingAccessManagerStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).ShowBlockNumbersUI)(::windows_core::Interface::as_raw(this), phonenumbers.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ShowBlockNumbersUI)(::windows_core::Interface::as_raw(this), phonenumbers.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn ShowUnblockNumbersUI(phonenumbers: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::ICommunicationBlockingAccessManagerStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).ShowUnblockNumbersUI)(::windows_core::Interface::as_raw(this), phonenumbers.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ShowUnblockNumbersUI)(::windows_core::Interface::as_raw(this), phonenumbers.into_param().abi(), &mut result__).from_abi(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 8495477c22..4e5a536c78 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Contacts/DataProvider/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Contacts/DataProvider/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactDataProviderConnection(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactDataProviderConnection { - type Vtable = IContactDataProviderConnection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactDataProviderConnection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1a398a52_8c9d_4d6f_a4e0_111e9a125a30); -} +::windows_core::imp::com_interface!(IContactDataProviderConnection, IContactDataProviderConnection_Vtbl, 0x1a398a52_8c9d_4d6f_a4e0_111e9a125a30); #[repr(C)] #[doc(hidden)] pub struct IContactDataProviderConnection_Vtbl { @@ -18,16 +9,7 @@ pub struct IContactDataProviderConnection_Vtbl { pub RemoveServerSearchReadBatchRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub Start: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactDataProviderConnection2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactDataProviderConnection2 { - type Vtable = IContactDataProviderConnection2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactDataProviderConnection2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa1d327b0_196c_4bfd_8f0f_c68d67f249d3); -} +::windows_core::imp::com_interface!(IContactDataProviderConnection2, IContactDataProviderConnection2_Vtbl, 0xa1d327b0_196c_4bfd_8f0f_c68d67f249d3); #[repr(C)] #[doc(hidden)] pub struct IContactDataProviderConnection2_Vtbl { @@ -37,32 +19,14 @@ pub struct IContactDataProviderConnection2_Vtbl { pub DeleteContactRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveDeleteContactRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactDataProviderTriggerDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactDataProviderTriggerDetails { - type Vtable = IContactDataProviderTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactDataProviderTriggerDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x527104be_3c62_43c8_9ae7_db531685cd99); -} +::windows_core::imp::com_interface!(IContactDataProviderTriggerDetails, IContactDataProviderTriggerDetails_Vtbl, 0x527104be_3c62_43c8_9ae7_db531685cd99); #[repr(C)] #[doc(hidden)] pub struct IContactDataProviderTriggerDetails_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Connection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactListCreateOrUpdateContactRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactListCreateOrUpdateContactRequest { - type Vtable = IContactListCreateOrUpdateContactRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactListCreateOrUpdateContactRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb4af411f_c849_47d0_b119_91cf605b2f2a); -} +::windows_core::imp::com_interface!(IContactListCreateOrUpdateContactRequest, IContactListCreateOrUpdateContactRequest_Vtbl, 0xb4af411f_c849_47d0_b119_91cf605b2f2a); #[repr(C)] #[doc(hidden)] pub struct IContactListCreateOrUpdateContactRequest_Vtbl { @@ -72,16 +36,7 @@ pub struct IContactListCreateOrUpdateContactRequest_Vtbl { pub ReportCompletedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, createdorupdatedcontact: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ReportFailedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactListCreateOrUpdateContactRequestEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactListCreateOrUpdateContactRequestEventArgs { - type Vtable = IContactListCreateOrUpdateContactRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactListCreateOrUpdateContactRequestEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x851c1690_1a51_4b0c_aeef_1240ac5bed75); -} +::windows_core::imp::com_interface!(IContactListCreateOrUpdateContactRequestEventArgs, IContactListCreateOrUpdateContactRequestEventArgs_Vtbl, 0x851c1690_1a51_4b0c_aeef_1240ac5bed75); #[repr(C)] #[doc(hidden)] pub struct IContactListCreateOrUpdateContactRequestEventArgs_Vtbl { @@ -89,16 +44,7 @@ pub struct IContactListCreateOrUpdateContactRequestEventArgs_Vtbl { pub Request: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactListDeleteContactRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactListDeleteContactRequest { - type Vtable = IContactListDeleteContactRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactListDeleteContactRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5e114687_ce03_4de5_8557_9ccf552d472a); -} +::windows_core::imp::com_interface!(IContactListDeleteContactRequest, IContactListDeleteContactRequest_Vtbl, 0x5e114687_ce03_4de5_8557_9ccf552d472a); #[repr(C)] #[doc(hidden)] pub struct IContactListDeleteContactRequest_Vtbl { @@ -108,16 +54,7 @@ pub struct IContactListDeleteContactRequest_Vtbl { pub ReportCompletedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ReportFailedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactListDeleteContactRequestEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactListDeleteContactRequestEventArgs { - type Vtable = IContactListDeleteContactRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactListDeleteContactRequestEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb22054a1_e8fa_4db5_9389_2d12ee7d15ee); -} +::windows_core::imp::com_interface!(IContactListDeleteContactRequestEventArgs, IContactListDeleteContactRequestEventArgs_Vtbl, 0xb22054a1_e8fa_4db5_9389_2d12ee7d15ee); #[repr(C)] #[doc(hidden)] pub struct IContactListDeleteContactRequestEventArgs_Vtbl { @@ -125,16 +62,7 @@ pub struct IContactListDeleteContactRequestEventArgs_Vtbl { pub Request: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactListServerSearchReadBatchRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactListServerSearchReadBatchRequest { - type Vtable = IContactListServerSearchReadBatchRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactListServerSearchReadBatchRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xba776a97_4030_4925_9fb4_143b295e653b); -} +::windows_core::imp::com_interface!(IContactListServerSearchReadBatchRequest, IContactListServerSearchReadBatchRequest_Vtbl, 0xba776a97_4030_4925_9fb4_143b295e653b); #[repr(C)] #[doc(hidden)] pub struct IContactListServerSearchReadBatchRequest_Vtbl { @@ -147,16 +75,7 @@ pub struct IContactListServerSearchReadBatchRequest_Vtbl { pub ReportCompletedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ReportFailedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, batchstatus: super::ContactBatchStatus, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactListServerSearchReadBatchRequestEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactListServerSearchReadBatchRequestEventArgs { - type Vtable = IContactListServerSearchReadBatchRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactListServerSearchReadBatchRequestEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1a27e87b_69d7_4e4e_8042_861cba61471e); -} +::windows_core::imp::com_interface!(IContactListServerSearchReadBatchRequestEventArgs, IContactListServerSearchReadBatchRequestEventArgs_Vtbl, 0x1a27e87b_69d7_4e4e_8042_861cba61471e); #[repr(C)] #[doc(hidden)] pub struct IContactListServerSearchReadBatchRequestEventArgs_Vtbl { @@ -164,16 +83,7 @@ pub struct IContactListServerSearchReadBatchRequestEventArgs_Vtbl { pub Request: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactListSyncManagerSyncRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactListSyncManagerSyncRequest { - type Vtable = IContactListSyncManagerSyncRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactListSyncManagerSyncRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3c0e57a4_c4e7_4970_9a8f_9a66a2bb6c1a); -} +::windows_core::imp::com_interface!(IContactListSyncManagerSyncRequest, IContactListSyncManagerSyncRequest_Vtbl, 0x3c0e57a4_c4e7_4970_9a8f_9a66a2bb6c1a); #[repr(C)] #[doc(hidden)] pub struct IContactListSyncManagerSyncRequest_Vtbl { @@ -182,16 +92,7 @@ pub struct IContactListSyncManagerSyncRequest_Vtbl { pub ReportCompletedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ReportFailedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactListSyncManagerSyncRequestEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactListSyncManagerSyncRequestEventArgs { - type Vtable = IContactListSyncManagerSyncRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactListSyncManagerSyncRequestEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x158e4dac_446d_4f10_afc2_02683ec533a6); -} +::windows_core::imp::com_interface!(IContactListSyncManagerSyncRequestEventArgs, IContactListSyncManagerSyncRequestEventArgs_Vtbl, 0x158e4dac_446d_4f10_afc2_02683ec533a6); #[repr(C)] #[doc(hidden)] pub struct IContactListSyncManagerSyncRequestEventArgs_Vtbl { @@ -202,6 +103,7 @@ pub struct IContactListSyncManagerSyncRequestEventArgs_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContactDataProviderConnection(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContactDataProviderConnection, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ContactDataProviderConnection { pub fn SyncRequested(&self, handler: P0) -> ::windows_core::Result where @@ -239,28 +141,28 @@ impl ContactDataProviderConnection { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveCreateOrUpdateContactRequested(&self, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveCreateOrUpdateContactRequested)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn DeleteContactRequested(&self, handler: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveDeleteContactRequested(&self, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveDeleteContactRequested)(::windows_core::Interface::as_raw(this), token).ok() } } } @@ -269,19 +171,17 @@ impl ::windows_core::RuntimeType for ContactDataProviderConnection { } unsafe impl ::windows_core::Interface for ContactDataProviderConnection { type Vtable = IContactDataProviderConnection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContactDataProviderConnection { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContactDataProviderConnection { const NAME: &'static str = "Windows.ApplicationModel.Contacts.DataProvider.ContactDataProviderConnection"; } -::windows_core::imp::interface_hierarchy!(ContactDataProviderConnection, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ContactDataProviderConnection {} unsafe impl ::core::marker::Sync for ContactDataProviderConnection {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContactDataProviderTriggerDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContactDataProviderTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ContactDataProviderTriggerDetails { pub fn Connection(&self) -> ::windows_core::Result { let this = self; @@ -296,19 +196,17 @@ impl ::windows_core::RuntimeType for ContactDataProviderTriggerDetails { } unsafe impl ::windows_core::Interface for ContactDataProviderTriggerDetails { type Vtable = IContactDataProviderTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContactDataProviderTriggerDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContactDataProviderTriggerDetails { const NAME: &'static str = "Windows.ApplicationModel.Contacts.DataProvider.ContactDataProviderTriggerDetails"; } -::windows_core::imp::interface_hierarchy!(ContactDataProviderTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ContactDataProviderTriggerDetails {} unsafe impl ::core::marker::Sync for ContactDataProviderTriggerDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContactListCreateOrUpdateContactRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContactListCreateOrUpdateContactRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ContactListCreateOrUpdateContactRequest { pub fn ContactListId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -347,19 +245,17 @@ impl ::windows_core::RuntimeType for ContactListCreateOrUpdateContactRequest { } unsafe impl ::windows_core::Interface for ContactListCreateOrUpdateContactRequest { type Vtable = IContactListCreateOrUpdateContactRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContactListCreateOrUpdateContactRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContactListCreateOrUpdateContactRequest { const NAME: &'static str = "Windows.ApplicationModel.Contacts.DataProvider.ContactListCreateOrUpdateContactRequest"; } -::windows_core::imp::interface_hierarchy!(ContactListCreateOrUpdateContactRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ContactListCreateOrUpdateContactRequest {} unsafe impl ::core::marker::Sync for ContactListCreateOrUpdateContactRequest {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContactListCreateOrUpdateContactRequestEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContactListCreateOrUpdateContactRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ContactListCreateOrUpdateContactRequestEventArgs { pub fn Request(&self) -> ::windows_core::Result { let this = self; @@ -381,19 +277,17 @@ impl ::windows_core::RuntimeType for ContactListCreateOrUpdateContactRequestEven } unsafe impl ::windows_core::Interface for ContactListCreateOrUpdateContactRequestEventArgs { type Vtable = IContactListCreateOrUpdateContactRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContactListCreateOrUpdateContactRequestEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContactListCreateOrUpdateContactRequestEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Contacts.DataProvider.ContactListCreateOrUpdateContactRequestEventArgs"; } -::windows_core::imp::interface_hierarchy!(ContactListCreateOrUpdateContactRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ContactListCreateOrUpdateContactRequestEventArgs {} unsafe impl ::core::marker::Sync for ContactListCreateOrUpdateContactRequestEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContactListDeleteContactRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContactListDeleteContactRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ContactListDeleteContactRequest { pub fn ContactListId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -429,19 +323,17 @@ impl ::windows_core::RuntimeType for ContactListDeleteContactRequest { } unsafe impl ::windows_core::Interface for ContactListDeleteContactRequest { type Vtable = IContactListDeleteContactRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContactListDeleteContactRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContactListDeleteContactRequest { const NAME: &'static str = "Windows.ApplicationModel.Contacts.DataProvider.ContactListDeleteContactRequest"; } -::windows_core::imp::interface_hierarchy!(ContactListDeleteContactRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ContactListDeleteContactRequest {} unsafe impl ::core::marker::Sync for ContactListDeleteContactRequest {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContactListDeleteContactRequestEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContactListDeleteContactRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ContactListDeleteContactRequestEventArgs { pub fn Request(&self) -> ::windows_core::Result { let this = self; @@ -463,19 +355,17 @@ impl ::windows_core::RuntimeType for ContactListDeleteContactRequestEventArgs { } unsafe impl ::windows_core::Interface for ContactListDeleteContactRequestEventArgs { type Vtable = IContactListDeleteContactRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContactListDeleteContactRequestEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContactListDeleteContactRequestEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Contacts.DataProvider.ContactListDeleteContactRequestEventArgs"; } -::windows_core::imp::interface_hierarchy!(ContactListDeleteContactRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ContactListDeleteContactRequestEventArgs {} unsafe impl ::core::marker::Sync for ContactListDeleteContactRequestEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContactListServerSearchReadBatchRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContactListServerSearchReadBatchRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ContactListServerSearchReadBatchRequest { pub fn SessionId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -535,19 +425,17 @@ impl ::windows_core::RuntimeType for ContactListServerSearchReadBatchRequest { } unsafe impl ::windows_core::Interface for ContactListServerSearchReadBatchRequest { type Vtable = IContactListServerSearchReadBatchRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContactListServerSearchReadBatchRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContactListServerSearchReadBatchRequest { const NAME: &'static str = "Windows.ApplicationModel.Contacts.DataProvider.ContactListServerSearchReadBatchRequest"; } -::windows_core::imp::interface_hierarchy!(ContactListServerSearchReadBatchRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ContactListServerSearchReadBatchRequest {} unsafe impl ::core::marker::Sync for ContactListServerSearchReadBatchRequest {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContactListServerSearchReadBatchRequestEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContactListServerSearchReadBatchRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ContactListServerSearchReadBatchRequestEventArgs { pub fn Request(&self) -> ::windows_core::Result { let this = self; @@ -569,19 +457,17 @@ impl ::windows_core::RuntimeType for ContactListServerSearchReadBatchRequestEven } unsafe impl ::windows_core::Interface for ContactListServerSearchReadBatchRequestEventArgs { type Vtable = IContactListServerSearchReadBatchRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContactListServerSearchReadBatchRequestEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContactListServerSearchReadBatchRequestEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Contacts.DataProvider.ContactListServerSearchReadBatchRequestEventArgs"; } -::windows_core::imp::interface_hierarchy!(ContactListServerSearchReadBatchRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ContactListServerSearchReadBatchRequestEventArgs {} unsafe impl ::core::marker::Sync for ContactListServerSearchReadBatchRequestEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContactListSyncManagerSyncRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContactListSyncManagerSyncRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ContactListSyncManagerSyncRequest { pub fn ContactListId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -610,19 +496,17 @@ impl ::windows_core::RuntimeType for ContactListSyncManagerSyncRequest { } unsafe impl ::windows_core::Interface for ContactListSyncManagerSyncRequest { type Vtable = IContactListSyncManagerSyncRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContactListSyncManagerSyncRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContactListSyncManagerSyncRequest { const NAME: &'static str = "Windows.ApplicationModel.Contacts.DataProvider.ContactListSyncManagerSyncRequest"; } -::windows_core::imp::interface_hierarchy!(ContactListSyncManagerSyncRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ContactListSyncManagerSyncRequest {} unsafe impl ::core::marker::Sync for ContactListSyncManagerSyncRequest {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContactListSyncManagerSyncRequestEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContactListSyncManagerSyncRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ContactListSyncManagerSyncRequestEventArgs { pub fn Request(&self) -> ::windows_core::Result { let this = self; @@ -644,13 +528,10 @@ impl ::windows_core::RuntimeType for ContactListSyncManagerSyncRequestEventArgs } unsafe impl ::windows_core::Interface for ContactListSyncManagerSyncRequestEventArgs { type Vtable = IContactListSyncManagerSyncRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContactListSyncManagerSyncRequestEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContactListSyncManagerSyncRequestEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Contacts.DataProvider.ContactListSyncManagerSyncRequestEventArgs"; } -::windows_core::imp::interface_hierarchy!(ContactListSyncManagerSyncRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ContactListSyncManagerSyncRequestEventArgs {} unsafe impl ::core::marker::Sync for ContactListSyncManagerSyncRequestEventArgs {} 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 eb3d071959..4d3350dd7d 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Contacts/Provider/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Contacts/Provider/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactPickerUI(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactPickerUI { - type Vtable = IContactPickerUI_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactPickerUI { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe2cc1366_cf66_43c4_a96a_a5a112db4746); -} +::windows_core::imp::com_interface!(IContactPickerUI, IContactPickerUI_Vtbl, 0xe2cc1366_cf66_43c4_a96a_a5a112db4746); #[repr(C)] #[doc(hidden)] pub struct IContactPickerUI_Vtbl { @@ -26,16 +17,7 @@ pub struct IContactPickerUI_Vtbl { pub ContactRemoved: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveContactRemoved: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactPickerUI2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactPickerUI2 { - type Vtable = IContactPickerUI2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactPickerUI2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6e449e28_7b25_4999_9b0b_875400a1e8c8); -} +::windows_core::imp::com_interface!(IContactPickerUI2, IContactPickerUI2_Vtbl, 0x6e449e28_7b25_4999_9b0b_875400a1e8c8); #[repr(C)] #[doc(hidden)] pub struct IContactPickerUI2_Vtbl { @@ -46,16 +28,7 @@ pub struct IContactPickerUI2_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] DesiredFieldsWithContactFieldType: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactRemovedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactRemovedEventArgs { - type Vtable = IContactRemovedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactRemovedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6f354338_3302_4d13_ad8d_adcc0ff9e47c); -} +::windows_core::imp::com_interface!(IContactRemovedEventArgs, IContactRemovedEventArgs_Vtbl, 0x6f354338_3302_4d13_ad8d_adcc0ff9e47c); #[repr(C)] #[doc(hidden)] pub struct IContactRemovedEventArgs_Vtbl { @@ -65,6 +38,7 @@ pub struct IContactRemovedEventArgs_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContactPickerUI(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContactPickerUI, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ContactPickerUI { #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] @@ -123,7 +97,7 @@ impl ContactPickerUI { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -132,7 +106,7 @@ impl ContactPickerUI { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn DesiredFieldsWithContactFieldType(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DesiredFieldsWithContactFieldType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -144,17 +118,15 @@ impl ::windows_core::RuntimeType for ContactPickerUI { } unsafe impl ::windows_core::Interface for ContactPickerUI { type Vtable = IContactPickerUI_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContactPickerUI { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContactPickerUI { const NAME: &'static str = "Windows.ApplicationModel.Contacts.Provider.ContactPickerUI"; } -::windows_core::imp::interface_hierarchy!(ContactPickerUI, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContactRemovedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContactRemovedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ContactRemovedEventArgs { pub fn Id(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -169,14 +141,11 @@ impl ::windows_core::RuntimeType for ContactRemovedEventArgs { } unsafe impl ::windows_core::Interface for ContactRemovedEventArgs { type Vtable = IContactRemovedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContactRemovedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContactRemovedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Contacts.Provider.ContactRemovedEventArgs"; } -::windows_core::imp::interface_hierarchy!(ContactRemovedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::marker::Copy, ::core::clone::Clone, ::core::default::Default)] pub struct AddContactResult(pub i32); diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Contacts/impl.rs b/crates/libs/windows/src/Windows/ApplicationModel/Contacts/impl.rs index d514ffdc38..79ec14956b 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Contacts/impl.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Contacts/impl.rs @@ -64,7 +64,7 @@ impl IContactField_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IContactFieldFactory_Impl: Sized { @@ -121,7 +121,7 @@ impl IContactFieldFactory_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IContactInstantMessageFieldFactory_Impl: Sized { @@ -178,7 +178,7 @@ impl IContactInstantMessageFieldFactory_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IContactLocationFieldFactory_Impl: Sized { @@ -235,6 +235,6 @@ impl IContactLocationFieldFactory_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs index 1a5aa3e186..79ef7af87a 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs @@ -4,16 +4,7 @@ pub mod DataProvider; #[cfg(feature = "ApplicationModel_Contacts_Provider")] #[doc = "Required features: `\"ApplicationModel_Contacts_Provider\"`"] pub mod Provider; -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAggregateContactManager(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAggregateContactManager { - type Vtable = IAggregateContactManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAggregateContactManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0379d5dd_db5a_4fd3_b54e_4df17917a212); -} +::windows_core::imp::com_interface!(IAggregateContactManager, IAggregateContactManager_Vtbl, 0x0379d5dd_db5a_4fd3_b54e_4df17917a212); #[repr(C)] #[doc(hidden)] pub struct IAggregateContactManager_Vtbl { @@ -26,32 +17,14 @@ pub struct IAggregateContactManager_Vtbl { pub UnlinkRawContactAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, contact: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub TrySetPreferredSourceForPictureAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, aggregatecontact: *mut ::core::ffi::c_void, rawcontact: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAggregateContactManager2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAggregateContactManager2 { - type Vtable = IAggregateContactManager2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAggregateContactManager2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5e8cc2d8_a9cd_4430_9c4b_01348db2ca50); -} +::windows_core::imp::com_interface!(IAggregateContactManager2, IAggregateContactManager2_Vtbl, 0x5e8cc2d8_a9cd_4430_9c4b_01348db2ca50); #[repr(C)] #[doc(hidden)] pub struct IAggregateContactManager2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub SetRemoteIdentificationInformationAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, contactlistid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, remotesourceid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, accountid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContact(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContact { - type Vtable = IContact_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContact { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xec0072f3_2118_4049_9ebc_17f0ab692b64); -} +::windows_core::imp::com_interface!(IContact, IContact_Vtbl, 0xec0072f3_2118_4049_9ebc_17f0ab692b64); #[repr(C)] #[doc(hidden)] pub struct IContact_Vtbl { @@ -71,16 +44,7 @@ pub struct IContact_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Fields: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContact2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContact2 { - type Vtable = IContact2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContact2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf312f365_bb77_4c94_802d_8328cee40c08); -} +::windows_core::imp::com_interface!(IContact2, IContact2_Vtbl, 0xf312f365_bb77_4c94_802d_8328cee40c08); #[repr(C)] #[doc(hidden)] pub struct IContact2_Vtbl { @@ -130,16 +94,7 @@ pub struct IContact2_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] ProviderProperties: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContact3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContact3 { - type Vtable = IContact3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContact3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x48201e67_e08e_42a4_b561_41d08ca9575d); -} +::windows_core::imp::com_interface!(IContact3, IContact3_Vtbl, 0x48201e67_e08e_42a4_b561_41d08ca9575d); #[repr(C)] #[doc(hidden)] pub struct IContact3_Vtbl { @@ -180,16 +135,7 @@ pub struct IContact3_Vtbl { pub SetNickname: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SortName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactAddress(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactAddress { - type Vtable = IContactAddress_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactAddress { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9739d39a_42ce_4872_8d70_3063aa584b70); -} +::windows_core::imp::com_interface!(IContactAddress, IContactAddress_Vtbl, 0x9739d39a_42ce_4872_8d70_3063aa584b70); #[repr(C)] #[doc(hidden)] pub struct IContactAddress_Vtbl { @@ -209,16 +155,7 @@ pub struct IContactAddress_Vtbl { pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactAnnotation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactAnnotation { - type Vtable = IContactAnnotation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactAnnotation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x821fc2ef_7d41_44a2_84c3_60a281dd7b86); -} +::windows_core::imp::com_interface!(IContactAnnotation, IContactAnnotation_Vtbl, 0x821fc2ef_7d41_44a2_84c3_60a281dd7b86); #[repr(C)] #[doc(hidden)] pub struct IContactAnnotation_Vtbl { @@ -237,16 +174,7 @@ pub struct IContactAnnotation_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] ProviderProperties: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactAnnotation2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactAnnotation2 { - type Vtable = IContactAnnotation2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactAnnotation2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb691ecf3_4ab7_4a1f_9941_0c9cf3171b75); -} +::windows_core::imp::com_interface!(IContactAnnotation2, IContactAnnotation2_Vtbl, 0xb691ecf3_4ab7_4a1f_9941_0c9cf3171b75); #[repr(C)] #[doc(hidden)] pub struct IContactAnnotation2_Vtbl { @@ -254,16 +182,7 @@ pub struct IContactAnnotation2_Vtbl { pub ContactListId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetContactListId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactAnnotationList(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactAnnotationList { - type Vtable = IContactAnnotationList_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactAnnotationList { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x92a486aa_5c88_45b9_aad0_461888e68d8a); -} +::windows_core::imp::com_interface!(IContactAnnotationList, IContactAnnotationList_Vtbl, 0x92a486aa_5c88_45b9_aad0_461888e68d8a); #[repr(C)] #[doc(hidden)] pub struct IContactAnnotationList_Vtbl { @@ -284,16 +203,7 @@ pub struct IContactAnnotationList_Vtbl { FindAnnotationsAsync: usize, pub DeleteAnnotationAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, annotation: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactAnnotationStore(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactAnnotationStore { - type Vtable = IContactAnnotationStore_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactAnnotationStore { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x23acf4aa_7a77_457d_8203_987f4b31af09); -} +::windows_core::imp::com_interface!(IContactAnnotationStore, IContactAnnotationStore_Vtbl, 0x23acf4aa_7a77_457d_8203_987f4b31af09); #[repr(C)] #[doc(hidden)] pub struct IContactAnnotationStore_Vtbl { @@ -319,16 +229,7 @@ pub struct IContactAnnotationStore_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] FindAnnotationListsAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactAnnotationStore2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactAnnotationStore2 { - type Vtable = IContactAnnotationStore2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactAnnotationStore2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7ede23fd_61e7_4967_8ec5_bdf280a24063); -} +::windows_core::imp::com_interface!(IContactAnnotationStore2, IContactAnnotationStore2_Vtbl, 0x7ede23fd_61e7_4967_8ec5_bdf280a24063); #[repr(C)] #[doc(hidden)] pub struct IContactAnnotationStore2_Vtbl { @@ -338,16 +239,7 @@ pub struct IContactAnnotationStore2_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] FindAnnotationsForContactListAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactBatch(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactBatch { - type Vtable = IContactBatch_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactBatch { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x35d1972d_bfce_46bb_93f8_a5b06ec5e201); -} +::windows_core::imp::com_interface!(IContactBatch, IContactBatch_Vtbl, 0x35d1972d_bfce_46bb_93f8_a5b06ec5e201); #[repr(C)] #[doc(hidden)] pub struct IContactBatch_Vtbl { @@ -358,32 +250,14 @@ pub struct IContactBatch_Vtbl { Contacts: usize, pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ContactBatchStatus) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactCardDelayedDataLoader(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactCardDelayedDataLoader { - type Vtable = IContactCardDelayedDataLoader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactCardDelayedDataLoader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb60af902_1546_434d_869c_6e3520760ef3); -} +::windows_core::imp::com_interface!(IContactCardDelayedDataLoader, IContactCardDelayedDataLoader_Vtbl, 0xb60af902_1546_434d_869c_6e3520760ef3); #[repr(C)] #[doc(hidden)] pub struct IContactCardDelayedDataLoader_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub SetData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, contact: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactCardOptions(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactCardOptions { - type Vtable = IContactCardOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactCardOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8c0a4f7e_6ab6_4f3f_be72_817236eeea5b); -} +::windows_core::imp::com_interface!(IContactCardOptions, IContactCardOptions_Vtbl, 0x8c0a4f7e_6ab6_4f3f_be72_817236eeea5b); #[repr(C)] #[doc(hidden)] pub struct IContactCardOptions_Vtbl { @@ -393,16 +267,7 @@ pub struct IContactCardOptions_Vtbl { pub InitialTabKind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ContactCardTabKind) -> ::windows_core::HRESULT, pub SetInitialTabKind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ContactCardTabKind) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactCardOptions2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactCardOptions2 { - type Vtable = IContactCardOptions2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactCardOptions2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8f271ba0_d74b_4cc6_9f53_1b0eb5d1273c); -} +::windows_core::imp::com_interface!(IContactCardOptions2, IContactCardOptions2_Vtbl, 0x8f271ba0_d74b_4cc6_9f53_1b0eb5d1273c); #[repr(C)] #[doc(hidden)] pub struct IContactCardOptions2_Vtbl { @@ -412,16 +277,7 @@ pub struct IContactCardOptions2_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] ServerSearchContactListIds: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactChange(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactChange { - type Vtable = IContactChange_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactChange { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x951d4b10_6a59_4720_a4e1_363d98c135d5); -} +::windows_core::imp::com_interface!(IContactChange, IContactChange_Vtbl, 0x951d4b10_6a59_4720_a4e1_363d98c135d5); #[repr(C)] #[doc(hidden)] pub struct IContactChange_Vtbl { @@ -429,16 +285,7 @@ pub struct IContactChange_Vtbl { pub ChangeType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ContactChangeType) -> ::windows_core::HRESULT, pub Contact: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactChangeReader(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactChangeReader { - type Vtable = IContactChangeReader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactChangeReader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x217319fa_2d0c_42e0_a9da_3ecd56a78a47); -} +::windows_core::imp::com_interface!(IContactChangeReader, IContactChangeReader_Vtbl, 0x217319fa_2d0c_42e0_a9da_3ecd56a78a47); #[repr(C)] #[doc(hidden)] pub struct IContactChangeReader_Vtbl { @@ -450,16 +297,7 @@ pub struct IContactChangeReader_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] ReadBatchAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactChangeTracker(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactChangeTracker { - type Vtable = IContactChangeTracker_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactChangeTracker { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6e992952_309b_404d_9712_b37bd30278aa); -} +::windows_core::imp::com_interface!(IContactChangeTracker, IContactChangeTracker_Vtbl, 0x6e992952_309b_404d_9712_b37bd30278aa); #[repr(C)] #[doc(hidden)] pub struct IContactChangeTracker_Vtbl { @@ -468,64 +306,28 @@ pub struct IContactChangeTracker_Vtbl { pub GetChangeReader: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactChangeTracker2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactChangeTracker2 { - type Vtable = IContactChangeTracker2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactChangeTracker2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7f8ad0fc_9321_4d18_9c09_d708c63fcd31); -} +::windows_core::imp::com_interface!(IContactChangeTracker2, IContactChangeTracker2_Vtbl, 0x7f8ad0fc_9321_4d18_9c09_d708c63fcd31); #[repr(C)] #[doc(hidden)] pub struct IContactChangeTracker2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub IsTracking: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactChangedDeferral(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactChangedDeferral { - type Vtable = IContactChangedDeferral_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactChangedDeferral { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc5143ae8_1b03_46f8_b694_a523e83cfcb6); -} +::windows_core::imp::com_interface!(IContactChangedDeferral, IContactChangedDeferral_Vtbl, 0xc5143ae8_1b03_46f8_b694_a523e83cfcb6); #[repr(C)] #[doc(hidden)] pub struct IContactChangedDeferral_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Complete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactChangedEventArgs { - type Vtable = IContactChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x525e7fd1_73f3_4b7d_a918_580be4366121); -} +::windows_core::imp::com_interface!(IContactChangedEventArgs, IContactChangedEventArgs_Vtbl, 0x525e7fd1_73f3_4b7d_a918_580be4366121); #[repr(C)] #[doc(hidden)] pub struct IContactChangedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactConnectedServiceAccount(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactConnectedServiceAccount { - type Vtable = IContactConnectedServiceAccount_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactConnectedServiceAccount { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf6f83553_aa27_4731_8e4a_3dec5ce9eec9); -} +::windows_core::imp::com_interface!(IContactConnectedServiceAccount, IContactConnectedServiceAccount_Vtbl, 0xf6f83553_aa27_4731_8e4a_3dec5ce9eec9); #[repr(C)] #[doc(hidden)] pub struct IContactConnectedServiceAccount_Vtbl { @@ -535,16 +337,7 @@ pub struct IContactConnectedServiceAccount_Vtbl { pub ServiceName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetServiceName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactDate(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactDate { - type Vtable = IContactDate_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactDate { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfe98ae66_b205_4934_9174_0ff2b0565707); -} +::windows_core::imp::com_interface!(IContactDate, IContactDate_Vtbl, 0xfe98ae66_b205_4934_9174_0ff2b0565707); #[repr(C)] #[doc(hidden)] pub struct IContactDate_Vtbl { @@ -560,16 +353,7 @@ pub struct IContactDate_Vtbl { pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactEmail(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactEmail { - type Vtable = IContactEmail_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactEmail { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x90a219a9_e3d3_4d63_993b_05b9a5393abf); -} +::windows_core::imp::com_interface!(IContactEmail, IContactEmail_Vtbl, 0x90a219a9_e3d3_4d63_993b_05b9a5393abf); #[repr(C)] #[doc(hidden)] pub struct IContactEmail_Vtbl { @@ -581,9 +365,8 @@ pub struct IContactEmail_Vtbl { pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactField(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IContactField, IContactField_Vtbl, 0xb176486a_d293_492c_a058_db575b3e3c0f); +::windows_core::imp::interface_hierarchy!(IContactField, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IContactField { pub fn Type(&self) -> ::windows_core::Result { let this = self; @@ -614,16 +397,9 @@ impl IContactField { } } } -::windows_core::imp::interface_hierarchy!(IContactField, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IContactField { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IContactField { - type Vtable = IContactField_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactField { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb176486a_d293_492c_a058_db575b3e3c0f); -} #[repr(C)] #[doc(hidden)] pub struct IContactField_Vtbl { @@ -633,9 +409,8 @@ pub struct IContactField_Vtbl { pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactFieldFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IContactFieldFactory, IContactFieldFactory_Vtbl, 0x85e2913f_0e4a_4a3e_8994_406ae7ed646e); +::windows_core::imp::interface_hierarchy!(IContactFieldFactory, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IContactFieldFactory { pub fn CreateField_Default(&self, value: &::windows_core::HSTRING, r#type: ContactFieldType) -> ::windows_core::Result { let this = self; @@ -659,16 +434,9 @@ impl IContactFieldFactory { } } } -::windows_core::imp::interface_hierarchy!(IContactFieldFactory, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IContactFieldFactory { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IContactFieldFactory { - type Vtable = IContactFieldFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactFieldFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x85e2913f_0e4a_4a3e_8994_406ae7ed646e); -} #[repr(C)] #[doc(hidden)] pub struct IContactFieldFactory_Vtbl { @@ -677,31 +445,13 @@ pub struct IContactFieldFactory_Vtbl { pub CreateField_Category: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>, r#type: ContactFieldType, category: ContactFieldCategory, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateField_Custom: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows_core::HSTRING>, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>, r#type: ContactFieldType, category: ContactFieldCategory, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactGroup(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactGroup { - type Vtable = IContactGroup_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactGroup { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x59bdeb01_9e9a_475d_bfe5_a37b806d852c); -} +::windows_core::imp::com_interface!(IContactGroup, IContactGroup_Vtbl, 0x59bdeb01_9e9a_475d_bfe5_a37b806d852c); #[repr(C)] #[doc(hidden)] pub struct IContactGroup_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactInformation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactInformation { - type Vtable = IContactInformation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactInformation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x275eb6d4_6a2e_4278_a914_e460d5f088f6); -} +::windows_core::imp::com_interface!(IContactInformation, IContactInformation_Vtbl, 0x275eb6d4_6a2e_4278_a914_e460d5f088f6); #[repr(C)] #[doc(hidden)] pub struct IContactInformation_Vtbl { @@ -736,16 +486,7 @@ pub struct IContactInformation_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] QueryCustomFields: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactInstantMessageField(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactInstantMessageField { - type Vtable = IContactInstantMessageField_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactInstantMessageField { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcce33b37_0d85_41fa_b43d_da599c3eb009); -} +::windows_core::imp::com_interface!(IContactInstantMessageField, IContactInstantMessageField_Vtbl, 0xcce33b37_0d85_41fa_b43d_da599c3eb009); #[repr(C)] #[doc(hidden)] pub struct IContactInstantMessageField_Vtbl { @@ -755,9 +496,8 @@ pub struct IContactInstantMessageField_Vtbl { pub DisplayText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub LaunchUri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactInstantMessageFieldFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IContactInstantMessageFieldFactory, IContactInstantMessageFieldFactory_Vtbl, 0xba0b6794_91a3_4bb2_b1b9_69a5dff0ba09); +::windows_core::imp::interface_hierarchy!(IContactInstantMessageFieldFactory, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IContactInstantMessageFieldFactory { pub fn CreateInstantMessage_Default(&self, username: &::windows_core::HSTRING) -> ::windows_core::Result { let this = self; @@ -784,16 +524,9 @@ impl IContactInstantMessageFieldFactory { } } } -::windows_core::imp::interface_hierarchy!(IContactInstantMessageFieldFactory, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IContactInstantMessageFieldFactory { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IContactInstantMessageFieldFactory { - type Vtable = IContactInstantMessageFieldFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactInstantMessageFieldFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xba0b6794_91a3_4bb2_b1b9_69a5dff0ba09); -} #[repr(C)] #[doc(hidden)] pub struct IContactInstantMessageFieldFactory_Vtbl { @@ -802,16 +535,7 @@ pub struct IContactInstantMessageFieldFactory_Vtbl { pub CreateInstantMessage_Category: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, username: ::std::mem::MaybeUninit<::windows_core::HSTRING>, category: ContactFieldCategory, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateInstantMessage_All: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, username: ::std::mem::MaybeUninit<::windows_core::HSTRING>, category: ContactFieldCategory, service: ::std::mem::MaybeUninit<::windows_core::HSTRING>, displaytext: ::std::mem::MaybeUninit<::windows_core::HSTRING>, verb: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactJobInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactJobInfo { - type Vtable = IContactJobInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactJobInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6d117b4c_ce50_4b43_9e69_b18258ea5315); -} +::windows_core::imp::com_interface!(IContactJobInfo, IContactJobInfo_Vtbl, 0x6d117b4c_ce50_4b43_9e69_b18258ea5315); #[repr(C)] #[doc(hidden)] pub struct IContactJobInfo_Vtbl { @@ -833,16 +557,7 @@ pub struct IContactJobInfo_Vtbl { pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactLaunchActionVerbsStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactLaunchActionVerbsStatics { - type Vtable = IContactLaunchActionVerbsStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactLaunchActionVerbsStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfb1232d6_ee73_46e7_8761_11cd0157728f); -} +::windows_core::imp::com_interface!(IContactLaunchActionVerbsStatics, IContactLaunchActionVerbsStatics_Vtbl, 0xfb1232d6_ee73_46e7_8761_11cd0157728f); #[repr(C)] #[doc(hidden)] pub struct IContactLaunchActionVerbsStatics_Vtbl { @@ -853,16 +568,7 @@ pub struct IContactLaunchActionVerbsStatics_Vtbl { pub Post: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub VideoCall: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactList(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactList { - type Vtable = IContactList_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactList { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x16ddec75_392c_4845_9dfb_51a3e7ef3e42); -} +::windows_core::imp::com_interface!(IContactList, IContactList_Vtbl, 0x16ddec75_392c_4845_9dfb_51a3e7ef3e42); #[repr(C)] #[doc(hidden)] pub struct IContactList_Vtbl { @@ -893,16 +599,7 @@ pub struct IContactList_Vtbl { pub DeleteContactAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, contact: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetContactAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, contactid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactList2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactList2 { - type Vtable = IContactList2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactList2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcb3943b4_4550_4dcb_9229_40ff91fb0203); -} +::windows_core::imp::com_interface!(IContactList2, IContactList2_Vtbl, 0xcb3943b4_4550_4dcb_9229_40ff91fb0203); #[repr(C)] #[doc(hidden)] pub struct IContactList2_Vtbl { @@ -911,16 +608,7 @@ pub struct IContactList2_Vtbl { pub SetSupportsServerSearch: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, pub SyncConstraints: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactList3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactList3 { - type Vtable = IContactList3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactList3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1578ee57_26fc_41e8_a850_5aa32514aca9); -} +::windows_core::imp::com_interface!(IContactList3, IContactList3_Vtbl, 0x1578ee57_26fc_41e8_a850_5aa32514aca9); #[repr(C)] #[doc(hidden)] pub struct IContactList3_Vtbl { @@ -928,16 +616,7 @@ pub struct IContactList3_Vtbl { pub LimitedWriteOperations: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetChangeTracker: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, identity: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactListLimitedWriteOperations(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactListLimitedWriteOperations { - type Vtable = IContactListLimitedWriteOperations_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactListLimitedWriteOperations { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe19813da_4a0b_44b8_9a1f_a0f3d218175f); -} +::windows_core::imp::com_interface!(IContactListLimitedWriteOperations, IContactListLimitedWriteOperations_Vtbl, 0xe19813da_4a0b_44b8_9a1f_a0f3d218175f); #[repr(C)] #[doc(hidden)] pub struct IContactListLimitedWriteOperations_Vtbl { @@ -945,16 +624,7 @@ pub struct IContactListLimitedWriteOperations_Vtbl { pub TryCreateOrUpdateContactAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, contact: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub TryDeleteContactAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, contactid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactListSyncConstraints(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactListSyncConstraints { - type Vtable = IContactListSyncConstraints_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactListSyncConstraints { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb2b0bf01_3062_4e2e_969d_018d1987f314); -} +::windows_core::imp::com_interface!(IContactListSyncConstraints, IContactListSyncConstraints_Vtbl, 0xb2b0bf01_3062_4e2e_969d_018d1987f314); #[repr(C)] #[doc(hidden)] pub struct IContactListSyncConstraints_Vtbl { @@ -1016,16 +686,7 @@ pub struct IContactListSyncConstraints_Vtbl { pub MaxWebsites: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetMaxWebsites: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactListSyncManager(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactListSyncManager { - type Vtable = IContactListSyncManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactListSyncManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x146e83be_7925_4acc_9de5_21ddd06f8674); -} +::windows_core::imp::com_interface!(IContactListSyncManager, IContactListSyncManager_Vtbl, 0x146e83be_7925_4acc_9de5_21ddd06f8674); #[repr(C)] #[doc(hidden)] pub struct IContactListSyncManager_Vtbl { @@ -1037,16 +698,7 @@ pub struct IContactListSyncManager_Vtbl { pub SyncStatusChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveSyncStatusChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactListSyncManager2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactListSyncManager2 { - type Vtable = IContactListSyncManager2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactListSyncManager2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa9591247_bb55_4e23_8128_370134a85d0d); -} +::windows_core::imp::com_interface!(IContactListSyncManager2, IContactListSyncManager2_Vtbl, 0xa9591247_bb55_4e23_8128_370134a85d0d); #[repr(C)] #[doc(hidden)] pub struct IContactListSyncManager2_Vtbl { @@ -1055,16 +707,7 @@ pub struct IContactListSyncManager2_Vtbl { pub SetLastSuccessfulSyncTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::Foundation::DateTime) -> ::windows_core::HRESULT, pub SetLastAttemptedSyncTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::Foundation::DateTime) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactLocationField(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactLocationField { - type Vtable = IContactLocationField_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactLocationField { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9ec00f82_ab6e_4b36_89e3_b23bc0a1dacc); -} +::windows_core::imp::com_interface!(IContactLocationField, IContactLocationField_Vtbl, 0x9ec00f82_ab6e_4b36_89e3_b23bc0a1dacc); #[repr(C)] #[doc(hidden)] pub struct IContactLocationField_Vtbl { @@ -1076,9 +719,8 @@ pub struct IContactLocationField_Vtbl { pub Country: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub PostalCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactLocationFieldFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IContactLocationFieldFactory, IContactLocationFieldFactory_Vtbl, 0xf79932d7_2fdf_43fe_8f18_41897390bcfe); +::windows_core::imp::interface_hierarchy!(IContactLocationFieldFactory, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IContactLocationFieldFactory { pub fn CreateLocation_Default(&self, unstructuredaddress: &::windows_core::HSTRING) -> ::windows_core::Result { let this = self; @@ -1102,16 +744,9 @@ impl IContactLocationFieldFactory { } } } -::windows_core::imp::interface_hierarchy!(IContactLocationFieldFactory, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IContactLocationFieldFactory { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IContactLocationFieldFactory { - type Vtable = IContactLocationFieldFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactLocationFieldFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf79932d7_2fdf_43fe_8f18_41897390bcfe); -} #[repr(C)] #[doc(hidden)] pub struct IContactLocationFieldFactory_Vtbl { @@ -1120,16 +755,7 @@ pub struct IContactLocationFieldFactory_Vtbl { pub CreateLocation_Category: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, unstructuredaddress: ::std::mem::MaybeUninit<::windows_core::HSTRING>, category: ContactFieldCategory, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateLocation_All: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, unstructuredaddress: ::std::mem::MaybeUninit<::windows_core::HSTRING>, category: ContactFieldCategory, street: ::std::mem::MaybeUninit<::windows_core::HSTRING>, city: ::std::mem::MaybeUninit<::windows_core::HSTRING>, region: ::std::mem::MaybeUninit<::windows_core::HSTRING>, country: ::std::mem::MaybeUninit<::windows_core::HSTRING>, postalcode: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactManagerForUser(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactManagerForUser { - type Vtable = IContactManagerForUser_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactManagerForUser { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb74bba57_1076_4bef_aef3_54686d18387d); -} +::windows_core::imp::com_interface!(IContactManagerForUser, IContactManagerForUser_Vtbl, 0xb74bba57_1076_4bef_aef3_54686d18387d); #[repr(C)] #[doc(hidden)] pub struct IContactManagerForUser_Vtbl { @@ -1157,32 +783,14 @@ pub struct IContactManagerForUser_Vtbl { #[cfg(not(feature = "System"))] User: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactManagerForUser2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactManagerForUser2 { - type Vtable = IContactManagerForUser2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactManagerForUser2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4d469c2e_3b75_4a73_bb30_736645472256); -} +::windows_core::imp::com_interface!(IContactManagerForUser2, IContactManagerForUser2_Vtbl, 0x4d469c2e_3b75_4a73_bb30_736645472256); #[repr(C)] #[doc(hidden)] pub struct IContactManagerForUser2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ShowFullContactCard: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, contact: *mut ::core::ffi::c_void, fullcontactcardoptions: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactManagerStatics { - type Vtable = IContactManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x81f21ac0_f661_4708_ba4f_d386bd0d622e); -} +::windows_core::imp::com_interface!(IContactManagerStatics, IContactManagerStatics_Vtbl, 0x81f21ac0_f661_4708_ba4f_d386bd0d622e); #[repr(C)] #[doc(hidden)] pub struct IContactManagerStatics_Vtbl { @@ -1197,32 +805,14 @@ pub struct IContactManagerStatics_Vtbl { #[cfg(not(feature = "UI_Popups"))] ShowDelayLoadedContactCard: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactManagerStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactManagerStatics2 { - type Vtable = IContactManagerStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactManagerStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa178e620_47d8_48cc_963c_9592b6e510c6); -} +::windows_core::imp::com_interface!(IContactManagerStatics2, IContactManagerStatics2_Vtbl, 0xa178e620_47d8_48cc_963c_9592b6e510c6); #[repr(C)] #[doc(hidden)] pub struct IContactManagerStatics2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub RequestStoreAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactManagerStatics3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactManagerStatics3 { - type Vtable = IContactManagerStatics3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactManagerStatics3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc4cc3d42_7586_492a_930b_7bc138fc2139); -} +::windows_core::imp::com_interface!(IContactManagerStatics3, IContactManagerStatics3_Vtbl, 0xc4cc3d42_7586_492a_930b_7bc138fc2139); #[repr(C)] #[doc(hidden)] pub struct IContactManagerStatics3_Vtbl { @@ -1257,16 +847,7 @@ pub struct IContactManagerStatics3_Vtbl { pub SystemSortOrder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ContactNameOrder) -> ::windows_core::HRESULT, pub SetSystemSortOrder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ContactNameOrder) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactManagerStatics4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactManagerStatics4 { - type Vtable = IContactManagerStatics4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactManagerStatics4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x24982272_347b_46dc_8d95_51bd41e15aaf); -} +::windows_core::imp::com_interface!(IContactManagerStatics4, IContactManagerStatics4_Vtbl, 0x24982272_347b_46dc_8d95_51bd41e15aaf); #[repr(C)] #[doc(hidden)] pub struct IContactManagerStatics4_Vtbl { @@ -1276,16 +857,7 @@ pub struct IContactManagerStatics4_Vtbl { #[cfg(not(feature = "System"))] GetForUser: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactManagerStatics5(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactManagerStatics5 { - type Vtable = IContactManagerStatics5_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactManagerStatics5 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf7591a87_acb7_4fad_90f2_a8ab64cdbba4); -} +::windows_core::imp::com_interface!(IContactManagerStatics5, IContactManagerStatics5_Vtbl, 0xf7591a87_acb7_4fad_90f2_a8ab64cdbba4); #[repr(C)] #[doc(hidden)] pub struct IContactManagerStatics5_Vtbl { @@ -1294,16 +866,7 @@ pub struct IContactManagerStatics5_Vtbl { pub IncludeMiddleNameInSystemDisplayAndSort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetIncludeMiddleNameInSystemDisplayAndSort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactMatchReason(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactMatchReason { - type Vtable = IContactMatchReason_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactMatchReason { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbc922504_e7d8_413e_95f4_b75c54c74077); -} +::windows_core::imp::com_interface!(IContactMatchReason, IContactMatchReason_Vtbl, 0xbc922504_e7d8_413e_95f4_b75c54c74077); #[repr(C)] #[doc(hidden)] pub struct IContactMatchReason_Vtbl { @@ -1315,16 +878,7 @@ pub struct IContactMatchReason_Vtbl { Segments: usize, pub Text: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactName(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactName { - type Vtable = IContactName_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactName { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf404e97b_9034_453c_8ebf_140a38c86f1d); -} +::windows_core::imp::com_interface!(IContactName, IContactName_Vtbl, 0xf404e97b_9034_453c_8ebf_140a38c86f1d); #[repr(C)] #[doc(hidden)] pub struct IContactName_Vtbl { @@ -1346,16 +900,7 @@ pub struct IContactName_Vtbl { pub DisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub YomiDisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactPanel(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactPanel { - type Vtable = IContactPanel_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactPanel { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x41bf1265_d2ee_4b97_a80a_7d8d64cca6f5); -} +::windows_core::imp::com_interface!(IContactPanel, IContactPanel_Vtbl, 0x41bf1265_d2ee_4b97_a80a_7d8d64cca6f5); #[repr(C)] #[doc(hidden)] pub struct IContactPanel_Vtbl { @@ -1374,49 +919,22 @@ pub struct IContactPanel_Vtbl { pub Closing: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveClosing: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactPanelClosingEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactPanelClosingEventArgs { - type Vtable = IContactPanelClosingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactPanelClosingEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x222174d3_cf4b_46d7_b739_6edc16110bfb); -} +::windows_core::imp::com_interface!(IContactPanelClosingEventArgs, IContactPanelClosingEventArgs_Vtbl, 0x222174d3_cf4b_46d7_b739_6edc16110bfb); #[repr(C)] #[doc(hidden)] pub struct IContactPanelClosingEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactPanelLaunchFullAppRequestedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactPanelLaunchFullAppRequestedEventArgs { - type Vtable = IContactPanelLaunchFullAppRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactPanelLaunchFullAppRequestedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x88d61c0e_23b4_4be8_8afc_072c25a4190d); -} +::windows_core::imp::com_interface!(IContactPanelLaunchFullAppRequestedEventArgs, IContactPanelLaunchFullAppRequestedEventArgs_Vtbl, 0x88d61c0e_23b4_4be8_8afc_072c25a4190d); #[repr(C)] #[doc(hidden)] pub struct IContactPanelLaunchFullAppRequestedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, - pub Handled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, - pub SetHandled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactPhone(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactPhone { - type Vtable = IContactPhone_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactPhone { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x467dab65_2712_4f52_b783_9ea8111c63cd); + pub Handled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, + pub SetHandled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } +::windows_core::imp::com_interface!(IContactPhone, IContactPhone_Vtbl, 0x467dab65_2712_4f52_b783_9ea8111c63cd); #[repr(C)] #[doc(hidden)] pub struct IContactPhone_Vtbl { @@ -1428,16 +946,7 @@ pub struct IContactPhone_Vtbl { pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactPicker(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactPicker { - type Vtable = IContactPicker_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactPicker { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0e09fd91_42f8_4055_90a0_896f96738936); -} +::windows_core::imp::com_interface!(IContactPicker, IContactPicker_Vtbl, 0x0e09fd91_42f8_4055_90a0_896f96738936); #[repr(C)] #[doc(hidden)] pub struct IContactPicker_Vtbl { @@ -1456,16 +965,7 @@ pub struct IContactPicker_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] PickMultipleContactsAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactPicker2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactPicker2 { - type Vtable = IContactPicker2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactPicker2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb35011cf_5cef_4d24_aa0c_340c5208725d); -} +::windows_core::imp::com_interface!(IContactPicker2, IContactPicker2_Vtbl, 0xb35011cf_5cef_4d24_aa0c_340c5208725d); #[repr(C)] #[doc(hidden)] pub struct IContactPicker2_Vtbl { @@ -1480,16 +980,7 @@ pub struct IContactPicker2_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] PickContactsAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactPicker3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactPicker3 { - type Vtable = IContactPicker3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactPicker3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0e723315_b243_4bed_8516_22b1a7ac0ace); -} +::windows_core::imp::com_interface!(IContactPicker3, IContactPicker3_Vtbl, 0x0e723315_b243_4bed_8516_22b1a7ac0ace); #[repr(C)] #[doc(hidden)] pub struct IContactPicker3_Vtbl { @@ -1499,16 +990,7 @@ pub struct IContactPicker3_Vtbl { #[cfg(not(feature = "System"))] User: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactPickerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactPickerStatics { - type Vtable = IContactPickerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactPickerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7488c029_6a53_4258_a3e9_62dff6784b6c); -} +::windows_core::imp::com_interface!(IContactPickerStatics, IContactPickerStatics_Vtbl, 0x7488c029_6a53_4258_a3e9_62dff6784b6c); #[repr(C)] #[doc(hidden)] pub struct IContactPickerStatics_Vtbl { @@ -1519,16 +1001,7 @@ pub struct IContactPickerStatics_Vtbl { CreateForUser: usize, pub IsSupportedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactQueryOptions(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactQueryOptions { - type Vtable = IContactQueryOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactQueryOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4408cc9e_7d7c_42f0_8ac7_f50733ecdbc1); -} +::windows_core::imp::com_interface!(IContactQueryOptions, IContactQueryOptions_Vtbl, 0x4408cc9e_7d7c_42f0_8ac7_f50733ecdbc1); #[repr(C)] #[doc(hidden)] pub struct IContactQueryOptions_Vtbl { @@ -1549,16 +1022,7 @@ pub struct IContactQueryOptions_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] AnnotationListIds: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactQueryOptionsFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactQueryOptionsFactory { - type Vtable = IContactQueryOptionsFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactQueryOptionsFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x543fba47_8ce7_46cb_9dac_9aa42a1bc8e2); -} +::windows_core::imp::com_interface!(IContactQueryOptionsFactory, IContactQueryOptionsFactory_Vtbl, 0x543fba47_8ce7_46cb_9dac_9aa42a1bc8e2); #[repr(C)] #[doc(hidden)] pub struct IContactQueryOptionsFactory_Vtbl { @@ -1566,16 +1030,7 @@ pub struct IContactQueryOptionsFactory_Vtbl { pub CreateWithText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, text: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateWithTextAndFields: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, text: ::std::mem::MaybeUninit<::windows_core::HSTRING>, fields: ContactQuerySearchFields, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactQueryTextSearch(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactQueryTextSearch { - type Vtable = IContactQueryTextSearch_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactQueryTextSearch { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf7e3f9cb_a957_439b_a0b7_1c02a1963ff0); -} +::windows_core::imp::com_interface!(IContactQueryTextSearch, IContactQueryTextSearch_Vtbl, 0xf7e3f9cb_a957_439b_a0b7_1c02a1963ff0); #[repr(C)] #[doc(hidden)] pub struct IContactQueryTextSearch_Vtbl { @@ -1587,16 +1042,7 @@ pub struct IContactQueryTextSearch_Vtbl { pub SearchScope: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ContactQuerySearchScope) -> ::windows_core::HRESULT, pub SetSearchScope: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ContactQuerySearchScope) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactReader(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactReader { - type Vtable = IContactReader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactReader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd397e42e_1488_42f2_bf64_253f4884bfed); -} +::windows_core::imp::com_interface!(IContactReader, IContactReader_Vtbl, 0xd397e42e_1488_42f2_bf64_253f4884bfed); #[repr(C)] #[doc(hidden)] pub struct IContactReader_Vtbl { @@ -1607,16 +1053,7 @@ pub struct IContactReader_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetMatchingPropertiesWithMatchReason: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactSignificantOther(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactSignificantOther { - type Vtable = IContactSignificantOther_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactSignificantOther { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8873b5ab_c5fb_46d8_93fe_da3ff1934054); -} +::windows_core::imp::com_interface!(IContactSignificantOther, IContactSignificantOther_Vtbl, 0x8873b5ab_c5fb_46d8_93fe_da3ff1934054); #[repr(C)] #[doc(hidden)] pub struct IContactSignificantOther_Vtbl { @@ -1626,16 +1063,7 @@ pub struct IContactSignificantOther_Vtbl { pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactSignificantOther2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactSignificantOther2 { - type Vtable = IContactSignificantOther2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactSignificantOther2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8d7bd474_3f03_45f8_ba0f_c4ed37d64219); -} +::windows_core::imp::com_interface!(IContactSignificantOther2, IContactSignificantOther2_Vtbl, 0x8d7bd474_3f03_45f8_ba0f_c4ed37d64219); #[repr(C)] #[doc(hidden)] pub struct IContactSignificantOther2_Vtbl { @@ -1643,16 +1071,7 @@ pub struct IContactSignificantOther2_Vtbl { pub Relationship: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ContactRelationship) -> ::windows_core::HRESULT, pub SetRelationship: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ContactRelationship) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactStore(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactStore { - type Vtable = IContactStore_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactStore { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2c220b10_3a6c_4293_b9bc_fe987f6e0d52); -} +::windows_core::imp::com_interface!(IContactStore, IContactStore_Vtbl, 0x2c220b10_3a6c_4293_b9bc_fe987f6e0d52); #[repr(C)] #[doc(hidden)] pub struct IContactStore_Vtbl { @@ -1667,16 +1086,7 @@ pub struct IContactStore_Vtbl { FindContactsWithSearchTextAsync: usize, pub GetContactAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, contactid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactStore2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactStore2 { - type Vtable = IContactStore2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactStore2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x18ce1c22_ebd5_4bfb_b690_5f4f27c4f0e8); -} +::windows_core::imp::com_interface!(IContactStore2, IContactStore2_Vtbl, 0x18ce1c22_ebd5_4bfb_b690_5f4f27c4f0e8); #[repr(C)] #[doc(hidden)] pub struct IContactStore2_Vtbl { @@ -1696,47 +1106,20 @@ pub struct IContactStore2_Vtbl { pub GetContactReaderWithOptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, options: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateContactListInAccountAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, displayname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, userdataaccountid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactStore3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactStore3 { - type Vtable = IContactStore3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactStore3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcb882c6c_004e_4050_87f0_840407ee6818); -} +::windows_core::imp::com_interface!(IContactStore3, IContactStore3_Vtbl, 0xcb882c6c_004e_4050_87f0_840407ee6818); #[repr(C)] #[doc(hidden)] pub struct IContactStore3_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetChangeTracker: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, identity: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactStoreNotificationTriggerDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactStoreNotificationTriggerDetails { - type Vtable = IContactStoreNotificationTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactStoreNotificationTriggerDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xabb298d6_878a_4f8b_a9ce_46bb7d1c84ce); -} +::windows_core::imp::com_interface!(IContactStoreNotificationTriggerDetails, IContactStoreNotificationTriggerDetails_Vtbl, 0xabb298d6_878a_4f8b_a9ce_46bb7d1c84ce); #[repr(C)] #[doc(hidden)] pub struct IContactStoreNotificationTriggerDetails_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactWebsite(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactWebsite { - type Vtable = IContactWebsite_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactWebsite { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9f130176_dc1b_4055_ad66_652f39d990e8); -} +::windows_core::imp::com_interface!(IContactWebsite, IContactWebsite_Vtbl, 0x9f130176_dc1b_4055_ad66_652f39d990e8); #[repr(C)] #[doc(hidden)] pub struct IContactWebsite_Vtbl { @@ -1746,16 +1129,7 @@ pub struct IContactWebsite_Vtbl { pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactWebsite2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactWebsite2 { - type Vtable = IContactWebsite2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactWebsite2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf87ee91e_5647_4068_bb5e_4b6f437ce308); -} +::windows_core::imp::com_interface!(IContactWebsite2, IContactWebsite2_Vtbl, 0xf87ee91e_5647_4068_bb5e_4b6f437ce308); #[repr(C)] #[doc(hidden)] pub struct IContactWebsite2_Vtbl { @@ -1763,16 +1137,7 @@ pub struct IContactWebsite2_Vtbl { pub RawValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetRawValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFullContactCardOptions(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFullContactCardOptions { - type Vtable = IFullContactCardOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFullContactCardOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8744436c_5cf9_4683_bdca_a1fdebf8dbce); -} +::windows_core::imp::com_interface!(IFullContactCardOptions, IFullContactCardOptions_Vtbl, 0x8744436c_5cf9_4683_bdca_a1fdebf8dbce); #[repr(C)] #[doc(hidden)] pub struct IFullContactCardOptions_Vtbl { @@ -1786,19 +1151,13 @@ pub struct IFullContactCardOptions_Vtbl { #[cfg(not(feature = "UI_ViewManagement"))] SetDesiredRemainingView: usize, } -#[doc(hidden)] -#[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKnownContactFieldStatics(::windows_core::IUnknown); #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for IKnownContactFieldStatics { - type Vtable = IKnownContactFieldStatics_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for IKnownContactFieldStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2e0e1b12_d627_4fca_bad4_1faf168c7d14); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + IKnownContactFieldStatics, + IKnownContactFieldStatics_Vtbl, + 0x2e0e1b12_d627_4fca_bad4_1faf168c7d14 +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -1829,16 +1188,7 @@ pub struct IKnownContactFieldStatics_Vtbl { #[cfg(not(feature = "deprecated"))] ConvertTypeToName: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPinnedContactIdsQueryResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPinnedContactIdsQueryResult { - type Vtable = IPinnedContactIdsQueryResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPinnedContactIdsQueryResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7d9b2552_1579_4ddc_871f_a30a3aea9ba1); -} +::windows_core::imp::com_interface!(IPinnedContactIdsQueryResult, IPinnedContactIdsQueryResult_Vtbl, 0x7d9b2552_1579_4ddc_871f_a30a3aea9ba1); #[repr(C)] #[doc(hidden)] pub struct IPinnedContactIdsQueryResult_Vtbl { @@ -1848,16 +1198,7 @@ pub struct IPinnedContactIdsQueryResult_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] ContactIds: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPinnedContactManager(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPinnedContactManager { - type Vtable = IPinnedContactManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPinnedContactManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfcbc740c_e1d6_45c3_b8b6_a35604e167a0); -} +::windows_core::imp::com_interface!(IPinnedContactManager, IPinnedContactManager_Vtbl, 0xfcbc740c_e1d6_45c3_b8b6_a35604e167a0); #[repr(C)] #[doc(hidden)] pub struct IPinnedContactManager_Vtbl { @@ -1877,16 +1218,7 @@ pub struct IPinnedContactManager_Vtbl { pub SignalContactActivity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, contact: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetPinnedContactIdsAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPinnedContactManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPinnedContactManagerStatics { - type Vtable = IPinnedContactManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPinnedContactManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf65ccc7e_fdf9_486a_ace9_bc311d0ae7f0); -} +::windows_core::imp::com_interface!(IPinnedContactManagerStatics, IPinnedContactManagerStatics_Vtbl, 0xf65ccc7e_fdf9_486a_ace9_bc311d0ae7f0); #[repr(C)] #[doc(hidden)] pub struct IPinnedContactManagerStatics_Vtbl { @@ -1901,6 +1233,7 @@ pub struct IPinnedContactManagerStatics_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AggregateContactManager(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AggregateContactManager, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AggregateContactManager { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -1947,7 +1280,7 @@ impl AggregateContactManager { } } pub fn SetRemoteIdentificationInformationAsync(&self, contactlistid: &::windows_core::HSTRING, remotesourceid: &::windows_core::HSTRING, accountid: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SetRemoteIdentificationInformationAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(contactlistid), ::core::mem::transmute_copy(remotesourceid), ::core::mem::transmute_copy(accountid), &mut result__).from_abi(result__) @@ -1959,19 +1292,17 @@ impl ::windows_core::RuntimeType for AggregateContactManager { } unsafe impl ::windows_core::Interface for AggregateContactManager { type Vtable = IAggregateContactManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AggregateContactManager { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AggregateContactManager { const NAME: &'static str = "Windows.ApplicationModel.Contacts.AggregateContactManager"; } -::windows_core::imp::interface_hierarchy!(AggregateContactManager, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AggregateContactManager {} unsafe impl ::core::marker::Sync for AggregateContactManager {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Contact(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Contact, ::windows_core::IUnknown, ::windows_core::IInspectable); impl Contact { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2004,10 +1335,10 @@ impl Contact { #[cfg(feature = "Storage_Streams")] pub fn SetThumbnail(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetThumbnail)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetThumbnail)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -2019,31 +1350,31 @@ impl Contact { } } pub fn Id(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Id)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetId(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetId)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn Notes(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Notes)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetNotes(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetNotes)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Phones(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Phones)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2052,7 +1383,7 @@ impl Contact { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Emails(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Emails)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2061,7 +1392,7 @@ impl Contact { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Addresses(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Addresses)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2070,7 +1401,7 @@ impl Contact { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn ConnectedServiceAccounts(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ConnectedServiceAccounts)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2079,7 +1410,7 @@ impl Contact { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn ImportantDates(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImportantDates)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2088,7 +1419,7 @@ impl Contact { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn DataSuppliers(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DataSuppliers)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2097,7 +1428,7 @@ impl Contact { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn JobInfo(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).JobInfo)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2106,7 +1437,7 @@ impl Contact { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn SignificantOthers(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SignificantOthers)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2115,7 +1446,7 @@ impl Contact { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Websites(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Websites)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2124,68 +1455,68 @@ impl Contact { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn ProviderProperties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ProviderProperties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ContactListId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ContactListId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn DisplayPictureUserUpdateTime(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DisplayPictureUserUpdateTime)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDisplayPictureUserUpdateTime(&self, value: super::super::Foundation::DateTime) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDisplayPictureUserUpdateTime)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsMe(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsMe)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn AggregateId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AggregateId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn RemoteId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RemoteId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetRemoteId(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRemoteId)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn RingToneToken(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RingToneToken)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetRingToneToken(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRingToneToken)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn IsDisplayPictureManuallySet(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsDisplayPictureManuallySet)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2194,7 +1525,7 @@ impl Contact { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn LargeDisplayPicture(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).LargeDisplayPicture)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2203,7 +1534,7 @@ impl Contact { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn SmallDisplayPicture(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SmallDisplayPicture)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2212,7 +1543,7 @@ impl Contact { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn SourceDisplayPicture(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SourceDisplayPicture)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2222,151 +1553,151 @@ impl Contact { #[cfg(feature = "Storage_Streams")] pub fn SetSourceDisplayPicture(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetSourceDisplayPicture)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn TextToneToken(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TextToneToken)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetTextToneToken(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetTextToneToken)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn IsAggregate(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsAggregate)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn FullName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FullName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn DisplayNameOverride(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DisplayNameOverride)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDisplayNameOverride(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDisplayNameOverride)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn Nickname(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Nickname)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetNickname(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetNickname)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn SortName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SortName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn FirstName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FirstName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetFirstName(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetFirstName)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn LastName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).LastName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetLastName(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetLastName)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn MiddleName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MiddleName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetMiddleName(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMiddleName)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn YomiGivenName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).YomiGivenName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetYomiGivenName(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetYomiGivenName)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn YomiFamilyName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).YomiFamilyName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetYomiFamilyName(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetYomiFamilyName)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn HonorificNameSuffix(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).HonorificNameSuffix)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetHonorificNameSuffix(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetHonorificNameSuffix)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn HonorificNamePrefix(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).HonorificNamePrefix)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetHonorificNamePrefix(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetHonorificNamePrefix)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn DisplayName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DisplayName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn YomiDisplayName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).YomiDisplayName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2378,19 +1709,17 @@ impl ::windows_core::RuntimeType for Contact { } unsafe impl ::windows_core::Interface for Contact { type Vtable = IContact_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Contact { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Contact { const NAME: &'static str = "Windows.ApplicationModel.Contacts.Contact"; } -::windows_core::imp::interface_hierarchy!(Contact, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for Contact {} unsafe impl ::core::marker::Sync for Contact {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContactAddress(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContactAddress, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ContactAddress { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2482,19 +1811,17 @@ impl ::windows_core::RuntimeType for ContactAddress { } unsafe impl ::windows_core::Interface for ContactAddress { type Vtable = IContactAddress_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContactAddress { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContactAddress { const NAME: &'static str = "Windows.ApplicationModel.Contacts.ContactAddress"; } -::windows_core::imp::interface_hierarchy!(ContactAddress, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ContactAddress {} unsafe impl ::core::marker::Sync for ContactAddress {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContactAnnotation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContactAnnotation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ContactAnnotation { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2567,14 +1894,14 @@ impl ContactAnnotation { } } pub fn ContactListId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ContactListId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetContactListId(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetContactListId)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } } @@ -2583,19 +1910,17 @@ impl ::windows_core::RuntimeType for ContactAnnotation { } unsafe impl ::windows_core::Interface for ContactAnnotation { type Vtable = IContactAnnotation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContactAnnotation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContactAnnotation { const NAME: &'static str = "Windows.ApplicationModel.Contacts.ContactAnnotation"; } -::windows_core::imp::interface_hierarchy!(ContactAnnotation, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ContactAnnotation {} unsafe impl ::core::marker::Sync for ContactAnnotation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContactAnnotationList(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContactAnnotationList, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ContactAnnotationList { pub fn Id(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -2676,19 +2001,17 @@ impl ::windows_core::RuntimeType for ContactAnnotationList { } unsafe impl ::windows_core::Interface for ContactAnnotationList { type Vtable = IContactAnnotationList_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContactAnnotationList { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContactAnnotationList { const NAME: &'static str = "Windows.ApplicationModel.Contacts.ContactAnnotationList"; } -::windows_core::imp::interface_hierarchy!(ContactAnnotationList, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ContactAnnotationList {} unsafe impl ::core::marker::Sync for ContactAnnotationList {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContactAnnotationStore(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContactAnnotationStore, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ContactAnnotationStore { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -2763,7 +2086,7 @@ impl ContactAnnotationStore { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn FindAnnotationsForContactListAsync(&self, contactlistid: &::windows_core::HSTRING) -> ::windows_core::Result>> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FindAnnotationsForContactListAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(contactlistid), &mut result__).from_abi(result__) @@ -2775,19 +2098,17 @@ impl ::windows_core::RuntimeType for ContactAnnotationStore { } unsafe impl ::windows_core::Interface for ContactAnnotationStore { type Vtable = IContactAnnotationStore_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContactAnnotationStore { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContactAnnotationStore { const NAME: &'static str = "Windows.ApplicationModel.Contacts.ContactAnnotationStore"; } -::windows_core::imp::interface_hierarchy!(ContactAnnotationStore, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ContactAnnotationStore {} unsafe impl ::core::marker::Sync for ContactAnnotationStore {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContactBatch(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContactBatch, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ContactBatch { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -2811,22 +2132,21 @@ impl ::windows_core::RuntimeType for ContactBatch { } unsafe impl ::windows_core::Interface for ContactBatch { type Vtable = IContactBatch_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContactBatch { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContactBatch { const NAME: &'static str = "Windows.ApplicationModel.Contacts.ContactBatch"; } -::windows_core::imp::interface_hierarchy!(ContactBatch, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ContactBatch {} unsafe impl ::core::marker::Sync for ContactBatch {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContactCardDelayedDataLoader(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContactCardDelayedDataLoader, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ContactCardDelayedDataLoader, super::super::Foundation::IClosable); impl ContactCardDelayedDataLoader { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn SetData(&self, contact: P0) -> ::windows_core::Result<()> @@ -2842,20 +2162,17 @@ impl ::windows_core::RuntimeType for ContactCardDelayedDataLoader { } unsafe impl ::windows_core::Interface for ContactCardDelayedDataLoader { type Vtable = IContactCardDelayedDataLoader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContactCardDelayedDataLoader { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContactCardDelayedDataLoader { const NAME: &'static str = "Windows.ApplicationModel.Contacts.ContactCardDelayedDataLoader"; } -::windows_core::imp::interface_hierarchy!(ContactCardDelayedDataLoader, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ContactCardDelayedDataLoader {} unsafe impl ::core::marker::Send for ContactCardDelayedDataLoader {} unsafe impl ::core::marker::Sync for ContactCardDelayedDataLoader {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContactCardOptions(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContactCardOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ContactCardOptions { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2889,7 +2206,7 @@ impl ContactCardOptions { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn ServerSearchContactListIds(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ServerSearchContactListIds)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2901,19 +2218,17 @@ impl ::windows_core::RuntimeType for ContactCardOptions { } unsafe impl ::windows_core::Interface for ContactCardOptions { type Vtable = IContactCardOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContactCardOptions { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContactCardOptions { const NAME: &'static str = "Windows.ApplicationModel.Contacts.ContactCardOptions"; } -::windows_core::imp::interface_hierarchy!(ContactCardOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ContactCardOptions {} unsafe impl ::core::marker::Sync for ContactCardOptions {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContactChange(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContactChange, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ContactChange { pub fn ChangeType(&self) -> ::windows_core::Result { let this = self; @@ -2935,19 +2250,17 @@ impl ::windows_core::RuntimeType for ContactChange { } unsafe impl ::windows_core::Interface for ContactChange { type Vtable = IContactChange_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContactChange { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContactChange { const NAME: &'static str = "Windows.ApplicationModel.Contacts.ContactChange"; } -::windows_core::imp::interface_hierarchy!(ContactChange, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ContactChange {} unsafe impl ::core::marker::Sync for ContactChange {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContactChangeReader(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContactChangeReader, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ContactChangeReader { pub fn AcceptChanges(&self) -> ::windows_core::Result<()> { let this = self; @@ -2975,19 +2288,17 @@ impl ::windows_core::RuntimeType for ContactChangeReader { } unsafe impl ::windows_core::Interface for ContactChangeReader { type Vtable = IContactChangeReader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContactChangeReader { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContactChangeReader { const NAME: &'static str = "Windows.ApplicationModel.Contacts.ContactChangeReader"; } -::windows_core::imp::interface_hierarchy!(ContactChangeReader, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ContactChangeReader {} unsafe impl ::core::marker::Sync for ContactChangeReader {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContactChangeTracker(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContactChangeTracker, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ContactChangeTracker { pub fn Enable(&self) -> ::windows_core::Result<()> { let this = self; @@ -3005,7 +2316,7 @@ impl ContactChangeTracker { unsafe { (::windows_core::Interface::vtable(this).Reset)(::windows_core::Interface::as_raw(this)).ok() } } pub fn IsTracking(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsTracking)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3017,19 +2328,17 @@ impl ::windows_core::RuntimeType for ContactChangeTracker { } unsafe impl ::windows_core::Interface for ContactChangeTracker { type Vtable = IContactChangeTracker_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContactChangeTracker { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContactChangeTracker { const NAME: &'static str = "Windows.ApplicationModel.Contacts.ContactChangeTracker"; } -::windows_core::imp::interface_hierarchy!(ContactChangeTracker, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ContactChangeTracker {} unsafe impl ::core::marker::Sync for ContactChangeTracker {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContactChangedDeferral(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContactChangedDeferral, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ContactChangedDeferral { pub fn Complete(&self) -> ::windows_core::Result<()> { let this = self; @@ -3041,19 +2350,17 @@ impl ::windows_core::RuntimeType for ContactChangedDeferral { } unsafe impl ::windows_core::Interface for ContactChangedDeferral { type Vtable = IContactChangedDeferral_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContactChangedDeferral { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContactChangedDeferral { const NAME: &'static str = "Windows.ApplicationModel.Contacts.ContactChangedDeferral"; } -::windows_core::imp::interface_hierarchy!(ContactChangedDeferral, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ContactChangedDeferral {} unsafe impl ::core::marker::Sync for ContactChangedDeferral {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContactChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContactChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ContactChangedEventArgs { pub fn GetDeferral(&self) -> ::windows_core::Result { let this = self; @@ -3068,19 +2375,17 @@ impl ::windows_core::RuntimeType for ContactChangedEventArgs { } unsafe impl ::windows_core::Interface for ContactChangedEventArgs { type Vtable = IContactChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContactChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContactChangedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Contacts.ContactChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(ContactChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ContactChangedEventArgs {} unsafe impl ::core::marker::Sync for ContactChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContactConnectedServiceAccount(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContactConnectedServiceAccount, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ContactConnectedServiceAccount { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -3117,19 +2422,17 @@ impl ::windows_core::RuntimeType for ContactConnectedServiceAccount { } unsafe impl ::windows_core::Interface for ContactConnectedServiceAccount { type Vtable = IContactConnectedServiceAccount_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContactConnectedServiceAccount { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContactConnectedServiceAccount { const NAME: &'static str = "Windows.ApplicationModel.Contacts.ContactConnectedServiceAccount"; } -::windows_core::imp::interface_hierarchy!(ContactConnectedServiceAccount, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ContactConnectedServiceAccount {} unsafe impl ::core::marker::Sync for ContactConnectedServiceAccount {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContactDate(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContactDate, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ContactDate { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -3147,10 +2450,10 @@ impl ContactDate { } pub fn SetDay(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetDay)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetDay)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn Month(&self) -> ::windows_core::Result> { let this = self; @@ -3161,10 +2464,10 @@ impl ContactDate { } pub fn SetMonth(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetMonth)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetMonth)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn Year(&self) -> ::windows_core::Result> { let this = self; @@ -3175,10 +2478,10 @@ impl ContactDate { } pub fn SetYear(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetYear)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetYear)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn Kind(&self) -> ::windows_core::Result { let this = self; @@ -3208,19 +2511,17 @@ impl ::windows_core::RuntimeType for ContactDate { } unsafe impl ::windows_core::Interface for ContactDate { type Vtable = IContactDate_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContactDate { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContactDate { const NAME: &'static str = "Windows.ApplicationModel.Contacts.ContactDate"; } -::windows_core::imp::interface_hierarchy!(ContactDate, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ContactDate {} unsafe impl ::core::marker::Sync for ContactDate {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContactEmail(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContactEmail, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ContactEmail { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -3268,19 +2569,18 @@ impl ::windows_core::RuntimeType for ContactEmail { } unsafe impl ::windows_core::Interface for ContactEmail { type Vtable = IContactEmail_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContactEmail { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContactEmail { const NAME: &'static str = "Windows.ApplicationModel.Contacts.ContactEmail"; } -::windows_core::imp::interface_hierarchy!(ContactEmail, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ContactEmail {} unsafe impl ::core::marker::Sync for ContactEmail {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContactField(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContactField, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ContactField, IContactField); impl ContactField { pub fn Type(&self) -> ::windows_core::Result { let this = self; @@ -3339,20 +2639,18 @@ impl ::windows_core::RuntimeType for ContactField { } unsafe impl ::windows_core::Interface for ContactField { type Vtable = IContactField_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContactField { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContactField { const NAME: &'static str = "Windows.ApplicationModel.Contacts.ContactField"; } -::windows_core::imp::interface_hierarchy!(ContactField, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ContactField {} unsafe impl ::core::marker::Send for ContactField {} unsafe impl ::core::marker::Sync for ContactField {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContactFieldFactory(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContactFieldFactory, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ContactFieldFactory, IContactFieldFactory, IContactInstantMessageFieldFactory, IContactLocationFieldFactory); impl ContactFieldFactory { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -3383,14 +2681,14 @@ impl ContactFieldFactory { } } pub fn CreateInstantMessage_Default(&self, username: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateInstantMessage_Default)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(username), &mut result__).from_abi(result__) } } pub fn CreateInstantMessage_Category(&self, username: &::windows_core::HSTRING, category: ContactFieldCategory) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateInstantMessage_Category)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(username), category, &mut result__).from_abi(result__) @@ -3400,28 +2698,28 @@ impl ContactFieldFactory { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn CreateLocation_Default(&self, unstructuredaddress: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateLocation_Default)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(unstructuredaddress), &mut result__).from_abi(result__) } } pub fn CreateLocation_Category(&self, unstructuredaddress: &::windows_core::HSTRING, category: ContactFieldCategory) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateLocation_Category)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(unstructuredaddress), category, &mut result__).from_abi(result__) } } pub fn CreateLocation_All(&self, unstructuredaddress: &::windows_core::HSTRING, category: ContactFieldCategory, street: &::windows_core::HSTRING, city: &::windows_core::HSTRING, region: &::windows_core::HSTRING, country: &::windows_core::HSTRING, postalcode: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateLocation_All)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(unstructuredaddress), category, ::core::mem::transmute_copy(street), ::core::mem::transmute_copy(city), ::core::mem::transmute_copy(region), ::core::mem::transmute_copy(country), ::core::mem::transmute_copy(postalcode), &mut result__).from_abi(result__) @@ -3433,41 +2731,34 @@ impl ::windows_core::RuntimeType for ContactFieldFactory { } unsafe impl ::windows_core::Interface for ContactFieldFactory { type Vtable = IContactFieldFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContactFieldFactory { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContactFieldFactory { const NAME: &'static str = "Windows.ApplicationModel.Contacts.ContactFieldFactory"; } -::windows_core::imp::interface_hierarchy!(ContactFieldFactory, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ContactFieldFactory {} -impl ::windows_core::CanTryInto for ContactFieldFactory {} -impl ::windows_core::CanTryInto for ContactFieldFactory {} unsafe impl ::core::marker::Send for ContactFieldFactory {} unsafe impl ::core::marker::Sync for ContactFieldFactory {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContactGroup(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContactGroup, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ContactGroup {} impl ::windows_core::RuntimeType for ContactGroup { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_class::(); } unsafe impl ::windows_core::Interface for ContactGroup { type Vtable = IContactGroup_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContactGroup { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContactGroup { const NAME: &'static str = "Windows.ApplicationModel.Contacts.ContactGroup"; } -::windows_core::imp::interface_hierarchy!(ContactGroup, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ContactGroup {} unsafe impl ::core::marker::Sync for ContactGroup {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContactInformation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContactInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ContactInformation { pub fn Name(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -3545,41 +2836,40 @@ impl ::windows_core::RuntimeType for ContactInformation { } unsafe impl ::windows_core::Interface for ContactInformation { type Vtable = IContactInformation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContactInformation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContactInformation { const NAME: &'static str = "Windows.ApplicationModel.Contacts.ContactInformation"; } -::windows_core::imp::interface_hierarchy!(ContactInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContactInstantMessageField(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContactInstantMessageField, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ContactInstantMessageField, IContactField); impl ContactInstantMessageField { pub fn Type(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Type)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Category(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Category)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Name(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Name)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Value(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Value)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3645,20 +2935,17 @@ impl ::windows_core::RuntimeType for ContactInstantMessageField { } unsafe impl ::windows_core::Interface for ContactInstantMessageField { type Vtable = IContactInstantMessageField_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContactInstantMessageField { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContactInstantMessageField { const NAME: &'static str = "Windows.ApplicationModel.Contacts.ContactInstantMessageField"; } -::windows_core::imp::interface_hierarchy!(ContactInstantMessageField, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ContactInstantMessageField {} unsafe impl ::core::marker::Send for ContactInstantMessageField {} unsafe impl ::core::marker::Sync for ContactInstantMessageField {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContactJobInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContactJobInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ContactJobInfo { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -3761,14 +3048,11 @@ impl ::windows_core::RuntimeType for ContactJobInfo { } unsafe impl ::windows_core::Interface for ContactJobInfo { type Vtable = IContactJobInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContactJobInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContactJobInfo { const NAME: &'static str = "Windows.ApplicationModel.Contacts.ContactJobInfo"; } -::windows_core::imp::interface_hierarchy!(ContactJobInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ContactJobInfo {} unsafe impl ::core::marker::Sync for ContactJobInfo {} pub struct ContactLaunchActionVerbs; @@ -3815,6 +3099,7 @@ impl ::windows_core::RuntimeName for ContactLaunchActionVerbs { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContactList(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContactList, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ContactList { pub fn Id(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -3989,32 +3274,32 @@ impl ContactList { } } pub fn RegisterSyncManagerAsync(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RegisterSyncManagerAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetSupportsServerSearch(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetSupportsServerSearch)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn SyncConstraints(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SyncConstraints)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn LimitedWriteOperations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).LimitedWriteOperations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetChangeTracker(&self, identity: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetChangeTracker)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(identity), &mut result__).from_abi(result__) @@ -4026,19 +3311,17 @@ impl ::windows_core::RuntimeType for ContactList { } unsafe impl ::windows_core::Interface for ContactList { type Vtable = IContactList_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContactList { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContactList { const NAME: &'static str = "Windows.ApplicationModel.Contacts.ContactList"; } -::windows_core::imp::interface_hierarchy!(ContactList, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ContactList {} unsafe impl ::core::marker::Sync for ContactList {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContactListLimitedWriteOperations(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContactListLimitedWriteOperations, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ContactListLimitedWriteOperations { pub fn TryCreateOrUpdateContactAsync(&self, contact: P0) -> ::windows_core::Result> where @@ -4063,19 +3346,17 @@ impl ::windows_core::RuntimeType for ContactListLimitedWriteOperations { } unsafe impl ::windows_core::Interface for ContactListLimitedWriteOperations { type Vtable = IContactListLimitedWriteOperations_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContactListLimitedWriteOperations { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContactListLimitedWriteOperations { const NAME: &'static str = "Windows.ApplicationModel.Contacts.ContactListLimitedWriteOperations"; } -::windows_core::imp::interface_hierarchy!(ContactListLimitedWriteOperations, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ContactListLimitedWriteOperations {} unsafe impl ::core::marker::Sync for ContactListLimitedWriteOperations {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContactListSyncConstraints(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContactListSyncConstraints, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ContactListSyncConstraints { pub fn CanSyncDescriptions(&self) -> ::windows_core::Result { let this = self; @@ -4097,10 +3378,10 @@ impl ContactListSyncConstraints { } pub fn SetMaxHomePhoneNumbers(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetMaxHomePhoneNumbers)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetMaxHomePhoneNumbers)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn MaxMobilePhoneNumbers(&self) -> ::windows_core::Result> { let this = self; @@ -4111,10 +3392,10 @@ impl ContactListSyncConstraints { } pub fn SetMaxMobilePhoneNumbers(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetMaxMobilePhoneNumbers)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetMaxMobilePhoneNumbers)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn MaxWorkPhoneNumbers(&self) -> ::windows_core::Result> { let this = self; @@ -4125,10 +3406,10 @@ impl ContactListSyncConstraints { } pub fn SetMaxWorkPhoneNumbers(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetMaxWorkPhoneNumbers)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetMaxWorkPhoneNumbers)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn MaxOtherPhoneNumbers(&self) -> ::windows_core::Result> { let this = self; @@ -4139,10 +3420,10 @@ impl ContactListSyncConstraints { } pub fn SetMaxOtherPhoneNumbers(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetMaxOtherPhoneNumbers)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetMaxOtherPhoneNumbers)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn MaxPagerPhoneNumbers(&self) -> ::windows_core::Result> { let this = self; @@ -4153,10 +3434,10 @@ impl ContactListSyncConstraints { } pub fn SetMaxPagerPhoneNumbers(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetMaxPagerPhoneNumbers)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetMaxPagerPhoneNumbers)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn MaxBusinessFaxPhoneNumbers(&self) -> ::windows_core::Result> { let this = self; @@ -4167,10 +3448,10 @@ impl ContactListSyncConstraints { } pub fn SetMaxBusinessFaxPhoneNumbers(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetMaxBusinessFaxPhoneNumbers)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetMaxBusinessFaxPhoneNumbers)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn MaxHomeFaxPhoneNumbers(&self) -> ::windows_core::Result> { let this = self; @@ -4181,10 +3462,10 @@ impl ContactListSyncConstraints { } pub fn SetMaxHomeFaxPhoneNumbers(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetMaxHomeFaxPhoneNumbers)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetMaxHomeFaxPhoneNumbers)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn MaxCompanyPhoneNumbers(&self) -> ::windows_core::Result> { let this = self; @@ -4195,10 +3476,10 @@ impl ContactListSyncConstraints { } pub fn SetMaxCompanyPhoneNumbers(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetMaxCompanyPhoneNumbers)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetMaxCompanyPhoneNumbers)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn MaxAssistantPhoneNumbers(&self) -> ::windows_core::Result> { let this = self; @@ -4209,10 +3490,10 @@ impl ContactListSyncConstraints { } pub fn SetMaxAssistantPhoneNumbers(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetMaxAssistantPhoneNumbers)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetMaxAssistantPhoneNumbers)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn MaxRadioPhoneNumbers(&self) -> ::windows_core::Result> { let this = self; @@ -4223,10 +3504,10 @@ impl ContactListSyncConstraints { } pub fn SetMaxRadioPhoneNumbers(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetMaxRadioPhoneNumbers)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetMaxRadioPhoneNumbers)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn MaxPersonalEmailAddresses(&self) -> ::windows_core::Result> { let this = self; @@ -4237,10 +3518,10 @@ impl ContactListSyncConstraints { } pub fn SetMaxPersonalEmailAddresses(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetMaxPersonalEmailAddresses)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetMaxPersonalEmailAddresses)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn MaxWorkEmailAddresses(&self) -> ::windows_core::Result> { let this = self; @@ -4251,10 +3532,10 @@ impl ContactListSyncConstraints { } pub fn SetMaxWorkEmailAddresses(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetMaxWorkEmailAddresses)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetMaxWorkEmailAddresses)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn MaxOtherEmailAddresses(&self) -> ::windows_core::Result> { let this = self; @@ -4265,10 +3546,10 @@ impl ContactListSyncConstraints { } pub fn SetMaxOtherEmailAddresses(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetMaxOtherEmailAddresses)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetMaxOtherEmailAddresses)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn MaxHomeAddresses(&self) -> ::windows_core::Result> { let this = self; @@ -4279,10 +3560,10 @@ impl ContactListSyncConstraints { } pub fn SetMaxHomeAddresses(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetMaxHomeAddresses)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetMaxHomeAddresses)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn MaxWorkAddresses(&self) -> ::windows_core::Result> { let this = self; @@ -4293,10 +3574,10 @@ impl ContactListSyncConstraints { } pub fn SetMaxWorkAddresses(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetMaxWorkAddresses)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetMaxWorkAddresses)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn MaxOtherAddresses(&self) -> ::windows_core::Result> { let this = self; @@ -4307,10 +3588,10 @@ impl ContactListSyncConstraints { } pub fn SetMaxOtherAddresses(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetMaxOtherAddresses)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetMaxOtherAddresses)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn MaxBirthdayDates(&self) -> ::windows_core::Result> { let this = self; @@ -4321,10 +3602,10 @@ impl ContactListSyncConstraints { } pub fn SetMaxBirthdayDates(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetMaxBirthdayDates)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetMaxBirthdayDates)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn MaxAnniversaryDates(&self) -> ::windows_core::Result> { let this = self; @@ -4335,10 +3616,10 @@ impl ContactListSyncConstraints { } pub fn SetMaxAnniversaryDates(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetMaxAnniversaryDates)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetMaxAnniversaryDates)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn MaxOtherDates(&self) -> ::windows_core::Result> { let this = self; @@ -4349,10 +3630,10 @@ impl ContactListSyncConstraints { } pub fn SetMaxOtherDates(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetMaxOtherDates)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetMaxOtherDates)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn MaxOtherRelationships(&self) -> ::windows_core::Result> { let this = self; @@ -4363,10 +3644,10 @@ impl ContactListSyncConstraints { } pub fn SetMaxOtherRelationships(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetMaxOtherRelationships)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetMaxOtherRelationships)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn MaxSpouseRelationships(&self) -> ::windows_core::Result> { let this = self; @@ -4377,10 +3658,10 @@ impl ContactListSyncConstraints { } pub fn SetMaxSpouseRelationships(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetMaxSpouseRelationships)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetMaxSpouseRelationships)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn MaxPartnerRelationships(&self) -> ::windows_core::Result> { let this = self; @@ -4391,10 +3672,10 @@ impl ContactListSyncConstraints { } pub fn SetMaxPartnerRelationships(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetMaxPartnerRelationships)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetMaxPartnerRelationships)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn MaxSiblingRelationships(&self) -> ::windows_core::Result> { let this = self; @@ -4405,10 +3686,10 @@ impl ContactListSyncConstraints { } pub fn SetMaxSiblingRelationships(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetMaxSiblingRelationships)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetMaxSiblingRelationships)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn MaxParentRelationships(&self) -> ::windows_core::Result> { let this = self; @@ -4419,10 +3700,10 @@ impl ContactListSyncConstraints { } pub fn SetMaxParentRelationships(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetMaxParentRelationships)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetMaxParentRelationships)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn MaxChildRelationships(&self) -> ::windows_core::Result> { let this = self; @@ -4433,10 +3714,10 @@ impl ContactListSyncConstraints { } pub fn SetMaxChildRelationships(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetMaxChildRelationships)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetMaxChildRelationships)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn MaxJobInfo(&self) -> ::windows_core::Result> { let this = self; @@ -4447,10 +3728,10 @@ impl ContactListSyncConstraints { } pub fn SetMaxJobInfo(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetMaxJobInfo)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetMaxJobInfo)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn MaxWebsites(&self) -> ::windows_core::Result> { let this = self; @@ -4461,10 +3742,10 @@ impl ContactListSyncConstraints { } pub fn SetMaxWebsites(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetMaxWebsites)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetMaxWebsites)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } } impl ::windows_core::RuntimeType for ContactListSyncConstraints { @@ -4472,19 +3753,17 @@ impl ::windows_core::RuntimeType for ContactListSyncConstraints { } unsafe impl ::windows_core::Interface for ContactListSyncConstraints { type Vtable = IContactListSyncConstraints_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContactListSyncConstraints { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContactListSyncConstraints { const NAME: &'static str = "Windows.ApplicationModel.Contacts.ContactListSyncConstraints"; } -::windows_core::imp::interface_hierarchy!(ContactListSyncConstraints, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ContactListSyncConstraints {} unsafe impl ::core::marker::Sync for ContactListSyncConstraints {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContactListSyncManager(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContactListSyncManager, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ContactListSyncManager { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -4529,15 +3808,15 @@ impl ContactListSyncManager { unsafe { (::windows_core::Interface::vtable(this).RemoveSyncStatusChanged)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn SetStatus(&self, value: ContactListSyncStatus) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetStatus)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn SetLastSuccessfulSyncTime(&self, value: super::super::Foundation::DateTime) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetLastSuccessfulSyncTime)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn SetLastAttemptedSyncTime(&self, value: super::super::Foundation::DateTime) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetLastAttemptedSyncTime)(::windows_core::Interface::as_raw(this), value).ok() } } } @@ -4546,43 +3825,42 @@ impl ::windows_core::RuntimeType for ContactListSyncManager { } unsafe impl ::windows_core::Interface for ContactListSyncManager { type Vtable = IContactListSyncManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContactListSyncManager { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContactListSyncManager { const NAME: &'static str = "Windows.ApplicationModel.Contacts.ContactListSyncManager"; } -::windows_core::imp::interface_hierarchy!(ContactListSyncManager, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ContactListSyncManager {} unsafe impl ::core::marker::Sync for ContactListSyncManager {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContactLocationField(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContactLocationField, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ContactLocationField, IContactField); impl ContactLocationField { pub fn Type(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Type)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Category(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Category)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Name(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Name)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Value(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Value)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4659,15 +3937,11 @@ impl ::windows_core::RuntimeType for ContactLocationField { } unsafe impl ::windows_core::Interface for ContactLocationField { type Vtable = IContactLocationField_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContactLocationField { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContactLocationField { const NAME: &'static str = "Windows.ApplicationModel.Contacts.ContactLocationField"; } -::windows_core::imp::interface_hierarchy!(ContactLocationField, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ContactLocationField {} unsafe impl ::core::marker::Send for ContactLocationField {} unsafe impl ::core::marker::Sync for ContactLocationField {} pub struct ContactManager; @@ -4729,11 +4003,11 @@ impl ContactManager { #[cfg(feature = "Storage_Streams")] pub fn ConvertVCardToContactAsync(vcard: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IContactManagerStatics3(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).ConvertVCardToContactAsync)(::windows_core::Interface::as_raw(this), vcard.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ConvertVCardToContactAsync)(::windows_core::Interface::as_raw(this), vcard.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn RequestStoreAsyncWithAccessType(accesstype: ContactStoreAccessType) -> ::windows_core::Result> { @@ -4864,6 +4138,7 @@ impl ::windows_core::RuntimeName for ContactManager { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContactManagerForUser(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContactManagerForUser, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ContactManagerForUser { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] @@ -4893,12 +4168,12 @@ impl ContactManagerForUser { #[cfg(feature = "Storage_Streams")] pub fn ConvertVCardToContactAsync(&self, vcard: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).ConvertVCardToContactAsync)(::windows_core::Interface::as_raw(this), vcard.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ConvertVCardToContactAsync)(::windows_core::Interface::as_raw(this), vcard.into_param().abi(), &mut result__).from_abi(result__) } } pub fn RequestStoreAsync(&self, accesstype: ContactStoreAccessType) -> ::windows_core::Result> { @@ -4951,7 +4226,7 @@ impl ContactManagerForUser { P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } } @@ -4960,19 +4235,17 @@ impl ::windows_core::RuntimeType for ContactManagerForUser { } unsafe impl ::windows_core::Interface for ContactManagerForUser { type Vtable = IContactManagerForUser_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContactManagerForUser { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContactManagerForUser { const NAME: &'static str = "Windows.ApplicationModel.Contacts.ContactManagerForUser"; } -::windows_core::imp::interface_hierarchy!(ContactManagerForUser, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ContactManagerForUser {} unsafe impl ::core::marker::Sync for ContactManagerForUser {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContactMatchReason(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContactMatchReason, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ContactMatchReason { pub fn Field(&self) -> ::windows_core::Result { let this = self; @@ -5003,19 +4276,17 @@ impl ::windows_core::RuntimeType for ContactMatchReason { } unsafe impl ::windows_core::Interface for ContactMatchReason { type Vtable = IContactMatchReason_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContactMatchReason { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContactMatchReason { const NAME: &'static str = "Windows.ApplicationModel.Contacts.ContactMatchReason"; } -::windows_core::imp::interface_hierarchy!(ContactMatchReason, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ContactMatchReason {} unsafe impl ::core::marker::Sync for ContactMatchReason {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContactPanel(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContactPanel, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ContactPanel { pub fn ClosePanel(&self) -> ::windows_core::Result<()> { let this = self; @@ -5034,10 +4305,10 @@ impl ContactPanel { #[cfg(feature = "UI")] pub fn SetHeaderColor(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetHeaderColor)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetHeaderColor)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn LaunchFullAppRequested(&self, handler: P0) -> ::windows_core::Result where @@ -5073,19 +4344,17 @@ impl ::windows_core::RuntimeType for ContactPanel { } unsafe impl ::windows_core::Interface for ContactPanel { type Vtable = IContactPanel_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContactPanel { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContactPanel { const NAME: &'static str = "Windows.ApplicationModel.Contacts.ContactPanel"; } -::windows_core::imp::interface_hierarchy!(ContactPanel, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ContactPanel {} unsafe impl ::core::marker::Sync for ContactPanel {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContactPanelClosingEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContactPanelClosingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ContactPanelClosingEventArgs { pub fn GetDeferral(&self) -> ::windows_core::Result { let this = self; @@ -5100,19 +4369,17 @@ impl ::windows_core::RuntimeType for ContactPanelClosingEventArgs { } unsafe impl ::windows_core::Interface for ContactPanelClosingEventArgs { type Vtable = IContactPanelClosingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContactPanelClosingEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContactPanelClosingEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Contacts.ContactPanelClosingEventArgs"; } -::windows_core::imp::interface_hierarchy!(ContactPanelClosingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ContactPanelClosingEventArgs {} unsafe impl ::core::marker::Sync for ContactPanelClosingEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContactPanelLaunchFullAppRequestedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContactPanelLaunchFullAppRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ContactPanelLaunchFullAppRequestedEventArgs { pub fn Handled(&self) -> ::windows_core::Result { let this = self; @@ -5131,19 +4398,17 @@ impl ::windows_core::RuntimeType for ContactPanelLaunchFullAppRequestedEventArgs } unsafe impl ::windows_core::Interface for ContactPanelLaunchFullAppRequestedEventArgs { type Vtable = IContactPanelLaunchFullAppRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContactPanelLaunchFullAppRequestedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContactPanelLaunchFullAppRequestedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Contacts.ContactPanelLaunchFullAppRequestedEventArgs"; } -::windows_core::imp::interface_hierarchy!(ContactPanelLaunchFullAppRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ContactPanelLaunchFullAppRequestedEventArgs {} unsafe impl ::core::marker::Sync for ContactPanelLaunchFullAppRequestedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContactPhone(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContactPhone, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ContactPhone { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -5191,19 +4456,17 @@ impl ::windows_core::RuntimeType for ContactPhone { } unsafe impl ::windows_core::Interface for ContactPhone { type Vtable = IContactPhone_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContactPhone { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContactPhone { const NAME: &'static str = "Windows.ApplicationModel.Contacts.ContactPhone"; } -::windows_core::imp::interface_hierarchy!(ContactPhone, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ContactPhone {} unsafe impl ::core::marker::Sync for ContactPhone {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContactPicker(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContactPicker, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ContactPicker { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -5262,14 +4525,14 @@ impl ContactPicker { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn DesiredFieldsWithContactFieldType(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DesiredFieldsWithContactFieldType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PickContactAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PickContactAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5278,7 +4541,7 @@ impl ContactPicker { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn PickContactsAsync(&self) -> ::windows_core::Result>> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PickContactsAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5287,7 +4550,7 @@ impl ContactPicker { #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5321,17 +4584,15 @@ impl ::windows_core::RuntimeType for ContactPicker { } unsafe impl ::windows_core::Interface for ContactPicker { type Vtable = IContactPicker_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContactPicker { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContactPicker { const NAME: &'static str = "Windows.ApplicationModel.Contacts.ContactPicker"; } -::windows_core::imp::interface_hierarchy!(ContactPicker, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContactQueryOptions(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContactQueryOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ContactQueryOptions { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -5421,19 +4682,17 @@ impl ::windows_core::RuntimeType for ContactQueryOptions { } unsafe impl ::windows_core::Interface for ContactQueryOptions { type Vtable = IContactQueryOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContactQueryOptions { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContactQueryOptions { const NAME: &'static str = "Windows.ApplicationModel.Contacts.ContactQueryOptions"; } -::windows_core::imp::interface_hierarchy!(ContactQueryOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ContactQueryOptions {} unsafe impl ::core::marker::Sync for ContactQueryOptions {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContactQueryTextSearch(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContactQueryTextSearch, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ContactQueryTextSearch { pub fn Fields(&self) -> ::windows_core::Result { let this = self; @@ -5474,19 +4733,17 @@ impl ::windows_core::RuntimeType for ContactQueryTextSearch { } unsafe impl ::windows_core::Interface for ContactQueryTextSearch { type Vtable = IContactQueryTextSearch_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContactQueryTextSearch { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContactQueryTextSearch { const NAME: &'static str = "Windows.ApplicationModel.Contacts.ContactQueryTextSearch"; } -::windows_core::imp::interface_hierarchy!(ContactQueryTextSearch, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ContactQueryTextSearch {} unsafe impl ::core::marker::Sync for ContactQueryTextSearch {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContactReader(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContactReader, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ContactReader { pub fn ReadBatchAsync(&self) -> ::windows_core::Result> { let this = self; @@ -5513,19 +4770,17 @@ impl ::windows_core::RuntimeType for ContactReader { } unsafe impl ::windows_core::Interface for ContactReader { type Vtable = IContactReader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContactReader { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContactReader { const NAME: &'static str = "Windows.ApplicationModel.Contacts.ContactReader"; } -::windows_core::imp::interface_hierarchy!(ContactReader, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ContactReader {} unsafe impl ::core::marker::Sync for ContactReader {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContactSignificantOther(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContactSignificantOther, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ContactSignificantOther { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -5557,14 +4812,14 @@ impl ContactSignificantOther { unsafe { (::windows_core::Interface::vtable(this).SetDescription)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn Relationship(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Relationship)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetRelationship(&self, value: ContactRelationship) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRelationship)(::windows_core::Interface::as_raw(this), value).ok() } } } @@ -5573,19 +4828,17 @@ impl ::windows_core::RuntimeType for ContactSignificantOther { } unsafe impl ::windows_core::Interface for ContactSignificantOther { type Vtable = IContactSignificantOther_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContactSignificantOther { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContactSignificantOther { const NAME: &'static str = "Windows.ApplicationModel.Contacts.ContactSignificantOther"; } -::windows_core::imp::interface_hierarchy!(ContactSignificantOther, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ContactSignificantOther {} unsafe impl ::core::marker::Sync for ContactSignificantOther {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContactStore(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContactStore, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ContactStore { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -5613,7 +4866,7 @@ impl ContactStore { } } pub fn ChangeTracker(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ChangeTracker)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5623,18 +4876,18 @@ impl ContactStore { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveContactChanged(&self, value: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveContactChanged)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn AggregateContactManager(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AggregateContactManager)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5643,35 +4896,35 @@ impl ContactStore { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn FindContactListsAsync(&self) -> ::windows_core::Result>> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FindContactListsAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetContactListAsync(&self, contactlistid: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetContactListAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(contactlistid), &mut result__).from_abi(result__) } } pub fn CreateContactListAsync(&self, displayname: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateContactListAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(displayname), &mut result__).from_abi(result__) } } pub fn GetMeContactAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetMeContactAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetContactReader(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetContactReader)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5681,21 +4934,21 @@ impl ContactStore { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn CreateContactListInAccountAsync(&self, displayname: &::windows_core::HSTRING, userdataaccountid: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateContactListInAccountAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(displayname), ::core::mem::transmute_copy(userdataaccountid), &mut result__).from_abi(result__) } } pub fn GetChangeTracker(&self, identity: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetChangeTracker)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(identity), &mut result__).from_abi(result__) @@ -5707,38 +4960,34 @@ impl ::windows_core::RuntimeType for ContactStore { } unsafe impl ::windows_core::Interface for ContactStore { type Vtable = IContactStore_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContactStore { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContactStore { const NAME: &'static str = "Windows.ApplicationModel.Contacts.ContactStore"; } -::windows_core::imp::interface_hierarchy!(ContactStore, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ContactStore {} unsafe impl ::core::marker::Sync for ContactStore {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContactStoreNotificationTriggerDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContactStoreNotificationTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ContactStoreNotificationTriggerDetails {} impl ::windows_core::RuntimeType for ContactStoreNotificationTriggerDetails { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_class::(); } unsafe impl ::windows_core::Interface for ContactStoreNotificationTriggerDetails { type Vtable = IContactStoreNotificationTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContactStoreNotificationTriggerDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContactStoreNotificationTriggerDetails { const NAME: &'static str = "Windows.ApplicationModel.Contacts.ContactStoreNotificationTriggerDetails"; } -::windows_core::imp::interface_hierarchy!(ContactStoreNotificationTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ContactStoreNotificationTriggerDetails {} unsafe impl ::core::marker::Sync for ContactStoreNotificationTriggerDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContactWebsite(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContactWebsite, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ContactWebsite { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -5773,14 +5022,14 @@ impl ContactWebsite { unsafe { (::windows_core::Interface::vtable(this).SetDescription)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn RawValue(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RawValue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetRawValue(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRawValue)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } } @@ -5789,19 +5038,17 @@ impl ::windows_core::RuntimeType for ContactWebsite { } unsafe impl ::windows_core::Interface for ContactWebsite { type Vtable = IContactWebsite_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContactWebsite { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContactWebsite { const NAME: &'static str = "Windows.ApplicationModel.Contacts.ContactWebsite"; } -::windows_core::imp::interface_hierarchy!(ContactWebsite, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ContactWebsite {} unsafe impl ::core::marker::Sync for ContactWebsite {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct FullContactCardOptions(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(FullContactCardOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); impl FullContactCardOptions { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -5831,14 +5078,11 @@ impl ::windows_core::RuntimeType for FullContactCardOptions { } unsafe impl ::windows_core::Interface for FullContactCardOptions { type Vtable = IFullContactCardOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for FullContactCardOptions { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for FullContactCardOptions { const NAME: &'static str = "Windows.ApplicationModel.Contacts.FullContactCardOptions"; } -::windows_core::imp::interface_hierarchy!(FullContactCardOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for FullContactCardOptions {} unsafe impl ::core::marker::Sync for FullContactCardOptions {} #[doc = "Required features: `\"deprecated\"`"] @@ -5908,6 +5152,7 @@ impl ::windows_core::RuntimeName for KnownContactField { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PinnedContactIdsQueryResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PinnedContactIdsQueryResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PinnedContactIdsQueryResult { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -5924,19 +5169,17 @@ impl ::windows_core::RuntimeType for PinnedContactIdsQueryResult { } unsafe impl ::windows_core::Interface for PinnedContactIdsQueryResult { type Vtable = IPinnedContactIdsQueryResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PinnedContactIdsQueryResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PinnedContactIdsQueryResult { const NAME: &'static str = "Windows.ApplicationModel.Contacts.PinnedContactIdsQueryResult"; } -::windows_core::imp::interface_hierarchy!(PinnedContactIdsQueryResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PinnedContactIdsQueryResult {} unsafe impl ::core::marker::Sync for PinnedContactIdsQueryResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PinnedContactManager(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PinnedContactManager, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PinnedContactManager { #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] @@ -5978,12 +5221,12 @@ impl PinnedContactManager { #[cfg(feature = "Foundation_Collections")] pub fn RequestPinContactsAsync(&self, contacts: P0, surface: PinnedContactSurface) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).RequestPinContactsAsync)(::windows_core::Interface::as_raw(this), contacts.try_into_param()?.abi(), surface, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).RequestPinContactsAsync)(::windows_core::Interface::as_raw(this), contacts.into_param().abi(), surface, &mut result__).from_abi(result__) } } pub fn RequestUnpinContactAsync(&self, contact: P0, surface: PinnedContactSurface) -> ::windows_core::Result> @@ -6044,14 +5287,11 @@ impl ::windows_core::RuntimeType for PinnedContactManager { } unsafe impl ::windows_core::Interface for PinnedContactManager { type Vtable = IPinnedContactManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PinnedContactManager { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PinnedContactManager { const NAME: &'static str = "Windows.ApplicationModel.Contacts.PinnedContactManager"; } -::windows_core::imp::interface_hierarchy!(PinnedContactManager, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PinnedContactManager {} unsafe impl ::core::marker::Sync for PinnedContactManager {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/ApplicationModel/ConversationalAgent/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/ConversationalAgent/mod.rs index 175dac9c09..ac4f93c7e7 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/ConversationalAgent/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/ConversationalAgent/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActivationSignalDetectionConfiguration(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IActivationSignalDetectionConfiguration { - type Vtable = IActivationSignalDetectionConfiguration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActivationSignalDetectionConfiguration { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x40d8be16_5217_581c_9ab2_ce9b2f2e8e00); -} +::windows_core::imp::com_interface!(IActivationSignalDetectionConfiguration, IActivationSignalDetectionConfiguration_Vtbl, 0x40d8be16_5217_581c_9ab2_ce9b2f2e8e00); #[repr(C)] #[doc(hidden)] pub struct IActivationSignalDetectionConfiguration_Vtbl { @@ -55,16 +46,7 @@ pub struct IActivationSignalDetectionConfiguration_Vtbl { pub ClearTrainingData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ClearTrainingDataAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActivationSignalDetectionConfiguration2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IActivationSignalDetectionConfiguration2 { - type Vtable = IActivationSignalDetectionConfiguration2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActivationSignalDetectionConfiguration2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x71d9b022_562c_57ce_a78b_8b4ff0145bab); -} +::windows_core::imp::com_interface!(IActivationSignalDetectionConfiguration2, IActivationSignalDetectionConfiguration2_Vtbl, 0x71d9b022_562c_57ce_a78b_8b4ff0145bab); #[repr(C)] #[doc(hidden)] pub struct IActivationSignalDetectionConfiguration2_Vtbl { @@ -81,16 +63,7 @@ pub struct IActivationSignalDetectionConfiguration2_Vtbl { pub SetEnabledWithResult: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool, result__: *mut ActivationSignalDetectionConfigurationStateChangeResult) -> ::windows_core::HRESULT, pub TrainingStepCompletionMaxAllowedTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActivationSignalDetectionConfigurationCreationResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IActivationSignalDetectionConfigurationCreationResult { - type Vtable = IActivationSignalDetectionConfigurationCreationResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActivationSignalDetectionConfigurationCreationResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4c89bc1b_8d12_5e48_a71c_7f6bc1cd66e0); -} +::windows_core::imp::com_interface!(IActivationSignalDetectionConfigurationCreationResult, IActivationSignalDetectionConfigurationCreationResult_Vtbl, 0x4c89bc1b_8d12_5e48_a71c_7f6bc1cd66e0); #[repr(C)] #[doc(hidden)] pub struct IActivationSignalDetectionConfigurationCreationResult_Vtbl { @@ -98,16 +71,7 @@ pub struct IActivationSignalDetectionConfigurationCreationResult_Vtbl { pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ActivationSignalDetectionConfigurationCreationStatus) -> ::windows_core::HRESULT, pub Configuration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActivationSignalDetector(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IActivationSignalDetector { - type Vtable = IActivationSignalDetector_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActivationSignalDetector { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb5bf345f_a4d0_5b2b_8e65_b3c55ee756ff); -} +::windows_core::imp::com_interface!(IActivationSignalDetector, IActivationSignalDetector_Vtbl, 0xb5bf345f_a4d0_5b2b_8e65_b3c55ee756ff); #[repr(C)] #[doc(hidden)] pub struct IActivationSignalDetector_Vtbl { @@ -150,16 +114,7 @@ pub struct IActivationSignalDetector_Vtbl { pub RemoveConfiguration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, signalid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, modelid: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub RemoveConfigurationAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, signalid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, modelid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActivationSignalDetector2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IActivationSignalDetector2 { - type Vtable = IActivationSignalDetector2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActivationSignalDetector2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc7e2490a_baa5_59d2_85d1_ba42f7cf78c9); -} +::windows_core::imp::com_interface!(IActivationSignalDetector2, IActivationSignalDetector2_Vtbl, 0xc7e2490a_baa5_59d2_85d1_ba42f7cf78c9); #[repr(C)] #[doc(hidden)] pub struct IActivationSignalDetector2_Vtbl { @@ -178,16 +133,7 @@ pub struct IActivationSignalDetector2_Vtbl { pub RemoveConfigurationWithResult: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, signalid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, modelid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut ActivationSignalDetectionConfigurationRemovalResult) -> ::windows_core::HRESULT, pub DetectorId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IConversationalAgentDetectorManager(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IConversationalAgentDetectorManager { - type Vtable = IConversationalAgentDetectorManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IConversationalAgentDetectorManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xde94fbb0_597a_5df8_8cfb_9dbb583ba3ff); -} +::windows_core::imp::com_interface!(IConversationalAgentDetectorManager, IConversationalAgentDetectorManager_Vtbl, 0xde94fbb0_597a_5df8_8cfb_9dbb583ba3ff); #[repr(C)] #[doc(hidden)] pub struct IConversationalAgentDetectorManager_Vtbl { @@ -209,16 +155,7 @@ pub struct IConversationalAgentDetectorManager_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetActivationSignalDetectorsAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IConversationalAgentDetectorManager2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IConversationalAgentDetectorManager2 { - type Vtable = IConversationalAgentDetectorManager2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IConversationalAgentDetectorManager2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x84610f31_d7f3_52fe_9311_c9eb4e3eb30a); -} +::windows_core::imp::com_interface!(IConversationalAgentDetectorManager2, IConversationalAgentDetectorManager2_Vtbl, 0x84610f31_d7f3_52fe_9311_c9eb4e3eb30a); #[repr(C)] #[doc(hidden)] pub struct IConversationalAgentDetectorManager2_Vtbl { @@ -226,32 +163,14 @@ pub struct IConversationalAgentDetectorManager2_Vtbl { pub GetActivationSignalDetectorFromId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, detectorid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetActivationSignalDetectorFromIdAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, detectorid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IConversationalAgentDetectorManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IConversationalAgentDetectorManagerStatics { - type Vtable = IConversationalAgentDetectorManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IConversationalAgentDetectorManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x36a8d283_fa0e_5693_8489_0fb2f0ab40d3); -} +::windows_core::imp::com_interface!(IConversationalAgentDetectorManagerStatics, IConversationalAgentDetectorManagerStatics_Vtbl, 0x36a8d283_fa0e_5693_8489_0fb2f0ab40d3); #[repr(C)] #[doc(hidden)] pub struct IConversationalAgentDetectorManagerStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Default: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IConversationalAgentSession(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IConversationalAgentSession { - type Vtable = IConversationalAgentSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IConversationalAgentSession { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdaaae09a_b7ba_57e5_ad13_df520f9b6fa7); -} +::windows_core::imp::com_interface!(IConversationalAgentSession, IConversationalAgentSession_Vtbl, 0xdaaae09a_b7ba_57e5_ad13_df520f9b6fa7); #[repr(C)] #[doc(hidden)] pub struct IConversationalAgentSession_Vtbl { @@ -303,16 +222,7 @@ pub struct IConversationalAgentSession_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetSupportedSignalModelIds: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IConversationalAgentSession2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IConversationalAgentSession2 { - type Vtable = IConversationalAgentSession2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IConversationalAgentSession2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa7a9fbf9_ac78_57ff_9596_acc7a1c9a607); -} +::windows_core::imp::com_interface!(IConversationalAgentSession2, IConversationalAgentSession2_Vtbl, 0xa7a9fbf9_ac78_57ff_9596_acc7a1c9a607); #[repr(C)] #[doc(hidden)] pub struct IConversationalAgentSession2_Vtbl { @@ -330,31 +240,13 @@ pub struct IConversationalAgentSession2_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetMissingPrerequisitesAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IConversationalAgentSessionInterruptedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IConversationalAgentSessionInterruptedEventArgs { - type Vtable = IConversationalAgentSessionInterruptedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IConversationalAgentSessionInterruptedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9766591f_f63d_5d3e_9bf2_bd0760552686); -} +::windows_core::imp::com_interface!(IConversationalAgentSessionInterruptedEventArgs, IConversationalAgentSessionInterruptedEventArgs_Vtbl, 0x9766591f_f63d_5d3e_9bf2_bd0760552686); #[repr(C)] #[doc(hidden)] pub struct IConversationalAgentSessionInterruptedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IConversationalAgentSessionStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IConversationalAgentSessionStatics { - type Vtable = IConversationalAgentSessionStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IConversationalAgentSessionStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa005166e_e954_576e_be04_11b8ed10f37b); -} +::windows_core::imp::com_interface!(IConversationalAgentSessionStatics, IConversationalAgentSessionStatics_Vtbl, 0xa005166e_e954_576e_be04_11b8ed10f37b); #[repr(C)] #[doc(hidden)] pub struct IConversationalAgentSessionStatics_Vtbl { @@ -362,16 +254,7 @@ pub struct IConversationalAgentSessionStatics_Vtbl { pub GetCurrentSessionAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetCurrentSessionSync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IConversationalAgentSignal(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IConversationalAgentSignal { - type Vtable = IConversationalAgentSignal_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IConversationalAgentSignal { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x20ed25f7_b120_51f2_8603_265d6a47f232); -} +::windows_core::imp::com_interface!(IConversationalAgentSignal, IConversationalAgentSignal_Vtbl, 0x20ed25f7_b120_51f2_8603_265d6a47f232); #[repr(C)] #[doc(hidden)] pub struct IConversationalAgentSignal_Vtbl { @@ -389,16 +272,7 @@ pub struct IConversationalAgentSignal_Vtbl { pub SignalEnd: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::TimeSpan) -> ::windows_core::HRESULT, pub SetSignalEnd: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::Foundation::TimeSpan) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IConversationalAgentSignal2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IConversationalAgentSignal2 { - type Vtable = IConversationalAgentSignal2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IConversationalAgentSignal2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd0cc7ba9_9a7b_5c34_880e_b6146c904ecb); -} +::windows_core::imp::com_interface!(IConversationalAgentSignal2, IConversationalAgentSignal2_Vtbl, 0xd0cc7ba9_9a7b_5c34_880e_b6146c904ecb); #[repr(C)] #[doc(hidden)] pub struct IConversationalAgentSignal2_Vtbl { @@ -406,63 +280,27 @@ pub struct IConversationalAgentSignal2_Vtbl { pub DetectorId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub DetectorKind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ActivationSignalDetectorKind) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IConversationalAgentSignalDetectedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IConversationalAgentSignalDetectedEventArgs { - type Vtable = IConversationalAgentSignalDetectedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IConversationalAgentSignalDetectedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4d57eb8f_f88a_599b_91d3_d604876708bc); -} +::windows_core::imp::com_interface!(IConversationalAgentSignalDetectedEventArgs, IConversationalAgentSignalDetectedEventArgs_Vtbl, 0x4d57eb8f_f88a_599b_91d3_d604876708bc); #[repr(C)] #[doc(hidden)] pub struct IConversationalAgentSignalDetectedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IConversationalAgentSystemStateChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IConversationalAgentSystemStateChangedEventArgs { - type Vtable = IConversationalAgentSystemStateChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IConversationalAgentSystemStateChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1c2c6e3e_2785_59a7_8e71_38adeef79928); -} +::windows_core::imp::com_interface!(IConversationalAgentSystemStateChangedEventArgs, IConversationalAgentSystemStateChangedEventArgs_Vtbl, 0x1c2c6e3e_2785_59a7_8e71_38adeef79928); #[repr(C)] #[doc(hidden)] pub struct IConversationalAgentSystemStateChangedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub SystemStateChangeType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ConversationalAgentSystemStateChangeType) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDetectionConfigurationAvailabilityChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDetectionConfigurationAvailabilityChangedEventArgs { - type Vtable = IDetectionConfigurationAvailabilityChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDetectionConfigurationAvailabilityChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5129c9fb_4be8_5f14_af2b_88d62b1b4462); -} +::windows_core::imp::com_interface!(IDetectionConfigurationAvailabilityChangedEventArgs, IDetectionConfigurationAvailabilityChangedEventArgs_Vtbl, 0x5129c9fb_4be8_5f14_af2b_88d62b1b4462); #[repr(C)] #[doc(hidden)] pub struct IDetectionConfigurationAvailabilityChangedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Kind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut DetectionConfigurationAvailabilityChangeKind) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDetectionConfigurationAvailabilityInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDetectionConfigurationAvailabilityInfo { - type Vtable = IDetectionConfigurationAvailabilityInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDetectionConfigurationAvailabilityInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb5affeb0_40f0_5398_b838_91979c2c6208); -} +::windows_core::imp::com_interface!(IDetectionConfigurationAvailabilityInfo, IDetectionConfigurationAvailabilityInfo_Vtbl, 0xb5affeb0_40f0_5398_b838_91979c2c6208); #[repr(C)] #[doc(hidden)] pub struct IDetectionConfigurationAvailabilityInfo_Vtbl { @@ -472,16 +310,7 @@ pub struct IDetectionConfigurationAvailabilityInfo_Vtbl { pub HasPermission: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub HasLockScreenPermission: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDetectionConfigurationAvailabilityInfo2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDetectionConfigurationAvailabilityInfo2 { - type Vtable = IDetectionConfigurationAvailabilityInfo2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDetectionConfigurationAvailabilityInfo2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x30e06433_38b3_5c4b_84c3_62b6e685b2ff); -} +::windows_core::imp::com_interface!(IDetectionConfigurationAvailabilityInfo2, IDetectionConfigurationAvailabilityInfo2_Vtbl, 0x30e06433_38b3_5c4b_84c3_62b6e685b2ff); #[repr(C)] #[doc(hidden)] pub struct IDetectionConfigurationAvailabilityInfo2_Vtbl { @@ -494,6 +323,8 @@ pub struct IDetectionConfigurationAvailabilityInfo2_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ActivationSignalDetectionConfiguration(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ActivationSignalDetectionConfiguration, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ActivationSignalDetectionConfiguration, super::super::Foundation::IClosable); impl ActivationSignalDetectionConfiguration { pub fn SignalId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -559,21 +390,21 @@ impl ActivationSignalDetectionConfiguration { #[cfg(feature = "Storage_Streams")] pub fn SetModelData(&self, datatype: &::windows_core::HSTRING, data: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetModelData)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(datatype), data.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetModelData)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(datatype), data.into_param().abi()).ok() } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn SetModelDataAsync(&self, datatype: &::windows_core::HSTRING, data: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SetModelDataAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(datatype), data.into_param().abi(), &mut result__).from_abi(result__) } } pub fn GetModelDataType(&self) -> ::windows_core::Result<::windows_core::HSTRING> { @@ -644,24 +475,24 @@ impl ActivationSignalDetectionConfiguration { #[cfg(feature = "Storage_Streams")] pub fn ApplyTrainingData(&self, trainingdataformat: ActivationSignalDetectionTrainingDataFormat, trainingdata: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).ApplyTrainingData)(::windows_core::Interface::as_raw(this), trainingdataformat, trainingdata.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ApplyTrainingData)(::windows_core::Interface::as_raw(this), trainingdataformat, trainingdata.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn ApplyTrainingDataAsync(&self, trainingdataformat: ActivationSignalDetectionTrainingDataFormat, trainingdata: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).ApplyTrainingDataAsync)(::windows_core::Interface::as_raw(this), trainingdataformat, trainingdata.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ApplyTrainingDataAsync)(::windows_core::Interface::as_raw(this), trainingdataformat, trainingdata.into_param().abi(), &mut result__).from_abi(result__) } } pub fn ClearTrainingData(&self) -> ::windows_core::Result<()> { @@ -679,49 +510,49 @@ impl ActivationSignalDetectionConfiguration { #[cfg(feature = "Storage_Streams")] pub fn SetModelDataWithResult(&self, datatype: &::windows_core::HSTRING, data: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SetModelDataWithResult)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(datatype), data.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn SetModelDataWithResultAsync(&self, datatype: &::windows_core::HSTRING, data: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SetModelDataWithResultAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(datatype), data.into_param().abi(), &mut result__).from_abi(result__) } } pub fn SetEnabledWithResultAsync(&self, value: bool) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SetEnabledWithResultAsync)(::windows_core::Interface::as_raw(this), value, &mut result__).from_abi(result__) } } pub fn SetEnabledWithResult(&self, value: bool) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SetEnabledWithResult)(::windows_core::Interface::as_raw(this), value, &mut result__).from_abi(result__) } } pub fn TrainingStepCompletionMaxAllowedTime(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TrainingStepCompletionMaxAllowedTime)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } } @@ -730,20 +561,17 @@ impl ::windows_core::RuntimeType for ActivationSignalDetectionConfiguration { } unsafe impl ::windows_core::Interface for ActivationSignalDetectionConfiguration { type Vtable = IActivationSignalDetectionConfiguration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ActivationSignalDetectionConfiguration { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ActivationSignalDetectionConfiguration { const NAME: &'static str = "Windows.ApplicationModel.ConversationalAgent.ActivationSignalDetectionConfiguration"; } -::windows_core::imp::interface_hierarchy!(ActivationSignalDetectionConfiguration, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ActivationSignalDetectionConfiguration {} unsafe impl ::core::marker::Send for ActivationSignalDetectionConfiguration {} unsafe impl ::core::marker::Sync for ActivationSignalDetectionConfiguration {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ActivationSignalDetectionConfigurationCreationResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ActivationSignalDetectionConfigurationCreationResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ActivationSignalDetectionConfigurationCreationResult { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -765,19 +593,17 @@ impl ::windows_core::RuntimeType for ActivationSignalDetectionConfigurationCreat } unsafe impl ::windows_core::Interface for ActivationSignalDetectionConfigurationCreationResult { type Vtable = IActivationSignalDetectionConfigurationCreationResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ActivationSignalDetectionConfigurationCreationResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ActivationSignalDetectionConfigurationCreationResult { const NAME: &'static str = "Windows.ApplicationModel.ConversationalAgent.ActivationSignalDetectionConfigurationCreationResult"; } -::windows_core::imp::interface_hierarchy!(ActivationSignalDetectionConfigurationCreationResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ActivationSignalDetectionConfigurationCreationResult {} unsafe impl ::core::marker::Sync for ActivationSignalDetectionConfigurationCreationResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ActivationSignalDetector(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ActivationSignalDetector, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ActivationSignalDetector { pub fn ProviderId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -902,7 +728,7 @@ impl ActivationSignalDetector { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetAvailableModelIdsForSignalIdAsync(&self, signalid: &::windows_core::HSTRING) -> ::windows_core::Result>> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetAvailableModelIdsForSignalIdAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(signalid), &mut result__).from_abi(result__) @@ -911,42 +737,42 @@ impl ActivationSignalDetector { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetAvailableModelIdsForSignalId(&self, signalid: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetAvailableModelIdsForSignalId)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(signalid), &mut result__).from_abi(result__) } } pub fn CreateConfigurationWithResultAsync(&self, signalid: &::windows_core::HSTRING, modelid: &::windows_core::HSTRING, displayname: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateConfigurationWithResultAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(signalid), ::core::mem::transmute_copy(modelid), ::core::mem::transmute_copy(displayname), &mut result__).from_abi(result__) } } pub fn CreateConfigurationWithResult(&self, signalid: &::windows_core::HSTRING, modelid: &::windows_core::HSTRING, displayname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateConfigurationWithResult)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(signalid), ::core::mem::transmute_copy(modelid), ::core::mem::transmute_copy(displayname), &mut result__).from_abi(result__) } } pub fn RemoveConfigurationWithResultAsync(&self, signalid: &::windows_core::HSTRING, modelid: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RemoveConfigurationWithResultAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(signalid), ::core::mem::transmute_copy(modelid), &mut result__).from_abi(result__) } } pub fn RemoveConfigurationWithResult(&self, signalid: &::windows_core::HSTRING, modelid: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RemoveConfigurationWithResult)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(signalid), ::core::mem::transmute_copy(modelid), &mut result__).from_abi(result__) } } pub fn DetectorId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DetectorId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -958,19 +784,17 @@ impl ::windows_core::RuntimeType for ActivationSignalDetector { } unsafe impl ::windows_core::Interface for ActivationSignalDetector { type Vtable = IActivationSignalDetector_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ActivationSignalDetector { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ActivationSignalDetector { const NAME: &'static str = "Windows.ApplicationModel.ConversationalAgent.ActivationSignalDetector"; } -::windows_core::imp::interface_hierarchy!(ActivationSignalDetector, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ActivationSignalDetector {} unsafe impl ::core::marker::Sync for ActivationSignalDetector {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ConversationalAgentDetectorManager(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ConversationalAgentDetectorManager, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ConversationalAgentDetectorManager { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -1009,14 +833,14 @@ impl ConversationalAgentDetectorManager { } } pub fn GetActivationSignalDetectorFromId(&self, detectorid: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetActivationSignalDetectorFromId)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(detectorid), &mut result__).from_abi(result__) } } pub fn GetActivationSignalDetectorFromIdAsync(&self, detectorid: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetActivationSignalDetectorFromIdAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(detectorid), &mut result__).from_abi(result__) @@ -1039,22 +863,21 @@ impl ::windows_core::RuntimeType for ConversationalAgentDetectorManager { } unsafe impl ::windows_core::Interface for ConversationalAgentDetectorManager { type Vtable = IConversationalAgentDetectorManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ConversationalAgentDetectorManager { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ConversationalAgentDetectorManager { const NAME: &'static str = "Windows.ApplicationModel.ConversationalAgent.ConversationalAgentDetectorManager"; } -::windows_core::imp::interface_hierarchy!(ConversationalAgentDetectorManager, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ConversationalAgentDetectorManager {} unsafe impl ::core::marker::Sync for ConversationalAgentDetectorManager {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ConversationalAgentSession(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ConversationalAgentSession, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ConversationalAgentSession, super::super::Foundation::IClosable); impl ConversationalAgentSession { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn SessionInterrupted(&self, handler: P0) -> ::windows_core::Result @@ -1310,34 +1133,34 @@ impl ConversationalAgentSession { } } pub fn RequestActivationAsync(&self, activationkind: ConversationalAgentActivationKind) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RequestActivationAsync)(::windows_core::Interface::as_raw(this), activationkind, &mut result__).from_abi(result__) } } pub fn RequestActivation(&self, activationkind: ConversationalAgentActivationKind) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RequestActivation)(::windows_core::Interface::as_raw(this), activationkind, &mut result__).from_abi(result__) } } pub fn SetSupportLockScreenActivationAsync(&self, lockscreenactivationsupported: bool) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SetSupportLockScreenActivationAsync)(::windows_core::Interface::as_raw(this), lockscreenactivationsupported, &mut result__).from_abi(result__) } } pub fn SetSupportLockScreenActivation(&self, lockscreenactivationsupported: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetSupportLockScreenActivation)(::windows_core::Interface::as_raw(this), lockscreenactivationsupported).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetMissingPrerequisites(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetMissingPrerequisites)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1346,7 +1169,7 @@ impl ConversationalAgentSession { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetMissingPrerequisitesAsync(&self) -> ::windows_core::Result>> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetMissingPrerequisitesAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1375,39 +1198,34 @@ impl ::windows_core::RuntimeType for ConversationalAgentSession { } unsafe impl ::windows_core::Interface for ConversationalAgentSession { type Vtable = IConversationalAgentSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ConversationalAgentSession { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ConversationalAgentSession { const NAME: &'static str = "Windows.ApplicationModel.ConversationalAgent.ConversationalAgentSession"; } -::windows_core::imp::interface_hierarchy!(ConversationalAgentSession, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ConversationalAgentSession {} unsafe impl ::core::marker::Send for ConversationalAgentSession {} unsafe impl ::core::marker::Sync for ConversationalAgentSession {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ConversationalAgentSessionInterruptedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ConversationalAgentSessionInterruptedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ConversationalAgentSessionInterruptedEventArgs {} impl ::windows_core::RuntimeType for ConversationalAgentSessionInterruptedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_class::(); } unsafe impl ::windows_core::Interface for ConversationalAgentSessionInterruptedEventArgs { type Vtable = IConversationalAgentSessionInterruptedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ConversationalAgentSessionInterruptedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ConversationalAgentSessionInterruptedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.ConversationalAgent.ConversationalAgentSessionInterruptedEventArgs"; } -::windows_core::imp::interface_hierarchy!(ConversationalAgentSessionInterruptedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ConversationalAgentSessionInterruptedEventArgs {} unsafe impl ::core::marker::Sync for ConversationalAgentSessionInterruptedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ConversationalAgentSignal(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ConversationalAgentSignal, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ConversationalAgentSignal { pub fn IsSignalVerificationRequired(&self) -> ::windows_core::Result { let this = self; @@ -1479,14 +1297,14 @@ impl ConversationalAgentSignal { unsafe { (::windows_core::Interface::vtable(this).SetSignalEnd)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn DetectorId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DetectorId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn DetectorKind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DetectorKind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1498,38 +1316,34 @@ impl ::windows_core::RuntimeType for ConversationalAgentSignal { } unsafe impl ::windows_core::Interface for ConversationalAgentSignal { type Vtable = IConversationalAgentSignal_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ConversationalAgentSignal { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ConversationalAgentSignal { const NAME: &'static str = "Windows.ApplicationModel.ConversationalAgent.ConversationalAgentSignal"; } -::windows_core::imp::interface_hierarchy!(ConversationalAgentSignal, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ConversationalAgentSignal {} unsafe impl ::core::marker::Sync for ConversationalAgentSignal {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ConversationalAgentSignalDetectedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ConversationalAgentSignalDetectedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ConversationalAgentSignalDetectedEventArgs {} impl ::windows_core::RuntimeType for ConversationalAgentSignalDetectedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_class::(); } unsafe impl ::windows_core::Interface for ConversationalAgentSignalDetectedEventArgs { type Vtable = IConversationalAgentSignalDetectedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ConversationalAgentSignalDetectedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ConversationalAgentSignalDetectedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.ConversationalAgent.ConversationalAgentSignalDetectedEventArgs"; } -::windows_core::imp::interface_hierarchy!(ConversationalAgentSignalDetectedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ConversationalAgentSignalDetectedEventArgs {} unsafe impl ::core::marker::Sync for ConversationalAgentSignalDetectedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ConversationalAgentSystemStateChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ConversationalAgentSystemStateChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ConversationalAgentSystemStateChangedEventArgs { pub fn SystemStateChangeType(&self) -> ::windows_core::Result { let this = self; @@ -1544,19 +1358,17 @@ impl ::windows_core::RuntimeType for ConversationalAgentSystemStateChangedEventA } unsafe impl ::windows_core::Interface for ConversationalAgentSystemStateChangedEventArgs { type Vtable = IConversationalAgentSystemStateChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ConversationalAgentSystemStateChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ConversationalAgentSystemStateChangedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.ConversationalAgent.ConversationalAgentSystemStateChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(ConversationalAgentSystemStateChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ConversationalAgentSystemStateChangedEventArgs {} unsafe impl ::core::marker::Sync for ConversationalAgentSystemStateChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DetectionConfigurationAvailabilityChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DetectionConfigurationAvailabilityChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DetectionConfigurationAvailabilityChangedEventArgs { pub fn Kind(&self) -> ::windows_core::Result { let this = self; @@ -1571,19 +1383,17 @@ impl ::windows_core::RuntimeType for DetectionConfigurationAvailabilityChangedEv } unsafe impl ::windows_core::Interface for DetectionConfigurationAvailabilityChangedEventArgs { type Vtable = IDetectionConfigurationAvailabilityChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DetectionConfigurationAvailabilityChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DetectionConfigurationAvailabilityChangedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.ConversationalAgent.DetectionConfigurationAvailabilityChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(DetectionConfigurationAvailabilityChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DetectionConfigurationAvailabilityChangedEventArgs {} unsafe impl ::core::marker::Sync for DetectionConfigurationAvailabilityChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DetectionConfigurationAvailabilityInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DetectionConfigurationAvailabilityInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DetectionConfigurationAvailabilityInfo { pub fn IsEnabled(&self) -> ::windows_core::Result { let this = self; @@ -1616,7 +1426,7 @@ impl DetectionConfigurationAvailabilityInfo { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn UnavailableSystemResources(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).UnavailableSystemResources)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1628,14 +1438,11 @@ impl ::windows_core::RuntimeType for DetectionConfigurationAvailabilityInfo { } unsafe impl ::windows_core::Interface for DetectionConfigurationAvailabilityInfo { type Vtable = IDetectionConfigurationAvailabilityInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DetectionConfigurationAvailabilityInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DetectionConfigurationAvailabilityInfo { const NAME: &'static str = "Windows.ApplicationModel.ConversationalAgent.DetectionConfigurationAvailabilityInfo"; } -::windows_core::imp::interface_hierarchy!(DetectionConfigurationAvailabilityInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DetectionConfigurationAvailabilityInfo {} unsafe impl ::core::marker::Sync for DetectionConfigurationAvailabilityInfo {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Core/impl.rs b/crates/libs/windows/src/Windows/ApplicationModel/Core/impl.rs index b92ffc07df..2d3d97a768 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Core/impl.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Core/impl.rs @@ -30,7 +30,7 @@ impl ICoreApplicationUnhandledError_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"UI_Core\"`"] @@ -84,7 +84,7 @@ impl IFrameworkView_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IFrameworkViewSource_Impl: Sized { @@ -110,6 +110,6 @@ impl IFrameworkViewSource_Vtbl { Self { base__: ::windows_core::IInspectable_Vtbl::new::(), CreateView: CreateView:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Core/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Core/mod.rs index f997e554a3..2d88d0f2c5 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Core/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Core/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppListEntry(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppListEntry { - type Vtable = IAppListEntry_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppListEntry { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xef00f07f_2108_490a_877a_8a9f17c25fad); -} +::windows_core::imp::com_interface!(IAppListEntry, IAppListEntry_Vtbl, 0xef00f07f_2108_490a_877a_8a9f17c25fad); #[repr(C)] #[doc(hidden)] pub struct IAppListEntry_Vtbl { @@ -15,32 +6,14 @@ pub struct IAppListEntry_Vtbl { pub DisplayInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub LaunchAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppListEntry2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppListEntry2 { - type Vtable = IAppListEntry2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppListEntry2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd0a618ad_bf35_42ac_ac06_86eeeb41d04b); -} +::windows_core::imp::com_interface!(IAppListEntry2, IAppListEntry2_Vtbl, 0xd0a618ad_bf35_42ac_ac06_86eeeb41d04b); #[repr(C)] #[doc(hidden)] pub struct IAppListEntry2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub AppUserModelId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppListEntry3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppListEntry3 { - type Vtable = IAppListEntry3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppListEntry3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6099f28d_fc32_470a_bc69_4b061a76ef2e); -} +::windows_core::imp::com_interface!(IAppListEntry3, IAppListEntry3_Vtbl, 0x6099f28d_fc32_470a_bc69_4b061a76ef2e); #[repr(C)] #[doc(hidden)] pub struct IAppListEntry3_Vtbl { @@ -50,32 +23,14 @@ pub struct IAppListEntry3_Vtbl { #[cfg(not(feature = "System"))] LaunchForUserAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppListEntry4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppListEntry4 { - type Vtable = IAppListEntry4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppListEntry4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2a131ed2_56f5_487c_8697_5166f3b33da0); -} +::windows_core::imp::com_interface!(IAppListEntry4, IAppListEntry4_Vtbl, 0x2a131ed2_56f5_487c_8697_5166f3b33da0); #[repr(C)] #[doc(hidden)] pub struct IAppListEntry4_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub AppInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreApplication(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreApplication { - type Vtable = ICoreApplication_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreApplication { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0aacf7a4_5e1d_49df_8034_fb6a68bc5ed1); -} +::windows_core::imp::com_interface!(ICoreApplication, ICoreApplication_Vtbl, 0x0aacf7a4_5e1d_49df_8034_fb6a68bc5ed1); #[repr(C)] #[doc(hidden)] pub struct ICoreApplication_Vtbl { @@ -93,16 +48,7 @@ pub struct ICoreApplication_Vtbl { pub Run: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, viewsource: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RunWithActivationFactories: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, activationfactorycallback: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreApplication2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreApplication2 { - type Vtable = ICoreApplication2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreApplication2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x998681fb_1ab6_4b7f_be4a_9a0645224c04); -} +::windows_core::imp::com_interface!(ICoreApplication2, ICoreApplication2_Vtbl, 0x998681fb_1ab6_4b7f_be4a_9a0645224c04); #[repr(C)] #[doc(hidden)] pub struct ICoreApplication2_Vtbl { @@ -118,16 +64,7 @@ pub struct ICoreApplication2_Vtbl { pub RemoveEnteredBackground: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub EnablePrelaunch: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreApplication3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreApplication3 { - type Vtable = ICoreApplication3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreApplication3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfeec0d39_598b_4507_8a67_772632580a57); -} +::windows_core::imp::com_interface!(ICoreApplication3, ICoreApplication3_Vtbl, 0xfeec0d39_598b_4507_8a67_772632580a57); #[repr(C)] #[doc(hidden)] pub struct ICoreApplication3_Vtbl { @@ -138,16 +75,7 @@ pub struct ICoreApplication3_Vtbl { #[cfg(not(feature = "System"))] RequestRestartForUserAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreApplicationExit(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreApplicationExit { - type Vtable = ICoreApplicationExit_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreApplicationExit { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcf86461d_261e_4b72_9acd_44ed2ace6a29); -} +::windows_core::imp::com_interface!(ICoreApplicationExit, ICoreApplicationExit_Vtbl, 0xcf86461d_261e_4b72_9acd_44ed2ace6a29); #[repr(C)] #[doc(hidden)] pub struct ICoreApplicationExit_Vtbl { @@ -156,9 +84,8 @@ pub struct ICoreApplicationExit_Vtbl { pub Exiting: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveExiting: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreApplicationUnhandledError(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICoreApplicationUnhandledError, ICoreApplicationUnhandledError_Vtbl, 0xf0e24ab0_dd09_42e1_b0bc_e0e131f78d7e); +::windows_core::imp::interface_hierarchy!(ICoreApplicationUnhandledError, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ICoreApplicationUnhandledError { pub fn UnhandledErrorDetected(&self, handler: P0) -> ::windows_core::Result where @@ -175,16 +102,9 @@ impl ICoreApplicationUnhandledError { unsafe { (::windows_core::Interface::vtable(this).RemoveUnhandledErrorDetected)(::windows_core::Interface::as_raw(this), token).ok() } } } -::windows_core::imp::interface_hierarchy!(ICoreApplicationUnhandledError, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for ICoreApplicationUnhandledError { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for ICoreApplicationUnhandledError { - type Vtable = ICoreApplicationUnhandledError_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreApplicationUnhandledError { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf0e24ab0_dd09_42e1_b0bc_e0e131f78d7e); -} #[repr(C)] #[doc(hidden)] pub struct ICoreApplicationUnhandledError_Vtbl { @@ -192,16 +112,7 @@ pub struct ICoreApplicationUnhandledError_Vtbl { pub UnhandledErrorDetected: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveUnhandledErrorDetected: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreApplicationUseCount(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreApplicationUseCount { - type Vtable = ICoreApplicationUseCount_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreApplicationUseCount { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x518dc408_c077_475b_809e_0bc0c57e4b74); -} +::windows_core::imp::com_interface!(ICoreApplicationUseCount, ICoreApplicationUseCount_Vtbl, 0x518dc408_c077_475b_809e_0bc0c57e4b74); #[repr(C)] #[doc(hidden)] pub struct ICoreApplicationUseCount_Vtbl { @@ -209,16 +120,7 @@ pub struct ICoreApplicationUseCount_Vtbl { pub IncrementApplicationUseCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub DecrementApplicationUseCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreApplicationView(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreApplicationView { - type Vtable = ICoreApplicationView_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreApplicationView { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x638bb2db_451d_4661_b099_414f34ffb9f1); -} +::windows_core::imp::com_interface!(ICoreApplicationView, ICoreApplicationView_Vtbl, 0x638bb2db_451d_4661_b099_414f34ffb9f1); #[repr(C)] #[doc(hidden)] pub struct ICoreApplicationView_Vtbl { @@ -235,16 +137,7 @@ pub struct ICoreApplicationView_Vtbl { pub IsMain: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub IsHosted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreApplicationView2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreApplicationView2 { - type Vtable = ICoreApplicationView2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreApplicationView2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x68eb7adf_917f_48eb_9aeb_7de53e086ab1); -} +::windows_core::imp::com_interface!(ICoreApplicationView2, ICoreApplicationView2_Vtbl, 0x68eb7adf_917f_48eb_9aeb_7de53e086ab1); #[repr(C)] #[doc(hidden)] pub struct ICoreApplicationView2_Vtbl { @@ -254,16 +147,7 @@ pub struct ICoreApplicationView2_Vtbl { #[cfg(not(feature = "UI_Core"))] Dispatcher: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreApplicationView3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreApplicationView3 { - type Vtable = ICoreApplicationView3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreApplicationView3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x07ebe1b3_a4cf_4550_ab70_b07e85330bc8); -} +::windows_core::imp::com_interface!(ICoreApplicationView3, ICoreApplicationView3_Vtbl, 0x07ebe1b3_a4cf_4550_ab70_b07e85330bc8); #[repr(C)] #[doc(hidden)] pub struct ICoreApplicationView3_Vtbl { @@ -273,16 +157,7 @@ pub struct ICoreApplicationView3_Vtbl { pub HostedViewClosing: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveHostedViewClosing: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreApplicationView5(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreApplicationView5 { - type Vtable = ICoreApplicationView5_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreApplicationView5 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2bc095a8_8ef0_446d_9e60_3a3e0428c671); -} +::windows_core::imp::com_interface!(ICoreApplicationView5, ICoreApplicationView5_Vtbl, 0x2bc095a8_8ef0_446d_9e60_3a3e0428c671); #[repr(C)] #[doc(hidden)] pub struct ICoreApplicationView5_Vtbl { @@ -292,16 +167,7 @@ pub struct ICoreApplicationView5_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Properties: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreApplicationView6(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreApplicationView6 { - type Vtable = ICoreApplicationView6_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreApplicationView6 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc119d49a_0679_49ba_803f_b79c5cf34cca); -} +::windows_core::imp::com_interface!(ICoreApplicationView6, ICoreApplicationView6_Vtbl, 0xc119d49a_0679_49ba_803f_b79c5cf34cca); #[repr(C)] #[doc(hidden)] pub struct ICoreApplicationView6_Vtbl { @@ -311,16 +177,7 @@ pub struct ICoreApplicationView6_Vtbl { #[cfg(not(feature = "System"))] DispatcherQueue: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreApplicationViewTitleBar(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreApplicationViewTitleBar { - type Vtable = ICoreApplicationViewTitleBar_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreApplicationViewTitleBar { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x006d35e3_e1f1_431b_9508_29b96926ac53); -} +::windows_core::imp::com_interface!(ICoreApplicationViewTitleBar, ICoreApplicationViewTitleBar_Vtbl, 0x006d35e3_e1f1_431b_9508_29b96926ac53); #[repr(C)] #[doc(hidden)] pub struct ICoreApplicationViewTitleBar_Vtbl { @@ -336,16 +193,7 @@ pub struct ICoreApplicationViewTitleBar_Vtbl { pub IsVisibleChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveIsVisibleChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreImmersiveApplication(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreImmersiveApplication { - type Vtable = ICoreImmersiveApplication_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreImmersiveApplication { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1ada0e3e_e4a2_4123_b451_dc96bf800419); -} +::windows_core::imp::com_interface!(ICoreImmersiveApplication, ICoreImmersiveApplication_Vtbl, 0x1ada0e3e_e4a2_4123_b451_dc96bf800419); #[repr(C)] #[doc(hidden)] pub struct ICoreImmersiveApplication_Vtbl { @@ -357,41 +205,22 @@ pub struct ICoreImmersiveApplication_Vtbl { pub CreateNewView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, runtimetype: ::std::mem::MaybeUninit<::windows_core::HSTRING>, entrypoint: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub MainView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreImmersiveApplication2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreImmersiveApplication2 { - type Vtable = ICoreImmersiveApplication2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreImmersiveApplication2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x828e1e36_e9e3_4cfc_9b66_48b78ea9bb2c); -} +::windows_core::imp::com_interface!(ICoreImmersiveApplication2, ICoreImmersiveApplication2_Vtbl, 0x828e1e36_e9e3_4cfc_9b66_48b78ea9bb2c); #[repr(C)] #[doc(hidden)] pub struct ICoreImmersiveApplication2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateNewViewFromMainView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreImmersiveApplication3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreImmersiveApplication3 { - type Vtable = ICoreImmersiveApplication3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreImmersiveApplication3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x34a05b2f_ee0d_41e5_8314_cf10c91bf0af); -} +::windows_core::imp::com_interface!(ICoreImmersiveApplication3, ICoreImmersiveApplication3_Vtbl, 0x34a05b2f_ee0d_41e5_8314_cf10c91bf0af); #[repr(C)] #[doc(hidden)] pub struct ICoreImmersiveApplication3_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateNewViewWithViewSource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, viewsource: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFrameworkView(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFrameworkView, IFrameworkView_Vtbl, 0xfaab5cd0_8924_45ac_ad0f_a08fae5d0324); +::windows_core::imp::interface_hierarchy!(IFrameworkView, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IFrameworkView { pub fn Initialize(&self, applicationview: P0) -> ::windows_core::Result<()> where @@ -422,16 +251,9 @@ impl IFrameworkView { unsafe { (::windows_core::Interface::vtable(this).Uninitialize)(::windows_core::Interface::as_raw(this)).ok() } } } -::windows_core::imp::interface_hierarchy!(IFrameworkView, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IFrameworkView { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IFrameworkView { - type Vtable = IFrameworkView_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFrameworkView { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfaab5cd0_8924_45ac_ad0f_a08fae5d0324); -} #[repr(C)] #[doc(hidden)] pub struct IFrameworkView_Vtbl { @@ -445,9 +267,8 @@ pub struct IFrameworkView_Vtbl { pub Run: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Uninitialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFrameworkViewSource(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFrameworkViewSource, IFrameworkViewSource_Vtbl, 0xcd770614_65c4_426c_9494_34fc43554862); +::windows_core::imp::interface_hierarchy!(IFrameworkViewSource, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IFrameworkViewSource { pub fn CreateView(&self) -> ::windows_core::Result { let this = self; @@ -457,48 +278,23 @@ impl IFrameworkViewSource { } } } -::windows_core::imp::interface_hierarchy!(IFrameworkViewSource, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IFrameworkViewSource { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IFrameworkViewSource { - type Vtable = IFrameworkViewSource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFrameworkViewSource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcd770614_65c4_426c_9494_34fc43554862); -} #[repr(C)] #[doc(hidden)] pub struct IFrameworkViewSource_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHostedViewClosingEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHostedViewClosingEventArgs { - type Vtable = IHostedViewClosingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHostedViewClosingEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd238943c_b24e_4790_acb5_3e4243c4ff87); -} +::windows_core::imp::com_interface!(IHostedViewClosingEventArgs, IHostedViewClosingEventArgs_Vtbl, 0xd238943c_b24e_4790_acb5_3e4243c4ff87); #[repr(C)] #[doc(hidden)] pub struct IHostedViewClosingEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUnhandledError(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUnhandledError { - type Vtable = IUnhandledError_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUnhandledError { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9459b726_53b5_4686_9eaf_fa8162dc3980); -} +::windows_core::imp::com_interface!(IUnhandledError, IUnhandledError_Vtbl, 0x9459b726_53b5_4686_9eaf_fa8162dc3980); #[repr(C)] #[doc(hidden)] pub struct IUnhandledError_Vtbl { @@ -506,16 +302,7 @@ pub struct IUnhandledError_Vtbl { pub Handled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub Propagate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUnhandledErrorDetectedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUnhandledErrorDetectedEventArgs { - type Vtable = IUnhandledErrorDetectedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUnhandledErrorDetectedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x679ab78b_b336_4822_ac40_0d750f0b7a2b); -} +::windows_core::imp::com_interface!(IUnhandledErrorDetectedEventArgs, IUnhandledErrorDetectedEventArgs_Vtbl, 0x679ab78b_b336_4822_ac40_0d750f0b7a2b); #[repr(C)] #[doc(hidden)] pub struct IUnhandledErrorDetectedEventArgs_Vtbl { @@ -525,6 +312,7 @@ pub struct IUnhandledErrorDetectedEventArgs_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppListEntry(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppListEntry, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppListEntry { pub fn DisplayInfo(&self) -> ::windows_core::Result { let this = self; @@ -541,7 +329,7 @@ impl AppListEntry { } } pub fn AppUserModelId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AppUserModelId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -553,14 +341,14 @@ impl AppListEntry { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn AppInfo(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AppInfo)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -572,14 +360,11 @@ impl ::windows_core::RuntimeType for AppListEntry { } unsafe impl ::windows_core::Interface for AppListEntry { type Vtable = IAppListEntry_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppListEntry { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppListEntry { const NAME: &'static str = "Windows.ApplicationModel.Core.AppListEntry"; } -::windows_core::imp::interface_hierarchy!(AppListEntry, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppListEntry {} unsafe impl ::core::marker::Sync for AppListEntry {} pub struct CoreApplication; @@ -630,15 +415,15 @@ impl CoreApplication { } pub fn Run(viewsource: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - Self::ICoreApplication(|this| unsafe { (::windows_core::Interface::vtable(this).Run)(::windows_core::Interface::as_raw(this), viewsource.try_into_param()?.abi()).ok() }) + Self::ICoreApplication(|this| unsafe { (::windows_core::Interface::vtable(this).Run)(::windows_core::Interface::as_raw(this), viewsource.into_param().abi()).ok() }) } pub fn RunWithActivationFactories(activationfactorycallback: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - Self::ICoreApplication(|this| unsafe { (::windows_core::Interface::vtable(this).RunWithActivationFactories)(::windows_core::Interface::as_raw(this), activationfactorycallback.try_into_param()?.abi()).ok() }) + Self::ICoreApplication(|this| unsafe { (::windows_core::Interface::vtable(this).RunWithActivationFactories)(::windows_core::Interface::as_raw(this), activationfactorycallback.into_param().abi()).ok() }) } #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] @@ -759,11 +544,11 @@ impl CoreApplication { } pub fn CreateNewViewWithViewSource(viewsource: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::ICoreImmersiveApplication3(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateNewViewWithViewSource)(::windows_core::Interface::as_raw(this), viewsource.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateNewViewWithViewSource)(::windows_core::Interface::as_raw(this), viewsource.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -818,6 +603,7 @@ impl ::windows_core::RuntimeName for CoreApplication { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CoreApplicationView(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CoreApplicationView, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CoreApplicationView { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] @@ -861,21 +647,21 @@ impl CoreApplicationView { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsComponent(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsComponent)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TitleBar(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TitleBar)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -885,20 +671,20 @@ impl CoreApplicationView { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveHostedViewClosing(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveHostedViewClosing)(::windows_core::Interface::as_raw(this), token).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -907,7 +693,7 @@ impl CoreApplicationView { #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -919,17 +705,15 @@ impl ::windows_core::RuntimeType for CoreApplicationView { } unsafe impl ::windows_core::Interface for CoreApplicationView { type Vtable = ICoreApplicationView_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CoreApplicationView { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CoreApplicationView { const NAME: &'static str = "Windows.ApplicationModel.Core.CoreApplicationView"; } -::windows_core::imp::interface_hierarchy!(CoreApplicationView, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CoreApplicationViewTitleBar(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CoreApplicationViewTitleBar, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CoreApplicationViewTitleBar { pub fn SetExtendViewIntoTitleBar(&self, value: bool) -> ::windows_core::Result<()> { let this = self; @@ -1004,17 +788,15 @@ impl ::windows_core::RuntimeType for CoreApplicationViewTitleBar { } unsafe impl ::windows_core::Interface for CoreApplicationViewTitleBar { type Vtable = ICoreApplicationViewTitleBar_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CoreApplicationViewTitleBar { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CoreApplicationViewTitleBar { const NAME: &'static str = "Windows.ApplicationModel.Core.CoreApplicationViewTitleBar"; } -::windows_core::imp::interface_hierarchy!(CoreApplicationViewTitleBar, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HostedViewClosingEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HostedViewClosingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl HostedViewClosingEventArgs { pub fn GetDeferral(&self) -> ::windows_core::Result { let this = self; @@ -1029,19 +811,17 @@ impl ::windows_core::RuntimeType for HostedViewClosingEventArgs { } unsafe impl ::windows_core::Interface for HostedViewClosingEventArgs { type Vtable = IHostedViewClosingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HostedViewClosingEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HostedViewClosingEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Core.HostedViewClosingEventArgs"; } -::windows_core::imp::interface_hierarchy!(HostedViewClosingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for HostedViewClosingEventArgs {} unsafe impl ::core::marker::Sync for HostedViewClosingEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UnhandledError(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UnhandledError, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UnhandledError { pub fn Handled(&self) -> ::windows_core::Result { let this = self; @@ -1060,19 +840,17 @@ impl ::windows_core::RuntimeType for UnhandledError { } unsafe impl ::windows_core::Interface for UnhandledError { type Vtable = IUnhandledError_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UnhandledError { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UnhandledError { const NAME: &'static str = "Windows.ApplicationModel.Core.UnhandledError"; } -::windows_core::imp::interface_hierarchy!(UnhandledError, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UnhandledError {} unsafe impl ::core::marker::Sync for UnhandledError {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UnhandledErrorDetectedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UnhandledErrorDetectedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UnhandledErrorDetectedEventArgs { pub fn UnhandledError(&self) -> ::windows_core::Result { let this = self; @@ -1087,14 +865,11 @@ impl ::windows_core::RuntimeType for UnhandledErrorDetectedEventArgs { } unsafe impl ::windows_core::Interface for UnhandledErrorDetectedEventArgs { type Vtable = IUnhandledErrorDetectedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UnhandledErrorDetectedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UnhandledErrorDetectedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Core.UnhandledErrorDetectedEventArgs"; } -::windows_core::imp::interface_hierarchy!(UnhandledErrorDetectedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UnhandledErrorDetectedEventArgs {} unsafe impl ::core::marker::Sync for UnhandledErrorDetectedEventArgs {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/DragDrop/Core/impl.rs b/crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/DragDrop/Core/impl.rs index 0f2622a502..04cf7417fe 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/DragDrop/Core/impl.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/DragDrop/Core/impl.rs @@ -66,6 +66,6 @@ impl ICoreDropOperationTarget_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 5b3d3050ad..91c3d1ca09 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 @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreDragDropManager(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreDragDropManager { - type Vtable = ICoreDragDropManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreDragDropManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7d56d344_8464_4faf_aa49_37ea6e2d7bd1); -} +::windows_core::imp::com_interface!(ICoreDragDropManager, ICoreDragDropManager_Vtbl, 0x7d56d344_8464_4faf_aa49_37ea6e2d7bd1); #[repr(C)] #[doc(hidden)] pub struct ICoreDragDropManager_Vtbl { @@ -17,32 +8,14 @@ pub struct ICoreDragDropManager_Vtbl { pub AreConcurrentOperationsEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetAreConcurrentOperationsEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreDragDropManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreDragDropManagerStatics { - type Vtable = ICoreDragDropManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreDragDropManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9542fdca_da12_4c1c_8d06_041db29733c3); -} +::windows_core::imp::com_interface!(ICoreDragDropManagerStatics, ICoreDragDropManagerStatics_Vtbl, 0x9542fdca_da12_4c1c_8d06_041db29733c3); #[repr(C)] #[doc(hidden)] pub struct ICoreDragDropManagerStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetForCurrentView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreDragInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreDragInfo { - type Vtable = ICoreDragInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreDragInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x48353a8b_cb50_464e_9575_cd4e3a7ab028); -} +::windows_core::imp::com_interface!(ICoreDragInfo, ICoreDragInfo_Vtbl, 0x48353a8b_cb50_464e_9575_cd4e3a7ab028); #[repr(C)] #[doc(hidden)] pub struct ICoreDragInfo_Vtbl { @@ -51,32 +24,14 @@ pub struct ICoreDragInfo_Vtbl { pub Modifiers: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::DragDropModifiers) -> ::windows_core::HRESULT, pub Position: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::Point) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreDragInfo2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreDragInfo2 { - type Vtable = ICoreDragInfo2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreDragInfo2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc54691e5_e6fb_4d74_b4b1_8a3c17f25e9e); -} +::windows_core::imp::com_interface!(ICoreDragInfo2, ICoreDragInfo2_Vtbl, 0xc54691e5_e6fb_4d74_b4b1_8a3c17f25e9e); #[repr(C)] #[doc(hidden)] pub struct ICoreDragInfo2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub AllowedOperations: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::DataPackageOperation) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreDragOperation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreDragOperation { - type Vtable = ICoreDragOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreDragOperation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcc06de4f_6db0_4e62_ab1b_a74a02dc6d85); -} +::windows_core::imp::com_interface!(ICoreDragOperation, ICoreDragOperation_Vtbl, 0xcc06de4f_6db0_4e62_ab1b_a74a02dc6d85); #[repr(C)] #[doc(hidden)] pub struct ICoreDragOperation_Vtbl { @@ -95,16 +50,7 @@ pub struct ICoreDragOperation_Vtbl { pub SetDragUIContentMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: CoreDragUIContentMode) -> ::windows_core::HRESULT, pub StartAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreDragOperation2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreDragOperation2 { - type Vtable = ICoreDragOperation2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreDragOperation2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x824b1e2c_d99a_4fc3_8507_6c182f33b46a); -} +::windows_core::imp::com_interface!(ICoreDragOperation2, ICoreDragOperation2_Vtbl, 0x824b1e2c_d99a_4fc3_8507_6c182f33b46a); #[repr(C)] #[doc(hidden)] pub struct ICoreDragOperation2_Vtbl { @@ -112,16 +58,7 @@ pub struct ICoreDragOperation2_Vtbl { pub AllowedOperations: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::DataPackageOperation) -> ::windows_core::HRESULT, pub SetAllowedOperations: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::DataPackageOperation) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreDragUIOverride(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreDragUIOverride { - type Vtable = ICoreDragUIOverride_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreDragUIOverride { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x89a85064_3389_4f4f_8897_7e8a3ffb3c93); -} +::windows_core::imp::com_interface!(ICoreDragUIOverride, ICoreDragUIOverride_Vtbl, 0x89a85064_3389_4f4f_8897_7e8a3ffb3c93); #[repr(C)] #[doc(hidden)] pub struct ICoreDragUIOverride_Vtbl { @@ -144,9 +81,8 @@ pub struct ICoreDragUIOverride_Vtbl { pub SetIsGlyphVisible: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, pub Clear: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreDropOperationTarget(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICoreDropOperationTarget, ICoreDropOperationTarget_Vtbl, 0xd9126196_4c5b_417d_bb37_76381def8db4); +::windows_core::imp::interface_hierarchy!(ICoreDropOperationTarget, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ICoreDropOperationTarget { pub fn EnterAsync(&self, draginfo: P0, draguioverride: P1) -> ::windows_core::Result> where @@ -191,16 +127,9 @@ impl ICoreDropOperationTarget { } } } -::windows_core::imp::interface_hierarchy!(ICoreDropOperationTarget, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for ICoreDropOperationTarget { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for ICoreDropOperationTarget { - type Vtable = ICoreDropOperationTarget_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreDropOperationTarget { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd9126196_4c5b_417d_bb37_76381def8db4); -} #[repr(C)] #[doc(hidden)] pub struct ICoreDropOperationTarget_Vtbl { @@ -210,16 +139,7 @@ pub struct ICoreDropOperationTarget_Vtbl { pub LeaveAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, draginfo: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub DropAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, draginfo: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreDropOperationTargetRequestedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreDropOperationTargetRequestedEventArgs { - type Vtable = ICoreDropOperationTargetRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreDropOperationTargetRequestedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2aca929a_5e28_4ea6_829e_29134e665d6d); -} +::windows_core::imp::com_interface!(ICoreDropOperationTargetRequestedEventArgs, ICoreDropOperationTargetRequestedEventArgs_Vtbl, 0x2aca929a_5e28_4ea6_829e_29134e665d6d); #[repr(C)] #[doc(hidden)] pub struct ICoreDropOperationTargetRequestedEventArgs_Vtbl { @@ -229,6 +149,7 @@ pub struct ICoreDropOperationTargetRequestedEventArgs_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CoreDragDropManager(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CoreDragDropManager, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CoreDragDropManager { pub fn TargetRequested(&self, value: P0) -> ::windows_core::Result where @@ -272,19 +193,17 @@ impl ::windows_core::RuntimeType for CoreDragDropManager { } unsafe impl ::windows_core::Interface for CoreDragDropManager { type Vtable = ICoreDragDropManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CoreDragDropManager { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CoreDragDropManager { const NAME: &'static str = "Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragDropManager"; } -::windows_core::imp::interface_hierarchy!(CoreDragDropManager, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CoreDragDropManager {} unsafe impl ::core::marker::Sync for CoreDragDropManager {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CoreDragInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CoreDragInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CoreDragInfo { pub fn Data(&self) -> ::windows_core::Result { let this = self; @@ -308,7 +227,7 @@ impl CoreDragInfo { } } pub fn AllowedOperations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AllowedOperations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -320,19 +239,17 @@ impl ::windows_core::RuntimeType for CoreDragInfo { } unsafe impl ::windows_core::Interface for CoreDragInfo { type Vtable = ICoreDragInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CoreDragInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CoreDragInfo { const NAME: &'static str = "Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragInfo"; } -::windows_core::imp::interface_hierarchy!(CoreDragInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CoreDragInfo {} unsafe impl ::core::marker::Sync for CoreDragInfo {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CoreDragOperation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CoreDragOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CoreDragOperation { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -389,14 +306,14 @@ impl CoreDragOperation { } } pub fn AllowedOperations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AllowedOperations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetAllowedOperations(&self, value: super::super::DataPackageOperation) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetAllowedOperations)(::windows_core::Interface::as_raw(this), value).ok() } } } @@ -405,19 +322,17 @@ impl ::windows_core::RuntimeType for CoreDragOperation { } unsafe impl ::windows_core::Interface for CoreDragOperation { type Vtable = ICoreDragOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CoreDragOperation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CoreDragOperation { const NAME: &'static str = "Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragOperation"; } -::windows_core::imp::interface_hierarchy!(CoreDragOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CoreDragOperation {} unsafe impl ::core::marker::Sync for CoreDragOperation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CoreDragUIOverride(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CoreDragUIOverride, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CoreDragUIOverride { #[doc = "Required features: `\"Graphics_Imaging\"`"] #[cfg(feature = "Graphics_Imaging")] @@ -491,26 +406,24 @@ impl ::windows_core::RuntimeType for CoreDragUIOverride { } unsafe impl ::windows_core::Interface for CoreDragUIOverride { type Vtable = ICoreDragUIOverride_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CoreDragUIOverride { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CoreDragUIOverride { const NAME: &'static str = "Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDragUIOverride"; } -::windows_core::imp::interface_hierarchy!(CoreDragUIOverride, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CoreDragUIOverride {} unsafe impl ::core::marker::Sync for CoreDragUIOverride {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CoreDropOperationTargetRequestedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CoreDropOperationTargetRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CoreDropOperationTargetRequestedEventArgs { pub fn SetTarget(&self, target: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetTarget)(::windows_core::Interface::as_raw(this), target.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetTarget)(::windows_core::Interface::as_raw(this), target.into_param().abi()).ok() } } } impl ::windows_core::RuntimeType for CoreDropOperationTargetRequestedEventArgs { @@ -518,14 +431,11 @@ impl ::windows_core::RuntimeType for CoreDropOperationTargetRequestedEventArgs { } unsafe impl ::windows_core::Interface for CoreDropOperationTargetRequestedEventArgs { type Vtable = ICoreDropOperationTargetRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CoreDropOperationTargetRequestedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CoreDropOperationTargetRequestedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.DataTransfer.DragDrop.Core.CoreDropOperationTargetRequestedEventArgs"; } -::windows_core::imp::interface_hierarchy!(CoreDropOperationTargetRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CoreDropOperationTargetRequestedEventArgs {} unsafe impl ::core::marker::Sync for CoreDropOperationTargetRequestedEventArgs {} #[repr(transparent)] 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 6a83830598..fb3c4560c0 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/ShareTarget/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/ShareTarget/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IQuickLink(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IQuickLink { - type Vtable = IQuickLink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IQuickLink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x603e4308_f0be_4adc_acc9_8b27ab9cf556); -} +::windows_core::imp::com_interface!(IQuickLink, IQuickLink_Vtbl, 0x603e4308_f0be_4adc_acc9_8b27ab9cf556); #[repr(C)] #[doc(hidden)] pub struct IQuickLink_Vtbl { @@ -33,16 +24,7 @@ pub struct IQuickLink_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] SupportedFileTypes: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShareOperation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IShareOperation { - type Vtable = IShareOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IShareOperation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2246bab8_d0f8_41c1_a82a_4137db6504fb); -} +::windows_core::imp::com_interface!(IShareOperation, IShareOperation_Vtbl, 0x2246bab8_d0f8_41c1_a82a_4137db6504fb); #[repr(C)] #[doc(hidden)] pub struct IShareOperation_Vtbl { @@ -57,32 +39,14 @@ pub struct IShareOperation_Vtbl { pub ReportCompleted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ReportError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShareOperation2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IShareOperation2 { - type Vtable = IShareOperation2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IShareOperation2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0ffb97c1_9778_4a09_8e5b_cb5e482d0555); -} +::windows_core::imp::com_interface!(IShareOperation2, IShareOperation2_Vtbl, 0x0ffb97c1_9778_4a09_8e5b_cb5e482d0555); #[repr(C)] #[doc(hidden)] pub struct IShareOperation2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub DismissUI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShareOperation3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IShareOperation3 { - type Vtable = IShareOperation3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IShareOperation3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5ef6b382_b7a7_4571_a2a6_994a034988b2); -} +::windows_core::imp::com_interface!(IShareOperation3, IShareOperation3_Vtbl, 0x5ef6b382_b7a7_4571_a2a6_994a034988b2); #[repr(C)] #[doc(hidden)] pub struct IShareOperation3_Vtbl { @@ -95,6 +59,7 @@ pub struct IShareOperation3_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct QuickLink(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(QuickLink, ::windows_core::IUnknown, ::windows_core::IInspectable); impl QuickLink { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -167,17 +132,15 @@ impl ::windows_core::RuntimeType for QuickLink { } unsafe impl ::windows_core::Interface for QuickLink { type Vtable = IQuickLink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for QuickLink { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for QuickLink { const NAME: &'static str = "Windows.ApplicationModel.DataTransfer.ShareTarget.QuickLink"; } -::windows_core::imp::interface_hierarchy!(QuickLink, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ShareOperation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ShareOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ShareOperation { pub fn Data(&self) -> ::windows_core::Result { let this = self; @@ -225,13 +188,13 @@ impl ShareOperation { unsafe { (::windows_core::Interface::vtable(this).ReportError)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn DismissUI(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).DismissUI)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"ApplicationModel_Contacts\"`, `\"Foundation_Collections\"`"] #[cfg(all(feature = "ApplicationModel_Contacts", feature = "Foundation_Collections"))] pub fn Contacts(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Contacts)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -243,11 +206,8 @@ impl ::windows_core::RuntimeType for ShareOperation { } unsafe impl ::windows_core::Interface for ShareOperation { type Vtable = IShareOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ShareOperation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ShareOperation { const NAME: &'static str = "Windows.ApplicationModel.DataTransfer.ShareTarget.ShareOperation"; } -::windows_core::imp::interface_hierarchy!(ShareOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); diff --git a/crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs index 5e3cd5c87e..f776fcc886 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs @@ -4,16 +4,7 @@ pub mod DragDrop; #[cfg(feature = "ApplicationModel_DataTransfer_ShareTarget")] #[doc = "Required features: `\"ApplicationModel_DataTransfer_ShareTarget\"`"] pub mod ShareTarget; -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IClipboardContentOptions(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IClipboardContentOptions { - type Vtable = IClipboardContentOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IClipboardContentOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe888a98c_ad4b_5447_a056_ab3556276d2b); -} +::windows_core::imp::com_interface!(IClipboardContentOptions, IClipboardContentOptions_Vtbl, 0xe888a98c_ad4b_5447_a056_ab3556276d2b); #[repr(C)] #[doc(hidden)] pub struct IClipboardContentOptions_Vtbl { @@ -31,31 +22,13 @@ pub struct IClipboardContentOptions_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] HistoryFormats: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IClipboardHistoryChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IClipboardHistoryChangedEventArgs { - type Vtable = IClipboardHistoryChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IClipboardHistoryChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc0be453f_8ea2_53ce_9aba_8d2212573452); -} +::windows_core::imp::com_interface!(IClipboardHistoryChangedEventArgs, IClipboardHistoryChangedEventArgs_Vtbl, 0xc0be453f_8ea2_53ce_9aba_8d2212573452); #[repr(C)] #[doc(hidden)] pub struct IClipboardHistoryChangedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IClipboardHistoryItem(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IClipboardHistoryItem { - type Vtable = IClipboardHistoryItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IClipboardHistoryItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0173bd8a_afff_5c50_ab92_3d19f481ec58); -} +::windows_core::imp::com_interface!(IClipboardHistoryItem, IClipboardHistoryItem_Vtbl, 0x0173bd8a_afff_5c50_ab92_3d19f481ec58); #[repr(C)] #[doc(hidden)] pub struct IClipboardHistoryItem_Vtbl { @@ -64,16 +37,7 @@ pub struct IClipboardHistoryItem_Vtbl { pub Timestamp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::DateTime) -> ::windows_core::HRESULT, pub Content: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IClipboardHistoryItemsResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IClipboardHistoryItemsResult { - type Vtable = IClipboardHistoryItemsResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IClipboardHistoryItemsResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe6dfdee6_0ee2_52e3_852b_f295db65939a); -} +::windows_core::imp::com_interface!(IClipboardHistoryItemsResult, IClipboardHistoryItemsResult_Vtbl, 0xe6dfdee6_0ee2_52e3_852b_f295db65939a); #[repr(C)] #[doc(hidden)] pub struct IClipboardHistoryItemsResult_Vtbl { @@ -84,16 +48,7 @@ pub struct IClipboardHistoryItemsResult_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Items: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IClipboardStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IClipboardStatics { - type Vtable = IClipboardStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IClipboardStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc627e291_34e2_4963_8eed_93cbb0ea3d70); -} +::windows_core::imp::com_interface!(IClipboardStatics, IClipboardStatics_Vtbl, 0xc627e291_34e2_4963_8eed_93cbb0ea3d70); #[repr(C)] #[doc(hidden)] pub struct IClipboardStatics_Vtbl { @@ -105,16 +60,7 @@ pub struct IClipboardStatics_Vtbl { pub ContentChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveContentChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IClipboardStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IClipboardStatics2 { - type Vtable = IClipboardStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IClipboardStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd2ac1b6a_d29f_554b_b303_f0452345fe02); -} +::windows_core::imp::com_interface!(IClipboardStatics2, IClipboardStatics2_Vtbl, 0xd2ac1b6a_d29f_554b_b303_f0452345fe02); #[repr(C)] #[doc(hidden)] pub struct IClipboardStatics2_Vtbl { @@ -133,16 +79,7 @@ pub struct IClipboardStatics2_Vtbl { pub HistoryEnabledChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveHistoryEnabledChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataPackage(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDataPackage { - type Vtable = IDataPackage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDataPackage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x61ebf5c7_efea_4346_9554_981d7e198ffe); -} +::windows_core::imp::com_interface!(IDataPackage, IDataPackage_Vtbl, 0x61ebf5c7_efea_4346_9554_981d7e198ffe); #[repr(C)] #[doc(hidden)] pub struct IDataPackage_Vtbl { @@ -181,16 +118,7 @@ pub struct IDataPackage_Vtbl { #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage")))] SetStorageItems: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataPackage2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDataPackage2 { - type Vtable = IDataPackage2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDataPackage2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x041c1fe9_2409_45e1_a538_4c53eeee04a7); -} +::windows_core::imp::com_interface!(IDataPackage2, IDataPackage2_Vtbl, 0x041c1fe9_2409_45e1_a538_4c53eeee04a7); #[repr(C)] #[doc(hidden)] pub struct IDataPackage2_Vtbl { @@ -198,16 +126,7 @@ pub struct IDataPackage2_Vtbl { pub SetApplicationLink: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetWebLink: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataPackage3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDataPackage3 { - type Vtable = IDataPackage3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDataPackage3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x88f31f5d_787b_4d32_965a_a9838105a056); -} +::windows_core::imp::com_interface!(IDataPackage3, IDataPackage3_Vtbl, 0x88f31f5d_787b_4d32_965a_a9838105a056); #[repr(C)] #[doc(hidden)] pub struct IDataPackage3_Vtbl { @@ -215,16 +134,7 @@ pub struct IDataPackage3_Vtbl { pub ShareCompleted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveShareCompleted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataPackage4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDataPackage4 { - type Vtable = IDataPackage4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDataPackage4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x13a24ec8_9382_536f_852a_3045e1b29a3b); -} +::windows_core::imp::com_interface!(IDataPackage4, IDataPackage4_Vtbl, 0x13a24ec8_9382_536f_852a_3045e1b29a3b); #[repr(C)] #[doc(hidden)] pub struct IDataPackage4_Vtbl { @@ -232,16 +142,7 @@ pub struct IDataPackage4_Vtbl { pub ShareCanceled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveShareCanceled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataPackagePropertySet(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDataPackagePropertySet { - type Vtable = IDataPackagePropertySet_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDataPackagePropertySet { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcd1c93eb_4c4c_443a_a8d3_f5c241e91689); -} +::windows_core::imp::com_interface!(IDataPackagePropertySet, IDataPackagePropertySet_Vtbl, 0xcd1c93eb_4c4c_443a_a8d3_f5c241e91689); #[repr(C)] #[doc(hidden)] pub struct IDataPackagePropertySet_Vtbl { @@ -267,16 +168,7 @@ pub struct IDataPackagePropertySet_Vtbl { pub ApplicationListingUri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetApplicationListingUri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataPackagePropertySet2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDataPackagePropertySet2 { - type Vtable = IDataPackagePropertySet2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDataPackagePropertySet2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeb505d4a_9800_46aa_b181_7b6f0f2b919a); -} +::windows_core::imp::com_interface!(IDataPackagePropertySet2, IDataPackagePropertySet2_Vtbl, 0xeb505d4a_9800_46aa_b181_7b6f0f2b919a); #[repr(C)] #[doc(hidden)] pub struct IDataPackagePropertySet2_Vtbl { @@ -304,16 +196,7 @@ pub struct IDataPackagePropertySet2_Vtbl { #[cfg(not(feature = "UI"))] SetLogoBackgroundColor: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataPackagePropertySet3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDataPackagePropertySet3 { - type Vtable = IDataPackagePropertySet3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDataPackagePropertySet3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9e87fd9b_5205_401b_874a_455653bd39e8); -} +::windows_core::imp::com_interface!(IDataPackagePropertySet3, IDataPackagePropertySet3_Vtbl, 0x9e87fd9b_5205_401b_874a_455653bd39e8); #[repr(C)] #[doc(hidden)] pub struct IDataPackagePropertySet3_Vtbl { @@ -321,16 +204,7 @@ pub struct IDataPackagePropertySet3_Vtbl { pub EnterpriseId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetEnterpriseId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataPackagePropertySet4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDataPackagePropertySet4 { - type Vtable = IDataPackagePropertySet4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDataPackagePropertySet4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6390ebf5_1739_4c74_b22f_865fab5e8545); -} +::windows_core::imp::com_interface!(IDataPackagePropertySet4, IDataPackagePropertySet4_Vtbl, 0x6390ebf5_1739_4c74_b22f_865fab5e8545); #[repr(C)] #[doc(hidden)] pub struct IDataPackagePropertySet4_Vtbl { @@ -338,16 +212,7 @@ pub struct IDataPackagePropertySet4_Vtbl { pub ContentSourceUserActivityJson: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetContentSourceUserActivityJson: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataPackagePropertySetView(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDataPackagePropertySetView { - type Vtable = IDataPackagePropertySetView_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDataPackagePropertySetView { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb94cec01_0c1a_4c57_be55_75d01289735d); -} +::windows_core::imp::com_interface!(IDataPackagePropertySetView, IDataPackagePropertySetView_Vtbl, 0xb94cec01_0c1a_4c57_be55_75d01289735d); #[repr(C)] #[doc(hidden)] pub struct IDataPackagePropertySetView_Vtbl { @@ -365,16 +230,7 @@ pub struct IDataPackagePropertySetView_Vtbl { pub ApplicationName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub ApplicationListingUri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataPackagePropertySetView2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDataPackagePropertySetView2 { - type Vtable = IDataPackagePropertySetView2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDataPackagePropertySetView2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6054509b_8ebe_4feb_9c1e_75e69de54b84); -} +::windows_core::imp::com_interface!(IDataPackagePropertySetView2, IDataPackagePropertySetView2_Vtbl, 0x6054509b_8ebe_4feb_9c1e_75e69de54b84); #[repr(C)] #[doc(hidden)] pub struct IDataPackagePropertySetView2_Vtbl { @@ -391,64 +247,28 @@ pub struct IDataPackagePropertySetView2_Vtbl { #[cfg(not(feature = "UI"))] LogoBackgroundColor: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataPackagePropertySetView3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDataPackagePropertySetView3 { - type Vtable = IDataPackagePropertySetView3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDataPackagePropertySetView3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdb764ce5_d174_495c_84fc_1a51f6ab45d7); -} +::windows_core::imp::com_interface!(IDataPackagePropertySetView3, IDataPackagePropertySetView3_Vtbl, 0xdb764ce5_d174_495c_84fc_1a51f6ab45d7); #[repr(C)] #[doc(hidden)] pub struct IDataPackagePropertySetView3_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub EnterpriseId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataPackagePropertySetView4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDataPackagePropertySetView4 { - type Vtable = IDataPackagePropertySetView4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDataPackagePropertySetView4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4474c80d_d16f_40ae_9580_6f8562b94235); -} +::windows_core::imp::com_interface!(IDataPackagePropertySetView4, IDataPackagePropertySetView4_Vtbl, 0x4474c80d_d16f_40ae_9580_6f8562b94235); #[repr(C)] #[doc(hidden)] pub struct IDataPackagePropertySetView4_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ContentSourceUserActivityJson: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataPackagePropertySetView5(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDataPackagePropertySetView5 { - type Vtable = IDataPackagePropertySetView5_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDataPackagePropertySetView5 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6f0a9445_3760_50bb_8523_c4202ded7d78); -} +::windows_core::imp::com_interface!(IDataPackagePropertySetView5, IDataPackagePropertySetView5_Vtbl, 0x6f0a9445_3760_50bb_8523_c4202ded7d78); #[repr(C)] #[doc(hidden)] pub struct IDataPackagePropertySetView5_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub IsFromRoamingClipboard: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataPackageView(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDataPackageView { - type Vtable = IDataPackageView_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDataPackageView { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7b840471_5900_4d85_a90b_10cb85fe3552); -} +::windows_core::imp::com_interface!(IDataPackageView, IDataPackageView_Vtbl, 0x7b840471_5900_4d85_a90b_10cb85fe3552); #[repr(C)] #[doc(hidden)] pub struct IDataPackageView_Vtbl { @@ -483,16 +303,7 @@ pub struct IDataPackageView_Vtbl { #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage")))] GetStorageItemsAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataPackageView2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDataPackageView2 { - type Vtable = IDataPackageView2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDataPackageView2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x40ecba95_2450_4c1d_b6b4_ed45463dee9c); -} +::windows_core::imp::com_interface!(IDataPackageView2, IDataPackageView2_Vtbl, 0x40ecba95_2450_4c1d_b6b4_ed45463dee9c); #[repr(C)] #[doc(hidden)] pub struct IDataPackageView2_Vtbl { @@ -500,16 +311,7 @@ pub struct IDataPackageView2_Vtbl { pub GetApplicationLinkAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetWebLinkAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataPackageView3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDataPackageView3 { - type Vtable = IDataPackageView3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDataPackageView3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd37771a8_ddad_4288_8428_d1cae394128b); -} +::windows_core::imp::com_interface!(IDataPackageView3, IDataPackageView3_Vtbl, 0xd37771a8_ddad_4288_8428_d1cae394128b); #[repr(C)] #[doc(hidden)] pub struct IDataPackageView3_Vtbl { @@ -527,48 +329,21 @@ pub struct IDataPackageView3_Vtbl { #[cfg(not(feature = "Security_EnterpriseData"))] UnlockAndAssumeEnterpriseIdentity: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataPackageView4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDataPackageView4 { - type Vtable = IDataPackageView4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDataPackageView4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdfe96f1f_e042_4433_a09f_26d6ffda8b85); -} +::windows_core::imp::com_interface!(IDataPackageView4, IDataPackageView4_Vtbl, 0xdfe96f1f_e042_4433_a09f_26d6ffda8b85); #[repr(C)] #[doc(hidden)] pub struct IDataPackageView4_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub SetAcceptedFormatId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, formatid: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataProviderDeferral(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDataProviderDeferral { - type Vtable = IDataProviderDeferral_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDataProviderDeferral { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc2cf2373_2d26_43d9_b69d_dcb86d03f6da); -} +::windows_core::imp::com_interface!(IDataProviderDeferral, IDataProviderDeferral_Vtbl, 0xc2cf2373_2d26_43d9_b69d_dcb86d03f6da); #[repr(C)] #[doc(hidden)] pub struct IDataProviderDeferral_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Complete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataProviderRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDataProviderRequest { - type Vtable = IDataProviderRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDataProviderRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xebbc7157_d3c8_47da_acde_f82388d5f716); -} +::windows_core::imp::com_interface!(IDataProviderRequest, IDataProviderRequest_Vtbl, 0xebbc7157_d3c8_47da_acde_f82388d5f716); #[repr(C)] #[doc(hidden)] pub struct IDataProviderRequest_Vtbl { @@ -578,16 +353,7 @@ pub struct IDataProviderRequest_Vtbl { pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDataRequest { - type Vtable = IDataRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDataRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4341ae3b_fc12_4e53_8c02_ac714c415a27); -} +::windows_core::imp::com_interface!(IDataRequest, IDataRequest_Vtbl, 0x4341ae3b_fc12_4e53_8c02_ac714c415a27); #[repr(C)] #[doc(hidden)] pub struct IDataRequest_Vtbl { @@ -598,48 +364,21 @@ pub struct IDataRequest_Vtbl { pub FailWithDisplayText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataRequestDeferral(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDataRequestDeferral { - type Vtable = IDataRequestDeferral_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDataRequestDeferral { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6dc4b89f_0386_4263_87c1_ed7dce30890e); -} +::windows_core::imp::com_interface!(IDataRequestDeferral, IDataRequestDeferral_Vtbl, 0x6dc4b89f_0386_4263_87c1_ed7dce30890e); #[repr(C)] #[doc(hidden)] pub struct IDataRequestDeferral_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Complete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataRequestedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDataRequestedEventArgs { - type Vtable = IDataRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDataRequestedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcb8ba807_6ac5_43c9_8ac5_9ba232163182); -} +::windows_core::imp::com_interface!(IDataRequestedEventArgs, IDataRequestedEventArgs_Vtbl, 0xcb8ba807_6ac5_43c9_8ac5_9ba232163182); #[repr(C)] #[doc(hidden)] pub struct IDataRequestedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Request: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataTransferManager(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDataTransferManager { - type Vtable = IDataTransferManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDataTransferManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa5caee9b_8708_49d1_8d36_67d25a8da00c); -} +::windows_core::imp::com_interface!(IDataTransferManager, IDataTransferManager_Vtbl, 0xa5caee9b_8708_49d1_8d36_67d25a8da00c); #[repr(C)] #[doc(hidden)] pub struct IDataTransferManager_Vtbl { @@ -649,16 +388,7 @@ pub struct IDataTransferManager_Vtbl { pub TargetApplicationChosen: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveTargetApplicationChosen: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataTransferManager2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDataTransferManager2 { - type Vtable = IDataTransferManager2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDataTransferManager2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x30ae7d71_8ba8_4c02_8e3f_ddb23b388715); -} +::windows_core::imp::com_interface!(IDataTransferManager2, IDataTransferManager2_Vtbl, 0x30ae7d71_8ba8_4c02_8e3f_ddb23b388715); #[repr(C)] #[doc(hidden)] pub struct IDataTransferManager2_Vtbl { @@ -666,16 +396,7 @@ pub struct IDataTransferManager2_Vtbl { pub ShareProvidersRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveShareProvidersRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataTransferManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDataTransferManagerStatics { - type Vtable = IDataTransferManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDataTransferManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa9da01aa_e00e_4cfe_aa44_2dd932dca3d8); -} +::windows_core::imp::com_interface!(IDataTransferManagerStatics, IDataTransferManagerStatics_Vtbl, 0xa9da01aa_e00e_4cfe_aa44_2dd932dca3d8); #[repr(C)] #[doc(hidden)] pub struct IDataTransferManagerStatics_Vtbl { @@ -683,48 +404,21 @@ pub struct IDataTransferManagerStatics_Vtbl { pub ShowShareUI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetForCurrentView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataTransferManagerStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDataTransferManagerStatics2 { - type Vtable = IDataTransferManagerStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDataTransferManagerStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc54ec2ec_9f97_4d63_9868_395e271ad8f5); -} +::windows_core::imp::com_interface!(IDataTransferManagerStatics2, IDataTransferManagerStatics2_Vtbl, 0xc54ec2ec_9f97_4d63_9868_395e271ad8f5); #[repr(C)] #[doc(hidden)] pub struct IDataTransferManagerStatics2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub IsSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataTransferManagerStatics3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDataTransferManagerStatics3 { - type Vtable = IDataTransferManagerStatics3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDataTransferManagerStatics3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x05845473_6c82_4f5c_ac23_62e458361fac); -} +::windows_core::imp::com_interface!(IDataTransferManagerStatics3, IDataTransferManagerStatics3_Vtbl, 0x05845473_6c82_4f5c_ac23_62e458361fac); #[repr(C)] #[doc(hidden)] pub struct IDataTransferManagerStatics3_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ShowShareUIWithOptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, options: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHtmlFormatHelperStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHtmlFormatHelperStatics { - type Vtable = IHtmlFormatHelperStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHtmlFormatHelperStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe22e7749_dd70_446f_aefc_61cee59f655e); -} +::windows_core::imp::com_interface!(IHtmlFormatHelperStatics, IHtmlFormatHelperStatics_Vtbl, 0xe22e7749_dd70_446f_aefc_61cee59f655e); #[repr(C)] #[doc(hidden)] pub struct IHtmlFormatHelperStatics_Vtbl { @@ -732,64 +426,28 @@ pub struct IHtmlFormatHelperStatics_Vtbl { pub GetStaticFragment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, htmlformat: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub CreateHtmlFormat: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, htmlfragment: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOperationCompletedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOperationCompletedEventArgs { - type Vtable = IOperationCompletedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOperationCompletedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe7af329d_051d_4fab_b1a9_47fd77f70a41); -} +::windows_core::imp::com_interface!(IOperationCompletedEventArgs, IOperationCompletedEventArgs_Vtbl, 0xe7af329d_051d_4fab_b1a9_47fd77f70a41); #[repr(C)] #[doc(hidden)] pub struct IOperationCompletedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Operation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut DataPackageOperation) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOperationCompletedEventArgs2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOperationCompletedEventArgs2 { - type Vtable = IOperationCompletedEventArgs2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOperationCompletedEventArgs2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x858fa073_1e19_4105_b2f7_c8478808d562); -} +::windows_core::imp::com_interface!(IOperationCompletedEventArgs2, IOperationCompletedEventArgs2_Vtbl, 0x858fa073_1e19_4105_b2f7_c8478808d562); #[repr(C)] #[doc(hidden)] pub struct IOperationCompletedEventArgs2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub AcceptedFormatId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShareCompletedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IShareCompletedEventArgs { - type Vtable = IShareCompletedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IShareCompletedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4574c442_f913_4f60_9df7_cc4060ab1916); -} +::windows_core::imp::com_interface!(IShareCompletedEventArgs, IShareCompletedEventArgs_Vtbl, 0x4574c442_f913_4f60_9df7_cc4060ab1916); #[repr(C)] #[doc(hidden)] pub struct IShareCompletedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ShareTarget: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShareProvider(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IShareProvider { - type Vtable = IShareProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IShareProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2fabe026_443e_4cda_af25_8d81070efd80); -} +::windows_core::imp::com_interface!(IShareProvider, IShareProvider_Vtbl, 0x2fabe026_443e_4cda_af25_8d81070efd80); #[repr(C)] #[doc(hidden)] pub struct IShareProvider_Vtbl { @@ -806,16 +464,7 @@ pub struct IShareProvider_Vtbl { pub Tag: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetTag: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShareProviderFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IShareProviderFactory { - type Vtable = IShareProviderFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IShareProviderFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x172a174c_e79e_4f6d_b07d_128f469e0296); -} +::windows_core::imp::com_interface!(IShareProviderFactory, IShareProviderFactory_Vtbl, 0x172a174c_e79e_4f6d_b07d_128f469e0296); #[repr(C)] #[doc(hidden)] pub struct IShareProviderFactory_Vtbl { @@ -825,16 +474,7 @@ pub struct IShareProviderFactory_Vtbl { #[cfg(not(all(feature = "Storage_Streams", feature = "UI")))] Create: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShareProviderOperation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IShareProviderOperation { - type Vtable = IShareProviderOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IShareProviderOperation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x19cef937_d435_4179_b6af_14e0492b69f6); -} +::windows_core::imp::com_interface!(IShareProviderOperation, IShareProviderOperation_Vtbl, 0x19cef937_d435_4179_b6af_14e0492b69f6); #[repr(C)] #[doc(hidden)] pub struct IShareProviderOperation_Vtbl { @@ -843,16 +483,7 @@ pub struct IShareProviderOperation_Vtbl { pub Provider: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ReportCompleted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShareProvidersRequestedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IShareProvidersRequestedEventArgs { - type Vtable = IShareProvidersRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IShareProvidersRequestedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf888f356_a3f8_4fce_85e4_8826e63be799); -} +::windows_core::imp::com_interface!(IShareProvidersRequestedEventArgs, IShareProvidersRequestedEventArgs_Vtbl, 0xf888f356_a3f8_4fce_85e4_8826e63be799); #[repr(C)] #[doc(hidden)] pub struct IShareProvidersRequestedEventArgs_Vtbl { @@ -864,16 +495,7 @@ pub struct IShareProvidersRequestedEventArgs_Vtbl { pub Data: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShareTargetInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IShareTargetInfo { - type Vtable = IShareTargetInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IShareTargetInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x385be607_c6e8_4114_b294_28f3bb6f9904); -} +::windows_core::imp::com_interface!(IShareTargetInfo, IShareTargetInfo_Vtbl, 0x385be607_c6e8_4114_b294_28f3bb6f9904); #[repr(C)] #[doc(hidden)] pub struct IShareTargetInfo_Vtbl { @@ -881,16 +503,7 @@ pub struct IShareTargetInfo_Vtbl { pub AppUserModelId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub ShareProvider: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShareUIOptions(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IShareUIOptions { - type Vtable = IShareUIOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IShareUIOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x72fa8a80_342f_4d90_9551_2ae04e37680c); -} +::windows_core::imp::com_interface!(IShareUIOptions, IShareUIOptions_Vtbl, 0x72fa8a80_342f_4d90_9551_2ae04e37680c); #[repr(C)] #[doc(hidden)] pub struct IShareUIOptions_Vtbl { @@ -900,16 +513,7 @@ pub struct IShareUIOptions_Vtbl { pub SelectionRect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetSelectionRect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISharedStorageAccessManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISharedStorageAccessManagerStatics { - type Vtable = ISharedStorageAccessManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISharedStorageAccessManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc6132ada_34b1_4849_bd5f_d09fee3158c5); -} +::windows_core::imp::com_interface!(ISharedStorageAccessManagerStatics, ISharedStorageAccessManagerStatics_Vtbl, 0xc6132ada_34b1_4849_bd5f_d09fee3158c5); #[repr(C)] #[doc(hidden)] pub struct ISharedStorageAccessManagerStatics_Vtbl { @@ -924,16 +528,7 @@ pub struct ISharedStorageAccessManagerStatics_Vtbl { RedeemTokenForFileAsync: usize, pub RemoveFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStandardDataFormatsStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStandardDataFormatsStatics { - type Vtable = IStandardDataFormatsStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStandardDataFormatsStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7ed681a1_a880_40c9_b4ed_0bee1e15f549); -} +::windows_core::imp::com_interface!(IStandardDataFormatsStatics, IStandardDataFormatsStatics_Vtbl, 0x7ed681a1_a880_40c9_b4ed_0bee1e15f549); #[repr(C)] #[doc(hidden)] pub struct IStandardDataFormatsStatics_Vtbl { @@ -948,16 +543,7 @@ pub struct IStandardDataFormatsStatics_Vtbl { pub Bitmap: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub StorageItems: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStandardDataFormatsStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStandardDataFormatsStatics2 { - type Vtable = IStandardDataFormatsStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStandardDataFormatsStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x42a254f4_9d76_42e8_861b_47c25dd0cf71); -} +::windows_core::imp::com_interface!(IStandardDataFormatsStatics2, IStandardDataFormatsStatics2_Vtbl, 0x42a254f4_9d76_42e8_861b_47c25dd0cf71); #[repr(C)] #[doc(hidden)] pub struct IStandardDataFormatsStatics2_Vtbl { @@ -965,32 +551,14 @@ pub struct IStandardDataFormatsStatics2_Vtbl { pub WebLink: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub ApplicationLink: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStandardDataFormatsStatics3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStandardDataFormatsStatics3 { - type Vtable = IStandardDataFormatsStatics3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStandardDataFormatsStatics3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3b57b069_01d4_474c_8b5f_bc8e27f38b21); -} +::windows_core::imp::com_interface!(IStandardDataFormatsStatics3, IStandardDataFormatsStatics3_Vtbl, 0x3b57b069_01d4_474c_8b5f_bc8e27f38b21); #[repr(C)] #[doc(hidden)] pub struct IStandardDataFormatsStatics3_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub UserActivityJsonArray: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITargetApplicationChosenEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITargetApplicationChosenEventArgs { - type Vtable = ITargetApplicationChosenEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITargetApplicationChosenEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xca6fb8ac_2987_4ee3_9c54_d8afbcb86c1d); -} +::windows_core::imp::com_interface!(ITargetApplicationChosenEventArgs, ITargetApplicationChosenEventArgs_Vtbl, 0xca6fb8ac_2987_4ee3_9c54_d8afbcb86c1d); #[repr(C)] #[doc(hidden)] pub struct ITargetApplicationChosenEventArgs_Vtbl { @@ -1134,6 +702,7 @@ impl ::windows_core::RuntimeName for Clipboard { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ClipboardContentOptions(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ClipboardContentOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ClipboardContentOptions { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1188,38 +757,34 @@ impl ::windows_core::RuntimeType for ClipboardContentOptions { } unsafe impl ::windows_core::Interface for ClipboardContentOptions { type Vtable = IClipboardContentOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ClipboardContentOptions { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ClipboardContentOptions { const NAME: &'static str = "Windows.ApplicationModel.DataTransfer.ClipboardContentOptions"; } -::windows_core::imp::interface_hierarchy!(ClipboardContentOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ClipboardContentOptions {} unsafe impl ::core::marker::Sync for ClipboardContentOptions {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ClipboardHistoryChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ClipboardHistoryChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ClipboardHistoryChangedEventArgs {} impl ::windows_core::RuntimeType for ClipboardHistoryChangedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_class::(); } unsafe impl ::windows_core::Interface for ClipboardHistoryChangedEventArgs { type Vtable = IClipboardHistoryChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ClipboardHistoryChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ClipboardHistoryChangedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.DataTransfer.ClipboardHistoryChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(ClipboardHistoryChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ClipboardHistoryChangedEventArgs {} unsafe impl ::core::marker::Sync for ClipboardHistoryChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ClipboardHistoryItem(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ClipboardHistoryItem, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ClipboardHistoryItem { pub fn Id(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1248,19 +813,17 @@ impl ::windows_core::RuntimeType for ClipboardHistoryItem { } unsafe impl ::windows_core::Interface for ClipboardHistoryItem { type Vtable = IClipboardHistoryItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ClipboardHistoryItem { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ClipboardHistoryItem { const NAME: &'static str = "Windows.ApplicationModel.DataTransfer.ClipboardHistoryItem"; } -::windows_core::imp::interface_hierarchy!(ClipboardHistoryItem, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ClipboardHistoryItem {} unsafe impl ::core::marker::Sync for ClipboardHistoryItem {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ClipboardHistoryItemsResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ClipboardHistoryItemsResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ClipboardHistoryItemsResult { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -1284,19 +847,17 @@ impl ::windows_core::RuntimeType for ClipboardHistoryItemsResult { } unsafe impl ::windows_core::Interface for ClipboardHistoryItemsResult { type Vtable = IClipboardHistoryItemsResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ClipboardHistoryItemsResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ClipboardHistoryItemsResult { const NAME: &'static str = "Windows.ApplicationModel.DataTransfer.ClipboardHistoryItemsResult"; } -::windows_core::imp::interface_hierarchy!(ClipboardHistoryItemsResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ClipboardHistoryItemsResult {} unsafe impl ::core::marker::Sync for ClipboardHistoryItemsResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DataPackage(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DataPackage, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DataPackage { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1415,60 +976,60 @@ impl DataPackage { #[cfg(all(feature = "Foundation_Collections", feature = "Storage"))] pub fn SetStorageItemsReadOnly(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetStorageItemsReadOnly)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetStorageItemsReadOnly)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Storage\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Storage"))] pub fn SetStorageItems(&self, value: P0, readonly: bool) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetStorageItems)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi(), readonly).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetStorageItems)(::windows_core::Interface::as_raw(this), value.into_param().abi(), readonly).ok() } } pub fn SetApplicationLink(&self, value: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn SetWebLink(&self, value: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn ShareCompleted(&self, handler: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveShareCompleted(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveShareCompleted)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn ShareCanceled(&self, handler: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveShareCanceled(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveShareCanceled)(::windows_core::Interface::as_raw(this), token).ok() } } } @@ -1477,19 +1038,19 @@ impl ::windows_core::RuntimeType for DataPackage { } unsafe impl ::windows_core::Interface for DataPackage { type Vtable = IDataPackage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DataPackage { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DataPackage { const NAME: &'static str = "Windows.ApplicationModel.DataTransfer.DataPackage"; } -::windows_core::imp::interface_hierarchy!(DataPackage, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DataPackage {} unsafe impl ::core::marker::Sync for DataPackage {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DataPackagePropertySet(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DataPackagePropertySet, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(DataPackagePropertySet, super::super::Foundation::Collections::IIterable::>, super::super::Foundation::Collections::IMap::<::windows_core::HSTRING, ::windows_core::IInspectable>); impl DataPackagePropertySet { pub fn Title(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1526,10 +1087,10 @@ impl DataPackagePropertySet { #[cfg(feature = "Storage_Streams")] pub fn SetThumbnail(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetThumbnail)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetThumbnail)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -1566,7 +1127,7 @@ impl DataPackagePropertySet { unsafe { (::windows_core::Interface::vtable(this).SetApplicationListingUri)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn ContentSourceWebLink(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ContentSourceWebLink)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1576,11 +1137,11 @@ impl DataPackagePropertySet { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn ContentSourceApplicationLink(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ContentSourceApplicationLink)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1590,24 +1151,24 @@ impl DataPackagePropertySet { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn PackageFamilyName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PackageFamilyName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetPackageFamilyName(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetPackageFamilyName)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn Square30x30Logo(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Square30x30Logo)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1617,15 +1178,15 @@ impl DataPackagePropertySet { #[cfg(feature = "Storage_Streams")] pub fn SetSquare30x30Logo(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetSquare30x30Logo)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"UI\"`"] #[cfg(feature = "UI")] pub fn LogoBackgroundColor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).LogoBackgroundColor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1634,35 +1195,35 @@ impl DataPackagePropertySet { #[doc = "Required features: `\"UI\"`"] #[cfg(feature = "UI")] pub fn SetLogoBackgroundColor(&self, value: super::super::UI::Color) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetLogoBackgroundColor)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn EnterpriseId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).EnterpriseId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetEnterpriseId(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetEnterpriseId)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ContentSourceUserActivityJson(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ContentSourceUserActivityJson)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetContentSourceUserActivityJson(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetContentSourceUserActivityJson)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> ::windows_core::Result>> { - let this = &::windows_core::ComInterface::cast::>>(self)?; + let this = &::windows_core::Interface::cast::>>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1671,7 +1232,7 @@ impl DataPackagePropertySet { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Lookup(&self, key: &::windows_core::HSTRING) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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), ::core::mem::transmute_copy(key), &mut result__).from_abi(result__) @@ -1680,7 +1241,7 @@ impl DataPackagePropertySet { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Size(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Size)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1689,7 +1250,7 @@ impl DataPackagePropertySet { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn HasKey(&self, key: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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), ::core::mem::transmute_copy(key), &mut result__).from_abi(result__) @@ -1698,7 +1259,7 @@ impl DataPackagePropertySet { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetView(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetView)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1710,7 +1271,7 @@ impl DataPackagePropertySet { where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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__).from_abi(result__) @@ -1719,13 +1280,13 @@ impl DataPackagePropertySet { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Remove(&self, key: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).Remove)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Clear(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).Clear)(::windows_core::Interface::as_raw(this)).ok() } } } @@ -1734,9 +1295,7 @@ impl ::windows_core::RuntimeType for DataPackagePropertySet { } unsafe impl ::windows_core::Interface for DataPackagePropertySet { type Vtable = IDataPackagePropertySet_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DataPackagePropertySet { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DataPackagePropertySet { const NAME: &'static str = "Windows.ApplicationModel.DataTransfer.DataPackagePropertySet"; @@ -1757,16 +1316,14 @@ impl ::core::iter::IntoIterator for &DataPackagePropertySet { self.First().unwrap() } } -::windows_core::imp::interface_hierarchy!(DataPackagePropertySet, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto>> for DataPackagePropertySet {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for DataPackagePropertySet {} unsafe impl ::core::marker::Send for DataPackagePropertySet {} unsafe impl ::core::marker::Sync for DataPackagePropertySet {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DataPackagePropertySetView(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DataPackagePropertySetView, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(DataPackagePropertySetView, super::super::Foundation::Collections::IIterable::>, super::super::Foundation::Collections::IMapView::<::windows_core::HSTRING, ::windows_core::IInspectable>); impl DataPackagePropertySetView { pub fn Title(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1815,21 +1372,21 @@ impl DataPackagePropertySetView { } } pub fn PackageFamilyName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PackageFamilyName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ContentSourceWebLink(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ContentSourceWebLink)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ContentSourceApplicationLink(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ContentSourceApplicationLink)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1838,7 +1395,7 @@ impl DataPackagePropertySetView { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn Square30x30Logo(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Square30x30Logo)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1847,28 +1404,28 @@ impl DataPackagePropertySetView { #[doc = "Required features: `\"UI\"`"] #[cfg(feature = "UI")] pub fn LogoBackgroundColor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).LogoBackgroundColor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn EnterpriseId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).EnterpriseId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ContentSourceUserActivityJson(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ContentSourceUserActivityJson)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsFromRoamingClipboard(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsFromRoamingClipboard)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1877,7 +1434,7 @@ impl DataPackagePropertySetView { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> ::windows_core::Result>> { - let this = &::windows_core::ComInterface::cast::>>(self)?; + let this = &::windows_core::Interface::cast::>>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1886,7 +1443,7 @@ impl DataPackagePropertySetView { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Lookup(&self, key: &::windows_core::HSTRING) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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), ::core::mem::transmute_copy(key), &mut result__).from_abi(result__) @@ -1895,7 +1452,7 @@ impl DataPackagePropertySetView { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Size(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Size)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1904,7 +1461,7 @@ impl DataPackagePropertySetView { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn HasKey(&self, key: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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), ::core::mem::transmute_copy(key), &mut result__).from_abi(result__) @@ -1913,7 +1470,7 @@ impl DataPackagePropertySetView { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Split(&self, first: &mut ::core::option::Option>, second: &mut ::core::option::Option>) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).Split)(::windows_core::Interface::as_raw(this), first as *mut _ as _, second as *mut _ as _).ok() } } } @@ -1922,9 +1479,7 @@ impl ::windows_core::RuntimeType for DataPackagePropertySetView { } unsafe impl ::windows_core::Interface for DataPackagePropertySetView { type Vtable = IDataPackagePropertySetView_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DataPackagePropertySetView { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DataPackagePropertySetView { const NAME: &'static str = "Windows.ApplicationModel.DataTransfer.DataPackagePropertySetView"; @@ -1945,16 +1500,12 @@ impl ::core::iter::IntoIterator for &DataPackagePropertySetView { self.First().unwrap() } } -::windows_core::imp::interface_hierarchy!(DataPackagePropertySetView, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto>> for DataPackagePropertySetView {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for DataPackagePropertySetView {} unsafe impl ::core::marker::Send for DataPackagePropertySetView {} unsafe impl ::core::marker::Sync for DataPackagePropertySetView {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DataPackageView(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DataPackageView, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DataPackageView { pub fn Properties(&self) -> ::windows_core::Result { let this = self; @@ -2062,14 +1613,14 @@ impl DataPackageView { } } pub fn GetApplicationLinkAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetApplicationLinkAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetWebLinkAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetWebLinkAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2078,7 +1629,7 @@ impl DataPackageView { #[doc = "Required features: `\"Security_EnterpriseData\"`"] #[cfg(feature = "Security_EnterpriseData")] pub fn RequestAccessAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RequestAccessAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2087,7 +1638,7 @@ impl DataPackageView { #[doc = "Required features: `\"Security_EnterpriseData\"`"] #[cfg(feature = "Security_EnterpriseData")] pub fn RequestAccessWithEnterpriseIdAsync(&self, enterpriseid: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RequestAccessWithEnterpriseIdAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(enterpriseid), &mut result__).from_abi(result__) @@ -2096,14 +1647,14 @@ impl DataPackageView { #[doc = "Required features: `\"Security_EnterpriseData\"`"] #[cfg(feature = "Security_EnterpriseData")] pub fn UnlockAndAssumeEnterpriseIdentity(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).UnlockAndAssumeEnterpriseIdentity)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetAcceptedFormatId(&self, formatid: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetAcceptedFormatId)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(formatid)).ok() } } } @@ -2112,19 +1663,17 @@ impl ::windows_core::RuntimeType for DataPackageView { } unsafe impl ::windows_core::Interface for DataPackageView { type Vtable = IDataPackageView_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DataPackageView { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DataPackageView { const NAME: &'static str = "Windows.ApplicationModel.DataTransfer.DataPackageView"; } -::windows_core::imp::interface_hierarchy!(DataPackageView, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DataPackageView {} unsafe impl ::core::marker::Sync for DataPackageView {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DataProviderDeferral(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DataProviderDeferral, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DataProviderDeferral { pub fn Complete(&self) -> ::windows_core::Result<()> { let this = self; @@ -2136,19 +1685,17 @@ impl ::windows_core::RuntimeType for DataProviderDeferral { } unsafe impl ::windows_core::Interface for DataProviderDeferral { type Vtable = IDataProviderDeferral_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DataProviderDeferral { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DataProviderDeferral { const NAME: &'static str = "Windows.ApplicationModel.DataTransfer.DataProviderDeferral"; } -::windows_core::imp::interface_hierarchy!(DataProviderDeferral, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DataProviderDeferral {} unsafe impl ::core::marker::Sync for DataProviderDeferral {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DataProviderRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DataProviderRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DataProviderRequest { pub fn FormatId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -2184,19 +1731,17 @@ impl ::windows_core::RuntimeType for DataProviderRequest { } unsafe impl ::windows_core::Interface for DataProviderRequest { type Vtable = IDataProviderRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DataProviderRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DataProviderRequest { const NAME: &'static str = "Windows.ApplicationModel.DataTransfer.DataProviderRequest"; } -::windows_core::imp::interface_hierarchy!(DataProviderRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DataProviderRequest {} unsafe impl ::core::marker::Sync for DataProviderRequest {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DataRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DataRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DataRequest { pub fn Data(&self) -> ::windows_core::Result { let this = self; @@ -2236,19 +1781,17 @@ impl ::windows_core::RuntimeType for DataRequest { } unsafe impl ::windows_core::Interface for DataRequest { type Vtable = IDataRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DataRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DataRequest { const NAME: &'static str = "Windows.ApplicationModel.DataTransfer.DataRequest"; } -::windows_core::imp::interface_hierarchy!(DataRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DataRequest {} unsafe impl ::core::marker::Sync for DataRequest {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DataRequestDeferral(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DataRequestDeferral, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DataRequestDeferral { pub fn Complete(&self) -> ::windows_core::Result<()> { let this = self; @@ -2260,19 +1803,17 @@ impl ::windows_core::RuntimeType for DataRequestDeferral { } unsafe impl ::windows_core::Interface for DataRequestDeferral { type Vtable = IDataRequestDeferral_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DataRequestDeferral { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DataRequestDeferral { const NAME: &'static str = "Windows.ApplicationModel.DataTransfer.DataRequestDeferral"; } -::windows_core::imp::interface_hierarchy!(DataRequestDeferral, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DataRequestDeferral {} unsafe impl ::core::marker::Sync for DataRequestDeferral {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DataRequestedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DataRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DataRequestedEventArgs { pub fn Request(&self) -> ::windows_core::Result { let this = self; @@ -2287,19 +1828,17 @@ impl ::windows_core::RuntimeType for DataRequestedEventArgs { } unsafe impl ::windows_core::Interface for DataRequestedEventArgs { type Vtable = IDataRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DataRequestedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DataRequestedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.DataTransfer.DataRequestedEventArgs"; } -::windows_core::imp::interface_hierarchy!(DataRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DataRequestedEventArgs {} unsafe impl ::core::marker::Sync for DataRequestedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DataTransferManager(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DataTransferManager, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DataTransferManager { pub fn DataRequested(&self, handler: P0) -> ::windows_core::Result where @@ -2333,14 +1872,14 @@ impl DataTransferManager { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveShareProvidersRequested(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveShareProvidersRequested)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn ShowShareUI() -> ::windows_core::Result<()> { @@ -2385,14 +1924,11 @@ impl ::windows_core::RuntimeType for DataTransferManager { } unsafe impl ::windows_core::Interface for DataTransferManager { type Vtable = IDataTransferManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DataTransferManager { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DataTransferManager { const NAME: &'static str = "Windows.ApplicationModel.DataTransfer.DataTransferManager"; } -::windows_core::imp::interface_hierarchy!(DataTransferManager, ::windows_core::IUnknown, ::windows_core::IInspectable); pub struct HtmlFormatHelper; impl HtmlFormatHelper { pub fn GetStaticFragment(htmlformat: &::windows_core::HSTRING) -> ::windows_core::Result<::windows_core::HSTRING> { @@ -2419,6 +1955,7 @@ impl ::windows_core::RuntimeName for HtmlFormatHelper { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct OperationCompletedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(OperationCompletedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl OperationCompletedEventArgs { pub fn Operation(&self) -> ::windows_core::Result { let this = self; @@ -2428,7 +1965,7 @@ impl OperationCompletedEventArgs { } } pub fn AcceptedFormatId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AcceptedFormatId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2440,19 +1977,17 @@ impl ::windows_core::RuntimeType for OperationCompletedEventArgs { } unsafe impl ::windows_core::Interface for OperationCompletedEventArgs { type Vtable = IOperationCompletedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for OperationCompletedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for OperationCompletedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.DataTransfer.OperationCompletedEventArgs"; } -::windows_core::imp::interface_hierarchy!(OperationCompletedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for OperationCompletedEventArgs {} unsafe impl ::core::marker::Sync for OperationCompletedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ShareCompletedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ShareCompletedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ShareCompletedEventArgs { pub fn ShareTarget(&self) -> ::windows_core::Result { let this = self; @@ -2467,19 +2002,17 @@ impl ::windows_core::RuntimeType for ShareCompletedEventArgs { } unsafe impl ::windows_core::Interface for ShareCompletedEventArgs { type Vtable = IShareCompletedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ShareCompletedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ShareCompletedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.DataTransfer.ShareCompletedEventArgs"; } -::windows_core::imp::interface_hierarchy!(ShareCompletedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ShareCompletedEventArgs {} unsafe impl ::core::marker::Sync for ShareCompletedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ShareProvider(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ShareProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ShareProvider { pub fn Title(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -2543,19 +2076,17 @@ impl ::windows_core::RuntimeType for ShareProvider { } unsafe impl ::windows_core::Interface for ShareProvider { type Vtable = IShareProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ShareProvider { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ShareProvider { const NAME: &'static str = "Windows.ApplicationModel.DataTransfer.ShareProvider"; } -::windows_core::imp::interface_hierarchy!(ShareProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ShareProvider {} unsafe impl ::core::marker::Sync for ShareProvider {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ShareProviderOperation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ShareProviderOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ShareProviderOperation { pub fn Data(&self) -> ::windows_core::Result { let this = self; @@ -2581,19 +2112,17 @@ impl ::windows_core::RuntimeType for ShareProviderOperation { } unsafe impl ::windows_core::Interface for ShareProviderOperation { type Vtable = IShareProviderOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ShareProviderOperation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ShareProviderOperation { const NAME: &'static str = "Windows.ApplicationModel.DataTransfer.ShareProviderOperation"; } -::windows_core::imp::interface_hierarchy!(ShareProviderOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ShareProviderOperation {} unsafe impl ::core::marker::Sync for ShareProviderOperation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ShareProvidersRequestedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ShareProvidersRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ShareProvidersRequestedEventArgs { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -2624,19 +2153,17 @@ impl ::windows_core::RuntimeType for ShareProvidersRequestedEventArgs { } unsafe impl ::windows_core::Interface for ShareProvidersRequestedEventArgs { type Vtable = IShareProvidersRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ShareProvidersRequestedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ShareProvidersRequestedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.DataTransfer.ShareProvidersRequestedEventArgs"; } -::windows_core::imp::interface_hierarchy!(ShareProvidersRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ShareProvidersRequestedEventArgs {} unsafe impl ::core::marker::Sync for ShareProvidersRequestedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ShareTargetInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ShareTargetInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ShareTargetInfo { pub fn AppUserModelId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -2658,19 +2185,17 @@ impl ::windows_core::RuntimeType for ShareTargetInfo { } unsafe impl ::windows_core::Interface for ShareTargetInfo { type Vtable = IShareTargetInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ShareTargetInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ShareTargetInfo { const NAME: &'static str = "Windows.ApplicationModel.DataTransfer.ShareTargetInfo"; } -::windows_core::imp::interface_hierarchy!(ShareTargetInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ShareTargetInfo {} unsafe impl ::core::marker::Sync for ShareTargetInfo {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ShareUIOptions(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ShareUIOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ShareUIOptions { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2699,10 +2224,10 @@ impl ShareUIOptions { } pub fn SetSelectionRect(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetSelectionRect)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetSelectionRect)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } } impl ::windows_core::RuntimeType for ShareUIOptions { @@ -2710,14 +2235,11 @@ impl ::windows_core::RuntimeType for ShareUIOptions { } unsafe impl ::windows_core::Interface for ShareUIOptions { type Vtable = IShareUIOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ShareUIOptions { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ShareUIOptions { const NAME: &'static str = "Windows.ApplicationModel.DataTransfer.ShareUIOptions"; } -::windows_core::imp::interface_hierarchy!(ShareUIOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ShareUIOptions {} unsafe impl ::core::marker::Sync for ShareUIOptions {} pub struct SharedStorageAccessManager; @@ -2726,11 +2248,11 @@ impl SharedStorageAccessManager { #[cfg(feature = "Storage")] pub fn AddFile(file: P0) -> ::windows_core::Result<::windows_core::HSTRING> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::ISharedStorageAccessManagerStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).AddFile)(::windows_core::Interface::as_raw(this), file.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).AddFile)(::windows_core::Interface::as_raw(this), file.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Storage\"`"] @@ -2833,6 +2355,7 @@ impl ::windows_core::RuntimeName for StandardDataFormats { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct TargetApplicationChosenEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(TargetApplicationChosenEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl TargetApplicationChosenEventArgs { pub fn ApplicationName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -2847,14 +2370,11 @@ impl ::windows_core::RuntimeType for TargetApplicationChosenEventArgs { } unsafe impl ::windows_core::Interface for TargetApplicationChosenEventArgs { type Vtable = ITargetApplicationChosenEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TargetApplicationChosenEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for TargetApplicationChosenEventArgs { const NAME: &'static str = "Windows.ApplicationModel.DataTransfer.TargetApplicationChosenEventArgs"; } -::windows_core::imp::interface_hierarchy!(TargetApplicationChosenEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for TargetApplicationChosenEventArgs {} unsafe impl ::core::marker::Sync for TargetApplicationChosenEventArgs {} #[repr(transparent)] @@ -2967,9 +2487,7 @@ impl ::core::fmt::Debug for ShareUITheme { impl ::windows_core::RuntimeType for ShareUITheme { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.DataTransfer.ShareUITheme;i4)"); } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct DataProviderHandler(pub ::windows_core::IUnknown); +::windows_core::imp::com_interface!(DataProviderHandler, DataProviderHandler_Vtbl, 0xe7ecd720_f2f4_4a2d_920e_170a2f482a27); impl DataProviderHandler { pub fn new) -> ::windows_core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = DataProviderHandlerBox:: { vtable: &DataProviderHandlerBox::::VTABLE, count: ::windows_core::imp::RefCount::new(1), invoke }; @@ -2999,7 +2517,7 @@ impl) -> ::windows_core::R if iid.is_null() || interface.is_null() { return ::windows_core::HRESULT(-2147467261); } - *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; + *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::Interface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::Interface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; if (*interface).is_null() { ::windows_core::HRESULT(-2147467262) } else { @@ -3024,12 +2542,6 @@ impl) -> ::windows_core::R ((*this).invoke)(::windows_core::from_raw_borrowed(&request)).into() } } -unsafe impl ::windows_core::Interface for DataProviderHandler { - type Vtable = DataProviderHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DataProviderHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe7ecd720_f2f4_4a2d_920e_170a2f482a27); -} impl ::windows_core::RuntimeType for DataProviderHandler { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } @@ -3039,9 +2551,7 @@ pub struct DataProviderHandler_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Invoke: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, request: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ShareProviderHandler(pub ::windows_core::IUnknown); +::windows_core::imp::com_interface!(ShareProviderHandler, ShareProviderHandler_Vtbl, 0xe7f9d9ba_e1ba_4e4d_bd65_d43845d3212f); impl ShareProviderHandler { pub fn new) -> ::windows_core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = ShareProviderHandlerBox:: { vtable: &ShareProviderHandlerBox::::VTABLE, count: ::windows_core::imp::RefCount::new(1), invoke }; @@ -3071,7 +2581,7 @@ impl) -> ::windows_core if iid.is_null() || interface.is_null() { return ::windows_core::HRESULT(-2147467261); } - *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; + *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::Interface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::Interface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; if (*interface).is_null() { ::windows_core::HRESULT(-2147467262) } else { @@ -3096,12 +2606,6 @@ impl) -> ::windows_core ((*this).invoke)(::windows_core::from_raw_borrowed(&operation)).into() } } -unsafe impl ::windows_core::Interface for ShareProviderHandler { - type Vtable = ShareProviderHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ShareProviderHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe7f9d9ba_e1ba_4e4d_bd65_d43845d3212f); -} impl ::windows_core::RuntimeType for ShareProviderHandler { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } 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 180267b07f..11f15411ca 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailDataProviderConnection(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailDataProviderConnection { - type Vtable = IEmailDataProviderConnection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailDataProviderConnection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3b9c9dc7_37b2_4bf0_ae30_7b644a1c96e1); -} +::windows_core::imp::com_interface!(IEmailDataProviderConnection, IEmailDataProviderConnection_Vtbl, 0x3b9c9dc7_37b2_4bf0_ae30_7b644a1c96e1); #[repr(C)] #[doc(hidden)] pub struct IEmailDataProviderConnection_Vtbl { @@ -44,32 +35,14 @@ pub struct IEmailDataProviderConnection_Vtbl { pub RemoveServerSearchReadBatchRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub Start: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailDataProviderTriggerDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailDataProviderTriggerDetails { - type Vtable = IEmailDataProviderTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailDataProviderTriggerDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8f3e4e50_341e_45f3_bba0_84a005e1319a); -} +::windows_core::imp::com_interface!(IEmailDataProviderTriggerDetails, IEmailDataProviderTriggerDetails_Vtbl, 0x8f3e4e50_341e_45f3_bba0_84a005e1319a); #[repr(C)] #[doc(hidden)] pub struct IEmailDataProviderTriggerDetails_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Connection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailMailboxCreateFolderRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailMailboxCreateFolderRequest { - type Vtable = IEmailMailboxCreateFolderRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailMailboxCreateFolderRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x184d3775_c921_4c39_a309_e16c9f22b04b); -} +::windows_core::imp::com_interface!(IEmailMailboxCreateFolderRequest, IEmailMailboxCreateFolderRequest_Vtbl, 0x184d3775_c921_4c39_a309_e16c9f22b04b); #[repr(C)] #[doc(hidden)] pub struct IEmailMailboxCreateFolderRequest_Vtbl { @@ -80,16 +53,7 @@ pub struct IEmailMailboxCreateFolderRequest_Vtbl { pub ReportCompletedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, folder: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ReportFailedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, status: super::EmailMailboxCreateFolderStatus, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailMailboxCreateFolderRequestEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailMailboxCreateFolderRequestEventArgs { - type Vtable = IEmailMailboxCreateFolderRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailMailboxCreateFolderRequestEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x03e4c02c_241c_4ea9_a68f_ff20bc5afc85); -} +::windows_core::imp::com_interface!(IEmailMailboxCreateFolderRequestEventArgs, IEmailMailboxCreateFolderRequestEventArgs_Vtbl, 0x03e4c02c_241c_4ea9_a68f_ff20bc5afc85); #[repr(C)] #[doc(hidden)] pub struct IEmailMailboxCreateFolderRequestEventArgs_Vtbl { @@ -97,16 +61,7 @@ pub struct IEmailMailboxCreateFolderRequestEventArgs_Vtbl { pub Request: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailMailboxDeleteFolderRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailMailboxDeleteFolderRequest { - type Vtable = IEmailMailboxDeleteFolderRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailMailboxDeleteFolderRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9469e88a_a931_4779_923d_09a3ea292e29); -} +::windows_core::imp::com_interface!(IEmailMailboxDeleteFolderRequest, IEmailMailboxDeleteFolderRequest_Vtbl, 0x9469e88a_a931_4779_923d_09a3ea292e29); #[repr(C)] #[doc(hidden)] pub struct IEmailMailboxDeleteFolderRequest_Vtbl { @@ -116,16 +71,7 @@ pub struct IEmailMailboxDeleteFolderRequest_Vtbl { pub ReportCompletedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ReportFailedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, status: super::EmailMailboxDeleteFolderStatus, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailMailboxDeleteFolderRequestEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailMailboxDeleteFolderRequestEventArgs { - type Vtable = IEmailMailboxDeleteFolderRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailMailboxDeleteFolderRequestEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb4d32d06_2332_4678_8378_28b579336846); -} +::windows_core::imp::com_interface!(IEmailMailboxDeleteFolderRequestEventArgs, IEmailMailboxDeleteFolderRequestEventArgs_Vtbl, 0xb4d32d06_2332_4678_8378_28b579336846); #[repr(C)] #[doc(hidden)] pub struct IEmailMailboxDeleteFolderRequestEventArgs_Vtbl { @@ -133,16 +79,7 @@ pub struct IEmailMailboxDeleteFolderRequestEventArgs_Vtbl { pub Request: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailMailboxDownloadAttachmentRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailMailboxDownloadAttachmentRequest { - type Vtable = IEmailMailboxDownloadAttachmentRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailMailboxDownloadAttachmentRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0b1dbbb4_750c_48e1_bce4_8d589684ffbc); -} +::windows_core::imp::com_interface!(IEmailMailboxDownloadAttachmentRequest, IEmailMailboxDownloadAttachmentRequest_Vtbl, 0x0b1dbbb4_750c_48e1_bce4_8d589684ffbc); #[repr(C)] #[doc(hidden)] pub struct IEmailMailboxDownloadAttachmentRequest_Vtbl { @@ -153,16 +90,7 @@ pub struct IEmailMailboxDownloadAttachmentRequest_Vtbl { pub ReportCompletedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ReportFailedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailMailboxDownloadAttachmentRequestEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailMailboxDownloadAttachmentRequestEventArgs { - type Vtable = IEmailMailboxDownloadAttachmentRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailMailboxDownloadAttachmentRequestEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xccddc46d_ffa8_4877_9f9d_fed7bcaf4104); -} +::windows_core::imp::com_interface!(IEmailMailboxDownloadAttachmentRequestEventArgs, IEmailMailboxDownloadAttachmentRequestEventArgs_Vtbl, 0xccddc46d_ffa8_4877_9f9d_fed7bcaf4104); #[repr(C)] #[doc(hidden)] pub struct IEmailMailboxDownloadAttachmentRequestEventArgs_Vtbl { @@ -170,16 +98,7 @@ pub struct IEmailMailboxDownloadAttachmentRequestEventArgs_Vtbl { pub Request: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailMailboxDownloadMessageRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailMailboxDownloadMessageRequest { - type Vtable = IEmailMailboxDownloadMessageRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailMailboxDownloadMessageRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x497b4187_5b4d_4b23_816c_f3842beb753e); -} +::windows_core::imp::com_interface!(IEmailMailboxDownloadMessageRequest, IEmailMailboxDownloadMessageRequest_Vtbl, 0x497b4187_5b4d_4b23_816c_f3842beb753e); #[repr(C)] #[doc(hidden)] pub struct IEmailMailboxDownloadMessageRequest_Vtbl { @@ -189,16 +108,7 @@ pub struct IEmailMailboxDownloadMessageRequest_Vtbl { pub ReportCompletedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ReportFailedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailMailboxDownloadMessageRequestEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailMailboxDownloadMessageRequestEventArgs { - type Vtable = IEmailMailboxDownloadMessageRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailMailboxDownloadMessageRequestEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x470409ad_d0a0_4a5b_bb2a_37621039c53e); -} +::windows_core::imp::com_interface!(IEmailMailboxDownloadMessageRequestEventArgs, IEmailMailboxDownloadMessageRequestEventArgs_Vtbl, 0x470409ad_d0a0_4a5b_bb2a_37621039c53e); #[repr(C)] #[doc(hidden)] pub struct IEmailMailboxDownloadMessageRequestEventArgs_Vtbl { @@ -206,16 +116,7 @@ pub struct IEmailMailboxDownloadMessageRequestEventArgs_Vtbl { pub Request: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailMailboxEmptyFolderRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailMailboxEmptyFolderRequest { - type Vtable = IEmailMailboxEmptyFolderRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailMailboxEmptyFolderRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfe4b03ab_f86d_46d9_b4ce_bc8a6d9e9268); -} +::windows_core::imp::com_interface!(IEmailMailboxEmptyFolderRequest, IEmailMailboxEmptyFolderRequest_Vtbl, 0xfe4b03ab_f86d_46d9_b4ce_bc8a6d9e9268); #[repr(C)] #[doc(hidden)] pub struct IEmailMailboxEmptyFolderRequest_Vtbl { @@ -225,16 +126,7 @@ pub struct IEmailMailboxEmptyFolderRequest_Vtbl { pub ReportCompletedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ReportFailedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, status: super::EmailMailboxEmptyFolderStatus, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailMailboxEmptyFolderRequestEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailMailboxEmptyFolderRequestEventArgs { - type Vtable = IEmailMailboxEmptyFolderRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailMailboxEmptyFolderRequestEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7183f484_985a_4ac0_b33f_ee0e2627a3c0); -} +::windows_core::imp::com_interface!(IEmailMailboxEmptyFolderRequestEventArgs, IEmailMailboxEmptyFolderRequestEventArgs_Vtbl, 0x7183f484_985a_4ac0_b33f_ee0e2627a3c0); #[repr(C)] #[doc(hidden)] pub struct IEmailMailboxEmptyFolderRequestEventArgs_Vtbl { @@ -242,16 +134,7 @@ pub struct IEmailMailboxEmptyFolderRequestEventArgs_Vtbl { pub Request: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailMailboxForwardMeetingRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailMailboxForwardMeetingRequest { - type Vtable = IEmailMailboxForwardMeetingRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailMailboxForwardMeetingRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x616d6af1_70d4_4832_b869_b80542ae9be8); -} +::windows_core::imp::com_interface!(IEmailMailboxForwardMeetingRequest, IEmailMailboxForwardMeetingRequest_Vtbl, 0x616d6af1_70d4_4832_b869_b80542ae9be8); #[repr(C)] #[doc(hidden)] pub struct IEmailMailboxForwardMeetingRequest_Vtbl { @@ -269,16 +152,7 @@ pub struct IEmailMailboxForwardMeetingRequest_Vtbl { pub ReportCompletedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ReportFailedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailMailboxForwardMeetingRequestEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailMailboxForwardMeetingRequestEventArgs { - type Vtable = IEmailMailboxForwardMeetingRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailMailboxForwardMeetingRequestEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2bd8f33a_2974_4759_a5a5_58f44d3c0275); -} +::windows_core::imp::com_interface!(IEmailMailboxForwardMeetingRequestEventArgs, IEmailMailboxForwardMeetingRequestEventArgs_Vtbl, 0x2bd8f33a_2974_4759_a5a5_58f44d3c0275); #[repr(C)] #[doc(hidden)] pub struct IEmailMailboxForwardMeetingRequestEventArgs_Vtbl { @@ -286,16 +160,7 @@ pub struct IEmailMailboxForwardMeetingRequestEventArgs_Vtbl { pub Request: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailMailboxGetAutoReplySettingsRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailMailboxGetAutoReplySettingsRequest { - type Vtable = IEmailMailboxGetAutoReplySettingsRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailMailboxGetAutoReplySettingsRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9b380789_1e88_4e01_84cc_1386ad9a2c2f); -} +::windows_core::imp::com_interface!(IEmailMailboxGetAutoReplySettingsRequest, IEmailMailboxGetAutoReplySettingsRequest_Vtbl, 0x9b380789_1e88_4e01_84cc_1386ad9a2c2f); #[repr(C)] #[doc(hidden)] pub struct IEmailMailboxGetAutoReplySettingsRequest_Vtbl { @@ -305,16 +170,7 @@ pub struct IEmailMailboxGetAutoReplySettingsRequest_Vtbl { pub ReportCompletedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, autoreplysettings: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ReportFailedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailMailboxGetAutoReplySettingsRequestEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailMailboxGetAutoReplySettingsRequestEventArgs { - type Vtable = IEmailMailboxGetAutoReplySettingsRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailMailboxGetAutoReplySettingsRequestEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd79f55c2_fd45_4004_8a91_9bacf38b7022); -} +::windows_core::imp::com_interface!(IEmailMailboxGetAutoReplySettingsRequestEventArgs, IEmailMailboxGetAutoReplySettingsRequestEventArgs_Vtbl, 0xd79f55c2_fd45_4004_8a91_9bacf38b7022); #[repr(C)] #[doc(hidden)] pub struct IEmailMailboxGetAutoReplySettingsRequestEventArgs_Vtbl { @@ -322,16 +178,7 @@ pub struct IEmailMailboxGetAutoReplySettingsRequestEventArgs_Vtbl { pub Request: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailMailboxMoveFolderRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailMailboxMoveFolderRequest { - type Vtable = IEmailMailboxMoveFolderRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailMailboxMoveFolderRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x10ba2856_4a95_4068_91cc_67cc7acf454f); -} +::windows_core::imp::com_interface!(IEmailMailboxMoveFolderRequest, IEmailMailboxMoveFolderRequest_Vtbl, 0x10ba2856_4a95_4068_91cc_67cc7acf454f); #[repr(C)] #[doc(hidden)] pub struct IEmailMailboxMoveFolderRequest_Vtbl { @@ -343,16 +190,7 @@ pub struct IEmailMailboxMoveFolderRequest_Vtbl { pub ReportCompletedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ReportFailedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailMailboxMoveFolderRequestEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailMailboxMoveFolderRequestEventArgs { - type Vtable = IEmailMailboxMoveFolderRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailMailboxMoveFolderRequestEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x38623020_14ba_4c88_8698_7239e3c8aaa7); -} +::windows_core::imp::com_interface!(IEmailMailboxMoveFolderRequestEventArgs, IEmailMailboxMoveFolderRequestEventArgs_Vtbl, 0x38623020_14ba_4c88_8698_7239e3c8aaa7); #[repr(C)] #[doc(hidden)] pub struct IEmailMailboxMoveFolderRequestEventArgs_Vtbl { @@ -360,16 +198,7 @@ pub struct IEmailMailboxMoveFolderRequestEventArgs_Vtbl { pub Request: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailMailboxProposeNewTimeForMeetingRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailMailboxProposeNewTimeForMeetingRequest { - type Vtable = IEmailMailboxProposeNewTimeForMeetingRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailMailboxProposeNewTimeForMeetingRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5aeff152_9799_4f9f_a399_ff07f3eef04e); -} +::windows_core::imp::com_interface!(IEmailMailboxProposeNewTimeForMeetingRequest, IEmailMailboxProposeNewTimeForMeetingRequest_Vtbl, 0x5aeff152_9799_4f9f_a399_ff07f3eef04e); #[repr(C)] #[doc(hidden)] pub struct IEmailMailboxProposeNewTimeForMeetingRequest_Vtbl { @@ -383,16 +212,7 @@ pub struct IEmailMailboxProposeNewTimeForMeetingRequest_Vtbl { pub ReportCompletedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ReportFailedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailMailboxProposeNewTimeForMeetingRequestEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailMailboxProposeNewTimeForMeetingRequestEventArgs { - type Vtable = IEmailMailboxProposeNewTimeForMeetingRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailMailboxProposeNewTimeForMeetingRequestEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfb480b98_33ad_4a67_8251_0f9c249b6a20); -} +::windows_core::imp::com_interface!(IEmailMailboxProposeNewTimeForMeetingRequestEventArgs, IEmailMailboxProposeNewTimeForMeetingRequestEventArgs_Vtbl, 0xfb480b98_33ad_4a67_8251_0f9c249b6a20); #[repr(C)] #[doc(hidden)] pub struct IEmailMailboxProposeNewTimeForMeetingRequestEventArgs_Vtbl { @@ -400,16 +220,7 @@ pub struct IEmailMailboxProposeNewTimeForMeetingRequestEventArgs_Vtbl { pub Request: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailMailboxResolveRecipientsRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailMailboxResolveRecipientsRequest { - type Vtable = IEmailMailboxResolveRecipientsRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailMailboxResolveRecipientsRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xefa4cf70_7b39_4c9b_811e_41eaf43a332d); -} +::windows_core::imp::com_interface!(IEmailMailboxResolveRecipientsRequest, IEmailMailboxResolveRecipientsRequest_Vtbl, 0xefa4cf70_7b39_4c9b_811e_41eaf43a332d); #[repr(C)] #[doc(hidden)] pub struct IEmailMailboxResolveRecipientsRequest_Vtbl { @@ -425,16 +236,7 @@ pub struct IEmailMailboxResolveRecipientsRequest_Vtbl { ReportCompletedAsync: usize, pub ReportFailedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailMailboxResolveRecipientsRequestEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailMailboxResolveRecipientsRequestEventArgs { - type Vtable = IEmailMailboxResolveRecipientsRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailMailboxResolveRecipientsRequestEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x260f9e02_b2cf_40f8_8c28_e3ed43b1e89a); -} +::windows_core::imp::com_interface!(IEmailMailboxResolveRecipientsRequestEventArgs, IEmailMailboxResolveRecipientsRequestEventArgs_Vtbl, 0x260f9e02_b2cf_40f8_8c28_e3ed43b1e89a); #[repr(C)] #[doc(hidden)] pub struct IEmailMailboxResolveRecipientsRequestEventArgs_Vtbl { @@ -442,16 +244,7 @@ pub struct IEmailMailboxResolveRecipientsRequestEventArgs_Vtbl { pub Request: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailMailboxServerSearchReadBatchRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailMailboxServerSearchReadBatchRequest { - type Vtable = IEmailMailboxServerSearchReadBatchRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailMailboxServerSearchReadBatchRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x090eebdf_5a96_41d3_8ad8_34912f9aa60e); -} +::windows_core::imp::com_interface!(IEmailMailboxServerSearchReadBatchRequest, IEmailMailboxServerSearchReadBatchRequest_Vtbl, 0x090eebdf_5a96_41d3_8ad8_34912f9aa60e); #[repr(C)] #[doc(hidden)] pub struct IEmailMailboxServerSearchReadBatchRequest_Vtbl { @@ -465,16 +258,7 @@ pub struct IEmailMailboxServerSearchReadBatchRequest_Vtbl { pub ReportCompletedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ReportFailedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, batchstatus: super::EmailBatchStatus, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailMailboxServerSearchReadBatchRequestEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailMailboxServerSearchReadBatchRequestEventArgs { - type Vtable = IEmailMailboxServerSearchReadBatchRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailMailboxServerSearchReadBatchRequestEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x14101b4e_ed9e_45d1_ad7a_cc9b7f643ae2); -} +::windows_core::imp::com_interface!(IEmailMailboxServerSearchReadBatchRequestEventArgs, IEmailMailboxServerSearchReadBatchRequestEventArgs_Vtbl, 0x14101b4e_ed9e_45d1_ad7a_cc9b7f643ae2); #[repr(C)] #[doc(hidden)] pub struct IEmailMailboxServerSearchReadBatchRequestEventArgs_Vtbl { @@ -482,16 +266,7 @@ pub struct IEmailMailboxServerSearchReadBatchRequestEventArgs_Vtbl { pub Request: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailMailboxSetAutoReplySettingsRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailMailboxSetAutoReplySettingsRequest { - type Vtable = IEmailMailboxSetAutoReplySettingsRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailMailboxSetAutoReplySettingsRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x75a422d0_a88e_4e54_8dc7_c243186b774e); -} +::windows_core::imp::com_interface!(IEmailMailboxSetAutoReplySettingsRequest, IEmailMailboxSetAutoReplySettingsRequest_Vtbl, 0x75a422d0_a88e_4e54_8dc7_c243186b774e); #[repr(C)] #[doc(hidden)] pub struct IEmailMailboxSetAutoReplySettingsRequest_Vtbl { @@ -501,16 +276,7 @@ pub struct IEmailMailboxSetAutoReplySettingsRequest_Vtbl { pub ReportCompletedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ReportFailedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailMailboxSetAutoReplySettingsRequestEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailMailboxSetAutoReplySettingsRequestEventArgs { - type Vtable = IEmailMailboxSetAutoReplySettingsRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailMailboxSetAutoReplySettingsRequestEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x09da11ad_d7ca_4087_ac86_53fa67f76246); -} +::windows_core::imp::com_interface!(IEmailMailboxSetAutoReplySettingsRequestEventArgs, IEmailMailboxSetAutoReplySettingsRequestEventArgs_Vtbl, 0x09da11ad_d7ca_4087_ac86_53fa67f76246); #[repr(C)] #[doc(hidden)] pub struct IEmailMailboxSetAutoReplySettingsRequestEventArgs_Vtbl { @@ -518,16 +284,7 @@ pub struct IEmailMailboxSetAutoReplySettingsRequestEventArgs_Vtbl { pub Request: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailMailboxSyncManagerSyncRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailMailboxSyncManagerSyncRequest { - type Vtable = IEmailMailboxSyncManagerSyncRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailMailboxSyncManagerSyncRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4e10e8e4_7e67_405a_b673_dc60c91090fc); -} +::windows_core::imp::com_interface!(IEmailMailboxSyncManagerSyncRequest, IEmailMailboxSyncManagerSyncRequest_Vtbl, 0x4e10e8e4_7e67_405a_b673_dc60c91090fc); #[repr(C)] #[doc(hidden)] pub struct IEmailMailboxSyncManagerSyncRequest_Vtbl { @@ -536,16 +293,7 @@ pub struct IEmailMailboxSyncManagerSyncRequest_Vtbl { pub ReportCompletedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ReportFailedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailMailboxSyncManagerSyncRequestEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailMailboxSyncManagerSyncRequestEventArgs { - type Vtable = IEmailMailboxSyncManagerSyncRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailMailboxSyncManagerSyncRequestEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x439a031a_8fcc_4ae5_b9b5_d434e0a65aa8); -} +::windows_core::imp::com_interface!(IEmailMailboxSyncManagerSyncRequestEventArgs, IEmailMailboxSyncManagerSyncRequestEventArgs_Vtbl, 0x439a031a_8fcc_4ae5_b9b5_d434e0a65aa8); #[repr(C)] #[doc(hidden)] pub struct IEmailMailboxSyncManagerSyncRequestEventArgs_Vtbl { @@ -553,16 +301,7 @@ pub struct IEmailMailboxSyncManagerSyncRequestEventArgs_Vtbl { pub Request: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailMailboxUpdateMeetingResponseRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailMailboxUpdateMeetingResponseRequest { - type Vtable = IEmailMailboxUpdateMeetingResponseRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailMailboxUpdateMeetingResponseRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5b99ac93_b2cf_4888_ba4f_306b6b66df30); -} +::windows_core::imp::com_interface!(IEmailMailboxUpdateMeetingResponseRequest, IEmailMailboxUpdateMeetingResponseRequest_Vtbl, 0x5b99ac93_b2cf_4888_ba4f_306b6b66df30); #[repr(C)] #[doc(hidden)] pub struct IEmailMailboxUpdateMeetingResponseRequest_Vtbl { @@ -576,16 +315,7 @@ pub struct IEmailMailboxUpdateMeetingResponseRequest_Vtbl { pub ReportCompletedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ReportFailedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailMailboxUpdateMeetingResponseRequestEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailMailboxUpdateMeetingResponseRequestEventArgs { - type Vtable = IEmailMailboxUpdateMeetingResponseRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailMailboxUpdateMeetingResponseRequestEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6898d761_56c9_4f17_be31_66fda94ba159); -} +::windows_core::imp::com_interface!(IEmailMailboxUpdateMeetingResponseRequestEventArgs, IEmailMailboxUpdateMeetingResponseRequestEventArgs_Vtbl, 0x6898d761_56c9_4f17_be31_66fda94ba159); #[repr(C)] #[doc(hidden)] pub struct IEmailMailboxUpdateMeetingResponseRequestEventArgs_Vtbl { @@ -593,16 +323,7 @@ pub struct IEmailMailboxUpdateMeetingResponseRequestEventArgs_Vtbl { pub Request: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailMailboxValidateCertificatesRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailMailboxValidateCertificatesRequest { - type Vtable = IEmailMailboxValidateCertificatesRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailMailboxValidateCertificatesRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa94d3931_e11a_4f97_b81a_187a70a8f41a); -} +::windows_core::imp::com_interface!(IEmailMailboxValidateCertificatesRequest, IEmailMailboxValidateCertificatesRequest_Vtbl, 0xa94d3931_e11a_4f97_b81a_187a70a8f41a); #[repr(C)] #[doc(hidden)] pub struct IEmailMailboxValidateCertificatesRequest_Vtbl { @@ -618,16 +339,7 @@ pub struct IEmailMailboxValidateCertificatesRequest_Vtbl { ReportCompletedAsync: usize, pub ReportFailedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailMailboxValidateCertificatesRequestEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailMailboxValidateCertificatesRequestEventArgs { - type Vtable = IEmailMailboxValidateCertificatesRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailMailboxValidateCertificatesRequestEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2583bf17_02ff_49fe_a73c_03f37566c691); -} +::windows_core::imp::com_interface!(IEmailMailboxValidateCertificatesRequestEventArgs, IEmailMailboxValidateCertificatesRequestEventArgs_Vtbl, 0x2583bf17_02ff_49fe_a73c_03f37566c691); #[repr(C)] #[doc(hidden)] pub struct IEmailMailboxValidateCertificatesRequestEventArgs_Vtbl { @@ -638,6 +350,7 @@ pub struct IEmailMailboxValidateCertificatesRequestEventArgs_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EmailDataProviderConnection(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EmailDataProviderConnection, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EmailDataProviderConnection { pub fn MailboxSyncRequested(&self, handler: P0) -> ::windows_core::Result where @@ -859,19 +572,17 @@ impl ::windows_core::RuntimeType for EmailDataProviderConnection { } unsafe impl ::windows_core::Interface for EmailDataProviderConnection { type Vtable = IEmailDataProviderConnection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EmailDataProviderConnection { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EmailDataProviderConnection { const NAME: &'static str = "Windows.ApplicationModel.Email.DataProvider.EmailDataProviderConnection"; } -::windows_core::imp::interface_hierarchy!(EmailDataProviderConnection, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EmailDataProviderConnection {} unsafe impl ::core::marker::Sync for EmailDataProviderConnection {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EmailDataProviderTriggerDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EmailDataProviderTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EmailDataProviderTriggerDetails { pub fn Connection(&self) -> ::windows_core::Result { let this = self; @@ -886,19 +597,17 @@ impl ::windows_core::RuntimeType for EmailDataProviderTriggerDetails { } unsafe impl ::windows_core::Interface for EmailDataProviderTriggerDetails { type Vtable = IEmailDataProviderTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EmailDataProviderTriggerDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EmailDataProviderTriggerDetails { const NAME: &'static str = "Windows.ApplicationModel.Email.DataProvider.EmailDataProviderTriggerDetails"; } -::windows_core::imp::interface_hierarchy!(EmailDataProviderTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EmailDataProviderTriggerDetails {} unsafe impl ::core::marker::Sync for EmailDataProviderTriggerDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EmailMailboxCreateFolderRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EmailMailboxCreateFolderRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EmailMailboxCreateFolderRequest { pub fn EmailMailboxId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -944,19 +653,17 @@ impl ::windows_core::RuntimeType for EmailMailboxCreateFolderRequest { } unsafe impl ::windows_core::Interface for EmailMailboxCreateFolderRequest { type Vtable = IEmailMailboxCreateFolderRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EmailMailboxCreateFolderRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EmailMailboxCreateFolderRequest { const NAME: &'static str = "Windows.ApplicationModel.Email.DataProvider.EmailMailboxCreateFolderRequest"; } -::windows_core::imp::interface_hierarchy!(EmailMailboxCreateFolderRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EmailMailboxCreateFolderRequest {} unsafe impl ::core::marker::Sync for EmailMailboxCreateFolderRequest {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EmailMailboxCreateFolderRequestEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EmailMailboxCreateFolderRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EmailMailboxCreateFolderRequestEventArgs { pub fn Request(&self) -> ::windows_core::Result { let this = self; @@ -978,19 +685,17 @@ impl ::windows_core::RuntimeType for EmailMailboxCreateFolderRequestEventArgs { } unsafe impl ::windows_core::Interface for EmailMailboxCreateFolderRequestEventArgs { type Vtable = IEmailMailboxCreateFolderRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EmailMailboxCreateFolderRequestEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EmailMailboxCreateFolderRequestEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Email.DataProvider.EmailMailboxCreateFolderRequestEventArgs"; } -::windows_core::imp::interface_hierarchy!(EmailMailboxCreateFolderRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EmailMailboxCreateFolderRequestEventArgs {} unsafe impl ::core::marker::Sync for EmailMailboxCreateFolderRequestEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EmailMailboxDeleteFolderRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EmailMailboxDeleteFolderRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EmailMailboxDeleteFolderRequest { pub fn EmailMailboxId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1026,19 +731,17 @@ impl ::windows_core::RuntimeType for EmailMailboxDeleteFolderRequest { } unsafe impl ::windows_core::Interface for EmailMailboxDeleteFolderRequest { type Vtable = IEmailMailboxDeleteFolderRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EmailMailboxDeleteFolderRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EmailMailboxDeleteFolderRequest { const NAME: &'static str = "Windows.ApplicationModel.Email.DataProvider.EmailMailboxDeleteFolderRequest"; } -::windows_core::imp::interface_hierarchy!(EmailMailboxDeleteFolderRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EmailMailboxDeleteFolderRequest {} unsafe impl ::core::marker::Sync for EmailMailboxDeleteFolderRequest {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EmailMailboxDeleteFolderRequestEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EmailMailboxDeleteFolderRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EmailMailboxDeleteFolderRequestEventArgs { pub fn Request(&self) -> ::windows_core::Result { let this = self; @@ -1060,19 +763,17 @@ impl ::windows_core::RuntimeType for EmailMailboxDeleteFolderRequestEventArgs { } unsafe impl ::windows_core::Interface for EmailMailboxDeleteFolderRequestEventArgs { type Vtable = IEmailMailboxDeleteFolderRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EmailMailboxDeleteFolderRequestEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EmailMailboxDeleteFolderRequestEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Email.DataProvider.EmailMailboxDeleteFolderRequestEventArgs"; } -::windows_core::imp::interface_hierarchy!(EmailMailboxDeleteFolderRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EmailMailboxDeleteFolderRequestEventArgs {} unsafe impl ::core::marker::Sync for EmailMailboxDeleteFolderRequestEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EmailMailboxDownloadAttachmentRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EmailMailboxDownloadAttachmentRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EmailMailboxDownloadAttachmentRequest { pub fn EmailMailboxId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1115,19 +816,17 @@ impl ::windows_core::RuntimeType for EmailMailboxDownloadAttachmentRequest { } unsafe impl ::windows_core::Interface for EmailMailboxDownloadAttachmentRequest { type Vtable = IEmailMailboxDownloadAttachmentRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EmailMailboxDownloadAttachmentRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EmailMailboxDownloadAttachmentRequest { const NAME: &'static str = "Windows.ApplicationModel.Email.DataProvider.EmailMailboxDownloadAttachmentRequest"; } -::windows_core::imp::interface_hierarchy!(EmailMailboxDownloadAttachmentRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EmailMailboxDownloadAttachmentRequest {} unsafe impl ::core::marker::Sync for EmailMailboxDownloadAttachmentRequest {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EmailMailboxDownloadAttachmentRequestEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EmailMailboxDownloadAttachmentRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EmailMailboxDownloadAttachmentRequestEventArgs { pub fn Request(&self) -> ::windows_core::Result { let this = self; @@ -1149,19 +848,17 @@ impl ::windows_core::RuntimeType for EmailMailboxDownloadAttachmentRequestEventA } unsafe impl ::windows_core::Interface for EmailMailboxDownloadAttachmentRequestEventArgs { type Vtable = IEmailMailboxDownloadAttachmentRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EmailMailboxDownloadAttachmentRequestEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EmailMailboxDownloadAttachmentRequestEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Email.DataProvider.EmailMailboxDownloadAttachmentRequestEventArgs"; } -::windows_core::imp::interface_hierarchy!(EmailMailboxDownloadAttachmentRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EmailMailboxDownloadAttachmentRequestEventArgs {} unsafe impl ::core::marker::Sync for EmailMailboxDownloadAttachmentRequestEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EmailMailboxDownloadMessageRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EmailMailboxDownloadMessageRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EmailMailboxDownloadMessageRequest { pub fn EmailMailboxId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1197,19 +894,17 @@ impl ::windows_core::RuntimeType for EmailMailboxDownloadMessageRequest { } unsafe impl ::windows_core::Interface for EmailMailboxDownloadMessageRequest { type Vtable = IEmailMailboxDownloadMessageRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EmailMailboxDownloadMessageRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EmailMailboxDownloadMessageRequest { const NAME: &'static str = "Windows.ApplicationModel.Email.DataProvider.EmailMailboxDownloadMessageRequest"; } -::windows_core::imp::interface_hierarchy!(EmailMailboxDownloadMessageRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EmailMailboxDownloadMessageRequest {} unsafe impl ::core::marker::Sync for EmailMailboxDownloadMessageRequest {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EmailMailboxDownloadMessageRequestEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EmailMailboxDownloadMessageRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EmailMailboxDownloadMessageRequestEventArgs { pub fn Request(&self) -> ::windows_core::Result { let this = self; @@ -1231,19 +926,17 @@ impl ::windows_core::RuntimeType for EmailMailboxDownloadMessageRequestEventArgs } unsafe impl ::windows_core::Interface for EmailMailboxDownloadMessageRequestEventArgs { type Vtable = IEmailMailboxDownloadMessageRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EmailMailboxDownloadMessageRequestEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EmailMailboxDownloadMessageRequestEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Email.DataProvider.EmailMailboxDownloadMessageRequestEventArgs"; } -::windows_core::imp::interface_hierarchy!(EmailMailboxDownloadMessageRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EmailMailboxDownloadMessageRequestEventArgs {} unsafe impl ::core::marker::Sync for EmailMailboxDownloadMessageRequestEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EmailMailboxEmptyFolderRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EmailMailboxEmptyFolderRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EmailMailboxEmptyFolderRequest { pub fn EmailMailboxId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1279,19 +972,17 @@ impl ::windows_core::RuntimeType for EmailMailboxEmptyFolderRequest { } unsafe impl ::windows_core::Interface for EmailMailboxEmptyFolderRequest { type Vtable = IEmailMailboxEmptyFolderRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EmailMailboxEmptyFolderRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EmailMailboxEmptyFolderRequest { const NAME: &'static str = "Windows.ApplicationModel.Email.DataProvider.EmailMailboxEmptyFolderRequest"; } -::windows_core::imp::interface_hierarchy!(EmailMailboxEmptyFolderRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EmailMailboxEmptyFolderRequest {} unsafe impl ::core::marker::Sync for EmailMailboxEmptyFolderRequest {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EmailMailboxEmptyFolderRequestEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EmailMailboxEmptyFolderRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EmailMailboxEmptyFolderRequestEventArgs { pub fn Request(&self) -> ::windows_core::Result { let this = self; @@ -1313,19 +1004,17 @@ impl ::windows_core::RuntimeType for EmailMailboxEmptyFolderRequestEventArgs { } unsafe impl ::windows_core::Interface for EmailMailboxEmptyFolderRequestEventArgs { type Vtable = IEmailMailboxEmptyFolderRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EmailMailboxEmptyFolderRequestEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EmailMailboxEmptyFolderRequestEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Email.DataProvider.EmailMailboxEmptyFolderRequestEventArgs"; } -::windows_core::imp::interface_hierarchy!(EmailMailboxEmptyFolderRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EmailMailboxEmptyFolderRequestEventArgs {} unsafe impl ::core::marker::Sync for EmailMailboxEmptyFolderRequestEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EmailMailboxForwardMeetingRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EmailMailboxForwardMeetingRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EmailMailboxForwardMeetingRequest { pub fn EmailMailboxId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1398,19 +1087,17 @@ impl ::windows_core::RuntimeType for EmailMailboxForwardMeetingRequest { } unsafe impl ::windows_core::Interface for EmailMailboxForwardMeetingRequest { type Vtable = IEmailMailboxForwardMeetingRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EmailMailboxForwardMeetingRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EmailMailboxForwardMeetingRequest { const NAME: &'static str = "Windows.ApplicationModel.Email.DataProvider.EmailMailboxForwardMeetingRequest"; } -::windows_core::imp::interface_hierarchy!(EmailMailboxForwardMeetingRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EmailMailboxForwardMeetingRequest {} unsafe impl ::core::marker::Sync for EmailMailboxForwardMeetingRequest {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EmailMailboxForwardMeetingRequestEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EmailMailboxForwardMeetingRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EmailMailboxForwardMeetingRequestEventArgs { pub fn Request(&self) -> ::windows_core::Result { let this = self; @@ -1432,19 +1119,17 @@ impl ::windows_core::RuntimeType for EmailMailboxForwardMeetingRequestEventArgs } unsafe impl ::windows_core::Interface for EmailMailboxForwardMeetingRequestEventArgs { type Vtable = IEmailMailboxForwardMeetingRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EmailMailboxForwardMeetingRequestEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EmailMailboxForwardMeetingRequestEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Email.DataProvider.EmailMailboxForwardMeetingRequestEventArgs"; } -::windows_core::imp::interface_hierarchy!(EmailMailboxForwardMeetingRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EmailMailboxForwardMeetingRequestEventArgs {} unsafe impl ::core::marker::Sync for EmailMailboxForwardMeetingRequestEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EmailMailboxGetAutoReplySettingsRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EmailMailboxGetAutoReplySettingsRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EmailMailboxGetAutoReplySettingsRequest { pub fn EmailMailboxId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1483,19 +1168,17 @@ impl ::windows_core::RuntimeType for EmailMailboxGetAutoReplySettingsRequest { } unsafe impl ::windows_core::Interface for EmailMailboxGetAutoReplySettingsRequest { type Vtable = IEmailMailboxGetAutoReplySettingsRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EmailMailboxGetAutoReplySettingsRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EmailMailboxGetAutoReplySettingsRequest { const NAME: &'static str = "Windows.ApplicationModel.Email.DataProvider.EmailMailboxGetAutoReplySettingsRequest"; } -::windows_core::imp::interface_hierarchy!(EmailMailboxGetAutoReplySettingsRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EmailMailboxGetAutoReplySettingsRequest {} unsafe impl ::core::marker::Sync for EmailMailboxGetAutoReplySettingsRequest {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EmailMailboxGetAutoReplySettingsRequestEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EmailMailboxGetAutoReplySettingsRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EmailMailboxGetAutoReplySettingsRequestEventArgs { pub fn Request(&self) -> ::windows_core::Result { let this = self; @@ -1517,19 +1200,17 @@ impl ::windows_core::RuntimeType for EmailMailboxGetAutoReplySettingsRequestEven } unsafe impl ::windows_core::Interface for EmailMailboxGetAutoReplySettingsRequestEventArgs { type Vtable = IEmailMailboxGetAutoReplySettingsRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EmailMailboxGetAutoReplySettingsRequestEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EmailMailboxGetAutoReplySettingsRequestEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Email.DataProvider.EmailMailboxGetAutoReplySettingsRequestEventArgs"; } -::windows_core::imp::interface_hierarchy!(EmailMailboxGetAutoReplySettingsRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EmailMailboxGetAutoReplySettingsRequestEventArgs {} unsafe impl ::core::marker::Sync for EmailMailboxGetAutoReplySettingsRequestEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EmailMailboxMoveFolderRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EmailMailboxMoveFolderRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EmailMailboxMoveFolderRequest { pub fn EmailMailboxId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1579,19 +1260,17 @@ impl ::windows_core::RuntimeType for EmailMailboxMoveFolderRequest { } unsafe impl ::windows_core::Interface for EmailMailboxMoveFolderRequest { type Vtable = IEmailMailboxMoveFolderRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EmailMailboxMoveFolderRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EmailMailboxMoveFolderRequest { const NAME: &'static str = "Windows.ApplicationModel.Email.DataProvider.EmailMailboxMoveFolderRequest"; } -::windows_core::imp::interface_hierarchy!(EmailMailboxMoveFolderRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EmailMailboxMoveFolderRequest {} unsafe impl ::core::marker::Sync for EmailMailboxMoveFolderRequest {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EmailMailboxMoveFolderRequestEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EmailMailboxMoveFolderRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EmailMailboxMoveFolderRequestEventArgs { pub fn Request(&self) -> ::windows_core::Result { let this = self; @@ -1613,19 +1292,17 @@ impl ::windows_core::RuntimeType for EmailMailboxMoveFolderRequestEventArgs { } unsafe impl ::windows_core::Interface for EmailMailboxMoveFolderRequestEventArgs { type Vtable = IEmailMailboxMoveFolderRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EmailMailboxMoveFolderRequestEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EmailMailboxMoveFolderRequestEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Email.DataProvider.EmailMailboxMoveFolderRequestEventArgs"; } -::windows_core::imp::interface_hierarchy!(EmailMailboxMoveFolderRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EmailMailboxMoveFolderRequestEventArgs {} unsafe impl ::core::marker::Sync for EmailMailboxMoveFolderRequestEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EmailMailboxProposeNewTimeForMeetingRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EmailMailboxProposeNewTimeForMeetingRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EmailMailboxProposeNewTimeForMeetingRequest { pub fn EmailMailboxId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1689,19 +1366,17 @@ impl ::windows_core::RuntimeType for EmailMailboxProposeNewTimeForMeetingRequest } unsafe impl ::windows_core::Interface for EmailMailboxProposeNewTimeForMeetingRequest { type Vtable = IEmailMailboxProposeNewTimeForMeetingRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EmailMailboxProposeNewTimeForMeetingRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EmailMailboxProposeNewTimeForMeetingRequest { const NAME: &'static str = "Windows.ApplicationModel.Email.DataProvider.EmailMailboxProposeNewTimeForMeetingRequest"; } -::windows_core::imp::interface_hierarchy!(EmailMailboxProposeNewTimeForMeetingRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EmailMailboxProposeNewTimeForMeetingRequest {} unsafe impl ::core::marker::Sync for EmailMailboxProposeNewTimeForMeetingRequest {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EmailMailboxProposeNewTimeForMeetingRequestEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EmailMailboxProposeNewTimeForMeetingRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EmailMailboxProposeNewTimeForMeetingRequestEventArgs { pub fn Request(&self) -> ::windows_core::Result { let this = self; @@ -1723,19 +1398,17 @@ impl ::windows_core::RuntimeType for EmailMailboxProposeNewTimeForMeetingRequest } unsafe impl ::windows_core::Interface for EmailMailboxProposeNewTimeForMeetingRequestEventArgs { type Vtable = IEmailMailboxProposeNewTimeForMeetingRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EmailMailboxProposeNewTimeForMeetingRequestEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EmailMailboxProposeNewTimeForMeetingRequestEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Email.DataProvider.EmailMailboxProposeNewTimeForMeetingRequestEventArgs"; } -::windows_core::imp::interface_hierarchy!(EmailMailboxProposeNewTimeForMeetingRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EmailMailboxProposeNewTimeForMeetingRequestEventArgs {} unsafe impl ::core::marker::Sync for EmailMailboxProposeNewTimeForMeetingRequestEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EmailMailboxResolveRecipientsRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EmailMailboxResolveRecipientsRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EmailMailboxResolveRecipientsRequest { pub fn EmailMailboxId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1757,12 +1430,12 @@ impl EmailMailboxResolveRecipientsRequest { #[cfg(feature = "Foundation_Collections")] pub fn ReportCompletedAsync(&self, resolutionresults: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).ReportCompletedAsync)(::windows_core::Interface::as_raw(this), resolutionresults.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ReportCompletedAsync)(::windows_core::Interface::as_raw(this), resolutionresults.into_param().abi(), &mut result__).from_abi(result__) } } pub fn ReportFailedAsync(&self) -> ::windows_core::Result { @@ -1778,19 +1451,17 @@ impl ::windows_core::RuntimeType for EmailMailboxResolveRecipientsRequest { } unsafe impl ::windows_core::Interface for EmailMailboxResolveRecipientsRequest { type Vtable = IEmailMailboxResolveRecipientsRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EmailMailboxResolveRecipientsRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EmailMailboxResolveRecipientsRequest { const NAME: &'static str = "Windows.ApplicationModel.Email.DataProvider.EmailMailboxResolveRecipientsRequest"; } -::windows_core::imp::interface_hierarchy!(EmailMailboxResolveRecipientsRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EmailMailboxResolveRecipientsRequest {} unsafe impl ::core::marker::Sync for EmailMailboxResolveRecipientsRequest {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EmailMailboxResolveRecipientsRequestEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EmailMailboxResolveRecipientsRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EmailMailboxResolveRecipientsRequestEventArgs { pub fn Request(&self) -> ::windows_core::Result { let this = self; @@ -1812,19 +1483,17 @@ impl ::windows_core::RuntimeType for EmailMailboxResolveRecipientsRequestEventAr } unsafe impl ::windows_core::Interface for EmailMailboxResolveRecipientsRequestEventArgs { type Vtable = IEmailMailboxResolveRecipientsRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EmailMailboxResolveRecipientsRequestEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EmailMailboxResolveRecipientsRequestEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Email.DataProvider.EmailMailboxResolveRecipientsRequestEventArgs"; } -::windows_core::imp::interface_hierarchy!(EmailMailboxResolveRecipientsRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EmailMailboxResolveRecipientsRequestEventArgs {} unsafe impl ::core::marker::Sync for EmailMailboxResolveRecipientsRequestEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EmailMailboxServerSearchReadBatchRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EmailMailboxServerSearchReadBatchRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EmailMailboxServerSearchReadBatchRequest { pub fn SessionId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1891,19 +1560,17 @@ impl ::windows_core::RuntimeType for EmailMailboxServerSearchReadBatchRequest { } unsafe impl ::windows_core::Interface for EmailMailboxServerSearchReadBatchRequest { type Vtable = IEmailMailboxServerSearchReadBatchRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EmailMailboxServerSearchReadBatchRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EmailMailboxServerSearchReadBatchRequest { const NAME: &'static str = "Windows.ApplicationModel.Email.DataProvider.EmailMailboxServerSearchReadBatchRequest"; } -::windows_core::imp::interface_hierarchy!(EmailMailboxServerSearchReadBatchRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EmailMailboxServerSearchReadBatchRequest {} unsafe impl ::core::marker::Sync for EmailMailboxServerSearchReadBatchRequest {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EmailMailboxServerSearchReadBatchRequestEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EmailMailboxServerSearchReadBatchRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EmailMailboxServerSearchReadBatchRequestEventArgs { pub fn Request(&self) -> ::windows_core::Result { let this = self; @@ -1925,19 +1592,17 @@ impl ::windows_core::RuntimeType for EmailMailboxServerSearchReadBatchRequestEve } unsafe impl ::windows_core::Interface for EmailMailboxServerSearchReadBatchRequestEventArgs { type Vtable = IEmailMailboxServerSearchReadBatchRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EmailMailboxServerSearchReadBatchRequestEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EmailMailboxServerSearchReadBatchRequestEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Email.DataProvider.EmailMailboxServerSearchReadBatchRequestEventArgs"; } -::windows_core::imp::interface_hierarchy!(EmailMailboxServerSearchReadBatchRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EmailMailboxServerSearchReadBatchRequestEventArgs {} unsafe impl ::core::marker::Sync for EmailMailboxServerSearchReadBatchRequestEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EmailMailboxSetAutoReplySettingsRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EmailMailboxSetAutoReplySettingsRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EmailMailboxSetAutoReplySettingsRequest { pub fn EmailMailboxId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1973,19 +1638,17 @@ impl ::windows_core::RuntimeType for EmailMailboxSetAutoReplySettingsRequest { } unsafe impl ::windows_core::Interface for EmailMailboxSetAutoReplySettingsRequest { type Vtable = IEmailMailboxSetAutoReplySettingsRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EmailMailboxSetAutoReplySettingsRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EmailMailboxSetAutoReplySettingsRequest { const NAME: &'static str = "Windows.ApplicationModel.Email.DataProvider.EmailMailboxSetAutoReplySettingsRequest"; } -::windows_core::imp::interface_hierarchy!(EmailMailboxSetAutoReplySettingsRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EmailMailboxSetAutoReplySettingsRequest {} unsafe impl ::core::marker::Sync for EmailMailboxSetAutoReplySettingsRequest {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EmailMailboxSetAutoReplySettingsRequestEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EmailMailboxSetAutoReplySettingsRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EmailMailboxSetAutoReplySettingsRequestEventArgs { pub fn Request(&self) -> ::windows_core::Result { let this = self; @@ -2007,19 +1670,17 @@ impl ::windows_core::RuntimeType for EmailMailboxSetAutoReplySettingsRequestEven } unsafe impl ::windows_core::Interface for EmailMailboxSetAutoReplySettingsRequestEventArgs { type Vtable = IEmailMailboxSetAutoReplySettingsRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EmailMailboxSetAutoReplySettingsRequestEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EmailMailboxSetAutoReplySettingsRequestEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Email.DataProvider.EmailMailboxSetAutoReplySettingsRequestEventArgs"; } -::windows_core::imp::interface_hierarchy!(EmailMailboxSetAutoReplySettingsRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EmailMailboxSetAutoReplySettingsRequestEventArgs {} unsafe impl ::core::marker::Sync for EmailMailboxSetAutoReplySettingsRequestEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EmailMailboxSyncManagerSyncRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EmailMailboxSyncManagerSyncRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EmailMailboxSyncManagerSyncRequest { pub fn EmailMailboxId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -2048,19 +1709,17 @@ impl ::windows_core::RuntimeType for EmailMailboxSyncManagerSyncRequest { } unsafe impl ::windows_core::Interface for EmailMailboxSyncManagerSyncRequest { type Vtable = IEmailMailboxSyncManagerSyncRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EmailMailboxSyncManagerSyncRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EmailMailboxSyncManagerSyncRequest { const NAME: &'static str = "Windows.ApplicationModel.Email.DataProvider.EmailMailboxSyncManagerSyncRequest"; } -::windows_core::imp::interface_hierarchy!(EmailMailboxSyncManagerSyncRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EmailMailboxSyncManagerSyncRequest {} unsafe impl ::core::marker::Sync for EmailMailboxSyncManagerSyncRequest {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EmailMailboxSyncManagerSyncRequestEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EmailMailboxSyncManagerSyncRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EmailMailboxSyncManagerSyncRequestEventArgs { pub fn Request(&self) -> ::windows_core::Result { let this = self; @@ -2082,19 +1741,17 @@ impl ::windows_core::RuntimeType for EmailMailboxSyncManagerSyncRequestEventArgs } unsafe impl ::windows_core::Interface for EmailMailboxSyncManagerSyncRequestEventArgs { type Vtable = IEmailMailboxSyncManagerSyncRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EmailMailboxSyncManagerSyncRequestEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EmailMailboxSyncManagerSyncRequestEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Email.DataProvider.EmailMailboxSyncManagerSyncRequestEventArgs"; } -::windows_core::imp::interface_hierarchy!(EmailMailboxSyncManagerSyncRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EmailMailboxSyncManagerSyncRequestEventArgs {} unsafe impl ::core::marker::Sync for EmailMailboxSyncManagerSyncRequestEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EmailMailboxUpdateMeetingResponseRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EmailMailboxUpdateMeetingResponseRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EmailMailboxUpdateMeetingResponseRequest { pub fn EmailMailboxId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -2158,19 +1815,17 @@ impl ::windows_core::RuntimeType for EmailMailboxUpdateMeetingResponseRequest { } unsafe impl ::windows_core::Interface for EmailMailboxUpdateMeetingResponseRequest { type Vtable = IEmailMailboxUpdateMeetingResponseRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EmailMailboxUpdateMeetingResponseRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EmailMailboxUpdateMeetingResponseRequest { const NAME: &'static str = "Windows.ApplicationModel.Email.DataProvider.EmailMailboxUpdateMeetingResponseRequest"; } -::windows_core::imp::interface_hierarchy!(EmailMailboxUpdateMeetingResponseRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EmailMailboxUpdateMeetingResponseRequest {} unsafe impl ::core::marker::Sync for EmailMailboxUpdateMeetingResponseRequest {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EmailMailboxUpdateMeetingResponseRequestEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EmailMailboxUpdateMeetingResponseRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EmailMailboxUpdateMeetingResponseRequestEventArgs { pub fn Request(&self) -> ::windows_core::Result { let this = self; @@ -2192,19 +1847,17 @@ impl ::windows_core::RuntimeType for EmailMailboxUpdateMeetingResponseRequestEve } unsafe impl ::windows_core::Interface for EmailMailboxUpdateMeetingResponseRequestEventArgs { type Vtable = IEmailMailboxUpdateMeetingResponseRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EmailMailboxUpdateMeetingResponseRequestEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EmailMailboxUpdateMeetingResponseRequestEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Email.DataProvider.EmailMailboxUpdateMeetingResponseRequestEventArgs"; } -::windows_core::imp::interface_hierarchy!(EmailMailboxUpdateMeetingResponseRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EmailMailboxUpdateMeetingResponseRequestEventArgs {} unsafe impl ::core::marker::Sync for EmailMailboxUpdateMeetingResponseRequestEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EmailMailboxValidateCertificatesRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EmailMailboxValidateCertificatesRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EmailMailboxValidateCertificatesRequest { pub fn EmailMailboxId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -2226,12 +1879,12 @@ impl EmailMailboxValidateCertificatesRequest { #[cfg(feature = "Foundation_Collections")] pub fn ReportCompletedAsync(&self, validationstatuses: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).ReportCompletedAsync)(::windows_core::Interface::as_raw(this), validationstatuses.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ReportCompletedAsync)(::windows_core::Interface::as_raw(this), validationstatuses.into_param().abi(), &mut result__).from_abi(result__) } } pub fn ReportFailedAsync(&self) -> ::windows_core::Result { @@ -2247,19 +1900,17 @@ impl ::windows_core::RuntimeType for EmailMailboxValidateCertificatesRequest { } unsafe impl ::windows_core::Interface for EmailMailboxValidateCertificatesRequest { type Vtable = IEmailMailboxValidateCertificatesRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EmailMailboxValidateCertificatesRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EmailMailboxValidateCertificatesRequest { const NAME: &'static str = "Windows.ApplicationModel.Email.DataProvider.EmailMailboxValidateCertificatesRequest"; } -::windows_core::imp::interface_hierarchy!(EmailMailboxValidateCertificatesRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EmailMailboxValidateCertificatesRequest {} unsafe impl ::core::marker::Sync for EmailMailboxValidateCertificatesRequest {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EmailMailboxValidateCertificatesRequestEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EmailMailboxValidateCertificatesRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EmailMailboxValidateCertificatesRequestEventArgs { pub fn Request(&self) -> ::windows_core::Result { let this = self; @@ -2281,13 +1932,10 @@ impl ::windows_core::RuntimeType for EmailMailboxValidateCertificatesRequestEven } unsafe impl ::windows_core::Interface for EmailMailboxValidateCertificatesRequestEventArgs { type Vtable = IEmailMailboxValidateCertificatesRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EmailMailboxValidateCertificatesRequestEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EmailMailboxValidateCertificatesRequestEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Email.DataProvider.EmailMailboxValidateCertificatesRequestEventArgs"; } -::windows_core::imp::interface_hierarchy!(EmailMailboxValidateCertificatesRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EmailMailboxValidateCertificatesRequestEventArgs {} unsafe impl ::core::marker::Sync for EmailMailboxValidateCertificatesRequestEventArgs {} diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs index 93070d0482..7549bc7c20 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs @@ -1,16 +1,7 @@ #[cfg(feature = "ApplicationModel_Email_DataProvider")] #[doc = "Required features: `\"ApplicationModel_Email_DataProvider\"`"] pub mod DataProvider; -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailAttachment(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailAttachment { - type Vtable = IEmailAttachment_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailAttachment { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf353caf9_57c8_4adb_b992_60fceb584f54); -} +::windows_core::imp::com_interface!(IEmailAttachment, IEmailAttachment_Vtbl, 0xf353caf9_57c8_4adb_b992_60fceb584f54); #[repr(C)] #[doc(hidden)] pub struct IEmailAttachment_Vtbl { @@ -26,16 +17,7 @@ pub struct IEmailAttachment_Vtbl { #[cfg(not(feature = "Storage_Streams"))] SetData: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailAttachment2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailAttachment2 { - type Vtable = IEmailAttachment2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailAttachment2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x225f1070_b0ff_4571_9d54_a706c48d55c6); -} +::windows_core::imp::com_interface!(IEmailAttachment2, IEmailAttachment2_Vtbl, 0x225f1070_b0ff_4571_9d54_a706c48d55c6); #[repr(C)] #[doc(hidden)] pub struct IEmailAttachment2_Vtbl { @@ -55,16 +37,7 @@ pub struct IEmailAttachment2_Vtbl { pub MimeType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetMimeType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailAttachmentFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailAttachmentFactory { - type Vtable = IEmailAttachmentFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailAttachmentFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x796eac46_ed56_4979_8708_abb8bc854b7d); -} +::windows_core::imp::com_interface!(IEmailAttachmentFactory, IEmailAttachmentFactory_Vtbl, 0x796eac46_ed56_4979_8708_abb8bc854b7d); #[repr(C)] #[doc(hidden)] pub struct IEmailAttachmentFactory_Vtbl { @@ -74,16 +47,7 @@ pub struct IEmailAttachmentFactory_Vtbl { #[cfg(not(feature = "Storage_Streams"))] Create: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailAttachmentFactory2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailAttachmentFactory2 { - type Vtable = IEmailAttachmentFactory2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailAttachmentFactory2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x23259435_51f9_427d_adcd_241023c8cfb7); -} +::windows_core::imp::com_interface!(IEmailAttachmentFactory2, IEmailAttachmentFactory2_Vtbl, 0x23259435_51f9_427d_adcd_241023c8cfb7); #[repr(C)] #[doc(hidden)] pub struct IEmailAttachmentFactory2_Vtbl { @@ -93,16 +57,7 @@ pub struct IEmailAttachmentFactory2_Vtbl { #[cfg(not(feature = "Storage_Streams"))] Create: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailConversation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailConversation { - type Vtable = IEmailConversation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailConversation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xda18c248_a0bc_4349_902d_90f66389f51b); -} +::windows_core::imp::com_interface!(IEmailConversation, IEmailConversation_Vtbl, 0xda18c248_a0bc_4349_902d_90f66389f51b); #[repr(C)] #[doc(hidden)] pub struct IEmailConversation_Vtbl { @@ -129,16 +84,7 @@ pub struct IEmailConversation_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] FindMessagesWithCountAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailConversationBatch(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailConversationBatch { - type Vtable = IEmailConversationBatch_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailConversationBatch { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb8c1ab81_01c5_432a_9df1_fe85d98a279a); -} +::windows_core::imp::com_interface!(IEmailConversationBatch, IEmailConversationBatch_Vtbl, 0xb8c1ab81_01c5_432a_9df1_fe85d98a279a); #[repr(C)] #[doc(hidden)] pub struct IEmailConversationBatch_Vtbl { @@ -149,32 +95,14 @@ pub struct IEmailConversationBatch_Vtbl { Conversations: usize, pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut EmailBatchStatus) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailConversationReader(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailConversationReader { - type Vtable = IEmailConversationReader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailConversationReader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb4630f82_2875_44c8_9b8c_85beb3a3c653); -} +::windows_core::imp::com_interface!(IEmailConversationReader, IEmailConversationReader_Vtbl, 0xb4630f82_2875_44c8_9b8c_85beb3a3c653); #[repr(C)] #[doc(hidden)] pub struct IEmailConversationReader_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ReadBatchAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailFolder(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailFolder { - type Vtable = IEmailFolder_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailFolder { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa24f7771_996c_4864_b1ba_ed1240e57d11); -} +::windows_core::imp::com_interface!(IEmailFolder, IEmailFolder_Vtbl, 0xa24f7771_996c_4864_b1ba_ed1240e57d11); #[repr(C)] #[doc(hidden)] pub struct IEmailFolder_Vtbl { @@ -208,16 +136,7 @@ pub struct IEmailFolder_Vtbl { pub TrySaveAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SaveMessageAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, message: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailIrmInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailIrmInfo { - type Vtable = IEmailIrmInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailIrmInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x90f52193_b1a0_4ebd_a6b6_ddca55606e0e); -} +::windows_core::imp::com_interface!(IEmailIrmInfo, IEmailIrmInfo_Vtbl, 0x90f52193_b1a0_4ebd_a6b6_ddca55606e0e); #[repr(C)] #[doc(hidden)] pub struct IEmailIrmInfo_Vtbl { @@ -247,32 +166,14 @@ pub struct IEmailIrmInfo_Vtbl { pub Template: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetTemplate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailIrmInfoFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailIrmInfoFactory { - type Vtable = IEmailIrmInfoFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailIrmInfoFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x314bb18c_e3e6_4d7b_be8d_91a96311b01b); -} +::windows_core::imp::com_interface!(IEmailIrmInfoFactory, IEmailIrmInfoFactory_Vtbl, 0x314bb18c_e3e6_4d7b_be8d_91a96311b01b); #[repr(C)] #[doc(hidden)] pub struct IEmailIrmInfoFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, expiration: super::super::Foundation::DateTime, irmtemplate: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailIrmTemplate(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailIrmTemplate { - type Vtable = IEmailIrmTemplate_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailIrmTemplate { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf327758d_546d_4bea_a963_54a38b2cc016); -} +::windows_core::imp::com_interface!(IEmailIrmTemplate, IEmailIrmTemplate_Vtbl, 0xf327758d_546d_4bea_a963_54a38b2cc016); #[repr(C)] #[doc(hidden)] pub struct IEmailIrmTemplate_Vtbl { @@ -284,32 +185,14 @@ pub struct IEmailIrmTemplate_Vtbl { pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailIrmTemplateFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailIrmTemplateFactory { - type Vtable = IEmailIrmTemplateFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailIrmTemplateFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3da31876_8738_4418_b9cb_471b936fe71e); -} +::windows_core::imp::com_interface!(IEmailIrmTemplateFactory, IEmailIrmTemplateFactory_Vtbl, 0x3da31876_8738_4418_b9cb_471b936fe71e); #[repr(C)] #[doc(hidden)] pub struct IEmailIrmTemplateFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: ::std::mem::MaybeUninit<::windows_core::HSTRING>, name: ::std::mem::MaybeUninit<::windows_core::HSTRING>, description: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailItemCounts(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailItemCounts { - type Vtable = IEmailItemCounts_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailItemCounts { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5bd13321_fec8_4bab_83ba_0baf3c1f6cbd); -} +::windows_core::imp::com_interface!(IEmailItemCounts, IEmailItemCounts_Vtbl, 0x5bd13321_fec8_4bab_83ba_0baf3c1f6cbd); #[repr(C)] #[doc(hidden)] pub struct IEmailItemCounts_Vtbl { @@ -319,16 +202,7 @@ pub struct IEmailItemCounts_Vtbl { pub Total: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, pub Unread: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailMailbox(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailMailbox { - type Vtable = IEmailMailbox_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailMailbox { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa8790649_cf5b_411b_80b1_4a6a1484ce25); -} +::windows_core::imp::com_interface!(IEmailMailbox, IEmailMailbox_Vtbl, 0xa8790649_cf5b_411b_80b1_4a6a1484ce25); #[repr(C)] #[doc(hidden)] pub struct IEmailMailbox_Vtbl { @@ -390,16 +264,7 @@ pub struct IEmailMailbox_Vtbl { pub TrySetAutoReplySettingsAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, autoreplysettings: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub TryGetAutoReplySettingsAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, requestedformat: EmailMailboxAutoReplyMessageResponseKind, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailMailbox2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailMailbox2 { - type Vtable = IEmailMailbox2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailMailbox2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x14f8e404_6ca2_4ab2_9241_79cd7bf46346); -} +::windows_core::imp::com_interface!(IEmailMailbox2, IEmailMailbox2_Vtbl, 0x14f8e404_6ca2_4ab2_9241_79cd7bf46346); #[repr(C)] #[doc(hidden)] pub struct IEmailMailbox2_Vtbl { @@ -408,16 +273,7 @@ pub struct IEmailMailbox2_Vtbl { pub NetworkAccountId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub NetworkId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailMailbox3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailMailbox3 { - type Vtable = IEmailMailbox3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailMailbox3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3da5897b_458b_408a_8e37_ac8b05d8af56); -} +::windows_core::imp::com_interface!(IEmailMailbox3, IEmailMailbox3_Vtbl, 0x3da5897b_458b_408a_8e37_ac8b05d8af56); #[repr(C)] #[doc(hidden)] pub struct IEmailMailbox3_Vtbl { @@ -434,48 +290,21 @@ pub struct IEmailMailbox3_Vtbl { pub TryCreateFolderAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, parentfolderid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, name: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub TryDeleteFolderAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, folderid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailMailbox4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailMailbox4 { - type Vtable = IEmailMailbox4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailMailbox4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5d1f301b_f222_48a7_b7b6_716356cd26a1); -} +::windows_core::imp::com_interface!(IEmailMailbox4, IEmailMailbox4_Vtbl, 0x5d1f301b_f222_48a7_b7b6_716356cd26a1); #[repr(C)] #[doc(hidden)] pub struct IEmailMailbox4_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub RegisterSyncManagerAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailMailbox5(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailMailbox5 { - type Vtable = IEmailMailbox5_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailMailbox5 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x39967087_0092_49be_bd0e_5d4dc9d96d90); -} +::windows_core::imp::com_interface!(IEmailMailbox5, IEmailMailbox5_Vtbl, 0x39967087_0092_49be_bd0e_5d4dc9d96d90); #[repr(C)] #[doc(hidden)] pub struct IEmailMailbox5_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetChangeTracker: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, identity: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailMailboxAction(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailMailboxAction { - type Vtable = IEmailMailboxAction_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailMailboxAction { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xac9889fa_21fa_4927_9210_d410582fdf3e); -} +::windows_core::imp::com_interface!(IEmailMailboxAction, IEmailMailboxAction_Vtbl, 0xac9889fa_21fa_4927_9210_d410582fdf3e); #[repr(C)] #[doc(hidden)] pub struct IEmailMailboxAction_Vtbl { @@ -483,16 +312,7 @@ pub struct IEmailMailboxAction_Vtbl { pub Kind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut EmailMailboxActionKind) -> ::windows_core::HRESULT, pub ChangeNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u64) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailMailboxAutoReply(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailMailboxAutoReply { - type Vtable = IEmailMailboxAutoReply_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailMailboxAutoReply { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe223254c_8ab4_485b_b31f_04d15476bd59); -} +::windows_core::imp::com_interface!(IEmailMailboxAutoReply, IEmailMailboxAutoReply_Vtbl, 0xe223254c_8ab4_485b_b31f_04d15476bd59); #[repr(C)] #[doc(hidden)] pub struct IEmailMailboxAutoReply_Vtbl { @@ -502,16 +322,7 @@ pub struct IEmailMailboxAutoReply_Vtbl { pub Response: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetResponse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailMailboxAutoReplySettings(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailMailboxAutoReplySettings { - type Vtable = IEmailMailboxAutoReplySettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailMailboxAutoReplySettings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa87a9fa8_0ac6_4b77_ba77_a6b99e9a27b8); -} +::windows_core::imp::com_interface!(IEmailMailboxAutoReplySettings, IEmailMailboxAutoReplySettings_Vtbl, 0xa87a9fa8_0ac6_4b77_ba77_a6b99e9a27b8); #[repr(C)] #[doc(hidden)] pub struct IEmailMailboxAutoReplySettings_Vtbl { @@ -528,16 +339,7 @@ pub struct IEmailMailboxAutoReplySettings_Vtbl { pub KnownExternalReply: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub UnknownExternalReply: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailMailboxCapabilities(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailMailboxCapabilities { - type Vtable = IEmailMailboxCapabilities_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailMailboxCapabilities { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeedec3a6_89db_4305_82c4_439e0a33da11); -} +::windows_core::imp::com_interface!(IEmailMailboxCapabilities, IEmailMailboxCapabilities_Vtbl, 0xeedec3a6_89db_4305_82c4_439e0a33da11); #[repr(C)] #[doc(hidden)] pub struct IEmailMailboxCapabilities_Vtbl { @@ -551,16 +353,7 @@ pub struct IEmailMailboxCapabilities_Vtbl { pub CanProposeNewTimeForMeetings: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub CanSmartSend: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailMailboxCapabilities2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailMailboxCapabilities2 { - type Vtable = IEmailMailboxCapabilities2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailMailboxCapabilities2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x69723ee4_2f21_4cbc_88ab_2e7602a4806b); -} +::windows_core::imp::com_interface!(IEmailMailboxCapabilities2, IEmailMailboxCapabilities2_Vtbl, 0x69723ee4_2f21_4cbc_88ab_2e7602a4806b); #[repr(C)] #[doc(hidden)] pub struct IEmailMailboxCapabilities2_Vtbl { @@ -572,16 +365,7 @@ pub struct IEmailMailboxCapabilities2_Vtbl { pub CanDeleteFolder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub CanMoveFolder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailMailboxCapabilities3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailMailboxCapabilities3 { - type Vtable = IEmailMailboxCapabilities3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailMailboxCapabilities3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf690e944_56f2_45aa_872c_0ce9f3db0b5c); -} +::windows_core::imp::com_interface!(IEmailMailboxCapabilities3, IEmailMailboxCapabilities3_Vtbl, 0xf690e944_56f2_45aa_872c_0ce9f3db0b5c); #[repr(C)] #[doc(hidden)] pub struct IEmailMailboxCapabilities3_Vtbl { @@ -601,16 +385,7 @@ pub struct IEmailMailboxCapabilities3_Vtbl { pub SetCanDeleteFolder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, pub SetCanMoveFolder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailMailboxChange(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailMailboxChange { - type Vtable = IEmailMailboxChange_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailMailboxChange { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x61edf54b_11ef_400c_adde_8cde65c85e66); -} +::windows_core::imp::com_interface!(IEmailMailboxChange, IEmailMailboxChange_Vtbl, 0x61edf54b_11ef_400c_adde_8cde65c85e66); #[repr(C)] #[doc(hidden)] pub struct IEmailMailboxChange_Vtbl { @@ -623,16 +398,7 @@ pub struct IEmailMailboxChange_Vtbl { pub Message: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Folder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailMailboxChangeReader(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailMailboxChangeReader { - type Vtable = IEmailMailboxChangeReader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailMailboxChangeReader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbdbd0ebb_c53d_4331_97be_be75a2146a75); -} +::windows_core::imp::com_interface!(IEmailMailboxChangeReader, IEmailMailboxChangeReader_Vtbl, 0xbdbd0ebb_c53d_4331_97be_be75a2146a75); #[repr(C)] #[doc(hidden)] pub struct IEmailMailboxChangeReader_Vtbl { @@ -644,16 +410,7 @@ pub struct IEmailMailboxChangeReader_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] ReadBatchAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailMailboxChangeTracker(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailMailboxChangeTracker { - type Vtable = IEmailMailboxChangeTracker_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailMailboxChangeTracker { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7ae48638_5166_42b7_8882_fd21c92bdd4b); -} +::windows_core::imp::com_interface!(IEmailMailboxChangeTracker, IEmailMailboxChangeTracker_Vtbl, 0x7ae48638_5166_42b7_8882_fd21c92bdd4b); #[repr(C)] #[doc(hidden)] pub struct IEmailMailboxChangeTracker_Vtbl { @@ -663,48 +420,21 @@ pub struct IEmailMailboxChangeTracker_Vtbl { pub GetChangeReader: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailMailboxChangedDeferral(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailMailboxChangedDeferral { - type Vtable = IEmailMailboxChangedDeferral_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailMailboxChangedDeferral { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x779a74c1_97c5_4b54_b30d_306232623e6d); -} +::windows_core::imp::com_interface!(IEmailMailboxChangedDeferral, IEmailMailboxChangedDeferral_Vtbl, 0x779a74c1_97c5_4b54_b30d_306232623e6d); #[repr(C)] #[doc(hidden)] pub struct IEmailMailboxChangedDeferral_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Complete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailMailboxChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailMailboxChangedEventArgs { - type Vtable = IEmailMailboxChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailMailboxChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3cfd5f6e_01d4_4e4a_a44c_b22dd42ec207); -} +::windows_core::imp::com_interface!(IEmailMailboxChangedEventArgs, IEmailMailboxChangedEventArgs_Vtbl, 0x3cfd5f6e_01d4_4e4a_a44c_b22dd42ec207); #[repr(C)] #[doc(hidden)] pub struct IEmailMailboxChangedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailMailboxCreateFolderResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailMailboxCreateFolderResult { - type Vtable = IEmailMailboxCreateFolderResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailMailboxCreateFolderResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb228557f_2885_4998_b595_8a2d374ce950); -} +::windows_core::imp::com_interface!(IEmailMailboxCreateFolderResult, IEmailMailboxCreateFolderResult_Vtbl, 0xb228557f_2885_4998_b595_8a2d374ce950); #[repr(C)] #[doc(hidden)] pub struct IEmailMailboxCreateFolderResult_Vtbl { @@ -712,16 +442,7 @@ pub struct IEmailMailboxCreateFolderResult_Vtbl { pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut EmailMailboxCreateFolderStatus) -> ::windows_core::HRESULT, pub Folder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailMailboxPolicies(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailMailboxPolicies { - type Vtable = IEmailMailboxPolicies_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailMailboxPolicies { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1f3345c5_1c3b_4dc7_b410_6373783e545d); -} +::windows_core::imp::com_interface!(IEmailMailboxPolicies, IEmailMailboxPolicies_Vtbl, 0x1f3345c5_1c3b_4dc7_b410_6373783e545d); #[repr(C)] #[doc(hidden)] pub struct IEmailMailboxPolicies_Vtbl { @@ -731,16 +452,7 @@ pub struct IEmailMailboxPolicies_Vtbl { pub RequiredSmimeEncryptionAlgorithm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RequiredSmimeSigningAlgorithm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailMailboxPolicies2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailMailboxPolicies2 { - type Vtable = IEmailMailboxPolicies2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailMailboxPolicies2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbab58afb_a14b_497c_a8e2_55eac29cc4b5); -} +::windows_core::imp::com_interface!(IEmailMailboxPolicies2, IEmailMailboxPolicies2_Vtbl, 0xbab58afb_a14b_497c_a8e2_55eac29cc4b5); #[repr(C)] #[doc(hidden)] pub struct IEmailMailboxPolicies2_Vtbl { @@ -748,16 +460,7 @@ pub struct IEmailMailboxPolicies2_Vtbl { pub MustEncryptSmimeMessages: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub MustSignSmimeMessages: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailMailboxPolicies3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailMailboxPolicies3 { - type Vtable = IEmailMailboxPolicies3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailMailboxPolicies3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbdd4a01f_4867_414a_81a2_803919c44191); -} +::windows_core::imp::com_interface!(IEmailMailboxPolicies3, IEmailMailboxPolicies3_Vtbl, 0xbdd4a01f_4867_414a_81a2_803919c44191); #[repr(C)] #[doc(hidden)] pub struct IEmailMailboxPolicies3_Vtbl { @@ -769,16 +472,7 @@ pub struct IEmailMailboxPolicies3_Vtbl { pub SetMustEncryptSmimeMessages: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, pub SetMustSignSmimeMessages: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailMailboxSyncManager(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailMailboxSyncManager { - type Vtable = IEmailMailboxSyncManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailMailboxSyncManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x517ac55a_3591_4b5d_85bc_c71dde862263); -} +::windows_core::imp::com_interface!(IEmailMailboxSyncManager, IEmailMailboxSyncManager_Vtbl, 0x517ac55a_3591_4b5d_85bc_c71dde862263); #[repr(C)] #[doc(hidden)] pub struct IEmailMailboxSyncManager_Vtbl { @@ -790,16 +484,7 @@ pub struct IEmailMailboxSyncManager_Vtbl { pub SyncStatusChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveSyncStatusChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailMailboxSyncManager2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailMailboxSyncManager2 { - type Vtable = IEmailMailboxSyncManager2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailMailboxSyncManager2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcd8dc97e_95c1_4f89_81b7_e6aecb6695fc); -} +::windows_core::imp::com_interface!(IEmailMailboxSyncManager2, IEmailMailboxSyncManager2_Vtbl, 0xcd8dc97e_95c1_4f89_81b7_e6aecb6695fc); #[repr(C)] #[doc(hidden)] pub struct IEmailMailboxSyncManager2_Vtbl { @@ -808,16 +493,7 @@ pub struct IEmailMailboxSyncManager2_Vtbl { pub SetLastSuccessfulSyncTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::Foundation::DateTime) -> ::windows_core::HRESULT, pub SetLastAttemptedSyncTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::Foundation::DateTime) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailManagerForUser(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailManagerForUser { - type Vtable = IEmailManagerForUser_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailManagerForUser { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf773de9f_3ca5_4b0f_90c1_156e40174ce5); -} +::windows_core::imp::com_interface!(IEmailManagerForUser, IEmailManagerForUser_Vtbl, 0xf773de9f_3ca5_4b0f_90c1_156e40174ce5); #[repr(C)] #[doc(hidden)] pub struct IEmailManagerForUser_Vtbl { @@ -829,48 +505,21 @@ pub struct IEmailManagerForUser_Vtbl { #[cfg(not(feature = "System"))] User: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailManagerStatics { - type Vtable = IEmailManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf5128654_55c5_4890_a824_216c2618ce7f); -} +::windows_core::imp::com_interface!(IEmailManagerStatics, IEmailManagerStatics_Vtbl, 0xf5128654_55c5_4890_a824_216c2618ce7f); #[repr(C)] #[doc(hidden)] pub struct IEmailManagerStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ShowComposeNewEmailAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, message: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailManagerStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailManagerStatics2 { - type Vtable = IEmailManagerStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailManagerStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xac052da3_b194_425d_b6d9_d0f04135eda2); -} +::windows_core::imp::com_interface!(IEmailManagerStatics2, IEmailManagerStatics2_Vtbl, 0xac052da3_b194_425d_b6d9_d0f04135eda2); #[repr(C)] #[doc(hidden)] pub struct IEmailManagerStatics2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub RequestStoreAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, accesstype: EmailStoreAccessType, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailManagerStatics3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailManagerStatics3 { - type Vtable = IEmailManagerStatics3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailManagerStatics3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4a722395_843e_4945_b3aa_349e07a362c5); -} +::windows_core::imp::com_interface!(IEmailManagerStatics3, IEmailManagerStatics3_Vtbl, 0x4a722395_843e_4945_b3aa_349e07a362c5); #[repr(C)] #[doc(hidden)] pub struct IEmailManagerStatics3_Vtbl { @@ -880,16 +529,7 @@ pub struct IEmailManagerStatics3_Vtbl { #[cfg(not(feature = "System"))] GetForUser: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailMeetingInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailMeetingInfo { - type Vtable = IEmailMeetingInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailMeetingInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x31c03fa9_7933_415f_a275_d165ba07026b); -} +::windows_core::imp::com_interface!(IEmailMeetingInfo, IEmailMeetingInfo_Vtbl, 0x31c03fa9_7933_415f_a275_d165ba07026b); #[repr(C)] #[doc(hidden)] pub struct IEmailMeetingInfo_Vtbl { @@ -927,32 +567,14 @@ pub struct IEmailMeetingInfo_Vtbl { pub StartTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::DateTime) -> ::windows_core::HRESULT, pub SetStartTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::Foundation::DateTime) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailMeetingInfo2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailMeetingInfo2 { - type Vtable = IEmailMeetingInfo2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailMeetingInfo2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7e59386d_b0d9_4fe5_867c_e31ed2b588b8); -} +::windows_core::imp::com_interface!(IEmailMeetingInfo2, IEmailMeetingInfo2_Vtbl, 0x7e59386d_b0d9_4fe5_867c_e31ed2b588b8); #[repr(C)] #[doc(hidden)] pub struct IEmailMeetingInfo2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub IsReportedOutOfDateByServer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailMessage(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailMessage { - type Vtable = IEmailMessage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailMessage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6c6d948d_80b5_48f8_b0b1_e04e430f44e5); -} +::windows_core::imp::com_interface!(IEmailMessage, IEmailMessage_Vtbl, 0x6c6d948d_80b5_48f8_b0b1_e04e430f44e5); #[repr(C)] #[doc(hidden)] pub struct IEmailMessage_Vtbl { @@ -978,16 +600,7 @@ pub struct IEmailMessage_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Attachments: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailMessage2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailMessage2 { - type Vtable = IEmailMessage2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailMessage2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfdc8248b_9f1a_44db_bd3c_65c384770f86); -} +::windows_core::imp::com_interface!(IEmailMessage2, IEmailMessage2_Vtbl, 0xfdc8248b_9f1a_44db_bd3c_65c384770f86); #[repr(C)] #[doc(hidden)] pub struct IEmailMessage2_Vtbl { @@ -1044,16 +657,7 @@ pub struct IEmailMessage2_Vtbl { #[cfg(not(feature = "Storage_Streams"))] SetBodyStream: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailMessage3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailMessage3 { - type Vtable = IEmailMessage3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailMessage3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa1ea675c_e598_4d29_a018_fc7b7eece0a1); -} +::windows_core::imp::com_interface!(IEmailMessage3, IEmailMessage3_Vtbl, 0xa1ea675c_e598_4d29_a018_fc7b7eece0a1); #[repr(C)] #[doc(hidden)] pub struct IEmailMessage3_Vtbl { @@ -1069,16 +673,7 @@ pub struct IEmailMessage3_Vtbl { pub SmimeKind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut EmailMessageSmimeKind) -> ::windows_core::HRESULT, pub SetSmimeKind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: EmailMessageSmimeKind) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailMessage4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailMessage4 { - type Vtable = IEmailMessage4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailMessage4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x317cf181_3e7f_4a05_8394_3e10336dd435); -} +::windows_core::imp::com_interface!(IEmailMessage4, IEmailMessage4_Vtbl, 0x317cf181_3e7f_4a05_8394_3e10336dd435); #[repr(C)] #[doc(hidden)] pub struct IEmailMessage4_Vtbl { @@ -1090,16 +685,7 @@ pub struct IEmailMessage4_Vtbl { pub SentRepresenting: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetSentRepresenting: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailMessageBatch(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailMessageBatch { - type Vtable = IEmailMessageBatch_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailMessageBatch { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x605cd08f_25d9_4f1b_9e51_0514c0149653); -} +::windows_core::imp::com_interface!(IEmailMessageBatch, IEmailMessageBatch_Vtbl, 0x605cd08f_25d9_4f1b_9e51_0514c0149653); #[repr(C)] #[doc(hidden)] pub struct IEmailMessageBatch_Vtbl { @@ -1110,32 +696,14 @@ pub struct IEmailMessageBatch_Vtbl { Messages: usize, pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut EmailBatchStatus) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailMessageReader(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailMessageReader { - type Vtable = IEmailMessageReader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailMessageReader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2f4abe9f_6213_4a85_a3b0_f92d1a839d19); -} +::windows_core::imp::com_interface!(IEmailMessageReader, IEmailMessageReader_Vtbl, 0x2f4abe9f_6213_4a85_a3b0_f92d1a839d19); #[repr(C)] #[doc(hidden)] pub struct IEmailMessageReader_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ReadBatchAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailQueryOptions(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailQueryOptions { - type Vtable = IEmailQueryOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailQueryOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x45504b9b_3e7f_4d52_b6dd_d6fd4e1fbd9a); -} +::windows_core::imp::com_interface!(IEmailQueryOptions, IEmailQueryOptions_Vtbl, 0x45504b9b_3e7f_4d52_b6dd_d6fd4e1fbd9a); #[repr(C)] #[doc(hidden)] pub struct IEmailQueryOptions_Vtbl { @@ -1152,16 +720,7 @@ pub struct IEmailQueryOptions_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] FolderIds: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailQueryOptionsFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailQueryOptionsFactory { - type Vtable = IEmailQueryOptionsFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailQueryOptionsFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x88f1a1b8_78ab_4ee8_b4e3_046d6e2fe5e2); -} +::windows_core::imp::com_interface!(IEmailQueryOptionsFactory, IEmailQueryOptionsFactory_Vtbl, 0x88f1a1b8_78ab_4ee8_b4e3_046d6e2fe5e2); #[repr(C)] #[doc(hidden)] pub struct IEmailQueryOptionsFactory_Vtbl { @@ -1169,16 +728,7 @@ pub struct IEmailQueryOptionsFactory_Vtbl { pub CreateWithText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, text: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateWithTextAndFields: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, text: ::std::mem::MaybeUninit<::windows_core::HSTRING>, fields: EmailQuerySearchFields, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailQueryTextSearch(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailQueryTextSearch { - type Vtable = IEmailQueryTextSearch_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailQueryTextSearch { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9fa0a288_3c5d_46a5_a6e2_31d6fd17e540); -} +::windows_core::imp::com_interface!(IEmailQueryTextSearch, IEmailQueryTextSearch_Vtbl, 0x9fa0a288_3c5d_46a5_a6e2_31d6fd17e540); #[repr(C)] #[doc(hidden)] pub struct IEmailQueryTextSearch_Vtbl { @@ -1190,16 +740,7 @@ pub struct IEmailQueryTextSearch_Vtbl { pub Text: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailRecipient(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailRecipient { - type Vtable = IEmailRecipient_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailRecipient { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcae825b3_4478_4814_b900_c902b5e19b53); -} +::windows_core::imp::com_interface!(IEmailRecipient, IEmailRecipient_Vtbl, 0xcae825b3_4478_4814_b900_c902b5e19b53); #[repr(C)] #[doc(hidden)] pub struct IEmailRecipient_Vtbl { @@ -1209,16 +750,7 @@ pub struct IEmailRecipient_Vtbl { pub Address: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailRecipientFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailRecipientFactory { - type Vtable = IEmailRecipientFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailRecipientFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5500b84d_c79a_4ef8_b909_722e18e3935d); -} +::windows_core::imp::com_interface!(IEmailRecipientFactory, IEmailRecipientFactory_Vtbl, 0x5500b84d_c79a_4ef8_b909_722e18e3935d); #[repr(C)] #[doc(hidden)] pub struct IEmailRecipientFactory_Vtbl { @@ -1226,16 +758,7 @@ pub struct IEmailRecipientFactory_Vtbl { pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, address: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateWithName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, address: ::std::mem::MaybeUninit<::windows_core::HSTRING>, name: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailRecipientResolutionResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailRecipientResolutionResult { - type Vtable = IEmailRecipientResolutionResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailRecipientResolutionResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x918338fa_8d8d_4573_80d1_07172a34b98d); -} +::windows_core::imp::com_interface!(IEmailRecipientResolutionResult, IEmailRecipientResolutionResult_Vtbl, 0x918338fa_8d8d_4573_80d1_07172a34b98d); #[repr(C)] #[doc(hidden)] pub struct IEmailRecipientResolutionResult_Vtbl { @@ -1246,16 +769,7 @@ pub struct IEmailRecipientResolutionResult_Vtbl { #[cfg(not(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates")))] PublicKeys: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailRecipientResolutionResult2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailRecipientResolutionResult2 { - type Vtable = IEmailRecipientResolutionResult2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailRecipientResolutionResult2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5e420bb6_ce5b_4bde_b9d4_e16da0b09fca); -} +::windows_core::imp::com_interface!(IEmailRecipientResolutionResult2, IEmailRecipientResolutionResult2_Vtbl, 0x5e420bb6_ce5b_4bde_b9d4_e16da0b09fca); #[repr(C)] #[doc(hidden)] pub struct IEmailRecipientResolutionResult2_Vtbl { @@ -1266,16 +780,7 @@ pub struct IEmailRecipientResolutionResult2_Vtbl { #[cfg(not(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates")))] SetPublicKeys: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailStore(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailStore { - type Vtable = IEmailStore_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailStore { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf803226e_9137_4f8b_a470_279ac3058eb6); -} +::windows_core::imp::com_interface!(IEmailStore, IEmailStore_Vtbl, 0xf803226e_9137_4f8b_a470_279ac3058eb6); #[repr(C)] #[doc(hidden)] pub struct IEmailStore_Vtbl { @@ -1295,16 +800,7 @@ pub struct IEmailStore_Vtbl { pub CreateMailboxAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, accountname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, accountaddress: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateMailboxInAccountAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, accountname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, accountaddress: ::std::mem::MaybeUninit<::windows_core::HSTRING>, userdataaccountid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailStoreNotificationTriggerDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailStoreNotificationTriggerDetails { - type Vtable = IEmailStoreNotificationTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailStoreNotificationTriggerDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xce17563c_46e6_43c9_96f7_facf7dd710cb); -} +::windows_core::imp::com_interface!(IEmailStoreNotificationTriggerDetails, IEmailStoreNotificationTriggerDetails_Vtbl, 0xce17563c_46e6_43c9_96f7_facf7dd710cb); #[repr(C)] #[doc(hidden)] pub struct IEmailStoreNotificationTriggerDetails_Vtbl { @@ -1313,6 +809,7 @@ pub struct IEmailStoreNotificationTriggerDetails_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EmailAttachment(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EmailAttachment, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EmailAttachment { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1345,111 +842,111 @@ impl EmailAttachment { #[cfg(feature = "Storage_Streams")] pub fn SetData(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetData)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetData)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn Id(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Id)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ContentId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ContentId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetContentId(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetContentId)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ContentLocation(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ContentLocation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetContentLocation(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetContentLocation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn DownloadState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DownloadState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDownloadState(&self, value: EmailAttachmentDownloadState) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDownloadState)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn EstimatedDownloadSizeInBytes(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).EstimatedDownloadSizeInBytes)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetEstimatedDownloadSizeInBytes(&self, value: u64) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetEstimatedDownloadSizeInBytes)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsFromBaseMessage(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsFromBaseMessage)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsInline(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsInline)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsInline(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsInline)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn MimeType(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MimeType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetMimeType(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMimeType)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn Create(filename: &::windows_core::HSTRING, data: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).Create)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(filename), data.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn Create2(filename: &::windows_core::HSTRING, data: P0, mimetype: &::windows_core::HSTRING) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), ::core::mem::transmute_copy(mimetype), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } #[doc(hidden)] @@ -1468,19 +965,17 @@ impl ::windows_core::RuntimeType for EmailAttachment { } unsafe impl ::windows_core::Interface for EmailAttachment { type Vtable = IEmailAttachment_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EmailAttachment { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EmailAttachment { const NAME: &'static str = "Windows.ApplicationModel.Email.EmailAttachment"; } -::windows_core::imp::interface_hierarchy!(EmailAttachment, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EmailAttachment {} unsafe impl ::core::marker::Sync for EmailAttachment {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EmailConversation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EmailConversation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EmailConversation { pub fn Id(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1597,19 +1092,17 @@ impl ::windows_core::RuntimeType for EmailConversation { } unsafe impl ::windows_core::Interface for EmailConversation { type Vtable = IEmailConversation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EmailConversation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EmailConversation { const NAME: &'static str = "Windows.ApplicationModel.Email.EmailConversation"; } -::windows_core::imp::interface_hierarchy!(EmailConversation, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EmailConversation {} unsafe impl ::core::marker::Sync for EmailConversation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EmailConversationBatch(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EmailConversationBatch, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EmailConversationBatch { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -1633,19 +1126,17 @@ impl ::windows_core::RuntimeType for EmailConversationBatch { } unsafe impl ::windows_core::Interface for EmailConversationBatch { type Vtable = IEmailConversationBatch_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EmailConversationBatch { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EmailConversationBatch { const NAME: &'static str = "Windows.ApplicationModel.Email.EmailConversationBatch"; } -::windows_core::imp::interface_hierarchy!(EmailConversationBatch, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EmailConversationBatch {} unsafe impl ::core::marker::Sync for EmailConversationBatch {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EmailConversationReader(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EmailConversationReader, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EmailConversationReader { pub fn ReadBatchAsync(&self) -> ::windows_core::Result> { let this = self; @@ -1660,19 +1151,17 @@ impl ::windows_core::RuntimeType for EmailConversationReader { } unsafe impl ::windows_core::Interface for EmailConversationReader { type Vtable = IEmailConversationReader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EmailConversationReader { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EmailConversationReader { const NAME: &'static str = "Windows.ApplicationModel.Email.EmailConversationReader"; } -::windows_core::imp::interface_hierarchy!(EmailConversationReader, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EmailConversationReader {} unsafe impl ::core::marker::Sync for EmailConversationReader {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EmailFolder(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EmailFolder, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EmailFolder { pub fn Id(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1860,19 +1349,17 @@ impl ::windows_core::RuntimeType for EmailFolder { } unsafe impl ::windows_core::Interface for EmailFolder { type Vtable = IEmailFolder_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EmailFolder { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EmailFolder { const NAME: &'static str = "Windows.ApplicationModel.Email.EmailFolder"; } -::windows_core::imp::interface_hierarchy!(EmailFolder, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EmailFolder {} unsafe impl ::core::marker::Sync for EmailFolder {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EmailIrmInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EmailIrmInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EmailIrmInfo { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2036,19 +1523,17 @@ impl ::windows_core::RuntimeType for EmailIrmInfo { } unsafe impl ::windows_core::Interface for EmailIrmInfo { type Vtable = IEmailIrmInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EmailIrmInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EmailIrmInfo { const NAME: &'static str = "Windows.ApplicationModel.Email.EmailIrmInfo"; } -::windows_core::imp::interface_hierarchy!(EmailIrmInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EmailIrmInfo {} unsafe impl ::core::marker::Sync for EmailIrmInfo {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EmailIrmTemplate(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EmailIrmTemplate, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EmailIrmTemplate { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2107,19 +1592,17 @@ impl ::windows_core::RuntimeType for EmailIrmTemplate { } unsafe impl ::windows_core::Interface for EmailIrmTemplate { type Vtable = IEmailIrmTemplate_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EmailIrmTemplate { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EmailIrmTemplate { const NAME: &'static str = "Windows.ApplicationModel.Email.EmailIrmTemplate"; } -::windows_core::imp::interface_hierarchy!(EmailIrmTemplate, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EmailIrmTemplate {} unsafe impl ::core::marker::Sync for EmailIrmTemplate {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EmailItemCounts(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EmailItemCounts, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EmailItemCounts { pub fn Flagged(&self) -> ::windows_core::Result { let this = self; @@ -2155,19 +1638,17 @@ impl ::windows_core::RuntimeType for EmailItemCounts { } unsafe impl ::windows_core::Interface for EmailItemCounts { type Vtable = IEmailItemCounts_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EmailItemCounts { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EmailItemCounts { const NAME: &'static str = "Windows.ApplicationModel.Email.EmailItemCounts"; } -::windows_core::imp::interface_hierarchy!(EmailItemCounts, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EmailItemCounts {} unsafe impl ::core::marker::Sync for EmailItemCounts {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EmailMailbox(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EmailMailbox, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EmailMailbox { pub fn Capabilities(&self) -> ::windows_core::Result { let this = self; @@ -2480,12 +1961,12 @@ impl EmailMailbox { 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::TryIntoParam>, + P1: ::windows_core::IntoParam>, { 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.try_into_param()?.abi(), ::core::mem::transmute_copy(subject), forwardheadertype, ::core::mem::transmute_copy(forwardheader), ::core::mem::transmute_copy(comment), &mut result__).from_abi(result__) + (::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__).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> @@ -2540,21 +2021,21 @@ impl EmailMailbox { } } pub fn LinkedMailboxId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).LinkedMailboxId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn NetworkAccountId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NetworkAccountId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn NetworkId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NetworkId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2564,56 +2045,56 @@ impl EmailMailbox { #[cfg(feature = "Foundation_Collections")] pub fn ResolveRecipientsAsync(&self, recipients: P0) -> ::windows_core::Result>> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ResolveRecipientsAsync)(::windows_core::Interface::as_raw(this), recipients.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Security_Cryptography_Certificates\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates"))] pub fn ValidateCertificatesAsync(&self, certificates: P0) -> ::windows_core::Result>> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ValidateCertificatesAsync)(::windows_core::Interface::as_raw(this), certificates.into_param().abi(), &mut result__).from_abi(result__) } } pub fn TryEmptyFolderAsync(&self, folderid: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryEmptyFolderAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(folderid), &mut result__).from_abi(result__) } } pub fn TryCreateFolderAsync(&self, parentfolderid: &::windows_core::HSTRING, name: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryCreateFolderAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(parentfolderid), ::core::mem::transmute_copy(name), &mut result__).from_abi(result__) } } pub fn TryDeleteFolderAsync(&self, folderid: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryDeleteFolderAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(folderid), &mut result__).from_abi(result__) } } pub fn RegisterSyncManagerAsync(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RegisterSyncManagerAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetChangeTracker(&self, identity: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetChangeTracker)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(identity), &mut result__).from_abi(result__) @@ -2625,19 +2106,17 @@ impl ::windows_core::RuntimeType for EmailMailbox { } unsafe impl ::windows_core::Interface for EmailMailbox { type Vtable = IEmailMailbox_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EmailMailbox { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EmailMailbox { const NAME: &'static str = "Windows.ApplicationModel.Email.EmailMailbox"; } -::windows_core::imp::interface_hierarchy!(EmailMailbox, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EmailMailbox {} unsafe impl ::core::marker::Sync for EmailMailbox {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EmailMailboxAction(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EmailMailboxAction, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EmailMailboxAction { pub fn Kind(&self) -> ::windows_core::Result { let this = self; @@ -2659,19 +2138,17 @@ impl ::windows_core::RuntimeType for EmailMailboxAction { } unsafe impl ::windows_core::Interface for EmailMailboxAction { type Vtable = IEmailMailboxAction_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EmailMailboxAction { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EmailMailboxAction { const NAME: &'static str = "Windows.ApplicationModel.Email.EmailMailboxAction"; } -::windows_core::imp::interface_hierarchy!(EmailMailboxAction, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EmailMailboxAction {} unsafe impl ::core::marker::Sync for EmailMailboxAction {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EmailMailboxAutoReply(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EmailMailboxAutoReply, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EmailMailboxAutoReply { pub fn IsEnabled(&self) -> ::windows_core::Result { let this = self; @@ -2701,19 +2178,17 @@ impl ::windows_core::RuntimeType for EmailMailboxAutoReply { } unsafe impl ::windows_core::Interface for EmailMailboxAutoReply { type Vtable = IEmailMailboxAutoReply_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EmailMailboxAutoReply { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EmailMailboxAutoReply { const NAME: &'static str = "Windows.ApplicationModel.Email.EmailMailboxAutoReply"; } -::windows_core::imp::interface_hierarchy!(EmailMailboxAutoReply, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EmailMailboxAutoReply {} unsafe impl ::core::marker::Sync for EmailMailboxAutoReply {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EmailMailboxAutoReplySettings(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EmailMailboxAutoReplySettings, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EmailMailboxAutoReplySettings { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2753,10 +2228,10 @@ impl EmailMailboxAutoReplySettings { } pub fn SetStartTime(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetStartTime)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetStartTime)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn EndTime(&self) -> ::windows_core::Result> { let this = self; @@ -2767,10 +2242,10 @@ impl EmailMailboxAutoReplySettings { } pub fn SetEndTime(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetEndTime)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetEndTime)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn InternalReply(&self) -> ::windows_core::Result { let this = self; @@ -2799,19 +2274,17 @@ impl ::windows_core::RuntimeType for EmailMailboxAutoReplySettings { } unsafe impl ::windows_core::Interface for EmailMailboxAutoReplySettings { type Vtable = IEmailMailboxAutoReplySettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EmailMailboxAutoReplySettings { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EmailMailboxAutoReplySettings { const NAME: &'static str = "Windows.ApplicationModel.Email.EmailMailboxAutoReplySettings"; } -::windows_core::imp::interface_hierarchy!(EmailMailboxAutoReplySettings, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EmailMailboxAutoReplySettings {} unsafe impl ::core::marker::Sync for EmailMailboxAutoReplySettings {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EmailMailboxCapabilities(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EmailMailboxCapabilities, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EmailMailboxCapabilities { pub fn CanForwardMeetings(&self) -> ::windows_core::Result { let this = self; @@ -2870,101 +2343,101 @@ impl EmailMailboxCapabilities { } } pub fn CanResolveRecipients(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CanResolveRecipients)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CanValidateCertificates(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CanValidateCertificates)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CanEmptyFolder(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CanEmptyFolder)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CanCreateFolder(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CanCreateFolder)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CanDeleteFolder(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CanDeleteFolder)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CanMoveFolder(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CanMoveFolder)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetCanForwardMeetings(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCanForwardMeetings)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn SetCanGetAndSetExternalAutoReplies(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCanGetAndSetExternalAutoReplies)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn SetCanGetAndSetInternalAutoReplies(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCanGetAndSetInternalAutoReplies)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn SetCanUpdateMeetingResponses(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCanUpdateMeetingResponses)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn SetCanServerSearchFolders(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCanServerSearchFolders)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn SetCanServerSearchMailbox(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCanServerSearchMailbox)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn SetCanProposeNewTimeForMeetings(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCanProposeNewTimeForMeetings)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn SetCanSmartSend(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCanSmartSend)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn SetCanResolveRecipients(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCanResolveRecipients)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn SetCanValidateCertificates(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCanValidateCertificates)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn SetCanEmptyFolder(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCanEmptyFolder)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn SetCanCreateFolder(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCanCreateFolder)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn SetCanDeleteFolder(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCanDeleteFolder)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn SetCanMoveFolder(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCanMoveFolder)(::windows_core::Interface::as_raw(this), value).ok() } } } @@ -2973,19 +2446,17 @@ impl ::windows_core::RuntimeType for EmailMailboxCapabilities { } unsafe impl ::windows_core::Interface for EmailMailboxCapabilities { type Vtable = IEmailMailboxCapabilities_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EmailMailboxCapabilities { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EmailMailboxCapabilities { const NAME: &'static str = "Windows.ApplicationModel.Email.EmailMailboxCapabilities"; } -::windows_core::imp::interface_hierarchy!(EmailMailboxCapabilities, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EmailMailboxCapabilities {} unsafe impl ::core::marker::Sync for EmailMailboxCapabilities {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EmailMailboxChange(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EmailMailboxChange, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EmailMailboxChange { pub fn ChangeType(&self) -> ::windows_core::Result { let this = self; @@ -3023,19 +2494,17 @@ impl ::windows_core::RuntimeType for EmailMailboxChange { } unsafe impl ::windows_core::Interface for EmailMailboxChange { type Vtable = IEmailMailboxChange_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EmailMailboxChange { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EmailMailboxChange { const NAME: &'static str = "Windows.ApplicationModel.Email.EmailMailboxChange"; } -::windows_core::imp::interface_hierarchy!(EmailMailboxChange, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EmailMailboxChange {} unsafe impl ::core::marker::Sync for EmailMailboxChange {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EmailMailboxChangeReader(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EmailMailboxChangeReader, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EmailMailboxChangeReader { pub fn AcceptChanges(&self) -> ::windows_core::Result<()> { let this = self; @@ -3063,19 +2532,17 @@ impl ::windows_core::RuntimeType for EmailMailboxChangeReader { } unsafe impl ::windows_core::Interface for EmailMailboxChangeReader { type Vtable = IEmailMailboxChangeReader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EmailMailboxChangeReader { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EmailMailboxChangeReader { const NAME: &'static str = "Windows.ApplicationModel.Email.EmailMailboxChangeReader"; } -::windows_core::imp::interface_hierarchy!(EmailMailboxChangeReader, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EmailMailboxChangeReader {} unsafe impl ::core::marker::Sync for EmailMailboxChangeReader {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EmailMailboxChangeTracker(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EmailMailboxChangeTracker, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EmailMailboxChangeTracker { pub fn IsTracking(&self) -> ::windows_core::Result { let this = self; @@ -3105,19 +2572,17 @@ impl ::windows_core::RuntimeType for EmailMailboxChangeTracker { } unsafe impl ::windows_core::Interface for EmailMailboxChangeTracker { type Vtable = IEmailMailboxChangeTracker_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EmailMailboxChangeTracker { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EmailMailboxChangeTracker { const NAME: &'static str = "Windows.ApplicationModel.Email.EmailMailboxChangeTracker"; } -::windows_core::imp::interface_hierarchy!(EmailMailboxChangeTracker, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EmailMailboxChangeTracker {} unsafe impl ::core::marker::Sync for EmailMailboxChangeTracker {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EmailMailboxChangedDeferral(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EmailMailboxChangedDeferral, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EmailMailboxChangedDeferral { pub fn Complete(&self) -> ::windows_core::Result<()> { let this = self; @@ -3129,19 +2594,17 @@ impl ::windows_core::RuntimeType for EmailMailboxChangedDeferral { } unsafe impl ::windows_core::Interface for EmailMailboxChangedDeferral { type Vtable = IEmailMailboxChangedDeferral_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EmailMailboxChangedDeferral { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EmailMailboxChangedDeferral { const NAME: &'static str = "Windows.ApplicationModel.Email.EmailMailboxChangedDeferral"; } -::windows_core::imp::interface_hierarchy!(EmailMailboxChangedDeferral, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EmailMailboxChangedDeferral {} unsafe impl ::core::marker::Sync for EmailMailboxChangedDeferral {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EmailMailboxChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EmailMailboxChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EmailMailboxChangedEventArgs { pub fn GetDeferral(&self) -> ::windows_core::Result { let this = self; @@ -3156,19 +2619,17 @@ impl ::windows_core::RuntimeType for EmailMailboxChangedEventArgs { } unsafe impl ::windows_core::Interface for EmailMailboxChangedEventArgs { type Vtable = IEmailMailboxChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EmailMailboxChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EmailMailboxChangedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Email.EmailMailboxChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(EmailMailboxChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EmailMailboxChangedEventArgs {} unsafe impl ::core::marker::Sync for EmailMailboxChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EmailMailboxCreateFolderResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EmailMailboxCreateFolderResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EmailMailboxCreateFolderResult { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -3190,19 +2651,17 @@ impl ::windows_core::RuntimeType for EmailMailboxCreateFolderResult { } unsafe impl ::windows_core::Interface for EmailMailboxCreateFolderResult { type Vtable = IEmailMailboxCreateFolderResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EmailMailboxCreateFolderResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EmailMailboxCreateFolderResult { const NAME: &'static str = "Windows.ApplicationModel.Email.EmailMailboxCreateFolderResult"; } -::windows_core::imp::interface_hierarchy!(EmailMailboxCreateFolderResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EmailMailboxCreateFolderResult {} unsafe impl ::core::marker::Sync for EmailMailboxCreateFolderResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EmailMailboxPolicies(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EmailMailboxPolicies, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EmailMailboxPolicies { pub fn AllowedSmimeEncryptionAlgorithmNegotiation(&self) -> ::windows_core::Result { let this = self; @@ -3233,47 +2692,47 @@ impl EmailMailboxPolicies { } } pub fn MustEncryptSmimeMessages(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MustEncryptSmimeMessages)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn MustSignSmimeMessages(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MustSignSmimeMessages)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetAllowedSmimeEncryptionAlgorithmNegotiation(&self, value: EmailMailboxAllowedSmimeEncryptionAlgorithmNegotiation) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetAllowedSmimeEncryptionAlgorithmNegotiation)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn SetAllowSmimeSoftCertificates(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetAllowSmimeSoftCertificates)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn SetRequiredSmimeEncryptionAlgorithm(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetRequiredSmimeEncryptionAlgorithm)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn SetRequiredSmimeSigningAlgorithm(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetRequiredSmimeSigningAlgorithm)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn SetMustEncryptSmimeMessages(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMustEncryptSmimeMessages)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn SetMustSignSmimeMessages(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMustSignSmimeMessages)(::windows_core::Interface::as_raw(this), value).ok() } } } @@ -3282,19 +2741,17 @@ impl ::windows_core::RuntimeType for EmailMailboxPolicies { } unsafe impl ::windows_core::Interface for EmailMailboxPolicies { type Vtable = IEmailMailboxPolicies_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EmailMailboxPolicies { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EmailMailboxPolicies { const NAME: &'static str = "Windows.ApplicationModel.Email.EmailMailboxPolicies"; } -::windows_core::imp::interface_hierarchy!(EmailMailboxPolicies, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EmailMailboxPolicies {} unsafe impl ::core::marker::Sync for EmailMailboxPolicies {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EmailMailboxSyncManager(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EmailMailboxSyncManager, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EmailMailboxSyncManager { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -3339,15 +2796,15 @@ impl EmailMailboxSyncManager { unsafe { (::windows_core::Interface::vtable(this).RemoveSyncStatusChanged)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn SetStatus(&self, value: EmailMailboxSyncStatus) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetStatus)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn SetLastSuccessfulSyncTime(&self, value: super::super::Foundation::DateTime) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetLastSuccessfulSyncTime)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn SetLastAttemptedSyncTime(&self, value: super::super::Foundation::DateTime) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetLastAttemptedSyncTime)(::windows_core::Interface::as_raw(this), value).ok() } } } @@ -3356,14 +2813,11 @@ impl ::windows_core::RuntimeType for EmailMailboxSyncManager { } unsafe impl ::windows_core::Interface for EmailMailboxSyncManager { type Vtable = IEmailMailboxSyncManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EmailMailboxSyncManager { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EmailMailboxSyncManager { const NAME: &'static str = "Windows.ApplicationModel.Email.EmailMailboxSyncManager"; } -::windows_core::imp::interface_hierarchy!(EmailMailboxSyncManager, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EmailMailboxSyncManager {} unsafe impl ::core::marker::Sync for EmailMailboxSyncManager {} pub struct EmailManager; @@ -3416,6 +2870,7 @@ impl ::windows_core::RuntimeName for EmailManager { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EmailManagerForUser(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EmailManagerForUser, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EmailManagerForUser { pub fn ShowComposeNewEmailAsync(&self, message: P0) -> ::windows_core::Result where @@ -3449,19 +2904,17 @@ impl ::windows_core::RuntimeType for EmailManagerForUser { } unsafe impl ::windows_core::Interface for EmailManagerForUser { type Vtable = IEmailManagerForUser_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EmailManagerForUser { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EmailManagerForUser { const NAME: &'static str = "Windows.ApplicationModel.Email.EmailManagerForUser"; } -::windows_core::imp::interface_hierarchy!(EmailManagerForUser, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EmailManagerForUser {} unsafe impl ::core::marker::Sync for EmailManagerForUser {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EmailMeetingInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EmailMeetingInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EmailMeetingInfo { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -3501,10 +2954,10 @@ impl EmailMeetingInfo { } pub fn SetAppointmentOriginalStartTime(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetAppointmentOriginalStartTime)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetAppointmentOriginalStartTime)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn Duration(&self) -> ::windows_core::Result { let this = self; @@ -3559,10 +3012,10 @@ impl EmailMeetingInfo { } pub fn SetProposedStartTime(&self, proposedstarttime: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetProposedStartTime)(::windows_core::Interface::as_raw(this), proposedstarttime.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetProposedStartTime)(::windows_core::Interface::as_raw(this), proposedstarttime.into_param().abi()).ok() } } pub fn ProposedDuration(&self) -> ::windows_core::Result> { let this = self; @@ -3573,10 +3026,10 @@ impl EmailMeetingInfo { } pub fn SetProposedDuration(&self, duration: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetProposedDuration)(::windows_core::Interface::as_raw(this), duration.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetProposedDuration)(::windows_core::Interface::as_raw(this), duration.into_param().abi()).ok() } } pub fn RecurrenceStartTime(&self) -> ::windows_core::Result> { let this = self; @@ -3587,10 +3040,10 @@ impl EmailMeetingInfo { } pub fn SetRecurrenceStartTime(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetRecurrenceStartTime)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetRecurrenceStartTime)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } #[doc = "Required features: `\"ApplicationModel_Appointments\"`"] #[cfg(feature = "ApplicationModel_Appointments")] @@ -3633,7 +3086,7 @@ impl EmailMeetingInfo { unsafe { (::windows_core::Interface::vtable(this).SetStartTime)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsReportedOutOfDateByServer(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsReportedOutOfDateByServer)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3645,19 +3098,17 @@ impl ::windows_core::RuntimeType for EmailMeetingInfo { } unsafe impl ::windows_core::Interface for EmailMeetingInfo { type Vtable = IEmailMeetingInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EmailMeetingInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EmailMeetingInfo { const NAME: &'static str = "Windows.ApplicationModel.Email.EmailMeetingInfo"; } -::windows_core::imp::interface_hierarchy!(EmailMeetingInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EmailMeetingInfo {} unsafe impl ::core::marker::Sync for EmailMeetingInfo {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EmailMessage(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EmailMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EmailMessage { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -3725,122 +3176,122 @@ impl EmailMessage { } } pub fn Id(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Id)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn RemoteId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RemoteId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetRemoteId(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRemoteId)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn MailboxId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MailboxId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ConversationId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ConversationId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn FolderId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FolderId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn AllowInternetImages(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AllowInternetImages)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetAllowInternetImages(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetAllowInternetImages)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn ChangeNumber(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ChangeNumber)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn DownloadState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DownloadState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDownloadState(&self, value: EmailMessageDownloadState) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDownloadState)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn EstimatedDownloadSizeInBytes(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).EstimatedDownloadSizeInBytes)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetEstimatedDownloadSizeInBytes(&self, value: u32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetEstimatedDownloadSizeInBytes)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn FlagState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FlagState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetFlagState(&self, value: EmailFlagState) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetFlagState)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn HasPartialBodies(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).HasPartialBodies)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Importance(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Importance)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetImportance(&self, value: EmailImportance) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetImportance)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn InResponseToMessageId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).InResponseToMessageId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IrmInfo(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IrmInfo)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3850,105 +3301,105 @@ impl EmailMessage { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn IsDraftMessage(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsDraftMessage)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsRead(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsRead)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsRead(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsRead)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsSeen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsSeen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsSeen(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsSeen)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsServerSearchMessage(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsServerSearchMessage)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsSmartSendable(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsSmartSendable)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn MessageClass(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MessageClass)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetMessageClass(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMessageClass)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn NormalizedSubject(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NormalizedSubject)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn OriginalCodePage(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OriginalCodePage)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetOriginalCodePage(&self, value: i32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetOriginalCodePage)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Preview(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Preview)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetPreview(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetPreview)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn LastResponseKind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).LastResponseKind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetLastResponseKind(&self, value: EmailMessageResponseKind) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetLastResponseKind)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Sender(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Sender)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3958,11 +3409,11 @@ impl EmailMessage { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn SentTime(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SentTime)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3970,13 +3421,13 @@ impl EmailMessage { } pub fn SetSentTime(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetSentTime)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn MeetingInfo(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MeetingInfo)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3986,13 +3437,13 @@ impl EmailMessage { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn GetBodyStream(&self, r#type: EmailMessageBodyKind) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetBodyStream)(::windows_core::Interface::as_raw(this), r#type, &mut result__).from_abi(result__) @@ -4002,15 +3453,15 @@ impl EmailMessage { #[cfg(feature = "Storage_Streams")] pub fn SetBodyStream(&self, r#type: EmailMessageBodyKind, stream: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetBodyStream)(::windows_core::Interface::as_raw(this), r#type, stream.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn SmimeData(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SmimeData)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4020,33 +3471,33 @@ impl EmailMessage { #[cfg(feature = "Storage_Streams")] pub fn SetSmimeData(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetSmimeData)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn SmimeKind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SmimeKind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetSmimeKind(&self, value: EmailMessageSmimeKind) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetSmimeKind)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn ReplyTo(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ReplyTo)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SentRepresenting(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SentRepresenting)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4056,7 +3507,7 @@ impl EmailMessage { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } } @@ -4065,19 +3516,17 @@ impl ::windows_core::RuntimeType for EmailMessage { } unsafe impl ::windows_core::Interface for EmailMessage { type Vtable = IEmailMessage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EmailMessage { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EmailMessage { const NAME: &'static str = "Windows.ApplicationModel.Email.EmailMessage"; } -::windows_core::imp::interface_hierarchy!(EmailMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EmailMessage {} unsafe impl ::core::marker::Sync for EmailMessage {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EmailMessageBatch(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EmailMessageBatch, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EmailMessageBatch { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -4101,19 +3550,17 @@ impl ::windows_core::RuntimeType for EmailMessageBatch { } unsafe impl ::windows_core::Interface for EmailMessageBatch { type Vtable = IEmailMessageBatch_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EmailMessageBatch { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EmailMessageBatch { const NAME: &'static str = "Windows.ApplicationModel.Email.EmailMessageBatch"; } -::windows_core::imp::interface_hierarchy!(EmailMessageBatch, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EmailMessageBatch {} unsafe impl ::core::marker::Sync for EmailMessageBatch {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EmailMessageReader(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EmailMessageReader, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EmailMessageReader { pub fn ReadBatchAsync(&self) -> ::windows_core::Result> { let this = self; @@ -4128,19 +3575,17 @@ impl ::windows_core::RuntimeType for EmailMessageReader { } unsafe impl ::windows_core::Interface for EmailMessageReader { type Vtable = IEmailMessageReader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EmailMessageReader { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EmailMessageReader { const NAME: &'static str = "Windows.ApplicationModel.Email.EmailMessageReader"; } -::windows_core::imp::interface_hierarchy!(EmailMessageReader, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EmailMessageReader {} unsafe impl ::core::marker::Sync for EmailMessageReader {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EmailQueryOptions(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EmailQueryOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EmailQueryOptions { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -4221,19 +3666,17 @@ impl ::windows_core::RuntimeType for EmailQueryOptions { } unsafe impl ::windows_core::Interface for EmailQueryOptions { type Vtable = IEmailQueryOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EmailQueryOptions { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EmailQueryOptions { const NAME: &'static str = "Windows.ApplicationModel.Email.EmailQueryOptions"; } -::windows_core::imp::interface_hierarchy!(EmailQueryOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EmailQueryOptions {} unsafe impl ::core::marker::Sync for EmailQueryOptions {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EmailQueryTextSearch(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EmailQueryTextSearch, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EmailQueryTextSearch { pub fn Fields(&self) -> ::windows_core::Result { let this = self; @@ -4274,19 +3717,17 @@ impl ::windows_core::RuntimeType for EmailQueryTextSearch { } unsafe impl ::windows_core::Interface for EmailQueryTextSearch { type Vtable = IEmailQueryTextSearch_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EmailQueryTextSearch { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EmailQueryTextSearch { const NAME: &'static str = "Windows.ApplicationModel.Email.EmailQueryTextSearch"; } -::windows_core::imp::interface_hierarchy!(EmailQueryTextSearch, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EmailQueryTextSearch {} unsafe impl ::core::marker::Sync for EmailQueryTextSearch {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EmailRecipient(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EmailRecipient, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EmailRecipient { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -4340,19 +3781,17 @@ impl ::windows_core::RuntimeType for EmailRecipient { } unsafe impl ::windows_core::Interface for EmailRecipient { type Vtable = IEmailRecipient_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EmailRecipient { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EmailRecipient { const NAME: &'static str = "Windows.ApplicationModel.Email.EmailRecipient"; } -::windows_core::imp::interface_hierarchy!(EmailRecipient, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EmailRecipient {} unsafe impl ::core::marker::Sync for EmailRecipient {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EmailRecipientResolutionResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EmailRecipientResolutionResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EmailRecipientResolutionResult { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -4378,17 +3817,17 @@ impl EmailRecipientResolutionResult { } } pub fn SetStatus(&self, value: EmailRecipientResolutionStatus) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetStatus)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Security_Cryptography_Certificates\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates"))] pub fn SetPublicKeys(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetPublicKeys)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } } impl ::windows_core::RuntimeType for EmailRecipientResolutionResult { @@ -4396,19 +3835,17 @@ impl ::windows_core::RuntimeType for EmailRecipientResolutionResult { } unsafe impl ::windows_core::Interface for EmailRecipientResolutionResult { type Vtable = IEmailRecipientResolutionResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EmailRecipientResolutionResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EmailRecipientResolutionResult { const NAME: &'static str = "Windows.ApplicationModel.Email.EmailRecipientResolutionResult"; } -::windows_core::imp::interface_hierarchy!(EmailRecipientResolutionResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EmailRecipientResolutionResult {} unsafe impl ::core::marker::Sync for EmailRecipientResolutionResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EmailStore(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EmailStore, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EmailStore { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -4501,33 +3938,28 @@ impl ::windows_core::RuntimeType for EmailStore { } unsafe impl ::windows_core::Interface for EmailStore { type Vtable = IEmailStore_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EmailStore { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EmailStore { const NAME: &'static str = "Windows.ApplicationModel.Email.EmailStore"; } -::windows_core::imp::interface_hierarchy!(EmailStore, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EmailStore {} unsafe impl ::core::marker::Sync for EmailStore {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EmailStoreNotificationTriggerDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EmailStoreNotificationTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EmailStoreNotificationTriggerDetails {} impl ::windows_core::RuntimeType for EmailStoreNotificationTriggerDetails { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_class::(); } unsafe impl ::windows_core::Interface for EmailStoreNotificationTriggerDetails { type Vtable = IEmailStoreNotificationTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EmailStoreNotificationTriggerDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EmailStoreNotificationTriggerDetails { const NAME: &'static str = "Windows.ApplicationModel.Email.EmailStoreNotificationTriggerDetails"; } -::windows_core::imp::interface_hierarchy!(EmailStoreNotificationTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EmailStoreNotificationTriggerDetails {} unsafe impl ::core::marker::Sync for EmailStoreNotificationTriggerDetails {} #[repr(transparent)] 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 83702e080d..feda0f718f 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/ExtendedExecution/Foreground/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/ExtendedExecution/Foreground/mod.rs @@ -1,29 +1,11 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IExtendedExecutionForegroundRevokedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IExtendedExecutionForegroundRevokedEventArgs { - type Vtable = IExtendedExecutionForegroundRevokedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IExtendedExecutionForegroundRevokedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb07cd940_9557_aea4_2c99_bdd56d9be461); -} +::windows_core::imp::com_interface!(IExtendedExecutionForegroundRevokedEventArgs, IExtendedExecutionForegroundRevokedEventArgs_Vtbl, 0xb07cd940_9557_aea4_2c99_bdd56d9be461); #[repr(C)] #[doc(hidden)] pub struct IExtendedExecutionForegroundRevokedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Reason: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ExtendedExecutionForegroundRevokedReason) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IExtendedExecutionForegroundSession(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IExtendedExecutionForegroundSession { - type Vtable = IExtendedExecutionForegroundSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IExtendedExecutionForegroundSession { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfbf440e1_9d10_4201_b01e_c83275296f2e); -} +::windows_core::imp::com_interface!(IExtendedExecutionForegroundSession, IExtendedExecutionForegroundSession_Vtbl, 0xfbf440e1_9d10_4201_b01e_c83275296f2e); #[repr(C)] #[doc(hidden)] pub struct IExtendedExecutionForegroundSession_Vtbl { @@ -39,6 +21,7 @@ pub struct IExtendedExecutionForegroundSession_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ExtendedExecutionForegroundRevokedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ExtendedExecutionForegroundRevokedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ExtendedExecutionForegroundRevokedEventArgs { pub fn Reason(&self) -> ::windows_core::Result { let this = self; @@ -53,19 +36,18 @@ impl ::windows_core::RuntimeType for ExtendedExecutionForegroundRevokedEventArgs } unsafe impl ::windows_core::Interface for ExtendedExecutionForegroundRevokedEventArgs { type Vtable = IExtendedExecutionForegroundRevokedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ExtendedExecutionForegroundRevokedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ExtendedExecutionForegroundRevokedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.ExtendedExecution.Foreground.ExtendedExecutionForegroundRevokedEventArgs"; } -::windows_core::imp::interface_hierarchy!(ExtendedExecutionForegroundRevokedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ExtendedExecutionForegroundRevokedEventArgs {} unsafe impl ::core::marker::Sync for ExtendedExecutionForegroundRevokedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ExtendedExecutionForegroundSession(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ExtendedExecutionForegroundSession, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ExtendedExecutionForegroundSession, super::super::super::Foundation::IClosable); impl ExtendedExecutionForegroundSession { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -75,7 +57,7 @@ impl ExtendedExecutionForegroundSession { SHARED.call(callback) } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Description(&self) -> ::windows_core::Result<::windows_core::HSTRING> { @@ -127,15 +109,11 @@ impl ::windows_core::RuntimeType for ExtendedExecutionForegroundSession { } unsafe impl ::windows_core::Interface for ExtendedExecutionForegroundSession { type Vtable = IExtendedExecutionForegroundSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ExtendedExecutionForegroundSession { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ExtendedExecutionForegroundSession { const NAME: &'static str = "Windows.ApplicationModel.ExtendedExecution.Foreground.ExtendedExecutionForegroundSession"; } -::windows_core::imp::interface_hierarchy!(ExtendedExecutionForegroundSession, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ExtendedExecutionForegroundSession {} unsafe impl ::core::marker::Send for ExtendedExecutionForegroundSession {} unsafe impl ::core::marker::Sync for ExtendedExecutionForegroundSession {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/ApplicationModel/ExtendedExecution/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/ExtendedExecution/mod.rs index d3faa77704..687e562dd7 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/ExtendedExecution/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/ExtendedExecution/mod.rs @@ -1,32 +1,14 @@ #[cfg(feature = "ApplicationModel_ExtendedExecution_Foreground")] #[doc = "Required features: `\"ApplicationModel_ExtendedExecution_Foreground\"`"] pub mod Foreground; -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IExtendedExecutionRevokedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IExtendedExecutionRevokedEventArgs { - type Vtable = IExtendedExecutionRevokedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IExtendedExecutionRevokedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbfbc9f16_63b5_4c0b_aad6_828af5373ec3); -} +::windows_core::imp::com_interface!(IExtendedExecutionRevokedEventArgs, IExtendedExecutionRevokedEventArgs_Vtbl, 0xbfbc9f16_63b5_4c0b_aad6_828af5373ec3); #[repr(C)] #[doc(hidden)] pub struct IExtendedExecutionRevokedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Reason: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ExtendedExecutionRevokedReason) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IExtendedExecutionSession(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IExtendedExecutionSession { - type Vtable = IExtendedExecutionSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IExtendedExecutionSession { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaf908a2d_118b_48f1_9308_0c4fc41e200f); -} +::windows_core::imp::com_interface!(IExtendedExecutionSession, IExtendedExecutionSession_Vtbl, 0xaf908a2d_118b_48f1_9308_0c4fc41e200f); #[repr(C)] #[doc(hidden)] pub struct IExtendedExecutionSession_Vtbl { @@ -44,6 +26,7 @@ pub struct IExtendedExecutionSession_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ExtendedExecutionRevokedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ExtendedExecutionRevokedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ExtendedExecutionRevokedEventArgs { pub fn Reason(&self) -> ::windows_core::Result { let this = self; @@ -58,19 +41,18 @@ impl ::windows_core::RuntimeType for ExtendedExecutionRevokedEventArgs { } unsafe impl ::windows_core::Interface for ExtendedExecutionRevokedEventArgs { type Vtable = IExtendedExecutionRevokedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ExtendedExecutionRevokedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ExtendedExecutionRevokedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.ExtendedExecution.ExtendedExecutionRevokedEventArgs"; } -::windows_core::imp::interface_hierarchy!(ExtendedExecutionRevokedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ExtendedExecutionRevokedEventArgs {} unsafe impl ::core::marker::Sync for ExtendedExecutionRevokedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ExtendedExecutionSession(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ExtendedExecutionSession, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ExtendedExecutionSession, super::super::Foundation::IClosable); impl ExtendedExecutionSession { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -80,7 +62,7 @@ impl ExtendedExecutionSession { SHARED.call(callback) } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Reason(&self) -> ::windows_core::Result { @@ -143,15 +125,11 @@ impl ::windows_core::RuntimeType for ExtendedExecutionSession { } unsafe impl ::windows_core::Interface for ExtendedExecutionSession { type Vtable = IExtendedExecutionSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ExtendedExecutionSession { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ExtendedExecutionSession { const NAME: &'static str = "Windows.ApplicationModel.ExtendedExecution.ExtendedExecutionSession"; } -::windows_core::imp::interface_hierarchy!(ExtendedExecutionSession, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ExtendedExecutionSession {} unsafe impl ::core::marker::Send for ExtendedExecutionSession {} unsafe impl ::core::marker::Sync for ExtendedExecutionSession {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Holographic/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Holographic/mod.rs index 4eab4681e8..2835ddb38e 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Holographic/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Holographic/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHolographicKeyboard(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHolographicKeyboard { - type Vtable = IHolographicKeyboard_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHolographicKeyboard { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x07dd0893_aa21_5e6f_a91b_11b2b3fd7be3); -} +::windows_core::imp::com_interface!(IHolographicKeyboard, IHolographicKeyboard_Vtbl, 0x07dd0893_aa21_5e6f_a91b_11b2b3fd7be3); #[repr(C)] #[doc(hidden)] pub struct IHolographicKeyboard_Vtbl { @@ -22,16 +13,7 @@ pub struct IHolographicKeyboard_Vtbl { SetPlacementOverrideWithMaxSize: usize, pub ResetPlacementOverride: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHolographicKeyboardStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHolographicKeyboardStatics { - type Vtable = IHolographicKeyboardStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHolographicKeyboardStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb676c624_63d7_58cf_b06b_08baa032a23f); -} +::windows_core::imp::com_interface!(IHolographicKeyboardStatics, IHolographicKeyboardStatics_Vtbl, 0xb676c624_63d7_58cf_b06b_08baa032a23f); #[repr(C)] #[doc(hidden)] pub struct IHolographicKeyboardStatics_Vtbl { @@ -41,6 +23,7 @@ pub struct IHolographicKeyboardStatics_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HolographicKeyboard(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HolographicKeyboard, ::windows_core::IUnknown, ::windows_core::IInspectable); impl HolographicKeyboard { #[doc = "Required features: `\"Foundation_Numerics\"`, `\"Perception_Spatial\"`"] #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial"))] @@ -81,13 +64,10 @@ impl ::windows_core::RuntimeType for HolographicKeyboard { } unsafe impl ::windows_core::Interface for HolographicKeyboard { type Vtable = IHolographicKeyboard_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HolographicKeyboard { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HolographicKeyboard { const NAME: &'static str = "Windows.ApplicationModel.Holographic.HolographicKeyboard"; } -::windows_core::imp::interface_hierarchy!(HolographicKeyboard, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for HolographicKeyboard {} unsafe impl ::core::marker::Sync for HolographicKeyboard {} diff --git a/crates/libs/windows/src/Windows/ApplicationModel/LockScreen/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/LockScreen/mod.rs index d07ff6d4c3..05d47df090 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/LockScreen/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/LockScreen/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILockApplicationHost(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILockApplicationHost { - type Vtable = ILockApplicationHost_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILockApplicationHost { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x38ee31ad_d94f_4e7c_81fa_4f4436506281); -} +::windows_core::imp::com_interface!(ILockApplicationHost, ILockApplicationHost_Vtbl, 0x38ee31ad_d94f_4e7c_81fa_4f4436506281); #[repr(C)] #[doc(hidden)] pub struct ILockApplicationHost_Vtbl { @@ -16,32 +7,14 @@ pub struct ILockApplicationHost_Vtbl { pub Unlocking: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveUnlocking: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILockApplicationHostStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILockApplicationHostStatics { - type Vtable = ILockApplicationHostStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILockApplicationHostStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf48fab8e_23d7_4e63_96a1_666ff52d3b2c); -} +::windows_core::imp::com_interface!(ILockApplicationHostStatics, ILockApplicationHostStatics_Vtbl, 0xf48fab8e_23d7_4e63_96a1_666ff52d3b2c); #[repr(C)] #[doc(hidden)] pub struct ILockApplicationHostStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetForCurrentView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILockScreenBadge(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILockScreenBadge { - type Vtable = ILockScreenBadge_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILockScreenBadge { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe95105d9_2bff_4db0_9b4f_3824778b9c9a); -} +::windows_core::imp::com_interface!(ILockScreenBadge, ILockScreenBadge_Vtbl, 0xe95105d9_2bff_4db0_9b4f_3824778b9c9a); #[repr(C)] #[doc(hidden)] pub struct ILockScreenBadge_Vtbl { @@ -58,16 +31,7 @@ pub struct ILockScreenBadge_Vtbl { pub AutomationName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub LaunchApp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILockScreenInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILockScreenInfo { - type Vtable = ILockScreenInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILockScreenInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf59aa65c_9711_4dc9_a630_95b6cb8cdad0); -} +::windows_core::imp::com_interface!(ILockScreenInfo, ILockScreenInfo_Vtbl, 0xf59aa65c_9711_4dc9_a630_95b6cb8cdad0); #[repr(C)] #[doc(hidden)] pub struct ILockScreenInfo_Vtbl { @@ -97,32 +61,14 @@ pub struct ILockScreenInfo_Vtbl { #[cfg(not(feature = "Storage_Streams"))] AlarmIcon: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILockScreenUnlockingDeferral(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILockScreenUnlockingDeferral { - type Vtable = ILockScreenUnlockingDeferral_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILockScreenUnlockingDeferral { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7e7d1ad6_5203_43e7_9bd6_7c3947d1e3fe); -} +::windows_core::imp::com_interface!(ILockScreenUnlockingDeferral, ILockScreenUnlockingDeferral_Vtbl, 0x7e7d1ad6_5203_43e7_9bd6_7c3947d1e3fe); #[repr(C)] #[doc(hidden)] pub struct ILockScreenUnlockingDeferral_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Complete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILockScreenUnlockingEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILockScreenUnlockingEventArgs { - type Vtable = ILockScreenUnlockingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILockScreenUnlockingEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x44e6c007_75fb_4abb_9f8b_824748900c71); -} +::windows_core::imp::com_interface!(ILockScreenUnlockingEventArgs, ILockScreenUnlockingEventArgs_Vtbl, 0x44e6c007_75fb_4abb_9f8b_824748900c71); #[repr(C)] #[doc(hidden)] pub struct ILockScreenUnlockingEventArgs_Vtbl { @@ -133,6 +79,7 @@ pub struct ILockScreenUnlockingEventArgs_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LockApplicationHost(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LockApplicationHost, ::windows_core::IUnknown, ::windows_core::IInspectable); impl LockApplicationHost { pub fn RequestUnlock(&self) -> ::windows_core::Result<()> { let this = self; @@ -169,19 +116,17 @@ impl ::windows_core::RuntimeType for LockApplicationHost { } unsafe impl ::windows_core::Interface for LockApplicationHost { type Vtable = ILockApplicationHost_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LockApplicationHost { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LockApplicationHost { const NAME: &'static str = "Windows.ApplicationModel.LockScreen.LockApplicationHost"; } -::windows_core::imp::interface_hierarchy!(LockApplicationHost, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for LockApplicationHost {} unsafe impl ::core::marker::Sync for LockApplicationHost {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LockScreenBadge(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LockScreenBadge, ::windows_core::IUnknown, ::windows_core::IInspectable); impl LockScreenBadge { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] @@ -225,19 +170,17 @@ impl ::windows_core::RuntimeType for LockScreenBadge { } unsafe impl ::windows_core::Interface for LockScreenBadge { type Vtable = ILockScreenBadge_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LockScreenBadge { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LockScreenBadge { const NAME: &'static str = "Windows.ApplicationModel.LockScreen.LockScreenBadge"; } -::windows_core::imp::interface_hierarchy!(LockScreenBadge, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for LockScreenBadge {} unsafe impl ::core::marker::Sync for LockScreenBadge {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LockScreenInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LockScreenInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl LockScreenInfo { pub fn LockScreenImageChanged(&self, handler: P0) -> ::windows_core::Result where @@ -337,19 +280,17 @@ impl ::windows_core::RuntimeType for LockScreenInfo { } unsafe impl ::windows_core::Interface for LockScreenInfo { type Vtable = ILockScreenInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LockScreenInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LockScreenInfo { const NAME: &'static str = "Windows.ApplicationModel.LockScreen.LockScreenInfo"; } -::windows_core::imp::interface_hierarchy!(LockScreenInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for LockScreenInfo {} unsafe impl ::core::marker::Sync for LockScreenInfo {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LockScreenUnlockingDeferral(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LockScreenUnlockingDeferral, ::windows_core::IUnknown, ::windows_core::IInspectable); impl LockScreenUnlockingDeferral { pub fn Complete(&self) -> ::windows_core::Result<()> { let this = self; @@ -361,19 +302,17 @@ impl ::windows_core::RuntimeType for LockScreenUnlockingDeferral { } unsafe impl ::windows_core::Interface for LockScreenUnlockingDeferral { type Vtable = ILockScreenUnlockingDeferral_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LockScreenUnlockingDeferral { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LockScreenUnlockingDeferral { const NAME: &'static str = "Windows.ApplicationModel.LockScreen.LockScreenUnlockingDeferral"; } -::windows_core::imp::interface_hierarchy!(LockScreenUnlockingDeferral, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for LockScreenUnlockingDeferral {} unsafe impl ::core::marker::Sync for LockScreenUnlockingDeferral {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LockScreenUnlockingEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LockScreenUnlockingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl LockScreenUnlockingEventArgs { pub fn GetDeferral(&self) -> ::windows_core::Result { let this = self; @@ -395,13 +334,10 @@ impl ::windows_core::RuntimeType for LockScreenUnlockingEventArgs { } unsafe impl ::windows_core::Interface for LockScreenUnlockingEventArgs { type Vtable = ILockScreenUnlockingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LockScreenUnlockingEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LockScreenUnlockingEventArgs { const NAME: &'static str = "Windows.ApplicationModel.LockScreen.LockScreenUnlockingEventArgs"; } -::windows_core::imp::interface_hierarchy!(LockScreenUnlockingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for LockScreenUnlockingEventArgs {} unsafe impl ::core::marker::Sync for LockScreenUnlockingEventArgs {} 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 697739d303..274b941e46 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Payments/Provider/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Payments/Provider/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPaymentAppCanMakePaymentTriggerDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPaymentAppCanMakePaymentTriggerDetails { - type Vtable = IPaymentAppCanMakePaymentTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPaymentAppCanMakePaymentTriggerDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0ce201f0_8b93_4eb6_8c46_2e4a6c6a26f6); -} +::windows_core::imp::com_interface!(IPaymentAppCanMakePaymentTriggerDetails, IPaymentAppCanMakePaymentTriggerDetails_Vtbl, 0x0ce201f0_8b93_4eb6_8c46_2e4a6c6a26f6); #[repr(C)] #[doc(hidden)] pub struct IPaymentAppCanMakePaymentTriggerDetails_Vtbl { @@ -15,16 +6,7 @@ pub struct IPaymentAppCanMakePaymentTriggerDetails_Vtbl { pub Request: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ReportCanMakePaymentResult: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPaymentAppManager(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPaymentAppManager { - type Vtable = IPaymentAppManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPaymentAppManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0e47aa53_8521_4969_a957_df2538a3a98f); -} +::windows_core::imp::com_interface!(IPaymentAppManager, IPaymentAppManager_Vtbl, 0x0e47aa53_8521_4969_a957_df2538a3a98f); #[repr(C)] #[doc(hidden)] pub struct IPaymentAppManager_Vtbl { @@ -35,32 +17,14 @@ pub struct IPaymentAppManager_Vtbl { RegisterAsync: usize, pub UnregisterAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPaymentAppManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPaymentAppManagerStatics { - type Vtable = IPaymentAppManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPaymentAppManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa341ac28_fc89_4406_b4d9_34e7fe79dfb6); -} +::windows_core::imp::com_interface!(IPaymentAppManagerStatics, IPaymentAppManagerStatics_Vtbl, 0xa341ac28_fc89_4406_b4d9_34e7fe79dfb6); #[repr(C)] #[doc(hidden)] pub struct IPaymentAppManagerStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Current: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPaymentTransaction(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPaymentTransaction { - type Vtable = IPaymentTransaction_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPaymentTransaction { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x62581da0_26a5_4e9b_a6eb_66606cf001d3); -} +::windows_core::imp::com_interface!(IPaymentTransaction, IPaymentTransaction_Vtbl, 0x62581da0_26a5_4e9b_a6eb_66606cf001d3); #[repr(C)] #[doc(hidden)] pub struct IPaymentTransaction_Vtbl { @@ -77,32 +41,14 @@ pub struct IPaymentTransaction_Vtbl { pub AcceptAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, paymenttoken: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Reject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPaymentTransactionAcceptResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPaymentTransactionAcceptResult { - type Vtable = IPaymentTransactionAcceptResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPaymentTransactionAcceptResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x060e3276_d30c_4817_95a2_df7ae9273b56); -} +::windows_core::imp::com_interface!(IPaymentTransactionAcceptResult, IPaymentTransactionAcceptResult_Vtbl, 0x060e3276_d30c_4817_95a2_df7ae9273b56); #[repr(C)] #[doc(hidden)] pub struct IPaymentTransactionAcceptResult_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::PaymentRequestCompletionStatus) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPaymentTransactionStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPaymentTransactionStatics { - type Vtable = IPaymentTransactionStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPaymentTransactionStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8d639750_ee0a_4df5_9b1e_1c0f9ec59881); -} +::windows_core::imp::com_interface!(IPaymentTransactionStatics, IPaymentTransactionStatics_Vtbl, 0x8d639750_ee0a_4df5_9b1e_1c0f9ec59881); #[repr(C)] #[doc(hidden)] pub struct IPaymentTransactionStatics_Vtbl { @@ -112,6 +58,7 @@ pub struct IPaymentTransactionStatics_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PaymentAppCanMakePaymentTriggerDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PaymentAppCanMakePaymentTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PaymentAppCanMakePaymentTriggerDetails { pub fn Request(&self) -> ::windows_core::Result { let this = self; @@ -133,30 +80,28 @@ impl ::windows_core::RuntimeType for PaymentAppCanMakePaymentTriggerDetails { } unsafe impl ::windows_core::Interface for PaymentAppCanMakePaymentTriggerDetails { type Vtable = IPaymentAppCanMakePaymentTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PaymentAppCanMakePaymentTriggerDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PaymentAppCanMakePaymentTriggerDetails { const NAME: &'static str = "Windows.ApplicationModel.Payments.Provider.PaymentAppCanMakePaymentTriggerDetails"; } -::windows_core::imp::interface_hierarchy!(PaymentAppCanMakePaymentTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PaymentAppCanMakePaymentTriggerDetails {} unsafe impl ::core::marker::Sync for PaymentAppCanMakePaymentTriggerDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PaymentAppManager(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PaymentAppManager, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PaymentAppManager { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn RegisterAsync(&self, supportedpaymentmethodids: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).RegisterAsync)(::windows_core::Interface::as_raw(this), supportedpaymentmethodids.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).RegisterAsync)(::windows_core::Interface::as_raw(this), supportedpaymentmethodids.into_param().abi(), &mut result__).from_abi(result__) } } pub fn UnregisterAsync(&self) -> ::windows_core::Result { @@ -183,19 +128,17 @@ impl ::windows_core::RuntimeType for PaymentAppManager { } unsafe impl ::windows_core::Interface for PaymentAppManager { type Vtable = IPaymentAppManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PaymentAppManager { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PaymentAppManager { const NAME: &'static str = "Windows.ApplicationModel.Payments.Provider.PaymentAppManager"; } -::windows_core::imp::interface_hierarchy!(PaymentAppManager, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PaymentAppManager {} unsafe impl ::core::marker::Sync for PaymentAppManager {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PaymentTransaction(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PaymentTransaction, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PaymentTransaction { pub fn PaymentRequest(&self) -> ::windows_core::Result { let this = self; @@ -288,19 +231,17 @@ impl ::windows_core::RuntimeType for PaymentTransaction { } unsafe impl ::windows_core::Interface for PaymentTransaction { type Vtable = IPaymentTransaction_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PaymentTransaction { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PaymentTransaction { const NAME: &'static str = "Windows.ApplicationModel.Payments.Provider.PaymentTransaction"; } -::windows_core::imp::interface_hierarchy!(PaymentTransaction, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PaymentTransaction {} unsafe impl ::core::marker::Sync for PaymentTransaction {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PaymentTransactionAcceptResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PaymentTransactionAcceptResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PaymentTransactionAcceptResult { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -315,13 +256,10 @@ impl ::windows_core::RuntimeType for PaymentTransactionAcceptResult { } unsafe impl ::windows_core::Interface for PaymentTransactionAcceptResult { type Vtable = IPaymentTransactionAcceptResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PaymentTransactionAcceptResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PaymentTransactionAcceptResult { const NAME: &'static str = "Windows.ApplicationModel.Payments.Provider.PaymentTransactionAcceptResult"; } -::windows_core::imp::interface_hierarchy!(PaymentTransactionAcceptResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PaymentTransactionAcceptResult {} unsafe impl ::core::marker::Sync for PaymentTransactionAcceptResult {} diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Payments/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Payments/mod.rs index 96f6fe5613..a66f75f9aa 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Payments/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Payments/mod.rs @@ -1,16 +1,7 @@ #[cfg(feature = "ApplicationModel_Payments_Provider")] #[doc = "Required features: `\"ApplicationModel_Payments_Provider\"`"] pub mod Provider; -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPaymentAddress(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPaymentAddress { - type Vtable = IPaymentAddress_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPaymentAddress { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5f2264e9_6f3a_4166_a018_0a0b06bb32b5); -} +::windows_core::imp::com_interface!(IPaymentAddress, IPaymentAddress_Vtbl, 0x5f2264e9_6f3a_4166_a018_0a0b06bb32b5); #[repr(C)] #[doc(hidden)] pub struct IPaymentAddress_Vtbl { @@ -48,48 +39,21 @@ pub struct IPaymentAddress_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Properties: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPaymentCanMakePaymentResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPaymentCanMakePaymentResult { - type Vtable = IPaymentCanMakePaymentResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPaymentCanMakePaymentResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7696fe55_d5d3_4d3d_b345_45591759c510); -} +::windows_core::imp::com_interface!(IPaymentCanMakePaymentResult, IPaymentCanMakePaymentResult_Vtbl, 0x7696fe55_d5d3_4d3d_b345_45591759c510); #[repr(C)] #[doc(hidden)] pub struct IPaymentCanMakePaymentResult_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut PaymentCanMakePaymentResultStatus) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPaymentCanMakePaymentResultFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPaymentCanMakePaymentResultFactory { - type Vtable = IPaymentCanMakePaymentResultFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPaymentCanMakePaymentResultFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbbdcaa3e_7d49_4f69_aa53_2a0f8164b7c9); -} +::windows_core::imp::com_interface!(IPaymentCanMakePaymentResultFactory, IPaymentCanMakePaymentResultFactory_Vtbl, 0xbbdcaa3e_7d49_4f69_aa53_2a0f8164b7c9); #[repr(C)] #[doc(hidden)] pub struct IPaymentCanMakePaymentResultFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: PaymentCanMakePaymentResultStatus, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPaymentCurrencyAmount(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPaymentCurrencyAmount { - type Vtable = IPaymentCurrencyAmount_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPaymentCurrencyAmount { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe3a3e9e0_b41f_4987_bdcb_071331f2daa4); -} +::windows_core::imp::com_interface!(IPaymentCurrencyAmount, IPaymentCurrencyAmount_Vtbl, 0xe3a3e9e0_b41f_4987_bdcb_071331f2daa4); #[repr(C)] #[doc(hidden)] pub struct IPaymentCurrencyAmount_Vtbl { @@ -101,16 +65,7 @@ pub struct IPaymentCurrencyAmount_Vtbl { pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPaymentCurrencyAmountFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPaymentCurrencyAmountFactory { - type Vtable = IPaymentCurrencyAmountFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPaymentCurrencyAmountFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3257d338_140c_4575_8535_f773178c09a7); -} +::windows_core::imp::com_interface!(IPaymentCurrencyAmountFactory, IPaymentCurrencyAmountFactory_Vtbl, 0x3257d338_140c_4575_8535_f773178c09a7); #[repr(C)] #[doc(hidden)] pub struct IPaymentCurrencyAmountFactory_Vtbl { @@ -118,16 +73,7 @@ pub struct IPaymentCurrencyAmountFactory_Vtbl { pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>, currency: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateWithCurrencySystem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>, currency: ::std::mem::MaybeUninit<::windows_core::HSTRING>, currencysystem: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPaymentDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPaymentDetails { - type Vtable = IPaymentDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPaymentDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x53bb2d7d_e0eb_4053_8eae_ce7c48e02945); -} +::windows_core::imp::com_interface!(IPaymentDetails, IPaymentDetails_Vtbl, 0x53bb2d7d_e0eb_4053_8eae_ce7c48e02945); #[repr(C)] #[doc(hidden)] pub struct IPaymentDetails_Vtbl { @@ -159,16 +105,7 @@ pub struct IPaymentDetails_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] SetModifiers: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPaymentDetailsFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPaymentDetailsFactory { - type Vtable = IPaymentDetailsFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPaymentDetailsFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcfe8afee_c0ea_4ca1_8bc7_6de67b1f3763); -} +::windows_core::imp::com_interface!(IPaymentDetailsFactory, IPaymentDetailsFactory_Vtbl, 0xcfe8afee_c0ea_4ca1_8bc7_6de67b1f3763); #[repr(C)] #[doc(hidden)] pub struct IPaymentDetailsFactory_Vtbl { @@ -179,16 +116,7 @@ pub struct IPaymentDetailsFactory_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] CreateWithDisplayItems: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPaymentDetailsModifier(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPaymentDetailsModifier { - type Vtable = IPaymentDetailsModifier_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPaymentDetailsModifier { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbe1c7d65_4323_41d7_b305_dfcb765f69de); -} +::windows_core::imp::com_interface!(IPaymentDetailsModifier, IPaymentDetailsModifier_Vtbl, 0xbe1c7d65_4323_41d7_b305_dfcb765f69de); #[repr(C)] #[doc(hidden)] pub struct IPaymentDetailsModifier_Vtbl { @@ -204,16 +132,7 @@ pub struct IPaymentDetailsModifier_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] AdditionalDisplayItems: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPaymentDetailsModifierFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPaymentDetailsModifierFactory { - type Vtable = IPaymentDetailsModifierFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPaymentDetailsModifierFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x79005286_54de_429c_9e4f_5dce6e10ebce); -} +::windows_core::imp::com_interface!(IPaymentDetailsModifierFactory, IPaymentDetailsModifierFactory_Vtbl, 0x79005286_54de_429c_9e4f_5dce6e10ebce); #[repr(C)] #[doc(hidden)] pub struct IPaymentDetailsModifierFactory_Vtbl { @@ -231,16 +150,7 @@ pub struct IPaymentDetailsModifierFactory_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] CreateWithAdditionalDisplayItemsAndJsonData: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPaymentItem(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPaymentItem { - type Vtable = IPaymentItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPaymentItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x685ac88b_79b2_4b76_9e03_a876223dfe72); -} +::windows_core::imp::com_interface!(IPaymentItem, IPaymentItem_Vtbl, 0x685ac88b_79b2_4b76_9e03_a876223dfe72); #[repr(C)] #[doc(hidden)] pub struct IPaymentItem_Vtbl { @@ -252,32 +162,14 @@ pub struct IPaymentItem_Vtbl { pub Pending: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetPending: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPaymentItemFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPaymentItemFactory { - type Vtable = IPaymentItemFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPaymentItemFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc6ab7ad8_2503_4d1d_a778_02b2e5927b2c); -} +::windows_core::imp::com_interface!(IPaymentItemFactory, IPaymentItemFactory_Vtbl, 0xc6ab7ad8_2503_4d1d_a778_02b2e5927b2c); #[repr(C)] #[doc(hidden)] pub struct IPaymentItemFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, label: ::std::mem::MaybeUninit<::windows_core::HSTRING>, amount: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPaymentMediator(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPaymentMediator { - type Vtable = IPaymentMediator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPaymentMediator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfb0ee829_ec0c_449a_83da_7ae3073365a2); -} +::windows_core::imp::com_interface!(IPaymentMediator, IPaymentMediator_Vtbl, 0xfb0ee829_ec0c_449a_83da_7ae3073365a2); #[repr(C)] #[doc(hidden)] pub struct IPaymentMediator_Vtbl { @@ -289,32 +181,14 @@ pub struct IPaymentMediator_Vtbl { pub SubmitPaymentRequestAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, paymentrequest: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SubmitPaymentRequestWithChangeHandlerAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, paymentrequest: *mut ::core::ffi::c_void, changehandler: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPaymentMediator2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPaymentMediator2 { - type Vtable = IPaymentMediator2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPaymentMediator2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xceef98f1_e407_4128_8e73_d93d5f822786); -} +::windows_core::imp::com_interface!(IPaymentMediator2, IPaymentMediator2_Vtbl, 0xceef98f1_e407_4128_8e73_d93d5f822786); #[repr(C)] #[doc(hidden)] pub struct IPaymentMediator2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CanMakePaymentAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, paymentrequest: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPaymentMerchantInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPaymentMerchantInfo { - type Vtable = IPaymentMerchantInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPaymentMerchantInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x63445050_0e94_4ed6_aacb_e6012bd327a7); -} +::windows_core::imp::com_interface!(IPaymentMerchantInfo, IPaymentMerchantInfo_Vtbl, 0x63445050_0e94_4ed6_aacb_e6012bd327a7); #[repr(C)] #[doc(hidden)] pub struct IPaymentMerchantInfo_Vtbl { @@ -322,32 +196,14 @@ pub struct IPaymentMerchantInfo_Vtbl { pub PackageFullName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Uri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPaymentMerchantInfoFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPaymentMerchantInfoFactory { - type Vtable = IPaymentMerchantInfoFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPaymentMerchantInfoFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9e89ced3_ccb7_4167_a8ec_e10ae96dbcd1); -} +::windows_core::imp::com_interface!(IPaymentMerchantInfoFactory, IPaymentMerchantInfoFactory_Vtbl, 0x9e89ced3_ccb7_4167_a8ec_e10ae96dbcd1); #[repr(C)] #[doc(hidden)] pub struct IPaymentMerchantInfoFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uri: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPaymentMethodData(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPaymentMethodData { - type Vtable = IPaymentMethodData_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPaymentMethodData { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd1d3caf4_de98_4129_b1b7_c3ad86237bf4); -} +::windows_core::imp::com_interface!(IPaymentMethodData, IPaymentMethodData_Vtbl, 0xd1d3caf4_de98_4129_b1b7_c3ad86237bf4); #[repr(C)] #[doc(hidden)] pub struct IPaymentMethodData_Vtbl { @@ -358,16 +214,7 @@ pub struct IPaymentMethodData_Vtbl { SupportedMethodIds: usize, pub JsonData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPaymentMethodDataFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPaymentMethodDataFactory { - type Vtable = IPaymentMethodDataFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPaymentMethodDataFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8addd27f_9baa_4a82_8342_a8210992a36b); -} +::windows_core::imp::com_interface!(IPaymentMethodDataFactory, IPaymentMethodDataFactory_Vtbl, 0x8addd27f_9baa_4a82_8342_a8210992a36b); #[repr(C)] #[doc(hidden)] pub struct IPaymentMethodDataFactory_Vtbl { @@ -381,16 +228,7 @@ pub struct IPaymentMethodDataFactory_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] CreateWithJsonData: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPaymentOptions(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPaymentOptions { - type Vtable = IPaymentOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPaymentOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaaa30854_1f2b_4365_8251_01b58915a5bc); -} +::windows_core::imp::com_interface!(IPaymentOptions, IPaymentOptions_Vtbl, 0xaaa30854_1f2b_4365_8251_01b58915a5bc); #[repr(C)] #[doc(hidden)] pub struct IPaymentOptions_Vtbl { @@ -406,16 +244,7 @@ pub struct IPaymentOptions_Vtbl { pub ShippingType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut PaymentShippingType) -> ::windows_core::HRESULT, pub SetShippingType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: PaymentShippingType) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPaymentRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPaymentRequest { - type Vtable = IPaymentRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPaymentRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb74942e1_ed7b_47eb_bc08_78cc5d6896b6); -} +::windows_core::imp::com_interface!(IPaymentRequest, IPaymentRequest_Vtbl, 0xb74942e1_ed7b_47eb_bc08_78cc5d6896b6); #[repr(C)] #[doc(hidden)] pub struct IPaymentRequest_Vtbl { @@ -428,32 +257,14 @@ pub struct IPaymentRequest_Vtbl { MethodData: usize, pub Options: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPaymentRequest2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPaymentRequest2 { - type Vtable = IPaymentRequest2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPaymentRequest2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb63ccfb5_5998_493e_a04c_67048a50f141); -} +::windows_core::imp::com_interface!(IPaymentRequest2, IPaymentRequest2_Vtbl, 0xb63ccfb5_5998_493e_a04c_67048a50f141); #[repr(C)] #[doc(hidden)] pub struct IPaymentRequest2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPaymentRequestChangedArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPaymentRequestChangedArgs { - type Vtable = IPaymentRequestChangedArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPaymentRequestChangedArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc6145e44_cd8b_4be4_b555_27c99194c0c5); -} +::windows_core::imp::com_interface!(IPaymentRequestChangedArgs, IPaymentRequestChangedArgs_Vtbl, 0xc6145e44_cd8b_4be4_b555_27c99194c0c5); #[repr(C)] #[doc(hidden)] pub struct IPaymentRequestChangedArgs_Vtbl { @@ -463,16 +274,7 @@ pub struct IPaymentRequestChangedArgs_Vtbl { pub SelectedShippingOption: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Acknowledge: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, changeresult: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPaymentRequestChangedResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPaymentRequestChangedResult { - type Vtable = IPaymentRequestChangedResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPaymentRequestChangedResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdf699e5c_16c4_47ad_9401_8440ec0757db); -} +::windows_core::imp::com_interface!(IPaymentRequestChangedResult, IPaymentRequestChangedResult_Vtbl, 0xdf699e5c_16c4_47ad_9401_8440ec0757db); #[repr(C)] #[doc(hidden)] pub struct IPaymentRequestChangedResult_Vtbl { @@ -484,16 +286,7 @@ pub struct IPaymentRequestChangedResult_Vtbl { pub UpdatedPaymentDetails: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetUpdatedPaymentDetails: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPaymentRequestChangedResultFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPaymentRequestChangedResultFactory { - type Vtable = IPaymentRequestChangedResultFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPaymentRequestChangedResultFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x08740f56_1d33_4431_814b_67ea24bf21db); -} +::windows_core::imp::com_interface!(IPaymentRequestChangedResultFactory, IPaymentRequestChangedResultFactory_Vtbl, 0x08740f56_1d33_4431_814b_67ea24bf21db); #[repr(C)] #[doc(hidden)] pub struct IPaymentRequestChangedResultFactory_Vtbl { @@ -501,16 +294,7 @@ pub struct IPaymentRequestChangedResultFactory_Vtbl { pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, changeacceptedbymerchant: bool, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateWithPaymentDetails: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, changeacceptedbymerchant: bool, updatedpaymentdetails: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPaymentRequestFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPaymentRequestFactory { - type Vtable = IPaymentRequestFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPaymentRequestFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3e8a79dc_6b74_42d3_b103_f0de35fb1848); -} +::windows_core::imp::com_interface!(IPaymentRequestFactory, IPaymentRequestFactory_Vtbl, 0x3e8a79dc_6b74_42d3_b103_f0de35fb1848); #[repr(C)] #[doc(hidden)] pub struct IPaymentRequestFactory_Vtbl { @@ -528,16 +312,7 @@ pub struct IPaymentRequestFactory_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] CreateWithMerchantInfoAndOptions: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPaymentRequestFactory2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPaymentRequestFactory2 { - type Vtable = IPaymentRequestFactory2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPaymentRequestFactory2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe6ce1325_a506_4372_b7ef_1a031d5662d1); -} +::windows_core::imp::com_interface!(IPaymentRequestFactory2, IPaymentRequestFactory2_Vtbl, 0xe6ce1325_a506_4372_b7ef_1a031d5662d1); #[repr(C)] #[doc(hidden)] pub struct IPaymentRequestFactory2_Vtbl { @@ -547,16 +322,7 @@ pub struct IPaymentRequestFactory2_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] CreateWithMerchantInfoOptionsAndId: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPaymentRequestSubmitResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPaymentRequestSubmitResult { - type Vtable = IPaymentRequestSubmitResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPaymentRequestSubmitResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7b9c3912_30f2_4e90_b249_8ce7d78ffe56); -} +::windows_core::imp::com_interface!(IPaymentRequestSubmitResult, IPaymentRequestSubmitResult_Vtbl, 0x7b9c3912_30f2_4e90_b249_8ce7d78ffe56); #[repr(C)] #[doc(hidden)] pub struct IPaymentRequestSubmitResult_Vtbl { @@ -564,16 +330,7 @@ pub struct IPaymentRequestSubmitResult_Vtbl { pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut PaymentRequestStatus) -> ::windows_core::HRESULT, pub Response: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPaymentResponse(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPaymentResponse { - type Vtable = IPaymentResponse_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPaymentResponse { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe1389457_8bd2_4888_9fa8_97985545108e); -} +::windows_core::imp::com_interface!(IPaymentResponse, IPaymentResponse_Vtbl, 0xe1389457_8bd2_4888_9fa8_97985545108e); #[repr(C)] #[doc(hidden)] pub struct IPaymentResponse_Vtbl { @@ -586,16 +343,7 @@ pub struct IPaymentResponse_Vtbl { pub PayerPhoneNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub CompleteAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, status: PaymentRequestCompletionStatus, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPaymentShippingOption(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPaymentShippingOption { - type Vtable = IPaymentShippingOption_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPaymentShippingOption { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x13372ada_9753_4574_8966_93145a76c7f9); -} +::windows_core::imp::com_interface!(IPaymentShippingOption, IPaymentShippingOption_Vtbl, 0x13372ada_9753_4574_8966_93145a76c7f9); #[repr(C)] #[doc(hidden)] pub struct IPaymentShippingOption_Vtbl { @@ -609,16 +357,7 @@ pub struct IPaymentShippingOption_Vtbl { pub IsSelected: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetIsSelected: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPaymentShippingOptionFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPaymentShippingOptionFactory { - type Vtable = IPaymentShippingOptionFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPaymentShippingOptionFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5de5f917_b2d7_446b_9d73_6123fbca3bc6); -} +::windows_core::imp::com_interface!(IPaymentShippingOptionFactory, IPaymentShippingOptionFactory_Vtbl, 0x5de5f917_b2d7_446b_9d73_6123fbca3bc6); #[repr(C)] #[doc(hidden)] pub struct IPaymentShippingOptionFactory_Vtbl { @@ -627,16 +366,7 @@ pub struct IPaymentShippingOptionFactory_Vtbl { pub CreateWithSelected: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, label: ::std::mem::MaybeUninit<::windows_core::HSTRING>, amount: *mut ::core::ffi::c_void, selected: bool, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateWithSelectedAndTag: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, label: ::std::mem::MaybeUninit<::windows_core::HSTRING>, amount: *mut ::core::ffi::c_void, selected: bool, tag: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPaymentToken(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPaymentToken { - type Vtable = IPaymentToken_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPaymentToken { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbbcac013_ccd0_41f2_b2a1_0a2e4b5dce25); -} +::windows_core::imp::com_interface!(IPaymentToken, IPaymentToken_Vtbl, 0xbbcac013_ccd0_41f2_b2a1_0a2e4b5dce25); #[repr(C)] #[doc(hidden)] pub struct IPaymentToken_Vtbl { @@ -644,16 +374,7 @@ pub struct IPaymentToken_Vtbl { pub PaymentMethodId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub JsonDetails: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPaymentTokenFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPaymentTokenFactory { - type Vtable = IPaymentTokenFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPaymentTokenFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x988cd7aa_4753_4904_8373_dd7b08b995c1); -} +::windows_core::imp::com_interface!(IPaymentTokenFactory, IPaymentTokenFactory_Vtbl, 0x988cd7aa_4753_4904_8373_dd7b08b995c1); #[repr(C)] #[doc(hidden)] pub struct IPaymentTokenFactory_Vtbl { @@ -664,6 +385,7 @@ pub struct IPaymentTokenFactory_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PaymentAddress(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PaymentAddress, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PaymentAddress { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -696,10 +418,10 @@ impl PaymentAddress { #[cfg(feature = "Foundation_Collections")] pub fn SetAddressLines(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetAddressLines)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetAddressLines)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn Region(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -815,19 +537,17 @@ impl ::windows_core::RuntimeType for PaymentAddress { } unsafe impl ::windows_core::Interface for PaymentAddress { type Vtable = IPaymentAddress_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PaymentAddress { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PaymentAddress { const NAME: &'static str = "Windows.ApplicationModel.Payments.PaymentAddress"; } -::windows_core::imp::interface_hierarchy!(PaymentAddress, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PaymentAddress {} unsafe impl ::core::marker::Sync for PaymentAddress {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PaymentCanMakePaymentResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PaymentCanMakePaymentResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PaymentCanMakePaymentResult { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -853,19 +573,17 @@ impl ::windows_core::RuntimeType for PaymentCanMakePaymentResult { } unsafe impl ::windows_core::Interface for PaymentCanMakePaymentResult { type Vtable = IPaymentCanMakePaymentResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PaymentCanMakePaymentResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PaymentCanMakePaymentResult { const NAME: &'static str = "Windows.ApplicationModel.Payments.PaymentCanMakePaymentResult"; } -::windows_core::imp::interface_hierarchy!(PaymentCanMakePaymentResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PaymentCanMakePaymentResult {} unsafe impl ::core::marker::Sync for PaymentCanMakePaymentResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PaymentCurrencyAmount(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PaymentCurrencyAmount, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PaymentCurrencyAmount { pub fn Currency(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -923,19 +641,17 @@ impl ::windows_core::RuntimeType for PaymentCurrencyAmount { } unsafe impl ::windows_core::Interface for PaymentCurrencyAmount { type Vtable = IPaymentCurrencyAmount_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PaymentCurrencyAmount { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PaymentCurrencyAmount { const NAME: &'static str = "Windows.ApplicationModel.Payments.PaymentCurrencyAmount"; } -::windows_core::imp::interface_hierarchy!(PaymentCurrencyAmount, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PaymentCurrencyAmount {} unsafe impl ::core::marker::Sync for PaymentCurrencyAmount {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PaymentDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PaymentDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PaymentDetails { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -971,10 +687,10 @@ impl PaymentDetails { #[cfg(feature = "Foundation_Collections")] pub fn SetDisplayItems(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetDisplayItems)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetDisplayItems)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -989,10 +705,10 @@ impl PaymentDetails { #[cfg(feature = "Foundation_Collections")] pub fn SetShippingOptions(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetShippingOptions)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetShippingOptions)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -1007,10 +723,10 @@ impl PaymentDetails { #[cfg(feature = "Foundation_Collections")] pub fn SetModifiers(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetModifiers)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetModifiers)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn Create(total: P0) -> ::windows_core::Result where @@ -1026,11 +742,11 @@ impl PaymentDetails { pub fn CreateWithDisplayItems(total: P0, displayitems: P1) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam>, + P1: ::windows_core::IntoParam>, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateWithDisplayItems)(::windows_core::Interface::as_raw(this), total.into_param().abi(), displayitems.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -1044,19 +760,17 @@ impl ::windows_core::RuntimeType for PaymentDetails { } unsafe impl ::windows_core::Interface for PaymentDetails { type Vtable = IPaymentDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PaymentDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PaymentDetails { const NAME: &'static str = "Windows.ApplicationModel.Payments.PaymentDetails"; } -::windows_core::imp::interface_hierarchy!(PaymentDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PaymentDetails {} unsafe impl ::core::marker::Sync for PaymentDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PaymentDetailsModifier(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PaymentDetailsModifier, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PaymentDetailsModifier { pub fn JsonData(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1094,38 +808,38 @@ impl PaymentDetailsModifier { #[cfg(feature = "Foundation_Collections")] pub fn Create(supportedmethodids: P0, total: P1) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, P1: ::windows_core::IntoParam, { Self::IPaymentDetailsModifierFactory(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).Create)(::windows_core::Interface::as_raw(this), supportedmethodids.try_into_param()?.abi(), total.into_param().abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).Create)(::windows_core::Interface::as_raw(this), supportedmethodids.into_param().abi(), total.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn CreateWithAdditionalDisplayItems(supportedmethodids: P0, total: P1, additionaldisplayitems: P2) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, P1: ::windows_core::IntoParam, - P2: ::windows_core::TryIntoParam>, + P2: ::windows_core::IntoParam>, { Self::IPaymentDetailsModifierFactory(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateWithAdditionalDisplayItems)(::windows_core::Interface::as_raw(this), supportedmethodids.try_into_param()?.abi(), total.into_param().abi(), additionaldisplayitems.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn CreateWithAdditionalDisplayItemsAndJsonData(supportedmethodids: P0, total: P1, additionaldisplayitems: P2, jsondata: &::windows_core::HSTRING) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, P1: ::windows_core::IntoParam, - P2: ::windows_core::TryIntoParam>, + P2: ::windows_core::IntoParam>, { Self::IPaymentDetailsModifierFactory(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateWithAdditionalDisplayItemsAndJsonData)(::windows_core::Interface::as_raw(this), supportedmethodids.try_into_param()?.abi(), total.into_param().abi(), additionaldisplayitems.try_into_param()?.abi(), ::core::mem::transmute_copy(jsondata), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } #[doc(hidden)] @@ -1139,19 +853,17 @@ impl ::windows_core::RuntimeType for PaymentDetailsModifier { } unsafe impl ::windows_core::Interface for PaymentDetailsModifier { type Vtable = IPaymentDetailsModifier_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PaymentDetailsModifier { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PaymentDetailsModifier { const NAME: &'static str = "Windows.ApplicationModel.Payments.PaymentDetailsModifier"; } -::windows_core::imp::interface_hierarchy!(PaymentDetailsModifier, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PaymentDetailsModifier {} unsafe impl ::core::marker::Sync for PaymentDetailsModifier {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PaymentItem(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PaymentItem, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PaymentItem { pub fn Label(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1209,19 +921,17 @@ impl ::windows_core::RuntimeType for PaymentItem { } unsafe impl ::windows_core::Interface for PaymentItem { type Vtable = IPaymentItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PaymentItem { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PaymentItem { const NAME: &'static str = "Windows.ApplicationModel.Payments.PaymentItem"; } -::windows_core::imp::interface_hierarchy!(PaymentItem, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PaymentItem {} unsafe impl ::core::marker::Sync for PaymentItem {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PaymentMediator(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PaymentMediator, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PaymentMediator { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1264,7 +974,7 @@ impl PaymentMediator { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -1276,19 +986,17 @@ impl ::windows_core::RuntimeType for PaymentMediator { } unsafe impl ::windows_core::Interface for PaymentMediator { type Vtable = IPaymentMediator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PaymentMediator { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PaymentMediator { const NAME: &'static str = "Windows.ApplicationModel.Payments.PaymentMediator"; } -::windows_core::imp::interface_hierarchy!(PaymentMediator, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PaymentMediator {} unsafe impl ::core::marker::Sync for PaymentMediator {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PaymentMerchantInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PaymentMerchantInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PaymentMerchantInfo { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1331,19 +1039,17 @@ impl ::windows_core::RuntimeType for PaymentMerchantInfo { } unsafe impl ::windows_core::Interface for PaymentMerchantInfo { type Vtable = IPaymentMerchantInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PaymentMerchantInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PaymentMerchantInfo { const NAME: &'static str = "Windows.ApplicationModel.Payments.PaymentMerchantInfo"; } -::windows_core::imp::interface_hierarchy!(PaymentMerchantInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PaymentMerchantInfo {} unsafe impl ::core::marker::Sync for PaymentMerchantInfo {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PaymentMethodData(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PaymentMethodData, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PaymentMethodData { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -1365,22 +1071,22 @@ impl PaymentMethodData { #[cfg(feature = "Foundation_Collections")] pub fn Create(supportedmethodids: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::IPaymentMethodDataFactory(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).Create)(::windows_core::Interface::as_raw(this), supportedmethodids.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).Create)(::windows_core::Interface::as_raw(this), supportedmethodids.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn CreateWithJsonData(supportedmethodids: P0, jsondata: &::windows_core::HSTRING) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::IPaymentMethodDataFactory(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateWithJsonData)(::windows_core::Interface::as_raw(this), supportedmethodids.try_into_param()?.abi(), ::core::mem::transmute_copy(jsondata), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateWithJsonData)(::windows_core::Interface::as_raw(this), supportedmethodids.into_param().abi(), ::core::mem::transmute_copy(jsondata), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -1394,19 +1100,17 @@ impl ::windows_core::RuntimeType for PaymentMethodData { } unsafe impl ::windows_core::Interface for PaymentMethodData { type Vtable = IPaymentMethodData_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PaymentMethodData { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PaymentMethodData { const NAME: &'static str = "Windows.ApplicationModel.Payments.PaymentMethodData"; } -::windows_core::imp::interface_hierarchy!(PaymentMethodData, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PaymentMethodData {} unsafe impl ::core::marker::Sync for PaymentMethodData {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PaymentOptions(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PaymentOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PaymentOptions { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1476,19 +1180,17 @@ impl ::windows_core::RuntimeType for PaymentOptions { } unsafe impl ::windows_core::Interface for PaymentOptions { type Vtable = IPaymentOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PaymentOptions { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PaymentOptions { const NAME: &'static str = "Windows.ApplicationModel.Payments.PaymentOptions"; } -::windows_core::imp::interface_hierarchy!(PaymentOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PaymentOptions {} unsafe impl ::core::marker::Sync for PaymentOptions {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PaymentRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PaymentRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PaymentRequest { pub fn MerchantInfo(&self) -> ::windows_core::Result { let this = self; @@ -1521,7 +1223,7 @@ impl PaymentRequest { } } pub fn Id(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Id)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1532,11 +1234,11 @@ impl PaymentRequest { pub fn Create(details: P0, methoddata: P1) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam>, + P1: ::windows_core::IntoParam>, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).Create)(::windows_core::Interface::as_raw(this), details.into_param().abi(), methoddata.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -1544,12 +1246,12 @@ impl PaymentRequest { pub fn CreateWithMerchantInfo(details: P0, methoddata: P1, merchantinfo: P2) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam>, + P1: ::windows_core::IntoParam>, P2: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), merchantinfo.into_param().abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -1557,13 +1259,13 @@ impl PaymentRequest { pub fn CreateWithMerchantInfoAndOptions(details: P0, methoddata: P1, merchantinfo: P2, options: P3) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam>, + P1: ::windows_core::IntoParam>, P2: ::windows_core::IntoParam, P3: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), merchantinfo.into_param().abi(), options.into_param().abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -1571,13 +1273,13 @@ impl PaymentRequest { 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::TryIntoParam>, + P1: ::windows_core::IntoParam>, P2: ::windows_core::IntoParam, P3: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), merchantinfo.into_param().abi(), options.into_param().abi(), ::core::mem::transmute_copy(id), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } #[doc(hidden)] @@ -1596,19 +1298,17 @@ impl ::windows_core::RuntimeType for PaymentRequest { } unsafe impl ::windows_core::Interface for PaymentRequest { type Vtable = IPaymentRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PaymentRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PaymentRequest { const NAME: &'static str = "Windows.ApplicationModel.Payments.PaymentRequest"; } -::windows_core::imp::interface_hierarchy!(PaymentRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PaymentRequest {} unsafe impl ::core::marker::Sync for PaymentRequest {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PaymentRequestChangedArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PaymentRequestChangedArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PaymentRequestChangedArgs { pub fn ChangeKind(&self) -> ::windows_core::Result { let this = self; @@ -1644,19 +1344,17 @@ impl ::windows_core::RuntimeType for PaymentRequestChangedArgs { } unsafe impl ::windows_core::Interface for PaymentRequestChangedArgs { type Vtable = IPaymentRequestChangedArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PaymentRequestChangedArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PaymentRequestChangedArgs { const NAME: &'static str = "Windows.ApplicationModel.Payments.PaymentRequestChangedArgs"; } -::windows_core::imp::interface_hierarchy!(PaymentRequestChangedArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PaymentRequestChangedArgs {} unsafe impl ::core::marker::Sync for PaymentRequestChangedArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PaymentRequestChangedResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PaymentRequestChangedResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PaymentRequestChangedResult { pub fn ChangeAcceptedByMerchant(&self) -> ::windows_core::Result { let this = self; @@ -1720,19 +1418,17 @@ impl ::windows_core::RuntimeType for PaymentRequestChangedResult { } unsafe impl ::windows_core::Interface for PaymentRequestChangedResult { type Vtable = IPaymentRequestChangedResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PaymentRequestChangedResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PaymentRequestChangedResult { const NAME: &'static str = "Windows.ApplicationModel.Payments.PaymentRequestChangedResult"; } -::windows_core::imp::interface_hierarchy!(PaymentRequestChangedResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PaymentRequestChangedResult {} unsafe impl ::core::marker::Sync for PaymentRequestChangedResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PaymentRequestSubmitResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PaymentRequestSubmitResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PaymentRequestSubmitResult { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -1754,19 +1450,17 @@ impl ::windows_core::RuntimeType for PaymentRequestSubmitResult { } unsafe impl ::windows_core::Interface for PaymentRequestSubmitResult { type Vtable = IPaymentRequestSubmitResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PaymentRequestSubmitResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PaymentRequestSubmitResult { const NAME: &'static str = "Windows.ApplicationModel.Payments.PaymentRequestSubmitResult"; } -::windows_core::imp::interface_hierarchy!(PaymentRequestSubmitResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PaymentRequestSubmitResult {} unsafe impl ::core::marker::Sync for PaymentRequestSubmitResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PaymentResponse(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PaymentResponse, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PaymentResponse { pub fn PaymentToken(&self) -> ::windows_core::Result { let this = self; @@ -1823,19 +1517,17 @@ impl ::windows_core::RuntimeType for PaymentResponse { } unsafe impl ::windows_core::Interface for PaymentResponse { type Vtable = IPaymentResponse_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PaymentResponse { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PaymentResponse { const NAME: &'static str = "Windows.ApplicationModel.Payments.PaymentResponse"; } -::windows_core::imp::interface_hierarchy!(PaymentResponse, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PaymentResponse {} unsafe impl ::core::marker::Sync for PaymentResponse {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PaymentShippingOption(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PaymentShippingOption, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PaymentShippingOption { pub fn Label(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1922,19 +1614,17 @@ impl ::windows_core::RuntimeType for PaymentShippingOption { } unsafe impl ::windows_core::Interface for PaymentShippingOption { type Vtable = IPaymentShippingOption_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PaymentShippingOption { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PaymentShippingOption { const NAME: &'static str = "Windows.ApplicationModel.Payments.PaymentShippingOption"; } -::windows_core::imp::interface_hierarchy!(PaymentShippingOption, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PaymentShippingOption {} unsafe impl ::core::marker::Sync for PaymentShippingOption {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PaymentToken(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PaymentToken, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PaymentToken { pub fn PaymentMethodId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1973,14 +1663,11 @@ impl ::windows_core::RuntimeType for PaymentToken { } unsafe impl ::windows_core::Interface for PaymentToken { type Vtable = IPaymentToken_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PaymentToken { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PaymentToken { const NAME: &'static str = "Windows.ApplicationModel.Payments.PaymentToken"; } -::windows_core::imp::interface_hierarchy!(PaymentToken, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PaymentToken {} unsafe impl ::core::marker::Sync for PaymentToken {} #[repr(transparent)] @@ -2100,9 +1787,7 @@ impl ::core::fmt::Debug for PaymentShippingType { impl ::windows_core::RuntimeType for PaymentShippingType { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.Payments.PaymentShippingType;i4)"); } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct PaymentRequestChangedHandler(pub ::windows_core::IUnknown); +::windows_core::imp::com_interface!(PaymentRequestChangedHandler, PaymentRequestChangedHandler_Vtbl, 0x5078b9e1_f398_4f2c_a27e_94d371cf6c7d); impl PaymentRequestChangedHandler { pub fn new, ::core::option::Option<&PaymentRequestChangedArgs>) -> ::windows_core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = PaymentRequestChangedHandlerBox:: { vtable: &PaymentRequestChangedHandlerBox::::VTABLE, count: ::windows_core::imp::RefCount::new(1), invoke }; @@ -2133,7 +1818,7 @@ impl, ::core::option::Option<&P if iid.is_null() || interface.is_null() { return ::windows_core::HRESULT(-2147467261); } - *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; + *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::Interface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::Interface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; if (*interface).is_null() { ::windows_core::HRESULT(-2147467262) } else { @@ -2158,12 +1843,6 @@ impl, ::core::option::Option<&P ((*this).invoke)(::windows_core::from_raw_borrowed(&paymentrequest), ::windows_core::from_raw_borrowed(&args)).into() } } -unsafe impl ::windows_core::Interface for PaymentRequestChangedHandler { - type Vtable = PaymentRequestChangedHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PaymentRequestChangedHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5078b9e1_f398_4f2c_a27e_94d371cf6c7d); -} impl ::windows_core::RuntimeType for PaymentRequestChangedHandler { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } 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 2930837c13..3b209796a7 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Preview/Holographic/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Preview/Holographic/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHolographicApplicationPreviewStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHolographicApplicationPreviewStatics { - type Vtable = IHolographicApplicationPreviewStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHolographicApplicationPreviewStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfe038691_2a3a_45a9_a208_7bed691919f3); -} +::windows_core::imp::com_interface!(IHolographicApplicationPreviewStatics, IHolographicApplicationPreviewStatics_Vtbl, 0xfe038691_2a3a_45a9_a208_7bed691919f3); #[repr(C)] #[doc(hidden)] pub struct IHolographicApplicationPreviewStatics_Vtbl { @@ -18,19 +9,13 @@ pub struct IHolographicApplicationPreviewStatics_Vtbl { #[cfg(not(feature = "ApplicationModel_Activation"))] IsHolographicActivation: usize, } -#[doc(hidden)] -#[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHolographicKeyboardPlacementOverridePreview(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for IHolographicKeyboardPlacementOverridePreview { - type Vtable = IHolographicKeyboardPlacementOverridePreview_Vtbl; -} #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for IHolographicKeyboardPlacementOverridePreview { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc8a8ce3a_dfde_5a14_8d5f_182c526dd9c4); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + IHolographicKeyboardPlacementOverridePreview, + IHolographicKeyboardPlacementOverridePreview_Vtbl, + 0xc8a8ce3a_dfde_5a14_8d5f_182c526dd9c4 +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -49,19 +34,13 @@ pub struct IHolographicKeyboardPlacementOverridePreview_Vtbl { #[cfg(not(feature = "deprecated"))] ResetPlacementOverride: usize, } -#[doc(hidden)] -#[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHolographicKeyboardPlacementOverridePreviewStatics(::windows_core::IUnknown); #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for IHolographicKeyboardPlacementOverridePreviewStatics { - type Vtable = IHolographicKeyboardPlacementOverridePreviewStatics_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for IHolographicKeyboardPlacementOverridePreviewStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x202e6039_1ff6_5a06_aac4_a5e24fa3ec4b); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + IHolographicKeyboardPlacementOverridePreviewStatics, + IHolographicKeyboardPlacementOverridePreviewStatics_Vtbl, + 0x202e6039_1ff6_5a06_aac4_a5e24fa3ec4b +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -84,11 +63,11 @@ impl HolographicApplicationPreview { #[cfg(feature = "ApplicationModel_Activation")] pub fn IsHolographicActivation(activatedeventargs: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IHolographicApplicationPreviewStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).IsHolographicActivation)(::windows_core::Interface::as_raw(this), activatedeventargs.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).IsHolographicActivation)(::windows_core::Interface::as_raw(this), activatedeventargs.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -106,6 +85,8 @@ impl ::windows_core::RuntimeName for HolographicApplicationPreview { #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HolographicKeyboardPlacementOverridePreview(::windows_core::IUnknown); #[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(HolographicKeyboardPlacementOverridePreview, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "deprecated")] impl HolographicKeyboardPlacementOverridePreview { #[doc = "Required features: `\"Foundation_Numerics\"`, `\"Perception_Spatial\"`, `\"deprecated\"`"] #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial", feature = "deprecated"))] @@ -153,18 +134,13 @@ impl ::windows_core::RuntimeType for HolographicKeyboardPlacementOverridePreview #[cfg(feature = "deprecated")] unsafe impl ::windows_core::Interface for HolographicKeyboardPlacementOverridePreview { type Vtable = IHolographicKeyboardPlacementOverridePreview_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for HolographicKeyboardPlacementOverridePreview { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "deprecated")] impl ::windows_core::RuntimeName for HolographicKeyboardPlacementOverridePreview { const NAME: &'static str = "Windows.ApplicationModel.Preview.Holographic.HolographicKeyboardPlacementOverridePreview"; } #[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(HolographicKeyboardPlacementOverridePreview, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] unsafe impl ::core::marker::Send for HolographicKeyboardPlacementOverridePreview {} #[cfg(feature = "deprecated")] unsafe impl ::core::marker::Sync for HolographicKeyboardPlacementOverridePreview {} 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 401c0ccaa9..421a76349f 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Preview/InkWorkspace/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Preview/InkWorkspace/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkWorkspaceHostedAppManager(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInkWorkspaceHostedAppManager { - type Vtable = IInkWorkspaceHostedAppManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInkWorkspaceHostedAppManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfe0a7990_5e59_4bb7_8a63_7d218cd96300); -} +::windows_core::imp::com_interface!(IInkWorkspaceHostedAppManager, IInkWorkspaceHostedAppManager_Vtbl, 0xfe0a7990_5e59_4bb7_8a63_7d218cd96300); #[repr(C)] #[doc(hidden)] pub struct IInkWorkspaceHostedAppManager_Vtbl { @@ -17,16 +8,7 @@ pub struct IInkWorkspaceHostedAppManager_Vtbl { #[cfg(not(feature = "Graphics_Imaging"))] SetThumbnailAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkWorkspaceHostedAppManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInkWorkspaceHostedAppManagerStatics { - type Vtable = IInkWorkspaceHostedAppManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInkWorkspaceHostedAppManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcbfd8cc5_a162_4bc4_84ee_e8716d5233c5); -} +::windows_core::imp::com_interface!(IInkWorkspaceHostedAppManagerStatics, IInkWorkspaceHostedAppManagerStatics_Vtbl, 0xcbfd8cc5_a162_4bc4_84ee_e8716d5233c5); #[repr(C)] #[doc(hidden)] pub struct IInkWorkspaceHostedAppManagerStatics_Vtbl { @@ -36,6 +18,7 @@ pub struct IInkWorkspaceHostedAppManagerStatics_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct InkWorkspaceHostedAppManager(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(InkWorkspaceHostedAppManager, ::windows_core::IUnknown, ::windows_core::IInspectable); impl InkWorkspaceHostedAppManager { #[doc = "Required features: `\"Graphics_Imaging\"`"] #[cfg(feature = "Graphics_Imaging")] @@ -66,13 +49,10 @@ impl ::windows_core::RuntimeType for InkWorkspaceHostedAppManager { } unsafe impl ::windows_core::Interface for InkWorkspaceHostedAppManager { type Vtable = IInkWorkspaceHostedAppManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for InkWorkspaceHostedAppManager { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for InkWorkspaceHostedAppManager { const NAME: &'static str = "Windows.ApplicationModel.Preview.InkWorkspace.InkWorkspaceHostedAppManager"; } -::windows_core::imp::interface_hierarchy!(InkWorkspaceHostedAppManager, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for InkWorkspaceHostedAppManager {} unsafe impl ::core::marker::Sync for InkWorkspaceHostedAppManager {} 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 5d455d95e9..7f13d2ab2b 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Preview/Notes/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Preview/Notes/mod.rs @@ -1,29 +1,11 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INotePlacementChangedPreviewEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INotePlacementChangedPreviewEventArgs { - type Vtable = INotePlacementChangedPreviewEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INotePlacementChangedPreviewEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x491d57b7_f780_4e7f_a939_9a4caf965214); -} +::windows_core::imp::com_interface!(INotePlacementChangedPreviewEventArgs, INotePlacementChangedPreviewEventArgs_Vtbl, 0x491d57b7_f780_4e7f_a939_9a4caf965214); #[repr(C)] #[doc(hidden)] pub struct INotePlacementChangedPreviewEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ViewId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INoteVisibilityChangedPreviewEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INoteVisibilityChangedPreviewEventArgs { - type Vtable = INoteVisibilityChangedPreviewEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INoteVisibilityChangedPreviewEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0e34649e_3815_4ff6_83b3_a14d17120e24); -} +::windows_core::imp::com_interface!(INoteVisibilityChangedPreviewEventArgs, INoteVisibilityChangedPreviewEventArgs_Vtbl, 0x0e34649e_3815_4ff6_83b3_a14d17120e24); #[repr(C)] #[doc(hidden)] pub struct INoteVisibilityChangedPreviewEventArgs_Vtbl { @@ -31,16 +13,7 @@ pub struct INoteVisibilityChangedPreviewEventArgs_Vtbl { pub ViewId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows_core::HRESULT, pub IsVisible: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INotesWindowManagerPreview(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INotesWindowManagerPreview { - type Vtable = INotesWindowManagerPreview_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INotesWindowManagerPreview { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdc2ac23e_4850_4f13_9cc7_ff487efdfcde); -} +::windows_core::imp::com_interface!(INotesWindowManagerPreview, INotesWindowManagerPreview_Vtbl, 0xdc2ac23e_4850_4f13_9cc7_ff487efdfcde); #[repr(C)] #[doc(hidden)] pub struct INotesWindowManagerPreview_Vtbl { @@ -70,16 +43,7 @@ pub struct INotesWindowManagerPreview_Vtbl { pub NoteVisibilityChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveNoteVisibilityChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INotesWindowManagerPreview2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INotesWindowManagerPreview2 { - type Vtable = INotesWindowManagerPreview2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INotesWindowManagerPreview2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xedfe864a_1f54_4b09_9823_ff477f6fa3bc); -} +::windows_core::imp::com_interface!(INotesWindowManagerPreview2, INotesWindowManagerPreview2_Vtbl, 0xedfe864a_1f54_4b09_9823_ff477f6fa3bc); #[repr(C)] #[doc(hidden)] pub struct INotesWindowManagerPreview2_Vtbl { @@ -95,16 +59,7 @@ pub struct INotesWindowManagerPreview2_Vtbl { #[cfg(not(feature = "Graphics_Imaging"))] SetThumbnailImageForTaskSwitcherAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INotesWindowManagerPreviewShowNoteOptions(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INotesWindowManagerPreviewShowNoteOptions { - type Vtable = INotesWindowManagerPreviewShowNoteOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INotesWindowManagerPreviewShowNoteOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x886b09d6_a6ae_4007_a56d_1ca70c84c0d2); -} +::windows_core::imp::com_interface!(INotesWindowManagerPreviewShowNoteOptions, INotesWindowManagerPreviewShowNoteOptions_Vtbl, 0x886b09d6_a6ae_4007_a56d_1ca70c84c0d2); #[repr(C)] #[doc(hidden)] pub struct INotesWindowManagerPreviewShowNoteOptions_Vtbl { @@ -112,16 +67,7 @@ pub struct INotesWindowManagerPreviewShowNoteOptions_Vtbl { pub ShowWithFocus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetShowWithFocus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INotesWindowManagerPreviewStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INotesWindowManagerPreviewStatics { - type Vtable = INotesWindowManagerPreviewStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INotesWindowManagerPreviewStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6668cc88_0a8e_4127_a38e_995445868a78); -} +::windows_core::imp::com_interface!(INotesWindowManagerPreviewStatics, INotesWindowManagerPreviewStatics_Vtbl, 0x6668cc88_0a8e_4127_a38e_995445868a78); #[repr(C)] #[doc(hidden)] pub struct INotesWindowManagerPreviewStatics_Vtbl { @@ -131,6 +77,7 @@ pub struct INotesWindowManagerPreviewStatics_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct NotePlacementChangedPreviewEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(NotePlacementChangedPreviewEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl NotePlacementChangedPreviewEventArgs { pub fn ViewId(&self) -> ::windows_core::Result { let this = self; @@ -145,19 +92,17 @@ impl ::windows_core::RuntimeType for NotePlacementChangedPreviewEventArgs { } unsafe impl ::windows_core::Interface for NotePlacementChangedPreviewEventArgs { type Vtable = INotePlacementChangedPreviewEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for NotePlacementChangedPreviewEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for NotePlacementChangedPreviewEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Preview.Notes.NotePlacementChangedPreviewEventArgs"; } -::windows_core::imp::interface_hierarchy!(NotePlacementChangedPreviewEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for NotePlacementChangedPreviewEventArgs {} unsafe impl ::core::marker::Sync for NotePlacementChangedPreviewEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct NoteVisibilityChangedPreviewEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(NoteVisibilityChangedPreviewEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl NoteVisibilityChangedPreviewEventArgs { pub fn ViewId(&self) -> ::windows_core::Result { let this = self; @@ -179,19 +124,17 @@ impl ::windows_core::RuntimeType for NoteVisibilityChangedPreviewEventArgs { } unsafe impl ::windows_core::Interface for NoteVisibilityChangedPreviewEventArgs { type Vtable = INoteVisibilityChangedPreviewEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for NoteVisibilityChangedPreviewEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for NoteVisibilityChangedPreviewEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Preview.Notes.NoteVisibilityChangedPreviewEventArgs"; } -::windows_core::imp::interface_hierarchy!(NoteVisibilityChangedPreviewEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for NoteVisibilityChangedPreviewEventArgs {} unsafe impl ::core::marker::Sync for NoteVisibilityChangedPreviewEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct NotesWindowManagerPreview(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(NotesWindowManagerPreview, ::windows_core::IUnknown, ::windows_core::IInspectable); impl NotesWindowManagerPreview { pub fn IsScreenLocked(&self) -> ::windows_core::Result { let this = self; @@ -212,10 +155,10 @@ impl NotesWindowManagerPreview { #[cfg(feature = "Storage_Streams")] pub fn ShowNoteWithPlacement(&self, noteviewid: i32, data: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).ShowNoteWithPlacement)(::windows_core::Interface::as_raw(this), noteviewid, data.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).ShowNoteWithPlacement)(::windows_core::Interface::as_raw(this), noteviewid, data.into_param().abi()).ok() } } pub fn HideNote(&self, noteviewid: i32) -> ::windows_core::Result<()> { let this = self; @@ -245,12 +188,12 @@ impl NotesWindowManagerPreview { #[cfg(feature = "Storage_Streams")] pub fn SetNotesThumbnailAsync(&self, thumbnail: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).SetNotesThumbnailAsync)(::windows_core::Interface::as_raw(this), thumbnail.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SetNotesThumbnailAsync)(::windows_core::Interface::as_raw(this), thumbnail.into_param().abi(), &mut result__).from_abi(result__) } } pub fn SystemLockStateChanged(&self, handler: P0) -> ::windows_core::Result @@ -299,21 +242,21 @@ impl NotesWindowManagerPreview { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn ShowNoteWithPlacementWithOptions(&self, noteviewid: i32, data: P0, options: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).ShowNoteWithPlacementWithOptions)(::windows_core::Interface::as_raw(this), noteviewid, data.try_into_param()?.abi(), options.into_param().abi()).ok() } + 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() } } pub fn SetFocusToPreviousView(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetFocusToPreviousView)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Graphics_Imaging\"`"] @@ -322,7 +265,7 @@ impl NotesWindowManagerPreview { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -345,19 +288,17 @@ impl ::windows_core::RuntimeType for NotesWindowManagerPreview { } unsafe impl ::windows_core::Interface for NotesWindowManagerPreview { type Vtable = INotesWindowManagerPreview_Vtbl; -} -unsafe impl ::windows_core::ComInterface for NotesWindowManagerPreview { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for NotesWindowManagerPreview { const NAME: &'static str = "Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview"; } -::windows_core::imp::interface_hierarchy!(NotesWindowManagerPreview, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for NotesWindowManagerPreview {} unsafe impl ::core::marker::Sync for NotesWindowManagerPreview {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct NotesWindowManagerPreviewShowNoteOptions(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(NotesWindowManagerPreviewShowNoteOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); impl NotesWindowManagerPreviewShowNoteOptions { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -383,13 +324,10 @@ impl ::windows_core::RuntimeType for NotesWindowManagerPreviewShowNoteOptions { } unsafe impl ::windows_core::Interface for NotesWindowManagerPreviewShowNoteOptions { type Vtable = INotesWindowManagerPreviewShowNoteOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for NotesWindowManagerPreviewShowNoteOptions { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for NotesWindowManagerPreviewShowNoteOptions { const NAME: &'static str = "Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreviewShowNoteOptions"; } -::windows_core::imp::interface_hierarchy!(NotesWindowManagerPreviewShowNoteOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for NotesWindowManagerPreviewShowNoteOptions {} unsafe impl ::core::marker::Sync for NotesWindowManagerPreviewShowNoteOptions {} 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 51a84d5fe1..390afbd5de 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INamedResource(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INamedResource { - type Vtable = INamedResource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INamedResource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1c98c219_0b13_4240_89a5_d495dc189a00); -} +::windows_core::imp::com_interface!(INamedResource, INamedResource_Vtbl, 0x1c98c219_0b13_4240_89a5_d495dc189a00); #[repr(C)] #[doc(hidden)] pub struct INamedResource_Vtbl { @@ -28,16 +19,7 @@ pub struct INamedResource_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] ResolveAllForContext: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IResourceCandidate(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IResourceCandidate { - type Vtable = IResourceCandidate_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IResourceCandidate { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaf5207d9_c433_4764_b3fd_8fa6bfbcbadc); -} +::windows_core::imp::com_interface!(IResourceCandidate, IResourceCandidate_Vtbl, 0xaf5207d9_c433_4764_b3fd_8fa6bfbcbadc); #[repr(C)] #[doc(hidden)] pub struct IResourceCandidate_Vtbl { @@ -56,16 +38,7 @@ pub struct IResourceCandidate_Vtbl { GetValueAsFileAsync: usize, pub GetQualifierValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, qualifiername: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IResourceCandidate2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IResourceCandidate2 { - type Vtable = IResourceCandidate2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IResourceCandidate2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x69e5b468_f6fc_4013_aaa2_d53f1757d3b5); -} +::windows_core::imp::com_interface!(IResourceCandidate2, IResourceCandidate2_Vtbl, 0x69e5b468_f6fc_4013_aaa2_d53f1757d3b5); #[repr(C)] #[doc(hidden)] pub struct IResourceCandidate2_Vtbl { @@ -75,32 +48,14 @@ pub struct IResourceCandidate2_Vtbl { #[cfg(not(feature = "Storage_Streams"))] GetValueAsStreamAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IResourceCandidate3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IResourceCandidate3 { - type Vtable = IResourceCandidate3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IResourceCandidate3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x08ae97f8_517a_4674_958c_4a3c7cd2cc6b); -} +::windows_core::imp::com_interface!(IResourceCandidate3, IResourceCandidate3_Vtbl, 0x08ae97f8_517a_4674_958c_4a3c7cd2cc6b); #[repr(C)] #[doc(hidden)] pub struct IResourceCandidate3_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Kind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ResourceCandidateKind) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IResourceContext(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IResourceContext { - type Vtable = IResourceContext_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IResourceContext { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2fa22f4b_707e_4b27_ad0d_d0d8cd468fd2); -} +::windows_core::imp::com_interface!(IResourceContext, IResourceContext_Vtbl, 0x2fa22f4b_707e_4b27_ad0d_d0d8cd468fd2); #[repr(C)] #[doc(hidden)] pub struct IResourceContext_Vtbl { @@ -128,16 +83,7 @@ pub struct IResourceContext_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] SetLanguages: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IResourceContextStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IResourceContextStatics { - type Vtable = IResourceContextStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IResourceContextStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x98be9d6c_6338_4b31_99df_b2b442f17149); -} +::windows_core::imp::com_interface!(IResourceContextStatics, IResourceContextStatics_Vtbl, 0x98be9d6c_6338_4b31_99df_b2b442f17149); #[repr(C)] #[doc(hidden)] pub struct IResourceContextStatics_Vtbl { @@ -147,16 +93,7 @@ pub struct IResourceContextStatics_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] CreateMatchingContext: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IResourceContextStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IResourceContextStatics2 { - type Vtable = IResourceContextStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IResourceContextStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x41f752ef_12af_41b9_ab36_b1eb4b512460); -} +::windows_core::imp::com_interface!(IResourceContextStatics2, IResourceContextStatics2_Vtbl, 0x41f752ef_12af_41b9_ab36_b1eb4b512460); #[repr(C)] #[doc(hidden)] pub struct IResourceContextStatics2_Vtbl { @@ -170,32 +107,14 @@ pub struct IResourceContextStatics2_Vtbl { ResetGlobalQualifierValuesForSpecifiedQualifiers: usize, pub GetForViewIndependentUse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IResourceContextStatics3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IResourceContextStatics3 { - type Vtable = IResourceContextStatics3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IResourceContextStatics3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x20cf492c_af0f_450b_9da6_106dd0c29a39); -} +::windows_core::imp::com_interface!(IResourceContextStatics3, IResourceContextStatics3_Vtbl, 0x20cf492c_af0f_450b_9da6_106dd0c29a39); #[repr(C)] #[doc(hidden)] pub struct IResourceContextStatics3_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub SetGlobalQualifierValueWithPersistence: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, key: ::std::mem::MaybeUninit<::windows_core::HSTRING>, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>, persistence: ResourceQualifierPersistence) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IResourceContextStatics4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IResourceContextStatics4 { - type Vtable = IResourceContextStatics4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IResourceContextStatics4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x22eb9ccd_fb31_4bfa_b86b_df9d9d7bdc39); -} +::windows_core::imp::com_interface!(IResourceContextStatics4, IResourceContextStatics4_Vtbl, 0x22eb9ccd_fb31_4bfa_b86b_df9d9d7bdc39); #[repr(C)] #[doc(hidden)] pub struct IResourceContextStatics4_Vtbl { @@ -205,16 +124,7 @@ pub struct IResourceContextStatics4_Vtbl { #[cfg(not(feature = "UI"))] GetForUIContext: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IResourceManager(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IResourceManager { - type Vtable = IResourceManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IResourceManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf744d97b_9988_44fb_abd6_5378844cfa8b); -} +::windows_core::imp::com_interface!(IResourceManager, IResourceManager_Vtbl, 0xf744d97b_9988_44fb_abd6_5378844cfa8b); #[repr(C)] #[doc(hidden)] pub struct IResourceManager_Vtbl { @@ -234,16 +144,7 @@ pub struct IResourceManager_Vtbl { #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage")))] UnloadPriFiles: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IResourceManager2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IResourceManager2 { - type Vtable = IResourceManager2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IResourceManager2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9d66fe6c_a4d7_4c23_9e85_675f304c252d); -} +::windows_core::imp::com_interface!(IResourceManager2, IResourceManager2_Vtbl, 0x9d66fe6c_a4d7_4c23_9e85_675f304c252d); #[repr(C)] #[doc(hidden)] pub struct IResourceManager2_Vtbl { @@ -257,16 +158,7 @@ pub struct IResourceManager2_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetAllSubtreesForPackage: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IResourceManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IResourceManagerStatics { - type Vtable = IResourceManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IResourceManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1cc0fdfc_69ee_4e43_9901_47f12687baf7); -} +::windows_core::imp::com_interface!(IResourceManagerStatics, IResourceManagerStatics_Vtbl, 0x1cc0fdfc_69ee_4e43_9901_47f12687baf7); #[repr(C)] #[doc(hidden)] pub struct IResourceManagerStatics_Vtbl { @@ -274,16 +166,7 @@ pub struct IResourceManagerStatics_Vtbl { pub Current: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub IsResourceReference: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, resourcereference: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IResourceMap(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IResourceMap { - type Vtable = IResourceMap_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IResourceMap { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x72284824_db8c_42f8_b08c_53ff357dad82); -} +::windows_core::imp::com_interface!(IResourceMap, IResourceMap_Vtbl, 0x72284824_db8c_42f8_b08c_53ff357dad82); #[repr(C)] #[doc(hidden)] pub struct IResourceMap_Vtbl { @@ -293,16 +176,7 @@ pub struct IResourceMap_Vtbl { pub GetValueForContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, resource: ::std::mem::MaybeUninit<::windows_core::HSTRING>, context: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetSubtree: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, reference: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IResourceQualifier(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IResourceQualifier { - type Vtable = IResourceQualifier_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IResourceQualifier { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x785da5b2_4afd_4376_a888_c5f9a6b7a05c); -} +::windows_core::imp::com_interface!(IResourceQualifier, IResourceQualifier_Vtbl, 0x785da5b2_4afd_4376_a888_c5f9a6b7a05c); #[repr(C)] #[doc(hidden)] pub struct IResourceQualifier_Vtbl { @@ -316,6 +190,7 @@ pub struct IResourceQualifier_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct NamedResource(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(NamedResource, ::windows_core::IUnknown, ::windows_core::IInspectable); impl NamedResource { pub fn Uri(&self) -> ::windows_core::Result { let this = self; @@ -377,19 +252,17 @@ impl ::windows_core::RuntimeType for NamedResource { } unsafe impl ::windows_core::Interface for NamedResource { type Vtable = INamedResource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for NamedResource { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for NamedResource { const NAME: &'static str = "Windows.ApplicationModel.Resources.Core.NamedResource"; } -::windows_core::imp::interface_hierarchy!(NamedResource, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for NamedResource {} unsafe impl ::core::marker::Sync for NamedResource {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ResourceCandidate(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ResourceCandidate, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ResourceCandidate { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -447,14 +320,14 @@ impl ResourceCandidate { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn GetValueAsStreamAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetValueAsStreamAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -466,14 +339,11 @@ impl ::windows_core::RuntimeType for ResourceCandidate { } unsafe impl ::windows_core::Interface for ResourceCandidate { type Vtable = IResourceCandidate_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ResourceCandidate { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ResourceCandidate { const NAME: &'static str = "Windows.ApplicationModel.Resources.Core.ResourceCandidate"; } -::windows_core::imp::interface_hierarchy!(ResourceCandidate, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ResourceCandidate {} unsafe impl ::core::marker::Sync for ResourceCandidate {} #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -482,11 +352,15 @@ unsafe impl ::core::marker::Sync for ResourceCandidate {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ResourceCandidateVectorView(::windows_core::IUnknown); #[cfg(feature = "Foundation_Collections")] +::windows_core::imp::interface_hierarchy!(ResourceCandidateVectorView, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(ResourceCandidateVectorView, super::super::super::Foundation::Collections::IIterable::, super::super::super::Foundation::Collections::IVectorView::); +#[cfg(feature = "Foundation_Collections")] impl ResourceCandidateVectorView { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -539,10 +413,7 @@ impl ::windows_core::RuntimeType for ResourceCandidateVectorView { #[cfg(feature = "Foundation_Collections")] unsafe impl ::windows_core::Interface for ResourceCandidateVectorView { type Vtable = super::super::super::Foundation::Collections::IVectorView_Vtbl; -} -#[cfg(feature = "Foundation_Collections")] -unsafe impl ::windows_core::ComInterface for ResourceCandidateVectorView { - const IID: ::windows_core::GUID = as ::windows_core::ComInterface>::IID; + const IID: ::windows_core::GUID = as ::windows_core::Interface>::IID; } #[cfg(feature = "Foundation_Collections")] impl ::windows_core::RuntimeName for ResourceCandidateVectorView { @@ -561,22 +432,17 @@ impl ::core::iter::IntoIterator for &ResourceCandidateVectorView { type Item = ResourceCandidate; type IntoIter = super::super::super::Foundation::Collections::VectorViewIterator; fn into_iter(self) -> Self::IntoIter { - super::super::super::Foundation::Collections::VectorViewIterator::new(::windows_core::ComInterface::cast(self).ok()) + super::super::super::Foundation::Collections::VectorViewIterator::new(::windows_core::Interface::cast(self).ok()) } } #[cfg(feature = "Foundation_Collections")] -::windows_core::imp::interface_hierarchy!(ResourceCandidateVectorView, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for ResourceCandidateVectorView {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for ResourceCandidateVectorView {} -#[cfg(feature = "Foundation_Collections")] unsafe impl ::core::marker::Send for ResourceCandidateVectorView {} #[cfg(feature = "Foundation_Collections")] unsafe impl ::core::marker::Sync for ResourceCandidateVectorView {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ResourceContext(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ResourceContext, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ResourceContext { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -602,19 +468,19 @@ impl ResourceContext { #[cfg(feature = "Foundation_Collections")] pub fn ResetQualifierValues(&self, qualifiernames: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).ResetQualifierValues)(::windows_core::Interface::as_raw(this), qualifiernames.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).ResetQualifierValues)(::windows_core::Interface::as_raw(this), qualifiernames.into_param().abi()).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn OverrideToMatch(&self, result: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).OverrideToMatch)(::windows_core::Interface::as_raw(this), result.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).OverrideToMatch)(::windows_core::Interface::as_raw(this), result.into_param().abi()).ok() } } pub fn Clone(&self) -> ::windows_core::Result { let this = self; @@ -636,20 +502,20 @@ impl ResourceContext { #[cfg(feature = "Foundation_Collections")] pub fn SetLanguages(&self, languages: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetLanguages)(::windows_core::Interface::as_raw(this), languages.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetLanguages)(::windows_core::Interface::as_raw(this), languages.into_param().abi()).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn CreateMatchingContext(result: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::IResourceContextStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateMatchingContext)(::windows_core::Interface::as_raw(this), result.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateMatchingContext)(::windows_core::Interface::as_raw(this), result.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn GetForCurrentView() -> ::windows_core::Result { @@ -668,9 +534,9 @@ impl ResourceContext { #[cfg(feature = "Foundation_Collections")] pub fn ResetGlobalQualifierValuesForSpecifiedQualifiers(qualifiernames: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - Self::IResourceContextStatics2(|this| unsafe { (::windows_core::Interface::vtable(this).ResetGlobalQualifierValuesForSpecifiedQualifiers)(::windows_core::Interface::as_raw(this), qualifiernames.try_into_param()?.abi()).ok() }) + Self::IResourceContextStatics2(|this| unsafe { (::windows_core::Interface::vtable(this).ResetGlobalQualifierValuesForSpecifiedQualifiers)(::windows_core::Interface::as_raw(this), qualifiernames.into_param().abi()).ok() }) } pub fn GetForViewIndependentUse() -> ::windows_core::Result { Self::IResourceContextStatics2(|this| unsafe { @@ -718,14 +584,11 @@ impl ::windows_core::RuntimeType for ResourceContext { } unsafe impl ::windows_core::Interface for ResourceContext { type Vtable = IResourceContext_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ResourceContext { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ResourceContext { const NAME: &'static str = "Windows.ApplicationModel.Resources.Core.ResourceContext"; } -::windows_core::imp::interface_hierarchy!(ResourceContext, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ResourceContext {} unsafe impl ::core::marker::Sync for ResourceContext {} #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -734,11 +597,15 @@ unsafe impl ::core::marker::Sync for ResourceContext {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ResourceContextLanguagesVectorView(::windows_core::IUnknown); #[cfg(feature = "Foundation_Collections")] +::windows_core::imp::interface_hierarchy!(ResourceContextLanguagesVectorView, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(ResourceContextLanguagesVectorView, super::super::super::Foundation::Collections::IIterable::<::windows_core::HSTRING>, super::super::super::Foundation::Collections::IVectorView::<::windows_core::HSTRING>); +#[cfg(feature = "Foundation_Collections")] impl ResourceContextLanguagesVectorView { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -788,10 +655,7 @@ impl ::windows_core::RuntimeType for ResourceContextLanguagesVectorView { #[cfg(feature = "Foundation_Collections")] unsafe impl ::windows_core::Interface for ResourceContextLanguagesVectorView { type Vtable = super::super::super::Foundation::Collections::IVectorView_Vtbl<::windows_core::HSTRING>; -} -#[cfg(feature = "Foundation_Collections")] -unsafe impl ::windows_core::ComInterface for ResourceContextLanguagesVectorView { - const IID: ::windows_core::GUID = as ::windows_core::ComInterface>::IID; + const IID: ::windows_core::GUID = as ::windows_core::Interface>::IID; } #[cfg(feature = "Foundation_Collections")] impl ::windows_core::RuntimeName for ResourceContextLanguagesVectorView { @@ -810,22 +674,17 @@ impl ::core::iter::IntoIterator for &ResourceContextLanguagesVectorView { type Item = ::windows_core::HSTRING; type IntoIter = super::super::super::Foundation::Collections::VectorViewIterator; fn into_iter(self) -> Self::IntoIter { - super::super::super::Foundation::Collections::VectorViewIterator::new(::windows_core::ComInterface::cast(self).ok()) + super::super::super::Foundation::Collections::VectorViewIterator::new(::windows_core::Interface::cast(self).ok()) } } #[cfg(feature = "Foundation_Collections")] -::windows_core::imp::interface_hierarchy!(ResourceContextLanguagesVectorView, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for ResourceContextLanguagesVectorView {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for ResourceContextLanguagesVectorView {} -#[cfg(feature = "Foundation_Collections")] unsafe impl ::core::marker::Send for ResourceContextLanguagesVectorView {} #[cfg(feature = "Foundation_Collections")] unsafe impl ::core::marker::Sync for ResourceContextLanguagesVectorView {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ResourceManager(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ResourceManager, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ResourceManager { pub fn MainResourceMap(&self) -> ::windows_core::Result { let this = self; @@ -854,24 +713,24 @@ impl ResourceManager { #[cfg(all(feature = "Foundation_Collections", feature = "Storage"))] pub fn LoadPriFiles(&self, files: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).LoadPriFiles)(::windows_core::Interface::as_raw(this), files.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).LoadPriFiles)(::windows_core::Interface::as_raw(this), files.into_param().abi()).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Storage\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Storage"))] pub fn UnloadPriFiles(&self, files: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).UnloadPriFiles)(::windows_core::Interface::as_raw(this), files.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).UnloadPriFiles)(::windows_core::Interface::as_raw(this), files.into_param().abi()).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetAllNamedResourcesForPackage(&self, packagename: &::windows_core::HSTRING, resourcelayoutinfo: ResourceLayoutInfo) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetAllNamedResourcesForPackage)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(packagename), resourcelayoutinfo, &mut result__).from_abi(result__) @@ -880,7 +739,7 @@ impl ResourceManager { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetAllSubtreesForPackage(&self, packagename: &::windows_core::HSTRING, resourcelayoutinfo: ResourceLayoutInfo) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetAllSubtreesForPackage)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(packagename), resourcelayoutinfo, &mut result__).from_abi(result__) @@ -909,24 +768,24 @@ impl ::windows_core::RuntimeType for ResourceManager { } unsafe impl ::windows_core::Interface for ResourceManager { type Vtable = IResourceManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ResourceManager { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ResourceManager { const NAME: &'static str = "Windows.ApplicationModel.Resources.Core.ResourceManager"; } -::windows_core::imp::interface_hierarchy!(ResourceManager, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ResourceManager {} unsafe impl ::core::marker::Sync for ResourceManager {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ResourceMap(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ResourceMap, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(ResourceMap, super::super::super::Foundation::Collections::IIterable::>, super::super::super::Foundation::Collections::IMapView::<::windows_core::HSTRING, NamedResource>); impl ResourceMap { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> ::windows_core::Result>> { - let this = &::windows_core::ComInterface::cast::>>(self)?; + let this = &::windows_core::Interface::cast::>>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -935,7 +794,7 @@ impl ResourceMap { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Lookup(&self, key: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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), ::core::mem::transmute_copy(key), &mut result__).from_abi(result__) @@ -944,7 +803,7 @@ impl ResourceMap { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Size(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Size)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -953,7 +812,7 @@ impl ResourceMap { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn HasKey(&self, key: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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), ::core::mem::transmute_copy(key), &mut result__).from_abi(result__) @@ -962,7 +821,7 @@ impl ResourceMap { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Split(&self, first: &mut ::core::option::Option>, second: &mut ::core::option::Option>) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).Split)(::windows_core::Interface::as_raw(this), first as *mut _ as _, second as *mut _ as _).ok() } } pub fn Uri(&self) -> ::windows_core::Result { @@ -1002,9 +861,7 @@ impl ::windows_core::RuntimeType for ResourceMap { } unsafe impl ::windows_core::Interface for ResourceMap { type Vtable = IResourceMap_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ResourceMap { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ResourceMap { const NAME: &'static str = "Windows.ApplicationModel.Resources.Core.ResourceMap"; @@ -1025,11 +882,6 @@ impl ::core::iter::IntoIterator for &ResourceMap { self.First().unwrap() } } -::windows_core::imp::interface_hierarchy!(ResourceMap, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto>> for ResourceMap {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for ResourceMap {} unsafe impl ::core::marker::Send for ResourceMap {} unsafe impl ::core::marker::Sync for ResourceMap {} #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -1038,6 +890,10 @@ unsafe impl ::core::marker::Sync for ResourceMap {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ResourceMapIterator(::windows_core::IUnknown); #[cfg(feature = "Foundation_Collections")] +::windows_core::imp::interface_hierarchy!(ResourceMapIterator, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(ResourceMapIterator, super::super::super::Foundation::Collections::IIterator::>); +#[cfg(feature = "Foundation_Collections")] impl ResourceMapIterator { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -1083,20 +939,13 @@ impl ::windows_core::RuntimeType for ResourceMapIterator { #[cfg(feature = "Foundation_Collections")] unsafe impl ::windows_core::Interface for ResourceMapIterator { type Vtable = super::super::super::Foundation::Collections::IIterator_Vtbl>; -} -#[cfg(feature = "Foundation_Collections")] -unsafe impl ::windows_core::ComInterface for ResourceMapIterator { - const IID: ::windows_core::GUID = > as ::windows_core::ComInterface>::IID; + const IID: ::windows_core::GUID = > as ::windows_core::Interface>::IID; } #[cfg(feature = "Foundation_Collections")] impl ::windows_core::RuntimeName for ResourceMapIterator { const NAME: &'static str = "Windows.ApplicationModel.Resources.Core.ResourceMapIterator"; } #[cfg(feature = "Foundation_Collections")] -::windows_core::imp::interface_hierarchy!(ResourceMapIterator, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto>> for ResourceMapIterator {} -#[cfg(feature = "Foundation_Collections")] unsafe impl ::core::marker::Send for ResourceMapIterator {} #[cfg(feature = "Foundation_Collections")] unsafe impl ::core::marker::Sync for ResourceMapIterator {} @@ -1106,11 +955,15 @@ unsafe impl ::core::marker::Sync for ResourceMapIterator {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ResourceMapMapView(::windows_core::IUnknown); #[cfg(feature = "Foundation_Collections")] +::windows_core::imp::interface_hierarchy!(ResourceMapMapView, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(ResourceMapMapView, super::super::super::Foundation::Collections::IIterable::>, super::super::super::Foundation::Collections::IMapView::<::windows_core::HSTRING, ResourceMap>); +#[cfg(feature = "Foundation_Collections")] impl ResourceMapMapView { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> ::windows_core::Result>> { - let this = &::windows_core::ComInterface::cast::>>(self)?; + let this = &::windows_core::Interface::cast::>>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1157,10 +1010,7 @@ impl ::windows_core::RuntimeType for ResourceMapMapView { #[cfg(feature = "Foundation_Collections")] unsafe impl ::windows_core::Interface for ResourceMapMapView { type Vtable = super::super::super::Foundation::Collections::IMapView_Vtbl<::windows_core::HSTRING, ResourceMap>; -} -#[cfg(feature = "Foundation_Collections")] -unsafe impl ::windows_core::ComInterface for ResourceMapMapView { - const IID: ::windows_core::GUID = as ::windows_core::ComInterface>::IID; + const IID: ::windows_core::GUID = as ::windows_core::Interface>::IID; } #[cfg(feature = "Foundation_Collections")] impl ::windows_core::RuntimeName for ResourceMapMapView { @@ -1183,12 +1033,6 @@ impl ::core::iter::IntoIterator for &ResourceMapMapView { } } #[cfg(feature = "Foundation_Collections")] -::windows_core::imp::interface_hierarchy!(ResourceMapMapView, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto>> for ResourceMapMapView {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for ResourceMapMapView {} -#[cfg(feature = "Foundation_Collections")] unsafe impl ::core::marker::Send for ResourceMapMapView {} #[cfg(feature = "Foundation_Collections")] unsafe impl ::core::marker::Sync for ResourceMapMapView {} @@ -1198,6 +1042,10 @@ unsafe impl ::core::marker::Sync for ResourceMapMapView {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ResourceMapMapViewIterator(::windows_core::IUnknown); #[cfg(feature = "Foundation_Collections")] +::windows_core::imp::interface_hierarchy!(ResourceMapMapViewIterator, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(ResourceMapMapViewIterator, super::super::super::Foundation::Collections::IIterator::>); +#[cfg(feature = "Foundation_Collections")] impl ResourceMapMapViewIterator { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -1243,26 +1091,20 @@ impl ::windows_core::RuntimeType for ResourceMapMapViewIterator { #[cfg(feature = "Foundation_Collections")] unsafe impl ::windows_core::Interface for ResourceMapMapViewIterator { type Vtable = super::super::super::Foundation::Collections::IIterator_Vtbl>; -} -#[cfg(feature = "Foundation_Collections")] -unsafe impl ::windows_core::ComInterface for ResourceMapMapViewIterator { - const IID: ::windows_core::GUID = > as ::windows_core::ComInterface>::IID; + const IID: ::windows_core::GUID = > as ::windows_core::Interface>::IID; } #[cfg(feature = "Foundation_Collections")] impl ::windows_core::RuntimeName for ResourceMapMapViewIterator { const NAME: &'static str = "Windows.ApplicationModel.Resources.Core.ResourceMapMapViewIterator"; } #[cfg(feature = "Foundation_Collections")] -::windows_core::imp::interface_hierarchy!(ResourceMapMapViewIterator, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto>> for ResourceMapMapViewIterator {} -#[cfg(feature = "Foundation_Collections")] unsafe impl ::core::marker::Send for ResourceMapMapViewIterator {} #[cfg(feature = "Foundation_Collections")] unsafe impl ::core::marker::Sync for ResourceMapMapViewIterator {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ResourceQualifier(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ResourceQualifier, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ResourceQualifier { pub fn QualifierName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1305,14 +1147,11 @@ impl ::windows_core::RuntimeType for ResourceQualifier { } unsafe impl ::windows_core::Interface for ResourceQualifier { type Vtable = IResourceQualifier_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ResourceQualifier { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ResourceQualifier { const NAME: &'static str = "Windows.ApplicationModel.Resources.Core.ResourceQualifier"; } -::windows_core::imp::interface_hierarchy!(ResourceQualifier, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ResourceQualifier {} unsafe impl ::core::marker::Sync for ResourceQualifier {} #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -1321,11 +1160,15 @@ unsafe impl ::core::marker::Sync for ResourceQualifier {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ResourceQualifierMapView(::windows_core::IUnknown); #[cfg(feature = "Foundation_Collections")] +::windows_core::imp::interface_hierarchy!(ResourceQualifierMapView, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(ResourceQualifierMapView, super::super::super::Foundation::Collections::IIterable::>, super::super::super::Foundation::Collections::IMapView::<::windows_core::HSTRING, ::windows_core::HSTRING>); +#[cfg(feature = "Foundation_Collections")] impl ResourceQualifierMapView { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> ::windows_core::Result>> { - let this = &::windows_core::ComInterface::cast::>>(self)?; + let this = &::windows_core::Interface::cast::>>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1372,10 +1215,7 @@ impl ::windows_core::RuntimeType for ResourceQualifierMapView { #[cfg(feature = "Foundation_Collections")] unsafe impl ::windows_core::Interface for ResourceQualifierMapView { type Vtable = super::super::super::Foundation::Collections::IMapView_Vtbl<::windows_core::HSTRING, ::windows_core::HSTRING>; -} -#[cfg(feature = "Foundation_Collections")] -unsafe impl ::windows_core::ComInterface for ResourceQualifierMapView { - const IID: ::windows_core::GUID = as ::windows_core::ComInterface>::IID; + const IID: ::windows_core::GUID = as ::windows_core::Interface>::IID; } #[cfg(feature = "Foundation_Collections")] impl ::windows_core::RuntimeName for ResourceQualifierMapView { @@ -1398,12 +1238,6 @@ impl ::core::iter::IntoIterator for &ResourceQualifierMapView { } } #[cfg(feature = "Foundation_Collections")] -::windows_core::imp::interface_hierarchy!(ResourceQualifierMapView, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto>> for ResourceQualifierMapView {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for ResourceQualifierMapView {} -#[cfg(feature = "Foundation_Collections")] unsafe impl ::core::marker::Send for ResourceQualifierMapView {} #[cfg(feature = "Foundation_Collections")] unsafe impl ::core::marker::Sync for ResourceQualifierMapView {} @@ -1413,11 +1247,15 @@ unsafe impl ::core::marker::Sync for ResourceQualifierMapView {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ResourceQualifierObservableMap(::windows_core::IUnknown); #[cfg(feature = "Foundation_Collections")] +::windows_core::imp::interface_hierarchy!(ResourceQualifierObservableMap, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(ResourceQualifierObservableMap, super::super::super::Foundation::Collections::IIterable::>, super::super::super::Foundation::Collections::IMap::<::windows_core::HSTRING, ::windows_core::HSTRING>, super::super::super::Foundation::Collections::IObservableMap::<::windows_core::HSTRING, ::windows_core::HSTRING>); +#[cfg(feature = "Foundation_Collections")] impl ResourceQualifierObservableMap { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> ::windows_core::Result>> { - let this = &::windows_core::ComInterface::cast::>>(self)?; + let this = &::windows_core::Interface::cast::>>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1426,7 +1264,7 @@ impl ResourceQualifierObservableMap { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Lookup(&self, key: &::windows_core::HSTRING) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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), ::core::mem::transmute_copy(key), &mut result__).from_abi(result__) @@ -1435,7 +1273,7 @@ impl ResourceQualifierObservableMap { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Size(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Size)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1444,7 +1282,7 @@ impl ResourceQualifierObservableMap { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn HasKey(&self, key: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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), ::core::mem::transmute_copy(key), &mut result__).from_abi(result__) @@ -1453,7 +1291,7 @@ impl ResourceQualifierObservableMap { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetView(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetView)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1462,7 +1300,7 @@ impl ResourceQualifierObservableMap { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Insert(&self, key: &::windows_core::HSTRING, value: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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), ::core::mem::transmute_copy(value), &mut result__).from_abi(result__) @@ -1471,13 +1309,13 @@ impl ResourceQualifierObservableMap { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Remove(&self, key: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).Remove)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Clear(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).Clear)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -1506,10 +1344,7 @@ impl ::windows_core::RuntimeType for ResourceQualifierObservableMap { #[cfg(feature = "Foundation_Collections")] unsafe impl ::windows_core::Interface for ResourceQualifierObservableMap { type Vtable = super::super::super::Foundation::Collections::IObservableMap_Vtbl<::windows_core::HSTRING, ::windows_core::HSTRING>; -} -#[cfg(feature = "Foundation_Collections")] -unsafe impl ::windows_core::ComInterface for ResourceQualifierObservableMap { - const IID: ::windows_core::GUID = as ::windows_core::ComInterface>::IID; + const IID: ::windows_core::GUID = as ::windows_core::Interface>::IID; } #[cfg(feature = "Foundation_Collections")] impl ::windows_core::RuntimeName for ResourceQualifierObservableMap { @@ -1532,14 +1367,6 @@ impl ::core::iter::IntoIterator for &ResourceQualifierObservableMap { } } #[cfg(feature = "Foundation_Collections")] -::windows_core::imp::interface_hierarchy!(ResourceQualifierObservableMap, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto>> for ResourceQualifierObservableMap {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for ResourceQualifierObservableMap {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for ResourceQualifierObservableMap {} -#[cfg(feature = "Foundation_Collections")] unsafe impl ::core::marker::Send for ResourceQualifierObservableMap {} #[cfg(feature = "Foundation_Collections")] unsafe impl ::core::marker::Sync for ResourceQualifierObservableMap {} @@ -1549,11 +1376,15 @@ unsafe impl ::core::marker::Sync for ResourceQualifierObservableMap {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ResourceQualifierVectorView(::windows_core::IUnknown); #[cfg(feature = "Foundation_Collections")] +::windows_core::imp::interface_hierarchy!(ResourceQualifierVectorView, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(ResourceQualifierVectorView, super::super::super::Foundation::Collections::IIterable::, super::super::super::Foundation::Collections::IVectorView::); +#[cfg(feature = "Foundation_Collections")] impl ResourceQualifierVectorView { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1606,10 +1437,7 @@ impl ::windows_core::RuntimeType for ResourceQualifierVectorView { #[cfg(feature = "Foundation_Collections")] unsafe impl ::windows_core::Interface for ResourceQualifierVectorView { type Vtable = super::super::super::Foundation::Collections::IVectorView_Vtbl; -} -#[cfg(feature = "Foundation_Collections")] -unsafe impl ::windows_core::ComInterface for ResourceQualifierVectorView { - const IID: ::windows_core::GUID = as ::windows_core::ComInterface>::IID; + const IID: ::windows_core::GUID = as ::windows_core::Interface>::IID; } #[cfg(feature = "Foundation_Collections")] impl ::windows_core::RuntimeName for ResourceQualifierVectorView { @@ -1628,16 +1456,10 @@ impl ::core::iter::IntoIterator for &ResourceQualifierVectorView { type Item = ResourceQualifier; type IntoIter = super::super::super::Foundation::Collections::VectorViewIterator; fn into_iter(self) -> Self::IntoIter { - super::super::super::Foundation::Collections::VectorViewIterator::new(::windows_core::ComInterface::cast(self).ok()) + super::super::super::Foundation::Collections::VectorViewIterator::new(::windows_core::Interface::cast(self).ok()) } } #[cfg(feature = "Foundation_Collections")] -::windows_core::imp::interface_hierarchy!(ResourceQualifierVectorView, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for ResourceQualifierVectorView {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for ResourceQualifierVectorView {} -#[cfg(feature = "Foundation_Collections")] unsafe impl ::core::marker::Send for ResourceQualifierVectorView {} #[cfg(feature = "Foundation_Collections")] unsafe impl ::core::marker::Sync for ResourceQualifierVectorView {} 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 10e97c90d0..d7d212df74 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Resources/Management/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Resources/Management/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIndexedResourceCandidate(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIndexedResourceCandidate { - type Vtable = IIndexedResourceCandidate_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIndexedResourceCandidate { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0e619ef3_faec_4414_a9d7_54acd5953f29); -} +::windows_core::imp::com_interface!(IIndexedResourceCandidate, IIndexedResourceCandidate_Vtbl, 0x0e619ef3_faec_4414_a9d7_54acd5953f29); #[repr(C)] #[doc(hidden)] pub struct IIndexedResourceCandidate_Vtbl { @@ -25,16 +16,7 @@ pub struct IIndexedResourceCandidate_Vtbl { pub ValueAsString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub GetQualifierValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, qualifiername: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIndexedResourceQualifier(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIndexedResourceQualifier { - type Vtable = IIndexedResourceQualifier_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIndexedResourceQualifier { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdae3bb9b_d304_497f_a168_a340042c8adb); -} +::windows_core::imp::com_interface!(IIndexedResourceQualifier, IIndexedResourceQualifier_Vtbl, 0xdae3bb9b_d304_497f_a168_a340042c8adb); #[repr(C)] #[doc(hidden)] pub struct IIndexedResourceQualifier_Vtbl { @@ -42,19 +24,13 @@ pub struct IIndexedResourceQualifier_Vtbl { pub QualifierName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub QualifierValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] #[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IResourceIndexer(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for IResourceIndexer { - type Vtable = IResourceIndexer_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for IResourceIndexer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2d4cf9a5_e32f_4ab2_8748_96350a016da3); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + IResourceIndexer, + IResourceIndexer_Vtbl, + 0x2d4cf9a5_e32f_4ab2_8748_96350a016da3 +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -69,19 +45,13 @@ pub struct IResourceIndexer_Vtbl { #[cfg(not(all(feature = "Foundation_Collections", feature = "deprecated")))] IndexFileContentsAsync: usize, } -#[doc(hidden)] -#[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IResourceIndexerFactory(::windows_core::IUnknown); #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for IResourceIndexerFactory { - type Vtable = IResourceIndexerFactory_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for IResourceIndexerFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb8de3f09_31cd_4d97_bd30_8d39f742bc61); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + IResourceIndexerFactory, + IResourceIndexerFactory_Vtbl, + 0xb8de3f09_31cd_4d97_bd30_8d39f742bc61 +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -92,19 +62,13 @@ pub struct IResourceIndexerFactory_Vtbl { #[cfg(not(feature = "deprecated"))] CreateResourceIndexer: usize, } -#[doc(hidden)] -#[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IResourceIndexerFactory2(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for IResourceIndexerFactory2 { - type Vtable = IResourceIndexerFactory2_Vtbl; -} #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for IResourceIndexerFactory2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6040f18d_d5e5_4b60_9201_cd279cbcfed9); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + IResourceIndexerFactory2, + IResourceIndexerFactory2_Vtbl, + 0x6040f18d_d5e5_4b60_9201_cd279cbcfed9 +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -118,6 +82,7 @@ pub struct IResourceIndexerFactory2_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct IndexedResourceCandidate(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(IndexedResourceCandidate, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IndexedResourceCandidate { pub fn Type(&self) -> ::windows_core::Result { let this = self; @@ -171,19 +136,17 @@ impl ::windows_core::RuntimeType for IndexedResourceCandidate { } unsafe impl ::windows_core::Interface for IndexedResourceCandidate { type Vtable = IIndexedResourceCandidate_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IndexedResourceCandidate { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for IndexedResourceCandidate { const NAME: &'static str = "Windows.ApplicationModel.Resources.Management.IndexedResourceCandidate"; } -::windows_core::imp::interface_hierarchy!(IndexedResourceCandidate, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for IndexedResourceCandidate {} unsafe impl ::core::marker::Sync for IndexedResourceCandidate {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct IndexedResourceQualifier(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(IndexedResourceQualifier, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IndexedResourceQualifier { pub fn QualifierName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -205,14 +168,11 @@ impl ::windows_core::RuntimeType for IndexedResourceQualifier { } unsafe impl ::windows_core::Interface for IndexedResourceQualifier { type Vtable = IIndexedResourceQualifier_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IndexedResourceQualifier { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for IndexedResourceQualifier { const NAME: &'static str = "Windows.ApplicationModel.Resources.Management.IndexedResourceQualifier"; } -::windows_core::imp::interface_hierarchy!(IndexedResourceQualifier, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for IndexedResourceQualifier {} unsafe impl ::core::marker::Sync for IndexedResourceQualifier {} #[doc = "Required features: `\"deprecated\"`"] @@ -221,6 +181,8 @@ unsafe impl ::core::marker::Sync for IndexedResourceQualifier {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ResourceIndexer(::windows_core::IUnknown); #[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(ResourceIndexer, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "deprecated")] impl ResourceIndexer { #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] @@ -289,18 +251,13 @@ impl ::windows_core::RuntimeType for ResourceIndexer { #[cfg(feature = "deprecated")] unsafe impl ::windows_core::Interface for ResourceIndexer { type Vtable = IResourceIndexer_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for ResourceIndexer { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "deprecated")] impl ::windows_core::RuntimeName for ResourceIndexer { const NAME: &'static str = "Windows.ApplicationModel.Resources.Management.ResourceIndexer"; } #[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(ResourceIndexer, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] unsafe impl ::core::marker::Send for ResourceIndexer {} #[cfg(feature = "deprecated")] unsafe impl ::core::marker::Sync for ResourceIndexer {} diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Resources/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Resources/mod.rs index 6889d8c993..cd6166b984 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Resources/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Resources/mod.rs @@ -4,80 +4,35 @@ pub mod Core; #[cfg(feature = "ApplicationModel_Resources_Management")] #[doc = "Required features: `\"ApplicationModel_Resources_Management\"`"] pub mod Management; -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IResourceLoader(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IResourceLoader { - type Vtable = IResourceLoader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IResourceLoader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x08524908_16ef_45ad_a602_293637d7e61a); -} +::windows_core::imp::com_interface!(IResourceLoader, IResourceLoader_Vtbl, 0x08524908_16ef_45ad_a602_293637d7e61a); #[repr(C)] #[doc(hidden)] pub struct IResourceLoader_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, resource: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IResourceLoader2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IResourceLoader2 { - type Vtable = IResourceLoader2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IResourceLoader2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x10eb6ec6_8138_48c1_bc65_e1f14207367c); -} +::windows_core::imp::com_interface!(IResourceLoader2, IResourceLoader2_Vtbl, 0x10eb6ec6_8138_48c1_bc65_e1f14207367c); #[repr(C)] #[doc(hidden)] pub struct IResourceLoader2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetStringForUri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uri: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IResourceLoaderFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IResourceLoaderFactory { - type Vtable = IResourceLoaderFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IResourceLoaderFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc33a3603_69dc_4285_a077_d5c0e47ccbe8); -} +::windows_core::imp::com_interface!(IResourceLoaderFactory, IResourceLoaderFactory_Vtbl, 0xc33a3603_69dc_4285_a077_d5c0e47ccbe8); #[repr(C)] #[doc(hidden)] pub struct IResourceLoaderFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateResourceLoaderByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IResourceLoaderStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IResourceLoaderStatics { - type Vtable = IResourceLoaderStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IResourceLoaderStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbf777ce1_19c8_49c2_953c_47e9227b334e); -} +::windows_core::imp::com_interface!(IResourceLoaderStatics, IResourceLoaderStatics_Vtbl, 0xbf777ce1_19c8_49c2_953c_47e9227b334e); #[repr(C)] #[doc(hidden)] pub struct IResourceLoaderStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetStringForReference: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uri: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IResourceLoaderStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IResourceLoaderStatics2 { - type Vtable = IResourceLoaderStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IResourceLoaderStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0cc04141_6466_4989_9494_0b82dfc53f1f); -} +::windows_core::imp::com_interface!(IResourceLoaderStatics2, IResourceLoaderStatics2_Vtbl, 0x0cc04141_6466_4989_9494_0b82dfc53f1f); #[repr(C)] #[doc(hidden)] pub struct IResourceLoaderStatics2_Vtbl { @@ -87,16 +42,7 @@ pub struct IResourceLoaderStatics2_Vtbl { pub GetForViewIndependentUse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetForViewIndependentUseWithName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IResourceLoaderStatics3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IResourceLoaderStatics3 { - type Vtable = IResourceLoaderStatics3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IResourceLoaderStatics3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x64609dfb_64ac_491b_8100_0e558d61c1d0); -} +::windows_core::imp::com_interface!(IResourceLoaderStatics3, IResourceLoaderStatics3_Vtbl, 0x64609dfb_64ac_491b_8100_0e558d61c1d0); #[repr(C)] #[doc(hidden)] pub struct IResourceLoaderStatics3_Vtbl { @@ -106,16 +52,7 @@ pub struct IResourceLoaderStatics3_Vtbl { #[cfg(not(feature = "UI"))] GetForUIContext: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IResourceLoaderStatics4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IResourceLoaderStatics4 { - type Vtable = IResourceLoaderStatics4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IResourceLoaderStatics4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9fb36c32_6c8c_4316_962e_909539b5c259); -} +::windows_core::imp::com_interface!(IResourceLoaderStatics4, IResourceLoaderStatics4_Vtbl, 0x9fb36c32_6c8c_4316_962e_909539b5c259); #[repr(C)] #[doc(hidden)] pub struct IResourceLoaderStatics4_Vtbl { @@ -125,6 +62,7 @@ pub struct IResourceLoaderStatics4_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ResourceLoader(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ResourceLoader, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ResourceLoader { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -144,7 +82,7 @@ impl ResourceLoader { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -237,13 +175,10 @@ impl ::windows_core::RuntimeType for ResourceLoader { } unsafe impl ::windows_core::Interface for ResourceLoader { type Vtable = IResourceLoader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ResourceLoader { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ResourceLoader { const NAME: &'static str = "Windows.ApplicationModel.Resources.ResourceLoader"; } -::windows_core::imp::interface_hierarchy!(ResourceLoader, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ResourceLoader {} unsafe impl ::core::marker::Sync for ResourceLoader {} 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 9ed15544f2..c74ea33d78 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Search/Core/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Search/Core/mod.rs @@ -1,28 +1,10 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRequestingFocusOnKeyboardInputEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRequestingFocusOnKeyboardInputEventArgs { - type Vtable = IRequestingFocusOnKeyboardInputEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRequestingFocusOnKeyboardInputEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa1195f27_b1a7_41a2_879d_6a68687e5985); -} +::windows_core::imp::com_interface!(IRequestingFocusOnKeyboardInputEventArgs, IRequestingFocusOnKeyboardInputEventArgs_Vtbl, 0xa1195f27_b1a7_41a2_879d_6a68687e5985); #[repr(C)] #[doc(hidden)] pub struct IRequestingFocusOnKeyboardInputEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISearchSuggestion(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISearchSuggestion { - type Vtable = ISearchSuggestion_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISearchSuggestion { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5b5554b0_1527_437b_95c5_8d18d2b8af55); -} +::windows_core::imp::com_interface!(ISearchSuggestion, ISearchSuggestion_Vtbl, 0x5b5554b0_1527_437b_95c5_8d18d2b8af55); #[repr(C)] #[doc(hidden)] pub struct ISearchSuggestion_Vtbl { @@ -37,16 +19,7 @@ pub struct ISearchSuggestion_Vtbl { Image: usize, pub ImageAlternateText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISearchSuggestionManager(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISearchSuggestionManager { - type Vtable = ISearchSuggestionManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISearchSuggestionManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3f0c50a1_cb9d_497b_b500_3c04ac959ad2); -} +::windows_core::imp::com_interface!(ISearchSuggestionManager, ISearchSuggestionManager_Vtbl, 0x3f0c50a1_cb9d_497b_b500_3c04ac959ad2); #[repr(C)] #[doc(hidden)] pub struct ISearchSuggestionManager_Vtbl { @@ -71,16 +44,7 @@ pub struct ISearchSuggestionManager_Vtbl { pub RequestingFocusOnKeyboardInput: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveRequestingFocusOnKeyboardInput: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISearchSuggestionsRequestedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISearchSuggestionsRequestedEventArgs { - type Vtable = ISearchSuggestionsRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISearchSuggestionsRequestedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6fd519e5_9e7e_4ab4_8be3_c76b1bd4344a); -} +::windows_core::imp::com_interface!(ISearchSuggestionsRequestedEventArgs, ISearchSuggestionsRequestedEventArgs_Vtbl, 0x6fd519e5_9e7e_4ab4_8be3_c76b1bd4344a); #[repr(C)] #[doc(hidden)] pub struct ISearchSuggestionsRequestedEventArgs_Vtbl { @@ -93,25 +57,24 @@ pub struct ISearchSuggestionsRequestedEventArgs_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RequestingFocusOnKeyboardInputEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RequestingFocusOnKeyboardInputEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RequestingFocusOnKeyboardInputEventArgs {} impl ::windows_core::RuntimeType for RequestingFocusOnKeyboardInputEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_class::(); } unsafe impl ::windows_core::Interface for RequestingFocusOnKeyboardInputEventArgs { type Vtable = IRequestingFocusOnKeyboardInputEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RequestingFocusOnKeyboardInputEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RequestingFocusOnKeyboardInputEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Search.Core.RequestingFocusOnKeyboardInputEventArgs"; } -::windows_core::imp::interface_hierarchy!(RequestingFocusOnKeyboardInputEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RequestingFocusOnKeyboardInputEventArgs {} unsafe impl ::core::marker::Sync for RequestingFocusOnKeyboardInputEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SearchSuggestion(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SearchSuggestion, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SearchSuggestion { pub fn Kind(&self) -> ::windows_core::Result { let this = self; @@ -163,17 +126,15 @@ impl ::windows_core::RuntimeType for SearchSuggestion { } unsafe impl ::windows_core::Interface for SearchSuggestion { type Vtable = ISearchSuggestion_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SearchSuggestion { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SearchSuggestion { const NAME: &'static str = "Windows.ApplicationModel.Search.Core.SearchSuggestion"; } -::windows_core::imp::interface_hierarchy!(SearchSuggestion, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SearchSuggestionManager(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SearchSuggestionManager, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SearchSuggestionManager { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -281,17 +242,15 @@ impl ::windows_core::RuntimeType for SearchSuggestionManager { } unsafe impl ::windows_core::Interface for SearchSuggestionManager { type Vtable = ISearchSuggestionManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SearchSuggestionManager { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SearchSuggestionManager { const NAME: &'static str = "Windows.ApplicationModel.Search.Core.SearchSuggestionManager"; } -::windows_core::imp::interface_hierarchy!(SearchSuggestionManager, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SearchSuggestionsRequestedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SearchSuggestionsRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SearchSuggestionsRequestedEventArgs { pub fn QueryText(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -327,14 +286,11 @@ impl ::windows_core::RuntimeType for SearchSuggestionsRequestedEventArgs { } unsafe impl ::windows_core::Interface for SearchSuggestionsRequestedEventArgs { type Vtable = ISearchSuggestionsRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SearchSuggestionsRequestedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SearchSuggestionsRequestedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Search.Core.SearchSuggestionsRequestedEventArgs"; } -::windows_core::imp::interface_hierarchy!(SearchSuggestionsRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SearchSuggestionsRequestedEventArgs {} unsafe impl ::core::marker::Sync for SearchSuggestionsRequestedEventArgs {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Search/impl.rs b/crates/libs/windows/src/Windows/ApplicationModel/Search/impl.rs index 6c04bbbf3c..7aefa72988 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Search/impl.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Search/impl.rs @@ -56,6 +56,6 @@ impl ISearchPaneQueryChangedEventArgs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Search/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Search/mod.rs index 8832465de9..33efec90b0 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Search/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Search/mod.rs @@ -1,16 +1,7 @@ #[cfg(feature = "ApplicationModel_Search_Core")] #[doc = "Required features: `\"ApplicationModel_Search_Core\"`"] pub mod Core; -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILocalContentSuggestionSettings(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILocalContentSuggestionSettings { - type Vtable = ILocalContentSuggestionSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILocalContentSuggestionSettings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeeaeb062_743d_456e_84a3_23f06f2d15d7); -} +::windows_core::imp::com_interface!(ILocalContentSuggestionSettings, ILocalContentSuggestionSettings_Vtbl, 0xeeaeb062_743d_456e_84a3_23f06f2d15d7); #[repr(C)] #[doc(hidden)] pub struct ILocalContentSuggestionSettings_Vtbl { @@ -28,19 +19,13 @@ pub struct ILocalContentSuggestionSettings_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] PropertiesToMatch: usize, } -#[doc(hidden)] -#[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISearchPane(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for ISearchPane { - type Vtable = ISearchPane_Vtbl; -} #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for ISearchPane { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfdacec38_3700_4d73_91a1_2f998674238a); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + ISearchPane, + ISearchPane_Vtbl, + 0xfdacec38_3700_4d73_91a1_2f998674238a +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -147,11 +132,15 @@ pub struct ISearchPane_Vtbl { #[cfg(not(feature = "deprecated"))] TrySetQueryText: usize, } -#[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISearchPaneQueryChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + ISearchPaneQueryChangedEventArgs, + ISearchPaneQueryChangedEventArgs_Vtbl, + 0x3c064fe9_2351_4248_a529_7110f464a785 +); +#[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(ISearchPaneQueryChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); #[cfg(feature = "deprecated")] impl ISearchPaneQueryChangedEventArgs { #[doc = "Required features: `\"deprecated\"`"] @@ -183,20 +172,10 @@ impl ISearchPaneQueryChangedEventArgs { } } #[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(ISearchPaneQueryChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] impl ::windows_core::RuntimeType for ISearchPaneQueryChangedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for ISearchPaneQueryChangedEventArgs { - type Vtable = ISearchPaneQueryChangedEventArgs_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for ISearchPaneQueryChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3c064fe9_2351_4248_a529_7110f464a785); -} -#[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] pub struct ISearchPaneQueryChangedEventArgs_Vtbl { @@ -214,16 +193,7 @@ pub struct ISearchPaneQueryChangedEventArgs_Vtbl { #[cfg(not(feature = "deprecated"))] LinguisticDetails: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISearchPaneQueryLinguisticDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISearchPaneQueryLinguisticDetails { - type Vtable = ISearchPaneQueryLinguisticDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISearchPaneQueryLinguisticDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x82fb460e_0940_4b6d_b8d0_642b30989e15); -} +::windows_core::imp::com_interface!(ISearchPaneQueryLinguisticDetails, ISearchPaneQueryLinguisticDetails_Vtbl, 0x82fb460e_0940_4b6d_b8d0_642b30989e15); #[repr(C)] #[doc(hidden)] pub struct ISearchPaneQueryLinguisticDetails_Vtbl { @@ -235,19 +205,13 @@ pub struct ISearchPaneQueryLinguisticDetails_Vtbl { pub QueryTextCompositionStart: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, pub QueryTextCompositionLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISearchPaneQuerySubmittedEventArgs(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for ISearchPaneQuerySubmittedEventArgs { - type Vtable = ISearchPaneQuerySubmittedEventArgs_Vtbl; -} #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for ISearchPaneQuerySubmittedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x143ba4fc_e9c5_4736_91b2_e8eb9cb88356); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + ISearchPaneQuerySubmittedEventArgs, + ISearchPaneQuerySubmittedEventArgs_Vtbl, + 0x143ba4fc_e9c5_4736_91b2_e8eb9cb88356 +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -262,19 +226,13 @@ pub struct ISearchPaneQuerySubmittedEventArgs_Vtbl { #[cfg(not(feature = "deprecated"))] Language: usize, } -#[doc(hidden)] -#[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISearchPaneQuerySubmittedEventArgsWithLinguisticDetails(::windows_core::IUnknown); #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for ISearchPaneQuerySubmittedEventArgsWithLinguisticDetails { - type Vtable = ISearchPaneQuerySubmittedEventArgsWithLinguisticDetails_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for ISearchPaneQuerySubmittedEventArgsWithLinguisticDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x460c92e5_4c32_4538_a4d4_b6b4400d140f); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + ISearchPaneQuerySubmittedEventArgsWithLinguisticDetails, + ISearchPaneQuerySubmittedEventArgsWithLinguisticDetails_Vtbl, + 0x460c92e5_4c32_4538_a4d4_b6b4400d140f +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -285,19 +243,13 @@ pub struct ISearchPaneQuerySubmittedEventArgsWithLinguisticDetails_Vtbl { #[cfg(not(feature = "deprecated"))] LinguisticDetails: usize, } -#[doc(hidden)] -#[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISearchPaneResultSuggestionChosenEventArgs(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for ISearchPaneResultSuggestionChosenEventArgs { - type Vtable = ISearchPaneResultSuggestionChosenEventArgs_Vtbl; -} #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for ISearchPaneResultSuggestionChosenEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc8316cc0_aed2_41e0_bce0_c26ca74f85ec); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + ISearchPaneResultSuggestionChosenEventArgs, + ISearchPaneResultSuggestionChosenEventArgs_Vtbl, + 0xc8316cc0_aed2_41e0_bce0_c26ca74f85ec +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -308,19 +260,13 @@ pub struct ISearchPaneResultSuggestionChosenEventArgs_Vtbl { #[cfg(not(feature = "deprecated"))] Tag: usize, } -#[doc(hidden)] -#[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISearchPaneStatics(::windows_core::IUnknown); #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for ISearchPaneStatics { - type Vtable = ISearchPaneStatics_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for ISearchPaneStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9572adf1_8f1d_481f_a15b_c61655f16a0e); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + ISearchPaneStatics, + ISearchPaneStatics_Vtbl, + 0x9572adf1_8f1d_481f_a15b_c61655f16a0e +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -331,19 +277,13 @@ pub struct ISearchPaneStatics_Vtbl { #[cfg(not(feature = "deprecated"))] GetForCurrentView: usize, } -#[doc(hidden)] -#[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISearchPaneStaticsWithHideThisApplication(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for ISearchPaneStaticsWithHideThisApplication { - type Vtable = ISearchPaneStaticsWithHideThisApplication_Vtbl; -} #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for ISearchPaneStaticsWithHideThisApplication { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00732830_50f1_4d03_99ac_c6644c8ed8b5); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + ISearchPaneStaticsWithHideThisApplication, + ISearchPaneStaticsWithHideThisApplication_Vtbl, + 0x00732830_50f1_4d03_99ac_c6644c8ed8b5 +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -354,19 +294,13 @@ pub struct ISearchPaneStaticsWithHideThisApplication_Vtbl { #[cfg(not(feature = "deprecated"))] HideThisApplication: usize, } -#[doc(hidden)] -#[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISearchPaneSuggestionsRequest(::windows_core::IUnknown); #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for ISearchPaneSuggestionsRequest { - type Vtable = ISearchPaneSuggestionsRequest_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for ISearchPaneSuggestionsRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x81b10b1c_e561_4093_9b4d_2ad482794a53); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + ISearchPaneSuggestionsRequest, + ISearchPaneSuggestionsRequest_Vtbl, + 0x81b10b1c_e561_4093_9b4d_2ad482794a53 +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -385,19 +319,13 @@ pub struct ISearchPaneSuggestionsRequest_Vtbl { #[cfg(not(feature = "deprecated"))] GetDeferral: usize, } -#[doc(hidden)] #[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISearchPaneSuggestionsRequestDeferral(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for ISearchPaneSuggestionsRequestDeferral { - type Vtable = ISearchPaneSuggestionsRequestDeferral_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for ISearchPaneSuggestionsRequestDeferral { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa0d009f7_8748_4ee2_ad44_afa6be997c51); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + ISearchPaneSuggestionsRequestDeferral, + ISearchPaneSuggestionsRequestDeferral_Vtbl, + 0xa0d009f7_8748_4ee2_ad44_afa6be997c51 +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -408,19 +336,13 @@ pub struct ISearchPaneSuggestionsRequestDeferral_Vtbl { #[cfg(not(feature = "deprecated"))] Complete: usize, } -#[doc(hidden)] #[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISearchPaneSuggestionsRequestedEventArgs(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for ISearchPaneSuggestionsRequestedEventArgs { - type Vtable = ISearchPaneSuggestionsRequestedEventArgs_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for ISearchPaneSuggestionsRequestedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc89b8a2f_ac56_4460_8d2f_80023bec4fc5); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + ISearchPaneSuggestionsRequestedEventArgs, + ISearchPaneSuggestionsRequestedEventArgs_Vtbl, + 0xc89b8a2f_ac56_4460_8d2f_80023bec4fc5 +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -431,19 +353,13 @@ pub struct ISearchPaneSuggestionsRequestedEventArgs_Vtbl { #[cfg(not(feature = "deprecated"))] Request: usize, } -#[doc(hidden)] #[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISearchPaneVisibilityChangedEventArgs(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for ISearchPaneVisibilityChangedEventArgs { - type Vtable = ISearchPaneVisibilityChangedEventArgs_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for ISearchPaneVisibilityChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3c4d3046_ac4b_49f2_97d6_020e6182cb9c); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + ISearchPaneVisibilityChangedEventArgs, + ISearchPaneVisibilityChangedEventArgs_Vtbl, + 0x3c4d3046_ac4b_49f2_97d6_020e6182cb9c +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -454,16 +370,7 @@ pub struct ISearchPaneVisibilityChangedEventArgs_Vtbl { #[cfg(not(feature = "deprecated"))] Visible: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISearchQueryLinguisticDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISearchQueryLinguisticDetails { - type Vtable = ISearchQueryLinguisticDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISearchQueryLinguisticDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x46a1205b_69c9_4745_b72f_a8a4fc8f24ae); -} +::windows_core::imp::com_interface!(ISearchQueryLinguisticDetails, ISearchQueryLinguisticDetails_Vtbl, 0x46a1205b_69c9_4745_b72f_a8a4fc8f24ae); #[repr(C)] #[doc(hidden)] pub struct ISearchQueryLinguisticDetails_Vtbl { @@ -475,16 +382,7 @@ pub struct ISearchQueryLinguisticDetails_Vtbl { pub QueryTextCompositionStart: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, pub QueryTextCompositionLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISearchQueryLinguisticDetailsFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISearchQueryLinguisticDetailsFactory { - type Vtable = ISearchQueryLinguisticDetailsFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISearchQueryLinguisticDetailsFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcac6c3b8_3c64_4dfd_ad9f_479e4d4065a4); -} +::windows_core::imp::com_interface!(ISearchQueryLinguisticDetailsFactory, ISearchQueryLinguisticDetailsFactory_Vtbl, 0xcac6c3b8_3c64_4dfd_ad9f_479e4d4065a4); #[repr(C)] #[doc(hidden)] pub struct ISearchQueryLinguisticDetailsFactory_Vtbl { @@ -494,16 +392,7 @@ pub struct ISearchQueryLinguisticDetailsFactory_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] CreateInstance: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISearchSuggestionCollection(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISearchSuggestionCollection { - type Vtable = ISearchSuggestionCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISearchSuggestionCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x323a8a4b_fbea_4446_abbc_3da7915fdd3a); -} +::windows_core::imp::com_interface!(ISearchSuggestionCollection, ISearchSuggestionCollection_Vtbl, 0x323a8a4b_fbea_4446_abbc_3da7915fdd3a); #[repr(C)] #[doc(hidden)] pub struct ISearchSuggestionCollection_Vtbl { @@ -520,16 +409,7 @@ pub struct ISearchSuggestionCollection_Vtbl { AppendResultSuggestion: usize, pub AppendSearchSeparator: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, label: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISearchSuggestionsRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISearchSuggestionsRequest { - type Vtable = ISearchSuggestionsRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISearchSuggestionsRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4e4e26a7_44e5_4039_9099_6000ead1f0c6); -} +::windows_core::imp::com_interface!(ISearchSuggestionsRequest, ISearchSuggestionsRequest_Vtbl, 0x4e4e26a7_44e5_4039_9099_6000ead1f0c6); #[repr(C)] #[doc(hidden)] pub struct ISearchSuggestionsRequest_Vtbl { @@ -538,16 +418,7 @@ pub struct ISearchSuggestionsRequest_Vtbl { pub SearchSuggestionCollection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISearchSuggestionsRequestDeferral(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISearchSuggestionsRequestDeferral { - type Vtable = ISearchSuggestionsRequestDeferral_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISearchSuggestionsRequestDeferral { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb71598a9_c065_456d_a845_1eccec5dc28b); -} +::windows_core::imp::com_interface!(ISearchSuggestionsRequestDeferral, ISearchSuggestionsRequestDeferral_Vtbl, 0xb71598a9_c065_456d_a845_1eccec5dc28b); #[repr(C)] #[doc(hidden)] pub struct ISearchSuggestionsRequestDeferral_Vtbl { @@ -557,6 +428,7 @@ pub struct ISearchSuggestionsRequestDeferral_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LocalContentSuggestionSettings(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LocalContentSuggestionSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); impl LocalContentSuggestionSettings { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -611,20 +483,19 @@ impl ::windows_core::RuntimeType for LocalContentSuggestionSettings { } unsafe impl ::windows_core::Interface for LocalContentSuggestionSettings { type Vtable = ILocalContentSuggestionSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LocalContentSuggestionSettings { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LocalContentSuggestionSettings { const NAME: &'static str = "Windows.ApplicationModel.Search.LocalContentSuggestionSettings"; } -::windows_core::imp::interface_hierarchy!(LocalContentSuggestionSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SearchPane(::windows_core::IUnknown); #[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(SearchPane, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "deprecated")] impl SearchPane { #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] @@ -866,23 +737,22 @@ impl ::windows_core::RuntimeType for SearchPane { #[cfg(feature = "deprecated")] unsafe impl ::windows_core::Interface for SearchPane { type Vtable = ISearchPane_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for SearchPane { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "deprecated")] impl ::windows_core::RuntimeName for SearchPane { const NAME: &'static str = "Windows.ApplicationModel.Search.SearchPane"; } -#[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(SearchPane, ::windows_core::IUnknown, ::windows_core::IInspectable); #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SearchPaneQueryChangedEventArgs(::windows_core::IUnknown); #[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(SearchPaneQueryChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "deprecated")] +::windows_core::imp::required_hierarchy!(SearchPaneQueryChangedEventArgs, ISearchPaneQueryChangedEventArgs); +#[cfg(feature = "deprecated")] impl SearchPaneQueryChangedEventArgs { #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] @@ -919,26 +789,20 @@ impl ::windows_core::RuntimeType for SearchPaneQueryChangedEventArgs { #[cfg(feature = "deprecated")] unsafe impl ::windows_core::Interface for SearchPaneQueryChangedEventArgs { type Vtable = ISearchPaneQueryChangedEventArgs_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for SearchPaneQueryChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "deprecated")] impl ::windows_core::RuntimeName for SearchPaneQueryChangedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Search.SearchPaneQueryChangedEventArgs"; } #[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(SearchPaneQueryChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] -impl ::windows_core::CanTryInto for SearchPaneQueryChangedEventArgs {} -#[cfg(feature = "deprecated")] unsafe impl ::core::marker::Send for SearchPaneQueryChangedEventArgs {} #[cfg(feature = "deprecated")] unsafe impl ::core::marker::Sync for SearchPaneQueryChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SearchPaneQueryLinguisticDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SearchPaneQueryLinguisticDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SearchPaneQueryLinguisticDetails { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -969,14 +833,11 @@ impl ::windows_core::RuntimeType for SearchPaneQueryLinguisticDetails { } unsafe impl ::windows_core::Interface for SearchPaneQueryLinguisticDetails { type Vtable = ISearchPaneQueryLinguisticDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SearchPaneQueryLinguisticDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SearchPaneQueryLinguisticDetails { const NAME: &'static str = "Windows.ApplicationModel.Search.SearchPaneQueryLinguisticDetails"; } -::windows_core::imp::interface_hierarchy!(SearchPaneQueryLinguisticDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SearchPaneQueryLinguisticDetails {} unsafe impl ::core::marker::Sync for SearchPaneQueryLinguisticDetails {} #[doc = "Required features: `\"deprecated\"`"] @@ -985,6 +846,8 @@ unsafe impl ::core::marker::Sync for SearchPaneQueryLinguisticDetails {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SearchPaneQuerySubmittedEventArgs(::windows_core::IUnknown); #[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(SearchPaneQuerySubmittedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "deprecated")] impl SearchPaneQuerySubmittedEventArgs { #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] @@ -1007,7 +870,7 @@ impl SearchPaneQuerySubmittedEventArgs { #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] pub fn LinguisticDetails(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).LinguisticDetails)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1021,18 +884,13 @@ impl ::windows_core::RuntimeType for SearchPaneQuerySubmittedEventArgs { #[cfg(feature = "deprecated")] unsafe impl ::windows_core::Interface for SearchPaneQuerySubmittedEventArgs { type Vtable = ISearchPaneQuerySubmittedEventArgs_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for SearchPaneQuerySubmittedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "deprecated")] impl ::windows_core::RuntimeName for SearchPaneQuerySubmittedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Search.SearchPaneQuerySubmittedEventArgs"; } #[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(SearchPaneQuerySubmittedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] unsafe impl ::core::marker::Send for SearchPaneQuerySubmittedEventArgs {} #[cfg(feature = "deprecated")] unsafe impl ::core::marker::Sync for SearchPaneQuerySubmittedEventArgs {} @@ -1042,6 +900,8 @@ unsafe impl ::core::marker::Sync for SearchPaneQuerySubmittedEventArgs {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SearchPaneResultSuggestionChosenEventArgs(::windows_core::IUnknown); #[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(SearchPaneResultSuggestionChosenEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "deprecated")] impl SearchPaneResultSuggestionChosenEventArgs { #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] @@ -1060,18 +920,13 @@ impl ::windows_core::RuntimeType for SearchPaneResultSuggestionChosenEventArgs { #[cfg(feature = "deprecated")] unsafe impl ::windows_core::Interface for SearchPaneResultSuggestionChosenEventArgs { type Vtable = ISearchPaneResultSuggestionChosenEventArgs_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for SearchPaneResultSuggestionChosenEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "deprecated")] impl ::windows_core::RuntimeName for SearchPaneResultSuggestionChosenEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Search.SearchPaneResultSuggestionChosenEventArgs"; } #[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(SearchPaneResultSuggestionChosenEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] unsafe impl ::core::marker::Send for SearchPaneResultSuggestionChosenEventArgs {} #[cfg(feature = "deprecated")] unsafe impl ::core::marker::Sync for SearchPaneResultSuggestionChosenEventArgs {} @@ -1081,6 +936,8 @@ unsafe impl ::core::marker::Sync for SearchPaneResultSuggestionChosenEventArgs { #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SearchPaneSuggestionsRequest(::windows_core::IUnknown); #[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(SearchPaneSuggestionsRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "deprecated")] impl SearchPaneSuggestionsRequest { #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] @@ -1117,18 +974,13 @@ impl ::windows_core::RuntimeType for SearchPaneSuggestionsRequest { #[cfg(feature = "deprecated")] unsafe impl ::windows_core::Interface for SearchPaneSuggestionsRequest { type Vtable = ISearchPaneSuggestionsRequest_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for SearchPaneSuggestionsRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "deprecated")] impl ::windows_core::RuntimeName for SearchPaneSuggestionsRequest { const NAME: &'static str = "Windows.ApplicationModel.Search.SearchPaneSuggestionsRequest"; } #[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(SearchPaneSuggestionsRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] unsafe impl ::core::marker::Send for SearchPaneSuggestionsRequest {} #[cfg(feature = "deprecated")] unsafe impl ::core::marker::Sync for SearchPaneSuggestionsRequest {} @@ -1138,6 +990,8 @@ unsafe impl ::core::marker::Sync for SearchPaneSuggestionsRequest {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SearchPaneSuggestionsRequestDeferral(::windows_core::IUnknown); #[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(SearchPaneSuggestionsRequestDeferral, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "deprecated")] impl SearchPaneSuggestionsRequestDeferral { #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] @@ -1153,18 +1007,13 @@ impl ::windows_core::RuntimeType for SearchPaneSuggestionsRequestDeferral { #[cfg(feature = "deprecated")] unsafe impl ::windows_core::Interface for SearchPaneSuggestionsRequestDeferral { type Vtable = ISearchPaneSuggestionsRequestDeferral_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for SearchPaneSuggestionsRequestDeferral { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "deprecated")] impl ::windows_core::RuntimeName for SearchPaneSuggestionsRequestDeferral { const NAME: &'static str = "Windows.ApplicationModel.Search.SearchPaneSuggestionsRequestDeferral"; } #[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(SearchPaneSuggestionsRequestDeferral, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] unsafe impl ::core::marker::Send for SearchPaneSuggestionsRequestDeferral {} #[cfg(feature = "deprecated")] unsafe impl ::core::marker::Sync for SearchPaneSuggestionsRequestDeferral {} @@ -1174,11 +1023,15 @@ unsafe impl ::core::marker::Sync for SearchPaneSuggestionsRequestDeferral {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SearchPaneSuggestionsRequestedEventArgs(::windows_core::IUnknown); #[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(SearchPaneSuggestionsRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "deprecated")] +::windows_core::imp::required_hierarchy!(SearchPaneSuggestionsRequestedEventArgs, ISearchPaneQueryChangedEventArgs); +#[cfg(feature = "deprecated")] impl SearchPaneSuggestionsRequestedEventArgs { #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] pub fn QueryText(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).QueryText)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1187,7 +1040,7 @@ impl SearchPaneSuggestionsRequestedEventArgs { #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] pub fn Language(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Language)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1196,7 +1049,7 @@ impl SearchPaneSuggestionsRequestedEventArgs { #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] pub fn LinguisticDetails(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).LinguisticDetails)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1219,20 +1072,13 @@ impl ::windows_core::RuntimeType for SearchPaneSuggestionsRequestedEventArgs { #[cfg(feature = "deprecated")] unsafe impl ::windows_core::Interface for SearchPaneSuggestionsRequestedEventArgs { type Vtable = ISearchPaneSuggestionsRequestedEventArgs_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for SearchPaneSuggestionsRequestedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "deprecated")] impl ::windows_core::RuntimeName for SearchPaneSuggestionsRequestedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Search.SearchPaneSuggestionsRequestedEventArgs"; } #[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(SearchPaneSuggestionsRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] -impl ::windows_core::CanTryInto for SearchPaneSuggestionsRequestedEventArgs {} -#[cfg(feature = "deprecated")] unsafe impl ::core::marker::Send for SearchPaneSuggestionsRequestedEventArgs {} #[cfg(feature = "deprecated")] unsafe impl ::core::marker::Sync for SearchPaneSuggestionsRequestedEventArgs {} @@ -1242,6 +1088,8 @@ unsafe impl ::core::marker::Sync for SearchPaneSuggestionsRequestedEventArgs {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SearchPaneVisibilityChangedEventArgs(::windows_core::IUnknown); #[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(SearchPaneVisibilityChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "deprecated")] impl SearchPaneVisibilityChangedEventArgs { #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] @@ -1260,24 +1108,20 @@ impl ::windows_core::RuntimeType for SearchPaneVisibilityChangedEventArgs { #[cfg(feature = "deprecated")] unsafe impl ::windows_core::Interface for SearchPaneVisibilityChangedEventArgs { type Vtable = ISearchPaneVisibilityChangedEventArgs_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for SearchPaneVisibilityChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "deprecated")] impl ::windows_core::RuntimeName for SearchPaneVisibilityChangedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Search.SearchPaneVisibilityChangedEventArgs"; } #[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(SearchPaneVisibilityChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] unsafe impl ::core::marker::Send for SearchPaneVisibilityChangedEventArgs {} #[cfg(feature = "deprecated")] unsafe impl ::core::marker::Sync for SearchPaneVisibilityChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SearchQueryLinguisticDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SearchQueryLinguisticDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SearchQueryLinguisticDetails { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -1306,11 +1150,11 @@ impl SearchQueryLinguisticDetails { #[cfg(feature = "Foundation_Collections")] pub fn CreateInstance(querytextalternatives: P0, querytextcompositionstart: u32, querytextcompositionlength: u32) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::ISearchQueryLinguisticDetailsFactory(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateInstance)(::windows_core::Interface::as_raw(this), querytextalternatives.try_into_param()?.abi(), querytextcompositionstart, querytextcompositionlength, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateInstance)(::windows_core::Interface::as_raw(this), querytextalternatives.into_param().abi(), querytextcompositionstart, querytextcompositionlength, &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -1324,19 +1168,17 @@ impl ::windows_core::RuntimeType for SearchQueryLinguisticDetails { } unsafe impl ::windows_core::Interface for SearchQueryLinguisticDetails { type Vtable = ISearchQueryLinguisticDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SearchQueryLinguisticDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SearchQueryLinguisticDetails { const NAME: &'static str = "Windows.ApplicationModel.Search.SearchQueryLinguisticDetails"; } -::windows_core::imp::interface_hierarchy!(SearchQueryLinguisticDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SearchQueryLinguisticDetails {} unsafe impl ::core::marker::Sync for SearchQueryLinguisticDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SearchSuggestionCollection(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SearchSuggestionCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SearchSuggestionCollection { pub fn Size(&self) -> ::windows_core::Result { let this = self; @@ -1353,19 +1195,19 @@ impl SearchSuggestionCollection { #[cfg(feature = "Foundation_Collections")] pub fn AppendQuerySuggestions(&self, suggestions: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).AppendQuerySuggestions)(::windows_core::Interface::as_raw(this), suggestions.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).AppendQuerySuggestions)(::windows_core::Interface::as_raw(this), suggestions.into_param().abi()).ok() } } #[doc = "Required features: `\"Storage_Streams\"`"] #[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::TryIntoParam, + P0: ::windows_core::IntoParam, { 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.try_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.into_param().abi(), ::core::mem::transmute_copy(imagealternatetext)).ok() } } pub fn AppendSearchSeparator(&self, label: &::windows_core::HSTRING) -> ::windows_core::Result<()> { let this = self; @@ -1377,19 +1219,17 @@ impl ::windows_core::RuntimeType for SearchSuggestionCollection { } unsafe impl ::windows_core::Interface for SearchSuggestionCollection { type Vtable = ISearchSuggestionCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SearchSuggestionCollection { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SearchSuggestionCollection { const NAME: &'static str = "Windows.ApplicationModel.Search.SearchSuggestionCollection"; } -::windows_core::imp::interface_hierarchy!(SearchSuggestionCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SearchSuggestionCollection {} unsafe impl ::core::marker::Sync for SearchSuggestionCollection {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SearchSuggestionsRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SearchSuggestionsRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SearchSuggestionsRequest { pub fn IsCanceled(&self) -> ::windows_core::Result { let this = self; @@ -1418,19 +1258,17 @@ impl ::windows_core::RuntimeType for SearchSuggestionsRequest { } unsafe impl ::windows_core::Interface for SearchSuggestionsRequest { type Vtable = ISearchSuggestionsRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SearchSuggestionsRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SearchSuggestionsRequest { const NAME: &'static str = "Windows.ApplicationModel.Search.SearchSuggestionsRequest"; } -::windows_core::imp::interface_hierarchy!(SearchSuggestionsRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SearchSuggestionsRequest {} unsafe impl ::core::marker::Sync for SearchSuggestionsRequest {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SearchSuggestionsRequestDeferral(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SearchSuggestionsRequestDeferral, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SearchSuggestionsRequestDeferral { pub fn Complete(&self) -> ::windows_core::Result<()> { let this = self; @@ -1442,14 +1280,11 @@ impl ::windows_core::RuntimeType for SearchSuggestionsRequestDeferral { } unsafe impl ::windows_core::Interface for SearchSuggestionsRequestDeferral { type Vtable = ISearchSuggestionsRequestDeferral_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SearchSuggestionsRequestDeferral { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SearchSuggestionsRequestDeferral { const NAME: &'static str = "Windows.ApplicationModel.Search.SearchSuggestionsRequestDeferral"; } -::windows_core::imp::interface_hierarchy!(SearchSuggestionsRequestDeferral, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SearchSuggestionsRequestDeferral {} unsafe impl ::core::marker::Sync for SearchSuggestionsRequestDeferral {} #[cfg(feature = "implement")] 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 10a62dc2c5..da5a769d6c 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Store/LicenseManagement/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Store/LicenseManagement/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILicenseManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILicenseManagerStatics { - type Vtable = ILicenseManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILicenseManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb5ac3ae0_da47_4f20_9a23_09182c9476ff); -} +::windows_core::imp::com_interface!(ILicenseManagerStatics, ILicenseManagerStatics_Vtbl, 0xb5ac3ae0_da47_4f20_9a23_09182c9476ff); #[repr(C)] #[doc(hidden)] pub struct ILicenseManagerStatics_Vtbl { @@ -21,32 +12,14 @@ pub struct ILicenseManagerStatics_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetSatisfactionInfosAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILicenseManagerStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILicenseManagerStatics2 { - type Vtable = ILicenseManagerStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILicenseManagerStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xab2ec47b_1f79_4480_b87e_2c499e601ba3); -} +::windows_core::imp::com_interface!(ILicenseManagerStatics2, ILicenseManagerStatics2_Vtbl, 0xab2ec47b_1f79_4480_b87e_2c499e601ba3); #[repr(C)] #[doc(hidden)] pub struct ILicenseManagerStatics2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub RefreshLicensesAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, refreshoption: LicenseRefreshOption, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILicenseSatisfactionInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILicenseSatisfactionInfo { - type Vtable = ILicenseSatisfactionInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILicenseSatisfactionInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3ccbb08f_db31_48d5_8384_fa17c81474e2); -} +::windows_core::imp::com_interface!(ILicenseSatisfactionInfo, ILicenseSatisfactionInfo_Vtbl, 0x3ccbb08f_db31_48d5_8384_fa17c81474e2); #[repr(C)] #[doc(hidden)] pub struct ILicenseSatisfactionInfo_Vtbl { @@ -59,16 +32,7 @@ pub struct ILicenseSatisfactionInfo_Vtbl { pub SatisfiedBySignedInUser: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub IsSatisfied: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILicenseSatisfactionResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILicenseSatisfactionResult { - type Vtable = ILicenseSatisfactionResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILicenseSatisfactionResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3c674f73_3c87_4ee1_8201_f428359bd3af); -} +::windows_core::imp::com_interface!(ILicenseSatisfactionResult, ILicenseSatisfactionResult_Vtbl, 0x3c674f73_3c87_4ee1_8201_f428359bd3af); #[repr(C)] #[doc(hidden)] pub struct ILicenseSatisfactionResult_Vtbl { @@ -85,23 +49,23 @@ impl LicenseManager { #[cfg(feature = "Storage_Streams")] pub fn AddLicenseAsync(license: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::ILicenseManagerStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).AddLicenseAsync)(::windows_core::Interface::as_raw(this), license.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).AddLicenseAsync)(::windows_core::Interface::as_raw(this), license.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetSatisfactionInfosAsync(contentids: P0, keyids: P1) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, - P1: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, + P1: ::windows_core::IntoParam>, { Self::ILicenseManagerStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).GetSatisfactionInfosAsync)(::windows_core::Interface::as_raw(this), contentids.try_into_param()?.abi(), keyids.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).GetSatisfactionInfosAsync)(::windows_core::Interface::as_raw(this), contentids.into_param().abi(), keyids.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn RefreshLicensesAsync(refreshoption: LicenseRefreshOption) -> ::windows_core::Result { @@ -127,6 +91,7 @@ impl ::windows_core::RuntimeName for LicenseManager { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LicenseSatisfactionInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LicenseSatisfactionInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl LicenseSatisfactionInfo { pub fn SatisfiedByDevice(&self) -> ::windows_core::Result { let this = self; @@ -183,19 +148,17 @@ impl ::windows_core::RuntimeType for LicenseSatisfactionInfo { } unsafe impl ::windows_core::Interface for LicenseSatisfactionInfo { type Vtable = ILicenseSatisfactionInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LicenseSatisfactionInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LicenseSatisfactionInfo { const NAME: &'static str = "Windows.ApplicationModel.Store.LicenseManagement.LicenseSatisfactionInfo"; } -::windows_core::imp::interface_hierarchy!(LicenseSatisfactionInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for LicenseSatisfactionInfo {} unsafe impl ::core::marker::Sync for LicenseSatisfactionInfo {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LicenseSatisfactionResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LicenseSatisfactionResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl LicenseSatisfactionResult { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -219,14 +182,11 @@ impl ::windows_core::RuntimeType for LicenseSatisfactionResult { } unsafe impl ::windows_core::Interface for LicenseSatisfactionResult { type Vtable = ILicenseSatisfactionResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LicenseSatisfactionResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LicenseSatisfactionResult { const NAME: &'static str = "Windows.ApplicationModel.Store.LicenseManagement.LicenseSatisfactionResult"; } -::windows_core::imp::interface_hierarchy!(LicenseSatisfactionResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for LicenseSatisfactionResult {} unsafe impl ::core::marker::Sync for LicenseSatisfactionResult {} #[repr(transparent)] 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 15317ecd04..a0353f9f21 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 @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppInstallItem(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppInstallItem { - type Vtable = IAppInstallItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppInstallItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x49d3dfab_168a_4cbf_a93a_9e448c82737d); -} +::windows_core::imp::com_interface!(IAppInstallItem, IAppInstallItem_Vtbl, 0x49d3dfab_168a_4cbf_a93a_9e448c82737d); #[repr(C)] #[doc(hidden)] pub struct IAppInstallItem_Vtbl { @@ -25,16 +16,7 @@ pub struct IAppInstallItem_Vtbl { pub StatusChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveStatusChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppInstallItem2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppInstallItem2 { - type Vtable = IAppInstallItem2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppInstallItem2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd3972af8_40c0_4fd7_aa6c_0aa13ca6188c); -} +::windows_core::imp::com_interface!(IAppInstallItem2, IAppInstallItem2_Vtbl, 0xd3972af8_40c0_4fd7_aa6c_0aa13ca6188c); #[repr(C)] #[doc(hidden)] pub struct IAppInstallItem2_Vtbl { @@ -43,16 +25,7 @@ pub struct IAppInstallItem2_Vtbl { pub PauseWithTelemetry: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, correlationvector: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub RestartWithTelemetry: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, correlationvector: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppInstallItem3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppInstallItem3 { - type Vtable = IAppInstallItem3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppInstallItem3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6f3dc998_dd47_433c_9234_560172d67a45); -} +::windows_core::imp::com_interface!(IAppInstallItem3, IAppInstallItem3_Vtbl, 0x6f3dc998_dd47_433c_9234_560172d67a45); #[repr(C)] #[doc(hidden)] pub struct IAppInstallItem3_Vtbl { @@ -63,16 +36,7 @@ pub struct IAppInstallItem3_Vtbl { Children: usize, pub ItemOperationsMightAffectOtherItems: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppInstallItem4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppInstallItem4 { - type Vtable = IAppInstallItem4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppInstallItem4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc2d1ce12_71ff_4fc8_b540_453d4b37e1d1); -} +::windows_core::imp::com_interface!(IAppInstallItem4, IAppInstallItem4_Vtbl, 0xc2d1ce12_71ff_4fc8_b540_453d4b37e1d1); #[repr(C)] #[doc(hidden)] pub struct IAppInstallItem4_Vtbl { @@ -80,16 +44,7 @@ pub struct IAppInstallItem4_Vtbl { pub LaunchAfterInstall: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetLaunchAfterInstall: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppInstallItem5(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppInstallItem5 { - type Vtable = IAppInstallItem5_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppInstallItem5 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5510e7cc_4076_4a0b_9472_c21d9d380e55); -} +::windows_core::imp::com_interface!(IAppInstallItem5, IAppInstallItem5_Vtbl, 0x5510e7cc_4076_4a0b_9472_c21d9d380e55); #[repr(C)] #[doc(hidden)] pub struct IAppInstallItem5_Vtbl { @@ -105,16 +60,7 @@ pub struct IAppInstallItem5_Vtbl { pub InstallInProgressToastNotificationMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut AppInstallationToastNotificationMode) -> ::windows_core::HRESULT, pub SetInstallInProgressToastNotificationMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: AppInstallationToastNotificationMode) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppInstallManager(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppInstallManager { - type Vtable = IAppInstallManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppInstallManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9353e170_8441_4b45_bd72_7c2fa925beee); -} +::windows_core::imp::com_interface!(IAppInstallManager, IAppInstallManager_Vtbl, 0x9353e170_8441_4b45_bd72_7c2fa925beee); #[repr(C)] #[doc(hidden)] pub struct IAppInstallManager_Vtbl { @@ -145,16 +91,7 @@ pub struct IAppInstallManager_Vtbl { pub IsStoreBlockedByPolicyAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, storeclientname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, storeclientpublisher: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetIsAppAllowedToInstallAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, productid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppInstallManager2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppInstallManager2 { - type Vtable = IAppInstallManager2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppInstallManager2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x16937851_ed37_480d_8314_52e27c03f04a); -} +::windows_core::imp::com_interface!(IAppInstallManager2, IAppInstallManager2_Vtbl, 0x16937851_ed37_480d_8314_52e27c03f04a); #[repr(C)] #[doc(hidden)] pub struct IAppInstallManager2_Vtbl { @@ -171,16 +108,7 @@ pub struct IAppInstallManager2_Vtbl { pub PauseWithTelemetry: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, productid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, correlationvector: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub RestartWithTelemetry: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, productid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, correlationvector: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppInstallManager3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppInstallManager3 { - type Vtable = IAppInstallManager3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppInstallManager3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x95b24b17_e96a_4d0e_84e1_c8cb417a0178); -} +::windows_core::imp::com_interface!(IAppInstallManager3, IAppInstallManager3_Vtbl, 0x95b24b17_e96a_4d0e_84e1_c8cb417a0178); #[repr(C)] #[doc(hidden)] pub struct IAppInstallManager3_Vtbl { @@ -215,16 +143,7 @@ pub struct IAppInstallManager3_Vtbl { GetIsApplicableForUserAsync: usize, pub MoveToFrontOfDownloadQueue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, productid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, correlationvector: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppInstallManager4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppInstallManager4 { - type Vtable = IAppInstallManager4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppInstallManager4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x260a2a16_5a9e_4ebd_b944_f2ba75c31159); -} +::windows_core::imp::com_interface!(IAppInstallManager4, IAppInstallManager4_Vtbl, 0x260a2a16_5a9e_4ebd_b944_f2ba75c31159); #[repr(C)] #[doc(hidden)] pub struct IAppInstallManager4_Vtbl { @@ -236,16 +155,7 @@ pub struct IAppInstallManager4_Vtbl { GetFreeUserEntitlementForUserAsync: usize, pub GetFreeDeviceEntitlementAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, storeid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, campaignid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, correlationvector: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppInstallManager5(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppInstallManager5 { - type Vtable = IAppInstallManager5_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppInstallManager5 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3cd7be4c_1be9_4f7f_b675_aa1d64a529b2); -} +::windows_core::imp::com_interface!(IAppInstallManager5, IAppInstallManager5_Vtbl, 0x3cd7be4c_1be9_4f7f_b675_aa1d64a529b2); #[repr(C)] #[doc(hidden)] pub struct IAppInstallManager5_Vtbl { @@ -255,16 +165,7 @@ pub struct IAppInstallManager5_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] AppInstallItemsWithGroupSupport: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppInstallManager6(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppInstallManager6 { - type Vtable = IAppInstallManager6_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppInstallManager6 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc9e7d408_f27a_4471_b2f4_e76efcbebcca); -} +::windows_core::imp::com_interface!(IAppInstallManager6, IAppInstallManager6_Vtbl, 0xc9e7d408_f27a_4471_b2f4_e76efcbebcca); #[repr(C)] #[doc(hidden)] pub struct IAppInstallManager6_Vtbl { @@ -296,48 +197,21 @@ pub struct IAppInstallManager6_Vtbl { #[cfg(not(feature = "System"))] GetIsPackageIdentityAllowedToInstallForUserAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppInstallManager7(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppInstallManager7 { - type Vtable = IAppInstallManager7_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppInstallManager7 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa5ee7b30_d5e4_49a3_9853_3db03203321d); -} +::windows_core::imp::com_interface!(IAppInstallManager7, IAppInstallManager7_Vtbl, 0xa5ee7b30_d5e4_49a3_9853_3db03203321d); #[repr(C)] #[doc(hidden)] pub struct IAppInstallManager7_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CanInstallForAllUsers: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppInstallManagerItemEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppInstallManagerItemEventArgs { - type Vtable = IAppInstallManagerItemEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppInstallManagerItemEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbc505743_4674_4dd1_957e_c25682086a14); -} +::windows_core::imp::com_interface!(IAppInstallManagerItemEventArgs, IAppInstallManagerItemEventArgs_Vtbl, 0xbc505743_4674_4dd1_957e_c25682086a14); #[repr(C)] #[doc(hidden)] pub struct IAppInstallManagerItemEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppInstallOptions(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppInstallOptions { - type Vtable = IAppInstallOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppInstallOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc9808300_1cb8_4eb6_8c9f_6a30c64a5b51); -} +::windows_core::imp::com_interface!(IAppInstallOptions, IAppInstallOptions_Vtbl, 0xc9808300_1cb8_4eb6_8c9f_6a30c64a5b51); #[repr(C)] #[doc(hidden)] pub struct IAppInstallOptions_Vtbl { @@ -361,16 +235,7 @@ pub struct IAppInstallOptions_Vtbl { pub LaunchAfterInstall: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetLaunchAfterInstall: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppInstallOptions2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppInstallOptions2 { - type Vtable = IAppInstallOptions2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppInstallOptions2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8a04c0d7_c94b_425e_95b4_bf27faeaee89); -} +::windows_core::imp::com_interface!(IAppInstallOptions2, IAppInstallOptions2_Vtbl, 0x8a04c0d7_c94b_425e_95b4_bf27faeaee89); #[repr(C)] #[doc(hidden)] pub struct IAppInstallOptions2_Vtbl { @@ -394,16 +259,7 @@ pub struct IAppInstallOptions2_Vtbl { pub ExtendedCampaignId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetExtendedCampaignId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppInstallStatus(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppInstallStatus { - type Vtable = IAppInstallStatus_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppInstallStatus { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x936dccfa_2450_4126_88b1_6127a644dd5c); -} +::windows_core::imp::com_interface!(IAppInstallStatus, IAppInstallStatus_Vtbl, 0x936dccfa_2450_4126_88b1_6127a644dd5c); #[repr(C)] #[doc(hidden)] pub struct IAppInstallStatus_Vtbl { @@ -414,16 +270,7 @@ pub struct IAppInstallStatus_Vtbl { pub PercentComplete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows_core::HRESULT, pub ErrorCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppInstallStatus2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppInstallStatus2 { - type Vtable = IAppInstallStatus2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppInstallStatus2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x96e7818a_5e92_4aa9_8edc_58fed4b87e00); -} +::windows_core::imp::com_interface!(IAppInstallStatus2, IAppInstallStatus2_Vtbl, 0x96e7818a_5e92_4aa9_8edc_58fed4b87e00); #[repr(C)] #[doc(hidden)] pub struct IAppInstallStatus2_Vtbl { @@ -434,32 +281,14 @@ pub struct IAppInstallStatus2_Vtbl { User: usize, pub ReadyForLaunch: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppInstallStatus3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppInstallStatus3 { - type Vtable = IAppInstallStatus3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppInstallStatus3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcb880c56_837b_4b4c_9ebb_6d44a0a96307); -} +::windows_core::imp::com_interface!(IAppInstallStatus3, IAppInstallStatus3_Vtbl, 0xcb880c56_837b_4b4c_9ebb_6d44a0a96307); #[repr(C)] #[doc(hidden)] pub struct IAppInstallStatus3_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub IsStaged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppUpdateOptions(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppUpdateOptions { - type Vtable = IAppUpdateOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppUpdateOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x26f0b02f_c2f3_4aea_af8c_6308dd9db85f); -} +::windows_core::imp::com_interface!(IAppUpdateOptions, IAppUpdateOptions_Vtbl, 0x26f0b02f_c2f3_4aea_af8c_6308dd9db85f); #[repr(C)] #[doc(hidden)] pub struct IAppUpdateOptions_Vtbl { @@ -469,16 +298,7 @@ pub struct IAppUpdateOptions_Vtbl { pub AllowForcedAppRestart: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetAllowForcedAppRestart: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppUpdateOptions2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppUpdateOptions2 { - type Vtable = IAppUpdateOptions2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppUpdateOptions2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf4646e08_ed26_4bf9_9679_48f628e53df8); -} +::windows_core::imp::com_interface!(IAppUpdateOptions2, IAppUpdateOptions2_Vtbl, 0xf4646e08_ed26_4bf9_9679_48f628e53df8); #[repr(C)] #[doc(hidden)] pub struct IAppUpdateOptions2_Vtbl { @@ -486,16 +306,7 @@ pub struct IAppUpdateOptions2_Vtbl { pub AutomaticallyDownloadAndInstallUpdateIfFound: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetAutomaticallyDownloadAndInstallUpdateIfFound: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGetEntitlementResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGetEntitlementResult { - type Vtable = IGetEntitlementResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGetEntitlementResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x74fc843f_1a9e_4609_8e4d_819086d08a3d); -} +::windows_core::imp::com_interface!(IGetEntitlementResult, IGetEntitlementResult_Vtbl, 0x74fc843f_1a9e_4609_8e4d_819086d08a3d); #[repr(C)] #[doc(hidden)] pub struct IGetEntitlementResult_Vtbl { @@ -505,6 +316,7 @@ pub struct IGetEntitlementResult_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppInstallItem(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppInstallItem, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppInstallItem { pub fn ProductId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -582,97 +394,97 @@ impl AppInstallItem { unsafe { (::windows_core::Interface::vtable(this).RemoveStatusChanged)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn CancelWithTelemetry(&self, correlationvector: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).CancelWithTelemetry)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(correlationvector)).ok() } } pub fn PauseWithTelemetry(&self, correlationvector: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).PauseWithTelemetry)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(correlationvector)).ok() } } pub fn RestartWithTelemetry(&self, correlationvector: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RestartWithTelemetry)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(correlationvector)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Children(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Children)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ItemOperationsMightAffectOtherItems(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ItemOperationsMightAffectOtherItems)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn LaunchAfterInstall(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).LaunchAfterInstall)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetLaunchAfterInstall(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetLaunchAfterInstall)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn PinToDesktopAfterInstall(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PinToDesktopAfterInstall)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetPinToDesktopAfterInstall(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetPinToDesktopAfterInstall)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn PinToStartAfterInstall(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PinToStartAfterInstall)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetPinToStartAfterInstall(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetPinToStartAfterInstall)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn PinToTaskbarAfterInstall(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PinToTaskbarAfterInstall)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetPinToTaskbarAfterInstall(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetPinToTaskbarAfterInstall)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn CompletedInstallToastNotificationMode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CompletedInstallToastNotificationMode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetCompletedInstallToastNotificationMode(&self, value: AppInstallationToastNotificationMode) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCompletedInstallToastNotificationMode)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn InstallInProgressToastNotificationMode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).InstallInProgressToastNotificationMode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetInstallInProgressToastNotificationMode(&self, value: AppInstallationToastNotificationMode) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetInstallInProgressToastNotificationMode)(::windows_core::Interface::as_raw(this), value).ok() } } } @@ -681,19 +493,17 @@ impl ::windows_core::RuntimeType for AppInstallItem { } unsafe impl ::windows_core::Interface for AppInstallItem { type Vtable = IAppInstallItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppInstallItem { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppInstallItem { const NAME: &'static str = "Windows.ApplicationModel.Store.Preview.InstallControl.AppInstallItem"; } -::windows_core::imp::interface_hierarchy!(AppInstallItem, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppInstallItem {} unsafe impl ::core::marker::Sync for AppInstallItem {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppInstallManager(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppInstallManager, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppInstallManager { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -825,21 +635,21 @@ impl AppInstallManager { } } pub fn StartAppInstallWithTelemetryAsync(&self, productid: &::windows_core::HSTRING, skuid: &::windows_core::HSTRING, repair: bool, forceuseofnonremovablestorage: bool, catalogid: &::windows_core::HSTRING, bundleid: &::windows_core::HSTRING, correlationvector: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).StartAppInstallWithTelemetryAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(productid), ::core::mem::transmute_copy(skuid), repair, forceuseofnonremovablestorage, ::core::mem::transmute_copy(catalogid), ::core::mem::transmute_copy(bundleid), ::core::mem::transmute_copy(correlationvector), &mut result__).from_abi(result__) } } pub fn UpdateAppByPackageFamilyNameWithTelemetryAsync(&self, packagefamilyname: &::windows_core::HSTRING, correlationvector: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).UpdateAppByPackageFamilyNameWithTelemetryAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(packagefamilyname), ::core::mem::transmute_copy(correlationvector), &mut result__).from_abi(result__) } } pub fn SearchForUpdatesWithTelemetryAsync(&self, productid: &::windows_core::HSTRING, skuid: &::windows_core::HSTRING, catalogid: &::windows_core::HSTRING, correlationvector: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SearchForUpdatesWithTelemetryAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(productid), ::core::mem::transmute_copy(skuid), ::core::mem::transmute_copy(catalogid), ::core::mem::transmute_copy(correlationvector), &mut result__).from_abi(result__) @@ -848,29 +658,29 @@ impl AppInstallManager { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn SearchForAllUpdatesWithTelemetryAsync(&self, correlationvector: &::windows_core::HSTRING) -> ::windows_core::Result>> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SearchForAllUpdatesWithTelemetryAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(correlationvector), &mut result__).from_abi(result__) } } pub fn GetIsAppAllowedToInstallWithTelemetryAsync(&self, productid: &::windows_core::HSTRING, skuid: &::windows_core::HSTRING, catalogid: &::windows_core::HSTRING, correlationvector: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetIsAppAllowedToInstallWithTelemetryAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(productid), ::core::mem::transmute_copy(skuid), ::core::mem::transmute_copy(catalogid), ::core::mem::transmute_copy(correlationvector), &mut result__).from_abi(result__) } } pub fn CancelWithTelemetry(&self, productid: &::windows_core::HSTRING, correlationvector: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).CancelWithTelemetry)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(productid), ::core::mem::transmute_copy(correlationvector)).ok() } } pub fn PauseWithTelemetry(&self, productid: &::windows_core::HSTRING, correlationvector: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).PauseWithTelemetry)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(productid), ::core::mem::transmute_copy(correlationvector)).ok() } } pub fn RestartWithTelemetry(&self, productid: &::windows_core::HSTRING, correlationvector: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RestartWithTelemetry)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(productid), ::core::mem::transmute_copy(correlationvector)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Management_Deployment\"`"] @@ -879,7 +689,7 @@ impl AppInstallManager { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -892,7 +702,7 @@ impl AppInstallManager { P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -904,7 +714,7 @@ impl AppInstallManager { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -916,7 +726,7 @@ impl AppInstallManager { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -928,7 +738,7 @@ impl AppInstallManager { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -940,7 +750,7 @@ impl AppInstallManager { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -952,18 +762,18 @@ impl AppInstallManager { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn MoveToFrontOfDownloadQueue(&self, productid: &::windows_core::HSTRING, correlationvector: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).MoveToFrontOfDownloadQueue)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(productid), ::core::mem::transmute_copy(correlationvector)).ok() } } pub fn GetFreeUserEntitlementAsync(&self, storeid: &::windows_core::HSTRING, campaignid: &::windows_core::HSTRING, correlationvector: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetFreeUserEntitlementAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(storeid), ::core::mem::transmute_copy(campaignid), ::core::mem::transmute_copy(correlationvector), &mut result__).from_abi(result__) @@ -975,14 +785,14 @@ impl AppInstallManager { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn GetFreeDeviceEntitlementAsync(&self, storeid: &::windows_core::HSTRING, campaignid: &::windows_core::HSTRING, correlationvector: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetFreeDeviceEntitlementAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(storeid), ::core::mem::transmute_copy(campaignid), ::core::mem::transmute_copy(correlationvector), &mut result__).from_abi(result__) @@ -991,7 +801,7 @@ impl AppInstallManager { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn AppInstallItemsWithGroupSupport(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AppInstallItemsWithGroupSupport)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1003,7 +813,7 @@ impl AppInstallManager { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -1016,7 +826,7 @@ impl AppInstallManager { P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -1026,7 +836,7 @@ impl AppInstallManager { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -1039,7 +849,7 @@ impl AppInstallManager { P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -1051,7 +861,7 @@ impl AppInstallManager { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -1064,14 +874,14 @@ impl AppInstallManager { P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn GetIsPackageIdentityAllowedToInstallAsync(&self, correlationvector: &::windows_core::HSTRING, packageidentityname: &::windows_core::HSTRING, publishercertificatename: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetIsPackageIdentityAllowedToInstallAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(correlationvector), ::core::mem::transmute_copy(packageidentityname), ::core::mem::transmute_copy(publishercertificatename), &mut result__).from_abi(result__) @@ -1083,14 +893,14 @@ impl AppInstallManager { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn CanInstallForAllUsers(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CanInstallForAllUsers)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1102,19 +912,17 @@ impl ::windows_core::RuntimeType for AppInstallManager { } unsafe impl ::windows_core::Interface for AppInstallManager { type Vtable = IAppInstallManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppInstallManager { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppInstallManager { const NAME: &'static str = "Windows.ApplicationModel.Store.Preview.InstallControl.AppInstallManager"; } -::windows_core::imp::interface_hierarchy!(AppInstallManager, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppInstallManager {} unsafe impl ::core::marker::Sync for AppInstallManager {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppInstallManagerItemEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppInstallManagerItemEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppInstallManagerItemEventArgs { pub fn Item(&self) -> ::windows_core::Result { let this = self; @@ -1129,19 +937,17 @@ impl ::windows_core::RuntimeType for AppInstallManagerItemEventArgs { } unsafe impl ::windows_core::Interface for AppInstallManagerItemEventArgs { type Vtable = IAppInstallManagerItemEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppInstallManagerItemEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppInstallManagerItemEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Store.Preview.InstallControl.AppInstallManagerItemEventArgs"; } -::windows_core::imp::interface_hierarchy!(AppInstallManagerItemEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppInstallManagerItemEventArgs {} unsafe impl ::core::marker::Sync for AppInstallManagerItemEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppInstallOptions(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppInstallOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppInstallOptions { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1224,102 +1030,102 @@ impl AppInstallOptions { unsafe { (::windows_core::Interface::vtable(this).SetLaunchAfterInstall)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn PinToDesktopAfterInstall(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PinToDesktopAfterInstall)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetPinToDesktopAfterInstall(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetPinToDesktopAfterInstall)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn PinToStartAfterInstall(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PinToStartAfterInstall)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetPinToStartAfterInstall(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetPinToStartAfterInstall)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn PinToTaskbarAfterInstall(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PinToTaskbarAfterInstall)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetPinToTaskbarAfterInstall(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetPinToTaskbarAfterInstall)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn CompletedInstallToastNotificationMode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CompletedInstallToastNotificationMode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetCompletedInstallToastNotificationMode(&self, value: AppInstallationToastNotificationMode) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCompletedInstallToastNotificationMode)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn InstallInProgressToastNotificationMode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).InstallInProgressToastNotificationMode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetInstallInProgressToastNotificationMode(&self, value: AppInstallationToastNotificationMode) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetInstallInProgressToastNotificationMode)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn InstallForAllUsers(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).InstallForAllUsers)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetInstallForAllUsers(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetInstallForAllUsers)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn StageButDoNotInstall(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).StageButDoNotInstall)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetStageButDoNotInstall(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetStageButDoNotInstall)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn CampaignId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CampaignId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetCampaignId(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCampaignId)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ExtendedCampaignId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ExtendedCampaignId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetExtendedCampaignId(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetExtendedCampaignId)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } } @@ -1328,19 +1134,17 @@ impl ::windows_core::RuntimeType for AppInstallOptions { } unsafe impl ::windows_core::Interface for AppInstallOptions { type Vtable = IAppInstallOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppInstallOptions { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppInstallOptions { const NAME: &'static str = "Windows.ApplicationModel.Store.Preview.InstallControl.AppInstallOptions"; } -::windows_core::imp::interface_hierarchy!(AppInstallOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppInstallOptions {} unsafe impl ::core::marker::Sync for AppInstallOptions {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppInstallStatus(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppInstallStatus, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppInstallStatus { pub fn InstallState(&self) -> ::windows_core::Result { let this = self; @@ -1380,21 +1184,21 @@ impl AppInstallStatus { #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ReadyForLaunch(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ReadyForLaunch)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsStaged(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsStaged)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1406,19 +1210,17 @@ impl ::windows_core::RuntimeType for AppInstallStatus { } unsafe impl ::windows_core::Interface for AppInstallStatus { type Vtable = IAppInstallStatus_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppInstallStatus { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppInstallStatus { const NAME: &'static str = "Windows.ApplicationModel.Store.Preview.InstallControl.AppInstallStatus"; } -::windows_core::imp::interface_hierarchy!(AppInstallStatus, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppInstallStatus {} unsafe impl ::core::marker::Sync for AppInstallStatus {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppUpdateOptions(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppUpdateOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppUpdateOptions { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1450,14 +1252,14 @@ impl AppUpdateOptions { unsafe { (::windows_core::Interface::vtable(this).SetAllowForcedAppRestart)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn AutomaticallyDownloadAndInstallUpdateIfFound(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AutomaticallyDownloadAndInstallUpdateIfFound)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetAutomaticallyDownloadAndInstallUpdateIfFound(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetAutomaticallyDownloadAndInstallUpdateIfFound)(::windows_core::Interface::as_raw(this), value).ok() } } } @@ -1466,19 +1268,17 @@ impl ::windows_core::RuntimeType for AppUpdateOptions { } unsafe impl ::windows_core::Interface for AppUpdateOptions { type Vtable = IAppUpdateOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppUpdateOptions { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppUpdateOptions { const NAME: &'static str = "Windows.ApplicationModel.Store.Preview.InstallControl.AppUpdateOptions"; } -::windows_core::imp::interface_hierarchy!(AppUpdateOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppUpdateOptions {} unsafe impl ::core::marker::Sync for AppUpdateOptions {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GetEntitlementResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GetEntitlementResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GetEntitlementResult { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -1493,14 +1293,11 @@ impl ::windows_core::RuntimeType for GetEntitlementResult { } unsafe impl ::windows_core::Interface for GetEntitlementResult { type Vtable = IGetEntitlementResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GetEntitlementResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GetEntitlementResult { const NAME: &'static str = "Windows.ApplicationModel.Store.Preview.InstallControl.GetEntitlementResult"; } -::windows_core::imp::interface_hierarchy!(GetEntitlementResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GetEntitlementResult {} unsafe impl ::core::marker::Sync for GetEntitlementResult {} #[repr(transparent)] 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 2ee25fff31..2a67d5cf32 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Store/Preview/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Store/Preview/mod.rs @@ -1,16 +1,7 @@ #[cfg(feature = "ApplicationModel_Store_Preview_InstallControl")] #[doc = "Required features: `\"ApplicationModel_Store_Preview_InstallControl\"`"] pub mod InstallControl; -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDeliveryOptimizationSettings(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDeliveryOptimizationSettings { - type Vtable = IDeliveryOptimizationSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDeliveryOptimizationSettings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1810fda0_e853_565e_b874_7a8a7b9a0e0f); -} +::windows_core::imp::com_interface!(IDeliveryOptimizationSettings, IDeliveryOptimizationSettings_Vtbl, 0x1810fda0_e853_565e_b874_7a8a7b9a0e0f); #[repr(C)] #[doc(hidden)] pub struct IDeliveryOptimizationSettings_Vtbl { @@ -18,32 +9,14 @@ pub struct IDeliveryOptimizationSettings_Vtbl { pub DownloadMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut DeliveryOptimizationDownloadMode) -> ::windows_core::HRESULT, pub DownloadModeSource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut DeliveryOptimizationDownloadModeSource) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDeliveryOptimizationSettingsStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDeliveryOptimizationSettingsStatics { - type Vtable = IDeliveryOptimizationSettingsStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDeliveryOptimizationSettingsStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5c817caf_aed5_5999_b4c9_8c60898bc4f3); -} +::windows_core::imp::com_interface!(IDeliveryOptimizationSettingsStatics, IDeliveryOptimizationSettingsStatics_Vtbl, 0x5c817caf_aed5_5999_b4c9_8c60898bc4f3); #[repr(C)] #[doc(hidden)] pub struct IDeliveryOptimizationSettingsStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetCurrentSettings: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStoreConfigurationStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStoreConfigurationStatics { - type Vtable = IStoreConfigurationStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStoreConfigurationStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728f7fc0_8628_42ec_84a2_07780eb44d8b); -} +::windows_core::imp::com_interface!(IStoreConfigurationStatics, IStoreConfigurationStatics_Vtbl, 0x728f7fc0_8628_42ec_84a2_07780eb44d8b); #[repr(C)] #[doc(hidden)] pub struct IStoreConfigurationStatics_Vtbl { @@ -58,16 +31,7 @@ pub struct IStoreConfigurationStatics_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] FilterUnsupportedSystemFeaturesAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStoreConfigurationStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStoreConfigurationStatics2 { - type Vtable = IStoreConfigurationStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStoreConfigurationStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x657c4595_c8b7_4fe9_9f4c_4d71027d347e); -} +::windows_core::imp::com_interface!(IStoreConfigurationStatics2, IStoreConfigurationStatics2_Vtbl, 0x657c4595_c8b7_4fe9_9f4c_4d71027d347e); #[repr(C)] #[doc(hidden)] pub struct IStoreConfigurationStatics2_Vtbl { @@ -75,16 +39,7 @@ pub struct IStoreConfigurationStatics2_Vtbl { pub PurchasePromptingPolicy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetPurchasePromptingPolicy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStoreConfigurationStatics3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStoreConfigurationStatics3 { - type Vtable = IStoreConfigurationStatics3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStoreConfigurationStatics3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6d45f57c_f144_4cb5_9d3f_4eb05e30b6d3); -} +::windows_core::imp::com_interface!(IStoreConfigurationStatics3, IStoreConfigurationStatics3_Vtbl, 0x6d45f57c_f144_4cb5_9d3f_4eb05e30b6d3); #[repr(C)] #[doc(hidden)] pub struct IStoreConfigurationStatics3_Vtbl { @@ -115,16 +70,7 @@ pub struct IStoreConfigurationStatics3_Vtbl { #[cfg(not(feature = "System"))] SetPurchasePromptingPolicyForUser: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStoreConfigurationStatics4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStoreConfigurationStatics4 { - type Vtable = IStoreConfigurationStatics4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStoreConfigurationStatics4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x20ff56d2_4ee3_4cf0_9b12_552c03310f75); -} +::windows_core::imp::com_interface!(IStoreConfigurationStatics4, IStoreConfigurationStatics4_Vtbl, 0x20ff56d2_4ee3_4cf0_9b12_552c03310f75); #[repr(C)] #[doc(hidden)] pub struct IStoreConfigurationStatics4_Vtbl { @@ -150,16 +96,7 @@ pub struct IStoreConfigurationStatics4_Vtbl { #[cfg(not(feature = "System"))] ShouldRestrictToEnterpriseStoreOnlyForUser: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStoreConfigurationStatics5(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStoreConfigurationStatics5 { - type Vtable = IStoreConfigurationStatics5_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStoreConfigurationStatics5 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf7613191_8fa9_49db_822b_0160e7e4e5c5); -} +::windows_core::imp::com_interface!(IStoreConfigurationStatics5, IStoreConfigurationStatics5_Vtbl, 0xf7613191_8fa9_49db_822b_0160e7e4e5c5); #[repr(C)] #[doc(hidden)] pub struct IStoreConfigurationStatics5_Vtbl { @@ -173,16 +110,7 @@ pub struct IStoreConfigurationStatics5_Vtbl { #[cfg(not(feature = "System"))] PinToDesktopForUser: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStoreHardwareManufacturerInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStoreHardwareManufacturerInfo { - type Vtable = IStoreHardwareManufacturerInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStoreHardwareManufacturerInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf292dc08_c654_43ac_a21f_34801c9d3388); -} +::windows_core::imp::com_interface!(IStoreHardwareManufacturerInfo, IStoreHardwareManufacturerInfo_Vtbl, 0xf292dc08_c654_43ac_a21f_34801c9d3388); #[repr(C)] #[doc(hidden)] pub struct IStoreHardwareManufacturerInfo_Vtbl { @@ -192,16 +120,7 @@ pub struct IStoreHardwareManufacturerInfo_Vtbl { pub ModelName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub ManufacturerName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorePreview(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorePreview { - type Vtable = IStorePreview_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorePreview { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8a157241_840e_49a9_bc01_5d5b01fbc8e9); -} +::windows_core::imp::com_interface!(IStorePreview, IStorePreview_Vtbl, 0x8a157241_840e_49a9_bc01_5d5b01fbc8e9); #[repr(C)] #[doc(hidden)] pub struct IStorePreview_Vtbl { @@ -212,16 +131,7 @@ pub struct IStorePreview_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] LoadAddOnProductInfosAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorePreviewProductInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorePreviewProductInfo { - type Vtable = IStorePreviewProductInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorePreviewProductInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1937dbb3_6c01_4c9d_85cd_5babaac2b351); -} +::windows_core::imp::com_interface!(IStorePreviewProductInfo, IStorePreviewProductInfo_Vtbl, 0x1937dbb3_6c01_4c9d_85cd_5babaac2b351); #[repr(C)] #[doc(hidden)] pub struct IStorePreviewProductInfo_Vtbl { @@ -235,32 +145,14 @@ pub struct IStorePreviewProductInfo_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] SkuInfoList: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorePreviewPurchaseResults(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorePreviewPurchaseResults { - type Vtable = IStorePreviewPurchaseResults_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorePreviewPurchaseResults { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb0daaed1_d6c5_4e53_a043_fba0d8e61231); -} +::windows_core::imp::com_interface!(IStorePreviewPurchaseResults, IStorePreviewPurchaseResults_Vtbl, 0xb0daaed1_d6c5_4e53_a043_fba0d8e61231); #[repr(C)] #[doc(hidden)] pub struct IStorePreviewPurchaseResults_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ProductPurchaseStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut StorePreviewProductPurchaseStatus) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorePreviewSkuInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorePreviewSkuInfo { - type Vtable = IStorePreviewSkuInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorePreviewSkuInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x81fd76e2_0b26_48d9_98ce_27461c669d6c); -} +::windows_core::imp::com_interface!(IStorePreviewSkuInfo, IStorePreviewSkuInfo_Vtbl, 0x81fd76e2_0b26_48d9_98ce_27461c669d6c); #[repr(C)] #[doc(hidden)] pub struct IStorePreviewSkuInfo_Vtbl { @@ -275,16 +167,7 @@ pub struct IStorePreviewSkuInfo_Vtbl { pub FormattedListPrice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub ExtendedData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebAuthenticationCoreManagerHelper(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebAuthenticationCoreManagerHelper { - type Vtable = IWebAuthenticationCoreManagerHelper_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebAuthenticationCoreManagerHelper { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x06a50525_e715_4123_9276_9d6f865ba55f); -} +::windows_core::imp::com_interface!(IWebAuthenticationCoreManagerHelper, IWebAuthenticationCoreManagerHelper_Vtbl, 0x06a50525_e715_4123_9276_9d6f865ba55f); #[repr(C)] #[doc(hidden)] pub struct IWebAuthenticationCoreManagerHelper_Vtbl { @@ -301,6 +184,7 @@ pub struct IWebAuthenticationCoreManagerHelper_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DeliveryOptimizationSettings(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DeliveryOptimizationSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DeliveryOptimizationSettings { pub fn DownloadMode(&self) -> ::windows_core::Result { let this = self; @@ -333,14 +217,11 @@ impl ::windows_core::RuntimeType for DeliveryOptimizationSettings { } unsafe impl ::windows_core::Interface for DeliveryOptimizationSettings { type Vtable = IDeliveryOptimizationSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DeliveryOptimizationSettings { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DeliveryOptimizationSettings { const NAME: &'static str = "Windows.ApplicationModel.Store.Preview.DeliveryOptimizationSettings"; } -::windows_core::imp::interface_hierarchy!(DeliveryOptimizationSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DeliveryOptimizationSettings {} unsafe impl ::core::marker::Sync for DeliveryOptimizationSettings {} pub struct StoreConfiguration; @@ -370,11 +251,11 @@ impl StoreConfiguration { #[cfg(feature = "Foundation_Collections")] pub fn FilterUnsupportedSystemFeaturesAsync(systemfeatures: P0) -> ::windows_core::Result>> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::IStoreConfigurationStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).FilterUnsupportedSystemFeaturesAsync)(::windows_core::Interface::as_raw(this), systemfeatures.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).FilterUnsupportedSystemFeaturesAsync)(::windows_core::Interface::as_raw(this), systemfeatures.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn PurchasePromptingPolicy() -> ::windows_core::Result> { @@ -385,9 +266,9 @@ impl StoreConfiguration { } pub fn SetPurchasePromptingPolicy(value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - Self::IStoreConfigurationStatics2(|this| unsafe { (::windows_core::Interface::vtable(this).SetPurchasePromptingPolicy)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() }) + Self::IStoreConfigurationStatics2(|this| unsafe { (::windows_core::Interface::vtable(this).SetPurchasePromptingPolicy)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() }) } pub fn HasStoreWebAccount() -> ::windows_core::Result { Self::IStoreConfigurationStatics3(|this| unsafe { @@ -449,9 +330,9 @@ impl StoreConfiguration { pub fn SetPurchasePromptingPolicyForUser(user: P0, value: P1) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam>, + P1: ::windows_core::IntoParam>, { - Self::IStoreConfigurationStatics3(|this| unsafe { (::windows_core::Interface::vtable(this).SetPurchasePromptingPolicyForUser)(::windows_core::Interface::as_raw(this), user.into_param().abi(), value.try_into_param()?.abi()).ok() }) + 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() }) } pub fn GetStoreWebAccountId() -> ::windows_core::Result<::windows_core::HSTRING> { Self::IStoreConfigurationStatics4(|this| unsafe { @@ -576,6 +457,7 @@ impl ::windows_core::RuntimeName for StoreConfiguration { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StoreHardwareManufacturerInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StoreHardwareManufacturerInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl StoreHardwareManufacturerInfo { pub fn HardwareManufacturerId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -611,14 +493,11 @@ impl ::windows_core::RuntimeType for StoreHardwareManufacturerInfo { } unsafe impl ::windows_core::Interface for StoreHardwareManufacturerInfo { type Vtable = IStoreHardwareManufacturerInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StoreHardwareManufacturerInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StoreHardwareManufacturerInfo { const NAME: &'static str = "Windows.ApplicationModel.Store.Preview.StoreHardwareManufacturerInfo"; } -::windows_core::imp::interface_hierarchy!(StoreHardwareManufacturerInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for StoreHardwareManufacturerInfo {} unsafe impl ::core::marker::Sync for StoreHardwareManufacturerInfo {} pub struct StorePreview; @@ -649,6 +528,7 @@ impl ::windows_core::RuntimeName for StorePreview { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StorePreviewProductInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StorePreviewProductInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl StorePreviewProductInfo { pub fn ProductId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -693,19 +573,17 @@ impl ::windows_core::RuntimeType for StorePreviewProductInfo { } unsafe impl ::windows_core::Interface for StorePreviewProductInfo { type Vtable = IStorePreviewProductInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StorePreviewProductInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StorePreviewProductInfo { const NAME: &'static str = "Windows.ApplicationModel.Store.Preview.StorePreviewProductInfo"; } -::windows_core::imp::interface_hierarchy!(StorePreviewProductInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for StorePreviewProductInfo {} unsafe impl ::core::marker::Sync for StorePreviewProductInfo {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StorePreviewPurchaseResults(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StorePreviewPurchaseResults, ::windows_core::IUnknown, ::windows_core::IInspectable); impl StorePreviewPurchaseResults { pub fn ProductPurchaseStatus(&self) -> ::windows_core::Result { let this = self; @@ -720,19 +598,17 @@ impl ::windows_core::RuntimeType for StorePreviewPurchaseResults { } unsafe impl ::windows_core::Interface for StorePreviewPurchaseResults { type Vtable = IStorePreviewPurchaseResults_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StorePreviewPurchaseResults { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StorePreviewPurchaseResults { const NAME: &'static str = "Windows.ApplicationModel.Store.Preview.StorePreviewPurchaseResults"; } -::windows_core::imp::interface_hierarchy!(StorePreviewPurchaseResults, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for StorePreviewPurchaseResults {} unsafe impl ::core::marker::Sync for StorePreviewPurchaseResults {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StorePreviewSkuInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StorePreviewSkuInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl StorePreviewSkuInfo { pub fn ProductId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -803,14 +679,11 @@ impl ::windows_core::RuntimeType for StorePreviewSkuInfo { } unsafe impl ::windows_core::Interface for StorePreviewSkuInfo { type Vtable = IStorePreviewSkuInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StorePreviewSkuInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StorePreviewSkuInfo { const NAME: &'static str = "Windows.ApplicationModel.Store.Preview.StorePreviewSkuInfo"; } -::windows_core::imp::interface_hierarchy!(StorePreviewSkuInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for StorePreviewSkuInfo {} unsafe impl ::core::marker::Sync for StorePreviewSkuInfo {} pub struct WebAuthenticationCoreManagerHelper; @@ -820,11 +693,11 @@ impl WebAuthenticationCoreManagerHelper { pub fn RequestTokenWithUIElementHostingAsync(request: P0, uielement: P1) -> ::windows_core::Result> where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam, + P1: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).RequestTokenWithUIElementHostingAsync)(::windows_core::Interface::as_raw(this), request.into_param().abi(), uielement.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Security_Authentication_Web_Core\"`, `\"Security_Credentials\"`, `\"UI_Xaml\"`"] @@ -833,11 +706,11 @@ impl WebAuthenticationCoreManagerHelper { where P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, - P2: ::windows_core::TryIntoParam, + P2: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::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__).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 cd4ed962bd..8a811b81c0 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Store/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Store/mod.rs @@ -4,16 +4,7 @@ pub mod LicenseManagement; #[cfg(feature = "ApplicationModel_Store_Preview")] #[doc = "Required features: `\"ApplicationModel_Store_Preview\"`"] pub mod Preview; -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICurrentApp(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICurrentApp { - type Vtable = ICurrentApp_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICurrentApp { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd52dc065_da3f_4685_995e_9b482eb5e603); -} +::windows_core::imp::com_interface!(ICurrentApp, ICurrentApp_Vtbl, 0xd52dc065_da3f_4685_995e_9b482eb5e603); #[repr(C)] #[doc(hidden)] pub struct ICurrentApp_Vtbl { @@ -30,16 +21,7 @@ pub struct ICurrentApp_Vtbl { pub GetAppReceiptAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetProductReceiptAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, productid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICurrentApp2Statics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICurrentApp2Statics { - type Vtable = ICurrentApp2Statics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICurrentApp2Statics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdf4e6e2d_3171_4ad3_8614_2c61244373cb); -} +::windows_core::imp::com_interface!(ICurrentApp2Statics, ICurrentApp2Statics_Vtbl, 0xdf4e6e2d_3171_4ad3_8614_2c61244373cb); #[repr(C)] #[doc(hidden)] pub struct ICurrentApp2Statics_Vtbl { @@ -47,16 +29,7 @@ pub struct ICurrentApp2Statics_Vtbl { pub GetCustomerPurchaseIdAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, serviceticket: ::std::mem::MaybeUninit<::windows_core::HSTRING>, publisheruserid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetCustomerCollectionsIdAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, serviceticket: ::std::mem::MaybeUninit<::windows_core::HSTRING>, publisheruserid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICurrentAppSimulator(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICurrentAppSimulator { - type Vtable = ICurrentAppSimulator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICurrentAppSimulator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf17f9db1_74cd_4787_9787_19866e9a5559); -} +::windows_core::imp::com_interface!(ICurrentAppSimulator, ICurrentAppSimulator_Vtbl, 0xf17f9db1_74cd_4787_9787_19866e9a5559); #[repr(C)] #[doc(hidden)] pub struct ICurrentAppSimulator_Vtbl { @@ -77,16 +50,7 @@ pub struct ICurrentAppSimulator_Vtbl { #[cfg(not(feature = "Storage"))] ReloadSimulatorAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICurrentAppSimulatorStaticsWithFiltering(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICurrentAppSimulatorStaticsWithFiltering { - type Vtable = ICurrentAppSimulatorStaticsWithFiltering_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICurrentAppSimulatorStaticsWithFiltering { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x617e70e2_f86f_4b54_9666_dde285092c68); -} +::windows_core::imp::com_interface!(ICurrentAppSimulatorStaticsWithFiltering, ICurrentAppSimulatorStaticsWithFiltering_Vtbl, 0x617e70e2_f86f_4b54_9666_dde285092c68); #[repr(C)] #[doc(hidden)] pub struct ICurrentAppSimulatorStaticsWithFiltering_Vtbl { @@ -100,32 +64,14 @@ pub struct ICurrentAppSimulatorStaticsWithFiltering_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] LoadListingInformationByKeywordsAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICurrentAppSimulatorWithCampaignId(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICurrentAppSimulatorWithCampaignId { - type Vtable = ICurrentAppSimulatorWithCampaignId_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICurrentAppSimulatorWithCampaignId { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x84678a43_df00_4672_a43f_b25b1441cfcf); -} +::windows_core::imp::com_interface!(ICurrentAppSimulatorWithCampaignId, ICurrentAppSimulatorWithCampaignId_Vtbl, 0x84678a43_df00_4672_a43f_b25b1441cfcf); #[repr(C)] #[doc(hidden)] pub struct ICurrentAppSimulatorWithCampaignId_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetAppPurchaseCampaignIdAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICurrentAppSimulatorWithConsumables(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICurrentAppSimulatorWithConsumables { - type Vtable = ICurrentAppSimulatorWithConsumables_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICurrentAppSimulatorWithConsumables { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4e51f0ab_20e7_4412_9b85_59bb78388667); -} +::windows_core::imp::com_interface!(ICurrentAppSimulatorWithConsumables, ICurrentAppSimulatorWithConsumables_Vtbl, 0x4e51f0ab_20e7_4412_9b85_59bb78388667); #[repr(C)] #[doc(hidden)] pub struct ICurrentAppSimulatorWithConsumables_Vtbl { @@ -138,16 +84,7 @@ pub struct ICurrentAppSimulatorWithConsumables_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetUnfulfilledConsumablesAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICurrentAppStaticsWithFiltering(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICurrentAppStaticsWithFiltering { - type Vtable = ICurrentAppStaticsWithFiltering_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICurrentAppStaticsWithFiltering { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd36d6542_9085_438e_97ba_a25c976be2fd); -} +::windows_core::imp::com_interface!(ICurrentAppStaticsWithFiltering, ICurrentAppStaticsWithFiltering_Vtbl, 0xd36d6542_9085_438e_97ba_a25c976be2fd); #[repr(C)] #[doc(hidden)] pub struct ICurrentAppStaticsWithFiltering_Vtbl { @@ -162,32 +99,14 @@ pub struct ICurrentAppStaticsWithFiltering_Vtbl { LoadListingInformationByKeywordsAsync: usize, pub ReportProductFulfillment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, productid: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICurrentAppWithCampaignId(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICurrentAppWithCampaignId { - type Vtable = ICurrentAppWithCampaignId_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICurrentAppWithCampaignId { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x312f4cd0_36c1_44a6_b32b_432d608e4dd6); -} +::windows_core::imp::com_interface!(ICurrentAppWithCampaignId, ICurrentAppWithCampaignId_Vtbl, 0x312f4cd0_36c1_44a6_b32b_432d608e4dd6); #[repr(C)] #[doc(hidden)] pub struct ICurrentAppWithCampaignId_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetAppPurchaseCampaignIdAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICurrentAppWithConsumables(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICurrentAppWithConsumables { - type Vtable = ICurrentAppWithConsumables_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICurrentAppWithConsumables { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x844e0071_9e4f_4f79_995a_5f91172e6cef); -} +::windows_core::imp::com_interface!(ICurrentAppWithConsumables, ICurrentAppWithConsumables_Vtbl, 0x844e0071_9e4f_4f79_995a_5f91172e6cef); #[repr(C)] #[doc(hidden)] pub struct ICurrentAppWithConsumables_Vtbl { @@ -200,16 +119,7 @@ pub struct ICurrentAppWithConsumables_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetUnfulfilledConsumablesAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILicenseInformation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILicenseInformation { - type Vtable = ILicenseInformation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILicenseInformation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8eb7dc30_f170_4ed5_8e21_1516da3fd367); -} +::windows_core::imp::com_interface!(ILicenseInformation, ILicenseInformation_Vtbl, 0x8eb7dc30_f170_4ed5_8e21_1516da3fd367); #[repr(C)] #[doc(hidden)] pub struct ILicenseInformation_Vtbl { @@ -224,16 +134,7 @@ pub struct ILicenseInformation_Vtbl { pub LicenseChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveLicenseChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IListingInformation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IListingInformation { - type Vtable = IListingInformation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IListingInformation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x588b4abf_bc74_4383_b78c_99606323dece); -} +::windows_core::imp::com_interface!(IListingInformation, IListingInformation_Vtbl, 0x588b4abf_bc74_4383_b78c_99606323dece); #[repr(C)] #[doc(hidden)] pub struct IListingInformation_Vtbl { @@ -248,16 +149,7 @@ pub struct IListingInformation_Vtbl { pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub AgeRating: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IListingInformation2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IListingInformation2 { - type Vtable = IListingInformation2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IListingInformation2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc0fd2c1d_b30e_4384_84ea_72fefa82223e); -} +::windows_core::imp::com_interface!(IListingInformation2, IListingInformation2_Vtbl, 0xc0fd2c1d_b30e_4384_84ea_72fefa82223e); #[repr(C)] #[doc(hidden)] pub struct IListingInformation2_Vtbl { @@ -267,16 +159,7 @@ pub struct IListingInformation2_Vtbl { pub IsOnSale: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub CurrencyCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProductLicense(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProductLicense { - type Vtable = IProductLicense_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProductLicense { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x363308c7_2bcf_4c0e_8f2f_e808aaa8f99d); -} +::windows_core::imp::com_interface!(IProductLicense, IProductLicense_Vtbl, 0x363308c7_2bcf_4c0e_8f2f_e808aaa8f99d); #[repr(C)] #[doc(hidden)] pub struct IProductLicense_Vtbl { @@ -285,32 +168,14 @@ pub struct IProductLicense_Vtbl { pub IsActive: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub ExpirationDate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::DateTime) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProductLicenseWithFulfillment(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProductLicenseWithFulfillment { - type Vtable = IProductLicenseWithFulfillment_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProductLicenseWithFulfillment { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfc535c8a_f667_40f3_ba3c_045a63abb3ac); -} +::windows_core::imp::com_interface!(IProductLicenseWithFulfillment, IProductLicenseWithFulfillment_Vtbl, 0xfc535c8a_f667_40f3_ba3c_045a63abb3ac); #[repr(C)] #[doc(hidden)] pub struct IProductLicenseWithFulfillment_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub IsConsumable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProductListing(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProductListing { - type Vtable = IProductListing_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProductListing { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x45a7d6ad_c750_4d9c_947c_b00dcbf9e9c2); -} +::windows_core::imp::com_interface!(IProductListing, IProductListing_Vtbl, 0x45a7d6ad_c750_4d9c_947c_b00dcbf9e9c2); #[repr(C)] #[doc(hidden)] pub struct IProductListing_Vtbl { @@ -319,16 +184,7 @@ pub struct IProductListing_Vtbl { pub FormattedPrice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProductListing2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProductListing2 { - type Vtable = IProductListing2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProductListing2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf89e290f_73fe_494d_a939_08a9b2495abe); -} +::windows_core::imp::com_interface!(IProductListing2, IProductListing2_Vtbl, 0xf89e290f_73fe_494d_a939_08a9b2495abe); #[repr(C)] #[doc(hidden)] pub struct IProductListing2_Vtbl { @@ -338,32 +194,14 @@ pub struct IProductListing2_Vtbl { pub IsOnSale: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub CurrencyCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProductListingWithConsumables(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProductListingWithConsumables { - type Vtable = IProductListingWithConsumables_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProductListingWithConsumables { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeb9e9790_8f6b_481f_93a7_5c3a63068149); -} +::windows_core::imp::com_interface!(IProductListingWithConsumables, IProductListingWithConsumables_Vtbl, 0xeb9e9790_8f6b_481f_93a7_5c3a63068149); #[repr(C)] #[doc(hidden)] pub struct IProductListingWithConsumables_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ProductType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ProductType) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProductListingWithMetadata(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProductListingWithMetadata { - type Vtable = IProductListingWithMetadata_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProductListingWithMetadata { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x124da567_23f8_423e_9532_189943c40ace); -} +::windows_core::imp::com_interface!(IProductListingWithMetadata, IProductListingWithMetadata_Vtbl, 0x124da567_23f8_423e_9532_189943c40ace); #[repr(C)] #[doc(hidden)] pub struct IProductListingWithMetadata_Vtbl { @@ -377,16 +215,7 @@ pub struct IProductListingWithMetadata_Vtbl { pub Tag: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub ImageUri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProductPurchaseDisplayProperties(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProductPurchaseDisplayProperties { - type Vtable = IProductPurchaseDisplayProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProductPurchaseDisplayProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd70b7420_bc92_401b_a809_c9b2e5dbbdaf); -} +::windows_core::imp::com_interface!(IProductPurchaseDisplayProperties, IProductPurchaseDisplayProperties_Vtbl, 0xd70b7420_bc92_401b_a809_c9b2e5dbbdaf); #[repr(C)] #[doc(hidden)] pub struct IProductPurchaseDisplayProperties_Vtbl { @@ -398,32 +227,14 @@ pub struct IProductPurchaseDisplayProperties_Vtbl { pub Image: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetImage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProductPurchaseDisplayPropertiesFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProductPurchaseDisplayPropertiesFactory { - type Vtable = IProductPurchaseDisplayPropertiesFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProductPurchaseDisplayPropertiesFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6f491df4_32d6_4b40_b474_b83038a4d9cf); -} +::windows_core::imp::com_interface!(IProductPurchaseDisplayPropertiesFactory, IProductPurchaseDisplayPropertiesFactory_Vtbl, 0x6f491df4_32d6_4b40_b474_b83038a4d9cf); #[repr(C)] #[doc(hidden)] pub struct IProductPurchaseDisplayPropertiesFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateProductPurchaseDisplayProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPurchaseResults(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPurchaseResults { - type Vtable = IPurchaseResults_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPurchaseResults { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xed50b37e_8656_4f65_b8c8_ac7e0cb1a1c2); -} +::windows_core::imp::com_interface!(IPurchaseResults, IPurchaseResults_Vtbl, 0xed50b37e_8656_4f65_b8c8_ac7e0cb1a1c2); #[repr(C)] #[doc(hidden)] pub struct IPurchaseResults_Vtbl { @@ -433,16 +244,7 @@ pub struct IPurchaseResults_Vtbl { pub ReceiptXml: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub OfferId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUnfulfilledConsumable(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUnfulfilledConsumable { - type Vtable = IUnfulfilledConsumable_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUnfulfilledConsumable { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2df7fbbb_1cdd_4cb8_a014_7b9cf8986927); -} +::windows_core::imp::com_interface!(IUnfulfilledConsumable, IUnfulfilledConsumable_Vtbl, 0x2df7fbbb_1cdd_4cb8_a014_7b9cf8986927); #[repr(C)] #[doc(hidden)] pub struct IUnfulfilledConsumable_Vtbl { @@ -519,22 +321,22 @@ impl CurrentApp { #[cfg(feature = "Foundation_Collections")] pub fn LoadListingInformationByProductIdsAsync(productids: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::ICurrentAppStaticsWithFiltering(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).LoadListingInformationByProductIdsAsync)(::windows_core::Interface::as_raw(this), productids.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).LoadListingInformationByProductIdsAsync)(::windows_core::Interface::as_raw(this), productids.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn LoadListingInformationByKeywordsAsync(keywords: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::ICurrentAppStaticsWithFiltering(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).LoadListingInformationByKeywordsAsync)(::windows_core::Interface::as_raw(this), keywords.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).LoadListingInformationByKeywordsAsync)(::windows_core::Interface::as_raw(this), keywords.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn ReportProductFulfillment(productid: &::windows_core::HSTRING) -> ::windows_core::Result<()> { @@ -671,22 +473,22 @@ impl CurrentAppSimulator { #[cfg(feature = "Foundation_Collections")] pub fn LoadListingInformationByProductIdsAsync(productids: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::ICurrentAppSimulatorStaticsWithFiltering(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).LoadListingInformationByProductIdsAsync)(::windows_core::Interface::as_raw(this), productids.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).LoadListingInformationByProductIdsAsync)(::windows_core::Interface::as_raw(this), productids.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn LoadListingInformationByKeywordsAsync(keywords: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::ICurrentAppSimulatorStaticsWithFiltering(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).LoadListingInformationByKeywordsAsync)(::windows_core::Interface::as_raw(this), keywords.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).LoadListingInformationByKeywordsAsync)(::windows_core::Interface::as_raw(this), keywords.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn GetAppPurchaseCampaignIdAsync() -> ::windows_core::Result> { @@ -751,6 +553,7 @@ impl ::windows_core::RuntimeName for CurrentAppSimulator { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LicenseInformation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LicenseInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl LicenseInformation { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -802,19 +605,17 @@ impl ::windows_core::RuntimeType for LicenseInformation { } unsafe impl ::windows_core::Interface for LicenseInformation { type Vtable = ILicenseInformation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LicenseInformation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LicenseInformation { const NAME: &'static str = "Windows.ApplicationModel.Store.LicenseInformation"; } -::windows_core::imp::interface_hierarchy!(LicenseInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for LicenseInformation {} unsafe impl ::core::marker::Sync for LicenseInformation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ListingInformation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ListingInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ListingInformation { pub fn CurrentMarket(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -861,28 +662,28 @@ impl ListingInformation { } } pub fn FormattedBasePrice(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FormattedBasePrice)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SaleEndDate(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SaleEndDate)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsOnSale(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsOnSale)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CurrencyCode(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CurrencyCode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -894,19 +695,17 @@ impl ::windows_core::RuntimeType for ListingInformation { } unsafe impl ::windows_core::Interface for ListingInformation { type Vtable = IListingInformation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ListingInformation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ListingInformation { const NAME: &'static str = "Windows.ApplicationModel.Store.ListingInformation"; } -::windows_core::imp::interface_hierarchy!(ListingInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ListingInformation {} unsafe impl ::core::marker::Sync for ListingInformation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ProductLicense(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ProductLicense, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ProductLicense { pub fn ProductId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -930,7 +729,7 @@ impl ProductLicense { } } pub fn IsConsumable(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsConsumable)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -942,19 +741,17 @@ impl ::windows_core::RuntimeType for ProductLicense { } unsafe impl ::windows_core::Interface for ProductLicense { type Vtable = IProductLicense_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ProductLicense { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ProductLicense { const NAME: &'static str = "Windows.ApplicationModel.Store.ProductLicense"; } -::windows_core::imp::interface_hierarchy!(ProductLicense, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ProductLicense {} unsafe impl ::core::marker::Sync for ProductLicense {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ProductListing(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ProductListing, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ProductListing { pub fn ProductId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -978,35 +775,35 @@ impl ProductListing { } } pub fn FormattedBasePrice(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FormattedBasePrice)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SaleEndDate(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SaleEndDate)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsOnSale(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsOnSale)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CurrencyCode(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CurrencyCode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Description(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Description)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1015,28 +812,28 @@ impl ProductListing { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Keywords(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Keywords)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ProductType(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ProductType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Tag(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Tag)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ImageUri(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImageUri)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1048,19 +845,17 @@ impl ::windows_core::RuntimeType for ProductListing { } unsafe impl ::windows_core::Interface for ProductListing { type Vtable = IProductListing_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ProductListing { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ProductListing { const NAME: &'static str = "Windows.ApplicationModel.Store.ProductListing"; } -::windows_core::imp::interface_hierarchy!(ProductListing, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ProductListing {} unsafe impl ::core::marker::Sync for ProductListing {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ProductPurchaseDisplayProperties(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ProductPurchaseDisplayProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ProductPurchaseDisplayProperties { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1122,19 +917,17 @@ impl ::windows_core::RuntimeType for ProductPurchaseDisplayProperties { } unsafe impl ::windows_core::Interface for ProductPurchaseDisplayProperties { type Vtable = IProductPurchaseDisplayProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ProductPurchaseDisplayProperties { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ProductPurchaseDisplayProperties { const NAME: &'static str = "Windows.ApplicationModel.Store.ProductPurchaseDisplayProperties"; } -::windows_core::imp::interface_hierarchy!(ProductPurchaseDisplayProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ProductPurchaseDisplayProperties {} unsafe impl ::core::marker::Sync for ProductPurchaseDisplayProperties {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PurchaseResults(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PurchaseResults, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PurchaseResults { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -1170,19 +963,17 @@ impl ::windows_core::RuntimeType for PurchaseResults { } unsafe impl ::windows_core::Interface for PurchaseResults { type Vtable = IPurchaseResults_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PurchaseResults { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PurchaseResults { const NAME: &'static str = "Windows.ApplicationModel.Store.PurchaseResults"; } -::windows_core::imp::interface_hierarchy!(PurchaseResults, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PurchaseResults {} unsafe impl ::core::marker::Sync for PurchaseResults {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UnfulfilledConsumable(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UnfulfilledConsumable, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UnfulfilledConsumable { pub fn ProductId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1211,14 +1002,11 @@ impl ::windows_core::RuntimeType for UnfulfilledConsumable { } unsafe impl ::windows_core::Interface for UnfulfilledConsumable { type Vtable = IUnfulfilledConsumable_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UnfulfilledConsumable { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UnfulfilledConsumable { const NAME: &'static str = "Windows.ApplicationModel.Store.UnfulfilledConsumable"; } -::windows_core::imp::interface_hierarchy!(UnfulfilledConsumable, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UnfulfilledConsumable {} unsafe impl ::core::marker::Sync for UnfulfilledConsumable {} #[repr(transparent)] @@ -1281,9 +1069,7 @@ impl ::core::fmt::Debug for ProductType { impl ::windows_core::RuntimeType for ProductType { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.Store.ProductType;i4)"); } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct LicenseChangedEventHandler(pub ::windows_core::IUnknown); +::windows_core::imp::com_interface!(LicenseChangedEventHandler, LicenseChangedEventHandler_Vtbl, 0xd4a50255_1369_4c36_832f_6f2d88e3659b); impl LicenseChangedEventHandler { pub fn new ::windows_core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = LicenseChangedEventHandlerBox:: { vtable: &LicenseChangedEventHandlerBox::::VTABLE, count: ::windows_core::imp::RefCount::new(1), invoke }; @@ -1310,7 +1096,7 @@ impl ::windows_core::Result<()> + ::core::marker::Send + 'static> if iid.is_null() || interface.is_null() { return ::windows_core::HRESULT(-2147467261); } - *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; + *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::Interface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::Interface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; if (*interface).is_null() { ::windows_core::HRESULT(-2147467262) } else { @@ -1335,12 +1121,6 @@ impl ::windows_core::Result<()> + ::core::marker::Send + 'static> ((*this).invoke)().into() } } -unsafe impl ::windows_core::Interface for LicenseChangedEventHandler { - type Vtable = LicenseChangedEventHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LicenseChangedEventHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd4a50255_1369_4c36_832f_6f2d88e3659b); -} impl ::windows_core::RuntimeType for LicenseChangedEventHandler { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } 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 d83eb43108..bb8ff54743 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/UserActivities/Core/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/UserActivities/Core/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreUserActivityManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreUserActivityManagerStatics { - type Vtable = ICoreUserActivityManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreUserActivityManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xca3adb02_a4be_4d4d_bfa8_6795f4264efb); -} +::windows_core::imp::com_interface!(ICoreUserActivityManagerStatics, ICoreUserActivityManagerStatics_Vtbl, 0xca3adb02_a4be_4d4d_bfa8_6795f4264efb); #[repr(C)] #[doc(hidden)] pub struct ICoreUserActivityManagerStatics_Vtbl { diff --git a/crates/libs/windows/src/Windows/ApplicationModel/UserActivities/impl.rs b/crates/libs/windows/src/Windows/ApplicationModel/UserActivities/impl.rs index 52e45692d5..988899b67c 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/UserActivities/impl.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/UserActivities/impl.rs @@ -21,6 +21,6 @@ impl IUserActivityContentInfo_Vtbl { Self { base__: ::windows_core::IInspectable_Vtbl::new::(), ToJson: ToJson:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/ApplicationModel/UserActivities/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/UserActivities/mod.rs index afc7008404..47e505e3d9 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/UserActivities/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/UserActivities/mod.rs @@ -1,16 +1,7 @@ #[cfg(feature = "ApplicationModel_UserActivities_Core")] #[doc = "Required features: `\"ApplicationModel_UserActivities_Core\"`"] pub mod Core; -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserActivity(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserActivity { - type Vtable = IUserActivity_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserActivity { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfc103e9e_2cab_4d36_aea2_b4bb556cef0f); -} +::windows_core::imp::com_interface!(IUserActivity, IUserActivity_Vtbl, 0xfc103e9e_2cab_4d36_aea2_b4bb556cef0f); #[repr(C)] #[doc(hidden)] pub struct IUserActivity_Vtbl { @@ -31,32 +22,14 @@ pub struct IUserActivity_Vtbl { pub SaveAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateSession: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserActivity2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserActivity2 { - type Vtable = IUserActivity2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserActivity2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9dc40c62_08c4_47ac_aa9c_2bb2221c55fd); -} +::windows_core::imp::com_interface!(IUserActivity2, IUserActivity2_Vtbl, 0x9dc40c62_08c4_47ac_aa9c_2bb2221c55fd); #[repr(C)] #[doc(hidden)] pub struct IUserActivity2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ToJson: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserActivity3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserActivity3 { - type Vtable = IUserActivity3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserActivity3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe7697744_e1a2_5147_8e06_55f1eeef271c); -} +::windows_core::imp::com_interface!(IUserActivity3, IUserActivity3_Vtbl, 0xe7697744_e1a2_5147_8e06_55f1eeef271c); #[repr(C)] #[doc(hidden)] pub struct IUserActivity3_Vtbl { @@ -64,16 +37,7 @@ pub struct IUserActivity3_Vtbl { pub IsRoamable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetIsRoamable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserActivityAttribution(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserActivityAttribution { - type Vtable = IUserActivityAttribution_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserActivityAttribution { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x34a5c8b5_86dd_4aec_a491_6a4faea5d22e); -} +::windows_core::imp::com_interface!(IUserActivityAttribution, IUserActivityAttribution_Vtbl, 0x34a5c8b5_86dd_4aec_a491_6a4faea5d22e); #[repr(C)] #[doc(hidden)] pub struct IUserActivityAttribution_Vtbl { @@ -85,32 +49,14 @@ pub struct IUserActivityAttribution_Vtbl { pub AddImageQuery: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetAddImageQuery: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserActivityAttributionFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserActivityAttributionFactory { - type Vtable = IUserActivityAttributionFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserActivityAttributionFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe62bd252_c566_4f42_9974_916c4d76377e); -} +::windows_core::imp::com_interface!(IUserActivityAttributionFactory, IUserActivityAttributionFactory_Vtbl, 0xe62bd252_c566_4f42_9974_916c4d76377e); #[repr(C)] #[doc(hidden)] pub struct IUserActivityAttributionFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateWithUri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, iconuri: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserActivityChannel(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserActivityChannel { - type Vtable = IUserActivityChannel_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserActivityChannel { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbac0f8b8_a0e4_483b_b948_9cbabd06070c); -} +::windows_core::imp::com_interface!(IUserActivityChannel, IUserActivityChannel_Vtbl, 0xbac0f8b8_a0e4_483b_b948_9cbabd06070c); #[repr(C)] #[doc(hidden)] pub struct IUserActivityChannel_Vtbl { @@ -119,16 +65,7 @@ pub struct IUserActivityChannel_Vtbl { pub DeleteActivityAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, activityid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub DeleteAllActivitiesAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserActivityChannel2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserActivityChannel2 { - type Vtable = IUserActivityChannel2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserActivityChannel2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1698e35b_eb7e_4ea0_bf17_a459e8be706c); -} +::windows_core::imp::com_interface!(IUserActivityChannel2, IUserActivityChannel2_Vtbl, 0x1698e35b_eb7e_4ea0_bf17_a459e8be706c); #[repr(C)] #[doc(hidden)] pub struct IUserActivityChannel2_Vtbl { @@ -142,32 +79,14 @@ pub struct IUserActivityChannel2_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetSessionHistoryItemsForUserActivityAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserActivityChannelStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserActivityChannelStatics { - type Vtable = IUserActivityChannelStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserActivityChannelStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc8c005ab_198d_4d80_abb2_c9775ec4a729); -} +::windows_core::imp::com_interface!(IUserActivityChannelStatics, IUserActivityChannelStatics_Vtbl, 0xc8c005ab_198d_4d80_abb2_c9775ec4a729); #[repr(C)] #[doc(hidden)] pub struct IUserActivityChannelStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetDefault: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserActivityChannelStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserActivityChannelStatics2 { - type Vtable = IUserActivityChannelStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserActivityChannelStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8e87de30_aa4f_4624_9ad0_d40f3ba0317c); -} +::windows_core::imp::com_interface!(IUserActivityChannelStatics2, IUserActivityChannelStatics2_Vtbl, 0x8e87de30_aa4f_4624_9ad0_d40f3ba0317c); #[repr(C)] #[doc(hidden)] pub struct IUserActivityChannelStatics2_Vtbl { @@ -178,16 +97,7 @@ pub struct IUserActivityChannelStatics2_Vtbl { #[cfg(not(feature = "Security_Credentials"))] TryGetForWebAccount: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserActivityChannelStatics3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserActivityChannelStatics3 { - type Vtable = IUserActivityChannelStatics3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserActivityChannelStatics3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x53bc4ddb_bbdf_5984_802a_5305874e205c); -} +::windows_core::imp::com_interface!(IUserActivityChannelStatics3, IUserActivityChannelStatics3_Vtbl, 0x53bc4ddb_bbdf_5984_802a_5305874e205c); #[repr(C)] #[doc(hidden)] pub struct IUserActivityChannelStatics3_Vtbl { @@ -197,9 +107,8 @@ pub struct IUserActivityChannelStatics3_Vtbl { #[cfg(not(feature = "System"))] GetForUser: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserActivityContentInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUserActivityContentInfo, IUserActivityContentInfo_Vtbl, 0xb399e5ad_137f_409d_822d_e1af27ce08dc); +::windows_core::imp::interface_hierarchy!(IUserActivityContentInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IUserActivityContentInfo { pub fn ToJson(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -209,80 +118,37 @@ impl IUserActivityContentInfo { } } } -::windows_core::imp::interface_hierarchy!(IUserActivityContentInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IUserActivityContentInfo { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IUserActivityContentInfo { - type Vtable = IUserActivityContentInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserActivityContentInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb399e5ad_137f_409d_822d_e1af27ce08dc); -} #[repr(C)] #[doc(hidden)] pub struct IUserActivityContentInfo_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ToJson: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserActivityContentInfoStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserActivityContentInfoStatics { - type Vtable = IUserActivityContentInfoStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserActivityContentInfoStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9988c34b_0386_4bc9_968a_8200b004144f); -} +::windows_core::imp::com_interface!(IUserActivityContentInfoStatics, IUserActivityContentInfoStatics_Vtbl, 0x9988c34b_0386_4bc9_968a_8200b004144f); #[repr(C)] #[doc(hidden)] pub struct IUserActivityContentInfoStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub FromJson: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserActivityFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserActivityFactory { - type Vtable = IUserActivityFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserActivityFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7c385758_361d_4a67_8a3b_34ca2978f9a3); -} +::windows_core::imp::com_interface!(IUserActivityFactory, IUserActivityFactory_Vtbl, 0x7c385758_361d_4a67_8a3b_34ca2978f9a3); #[repr(C)] #[doc(hidden)] pub struct IUserActivityFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateWithActivityId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, activityid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserActivityRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserActivityRequest { - type Vtable = IUserActivityRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserActivityRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa0ef6355_cf35_4ff0_8833_50cb4b72e06d); -} +::windows_core::imp::com_interface!(IUserActivityRequest, IUserActivityRequest_Vtbl, 0xa0ef6355_cf35_4ff0_8833_50cb4b72e06d); #[repr(C)] #[doc(hidden)] pub struct IUserActivityRequest_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub SetUserActivity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, activity: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserActivityRequestManager(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserActivityRequestManager { - type Vtable = IUserActivityRequestManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserActivityRequestManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c30be4e_903d_48d6_82d4_4043ed57791b); -} +::windows_core::imp::com_interface!(IUserActivityRequestManager, IUserActivityRequestManager_Vtbl, 0x0c30be4e_903d_48d6_82d4_4043ed57791b); #[repr(C)] #[doc(hidden)] pub struct IUserActivityRequestManager_Vtbl { @@ -290,32 +156,14 @@ pub struct IUserActivityRequestManager_Vtbl { pub UserActivityRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveUserActivityRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserActivityRequestManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserActivityRequestManagerStatics { - type Vtable = IUserActivityRequestManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserActivityRequestManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc0392df1_224a_432c_81e5_0c76b4c4cefa); -} +::windows_core::imp::com_interface!(IUserActivityRequestManagerStatics, IUserActivityRequestManagerStatics_Vtbl, 0xc0392df1_224a_432c_81e5_0c76b4c4cefa); #[repr(C)] #[doc(hidden)] pub struct IUserActivityRequestManagerStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetForCurrentView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserActivityRequestedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserActivityRequestedEventArgs { - type Vtable = IUserActivityRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserActivityRequestedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa4cc7a4c_8229_4cfd_a3bc_c61d318575a4); -} +::windows_core::imp::com_interface!(IUserActivityRequestedEventArgs, IUserActivityRequestedEventArgs_Vtbl, 0xa4cc7a4c_8229_4cfd_a3bc_c61d318575a4); #[repr(C)] #[doc(hidden)] pub struct IUserActivityRequestedEventArgs_Vtbl { @@ -323,32 +171,14 @@ pub struct IUserActivityRequestedEventArgs_Vtbl { pub Request: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserActivitySession(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserActivitySession { - type Vtable = IUserActivitySession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserActivitySession { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xae434d78_24fa_44a3_ad48_6eda61aa1924); -} +::windows_core::imp::com_interface!(IUserActivitySession, IUserActivitySession_Vtbl, 0xae434d78_24fa_44a3_ad48_6eda61aa1924); #[repr(C)] #[doc(hidden)] pub struct IUserActivitySession_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ActivityId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserActivitySessionHistoryItem(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserActivitySessionHistoryItem { - type Vtable = IUserActivitySessionHistoryItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserActivitySessionHistoryItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe8d59bd3_3e5d_49fd_98d7_6da97521e255); -} +::windows_core::imp::com_interface!(IUserActivitySessionHistoryItem, IUserActivitySessionHistoryItem_Vtbl, 0xe8d59bd3_3e5d_49fd_98d7_6da97521e255); #[repr(C)] #[doc(hidden)] pub struct IUserActivitySessionHistoryItem_Vtbl { @@ -357,16 +187,7 @@ pub struct IUserActivitySessionHistoryItem_Vtbl { pub StartTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::DateTime) -> ::windows_core::HRESULT, pub EndTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserActivityStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserActivityStatics { - type Vtable = IUserActivityStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserActivityStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8c8fd333_0e09_47f6_9ac7_95cf5c39367b); -} +::windows_core::imp::com_interface!(IUserActivityStatics, IUserActivityStatics_Vtbl, 0x8c8fd333_0e09_47f6_9ac7_95cf5c39367b); #[repr(C)] #[doc(hidden)] pub struct IUserActivityStatics_Vtbl { @@ -381,16 +202,7 @@ pub struct IUserActivityStatics_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] ToJsonArray: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserActivityVisualElements(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserActivityVisualElements { - type Vtable = IUserActivityVisualElements_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserActivityVisualElements { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x94757513_262f_49ef_bbbf_9b75d2e85250); -} +::windows_core::imp::com_interface!(IUserActivityVisualElements, IUserActivityVisualElements_Vtbl, 0x94757513_262f_49ef_bbbf_9b75d2e85250); #[repr(C)] #[doc(hidden)] pub struct IUserActivityVisualElements_Vtbl { @@ -418,16 +230,7 @@ pub struct IUserActivityVisualElements_Vtbl { #[cfg(not(feature = "UI_Shell"))] Content: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserActivityVisualElements2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserActivityVisualElements2 { - type Vtable = IUserActivityVisualElements2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserActivityVisualElements2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcaae7fc7_3eef_4359_825c_9d51b9220de3); -} +::windows_core::imp::com_interface!(IUserActivityVisualElements2, IUserActivityVisualElements2_Vtbl, 0xcaae7fc7_3eef_4359_825c_9d51b9220de3); #[repr(C)] #[doc(hidden)] pub struct IUserActivityVisualElements2_Vtbl { @@ -438,6 +241,7 @@ pub struct IUserActivityVisualElements2_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UserActivity(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UserActivity, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UserActivity { pub fn State(&self) -> ::windows_core::Result { let this = self; @@ -522,10 +326,10 @@ impl UserActivity { } pub fn SetContentInfo(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetContentInfo)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetContentInfo)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn SaveAsync(&self) -> ::windows_core::Result { let this = self; @@ -542,21 +346,21 @@ impl UserActivity { } } pub fn ToJson(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ToJson)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsRoamable(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsRoamable)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsRoamable(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsRoamable)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn CreateWithActivityId(activityid: &::windows_core::HSTRING) -> ::windows_core::Result { @@ -583,11 +387,11 @@ impl UserActivity { #[cfg(feature = "Foundation_Collections")] pub fn ToJsonArray(activities: P0) -> ::windows_core::Result<::windows_core::HSTRING> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::IUserActivityStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).ToJsonArray)(::windows_core::Interface::as_raw(this), activities.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ToJsonArray)(::windows_core::Interface::as_raw(this), activities.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -606,19 +410,17 @@ impl ::windows_core::RuntimeType for UserActivity { } unsafe impl ::windows_core::Interface for UserActivity { type Vtable = IUserActivity_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UserActivity { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UserActivity { const NAME: &'static str = "Windows.ApplicationModel.UserActivities.UserActivity"; } -::windows_core::imp::interface_hierarchy!(UserActivity, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UserActivity {} unsafe impl ::core::marker::Sync for UserActivity {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UserActivityAttribution(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UserActivityAttribution, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UserActivityAttribution { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -683,19 +485,17 @@ impl ::windows_core::RuntimeType for UserActivityAttribution { } unsafe impl ::windows_core::Interface for UserActivityAttribution { type Vtable = IUserActivityAttribution_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UserActivityAttribution { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UserActivityAttribution { const NAME: &'static str = "Windows.ApplicationModel.UserActivities.UserActivityAttribution"; } -::windows_core::imp::interface_hierarchy!(UserActivityAttribution, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UserActivityAttribution {} unsafe impl ::core::marker::Sync for UserActivityAttribution {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UserActivityChannel(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UserActivityChannel, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UserActivityChannel { pub fn GetOrCreateUserActivityAsync(&self, activityid: &::windows_core::HSTRING) -> ::windows_core::Result> { let this = self; @@ -721,7 +521,7 @@ impl UserActivityChannel { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetRecentUserActivitiesAsync(&self, maxuniqueactivities: i32) -> ::windows_core::Result>> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetRecentUserActivitiesAsync)(::windows_core::Interface::as_raw(this), maxuniqueactivities, &mut result__).from_abi(result__) @@ -730,7 +530,7 @@ impl UserActivityChannel { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetSessionHistoryItemsForUserActivityAsync(&self, activityid: &::windows_core::HSTRING, starttime: super::super::Foundation::DateTime) -> ::windows_core::Result>> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetSessionHistoryItemsForUserActivityAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(activityid), starttime, &mut result__).from_abi(result__) @@ -788,19 +588,18 @@ impl ::windows_core::RuntimeType for UserActivityChannel { } unsafe impl ::windows_core::Interface for UserActivityChannel { type Vtable = IUserActivityChannel_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UserActivityChannel { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UserActivityChannel { const NAME: &'static str = "Windows.ApplicationModel.UserActivities.UserActivityChannel"; } -::windows_core::imp::interface_hierarchy!(UserActivityChannel, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UserActivityChannel {} unsafe impl ::core::marker::Sync for UserActivityChannel {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UserActivityContentInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UserActivityContentInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(UserActivityContentInfo, IUserActivityContentInfo); impl UserActivityContentInfo { pub fn ToJson(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -826,20 +625,17 @@ impl ::windows_core::RuntimeType for UserActivityContentInfo { } unsafe impl ::windows_core::Interface for UserActivityContentInfo { type Vtable = IUserActivityContentInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UserActivityContentInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UserActivityContentInfo { const NAME: &'static str = "Windows.ApplicationModel.UserActivities.UserActivityContentInfo"; } -::windows_core::imp::interface_hierarchy!(UserActivityContentInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for UserActivityContentInfo {} unsafe impl ::core::marker::Send for UserActivityContentInfo {} unsafe impl ::core::marker::Sync for UserActivityContentInfo {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UserActivityRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UserActivityRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UserActivityRequest { pub fn SetUserActivity(&self, activity: P0) -> ::windows_core::Result<()> where @@ -854,19 +650,17 @@ impl ::windows_core::RuntimeType for UserActivityRequest { } unsafe impl ::windows_core::Interface for UserActivityRequest { type Vtable = IUserActivityRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UserActivityRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UserActivityRequest { const NAME: &'static str = "Windows.ApplicationModel.UserActivities.UserActivityRequest"; } -::windows_core::imp::interface_hierarchy!(UserActivityRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UserActivityRequest {} unsafe impl ::core::marker::Sync for UserActivityRequest {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UserActivityRequestManager(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UserActivityRequestManager, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UserActivityRequestManager { pub fn UserActivityRequested(&self, handler: P0) -> ::windows_core::Result where @@ -899,17 +693,15 @@ impl ::windows_core::RuntimeType for UserActivityRequestManager { } unsafe impl ::windows_core::Interface for UserActivityRequestManager { type Vtable = IUserActivityRequestManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UserActivityRequestManager { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UserActivityRequestManager { const NAME: &'static str = "Windows.ApplicationModel.UserActivities.UserActivityRequestManager"; } -::windows_core::imp::interface_hierarchy!(UserActivityRequestManager, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UserActivityRequestedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UserActivityRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UserActivityRequestedEventArgs { pub fn Request(&self) -> ::windows_core::Result { let this = self; @@ -931,22 +723,21 @@ impl ::windows_core::RuntimeType for UserActivityRequestedEventArgs { } unsafe impl ::windows_core::Interface for UserActivityRequestedEventArgs { type Vtable = IUserActivityRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UserActivityRequestedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UserActivityRequestedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.UserActivities.UserActivityRequestedEventArgs"; } -::windows_core::imp::interface_hierarchy!(UserActivityRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UserActivityRequestedEventArgs {} unsafe impl ::core::marker::Sync for UserActivityRequestedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UserActivitySession(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UserActivitySession, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(UserActivitySession, super::super::Foundation::IClosable); impl UserActivitySession { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn ActivityId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { @@ -962,20 +753,17 @@ impl ::windows_core::RuntimeType for UserActivitySession { } unsafe impl ::windows_core::Interface for UserActivitySession { type Vtable = IUserActivitySession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UserActivitySession { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UserActivitySession { const NAME: &'static str = "Windows.ApplicationModel.UserActivities.UserActivitySession"; } -::windows_core::imp::interface_hierarchy!(UserActivitySession, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for UserActivitySession {} unsafe impl ::core::marker::Send for UserActivitySession {} unsafe impl ::core::marker::Sync for UserActivitySession {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UserActivitySessionHistoryItem(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UserActivitySessionHistoryItem, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UserActivitySessionHistoryItem { pub fn UserActivity(&self) -> ::windows_core::Result { let this = self; @@ -1004,19 +792,17 @@ impl ::windows_core::RuntimeType for UserActivitySessionHistoryItem { } unsafe impl ::windows_core::Interface for UserActivitySessionHistoryItem { type Vtable = IUserActivitySessionHistoryItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UserActivitySessionHistoryItem { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UserActivitySessionHistoryItem { const NAME: &'static str = "Windows.ApplicationModel.UserActivities.UserActivitySessionHistoryItem"; } -::windows_core::imp::interface_hierarchy!(UserActivitySessionHistoryItem, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UserActivitySessionHistoryItem {} unsafe impl ::core::marker::Sync for UserActivitySessionHistoryItem {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UserActivityVisualElements(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UserActivityVisualElements, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UserActivityVisualElements { pub fn DisplayText(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1073,10 +859,10 @@ impl UserActivityVisualElements { #[cfg(feature = "UI_Shell")] pub fn SetContent(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetContent)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetContent)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } #[doc = "Required features: `\"UI_Shell\"`"] #[cfg(feature = "UI_Shell")] @@ -1088,14 +874,14 @@ impl UserActivityVisualElements { } } pub fn AttributionDisplayText(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AttributionDisplayText)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetAttributionDisplayText(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetAttributionDisplayText)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } } @@ -1104,14 +890,11 @@ impl ::windows_core::RuntimeType for UserActivityVisualElements { } unsafe impl ::windows_core::Interface for UserActivityVisualElements { type Vtable = IUserActivityVisualElements_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UserActivityVisualElements { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UserActivityVisualElements { const NAME: &'static str = "Windows.ApplicationModel.UserActivities.UserActivityVisualElements"; } -::windows_core::imp::interface_hierarchy!(UserActivityVisualElements, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UserActivityVisualElements {} unsafe impl ::core::marker::Sync for UserActivityVisualElements {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/ApplicationModel/UserDataAccounts/Provider/impl.rs b/crates/libs/windows/src/Windows/ApplicationModel/UserDataAccounts/Provider/impl.rs index ea01d6fd69..7631d65c87 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/UserDataAccounts/Provider/impl.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/UserDataAccounts/Provider/impl.rs @@ -20,6 +20,6 @@ impl IUserDataAccountProviderOperation_Vtbl { Self { base__: ::windows_core::IInspectable_Vtbl::new::(), Kind: Kind:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/ApplicationModel/UserDataAccounts/Provider/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/UserDataAccounts/Provider/mod.rs index ee2713f32c..e523c82ecc 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/UserDataAccounts/Provider/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/UserDataAccounts/Provider/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserDataAccountPartnerAccountInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserDataAccountPartnerAccountInfo { - type Vtable = IUserDataAccountPartnerAccountInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserDataAccountPartnerAccountInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5f200037_f6ef_4ec3_8630_012c59c1149f); -} +::windows_core::imp::com_interface!(IUserDataAccountPartnerAccountInfo, IUserDataAccountPartnerAccountInfo_Vtbl, 0x5f200037_f6ef_4ec3_8630_012c59c1149f); #[repr(C)] #[doc(hidden)] pub struct IUserDataAccountPartnerAccountInfo_Vtbl { @@ -16,16 +7,7 @@ pub struct IUserDataAccountPartnerAccountInfo_Vtbl { pub Priority: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, pub AccountKind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut UserDataAccountProviderPartnerAccountKind) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserDataAccountProviderAddAccountOperation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserDataAccountProviderAddAccountOperation { - type Vtable = IUserDataAccountProviderAddAccountOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserDataAccountProviderAddAccountOperation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb9c72530_3f84_4b5d_8eaa_45e97aa842ed); -} +::windows_core::imp::com_interface!(IUserDataAccountProviderAddAccountOperation, IUserDataAccountProviderAddAccountOperation_Vtbl, 0xb9c72530_3f84_4b5d_8eaa_45e97aa842ed); #[repr(C)] #[doc(hidden)] pub struct IUserDataAccountProviderAddAccountOperation_Vtbl { @@ -37,9 +19,8 @@ pub struct IUserDataAccountProviderAddAccountOperation_Vtbl { PartnerAccountInfos: usize, pub ReportCompleted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, userdataaccountid: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserDataAccountProviderOperation(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUserDataAccountProviderOperation, IUserDataAccountProviderOperation_Vtbl, 0xa20aad63_888c_4a62_a3dd_34d07a802b2b); +::windows_core::imp::interface_hierarchy!(IUserDataAccountProviderOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IUserDataAccountProviderOperation { pub fn Kind(&self) -> ::windows_core::Result { let this = self; @@ -49,32 +30,16 @@ impl IUserDataAccountProviderOperation { } } } -::windows_core::imp::interface_hierarchy!(IUserDataAccountProviderOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IUserDataAccountProviderOperation { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IUserDataAccountProviderOperation { - type Vtable = IUserDataAccountProviderOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserDataAccountProviderOperation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa20aad63_888c_4a62_a3dd_34d07a802b2b); -} #[repr(C)] #[doc(hidden)] pub struct IUserDataAccountProviderOperation_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Kind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut UserDataAccountProviderOperationKind) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserDataAccountProviderResolveErrorsOperation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserDataAccountProviderResolveErrorsOperation { - type Vtable = IUserDataAccountProviderResolveErrorsOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserDataAccountProviderResolveErrorsOperation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6235dc15_bfcb_41e1_9957_9759a28846cc); -} +::windows_core::imp::com_interface!(IUserDataAccountProviderResolveErrorsOperation, IUserDataAccountProviderResolveErrorsOperation_Vtbl, 0x6235dc15_bfcb_41e1_9957_9759a28846cc); #[repr(C)] #[doc(hidden)] pub struct IUserDataAccountProviderResolveErrorsOperation_Vtbl { @@ -82,16 +47,7 @@ pub struct IUserDataAccountProviderResolveErrorsOperation_Vtbl { pub UserDataAccountId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub ReportCompleted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserDataAccountProviderSettingsOperation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserDataAccountProviderSettingsOperation { - type Vtable = IUserDataAccountProviderSettingsOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserDataAccountProviderSettingsOperation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x92034db7_8648_4f30_acfa_3002658ca80d); -} +::windows_core::imp::com_interface!(IUserDataAccountProviderSettingsOperation, IUserDataAccountProviderSettingsOperation_Vtbl, 0x92034db7_8648_4f30_acfa_3002658ca80d); #[repr(C)] #[doc(hidden)] pub struct IUserDataAccountProviderSettingsOperation_Vtbl { @@ -102,6 +58,7 @@ pub struct IUserDataAccountProviderSettingsOperation_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UserDataAccountPartnerAccountInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UserDataAccountPartnerAccountInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UserDataAccountPartnerAccountInfo { pub fn DisplayName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -130,19 +87,18 @@ impl ::windows_core::RuntimeType for UserDataAccountPartnerAccountInfo { } unsafe impl ::windows_core::Interface for UserDataAccountPartnerAccountInfo { type Vtable = IUserDataAccountPartnerAccountInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UserDataAccountPartnerAccountInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UserDataAccountPartnerAccountInfo { const NAME: &'static str = "Windows.ApplicationModel.UserDataAccounts.Provider.UserDataAccountPartnerAccountInfo"; } -::windows_core::imp::interface_hierarchy!(UserDataAccountPartnerAccountInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UserDataAccountPartnerAccountInfo {} unsafe impl ::core::marker::Sync for UserDataAccountPartnerAccountInfo {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UserDataAccountProviderAddAccountOperation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UserDataAccountProviderAddAccountOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(UserDataAccountProviderAddAccountOperation, IUserDataAccountProviderOperation); impl UserDataAccountProviderAddAccountOperation { pub fn ContentKinds(&self) -> ::windows_core::Result { let this = self; @@ -165,7 +121,7 @@ impl UserDataAccountProviderAddAccountOperation { unsafe { (::windows_core::Interface::vtable(this).ReportCompleted)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(userdataaccountid)).ok() } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -177,23 +133,21 @@ impl ::windows_core::RuntimeType for UserDataAccountProviderAddAccountOperation } unsafe impl ::windows_core::Interface for UserDataAccountProviderAddAccountOperation { type Vtable = IUserDataAccountProviderAddAccountOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UserDataAccountProviderAddAccountOperation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UserDataAccountProviderAddAccountOperation { const NAME: &'static str = "Windows.ApplicationModel.UserDataAccounts.Provider.UserDataAccountProviderAddAccountOperation"; } -::windows_core::imp::interface_hierarchy!(UserDataAccountProviderAddAccountOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for UserDataAccountProviderAddAccountOperation {} unsafe impl ::core::marker::Send for UserDataAccountProviderAddAccountOperation {} unsafe impl ::core::marker::Sync for UserDataAccountProviderAddAccountOperation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UserDataAccountProviderResolveErrorsOperation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UserDataAccountProviderResolveErrorsOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(UserDataAccountProviderResolveErrorsOperation, IUserDataAccountProviderOperation); impl UserDataAccountProviderResolveErrorsOperation { pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -216,23 +170,21 @@ impl ::windows_core::RuntimeType for UserDataAccountProviderResolveErrorsOperati } unsafe impl ::windows_core::Interface for UserDataAccountProviderResolveErrorsOperation { type Vtable = IUserDataAccountProviderResolveErrorsOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UserDataAccountProviderResolveErrorsOperation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UserDataAccountProviderResolveErrorsOperation { const NAME: &'static str = "Windows.ApplicationModel.UserDataAccounts.Provider.UserDataAccountProviderResolveErrorsOperation"; } -::windows_core::imp::interface_hierarchy!(UserDataAccountProviderResolveErrorsOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for UserDataAccountProviderResolveErrorsOperation {} unsafe impl ::core::marker::Send for UserDataAccountProviderResolveErrorsOperation {} unsafe impl ::core::marker::Sync for UserDataAccountProviderResolveErrorsOperation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UserDataAccountProviderSettingsOperation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UserDataAccountProviderSettingsOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(UserDataAccountProviderSettingsOperation, IUserDataAccountProviderOperation); impl UserDataAccountProviderSettingsOperation { pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -255,15 +207,11 @@ impl ::windows_core::RuntimeType for UserDataAccountProviderSettingsOperation { } unsafe impl ::windows_core::Interface for UserDataAccountProviderSettingsOperation { type Vtable = IUserDataAccountProviderSettingsOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UserDataAccountProviderSettingsOperation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UserDataAccountProviderSettingsOperation { const NAME: &'static str = "Windows.ApplicationModel.UserDataAccounts.Provider.UserDataAccountProviderSettingsOperation"; } -::windows_core::imp::interface_hierarchy!(UserDataAccountProviderSettingsOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for UserDataAccountProviderSettingsOperation {} unsafe impl ::core::marker::Send for UserDataAccountProviderSettingsOperation {} unsafe impl ::core::marker::Sync for UserDataAccountProviderSettingsOperation {} #[repr(transparent)] 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 d39a538bf4..99253a2b1b 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/UserDataAccounts/SystemAccess/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/UserDataAccounts/SystemAccess/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDeviceAccountConfiguration(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDeviceAccountConfiguration { - type Vtable = IDeviceAccountConfiguration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDeviceAccountConfiguration { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xad0123a3_fbdc_4d1b_be43_5a27ea4a1b63); -} +::windows_core::imp::com_interface!(IDeviceAccountConfiguration, IDeviceAccountConfiguration_Vtbl, 0xad0123a3_fbdc_4d1b_be43_5a27ea4a1b63); #[repr(C)] #[doc(hidden)] pub struct IDeviceAccountConfiguration_Vtbl { @@ -45,16 +36,7 @@ pub struct IDeviceAccountConfiguration_Vtbl { pub OutgoingServerUsername: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetOutgoingServerUsername: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDeviceAccountConfiguration2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDeviceAccountConfiguration2 { - type Vtable = IDeviceAccountConfiguration2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDeviceAccountConfiguration2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf2b2e5a6_728d_4a4a_8945_2bf8580136de); -} +::windows_core::imp::com_interface!(IDeviceAccountConfiguration2, IDeviceAccountConfiguration2_Vtbl, 0xf2b2e5a6_728d_4a4a_8945_2bf8580136de); #[repr(C)] #[doc(hidden)] pub struct IDeviceAccountConfiguration2_Vtbl { @@ -128,16 +110,7 @@ pub struct IDeviceAccountConfiguration2_Vtbl { pub IsSyncScheduleManagedBySystem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetIsSyncScheduleManagedBySystem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserDataAccountSystemAccessManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserDataAccountSystemAccessManagerStatics { - type Vtable = IUserDataAccountSystemAccessManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserDataAccountSystemAccessManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9d6b11b9_cbe5_45f5_822b_c267b81dbdb6); -} +::windows_core::imp::com_interface!(IUserDataAccountSystemAccessManagerStatics, IUserDataAccountSystemAccessManagerStatics_Vtbl, 0x9d6b11b9_cbe5_45f5_822b_c267b81dbdb6); #[repr(C)] #[doc(hidden)] pub struct IUserDataAccountSystemAccessManagerStatics_Vtbl { @@ -147,16 +120,7 @@ pub struct IUserDataAccountSystemAccessManagerStatics_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] AddAndShowDeviceAccountsAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserDataAccountSystemAccessManagerStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserDataAccountSystemAccessManagerStatics2 { - type Vtable = IUserDataAccountSystemAccessManagerStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserDataAccountSystemAccessManagerStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x943f854d_4b4e_439f_83d3_979b27c05ac7); -} +::windows_core::imp::com_interface!(IUserDataAccountSystemAccessManagerStatics2, IUserDataAccountSystemAccessManagerStatics2_Vtbl, 0x943f854d_4b4e_439f_83d3_979b27c05ac7); #[repr(C)] #[doc(hidden)] pub struct IUserDataAccountSystemAccessManagerStatics2_Vtbl { @@ -169,6 +133,7 @@ pub struct IUserDataAccountSystemAccessManagerStatics2_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DeviceAccountConfiguration(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DeviceAccountConfiguration, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DeviceAccountConfiguration { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -356,7 +321,7 @@ impl DeviceAccountConfiguration { #[doc = "Required features: `\"Security_Credentials\"`"] #[cfg(feature = "Security_Credentials")] pub fn IncomingServerCredential(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IncomingServerCredential)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -368,13 +333,13 @@ impl DeviceAccountConfiguration { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } #[doc = "Required features: `\"Security_Credentials\"`"] #[cfg(feature = "Security_Credentials")] pub fn OutgoingServerCredential(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OutgoingServerCredential)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -386,168 +351,168 @@ impl DeviceAccountConfiguration { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn OAuthRefreshToken(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OAuthRefreshToken)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetOAuthRefreshToken(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetOAuthRefreshToken)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn IsExternallyManaged(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsExternallyManaged)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsExternallyManaged(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsExternallyManaged)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn AccountIconId(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AccountIconId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetAccountIconId(&self, value: DeviceAccountIconId) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetAccountIconId)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn AuthenticationType(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AuthenticationType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetAuthenticationType(&self, value: DeviceAccountAuthenticationType) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetAuthenticationType)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsSsoAuthenticationSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsSsoAuthenticationSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SsoAccountId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SsoAccountId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetSsoAccountId(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetSsoAccountId)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn AlwaysDownloadFullMessage(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AlwaysDownloadFullMessage)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetAlwaysDownloadFullMessage(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetAlwaysDownloadFullMessage)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn DoesPolicyAllowMailSync(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DoesPolicyAllowMailSync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SyncScheduleKind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SyncScheduleKind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetSyncScheduleKind(&self, value: DeviceAccountSyncScheduleKind) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetSyncScheduleKind)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn MailAgeFilter(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MailAgeFilter)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetMailAgeFilter(&self, value: DeviceAccountMailAgeFilter) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMailAgeFilter)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsClientAuthenticationCertificateRequired(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsClientAuthenticationCertificateRequired)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsClientAuthenticationCertificateRequired(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsClientAuthenticationCertificateRequired)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn AutoSelectAuthenticationCertificate(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AutoSelectAuthenticationCertificate)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetAutoSelectAuthenticationCertificate(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetAutoSelectAuthenticationCertificate)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn AuthenticationCertificateId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AuthenticationCertificateId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetAuthenticationCertificateId(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetAuthenticationCertificateId)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn CardDavSyncScheduleKind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CardDavSyncScheduleKind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetCardDavSyncScheduleKind(&self, value: DeviceAccountSyncScheduleKind) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCardDavSyncScheduleKind)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn CalDavSyncScheduleKind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CalDavSyncScheduleKind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetCalDavSyncScheduleKind(&self, value: DeviceAccountSyncScheduleKind) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCalDavSyncScheduleKind)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn CardDavServerUrl(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CardDavServerUrl)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -557,22 +522,22 @@ impl DeviceAccountConfiguration { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn CardDavRequiresSsl(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CardDavRequiresSsl)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetCardDavRequiresSsl(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCardDavRequiresSsl)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn CalDavServerUrl(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CalDavServerUrl)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -582,106 +547,106 @@ impl DeviceAccountConfiguration { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn CalDavRequiresSsl(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CalDavRequiresSsl)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetCalDavRequiresSsl(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCalDavRequiresSsl)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn WasModifiedByUser(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).WasModifiedByUser)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetWasModifiedByUser(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetWasModifiedByUser)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn WasIncomingServerCertificateHashConfirmed(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).WasIncomingServerCertificateHashConfirmed)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetWasIncomingServerCertificateHashConfirmed(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetWasIncomingServerCertificateHashConfirmed)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IncomingServerCertificateHash(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IncomingServerCertificateHash)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIncomingServerCertificateHash(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIncomingServerCertificateHash)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn IsOutgoingServerAuthenticationRequired(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsOutgoingServerAuthenticationRequired)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsOutgoingServerAuthenticationRequired(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsOutgoingServerAuthenticationRequired)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsOutgoingServerAuthenticationEnabled(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsOutgoingServerAuthenticationEnabled)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsOutgoingServerAuthenticationEnabled(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsOutgoingServerAuthenticationEnabled)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn WasOutgoingServerCertificateHashConfirmed(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).WasOutgoingServerCertificateHashConfirmed)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetWasOutgoingServerCertificateHashConfirmed(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetWasOutgoingServerCertificateHashConfirmed)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn OutgoingServerCertificateHash(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OutgoingServerCertificateHash)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetOutgoingServerCertificateHash(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetOutgoingServerCertificateHash)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn IsSyncScheduleManagedBySystem(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsSyncScheduleManagedBySystem)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsSyncScheduleManagedBySystem(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsSyncScheduleManagedBySystem)(::windows_core::Interface::as_raw(this), value).ok() } } } @@ -690,14 +655,11 @@ impl ::windows_core::RuntimeType for DeviceAccountConfiguration { } unsafe impl ::windows_core::Interface for DeviceAccountConfiguration { type Vtable = IDeviceAccountConfiguration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DeviceAccountConfiguration { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DeviceAccountConfiguration { const NAME: &'static str = "Windows.ApplicationModel.UserDataAccounts.SystemAccess.DeviceAccountConfiguration"; } -::windows_core::imp::interface_hierarchy!(DeviceAccountConfiguration, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DeviceAccountConfiguration {} unsafe impl ::core::marker::Sync for DeviceAccountConfiguration {} pub struct UserDataAccountSystemAccessManager; @@ -706,11 +668,11 @@ impl UserDataAccountSystemAccessManager { #[cfg(feature = "Foundation_Collections")] pub fn AddAndShowDeviceAccountsAsync(accounts: P0) -> ::windows_core::Result>> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::IUserDataAccountSystemAccessManagerStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).AddAndShowDeviceAccountsAsync)(::windows_core::Interface::as_raw(this), accounts.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).AddAndShowDeviceAccountsAsync)(::windows_core::Interface::as_raw(this), accounts.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn SuppressLocalAccountWithAccountAsync(userdataaccountid: &::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 e113d7adce..bbb986d852 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/UserDataAccounts/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/UserDataAccounts/mod.rs @@ -4,16 +4,7 @@ pub mod Provider; #[cfg(feature = "ApplicationModel_UserDataAccounts_SystemAccess")] #[doc = "Required features: `\"ApplicationModel_UserDataAccounts_SystemAccess\"`"] pub mod SystemAccess; -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserDataAccount(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserDataAccount { - type Vtable = IUserDataAccount_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserDataAccount { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb9c4367e_b348_4910_be94_4ad4bba6dea7); -} +::windows_core::imp::com_interface!(IUserDataAccount, IUserDataAccount_Vtbl, 0xb9c4367e_b348_4910_be94_4ad4bba6dea7); #[repr(C)] #[doc(hidden)] pub struct IUserDataAccount_Vtbl { @@ -48,16 +39,7 @@ pub struct IUserDataAccount_Vtbl { #[cfg(not(all(feature = "ApplicationModel_Contacts", feature = "Foundation_Collections")))] FindContactAnnotationListsAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserDataAccount2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserDataAccount2 { - type Vtable = IUserDataAccount2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserDataAccount2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x078cd89f_de82_404b_8195_c8a3ac198f60); -} +::windows_core::imp::com_interface!(IUserDataAccount2, IUserDataAccount2_Vtbl, 0x078cd89f_de82_404b_8195_c8a3ac198f60); #[repr(C)] #[doc(hidden)] pub struct IUserDataAccount2_Vtbl { @@ -65,16 +47,7 @@ pub struct IUserDataAccount2_Vtbl { pub EnterpriseId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub IsProtectedUnderLock: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserDataAccount3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserDataAccount3 { - type Vtable = IUserDataAccount3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserDataAccount3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x01533845_6c43_4286_9d69_3e1709a1f266); -} +::windows_core::imp::com_interface!(IUserDataAccount3, IUserDataAccount3_Vtbl, 0x01533845_6c43_4286_9d69_3e1709a1f266); #[repr(C)] #[doc(hidden)] pub struct IUserDataAccount3_Vtbl { @@ -86,16 +59,7 @@ pub struct IUserDataAccount3_Vtbl { pub DisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetDisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserDataAccount4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserDataAccount4 { - type Vtable = IUserDataAccount4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserDataAccount4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc4315210_eae5_4f0a_a8b2_1cca115e008f); -} +::windows_core::imp::com_interface!(IUserDataAccount4, IUserDataAccount4_Vtbl, 0xc4315210_eae5_4f0a_a8b2_1cca115e008f); #[repr(C)] #[doc(hidden)] pub struct IUserDataAccount4_Vtbl { @@ -121,16 +85,7 @@ pub struct IUserDataAccount4_Vtbl { #[cfg(not(feature = "Storage_Streams"))] SetIcon: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserDataAccountManagerForUser(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserDataAccountManagerForUser { - type Vtable = IUserDataAccountManagerForUser_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserDataAccountManagerForUser { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x56a6e8db_db8f_41ab_a65f_8c5971aac982); -} +::windows_core::imp::com_interface!(IUserDataAccountManagerForUser, IUserDataAccountManagerForUser_Vtbl, 0x56a6e8db_db8f_41ab_a65f_8c5971aac982); #[repr(C)] #[doc(hidden)] pub struct IUserDataAccountManagerForUser_Vtbl { @@ -141,16 +96,7 @@ pub struct IUserDataAccountManagerForUser_Vtbl { #[cfg(not(feature = "System"))] User: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserDataAccountManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserDataAccountManagerStatics { - type Vtable = IUserDataAccountManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserDataAccountManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0d9b89ea_1928_4a20_86d5_3c737f7dc3b0); -} +::windows_core::imp::com_interface!(IUserDataAccountManagerStatics, IUserDataAccountManagerStatics_Vtbl, 0x0d9b89ea_1928_4a20_86d5_3c737f7dc3b0); #[repr(C)] #[doc(hidden)] pub struct IUserDataAccountManagerStatics_Vtbl { @@ -160,16 +106,7 @@ pub struct IUserDataAccountManagerStatics_Vtbl { pub ShowAccountSettingsAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ShowAccountErrorResolverAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserDataAccountManagerStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserDataAccountManagerStatics2 { - type Vtable = IUserDataAccountManagerStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserDataAccountManagerStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6a3ded88_316b_435e_b534_f7d4b4b7dba6); -} +::windows_core::imp::com_interface!(IUserDataAccountManagerStatics2, IUserDataAccountManagerStatics2_Vtbl, 0x6a3ded88_316b_435e_b534_f7d4b4b7dba6); #[repr(C)] #[doc(hidden)] pub struct IUserDataAccountManagerStatics2_Vtbl { @@ -179,16 +116,7 @@ pub struct IUserDataAccountManagerStatics2_Vtbl { #[cfg(not(feature = "System"))] GetForUser: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserDataAccountStore(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserDataAccountStore { - type Vtable = IUserDataAccountStore_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserDataAccountStore { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2073b0ad_7d0a_4e76_bf45_2368f978a59a); -} +::windows_core::imp::com_interface!(IUserDataAccountStore, IUserDataAccountStore_Vtbl, 0x2073b0ad_7d0a_4e76_bf45_2368f978a59a); #[repr(C)] #[doc(hidden)] pub struct IUserDataAccountStore_Vtbl { @@ -200,16 +128,7 @@ pub struct IUserDataAccountStore_Vtbl { pub GetAccountAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateAccountAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, userdisplayname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserDataAccountStore2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserDataAccountStore2 { - type Vtable = IUserDataAccountStore2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserDataAccountStore2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb1e0aef7_9560_4631_8af0_061d30161469); -} +::windows_core::imp::com_interface!(IUserDataAccountStore2, IUserDataAccountStore2_Vtbl, 0xb1e0aef7_9560_4631_8af0_061d30161469); #[repr(C)] #[doc(hidden)] pub struct IUserDataAccountStore2_Vtbl { @@ -218,32 +137,14 @@ pub struct IUserDataAccountStore2_Vtbl { pub StoreChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveStoreChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserDataAccountStore3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserDataAccountStore3 { - type Vtable = IUserDataAccountStore3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserDataAccountStore3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8142c094_f3c9_478b_b117_6585bebb6789); -} +::windows_core::imp::com_interface!(IUserDataAccountStore3, IUserDataAccountStore3_Vtbl, 0x8142c094_f3c9_478b_b117_6585bebb6789); #[repr(C)] #[doc(hidden)] pub struct IUserDataAccountStore3_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateAccountWithPackageRelativeAppIdAndEnterpriseIdAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, userdisplayname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, packagerelativeappid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, enterpriseid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserDataAccountStoreChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserDataAccountStoreChangedEventArgs { - type Vtable = IUserDataAccountStoreChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserDataAccountStoreChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x84e3e2e5_8820_4512_b1f6_2e035be1072c); -} +::windows_core::imp::com_interface!(IUserDataAccountStoreChangedEventArgs, IUserDataAccountStoreChangedEventArgs_Vtbl, 0x84e3e2e5_8820_4512_b1f6_2e035be1072c); #[repr(C)] #[doc(hidden)] pub struct IUserDataAccountStoreChangedEventArgs_Vtbl { @@ -253,6 +154,7 @@ pub struct IUserDataAccountStoreChangedEventArgs_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UserDataAccount(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UserDataAccount, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UserDataAccount { pub fn Id(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -357,14 +259,14 @@ impl UserDataAccount { } } pub fn EnterpriseId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).EnterpriseId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsProtectedUnderLock(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsProtectedUnderLock)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -373,38 +275,38 @@ impl UserDataAccount { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn ExplictReadAccessPackageFamilyNames(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ExplictReadAccessPackageFamilyNames)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn DisplayName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DisplayName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDisplayName(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDisplayName)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn CanShowCreateContactGroup(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CanShowCreateContactGroup)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetCanShowCreateContactGroup(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCanShowCreateContactGroup)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn ProviderProperties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ProviderProperties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -413,7 +315,7 @@ impl UserDataAccount { #[doc = "Required features: `\"ApplicationModel_UserDataTasks\"`, `\"Foundation_Collections\"`"] #[cfg(all(feature = "ApplicationModel_UserDataTasks", feature = "Foundation_Collections"))] pub fn FindUserDataTaskListsAsync(&self) -> ::windows_core::Result>> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FindUserDataTaskListsAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -422,31 +324,31 @@ impl UserDataAccount { #[doc = "Required features: `\"ApplicationModel_Contacts\"`, `\"Foundation_Collections\"`"] #[cfg(all(feature = "ApplicationModel_Contacts", feature = "Foundation_Collections"))] pub fn FindContactGroupsAsync(&self) -> ::windows_core::Result>> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FindContactGroupsAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryShowCreateContactGroupAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryShowCreateContactGroupAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsProtectedUnderLock(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsProtectedUnderLock)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn SetIcon(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetIcon)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } } impl ::windows_core::RuntimeType for UserDataAccount { @@ -454,14 +356,11 @@ impl ::windows_core::RuntimeType for UserDataAccount { } unsafe impl ::windows_core::Interface for UserDataAccount { type Vtable = IUserDataAccount_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UserDataAccount { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UserDataAccount { const NAME: &'static str = "Windows.ApplicationModel.UserDataAccounts.UserDataAccount"; } -::windows_core::imp::interface_hierarchy!(UserDataAccount, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UserDataAccount {} unsafe impl ::core::marker::Sync for UserDataAccount {} pub struct UserDataAccountManager; @@ -518,6 +417,7 @@ impl ::windows_core::RuntimeName for UserDataAccountManager { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UserDataAccountManagerForUser(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UserDataAccountManagerForUser, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UserDataAccountManagerForUser { pub fn RequestStoreAsync(&self, storeaccesstype: UserDataAccountStoreAccessType) -> ::windows_core::Result> { let this = self; @@ -541,19 +441,17 @@ impl ::windows_core::RuntimeType for UserDataAccountManagerForUser { } unsafe impl ::windows_core::Interface for UserDataAccountManagerForUser { type Vtable = IUserDataAccountManagerForUser_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UserDataAccountManagerForUser { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UserDataAccountManagerForUser { const NAME: &'static str = "Windows.ApplicationModel.UserDataAccounts.UserDataAccountManagerForUser"; } -::windows_core::imp::interface_hierarchy!(UserDataAccountManagerForUser, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UserDataAccountManagerForUser {} unsafe impl ::core::marker::Sync for UserDataAccountManagerForUser {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UserDataAccountStore(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UserDataAccountStore, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UserDataAccountStore { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -579,7 +477,7 @@ impl UserDataAccountStore { } } pub fn CreateAccountWithPackageRelativeAppIdAsync(&self, userdisplayname: &::windows_core::HSTRING, packagerelativeappid: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateAccountWithPackageRelativeAppIdAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(userdisplayname), ::core::mem::transmute_copy(packagerelativeappid), &mut result__).from_abi(result__) @@ -589,18 +487,18 @@ impl UserDataAccountStore { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveStoreChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveStoreChanged)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn CreateAccountWithPackageRelativeAppIdAndEnterpriseIdAsync(&self, userdisplayname: &::windows_core::HSTRING, packagerelativeappid: &::windows_core::HSTRING, enterpriseid: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateAccountWithPackageRelativeAppIdAndEnterpriseIdAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(userdisplayname), ::core::mem::transmute_copy(packagerelativeappid), ::core::mem::transmute_copy(enterpriseid), &mut result__).from_abi(result__) @@ -612,19 +510,17 @@ impl ::windows_core::RuntimeType for UserDataAccountStore { } unsafe impl ::windows_core::Interface for UserDataAccountStore { type Vtable = IUserDataAccountStore_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UserDataAccountStore { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UserDataAccountStore { const NAME: &'static str = "Windows.ApplicationModel.UserDataAccounts.UserDataAccountStore"; } -::windows_core::imp::interface_hierarchy!(UserDataAccountStore, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UserDataAccountStore {} unsafe impl ::core::marker::Sync for UserDataAccountStore {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UserDataAccountStoreChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UserDataAccountStoreChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UserDataAccountStoreChangedEventArgs { pub fn GetDeferral(&self) -> ::windows_core::Result { let this = self; @@ -639,14 +535,11 @@ impl ::windows_core::RuntimeType for UserDataAccountStoreChangedEventArgs { } unsafe impl ::windows_core::Interface for UserDataAccountStoreChangedEventArgs { type Vtable = IUserDataAccountStoreChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UserDataAccountStoreChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UserDataAccountStoreChangedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.UserDataAccounts.UserDataAccountStoreChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(UserDataAccountStoreChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UserDataAccountStoreChangedEventArgs {} unsafe impl ::core::marker::Sync for UserDataAccountStoreChangedEventArgs {} #[repr(transparent)] 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 0f432a2664..6503e94928 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/UserDataTasks/DataProvider/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/UserDataTasks/DataProvider/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserDataTaskDataProviderConnection(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserDataTaskDataProviderConnection { - type Vtable = IUserDataTaskDataProviderConnection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserDataTaskDataProviderConnection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9ff39d1d_a447_428b_afe9_e5402bdeb041); -} +::windows_core::imp::com_interface!(IUserDataTaskDataProviderConnection, IUserDataTaskDataProviderConnection_Vtbl, 0x9ff39d1d_a447_428b_afe9_e5402bdeb041); #[repr(C)] #[doc(hidden)] pub struct IUserDataTaskDataProviderConnection_Vtbl { @@ -24,32 +15,14 @@ pub struct IUserDataTaskDataProviderConnection_Vtbl { pub RemoveDeleteTaskRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub Start: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserDataTaskDataProviderTriggerDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserDataTaskDataProviderTriggerDetails { - type Vtable = IUserDataTaskDataProviderTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserDataTaskDataProviderTriggerDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xae273202_b1c9_453e_afc5_b30af3bd217d); -} +::windows_core::imp::com_interface!(IUserDataTaskDataProviderTriggerDetails, IUserDataTaskDataProviderTriggerDetails_Vtbl, 0xae273202_b1c9_453e_afc5_b30af3bd217d); #[repr(C)] #[doc(hidden)] pub struct IUserDataTaskDataProviderTriggerDetails_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Connection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserDataTaskListCompleteTaskRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserDataTaskListCompleteTaskRequest { - type Vtable = IUserDataTaskListCompleteTaskRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserDataTaskListCompleteTaskRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf65e14a3_1a42_49da_8552_2873e52c55eb); -} +::windows_core::imp::com_interface!(IUserDataTaskListCompleteTaskRequest, IUserDataTaskListCompleteTaskRequest_Vtbl, 0xf65e14a3_1a42_49da_8552_2873e52c55eb); #[repr(C)] #[doc(hidden)] pub struct IUserDataTaskListCompleteTaskRequest_Vtbl { @@ -59,16 +32,7 @@ pub struct IUserDataTaskListCompleteTaskRequest_Vtbl { pub ReportCompletedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, completedtaskid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ReportFailedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserDataTaskListCompleteTaskRequestEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserDataTaskListCompleteTaskRequestEventArgs { - type Vtable = IUserDataTaskListCompleteTaskRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserDataTaskListCompleteTaskRequestEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd77c393d_4cf2_48ad_87fd_963f0eaa7a95); -} +::windows_core::imp::com_interface!(IUserDataTaskListCompleteTaskRequestEventArgs, IUserDataTaskListCompleteTaskRequestEventArgs_Vtbl, 0xd77c393d_4cf2_48ad_87fd_963f0eaa7a95); #[repr(C)] #[doc(hidden)] pub struct IUserDataTaskListCompleteTaskRequestEventArgs_Vtbl { @@ -76,16 +40,7 @@ pub struct IUserDataTaskListCompleteTaskRequestEventArgs_Vtbl { pub Request: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserDataTaskListCreateOrUpdateTaskRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserDataTaskListCreateOrUpdateTaskRequest { - type Vtable = IUserDataTaskListCreateOrUpdateTaskRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserDataTaskListCreateOrUpdateTaskRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2133772c_55c2_4300_8279_04326e07cce4); -} +::windows_core::imp::com_interface!(IUserDataTaskListCreateOrUpdateTaskRequest, IUserDataTaskListCreateOrUpdateTaskRequest_Vtbl, 0x2133772c_55c2_4300_8279_04326e07cce4); #[repr(C)] #[doc(hidden)] pub struct IUserDataTaskListCreateOrUpdateTaskRequest_Vtbl { @@ -95,16 +50,7 @@ pub struct IUserDataTaskListCreateOrUpdateTaskRequest_Vtbl { pub ReportCompletedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, createdorupdateduserdatatask: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ReportFailedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserDataTaskListCreateOrUpdateTaskRequestEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserDataTaskListCreateOrUpdateTaskRequestEventArgs { - type Vtable = IUserDataTaskListCreateOrUpdateTaskRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserDataTaskListCreateOrUpdateTaskRequestEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x12c55a52_e378_419b_ae38_a5e9e604476e); -} +::windows_core::imp::com_interface!(IUserDataTaskListCreateOrUpdateTaskRequestEventArgs, IUserDataTaskListCreateOrUpdateTaskRequestEventArgs_Vtbl, 0x12c55a52_e378_419b_ae38_a5e9e604476e); #[repr(C)] #[doc(hidden)] pub struct IUserDataTaskListCreateOrUpdateTaskRequestEventArgs_Vtbl { @@ -112,16 +58,7 @@ pub struct IUserDataTaskListCreateOrUpdateTaskRequestEventArgs_Vtbl { pub Request: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserDataTaskListDeleteTaskRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserDataTaskListDeleteTaskRequest { - type Vtable = IUserDataTaskListDeleteTaskRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserDataTaskListDeleteTaskRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4b863c68_7657_4f3d_b074_d47ec8df07e7); -} +::windows_core::imp::com_interface!(IUserDataTaskListDeleteTaskRequest, IUserDataTaskListDeleteTaskRequest_Vtbl, 0x4b863c68_7657_4f3d_b074_d47ec8df07e7); #[repr(C)] #[doc(hidden)] pub struct IUserDataTaskListDeleteTaskRequest_Vtbl { @@ -131,16 +68,7 @@ pub struct IUserDataTaskListDeleteTaskRequest_Vtbl { pub ReportCompletedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ReportFailedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserDataTaskListDeleteTaskRequestEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserDataTaskListDeleteTaskRequestEventArgs { - type Vtable = IUserDataTaskListDeleteTaskRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserDataTaskListDeleteTaskRequestEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6063dad9_f562_4145_8efe_d50078c92b7f); -} +::windows_core::imp::com_interface!(IUserDataTaskListDeleteTaskRequestEventArgs, IUserDataTaskListDeleteTaskRequestEventArgs_Vtbl, 0x6063dad9_f562_4145_8efe_d50078c92b7f); #[repr(C)] #[doc(hidden)] pub struct IUserDataTaskListDeleteTaskRequestEventArgs_Vtbl { @@ -148,16 +76,7 @@ pub struct IUserDataTaskListDeleteTaskRequestEventArgs_Vtbl { pub Request: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserDataTaskListSkipOccurrenceRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserDataTaskListSkipOccurrenceRequest { - type Vtable = IUserDataTaskListSkipOccurrenceRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserDataTaskListSkipOccurrenceRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xab87e34d_1cd3_431c_9f58_089aa4338d85); -} +::windows_core::imp::com_interface!(IUserDataTaskListSkipOccurrenceRequest, IUserDataTaskListSkipOccurrenceRequest_Vtbl, 0xab87e34d_1cd3_431c_9f58_089aa4338d85); #[repr(C)] #[doc(hidden)] pub struct IUserDataTaskListSkipOccurrenceRequest_Vtbl { @@ -167,16 +86,7 @@ pub struct IUserDataTaskListSkipOccurrenceRequest_Vtbl { pub ReportCompletedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ReportFailedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserDataTaskListSkipOccurrenceRequestEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserDataTaskListSkipOccurrenceRequestEventArgs { - type Vtable = IUserDataTaskListSkipOccurrenceRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserDataTaskListSkipOccurrenceRequestEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7a3b924a_cc2f_4e7b_aacd_a5b9d29cfa4e); -} +::windows_core::imp::com_interface!(IUserDataTaskListSkipOccurrenceRequestEventArgs, IUserDataTaskListSkipOccurrenceRequestEventArgs_Vtbl, 0x7a3b924a_cc2f_4e7b_aacd_a5b9d29cfa4e); #[repr(C)] #[doc(hidden)] pub struct IUserDataTaskListSkipOccurrenceRequestEventArgs_Vtbl { @@ -184,16 +94,7 @@ pub struct IUserDataTaskListSkipOccurrenceRequestEventArgs_Vtbl { pub Request: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserDataTaskListSyncManagerSyncRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserDataTaskListSyncManagerSyncRequest { - type Vtable = IUserDataTaskListSyncManagerSyncRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserDataTaskListSyncManagerSyncRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x40a73807_7590_4149_ae19_b211431a9f48); -} +::windows_core::imp::com_interface!(IUserDataTaskListSyncManagerSyncRequest, IUserDataTaskListSyncManagerSyncRequest_Vtbl, 0x40a73807_7590_4149_ae19_b211431a9f48); #[repr(C)] #[doc(hidden)] pub struct IUserDataTaskListSyncManagerSyncRequest_Vtbl { @@ -202,16 +103,7 @@ pub struct IUserDataTaskListSyncManagerSyncRequest_Vtbl { pub ReportCompletedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ReportFailedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserDataTaskListSyncManagerSyncRequestEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserDataTaskListSyncManagerSyncRequestEventArgs { - type Vtable = IUserDataTaskListSyncManagerSyncRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserDataTaskListSyncManagerSyncRequestEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8ead1c12_768e_43bd_8385_5cdc351ffdea); -} +::windows_core::imp::com_interface!(IUserDataTaskListSyncManagerSyncRequestEventArgs, IUserDataTaskListSyncManagerSyncRequestEventArgs_Vtbl, 0x8ead1c12_768e_43bd_8385_5cdc351ffdea); #[repr(C)] #[doc(hidden)] pub struct IUserDataTaskListSyncManagerSyncRequestEventArgs_Vtbl { @@ -222,6 +114,7 @@ pub struct IUserDataTaskListSyncManagerSyncRequestEventArgs_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UserDataTaskDataProviderConnection(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UserDataTaskDataProviderConnection, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UserDataTaskDataProviderConnection { pub fn CreateOrUpdateTaskRequested(&self, handler: P0) -> ::windows_core::Result where @@ -303,19 +196,17 @@ impl ::windows_core::RuntimeType for UserDataTaskDataProviderConnection { } unsafe impl ::windows_core::Interface for UserDataTaskDataProviderConnection { type Vtable = IUserDataTaskDataProviderConnection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UserDataTaskDataProviderConnection { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UserDataTaskDataProviderConnection { const NAME: &'static str = "Windows.ApplicationModel.UserDataTasks.DataProvider.UserDataTaskDataProviderConnection"; } -::windows_core::imp::interface_hierarchy!(UserDataTaskDataProviderConnection, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UserDataTaskDataProviderConnection {} unsafe impl ::core::marker::Sync for UserDataTaskDataProviderConnection {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UserDataTaskDataProviderTriggerDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UserDataTaskDataProviderTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UserDataTaskDataProviderTriggerDetails { pub fn Connection(&self) -> ::windows_core::Result { let this = self; @@ -330,19 +221,17 @@ impl ::windows_core::RuntimeType for UserDataTaskDataProviderTriggerDetails { } unsafe impl ::windows_core::Interface for UserDataTaskDataProviderTriggerDetails { type Vtable = IUserDataTaskDataProviderTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UserDataTaskDataProviderTriggerDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UserDataTaskDataProviderTriggerDetails { const NAME: &'static str = "Windows.ApplicationModel.UserDataTasks.DataProvider.UserDataTaskDataProviderTriggerDetails"; } -::windows_core::imp::interface_hierarchy!(UserDataTaskDataProviderTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UserDataTaskDataProviderTriggerDetails {} unsafe impl ::core::marker::Sync for UserDataTaskDataProviderTriggerDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UserDataTaskListCompleteTaskRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UserDataTaskListCompleteTaskRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UserDataTaskListCompleteTaskRequest { pub fn TaskListId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -378,19 +267,17 @@ impl ::windows_core::RuntimeType for UserDataTaskListCompleteTaskRequest { } unsafe impl ::windows_core::Interface for UserDataTaskListCompleteTaskRequest { type Vtable = IUserDataTaskListCompleteTaskRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UserDataTaskListCompleteTaskRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UserDataTaskListCompleteTaskRequest { const NAME: &'static str = "Windows.ApplicationModel.UserDataTasks.DataProvider.UserDataTaskListCompleteTaskRequest"; } -::windows_core::imp::interface_hierarchy!(UserDataTaskListCompleteTaskRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UserDataTaskListCompleteTaskRequest {} unsafe impl ::core::marker::Sync for UserDataTaskListCompleteTaskRequest {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UserDataTaskListCompleteTaskRequestEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UserDataTaskListCompleteTaskRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UserDataTaskListCompleteTaskRequestEventArgs { pub fn Request(&self) -> ::windows_core::Result { let this = self; @@ -412,19 +299,17 @@ impl ::windows_core::RuntimeType for UserDataTaskListCompleteTaskRequestEventArg } unsafe impl ::windows_core::Interface for UserDataTaskListCompleteTaskRequestEventArgs { type Vtable = IUserDataTaskListCompleteTaskRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UserDataTaskListCompleteTaskRequestEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UserDataTaskListCompleteTaskRequestEventArgs { const NAME: &'static str = "Windows.ApplicationModel.UserDataTasks.DataProvider.UserDataTaskListCompleteTaskRequestEventArgs"; } -::windows_core::imp::interface_hierarchy!(UserDataTaskListCompleteTaskRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UserDataTaskListCompleteTaskRequestEventArgs {} unsafe impl ::core::marker::Sync for UserDataTaskListCompleteTaskRequestEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UserDataTaskListCreateOrUpdateTaskRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UserDataTaskListCreateOrUpdateTaskRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UserDataTaskListCreateOrUpdateTaskRequest { pub fn TaskListId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -463,19 +348,17 @@ impl ::windows_core::RuntimeType for UserDataTaskListCreateOrUpdateTaskRequest { } unsafe impl ::windows_core::Interface for UserDataTaskListCreateOrUpdateTaskRequest { type Vtable = IUserDataTaskListCreateOrUpdateTaskRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UserDataTaskListCreateOrUpdateTaskRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UserDataTaskListCreateOrUpdateTaskRequest { const NAME: &'static str = "Windows.ApplicationModel.UserDataTasks.DataProvider.UserDataTaskListCreateOrUpdateTaskRequest"; } -::windows_core::imp::interface_hierarchy!(UserDataTaskListCreateOrUpdateTaskRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UserDataTaskListCreateOrUpdateTaskRequest {} unsafe impl ::core::marker::Sync for UserDataTaskListCreateOrUpdateTaskRequest {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UserDataTaskListCreateOrUpdateTaskRequestEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UserDataTaskListCreateOrUpdateTaskRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UserDataTaskListCreateOrUpdateTaskRequestEventArgs { pub fn Request(&self) -> ::windows_core::Result { let this = self; @@ -497,19 +380,17 @@ impl ::windows_core::RuntimeType for UserDataTaskListCreateOrUpdateTaskRequestEv } unsafe impl ::windows_core::Interface for UserDataTaskListCreateOrUpdateTaskRequestEventArgs { type Vtable = IUserDataTaskListCreateOrUpdateTaskRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UserDataTaskListCreateOrUpdateTaskRequestEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UserDataTaskListCreateOrUpdateTaskRequestEventArgs { const NAME: &'static str = "Windows.ApplicationModel.UserDataTasks.DataProvider.UserDataTaskListCreateOrUpdateTaskRequestEventArgs"; } -::windows_core::imp::interface_hierarchy!(UserDataTaskListCreateOrUpdateTaskRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UserDataTaskListCreateOrUpdateTaskRequestEventArgs {} unsafe impl ::core::marker::Sync for UserDataTaskListCreateOrUpdateTaskRequestEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UserDataTaskListDeleteTaskRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UserDataTaskListDeleteTaskRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UserDataTaskListDeleteTaskRequest { pub fn TaskListId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -545,19 +426,17 @@ impl ::windows_core::RuntimeType for UserDataTaskListDeleteTaskRequest { } unsafe impl ::windows_core::Interface for UserDataTaskListDeleteTaskRequest { type Vtable = IUserDataTaskListDeleteTaskRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UserDataTaskListDeleteTaskRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UserDataTaskListDeleteTaskRequest { const NAME: &'static str = "Windows.ApplicationModel.UserDataTasks.DataProvider.UserDataTaskListDeleteTaskRequest"; } -::windows_core::imp::interface_hierarchy!(UserDataTaskListDeleteTaskRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UserDataTaskListDeleteTaskRequest {} unsafe impl ::core::marker::Sync for UserDataTaskListDeleteTaskRequest {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UserDataTaskListDeleteTaskRequestEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UserDataTaskListDeleteTaskRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UserDataTaskListDeleteTaskRequestEventArgs { pub fn Request(&self) -> ::windows_core::Result { let this = self; @@ -579,19 +458,17 @@ impl ::windows_core::RuntimeType for UserDataTaskListDeleteTaskRequestEventArgs } unsafe impl ::windows_core::Interface for UserDataTaskListDeleteTaskRequestEventArgs { type Vtable = IUserDataTaskListDeleteTaskRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UserDataTaskListDeleteTaskRequestEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UserDataTaskListDeleteTaskRequestEventArgs { const NAME: &'static str = "Windows.ApplicationModel.UserDataTasks.DataProvider.UserDataTaskListDeleteTaskRequestEventArgs"; } -::windows_core::imp::interface_hierarchy!(UserDataTaskListDeleteTaskRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UserDataTaskListDeleteTaskRequestEventArgs {} unsafe impl ::core::marker::Sync for UserDataTaskListDeleteTaskRequestEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UserDataTaskListSkipOccurrenceRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UserDataTaskListSkipOccurrenceRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UserDataTaskListSkipOccurrenceRequest { pub fn TaskListId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -627,19 +504,17 @@ impl ::windows_core::RuntimeType for UserDataTaskListSkipOccurrenceRequest { } unsafe impl ::windows_core::Interface for UserDataTaskListSkipOccurrenceRequest { type Vtable = IUserDataTaskListSkipOccurrenceRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UserDataTaskListSkipOccurrenceRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UserDataTaskListSkipOccurrenceRequest { const NAME: &'static str = "Windows.ApplicationModel.UserDataTasks.DataProvider.UserDataTaskListSkipOccurrenceRequest"; } -::windows_core::imp::interface_hierarchy!(UserDataTaskListSkipOccurrenceRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UserDataTaskListSkipOccurrenceRequest {} unsafe impl ::core::marker::Sync for UserDataTaskListSkipOccurrenceRequest {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UserDataTaskListSkipOccurrenceRequestEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UserDataTaskListSkipOccurrenceRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UserDataTaskListSkipOccurrenceRequestEventArgs { pub fn Request(&self) -> ::windows_core::Result { let this = self; @@ -661,19 +536,17 @@ impl ::windows_core::RuntimeType for UserDataTaskListSkipOccurrenceRequestEventA } unsafe impl ::windows_core::Interface for UserDataTaskListSkipOccurrenceRequestEventArgs { type Vtable = IUserDataTaskListSkipOccurrenceRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UserDataTaskListSkipOccurrenceRequestEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UserDataTaskListSkipOccurrenceRequestEventArgs { const NAME: &'static str = "Windows.ApplicationModel.UserDataTasks.DataProvider.UserDataTaskListSkipOccurrenceRequestEventArgs"; } -::windows_core::imp::interface_hierarchy!(UserDataTaskListSkipOccurrenceRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UserDataTaskListSkipOccurrenceRequestEventArgs {} unsafe impl ::core::marker::Sync for UserDataTaskListSkipOccurrenceRequestEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UserDataTaskListSyncManagerSyncRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UserDataTaskListSyncManagerSyncRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UserDataTaskListSyncManagerSyncRequest { pub fn TaskListId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -702,19 +575,17 @@ impl ::windows_core::RuntimeType for UserDataTaskListSyncManagerSyncRequest { } unsafe impl ::windows_core::Interface for UserDataTaskListSyncManagerSyncRequest { type Vtable = IUserDataTaskListSyncManagerSyncRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UserDataTaskListSyncManagerSyncRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UserDataTaskListSyncManagerSyncRequest { const NAME: &'static str = "Windows.ApplicationModel.UserDataTasks.DataProvider.UserDataTaskListSyncManagerSyncRequest"; } -::windows_core::imp::interface_hierarchy!(UserDataTaskListSyncManagerSyncRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UserDataTaskListSyncManagerSyncRequest {} unsafe impl ::core::marker::Sync for UserDataTaskListSyncManagerSyncRequest {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UserDataTaskListSyncManagerSyncRequestEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UserDataTaskListSyncManagerSyncRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UserDataTaskListSyncManagerSyncRequestEventArgs { pub fn Request(&self) -> ::windows_core::Result { let this = self; @@ -736,13 +607,10 @@ impl ::windows_core::RuntimeType for UserDataTaskListSyncManagerSyncRequestEvent } unsafe impl ::windows_core::Interface for UserDataTaskListSyncManagerSyncRequestEventArgs { type Vtable = IUserDataTaskListSyncManagerSyncRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UserDataTaskListSyncManagerSyncRequestEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UserDataTaskListSyncManagerSyncRequestEventArgs { const NAME: &'static str = "Windows.ApplicationModel.UserDataTasks.DataProvider.UserDataTaskListSyncManagerSyncRequestEventArgs"; } -::windows_core::imp::interface_hierarchy!(UserDataTaskListSyncManagerSyncRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UserDataTaskListSyncManagerSyncRequestEventArgs {} unsafe impl ::core::marker::Sync for UserDataTaskListSyncManagerSyncRequestEventArgs {} diff --git a/crates/libs/windows/src/Windows/ApplicationModel/UserDataTasks/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/UserDataTasks/mod.rs index 26fc38476b..3cf7b7bd49 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/UserDataTasks/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/UserDataTasks/mod.rs @@ -1,16 +1,7 @@ #[cfg(feature = "ApplicationModel_UserDataTasks_DataProvider")] #[doc = "Required features: `\"ApplicationModel_UserDataTasks_DataProvider\"`"] pub mod DataProvider; -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserDataTask(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserDataTask { - type Vtable = IUserDataTask_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserDataTask { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7c6585d1_e0d4_4f99_aee2_bc2d5ddadf4c); -} +::windows_core::imp::com_interface!(IUserDataTask, IUserDataTask_Vtbl, 0x7c6585d1_e0d4_4f99_aee2_bc2d5ddadf4c); #[repr(C)] #[doc(hidden)] pub struct IUserDataTask_Vtbl { @@ -43,16 +34,7 @@ pub struct IUserDataTask_Vtbl { pub StartDate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetStartDate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserDataTaskBatch(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserDataTaskBatch { - type Vtable = IUserDataTaskBatch_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserDataTaskBatch { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x382da5fe_20b5_431c_8f42_a5d292ec930c); -} +::windows_core::imp::com_interface!(IUserDataTaskBatch, IUserDataTaskBatch_Vtbl, 0x382da5fe_20b5_431c_8f42_a5d292ec930c); #[repr(C)] #[doc(hidden)] pub struct IUserDataTaskBatch_Vtbl { @@ -62,16 +44,7 @@ pub struct IUserDataTaskBatch_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Tasks: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserDataTaskList(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserDataTaskList { - type Vtable = IUserDataTaskList_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserDataTaskList { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x49412e39_7c1d_4df1_bed3_314b7cbf5e4e); -} +::windows_core::imp::com_interface!(IUserDataTaskList, IUserDataTaskList_Vtbl, 0x49412e39_7c1d_4df1_bed3_314b7cbf5e4e); #[repr(C)] #[doc(hidden)] pub struct IUserDataTaskList_Vtbl { @@ -96,16 +69,7 @@ pub struct IUserDataTaskList_Vtbl { pub DeleteAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SaveAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserDataTaskListLimitedWriteOperations(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserDataTaskListLimitedWriteOperations { - type Vtable = IUserDataTaskListLimitedWriteOperations_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserDataTaskListLimitedWriteOperations { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7aa267f2_6078_4183_919e_4f29f19cfae9); -} +::windows_core::imp::com_interface!(IUserDataTaskListLimitedWriteOperations, IUserDataTaskListLimitedWriteOperations_Vtbl, 0x7aa267f2_6078_4183_919e_4f29f19cfae9); #[repr(C)] #[doc(hidden)] pub struct IUserDataTaskListLimitedWriteOperations_Vtbl { @@ -115,16 +79,7 @@ pub struct IUserDataTaskListLimitedWriteOperations_Vtbl { pub TryDeleteTaskAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, userdatataskid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub TrySkipOccurrenceAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, userdatataskid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserDataTaskListSyncManager(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserDataTaskListSyncManager { - type Vtable = IUserDataTaskListSyncManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserDataTaskListSyncManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8e591a95_1dcf_469f_93ec_ba48bb553c6b); -} +::windows_core::imp::com_interface!(IUserDataTaskListSyncManager, IUserDataTaskListSyncManager_Vtbl, 0x8e591a95_1dcf_469f_93ec_ba48bb553c6b); #[repr(C)] #[doc(hidden)] pub struct IUserDataTaskListSyncManager_Vtbl { @@ -139,16 +94,7 @@ pub struct IUserDataTaskListSyncManager_Vtbl { pub SyncStatusChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveSyncStatusChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserDataTaskManager(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserDataTaskManager { - type Vtable = IUserDataTaskManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserDataTaskManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8451c914_e60b_48a9_9211_7fb8a56cb84c); -} +::windows_core::imp::com_interface!(IUserDataTaskManager, IUserDataTaskManager_Vtbl, 0x8451c914_e60b_48a9_9211_7fb8a56cb84c); #[repr(C)] #[doc(hidden)] pub struct IUserDataTaskManager_Vtbl { @@ -159,16 +105,7 @@ pub struct IUserDataTaskManager_Vtbl { #[cfg(not(feature = "System"))] User: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserDataTaskManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserDataTaskManagerStatics { - type Vtable = IUserDataTaskManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserDataTaskManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb35539f8_c502_47fc_a81e_100883719d55); -} +::windows_core::imp::com_interface!(IUserDataTaskManagerStatics, IUserDataTaskManagerStatics_Vtbl, 0xb35539f8_c502_47fc_a81e_100883719d55); #[repr(C)] #[doc(hidden)] pub struct IUserDataTaskManagerStatics_Vtbl { @@ -179,16 +116,7 @@ pub struct IUserDataTaskManagerStatics_Vtbl { #[cfg(not(feature = "System"))] GetForUser: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserDataTaskQueryOptions(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserDataTaskQueryOptions { - type Vtable = IUserDataTaskQueryOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserDataTaskQueryOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x959f27ed_909a_4d30_8c1b_331d8fe667e2); -} +::windows_core::imp::com_interface!(IUserDataTaskQueryOptions, IUserDataTaskQueryOptions_Vtbl, 0x959f27ed_909a_4d30_8c1b_331d8fe667e2); #[repr(C)] #[doc(hidden)] pub struct IUserDataTaskQueryOptions_Vtbl { @@ -198,32 +126,14 @@ pub struct IUserDataTaskQueryOptions_Vtbl { pub Kind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut UserDataTaskQueryKind) -> ::windows_core::HRESULT, pub SetKind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: UserDataTaskQueryKind) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserDataTaskReader(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserDataTaskReader { - type Vtable = IUserDataTaskReader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserDataTaskReader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x03e688b1_4ccf_4500_883b_e76290cfed63); -} +::windows_core::imp::com_interface!(IUserDataTaskReader, IUserDataTaskReader_Vtbl, 0x03e688b1_4ccf_4500_883b_e76290cfed63); #[repr(C)] #[doc(hidden)] pub struct IUserDataTaskReader_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ReadBatchAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserDataTaskRecurrenceProperties(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserDataTaskRecurrenceProperties { - type Vtable = IUserDataTaskRecurrenceProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserDataTaskRecurrenceProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x73df80b0_27c6_40ce_b149_9cd41485a69e); -} +::windows_core::imp::com_interface!(IUserDataTaskRecurrenceProperties, IUserDataTaskRecurrenceProperties_Vtbl, 0x73df80b0_27c6_40ce_b149_9cd41485a69e); #[repr(C)] #[doc(hidden)] pub struct IUserDataTaskRecurrenceProperties_Vtbl { @@ -245,16 +155,7 @@ pub struct IUserDataTaskRecurrenceProperties_Vtbl { pub Day: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetDay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserDataTaskRegenerationProperties(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserDataTaskRegenerationProperties { - type Vtable = IUserDataTaskRegenerationProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserDataTaskRegenerationProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x92ab0007_090e_4704_bb5c_84fc0b0d9c31); -} +::windows_core::imp::com_interface!(IUserDataTaskRegenerationProperties, IUserDataTaskRegenerationProperties_Vtbl, 0x92ab0007_090e_4704_bb5c_84fc0b0d9c31); #[repr(C)] #[doc(hidden)] pub struct IUserDataTaskRegenerationProperties_Vtbl { @@ -268,16 +169,7 @@ pub struct IUserDataTaskRegenerationProperties_Vtbl { pub Interval: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows_core::HRESULT, pub SetInterval: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserDataTaskStore(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserDataTaskStore { - type Vtable = IUserDataTaskStore_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserDataTaskStore { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf06a9cb0_f1db_45ba_8a62_086004c0213d); -} +::windows_core::imp::com_interface!(IUserDataTaskStore, IUserDataTaskStore_Vtbl, 0xf06a9cb0_f1db_45ba_8a62_086004c0213d); #[repr(C)] #[doc(hidden)] pub struct IUserDataTaskStore_Vtbl { @@ -293,6 +185,7 @@ pub struct IUserDataTaskStore_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UserDataTask(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UserDataTask, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UserDataTask { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -335,10 +228,10 @@ impl UserDataTask { } pub fn SetCompletedDate(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetCompletedDate)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetCompletedDate)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn Details(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -371,10 +264,10 @@ impl UserDataTask { } pub fn SetDueDate(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetDueDate)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetDueDate)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn Kind(&self) -> ::windows_core::Result { let this = self; @@ -431,10 +324,10 @@ impl UserDataTask { } pub fn SetReminder(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetReminder)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetReminder)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn Sensitivity(&self) -> ::windows_core::Result { let this = self; @@ -467,10 +360,10 @@ impl UserDataTask { } pub fn SetStartDate(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetStartDate)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetStartDate)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } } impl ::windows_core::RuntimeType for UserDataTask { @@ -478,19 +371,17 @@ impl ::windows_core::RuntimeType for UserDataTask { } unsafe impl ::windows_core::Interface for UserDataTask { type Vtable = IUserDataTask_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UserDataTask { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UserDataTask { const NAME: &'static str = "Windows.ApplicationModel.UserDataTasks.UserDataTask"; } -::windows_core::imp::interface_hierarchy!(UserDataTask, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UserDataTask {} unsafe impl ::core::marker::Sync for UserDataTask {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UserDataTaskBatch(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UserDataTaskBatch, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UserDataTaskBatch { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -507,19 +398,17 @@ impl ::windows_core::RuntimeType for UserDataTaskBatch { } unsafe impl ::windows_core::Interface for UserDataTaskBatch { type Vtable = IUserDataTaskBatch_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UserDataTaskBatch { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UserDataTaskBatch { const NAME: &'static str = "Windows.ApplicationModel.UserDataTasks.UserDataTaskBatch"; } -::windows_core::imp::interface_hierarchy!(UserDataTaskBatch, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UserDataTaskBatch {} unsafe impl ::core::marker::Sync for UserDataTaskBatch {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UserDataTaskList(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UserDataTaskList, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UserDataTaskList { pub fn Id(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -657,19 +546,17 @@ impl ::windows_core::RuntimeType for UserDataTaskList { } unsafe impl ::windows_core::Interface for UserDataTaskList { type Vtable = IUserDataTaskList_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UserDataTaskList { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UserDataTaskList { const NAME: &'static str = "Windows.ApplicationModel.UserDataTasks.UserDataTaskList"; } -::windows_core::imp::interface_hierarchy!(UserDataTaskList, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UserDataTaskList {} unsafe impl ::core::marker::Sync for UserDataTaskList {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UserDataTaskListLimitedWriteOperations(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UserDataTaskListLimitedWriteOperations, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UserDataTaskListLimitedWriteOperations { pub fn TryCompleteTaskAsync(&self, userdatataskid: &::windows_core::HSTRING) -> ::windows_core::Result> { let this = self; @@ -708,19 +595,17 @@ impl ::windows_core::RuntimeType for UserDataTaskListLimitedWriteOperations { } unsafe impl ::windows_core::Interface for UserDataTaskListLimitedWriteOperations { type Vtable = IUserDataTaskListLimitedWriteOperations_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UserDataTaskListLimitedWriteOperations { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UserDataTaskListLimitedWriteOperations { const NAME: &'static str = "Windows.ApplicationModel.UserDataTasks.UserDataTaskListLimitedWriteOperations"; } -::windows_core::imp::interface_hierarchy!(UserDataTaskListLimitedWriteOperations, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UserDataTaskListLimitedWriteOperations {} unsafe impl ::core::marker::Sync for UserDataTaskListLimitedWriteOperations {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UserDataTaskListSyncManager(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UserDataTaskListSyncManager, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UserDataTaskListSyncManager { pub fn LastAttemptedSyncTime(&self) -> ::windows_core::Result { let this = self; @@ -782,19 +667,17 @@ impl ::windows_core::RuntimeType for UserDataTaskListSyncManager { } unsafe impl ::windows_core::Interface for UserDataTaskListSyncManager { type Vtable = IUserDataTaskListSyncManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UserDataTaskListSyncManager { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UserDataTaskListSyncManager { const NAME: &'static str = "Windows.ApplicationModel.UserDataTasks.UserDataTaskListSyncManager"; } -::windows_core::imp::interface_hierarchy!(UserDataTaskListSyncManager, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UserDataTaskListSyncManager {} unsafe impl ::core::marker::Sync for UserDataTaskListSyncManager {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UserDataTaskManager(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UserDataTaskManager, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UserDataTaskManager { pub fn RequestStoreAsync(&self, accesstype: UserDataTaskStoreAccessType) -> ::windows_core::Result> { let this = self; @@ -840,19 +723,17 @@ impl ::windows_core::RuntimeType for UserDataTaskManager { } unsafe impl ::windows_core::Interface for UserDataTaskManager { type Vtable = IUserDataTaskManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UserDataTaskManager { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UserDataTaskManager { const NAME: &'static str = "Windows.ApplicationModel.UserDataTasks.UserDataTaskManager"; } -::windows_core::imp::interface_hierarchy!(UserDataTaskManager, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UserDataTaskManager {} unsafe impl ::core::marker::Sync for UserDataTaskManager {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UserDataTaskQueryOptions(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UserDataTaskQueryOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UserDataTaskQueryOptions { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -889,19 +770,17 @@ impl ::windows_core::RuntimeType for UserDataTaskQueryOptions { } unsafe impl ::windows_core::Interface for UserDataTaskQueryOptions { type Vtable = IUserDataTaskQueryOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UserDataTaskQueryOptions { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UserDataTaskQueryOptions { const NAME: &'static str = "Windows.ApplicationModel.UserDataTasks.UserDataTaskQueryOptions"; } -::windows_core::imp::interface_hierarchy!(UserDataTaskQueryOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UserDataTaskQueryOptions {} unsafe impl ::core::marker::Sync for UserDataTaskQueryOptions {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UserDataTaskReader(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UserDataTaskReader, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UserDataTaskReader { pub fn ReadBatchAsync(&self) -> ::windows_core::Result> { let this = self; @@ -916,19 +795,17 @@ impl ::windows_core::RuntimeType for UserDataTaskReader { } unsafe impl ::windows_core::Interface for UserDataTaskReader { type Vtable = IUserDataTaskReader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UserDataTaskReader { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UserDataTaskReader { const NAME: &'static str = "Windows.ApplicationModel.UserDataTasks.UserDataTaskReader"; } -::windows_core::imp::interface_hierarchy!(UserDataTaskReader, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UserDataTaskReader {} unsafe impl ::core::marker::Sync for UserDataTaskReader {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UserDataTaskRecurrenceProperties(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UserDataTaskRecurrenceProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UserDataTaskRecurrenceProperties { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -957,10 +834,10 @@ impl UserDataTaskRecurrenceProperties { } pub fn SetOccurrences(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetOccurrences)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetOccurrences)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn Until(&self) -> ::windows_core::Result> { let this = self; @@ -971,10 +848,10 @@ impl UserDataTaskRecurrenceProperties { } pub fn SetUntil(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetUntil)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetUntil)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn Interval(&self) -> ::windows_core::Result { let this = self; @@ -996,10 +873,10 @@ impl UserDataTaskRecurrenceProperties { } pub fn SetDaysOfWeek(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetDaysOfWeek)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetDaysOfWeek)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn WeekOfMonth(&self) -> ::windows_core::Result> { let this = self; @@ -1010,10 +887,10 @@ impl UserDataTaskRecurrenceProperties { } pub fn SetWeekOfMonth(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetWeekOfMonth)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetWeekOfMonth)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn Month(&self) -> ::windows_core::Result> { let this = self; @@ -1024,10 +901,10 @@ impl UserDataTaskRecurrenceProperties { } pub fn SetMonth(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetMonth)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetMonth)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn Day(&self) -> ::windows_core::Result> { let this = self; @@ -1038,10 +915,10 @@ impl UserDataTaskRecurrenceProperties { } pub fn SetDay(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetDay)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetDay)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } } impl ::windows_core::RuntimeType for UserDataTaskRecurrenceProperties { @@ -1049,19 +926,17 @@ impl ::windows_core::RuntimeType for UserDataTaskRecurrenceProperties { } unsafe impl ::windows_core::Interface for UserDataTaskRecurrenceProperties { type Vtable = IUserDataTaskRecurrenceProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UserDataTaskRecurrenceProperties { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UserDataTaskRecurrenceProperties { const NAME: &'static str = "Windows.ApplicationModel.UserDataTasks.UserDataTaskRecurrenceProperties"; } -::windows_core::imp::interface_hierarchy!(UserDataTaskRecurrenceProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UserDataTaskRecurrenceProperties {} unsafe impl ::core::marker::Sync for UserDataTaskRecurrenceProperties {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UserDataTaskRegenerationProperties(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UserDataTaskRegenerationProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UserDataTaskRegenerationProperties { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1090,10 +965,10 @@ impl UserDataTaskRegenerationProperties { } pub fn SetOccurrences(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetOccurrences)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetOccurrences)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn Until(&self) -> ::windows_core::Result> { let this = self; @@ -1104,10 +979,10 @@ impl UserDataTaskRegenerationProperties { } pub fn SetUntil(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetUntil)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetUntil)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn Interval(&self) -> ::windows_core::Result { let this = self; @@ -1126,19 +1001,17 @@ impl ::windows_core::RuntimeType for UserDataTaskRegenerationProperties { } unsafe impl ::windows_core::Interface for UserDataTaskRegenerationProperties { type Vtable = IUserDataTaskRegenerationProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UserDataTaskRegenerationProperties { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UserDataTaskRegenerationProperties { const NAME: &'static str = "Windows.ApplicationModel.UserDataTasks.UserDataTaskRegenerationProperties"; } -::windows_core::imp::interface_hierarchy!(UserDataTaskRegenerationProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UserDataTaskRegenerationProperties {} unsafe impl ::core::marker::Sync for UserDataTaskRegenerationProperties {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UserDataTaskStore(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UserDataTaskStore, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UserDataTaskStore { pub fn CreateListAsync(&self, name: &::windows_core::HSTRING) -> ::windows_core::Result> { let this = self; @@ -1176,14 +1049,11 @@ impl ::windows_core::RuntimeType for UserDataTaskStore { } unsafe impl ::windows_core::Interface for UserDataTaskStore { type Vtable = IUserDataTaskStore_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UserDataTaskStore { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UserDataTaskStore { const NAME: &'static str = "Windows.ApplicationModel.UserDataTasks.UserDataTaskStore"; } -::windows_core::imp::interface_hierarchy!(UserDataTaskStore, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UserDataTaskStore {} unsafe impl ::core::marker::Sync for UserDataTaskStore {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/ApplicationModel/VoiceCommands/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/VoiceCommands/mod.rs index 489d3fa339..bee343b7cb 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/VoiceCommands/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/VoiceCommands/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVoiceCommand(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVoiceCommand { - type Vtable = IVoiceCommand_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVoiceCommand { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x936f5273_ec82_42a6_a55c_d2d79ec6f920); -} +::windows_core::imp::com_interface!(IVoiceCommand, IVoiceCommand_Vtbl, 0x936f5273_ec82_42a6_a55c_d2d79ec6f920); #[repr(C)] #[doc(hidden)] pub struct IVoiceCommand_Vtbl { @@ -22,48 +13,21 @@ pub struct IVoiceCommand_Vtbl { #[cfg(not(feature = "Media_SpeechRecognition"))] SpeechRecognitionResult: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVoiceCommandCompletedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVoiceCommandCompletedEventArgs { - type Vtable = IVoiceCommandCompletedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVoiceCommandCompletedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc85e675d_fe42_432c_9907_09df9fcf64e8); -} +::windows_core::imp::com_interface!(IVoiceCommandCompletedEventArgs, IVoiceCommandCompletedEventArgs_Vtbl, 0xc85e675d_fe42_432c_9907_09df9fcf64e8); #[repr(C)] #[doc(hidden)] pub struct IVoiceCommandCompletedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Reason: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut VoiceCommandCompletionReason) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVoiceCommandConfirmationResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVoiceCommandConfirmationResult { - type Vtable = IVoiceCommandConfirmationResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVoiceCommandConfirmationResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa022593e_8221_4526_b083_840972262247); -} +::windows_core::imp::com_interface!(IVoiceCommandConfirmationResult, IVoiceCommandConfirmationResult_Vtbl, 0xa022593e_8221_4526_b083_840972262247); #[repr(C)] #[doc(hidden)] pub struct IVoiceCommandConfirmationResult_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Confirmed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVoiceCommandContentTile(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVoiceCommandContentTile { - type Vtable = IVoiceCommandContentTile_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVoiceCommandContentTile { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3eefe9f0_b8c7_4c76_a0de_1607895ee327); -} +::windows_core::imp::com_interface!(IVoiceCommandContentTile, IVoiceCommandContentTile_Vtbl, 0x3eefe9f0_b8c7_4c76_a0de_1607895ee327); #[repr(C)] #[doc(hidden)] pub struct IVoiceCommandContentTile_Vtbl { @@ -91,16 +55,7 @@ pub struct IVoiceCommandContentTile_Vtbl { pub ContentTileType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut VoiceCommandContentTileType) -> ::windows_core::HRESULT, pub SetContentTileType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: VoiceCommandContentTileType) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVoiceCommandDefinition(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVoiceCommandDefinition { - type Vtable = IVoiceCommandDefinition_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVoiceCommandDefinition { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7972aad0_0974_4979_984b_cb8959cd61ae); -} +::windows_core::imp::com_interface!(IVoiceCommandDefinition, IVoiceCommandDefinition_Vtbl, 0x7972aad0_0974_4979_984b_cb8959cd61ae); #[repr(C)] #[doc(hidden)] pub struct IVoiceCommandDefinition_Vtbl { @@ -112,16 +67,7 @@ pub struct IVoiceCommandDefinition_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] SetPhraseListAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVoiceCommandDefinitionManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVoiceCommandDefinitionManagerStatics { - type Vtable = IVoiceCommandDefinitionManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVoiceCommandDefinitionManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8fe7a69e_067e_4f16_a18c_5b17e9499940); -} +::windows_core::imp::com_interface!(IVoiceCommandDefinitionManagerStatics, IVoiceCommandDefinitionManagerStatics_Vtbl, 0x8fe7a69e_067e_4f16_a18c_5b17e9499940); #[repr(C)] #[doc(hidden)] pub struct IVoiceCommandDefinitionManagerStatics_Vtbl { @@ -135,32 +81,14 @@ pub struct IVoiceCommandDefinitionManagerStatics_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] InstalledCommandDefinitions: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVoiceCommandDisambiguationResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVoiceCommandDisambiguationResult { - type Vtable = IVoiceCommandDisambiguationResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVoiceCommandDisambiguationResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xecc68cfe_c9ac_45df_a8ea_feea08ef9c5e); -} +::windows_core::imp::com_interface!(IVoiceCommandDisambiguationResult, IVoiceCommandDisambiguationResult_Vtbl, 0xecc68cfe_c9ac_45df_a8ea_feea08ef9c5e); #[repr(C)] #[doc(hidden)] pub struct IVoiceCommandDisambiguationResult_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub SelectedItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVoiceCommandResponse(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVoiceCommandResponse { - type Vtable = IVoiceCommandResponse_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVoiceCommandResponse { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0284b30e_8a3b_4cc4_a6a1_cad5be2716b5); -} +::windows_core::imp::com_interface!(IVoiceCommandResponse, IVoiceCommandResponse_Vtbl, 0x0284b30e_8a3b_4cc4_a6a1_cad5be2716b5); #[repr(C)] #[doc(hidden)] pub struct IVoiceCommandResponse_Vtbl { @@ -176,16 +104,7 @@ pub struct IVoiceCommandResponse_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] VoiceCommandContentTiles: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVoiceCommandResponseStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVoiceCommandResponseStatics { - type Vtable = IVoiceCommandResponseStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVoiceCommandResponseStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2932f813_0d3b_49f2_96dd_625019bd3b5d); -} +::windows_core::imp::com_interface!(IVoiceCommandResponseStatics, IVoiceCommandResponseStatics_Vtbl, 0x2932f813_0d3b_49f2_96dd_625019bd3b5d); #[repr(C)] #[doc(hidden)] pub struct IVoiceCommandResponseStatics_Vtbl { @@ -202,16 +121,7 @@ pub struct IVoiceCommandResponseStatics_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] CreateResponseForPromptWithTiles: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVoiceCommandServiceConnection(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVoiceCommandServiceConnection { - type Vtable = IVoiceCommandServiceConnection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVoiceCommandServiceConnection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd894bb9f_21da_44a4_98a2_fb131920a9cc); -} +::windows_core::imp::com_interface!(IVoiceCommandServiceConnection, IVoiceCommandServiceConnection_Vtbl, 0xd894bb9f_21da_44a4_98a2_fb131920a9cc); #[repr(C)] #[doc(hidden)] pub struct IVoiceCommandServiceConnection_Vtbl { @@ -230,16 +140,7 @@ pub struct IVoiceCommandServiceConnection_Vtbl { pub VoiceCommandCompleted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveVoiceCommandCompleted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVoiceCommandServiceConnectionStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVoiceCommandServiceConnectionStatics { - type Vtable = IVoiceCommandServiceConnectionStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVoiceCommandServiceConnectionStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x370ebffb_2d34_42df_8770_074d0f334697); -} +::windows_core::imp::com_interface!(IVoiceCommandServiceConnectionStatics, IVoiceCommandServiceConnectionStatics_Vtbl, 0x370ebffb_2d34_42df_8770_074d0f334697); #[repr(C)] #[doc(hidden)] pub struct IVoiceCommandServiceConnectionStatics_Vtbl { @@ -249,16 +150,7 @@ pub struct IVoiceCommandServiceConnectionStatics_Vtbl { #[cfg(not(feature = "ApplicationModel_AppService"))] FromAppServiceTriggerDetails: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVoiceCommandUserMessage(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVoiceCommandUserMessage { - type Vtable = IVoiceCommandUserMessage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVoiceCommandUserMessage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x674eb3c0_44f6_4f07_b979_4c723fc08597); -} +::windows_core::imp::com_interface!(IVoiceCommandUserMessage, IVoiceCommandUserMessage_Vtbl, 0x674eb3c0_44f6_4f07_b979_4c723fc08597); #[repr(C)] #[doc(hidden)] pub struct IVoiceCommandUserMessage_Vtbl { @@ -271,6 +163,7 @@ pub struct IVoiceCommandUserMessage_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VoiceCommand(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VoiceCommand, ::windows_core::IUnknown, ::windows_core::IInspectable); impl VoiceCommand { pub fn CommandName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -303,19 +196,17 @@ impl ::windows_core::RuntimeType for VoiceCommand { } unsafe impl ::windows_core::Interface for VoiceCommand { type Vtable = IVoiceCommand_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VoiceCommand { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VoiceCommand { const NAME: &'static str = "Windows.ApplicationModel.VoiceCommands.VoiceCommand"; } -::windows_core::imp::interface_hierarchy!(VoiceCommand, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for VoiceCommand {} unsafe impl ::core::marker::Sync for VoiceCommand {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VoiceCommandCompletedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VoiceCommandCompletedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl VoiceCommandCompletedEventArgs { pub fn Reason(&self) -> ::windows_core::Result { let this = self; @@ -330,19 +221,17 @@ impl ::windows_core::RuntimeType for VoiceCommandCompletedEventArgs { } unsafe impl ::windows_core::Interface for VoiceCommandCompletedEventArgs { type Vtable = IVoiceCommandCompletedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VoiceCommandCompletedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VoiceCommandCompletedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.VoiceCommands.VoiceCommandCompletedEventArgs"; } -::windows_core::imp::interface_hierarchy!(VoiceCommandCompletedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for VoiceCommandCompletedEventArgs {} unsafe impl ::core::marker::Sync for VoiceCommandCompletedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VoiceCommandConfirmationResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VoiceCommandConfirmationResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl VoiceCommandConfirmationResult { pub fn Confirmed(&self) -> ::windows_core::Result { let this = self; @@ -357,19 +246,17 @@ impl ::windows_core::RuntimeType for VoiceCommandConfirmationResult { } unsafe impl ::windows_core::Interface for VoiceCommandConfirmationResult { type Vtable = IVoiceCommandConfirmationResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VoiceCommandConfirmationResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VoiceCommandConfirmationResult { const NAME: &'static str = "Windows.ApplicationModel.VoiceCommands.VoiceCommandConfirmationResult"; } -::windows_core::imp::interface_hierarchy!(VoiceCommandConfirmationResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for VoiceCommandConfirmationResult {} unsafe impl ::core::marker::Sync for VoiceCommandConfirmationResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VoiceCommandContentTile(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VoiceCommandContentTile, ::windows_core::IUnknown, ::windows_core::IInspectable); impl VoiceCommandContentTile { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -435,10 +322,10 @@ impl VoiceCommandContentTile { #[cfg(feature = "Storage")] pub fn SetImage(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetImage)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetImage)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn AppContext(&self) -> ::windows_core::Result<::windows_core::IInspectable> { let this = self; @@ -482,19 +369,17 @@ impl ::windows_core::RuntimeType for VoiceCommandContentTile { } unsafe impl ::windows_core::Interface for VoiceCommandContentTile { type Vtable = IVoiceCommandContentTile_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VoiceCommandContentTile { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VoiceCommandContentTile { const NAME: &'static str = "Windows.ApplicationModel.VoiceCommands.VoiceCommandContentTile"; } -::windows_core::imp::interface_hierarchy!(VoiceCommandContentTile, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for VoiceCommandContentTile {} unsafe impl ::core::marker::Sync for VoiceCommandContentTile {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VoiceCommandDefinition(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VoiceCommandDefinition, ::windows_core::IUnknown, ::windows_core::IInspectable); impl VoiceCommandDefinition { pub fn Language(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -514,12 +399,12 @@ impl VoiceCommandDefinition { #[cfg(feature = "Foundation_Collections")] pub fn SetPhraseListAsync(&self, phraselistname: &::windows_core::HSTRING, phraselist: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SetPhraseListAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(phraselistname), phraselist.into_param().abi(), &mut result__).from_abi(result__) } } } @@ -528,14 +413,11 @@ impl ::windows_core::RuntimeType for VoiceCommandDefinition { } unsafe impl ::windows_core::Interface for VoiceCommandDefinition { type Vtable = IVoiceCommandDefinition_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VoiceCommandDefinition { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VoiceCommandDefinition { const NAME: &'static str = "Windows.ApplicationModel.VoiceCommands.VoiceCommandDefinition"; } -::windows_core::imp::interface_hierarchy!(VoiceCommandDefinition, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for VoiceCommandDefinition {} unsafe impl ::core::marker::Sync for VoiceCommandDefinition {} pub struct VoiceCommandDefinitionManager; @@ -571,6 +453,7 @@ impl ::windows_core::RuntimeName for VoiceCommandDefinitionManager { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VoiceCommandDisambiguationResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VoiceCommandDisambiguationResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl VoiceCommandDisambiguationResult { pub fn SelectedItem(&self) -> ::windows_core::Result { let this = self; @@ -585,19 +468,17 @@ impl ::windows_core::RuntimeType for VoiceCommandDisambiguationResult { } unsafe impl ::windows_core::Interface for VoiceCommandDisambiguationResult { type Vtable = IVoiceCommandDisambiguationResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VoiceCommandDisambiguationResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VoiceCommandDisambiguationResult { const NAME: &'static str = "Windows.ApplicationModel.VoiceCommands.VoiceCommandDisambiguationResult"; } -::windows_core::imp::interface_hierarchy!(VoiceCommandDisambiguationResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for VoiceCommandDisambiguationResult {} unsafe impl ::core::marker::Sync for VoiceCommandDisambiguationResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VoiceCommandResponse(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VoiceCommandResponse, ::windows_core::IUnknown, ::windows_core::IInspectable); impl VoiceCommandResponse { pub fn Message(&self) -> ::windows_core::Result { let this = self; @@ -667,11 +548,11 @@ impl VoiceCommandResponse { pub fn CreateResponseWithTiles(message: P0, contenttiles: P1) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam>, + P1: ::windows_core::IntoParam>, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateResponseWithTiles)(::windows_core::Interface::as_raw(this), message.into_param().abi(), contenttiles.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn CreateResponseForPrompt(message: P0, repeatmessage: P1) -> ::windows_core::Result @@ -690,11 +571,11 @@ impl VoiceCommandResponse { where P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, - P2: ::windows_core::TryIntoParam>, + P2: ::windows_core::IntoParam>, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } #[doc(hidden)] @@ -708,19 +589,17 @@ impl ::windows_core::RuntimeType for VoiceCommandResponse { } unsafe impl ::windows_core::Interface for VoiceCommandResponse { type Vtable = IVoiceCommandResponse_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VoiceCommandResponse { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VoiceCommandResponse { const NAME: &'static str = "Windows.ApplicationModel.VoiceCommands.VoiceCommandResponse"; } -::windows_core::imp::interface_hierarchy!(VoiceCommandResponse, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for VoiceCommandResponse {} unsafe impl ::core::marker::Sync for VoiceCommandResponse {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VoiceCommandServiceConnection(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VoiceCommandServiceConnection, ::windows_core::IUnknown, ::windows_core::IInspectable); impl VoiceCommandServiceConnection { pub fn GetVoiceCommandAsync(&self) -> ::windows_core::Result> { let this = self; @@ -834,19 +713,17 @@ impl ::windows_core::RuntimeType for VoiceCommandServiceConnection { } unsafe impl ::windows_core::Interface for VoiceCommandServiceConnection { type Vtable = IVoiceCommandServiceConnection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VoiceCommandServiceConnection { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VoiceCommandServiceConnection { const NAME: &'static str = "Windows.ApplicationModel.VoiceCommands.VoiceCommandServiceConnection"; } -::windows_core::imp::interface_hierarchy!(VoiceCommandServiceConnection, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for VoiceCommandServiceConnection {} unsafe impl ::core::marker::Sync for VoiceCommandServiceConnection {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VoiceCommandUserMessage(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VoiceCommandUserMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); impl VoiceCommandUserMessage { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -883,14 +760,11 @@ impl ::windows_core::RuntimeType for VoiceCommandUserMessage { } unsafe impl ::windows_core::Interface for VoiceCommandUserMessage { type Vtable = IVoiceCommandUserMessage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VoiceCommandUserMessage { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VoiceCommandUserMessage { const NAME: &'static str = "Windows.ApplicationModel.VoiceCommands.VoiceCommandUserMessage"; } -::windows_core::imp::interface_hierarchy!(VoiceCommandUserMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for VoiceCommandUserMessage {} unsafe impl ::core::marker::Sync for VoiceCommandUserMessage {} #[repr(transparent)] 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 feed0e3b12..d5a80b4fe7 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Wallet/System/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Wallet/System/mod.rs @@ -1,16 +1,10 @@ -#[doc(hidden)] -#[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWalletItemSystemStore(::windows_core::IUnknown); #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for IWalletItemSystemStore { - type Vtable = IWalletItemSystemStore_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for IWalletItemSystemStore { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x522e2bff_96a2_4a17_8d19_fe1d9f837561); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + IWalletItemSystemStore, + IWalletItemSystemStore_Vtbl, + 0x522e2bff_96a2_4a17_8d19_fe1d9f837561 +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -37,19 +31,13 @@ pub struct IWalletItemSystemStore_Vtbl { #[cfg(not(feature = "deprecated"))] LaunchAppForItemAsync: usize, } -#[doc(hidden)] -#[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWalletItemSystemStore2(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for IWalletItemSystemStore2 { - type Vtable = IWalletItemSystemStore2_Vtbl; -} #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for IWalletItemSystemStore2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf98d3a4e_be00_4fdd_9734_6c113c1ac1cb); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + IWalletItemSystemStore2, + IWalletItemSystemStore2_Vtbl, + 0xf98d3a4e_be00_4fdd_9734_6c113c1ac1cb +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -64,19 +52,13 @@ pub struct IWalletItemSystemStore2_Vtbl { #[cfg(not(feature = "deprecated"))] RemoveItemsChanged: usize, } -#[doc(hidden)] -#[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWalletManagerSystemStatics(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for IWalletManagerSystemStatics { - type Vtable = IWalletManagerSystemStatics_Vtbl; -} #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for IWalletManagerSystemStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbee8eb89_2634_4b9a_8b23_ee8903c91fe0); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + IWalletManagerSystemStatics, + IWalletManagerSystemStatics_Vtbl, + 0xbee8eb89_2634_4b9a_8b23_ee8903c91fe0 +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -93,6 +75,8 @@ pub struct IWalletManagerSystemStatics_Vtbl { #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WalletItemSystemStore(::windows_core::IUnknown); #[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(WalletItemSystemStore, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "deprecated")] impl WalletItemSystemStore { #[doc = "Required features: `\"Foundation_Collections\"`, `\"deprecated\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] @@ -119,12 +103,12 @@ impl WalletItemSystemStore { #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] pub fn ImportItemAsync(&self, stream: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).ImportItemAsync)(::windows_core::Interface::as_raw(this), stream.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ImportItemAsync)(::windows_core::Interface::as_raw(this), stream.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"deprecated\"`"] @@ -157,7 +141,7 @@ impl WalletItemSystemStore { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -166,7 +150,7 @@ impl WalletItemSystemStore { #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] pub fn RemoveItemsChanged(&self, cookie: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveItemsChanged)(::windows_core::Interface::as_raw(this), cookie).ok() } } } @@ -177,18 +161,13 @@ impl ::windows_core::RuntimeType for WalletItemSystemStore { #[cfg(feature = "deprecated")] unsafe impl ::windows_core::Interface for WalletItemSystemStore { type Vtable = IWalletItemSystemStore_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for WalletItemSystemStore { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "deprecated")] impl ::windows_core::RuntimeName for WalletItemSystemStore { const NAME: &'static str = "Windows.ApplicationModel.Wallet.System.WalletItemSystemStore"; } #[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(WalletItemSystemStore, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] unsafe impl ::core::marker::Send for WalletItemSystemStore {} #[cfg(feature = "deprecated")] unsafe impl ::core::marker::Sync for WalletItemSystemStore {} diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Wallet/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Wallet/mod.rs index 558d8c1517..e690f997a7 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Wallet/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Wallet/mod.rs @@ -1,19 +1,13 @@ #[cfg(feature = "ApplicationModel_Wallet_System")] #[doc = "Required features: `\"ApplicationModel_Wallet_System\"`"] pub mod System; -#[doc(hidden)] -#[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWalletBarcode(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for IWalletBarcode { - type Vtable = IWalletBarcode_Vtbl; -} #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for IWalletBarcode { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4f857b29_de80_4ea4_a1cd_81cd084dac27); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + IWalletBarcode, + IWalletBarcode_Vtbl, + 0x4f857b29_de80_4ea4_a1cd_81cd084dac27 +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -32,19 +26,13 @@ pub struct IWalletBarcode_Vtbl { #[cfg(not(all(feature = "Storage_Streams", feature = "deprecated")))] GetImageAsync: usize, } -#[doc(hidden)] -#[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWalletBarcodeFactory(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for IWalletBarcodeFactory { - type Vtable = IWalletBarcodeFactory_Vtbl; -} #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for IWalletBarcodeFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x30117161_ed9c_469e_bbfd_306c95ea7108); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + IWalletBarcodeFactory, + IWalletBarcodeFactory_Vtbl, + 0x30117161_ed9c_469e_bbfd_306c95ea7108 +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -59,19 +47,13 @@ pub struct IWalletBarcodeFactory_Vtbl { #[cfg(not(all(feature = "Storage_Streams", feature = "deprecated")))] CreateCustomWalletBarcode: usize, } -#[doc(hidden)] #[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWalletItem(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for IWalletItem { - type Vtable = IWalletItem_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for IWalletItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x20b54be8_118d_4ec4_996c_b963e7bd3e74); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + IWalletItem, + IWalletItem_Vtbl, + 0x20b54be8_118d_4ec4_996c_b963e7bd3e74 +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -286,19 +268,13 @@ pub struct IWalletItem_Vtbl { #[cfg(not(all(feature = "Foundation_Collections", feature = "deprecated")))] Verbs: usize, } -#[doc(hidden)] -#[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWalletItemCustomProperty(::windows_core::IUnknown); #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for IWalletItemCustomProperty { - type Vtable = IWalletItemCustomProperty_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for IWalletItemCustomProperty { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb94b40f3_fa00_40fd_98dc_9de46697f1e7); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + IWalletItemCustomProperty, + IWalletItemCustomProperty_Vtbl, + 0xb94b40f3_fa00_40fd_98dc_9de46697f1e7 +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -345,19 +321,13 @@ pub struct IWalletItemCustomProperty_Vtbl { #[cfg(not(feature = "deprecated"))] SetSummaryViewPosition: usize, } -#[doc(hidden)] -#[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWalletItemCustomPropertyFactory(::windows_core::IUnknown); #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for IWalletItemCustomPropertyFactory { - type Vtable = IWalletItemCustomPropertyFactory_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for IWalletItemCustomPropertyFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd0046a44_61a1_41aa_b259_a5610ab5d575); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + IWalletItemCustomPropertyFactory, + IWalletItemCustomPropertyFactory_Vtbl, + 0xd0046a44_61a1_41aa_b259_a5610ab5d575 +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -368,19 +338,13 @@ pub struct IWalletItemCustomPropertyFactory_Vtbl { #[cfg(not(feature = "deprecated"))] CreateWalletItemCustomProperty: usize, } -#[doc(hidden)] -#[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWalletItemFactory(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for IWalletItemFactory { - type Vtable = IWalletItemFactory_Vtbl; -} #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for IWalletItemFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x53e27470_4f0b_4a3e_99e5_0bbb1eab38d4); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + IWalletItemFactory, + IWalletItemFactory_Vtbl, + 0x53e27470_4f0b_4a3e_99e5_0bbb1eab38d4 +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -391,19 +355,13 @@ pub struct IWalletItemFactory_Vtbl { #[cfg(not(feature = "deprecated"))] CreateWalletItem: usize, } -#[doc(hidden)] -#[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWalletItemStore(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for IWalletItemStore { - type Vtable = IWalletItemStore_Vtbl; -} #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for IWalletItemStore { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7160484b_6d49_48f8_91a9_40a1d0f13ef4); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + IWalletItemStore, + IWalletItemStore_Vtbl, + 0x7160484b_6d49_48f8_91a9_40a1d0f13ef4 +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -450,19 +408,13 @@ pub struct IWalletItemStore_Vtbl { #[cfg(not(feature = "deprecated"))] UpdateAsync: usize, } -#[doc(hidden)] -#[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWalletItemStore2(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for IWalletItemStore2 { - type Vtable = IWalletItemStore2_Vtbl; -} #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for IWalletItemStore2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x65e682f0_7009_4a15_bd54_4fff379bffe2); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + IWalletItemStore2, + IWalletItemStore2_Vtbl, + 0x65e682f0_7009_4a15_bd54_4fff379bffe2 +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -477,19 +429,13 @@ pub struct IWalletItemStore2_Vtbl { #[cfg(not(feature = "deprecated"))] RemoveItemsChanged: usize, } -#[doc(hidden)] #[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWalletManagerStatics(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for IWalletManagerStatics { - type Vtable = IWalletManagerStatics_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for IWalletManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5111d6b8_c9a4_4c64_b4dd_e1e548001c0d); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + IWalletManagerStatics, + IWalletManagerStatics_Vtbl, + 0x5111d6b8_c9a4_4c64_b4dd_e1e548001c0d +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -500,19 +446,13 @@ pub struct IWalletManagerStatics_Vtbl { #[cfg(not(feature = "deprecated"))] RequestStoreAsync: usize, } -#[doc(hidden)] #[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWalletRelevantLocation(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for IWalletRelevantLocation { - type Vtable = IWalletRelevantLocation_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for IWalletRelevantLocation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9fd8782a_e3f9_4de1_bab3_bb192e46b3f3); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + IWalletRelevantLocation, + IWalletRelevantLocation_Vtbl, + 0x9fd8782a_e3f9_4de1_bab3_bb192e46b3f3 +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -535,19 +475,13 @@ pub struct IWalletRelevantLocation_Vtbl { #[cfg(not(feature = "deprecated"))] SetDisplayMessage: usize, } -#[doc(hidden)] #[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWalletTransaction(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for IWalletTransaction { - type Vtable = IWalletTransaction_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for IWalletTransaction { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x40e1e940_2606_4519_81cb_bff1c60d1f79); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + IWalletTransaction, + IWalletTransaction_Vtbl, + 0x40e1e940_2606_4519_81cb_bff1c60d1f79 +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -602,19 +536,13 @@ pub struct IWalletTransaction_Vtbl { #[cfg(not(feature = "deprecated"))] SetIsLaunchable: usize, } -#[doc(hidden)] -#[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWalletVerb(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for IWalletVerb { - type Vtable = IWalletVerb_Vtbl; -} #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for IWalletVerb { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x17b826d6_e3c1_4c74_8a94_217aadbc4884); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + IWalletVerb, + IWalletVerb_Vtbl, + 0x17b826d6_e3c1_4c74_8a94_217aadbc4884 +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -629,19 +557,13 @@ pub struct IWalletVerb_Vtbl { #[cfg(not(feature = "deprecated"))] SetName: usize, } -#[doc(hidden)] #[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWalletVerbFactory(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for IWalletVerbFactory { - type Vtable = IWalletVerbFactory_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for IWalletVerbFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x76012771_be58_4d5e_83ed_58b1669c7ad9); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + IWalletVerbFactory, + IWalletVerbFactory_Vtbl, + 0x76012771_be58_4d5e_83ed_58b1669c7ad9 +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -658,6 +580,8 @@ pub struct IWalletVerbFactory_Vtbl { #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WalletBarcode(::windows_core::IUnknown); #[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(WalletBarcode, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "deprecated")] impl WalletBarcode { #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] @@ -698,11 +622,11 @@ impl WalletBarcode { #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] pub fn CreateCustomWalletBarcode(streamtobarcodeimage: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IWalletBarcodeFactory(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateCustomWalletBarcode)(::windows_core::Interface::as_raw(this), streamtobarcodeimage.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateCustomWalletBarcode)(::windows_core::Interface::as_raw(this), streamtobarcodeimage.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -719,18 +643,13 @@ impl ::windows_core::RuntimeType for WalletBarcode { #[cfg(feature = "deprecated")] unsafe impl ::windows_core::Interface for WalletBarcode { type Vtable = IWalletBarcode_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for WalletBarcode { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "deprecated")] impl ::windows_core::RuntimeName for WalletBarcode { const NAME: &'static str = "Windows.ApplicationModel.Wallet.WalletBarcode"; } #[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(WalletBarcode, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] unsafe impl ::core::marker::Send for WalletBarcode {} #[cfg(feature = "deprecated")] unsafe impl ::core::marker::Sync for WalletBarcode {} @@ -740,6 +659,8 @@ unsafe impl ::core::marker::Sync for WalletBarcode {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WalletItem(::windows_core::IUnknown); #[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(WalletItem, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "deprecated")] impl WalletItem { #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] @@ -808,10 +729,10 @@ impl WalletItem { #[cfg(feature = "deprecated")] pub fn SetLastUpdated(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetLastUpdated)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetLastUpdated)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] @@ -853,10 +774,10 @@ impl WalletItem { #[cfg(feature = "deprecated")] pub fn SetExpirationDate(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetExpirationDate)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetExpirationDate)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } #[doc = "Required features: `\"Storage_Streams\"`, `\"deprecated\"`"] #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] @@ -871,10 +792,10 @@ impl WalletItem { #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] pub fn SetLogo159x159(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetLogo159x159)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetLogo159x159)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } #[doc = "Required features: `\"Storage_Streams\"`, `\"deprecated\"`"] #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] @@ -889,10 +810,10 @@ impl WalletItem { #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] pub fn SetLogo336x336(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetLogo336x336)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetLogo336x336)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } #[doc = "Required features: `\"Storage_Streams\"`, `\"deprecated\"`"] #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] @@ -907,10 +828,10 @@ impl WalletItem { #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] pub fn SetLogo99x99(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetLogo99x99)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetLogo99x99)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] @@ -1030,10 +951,10 @@ impl WalletItem { #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] pub fn SetHeaderBackgroundImage(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetHeaderBackgroundImage)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetHeaderBackgroundImage)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } #[doc = "Required features: `\"Storage_Streams\"`, `\"deprecated\"`"] #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] @@ -1048,10 +969,10 @@ impl WalletItem { #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] pub fn SetBodyBackgroundImage(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetBodyBackgroundImage)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetBodyBackgroundImage)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } #[doc = "Required features: `\"Storage_Streams\"`, `\"deprecated\"`"] #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] @@ -1066,10 +987,10 @@ impl WalletItem { #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] pub fn SetLogoImage(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetLogoImage)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetLogoImage)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } #[doc = "Required features: `\"Storage_Streams\"`, `\"deprecated\"`"] #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] @@ -1084,10 +1005,10 @@ impl WalletItem { #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] pub fn SetPromotionalImage(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetPromotionalImage)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetPromotionalImage)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] @@ -1102,10 +1023,10 @@ impl WalletItem { #[cfg(feature = "deprecated")] pub fn SetRelevantDate(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetRelevantDate)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetRelevantDate)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] @@ -1195,18 +1116,13 @@ impl ::windows_core::RuntimeType for WalletItem { #[cfg(feature = "deprecated")] unsafe impl ::windows_core::Interface for WalletItem { type Vtable = IWalletItem_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for WalletItem { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "deprecated")] impl ::windows_core::RuntimeName for WalletItem { const NAME: &'static str = "Windows.ApplicationModel.Wallet.WalletItem"; } #[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(WalletItem, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] unsafe impl ::core::marker::Send for WalletItem {} #[cfg(feature = "deprecated")] unsafe impl ::core::marker::Sync for WalletItem {} @@ -1216,6 +1132,8 @@ unsafe impl ::core::marker::Sync for WalletItem {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WalletItemCustomProperty(::windows_core::IUnknown); #[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(WalletItemCustomProperty, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "deprecated")] impl WalletItemCustomProperty { #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] @@ -1314,18 +1232,13 @@ impl ::windows_core::RuntimeType for WalletItemCustomProperty { #[cfg(feature = "deprecated")] unsafe impl ::windows_core::Interface for WalletItemCustomProperty { type Vtable = IWalletItemCustomProperty_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for WalletItemCustomProperty { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "deprecated")] impl ::windows_core::RuntimeName for WalletItemCustomProperty { const NAME: &'static str = "Windows.ApplicationModel.Wallet.WalletItemCustomProperty"; } #[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(WalletItemCustomProperty, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] unsafe impl ::core::marker::Send for WalletItemCustomProperty {} #[cfg(feature = "deprecated")] unsafe impl ::core::marker::Sync for WalletItemCustomProperty {} @@ -1335,6 +1248,8 @@ unsafe impl ::core::marker::Sync for WalletItemCustomProperty {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WalletItemStore(::windows_core::IUnknown); #[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(WalletItemStore, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "deprecated")] impl WalletItemStore { #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] @@ -1388,12 +1303,12 @@ impl WalletItemStore { #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] pub fn ImportItemAsync(&self, stream: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).ImportItemAsync)(::windows_core::Interface::as_raw(this), stream.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ImportItemAsync)(::windows_core::Interface::as_raw(this), stream.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"deprecated\"`"] @@ -1443,18 +1358,13 @@ impl ::windows_core::RuntimeType for WalletItemStore { #[cfg(feature = "deprecated")] unsafe impl ::windows_core::Interface for WalletItemStore { type Vtable = IWalletItemStore_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for WalletItemStore { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "deprecated")] impl ::windows_core::RuntimeName for WalletItemStore { const NAME: &'static str = "Windows.ApplicationModel.Wallet.WalletItemStore"; } #[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(WalletItemStore, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] unsafe impl ::core::marker::Send for WalletItemStore {} #[cfg(feature = "deprecated")] unsafe impl ::core::marker::Sync for WalletItemStore {} @@ -1488,6 +1398,8 @@ impl ::windows_core::RuntimeName for WalletManager { #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WalletRelevantLocation(::windows_core::IUnknown); #[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(WalletRelevantLocation, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "deprecated")] impl WalletRelevantLocation { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1534,18 +1446,13 @@ impl ::windows_core::RuntimeType for WalletRelevantLocation { #[cfg(feature = "deprecated")] unsafe impl ::windows_core::Interface for WalletRelevantLocation { type Vtable = IWalletRelevantLocation_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for WalletRelevantLocation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "deprecated")] impl ::windows_core::RuntimeName for WalletRelevantLocation { const NAME: &'static str = "Windows.ApplicationModel.Wallet.WalletRelevantLocation"; } #[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(WalletRelevantLocation, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] unsafe impl ::core::marker::Send for WalletRelevantLocation {} #[cfg(feature = "deprecated")] unsafe impl ::core::marker::Sync for WalletRelevantLocation {} @@ -1555,6 +1462,8 @@ unsafe impl ::core::marker::Sync for WalletRelevantLocation {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WalletTransaction(::windows_core::IUnknown); #[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(WalletTransaction, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "deprecated")] impl WalletTransaction { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1636,10 +1545,10 @@ impl WalletTransaction { #[cfg(feature = "deprecated")] pub fn SetTransactionDate(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetTransactionDate)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetTransactionDate)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] @@ -1664,18 +1573,13 @@ impl ::windows_core::RuntimeType for WalletTransaction { #[cfg(feature = "deprecated")] unsafe impl ::windows_core::Interface for WalletTransaction { type Vtable = IWalletTransaction_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for WalletTransaction { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "deprecated")] impl ::windows_core::RuntimeName for WalletTransaction { const NAME: &'static str = "Windows.ApplicationModel.Wallet.WalletTransaction"; } #[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(WalletTransaction, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] unsafe impl ::core::marker::Send for WalletTransaction {} #[cfg(feature = "deprecated")] unsafe impl ::core::marker::Sync for WalletTransaction {} @@ -1685,6 +1589,8 @@ unsafe impl ::core::marker::Sync for WalletTransaction {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WalletVerb(::windows_core::IUnknown); #[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(WalletVerb, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "deprecated")] impl WalletVerb { #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] @@ -1723,18 +1629,13 @@ impl ::windows_core::RuntimeType for WalletVerb { #[cfg(feature = "deprecated")] unsafe impl ::windows_core::Interface for WalletVerb { type Vtable = IWalletVerb_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for WalletVerb { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "deprecated")] impl ::windows_core::RuntimeName for WalletVerb { const NAME: &'static str = "Windows.ApplicationModel.Wallet.WalletVerb"; } #[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(WalletVerb, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] unsafe impl ::core::marker::Send for WalletVerb {} #[cfg(feature = "deprecated")] unsafe impl ::core::marker::Sync for WalletVerb {} diff --git a/crates/libs/windows/src/Windows/ApplicationModel/impl.rs b/crates/libs/windows/src/Windows/ApplicationModel/impl.rs index 20f8841922..0775d4069a 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/impl.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/impl.rs @@ -24,7 +24,7 @@ impl IEnteredBackgroundEventArgs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ILeavingBackgroundEventArgs_Impl: Sized { @@ -53,7 +53,7 @@ impl ILeavingBackgroundEventArgs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPackageCatalogStatics2_Impl: Sized { @@ -82,7 +82,7 @@ impl IPackageCatalogStatics2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISuspendingDeferral_Impl: Sized { @@ -101,7 +101,7 @@ impl ISuspendingDeferral_Vtbl { Self { base__: ::windows_core::IInspectable_Vtbl::new::(), Complete: Complete:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISuspendingEventArgs_Impl: Sized { @@ -130,7 +130,7 @@ impl ISuspendingEventArgs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISuspendingOperation_Impl: Sized { @@ -172,6 +172,6 @@ impl ISuspendingOperation_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/ApplicationModel/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/mod.rs index 7c96d11710..07c8bdf531 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/mod.rs @@ -76,16 +76,7 @@ pub mod VoiceCommands; #[cfg(feature = "ApplicationModel_Wallet")] #[doc = "Required features: `\"ApplicationModel_Wallet\"`"] pub mod Wallet; -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppDisplayInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppDisplayInfo { - type Vtable = IAppDisplayInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppDisplayInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1aeb1103_e4d4_41aa_a4f6_c4a276e79eac); -} +::windows_core::imp::com_interface!(IAppDisplayInfo, IAppDisplayInfo_Vtbl, 0x1aeb1103_e4d4_41aa_a4f6_c4a276e79eac); #[repr(C)] #[doc(hidden)] pub struct IAppDisplayInfo_Vtbl { @@ -97,16 +88,7 @@ pub struct IAppDisplayInfo_Vtbl { #[cfg(not(feature = "Storage_Streams"))] GetLogo: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppInfo { - type Vtable = IAppInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcf7f59b3_6a09_4de8_a6c0_5792d56880d1); -} +::windows_core::imp::com_interface!(IAppInfo, IAppInfo_Vtbl, 0xcf7f59b3_6a09_4de8_a6c0_5792d56880d1); #[repr(C)] #[doc(hidden)] pub struct IAppInfo_Vtbl { @@ -116,64 +98,28 @@ pub struct IAppInfo_Vtbl { pub DisplayInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub PackageFamilyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppInfo2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppInfo2 { - type Vtable = IAppInfo2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppInfo2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbe4b1f5a_2098_431b_bd25_b30878748d47); -} +::windows_core::imp::com_interface!(IAppInfo2, IAppInfo2_Vtbl, 0xbe4b1f5a_2098_431b_bd25_b30878748d47); #[repr(C)] #[doc(hidden)] pub struct IAppInfo2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Package: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppInfo3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppInfo3 { - type Vtable = IAppInfo3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppInfo3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x09a78e46_93a4_46de_9397_0843b57115ea); -} +::windows_core::imp::com_interface!(IAppInfo3, IAppInfo3_Vtbl, 0x09a78e46_93a4_46de_9397_0843b57115ea); #[repr(C)] #[doc(hidden)] pub struct IAppInfo3_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ExecutionContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut AppExecutionContext) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppInfo4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppInfo4 { - type Vtable = IAppInfo4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppInfo4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2f34bdeb_1609_4554_9f33_12e1e803e0d4); -} +::windows_core::imp::com_interface!(IAppInfo4, IAppInfo4_Vtbl, 0x2f34bdeb_1609_4554_9f33_12e1e803e0d4); #[repr(C)] #[doc(hidden)] pub struct IAppInfo4_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub SupportedFileExtensions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result_size__: *mut u32, result__: *mut *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppInfoStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppInfoStatics { - type Vtable = IAppInfoStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppInfoStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcf1f782a_e48b_4f0c_9b0b_79c3f8957dd7); -} +::windows_core::imp::com_interface!(IAppInfoStatics, IAppInfoStatics_Vtbl, 0xcf1f782a_e48b_4f0c_9b0b_79c3f8957dd7); #[repr(C)] #[doc(hidden)] pub struct IAppInfoStatics_Vtbl { @@ -185,32 +131,14 @@ pub struct IAppInfoStatics_Vtbl { #[cfg(not(feature = "System"))] GetFromAppUserModelIdForUser: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppInstallerInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppInstallerInfo { - type Vtable = IAppInstallerInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppInstallerInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x29ab2ac0_d4f6_42a3_adcd_d6583c659508); -} +::windows_core::imp::com_interface!(IAppInstallerInfo, IAppInstallerInfo_Vtbl, 0x29ab2ac0_d4f6_42a3_adcd_d6583c659508); #[repr(C)] #[doc(hidden)] pub struct IAppInstallerInfo_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Uri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppInstallerInfo2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppInstallerInfo2 { - type Vtable = IAppInstallerInfo2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppInstallerInfo2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd20f1388_8256_597c_8511_c84ec50d5e2b); -} +::windows_core::imp::com_interface!(IAppInstallerInfo2, IAppInstallerInfo2_Vtbl, 0xd20f1388_8256_597c_8511_c84ec50d5e2b); #[repr(C)] #[doc(hidden)] pub struct IAppInstallerInfo2_Vtbl { @@ -243,16 +171,7 @@ pub struct IAppInstallerInfo2_Vtbl { OptionalPackageUris: usize, pub PolicySource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut AppInstallerPolicySource) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppInstance(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppInstance { - type Vtable = IAppInstance_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppInstance { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x675f2b47_f25f_4532_9fd6_3633e0634d01); -} +::windows_core::imp::com_interface!(IAppInstance, IAppInstance_Vtbl, 0x675f2b47_f25f_4532_9fd6_3633e0634d01); #[repr(C)] #[doc(hidden)] pub struct IAppInstance_Vtbl { @@ -261,16 +180,7 @@ pub struct IAppInstance_Vtbl { pub IsCurrentInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub RedirectActivationTo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppInstanceStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppInstanceStatics { - type Vtable = IAppInstanceStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppInstanceStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9d11e77f_9ea6_47af_a6ec_46784c5ba254); -} +::windows_core::imp::com_interface!(IAppInstanceStatics, IAppInstanceStatics_Vtbl, 0x9d11e77f_9ea6_47af_a6ec_46784c5ba254); #[repr(C)] #[doc(hidden)] pub struct IAppInstanceStatics_Vtbl { @@ -287,57 +197,29 @@ pub struct IAppInstanceStatics_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetInstances: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICameraApplicationManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICameraApplicationManagerStatics { - type Vtable = ICameraApplicationManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICameraApplicationManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9599ddce_9bd3_435c_8054_c1add50028fe); -} +::windows_core::imp::com_interface!(ICameraApplicationManagerStatics, ICameraApplicationManagerStatics_Vtbl, 0x9599ddce_9bd3_435c_8054_c1add50028fe); #[repr(C)] #[doc(hidden)] pub struct ICameraApplicationManagerStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ShowInstalledApplicationsUI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDesignModeStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDesignModeStatics { - type Vtable = IDesignModeStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDesignModeStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2c3893cc_f81a_4e7a_b857_76a80887e185); -} +::windows_core::imp::com_interface!(IDesignModeStatics, IDesignModeStatics_Vtbl, 0x2c3893cc_f81a_4e7a_b857_76a80887e185); #[repr(C)] #[doc(hidden)] pub struct IDesignModeStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub DesignModeEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDesignModeStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDesignModeStatics2 { - type Vtable = IDesignModeStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDesignModeStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x80cf8137_b064_4858_bec8_3eba22357535); -} +::windows_core::imp::com_interface!(IDesignModeStatics2, IDesignModeStatics2_Vtbl, 0x80cf8137_b064_4858_bec8_3eba22357535); #[repr(C)] #[doc(hidden)] pub struct IDesignModeStatics2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub DesignMode2Enabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnteredBackgroundEventArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnteredBackgroundEventArgs, IEnteredBackgroundEventArgs_Vtbl, 0xf722dcc2_9827_403d_aaed_ecca9ac17398); +::windows_core::imp::interface_hierarchy!(IEnteredBackgroundEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IEnteredBackgroundEventArgs { pub fn GetDeferral(&self) -> ::windows_core::Result { let this = self; @@ -347,32 +229,16 @@ impl IEnteredBackgroundEventArgs { } } } -::windows_core::imp::interface_hierarchy!(IEnteredBackgroundEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IEnteredBackgroundEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IEnteredBackgroundEventArgs { - type Vtable = IEnteredBackgroundEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnteredBackgroundEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf722dcc2_9827_403d_aaed_ecca9ac17398); -} #[repr(C)] #[doc(hidden)] pub struct IEnteredBackgroundEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFindRelatedPackagesOptions(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFindRelatedPackagesOptions { - type Vtable = IFindRelatedPackagesOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFindRelatedPackagesOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x41dd7eea_b335_521f_b96c_5ea07f5b7329); -} +::windows_core::imp::com_interface!(IFindRelatedPackagesOptions, IFindRelatedPackagesOptions_Vtbl, 0x41dd7eea_b335_521f_b96c_5ea07f5b7329); #[repr(C)] #[doc(hidden)] pub struct IFindRelatedPackagesOptions_Vtbl { @@ -388,32 +254,14 @@ pub struct IFindRelatedPackagesOptions_Vtbl { pub IncludeResources: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetIncludeResources: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFindRelatedPackagesOptionsFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFindRelatedPackagesOptionsFactory { - type Vtable = IFindRelatedPackagesOptionsFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFindRelatedPackagesOptionsFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd7d17254_a4fd_55c4_98cf_f2710b7d8be2); -} +::windows_core::imp::com_interface!(IFindRelatedPackagesOptionsFactory, IFindRelatedPackagesOptionsFactory_Vtbl, 0xd7d17254_a4fd_55c4_98cf_f2710b7d8be2); #[repr(C)] #[doc(hidden)] pub struct IFindRelatedPackagesOptionsFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, relationship: PackageRelationship, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFullTrustProcessLaunchResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFullTrustProcessLaunchResult { - type Vtable = IFullTrustProcessLaunchResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFullTrustProcessLaunchResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8917d888_edfb_515f_8e22_5ebceb69dfd9); -} +::windows_core::imp::com_interface!(IFullTrustProcessLaunchResult, IFullTrustProcessLaunchResult_Vtbl, 0x8917d888_edfb_515f_8e22_5ebceb69dfd9); #[repr(C)] #[doc(hidden)] pub struct IFullTrustProcessLaunchResult_Vtbl { @@ -421,16 +269,7 @@ pub struct IFullTrustProcessLaunchResult_Vtbl { pub LaunchResult: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut FullTrustLaunchResult) -> ::windows_core::HRESULT, pub ExtendedError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFullTrustProcessLauncherStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFullTrustProcessLauncherStatics { - type Vtable = IFullTrustProcessLauncherStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFullTrustProcessLauncherStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd784837f_1100_3c6b_a455_f6262cc331b6); -} +::windows_core::imp::com_interface!(IFullTrustProcessLauncherStatics, IFullTrustProcessLauncherStatics_Vtbl, 0xd784837f_1100_3c6b_a455_f6262cc331b6); #[repr(C)] #[doc(hidden)] pub struct IFullTrustProcessLauncherStatics_Vtbl { @@ -440,16 +279,7 @@ pub struct IFullTrustProcessLauncherStatics_Vtbl { pub LaunchFullTrustProcessForAppAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fulltrustpackagerelativeappid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub LaunchFullTrustProcessForAppWithParametersAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fulltrustpackagerelativeappid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, parametergroupid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFullTrustProcessLauncherStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFullTrustProcessLauncherStatics2 { - type Vtable = IFullTrustProcessLauncherStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFullTrustProcessLauncherStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8b8ed72f_b65c_56cf_a1a7_2bf77cbc6ea8); -} +::windows_core::imp::com_interface!(IFullTrustProcessLauncherStatics2, IFullTrustProcessLauncherStatics2_Vtbl, 0x8b8ed72f_b65c_56cf_a1a7_2bf77cbc6ea8); #[repr(C)] #[doc(hidden)] pub struct IFullTrustProcessLauncherStatics2_Vtbl { @@ -457,9 +287,8 @@ pub struct IFullTrustProcessLauncherStatics2_Vtbl { pub LaunchFullTrustProcessForCurrentAppWithArgumentsAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, commandline: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub LaunchFullTrustProcessForAppWithArgumentsAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fulltrustpackagerelativeappid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, commandline: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILeavingBackgroundEventArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ILeavingBackgroundEventArgs, ILeavingBackgroundEventArgs_Vtbl, 0x39c6ec9a_ae6e_46f9_a07a_cfc23f88733e); +::windows_core::imp::interface_hierarchy!(ILeavingBackgroundEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ILeavingBackgroundEventArgs { pub fn GetDeferral(&self) -> ::windows_core::Result { let this = self; @@ -469,32 +298,16 @@ impl ILeavingBackgroundEventArgs { } } } -::windows_core::imp::interface_hierarchy!(ILeavingBackgroundEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for ILeavingBackgroundEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for ILeavingBackgroundEventArgs { - type Vtable = ILeavingBackgroundEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILeavingBackgroundEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x39c6ec9a_ae6e_46f9_a07a_cfc23f88733e); -} #[repr(C)] #[doc(hidden)] pub struct ILeavingBackgroundEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILimitedAccessFeatureRequestResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILimitedAccessFeatureRequestResult { - type Vtable = ILimitedAccessFeatureRequestResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILimitedAccessFeatureRequestResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd45156a6_1e24_5ddd_abb4_6188aba4d5bf); -} +::windows_core::imp::com_interface!(ILimitedAccessFeatureRequestResult, ILimitedAccessFeatureRequestResult_Vtbl, 0xd45156a6_1e24_5ddd_abb4_6188aba4d5bf); #[repr(C)] #[doc(hidden)] pub struct ILimitedAccessFeatureRequestResult_Vtbl { @@ -503,32 +316,14 @@ pub struct ILimitedAccessFeatureRequestResult_Vtbl { pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut LimitedAccessFeatureStatus) -> ::windows_core::HRESULT, pub EstimatedRemovalDate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILimitedAccessFeaturesStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILimitedAccessFeaturesStatics { - type Vtable = ILimitedAccessFeaturesStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILimitedAccessFeaturesStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8be612d4_302b_5fbf_a632_1a99e43e8925); -} +::windows_core::imp::com_interface!(ILimitedAccessFeaturesStatics, ILimitedAccessFeaturesStatics_Vtbl, 0x8be612d4_302b_5fbf_a632_1a99e43e8925); #[repr(C)] #[doc(hidden)] pub struct ILimitedAccessFeaturesStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub TryUnlockFeature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, featureid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, token: ::std::mem::MaybeUninit<::windows_core::HSTRING>, attestation: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPackage(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPackage { - type Vtable = IPackage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPackage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x163c792f_bd75_413c_bf23_b1fe7b95d825); -} +::windows_core::imp::com_interface!(IPackage, IPackage_Vtbl, 0x163c792f_bd75_413c_bf23_b1fe7b95d825); #[repr(C)] #[doc(hidden)] pub struct IPackage_Vtbl { @@ -544,16 +339,7 @@ pub struct IPackage_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Dependencies: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPackage2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPackage2 { - type Vtable = IPackage2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPackage2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa6612fb6_7688_4ace_95fb_359538e7aa01); -} +::windows_core::imp::com_interface!(IPackage2, IPackage2_Vtbl, 0xa6612fb6_7688_4ace_95fb_359538e7aa01); #[repr(C)] #[doc(hidden)] pub struct IPackage2_Vtbl { @@ -566,16 +352,7 @@ pub struct IPackage2_Vtbl { pub IsBundle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub IsDevelopmentMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPackage3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPackage3 { - type Vtable = IPackage3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPackage3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5f738b61_f86a_4917_93d1_f1ee9d3b35d9); -} +::windows_core::imp::com_interface!(IPackage3, IPackage3_Vtbl, 0x5f738b61_f86a_4917_93d1_f1ee9d3b35d9); #[repr(C)] #[doc(hidden)] pub struct IPackage3_Vtbl { @@ -587,16 +364,7 @@ pub struct IPackage3_Vtbl { #[cfg(not(all(feature = "ApplicationModel_Core", feature = "Foundation_Collections")))] GetAppListEntriesAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPackage4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPackage4 { - type Vtable = IPackage4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPackage4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x65aed1ae_b95b_450c_882b_6255187f397e); -} +::windows_core::imp::com_interface!(IPackage4, IPackage4_Vtbl, 0x65aed1ae_b95b_450c_882b_6255187f397e); #[repr(C)] #[doc(hidden)] pub struct IPackage4_Vtbl { @@ -605,16 +373,7 @@ pub struct IPackage4_Vtbl { pub IsOptional: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub VerifyContentIntegrityAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPackage5(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPackage5 { - type Vtable = IPackage5_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPackage5 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0e842dd4_d9ac_45ed_9a1e_74ce056b2635); -} +::windows_core::imp::com_interface!(IPackage5, IPackage5_Vtbl, 0x0e842dd4_d9ac_45ed_9a1e_74ce056b2635); #[repr(C)] #[doc(hidden)] pub struct IPackage5_Vtbl { @@ -634,16 +393,7 @@ pub struct IPackage5_Vtbl { StageContentGroupsWithPriorityAsync: usize, pub SetInUseAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, inuse: bool, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPackage6(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPackage6 { - type Vtable = IPackage6_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPackage6 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8b1ad942_12d7_4754_ae4e_638cbc0e3a2e); -} +::windows_core::imp::com_interface!(IPackage6, IPackage6_Vtbl, 0x8b1ad942_12d7_4754_ae4e_638cbc0e3a2e); #[repr(C)] #[doc(hidden)] pub struct IPackage6_Vtbl { @@ -651,16 +401,7 @@ pub struct IPackage6_Vtbl { pub GetAppInstallerInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CheckUpdateAvailabilityAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPackage7(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPackage7 { - type Vtable = IPackage7_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPackage7 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x86ff8d31_a2e4_45e0_9732_283a6d88fde1); -} +::windows_core::imp::com_interface!(IPackage7, IPackage7_Vtbl, 0x86ff8d31_a2e4_45e0_9732_283a6d88fde1); #[repr(C)] #[doc(hidden)] pub struct IPackage7_Vtbl { @@ -674,16 +415,7 @@ pub struct IPackage7_Vtbl { #[cfg(not(feature = "Storage"))] EffectiveLocation: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPackage8(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPackage8 { - type Vtable = IPackage8_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPackage8 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2c584f7b_ce2a_4be6_a093_77cfbb2a7ea1); -} +::windows_core::imp::com_interface!(IPackage8, IPackage8_Vtbl, 0x2c584f7b_ce2a_4be6_a093_77cfbb2a7ea1); #[repr(C)] #[doc(hidden)] pub struct IPackage8_Vtbl { @@ -716,16 +448,7 @@ pub struct IPackage8_Vtbl { GetAppListEntries: usize, pub IsStub: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPackage9(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPackage9 { - type Vtable = IPackage9_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPackage9 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd5ab224f_d7e1_49ec_90ce_720cdbd02e9c); -} +::windows_core::imp::com_interface!(IPackage9, IPackage9_Vtbl, 0xd5ab224f_d7e1_49ec_90ce_720cdbd02e9c); #[repr(C)] #[doc(hidden)] pub struct IPackage9_Vtbl { @@ -736,16 +459,7 @@ pub struct IPackage9_Vtbl { FindRelatedPackages: usize, pub SourceUriSchemeName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPackageCatalog(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPackageCatalog { - type Vtable = IPackageCatalog_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPackageCatalog { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x230a3751_9de3_4445_be74_91fb325abefe); -} +::windows_core::imp::com_interface!(IPackageCatalog, IPackageCatalog_Vtbl, 0x230a3751_9de3_4445_be74_91fb325abefe); #[repr(C)] #[doc(hidden)] pub struct IPackageCatalog_Vtbl { @@ -761,16 +475,7 @@ pub struct IPackageCatalog_Vtbl { pub PackageStatusChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemovePackageStatusChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPackageCatalog2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPackageCatalog2 { - type Vtable = IPackageCatalog2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPackageCatalog2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x96a60c36_8ff7_4344_b6bf_ee64c2207ed2); -} +::windows_core::imp::com_interface!(IPackageCatalog2, IPackageCatalog2_Vtbl, 0x96a60c36_8ff7_4344_b6bf_ee64c2207ed2); #[repr(C)] #[doc(hidden)] pub struct IPackageCatalog2_Vtbl { @@ -779,16 +484,7 @@ pub struct IPackageCatalog2_Vtbl { pub RemovePackageContentGroupStaging: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub AddOptionalPackageAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, optionalpackagefamilyname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPackageCatalog3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPackageCatalog3 { - type Vtable = IPackageCatalog3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPackageCatalog3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x96dd5c88_8837_43f9_9015_033434ba14f3); -} +::windows_core::imp::com_interface!(IPackageCatalog3, IPackageCatalog3_Vtbl, 0x96dd5c88_8837_43f9_9015_033434ba14f3); #[repr(C)] #[doc(hidden)] pub struct IPackageCatalog3_Vtbl { @@ -798,16 +494,7 @@ pub struct IPackageCatalog3_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] RemoveOptionalPackagesAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPackageCatalog4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPackageCatalog4 { - type Vtable = IPackageCatalog4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPackageCatalog4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc37c399b_44cc_4b7b_8baf_796c04ead3b9); -} +::windows_core::imp::com_interface!(IPackageCatalog4, IPackageCatalog4_Vtbl, 0xc37c399b_44cc_4b7b_8baf_796c04ead3b9); #[repr(C)] #[doc(hidden)] pub struct IPackageCatalog4_Vtbl { @@ -818,16 +505,7 @@ pub struct IPackageCatalog4_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] RemoveResourcePackagesAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPackageCatalogAddOptionalPackageResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPackageCatalogAddOptionalPackageResult { - type Vtable = IPackageCatalogAddOptionalPackageResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPackageCatalogAddOptionalPackageResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3bf10cd4_b4df_47b3_a963_e2fa832f7dd3); -} +::windows_core::imp::com_interface!(IPackageCatalogAddOptionalPackageResult, IPackageCatalogAddOptionalPackageResult_Vtbl, 0x3bf10cd4_b4df_47b3_a963_e2fa832f7dd3); #[repr(C)] #[doc(hidden)] pub struct IPackageCatalogAddOptionalPackageResult_Vtbl { @@ -835,16 +513,7 @@ pub struct IPackageCatalogAddOptionalPackageResult_Vtbl { pub Package: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ExtendedError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPackageCatalogAddResourcePackageResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPackageCatalogAddResourcePackageResult { - type Vtable = IPackageCatalogAddResourcePackageResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPackageCatalogAddResourcePackageResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9636ce0d_3e17_493f_aa08_ccec6fdef699); -} +::windows_core::imp::com_interface!(IPackageCatalogAddResourcePackageResult, IPackageCatalogAddResourcePackageResult_Vtbl, 0x9636ce0d_3e17_493f_aa08_ccec6fdef699); #[repr(C)] #[doc(hidden)] pub struct IPackageCatalogAddResourcePackageResult_Vtbl { @@ -853,16 +522,7 @@ pub struct IPackageCatalogAddResourcePackageResult_Vtbl { pub IsComplete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub ExtendedError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPackageCatalogRemoveOptionalPackagesResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPackageCatalogRemoveOptionalPackagesResult { - type Vtable = IPackageCatalogRemoveOptionalPackagesResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPackageCatalogRemoveOptionalPackagesResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x29d2f97b_d974_4e64_9359_22cadfd79828); -} +::windows_core::imp::com_interface!(IPackageCatalogRemoveOptionalPackagesResult, IPackageCatalogRemoveOptionalPackagesResult_Vtbl, 0x29d2f97b_d974_4e64_9359_22cadfd79828); #[repr(C)] #[doc(hidden)] pub struct IPackageCatalogRemoveOptionalPackagesResult_Vtbl { @@ -873,16 +533,7 @@ pub struct IPackageCatalogRemoveOptionalPackagesResult_Vtbl { PackagesRemoved: usize, pub ExtendedError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPackageCatalogRemoveResourcePackagesResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPackageCatalogRemoveResourcePackagesResult { - type Vtable = IPackageCatalogRemoveResourcePackagesResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPackageCatalogRemoveResourcePackagesResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xae719709_1a52_4321_87b3_e5a1a17981a7); -} +::windows_core::imp::com_interface!(IPackageCatalogRemoveResourcePackagesResult, IPackageCatalogRemoveResourcePackagesResult_Vtbl, 0xae719709_1a52_4321_87b3_e5a1a17981a7); #[repr(C)] #[doc(hidden)] pub struct IPackageCatalogRemoveResourcePackagesResult_Vtbl { @@ -893,16 +544,7 @@ pub struct IPackageCatalogRemoveResourcePackagesResult_Vtbl { PackagesRemoved: usize, pub ExtendedError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPackageCatalogStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPackageCatalogStatics { - type Vtable = IPackageCatalogStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPackageCatalogStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa18c9696_e65b_4634_ba21_5e63eb7244a7); -} +::windows_core::imp::com_interface!(IPackageCatalogStatics, IPackageCatalogStatics_Vtbl, 0xa18c9696_e65b_4634_ba21_5e63eb7244a7); #[repr(C)] #[doc(hidden)] pub struct IPackageCatalogStatics_Vtbl { @@ -910,9 +552,8 @@ pub struct IPackageCatalogStatics_Vtbl { pub OpenForCurrentPackage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub OpenForCurrentUser: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPackageCatalogStatics2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPackageCatalogStatics2, IPackageCatalogStatics2_Vtbl, 0x4c11c159_9a28_598c_b185_55e1899b2be4); +::windows_core::imp::interface_hierarchy!(IPackageCatalogStatics2, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IPackageCatalogStatics2 { pub fn OpenForPackage(&self, package: P0) -> ::windows_core::Result where @@ -925,32 +566,16 @@ impl IPackageCatalogStatics2 { } } } -::windows_core::imp::interface_hierarchy!(IPackageCatalogStatics2, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IPackageCatalogStatics2 { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IPackageCatalogStatics2 { - type Vtable = IPackageCatalogStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPackageCatalogStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4c11c159_9a28_598c_b185_55e1899b2be4); -} #[repr(C)] #[doc(hidden)] pub struct IPackageCatalogStatics2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub OpenForPackage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, package: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPackageContentGroup(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPackageContentGroup { - type Vtable = IPackageContentGroup_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPackageContentGroup { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8f62695d_120a_4798_b5e1_5800dda8f2e1); -} +::windows_core::imp::com_interface!(IPackageContentGroup, IPackageContentGroup_Vtbl, 0x8f62695d_120a_4798_b5e1_5800dda8f2e1); #[repr(C)] #[doc(hidden)] pub struct IPackageContentGroup_Vtbl { @@ -960,16 +585,7 @@ pub struct IPackageContentGroup_Vtbl { pub State: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut PackageContentGroupState) -> ::windows_core::HRESULT, pub IsRequired: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPackageContentGroupStagingEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPackageContentGroupStagingEventArgs { - type Vtable = IPackageContentGroupStagingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPackageContentGroupStagingEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3d7bc27e_6f27_446c_986e_d4733d4d9113); -} +::windows_core::imp::com_interface!(IPackageContentGroupStagingEventArgs, IPackageContentGroupStagingEventArgs_Vtbl, 0x3d7bc27e_6f27_446c_986e_d4733d4d9113); #[repr(C)] #[doc(hidden)] pub struct IPackageContentGroupStagingEventArgs_Vtbl { @@ -982,32 +598,14 @@ pub struct IPackageContentGroupStagingEventArgs_Vtbl { pub ContentGroupName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub IsContentGroupRequired: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPackageContentGroupStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPackageContentGroupStatics { - type Vtable = IPackageContentGroupStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPackageContentGroupStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x70ee7619_5f12_4b92_b9ea_6ccada13bc75); -} +::windows_core::imp::com_interface!(IPackageContentGroupStatics, IPackageContentGroupStatics_Vtbl, 0x70ee7619_5f12_4b92_b9ea_6ccada13bc75); #[repr(C)] #[doc(hidden)] pub struct IPackageContentGroupStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub RequiredGroupName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPackageId(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPackageId { - type Vtable = IPackageId_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPackageId { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1adb665e_37c7_4790_9980_dd7ae74e8bb2); -} +::windows_core::imp::com_interface!(IPackageId, IPackageId_Vtbl, 0x1adb665e_37c7_4790_9980_dd7ae74e8bb2); #[repr(C)] #[doc(hidden)] pub struct IPackageId_Vtbl { @@ -1024,16 +622,7 @@ pub struct IPackageId_Vtbl { pub FullName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub FamilyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPackageIdWithMetadata(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPackageIdWithMetadata { - type Vtable = IPackageIdWithMetadata_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPackageIdWithMetadata { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x40577a7c_0c9e_443d_9074_855f5ce0a08d); -} +::windows_core::imp::com_interface!(IPackageIdWithMetadata, IPackageIdWithMetadata_Vtbl, 0x40577a7c_0c9e_443d_9074_855f5ce0a08d); #[repr(C)] #[doc(hidden)] pub struct IPackageIdWithMetadata_Vtbl { @@ -1041,16 +630,7 @@ pub struct IPackageIdWithMetadata_Vtbl { pub ProductId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Author: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPackageInstallingEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPackageInstallingEventArgs { - type Vtable = IPackageInstallingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPackageInstallingEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x97741eb7_ab7a_401a_8b61_eb0e7faff237); -} +::windows_core::imp::com_interface!(IPackageInstallingEventArgs, IPackageInstallingEventArgs_Vtbl, 0x97741eb7_ab7a_401a_8b61_eb0e7faff237); #[repr(C)] #[doc(hidden)] pub struct IPackageInstallingEventArgs_Vtbl { @@ -1061,16 +641,7 @@ pub struct IPackageInstallingEventArgs_Vtbl { pub IsComplete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub ErrorCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPackageStagingEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPackageStagingEventArgs { - type Vtable = IPackageStagingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPackageStagingEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1041682d_54e2_4f51_b828_9ef7046c210f); -} +::windows_core::imp::com_interface!(IPackageStagingEventArgs, IPackageStagingEventArgs_Vtbl, 0x1041682d_54e2_4f51_b828_9ef7046c210f); #[repr(C)] #[doc(hidden)] pub struct IPackageStagingEventArgs_Vtbl { @@ -1081,32 +652,14 @@ pub struct IPackageStagingEventArgs_Vtbl { pub IsComplete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub ErrorCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPackageStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPackageStatics { - type Vtable = IPackageStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPackageStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4e534bdf_2960_4878_97a4_9624deb72f2d); -} +::windows_core::imp::com_interface!(IPackageStatics, IPackageStatics_Vtbl, 0x4e534bdf_2960_4878_97a4_9624deb72f2d); #[repr(C)] #[doc(hidden)] pub struct IPackageStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Current: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPackageStatus(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPackageStatus { - type Vtable = IPackageStatus_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPackageStatus { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5fe74f71_a365_4c09_a02d_046d525ea1da); -} +::windows_core::imp::com_interface!(IPackageStatus, IPackageStatus_Vtbl, 0x5fe74f71_a365_4c09_a02d_046d525ea1da); #[repr(C)] #[doc(hidden)] pub struct IPackageStatus_Vtbl { @@ -1124,48 +677,21 @@ pub struct IPackageStatus_Vtbl { pub Servicing: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub DeploymentInProgress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPackageStatus2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPackageStatus2 { - type Vtable = IPackageStatus2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPackageStatus2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf428fa93_7c56_4862_acfa_abaedcc0694d); -} +::windows_core::imp::com_interface!(IPackageStatus2, IPackageStatus2_Vtbl, 0xf428fa93_7c56_4862_acfa_abaedcc0694d); #[repr(C)] #[doc(hidden)] pub struct IPackageStatus2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub IsPartiallyStaged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPackageStatusChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPackageStatusChangedEventArgs { - type Vtable = IPackageStatusChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPackageStatusChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x437d714d_bd80_4a70_bc50_f6e796509575); -} +::windows_core::imp::com_interface!(IPackageStatusChangedEventArgs, IPackageStatusChangedEventArgs_Vtbl, 0x437d714d_bd80_4a70_bc50_f6e796509575); #[repr(C)] #[doc(hidden)] pub struct IPackageStatusChangedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Package: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPackageUninstallingEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPackageUninstallingEventArgs { - type Vtable = IPackageUninstallingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPackageUninstallingEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4443aa52_ab22_44cd_82bb_4ec9b827367a); -} +::windows_core::imp::com_interface!(IPackageUninstallingEventArgs, IPackageUninstallingEventArgs_Vtbl, 0x4443aa52_ab22_44cd_82bb_4ec9b827367a); #[repr(C)] #[doc(hidden)] pub struct IPackageUninstallingEventArgs_Vtbl { @@ -1176,16 +702,7 @@ pub struct IPackageUninstallingEventArgs_Vtbl { pub IsComplete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub ErrorCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPackageUpdateAvailabilityResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPackageUpdateAvailabilityResult { - type Vtable = IPackageUpdateAvailabilityResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPackageUpdateAvailabilityResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x114e5009_199a_48a1_a079_313c45634a71); -} +::windows_core::imp::com_interface!(IPackageUpdateAvailabilityResult, IPackageUpdateAvailabilityResult_Vtbl, 0x114e5009_199a_48a1_a079_313c45634a71); #[repr(C)] #[doc(hidden)] pub struct IPackageUpdateAvailabilityResult_Vtbl { @@ -1193,16 +710,7 @@ pub struct IPackageUpdateAvailabilityResult_Vtbl { pub Availability: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut PackageUpdateAvailability) -> ::windows_core::HRESULT, pub ExtendedError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPackageUpdatingEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPackageUpdatingEventArgs { - type Vtable = IPackageUpdatingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPackageUpdatingEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcd7b4228_fd74_443e_b114_23e677b0e86f); -} +::windows_core::imp::com_interface!(IPackageUpdatingEventArgs, IPackageUpdatingEventArgs_Vtbl, 0xcd7b4228_fd74_443e_b114_23e677b0e86f); #[repr(C)] #[doc(hidden)] pub struct IPackageUpdatingEventArgs_Vtbl { @@ -1214,16 +722,7 @@ pub struct IPackageUpdatingEventArgs_Vtbl { pub IsComplete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub ErrorCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPackageWithMetadata(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPackageWithMetadata { - type Vtable = IPackageWithMetadata_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPackageWithMetadata { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x95949780_1de9_40f2_b452_0de9f1910012); -} +::windows_core::imp::com_interface!(IPackageWithMetadata, IPackageWithMetadata_Vtbl, 0x95949780_1de9_40f2_b452_0de9f1910012); #[repr(C)] #[doc(hidden)] pub struct IPackageWithMetadata_Vtbl { @@ -1235,16 +734,7 @@ pub struct IPackageWithMetadata_Vtbl { #[cfg(not(feature = "deprecated"))] Launch: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStartupTask(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStartupTask { - type Vtable = IStartupTask_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStartupTask { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf75c23c8_b5f2_4f6c_88dd_36cb1d599d17); -} +::windows_core::imp::com_interface!(IStartupTask, IStartupTask_Vtbl, 0xf75c23c8_b5f2_4f6c_88dd_36cb1d599d17); #[repr(C)] #[doc(hidden)] pub struct IStartupTask_Vtbl { @@ -1254,16 +744,7 @@ pub struct IStartupTask_Vtbl { pub State: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut StartupTaskState) -> ::windows_core::HRESULT, pub TaskId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStartupTaskStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStartupTaskStatics { - type Vtable = IStartupTaskStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStartupTaskStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xee5b60bd_a148_41a7_b26e_e8b88a1e62f8); -} +::windows_core::imp::com_interface!(IStartupTaskStatics, IStartupTaskStatics_Vtbl, 0xee5b60bd_a148_41a7_b26e_e8b88a1e62f8); #[repr(C)] #[doc(hidden)] pub struct IStartupTaskStatics_Vtbl { @@ -1274,34 +755,25 @@ pub struct IStartupTaskStatics_Vtbl { GetForCurrentPackageAsync: usize, pub GetAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, taskid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISuspendingDeferral(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISuspendingDeferral, ISuspendingDeferral_Vtbl, 0x59140509_8bc9_4eb4_b636_dabdc4f46f66); +::windows_core::imp::interface_hierarchy!(ISuspendingDeferral, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ISuspendingDeferral { pub fn Complete(&self) -> ::windows_core::Result<()> { let this = self; unsafe { (::windows_core::Interface::vtable(this).Complete)(::windows_core::Interface::as_raw(this)).ok() } } } -::windows_core::imp::interface_hierarchy!(ISuspendingDeferral, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for ISuspendingDeferral { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for ISuspendingDeferral { - type Vtable = ISuspendingDeferral_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISuspendingDeferral { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x59140509_8bc9_4eb4_b636_dabdc4f46f66); -} #[repr(C)] #[doc(hidden)] pub struct ISuspendingDeferral_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Complete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISuspendingEventArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISuspendingEventArgs, ISuspendingEventArgs_Vtbl, 0x96061c05_2dba_4d08_b0bd_2b30a131c6aa); +::windows_core::imp::interface_hierarchy!(ISuspendingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ISuspendingEventArgs { pub fn SuspendingOperation(&self) -> ::windows_core::Result { let this = self; @@ -1311,25 +783,17 @@ impl ISuspendingEventArgs { } } } -::windows_core::imp::interface_hierarchy!(ISuspendingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for ISuspendingEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for ISuspendingEventArgs { - type Vtable = ISuspendingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISuspendingEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x96061c05_2dba_4d08_b0bd_2b30a131c6aa); -} #[repr(C)] #[doc(hidden)] pub struct ISuspendingEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub SuspendingOperation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISuspendingOperation(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISuspendingOperation, ISuspendingOperation_Vtbl, 0x9da4ca41_20e1_4e9b_9f65_a9f435340c3a); +::windows_core::imp::interface_hierarchy!(ISuspendingOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ISuspendingOperation { pub fn GetDeferral(&self) -> ::windows_core::Result { let this = self; @@ -1346,16 +810,9 @@ impl ISuspendingOperation { } } } -::windows_core::imp::interface_hierarchy!(ISuspendingOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for ISuspendingOperation { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for ISuspendingOperation { - type Vtable = ISuspendingOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISuspendingOperation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9da4ca41_20e1_4e9b_9f65_a9f435340c3a); -} #[repr(C)] #[doc(hidden)] pub struct ISuspendingOperation_Vtbl { @@ -1366,6 +823,7 @@ pub struct ISuspendingOperation_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppDisplayInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppDisplayInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppDisplayInfo { pub fn DisplayName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1396,19 +854,17 @@ impl ::windows_core::RuntimeType for AppDisplayInfo { } unsafe impl ::windows_core::Interface for AppDisplayInfo { type Vtable = IAppDisplayInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppDisplayInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppDisplayInfo { const NAME: &'static str = "Windows.ApplicationModel.AppDisplayInfo"; } -::windows_core::imp::interface_hierarchy!(AppDisplayInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppDisplayInfo {} unsafe impl ::core::marker::Sync for AppDisplayInfo {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppInfo { pub fn Id(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1439,21 +895,21 @@ impl AppInfo { } } pub fn Package(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Package)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ExecutionContext(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ExecutionContext)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SupportedFileExtensions(&self) -> ::windows_core::Result<::windows_core::Array<::windows_core::HSTRING>> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows_core::Interface::vtable(this).SupportedFileExtensions)(::windows_core::Interface::as_raw(this), ::windows_core::Array::<::windows_core::HSTRING>::set_abi_len(::std::mem::transmute(&mut result__)), result__.as_mut_ptr() as *mut _ as _).and_then(|| result__.assume_init()) @@ -1493,19 +949,17 @@ impl ::windows_core::RuntimeType for AppInfo { } unsafe impl ::windows_core::Interface for AppInfo { type Vtable = IAppInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppInfo { const NAME: &'static str = "Windows.ApplicationModel.AppInfo"; } -::windows_core::imp::interface_hierarchy!(AppInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppInfo {} unsafe impl ::core::marker::Sync for AppInfo {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppInstallerInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppInstallerInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppInstallerInfo { pub fn Uri(&self) -> ::windows_core::Result { let this = self; @@ -1515,70 +969,70 @@ impl AppInstallerInfo { } } pub fn OnLaunch(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OnLaunch)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn HoursBetweenUpdateChecks(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).HoursBetweenUpdateChecks)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ShowPrompt(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ShowPrompt)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn UpdateBlocksActivation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).UpdateBlocksActivation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn AutomaticBackgroundTask(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AutomaticBackgroundTask)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ForceUpdateFromAnyVersion(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ForceUpdateFromAnyVersion)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsAutoRepairEnabled(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsAutoRepairEnabled)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Version(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Version)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn LastChecked(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).LastChecked)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PausedUntil(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PausedUntil)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1587,7 +1041,7 @@ impl AppInstallerInfo { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn UpdateUris(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).UpdateUris)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1596,7 +1050,7 @@ impl AppInstallerInfo { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn RepairUris(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RepairUris)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1605,7 +1059,7 @@ impl AppInstallerInfo { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn DependencyPackageUris(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DependencyPackageUris)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1614,14 +1068,14 @@ impl AppInstallerInfo { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn OptionalPackageUris(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OptionalPackageUris)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PolicySource(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PolicySource)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1633,19 +1087,17 @@ impl ::windows_core::RuntimeType for AppInstallerInfo { } unsafe impl ::windows_core::Interface for AppInstallerInfo { type Vtable = IAppInstallerInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppInstallerInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppInstallerInfo { const NAME: &'static str = "Windows.ApplicationModel.AppInstallerInfo"; } -::windows_core::imp::interface_hierarchy!(AppInstallerInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppInstallerInfo {} unsafe impl ::core::marker::Sync for AppInstallerInfo {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppInstance(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppInstance, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppInstance { pub fn Key(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1707,14 +1159,11 @@ impl ::windows_core::RuntimeType for AppInstance { } unsafe impl ::windows_core::Interface for AppInstance { type Vtable = IAppInstance_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppInstance { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppInstance { const NAME: &'static str = "Windows.ApplicationModel.AppInstance"; } -::windows_core::imp::interface_hierarchy!(AppInstance, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppInstance {} unsafe impl ::core::marker::Sync for AppInstance {} pub struct CameraApplicationManager; @@ -1762,6 +1211,8 @@ impl ::windows_core::RuntimeName for DesignMode { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EnteredBackgroundEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EnteredBackgroundEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(EnteredBackgroundEventArgs, IEnteredBackgroundEventArgs); impl EnteredBackgroundEventArgs { pub fn GetDeferral(&self) -> ::windows_core::Result { let this = self; @@ -1776,20 +1227,17 @@ impl ::windows_core::RuntimeType for EnteredBackgroundEventArgs { } unsafe impl ::windows_core::Interface for EnteredBackgroundEventArgs { type Vtable = IEnteredBackgroundEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EnteredBackgroundEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EnteredBackgroundEventArgs { const NAME: &'static str = "Windows.ApplicationModel.EnteredBackgroundEventArgs"; } -::windows_core::imp::interface_hierarchy!(EnteredBackgroundEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for EnteredBackgroundEventArgs {} unsafe impl ::core::marker::Send for EnteredBackgroundEventArgs {} unsafe impl ::core::marker::Sync for EnteredBackgroundEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct FindRelatedPackagesOptions(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(FindRelatedPackagesOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); impl FindRelatedPackagesOptions { pub fn Relationship(&self) -> ::windows_core::Result { let this = self; @@ -1863,19 +1311,17 @@ impl ::windows_core::RuntimeType for FindRelatedPackagesOptions { } unsafe impl ::windows_core::Interface for FindRelatedPackagesOptions { type Vtable = IFindRelatedPackagesOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for FindRelatedPackagesOptions { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for FindRelatedPackagesOptions { const NAME: &'static str = "Windows.ApplicationModel.FindRelatedPackagesOptions"; } -::windows_core::imp::interface_hierarchy!(FindRelatedPackagesOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for FindRelatedPackagesOptions {} unsafe impl ::core::marker::Sync for FindRelatedPackagesOptions {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct FullTrustProcessLaunchResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(FullTrustProcessLaunchResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl FullTrustProcessLaunchResult { pub fn LaunchResult(&self) -> ::windows_core::Result { let this = self; @@ -1897,14 +1343,11 @@ impl ::windows_core::RuntimeType for FullTrustProcessLaunchResult { } unsafe impl ::windows_core::Interface for FullTrustProcessLaunchResult { type Vtable = IFullTrustProcessLaunchResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for FullTrustProcessLaunchResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for FullTrustProcessLaunchResult { const NAME: &'static str = "Windows.ApplicationModel.FullTrustProcessLaunchResult"; } -::windows_core::imp::interface_hierarchy!(FullTrustProcessLaunchResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for FullTrustProcessLaunchResult {} unsafe impl ::core::marker::Sync for FullTrustProcessLaunchResult {} pub struct FullTrustProcessLauncher; @@ -1962,6 +1405,8 @@ impl ::windows_core::RuntimeName for FullTrustProcessLauncher { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LeavingBackgroundEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LeavingBackgroundEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(LeavingBackgroundEventArgs, ILeavingBackgroundEventArgs); impl LeavingBackgroundEventArgs { pub fn GetDeferral(&self) -> ::windows_core::Result { let this = self; @@ -1976,20 +1421,17 @@ impl ::windows_core::RuntimeType for LeavingBackgroundEventArgs { } unsafe impl ::windows_core::Interface for LeavingBackgroundEventArgs { type Vtable = ILeavingBackgroundEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LeavingBackgroundEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LeavingBackgroundEventArgs { const NAME: &'static str = "Windows.ApplicationModel.LeavingBackgroundEventArgs"; } -::windows_core::imp::interface_hierarchy!(LeavingBackgroundEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for LeavingBackgroundEventArgs {} unsafe impl ::core::marker::Send for LeavingBackgroundEventArgs {} unsafe impl ::core::marker::Sync for LeavingBackgroundEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LimitedAccessFeatureRequestResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LimitedAccessFeatureRequestResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl LimitedAccessFeatureRequestResult { pub fn FeatureId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -2018,14 +1460,11 @@ impl ::windows_core::RuntimeType for LimitedAccessFeatureRequestResult { } unsafe impl ::windows_core::Interface for LimitedAccessFeatureRequestResult { type Vtable = ILimitedAccessFeatureRequestResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LimitedAccessFeatureRequestResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LimitedAccessFeatureRequestResult { const NAME: &'static str = "Windows.ApplicationModel.LimitedAccessFeatureRequestResult"; } -::windows_core::imp::interface_hierarchy!(LimitedAccessFeatureRequestResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for LimitedAccessFeatureRequestResult {} unsafe impl ::core::marker::Sync for LimitedAccessFeatureRequestResult {} pub struct LimitedAccessFeatures; @@ -2048,6 +1487,7 @@ impl ::windows_core::RuntimeName for LimitedAccessFeatures { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Package(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Package, ::windows_core::IUnknown, ::windows_core::IInspectable); impl Package { pub fn Id(&self) -> ::windows_core::Result { let this = self; @@ -2082,63 +1522,63 @@ impl Package { } } pub fn DisplayName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DisplayName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PublisherDisplayName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PublisherDisplayName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Description(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Description)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Logo(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Logo)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsResourcePackage(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsResourcePackage)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsBundle(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsBundle)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsDevelopmentMode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsDevelopmentMode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Status(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Status)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn InstalledDate(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).InstalledDate)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2147,28 +1587,28 @@ impl Package { #[doc = "Required features: `\"ApplicationModel_Core\"`, `\"Foundation_Collections\"`"] #[cfg(all(feature = "ApplicationModel_Core", feature = "Foundation_Collections"))] pub fn GetAppListEntriesAsync(&self) -> ::windows_core::Result>> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetAppListEntriesAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SignatureKind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SignatureKind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsOptional(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsOptional)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn VerifyContentIntegrityAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).VerifyContentIntegrityAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2177,14 +1617,14 @@ impl Package { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetContentGroupsAsync(&self) -> ::windows_core::Result>> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetContentGroupsAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetContentGroupAsync(&self, name: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetContentGroupAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(name), &mut result__).from_abi(result__) @@ -2194,42 +1634,42 @@ impl Package { #[cfg(feature = "Foundation_Collections")] pub fn StageContentGroupsAsync(&self, names: P0) -> ::windows_core::Result>> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).StageContentGroupsAsync)(::windows_core::Interface::as_raw(this), names.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn StageContentGroupsWithPriorityAsync(&self, names: P0, movetoheadofqueue: bool) -> ::windows_core::Result>> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), movetoheadofqueue, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).StageContentGroupsWithPriorityAsync)(::windows_core::Interface::as_raw(this), names.into_param().abi(), movetoheadofqueue, &mut result__).from_abi(result__) } } pub fn SetInUseAsync(&self, inuse: bool) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SetInUseAsync)(::windows_core::Interface::as_raw(this), inuse, &mut result__).from_abi(result__) } } pub fn GetAppInstallerInfo(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetAppInstallerInfo)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CheckUpdateAvailabilityAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CheckUpdateAvailabilityAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2238,7 +1678,7 @@ impl Package { #[doc = "Required features: `\"Storage\"`"] #[cfg(feature = "Storage")] pub fn MutableLocation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MutableLocation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2247,7 +1687,7 @@ impl Package { #[doc = "Required features: `\"Storage\"`"] #[cfg(feature = "Storage")] pub fn EffectiveLocation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).EffectiveLocation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2256,7 +1696,7 @@ impl Package { #[doc = "Required features: `\"Storage\"`"] #[cfg(feature = "Storage")] pub fn EffectiveExternalLocation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).EffectiveExternalLocation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2265,7 +1705,7 @@ impl Package { #[doc = "Required features: `\"Storage\"`"] #[cfg(feature = "Storage")] pub fn MachineExternalLocation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MachineExternalLocation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2274,49 +1714,49 @@ impl Package { #[doc = "Required features: `\"Storage\"`"] #[cfg(feature = "Storage")] pub fn UserExternalLocation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).UserExternalLocation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn InstalledPath(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).InstalledPath)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn MutablePath(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MutablePath)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn EffectivePath(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).EffectivePath)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn EffectiveExternalPath(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).EffectiveExternalPath)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn MachineExternalPath(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MachineExternalPath)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn UserExternalPath(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).UserExternalPath)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2325,7 +1765,7 @@ impl Package { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn GetLogoAsRandomAccessStreamReference(&self, size: super::Foundation::Size) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetLogoAsRandomAccessStreamReference)(::windows_core::Interface::as_raw(this), size, &mut result__).from_abi(result__) @@ -2334,14 +1774,14 @@ impl Package { #[doc = "Required features: `\"ApplicationModel_Core\"`, `\"Foundation_Collections\"`"] #[cfg(all(feature = "ApplicationModel_Core", feature = "Foundation_Collections"))] pub fn GetAppListEntries(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetAppListEntries)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsStub(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsStub)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2353,14 +1793,14 @@ impl Package { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn SourceUriSchemeName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SourceUriSchemeName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2373,14 +1813,14 @@ impl Package { }) } pub fn InstallDate(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).InstallDate)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetThumbnailToken(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetThumbnailToken)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2389,7 +1829,7 @@ impl Package { #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] pub fn Launch(&self, parameters: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Launch)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(parameters)).ok() } } #[doc(hidden)] @@ -2403,19 +1843,17 @@ impl ::windows_core::RuntimeType for Package { } unsafe impl ::windows_core::Interface for Package { type Vtable = IPackage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Package { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Package { const NAME: &'static str = "Windows.ApplicationModel.Package"; } -::windows_core::imp::interface_hierarchy!(Package, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for Package {} unsafe impl ::core::marker::Sync for Package {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PackageCatalog(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PackageCatalog, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PackageCatalog { pub fn PackageStaging(&self, handler: P0) -> ::windows_core::Result where @@ -2491,18 +1929,18 @@ impl PackageCatalog { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemovePackageContentGroupStaging(&self, token: super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemovePackageContentGroupStaging)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn AddOptionalPackageAsync(&self, optionalpackagefamilyname: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AddOptionalPackageAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(optionalpackagefamilyname), &mut result__).from_abi(result__) @@ -2512,16 +1950,16 @@ impl PackageCatalog { #[cfg(feature = "Foundation_Collections")] pub fn RemoveOptionalPackagesAsync(&self, optionalpackagefamilynames: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).RemoveOptionalPackagesAsync)(::windows_core::Interface::as_raw(this), optionalpackagefamilynames.into_param().abi(), &mut result__).from_abi(result__) } } pub fn AddResourcePackageAsync(&self, resourcepackagefamilyname: &::windows_core::HSTRING, resourceid: &::windows_core::HSTRING, options: AddResourcePackageOptions) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AddResourcePackageAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(resourcepackagefamilyname), ::core::mem::transmute_copy(resourceid), options, &mut result__).from_abi(result__) @@ -2531,12 +1969,12 @@ impl PackageCatalog { #[cfg(feature = "Foundation_Collections")] pub fn RemoveResourcePackagesAsync(&self, resourcepackages: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).RemoveResourcePackagesAsync)(::windows_core::Interface::as_raw(this), resourcepackages.into_param().abi(), &mut result__).from_abi(result__) } } pub fn OpenForCurrentPackage() -> ::windows_core::Result { @@ -2576,17 +2014,15 @@ impl ::windows_core::RuntimeType for PackageCatalog { } unsafe impl ::windows_core::Interface for PackageCatalog { type Vtable = IPackageCatalog_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PackageCatalog { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PackageCatalog { const NAME: &'static str = "Windows.ApplicationModel.PackageCatalog"; } -::windows_core::imp::interface_hierarchy!(PackageCatalog, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PackageCatalogAddOptionalPackageResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PackageCatalogAddOptionalPackageResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PackageCatalogAddOptionalPackageResult { pub fn Package(&self) -> ::windows_core::Result { let this = self; @@ -2608,17 +2044,15 @@ impl ::windows_core::RuntimeType for PackageCatalogAddOptionalPackageResult { } unsafe impl ::windows_core::Interface for PackageCatalogAddOptionalPackageResult { type Vtable = IPackageCatalogAddOptionalPackageResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PackageCatalogAddOptionalPackageResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PackageCatalogAddOptionalPackageResult { const NAME: &'static str = "Windows.ApplicationModel.PackageCatalogAddOptionalPackageResult"; } -::windows_core::imp::interface_hierarchy!(PackageCatalogAddOptionalPackageResult, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PackageCatalogAddResourcePackageResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PackageCatalogAddResourcePackageResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PackageCatalogAddResourcePackageResult { pub fn Package(&self) -> ::windows_core::Result { let this = self; @@ -2647,19 +2081,17 @@ impl ::windows_core::RuntimeType for PackageCatalogAddResourcePackageResult { } unsafe impl ::windows_core::Interface for PackageCatalogAddResourcePackageResult { type Vtable = IPackageCatalogAddResourcePackageResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PackageCatalogAddResourcePackageResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PackageCatalogAddResourcePackageResult { const NAME: &'static str = "Windows.ApplicationModel.PackageCatalogAddResourcePackageResult"; } -::windows_core::imp::interface_hierarchy!(PackageCatalogAddResourcePackageResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PackageCatalogAddResourcePackageResult {} unsafe impl ::core::marker::Sync for PackageCatalogAddResourcePackageResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PackageCatalogRemoveOptionalPackagesResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PackageCatalogRemoveOptionalPackagesResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PackageCatalogRemoveOptionalPackagesResult { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -2683,17 +2115,15 @@ impl ::windows_core::RuntimeType for PackageCatalogRemoveOptionalPackagesResult } unsafe impl ::windows_core::Interface for PackageCatalogRemoveOptionalPackagesResult { type Vtable = IPackageCatalogRemoveOptionalPackagesResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PackageCatalogRemoveOptionalPackagesResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PackageCatalogRemoveOptionalPackagesResult { const NAME: &'static str = "Windows.ApplicationModel.PackageCatalogRemoveOptionalPackagesResult"; } -::windows_core::imp::interface_hierarchy!(PackageCatalogRemoveOptionalPackagesResult, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PackageCatalogRemoveResourcePackagesResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PackageCatalogRemoveResourcePackagesResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PackageCatalogRemoveResourcePackagesResult { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -2717,19 +2147,17 @@ impl ::windows_core::RuntimeType for PackageCatalogRemoveResourcePackagesResult } unsafe impl ::windows_core::Interface for PackageCatalogRemoveResourcePackagesResult { type Vtable = IPackageCatalogRemoveResourcePackagesResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PackageCatalogRemoveResourcePackagesResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PackageCatalogRemoveResourcePackagesResult { const NAME: &'static str = "Windows.ApplicationModel.PackageCatalogRemoveResourcePackagesResult"; } -::windows_core::imp::interface_hierarchy!(PackageCatalogRemoveResourcePackagesResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PackageCatalogRemoveResourcePackagesResult {} unsafe impl ::core::marker::Sync for PackageCatalogRemoveResourcePackagesResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PackageContentGroup(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PackageContentGroup, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PackageContentGroup { pub fn Package(&self) -> ::windows_core::Result { let this = self; @@ -2776,19 +2204,17 @@ impl ::windows_core::RuntimeType for PackageContentGroup { } unsafe impl ::windows_core::Interface for PackageContentGroup { type Vtable = IPackageContentGroup_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PackageContentGroup { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PackageContentGroup { const NAME: &'static str = "Windows.ApplicationModel.PackageContentGroup"; } -::windows_core::imp::interface_hierarchy!(PackageContentGroup, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PackageContentGroup {} unsafe impl ::core::marker::Sync for PackageContentGroup {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PackageContentGroupStagingEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PackageContentGroupStagingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PackageContentGroupStagingEventArgs { pub fn ActivityId(&self) -> ::windows_core::Result<::windows_core::GUID> { let this = self; @@ -2845,19 +2271,17 @@ impl ::windows_core::RuntimeType for PackageContentGroupStagingEventArgs { } unsafe impl ::windows_core::Interface for PackageContentGroupStagingEventArgs { type Vtable = IPackageContentGroupStagingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PackageContentGroupStagingEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PackageContentGroupStagingEventArgs { const NAME: &'static str = "Windows.ApplicationModel.PackageContentGroupStagingEventArgs"; } -::windows_core::imp::interface_hierarchy!(PackageContentGroupStagingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PackageContentGroupStagingEventArgs {} unsafe impl ::core::marker::Sync for PackageContentGroupStagingEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PackageId(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PackageId, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PackageId { pub fn Name(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -2918,14 +2342,14 @@ impl PackageId { } } pub fn ProductId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ProductId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Author(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Author)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2937,19 +2361,17 @@ impl ::windows_core::RuntimeType for PackageId { } unsafe impl ::windows_core::Interface for PackageId { type Vtable = IPackageId_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PackageId { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PackageId { const NAME: &'static str = "Windows.ApplicationModel.PackageId"; } -::windows_core::imp::interface_hierarchy!(PackageId, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PackageId {} unsafe impl ::core::marker::Sync for PackageId {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PackageInstallingEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PackageInstallingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PackageInstallingEventArgs { pub fn ActivityId(&self) -> ::windows_core::Result<::windows_core::GUID> { let this = self; @@ -2992,19 +2414,17 @@ impl ::windows_core::RuntimeType for PackageInstallingEventArgs { } unsafe impl ::windows_core::Interface for PackageInstallingEventArgs { type Vtable = IPackageInstallingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PackageInstallingEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PackageInstallingEventArgs { const NAME: &'static str = "Windows.ApplicationModel.PackageInstallingEventArgs"; } -::windows_core::imp::interface_hierarchy!(PackageInstallingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PackageInstallingEventArgs {} unsafe impl ::core::marker::Sync for PackageInstallingEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PackageStagingEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PackageStagingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PackageStagingEventArgs { pub fn ActivityId(&self) -> ::windows_core::Result<::windows_core::GUID> { let this = self; @@ -3047,19 +2467,17 @@ impl ::windows_core::RuntimeType for PackageStagingEventArgs { } unsafe impl ::windows_core::Interface for PackageStagingEventArgs { type Vtable = IPackageStagingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PackageStagingEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PackageStagingEventArgs { const NAME: &'static str = "Windows.ApplicationModel.PackageStagingEventArgs"; } -::windows_core::imp::interface_hierarchy!(PackageStagingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PackageStagingEventArgs {} unsafe impl ::core::marker::Sync for PackageStagingEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PackageStatus(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PackageStatus, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PackageStatus { pub fn VerifyIsOK(&self) -> ::windows_core::Result { let this = self; @@ -3146,7 +2564,7 @@ impl PackageStatus { } } pub fn IsPartiallyStaged(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsPartiallyStaged)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3158,19 +2576,17 @@ impl ::windows_core::RuntimeType for PackageStatus { } unsafe impl ::windows_core::Interface for PackageStatus { type Vtable = IPackageStatus_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PackageStatus { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PackageStatus { const NAME: &'static str = "Windows.ApplicationModel.PackageStatus"; } -::windows_core::imp::interface_hierarchy!(PackageStatus, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PackageStatus {} unsafe impl ::core::marker::Sync for PackageStatus {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PackageStatusChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PackageStatusChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PackageStatusChangedEventArgs { pub fn Package(&self) -> ::windows_core::Result { let this = self; @@ -3185,19 +2601,17 @@ impl ::windows_core::RuntimeType for PackageStatusChangedEventArgs { } unsafe impl ::windows_core::Interface for PackageStatusChangedEventArgs { type Vtable = IPackageStatusChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PackageStatusChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PackageStatusChangedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.PackageStatusChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(PackageStatusChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PackageStatusChangedEventArgs {} unsafe impl ::core::marker::Sync for PackageStatusChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PackageUninstallingEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PackageUninstallingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PackageUninstallingEventArgs { pub fn ActivityId(&self) -> ::windows_core::Result<::windows_core::GUID> { let this = self; @@ -3240,19 +2654,17 @@ impl ::windows_core::RuntimeType for PackageUninstallingEventArgs { } unsafe impl ::windows_core::Interface for PackageUninstallingEventArgs { type Vtable = IPackageUninstallingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PackageUninstallingEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PackageUninstallingEventArgs { const NAME: &'static str = "Windows.ApplicationModel.PackageUninstallingEventArgs"; } -::windows_core::imp::interface_hierarchy!(PackageUninstallingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PackageUninstallingEventArgs {} unsafe impl ::core::marker::Sync for PackageUninstallingEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PackageUpdateAvailabilityResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PackageUpdateAvailabilityResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PackageUpdateAvailabilityResult { pub fn Availability(&self) -> ::windows_core::Result { let this = self; @@ -3274,19 +2686,17 @@ impl ::windows_core::RuntimeType for PackageUpdateAvailabilityResult { } unsafe impl ::windows_core::Interface for PackageUpdateAvailabilityResult { type Vtable = IPackageUpdateAvailabilityResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PackageUpdateAvailabilityResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PackageUpdateAvailabilityResult { const NAME: &'static str = "Windows.ApplicationModel.PackageUpdateAvailabilityResult"; } -::windows_core::imp::interface_hierarchy!(PackageUpdateAvailabilityResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PackageUpdateAvailabilityResult {} unsafe impl ::core::marker::Sync for PackageUpdateAvailabilityResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PackageUpdatingEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PackageUpdatingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PackageUpdatingEventArgs { pub fn ActivityId(&self) -> ::windows_core::Result<::windows_core::GUID> { let this = self; @@ -3336,19 +2746,17 @@ impl ::windows_core::RuntimeType for PackageUpdatingEventArgs { } unsafe impl ::windows_core::Interface for PackageUpdatingEventArgs { type Vtable = IPackageUpdatingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PackageUpdatingEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PackageUpdatingEventArgs { const NAME: &'static str = "Windows.ApplicationModel.PackageUpdatingEventArgs"; } -::windows_core::imp::interface_hierarchy!(PackageUpdatingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PackageUpdatingEventArgs {} unsafe impl ::core::marker::Sync for PackageUpdatingEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StartupTask(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StartupTask, ::windows_core::IUnknown, ::windows_core::IInspectable); impl StartupTask { pub fn RequestEnableAsync(&self) -> ::windows_core::Result> { let this = self; @@ -3400,19 +2808,18 @@ impl ::windows_core::RuntimeType for StartupTask { } unsafe impl ::windows_core::Interface for StartupTask { type Vtable = IStartupTask_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StartupTask { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StartupTask { const NAME: &'static str = "Windows.ApplicationModel.StartupTask"; } -::windows_core::imp::interface_hierarchy!(StartupTask, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for StartupTask {} unsafe impl ::core::marker::Sync for StartupTask {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SuspendingDeferral(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SuspendingDeferral, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(SuspendingDeferral, ISuspendingDeferral); impl SuspendingDeferral { pub fn Complete(&self) -> ::windows_core::Result<()> { let this = self; @@ -3424,20 +2831,18 @@ impl ::windows_core::RuntimeType for SuspendingDeferral { } unsafe impl ::windows_core::Interface for SuspendingDeferral { type Vtable = ISuspendingDeferral_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SuspendingDeferral { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SuspendingDeferral { const NAME: &'static str = "Windows.ApplicationModel.SuspendingDeferral"; } -::windows_core::imp::interface_hierarchy!(SuspendingDeferral, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for SuspendingDeferral {} unsafe impl ::core::marker::Send for SuspendingDeferral {} unsafe impl ::core::marker::Sync for SuspendingDeferral {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SuspendingEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SuspendingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(SuspendingEventArgs, ISuspendingEventArgs); impl SuspendingEventArgs { pub fn SuspendingOperation(&self) -> ::windows_core::Result { let this = self; @@ -3452,20 +2857,18 @@ impl ::windows_core::RuntimeType for SuspendingEventArgs { } unsafe impl ::windows_core::Interface for SuspendingEventArgs { type Vtable = ISuspendingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SuspendingEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SuspendingEventArgs { const NAME: &'static str = "Windows.ApplicationModel.SuspendingEventArgs"; } -::windows_core::imp::interface_hierarchy!(SuspendingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for SuspendingEventArgs {} unsafe impl ::core::marker::Send for SuspendingEventArgs {} unsafe impl ::core::marker::Sync for SuspendingEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SuspendingOperation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SuspendingOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(SuspendingOperation, ISuspendingOperation); impl SuspendingOperation { pub fn GetDeferral(&self) -> ::windows_core::Result { let this = self; @@ -3487,15 +2890,11 @@ impl ::windows_core::RuntimeType for SuspendingOperation { } unsafe impl ::windows_core::Interface for SuspendingOperation { type Vtable = ISuspendingOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SuspendingOperation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SuspendingOperation { const NAME: &'static str = "Windows.ApplicationModel.SuspendingOperation"; } -::windows_core::imp::interface_hierarchy!(SuspendingOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for SuspendingOperation {} unsafe impl ::core::marker::Send for SuspendingOperation {} unsafe impl ::core::marker::Sync for SuspendingOperation {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Data/Html/mod.rs b/crates/libs/windows/src/Windows/Data/Html/mod.rs index 15eaf0f15f..08933b6c3d 100644 --- a/crates/libs/windows/src/Windows/Data/Html/mod.rs +++ b/crates/libs/windows/src/Windows/Data/Html/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHtmlUtilities(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHtmlUtilities { - type Vtable = IHtmlUtilities_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHtmlUtilities { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfec00add_2399_4fac_b5a7_05e9acd7181d); -} +::windows_core::imp::com_interface!(IHtmlUtilities, IHtmlUtilities_Vtbl, 0xfec00add_2399_4fac_b5a7_05e9acd7181d); #[repr(C)] #[doc(hidden)] pub struct IHtmlUtilities_Vtbl { diff --git a/crates/libs/windows/src/Windows/Data/Json/impl.rs b/crates/libs/windows/src/Windows/Data/Json/impl.rs index 14b1154e74..158fadd966 100644 --- a/crates/libs/windows/src/Windows/Data/Json/impl.rs +++ b/crates/libs/windows/src/Windows/Data/Json/impl.rs @@ -105,6 +105,6 @@ impl IJsonValue_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/Data/Json/mod.rs b/crates/libs/windows/src/Windows/Data/Json/mod.rs index fb652ef3a1..c8032f4fca 100644 --- a/crates/libs/windows/src/Windows/Data/Json/mod.rs +++ b/crates/libs/windows/src/Windows/Data/Json/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IJsonArray(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IJsonArray { - type Vtable = IJsonArray_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IJsonArray { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x08c1ddb6_0cbd_4a9a_b5d3_2f852dc37e81); -} +::windows_core::imp::com_interface!(IJsonArray, IJsonArray_Vtbl, 0x08c1ddb6_0cbd_4a9a_b5d3_2f852dc37e81); #[repr(C)] #[doc(hidden)] pub struct IJsonArray_Vtbl { @@ -18,16 +9,7 @@ pub struct IJsonArray_Vtbl { pub GetNumberAt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, result__: *mut f64) -> ::windows_core::HRESULT, pub GetBooleanAt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IJsonArrayStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IJsonArrayStatics { - type Vtable = IJsonArrayStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IJsonArrayStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdb1434a9_e164_499f_93e2_8a8f49bb90ba); -} +::windows_core::imp::com_interface!(IJsonArrayStatics, IJsonArrayStatics_Vtbl, 0xdb1434a9_e164_499f_93e2_8a8f49bb90ba); #[repr(C)] #[doc(hidden)] pub struct IJsonArrayStatics_Vtbl { @@ -35,32 +17,14 @@ pub struct IJsonArrayStatics_Vtbl { pub Parse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub TryParse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result: *mut *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IJsonErrorStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IJsonErrorStatics2 { - type Vtable = IJsonErrorStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IJsonErrorStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x404030da_87d0_436c_83ab_fc7b12c0cc26); -} +::windows_core::imp::com_interface!(IJsonErrorStatics2, IJsonErrorStatics2_Vtbl, 0x404030da_87d0_436c_83ab_fc7b12c0cc26); #[repr(C)] #[doc(hidden)] pub struct IJsonErrorStatics2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetJsonStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hresult: i32, result__: *mut JsonErrorStatus) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IJsonObject(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IJsonObject { - type Vtable = IJsonObject_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IJsonObject { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x064e24dd_29c2_4f83_9ac1_9ee11578beb3); -} +::windows_core::imp::com_interface!(IJsonObject, IJsonObject_Vtbl, 0x064e24dd_29c2_4f83_9ac1_9ee11578beb3); #[repr(C)] #[doc(hidden)] pub struct IJsonObject_Vtbl { @@ -73,16 +37,7 @@ pub struct IJsonObject_Vtbl { pub GetNamedNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut f64) -> ::windows_core::HRESULT, pub GetNamedBoolean: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IJsonObjectStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IJsonObjectStatics { - type Vtable = IJsonObjectStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IJsonObjectStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2289f159_54de_45d8_abcc_22603fa066a0); -} +::windows_core::imp::com_interface!(IJsonObjectStatics, IJsonObjectStatics_Vtbl, 0x2289f159_54de_45d8_abcc_22603fa066a0); #[repr(C)] #[doc(hidden)] pub struct IJsonObjectStatics_Vtbl { @@ -90,16 +45,7 @@ pub struct IJsonObjectStatics_Vtbl { pub Parse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub TryParse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result: *mut *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IJsonObjectWithDefaultValues(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IJsonObjectWithDefaultValues { - type Vtable = IJsonObjectWithDefaultValues_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IJsonObjectWithDefaultValues { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd960d2a2_b7f0_4f00_8e44_d82cf415ea13); -} +::windows_core::imp::com_interface!(IJsonObjectWithDefaultValues, IJsonObjectWithDefaultValues_Vtbl, 0xd960d2a2_b7f0_4f00_8e44_d82cf415ea13); #[repr(C)] #[doc(hidden)] pub struct IJsonObjectWithDefaultValues_Vtbl { @@ -111,9 +57,8 @@ pub struct IJsonObjectWithDefaultValues_Vtbl { pub GetNamedNumberOrDefault: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows_core::HSTRING>, defaultvalue: f64, result__: *mut f64) -> ::windows_core::HRESULT, pub GetNamedBooleanOrDefault: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows_core::HSTRING>, defaultvalue: bool, result__: *mut bool) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IJsonValue(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IJsonValue, IJsonValue_Vtbl, 0xa3219ecb_f0b3_4dcd_beee_19d48cd3ed1e); +::windows_core::imp::interface_hierarchy!(IJsonValue, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IJsonValue { pub fn ValueType(&self) -> ::windows_core::Result { let this = self; @@ -165,16 +110,9 @@ impl IJsonValue { } } } -::windows_core::imp::interface_hierarchy!(IJsonValue, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IJsonValue { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IJsonValue { - type Vtable = IJsonValue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IJsonValue { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa3219ecb_f0b3_4dcd_beee_19d48cd3ed1e); -} #[repr(C)] #[doc(hidden)] pub struct IJsonValue_Vtbl { @@ -187,16 +125,7 @@ pub struct IJsonValue_Vtbl { pub GetArray: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IJsonValueStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IJsonValueStatics { - type Vtable = IJsonValueStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IJsonValueStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5f6b544a_2f53_48e1_91a3_f78b50a6345c); -} +::windows_core::imp::com_interface!(IJsonValueStatics, IJsonValueStatics_Vtbl, 0x5f6b544a_2f53_48e1_91a3_f78b50a6345c); #[repr(C)] #[doc(hidden)] pub struct IJsonValueStatics_Vtbl { @@ -207,16 +136,7 @@ pub struct IJsonValueStatics_Vtbl { pub CreateNumberValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: f64, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateStringValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IJsonValueStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IJsonValueStatics2 { - type Vtable = IJsonValueStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IJsonValueStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1d9ecbe4_3fe8_4335_8392_93d8e36865f0); -} +::windows_core::imp::com_interface!(IJsonValueStatics2, IJsonValueStatics2_Vtbl, 0x1d9ecbe4_3fe8_4335_8392_93d8e36865f0); #[repr(C)] #[doc(hidden)] pub struct IJsonValueStatics2_Vtbl { @@ -226,6 +146,9 @@ pub struct IJsonValueStatics2_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct JsonArray(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(JsonArray, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(JsonArray, super::super::Foundation::Collections::IIterable::, IJsonValue, super::super::Foundation::IStringable, super::super::Foundation::Collections::IVector::); impl JsonArray { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -237,7 +160,7 @@ impl JsonArray { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -291,56 +214,56 @@ impl JsonArray { }) } pub fn ValueType(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ValueType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Stringify(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Stringify)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetString)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetNumber(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetNumber)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetBoolean(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetBoolean)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetArray(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetArray)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetObject(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetObject)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ToString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ToString)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -349,7 +272,7 @@ impl JsonArray { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetAt(&self, index: u32) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetAt)(::windows_core::Interface::as_raw(this), index, &mut result__).from_abi(result__) @@ -358,7 +281,7 @@ impl JsonArray { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Size(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Size)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -367,7 +290,7 @@ impl JsonArray { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetView(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetView)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -377,63 +300,63 @@ impl JsonArray { #[cfg(feature = "Foundation_Collections")] pub fn IndexOf(&self, value: P0, index: &mut u32) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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.try_into_param()?.abi(), index, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).IndexOf)(::windows_core::Interface::as_raw(this), value.into_param().abi(), index, &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn SetAt(&self, index: u32, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetAt)(::windows_core::Interface::as_raw(this), index, value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn InsertAt(&self, index: u32, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; - unsafe { (::windows_core::Interface::vtable(this).InsertAt)(::windows_core::Interface::as_raw(this), index, value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn RemoveAt(&self, index: u32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveAt)(::windows_core::Interface::as_raw(this), index).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Append(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; - unsafe { (::windows_core::Interface::vtable(this).Append)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn RemoveAtEnd(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveAtEnd)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Clear(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).Clear)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetMany(&self, startindex: u32, items: &mut [::core::option::Option]) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetMany)(::windows_core::Interface::as_raw(this), startindex, items.len().try_into().unwrap(), ::core::mem::transmute_copy(&items), &mut result__).from_abi(result__) @@ -442,7 +365,7 @@ impl JsonArray { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn ReplaceAll(&self, items: &[::core::option::Option]) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).ReplaceAll)(::windows_core::Interface::as_raw(this), items.len().try_into().unwrap(), ::core::mem::transmute(items.as_ptr())).ok() } } #[doc(hidden)] @@ -456,9 +379,7 @@ impl ::windows_core::RuntimeType for JsonArray { } unsafe impl ::windows_core::Interface for JsonArray { type Vtable = IJsonArray_Vtbl; -} -unsafe impl ::windows_core::ComInterface for JsonArray { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for JsonArray { const NAME: &'static str = "Windows.Data.Json.JsonArray"; @@ -476,16 +397,9 @@ impl ::core::iter::IntoIterator for &JsonArray { type Item = IJsonValue; type IntoIter = super::super::Foundation::Collections::VectorIterator; fn into_iter(self) -> Self::IntoIter { - super::super::Foundation::Collections::VectorIterator::new(::windows_core::ComInterface::cast(self).ok()) + super::super::Foundation::Collections::VectorIterator::new(::windows_core::Interface::cast(self).ok()) } } -::windows_core::imp::interface_hierarchy!(JsonArray, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for JsonArray {} -impl ::windows_core::CanTryInto for JsonArray {} -impl ::windows_core::CanTryInto for JsonArray {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for JsonArray {} unsafe impl ::core::marker::Send for JsonArray {} unsafe impl ::core::marker::Sync for JsonArray {} pub struct JsonError; @@ -508,6 +422,9 @@ impl ::windows_core::RuntimeName for JsonError { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct JsonObject(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(JsonObject, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(JsonObject, super::super::Foundation::Collections::IIterable::>, IJsonValue, super::super::Foundation::Collections::IMap::<::windows_core::HSTRING, IJsonValue>, super::super::Foundation::IStringable); impl JsonObject { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -519,7 +436,7 @@ impl JsonObject { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> ::windows_core::Result>> { - let this = &::windows_core::ComInterface::cast::>>(self)?; + let this = &::windows_core::Interface::cast::>>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -534,10 +451,10 @@ impl JsonObject { } pub fn SetNamedValue(&self, name: &::windows_core::HSTRING, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetNamedValue)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(name), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetNamedValue)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(name), value.into_param().abi()).ok() } } pub fn GetNamedObject(&self, name: &::windows_core::HSTRING) -> ::windows_core::Result { let this = self; @@ -590,7 +507,7 @@ impl JsonObject { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -600,14 +517,14 @@ impl JsonObject { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn GetNamedStringOrDefault(&self, name: &::windows_core::HSTRING, defaultvalue: &::windows_core::HSTRING) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetNamedStringOrDefault)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(name), ::core::mem::transmute_copy(defaultvalue), &mut result__).from_abi(result__) @@ -617,70 +534,70 @@ impl JsonObject { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn GetNamedNumberOrDefault(&self, name: &::windows_core::HSTRING, defaultvalue: f64) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetNamedNumberOrDefault)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(name), defaultvalue, &mut result__).from_abi(result__) } } pub fn GetNamedBooleanOrDefault(&self, name: &::windows_core::HSTRING, defaultvalue: bool) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetNamedBooleanOrDefault)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(name), defaultvalue, &mut result__).from_abi(result__) } } pub fn ValueType(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ValueType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Stringify(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Stringify)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetString)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetNumber(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetNumber)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetBoolean(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetBoolean)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetArray(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetArray)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetObject(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetObject)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -689,7 +606,7 @@ impl JsonObject { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Lookup(&self, key: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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), ::core::mem::transmute_copy(key), &mut result__).from_abi(result__) @@ -698,7 +615,7 @@ impl JsonObject { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Size(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Size)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -707,7 +624,7 @@ impl JsonObject { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn HasKey(&self, key: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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), ::core::mem::transmute_copy(key), &mut result__).from_abi(result__) @@ -716,7 +633,7 @@ impl JsonObject { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetView(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetView)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -726,28 +643,28 @@ impl JsonObject { #[cfg(feature = "Foundation_Collections")] pub fn Insert(&self, key: &::windows_core::HSTRING, value: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).Insert)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Remove(&self, key: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).Remove)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Clear(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).Clear)(::windows_core::Interface::as_raw(this)).ok() } } pub fn ToString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ToString)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -764,9 +681,7 @@ impl ::windows_core::RuntimeType for JsonObject { } unsafe impl ::windows_core::Interface for JsonObject { type Vtable = IJsonObject_Vtbl; -} -unsafe impl ::windows_core::ComInterface for JsonObject { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for JsonObject { const NAME: &'static str = "Windows.Data.Json.JsonObject"; @@ -787,18 +702,13 @@ impl ::core::iter::IntoIterator for &JsonObject { self.First().unwrap() } } -::windows_core::imp::interface_hierarchy!(JsonObject, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto>> for JsonObject {} -impl ::windows_core::CanTryInto for JsonObject {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for JsonObject {} -impl ::windows_core::CanTryInto for JsonObject {} unsafe impl ::core::marker::Send for JsonObject {} unsafe impl ::core::marker::Sync for JsonObject {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct JsonValue(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(JsonValue, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(JsonValue, IJsonValue, super::super::Foundation::IStringable); impl JsonValue { pub fn ValueType(&self) -> ::windows_core::Result { let this = self; @@ -886,7 +796,7 @@ impl JsonValue { }) } pub fn ToString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ToString)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -908,16 +818,11 @@ impl ::windows_core::RuntimeType for JsonValue { } unsafe impl ::windows_core::Interface for JsonValue { type Vtable = IJsonValue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for JsonValue { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for JsonValue { const NAME: &'static str = "Windows.Data.Json.JsonValue"; } -::windows_core::imp::interface_hierarchy!(JsonValue, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for JsonValue {} -impl ::windows_core::CanTryInto for JsonValue {} unsafe impl ::core::marker::Send for JsonValue {} unsafe impl ::core::marker::Sync for JsonValue {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Data/Pdf/mod.rs b/crates/libs/windows/src/Windows/Data/Pdf/mod.rs index 6a57a04e23..058eabe16f 100644 --- a/crates/libs/windows/src/Windows/Data/Pdf/mod.rs +++ b/crates/libs/windows/src/Windows/Data/Pdf/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPdfDocument(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPdfDocument { - type Vtable = IPdfDocument_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPdfDocument { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xac7ebedd_80fa_4089_846e_81b77ff5a86c); -} +::windows_core::imp::com_interface!(IPdfDocument, IPdfDocument_Vtbl, 0xac7ebedd_80fa_4089_846e_81b77ff5a86c); #[repr(C)] #[doc(hidden)] pub struct IPdfDocument_Vtbl { @@ -16,16 +7,7 @@ pub struct IPdfDocument_Vtbl { pub PageCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, pub IsPasswordProtected: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPdfDocumentStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPdfDocumentStatics { - type Vtable = IPdfDocumentStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPdfDocumentStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x433a0b5f_c007_4788_90f2_08143d922599); -} +::windows_core::imp::com_interface!(IPdfDocumentStatics, IPdfDocumentStatics_Vtbl, 0x433a0b5f_c007_4788_90f2_08143d922599); #[repr(C)] #[doc(hidden)] pub struct IPdfDocumentStatics_Vtbl { @@ -47,16 +29,7 @@ pub struct IPdfDocumentStatics_Vtbl { #[cfg(not(feature = "Storage_Streams"))] LoadFromStreamWithPasswordAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPdfPage(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPdfPage { - type Vtable = IPdfPage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPdfPage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9db4b0c8_5320_4cfc_ad76_493fdad0e594); -} +::windows_core::imp::com_interface!(IPdfPage, IPdfPage_Vtbl, 0x9db4b0c8_5320_4cfc_ad76_493fdad0e594); #[repr(C)] #[doc(hidden)] pub struct IPdfPage_Vtbl { @@ -76,16 +49,7 @@ pub struct IPdfPage_Vtbl { pub Rotation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut PdfPageRotation) -> ::windows_core::HRESULT, pub PreferredZoom: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPdfPageDimensions(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPdfPageDimensions { - type Vtable = IPdfPageDimensions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPdfPageDimensions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x22170471_313e_44e8_835d_63a3e7624a10); -} +::windows_core::imp::com_interface!(IPdfPageDimensions, IPdfPageDimensions_Vtbl, 0x22170471_313e_44e8_835d_63a3e7624a10); #[repr(C)] #[doc(hidden)] pub struct IPdfPageDimensions_Vtbl { @@ -96,16 +60,7 @@ pub struct IPdfPageDimensions_Vtbl { pub TrimBox: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::Rect) -> ::windows_core::HRESULT, pub ArtBox: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::Rect) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPdfPageRenderOptions(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPdfPageRenderOptions { - type Vtable = IPdfPageRenderOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPdfPageRenderOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3c98056f_b7cf_4c29_9a04_52d90267f425); -} +::windows_core::imp::com_interface!(IPdfPageRenderOptions, IPdfPageRenderOptions_Vtbl, 0x3c98056f_b7cf_4c29_9a04_52d90267f425); #[repr(C)] #[doc(hidden)] pub struct IPdfPageRenderOptions_Vtbl { @@ -132,6 +87,7 @@ pub struct IPdfPageRenderOptions_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PdfDocument(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PdfDocument, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PdfDocument { pub fn GetPage(&self, pageindex: u32) -> ::windows_core::Result { let this = self; @@ -158,44 +114,44 @@ impl PdfDocument { #[cfg(feature = "Storage")] pub fn LoadFromFileAsync(file: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IPdfDocumentStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).LoadFromFileAsync)(::windows_core::Interface::as_raw(this), file.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).LoadFromFileAsync)(::windows_core::Interface::as_raw(this), file.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Storage\"`"] #[cfg(feature = "Storage")] pub fn LoadFromFileWithPasswordAsync(file: P0, password: &::windows_core::HSTRING) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IPdfDocumentStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).LoadFromFileWithPasswordAsync)(::windows_core::Interface::as_raw(this), file.try_into_param()?.abi(), ::core::mem::transmute_copy(password), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).LoadFromFileWithPasswordAsync)(::windows_core::Interface::as_raw(this), file.into_param().abi(), ::core::mem::transmute_copy(password), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn LoadFromStreamAsync(inputstream: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IPdfDocumentStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).LoadFromStreamAsync)(::windows_core::Interface::as_raw(this), inputstream.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).LoadFromStreamAsync)(::windows_core::Interface::as_raw(this), inputstream.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn LoadFromStreamWithPasswordAsync(inputstream: P0, password: &::windows_core::HSTRING) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IPdfDocumentStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).LoadFromStreamWithPasswordAsync)(::windows_core::Interface::as_raw(this), inputstream.try_into_param()?.abi(), ::core::mem::transmute_copy(password), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).LoadFromStreamWithPasswordAsync)(::windows_core::Interface::as_raw(this), inputstream.into_param().abi(), ::core::mem::transmute_copy(password), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -209,47 +165,46 @@ impl ::windows_core::RuntimeType for PdfDocument { } unsafe impl ::windows_core::Interface for PdfDocument { type Vtable = IPdfDocument_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PdfDocument { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PdfDocument { const NAME: &'static str = "Windows.Data.Pdf.PdfDocument"; } -::windows_core::imp::interface_hierarchy!(PdfDocument, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PdfDocument {} unsafe impl ::core::marker::Sync for PdfDocument {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PdfPage(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PdfPage, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(PdfPage, super::super::Foundation::IClosable); impl PdfPage { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn RenderToStreamAsync(&self, outputstream: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).RenderToStreamAsync)(::windows_core::Interface::as_raw(this), outputstream.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).RenderToStreamAsync)(::windows_core::Interface::as_raw(this), outputstream.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn RenderWithOptionsToStreamAsync(&self, outputstream: P0, options: P1) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).RenderWithOptionsToStreamAsync)(::windows_core::Interface::as_raw(this), outputstream.try_into_param()?.abi(), options.into_param().abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).RenderWithOptionsToStreamAsync)(::windows_core::Interface::as_raw(this), outputstream.into_param().abi(), options.into_param().abi(), &mut result__).from_abi(result__) } } pub fn PreparePageAsync(&self) -> ::windows_core::Result { @@ -300,20 +255,17 @@ impl ::windows_core::RuntimeType for PdfPage { } unsafe impl ::windows_core::Interface for PdfPage { type Vtable = IPdfPage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PdfPage { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PdfPage { const NAME: &'static str = "Windows.Data.Pdf.PdfPage"; } -::windows_core::imp::interface_hierarchy!(PdfPage, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for PdfPage {} unsafe impl ::core::marker::Send for PdfPage {} unsafe impl ::core::marker::Sync for PdfPage {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PdfPageDimensions(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PdfPageDimensions, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PdfPageDimensions { pub fn MediaBox(&self) -> ::windows_core::Result { let this = self; @@ -356,19 +308,17 @@ impl ::windows_core::RuntimeType for PdfPageDimensions { } unsafe impl ::windows_core::Interface for PdfPageDimensions { type Vtable = IPdfPageDimensions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PdfPageDimensions { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PdfPageDimensions { const NAME: &'static str = "Windows.Data.Pdf.PdfPageDimensions"; } -::windows_core::imp::interface_hierarchy!(PdfPageDimensions, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PdfPageDimensions {} unsafe impl ::core::marker::Sync for PdfPageDimensions {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PdfPageRenderOptions(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PdfPageRenderOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PdfPageRenderOptions { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -453,14 +403,11 @@ impl ::windows_core::RuntimeType for PdfPageRenderOptions { } unsafe impl ::windows_core::Interface for PdfPageRenderOptions { type Vtable = IPdfPageRenderOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PdfPageRenderOptions { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PdfPageRenderOptions { const NAME: &'static str = "Windows.Data.Pdf.PdfPageRenderOptions"; } -::windows_core::imp::interface_hierarchy!(PdfPageRenderOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PdfPageRenderOptions {} unsafe impl ::core::marker::Sync for PdfPageRenderOptions {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Data/Text/mod.rs b/crates/libs/windows/src/Windows/Data/Text/mod.rs index 9424b5f65e..25d6a672d1 100644 --- a/crates/libs/windows/src/Windows/Data/Text/mod.rs +++ b/crates/libs/windows/src/Windows/Data/Text/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAlternateWordForm(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAlternateWordForm { - type Vtable = IAlternateWordForm_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAlternateWordForm { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x47396c1e_51b9_4207_9146_248e636a1d1d); -} +::windows_core::imp::com_interface!(IAlternateWordForm, IAlternateWordForm_Vtbl, 0x47396c1e_51b9_4207_9146_248e636a1d1d); #[repr(C)] #[doc(hidden)] pub struct IAlternateWordForm_Vtbl { @@ -16,16 +7,7 @@ pub struct IAlternateWordForm_Vtbl { pub AlternateText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub NormalizationFormat: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut AlternateNormalizationFormat) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISelectableWordSegment(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISelectableWordSegment { - type Vtable = ISelectableWordSegment_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISelectableWordSegment { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x916a4cb7_8aa7_4c78_b374_5dedb752e60b); -} +::windows_core::imp::com_interface!(ISelectableWordSegment, ISelectableWordSegment_Vtbl, 0x916a4cb7_8aa7_4c78_b374_5dedb752e60b); #[repr(C)] #[doc(hidden)] pub struct ISelectableWordSegment_Vtbl { @@ -33,16 +15,7 @@ pub struct ISelectableWordSegment_Vtbl { pub Text: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SourceTextSegment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut TextSegment) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISelectableWordsSegmenter(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISelectableWordsSegmenter { - type Vtable = ISelectableWordsSegmenter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISelectableWordsSegmenter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf6dc31e7_4b13_45c5_8897_7d71269e085d); -} +::windows_core::imp::com_interface!(ISelectableWordsSegmenter, ISelectableWordsSegmenter_Vtbl, 0xf6dc31e7_4b13_45c5_8897_7d71269e085d); #[repr(C)] #[doc(hidden)] pub struct ISelectableWordsSegmenter_Vtbl { @@ -58,32 +31,14 @@ pub struct ISelectableWordsSegmenter_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Tokenize: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISelectableWordsSegmenterFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISelectableWordsSegmenterFactory { - type Vtable = ISelectableWordsSegmenterFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISelectableWordsSegmenterFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8c7a7648_6057_4339_bc70_f210010a4150); -} +::windows_core::imp::com_interface!(ISelectableWordsSegmenterFactory, ISelectableWordsSegmenterFactory_Vtbl, 0x8c7a7648_6057_4339_bc70_f210010a4150); #[repr(C)] #[doc(hidden)] pub struct ISelectableWordsSegmenterFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateWithLanguage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, language: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISemanticTextQuery(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISemanticTextQuery { - type Vtable = ISemanticTextQuery_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISemanticTextQuery { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6a1cab51_1fb2_4909_80b8_35731a2b3e7f); -} +::windows_core::imp::com_interface!(ISemanticTextQuery, ISemanticTextQuery_Vtbl, 0x6a1cab51_1fb2_4909_80b8_35731a2b3e7f); #[repr(C)] #[doc(hidden)] pub struct ISemanticTextQuery_Vtbl { @@ -97,16 +52,7 @@ pub struct ISemanticTextQuery_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] FindInProperty: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISemanticTextQueryFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISemanticTextQueryFactory { - type Vtable = ISemanticTextQueryFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISemanticTextQueryFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x238c0503_f995_4587_8777_a2b7d80acfef); -} +::windows_core::imp::com_interface!(ISemanticTextQueryFactory, ISemanticTextQueryFactory_Vtbl, 0x238c0503_f995_4587_8777_a2b7d80acfef); #[repr(C)] #[doc(hidden)] pub struct ISemanticTextQueryFactory_Vtbl { @@ -114,16 +60,7 @@ pub struct ISemanticTextQueryFactory_Vtbl { pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, aqsfilter: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateWithLanguage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, aqsfilter: ::std::mem::MaybeUninit<::windows_core::HSTRING>, filterlanguage: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITextConversionGenerator(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITextConversionGenerator { - type Vtable = ITextConversionGenerator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITextConversionGenerator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x03606a5e_2aa9_4ab6_af8b_a562b63a8992); -} +::windows_core::imp::com_interface!(ITextConversionGenerator, ITextConversionGenerator_Vtbl, 0x03606a5e_2aa9_4ab6_af8b_a562b63a8992); #[repr(C)] #[doc(hidden)] pub struct ITextConversionGenerator_Vtbl { @@ -139,32 +76,14 @@ pub struct ITextConversionGenerator_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetCandidatesWithMaxCountAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITextConversionGeneratorFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITextConversionGeneratorFactory { - type Vtable = ITextConversionGeneratorFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITextConversionGeneratorFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfcaa3781_3083_49ab_be15_56dfbbb74d6f); -} +::windows_core::imp::com_interface!(ITextConversionGeneratorFactory, ITextConversionGeneratorFactory_Vtbl, 0xfcaa3781_3083_49ab_be15_56dfbbb74d6f); #[repr(C)] #[doc(hidden)] pub struct ITextConversionGeneratorFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, languagetag: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITextPhoneme(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITextPhoneme { - type Vtable = ITextPhoneme_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITextPhoneme { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9362a40a_9b7a_4569_94cf_d84f2f38cf9b); -} +::windows_core::imp::com_interface!(ITextPhoneme, ITextPhoneme_Vtbl, 0x9362a40a_9b7a_4569_94cf_d84f2f38cf9b); #[repr(C)] #[doc(hidden)] pub struct ITextPhoneme_Vtbl { @@ -172,16 +91,7 @@ pub struct ITextPhoneme_Vtbl { pub DisplayText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub ReadingText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITextPredictionGenerator(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITextPredictionGenerator { - type Vtable = ITextPredictionGenerator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITextPredictionGenerator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5eacab07_abf1_4cb6_9d9e_326f2b468756); -} +::windows_core::imp::com_interface!(ITextPredictionGenerator, ITextPredictionGenerator_Vtbl, 0x5eacab07_abf1_4cb6_9d9e_326f2b468756); #[repr(C)] #[doc(hidden)] pub struct ITextPredictionGenerator_Vtbl { @@ -197,16 +107,7 @@ pub struct ITextPredictionGenerator_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetCandidatesWithMaxCountAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITextPredictionGenerator2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITextPredictionGenerator2 { - type Vtable = ITextPredictionGenerator2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITextPredictionGenerator2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb84723b8_2c77_486a_900a_a3453eedc15d); -} +::windows_core::imp::com_interface!(ITextPredictionGenerator2, ITextPredictionGenerator2_Vtbl, 0xb84723b8_2c77_486a_900a_a3453eedc15d); #[repr(C)] #[doc(hidden)] pub struct ITextPredictionGenerator2_Vtbl { @@ -228,32 +129,14 @@ pub struct ITextPredictionGenerator2_Vtbl { #[cfg(not(feature = "UI_Text_Core"))] SetInputScope: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITextPredictionGeneratorFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITextPredictionGeneratorFactory { - type Vtable = ITextPredictionGeneratorFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITextPredictionGeneratorFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7257b416_8ba2_4751_9d30_9d85435653a2); -} +::windows_core::imp::com_interface!(ITextPredictionGeneratorFactory, ITextPredictionGeneratorFactory_Vtbl, 0x7257b416_8ba2_4751_9d30_9d85435653a2); #[repr(C)] #[doc(hidden)] pub struct ITextPredictionGeneratorFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, languagetag: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITextReverseConversionGenerator(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITextReverseConversionGenerator { - type Vtable = ITextReverseConversionGenerator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITextReverseConversionGenerator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51e7f514_9c51_4d86_ae1b_b498fbad8313); -} +::windows_core::imp::com_interface!(ITextReverseConversionGenerator, ITextReverseConversionGenerator_Vtbl, 0x51e7f514_9c51_4d86_ae1b_b498fbad8313); #[repr(C)] #[doc(hidden)] pub struct ITextReverseConversionGenerator_Vtbl { @@ -262,16 +145,7 @@ pub struct ITextReverseConversionGenerator_Vtbl { pub LanguageAvailableButNotInstalled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub ConvertBackAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITextReverseConversionGenerator2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITextReverseConversionGenerator2 { - type Vtable = ITextReverseConversionGenerator2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITextReverseConversionGenerator2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1aafd2ec_85d6_46fd_828a_3a4830fa6e18); -} +::windows_core::imp::com_interface!(ITextReverseConversionGenerator2, ITextReverseConversionGenerator2_Vtbl, 0x1aafd2ec_85d6_46fd_828a_3a4830fa6e18); #[repr(C)] #[doc(hidden)] pub struct ITextReverseConversionGenerator2_Vtbl { @@ -281,32 +155,14 @@ pub struct ITextReverseConversionGenerator2_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetPhonemesAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITextReverseConversionGeneratorFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITextReverseConversionGeneratorFactory { - type Vtable = ITextReverseConversionGeneratorFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITextReverseConversionGeneratorFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x63bed326_1fda_41f6_89d5_23ddea3c729a); -} +::windows_core::imp::com_interface!(ITextReverseConversionGeneratorFactory, ITextReverseConversionGeneratorFactory_Vtbl, 0x63bed326_1fda_41f6_89d5_23ddea3c729a); #[repr(C)] #[doc(hidden)] pub struct ITextReverseConversionGeneratorFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, languagetag: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUnicodeCharactersStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUnicodeCharactersStatics { - type Vtable = IUnicodeCharactersStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUnicodeCharactersStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x97909e87_9291_4f91_b6c8_b6e359d7a7fb); -} +::windows_core::imp::com_interface!(IUnicodeCharactersStatics, IUnicodeCharactersStatics_Vtbl, 0x97909e87_9291_4f91_b6c8_b6e359d7a7fb); #[repr(C)] #[doc(hidden)] pub struct IUnicodeCharactersStatics_Vtbl { @@ -329,16 +185,7 @@ pub struct IUnicodeCharactersStatics_Vtbl { pub GetNumericType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, codepoint: u32, result__: *mut UnicodeNumericType) -> ::windows_core::HRESULT, pub GetGeneralCategory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, codepoint: u32, result__: *mut UnicodeGeneralCategory) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWordSegment(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWordSegment { - type Vtable = IWordSegment_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWordSegment { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd2d4ba6d_987c_4cc0_b6bd_d49a11b38f9a); -} +::windows_core::imp::com_interface!(IWordSegment, IWordSegment_Vtbl, 0xd2d4ba6d_987c_4cc0_b6bd_d49a11b38f9a); #[repr(C)] #[doc(hidden)] pub struct IWordSegment_Vtbl { @@ -350,16 +197,7 @@ pub struct IWordSegment_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] AlternateForms: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWordsSegmenter(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWordsSegmenter { - type Vtable = IWordsSegmenter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWordsSegmenter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x86b4d4d1_b2fe_4e34_a81d_66640300454f); -} +::windows_core::imp::com_interface!(IWordsSegmenter, IWordsSegmenter_Vtbl, 0x86b4d4d1_b2fe_4e34_a81d_66640300454f); #[repr(C)] #[doc(hidden)] pub struct IWordsSegmenter_Vtbl { @@ -375,16 +213,7 @@ pub struct IWordsSegmenter_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Tokenize: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWordsSegmenterFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWordsSegmenterFactory { - type Vtable = IWordsSegmenterFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWordsSegmenterFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe6977274_fc35_455c_8bfb_6d7f4653ca97); -} +::windows_core::imp::com_interface!(IWordsSegmenterFactory, IWordsSegmenterFactory_Vtbl, 0xe6977274_fc35_455c_8bfb_6d7f4653ca97); #[repr(C)] #[doc(hidden)] pub struct IWordsSegmenterFactory_Vtbl { @@ -394,6 +223,7 @@ pub struct IWordsSegmenterFactory_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AlternateWordForm(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AlternateWordForm, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AlternateWordForm { pub fn SourceTextSegment(&self) -> ::windows_core::Result { let this = self; @@ -422,19 +252,17 @@ impl ::windows_core::RuntimeType for AlternateWordForm { } unsafe impl ::windows_core::Interface for AlternateWordForm { type Vtable = IAlternateWordForm_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AlternateWordForm { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AlternateWordForm { const NAME: &'static str = "Windows.Data.Text.AlternateWordForm"; } -::windows_core::imp::interface_hierarchy!(AlternateWordForm, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AlternateWordForm {} unsafe impl ::core::marker::Sync for AlternateWordForm {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SelectableWordSegment(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SelectableWordSegment, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SelectableWordSegment { pub fn Text(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -456,19 +284,17 @@ impl ::windows_core::RuntimeType for SelectableWordSegment { } unsafe impl ::windows_core::Interface for SelectableWordSegment { type Vtable = ISelectableWordSegment_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SelectableWordSegment { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SelectableWordSegment { const NAME: &'static str = "Windows.Data.Text.SelectableWordSegment"; } -::windows_core::imp::interface_hierarchy!(SelectableWordSegment, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SelectableWordSegment {} unsafe impl ::core::marker::Sync for SelectableWordSegment {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SelectableWordsSegmenter(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SelectableWordsSegmenter, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SelectableWordsSegmenter { pub fn ResolvedLanguage(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -519,19 +345,17 @@ impl ::windows_core::RuntimeType for SelectableWordsSegmenter { } unsafe impl ::windows_core::Interface for SelectableWordsSegmenter { type Vtable = ISelectableWordsSegmenter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SelectableWordsSegmenter { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SelectableWordsSegmenter { const NAME: &'static str = "Windows.Data.Text.SelectableWordsSegmenter"; } -::windows_core::imp::interface_hierarchy!(SelectableWordsSegmenter, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SelectableWordsSegmenter {} unsafe impl ::core::marker::Sync for SelectableWordsSegmenter {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SemanticTextQuery(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SemanticTextQuery, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SemanticTextQuery { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -574,19 +398,17 @@ impl ::windows_core::RuntimeType for SemanticTextQuery { } unsafe impl ::windows_core::Interface for SemanticTextQuery { type Vtable = ISemanticTextQuery_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SemanticTextQuery { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SemanticTextQuery { const NAME: &'static str = "Windows.Data.Text.SemanticTextQuery"; } -::windows_core::imp::interface_hierarchy!(SemanticTextQuery, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SemanticTextQuery {} unsafe impl ::core::marker::Sync for SemanticTextQuery {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct TextConversionGenerator(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(TextConversionGenerator, ::windows_core::IUnknown, ::windows_core::IInspectable); impl TextConversionGenerator { pub fn ResolvedLanguage(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -637,19 +459,17 @@ impl ::windows_core::RuntimeType for TextConversionGenerator { } unsafe impl ::windows_core::Interface for TextConversionGenerator { type Vtable = ITextConversionGenerator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TextConversionGenerator { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for TextConversionGenerator { const NAME: &'static str = "Windows.Data.Text.TextConversionGenerator"; } -::windows_core::imp::interface_hierarchy!(TextConversionGenerator, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for TextConversionGenerator {} unsafe impl ::core::marker::Sync for TextConversionGenerator {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct TextPhoneme(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(TextPhoneme, ::windows_core::IUnknown, ::windows_core::IInspectable); impl TextPhoneme { pub fn DisplayText(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -671,19 +491,17 @@ impl ::windows_core::RuntimeType for TextPhoneme { } unsafe impl ::windows_core::Interface for TextPhoneme { type Vtable = ITextPhoneme_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TextPhoneme { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for TextPhoneme { const NAME: &'static str = "Windows.Data.Text.TextPhoneme"; } -::windows_core::imp::interface_hierarchy!(TextPhoneme, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for TextPhoneme {} unsafe impl ::core::marker::Sync for TextPhoneme {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct TextPredictionGenerator(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(TextPredictionGenerator, ::windows_core::IUnknown, ::windows_core::IInspectable); impl TextPredictionGenerator { pub fn ResolvedLanguage(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -721,30 +539,30 @@ 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::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetNextWordCandidatesAsync(&self, maxcandidates: u32, previousstrings: P0) -> ::windows_core::Result>> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).GetNextWordCandidatesAsync)(::windows_core::Interface::as_raw(this), maxcandidates, previousstrings.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"UI_Text_Core\"`"] #[cfg(feature = "UI_Text_Core")] pub fn InputScope(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).InputScope)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -753,7 +571,7 @@ impl TextPredictionGenerator { #[doc = "Required features: `\"UI_Text_Core\"`"] #[cfg(feature = "UI_Text_Core")] pub fn SetInputScope(&self, value: super::super::UI::Text::Core::CoreTextInputScope) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetInputScope)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Create(languagetag: &::windows_core::HSTRING) -> ::windows_core::Result { @@ -773,19 +591,17 @@ impl ::windows_core::RuntimeType for TextPredictionGenerator { } unsafe impl ::windows_core::Interface for TextPredictionGenerator { type Vtable = ITextPredictionGenerator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TextPredictionGenerator { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for TextPredictionGenerator { const NAME: &'static str = "Windows.Data.Text.TextPredictionGenerator"; } -::windows_core::imp::interface_hierarchy!(TextPredictionGenerator, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for TextPredictionGenerator {} unsafe impl ::core::marker::Sync for TextPredictionGenerator {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct TextReverseConversionGenerator(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(TextReverseConversionGenerator, ::windows_core::IUnknown, ::windows_core::IInspectable); impl TextReverseConversionGenerator { pub fn ResolvedLanguage(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -811,7 +627,7 @@ impl TextReverseConversionGenerator { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetPhonemesAsync(&self, input: &::windows_core::HSTRING) -> ::windows_core::Result>> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetPhonemesAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(input), &mut result__).from_abi(result__) @@ -834,14 +650,11 @@ impl ::windows_core::RuntimeType for TextReverseConversionGenerator { } unsafe impl ::windows_core::Interface for TextReverseConversionGenerator { type Vtable = ITextReverseConversionGenerator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TextReverseConversionGenerator { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for TextReverseConversionGenerator { const NAME: &'static str = "Windows.Data.Text.TextReverseConversionGenerator"; } -::windows_core::imp::interface_hierarchy!(TextReverseConversionGenerator, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for TextReverseConversionGenerator {} unsafe impl ::core::marker::Sync for TextReverseConversionGenerator {} pub struct UnicodeCharacters; @@ -957,6 +770,7 @@ impl ::windows_core::RuntimeName for UnicodeCharacters { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WordSegment(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WordSegment, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WordSegment { pub fn Text(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -987,19 +801,17 @@ impl ::windows_core::RuntimeType for WordSegment { } unsafe impl ::windows_core::Interface for WordSegment { type Vtable = IWordSegment_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WordSegment { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WordSegment { const NAME: &'static str = "Windows.Data.Text.WordSegment"; } -::windows_core::imp::interface_hierarchy!(WordSegment, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for WordSegment {} unsafe impl ::core::marker::Sync for WordSegment {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WordsSegmenter(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WordsSegmenter, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WordsSegmenter { pub fn ResolvedLanguage(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1050,14 +862,11 @@ impl ::windows_core::RuntimeType for WordsSegmenter { } unsafe impl ::windows_core::Interface for WordsSegmenter { type Vtable = IWordsSegmenter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WordsSegmenter { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WordsSegmenter { const NAME: &'static str = "Windows.Data.Text.WordsSegmenter"; } -::windows_core::imp::interface_hierarchy!(WordsSegmenter, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for WordsSegmenter {} unsafe impl ::core::marker::Sync for WordsSegmenter {} #[repr(transparent)] @@ -1232,11 +1041,8 @@ impl ::core::default::Default for TextSegment { unsafe { ::core::mem::zeroed() } } } -#[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct SelectableWordSegmentsTokenizingHandler(pub ::windows_core::IUnknown); +::windows_core::imp::com_interface!(SelectableWordSegmentsTokenizingHandler, SelectableWordSegmentsTokenizingHandler_Vtbl, 0x3a3dfc9c_aede_4dc7_9e6c_41c044bd3592); #[cfg(feature = "Foundation_Collections")] impl SelectableWordSegmentsTokenizingHandler { pub fn new>, ::core::option::Option<&super::super::Foundation::Collections::IIterable>) -> ::windows_core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { @@ -1247,11 +1053,11 @@ impl SelectableWordSegmentsTokenizingHandler { #[cfg(feature = "Foundation_Collections")] pub fn Invoke(&self, precedingwords: P0, words: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, - P1: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, + P1: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).Invoke)(::windows_core::Interface::as_raw(this), precedingwords.try_into_param()?.abi(), words.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).Invoke)(::windows_core::Interface::as_raw(this), precedingwords.into_param().abi(), words.into_param().abi()).ok() } } } #[cfg(feature = "Foundation_Collections")] @@ -1272,7 +1078,7 @@ impl::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; + *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::Interface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::Interface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; if (*interface).is_null() { ::windows_core::HRESULT(-2147467262) } else { @@ -1298,14 +1104,6 @@ impl(); } @@ -1319,11 +1117,8 @@ pub struct SelectableWordSegmentsTokenizingHandler_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Invoke: usize, } -#[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct WordSegmentsTokenizingHandler(pub ::windows_core::IUnknown); +::windows_core::imp::com_interface!(WordSegmentsTokenizingHandler, WordSegmentsTokenizingHandler_Vtbl, 0xa5dd6357_bf2a_4c4f_a31f_29e71c6f8b35); #[cfg(feature = "Foundation_Collections")] impl WordSegmentsTokenizingHandler { pub fn new>, ::core::option::Option<&super::super::Foundation::Collections::IIterable>) -> ::windows_core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { @@ -1334,11 +1129,11 @@ impl WordSegmentsTokenizingHandler { #[cfg(feature = "Foundation_Collections")] pub fn Invoke(&self, precedingwords: P0, words: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, - P1: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, + P1: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).Invoke)(::windows_core::Interface::as_raw(this), precedingwords.try_into_param()?.abi(), words.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).Invoke)(::windows_core::Interface::as_raw(this), precedingwords.into_param().abi(), words.into_param().abi()).ok() } } } #[cfg(feature = "Foundation_Collections")] @@ -1359,7 +1154,7 @@ impl::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; + *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::Interface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::Interface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; if (*interface).is_null() { ::windows_core::HRESULT(-2147467262) } else { @@ -1385,14 +1180,6 @@ impl(); } diff --git a/crates/libs/windows/src/Windows/Data/Xml/Dom/impl.rs b/crates/libs/windows/src/Windows/Data/Xml/Dom/impl.rs index fce70a2326..3726df00d7 100644 --- a/crates/libs/windows/src/Windows/Data/Xml/Dom/impl.rs +++ b/crates/libs/windows/src/Windows/Data/Xml/Dom/impl.rs @@ -86,7 +86,7 @@ impl IXmlCharacterData_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IXmlNode_Impl: Sized + IXmlNodeSelector_Impl + IXmlNodeSerializer_Impl { @@ -400,7 +400,7 @@ impl IXmlNode_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IXmlNodeSelector_Impl: Sized { @@ -471,7 +471,7 @@ impl IXmlNodeSelector_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IXmlNodeSerializer_Impl: Sized { @@ -521,7 +521,7 @@ impl IXmlNodeSerializer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IXmlText_Impl: Sized + IXmlCharacterData_Impl + IXmlNode_Impl + IXmlNodeSelector_Impl + IXmlNodeSerializer_Impl { @@ -547,6 +547,6 @@ impl IXmlText_Vtbl { Self { base__: ::windows_core::IInspectable_Vtbl::new::(), SplitText: SplitText:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 8ee821189b..25dd16cc1b 100644 --- a/crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs +++ b/crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDtdEntity(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDtdEntity { - type Vtable = IDtdEntity_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDtdEntity { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6a0b5ffc_63b4_480f_9e6a_8a92816aade4); -} +::windows_core::imp::com_interface!(IDtdEntity, IDtdEntity_Vtbl, 0x6a0b5ffc_63b4_480f_9e6a_8a92816aade4); #[repr(C)] #[doc(hidden)] pub struct IDtdEntity_Vtbl { @@ -16,16 +7,7 @@ pub struct IDtdEntity_Vtbl { pub SystemId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub NotationName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDtdNotation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDtdNotation { - type Vtable = IDtdNotation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDtdNotation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8cb4e04d_6d46_4edb_ab73_df83c51ad397); -} +::windows_core::imp::com_interface!(IDtdNotation, IDtdNotation_Vtbl, 0x8cb4e04d_6d46_4edb_ab73_df83c51ad397); #[repr(C)] #[doc(hidden)] pub struct IDtdNotation_Vtbl { @@ -33,16 +15,7 @@ pub struct IDtdNotation_Vtbl { pub PublicId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SystemId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXmlAttribute(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXmlAttribute { - type Vtable = IXmlAttribute_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXmlAttribute { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xac144aa4_b4f1_4db6_b206_8a22c308db0a); -} +::windows_core::imp::com_interface!(IXmlAttribute, IXmlAttribute_Vtbl, 0xac144aa4_b4f1_4db6_b206_8a22c308db0a); #[repr(C)] #[doc(hidden)] pub struct IXmlAttribute_Vtbl { @@ -52,24 +25,15 @@ pub struct IXmlAttribute_Vtbl { pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXmlCDataSection(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXmlCDataSection { - type Vtable = IXmlCDataSection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXmlCDataSection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4d04b46f_c8bd_45b4_8899_0400d7c2c60f); -} +::windows_core::imp::com_interface!(IXmlCDataSection, IXmlCDataSection_Vtbl, 0x4d04b46f_c8bd_45b4_8899_0400d7c2c60f); #[repr(C)] #[doc(hidden)] pub struct IXmlCDataSection_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXmlCharacterData(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXmlCharacterData, IXmlCharacterData_Vtbl, 0x132e42ab_4e36_4df6_b1c8_0ce62fd88b26); +::windows_core::imp::interface_hierarchy!(IXmlCharacterData, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IXmlCharacterData, IXmlNode, IXmlNodeSelector, IXmlNodeSerializer); impl IXmlCharacterData { pub fn Data(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -113,7 +77,7 @@ impl IXmlCharacterData { unsafe { (::windows_core::Interface::vtable(this).ReplaceData)(::windows_core::Interface::as_raw(this), offset, count, ::core::mem::transmute_copy(data)).ok() } } pub fn NodeValue(&self) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeValue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -123,81 +87,81 @@ impl IXmlCharacterData { where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn NodeType(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn NodeName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ParentNode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ParentNode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ChildNodes(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ChildNodes)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn FirstChild(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FirstChild)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn LastChild(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).LastChild)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousSibling(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousSibling)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn NextSibling(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NextSibling)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Attributes(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Attributes)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn HasChildNodes(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).HasChildNodes)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn OwnerDocument(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OwnerDocument)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -205,94 +169,94 @@ impl IXmlCharacterData { } pub fn InsertBefore(&self, newchild: P0, referencechild: P1) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), referencechild.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).InsertBefore)(::windows_core::Interface::as_raw(this), newchild.into_param().abi(), referencechild.into_param().abi(), &mut result__).from_abi(result__) } } pub fn ReplaceChild(&self, newchild: P0, referencechild: P1) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), referencechild.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ReplaceChild)(::windows_core::Interface::as_raw(this), newchild.into_param().abi(), referencechild.into_param().abi(), &mut result__).from_abi(result__) } } pub fn RemoveChild(&self, childnode: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).RemoveChild)(::windows_core::Interface::as_raw(this), childnode.into_param().abi(), &mut result__).from_abi(result__) } } pub fn AppendChild(&self, newchild: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).AppendChild)(::windows_core::Interface::as_raw(this), newchild.into_param().abi(), &mut result__).from_abi(result__) } } pub fn CloneNode(&self, deep: bool) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CloneNode)(::windows_core::Interface::as_raw(this), deep, &mut result__).from_abi(result__) } } pub fn NamespaceUri(&self) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NamespaceUri)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn LocalName(&self) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).LocalName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Prefix(&self) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Prefix)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Normalize(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Normalize)(::windows_core::Interface::as_raw(this)).ok() } } pub fn SetPrefix(&self, value: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn SelectSingleNode(&self, xpath: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SelectSingleNode)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(xpath), &mut result__).from_abi(result__) } } pub fn SelectNodes(&self, xpath: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SelectNodes)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(xpath), &mut result__).from_abi(result__) @@ -302,7 +266,7 @@ impl IXmlCharacterData { where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -312,44 +276,34 @@ impl IXmlCharacterData { where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn GetXml(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetXml)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn InnerText(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).InnerText)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetInnerText(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetInnerText)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } } -::windows_core::imp::interface_hierarchy!(IXmlCharacterData, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IXmlCharacterData {} -impl ::windows_core::CanTryInto for IXmlCharacterData {} -impl ::windows_core::CanTryInto for IXmlCharacterData {} impl ::windows_core::RuntimeType for IXmlCharacterData { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IXmlCharacterData { - type Vtable = IXmlCharacterData_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXmlCharacterData { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x132e42ab_4e36_4df6_b1c8_0ce62fd88b26); -} #[repr(C)] #[doc(hidden)] pub struct IXmlCharacterData_Vtbl { @@ -363,31 +317,13 @@ pub struct IXmlCharacterData_Vtbl { pub DeleteData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, offset: u32, count: u32) -> ::windows_core::HRESULT, pub ReplaceData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, offset: u32, count: u32, data: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXmlComment(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXmlComment { - type Vtable = IXmlComment_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXmlComment { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbca474d5_b61f_4611_9cac_2e92e3476d47); -} +::windows_core::imp::com_interface!(IXmlComment, IXmlComment_Vtbl, 0xbca474d5_b61f_4611_9cac_2e92e3476d47); #[repr(C)] #[doc(hidden)] pub struct IXmlComment_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXmlDocument(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXmlDocument { - type Vtable = IXmlDocument_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXmlDocument { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf7f3a506_1e87_42d6_bcfb_b8c809fa5494); -} +::windows_core::imp::com_interface!(IXmlDocument, IXmlDocument_Vtbl, 0xf7f3a506_1e87_42d6_bcfb_b8c809fa5494); #[repr(C)] #[doc(hidden)] pub struct IXmlDocument_Vtbl { @@ -410,31 +346,13 @@ pub struct IXmlDocument_Vtbl { pub GetElementById: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, elementid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ImportNode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, node: *mut ::core::ffi::c_void, deep: bool, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXmlDocumentFragment(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXmlDocumentFragment { - type Vtable = IXmlDocumentFragment_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXmlDocumentFragment { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe2ea6a96_0c21_44a5_8bc9_9e4a262708ec); -} +::windows_core::imp::com_interface!(IXmlDocumentFragment, IXmlDocumentFragment_Vtbl, 0xe2ea6a96_0c21_44a5_8bc9_9e4a262708ec); #[repr(C)] #[doc(hidden)] pub struct IXmlDocumentFragment_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXmlDocumentIO(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXmlDocumentIO { - type Vtable = IXmlDocumentIO_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXmlDocumentIO { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6cd0e74e_ee65_4489_9ebf_ca43e87ba637); -} +::windows_core::imp::com_interface!(IXmlDocumentIO, IXmlDocumentIO_Vtbl, 0x6cd0e74e_ee65_4489_9ebf_ca43e87ba637); #[repr(C)] #[doc(hidden)] pub struct IXmlDocumentIO_Vtbl { @@ -446,16 +364,7 @@ pub struct IXmlDocumentIO_Vtbl { #[cfg(not(feature = "Storage"))] SaveToFileAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXmlDocumentIO2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXmlDocumentIO2 { - type Vtable = IXmlDocumentIO2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXmlDocumentIO2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5d034661_7bd8_4ad5_9ebf_81e6347263b1); -} +::windows_core::imp::com_interface!(IXmlDocumentIO2, IXmlDocumentIO2_Vtbl, 0x5d034661_7bd8_4ad5_9ebf_81e6347263b1); #[repr(C)] #[doc(hidden)] pub struct IXmlDocumentIO2_Vtbl { @@ -469,16 +378,7 @@ pub struct IXmlDocumentIO2_Vtbl { #[cfg(not(feature = "Storage_Streams"))] LoadXmlFromBufferWithSettings: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXmlDocumentStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXmlDocumentStatics { - type Vtable = IXmlDocumentStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXmlDocumentStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5543d254_d757_4b79_9539_232b18f50bf1); -} +::windows_core::imp::com_interface!(IXmlDocumentStatics, IXmlDocumentStatics_Vtbl, 0x5543d254_d757_4b79_9539_232b18f50bf1); #[repr(C)] #[doc(hidden)] pub struct IXmlDocumentStatics_Vtbl { @@ -494,16 +394,7 @@ pub struct IXmlDocumentStatics_Vtbl { #[cfg(not(feature = "Storage"))] LoadFromFileWithSettingsAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXmlDocumentType(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXmlDocumentType { - type Vtable = IXmlDocumentType_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXmlDocumentType { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf7342425_9781_4964_8e94_9b1c6dfc9bc7); -} +::windows_core::imp::com_interface!(IXmlDocumentType, IXmlDocumentType_Vtbl, 0xf7342425_9781_4964_8e94_9b1c6dfc9bc7); #[repr(C)] #[doc(hidden)] pub struct IXmlDocumentType_Vtbl { @@ -512,32 +403,14 @@ pub struct IXmlDocumentType_Vtbl { pub Entities: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Notations: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXmlDomImplementation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXmlDomImplementation { - type Vtable = IXmlDomImplementation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXmlDomImplementation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6de58132_f11d_4fbb_8cc6_583cba93112f); -} +::windows_core::imp::com_interface!(IXmlDomImplementation, IXmlDomImplementation_Vtbl, 0x6de58132_f11d_4fbb_8cc6_583cba93112f); #[repr(C)] #[doc(hidden)] pub struct IXmlDomImplementation_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub HasFeature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, feature: ::std::mem::MaybeUninit<::windows_core::HSTRING>, version: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXmlElement(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXmlElement { - type Vtable = IXmlElement_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXmlElement { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2dfb8a1f_6b10_4ef8_9f83_efcce8faec37); -} +::windows_core::imp::com_interface!(IXmlElement, IXmlElement_Vtbl, 0x2dfb8a1f_6b10_4ef8_9f83_efcce8faec37); #[repr(C)] #[doc(hidden)] pub struct IXmlElement_Vtbl { @@ -556,31 +429,13 @@ pub struct IXmlElement_Vtbl { pub SetAttributeNodeNS: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newattribute: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetAttributeNodeNS: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, namespaceuri: *mut ::core::ffi::c_void, localname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXmlEntityReference(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXmlEntityReference { - type Vtable = IXmlEntityReference_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXmlEntityReference { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2e2f47bc_c3d0_4ccf_bb86_0ab8c36a61cf); -} +::windows_core::imp::com_interface!(IXmlEntityReference, IXmlEntityReference_Vtbl, 0x2e2f47bc_c3d0_4ccf_bb86_0ab8c36a61cf); #[repr(C)] #[doc(hidden)] pub struct IXmlEntityReference_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXmlLoadSettings(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXmlLoadSettings { - type Vtable = IXmlLoadSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXmlLoadSettings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x58aa07a8_fed6_46f7_b4c5_fb1ba72108d6); -} +::windows_core::imp::com_interface!(IXmlLoadSettings, IXmlLoadSettings_Vtbl, 0x58aa07a8_fed6_46f7_b4c5_fb1ba72108d6); #[repr(C)] #[doc(hidden)] pub struct IXmlLoadSettings_Vtbl { @@ -596,16 +451,7 @@ pub struct IXmlLoadSettings_Vtbl { pub ElementContentWhiteSpace: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetElementContentWhiteSpace: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXmlNamedNodeMap(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXmlNamedNodeMap { - type Vtable = IXmlNamedNodeMap_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXmlNamedNodeMap { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb3a69eb0_aab0_4b82_a6fa_b1453f7c021b); -} +::windows_core::imp::com_interface!(IXmlNamedNodeMap, IXmlNamedNodeMap_Vtbl, 0xb3a69eb0_aab0_4b82_a6fa_b1453f7c021b); #[repr(C)] #[doc(hidden)] pub struct IXmlNamedNodeMap_Vtbl { @@ -619,9 +465,9 @@ pub struct IXmlNamedNodeMap_Vtbl { pub RemoveNamedItemNS: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, namespaceuri: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetNamedItemNS: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, node: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXmlNode(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXmlNode, IXmlNode_Vtbl, 0x1c741d59_2122_47d5_a856_83f3d4214875); +::windows_core::imp::interface_hierarchy!(IXmlNode, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IXmlNode, IXmlNodeSelector, IXmlNodeSerializer); impl IXmlNode { pub fn NodeValue(&self) -> ::windows_core::Result<::windows_core::IInspectable> { let this = self; @@ -716,44 +562,44 @@ impl IXmlNode { } pub fn InsertBefore(&self, newchild: P0, referencechild: P1) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).InsertBefore)(::windows_core::Interface::as_raw(this), newchild.try_into_param()?.abi(), referencechild.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).InsertBefore)(::windows_core::Interface::as_raw(this), newchild.into_param().abi(), referencechild.into_param().abi(), &mut result__).from_abi(result__) } } pub fn ReplaceChild(&self, newchild: P0, referencechild: P1) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).ReplaceChild)(::windows_core::Interface::as_raw(this), newchild.try_into_param()?.abi(), referencechild.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ReplaceChild)(::windows_core::Interface::as_raw(this), newchild.into_param().abi(), referencechild.into_param().abi(), &mut result__).from_abi(result__) } } pub fn RemoveChild(&self, childnode: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).RemoveChild)(::windows_core::Interface::as_raw(this), childnode.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).RemoveChild)(::windows_core::Interface::as_raw(this), childnode.into_param().abi(), &mut result__).from_abi(result__) } } pub fn AppendChild(&self, newchild: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).AppendChild)(::windows_core::Interface::as_raw(this), newchild.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).AppendChild)(::windows_core::Interface::as_raw(this), newchild.into_param().abi(), &mut result__).from_abi(result__) } } pub fn CloneNode(&self, deep: bool) -> ::windows_core::Result { @@ -796,14 +642,14 @@ impl IXmlNode { unsafe { (::windows_core::Interface::vtable(this).SetPrefix)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn SelectSingleNode(&self, xpath: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SelectSingleNode)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(xpath), &mut result__).from_abi(result__) } } pub fn SelectNodes(&self, xpath: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SelectNodes)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(xpath), &mut result__).from_abi(result__) @@ -813,7 +659,7 @@ impl IXmlNode { where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -823,43 +669,34 @@ impl IXmlNode { where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn GetXml(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetXml)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn InnerText(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).InnerText)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetInnerText(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetInnerText)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } } -::windows_core::imp::interface_hierarchy!(IXmlNode, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IXmlNode {} -impl ::windows_core::CanTryInto for IXmlNode {} impl ::windows_core::RuntimeType for IXmlNode { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IXmlNode { - type Vtable = IXmlNode_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXmlNode { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1c741d59_2122_47d5_a856_83f3d4214875); -} #[repr(C)] #[doc(hidden)] pub struct IXmlNode_Vtbl { @@ -888,16 +725,7 @@ pub struct IXmlNode_Vtbl { pub Normalize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetPrefix: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXmlNodeList(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXmlNodeList { - type Vtable = IXmlNodeList_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXmlNodeList { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8c60ad77_83a4_4ec1_9c54_7ba429e13da6); -} +::windows_core::imp::com_interface!(IXmlNodeList, IXmlNodeList_Vtbl, 0x8c60ad77_83a4_4ec1_9c54_7ba429e13da6); #[repr(C)] #[doc(hidden)] pub struct IXmlNodeList_Vtbl { @@ -905,9 +733,8 @@ pub struct IXmlNodeList_Vtbl { pub Length: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, pub Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXmlNodeSelector(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXmlNodeSelector, IXmlNodeSelector_Vtbl, 0x63dbba8b_d0db_4fe1_b745_f9433afdc25b); +::windows_core::imp::interface_hierarchy!(IXmlNodeSelector, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IXmlNodeSelector { pub fn SelectSingleNode(&self, xpath: &::windows_core::HSTRING) -> ::windows_core::Result { let this = self; @@ -944,16 +771,9 @@ impl IXmlNodeSelector { } } } -::windows_core::imp::interface_hierarchy!(IXmlNodeSelector, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IXmlNodeSelector { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IXmlNodeSelector { - type Vtable = IXmlNodeSelector_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXmlNodeSelector { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x63dbba8b_d0db_4fe1_b745_f9433afdc25b); -} #[repr(C)] #[doc(hidden)] pub struct IXmlNodeSelector_Vtbl { @@ -963,9 +783,8 @@ pub struct IXmlNodeSelector_Vtbl { pub SelectSingleNodeNS: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, xpath: ::std::mem::MaybeUninit<::windows_core::HSTRING>, namespaces: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SelectNodesNS: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, xpath: ::std::mem::MaybeUninit<::windows_core::HSTRING>, namespaces: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXmlNodeSerializer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXmlNodeSerializer, IXmlNodeSerializer_Vtbl, 0x5cc5b382_e6dd_4991_abef_06d8d2e7bd0c); +::windows_core::imp::interface_hierarchy!(IXmlNodeSerializer, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IXmlNodeSerializer { pub fn GetXml(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -986,16 +805,9 @@ impl IXmlNodeSerializer { unsafe { (::windows_core::Interface::vtable(this).SetInnerText)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } } -::windows_core::imp::interface_hierarchy!(IXmlNodeSerializer, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IXmlNodeSerializer { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IXmlNodeSerializer { - type Vtable = IXmlNodeSerializer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXmlNodeSerializer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5cc5b382_e6dd_4991_abef_06d8d2e7bd0c); -} #[repr(C)] #[doc(hidden)] pub struct IXmlNodeSerializer_Vtbl { @@ -1004,16 +816,7 @@ pub struct IXmlNodeSerializer_Vtbl { pub InnerText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetInnerText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXmlProcessingInstruction(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXmlProcessingInstruction { - type Vtable = IXmlProcessingInstruction_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXmlProcessingInstruction { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2707fd1e_1e92_4ece_b6f4_26f069078ddc); -} +::windows_core::imp::com_interface!(IXmlProcessingInstruction, IXmlProcessingInstruction_Vtbl, 0x2707fd1e_1e92_4ece_b6f4_26f069078ddc); #[repr(C)] #[doc(hidden)] pub struct IXmlProcessingInstruction_Vtbl { @@ -1022,9 +825,9 @@ pub struct IXmlProcessingInstruction_Vtbl { pub Data: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXmlText(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXmlText, IXmlText_Vtbl, 0xf931a4cb_308d_4760_a1d5_43b67450ac7e); +::windows_core::imp::interface_hierarchy!(IXmlText, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IXmlText, IXmlCharacterData, IXmlNode, IXmlNodeSelector, IXmlNodeSerializer); impl IXmlText { pub fn SplitText(&self, offset: u32) -> ::windows_core::Result { let this = self; @@ -1034,48 +837,48 @@ impl IXmlText { } } pub fn Data(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Data)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetData(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetData)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn Length(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Length)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SubstringData(&self, offset: u32, count: u32) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SubstringData)(::windows_core::Interface::as_raw(this), offset, count, &mut result__).from_abi(result__) } } pub fn AppendData(&self, data: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).AppendData)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(data)).ok() } } pub fn InsertData(&self, offset: u32, data: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).InsertData)(::windows_core::Interface::as_raw(this), offset, ::core::mem::transmute_copy(data)).ok() } } pub fn DeleteData(&self, offset: u32, count: u32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).DeleteData)(::windows_core::Interface::as_raw(this), offset, count).ok() } } pub fn ReplaceData(&self, offset: u32, count: u32, data: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ReplaceData)(::windows_core::Interface::as_raw(this), offset, count, ::core::mem::transmute_copy(data)).ok() } } pub fn NodeValue(&self) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeValue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1085,81 +888,81 @@ impl IXmlText { where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn NodeType(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn NodeName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ParentNode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ParentNode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ChildNodes(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ChildNodes)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn FirstChild(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FirstChild)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn LastChild(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).LastChild)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousSibling(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousSibling)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn NextSibling(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NextSibling)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Attributes(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Attributes)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn HasChildNodes(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).HasChildNodes)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn OwnerDocument(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OwnerDocument)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1167,94 +970,94 @@ impl IXmlText { } pub fn InsertBefore(&self, newchild: P0, referencechild: P1) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), referencechild.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).InsertBefore)(::windows_core::Interface::as_raw(this), newchild.into_param().abi(), referencechild.into_param().abi(), &mut result__).from_abi(result__) } } pub fn ReplaceChild(&self, newchild: P0, referencechild: P1) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), referencechild.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ReplaceChild)(::windows_core::Interface::as_raw(this), newchild.into_param().abi(), referencechild.into_param().abi(), &mut result__).from_abi(result__) } } pub fn RemoveChild(&self, childnode: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).RemoveChild)(::windows_core::Interface::as_raw(this), childnode.into_param().abi(), &mut result__).from_abi(result__) } } pub fn AppendChild(&self, newchild: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).AppendChild)(::windows_core::Interface::as_raw(this), newchild.into_param().abi(), &mut result__).from_abi(result__) } } pub fn CloneNode(&self, deep: bool) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CloneNode)(::windows_core::Interface::as_raw(this), deep, &mut result__).from_abi(result__) } } pub fn NamespaceUri(&self) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NamespaceUri)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn LocalName(&self) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).LocalName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Prefix(&self) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Prefix)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Normalize(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Normalize)(::windows_core::Interface::as_raw(this)).ok() } } pub fn SetPrefix(&self, value: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn SelectSingleNode(&self, xpath: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SelectSingleNode)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(xpath), &mut result__).from_abi(result__) } } pub fn SelectNodes(&self, xpath: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SelectNodes)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(xpath), &mut result__).from_abi(result__) @@ -1264,7 +1067,7 @@ impl IXmlText { where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -1274,45 +1077,34 @@ impl IXmlText { where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn GetXml(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetXml)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn InnerText(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).InnerText)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetInnerText(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetInnerText)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } } -::windows_core::imp::interface_hierarchy!(IXmlText, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IXmlText {} -impl ::windows_core::CanTryInto for IXmlText {} -impl ::windows_core::CanTryInto for IXmlText {} -impl ::windows_core::CanTryInto for IXmlText {} impl ::windows_core::RuntimeType for IXmlText { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IXmlText { - type Vtable = IXmlText_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXmlText { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf931a4cb_308d_4760_a1d5_43b67450ac7e); -} #[repr(C)] #[doc(hidden)] pub struct IXmlText_Vtbl { @@ -1322,6 +1114,8 @@ pub struct IXmlText_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DtdEntity(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DtdEntity, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(DtdEntity, IXmlNode, IXmlNodeSelector, IXmlNodeSerializer); impl DtdEntity { pub fn PublicId(&self) -> ::windows_core::Result<::windows_core::IInspectable> { let this = self; @@ -1345,7 +1139,7 @@ impl DtdEntity { } } pub fn NodeValue(&self) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeValue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1355,81 +1149,81 @@ impl DtdEntity { where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn NodeType(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn NodeName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ParentNode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ParentNode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ChildNodes(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ChildNodes)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn FirstChild(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FirstChild)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn LastChild(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).LastChild)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousSibling(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousSibling)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn NextSibling(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NextSibling)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Attributes(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Attributes)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn HasChildNodes(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).HasChildNodes)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn OwnerDocument(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OwnerDocument)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1437,94 +1231,94 @@ impl DtdEntity { } pub fn InsertBefore(&self, newchild: P0, referencechild: P1) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), referencechild.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).InsertBefore)(::windows_core::Interface::as_raw(this), newchild.into_param().abi(), referencechild.into_param().abi(), &mut result__).from_abi(result__) } } pub fn ReplaceChild(&self, newchild: P0, referencechild: P1) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), referencechild.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ReplaceChild)(::windows_core::Interface::as_raw(this), newchild.into_param().abi(), referencechild.into_param().abi(), &mut result__).from_abi(result__) } } pub fn RemoveChild(&self, childnode: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).RemoveChild)(::windows_core::Interface::as_raw(this), childnode.into_param().abi(), &mut result__).from_abi(result__) } } pub fn AppendChild(&self, newchild: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).AppendChild)(::windows_core::Interface::as_raw(this), newchild.into_param().abi(), &mut result__).from_abi(result__) } } pub fn CloneNode(&self, deep: bool) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CloneNode)(::windows_core::Interface::as_raw(this), deep, &mut result__).from_abi(result__) } } pub fn NamespaceUri(&self) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NamespaceUri)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn LocalName(&self) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).LocalName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Prefix(&self) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Prefix)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Normalize(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Normalize)(::windows_core::Interface::as_raw(this)).ok() } } pub fn SetPrefix(&self, value: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn SelectSingleNode(&self, xpath: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SelectSingleNode)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(xpath), &mut result__).from_abi(result__) } } pub fn SelectNodes(&self, xpath: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SelectNodes)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(xpath), &mut result__).from_abi(result__) @@ -1534,7 +1328,7 @@ impl DtdEntity { where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -1544,28 +1338,28 @@ impl DtdEntity { where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn GetXml(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetXml)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn InnerText(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).InnerText)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetInnerText(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetInnerText)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } } @@ -1574,22 +1368,18 @@ impl ::windows_core::RuntimeType for DtdEntity { } unsafe impl ::windows_core::Interface for DtdEntity { type Vtable = IDtdEntity_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DtdEntity { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DtdEntity { const NAME: &'static str = "Windows.Data.Xml.Dom.DtdEntity"; } -::windows_core::imp::interface_hierarchy!(DtdEntity, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for DtdEntity {} -impl ::windows_core::CanTryInto for DtdEntity {} -impl ::windows_core::CanTryInto for DtdEntity {} unsafe impl ::core::marker::Send for DtdEntity {} unsafe impl ::core::marker::Sync for DtdEntity {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DtdNotation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DtdNotation, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(DtdNotation, IXmlNode, IXmlNodeSelector, IXmlNodeSerializer); impl DtdNotation { pub fn PublicId(&self) -> ::windows_core::Result<::windows_core::IInspectable> { let this = self; @@ -1606,7 +1396,7 @@ impl DtdNotation { } } pub fn NodeValue(&self) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeValue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1616,81 +1406,81 @@ impl DtdNotation { where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn NodeType(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn NodeName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ParentNode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ParentNode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ChildNodes(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ChildNodes)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn FirstChild(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FirstChild)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn LastChild(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).LastChild)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousSibling(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousSibling)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn NextSibling(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NextSibling)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Attributes(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Attributes)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn HasChildNodes(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).HasChildNodes)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn OwnerDocument(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OwnerDocument)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1698,94 +1488,94 @@ impl DtdNotation { } pub fn InsertBefore(&self, newchild: P0, referencechild: P1) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), referencechild.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).InsertBefore)(::windows_core::Interface::as_raw(this), newchild.into_param().abi(), referencechild.into_param().abi(), &mut result__).from_abi(result__) } } pub fn ReplaceChild(&self, newchild: P0, referencechild: P1) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), referencechild.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ReplaceChild)(::windows_core::Interface::as_raw(this), newchild.into_param().abi(), referencechild.into_param().abi(), &mut result__).from_abi(result__) } } pub fn RemoveChild(&self, childnode: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).RemoveChild)(::windows_core::Interface::as_raw(this), childnode.into_param().abi(), &mut result__).from_abi(result__) } } pub fn AppendChild(&self, newchild: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).AppendChild)(::windows_core::Interface::as_raw(this), newchild.into_param().abi(), &mut result__).from_abi(result__) } } pub fn CloneNode(&self, deep: bool) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CloneNode)(::windows_core::Interface::as_raw(this), deep, &mut result__).from_abi(result__) } } pub fn NamespaceUri(&self) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NamespaceUri)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn LocalName(&self) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).LocalName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Prefix(&self) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Prefix)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Normalize(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Normalize)(::windows_core::Interface::as_raw(this)).ok() } } pub fn SetPrefix(&self, value: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn SelectSingleNode(&self, xpath: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SelectSingleNode)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(xpath), &mut result__).from_abi(result__) } } pub fn SelectNodes(&self, xpath: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SelectNodes)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(xpath), &mut result__).from_abi(result__) @@ -1795,7 +1585,7 @@ impl DtdNotation { where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -1805,28 +1595,28 @@ impl DtdNotation { where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn GetXml(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetXml)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn InnerText(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).InnerText)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetInnerText(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetInnerText)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } } @@ -1835,22 +1625,18 @@ impl ::windows_core::RuntimeType for DtdNotation { } unsafe impl ::windows_core::Interface for DtdNotation { type Vtable = IDtdNotation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DtdNotation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DtdNotation { const NAME: &'static str = "Windows.Data.Xml.Dom.DtdNotation"; } -::windows_core::imp::interface_hierarchy!(DtdNotation, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for DtdNotation {} -impl ::windows_core::CanTryInto for DtdNotation {} -impl ::windows_core::CanTryInto for DtdNotation {} unsafe impl ::core::marker::Send for DtdNotation {} unsafe impl ::core::marker::Sync for DtdNotation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct XmlAttribute(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(XmlAttribute, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(XmlAttribute, IXmlNode, IXmlNodeSelector, IXmlNodeSerializer); impl XmlAttribute { pub fn Name(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1878,7 +1664,7 @@ impl XmlAttribute { unsafe { (::windows_core::Interface::vtable(this).SetValue)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn NodeValue(&self) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeValue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1888,81 +1674,81 @@ impl XmlAttribute { where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn NodeType(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn NodeName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ParentNode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ParentNode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ChildNodes(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ChildNodes)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn FirstChild(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FirstChild)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn LastChild(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).LastChild)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousSibling(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousSibling)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn NextSibling(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NextSibling)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Attributes(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Attributes)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn HasChildNodes(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).HasChildNodes)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn OwnerDocument(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OwnerDocument)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1970,94 +1756,94 @@ impl XmlAttribute { } pub fn InsertBefore(&self, newchild: P0, referencechild: P1) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), referencechild.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).InsertBefore)(::windows_core::Interface::as_raw(this), newchild.into_param().abi(), referencechild.into_param().abi(), &mut result__).from_abi(result__) } } pub fn ReplaceChild(&self, newchild: P0, referencechild: P1) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), referencechild.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ReplaceChild)(::windows_core::Interface::as_raw(this), newchild.into_param().abi(), referencechild.into_param().abi(), &mut result__).from_abi(result__) } } pub fn RemoveChild(&self, childnode: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).RemoveChild)(::windows_core::Interface::as_raw(this), childnode.into_param().abi(), &mut result__).from_abi(result__) } } pub fn AppendChild(&self, newchild: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).AppendChild)(::windows_core::Interface::as_raw(this), newchild.into_param().abi(), &mut result__).from_abi(result__) } } pub fn CloneNode(&self, deep: bool) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CloneNode)(::windows_core::Interface::as_raw(this), deep, &mut result__).from_abi(result__) } } pub fn NamespaceUri(&self) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NamespaceUri)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn LocalName(&self) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).LocalName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Prefix(&self) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Prefix)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Normalize(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Normalize)(::windows_core::Interface::as_raw(this)).ok() } } pub fn SetPrefix(&self, value: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn SelectSingleNode(&self, xpath: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SelectSingleNode)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(xpath), &mut result__).from_abi(result__) } } pub fn SelectNodes(&self, xpath: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SelectNodes)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(xpath), &mut result__).from_abi(result__) @@ -2067,7 +1853,7 @@ impl XmlAttribute { where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -2077,28 +1863,28 @@ impl XmlAttribute { where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn GetXml(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetXml)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn InnerText(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).InnerText)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetInnerText(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetInnerText)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } } @@ -2107,66 +1893,62 @@ impl ::windows_core::RuntimeType for XmlAttribute { } unsafe impl ::windows_core::Interface for XmlAttribute { type Vtable = IXmlAttribute_Vtbl; -} -unsafe impl ::windows_core::ComInterface for XmlAttribute { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for XmlAttribute { const NAME: &'static str = "Windows.Data.Xml.Dom.XmlAttribute"; } -::windows_core::imp::interface_hierarchy!(XmlAttribute, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for XmlAttribute {} -impl ::windows_core::CanTryInto for XmlAttribute {} -impl ::windows_core::CanTryInto for XmlAttribute {} unsafe impl ::core::marker::Send for XmlAttribute {} unsafe impl ::core::marker::Sync for XmlAttribute {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct XmlCDataSection(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(XmlCDataSection, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(XmlCDataSection, IXmlCharacterData, IXmlNode, IXmlNodeSelector, IXmlNodeSerializer, IXmlText); impl XmlCDataSection { pub fn Data(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Data)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetData(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetData)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn Length(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Length)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SubstringData(&self, offset: u32, count: u32) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SubstringData)(::windows_core::Interface::as_raw(this), offset, count, &mut result__).from_abi(result__) } } pub fn AppendData(&self, data: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).AppendData)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(data)).ok() } } pub fn InsertData(&self, offset: u32, data: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).InsertData)(::windows_core::Interface::as_raw(this), offset, ::core::mem::transmute_copy(data)).ok() } } pub fn DeleteData(&self, offset: u32, count: u32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).DeleteData)(::windows_core::Interface::as_raw(this), offset, count).ok() } } pub fn ReplaceData(&self, offset: u32, count: u32, data: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ReplaceData)(::windows_core::Interface::as_raw(this), offset, count, ::core::mem::transmute_copy(data)).ok() } } pub fn NodeValue(&self) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeValue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2176,81 +1958,81 @@ impl XmlCDataSection { where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn NodeType(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn NodeName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ParentNode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ParentNode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ChildNodes(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ChildNodes)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn FirstChild(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FirstChild)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn LastChild(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).LastChild)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousSibling(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousSibling)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn NextSibling(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NextSibling)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Attributes(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Attributes)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn HasChildNodes(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).HasChildNodes)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn OwnerDocument(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OwnerDocument)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2258,94 +2040,94 @@ impl XmlCDataSection { } pub fn InsertBefore(&self, newchild: P0, referencechild: P1) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), referencechild.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).InsertBefore)(::windows_core::Interface::as_raw(this), newchild.into_param().abi(), referencechild.into_param().abi(), &mut result__).from_abi(result__) } } pub fn ReplaceChild(&self, newchild: P0, referencechild: P1) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), referencechild.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ReplaceChild)(::windows_core::Interface::as_raw(this), newchild.into_param().abi(), referencechild.into_param().abi(), &mut result__).from_abi(result__) } } pub fn RemoveChild(&self, childnode: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).RemoveChild)(::windows_core::Interface::as_raw(this), childnode.into_param().abi(), &mut result__).from_abi(result__) } } pub fn AppendChild(&self, newchild: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).AppendChild)(::windows_core::Interface::as_raw(this), newchild.into_param().abi(), &mut result__).from_abi(result__) } } pub fn CloneNode(&self, deep: bool) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CloneNode)(::windows_core::Interface::as_raw(this), deep, &mut result__).from_abi(result__) } } pub fn NamespaceUri(&self) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NamespaceUri)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn LocalName(&self) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).LocalName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Prefix(&self) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Prefix)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Normalize(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Normalize)(::windows_core::Interface::as_raw(this)).ok() } } pub fn SetPrefix(&self, value: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn SelectSingleNode(&self, xpath: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SelectSingleNode)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(xpath), &mut result__).from_abi(result__) } } pub fn SelectNodes(&self, xpath: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SelectNodes)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(xpath), &mut result__).from_abi(result__) @@ -2355,7 +2137,7 @@ impl XmlCDataSection { where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -2365,32 +2147,32 @@ impl XmlCDataSection { where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn GetXml(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetXml)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn InnerText(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).InnerText)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetInnerText(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetInnerText)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn SplitText(&self, offset: u32) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplitText)(::windows_core::Interface::as_raw(this), offset, &mut result__).from_abi(result__) @@ -2402,68 +2184,62 @@ impl ::windows_core::RuntimeType for XmlCDataSection { } unsafe impl ::windows_core::Interface for XmlCDataSection { type Vtable = IXmlCDataSection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for XmlCDataSection { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for XmlCDataSection { const NAME: &'static str = "Windows.Data.Xml.Dom.XmlCDataSection"; } -::windows_core::imp::interface_hierarchy!(XmlCDataSection, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for XmlCDataSection {} -impl ::windows_core::CanTryInto for XmlCDataSection {} -impl ::windows_core::CanTryInto for XmlCDataSection {} -impl ::windows_core::CanTryInto for XmlCDataSection {} -impl ::windows_core::CanTryInto for XmlCDataSection {} unsafe impl ::core::marker::Send for XmlCDataSection {} unsafe impl ::core::marker::Sync for XmlCDataSection {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct XmlComment(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(XmlComment, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(XmlComment, IXmlCharacterData, IXmlNode, IXmlNodeSelector, IXmlNodeSerializer); impl XmlComment { pub fn Data(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Data)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetData(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetData)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn Length(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Length)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SubstringData(&self, offset: u32, count: u32) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SubstringData)(::windows_core::Interface::as_raw(this), offset, count, &mut result__).from_abi(result__) } } pub fn AppendData(&self, data: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).AppendData)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(data)).ok() } } pub fn InsertData(&self, offset: u32, data: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).InsertData)(::windows_core::Interface::as_raw(this), offset, ::core::mem::transmute_copy(data)).ok() } } pub fn DeleteData(&self, offset: u32, count: u32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).DeleteData)(::windows_core::Interface::as_raw(this), offset, count).ok() } } pub fn ReplaceData(&self, offset: u32, count: u32, data: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ReplaceData)(::windows_core::Interface::as_raw(this), offset, count, ::core::mem::transmute_copy(data)).ok() } } pub fn NodeValue(&self) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeValue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2473,81 +2249,81 @@ impl XmlComment { where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn NodeType(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn NodeName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ParentNode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ParentNode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ChildNodes(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ChildNodes)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn FirstChild(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FirstChild)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn LastChild(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).LastChild)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousSibling(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousSibling)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn NextSibling(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NextSibling)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Attributes(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Attributes)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn HasChildNodes(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).HasChildNodes)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn OwnerDocument(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OwnerDocument)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2555,94 +2331,94 @@ impl XmlComment { } pub fn InsertBefore(&self, newchild: P0, referencechild: P1) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), referencechild.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).InsertBefore)(::windows_core::Interface::as_raw(this), newchild.into_param().abi(), referencechild.into_param().abi(), &mut result__).from_abi(result__) } } pub fn ReplaceChild(&self, newchild: P0, referencechild: P1) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), referencechild.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ReplaceChild)(::windows_core::Interface::as_raw(this), newchild.into_param().abi(), referencechild.into_param().abi(), &mut result__).from_abi(result__) } } pub fn RemoveChild(&self, childnode: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).RemoveChild)(::windows_core::Interface::as_raw(this), childnode.into_param().abi(), &mut result__).from_abi(result__) } } pub fn AppendChild(&self, newchild: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).AppendChild)(::windows_core::Interface::as_raw(this), newchild.into_param().abi(), &mut result__).from_abi(result__) } } pub fn CloneNode(&self, deep: bool) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CloneNode)(::windows_core::Interface::as_raw(this), deep, &mut result__).from_abi(result__) } } pub fn NamespaceUri(&self) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NamespaceUri)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn LocalName(&self) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).LocalName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Prefix(&self) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Prefix)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Normalize(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Normalize)(::windows_core::Interface::as_raw(this)).ok() } } pub fn SetPrefix(&self, value: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn SelectSingleNode(&self, xpath: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SelectSingleNode)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(xpath), &mut result__).from_abi(result__) } } pub fn SelectNodes(&self, xpath: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SelectNodes)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(xpath), &mut result__).from_abi(result__) @@ -2652,7 +2428,7 @@ impl XmlComment { where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -2662,28 +2438,28 @@ impl XmlComment { where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn GetXml(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetXml)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn InnerText(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).InnerText)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetInnerText(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetInnerText)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } } @@ -2692,23 +2468,18 @@ impl ::windows_core::RuntimeType for XmlComment { } unsafe impl ::windows_core::Interface for XmlComment { type Vtable = IXmlComment_Vtbl; -} -unsafe impl ::windows_core::ComInterface for XmlComment { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for XmlComment { const NAME: &'static str = "Windows.Data.Xml.Dom.XmlComment"; } -::windows_core::imp::interface_hierarchy!(XmlComment, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for XmlComment {} -impl ::windows_core::CanTryInto for XmlComment {} -impl ::windows_core::CanTryInto for XmlComment {} -impl ::windows_core::CanTryInto for XmlComment {} unsafe impl ::core::marker::Send for XmlComment {} unsafe impl ::core::marker::Sync for XmlComment {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct XmlDocument(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(XmlDocument, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(XmlDocument, IXmlNode, IXmlNodeSelector, IXmlNodeSerializer); impl XmlDocument { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2837,55 +2608,55 @@ impl XmlDocument { } pub fn ImportNode(&self, node: P0, deep: bool) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).ImportNode)(::windows_core::Interface::as_raw(this), node.try_into_param()?.abi(), deep, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ImportNode)(::windows_core::Interface::as_raw(this), node.into_param().abi(), deep, &mut result__).from_abi(result__) } } pub fn LoadXml(&self, xml: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).LoadXml)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(xml)).ok() } } pub fn LoadXmlWithSettings(&self, xml: &::windows_core::HSTRING, loadsettings: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } #[doc = "Required features: `\"Storage\"`"] #[cfg(feature = "Storage")] pub fn SaveToFileAsync(&self, file: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SaveToFileAsync)(::windows_core::Interface::as_raw(this), file.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn LoadXmlFromBuffer(&self, buffer: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).LoadXmlFromBuffer)(::windows_core::Interface::as_raw(this), buffer.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn LoadXmlFromBufferWithSettings(&self, buffer: P0, loadsettings: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).LoadXmlFromBufferWithSettings)(::windows_core::Interface::as_raw(this), buffer.try_into_param()?.abi(), loadsettings.into_param().abi()).ok() } + 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() } } pub fn LoadFromUriAsync(uri: P0) -> ::windows_core::Result> where @@ -2910,27 +2681,27 @@ impl XmlDocument { #[cfg(feature = "Storage")] pub fn LoadFromFileAsync(file: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IXmlDocumentStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).LoadFromFileAsync)(::windows_core::Interface::as_raw(this), file.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).LoadFromFileAsync)(::windows_core::Interface::as_raw(this), file.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Storage\"`"] #[cfg(feature = "Storage")] pub fn LoadFromFileWithSettingsAsync(file: P0, loadsettings: P1) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { Self::IXmlDocumentStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).LoadFromFileWithSettingsAsync)(::windows_core::Interface::as_raw(this), file.try_into_param()?.abi(), loadsettings.into_param().abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).LoadFromFileWithSettingsAsync)(::windows_core::Interface::as_raw(this), file.into_param().abi(), loadsettings.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn NodeValue(&self) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeValue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2940,81 +2711,81 @@ impl XmlDocument { where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn NodeType(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn NodeName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ParentNode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ParentNode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ChildNodes(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ChildNodes)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn FirstChild(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FirstChild)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn LastChild(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).LastChild)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousSibling(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousSibling)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn NextSibling(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NextSibling)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Attributes(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Attributes)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn HasChildNodes(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).HasChildNodes)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn OwnerDocument(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OwnerDocument)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3022,94 +2793,94 @@ impl XmlDocument { } pub fn InsertBefore(&self, newchild: P0, referencechild: P1) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), referencechild.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).InsertBefore)(::windows_core::Interface::as_raw(this), newchild.into_param().abi(), referencechild.into_param().abi(), &mut result__).from_abi(result__) } } pub fn ReplaceChild(&self, newchild: P0, referencechild: P1) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), referencechild.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ReplaceChild)(::windows_core::Interface::as_raw(this), newchild.into_param().abi(), referencechild.into_param().abi(), &mut result__).from_abi(result__) } } pub fn RemoveChild(&self, childnode: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).RemoveChild)(::windows_core::Interface::as_raw(this), childnode.into_param().abi(), &mut result__).from_abi(result__) } } pub fn AppendChild(&self, newchild: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).AppendChild)(::windows_core::Interface::as_raw(this), newchild.into_param().abi(), &mut result__).from_abi(result__) } } pub fn CloneNode(&self, deep: bool) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CloneNode)(::windows_core::Interface::as_raw(this), deep, &mut result__).from_abi(result__) } } pub fn NamespaceUri(&self) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NamespaceUri)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn LocalName(&self) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).LocalName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Prefix(&self) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Prefix)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Normalize(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Normalize)(::windows_core::Interface::as_raw(this)).ok() } } pub fn SetPrefix(&self, value: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn SelectSingleNode(&self, xpath: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SelectSingleNode)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(xpath), &mut result__).from_abi(result__) } } pub fn SelectNodes(&self, xpath: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SelectNodes)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(xpath), &mut result__).from_abi(result__) @@ -3119,7 +2890,7 @@ impl XmlDocument { where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -3129,28 +2900,28 @@ impl XmlDocument { where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn GetXml(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetXml)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn InnerText(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).InnerText)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetInnerText(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetInnerText)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } #[doc(hidden)] @@ -3164,25 +2935,21 @@ impl ::windows_core::RuntimeType for XmlDocument { } unsafe impl ::windows_core::Interface for XmlDocument { type Vtable = IXmlDocument_Vtbl; -} -unsafe impl ::windows_core::ComInterface for XmlDocument { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for XmlDocument { const NAME: &'static str = "Windows.Data.Xml.Dom.XmlDocument"; } -::windows_core::imp::interface_hierarchy!(XmlDocument, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for XmlDocument {} -impl ::windows_core::CanTryInto for XmlDocument {} -impl ::windows_core::CanTryInto for XmlDocument {} unsafe impl ::core::marker::Send for XmlDocument {} unsafe impl ::core::marker::Sync for XmlDocument {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct XmlDocumentFragment(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(XmlDocumentFragment, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(XmlDocumentFragment, IXmlNode, IXmlNodeSelector, IXmlNodeSerializer); impl XmlDocumentFragment { pub fn NodeValue(&self) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeValue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3192,81 +2959,81 @@ impl XmlDocumentFragment { where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn NodeType(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn NodeName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ParentNode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ParentNode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ChildNodes(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ChildNodes)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn FirstChild(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FirstChild)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn LastChild(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).LastChild)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousSibling(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousSibling)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn NextSibling(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NextSibling)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Attributes(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Attributes)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn HasChildNodes(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).HasChildNodes)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn OwnerDocument(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OwnerDocument)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3274,94 +3041,94 @@ impl XmlDocumentFragment { } pub fn InsertBefore(&self, newchild: P0, referencechild: P1) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), referencechild.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).InsertBefore)(::windows_core::Interface::as_raw(this), newchild.into_param().abi(), referencechild.into_param().abi(), &mut result__).from_abi(result__) } } pub fn ReplaceChild(&self, newchild: P0, referencechild: P1) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), referencechild.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ReplaceChild)(::windows_core::Interface::as_raw(this), newchild.into_param().abi(), referencechild.into_param().abi(), &mut result__).from_abi(result__) } } pub fn RemoveChild(&self, childnode: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).RemoveChild)(::windows_core::Interface::as_raw(this), childnode.into_param().abi(), &mut result__).from_abi(result__) } } pub fn AppendChild(&self, newchild: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).AppendChild)(::windows_core::Interface::as_raw(this), newchild.into_param().abi(), &mut result__).from_abi(result__) } } pub fn CloneNode(&self, deep: bool) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CloneNode)(::windows_core::Interface::as_raw(this), deep, &mut result__).from_abi(result__) } } pub fn NamespaceUri(&self) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NamespaceUri)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn LocalName(&self) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).LocalName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Prefix(&self) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Prefix)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Normalize(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Normalize)(::windows_core::Interface::as_raw(this)).ok() } } pub fn SetPrefix(&self, value: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn SelectSingleNode(&self, xpath: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SelectSingleNode)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(xpath), &mut result__).from_abi(result__) } } pub fn SelectNodes(&self, xpath: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SelectNodes)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(xpath), &mut result__).from_abi(result__) @@ -3371,7 +3138,7 @@ impl XmlDocumentFragment { where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -3381,28 +3148,28 @@ impl XmlDocumentFragment { where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn GetXml(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetXml)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn InnerText(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).InnerText)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetInnerText(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetInnerText)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } } @@ -3411,22 +3178,18 @@ impl ::windows_core::RuntimeType for XmlDocumentFragment { } unsafe impl ::windows_core::Interface for XmlDocumentFragment { type Vtable = IXmlDocumentFragment_Vtbl; -} -unsafe impl ::windows_core::ComInterface for XmlDocumentFragment { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for XmlDocumentFragment { const NAME: &'static str = "Windows.Data.Xml.Dom.XmlDocumentFragment"; } -::windows_core::imp::interface_hierarchy!(XmlDocumentFragment, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for XmlDocumentFragment {} -impl ::windows_core::CanTryInto for XmlDocumentFragment {} -impl ::windows_core::CanTryInto for XmlDocumentFragment {} unsafe impl ::core::marker::Send for XmlDocumentFragment {} unsafe impl ::core::marker::Sync for XmlDocumentFragment {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct XmlDocumentType(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(XmlDocumentType, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(XmlDocumentType, IXmlNode, IXmlNodeSelector, IXmlNodeSerializer); impl XmlDocumentType { pub fn Name(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -3450,7 +3213,7 @@ impl XmlDocumentType { } } pub fn NodeValue(&self) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeValue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3460,81 +3223,81 @@ impl XmlDocumentType { where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn NodeType(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn NodeName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ParentNode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ParentNode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ChildNodes(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ChildNodes)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn FirstChild(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FirstChild)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn LastChild(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).LastChild)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousSibling(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousSibling)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn NextSibling(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NextSibling)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Attributes(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Attributes)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn HasChildNodes(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).HasChildNodes)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn OwnerDocument(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OwnerDocument)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3542,94 +3305,94 @@ impl XmlDocumentType { } pub fn InsertBefore(&self, newchild: P0, referencechild: P1) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), referencechild.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).InsertBefore)(::windows_core::Interface::as_raw(this), newchild.into_param().abi(), referencechild.into_param().abi(), &mut result__).from_abi(result__) } } pub fn ReplaceChild(&self, newchild: P0, referencechild: P1) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), referencechild.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ReplaceChild)(::windows_core::Interface::as_raw(this), newchild.into_param().abi(), referencechild.into_param().abi(), &mut result__).from_abi(result__) } } pub fn RemoveChild(&self, childnode: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).RemoveChild)(::windows_core::Interface::as_raw(this), childnode.into_param().abi(), &mut result__).from_abi(result__) } } pub fn AppendChild(&self, newchild: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).AppendChild)(::windows_core::Interface::as_raw(this), newchild.into_param().abi(), &mut result__).from_abi(result__) } } pub fn CloneNode(&self, deep: bool) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CloneNode)(::windows_core::Interface::as_raw(this), deep, &mut result__).from_abi(result__) } } pub fn NamespaceUri(&self) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NamespaceUri)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn LocalName(&self) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).LocalName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Prefix(&self) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Prefix)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Normalize(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Normalize)(::windows_core::Interface::as_raw(this)).ok() } } pub fn SetPrefix(&self, value: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn SelectSingleNode(&self, xpath: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SelectSingleNode)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(xpath), &mut result__).from_abi(result__) } } pub fn SelectNodes(&self, xpath: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SelectNodes)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(xpath), &mut result__).from_abi(result__) @@ -3639,7 +3402,7 @@ impl XmlDocumentType { where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -3649,28 +3412,28 @@ impl XmlDocumentType { where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn GetXml(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetXml)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn InnerText(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).InnerText)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetInnerText(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetInnerText)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } } @@ -3679,22 +3442,17 @@ impl ::windows_core::RuntimeType for XmlDocumentType { } unsafe impl ::windows_core::Interface for XmlDocumentType { type Vtable = IXmlDocumentType_Vtbl; -} -unsafe impl ::windows_core::ComInterface for XmlDocumentType { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for XmlDocumentType { const NAME: &'static str = "Windows.Data.Xml.Dom.XmlDocumentType"; } -::windows_core::imp::interface_hierarchy!(XmlDocumentType, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for XmlDocumentType {} -impl ::windows_core::CanTryInto for XmlDocumentType {} -impl ::windows_core::CanTryInto for XmlDocumentType {} unsafe impl ::core::marker::Send for XmlDocumentType {} unsafe impl ::core::marker::Sync for XmlDocumentType {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct XmlDomImplementation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(XmlDomImplementation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl XmlDomImplementation { pub fn HasFeature(&self, feature: &::windows_core::HSTRING, version: P0) -> ::windows_core::Result where @@ -3712,19 +3470,18 @@ impl ::windows_core::RuntimeType for XmlDomImplementation { } unsafe impl ::windows_core::Interface for XmlDomImplementation { type Vtable = IXmlDomImplementation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for XmlDomImplementation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for XmlDomImplementation { const NAME: &'static str = "Windows.Data.Xml.Dom.XmlDomImplementation"; } -::windows_core::imp::interface_hierarchy!(XmlDomImplementation, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for XmlDomImplementation {} unsafe impl ::core::marker::Sync for XmlDomImplementation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct XmlElement(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(XmlElement, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(XmlElement, IXmlNode, IXmlNodeSelector, IXmlNodeSerializer); impl XmlElement { pub fn TagName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -3827,7 +3584,7 @@ impl XmlElement { } } pub fn NodeValue(&self) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeValue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3837,81 +3594,81 @@ impl XmlElement { where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn NodeType(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn NodeName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ParentNode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ParentNode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ChildNodes(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ChildNodes)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn FirstChild(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FirstChild)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn LastChild(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).LastChild)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousSibling(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousSibling)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn NextSibling(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NextSibling)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Attributes(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Attributes)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn HasChildNodes(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).HasChildNodes)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn OwnerDocument(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OwnerDocument)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3919,94 +3676,94 @@ impl XmlElement { } pub fn InsertBefore(&self, newchild: P0, referencechild: P1) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), referencechild.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).InsertBefore)(::windows_core::Interface::as_raw(this), newchild.into_param().abi(), referencechild.into_param().abi(), &mut result__).from_abi(result__) } } pub fn ReplaceChild(&self, newchild: P0, referencechild: P1) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), referencechild.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ReplaceChild)(::windows_core::Interface::as_raw(this), newchild.into_param().abi(), referencechild.into_param().abi(), &mut result__).from_abi(result__) } } pub fn RemoveChild(&self, childnode: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).RemoveChild)(::windows_core::Interface::as_raw(this), childnode.into_param().abi(), &mut result__).from_abi(result__) } } pub fn AppendChild(&self, newchild: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).AppendChild)(::windows_core::Interface::as_raw(this), newchild.into_param().abi(), &mut result__).from_abi(result__) } } pub fn CloneNode(&self, deep: bool) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CloneNode)(::windows_core::Interface::as_raw(this), deep, &mut result__).from_abi(result__) } } pub fn NamespaceUri(&self) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NamespaceUri)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn LocalName(&self) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).LocalName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Prefix(&self) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Prefix)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Normalize(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Normalize)(::windows_core::Interface::as_raw(this)).ok() } } pub fn SetPrefix(&self, value: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn SelectSingleNode(&self, xpath: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SelectSingleNode)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(xpath), &mut result__).from_abi(result__) } } pub fn SelectNodes(&self, xpath: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SelectNodes)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(xpath), &mut result__).from_abi(result__) @@ -4016,7 +3773,7 @@ impl XmlElement { where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -4026,28 +3783,28 @@ impl XmlElement { where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn GetXml(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetXml)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn InnerText(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).InnerText)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetInnerText(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetInnerText)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } } @@ -4056,25 +3813,21 @@ impl ::windows_core::RuntimeType for XmlElement { } unsafe impl ::windows_core::Interface for XmlElement { type Vtable = IXmlElement_Vtbl; -} -unsafe impl ::windows_core::ComInterface for XmlElement { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for XmlElement { const NAME: &'static str = "Windows.Data.Xml.Dom.XmlElement"; } -::windows_core::imp::interface_hierarchy!(XmlElement, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for XmlElement {} -impl ::windows_core::CanTryInto for XmlElement {} -impl ::windows_core::CanTryInto for XmlElement {} unsafe impl ::core::marker::Send for XmlElement {} unsafe impl ::core::marker::Sync for XmlElement {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct XmlEntityReference(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(XmlEntityReference, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(XmlEntityReference, IXmlNode, IXmlNodeSelector, IXmlNodeSerializer); impl XmlEntityReference { pub fn NodeValue(&self) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeValue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4084,81 +3837,81 @@ impl XmlEntityReference { where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn NodeType(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn NodeName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ParentNode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ParentNode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ChildNodes(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ChildNodes)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn FirstChild(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FirstChild)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn LastChild(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).LastChild)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousSibling(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousSibling)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn NextSibling(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NextSibling)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Attributes(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Attributes)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn HasChildNodes(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).HasChildNodes)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn OwnerDocument(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OwnerDocument)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4166,94 +3919,94 @@ impl XmlEntityReference { } pub fn InsertBefore(&self, newchild: P0, referencechild: P1) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), referencechild.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).InsertBefore)(::windows_core::Interface::as_raw(this), newchild.into_param().abi(), referencechild.into_param().abi(), &mut result__).from_abi(result__) } } pub fn ReplaceChild(&self, newchild: P0, referencechild: P1) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), referencechild.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ReplaceChild)(::windows_core::Interface::as_raw(this), newchild.into_param().abi(), referencechild.into_param().abi(), &mut result__).from_abi(result__) } } pub fn RemoveChild(&self, childnode: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).RemoveChild)(::windows_core::Interface::as_raw(this), childnode.into_param().abi(), &mut result__).from_abi(result__) } } pub fn AppendChild(&self, newchild: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).AppendChild)(::windows_core::Interface::as_raw(this), newchild.into_param().abi(), &mut result__).from_abi(result__) } } pub fn CloneNode(&self, deep: bool) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CloneNode)(::windows_core::Interface::as_raw(this), deep, &mut result__).from_abi(result__) } } pub fn NamespaceUri(&self) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NamespaceUri)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn LocalName(&self) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).LocalName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Prefix(&self) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Prefix)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Normalize(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Normalize)(::windows_core::Interface::as_raw(this)).ok() } } pub fn SetPrefix(&self, value: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn SelectSingleNode(&self, xpath: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SelectSingleNode)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(xpath), &mut result__).from_abi(result__) } } pub fn SelectNodes(&self, xpath: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SelectNodes)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(xpath), &mut result__).from_abi(result__) @@ -4263,7 +4016,7 @@ impl XmlEntityReference { where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -4273,28 +4026,28 @@ impl XmlEntityReference { where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn GetXml(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetXml)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn InnerText(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).InnerText)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetInnerText(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetInnerText)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } } @@ -4303,22 +4056,17 @@ impl ::windows_core::RuntimeType for XmlEntityReference { } unsafe impl ::windows_core::Interface for XmlEntityReference { type Vtable = IXmlEntityReference_Vtbl; -} -unsafe impl ::windows_core::ComInterface for XmlEntityReference { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for XmlEntityReference { const NAME: &'static str = "Windows.Data.Xml.Dom.XmlEntityReference"; } -::windows_core::imp::interface_hierarchy!(XmlEntityReference, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for XmlEntityReference {} -impl ::windows_core::CanTryInto for XmlEntityReference {} -impl ::windows_core::CanTryInto for XmlEntityReference {} unsafe impl ::core::marker::Send for XmlEntityReference {} unsafe impl ::core::marker::Sync for XmlEntityReference {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct XmlLoadSettings(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(XmlLoadSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); impl XmlLoadSettings { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -4388,24 +4136,24 @@ impl ::windows_core::RuntimeType for XmlLoadSettings { } unsafe impl ::windows_core::Interface for XmlLoadSettings { type Vtable = IXmlLoadSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for XmlLoadSettings { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for XmlLoadSettings { const NAME: &'static str = "Windows.Data.Xml.Dom.XmlLoadSettings"; } -::windows_core::imp::interface_hierarchy!(XmlLoadSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for XmlLoadSettings {} unsafe impl ::core::marker::Sync for XmlLoadSettings {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct XmlNamedNodeMap(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(XmlNamedNodeMap, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(XmlNamedNodeMap, super::super::super::Foundation::Collections::IIterable::, super::super::super::Foundation::Collections::IVectorView::); impl XmlNamedNodeMap { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4414,7 +4162,7 @@ impl XmlNamedNodeMap { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetAt(&self, index: u32) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetAt)(::windows_core::Interface::as_raw(this), index, &mut result__).from_abi(result__) @@ -4423,7 +4171,7 @@ impl XmlNamedNodeMap { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Size(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Size)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4433,18 +4181,18 @@ impl XmlNamedNodeMap { #[cfg(feature = "Foundation_Collections")] pub fn IndexOf(&self, value: P0, index: &mut u32) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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.try_into_param()?.abi(), index, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).IndexOf)(::windows_core::Interface::as_raw(this), value.into_param().abi(), index, &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetMany(&self, startindex: u32, items: &mut [::core::option::Option]) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetMany)(::windows_core::Interface::as_raw(this), startindex, items.len().try_into().unwrap(), ::core::mem::transmute_copy(&items), &mut result__).from_abi(result__) @@ -4473,12 +4221,12 @@ impl XmlNamedNodeMap { } pub fn SetNamedItem(&self, node: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).SetNamedItem)(::windows_core::Interface::as_raw(this), node.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SetNamedItem)(::windows_core::Interface::as_raw(this), node.into_param().abi(), &mut result__).from_abi(result__) } } pub fn RemoveNamedItem(&self, name: &::windows_core::HSTRING) -> ::windows_core::Result { @@ -4510,12 +4258,12 @@ impl XmlNamedNodeMap { } pub fn SetNamedItemNS(&self, node: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).SetNamedItemNS)(::windows_core::Interface::as_raw(this), node.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SetNamedItemNS)(::windows_core::Interface::as_raw(this), node.into_param().abi(), &mut result__).from_abi(result__) } } } @@ -4524,9 +4272,7 @@ impl ::windows_core::RuntimeType for XmlNamedNodeMap { } unsafe impl ::windows_core::Interface for XmlNamedNodeMap { type Vtable = IXmlNamedNodeMap_Vtbl; -} -unsafe impl ::windows_core::ComInterface for XmlNamedNodeMap { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for XmlNamedNodeMap { const NAME: &'static str = "Windows.Data.Xml.Dom.XmlNamedNodeMap"; @@ -4544,24 +4290,22 @@ impl ::core::iter::IntoIterator for &XmlNamedNodeMap { type Item = IXmlNode; type IntoIter = super::super::super::Foundation::Collections::VectorViewIterator; fn into_iter(self) -> Self::IntoIter { - super::super::super::Foundation::Collections::VectorViewIterator::new(::windows_core::ComInterface::cast(self).ok()) + super::super::super::Foundation::Collections::VectorViewIterator::new(::windows_core::Interface::cast(self).ok()) } } -::windows_core::imp::interface_hierarchy!(XmlNamedNodeMap, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for XmlNamedNodeMap {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for XmlNamedNodeMap {} unsafe impl ::core::marker::Send for XmlNamedNodeMap {} unsafe impl ::core::marker::Sync for XmlNamedNodeMap {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct XmlNodeList(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(XmlNodeList, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(XmlNodeList, super::super::super::Foundation::Collections::IIterable::, super::super::super::Foundation::Collections::IVectorView::); impl XmlNodeList { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4570,7 +4314,7 @@ impl XmlNodeList { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetAt(&self, index: u32) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetAt)(::windows_core::Interface::as_raw(this), index, &mut result__).from_abi(result__) @@ -4579,7 +4323,7 @@ impl XmlNodeList { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Size(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Size)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4589,18 +4333,18 @@ impl XmlNodeList { #[cfg(feature = "Foundation_Collections")] pub fn IndexOf(&self, value: P0, index: &mut u32) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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.try_into_param()?.abi(), index, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).IndexOf)(::windows_core::Interface::as_raw(this), value.into_param().abi(), index, &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetMany(&self, startindex: u32, items: &mut [::core::option::Option]) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetMany)(::windows_core::Interface::as_raw(this), startindex, items.len().try_into().unwrap(), ::core::mem::transmute_copy(&items), &mut result__).from_abi(result__) @@ -4626,9 +4370,7 @@ impl ::windows_core::RuntimeType for XmlNodeList { } unsafe impl ::windows_core::Interface for XmlNodeList { type Vtable = IXmlNodeList_Vtbl; -} -unsafe impl ::windows_core::ComInterface for XmlNodeList { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for XmlNodeList { const NAME: &'static str = "Windows.Data.Xml.Dom.XmlNodeList"; @@ -4646,22 +4388,19 @@ impl ::core::iter::IntoIterator for &XmlNodeList { type Item = IXmlNode; type IntoIter = super::super::super::Foundation::Collections::VectorViewIterator; fn into_iter(self) -> Self::IntoIter { - super::super::super::Foundation::Collections::VectorViewIterator::new(::windows_core::ComInterface::cast(self).ok()) + super::super::super::Foundation::Collections::VectorViewIterator::new(::windows_core::Interface::cast(self).ok()) } } -::windows_core::imp::interface_hierarchy!(XmlNodeList, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for XmlNodeList {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for XmlNodeList {} unsafe impl ::core::marker::Send for XmlNodeList {} unsafe impl ::core::marker::Sync for XmlNodeList {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct XmlProcessingInstruction(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(XmlProcessingInstruction, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(XmlProcessingInstruction, IXmlNode, IXmlNodeSelector, IXmlNodeSerializer); impl XmlProcessingInstruction { pub fn NodeValue(&self) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeValue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4671,81 +4410,81 @@ impl XmlProcessingInstruction { where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn NodeType(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn NodeName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ParentNode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ParentNode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ChildNodes(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ChildNodes)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn FirstChild(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FirstChild)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn LastChild(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).LastChild)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousSibling(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousSibling)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn NextSibling(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NextSibling)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Attributes(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Attributes)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn HasChildNodes(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).HasChildNodes)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn OwnerDocument(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OwnerDocument)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4753,94 +4492,94 @@ impl XmlProcessingInstruction { } pub fn InsertBefore(&self, newchild: P0, referencechild: P1) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), referencechild.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).InsertBefore)(::windows_core::Interface::as_raw(this), newchild.into_param().abi(), referencechild.into_param().abi(), &mut result__).from_abi(result__) } } pub fn ReplaceChild(&self, newchild: P0, referencechild: P1) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), referencechild.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ReplaceChild)(::windows_core::Interface::as_raw(this), newchild.into_param().abi(), referencechild.into_param().abi(), &mut result__).from_abi(result__) } } pub fn RemoveChild(&self, childnode: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).RemoveChild)(::windows_core::Interface::as_raw(this), childnode.into_param().abi(), &mut result__).from_abi(result__) } } pub fn AppendChild(&self, newchild: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).AppendChild)(::windows_core::Interface::as_raw(this), newchild.into_param().abi(), &mut result__).from_abi(result__) } } pub fn CloneNode(&self, deep: bool) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CloneNode)(::windows_core::Interface::as_raw(this), deep, &mut result__).from_abi(result__) } } pub fn NamespaceUri(&self) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NamespaceUri)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn LocalName(&self) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).LocalName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Prefix(&self) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Prefix)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Normalize(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Normalize)(::windows_core::Interface::as_raw(this)).ok() } } pub fn SetPrefix(&self, value: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn SelectSingleNode(&self, xpath: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SelectSingleNode)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(xpath), &mut result__).from_abi(result__) } } pub fn SelectNodes(&self, xpath: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SelectNodes)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(xpath), &mut result__).from_abi(result__) @@ -4850,7 +4589,7 @@ impl XmlProcessingInstruction { where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -4860,28 +4599,28 @@ impl XmlProcessingInstruction { where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn GetXml(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetXml)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn InnerText(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).InnerText)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetInnerText(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetInnerText)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn Target(&self) -> ::windows_core::Result<::windows_core::HSTRING> { @@ -4908,66 +4647,62 @@ impl ::windows_core::RuntimeType for XmlProcessingInstruction { } unsafe impl ::windows_core::Interface for XmlProcessingInstruction { type Vtable = IXmlProcessingInstruction_Vtbl; -} -unsafe impl ::windows_core::ComInterface for XmlProcessingInstruction { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for XmlProcessingInstruction { const NAME: &'static str = "Windows.Data.Xml.Dom.XmlProcessingInstruction"; } -::windows_core::imp::interface_hierarchy!(XmlProcessingInstruction, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for XmlProcessingInstruction {} -impl ::windows_core::CanTryInto for XmlProcessingInstruction {} -impl ::windows_core::CanTryInto for XmlProcessingInstruction {} unsafe impl ::core::marker::Send for XmlProcessingInstruction {} unsafe impl ::core::marker::Sync for XmlProcessingInstruction {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct XmlText(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(XmlText, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(XmlText, IXmlCharacterData, IXmlNode, IXmlNodeSelector, IXmlNodeSerializer, IXmlText); impl XmlText { pub fn Data(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Data)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetData(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetData)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn Length(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Length)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SubstringData(&self, offset: u32, count: u32) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SubstringData)(::windows_core::Interface::as_raw(this), offset, count, &mut result__).from_abi(result__) } } pub fn AppendData(&self, data: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).AppendData)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(data)).ok() } } pub fn InsertData(&self, offset: u32, data: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).InsertData)(::windows_core::Interface::as_raw(this), offset, ::core::mem::transmute_copy(data)).ok() } } pub fn DeleteData(&self, offset: u32, count: u32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).DeleteData)(::windows_core::Interface::as_raw(this), offset, count).ok() } } pub fn ReplaceData(&self, offset: u32, count: u32, data: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ReplaceData)(::windows_core::Interface::as_raw(this), offset, count, ::core::mem::transmute_copy(data)).ok() } } pub fn NodeValue(&self) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeValue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4977,81 +4712,81 @@ impl XmlText { where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn NodeType(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn NodeName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ParentNode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ParentNode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ChildNodes(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ChildNodes)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn FirstChild(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FirstChild)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn LastChild(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).LastChild)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreviousSibling(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousSibling)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn NextSibling(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NextSibling)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Attributes(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Attributes)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn HasChildNodes(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).HasChildNodes)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn OwnerDocument(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OwnerDocument)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5059,94 +4794,94 @@ impl XmlText { } pub fn InsertBefore(&self, newchild: P0, referencechild: P1) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), referencechild.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).InsertBefore)(::windows_core::Interface::as_raw(this), newchild.into_param().abi(), referencechild.into_param().abi(), &mut result__).from_abi(result__) } } pub fn ReplaceChild(&self, newchild: P0, referencechild: P1) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), referencechild.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ReplaceChild)(::windows_core::Interface::as_raw(this), newchild.into_param().abi(), referencechild.into_param().abi(), &mut result__).from_abi(result__) } } pub fn RemoveChild(&self, childnode: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).RemoveChild)(::windows_core::Interface::as_raw(this), childnode.into_param().abi(), &mut result__).from_abi(result__) } } pub fn AppendChild(&self, newchild: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).AppendChild)(::windows_core::Interface::as_raw(this), newchild.into_param().abi(), &mut result__).from_abi(result__) } } pub fn CloneNode(&self, deep: bool) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CloneNode)(::windows_core::Interface::as_raw(this), deep, &mut result__).from_abi(result__) } } pub fn NamespaceUri(&self) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NamespaceUri)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn LocalName(&self) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).LocalName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Prefix(&self) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Prefix)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Normalize(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Normalize)(::windows_core::Interface::as_raw(this)).ok() } } pub fn SetPrefix(&self, value: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn SelectSingleNode(&self, xpath: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SelectSingleNode)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(xpath), &mut result__).from_abi(result__) } } pub fn SelectNodes(&self, xpath: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SelectNodes)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(xpath), &mut result__).from_abi(result__) @@ -5156,7 +4891,7 @@ impl XmlText { where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -5166,28 +4901,28 @@ impl XmlText { where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn GetXml(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetXml)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn InnerText(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).InnerText)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetInnerText(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetInnerText)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn SplitText(&self, offset: u32) -> ::windows_core::Result { @@ -5203,19 +4938,11 @@ impl ::windows_core::RuntimeType for XmlText { } unsafe impl ::windows_core::Interface for XmlText { type Vtable = IXmlText_Vtbl; -} -unsafe impl ::windows_core::ComInterface for XmlText { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for XmlText { const NAME: &'static str = "Windows.Data.Xml.Dom.XmlText"; } -::windows_core::imp::interface_hierarchy!(XmlText, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for XmlText {} -impl ::windows_core::CanTryInto for XmlText {} -impl ::windows_core::CanTryInto for XmlText {} -impl ::windows_core::CanTryInto for XmlText {} -impl ::windows_core::CanTryInto for XmlText {} unsafe impl ::core::marker::Send for XmlText {} unsafe impl ::core::marker::Sync for XmlText {} #[repr(transparent)] 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 d5a10e61dc..4c0c88bc1c 100644 --- a/crates/libs/windows/src/Windows/Data/Xml/Xsl/mod.rs +++ b/crates/libs/windows/src/Windows/Data/Xml/Xsl/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXsltProcessor(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXsltProcessor { - type Vtable = IXsltProcessor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXsltProcessor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7b64703f_550c_48c6_a90f_93a5b964518f); -} +::windows_core::imp::com_interface!(IXsltProcessor, IXsltProcessor_Vtbl, 0x7b64703f_550c_48c6_a90f_93a5b964518f); #[repr(C)] #[doc(hidden)] pub struct IXsltProcessor_Vtbl { @@ -17,16 +8,7 @@ pub struct IXsltProcessor_Vtbl { #[cfg(not(feature = "Data_Xml_Dom"))] TransformToString: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXsltProcessor2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXsltProcessor2 { - type Vtable = IXsltProcessor2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXsltProcessor2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8da45c56_97a5_44cb_a8be_27d86280c70a); -} +::windows_core::imp::com_interface!(IXsltProcessor2, IXsltProcessor2_Vtbl, 0x8da45c56_97a5_44cb_a8be_27d86280c70a); #[repr(C)] #[doc(hidden)] pub struct IXsltProcessor2_Vtbl { @@ -36,16 +18,7 @@ pub struct IXsltProcessor2_Vtbl { #[cfg(not(feature = "Data_Xml_Dom"))] TransformToDocument: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXsltProcessorFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXsltProcessorFactory { - type Vtable = IXsltProcessorFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXsltProcessorFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x274146c0_9a51_4663_bf30_0ef742146f20); -} +::windows_core::imp::com_interface!(IXsltProcessorFactory, IXsltProcessorFactory_Vtbl, 0x274146c0_9a51_4663_bf30_0ef742146f20); #[repr(C)] #[doc(hidden)] pub struct IXsltProcessorFactory_Vtbl { @@ -58,29 +31,30 @@ pub struct IXsltProcessorFactory_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct XsltProcessor(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(XsltProcessor, ::windows_core::IUnknown, ::windows_core::IInspectable); impl XsltProcessor { #[doc = "Required features: `\"Data_Xml_Dom\"`"] #[cfg(feature = "Data_Xml_Dom")] pub fn TransformToString(&self, inputnode: P0) -> ::windows_core::Result<::windows_core::HSTRING> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).TransformToString)(::windows_core::Interface::as_raw(this), inputnode.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).TransformToString)(::windows_core::Interface::as_raw(this), inputnode.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Data_Xml_Dom\"`"] #[cfg(feature = "Data_Xml_Dom")] pub fn TransformToDocument(&self, inputnode: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).TransformToDocument)(::windows_core::Interface::as_raw(this), inputnode.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Data_Xml_Dom\"`"] @@ -105,13 +79,10 @@ impl ::windows_core::RuntimeType for XsltProcessor { } unsafe impl ::windows_core::Interface for XsltProcessor { type Vtable = IXsltProcessor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for XsltProcessor { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for XsltProcessor { const NAME: &'static str = "Windows.Data.Xml.Xsl.XsltProcessor"; } -::windows_core::imp::interface_hierarchy!(XsltProcessor, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for XsltProcessor {} unsafe impl ::core::marker::Sync for XsltProcessor {} diff --git a/crates/libs/windows/src/Windows/Devices/Adc/Provider/impl.rs b/crates/libs/windows/src/Windows/Devices/Adc/Provider/impl.rs index 6ca8f98426..b02be63f20 100644 --- a/crates/libs/windows/src/Windows/Devices/Adc/Provider/impl.rs +++ b/crates/libs/windows/src/Windows/Devices/Adc/Provider/impl.rs @@ -122,7 +122,7 @@ impl IAdcControllerProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -152,6 +152,6 @@ impl IAdcProvider_Vtbl { Self { base__: ::windows_core::IInspectable_Vtbl::new::(), GetControllers: GetControllers:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/Devices/Adc/Provider/mod.rs b/crates/libs/windows/src/Windows/Devices/Adc/Provider/mod.rs index 97aa8ea0f9..0159b17a9a 100644 --- a/crates/libs/windows/src/Windows/Devices/Adc/Provider/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Adc/Provider/mod.rs @@ -1,6 +1,5 @@ -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAdcControllerProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAdcControllerProvider, IAdcControllerProvider_Vtbl, 0xbe545828_816d_4de5_a048_aba06958aaa8); +::windows_core::imp::interface_hierarchy!(IAdcControllerProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IAdcControllerProvider { pub fn ChannelCount(&self) -> ::windows_core::Result { let this = self; @@ -64,16 +63,9 @@ impl IAdcControllerProvider { } } } -::windows_core::imp::interface_hierarchy!(IAdcControllerProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IAdcControllerProvider { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IAdcControllerProvider { - type Vtable = IAdcControllerProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAdcControllerProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbe545828_816d_4de5_a048_aba06958aaa8); -} #[repr(C)] #[doc(hidden)] pub struct IAdcControllerProvider_Vtbl { @@ -89,9 +81,8 @@ pub struct IAdcControllerProvider_Vtbl { pub ReleaseChannel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, channel: i32) -> ::windows_core::HRESULT, pub ReadValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, channelnumber: i32, result__: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAdcProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAdcProvider, IAdcProvider_Vtbl, 0x28953668_9359_4c57_bc88_e275e81638c9); +::windows_core::imp::interface_hierarchy!(IAdcProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IAdcProvider { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -103,16 +94,9 @@ impl IAdcProvider { } } } -::windows_core::imp::interface_hierarchy!(IAdcProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IAdcProvider { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IAdcProvider { - type Vtable = IAdcProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAdcProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x28953668_9359_4c57_bc88_e275e81638c9); -} #[repr(C)] #[doc(hidden)] pub struct IAdcProvider_Vtbl { diff --git a/crates/libs/windows/src/Windows/Devices/Adc/mod.rs b/crates/libs/windows/src/Windows/Devices/Adc/mod.rs index 200390010c..60fa6b3ba1 100644 --- a/crates/libs/windows/src/Windows/Devices/Adc/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Adc/mod.rs @@ -1,16 +1,7 @@ #[cfg(feature = "Devices_Adc_Provider")] #[doc = "Required features: `\"Devices_Adc_Provider\"`"] pub mod Provider; -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAdcChannel(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAdcChannel { - type Vtable = IAdcChannel_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAdcChannel { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x040bf414_2588_4a56_abef_73a260acc60a); -} +::windows_core::imp::com_interface!(IAdcChannel, IAdcChannel_Vtbl, 0x040bf414_2588_4a56_abef_73a260acc60a); #[repr(C)] #[doc(hidden)] pub struct IAdcChannel_Vtbl { @@ -19,16 +10,7 @@ pub struct IAdcChannel_Vtbl { pub ReadValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows_core::HRESULT, pub ReadRatio: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAdcController(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAdcController { - type Vtable = IAdcController_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAdcController { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2a76e4b0_a896_4219_86b6_ea8cdce98f56); -} +::windows_core::imp::com_interface!(IAdcController, IAdcController_Vtbl, 0x2a76e4b0_a896_4219_86b6_ea8cdce98f56); #[repr(C)] #[doc(hidden)] pub struct IAdcController_Vtbl { @@ -42,16 +24,7 @@ pub struct IAdcController_Vtbl { pub IsChannelModeSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, channelmode: AdcChannelMode, result__: *mut bool) -> ::windows_core::HRESULT, pub OpenChannel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, channelnumber: i32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAdcControllerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAdcControllerStatics { - type Vtable = IAdcControllerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAdcControllerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcce98e0c_01f8_4891_bc3b_be53ef279ca4); -} +::windows_core::imp::com_interface!(IAdcControllerStatics, IAdcControllerStatics_Vtbl, 0xcce98e0c_01f8_4891_bc3b_be53ef279ca4); #[repr(C)] #[doc(hidden)] pub struct IAdcControllerStatics_Vtbl { @@ -61,16 +34,7 @@ pub struct IAdcControllerStatics_Vtbl { #[cfg(not(all(feature = "Devices_Adc_Provider", feature = "Foundation_Collections")))] GetControllersAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAdcControllerStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAdcControllerStatics2 { - type Vtable = IAdcControllerStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAdcControllerStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa2b93b1d_977b_4f5a_a5fe_a6abaffe6484); -} +::windows_core::imp::com_interface!(IAdcControllerStatics2, IAdcControllerStatics2_Vtbl, 0xa2b93b1d_977b_4f5a_a5fe_a6abaffe6484); #[repr(C)] #[doc(hidden)] pub struct IAdcControllerStatics2_Vtbl { @@ -80,6 +44,8 @@ pub struct IAdcControllerStatics2_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AdcChannel(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AdcChannel, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(AdcChannel, super::super::Foundation::IClosable); impl AdcChannel { pub fn Controller(&self) -> ::windows_core::Result { let this = self; @@ -103,7 +69,7 @@ impl AdcChannel { } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } } @@ -112,20 +78,17 @@ impl ::windows_core::RuntimeType for AdcChannel { } unsafe impl ::windows_core::Interface for AdcChannel { type Vtable = IAdcChannel_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AdcChannel { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AdcChannel { const NAME: &'static str = "Windows.Devices.Adc.AdcChannel"; } -::windows_core::imp::interface_hierarchy!(AdcChannel, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for AdcChannel {} unsafe impl ::core::marker::Send for AdcChannel {} unsafe impl ::core::marker::Sync for AdcChannel {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AdcController(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AdcController, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AdcController { pub fn ChannelCount(&self) -> ::windows_core::Result { let this = self; @@ -184,11 +147,11 @@ impl AdcController { #[cfg(all(feature = "Devices_Adc_Provider", feature = "Foundation_Collections"))] pub fn GetControllersAsync(provider: P0) -> ::windows_core::Result>> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IAdcControllerStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).GetControllersAsync)(::windows_core::Interface::as_raw(this), provider.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).GetControllersAsync)(::windows_core::Interface::as_raw(this), provider.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn GetDefaultAsync() -> ::windows_core::Result> { @@ -213,14 +176,11 @@ impl ::windows_core::RuntimeType for AdcController { } unsafe impl ::windows_core::Interface for AdcController { type Vtable = IAdcController_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AdcController { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AdcController { const NAME: &'static str = "Windows.Devices.Adc.AdcController"; } -::windows_core::imp::interface_hierarchy!(AdcController, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AdcController {} unsafe impl ::core::marker::Sync for AdcController {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Devices/Background/mod.rs b/crates/libs/windows/src/Windows/Devices/Background/mod.rs index c888a09301..de2da6826d 100644 --- a/crates/libs/windows/src/Windows/Devices/Background/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Background/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDeviceServicingDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDeviceServicingDetails { - type Vtable = IDeviceServicingDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDeviceServicingDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4aabee29_2344_4ac4_8527_4a8ef6905645); -} +::windows_core::imp::com_interface!(IDeviceServicingDetails, IDeviceServicingDetails_Vtbl, 0x4aabee29_2344_4ac4_8527_4a8ef6905645); #[repr(C)] #[doc(hidden)] pub struct IDeviceServicingDetails_Vtbl { @@ -16,16 +7,7 @@ pub struct IDeviceServicingDetails_Vtbl { pub Arguments: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub ExpectedDuration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::TimeSpan) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDeviceUseDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDeviceUseDetails { - type Vtable = IDeviceUseDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDeviceUseDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7d565141_557e_4154_b994_e4f7a11fb323); -} +::windows_core::imp::com_interface!(IDeviceUseDetails, IDeviceUseDetails_Vtbl, 0x7d565141_557e_4154_b994_e4f7a11fb323); #[repr(C)] #[doc(hidden)] pub struct IDeviceUseDetails_Vtbl { @@ -36,6 +18,7 @@ pub struct IDeviceUseDetails_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DeviceServicingDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DeviceServicingDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DeviceServicingDetails { pub fn DeviceId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -64,19 +47,17 @@ impl ::windows_core::RuntimeType for DeviceServicingDetails { } unsafe impl ::windows_core::Interface for DeviceServicingDetails { type Vtable = IDeviceServicingDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DeviceServicingDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DeviceServicingDetails { const NAME: &'static str = "Windows.Devices.Background.DeviceServicingDetails"; } -::windows_core::imp::interface_hierarchy!(DeviceServicingDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DeviceServicingDetails {} unsafe impl ::core::marker::Sync for DeviceServicingDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DeviceUseDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DeviceUseDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DeviceUseDetails { pub fn DeviceId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -98,13 +79,10 @@ impl ::windows_core::RuntimeType for DeviceUseDetails { } unsafe impl ::windows_core::Interface for DeviceUseDetails { type Vtable = IDeviceUseDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DeviceUseDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DeviceUseDetails { const NAME: &'static str = "Windows.Devices.Background.DeviceUseDetails"; } -::windows_core::imp::interface_hierarchy!(DeviceUseDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DeviceUseDetails {} unsafe impl ::core::marker::Sync for DeviceUseDetails {} 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 660c6c52ea..0043c62ad3 100644 --- a/crates/libs/windows/src/Windows/Devices/Bluetooth/Advertisement/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Bluetooth/Advertisement/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBluetoothLEAdvertisement(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBluetoothLEAdvertisement { - type Vtable = IBluetoothLEAdvertisement_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBluetoothLEAdvertisement { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x066fb2b7_33d1_4e7d_8367_cf81d0f79653); -} +::windows_core::imp::com_interface!(IBluetoothLEAdvertisement, IBluetoothLEAdvertisement_Vtbl, 0x066fb2b7_33d1_4e7d_8367_cf81d0f79653); #[repr(C)] #[doc(hidden)] pub struct IBluetoothLEAdvertisement_Vtbl { @@ -37,16 +28,7 @@ pub struct IBluetoothLEAdvertisement_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetSectionsByType: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBluetoothLEAdvertisementBytePattern(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBluetoothLEAdvertisementBytePattern { - type Vtable = IBluetoothLEAdvertisementBytePattern_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBluetoothLEAdvertisementBytePattern { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfbfad7f2_b9c5_4a08_bc51_502f8ef68a79); -} +::windows_core::imp::com_interface!(IBluetoothLEAdvertisementBytePattern, IBluetoothLEAdvertisementBytePattern_Vtbl, 0xfbfad7f2_b9c5_4a08_bc51_502f8ef68a79); #[repr(C)] #[doc(hidden)] pub struct IBluetoothLEAdvertisementBytePattern_Vtbl { @@ -64,16 +46,7 @@ pub struct IBluetoothLEAdvertisementBytePattern_Vtbl { #[cfg(not(feature = "Storage_Streams"))] SetData: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBluetoothLEAdvertisementBytePatternFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBluetoothLEAdvertisementBytePatternFactory { - type Vtable = IBluetoothLEAdvertisementBytePatternFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBluetoothLEAdvertisementBytePatternFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc2e24d73_fd5c_4ec3_be2a_9ca6fa11b7bd); -} +::windows_core::imp::com_interface!(IBluetoothLEAdvertisementBytePatternFactory, IBluetoothLEAdvertisementBytePatternFactory_Vtbl, 0xc2e24d73_fd5c_4ec3_be2a_9ca6fa11b7bd); #[repr(C)] #[doc(hidden)] pub struct IBluetoothLEAdvertisementBytePatternFactory_Vtbl { @@ -83,16 +56,7 @@ pub struct IBluetoothLEAdvertisementBytePatternFactory_Vtbl { #[cfg(not(feature = "Storage_Streams"))] Create: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBluetoothLEAdvertisementDataSection(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBluetoothLEAdvertisementDataSection { - type Vtable = IBluetoothLEAdvertisementDataSection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBluetoothLEAdvertisementDataSection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd7213314_3a43_40f9_b6f0_92bfefc34ae3); -} +::windows_core::imp::com_interface!(IBluetoothLEAdvertisementDataSection, IBluetoothLEAdvertisementDataSection_Vtbl, 0xd7213314_3a43_40f9_b6f0_92bfefc34ae3); #[repr(C)] #[doc(hidden)] pub struct IBluetoothLEAdvertisementDataSection_Vtbl { @@ -108,16 +72,7 @@ pub struct IBluetoothLEAdvertisementDataSection_Vtbl { #[cfg(not(feature = "Storage_Streams"))] SetData: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBluetoothLEAdvertisementDataSectionFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBluetoothLEAdvertisementDataSectionFactory { - type Vtable = IBluetoothLEAdvertisementDataSectionFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBluetoothLEAdvertisementDataSectionFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe7a40942_a845_4045_bf7e_3e9971db8a6b); -} +::windows_core::imp::com_interface!(IBluetoothLEAdvertisementDataSectionFactory, IBluetoothLEAdvertisementDataSectionFactory_Vtbl, 0xe7a40942_a845_4045_bf7e_3e9971db8a6b); #[repr(C)] #[doc(hidden)] pub struct IBluetoothLEAdvertisementDataSectionFactory_Vtbl { @@ -127,16 +82,7 @@ pub struct IBluetoothLEAdvertisementDataSectionFactory_Vtbl { #[cfg(not(feature = "Storage_Streams"))] Create: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBluetoothLEAdvertisementDataTypesStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBluetoothLEAdvertisementDataTypesStatics { - type Vtable = IBluetoothLEAdvertisementDataTypesStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBluetoothLEAdvertisementDataTypesStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3bb6472f_0606_434b_a76e_74159f0684d3); -} +::windows_core::imp::com_interface!(IBluetoothLEAdvertisementDataTypesStatics, IBluetoothLEAdvertisementDataTypesStatics_Vtbl, 0x3bb6472f_0606_434b_a76e_74159f0684d3); #[repr(C)] #[doc(hidden)] pub struct IBluetoothLEAdvertisementDataTypesStatics_Vtbl { @@ -164,16 +110,7 @@ pub struct IBluetoothLEAdvertisementDataTypesStatics_Vtbl { pub AdvertisingInterval: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u8) -> ::windows_core::HRESULT, pub ManufacturerSpecificData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u8) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBluetoothLEAdvertisementFilter(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBluetoothLEAdvertisementFilter { - type Vtable = IBluetoothLEAdvertisementFilter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBluetoothLEAdvertisementFilter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x131eb0d3_d04e_47b1_837e_49405bf6f80f); -} +::windows_core::imp::com_interface!(IBluetoothLEAdvertisementFilter, IBluetoothLEAdvertisementFilter_Vtbl, 0x131eb0d3_d04e_47b1_837e_49405bf6f80f); #[repr(C)] #[doc(hidden)] pub struct IBluetoothLEAdvertisementFilter_Vtbl { @@ -185,16 +122,7 @@ pub struct IBluetoothLEAdvertisementFilter_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] BytePatterns: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBluetoothLEAdvertisementPublisher(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBluetoothLEAdvertisementPublisher { - type Vtable = IBluetoothLEAdvertisementPublisher_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBluetoothLEAdvertisementPublisher { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcde820f9_d9fa_43d6_a264_ddd8b7da8b78); -} +::windows_core::imp::com_interface!(IBluetoothLEAdvertisementPublisher, IBluetoothLEAdvertisementPublisher_Vtbl, 0xcde820f9_d9fa_43d6_a264_ddd8b7da8b78); #[repr(C)] #[doc(hidden)] pub struct IBluetoothLEAdvertisementPublisher_Vtbl { @@ -206,16 +134,7 @@ pub struct IBluetoothLEAdvertisementPublisher_Vtbl { pub StatusChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveStatusChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBluetoothLEAdvertisementPublisher2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBluetoothLEAdvertisementPublisher2 { - type Vtable = IBluetoothLEAdvertisementPublisher2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBluetoothLEAdvertisementPublisher2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfbdb545e_56f1_510f_a434_217fbd9e7bd2); -} +::windows_core::imp::com_interface!(IBluetoothLEAdvertisementPublisher2, IBluetoothLEAdvertisementPublisher2_Vtbl, 0xfbdb545e_56f1_510f_a434_217fbd9e7bd2); #[repr(C)] #[doc(hidden)] pub struct IBluetoothLEAdvertisementPublisher2_Vtbl { @@ -229,32 +148,14 @@ pub struct IBluetoothLEAdvertisementPublisher2_Vtbl { pub IncludeTransmitPowerLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetIncludeTransmitPowerLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBluetoothLEAdvertisementPublisherFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBluetoothLEAdvertisementPublisherFactory { - type Vtable = IBluetoothLEAdvertisementPublisherFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBluetoothLEAdvertisementPublisherFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5c5f065e_b863_4981_a1af_1c544d8b0c0d); -} +::windows_core::imp::com_interface!(IBluetoothLEAdvertisementPublisherFactory, IBluetoothLEAdvertisementPublisherFactory_Vtbl, 0x5c5f065e_b863_4981_a1af_1c544d8b0c0d); #[repr(C)] #[doc(hidden)] pub struct IBluetoothLEAdvertisementPublisherFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, advertisement: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBluetoothLEAdvertisementPublisherStatusChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBluetoothLEAdvertisementPublisherStatusChangedEventArgs { - type Vtable = IBluetoothLEAdvertisementPublisherStatusChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBluetoothLEAdvertisementPublisherStatusChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x09c2bd9f_2dff_4b23_86ee_0d14fb94aeae); -} +::windows_core::imp::com_interface!(IBluetoothLEAdvertisementPublisherStatusChangedEventArgs, IBluetoothLEAdvertisementPublisherStatusChangedEventArgs_Vtbl, 0x09c2bd9f_2dff_4b23_86ee_0d14fb94aeae); #[repr(C)] #[doc(hidden)] pub struct IBluetoothLEAdvertisementPublisherStatusChangedEventArgs_Vtbl { @@ -262,32 +163,14 @@ pub struct IBluetoothLEAdvertisementPublisherStatusChangedEventArgs_Vtbl { pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut BluetoothLEAdvertisementPublisherStatus) -> ::windows_core::HRESULT, pub Error: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::BluetoothError) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBluetoothLEAdvertisementPublisherStatusChangedEventArgs2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBluetoothLEAdvertisementPublisherStatusChangedEventArgs2 { - type Vtable = IBluetoothLEAdvertisementPublisherStatusChangedEventArgs2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBluetoothLEAdvertisementPublisherStatusChangedEventArgs2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8f62790e_dc88_5c8b_b34e_10b321850f88); -} +::windows_core::imp::com_interface!(IBluetoothLEAdvertisementPublisherStatusChangedEventArgs2, IBluetoothLEAdvertisementPublisherStatusChangedEventArgs2_Vtbl, 0x8f62790e_dc88_5c8b_b34e_10b321850f88); #[repr(C)] #[doc(hidden)] pub struct IBluetoothLEAdvertisementPublisherStatusChangedEventArgs2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub SelectedTransmitPowerLevelInDBm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBluetoothLEAdvertisementReceivedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBluetoothLEAdvertisementReceivedEventArgs { - type Vtable = IBluetoothLEAdvertisementReceivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBluetoothLEAdvertisementReceivedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x27987ddf_e596_41be_8d43_9e6731d4a913); -} +::windows_core::imp::com_interface!(IBluetoothLEAdvertisementReceivedEventArgs, IBluetoothLEAdvertisementReceivedEventArgs_Vtbl, 0x27987ddf_e596_41be_8d43_9e6731d4a913); #[repr(C)] #[doc(hidden)] pub struct IBluetoothLEAdvertisementReceivedEventArgs_Vtbl { @@ -298,16 +181,7 @@ pub struct IBluetoothLEAdvertisementReceivedEventArgs_Vtbl { pub Timestamp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::DateTime) -> ::windows_core::HRESULT, pub Advertisement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBluetoothLEAdvertisementReceivedEventArgs2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBluetoothLEAdvertisementReceivedEventArgs2 { - type Vtable = IBluetoothLEAdvertisementReceivedEventArgs2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBluetoothLEAdvertisementReceivedEventArgs2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x12d9c87b_0399_5f0e_a348_53b02b6b162e); -} +::windows_core::imp::com_interface!(IBluetoothLEAdvertisementReceivedEventArgs2, IBluetoothLEAdvertisementReceivedEventArgs2_Vtbl, 0x12d9c87b_0399_5f0e_a348_53b02b6b162e); #[repr(C)] #[doc(hidden)] pub struct IBluetoothLEAdvertisementReceivedEventArgs2_Vtbl { @@ -320,16 +194,7 @@ pub struct IBluetoothLEAdvertisementReceivedEventArgs2_Vtbl { pub IsDirected: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub IsScanResponse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBluetoothLEAdvertisementWatcher(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBluetoothLEAdvertisementWatcher { - type Vtable = IBluetoothLEAdvertisementWatcher_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBluetoothLEAdvertisementWatcher { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa6ac336f_f3d3_4297_8d6c_c81ea6623f40); -} +::windows_core::imp::com_interface!(IBluetoothLEAdvertisementWatcher, IBluetoothLEAdvertisementWatcher_Vtbl, 0xa6ac336f_f3d3_4297_8d6c_c81ea6623f40); #[repr(C)] #[doc(hidden)] pub struct IBluetoothLEAdvertisementWatcher_Vtbl { @@ -352,16 +217,7 @@ pub struct IBluetoothLEAdvertisementWatcher_Vtbl { pub Stopped: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveStopped: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBluetoothLEAdvertisementWatcher2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBluetoothLEAdvertisementWatcher2 { - type Vtable = IBluetoothLEAdvertisementWatcher2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBluetoothLEAdvertisementWatcher2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x01bf26bc_b164_5805_90a3_e8a7997ff225); -} +::windows_core::imp::com_interface!(IBluetoothLEAdvertisementWatcher2, IBluetoothLEAdvertisementWatcher2_Vtbl, 0x01bf26bc_b164_5805_90a3_e8a7997ff225); #[repr(C)] #[doc(hidden)] pub struct IBluetoothLEAdvertisementWatcher2_Vtbl { @@ -369,48 +225,21 @@ pub struct IBluetoothLEAdvertisementWatcher2_Vtbl { pub AllowExtendedAdvertisements: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetAllowExtendedAdvertisements: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBluetoothLEAdvertisementWatcherFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBluetoothLEAdvertisementWatcherFactory { - type Vtable = IBluetoothLEAdvertisementWatcherFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBluetoothLEAdvertisementWatcherFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9aaf2d56_39ac_453e_b32a_85c657e017f1); -} +::windows_core::imp::com_interface!(IBluetoothLEAdvertisementWatcherFactory, IBluetoothLEAdvertisementWatcherFactory_Vtbl, 0x9aaf2d56_39ac_453e_b32a_85c657e017f1); #[repr(C)] #[doc(hidden)] pub struct IBluetoothLEAdvertisementWatcherFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, advertisementfilter: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBluetoothLEAdvertisementWatcherStoppedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBluetoothLEAdvertisementWatcherStoppedEventArgs { - type Vtable = IBluetoothLEAdvertisementWatcherStoppedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBluetoothLEAdvertisementWatcherStoppedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdd40f84d_e7b9_43e3_9c04_0685d085fd8c); -} +::windows_core::imp::com_interface!(IBluetoothLEAdvertisementWatcherStoppedEventArgs, IBluetoothLEAdvertisementWatcherStoppedEventArgs_Vtbl, 0xdd40f84d_e7b9_43e3_9c04_0685d085fd8c); #[repr(C)] #[doc(hidden)] pub struct IBluetoothLEAdvertisementWatcherStoppedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Error: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::BluetoothError) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBluetoothLEManufacturerData(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBluetoothLEManufacturerData { - type Vtable = IBluetoothLEManufacturerData_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBluetoothLEManufacturerData { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x912dba18_6963_4533_b061_4694dafb34e5); -} +::windows_core::imp::com_interface!(IBluetoothLEManufacturerData, IBluetoothLEManufacturerData_Vtbl, 0x912dba18_6963_4533_b061_4694dafb34e5); #[repr(C)] #[doc(hidden)] pub struct IBluetoothLEManufacturerData_Vtbl { @@ -426,16 +255,7 @@ pub struct IBluetoothLEManufacturerData_Vtbl { #[cfg(not(feature = "Storage_Streams"))] SetData: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBluetoothLEManufacturerDataFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBluetoothLEManufacturerDataFactory { - type Vtable = IBluetoothLEManufacturerDataFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBluetoothLEManufacturerDataFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc09b39f8_319a_441e_8de5_66a81e877a6c); -} +::windows_core::imp::com_interface!(IBluetoothLEManufacturerDataFactory, IBluetoothLEManufacturerDataFactory_Vtbl, 0xc09b39f8_319a_441e_8de5_66a81e877a6c); #[repr(C)] #[doc(hidden)] pub struct IBluetoothLEManufacturerDataFactory_Vtbl { @@ -448,6 +268,7 @@ pub struct IBluetoothLEManufacturerDataFactory_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BluetoothLEAdvertisement(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BluetoothLEAdvertisement, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BluetoothLEAdvertisement { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -465,10 +286,10 @@ impl BluetoothLEAdvertisement { } pub fn SetFlags(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetFlags)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetFlags)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn LocalName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -532,19 +353,17 @@ impl ::windows_core::RuntimeType for BluetoothLEAdvertisement { } unsafe impl ::windows_core::Interface for BluetoothLEAdvertisement { type Vtable = IBluetoothLEAdvertisement_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BluetoothLEAdvertisement { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BluetoothLEAdvertisement { const NAME: &'static str = "Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisement"; } -::windows_core::imp::interface_hierarchy!(BluetoothLEAdvertisement, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BluetoothLEAdvertisement {} unsafe impl ::core::marker::Sync for BluetoothLEAdvertisement {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BluetoothLEAdvertisementBytePattern(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BluetoothLEAdvertisementBytePattern, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BluetoothLEAdvertisementBytePattern { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -588,20 +407,20 @@ impl BluetoothLEAdvertisementBytePattern { #[cfg(feature = "Storage_Streams")] pub fn SetData(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetData)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetData)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn Create(datatype: u8, offset: i16, data: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).Create)(::windows_core::Interface::as_raw(this), datatype, offset, data.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -615,19 +434,17 @@ impl ::windows_core::RuntimeType for BluetoothLEAdvertisementBytePattern { } unsafe impl ::windows_core::Interface for BluetoothLEAdvertisementBytePattern { type Vtable = IBluetoothLEAdvertisementBytePattern_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BluetoothLEAdvertisementBytePattern { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BluetoothLEAdvertisementBytePattern { const NAME: &'static str = "Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementBytePattern"; } -::windows_core::imp::interface_hierarchy!(BluetoothLEAdvertisementBytePattern, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BluetoothLEAdvertisementBytePattern {} unsafe impl ::core::marker::Sync for BluetoothLEAdvertisementBytePattern {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BluetoothLEAdvertisementDataSection(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BluetoothLEAdvertisementDataSection, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BluetoothLEAdvertisementDataSection { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -660,20 +477,20 @@ impl BluetoothLEAdvertisementDataSection { #[cfg(feature = "Storage_Streams")] pub fn SetData(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetData)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetData)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn Create(datatype: u8, data: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IBluetoothLEAdvertisementDataSectionFactory(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).Create)(::windows_core::Interface::as_raw(this), datatype, data.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).Create)(::windows_core::Interface::as_raw(this), datatype, data.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -687,14 +504,11 @@ impl ::windows_core::RuntimeType for BluetoothLEAdvertisementDataSection { } unsafe impl ::windows_core::Interface for BluetoothLEAdvertisementDataSection { type Vtable = IBluetoothLEAdvertisementDataSection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BluetoothLEAdvertisementDataSection { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BluetoothLEAdvertisementDataSection { const NAME: &'static str = "Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementDataSection"; } -::windows_core::imp::interface_hierarchy!(BluetoothLEAdvertisementDataSection, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BluetoothLEAdvertisementDataSection {} unsafe impl ::core::marker::Sync for BluetoothLEAdvertisementDataSection {} pub struct BluetoothLEAdvertisementDataTypes; @@ -843,6 +657,7 @@ impl ::windows_core::RuntimeName for BluetoothLEAdvertisementDataTypes { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BluetoothLEAdvertisementFilter(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BluetoothLEAdvertisementFilter, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BluetoothLEAdvertisementFilter { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -880,19 +695,17 @@ impl ::windows_core::RuntimeType for BluetoothLEAdvertisementFilter { } unsafe impl ::windows_core::Interface for BluetoothLEAdvertisementFilter { type Vtable = IBluetoothLEAdvertisementFilter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BluetoothLEAdvertisementFilter { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BluetoothLEAdvertisementFilter { const NAME: &'static str = "Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementFilter"; } -::windows_core::imp::interface_hierarchy!(BluetoothLEAdvertisementFilter, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BluetoothLEAdvertisementFilter {} unsafe impl ::core::marker::Sync for BluetoothLEAdvertisementFilter {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BluetoothLEAdvertisementPublisher(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BluetoothLEAdvertisementPublisher, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BluetoothLEAdvertisementPublisher { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -938,7 +751,7 @@ impl BluetoothLEAdvertisementPublisher { unsafe { (::windows_core::Interface::vtable(this).RemoveStatusChanged)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn PreferredTransmitPowerLevelInDBm(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreferredTransmitPowerLevelInDBm)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -946,42 +759,42 @@ impl BluetoothLEAdvertisementPublisher { } pub fn SetPreferredTransmitPowerLevelInDBm(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetPreferredTransmitPowerLevelInDBm)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn UseExtendedAdvertisement(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).UseExtendedAdvertisement)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetUseExtendedAdvertisement(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetUseExtendedAdvertisement)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsAnonymous(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsAnonymous)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsAnonymous(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsAnonymous)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IncludeTransmitPowerLevel(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IncludeTransmitPowerLevel)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIncludeTransmitPowerLevel(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIncludeTransmitPowerLevel)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Create(advertisement: P0) -> ::windows_core::Result @@ -1004,19 +817,17 @@ impl ::windows_core::RuntimeType for BluetoothLEAdvertisementPublisher { } unsafe impl ::windows_core::Interface for BluetoothLEAdvertisementPublisher { type Vtable = IBluetoothLEAdvertisementPublisher_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BluetoothLEAdvertisementPublisher { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BluetoothLEAdvertisementPublisher { const NAME: &'static str = "Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementPublisher"; } -::windows_core::imp::interface_hierarchy!(BluetoothLEAdvertisementPublisher, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BluetoothLEAdvertisementPublisher {} unsafe impl ::core::marker::Sync for BluetoothLEAdvertisementPublisher {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BluetoothLEAdvertisementPublisherStatusChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BluetoothLEAdvertisementPublisherStatusChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BluetoothLEAdvertisementPublisherStatusChangedEventArgs { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -1033,7 +844,7 @@ impl BluetoothLEAdvertisementPublisherStatusChangedEventArgs { } } pub fn SelectedTransmitPowerLevelInDBm(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SelectedTransmitPowerLevelInDBm)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1045,19 +856,17 @@ impl ::windows_core::RuntimeType for BluetoothLEAdvertisementPublisherStatusChan } unsafe impl ::windows_core::Interface for BluetoothLEAdvertisementPublisherStatusChangedEventArgs { type Vtable = IBluetoothLEAdvertisementPublisherStatusChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BluetoothLEAdvertisementPublisherStatusChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BluetoothLEAdvertisementPublisherStatusChangedEventArgs { const NAME: &'static str = "Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementPublisherStatusChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(BluetoothLEAdvertisementPublisherStatusChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BluetoothLEAdvertisementPublisherStatusChangedEventArgs {} unsafe impl ::core::marker::Sync for BluetoothLEAdvertisementPublisherStatusChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BluetoothLEAdvertisementReceivedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BluetoothLEAdvertisementReceivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BluetoothLEAdvertisementReceivedEventArgs { pub fn RawSignalStrengthInDBm(&self) -> ::windows_core::Result { let this = self; @@ -1095,49 +904,49 @@ impl BluetoothLEAdvertisementReceivedEventArgs { } } pub fn BluetoothAddressType(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).BluetoothAddressType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TransmitPowerLevelInDBm(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TransmitPowerLevelInDBm)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsAnonymous(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsAnonymous)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsConnectable(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsConnectable)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsScannable(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsScannable)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsDirected(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsDirected)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsScanResponse(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsScanResponse)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1149,19 +958,17 @@ impl ::windows_core::RuntimeType for BluetoothLEAdvertisementReceivedEventArgs { } unsafe impl ::windows_core::Interface for BluetoothLEAdvertisementReceivedEventArgs { type Vtable = IBluetoothLEAdvertisementReceivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BluetoothLEAdvertisementReceivedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BluetoothLEAdvertisementReceivedEventArgs { const NAME: &'static str = "Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementReceivedEventArgs"; } -::windows_core::imp::interface_hierarchy!(BluetoothLEAdvertisementReceivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BluetoothLEAdvertisementReceivedEventArgs {} unsafe impl ::core::marker::Sync for BluetoothLEAdvertisementReceivedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BluetoothLEAdvertisementWatcher(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BluetoothLEAdvertisementWatcher, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BluetoothLEAdvertisementWatcher { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1281,14 +1088,14 @@ impl BluetoothLEAdvertisementWatcher { unsafe { (::windows_core::Interface::vtable(this).RemoveStopped)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn AllowExtendedAdvertisements(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AllowExtendedAdvertisements)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetAllowExtendedAdvertisements(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetAllowExtendedAdvertisements)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Create(advertisementfilter: P0) -> ::windows_core::Result @@ -1311,19 +1118,17 @@ impl ::windows_core::RuntimeType for BluetoothLEAdvertisementWatcher { } unsafe impl ::windows_core::Interface for BluetoothLEAdvertisementWatcher { type Vtable = IBluetoothLEAdvertisementWatcher_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BluetoothLEAdvertisementWatcher { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BluetoothLEAdvertisementWatcher { const NAME: &'static str = "Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementWatcher"; } -::windows_core::imp::interface_hierarchy!(BluetoothLEAdvertisementWatcher, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BluetoothLEAdvertisementWatcher {} unsafe impl ::core::marker::Sync for BluetoothLEAdvertisementWatcher {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BluetoothLEAdvertisementWatcherStoppedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BluetoothLEAdvertisementWatcherStoppedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BluetoothLEAdvertisementWatcherStoppedEventArgs { pub fn Error(&self) -> ::windows_core::Result { let this = self; @@ -1338,19 +1143,17 @@ impl ::windows_core::RuntimeType for BluetoothLEAdvertisementWatcherStoppedEvent } unsafe impl ::windows_core::Interface for BluetoothLEAdvertisementWatcherStoppedEventArgs { type Vtable = IBluetoothLEAdvertisementWatcherStoppedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BluetoothLEAdvertisementWatcherStoppedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BluetoothLEAdvertisementWatcherStoppedEventArgs { const NAME: &'static str = "Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementWatcherStoppedEventArgs"; } -::windows_core::imp::interface_hierarchy!(BluetoothLEAdvertisementWatcherStoppedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BluetoothLEAdvertisementWatcherStoppedEventArgs {} unsafe impl ::core::marker::Sync for BluetoothLEAdvertisementWatcherStoppedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BluetoothLEManufacturerData(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BluetoothLEManufacturerData, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BluetoothLEManufacturerData { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1383,20 +1186,20 @@ impl BluetoothLEManufacturerData { #[cfg(feature = "Storage_Streams")] pub fn SetData(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetData)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetData)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn Create(companyid: u16, data: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IBluetoothLEManufacturerDataFactory(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).Create)(::windows_core::Interface::as_raw(this), companyid, data.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).Create)(::windows_core::Interface::as_raw(this), companyid, data.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -1410,14 +1213,11 @@ impl ::windows_core::RuntimeType for BluetoothLEManufacturerData { } unsafe impl ::windows_core::Interface for BluetoothLEManufacturerData { type Vtable = IBluetoothLEManufacturerData_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BluetoothLEManufacturerData { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BluetoothLEManufacturerData { const NAME: &'static str = "Windows.Devices.Bluetooth.Advertisement.BluetoothLEManufacturerData"; } -::windows_core::imp::interface_hierarchy!(BluetoothLEManufacturerData, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BluetoothLEManufacturerData {} unsafe impl ::core::marker::Sync for BluetoothLEManufacturerData {} #[repr(transparent)] 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 887ea0f40c..0a24d286cc 100644 --- a/crates/libs/windows/src/Windows/Devices/Bluetooth/Background/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Bluetooth/Background/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBluetoothLEAdvertisementPublisherTriggerDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBluetoothLEAdvertisementPublisherTriggerDetails { - type Vtable = IBluetoothLEAdvertisementPublisherTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBluetoothLEAdvertisementPublisherTriggerDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x610eca86_3480_41c9_a918_7ddadf207e00); -} +::windows_core::imp::com_interface!(IBluetoothLEAdvertisementPublisherTriggerDetails, IBluetoothLEAdvertisementPublisherTriggerDetails_Vtbl, 0x610eca86_3480_41c9_a918_7ddadf207e00); #[repr(C)] #[doc(hidden)] pub struct IBluetoothLEAdvertisementPublisherTriggerDetails_Vtbl { @@ -18,32 +9,14 @@ pub struct IBluetoothLEAdvertisementPublisherTriggerDetails_Vtbl { Status: usize, pub Error: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::BluetoothError) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBluetoothLEAdvertisementPublisherTriggerDetails2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBluetoothLEAdvertisementPublisherTriggerDetails2 { - type Vtable = IBluetoothLEAdvertisementPublisherTriggerDetails2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBluetoothLEAdvertisementPublisherTriggerDetails2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd4a3d025_c601_42d6_9829_4ccb3f5cd77f); -} +::windows_core::imp::com_interface!(IBluetoothLEAdvertisementPublisherTriggerDetails2, IBluetoothLEAdvertisementPublisherTriggerDetails2_Vtbl, 0xd4a3d025_c601_42d6_9829_4ccb3f5cd77f); #[repr(C)] #[doc(hidden)] pub struct IBluetoothLEAdvertisementPublisherTriggerDetails2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub SelectedTransmitPowerLevelInDBm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBluetoothLEAdvertisementWatcherTriggerDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBluetoothLEAdvertisementWatcherTriggerDetails { - type Vtable = IBluetoothLEAdvertisementWatcherTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBluetoothLEAdvertisementWatcherTriggerDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa7db5ad7_2257_4e69_9784_fee645c1dce0); -} +::windows_core::imp::com_interface!(IBluetoothLEAdvertisementWatcherTriggerDetails, IBluetoothLEAdvertisementWatcherTriggerDetails_Vtbl, 0xa7db5ad7_2257_4e69_9784_fee645c1dce0); #[repr(C)] #[doc(hidden)] pub struct IBluetoothLEAdvertisementWatcherTriggerDetails_Vtbl { @@ -55,16 +28,7 @@ pub struct IBluetoothLEAdvertisementWatcherTriggerDetails_Vtbl { Advertisements: usize, pub SignalStrengthFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGattCharacteristicNotificationTriggerDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGattCharacteristicNotificationTriggerDetails { - type Vtable = IGattCharacteristicNotificationTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGattCharacteristicNotificationTriggerDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9ba03b18_0fec_436a_93b1_f46c697532a2); -} +::windows_core::imp::com_interface!(IGattCharacteristicNotificationTriggerDetails, IGattCharacteristicNotificationTriggerDetails_Vtbl, 0x9ba03b18_0fec_436a_93b1_f46c697532a2); #[repr(C)] #[doc(hidden)] pub struct IGattCharacteristicNotificationTriggerDetails_Vtbl { @@ -78,16 +42,7 @@ pub struct IGattCharacteristicNotificationTriggerDetails_Vtbl { #[cfg(not(feature = "Storage_Streams"))] Value: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGattCharacteristicNotificationTriggerDetails2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGattCharacteristicNotificationTriggerDetails2 { - type Vtable = IGattCharacteristicNotificationTriggerDetails2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGattCharacteristicNotificationTriggerDetails2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x727a50dc_949d_454a_b192_983467e3d50f); -} +::windows_core::imp::com_interface!(IGattCharacteristicNotificationTriggerDetails2, IGattCharacteristicNotificationTriggerDetails2_Vtbl, 0x727a50dc_949d_454a_b192_983467e3d50f); #[repr(C)] #[doc(hidden)] pub struct IGattCharacteristicNotificationTriggerDetails2_Vtbl { @@ -99,16 +54,7 @@ pub struct IGattCharacteristicNotificationTriggerDetails2_Vtbl { #[cfg(not(all(feature = "Devices_Bluetooth_GenericAttributeProfile", feature = "Foundation_Collections")))] ValueChangedEvents: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGattServiceProviderConnection(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGattServiceProviderConnection { - type Vtable = IGattServiceProviderConnection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGattServiceProviderConnection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7fa1b9b9_2f13_40b5_9582_8eb78e98ef13); -} +::windows_core::imp::com_interface!(IGattServiceProviderConnection, IGattServiceProviderConnection_Vtbl, 0x7fa1b9b9_2f13_40b5_9582_8eb78e98ef13); #[repr(C)] #[doc(hidden)] pub struct IGattServiceProviderConnection_Vtbl { @@ -120,16 +66,7 @@ pub struct IGattServiceProviderConnection_Vtbl { Service: usize, pub Start: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGattServiceProviderConnectionStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGattServiceProviderConnectionStatics { - type Vtable = IGattServiceProviderConnectionStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGattServiceProviderConnectionStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3d509f4b_0b0e_4466_b8cd_6ebdda1fa17d); -} +::windows_core::imp::com_interface!(IGattServiceProviderConnectionStatics, IGattServiceProviderConnectionStatics_Vtbl, 0x3d509f4b_0b0e_4466_b8cd_6ebdda1fa17d); #[repr(C)] #[doc(hidden)] pub struct IGattServiceProviderConnectionStatics_Vtbl { @@ -139,32 +76,14 @@ pub struct IGattServiceProviderConnectionStatics_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] AllServices: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGattServiceProviderTriggerDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGattServiceProviderTriggerDetails { - type Vtable = IGattServiceProviderTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGattServiceProviderTriggerDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xae8c0625_05ff_4afb_b16a_de95f3cf0158); -} +::windows_core::imp::com_interface!(IGattServiceProviderTriggerDetails, IGattServiceProviderTriggerDetails_Vtbl, 0xae8c0625_05ff_4afb_b16a_de95f3cf0158); #[repr(C)] #[doc(hidden)] pub struct IGattServiceProviderTriggerDetails_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Connection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRfcommConnectionTriggerDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRfcommConnectionTriggerDetails { - type Vtable = IRfcommConnectionTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRfcommConnectionTriggerDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf922734d_2e3c_4efc_ab59_fc5cf96f97e3); -} +::windows_core::imp::com_interface!(IRfcommConnectionTriggerDetails, IRfcommConnectionTriggerDetails_Vtbl, 0xf922734d_2e3c_4efc_ab59_fc5cf96f97e3); #[repr(C)] #[doc(hidden)] pub struct IRfcommConnectionTriggerDetails_Vtbl { @@ -176,16 +95,7 @@ pub struct IRfcommConnectionTriggerDetails_Vtbl { pub Incoming: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub RemoteDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRfcommInboundConnectionInformation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRfcommInboundConnectionInformation { - type Vtable = IRfcommInboundConnectionInformation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRfcommInboundConnectionInformation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6d3e75a8_5429_4059_92e3_1e8b65528707); -} +::windows_core::imp::com_interface!(IRfcommInboundConnectionInformation, IRfcommInboundConnectionInformation_Vtbl, 0x6d3e75a8_5429_4059_92e3_1e8b65528707); #[repr(C)] #[doc(hidden)] pub struct IRfcommInboundConnectionInformation_Vtbl { @@ -209,16 +119,7 @@ pub struct IRfcommInboundConnectionInformation_Vtbl { pub ServiceCapabilities: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::BluetoothServiceCapabilities) -> ::windows_core::HRESULT, pub SetServiceCapabilities: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::BluetoothServiceCapabilities) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRfcommOutboundConnectionInformation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRfcommOutboundConnectionInformation { - type Vtable = IRfcommOutboundConnectionInformation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRfcommOutboundConnectionInformation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb091227b_f434_4cb0_99b1_4ab8cedaedd7); -} +::windows_core::imp::com_interface!(IRfcommOutboundConnectionInformation, IRfcommOutboundConnectionInformation_Vtbl, 0xb091227b_f434_4cb0_99b1_4ab8cedaedd7); #[repr(C)] #[doc(hidden)] pub struct IRfcommOutboundConnectionInformation_Vtbl { @@ -235,6 +136,7 @@ pub struct IRfcommOutboundConnectionInformation_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BluetoothLEAdvertisementPublisherTriggerDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BluetoothLEAdvertisementPublisherTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BluetoothLEAdvertisementPublisherTriggerDetails { #[doc = "Required features: `\"Devices_Bluetooth_Advertisement\"`"] #[cfg(feature = "Devices_Bluetooth_Advertisement")] @@ -253,7 +155,7 @@ impl BluetoothLEAdvertisementPublisherTriggerDetails { } } pub fn SelectedTransmitPowerLevelInDBm(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SelectedTransmitPowerLevelInDBm)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -265,19 +167,17 @@ impl ::windows_core::RuntimeType for BluetoothLEAdvertisementPublisherTriggerDet } unsafe impl ::windows_core::Interface for BluetoothLEAdvertisementPublisherTriggerDetails { type Vtable = IBluetoothLEAdvertisementPublisherTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BluetoothLEAdvertisementPublisherTriggerDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BluetoothLEAdvertisementPublisherTriggerDetails { const NAME: &'static str = "Windows.Devices.Bluetooth.Background.BluetoothLEAdvertisementPublisherTriggerDetails"; } -::windows_core::imp::interface_hierarchy!(BluetoothLEAdvertisementPublisherTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BluetoothLEAdvertisementPublisherTriggerDetails {} unsafe impl ::core::marker::Sync for BluetoothLEAdvertisementPublisherTriggerDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BluetoothLEAdvertisementWatcherTriggerDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BluetoothLEAdvertisementWatcherTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BluetoothLEAdvertisementWatcherTriggerDetails { pub fn Error(&self) -> ::windows_core::Result { let this = self; @@ -308,19 +208,17 @@ impl ::windows_core::RuntimeType for BluetoothLEAdvertisementWatcherTriggerDetai } unsafe impl ::windows_core::Interface for BluetoothLEAdvertisementWatcherTriggerDetails { type Vtable = IBluetoothLEAdvertisementWatcherTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BluetoothLEAdvertisementWatcherTriggerDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BluetoothLEAdvertisementWatcherTriggerDetails { const NAME: &'static str = "Windows.Devices.Bluetooth.Background.BluetoothLEAdvertisementWatcherTriggerDetails"; } -::windows_core::imp::interface_hierarchy!(BluetoothLEAdvertisementWatcherTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BluetoothLEAdvertisementWatcherTriggerDetails {} unsafe impl ::core::marker::Sync for BluetoothLEAdvertisementWatcherTriggerDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GattCharacteristicNotificationTriggerDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GattCharacteristicNotificationTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GattCharacteristicNotificationTriggerDetails { #[doc = "Required features: `\"Devices_Bluetooth_GenericAttributeProfile\"`"] #[cfg(feature = "Devices_Bluetooth_GenericAttributeProfile")] @@ -341,14 +239,14 @@ impl GattCharacteristicNotificationTriggerDetails { } } pub fn Error(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Error)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn EventTriggeringMode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).EventTriggeringMode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -357,7 +255,7 @@ impl GattCharacteristicNotificationTriggerDetails { #[doc = "Required features: `\"Devices_Bluetooth_GenericAttributeProfile\"`, `\"Foundation_Collections\"`"] #[cfg(all(feature = "Devices_Bluetooth_GenericAttributeProfile", feature = "Foundation_Collections"))] pub fn ValueChangedEvents(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ValueChangedEvents)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -369,19 +267,17 @@ impl ::windows_core::RuntimeType for GattCharacteristicNotificationTriggerDetail } unsafe impl ::windows_core::Interface for GattCharacteristicNotificationTriggerDetails { type Vtable = IGattCharacteristicNotificationTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GattCharacteristicNotificationTriggerDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GattCharacteristicNotificationTriggerDetails { const NAME: &'static str = "Windows.Devices.Bluetooth.Background.GattCharacteristicNotificationTriggerDetails"; } -::windows_core::imp::interface_hierarchy!(GattCharacteristicNotificationTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GattCharacteristicNotificationTriggerDetails {} unsafe impl ::core::marker::Sync for GattCharacteristicNotificationTriggerDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GattServiceProviderConnection(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GattServiceProviderConnection, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GattServiceProviderConnection { pub fn TriggerId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -422,19 +318,17 @@ impl ::windows_core::RuntimeType for GattServiceProviderConnection { } unsafe impl ::windows_core::Interface for GattServiceProviderConnection { type Vtable = IGattServiceProviderConnection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GattServiceProviderConnection { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GattServiceProviderConnection { const NAME: &'static str = "Windows.Devices.Bluetooth.Background.GattServiceProviderConnection"; } -::windows_core::imp::interface_hierarchy!(GattServiceProviderConnection, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GattServiceProviderConnection {} unsafe impl ::core::marker::Sync for GattServiceProviderConnection {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GattServiceProviderTriggerDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GattServiceProviderTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GattServiceProviderTriggerDetails { pub fn Connection(&self) -> ::windows_core::Result { let this = self; @@ -449,19 +343,17 @@ impl ::windows_core::RuntimeType for GattServiceProviderTriggerDetails { } unsafe impl ::windows_core::Interface for GattServiceProviderTriggerDetails { type Vtable = IGattServiceProviderTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GattServiceProviderTriggerDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GattServiceProviderTriggerDetails { const NAME: &'static str = "Windows.Devices.Bluetooth.Background.GattServiceProviderTriggerDetails"; } -::windows_core::imp::interface_hierarchy!(GattServiceProviderTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GattServiceProviderTriggerDetails {} unsafe impl ::core::marker::Sync for GattServiceProviderTriggerDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RfcommConnectionTriggerDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RfcommConnectionTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RfcommConnectionTriggerDetails { #[doc = "Required features: `\"Networking_Sockets\"`"] #[cfg(feature = "Networking_Sockets")] @@ -492,19 +384,17 @@ impl ::windows_core::RuntimeType for RfcommConnectionTriggerDetails { } unsafe impl ::windows_core::Interface for RfcommConnectionTriggerDetails { type Vtable = IRfcommConnectionTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RfcommConnectionTriggerDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RfcommConnectionTriggerDetails { const NAME: &'static str = "Windows.Devices.Bluetooth.Background.RfcommConnectionTriggerDetails"; } -::windows_core::imp::interface_hierarchy!(RfcommConnectionTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RfcommConnectionTriggerDetails {} unsafe impl ::core::marker::Sync for RfcommConnectionTriggerDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RfcommInboundConnectionInformation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RfcommInboundConnectionInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RfcommInboundConnectionInformation { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] @@ -519,10 +409,10 @@ impl RfcommInboundConnectionInformation { #[cfg(feature = "Storage_Streams")] pub fn SetSdpRecord(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetSdpRecord)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetSdpRecord)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } #[doc = "Required features: `\"Devices_Bluetooth_Rfcomm\"`"] #[cfg(feature = "Devices_Bluetooth_Rfcomm")] @@ -559,19 +449,17 @@ impl ::windows_core::RuntimeType for RfcommInboundConnectionInformation { } unsafe impl ::windows_core::Interface for RfcommInboundConnectionInformation { type Vtable = IRfcommInboundConnectionInformation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RfcommInboundConnectionInformation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RfcommInboundConnectionInformation { const NAME: &'static str = "Windows.Devices.Bluetooth.Background.RfcommInboundConnectionInformation"; } -::windows_core::imp::interface_hierarchy!(RfcommInboundConnectionInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RfcommInboundConnectionInformation {} unsafe impl ::core::marker::Sync for RfcommInboundConnectionInformation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RfcommOutboundConnectionInformation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RfcommOutboundConnectionInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RfcommOutboundConnectionInformation { #[doc = "Required features: `\"Devices_Bluetooth_Rfcomm\"`"] #[cfg(feature = "Devices_Bluetooth_Rfcomm")] @@ -597,14 +485,11 @@ impl ::windows_core::RuntimeType for RfcommOutboundConnectionInformation { } unsafe impl ::windows_core::Interface for RfcommOutboundConnectionInformation { type Vtable = IRfcommOutboundConnectionInformation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RfcommOutboundConnectionInformation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RfcommOutboundConnectionInformation { const NAME: &'static str = "Windows.Devices.Bluetooth.Background.RfcommOutboundConnectionInformation"; } -::windows_core::imp::interface_hierarchy!(RfcommOutboundConnectionInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RfcommOutboundConnectionInformation {} unsafe impl ::core::marker::Sync for RfcommOutboundConnectionInformation {} #[repr(transparent)] 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 ae59d49d35..48e55058d0 100644 --- a/crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGattCharacteristic(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGattCharacteristic { - type Vtable = IGattCharacteristic_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGattCharacteristic { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x59cb50c1_5934_4f68_a198_eb864fa44e6b); -} +::windows_core::imp::com_interface!(IGattCharacteristic, IGattCharacteristic_Vtbl, 0x59cb50c1_5934_4f68_a198_eb864fa44e6b); #[repr(C)] #[doc(hidden)] pub struct IGattCharacteristic_Vtbl { @@ -41,16 +32,7 @@ pub struct IGattCharacteristic_Vtbl { pub ValueChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, valuechangedhandler: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveValueChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, valuechangedeventcookie: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGattCharacteristic2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGattCharacteristic2 { - type Vtable = IGattCharacteristic2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGattCharacteristic2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xae1ab578_ec06_4764_b780_9835a1d35d6e); -} +::windows_core::imp::com_interface!(IGattCharacteristic2, IGattCharacteristic2_Vtbl, 0xae1ab578_ec06_4764_b780_9835a1d35d6e); #[repr(C)] #[doc(hidden)] pub struct IGattCharacteristic2_Vtbl { @@ -61,16 +43,7 @@ pub struct IGattCharacteristic2_Vtbl { #[cfg(not(all(feature = "Foundation_Collections", feature = "deprecated")))] GetAllDescriptors: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGattCharacteristic3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGattCharacteristic3 { - type Vtable = IGattCharacteristic3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGattCharacteristic3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3f3c663e_93d4_406b_b817_db81f8ed53b3); -} +::windows_core::imp::com_interface!(IGattCharacteristic3, IGattCharacteristic3_Vtbl, 0x3f3c663e_93d4_406b_b817_db81f8ed53b3); #[repr(C)] #[doc(hidden)] pub struct IGattCharacteristic3_Vtbl { @@ -89,16 +62,7 @@ pub struct IGattCharacteristic3_Vtbl { WriteValueWithResultAndOptionAsync: usize, pub WriteClientCharacteristicConfigurationDescriptorWithResultAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, clientcharacteristicconfigurationdescriptorvalue: GattClientCharacteristicConfigurationDescriptorValue, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGattCharacteristicStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGattCharacteristicStatics { - type Vtable = IGattCharacteristicStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGattCharacteristicStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x59cb50c3_5934_4f68_a198_eb864fa44e6b); -} +::windows_core::imp::com_interface!(IGattCharacteristicStatics, IGattCharacteristicStatics_Vtbl, 0x59cb50c3_5934_4f68_a198_eb864fa44e6b); #[repr(C)] #[doc(hidden)] pub struct IGattCharacteristicStatics_Vtbl { @@ -108,16 +72,7 @@ pub struct IGattCharacteristicStatics_Vtbl { #[cfg(not(feature = "deprecated"))] ConvertShortIdToUuid: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGattCharacteristicUuidsStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGattCharacteristicUuidsStatics { - type Vtable = IGattCharacteristicUuidsStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGattCharacteristicUuidsStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x58fa4586_b1de_470c_b7de_0d11ff44f4b7); -} +::windows_core::imp::com_interface!(IGattCharacteristicUuidsStatics, IGattCharacteristicUuidsStatics_Vtbl, 0x58fa4586_b1de_470c_b7de_0d11ff44f4b7); #[repr(C)] #[doc(hidden)] pub struct IGattCharacteristicUuidsStatics_Vtbl { @@ -144,16 +99,7 @@ pub struct IGattCharacteristicUuidsStatics_Vtbl { pub TemperatureMeasurement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, pub TemperatureType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGattCharacteristicUuidsStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGattCharacteristicUuidsStatics2 { - type Vtable = IGattCharacteristicUuidsStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGattCharacteristicUuidsStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1855b425_d46e_4a2c_9c3f_ed6dea29e7be); -} +::windows_core::imp::com_interface!(IGattCharacteristicUuidsStatics2, IGattCharacteristicUuidsStatics2_Vtbl, 0x1855b425_d46e_4a2c_9c3f_ed6dea29e7be); #[repr(C)] #[doc(hidden)] pub struct IGattCharacteristicUuidsStatics2_Vtbl { @@ -219,16 +165,7 @@ pub struct IGattCharacteristicUuidsStatics2_Vtbl { pub TxPowerLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, pub UnreadAlertStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGattCharacteristicsResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGattCharacteristicsResult { - type Vtable = IGattCharacteristicsResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGattCharacteristicsResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1194945c_b257_4f3e_9db7_f68bc9a9aef2); -} +::windows_core::imp::com_interface!(IGattCharacteristicsResult, IGattCharacteristicsResult_Vtbl, 0x1194945c_b257_4f3e_9db7_f68bc9a9aef2); #[repr(C)] #[doc(hidden)] pub struct IGattCharacteristicsResult_Vtbl { @@ -240,16 +177,7 @@ pub struct IGattCharacteristicsResult_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Characteristics: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGattClientNotificationResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGattClientNotificationResult { - type Vtable = IGattClientNotificationResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGattClientNotificationResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x506d5599_0112_419a_8e3b_ae21afabd2c2); -} +::windows_core::imp::com_interface!(IGattClientNotificationResult, IGattClientNotificationResult_Vtbl, 0x506d5599_0112_419a_8e3b_ae21afabd2c2); #[repr(C)] #[doc(hidden)] pub struct IGattClientNotificationResult_Vtbl { @@ -258,32 +186,14 @@ pub struct IGattClientNotificationResult_Vtbl { pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut GattCommunicationStatus) -> ::windows_core::HRESULT, pub ProtocolError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGattClientNotificationResult2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGattClientNotificationResult2 { - type Vtable = IGattClientNotificationResult2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGattClientNotificationResult2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8faec497_45e0_497e_9582_29a1fe281ad5); -} +::windows_core::imp::com_interface!(IGattClientNotificationResult2, IGattClientNotificationResult2_Vtbl, 0x8faec497_45e0_497e_9582_29a1fe281ad5); #[repr(C)] #[doc(hidden)] pub struct IGattClientNotificationResult2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub BytesSent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u16) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGattDescriptor(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGattDescriptor { - type Vtable = IGattDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGattDescriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x92055f2b_8084_4344_b4c2_284de19a8506); -} +::windows_core::imp::com_interface!(IGattDescriptor, IGattDescriptor_Vtbl, 0x92055f2b_8084_4344_b4c2_284de19a8506); #[repr(C)] #[doc(hidden)] pub struct IGattDescriptor_Vtbl { @@ -299,16 +209,7 @@ pub struct IGattDescriptor_Vtbl { #[cfg(not(feature = "Storage_Streams"))] WriteValueAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGattDescriptor2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGattDescriptor2 { - type Vtable = IGattDescriptor2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGattDescriptor2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8f563d39_d630_406c_ba11_10cdd16b0e5e); -} +::windows_core::imp::com_interface!(IGattDescriptor2, IGattDescriptor2_Vtbl, 0x8f563d39_d630_406c_ba11_10cdd16b0e5e); #[repr(C)] #[doc(hidden)] pub struct IGattDescriptor2_Vtbl { @@ -318,16 +219,7 @@ pub struct IGattDescriptor2_Vtbl { #[cfg(not(feature = "Storage_Streams"))] WriteValueWithResultAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGattDescriptorStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGattDescriptorStatics { - type Vtable = IGattDescriptorStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGattDescriptorStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x92055f2d_8084_4344_b4c2_284de19a8506); -} +::windows_core::imp::com_interface!(IGattDescriptorStatics, IGattDescriptorStatics_Vtbl, 0x92055f2d_8084_4344_b4c2_284de19a8506); #[repr(C)] #[doc(hidden)] pub struct IGattDescriptorStatics_Vtbl { @@ -337,16 +229,7 @@ pub struct IGattDescriptorStatics_Vtbl { #[cfg(not(feature = "deprecated"))] ConvertShortIdToUuid: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGattDescriptorUuidsStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGattDescriptorUuidsStatics { - type Vtable = IGattDescriptorUuidsStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGattDescriptorUuidsStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa6f862ce_9cfc_42f1_9185_ff37b75181d3); -} +::windows_core::imp::com_interface!(IGattDescriptorUuidsStatics, IGattDescriptorUuidsStatics_Vtbl, 0xa6f862ce_9cfc_42f1_9185_ff37b75181d3); #[repr(C)] #[doc(hidden)] pub struct IGattDescriptorUuidsStatics_Vtbl { @@ -358,16 +241,7 @@ pub struct IGattDescriptorUuidsStatics_Vtbl { pub ClientCharacteristicConfiguration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, pub ServerCharacteristicConfiguration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGattDescriptorsResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGattDescriptorsResult { - type Vtable = IGattDescriptorsResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGattDescriptorsResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9bc091f3_95e7_4489_8d25_ff81955a57b9); -} +::windows_core::imp::com_interface!(IGattDescriptorsResult, IGattDescriptorsResult_Vtbl, 0x9bc091f3_95e7_4489_8d25_ff81955a57b9); #[repr(C)] #[doc(hidden)] pub struct IGattDescriptorsResult_Vtbl { @@ -379,16 +253,7 @@ pub struct IGattDescriptorsResult_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Descriptors: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGattDeviceService(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGattDeviceService { - type Vtable = IGattDeviceService_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGattDeviceService { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xac7b7c05_b33c_47cf_990f_6b8f5577df71); -} +::windows_core::imp::com_interface!(IGattDeviceService, IGattDeviceService_Vtbl, 0xac7b7c05_b33c_47cf_990f_6b8f5577df71); #[repr(C)] #[doc(hidden)] pub struct IGattDeviceService_Vtbl { @@ -405,16 +270,7 @@ pub struct IGattDeviceService_Vtbl { pub Uuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, pub AttributeHandle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u16) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGattDeviceService2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGattDeviceService2 { - type Vtable = IGattDeviceService2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGattDeviceService2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfc54520b_0b0d_4708_bae0_9ffd9489bc59); -} +::windows_core::imp::com_interface!(IGattDeviceService2, IGattDeviceService2_Vtbl, 0xfc54520b_0b0d_4708_bae0_9ffd9489bc59); #[repr(C)] #[doc(hidden)] pub struct IGattDeviceService2_Vtbl { @@ -436,16 +292,7 @@ pub struct IGattDeviceService2_Vtbl { #[cfg(not(all(feature = "Foundation_Collections", feature = "deprecated")))] GetAllIncludedServices: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGattDeviceService3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGattDeviceService3 { - type Vtable = IGattDeviceService3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGattDeviceService3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb293a950_0c53_437c_a9b3_5c3210c6e569); -} +::windows_core::imp::com_interface!(IGattDeviceService3, IGattDeviceService3_Vtbl, 0xb293a950_0c53_437c_a9b3_5c3210c6e569); #[repr(C)] #[doc(hidden)] pub struct IGattDeviceService3_Vtbl { @@ -470,16 +317,7 @@ pub struct IGattDeviceService3_Vtbl { pub GetIncludedServicesForUuidAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, serviceuuid: ::windows_core::GUID, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetIncludedServicesForUuidWithCacheModeAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, serviceuuid: ::windows_core::GUID, cachemode: super::BluetoothCacheMode, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGattDeviceServiceStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGattDeviceServiceStatics { - type Vtable = IGattDeviceServiceStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGattDeviceServiceStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x196d0022_faad_45dc_ae5b_2ac3184e84db); -} +::windows_core::imp::com_interface!(IGattDeviceServiceStatics, IGattDeviceServiceStatics_Vtbl, 0x196d0022_faad_45dc_ae5b_2ac3184e84db); #[repr(C)] #[doc(hidden)] pub struct IGattDeviceServiceStatics_Vtbl { @@ -495,16 +333,7 @@ pub struct IGattDeviceServiceStatics_Vtbl { #[cfg(not(feature = "deprecated"))] ConvertShortIdToUuid: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGattDeviceServiceStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGattDeviceServiceStatics2 { - type Vtable = IGattDeviceServiceStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGattDeviceServiceStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0604186e_24a6_4b0d_a2f2_30cc01545d25); -} +::windows_core::imp::com_interface!(IGattDeviceServiceStatics2, IGattDeviceServiceStatics2_Vtbl, 0x0604186e_24a6_4b0d_a2f2_30cc01545d25); #[repr(C)] #[doc(hidden)] pub struct IGattDeviceServiceStatics2_Vtbl { @@ -515,16 +344,7 @@ pub struct IGattDeviceServiceStatics2_Vtbl { pub GetDeviceSelectorForBluetoothDeviceIdAndUuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bluetoothdeviceid: *mut ::core::ffi::c_void, serviceuuid: ::windows_core::GUID, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub GetDeviceSelectorForBluetoothDeviceIdAndUuidWithCacheMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bluetoothdeviceid: *mut ::core::ffi::c_void, serviceuuid: ::windows_core::GUID, cachemode: super::BluetoothCacheMode, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGattDeviceServicesResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGattDeviceServicesResult { - type Vtable = IGattDeviceServicesResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGattDeviceServicesResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x171dd3ee_016d_419d_838a_576cf475a3d8); -} +::windows_core::imp::com_interface!(IGattDeviceServicesResult, IGattDeviceServicesResult_Vtbl, 0x171dd3ee_016d_419d_838a_576cf475a3d8); #[repr(C)] #[doc(hidden)] pub struct IGattDeviceServicesResult_Vtbl { @@ -536,16 +356,7 @@ pub struct IGattDeviceServicesResult_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Services: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGattLocalCharacteristic(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGattLocalCharacteristic { - type Vtable = IGattLocalCharacteristic_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGattLocalCharacteristic { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaede376d_5412_4d74_92a8_8deb8526829c); -} +::windows_core::imp::com_interface!(IGattLocalCharacteristic, IGattLocalCharacteristic_Vtbl, 0xaede376d_5412_4d74_92a8_8deb8526829c); #[repr(C)] #[doc(hidden)] pub struct IGattLocalCharacteristic_Vtbl { @@ -587,16 +398,7 @@ pub struct IGattLocalCharacteristic_Vtbl { #[cfg(not(feature = "Storage_Streams"))] NotifyValueForSubscribedClientAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGattLocalCharacteristicParameters(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGattLocalCharacteristicParameters { - type Vtable = IGattLocalCharacteristicParameters_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGattLocalCharacteristicParameters { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfaf73db4_4cff_44c7_8445_040e6ead0063); -} +::windows_core::imp::com_interface!(IGattLocalCharacteristicParameters, IGattLocalCharacteristicParameters_Vtbl, 0xfaf73db4_4cff_44c7_8445_040e6ead0063); #[repr(C)] #[doc(hidden)] pub struct IGattLocalCharacteristicParameters_Vtbl { @@ -622,16 +424,7 @@ pub struct IGattLocalCharacteristicParameters_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] PresentationFormats: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGattLocalCharacteristicResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGattLocalCharacteristicResult { - type Vtable = IGattLocalCharacteristicResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGattLocalCharacteristicResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7975de9b_0170_4397_9666_92f863f12ee6); -} +::windows_core::imp::com_interface!(IGattLocalCharacteristicResult, IGattLocalCharacteristicResult_Vtbl, 0x7975de9b_0170_4397_9666_92f863f12ee6); #[repr(C)] #[doc(hidden)] pub struct IGattLocalCharacteristicResult_Vtbl { @@ -639,16 +432,7 @@ pub struct IGattLocalCharacteristicResult_Vtbl { pub Characteristic: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Error: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::BluetoothError) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGattLocalDescriptor(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGattLocalDescriptor { - type Vtable = IGattLocalDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGattLocalDescriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf48ebe06_789d_4a4b_8652_bd017b5d2fc6); -} +::windows_core::imp::com_interface!(IGattLocalDescriptor, IGattLocalDescriptor_Vtbl, 0xf48ebe06_789d_4a4b_8652_bd017b5d2fc6); #[repr(C)] #[doc(hidden)] pub struct IGattLocalDescriptor_Vtbl { @@ -665,16 +449,7 @@ pub struct IGattLocalDescriptor_Vtbl { pub WriteRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveWriteRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGattLocalDescriptorParameters(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGattLocalDescriptorParameters { - type Vtable = IGattLocalDescriptorParameters_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGattLocalDescriptorParameters { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5fdede6a_f3c1_4b66_8c4b_e3d2293b40e9); -} +::windows_core::imp::com_interface!(IGattLocalDescriptorParameters, IGattLocalDescriptorParameters_Vtbl, 0x5fdede6a_f3c1_4b66_8c4b_e3d2293b40e9); #[repr(C)] #[doc(hidden)] pub struct IGattLocalDescriptorParameters_Vtbl { @@ -692,16 +467,7 @@ pub struct IGattLocalDescriptorParameters_Vtbl { pub SetWriteProtectionLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: GattProtectionLevel) -> ::windows_core::HRESULT, pub WriteProtectionLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut GattProtectionLevel) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGattLocalDescriptorResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGattLocalDescriptorResult { - type Vtable = IGattLocalDescriptorResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGattLocalDescriptorResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x375791be_321f_4366_bfc1_3bc6b82c79f8); -} +::windows_core::imp::com_interface!(IGattLocalDescriptorResult, IGattLocalDescriptorResult_Vtbl, 0x375791be_321f_4366_bfc1_3bc6b82c79f8); #[repr(C)] #[doc(hidden)] pub struct IGattLocalDescriptorResult_Vtbl { @@ -709,16 +475,7 @@ pub struct IGattLocalDescriptorResult_Vtbl { pub Descriptor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Error: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::BluetoothError) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGattLocalService(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGattLocalService { - type Vtable = IGattLocalService_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGattLocalService { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf513e258_f7f7_4902_b803_57fcc7d6fe83); -} +::windows_core::imp::com_interface!(IGattLocalService, IGattLocalService_Vtbl, 0xf513e258_f7f7_4902_b803_57fcc7d6fe83); #[repr(C)] #[doc(hidden)] pub struct IGattLocalService_Vtbl { @@ -730,16 +487,7 @@ pub struct IGattLocalService_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Characteristics: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGattPresentationFormat(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGattPresentationFormat { - type Vtable = IGattPresentationFormat_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGattPresentationFormat { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x196d0021_faad_45dc_ae5b_2ac3184e84db); -} +::windows_core::imp::com_interface!(IGattPresentationFormat, IGattPresentationFormat_Vtbl, 0x196d0021_faad_45dc_ae5b_2ac3184e84db); #[repr(C)] #[doc(hidden)] pub struct IGattPresentationFormat_Vtbl { @@ -750,48 +498,21 @@ pub struct IGattPresentationFormat_Vtbl { pub Namespace: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u8) -> ::windows_core::HRESULT, pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u16) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGattPresentationFormatStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGattPresentationFormatStatics { - type Vtable = IGattPresentationFormatStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGattPresentationFormatStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x196d0020_faad_45dc_ae5b_2ac3184e84db); -} +::windows_core::imp::com_interface!(IGattPresentationFormatStatics, IGattPresentationFormatStatics_Vtbl, 0x196d0020_faad_45dc_ae5b_2ac3184e84db); #[repr(C)] #[doc(hidden)] pub struct IGattPresentationFormatStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub BluetoothSigAssignedNumbers: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u8) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGattPresentationFormatStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGattPresentationFormatStatics2 { - type Vtable = IGattPresentationFormatStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGattPresentationFormatStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa9c21713_b82f_435e_b634_21fd85a43c07); -} +::windows_core::imp::com_interface!(IGattPresentationFormatStatics2, IGattPresentationFormatStatics2_Vtbl, 0xa9c21713_b82f_435e_b634_21fd85a43c07); #[repr(C)] #[doc(hidden)] pub struct IGattPresentationFormatStatics2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub FromParts: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, formattype: u8, exponent: i32, unit: u16, namespaceid: u8, description: u16, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGattPresentationFormatTypesStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGattPresentationFormatTypesStatics { - type Vtable = IGattPresentationFormatTypesStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGattPresentationFormatTypesStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfaf1ba0a_30ba_409c_bef7_cffb6d03b8fb); -} +::windows_core::imp::com_interface!(IGattPresentationFormatTypesStatics, IGattPresentationFormatTypesStatics_Vtbl, 0xfaf1ba0a_30ba_409c_bef7_cffb6d03b8fb); #[repr(C)] #[doc(hidden)] pub struct IGattPresentationFormatTypesStatics_Vtbl { @@ -824,16 +545,7 @@ pub struct IGattPresentationFormatTypesStatics_Vtbl { pub Utf16: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u8) -> ::windows_core::HRESULT, pub Struct: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u8) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGattProtocolErrorStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGattProtocolErrorStatics { - type Vtable = IGattProtocolErrorStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGattProtocolErrorStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xca46c5c5_0ecc_4809_bea3_cf79bc991e37); -} +::windows_core::imp::com_interface!(IGattProtocolErrorStatics, IGattProtocolErrorStatics_Vtbl, 0xca46c5c5_0ecc_4809_bea3_cf79bc991e37); #[repr(C)] #[doc(hidden)] pub struct IGattProtocolErrorStatics_Vtbl { @@ -856,16 +568,7 @@ pub struct IGattProtocolErrorStatics_Vtbl { pub UnsupportedGroupType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u8) -> ::windows_core::HRESULT, pub InsufficientResources: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u8) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGattReadClientCharacteristicConfigurationDescriptorResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGattReadClientCharacteristicConfigurationDescriptorResult { - type Vtable = IGattReadClientCharacteristicConfigurationDescriptorResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGattReadClientCharacteristicConfigurationDescriptorResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x63a66f09_1aea_4c4c_a50f_97bae474b348); -} +::windows_core::imp::com_interface!(IGattReadClientCharacteristicConfigurationDescriptorResult, IGattReadClientCharacteristicConfigurationDescriptorResult_Vtbl, 0x63a66f09_1aea_4c4c_a50f_97bae474b348); #[repr(C)] #[doc(hidden)] pub struct IGattReadClientCharacteristicConfigurationDescriptorResult_Vtbl { @@ -873,32 +576,14 @@ pub struct IGattReadClientCharacteristicConfigurationDescriptorResult_Vtbl { pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut GattCommunicationStatus) -> ::windows_core::HRESULT, pub ClientCharacteristicConfigurationDescriptor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut GattClientCharacteristicConfigurationDescriptorValue) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGattReadClientCharacteristicConfigurationDescriptorResult2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGattReadClientCharacteristicConfigurationDescriptorResult2 { - type Vtable = IGattReadClientCharacteristicConfigurationDescriptorResult2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGattReadClientCharacteristicConfigurationDescriptorResult2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1bf1a59d_ba4d_4622_8651_f4ee150d0a5d); -} +::windows_core::imp::com_interface!(IGattReadClientCharacteristicConfigurationDescriptorResult2, IGattReadClientCharacteristicConfigurationDescriptorResult2_Vtbl, 0x1bf1a59d_ba4d_4622_8651_f4ee150d0a5d); #[repr(C)] #[doc(hidden)] pub struct IGattReadClientCharacteristicConfigurationDescriptorResult2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ProtocolError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGattReadRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGattReadRequest { - type Vtable = IGattReadRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGattReadRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf1dd6535_6acd_42a6_a4bb_d789dae0043e); -} +::windows_core::imp::com_interface!(IGattReadRequest, IGattReadRequest_Vtbl, 0xf1dd6535_6acd_42a6_a4bb_d789dae0043e); #[repr(C)] #[doc(hidden)] pub struct IGattReadRequest_Vtbl { @@ -914,16 +599,7 @@ pub struct IGattReadRequest_Vtbl { RespondWithValue: usize, pub RespondWithProtocolError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, protocolerror: u8) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGattReadRequestedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGattReadRequestedEventArgs { - type Vtable = IGattReadRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGattReadRequestedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x93497243_f39c_484b_8ab6_996ba486cfa3); -} +::windows_core::imp::com_interface!(IGattReadRequestedEventArgs, IGattReadRequestedEventArgs_Vtbl, 0x93497243_f39c_484b_8ab6_996ba486cfa3); #[repr(C)] #[doc(hidden)] pub struct IGattReadRequestedEventArgs_Vtbl { @@ -932,16 +608,7 @@ pub struct IGattReadRequestedEventArgs_Vtbl { pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetRequestAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGattReadResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGattReadResult { - type Vtable = IGattReadResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGattReadResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x63a66f08_1aea_4c4c_a50f_97bae474b348); -} +::windows_core::imp::com_interface!(IGattReadResult, IGattReadResult_Vtbl, 0x63a66f08_1aea_4c4c_a50f_97bae474b348); #[repr(C)] #[doc(hidden)] pub struct IGattReadResult_Vtbl { @@ -952,32 +619,14 @@ pub struct IGattReadResult_Vtbl { #[cfg(not(feature = "Storage_Streams"))] Value: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGattReadResult2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGattReadResult2 { - type Vtable = IGattReadResult2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGattReadResult2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa10f50a0_fb43_48af_baaa_638a5c6329fe); -} +::windows_core::imp::com_interface!(IGattReadResult2, IGattReadResult2_Vtbl, 0xa10f50a0_fb43_48af_baaa_638a5c6329fe); #[repr(C)] #[doc(hidden)] pub struct IGattReadResult2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ProtocolError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGattReliableWriteTransaction(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGattReliableWriteTransaction { - type Vtable = IGattReliableWriteTransaction_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGattReliableWriteTransaction { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x63a66f07_1aea_4c4c_a50f_97bae474b348); -} +::windows_core::imp::com_interface!(IGattReliableWriteTransaction, IGattReliableWriteTransaction_Vtbl, 0x63a66f07_1aea_4c4c_a50f_97bae474b348); #[repr(C)] #[doc(hidden)] pub struct IGattReliableWriteTransaction_Vtbl { @@ -988,32 +637,14 @@ pub struct IGattReliableWriteTransaction_Vtbl { WriteValue: usize, pub CommitAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGattReliableWriteTransaction2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGattReliableWriteTransaction2 { - type Vtable = IGattReliableWriteTransaction2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGattReliableWriteTransaction2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51113987_ef12_462f_9fb2_a1a43a679416); -} +::windows_core::imp::com_interface!(IGattReliableWriteTransaction2, IGattReliableWriteTransaction2_Vtbl, 0x51113987_ef12_462f_9fb2_a1a43a679416); #[repr(C)] #[doc(hidden)] pub struct IGattReliableWriteTransaction2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CommitWithResultAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGattRequestStateChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGattRequestStateChangedEventArgs { - type Vtable = IGattRequestStateChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGattRequestStateChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe834d92c_27be_44b3_9d0d_4fc6e808dd3f); -} +::windows_core::imp::com_interface!(IGattRequestStateChangedEventArgs, IGattRequestStateChangedEventArgs_Vtbl, 0xe834d92c_27be_44b3_9d0d_4fc6e808dd3f); #[repr(C)] #[doc(hidden)] pub struct IGattRequestStateChangedEventArgs_Vtbl { @@ -1021,16 +652,7 @@ pub struct IGattRequestStateChangedEventArgs_Vtbl { pub State: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut GattRequestState) -> ::windows_core::HRESULT, pub Error: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::BluetoothError) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGattServiceProvider(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGattServiceProvider { - type Vtable = IGattServiceProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGattServiceProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7822b3cd_2889_4f86_a051_3f0aed1c2760); -} +::windows_core::imp::com_interface!(IGattServiceProvider, IGattServiceProvider_Vtbl, 0x7822b3cd_2889_4f86_a051_3f0aed1c2760); #[repr(C)] #[doc(hidden)] pub struct IGattServiceProvider_Vtbl { @@ -1043,16 +665,7 @@ pub struct IGattServiceProvider_Vtbl { pub StartAdvertisingWithParameters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, parameters: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub StopAdvertising: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGattServiceProviderAdvertisementStatusChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGattServiceProviderAdvertisementStatusChangedEventArgs { - type Vtable = IGattServiceProviderAdvertisementStatusChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGattServiceProviderAdvertisementStatusChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x59a5aa65_fa21_4ffc_b155_04d928012686); -} +::windows_core::imp::com_interface!(IGattServiceProviderAdvertisementStatusChangedEventArgs, IGattServiceProviderAdvertisementStatusChangedEventArgs_Vtbl, 0x59a5aa65_fa21_4ffc_b155_04d928012686); #[repr(C)] #[doc(hidden)] pub struct IGattServiceProviderAdvertisementStatusChangedEventArgs_Vtbl { @@ -1060,16 +673,7 @@ pub struct IGattServiceProviderAdvertisementStatusChangedEventArgs_Vtbl { pub Error: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::BluetoothError) -> ::windows_core::HRESULT, pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut GattServiceProviderAdvertisementStatus) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGattServiceProviderAdvertisingParameters(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGattServiceProviderAdvertisingParameters { - type Vtable = IGattServiceProviderAdvertisingParameters_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGattServiceProviderAdvertisingParameters { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe2ce31ab_6315_4c22_9bd7_781dbc3d8d82); -} +::windows_core::imp::com_interface!(IGattServiceProviderAdvertisingParameters, IGattServiceProviderAdvertisingParameters_Vtbl, 0xe2ce31ab_6315_4c22_9bd7_781dbc3d8d82); #[repr(C)] #[doc(hidden)] pub struct IGattServiceProviderAdvertisingParameters_Vtbl { @@ -1079,16 +683,7 @@ pub struct IGattServiceProviderAdvertisingParameters_Vtbl { pub SetIsDiscoverable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, pub IsDiscoverable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGattServiceProviderAdvertisingParameters2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGattServiceProviderAdvertisingParameters2 { - type Vtable = IGattServiceProviderAdvertisingParameters2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGattServiceProviderAdvertisingParameters2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xff68468d_ca92_4434_9743_0e90988ad879); -} +::windows_core::imp::com_interface!(IGattServiceProviderAdvertisingParameters2, IGattServiceProviderAdvertisingParameters2_Vtbl, 0xff68468d_ca92_4434_9743_0e90988ad879); #[repr(C)] #[doc(hidden)] pub struct IGattServiceProviderAdvertisingParameters2_Vtbl { @@ -1102,16 +697,7 @@ pub struct IGattServiceProviderAdvertisingParameters2_Vtbl { #[cfg(not(feature = "Storage_Streams"))] ServiceData: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGattServiceProviderResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGattServiceProviderResult { - type Vtable = IGattServiceProviderResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGattServiceProviderResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x764696d8_c53e_428c_8a48_67afe02c3ae6); -} +::windows_core::imp::com_interface!(IGattServiceProviderResult, IGattServiceProviderResult_Vtbl, 0x764696d8_c53e_428c_8a48_67afe02c3ae6); #[repr(C)] #[doc(hidden)] pub struct IGattServiceProviderResult_Vtbl { @@ -1119,32 +705,14 @@ pub struct IGattServiceProviderResult_Vtbl { pub Error: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::BluetoothError) -> ::windows_core::HRESULT, pub ServiceProvider: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGattServiceProviderStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGattServiceProviderStatics { - type Vtable = IGattServiceProviderStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGattServiceProviderStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x31794063_5256_4054_a4f4_7bbe7755a57e); -} +::windows_core::imp::com_interface!(IGattServiceProviderStatics, IGattServiceProviderStatics_Vtbl, 0x31794063_5256_4054_a4f4_7bbe7755a57e); #[repr(C)] #[doc(hidden)] pub struct IGattServiceProviderStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, serviceuuid: ::windows_core::GUID, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGattServiceUuidsStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGattServiceUuidsStatics { - type Vtable = IGattServiceUuidsStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGattServiceUuidsStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6dc57058_9aba_4417_b8f2_dce016d34ee2); -} +::windows_core::imp::com_interface!(IGattServiceUuidsStatics, IGattServiceUuidsStatics_Vtbl, 0x6dc57058_9aba_4417_b8f2_dce016d34ee2); #[repr(C)] #[doc(hidden)] pub struct IGattServiceUuidsStatics_Vtbl { @@ -1159,16 +727,7 @@ pub struct IGattServiceUuidsStatics_Vtbl { pub HeartRate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, pub RunningSpeedAndCadence: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGattServiceUuidsStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGattServiceUuidsStatics2 { - type Vtable = IGattServiceUuidsStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGattServiceUuidsStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd2ae94f5_3d15_4f79_9c0c_eaafa675155c); -} +::windows_core::imp::com_interface!(IGattServiceUuidsStatics2, IGattServiceUuidsStatics2_Vtbl, 0xd2ae94f5_3d15_4f79_9c0c_eaafa675155c); #[repr(C)] #[doc(hidden)] pub struct IGattServiceUuidsStatics2_Vtbl { @@ -1187,16 +746,7 @@ pub struct IGattServiceUuidsStatics2_Vtbl { pub ScanParameters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, pub TxPower: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGattSession(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGattSession { - type Vtable = IGattSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGattSession { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd23b5143_e04e_4c24_999c_9c256f9856b1); -} +::windows_core::imp::com_interface!(IGattSession, IGattSession_Vtbl, 0xd23b5143_e04e_4c24_999c_9c256f9856b1); #[repr(C)] #[doc(hidden)] pub struct IGattSession_Vtbl { @@ -1212,32 +762,14 @@ pub struct IGattSession_Vtbl { pub SessionStatusChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveSessionStatusChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGattSessionStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGattSessionStatics { - type Vtable = IGattSessionStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGattSessionStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2e65b95c_539f_4db7_82a8_73bdbbf73ebf); -} +::windows_core::imp::com_interface!(IGattSessionStatics, IGattSessionStatics_Vtbl, 0x2e65b95c_539f_4db7_82a8_73bdbbf73ebf); #[repr(C)] #[doc(hidden)] pub struct IGattSessionStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub FromDeviceIdAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, deviceid: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGattSessionStatusChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGattSessionStatusChangedEventArgs { - type Vtable = IGattSessionStatusChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGattSessionStatusChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7605b72e_837f_404c_ab34_3163f39ddf32); -} +::windows_core::imp::com_interface!(IGattSessionStatusChangedEventArgs, IGattSessionStatusChangedEventArgs_Vtbl, 0x7605b72e_837f_404c_ab34_3163f39ddf32); #[repr(C)] #[doc(hidden)] pub struct IGattSessionStatusChangedEventArgs_Vtbl { @@ -1245,16 +777,7 @@ pub struct IGattSessionStatusChangedEventArgs_Vtbl { pub Error: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::BluetoothError) -> ::windows_core::HRESULT, pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut GattSessionStatus) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGattSubscribedClient(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGattSubscribedClient { - type Vtable = IGattSubscribedClient_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGattSubscribedClient { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x736e9001_15a4_4ec2_9248_e3f20d463be9); -} +::windows_core::imp::com_interface!(IGattSubscribedClient, IGattSubscribedClient_Vtbl, 0x736e9001_15a4_4ec2_9248_e3f20d463be9); #[repr(C)] #[doc(hidden)] pub struct IGattSubscribedClient_Vtbl { @@ -1264,16 +787,7 @@ pub struct IGattSubscribedClient_Vtbl { pub MaxNotificationSizeChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveMaxNotificationSizeChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGattValueChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGattValueChangedEventArgs { - type Vtable = IGattValueChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGattValueChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd21bdb54_06e3_4ed8_a263_acfac8ba7313); -} +::windows_core::imp::com_interface!(IGattValueChangedEventArgs, IGattValueChangedEventArgs_Vtbl, 0xd21bdb54_06e3_4ed8_a263_acfac8ba7313); #[repr(C)] #[doc(hidden)] pub struct IGattValueChangedEventArgs_Vtbl { @@ -1284,16 +798,7 @@ pub struct IGattValueChangedEventArgs_Vtbl { CharacteristicValue: usize, pub Timestamp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::DateTime) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGattWriteRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGattWriteRequest { - type Vtable = IGattWriteRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGattWriteRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaeb6a9ed_de2f_4fc2_a9a8_94ea7844f13d); -} +::windows_core::imp::com_interface!(IGattWriteRequest, IGattWriteRequest_Vtbl, 0xaeb6a9ed_de2f_4fc2_a9a8_94ea7844f13d); #[repr(C)] #[doc(hidden)] pub struct IGattWriteRequest_Vtbl { @@ -1310,16 +815,7 @@ pub struct IGattWriteRequest_Vtbl { pub Respond: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RespondWithProtocolError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, protocolerror: u8) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGattWriteRequestedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGattWriteRequestedEventArgs { - type Vtable = IGattWriteRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGattWriteRequestedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2dec8bbe_a73a_471a_94d5_037deadd0806); -} +::windows_core::imp::com_interface!(IGattWriteRequestedEventArgs, IGattWriteRequestedEventArgs_Vtbl, 0x2dec8bbe_a73a_471a_94d5_037deadd0806); #[repr(C)] #[doc(hidden)] pub struct IGattWriteRequestedEventArgs_Vtbl { @@ -1328,16 +824,7 @@ pub struct IGattWriteRequestedEventArgs_Vtbl { pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetRequestAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGattWriteResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGattWriteResult { - type Vtable = IGattWriteResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGattWriteResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4991ddb1_cb2b_44f7_99fc_d29a2871dc9b); -} +::windows_core::imp::com_interface!(IGattWriteResult, IGattWriteResult_Vtbl, 0x4991ddb1_cb2b_44f7_99fc_d29a2871dc9b); #[repr(C)] #[doc(hidden)] pub struct IGattWriteResult_Vtbl { @@ -1348,6 +835,7 @@ pub struct IGattWriteResult_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GattCharacteristic(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GattCharacteristic, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GattCharacteristic { #[doc = "Required features: `\"Foundation_Collections\"`, `\"deprecated\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] @@ -1424,24 +912,24 @@ impl GattCharacteristic { #[cfg(feature = "Storage_Streams")] pub fn WriteValueAsync(&self, value: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).WriteValueAsync)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).WriteValueAsync)(::windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn WriteValueWithOptionAsync(&self, value: P0, writeoption: GattWriteOption) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).WriteValueWithOptionAsync)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi(), writeoption, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).WriteValueWithOptionAsync)(::windows_core::Interface::as_raw(this), value.into_param().abi(), writeoption, &mut result__).from_abi(result__) } } pub fn ReadClientCharacteristicConfigurationDescriptorAsync(&self) -> ::windows_core::Result> { @@ -1473,7 +961,7 @@ impl GattCharacteristic { unsafe { (::windows_core::Interface::vtable(this).RemoveValueChanged)(::windows_core::Interface::as_raw(this), valuechangedeventcookie).ok() } } pub fn Service(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Service)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1482,35 +970,35 @@ impl GattCharacteristic { #[doc = "Required features: `\"Foundation_Collections\"`, `\"deprecated\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] pub fn GetAllDescriptors(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetAllDescriptors)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetDescriptorsAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetDescriptorsAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetDescriptorsWithCacheModeAsync(&self, cachemode: super::BluetoothCacheMode) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetDescriptorsWithCacheModeAsync)(::windows_core::Interface::as_raw(this), cachemode, &mut result__).from_abi(result__) } } pub fn GetDescriptorsForUuidAsync(&self, descriptoruuid: ::windows_core::GUID) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetDescriptorsForUuidAsync)(::windows_core::Interface::as_raw(this), descriptoruuid, &mut result__).from_abi(result__) } } pub fn GetDescriptorsForUuidWithCacheModeAsync(&self, descriptoruuid: ::windows_core::GUID, cachemode: super::BluetoothCacheMode) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetDescriptorsForUuidWithCacheModeAsync)(::windows_core::Interface::as_raw(this), descriptoruuid, cachemode, &mut result__).from_abi(result__) @@ -1520,28 +1008,28 @@ impl GattCharacteristic { #[cfg(feature = "Storage_Streams")] pub fn WriteValueWithResultAsync(&self, value: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).WriteValueWithResultAsync)(::windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn WriteValueWithResultAndOptionAsync(&self, value: P0, writeoption: GattWriteOption) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), writeoption, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).WriteValueWithResultAndOptionAsync)(::windows_core::Interface::as_raw(this), value.into_param().abi(), writeoption, &mut result__).from_abi(result__) } } pub fn WriteClientCharacteristicConfigurationDescriptorWithResultAsync(&self, clientcharacteristicconfigurationdescriptorvalue: GattClientCharacteristicConfigurationDescriptorValue) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).WriteClientCharacteristicConfigurationDescriptorWithResultAsync)(::windows_core::Interface::as_raw(this), clientcharacteristicconfigurationdescriptorvalue, &mut result__).from_abi(result__) @@ -1566,14 +1054,11 @@ impl ::windows_core::RuntimeType for GattCharacteristic { } unsafe impl ::windows_core::Interface for GattCharacteristic { type Vtable = IGattCharacteristic_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GattCharacteristic { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GattCharacteristic { const NAME: &'static str = "Windows.Devices.Bluetooth.GenericAttributeProfile.GattCharacteristic"; } -::windows_core::imp::interface_hierarchy!(GattCharacteristic, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GattCharacteristic {} unsafe impl ::core::marker::Sync for GattCharacteristic {} pub struct GattCharacteristicUuids; @@ -2081,6 +1566,7 @@ impl ::windows_core::RuntimeName for GattCharacteristicUuids { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GattCharacteristicsResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GattCharacteristicsResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GattCharacteristicsResult { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -2111,19 +1597,17 @@ impl ::windows_core::RuntimeType for GattCharacteristicsResult { } unsafe impl ::windows_core::Interface for GattCharacteristicsResult { type Vtable = IGattCharacteristicsResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GattCharacteristicsResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GattCharacteristicsResult { const NAME: &'static str = "Windows.Devices.Bluetooth.GenericAttributeProfile.GattCharacteristicsResult"; } -::windows_core::imp::interface_hierarchy!(GattCharacteristicsResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GattCharacteristicsResult {} unsafe impl ::core::marker::Sync for GattCharacteristicsResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GattClientNotificationResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GattClientNotificationResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GattClientNotificationResult { pub fn SubscribedClient(&self) -> ::windows_core::Result { let this = self; @@ -2147,7 +1631,7 @@ impl GattClientNotificationResult { } } pub fn BytesSent(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).BytesSent)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2159,19 +1643,17 @@ impl ::windows_core::RuntimeType for GattClientNotificationResult { } unsafe impl ::windows_core::Interface for GattClientNotificationResult { type Vtable = IGattClientNotificationResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GattClientNotificationResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GattClientNotificationResult { const NAME: &'static str = "Windows.Devices.Bluetooth.GenericAttributeProfile.GattClientNotificationResult"; } -::windows_core::imp::interface_hierarchy!(GattClientNotificationResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GattClientNotificationResult {} unsafe impl ::core::marker::Sync for GattClientNotificationResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GattDescriptor(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GattDescriptor, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GattDescriptor { pub fn ProtectionLevel(&self) -> ::windows_core::Result { let this = self; @@ -2216,24 +1698,24 @@ impl GattDescriptor { #[cfg(feature = "Storage_Streams")] pub fn WriteValueAsync(&self, value: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).WriteValueAsync)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).WriteValueAsync)(::windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn WriteValueWithResultAsync(&self, value: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).WriteValueWithResultAsync)(::windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"deprecated\"`"] @@ -2255,14 +1737,11 @@ impl ::windows_core::RuntimeType for GattDescriptor { } unsafe impl ::windows_core::Interface for GattDescriptor { type Vtable = IGattDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GattDescriptor { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GattDescriptor { const NAME: &'static str = "Windows.Devices.Bluetooth.GenericAttributeProfile.GattDescriptor"; } -::windows_core::imp::interface_hierarchy!(GattDescriptor, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GattDescriptor {} unsafe impl ::core::marker::Sync for GattDescriptor {} pub struct GattDescriptorUuids; @@ -2315,6 +1794,7 @@ impl ::windows_core::RuntimeName for GattDescriptorUuids { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GattDescriptorsResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GattDescriptorsResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GattDescriptorsResult { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -2345,22 +1825,21 @@ impl ::windows_core::RuntimeType for GattDescriptorsResult { } unsafe impl ::windows_core::Interface for GattDescriptorsResult { type Vtable = IGattDescriptorsResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GattDescriptorsResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GattDescriptorsResult { const NAME: &'static str = "Windows.Devices.Bluetooth.GenericAttributeProfile.GattDescriptorsResult"; } -::windows_core::imp::interface_hierarchy!(GattDescriptorsResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GattDescriptorsResult {} unsafe impl ::core::marker::Sync for GattDescriptorsResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GattDeviceService(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GattDeviceService, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(GattDeviceService, super::super::super::Foundation::IClosable); impl GattDeviceService { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`, `\"deprecated\"`"] @@ -2405,7 +1884,7 @@ impl GattDeviceService { #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] pub fn Device(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Device)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2414,7 +1893,7 @@ impl GattDeviceService { #[doc = "Required features: `\"Foundation_Collections\"`, `\"deprecated\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] pub fn ParentServices(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ParentServices)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2423,7 +1902,7 @@ impl GattDeviceService { #[doc = "Required features: `\"Foundation_Collections\"`, `\"deprecated\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] pub fn GetAllCharacteristics(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetAllCharacteristics)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2432,7 +1911,7 @@ impl GattDeviceService { #[doc = "Required features: `\"Foundation_Collections\"`, `\"deprecated\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] pub fn GetAllIncludedServices(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetAllIncludedServices)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2441,21 +1920,21 @@ impl GattDeviceService { #[doc = "Required features: `\"Devices_Enumeration\"`"] #[cfg(feature = "Devices_Enumeration")] pub fn DeviceAccessInformation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DeviceAccessInformation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Session(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Session)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SharingMode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SharingMode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2464,70 +1943,70 @@ impl GattDeviceService { #[doc = "Required features: `\"Devices_Enumeration\"`"] #[cfg(feature = "Devices_Enumeration")] pub fn RequestAccessAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RequestAccessAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn OpenAsync(&self, sharingmode: GattSharingMode) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OpenAsync)(::windows_core::Interface::as_raw(this), sharingmode, &mut result__).from_abi(result__) } } pub fn GetCharacteristicsAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetCharacteristicsAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetCharacteristicsWithCacheModeAsync(&self, cachemode: super::BluetoothCacheMode) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetCharacteristicsWithCacheModeAsync)(::windows_core::Interface::as_raw(this), cachemode, &mut result__).from_abi(result__) } } pub fn GetCharacteristicsForUuidAsync(&self, characteristicuuid: ::windows_core::GUID) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetCharacteristicsForUuidAsync)(::windows_core::Interface::as_raw(this), characteristicuuid, &mut result__).from_abi(result__) } } pub fn GetCharacteristicsForUuidWithCacheModeAsync(&self, characteristicuuid: ::windows_core::GUID, cachemode: super::BluetoothCacheMode) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetCharacteristicsForUuidWithCacheModeAsync)(::windows_core::Interface::as_raw(this), characteristicuuid, cachemode, &mut result__).from_abi(result__) } } pub fn GetIncludedServicesAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetIncludedServicesAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetIncludedServicesWithCacheModeAsync(&self, cachemode: super::BluetoothCacheMode) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetIncludedServicesWithCacheModeAsync)(::windows_core::Interface::as_raw(this), cachemode, &mut result__).from_abi(result__) } } pub fn GetIncludedServicesForUuidAsync(&self, serviceuuid: ::windows_core::GUID) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetIncludedServicesForUuidAsync)(::windows_core::Interface::as_raw(this), serviceuuid, &mut result__).from_abi(result__) } } pub fn GetIncludedServicesForUuidWithCacheModeAsync(&self, serviceuuid: ::windows_core::GUID, cachemode: super::BluetoothCacheMode) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetIncludedServicesForUuidWithCacheModeAsync)(::windows_core::Interface::as_raw(this), serviceuuid, cachemode, &mut result__).from_abi(result__) @@ -2619,20 +2098,17 @@ impl ::windows_core::RuntimeType for GattDeviceService { } unsafe impl ::windows_core::Interface for GattDeviceService { type Vtable = IGattDeviceService_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GattDeviceService { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GattDeviceService { const NAME: &'static str = "Windows.Devices.Bluetooth.GenericAttributeProfile.GattDeviceService"; } -::windows_core::imp::interface_hierarchy!(GattDeviceService, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for GattDeviceService {} unsafe impl ::core::marker::Send for GattDeviceService {} unsafe impl ::core::marker::Sync for GattDeviceService {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GattDeviceServicesResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GattDeviceServicesResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GattDeviceServicesResult { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -2663,19 +2139,17 @@ impl ::windows_core::RuntimeType for GattDeviceServicesResult { } unsafe impl ::windows_core::Interface for GattDeviceServicesResult { type Vtable = IGattDeviceServicesResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GattDeviceServicesResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GattDeviceServicesResult { const NAME: &'static str = "Windows.Devices.Bluetooth.GenericAttributeProfile.GattDeviceServicesResult"; } -::windows_core::imp::interface_hierarchy!(GattDeviceServicesResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GattDeviceServicesResult {} unsafe impl ::core::marker::Sync for GattDeviceServicesResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GattLocalCharacteristic(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GattLocalCharacteristic, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GattLocalCharacteristic { pub fn Uuid(&self) -> ::windows_core::Result<::windows_core::GUID> { let this = self; @@ -2804,25 +2278,25 @@ impl GattLocalCharacteristic { #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] pub fn NotifyValueAsync(&self, value: P0) -> ::windows_core::Result>> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).NotifyValueAsync)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).NotifyValueAsync)(::windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn NotifyValueForSubscribedClientAsync(&self, value: P0, subscribedclient: P1) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).NotifyValueForSubscribedClientAsync)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi(), subscribedclient.into_param().abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).NotifyValueForSubscribedClientAsync)(::windows_core::Interface::as_raw(this), value.into_param().abi(), subscribedclient.into_param().abi(), &mut result__).from_abi(result__) } } } @@ -2831,19 +2305,17 @@ impl ::windows_core::RuntimeType for GattLocalCharacteristic { } unsafe impl ::windows_core::Interface for GattLocalCharacteristic { type Vtable = IGattLocalCharacteristic_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GattLocalCharacteristic { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GattLocalCharacteristic { const NAME: &'static str = "Windows.Devices.Bluetooth.GenericAttributeProfile.GattLocalCharacteristic"; } -::windows_core::imp::interface_hierarchy!(GattLocalCharacteristic, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GattLocalCharacteristic {} unsafe impl ::core::marker::Sync for GattLocalCharacteristic {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GattLocalCharacteristicParameters(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GattLocalCharacteristicParameters, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GattLocalCharacteristicParameters { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2856,10 +2328,10 @@ impl GattLocalCharacteristicParameters { #[cfg(feature = "Storage_Streams")] pub fn SetStaticValue(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetStaticValue)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetStaticValue)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] @@ -2929,19 +2401,17 @@ impl ::windows_core::RuntimeType for GattLocalCharacteristicParameters { } unsafe impl ::windows_core::Interface for GattLocalCharacteristicParameters { type Vtable = IGattLocalCharacteristicParameters_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GattLocalCharacteristicParameters { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GattLocalCharacteristicParameters { const NAME: &'static str = "Windows.Devices.Bluetooth.GenericAttributeProfile.GattLocalCharacteristicParameters"; } -::windows_core::imp::interface_hierarchy!(GattLocalCharacteristicParameters, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GattLocalCharacteristicParameters {} unsafe impl ::core::marker::Sync for GattLocalCharacteristicParameters {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GattLocalCharacteristicResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GattLocalCharacteristicResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GattLocalCharacteristicResult { pub fn Characteristic(&self) -> ::windows_core::Result { let this = self; @@ -2963,19 +2433,17 @@ impl ::windows_core::RuntimeType for GattLocalCharacteristicResult { } unsafe impl ::windows_core::Interface for GattLocalCharacteristicResult { type Vtable = IGattLocalCharacteristicResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GattLocalCharacteristicResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GattLocalCharacteristicResult { const NAME: &'static str = "Windows.Devices.Bluetooth.GenericAttributeProfile.GattLocalCharacteristicResult"; } -::windows_core::imp::interface_hierarchy!(GattLocalCharacteristicResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GattLocalCharacteristicResult {} unsafe impl ::core::marker::Sync for GattLocalCharacteristicResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GattLocalDescriptor(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GattLocalDescriptor, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GattLocalDescriptor { pub fn Uuid(&self) -> ::windows_core::Result<::windows_core::GUID> { let this = self; @@ -3041,19 +2509,17 @@ impl ::windows_core::RuntimeType for GattLocalDescriptor { } unsafe impl ::windows_core::Interface for GattLocalDescriptor { type Vtable = IGattLocalDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GattLocalDescriptor { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GattLocalDescriptor { const NAME: &'static str = "Windows.Devices.Bluetooth.GenericAttributeProfile.GattLocalDescriptor"; } -::windows_core::imp::interface_hierarchy!(GattLocalDescriptor, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GattLocalDescriptor {} unsafe impl ::core::marker::Sync for GattLocalDescriptor {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GattLocalDescriptorParameters(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GattLocalDescriptorParameters, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GattLocalDescriptorParameters { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -3066,10 +2532,10 @@ impl GattLocalDescriptorParameters { #[cfg(feature = "Storage_Streams")] pub fn SetStaticValue(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetStaticValue)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetStaticValue)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] @@ -3108,19 +2574,17 @@ impl ::windows_core::RuntimeType for GattLocalDescriptorParameters { } unsafe impl ::windows_core::Interface for GattLocalDescriptorParameters { type Vtable = IGattLocalDescriptorParameters_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GattLocalDescriptorParameters { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GattLocalDescriptorParameters { const NAME: &'static str = "Windows.Devices.Bluetooth.GenericAttributeProfile.GattLocalDescriptorParameters"; } -::windows_core::imp::interface_hierarchy!(GattLocalDescriptorParameters, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GattLocalDescriptorParameters {} unsafe impl ::core::marker::Sync for GattLocalDescriptorParameters {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GattLocalDescriptorResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GattLocalDescriptorResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GattLocalDescriptorResult { pub fn Descriptor(&self) -> ::windows_core::Result { let this = self; @@ -3142,19 +2606,17 @@ impl ::windows_core::RuntimeType for GattLocalDescriptorResult { } unsafe impl ::windows_core::Interface for GattLocalDescriptorResult { type Vtable = IGattLocalDescriptorResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GattLocalDescriptorResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GattLocalDescriptorResult { const NAME: &'static str = "Windows.Devices.Bluetooth.GenericAttributeProfile.GattLocalDescriptorResult"; } -::windows_core::imp::interface_hierarchy!(GattLocalDescriptorResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GattLocalDescriptorResult {} unsafe impl ::core::marker::Sync for GattLocalDescriptorResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GattLocalService(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GattLocalService, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GattLocalService { pub fn Uuid(&self) -> ::windows_core::Result<::windows_core::GUID> { let this = self; @@ -3188,19 +2650,17 @@ impl ::windows_core::RuntimeType for GattLocalService { } unsafe impl ::windows_core::Interface for GattLocalService { type Vtable = IGattLocalService_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GattLocalService { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GattLocalService { const NAME: &'static str = "Windows.Devices.Bluetooth.GenericAttributeProfile.GattLocalService"; } -::windows_core::imp::interface_hierarchy!(GattLocalService, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GattLocalService {} unsafe impl ::core::marker::Sync for GattLocalService {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GattPresentationFormat(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GattPresentationFormat, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GattPresentationFormat { pub fn FormatType(&self) -> ::windows_core::Result { let this = self; @@ -3265,14 +2725,11 @@ impl ::windows_core::RuntimeType for GattPresentationFormat { } unsafe impl ::windows_core::Interface for GattPresentationFormat { type Vtable = IGattPresentationFormat_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GattPresentationFormat { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GattPresentationFormat { const NAME: &'static str = "Windows.Devices.Bluetooth.GenericAttributeProfile.GattPresentationFormat"; } -::windows_core::imp::interface_hierarchy!(GattPresentationFormat, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GattPresentationFormat {} unsafe impl ::core::marker::Sync for GattPresentationFormat {} pub struct GattPresentationFormatTypes; @@ -3564,6 +3021,7 @@ impl ::windows_core::RuntimeName for GattProtocolError { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GattReadClientCharacteristicConfigurationDescriptorResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GattReadClientCharacteristicConfigurationDescriptorResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GattReadClientCharacteristicConfigurationDescriptorResult { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -3580,7 +3038,7 @@ impl GattReadClientCharacteristicConfigurationDescriptorResult { } } pub fn ProtocolError(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ProtocolError)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3592,19 +3050,17 @@ impl ::windows_core::RuntimeType for GattReadClientCharacteristicConfigurationDe } unsafe impl ::windows_core::Interface for GattReadClientCharacteristicConfigurationDescriptorResult { type Vtable = IGattReadClientCharacteristicConfigurationDescriptorResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GattReadClientCharacteristicConfigurationDescriptorResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GattReadClientCharacteristicConfigurationDescriptorResult { const NAME: &'static str = "Windows.Devices.Bluetooth.GenericAttributeProfile.GattReadClientCharacteristicConfigurationDescriptorResult"; } -::windows_core::imp::interface_hierarchy!(GattReadClientCharacteristicConfigurationDescriptorResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GattReadClientCharacteristicConfigurationDescriptorResult {} unsafe impl ::core::marker::Sync for GattReadClientCharacteristicConfigurationDescriptorResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GattReadRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GattReadRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GattReadRequest { pub fn Offset(&self) -> ::windows_core::Result { let this = self; @@ -3645,10 +3101,10 @@ impl GattReadRequest { #[cfg(feature = "Storage_Streams")] pub fn RespondWithValue(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).RespondWithValue)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).RespondWithValue)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn RespondWithProtocolError(&self, protocolerror: u8) -> ::windows_core::Result<()> { let this = self; @@ -3660,19 +3116,17 @@ impl ::windows_core::RuntimeType for GattReadRequest { } unsafe impl ::windows_core::Interface for GattReadRequest { type Vtable = IGattReadRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GattReadRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GattReadRequest { const NAME: &'static str = "Windows.Devices.Bluetooth.GenericAttributeProfile.GattReadRequest"; } -::windows_core::imp::interface_hierarchy!(GattReadRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GattReadRequest {} unsafe impl ::core::marker::Sync for GattReadRequest {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GattReadRequestedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GattReadRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GattReadRequestedEventArgs { pub fn Session(&self) -> ::windows_core::Result { let this = self; @@ -3701,19 +3155,17 @@ impl ::windows_core::RuntimeType for GattReadRequestedEventArgs { } unsafe impl ::windows_core::Interface for GattReadRequestedEventArgs { type Vtable = IGattReadRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GattReadRequestedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GattReadRequestedEventArgs { const NAME: &'static str = "Windows.Devices.Bluetooth.GenericAttributeProfile.GattReadRequestedEventArgs"; } -::windows_core::imp::interface_hierarchy!(GattReadRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GattReadRequestedEventArgs {} unsafe impl ::core::marker::Sync for GattReadRequestedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GattReadResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GattReadResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GattReadResult { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -3732,7 +3184,7 @@ impl GattReadResult { } } pub fn ProtocolError(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ProtocolError)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3744,19 +3196,17 @@ impl ::windows_core::RuntimeType for GattReadResult { } unsafe impl ::windows_core::Interface for GattReadResult { type Vtable = IGattReadResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GattReadResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GattReadResult { const NAME: &'static str = "Windows.Devices.Bluetooth.GenericAttributeProfile.GattReadResult"; } -::windows_core::imp::interface_hierarchy!(GattReadResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GattReadResult {} unsafe impl ::core::marker::Sync for GattReadResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GattReliableWriteTransaction(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GattReliableWriteTransaction, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GattReliableWriteTransaction { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -3770,10 +3220,10 @@ impl GattReliableWriteTransaction { pub fn WriteValue(&self, characteristic: P0, value: P1) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam, + P1: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).WriteValue)(::windows_core::Interface::as_raw(this), characteristic.into_param().abi(), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).WriteValue)(::windows_core::Interface::as_raw(this), characteristic.into_param().abi(), value.into_param().abi()).ok() } } pub fn CommitAsync(&self) -> ::windows_core::Result> { let this = self; @@ -3783,7 +3233,7 @@ impl GattReliableWriteTransaction { } } pub fn CommitWithResultAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CommitWithResultAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3795,19 +3245,17 @@ impl ::windows_core::RuntimeType for GattReliableWriteTransaction { } unsafe impl ::windows_core::Interface for GattReliableWriteTransaction { type Vtable = IGattReliableWriteTransaction_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GattReliableWriteTransaction { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GattReliableWriteTransaction { const NAME: &'static str = "Windows.Devices.Bluetooth.GenericAttributeProfile.GattReliableWriteTransaction"; } -::windows_core::imp::interface_hierarchy!(GattReliableWriteTransaction, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GattReliableWriteTransaction {} unsafe impl ::core::marker::Sync for GattReliableWriteTransaction {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GattRequestStateChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GattRequestStateChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GattRequestStateChangedEventArgs { pub fn State(&self) -> ::windows_core::Result { let this = self; @@ -3829,19 +3277,17 @@ impl ::windows_core::RuntimeType for GattRequestStateChangedEventArgs { } unsafe impl ::windows_core::Interface for GattRequestStateChangedEventArgs { type Vtable = IGattRequestStateChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GattRequestStateChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GattRequestStateChangedEventArgs { const NAME: &'static str = "Windows.Devices.Bluetooth.GenericAttributeProfile.GattRequestStateChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(GattRequestStateChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GattRequestStateChangedEventArgs {} unsafe impl ::core::marker::Sync for GattRequestStateChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GattServiceProvider(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GattServiceProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GattServiceProvider { pub fn Service(&self) -> ::windows_core::Result { let this = self; @@ -3903,19 +3349,17 @@ impl ::windows_core::RuntimeType for GattServiceProvider { } unsafe impl ::windows_core::Interface for GattServiceProvider { type Vtable = IGattServiceProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GattServiceProvider { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GattServiceProvider { const NAME: &'static str = "Windows.Devices.Bluetooth.GenericAttributeProfile.GattServiceProvider"; } -::windows_core::imp::interface_hierarchy!(GattServiceProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GattServiceProvider {} unsafe impl ::core::marker::Sync for GattServiceProvider {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GattServiceProviderAdvertisementStatusChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GattServiceProviderAdvertisementStatusChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GattServiceProviderAdvertisementStatusChangedEventArgs { pub fn Error(&self) -> ::windows_core::Result { let this = self; @@ -3937,19 +3381,17 @@ impl ::windows_core::RuntimeType for GattServiceProviderAdvertisementStatusChang } unsafe impl ::windows_core::Interface for GattServiceProviderAdvertisementStatusChangedEventArgs { type Vtable = IGattServiceProviderAdvertisementStatusChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GattServiceProviderAdvertisementStatusChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GattServiceProviderAdvertisementStatusChangedEventArgs { const NAME: &'static str = "Windows.Devices.Bluetooth.GenericAttributeProfile.GattServiceProviderAdvertisementStatusChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(GattServiceProviderAdvertisementStatusChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GattServiceProviderAdvertisementStatusChangedEventArgs {} unsafe impl ::core::marker::Sync for GattServiceProviderAdvertisementStatusChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GattServiceProviderAdvertisingParameters(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GattServiceProviderAdvertisingParameters, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GattServiceProviderAdvertisingParameters { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -3984,15 +3426,15 @@ impl GattServiceProviderAdvertisingParameters { #[cfg(feature = "Storage_Streams")] pub fn SetServiceData(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetServiceData)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn ServiceData(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ServiceData)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4004,19 +3446,17 @@ impl ::windows_core::RuntimeType for GattServiceProviderAdvertisingParameters { } unsafe impl ::windows_core::Interface for GattServiceProviderAdvertisingParameters { type Vtable = IGattServiceProviderAdvertisingParameters_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GattServiceProviderAdvertisingParameters { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GattServiceProviderAdvertisingParameters { const NAME: &'static str = "Windows.Devices.Bluetooth.GenericAttributeProfile.GattServiceProviderAdvertisingParameters"; } -::windows_core::imp::interface_hierarchy!(GattServiceProviderAdvertisingParameters, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GattServiceProviderAdvertisingParameters {} unsafe impl ::core::marker::Sync for GattServiceProviderAdvertisingParameters {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GattServiceProviderResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GattServiceProviderResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GattServiceProviderResult { pub fn Error(&self) -> ::windows_core::Result { let this = self; @@ -4038,14 +3478,11 @@ impl ::windows_core::RuntimeType for GattServiceProviderResult { } unsafe impl ::windows_core::Interface for GattServiceProviderResult { type Vtable = IGattServiceProviderResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GattServiceProviderResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GattServiceProviderResult { const NAME: &'static str = "Windows.Devices.Bluetooth.GenericAttributeProfile.GattServiceProviderResult"; } -::windows_core::imp::interface_hierarchy!(GattServiceProviderResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GattServiceProviderResult {} unsafe impl ::core::marker::Sync for GattServiceProviderResult {} pub struct GattServiceUuids; @@ -4199,9 +3636,11 @@ impl ::windows_core::RuntimeName for GattServiceUuids { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GattSession(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GattSession, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(GattSession, super::super::super::Foundation::IClosable); impl GattSession { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn DeviceId(&self) -> ::windows_core::Result { @@ -4291,20 +3730,17 @@ impl ::windows_core::RuntimeType for GattSession { } unsafe impl ::windows_core::Interface for GattSession { type Vtable = IGattSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GattSession { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GattSession { const NAME: &'static str = "Windows.Devices.Bluetooth.GenericAttributeProfile.GattSession"; } -::windows_core::imp::interface_hierarchy!(GattSession, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for GattSession {} unsafe impl ::core::marker::Send for GattSession {} unsafe impl ::core::marker::Sync for GattSession {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GattSessionStatusChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GattSessionStatusChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GattSessionStatusChangedEventArgs { pub fn Error(&self) -> ::windows_core::Result { let this = self; @@ -4326,19 +3762,17 @@ impl ::windows_core::RuntimeType for GattSessionStatusChangedEventArgs { } unsafe impl ::windows_core::Interface for GattSessionStatusChangedEventArgs { type Vtable = IGattSessionStatusChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GattSessionStatusChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GattSessionStatusChangedEventArgs { const NAME: &'static str = "Windows.Devices.Bluetooth.GenericAttributeProfile.GattSessionStatusChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(GattSessionStatusChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GattSessionStatusChangedEventArgs {} unsafe impl ::core::marker::Sync for GattSessionStatusChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GattSubscribedClient(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GattSubscribedClient, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GattSubscribedClient { pub fn Session(&self) -> ::windows_core::Result { let this = self; @@ -4374,19 +3808,17 @@ impl ::windows_core::RuntimeType for GattSubscribedClient { } unsafe impl ::windows_core::Interface for GattSubscribedClient { type Vtable = IGattSubscribedClient_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GattSubscribedClient { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GattSubscribedClient { const NAME: &'static str = "Windows.Devices.Bluetooth.GenericAttributeProfile.GattSubscribedClient"; } -::windows_core::imp::interface_hierarchy!(GattSubscribedClient, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GattSubscribedClient {} unsafe impl ::core::marker::Sync for GattSubscribedClient {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GattValueChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GattValueChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GattValueChangedEventArgs { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] @@ -4410,19 +3842,17 @@ impl ::windows_core::RuntimeType for GattValueChangedEventArgs { } unsafe impl ::windows_core::Interface for GattValueChangedEventArgs { type Vtable = IGattValueChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GattValueChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GattValueChangedEventArgs { const NAME: &'static str = "Windows.Devices.Bluetooth.GenericAttributeProfile.GattValueChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(GattValueChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GattValueChangedEventArgs {} unsafe impl ::core::marker::Sync for GattValueChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GattWriteRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GattWriteRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GattWriteRequest { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] @@ -4482,19 +3912,17 @@ impl ::windows_core::RuntimeType for GattWriteRequest { } unsafe impl ::windows_core::Interface for GattWriteRequest { type Vtable = IGattWriteRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GattWriteRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GattWriteRequest { const NAME: &'static str = "Windows.Devices.Bluetooth.GenericAttributeProfile.GattWriteRequest"; } -::windows_core::imp::interface_hierarchy!(GattWriteRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GattWriteRequest {} unsafe impl ::core::marker::Sync for GattWriteRequest {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GattWriteRequestedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GattWriteRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GattWriteRequestedEventArgs { pub fn Session(&self) -> ::windows_core::Result { let this = self; @@ -4523,19 +3951,17 @@ impl ::windows_core::RuntimeType for GattWriteRequestedEventArgs { } unsafe impl ::windows_core::Interface for GattWriteRequestedEventArgs { type Vtable = IGattWriteRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GattWriteRequestedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GattWriteRequestedEventArgs { const NAME: &'static str = "Windows.Devices.Bluetooth.GenericAttributeProfile.GattWriteRequestedEventArgs"; } -::windows_core::imp::interface_hierarchy!(GattWriteRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GattWriteRequestedEventArgs {} unsafe impl ::core::marker::Sync for GattWriteRequestedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GattWriteResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GattWriteResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GattWriteResult { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -4557,14 +3983,11 @@ impl ::windows_core::RuntimeType for GattWriteResult { } unsafe impl ::windows_core::Interface for GattWriteResult { type Vtable = IGattWriteResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GattWriteResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GattWriteResult { const NAME: &'static str = "Windows.Devices.Bluetooth.GenericAttributeProfile.GattWriteResult"; } -::windows_core::imp::interface_hierarchy!(GattWriteResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GattWriteResult {} unsafe impl ::core::marker::Sync for GattWriteResult {} #[repr(transparent)] 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 b230ed2538..365c75b78e 100644 --- a/crates/libs/windows/src/Windows/Devices/Bluetooth/Rfcomm/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Bluetooth/Rfcomm/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRfcommDeviceService(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRfcommDeviceService { - type Vtable = IRfcommDeviceService_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRfcommDeviceService { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xae81ff1f_c5a1_4c40_8c28_f3efd69062f3); -} +::windows_core::imp::com_interface!(IRfcommDeviceService, IRfcommDeviceService_Vtbl, 0xae81ff1f_c5a1_4c40_8c28_f3efd69062f3); #[repr(C)] #[doc(hidden)] pub struct IRfcommDeviceService_Vtbl { @@ -35,32 +26,14 @@ pub struct IRfcommDeviceService_Vtbl { #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage_Streams")))] GetSdpRawAttributesWithCacheModeAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRfcommDeviceService2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRfcommDeviceService2 { - type Vtable = IRfcommDeviceService2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRfcommDeviceService2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x536ced14_ebcd_49fe_bf9f_40efc689b20d); -} +::windows_core::imp::com_interface!(IRfcommDeviceService2, IRfcommDeviceService2_Vtbl, 0x536ced14_ebcd_49fe_bf9f_40efc689b20d); #[repr(C)] #[doc(hidden)] pub struct IRfcommDeviceService2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Device: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRfcommDeviceService3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRfcommDeviceService3 { - type Vtable = IRfcommDeviceService3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRfcommDeviceService3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1c22ace6_dd44_4d23_866d_8f3486ee6490); -} +::windows_core::imp::com_interface!(IRfcommDeviceService3, IRfcommDeviceService3_Vtbl, 0x1c22ace6_dd44_4d23_866d_8f3486ee6490); #[repr(C)] #[doc(hidden)] pub struct IRfcommDeviceService3_Vtbl { @@ -74,16 +47,7 @@ pub struct IRfcommDeviceService3_Vtbl { #[cfg(not(feature = "Devices_Enumeration"))] RequestAccessAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRfcommDeviceServiceStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRfcommDeviceServiceStatics { - type Vtable = IRfcommDeviceServiceStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRfcommDeviceServiceStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa4a149ef_626d_41ac_b253_87ac5c27e28a); -} +::windows_core::imp::com_interface!(IRfcommDeviceServiceStatics, IRfcommDeviceServiceStatics_Vtbl, 0xa4a149ef_626d_41ac_b253_87ac5c27e28a); #[repr(C)] #[doc(hidden)] pub struct IRfcommDeviceServiceStatics_Vtbl { @@ -91,16 +55,7 @@ pub struct IRfcommDeviceServiceStatics_Vtbl { pub FromIdAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, deviceid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeviceSelector: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, serviceid: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRfcommDeviceServiceStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRfcommDeviceServiceStatics2 { - type Vtable = IRfcommDeviceServiceStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRfcommDeviceServiceStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaa8cb1c9_e78d_4be4_8076_0a3d87a0a05f); -} +::windows_core::imp::com_interface!(IRfcommDeviceServiceStatics2, IRfcommDeviceServiceStatics2_Vtbl, 0xaa8cb1c9_e78d_4be4_8076_0a3d87a0a05f); #[repr(C)] #[doc(hidden)] pub struct IRfcommDeviceServiceStatics2_Vtbl { @@ -110,16 +65,7 @@ pub struct IRfcommDeviceServiceStatics2_Vtbl { pub GetDeviceSelectorForBluetoothDeviceAndServiceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bluetoothdevice: *mut ::core::ffi::c_void, serviceid: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub GetDeviceSelectorForBluetoothDeviceAndServiceIdWithCacheMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bluetoothdevice: *mut ::core::ffi::c_void, serviceid: *mut ::core::ffi::c_void, cachemode: super::BluetoothCacheMode, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRfcommDeviceServicesResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRfcommDeviceServicesResult { - type Vtable = IRfcommDeviceServicesResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRfcommDeviceServicesResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3b48388c_7ccf_488e_9625_d259a5732d55); -} +::windows_core::imp::com_interface!(IRfcommDeviceServicesResult, IRfcommDeviceServicesResult_Vtbl, 0x3b48388c_7ccf_488e_9625_d259a5732d55); #[repr(C)] #[doc(hidden)] pub struct IRfcommDeviceServicesResult_Vtbl { @@ -130,16 +76,7 @@ pub struct IRfcommDeviceServicesResult_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Services: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRfcommServiceId(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRfcommServiceId { - type Vtable = IRfcommServiceId_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRfcommServiceId { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x22629204_7e02_4017_8136_da1b6a1b9bbf); -} +::windows_core::imp::com_interface!(IRfcommServiceId, IRfcommServiceId_Vtbl, 0x22629204_7e02_4017_8136_da1b6a1b9bbf); #[repr(C)] #[doc(hidden)] pub struct IRfcommServiceId_Vtbl { @@ -148,16 +85,7 @@ pub struct IRfcommServiceId_Vtbl { pub AsShortId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, pub AsString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRfcommServiceIdStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRfcommServiceIdStatics { - type Vtable = IRfcommServiceIdStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRfcommServiceIdStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2a179eba_a975_46e3_b56b_08ffd783a5fe); -} +::windows_core::imp::com_interface!(IRfcommServiceIdStatics, IRfcommServiceIdStatics_Vtbl, 0x2a179eba_a975_46e3_b56b_08ffd783a5fe); #[repr(C)] #[doc(hidden)] pub struct IRfcommServiceIdStatics_Vtbl { @@ -171,16 +99,7 @@ pub struct IRfcommServiceIdStatics_Vtbl { pub PhoneBookAccessPse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GenericFileTransfer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRfcommServiceProvider(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRfcommServiceProvider { - type Vtable = IRfcommServiceProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRfcommServiceProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeadbfdc4_b1f6_44ff_9f7c_e7a82ab86821); -} +::windows_core::imp::com_interface!(IRfcommServiceProvider, IRfcommServiceProvider_Vtbl, 0xeadbfdc4_b1f6_44ff_9f7c_e7a82ab86821); #[repr(C)] #[doc(hidden)] pub struct IRfcommServiceProvider_Vtbl { @@ -196,16 +115,7 @@ pub struct IRfcommServiceProvider_Vtbl { StartAdvertising: usize, pub StopAdvertising: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRfcommServiceProvider2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRfcommServiceProvider2 { - type Vtable = IRfcommServiceProvider2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRfcommServiceProvider2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x736bdfc6_3c81_4d1e_baf2_ddbb81284512); -} +::windows_core::imp::com_interface!(IRfcommServiceProvider2, IRfcommServiceProvider2_Vtbl, 0x736bdfc6_3c81_4d1e_baf2_ddbb81284512); #[repr(C)] #[doc(hidden)] pub struct IRfcommServiceProvider2_Vtbl { @@ -215,16 +125,7 @@ pub struct IRfcommServiceProvider2_Vtbl { #[cfg(not(feature = "Networking_Sockets"))] StartAdvertisingWithRadioDiscoverability: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRfcommServiceProviderStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRfcommServiceProviderStatics { - type Vtable = IRfcommServiceProviderStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRfcommServiceProviderStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x98888303_69ca_413a_84f7_4344c7292997); -} +::windows_core::imp::com_interface!(IRfcommServiceProviderStatics, IRfcommServiceProviderStatics_Vtbl, 0x98888303_69ca_413a_84f7_4344c7292997); #[repr(C)] #[doc(hidden)] pub struct IRfcommServiceProviderStatics_Vtbl { @@ -234,9 +135,11 @@ pub struct IRfcommServiceProviderStatics_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RfcommDeviceService(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RfcommDeviceService, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(RfcommDeviceService, super::super::super::Foundation::IClosable); impl RfcommDeviceService { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Networking\"`"] @@ -299,7 +202,7 @@ impl RfcommDeviceService { } } pub fn Device(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Device)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -308,7 +211,7 @@ impl RfcommDeviceService { #[doc = "Required features: `\"Devices_Enumeration\"`"] #[cfg(feature = "Devices_Enumeration")] pub fn DeviceAccessInformation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DeviceAccessInformation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -317,7 +220,7 @@ impl RfcommDeviceService { #[doc = "Required features: `\"Devices_Enumeration\"`"] #[cfg(feature = "Devices_Enumeration")] pub fn RequestAccessAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RequestAccessAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -392,20 +295,17 @@ impl ::windows_core::RuntimeType for RfcommDeviceService { } unsafe impl ::windows_core::Interface for RfcommDeviceService { type Vtable = IRfcommDeviceService_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RfcommDeviceService { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RfcommDeviceService { const NAME: &'static str = "Windows.Devices.Bluetooth.Rfcomm.RfcommDeviceService"; } -::windows_core::imp::interface_hierarchy!(RfcommDeviceService, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for RfcommDeviceService {} unsafe impl ::core::marker::Send for RfcommDeviceService {} unsafe impl ::core::marker::Sync for RfcommDeviceService {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RfcommDeviceServicesResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RfcommDeviceServicesResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RfcommDeviceServicesResult { pub fn Error(&self) -> ::windows_core::Result { let this = self; @@ -429,19 +329,17 @@ impl ::windows_core::RuntimeType for RfcommDeviceServicesResult { } unsafe impl ::windows_core::Interface for RfcommDeviceServicesResult { type Vtable = IRfcommDeviceServicesResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RfcommDeviceServicesResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RfcommDeviceServicesResult { const NAME: &'static str = "Windows.Devices.Bluetooth.Rfcomm.RfcommDeviceServicesResult"; } -::windows_core::imp::interface_hierarchy!(RfcommDeviceServicesResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RfcommDeviceServicesResult {} unsafe impl ::core::marker::Sync for RfcommDeviceServicesResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RfcommServiceId(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RfcommServiceId, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RfcommServiceId { pub fn Uuid(&self) -> ::windows_core::Result<::windows_core::GUID> { let this = self; @@ -523,19 +421,17 @@ impl ::windows_core::RuntimeType for RfcommServiceId { } unsafe impl ::windows_core::Interface for RfcommServiceId { type Vtable = IRfcommServiceId_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RfcommServiceId { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RfcommServiceId { const NAME: &'static str = "Windows.Devices.Bluetooth.Rfcomm.RfcommServiceId"; } -::windows_core::imp::interface_hierarchy!(RfcommServiceId, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RfcommServiceId {} unsafe impl ::core::marker::Sync for RfcommServiceId {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RfcommServiceProvider(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RfcommServiceProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RfcommServiceProvider { pub fn ServiceId(&self) -> ::windows_core::Result { let this = self; @@ -572,7 +468,7 @@ impl RfcommServiceProvider { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn CreateAsync(serviceid: P0) -> ::windows_core::Result> @@ -595,13 +491,10 @@ impl ::windows_core::RuntimeType for RfcommServiceProvider { } unsafe impl ::windows_core::Interface for RfcommServiceProvider { type Vtable = IRfcommServiceProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RfcommServiceProvider { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RfcommServiceProvider { const NAME: &'static str = "Windows.Devices.Bluetooth.Rfcomm.RfcommServiceProvider"; } -::windows_core::imp::interface_hierarchy!(RfcommServiceProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RfcommServiceProvider {} unsafe impl ::core::marker::Sync for RfcommServiceProvider {} diff --git a/crates/libs/windows/src/Windows/Devices/Bluetooth/mod.rs b/crates/libs/windows/src/Windows/Devices/Bluetooth/mod.rs index 8a145bffe2..67cbc72b42 100644 --- a/crates/libs/windows/src/Windows/Devices/Bluetooth/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Bluetooth/mod.rs @@ -10,16 +10,7 @@ pub mod GenericAttributeProfile; #[cfg(feature = "Devices_Bluetooth_Rfcomm")] #[doc = "Required features: `\"Devices_Bluetooth_Rfcomm\"`"] pub mod Rfcomm; -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBluetoothAdapter(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBluetoothAdapter { - type Vtable = IBluetoothAdapter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBluetoothAdapter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7974f04c_5f7a_4a34_9225_a855f84b1a8b); -} +::windows_core::imp::com_interface!(IBluetoothAdapter, IBluetoothAdapter_Vtbl, 0x7974f04c_5f7a_4a34_9225_a855f84b1a8b); #[repr(C)] #[doc(hidden)] pub struct IBluetoothAdapter_Vtbl { @@ -36,16 +27,7 @@ pub struct IBluetoothAdapter_Vtbl { #[cfg(not(feature = "Devices_Radios"))] GetRadioAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBluetoothAdapter2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBluetoothAdapter2 { - type Vtable = IBluetoothAdapter2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBluetoothAdapter2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xac94cecc_24d5_41b3_916d_1097c50b102b); -} +::windows_core::imp::com_interface!(IBluetoothAdapter2, IBluetoothAdapter2_Vtbl, 0xac94cecc_24d5_41b3_916d_1097c50b102b); #[repr(C)] #[doc(hidden)] pub struct IBluetoothAdapter2_Vtbl { @@ -53,16 +35,7 @@ pub struct IBluetoothAdapter2_Vtbl { pub AreClassicSecureConnectionsSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub AreLowEnergySecureConnectionsSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBluetoothAdapter3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBluetoothAdapter3 { - type Vtable = IBluetoothAdapter3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBluetoothAdapter3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8f8624e0_cba9_5211_9f89_3aac62b4c6b8); -} +::windows_core::imp::com_interface!(IBluetoothAdapter3, IBluetoothAdapter3_Vtbl, 0x8f8624e0_cba9_5211_9f89_3aac62b4c6b8); #[repr(C)] #[doc(hidden)] pub struct IBluetoothAdapter3_Vtbl { @@ -70,16 +43,7 @@ pub struct IBluetoothAdapter3_Vtbl { pub IsExtendedAdvertisingSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub MaxAdvertisementDataLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBluetoothAdapterStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBluetoothAdapterStatics { - type Vtable = IBluetoothAdapterStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBluetoothAdapterStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8b02fb6a_ac4c_4741_8661_8eab7d17ea9f); -} +::windows_core::imp::com_interface!(IBluetoothAdapterStatics, IBluetoothAdapterStatics_Vtbl, 0x8b02fb6a_ac4c_4741_8661_8eab7d17ea9f); #[repr(C)] #[doc(hidden)] pub struct IBluetoothAdapterStatics_Vtbl { @@ -88,16 +52,7 @@ pub struct IBluetoothAdapterStatics_Vtbl { pub FromIdAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, deviceid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDefaultAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBluetoothClassOfDevice(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBluetoothClassOfDevice { - type Vtable = IBluetoothClassOfDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBluetoothClassOfDevice { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd640227e_d7d7_4661_9454_65039ca17a2b); -} +::windows_core::imp::com_interface!(IBluetoothClassOfDevice, IBluetoothClassOfDevice_Vtbl, 0xd640227e_d7d7_4661_9454_65039ca17a2b); #[repr(C)] #[doc(hidden)] pub struct IBluetoothClassOfDevice_Vtbl { @@ -107,16 +62,7 @@ pub struct IBluetoothClassOfDevice_Vtbl { pub MinorClass: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut BluetoothMinorClass) -> ::windows_core::HRESULT, pub ServiceCapabilities: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut BluetoothServiceCapabilities) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBluetoothClassOfDeviceStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBluetoothClassOfDeviceStatics { - type Vtable = IBluetoothClassOfDeviceStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBluetoothClassOfDeviceStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe46135bd_0fa2_416c_91b4_c1e48ca061c1); -} +::windows_core::imp::com_interface!(IBluetoothClassOfDeviceStatics, IBluetoothClassOfDeviceStatics_Vtbl, 0xe46135bd_0fa2_416c_91b4_c1e48ca061c1); #[repr(C)] #[doc(hidden)] pub struct IBluetoothClassOfDeviceStatics_Vtbl { @@ -124,16 +70,7 @@ pub struct IBluetoothClassOfDeviceStatics_Vtbl { pub FromRawValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rawvalue: u32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub FromParts: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, majorclass: BluetoothMajorClass, minorclass: BluetoothMinorClass, servicecapabilities: BluetoothServiceCapabilities, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBluetoothDevice(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBluetoothDevice { - type Vtable = IBluetoothDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBluetoothDevice { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2335b156_90d2_4a04_aef5_0e20b9e6b707); -} +::windows_core::imp::com_interface!(IBluetoothDevice, IBluetoothDevice_Vtbl, 0x2335b156_90d2_4a04_aef5_0e20b9e6b707); #[repr(C)] #[doc(hidden)] pub struct IBluetoothDevice_Vtbl { @@ -162,16 +99,7 @@ pub struct IBluetoothDevice_Vtbl { pub ConnectionStatusChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveConnectionStatusChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBluetoothDevice2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBluetoothDevice2 { - type Vtable = IBluetoothDevice2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBluetoothDevice2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0133f954_b156_4dd0_b1f5_c11bc31a5163); -} +::windows_core::imp::com_interface!(IBluetoothDevice2, IBluetoothDevice2_Vtbl, 0x0133f954_b156_4dd0_b1f5_c11bc31a5163); #[repr(C)] #[doc(hidden)] pub struct IBluetoothDevice2_Vtbl { @@ -181,16 +109,7 @@ pub struct IBluetoothDevice2_Vtbl { #[cfg(not(feature = "Devices_Enumeration"))] DeviceInformation: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBluetoothDevice3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBluetoothDevice3 { - type Vtable = IBluetoothDevice3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBluetoothDevice3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x57fff78b_651a_4454_b90f_eb21ef0b0d71); -} +::windows_core::imp::com_interface!(IBluetoothDevice3, IBluetoothDevice3_Vtbl, 0x57fff78b_651a_4454_b90f_eb21ef0b0d71); #[repr(C)] #[doc(hidden)] pub struct IBluetoothDevice3_Vtbl { @@ -220,48 +139,21 @@ pub struct IBluetoothDevice3_Vtbl { #[cfg(not(feature = "Devices_Bluetooth_Rfcomm"))] GetRfcommServicesForIdWithCacheModeAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBluetoothDevice4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBluetoothDevice4 { - type Vtable = IBluetoothDevice4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBluetoothDevice4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x817c34ad_0e9c_42b2_a8dc_3e8094940d12); -} +::windows_core::imp::com_interface!(IBluetoothDevice4, IBluetoothDevice4_Vtbl, 0x817c34ad_0e9c_42b2_a8dc_3e8094940d12); #[repr(C)] #[doc(hidden)] pub struct IBluetoothDevice4_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub BluetoothDeviceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBluetoothDevice5(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBluetoothDevice5 { - type Vtable = IBluetoothDevice5_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBluetoothDevice5 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb5e0b385_5e85_4559_a10d_1c7281379f96); -} +::windows_core::imp::com_interface!(IBluetoothDevice5, IBluetoothDevice5_Vtbl, 0xb5e0b385_5e85_4559_a10d_1c7281379f96); #[repr(C)] #[doc(hidden)] pub struct IBluetoothDevice5_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub WasSecureConnectionUsedForPairing: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBluetoothDeviceId(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBluetoothDeviceId { - type Vtable = IBluetoothDeviceId_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBluetoothDeviceId { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc17949af_57c1_4642_bcce_e6c06b20ae76); -} +::windows_core::imp::com_interface!(IBluetoothDeviceId, IBluetoothDeviceId_Vtbl, 0xc17949af_57c1_4642_bcce_e6c06b20ae76); #[repr(C)] #[doc(hidden)] pub struct IBluetoothDeviceId_Vtbl { @@ -270,32 +162,14 @@ pub struct IBluetoothDeviceId_Vtbl { pub IsClassicDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub IsLowEnergyDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBluetoothDeviceIdStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBluetoothDeviceIdStatics { - type Vtable = IBluetoothDeviceIdStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBluetoothDeviceIdStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa7884e67_3efb_4f31_bbc2_810e09977404); -} +::windows_core::imp::com_interface!(IBluetoothDeviceIdStatics, IBluetoothDeviceIdStatics_Vtbl, 0xa7884e67_3efb_4f31_bbc2_810e09977404); #[repr(C)] #[doc(hidden)] pub struct IBluetoothDeviceIdStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub FromId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, deviceid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBluetoothDeviceStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBluetoothDeviceStatics { - type Vtable = IBluetoothDeviceStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBluetoothDeviceStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0991df51_57db_4725_bbd7_84f64327ec2c); -} +::windows_core::imp::com_interface!(IBluetoothDeviceStatics, IBluetoothDeviceStatics_Vtbl, 0x0991df51_57db_4725_bbd7_84f64327ec2c); #[repr(C)] #[doc(hidden)] pub struct IBluetoothDeviceStatics_Vtbl { @@ -308,16 +182,7 @@ pub struct IBluetoothDeviceStatics_Vtbl { pub FromBluetoothAddressAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, address: u64, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeviceSelector: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBluetoothDeviceStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBluetoothDeviceStatics2 { - type Vtable = IBluetoothDeviceStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBluetoothDeviceStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc29e8e2f_4e14_4477_aa1b_b8b47e5b7ece); -} +::windows_core::imp::com_interface!(IBluetoothDeviceStatics2, IBluetoothDeviceStatics2_Vtbl, 0xc29e8e2f_4e14_4477_aa1b_b8b47e5b7ece); #[repr(C)] #[doc(hidden)] pub struct IBluetoothDeviceStatics2_Vtbl { @@ -328,16 +193,7 @@ pub struct IBluetoothDeviceStatics2_Vtbl { pub GetDeviceSelectorFromBluetoothAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bluetoothaddress: u64, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub GetDeviceSelectorFromClassOfDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, classofdevice: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBluetoothLEAppearance(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBluetoothLEAppearance { - type Vtable = IBluetoothLEAppearance_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBluetoothLEAppearance { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5d2079f2_66a8_4258_985e_02b4d9509f18); -} +::windows_core::imp::com_interface!(IBluetoothLEAppearance, IBluetoothLEAppearance_Vtbl, 0x5d2079f2_66a8_4258_985e_02b4d9509f18); #[repr(C)] #[doc(hidden)] pub struct IBluetoothLEAppearance_Vtbl { @@ -346,16 +202,7 @@ pub struct IBluetoothLEAppearance_Vtbl { pub Category: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u16) -> ::windows_core::HRESULT, pub SubCategory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u16) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBluetoothLEAppearanceCategoriesStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBluetoothLEAppearanceCategoriesStatics { - type Vtable = IBluetoothLEAppearanceCategoriesStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBluetoothLEAppearanceCategoriesStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6d4d54fe_046a_4185_aab6_824cf0610861); -} +::windows_core::imp::com_interface!(IBluetoothLEAppearanceCategoriesStatics, IBluetoothLEAppearanceCategoriesStatics_Vtbl, 0x6d4d54fe_046a_4185_aab6_824cf0610861); #[repr(C)] #[doc(hidden)] pub struct IBluetoothLEAppearanceCategoriesStatics_Vtbl { @@ -383,16 +230,7 @@ pub struct IBluetoothLEAppearanceCategoriesStatics_Vtbl { pub WeightScale: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u16) -> ::windows_core::HRESULT, pub OutdoorSportActivity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u16) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBluetoothLEAppearanceStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBluetoothLEAppearanceStatics { - type Vtable = IBluetoothLEAppearanceStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBluetoothLEAppearanceStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa193c0c7_4504_4f4a_9ba5_cd1054e5e065); -} +::windows_core::imp::com_interface!(IBluetoothLEAppearanceStatics, IBluetoothLEAppearanceStatics_Vtbl, 0xa193c0c7_4504_4f4a_9ba5_cd1054e5e065); #[repr(C)] #[doc(hidden)] pub struct IBluetoothLEAppearanceStatics_Vtbl { @@ -400,16 +238,7 @@ pub struct IBluetoothLEAppearanceStatics_Vtbl { pub FromRawValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rawvalue: u16, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub FromParts: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, appearancecategory: u16, appearancesubcategory: u16, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBluetoothLEAppearanceSubcategoriesStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBluetoothLEAppearanceSubcategoriesStatics { - type Vtable = IBluetoothLEAppearanceSubcategoriesStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBluetoothLEAppearanceSubcategoriesStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe57ba606_2144_415a_8312_71ccf291f8d1); -} +::windows_core::imp::com_interface!(IBluetoothLEAppearanceSubcategoriesStatics, IBluetoothLEAppearanceSubcategoriesStatics_Vtbl, 0xe57ba606_2144_415a_8312_71ccf291f8d1); #[repr(C)] #[doc(hidden)] pub struct IBluetoothLEAppearanceSubcategoriesStatics_Vtbl { @@ -443,16 +272,7 @@ pub struct IBluetoothLEAppearanceSubcategoriesStatics_Vtbl { pub LocationPod: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u16) -> ::windows_core::HRESULT, pub LocationNavigationPod: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u16) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBluetoothLEConnectionParameters(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBluetoothLEConnectionParameters { - type Vtable = IBluetoothLEConnectionParameters_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBluetoothLEConnectionParameters { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x33cb0771_8da9_508f_a366_1ca388c929ab); -} +::windows_core::imp::com_interface!(IBluetoothLEConnectionParameters, IBluetoothLEConnectionParameters_Vtbl, 0x33cb0771_8da9_508f_a366_1ca388c929ab); #[repr(C)] #[doc(hidden)] pub struct IBluetoothLEConnectionParameters_Vtbl { @@ -461,16 +281,7 @@ pub struct IBluetoothLEConnectionParameters_Vtbl { pub ConnectionLatency: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u16) -> ::windows_core::HRESULT, pub ConnectionInterval: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u16) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBluetoothLEConnectionPhy(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBluetoothLEConnectionPhy { - type Vtable = IBluetoothLEConnectionPhy_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBluetoothLEConnectionPhy { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x781e5e48_621e_5a7e_8be6_1b9561ff63c9); -} +::windows_core::imp::com_interface!(IBluetoothLEConnectionPhy, IBluetoothLEConnectionPhy_Vtbl, 0x781e5e48_621e_5a7e_8be6_1b9561ff63c9); #[repr(C)] #[doc(hidden)] pub struct IBluetoothLEConnectionPhy_Vtbl { @@ -478,16 +289,7 @@ pub struct IBluetoothLEConnectionPhy_Vtbl { pub TransmitInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ReceiveInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBluetoothLEConnectionPhyInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBluetoothLEConnectionPhyInfo { - type Vtable = IBluetoothLEConnectionPhyInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBluetoothLEConnectionPhyInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9a100bdd_602e_5c27_a1ae_b230015a6394); -} +::windows_core::imp::com_interface!(IBluetoothLEConnectionPhyInfo, IBluetoothLEConnectionPhyInfo_Vtbl, 0x9a100bdd_602e_5c27_a1ae_b230015a6394); #[repr(C)] #[doc(hidden)] pub struct IBluetoothLEConnectionPhyInfo_Vtbl { @@ -496,16 +298,7 @@ pub struct IBluetoothLEConnectionPhyInfo_Vtbl { pub IsUncoded2MPhy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub IsCodedPhy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBluetoothLEDevice(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBluetoothLEDevice { - type Vtable = IBluetoothLEDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBluetoothLEDevice { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb5ee2f7b_4ad8_4642_ac48_80a0b500e887); -} +::windows_core::imp::com_interface!(IBluetoothLEDevice, IBluetoothLEDevice_Vtbl, 0xb5ee2f7b_4ad8_4642_ac48_80a0b500e887); #[repr(C)] #[doc(hidden)] pub struct IBluetoothLEDevice_Vtbl { @@ -529,16 +322,7 @@ pub struct IBluetoothLEDevice_Vtbl { pub ConnectionStatusChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveConnectionStatusChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBluetoothLEDevice2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBluetoothLEDevice2 { - type Vtable = IBluetoothLEDevice2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBluetoothLEDevice2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x26f062b3_7aee_4d31_baba_b1b9775f5916); -} +::windows_core::imp::com_interface!(IBluetoothLEDevice2, IBluetoothLEDevice2_Vtbl, 0x26f062b3_7aee_4d31_baba_b1b9775f5916); #[repr(C)] #[doc(hidden)] pub struct IBluetoothLEDevice2_Vtbl { @@ -550,16 +334,7 @@ pub struct IBluetoothLEDevice2_Vtbl { pub Appearance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub BluetoothAddressType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut BluetoothAddressType) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBluetoothLEDevice3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBluetoothLEDevice3 { - type Vtable = IBluetoothLEDevice3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBluetoothLEDevice3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaee9e493_44ac_40dc_af33_b2c13c01ca46); -} +::windows_core::imp::com_interface!(IBluetoothLEDevice3, IBluetoothLEDevice3_Vtbl, 0xaee9e493_44ac_40dc_af33_b2c13c01ca46); #[repr(C)] #[doc(hidden)] pub struct IBluetoothLEDevice3_Vtbl { @@ -589,48 +364,21 @@ pub struct IBluetoothLEDevice3_Vtbl { #[cfg(not(feature = "Devices_Bluetooth_GenericAttributeProfile"))] GetGattServicesForUuidWithCacheModeAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBluetoothLEDevice4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBluetoothLEDevice4 { - type Vtable = IBluetoothLEDevice4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBluetoothLEDevice4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2b605031_2248_4b2f_acf0_7cee36fc5870); -} +::windows_core::imp::com_interface!(IBluetoothLEDevice4, IBluetoothLEDevice4_Vtbl, 0x2b605031_2248_4b2f_acf0_7cee36fc5870); #[repr(C)] #[doc(hidden)] pub struct IBluetoothLEDevice4_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub BluetoothDeviceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBluetoothLEDevice5(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBluetoothLEDevice5 { - type Vtable = IBluetoothLEDevice5_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBluetoothLEDevice5 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9d6a1260_5287_458e_95ba_17c8b7bb326e); -} +::windows_core::imp::com_interface!(IBluetoothLEDevice5, IBluetoothLEDevice5_Vtbl, 0x9d6a1260_5287_458e_95ba_17c8b7bb326e); #[repr(C)] #[doc(hidden)] pub struct IBluetoothLEDevice5_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub WasSecureConnectionUsedForPairing: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBluetoothLEDevice6(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBluetoothLEDevice6 { - type Vtable = IBluetoothLEDevice6_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBluetoothLEDevice6 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xca7190ef_0cae_573c_a1ca_e1fc5bfc39e2); -} +::windows_core::imp::com_interface!(IBluetoothLEDevice6, IBluetoothLEDevice6_Vtbl, 0xca7190ef_0cae_573c_a1ca_e1fc5bfc39e2); #[repr(C)] #[doc(hidden)] pub struct IBluetoothLEDevice6_Vtbl { @@ -643,16 +391,7 @@ pub struct IBluetoothLEDevice6_Vtbl { pub ConnectionPhyChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveConnectionPhyChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBluetoothLEDeviceStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBluetoothLEDeviceStatics { - type Vtable = IBluetoothLEDeviceStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBluetoothLEDeviceStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc8cf1a19_f0b6_4bf0_8689_41303de2d9f4); -} +::windows_core::imp::com_interface!(IBluetoothLEDeviceStatics, IBluetoothLEDeviceStatics_Vtbl, 0xc8cf1a19_f0b6_4bf0_8689_41303de2d9f4); #[repr(C)] #[doc(hidden)] pub struct IBluetoothLEDeviceStatics_Vtbl { @@ -661,16 +400,7 @@ pub struct IBluetoothLEDeviceStatics_Vtbl { pub FromBluetoothAddressAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bluetoothaddress: u64, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeviceSelector: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBluetoothLEDeviceStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBluetoothLEDeviceStatics2 { - type Vtable = IBluetoothLEDeviceStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBluetoothLEDeviceStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5f12c06b_3bac_43e8_ad16_563271bd41c2); -} +::windows_core::imp::com_interface!(IBluetoothLEDeviceStatics2, IBluetoothLEDeviceStatics2_Vtbl, 0x5f12c06b_3bac_43e8_ad16_563271bd41c2); #[repr(C)] #[doc(hidden)] pub struct IBluetoothLEDeviceStatics2_Vtbl { @@ -683,16 +413,7 @@ pub struct IBluetoothLEDeviceStatics2_Vtbl { pub GetDeviceSelectorFromAppearance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, appearance: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub FromBluetoothAddressWithBluetoothAddressTypeAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bluetoothaddress: u64, bluetoothaddresstype: BluetoothAddressType, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBluetoothLEPreferredConnectionParameters(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBluetoothLEPreferredConnectionParameters { - type Vtable = IBluetoothLEPreferredConnectionParameters_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBluetoothLEPreferredConnectionParameters { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf2f44344_7372_5f7b_9b34_29c944f5a715); -} +::windows_core::imp::com_interface!(IBluetoothLEPreferredConnectionParameters, IBluetoothLEPreferredConnectionParameters_Vtbl, 0xf2f44344_7372_5f7b_9b34_29c944f5a715); #[repr(C)] #[doc(hidden)] pub struct IBluetoothLEPreferredConnectionParameters_Vtbl { @@ -702,32 +423,14 @@ pub struct IBluetoothLEPreferredConnectionParameters_Vtbl { pub MinConnectionInterval: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u16) -> ::windows_core::HRESULT, pub MaxConnectionInterval: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u16) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBluetoothLEPreferredConnectionParametersRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBluetoothLEPreferredConnectionParametersRequest { - type Vtable = IBluetoothLEPreferredConnectionParametersRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBluetoothLEPreferredConnectionParametersRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8a375276_a528_5266_b661_cce6a5ff9739); -} +::windows_core::imp::com_interface!(IBluetoothLEPreferredConnectionParametersRequest, IBluetoothLEPreferredConnectionParametersRequest_Vtbl, 0x8a375276_a528_5266_b661_cce6a5ff9739); #[repr(C)] #[doc(hidden)] pub struct IBluetoothLEPreferredConnectionParametersRequest_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut BluetoothLEPreferredConnectionParametersRequestStatus) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBluetoothLEPreferredConnectionParametersStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBluetoothLEPreferredConnectionParametersStatics { - type Vtable = IBluetoothLEPreferredConnectionParametersStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBluetoothLEPreferredConnectionParametersStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0e3e8edc_2751_55aa_a838_8faeee818d72); -} +::windows_core::imp::com_interface!(IBluetoothLEPreferredConnectionParametersStatics, IBluetoothLEPreferredConnectionParametersStatics_Vtbl, 0x0e3e8edc_2751_55aa_a838_8faeee818d72); #[repr(C)] #[doc(hidden)] pub struct IBluetoothLEPreferredConnectionParametersStatics_Vtbl { @@ -736,16 +439,7 @@ pub struct IBluetoothLEPreferredConnectionParametersStatics_Vtbl { pub ThroughputOptimized: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub PowerOptimized: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBluetoothSignalStrengthFilter(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBluetoothSignalStrengthFilter { - type Vtable = IBluetoothSignalStrengthFilter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBluetoothSignalStrengthFilter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdf7b7391_6bb5_4cfe_90b1_5d7324edcf7f); -} +::windows_core::imp::com_interface!(IBluetoothSignalStrengthFilter, IBluetoothSignalStrengthFilter_Vtbl, 0xdf7b7391_6bb5_4cfe_90b1_5d7324edcf7f); #[repr(C)] #[doc(hidden)] pub struct IBluetoothSignalStrengthFilter_Vtbl { @@ -759,16 +453,7 @@ pub struct IBluetoothSignalStrengthFilter_Vtbl { pub SamplingInterval: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetSamplingInterval: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBluetoothUuidHelperStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBluetoothUuidHelperStatics { - type Vtable = IBluetoothUuidHelperStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBluetoothUuidHelperStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x17df0cd8_cf74_4b21_afe6_f57a11bcdea0); -} +::windows_core::imp::com_interface!(IBluetoothUuidHelperStatics, IBluetoothUuidHelperStatics_Vtbl, 0x17df0cd8_cf74_4b21_afe6_f57a11bcdea0); #[repr(C)] #[doc(hidden)] pub struct IBluetoothUuidHelperStatics_Vtbl { @@ -779,6 +464,7 @@ pub struct IBluetoothUuidHelperStatics_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BluetoothAdapter(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BluetoothAdapter, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BluetoothAdapter { pub fn DeviceId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -839,28 +525,28 @@ impl BluetoothAdapter { } } pub fn AreClassicSecureConnectionsSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AreClassicSecureConnectionsSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn AreLowEnergySecureConnectionsSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AreLowEnergySecureConnectionsSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsExtendedAdvertisingSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsExtendedAdvertisingSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn MaxAdvertisementDataLength(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MaxAdvertisementDataLength)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -895,19 +581,17 @@ impl ::windows_core::RuntimeType for BluetoothAdapter { } unsafe impl ::windows_core::Interface for BluetoothAdapter { type Vtable = IBluetoothAdapter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BluetoothAdapter { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BluetoothAdapter { const NAME: &'static str = "Windows.Devices.Bluetooth.BluetoothAdapter"; } -::windows_core::imp::interface_hierarchy!(BluetoothAdapter, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BluetoothAdapter {} unsafe impl ::core::marker::Sync for BluetoothAdapter {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BluetoothClassOfDevice(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BluetoothClassOfDevice, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BluetoothClassOfDevice { pub fn RawValue(&self) -> ::windows_core::Result { let this = self; @@ -960,19 +644,18 @@ impl ::windows_core::RuntimeType for BluetoothClassOfDevice { } unsafe impl ::windows_core::Interface for BluetoothClassOfDevice { type Vtable = IBluetoothClassOfDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BluetoothClassOfDevice { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BluetoothClassOfDevice { const NAME: &'static str = "Windows.Devices.Bluetooth.BluetoothClassOfDevice"; } -::windows_core::imp::interface_hierarchy!(BluetoothClassOfDevice, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BluetoothClassOfDevice {} unsafe impl ::core::marker::Sync for BluetoothClassOfDevice {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BluetoothDevice(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BluetoothDevice, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(BluetoothDevice, super::super::Foundation::IClosable); impl BluetoothDevice { pub fn DeviceId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1081,7 +764,7 @@ impl BluetoothDevice { #[doc = "Required features: `\"Devices_Enumeration\"`"] #[cfg(feature = "Devices_Enumeration")] pub fn DeviceInformation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DeviceInformation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1090,7 +773,7 @@ impl BluetoothDevice { #[doc = "Required features: `\"Devices_Enumeration\"`"] #[cfg(feature = "Devices_Enumeration")] pub fn DeviceAccessInformation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DeviceAccessInformation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1099,7 +782,7 @@ impl BluetoothDevice { #[doc = "Required features: `\"Devices_Enumeration\"`"] #[cfg(feature = "Devices_Enumeration")] pub fn RequestAccessAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RequestAccessAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1108,7 +791,7 @@ impl BluetoothDevice { #[doc = "Required features: `\"Devices_Bluetooth_Rfcomm\"`"] #[cfg(feature = "Devices_Bluetooth_Rfcomm")] pub fn GetRfcommServicesAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetRfcommServicesAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1117,7 +800,7 @@ impl BluetoothDevice { #[doc = "Required features: `\"Devices_Bluetooth_Rfcomm\"`"] #[cfg(feature = "Devices_Bluetooth_Rfcomm")] pub fn GetRfcommServicesWithCacheModeAsync(&self, cachemode: BluetoothCacheMode) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetRfcommServicesWithCacheModeAsync)(::windows_core::Interface::as_raw(this), cachemode, &mut result__).from_abi(result__) @@ -1129,7 +812,7 @@ impl BluetoothDevice { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -1141,21 +824,21 @@ impl BluetoothDevice { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn BluetoothDeviceId(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).BluetoothDeviceId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn WasSecureConnectionUsedForPairing(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).WasSecureConnectionUsedForPairing)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1224,7 +907,7 @@ impl BluetoothDevice { }) } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } #[doc(hidden)] @@ -1243,20 +926,17 @@ impl ::windows_core::RuntimeType for BluetoothDevice { } unsafe impl ::windows_core::Interface for BluetoothDevice { type Vtable = IBluetoothDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BluetoothDevice { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BluetoothDevice { const NAME: &'static str = "Windows.Devices.Bluetooth.BluetoothDevice"; } -::windows_core::imp::interface_hierarchy!(BluetoothDevice, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for BluetoothDevice {} unsafe impl ::core::marker::Send for BluetoothDevice {} unsafe impl ::core::marker::Sync for BluetoothDevice {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BluetoothDeviceId(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BluetoothDeviceId, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BluetoothDeviceId { pub fn Id(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1296,19 +976,17 @@ impl ::windows_core::RuntimeType for BluetoothDeviceId { } unsafe impl ::windows_core::Interface for BluetoothDeviceId { type Vtable = IBluetoothDeviceId_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BluetoothDeviceId { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BluetoothDeviceId { const NAME: &'static str = "Windows.Devices.Bluetooth.BluetoothDeviceId"; } -::windows_core::imp::interface_hierarchy!(BluetoothDeviceId, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BluetoothDeviceId {} unsafe impl ::core::marker::Sync for BluetoothDeviceId {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BluetoothLEAppearance(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BluetoothLEAppearance, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BluetoothLEAppearance { pub fn RawValue(&self) -> ::windows_core::Result { let this = self; @@ -1354,14 +1032,11 @@ impl ::windows_core::RuntimeType for BluetoothLEAppearance { } unsafe impl ::windows_core::Interface for BluetoothLEAppearance { type Vtable = IBluetoothLEAppearance_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BluetoothLEAppearance { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BluetoothLEAppearance { const NAME: &'static str = "Windows.Devices.Bluetooth.BluetoothLEAppearance"; } -::windows_core::imp::interface_hierarchy!(BluetoothLEAppearance, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BluetoothLEAppearance {} unsafe impl ::core::marker::Sync for BluetoothLEAppearance {} pub struct BluetoothLEAppearanceCategories; @@ -1689,6 +1364,7 @@ impl ::windows_core::RuntimeName for BluetoothLEAppearanceSubcategories { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BluetoothLEConnectionParameters(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BluetoothLEConnectionParameters, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BluetoothLEConnectionParameters { pub fn LinkTimeout(&self) -> ::windows_core::Result { let this = self; @@ -1717,19 +1393,17 @@ impl ::windows_core::RuntimeType for BluetoothLEConnectionParameters { } unsafe impl ::windows_core::Interface for BluetoothLEConnectionParameters { type Vtable = IBluetoothLEConnectionParameters_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BluetoothLEConnectionParameters { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BluetoothLEConnectionParameters { const NAME: &'static str = "Windows.Devices.Bluetooth.BluetoothLEConnectionParameters"; } -::windows_core::imp::interface_hierarchy!(BluetoothLEConnectionParameters, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BluetoothLEConnectionParameters {} unsafe impl ::core::marker::Sync for BluetoothLEConnectionParameters {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BluetoothLEConnectionPhy(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BluetoothLEConnectionPhy, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BluetoothLEConnectionPhy { pub fn TransmitInfo(&self) -> ::windows_core::Result { let this = self; @@ -1751,19 +1425,17 @@ impl ::windows_core::RuntimeType for BluetoothLEConnectionPhy { } unsafe impl ::windows_core::Interface for BluetoothLEConnectionPhy { type Vtable = IBluetoothLEConnectionPhy_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BluetoothLEConnectionPhy { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BluetoothLEConnectionPhy { const NAME: &'static str = "Windows.Devices.Bluetooth.BluetoothLEConnectionPhy"; } -::windows_core::imp::interface_hierarchy!(BluetoothLEConnectionPhy, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BluetoothLEConnectionPhy {} unsafe impl ::core::marker::Sync for BluetoothLEConnectionPhy {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BluetoothLEConnectionPhyInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BluetoothLEConnectionPhyInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BluetoothLEConnectionPhyInfo { pub fn IsUncoded1MPhy(&self) -> ::windows_core::Result { let this = self; @@ -1792,19 +1464,18 @@ impl ::windows_core::RuntimeType for BluetoothLEConnectionPhyInfo { } unsafe impl ::windows_core::Interface for BluetoothLEConnectionPhyInfo { type Vtable = IBluetoothLEConnectionPhyInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BluetoothLEConnectionPhyInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BluetoothLEConnectionPhyInfo { const NAME: &'static str = "Windows.Devices.Bluetooth.BluetoothLEConnectionPhyInfo"; } -::windows_core::imp::interface_hierarchy!(BluetoothLEConnectionPhyInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BluetoothLEConnectionPhyInfo {} unsafe impl ::core::marker::Sync for BluetoothLEConnectionPhyInfo {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BluetoothLEDevice(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BluetoothLEDevice, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(BluetoothLEDevice, super::super::Foundation::IClosable); impl BluetoothLEDevice { pub fn DeviceId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1897,21 +1568,21 @@ impl BluetoothLEDevice { #[doc = "Required features: `\"Devices_Enumeration\"`"] #[cfg(feature = "Devices_Enumeration")] pub fn DeviceInformation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DeviceInformation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Appearance(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Appearance)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn BluetoothAddressType(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).BluetoothAddressType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1920,7 +1591,7 @@ impl BluetoothLEDevice { #[doc = "Required features: `\"Devices_Enumeration\"`"] #[cfg(feature = "Devices_Enumeration")] pub fn DeviceAccessInformation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DeviceAccessInformation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1929,7 +1600,7 @@ impl BluetoothLEDevice { #[doc = "Required features: `\"Devices_Enumeration\"`"] #[cfg(feature = "Devices_Enumeration")] pub fn RequestAccessAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RequestAccessAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1938,7 +1609,7 @@ impl BluetoothLEDevice { #[doc = "Required features: `\"Devices_Bluetooth_GenericAttributeProfile\"`"] #[cfg(feature = "Devices_Bluetooth_GenericAttributeProfile")] pub fn GetGattServicesAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetGattServicesAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1947,7 +1618,7 @@ impl BluetoothLEDevice { #[doc = "Required features: `\"Devices_Bluetooth_GenericAttributeProfile\"`"] #[cfg(feature = "Devices_Bluetooth_GenericAttributeProfile")] pub fn GetGattServicesWithCacheModeAsync(&self, cachemode: BluetoothCacheMode) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetGattServicesWithCacheModeAsync)(::windows_core::Interface::as_raw(this), cachemode, &mut result__).from_abi(result__) @@ -1956,7 +1627,7 @@ impl BluetoothLEDevice { #[doc = "Required features: `\"Devices_Bluetooth_GenericAttributeProfile\"`"] #[cfg(feature = "Devices_Bluetooth_GenericAttributeProfile")] pub fn GetGattServicesForUuidAsync(&self, serviceuuid: ::windows_core::GUID) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetGattServicesForUuidAsync)(::windows_core::Interface::as_raw(this), serviceuuid, &mut result__).from_abi(result__) @@ -1965,35 +1636,35 @@ impl BluetoothLEDevice { #[doc = "Required features: `\"Devices_Bluetooth_GenericAttributeProfile\"`"] #[cfg(feature = "Devices_Bluetooth_GenericAttributeProfile")] pub fn GetGattServicesForUuidWithCacheModeAsync(&self, serviceuuid: ::windows_core::GUID, cachemode: BluetoothCacheMode) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetGattServicesForUuidWithCacheModeAsync)(::windows_core::Interface::as_raw(this), serviceuuid, cachemode, &mut result__).from_abi(result__) } } pub fn BluetoothDeviceId(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).BluetoothDeviceId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn WasSecureConnectionUsedForPairing(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).WasSecureConnectionUsedForPairing)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetConnectionParameters(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetConnectionParameters)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetConnectionPhy(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetConnectionPhy)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2003,7 +1674,7 @@ impl BluetoothLEDevice { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -2013,28 +1684,28 @@ impl BluetoothLEDevice { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveConnectionParametersChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveConnectionParametersChanged)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn ConnectionPhyChanged(&self, handler: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveConnectionPhyChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveConnectionPhyChanged)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn FromIdAsync(deviceid: &::windows_core::HSTRING) -> ::windows_core::Result> { @@ -2101,7 +1772,7 @@ impl BluetoothLEDevice { }) } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } #[doc(hidden)] @@ -2120,20 +1791,17 @@ impl ::windows_core::RuntimeType for BluetoothLEDevice { } unsafe impl ::windows_core::Interface for BluetoothLEDevice { type Vtable = IBluetoothLEDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BluetoothLEDevice { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BluetoothLEDevice { const NAME: &'static str = "Windows.Devices.Bluetooth.BluetoothLEDevice"; } -::windows_core::imp::interface_hierarchy!(BluetoothLEDevice, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for BluetoothLEDevice {} unsafe impl ::core::marker::Send for BluetoothLEDevice {} unsafe impl ::core::marker::Sync for BluetoothLEDevice {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BluetoothLEPreferredConnectionParameters(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BluetoothLEPreferredConnectionParameters, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BluetoothLEPreferredConnectionParameters { pub fn LinkTimeout(&self) -> ::windows_core::Result { let this = self; @@ -2192,19 +1860,18 @@ impl ::windows_core::RuntimeType for BluetoothLEPreferredConnectionParameters { } unsafe impl ::windows_core::Interface for BluetoothLEPreferredConnectionParameters { type Vtable = IBluetoothLEPreferredConnectionParameters_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BluetoothLEPreferredConnectionParameters { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BluetoothLEPreferredConnectionParameters { const NAME: &'static str = "Windows.Devices.Bluetooth.BluetoothLEPreferredConnectionParameters"; } -::windows_core::imp::interface_hierarchy!(BluetoothLEPreferredConnectionParameters, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BluetoothLEPreferredConnectionParameters {} unsafe impl ::core::marker::Sync for BluetoothLEPreferredConnectionParameters {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BluetoothLEPreferredConnectionParametersRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BluetoothLEPreferredConnectionParametersRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(BluetoothLEPreferredConnectionParametersRequest, super::super::Foundation::IClosable); impl BluetoothLEPreferredConnectionParametersRequest { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -2214,7 +1881,7 @@ impl BluetoothLEPreferredConnectionParametersRequest { } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } } @@ -2223,20 +1890,17 @@ impl ::windows_core::RuntimeType for BluetoothLEPreferredConnectionParametersReq } unsafe impl ::windows_core::Interface for BluetoothLEPreferredConnectionParametersRequest { type Vtable = IBluetoothLEPreferredConnectionParametersRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BluetoothLEPreferredConnectionParametersRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BluetoothLEPreferredConnectionParametersRequest { const NAME: &'static str = "Windows.Devices.Bluetooth.BluetoothLEPreferredConnectionParametersRequest"; } -::windows_core::imp::interface_hierarchy!(BluetoothLEPreferredConnectionParametersRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for BluetoothLEPreferredConnectionParametersRequest {} unsafe impl ::core::marker::Send for BluetoothLEPreferredConnectionParametersRequest {} unsafe impl ::core::marker::Sync for BluetoothLEPreferredConnectionParametersRequest {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BluetoothSignalStrengthFilter(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BluetoothSignalStrengthFilter, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BluetoothSignalStrengthFilter { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2254,10 +1918,10 @@ impl BluetoothSignalStrengthFilter { } pub fn SetInRangeThresholdInDBm(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetInRangeThresholdInDBm)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetInRangeThresholdInDBm)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn OutOfRangeThresholdInDBm(&self) -> ::windows_core::Result> { let this = self; @@ -2268,10 +1932,10 @@ impl BluetoothSignalStrengthFilter { } pub fn SetOutOfRangeThresholdInDBm(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetOutOfRangeThresholdInDBm)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetOutOfRangeThresholdInDBm)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn OutOfRangeTimeout(&self) -> ::windows_core::Result> { let this = self; @@ -2282,10 +1946,10 @@ impl BluetoothSignalStrengthFilter { } pub fn SetOutOfRangeTimeout(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetOutOfRangeTimeout)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetOutOfRangeTimeout)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn SamplingInterval(&self) -> ::windows_core::Result> { let this = self; @@ -2296,10 +1960,10 @@ impl BluetoothSignalStrengthFilter { } pub fn SetSamplingInterval(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetSamplingInterval)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetSamplingInterval)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } } impl ::windows_core::RuntimeType for BluetoothSignalStrengthFilter { @@ -2307,14 +1971,11 @@ impl ::windows_core::RuntimeType for BluetoothSignalStrengthFilter { } unsafe impl ::windows_core::Interface for BluetoothSignalStrengthFilter { type Vtable = IBluetoothSignalStrengthFilter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BluetoothSignalStrengthFilter { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BluetoothSignalStrengthFilter { const NAME: &'static str = "Windows.Devices.Bluetooth.BluetoothSignalStrengthFilter"; } -::windows_core::imp::interface_hierarchy!(BluetoothSignalStrengthFilter, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BluetoothSignalStrengthFilter {} unsafe impl ::core::marker::Sync for BluetoothSignalStrengthFilter {} pub struct BluetoothUuidHelper; diff --git a/crates/libs/windows/src/Windows/Devices/Custom/impl.rs b/crates/libs/windows/src/Windows/Devices/Custom/impl.rs index e5995bd775..5167a2f2da 100644 --- a/crates/libs/windows/src/Windows/Devices/Custom/impl.rs +++ b/crates/libs/windows/src/Windows/Devices/Custom/impl.rs @@ -75,6 +75,6 @@ impl IIOControlCode_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/Devices/Custom/mod.rs b/crates/libs/windows/src/Windows/Devices/Custom/mod.rs index a7369f4f4e..d4f825058c 100644 --- a/crates/libs/windows/src/Windows/Devices/Custom/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Custom/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICustomDevice(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICustomDevice { - type Vtable = ICustomDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICustomDevice { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdd30251f_c48b_43bd_bcb1_dec88f15143e); -} +::windows_core::imp::com_interface!(ICustomDevice, ICustomDevice_Vtbl, 0xdd30251f_c48b_43bd_bcb1_dec88f15143e); #[repr(C)] #[doc(hidden)] pub struct ICustomDevice_Vtbl { @@ -29,16 +20,7 @@ pub struct ICustomDevice_Vtbl { #[cfg(not(feature = "Storage_Streams"))] TrySendIOControlAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICustomDeviceStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICustomDeviceStatics { - type Vtable = ICustomDeviceStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICustomDeviceStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc8220312_ef4c_46b1_a58e_eeb308dc8917); -} +::windows_core::imp::com_interface!(ICustomDeviceStatics, ICustomDeviceStatics_Vtbl, 0xc8220312_ef4c_46b1_a58e_eeb308dc8917); #[repr(C)] #[doc(hidden)] pub struct ICustomDeviceStatics_Vtbl { @@ -46,9 +28,8 @@ pub struct ICustomDeviceStatics_Vtbl { pub GetDeviceSelector: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, classguid: ::windows_core::GUID, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub FromIdAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, deviceid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, desiredaccess: DeviceAccessMode, sharingmode: DeviceSharingMode, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIOControlCode(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IIOControlCode, IIOControlCode_Vtbl, 0x0e9559e7_60c8_4375_a761_7f8808066c60); +::windows_core::imp::interface_hierarchy!(IIOControlCode, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IIOControlCode { pub fn AccessMode(&self) -> ::windows_core::Result { let this = self; @@ -86,16 +67,9 @@ impl IIOControlCode { } } } -::windows_core::imp::interface_hierarchy!(IIOControlCode, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IIOControlCode { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IIOControlCode { - type Vtable = IIOControlCode_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIOControlCode { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0e9559e7_60c8_4375_a761_7f8808066c60); -} #[repr(C)] #[doc(hidden)] pub struct IIOControlCode_Vtbl { @@ -106,32 +80,14 @@ pub struct IIOControlCode_Vtbl { pub DeviceType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u16) -> ::windows_core::HRESULT, pub ControlCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIOControlCodeFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIOControlCodeFactory { - type Vtable = IIOControlCodeFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIOControlCodeFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x856a7cf0_4c11_44ae_afc6_b8d4a212788f); -} +::windows_core::imp::com_interface!(IIOControlCodeFactory, IIOControlCodeFactory_Vtbl, 0x856a7cf0_4c11_44ae_afc6_b8d4a212788f); #[repr(C)] #[doc(hidden)] pub struct IIOControlCodeFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateIOControlCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, devicetype: u16, function: u16, accessmode: IOControlAccessMode, bufferingmethod: IOControlBufferingMethod, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKnownDeviceTypesStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKnownDeviceTypesStatics { - type Vtable = IKnownDeviceTypesStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKnownDeviceTypesStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xee5479c2_5448_45da_ad1b_24948c239094); -} +::windows_core::imp::com_interface!(IKnownDeviceTypesStatics, IKnownDeviceTypesStatics_Vtbl, 0xee5479c2_5448_45da_ad1b_24948c239094); #[repr(C)] #[doc(hidden)] pub struct IKnownDeviceTypesStatics_Vtbl { @@ -141,6 +97,7 @@ pub struct IKnownDeviceTypesStatics_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CustomDevice(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CustomDevice, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CustomDevice { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] @@ -164,28 +121,28 @@ impl CustomDevice { #[cfg(feature = "Storage_Streams")] pub fn SendIOControlAsync(&self, iocontrolcode: P0, inputbuffer: P1, outputbuffer: P2) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam, - P2: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, + P2: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).SendIOControlAsync)(::windows_core::Interface::as_raw(this), iocontrolcode.try_into_param()?.abi(), inputbuffer.try_into_param()?.abi(), outputbuffer.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn TrySendIOControlAsync(&self, iocontrolcode: P0, inputbuffer: P1, outputbuffer: P2) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam, - P2: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, + P2: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).TrySendIOControlAsync)(::windows_core::Interface::as_raw(this), iocontrolcode.try_into_param()?.abi(), inputbuffer.try_into_param()?.abi(), outputbuffer.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) } } pub fn GetDeviceSelector(classguid: ::windows_core::GUID) -> ::windows_core::Result<::windows_core::HSTRING> { @@ -211,19 +168,18 @@ impl ::windows_core::RuntimeType for CustomDevice { } unsafe impl ::windows_core::Interface for CustomDevice { type Vtable = ICustomDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CustomDevice { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CustomDevice { const NAME: &'static str = "Windows.Devices.Custom.CustomDevice"; } -::windows_core::imp::interface_hierarchy!(CustomDevice, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CustomDevice {} unsafe impl ::core::marker::Sync for CustomDevice {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct IOControlCode(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(IOControlCode, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IOControlCode, IIOControlCode); impl IOControlCode { pub fn AccessMode(&self) -> ::windows_core::Result { let this = self; @@ -277,15 +233,11 @@ impl ::windows_core::RuntimeType for IOControlCode { } unsafe impl ::windows_core::Interface for IOControlCode { type Vtable = IIOControlCode_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOControlCode { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for IOControlCode { const NAME: &'static str = "Windows.Devices.Custom.IOControlCode"; } -::windows_core::imp::interface_hierarchy!(IOControlCode, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IOControlCode {} unsafe impl ::core::marker::Send for IOControlCode {} unsafe impl ::core::marker::Sync for IOControlCode {} pub struct KnownDeviceTypes; 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 f941e333e7..7a1a48b1a4 100644 --- a/crates/libs/windows/src/Windows/Devices/Display/Core/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Display/Core/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDisplayAdapter(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDisplayAdapter { - type Vtable = IDisplayAdapter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDisplayAdapter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa56f5287_f000_5f2e_b5ac_3783a2b69af5); -} +::windows_core::imp::com_interface!(IDisplayAdapter, IDisplayAdapter_Vtbl, 0xa56f5287_f000_5f2e_b5ac_3783a2b69af5); #[repr(C)] #[doc(hidden)] pub struct IDisplayAdapter_Vtbl { @@ -27,16 +18,7 @@ pub struct IDisplayAdapter_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Properties: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDisplayAdapterStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDisplayAdapterStatics { - type Vtable = IDisplayAdapterStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDisplayAdapterStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1dac3cda_481f_5469_8470_82c4ba680a28); -} +::windows_core::imp::com_interface!(IDisplayAdapterStatics, IDisplayAdapterStatics_Vtbl, 0x1dac3cda_481f_5469_8470_82c4ba680a28); #[repr(C)] #[doc(hidden)] pub struct IDisplayAdapterStatics_Vtbl { @@ -46,16 +28,7 @@ pub struct IDisplayAdapterStatics_Vtbl { #[cfg(not(feature = "Graphics"))] FromId: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDisplayDevice(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDisplayDevice { - type Vtable = IDisplayDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDisplayDevice { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa4c9b62c_335f_5731_8cb4_c1ccd4731070); -} +::windows_core::imp::com_interface!(IDisplayDevice, IDisplayDevice_Vtbl, 0xa4c9b62c_335f_5731_8cb4_c1ccd4731070); #[repr(C)] #[doc(hidden)] pub struct IDisplayDevice_Vtbl { @@ -68,16 +41,7 @@ pub struct IDisplayDevice_Vtbl { pub CreateSimpleScanout: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psource: *mut ::core::ffi::c_void, psurface: *mut ::core::ffi::c_void, subresourceindex: u32, syncinterval: u32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub IsCapabilitySupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, capability: DisplayDeviceCapability, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDisplayDevice2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDisplayDevice2 { - type Vtable = IDisplayDevice2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDisplayDevice2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3fefe50c_0940_54bd_a02f_f9c7a536ad60); -} +::windows_core::imp::com_interface!(IDisplayDevice2, IDisplayDevice2_Vtbl, 0x3fefe50c_0940_54bd_a02f_f9c7a536ad60); #[repr(C)] #[doc(hidden)] pub struct IDisplayDevice2_Vtbl { @@ -87,31 +51,13 @@ pub struct IDisplayDevice2_Vtbl { #[cfg(not(all(feature = "Foundation_Collections", feature = "Graphics")))] CreateSimpleScanoutWithDirtyRectsAndOptions: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDisplayFence(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDisplayFence { - type Vtable = IDisplayFence_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDisplayFence { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x04dcf9ef_3406_5700_8fec_77eba4c5a74b); -} +::windows_core::imp::com_interface!(IDisplayFence, IDisplayFence_Vtbl, 0x04dcf9ef_3406_5700_8fec_77eba4c5a74b); #[repr(C)] #[doc(hidden)] pub struct IDisplayFence_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDisplayManager(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDisplayManager { - type Vtable = IDisplayManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDisplayManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4ed9245b_15ec_56e2_9072_7fe5084a31a7); -} +::windows_core::imp::com_interface!(IDisplayManager, IDisplayManager_Vtbl, 0x4ed9245b_15ec_56e2_9072_7fe5084a31a7); #[repr(C)] #[doc(hidden)] pub struct IDisplayManager_Vtbl { @@ -151,16 +97,7 @@ pub struct IDisplayManager_Vtbl { pub Start: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Stop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDisplayManagerChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDisplayManagerChangedEventArgs { - type Vtable = IDisplayManagerChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDisplayManagerChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6abfa285_6cca_5731_bcdc_42e5d2f5c50f); -} +::windows_core::imp::com_interface!(IDisplayManagerChangedEventArgs, IDisplayManagerChangedEventArgs_Vtbl, 0x6abfa285_6cca_5731_bcdc_42e5d2f5c50f); #[repr(C)] #[doc(hidden)] pub struct IDisplayManagerChangedEventArgs_Vtbl { @@ -169,16 +106,7 @@ pub struct IDisplayManagerChangedEventArgs_Vtbl { pub SetHandled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDisplayManagerDisabledEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDisplayManagerDisabledEventArgs { - type Vtable = IDisplayManagerDisabledEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDisplayManagerDisabledEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8726dde4_6793_5973_a11f_5ffbc93fdb90); -} +::windows_core::imp::com_interface!(IDisplayManagerDisabledEventArgs, IDisplayManagerDisabledEventArgs_Vtbl, 0x8726dde4_6793_5973_a11f_5ffbc93fdb90); #[repr(C)] #[doc(hidden)] pub struct IDisplayManagerDisabledEventArgs_Vtbl { @@ -187,16 +115,7 @@ pub struct IDisplayManagerDisabledEventArgs_Vtbl { pub SetHandled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDisplayManagerEnabledEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDisplayManagerEnabledEventArgs { - type Vtable = IDisplayManagerEnabledEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDisplayManagerEnabledEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf0cf3f6f_42fa_59a2_b297_26e1713de848); -} +::windows_core::imp::com_interface!(IDisplayManagerEnabledEventArgs, IDisplayManagerEnabledEventArgs_Vtbl, 0xf0cf3f6f_42fa_59a2_b297_26e1713de848); #[repr(C)] #[doc(hidden)] pub struct IDisplayManagerEnabledEventArgs_Vtbl { @@ -205,16 +124,7 @@ pub struct IDisplayManagerEnabledEventArgs_Vtbl { pub SetHandled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDisplayManagerPathsFailedOrInvalidatedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDisplayManagerPathsFailedOrInvalidatedEventArgs { - type Vtable = IDisplayManagerPathsFailedOrInvalidatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDisplayManagerPathsFailedOrInvalidatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x03a65659_1dec_5c15_b2a2_8fe9129869fe); -} +::windows_core::imp::com_interface!(IDisplayManagerPathsFailedOrInvalidatedEventArgs, IDisplayManagerPathsFailedOrInvalidatedEventArgs_Vtbl, 0x03a65659_1dec_5c15_b2a2_8fe9129869fe); #[repr(C)] #[doc(hidden)] pub struct IDisplayManagerPathsFailedOrInvalidatedEventArgs_Vtbl { @@ -223,16 +133,7 @@ pub struct IDisplayManagerPathsFailedOrInvalidatedEventArgs_Vtbl { pub SetHandled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDisplayManagerResultWithState(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDisplayManagerResultWithState { - type Vtable = IDisplayManagerResultWithState_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDisplayManagerResultWithState { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8e656aa6_6614_54be_bfef_4994547f7be1); -} +::windows_core::imp::com_interface!(IDisplayManagerResultWithState, IDisplayManagerResultWithState_Vtbl, 0x8e656aa6_6614_54be_bfef_4994547f7be1); #[repr(C)] #[doc(hidden)] pub struct IDisplayManagerResultWithState_Vtbl { @@ -241,32 +142,14 @@ pub struct IDisplayManagerResultWithState_Vtbl { pub ExtendedErrorCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, pub State: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDisplayManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDisplayManagerStatics { - type Vtable = IDisplayManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDisplayManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2b6b9446_b999_5535_9d69_53f092c780a1); -} +::windows_core::imp::com_interface!(IDisplayManagerStatics, IDisplayManagerStatics_Vtbl, 0x2b6b9446_b999_5535_9d69_53f092c780a1); #[repr(C)] #[doc(hidden)] pub struct IDisplayManagerStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, options: DisplayManagerOptions, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDisplayModeInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDisplayModeInfo { - type Vtable = IDisplayModeInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDisplayModeInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x48d513a0_f79b_5a74_a05e_da821f470868); -} +::windows_core::imp::com_interface!(IDisplayModeInfo, IDisplayModeInfo_Vtbl, 0x48d513a0_f79b_5a74_a05e_da821f470868); #[repr(C)] #[doc(hidden)] pub struct IDisplayModeInfo_Vtbl { @@ -296,16 +179,7 @@ pub struct IDisplayModeInfo_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Properties: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDisplayModeInfo2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDisplayModeInfo2 { - type Vtable = IDisplayModeInfo2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDisplayModeInfo2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc86fa386_0ddb_5473_bfb0_4b7807b5f909); -} +::windows_core::imp::com_interface!(IDisplayModeInfo2, IDisplayModeInfo2_Vtbl, 0xc86fa386_0ddb_5473_bfb0_4b7807b5f909); #[repr(C)] #[doc(hidden)] pub struct IDisplayModeInfo2_Vtbl { @@ -315,16 +189,7 @@ pub struct IDisplayModeInfo2_Vtbl { #[cfg(not(feature = "Foundation_Numerics"))] PhysicalPresentationRate: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDisplayPath(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDisplayPath { - type Vtable = IDisplayPath_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDisplayPath { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb3dfd64a_7460_5cde_811b_d5ae9f3d9f84); -} +::windows_core::imp::com_interface!(IDisplayPath, IDisplayPath_Vtbl, 0xb3dfd64a_7460_5cde_811b_d5ae9f3d9f84); #[repr(C)] #[doc(hidden)] pub struct IDisplayPath_Vtbl { @@ -384,16 +249,7 @@ pub struct IDisplayPath_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Properties: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDisplayPath2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDisplayPath2 { - type Vtable = IDisplayPath2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDisplayPath2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf32459c5_e994_570b_9ec8_ef42c35a8547); -} +::windows_core::imp::com_interface!(IDisplayPath2, IDisplayPath2_Vtbl, 0xf32459c5_e994_570b_9ec8_ef42c35a8547); #[repr(C)] #[doc(hidden)] pub struct IDisplayPath2_Vtbl { @@ -407,16 +263,7 @@ pub struct IDisplayPath2_Vtbl { #[cfg(not(feature = "Foundation_Numerics"))] SetPhysicalPresentationRate: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDisplayPrimaryDescription(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDisplayPrimaryDescription { - type Vtable = IDisplayPrimaryDescription_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDisplayPrimaryDescription { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x872591d2_d533_50ff_a85e_06696194b77c); -} +::windows_core::imp::com_interface!(IDisplayPrimaryDescription, IDisplayPrimaryDescription_Vtbl, 0x872591d2_d533_50ff_a85e_06696194b77c); #[repr(C)] #[doc(hidden)] pub struct IDisplayPrimaryDescription_Vtbl { @@ -441,16 +288,7 @@ pub struct IDisplayPrimaryDescription_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Properties: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDisplayPrimaryDescriptionFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDisplayPrimaryDescriptionFactory { - type Vtable = IDisplayPrimaryDescriptionFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDisplayPrimaryDescriptionFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1a6aff7b_3637_5c46_b479_76d576216e65); -} +::windows_core::imp::com_interface!(IDisplayPrimaryDescriptionFactory, IDisplayPrimaryDescriptionFactory_Vtbl, 0x1a6aff7b_3637_5c46_b479_76d576216e65); #[repr(C)] #[doc(hidden)] pub struct IDisplayPrimaryDescriptionFactory_Vtbl { @@ -460,16 +298,7 @@ pub struct IDisplayPrimaryDescriptionFactory_Vtbl { #[cfg(not(feature = "Graphics_DirectX_Direct3D11"))] CreateInstance: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDisplayPrimaryDescriptionStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDisplayPrimaryDescriptionStatics { - type Vtable = IDisplayPrimaryDescriptionStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDisplayPrimaryDescriptionStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe60e4cfb_36c9_56dd_8fa1_6ff8c4e0ff07); -} +::windows_core::imp::com_interface!(IDisplayPrimaryDescriptionStatics, IDisplayPrimaryDescriptionStatics_Vtbl, 0xe60e4cfb_36c9_56dd_8fa1_6ff8c4e0ff07); #[repr(C)] #[doc(hidden)] pub struct IDisplayPrimaryDescriptionStatics_Vtbl { @@ -479,31 +308,13 @@ pub struct IDisplayPrimaryDescriptionStatics_Vtbl { #[cfg(not(all(feature = "Foundation_Collections", feature = "Graphics_DirectX_Direct3D11")))] CreateWithProperties: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDisplayScanout(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDisplayScanout { - type Vtable = IDisplayScanout_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDisplayScanout { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe3051828_1ba5_50e7_8a39_bb1fd2f4f8b9); -} +::windows_core::imp::com_interface!(IDisplayScanout, IDisplayScanout_Vtbl, 0xe3051828_1ba5_50e7_8a39_bb1fd2f4f8b9); #[repr(C)] #[doc(hidden)] pub struct IDisplayScanout_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDisplaySource(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDisplaySource { - type Vtable = IDisplaySource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDisplaySource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xecd15fc1_eadc_51bc_971d_3bc628db2dd4); -} +::windows_core::imp::com_interface!(IDisplaySource, IDisplaySource_Vtbl, 0xecd15fc1_eadc_51bc_971d_3bc628db2dd4); #[repr(C)] #[doc(hidden)] pub struct IDisplaySource_Vtbl { @@ -518,16 +329,7 @@ pub struct IDisplaySource_Vtbl { #[cfg(not(feature = "Storage_Streams"))] GetMetadata: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDisplaySource2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDisplaySource2 { - type Vtable = IDisplaySource2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDisplaySource2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x71e18952_b321_5af4_bfe8_03fbea31e40d); -} +::windows_core::imp::com_interface!(IDisplaySource2, IDisplaySource2_Vtbl, 0x71e18952_b321_5af4_bfe8_03fbea31e40d); #[repr(C)] #[doc(hidden)] pub struct IDisplaySource2_Vtbl { @@ -536,16 +338,7 @@ pub struct IDisplaySource2_Vtbl { pub StatusChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveStatusChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDisplayState(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDisplayState { - type Vtable = IDisplayState_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDisplayState { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x08129321_11b5_5cb2_99f8_e90b479a8a1d); -} +::windows_core::imp::com_interface!(IDisplayState, IDisplayState_Vtbl, 0x08129321_11b5_5cb2_99f8_e90b479a8a1d); #[repr(C)] #[doc(hidden)] pub struct IDisplayState_Vtbl { @@ -574,16 +367,7 @@ pub struct IDisplayState_Vtbl { pub TryApply: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, options: DisplayStateApplyOptions, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDisplayStateOperationResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDisplayStateOperationResult { - type Vtable = IDisplayStateOperationResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDisplayStateOperationResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfcadbfdf_dc27_5638_b7f2_ebdfa4f7ea93); -} +::windows_core::imp::com_interface!(IDisplayStateOperationResult, IDisplayStateOperationResult_Vtbl, 0xfcadbfdf_dc27_5638_b7f2_ebdfa4f7ea93); #[repr(C)] #[doc(hidden)] pub struct IDisplayStateOperationResult_Vtbl { @@ -591,31 +375,13 @@ pub struct IDisplayStateOperationResult_Vtbl { pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut DisplayStateOperationStatus) -> ::windows_core::HRESULT, pub ExtendedErrorCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDisplaySurface(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDisplaySurface { - type Vtable = IDisplaySurface_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDisplaySurface { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x594f6cc6_139a_56d6_a4b1_15fe2cb76adb); -} +::windows_core::imp::com_interface!(IDisplaySurface, IDisplaySurface_Vtbl, 0x594f6cc6_139a_56d6_a4b1_15fe2cb76adb); #[repr(C)] #[doc(hidden)] pub struct IDisplaySurface_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDisplayTarget(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDisplayTarget { - type Vtable = IDisplayTarget_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDisplayTarget { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaec57c6f_47b4_546b_987c_e73fa791fe3a); -} +::windows_core::imp::com_interface!(IDisplayTarget, IDisplayTarget_Vtbl, 0xaec57c6f_47b4_546b_987c_e73fa791fe3a); #[repr(C)] #[doc(hidden)] pub struct IDisplayTarget_Vtbl { @@ -638,16 +404,7 @@ pub struct IDisplayTarget_Vtbl { pub IsSame: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, othertarget: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub IsEqual: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, othertarget: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDisplayTask(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDisplayTask { - type Vtable = IDisplayTask_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDisplayTask { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5e087448_135b_5bb0_bf63_637f84227c7a); -} +::windows_core::imp::com_interface!(IDisplayTask, IDisplayTask_Vtbl, 0x5e087448_135b_5bb0_bf63_637f84227c7a); #[repr(C)] #[doc(hidden)] pub struct IDisplayTask_Vtbl { @@ -655,32 +412,14 @@ pub struct IDisplayTask_Vtbl { pub SetScanout: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, scanout: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetWait: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, readyfence: *mut ::core::ffi::c_void, readyfencevalue: u64) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDisplayTask2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDisplayTask2 { - type Vtable = IDisplayTask2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDisplayTask2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0957ea19_bd55_55de_9267_c97b61e71c37); -} +::windows_core::imp::com_interface!(IDisplayTask2, IDisplayTask2_Vtbl, 0x0957ea19_bd55_55de_9267_c97b61e71c37); #[repr(C)] #[doc(hidden)] pub struct IDisplayTask2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub SetSignal: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, signalkind: DisplayTaskSignalKind, fence: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDisplayTaskPool(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDisplayTaskPool { - type Vtable = IDisplayTaskPool_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDisplayTaskPool { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc676253d_237d_5548_aafa_3e517fefef1c); -} +::windows_core::imp::com_interface!(IDisplayTaskPool, IDisplayTaskPool_Vtbl, 0xc676253d_237d_5548_aafa_3e517fefef1c); #[repr(C)] #[doc(hidden)] pub struct IDisplayTaskPool_Vtbl { @@ -691,32 +430,14 @@ pub struct IDisplayTaskPool_Vtbl { #[cfg(not(feature = "deprecated"))] ExecuteTask: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDisplayTaskPool2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDisplayTaskPool2 { - type Vtable = IDisplayTaskPool2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDisplayTaskPool2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x46b879b6_5d17_5955_a872_eb38003db586); -} +::windows_core::imp::com_interface!(IDisplayTaskPool2, IDisplayTaskPool2_Vtbl, 0x46b879b6_5d17_5955_a872_eb38003db586); #[repr(C)] #[doc(hidden)] pub struct IDisplayTaskPool2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub TryExecuteTask: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, task: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDisplayTaskResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDisplayTaskResult { - type Vtable = IDisplayTaskResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDisplayTaskResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6fbc7d67_f9b1_55e0_9d88_d3a5197a3f59); -} +::windows_core::imp::com_interface!(IDisplayTaskResult, IDisplayTaskResult_Vtbl, 0x6fbc7d67_f9b1_55e0_9d88_d3a5197a3f59); #[repr(C)] #[doc(hidden)] pub struct IDisplayTaskResult_Vtbl { @@ -725,16 +446,7 @@ pub struct IDisplayTaskResult_Vtbl { pub PresentId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u64) -> ::windows_core::HRESULT, pub SourceStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut DisplaySourceStatus) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDisplayView(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDisplayView { - type Vtable = IDisplayView_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDisplayView { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb0c98ca1_b759_5b59_b1ad_f0786aa9e53d); -} +::windows_core::imp::com_interface!(IDisplayView, IDisplayView_Vtbl, 0xb0c98ca1_b759_5b59_b1ad_f0786aa9e53d); #[repr(C)] #[doc(hidden)] pub struct IDisplayView_Vtbl { @@ -757,16 +469,7 @@ pub struct IDisplayView_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Properties: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDisplayWireFormat(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDisplayWireFormat { - type Vtable = IDisplayWireFormat_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDisplayWireFormat { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1acc967d_872c_5a38_bbb9_1d4872b76255); -} +::windows_core::imp::com_interface!(IDisplayWireFormat, IDisplayWireFormat_Vtbl, 0x1acc967d_872c_5a38_bbb9_1d4872b76255); #[repr(C)] #[doc(hidden)] pub struct IDisplayWireFormat_Vtbl { @@ -781,32 +484,14 @@ pub struct IDisplayWireFormat_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Properties: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDisplayWireFormatFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDisplayWireFormatFactory { - type Vtable = IDisplayWireFormatFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDisplayWireFormatFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb2efc8d5_09d6_55e6_ad22_9014b3d25229); -} +::windows_core::imp::com_interface!(IDisplayWireFormatFactory, IDisplayWireFormatFactory_Vtbl, 0xb2efc8d5_09d6_55e6_ad22_9014b3d25229); #[repr(C)] #[doc(hidden)] pub struct IDisplayWireFormatFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pixelencoding: DisplayWireFormatPixelEncoding, bitsperchannel: i32, colorspace: DisplayWireFormatColorSpace, eotf: DisplayWireFormatEotf, hdrmetadata: DisplayWireFormatHdrMetadata, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDisplayWireFormatStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDisplayWireFormatStatics { - type Vtable = IDisplayWireFormatStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDisplayWireFormatStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc575a22d_c3e6_5f7a_bdfb_87c6ab8661d5); -} +::windows_core::imp::com_interface!(IDisplayWireFormatStatics, IDisplayWireFormatStatics_Vtbl, 0xc575a22d_c3e6_5f7a_bdfb_87c6ab8661d5); #[repr(C)] #[doc(hidden)] pub struct IDisplayWireFormatStatics_Vtbl { @@ -819,6 +504,7 @@ pub struct IDisplayWireFormatStatics_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DisplayAdapter(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DisplayAdapter, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DisplayAdapter { #[doc = "Required features: `\"Graphics\"`"] #[cfg(feature = "Graphics")] @@ -899,19 +585,17 @@ impl ::windows_core::RuntimeType for DisplayAdapter { } unsafe impl ::windows_core::Interface for DisplayAdapter { type Vtable = IDisplayAdapter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DisplayAdapter { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DisplayAdapter { const NAME: &'static str = "Windows.Devices.Display.Core.DisplayAdapter"; } -::windows_core::imp::interface_hierarchy!(DisplayAdapter, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DisplayAdapter {} unsafe impl ::core::marker::Sync for DisplayAdapter {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DisplayDevice(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DisplayDevice, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DisplayDevice { pub fn CreateScanoutSource(&self, target: P0) -> ::windows_core::Result where @@ -982,12 +666,12 @@ impl DisplayDevice { where P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, - P2: ::windows_core::TryIntoParam>, + P2: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), options, &mut result__).from_abi(result__) + (::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__).from_abi(result__) } } } @@ -996,41 +680,38 @@ impl ::windows_core::RuntimeType for DisplayDevice { } unsafe impl ::windows_core::Interface for DisplayDevice { type Vtable = IDisplayDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DisplayDevice { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DisplayDevice { const NAME: &'static str = "Windows.Devices.Display.Core.DisplayDevice"; } -::windows_core::imp::interface_hierarchy!(DisplayDevice, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DisplayDevice {} unsafe impl ::core::marker::Sync for DisplayDevice {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DisplayFence(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DisplayFence, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DisplayFence {} impl ::windows_core::RuntimeType for DisplayFence { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_class::(); } unsafe impl ::windows_core::Interface for DisplayFence { type Vtable = IDisplayFence_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DisplayFence { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DisplayFence { const NAME: &'static str = "Windows.Devices.Display.Core.DisplayFence"; } -::windows_core::imp::interface_hierarchy!(DisplayFence, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DisplayFence {} unsafe impl ::core::marker::Sync for DisplayFence {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DisplayManager(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DisplayManager, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(DisplayManager, super::super::super::Foundation::IClosable); impl DisplayManager { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -1079,24 +760,24 @@ impl DisplayManager { #[cfg(feature = "Foundation_Collections")] pub fn TryAcquireTargetsAndReadCurrentState(&self, targets: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).TryAcquireTargetsAndReadCurrentState)(::windows_core::Interface::as_raw(this), targets.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).TryAcquireTargetsAndReadCurrentState)(::windows_core::Interface::as_raw(this), targets.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn TryAcquireTargetsAndCreateEmptyState(&self, targets: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).TryAcquireTargetsAndCreateEmptyState)(::windows_core::Interface::as_raw(this), targets.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).TryAcquireTargetsAndCreateEmptyState)(::windows_core::Interface::as_raw(this), targets.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -1104,12 +785,12 @@ impl DisplayManager { pub fn TryAcquireTargetsAndCreateSubstate(&self, existingstate: P0, targets: P1) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam>, + P1: ::windows_core::IntoParam>, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).TryAcquireTargetsAndCreateSubstate)(::windows_core::Interface::as_raw(this), existingstate.into_param().abi(), targets.into_param().abi(), &mut result__).from_abi(result__) } } pub fn CreateDisplayDevice(&self, adapter: P0) -> ::windows_core::Result @@ -1203,20 +884,17 @@ impl ::windows_core::RuntimeType for DisplayManager { } unsafe impl ::windows_core::Interface for DisplayManager { type Vtable = IDisplayManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DisplayManager { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DisplayManager { const NAME: &'static str = "Windows.Devices.Display.Core.DisplayManager"; } -::windows_core::imp::interface_hierarchy!(DisplayManager, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for DisplayManager {} unsafe impl ::core::marker::Send for DisplayManager {} unsafe impl ::core::marker::Sync for DisplayManager {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DisplayManagerChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DisplayManagerChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DisplayManagerChangedEventArgs { pub fn Handled(&self) -> ::windows_core::Result { let this = self; @@ -1242,19 +920,17 @@ impl ::windows_core::RuntimeType for DisplayManagerChangedEventArgs { } unsafe impl ::windows_core::Interface for DisplayManagerChangedEventArgs { type Vtable = IDisplayManagerChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DisplayManagerChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DisplayManagerChangedEventArgs { const NAME: &'static str = "Windows.Devices.Display.Core.DisplayManagerChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(DisplayManagerChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DisplayManagerChangedEventArgs {} unsafe impl ::core::marker::Sync for DisplayManagerChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DisplayManagerDisabledEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DisplayManagerDisabledEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DisplayManagerDisabledEventArgs { pub fn Handled(&self) -> ::windows_core::Result { let this = self; @@ -1280,19 +956,17 @@ impl ::windows_core::RuntimeType for DisplayManagerDisabledEventArgs { } unsafe impl ::windows_core::Interface for DisplayManagerDisabledEventArgs { type Vtable = IDisplayManagerDisabledEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DisplayManagerDisabledEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DisplayManagerDisabledEventArgs { const NAME: &'static str = "Windows.Devices.Display.Core.DisplayManagerDisabledEventArgs"; } -::windows_core::imp::interface_hierarchy!(DisplayManagerDisabledEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DisplayManagerDisabledEventArgs {} unsafe impl ::core::marker::Sync for DisplayManagerDisabledEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DisplayManagerEnabledEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DisplayManagerEnabledEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DisplayManagerEnabledEventArgs { pub fn Handled(&self) -> ::windows_core::Result { let this = self; @@ -1318,19 +992,17 @@ impl ::windows_core::RuntimeType for DisplayManagerEnabledEventArgs { } unsafe impl ::windows_core::Interface for DisplayManagerEnabledEventArgs { type Vtable = IDisplayManagerEnabledEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DisplayManagerEnabledEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DisplayManagerEnabledEventArgs { const NAME: &'static str = "Windows.Devices.Display.Core.DisplayManagerEnabledEventArgs"; } -::windows_core::imp::interface_hierarchy!(DisplayManagerEnabledEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DisplayManagerEnabledEventArgs {} unsafe impl ::core::marker::Sync for DisplayManagerEnabledEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DisplayManagerPathsFailedOrInvalidatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DisplayManagerPathsFailedOrInvalidatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DisplayManagerPathsFailedOrInvalidatedEventArgs { pub fn Handled(&self) -> ::windows_core::Result { let this = self; @@ -1356,19 +1028,17 @@ impl ::windows_core::RuntimeType for DisplayManagerPathsFailedOrInvalidatedEvent } unsafe impl ::windows_core::Interface for DisplayManagerPathsFailedOrInvalidatedEventArgs { type Vtable = IDisplayManagerPathsFailedOrInvalidatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DisplayManagerPathsFailedOrInvalidatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DisplayManagerPathsFailedOrInvalidatedEventArgs { const NAME: &'static str = "Windows.Devices.Display.Core.DisplayManagerPathsFailedOrInvalidatedEventArgs"; } -::windows_core::imp::interface_hierarchy!(DisplayManagerPathsFailedOrInvalidatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DisplayManagerPathsFailedOrInvalidatedEventArgs {} unsafe impl ::core::marker::Sync for DisplayManagerPathsFailedOrInvalidatedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DisplayManagerResultWithState(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DisplayManagerResultWithState, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DisplayManagerResultWithState { pub fn ErrorCode(&self) -> ::windows_core::Result { let this = self; @@ -1397,19 +1067,17 @@ impl ::windows_core::RuntimeType for DisplayManagerResultWithState { } unsafe impl ::windows_core::Interface for DisplayManagerResultWithState { type Vtable = IDisplayManagerResultWithState_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DisplayManagerResultWithState { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DisplayManagerResultWithState { const NAME: &'static str = "Windows.Devices.Display.Core.DisplayManagerResultWithState"; } -::windows_core::imp::interface_hierarchy!(DisplayManagerResultWithState, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DisplayManagerResultWithState {} unsafe impl ::core::marker::Sync for DisplayManagerResultWithState {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DisplayModeInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DisplayModeInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DisplayModeInfo { #[doc = "Required features: `\"Graphics\"`"] #[cfg(feature = "Graphics")] @@ -1490,7 +1158,7 @@ impl DisplayModeInfo { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn PhysicalPresentationRate(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PhysicalPresentationRate)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1502,19 +1170,17 @@ impl ::windows_core::RuntimeType for DisplayModeInfo { } unsafe impl ::windows_core::Interface for DisplayModeInfo { type Vtable = IDisplayModeInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DisplayModeInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DisplayModeInfo { const NAME: &'static str = "Windows.Devices.Display.Core.DisplayModeInfo"; } -::windows_core::imp::interface_hierarchy!(DisplayModeInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DisplayModeInfo {} unsafe impl ::core::marker::Sync for DisplayModeInfo {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DisplayPath(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DisplayPath, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DisplayPath { pub fn View(&self) -> ::windows_core::Result { let this = self; @@ -1550,10 +1216,10 @@ impl DisplayPath { #[cfg(feature = "Graphics")] pub fn SetSourceResolution(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetSourceResolution)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetSourceResolution)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } #[doc = "Required features: `\"Graphics_DirectX\"`"] #[cfg(feature = "Graphics_DirectX")] @@ -1594,10 +1260,10 @@ impl DisplayPath { #[cfg(feature = "Graphics")] pub fn SetTargetResolution(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetTargetResolution)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetTargetResolution)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] @@ -1612,10 +1278,10 @@ impl DisplayPath { #[cfg(feature = "Foundation_Numerics")] pub fn SetPresentationRate(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetPresentationRate)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetPresentationRate)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn IsInterlaced(&self) -> ::windows_core::Result> { let this = self; @@ -1626,10 +1292,10 @@ impl DisplayPath { } pub fn SetIsInterlaced(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetIsInterlaced)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetIsInterlaced)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn WireFormat(&self) -> ::windows_core::Result { let this = self; @@ -1695,7 +1361,7 @@ impl DisplayPath { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn PhysicalPresentationRate(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PhysicalPresentationRate)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1705,10 +1371,10 @@ impl DisplayPath { #[cfg(feature = "Foundation_Numerics")] pub fn SetPhysicalPresentationRate(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetPhysicalPresentationRate)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } } impl ::windows_core::RuntimeType for DisplayPath { @@ -1716,19 +1382,17 @@ impl ::windows_core::RuntimeType for DisplayPath { } unsafe impl ::windows_core::Interface for DisplayPath { type Vtable = IDisplayPath_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DisplayPath { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DisplayPath { const NAME: &'static str = "Windows.Devices.Display.Core.DisplayPath"; } -::windows_core::imp::interface_hierarchy!(DisplayPath, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DisplayPath {} unsafe impl ::core::marker::Sync for DisplayPath {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DisplayPrimaryDescription(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DisplayPrimaryDescription, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DisplayPrimaryDescription { pub fn Width(&self) -> ::windows_core::Result { let this = self; @@ -1799,11 +1463,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::TryIntoParam>>, + P0: ::windows_core::IntoParam>>, { Self::IDisplayPrimaryDescriptionStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateWithProperties)(::windows_core::Interface::as_raw(this), extraproperties.try_into_param()?.abi(), width, height, pixelformat, colorspace, isstereo, multisampledescription, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateWithProperties)(::windows_core::Interface::as_raw(this), extraproperties.into_param().abi(), width, height, pixelformat, colorspace, isstereo, multisampledescription, &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -1822,38 +1486,34 @@ impl ::windows_core::RuntimeType for DisplayPrimaryDescription { } unsafe impl ::windows_core::Interface for DisplayPrimaryDescription { type Vtable = IDisplayPrimaryDescription_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DisplayPrimaryDescription { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DisplayPrimaryDescription { const NAME: &'static str = "Windows.Devices.Display.Core.DisplayPrimaryDescription"; } -::windows_core::imp::interface_hierarchy!(DisplayPrimaryDescription, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DisplayPrimaryDescription {} unsafe impl ::core::marker::Sync for DisplayPrimaryDescription {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DisplayScanout(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DisplayScanout, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DisplayScanout {} impl ::windows_core::RuntimeType for DisplayScanout { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_class::(); } unsafe impl ::windows_core::Interface for DisplayScanout { type Vtable = IDisplayScanout_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DisplayScanout { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DisplayScanout { const NAME: &'static str = "Windows.Devices.Display.Core.DisplayScanout"; } -::windows_core::imp::interface_hierarchy!(DisplayScanout, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DisplayScanout {} unsafe impl ::core::marker::Sync for DisplayScanout {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DisplaySource(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DisplaySource, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DisplaySource { #[doc = "Required features: `\"Graphics\"`"] #[cfg(feature = "Graphics")] @@ -1881,7 +1541,7 @@ impl DisplaySource { } } pub fn Status(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Status)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1891,14 +1551,14 @@ impl DisplaySource { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveStatusChanged(&self, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveStatusChanged)(::windows_core::Interface::as_raw(this), token).ok() } } } @@ -1907,19 +1567,17 @@ impl ::windows_core::RuntimeType for DisplaySource { } unsafe impl ::windows_core::Interface for DisplaySource { type Vtable = IDisplaySource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DisplaySource { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DisplaySource { const NAME: &'static str = "Windows.Devices.Display.Core.DisplaySource"; } -::windows_core::imp::interface_hierarchy!(DisplaySource, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DisplaySource {} unsafe impl ::core::marker::Sync for DisplaySource {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DisplayState(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DisplayState, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DisplayState { pub fn IsReadOnly(&self) -> ::windows_core::Result { let this = self; @@ -2048,19 +1706,17 @@ impl ::windows_core::RuntimeType for DisplayState { } unsafe impl ::windows_core::Interface for DisplayState { type Vtable = IDisplayState_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DisplayState { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DisplayState { const NAME: &'static str = "Windows.Devices.Display.Core.DisplayState"; } -::windows_core::imp::interface_hierarchy!(DisplayState, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DisplayState {} unsafe impl ::core::marker::Sync for DisplayState {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DisplayStateOperationResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DisplayStateOperationResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DisplayStateOperationResult { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -2082,38 +1738,34 @@ impl ::windows_core::RuntimeType for DisplayStateOperationResult { } unsafe impl ::windows_core::Interface for DisplayStateOperationResult { type Vtable = IDisplayStateOperationResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DisplayStateOperationResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DisplayStateOperationResult { const NAME: &'static str = "Windows.Devices.Display.Core.DisplayStateOperationResult"; } -::windows_core::imp::interface_hierarchy!(DisplayStateOperationResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DisplayStateOperationResult {} unsafe impl ::core::marker::Sync for DisplayStateOperationResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DisplaySurface(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DisplaySurface, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DisplaySurface {} impl ::windows_core::RuntimeType for DisplaySurface { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_class::(); } unsafe impl ::windows_core::Interface for DisplaySurface { type Vtable = IDisplaySurface_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DisplaySurface { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DisplaySurface { const NAME: &'static str = "Windows.Devices.Display.Core.DisplaySurface"; } -::windows_core::imp::interface_hierarchy!(DisplaySurface, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DisplaySurface {} unsafe impl ::core::marker::Sync for DisplaySurface {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DisplayTarget(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DisplayTarget, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DisplayTarget { pub fn Adapter(&self) -> ::windows_core::Result { let this = self; @@ -2227,19 +1879,17 @@ impl ::windows_core::RuntimeType for DisplayTarget { } unsafe impl ::windows_core::Interface for DisplayTarget { type Vtable = IDisplayTarget_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DisplayTarget { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DisplayTarget { const NAME: &'static str = "Windows.Devices.Display.Core.DisplayTarget"; } -::windows_core::imp::interface_hierarchy!(DisplayTarget, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DisplayTarget {} unsafe impl ::core::marker::Sync for DisplayTarget {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DisplayTask(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DisplayTask, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DisplayTask { pub fn SetScanout(&self, scanout: P0) -> ::windows_core::Result<()> where @@ -2259,7 +1909,7 @@ impl DisplayTask { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } } @@ -2268,19 +1918,17 @@ impl ::windows_core::RuntimeType for DisplayTask { } unsafe impl ::windows_core::Interface for DisplayTask { type Vtable = IDisplayTask_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DisplayTask { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DisplayTask { const NAME: &'static str = "Windows.Devices.Display.Core.DisplayTask"; } -::windows_core::imp::interface_hierarchy!(DisplayTask, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DisplayTask {} unsafe impl ::core::marker::Sync for DisplayTask {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DisplayTaskPool(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DisplayTaskPool, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DisplayTaskPool { pub fn CreateTask(&self) -> ::windows_core::Result { let this = self; @@ -2302,7 +1950,7 @@ impl DisplayTaskPool { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -2314,19 +1962,17 @@ impl ::windows_core::RuntimeType for DisplayTaskPool { } unsafe impl ::windows_core::Interface for DisplayTaskPool { type Vtable = IDisplayTaskPool_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DisplayTaskPool { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DisplayTaskPool { const NAME: &'static str = "Windows.Devices.Display.Core.DisplayTaskPool"; } -::windows_core::imp::interface_hierarchy!(DisplayTaskPool, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DisplayTaskPool {} unsafe impl ::core::marker::Sync for DisplayTaskPool {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DisplayTaskResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DisplayTaskResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DisplayTaskResult { pub fn PresentStatus(&self) -> ::windows_core::Result { let this = self; @@ -2355,19 +2001,17 @@ impl ::windows_core::RuntimeType for DisplayTaskResult { } unsafe impl ::windows_core::Interface for DisplayTaskResult { type Vtable = IDisplayTaskResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DisplayTaskResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DisplayTaskResult { const NAME: &'static str = "Windows.Devices.Display.Core.DisplayTaskResult"; } -::windows_core::imp::interface_hierarchy!(DisplayTaskResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DisplayTaskResult {} unsafe impl ::core::marker::Sync for DisplayTaskResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DisplayView(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DisplayView, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DisplayView { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -2391,10 +2035,10 @@ impl DisplayView { #[cfg(feature = "Graphics")] pub fn SetContentResolution(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetContentResolution)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetContentResolution)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn SetPrimaryPath(&self, path: P0) -> ::windows_core::Result<()> where @@ -2418,19 +2062,17 @@ impl ::windows_core::RuntimeType for DisplayView { } unsafe impl ::windows_core::Interface for DisplayView { type Vtable = IDisplayView_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DisplayView { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DisplayView { const NAME: &'static str = "Windows.Devices.Display.Core.DisplayView"; } -::windows_core::imp::interface_hierarchy!(DisplayView, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DisplayView {} unsafe impl ::core::marker::Sync for DisplayView {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DisplayWireFormat(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DisplayWireFormat, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DisplayWireFormat { pub fn PixelEncoding(&self) -> ::windows_core::Result { let this = self; @@ -2486,11 +2128,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::TryIntoParam>>, + P0: ::windows_core::IntoParam>>, { Self::IDisplayWireFormatStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateWithProperties)(::windows_core::Interface::as_raw(this), extraproperties.try_into_param()?.abi(), pixelencoding, bitsperchannel, colorspace, eotf, hdrmetadata, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateWithProperties)(::windows_core::Interface::as_raw(this), extraproperties.into_param().abi(), pixelencoding, bitsperchannel, colorspace, eotf, hdrmetadata, &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -2509,14 +2151,11 @@ impl ::windows_core::RuntimeType for DisplayWireFormat { } unsafe impl ::windows_core::Interface for DisplayWireFormat { type Vtable = IDisplayWireFormat_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DisplayWireFormat { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DisplayWireFormat { const NAME: &'static str = "Windows.Devices.Display.Core.DisplayWireFormat"; } -::windows_core::imp::interface_hierarchy!(DisplayWireFormat, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DisplayWireFormat {} unsafe impl ::core::marker::Sync for DisplayWireFormat {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Devices/Display/mod.rs b/crates/libs/windows/src/Windows/Devices/Display/mod.rs index 96d749741a..8dfa0d6479 100644 --- a/crates/libs/windows/src/Windows/Devices/Display/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Display/mod.rs @@ -1,16 +1,7 @@ #[cfg(feature = "Devices_Display_Core")] #[doc = "Required features: `\"Devices_Display_Core\"`"] pub mod Core; -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDisplayMonitor(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDisplayMonitor { - type Vtable = IDisplayMonitor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDisplayMonitor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1f6b15d4_1d01_4c51_87e2_6f954a772b59); -} +::windows_core::imp::com_interface!(IDisplayMonitor, IDisplayMonitor_Vtbl, 0x1f6b15d4_1d01_4c51_87e2_6f954a772b59); #[repr(C)] #[doc(hidden)] pub struct IDisplayMonitor_Vtbl { @@ -42,32 +33,14 @@ pub struct IDisplayMonitor_Vtbl { pub MaxAverageFullFrameLuminanceInNits: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows_core::HRESULT, pub GetDescriptor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, descriptorkind: DisplayMonitorDescriptorKind, result_size__: *mut u32, result__: *mut *mut u8) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDisplayMonitor2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDisplayMonitor2 { - type Vtable = IDisplayMonitor2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDisplayMonitor2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x023018e6_cb23_5830_96df_a7bf6e602577); -} +::windows_core::imp::com_interface!(IDisplayMonitor2, IDisplayMonitor2_Vtbl, 0x023018e6_cb23_5830_96df_a7bf6e602577); #[repr(C)] #[doc(hidden)] pub struct IDisplayMonitor2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub IsDolbyVisionSupportedInHdrMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDisplayMonitorStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDisplayMonitorStatics { - type Vtable = IDisplayMonitorStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDisplayMonitorStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6eae698f_a228_4c05_821d_b695d667de8e); -} +::windows_core::imp::com_interface!(IDisplayMonitorStatics, IDisplayMonitorStatics_Vtbl, 0x6eae698f_a228_4c05_821d_b695d667de8e); #[repr(C)] #[doc(hidden)] pub struct IDisplayMonitorStatics_Vtbl { @@ -79,6 +52,7 @@ pub struct IDisplayMonitorStatics_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DisplayMonitor(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DisplayMonitor, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DisplayMonitor { pub fn DeviceId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -225,7 +199,7 @@ impl DisplayMonitor { } } pub fn IsDolbyVisionSupportedInHdrMode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsDolbyVisionSupportedInHdrMode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -260,14 +234,11 @@ impl ::windows_core::RuntimeType for DisplayMonitor { } unsafe impl ::windows_core::Interface for DisplayMonitor { type Vtable = IDisplayMonitor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DisplayMonitor { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DisplayMonitor { const NAME: &'static str = "Windows.Devices.Display.DisplayMonitor"; } -::windows_core::imp::interface_hierarchy!(DisplayMonitor, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DisplayMonitor {} unsafe impl ::core::marker::Sync for DisplayMonitor {} #[repr(transparent)] 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 fe3c20fb18..d0685836e3 100644 --- a/crates/libs/windows/src/Windows/Devices/Enumeration/Pnp/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Enumeration/Pnp/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPnpObject(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPnpObject { - type Vtable = IPnpObject_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPnpObject { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x95c66258_733b_4a8f_93a3_db078ac870c1); -} +::windows_core::imp::com_interface!(IPnpObject, IPnpObject_Vtbl, 0x95c66258_733b_4a8f_93a3_db078ac870c1); #[repr(C)] #[doc(hidden)] pub struct IPnpObject_Vtbl { @@ -20,16 +11,7 @@ pub struct IPnpObject_Vtbl { Properties: usize, pub Update: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, updateinfo: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPnpObjectStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPnpObjectStatics { - type Vtable = IPnpObjectStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPnpObjectStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb3c32a3d_d168_4660_bbf3_a733b14b6e01); -} +::windows_core::imp::com_interface!(IPnpObjectStatics, IPnpObjectStatics_Vtbl, 0xb3c32a3d_d168_4660_bbf3_a733b14b6e01); #[repr(C)] #[doc(hidden)] pub struct IPnpObjectStatics_Vtbl { @@ -55,16 +37,7 @@ pub struct IPnpObjectStatics_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] CreateWatcherAqsFilter: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPnpObjectUpdate(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPnpObjectUpdate { - type Vtable = IPnpObjectUpdate_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPnpObjectUpdate { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6f59e812_001e_4844_bcc6_432886856a17); -} +::windows_core::imp::com_interface!(IPnpObjectUpdate, IPnpObjectUpdate_Vtbl, 0x6f59e812_001e_4844_bcc6_432886856a17); #[repr(C)] #[doc(hidden)] pub struct IPnpObjectUpdate_Vtbl { @@ -76,16 +49,7 @@ pub struct IPnpObjectUpdate_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Properties: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPnpObjectWatcher(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPnpObjectWatcher { - type Vtable = IPnpObjectWatcher_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPnpObjectWatcher { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x83c95ca8_4772_4a7a_aca8_e48c42a89c44); -} +::windows_core::imp::com_interface!(IPnpObjectWatcher, IPnpObjectWatcher_Vtbl, 0x83c95ca8_4772_4a7a_aca8_e48c42a89c44); #[repr(C)] #[doc(hidden)] pub struct IPnpObjectWatcher_Vtbl { @@ -107,6 +71,7 @@ pub struct IPnpObjectWatcher_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PnpObject(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PnpObject, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PnpObject { pub fn Type(&self) -> ::windows_core::Result { let this = self; @@ -142,55 +107,55 @@ impl PnpObject { #[cfg(feature = "Foundation_Collections")] pub fn CreateFromIdAsync(r#type: PnpObjectType, id: &::windows_core::HSTRING, requestedproperties: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn FindAllAsync(r#type: PnpObjectType, requestedproperties: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).FindAllAsync)(::windows_core::Interface::as_raw(this), r#type, requestedproperties.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn FindAllAsyncAqsFilter(r#type: PnpObjectType, requestedproperties: P0, aqsfilter: &::windows_core::HSTRING) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { 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.try_into_param()?.abi(), ::core::mem::transmute_copy(aqsfilter), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn CreateWatcher(r#type: PnpObjectType, requestedproperties: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateWatcher)(::windows_core::Interface::as_raw(this), r#type, requestedproperties.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn CreateWatcherAqsFilter(r#type: PnpObjectType, requestedproperties: P0, aqsfilter: &::windows_core::HSTRING) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { 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.try_into_param()?.abi(), ::core::mem::transmute_copy(aqsfilter), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } #[doc(hidden)] @@ -204,14 +169,11 @@ impl ::windows_core::RuntimeType for PnpObject { } unsafe impl ::windows_core::Interface for PnpObject { type Vtable = IPnpObject_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PnpObject { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PnpObject { const NAME: &'static str = "Windows.Devices.Enumeration.Pnp.PnpObject"; } -::windows_core::imp::interface_hierarchy!(PnpObject, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PnpObject {} unsafe impl ::core::marker::Sync for PnpObject {} #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -220,11 +182,15 @@ unsafe impl ::core::marker::Sync for PnpObject {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PnpObjectCollection(::windows_core::IUnknown); #[cfg(feature = "Foundation_Collections")] +::windows_core::imp::interface_hierarchy!(PnpObjectCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(PnpObjectCollection, super::super::super::Foundation::Collections::IIterable::, super::super::super::Foundation::Collections::IVectorView::); +#[cfg(feature = "Foundation_Collections")] impl PnpObjectCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -277,10 +243,7 @@ impl ::windows_core::RuntimeType for PnpObjectCollection { #[cfg(feature = "Foundation_Collections")] unsafe impl ::windows_core::Interface for PnpObjectCollection { type Vtable = super::super::super::Foundation::Collections::IVectorView_Vtbl; -} -#[cfg(feature = "Foundation_Collections")] -unsafe impl ::windows_core::ComInterface for PnpObjectCollection { - const IID: ::windows_core::GUID = as ::windows_core::ComInterface>::IID; + const IID: ::windows_core::GUID = as ::windows_core::Interface>::IID; } #[cfg(feature = "Foundation_Collections")] impl ::windows_core::RuntimeName for PnpObjectCollection { @@ -299,22 +262,17 @@ impl ::core::iter::IntoIterator for &PnpObjectCollection { type Item = PnpObject; type IntoIter = super::super::super::Foundation::Collections::VectorViewIterator; fn into_iter(self) -> Self::IntoIter { - super::super::super::Foundation::Collections::VectorViewIterator::new(::windows_core::ComInterface::cast(self).ok()) + super::super::super::Foundation::Collections::VectorViewIterator::new(::windows_core::Interface::cast(self).ok()) } } #[cfg(feature = "Foundation_Collections")] -::windows_core::imp::interface_hierarchy!(PnpObjectCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for PnpObjectCollection {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for PnpObjectCollection {} -#[cfg(feature = "Foundation_Collections")] unsafe impl ::core::marker::Send for PnpObjectCollection {} #[cfg(feature = "Foundation_Collections")] unsafe impl ::core::marker::Sync for PnpObjectCollection {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PnpObjectUpdate(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PnpObjectUpdate, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PnpObjectUpdate { pub fn Type(&self) -> ::windows_core::Result { let this = self; @@ -345,19 +303,17 @@ impl ::windows_core::RuntimeType for PnpObjectUpdate { } unsafe impl ::windows_core::Interface for PnpObjectUpdate { type Vtable = IPnpObjectUpdate_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PnpObjectUpdate { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PnpObjectUpdate { const NAME: &'static str = "Windows.Devices.Enumeration.Pnp.PnpObjectUpdate"; } -::windows_core::imp::interface_hierarchy!(PnpObjectUpdate, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PnpObjectUpdate {} unsafe impl ::core::marker::Sync for PnpObjectUpdate {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PnpObjectWatcher(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PnpObjectWatcher, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PnpObjectWatcher { pub fn Added(&self, handler: P0) -> ::windows_core::Result where @@ -450,14 +406,11 @@ impl ::windows_core::RuntimeType for PnpObjectWatcher { } unsafe impl ::windows_core::Interface for PnpObjectWatcher { type Vtable = IPnpObjectWatcher_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PnpObjectWatcher { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PnpObjectWatcher { const NAME: &'static str = "Windows.Devices.Enumeration.Pnp.PnpObjectWatcher"; } -::windows_core::imp::interface_hierarchy!(PnpObjectWatcher, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PnpObjectWatcher {} unsafe impl ::core::marker::Sync for PnpObjectWatcher {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Devices/Enumeration/impl.rs b/crates/libs/windows/src/Windows/Devices/Enumeration/impl.rs index 3cc37bb778..ca83e230b9 100644 --- a/crates/libs/windows/src/Windows/Devices/Enumeration/impl.rs +++ b/crates/libs/windows/src/Windows/Devices/Enumeration/impl.rs @@ -7,6 +7,6 @@ impl IDevicePairingSettings_Vtbl { Self { base__: ::windows_core::IInspectable_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs b/crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs index e4b985167e..8588323447 100644 --- a/crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs @@ -1,48 +1,21 @@ #[cfg(feature = "Devices_Enumeration_Pnp")] #[doc = "Required features: `\"Devices_Enumeration_Pnp\"`"] pub mod Pnp; -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDeviceAccessChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDeviceAccessChangedEventArgs { - type Vtable = IDeviceAccessChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDeviceAccessChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdeda0bcc_4f9d_4f58_9dba_a9bc800408d5); -} +::windows_core::imp::com_interface!(IDeviceAccessChangedEventArgs, IDeviceAccessChangedEventArgs_Vtbl, 0xdeda0bcc_4f9d_4f58_9dba_a9bc800408d5); #[repr(C)] #[doc(hidden)] pub struct IDeviceAccessChangedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut DeviceAccessStatus) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDeviceAccessChangedEventArgs2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDeviceAccessChangedEventArgs2 { - type Vtable = IDeviceAccessChangedEventArgs2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDeviceAccessChangedEventArgs2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x82523262_934b_4b30_a178_adc39f2f2be3); -} +::windows_core::imp::com_interface!(IDeviceAccessChangedEventArgs2, IDeviceAccessChangedEventArgs2_Vtbl, 0x82523262_934b_4b30_a178_adc39f2f2be3); #[repr(C)] #[doc(hidden)] pub struct IDeviceAccessChangedEventArgs2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDeviceAccessInformation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDeviceAccessInformation { - type Vtable = IDeviceAccessInformation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDeviceAccessInformation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0baa9a73_6de5_4915_8ddd_9a0554a6f545); -} +::windows_core::imp::com_interface!(IDeviceAccessInformation, IDeviceAccessInformation_Vtbl, 0x0baa9a73_6de5_4915_8ddd_9a0554a6f545); #[repr(C)] #[doc(hidden)] pub struct IDeviceAccessInformation_Vtbl { @@ -51,16 +24,7 @@ pub struct IDeviceAccessInformation_Vtbl { pub RemoveAccessChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub CurrentStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut DeviceAccessStatus) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDeviceAccessInformationStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDeviceAccessInformationStatics { - type Vtable = IDeviceAccessInformationStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDeviceAccessInformationStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x574bd3d3_5f30_45cd_8a94_724fe5973084); -} +::windows_core::imp::com_interface!(IDeviceAccessInformationStatics, IDeviceAccessInformationStatics_Vtbl, 0x574bd3d3_5f30_45cd_8a94_724fe5973084); #[repr(C)] #[doc(hidden)] pub struct IDeviceAccessInformationStatics_Vtbl { @@ -69,48 +33,21 @@ pub struct IDeviceAccessInformationStatics_Vtbl { pub CreateFromDeviceClassId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, deviceclassid: ::windows_core::GUID, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateFromDeviceClass: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, deviceclass: DeviceClass, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDeviceConnectionChangeTriggerDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDeviceConnectionChangeTriggerDetails { - type Vtable = IDeviceConnectionChangeTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDeviceConnectionChangeTriggerDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb8578c0c_bbc1_484b_bffa_7b31dcc200b2); -} +::windows_core::imp::com_interface!(IDeviceConnectionChangeTriggerDetails, IDeviceConnectionChangeTriggerDetails_Vtbl, 0xb8578c0c_bbc1_484b_bffa_7b31dcc200b2); #[repr(C)] #[doc(hidden)] pub struct IDeviceConnectionChangeTriggerDetails_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub DeviceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDeviceDisconnectButtonClickedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDeviceDisconnectButtonClickedEventArgs { - type Vtable = IDeviceDisconnectButtonClickedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDeviceDisconnectButtonClickedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8e44b56d_f902_4a00_b536_f37992e6a2a7); -} +::windows_core::imp::com_interface!(IDeviceDisconnectButtonClickedEventArgs, IDeviceDisconnectButtonClickedEventArgs_Vtbl, 0x8e44b56d_f902_4a00_b536_f37992e6a2a7); #[repr(C)] #[doc(hidden)] pub struct IDeviceDisconnectButtonClickedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Device: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDeviceInformation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDeviceInformation { - type Vtable = IDeviceInformation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDeviceInformation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaba0fb95_4398_489d_8e44_e6130927011f); -} +::windows_core::imp::com_interface!(IDeviceInformation, IDeviceInformation_Vtbl, 0xaba0fb95_4398_489d_8e44_e6130927011f); #[repr(C)] #[doc(hidden)] pub struct IDeviceInformation_Vtbl { @@ -134,16 +71,7 @@ pub struct IDeviceInformation_Vtbl { #[cfg(not(feature = "Storage_Streams"))] GetGlyphThumbnailAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDeviceInformation2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDeviceInformation2 { - type Vtable = IDeviceInformation2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDeviceInformation2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf156a638_7997_48d9_a10c_269d46533f48); -} +::windows_core::imp::com_interface!(IDeviceInformation2, IDeviceInformation2_Vtbl, 0xf156a638_7997_48d9_a10c_269d46533f48); #[repr(C)] #[doc(hidden)] pub struct IDeviceInformation2_Vtbl { @@ -151,16 +79,7 @@ pub struct IDeviceInformation2_Vtbl { pub Kind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut DeviceInformationKind) -> ::windows_core::HRESULT, pub Pairing: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDeviceInformationCustomPairing(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDeviceInformationCustomPairing { - type Vtable = IDeviceInformationCustomPairing_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDeviceInformationCustomPairing { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x85138c02_4ee6_4914_8370_107a39144c0e); -} +::windows_core::imp::com_interface!(IDeviceInformationCustomPairing, IDeviceInformationCustomPairing_Vtbl, 0x85138c02_4ee6_4914_8370_107a39144c0e); #[repr(C)] #[doc(hidden)] pub struct IDeviceInformationCustomPairing_Vtbl { @@ -171,16 +90,7 @@ pub struct IDeviceInformationCustomPairing_Vtbl { pub PairingRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemovePairingRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDeviceInformationPairing(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDeviceInformationPairing { - type Vtable = IDeviceInformationPairing_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDeviceInformationPairing { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2c4769f5_f684_40d5_8469_e8dbaab70485); -} +::windows_core::imp::com_interface!(IDeviceInformationPairing, IDeviceInformationPairing_Vtbl, 0x2c4769f5_f684_40d5_8469_e8dbaab70485); #[repr(C)] #[doc(hidden)] pub struct IDeviceInformationPairing_Vtbl { @@ -190,16 +100,7 @@ pub struct IDeviceInformationPairing_Vtbl { pub PairAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub PairWithProtectionLevelAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, minprotectionlevel: DevicePairingProtectionLevel, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDeviceInformationPairing2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDeviceInformationPairing2 { - type Vtable = IDeviceInformationPairing2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDeviceInformationPairing2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf68612fd_0aee_4328_85cc_1c742bb1790d); -} +::windows_core::imp::com_interface!(IDeviceInformationPairing2, IDeviceInformationPairing2_Vtbl, 0xf68612fd_0aee_4328_85cc_1c742bb1790d); #[repr(C)] #[doc(hidden)] pub struct IDeviceInformationPairing2_Vtbl { @@ -209,48 +110,21 @@ pub struct IDeviceInformationPairing2_Vtbl { pub PairWithProtectionLevelAndSettingsAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, minprotectionlevel: DevicePairingProtectionLevel, devicepairingsettings: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub UnpairAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDeviceInformationPairingStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDeviceInformationPairingStatics { - type Vtable = IDeviceInformationPairingStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDeviceInformationPairingStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe915c408_36d4_49a1_bf13_514173799b6b); -} +::windows_core::imp::com_interface!(IDeviceInformationPairingStatics, IDeviceInformationPairingStatics_Vtbl, 0xe915c408_36d4_49a1_bf13_514173799b6b); #[repr(C)] #[doc(hidden)] pub struct IDeviceInformationPairingStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub TryRegisterForAllInboundPairingRequests: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pairingkindssupported: DevicePairingKinds, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDeviceInformationPairingStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDeviceInformationPairingStatics2 { - type Vtable = IDeviceInformationPairingStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDeviceInformationPairingStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x04de5372_b7b7_476b_a74f_c5836a704d98); -} +::windows_core::imp::com_interface!(IDeviceInformationPairingStatics2, IDeviceInformationPairingStatics2_Vtbl, 0x04de5372_b7b7_476b_a74f_c5836a704d98); #[repr(C)] #[doc(hidden)] pub struct IDeviceInformationPairingStatics2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub TryRegisterForAllInboundPairingRequestsWithProtectionLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pairingkindssupported: DevicePairingKinds, minprotectionlevel: DevicePairingProtectionLevel, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDeviceInformationStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDeviceInformationStatics { - type Vtable = IDeviceInformationStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDeviceInformationStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc17f100e_3a46_4a78_8013_769dc9b97390); -} +::windows_core::imp::com_interface!(IDeviceInformationStatics, IDeviceInformationStatics_Vtbl, 0xc17f100e_3a46_4a78_8013_769dc9b97390); #[repr(C)] #[doc(hidden)] pub struct IDeviceInformationStatics_Vtbl { @@ -284,16 +158,7 @@ pub struct IDeviceInformationStatics_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] CreateWatcherAqsFilterAndAdditionalProperties: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDeviceInformationStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDeviceInformationStatics2 { - type Vtable = IDeviceInformationStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDeviceInformationStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x493b4f34_a84f_45fd_9167_15d1cb1bd1f9); -} +::windows_core::imp::com_interface!(IDeviceInformationStatics2, IDeviceInformationStatics2_Vtbl, 0x493b4f34_a84f_45fd_9167_15d1cb1bd1f9); #[repr(C)] #[doc(hidden)] pub struct IDeviceInformationStatics2_Vtbl { @@ -312,16 +177,7 @@ pub struct IDeviceInformationStatics2_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] CreateWatcherWithKindAqsFilterAndAdditionalProperties: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDeviceInformationUpdate(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDeviceInformationUpdate { - type Vtable = IDeviceInformationUpdate_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDeviceInformationUpdate { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8f315305_d972_44b7_a37e_9e822c78213b); -} +::windows_core::imp::com_interface!(IDeviceInformationUpdate, IDeviceInformationUpdate_Vtbl, 0x8f315305_d972_44b7_a37e_9e822c78213b); #[repr(C)] #[doc(hidden)] pub struct IDeviceInformationUpdate_Vtbl { @@ -332,32 +188,14 @@ pub struct IDeviceInformationUpdate_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Properties: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDeviceInformationUpdate2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDeviceInformationUpdate2 { - type Vtable = IDeviceInformationUpdate2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDeviceInformationUpdate2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5d9d148c_a873_485e_baa6_aa620788e3cc); -} +::windows_core::imp::com_interface!(IDeviceInformationUpdate2, IDeviceInformationUpdate2_Vtbl, 0x5d9d148c_a873_485e_baa6_aa620788e3cc); #[repr(C)] #[doc(hidden)] pub struct IDeviceInformationUpdate2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Kind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut DeviceInformationKind) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDevicePairingRequestedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDevicePairingRequestedEventArgs { - type Vtable = IDevicePairingRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDevicePairingRequestedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf717fc56_de6b_487f_8376_0180aca69963); -} +::windows_core::imp::com_interface!(IDevicePairingRequestedEventArgs, IDevicePairingRequestedEventArgs_Vtbl, 0xf717fc56_de6b_487f_8376_0180aca69963); #[repr(C)] #[doc(hidden)] pub struct IDevicePairingRequestedEventArgs_Vtbl { @@ -369,16 +207,7 @@ pub struct IDevicePairingRequestedEventArgs_Vtbl { pub AcceptWithPin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pin: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDevicePairingRequestedEventArgs2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDevicePairingRequestedEventArgs2 { - type Vtable = IDevicePairingRequestedEventArgs2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDevicePairingRequestedEventArgs2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc83752d9_e4d3_4db0_a360_a105e437dbdc); -} +::windows_core::imp::com_interface!(IDevicePairingRequestedEventArgs2, IDevicePairingRequestedEventArgs2_Vtbl, 0xc83752d9_e4d3_4db0_a360_a105e437dbdc); #[repr(C)] #[doc(hidden)] pub struct IDevicePairingRequestedEventArgs2_Vtbl { @@ -388,16 +217,7 @@ pub struct IDevicePairingRequestedEventArgs2_Vtbl { #[cfg(not(feature = "Security_Credentials"))] AcceptWithPasswordCredential: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDevicePairingResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDevicePairingResult { - type Vtable = IDevicePairingResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDevicePairingResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x072b02bf_dd95_4025_9b37_de51adba37b7); -} +::windows_core::imp::com_interface!(IDevicePairingResult, IDevicePairingResult_Vtbl, 0x072b02bf_dd95_4025_9b37_de51adba37b7); #[repr(C)] #[doc(hidden)] pub struct IDevicePairingResult_Vtbl { @@ -405,35 +225,18 @@ pub struct IDevicePairingResult_Vtbl { pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut DevicePairingResultStatus) -> ::windows_core::HRESULT, pub ProtectionLevelUsed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut DevicePairingProtectionLevel) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDevicePairingSettings(::windows_core::IUnknown); -impl IDevicePairingSettings {} +::windows_core::imp::com_interface!(IDevicePairingSettings, IDevicePairingSettings_Vtbl, 0x482cb27c_83bb_420e_be51_6602b222de54); ::windows_core::imp::interface_hierarchy!(IDevicePairingSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); +impl IDevicePairingSettings {} impl ::windows_core::RuntimeType for IDevicePairingSettings { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IDevicePairingSettings { - type Vtable = IDevicePairingSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDevicePairingSettings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x482cb27c_83bb_420e_be51_6602b222de54); -} #[repr(C)] #[doc(hidden)] pub struct IDevicePairingSettings_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDevicePicker(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDevicePicker { - type Vtable = IDevicePicker_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDevicePicker { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x84997aa2_034a_4440_8813_7d0bd479bf5a); -} +::windows_core::imp::com_interface!(IDevicePicker, IDevicePicker_Vtbl, 0x84997aa2_034a_4440_8813_7d0bd479bf5a); #[repr(C)] #[doc(hidden)] pub struct IDevicePicker_Vtbl { @@ -463,16 +266,7 @@ pub struct IDevicePicker_Vtbl { pub Hide: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetDisplayStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, device: *mut ::core::ffi::c_void, status: ::std::mem::MaybeUninit<::windows_core::HSTRING>, options: DevicePickerDisplayStatusOptions) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDevicePickerAppearance(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDevicePickerAppearance { - type Vtable = IDevicePickerAppearance_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDevicePickerAppearance { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe69a12c6_e627_4ed8_9b6c_460af445e56d); -} +::windows_core::imp::com_interface!(IDevicePickerAppearance, IDevicePickerAppearance_Vtbl, 0xe69a12c6_e627_4ed8_9b6c_460af445e56d); #[repr(C)] #[doc(hidden)] pub struct IDevicePickerAppearance_Vtbl { @@ -528,16 +322,7 @@ pub struct IDevicePickerAppearance_Vtbl { #[cfg(not(feature = "UI"))] SetSelectedAccentColor: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDevicePickerFilter(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDevicePickerFilter { - type Vtable = IDevicePickerFilter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDevicePickerFilter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x91db92a2_57cb_48f1_9b59_a59b7a1f02a2); -} +::windows_core::imp::com_interface!(IDevicePickerFilter, IDevicePickerFilter_Vtbl, 0x91db92a2_57cb_48f1_9b59_a59b7a1f02a2); #[repr(C)] #[doc(hidden)] pub struct IDevicePickerFilter_Vtbl { @@ -551,48 +336,21 @@ pub struct IDevicePickerFilter_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] SupportedDeviceSelectors: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDeviceSelectedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDeviceSelectedEventArgs { - type Vtable = IDeviceSelectedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDeviceSelectedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x269edade_1d2f_4940_8402_4156b81d3c77); -} +::windows_core::imp::com_interface!(IDeviceSelectedEventArgs, IDeviceSelectedEventArgs_Vtbl, 0x269edade_1d2f_4940_8402_4156b81d3c77); #[repr(C)] #[doc(hidden)] pub struct IDeviceSelectedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub SelectedDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDeviceUnpairingResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDeviceUnpairingResult { - type Vtable = IDeviceUnpairingResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDeviceUnpairingResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x66f44ad3_79d9_444b_92cf_a92ef72571c7); -} +::windows_core::imp::com_interface!(IDeviceUnpairingResult, IDeviceUnpairingResult_Vtbl, 0x66f44ad3_79d9_444b_92cf_a92ef72571c7); #[repr(C)] #[doc(hidden)] pub struct IDeviceUnpairingResult_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut DeviceUnpairingResultStatus) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDeviceWatcher(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDeviceWatcher { - type Vtable = IDeviceWatcher_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDeviceWatcher { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc9eab97d_8f6b_4f96_a9f4_abc814e22271); -} +::windows_core::imp::com_interface!(IDeviceWatcher, IDeviceWatcher_Vtbl, 0xc9eab97d_8f6b_4f96_a9f4_abc814e22271); #[repr(C)] #[doc(hidden)] pub struct IDeviceWatcher_Vtbl { @@ -611,16 +369,7 @@ pub struct IDeviceWatcher_Vtbl { pub Start: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Stop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDeviceWatcher2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDeviceWatcher2 { - type Vtable = IDeviceWatcher2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDeviceWatcher2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xff08456e_ed14_49e9_9a69_8117c54ae971); -} +::windows_core::imp::com_interface!(IDeviceWatcher2, IDeviceWatcher2_Vtbl, 0xff08456e_ed14_49e9_9a69_8117c54ae971); #[repr(C)] #[doc(hidden)] pub struct IDeviceWatcher2_Vtbl { @@ -630,16 +379,7 @@ pub struct IDeviceWatcher2_Vtbl { #[cfg(not(all(feature = "ApplicationModel_Background", feature = "Foundation_Collections")))] GetBackgroundTrigger: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDeviceWatcherEvent(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDeviceWatcherEvent { - type Vtable = IDeviceWatcherEvent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDeviceWatcherEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x74aa9c0b_1dbd_47fd_b635_3cc556d0ff8b); -} +::windows_core::imp::com_interface!(IDeviceWatcherEvent, IDeviceWatcherEvent_Vtbl, 0x74aa9c0b_1dbd_47fd_b635_3cc556d0ff8b); #[repr(C)] #[doc(hidden)] pub struct IDeviceWatcherEvent_Vtbl { @@ -648,16 +388,7 @@ pub struct IDeviceWatcherEvent_Vtbl { pub DeviceInformation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub DeviceInformationUpdate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDeviceWatcherTriggerDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDeviceWatcherTriggerDetails { - type Vtable = IDeviceWatcherTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDeviceWatcherTriggerDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x38808119_4cb7_4e57_a56d_776d07cbfef9); -} +::windows_core::imp::com_interface!(IDeviceWatcherTriggerDetails, IDeviceWatcherTriggerDetails_Vtbl, 0x38808119_4cb7_4e57_a56d_776d07cbfef9); #[repr(C)] #[doc(hidden)] pub struct IDeviceWatcherTriggerDetails_Vtbl { @@ -667,16 +398,7 @@ pub struct IDeviceWatcherTriggerDetails_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] DeviceWatcherEvents: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnclosureLocation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnclosureLocation { - type Vtable = IEnclosureLocation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnclosureLocation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x42340a27_5810_459c_aabb_c65e1f813ecf); -} +::windows_core::imp::com_interface!(IEnclosureLocation, IEnclosureLocation_Vtbl, 0x42340a27_5810_459c_aabb_c65e1f813ecf); #[repr(C)] #[doc(hidden)] pub struct IEnclosureLocation_Vtbl { @@ -685,16 +407,7 @@ pub struct IEnclosureLocation_Vtbl { pub InLid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub Panel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut Panel) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnclosureLocation2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnclosureLocation2 { - type Vtable = IEnclosureLocation2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnclosureLocation2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2885995b_e07d_485d_8a9e_bdf29aef4f66); -} +::windows_core::imp::com_interface!(IEnclosureLocation2, IEnclosureLocation2_Vtbl, 0x2885995b_e07d_485d_8a9e_bdf29aef4f66); #[repr(C)] #[doc(hidden)] pub struct IEnclosureLocation2_Vtbl { @@ -704,6 +417,7 @@ pub struct IEnclosureLocation2_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DeviceAccessChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DeviceAccessChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DeviceAccessChangedEventArgs { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -713,7 +427,7 @@ impl DeviceAccessChangedEventArgs { } } pub fn Id(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Id)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -725,19 +439,17 @@ impl ::windows_core::RuntimeType for DeviceAccessChangedEventArgs { } unsafe impl ::windows_core::Interface for DeviceAccessChangedEventArgs { type Vtable = IDeviceAccessChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DeviceAccessChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DeviceAccessChangedEventArgs { const NAME: &'static str = "Windows.Devices.Enumeration.DeviceAccessChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(DeviceAccessChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DeviceAccessChangedEventArgs {} unsafe impl ::core::marker::Sync for DeviceAccessChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DeviceAccessInformation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DeviceAccessInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DeviceAccessInformation { pub fn AccessChanged(&self, handler: P0) -> ::windows_core::Result where @@ -789,19 +501,17 @@ impl ::windows_core::RuntimeType for DeviceAccessInformation { } unsafe impl ::windows_core::Interface for DeviceAccessInformation { type Vtable = IDeviceAccessInformation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DeviceAccessInformation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DeviceAccessInformation { const NAME: &'static str = "Windows.Devices.Enumeration.DeviceAccessInformation"; } -::windows_core::imp::interface_hierarchy!(DeviceAccessInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DeviceAccessInformation {} unsafe impl ::core::marker::Sync for DeviceAccessInformation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DeviceConnectionChangeTriggerDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DeviceConnectionChangeTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DeviceConnectionChangeTriggerDetails { pub fn DeviceId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -816,19 +526,17 @@ impl ::windows_core::RuntimeType for DeviceConnectionChangeTriggerDetails { } unsafe impl ::windows_core::Interface for DeviceConnectionChangeTriggerDetails { type Vtable = IDeviceConnectionChangeTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DeviceConnectionChangeTriggerDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DeviceConnectionChangeTriggerDetails { const NAME: &'static str = "Windows.Devices.Enumeration.DeviceConnectionChangeTriggerDetails"; } -::windows_core::imp::interface_hierarchy!(DeviceConnectionChangeTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DeviceConnectionChangeTriggerDetails {} unsafe impl ::core::marker::Sync for DeviceConnectionChangeTriggerDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DeviceDisconnectButtonClickedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DeviceDisconnectButtonClickedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DeviceDisconnectButtonClickedEventArgs { pub fn Device(&self) -> ::windows_core::Result { let this = self; @@ -843,19 +551,17 @@ impl ::windows_core::RuntimeType for DeviceDisconnectButtonClickedEventArgs { } unsafe impl ::windows_core::Interface for DeviceDisconnectButtonClickedEventArgs { type Vtable = IDeviceDisconnectButtonClickedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DeviceDisconnectButtonClickedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DeviceDisconnectButtonClickedEventArgs { const NAME: &'static str = "Windows.Devices.Enumeration.DeviceDisconnectButtonClickedEventArgs"; } -::windows_core::imp::interface_hierarchy!(DeviceDisconnectButtonClickedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DeviceDisconnectButtonClickedEventArgs {} unsafe impl ::core::marker::Sync for DeviceDisconnectButtonClickedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DeviceInformation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DeviceInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DeviceInformation { pub fn Id(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -927,14 +633,14 @@ impl DeviceInformation { } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Pairing(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Pairing)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -950,11 +656,11 @@ impl DeviceInformation { #[cfg(feature = "Foundation_Collections")] pub fn CreateFromIdAsyncAdditionalProperties(deviceid: &::windows_core::HSTRING, additionalproperties: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateFromIdAsyncAdditionalProperties)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(deviceid), additionalproperties.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -985,11 +691,11 @@ impl DeviceInformation { #[cfg(feature = "Foundation_Collections")] pub fn FindAllAsyncAqsFilterAndAdditionalProperties(aqsfilter: &::windows_core::HSTRING, additionalproperties: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).FindAllAsyncAqsFilterAndAdditionalProperties)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(aqsfilter), additionalproperties.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn CreateWatcher() -> ::windows_core::Result { @@ -1014,11 +720,11 @@ impl DeviceInformation { #[cfg(feature = "Foundation_Collections")] pub fn CreateWatcherAqsFilterAndAdditionalProperties(aqsfilter: &::windows_core::HSTRING, additionalproperties: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateWatcherAqsFilterAndAdditionalProperties)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(aqsfilter), additionalproperties.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn GetAqsFilterFromDeviceClass(deviceclass: DeviceClass) -> ::windows_core::Result<::windows_core::HSTRING> { @@ -1031,33 +737,33 @@ impl DeviceInformation { #[cfg(feature = "Foundation_Collections")] pub fn CreateFromIdAsyncWithKindAndAdditionalProperties(deviceid: &::windows_core::HSTRING, additionalproperties: P0, kind: DeviceInformationKind) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { 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.try_into_param()?.abi(), kind, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateFromIdAsyncWithKindAndAdditionalProperties)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(deviceid), additionalproperties.into_param().abi(), kind, &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn FindAllAsyncWithKindAqsFilterAndAdditionalProperties(aqsfilter: &::windows_core::HSTRING, additionalproperties: P0, kind: DeviceInformationKind) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { 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.try_into_param()?.abi(), kind, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).FindAllAsyncWithKindAqsFilterAndAdditionalProperties)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(aqsfilter), additionalproperties.into_param().abi(), kind, &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn CreateWatcherWithKindAqsFilterAndAdditionalProperties(aqsfilter: &::windows_core::HSTRING, additionalproperties: P0, kind: DeviceInformationKind) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { 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.try_into_param()?.abi(), kind, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateWatcherWithKindAqsFilterAndAdditionalProperties)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(aqsfilter), additionalproperties.into_param().abi(), kind, &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -1076,14 +782,11 @@ impl ::windows_core::RuntimeType for DeviceInformation { } unsafe impl ::windows_core::Interface for DeviceInformation { type Vtable = IDeviceInformation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DeviceInformation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DeviceInformation { const NAME: &'static str = "Windows.Devices.Enumeration.DeviceInformation"; } -::windows_core::imp::interface_hierarchy!(DeviceInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DeviceInformation {} unsafe impl ::core::marker::Sync for DeviceInformation {} #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -1092,11 +795,15 @@ unsafe impl ::core::marker::Sync for DeviceInformation {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DeviceInformationCollection(::windows_core::IUnknown); #[cfg(feature = "Foundation_Collections")] +::windows_core::imp::interface_hierarchy!(DeviceInformationCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(DeviceInformationCollection, super::super::Foundation::Collections::IIterable::, super::super::Foundation::Collections::IVectorView::); +#[cfg(feature = "Foundation_Collections")] impl DeviceInformationCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1149,10 +856,7 @@ impl ::windows_core::RuntimeType for DeviceInformationCollection { #[cfg(feature = "Foundation_Collections")] unsafe impl ::windows_core::Interface for DeviceInformationCollection { type Vtable = super::super::Foundation::Collections::IVectorView_Vtbl; -} -#[cfg(feature = "Foundation_Collections")] -unsafe impl ::windows_core::ComInterface for DeviceInformationCollection { - const IID: ::windows_core::GUID = as ::windows_core::ComInterface>::IID; + const IID: ::windows_core::GUID = as ::windows_core::Interface>::IID; } #[cfg(feature = "Foundation_Collections")] impl ::windows_core::RuntimeName for DeviceInformationCollection { @@ -1171,22 +875,17 @@ impl ::core::iter::IntoIterator for &DeviceInformationCollection { type Item = DeviceInformation; type IntoIter = super::super::Foundation::Collections::VectorViewIterator; fn into_iter(self) -> Self::IntoIter { - super::super::Foundation::Collections::VectorViewIterator::new(::windows_core::ComInterface::cast(self).ok()) + super::super::Foundation::Collections::VectorViewIterator::new(::windows_core::Interface::cast(self).ok()) } } #[cfg(feature = "Foundation_Collections")] -::windows_core::imp::interface_hierarchy!(DeviceInformationCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for DeviceInformationCollection {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for DeviceInformationCollection {} -#[cfg(feature = "Foundation_Collections")] unsafe impl ::core::marker::Send for DeviceInformationCollection {} #[cfg(feature = "Foundation_Collections")] unsafe impl ::core::marker::Sync for DeviceInformationCollection {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DeviceInformationCustomPairing(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DeviceInformationCustomPairing, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DeviceInformationCustomPairing { pub fn PairAsync(&self, pairingkindssupported: DevicePairingKinds) -> ::windows_core::Result> { let this = self; @@ -1204,12 +903,12 @@ impl DeviceInformationCustomPairing { } pub fn PairWithProtectionLevelAndSettingsAsync(&self, pairingkindssupported: DevicePairingKinds, minprotectionlevel: DevicePairingProtectionLevel, devicepairingsettings: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).PairWithProtectionLevelAndSettingsAsync)(::windows_core::Interface::as_raw(this), pairingkindssupported, minprotectionlevel, devicepairingsettings.into_param().abi(), &mut result__).from_abi(result__) } } pub fn PairingRequested(&self, handler: P0) -> ::windows_core::Result @@ -1232,19 +931,17 @@ impl ::windows_core::RuntimeType for DeviceInformationCustomPairing { } unsafe impl ::windows_core::Interface for DeviceInformationCustomPairing { type Vtable = IDeviceInformationCustomPairing_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DeviceInformationCustomPairing { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DeviceInformationCustomPairing { const NAME: &'static str = "Windows.Devices.Enumeration.DeviceInformationCustomPairing"; } -::windows_core::imp::interface_hierarchy!(DeviceInformationCustomPairing, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DeviceInformationCustomPairing {} unsafe impl ::core::marker::Sync for DeviceInformationCustomPairing {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DeviceInformationPairing(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DeviceInformationPairing, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DeviceInformationPairing { pub fn IsPaired(&self) -> ::windows_core::Result { let this = self; @@ -1275,14 +972,14 @@ impl DeviceInformationPairing { } } pub fn ProtectionLevel(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ProtectionLevel)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Custom(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Custom)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1290,16 +987,16 @@ impl DeviceInformationPairing { } pub fn PairWithProtectionLevelAndSettingsAsync(&self, minprotectionlevel: DevicePairingProtectionLevel, devicepairingsettings: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).PairWithProtectionLevelAndSettingsAsync)(::windows_core::Interface::as_raw(this), minprotectionlevel, devicepairingsettings.into_param().abi(), &mut result__).from_abi(result__) } } pub fn UnpairAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).UnpairAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1333,19 +1030,17 @@ impl ::windows_core::RuntimeType for DeviceInformationPairing { } unsafe impl ::windows_core::Interface for DeviceInformationPairing { type Vtable = IDeviceInformationPairing_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DeviceInformationPairing { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DeviceInformationPairing { const NAME: &'static str = "Windows.Devices.Enumeration.DeviceInformationPairing"; } -::windows_core::imp::interface_hierarchy!(DeviceInformationPairing, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DeviceInformationPairing {} unsafe impl ::core::marker::Sync for DeviceInformationPairing {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DeviceInformationUpdate(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DeviceInformationUpdate, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DeviceInformationUpdate { pub fn Id(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1364,7 +1059,7 @@ impl DeviceInformationUpdate { } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1376,19 +1071,17 @@ impl ::windows_core::RuntimeType for DeviceInformationUpdate { } unsafe impl ::windows_core::Interface for DeviceInformationUpdate { type Vtable = IDeviceInformationUpdate_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DeviceInformationUpdate { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DeviceInformationUpdate { const NAME: &'static str = "Windows.Devices.Enumeration.DeviceInformationUpdate"; } -::windows_core::imp::interface_hierarchy!(DeviceInformationUpdate, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DeviceInformationUpdate {} unsafe impl ::core::marker::Sync for DeviceInformationUpdate {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DevicePairingRequestedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DevicePairingRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DevicePairingRequestedEventArgs { pub fn DeviceInformation(&self) -> ::windows_core::Result { let this = self; @@ -1432,7 +1125,7 @@ impl DevicePairingRequestedEventArgs { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } } @@ -1441,19 +1134,17 @@ impl ::windows_core::RuntimeType for DevicePairingRequestedEventArgs { } unsafe impl ::windows_core::Interface for DevicePairingRequestedEventArgs { type Vtable = IDevicePairingRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DevicePairingRequestedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DevicePairingRequestedEventArgs { const NAME: &'static str = "Windows.Devices.Enumeration.DevicePairingRequestedEventArgs"; } -::windows_core::imp::interface_hierarchy!(DevicePairingRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DevicePairingRequestedEventArgs {} unsafe impl ::core::marker::Sync for DevicePairingRequestedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DevicePairingResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DevicePairingResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DevicePairingResult { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -1475,19 +1166,17 @@ impl ::windows_core::RuntimeType for DevicePairingResult { } unsafe impl ::windows_core::Interface for DevicePairingResult { type Vtable = IDevicePairingResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DevicePairingResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DevicePairingResult { const NAME: &'static str = "Windows.Devices.Enumeration.DevicePairingResult"; } -::windows_core::imp::interface_hierarchy!(DevicePairingResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DevicePairingResult {} unsafe impl ::core::marker::Sync for DevicePairingResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DevicePicker(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DevicePicker, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DevicePicker { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1604,19 +1293,17 @@ impl ::windows_core::RuntimeType for DevicePicker { } unsafe impl ::windows_core::Interface for DevicePicker { type Vtable = IDevicePicker_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DevicePicker { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DevicePicker { const NAME: &'static str = "Windows.Devices.Enumeration.DevicePicker"; } -::windows_core::imp::interface_hierarchy!(DevicePicker, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DevicePicker {} unsafe impl ::core::marker::Sync for DevicePicker {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DevicePickerAppearance(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DevicePickerAppearance, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DevicePickerAppearance { pub fn Title(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1725,19 +1412,17 @@ impl ::windows_core::RuntimeType for DevicePickerAppearance { } unsafe impl ::windows_core::Interface for DevicePickerAppearance { type Vtable = IDevicePickerAppearance_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DevicePickerAppearance { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DevicePickerAppearance { const NAME: &'static str = "Windows.Devices.Enumeration.DevicePickerAppearance"; } -::windows_core::imp::interface_hierarchy!(DevicePickerAppearance, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DevicePickerAppearance {} unsafe impl ::core::marker::Sync for DevicePickerAppearance {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DevicePickerFilter(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DevicePickerFilter, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DevicePickerFilter { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -1763,19 +1448,17 @@ impl ::windows_core::RuntimeType for DevicePickerFilter { } unsafe impl ::windows_core::Interface for DevicePickerFilter { type Vtable = IDevicePickerFilter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DevicePickerFilter { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DevicePickerFilter { const NAME: &'static str = "Windows.Devices.Enumeration.DevicePickerFilter"; } -::windows_core::imp::interface_hierarchy!(DevicePickerFilter, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DevicePickerFilter {} unsafe impl ::core::marker::Sync for DevicePickerFilter {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DeviceSelectedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DeviceSelectedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DeviceSelectedEventArgs { pub fn SelectedDevice(&self) -> ::windows_core::Result { let this = self; @@ -1790,14 +1473,11 @@ impl ::windows_core::RuntimeType for DeviceSelectedEventArgs { } unsafe impl ::windows_core::Interface for DeviceSelectedEventArgs { type Vtable = IDeviceSelectedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DeviceSelectedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DeviceSelectedEventArgs { const NAME: &'static str = "Windows.Devices.Enumeration.DeviceSelectedEventArgs"; } -::windows_core::imp::interface_hierarchy!(DeviceSelectedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DeviceSelectedEventArgs {} unsafe impl ::core::marker::Sync for DeviceSelectedEventArgs {} #[doc = "Required features: `\"Storage_Streams\"`"] @@ -1806,15 +1486,19 @@ unsafe impl ::core::marker::Sync for DeviceSelectedEventArgs {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DeviceThumbnail(::windows_core::IUnknown); #[cfg(feature = "Storage_Streams")] +::windows_core::imp::interface_hierarchy!(DeviceThumbnail, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Storage_Streams")] +::windows_core::imp::required_hierarchy!(DeviceThumbnail, super::super::Foundation::IClosable, super::super::Storage::Streams::IContentTypeProvider, super::super::Storage::Streams::IInputStream, super::super::Storage::Streams::IOutputStream, super::super::Storage::Streams::IRandomAccessStream, super::super::Storage::Streams::IRandomAccessStreamWithContentType); +#[cfg(feature = "Storage_Streams")] impl DeviceThumbnail { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn ContentType(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ContentType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1824,30 +1508,30 @@ 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::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), count, options, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ReadAsync)(::windows_core::Interface::as_raw(this), buffer.into_param().abi(), count, options, &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn WriteAsync(&self, buffer: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).WriteAsync)(::windows_core::Interface::as_raw(this), buffer.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn FlushAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FlushAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1856,7 +1540,7 @@ impl DeviceThumbnail { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn Size(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Size)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1865,13 +1549,13 @@ impl DeviceThumbnail { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn SetSize(&self, value: u64) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetSize)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn GetInputStreamAt(&self, position: u64) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetInputStreamAt)(::windows_core::Interface::as_raw(this), position, &mut result__).from_abi(result__) @@ -1880,7 +1564,7 @@ impl DeviceThumbnail { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn GetOutputStreamAt(&self, position: u64) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetOutputStreamAt)(::windows_core::Interface::as_raw(this), position, &mut result__).from_abi(result__) @@ -1889,7 +1573,7 @@ impl DeviceThumbnail { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn Position(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Position)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1898,13 +1582,13 @@ impl DeviceThumbnail { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn Seek(&self, position: u64) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Seek)(::windows_core::Interface::as_raw(this), position).ok() } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn CloneStream(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CloneStream)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1913,7 +1597,7 @@ impl DeviceThumbnail { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn CanRead(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CanRead)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1922,7 +1606,7 @@ impl DeviceThumbnail { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn CanWrite(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CanWrite)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1936,36 +1620,20 @@ impl ::windows_core::RuntimeType for DeviceThumbnail { #[cfg(feature = "Storage_Streams")] unsafe impl ::windows_core::Interface for DeviceThumbnail { type Vtable = super::super::Storage::Streams::IRandomAccessStreamWithContentType_Vtbl; -} -#[cfg(feature = "Storage_Streams")] -unsafe impl ::windows_core::ComInterface for DeviceThumbnail { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "Storage_Streams")] impl ::windows_core::RuntimeName for DeviceThumbnail { const NAME: &'static str = "Windows.Devices.Enumeration.DeviceThumbnail"; } #[cfg(feature = "Storage_Streams")] -::windows_core::imp::interface_hierarchy!(DeviceThumbnail, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Storage_Streams")] -impl ::windows_core::CanTryInto for DeviceThumbnail {} -#[cfg(feature = "Storage_Streams")] -impl ::windows_core::CanTryInto for DeviceThumbnail {} -#[cfg(feature = "Storage_Streams")] -impl ::windows_core::CanTryInto for DeviceThumbnail {} -#[cfg(feature = "Storage_Streams")] -impl ::windows_core::CanTryInto for DeviceThumbnail {} -#[cfg(feature = "Storage_Streams")] -impl ::windows_core::CanTryInto for DeviceThumbnail {} -#[cfg(feature = "Storage_Streams")] -impl ::windows_core::CanTryInto for DeviceThumbnail {} -#[cfg(feature = "Storage_Streams")] unsafe impl ::core::marker::Send for DeviceThumbnail {} #[cfg(feature = "Storage_Streams")] unsafe impl ::core::marker::Sync for DeviceThumbnail {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DeviceUnpairingResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DeviceUnpairingResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DeviceUnpairingResult { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -1980,19 +1648,17 @@ impl ::windows_core::RuntimeType for DeviceUnpairingResult { } unsafe impl ::windows_core::Interface for DeviceUnpairingResult { type Vtable = IDeviceUnpairingResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DeviceUnpairingResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DeviceUnpairingResult { const NAME: &'static str = "Windows.Devices.Enumeration.DeviceUnpairingResult"; } -::windows_core::imp::interface_hierarchy!(DeviceUnpairingResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DeviceUnpairingResult {} unsafe impl ::core::marker::Sync for DeviceUnpairingResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DeviceWatcher(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DeviceWatcher, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DeviceWatcher { pub fn Added(&self, handler: P0) -> ::windows_core::Result where @@ -2083,12 +1749,12 @@ impl DeviceWatcher { #[cfg(all(feature = "ApplicationModel_Background", feature = "Foundation_Collections"))] pub fn GetBackgroundTrigger(&self, requestedeventkinds: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).GetBackgroundTrigger)(::windows_core::Interface::as_raw(this), requestedeventkinds.into_param().abi(), &mut result__).from_abi(result__) } } } @@ -2097,19 +1763,17 @@ impl ::windows_core::RuntimeType for DeviceWatcher { } unsafe impl ::windows_core::Interface for DeviceWatcher { type Vtable = IDeviceWatcher_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DeviceWatcher { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DeviceWatcher { const NAME: &'static str = "Windows.Devices.Enumeration.DeviceWatcher"; } -::windows_core::imp::interface_hierarchy!(DeviceWatcher, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DeviceWatcher {} unsafe impl ::core::marker::Sync for DeviceWatcher {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DeviceWatcherEvent(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DeviceWatcherEvent, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DeviceWatcherEvent { pub fn Kind(&self) -> ::windows_core::Result { let this = self; @@ -2138,19 +1802,17 @@ impl ::windows_core::RuntimeType for DeviceWatcherEvent { } unsafe impl ::windows_core::Interface for DeviceWatcherEvent { type Vtable = IDeviceWatcherEvent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DeviceWatcherEvent { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DeviceWatcherEvent { const NAME: &'static str = "Windows.Devices.Enumeration.DeviceWatcherEvent"; } -::windows_core::imp::interface_hierarchy!(DeviceWatcherEvent, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DeviceWatcherEvent {} unsafe impl ::core::marker::Sync for DeviceWatcherEvent {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DeviceWatcherTriggerDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DeviceWatcherTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DeviceWatcherTriggerDetails { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -2167,19 +1829,17 @@ impl ::windows_core::RuntimeType for DeviceWatcherTriggerDetails { } unsafe impl ::windows_core::Interface for DeviceWatcherTriggerDetails { type Vtable = IDeviceWatcherTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DeviceWatcherTriggerDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DeviceWatcherTriggerDetails { const NAME: &'static str = "Windows.Devices.Enumeration.DeviceWatcherTriggerDetails"; } -::windows_core::imp::interface_hierarchy!(DeviceWatcherTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DeviceWatcherTriggerDetails {} unsafe impl ::core::marker::Sync for DeviceWatcherTriggerDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EnclosureLocation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EnclosureLocation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EnclosureLocation { pub fn InDock(&self) -> ::windows_core::Result { let this = self; @@ -2203,7 +1863,7 @@ impl EnclosureLocation { } } pub fn RotationAngleInDegreesClockwise(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RotationAngleInDegreesClockwise)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2215,14 +1875,11 @@ impl ::windows_core::RuntimeType for EnclosureLocation { } unsafe impl ::windows_core::Interface for EnclosureLocation { type Vtable = IEnclosureLocation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EnclosureLocation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EnclosureLocation { const NAME: &'static str = "Windows.Devices.Enumeration.EnclosureLocation"; } -::windows_core::imp::interface_hierarchy!(EnclosureLocation, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EnclosureLocation {} unsafe impl ::core::marker::Sync for EnclosureLocation {} #[repr(transparent)] 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 ae101118ca..d154eefd44 100644 --- a/crates/libs/windows/src/Windows/Devices/Geolocation/Geofencing/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Geolocation/Geofencing/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGeofence(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGeofence { - type Vtable = IGeofence_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGeofence { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9c090823_edb8_47e0_8245_5bf61d321f2d); -} +::windows_core::imp::com_interface!(IGeofence, IGeofence_Vtbl, 0x9c090823_edb8_47e0_8245_5bf61d321f2d); #[repr(C)] #[doc(hidden)] pub struct IGeofence_Vtbl { @@ -20,16 +11,7 @@ pub struct IGeofence_Vtbl { pub Geoshape: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SingleUse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGeofenceFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGeofenceFactory { - type Vtable = IGeofenceFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGeofenceFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x841f624b_325f_4b90_bca7_2b8022a93796); -} +::windows_core::imp::com_interface!(IGeofenceFactory, IGeofenceFactory_Vtbl, 0x841f624b_325f_4b90_bca7_2b8022a93796); #[repr(C)] #[doc(hidden)] pub struct IGeofenceFactory_Vtbl { @@ -39,16 +21,7 @@ pub struct IGeofenceFactory_Vtbl { pub CreateWithMonitorStatesAndDwellTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: ::std::mem::MaybeUninit<::windows_core::HSTRING>, geoshape: *mut ::core::ffi::c_void, monitoredstates: MonitoredGeofenceStates, singleuse: bool, dwelltime: super::super::super::Foundation::TimeSpan, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateWithMonitorStatesDwellTimeStartTimeAndDuration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: ::std::mem::MaybeUninit<::windows_core::HSTRING>, geoshape: *mut ::core::ffi::c_void, monitoredstates: MonitoredGeofenceStates, singleuse: bool, dwelltime: super::super::super::Foundation::TimeSpan, starttime: super::super::super::Foundation::DateTime, duration: super::super::super::Foundation::TimeSpan, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGeofenceMonitor(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGeofenceMonitor { - type Vtable = IGeofenceMonitor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGeofenceMonitor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4c0f5f78_1c1f_4621_bbbd_833b92247226); -} +::windows_core::imp::com_interface!(IGeofenceMonitor, IGeofenceMonitor_Vtbl, 0x4c0f5f78_1c1f_4621_bbbd_833b92247226); #[repr(C)] #[doc(hidden)] pub struct IGeofenceMonitor_Vtbl { @@ -68,32 +41,14 @@ pub struct IGeofenceMonitor_Vtbl { pub StatusChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventhandler: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveStatusChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGeofenceMonitorStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGeofenceMonitorStatics { - type Vtable = IGeofenceMonitorStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGeofenceMonitorStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2dd32fcf_7e75_4899_ace3_2bd0a65cce06); -} +::windows_core::imp::com_interface!(IGeofenceMonitorStatics, IGeofenceMonitorStatics_Vtbl, 0x2dd32fcf_7e75_4899_ace3_2bd0a65cce06); #[repr(C)] #[doc(hidden)] pub struct IGeofenceMonitorStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Current: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGeofenceStateChangeReport(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGeofenceStateChangeReport { - type Vtable = IGeofenceStateChangeReport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGeofenceStateChangeReport { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9a243c18_2464_4c89_be05_b3ffff5babc5); -} +::windows_core::imp::com_interface!(IGeofenceStateChangeReport, IGeofenceStateChangeReport_Vtbl, 0x9a243c18_2464_4c89_be05_b3ffff5babc5); #[repr(C)] #[doc(hidden)] pub struct IGeofenceStateChangeReport_Vtbl { @@ -106,6 +61,7 @@ pub struct IGeofenceStateChangeReport_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Geofence(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Geofence, ::windows_core::IUnknown, ::windows_core::IInspectable); impl Geofence { pub fn StartTime(&self) -> ::windows_core::Result { let this = self; @@ -158,38 +114,38 @@ impl Geofence { } pub fn Create(id: &::windows_core::HSTRING, geoshape: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).Create)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(id), geoshape.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn CreateWithMonitorStates(id: &::windows_core::HSTRING, geoshape: P0, monitoredstates: MonitoredGeofenceStates, singleuse: bool) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), monitoredstates, singleuse, &mut result__).from_abi(result__) + (::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__).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::TryIntoParam, + P0: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), monitoredstates, singleuse, dwelltime, &mut result__).from_abi(result__) + (::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__).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::TryIntoParam, + P0: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), monitoredstates, singleuse, dwelltime, starttime, duration, &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } #[doc(hidden)] @@ -203,19 +159,17 @@ impl ::windows_core::RuntimeType for Geofence { } unsafe impl ::windows_core::Interface for Geofence { type Vtable = IGeofence_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Geofence { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Geofence { const NAME: &'static str = "Windows.Devices.Geolocation.Geofencing.Geofence"; } -::windows_core::imp::interface_hierarchy!(Geofence, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for Geofence {} unsafe impl ::core::marker::Sync for Geofence {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GeofenceMonitor(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GeofenceMonitor, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GeofenceMonitor { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -294,19 +248,17 @@ impl ::windows_core::RuntimeType for GeofenceMonitor { } unsafe impl ::windows_core::Interface for GeofenceMonitor { type Vtable = IGeofenceMonitor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GeofenceMonitor { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GeofenceMonitor { const NAME: &'static str = "Windows.Devices.Geolocation.Geofencing.GeofenceMonitor"; } -::windows_core::imp::interface_hierarchy!(GeofenceMonitor, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GeofenceMonitor {} unsafe impl ::core::marker::Sync for GeofenceMonitor {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GeofenceStateChangeReport(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GeofenceStateChangeReport, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GeofenceStateChangeReport { pub fn NewState(&self) -> ::windows_core::Result { let this = self; @@ -342,14 +294,11 @@ impl ::windows_core::RuntimeType for GeofenceStateChangeReport { } unsafe impl ::windows_core::Interface for GeofenceStateChangeReport { type Vtable = IGeofenceStateChangeReport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GeofenceStateChangeReport { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GeofenceStateChangeReport { const NAME: &'static str = "Windows.Devices.Geolocation.Geofencing.GeofenceStateChangeReport"; } -::windows_core::imp::interface_hierarchy!(GeofenceStateChangeReport, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GeofenceStateChangeReport {} unsafe impl ::core::marker::Sync for GeofenceStateChangeReport {} #[repr(transparent)] 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 6513a8921d..d9800bd98f 100644 --- a/crates/libs/windows/src/Windows/Devices/Geolocation/Provider/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Geolocation/Provider/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGeolocationProvider(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGeolocationProvider { - type Vtable = IGeolocationProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGeolocationProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe4cf071d_3f64_509f_8dc2_0b74a059829d); -} +::windows_core::imp::com_interface!(IGeolocationProvider, IGeolocationProvider_Vtbl, 0xe4cf071d_3f64_509f_8dc2_0b74a059829d); #[repr(C)] #[doc(hidden)] pub struct IGeolocationProvider_Vtbl { @@ -21,6 +12,7 @@ pub struct IGeolocationProvider_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GeolocationProvider(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GeolocationProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GeolocationProvider { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -67,14 +59,11 @@ impl ::windows_core::RuntimeType for GeolocationProvider { } unsafe impl ::windows_core::Interface for GeolocationProvider { type Vtable = IGeolocationProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GeolocationProvider { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GeolocationProvider { const NAME: &'static str = "Windows.Devices.Geolocation.Provider.GeolocationProvider"; } -::windows_core::imp::interface_hierarchy!(GeolocationProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GeolocationProvider {} unsafe impl ::core::marker::Sync for GeolocationProvider {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Devices/Geolocation/impl.rs b/crates/libs/windows/src/Windows/Devices/Geolocation/impl.rs index cb7780ed7f..0c75075bdf 100644 --- a/crates/libs/windows/src/Windows/Devices/Geolocation/impl.rs +++ b/crates/libs/windows/src/Windows/Devices/Geolocation/impl.rs @@ -49,6 +49,6 @@ impl IGeoshape_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/Devices/Geolocation/mod.rs b/crates/libs/windows/src/Windows/Devices/Geolocation/mod.rs index 16075db023..a3c791dc1c 100644 --- a/crates/libs/windows/src/Windows/Devices/Geolocation/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Geolocation/mod.rs @@ -4,16 +4,7 @@ pub mod Geofencing; #[cfg(feature = "Devices_Geolocation_Provider")] #[doc = "Required features: `\"Devices_Geolocation_Provider\"`"] pub mod Provider; -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICivicAddress(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICivicAddress { - type Vtable = ICivicAddress_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICivicAddress { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa8567a1a_64f4_4d48_bcea_f6b008eca34c); -} +::windows_core::imp::com_interface!(ICivicAddress, ICivicAddress_Vtbl, 0xa8567a1a_64f4_4d48_bcea_f6b008eca34c); #[repr(C)] #[doc(hidden)] pub struct ICivicAddress_Vtbl { @@ -24,16 +15,7 @@ pub struct ICivicAddress_Vtbl { pub PostalCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Timestamp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::DateTime) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGeoboundingBox(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGeoboundingBox { - type Vtable = IGeoboundingBox_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGeoboundingBox { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0896c80b_274f_43da_9a06_cbfcdaeb4ec2); -} +::windows_core::imp::com_interface!(IGeoboundingBox, IGeoboundingBox_Vtbl, 0x0896c80b_274f_43da_9a06_cbfcdaeb4ec2); #[repr(C)] #[doc(hidden)] pub struct IGeoboundingBox_Vtbl { @@ -44,16 +26,7 @@ pub struct IGeoboundingBox_Vtbl { pub MinAltitude: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows_core::HRESULT, pub MaxAltitude: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGeoboundingBoxFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGeoboundingBoxFactory { - type Vtable = IGeoboundingBoxFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGeoboundingBoxFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4dfba589_0411_4abc_b3b5_5bbccb57d98c); -} +::windows_core::imp::com_interface!(IGeoboundingBoxFactory, IGeoboundingBoxFactory_Vtbl, 0x4dfba589_0411_4abc_b3b5_5bbccb57d98c); #[repr(C)] #[doc(hidden)] pub struct IGeoboundingBoxFactory_Vtbl { @@ -62,16 +35,7 @@ pub struct IGeoboundingBoxFactory_Vtbl { pub CreateWithAltitudeReference: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, northwestcorner: BasicGeoposition, southeastcorner: BasicGeoposition, altitudereferencesystem: AltitudeReferenceSystem, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateWithAltitudeReferenceAndSpatialReference: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, northwestcorner: BasicGeoposition, southeastcorner: BasicGeoposition, altitudereferencesystem: AltitudeReferenceSystem, spatialreferenceid: u32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGeoboundingBoxStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGeoboundingBoxStatics { - type Vtable = IGeoboundingBoxStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGeoboundingBoxStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x67b80708_e61a_4cd0_841b_93233792b5ca); -} +::windows_core::imp::com_interface!(IGeoboundingBoxStatics, IGeoboundingBoxStatics_Vtbl, 0x67b80708_e61a_4cd0_841b_93233792b5ca); #[repr(C)] #[doc(hidden)] pub struct IGeoboundingBoxStatics_Vtbl { @@ -89,16 +53,7 @@ pub struct IGeoboundingBoxStatics_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] TryComputeWithAltitudeReferenceAndSpatialReference: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGeocircle(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGeocircle { - type Vtable = IGeocircle_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGeocircle { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x39e45843_a7f9_4e63_92a7_ba0c28d124b1); -} +::windows_core::imp::com_interface!(IGeocircle, IGeocircle_Vtbl, 0x39e45843_a7f9_4e63_92a7_ba0c28d124b1); #[repr(C)] #[doc(hidden)] pub struct IGeocircle_Vtbl { @@ -106,16 +61,7 @@ pub struct IGeocircle_Vtbl { pub Center: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut BasicGeoposition) -> ::windows_core::HRESULT, pub Radius: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGeocircleFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGeocircleFactory { - type Vtable = IGeocircleFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGeocircleFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xafd6531f_72b1_4f7d_87cc_4ed4c9849c05); -} +::windows_core::imp::com_interface!(IGeocircleFactory, IGeocircleFactory_Vtbl, 0xafd6531f_72b1_4f7d_87cc_4ed4c9849c05); #[repr(C)] #[doc(hidden)] pub struct IGeocircleFactory_Vtbl { @@ -124,16 +70,7 @@ pub struct IGeocircleFactory_Vtbl { pub CreateWithAltitudeReferenceSystem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, position: BasicGeoposition, radius: f64, altitudereferencesystem: AltitudeReferenceSystem, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateWithAltitudeReferenceSystemAndSpatialReferenceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, position: BasicGeoposition, radius: f64, altitudereferencesystem: AltitudeReferenceSystem, spatialreferenceid: u32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGeocoordinate(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGeocoordinate { - type Vtable = IGeocoordinate_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGeocoordinate { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xee21a3aa_976a_4c70_803d_083ea55bcbc4); -} +::windows_core::imp::com_interface!(IGeocoordinate, IGeocoordinate_Vtbl, 0xee21a3aa_976a_4c70_803d_083ea55bcbc4); #[repr(C)] #[doc(hidden)] pub struct IGeocoordinate_Vtbl { @@ -156,16 +93,7 @@ pub struct IGeocoordinate_Vtbl { pub Speed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Timestamp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::DateTime) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGeocoordinateSatelliteData(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGeocoordinateSatelliteData { - type Vtable = IGeocoordinateSatelliteData_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGeocoordinateSatelliteData { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc32a74d9_2608_474c_912c_06dd490f4af7); -} +::windows_core::imp::com_interface!(IGeocoordinateSatelliteData, IGeocoordinateSatelliteData_Vtbl, 0xc32a74d9_2608_474c_912c_06dd490f4af7); #[repr(C)] #[doc(hidden)] pub struct IGeocoordinateSatelliteData_Vtbl { @@ -174,16 +102,7 @@ pub struct IGeocoordinateSatelliteData_Vtbl { pub HorizontalDilutionOfPrecision: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub VerticalDilutionOfPrecision: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGeocoordinateSatelliteData2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGeocoordinateSatelliteData2 { - type Vtable = IGeocoordinateSatelliteData2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGeocoordinateSatelliteData2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x761c8cfd_a19d_5a51_80f5_71676115483e); -} +::windows_core::imp::com_interface!(IGeocoordinateSatelliteData2, IGeocoordinateSatelliteData2_Vtbl, 0x761c8cfd_a19d_5a51_80f5_71676115483e); #[repr(C)] #[doc(hidden)] pub struct IGeocoordinateSatelliteData2_Vtbl { @@ -191,32 +110,14 @@ pub struct IGeocoordinateSatelliteData2_Vtbl { pub GeometricDilutionOfPrecision: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub TimeDilutionOfPrecision: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGeocoordinateWithPoint(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGeocoordinateWithPoint { - type Vtable = IGeocoordinateWithPoint_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGeocoordinateWithPoint { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfeea0525_d22c_4d46_b527_0b96066fc7db); -} +::windows_core::imp::com_interface!(IGeocoordinateWithPoint, IGeocoordinateWithPoint_Vtbl, 0xfeea0525_d22c_4d46_b527_0b96066fc7db); #[repr(C)] #[doc(hidden)] pub struct IGeocoordinateWithPoint_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Point: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGeocoordinateWithPositionData(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGeocoordinateWithPositionData { - type Vtable = IGeocoordinateWithPositionData_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGeocoordinateWithPositionData { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x95e634be_dbd6_40ac_b8f2_a65c0340d9a6); -} +::windows_core::imp::com_interface!(IGeocoordinateWithPositionData, IGeocoordinateWithPositionData_Vtbl, 0x95e634be_dbd6_40ac_b8f2_a65c0340d9a6); #[repr(C)] #[doc(hidden)] pub struct IGeocoordinateWithPositionData_Vtbl { @@ -224,48 +125,21 @@ pub struct IGeocoordinateWithPositionData_Vtbl { pub PositionSource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut PositionSource) -> ::windows_core::HRESULT, pub SatelliteData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGeocoordinateWithPositionSourceTimestamp(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGeocoordinateWithPositionSourceTimestamp { - type Vtable = IGeocoordinateWithPositionSourceTimestamp_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGeocoordinateWithPositionSourceTimestamp { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8543fc02_c9f1_4610_afe0_8bc3a6a87036); -} +::windows_core::imp::com_interface!(IGeocoordinateWithPositionSourceTimestamp, IGeocoordinateWithPositionSourceTimestamp_Vtbl, 0x8543fc02_c9f1_4610_afe0_8bc3a6a87036); #[repr(C)] #[doc(hidden)] pub struct IGeocoordinateWithPositionSourceTimestamp_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub PositionSourceTimestamp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGeocoordinateWithRemoteSource(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGeocoordinateWithRemoteSource { - type Vtable = IGeocoordinateWithRemoteSource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGeocoordinateWithRemoteSource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x397cebd7_ee38_5f3b_8900_c4a7bc9cf953); -} +::windows_core::imp::com_interface!(IGeocoordinateWithRemoteSource, IGeocoordinateWithRemoteSource_Vtbl, 0x397cebd7_ee38_5f3b_8900_c4a7bc9cf953); #[repr(C)] #[doc(hidden)] pub struct IGeocoordinateWithRemoteSource_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub IsRemoteSource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGeolocator(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGeolocator { - type Vtable = IGeolocator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGeolocator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa9c3bf62_4524_4989_8aa9_de019d2e551f); -} +::windows_core::imp::com_interface!(IGeolocator, IGeolocator_Vtbl, 0xa9c3bf62_4524_4989_8aa9_de019d2e551f); #[repr(C)] #[doc(hidden)] pub struct IGeolocator_Vtbl { @@ -284,32 +158,14 @@ pub struct IGeolocator_Vtbl { pub StatusChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveStatusChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGeolocator2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGeolocator2 { - type Vtable = IGeolocator2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGeolocator2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd1b42e6d_8891_43b4_ad36_27c6fe9a97b1); -} +::windows_core::imp::com_interface!(IGeolocator2, IGeolocator2_Vtbl, 0xd1b42e6d_8891_43b4_ad36_27c6fe9a97b1); #[repr(C)] #[doc(hidden)] pub struct IGeolocator2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub AllowFallbackToConsentlessPositions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGeolocatorStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGeolocatorStatics { - type Vtable = IGeolocatorStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGeolocatorStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9a8e7571_2df5_4591_9f87_eb5fd894e9b7); -} +::windows_core::imp::com_interface!(IGeolocatorStatics, IGeolocatorStatics_Vtbl, 0x9a8e7571_2df5_4591_9f87_eb5fd894e9b7); #[repr(C)] #[doc(hidden)] pub struct IGeolocatorStatics_Vtbl { @@ -324,16 +180,7 @@ pub struct IGeolocatorStatics_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetGeopositionHistoryWithDurationAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGeolocatorStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGeolocatorStatics2 { - type Vtable = IGeolocatorStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGeolocatorStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x993011a2_fa1c_4631_a71d_0dbeb1250d9c); -} +::windows_core::imp::com_interface!(IGeolocatorStatics2, IGeolocatorStatics2_Vtbl, 0x993011a2_fa1c_4631_a71d_0dbeb1250d9c); #[repr(C)] #[doc(hidden)] pub struct IGeolocatorStatics2_Vtbl { @@ -342,16 +189,7 @@ pub struct IGeolocatorStatics2_Vtbl { pub SetDefaultGeoposition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub DefaultGeoposition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGeolocatorWithScalarAccuracy(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGeolocatorWithScalarAccuracy { - type Vtable = IGeolocatorWithScalarAccuracy_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGeolocatorWithScalarAccuracy { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x96f5d3c1_b80f_460a_994d_a96c47a51aa4); -} +::windows_core::imp::com_interface!(IGeolocatorWithScalarAccuracy, IGeolocatorWithScalarAccuracy_Vtbl, 0x96f5d3c1_b80f_460a_994d_a96c47a51aa4); #[repr(C)] #[doc(hidden)] pub struct IGeolocatorWithScalarAccuracy_Vtbl { @@ -359,16 +197,7 @@ pub struct IGeolocatorWithScalarAccuracy_Vtbl { pub DesiredAccuracyInMeters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetDesiredAccuracyInMeters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGeopath(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGeopath { - type Vtable = IGeopath_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGeopath { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe53fd7b9_2da4_4714_a652_de8593289898); -} +::windows_core::imp::com_interface!(IGeopath, IGeopath_Vtbl, 0xe53fd7b9_2da4_4714_a652_de8593289898); #[repr(C)] #[doc(hidden)] pub struct IGeopath_Vtbl { @@ -378,16 +207,7 @@ pub struct IGeopath_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Positions: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGeopathFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGeopathFactory { - type Vtable = IGeopathFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGeopathFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x27bea9c8_c7e7_4359_9b9b_fca3e05ef593); -} +::windows_core::imp::com_interface!(IGeopathFactory, IGeopathFactory_Vtbl, 0x27bea9c8_c7e7_4359_9b9b_fca3e05ef593); #[repr(C)] #[doc(hidden)] pub struct IGeopathFactory_Vtbl { @@ -405,32 +225,14 @@ pub struct IGeopathFactory_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] CreateWithAltitudeReferenceAndSpatialReference: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGeopoint(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGeopoint { - type Vtable = IGeopoint_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGeopoint { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6bfa00eb_e56e_49bb_9caf_cbaa78a8bcef); -} +::windows_core::imp::com_interface!(IGeopoint, IGeopoint_Vtbl, 0x6bfa00eb_e56e_49bb_9caf_cbaa78a8bcef); #[repr(C)] #[doc(hidden)] pub struct IGeopoint_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Position: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut BasicGeoposition) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGeopointFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGeopointFactory { - type Vtable = IGeopointFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGeopointFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdb6b8d33_76bd_4e30_8af7_a844dc37b7a0); -} +::windows_core::imp::com_interface!(IGeopointFactory, IGeopointFactory_Vtbl, 0xdb6b8d33_76bd_4e30_8af7_a844dc37b7a0); #[repr(C)] #[doc(hidden)] pub struct IGeopointFactory_Vtbl { @@ -439,16 +241,7 @@ pub struct IGeopointFactory_Vtbl { pub CreateWithAltitudeReferenceSystem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, position: BasicGeoposition, altitudereferencesystem: AltitudeReferenceSystem, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateWithAltitudeReferenceSystemAndSpatialReferenceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, position: BasicGeoposition, altitudereferencesystem: AltitudeReferenceSystem, spatialreferenceid: u32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGeoposition(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGeoposition { - type Vtable = IGeoposition_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGeoposition { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc18d0454_7d41_4ff7_a957_9dffb4ef7f5b); -} +::windows_core::imp::com_interface!(IGeoposition, IGeoposition_Vtbl, 0xc18d0454_7d41_4ff7_a957_9dffb4ef7f5b); #[repr(C)] #[doc(hidden)] pub struct IGeoposition_Vtbl { @@ -456,25 +249,15 @@ pub struct IGeoposition_Vtbl { pub Coordinate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CivicAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGeoposition2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGeoposition2 { - type Vtable = IGeoposition2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGeoposition2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7f62f697_8671_4b0d_86f8_474a8496187c); -} +::windows_core::imp::com_interface!(IGeoposition2, IGeoposition2_Vtbl, 0x7f62f697_8671_4b0d_86f8_474a8496187c); #[repr(C)] #[doc(hidden)] pub struct IGeoposition2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub VenueData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGeoshape(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IGeoshape, IGeoshape_Vtbl, 0xc99ca2af_c729_43c1_8fab_d6dec914df7e); +::windows_core::imp::interface_hierarchy!(IGeoshape, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IGeoshape { pub fn GeoshapeType(&self) -> ::windows_core::Result { let this = self; @@ -498,16 +281,9 @@ impl IGeoshape { } } } -::windows_core::imp::interface_hierarchy!(IGeoshape, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IGeoshape { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IGeoshape { - type Vtable = IGeoshape_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGeoshape { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc99ca2af_c729_43c1_8fab_d6dec914df7e); -} #[repr(C)] #[doc(hidden)] pub struct IGeoshape_Vtbl { @@ -516,16 +292,7 @@ pub struct IGeoshape_Vtbl { pub SpatialReferenceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, pub AltitudeReferenceSystem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut AltitudeReferenceSystem) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGeovisit(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGeovisit { - type Vtable = IGeovisit_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGeovisit { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb1877a76_9ef6_41ab_a0dd_793ece76e2de); -} +::windows_core::imp::com_interface!(IGeovisit, IGeovisit_Vtbl, 0xb1877a76_9ef6_41ab_a0dd_793ece76e2de); #[repr(C)] #[doc(hidden)] pub struct IGeovisit_Vtbl { @@ -534,16 +301,7 @@ pub struct IGeovisit_Vtbl { pub StateChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut VisitStateChange) -> ::windows_core::HRESULT, pub Timestamp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::DateTime) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGeovisitMonitor(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGeovisitMonitor { - type Vtable = IGeovisitMonitor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGeovisitMonitor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x80118aaf_5944_4591_83c1_396647f54f2c); -} +::windows_core::imp::com_interface!(IGeovisitMonitor, IGeovisitMonitor_Vtbl, 0x80118aaf_5944_4591_83c1_396647f54f2c); #[repr(C)] #[doc(hidden)] pub struct IGeovisitMonitor_Vtbl { @@ -554,48 +312,21 @@ pub struct IGeovisitMonitor_Vtbl { pub VisitStateChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveVisitStateChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGeovisitMonitorStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGeovisitMonitorStatics { - type Vtable = IGeovisitMonitorStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGeovisitMonitorStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbcf976a7_bbf2_4cdd_95cf_554c82edfb87); -} +::windows_core::imp::com_interface!(IGeovisitMonitorStatics, IGeovisitMonitorStatics_Vtbl, 0xbcf976a7_bbf2_4cdd_95cf_554c82edfb87); #[repr(C)] #[doc(hidden)] pub struct IGeovisitMonitorStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetLastReportAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGeovisitStateChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGeovisitStateChangedEventArgs { - type Vtable = IGeovisitStateChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGeovisitStateChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xceb4d1ff_8b53_4968_beed_4cecd029ce15); -} +::windows_core::imp::com_interface!(IGeovisitStateChangedEventArgs, IGeovisitStateChangedEventArgs_Vtbl, 0xceb4d1ff_8b53_4968_beed_4cecd029ce15); #[repr(C)] #[doc(hidden)] pub struct IGeovisitStateChangedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Visit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGeovisitTriggerDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGeovisitTriggerDetails { - type Vtable = IGeovisitTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGeovisitTriggerDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xea770d9e_d1c9_454b_99b7_b2f8cdd2482f); -} +::windows_core::imp::com_interface!(IGeovisitTriggerDetails, IGeovisitTriggerDetails_Vtbl, 0xea770d9e_d1c9_454b_99b7_b2f8cdd2482f); #[repr(C)] #[doc(hidden)] pub struct IGeovisitTriggerDetails_Vtbl { @@ -605,48 +336,21 @@ pub struct IGeovisitTriggerDetails_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] ReadReports: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPositionChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPositionChangedEventArgs { - type Vtable = IPositionChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPositionChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x37859ce5_9d1e_46c5_bf3b_6ad8cac1a093); -} +::windows_core::imp::com_interface!(IPositionChangedEventArgs, IPositionChangedEventArgs_Vtbl, 0x37859ce5_9d1e_46c5_bf3b_6ad8cac1a093); #[repr(C)] #[doc(hidden)] pub struct IPositionChangedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Position: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStatusChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStatusChangedEventArgs { - type Vtable = IStatusChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStatusChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3453d2da_8c93_4111_a205_9aecfc9be5c0); -} +::windows_core::imp::com_interface!(IStatusChangedEventArgs, IStatusChangedEventArgs_Vtbl, 0x3453d2da_8c93_4111_a205_9aecfc9be5c0); #[repr(C)] #[doc(hidden)] pub struct IStatusChangedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut PositionStatus) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVenueData(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVenueData { - type Vtable = IVenueData_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVenueData { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x66f39187_60e3_4b2f_b527_4f53f1c3c677); -} +::windows_core::imp::com_interface!(IVenueData, IVenueData_Vtbl, 0x66f39187_60e3_4b2f_b527_4f53f1c3c677); #[repr(C)] #[doc(hidden)] pub struct IVenueData_Vtbl { @@ -657,6 +361,7 @@ pub struct IVenueData_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CivicAddress(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CivicAddress, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CivicAddress { pub fn Country(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -699,19 +404,18 @@ impl ::windows_core::RuntimeType for CivicAddress { } unsafe impl ::windows_core::Interface for CivicAddress { type Vtable = ICivicAddress_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CivicAddress { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CivicAddress { const NAME: &'static str = "Windows.Devices.Geolocation.CivicAddress"; } -::windows_core::imp::interface_hierarchy!(CivicAddress, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CivicAddress {} unsafe impl ::core::marker::Sync for CivicAddress {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GeoboundingBox(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GeoboundingBox, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(GeoboundingBox, IGeoshape); impl GeoboundingBox { pub fn NorthwestCorner(&self) -> ::windows_core::Result { let this = self; @@ -770,51 +474,51 @@ impl GeoboundingBox { #[cfg(feature = "Foundation_Collections")] pub fn TryCompute(positions: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::IGeoboundingBoxStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).TryCompute)(::windows_core::Interface::as_raw(this), positions.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).TryCompute)(::windows_core::Interface::as_raw(this), positions.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn TryComputeWithAltitudeReference(positions: P0, altituderefsystem: AltitudeReferenceSystem) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::IGeoboundingBoxStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).TryComputeWithAltitudeReference)(::windows_core::Interface::as_raw(this), positions.try_into_param()?.abi(), altituderefsystem, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).TryComputeWithAltitudeReference)(::windows_core::Interface::as_raw(this), positions.into_param().abi(), altituderefsystem, &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn TryComputeWithAltitudeReferenceAndSpatialReference(positions: P0, altituderefsystem: AltitudeReferenceSystem, spatialreferenceid: u32) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::IGeoboundingBoxStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).TryComputeWithAltitudeReferenceAndSpatialReference)(::windows_core::Interface::as_raw(this), positions.try_into_param()?.abi(), altituderefsystem, spatialreferenceid, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).TryComputeWithAltitudeReferenceAndSpatialReference)(::windows_core::Interface::as_raw(this), positions.into_param().abi(), altituderefsystem, spatialreferenceid, &mut result__).from_abi(result__) }) } pub fn GeoshapeType(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GeoshapeType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SpatialReferenceId(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SpatialReferenceId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn AltitudeReferenceSystem(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AltitudeReferenceSystem)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -836,20 +540,18 @@ impl ::windows_core::RuntimeType for GeoboundingBox { } unsafe impl ::windows_core::Interface for GeoboundingBox { type Vtable = IGeoboundingBox_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GeoboundingBox { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GeoboundingBox { const NAME: &'static str = "Windows.Devices.Geolocation.GeoboundingBox"; } -::windows_core::imp::interface_hierarchy!(GeoboundingBox, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for GeoboundingBox {} unsafe impl ::core::marker::Send for GeoboundingBox {} unsafe impl ::core::marker::Sync for GeoboundingBox {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Geocircle(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Geocircle, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(Geocircle, IGeoshape); impl Geocircle { pub fn Center(&self) -> ::windows_core::Result { let this = self; @@ -884,21 +586,21 @@ impl Geocircle { }) } pub fn GeoshapeType(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GeoshapeType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SpatialReferenceId(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SpatialReferenceId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn AltitudeReferenceSystem(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AltitudeReferenceSystem)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -915,20 +617,17 @@ impl ::windows_core::RuntimeType for Geocircle { } unsafe impl ::windows_core::Interface for Geocircle { type Vtable = IGeocircle_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Geocircle { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Geocircle { const NAME: &'static str = "Windows.Devices.Geolocation.Geocircle"; } -::windows_core::imp::interface_hierarchy!(Geocircle, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for Geocircle {} unsafe impl ::core::marker::Send for Geocircle {} unsafe impl ::core::marker::Sync for Geocircle {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Geocoordinate(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Geocoordinate, ::windows_core::IUnknown, ::windows_core::IInspectable); impl Geocoordinate { #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] @@ -993,35 +692,35 @@ impl Geocoordinate { } } pub fn Point(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Point)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PositionSource(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PositionSource)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SatelliteData(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SatelliteData)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PositionSourceTimestamp(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PositionSourceTimestamp)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsRemoteSource(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsRemoteSource)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1033,19 +732,17 @@ impl ::windows_core::RuntimeType for Geocoordinate { } unsafe impl ::windows_core::Interface for Geocoordinate { type Vtable = IGeocoordinate_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Geocoordinate { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Geocoordinate { const NAME: &'static str = "Windows.Devices.Geolocation.Geocoordinate"; } -::windows_core::imp::interface_hierarchy!(Geocoordinate, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for Geocoordinate {} unsafe impl ::core::marker::Sync for Geocoordinate {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GeocoordinateSatelliteData(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GeocoordinateSatelliteData, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GeocoordinateSatelliteData { pub fn PositionDilutionOfPrecision(&self) -> ::windows_core::Result> { let this = self; @@ -1069,14 +766,14 @@ impl GeocoordinateSatelliteData { } } pub fn GeometricDilutionOfPrecision(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GeometricDilutionOfPrecision)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TimeDilutionOfPrecision(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TimeDilutionOfPrecision)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1088,19 +785,17 @@ impl ::windows_core::RuntimeType for GeocoordinateSatelliteData { } unsafe impl ::windows_core::Interface for GeocoordinateSatelliteData { type Vtable = IGeocoordinateSatelliteData_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GeocoordinateSatelliteData { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GeocoordinateSatelliteData { const NAME: &'static str = "Windows.Devices.Geolocation.GeocoordinateSatelliteData"; } -::windows_core::imp::interface_hierarchy!(GeocoordinateSatelliteData, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GeocoordinateSatelliteData {} unsafe impl ::core::marker::Sync for GeocoordinateSatelliteData {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Geolocator(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Geolocator, ::windows_core::IUnknown, ::windows_core::IInspectable); impl Geolocator { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1192,7 +887,7 @@ impl Geolocator { unsafe { (::windows_core::Interface::vtable(this).RemoveStatusChanged)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn AllowFallbackToConsentlessPositions(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).AllowFallbackToConsentlessPositions)(::windows_core::Interface::as_raw(this)).ok() } } pub fn RequestAccessAsync() -> ::windows_core::Result> { @@ -1225,9 +920,9 @@ impl Geolocator { } pub fn SetDefaultGeoposition(value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - Self::IGeolocatorStatics2(|this| unsafe { (::windows_core::Interface::vtable(this).SetDefaultGeoposition)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() }) + Self::IGeolocatorStatics2(|this| unsafe { (::windows_core::Interface::vtable(this).SetDefaultGeoposition)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() }) } pub fn DefaultGeoposition() -> ::windows_core::Result> { Self::IGeolocatorStatics2(|this| unsafe { @@ -1236,7 +931,7 @@ impl Geolocator { }) } pub fn DesiredAccuracyInMeters(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DesiredAccuracyInMeters)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1244,10 +939,10 @@ impl Geolocator { } pub fn SetDesiredAccuracyInMeters(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetDesiredAccuracyInMeters)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc(hidden)] pub fn IGeolocatorStatics ::windows_core::Result>(callback: F) -> ::windows_core::Result { @@ -1265,19 +960,18 @@ impl ::windows_core::RuntimeType for Geolocator { } unsafe impl ::windows_core::Interface for Geolocator { type Vtable = IGeolocator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Geolocator { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Geolocator { const NAME: &'static str = "Windows.Devices.Geolocation.Geolocator"; } -::windows_core::imp::interface_hierarchy!(Geolocator, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for Geolocator {} unsafe impl ::core::marker::Sync for Geolocator {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Geopath(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Geopath, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(Geopath, IGeoshape); impl Geopath { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -1292,51 +986,51 @@ impl Geopath { #[cfg(feature = "Foundation_Collections")] pub fn Create(positions: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::IGeopathFactory(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).Create)(::windows_core::Interface::as_raw(this), positions.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).Create)(::windows_core::Interface::as_raw(this), positions.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn CreateWithAltitudeReference(positions: P0, altitudereferencesystem: AltitudeReferenceSystem) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::IGeopathFactory(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateWithAltitudeReference)(::windows_core::Interface::as_raw(this), positions.try_into_param()?.abi(), altitudereferencesystem, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateWithAltitudeReference)(::windows_core::Interface::as_raw(this), positions.into_param().abi(), altitudereferencesystem, &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn CreateWithAltitudeReferenceAndSpatialReference(positions: P0, altitudereferencesystem: AltitudeReferenceSystem, spatialreferenceid: u32) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::IGeopathFactory(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateWithAltitudeReferenceAndSpatialReference)(::windows_core::Interface::as_raw(this), positions.try_into_param()?.abi(), altitudereferencesystem, spatialreferenceid, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateWithAltitudeReferenceAndSpatialReference)(::windows_core::Interface::as_raw(this), positions.into_param().abi(), altitudereferencesystem, spatialreferenceid, &mut result__).from_abi(result__) }) } pub fn GeoshapeType(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GeoshapeType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SpatialReferenceId(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SpatialReferenceId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn AltitudeReferenceSystem(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AltitudeReferenceSystem)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1353,20 +1047,18 @@ impl ::windows_core::RuntimeType for Geopath { } unsafe impl ::windows_core::Interface for Geopath { type Vtable = IGeopath_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Geopath { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Geopath { const NAME: &'static str = "Windows.Devices.Geolocation.Geopath"; } -::windows_core::imp::interface_hierarchy!(Geopath, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for Geopath {} unsafe impl ::core::marker::Send for Geopath {} unsafe impl ::core::marker::Sync for Geopath {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Geopoint(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Geopoint, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(Geopoint, IGeoshape); impl Geopoint { pub fn Position(&self) -> ::windows_core::Result { let this = self; @@ -1394,21 +1086,21 @@ impl Geopoint { }) } pub fn GeoshapeType(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GeoshapeType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SpatialReferenceId(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SpatialReferenceId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn AltitudeReferenceSystem(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AltitudeReferenceSystem)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1425,20 +1117,17 @@ impl ::windows_core::RuntimeType for Geopoint { } unsafe impl ::windows_core::Interface for Geopoint { type Vtable = IGeopoint_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Geopoint { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Geopoint { const NAME: &'static str = "Windows.Devices.Geolocation.Geopoint"; } -::windows_core::imp::interface_hierarchy!(Geopoint, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for Geopoint {} unsafe impl ::core::marker::Send for Geopoint {} unsafe impl ::core::marker::Sync for Geopoint {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Geoposition(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Geoposition, ::windows_core::IUnknown, ::windows_core::IInspectable); impl Geoposition { pub fn Coordinate(&self) -> ::windows_core::Result { let this = self; @@ -1455,7 +1144,7 @@ impl Geoposition { } } pub fn VenueData(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).VenueData)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1467,19 +1156,17 @@ impl ::windows_core::RuntimeType for Geoposition { } unsafe impl ::windows_core::Interface for Geoposition { type Vtable = IGeoposition_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Geoposition { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Geoposition { const NAME: &'static str = "Windows.Devices.Geolocation.Geoposition"; } -::windows_core::imp::interface_hierarchy!(Geoposition, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for Geoposition {} unsafe impl ::core::marker::Sync for Geoposition {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Geovisit(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Geovisit, ::windows_core::IUnknown, ::windows_core::IInspectable); impl Geovisit { pub fn Position(&self) -> ::windows_core::Result { let this = self; @@ -1508,19 +1195,17 @@ impl ::windows_core::RuntimeType for Geovisit { } unsafe impl ::windows_core::Interface for Geovisit { type Vtable = IGeovisit_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Geovisit { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Geovisit { const NAME: &'static str = "Windows.Devices.Geolocation.Geovisit"; } -::windows_core::imp::interface_hierarchy!(Geovisit, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for Geovisit {} unsafe impl ::core::marker::Sync for Geovisit {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GeovisitMonitor(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GeovisitMonitor, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GeovisitMonitor { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1575,19 +1260,17 @@ impl ::windows_core::RuntimeType for GeovisitMonitor { } unsafe impl ::windows_core::Interface for GeovisitMonitor { type Vtable = IGeovisitMonitor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GeovisitMonitor { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GeovisitMonitor { const NAME: &'static str = "Windows.Devices.Geolocation.GeovisitMonitor"; } -::windows_core::imp::interface_hierarchy!(GeovisitMonitor, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GeovisitMonitor {} unsafe impl ::core::marker::Sync for GeovisitMonitor {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GeovisitStateChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GeovisitStateChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GeovisitStateChangedEventArgs { pub fn Visit(&self) -> ::windows_core::Result { let this = self; @@ -1602,19 +1285,17 @@ impl ::windows_core::RuntimeType for GeovisitStateChangedEventArgs { } unsafe impl ::windows_core::Interface for GeovisitStateChangedEventArgs { type Vtable = IGeovisitStateChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GeovisitStateChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GeovisitStateChangedEventArgs { const NAME: &'static str = "Windows.Devices.Geolocation.GeovisitStateChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(GeovisitStateChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GeovisitStateChangedEventArgs {} unsafe impl ::core::marker::Sync for GeovisitStateChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GeovisitTriggerDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GeovisitTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GeovisitTriggerDetails { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -1631,19 +1312,17 @@ impl ::windows_core::RuntimeType for GeovisitTriggerDetails { } unsafe impl ::windows_core::Interface for GeovisitTriggerDetails { type Vtable = IGeovisitTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GeovisitTriggerDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GeovisitTriggerDetails { const NAME: &'static str = "Windows.Devices.Geolocation.GeovisitTriggerDetails"; } -::windows_core::imp::interface_hierarchy!(GeovisitTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GeovisitTriggerDetails {} unsafe impl ::core::marker::Sync for GeovisitTriggerDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PositionChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PositionChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PositionChangedEventArgs { pub fn Position(&self) -> ::windows_core::Result { let this = self; @@ -1658,19 +1337,17 @@ impl ::windows_core::RuntimeType for PositionChangedEventArgs { } unsafe impl ::windows_core::Interface for PositionChangedEventArgs { type Vtable = IPositionChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PositionChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PositionChangedEventArgs { const NAME: &'static str = "Windows.Devices.Geolocation.PositionChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(PositionChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PositionChangedEventArgs {} unsafe impl ::core::marker::Sync for PositionChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StatusChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StatusChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl StatusChangedEventArgs { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -1685,19 +1362,17 @@ impl ::windows_core::RuntimeType for StatusChangedEventArgs { } unsafe impl ::windows_core::Interface for StatusChangedEventArgs { type Vtable = IStatusChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StatusChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StatusChangedEventArgs { const NAME: &'static str = "Windows.Devices.Geolocation.StatusChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(StatusChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for StatusChangedEventArgs {} unsafe impl ::core::marker::Sync for StatusChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VenueData(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VenueData, ::windows_core::IUnknown, ::windows_core::IInspectable); impl VenueData { pub fn Id(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1719,14 +1394,11 @@ impl ::windows_core::RuntimeType for VenueData { } unsafe impl ::windows_core::Interface for VenueData { type Vtable = IVenueData_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VenueData { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VenueData { const NAME: &'static str = "Windows.Devices.Geolocation.VenueData"; } -::windows_core::imp::interface_hierarchy!(VenueData, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for VenueData {} unsafe impl ::core::marker::Sync for VenueData {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Devices/Gpio/Provider/impl.rs b/crates/libs/windows/src/Windows/Devices/Gpio/Provider/impl.rs index 489684a918..f25c63878a 100644 --- a/crates/libs/windows/src/Windows/Devices/Gpio/Provider/impl.rs +++ b/crates/libs/windows/src/Windows/Devices/Gpio/Provider/impl.rs @@ -37,7 +37,7 @@ impl IGpioControllerProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IGpioPinProvider_Impl: Sized { @@ -171,7 +171,7 @@ impl IGpioPinProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -201,6 +201,6 @@ impl IGpioProvider_Vtbl { Self { base__: ::windows_core::IInspectable_Vtbl::new::(), GetControllers: GetControllers:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 7103757f41..7ea688a1e2 100644 --- a/crates/libs/windows/src/Windows/Devices/Gpio/Provider/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Gpio/Provider/mod.rs @@ -1,6 +1,5 @@ -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGpioControllerProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IGpioControllerProvider, IGpioControllerProvider_Vtbl, 0xad11cec7_19ea_4b21_874f_b91aed4a25db); +::windows_core::imp::interface_hierarchy!(IGpioControllerProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IGpioControllerProvider { pub fn PinCount(&self) -> ::windows_core::Result { let this = self; @@ -17,16 +16,9 @@ impl IGpioControllerProvider { } } } -::windows_core::imp::interface_hierarchy!(IGpioControllerProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IGpioControllerProvider { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IGpioControllerProvider { - type Vtable = IGpioControllerProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGpioControllerProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xad11cec7_19ea_4b21_874f_b91aed4a25db); -} #[repr(C)] #[doc(hidden)] pub struct IGpioControllerProvider_Vtbl { @@ -34,9 +26,8 @@ pub struct IGpioControllerProvider_Vtbl { pub PinCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows_core::HRESULT, pub OpenPinProvider: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pin: i32, sharingmode: ProviderGpioSharingMode, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGpioPinProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IGpioPinProvider, IGpioPinProvider_Vtbl, 0x42344cb7_6abc_40ff_9ce7_73b85301b900); +::windows_core::imp::interface_hierarchy!(IGpioPinProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IGpioPinProvider { pub fn ValueChanged(&self, handler: P0) -> ::windows_core::Result where @@ -107,16 +98,9 @@ impl IGpioPinProvider { } } } -::windows_core::imp::interface_hierarchy!(IGpioPinProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IGpioPinProvider { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IGpioPinProvider { - type Vtable = IGpioPinProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGpioPinProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x42344cb7_6abc_40ff_9ce7_73b85301b900); -} #[repr(C)] #[doc(hidden)] pub struct IGpioPinProvider_Vtbl { @@ -133,41 +117,22 @@ pub struct IGpioPinProvider_Vtbl { pub Write: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ProviderGpioPinValue) -> ::windows_core::HRESULT, pub Read: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ProviderGpioPinValue) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGpioPinProviderValueChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGpioPinProviderValueChangedEventArgs { - type Vtable = IGpioPinProviderValueChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGpioPinProviderValueChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x32a6d6f2_3d5b_44cd_8fbe_13a69f2edb24); -} +::windows_core::imp::com_interface!(IGpioPinProviderValueChangedEventArgs, IGpioPinProviderValueChangedEventArgs_Vtbl, 0x32a6d6f2_3d5b_44cd_8fbe_13a69f2edb24); #[repr(C)] #[doc(hidden)] pub struct IGpioPinProviderValueChangedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Edge: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ProviderGpioPinEdge) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGpioPinProviderValueChangedEventArgsFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGpioPinProviderValueChangedEventArgsFactory { - type Vtable = IGpioPinProviderValueChangedEventArgsFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGpioPinProviderValueChangedEventArgsFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3ecb0b59_568c_4392_b24a_8a59a902b1f1); -} +::windows_core::imp::com_interface!(IGpioPinProviderValueChangedEventArgsFactory, IGpioPinProviderValueChangedEventArgsFactory_Vtbl, 0x3ecb0b59_568c_4392_b24a_8a59a902b1f1); #[repr(C)] #[doc(hidden)] pub struct IGpioPinProviderValueChangedEventArgsFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, edge: ProviderGpioPinEdge, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGpioProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IGpioProvider, IGpioProvider_Vtbl, 0x44e82707_08ca_434a_afe0_d61580446f7e); +::windows_core::imp::interface_hierarchy!(IGpioProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IGpioProvider { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -179,16 +144,9 @@ impl IGpioProvider { } } } -::windows_core::imp::interface_hierarchy!(IGpioProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IGpioProvider { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IGpioProvider { - type Vtable = IGpioProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGpioProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x44e82707_08ca_434a_afe0_d61580446f7e); -} #[repr(C)] #[doc(hidden)] pub struct IGpioProvider_Vtbl { @@ -201,6 +159,7 @@ pub struct IGpioProvider_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GpioPinProviderValueChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GpioPinProviderValueChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GpioPinProviderValueChangedEventArgs { pub fn Edge(&self) -> ::windows_core::Result { let this = self; @@ -226,14 +185,11 @@ impl ::windows_core::RuntimeType for GpioPinProviderValueChangedEventArgs { } unsafe impl ::windows_core::Interface for GpioPinProviderValueChangedEventArgs { type Vtable = IGpioPinProviderValueChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GpioPinProviderValueChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GpioPinProviderValueChangedEventArgs { const NAME: &'static str = "Windows.Devices.Gpio.Provider.GpioPinProviderValueChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(GpioPinProviderValueChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GpioPinProviderValueChangedEventArgs {} unsafe impl ::core::marker::Sync for GpioPinProviderValueChangedEventArgs {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Devices/Gpio/mod.rs b/crates/libs/windows/src/Windows/Devices/Gpio/mod.rs index 51a20a0e51..c1b4a0504d 100644 --- a/crates/libs/windows/src/Windows/Devices/Gpio/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Gpio/mod.rs @@ -1,16 +1,7 @@ #[cfg(feature = "Devices_Gpio_Provider")] #[doc = "Required features: `\"Devices_Gpio_Provider\"`"] pub mod Provider; -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGpioChangeCounter(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGpioChangeCounter { - type Vtable = IGpioChangeCounter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGpioChangeCounter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcb5ec0de_6801_43ff_803d_4576628a8b26); -} +::windows_core::imp::com_interface!(IGpioChangeCounter, IGpioChangeCounter_Vtbl, 0xcb5ec0de_6801_43ff_803d_4576628a8b26); #[repr(C)] #[doc(hidden)] pub struct IGpioChangeCounter_Vtbl { @@ -23,32 +14,14 @@ pub struct IGpioChangeCounter_Vtbl { pub Read: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut GpioChangeCount) -> ::windows_core::HRESULT, pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut GpioChangeCount) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGpioChangeCounterFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGpioChangeCounterFactory { - type Vtable = IGpioChangeCounterFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGpioChangeCounterFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x147d94b6_0a9e_410c_b4fa_f89f4052084d); -} +::windows_core::imp::com_interface!(IGpioChangeCounterFactory, IGpioChangeCounterFactory_Vtbl, 0x147d94b6_0a9e_410c_b4fa_f89f4052084d); #[repr(C)] #[doc(hidden)] pub struct IGpioChangeCounterFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pin: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGpioChangeReader(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGpioChangeReader { - type Vtable = IGpioChangeReader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGpioChangeReader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0abc885f_e031_48e8_8590_70de78363c6d); -} +::windows_core::imp::com_interface!(IGpioChangeReader, IGpioChangeReader_Vtbl, 0x0abc885f_e031_48e8_8590_70de78363c6d); #[repr(C)] #[doc(hidden)] pub struct IGpioChangeReader_Vtbl { @@ -71,16 +44,7 @@ pub struct IGpioChangeReader_Vtbl { GetAllItems: usize, pub WaitForItemsAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, count: i32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGpioChangeReaderFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGpioChangeReaderFactory { - type Vtable = IGpioChangeReaderFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGpioChangeReaderFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa9598ef3_390e_441a_9d1c_e8de0b2df0df); -} +::windows_core::imp::com_interface!(IGpioChangeReaderFactory, IGpioChangeReaderFactory_Vtbl, 0xa9598ef3_390e_441a_9d1c_e8de0b2df0df); #[repr(C)] #[doc(hidden)] pub struct IGpioChangeReaderFactory_Vtbl { @@ -88,16 +52,7 @@ pub struct IGpioChangeReaderFactory_Vtbl { pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pin: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateWithCapacity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pin: *mut ::core::ffi::c_void, mincapacity: i32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGpioController(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGpioController { - type Vtable = IGpioController_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGpioController { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x284012e3_7461_469c_a8bc_61d69d08a53c); -} +::windows_core::imp::com_interface!(IGpioController, IGpioController_Vtbl, 0x284012e3_7461_469c_a8bc_61d69d08a53c); #[repr(C)] #[doc(hidden)] pub struct IGpioController_Vtbl { @@ -107,32 +62,14 @@ pub struct IGpioController_Vtbl { pub OpenPinWithSharingMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinnumber: i32, sharingmode: GpioSharingMode, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub TryOpenPin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinnumber: i32, sharingmode: GpioSharingMode, pin: *mut *mut ::core::ffi::c_void, openstatus: *mut GpioOpenStatus, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGpioControllerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGpioControllerStatics { - type Vtable = IGpioControllerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGpioControllerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2ed6f42e_7af7_4116_9533_c43d99a1fb64); -} +::windows_core::imp::com_interface!(IGpioControllerStatics, IGpioControllerStatics_Vtbl, 0x2ed6f42e_7af7_4116_9533_c43d99a1fb64); #[repr(C)] #[doc(hidden)] pub struct IGpioControllerStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetDefault: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGpioControllerStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGpioControllerStatics2 { - type Vtable = IGpioControllerStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGpioControllerStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x912b7d20_6ca4_4106_a373_fffd346b0e5b); -} +::windows_core::imp::com_interface!(IGpioControllerStatics2, IGpioControllerStatics2_Vtbl, 0x912b7d20_6ca4_4106_a373_fffd346b0e5b); #[repr(C)] #[doc(hidden)] pub struct IGpioControllerStatics2_Vtbl { @@ -143,16 +80,7 @@ pub struct IGpioControllerStatics2_Vtbl { GetControllersAsync: usize, pub GetDefaultAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGpioPin(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGpioPin { - type Vtable = IGpioPin_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGpioPin { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x11d9b087_afae_4790_9ee9_e0eac942d201); -} +::windows_core::imp::com_interface!(IGpioPin, IGpioPin_Vtbl, 0x11d9b087_afae_4790_9ee9_e0eac942d201); #[repr(C)] #[doc(hidden)] pub struct IGpioPin_Vtbl { @@ -169,16 +97,7 @@ pub struct IGpioPin_Vtbl { pub Write: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: GpioPinValue) -> ::windows_core::HRESULT, pub Read: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut GpioPinValue) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGpioPinValueChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGpioPinValueChangedEventArgs { - type Vtable = IGpioPinValueChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGpioPinValueChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3137aae1_703d_4059_bd24_b5b25dffb84e); -} +::windows_core::imp::com_interface!(IGpioPinValueChangedEventArgs, IGpioPinValueChangedEventArgs_Vtbl, 0x3137aae1_703d_4059_bd24_b5b25dffb84e); #[repr(C)] #[doc(hidden)] pub struct IGpioPinValueChangedEventArgs_Vtbl { @@ -188,9 +107,11 @@ pub struct IGpioPinValueChangedEventArgs_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GpioChangeCounter(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GpioChangeCounter, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(GpioChangeCounter, super::super::Foundation::IClosable); impl GpioChangeCounter { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn SetPolarity(&self, value: GpioChangePolarity) -> ::windows_core::Result<()> { @@ -253,23 +174,21 @@ impl ::windows_core::RuntimeType for GpioChangeCounter { } unsafe impl ::windows_core::Interface for GpioChangeCounter { type Vtable = IGpioChangeCounter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GpioChangeCounter { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GpioChangeCounter { const NAME: &'static str = "Windows.Devices.Gpio.GpioChangeCounter"; } -::windows_core::imp::interface_hierarchy!(GpioChangeCounter, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for GpioChangeCounter {} unsafe impl ::core::marker::Send for GpioChangeCounter {} unsafe impl ::core::marker::Sync for GpioChangeCounter {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GpioChangeReader(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GpioChangeReader, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(GpioChangeReader, super::super::Foundation::IClosable); impl GpioChangeReader { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Capacity(&self) -> ::windows_core::Result { @@ -389,20 +308,17 @@ impl ::windows_core::RuntimeType for GpioChangeReader { } unsafe impl ::windows_core::Interface for GpioChangeReader { type Vtable = IGpioChangeReader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GpioChangeReader { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GpioChangeReader { const NAME: &'static str = "Windows.Devices.Gpio.GpioChangeReader"; } -::windows_core::imp::interface_hierarchy!(GpioChangeReader, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for GpioChangeReader {} unsafe impl ::core::marker::Send for GpioChangeReader {} unsafe impl ::core::marker::Sync for GpioChangeReader {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GpioController(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GpioController, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GpioController { pub fn PinCount(&self) -> ::windows_core::Result { let this = self; @@ -442,11 +358,11 @@ impl GpioController { #[cfg(all(feature = "Devices_Gpio_Provider", feature = "Foundation_Collections"))] pub fn GetControllersAsync(provider: P0) -> ::windows_core::Result>> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IGpioControllerStatics2(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).GetControllersAsync)(::windows_core::Interface::as_raw(this), provider.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).GetControllersAsync)(::windows_core::Interface::as_raw(this), provider.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn GetDefaultAsync() -> ::windows_core::Result> { @@ -471,22 +387,21 @@ impl ::windows_core::RuntimeType for GpioController { } unsafe impl ::windows_core::Interface for GpioController { type Vtable = IGpioController_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GpioController { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GpioController { const NAME: &'static str = "Windows.Devices.Gpio.GpioController"; } -::windows_core::imp::interface_hierarchy!(GpioController, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GpioController {} unsafe impl ::core::marker::Sync for GpioController {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GpioPin(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GpioPin, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(GpioPin, super::super::Foundation::IClosable); impl GpioPin { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn ValueChanged(&self, handler: P0) -> ::windows_core::Result @@ -563,20 +478,17 @@ impl ::windows_core::RuntimeType for GpioPin { } unsafe impl ::windows_core::Interface for GpioPin { type Vtable = IGpioPin_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GpioPin { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GpioPin { const NAME: &'static str = "Windows.Devices.Gpio.GpioPin"; } -::windows_core::imp::interface_hierarchy!(GpioPin, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for GpioPin {} unsafe impl ::core::marker::Send for GpioPin {} unsafe impl ::core::marker::Sync for GpioPin {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GpioPinValueChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GpioPinValueChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GpioPinValueChangedEventArgs { pub fn Edge(&self) -> ::windows_core::Result { let this = self; @@ -591,14 +503,11 @@ impl ::windows_core::RuntimeType for GpioPinValueChangedEventArgs { } unsafe impl ::windows_core::Interface for GpioPinValueChangedEventArgs { type Vtable = IGpioPinValueChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GpioPinValueChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GpioPinValueChangedEventArgs { const NAME: &'static str = "Windows.Devices.Gpio.GpioPinValueChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(GpioPinValueChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GpioPinValueChangedEventArgs {} unsafe impl ::core::marker::Sync for GpioPinValueChangedEventArgs {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Devices/Haptics/mod.rs b/crates/libs/windows/src/Windows/Devices/Haptics/mod.rs index cb4c7ff572..a407536406 100644 --- a/crates/libs/windows/src/Windows/Devices/Haptics/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Haptics/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKnownSimpleHapticsControllerWaveformsStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKnownSimpleHapticsControllerWaveformsStatics { - type Vtable = IKnownSimpleHapticsControllerWaveformsStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKnownSimpleHapticsControllerWaveformsStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3d577ef7_4cee_11e6_b535_001bdc06ab3b); -} +::windows_core::imp::com_interface!(IKnownSimpleHapticsControllerWaveformsStatics, IKnownSimpleHapticsControllerWaveformsStatics_Vtbl, 0x3d577ef7_4cee_11e6_b535_001bdc06ab3b); #[repr(C)] #[doc(hidden)] pub struct IKnownSimpleHapticsControllerWaveformsStatics_Vtbl { @@ -18,16 +9,7 @@ pub struct IKnownSimpleHapticsControllerWaveformsStatics_Vtbl { pub Press: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u16) -> ::windows_core::HRESULT, pub Release: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u16) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKnownSimpleHapticsControllerWaveformsStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKnownSimpleHapticsControllerWaveformsStatics2 { - type Vtable = IKnownSimpleHapticsControllerWaveformsStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKnownSimpleHapticsControllerWaveformsStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa7d24c27_b79d_510a_bf79_ff6d49173e1d); -} +::windows_core::imp::com_interface!(IKnownSimpleHapticsControllerWaveformsStatics2, IKnownSimpleHapticsControllerWaveformsStatics2_Vtbl, 0xa7d24c27_b79d_510a_bf79_ff6d49173e1d); #[repr(C)] #[doc(hidden)] pub struct IKnownSimpleHapticsControllerWaveformsStatics2_Vtbl { @@ -43,16 +25,7 @@ pub struct IKnownSimpleHapticsControllerWaveformsStatics2_Vtbl { pub PencilContinuous: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u16) -> ::windows_core::HRESULT, pub Success: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u16) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISimpleHapticsController(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISimpleHapticsController { - type Vtable = ISimpleHapticsController_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISimpleHapticsController { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3d577ef9_4cee_11e6_b535_001bdc06ab3b); -} +::windows_core::imp::com_interface!(ISimpleHapticsController, ISimpleHapticsController_Vtbl, 0x3d577ef9_4cee_11e6_b535_001bdc06ab3b); #[repr(C)] #[doc(hidden)] pub struct ISimpleHapticsController_Vtbl { @@ -72,16 +45,7 @@ pub struct ISimpleHapticsController_Vtbl { pub SendHapticFeedbackForDuration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, feedback: *mut ::core::ffi::c_void, intensity: f64, playduration: super::super::Foundation::TimeSpan) -> ::windows_core::HRESULT, pub SendHapticFeedbackForPlayCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, feedback: *mut ::core::ffi::c_void, intensity: f64, playcount: i32, replaypauseinterval: super::super::Foundation::TimeSpan) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISimpleHapticsControllerFeedback(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISimpleHapticsControllerFeedback { - type Vtable = ISimpleHapticsControllerFeedback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISimpleHapticsControllerFeedback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3d577ef8_4cee_11e6_b535_001bdc06ab3b); -} +::windows_core::imp::com_interface!(ISimpleHapticsControllerFeedback, ISimpleHapticsControllerFeedback_Vtbl, 0x3d577ef8_4cee_11e6_b535_001bdc06ab3b); #[repr(C)] #[doc(hidden)] pub struct ISimpleHapticsControllerFeedback_Vtbl { @@ -89,16 +53,7 @@ pub struct ISimpleHapticsControllerFeedback_Vtbl { pub Waveform: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u16) -> ::windows_core::HRESULT, pub Duration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::TimeSpan) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVibrationDevice(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVibrationDevice { - type Vtable = IVibrationDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVibrationDevice { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x40f21a3e_8844_47ff_b312_06185a3844da); -} +::windows_core::imp::com_interface!(IVibrationDevice, IVibrationDevice_Vtbl, 0x40f21a3e_8844_47ff_b312_06185a3844da); #[repr(C)] #[doc(hidden)] pub struct IVibrationDevice_Vtbl { @@ -106,16 +61,7 @@ pub struct IVibrationDevice_Vtbl { pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SimpleHapticsController: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVibrationDeviceStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVibrationDeviceStatics { - type Vtable = IVibrationDeviceStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVibrationDeviceStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x53e2eded_2290_4ac9_8eb3_1a84122eb71c); -} +::windows_core::imp::com_interface!(IVibrationDeviceStatics, IVibrationDeviceStatics_Vtbl, 0x53e2eded_2290_4ac9_8eb3_1a84122eb71c); #[repr(C)] #[doc(hidden)] pub struct IVibrationDeviceStatics_Vtbl { @@ -238,6 +184,7 @@ impl ::windows_core::RuntimeName for KnownSimpleHapticsControllerWaveforms { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SimpleHapticsController(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SimpleHapticsController, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SimpleHapticsController { pub fn Id(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -321,19 +268,17 @@ impl ::windows_core::RuntimeType for SimpleHapticsController { } unsafe impl ::windows_core::Interface for SimpleHapticsController { type Vtable = ISimpleHapticsController_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SimpleHapticsController { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SimpleHapticsController { const NAME: &'static str = "Windows.Devices.Haptics.SimpleHapticsController"; } -::windows_core::imp::interface_hierarchy!(SimpleHapticsController, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SimpleHapticsController {} unsafe impl ::core::marker::Sync for SimpleHapticsController {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SimpleHapticsControllerFeedback(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SimpleHapticsControllerFeedback, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SimpleHapticsControllerFeedback { pub fn Waveform(&self) -> ::windows_core::Result { let this = self; @@ -355,19 +300,17 @@ impl ::windows_core::RuntimeType for SimpleHapticsControllerFeedback { } unsafe impl ::windows_core::Interface for SimpleHapticsControllerFeedback { type Vtable = ISimpleHapticsControllerFeedback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SimpleHapticsControllerFeedback { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SimpleHapticsControllerFeedback { const NAME: &'static str = "Windows.Devices.Haptics.SimpleHapticsControllerFeedback"; } -::windows_core::imp::interface_hierarchy!(SimpleHapticsControllerFeedback, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SimpleHapticsControllerFeedback {} unsafe impl ::core::marker::Sync for SimpleHapticsControllerFeedback {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VibrationDevice(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VibrationDevice, ::windows_core::IUnknown, ::windows_core::IInspectable); impl VibrationDevice { pub fn Id(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -426,14 +369,11 @@ impl ::windows_core::RuntimeType for VibrationDevice { } unsafe impl ::windows_core::Interface for VibrationDevice { type Vtable = IVibrationDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VibrationDevice { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VibrationDevice { const NAME: &'static str = "Windows.Devices.Haptics.VibrationDevice"; } -::windows_core::imp::interface_hierarchy!(VibrationDevice, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for VibrationDevice {} unsafe impl ::core::marker::Sync for VibrationDevice {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Devices/HumanInterfaceDevice/mod.rs b/crates/libs/windows/src/Windows/Devices/HumanInterfaceDevice/mod.rs index 523530a2fa..47d2739fe9 100644 --- a/crates/libs/windows/src/Windows/Devices/HumanInterfaceDevice/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/HumanInterfaceDevice/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHidBooleanControl(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHidBooleanControl { - type Vtable = IHidBooleanControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHidBooleanControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x524df48a_3695_408c_bba2_e2eb5abfbc20); -} +::windows_core::imp::com_interface!(IHidBooleanControl, IHidBooleanControl_Vtbl, 0x524df48a_3695_408c_bba2_e2eb5abfbc20); #[repr(C)] #[doc(hidden)] pub struct IHidBooleanControl_Vtbl { @@ -19,16 +10,7 @@ pub struct IHidBooleanControl_Vtbl { pub SetIsActive: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, pub ControlDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHidBooleanControlDescription(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHidBooleanControlDescription { - type Vtable = IHidBooleanControlDescription_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHidBooleanControlDescription { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6196e543_29d8_4a2a_8683_849e207bbe31); -} +::windows_core::imp::com_interface!(IHidBooleanControlDescription, IHidBooleanControlDescription_Vtbl, 0x6196e543_29d8_4a2a_8683_849e207bbe31); #[repr(C)] #[doc(hidden)] pub struct IHidBooleanControlDescription_Vtbl { @@ -43,32 +25,14 @@ pub struct IHidBooleanControlDescription_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] ParentCollections: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHidBooleanControlDescription2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHidBooleanControlDescription2 { - type Vtable = IHidBooleanControlDescription2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHidBooleanControlDescription2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc8eed2ea_8a77_4c36_aa00_5ff0449d3e73); -} +::windows_core::imp::com_interface!(IHidBooleanControlDescription2, IHidBooleanControlDescription2_Vtbl, 0xc8eed2ea_8a77_4c36_aa00_5ff0449d3e73); #[repr(C)] #[doc(hidden)] pub struct IHidBooleanControlDescription2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub IsAbsolute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHidCollection(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHidCollection { - type Vtable = IHidCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHidCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7189f5a3_32f1_46e3_befd_44d2663b7e6a); -} +::windows_core::imp::com_interface!(IHidCollection, IHidCollection_Vtbl, 0x7189f5a3_32f1_46e3_befd_44d2663b7e6a); #[repr(C)] #[doc(hidden)] pub struct IHidCollection_Vtbl { @@ -78,16 +42,7 @@ pub struct IHidCollection_Vtbl { pub UsagePage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, pub UsageId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHidDevice(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHidDevice { - type Vtable = IHidDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHidDevice { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5f8a14e7_2200_432e_95da_d09b87d574a8); -} +::windows_core::imp::com_interface!(IHidDevice, IHidDevice_Vtbl, 0x5f8a14e7_2200_432e_95da_d09b87d574a8); #[repr(C)] #[doc(hidden)] pub struct IHidDevice_Vtbl { @@ -118,16 +73,7 @@ pub struct IHidDevice_Vtbl { pub InputReportReceived: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, reporthandler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveInputReportReceived: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHidDeviceStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHidDeviceStatics { - type Vtable = IHidDeviceStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHidDeviceStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9e5981e4_9856_418c_9f73_77de0cd85754); -} +::windows_core::imp::com_interface!(IHidDeviceStatics, IHidDeviceStatics_Vtbl, 0x9e5981e4_9856_418c_9f73_77de0cd85754); #[repr(C)] #[doc(hidden)] pub struct IHidDeviceStatics_Vtbl { @@ -139,16 +85,7 @@ pub struct IHidDeviceStatics_Vtbl { #[cfg(not(feature = "Storage"))] FromIdAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHidFeatureReport(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHidFeatureReport { - type Vtable = IHidFeatureReport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHidFeatureReport { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x841d9b79_5ae5_46e3_82ef_1fec5c8942f4); -} +::windows_core::imp::com_interface!(IHidFeatureReport, IHidFeatureReport_Vtbl, 0x841d9b79_5ae5_46e3_82ef_1fec5c8942f4); #[repr(C)] #[doc(hidden)] pub struct IHidFeatureReport_Vtbl { @@ -167,16 +104,7 @@ pub struct IHidFeatureReport_Vtbl { pub GetNumericControl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, usagepage: u16, usageid: u16, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetNumericControlByDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, controldescription: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHidInputReport(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHidInputReport { - type Vtable = IHidInputReport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHidInputReport { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc35d0e50_f7e7_4e8d_b23e_cabbe56b90e9); -} +::windows_core::imp::com_interface!(IHidInputReport, IHidInputReport_Vtbl, 0xc35d0e50_f7e7_4e8d_b23e_cabbe56b90e9); #[repr(C)] #[doc(hidden)] pub struct IHidInputReport_Vtbl { @@ -199,32 +127,14 @@ pub struct IHidInputReport_Vtbl { pub GetNumericControl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, usagepage: u16, usageid: u16, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetNumericControlByDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, controldescription: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHidInputReportReceivedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHidInputReportReceivedEventArgs { - type Vtable = IHidInputReportReceivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHidInputReportReceivedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7059c5cb_59b2_4dc2_985c_0adc6136fa2d); -} +::windows_core::imp::com_interface!(IHidInputReportReceivedEventArgs, IHidInputReportReceivedEventArgs_Vtbl, 0x7059c5cb_59b2_4dc2_985c_0adc6136fa2d); #[repr(C)] #[doc(hidden)] pub struct IHidInputReportReceivedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Report: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHidNumericControl(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHidNumericControl { - type Vtable = IHidNumericControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHidNumericControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe38a12a5_35a7_4b75_89c8_fb1f28b10823); -} +::windows_core::imp::com_interface!(IHidNumericControl, IHidNumericControl_Vtbl, 0xe38a12a5_35a7_4b75_89c8_fb1f28b10823); #[repr(C)] #[doc(hidden)] pub struct IHidNumericControl_Vtbl { @@ -239,16 +149,7 @@ pub struct IHidNumericControl_Vtbl { pub SetScaledValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i64) -> ::windows_core::HRESULT, pub ControlDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHidNumericControlDescription(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHidNumericControlDescription { - type Vtable = IHidNumericControlDescription_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHidNumericControlDescription { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x638d5e86_1d97_4c75_927f_5ff58ba05e32); -} +::windows_core::imp::com_interface!(IHidNumericControlDescription, IHidNumericControlDescription_Vtbl, 0x638d5e86_1d97_4c75_927f_5ff58ba05e32); #[repr(C)] #[doc(hidden)] pub struct IHidNumericControlDescription_Vtbl { @@ -273,16 +174,7 @@ pub struct IHidNumericControlDescription_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] ParentCollections: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHidOutputReport(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHidOutputReport { - type Vtable = IHidOutputReport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHidOutputReport { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x62cb2544_c896_4463_93c1_df9db053c450); -} +::windows_core::imp::com_interface!(IHidOutputReport, IHidOutputReport_Vtbl, 0x62cb2544_c896_4463_93c1_df9db053c450); #[repr(C)] #[doc(hidden)] pub struct IHidOutputReport_Vtbl { @@ -304,6 +196,7 @@ pub struct IHidOutputReport_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HidBooleanControl(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HidBooleanControl, ::windows_core::IUnknown, ::windows_core::IInspectable); impl HidBooleanControl { pub fn Id(&self) -> ::windows_core::Result { let this = self; @@ -350,19 +243,17 @@ impl ::windows_core::RuntimeType for HidBooleanControl { } unsafe impl ::windows_core::Interface for HidBooleanControl { type Vtable = IHidBooleanControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HidBooleanControl { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HidBooleanControl { const NAME: &'static str = "Windows.Devices.HumanInterfaceDevice.HidBooleanControl"; } -::windows_core::imp::interface_hierarchy!(HidBooleanControl, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for HidBooleanControl {} unsafe impl ::core::marker::Sync for HidBooleanControl {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HidBooleanControlDescription(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HidBooleanControlDescription, ::windows_core::IUnknown, ::windows_core::IInspectable); impl HidBooleanControlDescription { pub fn Id(&self) -> ::windows_core::Result { let this = self; @@ -409,7 +300,7 @@ impl HidBooleanControlDescription { } } pub fn IsAbsolute(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsAbsolute)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -421,19 +312,17 @@ impl ::windows_core::RuntimeType for HidBooleanControlDescription { } unsafe impl ::windows_core::Interface for HidBooleanControlDescription { type Vtable = IHidBooleanControlDescription_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HidBooleanControlDescription { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HidBooleanControlDescription { const NAME: &'static str = "Windows.Devices.HumanInterfaceDevice.HidBooleanControlDescription"; } -::windows_core::imp::interface_hierarchy!(HidBooleanControlDescription, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for HidBooleanControlDescription {} unsafe impl ::core::marker::Sync for HidBooleanControlDescription {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HidCollection(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HidCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); impl HidCollection { pub fn Id(&self) -> ::windows_core::Result { let this = self; @@ -469,22 +358,21 @@ impl ::windows_core::RuntimeType for HidCollection { } unsafe impl ::windows_core::Interface for HidCollection { type Vtable = IHidCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HidCollection { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HidCollection { const NAME: &'static str = "Windows.Devices.HumanInterfaceDevice.HidCollection"; } -::windows_core::imp::interface_hierarchy!(HidCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for HidCollection {} unsafe impl ::core::marker::Sync for HidCollection {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HidDevice(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HidDevice, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(HidDevice, super::super::Foundation::IClosable); impl HidDevice { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn VendorId(&self) -> ::windows_core::Result { @@ -661,20 +549,17 @@ impl ::windows_core::RuntimeType for HidDevice { } unsafe impl ::windows_core::Interface for HidDevice { type Vtable = IHidDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HidDevice { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HidDevice { const NAME: &'static str = "Windows.Devices.HumanInterfaceDevice.HidDevice"; } -::windows_core::imp::interface_hierarchy!(HidDevice, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for HidDevice {} unsafe impl ::core::marker::Send for HidDevice {} unsafe impl ::core::marker::Sync for HidDevice {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HidFeatureReport(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HidFeatureReport, ::windows_core::IUnknown, ::windows_core::IInspectable); impl HidFeatureReport { pub fn Id(&self) -> ::windows_core::Result { let this = self; @@ -696,10 +581,10 @@ impl HidFeatureReport { #[cfg(feature = "Storage_Streams")] pub fn SetData(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetData)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetData)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn GetBooleanControl(&self, usagepage: u16, usageid: u16) -> ::windows_core::Result { let this = self; @@ -741,19 +626,17 @@ impl ::windows_core::RuntimeType for HidFeatureReport { } unsafe impl ::windows_core::Interface for HidFeatureReport { type Vtable = IHidFeatureReport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HidFeatureReport { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HidFeatureReport { const NAME: &'static str = "Windows.Devices.HumanInterfaceDevice.HidFeatureReport"; } -::windows_core::imp::interface_hierarchy!(HidFeatureReport, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for HidFeatureReport {} unsafe impl ::core::marker::Sync for HidFeatureReport {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HidInputReport(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HidInputReport, ::windows_core::IUnknown, ::windows_core::IInspectable); impl HidInputReport { pub fn Id(&self) -> ::windows_core::Result { let this = self; @@ -829,19 +712,17 @@ impl ::windows_core::RuntimeType for HidInputReport { } unsafe impl ::windows_core::Interface for HidInputReport { type Vtable = IHidInputReport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HidInputReport { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HidInputReport { const NAME: &'static str = "Windows.Devices.HumanInterfaceDevice.HidInputReport"; } -::windows_core::imp::interface_hierarchy!(HidInputReport, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for HidInputReport {} unsafe impl ::core::marker::Sync for HidInputReport {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HidInputReportReceivedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HidInputReportReceivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl HidInputReportReceivedEventArgs { pub fn Report(&self) -> ::windows_core::Result { let this = self; @@ -856,19 +737,17 @@ impl ::windows_core::RuntimeType for HidInputReportReceivedEventArgs { } unsafe impl ::windows_core::Interface for HidInputReportReceivedEventArgs { type Vtable = IHidInputReportReceivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HidInputReportReceivedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HidInputReportReceivedEventArgs { const NAME: &'static str = "Windows.Devices.HumanInterfaceDevice.HidInputReportReceivedEventArgs"; } -::windows_core::imp::interface_hierarchy!(HidInputReportReceivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for HidInputReportReceivedEventArgs {} unsafe impl ::core::marker::Sync for HidInputReportReceivedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HidNumericControl(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HidNumericControl, ::windows_core::IUnknown, ::windows_core::IInspectable); impl HidNumericControl { pub fn Id(&self) -> ::windows_core::Result { let this = self; @@ -933,19 +812,17 @@ impl ::windows_core::RuntimeType for HidNumericControl { } unsafe impl ::windows_core::Interface for HidNumericControl { type Vtable = IHidNumericControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HidNumericControl { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HidNumericControl { const NAME: &'static str = "Windows.Devices.HumanInterfaceDevice.HidNumericControl"; } -::windows_core::imp::interface_hierarchy!(HidNumericControl, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for HidNumericControl {} unsafe impl ::core::marker::Sync for HidNumericControl {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HidNumericControlDescription(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HidNumericControlDescription, ::windows_core::IUnknown, ::windows_core::IInspectable); impl HidNumericControlDescription { pub fn Id(&self) -> ::windows_core::Result { let this = self; @@ -1067,19 +944,17 @@ impl ::windows_core::RuntimeType for HidNumericControlDescription { } unsafe impl ::windows_core::Interface for HidNumericControlDescription { type Vtable = IHidNumericControlDescription_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HidNumericControlDescription { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HidNumericControlDescription { const NAME: &'static str = "Windows.Devices.HumanInterfaceDevice.HidNumericControlDescription"; } -::windows_core::imp::interface_hierarchy!(HidNumericControlDescription, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for HidNumericControlDescription {} unsafe impl ::core::marker::Sync for HidNumericControlDescription {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HidOutputReport(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HidOutputReport, ::windows_core::IUnknown, ::windows_core::IInspectable); impl HidOutputReport { pub fn Id(&self) -> ::windows_core::Result { let this = self; @@ -1101,10 +976,10 @@ impl HidOutputReport { #[cfg(feature = "Storage_Streams")] pub fn SetData(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetData)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetData)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn GetBooleanControl(&self, usagepage: u16, usageid: u16) -> ::windows_core::Result { let this = self; @@ -1146,14 +1021,11 @@ impl ::windows_core::RuntimeType for HidOutputReport { } unsafe impl ::windows_core::Interface for HidOutputReport { type Vtable = IHidOutputReport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HidOutputReport { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HidOutputReport { const NAME: &'static str = "Windows.Devices.HumanInterfaceDevice.HidOutputReport"; } -::windows_core::imp::interface_hierarchy!(HidOutputReport, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for HidOutputReport {} unsafe impl ::core::marker::Sync for HidOutputReport {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Devices/I2c/Provider/impl.rs b/crates/libs/windows/src/Windows/Devices/I2c/Provider/impl.rs index 482e6e94aa..a7d8d70b20 100644 --- a/crates/libs/windows/src/Windows/Devices/I2c/Provider/impl.rs +++ b/crates/libs/windows/src/Windows/Devices/I2c/Provider/impl.rs @@ -24,7 +24,7 @@ impl II2cControllerProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait II2cDeviceProvider_Impl: Sized + super::super::super::Foundation::IClosable_Impl { @@ -113,7 +113,7 @@ impl II2cDeviceProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -146,6 +146,6 @@ impl II2cProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 28f711a3a7..e3f1169ed4 100644 --- a/crates/libs/windows/src/Windows/Devices/I2c/Provider/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/I2c/Provider/mod.rs @@ -1,6 +1,5 @@ -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct II2cControllerProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(II2cControllerProvider, II2cControllerProvider_Vtbl, 0x61c2bb82_4510_4163_a87c_4e15a9558980); +::windows_core::imp::interface_hierarchy!(II2cControllerProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); impl II2cControllerProvider { pub fn GetDeviceProvider(&self, settings: P0) -> ::windows_core::Result where @@ -13,25 +12,18 @@ impl II2cControllerProvider { } } } -::windows_core::imp::interface_hierarchy!(II2cControllerProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for II2cControllerProvider { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for II2cControllerProvider { - type Vtable = II2cControllerProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for II2cControllerProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x61c2bb82_4510_4163_a87c_4e15a9558980); -} #[repr(C)] #[doc(hidden)] pub struct II2cControllerProvider_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetDeviceProvider: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, settings: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct II2cDeviceProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(II2cDeviceProvider, II2cDeviceProvider_Vtbl, 0xad342654_57e8_453e_8329_d1e447d103a9); +::windows_core::imp::interface_hierarchy!(II2cDeviceProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(II2cDeviceProvider, super::super::super::Foundation::IClosable); impl II2cDeviceProvider { pub fn DeviceId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -74,21 +66,13 @@ impl II2cDeviceProvider { } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } } -::windows_core::imp::interface_hierarchy!(II2cDeviceProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for II2cDeviceProvider {} impl ::windows_core::RuntimeType for II2cDeviceProvider { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for II2cDeviceProvider { - type Vtable = II2cDeviceProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for II2cDeviceProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xad342654_57e8_453e_8329_d1e447d103a9); -} #[repr(C)] #[doc(hidden)] pub struct II2cDeviceProvider_Vtbl { @@ -101,9 +85,8 @@ pub struct II2cDeviceProvider_Vtbl { pub WriteRead: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, writeBuffer_array_size: u32, writebuffer: *const u8, readBuffer_array_size: u32, readbuffer: *mut u8) -> ::windows_core::HRESULT, pub WriteReadPartial: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, writeBuffer_array_size: u32, writebuffer: *const u8, readBuffer_array_size: u32, readbuffer: *mut u8, result__: *mut ProviderI2cTransferResult) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct II2cProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(II2cProvider, II2cProvider_Vtbl, 0x6f13083e_bf62_4fe2_a95a_f08999669818); +::windows_core::imp::interface_hierarchy!(II2cProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); impl II2cProvider { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -115,16 +98,9 @@ impl II2cProvider { } } } -::windows_core::imp::interface_hierarchy!(II2cProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for II2cProvider { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for II2cProvider { - type Vtable = II2cProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for II2cProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6f13083e_bf62_4fe2_a95a_f08999669818); -} #[repr(C)] #[doc(hidden)] pub struct II2cProvider_Vtbl { @@ -134,16 +110,7 @@ pub struct II2cProvider_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetControllersAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProviderI2cConnectionSettings(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProviderI2cConnectionSettings { - type Vtable = IProviderI2cConnectionSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProviderI2cConnectionSettings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe9db4e34_e510_44b7_809d_f2f85b555339); -} +::windows_core::imp::com_interface!(IProviderI2cConnectionSettings, IProviderI2cConnectionSettings_Vtbl, 0xe9db4e34_e510_44b7_809d_f2f85b555339); #[repr(C)] #[doc(hidden)] pub struct IProviderI2cConnectionSettings_Vtbl { @@ -158,6 +125,7 @@ pub struct IProviderI2cConnectionSettings_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ProviderI2cConnectionSettings(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ProviderI2cConnectionSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ProviderI2cConnectionSettings { pub fn SlaveAddress(&self) -> ::windows_core::Result { let this = self; @@ -198,14 +166,11 @@ impl ::windows_core::RuntimeType for ProviderI2cConnectionSettings { } unsafe impl ::windows_core::Interface for ProviderI2cConnectionSettings { type Vtable = IProviderI2cConnectionSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ProviderI2cConnectionSettings { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ProviderI2cConnectionSettings { const NAME: &'static str = "Windows.Devices.I2c.Provider.ProviderI2cConnectionSettings"; } -::windows_core::imp::interface_hierarchy!(ProviderI2cConnectionSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ProviderI2cConnectionSettings {} unsafe impl ::core::marker::Sync for ProviderI2cConnectionSettings {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Devices/I2c/impl.rs b/crates/libs/windows/src/Windows/Devices/I2c/impl.rs index 0cc50d4d89..ef4bc682b2 100644 --- a/crates/libs/windows/src/Windows/Devices/I2c/impl.rs +++ b/crates/libs/windows/src/Windows/Devices/I2c/impl.rs @@ -52,6 +52,6 @@ impl II2cDeviceStatics_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/Devices/I2c/mod.rs b/crates/libs/windows/src/Windows/Devices/I2c/mod.rs index b504f37c04..1f9da9fb90 100644 --- a/crates/libs/windows/src/Windows/Devices/I2c/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/I2c/mod.rs @@ -1,16 +1,7 @@ #[cfg(feature = "Devices_I2c_Provider")] #[doc = "Required features: `\"Devices_I2c_Provider\"`"] pub mod Provider; -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct II2cConnectionSettings(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for II2cConnectionSettings { - type Vtable = II2cConnectionSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for II2cConnectionSettings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf2db1307_ab6f_4639_a767_54536dc3460f); -} +::windows_core::imp::com_interface!(II2cConnectionSettings, II2cConnectionSettings_Vtbl, 0xf2db1307_ab6f_4639_a767_54536dc3460f); #[repr(C)] #[doc(hidden)] pub struct II2cConnectionSettings_Vtbl { @@ -22,48 +13,21 @@ pub struct II2cConnectionSettings_Vtbl { pub SharingMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut I2cSharingMode) -> ::windows_core::HRESULT, pub SetSharingMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: I2cSharingMode) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct II2cConnectionSettingsFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for II2cConnectionSettingsFactory { - type Vtable = II2cConnectionSettingsFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for II2cConnectionSettingsFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x81b586b3_9693_41b1_a243_ded4f6e66926); -} +::windows_core::imp::com_interface!(II2cConnectionSettingsFactory, II2cConnectionSettingsFactory_Vtbl, 0x81b586b3_9693_41b1_a243_ded4f6e66926); #[repr(C)] #[doc(hidden)] pub struct II2cConnectionSettingsFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, slaveaddress: i32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct II2cController(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for II2cController { - type Vtable = II2cController_Vtbl; -} -unsafe impl ::windows_core::ComInterface for II2cController { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc48ab1b2_87a0_4166_8e3e_b4b8f97cd729); -} +::windows_core::imp::com_interface!(II2cController, II2cController_Vtbl, 0xc48ab1b2_87a0_4166_8e3e_b4b8f97cd729); #[repr(C)] #[doc(hidden)] pub struct II2cController_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, settings: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct II2cControllerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for II2cControllerStatics { - type Vtable = II2cControllerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for II2cControllerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x40fc0365_5f05_4e7e_84bd_100db8e0aec5); -} +::windows_core::imp::com_interface!(II2cControllerStatics, II2cControllerStatics_Vtbl, 0x40fc0365_5f05_4e7e_84bd_100db8e0aec5); #[repr(C)] #[doc(hidden)] pub struct II2cControllerStatics_Vtbl { @@ -74,16 +38,7 @@ pub struct II2cControllerStatics_Vtbl { GetControllersAsync: usize, pub GetDefaultAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct II2cDevice(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for II2cDevice { - type Vtable = II2cDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for II2cDevice { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8636c136_b9c5_4f70_9449_cc46dc6f57eb); -} +::windows_core::imp::com_interface!(II2cDevice, II2cDevice_Vtbl, 0x8636c136_b9c5_4f70_9449_cc46dc6f57eb); #[repr(C)] #[doc(hidden)] pub struct II2cDevice_Vtbl { @@ -97,9 +52,8 @@ pub struct II2cDevice_Vtbl { pub WriteRead: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, writeBuffer_array_size: u32, writebuffer: *const u8, readBuffer_array_size: u32, readbuffer: *mut u8) -> ::windows_core::HRESULT, pub WriteReadPartial: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, writeBuffer_array_size: u32, writebuffer: *const u8, readBuffer_array_size: u32, readbuffer: *mut u8, result__: *mut I2cTransferResult) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct II2cDeviceStatics(::windows_core::IUnknown); +::windows_core::imp::com_interface!(II2cDeviceStatics, II2cDeviceStatics_Vtbl, 0x91a33be3_7334_4512_96bc_fbae9459f5f6); +::windows_core::imp::interface_hierarchy!(II2cDeviceStatics, ::windows_core::IUnknown, ::windows_core::IInspectable); impl II2cDeviceStatics { pub fn GetDeviceSelector(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -126,16 +80,9 @@ impl II2cDeviceStatics { } } } -::windows_core::imp::interface_hierarchy!(II2cDeviceStatics, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for II2cDeviceStatics { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for II2cDeviceStatics { - type Vtable = II2cDeviceStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for II2cDeviceStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x91a33be3_7334_4512_96bc_fbae9459f5f6); -} #[repr(C)] #[doc(hidden)] pub struct II2cDeviceStatics_Vtbl { @@ -147,6 +94,7 @@ pub struct II2cDeviceStatics_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct I2cConnectionSettings(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(I2cConnectionSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); impl I2cConnectionSettings { pub fn SlaveAddress(&self) -> ::windows_core::Result { let this = self; @@ -198,19 +146,17 @@ impl ::windows_core::RuntimeType for I2cConnectionSettings { } unsafe impl ::windows_core::Interface for I2cConnectionSettings { type Vtable = II2cConnectionSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for I2cConnectionSettings { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for I2cConnectionSettings { const NAME: &'static str = "Windows.Devices.I2c.I2cConnectionSettings"; } -::windows_core::imp::interface_hierarchy!(I2cConnectionSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for I2cConnectionSettings {} unsafe impl ::core::marker::Sync for I2cConnectionSettings {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct I2cController(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(I2cController, ::windows_core::IUnknown, ::windows_core::IInspectable); impl I2cController { pub fn GetDevice(&self, settings: P0) -> ::windows_core::Result where @@ -226,11 +172,11 @@ impl I2cController { #[cfg(all(feature = "Devices_I2c_Provider", feature = "Foundation_Collections"))] pub fn GetControllersAsync(provider: P0) -> ::windows_core::Result>> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::II2cControllerStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).GetControllersAsync)(::windows_core::Interface::as_raw(this), provider.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).GetControllersAsync)(::windows_core::Interface::as_raw(this), provider.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn GetDefaultAsync() -> ::windows_core::Result> { @@ -250,22 +196,21 @@ impl ::windows_core::RuntimeType for I2cController { } unsafe impl ::windows_core::Interface for I2cController { type Vtable = II2cController_Vtbl; -} -unsafe impl ::windows_core::ComInterface for I2cController { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for I2cController { const NAME: &'static str = "Windows.Devices.I2c.I2cController"; } -::windows_core::imp::interface_hierarchy!(I2cController, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for I2cController {} unsafe impl ::core::marker::Sync for I2cController {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct I2cDevice(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(I2cDevice, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(I2cDevice, super::super::Foundation::IClosable); impl I2cDevice { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn DeviceId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { @@ -347,15 +292,11 @@ impl ::windows_core::RuntimeType for I2cDevice { } unsafe impl ::windows_core::Interface for I2cDevice { type Vtable = II2cDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for I2cDevice { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for I2cDevice { const NAME: &'static str = "Windows.Devices.I2c.I2cDevice"; } -::windows_core::imp::interface_hierarchy!(I2cDevice, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for I2cDevice {} unsafe impl ::core::marker::Send for I2cDevice {} unsafe impl ::core::marker::Sync for I2cDevice {} #[repr(transparent)] 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 e58c8934f9..733e0e8772 100644 --- a/crates/libs/windows/src/Windows/Devices/Input/Preview/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Input/Preview/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGazeDevicePreview(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGazeDevicePreview { - type Vtable = IGazeDevicePreview_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGazeDevicePreview { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe79e7ee9_b389_11e7_b201_c8d3ffb75721); -} +::windows_core::imp::com_interface!(IGazeDevicePreview, IGazeDevicePreview_Vtbl, 0xe79e7ee9_b389_11e7_b201_c8d3ffb75721); #[repr(C)] #[doc(hidden)] pub struct IGazeDevicePreview_Vtbl { @@ -26,32 +17,14 @@ pub struct IGazeDevicePreview_Vtbl { #[cfg(not(all(feature = "Devices_HumanInterfaceDevice", feature = "Foundation_Collections")))] GetBooleanControlDescriptions: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGazeDeviceWatcherAddedPreviewEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGazeDeviceWatcherAddedPreviewEventArgs { - type Vtable = IGazeDeviceWatcherAddedPreviewEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGazeDeviceWatcherAddedPreviewEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe79e7eed_b389_11e7_b201_c8d3ffb75721); -} +::windows_core::imp::com_interface!(IGazeDeviceWatcherAddedPreviewEventArgs, IGazeDeviceWatcherAddedPreviewEventArgs_Vtbl, 0xe79e7eed_b389_11e7_b201_c8d3ffb75721); #[repr(C)] #[doc(hidden)] pub struct IGazeDeviceWatcherAddedPreviewEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Device: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGazeDeviceWatcherPreview(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGazeDeviceWatcherPreview { - type Vtable = IGazeDeviceWatcherPreview_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGazeDeviceWatcherPreview { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe79e7ee7_b389_11e7_b201_c8d3ffb75721); -} +::windows_core::imp::com_interface!(IGazeDeviceWatcherPreview, IGazeDeviceWatcherPreview_Vtbl, 0xe79e7ee7_b389_11e7_b201_c8d3ffb75721); #[repr(C)] #[doc(hidden)] pub struct IGazeDeviceWatcherPreview_Vtbl { @@ -67,48 +40,21 @@ pub struct IGazeDeviceWatcherPreview_Vtbl { pub Start: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Stop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGazeDeviceWatcherRemovedPreviewEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGazeDeviceWatcherRemovedPreviewEventArgs { - type Vtable = IGazeDeviceWatcherRemovedPreviewEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGazeDeviceWatcherRemovedPreviewEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf2631f08_0e3f_431f_a606_50b35af94a1c); -} +::windows_core::imp::com_interface!(IGazeDeviceWatcherRemovedPreviewEventArgs, IGazeDeviceWatcherRemovedPreviewEventArgs_Vtbl, 0xf2631f08_0e3f_431f_a606_50b35af94a1c); #[repr(C)] #[doc(hidden)] pub struct IGazeDeviceWatcherRemovedPreviewEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Device: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGazeDeviceWatcherUpdatedPreviewEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGazeDeviceWatcherUpdatedPreviewEventArgs { - type Vtable = IGazeDeviceWatcherUpdatedPreviewEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGazeDeviceWatcherUpdatedPreviewEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7fe830ef_7f08_4737_88e1_4a83ae4e4885); -} +::windows_core::imp::com_interface!(IGazeDeviceWatcherUpdatedPreviewEventArgs, IGazeDeviceWatcherUpdatedPreviewEventArgs_Vtbl, 0x7fe830ef_7f08_4737_88e1_4a83ae4e4885); #[repr(C)] #[doc(hidden)] pub struct IGazeDeviceWatcherUpdatedPreviewEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Device: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGazeEnteredPreviewEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGazeEnteredPreviewEventArgs { - type Vtable = IGazeEnteredPreviewEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGazeEnteredPreviewEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2567bf43_1225_489f_9dd1_daa7c50fbf4b); -} +::windows_core::imp::com_interface!(IGazeEnteredPreviewEventArgs, IGazeEnteredPreviewEventArgs_Vtbl, 0x2567bf43_1225_489f_9dd1_daa7c50fbf4b); #[repr(C)] #[doc(hidden)] pub struct IGazeEnteredPreviewEventArgs_Vtbl { @@ -117,16 +63,7 @@ pub struct IGazeEnteredPreviewEventArgs_Vtbl { pub SetHandled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, pub CurrentPoint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGazeExitedPreviewEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGazeExitedPreviewEventArgs { - type Vtable = IGazeExitedPreviewEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGazeExitedPreviewEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5d0af07e_7d83_40ef_9f0a_fbc1bbdcc5ac); -} +::windows_core::imp::com_interface!(IGazeExitedPreviewEventArgs, IGazeExitedPreviewEventArgs_Vtbl, 0x5d0af07e_7d83_40ef_9f0a_fbc1bbdcc5ac); #[repr(C)] #[doc(hidden)] pub struct IGazeExitedPreviewEventArgs_Vtbl { @@ -135,16 +72,7 @@ pub struct IGazeExitedPreviewEventArgs_Vtbl { pub SetHandled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, pub CurrentPoint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGazeInputSourcePreview(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGazeInputSourcePreview { - type Vtable = IGazeInputSourcePreview_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGazeInputSourcePreview { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe79e7ee8_b389_11e7_b201_c8d3ffb75721); -} +::windows_core::imp::com_interface!(IGazeInputSourcePreview, IGazeInputSourcePreview_Vtbl, 0xe79e7ee8_b389_11e7_b201_c8d3ffb75721); #[repr(C)] #[doc(hidden)] pub struct IGazeInputSourcePreview_Vtbl { @@ -156,16 +84,7 @@ pub struct IGazeInputSourcePreview_Vtbl { pub GazeExited: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveGazeExited: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGazeInputSourcePreviewStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGazeInputSourcePreviewStatics { - type Vtable = IGazeInputSourcePreviewStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGazeInputSourcePreviewStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe79e7ee6_b389_11e7_b201_c8d3ffb75721); -} +::windows_core::imp::com_interface!(IGazeInputSourcePreviewStatics, IGazeInputSourcePreviewStatics_Vtbl, 0xe79e7ee6_b389_11e7_b201_c8d3ffb75721); #[repr(C)] #[doc(hidden)] pub struct IGazeInputSourcePreviewStatics_Vtbl { @@ -173,16 +92,7 @@ pub struct IGazeInputSourcePreviewStatics_Vtbl { pub GetForCurrentView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateWatcher: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGazeMovedPreviewEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGazeMovedPreviewEventArgs { - type Vtable = IGazeMovedPreviewEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGazeMovedPreviewEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe79e7eeb_b389_11e7_b201_c8d3ffb75721); -} +::windows_core::imp::com_interface!(IGazeMovedPreviewEventArgs, IGazeMovedPreviewEventArgs_Vtbl, 0xe79e7eeb_b389_11e7_b201_c8d3ffb75721); #[repr(C)] #[doc(hidden)] pub struct IGazeMovedPreviewEventArgs_Vtbl { @@ -195,16 +105,7 @@ pub struct IGazeMovedPreviewEventArgs_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetIntermediatePoints: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGazePointPreview(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGazePointPreview { - type Vtable = IGazePointPreview_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGazePointPreview { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe79e7eea_b389_11e7_b201_c8d3ffb75721); -} +::windows_core::imp::com_interface!(IGazePointPreview, IGazePointPreview_Vtbl, 0xe79e7eea_b389_11e7_b201_c8d3ffb75721); #[repr(C)] #[doc(hidden)] pub struct IGazePointPreview_Vtbl { @@ -221,6 +122,7 @@ pub struct IGazePointPreview_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GazeDevicePreview(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GazeDevicePreview, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GazeDevicePreview { pub fn Id(&self) -> ::windows_core::Result { let this = self; @@ -281,19 +183,17 @@ impl ::windows_core::RuntimeType for GazeDevicePreview { } unsafe impl ::windows_core::Interface for GazeDevicePreview { type Vtable = IGazeDevicePreview_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GazeDevicePreview { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GazeDevicePreview { const NAME: &'static str = "Windows.Devices.Input.Preview.GazeDevicePreview"; } -::windows_core::imp::interface_hierarchy!(GazeDevicePreview, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GazeDevicePreview {} unsafe impl ::core::marker::Sync for GazeDevicePreview {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GazeDeviceWatcherAddedPreviewEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GazeDeviceWatcherAddedPreviewEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GazeDeviceWatcherAddedPreviewEventArgs { pub fn Device(&self) -> ::windows_core::Result { let this = self; @@ -308,19 +208,17 @@ impl ::windows_core::RuntimeType for GazeDeviceWatcherAddedPreviewEventArgs { } unsafe impl ::windows_core::Interface for GazeDeviceWatcherAddedPreviewEventArgs { type Vtable = IGazeDeviceWatcherAddedPreviewEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GazeDeviceWatcherAddedPreviewEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GazeDeviceWatcherAddedPreviewEventArgs { const NAME: &'static str = "Windows.Devices.Input.Preview.GazeDeviceWatcherAddedPreviewEventArgs"; } -::windows_core::imp::interface_hierarchy!(GazeDeviceWatcherAddedPreviewEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GazeDeviceWatcherAddedPreviewEventArgs {} unsafe impl ::core::marker::Sync for GazeDeviceWatcherAddedPreviewEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GazeDeviceWatcherPreview(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GazeDeviceWatcherPreview, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GazeDeviceWatcherPreview { pub fn Added(&self, handler: P0) -> ::windows_core::Result where @@ -392,19 +290,17 @@ impl ::windows_core::RuntimeType for GazeDeviceWatcherPreview { } unsafe impl ::windows_core::Interface for GazeDeviceWatcherPreview { type Vtable = IGazeDeviceWatcherPreview_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GazeDeviceWatcherPreview { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GazeDeviceWatcherPreview { const NAME: &'static str = "Windows.Devices.Input.Preview.GazeDeviceWatcherPreview"; } -::windows_core::imp::interface_hierarchy!(GazeDeviceWatcherPreview, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GazeDeviceWatcherPreview {} unsafe impl ::core::marker::Sync for GazeDeviceWatcherPreview {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GazeDeviceWatcherRemovedPreviewEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GazeDeviceWatcherRemovedPreviewEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GazeDeviceWatcherRemovedPreviewEventArgs { pub fn Device(&self) -> ::windows_core::Result { let this = self; @@ -419,19 +315,17 @@ impl ::windows_core::RuntimeType for GazeDeviceWatcherRemovedPreviewEventArgs { } unsafe impl ::windows_core::Interface for GazeDeviceWatcherRemovedPreviewEventArgs { type Vtable = IGazeDeviceWatcherRemovedPreviewEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GazeDeviceWatcherRemovedPreviewEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GazeDeviceWatcherRemovedPreviewEventArgs { const NAME: &'static str = "Windows.Devices.Input.Preview.GazeDeviceWatcherRemovedPreviewEventArgs"; } -::windows_core::imp::interface_hierarchy!(GazeDeviceWatcherRemovedPreviewEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GazeDeviceWatcherRemovedPreviewEventArgs {} unsafe impl ::core::marker::Sync for GazeDeviceWatcherRemovedPreviewEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GazeDeviceWatcherUpdatedPreviewEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GazeDeviceWatcherUpdatedPreviewEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GazeDeviceWatcherUpdatedPreviewEventArgs { pub fn Device(&self) -> ::windows_core::Result { let this = self; @@ -446,19 +340,17 @@ impl ::windows_core::RuntimeType for GazeDeviceWatcherUpdatedPreviewEventArgs { } unsafe impl ::windows_core::Interface for GazeDeviceWatcherUpdatedPreviewEventArgs { type Vtable = IGazeDeviceWatcherUpdatedPreviewEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GazeDeviceWatcherUpdatedPreviewEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GazeDeviceWatcherUpdatedPreviewEventArgs { const NAME: &'static str = "Windows.Devices.Input.Preview.GazeDeviceWatcherUpdatedPreviewEventArgs"; } -::windows_core::imp::interface_hierarchy!(GazeDeviceWatcherUpdatedPreviewEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GazeDeviceWatcherUpdatedPreviewEventArgs {} unsafe impl ::core::marker::Sync for GazeDeviceWatcherUpdatedPreviewEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GazeEnteredPreviewEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GazeEnteredPreviewEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GazeEnteredPreviewEventArgs { pub fn Handled(&self) -> ::windows_core::Result { let this = self; @@ -484,19 +376,17 @@ impl ::windows_core::RuntimeType for GazeEnteredPreviewEventArgs { } unsafe impl ::windows_core::Interface for GazeEnteredPreviewEventArgs { type Vtable = IGazeEnteredPreviewEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GazeEnteredPreviewEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GazeEnteredPreviewEventArgs { const NAME: &'static str = "Windows.Devices.Input.Preview.GazeEnteredPreviewEventArgs"; } -::windows_core::imp::interface_hierarchy!(GazeEnteredPreviewEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GazeEnteredPreviewEventArgs {} unsafe impl ::core::marker::Sync for GazeEnteredPreviewEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GazeExitedPreviewEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GazeExitedPreviewEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GazeExitedPreviewEventArgs { pub fn Handled(&self) -> ::windows_core::Result { let this = self; @@ -522,19 +412,17 @@ impl ::windows_core::RuntimeType for GazeExitedPreviewEventArgs { } unsafe impl ::windows_core::Interface for GazeExitedPreviewEventArgs { type Vtable = IGazeExitedPreviewEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GazeExitedPreviewEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GazeExitedPreviewEventArgs { const NAME: &'static str = "Windows.Devices.Input.Preview.GazeExitedPreviewEventArgs"; } -::windows_core::imp::interface_hierarchy!(GazeExitedPreviewEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GazeExitedPreviewEventArgs {} unsafe impl ::core::marker::Sync for GazeExitedPreviewEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GazeInputSourcePreview(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GazeInputSourcePreview, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GazeInputSourcePreview { pub fn GazeMoved(&self, handler: P0) -> ::windows_core::Result where @@ -601,19 +489,17 @@ impl ::windows_core::RuntimeType for GazeInputSourcePreview { } unsafe impl ::windows_core::Interface for GazeInputSourcePreview { type Vtable = IGazeInputSourcePreview_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GazeInputSourcePreview { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GazeInputSourcePreview { const NAME: &'static str = "Windows.Devices.Input.Preview.GazeInputSourcePreview"; } -::windows_core::imp::interface_hierarchy!(GazeInputSourcePreview, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GazeInputSourcePreview {} unsafe impl ::core::marker::Sync for GazeInputSourcePreview {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GazeMovedPreviewEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GazeMovedPreviewEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GazeMovedPreviewEventArgs { pub fn Handled(&self) -> ::windows_core::Result { let this = self; @@ -648,19 +534,17 @@ impl ::windows_core::RuntimeType for GazeMovedPreviewEventArgs { } unsafe impl ::windows_core::Interface for GazeMovedPreviewEventArgs { type Vtable = IGazeMovedPreviewEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GazeMovedPreviewEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GazeMovedPreviewEventArgs { const NAME: &'static str = "Windows.Devices.Input.Preview.GazeMovedPreviewEventArgs"; } -::windows_core::imp::interface_hierarchy!(GazeMovedPreviewEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GazeMovedPreviewEventArgs {} unsafe impl ::core::marker::Sync for GazeMovedPreviewEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GazePointPreview(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GazePointPreview, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GazePointPreview { pub fn SourceDevice(&self) -> ::windows_core::Result { let this = self; @@ -705,14 +589,11 @@ impl ::windows_core::RuntimeType for GazePointPreview { } unsafe impl ::windows_core::Interface for GazePointPreview { type Vtable = IGazePointPreview_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GazePointPreview { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GazePointPreview { const NAME: &'static str = "Windows.Devices.Input.Preview.GazePointPreview"; } -::windows_core::imp::interface_hierarchy!(GazePointPreview, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GazePointPreview {} unsafe impl ::core::marker::Sync for GazePointPreview {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Devices/Input/mod.rs b/crates/libs/windows/src/Windows/Devices/Input/mod.rs index 7fe71e2003..ddd618c939 100644 --- a/crates/libs/windows/src/Windows/Devices/Input/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Input/mod.rs @@ -1,32 +1,14 @@ #[cfg(feature = "Devices_Input_Preview")] #[doc = "Required features: `\"Devices_Input_Preview\"`"] pub mod Preview; -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKeyboardCapabilities(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKeyboardCapabilities { - type Vtable = IKeyboardCapabilities_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKeyboardCapabilities { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3a3f9b56_6798_4bbc_833e_0f34b17c65ff); -} +::windows_core::imp::com_interface!(IKeyboardCapabilities, IKeyboardCapabilities_Vtbl, 0x3a3f9b56_6798_4bbc_833e_0f34b17c65ff); #[repr(C)] #[doc(hidden)] pub struct IKeyboardCapabilities_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub KeyboardPresent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMouseCapabilities(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMouseCapabilities { - type Vtable = IMouseCapabilities_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMouseCapabilities { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbca5e023_7dd9_4b6b_9a92_55d43cb38f73); -} +::windows_core::imp::com_interface!(IMouseCapabilities, IMouseCapabilities_Vtbl, 0xbca5e023_7dd9_4b6b_9a92_55d43cb38f73); #[repr(C)] #[doc(hidden)] pub struct IMouseCapabilities_Vtbl { @@ -37,16 +19,7 @@ pub struct IMouseCapabilities_Vtbl { pub SwapButtons: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows_core::HRESULT, pub NumberOfButtons: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMouseDevice(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMouseDevice { - type Vtable = IMouseDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMouseDevice { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x88edf458_f2c8_49f4_be1f_c256b388bc11); -} +::windows_core::imp::com_interface!(IMouseDevice, IMouseDevice_Vtbl, 0x88edf458_f2c8_49f4_be1f_c256b388bc11); #[repr(C)] #[doc(hidden)] pub struct IMouseDevice_Vtbl { @@ -54,48 +27,21 @@ pub struct IMouseDevice_Vtbl { pub MouseMoved: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveMouseMoved: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMouseDeviceStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMouseDeviceStatics { - type Vtable = IMouseDeviceStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMouseDeviceStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x484a9045_6d70_49db_8e68_46ffbd17d38d); -} +::windows_core::imp::com_interface!(IMouseDeviceStatics, IMouseDeviceStatics_Vtbl, 0x484a9045_6d70_49db_8e68_46ffbd17d38d); #[repr(C)] #[doc(hidden)] pub struct IMouseDeviceStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetForCurrentView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMouseEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMouseEventArgs { - type Vtable = IMouseEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMouseEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf625aa5d_2354_4cc7_9230_96941c969fde); -} +::windows_core::imp::com_interface!(IMouseEventArgs, IMouseEventArgs_Vtbl, 0xf625aa5d_2354_4cc7_9230_96941c969fde); #[repr(C)] #[doc(hidden)] pub struct IMouseEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub MouseDelta: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut MouseDelta) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPenButtonListener(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPenButtonListener { - type Vtable = IPenButtonListener_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPenButtonListener { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8245c376_1ee3_53f7_b1f7_8334a16f2815); -} +::windows_core::imp::com_interface!(IPenButtonListener, IPenButtonListener_Vtbl, 0x8245c376_1ee3_53f7_b1f7_8334a16f2815); #[repr(C)] #[doc(hidden)] pub struct IPenButtonListener_Vtbl { @@ -110,48 +56,21 @@ pub struct IPenButtonListener_Vtbl { pub TailButtonLongPressed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveTailButtonLongPressed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPenButtonListenerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPenButtonListenerStatics { - type Vtable = IPenButtonListenerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPenButtonListenerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x19a8a584_862f_5f69_bfea_05f6584f133f); -} +::windows_core::imp::com_interface!(IPenButtonListenerStatics, IPenButtonListenerStatics_Vtbl, 0x19a8a584_862f_5f69_bfea_05f6584f133f); #[repr(C)] #[doc(hidden)] pub struct IPenButtonListenerStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetDefault: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPenDevice(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPenDevice { - type Vtable = IPenDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPenDevice { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x31856eba_a738_5a8c_b8f6_f97ef68d18ef); -} +::windows_core::imp::com_interface!(IPenDevice, IPenDevice_Vtbl, 0x31856eba_a738_5a8c_b8f6_f97ef68d18ef); #[repr(C)] #[doc(hidden)] pub struct IPenDevice_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub PenId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPenDevice2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPenDevice2 { - type Vtable = IPenDevice2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPenDevice2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0207d327_7fb8_5566_8c34_f8342037b7f9); -} +::windows_core::imp::com_interface!(IPenDevice2, IPenDevice2_Vtbl, 0x0207d327_7fb8_5566_8c34_f8342037b7f9); #[repr(C)] #[doc(hidden)] pub struct IPenDevice2_Vtbl { @@ -161,32 +80,14 @@ pub struct IPenDevice2_Vtbl { #[cfg(not(feature = "Devices_Haptics"))] SimpleHapticsController: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPenDeviceStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPenDeviceStatics { - type Vtable = IPenDeviceStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPenDeviceStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9dfbbe01_0966_5180_bcb4_b85060e39479); -} +::windows_core::imp::com_interface!(IPenDeviceStatics, IPenDeviceStatics_Vtbl, 0x9dfbbe01_0966_5180_bcb4_b85060e39479); #[repr(C)] #[doc(hidden)] pub struct IPenDeviceStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetFromPointerId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pointerid: u32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPenDockListener(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPenDockListener { - type Vtable = IPenDockListener_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPenDockListener { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x759f4d90_1dc0_55cb_ad18_b9101456f592); -} +::windows_core::imp::com_interface!(IPenDockListener, IPenDockListener_Vtbl, 0x759f4d90_1dc0_55cb_ad18_b9101456f592); #[repr(C)] #[doc(hidden)] pub struct IPenDockListener_Vtbl { @@ -199,107 +100,44 @@ pub struct IPenDockListener_Vtbl { pub Undocked: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveUndocked: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPenDockListenerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPenDockListenerStatics { - type Vtable = IPenDockListenerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPenDockListenerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcab75e9a_0016_5c72_969e_a97e11992a93); -} +::windows_core::imp::com_interface!(IPenDockListenerStatics, IPenDockListenerStatics_Vtbl, 0xcab75e9a_0016_5c72_969e_a97e11992a93); #[repr(C)] #[doc(hidden)] pub struct IPenDockListenerStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetDefault: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPenDockedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPenDockedEventArgs { - type Vtable = IPenDockedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPenDockedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfd4277c6_ca63_5d4e_9ed3_a28a54521c8c); -} +::windows_core::imp::com_interface!(IPenDockedEventArgs, IPenDockedEventArgs_Vtbl, 0xfd4277c6_ca63_5d4e_9ed3_a28a54521c8c); #[repr(C)] #[doc(hidden)] pub struct IPenDockedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPenTailButtonClickedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPenTailButtonClickedEventArgs { - type Vtable = IPenTailButtonClickedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPenTailButtonClickedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5d2fb7b6_6ad3_5d3e_ab29_05ea2410e390); -} +::windows_core::imp::com_interface!(IPenTailButtonClickedEventArgs, IPenTailButtonClickedEventArgs_Vtbl, 0x5d2fb7b6_6ad3_5d3e_ab29_05ea2410e390); #[repr(C)] #[doc(hidden)] pub struct IPenTailButtonClickedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPenTailButtonDoubleClickedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPenTailButtonDoubleClickedEventArgs { - type Vtable = IPenTailButtonDoubleClickedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPenTailButtonDoubleClickedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x846321a2_618a_5478_b04c_b358231da4a7); -} +::windows_core::imp::com_interface!(IPenTailButtonDoubleClickedEventArgs, IPenTailButtonDoubleClickedEventArgs_Vtbl, 0x846321a2_618a_5478_b04c_b358231da4a7); #[repr(C)] #[doc(hidden)] pub struct IPenTailButtonDoubleClickedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPenTailButtonLongPressedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPenTailButtonLongPressedEventArgs { - type Vtable = IPenTailButtonLongPressedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPenTailButtonLongPressedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf37c606e_c60a_5f42_b818_a53112406c13); -} +::windows_core::imp::com_interface!(IPenTailButtonLongPressedEventArgs, IPenTailButtonLongPressedEventArgs_Vtbl, 0xf37c606e_c60a_5f42_b818_a53112406c13); #[repr(C)] #[doc(hidden)] pub struct IPenTailButtonLongPressedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPenUndockedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPenUndockedEventArgs { - type Vtable = IPenUndockedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPenUndockedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xccd09150_261b_59e6_a5d4_c1964cd03feb); -} +::windows_core::imp::com_interface!(IPenUndockedEventArgs, IPenUndockedEventArgs_Vtbl, 0xccd09150_261b_59e6_a5d4_c1964cd03feb); #[repr(C)] #[doc(hidden)] pub struct IPenUndockedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPointerDevice(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPointerDevice { - type Vtable = IPointerDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPointerDevice { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x93c9bafc_ebcb_467e_82c6_276feae36b5a); -} +::windows_core::imp::com_interface!(IPointerDevice, IPointerDevice_Vtbl, 0x93c9bafc_ebcb_467e_82c6_276feae36b5a); #[repr(C)] #[doc(hidden)] pub struct IPointerDevice_Vtbl { @@ -314,32 +152,14 @@ pub struct IPointerDevice_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] SupportedUsages: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPointerDevice2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPointerDevice2 { - type Vtable = IPointerDevice2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPointerDevice2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf8a6d2a0_c484_489f_ae3e_30d2ee1ffd3e); -} +::windows_core::imp::com_interface!(IPointerDevice2, IPointerDevice2_Vtbl, 0xf8a6d2a0_c484_489f_ae3e_30d2ee1ffd3e); #[repr(C)] #[doc(hidden)] pub struct IPointerDevice2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub MaxPointersWithZDistance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPointerDeviceStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPointerDeviceStatics { - type Vtable = IPointerDeviceStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPointerDeviceStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd8b89aa1_d1c6_416e_bd8d_5790914dc563); -} +::windows_core::imp::com_interface!(IPointerDeviceStatics, IPointerDeviceStatics_Vtbl, 0xd8b89aa1_d1c6_416e_bd8d_5790914dc563); #[repr(C)] #[doc(hidden)] pub struct IPointerDeviceStatics_Vtbl { @@ -350,16 +170,7 @@ pub struct IPointerDeviceStatics_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetPointerDevices: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITouchCapabilities(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITouchCapabilities { - type Vtable = ITouchCapabilities_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITouchCapabilities { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x20dd55f9_13f1_46c8_9285_2c05fa3eda6f); -} +::windows_core::imp::com_interface!(ITouchCapabilities, ITouchCapabilities_Vtbl, 0x20dd55f9_13f1_46c8_9285_2c05fa3eda6f); #[repr(C)] #[doc(hidden)] pub struct ITouchCapabilities_Vtbl { @@ -370,6 +181,7 @@ pub struct ITouchCapabilities_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct KeyboardCapabilities(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(KeyboardCapabilities, ::windows_core::IUnknown, ::windows_core::IInspectable); impl KeyboardCapabilities { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -391,19 +203,17 @@ impl ::windows_core::RuntimeType for KeyboardCapabilities { } unsafe impl ::windows_core::Interface for KeyboardCapabilities { type Vtable = IKeyboardCapabilities_Vtbl; -} -unsafe impl ::windows_core::ComInterface for KeyboardCapabilities { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for KeyboardCapabilities { const NAME: &'static str = "Windows.Devices.Input.KeyboardCapabilities"; } -::windows_core::imp::interface_hierarchy!(KeyboardCapabilities, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for KeyboardCapabilities {} unsafe impl ::core::marker::Sync for KeyboardCapabilities {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MouseCapabilities(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MouseCapabilities, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MouseCapabilities { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -453,19 +263,17 @@ impl ::windows_core::RuntimeType for MouseCapabilities { } unsafe impl ::windows_core::Interface for MouseCapabilities { type Vtable = IMouseCapabilities_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MouseCapabilities { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MouseCapabilities { const NAME: &'static str = "Windows.Devices.Input.MouseCapabilities"; } -::windows_core::imp::interface_hierarchy!(MouseCapabilities, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MouseCapabilities {} unsafe impl ::core::marker::Sync for MouseCapabilities {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MouseDevice(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MouseDevice, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MouseDevice { pub fn MouseMoved(&self, handler: P0) -> ::windows_core::Result where @@ -498,17 +306,15 @@ impl ::windows_core::RuntimeType for MouseDevice { } unsafe impl ::windows_core::Interface for MouseDevice { type Vtable = IMouseDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MouseDevice { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MouseDevice { const NAME: &'static str = "Windows.Devices.Input.MouseDevice"; } -::windows_core::imp::interface_hierarchy!(MouseDevice, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MouseEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MouseEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MouseEventArgs { pub fn MouseDelta(&self) -> ::windows_core::Result { let this = self; @@ -523,17 +329,15 @@ impl ::windows_core::RuntimeType for MouseEventArgs { } unsafe impl ::windows_core::Interface for MouseEventArgs { type Vtable = IMouseEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MouseEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MouseEventArgs { const NAME: &'static str = "Windows.Devices.Input.MouseEventArgs"; } -::windows_core::imp::interface_hierarchy!(MouseEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PenButtonListener(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PenButtonListener, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PenButtonListener { pub fn IsSupported(&self) -> ::windows_core::Result { let this = self; @@ -615,19 +419,17 @@ impl ::windows_core::RuntimeType for PenButtonListener { } unsafe impl ::windows_core::Interface for PenButtonListener { type Vtable = IPenButtonListener_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PenButtonListener { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PenButtonListener { const NAME: &'static str = "Windows.Devices.Input.PenButtonListener"; } -::windows_core::imp::interface_hierarchy!(PenButtonListener, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PenButtonListener {} unsafe impl ::core::marker::Sync for PenButtonListener {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PenDevice(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PenDevice, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PenDevice { pub fn PenId(&self) -> ::windows_core::Result<::windows_core::GUID> { let this = self; @@ -639,7 +441,7 @@ impl PenDevice { #[doc = "Required features: `\"Devices_Haptics\"`"] #[cfg(feature = "Devices_Haptics")] pub fn SimpleHapticsController(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SimpleHapticsController)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -662,19 +464,17 @@ impl ::windows_core::RuntimeType for PenDevice { } unsafe impl ::windows_core::Interface for PenDevice { type Vtable = IPenDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PenDevice { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PenDevice { const NAME: &'static str = "Windows.Devices.Input.PenDevice"; } -::windows_core::imp::interface_hierarchy!(PenDevice, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PenDevice {} unsafe impl ::core::marker::Sync for PenDevice {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PenDockListener(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PenDockListener, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PenDockListener { pub fn IsSupported(&self) -> ::windows_core::Result { let this = self; @@ -742,114 +542,102 @@ impl ::windows_core::RuntimeType for PenDockListener { } unsafe impl ::windows_core::Interface for PenDockListener { type Vtable = IPenDockListener_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PenDockListener { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PenDockListener { const NAME: &'static str = "Windows.Devices.Input.PenDockListener"; } -::windows_core::imp::interface_hierarchy!(PenDockListener, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PenDockListener {} unsafe impl ::core::marker::Sync for PenDockListener {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PenDockedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PenDockedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PenDockedEventArgs {} impl ::windows_core::RuntimeType for PenDockedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_class::(); } unsafe impl ::windows_core::Interface for PenDockedEventArgs { type Vtable = IPenDockedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PenDockedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PenDockedEventArgs { const NAME: &'static str = "Windows.Devices.Input.PenDockedEventArgs"; } -::windows_core::imp::interface_hierarchy!(PenDockedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PenDockedEventArgs {} unsafe impl ::core::marker::Sync for PenDockedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PenTailButtonClickedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PenTailButtonClickedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PenTailButtonClickedEventArgs {} impl ::windows_core::RuntimeType for PenTailButtonClickedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_class::(); } unsafe impl ::windows_core::Interface for PenTailButtonClickedEventArgs { type Vtable = IPenTailButtonClickedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PenTailButtonClickedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PenTailButtonClickedEventArgs { const NAME: &'static str = "Windows.Devices.Input.PenTailButtonClickedEventArgs"; } -::windows_core::imp::interface_hierarchy!(PenTailButtonClickedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PenTailButtonClickedEventArgs {} unsafe impl ::core::marker::Sync for PenTailButtonClickedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PenTailButtonDoubleClickedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PenTailButtonDoubleClickedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PenTailButtonDoubleClickedEventArgs {} impl ::windows_core::RuntimeType for PenTailButtonDoubleClickedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_class::(); } unsafe impl ::windows_core::Interface for PenTailButtonDoubleClickedEventArgs { type Vtable = IPenTailButtonDoubleClickedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PenTailButtonDoubleClickedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PenTailButtonDoubleClickedEventArgs { const NAME: &'static str = "Windows.Devices.Input.PenTailButtonDoubleClickedEventArgs"; } -::windows_core::imp::interface_hierarchy!(PenTailButtonDoubleClickedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PenTailButtonDoubleClickedEventArgs {} unsafe impl ::core::marker::Sync for PenTailButtonDoubleClickedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PenTailButtonLongPressedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PenTailButtonLongPressedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PenTailButtonLongPressedEventArgs {} impl ::windows_core::RuntimeType for PenTailButtonLongPressedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_class::(); } unsafe impl ::windows_core::Interface for PenTailButtonLongPressedEventArgs { type Vtable = IPenTailButtonLongPressedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PenTailButtonLongPressedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PenTailButtonLongPressedEventArgs { const NAME: &'static str = "Windows.Devices.Input.PenTailButtonLongPressedEventArgs"; } -::windows_core::imp::interface_hierarchy!(PenTailButtonLongPressedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PenTailButtonLongPressedEventArgs {} unsafe impl ::core::marker::Sync for PenTailButtonLongPressedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PenUndockedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PenUndockedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PenUndockedEventArgs {} impl ::windows_core::RuntimeType for PenUndockedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_class::(); } unsafe impl ::windows_core::Interface for PenUndockedEventArgs { type Vtable = IPenUndockedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PenUndockedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PenUndockedEventArgs { const NAME: &'static str = "Windows.Devices.Input.PenUndockedEventArgs"; } -::windows_core::imp::interface_hierarchy!(PenUndockedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PenUndockedEventArgs {} unsafe impl ::core::marker::Sync for PenUndockedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PointerDevice(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PointerDevice, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PointerDevice { pub fn PointerDeviceType(&self) -> ::windows_core::Result { let this = self; @@ -896,7 +684,7 @@ impl PointerDevice { } } pub fn MaxPointersWithZDistance(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MaxPointersWithZDistance)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -927,17 +715,15 @@ impl ::windows_core::RuntimeType for PointerDevice { } unsafe impl ::windows_core::Interface for PointerDevice { type Vtable = IPointerDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PointerDevice { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PointerDevice { const NAME: &'static str = "Windows.Devices.Input.PointerDevice"; } -::windows_core::imp::interface_hierarchy!(PointerDevice, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct TouchCapabilities(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(TouchCapabilities, ::windows_core::IUnknown, ::windows_core::IInspectable); impl TouchCapabilities { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -966,14 +752,11 @@ impl ::windows_core::RuntimeType for TouchCapabilities { } unsafe impl ::windows_core::Interface for TouchCapabilities { type Vtable = ITouchCapabilities_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TouchCapabilities { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for TouchCapabilities { const NAME: &'static str = "Windows.Devices.Input.TouchCapabilities"; } -::windows_core::imp::interface_hierarchy!(TouchCapabilities, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for TouchCapabilities {} unsafe impl ::core::marker::Sync for TouchCapabilities {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Devices/Lights/Effects/impl.rs b/crates/libs/windows/src/Windows/Devices/Lights/Effects/impl.rs index 427c3fdd1b..def6e4cc05 100644 --- a/crates/libs/windows/src/Windows/Devices/Lights/Effects/impl.rs +++ b/crates/libs/windows/src/Windows/Devices/Lights/Effects/impl.rs @@ -30,6 +30,6 @@ impl ILampArrayEffect_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 428ba26629..08ef322a2c 100644 --- a/crates/libs/windows/src/Windows/Devices/Lights/Effects/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Lights/Effects/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILampArrayBitmapEffect(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILampArrayBitmapEffect { - type Vtable = ILampArrayBitmapEffect_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILampArrayBitmapEffect { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3238e065_d877_4627_89e5_2a88f7052fa6); -} +::windows_core::imp::com_interface!(ILampArrayBitmapEffect, ILampArrayBitmapEffect_Vtbl, 0x3238e065_d877_4627_89e5_2a88f7052fa6); #[repr(C)] #[doc(hidden)] pub struct ILampArrayBitmapEffect_Vtbl { @@ -22,32 +13,14 @@ pub struct ILampArrayBitmapEffect_Vtbl { pub BitmapRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveBitmapRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILampArrayBitmapEffectFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILampArrayBitmapEffectFactory { - type Vtable = ILampArrayBitmapEffectFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILampArrayBitmapEffectFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x13608090_e336_4c8f_9053_a92407ca7b1d); -} +::windows_core::imp::com_interface!(ILampArrayBitmapEffectFactory, ILampArrayBitmapEffectFactory_Vtbl, 0x13608090_e336_4c8f_9053_a92407ca7b1d); #[repr(C)] #[doc(hidden)] pub struct ILampArrayBitmapEffectFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lamparray: *mut ::core::ffi::c_void, lampIndexes_array_size: u32, lampindexes: *const i32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILampArrayBitmapRequestedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILampArrayBitmapRequestedEventArgs { - type Vtable = ILampArrayBitmapRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILampArrayBitmapRequestedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc8b4af9e_fe63_4d51_babd_619defb454ba); -} +::windows_core::imp::com_interface!(ILampArrayBitmapRequestedEventArgs, ILampArrayBitmapRequestedEventArgs_Vtbl, 0xc8b4af9e_fe63_4d51_babd_619defb454ba); #[repr(C)] #[doc(hidden)] pub struct ILampArrayBitmapRequestedEventArgs_Vtbl { @@ -58,16 +31,7 @@ pub struct ILampArrayBitmapRequestedEventArgs_Vtbl { #[cfg(not(feature = "Graphics_Imaging"))] UpdateBitmap: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILampArrayBlinkEffect(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILampArrayBlinkEffect { - type Vtable = ILampArrayBlinkEffect_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILampArrayBlinkEffect { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xebbf35f6_2fc5_4bb3_b3c3_6221a7680d13); -} +::windows_core::imp::com_interface!(ILampArrayBlinkEffect, ILampArrayBlinkEffect_Vtbl, 0xebbf35f6_2fc5_4bb3_b3c3_6221a7680d13); #[repr(C)] #[doc(hidden)] pub struct ILampArrayBlinkEffect_Vtbl { @@ -95,32 +59,14 @@ pub struct ILampArrayBlinkEffect_Vtbl { pub RepetitionMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut LampArrayRepetitionMode) -> ::windows_core::HRESULT, pub SetRepetitionMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: LampArrayRepetitionMode) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILampArrayBlinkEffectFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILampArrayBlinkEffectFactory { - type Vtable = ILampArrayBlinkEffectFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILampArrayBlinkEffectFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x879f1d97_9f50_49b2_a56f_013aa08d55e0); -} +::windows_core::imp::com_interface!(ILampArrayBlinkEffectFactory, ILampArrayBlinkEffectFactory_Vtbl, 0x879f1d97_9f50_49b2_a56f_013aa08d55e0); #[repr(C)] #[doc(hidden)] pub struct ILampArrayBlinkEffectFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lamparray: *mut ::core::ffi::c_void, lampIndexes_array_size: u32, lampindexes: *const i32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILampArrayColorRampEffect(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILampArrayColorRampEffect { - type Vtable = ILampArrayColorRampEffect_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILampArrayColorRampEffect { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2b004437_40a7_432e_a0b9_0d570c2153ff); -} +::windows_core::imp::com_interface!(ILampArrayColorRampEffect, ILampArrayColorRampEffect_Vtbl, 0x2b004437_40a7_432e_a0b9_0d570c2153ff); #[repr(C)] #[doc(hidden)] pub struct ILampArrayColorRampEffect_Vtbl { @@ -140,32 +86,14 @@ pub struct ILampArrayColorRampEffect_Vtbl { pub CompletionBehavior: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut LampArrayEffectCompletionBehavior) -> ::windows_core::HRESULT, pub SetCompletionBehavior: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: LampArrayEffectCompletionBehavior) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILampArrayColorRampEffectFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILampArrayColorRampEffectFactory { - type Vtable = ILampArrayColorRampEffectFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILampArrayColorRampEffectFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x520bd133_0c74_4df5_bea7_4899e0266b0f); -} +::windows_core::imp::com_interface!(ILampArrayColorRampEffectFactory, ILampArrayColorRampEffectFactory_Vtbl, 0x520bd133_0c74_4df5_bea7_4899e0266b0f); #[repr(C)] #[doc(hidden)] pub struct ILampArrayColorRampEffectFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lamparray: *mut ::core::ffi::c_void, lampIndexes_array_size: u32, lampindexes: *const i32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILampArrayCustomEffect(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILampArrayCustomEffect { - type Vtable = ILampArrayCustomEffect_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILampArrayCustomEffect { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xec579170_3c34_4876_818b_5765f78b0ee4); -} +::windows_core::imp::com_interface!(ILampArrayCustomEffect, ILampArrayCustomEffect_Vtbl, 0xec579170_3c34_4876_818b_5765f78b0ee4); #[repr(C)] #[doc(hidden)] pub struct ILampArrayCustomEffect_Vtbl { @@ -177,25 +105,15 @@ pub struct ILampArrayCustomEffect_Vtbl { pub UpdateRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveUpdateRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILampArrayCustomEffectFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILampArrayCustomEffectFactory { - type Vtable = ILampArrayCustomEffectFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILampArrayCustomEffectFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x68b4774d_63e5_4af0_a58b_3e535b94e8c9); -} +::windows_core::imp::com_interface!(ILampArrayCustomEffectFactory, ILampArrayCustomEffectFactory_Vtbl, 0x68b4774d_63e5_4af0_a58b_3e535b94e8c9); #[repr(C)] #[doc(hidden)] pub struct ILampArrayCustomEffectFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lamparray: *mut ::core::ffi::c_void, lampIndexes_array_size: u32, lampindexes: *const i32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILampArrayEffect(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ILampArrayEffect, ILampArrayEffect_Vtbl, 0x11d45590_57fb_4546_b1ce_863107f740df); +::windows_core::imp::interface_hierarchy!(ILampArrayEffect, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ILampArrayEffect { pub fn ZIndex(&self) -> ::windows_core::Result { let this = self; @@ -209,16 +127,9 @@ impl ILampArrayEffect { unsafe { (::windows_core::Interface::vtable(this).SetZIndex)(::windows_core::Interface::as_raw(this), value).ok() } } } -::windows_core::imp::interface_hierarchy!(ILampArrayEffect, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for ILampArrayEffect { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for ILampArrayEffect { - type Vtable = ILampArrayEffect_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILampArrayEffect { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x11d45590_57fb_4546_b1ce_863107f740df); -} #[repr(C)] #[doc(hidden)] pub struct ILampArrayEffect_Vtbl { @@ -226,16 +137,7 @@ pub struct ILampArrayEffect_Vtbl { pub ZIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows_core::HRESULT, pub SetZIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILampArrayEffectPlaylist(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILampArrayEffectPlaylist { - type Vtable = ILampArrayEffectPlaylist_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILampArrayEffectPlaylist { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7de58bfe_6f61_4103_98c7_d6632f7b9169); -} +::windows_core::imp::com_interface!(ILampArrayEffectPlaylist, ILampArrayEffectPlaylist_Vtbl, 0x7de58bfe_6f61_4103_98c7_d6632f7b9169); #[repr(C)] #[doc(hidden)] pub struct ILampArrayEffectPlaylist_Vtbl { @@ -252,16 +154,7 @@ pub struct ILampArrayEffectPlaylist_Vtbl { pub RepetitionMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut LampArrayRepetitionMode) -> ::windows_core::HRESULT, pub SetRepetitionMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: LampArrayRepetitionMode) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILampArrayEffectPlaylistStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILampArrayEffectPlaylistStatics { - type Vtable = ILampArrayEffectPlaylistStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILampArrayEffectPlaylistStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfb15235c_ea35_4c7f_a016_f3bfc6a6c47d); -} +::windows_core::imp::com_interface!(ILampArrayEffectPlaylistStatics, ILampArrayEffectPlaylistStatics_Vtbl, 0xfb15235c_ea35_4c7f_a016_f3bfc6a6c47d); #[repr(C)] #[doc(hidden)] pub struct ILampArrayEffectPlaylistStatics_Vtbl { @@ -279,16 +172,7 @@ pub struct ILampArrayEffectPlaylistStatics_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] PauseAll: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILampArraySolidEffect(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILampArraySolidEffect { - type Vtable = ILampArraySolidEffect_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILampArraySolidEffect { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x441f8213_43cc_4b33_80eb_c6ddde7dc8ed); -} +::windows_core::imp::com_interface!(ILampArraySolidEffect, ILampArraySolidEffect_Vtbl, 0x441f8213_43cc_4b33_80eb_c6ddde7dc8ed); #[repr(C)] #[doc(hidden)] pub struct ILampArraySolidEffect_Vtbl { @@ -308,32 +192,14 @@ pub struct ILampArraySolidEffect_Vtbl { pub CompletionBehavior: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut LampArrayEffectCompletionBehavior) -> ::windows_core::HRESULT, pub SetCompletionBehavior: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: LampArrayEffectCompletionBehavior) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILampArraySolidEffectFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILampArraySolidEffectFactory { - type Vtable = ILampArraySolidEffectFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILampArraySolidEffectFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf862a32c_5576_4341_961b_aee1f13cf9dd); -} +::windows_core::imp::com_interface!(ILampArraySolidEffectFactory, ILampArraySolidEffectFactory_Vtbl, 0xf862a32c_5576_4341_961b_aee1f13cf9dd); #[repr(C)] #[doc(hidden)] pub struct ILampArraySolidEffectFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lamparray: *mut ::core::ffi::c_void, lampIndexes_array_size: u32, lampindexes: *const i32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILampArrayUpdateRequestedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILampArrayUpdateRequestedEventArgs { - type Vtable = ILampArrayUpdateRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILampArrayUpdateRequestedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x73560d6a_576a_48af_8539_67ffa0ab3516); -} +::windows_core::imp::com_interface!(ILampArrayUpdateRequestedEventArgs, ILampArrayUpdateRequestedEventArgs_Vtbl, 0x73560d6a_576a_48af_8539_67ffa0ab3516); #[repr(C)] #[doc(hidden)] pub struct ILampArrayUpdateRequestedEventArgs_Vtbl { @@ -359,6 +225,8 @@ pub struct ILampArrayUpdateRequestedEventArgs_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LampArrayBitmapEffect(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LampArrayBitmapEffect, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(LampArrayBitmapEffect, ILampArrayEffect); impl LampArrayBitmapEffect { pub fn Duration(&self) -> ::windows_core::Result { let this = self; @@ -424,14 +292,14 @@ impl LampArrayBitmapEffect { }) } pub fn ZIndex(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ZIndex)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetZIndex(&self, value: i32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetZIndex)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc(hidden)] @@ -445,20 +313,17 @@ impl ::windows_core::RuntimeType for LampArrayBitmapEffect { } unsafe impl ::windows_core::Interface for LampArrayBitmapEffect { type Vtable = ILampArrayBitmapEffect_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LampArrayBitmapEffect { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LampArrayBitmapEffect { const NAME: &'static str = "Windows.Devices.Lights.Effects.LampArrayBitmapEffect"; } -::windows_core::imp::interface_hierarchy!(LampArrayBitmapEffect, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for LampArrayBitmapEffect {} unsafe impl ::core::marker::Send for LampArrayBitmapEffect {} unsafe impl ::core::marker::Sync for LampArrayBitmapEffect {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LampArrayBitmapRequestedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LampArrayBitmapRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl LampArrayBitmapRequestedEventArgs { pub fn SinceStarted(&self) -> ::windows_core::Result { let this = self; @@ -482,19 +347,18 @@ impl ::windows_core::RuntimeType for LampArrayBitmapRequestedEventArgs { } unsafe impl ::windows_core::Interface for LampArrayBitmapRequestedEventArgs { type Vtable = ILampArrayBitmapRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LampArrayBitmapRequestedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LampArrayBitmapRequestedEventArgs { const NAME: &'static str = "Windows.Devices.Lights.Effects.LampArrayBitmapRequestedEventArgs"; } -::windows_core::imp::interface_hierarchy!(LampArrayBitmapRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for LampArrayBitmapRequestedEventArgs {} unsafe impl ::core::marker::Sync for LampArrayBitmapRequestedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LampArrayBlinkEffect(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LampArrayBlinkEffect, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(LampArrayBlinkEffect, ILampArrayEffect); impl LampArrayBlinkEffect { #[doc = "Required features: `\"UI\"`"] #[cfg(feature = "UI")] @@ -598,14 +462,14 @@ impl LampArrayBlinkEffect { }) } pub fn ZIndex(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ZIndex)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetZIndex(&self, value: i32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetZIndex)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc(hidden)] @@ -619,20 +483,18 @@ impl ::windows_core::RuntimeType for LampArrayBlinkEffect { } unsafe impl ::windows_core::Interface for LampArrayBlinkEffect { type Vtable = ILampArrayBlinkEffect_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LampArrayBlinkEffect { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LampArrayBlinkEffect { const NAME: &'static str = "Windows.Devices.Lights.Effects.LampArrayBlinkEffect"; } -::windows_core::imp::interface_hierarchy!(LampArrayBlinkEffect, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for LampArrayBlinkEffect {} unsafe impl ::core::marker::Send for LampArrayBlinkEffect {} unsafe impl ::core::marker::Sync for LampArrayBlinkEffect {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LampArrayColorRampEffect(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LampArrayColorRampEffect, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(LampArrayColorRampEffect, ILampArrayEffect); impl LampArrayColorRampEffect { #[doc = "Required features: `\"UI\"`"] #[cfg(feature = "UI")] @@ -692,14 +554,14 @@ impl LampArrayColorRampEffect { }) } pub fn ZIndex(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ZIndex)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetZIndex(&self, value: i32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetZIndex)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc(hidden)] @@ -713,20 +575,18 @@ impl ::windows_core::RuntimeType for LampArrayColorRampEffect { } unsafe impl ::windows_core::Interface for LampArrayColorRampEffect { type Vtable = ILampArrayColorRampEffect_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LampArrayColorRampEffect { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LampArrayColorRampEffect { const NAME: &'static str = "Windows.Devices.Lights.Effects.LampArrayColorRampEffect"; } -::windows_core::imp::interface_hierarchy!(LampArrayColorRampEffect, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for LampArrayColorRampEffect {} unsafe impl ::core::marker::Send for LampArrayColorRampEffect {} unsafe impl ::core::marker::Sync for LampArrayColorRampEffect {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LampArrayCustomEffect(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LampArrayCustomEffect, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(LampArrayCustomEffect, ILampArrayEffect); impl LampArrayCustomEffect { pub fn Duration(&self) -> ::windows_core::Result { let this = self; @@ -774,14 +634,14 @@ impl LampArrayCustomEffect { }) } pub fn ZIndex(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ZIndex)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetZIndex(&self, value: i32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetZIndex)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc(hidden)] @@ -795,20 +655,19 @@ impl ::windows_core::RuntimeType for LampArrayCustomEffect { } unsafe impl ::windows_core::Interface for LampArrayCustomEffect { type Vtable = ILampArrayCustomEffect_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LampArrayCustomEffect { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LampArrayCustomEffect { const NAME: &'static str = "Windows.Devices.Lights.Effects.LampArrayCustomEffect"; } -::windows_core::imp::interface_hierarchy!(LampArrayCustomEffect, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for LampArrayCustomEffect {} unsafe impl ::core::marker::Send for LampArrayCustomEffect {} unsafe impl ::core::marker::Sync for LampArrayCustomEffect {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LampArrayEffectPlaylist(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LampArrayEffectPlaylist, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(LampArrayEffectPlaylist, super::super::super::Foundation::Collections::IIterable::, super::super::super::Foundation::Collections::IVectorView::); impl LampArrayEffectPlaylist { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -820,7 +679,7 @@ impl LampArrayEffectPlaylist { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -828,10 +687,10 @@ impl LampArrayEffectPlaylist { } pub fn Append(&self, effect: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).Append)(::windows_core::Interface::as_raw(this), effect.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).Append)(::windows_core::Interface::as_raw(this), effect.into_param().abi()).ok() } } pub fn OverrideZIndex(&self, zindex: i32) -> ::windows_core::Result<()> { let this = self; @@ -886,30 +745,30 @@ impl LampArrayEffectPlaylist { #[cfg(feature = "Foundation_Collections")] pub fn StartAll(value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - Self::ILampArrayEffectPlaylistStatics(|this| unsafe { (::windows_core::Interface::vtable(this).StartAll)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() }) + Self::ILampArrayEffectPlaylistStatics(|this| unsafe { (::windows_core::Interface::vtable(this).StartAll)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() }) } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn StopAll(value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - Self::ILampArrayEffectPlaylistStatics(|this| unsafe { (::windows_core::Interface::vtable(this).StopAll)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() }) + Self::ILampArrayEffectPlaylistStatics(|this| unsafe { (::windows_core::Interface::vtable(this).StopAll)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() }) } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn PauseAll(value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - Self::ILampArrayEffectPlaylistStatics(|this| unsafe { (::windows_core::Interface::vtable(this).PauseAll)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() }) + Self::ILampArrayEffectPlaylistStatics(|this| unsafe { (::windows_core::Interface::vtable(this).PauseAll)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() }) } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetAt(&self, index: u32) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetAt)(::windows_core::Interface::as_raw(this), index, &mut result__).from_abi(result__) @@ -918,7 +777,7 @@ impl LampArrayEffectPlaylist { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Size(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Size)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -928,18 +787,18 @@ impl LampArrayEffectPlaylist { #[cfg(feature = "Foundation_Collections")] pub fn IndexOf(&self, value: P0, index: &mut u32) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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.try_into_param()?.abi(), index, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).IndexOf)(::windows_core::Interface::as_raw(this), value.into_param().abi(), index, &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetMany(&self, startindex: u32, items: &mut [::core::option::Option]) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetMany)(::windows_core::Interface::as_raw(this), startindex, items.len().try_into().unwrap(), ::core::mem::transmute_copy(&items), &mut result__).from_abi(result__) @@ -956,9 +815,7 @@ impl ::windows_core::RuntimeType for LampArrayEffectPlaylist { } unsafe impl ::windows_core::Interface for LampArrayEffectPlaylist { type Vtable = ILampArrayEffectPlaylist_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LampArrayEffectPlaylist { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LampArrayEffectPlaylist { const NAME: &'static str = "Windows.Devices.Lights.Effects.LampArrayEffectPlaylist"; @@ -976,29 +833,26 @@ impl ::core::iter::IntoIterator for &LampArrayEffectPlaylist { type Item = ILampArrayEffect; type IntoIter = super::super::super::Foundation::Collections::VectorViewIterator; fn into_iter(self) -> Self::IntoIter { - super::super::super::Foundation::Collections::VectorViewIterator::new(::windows_core::ComInterface::cast(self).ok()) + super::super::super::Foundation::Collections::VectorViewIterator::new(::windows_core::Interface::cast(self).ok()) } } -::windows_core::imp::interface_hierarchy!(LampArrayEffectPlaylist, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for LampArrayEffectPlaylist {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for LampArrayEffectPlaylist {} unsafe impl ::core::marker::Send for LampArrayEffectPlaylist {} unsafe impl ::core::marker::Sync for LampArrayEffectPlaylist {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LampArraySolidEffect(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LampArraySolidEffect, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(LampArraySolidEffect, ILampArrayEffect); impl LampArraySolidEffect { pub fn ZIndex(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ZIndex)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetZIndex(&self, value: i32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetZIndex)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"UI\"`"] @@ -1069,20 +923,17 @@ impl ::windows_core::RuntimeType for LampArraySolidEffect { } unsafe impl ::windows_core::Interface for LampArraySolidEffect { type Vtable = ILampArraySolidEffect_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LampArraySolidEffect { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LampArraySolidEffect { const NAME: &'static str = "Windows.Devices.Lights.Effects.LampArraySolidEffect"; } -::windows_core::imp::interface_hierarchy!(LampArraySolidEffect, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for LampArraySolidEffect {} unsafe impl ::core::marker::Send for LampArraySolidEffect {} unsafe impl ::core::marker::Sync for LampArraySolidEffect {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LampArrayUpdateRequestedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LampArrayUpdateRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl LampArrayUpdateRequestedEventArgs { pub fn SinceStarted(&self) -> ::windows_core::Result { let this = self; @@ -1121,14 +972,11 @@ impl ::windows_core::RuntimeType for LampArrayUpdateRequestedEventArgs { } unsafe impl ::windows_core::Interface for LampArrayUpdateRequestedEventArgs { type Vtable = ILampArrayUpdateRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LampArrayUpdateRequestedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LampArrayUpdateRequestedEventArgs { const NAME: &'static str = "Windows.Devices.Lights.Effects.LampArrayUpdateRequestedEventArgs"; } -::windows_core::imp::interface_hierarchy!(LampArrayUpdateRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for LampArrayUpdateRequestedEventArgs {} unsafe impl ::core::marker::Sync for LampArrayUpdateRequestedEventArgs {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Devices/Lights/mod.rs b/crates/libs/windows/src/Windows/Devices/Lights/mod.rs index d17f1978f5..5968466741 100644 --- a/crates/libs/windows/src/Windows/Devices/Lights/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Lights/mod.rs @@ -1,16 +1,7 @@ #[cfg(feature = "Devices_Lights_Effects")] #[doc = "Required features: `\"Devices_Lights_Effects\"`"] pub mod Effects; -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILamp(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILamp { - type Vtable = ILamp_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILamp { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x047d5b9a_ea45_4b2b_b1a2_14dff00bde7b); -} +::windows_core::imp::com_interface!(ILamp, ILamp_Vtbl, 0x047d5b9a_ea45_4b2b_b1a2_14dff00bde7b); #[repr(C)] #[doc(hidden)] pub struct ILamp_Vtbl { @@ -32,16 +23,7 @@ pub struct ILamp_Vtbl { pub AvailabilityChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveAvailabilityChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILampArray(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILampArray { - type Vtable = ILampArray_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILampArray { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7ace9787_c8a0_4e95_a1e0_d58676538649); -} +::windows_core::imp::com_interface!(ILampArray, ILampArray_Vtbl, 0x7ace9787_c8a0_4e95_a1e0_d58676538649); #[repr(C)] #[doc(hidden)] pub struct ILampArray_Vtbl { @@ -106,16 +88,7 @@ pub struct ILampArray_Vtbl { #[cfg(not(feature = "Storage_Streams"))] RequestMessageAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILampArray2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILampArray2 { - type Vtable = ILampArray2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILampArray2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x050c181f_60a8_4711_a1af_1b1b4c658ea2); -} +::windows_core::imp::com_interface!(ILampArray2, ILampArray2_Vtbl, 0x050c181f_60a8_4711_a1af_1b1b4c658ea2); #[repr(C)] #[doc(hidden)] pub struct ILampArray2_Vtbl { @@ -124,16 +97,7 @@ pub struct ILampArray2_Vtbl { pub AvailabilityChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveAvailabilityChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILampArrayStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILampArrayStatics { - type Vtable = ILampArrayStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILampArrayStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7bb8c98d_5fc1_452d_bb1f_4ad410d398ff); -} +::windows_core::imp::com_interface!(ILampArrayStatics, ILampArrayStatics_Vtbl, 0x7bb8c98d_5fc1_452d_bb1f_4ad410d398ff); #[repr(C)] #[doc(hidden)] pub struct ILampArrayStatics_Vtbl { @@ -141,32 +105,14 @@ pub struct ILampArrayStatics_Vtbl { pub GetDeviceSelector: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub FromIdAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, deviceid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILampAvailabilityChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILampAvailabilityChangedEventArgs { - type Vtable = ILampAvailabilityChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILampAvailabilityChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4f6e3ded_07a2_499d_9260_67e304532ba4); -} +::windows_core::imp::com_interface!(ILampAvailabilityChangedEventArgs, ILampAvailabilityChangedEventArgs_Vtbl, 0x4f6e3ded_07a2_499d_9260_67e304532ba4); #[repr(C)] #[doc(hidden)] pub struct ILampAvailabilityChangedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub IsAvailable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILampInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILampInfo { - type Vtable = ILampInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILampInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x30bb521c_0acf_49da_8c10_150b9cf62713); -} +::windows_core::imp::com_interface!(ILampInfo, ILampInfo_Vtbl, 0x30bb521c_0acf_49da_8c10_150b9cf62713); #[repr(C)] #[doc(hidden)] pub struct ILampInfo_Vtbl { @@ -191,16 +137,7 @@ pub struct ILampInfo_Vtbl { GetNearestSupportedColor: usize, pub UpdateLatency: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::TimeSpan) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILampStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILampStatics { - type Vtable = ILampStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILampStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa822416c_8885_401e_b821_8e8b38a8e8ec); -} +::windows_core::imp::com_interface!(ILampStatics, ILampStatics_Vtbl, 0xa822416c_8885_401e_b821_8e8b38a8e8ec); #[repr(C)] #[doc(hidden)] pub struct ILampStatics_Vtbl { @@ -212,9 +149,11 @@ pub struct ILampStatics_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Lamp(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Lamp, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(Lamp, super::super::Foundation::IClosable); impl Lamp { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn DeviceId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { @@ -311,20 +250,17 @@ impl ::windows_core::RuntimeType for Lamp { } unsafe impl ::windows_core::Interface for Lamp { type Vtable = ILamp_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Lamp { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Lamp { const NAME: &'static str = "Windows.Devices.Lights.Lamp"; } -::windows_core::imp::interface_hierarchy!(Lamp, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for Lamp {} unsafe impl ::core::marker::Send for Lamp {} unsafe impl ::core::marker::Sync for Lamp {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LampArray(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LampArray, ::windows_core::IUnknown, ::windows_core::IInspectable); impl LampArray { pub fn DeviceId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -489,12 +425,12 @@ impl LampArray { #[cfg(feature = "Storage_Streams")] pub fn SendMessageAsync(&self, messageid: i32, message: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).SendMessageAsync)(::windows_core::Interface::as_raw(this), messageid, message.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SendMessageAsync)(::windows_core::Interface::as_raw(this), messageid, message.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Storage_Streams\"`"] @@ -507,7 +443,7 @@ impl LampArray { } } pub fn IsAvailable(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsAvailable)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -517,14 +453,14 @@ impl LampArray { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveAvailabilityChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveAvailabilityChanged)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn GetDeviceSelector() -> ::windows_core::Result<::windows_core::HSTRING> { @@ -550,19 +486,17 @@ impl ::windows_core::RuntimeType for LampArray { } unsafe impl ::windows_core::Interface for LampArray { type Vtable = ILampArray_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LampArray { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LampArray { const NAME: &'static str = "Windows.Devices.Lights.LampArray"; } -::windows_core::imp::interface_hierarchy!(LampArray, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for LampArray {} unsafe impl ::core::marker::Sync for LampArray {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LampAvailabilityChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LampAvailabilityChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl LampAvailabilityChangedEventArgs { pub fn IsAvailable(&self) -> ::windows_core::Result { let this = self; @@ -577,19 +511,17 @@ impl ::windows_core::RuntimeType for LampAvailabilityChangedEventArgs { } unsafe impl ::windows_core::Interface for LampAvailabilityChangedEventArgs { type Vtable = ILampAvailabilityChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LampAvailabilityChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LampAvailabilityChangedEventArgs { const NAME: &'static str = "Windows.Devices.Lights.LampAvailabilityChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(LampAvailabilityChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for LampAvailabilityChangedEventArgs {} unsafe impl ::core::marker::Sync for LampAvailabilityChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LampInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LampInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl LampInfo { pub fn Index(&self) -> ::windows_core::Result { let this = self; @@ -673,14 +605,11 @@ impl ::windows_core::RuntimeType for LampInfo { } unsafe impl ::windows_core::Interface for LampInfo { type Vtable = ILampInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LampInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LampInfo { const NAME: &'static str = "Windows.Devices.Lights.LampInfo"; } -::windows_core::imp::interface_hierarchy!(LampInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for LampInfo {} unsafe impl ::core::marker::Sync for LampInfo {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Devices/Midi/impl.rs b/crates/libs/windows/src/Windows/Devices/Midi/impl.rs index c5fe2046f2..61b91ae02d 100644 --- a/crates/libs/windows/src/Windows/Devices/Midi/impl.rs +++ b/crates/libs/windows/src/Windows/Devices/Midi/impl.rs @@ -54,7 +54,7 @@ impl IMidiMessage_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Storage_Streams\"`"] @@ -101,6 +101,6 @@ impl IMidiOutPort_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/Devices/Midi/mod.rs b/crates/libs/windows/src/Windows/Devices/Midi/mod.rs index 5327f52784..f5e7581816 100644 --- a/crates/libs/windows/src/Windows/Devices/Midi/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Midi/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMidiChannelPressureMessage(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMidiChannelPressureMessage { - type Vtable = IMidiChannelPressureMessage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMidiChannelPressureMessage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbe1fa860_62b4_4d52_a37e_92e54d35b909); -} +::windows_core::imp::com_interface!(IMidiChannelPressureMessage, IMidiChannelPressureMessage_Vtbl, 0xbe1fa860_62b4_4d52_a37e_92e54d35b909); #[repr(C)] #[doc(hidden)] pub struct IMidiChannelPressureMessage_Vtbl { @@ -15,32 +6,14 @@ pub struct IMidiChannelPressureMessage_Vtbl { pub Channel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u8) -> ::windows_core::HRESULT, pub Pressure: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u8) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMidiChannelPressureMessageFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMidiChannelPressureMessageFactory { - type Vtable = IMidiChannelPressureMessageFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMidiChannelPressureMessageFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6218ed2f_2284_412a_94cf_10fb04842c6c); -} +::windows_core::imp::com_interface!(IMidiChannelPressureMessageFactory, IMidiChannelPressureMessageFactory_Vtbl, 0x6218ed2f_2284_412a_94cf_10fb04842c6c); #[repr(C)] #[doc(hidden)] pub struct IMidiChannelPressureMessageFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateMidiChannelPressureMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, channel: u8, pressure: u8, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMidiControlChangeMessage(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMidiControlChangeMessage { - type Vtable = IMidiControlChangeMessage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMidiControlChangeMessage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb7e15f83_780d_405f_b781_3e1598c97f40); -} +::windows_core::imp::com_interface!(IMidiControlChangeMessage, IMidiControlChangeMessage_Vtbl, 0xb7e15f83_780d_405f_b781_3e1598c97f40); #[repr(C)] #[doc(hidden)] pub struct IMidiControlChangeMessage_Vtbl { @@ -49,32 +22,14 @@ pub struct IMidiControlChangeMessage_Vtbl { pub Controller: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u8) -> ::windows_core::HRESULT, pub ControlValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u8) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMidiControlChangeMessageFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMidiControlChangeMessageFactory { - type Vtable = IMidiControlChangeMessageFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMidiControlChangeMessageFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2ab14321_956c_46ad_9752_f87f55052fe3); -} +::windows_core::imp::com_interface!(IMidiControlChangeMessageFactory, IMidiControlChangeMessageFactory_Vtbl, 0x2ab14321_956c_46ad_9752_f87f55052fe3); #[repr(C)] #[doc(hidden)] pub struct IMidiControlChangeMessageFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateMidiControlChangeMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, channel: u8, controller: u8, controlvalue: u8, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMidiInPort(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMidiInPort { - type Vtable = IMidiInPort_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMidiInPort { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd5c1d9db_971a_4eaf_a23d_ea19fe607ff9); -} +::windows_core::imp::com_interface!(IMidiInPort, IMidiInPort_Vtbl, 0xd5c1d9db_971a_4eaf_a23d_ea19fe607ff9); #[repr(C)] #[doc(hidden)] pub struct IMidiInPort_Vtbl { @@ -83,16 +38,7 @@ pub struct IMidiInPort_Vtbl { pub RemoveMessageReceived: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub DeviceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMidiInPortStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMidiInPortStatics { - type Vtable = IMidiInPortStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMidiInPortStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x44c439dc_67ff_4a6e_8bac_fdb6610cf296); -} +::windows_core::imp::com_interface!(IMidiInPortStatics, IMidiInPortStatics_Vtbl, 0x44c439dc_67ff_4a6e_8bac_fdb6610cf296); #[repr(C)] #[doc(hidden)] pub struct IMidiInPortStatics_Vtbl { @@ -100,9 +46,8 @@ pub struct IMidiInPortStatics_Vtbl { pub FromIdAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, deviceid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeviceSelector: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMidiMessage(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMidiMessage, IMidiMessage_Vtbl, 0x79767945_1094_4283_9be0_289fc0ee8334); +::windows_core::imp::interface_hierarchy!(IMidiMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IMidiMessage { pub fn Timestamp(&self) -> ::windows_core::Result { let this = self; @@ -128,16 +73,9 @@ impl IMidiMessage { } } } -::windows_core::imp::interface_hierarchy!(IMidiMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IMidiMessage { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IMidiMessage { - type Vtable = IMidiMessage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMidiMessage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x79767945_1094_4283_9be0_289fc0ee8334); -} #[repr(C)] #[doc(hidden)] pub struct IMidiMessage_Vtbl { @@ -149,32 +87,14 @@ pub struct IMidiMessage_Vtbl { RawData: usize, pub Type: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut MidiMessageType) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMidiMessageReceivedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMidiMessageReceivedEventArgs { - type Vtable = IMidiMessageReceivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMidiMessageReceivedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x76566e56_f328_4b51_907d_b3a8ce96bf80); -} +::windows_core::imp::com_interface!(IMidiMessageReceivedEventArgs, IMidiMessageReceivedEventArgs_Vtbl, 0x76566e56_f328_4b51_907d_b3a8ce96bf80); #[repr(C)] #[doc(hidden)] pub struct IMidiMessageReceivedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Message: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMidiNoteOffMessage(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMidiNoteOffMessage { - type Vtable = IMidiNoteOffMessage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMidiNoteOffMessage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x16fd8af4_198e_4d8f_a654_d305a293548f); -} +::windows_core::imp::com_interface!(IMidiNoteOffMessage, IMidiNoteOffMessage_Vtbl, 0x16fd8af4_198e_4d8f_a654_d305a293548f); #[repr(C)] #[doc(hidden)] pub struct IMidiNoteOffMessage_Vtbl { @@ -183,32 +103,14 @@ pub struct IMidiNoteOffMessage_Vtbl { pub Note: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u8) -> ::windows_core::HRESULT, pub Velocity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u8) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMidiNoteOffMessageFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMidiNoteOffMessageFactory { - type Vtable = IMidiNoteOffMessageFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMidiNoteOffMessageFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa6b240e0_a749_425f_8af4_a4d979cc15b5); -} +::windows_core::imp::com_interface!(IMidiNoteOffMessageFactory, IMidiNoteOffMessageFactory_Vtbl, 0xa6b240e0_a749_425f_8af4_a4d979cc15b5); #[repr(C)] #[doc(hidden)] pub struct IMidiNoteOffMessageFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateMidiNoteOffMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, channel: u8, note: u8, velocity: u8, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMidiNoteOnMessage(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMidiNoteOnMessage { - type Vtable = IMidiNoteOnMessage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMidiNoteOnMessage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe0224af5_6181_46dd_afa2_410004c057aa); -} +::windows_core::imp::com_interface!(IMidiNoteOnMessage, IMidiNoteOnMessage_Vtbl, 0xe0224af5_6181_46dd_afa2_410004c057aa); #[repr(C)] #[doc(hidden)] pub struct IMidiNoteOnMessage_Vtbl { @@ -217,41 +119,32 @@ pub struct IMidiNoteOnMessage_Vtbl { pub Note: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u8) -> ::windows_core::HRESULT, pub Velocity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u8) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMidiNoteOnMessageFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMidiNoteOnMessageFactory { - type Vtable = IMidiNoteOnMessageFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMidiNoteOnMessageFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9b4280a0_59c1_420e_b517_15a10aa9606b); -} +::windows_core::imp::com_interface!(IMidiNoteOnMessageFactory, IMidiNoteOnMessageFactory_Vtbl, 0x9b4280a0_59c1_420e_b517_15a10aa9606b); #[repr(C)] #[doc(hidden)] pub struct IMidiNoteOnMessageFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateMidiNoteOnMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, channel: u8, note: u8, velocity: u8, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMidiOutPort(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMidiOutPort, IMidiOutPort_Vtbl, 0x931d6d9f_57a2_4a3a_adb8_4640886f6693); +::windows_core::imp::interface_hierarchy!(IMidiOutPort, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IMidiOutPort, super::super::Foundation::IClosable); impl IMidiOutPort { pub fn SendMessage(&self, midimessage: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SendMessage)(::windows_core::Interface::as_raw(this), midimessage.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SendMessage)(::windows_core::Interface::as_raw(this), midimessage.into_param().abi()).ok() } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn SendBuffer(&self, mididata: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SendBuffer)(::windows_core::Interface::as_raw(this), mididata.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SendBuffer)(::windows_core::Interface::as_raw(this), mididata.into_param().abi()).ok() } } pub fn DeviceId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -261,21 +154,13 @@ impl IMidiOutPort { } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } } -::windows_core::imp::interface_hierarchy!(IMidiOutPort, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IMidiOutPort {} impl ::windows_core::RuntimeType for IMidiOutPort { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IMidiOutPort { - type Vtable = IMidiOutPort_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMidiOutPort { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x931d6d9f_57a2_4a3a_adb8_4640886f6693); -} #[repr(C)] #[doc(hidden)] pub struct IMidiOutPort_Vtbl { @@ -287,16 +172,7 @@ pub struct IMidiOutPort_Vtbl { SendBuffer: usize, pub DeviceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMidiOutPortStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMidiOutPortStatics { - type Vtable = IMidiOutPortStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMidiOutPortStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x065cc3e9_0f88_448b_9b64_a95826c65b8f); -} +::windows_core::imp::com_interface!(IMidiOutPortStatics, IMidiOutPortStatics_Vtbl, 0x065cc3e9_0f88_448b_9b64_a95826c65b8f); #[repr(C)] #[doc(hidden)] pub struct IMidiOutPortStatics_Vtbl { @@ -304,16 +180,7 @@ pub struct IMidiOutPortStatics_Vtbl { pub FromIdAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, deviceid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeviceSelector: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMidiPitchBendChangeMessage(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMidiPitchBendChangeMessage { - type Vtable = IMidiPitchBendChangeMessage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMidiPitchBendChangeMessage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x29df4cb1_2e9f_4faf_8c2b_9cb82a9079ca); -} +::windows_core::imp::com_interface!(IMidiPitchBendChangeMessage, IMidiPitchBendChangeMessage_Vtbl, 0x29df4cb1_2e9f_4faf_8c2b_9cb82a9079ca); #[repr(C)] #[doc(hidden)] pub struct IMidiPitchBendChangeMessage_Vtbl { @@ -321,32 +188,14 @@ pub struct IMidiPitchBendChangeMessage_Vtbl { pub Channel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u8) -> ::windows_core::HRESULT, pub Bend: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u16) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMidiPitchBendChangeMessageFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMidiPitchBendChangeMessageFactory { - type Vtable = IMidiPitchBendChangeMessageFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMidiPitchBendChangeMessageFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf5eedf55_cfc8_4926_b30e_a3622393306c); -} +::windows_core::imp::com_interface!(IMidiPitchBendChangeMessageFactory, IMidiPitchBendChangeMessageFactory_Vtbl, 0xf5eedf55_cfc8_4926_b30e_a3622393306c); #[repr(C)] #[doc(hidden)] pub struct IMidiPitchBendChangeMessageFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateMidiPitchBendChangeMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, channel: u8, bend: u16, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMidiPolyphonicKeyPressureMessage(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMidiPolyphonicKeyPressureMessage { - type Vtable = IMidiPolyphonicKeyPressureMessage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMidiPolyphonicKeyPressureMessage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1f7337fe_ace8_48a0_868e_7cdbf20f04d6); -} +::windows_core::imp::com_interface!(IMidiPolyphonicKeyPressureMessage, IMidiPolyphonicKeyPressureMessage_Vtbl, 0x1f7337fe_ace8_48a0_868e_7cdbf20f04d6); #[repr(C)] #[doc(hidden)] pub struct IMidiPolyphonicKeyPressureMessage_Vtbl { @@ -355,32 +204,14 @@ pub struct IMidiPolyphonicKeyPressureMessage_Vtbl { pub Note: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u8) -> ::windows_core::HRESULT, pub Pressure: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u8) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMidiPolyphonicKeyPressureMessageFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMidiPolyphonicKeyPressureMessageFactory { - type Vtable = IMidiPolyphonicKeyPressureMessageFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMidiPolyphonicKeyPressureMessageFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe98f483e_c4b3_4dd2_917c_e349815a1b3b); -} +::windows_core::imp::com_interface!(IMidiPolyphonicKeyPressureMessageFactory, IMidiPolyphonicKeyPressureMessageFactory_Vtbl, 0xe98f483e_c4b3_4dd2_917c_e349815a1b3b); #[repr(C)] #[doc(hidden)] pub struct IMidiPolyphonicKeyPressureMessageFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateMidiPolyphonicKeyPressureMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, channel: u8, note: u8, pressure: u8, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMidiProgramChangeMessage(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMidiProgramChangeMessage { - type Vtable = IMidiProgramChangeMessage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMidiProgramChangeMessage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9cbb3c78_7a3e_4327_aa98_20b8e4485af8); -} +::windows_core::imp::com_interface!(IMidiProgramChangeMessage, IMidiProgramChangeMessage_Vtbl, 0x9cbb3c78_7a3e_4327_aa98_20b8e4485af8); #[repr(C)] #[doc(hidden)] pub struct IMidiProgramChangeMessage_Vtbl { @@ -388,96 +219,42 @@ pub struct IMidiProgramChangeMessage_Vtbl { pub Channel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u8) -> ::windows_core::HRESULT, pub Program: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u8) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMidiProgramChangeMessageFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMidiProgramChangeMessageFactory { - type Vtable = IMidiProgramChangeMessageFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMidiProgramChangeMessageFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd6b04387_524b_4104_9c99_6572bfd2e261); -} +::windows_core::imp::com_interface!(IMidiProgramChangeMessageFactory, IMidiProgramChangeMessageFactory_Vtbl, 0xd6b04387_524b_4104_9c99_6572bfd2e261); #[repr(C)] #[doc(hidden)] pub struct IMidiProgramChangeMessageFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateMidiProgramChangeMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, channel: u8, program: u8, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMidiSongPositionPointerMessage(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMidiSongPositionPointerMessage { - type Vtable = IMidiSongPositionPointerMessage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMidiSongPositionPointerMessage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4ca50c56_ec5e_4ae4_a115_88dc57cc2b79); -} +::windows_core::imp::com_interface!(IMidiSongPositionPointerMessage, IMidiSongPositionPointerMessage_Vtbl, 0x4ca50c56_ec5e_4ae4_a115_88dc57cc2b79); #[repr(C)] #[doc(hidden)] pub struct IMidiSongPositionPointerMessage_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Beats: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u16) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMidiSongPositionPointerMessageFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMidiSongPositionPointerMessageFactory { - type Vtable = IMidiSongPositionPointerMessageFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMidiSongPositionPointerMessageFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9c00e996_f10b_4fea_b395_f5d6cf80f64e); -} +::windows_core::imp::com_interface!(IMidiSongPositionPointerMessageFactory, IMidiSongPositionPointerMessageFactory_Vtbl, 0x9c00e996_f10b_4fea_b395_f5d6cf80f64e); #[repr(C)] #[doc(hidden)] pub struct IMidiSongPositionPointerMessageFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateMidiSongPositionPointerMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, beats: u16, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMidiSongSelectMessage(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMidiSongSelectMessage { - type Vtable = IMidiSongSelectMessage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMidiSongSelectMessage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x49f0f27f_6d83_4741_a5bf_4629f6be974f); -} +::windows_core::imp::com_interface!(IMidiSongSelectMessage, IMidiSongSelectMessage_Vtbl, 0x49f0f27f_6d83_4741_a5bf_4629f6be974f); #[repr(C)] #[doc(hidden)] pub struct IMidiSongSelectMessage_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Song: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u8) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMidiSongSelectMessageFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMidiSongSelectMessageFactory { - type Vtable = IMidiSongSelectMessageFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMidiSongSelectMessageFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x848878e4_8748_4129_a66c_a05493f75daa); -} +::windows_core::imp::com_interface!(IMidiSongSelectMessageFactory, IMidiSongSelectMessageFactory_Vtbl, 0x848878e4_8748_4129_a66c_a05493f75daa); #[repr(C)] #[doc(hidden)] pub struct IMidiSongSelectMessageFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateMidiSongSelectMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, song: u8, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMidiSynthesizer(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMidiSynthesizer { - type Vtable = IMidiSynthesizer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMidiSynthesizer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf0da155e_db90_405f_b8ae_21d2e17f2e45); -} +::windows_core::imp::com_interface!(IMidiSynthesizer, IMidiSynthesizer_Vtbl, 0xf0da155e_db90_405f_b8ae_21d2e17f2e45); #[repr(C)] #[doc(hidden)] pub struct IMidiSynthesizer_Vtbl { @@ -489,16 +266,7 @@ pub struct IMidiSynthesizer_Vtbl { pub Volume: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows_core::HRESULT, pub SetVolume: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f64) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMidiSynthesizerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMidiSynthesizerStatics { - type Vtable = IMidiSynthesizerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMidiSynthesizerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4224eaa8_6629_4d6b_aa8f_d4521a5a31ce); -} +::windows_core::imp::com_interface!(IMidiSynthesizerStatics, IMidiSynthesizerStatics_Vtbl, 0x4224eaa8_6629_4d6b_aa8f_d4521a5a31ce); #[repr(C)] #[doc(hidden)] pub struct IMidiSynthesizerStatics_Vtbl { @@ -513,16 +281,7 @@ pub struct IMidiSynthesizerStatics_Vtbl { #[cfg(not(feature = "Devices_Enumeration"))] IsSynthesizer: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMidiSystemExclusiveMessageFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMidiSystemExclusiveMessageFactory { - type Vtable = IMidiSystemExclusiveMessageFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMidiSystemExclusiveMessageFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x083de222_3b74_4320_9b42_0ca8545f8a24); -} +::windows_core::imp::com_interface!(IMidiSystemExclusiveMessageFactory, IMidiSystemExclusiveMessageFactory_Vtbl, 0x083de222_3b74_4320_9b42_0ca8545f8a24); #[repr(C)] #[doc(hidden)] pub struct IMidiSystemExclusiveMessageFactory_Vtbl { @@ -532,16 +291,7 @@ pub struct IMidiSystemExclusiveMessageFactory_Vtbl { #[cfg(not(feature = "Storage_Streams"))] CreateMidiSystemExclusiveMessage: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMidiTimeCodeMessage(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMidiTimeCodeMessage { - type Vtable = IMidiTimeCodeMessage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMidiTimeCodeMessage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0bf7087d_fa63_4a1c_8deb_c0e87796a6d7); -} +::windows_core::imp::com_interface!(IMidiTimeCodeMessage, IMidiTimeCodeMessage_Vtbl, 0x0bf7087d_fa63_4a1c_8deb_c0e87796a6d7); #[repr(C)] #[doc(hidden)] pub struct IMidiTimeCodeMessage_Vtbl { @@ -549,16 +299,7 @@ pub struct IMidiTimeCodeMessage_Vtbl { pub FrameType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u8) -> ::windows_core::HRESULT, pub Values: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u8) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMidiTimeCodeMessageFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMidiTimeCodeMessageFactory { - type Vtable = IMidiTimeCodeMessageFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMidiTimeCodeMessageFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeb3099c5_771c_40de_b961_175a7489a85e); -} +::windows_core::imp::com_interface!(IMidiTimeCodeMessageFactory, IMidiTimeCodeMessageFactory_Vtbl, 0xeb3099c5_771c_40de_b961_175a7489a85e); #[repr(C)] #[doc(hidden)] pub struct IMidiTimeCodeMessageFactory_Vtbl { @@ -568,6 +309,8 @@ pub struct IMidiTimeCodeMessageFactory_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MidiActiveSensingMessage(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MidiActiveSensingMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(MidiActiveSensingMessage, IMidiMessage); impl MidiActiveSensingMessage { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -605,20 +348,18 @@ impl ::windows_core::RuntimeType for MidiActiveSensingMessage { } unsafe impl ::windows_core::Interface for MidiActiveSensingMessage { type Vtable = IMidiMessage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MidiActiveSensingMessage { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MidiActiveSensingMessage { const NAME: &'static str = "Windows.Devices.Midi.MidiActiveSensingMessage"; } -::windows_core::imp::interface_hierarchy!(MidiActiveSensingMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for MidiActiveSensingMessage {} unsafe impl ::core::marker::Send for MidiActiveSensingMessage {} unsafe impl ::core::marker::Sync for MidiActiveSensingMessage {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MidiChannelPressureMessage(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MidiChannelPressureMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(MidiChannelPressureMessage, IMidiMessage); impl MidiChannelPressureMessage { pub fn Channel(&self) -> ::windows_core::Result { let this = self; @@ -641,7 +382,7 @@ impl MidiChannelPressureMessage { }) } pub fn Timestamp(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Timestamp)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -650,14 +391,14 @@ impl MidiChannelPressureMessage { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn RawData(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RawData)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Type(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Type)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -674,20 +415,18 @@ impl ::windows_core::RuntimeType for MidiChannelPressureMessage { } unsafe impl ::windows_core::Interface for MidiChannelPressureMessage { type Vtable = IMidiChannelPressureMessage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MidiChannelPressureMessage { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MidiChannelPressureMessage { const NAME: &'static str = "Windows.Devices.Midi.MidiChannelPressureMessage"; } -::windows_core::imp::interface_hierarchy!(MidiChannelPressureMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for MidiChannelPressureMessage {} unsafe impl ::core::marker::Send for MidiChannelPressureMessage {} unsafe impl ::core::marker::Sync for MidiChannelPressureMessage {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MidiContinueMessage(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MidiContinueMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(MidiContinueMessage, IMidiMessage); impl MidiContinueMessage { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -725,20 +464,18 @@ impl ::windows_core::RuntimeType for MidiContinueMessage { } unsafe impl ::windows_core::Interface for MidiContinueMessage { type Vtable = IMidiMessage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MidiContinueMessage { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MidiContinueMessage { const NAME: &'static str = "Windows.Devices.Midi.MidiContinueMessage"; } -::windows_core::imp::interface_hierarchy!(MidiContinueMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for MidiContinueMessage {} unsafe impl ::core::marker::Send for MidiContinueMessage {} unsafe impl ::core::marker::Sync for MidiContinueMessage {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MidiControlChangeMessage(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MidiControlChangeMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(MidiControlChangeMessage, IMidiMessage); impl MidiControlChangeMessage { pub fn Channel(&self) -> ::windows_core::Result { let this = self; @@ -768,7 +505,7 @@ impl MidiControlChangeMessage { }) } pub fn Timestamp(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Timestamp)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -777,14 +514,14 @@ impl MidiControlChangeMessage { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn RawData(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RawData)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Type(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Type)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -801,23 +538,21 @@ impl ::windows_core::RuntimeType for MidiControlChangeMessage { } unsafe impl ::windows_core::Interface for MidiControlChangeMessage { type Vtable = IMidiControlChangeMessage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MidiControlChangeMessage { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MidiControlChangeMessage { const NAME: &'static str = "Windows.Devices.Midi.MidiControlChangeMessage"; } -::windows_core::imp::interface_hierarchy!(MidiControlChangeMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for MidiControlChangeMessage {} unsafe impl ::core::marker::Send for MidiControlChangeMessage {} unsafe impl ::core::marker::Sync for MidiControlChangeMessage {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MidiInPort(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MidiInPort, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(MidiInPort, super::super::Foundation::IClosable); impl MidiInPort { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn MessageReceived(&self, handler: P0) -> ::windows_core::Result @@ -864,20 +599,17 @@ impl ::windows_core::RuntimeType for MidiInPort { } unsafe impl ::windows_core::Interface for MidiInPort { type Vtable = IMidiInPort_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MidiInPort { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MidiInPort { const NAME: &'static str = "Windows.Devices.Midi.MidiInPort"; } -::windows_core::imp::interface_hierarchy!(MidiInPort, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for MidiInPort {} unsafe impl ::core::marker::Send for MidiInPort {} unsafe impl ::core::marker::Sync for MidiInPort {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MidiMessageReceivedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MidiMessageReceivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MidiMessageReceivedEventArgs { pub fn Message(&self) -> ::windows_core::Result { let this = self; @@ -892,22 +624,21 @@ impl ::windows_core::RuntimeType for MidiMessageReceivedEventArgs { } unsafe impl ::windows_core::Interface for MidiMessageReceivedEventArgs { type Vtable = IMidiMessageReceivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MidiMessageReceivedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MidiMessageReceivedEventArgs { const NAME: &'static str = "Windows.Devices.Midi.MidiMessageReceivedEventArgs"; } -::windows_core::imp::interface_hierarchy!(MidiMessageReceivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MidiMessageReceivedEventArgs {} unsafe impl ::core::marker::Sync for MidiMessageReceivedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MidiNoteOffMessage(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MidiNoteOffMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(MidiNoteOffMessage, IMidiMessage); impl MidiNoteOffMessage { pub fn Timestamp(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Timestamp)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -916,14 +647,14 @@ impl MidiNoteOffMessage { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn RawData(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RawData)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Type(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Type)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -967,23 +698,21 @@ impl ::windows_core::RuntimeType for MidiNoteOffMessage { } unsafe impl ::windows_core::Interface for MidiNoteOffMessage { type Vtable = IMidiNoteOffMessage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MidiNoteOffMessage { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MidiNoteOffMessage { const NAME: &'static str = "Windows.Devices.Midi.MidiNoteOffMessage"; } -::windows_core::imp::interface_hierarchy!(MidiNoteOffMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for MidiNoteOffMessage {} unsafe impl ::core::marker::Send for MidiNoteOffMessage {} unsafe impl ::core::marker::Sync for MidiNoteOffMessage {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MidiNoteOnMessage(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MidiNoteOnMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(MidiNoteOnMessage, IMidiMessage); impl MidiNoteOnMessage { pub fn Timestamp(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Timestamp)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -992,14 +721,14 @@ impl MidiNoteOnMessage { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn RawData(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RawData)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Type(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Type)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1043,40 +772,38 @@ impl ::windows_core::RuntimeType for MidiNoteOnMessage { } unsafe impl ::windows_core::Interface for MidiNoteOnMessage { type Vtable = IMidiNoteOnMessage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MidiNoteOnMessage { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MidiNoteOnMessage { const NAME: &'static str = "Windows.Devices.Midi.MidiNoteOnMessage"; } -::windows_core::imp::interface_hierarchy!(MidiNoteOnMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for MidiNoteOnMessage {} unsafe impl ::core::marker::Send for MidiNoteOnMessage {} unsafe impl ::core::marker::Sync for MidiNoteOnMessage {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MidiOutPort(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MidiOutPort, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(MidiOutPort, super::super::Foundation::IClosable, IMidiOutPort); impl MidiOutPort { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn SendMessage(&self, midimessage: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SendMessage)(::windows_core::Interface::as_raw(this), midimessage.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SendMessage)(::windows_core::Interface::as_raw(this), midimessage.into_param().abi()).ok() } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn SendBuffer(&self, mididata: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SendBuffer)(::windows_core::Interface::as_raw(this), mididata.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SendBuffer)(::windows_core::Interface::as_raw(this), mididata.into_param().abi()).ok() } } pub fn DeviceId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1108,24 +835,21 @@ impl ::windows_core::RuntimeType for MidiOutPort { } unsafe impl ::windows_core::Interface for MidiOutPort { type Vtable = IMidiOutPort_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MidiOutPort { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MidiOutPort { const NAME: &'static str = "Windows.Devices.Midi.MidiOutPort"; } -::windows_core::imp::interface_hierarchy!(MidiOutPort, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for MidiOutPort {} -impl ::windows_core::CanTryInto for MidiOutPort {} unsafe impl ::core::marker::Send for MidiOutPort {} unsafe impl ::core::marker::Sync for MidiOutPort {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MidiPitchBendChangeMessage(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MidiPitchBendChangeMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(MidiPitchBendChangeMessage, IMidiMessage); impl MidiPitchBendChangeMessage { pub fn Timestamp(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Timestamp)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1134,14 +858,14 @@ impl MidiPitchBendChangeMessage { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn RawData(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RawData)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Type(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Type)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1178,23 +902,21 @@ impl ::windows_core::RuntimeType for MidiPitchBendChangeMessage { } unsafe impl ::windows_core::Interface for MidiPitchBendChangeMessage { type Vtable = IMidiPitchBendChangeMessage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MidiPitchBendChangeMessage { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MidiPitchBendChangeMessage { const NAME: &'static str = "Windows.Devices.Midi.MidiPitchBendChangeMessage"; } -::windows_core::imp::interface_hierarchy!(MidiPitchBendChangeMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for MidiPitchBendChangeMessage {} unsafe impl ::core::marker::Send for MidiPitchBendChangeMessage {} unsafe impl ::core::marker::Sync for MidiPitchBendChangeMessage {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MidiPolyphonicKeyPressureMessage(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MidiPolyphonicKeyPressureMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(MidiPolyphonicKeyPressureMessage, IMidiMessage); impl MidiPolyphonicKeyPressureMessage { pub fn Timestamp(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Timestamp)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1203,14 +925,14 @@ impl MidiPolyphonicKeyPressureMessage { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn RawData(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RawData)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Type(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Type)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1254,23 +976,21 @@ impl ::windows_core::RuntimeType for MidiPolyphonicKeyPressureMessage { } unsafe impl ::windows_core::Interface for MidiPolyphonicKeyPressureMessage { type Vtable = IMidiPolyphonicKeyPressureMessage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MidiPolyphonicKeyPressureMessage { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MidiPolyphonicKeyPressureMessage { const NAME: &'static str = "Windows.Devices.Midi.MidiPolyphonicKeyPressureMessage"; } -::windows_core::imp::interface_hierarchy!(MidiPolyphonicKeyPressureMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for MidiPolyphonicKeyPressureMessage {} unsafe impl ::core::marker::Send for MidiPolyphonicKeyPressureMessage {} unsafe impl ::core::marker::Sync for MidiPolyphonicKeyPressureMessage {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MidiProgramChangeMessage(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MidiProgramChangeMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(MidiProgramChangeMessage, IMidiMessage); impl MidiProgramChangeMessage { pub fn Timestamp(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Timestamp)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1279,14 +999,14 @@ impl MidiProgramChangeMessage { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn RawData(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RawData)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Type(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Type)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1323,23 +1043,21 @@ impl ::windows_core::RuntimeType for MidiProgramChangeMessage { } unsafe impl ::windows_core::Interface for MidiProgramChangeMessage { type Vtable = IMidiProgramChangeMessage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MidiProgramChangeMessage { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MidiProgramChangeMessage { const NAME: &'static str = "Windows.Devices.Midi.MidiProgramChangeMessage"; } -::windows_core::imp::interface_hierarchy!(MidiProgramChangeMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for MidiProgramChangeMessage {} unsafe impl ::core::marker::Send for MidiProgramChangeMessage {} unsafe impl ::core::marker::Sync for MidiProgramChangeMessage {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MidiSongPositionPointerMessage(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MidiSongPositionPointerMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(MidiSongPositionPointerMessage, IMidiMessage); impl MidiSongPositionPointerMessage { pub fn Timestamp(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Timestamp)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1348,14 +1066,14 @@ impl MidiSongPositionPointerMessage { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn RawData(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RawData)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Type(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Type)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1385,23 +1103,21 @@ impl ::windows_core::RuntimeType for MidiSongPositionPointerMessage { } unsafe impl ::windows_core::Interface for MidiSongPositionPointerMessage { type Vtable = IMidiSongPositionPointerMessage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MidiSongPositionPointerMessage { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MidiSongPositionPointerMessage { const NAME: &'static str = "Windows.Devices.Midi.MidiSongPositionPointerMessage"; } -::windows_core::imp::interface_hierarchy!(MidiSongPositionPointerMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for MidiSongPositionPointerMessage {} unsafe impl ::core::marker::Send for MidiSongPositionPointerMessage {} unsafe impl ::core::marker::Sync for MidiSongPositionPointerMessage {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MidiSongSelectMessage(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MidiSongSelectMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(MidiSongSelectMessage, IMidiMessage); impl MidiSongSelectMessage { pub fn Timestamp(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Timestamp)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1410,14 +1126,14 @@ impl MidiSongSelectMessage { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn RawData(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RawData)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Type(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Type)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1447,20 +1163,18 @@ impl ::windows_core::RuntimeType for MidiSongSelectMessage { } unsafe impl ::windows_core::Interface for MidiSongSelectMessage { type Vtable = IMidiSongSelectMessage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MidiSongSelectMessage { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MidiSongSelectMessage { const NAME: &'static str = "Windows.Devices.Midi.MidiSongSelectMessage"; } -::windows_core::imp::interface_hierarchy!(MidiSongSelectMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for MidiSongSelectMessage {} unsafe impl ::core::marker::Send for MidiSongSelectMessage {} unsafe impl ::core::marker::Sync for MidiSongSelectMessage {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MidiStartMessage(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MidiStartMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(MidiStartMessage, IMidiMessage); impl MidiStartMessage { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1498,20 +1212,18 @@ impl ::windows_core::RuntimeType for MidiStartMessage { } unsafe impl ::windows_core::Interface for MidiStartMessage { type Vtable = IMidiMessage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MidiStartMessage { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MidiStartMessage { const NAME: &'static str = "Windows.Devices.Midi.MidiStartMessage"; } -::windows_core::imp::interface_hierarchy!(MidiStartMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for MidiStartMessage {} unsafe impl ::core::marker::Send for MidiStartMessage {} unsafe impl ::core::marker::Sync for MidiStartMessage {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MidiStopMessage(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MidiStopMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(MidiStopMessage, IMidiMessage); impl MidiStopMessage { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1549,43 +1261,41 @@ impl ::windows_core::RuntimeType for MidiStopMessage { } unsafe impl ::windows_core::Interface for MidiStopMessage { type Vtable = IMidiMessage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MidiStopMessage { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MidiStopMessage { const NAME: &'static str = "Windows.Devices.Midi.MidiStopMessage"; } -::windows_core::imp::interface_hierarchy!(MidiStopMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for MidiStopMessage {} unsafe impl ::core::marker::Send for MidiStopMessage {} unsafe impl ::core::marker::Sync for MidiStopMessage {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MidiSynthesizer(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MidiSynthesizer, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(MidiSynthesizer, super::super::Foundation::IClosable, IMidiOutPort); impl MidiSynthesizer { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn SendMessage(&self, midimessage: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SendMessage)(::windows_core::Interface::as_raw(this), midimessage.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn SendBuffer(&self, mididata: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SendBuffer)(::windows_core::Interface::as_raw(this), mididata.try_into_param()?.abi()).ok() } + 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() } } pub fn DeviceId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DeviceId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1650,21 +1360,18 @@ impl ::windows_core::RuntimeType for MidiSynthesizer { } unsafe impl ::windows_core::Interface for MidiSynthesizer { type Vtable = IMidiSynthesizer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MidiSynthesizer { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MidiSynthesizer { const NAME: &'static str = "Windows.Devices.Midi.MidiSynthesizer"; } -::windows_core::imp::interface_hierarchy!(MidiSynthesizer, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for MidiSynthesizer {} -impl ::windows_core::CanTryInto for MidiSynthesizer {} unsafe impl ::core::marker::Send for MidiSynthesizer {} unsafe impl ::core::marker::Sync for MidiSynthesizer {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MidiSystemExclusiveMessage(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MidiSystemExclusiveMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(MidiSystemExclusiveMessage, IMidiMessage); impl MidiSystemExclusiveMessage { pub fn Timestamp(&self) -> ::windows_core::Result { let this = self; @@ -1693,11 +1400,11 @@ impl MidiSystemExclusiveMessage { #[cfg(feature = "Storage_Streams")] pub fn CreateMidiSystemExclusiveMessage(rawdata: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IMidiSystemExclusiveMessageFactory(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateMidiSystemExclusiveMessage)(::windows_core::Interface::as_raw(this), rawdata.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateMidiSystemExclusiveMessage)(::windows_core::Interface::as_raw(this), rawdata.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -1711,20 +1418,18 @@ impl ::windows_core::RuntimeType for MidiSystemExclusiveMessage { } unsafe impl ::windows_core::Interface for MidiSystemExclusiveMessage { type Vtable = IMidiMessage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MidiSystemExclusiveMessage { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MidiSystemExclusiveMessage { const NAME: &'static str = "Windows.Devices.Midi.MidiSystemExclusiveMessage"; } -::windows_core::imp::interface_hierarchy!(MidiSystemExclusiveMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for MidiSystemExclusiveMessage {} unsafe impl ::core::marker::Send for MidiSystemExclusiveMessage {} unsafe impl ::core::marker::Sync for MidiSystemExclusiveMessage {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MidiSystemResetMessage(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MidiSystemResetMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(MidiSystemResetMessage, IMidiMessage); impl MidiSystemResetMessage { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1762,23 +1467,21 @@ impl ::windows_core::RuntimeType for MidiSystemResetMessage { } unsafe impl ::windows_core::Interface for MidiSystemResetMessage { type Vtable = IMidiMessage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MidiSystemResetMessage { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MidiSystemResetMessage { const NAME: &'static str = "Windows.Devices.Midi.MidiSystemResetMessage"; } -::windows_core::imp::interface_hierarchy!(MidiSystemResetMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for MidiSystemResetMessage {} unsafe impl ::core::marker::Send for MidiSystemResetMessage {} unsafe impl ::core::marker::Sync for MidiSystemResetMessage {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MidiTimeCodeMessage(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MidiTimeCodeMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(MidiTimeCodeMessage, IMidiMessage); impl MidiTimeCodeMessage { pub fn Timestamp(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Timestamp)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1787,14 +1490,14 @@ impl MidiTimeCodeMessage { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn RawData(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RawData)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Type(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Type)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1831,20 +1534,18 @@ impl ::windows_core::RuntimeType for MidiTimeCodeMessage { } unsafe impl ::windows_core::Interface for MidiTimeCodeMessage { type Vtable = IMidiTimeCodeMessage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MidiTimeCodeMessage { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MidiTimeCodeMessage { const NAME: &'static str = "Windows.Devices.Midi.MidiTimeCodeMessage"; } -::windows_core::imp::interface_hierarchy!(MidiTimeCodeMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for MidiTimeCodeMessage {} unsafe impl ::core::marker::Send for MidiTimeCodeMessage {} unsafe impl ::core::marker::Sync for MidiTimeCodeMessage {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MidiTimingClockMessage(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MidiTimingClockMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(MidiTimingClockMessage, IMidiMessage); impl MidiTimingClockMessage { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1882,20 +1583,18 @@ impl ::windows_core::RuntimeType for MidiTimingClockMessage { } unsafe impl ::windows_core::Interface for MidiTimingClockMessage { type Vtable = IMidiMessage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MidiTimingClockMessage { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MidiTimingClockMessage { const NAME: &'static str = "Windows.Devices.Midi.MidiTimingClockMessage"; } -::windows_core::imp::interface_hierarchy!(MidiTimingClockMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for MidiTimingClockMessage {} unsafe impl ::core::marker::Send for MidiTimingClockMessage {} unsafe impl ::core::marker::Sync for MidiTimingClockMessage {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MidiTuneRequestMessage(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MidiTuneRequestMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(MidiTuneRequestMessage, IMidiMessage); impl MidiTuneRequestMessage { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1933,15 +1632,11 @@ impl ::windows_core::RuntimeType for MidiTuneRequestMessage { } unsafe impl ::windows_core::Interface for MidiTuneRequestMessage { type Vtable = IMidiMessage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MidiTuneRequestMessage { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MidiTuneRequestMessage { const NAME: &'static str = "Windows.Devices.Midi.MidiTuneRequestMessage"; } -::windows_core::imp::interface_hierarchy!(MidiTuneRequestMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for MidiTuneRequestMessage {} unsafe impl ::core::marker::Send for MidiTuneRequestMessage {} unsafe impl ::core::marker::Sync for MidiTuneRequestMessage {} #[repr(transparent)] 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 b7184f006b..47a9327468 100644 --- a/crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBarcodeScannerDisableScannerRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBarcodeScannerDisableScannerRequest { - type Vtable = IBarcodeScannerDisableScannerRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBarcodeScannerDisableScannerRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x88ecf7c0_37b9_4275_8e77_c8e52ae5a9c8); -} +::windows_core::imp::com_interface!(IBarcodeScannerDisableScannerRequest, IBarcodeScannerDisableScannerRequest_Vtbl, 0x88ecf7c0_37b9_4275_8e77_c8e52ae5a9c8); #[repr(C)] #[doc(hidden)] pub struct IBarcodeScannerDisableScannerRequest_Vtbl { @@ -15,16 +6,7 @@ pub struct IBarcodeScannerDisableScannerRequest_Vtbl { pub ReportCompletedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ReportFailedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBarcodeScannerDisableScannerRequest2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBarcodeScannerDisableScannerRequest2 { - type Vtable = IBarcodeScannerDisableScannerRequest2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBarcodeScannerDisableScannerRequest2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xccdfe625_65c3_4ccc_b457_f39c7a9ea60d); -} +::windows_core::imp::com_interface!(IBarcodeScannerDisableScannerRequest2, IBarcodeScannerDisableScannerRequest2_Vtbl, 0xccdfe625_65c3_4ccc_b457_f39c7a9ea60d); #[repr(C)] #[doc(hidden)] pub struct IBarcodeScannerDisableScannerRequest2_Vtbl { @@ -32,16 +14,7 @@ pub struct IBarcodeScannerDisableScannerRequest2_Vtbl { pub ReportFailedWithFailedReasonAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, reason: i32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ReportFailedWithFailedReasonAndDescriptionAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, reason: i32, failedreasondescription: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBarcodeScannerDisableScannerRequestEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBarcodeScannerDisableScannerRequestEventArgs { - type Vtable = IBarcodeScannerDisableScannerRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBarcodeScannerDisableScannerRequestEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7006e142_e802_46f5_b604_352a15ce9232); -} +::windows_core::imp::com_interface!(IBarcodeScannerDisableScannerRequestEventArgs, IBarcodeScannerDisableScannerRequestEventArgs_Vtbl, 0x7006e142_e802_46f5_b604_352a15ce9232); #[repr(C)] #[doc(hidden)] pub struct IBarcodeScannerDisableScannerRequestEventArgs_Vtbl { @@ -49,16 +22,7 @@ pub struct IBarcodeScannerDisableScannerRequestEventArgs_Vtbl { pub Request: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBarcodeScannerEnableScannerRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBarcodeScannerEnableScannerRequest { - type Vtable = IBarcodeScannerEnableScannerRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBarcodeScannerEnableScannerRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc0b3e9ba_816a_452b_bd77_b7e453ec446d); -} +::windows_core::imp::com_interface!(IBarcodeScannerEnableScannerRequest, IBarcodeScannerEnableScannerRequest_Vtbl, 0xc0b3e9ba_816a_452b_bd77_b7e453ec446d); #[repr(C)] #[doc(hidden)] pub struct IBarcodeScannerEnableScannerRequest_Vtbl { @@ -66,16 +30,7 @@ pub struct IBarcodeScannerEnableScannerRequest_Vtbl { pub ReportCompletedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ReportFailedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBarcodeScannerEnableScannerRequest2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBarcodeScannerEnableScannerRequest2 { - type Vtable = IBarcodeScannerEnableScannerRequest2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBarcodeScannerEnableScannerRequest2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x71a4f2a8_9905_41ac_9121_b645916a84a1); -} +::windows_core::imp::com_interface!(IBarcodeScannerEnableScannerRequest2, IBarcodeScannerEnableScannerRequest2_Vtbl, 0x71a4f2a8_9905_41ac_9121_b645916a84a1); #[repr(C)] #[doc(hidden)] pub struct IBarcodeScannerEnableScannerRequest2_Vtbl { @@ -83,16 +38,7 @@ pub struct IBarcodeScannerEnableScannerRequest2_Vtbl { pub ReportFailedWithFailedReasonAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, reason: i32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ReportFailedWithFailedReasonAndDescriptionAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, reason: i32, failedreasondescription: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBarcodeScannerEnableScannerRequestEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBarcodeScannerEnableScannerRequestEventArgs { - type Vtable = IBarcodeScannerEnableScannerRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBarcodeScannerEnableScannerRequestEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x956c9419_7b4e_4451_8c41_8e10cfbc5b41); -} +::windows_core::imp::com_interface!(IBarcodeScannerEnableScannerRequestEventArgs, IBarcodeScannerEnableScannerRequestEventArgs_Vtbl, 0x956c9419_7b4e_4451_8c41_8e10cfbc5b41); #[repr(C)] #[doc(hidden)] pub struct IBarcodeScannerEnableScannerRequestEventArgs_Vtbl { @@ -100,16 +46,7 @@ pub struct IBarcodeScannerEnableScannerRequestEventArgs_Vtbl { pub Request: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBarcodeScannerFrameReader(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBarcodeScannerFrameReader { - type Vtable = IBarcodeScannerFrameReader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBarcodeScannerFrameReader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdbc72b07_64c3_482b_93c8_65fb33c22208); -} +::windows_core::imp::com_interface!(IBarcodeScannerFrameReader, IBarcodeScannerFrameReader_Vtbl, 0xdbc72b07_64c3_482b_93c8_65fb33c22208); #[repr(C)] #[doc(hidden)] pub struct IBarcodeScannerFrameReader_Vtbl { @@ -121,32 +58,14 @@ pub struct IBarcodeScannerFrameReader_Vtbl { pub FrameArrived: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveFrameArrived: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBarcodeScannerFrameReaderFrameArrivedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBarcodeScannerFrameReaderFrameArrivedEventArgs { - type Vtable = IBarcodeScannerFrameReaderFrameArrivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBarcodeScannerFrameReaderFrameArrivedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb0bbd604_54fd_436d_8629_712e787223dd); -} +::windows_core::imp::com_interface!(IBarcodeScannerFrameReaderFrameArrivedEventArgs, IBarcodeScannerFrameReaderFrameArrivedEventArgs_Vtbl, 0xb0bbd604_54fd_436d_8629_712e787223dd); #[repr(C)] #[doc(hidden)] pub struct IBarcodeScannerFrameReaderFrameArrivedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBarcodeScannerGetSymbologyAttributesRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBarcodeScannerGetSymbologyAttributesRequest { - type Vtable = IBarcodeScannerGetSymbologyAttributesRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBarcodeScannerGetSymbologyAttributesRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9774c46a_58e4_4c5f_b8e9_e41467632700); -} +::windows_core::imp::com_interface!(IBarcodeScannerGetSymbologyAttributesRequest, IBarcodeScannerGetSymbologyAttributesRequest_Vtbl, 0x9774c46a_58e4_4c5f_b8e9_e41467632700); #[repr(C)] #[doc(hidden)] pub struct IBarcodeScannerGetSymbologyAttributesRequest_Vtbl { @@ -155,16 +74,7 @@ pub struct IBarcodeScannerGetSymbologyAttributesRequest_Vtbl { pub ReportCompletedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, attributes: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ReportFailedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBarcodeScannerGetSymbologyAttributesRequest2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBarcodeScannerGetSymbologyAttributesRequest2 { - type Vtable = IBarcodeScannerGetSymbologyAttributesRequest2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBarcodeScannerGetSymbologyAttributesRequest2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6a6a2b13_75a8_49fb_b852_bfb93d760af7); -} +::windows_core::imp::com_interface!(IBarcodeScannerGetSymbologyAttributesRequest2, IBarcodeScannerGetSymbologyAttributesRequest2_Vtbl, 0x6a6a2b13_75a8_49fb_b852_bfb93d760af7); #[repr(C)] #[doc(hidden)] pub struct IBarcodeScannerGetSymbologyAttributesRequest2_Vtbl { @@ -172,16 +82,7 @@ pub struct IBarcodeScannerGetSymbologyAttributesRequest2_Vtbl { pub ReportFailedWithFailedReasonAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, reason: i32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ReportFailedWithFailedReasonAndDescriptionAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, reason: i32, failedreasondescription: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBarcodeScannerGetSymbologyAttributesRequestEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBarcodeScannerGetSymbologyAttributesRequestEventArgs { - type Vtable = IBarcodeScannerGetSymbologyAttributesRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBarcodeScannerGetSymbologyAttributesRequestEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7f89de3e_fb5d_493c_b402_356b24d574a6); -} +::windows_core::imp::com_interface!(IBarcodeScannerGetSymbologyAttributesRequestEventArgs, IBarcodeScannerGetSymbologyAttributesRequestEventArgs_Vtbl, 0x7f89de3e_fb5d_493c_b402_356b24d574a6); #[repr(C)] #[doc(hidden)] pub struct IBarcodeScannerGetSymbologyAttributesRequestEventArgs_Vtbl { @@ -189,16 +90,7 @@ pub struct IBarcodeScannerGetSymbologyAttributesRequestEventArgs_Vtbl { pub Request: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBarcodeScannerHideVideoPreviewRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBarcodeScannerHideVideoPreviewRequest { - type Vtable = IBarcodeScannerHideVideoPreviewRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBarcodeScannerHideVideoPreviewRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfa4ebe7f_6670_40e1_b90b_bb10d8d425fa); -} +::windows_core::imp::com_interface!(IBarcodeScannerHideVideoPreviewRequest, IBarcodeScannerHideVideoPreviewRequest_Vtbl, 0xfa4ebe7f_6670_40e1_b90b_bb10d8d425fa); #[repr(C)] #[doc(hidden)] pub struct IBarcodeScannerHideVideoPreviewRequest_Vtbl { @@ -206,16 +98,7 @@ pub struct IBarcodeScannerHideVideoPreviewRequest_Vtbl { pub ReportCompletedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ReportFailedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBarcodeScannerHideVideoPreviewRequest2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBarcodeScannerHideVideoPreviewRequest2 { - type Vtable = IBarcodeScannerHideVideoPreviewRequest2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBarcodeScannerHideVideoPreviewRequest2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7e28435d_9814_431d_a2f2_d6248c5ad4b5); -} +::windows_core::imp::com_interface!(IBarcodeScannerHideVideoPreviewRequest2, IBarcodeScannerHideVideoPreviewRequest2_Vtbl, 0x7e28435d_9814_431d_a2f2_d6248c5ad4b5); #[repr(C)] #[doc(hidden)] pub struct IBarcodeScannerHideVideoPreviewRequest2_Vtbl { @@ -223,16 +106,7 @@ pub struct IBarcodeScannerHideVideoPreviewRequest2_Vtbl { pub ReportFailedWithFailedReasonAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, reason: i32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ReportFailedWithFailedReasonAndDescriptionAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, reason: i32, failedreasondescription: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBarcodeScannerHideVideoPreviewRequestEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBarcodeScannerHideVideoPreviewRequestEventArgs { - type Vtable = IBarcodeScannerHideVideoPreviewRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBarcodeScannerHideVideoPreviewRequestEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x16a281fc_d6be_4bc7_9df1_33741f3eadea); -} +::windows_core::imp::com_interface!(IBarcodeScannerHideVideoPreviewRequestEventArgs, IBarcodeScannerHideVideoPreviewRequestEventArgs_Vtbl, 0x16a281fc_d6be_4bc7_9df1_33741f3eadea); #[repr(C)] #[doc(hidden)] pub struct IBarcodeScannerHideVideoPreviewRequestEventArgs_Vtbl { @@ -240,16 +114,7 @@ pub struct IBarcodeScannerHideVideoPreviewRequestEventArgs_Vtbl { pub Request: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBarcodeScannerProviderConnection(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBarcodeScannerProviderConnection { - type Vtable = IBarcodeScannerProviderConnection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBarcodeScannerProviderConnection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb44acbed_0b3a_4fa3_86c5_491ea30780eb); -} +::windows_core::imp::com_interface!(IBarcodeScannerProviderConnection, IBarcodeScannerProviderConnection_Vtbl, 0xb44acbed_0b3a_4fa3_86c5_491ea30780eb); #[repr(C)] #[doc(hidden)] pub struct IBarcodeScannerProviderConnection_Vtbl { @@ -288,16 +153,7 @@ pub struct IBarcodeScannerProviderConnection_Vtbl { pub HideVideoPreviewRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveHideVideoPreviewRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBarcodeScannerProviderConnection2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBarcodeScannerProviderConnection2 { - type Vtable = IBarcodeScannerProviderConnection2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBarcodeScannerProviderConnection2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbe9b53cd_1134_418c_a06b_04423a73f3d7); -} +::windows_core::imp::com_interface!(IBarcodeScannerProviderConnection2, IBarcodeScannerProviderConnection2_Vtbl, 0xbe9b53cd_1134_418c_a06b_04423a73f3d7); #[repr(C)] #[doc(hidden)] pub struct IBarcodeScannerProviderConnection2_Vtbl { @@ -312,32 +168,14 @@ pub struct IBarcodeScannerProviderConnection2_Vtbl { #[cfg(not(feature = "Graphics_Imaging"))] CreateFrameReaderWithFormatAndSizeAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBarcodeScannerProviderTriggerDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBarcodeScannerProviderTriggerDetails { - type Vtable = IBarcodeScannerProviderTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBarcodeScannerProviderTriggerDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x50856d82_24e3_48ce_99c7_70aac1cbc9f7); -} +::windows_core::imp::com_interface!(IBarcodeScannerProviderTriggerDetails, IBarcodeScannerProviderTriggerDetails_Vtbl, 0x50856d82_24e3_48ce_99c7_70aac1cbc9f7); #[repr(C)] #[doc(hidden)] pub struct IBarcodeScannerProviderTriggerDetails_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Connection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBarcodeScannerSetActiveSymbologiesRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBarcodeScannerSetActiveSymbologiesRequest { - type Vtable = IBarcodeScannerSetActiveSymbologiesRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBarcodeScannerSetActiveSymbologiesRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdb3f32b9_f7da_41a1_9f79_07bcd95f0bdf); -} +::windows_core::imp::com_interface!(IBarcodeScannerSetActiveSymbologiesRequest, IBarcodeScannerSetActiveSymbologiesRequest_Vtbl, 0xdb3f32b9_f7da_41a1_9f79_07bcd95f0bdf); #[repr(C)] #[doc(hidden)] pub struct IBarcodeScannerSetActiveSymbologiesRequest_Vtbl { @@ -349,16 +187,7 @@ pub struct IBarcodeScannerSetActiveSymbologiesRequest_Vtbl { pub ReportCompletedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ReportFailedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBarcodeScannerSetActiveSymbologiesRequest2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBarcodeScannerSetActiveSymbologiesRequest2 { - type Vtable = IBarcodeScannerSetActiveSymbologiesRequest2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBarcodeScannerSetActiveSymbologiesRequest2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf5ff6edf_fa9a_4749_b11b_e8fccb75bc6b); -} +::windows_core::imp::com_interface!(IBarcodeScannerSetActiveSymbologiesRequest2, IBarcodeScannerSetActiveSymbologiesRequest2_Vtbl, 0xf5ff6edf_fa9a_4749_b11b_e8fccb75bc6b); #[repr(C)] #[doc(hidden)] pub struct IBarcodeScannerSetActiveSymbologiesRequest2_Vtbl { @@ -366,16 +195,7 @@ pub struct IBarcodeScannerSetActiveSymbologiesRequest2_Vtbl { pub ReportFailedWithFailedReasonAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, reason: i32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ReportFailedWithFailedReasonAndDescriptionAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, reason: i32, failedreasondescription: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBarcodeScannerSetActiveSymbologiesRequestEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBarcodeScannerSetActiveSymbologiesRequestEventArgs { - type Vtable = IBarcodeScannerSetActiveSymbologiesRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBarcodeScannerSetActiveSymbologiesRequestEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x06305afa_7bf6_4d52_801a_330272f60ae1); -} +::windows_core::imp::com_interface!(IBarcodeScannerSetActiveSymbologiesRequestEventArgs, IBarcodeScannerSetActiveSymbologiesRequestEventArgs_Vtbl, 0x06305afa_7bf6_4d52_801a_330272f60ae1); #[repr(C)] #[doc(hidden)] pub struct IBarcodeScannerSetActiveSymbologiesRequestEventArgs_Vtbl { @@ -383,16 +203,7 @@ pub struct IBarcodeScannerSetActiveSymbologiesRequestEventArgs_Vtbl { pub Request: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBarcodeScannerSetSymbologyAttributesRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBarcodeScannerSetSymbologyAttributesRequest { - type Vtable = IBarcodeScannerSetSymbologyAttributesRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBarcodeScannerSetSymbologyAttributesRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x32fb814f_a37f_48b0_acea_dce1480f12ae); -} +::windows_core::imp::com_interface!(IBarcodeScannerSetSymbologyAttributesRequest, IBarcodeScannerSetSymbologyAttributesRequest_Vtbl, 0x32fb814f_a37f_48b0_acea_dce1480f12ae); #[repr(C)] #[doc(hidden)] pub struct IBarcodeScannerSetSymbologyAttributesRequest_Vtbl { @@ -402,16 +213,7 @@ pub struct IBarcodeScannerSetSymbologyAttributesRequest_Vtbl { pub ReportCompletedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ReportFailedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBarcodeScannerSetSymbologyAttributesRequest2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBarcodeScannerSetSymbologyAttributesRequest2 { - type Vtable = IBarcodeScannerSetSymbologyAttributesRequest2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBarcodeScannerSetSymbologyAttributesRequest2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdffbbfc1_dba8_4b77_be1e_b56cd72f65b3); -} +::windows_core::imp::com_interface!(IBarcodeScannerSetSymbologyAttributesRequest2, IBarcodeScannerSetSymbologyAttributesRequest2_Vtbl, 0xdffbbfc1_dba8_4b77_be1e_b56cd72f65b3); #[repr(C)] #[doc(hidden)] pub struct IBarcodeScannerSetSymbologyAttributesRequest2_Vtbl { @@ -419,16 +221,7 @@ pub struct IBarcodeScannerSetSymbologyAttributesRequest2_Vtbl { pub ReportFailedWithFailedReasonAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, reason: i32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ReportFailedWithFailedReasonAndDescriptionAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, reason: i32, failedreasondescription: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBarcodeScannerSetSymbologyAttributesRequestEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBarcodeScannerSetSymbologyAttributesRequestEventArgs { - type Vtable = IBarcodeScannerSetSymbologyAttributesRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBarcodeScannerSetSymbologyAttributesRequestEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb2b89809_9824_47d4_85bd_d0077baa7bd2); -} +::windows_core::imp::com_interface!(IBarcodeScannerSetSymbologyAttributesRequestEventArgs, IBarcodeScannerSetSymbologyAttributesRequestEventArgs_Vtbl, 0xb2b89809_9824_47d4_85bd_d0077baa7bd2); #[repr(C)] #[doc(hidden)] pub struct IBarcodeScannerSetSymbologyAttributesRequestEventArgs_Vtbl { @@ -436,16 +229,7 @@ pub struct IBarcodeScannerSetSymbologyAttributesRequestEventArgs_Vtbl { pub Request: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBarcodeScannerStartSoftwareTriggerRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBarcodeScannerStartSoftwareTriggerRequest { - type Vtable = IBarcodeScannerStartSoftwareTriggerRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBarcodeScannerStartSoftwareTriggerRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe3fa7b27_ff62_4454_af4a_cb6144a3e3f7); -} +::windows_core::imp::com_interface!(IBarcodeScannerStartSoftwareTriggerRequest, IBarcodeScannerStartSoftwareTriggerRequest_Vtbl, 0xe3fa7b27_ff62_4454_af4a_cb6144a3e3f7); #[repr(C)] #[doc(hidden)] pub struct IBarcodeScannerStartSoftwareTriggerRequest_Vtbl { @@ -453,16 +237,7 @@ pub struct IBarcodeScannerStartSoftwareTriggerRequest_Vtbl { pub ReportCompletedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ReportFailedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBarcodeScannerStartSoftwareTriggerRequest2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBarcodeScannerStartSoftwareTriggerRequest2 { - type Vtable = IBarcodeScannerStartSoftwareTriggerRequest2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBarcodeScannerStartSoftwareTriggerRequest2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeb72a25c_6658_4765_a68e_327482653deb); -} +::windows_core::imp::com_interface!(IBarcodeScannerStartSoftwareTriggerRequest2, IBarcodeScannerStartSoftwareTriggerRequest2_Vtbl, 0xeb72a25c_6658_4765_a68e_327482653deb); #[repr(C)] #[doc(hidden)] pub struct IBarcodeScannerStartSoftwareTriggerRequest2_Vtbl { @@ -470,16 +245,7 @@ pub struct IBarcodeScannerStartSoftwareTriggerRequest2_Vtbl { pub ReportFailedWithFailedReasonAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, reason: i32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ReportFailedWithFailedReasonAndDescriptionAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, reason: i32, failedreasondescription: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBarcodeScannerStartSoftwareTriggerRequestEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBarcodeScannerStartSoftwareTriggerRequestEventArgs { - type Vtable = IBarcodeScannerStartSoftwareTriggerRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBarcodeScannerStartSoftwareTriggerRequestEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2305d843_c88f_4f3b_8c3b_d3df071051ec); -} +::windows_core::imp::com_interface!(IBarcodeScannerStartSoftwareTriggerRequestEventArgs, IBarcodeScannerStartSoftwareTriggerRequestEventArgs_Vtbl, 0x2305d843_c88f_4f3b_8c3b_d3df071051ec); #[repr(C)] #[doc(hidden)] pub struct IBarcodeScannerStartSoftwareTriggerRequestEventArgs_Vtbl { @@ -487,16 +253,7 @@ pub struct IBarcodeScannerStartSoftwareTriggerRequestEventArgs_Vtbl { pub Request: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBarcodeScannerStopSoftwareTriggerRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBarcodeScannerStopSoftwareTriggerRequest { - type Vtable = IBarcodeScannerStopSoftwareTriggerRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBarcodeScannerStopSoftwareTriggerRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6f9faf35_e287_4ca8_b70d_5a91d694f668); -} +::windows_core::imp::com_interface!(IBarcodeScannerStopSoftwareTriggerRequest, IBarcodeScannerStopSoftwareTriggerRequest_Vtbl, 0x6f9faf35_e287_4ca8_b70d_5a91d694f668); #[repr(C)] #[doc(hidden)] pub struct IBarcodeScannerStopSoftwareTriggerRequest_Vtbl { @@ -504,16 +261,7 @@ pub struct IBarcodeScannerStopSoftwareTriggerRequest_Vtbl { pub ReportCompletedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ReportFailedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBarcodeScannerStopSoftwareTriggerRequest2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBarcodeScannerStopSoftwareTriggerRequest2 { - type Vtable = IBarcodeScannerStopSoftwareTriggerRequest2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBarcodeScannerStopSoftwareTriggerRequest2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcb57c5dd_fe50_49f8_a0b4_bdc230814da2); -} +::windows_core::imp::com_interface!(IBarcodeScannerStopSoftwareTriggerRequest2, IBarcodeScannerStopSoftwareTriggerRequest2_Vtbl, 0xcb57c5dd_fe50_49f8_a0b4_bdc230814da2); #[repr(C)] #[doc(hidden)] pub struct IBarcodeScannerStopSoftwareTriggerRequest2_Vtbl { @@ -521,16 +269,7 @@ pub struct IBarcodeScannerStopSoftwareTriggerRequest2_Vtbl { pub ReportFailedWithFailedReasonAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, reason: i32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ReportFailedWithFailedReasonAndDescriptionAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, reason: i32, failedreasondescription: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBarcodeScannerStopSoftwareTriggerRequestEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBarcodeScannerStopSoftwareTriggerRequestEventArgs { - type Vtable = IBarcodeScannerStopSoftwareTriggerRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBarcodeScannerStopSoftwareTriggerRequestEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeac34450_4eb7_481a_9273_147a273b99b8); -} +::windows_core::imp::com_interface!(IBarcodeScannerStopSoftwareTriggerRequestEventArgs, IBarcodeScannerStopSoftwareTriggerRequestEventArgs_Vtbl, 0xeac34450_4eb7_481a_9273_147a273b99b8); #[repr(C)] #[doc(hidden)] pub struct IBarcodeScannerStopSoftwareTriggerRequestEventArgs_Vtbl { @@ -538,16 +277,7 @@ pub struct IBarcodeScannerStopSoftwareTriggerRequestEventArgs_Vtbl { pub Request: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBarcodeScannerVideoFrame(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBarcodeScannerVideoFrame { - type Vtable = IBarcodeScannerVideoFrame_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBarcodeScannerVideoFrame { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7e585248_9df7_4121_a175_801d8000112e); -} +::windows_core::imp::com_interface!(IBarcodeScannerVideoFrame, IBarcodeScannerVideoFrame_Vtbl, 0x7e585248_9df7_4121_a175_801d8000112e); #[repr(C)] #[doc(hidden)] pub struct IBarcodeScannerVideoFrame_Vtbl { @@ -563,16 +293,7 @@ pub struct IBarcodeScannerVideoFrame_Vtbl { #[cfg(not(feature = "Storage_Streams"))] PixelData: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBarcodeSymbologyAttributesBuilder(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBarcodeSymbologyAttributesBuilder { - type Vtable = IBarcodeSymbologyAttributesBuilder_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBarcodeSymbologyAttributesBuilder { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc57b0cbf_e4f5_40b9_84cf_e63fbaea42b4); -} +::windows_core::imp::com_interface!(IBarcodeSymbologyAttributesBuilder, IBarcodeSymbologyAttributesBuilder_Vtbl, 0xc57b0cbf_e4f5_40b9_84cf_e63fbaea42b4); #[repr(C)] #[doc(hidden)] pub struct IBarcodeSymbologyAttributesBuilder_Vtbl { @@ -588,6 +309,7 @@ pub struct IBarcodeSymbologyAttributesBuilder_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BarcodeScannerDisableScannerRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BarcodeScannerDisableScannerRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BarcodeScannerDisableScannerRequest { pub fn ReportCompletedAsync(&self) -> ::windows_core::Result { let this = self; @@ -604,14 +326,14 @@ impl BarcodeScannerDisableScannerRequest { } } pub fn ReportFailedWithFailedReasonAsync(&self, reason: i32) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ReportFailedWithFailedReasonAsync)(::windows_core::Interface::as_raw(this), reason, &mut result__).from_abi(result__) } } pub fn ReportFailedWithFailedReasonAndDescriptionAsync(&self, reason: i32, failedreasondescription: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ReportFailedWithFailedReasonAndDescriptionAsync)(::windows_core::Interface::as_raw(this), reason, ::core::mem::transmute_copy(failedreasondescription), &mut result__).from_abi(result__) @@ -623,19 +345,17 @@ impl ::windows_core::RuntimeType for BarcodeScannerDisableScannerRequest { } unsafe impl ::windows_core::Interface for BarcodeScannerDisableScannerRequest { type Vtable = IBarcodeScannerDisableScannerRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BarcodeScannerDisableScannerRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BarcodeScannerDisableScannerRequest { const NAME: &'static str = "Windows.Devices.PointOfService.Provider.BarcodeScannerDisableScannerRequest"; } -::windows_core::imp::interface_hierarchy!(BarcodeScannerDisableScannerRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BarcodeScannerDisableScannerRequest {} unsafe impl ::core::marker::Sync for BarcodeScannerDisableScannerRequest {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BarcodeScannerDisableScannerRequestEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BarcodeScannerDisableScannerRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BarcodeScannerDisableScannerRequestEventArgs { pub fn Request(&self) -> ::windows_core::Result { let this = self; @@ -657,19 +377,17 @@ impl ::windows_core::RuntimeType for BarcodeScannerDisableScannerRequestEventArg } unsafe impl ::windows_core::Interface for BarcodeScannerDisableScannerRequestEventArgs { type Vtable = IBarcodeScannerDisableScannerRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BarcodeScannerDisableScannerRequestEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BarcodeScannerDisableScannerRequestEventArgs { const NAME: &'static str = "Windows.Devices.PointOfService.Provider.BarcodeScannerDisableScannerRequestEventArgs"; } -::windows_core::imp::interface_hierarchy!(BarcodeScannerDisableScannerRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BarcodeScannerDisableScannerRequestEventArgs {} unsafe impl ::core::marker::Sync for BarcodeScannerDisableScannerRequestEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BarcodeScannerEnableScannerRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BarcodeScannerEnableScannerRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BarcodeScannerEnableScannerRequest { pub fn ReportCompletedAsync(&self) -> ::windows_core::Result { let this = self; @@ -686,14 +404,14 @@ impl BarcodeScannerEnableScannerRequest { } } pub fn ReportFailedWithFailedReasonAsync(&self, reason: i32) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ReportFailedWithFailedReasonAsync)(::windows_core::Interface::as_raw(this), reason, &mut result__).from_abi(result__) } } pub fn ReportFailedWithFailedReasonAndDescriptionAsync(&self, reason: i32, failedreasondescription: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ReportFailedWithFailedReasonAndDescriptionAsync)(::windows_core::Interface::as_raw(this), reason, ::core::mem::transmute_copy(failedreasondescription), &mut result__).from_abi(result__) @@ -705,19 +423,17 @@ impl ::windows_core::RuntimeType for BarcodeScannerEnableScannerRequest { } unsafe impl ::windows_core::Interface for BarcodeScannerEnableScannerRequest { type Vtable = IBarcodeScannerEnableScannerRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BarcodeScannerEnableScannerRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BarcodeScannerEnableScannerRequest { const NAME: &'static str = "Windows.Devices.PointOfService.Provider.BarcodeScannerEnableScannerRequest"; } -::windows_core::imp::interface_hierarchy!(BarcodeScannerEnableScannerRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BarcodeScannerEnableScannerRequest {} unsafe impl ::core::marker::Sync for BarcodeScannerEnableScannerRequest {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BarcodeScannerEnableScannerRequestEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BarcodeScannerEnableScannerRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BarcodeScannerEnableScannerRequestEventArgs { pub fn Request(&self) -> ::windows_core::Result { let this = self; @@ -739,19 +455,18 @@ impl ::windows_core::RuntimeType for BarcodeScannerEnableScannerRequestEventArgs } unsafe impl ::windows_core::Interface for BarcodeScannerEnableScannerRequestEventArgs { type Vtable = IBarcodeScannerEnableScannerRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BarcodeScannerEnableScannerRequestEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BarcodeScannerEnableScannerRequestEventArgs { const NAME: &'static str = "Windows.Devices.PointOfService.Provider.BarcodeScannerEnableScannerRequestEventArgs"; } -::windows_core::imp::interface_hierarchy!(BarcodeScannerEnableScannerRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BarcodeScannerEnableScannerRequestEventArgs {} unsafe impl ::core::marker::Sync for BarcodeScannerEnableScannerRequestEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BarcodeScannerFrameReader(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BarcodeScannerFrameReader, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(BarcodeScannerFrameReader, super::super::super::Foundation::IClosable); impl BarcodeScannerFrameReader { pub fn StartAsync(&self) -> ::windows_core::Result> { let this = self; @@ -796,7 +511,7 @@ impl BarcodeScannerFrameReader { unsafe { (::windows_core::Interface::vtable(this).RemoveFrameArrived)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } } @@ -805,20 +520,17 @@ impl ::windows_core::RuntimeType for BarcodeScannerFrameReader { } unsafe impl ::windows_core::Interface for BarcodeScannerFrameReader { type Vtable = IBarcodeScannerFrameReader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BarcodeScannerFrameReader { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BarcodeScannerFrameReader { const NAME: &'static str = "Windows.Devices.PointOfService.Provider.BarcodeScannerFrameReader"; } -::windows_core::imp::interface_hierarchy!(BarcodeScannerFrameReader, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for BarcodeScannerFrameReader {} unsafe impl ::core::marker::Send for BarcodeScannerFrameReader {} unsafe impl ::core::marker::Sync for BarcodeScannerFrameReader {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BarcodeScannerFrameReaderFrameArrivedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BarcodeScannerFrameReaderFrameArrivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BarcodeScannerFrameReaderFrameArrivedEventArgs { pub fn GetDeferral(&self) -> ::windows_core::Result { let this = self; @@ -833,19 +545,17 @@ impl ::windows_core::RuntimeType for BarcodeScannerFrameReaderFrameArrivedEventA } unsafe impl ::windows_core::Interface for BarcodeScannerFrameReaderFrameArrivedEventArgs { type Vtable = IBarcodeScannerFrameReaderFrameArrivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BarcodeScannerFrameReaderFrameArrivedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BarcodeScannerFrameReaderFrameArrivedEventArgs { const NAME: &'static str = "Windows.Devices.PointOfService.Provider.BarcodeScannerFrameReaderFrameArrivedEventArgs"; } -::windows_core::imp::interface_hierarchy!(BarcodeScannerFrameReaderFrameArrivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BarcodeScannerFrameReaderFrameArrivedEventArgs {} unsafe impl ::core::marker::Sync for BarcodeScannerFrameReaderFrameArrivedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BarcodeScannerGetSymbologyAttributesRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BarcodeScannerGetSymbologyAttributesRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BarcodeScannerGetSymbologyAttributesRequest { pub fn Symbology(&self) -> ::windows_core::Result { let this = self; @@ -872,14 +582,14 @@ impl BarcodeScannerGetSymbologyAttributesRequest { } } pub fn ReportFailedWithFailedReasonAsync(&self, reason: i32) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ReportFailedWithFailedReasonAsync)(::windows_core::Interface::as_raw(this), reason, &mut result__).from_abi(result__) } } pub fn ReportFailedWithFailedReasonAndDescriptionAsync(&self, reason: i32, failedreasondescription: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ReportFailedWithFailedReasonAndDescriptionAsync)(::windows_core::Interface::as_raw(this), reason, ::core::mem::transmute_copy(failedreasondescription), &mut result__).from_abi(result__) @@ -891,19 +601,17 @@ impl ::windows_core::RuntimeType for BarcodeScannerGetSymbologyAttributesRequest } unsafe impl ::windows_core::Interface for BarcodeScannerGetSymbologyAttributesRequest { type Vtable = IBarcodeScannerGetSymbologyAttributesRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BarcodeScannerGetSymbologyAttributesRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BarcodeScannerGetSymbologyAttributesRequest { const NAME: &'static str = "Windows.Devices.PointOfService.Provider.BarcodeScannerGetSymbologyAttributesRequest"; } -::windows_core::imp::interface_hierarchy!(BarcodeScannerGetSymbologyAttributesRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BarcodeScannerGetSymbologyAttributesRequest {} unsafe impl ::core::marker::Sync for BarcodeScannerGetSymbologyAttributesRequest {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BarcodeScannerGetSymbologyAttributesRequestEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BarcodeScannerGetSymbologyAttributesRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BarcodeScannerGetSymbologyAttributesRequestEventArgs { pub fn Request(&self) -> ::windows_core::Result { let this = self; @@ -925,19 +633,17 @@ impl ::windows_core::RuntimeType for BarcodeScannerGetSymbologyAttributesRequest } unsafe impl ::windows_core::Interface for BarcodeScannerGetSymbologyAttributesRequestEventArgs { type Vtable = IBarcodeScannerGetSymbologyAttributesRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BarcodeScannerGetSymbologyAttributesRequestEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BarcodeScannerGetSymbologyAttributesRequestEventArgs { const NAME: &'static str = "Windows.Devices.PointOfService.Provider.BarcodeScannerGetSymbologyAttributesRequestEventArgs"; } -::windows_core::imp::interface_hierarchy!(BarcodeScannerGetSymbologyAttributesRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BarcodeScannerGetSymbologyAttributesRequestEventArgs {} unsafe impl ::core::marker::Sync for BarcodeScannerGetSymbologyAttributesRequestEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BarcodeScannerHideVideoPreviewRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BarcodeScannerHideVideoPreviewRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BarcodeScannerHideVideoPreviewRequest { pub fn ReportCompletedAsync(&self) -> ::windows_core::Result { let this = self; @@ -954,14 +660,14 @@ impl BarcodeScannerHideVideoPreviewRequest { } } pub fn ReportFailedWithFailedReasonAsync(&self, reason: i32) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ReportFailedWithFailedReasonAsync)(::windows_core::Interface::as_raw(this), reason, &mut result__).from_abi(result__) } } pub fn ReportFailedWithFailedReasonAndDescriptionAsync(&self, reason: i32, failedreasondescription: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ReportFailedWithFailedReasonAndDescriptionAsync)(::windows_core::Interface::as_raw(this), reason, ::core::mem::transmute_copy(failedreasondescription), &mut result__).from_abi(result__) @@ -973,19 +679,17 @@ impl ::windows_core::RuntimeType for BarcodeScannerHideVideoPreviewRequest { } unsafe impl ::windows_core::Interface for BarcodeScannerHideVideoPreviewRequest { type Vtable = IBarcodeScannerHideVideoPreviewRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BarcodeScannerHideVideoPreviewRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BarcodeScannerHideVideoPreviewRequest { const NAME: &'static str = "Windows.Devices.PointOfService.Provider.BarcodeScannerHideVideoPreviewRequest"; } -::windows_core::imp::interface_hierarchy!(BarcodeScannerHideVideoPreviewRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BarcodeScannerHideVideoPreviewRequest {} unsafe impl ::core::marker::Sync for BarcodeScannerHideVideoPreviewRequest {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BarcodeScannerHideVideoPreviewRequestEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BarcodeScannerHideVideoPreviewRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BarcodeScannerHideVideoPreviewRequestEventArgs { pub fn Request(&self) -> ::windows_core::Result { let this = self; @@ -1007,19 +711,18 @@ impl ::windows_core::RuntimeType for BarcodeScannerHideVideoPreviewRequestEventA } unsafe impl ::windows_core::Interface for BarcodeScannerHideVideoPreviewRequestEventArgs { type Vtable = IBarcodeScannerHideVideoPreviewRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BarcodeScannerHideVideoPreviewRequestEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BarcodeScannerHideVideoPreviewRequestEventArgs { const NAME: &'static str = "Windows.Devices.PointOfService.Provider.BarcodeScannerHideVideoPreviewRequestEventArgs"; } -::windows_core::imp::interface_hierarchy!(BarcodeScannerHideVideoPreviewRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BarcodeScannerHideVideoPreviewRequestEventArgs {} unsafe impl ::core::marker::Sync for BarcodeScannerHideVideoPreviewRequestEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BarcodeScannerProviderConnection(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BarcodeScannerProviderConnection, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(BarcodeScannerProviderConnection, super::super::super::Foundation::IClosable); impl BarcodeScannerProviderConnection { pub fn Id(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1232,7 +935,7 @@ impl BarcodeScannerProviderConnection { unsafe { (::windows_core::Interface::vtable(this).RemoveHideVideoPreviewRequested)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn CreateFrameReaderAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + 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), &mut result__).from_abi(result__) @@ -1241,7 +944,7 @@ impl BarcodeScannerProviderConnection { #[doc = "Required features: `\"Graphics_Imaging\"`"] #[cfg(feature = "Graphics_Imaging")] pub fn CreateFrameReaderWithFormatAsync(&self, preferredformat: super::super::super::Graphics::Imaging::BitmapPixelFormat) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateFrameReaderWithFormatAsync)(::windows_core::Interface::as_raw(this), preferredformat, &mut result__).from_abi(result__) @@ -1250,14 +953,14 @@ impl BarcodeScannerProviderConnection { #[doc = "Required features: `\"Graphics_Imaging\"`"] #[cfg(feature = "Graphics_Imaging")] pub fn CreateFrameReaderWithFormatAndSizeAsync(&self, preferredformat: super::super::super::Graphics::Imaging::BitmapPixelFormat, preferredsize: super::super::super::Graphics::Imaging::BitmapSize) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateFrameReaderWithFormatAndSizeAsync)(::windows_core::Interface::as_raw(this), preferredformat, preferredsize, &mut result__).from_abi(result__) } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } } @@ -1266,20 +969,17 @@ impl ::windows_core::RuntimeType for BarcodeScannerProviderConnection { } unsafe impl ::windows_core::Interface for BarcodeScannerProviderConnection { type Vtable = IBarcodeScannerProviderConnection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BarcodeScannerProviderConnection { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BarcodeScannerProviderConnection { const NAME: &'static str = "Windows.Devices.PointOfService.Provider.BarcodeScannerProviderConnection"; } -::windows_core::imp::interface_hierarchy!(BarcodeScannerProviderConnection, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for BarcodeScannerProviderConnection {} unsafe impl ::core::marker::Send for BarcodeScannerProviderConnection {} unsafe impl ::core::marker::Sync for BarcodeScannerProviderConnection {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BarcodeScannerProviderTriggerDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BarcodeScannerProviderTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BarcodeScannerProviderTriggerDetails { pub fn Connection(&self) -> ::windows_core::Result { let this = self; @@ -1294,19 +994,17 @@ impl ::windows_core::RuntimeType for BarcodeScannerProviderTriggerDetails { } unsafe impl ::windows_core::Interface for BarcodeScannerProviderTriggerDetails { type Vtable = IBarcodeScannerProviderTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BarcodeScannerProviderTriggerDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BarcodeScannerProviderTriggerDetails { const NAME: &'static str = "Windows.Devices.PointOfService.Provider.BarcodeScannerProviderTriggerDetails"; } -::windows_core::imp::interface_hierarchy!(BarcodeScannerProviderTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BarcodeScannerProviderTriggerDetails {} unsafe impl ::core::marker::Sync for BarcodeScannerProviderTriggerDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BarcodeScannerSetActiveSymbologiesRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BarcodeScannerSetActiveSymbologiesRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BarcodeScannerSetActiveSymbologiesRequest { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -1332,14 +1030,14 @@ impl BarcodeScannerSetActiveSymbologiesRequest { } } pub fn ReportFailedWithFailedReasonAsync(&self, reason: i32) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ReportFailedWithFailedReasonAsync)(::windows_core::Interface::as_raw(this), reason, &mut result__).from_abi(result__) } } pub fn ReportFailedWithFailedReasonAndDescriptionAsync(&self, reason: i32, failedreasondescription: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ReportFailedWithFailedReasonAndDescriptionAsync)(::windows_core::Interface::as_raw(this), reason, ::core::mem::transmute_copy(failedreasondescription), &mut result__).from_abi(result__) @@ -1351,19 +1049,17 @@ impl ::windows_core::RuntimeType for BarcodeScannerSetActiveSymbologiesRequest { } unsafe impl ::windows_core::Interface for BarcodeScannerSetActiveSymbologiesRequest { type Vtable = IBarcodeScannerSetActiveSymbologiesRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BarcodeScannerSetActiveSymbologiesRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BarcodeScannerSetActiveSymbologiesRequest { const NAME: &'static str = "Windows.Devices.PointOfService.Provider.BarcodeScannerSetActiveSymbologiesRequest"; } -::windows_core::imp::interface_hierarchy!(BarcodeScannerSetActiveSymbologiesRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BarcodeScannerSetActiveSymbologiesRequest {} unsafe impl ::core::marker::Sync for BarcodeScannerSetActiveSymbologiesRequest {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BarcodeScannerSetActiveSymbologiesRequestEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BarcodeScannerSetActiveSymbologiesRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BarcodeScannerSetActiveSymbologiesRequestEventArgs { pub fn Request(&self) -> ::windows_core::Result { let this = self; @@ -1385,19 +1081,17 @@ impl ::windows_core::RuntimeType for BarcodeScannerSetActiveSymbologiesRequestEv } unsafe impl ::windows_core::Interface for BarcodeScannerSetActiveSymbologiesRequestEventArgs { type Vtable = IBarcodeScannerSetActiveSymbologiesRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BarcodeScannerSetActiveSymbologiesRequestEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BarcodeScannerSetActiveSymbologiesRequestEventArgs { const NAME: &'static str = "Windows.Devices.PointOfService.Provider.BarcodeScannerSetActiveSymbologiesRequestEventArgs"; } -::windows_core::imp::interface_hierarchy!(BarcodeScannerSetActiveSymbologiesRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BarcodeScannerSetActiveSymbologiesRequestEventArgs {} unsafe impl ::core::marker::Sync for BarcodeScannerSetActiveSymbologiesRequestEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BarcodeScannerSetSymbologyAttributesRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BarcodeScannerSetSymbologyAttributesRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BarcodeScannerSetSymbologyAttributesRequest { pub fn Symbology(&self) -> ::windows_core::Result { let this = self; @@ -1428,14 +1122,14 @@ impl BarcodeScannerSetSymbologyAttributesRequest { } } pub fn ReportFailedWithFailedReasonAsync(&self, reason: i32) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ReportFailedWithFailedReasonAsync)(::windows_core::Interface::as_raw(this), reason, &mut result__).from_abi(result__) } } pub fn ReportFailedWithFailedReasonAndDescriptionAsync(&self, reason: i32, failedreasondescription: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ReportFailedWithFailedReasonAndDescriptionAsync)(::windows_core::Interface::as_raw(this), reason, ::core::mem::transmute_copy(failedreasondescription), &mut result__).from_abi(result__) @@ -1447,19 +1141,17 @@ impl ::windows_core::RuntimeType for BarcodeScannerSetSymbologyAttributesRequest } unsafe impl ::windows_core::Interface for BarcodeScannerSetSymbologyAttributesRequest { type Vtable = IBarcodeScannerSetSymbologyAttributesRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BarcodeScannerSetSymbologyAttributesRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BarcodeScannerSetSymbologyAttributesRequest { const NAME: &'static str = "Windows.Devices.PointOfService.Provider.BarcodeScannerSetSymbologyAttributesRequest"; } -::windows_core::imp::interface_hierarchy!(BarcodeScannerSetSymbologyAttributesRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BarcodeScannerSetSymbologyAttributesRequest {} unsafe impl ::core::marker::Sync for BarcodeScannerSetSymbologyAttributesRequest {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BarcodeScannerSetSymbologyAttributesRequestEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BarcodeScannerSetSymbologyAttributesRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BarcodeScannerSetSymbologyAttributesRequestEventArgs { pub fn Request(&self) -> ::windows_core::Result { let this = self; @@ -1481,19 +1173,17 @@ impl ::windows_core::RuntimeType for BarcodeScannerSetSymbologyAttributesRequest } unsafe impl ::windows_core::Interface for BarcodeScannerSetSymbologyAttributesRequestEventArgs { type Vtable = IBarcodeScannerSetSymbologyAttributesRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BarcodeScannerSetSymbologyAttributesRequestEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BarcodeScannerSetSymbologyAttributesRequestEventArgs { const NAME: &'static str = "Windows.Devices.PointOfService.Provider.BarcodeScannerSetSymbologyAttributesRequestEventArgs"; } -::windows_core::imp::interface_hierarchy!(BarcodeScannerSetSymbologyAttributesRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BarcodeScannerSetSymbologyAttributesRequestEventArgs {} unsafe impl ::core::marker::Sync for BarcodeScannerSetSymbologyAttributesRequestEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BarcodeScannerStartSoftwareTriggerRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BarcodeScannerStartSoftwareTriggerRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BarcodeScannerStartSoftwareTriggerRequest { pub fn ReportCompletedAsync(&self) -> ::windows_core::Result { let this = self; @@ -1510,14 +1200,14 @@ impl BarcodeScannerStartSoftwareTriggerRequest { } } pub fn ReportFailedWithFailedReasonAsync(&self, reason: i32) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ReportFailedWithFailedReasonAsync)(::windows_core::Interface::as_raw(this), reason, &mut result__).from_abi(result__) } } pub fn ReportFailedWithFailedReasonAndDescriptionAsync(&self, reason: i32, failedreasondescription: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ReportFailedWithFailedReasonAndDescriptionAsync)(::windows_core::Interface::as_raw(this), reason, ::core::mem::transmute_copy(failedreasondescription), &mut result__).from_abi(result__) @@ -1529,19 +1219,17 @@ impl ::windows_core::RuntimeType for BarcodeScannerStartSoftwareTriggerRequest { } unsafe impl ::windows_core::Interface for BarcodeScannerStartSoftwareTriggerRequest { type Vtable = IBarcodeScannerStartSoftwareTriggerRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BarcodeScannerStartSoftwareTriggerRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BarcodeScannerStartSoftwareTriggerRequest { const NAME: &'static str = "Windows.Devices.PointOfService.Provider.BarcodeScannerStartSoftwareTriggerRequest"; } -::windows_core::imp::interface_hierarchy!(BarcodeScannerStartSoftwareTriggerRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BarcodeScannerStartSoftwareTriggerRequest {} unsafe impl ::core::marker::Sync for BarcodeScannerStartSoftwareTriggerRequest {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BarcodeScannerStartSoftwareTriggerRequestEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BarcodeScannerStartSoftwareTriggerRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BarcodeScannerStartSoftwareTriggerRequestEventArgs { pub fn Request(&self) -> ::windows_core::Result { let this = self; @@ -1563,19 +1251,17 @@ impl ::windows_core::RuntimeType for BarcodeScannerStartSoftwareTriggerRequestEv } unsafe impl ::windows_core::Interface for BarcodeScannerStartSoftwareTriggerRequestEventArgs { type Vtable = IBarcodeScannerStartSoftwareTriggerRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BarcodeScannerStartSoftwareTriggerRequestEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BarcodeScannerStartSoftwareTriggerRequestEventArgs { const NAME: &'static str = "Windows.Devices.PointOfService.Provider.BarcodeScannerStartSoftwareTriggerRequestEventArgs"; } -::windows_core::imp::interface_hierarchy!(BarcodeScannerStartSoftwareTriggerRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BarcodeScannerStartSoftwareTriggerRequestEventArgs {} unsafe impl ::core::marker::Sync for BarcodeScannerStartSoftwareTriggerRequestEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BarcodeScannerStopSoftwareTriggerRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BarcodeScannerStopSoftwareTriggerRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BarcodeScannerStopSoftwareTriggerRequest { pub fn ReportCompletedAsync(&self) -> ::windows_core::Result { let this = self; @@ -1592,14 +1278,14 @@ impl BarcodeScannerStopSoftwareTriggerRequest { } } pub fn ReportFailedWithFailedReasonAsync(&self, reason: i32) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ReportFailedWithFailedReasonAsync)(::windows_core::Interface::as_raw(this), reason, &mut result__).from_abi(result__) } } pub fn ReportFailedWithFailedReasonAndDescriptionAsync(&self, reason: i32, failedreasondescription: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ReportFailedWithFailedReasonAndDescriptionAsync)(::windows_core::Interface::as_raw(this), reason, ::core::mem::transmute_copy(failedreasondescription), &mut result__).from_abi(result__) @@ -1611,19 +1297,17 @@ impl ::windows_core::RuntimeType for BarcodeScannerStopSoftwareTriggerRequest { } unsafe impl ::windows_core::Interface for BarcodeScannerStopSoftwareTriggerRequest { type Vtable = IBarcodeScannerStopSoftwareTriggerRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BarcodeScannerStopSoftwareTriggerRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BarcodeScannerStopSoftwareTriggerRequest { const NAME: &'static str = "Windows.Devices.PointOfService.Provider.BarcodeScannerStopSoftwareTriggerRequest"; } -::windows_core::imp::interface_hierarchy!(BarcodeScannerStopSoftwareTriggerRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BarcodeScannerStopSoftwareTriggerRequest {} unsafe impl ::core::marker::Sync for BarcodeScannerStopSoftwareTriggerRequest {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BarcodeScannerStopSoftwareTriggerRequestEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BarcodeScannerStopSoftwareTriggerRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BarcodeScannerStopSoftwareTriggerRequestEventArgs { pub fn Request(&self) -> ::windows_core::Result { let this = self; @@ -1645,19 +1329,18 @@ impl ::windows_core::RuntimeType for BarcodeScannerStopSoftwareTriggerRequestEve } unsafe impl ::windows_core::Interface for BarcodeScannerStopSoftwareTriggerRequestEventArgs { type Vtable = IBarcodeScannerStopSoftwareTriggerRequestEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BarcodeScannerStopSoftwareTriggerRequestEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BarcodeScannerStopSoftwareTriggerRequestEventArgs { const NAME: &'static str = "Windows.Devices.PointOfService.Provider.BarcodeScannerStopSoftwareTriggerRequestEventArgs"; } -::windows_core::imp::interface_hierarchy!(BarcodeScannerStopSoftwareTriggerRequestEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BarcodeScannerStopSoftwareTriggerRequestEventArgs {} unsafe impl ::core::marker::Sync for BarcodeScannerStopSoftwareTriggerRequestEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BarcodeScannerVideoFrame(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BarcodeScannerVideoFrame, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(BarcodeScannerVideoFrame, super::super::super::Foundation::IClosable); impl BarcodeScannerVideoFrame { #[doc = "Required features: `\"Graphics_Imaging\"`"] #[cfg(feature = "Graphics_Imaging")] @@ -1692,7 +1375,7 @@ impl BarcodeScannerVideoFrame { } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } } @@ -1701,20 +1384,17 @@ impl ::windows_core::RuntimeType for BarcodeScannerVideoFrame { } unsafe impl ::windows_core::Interface for BarcodeScannerVideoFrame { type Vtable = IBarcodeScannerVideoFrame_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BarcodeScannerVideoFrame { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BarcodeScannerVideoFrame { const NAME: &'static str = "Windows.Devices.PointOfService.Provider.BarcodeScannerVideoFrame"; } -::windows_core::imp::interface_hierarchy!(BarcodeScannerVideoFrame, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for BarcodeScannerVideoFrame {} unsafe impl ::core::marker::Send for BarcodeScannerVideoFrame {} unsafe impl ::core::marker::Sync for BarcodeScannerVideoFrame {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BarcodeSymbologyAttributesBuilder(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BarcodeSymbologyAttributesBuilder, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BarcodeSymbologyAttributesBuilder { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1769,14 +1449,11 @@ impl ::windows_core::RuntimeType for BarcodeSymbologyAttributesBuilder { } unsafe impl ::windows_core::Interface for BarcodeSymbologyAttributesBuilder { type Vtable = IBarcodeSymbologyAttributesBuilder_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BarcodeSymbologyAttributesBuilder { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BarcodeSymbologyAttributesBuilder { const NAME: &'static str = "Windows.Devices.PointOfService.Provider.BarcodeSymbologyAttributesBuilder"; } -::windows_core::imp::interface_hierarchy!(BarcodeSymbologyAttributesBuilder, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BarcodeSymbologyAttributesBuilder {} unsafe impl ::core::marker::Sync for BarcodeSymbologyAttributesBuilder {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Devices/PointOfService/impl.rs b/crates/libs/windows/src/Windows/Devices/PointOfService/impl.rs index f5f3ffe08d..e865fc171d 100644 --- a/crates/libs/windows/src/Windows/Devices/PointOfService/impl.rs +++ b/crates/libs/windows/src/Windows/Devices/PointOfService/impl.rs @@ -24,7 +24,7 @@ impl ICashDrawerEventSourceEventArgs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICommonClaimedPosPrinterStation_Impl: Sized { @@ -256,7 +256,7 @@ impl ICommonClaimedPosPrinterStation_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -445,7 +445,7 @@ impl ICommonPosPrintStationCapabilities_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -583,7 +583,7 @@ impl ICommonReceiptSlipCapabilities_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPosPrinterJob_Impl: Sized { @@ -633,7 +633,7 @@ impl IPosPrinterJob_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Graphics_Imaging\"`"] @@ -757,6 +757,6 @@ impl IReceiptOrSlipJob_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs b/crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs index 5a0fb7dce0..16177ddc9e 100644 --- a/crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs @@ -1,16 +1,7 @@ #[cfg(feature = "Devices_PointOfService_Provider")] #[doc = "Required features: `\"Devices_PointOfService_Provider\"`"] pub mod Provider; -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBarcodeScanner(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBarcodeScanner { - type Vtable = IBarcodeScanner_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBarcodeScanner { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbea33e06_b264_4f03_a9c1_45b20f01134f); -} +::windows_core::imp::com_interface!(IBarcodeScanner, IBarcodeScanner_Vtbl, 0xbea33e06_b264_4f03_a9c1_45b20f01134f); #[repr(C)] #[doc(hidden)] pub struct IBarcodeScanner_Vtbl { @@ -36,32 +27,14 @@ pub struct IBarcodeScanner_Vtbl { pub StatusUpdated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveStatusUpdated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBarcodeScanner2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBarcodeScanner2 { - type Vtable = IBarcodeScanner2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBarcodeScanner2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x89215167_8cee_436d_89ab_8dfb43bb4286); -} +::windows_core::imp::com_interface!(IBarcodeScanner2, IBarcodeScanner2_Vtbl, 0x89215167_8cee_436d_89ab_8dfb43bb4286); #[repr(C)] #[doc(hidden)] pub struct IBarcodeScanner2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub VideoDeviceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBarcodeScannerCapabilities(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBarcodeScannerCapabilities { - type Vtable = IBarcodeScannerCapabilities_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBarcodeScannerCapabilities { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc60691e4_f2c8_4420_a307_b12ef6622857); -} +::windows_core::imp::com_interface!(IBarcodeScannerCapabilities, IBarcodeScannerCapabilities_Vtbl, 0xc60691e4_f2c8_4420_a307_b12ef6622857); #[repr(C)] #[doc(hidden)] pub struct IBarcodeScannerCapabilities_Vtbl { @@ -71,64 +44,28 @@ pub struct IBarcodeScannerCapabilities_Vtbl { pub IsStatisticsUpdatingSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub IsImagePreviewSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBarcodeScannerCapabilities1(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBarcodeScannerCapabilities1 { - type Vtable = IBarcodeScannerCapabilities1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBarcodeScannerCapabilities1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8e5ab3e9_0e2c_472f_a1cc_ee8054b6a684); -} +::windows_core::imp::com_interface!(IBarcodeScannerCapabilities1, IBarcodeScannerCapabilities1_Vtbl, 0x8e5ab3e9_0e2c_472f_a1cc_ee8054b6a684); #[repr(C)] #[doc(hidden)] pub struct IBarcodeScannerCapabilities1_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub IsSoftwareTriggerSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBarcodeScannerCapabilities2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBarcodeScannerCapabilities2 { - type Vtable = IBarcodeScannerCapabilities2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBarcodeScannerCapabilities2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf211cfec_e1a1_4ea8_9abc_92b1596270ab); -} +::windows_core::imp::com_interface!(IBarcodeScannerCapabilities2, IBarcodeScannerCapabilities2_Vtbl, 0xf211cfec_e1a1_4ea8_9abc_92b1596270ab); #[repr(C)] #[doc(hidden)] pub struct IBarcodeScannerCapabilities2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub IsVideoPreviewSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBarcodeScannerDataReceivedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBarcodeScannerDataReceivedEventArgs { - type Vtable = IBarcodeScannerDataReceivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBarcodeScannerDataReceivedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4234a7e2_ed97_467d_ad2b_01e44313a929); -} +::windows_core::imp::com_interface!(IBarcodeScannerDataReceivedEventArgs, IBarcodeScannerDataReceivedEventArgs_Vtbl, 0x4234a7e2_ed97_467d_ad2b_01e44313a929); #[repr(C)] #[doc(hidden)] pub struct IBarcodeScannerDataReceivedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Report: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBarcodeScannerErrorOccurredEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBarcodeScannerErrorOccurredEventArgs { - type Vtable = IBarcodeScannerErrorOccurredEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBarcodeScannerErrorOccurredEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2cd2602f_cf3a_4002_a75a_c5ec468f0a20); -} +::windows_core::imp::com_interface!(IBarcodeScannerErrorOccurredEventArgs, IBarcodeScannerErrorOccurredEventArgs_Vtbl, 0x2cd2602f_cf3a_4002_a75a_c5ec468f0a20); #[repr(C)] #[doc(hidden)] pub struct IBarcodeScannerErrorOccurredEventArgs_Vtbl { @@ -137,16 +74,7 @@ pub struct IBarcodeScannerErrorOccurredEventArgs_Vtbl { pub IsRetriable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub ErrorData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBarcodeScannerImagePreviewReceivedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBarcodeScannerImagePreviewReceivedEventArgs { - type Vtable = IBarcodeScannerImagePreviewReceivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBarcodeScannerImagePreviewReceivedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf3b7de85_6e8b_434e_9f58_06ef26bc4baf); -} +::windows_core::imp::com_interface!(IBarcodeScannerImagePreviewReceivedEventArgs, IBarcodeScannerImagePreviewReceivedEventArgs_Vtbl, 0xf3b7de85_6e8b_434e_9f58_06ef26bc4baf); #[repr(C)] #[doc(hidden)] pub struct IBarcodeScannerImagePreviewReceivedEventArgs_Vtbl { @@ -156,16 +84,7 @@ pub struct IBarcodeScannerImagePreviewReceivedEventArgs_Vtbl { #[cfg(not(feature = "Storage_Streams"))] Preview: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBarcodeScannerReport(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBarcodeScannerReport { - type Vtable = IBarcodeScannerReport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBarcodeScannerReport { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5ce4d8b0_a489_4b96_86c4_f0bf8a37753d); -} +::windows_core::imp::com_interface!(IBarcodeScannerReport, IBarcodeScannerReport_Vtbl, 0x5ce4d8b0_a489_4b96_86c4_f0bf8a37753d); #[repr(C)] #[doc(hidden)] pub struct IBarcodeScannerReport_Vtbl { @@ -180,16 +99,7 @@ pub struct IBarcodeScannerReport_Vtbl { #[cfg(not(feature = "Storage_Streams"))] ScanDataLabel: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBarcodeScannerReportFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBarcodeScannerReportFactory { - type Vtable = IBarcodeScannerReportFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBarcodeScannerReportFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa2547326_2013_457c_8963_49c15dca78ce); -} +::windows_core::imp::com_interface!(IBarcodeScannerReportFactory, IBarcodeScannerReportFactory_Vtbl, 0xa2547326_2013_457c_8963_49c15dca78ce); #[repr(C)] #[doc(hidden)] pub struct IBarcodeScannerReportFactory_Vtbl { @@ -199,16 +109,7 @@ pub struct IBarcodeScannerReportFactory_Vtbl { #[cfg(not(feature = "Storage_Streams"))] CreateInstance: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBarcodeScannerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBarcodeScannerStatics { - type Vtable = IBarcodeScannerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBarcodeScannerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5d115f6f_da49_41e8_8c8c_f0cb62a9c4fc); -} +::windows_core::imp::com_interface!(IBarcodeScannerStatics, IBarcodeScannerStatics_Vtbl, 0x5d115f6f_da49_41e8_8c8c_f0cb62a9c4fc); #[repr(C)] #[doc(hidden)] pub struct IBarcodeScannerStatics_Vtbl { @@ -217,32 +118,14 @@ pub struct IBarcodeScannerStatics_Vtbl { pub FromIdAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, deviceid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeviceSelector: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBarcodeScannerStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBarcodeScannerStatics2 { - type Vtable = IBarcodeScannerStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBarcodeScannerStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb8652473_a36f_4007_b1d0_279ebe92a656); -} +::windows_core::imp::com_interface!(IBarcodeScannerStatics2, IBarcodeScannerStatics2_Vtbl, 0xb8652473_a36f_4007_b1d0_279ebe92a656); #[repr(C)] #[doc(hidden)] pub struct IBarcodeScannerStatics2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetDeviceSelectorWithConnectionTypes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, connectiontypes: PosConnectionTypes, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBarcodeScannerStatusUpdatedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBarcodeScannerStatusUpdatedEventArgs { - type Vtable = IBarcodeScannerStatusUpdatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBarcodeScannerStatusUpdatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x355d8586_9c43_462b_a91a_816dc97f452c); -} +::windows_core::imp::com_interface!(IBarcodeScannerStatusUpdatedEventArgs, IBarcodeScannerStatusUpdatedEventArgs_Vtbl, 0x355d8586_9c43_462b_a91a_816dc97f452c); #[repr(C)] #[doc(hidden)] pub struct IBarcodeScannerStatusUpdatedEventArgs_Vtbl { @@ -250,16 +133,7 @@ pub struct IBarcodeScannerStatusUpdatedEventArgs_Vtbl { pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut BarcodeScannerStatus) -> ::windows_core::HRESULT, pub ExtendedStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBarcodeSymbologiesStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBarcodeSymbologiesStatics { - type Vtable = IBarcodeSymbologiesStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBarcodeSymbologiesStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xca8549bb_06d2_43f4_a44b_c620679fd8d0); -} +::windows_core::imp::com_interface!(IBarcodeSymbologiesStatics, IBarcodeSymbologiesStatics_Vtbl, 0xca8549bb_06d2_43f4_a44b_c620679fd8d0); #[repr(C)] #[doc(hidden)] pub struct IBarcodeSymbologiesStatics_Vtbl { @@ -359,32 +233,14 @@ pub struct IBarcodeSymbologiesStatics_Vtbl { pub ExtendedBase: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, pub GetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, scandatatype: u32, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBarcodeSymbologiesStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBarcodeSymbologiesStatics2 { - type Vtable = IBarcodeSymbologiesStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBarcodeSymbologiesStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8b7518f4_99d0_40bf_9424_b91d6dd4c6e0); -} +::windows_core::imp::com_interface!(IBarcodeSymbologiesStatics2, IBarcodeSymbologiesStatics2_Vtbl, 0x8b7518f4_99d0_40bf_9424_b91d6dd4c6e0); #[repr(C)] #[doc(hidden)] pub struct IBarcodeSymbologiesStatics2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Gs1DWCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBarcodeSymbologyAttributes(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBarcodeSymbologyAttributes { - type Vtable = IBarcodeSymbologyAttributes_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBarcodeSymbologyAttributes { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x66413a78_ab7a_4ada_8ece_936014b2ead7); -} +::windows_core::imp::com_interface!(IBarcodeSymbologyAttributes, IBarcodeSymbologyAttributes_Vtbl, 0x66413a78_ab7a_4ada_8ece_936014b2ead7); #[repr(C)] #[doc(hidden)] pub struct IBarcodeSymbologyAttributes_Vtbl { @@ -403,16 +259,7 @@ pub struct IBarcodeSymbologyAttributes_Vtbl { pub SetDecodeLengthKind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: BarcodeSymbologyDecodeLengthKind) -> ::windows_core::HRESULT, pub IsDecodeLengthSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICashDrawer(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICashDrawer { - type Vtable = ICashDrawer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICashDrawer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9f88f5c8_de54_4aee_a890_920bcbfe30fc); -} +::windows_core::imp::com_interface!(ICashDrawer, ICashDrawer_Vtbl, 0x9f88f5c8_de54_4aee_a890_920bcbfe30fc); #[repr(C)] #[doc(hidden)] pub struct ICashDrawer_Vtbl { @@ -431,16 +278,7 @@ pub struct ICashDrawer_Vtbl { pub StatusUpdated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveStatusUpdated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICashDrawerCapabilities(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICashDrawerCapabilities { - type Vtable = ICashDrawerCapabilities_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICashDrawerCapabilities { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0bc6de0b_e8e7_4b1f_b1d1_3e501ad08247); -} +::windows_core::imp::com_interface!(ICashDrawerCapabilities, ICashDrawerCapabilities_Vtbl, 0x0bc6de0b_e8e7_4b1f_b1d1_3e501ad08247); #[repr(C)] #[doc(hidden)] pub struct ICashDrawerCapabilities_Vtbl { @@ -452,16 +290,7 @@ pub struct ICashDrawerCapabilities_Vtbl { pub IsStatusMultiDrawerDetectSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub IsDrawerOpenSensorAvailable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICashDrawerCloseAlarm(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICashDrawerCloseAlarm { - type Vtable = ICashDrawerCloseAlarm_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICashDrawerCloseAlarm { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6bf88cc7_6f63_430e_ab3b_95d75ffbe87f); -} +::windows_core::imp::com_interface!(ICashDrawerCloseAlarm, ICashDrawerCloseAlarm_Vtbl, 0x6bf88cc7_6f63_430e_ab3b_95d75ffbe87f); #[repr(C)] #[doc(hidden)] pub struct ICashDrawerCloseAlarm_Vtbl { @@ -478,16 +307,7 @@ pub struct ICashDrawerCloseAlarm_Vtbl { pub RemoveAlarmTimeoutExpired: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub StartAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICashDrawerEventSource(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICashDrawerEventSource { - type Vtable = ICashDrawerEventSource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICashDrawerEventSource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe006e46c_f2f9_442f_8dd6_06c10a4227ba); -} +::windows_core::imp::com_interface!(ICashDrawerEventSource, ICashDrawerEventSource_Vtbl, 0xe006e46c_f2f9_442f_8dd6_06c10a4227ba); #[repr(C)] #[doc(hidden)] pub struct ICashDrawerEventSource_Vtbl { @@ -497,9 +317,8 @@ pub struct ICashDrawerEventSource_Vtbl { pub DrawerOpened: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveDrawerOpened: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICashDrawerEventSourceEventArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICashDrawerEventSourceEventArgs, ICashDrawerEventSourceEventArgs_Vtbl, 0x69cb3bc1_147f_421c_9c23_090123bb786c); +::windows_core::imp::interface_hierarchy!(ICashDrawerEventSourceEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ICashDrawerEventSourceEventArgs { pub fn CashDrawer(&self) -> ::windows_core::Result { let this = self; @@ -509,32 +328,16 @@ impl ICashDrawerEventSourceEventArgs { } } } -::windows_core::imp::interface_hierarchy!(ICashDrawerEventSourceEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for ICashDrawerEventSourceEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for ICashDrawerEventSourceEventArgs { - type Vtable = ICashDrawerEventSourceEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICashDrawerEventSourceEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x69cb3bc1_147f_421c_9c23_090123bb786c); -} #[repr(C)] #[doc(hidden)] pub struct ICashDrawerEventSourceEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CashDrawer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICashDrawerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICashDrawerStatics { - type Vtable = ICashDrawerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICashDrawerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdfa0955a_d437_4fff_b547_dda969a4f883); -} +::windows_core::imp::com_interface!(ICashDrawerStatics, ICashDrawerStatics_Vtbl, 0xdfa0955a_d437_4fff_b547_dda969a4f883); #[repr(C)] #[doc(hidden)] pub struct ICashDrawerStatics_Vtbl { @@ -543,32 +346,14 @@ pub struct ICashDrawerStatics_Vtbl { pub FromIdAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, deviceid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeviceSelector: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICashDrawerStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICashDrawerStatics2 { - type Vtable = ICashDrawerStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICashDrawerStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3e818121_8c42_40e8_9c0e_40297048104c); -} +::windows_core::imp::com_interface!(ICashDrawerStatics2, ICashDrawerStatics2_Vtbl, 0x3e818121_8c42_40e8_9c0e_40297048104c); #[repr(C)] #[doc(hidden)] pub struct ICashDrawerStatics2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetDeviceSelectorWithConnectionTypes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, connectiontypes: PosConnectionTypes, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICashDrawerStatus(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICashDrawerStatus { - type Vtable = ICashDrawerStatus_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICashDrawerStatus { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6bbd78bf_dca1_4e06_99eb_5af6a5aec108); -} +::windows_core::imp::com_interface!(ICashDrawerStatus, ICashDrawerStatus_Vtbl, 0x6bbd78bf_dca1_4e06_99eb_5af6a5aec108); #[repr(C)] #[doc(hidden)] pub struct ICashDrawerStatus_Vtbl { @@ -576,32 +361,14 @@ pub struct ICashDrawerStatus_Vtbl { pub StatusKind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut CashDrawerStatusKind) -> ::windows_core::HRESULT, pub ExtendedStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICashDrawerStatusUpdatedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICashDrawerStatusUpdatedEventArgs { - type Vtable = ICashDrawerStatusUpdatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICashDrawerStatusUpdatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x30aae98a_0d70_459c_9553_87e124c52488); -} +::windows_core::imp::com_interface!(ICashDrawerStatusUpdatedEventArgs, ICashDrawerStatusUpdatedEventArgs_Vtbl, 0x30aae98a_0d70_459c_9553_87e124c52488); #[repr(C)] #[doc(hidden)] pub struct ICashDrawerStatusUpdatedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IClaimedBarcodeScanner(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IClaimedBarcodeScanner { - type Vtable = IClaimedBarcodeScanner_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IClaimedBarcodeScanner { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4a63b49c_8fa4_4332_bb26_945d11d81e0f); -} +::windows_core::imp::com_interface!(IClaimedBarcodeScanner, IClaimedBarcodeScanner_Vtbl, 0x4a63b49c_8fa4_4332_bb26_945d11d81e0f); #[repr(C)] #[doc(hidden)] pub struct IClaimedBarcodeScanner_Vtbl { @@ -641,16 +408,7 @@ pub struct IClaimedBarcodeScanner_Vtbl { pub ErrorOccurred: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveErrorOccurred: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IClaimedBarcodeScanner1(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IClaimedBarcodeScanner1 { - type Vtable = IClaimedBarcodeScanner1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IClaimedBarcodeScanner1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf61aad0c_8551_42b4_998c_970c20210a22); -} +::windows_core::imp::com_interface!(IClaimedBarcodeScanner1, IClaimedBarcodeScanner1_Vtbl, 0xf61aad0c_8551_42b4_998c_970c20210a22); #[repr(C)] #[doc(hidden)] pub struct IClaimedBarcodeScanner1_Vtbl { @@ -658,16 +416,7 @@ pub struct IClaimedBarcodeScanner1_Vtbl { pub StartSoftwareTriggerAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub StopSoftwareTriggerAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IClaimedBarcodeScanner2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IClaimedBarcodeScanner2 { - type Vtable = IClaimedBarcodeScanner2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IClaimedBarcodeScanner2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe3b59e8c_2d8b_4f70_8af3_3448bedd5fe2); -} +::windows_core::imp::com_interface!(IClaimedBarcodeScanner2, IClaimedBarcodeScanner2_Vtbl, 0xe3b59e8c_2d8b_4f70_8af3_3448bedd5fe2); #[repr(C)] #[doc(hidden)] pub struct IClaimedBarcodeScanner2_Vtbl { @@ -675,16 +424,7 @@ pub struct IClaimedBarcodeScanner2_Vtbl { pub GetSymbologyAttributesAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, barcodesymbology: u32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetSymbologyAttributesAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, barcodesymbology: u32, attributes: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IClaimedBarcodeScanner3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IClaimedBarcodeScanner3 { - type Vtable = IClaimedBarcodeScanner3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IClaimedBarcodeScanner3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe6ceb430_712e_45fc_8b86_cd55f5aef79d); -} +::windows_core::imp::com_interface!(IClaimedBarcodeScanner3, IClaimedBarcodeScanner3_Vtbl, 0xe6ceb430_712e_45fc_8b86_cd55f5aef79d); #[repr(C)] #[doc(hidden)] pub struct IClaimedBarcodeScanner3_Vtbl { @@ -694,16 +434,7 @@ pub struct IClaimedBarcodeScanner3_Vtbl { pub SetIsVideoPreviewShownOnEnable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, pub IsVideoPreviewShownOnEnable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IClaimedBarcodeScanner4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IClaimedBarcodeScanner4 { - type Vtable = IClaimedBarcodeScanner4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IClaimedBarcodeScanner4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5d501f97_376a_41a8_a230_2f37c1949dde); -} +::windows_core::imp::com_interface!(IClaimedBarcodeScanner4, IClaimedBarcodeScanner4_Vtbl, 0x5d501f97_376a_41a8_a230_2f37c1949dde); #[repr(C)] #[doc(hidden)] pub struct IClaimedBarcodeScanner4_Vtbl { @@ -711,31 +442,13 @@ pub struct IClaimedBarcodeScanner4_Vtbl { pub Closed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveClosed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IClaimedBarcodeScannerClosedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IClaimedBarcodeScannerClosedEventArgs { - type Vtable = IClaimedBarcodeScannerClosedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IClaimedBarcodeScannerClosedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcf7d5489_a22c_4c65_a901_88d77d833954); -} +::windows_core::imp::com_interface!(IClaimedBarcodeScannerClosedEventArgs, IClaimedBarcodeScannerClosedEventArgs_Vtbl, 0xcf7d5489_a22c_4c65_a901_88d77d833954); #[repr(C)] #[doc(hidden)] pub struct IClaimedBarcodeScannerClosedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IClaimedCashDrawer(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IClaimedCashDrawer { - type Vtable = IClaimedCashDrawer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IClaimedCashDrawer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xca3f99af_abb8_42c1_8a84_5c66512f5a75); -} +::windows_core::imp::com_interface!(IClaimedCashDrawer, IClaimedCashDrawer_Vtbl, 0xca3f99af_abb8_42c1_8a84_5c66512f5a75); #[repr(C)] #[doc(hidden)] pub struct IClaimedCashDrawer_Vtbl { @@ -759,16 +472,7 @@ pub struct IClaimedCashDrawer_Vtbl { pub ReleaseDeviceRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveReleaseDeviceRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IClaimedCashDrawer2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IClaimedCashDrawer2 { - type Vtable = IClaimedCashDrawer2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IClaimedCashDrawer2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9cbab5a2_de42_4d5b_b0c1_9b57a2ba89c3); -} +::windows_core::imp::com_interface!(IClaimedCashDrawer2, IClaimedCashDrawer2_Vtbl, 0x9cbab5a2_de42_4d5b_b0c1_9b57a2ba89c3); #[repr(C)] #[doc(hidden)] pub struct IClaimedCashDrawer2_Vtbl { @@ -776,47 +480,20 @@ pub struct IClaimedCashDrawer2_Vtbl { pub Closed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveClosed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IClaimedCashDrawerClosedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IClaimedCashDrawerClosedEventArgs { - type Vtable = IClaimedCashDrawerClosedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IClaimedCashDrawerClosedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcc573f33_3f34_4c5c_baae_deadf16cd7fa); -} +::windows_core::imp::com_interface!(IClaimedCashDrawerClosedEventArgs, IClaimedCashDrawerClosedEventArgs_Vtbl, 0xcc573f33_3f34_4c5c_baae_deadf16cd7fa); #[repr(C)] #[doc(hidden)] pub struct IClaimedCashDrawerClosedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IClaimedJournalPrinter(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IClaimedJournalPrinter { - type Vtable = IClaimedJournalPrinter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IClaimedJournalPrinter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x67ea0630_517d_487f_9fdf_d2e0a0a264a5); -} +::windows_core::imp::com_interface!(IClaimedJournalPrinter, IClaimedJournalPrinter_Vtbl, 0x67ea0630_517d_487f_9fdf_d2e0a0a264a5); #[repr(C)] #[doc(hidden)] pub struct IClaimedJournalPrinter_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateJob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IClaimedLineDisplay(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IClaimedLineDisplay { - type Vtable = IClaimedLineDisplay_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IClaimedLineDisplay { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x120ac970_9a75_4acf_aae7_09972bcf8794); -} +::windows_core::imp::com_interface!(IClaimedLineDisplay, IClaimedLineDisplay_Vtbl, 0x120ac970_9a75_4acf_aae7_09972bcf8794); #[repr(C)] #[doc(hidden)] pub struct IClaimedLineDisplay_Vtbl { @@ -833,16 +510,7 @@ pub struct IClaimedLineDisplay_Vtbl { pub ReleaseDeviceRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveReleaseDeviceRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IClaimedLineDisplay2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IClaimedLineDisplay2 { - type Vtable = IClaimedLineDisplay2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IClaimedLineDisplay2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa31c75ed_41f5_4e76_a074_795e47a46e97); -} +::windows_core::imp::com_interface!(IClaimedLineDisplay2, IClaimedLineDisplay2_Vtbl, 0xa31c75ed_41f5_4e76_a074_795e47a46e97); #[repr(C)] #[doc(hidden)] pub struct IClaimedLineDisplay2_Vtbl { @@ -883,16 +551,7 @@ pub struct IClaimedLineDisplay2_Vtbl { #[cfg(not(feature = "Storage"))] TryStoreStorageFileBitmapWithAlignmentAndWidthAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IClaimedLineDisplay3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IClaimedLineDisplay3 { - type Vtable = IClaimedLineDisplay3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IClaimedLineDisplay3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x642ecd92_e9d4_4ecc_af75_329c274cd18f); -} +::windows_core::imp::com_interface!(IClaimedLineDisplay3, IClaimedLineDisplay3_Vtbl, 0x642ecd92_e9d4_4ecc_af75_329c274cd18f); #[repr(C)] #[doc(hidden)] pub struct IClaimedLineDisplay3_Vtbl { @@ -900,31 +559,13 @@ pub struct IClaimedLineDisplay3_Vtbl { pub Closed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveClosed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IClaimedLineDisplayClosedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IClaimedLineDisplayClosedEventArgs { - type Vtable = IClaimedLineDisplayClosedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IClaimedLineDisplayClosedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf915f364_d3d5_4f10_b511_90939edfacd8); -} +::windows_core::imp::com_interface!(IClaimedLineDisplayClosedEventArgs, IClaimedLineDisplayClosedEventArgs_Vtbl, 0xf915f364_d3d5_4f10_b511_90939edfacd8); #[repr(C)] #[doc(hidden)] pub struct IClaimedLineDisplayClosedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IClaimedLineDisplayStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IClaimedLineDisplayStatics { - type Vtable = IClaimedLineDisplayStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IClaimedLineDisplayStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x78ca98fb_8b6b_4973_86f0_3e570c351825); -} +::windows_core::imp::com_interface!(IClaimedLineDisplayStatics, IClaimedLineDisplayStatics_Vtbl, 0x78ca98fb_8b6b_4973_86f0_3e570c351825); #[repr(C)] #[doc(hidden)] pub struct IClaimedLineDisplayStatics_Vtbl { @@ -933,16 +574,7 @@ pub struct IClaimedLineDisplayStatics_Vtbl { pub GetDeviceSelector: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub GetDeviceSelectorWithConnectionTypes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, connectiontypes: PosConnectionTypes, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IClaimedMagneticStripeReader(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IClaimedMagneticStripeReader { - type Vtable = IClaimedMagneticStripeReader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IClaimedMagneticStripeReader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x475ca8f3_9417_48bc_b9d7_4163a7844c02); -} +::windows_core::imp::com_interface!(IClaimedMagneticStripeReader, IClaimedMagneticStripeReader_Vtbl, 0x475ca8f3_9417_48bc_b9d7_4163a7844c02); #[repr(C)] #[doc(hidden)] pub struct IClaimedMagneticStripeReader_Vtbl { @@ -990,16 +622,7 @@ pub struct IClaimedMagneticStripeReader_Vtbl { pub ErrorOccurred: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveErrorOccurred: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IClaimedMagneticStripeReader2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IClaimedMagneticStripeReader2 { - type Vtable = IClaimedMagneticStripeReader2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IClaimedMagneticStripeReader2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x236fafdf_e2dc_4d7d_9c78_060df2bf2928); -} +::windows_core::imp::com_interface!(IClaimedMagneticStripeReader2, IClaimedMagneticStripeReader2_Vtbl, 0x236fafdf_e2dc_4d7d_9c78_060df2bf2928); #[repr(C)] #[doc(hidden)] pub struct IClaimedMagneticStripeReader2_Vtbl { @@ -1007,31 +630,13 @@ pub struct IClaimedMagneticStripeReader2_Vtbl { pub Closed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveClosed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IClaimedMagneticStripeReaderClosedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IClaimedMagneticStripeReaderClosedEventArgs { - type Vtable = IClaimedMagneticStripeReaderClosedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IClaimedMagneticStripeReaderClosedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x14ada93a_adcd_4c80_acda_c3eaed2647e1); -} +::windows_core::imp::com_interface!(IClaimedMagneticStripeReaderClosedEventArgs, IClaimedMagneticStripeReaderClosedEventArgs_Vtbl, 0x14ada93a_adcd_4c80_acda_c3eaed2647e1); #[repr(C)] #[doc(hidden)] pub struct IClaimedMagneticStripeReaderClosedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IClaimedPosPrinter(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IClaimedPosPrinter { - type Vtable = IClaimedPosPrinter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IClaimedPosPrinter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6d64ce0c_e03e_4b14_a38e_c28c34b86353); -} +::windows_core::imp::com_interface!(IClaimedPosPrinter, IClaimedPosPrinter_Vtbl, 0x6d64ce0c_e03e_4b14_a38e_c28c34b86353); #[repr(C)] #[doc(hidden)] pub struct IClaimedPosPrinter_Vtbl { @@ -1062,16 +667,7 @@ pub struct IClaimedPosPrinter_Vtbl { pub ReleaseDeviceRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveReleaseDeviceRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IClaimedPosPrinter2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IClaimedPosPrinter2 { - type Vtable = IClaimedPosPrinter2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IClaimedPosPrinter2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5bf7a3d5_5198_437a_82df_589993fa77e1); -} +::windows_core::imp::com_interface!(IClaimedPosPrinter2, IClaimedPosPrinter2_Vtbl, 0x5bf7a3d5_5198_437a_82df_589993fa77e1); #[repr(C)] #[doc(hidden)] pub struct IClaimedPosPrinter2_Vtbl { @@ -1079,31 +675,13 @@ pub struct IClaimedPosPrinter2_Vtbl { pub Closed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveClosed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IClaimedPosPrinterClosedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IClaimedPosPrinterClosedEventArgs { - type Vtable = IClaimedPosPrinterClosedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IClaimedPosPrinterClosedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe2b7a27b_4d40_471d_92ed_63375b18c788); -} +::windows_core::imp::com_interface!(IClaimedPosPrinterClosedEventArgs, IClaimedPosPrinterClosedEventArgs_Vtbl, 0xe2b7a27b_4d40_471d_92ed_63375b18c788); #[repr(C)] #[doc(hidden)] pub struct IClaimedPosPrinterClosedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IClaimedReceiptPrinter(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IClaimedReceiptPrinter { - type Vtable = IClaimedReceiptPrinter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IClaimedReceiptPrinter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9ad27a74_dd61_4ee2_9837_5b5d72d538b9); -} +::windows_core::imp::com_interface!(IClaimedReceiptPrinter, IClaimedReceiptPrinter_Vtbl, 0x9ad27a74_dd61_4ee2_9837_5b5d72d538b9); #[repr(C)] #[doc(hidden)] pub struct IClaimedReceiptPrinter_Vtbl { @@ -1115,16 +693,7 @@ pub struct IClaimedReceiptPrinter_Vtbl { pub PrintArea: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::Rect) -> ::windows_core::HRESULT, pub CreateJob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IClaimedSlipPrinter(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IClaimedSlipPrinter { - type Vtable = IClaimedSlipPrinter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IClaimedSlipPrinter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbd5deff2_af90_4e8a_b77b_e3ae9ca63a7f); -} +::windows_core::imp::com_interface!(IClaimedSlipPrinter, IClaimedSlipPrinter_Vtbl, 0xbd5deff2_af90_4e8a_b77b_e3ae9ca63a7f); #[repr(C)] #[doc(hidden)] pub struct IClaimedSlipPrinter_Vtbl { @@ -1143,9 +712,8 @@ pub struct IClaimedSlipPrinter_Vtbl { pub ChangePrintSide: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, printside: PosPrinterPrintSide) -> ::windows_core::HRESULT, pub CreateJob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICommonClaimedPosPrinterStation(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICommonClaimedPosPrinterStation, ICommonClaimedPosPrinterStation_Vtbl, 0xb7eb66a8_fe8a_4cfb_8b42_e35b280cb27c); +::windows_core::imp::interface_hierarchy!(ICommonClaimedPosPrinterStation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ICommonClaimedPosPrinterStation { pub fn SetCharactersPerLine(&self, value: u32) -> ::windows_core::Result<()> { let this = self; @@ -1266,16 +834,9 @@ impl ICommonClaimedPosPrinterStation { } } } -::windows_core::imp::interface_hierarchy!(ICommonClaimedPosPrinterStation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for ICommonClaimedPosPrinterStation { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for ICommonClaimedPosPrinterStation { - type Vtable = ICommonClaimedPosPrinterStation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICommonClaimedPosPrinterStation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb7eb66a8_fe8a_4cfb_8b42_e35b280cb27c); -} #[repr(C)] #[doc(hidden)] pub struct ICommonClaimedPosPrinterStation_Vtbl { @@ -1300,9 +861,8 @@ pub struct ICommonClaimedPosPrinterStation_Vtbl { pub IsReadyToPrint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub ValidateData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, data: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut bool) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICommonPosPrintStationCapabilities(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICommonPosPrintStationCapabilities, ICommonPosPrintStationCapabilities_Vtbl, 0xde5b52ca_e02e_40e9_9e5e_1b488e6aacfc); +::windows_core::imp::interface_hierarchy!(ICommonPosPrintStationCapabilities, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ICommonPosPrintStationCapabilities { pub fn IsPrinterPresent(&self) -> ::windows_core::Result { let this = self; @@ -1398,16 +958,9 @@ impl ICommonPosPrintStationCapabilities { } } } -::windows_core::imp::interface_hierarchy!(ICommonPosPrintStationCapabilities, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for ICommonPosPrintStationCapabilities { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for ICommonPosPrintStationCapabilities { - type Vtable = ICommonPosPrintStationCapabilities_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICommonPosPrintStationCapabilities { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xde5b52ca_e02e_40e9_9e5e_1b488e6aacfc); -} #[repr(C)] #[doc(hidden)] pub struct ICommonPosPrintStationCapabilities_Vtbl { @@ -1429,9 +982,9 @@ pub struct ICommonPosPrintStationCapabilities_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] SupportedCharactersPerLine: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICommonReceiptSlipCapabilities(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICommonReceiptSlipCapabilities, ICommonReceiptSlipCapabilities_Vtbl, 0x09286b8b_9873_4d05_bfbe_4727a6038f69); +::windows_core::imp::interface_hierarchy!(ICommonReceiptSlipCapabilities, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ICommonReceiptSlipCapabilities, ICommonPosPrintStationCapabilities); impl ICommonReceiptSlipCapabilities { pub fn IsBarcodeSupported(&self) -> ::windows_core::Result { let this = self; @@ -1501,84 +1054,84 @@ impl ICommonReceiptSlipCapabilities { } } pub fn IsPrinterPresent(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsPrinterPresent)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsDualColorSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsDualColorSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ColorCartridgeCapabilities(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ColorCartridgeCapabilities)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CartridgeSensors(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CartridgeSensors)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsBoldSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsBoldSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsItalicSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsItalicSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsUnderlineSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsUnderlineSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsDoubleHighPrintSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsDoubleHighPrintSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsDoubleWidePrintSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsDoubleWidePrintSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsDoubleHighDoubleWidePrintSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsDoubleHighDoubleWidePrintSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsPaperEmptySensorSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsPaperEmptySensorSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsPaperNearEndSensorSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsPaperNearEndSensorSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1587,24 +1140,16 @@ impl ICommonReceiptSlipCapabilities { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn SupportedCharactersPerLine(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SupportedCharactersPerLine)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(ICommonReceiptSlipCapabilities, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ICommonReceiptSlipCapabilities {} impl ::windows_core::RuntimeType for ICommonReceiptSlipCapabilities { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for ICommonReceiptSlipCapabilities { - type Vtable = ICommonReceiptSlipCapabilities_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICommonReceiptSlipCapabilities { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x09286b8b_9873_4d05_bfbe_4727a6038f69); -} #[repr(C)] #[doc(hidden)] pub struct ICommonReceiptSlipCapabilities_Vtbl { @@ -1625,16 +1170,7 @@ pub struct ICommonReceiptSlipCapabilities_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] SupportedBitmapRotations: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IJournalPrintJob(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IJournalPrintJob { - type Vtable = IJournalPrintJob_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IJournalPrintJob { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9f4f2864_f3f0_55d0_8c39_74cc91783eed); -} +::windows_core::imp::com_interface!(IJournalPrintJob, IJournalPrintJob_Vtbl, 0x9f4f2864_f3f0_55d0_8c39_74cc91783eed); #[repr(C)] #[doc(hidden)] pub struct IJournalPrintJob_Vtbl { @@ -1643,31 +1179,13 @@ pub struct IJournalPrintJob_Vtbl { pub FeedPaperByLine: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, linecount: i32) -> ::windows_core::HRESULT, pub FeedPaperByMapModeUnit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, distance: i32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IJournalPrinterCapabilities(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IJournalPrinterCapabilities { - type Vtable = IJournalPrinterCapabilities_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IJournalPrinterCapabilities { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3b5ccc43_e047_4463_bb58_17b5ba1d8056); -} +::windows_core::imp::com_interface!(IJournalPrinterCapabilities, IJournalPrinterCapabilities_Vtbl, 0x3b5ccc43_e047_4463_bb58_17b5ba1d8056); #[repr(C)] #[doc(hidden)] pub struct IJournalPrinterCapabilities_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IJournalPrinterCapabilities2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IJournalPrinterCapabilities2 { - type Vtable = IJournalPrinterCapabilities2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IJournalPrinterCapabilities2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x03b0b645_33b8_533b_baaa_a4389283ab0a); -} +::windows_core::imp::com_interface!(IJournalPrinterCapabilities2, IJournalPrinterCapabilities2_Vtbl, 0x03b0b645_33b8_533b_baaa_a4389283ab0a); #[repr(C)] #[doc(hidden)] pub struct IJournalPrinterCapabilities2_Vtbl { @@ -1679,16 +1197,7 @@ pub struct IJournalPrinterCapabilities2_Vtbl { pub IsReversePaperFeedByLineSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub IsReversePaperFeedByMapModeUnitSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILineDisplay(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILineDisplay { - type Vtable = ILineDisplay_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILineDisplay { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x24f5df4e_3c99_44e2_b73f_e51be3637a8c); -} +::windows_core::imp::com_interface!(ILineDisplay, ILineDisplay_Vtbl, 0x24f5df4e_3c99_44e2_b73f_e51be3637a8c); #[repr(C)] #[doc(hidden)] pub struct ILineDisplay_Vtbl { @@ -1702,32 +1211,14 @@ pub struct ILineDisplay_Vtbl { pub DeviceServiceVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub ClaimAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILineDisplay2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILineDisplay2 { - type Vtable = ILineDisplay2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILineDisplay2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc296a628_ef44_40f3_bd1c_b04c6a5cdc7d); -} +::windows_core::imp::com_interface!(ILineDisplay2, ILineDisplay2_Vtbl, 0xc296a628_ef44_40f3_bd1c_b04c6a5cdc7d); #[repr(C)] #[doc(hidden)] pub struct ILineDisplay2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CheckPowerStatusAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILineDisplayAttributes(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILineDisplayAttributes { - type Vtable = ILineDisplayAttributes_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILineDisplayAttributes { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc17de99c_229a_4c14_a6f1_b4e4b1fead92); -} +::windows_core::imp::com_interface!(ILineDisplayAttributes, ILineDisplayAttributes_Vtbl, 0xc17de99c_229a_4c14_a6f1_b4e4b1fead92); #[repr(C)] #[doc(hidden)] pub struct ILineDisplayAttributes_Vtbl { @@ -1747,16 +1238,7 @@ pub struct ILineDisplayAttributes_Vtbl { pub CurrentWindow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetCurrentWindow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILineDisplayCapabilities(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILineDisplayCapabilities { - type Vtable = ILineDisplayCapabilities_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILineDisplayCapabilities { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5a15b5d1_8dc5_4b9c_9172_303e47b70c55); -} +::windows_core::imp::com_interface!(ILineDisplayCapabilities, ILineDisplayCapabilities_Vtbl, 0x5a15b5d1_8dc5_4b9c_9172_303e47b70c55); #[repr(C)] #[doc(hidden)] pub struct ILineDisplayCapabilities_Vtbl { @@ -1780,16 +1262,7 @@ pub struct ILineDisplayCapabilities_Vtbl { pub SupportedDescriptors: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, pub SupportedWindows: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILineDisplayCursor(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILineDisplayCursor { - type Vtable = ILineDisplayCursor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILineDisplayCursor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xecdffc45_754a_4e3b_ab2b_151181085605); -} +::windows_core::imp::com_interface!(ILineDisplayCursor, ILineDisplayCursor_Vtbl, 0xecdffc45_754a_4e3b_ab2b_151181085605); #[repr(C)] #[doc(hidden)] pub struct ILineDisplayCursor_Vtbl { @@ -1804,16 +1277,7 @@ pub struct ILineDisplayCursor_Vtbl { pub GetAttributes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub TryUpdateAttributesAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, attributes: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILineDisplayCursorAttributes(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILineDisplayCursorAttributes { - type Vtable = ILineDisplayCursorAttributes_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILineDisplayCursorAttributes { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4e2d54fe_4ffd_4190_aae1_ce285f20c896); -} +::windows_core::imp::com_interface!(ILineDisplayCursorAttributes, ILineDisplayCursorAttributes_Vtbl, 0x4e2d54fe_4ffd_4190_aae1_ce285f20c896); #[repr(C)] #[doc(hidden)] pub struct ILineDisplayCursorAttributes_Vtbl { @@ -1827,16 +1291,7 @@ pub struct ILineDisplayCursorAttributes_Vtbl { pub Position: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::Point) -> ::windows_core::HRESULT, pub SetPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::Foundation::Point) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILineDisplayCustomGlyphs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILineDisplayCustomGlyphs { - type Vtable = ILineDisplayCustomGlyphs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILineDisplayCustomGlyphs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2257f63c_f263_44f1_a1a0_e750a6a0ec54); -} +::windows_core::imp::com_interface!(ILineDisplayCustomGlyphs, ILineDisplayCustomGlyphs_Vtbl, 0x2257f63c_f263_44f1_a1a0_e750a6a0ec54); #[repr(C)] #[doc(hidden)] pub struct ILineDisplayCustomGlyphs_Vtbl { @@ -1851,16 +1306,7 @@ pub struct ILineDisplayCustomGlyphs_Vtbl { #[cfg(not(feature = "Storage_Streams"))] TryRedefineAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILineDisplayMarquee(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILineDisplayMarquee { - type Vtable = ILineDisplayMarquee_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILineDisplayMarquee { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa3d33e3e_f46a_4b7a_bc21_53eb3b57f8b4); -} +::windows_core::imp::com_interface!(ILineDisplayMarquee, ILineDisplayMarquee_Vtbl, 0xa3d33e3e_f46a_4b7a_bc21_53eb3b57f8b4); #[repr(C)] #[doc(hidden)] pub struct ILineDisplayMarquee_Vtbl { @@ -1874,16 +1320,7 @@ pub struct ILineDisplayMarquee_Vtbl { pub TryStartScrollingAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, direction: LineDisplayScrollDirection, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub TryStopScrollingAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILineDisplayStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILineDisplayStatics { - type Vtable = ILineDisplayStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILineDisplayStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x022dc0b6_11b0_4690_9547_0b39c5af2114); -} +::windows_core::imp::com_interface!(ILineDisplayStatics, ILineDisplayStatics_Vtbl, 0x022dc0b6_11b0_4690_9547_0b39c5af2114); #[repr(C)] #[doc(hidden)] pub struct ILineDisplayStatics_Vtbl { @@ -1893,32 +1330,14 @@ pub struct ILineDisplayStatics_Vtbl { pub GetDeviceSelector: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub GetDeviceSelectorWithConnectionTypes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, connectiontypes: PosConnectionTypes, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILineDisplayStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILineDisplayStatics2 { - type Vtable = ILineDisplayStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILineDisplayStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x600c3f1c_77ab_4968_a7de_c02ff169f2cc); -} +::windows_core::imp::com_interface!(ILineDisplayStatics2, ILineDisplayStatics2_Vtbl, 0x600c3f1c_77ab_4968_a7de_c02ff169f2cc); #[repr(C)] #[doc(hidden)] pub struct ILineDisplayStatics2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub StatisticsCategorySelector: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILineDisplayStatisticsCategorySelector(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILineDisplayStatisticsCategorySelector { - type Vtable = ILineDisplayStatisticsCategorySelector_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILineDisplayStatisticsCategorySelector { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb521c46b_9274_4d24_94f3_b6017b832444); -} +::windows_core::imp::com_interface!(ILineDisplayStatisticsCategorySelector, ILineDisplayStatisticsCategorySelector_Vtbl, 0xb521c46b_9274_4d24_94f3_b6017b832444); #[repr(C)] #[doc(hidden)] pub struct ILineDisplayStatisticsCategorySelector_Vtbl { @@ -1927,32 +1346,14 @@ pub struct ILineDisplayStatisticsCategorySelector_Vtbl { pub UnifiedPosStatistics: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub ManufacturerStatistics: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILineDisplayStatusUpdatedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILineDisplayStatusUpdatedEventArgs { - type Vtable = ILineDisplayStatusUpdatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILineDisplayStatusUpdatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xddd57c1a_86fb_4eba_93d1_6f5eda52b752); -} +::windows_core::imp::com_interface!(ILineDisplayStatusUpdatedEventArgs, ILineDisplayStatusUpdatedEventArgs_Vtbl, 0xddd57c1a_86fb_4eba_93d1_6f5eda52b752); #[repr(C)] #[doc(hidden)] pub struct ILineDisplayStatusUpdatedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut LineDisplayPowerStatus) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILineDisplayStoredBitmap(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILineDisplayStoredBitmap { - type Vtable = ILineDisplayStoredBitmap_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILineDisplayStoredBitmap { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf621515b_d81e_43ba_bf1b_bcfa3c785ba0); -} +::windows_core::imp::com_interface!(ILineDisplayStoredBitmap, ILineDisplayStoredBitmap_Vtbl, 0xf621515b_d81e_43ba_bf1b_bcfa3c785ba0); #[repr(C)] #[doc(hidden)] pub struct ILineDisplayStoredBitmap_Vtbl { @@ -1960,16 +1361,7 @@ pub struct ILineDisplayStoredBitmap_Vtbl { pub EscapeSequence: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub TryDeleteAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILineDisplayWindow(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILineDisplayWindow { - type Vtable = ILineDisplayWindow_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILineDisplayWindow { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd21feef4_2364_4be5_bee1_851680af4964); -} +::windows_core::imp::com_interface!(ILineDisplayWindow, ILineDisplayWindow_Vtbl, 0xd21feef4_2364_4be5_bee1_851680af4964); #[repr(C)] #[doc(hidden)] pub struct ILineDisplayWindow_Vtbl { @@ -1984,16 +1376,7 @@ pub struct ILineDisplayWindow_Vtbl { pub TryScrollTextAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, direction: LineDisplayScrollDirection, numberofcolumnsorrows: u32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub TryClearTextAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILineDisplayWindow2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILineDisplayWindow2 { - type Vtable = ILineDisplayWindow2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILineDisplayWindow2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa95ce2e6_bdd8_4365_8e11_de94de8dff02); -} +::windows_core::imp::com_interface!(ILineDisplayWindow2, ILineDisplayWindow2_Vtbl, 0xa95ce2e6_bdd8_4365_8e11_de94de8dff02); #[repr(C)] #[doc(hidden)] pub struct ILineDisplayWindow2_Vtbl { @@ -2023,16 +1406,7 @@ pub struct ILineDisplayWindow2_Vtbl { #[cfg(not(feature = "Storage"))] TryDisplayStorageFileBitmapAtPointWithWidthAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMagneticStripeReader(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMagneticStripeReader { - type Vtable = IMagneticStripeReader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMagneticStripeReader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1a92b015_47c3_468a_9333_0c6517574883); -} +::windows_core::imp::com_interface!(IMagneticStripeReader, IMagneticStripeReader_Vtbl, 0x1a92b015_47c3_468a_9333_0c6517574883); #[repr(C)] #[doc(hidden)] pub struct IMagneticStripeReader_Vtbl { @@ -2051,16 +1425,7 @@ pub struct IMagneticStripeReader_Vtbl { pub StatusUpdated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveStatusUpdated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMagneticStripeReaderAamvaCardDataReceivedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMagneticStripeReaderAamvaCardDataReceivedEventArgs { - type Vtable = IMagneticStripeReaderAamvaCardDataReceivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMagneticStripeReaderAamvaCardDataReceivedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0a4bbd51_c316_4910_87f3_7a62ba862d31); -} +::windows_core::imp::com_interface!(IMagneticStripeReaderAamvaCardDataReceivedEventArgs, IMagneticStripeReaderAamvaCardDataReceivedEventArgs_Vtbl, 0x0a4bbd51_c316_4910_87f3_7a62ba862d31); #[repr(C)] #[doc(hidden)] pub struct IMagneticStripeReaderAamvaCardDataReceivedEventArgs_Vtbl { @@ -2085,16 +1450,7 @@ pub struct IMagneticStripeReaderAamvaCardDataReceivedEventArgs_Vtbl { pub State: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub PostalCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMagneticStripeReaderBankCardDataReceivedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMagneticStripeReaderBankCardDataReceivedEventArgs { - type Vtable = IMagneticStripeReaderBankCardDataReceivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMagneticStripeReaderBankCardDataReceivedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2e958823_a31a_4763_882c_23725e39b08e); -} +::windows_core::imp::com_interface!(IMagneticStripeReaderBankCardDataReceivedEventArgs, IMagneticStripeReaderBankCardDataReceivedEventArgs_Vtbl, 0x2e958823_a31a_4763_882c_23725e39b08e); #[repr(C)] #[doc(hidden)] pub struct IMagneticStripeReaderBankCardDataReceivedEventArgs_Vtbl { @@ -2109,16 +1465,7 @@ pub struct IMagneticStripeReaderBankCardDataReceivedEventArgs_Vtbl { pub Surname: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Suffix: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMagneticStripeReaderCapabilities(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMagneticStripeReaderCapabilities { - type Vtable = IMagneticStripeReaderCapabilities_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMagneticStripeReaderCapabilities { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7128809c_c440_44a2_a467_469175d02896); -} +::windows_core::imp::com_interface!(IMagneticStripeReaderCapabilities, IMagneticStripeReaderCapabilities_Vtbl, 0x7128809c_c440_44a2_a467_469175d02896); #[repr(C)] #[doc(hidden)] pub struct IMagneticStripeReaderCapabilities_Vtbl { @@ -2135,16 +1482,7 @@ pub struct IMagneticStripeReaderCapabilities_Vtbl { pub IsTrackDataMaskingSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub IsTransmitSentinelsSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMagneticStripeReaderCardTypesStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMagneticStripeReaderCardTypesStatics { - type Vtable = IMagneticStripeReaderCardTypesStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMagneticStripeReaderCardTypesStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x528f2c5d_2986_474f_8454_7ccd05928d5f); -} +::windows_core::imp::com_interface!(IMagneticStripeReaderCardTypesStatics, IMagneticStripeReaderCardTypesStatics_Vtbl, 0x528f2c5d_2986_474f_8454_7ccd05928d5f); #[repr(C)] #[doc(hidden)] pub struct IMagneticStripeReaderCardTypesStatics_Vtbl { @@ -2154,16 +1492,7 @@ pub struct IMagneticStripeReaderCardTypesStatics_Vtbl { pub Aamva: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, pub ExtendedBase: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMagneticStripeReaderEncryptionAlgorithmsStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMagneticStripeReaderEncryptionAlgorithmsStatics { - type Vtable = IMagneticStripeReaderEncryptionAlgorithmsStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMagneticStripeReaderEncryptionAlgorithmsStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x53b57350_c3db_4754_9c00_41392374a109); -} +::windows_core::imp::com_interface!(IMagneticStripeReaderEncryptionAlgorithmsStatics, IMagneticStripeReaderEncryptionAlgorithmsStatics_Vtbl, 0x53b57350_c3db_4754_9c00_41392374a109); #[repr(C)] #[doc(hidden)] pub struct IMagneticStripeReaderEncryptionAlgorithmsStatics_Vtbl { @@ -2172,16 +1501,7 @@ pub struct IMagneticStripeReaderEncryptionAlgorithmsStatics_Vtbl { pub TripleDesDukpt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, pub ExtendedBase: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMagneticStripeReaderErrorOccurredEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMagneticStripeReaderErrorOccurredEventArgs { - type Vtable = IMagneticStripeReaderErrorOccurredEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMagneticStripeReaderErrorOccurredEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1fedf95d_2c84_41ad_b778_f2356a789ab1); -} +::windows_core::imp::com_interface!(IMagneticStripeReaderErrorOccurredEventArgs, IMagneticStripeReaderErrorOccurredEventArgs_Vtbl, 0x1fedf95d_2c84_41ad_b778_f2356a789ab1); #[repr(C)] #[doc(hidden)] pub struct IMagneticStripeReaderErrorOccurredEventArgs_Vtbl { @@ -2193,16 +1513,7 @@ pub struct IMagneticStripeReaderErrorOccurredEventArgs_Vtbl { pub ErrorData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub PartialInputData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMagneticStripeReaderReport(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMagneticStripeReaderReport { - type Vtable = IMagneticStripeReaderReport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMagneticStripeReaderReport { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6a5b6047_99b0_4188_bef1_eddf79f78fe6); -} +::windows_core::imp::com_interface!(IMagneticStripeReaderReport, IMagneticStripeReaderReport_Vtbl, 0x6a5b6047_99b0_4188_bef1_eddf79f78fe6); #[repr(C)] #[doc(hidden)] pub struct IMagneticStripeReaderReport_Vtbl { @@ -2226,16 +1537,7 @@ pub struct IMagneticStripeReaderReport_Vtbl { #[cfg(not(feature = "Storage_Streams"))] AdditionalSecurityInformation: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMagneticStripeReaderStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMagneticStripeReaderStatics { - type Vtable = IMagneticStripeReaderStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMagneticStripeReaderStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc45fab4a_efd7_4760_a5ce_15b0e47e94eb); -} +::windows_core::imp::com_interface!(IMagneticStripeReaderStatics, IMagneticStripeReaderStatics_Vtbl, 0xc45fab4a_efd7_4760_a5ce_15b0e47e94eb); #[repr(C)] #[doc(hidden)] pub struct IMagneticStripeReaderStatics_Vtbl { @@ -2244,32 +1546,14 @@ pub struct IMagneticStripeReaderStatics_Vtbl { pub FromIdAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, deviceid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeviceSelector: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMagneticStripeReaderStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMagneticStripeReaderStatics2 { - type Vtable = IMagneticStripeReaderStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMagneticStripeReaderStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8cadc362_d667_48fa_86bc_f5ae1189262b); -} +::windows_core::imp::com_interface!(IMagneticStripeReaderStatics2, IMagneticStripeReaderStatics2_Vtbl, 0x8cadc362_d667_48fa_86bc_f5ae1189262b); #[repr(C)] #[doc(hidden)] pub struct IMagneticStripeReaderStatics2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetDeviceSelectorWithConnectionTypes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, connectiontypes: PosConnectionTypes, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMagneticStripeReaderStatusUpdatedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMagneticStripeReaderStatusUpdatedEventArgs { - type Vtable = IMagneticStripeReaderStatusUpdatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMagneticStripeReaderStatusUpdatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x09cc6bb0_3262_401d_9e8a_e80d6358906b); -} +::windows_core::imp::com_interface!(IMagneticStripeReaderStatusUpdatedEventArgs, IMagneticStripeReaderStatusUpdatedEventArgs_Vtbl, 0x09cc6bb0_3262_401d_9e8a_e80d6358906b); #[repr(C)] #[doc(hidden)] pub struct IMagneticStripeReaderStatusUpdatedEventArgs_Vtbl { @@ -2277,16 +1561,7 @@ pub struct IMagneticStripeReaderStatusUpdatedEventArgs_Vtbl { pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut MagneticStripeReaderStatus) -> ::windows_core::HRESULT, pub ExtendedStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMagneticStripeReaderTrackData(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMagneticStripeReaderTrackData { - type Vtable = IMagneticStripeReaderTrackData_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMagneticStripeReaderTrackData { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x104cf671_4a9d_446e_abc5_20402307ba36); -} +::windows_core::imp::com_interface!(IMagneticStripeReaderTrackData, IMagneticStripeReaderTrackData_Vtbl, 0x104cf671_4a9d_446e_abc5_20402307ba36); #[repr(C)] #[doc(hidden)] pub struct IMagneticStripeReaderTrackData_Vtbl { @@ -2304,32 +1579,14 @@ pub struct IMagneticStripeReaderTrackData_Vtbl { #[cfg(not(feature = "Storage_Streams"))] EncryptedData: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMagneticStripeReaderVendorSpecificCardDataReceivedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMagneticStripeReaderVendorSpecificCardDataReceivedEventArgs { - type Vtable = IMagneticStripeReaderVendorSpecificCardDataReceivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMagneticStripeReaderVendorSpecificCardDataReceivedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaf0a5514_59cc_4a60_99e8_99a53dace5aa); -} +::windows_core::imp::com_interface!(IMagneticStripeReaderVendorSpecificCardDataReceivedEventArgs, IMagneticStripeReaderVendorSpecificCardDataReceivedEventArgs_Vtbl, 0xaf0a5514_59cc_4a60_99e8_99a53dace5aa); #[repr(C)] #[doc(hidden)] pub struct IMagneticStripeReaderVendorSpecificCardDataReceivedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Report: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPosPrinter(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPosPrinter { - type Vtable = IPosPrinter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPosPrinter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2a03c10e_9a19_4a01_994f_12dfad6adcbf); -} +::windows_core::imp::com_interface!(IPosPrinter, IPosPrinter_Vtbl, 0x2a03c10e_9a19_4a01_994f_12dfad6adcbf); #[repr(C)] #[doc(hidden)] pub struct IPosPrinter_Vtbl { @@ -2354,16 +1611,7 @@ pub struct IPosPrinter_Vtbl { pub StatusUpdated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveStatusUpdated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPosPrinter2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPosPrinter2 { - type Vtable = IPosPrinter2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPosPrinter2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x248475e8_8b98_5517_8e48_760e86f68987); -} +::windows_core::imp::com_interface!(IPosPrinter2, IPosPrinter2_Vtbl, 0x248475e8_8b98_5517_8e48_760e86f68987); #[repr(C)] #[doc(hidden)] pub struct IPosPrinter2_Vtbl { @@ -2374,16 +1622,7 @@ pub struct IPosPrinter2_Vtbl { SupportedBarcodeSymbologies: usize, pub GetFontProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, typeface: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPosPrinterCapabilities(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPosPrinterCapabilities { - type Vtable = IPosPrinterCapabilities_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPosPrinterCapabilities { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcde95721_4380_4985_adc5_39db30cd93bc); -} +::windows_core::imp::com_interface!(IPosPrinterCapabilities, IPosPrinterCapabilities_Vtbl, 0xcde95721_4380_4985_adc5_39db30cd93bc); #[repr(C)] #[doc(hidden)] pub struct IPosPrinterCapabilities_Vtbl { @@ -2399,16 +1638,7 @@ pub struct IPosPrinterCapabilities_Vtbl { pub Slip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Journal: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPosPrinterCharacterSetIdsStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPosPrinterCharacterSetIdsStatics { - type Vtable = IPosPrinterCharacterSetIdsStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPosPrinterCharacterSetIdsStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5c709eff_709a_4fe7_b215_06a748a38b39); -} +::windows_core::imp::com_interface!(IPosPrinterCharacterSetIdsStatics, IPosPrinterCharacterSetIdsStatics_Vtbl, 0x5c709eff_709a_4fe7_b215_06a748a38b39); #[repr(C)] #[doc(hidden)] pub struct IPosPrinterCharacterSetIdsStatics_Vtbl { @@ -2417,16 +1647,7 @@ pub struct IPosPrinterCharacterSetIdsStatics_Vtbl { pub Ascii: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, pub Ansi: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPosPrinterFontProperty(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPosPrinterFontProperty { - type Vtable = IPosPrinterFontProperty_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPosPrinterFontProperty { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa7f4e93a_f8ac_5f04_84d2_29b16d8a633c); -} +::windows_core::imp::com_interface!(IPosPrinterFontProperty, IPosPrinterFontProperty_Vtbl, 0xa7f4e93a_f8ac_5f04_84d2_29b16d8a633c); #[repr(C)] #[doc(hidden)] pub struct IPosPrinterFontProperty_Vtbl { @@ -2438,9 +1659,8 @@ pub struct IPosPrinterFontProperty_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] CharacterSizes: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPosPrinterJob(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPosPrinterJob, IPosPrinterJob_Vtbl, 0x9a94005c_0615_4591_a58f_30f87edfe2e4); +::windows_core::imp::interface_hierarchy!(IPosPrinterJob, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IPosPrinterJob { pub fn Print(&self, data: &::windows_core::HSTRING) -> ::windows_core::Result<()> { let this = self; @@ -2462,16 +1682,9 @@ impl IPosPrinterJob { } } } -::windows_core::imp::interface_hierarchy!(IPosPrinterJob, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IPosPrinterJob { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IPosPrinterJob { - type Vtable = IPosPrinterJob_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPosPrinterJob { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9a94005c_0615_4591_a58f_30f87edfe2e4); -} #[repr(C)] #[doc(hidden)] pub struct IPosPrinterJob_Vtbl { @@ -2481,16 +1694,7 @@ pub struct IPosPrinterJob_Vtbl { pub PrintNewline: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ExecuteAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPosPrinterPrintOptions(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPosPrinterPrintOptions { - type Vtable = IPosPrinterPrintOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPosPrinterPrintOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0a2e16fd_1d02_5a58_9d59_bfcde76fde86); -} +::windows_core::imp::com_interface!(IPosPrinterPrintOptions, IPosPrinterPrintOptions_Vtbl, 0x0a2e16fd_1d02_5a58_9d59_bfcde76fde86); #[repr(C)] #[doc(hidden)] pub struct IPosPrinterPrintOptions_Vtbl { @@ -2522,31 +1726,13 @@ pub struct IPosPrinterPrintOptions_Vtbl { pub CharacterSet: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, pub SetCharacterSet: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPosPrinterReleaseDeviceRequestedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPosPrinterReleaseDeviceRequestedEventArgs { - type Vtable = IPosPrinterReleaseDeviceRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPosPrinterReleaseDeviceRequestedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2bcba359_1cef_40b2_9ecb_f927f856ae3c); -} +::windows_core::imp::com_interface!(IPosPrinterReleaseDeviceRequestedEventArgs, IPosPrinterReleaseDeviceRequestedEventArgs_Vtbl, 0x2bcba359_1cef_40b2_9ecb_f927f856ae3c); #[repr(C)] #[doc(hidden)] pub struct IPosPrinterReleaseDeviceRequestedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPosPrinterStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPosPrinterStatics { - type Vtable = IPosPrinterStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPosPrinterStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8ce0d4ea_132f_4cdf_a64a_2d0d7c96a85b); -} +::windows_core::imp::com_interface!(IPosPrinterStatics, IPosPrinterStatics_Vtbl, 0x8ce0d4ea_132f_4cdf_a64a_2d0d7c96a85b); #[repr(C)] #[doc(hidden)] pub struct IPosPrinterStatics_Vtbl { @@ -2555,32 +1741,14 @@ pub struct IPosPrinterStatics_Vtbl { pub FromIdAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, deviceid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeviceSelector: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPosPrinterStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPosPrinterStatics2 { - type Vtable = IPosPrinterStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPosPrinterStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeecd2c1c_b0d0_42e7_b137_b89b16244d41); -} -#[repr(C)] -#[doc(hidden)] -pub struct IPosPrinterStatics2_Vtbl { - pub base__: ::windows_core::IInspectable_Vtbl, - pub GetDeviceSelectorWithConnectionTypes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, connectiontypes: PosConnectionTypes, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPosPrinterStatus(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPosPrinterStatus { - type Vtable = IPosPrinterStatus_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPosPrinterStatus { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd1f0c730_da40_4328_bf76_5156fa33b747); +::windows_core::imp::com_interface!(IPosPrinterStatics2, IPosPrinterStatics2_Vtbl, 0xeecd2c1c_b0d0_42e7_b137_b89b16244d41); +#[repr(C)] +#[doc(hidden)] +pub struct IPosPrinterStatics2_Vtbl { + pub base__: ::windows_core::IInspectable_Vtbl, + pub GetDeviceSelectorWithConnectionTypes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, connectiontypes: PosConnectionTypes, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } +::windows_core::imp::com_interface!(IPosPrinterStatus, IPosPrinterStatus_Vtbl, 0xd1f0c730_da40_4328_bf76_5156fa33b747); #[repr(C)] #[doc(hidden)] pub struct IPosPrinterStatus_Vtbl { @@ -2588,25 +1756,16 @@ pub struct IPosPrinterStatus_Vtbl { pub StatusKind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut PosPrinterStatusKind) -> ::windows_core::HRESULT, pub ExtendedStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPosPrinterStatusUpdatedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPosPrinterStatusUpdatedEventArgs { - type Vtable = IPosPrinterStatusUpdatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPosPrinterStatusUpdatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2edb87df_13a6_428d_ba81_b0e7c3e5a3cd); -} +::windows_core::imp::com_interface!(IPosPrinterStatusUpdatedEventArgs, IPosPrinterStatusUpdatedEventArgs_Vtbl, 0x2edb87df_13a6_428d_ba81_b0e7c3e5a3cd); #[repr(C)] #[doc(hidden)] pub struct IPosPrinterStatusUpdatedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IReceiptOrSlipJob(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IReceiptOrSlipJob, IReceiptOrSlipJob_Vtbl, 0x532199be_c8c3_4dc2_89e9_5c4a37b34ddc); +::windows_core::imp::interface_hierarchy!(IReceiptOrSlipJob, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IReceiptOrSlipJob, IPosPrinterJob); impl IReceiptOrSlipJob { pub fn SetBarcodeRotation(&self, value: PosPrinterRotation) -> ::windows_core::Result<()> { let this = self; @@ -2709,36 +1868,28 @@ impl IReceiptOrSlipJob { unsafe { (::windows_core::Interface::vtable(this).PrintBitmapCustomWidthCustomAlign)(::windows_core::Interface::as_raw(this), bitmap.into_param().abi(), alignmentdistance, width).ok() } } pub fn Print(&self, data: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + 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)).ok() } } pub fn PrintLine(&self, data: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).PrintLine)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(data)).ok() } } pub fn PrintNewline(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).PrintNewline)(::windows_core::Interface::as_raw(this)).ok() } } pub fn ExecuteAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ExecuteAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(IReceiptOrSlipJob, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IReceiptOrSlipJob {} impl ::windows_core::RuntimeType for IReceiptOrSlipJob { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IReceiptOrSlipJob { - type Vtable = IReceiptOrSlipJob_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IReceiptOrSlipJob { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x532199be_c8c3_4dc2_89e9_5c4a37b34ddc); -} #[repr(C)] #[doc(hidden)] pub struct IReceiptOrSlipJob_Vtbl { @@ -2783,16 +1934,7 @@ pub struct IReceiptOrSlipJob_Vtbl { #[cfg(not(feature = "Graphics_Imaging"))] PrintBitmapCustomWidthCustomAlign: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IReceiptPrintJob(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IReceiptPrintJob { - type Vtable = IReceiptPrintJob_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IReceiptPrintJob { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaa96066e_acad_4b79_9d0f_c0cfc08dc77b); -} +::windows_core::imp::com_interface!(IReceiptPrintJob, IReceiptPrintJob_Vtbl, 0xaa96066e_acad_4b79_9d0f_c0cfc08dc77b); #[repr(C)] #[doc(hidden)] pub struct IReceiptPrintJob_Vtbl { @@ -2801,16 +1943,7 @@ pub struct IReceiptPrintJob_Vtbl { pub CutPaper: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, percentage: f64) -> ::windows_core::HRESULT, pub CutPaperDefault: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IReceiptPrintJob2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IReceiptPrintJob2 { - type Vtable = IReceiptPrintJob2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IReceiptPrintJob2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0cbc12e3_9e29_5179_bcd8_1811d3b9a10e); -} +::windows_core::imp::com_interface!(IReceiptPrintJob2, IReceiptPrintJob2_Vtbl, 0x0cbc12e3_9e29_5179_bcd8_1811d3b9a10e); #[repr(C)] #[doc(hidden)] pub struct IReceiptPrintJob2_Vtbl { @@ -2820,16 +1953,7 @@ pub struct IReceiptPrintJob2_Vtbl { pub FeedPaperByLine: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, linecount: i32) -> ::windows_core::HRESULT, pub FeedPaperByMapModeUnit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, distance: i32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IReceiptPrinterCapabilities(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IReceiptPrinterCapabilities { - type Vtable = IReceiptPrinterCapabilities_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IReceiptPrinterCapabilities { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb8f0b58f_51a8_43fc_9bd5_8de272a6415b); -} +::windows_core::imp::com_interface!(IReceiptPrinterCapabilities, IReceiptPrinterCapabilities_Vtbl, 0xb8f0b58f_51a8_43fc_9bd5_8de272a6415b); #[repr(C)] #[doc(hidden)] pub struct IReceiptPrinterCapabilities_Vtbl { @@ -2838,16 +1962,7 @@ pub struct IReceiptPrinterCapabilities_Vtbl { pub IsStampSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub MarkFeedCapabilities: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut PosPrinterMarkFeedCapabilities) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IReceiptPrinterCapabilities2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IReceiptPrinterCapabilities2 { - type Vtable = IReceiptPrinterCapabilities2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IReceiptPrinterCapabilities2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x20030638_8a2c_55ac_9a7b_7576d8869e99); -} +::windows_core::imp::com_interface!(IReceiptPrinterCapabilities2, IReceiptPrinterCapabilities2_Vtbl, 0x20030638_8a2c_55ac_9a7b_7576d8869e99); #[repr(C)] #[doc(hidden)] pub struct IReceiptPrinterCapabilities2_Vtbl { @@ -2859,16 +1974,7 @@ pub struct IReceiptPrinterCapabilities2_Vtbl { pub IsReversePaperFeedByLineSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub IsReversePaperFeedByMapModeUnitSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISlipPrintJob(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISlipPrintJob { - type Vtable = ISlipPrintJob_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISlipPrintJob { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5d88f95d_6131_5a4b_b7d5_8ef2da7b4165); -} +::windows_core::imp::com_interface!(ISlipPrintJob, ISlipPrintJob_Vtbl, 0x5d88f95d_6131_5a4b_b7d5_8ef2da7b4165); #[repr(C)] #[doc(hidden)] pub struct ISlipPrintJob_Vtbl { @@ -2877,16 +1983,7 @@ pub struct ISlipPrintJob_Vtbl { pub FeedPaperByLine: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, linecount: i32) -> ::windows_core::HRESULT, pub FeedPaperByMapModeUnit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, distance: i32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISlipPrinterCapabilities(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISlipPrinterCapabilities { - type Vtable = ISlipPrinterCapabilities_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISlipPrinterCapabilities { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x99b16399_488c_4157_8ac2_9f57f708d3db); -} +::windows_core::imp::com_interface!(ISlipPrinterCapabilities, ISlipPrinterCapabilities_Vtbl, 0x99b16399_488c_4157_8ac2_9f57f708d3db); #[repr(C)] #[doc(hidden)] pub struct ISlipPrinterCapabilities_Vtbl { @@ -2894,16 +1991,7 @@ pub struct ISlipPrinterCapabilities_Vtbl { pub IsFullLengthSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub IsBothSidesPrintingSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISlipPrinterCapabilities2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISlipPrinterCapabilities2 { - type Vtable = ISlipPrinterCapabilities2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISlipPrinterCapabilities2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6ff89671_2d1a_5000_87c2_b0851bfdf07e); -} +::windows_core::imp::com_interface!(ISlipPrinterCapabilities2, ISlipPrinterCapabilities2_Vtbl, 0x6ff89671_2d1a_5000_87c2_b0851bfdf07e); #[repr(C)] #[doc(hidden)] pub struct ISlipPrinterCapabilities2_Vtbl { @@ -2915,16 +2003,7 @@ pub struct ISlipPrinterCapabilities2_Vtbl { pub IsReversePaperFeedByLineSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub IsReversePaperFeedByMapModeUnitSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUnifiedPosErrorData(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUnifiedPosErrorData { - type Vtable = IUnifiedPosErrorData_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUnifiedPosErrorData { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2b998c3a_555c_4889_8ed8_c599bb3a712a); -} +::windows_core::imp::com_interface!(IUnifiedPosErrorData, IUnifiedPosErrorData_Vtbl, 0x2b998c3a_555c_4889_8ed8_c599bb3a712a); #[repr(C)] #[doc(hidden)] pub struct IUnifiedPosErrorData_Vtbl { @@ -2934,16 +2013,7 @@ pub struct IUnifiedPosErrorData_Vtbl { pub Reason: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut UnifiedPosErrorReason) -> ::windows_core::HRESULT, pub ExtendedReason: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUnifiedPosErrorDataFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUnifiedPosErrorDataFactory { - type Vtable = IUnifiedPosErrorDataFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUnifiedPosErrorDataFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4b982551_1ffe_451b_a368_63e0ce465f5a); -} +::windows_core::imp::com_interface!(IUnifiedPosErrorDataFactory, IUnifiedPosErrorDataFactory_Vtbl, 0x4b982551_1ffe_451b_a368_63e0ce465f5a); #[repr(C)] #[doc(hidden)] pub struct IUnifiedPosErrorDataFactory_Vtbl { @@ -2953,6 +2023,8 @@ pub struct IUnifiedPosErrorDataFactory_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BarcodeScanner(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BarcodeScanner, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(BarcodeScanner, super::super::Foundation::IClosable); impl BarcodeScanner { pub fn DeviceId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -3002,12 +2074,12 @@ impl BarcodeScanner { #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] pub fn RetrieveStatisticsAsync(&self, statisticscategories: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).RetrieveStatisticsAsync)(::windows_core::Interface::as_raw(this), statisticscategories.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).RetrieveStatisticsAsync)(::windows_core::Interface::as_raw(this), statisticscategories.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -3041,7 +2113,7 @@ impl BarcodeScanner { unsafe { (::windows_core::Interface::vtable(this).RemoveStatusUpdated)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn VideoDeviceId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).VideoDeviceId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3072,7 +2144,7 @@ impl BarcodeScanner { }) } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } #[doc(hidden)] @@ -3091,20 +2163,17 @@ impl ::windows_core::RuntimeType for BarcodeScanner { } unsafe impl ::windows_core::Interface for BarcodeScanner { type Vtable = IBarcodeScanner_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BarcodeScanner { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BarcodeScanner { const NAME: &'static str = "Windows.Devices.PointOfService.BarcodeScanner"; } -::windows_core::imp::interface_hierarchy!(BarcodeScanner, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for BarcodeScanner {} unsafe impl ::core::marker::Send for BarcodeScanner {} unsafe impl ::core::marker::Sync for BarcodeScanner {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BarcodeScannerCapabilities(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BarcodeScannerCapabilities, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BarcodeScannerCapabilities { pub fn PowerReportingType(&self) -> ::windows_core::Result { let this = self; @@ -3135,14 +2204,14 @@ impl BarcodeScannerCapabilities { } } pub fn IsSoftwareTriggerSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsSoftwareTriggerSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsVideoPreviewSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsVideoPreviewSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3154,19 +2223,17 @@ impl ::windows_core::RuntimeType for BarcodeScannerCapabilities { } unsafe impl ::windows_core::Interface for BarcodeScannerCapabilities { type Vtable = IBarcodeScannerCapabilities_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BarcodeScannerCapabilities { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BarcodeScannerCapabilities { const NAME: &'static str = "Windows.Devices.PointOfService.BarcodeScannerCapabilities"; } -::windows_core::imp::interface_hierarchy!(BarcodeScannerCapabilities, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BarcodeScannerCapabilities {} unsafe impl ::core::marker::Sync for BarcodeScannerCapabilities {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BarcodeScannerDataReceivedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BarcodeScannerDataReceivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BarcodeScannerDataReceivedEventArgs { pub fn Report(&self) -> ::windows_core::Result { let this = self; @@ -3181,19 +2248,17 @@ impl ::windows_core::RuntimeType for BarcodeScannerDataReceivedEventArgs { } unsafe impl ::windows_core::Interface for BarcodeScannerDataReceivedEventArgs { type Vtable = IBarcodeScannerDataReceivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BarcodeScannerDataReceivedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BarcodeScannerDataReceivedEventArgs { const NAME: &'static str = "Windows.Devices.PointOfService.BarcodeScannerDataReceivedEventArgs"; } -::windows_core::imp::interface_hierarchy!(BarcodeScannerDataReceivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BarcodeScannerDataReceivedEventArgs {} unsafe impl ::core::marker::Sync for BarcodeScannerDataReceivedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BarcodeScannerErrorOccurredEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BarcodeScannerErrorOccurredEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BarcodeScannerErrorOccurredEventArgs { pub fn PartialInputData(&self) -> ::windows_core::Result { let this = self; @@ -3222,19 +2287,17 @@ impl ::windows_core::RuntimeType for BarcodeScannerErrorOccurredEventArgs { } unsafe impl ::windows_core::Interface for BarcodeScannerErrorOccurredEventArgs { type Vtable = IBarcodeScannerErrorOccurredEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BarcodeScannerErrorOccurredEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BarcodeScannerErrorOccurredEventArgs { const NAME: &'static str = "Windows.Devices.PointOfService.BarcodeScannerErrorOccurredEventArgs"; } -::windows_core::imp::interface_hierarchy!(BarcodeScannerErrorOccurredEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BarcodeScannerErrorOccurredEventArgs {} unsafe impl ::core::marker::Sync for BarcodeScannerErrorOccurredEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BarcodeScannerImagePreviewReceivedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BarcodeScannerImagePreviewReceivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BarcodeScannerImagePreviewReceivedEventArgs { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] @@ -3251,19 +2314,17 @@ impl ::windows_core::RuntimeType for BarcodeScannerImagePreviewReceivedEventArgs } unsafe impl ::windows_core::Interface for BarcodeScannerImagePreviewReceivedEventArgs { type Vtable = IBarcodeScannerImagePreviewReceivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BarcodeScannerImagePreviewReceivedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BarcodeScannerImagePreviewReceivedEventArgs { const NAME: &'static str = "Windows.Devices.PointOfService.BarcodeScannerImagePreviewReceivedEventArgs"; } -::windows_core::imp::interface_hierarchy!(BarcodeScannerImagePreviewReceivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BarcodeScannerImagePreviewReceivedEventArgs {} unsafe impl ::core::marker::Sync for BarcodeScannerImagePreviewReceivedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BarcodeScannerReport(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BarcodeScannerReport, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BarcodeScannerReport { pub fn ScanDataType(&self) -> ::windows_core::Result { let this = self; @@ -3294,12 +2355,12 @@ impl BarcodeScannerReport { #[cfg(feature = "Storage_Streams")] pub fn CreateInstance(scandatatype: u32, scandata: P0, scandatalabel: P1) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { Self::IBarcodeScannerReportFactory(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateInstance)(::windows_core::Interface::as_raw(this), scandatatype, scandata.try_into_param()?.abi(), scandatalabel.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateInstance)(::windows_core::Interface::as_raw(this), scandatatype, scandata.into_param().abi(), scandatalabel.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -3313,19 +2374,17 @@ impl ::windows_core::RuntimeType for BarcodeScannerReport { } unsafe impl ::windows_core::Interface for BarcodeScannerReport { type Vtable = IBarcodeScannerReport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BarcodeScannerReport { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BarcodeScannerReport { const NAME: &'static str = "Windows.Devices.PointOfService.BarcodeScannerReport"; } -::windows_core::imp::interface_hierarchy!(BarcodeScannerReport, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BarcodeScannerReport {} unsafe impl ::core::marker::Sync for BarcodeScannerReport {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BarcodeScannerStatusUpdatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BarcodeScannerStatusUpdatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BarcodeScannerStatusUpdatedEventArgs { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -3347,14 +2406,11 @@ impl ::windows_core::RuntimeType for BarcodeScannerStatusUpdatedEventArgs { } unsafe impl ::windows_core::Interface for BarcodeScannerStatusUpdatedEventArgs { type Vtable = IBarcodeScannerStatusUpdatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BarcodeScannerStatusUpdatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BarcodeScannerStatusUpdatedEventArgs { const NAME: &'static str = "Windows.Devices.PointOfService.BarcodeScannerStatusUpdatedEventArgs"; } -::windows_core::imp::interface_hierarchy!(BarcodeScannerStatusUpdatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BarcodeScannerStatusUpdatedEventArgs {} unsafe impl ::core::marker::Sync for BarcodeScannerStatusUpdatedEventArgs {} pub struct BarcodeSymbologies; @@ -3946,6 +3002,7 @@ impl ::windows_core::RuntimeName for BarcodeSymbologies { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BarcodeSymbologyAttributes(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BarcodeSymbologyAttributes, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BarcodeSymbologyAttributes { pub fn IsCheckDigitValidationEnabled(&self) -> ::windows_core::Result { let this = self; @@ -4029,19 +3086,18 @@ impl ::windows_core::RuntimeType for BarcodeSymbologyAttributes { } unsafe impl ::windows_core::Interface for BarcodeSymbologyAttributes { type Vtable = IBarcodeSymbologyAttributes_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BarcodeSymbologyAttributes { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BarcodeSymbologyAttributes { const NAME: &'static str = "Windows.Devices.PointOfService.BarcodeSymbologyAttributes"; } -::windows_core::imp::interface_hierarchy!(BarcodeSymbologyAttributes, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BarcodeSymbologyAttributes {} unsafe impl ::core::marker::Sync for BarcodeSymbologyAttributes {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CashDrawer(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CashDrawer, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(CashDrawer, super::super::Foundation::IClosable); impl CashDrawer { pub fn DeviceId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -4096,12 +3152,12 @@ impl CashDrawer { #[cfg(feature = "Foundation_Collections")] pub fn GetStatisticsAsync(&self, statisticscategories: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).GetStatisticsAsync)(::windows_core::Interface::as_raw(this), statisticscategories.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).GetStatisticsAsync)(::windows_core::Interface::as_raw(this), statisticscategories.into_param().abi(), &mut result__).from_abi(result__) } } pub fn StatusUpdated(&self, handler: P0) -> ::windows_core::Result @@ -4143,7 +3199,7 @@ impl CashDrawer { }) } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } #[doc(hidden)] @@ -4162,20 +3218,17 @@ impl ::windows_core::RuntimeType for CashDrawer { } unsafe impl ::windows_core::Interface for CashDrawer { type Vtable = ICashDrawer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CashDrawer { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CashDrawer { const NAME: &'static str = "Windows.Devices.PointOfService.CashDrawer"; } -::windows_core::imp::interface_hierarchy!(CashDrawer, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CashDrawer {} unsafe impl ::core::marker::Send for CashDrawer {} unsafe impl ::core::marker::Sync for CashDrawer {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CashDrawerCapabilities(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CashDrawerCapabilities, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CashDrawerCapabilities { pub fn PowerReportingType(&self) -> ::windows_core::Result { let this = self; @@ -4225,19 +3278,17 @@ impl ::windows_core::RuntimeType for CashDrawerCapabilities { } unsafe impl ::windows_core::Interface for CashDrawerCapabilities { type Vtable = ICashDrawerCapabilities_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CashDrawerCapabilities { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CashDrawerCapabilities { const NAME: &'static str = "Windows.Devices.PointOfService.CashDrawerCapabilities"; } -::windows_core::imp::interface_hierarchy!(CashDrawerCapabilities, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CashDrawerCapabilities {} unsafe impl ::core::marker::Sync for CashDrawerCapabilities {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CashDrawerCloseAlarm(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CashDrawerCloseAlarm, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CashDrawerCloseAlarm { pub fn SetAlarmTimeout(&self, value: super::super::Foundation::TimeSpan) -> ::windows_core::Result<()> { let this = self; @@ -4310,19 +3361,18 @@ impl ::windows_core::RuntimeType for CashDrawerCloseAlarm { } unsafe impl ::windows_core::Interface for CashDrawerCloseAlarm { type Vtable = ICashDrawerCloseAlarm_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CashDrawerCloseAlarm { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CashDrawerCloseAlarm { const NAME: &'static str = "Windows.Devices.PointOfService.CashDrawerCloseAlarm"; } -::windows_core::imp::interface_hierarchy!(CashDrawerCloseAlarm, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CashDrawerCloseAlarm {} unsafe impl ::core::marker::Sync for CashDrawerCloseAlarm {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CashDrawerClosedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CashDrawerClosedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(CashDrawerClosedEventArgs, ICashDrawerEventSourceEventArgs); impl CashDrawerClosedEventArgs { pub fn CashDrawer(&self) -> ::windows_core::Result { let this = self; @@ -4337,20 +3387,17 @@ impl ::windows_core::RuntimeType for CashDrawerClosedEventArgs { } unsafe impl ::windows_core::Interface for CashDrawerClosedEventArgs { type Vtable = ICashDrawerEventSourceEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CashDrawerClosedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CashDrawerClosedEventArgs { const NAME: &'static str = "Windows.Devices.PointOfService.CashDrawerClosedEventArgs"; } -::windows_core::imp::interface_hierarchy!(CashDrawerClosedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CashDrawerClosedEventArgs {} unsafe impl ::core::marker::Send for CashDrawerClosedEventArgs {} unsafe impl ::core::marker::Sync for CashDrawerClosedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CashDrawerEventSource(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CashDrawerEventSource, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CashDrawerEventSource { pub fn DrawerClosed(&self, handler: P0) -> ::windows_core::Result where @@ -4386,19 +3433,18 @@ impl ::windows_core::RuntimeType for CashDrawerEventSource { } unsafe impl ::windows_core::Interface for CashDrawerEventSource { type Vtable = ICashDrawerEventSource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CashDrawerEventSource { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CashDrawerEventSource { const NAME: &'static str = "Windows.Devices.PointOfService.CashDrawerEventSource"; } -::windows_core::imp::interface_hierarchy!(CashDrawerEventSource, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CashDrawerEventSource {} unsafe impl ::core::marker::Sync for CashDrawerEventSource {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CashDrawerOpenedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CashDrawerOpenedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(CashDrawerOpenedEventArgs, ICashDrawerEventSourceEventArgs); impl CashDrawerOpenedEventArgs { pub fn CashDrawer(&self) -> ::windows_core::Result { let this = self; @@ -4413,20 +3459,17 @@ impl ::windows_core::RuntimeType for CashDrawerOpenedEventArgs { } unsafe impl ::windows_core::Interface for CashDrawerOpenedEventArgs { type Vtable = ICashDrawerEventSourceEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CashDrawerOpenedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CashDrawerOpenedEventArgs { const NAME: &'static str = "Windows.Devices.PointOfService.CashDrawerOpenedEventArgs"; } -::windows_core::imp::interface_hierarchy!(CashDrawerOpenedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CashDrawerOpenedEventArgs {} unsafe impl ::core::marker::Send for CashDrawerOpenedEventArgs {} unsafe impl ::core::marker::Sync for CashDrawerOpenedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CashDrawerStatus(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CashDrawerStatus, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CashDrawerStatus { pub fn StatusKind(&self) -> ::windows_core::Result { let this = self; @@ -4448,19 +3491,17 @@ impl ::windows_core::RuntimeType for CashDrawerStatus { } unsafe impl ::windows_core::Interface for CashDrawerStatus { type Vtable = ICashDrawerStatus_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CashDrawerStatus { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CashDrawerStatus { const NAME: &'static str = "Windows.Devices.PointOfService.CashDrawerStatus"; } -::windows_core::imp::interface_hierarchy!(CashDrawerStatus, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CashDrawerStatus {} unsafe impl ::core::marker::Sync for CashDrawerStatus {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CashDrawerStatusUpdatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CashDrawerStatusUpdatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CashDrawerStatusUpdatedEventArgs { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -4475,19 +3516,18 @@ impl ::windows_core::RuntimeType for CashDrawerStatusUpdatedEventArgs { } unsafe impl ::windows_core::Interface for CashDrawerStatusUpdatedEventArgs { type Vtable = ICashDrawerStatusUpdatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CashDrawerStatusUpdatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CashDrawerStatusUpdatedEventArgs { const NAME: &'static str = "Windows.Devices.PointOfService.CashDrawerStatusUpdatedEventArgs"; } -::windows_core::imp::interface_hierarchy!(CashDrawerStatusUpdatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CashDrawerStatusUpdatedEventArgs {} unsafe impl ::core::marker::Sync for CashDrawerStatusUpdatedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ClaimedBarcodeScanner(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ClaimedBarcodeScanner, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ClaimedBarcodeScanner, super::super::Foundation::IClosable); impl ClaimedBarcodeScanner { pub fn DeviceId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -4547,36 +3587,36 @@ impl ClaimedBarcodeScanner { #[cfg(feature = "Foundation_Collections")] pub fn SetActiveSymbologiesAsync(&self, symbologies: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).SetActiveSymbologiesAsync)(::windows_core::Interface::as_raw(this), symbologies.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SetActiveSymbologiesAsync)(::windows_core::Interface::as_raw(this), symbologies.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn ResetStatisticsAsync(&self, statisticscategories: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).ResetStatisticsAsync)(::windows_core::Interface::as_raw(this), statisticscategories.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ResetStatisticsAsync)(::windows_core::Interface::as_raw(this), statisticscategories.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn UpdateStatisticsAsync(&self, statistics: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>>, + P0: ::windows_core::IntoParam>>, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).UpdateStatisticsAsync)(::windows_core::Interface::as_raw(this), statistics.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).UpdateStatisticsAsync)(::windows_core::Interface::as_raw(this), statistics.into_param().abi(), &mut result__).from_abi(result__) } } pub fn SetActiveProfileAsync(&self, profile: &::windows_core::HSTRING) -> ::windows_core::Result { @@ -4671,21 +3711,21 @@ impl ClaimedBarcodeScanner { unsafe { (::windows_core::Interface::vtable(this).RemoveErrorOccurred)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn StartSoftwareTriggerAsync(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).StartSoftwareTriggerAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn StopSoftwareTriggerAsync(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).StopSoftwareTriggerAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetSymbologyAttributesAsync(&self, barcodesymbology: u32) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetSymbologyAttributesAsync)(::windows_core::Interface::as_raw(this), barcodesymbology, &mut result__).from_abi(result__) @@ -4695,29 +3735,29 @@ impl ClaimedBarcodeScanner { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn ShowVideoPreviewAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ShowVideoPreviewAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn HideVideoPreview(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).HideVideoPreview)(::windows_core::Interface::as_raw(this)).ok() } } pub fn SetIsVideoPreviewShownOnEnable(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsVideoPreviewShownOnEnable)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsVideoPreviewShownOnEnable(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsVideoPreviewShownOnEnable)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4727,18 +3767,18 @@ impl ClaimedBarcodeScanner { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveClosed(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveClosed)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } } @@ -4747,39 +3787,35 @@ impl ::windows_core::RuntimeType for ClaimedBarcodeScanner { } unsafe impl ::windows_core::Interface for ClaimedBarcodeScanner { type Vtable = IClaimedBarcodeScanner_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ClaimedBarcodeScanner { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ClaimedBarcodeScanner { const NAME: &'static str = "Windows.Devices.PointOfService.ClaimedBarcodeScanner"; } -::windows_core::imp::interface_hierarchy!(ClaimedBarcodeScanner, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ClaimedBarcodeScanner {} unsafe impl ::core::marker::Send for ClaimedBarcodeScanner {} unsafe impl ::core::marker::Sync for ClaimedBarcodeScanner {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ClaimedBarcodeScannerClosedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ClaimedBarcodeScannerClosedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ClaimedBarcodeScannerClosedEventArgs {} impl ::windows_core::RuntimeType for ClaimedBarcodeScannerClosedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_class::(); } unsafe impl ::windows_core::Interface for ClaimedBarcodeScannerClosedEventArgs { type Vtable = IClaimedBarcodeScannerClosedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ClaimedBarcodeScannerClosedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ClaimedBarcodeScannerClosedEventArgs { const NAME: &'static str = "Windows.Devices.PointOfService.ClaimedBarcodeScannerClosedEventArgs"; } -::windows_core::imp::interface_hierarchy!(ClaimedBarcodeScannerClosedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ClaimedBarcodeScannerClosedEventArgs {} unsafe impl ::core::marker::Sync for ClaimedBarcodeScannerClosedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ClaimedCashDrawer(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ClaimedCashDrawer, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ClaimedCashDrawer, super::super::Foundation::IClosable); impl ClaimedCashDrawer { pub fn DeviceId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -4841,24 +3877,24 @@ impl ClaimedCashDrawer { #[cfg(feature = "Foundation_Collections")] pub fn ResetStatisticsAsync(&self, statisticscategories: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).ResetStatisticsAsync)(::windows_core::Interface::as_raw(this), statisticscategories.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ResetStatisticsAsync)(::windows_core::Interface::as_raw(this), statisticscategories.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn UpdateStatisticsAsync(&self, statistics: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>>, + P0: ::windows_core::IntoParam>>, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).UpdateStatisticsAsync)(::windows_core::Interface::as_raw(this), statistics.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).UpdateStatisticsAsync)(::windows_core::Interface::as_raw(this), statistics.into_param().abi(), &mut result__).from_abi(result__) } } pub fn ReleaseDeviceRequested(&self, handler: P0) -> ::windows_core::Result @@ -4879,18 +3915,18 @@ impl ClaimedCashDrawer { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveClosed(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveClosed)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } } @@ -4899,39 +3935,35 @@ impl ::windows_core::RuntimeType for ClaimedCashDrawer { } unsafe impl ::windows_core::Interface for ClaimedCashDrawer { type Vtable = IClaimedCashDrawer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ClaimedCashDrawer { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ClaimedCashDrawer { const NAME: &'static str = "Windows.Devices.PointOfService.ClaimedCashDrawer"; } -::windows_core::imp::interface_hierarchy!(ClaimedCashDrawer, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ClaimedCashDrawer {} unsafe impl ::core::marker::Send for ClaimedCashDrawer {} unsafe impl ::core::marker::Sync for ClaimedCashDrawer {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ClaimedCashDrawerClosedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ClaimedCashDrawerClosedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ClaimedCashDrawerClosedEventArgs {} impl ::windows_core::RuntimeType for ClaimedCashDrawerClosedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_class::(); } unsafe impl ::windows_core::Interface for ClaimedCashDrawerClosedEventArgs { type Vtable = IClaimedCashDrawerClosedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ClaimedCashDrawerClosedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ClaimedCashDrawerClosedEventArgs { const NAME: &'static str = "Windows.Devices.PointOfService.ClaimedCashDrawerClosedEventArgs"; } -::windows_core::imp::interface_hierarchy!(ClaimedCashDrawerClosedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ClaimedCashDrawerClosedEventArgs {} unsafe impl ::core::marker::Sync for ClaimedCashDrawerClosedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ClaimedJournalPrinter(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ClaimedJournalPrinter, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ClaimedJournalPrinter, ICommonClaimedPosPrinterStation); impl ClaimedJournalPrinter { pub fn CreateJob(&self) -> ::windows_core::Result { let this = self; @@ -4941,118 +3973,118 @@ impl ClaimedJournalPrinter { } } pub fn SetCharactersPerLine(&self, value: u32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCharactersPerLine)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn CharactersPerLine(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CharactersPerLine)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetLineHeight(&self, value: u32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetLineHeight)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn LineHeight(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).LineHeight)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetLineSpacing(&self, value: u32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetLineSpacing)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn LineSpacing(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).LineSpacing)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn LineWidth(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).LineWidth)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsLetterQuality(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsLetterQuality)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsLetterQuality(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsLetterQuality)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsPaperNearEnd(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsPaperNearEnd)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetColorCartridge(&self, value: PosPrinterColorCartridge) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetColorCartridge)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn ColorCartridge(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ColorCartridge)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsCoverOpen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsCoverOpen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsCartridgeRemoved(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsCartridgeRemoved)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsCartridgeEmpty(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsCartridgeEmpty)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsHeadCleaning(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsHeadCleaning)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsPaperEmpty(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsPaperEmpty)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsReadyToPrint(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsReadyToPrint)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ValidateData(&self, data: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ValidateData)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(data), &mut result__).from_abi(result__) @@ -5064,20 +4096,18 @@ impl ::windows_core::RuntimeType for ClaimedJournalPrinter { } unsafe impl ::windows_core::Interface for ClaimedJournalPrinter { type Vtable = IClaimedJournalPrinter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ClaimedJournalPrinter { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ClaimedJournalPrinter { const NAME: &'static str = "Windows.Devices.PointOfService.ClaimedJournalPrinter"; } -::windows_core::imp::interface_hierarchy!(ClaimedJournalPrinter, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ClaimedJournalPrinter {} unsafe impl ::core::marker::Send for ClaimedJournalPrinter {} unsafe impl ::core::marker::Sync for ClaimedJournalPrinter {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ClaimedLineDisplay(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ClaimedLineDisplay, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ClaimedLineDisplay, super::super::Foundation::IClosable); impl ClaimedLineDisplay { pub fn DeviceId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -5157,23 +4187,23 @@ impl ClaimedLineDisplay { #[cfg(feature = "Foundation_Collections")] pub fn GetStatisticsAsync(&self, statisticscategories: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).GetStatisticsAsync)(::windows_core::Interface::as_raw(this), statisticscategories.into_param().abi(), &mut result__).from_abi(result__) } } pub fn CheckHealthAsync(&self, level: UnifiedPosHealthCheckLevel) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CheckHealthAsync)(::windows_core::Interface::as_raw(this), level, &mut result__).from_abi(result__) } } pub fn CheckPowerStatusAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CheckPowerStatusAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5183,27 +4213,27 @@ impl ClaimedLineDisplay { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveStatusUpdated(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveStatusUpdated)(::windows_core::Interface::as_raw(this), token).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn SupportedScreenSizesInCharacters(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SupportedScreenSizesInCharacters)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn MaxBitmapSizeInPixels(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MaxBitmapSizeInPixels)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5212,21 +4242,21 @@ impl ClaimedLineDisplay { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn SupportedCharacterSets(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SupportedCharacterSets)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CustomGlyphs(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CustomGlyphs)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetAttributes(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetAttributes)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5236,28 +4266,28 @@ impl ClaimedLineDisplay { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn TrySetDescriptorAsync(&self, descriptor: u32, descriptorstate: LineDisplayDescriptorState) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TrySetDescriptorAsync)(::windows_core::Interface::as_raw(this), descriptor, descriptorstate, &mut result__).from_abi(result__) } } pub fn TryClearDescriptorsAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryClearDescriptorsAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryCreateWindowAsync(&self, viewport: super::super::Foundation::Rect, windowsize: super::super::Foundation::Size) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryCreateWindowAsync)(::windows_core::Interface::as_raw(this), viewport, windowsize, &mut result__).from_abi(result__) @@ -5269,7 +4299,7 @@ impl ClaimedLineDisplay { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -5281,7 +4311,7 @@ impl ClaimedLineDisplay { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -5293,7 +4323,7 @@ impl ClaimedLineDisplay { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -5303,14 +4333,14 @@ impl ClaimedLineDisplay { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveClosed(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveClosed)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn FromIdAsync(deviceid: &::windows_core::HSTRING) -> ::windows_core::Result> { @@ -5332,7 +4362,7 @@ impl ClaimedLineDisplay { }) } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } #[doc(hidden)] @@ -5346,39 +4376,35 @@ impl ::windows_core::RuntimeType for ClaimedLineDisplay { } unsafe impl ::windows_core::Interface for ClaimedLineDisplay { type Vtable = IClaimedLineDisplay_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ClaimedLineDisplay { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ClaimedLineDisplay { const NAME: &'static str = "Windows.Devices.PointOfService.ClaimedLineDisplay"; } -::windows_core::imp::interface_hierarchy!(ClaimedLineDisplay, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ClaimedLineDisplay {} unsafe impl ::core::marker::Send for ClaimedLineDisplay {} unsafe impl ::core::marker::Sync for ClaimedLineDisplay {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ClaimedLineDisplayClosedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ClaimedLineDisplayClosedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ClaimedLineDisplayClosedEventArgs {} impl ::windows_core::RuntimeType for ClaimedLineDisplayClosedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_class::(); } unsafe impl ::windows_core::Interface for ClaimedLineDisplayClosedEventArgs { type Vtable = IClaimedLineDisplayClosedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ClaimedLineDisplayClosedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ClaimedLineDisplayClosedEventArgs { const NAME: &'static str = "Windows.Devices.PointOfService.ClaimedLineDisplayClosedEventArgs"; } -::windows_core::imp::interface_hierarchy!(ClaimedLineDisplayClosedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ClaimedLineDisplayClosedEventArgs {} unsafe impl ::core::marker::Sync for ClaimedLineDisplayClosedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ClaimedMagneticStripeReader(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ClaimedMagneticStripeReader, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ClaimedMagneticStripeReader, super::super::Foundation::IClosable); impl ClaimedMagneticStripeReader { pub fn DeviceId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -5512,24 +4538,24 @@ impl ClaimedMagneticStripeReader { #[cfg(feature = "Foundation_Collections")] pub fn ResetStatisticsAsync(&self, statisticscategories: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).ResetStatisticsAsync)(::windows_core::Interface::as_raw(this), statisticscategories.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ResetStatisticsAsync)(::windows_core::Interface::as_raw(this), statisticscategories.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn UpdateStatisticsAsync(&self, statistics: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>>, + P0: ::windows_core::IntoParam>>, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).UpdateStatisticsAsync)(::windows_core::Interface::as_raw(this), statistics.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).UpdateStatisticsAsync)(::windows_core::Interface::as_raw(this), statistics.into_param().abi(), &mut result__).from_abi(result__) } } pub fn BankCardDataReceived(&self, handler: P0) -> ::windows_core::Result @@ -5606,18 +4632,18 @@ impl ClaimedMagneticStripeReader { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveClosed(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveClosed)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } } @@ -5626,39 +4652,35 @@ impl ::windows_core::RuntimeType for ClaimedMagneticStripeReader { } unsafe impl ::windows_core::Interface for ClaimedMagneticStripeReader { type Vtable = IClaimedMagneticStripeReader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ClaimedMagneticStripeReader { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ClaimedMagneticStripeReader { const NAME: &'static str = "Windows.Devices.PointOfService.ClaimedMagneticStripeReader"; } -::windows_core::imp::interface_hierarchy!(ClaimedMagneticStripeReader, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ClaimedMagneticStripeReader {} unsafe impl ::core::marker::Send for ClaimedMagneticStripeReader {} unsafe impl ::core::marker::Sync for ClaimedMagneticStripeReader {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ClaimedMagneticStripeReaderClosedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ClaimedMagneticStripeReaderClosedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ClaimedMagneticStripeReaderClosedEventArgs {} impl ::windows_core::RuntimeType for ClaimedMagneticStripeReaderClosedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_class::(); } unsafe impl ::windows_core::Interface for ClaimedMagneticStripeReaderClosedEventArgs { type Vtable = IClaimedMagneticStripeReaderClosedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ClaimedMagneticStripeReaderClosedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ClaimedMagneticStripeReaderClosedEventArgs { const NAME: &'static str = "Windows.Devices.PointOfService.ClaimedMagneticStripeReaderClosedEventArgs"; } -::windows_core::imp::interface_hierarchy!(ClaimedMagneticStripeReaderClosedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ClaimedMagneticStripeReaderClosedEventArgs {} unsafe impl ::core::marker::Sync for ClaimedMagneticStripeReaderClosedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ClaimedPosPrinter(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ClaimedPosPrinter, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ClaimedPosPrinter, super::super::Foundation::IClosable); impl ClaimedPosPrinter { pub fn DeviceId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -5760,24 +4782,24 @@ impl ClaimedPosPrinter { #[cfg(feature = "Foundation_Collections")] pub fn ResetStatisticsAsync(&self, statisticscategories: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).ResetStatisticsAsync)(::windows_core::Interface::as_raw(this), statisticscategories.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ResetStatisticsAsync)(::windows_core::Interface::as_raw(this), statisticscategories.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn UpdateStatisticsAsync(&self, statistics: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>>, + P0: ::windows_core::IntoParam>>, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).UpdateStatisticsAsync)(::windows_core::Interface::as_raw(this), statistics.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).UpdateStatisticsAsync)(::windows_core::Interface::as_raw(this), statistics.into_param().abi(), &mut result__).from_abi(result__) } } pub fn ReleaseDeviceRequested(&self, handler: P0) -> ::windows_core::Result @@ -5798,18 +4820,18 @@ impl ClaimedPosPrinter { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveClosed(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveClosed)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } } @@ -5818,39 +4840,35 @@ impl ::windows_core::RuntimeType for ClaimedPosPrinter { } unsafe impl ::windows_core::Interface for ClaimedPosPrinter { type Vtable = IClaimedPosPrinter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ClaimedPosPrinter { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ClaimedPosPrinter { const NAME: &'static str = "Windows.Devices.PointOfService.ClaimedPosPrinter"; } -::windows_core::imp::interface_hierarchy!(ClaimedPosPrinter, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ClaimedPosPrinter {} unsafe impl ::core::marker::Send for ClaimedPosPrinter {} unsafe impl ::core::marker::Sync for ClaimedPosPrinter {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ClaimedPosPrinterClosedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ClaimedPosPrinterClosedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ClaimedPosPrinterClosedEventArgs {} impl ::windows_core::RuntimeType for ClaimedPosPrinterClosedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_class::(); } unsafe impl ::windows_core::Interface for ClaimedPosPrinterClosedEventArgs { type Vtable = IClaimedPosPrinterClosedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ClaimedPosPrinterClosedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ClaimedPosPrinterClosedEventArgs { const NAME: &'static str = "Windows.Devices.PointOfService.ClaimedPosPrinterClosedEventArgs"; } -::windows_core::imp::interface_hierarchy!(ClaimedPosPrinterClosedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ClaimedPosPrinterClosedEventArgs {} unsafe impl ::core::marker::Sync for ClaimedPosPrinterClosedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ClaimedReceiptPrinter(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ClaimedReceiptPrinter, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ClaimedReceiptPrinter, ICommonClaimedPosPrinterStation); impl ClaimedReceiptPrinter { pub fn SidewaysMaxLines(&self) -> ::windows_core::Result { let this = self; @@ -5895,118 +4913,118 @@ impl ClaimedReceiptPrinter { } } pub fn SetCharactersPerLine(&self, value: u32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCharactersPerLine)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn CharactersPerLine(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CharactersPerLine)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetLineHeight(&self, value: u32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetLineHeight)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn LineHeight(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).LineHeight)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetLineSpacing(&self, value: u32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetLineSpacing)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn LineSpacing(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).LineSpacing)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn LineWidth(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).LineWidth)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsLetterQuality(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsLetterQuality)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsLetterQuality(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsLetterQuality)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsPaperNearEnd(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsPaperNearEnd)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetColorCartridge(&self, value: PosPrinterColorCartridge) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetColorCartridge)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn ColorCartridge(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ColorCartridge)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsCoverOpen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsCoverOpen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsCartridgeRemoved(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsCartridgeRemoved)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsCartridgeEmpty(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsCartridgeEmpty)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsHeadCleaning(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsHeadCleaning)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsPaperEmpty(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsPaperEmpty)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsReadyToPrint(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsReadyToPrint)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ValidateData(&self, data: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ValidateData)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(data), &mut result__).from_abi(result__) @@ -6018,20 +5036,18 @@ impl ::windows_core::RuntimeType for ClaimedReceiptPrinter { } unsafe impl ::windows_core::Interface for ClaimedReceiptPrinter { type Vtable = IClaimedReceiptPrinter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ClaimedReceiptPrinter { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ClaimedReceiptPrinter { const NAME: &'static str = "Windows.Devices.PointOfService.ClaimedReceiptPrinter"; } -::windows_core::imp::interface_hierarchy!(ClaimedReceiptPrinter, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ClaimedReceiptPrinter {} unsafe impl ::core::marker::Send for ClaimedReceiptPrinter {} unsafe impl ::core::marker::Sync for ClaimedReceiptPrinter {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ClaimedSlipPrinter(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ClaimedSlipPrinter, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ClaimedSlipPrinter, ICommonClaimedPosPrinterStation); impl ClaimedSlipPrinter { pub fn SidewaysMaxLines(&self) -> ::windows_core::Result { let this = self; @@ -6116,118 +5132,118 @@ impl ClaimedSlipPrinter { } } pub fn SetCharactersPerLine(&self, value: u32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCharactersPerLine)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn CharactersPerLine(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CharactersPerLine)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetLineHeight(&self, value: u32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetLineHeight)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn LineHeight(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).LineHeight)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetLineSpacing(&self, value: u32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetLineSpacing)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn LineSpacing(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).LineSpacing)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn LineWidth(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).LineWidth)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsLetterQuality(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsLetterQuality)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsLetterQuality(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsLetterQuality)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsPaperNearEnd(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsPaperNearEnd)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetColorCartridge(&self, value: PosPrinterColorCartridge) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetColorCartridge)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn ColorCartridge(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ColorCartridge)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsCoverOpen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsCoverOpen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsCartridgeRemoved(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsCartridgeRemoved)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsCartridgeEmpty(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsCartridgeEmpty)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsHeadCleaning(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsHeadCleaning)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsPaperEmpty(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsPaperEmpty)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsReadyToPrint(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsReadyToPrint)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ValidateData(&self, data: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ValidateData)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(data), &mut result__).from_abi(result__) @@ -6239,34 +5255,32 @@ impl ::windows_core::RuntimeType for ClaimedSlipPrinter { } unsafe impl ::windows_core::Interface for ClaimedSlipPrinter { type Vtable = IClaimedSlipPrinter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ClaimedSlipPrinter { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ClaimedSlipPrinter { const NAME: &'static str = "Windows.Devices.PointOfService.ClaimedSlipPrinter"; } -::windows_core::imp::interface_hierarchy!(ClaimedSlipPrinter, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ClaimedSlipPrinter {} unsafe impl ::core::marker::Send for ClaimedSlipPrinter {} unsafe impl ::core::marker::Sync for ClaimedSlipPrinter {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct JournalPrintJob(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(JournalPrintJob, ::windows_core::IUnknown, ::windows_core::IInspectable); +::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, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn FeedPaperByLine(&self, linecount: i32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).FeedPaperByLine)(::windows_core::Interface::as_raw(this), linecount).ok() } } pub fn FeedPaperByMapModeUnit(&self, distance: i32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).FeedPaperByMapModeUnit)(::windows_core::Interface::as_raw(this), distance).ok() } } pub fn Print2(&self, data: &::windows_core::HSTRING) -> ::windows_core::Result<()> { @@ -6294,100 +5308,98 @@ impl ::windows_core::RuntimeType for JournalPrintJob { } unsafe impl ::windows_core::Interface for JournalPrintJob { type Vtable = IPosPrinterJob_Vtbl; -} -unsafe impl ::windows_core::ComInterface for JournalPrintJob { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for JournalPrintJob { const NAME: &'static str = "Windows.Devices.PointOfService.JournalPrintJob"; } -::windows_core::imp::interface_hierarchy!(JournalPrintJob, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for JournalPrintJob {} unsafe impl ::core::marker::Send for JournalPrintJob {} unsafe impl ::core::marker::Sync for JournalPrintJob {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct JournalPrinterCapabilities(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(JournalPrinterCapabilities, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(JournalPrinterCapabilities, ICommonPosPrintStationCapabilities); impl JournalPrinterCapabilities { pub fn IsPrinterPresent(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsPrinterPresent)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsDualColorSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsDualColorSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ColorCartridgeCapabilities(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ColorCartridgeCapabilities)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CartridgeSensors(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CartridgeSensors)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsBoldSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsBoldSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsItalicSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsItalicSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsUnderlineSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsUnderlineSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsDoubleHighPrintSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsDoubleHighPrintSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsDoubleWidePrintSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsDoubleWidePrintSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsDoubleHighDoubleWidePrintSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsDoubleHighDoubleWidePrintSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsPaperEmptySensorSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsPaperEmptySensorSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsPaperNearEndSensorSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsPaperNearEndSensorSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6396,49 +5408,49 @@ impl JournalPrinterCapabilities { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn SupportedCharactersPerLine(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SupportedCharactersPerLine)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsReverseVideoSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsReverseVideoSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsStrikethroughSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsStrikethroughSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsSuperscriptSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsSuperscriptSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsSubscriptSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsSubscriptSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsReversePaperFeedByLineSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsReversePaperFeedByLineSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsReversePaperFeedByMapModeUnitSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsReversePaperFeedByMapModeUnitSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6450,23 +5462,21 @@ impl ::windows_core::RuntimeType for JournalPrinterCapabilities { } unsafe impl ::windows_core::Interface for JournalPrinterCapabilities { type Vtable = IJournalPrinterCapabilities_Vtbl; -} -unsafe impl ::windows_core::ComInterface for JournalPrinterCapabilities { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for JournalPrinterCapabilities { const NAME: &'static str = "Windows.Devices.PointOfService.JournalPrinterCapabilities"; } -::windows_core::imp::interface_hierarchy!(JournalPrinterCapabilities, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for JournalPrinterCapabilities {} unsafe impl ::core::marker::Send for JournalPrinterCapabilities {} unsafe impl ::core::marker::Sync for JournalPrinterCapabilities {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LineDisplay(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LineDisplay, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(LineDisplay, super::super::Foundation::IClosable); impl LineDisplay { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn DeviceId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { @@ -6526,7 +5536,7 @@ impl LineDisplay { } } pub fn CheckPowerStatusAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CheckPowerStatusAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6578,20 +5588,17 @@ impl ::windows_core::RuntimeType for LineDisplay { } unsafe impl ::windows_core::Interface for LineDisplay { type Vtable = ILineDisplay_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LineDisplay { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LineDisplay { const NAME: &'static str = "Windows.Devices.PointOfService.LineDisplay"; } -::windows_core::imp::interface_hierarchy!(LineDisplay, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for LineDisplay {} unsafe impl ::core::marker::Send for LineDisplay {} unsafe impl ::core::marker::Sync for LineDisplay {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LineDisplayAttributes(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LineDisplayAttributes, ::windows_core::IUnknown, ::windows_core::IInspectable); impl LineDisplayAttributes { pub fn IsPowerNotifyEnabled(&self) -> ::windows_core::Result { let this = self; @@ -6679,19 +5686,17 @@ impl ::windows_core::RuntimeType for LineDisplayAttributes { } unsafe impl ::windows_core::Interface for LineDisplayAttributes { type Vtable = ILineDisplayAttributes_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LineDisplayAttributes { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LineDisplayAttributes { const NAME: &'static str = "Windows.Devices.PointOfService.LineDisplayAttributes"; } -::windows_core::imp::interface_hierarchy!(LineDisplayAttributes, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for LineDisplayAttributes {} unsafe impl ::core::marker::Sync for LineDisplayAttributes {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LineDisplayCapabilities(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LineDisplayCapabilities, ::windows_core::IUnknown, ::windows_core::IInspectable); impl LineDisplayCapabilities { pub fn IsStatisticsReportingSupported(&self) -> ::windows_core::Result { let this = self; @@ -6825,19 +5830,17 @@ impl ::windows_core::RuntimeType for LineDisplayCapabilities { } unsafe impl ::windows_core::Interface for LineDisplayCapabilities { type Vtable = ILineDisplayCapabilities_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LineDisplayCapabilities { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LineDisplayCapabilities { const NAME: &'static str = "Windows.Devices.PointOfService.LineDisplayCapabilities"; } -::windows_core::imp::interface_hierarchy!(LineDisplayCapabilities, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for LineDisplayCapabilities {} unsafe impl ::core::marker::Sync for LineDisplayCapabilities {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LineDisplayCursor(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LineDisplayCursor, ::windows_core::IUnknown, ::windows_core::IInspectable); impl LineDisplayCursor { pub fn CanCustomize(&self) -> ::windows_core::Result { let this = self; @@ -6911,19 +5914,17 @@ impl ::windows_core::RuntimeType for LineDisplayCursor { } unsafe impl ::windows_core::Interface for LineDisplayCursor { type Vtable = ILineDisplayCursor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LineDisplayCursor { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LineDisplayCursor { const NAME: &'static str = "Windows.Devices.PointOfService.LineDisplayCursor"; } -::windows_core::imp::interface_hierarchy!(LineDisplayCursor, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for LineDisplayCursor {} unsafe impl ::core::marker::Sync for LineDisplayCursor {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LineDisplayCursorAttributes(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LineDisplayCursorAttributes, ::windows_core::IUnknown, ::windows_core::IInspectable); impl LineDisplayCursorAttributes { pub fn IsBlinkEnabled(&self) -> ::windows_core::Result { let this = self; @@ -6975,19 +5976,17 @@ impl ::windows_core::RuntimeType for LineDisplayCursorAttributes { } unsafe impl ::windows_core::Interface for LineDisplayCursorAttributes { type Vtable = ILineDisplayCursorAttributes_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LineDisplayCursorAttributes { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LineDisplayCursorAttributes { const NAME: &'static str = "Windows.Devices.PointOfService.LineDisplayCursorAttributes"; } -::windows_core::imp::interface_hierarchy!(LineDisplayCursorAttributes, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for LineDisplayCursorAttributes {} unsafe impl ::core::marker::Sync for LineDisplayCursorAttributes {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LineDisplayCustomGlyphs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LineDisplayCustomGlyphs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl LineDisplayCustomGlyphs { pub fn SizeInPixels(&self) -> ::windows_core::Result { let this = self; @@ -7009,12 +6008,12 @@ impl LineDisplayCustomGlyphs { #[cfg(feature = "Storage_Streams")] pub fn TryRedefineAsync(&self, glyphcode: u32, glyphdata: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).TryRedefineAsync)(::windows_core::Interface::as_raw(this), glyphcode, glyphdata.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).TryRedefineAsync)(::windows_core::Interface::as_raw(this), glyphcode, glyphdata.into_param().abi(), &mut result__).from_abi(result__) } } } @@ -7023,19 +6022,17 @@ impl ::windows_core::RuntimeType for LineDisplayCustomGlyphs { } unsafe impl ::windows_core::Interface for LineDisplayCustomGlyphs { type Vtable = ILineDisplayCustomGlyphs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LineDisplayCustomGlyphs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LineDisplayCustomGlyphs { const NAME: &'static str = "Windows.Devices.PointOfService.LineDisplayCustomGlyphs"; } -::windows_core::imp::interface_hierarchy!(LineDisplayCustomGlyphs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for LineDisplayCustomGlyphs {} unsafe impl ::core::marker::Sync for LineDisplayCustomGlyphs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LineDisplayMarquee(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LineDisplayMarquee, ::windows_core::IUnknown, ::windows_core::IInspectable); impl LineDisplayMarquee { pub fn Format(&self) -> ::windows_core::Result { let this = self; @@ -7090,19 +6087,17 @@ impl ::windows_core::RuntimeType for LineDisplayMarquee { } unsafe impl ::windows_core::Interface for LineDisplayMarquee { type Vtable = ILineDisplayMarquee_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LineDisplayMarquee { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LineDisplayMarquee { const NAME: &'static str = "Windows.Devices.PointOfService.LineDisplayMarquee"; } -::windows_core::imp::interface_hierarchy!(LineDisplayMarquee, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for LineDisplayMarquee {} unsafe impl ::core::marker::Sync for LineDisplayMarquee {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LineDisplayStatisticsCategorySelector(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LineDisplayStatisticsCategorySelector, ::windows_core::IUnknown, ::windows_core::IInspectable); impl LineDisplayStatisticsCategorySelector { pub fn AllStatistics(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -7131,19 +6126,17 @@ impl ::windows_core::RuntimeType for LineDisplayStatisticsCategorySelector { } unsafe impl ::windows_core::Interface for LineDisplayStatisticsCategorySelector { type Vtable = ILineDisplayStatisticsCategorySelector_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LineDisplayStatisticsCategorySelector { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LineDisplayStatisticsCategorySelector { const NAME: &'static str = "Windows.Devices.PointOfService.LineDisplayStatisticsCategorySelector"; } -::windows_core::imp::interface_hierarchy!(LineDisplayStatisticsCategorySelector, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for LineDisplayStatisticsCategorySelector {} unsafe impl ::core::marker::Sync for LineDisplayStatisticsCategorySelector {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LineDisplayStatusUpdatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LineDisplayStatusUpdatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl LineDisplayStatusUpdatedEventArgs { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -7158,19 +6151,17 @@ impl ::windows_core::RuntimeType for LineDisplayStatusUpdatedEventArgs { } unsafe impl ::windows_core::Interface for LineDisplayStatusUpdatedEventArgs { type Vtable = ILineDisplayStatusUpdatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LineDisplayStatusUpdatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LineDisplayStatusUpdatedEventArgs { const NAME: &'static str = "Windows.Devices.PointOfService.LineDisplayStatusUpdatedEventArgs"; } -::windows_core::imp::interface_hierarchy!(LineDisplayStatusUpdatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for LineDisplayStatusUpdatedEventArgs {} unsafe impl ::core::marker::Sync for LineDisplayStatusUpdatedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LineDisplayStoredBitmap(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LineDisplayStoredBitmap, ::windows_core::IUnknown, ::windows_core::IInspectable); impl LineDisplayStoredBitmap { pub fn EscapeSequence(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -7192,22 +6183,21 @@ impl ::windows_core::RuntimeType for LineDisplayStoredBitmap { } unsafe impl ::windows_core::Interface for LineDisplayStoredBitmap { type Vtable = ILineDisplayStoredBitmap_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LineDisplayStoredBitmap { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LineDisplayStoredBitmap { const NAME: &'static str = "Windows.Devices.PointOfService.LineDisplayStoredBitmap"; } -::windows_core::imp::interface_hierarchy!(LineDisplayStoredBitmap, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for LineDisplayStoredBitmap {} unsafe impl ::core::marker::Sync for LineDisplayStoredBitmap {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LineDisplayWindow(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LineDisplayWindow, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(LineDisplayWindow, super::super::Foundation::IClosable); impl LineDisplayWindow { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn SizeInCharacters(&self) -> ::windows_core::Result { @@ -7271,21 +6261,21 @@ impl LineDisplayWindow { } } pub fn Cursor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Cursor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Marquee(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Marquee)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ReadCharacterAtCursorAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ReadCharacterAtCursorAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -7295,7 +6285,7 @@ impl LineDisplayWindow { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -7307,7 +6297,7 @@ impl LineDisplayWindow { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -7319,7 +6309,7 @@ impl LineDisplayWindow { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -7331,7 +6321,7 @@ impl LineDisplayWindow { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -7343,7 +6333,7 @@ impl LineDisplayWindow { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -7355,7 +6345,7 @@ impl LineDisplayWindow { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -7367,23 +6357,21 @@ impl ::windows_core::RuntimeType for LineDisplayWindow { } unsafe impl ::windows_core::Interface for LineDisplayWindow { type Vtable = ILineDisplayWindow_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LineDisplayWindow { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LineDisplayWindow { const NAME: &'static str = "Windows.Devices.PointOfService.LineDisplayWindow"; } -::windows_core::imp::interface_hierarchy!(LineDisplayWindow, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for LineDisplayWindow {} unsafe impl ::core::marker::Send for LineDisplayWindow {} unsafe impl ::core::marker::Sync for LineDisplayWindow {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MagneticStripeReader(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MagneticStripeReader, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(MagneticStripeReader, super::super::Foundation::IClosable); impl MagneticStripeReader { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn DeviceId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { @@ -7432,12 +6420,12 @@ impl MagneticStripeReader { #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] pub fn RetrieveStatisticsAsync(&self, statisticscategories: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).RetrieveStatisticsAsync)(::windows_core::Interface::as_raw(this), statisticscategories.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).RetrieveStatisticsAsync)(::windows_core::Interface::as_raw(this), statisticscategories.into_param().abi(), &mut result__).from_abi(result__) } } pub fn GetErrorReportingType(&self) -> ::windows_core::Result { @@ -7501,20 +6489,17 @@ impl ::windows_core::RuntimeType for MagneticStripeReader { } unsafe impl ::windows_core::Interface for MagneticStripeReader { type Vtable = IMagneticStripeReader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MagneticStripeReader { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MagneticStripeReader { const NAME: &'static str = "Windows.Devices.PointOfService.MagneticStripeReader"; } -::windows_core::imp::interface_hierarchy!(MagneticStripeReader, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for MagneticStripeReader {} unsafe impl ::core::marker::Send for MagneticStripeReader {} unsafe impl ::core::marker::Sync for MagneticStripeReader {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MagneticStripeReaderAamvaCardDataReceivedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MagneticStripeReaderAamvaCardDataReceivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MagneticStripeReaderAamvaCardDataReceivedEventArgs { pub fn Report(&self) -> ::windows_core::Result { let this = self; @@ -7655,19 +6640,17 @@ impl ::windows_core::RuntimeType for MagneticStripeReaderAamvaCardDataReceivedEv } unsafe impl ::windows_core::Interface for MagneticStripeReaderAamvaCardDataReceivedEventArgs { type Vtable = IMagneticStripeReaderAamvaCardDataReceivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MagneticStripeReaderAamvaCardDataReceivedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MagneticStripeReaderAamvaCardDataReceivedEventArgs { const NAME: &'static str = "Windows.Devices.PointOfService.MagneticStripeReaderAamvaCardDataReceivedEventArgs"; } -::windows_core::imp::interface_hierarchy!(MagneticStripeReaderAamvaCardDataReceivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MagneticStripeReaderAamvaCardDataReceivedEventArgs {} unsafe impl ::core::marker::Sync for MagneticStripeReaderAamvaCardDataReceivedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MagneticStripeReaderBankCardDataReceivedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MagneticStripeReaderBankCardDataReceivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MagneticStripeReaderBankCardDataReceivedEventArgs { pub fn Report(&self) -> ::windows_core::Result { let this = self; @@ -7738,19 +6721,17 @@ impl ::windows_core::RuntimeType for MagneticStripeReaderBankCardDataReceivedEve } unsafe impl ::windows_core::Interface for MagneticStripeReaderBankCardDataReceivedEventArgs { type Vtable = IMagneticStripeReaderBankCardDataReceivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MagneticStripeReaderBankCardDataReceivedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MagneticStripeReaderBankCardDataReceivedEventArgs { const NAME: &'static str = "Windows.Devices.PointOfService.MagneticStripeReaderBankCardDataReceivedEventArgs"; } -::windows_core::imp::interface_hierarchy!(MagneticStripeReaderBankCardDataReceivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MagneticStripeReaderBankCardDataReceivedEventArgs {} unsafe impl ::core::marker::Sync for MagneticStripeReaderBankCardDataReceivedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MagneticStripeReaderCapabilities(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MagneticStripeReaderCapabilities, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MagneticStripeReaderCapabilities { pub fn CardAuthentication(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -7835,14 +6816,11 @@ impl ::windows_core::RuntimeType for MagneticStripeReaderCapabilities { } unsafe impl ::windows_core::Interface for MagneticStripeReaderCapabilities { type Vtable = IMagneticStripeReaderCapabilities_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MagneticStripeReaderCapabilities { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MagneticStripeReaderCapabilities { const NAME: &'static str = "Windows.Devices.PointOfService.MagneticStripeReaderCapabilities"; } -::windows_core::imp::interface_hierarchy!(MagneticStripeReaderCapabilities, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MagneticStripeReaderCapabilities {} unsafe impl ::core::marker::Sync for MagneticStripeReaderCapabilities {} pub struct MagneticStripeReaderCardTypes; @@ -7912,6 +6890,7 @@ impl ::windows_core::RuntimeName for MagneticStripeReaderEncryptionAlgorithms { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MagneticStripeReaderErrorOccurredEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MagneticStripeReaderErrorOccurredEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MagneticStripeReaderErrorOccurredEventArgs { pub fn Track1Status(&self) -> ::windows_core::Result { let this = self; @@ -7961,19 +6940,17 @@ impl ::windows_core::RuntimeType for MagneticStripeReaderErrorOccurredEventArgs } unsafe impl ::windows_core::Interface for MagneticStripeReaderErrorOccurredEventArgs { type Vtable = IMagneticStripeReaderErrorOccurredEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MagneticStripeReaderErrorOccurredEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MagneticStripeReaderErrorOccurredEventArgs { const NAME: &'static str = "Windows.Devices.PointOfService.MagneticStripeReaderErrorOccurredEventArgs"; } -::windows_core::imp::interface_hierarchy!(MagneticStripeReaderErrorOccurredEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MagneticStripeReaderErrorOccurredEventArgs {} unsafe impl ::core::marker::Sync for MagneticStripeReaderErrorOccurredEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MagneticStripeReaderReport(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MagneticStripeReaderReport, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MagneticStripeReaderReport { pub fn CardType(&self) -> ::windows_core::Result { let this = self; @@ -8050,19 +7027,17 @@ impl ::windows_core::RuntimeType for MagneticStripeReaderReport { } unsafe impl ::windows_core::Interface for MagneticStripeReaderReport { type Vtable = IMagneticStripeReaderReport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MagneticStripeReaderReport { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MagneticStripeReaderReport { const NAME: &'static str = "Windows.Devices.PointOfService.MagneticStripeReaderReport"; } -::windows_core::imp::interface_hierarchy!(MagneticStripeReaderReport, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MagneticStripeReaderReport {} unsafe impl ::core::marker::Sync for MagneticStripeReaderReport {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MagneticStripeReaderStatusUpdatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MagneticStripeReaderStatusUpdatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MagneticStripeReaderStatusUpdatedEventArgs { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -8084,19 +7059,17 @@ impl ::windows_core::RuntimeType for MagneticStripeReaderStatusUpdatedEventArgs } unsafe impl ::windows_core::Interface for MagneticStripeReaderStatusUpdatedEventArgs { type Vtable = IMagneticStripeReaderStatusUpdatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MagneticStripeReaderStatusUpdatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MagneticStripeReaderStatusUpdatedEventArgs { const NAME: &'static str = "Windows.Devices.PointOfService.MagneticStripeReaderStatusUpdatedEventArgs"; } -::windows_core::imp::interface_hierarchy!(MagneticStripeReaderStatusUpdatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MagneticStripeReaderStatusUpdatedEventArgs {} unsafe impl ::core::marker::Sync for MagneticStripeReaderStatusUpdatedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MagneticStripeReaderTrackData(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MagneticStripeReaderTrackData, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MagneticStripeReaderTrackData { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] @@ -8131,19 +7104,17 @@ impl ::windows_core::RuntimeType for MagneticStripeReaderTrackData { } unsafe impl ::windows_core::Interface for MagneticStripeReaderTrackData { type Vtable = IMagneticStripeReaderTrackData_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MagneticStripeReaderTrackData { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MagneticStripeReaderTrackData { const NAME: &'static str = "Windows.Devices.PointOfService.MagneticStripeReaderTrackData"; } -::windows_core::imp::interface_hierarchy!(MagneticStripeReaderTrackData, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MagneticStripeReaderTrackData {} unsafe impl ::core::marker::Sync for MagneticStripeReaderTrackData {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MagneticStripeReaderVendorSpecificCardDataReceivedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MagneticStripeReaderVendorSpecificCardDataReceivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MagneticStripeReaderVendorSpecificCardDataReceivedEventArgs { pub fn Report(&self) -> ::windows_core::Result { let this = self; @@ -8158,22 +7129,21 @@ impl ::windows_core::RuntimeType for MagneticStripeReaderVendorSpecificCardDataR } unsafe impl ::windows_core::Interface for MagneticStripeReaderVendorSpecificCardDataReceivedEventArgs { type Vtable = IMagneticStripeReaderVendorSpecificCardDataReceivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MagneticStripeReaderVendorSpecificCardDataReceivedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MagneticStripeReaderVendorSpecificCardDataReceivedEventArgs { const NAME: &'static str = "Windows.Devices.PointOfService.MagneticStripeReaderVendorSpecificCardDataReceivedEventArgs"; } -::windows_core::imp::interface_hierarchy!(MagneticStripeReaderVendorSpecificCardDataReceivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MagneticStripeReaderVendorSpecificCardDataReceivedEventArgs {} unsafe impl ::core::marker::Sync for MagneticStripeReaderVendorSpecificCardDataReceivedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PosPrinter(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PosPrinter, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(PosPrinter, super::super::Foundation::IClosable); impl PosPrinter { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn DeviceId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { @@ -8233,12 +7203,12 @@ impl PosPrinter { #[cfg(feature = "Foundation_Collections")] pub fn GetStatisticsAsync(&self, statisticscategories: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).GetStatisticsAsync)(::windows_core::Interface::as_raw(this), statisticscategories.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).GetStatisticsAsync)(::windows_core::Interface::as_raw(this), statisticscategories.into_param().abi(), &mut result__).from_abi(result__) } } pub fn StatusUpdated(&self, handler: P0) -> ::windows_core::Result @@ -8258,14 +7228,14 @@ impl PosPrinter { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn SupportedBarcodeSymbologies(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SupportedBarcodeSymbologies)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetFontProperty(&self, typeface: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetFontProperty)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(typeface), &mut result__).from_abi(result__) @@ -8311,20 +7281,17 @@ impl ::windows_core::RuntimeType for PosPrinter { } unsafe impl ::windows_core::Interface for PosPrinter { type Vtable = IPosPrinter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PosPrinter { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PosPrinter { const NAME: &'static str = "Windows.Devices.PointOfService.PosPrinter"; } -::windows_core::imp::interface_hierarchy!(PosPrinter, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for PosPrinter {} unsafe impl ::core::marker::Send for PosPrinter {} unsafe impl ::core::marker::Sync for PosPrinter {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PosPrinterCapabilities(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PosPrinterCapabilities, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PosPrinterCapabilities { pub fn PowerReportingType(&self) -> ::windows_core::Result { let this = self; @@ -8402,14 +7369,11 @@ impl ::windows_core::RuntimeType for PosPrinterCapabilities { } unsafe impl ::windows_core::Interface for PosPrinterCapabilities { type Vtable = IPosPrinterCapabilities_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PosPrinterCapabilities { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PosPrinterCapabilities { const NAME: &'static str = "Windows.Devices.PointOfService.PosPrinterCapabilities"; } -::windows_core::imp::interface_hierarchy!(PosPrinterCapabilities, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PosPrinterCapabilities {} unsafe impl ::core::marker::Sync for PosPrinterCapabilities {} pub struct PosPrinterCharacterSetIds; @@ -8444,6 +7408,7 @@ impl ::windows_core::RuntimeName for PosPrinterCharacterSetIds { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PosPrinterFontProperty(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PosPrinterFontProperty, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PosPrinterFontProperty { pub fn TypeFace(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -8474,19 +7439,17 @@ impl ::windows_core::RuntimeType for PosPrinterFontProperty { } unsafe impl ::windows_core::Interface for PosPrinterFontProperty { type Vtable = IPosPrinterFontProperty_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PosPrinterFontProperty { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PosPrinterFontProperty { const NAME: &'static str = "Windows.Devices.PointOfService.PosPrinterFontProperty"; } -::windows_core::imp::interface_hierarchy!(PosPrinterFontProperty, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PosPrinterFontProperty {} unsafe impl ::core::marker::Sync for PosPrinterFontProperty {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PosPrinterPrintOptions(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PosPrinterPrintOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PosPrinterPrintOptions { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -8644,38 +7607,34 @@ impl ::windows_core::RuntimeType for PosPrinterPrintOptions { } unsafe impl ::windows_core::Interface for PosPrinterPrintOptions { type Vtable = IPosPrinterPrintOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PosPrinterPrintOptions { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PosPrinterPrintOptions { const NAME: &'static str = "Windows.Devices.PointOfService.PosPrinterPrintOptions"; } -::windows_core::imp::interface_hierarchy!(PosPrinterPrintOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PosPrinterPrintOptions {} unsafe impl ::core::marker::Sync for PosPrinterPrintOptions {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PosPrinterReleaseDeviceRequestedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PosPrinterReleaseDeviceRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PosPrinterReleaseDeviceRequestedEventArgs {} impl ::windows_core::RuntimeType for PosPrinterReleaseDeviceRequestedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_class::(); } unsafe impl ::windows_core::Interface for PosPrinterReleaseDeviceRequestedEventArgs { type Vtable = IPosPrinterReleaseDeviceRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PosPrinterReleaseDeviceRequestedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PosPrinterReleaseDeviceRequestedEventArgs { const NAME: &'static str = "Windows.Devices.PointOfService.PosPrinterReleaseDeviceRequestedEventArgs"; } -::windows_core::imp::interface_hierarchy!(PosPrinterReleaseDeviceRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PosPrinterReleaseDeviceRequestedEventArgs {} unsafe impl ::core::marker::Sync for PosPrinterReleaseDeviceRequestedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PosPrinterStatus(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PosPrinterStatus, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PosPrinterStatus { pub fn StatusKind(&self) -> ::windows_core::Result { let this = self; @@ -8697,19 +7656,17 @@ impl ::windows_core::RuntimeType for PosPrinterStatus { } unsafe impl ::windows_core::Interface for PosPrinterStatus { type Vtable = IPosPrinterStatus_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PosPrinterStatus { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PosPrinterStatus { const NAME: &'static str = "Windows.Devices.PointOfService.PosPrinterStatus"; } -::windows_core::imp::interface_hierarchy!(PosPrinterStatus, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PosPrinterStatus {} unsafe impl ::core::marker::Sync for PosPrinterStatus {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PosPrinterStatusUpdatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PosPrinterStatusUpdatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PosPrinterStatusUpdatedEventArgs { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -8724,49 +7681,48 @@ impl ::windows_core::RuntimeType for PosPrinterStatusUpdatedEventArgs { } unsafe impl ::windows_core::Interface for PosPrinterStatusUpdatedEventArgs { type Vtable = IPosPrinterStatusUpdatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PosPrinterStatusUpdatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PosPrinterStatusUpdatedEventArgs { const NAME: &'static str = "Windows.Devices.PointOfService.PosPrinterStatusUpdatedEventArgs"; } -::windows_core::imp::interface_hierarchy!(PosPrinterStatusUpdatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PosPrinterStatusUpdatedEventArgs {} unsafe impl ::core::marker::Sync for PosPrinterStatusUpdatedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ReceiptPrintJob(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ReceiptPrintJob, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ReceiptPrintJob, IPosPrinterJob, IReceiptOrSlipJob); impl ReceiptPrintJob { pub fn Print(&self, data: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + 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)).ok() } } pub fn PrintLine(&self, data: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).PrintLine)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(data)).ok() } } pub fn PrintNewline(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).PrintNewline)(::windows_core::Interface::as_raw(this)).ok() } } pub fn ExecuteAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ExecuteAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetBarcodeRotation(&self, value: PosPrinterRotation) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetBarcodeRotation)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn SetPrintRotation(&self, value: PosPrinterRotation, includebitmaps: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetPrintRotation)(::windows_core::Interface::as_raw(this), value, includebitmaps).ok() } } pub fn SetPrintArea(&self, value: super::super::Foundation::Rect) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetPrintArea)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Graphics_Imaging\"`"] @@ -8775,7 +7731,7 @@ impl ReceiptPrintJob { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } #[doc = "Required features: `\"Graphics_Imaging\"`"] @@ -8784,7 +7740,7 @@ impl ReceiptPrintJob { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } #[doc = "Required features: `\"Graphics_Imaging\"`"] @@ -8793,7 +7749,7 @@ impl ReceiptPrintJob { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } #[doc = "Required features: `\"Graphics_Imaging\"`"] @@ -8802,23 +7758,23 @@ impl ReceiptPrintJob { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn PrintSavedBitmap(&self, bitmapnumber: u32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).PrintSavedBitmap)(::windows_core::Interface::as_raw(this), bitmapnumber).ok() } } pub fn DrawRuledLine(&self, positionlist: &::windows_core::HSTRING, linedirection: PosPrinterLineDirection, linewidth: u32, linestyle: PosPrinterLineStyle, linecolor: u32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).DrawRuledLine)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(positionlist), linedirection, linewidth, linestyle, linecolor).ok() } } pub fn PrintBarcode(&self, data: &::windows_core::HSTRING, symbology: u32, height: u32, width: u32, textposition: PosPrinterBarcodeTextPosition, alignment: PosPrinterAlignment) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).PrintBarcode)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(data), symbology, height, width, textposition, alignment).ok() } } pub fn PrintBarcodeCustomAlign(&self, data: &::windows_core::HSTRING, symbology: u32, height: u32, width: u32, textposition: PosPrinterBarcodeTextPosition, alignmentdistance: u32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).PrintBarcodeCustomAlign)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(data), symbology, height, width, textposition, alignmentdistance).ok() } } #[doc = "Required features: `\"Graphics_Imaging\"`"] @@ -8827,7 +7783,7 @@ impl ReceiptPrintJob { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } #[doc = "Required features: `\"Graphics_Imaging\"`"] @@ -8836,7 +7792,7 @@ impl ReceiptPrintJob { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } #[doc = "Required features: `\"Graphics_Imaging\"`"] @@ -8845,7 +7801,7 @@ impl ReceiptPrintJob { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } #[doc = "Required features: `\"Graphics_Imaging\"`"] @@ -8854,7 +7810,7 @@ impl ReceiptPrintJob { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn MarkFeed(&self, kind: PosPrinterMarkFeedKind) -> ::windows_core::Result<()> { @@ -8870,22 +7826,22 @@ impl ReceiptPrintJob { unsafe { (::windows_core::Interface::vtable(this).CutPaperDefault)(::windows_core::Interface::as_raw(this)).ok() } } pub fn StampPaper(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StampPaper)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Print2(&self, data: &::windows_core::HSTRING, printoptions: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn FeedPaperByLine(&self, linecount: i32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).FeedPaperByLine)(::windows_core::Interface::as_raw(this), linecount).ok() } } pub fn FeedPaperByMapModeUnit(&self, distance: i32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).FeedPaperByMapModeUnit)(::windows_core::Interface::as_raw(this), distance).ok() } } } @@ -8894,101 +7850,98 @@ impl ::windows_core::RuntimeType for ReceiptPrintJob { } unsafe impl ::windows_core::Interface for ReceiptPrintJob { type Vtable = IReceiptPrintJob_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ReceiptPrintJob { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ReceiptPrintJob { const NAME: &'static str = "Windows.Devices.PointOfService.ReceiptPrintJob"; } -::windows_core::imp::interface_hierarchy!(ReceiptPrintJob, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ReceiptPrintJob {} -impl ::windows_core::CanTryInto for ReceiptPrintJob {} unsafe impl ::core::marker::Send for ReceiptPrintJob {} unsafe impl ::core::marker::Sync for ReceiptPrintJob {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ReceiptPrinterCapabilities(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ReceiptPrinterCapabilities, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ReceiptPrinterCapabilities, ICommonPosPrintStationCapabilities, ICommonReceiptSlipCapabilities); impl ReceiptPrinterCapabilities { pub fn IsPrinterPresent(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsPrinterPresent)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsDualColorSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsDualColorSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ColorCartridgeCapabilities(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ColorCartridgeCapabilities)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CartridgeSensors(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CartridgeSensors)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsBoldSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsBoldSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsItalicSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsItalicSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsUnderlineSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsUnderlineSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsDoubleHighPrintSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsDoubleHighPrintSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsDoubleWidePrintSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsDoubleWidePrintSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsDoubleHighDoubleWidePrintSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsDoubleHighDoubleWidePrintSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsPaperEmptySensorSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsPaperEmptySensorSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsPaperNearEndSensorSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsPaperNearEndSensorSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -8997,56 +7950,56 @@ impl ReceiptPrinterCapabilities { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn SupportedCharactersPerLine(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SupportedCharactersPerLine)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsBarcodeSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsBarcodeSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsBitmapSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsBitmapSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsLeft90RotationSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsLeft90RotationSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsRight90RotationSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsRight90RotationSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Is180RotationSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Is180RotationSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsPrintAreaSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsPrintAreaSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn RuledLineCapabilities(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RuledLineCapabilities)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -9055,7 +8008,7 @@ impl ReceiptPrinterCapabilities { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn SupportedBarcodeRotations(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SupportedBarcodeRotations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -9064,7 +8017,7 @@ impl ReceiptPrinterCapabilities { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn SupportedBitmapRotations(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SupportedBitmapRotations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -9092,42 +8045,42 @@ impl ReceiptPrinterCapabilities { } } pub fn IsReverseVideoSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsReverseVideoSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsStrikethroughSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsStrikethroughSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsSuperscriptSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsSuperscriptSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsSubscriptSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsSubscriptSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsReversePaperFeedByLineSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsReversePaperFeedByLineSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsReversePaperFeedByMapModeUnitSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsReversePaperFeedByMapModeUnitSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -9139,36 +8092,33 @@ impl ::windows_core::RuntimeType for ReceiptPrinterCapabilities { } unsafe impl ::windows_core::Interface for ReceiptPrinterCapabilities { type Vtable = IReceiptPrinterCapabilities_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ReceiptPrinterCapabilities { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ReceiptPrinterCapabilities { const NAME: &'static str = "Windows.Devices.PointOfService.ReceiptPrinterCapabilities"; } -::windows_core::imp::interface_hierarchy!(ReceiptPrinterCapabilities, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ReceiptPrinterCapabilities {} -impl ::windows_core::CanTryInto for ReceiptPrinterCapabilities {} unsafe impl ::core::marker::Send for ReceiptPrinterCapabilities {} unsafe impl ::core::marker::Sync for ReceiptPrinterCapabilities {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SlipPrintJob(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SlipPrintJob, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(SlipPrintJob, IPosPrinterJob, IReceiptOrSlipJob); impl SlipPrintJob { pub fn Print(&self, data: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + 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)).ok() } } pub fn PrintLine(&self, data: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).PrintLine)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(data)).ok() } } pub fn PrintNewline(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).PrintNewline)(::windows_core::Interface::as_raw(this)).ok() } } pub fn ExecuteAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ExecuteAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -9278,15 +8228,15 @@ impl SlipPrintJob { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn FeedPaperByLine(&self, linecount: i32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).FeedPaperByLine)(::windows_core::Interface::as_raw(this), linecount).ok() } } pub fn FeedPaperByMapModeUnit(&self, distance: i32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).FeedPaperByMapModeUnit)(::windows_core::Interface::as_raw(this), distance).ok() } } } @@ -9295,101 +8245,98 @@ impl ::windows_core::RuntimeType for SlipPrintJob { } unsafe impl ::windows_core::Interface for SlipPrintJob { type Vtable = IReceiptOrSlipJob_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SlipPrintJob { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SlipPrintJob { const NAME: &'static str = "Windows.Devices.PointOfService.SlipPrintJob"; } -::windows_core::imp::interface_hierarchy!(SlipPrintJob, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for SlipPrintJob {} -impl ::windows_core::CanTryInto for SlipPrintJob {} unsafe impl ::core::marker::Send for SlipPrintJob {} unsafe impl ::core::marker::Sync for SlipPrintJob {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SlipPrinterCapabilities(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SlipPrinterCapabilities, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(SlipPrinterCapabilities, ICommonPosPrintStationCapabilities, ICommonReceiptSlipCapabilities); impl SlipPrinterCapabilities { pub fn IsPrinterPresent(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsPrinterPresent)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsDualColorSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsDualColorSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ColorCartridgeCapabilities(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ColorCartridgeCapabilities)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CartridgeSensors(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CartridgeSensors)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsBoldSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsBoldSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsItalicSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsItalicSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsUnderlineSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsUnderlineSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsDoubleHighPrintSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsDoubleHighPrintSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsDoubleWidePrintSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsDoubleWidePrintSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsDoubleHighDoubleWidePrintSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsDoubleHighDoubleWidePrintSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsPaperEmptySensorSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsPaperEmptySensorSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsPaperNearEndSensorSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsPaperNearEndSensorSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -9398,56 +8345,56 @@ impl SlipPrinterCapabilities { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn SupportedCharactersPerLine(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SupportedCharactersPerLine)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsBarcodeSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsBarcodeSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsBitmapSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsBitmapSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsLeft90RotationSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsLeft90RotationSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsRight90RotationSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsRight90RotationSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Is180RotationSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Is180RotationSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsPrintAreaSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsPrintAreaSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn RuledLineCapabilities(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RuledLineCapabilities)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -9456,7 +8403,7 @@ impl SlipPrinterCapabilities { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn SupportedBarcodeRotations(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SupportedBarcodeRotations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -9465,7 +8412,7 @@ impl SlipPrinterCapabilities { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn SupportedBitmapRotations(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SupportedBitmapRotations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -9486,42 +8433,42 @@ impl SlipPrinterCapabilities { } } pub fn IsReverseVideoSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsReverseVideoSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsStrikethroughSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsStrikethroughSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsSuperscriptSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsSuperscriptSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsSubscriptSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsSubscriptSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsReversePaperFeedByLineSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsReversePaperFeedByLineSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsReversePaperFeedByMapModeUnitSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsReversePaperFeedByMapModeUnitSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -9533,21 +8480,17 @@ impl ::windows_core::RuntimeType for SlipPrinterCapabilities { } unsafe impl ::windows_core::Interface for SlipPrinterCapabilities { type Vtable = ISlipPrinterCapabilities_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SlipPrinterCapabilities { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SlipPrinterCapabilities { const NAME: &'static str = "Windows.Devices.PointOfService.SlipPrinterCapabilities"; } -::windows_core::imp::interface_hierarchy!(SlipPrinterCapabilities, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for SlipPrinterCapabilities {} -impl ::windows_core::CanTryInto for SlipPrinterCapabilities {} unsafe impl ::core::marker::Send for SlipPrinterCapabilities {} unsafe impl ::core::marker::Sync for SlipPrinterCapabilities {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UnifiedPosErrorData(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UnifiedPosErrorData, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UnifiedPosErrorData { pub fn Message(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -9594,14 +8537,11 @@ impl ::windows_core::RuntimeType for UnifiedPosErrorData { } unsafe impl ::windows_core::Interface for UnifiedPosErrorData { type Vtable = IUnifiedPosErrorData_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UnifiedPosErrorData { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UnifiedPosErrorData { const NAME: &'static str = "Windows.Devices.PointOfService.UnifiedPosErrorData"; } -::windows_core::imp::interface_hierarchy!(UnifiedPosErrorData, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UnifiedPosErrorData {} unsafe impl ::core::marker::Sync for UnifiedPosErrorData {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Devices/Portable/mod.rs b/crates/libs/windows/src/Windows/Devices/Portable/mod.rs index 9cc63f0daf..c77b2a5185 100644 --- a/crates/libs/windows/src/Windows/Devices/Portable/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Portable/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IServiceDeviceStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IServiceDeviceStatics { - type Vtable = IServiceDeviceStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IServiceDeviceStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa88214e1_59c7_4a20_aba6_9f6707937230); -} +::windows_core::imp::com_interface!(IServiceDeviceStatics, IServiceDeviceStatics_Vtbl, 0xa88214e1_59c7_4a20_aba6_9f6707937230); #[repr(C)] #[doc(hidden)] pub struct IServiceDeviceStatics_Vtbl { @@ -15,16 +6,7 @@ pub struct IServiceDeviceStatics_Vtbl { pub GetDeviceSelector: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, servicetype: ServiceDeviceType, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub GetDeviceSelectorFromServiceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, serviceid: ::windows_core::GUID, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageDeviceStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorageDeviceStatics { - type Vtable = IStorageDeviceStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageDeviceStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5ece44ee_1b23_4dd2_8652_bc164f003128); -} +::windows_core::imp::com_interface!(IStorageDeviceStatics, IStorageDeviceStatics_Vtbl, 0x5ece44ee_1b23_4dd2_8652_bc164f003128); #[repr(C)] #[doc(hidden)] pub struct IStorageDeviceStatics_Vtbl { diff --git a/crates/libs/windows/src/Windows/Devices/Power/mod.rs b/crates/libs/windows/src/Windows/Devices/Power/mod.rs index f6058c12e5..43c1cf2c22 100644 --- a/crates/libs/windows/src/Windows/Devices/Power/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Power/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBattery(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBattery { - type Vtable = IBattery_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBattery { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbc894fc6_0072_47c8_8b5d_614aaa7a437e); -} +::windows_core::imp::com_interface!(IBattery, IBattery_Vtbl, 0xbc894fc6_0072_47c8_8b5d_614aaa7a437e); #[repr(C)] #[doc(hidden)] pub struct IBattery_Vtbl { @@ -17,16 +8,7 @@ pub struct IBattery_Vtbl { pub ReportUpdated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveReportUpdated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBatteryReport(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBatteryReport { - type Vtable = IBatteryReport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBatteryReport { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc9858c3a_4e13_420a_a8d0_24f18f395401); -} +::windows_core::imp::com_interface!(IBatteryReport, IBatteryReport_Vtbl, 0xc9858c3a_4e13_420a_a8d0_24f18f395401); #[repr(C)] #[doc(hidden)] pub struct IBatteryReport_Vtbl { @@ -40,16 +22,7 @@ pub struct IBatteryReport_Vtbl { #[cfg(not(feature = "System_Power"))] Status: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBatteryStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBatteryStatics { - type Vtable = IBatteryStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBatteryStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x79cd72b6_9e5e_4452_bea6_dfcd541e597f); -} +::windows_core::imp::com_interface!(IBatteryStatics, IBatteryStatics_Vtbl, 0x79cd72b6_9e5e_4452_bea6_dfcd541e597f); #[repr(C)] #[doc(hidden)] pub struct IBatteryStatics_Vtbl { @@ -61,6 +34,7 @@ pub struct IBatteryStatics_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Battery(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Battery, ::windows_core::IUnknown, ::windows_core::IInspectable); impl Battery { pub fn DeviceId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -119,19 +93,17 @@ impl ::windows_core::RuntimeType for Battery { } unsafe impl ::windows_core::Interface for Battery { type Vtable = IBattery_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Battery { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Battery { const NAME: &'static str = "Windows.Devices.Power.Battery"; } -::windows_core::imp::interface_hierarchy!(Battery, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for Battery {} unsafe impl ::core::marker::Sync for Battery {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BatteryReport(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BatteryReport, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BatteryReport { pub fn ChargeRateInMilliwatts(&self) -> ::windows_core::Result> { let this = self; @@ -176,13 +148,10 @@ impl ::windows_core::RuntimeType for BatteryReport { } unsafe impl ::windows_core::Interface for BatteryReport { type Vtable = IBatteryReport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BatteryReport { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BatteryReport { const NAME: &'static str = "Windows.Devices.Power.BatteryReport"; } -::windows_core::imp::interface_hierarchy!(BatteryReport, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BatteryReport {} unsafe impl ::core::marker::Sync for BatteryReport {} 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 441d502420..a1f7de370e 100644 --- a/crates/libs/windows/src/Windows/Devices/Printers/Extensions/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Printers/Extensions/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrint3DWorkflow(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrint3DWorkflow { - type Vtable = IPrint3DWorkflow_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrint3DWorkflow { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc56f74bd_3669_4a66_ab42_c8151930cd34); -} +::windows_core::imp::com_interface!(IPrint3DWorkflow, IPrint3DWorkflow_Vtbl, 0xc56f74bd_3669_4a66_ab42_c8151930cd34); #[repr(C)] #[doc(hidden)] pub struct IPrint3DWorkflow_Vtbl { @@ -19,16 +10,7 @@ pub struct IPrint3DWorkflow_Vtbl { pub PrintRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventhandler: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemovePrintRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventcookie: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrint3DWorkflow2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrint3DWorkflow2 { - type Vtable = IPrint3DWorkflow2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrint3DWorkflow2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa2a6c54f_8ac1_4918_9741_e34f3004239e); -} +::windows_core::imp::com_interface!(IPrint3DWorkflow2, IPrint3DWorkflow2_Vtbl, 0xa2a6c54f_8ac1_4918_9741_e34f3004239e); #[repr(C)] #[doc(hidden)] pub struct IPrint3DWorkflow2_Vtbl { @@ -36,16 +18,7 @@ pub struct IPrint3DWorkflow2_Vtbl { pub PrinterChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventhandler: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemovePrinterChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventcookie: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrint3DWorkflowPrintRequestedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrint3DWorkflowPrintRequestedEventArgs { - type Vtable = IPrint3DWorkflowPrintRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrint3DWorkflowPrintRequestedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x19f8c858_5ac8_4b55_8a5f_e61567dafb4d); -} +::windows_core::imp::com_interface!(IPrint3DWorkflowPrintRequestedEventArgs, IPrint3DWorkflowPrintRequestedEventArgs_Vtbl, 0x19f8c858_5ac8_4b55_8a5f_e61567dafb4d); #[repr(C)] #[doc(hidden)] pub struct IPrint3DWorkflowPrintRequestedEventArgs_Vtbl { @@ -55,48 +28,21 @@ pub struct IPrint3DWorkflowPrintRequestedEventArgs_Vtbl { pub SetSource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, source: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetSourceChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrint3DWorkflowPrinterChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrint3DWorkflowPrinterChangedEventArgs { - type Vtable = IPrint3DWorkflowPrinterChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrint3DWorkflowPrinterChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x45226402_95fc_4847_93b3_134dbf5c60f7); -} +::windows_core::imp::com_interface!(IPrint3DWorkflowPrinterChangedEventArgs, IPrint3DWorkflowPrinterChangedEventArgs_Vtbl, 0x45226402_95fc_4847_93b3_134dbf5c60f7); #[repr(C)] #[doc(hidden)] pub struct IPrint3DWorkflowPrinterChangedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub NewDeviceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintExtensionContextStatic(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintExtensionContextStatic { - type Vtable = IPrintExtensionContextStatic_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintExtensionContextStatic { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe70d9fc1_ff79_4aa4_8c9b_0c93aedfde8a); -} +::windows_core::imp::com_interface!(IPrintExtensionContextStatic, IPrintExtensionContextStatic_Vtbl, 0xe70d9fc1_ff79_4aa4_8c9b_0c93aedfde8a); #[repr(C)] #[doc(hidden)] pub struct IPrintExtensionContextStatic_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub FromDeviceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, deviceid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintNotificationEventDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintNotificationEventDetails { - type Vtable = IPrintNotificationEventDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintNotificationEventDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe00e4c8a_4828_4da1_8bb8_8672df8515e7); -} +::windows_core::imp::com_interface!(IPrintNotificationEventDetails, IPrintNotificationEventDetails_Vtbl, 0xe00e4c8a_4828_4da1_8bb8_8672df8515e7); #[repr(C)] #[doc(hidden)] pub struct IPrintNotificationEventDetails_Vtbl { @@ -105,16 +51,7 @@ pub struct IPrintNotificationEventDetails_Vtbl { pub EventData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetEventData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintTaskConfiguration(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintTaskConfiguration { - type Vtable = IPrintTaskConfiguration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintTaskConfiguration { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe3c22451_3aa4_4885_9240_311f5f8fbe9d); -} +::windows_core::imp::com_interface!(IPrintTaskConfiguration, IPrintTaskConfiguration_Vtbl, 0xe3c22451_3aa4_4885_9240_311f5f8fbe9d); #[repr(C)] #[doc(hidden)] pub struct IPrintTaskConfiguration_Vtbl { @@ -123,16 +60,7 @@ pub struct IPrintTaskConfiguration_Vtbl { pub SaveRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventhandler: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveSaveRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventcookie: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintTaskConfigurationSaveRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintTaskConfigurationSaveRequest { - type Vtable = IPrintTaskConfigurationSaveRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintTaskConfigurationSaveRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeeaf2fcb_621e_4b62_ac77_b281cce08d60); -} +::windows_core::imp::com_interface!(IPrintTaskConfigurationSaveRequest, IPrintTaskConfigurationSaveRequest_Vtbl, 0xeeaf2fcb_621e_4b62_ac77_b281cce08d60); #[repr(C)] #[doc(hidden)] pub struct IPrintTaskConfigurationSaveRequest_Vtbl { @@ -142,32 +70,14 @@ pub struct IPrintTaskConfigurationSaveRequest_Vtbl { pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Deadline: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::DateTime) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintTaskConfigurationSaveRequestedDeferral(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintTaskConfigurationSaveRequestedDeferral { - type Vtable = IPrintTaskConfigurationSaveRequestedDeferral_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintTaskConfigurationSaveRequestedDeferral { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe959d568_f729_44a4_871d_bd0628696a33); -} +::windows_core::imp::com_interface!(IPrintTaskConfigurationSaveRequestedDeferral, IPrintTaskConfigurationSaveRequestedDeferral_Vtbl, 0xe959d568_f729_44a4_871d_bd0628696a33); #[repr(C)] #[doc(hidden)] pub struct IPrintTaskConfigurationSaveRequestedDeferral_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Complete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintTaskConfigurationSaveRequestedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintTaskConfigurationSaveRequestedEventArgs { - type Vtable = IPrintTaskConfigurationSaveRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintTaskConfigurationSaveRequestedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe06c2879_0d61_4938_91d0_96a45bee8479); -} +::windows_core::imp::com_interface!(IPrintTaskConfigurationSaveRequestedEventArgs, IPrintTaskConfigurationSaveRequestedEventArgs_Vtbl, 0xe06c2879_0d61_4938_91d0_96a45bee8479); #[repr(C)] #[doc(hidden)] pub struct IPrintTaskConfigurationSaveRequestedEventArgs_Vtbl { @@ -177,6 +87,7 @@ pub struct IPrintTaskConfigurationSaveRequestedEventArgs_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Print3DWorkflow(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Print3DWorkflow, ::windows_core::IUnknown, ::windows_core::IInspectable); impl Print3DWorkflow { pub fn DeviceID(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -221,14 +132,14 @@ impl Print3DWorkflow { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemovePrinterChanged(&self, eventcookie: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemovePrinterChanged)(::windows_core::Interface::as_raw(this), eventcookie).ok() } } } @@ -237,19 +148,17 @@ impl ::windows_core::RuntimeType for Print3DWorkflow { } unsafe impl ::windows_core::Interface for Print3DWorkflow { type Vtable = IPrint3DWorkflow_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Print3DWorkflow { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Print3DWorkflow { const NAME: &'static str = "Windows.Devices.Printers.Extensions.Print3DWorkflow"; } -::windows_core::imp::interface_hierarchy!(Print3DWorkflow, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for Print3DWorkflow {} unsafe impl ::core::marker::Sync for Print3DWorkflow {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Print3DWorkflowPrintRequestedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Print3DWorkflowPrintRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl Print3DWorkflowPrintRequestedEventArgs { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -279,19 +188,17 @@ impl ::windows_core::RuntimeType for Print3DWorkflowPrintRequestedEventArgs { } unsafe impl ::windows_core::Interface for Print3DWorkflowPrintRequestedEventArgs { type Vtable = IPrint3DWorkflowPrintRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Print3DWorkflowPrintRequestedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Print3DWorkflowPrintRequestedEventArgs { const NAME: &'static str = "Windows.Devices.Printers.Extensions.Print3DWorkflowPrintRequestedEventArgs"; } -::windows_core::imp::interface_hierarchy!(Print3DWorkflowPrintRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for Print3DWorkflowPrintRequestedEventArgs {} unsafe impl ::core::marker::Sync for Print3DWorkflowPrintRequestedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Print3DWorkflowPrinterChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Print3DWorkflowPrinterChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl Print3DWorkflowPrinterChangedEventArgs { pub fn NewDeviceId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -306,14 +213,11 @@ impl ::windows_core::RuntimeType for Print3DWorkflowPrinterChangedEventArgs { } unsafe impl ::windows_core::Interface for Print3DWorkflowPrinterChangedEventArgs { type Vtable = IPrint3DWorkflowPrinterChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Print3DWorkflowPrinterChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Print3DWorkflowPrinterChangedEventArgs { const NAME: &'static str = "Windows.Devices.Printers.Extensions.Print3DWorkflowPrinterChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(Print3DWorkflowPrinterChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for Print3DWorkflowPrinterChangedEventArgs {} unsafe impl ::core::marker::Sync for Print3DWorkflowPrinterChangedEventArgs {} pub struct PrintExtensionContext; @@ -336,6 +240,7 @@ impl ::windows_core::RuntimeName for PrintExtensionContext { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintNotificationEventDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintNotificationEventDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PrintNotificationEventDetails { pub fn PrinterName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -361,19 +266,17 @@ impl ::windows_core::RuntimeType for PrintNotificationEventDetails { } unsafe impl ::windows_core::Interface for PrintNotificationEventDetails { type Vtable = IPrintNotificationEventDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintNotificationEventDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintNotificationEventDetails { const NAME: &'static str = "Windows.Devices.Printers.Extensions.PrintNotificationEventDetails"; } -::windows_core::imp::interface_hierarchy!(PrintNotificationEventDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PrintNotificationEventDetails {} unsafe impl ::core::marker::Sync for PrintNotificationEventDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintTaskConfiguration(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintTaskConfiguration, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PrintTaskConfiguration { pub fn PrinterExtensionContext(&self) -> ::windows_core::Result<::windows_core::IInspectable> { let this = self; @@ -402,17 +305,15 @@ impl ::windows_core::RuntimeType for PrintTaskConfiguration { } unsafe impl ::windows_core::Interface for PrintTaskConfiguration { type Vtable = IPrintTaskConfiguration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintTaskConfiguration { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintTaskConfiguration { const NAME: &'static str = "Windows.Devices.Printers.Extensions.PrintTaskConfiguration"; } -::windows_core::imp::interface_hierarchy!(PrintTaskConfiguration, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintTaskConfigurationSaveRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintTaskConfigurationSaveRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PrintTaskConfigurationSaveRequest { pub fn Cancel(&self) -> ::windows_core::Result<()> { let this = self; @@ -445,17 +346,15 @@ impl ::windows_core::RuntimeType for PrintTaskConfigurationSaveRequest { } unsafe impl ::windows_core::Interface for PrintTaskConfigurationSaveRequest { type Vtable = IPrintTaskConfigurationSaveRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintTaskConfigurationSaveRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintTaskConfigurationSaveRequest { const NAME: &'static str = "Windows.Devices.Printers.Extensions.PrintTaskConfigurationSaveRequest"; } -::windows_core::imp::interface_hierarchy!(PrintTaskConfigurationSaveRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintTaskConfigurationSaveRequestedDeferral(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintTaskConfigurationSaveRequestedDeferral, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PrintTaskConfigurationSaveRequestedDeferral { pub fn Complete(&self) -> ::windows_core::Result<()> { let this = self; @@ -467,17 +366,15 @@ impl ::windows_core::RuntimeType for PrintTaskConfigurationSaveRequestedDeferral } unsafe impl ::windows_core::Interface for PrintTaskConfigurationSaveRequestedDeferral { type Vtable = IPrintTaskConfigurationSaveRequestedDeferral_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintTaskConfigurationSaveRequestedDeferral { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintTaskConfigurationSaveRequestedDeferral { const NAME: &'static str = "Windows.Devices.Printers.Extensions.PrintTaskConfigurationSaveRequestedDeferral"; } -::windows_core::imp::interface_hierarchy!(PrintTaskConfigurationSaveRequestedDeferral, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintTaskConfigurationSaveRequestedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintTaskConfigurationSaveRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PrintTaskConfigurationSaveRequestedEventArgs { pub fn Request(&self) -> ::windows_core::Result { let this = self; @@ -492,14 +389,11 @@ impl ::windows_core::RuntimeType for PrintTaskConfigurationSaveRequestedEventArg } unsafe impl ::windows_core::Interface for PrintTaskConfigurationSaveRequestedEventArgs { type Vtable = IPrintTaskConfigurationSaveRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintTaskConfigurationSaveRequestedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintTaskConfigurationSaveRequestedEventArgs { const NAME: &'static str = "Windows.Devices.Printers.Extensions.PrintTaskConfigurationSaveRequestedEventArgs"; } -::windows_core::imp::interface_hierarchy!(PrintTaskConfigurationSaveRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::marker::Copy, ::core::clone::Clone, ::core::default::Default)] pub struct Print3DWorkflowDetail(pub i32); diff --git a/crates/libs/windows/src/Windows/Devices/Printers/mod.rs b/crates/libs/windows/src/Windows/Devices/Printers/mod.rs index c309ea3423..5c43f669e2 100644 --- a/crates/libs/windows/src/Windows/Devices/Printers/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Printers/mod.rs @@ -1,16 +1,7 @@ #[cfg(feature = "Devices_Printers_Extensions")] #[doc = "Required features: `\"Devices_Printers_Extensions\"`"] pub mod Extensions; -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIppAttributeError(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIppAttributeError { - type Vtable = IIppAttributeError_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIppAttributeError { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x750feda1_9eef_5c39_93e4_46149bbcef27); -} +::windows_core::imp::com_interface!(IIppAttributeError, IIppAttributeError_Vtbl, 0x750feda1_9eef_5c39_93e4_46149bbcef27); #[repr(C)] #[doc(hidden)] pub struct IIppAttributeError_Vtbl { @@ -22,16 +13,7 @@ pub struct IIppAttributeError_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetUnsupportedValues: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIppAttributeValue(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIppAttributeValue { - type Vtable = IIppAttributeValue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIppAttributeValue { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x99407fed_e2bb_59a3_988b_28a974052a26); -} +::windows_core::imp::com_interface!(IIppAttributeValue, IIppAttributeValue_Vtbl, 0x99407fed_e2bb_59a3_988b_28a974052a26); #[repr(C)] #[doc(hidden)] pub struct IIppAttributeValue_Vtbl { @@ -110,16 +92,7 @@ pub struct IIppAttributeValue_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetMimeMediaTypeArray: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIppAttributeValueStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIppAttributeValueStatics { - type Vtable = IIppAttributeValueStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIppAttributeValueStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x10d43942_dd94_5998_b235_afafb6fa7935); -} +::windows_core::imp::com_interface!(IIppAttributeValueStatics, IIppAttributeValueStatics_Vtbl, 0x10d43942_dd94_5998_b235_afafb6fa7935); #[repr(C)] #[doc(hidden)] pub struct IIppAttributeValueStatics_Vtbl { @@ -224,16 +197,7 @@ pub struct IIppAttributeValueStatics_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] CreateMimeMediaArray: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIppIntegerRange(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIppIntegerRange { - type Vtable = IIppIntegerRange_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIppIntegerRange { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x92907346_c3ea_5ed6_bdb1_3752c62c6f7f); -} +::windows_core::imp::com_interface!(IIppIntegerRange, IIppIntegerRange_Vtbl, 0x92907346_c3ea_5ed6_bdb1_3752c62c6f7f); #[repr(C)] #[doc(hidden)] pub struct IIppIntegerRange_Vtbl { @@ -241,32 +205,14 @@ pub struct IIppIntegerRange_Vtbl { pub Start: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows_core::HRESULT, pub End: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIppIntegerRangeFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIppIntegerRangeFactory { - type Vtable = IIppIntegerRangeFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIppIntegerRangeFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x75d4ecae_f87e_54ad_b5d0_465204db7553); -} +::windows_core::imp::com_interface!(IIppIntegerRangeFactory, IIppIntegerRangeFactory_Vtbl, 0x75d4ecae_f87e_54ad_b5d0_465204db7553); #[repr(C)] #[doc(hidden)] pub struct IIppIntegerRangeFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, start: i32, end: i32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIppPrintDevice(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIppPrintDevice { - type Vtable = IIppPrintDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIppPrintDevice { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd748ac56_76f3_5dc6_afd4_c2a8686b9359); -} +::windows_core::imp::com_interface!(IIppPrintDevice, IIppPrintDevice_Vtbl, 0xd748ac56_76f3_5dc6_afd4_c2a8686b9359); #[repr(C)] #[doc(hidden)] pub struct IIppPrintDevice_Vtbl { @@ -290,16 +236,7 @@ pub struct IIppPrintDevice_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] SetPrinterAttributes: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIppPrintDevice2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIppPrintDevice2 { - type Vtable = IIppPrintDevice2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIppPrintDevice2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf7c844c9_9d21_5c63_ac20_3676915be2d7); -} +::windows_core::imp::com_interface!(IIppPrintDevice2, IIppPrintDevice2_Vtbl, 0xf7c844c9_9d21_5c63_ac20_3676915be2d7); #[repr(C)] #[doc(hidden)] pub struct IIppPrintDevice2_Vtbl { @@ -309,16 +246,7 @@ pub struct IIppPrintDevice2_Vtbl { pub IsPdlPassthroughSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdlcontenttype: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut bool) -> ::windows_core::HRESULT, pub GetPdlPassthroughProvider: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIppPrintDeviceStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIppPrintDeviceStatics { - type Vtable = IIppPrintDeviceStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIppPrintDeviceStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7dc19f08_7f20_52ab_94a7_894b83b2a17e); -} +::windows_core::imp::com_interface!(IIppPrintDeviceStatics, IIppPrintDeviceStatics_Vtbl, 0x7dc19f08_7f20_52ab_94a7_894b83b2a17e); #[repr(C)] #[doc(hidden)] pub struct IIppPrintDeviceStatics_Vtbl { @@ -328,16 +256,7 @@ pub struct IIppPrintDeviceStatics_Vtbl { pub FromPrinterName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, printername: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub IsIppPrinter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, printername: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIppResolution(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIppResolution { - type Vtable = IIppResolution_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIppResolution { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcb493f86_6bf3_56f5_86ce_263d08aead63); -} +::windows_core::imp::com_interface!(IIppResolution, IIppResolution_Vtbl, 0xcb493f86_6bf3_56f5_86ce_263d08aead63); #[repr(C)] #[doc(hidden)] pub struct IIppResolution_Vtbl { @@ -346,32 +265,14 @@ pub struct IIppResolution_Vtbl { pub Height: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows_core::HRESULT, pub Unit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut IppResolutionUnit) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIppResolutionFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIppResolutionFactory { - type Vtable = IIppResolutionFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIppResolutionFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe481c2ae_251a_5326_b173_95543ed99a35); -} +::windows_core::imp::com_interface!(IIppResolutionFactory, IIppResolutionFactory_Vtbl, 0xe481c2ae_251a_5326_b173_95543ed99a35); #[repr(C)] #[doc(hidden)] pub struct IIppResolutionFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, width: i32, height: i32, unit: IppResolutionUnit, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIppSetAttributesResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIppSetAttributesResult { - type Vtable = IIppSetAttributesResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIppSetAttributesResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7d1c7f55_aa9d_58a3_90e9_17bdc5281f07); -} +::windows_core::imp::com_interface!(IIppSetAttributesResult, IIppSetAttributesResult_Vtbl, 0x7d1c7f55_aa9d_58a3_90e9_17bdc5281f07); #[repr(C)] #[doc(hidden)] pub struct IIppSetAttributesResult_Vtbl { @@ -382,16 +283,7 @@ pub struct IIppSetAttributesResult_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] AttributeErrors: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIppTextWithLanguage(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIppTextWithLanguage { - type Vtable = IIppTextWithLanguage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIppTextWithLanguage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x326447a6_5149_5936_90e8_0c736036bf77); -} +::windows_core::imp::com_interface!(IIppTextWithLanguage, IIppTextWithLanguage_Vtbl, 0x326447a6_5149_5936_90e8_0c736036bf77); #[repr(C)] #[doc(hidden)] pub struct IIppTextWithLanguage_Vtbl { @@ -399,32 +291,14 @@ pub struct IIppTextWithLanguage_Vtbl { pub Language: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIppTextWithLanguageFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIppTextWithLanguageFactory { - type Vtable = IIppTextWithLanguageFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIppTextWithLanguageFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xca4a1e8d_2968_5775_997c_8a46f1a574ed); -} +::windows_core::imp::com_interface!(IIppTextWithLanguageFactory, IIppTextWithLanguageFactory_Vtbl, 0xca4a1e8d_2968_5775_997c_8a46f1a574ed); #[repr(C)] #[doc(hidden)] pub struct IIppTextWithLanguageFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, language: ::std::mem::MaybeUninit<::windows_core::HSTRING>, text: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPageConfigurationSettings(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPageConfigurationSettings { - type Vtable = IPageConfigurationSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPageConfigurationSettings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb6fc1e02_5331_54ff_95a0_1fcb76bb97a9); -} +::windows_core::imp::com_interface!(IPageConfigurationSettings, IPageConfigurationSettings_Vtbl, 0xb6fc1e02_5331_54ff_95a0_1fcb76bb97a9); #[repr(C)] #[doc(hidden)] pub struct IPageConfigurationSettings_Vtbl { @@ -434,16 +308,7 @@ pub struct IPageConfigurationSettings_Vtbl { pub SizeSource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut PageConfigurationSource) -> ::windows_core::HRESULT, pub SetSizeSource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: PageConfigurationSource) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPdlPassthroughProvider(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPdlPassthroughProvider { - type Vtable = IPdlPassthroughProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPdlPassthroughProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x23c71dd2_6117_553f_9378_180af5849a49); -} +::windows_core::imp::com_interface!(IPdlPassthroughProvider, IPdlPassthroughProvider_Vtbl, 0x23c71dd2_6117_553f_9378_180af5849a49); #[repr(C)] #[doc(hidden)] pub struct IPdlPassthroughProvider_Vtbl { @@ -461,16 +326,7 @@ pub struct IPdlPassthroughProvider_Vtbl { #[cfg(not(feature = "Storage_Streams"))] StartPrintJobWithPrintTicket: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPdlPassthroughTarget(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPdlPassthroughTarget { - type Vtable = IPdlPassthroughTarget_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPdlPassthroughTarget { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9840be79_67f8_5385_a5b9_e8c96e0fca76); -} +::windows_core::imp::com_interface!(IPdlPassthroughTarget, IPdlPassthroughTarget_Vtbl, 0x9840be79_67f8_5385_a5b9_e8c96e0fca76); #[repr(C)] #[doc(hidden)] pub struct IPdlPassthroughTarget_Vtbl { @@ -482,32 +338,14 @@ pub struct IPdlPassthroughTarget_Vtbl { GetOutputStream: usize, pub Submit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrint3DDevice(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrint3DDevice { - type Vtable = IPrint3DDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrint3DDevice { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x041c3d19_9713_42a2_9813_7dc3337428d3); -} +::windows_core::imp::com_interface!(IPrint3DDevice, IPrint3DDevice_Vtbl, 0x041c3d19_9713_42a2_9813_7dc3337428d3); #[repr(C)] #[doc(hidden)] pub struct IPrint3DDevice_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub PrintSchema: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrint3DDeviceStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrint3DDeviceStatics { - type Vtable = IPrint3DDeviceStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrint3DDeviceStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfde3620a_67cd_41b7_a344_5150a1fd75b5); -} +::windows_core::imp::com_interface!(IPrint3DDeviceStatics, IPrint3DDeviceStatics_Vtbl, 0xfde3620a_67cd_41b7_a344_5150a1fd75b5); #[repr(C)] #[doc(hidden)] pub struct IPrint3DDeviceStatics_Vtbl { @@ -515,16 +353,7 @@ pub struct IPrint3DDeviceStatics_Vtbl { pub FromIdAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, deviceid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeviceSelector: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintSchema(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintSchema { - type Vtable = IPrintSchema_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintSchema { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc2b98316_26b8_4bfb_8138_9f962c22a35b); -} +::windows_core::imp::com_interface!(IPrintSchema, IPrintSchema_Vtbl, 0xc2b98316_26b8_4bfb_8138_9f962c22a35b); #[repr(C)] #[doc(hidden)] pub struct IPrintSchema_Vtbl { @@ -545,6 +374,7 @@ pub struct IPrintSchema_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct IppAttributeError(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(IppAttributeError, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IppAttributeError { pub fn Reason(&self) -> ::windows_core::Result { let this = self; @@ -575,19 +405,17 @@ impl ::windows_core::RuntimeType for IppAttributeError { } unsafe impl ::windows_core::Interface for IppAttributeError { type Vtable = IIppAttributeError_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IppAttributeError { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for IppAttributeError { const NAME: &'static str = "Windows.Devices.Printers.IppAttributeError"; } -::windows_core::imp::interface_hierarchy!(IppAttributeError, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for IppAttributeError {} unsafe impl ::core::marker::Sync for IppAttributeError {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct IppAttributeValue(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(IppAttributeValue, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IppAttributeValue { pub fn Kind(&self) -> ::windows_core::Result { let this = self; @@ -786,11 +614,11 @@ impl IppAttributeValue { #[cfg(feature = "Foundation_Collections")] pub fn CreateIntegerArray(values: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::IIppAttributeValueStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateIntegerArray)(::windows_core::Interface::as_raw(this), values.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateIntegerArray)(::windows_core::Interface::as_raw(this), values.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn CreateBoolean(value: bool) -> ::windows_core::Result { @@ -803,11 +631,11 @@ impl IppAttributeValue { #[cfg(feature = "Foundation_Collections")] pub fn CreateBooleanArray(values: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::IIppAttributeValueStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateBooleanArray)(::windows_core::Interface::as_raw(this), values.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateBooleanArray)(::windows_core::Interface::as_raw(this), values.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn CreateEnum(value: i32) -> ::windows_core::Result { @@ -820,33 +648,33 @@ impl IppAttributeValue { #[cfg(feature = "Foundation_Collections")] pub fn CreateEnumArray(values: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::IIppAttributeValueStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateEnumArray)(::windows_core::Interface::as_raw(this), values.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateEnumArray)(::windows_core::Interface::as_raw(this), values.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn CreateOctetString(value: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IIppAttributeValueStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateOctetString)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateOctetString)(::windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Storage_Streams\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] pub fn CreateOctetStringArray(values: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::IIppAttributeValueStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateOctetStringArray)(::windows_core::Interface::as_raw(this), values.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateOctetStringArray)(::windows_core::Interface::as_raw(this), values.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn CreateDateTime(value: super::super::Foundation::DateTime) -> ::windows_core::Result { @@ -859,11 +687,11 @@ impl IppAttributeValue { #[cfg(feature = "Foundation_Collections")] pub fn CreateDateTimeArray(values: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::IIppAttributeValueStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateDateTimeArray)(::windows_core::Interface::as_raw(this), values.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateDateTimeArray)(::windows_core::Interface::as_raw(this), values.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn CreateResolution(value: P0) -> ::windows_core::Result @@ -879,11 +707,11 @@ impl IppAttributeValue { #[cfg(feature = "Foundation_Collections")] pub fn CreateResolutionArray(values: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::IIppAttributeValueStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateResolutionArray)(::windows_core::Interface::as_raw(this), values.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateResolutionArray)(::windows_core::Interface::as_raw(this), values.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn CreateRangeOfInteger(value: P0) -> ::windows_core::Result @@ -899,33 +727,33 @@ impl IppAttributeValue { #[cfg(feature = "Foundation_Collections")] pub fn CreateRangeOfIntegerArray(values: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::IIppAttributeValueStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateRangeOfIntegerArray)(::windows_core::Interface::as_raw(this), values.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateRangeOfIntegerArray)(::windows_core::Interface::as_raw(this), values.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn CreateCollection(memberattributes: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>>, + P0: ::windows_core::IntoParam>>, { Self::IIppAttributeValueStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateCollection)(::windows_core::Interface::as_raw(this), memberattributes.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateCollection)(::windows_core::Interface::as_raw(this), memberattributes.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn CreateCollectionArray(memberattributesarray: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>>>, + P0: ::windows_core::IntoParam>>>, { Self::IIppAttributeValueStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateCollectionArray)(::windows_core::Interface::as_raw(this), memberattributesarray.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateCollectionArray)(::windows_core::Interface::as_raw(this), memberattributesarray.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn CreateTextWithLanguage(value: P0) -> ::windows_core::Result @@ -941,11 +769,11 @@ impl IppAttributeValue { #[cfg(feature = "Foundation_Collections")] pub fn CreateTextWithLanguageArray(values: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::IIppAttributeValueStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateTextWithLanguageArray)(::windows_core::Interface::as_raw(this), values.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateTextWithLanguageArray)(::windows_core::Interface::as_raw(this), values.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn CreateNameWithLanguage(value: P0) -> ::windows_core::Result @@ -961,11 +789,11 @@ impl IppAttributeValue { #[cfg(feature = "Foundation_Collections")] pub fn CreateNameWithLanguageArray(values: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::IIppAttributeValueStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateNameWithLanguageArray)(::windows_core::Interface::as_raw(this), values.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateNameWithLanguageArray)(::windows_core::Interface::as_raw(this), values.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn CreateTextWithoutLanguage(value: &::windows_core::HSTRING) -> ::windows_core::Result { @@ -978,11 +806,11 @@ impl IppAttributeValue { #[cfg(feature = "Foundation_Collections")] pub fn CreateTextWithoutLanguageArray(values: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::IIppAttributeValueStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateTextWithoutLanguageArray)(::windows_core::Interface::as_raw(this), values.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateTextWithoutLanguageArray)(::windows_core::Interface::as_raw(this), values.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn CreateNameWithoutLanguage(value: &::windows_core::HSTRING) -> ::windows_core::Result { @@ -995,11 +823,11 @@ impl IppAttributeValue { #[cfg(feature = "Foundation_Collections")] pub fn CreateNameWithoutLanguageArray(values: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::IIppAttributeValueStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateNameWithoutLanguageArray)(::windows_core::Interface::as_raw(this), values.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateNameWithoutLanguageArray)(::windows_core::Interface::as_raw(this), values.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn CreateKeyword(value: &::windows_core::HSTRING) -> ::windows_core::Result { @@ -1012,11 +840,11 @@ impl IppAttributeValue { #[cfg(feature = "Foundation_Collections")] pub fn CreateKeywordArray(values: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::IIppAttributeValueStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateKeywordArray)(::windows_core::Interface::as_raw(this), values.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateKeywordArray)(::windows_core::Interface::as_raw(this), values.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn CreateUri(value: P0) -> ::windows_core::Result @@ -1032,11 +860,11 @@ impl IppAttributeValue { #[cfg(feature = "Foundation_Collections")] pub fn CreateUriArray(values: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::IIppAttributeValueStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateUriArray)(::windows_core::Interface::as_raw(this), values.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateUriArray)(::windows_core::Interface::as_raw(this), values.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn CreateUriSchema(value: &::windows_core::HSTRING) -> ::windows_core::Result { @@ -1049,11 +877,11 @@ impl IppAttributeValue { #[cfg(feature = "Foundation_Collections")] pub fn CreateUriSchemaArray(values: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::IIppAttributeValueStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateUriSchemaArray)(::windows_core::Interface::as_raw(this), values.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateUriSchemaArray)(::windows_core::Interface::as_raw(this), values.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn CreateCharset(value: &::windows_core::HSTRING) -> ::windows_core::Result { @@ -1066,11 +894,11 @@ impl IppAttributeValue { #[cfg(feature = "Foundation_Collections")] pub fn CreateCharsetArray(values: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::IIppAttributeValueStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateCharsetArray)(::windows_core::Interface::as_raw(this), values.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateCharsetArray)(::windows_core::Interface::as_raw(this), values.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn CreateNaturalLanguage(value: &::windows_core::HSTRING) -> ::windows_core::Result { @@ -1083,11 +911,11 @@ impl IppAttributeValue { #[cfg(feature = "Foundation_Collections")] pub fn CreateNaturalLanguageArray(values: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::IIppAttributeValueStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateNaturalLanguageArray)(::windows_core::Interface::as_raw(this), values.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateNaturalLanguageArray)(::windows_core::Interface::as_raw(this), values.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn CreateMimeMedia(value: &::windows_core::HSTRING) -> ::windows_core::Result { @@ -1100,11 +928,11 @@ impl IppAttributeValue { #[cfg(feature = "Foundation_Collections")] pub fn CreateMimeMediaArray(values: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::IIppAttributeValueStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateMimeMediaArray)(::windows_core::Interface::as_raw(this), values.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateMimeMediaArray)(::windows_core::Interface::as_raw(this), values.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -1118,19 +946,17 @@ impl ::windows_core::RuntimeType for IppAttributeValue { } unsafe impl ::windows_core::Interface for IppAttributeValue { type Vtable = IIppAttributeValue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IppAttributeValue { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for IppAttributeValue { const NAME: &'static str = "Windows.Devices.Printers.IppAttributeValue"; } -::windows_core::imp::interface_hierarchy!(IppAttributeValue, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for IppAttributeValue {} unsafe impl ::core::marker::Sync for IppAttributeValue {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct IppIntegerRange(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(IppIntegerRange, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IppIntegerRange { pub fn Start(&self) -> ::windows_core::Result { let this = self; @@ -1163,19 +989,17 @@ impl ::windows_core::RuntimeType for IppIntegerRange { } unsafe impl ::windows_core::Interface for IppIntegerRange { type Vtable = IIppIntegerRange_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IppIntegerRange { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for IppIntegerRange { const NAME: &'static str = "Windows.Devices.Printers.IppIntegerRange"; } -::windows_core::imp::interface_hierarchy!(IppIntegerRange, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for IppIntegerRange {} unsafe impl ::core::marker::Sync for IppIntegerRange {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct IppPrintDevice(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(IppPrintDevice, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IppPrintDevice { pub fn PrinterName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1195,73 +1019,73 @@ impl IppPrintDevice { #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] pub fn GetPrinterAttributesAsBuffer(&self, attributenames: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).GetPrinterAttributesAsBuffer)(::windows_core::Interface::as_raw(this), attributenames.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).GetPrinterAttributesAsBuffer)(::windows_core::Interface::as_raw(this), attributenames.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetPrinterAttributes(&self, attributenames: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).GetPrinterAttributes)(::windows_core::Interface::as_raw(this), attributenames.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).GetPrinterAttributes)(::windows_core::Interface::as_raw(this), attributenames.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn SetPrinterAttributesFromBuffer(&self, printerattributesbuffer: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).SetPrinterAttributesFromBuffer)(::windows_core::Interface::as_raw(this), printerattributesbuffer.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SetPrinterAttributesFromBuffer)(::windows_core::Interface::as_raw(this), printerattributesbuffer.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn SetPrinterAttributes(&self, printerattributes: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>>, + P0: ::windows_core::IntoParam>>, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).SetPrinterAttributes)(::windows_core::Interface::as_raw(this), printerattributes.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SetPrinterAttributes)(::windows_core::Interface::as_raw(this), printerattributes.into_param().abi(), &mut result__).from_abi(result__) } } pub fn GetMaxSupportedPdfSize(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetMaxSupportedPdfSize)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetMaxSupportedPdfVersion(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetMaxSupportedPdfVersion)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsPdlPassthroughSupported(&self, pdlcontenttype: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsPdlPassthroughSupported)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(pdlcontenttype), &mut result__).from_abi(result__) } } pub fn GetPdlPassthroughProvider(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetPdlPassthroughProvider)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1302,19 +1126,17 @@ impl ::windows_core::RuntimeType for IppPrintDevice { } unsafe impl ::windows_core::Interface for IppPrintDevice { type Vtable = IIppPrintDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IppPrintDevice { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for IppPrintDevice { const NAME: &'static str = "Windows.Devices.Printers.IppPrintDevice"; } -::windows_core::imp::interface_hierarchy!(IppPrintDevice, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for IppPrintDevice {} unsafe impl ::core::marker::Sync for IppPrintDevice {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct IppResolution(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(IppResolution, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IppResolution { pub fn Width(&self) -> ::windows_core::Result { let this = self; @@ -1354,19 +1176,17 @@ impl ::windows_core::RuntimeType for IppResolution { } unsafe impl ::windows_core::Interface for IppResolution { type Vtable = IIppResolution_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IppResolution { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for IppResolution { const NAME: &'static str = "Windows.Devices.Printers.IppResolution"; } -::windows_core::imp::interface_hierarchy!(IppResolution, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for IppResolution {} unsafe impl ::core::marker::Sync for IppResolution {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct IppSetAttributesResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(IppSetAttributesResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IppSetAttributesResult { pub fn Succeeded(&self) -> ::windows_core::Result { let this = self; @@ -1390,19 +1210,17 @@ impl ::windows_core::RuntimeType for IppSetAttributesResult { } unsafe impl ::windows_core::Interface for IppSetAttributesResult { type Vtable = IIppSetAttributesResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IppSetAttributesResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for IppSetAttributesResult { const NAME: &'static str = "Windows.Devices.Printers.IppSetAttributesResult"; } -::windows_core::imp::interface_hierarchy!(IppSetAttributesResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for IppSetAttributesResult {} unsafe impl ::core::marker::Sync for IppSetAttributesResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct IppTextWithLanguage(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(IppTextWithLanguage, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IppTextWithLanguage { pub fn Language(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1435,19 +1253,17 @@ impl ::windows_core::RuntimeType for IppTextWithLanguage { } unsafe impl ::windows_core::Interface for IppTextWithLanguage { type Vtable = IIppTextWithLanguage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IppTextWithLanguage { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for IppTextWithLanguage { const NAME: &'static str = "Windows.Devices.Printers.IppTextWithLanguage"; } -::windows_core::imp::interface_hierarchy!(IppTextWithLanguage, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for IppTextWithLanguage {} unsafe impl ::core::marker::Sync for IppTextWithLanguage {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PageConfigurationSettings(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PageConfigurationSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PageConfigurationSettings { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1484,19 +1300,17 @@ impl ::windows_core::RuntimeType for PageConfigurationSettings { } unsafe impl ::windows_core::Interface for PageConfigurationSettings { type Vtable = IPageConfigurationSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PageConfigurationSettings { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PageConfigurationSettings { const NAME: &'static str = "Windows.Devices.Printers.PageConfigurationSettings"; } -::windows_core::imp::interface_hierarchy!(PageConfigurationSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PageConfigurationSettings {} unsafe impl ::core::marker::Sync for PageConfigurationSettings {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PdlPassthroughProvider(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PdlPassthroughProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PdlPassthroughProvider { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -1524,13 +1338,13 @@ impl PdlPassthroughProvider { #[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::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), pageconfigurationsettings.into_param().abi(), &mut result__).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.into_param().abi(), pageconfigurationsettings.into_param().abi(), &mut result__).from_abi(result__) } } } @@ -1539,22 +1353,21 @@ impl ::windows_core::RuntimeType for PdlPassthroughProvider { } unsafe impl ::windows_core::Interface for PdlPassthroughProvider { type Vtable = IPdlPassthroughProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PdlPassthroughProvider { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PdlPassthroughProvider { const NAME: &'static str = "Windows.Devices.Printers.PdlPassthroughProvider"; } -::windows_core::imp::interface_hierarchy!(PdlPassthroughProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PdlPassthroughProvider {} unsafe impl ::core::marker::Sync for PdlPassthroughProvider {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PdlPassthroughTarget(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PdlPassthroughTarget, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(PdlPassthroughTarget, super::super::Foundation::IClosable); impl PdlPassthroughTarget { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn PrintJobId(&self) -> ::windows_core::Result { @@ -1583,20 +1396,17 @@ impl ::windows_core::RuntimeType for PdlPassthroughTarget { } unsafe impl ::windows_core::Interface for PdlPassthroughTarget { type Vtable = IPdlPassthroughTarget_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PdlPassthroughTarget { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PdlPassthroughTarget { const NAME: &'static str = "Windows.Devices.Printers.PdlPassthroughTarget"; } -::windows_core::imp::interface_hierarchy!(PdlPassthroughTarget, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for PdlPassthroughTarget {} unsafe impl ::core::marker::Send for PdlPassthroughTarget {} unsafe impl ::core::marker::Sync for PdlPassthroughTarget {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Print3DDevice(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Print3DDevice, ::windows_core::IUnknown, ::windows_core::IInspectable); impl Print3DDevice { pub fn PrintSchema(&self) -> ::windows_core::Result { let this = self; @@ -1628,19 +1438,17 @@ impl ::windows_core::RuntimeType for Print3DDevice { } unsafe impl ::windows_core::Interface for Print3DDevice { type Vtable = IPrint3DDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Print3DDevice { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Print3DDevice { const NAME: &'static str = "Windows.Devices.Printers.Print3DDevice"; } -::windows_core::imp::interface_hierarchy!(Print3DDevice, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for Print3DDevice {} unsafe impl ::core::marker::Sync for Print3DDevice {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintSchema(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintSchema, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PrintSchema { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] @@ -1655,24 +1463,24 @@ impl PrintSchema { #[cfg(feature = "Storage_Streams")] pub fn GetCapabilitiesAsync(&self, constrainticket: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).GetCapabilitiesAsync)(::windows_core::Interface::as_raw(this), constrainticket.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).GetCapabilitiesAsync)(::windows_core::Interface::as_raw(this), constrainticket.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn MergeAndValidateWithDefaultPrintTicketAsync(&self, deltaticket: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).MergeAndValidateWithDefaultPrintTicketAsync)(::windows_core::Interface::as_raw(this), deltaticket.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).MergeAndValidateWithDefaultPrintTicketAsync)(::windows_core::Interface::as_raw(this), deltaticket.into_param().abi(), &mut result__).from_abi(result__) } } } @@ -1681,14 +1489,11 @@ impl ::windows_core::RuntimeType for PrintSchema { } unsafe impl ::windows_core::Interface for PrintSchema { type Vtable = IPrintSchema_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintSchema { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintSchema { const NAME: &'static str = "Windows.Devices.Printers.PrintSchema"; } -::windows_core::imp::interface_hierarchy!(PrintSchema, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PrintSchema {} unsafe impl ::core::marker::Sync for PrintSchema {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Devices/Pwm/Provider/impl.rs b/crates/libs/windows/src/Windows/Devices/Pwm/Provider/impl.rs index 9adcad0462..bbf70e9d73 100644 --- a/crates/libs/windows/src/Windows/Devices/Pwm/Provider/impl.rs +++ b/crates/libs/windows/src/Windows/Devices/Pwm/Provider/impl.rs @@ -110,7 +110,7 @@ impl IPwmControllerProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -140,6 +140,6 @@ impl IPwmProvider_Vtbl { Self { base__: ::windows_core::IInspectable_Vtbl::new::(), GetControllers: GetControllers:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/Devices/Pwm/Provider/mod.rs b/crates/libs/windows/src/Windows/Devices/Pwm/Provider/mod.rs index 46875e6514..dfbf509749 100644 --- a/crates/libs/windows/src/Windows/Devices/Pwm/Provider/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Pwm/Provider/mod.rs @@ -1,6 +1,5 @@ -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPwmControllerProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPwmControllerProvider, IPwmControllerProvider_Vtbl, 0x1300593b_e2e3_40a4_b7d9_48dff0377a52); +::windows_core::imp::interface_hierarchy!(IPwmControllerProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IPwmControllerProvider { pub fn PinCount(&self) -> ::windows_core::Result { let this = self; @@ -58,16 +57,9 @@ impl IPwmControllerProvider { unsafe { (::windows_core::Interface::vtable(this).SetPulseParameters)(::windows_core::Interface::as_raw(this), pin, dutycycle, invertpolarity).ok() } } } -::windows_core::imp::interface_hierarchy!(IPwmControllerProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IPwmControllerProvider { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IPwmControllerProvider { - type Vtable = IPwmControllerProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPwmControllerProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1300593b_e2e3_40a4_b7d9_48dff0377a52); -} #[repr(C)] #[doc(hidden)] pub struct IPwmControllerProvider_Vtbl { @@ -83,9 +75,8 @@ pub struct IPwmControllerProvider_Vtbl { pub DisablePin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pin: i32) -> ::windows_core::HRESULT, pub SetPulseParameters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pin: i32, dutycycle: f64, invertpolarity: bool) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPwmProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPwmProvider, IPwmProvider_Vtbl, 0xa3301228_52f1_47b0_9349_66ba43d25902); +::windows_core::imp::interface_hierarchy!(IPwmProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IPwmProvider { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -97,16 +88,9 @@ impl IPwmProvider { } } } -::windows_core::imp::interface_hierarchy!(IPwmProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IPwmProvider { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IPwmProvider { - type Vtable = IPwmProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPwmProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa3301228_52f1_47b0_9349_66ba43d25902); -} #[repr(C)] #[doc(hidden)] pub struct IPwmProvider_Vtbl { diff --git a/crates/libs/windows/src/Windows/Devices/Pwm/mod.rs b/crates/libs/windows/src/Windows/Devices/Pwm/mod.rs index e3477e0ea1..b846c86306 100644 --- a/crates/libs/windows/src/Windows/Devices/Pwm/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Pwm/mod.rs @@ -1,16 +1,7 @@ #[cfg(feature = "Devices_Pwm_Provider")] #[doc = "Required features: `\"Devices_Pwm_Provider\"`"] pub mod Provider; -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPwmController(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPwmController { - type Vtable = IPwmController_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPwmController { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc45f5c85_d2e8_42cf_9bd6_cf5ed029e6a7); -} +::windows_core::imp::com_interface!(IPwmController, IPwmController_Vtbl, 0xc45f5c85_d2e8_42cf_9bd6_cf5ed029e6a7); #[repr(C)] #[doc(hidden)] pub struct IPwmController_Vtbl { @@ -22,16 +13,7 @@ pub struct IPwmController_Vtbl { pub MaxFrequency: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows_core::HRESULT, pub OpenPin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinnumber: i32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPwmControllerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPwmControllerStatics { - type Vtable = IPwmControllerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPwmControllerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4263bda1_8946_4404_bd48_81dd124af4d9); -} +::windows_core::imp::com_interface!(IPwmControllerStatics, IPwmControllerStatics_Vtbl, 0x4263bda1_8946_4404_bd48_81dd124af4d9); #[repr(C)] #[doc(hidden)] pub struct IPwmControllerStatics_Vtbl { @@ -41,32 +23,14 @@ pub struct IPwmControllerStatics_Vtbl { #[cfg(not(all(feature = "Devices_Pwm_Provider", feature = "Foundation_Collections")))] GetControllersAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPwmControllerStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPwmControllerStatics2 { - type Vtable = IPwmControllerStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPwmControllerStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x44fc5b1f_f119_4bdd_97ad_f76ef986736d); -} +::windows_core::imp::com_interface!(IPwmControllerStatics2, IPwmControllerStatics2_Vtbl, 0x44fc5b1f_f119_4bdd_97ad_f76ef986736d); #[repr(C)] #[doc(hidden)] pub struct IPwmControllerStatics2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetDefaultAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPwmControllerStatics3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPwmControllerStatics3 { - type Vtable = IPwmControllerStatics3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPwmControllerStatics3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb2581871_0229_4344_ae3f_9b7cd0e66b94); -} +::windows_core::imp::com_interface!(IPwmControllerStatics3, IPwmControllerStatics3_Vtbl, 0xb2581871_0229_4344_ae3f_9b7cd0e66b94); #[repr(C)] #[doc(hidden)] pub struct IPwmControllerStatics3_Vtbl { @@ -75,16 +39,7 @@ pub struct IPwmControllerStatics3_Vtbl { pub GetDeviceSelectorFromFriendlyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, friendlyname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub FromIdAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, deviceid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPwmPin(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPwmPin { - type Vtable = IPwmPin_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPwmPin { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x22972dc8_c6cf_4821_b7f9_c6454fb6af79); -} +::windows_core::imp::com_interface!(IPwmPin, IPwmPin_Vtbl, 0x22972dc8_c6cf_4821_b7f9_c6454fb6af79); #[repr(C)] #[doc(hidden)] pub struct IPwmPin_Vtbl { @@ -101,6 +56,7 @@ pub struct IPwmPin_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PwmController(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PwmController, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PwmController { pub fn PinCount(&self) -> ::windows_core::Result { let this = self; @@ -148,11 +104,11 @@ impl PwmController { #[cfg(all(feature = "Devices_Pwm_Provider", feature = "Foundation_Collections"))] pub fn GetControllersAsync(provider: P0) -> ::windows_core::Result>> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IPwmControllerStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).GetControllersAsync)(::windows_core::Interface::as_raw(this), provider.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).GetControllersAsync)(::windows_core::Interface::as_raw(this), provider.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn GetDefaultAsync() -> ::windows_core::Result> { @@ -200,22 +156,21 @@ impl ::windows_core::RuntimeType for PwmController { } unsafe impl ::windows_core::Interface for PwmController { type Vtable = IPwmController_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PwmController { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PwmController { const NAME: &'static str = "Windows.Devices.Pwm.PwmController"; } -::windows_core::imp::interface_hierarchy!(PwmController, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PwmController {} unsafe impl ::core::marker::Sync for PwmController {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PwmPin(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PwmPin, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(PwmPin, super::super::Foundation::IClosable); impl PwmPin { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Controller(&self) -> ::windows_core::Result { @@ -268,15 +223,11 @@ impl ::windows_core::RuntimeType for PwmPin { } unsafe impl ::windows_core::Interface for PwmPin { type Vtable = IPwmPin_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PwmPin { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PwmPin { const NAME: &'static str = "Windows.Devices.Pwm.PwmPin"; } -::windows_core::imp::interface_hierarchy!(PwmPin, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for PwmPin {} unsafe impl ::core::marker::Send for PwmPin {} unsafe impl ::core::marker::Sync for PwmPin {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Devices/Radios/mod.rs b/crates/libs/windows/src/Windows/Devices/Radios/mod.rs index 2fb4d6b480..c500fdefbb 100644 --- a/crates/libs/windows/src/Windows/Devices/Radios/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Radios/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRadio(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRadio { - type Vtable = IRadio_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRadio { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x252118df_b33e_416a_875f_1cf38ae2d83e); -} +::windows_core::imp::com_interface!(IRadio, IRadio_Vtbl, 0x252118df_b33e_416a_875f_1cf38ae2d83e); #[repr(C)] #[doc(hidden)] pub struct IRadio_Vtbl { @@ -19,16 +10,7 @@ pub struct IRadio_Vtbl { pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Kind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut RadioKind) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRadioStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRadioStatics { - type Vtable = IRadioStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRadioStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5fb6a12e_67cb_46ae_aae9_65919f86eff4); -} +::windows_core::imp::com_interface!(IRadioStatics, IRadioStatics_Vtbl, 0x5fb6a12e_67cb_46ae_aae9_65919f86eff4); #[repr(C)] #[doc(hidden)] pub struct IRadioStatics_Vtbl { @@ -44,6 +26,7 @@ pub struct IRadioStatics_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Radio(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Radio, ::windows_core::IUnknown, ::windows_core::IInspectable); impl Radio { pub fn SetStateAsync(&self, value: RadioState) -> ::windows_core::Result> { let this = self; @@ -124,14 +107,11 @@ impl ::windows_core::RuntimeType for Radio { } unsafe impl ::windows_core::Interface for Radio { type Vtable = IRadio_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Radio { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Radio { const NAME: &'static str = "Windows.Devices.Radios.Radio"; } -::windows_core::imp::interface_hierarchy!(Radio, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for Radio {} unsafe impl ::core::marker::Sync for Radio {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Devices/Scanners/impl.rs b/crates/libs/windows/src/Windows/Devices/Scanners/impl.rs index dd6c53b7a3..6aa47328ae 100644 --- a/crates/libs/windows/src/Windows/Devices/Scanners/impl.rs +++ b/crates/libs/windows/src/Windows/Devices/Scanners/impl.rs @@ -56,7 +56,7 @@ impl IImageScannerFormatConfiguration_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IImageScannerSourceConfiguration_Impl: Sized + IImageScannerFormatConfiguration_Impl { @@ -412,6 +412,6 @@ impl IImageScannerSourceConfiguration_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/Devices/Scanners/mod.rs b/crates/libs/windows/src/Windows/Devices/Scanners/mod.rs index 3306d73018..8f3299b6c7 100644 --- a/crates/libs/windows/src/Windows/Devices/Scanners/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Scanners/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IImageScanner(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IImageScanner { - type Vtable = IImageScanner_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IImageScanner { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x53a88f78_5298_48a0_8da3_8087519665e0); -} +::windows_core::imp::com_interface!(IImageScanner, IImageScanner_Vtbl, 0x53a88f78_5298_48a0_8da3_8087519665e0); #[repr(C)] #[doc(hidden)] pub struct IImageScanner_Vtbl { @@ -28,16 +19,7 @@ pub struct IImageScanner_Vtbl { #[cfg(not(feature = "Storage"))] ScanFilesToFolderAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IImageScannerFeederConfiguration(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IImageScannerFeederConfiguration { - type Vtable = IImageScannerFeederConfiguration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IImageScannerFeederConfiguration { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x74bdacee_fa97_4c17_8280_40e39c6dcc67); -} +::windows_core::imp::com_interface!(IImageScannerFeederConfiguration, IImageScannerFeederConfiguration_Vtbl, 0x74bdacee_fa97_4c17_8280_40e39c6dcc67); #[repr(C)] #[doc(hidden)] pub struct IImageScannerFeederConfiguration_Vtbl { @@ -75,9 +57,8 @@ pub struct IImageScannerFeederConfiguration_Vtbl { pub ScanAhead: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetScanAhead: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IImageScannerFormatConfiguration(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IImageScannerFormatConfiguration, IImageScannerFormatConfiguration_Vtbl, 0xae275d11_dadf_4010_bf10_cca5c83dcbb0); +::windows_core::imp::interface_hierarchy!(IImageScannerFormatConfiguration, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IImageScannerFormatConfiguration { pub fn DefaultFormat(&self) -> ::windows_core::Result { let this = self; @@ -105,16 +86,9 @@ impl IImageScannerFormatConfiguration { } } } -::windows_core::imp::interface_hierarchy!(IImageScannerFormatConfiguration, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IImageScannerFormatConfiguration { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IImageScannerFormatConfiguration { - type Vtable = IImageScannerFormatConfiguration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IImageScannerFormatConfiguration { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xae275d11_dadf_4010_bf10_cca5c83dcbb0); -} #[repr(C)] #[doc(hidden)] pub struct IImageScannerFormatConfiguration_Vtbl { @@ -124,16 +98,7 @@ pub struct IImageScannerFormatConfiguration_Vtbl { pub SetFormat: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ImageScannerFormat) -> ::windows_core::HRESULT, pub IsFormatSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ImageScannerFormat, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IImageScannerPreviewResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IImageScannerPreviewResult { - type Vtable = IImageScannerPreviewResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IImageScannerPreviewResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x08b7fe8e_8891_441d_be9c_176fa109c8bb); -} +::windows_core::imp::com_interface!(IImageScannerPreviewResult, IImageScannerPreviewResult_Vtbl, 0x08b7fe8e_8891_441d_be9c_176fa109c8bb); #[repr(C)] #[doc(hidden)] pub struct IImageScannerPreviewResult_Vtbl { @@ -141,16 +106,7 @@ pub struct IImageScannerPreviewResult_Vtbl { pub Succeeded: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub Format: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ImageScannerFormat) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IImageScannerScanResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IImageScannerScanResult { - type Vtable = IImageScannerScanResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IImageScannerScanResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc91624cd_9037_4e48_84c1_ac0975076bc5); -} +::windows_core::imp::com_interface!(IImageScannerScanResult, IImageScannerScanResult_Vtbl, 0xc91624cd_9037_4e48_84c1_ac0975076bc5); #[repr(C)] #[doc(hidden)] pub struct IImageScannerScanResult_Vtbl { @@ -160,9 +116,9 @@ pub struct IImageScannerScanResult_Vtbl { #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage")))] ScannedFiles: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IImageScannerSourceConfiguration(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IImageScannerSourceConfiguration, IImageScannerSourceConfiguration_Vtbl, 0xbfb50055_0b44_4c82_9e89_205f9c234e59); +::windows_core::imp::interface_hierarchy!(IImageScannerSourceConfiguration, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IImageScannerSourceConfiguration, IImageScannerFormatConfiguration); impl IImageScannerSourceConfiguration { pub fn MinScanArea(&self) -> ::windows_core::Result { let this = self; @@ -350,42 +306,34 @@ impl IImageScannerSourceConfiguration { unsafe { (::windows_core::Interface::vtable(this).SetContrast)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn DefaultFormat(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DefaultFormat)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Format(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Format)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetFormat(&self, value: ImageScannerFormat) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetFormat)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsFormatSupported(&self, value: ImageScannerFormat) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsFormatSupported)(::windows_core::Interface::as_raw(this), value, &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(IImageScannerSourceConfiguration, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IImageScannerSourceConfiguration {} impl ::windows_core::RuntimeType for IImageScannerSourceConfiguration { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IImageScannerSourceConfiguration { - type Vtable = IImageScannerSourceConfiguration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IImageScannerSourceConfiguration { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbfb50055_0b44_4c82_9e89_205f9c234e59); -} #[repr(C)] #[doc(hidden)] pub struct IImageScannerSourceConfiguration_Vtbl { @@ -420,16 +368,7 @@ pub struct IImageScannerSourceConfiguration_Vtbl { pub Contrast: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows_core::HRESULT, pub SetContrast: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IImageScannerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IImageScannerStatics { - type Vtable = IImageScannerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IImageScannerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbc57e70e_d804_4477_9fb5_b911b5473897); -} +::windows_core::imp::com_interface!(IImageScannerStatics, IImageScannerStatics_Vtbl, 0xbc57e70e_d804_4477_9fb5_b911b5473897); #[repr(C)] #[doc(hidden)] pub struct IImageScannerStatics_Vtbl { @@ -440,6 +379,7 @@ pub struct IImageScannerStatics_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ImageScanner(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ImageScanner, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ImageScanner { pub fn DeviceId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -494,12 +434,12 @@ impl ImageScanner { #[cfg(feature = "Storage_Streams")] pub fn ScanPreviewToStreamAsync(&self, scansource: ImageScannerScanSource, targetstream: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).ScanPreviewToStreamAsync)(::windows_core::Interface::as_raw(this), scansource, targetstream.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ScanPreviewToStreamAsync)(::windows_core::Interface::as_raw(this), scansource, targetstream.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Storage\"`"] @@ -537,19 +477,18 @@ impl ::windows_core::RuntimeType for ImageScanner { } unsafe impl ::windows_core::Interface for ImageScanner { type Vtable = IImageScanner_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ImageScanner { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ImageScanner { const NAME: &'static str = "Windows.Devices.Scanners.ImageScanner"; } -::windows_core::imp::interface_hierarchy!(ImageScanner, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ImageScanner {} unsafe impl ::core::marker::Sync for ImageScanner {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ImageScannerAutoConfiguration(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ImageScannerAutoConfiguration, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ImageScannerAutoConfiguration, IImageScannerFormatConfiguration); impl ImageScannerAutoConfiguration { pub fn DefaultFormat(&self) -> ::windows_core::Result { let this = self; @@ -582,43 +521,41 @@ impl ::windows_core::RuntimeType for ImageScannerAutoConfiguration { } unsafe impl ::windows_core::Interface for ImageScannerAutoConfiguration { type Vtable = IImageScannerFormatConfiguration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ImageScannerAutoConfiguration { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ImageScannerAutoConfiguration { const NAME: &'static str = "Windows.Devices.Scanners.ImageScannerAutoConfiguration"; } -::windows_core::imp::interface_hierarchy!(ImageScannerAutoConfiguration, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ImageScannerAutoConfiguration {} unsafe impl ::core::marker::Send for ImageScannerAutoConfiguration {} unsafe impl ::core::marker::Sync for ImageScannerAutoConfiguration {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ImageScannerFeederConfiguration(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ImageScannerFeederConfiguration, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ImageScannerFeederConfiguration, IImageScannerFormatConfiguration, IImageScannerSourceConfiguration); impl ImageScannerFeederConfiguration { pub fn CanAutoDetectPageSize(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CanAutoDetectPageSize)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn AutoDetectPageSize(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AutoDetectPageSize)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetAutoDetectPageSize(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetAutoDetectPageSize)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Graphics_Printing\"`"] #[cfg(feature = "Graphics_Printing")] pub fn PageSize(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PageSize)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -627,13 +564,13 @@ impl ImageScannerFeederConfiguration { #[doc = "Required features: `\"Graphics_Printing\"`"] #[cfg(feature = "Graphics_Printing")] pub fn SetPageSize(&self, value: super::super::Graphics::Printing::PrintMediaSize) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetPageSize)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Graphics_Printing\"`"] #[cfg(feature = "Graphics_Printing")] pub fn PageOrientation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PageOrientation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -642,11 +579,11 @@ impl ImageScannerFeederConfiguration { #[doc = "Required features: `\"Graphics_Printing\"`"] #[cfg(feature = "Graphics_Printing")] pub fn SetPageOrientation(&self, value: super::super::Graphics::Printing::PrintOrientation) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetPageOrientation)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn PageSizeDimensions(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PageSizeDimensions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -655,57 +592,57 @@ impl ImageScannerFeederConfiguration { #[doc = "Required features: `\"Graphics_Printing\"`"] #[cfg(feature = "Graphics_Printing")] pub fn IsPageSizeSupported(&self, pagesize: super::super::Graphics::Printing::PrintMediaSize, pageorientation: super::super::Graphics::Printing::PrintOrientation) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsPageSizeSupported)(::windows_core::Interface::as_raw(this), pagesize, pageorientation, &mut result__).from_abi(result__) } } pub fn MaxNumberOfPages(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MaxNumberOfPages)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetMaxNumberOfPages(&self, value: u32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMaxNumberOfPages)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn CanScanDuplex(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CanScanDuplex)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Duplex(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Duplex)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDuplex(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDuplex)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn CanScanAhead(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CanScanAhead)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ScanAhead(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ScanAhead)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetScanAhead(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetScanAhead)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn DefaultFormat(&self) -> ::windows_core::Result { @@ -734,188 +671,188 @@ impl ImageScannerFeederConfiguration { } } pub fn MinScanArea(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MinScanArea)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn MaxScanArea(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MaxScanArea)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SelectedScanRegion(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SelectedScanRegion)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetSelectedScanRegion(&self, value: super::super::Foundation::Rect) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetSelectedScanRegion)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn AutoCroppingMode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AutoCroppingMode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetAutoCroppingMode(&self, value: ImageScannerAutoCroppingMode) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetAutoCroppingMode)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsAutoCroppingModeSupported(&self, value: ImageScannerAutoCroppingMode) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsAutoCroppingModeSupported)(::windows_core::Interface::as_raw(this), value, &mut result__).from_abi(result__) } } pub fn MinResolution(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MinResolution)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn MaxResolution(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MaxResolution)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn OpticalResolution(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OpticalResolution)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn DesiredResolution(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DesiredResolution)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDesiredResolution(&self, value: ImageScannerResolution) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDesiredResolution)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn ActualResolution(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ActualResolution)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn DefaultColorMode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DefaultColorMode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ColorMode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ColorMode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetColorMode(&self, value: ImageScannerColorMode) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetColorMode)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsColorModeSupported(&self, value: ImageScannerColorMode) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsColorModeSupported)(::windows_core::Interface::as_raw(this), value, &mut result__).from_abi(result__) } } pub fn MinBrightness(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MinBrightness)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn MaxBrightness(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MaxBrightness)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn BrightnessStep(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).BrightnessStep)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn DefaultBrightness(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DefaultBrightness)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Brightness(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Brightness)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetBrightness(&self, value: i32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetBrightness)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn MinContrast(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MinContrast)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn MaxContrast(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MaxContrast)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ContrastStep(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ContrastStep)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn DefaultContrast(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DefaultContrast)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Contrast(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Contrast)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetContrast(&self, value: i32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetContrast)(::windows_core::Interface::as_raw(this), value).ok() } } } @@ -924,21 +861,18 @@ impl ::windows_core::RuntimeType for ImageScannerFeederConfiguration { } unsafe impl ::windows_core::Interface for ImageScannerFeederConfiguration { type Vtable = IImageScannerFormatConfiguration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ImageScannerFeederConfiguration { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ImageScannerFeederConfiguration { const NAME: &'static str = "Windows.Devices.Scanners.ImageScannerFeederConfiguration"; } -::windows_core::imp::interface_hierarchy!(ImageScannerFeederConfiguration, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ImageScannerFeederConfiguration {} -impl ::windows_core::CanTryInto for ImageScannerFeederConfiguration {} unsafe impl ::core::marker::Send for ImageScannerFeederConfiguration {} unsafe impl ::core::marker::Sync for ImageScannerFeederConfiguration {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ImageScannerFlatbedConfiguration(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ImageScannerFlatbedConfiguration, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ImageScannerFlatbedConfiguration, IImageScannerFormatConfiguration, IImageScannerSourceConfiguration); impl ImageScannerFlatbedConfiguration { pub fn DefaultFormat(&self) -> ::windows_core::Result { let this = self; @@ -966,188 +900,188 @@ impl ImageScannerFlatbedConfiguration { } } pub fn MinScanArea(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MinScanArea)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn MaxScanArea(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MaxScanArea)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SelectedScanRegion(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SelectedScanRegion)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetSelectedScanRegion(&self, value: super::super::Foundation::Rect) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetSelectedScanRegion)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn AutoCroppingMode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AutoCroppingMode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetAutoCroppingMode(&self, value: ImageScannerAutoCroppingMode) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetAutoCroppingMode)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsAutoCroppingModeSupported(&self, value: ImageScannerAutoCroppingMode) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsAutoCroppingModeSupported)(::windows_core::Interface::as_raw(this), value, &mut result__).from_abi(result__) } } pub fn MinResolution(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MinResolution)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn MaxResolution(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MaxResolution)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn OpticalResolution(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OpticalResolution)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn DesiredResolution(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DesiredResolution)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDesiredResolution(&self, value: ImageScannerResolution) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDesiredResolution)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn ActualResolution(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ActualResolution)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn DefaultColorMode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DefaultColorMode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ColorMode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ColorMode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetColorMode(&self, value: ImageScannerColorMode) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetColorMode)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsColorModeSupported(&self, value: ImageScannerColorMode) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsColorModeSupported)(::windows_core::Interface::as_raw(this), value, &mut result__).from_abi(result__) } } pub fn MinBrightness(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MinBrightness)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn MaxBrightness(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MaxBrightness)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn BrightnessStep(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).BrightnessStep)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn DefaultBrightness(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DefaultBrightness)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Brightness(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Brightness)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetBrightness(&self, value: i32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetBrightness)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn MinContrast(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MinContrast)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn MaxContrast(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MaxContrast)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ContrastStep(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ContrastStep)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn DefaultContrast(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DefaultContrast)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Contrast(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Contrast)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetContrast(&self, value: i32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetContrast)(::windows_core::Interface::as_raw(this), value).ok() } } } @@ -1156,21 +1090,17 @@ impl ::windows_core::RuntimeType for ImageScannerFlatbedConfiguration { } unsafe impl ::windows_core::Interface for ImageScannerFlatbedConfiguration { type Vtable = IImageScannerFormatConfiguration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ImageScannerFlatbedConfiguration { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ImageScannerFlatbedConfiguration { const NAME: &'static str = "Windows.Devices.Scanners.ImageScannerFlatbedConfiguration"; } -::windows_core::imp::interface_hierarchy!(ImageScannerFlatbedConfiguration, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ImageScannerFlatbedConfiguration {} -impl ::windows_core::CanTryInto for ImageScannerFlatbedConfiguration {} unsafe impl ::core::marker::Send for ImageScannerFlatbedConfiguration {} unsafe impl ::core::marker::Sync for ImageScannerFlatbedConfiguration {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ImageScannerPreviewResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ImageScannerPreviewResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ImageScannerPreviewResult { pub fn Succeeded(&self) -> ::windows_core::Result { let this = self; @@ -1192,19 +1122,17 @@ impl ::windows_core::RuntimeType for ImageScannerPreviewResult { } unsafe impl ::windows_core::Interface for ImageScannerPreviewResult { type Vtable = IImageScannerPreviewResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ImageScannerPreviewResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ImageScannerPreviewResult { const NAME: &'static str = "Windows.Devices.Scanners.ImageScannerPreviewResult"; } -::windows_core::imp::interface_hierarchy!(ImageScannerPreviewResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ImageScannerPreviewResult {} unsafe impl ::core::marker::Sync for ImageScannerPreviewResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ImageScannerScanResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ImageScannerScanResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ImageScannerScanResult { #[doc = "Required features: `\"Foundation_Collections\"`, `\"Storage\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Storage"))] @@ -1221,14 +1149,11 @@ impl ::windows_core::RuntimeType for ImageScannerScanResult { } unsafe impl ::windows_core::Interface for ImageScannerScanResult { type Vtable = IImageScannerScanResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ImageScannerScanResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ImageScannerScanResult { const NAME: &'static str = "Windows.Devices.Scanners.ImageScannerScanResult"; } -::windows_core::imp::interface_hierarchy!(ImageScannerScanResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ImageScannerScanResult {} unsafe impl ::core::marker::Sync for ImageScannerScanResult {} #[repr(transparent)] 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 d7670008e8..ebe1435b9d 100644 --- a/crates/libs/windows/src/Windows/Devices/Sensors/Custom/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Sensors/Custom/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICustomSensor(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICustomSensor { - type Vtable = ICustomSensor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICustomSensor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa136f9ad_4034_4b4d_99dd_531aac649c09); -} +::windows_core::imp::com_interface!(ICustomSensor, ICustomSensor_Vtbl, 0xa136f9ad_4034_4b4d_99dd_531aac649c09); #[repr(C)] #[doc(hidden)] pub struct ICustomSensor_Vtbl { @@ -20,16 +11,7 @@ pub struct ICustomSensor_Vtbl { pub ReadingChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveReadingChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICustomSensor2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICustomSensor2 { - type Vtable = ICustomSensor2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICustomSensor2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x20db3111_ec58_4d9f_bfbd_e77825088510); -} +::windows_core::imp::com_interface!(ICustomSensor2, ICustomSensor2_Vtbl, 0x20db3111_ec58_4d9f_bfbd_e77825088510); #[repr(C)] #[doc(hidden)] pub struct ICustomSensor2_Vtbl { @@ -38,16 +20,7 @@ pub struct ICustomSensor2_Vtbl { pub ReportLatency: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, pub MaxBatchSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICustomSensorReading(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICustomSensorReading { - type Vtable = ICustomSensorReading_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICustomSensorReading { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x64004f4d_446a_4366_a87a_5f963268ec53); -} +::windows_core::imp::com_interface!(ICustomSensorReading, ICustomSensorReading_Vtbl, 0x64004f4d_446a_4366_a87a_5f963268ec53); #[repr(C)] #[doc(hidden)] pub struct ICustomSensorReading_Vtbl { @@ -58,48 +31,21 @@ pub struct ICustomSensorReading_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Properties: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICustomSensorReading2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICustomSensorReading2 { - type Vtable = ICustomSensorReading2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICustomSensorReading2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x223c98ea_bf73_4992_9a48_d3c897594ccb); -} +::windows_core::imp::com_interface!(ICustomSensorReading2, ICustomSensorReading2_Vtbl, 0x223c98ea_bf73_4992_9a48_d3c897594ccb); #[repr(C)] #[doc(hidden)] pub struct ICustomSensorReading2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub PerformanceCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICustomSensorReadingChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICustomSensorReadingChangedEventArgs { - type Vtable = ICustomSensorReadingChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICustomSensorReadingChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6b202023_cffd_4cc1_8ff0_e21823d76fcc); -} +::windows_core::imp::com_interface!(ICustomSensorReadingChangedEventArgs, ICustomSensorReadingChangedEventArgs_Vtbl, 0x6b202023_cffd_4cc1_8ff0_e21823d76fcc); #[repr(C)] #[doc(hidden)] pub struct ICustomSensorReadingChangedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Reading: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICustomSensorStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICustomSensorStatics { - type Vtable = ICustomSensorStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICustomSensorStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x992052cf_f422_4c7d_836b_e7dc74a7124b); -} +::windows_core::imp::com_interface!(ICustomSensorStatics, ICustomSensorStatics_Vtbl, 0x992052cf_f422_4c7d_836b_e7dc74a7124b); #[repr(C)] #[doc(hidden)] pub struct ICustomSensorStatics_Vtbl { @@ -110,6 +56,7 @@ pub struct ICustomSensorStatics_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CustomSensor(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CustomSensor, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CustomSensor { pub fn GetCurrentReading(&self) -> ::windows_core::Result { let this = self; @@ -158,18 +105,18 @@ impl CustomSensor { unsafe { (::windows_core::Interface::vtable(this).RemoveReadingChanged)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn SetReportLatency(&self, value: u32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetReportLatency)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn ReportLatency(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ReportLatency)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn MaxBatchSize(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MaxBatchSize)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -198,19 +145,17 @@ impl ::windows_core::RuntimeType for CustomSensor { } unsafe impl ::windows_core::Interface for CustomSensor { type Vtable = ICustomSensor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CustomSensor { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CustomSensor { const NAME: &'static str = "Windows.Devices.Sensors.Custom.CustomSensor"; } -::windows_core::imp::interface_hierarchy!(CustomSensor, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CustomSensor {} unsafe impl ::core::marker::Sync for CustomSensor {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CustomSensorReading(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CustomSensorReading, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CustomSensorReading { pub fn Timestamp(&self) -> ::windows_core::Result { let this = self; @@ -229,7 +174,7 @@ impl CustomSensorReading { } } pub fn PerformanceCount(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PerformanceCount)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -241,19 +186,17 @@ impl ::windows_core::RuntimeType for CustomSensorReading { } unsafe impl ::windows_core::Interface for CustomSensorReading { type Vtable = ICustomSensorReading_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CustomSensorReading { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CustomSensorReading { const NAME: &'static str = "Windows.Devices.Sensors.Custom.CustomSensorReading"; } -::windows_core::imp::interface_hierarchy!(CustomSensorReading, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CustomSensorReading {} unsafe impl ::core::marker::Sync for CustomSensorReading {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CustomSensorReadingChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CustomSensorReadingChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CustomSensorReadingChangedEventArgs { pub fn Reading(&self) -> ::windows_core::Result { let this = self; @@ -268,13 +211,10 @@ impl ::windows_core::RuntimeType for CustomSensorReadingChangedEventArgs { } unsafe impl ::windows_core::Interface for CustomSensorReadingChangedEventArgs { type Vtable = ICustomSensorReadingChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CustomSensorReadingChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CustomSensorReadingChangedEventArgs { const NAME: &'static str = "Windows.Devices.Sensors.Custom.CustomSensorReadingChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(CustomSensorReadingChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CustomSensorReadingChangedEventArgs {} unsafe impl ::core::marker::Sync for CustomSensorReadingChangedEventArgs {} diff --git a/crates/libs/windows/src/Windows/Devices/Sensors/impl.rs b/crates/libs/windows/src/Windows/Devices/Sensors/impl.rs index 9290d352f7..b10efa4d97 100644 --- a/crates/libs/windows/src/Windows/Devices/Sensors/impl.rs +++ b/crates/libs/windows/src/Windows/Devices/Sensors/impl.rs @@ -66,7 +66,7 @@ impl IHumanPresenceSensorExtension_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISensorDataThreshold_Impl: Sized {} @@ -78,6 +78,6 @@ impl ISensorDataThreshold_Vtbl { Self { base__: ::windows_core::IInspectable_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/Devices/Sensors/mod.rs b/crates/libs/windows/src/Windows/Devices/Sensors/mod.rs index c9038fca50..1de440ee41 100644 --- a/crates/libs/windows/src/Windows/Devices/Sensors/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Sensors/mod.rs @@ -1,16 +1,7 @@ #[cfg(feature = "Devices_Sensors_Custom")] #[doc = "Required features: `\"Devices_Sensors_Custom\"`"] pub mod Custom; -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAccelerometer(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAccelerometer { - type Vtable = IAccelerometer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAccelerometer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdf184548_2711_4da7_8098_4b82205d3c7d); -} +::windows_core::imp::com_interface!(IAccelerometer, IAccelerometer_Vtbl, 0xdf184548_2711_4da7_8098_4b82205d3c7d); #[repr(C)] #[doc(hidden)] pub struct IAccelerometer_Vtbl { @@ -24,16 +15,7 @@ pub struct IAccelerometer_Vtbl { pub Shaken: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveShaken: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAccelerometer2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAccelerometer2 { - type Vtable = IAccelerometer2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAccelerometer2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe8f092ee_4964_401a_b602_220d7153c60a); -} +::windows_core::imp::com_interface!(IAccelerometer2, IAccelerometer2_Vtbl, 0xe8f092ee_4964_401a_b602_220d7153c60a); #[repr(C)] #[doc(hidden)] pub struct IAccelerometer2_Vtbl { @@ -47,16 +29,7 @@ pub struct IAccelerometer2_Vtbl { #[cfg(not(feature = "Graphics_Display"))] ReadingTransform: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAccelerometer3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAccelerometer3 { - type Vtable = IAccelerometer3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAccelerometer3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x87e0022a_ed80_49eb_bf8a_a4ea31e5cd84); -} +::windows_core::imp::com_interface!(IAccelerometer3, IAccelerometer3_Vtbl, 0x87e0022a_ed80_49eb_bf8a_a4ea31e5cd84); #[repr(C)] #[doc(hidden)] pub struct IAccelerometer3_Vtbl { @@ -65,48 +38,21 @@ pub struct IAccelerometer3_Vtbl { pub ReportLatency: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, pub MaxBatchSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAccelerometer4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAccelerometer4 { - type Vtable = IAccelerometer4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAccelerometer4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1d373c4f_42d3_45b2_8144_ab7fb665eb59); -} +::windows_core::imp::com_interface!(IAccelerometer4, IAccelerometer4_Vtbl, 0x1d373c4f_42d3_45b2_8144_ab7fb665eb59); #[repr(C)] #[doc(hidden)] pub struct IAccelerometer4_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ReadingType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut AccelerometerReadingType) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAccelerometer5(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAccelerometer5 { - type Vtable = IAccelerometer5_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAccelerometer5 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7e7e7021_def4_53a6_af43_806fd538edf6); -} +::windows_core::imp::com_interface!(IAccelerometer5, IAccelerometer5_Vtbl, 0x7e7e7021_def4_53a6_af43_806fd538edf6); #[repr(C)] #[doc(hidden)] pub struct IAccelerometer5_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ReportThreshold: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAccelerometerDataThreshold(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAccelerometerDataThreshold { - type Vtable = IAccelerometerDataThreshold_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAccelerometerDataThreshold { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf92c1b68_6320_5577_879e_9942621c3dd9); -} +::windows_core::imp::com_interface!(IAccelerometerDataThreshold, IAccelerometerDataThreshold_Vtbl, 0xf92c1b68_6320_5577_879e_9942621c3dd9); #[repr(C)] #[doc(hidden)] pub struct IAccelerometerDataThreshold_Vtbl { @@ -118,32 +64,14 @@ pub struct IAccelerometerDataThreshold_Vtbl { pub ZAxisInGForce: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows_core::HRESULT, pub SetZAxisInGForce: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f64) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAccelerometerDeviceId(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAccelerometerDeviceId { - type Vtable = IAccelerometerDeviceId_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAccelerometerDeviceId { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7eac64a9_97d5_446d_ab5a_917df9b96a2c); -} +::windows_core::imp::com_interface!(IAccelerometerDeviceId, IAccelerometerDeviceId_Vtbl, 0x7eac64a9_97d5_446d_ab5a_917df9b96a2c); #[repr(C)] #[doc(hidden)] pub struct IAccelerometerDeviceId_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub DeviceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAccelerometerReading(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAccelerometerReading { - type Vtable = IAccelerometerReading_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAccelerometerReading { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb9fe7acb_d351_40af_8bb6_7aa9ae641fb7); -} +::windows_core::imp::com_interface!(IAccelerometerReading, IAccelerometerReading_Vtbl, 0xb9fe7acb_d351_40af_8bb6_7aa9ae641fb7); #[repr(C)] #[doc(hidden)] pub struct IAccelerometerReading_Vtbl { @@ -153,16 +81,7 @@ pub struct IAccelerometerReading_Vtbl { pub AccelerationY: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows_core::HRESULT, pub AccelerationZ: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAccelerometerReading2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAccelerometerReading2 { - type Vtable = IAccelerometerReading2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAccelerometerReading2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0a864aa2_15ae_4a40_be55_db58d7de7389); -} +::windows_core::imp::com_interface!(IAccelerometerReading2, IAccelerometerReading2_Vtbl, 0x0a864aa2_15ae_4a40_be55_db58d7de7389); #[repr(C)] #[doc(hidden)] pub struct IAccelerometerReading2_Vtbl { @@ -173,80 +92,35 @@ pub struct IAccelerometerReading2_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Properties: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAccelerometerReadingChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAccelerometerReadingChangedEventArgs { - type Vtable = IAccelerometerReadingChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAccelerometerReadingChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0095c65b_b6ac_475a_9f44_8b32d35a3f25); -} +::windows_core::imp::com_interface!(IAccelerometerReadingChangedEventArgs, IAccelerometerReadingChangedEventArgs_Vtbl, 0x0095c65b_b6ac_475a_9f44_8b32d35a3f25); #[repr(C)] #[doc(hidden)] pub struct IAccelerometerReadingChangedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Reading: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAccelerometerShakenEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAccelerometerShakenEventArgs { - type Vtable = IAccelerometerShakenEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAccelerometerShakenEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x95ff01d1_4a28_4f35_98e8_8178aae4084a); -} +::windows_core::imp::com_interface!(IAccelerometerShakenEventArgs, IAccelerometerShakenEventArgs_Vtbl, 0x95ff01d1_4a28_4f35_98e8_8178aae4084a); #[repr(C)] #[doc(hidden)] pub struct IAccelerometerShakenEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Timestamp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::DateTime) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAccelerometerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAccelerometerStatics { - type Vtable = IAccelerometerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAccelerometerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa5e28b74_5a87_4a2d_becc_0f906ea061dd); -} +::windows_core::imp::com_interface!(IAccelerometerStatics, IAccelerometerStatics_Vtbl, 0xa5e28b74_5a87_4a2d_becc_0f906ea061dd); #[repr(C)] #[doc(hidden)] pub struct IAccelerometerStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetDefault: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAccelerometerStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAccelerometerStatics2 { - type Vtable = IAccelerometerStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAccelerometerStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc4c4842f_d86b_4685_b2d7_3396f798d57b); -} +::windows_core::imp::com_interface!(IAccelerometerStatics2, IAccelerometerStatics2_Vtbl, 0xc4c4842f_d86b_4685_b2d7_3396f798d57b); #[repr(C)] #[doc(hidden)] pub struct IAccelerometerStatics2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetDefaultWithAccelerometerReadingType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, readingtype: AccelerometerReadingType, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAccelerometerStatics3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAccelerometerStatics3 { - type Vtable = IAccelerometerStatics3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAccelerometerStatics3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9de218cf_455d_4cf3_8200_70e1410340f8); -} +::windows_core::imp::com_interface!(IAccelerometerStatics3, IAccelerometerStatics3_Vtbl, 0x9de218cf_455d_4cf3_8200_70e1410340f8); #[repr(C)] #[doc(hidden)] pub struct IAccelerometerStatics3_Vtbl { @@ -254,16 +128,7 @@ pub struct IAccelerometerStatics3_Vtbl { pub FromIdAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, deviceid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeviceSelector: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, readingtype: AccelerometerReadingType, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActivitySensor(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IActivitySensor { - type Vtable = IActivitySensor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActivitySensor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcd7a630c_fb5f_48eb_b09b_a2708d1c61ef); -} +::windows_core::imp::com_interface!(IActivitySensor, IActivitySensor_Vtbl, 0xcd7a630c_fb5f_48eb_b09b_a2708d1c61ef); #[repr(C)] #[doc(hidden)] pub struct IActivitySensor_Vtbl { @@ -283,16 +148,7 @@ pub struct IActivitySensor_Vtbl { pub ReadingChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveReadingChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActivitySensorReading(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IActivitySensorReading { - type Vtable = IActivitySensorReading_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActivitySensorReading { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x85125a96_1472_40a2_b2ae_e1ef29226c78); -} +::windows_core::imp::com_interface!(IActivitySensorReading, IActivitySensorReading_Vtbl, 0x85125a96_1472_40a2_b2ae_e1ef29226c78); #[repr(C)] #[doc(hidden)] pub struct IActivitySensorReading_Vtbl { @@ -301,48 +157,21 @@ pub struct IActivitySensorReading_Vtbl { pub Activity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ActivityType) -> ::windows_core::HRESULT, pub Confidence: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ActivitySensorReadingConfidence) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActivitySensorReadingChangeReport(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IActivitySensorReadingChangeReport { - type Vtable = IActivitySensorReadingChangeReport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActivitySensorReadingChangeReport { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4f3c2915_d93b_47bd_960a_f20fb2f322b9); -} +::windows_core::imp::com_interface!(IActivitySensorReadingChangeReport, IActivitySensorReadingChangeReport_Vtbl, 0x4f3c2915_d93b_47bd_960a_f20fb2f322b9); #[repr(C)] #[doc(hidden)] pub struct IActivitySensorReadingChangeReport_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Reading: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActivitySensorReadingChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IActivitySensorReadingChangedEventArgs { - type Vtable = IActivitySensorReadingChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActivitySensorReadingChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xde386717_aeb6_4ec7_946a_d9cc19b951ec); -} +::windows_core::imp::com_interface!(IActivitySensorReadingChangedEventArgs, IActivitySensorReadingChangedEventArgs_Vtbl, 0xde386717_aeb6_4ec7_946a_d9cc19b951ec); #[repr(C)] #[doc(hidden)] pub struct IActivitySensorReadingChangedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Reading: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActivitySensorStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IActivitySensorStatics { - type Vtable = IActivitySensorStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActivitySensorStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa71e0e9d_ee8b_45d1_b25b_08cc0df92ab6); -} +::windows_core::imp::com_interface!(IActivitySensorStatics, IActivitySensorStatics_Vtbl, 0xa71e0e9d_ee8b_45d1_b25b_08cc0df92ab6); #[repr(C)] #[doc(hidden)] pub struct IActivitySensorStatics_Vtbl { @@ -359,16 +188,7 @@ pub struct IActivitySensorStatics_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetSystemHistoryWithDurationAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActivitySensorTriggerDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IActivitySensorTriggerDetails { - type Vtable = IActivitySensorTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActivitySensorTriggerDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2c9e6612_b9ca_4677_b263_243297f79d3a); -} +::windows_core::imp::com_interface!(IActivitySensorTriggerDetails, IActivitySensorTriggerDetails_Vtbl, 0x2c9e6612_b9ca_4677_b263_243297f79d3a); #[repr(C)] #[doc(hidden)] pub struct IActivitySensorTriggerDetails_Vtbl { @@ -378,16 +198,7 @@ pub struct IActivitySensorTriggerDetails_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] ReadReports: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAdaptiveDimmingOptions(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAdaptiveDimmingOptions { - type Vtable = IAdaptiveDimmingOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAdaptiveDimmingOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd3213cf7_89b5_5732_b2a0_aefe324f54e6); -} +::windows_core::imp::com_interface!(IAdaptiveDimmingOptions, IAdaptiveDimmingOptions_Vtbl, 0xd3213cf7_89b5_5732_b2a0_aefe324f54e6); #[repr(C)] #[doc(hidden)] pub struct IAdaptiveDimmingOptions_Vtbl { @@ -395,16 +206,7 @@ pub struct IAdaptiveDimmingOptions_Vtbl { pub AllowWhenExternalDisplayConnected: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetAllowWhenExternalDisplayConnected: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAltimeter(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAltimeter { - type Vtable = IAltimeter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAltimeter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x72f057fd_8f04_49f1_b4a7_f4e363b701a2); -} +::windows_core::imp::com_interface!(IAltimeter, IAltimeter_Vtbl, 0x72f057fd_8f04_49f1_b4a7_f4e363b701a2); #[repr(C)] #[doc(hidden)] pub struct IAltimeter_Vtbl { @@ -417,16 +219,7 @@ pub struct IAltimeter_Vtbl { pub ReadingChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveReadingChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAltimeter2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAltimeter2 { - type Vtable = IAltimeter2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAltimeter2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc9471bf9_2add_48f5_9f08_3d0c7660d938); -} +::windows_core::imp::com_interface!(IAltimeter2, IAltimeter2_Vtbl, 0xc9471bf9_2add_48f5_9f08_3d0c7660d938); #[repr(C)] #[doc(hidden)] pub struct IAltimeter2_Vtbl { @@ -435,16 +228,7 @@ pub struct IAltimeter2_Vtbl { pub ReportLatency: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, pub MaxBatchSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAltimeterReading(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAltimeterReading { - type Vtable = IAltimeterReading_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAltimeterReading { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfbe8ef73_7f5e_48c8_aa1a_f1f3befc1144); -} +::windows_core::imp::com_interface!(IAltimeterReading, IAltimeterReading_Vtbl, 0xfbe8ef73_7f5e_48c8_aa1a_f1f3befc1144); #[repr(C)] #[doc(hidden)] pub struct IAltimeterReading_Vtbl { @@ -452,16 +236,7 @@ pub struct IAltimeterReading_Vtbl { pub Timestamp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::DateTime) -> ::windows_core::HRESULT, pub AltitudeChangeInMeters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAltimeterReading2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAltimeterReading2 { - type Vtable = IAltimeterReading2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAltimeterReading2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x543a1bd9_6d0b_42b2_bd69_bc8fae0f782c); -} +::windows_core::imp::com_interface!(IAltimeterReading2, IAltimeterReading2_Vtbl, 0x543a1bd9_6d0b_42b2_bd69_bc8fae0f782c); #[repr(C)] #[doc(hidden)] pub struct IAltimeterReading2_Vtbl { @@ -472,48 +247,21 @@ pub struct IAltimeterReading2_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Properties: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAltimeterReadingChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAltimeterReadingChangedEventArgs { - type Vtable = IAltimeterReadingChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAltimeterReadingChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7069d077_446d_47f7_998c_ebc23b45e4a2); -} +::windows_core::imp::com_interface!(IAltimeterReadingChangedEventArgs, IAltimeterReadingChangedEventArgs_Vtbl, 0x7069d077_446d_47f7_998c_ebc23b45e4a2); #[repr(C)] #[doc(hidden)] pub struct IAltimeterReadingChangedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Reading: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAltimeterStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAltimeterStatics { - type Vtable = IAltimeterStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAltimeterStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9eb4d7c3_e5ac_47ce_8eef_d3718168c01f); -} +::windows_core::imp::com_interface!(IAltimeterStatics, IAltimeterStatics_Vtbl, 0x9eb4d7c3_e5ac_47ce_8eef_d3718168c01f); #[repr(C)] #[doc(hidden)] pub struct IAltimeterStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetDefault: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBarometer(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBarometer { - type Vtable = IBarometer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBarometer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x934475a8_78bf_452f_b017_f0209ce6dab4); -} +::windows_core::imp::com_interface!(IBarometer, IBarometer_Vtbl, 0x934475a8_78bf_452f_b017_f0209ce6dab4); #[repr(C)] #[doc(hidden)] pub struct IBarometer_Vtbl { @@ -526,16 +274,7 @@ pub struct IBarometer_Vtbl { pub ReadingChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveReadingChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBarometer2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBarometer2 { - type Vtable = IBarometer2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBarometer2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x32bcc418_3eeb_4d04_9574_7633a8781f9f); -} +::windows_core::imp::com_interface!(IBarometer2, IBarometer2_Vtbl, 0x32bcc418_3eeb_4d04_9574_7633a8781f9f); #[repr(C)] #[doc(hidden)] pub struct IBarometer2_Vtbl { @@ -544,32 +283,14 @@ pub struct IBarometer2_Vtbl { pub ReportLatency: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, pub MaxBatchSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBarometer3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBarometer3 { - type Vtable = IBarometer3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBarometer3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0e35f0ea_02b5_5a04_b03d_822084863a54); -} +::windows_core::imp::com_interface!(IBarometer3, IBarometer3_Vtbl, 0x0e35f0ea_02b5_5a04_b03d_822084863a54); #[repr(C)] #[doc(hidden)] pub struct IBarometer3_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ReportThreshold: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBarometerDataThreshold(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBarometerDataThreshold { - type Vtable = IBarometerDataThreshold_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBarometerDataThreshold { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x076b952c_cb62_5a90_a0d1_f85e4a936394); -} +::windows_core::imp::com_interface!(IBarometerDataThreshold, IBarometerDataThreshold_Vtbl, 0x076b952c_cb62_5a90_a0d1_f85e4a936394); #[repr(C)] #[doc(hidden)] pub struct IBarometerDataThreshold_Vtbl { @@ -577,16 +298,7 @@ pub struct IBarometerDataThreshold_Vtbl { pub Hectopascals: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows_core::HRESULT, pub SetHectopascals: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f64) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBarometerReading(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBarometerReading { - type Vtable = IBarometerReading_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBarometerReading { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf5b9d2e6_1df6_4a1a_a7ad_321d4f5db247); -} +::windows_core::imp::com_interface!(IBarometerReading, IBarometerReading_Vtbl, 0xf5b9d2e6_1df6_4a1a_a7ad_321d4f5db247); #[repr(C)] #[doc(hidden)] pub struct IBarometerReading_Vtbl { @@ -594,16 +306,7 @@ pub struct IBarometerReading_Vtbl { pub Timestamp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::DateTime) -> ::windows_core::HRESULT, pub StationPressureInHectopascals: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBarometerReading2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBarometerReading2 { - type Vtable = IBarometerReading2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBarometerReading2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x85a244eb_90c5_4875_891c_3865b4c357e7); -} +::windows_core::imp::com_interface!(IBarometerReading2, IBarometerReading2_Vtbl, 0x85a244eb_90c5_4875_891c_3865b4c357e7); #[repr(C)] #[doc(hidden)] pub struct IBarometerReading2_Vtbl { @@ -614,48 +317,21 @@ pub struct IBarometerReading2_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Properties: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBarometerReadingChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBarometerReadingChangedEventArgs { - type Vtable = IBarometerReadingChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBarometerReadingChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3d84945f_037b_404f_9bbb_6232d69543c3); -} +::windows_core::imp::com_interface!(IBarometerReadingChangedEventArgs, IBarometerReadingChangedEventArgs_Vtbl, 0x3d84945f_037b_404f_9bbb_6232d69543c3); #[repr(C)] #[doc(hidden)] pub struct IBarometerReadingChangedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Reading: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBarometerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBarometerStatics { - type Vtable = IBarometerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBarometerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x286b270a_02e3_4f86_84fc_fdd892b5940f); -} +::windows_core::imp::com_interface!(IBarometerStatics, IBarometerStatics_Vtbl, 0x286b270a_02e3_4f86_84fc_fdd892b5940f); #[repr(C)] #[doc(hidden)] pub struct IBarometerStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetDefault: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBarometerStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBarometerStatics2 { - type Vtable = IBarometerStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBarometerStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8fc6b1e7_95ff_44ac_878e_d65c8308c34c); -} +::windows_core::imp::com_interface!(IBarometerStatics2, IBarometerStatics2_Vtbl, 0x8fc6b1e7_95ff_44ac_878e_d65c8308c34c); #[repr(C)] #[doc(hidden)] pub struct IBarometerStatics2_Vtbl { @@ -663,16 +339,7 @@ pub struct IBarometerStatics2_Vtbl { pub FromIdAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, deviceid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeviceSelector: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompass(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompass { - type Vtable = ICompass_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompass { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x292ffa94_1b45_403c_ba06_b106dba69a64); -} +::windows_core::imp::com_interface!(ICompass, ICompass_Vtbl, 0x292ffa94_1b45_403c_ba06_b106dba69a64); #[repr(C)] #[doc(hidden)] pub struct ICompass_Vtbl { @@ -684,16 +351,7 @@ pub struct ICompass_Vtbl { pub ReadingChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveReadingChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompass2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompass2 { - type Vtable = ICompass2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompass2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x36f26d09_c7d7_434f_b461_979ddfc2322f); -} +::windows_core::imp::com_interface!(ICompass2, ICompass2_Vtbl, 0x36f26d09_c7d7_434f_b461_979ddfc2322f); #[repr(C)] #[doc(hidden)] pub struct ICompass2_Vtbl { @@ -707,16 +365,7 @@ pub struct ICompass2_Vtbl { #[cfg(not(feature = "Graphics_Display"))] ReadingTransform: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompass3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompass3 { - type Vtable = ICompass3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompass3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa424801b_c5ea_4d45_a0ec_4b791f041a89); -} +::windows_core::imp::com_interface!(ICompass3, ICompass3_Vtbl, 0xa424801b_c5ea_4d45_a0ec_4b791f041a89); #[repr(C)] #[doc(hidden)] pub struct ICompass3_Vtbl { @@ -725,32 +374,14 @@ pub struct ICompass3_Vtbl { pub ReportLatency: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, pub MaxBatchSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompass4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompass4 { - type Vtable = ICompass4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompass4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x291e7f11_ec32_5dcc_bfcb_0bb39eba5774); -} +::windows_core::imp::com_interface!(ICompass4, ICompass4_Vtbl, 0x291e7f11_ec32_5dcc_bfcb_0bb39eba5774); #[repr(C)] #[doc(hidden)] pub struct ICompass4_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ReportThreshold: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompassDataThreshold(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompassDataThreshold { - type Vtable = ICompassDataThreshold_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompassDataThreshold { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd15b52b3_d39d_5ec8_b2e4_f193e6ab34ed); -} +::windows_core::imp::com_interface!(ICompassDataThreshold, ICompassDataThreshold_Vtbl, 0xd15b52b3_d39d_5ec8_b2e4_f193e6ab34ed); #[repr(C)] #[doc(hidden)] pub struct ICompassDataThreshold_Vtbl { @@ -758,32 +389,14 @@ pub struct ICompassDataThreshold_Vtbl { pub Degrees: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows_core::HRESULT, pub SetDegrees: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f64) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompassDeviceId(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompassDeviceId { - type Vtable = ICompassDeviceId_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompassDeviceId { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd181ca29_b085_4b1d_870a_4ff57ba74fd4); -} +::windows_core::imp::com_interface!(ICompassDeviceId, ICompassDeviceId_Vtbl, 0xd181ca29_b085_4b1d_870a_4ff57ba74fd4); #[repr(C)] #[doc(hidden)] pub struct ICompassDeviceId_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub DeviceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompassReading(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompassReading { - type Vtable = ICompassReading_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompassReading { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x82911128_513d_4dc9_b781_5eedfbf02d0c); -} +::windows_core::imp::com_interface!(ICompassReading, ICompassReading_Vtbl, 0x82911128_513d_4dc9_b781_5eedfbf02d0c); #[repr(C)] #[doc(hidden)] pub struct ICompassReading_Vtbl { @@ -792,16 +405,7 @@ pub struct ICompassReading_Vtbl { pub HeadingMagneticNorth: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows_core::HRESULT, pub HeadingTrueNorth: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompassReading2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompassReading2 { - type Vtable = ICompassReading2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompassReading2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb13a661e_51bb_4a12_bedd_ad47ff87d2e8); -} +::windows_core::imp::com_interface!(ICompassReading2, ICompassReading2_Vtbl, 0xb13a661e_51bb_4a12_bedd_ad47ff87d2e8); #[repr(C)] #[doc(hidden)] pub struct ICompassReading2_Vtbl { @@ -812,64 +416,28 @@ pub struct ICompassReading2_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Properties: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompassReadingChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompassReadingChangedEventArgs { - type Vtable = ICompassReadingChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompassReadingChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8f1549b0_e8bc_4c7e_b009_4e41df137072); -} +::windows_core::imp::com_interface!(ICompassReadingChangedEventArgs, ICompassReadingChangedEventArgs_Vtbl, 0x8f1549b0_e8bc_4c7e_b009_4e41df137072); #[repr(C)] #[doc(hidden)] pub struct ICompassReadingChangedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Reading: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompassReadingHeadingAccuracy(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompassReadingHeadingAccuracy { - type Vtable = ICompassReadingHeadingAccuracy_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompassReadingHeadingAccuracy { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe761354e_8911_40f7_9e16_6ecc7daec5de); -} +::windows_core::imp::com_interface!(ICompassReadingHeadingAccuracy, ICompassReadingHeadingAccuracy_Vtbl, 0xe761354e_8911_40f7_9e16_6ecc7daec5de); #[repr(C)] #[doc(hidden)] pub struct ICompassReadingHeadingAccuracy_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub HeadingAccuracy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut MagnetometerAccuracy) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompassStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompassStatics { - type Vtable = ICompassStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompassStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9abc97df_56ec_4c25_b54d_40a68bb5b269); -} +::windows_core::imp::com_interface!(ICompassStatics, ICompassStatics_Vtbl, 0x9abc97df_56ec_4c25_b54d_40a68bb5b269); #[repr(C)] #[doc(hidden)] pub struct ICompassStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetDefault: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompassStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompassStatics2 { - type Vtable = ICompassStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompassStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0ace0ead_3baa_4990_9ce4_be0913754ed2); -} +::windows_core::imp::com_interface!(ICompassStatics2, ICompassStatics2_Vtbl, 0x0ace0ead_3baa_4990_9ce4_be0913754ed2); #[repr(C)] #[doc(hidden)] pub struct ICompassStatics2_Vtbl { @@ -877,16 +445,7 @@ pub struct ICompassStatics2_Vtbl { pub GetDeviceSelector: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub FromIdAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, deviceid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGyrometer(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGyrometer { - type Vtable = IGyrometer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGyrometer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfdb9a9c4_84b1_4ca2_9763_9b589506c70c); -} +::windows_core::imp::com_interface!(IGyrometer, IGyrometer_Vtbl, 0xfdb9a9c4_84b1_4ca2_9763_9b589506c70c); #[repr(C)] #[doc(hidden)] pub struct IGyrometer_Vtbl { @@ -898,16 +457,7 @@ pub struct IGyrometer_Vtbl { pub ReadingChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveReadingChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGyrometer2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGyrometer2 { - type Vtable = IGyrometer2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGyrometer2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x63df2443_8ce8_41c3_ac44_8698810b557f); -} +::windows_core::imp::com_interface!(IGyrometer2, IGyrometer2_Vtbl, 0x63df2443_8ce8_41c3_ac44_8698810b557f); #[repr(C)] #[doc(hidden)] pub struct IGyrometer2_Vtbl { @@ -921,16 +471,7 @@ pub struct IGyrometer2_Vtbl { #[cfg(not(feature = "Graphics_Display"))] ReadingTransform: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGyrometer3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGyrometer3 { - type Vtable = IGyrometer3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGyrometer3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5d6f88d5_8fbc_4484_914b_528adfd947b1); -} +::windows_core::imp::com_interface!(IGyrometer3, IGyrometer3_Vtbl, 0x5d6f88d5_8fbc_4484_914b_528adfd947b1); #[repr(C)] #[doc(hidden)] pub struct IGyrometer3_Vtbl { @@ -939,32 +480,14 @@ pub struct IGyrometer3_Vtbl { pub ReportLatency: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, pub MaxBatchSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGyrometer4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGyrometer4 { - type Vtable = IGyrometer4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGyrometer4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0628a60c_4c4b_5096_94e6_c356df68bef7); -} +::windows_core::imp::com_interface!(IGyrometer4, IGyrometer4_Vtbl, 0x0628a60c_4c4b_5096_94e6_c356df68bef7); #[repr(C)] #[doc(hidden)] pub struct IGyrometer4_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ReportThreshold: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGyrometerDataThreshold(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGyrometerDataThreshold { - type Vtable = IGyrometerDataThreshold_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGyrometerDataThreshold { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8648b31e_6e52_5259_bbad_242a69dc38c8); -} +::windows_core::imp::com_interface!(IGyrometerDataThreshold, IGyrometerDataThreshold_Vtbl, 0x8648b31e_6e52_5259_bbad_242a69dc38c8); #[repr(C)] #[doc(hidden)] pub struct IGyrometerDataThreshold_Vtbl { @@ -976,32 +499,14 @@ pub struct IGyrometerDataThreshold_Vtbl { pub ZAxisInDegreesPerSecond: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows_core::HRESULT, pub SetZAxisInDegreesPerSecond: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f64) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGyrometerDeviceId(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGyrometerDeviceId { - type Vtable = IGyrometerDeviceId_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGyrometerDeviceId { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1ee5e978_89a2_4275_9e95_7126f4708760); -} +::windows_core::imp::com_interface!(IGyrometerDeviceId, IGyrometerDeviceId_Vtbl, 0x1ee5e978_89a2_4275_9e95_7126f4708760); #[repr(C)] #[doc(hidden)] pub struct IGyrometerDeviceId_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub DeviceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGyrometerReading(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGyrometerReading { - type Vtable = IGyrometerReading_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGyrometerReading { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb3d6de5c_1ee4_456f_9de7_e2493b5c8e03); -} +::windows_core::imp::com_interface!(IGyrometerReading, IGyrometerReading_Vtbl, 0xb3d6de5c_1ee4_456f_9de7_e2493b5c8e03); #[repr(C)] #[doc(hidden)] pub struct IGyrometerReading_Vtbl { @@ -1011,16 +516,7 @@ pub struct IGyrometerReading_Vtbl { pub AngularVelocityY: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows_core::HRESULT, pub AngularVelocityZ: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGyrometerReading2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGyrometerReading2 { - type Vtable = IGyrometerReading2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGyrometerReading2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x16afe13c_2b89_44bb_822b_d1e1556ff09b); -} +::windows_core::imp::com_interface!(IGyrometerReading2, IGyrometerReading2_Vtbl, 0x16afe13c_2b89_44bb_822b_d1e1556ff09b); #[repr(C)] #[doc(hidden)] pub struct IGyrometerReading2_Vtbl { @@ -1031,48 +527,21 @@ pub struct IGyrometerReading2_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Properties: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGyrometerReadingChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGyrometerReadingChangedEventArgs { - type Vtable = IGyrometerReadingChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGyrometerReadingChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0fdf1895_6f9e_42ce_8d58_388c0ab8356d); -} +::windows_core::imp::com_interface!(IGyrometerReadingChangedEventArgs, IGyrometerReadingChangedEventArgs_Vtbl, 0x0fdf1895_6f9e_42ce_8d58_388c0ab8356d); #[repr(C)] #[doc(hidden)] pub struct IGyrometerReadingChangedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Reading: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGyrometerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGyrometerStatics { - type Vtable = IGyrometerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGyrometerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x83b6e7c9_e49d_4b39_86e6_cd554be4c5c1); -} +::windows_core::imp::com_interface!(IGyrometerStatics, IGyrometerStatics_Vtbl, 0x83b6e7c9_e49d_4b39_86e6_cd554be4c5c1); #[repr(C)] #[doc(hidden)] pub struct IGyrometerStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetDefault: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGyrometerStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGyrometerStatics2 { - type Vtable = IGyrometerStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGyrometerStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xef83f7a1_d700_4204_9613_79c6b161df4e); -} +::windows_core::imp::com_interface!(IGyrometerStatics2, IGyrometerStatics2_Vtbl, 0xef83f7a1_d700_4204_9613_79c6b161df4e); #[repr(C)] #[doc(hidden)] pub struct IGyrometerStatics2_Vtbl { @@ -1080,16 +549,7 @@ pub struct IGyrometerStatics2_Vtbl { pub GetDeviceSelector: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub FromIdAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, deviceid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHingeAngleReading(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHingeAngleReading { - type Vtable = IHingeAngleReading_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHingeAngleReading { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa3cd45b9_1bf1_4f65_a704_e2da04f182c0); -} +::windows_core::imp::com_interface!(IHingeAngleReading, IHingeAngleReading_Vtbl, 0xa3cd45b9_1bf1_4f65_a704_e2da04f182c0); #[repr(C)] #[doc(hidden)] pub struct IHingeAngleReading_Vtbl { @@ -1101,16 +561,7 @@ pub struct IHingeAngleReading_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Properties: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHingeAngleSensor(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHingeAngleSensor { - type Vtable = IHingeAngleSensor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHingeAngleSensor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe9d3be02_bfdf_437f_8c29_88c77393d309); -} +::windows_core::imp::com_interface!(IHingeAngleSensor, IHingeAngleSensor_Vtbl, 0xe9d3be02_bfdf_437f_8c29_88c77393d309); #[repr(C)] #[doc(hidden)] pub struct IHingeAngleSensor_Vtbl { @@ -1123,32 +574,14 @@ pub struct IHingeAngleSensor_Vtbl { pub ReadingChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveReadingChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHingeAngleSensorReadingChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHingeAngleSensorReadingChangedEventArgs { - type Vtable = IHingeAngleSensorReadingChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHingeAngleSensorReadingChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x24d9558b_fad0_42b8_a854_78923049a1ba); -} +::windows_core::imp::com_interface!(IHingeAngleSensorReadingChangedEventArgs, IHingeAngleSensorReadingChangedEventArgs_Vtbl, 0x24d9558b_fad0_42b8_a854_78923049a1ba); #[repr(C)] #[doc(hidden)] pub struct IHingeAngleSensorReadingChangedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Reading: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHingeAngleSensorStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHingeAngleSensorStatics { - type Vtable = IHingeAngleSensorStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHingeAngleSensorStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb7b63910_fbb1_4123_89ce_4ea34eb0dfca); -} +::windows_core::imp::com_interface!(IHingeAngleSensorStatics, IHingeAngleSensorStatics_Vtbl, 0xb7b63910_fbb1_4123_89ce_4ea34eb0dfca); #[repr(C)] #[doc(hidden)] pub struct IHingeAngleSensorStatics_Vtbl { @@ -1158,16 +591,7 @@ pub struct IHingeAngleSensorStatics_Vtbl { pub GetRelatedToAdjacentPanelsAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, firstpanelid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, secondpanelid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub FromIdAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, deviceid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHumanPresenceFeatures(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHumanPresenceFeatures { - type Vtable = IHumanPresenceFeatures_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHumanPresenceFeatures { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbdb09fda_3244_557a_bd29_8b004f59f2cc); -} +::windows_core::imp::com_interface!(IHumanPresenceFeatures, IHumanPresenceFeatures_Vtbl, 0xbdb09fda_3244_557a_bd29_8b004f59f2cc); #[repr(C)] #[doc(hidden)] pub struct IHumanPresenceFeatures_Vtbl { @@ -1184,32 +608,14 @@ pub struct IHumanPresenceFeatures_Vtbl { #[cfg(not(feature = "deprecated"))] IsAttentionAwareDimmingSupported: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHumanPresenceFeatures2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHumanPresenceFeatures2 { - type Vtable = IHumanPresenceFeatures2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHumanPresenceFeatures2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x08a9cdda_d929_5ec2_81e2_940bafa089cf); -} +::windows_core::imp::com_interface!(IHumanPresenceFeatures2, IHumanPresenceFeatures2_Vtbl, 0x08a9cdda_d929_5ec2_81e2_940bafa089cf); #[repr(C)] #[doc(hidden)] pub struct IHumanPresenceFeatures2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub IsAdaptiveDimmingSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHumanPresenceSensor(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHumanPresenceSensor { - type Vtable = IHumanPresenceSensor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHumanPresenceSensor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2116788b_e389_5cc3_9a97_cb17be1008bd); -} +::windows_core::imp::com_interface!(IHumanPresenceSensor, IHumanPresenceSensor_Vtbl, 0x2116788b_e389_5cc3_9a97_cb17be1008bd); #[repr(C)] #[doc(hidden)] pub struct IHumanPresenceSensor_Vtbl { @@ -1221,16 +627,7 @@ pub struct IHumanPresenceSensor_Vtbl { pub ReadingChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveReadingChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHumanPresenceSensor2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHumanPresenceSensor2 { - type Vtable = IHumanPresenceSensor2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHumanPresenceSensor2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf8833779_65fe_541a_b9d6_1e474a485e7a); -} +::windows_core::imp::com_interface!(IHumanPresenceSensor2, IHumanPresenceSensor2_Vtbl, 0xf8833779_65fe_541a_b9d6_1e474a485e7a); #[repr(C)] #[doc(hidden)] pub struct IHumanPresenceSensor2_Vtbl { @@ -1238,9 +635,8 @@ pub struct IHumanPresenceSensor2_Vtbl { pub IsPresenceSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub IsEngagementSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHumanPresenceSensorExtension(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IHumanPresenceSensorExtension, IHumanPresenceSensorExtension_Vtbl, 0x3e526a71_2d1d_5d43_8a8e_a434a8242ef0); +::windows_core::imp::interface_hierarchy!(IHumanPresenceSensorExtension, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IHumanPresenceSensorExtension { pub fn Initialize(&self, deviceinterface: &::windows_core::HSTRING) -> ::windows_core::Result<()> { let this = self; @@ -1280,16 +676,9 @@ impl IHumanPresenceSensorExtension { unsafe { (::windows_core::Interface::vtable(this).Reset)(::windows_core::Interface::as_raw(this)).ok() } } } -::windows_core::imp::interface_hierarchy!(IHumanPresenceSensorExtension, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IHumanPresenceSensorExtension { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IHumanPresenceSensorExtension { - type Vtable = IHumanPresenceSensorExtension_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHumanPresenceSensorExtension { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3e526a71_2d1d_5d43_8a8e_a434a8242ef0); -} #[repr(C)] #[doc(hidden)] pub struct IHumanPresenceSensorExtension_Vtbl { @@ -1302,16 +691,7 @@ pub struct IHumanPresenceSensorExtension_Vtbl { pub Uninitialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHumanPresenceSensorReading(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHumanPresenceSensorReading { - type Vtable = IHumanPresenceSensorReading_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHumanPresenceSensorReading { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x83533bf5_a85a_5d50_8be4_6072d745a3bb); -} +::windows_core::imp::com_interface!(IHumanPresenceSensorReading, IHumanPresenceSensorReading_Vtbl, 0x83533bf5_a85a_5d50_8be4_6072d745a3bb); #[repr(C)] #[doc(hidden)] pub struct IHumanPresenceSensorReading_Vtbl { @@ -1321,16 +701,7 @@ pub struct IHumanPresenceSensorReading_Vtbl { pub Engagement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut HumanEngagement) -> ::windows_core::HRESULT, pub DistanceInMillimeters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHumanPresenceSensorReading2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHumanPresenceSensorReading2 { - type Vtable = IHumanPresenceSensorReading2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHumanPresenceSensorReading2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc4f0e950_3bff_53d6_a0f8_514ea3705c66); -} +::windows_core::imp::com_interface!(IHumanPresenceSensorReading2, IHumanPresenceSensorReading2_Vtbl, 0xc4f0e950_3bff_53d6_a0f8_514ea3705c66); #[repr(C)] #[doc(hidden)] pub struct IHumanPresenceSensorReading2_Vtbl { @@ -1340,32 +711,14 @@ pub struct IHumanPresenceSensorReading2_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Properties: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHumanPresenceSensorReadingChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHumanPresenceSensorReadingChangedEventArgs { - type Vtable = IHumanPresenceSensorReadingChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHumanPresenceSensorReadingChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa9dc4583_fd69_5c5e_ab1f_942204eae2db); -} +::windows_core::imp::com_interface!(IHumanPresenceSensorReadingChangedEventArgs, IHumanPresenceSensorReadingChangedEventArgs_Vtbl, 0xa9dc4583_fd69_5c5e_ab1f_942204eae2db); #[repr(C)] #[doc(hidden)] pub struct IHumanPresenceSensorReadingChangedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Reading: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHumanPresenceSensorReadingUpdate(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHumanPresenceSensorReadingUpdate { - type Vtable = IHumanPresenceSensorReadingUpdate_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHumanPresenceSensorReadingUpdate { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x42419c77_6d2f_55a0_9e01_c9cbe7b2d6df); -} +::windows_core::imp::com_interface!(IHumanPresenceSensorReadingUpdate, IHumanPresenceSensorReadingUpdate_Vtbl, 0x42419c77_6d2f_55a0_9e01_c9cbe7b2d6df); #[repr(C)] #[doc(hidden)] pub struct IHumanPresenceSensorReadingUpdate_Vtbl { @@ -1379,16 +732,7 @@ pub struct IHumanPresenceSensorReadingUpdate_Vtbl { pub DistanceInMillimeters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetDistanceInMillimeters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHumanPresenceSensorStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHumanPresenceSensorStatics { - type Vtable = IHumanPresenceSensorStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHumanPresenceSensorStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2ae89842_dba9_56b2_9f27_eac69d621004); -} +::windows_core::imp::com_interface!(IHumanPresenceSensorStatics, IHumanPresenceSensorStatics_Vtbl, 0x2ae89842_dba9_56b2_9f27_eac69d621004); #[repr(C)] #[doc(hidden)] pub struct IHumanPresenceSensorStatics_Vtbl { @@ -1397,16 +741,7 @@ pub struct IHumanPresenceSensorStatics_Vtbl { pub FromIdAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sensorid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDefaultAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHumanPresenceSensorStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHumanPresenceSensorStatics2 { - type Vtable = IHumanPresenceSensorStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHumanPresenceSensorStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5de35843_d260_5a87_995e_ace91326e1c4); -} +::windows_core::imp::com_interface!(IHumanPresenceSensorStatics2, IHumanPresenceSensorStatics2_Vtbl, 0x5de35843_d260_5a87_995e_ace91326e1c4); #[repr(C)] #[doc(hidden)] pub struct IHumanPresenceSensorStatics2_Vtbl { @@ -1414,16 +749,7 @@ pub struct IHumanPresenceSensorStatics2_Vtbl { pub FromId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sensorid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDefault: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHumanPresenceSettings(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHumanPresenceSettings { - type Vtable = IHumanPresenceSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHumanPresenceSettings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xef4daf5b_07b7_5eb6_86bb_b7ff49ce44fb); -} +::windows_core::imp::com_interface!(IHumanPresenceSettings, IHumanPresenceSettings_Vtbl, 0xef4daf5b_07b7_5eb6_86bb_b7ff49ce44fb); #[repr(C)] #[doc(hidden)] pub struct IHumanPresenceSettings_Vtbl { @@ -1449,16 +775,7 @@ pub struct IHumanPresenceSettings_Vtbl { #[cfg(not(feature = "deprecated"))] SetIsAttentionAwareDimmingEnabled: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHumanPresenceSettings2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHumanPresenceSettings2 { - type Vtable = IHumanPresenceSettings2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHumanPresenceSettings2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa26f705e_8696_5eb4_b9e1_26a508de1cd4); -} +::windows_core::imp::com_interface!(IHumanPresenceSettings2, IHumanPresenceSettings2_Vtbl, 0xa26f705e_8696_5eb4_b9e1_26a508de1cd4); #[repr(C)] #[doc(hidden)] pub struct IHumanPresenceSettings2_Vtbl { @@ -1469,16 +786,7 @@ pub struct IHumanPresenceSettings2_Vtbl { pub DimmingOptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub LockOptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHumanPresenceSettingsStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHumanPresenceSettingsStatics { - type Vtable = IHumanPresenceSettingsStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHumanPresenceSettingsStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7f343202_e010_52c4_af0c_04a8f1e033da); -} +::windows_core::imp::com_interface!(IHumanPresenceSettingsStatics, IHumanPresenceSettingsStatics_Vtbl, 0x7f343202_e010_52c4_af0c_04a8f1e033da); #[repr(C)] #[doc(hidden)] pub struct IHumanPresenceSettingsStatics_Vtbl { @@ -1496,16 +804,7 @@ pub struct IHumanPresenceSettingsStatics_Vtbl { pub SettingsChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveSettingsChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInclinometer(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInclinometer { - type Vtable = IInclinometer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInclinometer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2648ca6f_2286_406f_9161_f0c4bd806ebf); -} +::windows_core::imp::com_interface!(IInclinometer, IInclinometer_Vtbl, 0x2648ca6f_2286_406f_9161_f0c4bd806ebf); #[repr(C)] #[doc(hidden)] pub struct IInclinometer_Vtbl { @@ -1517,16 +816,7 @@ pub struct IInclinometer_Vtbl { pub ReadingChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveReadingChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInclinometer2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInclinometer2 { - type Vtable = IInclinometer2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInclinometer2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x029f3393_28b2_45f8_bb16_61e86a7fae6e); -} +::windows_core::imp::com_interface!(IInclinometer2, IInclinometer2_Vtbl, 0x029f3393_28b2_45f8_bb16_61e86a7fae6e); #[repr(C)] #[doc(hidden)] pub struct IInclinometer2_Vtbl { @@ -1541,16 +831,7 @@ pub struct IInclinometer2_Vtbl { ReadingTransform: usize, pub ReadingType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut SensorReadingType) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInclinometer3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInclinometer3 { - type Vtable = IInclinometer3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInclinometer3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3a095004_d765_4384_a3d7_0283f3abe6ae); -} +::windows_core::imp::com_interface!(IInclinometer3, IInclinometer3_Vtbl, 0x3a095004_d765_4384_a3d7_0283f3abe6ae); #[repr(C)] #[doc(hidden)] pub struct IInclinometer3_Vtbl { @@ -1559,32 +840,14 @@ pub struct IInclinometer3_Vtbl { pub ReportLatency: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, pub MaxBatchSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInclinometer4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInclinometer4 { - type Vtable = IInclinometer4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInclinometer4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x43852618_8fca_548e_bbf5_5c50412b6aa4); -} +::windows_core::imp::com_interface!(IInclinometer4, IInclinometer4_Vtbl, 0x43852618_8fca_548e_bbf5_5c50412b6aa4); #[repr(C)] #[doc(hidden)] pub struct IInclinometer4_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ReportThreshold: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInclinometerDataThreshold(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInclinometerDataThreshold { - type Vtable = IInclinometerDataThreshold_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInclinometerDataThreshold { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf80a4783_7bfe_545e_bb60_a0ebc47bd2fb); -} +::windows_core::imp::com_interface!(IInclinometerDataThreshold, IInclinometerDataThreshold_Vtbl, 0xf80a4783_7bfe_545e_bb60_a0ebc47bd2fb); #[repr(C)] #[doc(hidden)] pub struct IInclinometerDataThreshold_Vtbl { @@ -1596,32 +859,14 @@ pub struct IInclinometerDataThreshold_Vtbl { pub YawInDegrees: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows_core::HRESULT, pub SetYawInDegrees: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInclinometerDeviceId(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInclinometerDeviceId { - type Vtable = IInclinometerDeviceId_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInclinometerDeviceId { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x01e91982_41ff_4406_ae83_62210ff16fe3); -} +::windows_core::imp::com_interface!(IInclinometerDeviceId, IInclinometerDeviceId_Vtbl, 0x01e91982_41ff_4406_ae83_62210ff16fe3); #[repr(C)] #[doc(hidden)] pub struct IInclinometerDeviceId_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub DeviceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInclinometerReading(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInclinometerReading { - type Vtable = IInclinometerReading_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInclinometerReading { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9f44f055_b6f6_497f_b127_1a775e501458); -} +::windows_core::imp::com_interface!(IInclinometerReading, IInclinometerReading_Vtbl, 0x9f44f055_b6f6_497f_b127_1a775e501458); #[repr(C)] #[doc(hidden)] pub struct IInclinometerReading_Vtbl { @@ -1631,16 +876,7 @@ pub struct IInclinometerReading_Vtbl { pub RollDegrees: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows_core::HRESULT, pub YawDegrees: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInclinometerReading2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInclinometerReading2 { - type Vtable = IInclinometerReading2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInclinometerReading2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4f164781_e90b_4658_8915_0103e08a805a); -} +::windows_core::imp::com_interface!(IInclinometerReading2, IInclinometerReading2_Vtbl, 0x4f164781_e90b_4658_8915_0103e08a805a); #[repr(C)] #[doc(hidden)] pub struct IInclinometerReading2_Vtbl { @@ -1651,96 +887,42 @@ pub struct IInclinometerReading2_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Properties: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInclinometerReadingChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInclinometerReadingChangedEventArgs { - type Vtable = IInclinometerReadingChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInclinometerReadingChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4ae91dc1_e7eb_4938_8511_ae0d6b440438); -} +::windows_core::imp::com_interface!(IInclinometerReadingChangedEventArgs, IInclinometerReadingChangedEventArgs_Vtbl, 0x4ae91dc1_e7eb_4938_8511_ae0d6b440438); #[repr(C)] #[doc(hidden)] pub struct IInclinometerReadingChangedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Reading: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInclinometerReadingYawAccuracy(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInclinometerReadingYawAccuracy { - type Vtable = IInclinometerReadingYawAccuracy_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInclinometerReadingYawAccuracy { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb453e880_1fe3_4986_a257_e6ece2723949); -} +::windows_core::imp::com_interface!(IInclinometerReadingYawAccuracy, IInclinometerReadingYawAccuracy_Vtbl, 0xb453e880_1fe3_4986_a257_e6ece2723949); #[repr(C)] #[doc(hidden)] pub struct IInclinometerReadingYawAccuracy_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub YawAccuracy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut MagnetometerAccuracy) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInclinometerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInclinometerStatics { - type Vtable = IInclinometerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInclinometerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf22ec551_9c30_453a_8b49_3c3eeb33cb61); -} +::windows_core::imp::com_interface!(IInclinometerStatics, IInclinometerStatics_Vtbl, 0xf22ec551_9c30_453a_8b49_3c3eeb33cb61); #[repr(C)] #[doc(hidden)] pub struct IInclinometerStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetDefault: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInclinometerStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInclinometerStatics2 { - type Vtable = IInclinometerStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInclinometerStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x043f9775_6a1e_499c_86e0_638c1a864b00); -} +::windows_core::imp::com_interface!(IInclinometerStatics2, IInclinometerStatics2_Vtbl, 0x043f9775_6a1e_499c_86e0_638c1a864b00); #[repr(C)] #[doc(hidden)] pub struct IInclinometerStatics2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetDefaultForRelativeReadings: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInclinometerStatics3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInclinometerStatics3 { - type Vtable = IInclinometerStatics3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInclinometerStatics3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbd9a4280_b91a_4829_9392_abc0b6bdf2b4); -} +::windows_core::imp::com_interface!(IInclinometerStatics3, IInclinometerStatics3_Vtbl, 0xbd9a4280_b91a_4829_9392_abc0b6bdf2b4); #[repr(C)] #[doc(hidden)] pub struct IInclinometerStatics3_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetDefaultWithSensorReadingType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sensorreadingtype: SensorReadingType, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInclinometerStatics4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInclinometerStatics4 { - type Vtable = IInclinometerStatics4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInclinometerStatics4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe8ba96f9_6e85_4a83_aed0_d7cdcc9856c8); -} +::windows_core::imp::com_interface!(IInclinometerStatics4, IInclinometerStatics4_Vtbl, 0xe8ba96f9_6e85_4a83_aed0_d7cdcc9856c8); #[repr(C)] #[doc(hidden)] pub struct IInclinometerStatics4_Vtbl { @@ -1748,16 +930,7 @@ pub struct IInclinometerStatics4_Vtbl { pub GetDeviceSelector: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, readingtype: SensorReadingType, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub FromIdAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, deviceid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILightSensor(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILightSensor { - type Vtable = ILightSensor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILightSensor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf84c0718_0c54_47ae_922e_789f57fb03a0); -} +::windows_core::imp::com_interface!(ILightSensor, ILightSensor_Vtbl, 0xf84c0718_0c54_47ae_922e_789f57fb03a0); #[repr(C)] #[doc(hidden)] pub struct ILightSensor_Vtbl { @@ -1769,16 +942,7 @@ pub struct ILightSensor_Vtbl { pub ReadingChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveReadingChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILightSensor2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILightSensor2 { - type Vtable = ILightSensor2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILightSensor2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x486b24e8_a94c_4090_8f48_09f782a9f7d5); -} +::windows_core::imp::com_interface!(ILightSensor2, ILightSensor2_Vtbl, 0x486b24e8_a94c_4090_8f48_09f782a9f7d5); #[repr(C)] #[doc(hidden)] pub struct ILightSensor2_Vtbl { @@ -1787,32 +951,14 @@ pub struct ILightSensor2_Vtbl { pub ReportLatency: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, pub MaxBatchSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILightSensor3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILightSensor3 { - type Vtable = ILightSensor3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILightSensor3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4876d0ff_9f4c_5f72_adbd_a3471b063c00); -} +::windows_core::imp::com_interface!(ILightSensor3, ILightSensor3_Vtbl, 0x4876d0ff_9f4c_5f72_adbd_a3471b063c00); #[repr(C)] #[doc(hidden)] pub struct ILightSensor3_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ReportThreshold: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILightSensorDataThreshold(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILightSensorDataThreshold { - type Vtable = ILightSensorDataThreshold_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILightSensorDataThreshold { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb160afd1_878f_5492_9f2c_33dc3ae584a3); -} +::windows_core::imp::com_interface!(ILightSensorDataThreshold, ILightSensorDataThreshold_Vtbl, 0xb160afd1_878f_5492_9f2c_33dc3ae584a3); #[repr(C)] #[doc(hidden)] pub struct ILightSensorDataThreshold_Vtbl { @@ -1822,32 +968,14 @@ pub struct ILightSensorDataThreshold_Vtbl { pub AbsoluteLux: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows_core::HRESULT, pub SetAbsoluteLux: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILightSensorDeviceId(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILightSensorDeviceId { - type Vtable = ILightSensorDeviceId_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILightSensorDeviceId { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7fee49f8_0afb_4f51_87f0_6c26375ce94f); -} +::windows_core::imp::com_interface!(ILightSensorDeviceId, ILightSensorDeviceId_Vtbl, 0x7fee49f8_0afb_4f51_87f0_6c26375ce94f); #[repr(C)] #[doc(hidden)] pub struct ILightSensorDeviceId_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub DeviceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILightSensorReading(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILightSensorReading { - type Vtable = ILightSensorReading_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILightSensorReading { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xffdf6300_227c_4d2b_b302_fc0142485c68); -} +::windows_core::imp::com_interface!(ILightSensorReading, ILightSensorReading_Vtbl, 0xffdf6300_227c_4d2b_b302_fc0142485c68); #[repr(C)] #[doc(hidden)] pub struct ILightSensorReading_Vtbl { @@ -1855,16 +983,7 @@ pub struct ILightSensorReading_Vtbl { pub Timestamp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::DateTime) -> ::windows_core::HRESULT, pub IlluminanceInLux: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILightSensorReading2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILightSensorReading2 { - type Vtable = ILightSensorReading2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILightSensorReading2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb7512185_44a3_44c9_8190_9ef6de0a8a74); -} +::windows_core::imp::com_interface!(ILightSensorReading2, ILightSensorReading2_Vtbl, 0xb7512185_44a3_44c9_8190_9ef6de0a8a74); #[repr(C)] #[doc(hidden)] pub struct ILightSensorReading2_Vtbl { @@ -1875,48 +994,21 @@ pub struct ILightSensorReading2_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Properties: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILightSensorReadingChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILightSensorReadingChangedEventArgs { - type Vtable = ILightSensorReadingChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILightSensorReadingChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa3a2f4cf_258b_420c_b8ab_8edd601ecf50); -} +::windows_core::imp::com_interface!(ILightSensorReadingChangedEventArgs, ILightSensorReadingChangedEventArgs_Vtbl, 0xa3a2f4cf_258b_420c_b8ab_8edd601ecf50); #[repr(C)] #[doc(hidden)] pub struct ILightSensorReadingChangedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Reading: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILightSensorStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILightSensorStatics { - type Vtable = ILightSensorStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILightSensorStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x45db8c84_c3a8_471e_9a53_6457fad87c0e); -} +::windows_core::imp::com_interface!(ILightSensorStatics, ILightSensorStatics_Vtbl, 0x45db8c84_c3a8_471e_9a53_6457fad87c0e); #[repr(C)] #[doc(hidden)] pub struct ILightSensorStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetDefault: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILightSensorStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILightSensorStatics2 { - type Vtable = ILightSensorStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILightSensorStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0ec0a650_ddc6_40ab_ace3_ec3359d42c51); -} +::windows_core::imp::com_interface!(ILightSensorStatics2, ILightSensorStatics2_Vtbl, 0x0ec0a650_ddc6_40ab_ace3_ec3359d42c51); #[repr(C)] #[doc(hidden)] pub struct ILightSensorStatics2_Vtbl { @@ -1924,16 +1016,7 @@ pub struct ILightSensorStatics2_Vtbl { pub GetDeviceSelector: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub FromIdAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, deviceid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILockOnLeaveOptions(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILockOnLeaveOptions { - type Vtable = ILockOnLeaveOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILockOnLeaveOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3c6bf8bd_04c1_5829_8d4e_70521755b8be); -} +::windows_core::imp::com_interface!(ILockOnLeaveOptions, ILockOnLeaveOptions_Vtbl, 0x3c6bf8bd_04c1_5829_8d4e_70521755b8be); #[repr(C)] #[doc(hidden)] pub struct ILockOnLeaveOptions_Vtbl { @@ -1941,16 +1024,7 @@ pub struct ILockOnLeaveOptions_Vtbl { pub AllowWhenExternalDisplayConnected: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetAllowWhenExternalDisplayConnected: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMagnetometer(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMagnetometer { - type Vtable = IMagnetometer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMagnetometer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x484f626e_d3c9_4111_b3f6_2cf1faa418d5); -} +::windows_core::imp::com_interface!(IMagnetometer, IMagnetometer_Vtbl, 0x484f626e_d3c9_4111_b3f6_2cf1faa418d5); #[repr(C)] #[doc(hidden)] pub struct IMagnetometer_Vtbl { @@ -1962,16 +1036,7 @@ pub struct IMagnetometer_Vtbl { pub ReadingChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveReadingChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMagnetometer2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMagnetometer2 { - type Vtable = IMagnetometer2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMagnetometer2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb4656c85_26f6_444b_a9e2_a23f966cd368); -} +::windows_core::imp::com_interface!(IMagnetometer2, IMagnetometer2_Vtbl, 0xb4656c85_26f6_444b_a9e2_a23f966cd368); #[repr(C)] #[doc(hidden)] pub struct IMagnetometer2_Vtbl { @@ -1985,16 +1050,7 @@ pub struct IMagnetometer2_Vtbl { #[cfg(not(feature = "Graphics_Display"))] ReadingTransform: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMagnetometer3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMagnetometer3 { - type Vtable = IMagnetometer3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMagnetometer3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbe93db7c_a625_48ef_acf7_fac104832671); -} +::windows_core::imp::com_interface!(IMagnetometer3, IMagnetometer3_Vtbl, 0xbe93db7c_a625_48ef_acf7_fac104832671); #[repr(C)] #[doc(hidden)] pub struct IMagnetometer3_Vtbl { @@ -2003,32 +1059,14 @@ pub struct IMagnetometer3_Vtbl { pub ReportLatency: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, pub MaxBatchSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMagnetometer4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMagnetometer4 { - type Vtable = IMagnetometer4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMagnetometer4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdfb17901_3e0f_508f_b24b_f2bb75015f40); -} +::windows_core::imp::com_interface!(IMagnetometer4, IMagnetometer4_Vtbl, 0xdfb17901_3e0f_508f_b24b_f2bb75015f40); #[repr(C)] #[doc(hidden)] pub struct IMagnetometer4_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ReportThreshold: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMagnetometerDataThreshold(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMagnetometerDataThreshold { - type Vtable = IMagnetometerDataThreshold_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMagnetometerDataThreshold { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd177cb01_9063_5fa5_b596_b445e9dc3401); -} +::windows_core::imp::com_interface!(IMagnetometerDataThreshold, IMagnetometerDataThreshold_Vtbl, 0xd177cb01_9063_5fa5_b596_b445e9dc3401); #[repr(C)] #[doc(hidden)] pub struct IMagnetometerDataThreshold_Vtbl { @@ -2040,32 +1078,14 @@ pub struct IMagnetometerDataThreshold_Vtbl { pub ZAxisMicroteslas: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows_core::HRESULT, pub SetZAxisMicroteslas: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMagnetometerDeviceId(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMagnetometerDeviceId { - type Vtable = IMagnetometerDeviceId_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMagnetometerDeviceId { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x58b498c2_7e4b_404c_9fc5_5de8b40ebae3); -} +::windows_core::imp::com_interface!(IMagnetometerDeviceId, IMagnetometerDeviceId_Vtbl, 0x58b498c2_7e4b_404c_9fc5_5de8b40ebae3); #[repr(C)] #[doc(hidden)] pub struct IMagnetometerDeviceId_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub DeviceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMagnetometerReading(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMagnetometerReading { - type Vtable = IMagnetometerReading_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMagnetometerReading { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c2cc40d_ebfd_4e5c_bb11_afc29b3cae61); -} +::windows_core::imp::com_interface!(IMagnetometerReading, IMagnetometerReading_Vtbl, 0x0c2cc40d_ebfd_4e5c_bb11_afc29b3cae61); #[repr(C)] #[doc(hidden)] pub struct IMagnetometerReading_Vtbl { @@ -2076,16 +1096,7 @@ pub struct IMagnetometerReading_Vtbl { pub MagneticFieldZ: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows_core::HRESULT, pub DirectionalAccuracy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut MagnetometerAccuracy) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMagnetometerReading2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMagnetometerReading2 { - type Vtable = IMagnetometerReading2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMagnetometerReading2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd4c95c61_61d9_404b_a328_066f177a1409); -} +::windows_core::imp::com_interface!(IMagnetometerReading2, IMagnetometerReading2_Vtbl, 0xd4c95c61_61d9_404b_a328_066f177a1409); #[repr(C)] #[doc(hidden)] pub struct IMagnetometerReading2_Vtbl { @@ -2096,48 +1107,21 @@ pub struct IMagnetometerReading2_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Properties: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMagnetometerReadingChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMagnetometerReadingChangedEventArgs { - type Vtable = IMagnetometerReadingChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMagnetometerReadingChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x17eae872_2eb9_4ee7_8ad0_3127537d949b); -} +::windows_core::imp::com_interface!(IMagnetometerReadingChangedEventArgs, IMagnetometerReadingChangedEventArgs_Vtbl, 0x17eae872_2eb9_4ee7_8ad0_3127537d949b); #[repr(C)] #[doc(hidden)] pub struct IMagnetometerReadingChangedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Reading: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMagnetometerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMagnetometerStatics { - type Vtable = IMagnetometerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMagnetometerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x853c64cc_0698_4dda_a6df_9cb9cc4ab40a); -} +::windows_core::imp::com_interface!(IMagnetometerStatics, IMagnetometerStatics_Vtbl, 0x853c64cc_0698_4dda_a6df_9cb9cc4ab40a); #[repr(C)] #[doc(hidden)] pub struct IMagnetometerStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetDefault: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMagnetometerStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMagnetometerStatics2 { - type Vtable = IMagnetometerStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMagnetometerStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2c0819f0_ffc6_4f89_a06f_18fa10792933); -} +::windows_core::imp::com_interface!(IMagnetometerStatics2, IMagnetometerStatics2_Vtbl, 0x2c0819f0_ffc6_4f89_a06f_18fa10792933); #[repr(C)] #[doc(hidden)] pub struct IMagnetometerStatics2_Vtbl { @@ -2145,16 +1129,7 @@ pub struct IMagnetometerStatics2_Vtbl { pub GetDeviceSelector: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub FromIdAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, deviceid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOrientationSensor(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOrientationSensor { - type Vtable = IOrientationSensor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOrientationSensor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5e354635_cf6b_4c63_abd8_10252b0bf6ec); -} +::windows_core::imp::com_interface!(IOrientationSensor, IOrientationSensor_Vtbl, 0x5e354635_cf6b_4c63_abd8_10252b0bf6ec); #[repr(C)] #[doc(hidden)] pub struct IOrientationSensor_Vtbl { @@ -2166,16 +1141,7 @@ pub struct IOrientationSensor_Vtbl { pub ReadingChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveReadingChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOrientationSensor2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOrientationSensor2 { - type Vtable = IOrientationSensor2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOrientationSensor2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0d924cf9_2f1f_49c9_8042_4a1813d67760); -} +::windows_core::imp::com_interface!(IOrientationSensor2, IOrientationSensor2_Vtbl, 0x0d924cf9_2f1f_49c9_8042_4a1813d67760); #[repr(C)] #[doc(hidden)] pub struct IOrientationSensor2_Vtbl { @@ -2190,16 +1156,7 @@ pub struct IOrientationSensor2_Vtbl { ReadingTransform: usize, pub ReadingType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut SensorReadingType) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOrientationSensor3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOrientationSensor3 { - type Vtable = IOrientationSensor3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOrientationSensor3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2cce578d_646b_48c5_b7ee_44fdc4c6aafd); -} +::windows_core::imp::com_interface!(IOrientationSensor3, IOrientationSensor3_Vtbl, 0x2cce578d_646b_48c5_b7ee_44fdc4c6aafd); #[repr(C)] #[doc(hidden)] pub struct IOrientationSensor3_Vtbl { @@ -2208,32 +1165,14 @@ pub struct IOrientationSensor3_Vtbl { pub ReportLatency: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, pub MaxBatchSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOrientationSensorDeviceId(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOrientationSensorDeviceId { - type Vtable = IOrientationSensorDeviceId_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOrientationSensorDeviceId { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5a69b648_4c29_49ec_b28f_ea1d117b66f0); -} +::windows_core::imp::com_interface!(IOrientationSensorDeviceId, IOrientationSensorDeviceId_Vtbl, 0x5a69b648_4c29_49ec_b28f_ea1d117b66f0); #[repr(C)] #[doc(hidden)] pub struct IOrientationSensorDeviceId_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub DeviceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOrientationSensorReading(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOrientationSensorReading { - type Vtable = IOrientationSensorReading_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOrientationSensorReading { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4756c993_6595_4897_bcc6_d537ee757564); -} +::windows_core::imp::com_interface!(IOrientationSensorReading, IOrientationSensorReading_Vtbl, 0x4756c993_6595_4897_bcc6_d537ee757564); #[repr(C)] #[doc(hidden)] pub struct IOrientationSensorReading_Vtbl { @@ -2242,16 +1181,7 @@ pub struct IOrientationSensorReading_Vtbl { pub RotationMatrix: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Quaternion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOrientationSensorReading2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOrientationSensorReading2 { - type Vtable = IOrientationSensorReading2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOrientationSensorReading2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00576e5f_49f8_4c05_9e07_24fac79408c3); -} +::windows_core::imp::com_interface!(IOrientationSensorReading2, IOrientationSensorReading2_Vtbl, 0x00576e5f_49f8_4c05_9e07_24fac79408c3); #[repr(C)] #[doc(hidden)] pub struct IOrientationSensorReading2_Vtbl { @@ -2262,80 +1192,35 @@ pub struct IOrientationSensorReading2_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Properties: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOrientationSensorReadingChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOrientationSensorReadingChangedEventArgs { - type Vtable = IOrientationSensorReadingChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOrientationSensorReadingChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x012c1186_c3ba_46bc_ae65_7a98996cbfb8); -} +::windows_core::imp::com_interface!(IOrientationSensorReadingChangedEventArgs, IOrientationSensorReadingChangedEventArgs_Vtbl, 0x012c1186_c3ba_46bc_ae65_7a98996cbfb8); #[repr(C)] #[doc(hidden)] pub struct IOrientationSensorReadingChangedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Reading: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOrientationSensorReadingYawAccuracy(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOrientationSensorReadingYawAccuracy { - type Vtable = IOrientationSensorReadingYawAccuracy_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOrientationSensorReadingYawAccuracy { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd1ac9824_3f5a_49a2_bc7b_1180bc38cd2b); -} +::windows_core::imp::com_interface!(IOrientationSensorReadingYawAccuracy, IOrientationSensorReadingYawAccuracy_Vtbl, 0xd1ac9824_3f5a_49a2_bc7b_1180bc38cd2b); #[repr(C)] #[doc(hidden)] pub struct IOrientationSensorReadingYawAccuracy_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub YawAccuracy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut MagnetometerAccuracy) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOrientationSensorStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOrientationSensorStatics { - type Vtable = IOrientationSensorStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOrientationSensorStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x10ef8712_fb4c_428a_898b_2765e409e669); -} +::windows_core::imp::com_interface!(IOrientationSensorStatics, IOrientationSensorStatics_Vtbl, 0x10ef8712_fb4c_428a_898b_2765e409e669); #[repr(C)] #[doc(hidden)] pub struct IOrientationSensorStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetDefault: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOrientationSensorStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOrientationSensorStatics2 { - type Vtable = IOrientationSensorStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOrientationSensorStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x59da0d0b_d40a_4c71_9276_8a272a0a6619); -} +::windows_core::imp::com_interface!(IOrientationSensorStatics2, IOrientationSensorStatics2_Vtbl, 0x59da0d0b_d40a_4c71_9276_8a272a0a6619); #[repr(C)] #[doc(hidden)] pub struct IOrientationSensorStatics2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetDefaultForRelativeReadings: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOrientationSensorStatics3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOrientationSensorStatics3 { - type Vtable = IOrientationSensorStatics3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOrientationSensorStatics3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd82ce920_2777_40ff_9f59_d654b085f12f); -} +::windows_core::imp::com_interface!(IOrientationSensorStatics3, IOrientationSensorStatics3_Vtbl, 0xd82ce920_2777_40ff_9f59_d654b085f12f); #[repr(C)] #[doc(hidden)] pub struct IOrientationSensorStatics3_Vtbl { @@ -2343,16 +1228,7 @@ pub struct IOrientationSensorStatics3_Vtbl { pub GetDefaultWithSensorReadingType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sensorreadingtype: SensorReadingType, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDefaultWithSensorReadingTypeAndSensorOptimizationGoal: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sensorreadingtype: SensorReadingType, optimizationgoal: SensorOptimizationGoal, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOrientationSensorStatics4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOrientationSensorStatics4 { - type Vtable = IOrientationSensorStatics4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOrientationSensorStatics4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa67feb55_2c85_4b28_a0fe_58c4b20495f5); -} +::windows_core::imp::com_interface!(IOrientationSensorStatics4, IOrientationSensorStatics4_Vtbl, 0xa67feb55_2c85_4b28_a0fe_58c4b20495f5); #[repr(C)] #[doc(hidden)] pub struct IOrientationSensorStatics4_Vtbl { @@ -2361,16 +1237,7 @@ pub struct IOrientationSensorStatics4_Vtbl { pub GetDeviceSelectorWithSensorReadingTypeAndSensorOptimizationGoal: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, readingtype: SensorReadingType, optimizationgoal: SensorOptimizationGoal, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub FromIdAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, deviceid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPedometer(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPedometer { - type Vtable = IPedometer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPedometer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9a1e013d_3d98_45f8_8920_8e4ecaca5f97); -} +::windows_core::imp::com_interface!(IPedometer, IPedometer_Vtbl, 0x9a1e013d_3d98_45f8_8920_8e4ecaca5f97); #[repr(C)] #[doc(hidden)] pub struct IPedometer_Vtbl { @@ -2383,16 +1250,7 @@ pub struct IPedometer_Vtbl { pub ReadingChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveReadingChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPedometer2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPedometer2 { - type Vtable = IPedometer2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPedometer2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe5a406df_2b81_4add_b2ff_77ab6c98ba19); -} +::windows_core::imp::com_interface!(IPedometer2, IPedometer2_Vtbl, 0xe5a406df_2b81_4add_b2ff_77ab6c98ba19); #[repr(C)] #[doc(hidden)] pub struct IPedometer2_Vtbl { @@ -2402,32 +1260,14 @@ pub struct IPedometer2_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetCurrentReadings: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPedometerDataThresholdFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPedometerDataThresholdFactory { - type Vtable = IPedometerDataThresholdFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPedometerDataThresholdFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcbad8f50_7a54_466b_9010_77a162fca5d7); -} +::windows_core::imp::com_interface!(IPedometerDataThresholdFactory, IPedometerDataThresholdFactory_Vtbl, 0xcbad8f50_7a54_466b_9010_77a162fca5d7); #[repr(C)] #[doc(hidden)] pub struct IPedometerDataThresholdFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sensor: *mut ::core::ffi::c_void, stepgoal: i32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPedometerReading(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPedometerReading { - type Vtable = IPedometerReading_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPedometerReading { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2245dcf4_a8e1_432f_896a_be0dd9b02d24); -} +::windows_core::imp::com_interface!(IPedometerReading, IPedometerReading_Vtbl, 0x2245dcf4_a8e1_432f_896a_be0dd9b02d24); #[repr(C)] #[doc(hidden)] pub struct IPedometerReading_Vtbl { @@ -2437,32 +1277,14 @@ pub struct IPedometerReading_Vtbl { pub Timestamp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::DateTime) -> ::windows_core::HRESULT, pub CumulativeStepsDuration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::TimeSpan) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPedometerReadingChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPedometerReadingChangedEventArgs { - type Vtable = IPedometerReadingChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPedometerReadingChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf855e47e_abbc_4456_86a8_25cf2b333742); -} +::windows_core::imp::com_interface!(IPedometerReadingChangedEventArgs, IPedometerReadingChangedEventArgs_Vtbl, 0xf855e47e_abbc_4456_86a8_25cf2b333742); #[repr(C)] #[doc(hidden)] pub struct IPedometerReadingChangedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Reading: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPedometerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPedometerStatics { - type Vtable = IPedometerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPedometerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x82980a2f_4083_4dfb_b411_938ea0f4b946); -} +::windows_core::imp::com_interface!(IPedometerStatics, IPedometerStatics_Vtbl, 0x82980a2f_4083_4dfb_b411_938ea0f4b946); #[repr(C)] #[doc(hidden)] pub struct IPedometerStatics_Vtbl { @@ -2479,16 +1301,7 @@ pub struct IPedometerStatics_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetSystemHistoryWithDurationAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPedometerStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPedometerStatics2 { - type Vtable = IPedometerStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPedometerStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x79f5c6bb_ce0e_4133_b47e_8627ea72f677); -} +::windows_core::imp::com_interface!(IPedometerStatics2, IPedometerStatics2_Vtbl, 0x79f5c6bb_ce0e_4133_b47e_8627ea72f677); #[repr(C)] #[doc(hidden)] pub struct IPedometerStatics2_Vtbl { @@ -2498,16 +1311,7 @@ pub struct IPedometerStatics2_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetReadingsFromTriggerDetails: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProximitySensor(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProximitySensor { - type Vtable = IProximitySensor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProximitySensor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x54c076b8_ecfb_4944_b928_74fc504d47ee); -} +::windows_core::imp::com_interface!(IProximitySensor, IProximitySensor_Vtbl, 0x54c076b8_ecfb_4944_b928_74fc504d47ee); #[repr(C)] #[doc(hidden)] pub struct IProximitySensor_Vtbl { @@ -2520,32 +1324,14 @@ pub struct IProximitySensor_Vtbl { pub RemoveReadingChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub CreateDisplayOnOffController: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProximitySensorDataThresholdFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProximitySensorDataThresholdFactory { - type Vtable = IProximitySensorDataThresholdFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProximitySensorDataThresholdFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x905ac121_6d27_4ad3_9db5_6467f2a5ad9d); -} +::windows_core::imp::com_interface!(IProximitySensorDataThresholdFactory, IProximitySensorDataThresholdFactory_Vtbl, 0x905ac121_6d27_4ad3_9db5_6467f2a5ad9d); #[repr(C)] #[doc(hidden)] pub struct IProximitySensorDataThresholdFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sensor: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProximitySensorReading(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProximitySensorReading { - type Vtable = IProximitySensorReading_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProximitySensorReading { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x71228d59_132d_4d5f_8ff9_2f0db8751ced); -} +::windows_core::imp::com_interface!(IProximitySensorReading, IProximitySensorReading_Vtbl, 0x71228d59_132d_4d5f_8ff9_2f0db8751ced); #[repr(C)] #[doc(hidden)] pub struct IProximitySensorReading_Vtbl { @@ -2554,32 +1340,14 @@ pub struct IProximitySensorReading_Vtbl { pub IsDetected: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub DistanceInMillimeters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProximitySensorReadingChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProximitySensorReadingChangedEventArgs { - type Vtable = IProximitySensorReadingChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProximitySensorReadingChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcfc2f366_c3e8_40fd_8cc3_67e289004938); -} +::windows_core::imp::com_interface!(IProximitySensorReadingChangedEventArgs, IProximitySensorReadingChangedEventArgs_Vtbl, 0xcfc2f366_c3e8_40fd_8cc3_67e289004938); #[repr(C)] #[doc(hidden)] pub struct IProximitySensorReadingChangedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Reading: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProximitySensorStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProximitySensorStatics { - type Vtable = IProximitySensorStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProximitySensorStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x29186649_6269_4e57_a5ad_82be80813392); -} +::windows_core::imp::com_interface!(IProximitySensorStatics, IProximitySensorStatics_Vtbl, 0x29186649_6269_4e57_a5ad_82be80813392); #[repr(C)] #[doc(hidden)] pub struct IProximitySensorStatics_Vtbl { @@ -2587,16 +1355,7 @@ pub struct IProximitySensorStatics_Vtbl { pub GetDeviceSelector: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub FromId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sensorid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProximitySensorStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProximitySensorStatics2 { - type Vtable = IProximitySensorStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProximitySensorStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcbf473ae_e9ca_422f_ad67_4c3d25df350c); -} +::windows_core::imp::com_interface!(IProximitySensorStatics2, IProximitySensorStatics2_Vtbl, 0xcbf473ae_e9ca_422f_ad67_4c3d25df350c); #[repr(C)] #[doc(hidden)] pub struct IProximitySensorStatics2_Vtbl { @@ -2606,35 +1365,18 @@ pub struct IProximitySensorStatics2_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetReadingsFromTriggerDetails: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISensorDataThreshold(::windows_core::IUnknown); -impl ISensorDataThreshold {} +::windows_core::imp::com_interface!(ISensorDataThreshold, ISensorDataThreshold_Vtbl, 0x54daec61_fe4b_4e07_b260_3a4cdfbe396e); ::windows_core::imp::interface_hierarchy!(ISensorDataThreshold, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::RuntimeType for ISensorDataThreshold { - const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); -} -unsafe impl ::windows_core::Interface for ISensorDataThreshold { - type Vtable = ISensorDataThreshold_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISensorDataThreshold { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x54daec61_fe4b_4e07_b260_3a4cdfbe396e); +impl ISensorDataThreshold {} +impl ::windows_core::RuntimeType for ISensorDataThreshold { + const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } #[repr(C)] #[doc(hidden)] pub struct ISensorDataThreshold_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISensorDataThresholdTriggerDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISensorDataThresholdTriggerDetails { - type Vtable = ISensorDataThresholdTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISensorDataThresholdTriggerDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9106f1b7_e88d_48b1_bc90_619c7b349391); -} +::windows_core::imp::com_interface!(ISensorDataThresholdTriggerDetails, ISensorDataThresholdTriggerDetails_Vtbl, 0x9106f1b7_e88d_48b1_bc90_619c7b349391); #[repr(C)] #[doc(hidden)] pub struct ISensorDataThresholdTriggerDetails_Vtbl { @@ -2642,16 +1384,7 @@ pub struct ISensorDataThresholdTriggerDetails_Vtbl { pub DeviceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SensorType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut SensorType) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISensorQuaternion(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISensorQuaternion { - type Vtable = ISensorQuaternion_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISensorQuaternion { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc9c5c827_c71c_46e7_9da3_36a193b232bc); -} +::windows_core::imp::com_interface!(ISensorQuaternion, ISensorQuaternion_Vtbl, 0xc9c5c827_c71c_46e7_9da3_36a193b232bc); #[repr(C)] #[doc(hidden)] pub struct ISensorQuaternion_Vtbl { @@ -2661,16 +1394,7 @@ pub struct ISensorQuaternion_Vtbl { pub Y: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows_core::HRESULT, pub Z: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISensorRotationMatrix(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISensorRotationMatrix { - type Vtable = ISensorRotationMatrix_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISensorRotationMatrix { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0a3d5a67_22f4_4392_9538_65d0bd064aa6); -} +::windows_core::imp::com_interface!(ISensorRotationMatrix, ISensorRotationMatrix_Vtbl, 0x0a3d5a67_22f4_4392_9538_65d0bd064aa6); #[repr(C)] #[doc(hidden)] pub struct ISensorRotationMatrix_Vtbl { @@ -2685,16 +1409,7 @@ pub struct ISensorRotationMatrix_Vtbl { pub M32: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows_core::HRESULT, pub M33: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISimpleOrientationSensor(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISimpleOrientationSensor { - type Vtable = ISimpleOrientationSensor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISimpleOrientationSensor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5ff53856_214a_4dee_a3f9_616f1ab06ffd); -} +::windows_core::imp::com_interface!(ISimpleOrientationSensor, ISimpleOrientationSensor_Vtbl, 0x5ff53856_214a_4dee_a3f9_616f1ab06ffd); #[repr(C)] #[doc(hidden)] pub struct ISimpleOrientationSensor_Vtbl { @@ -2703,16 +1418,7 @@ pub struct ISimpleOrientationSensor_Vtbl { pub OrientationChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveOrientationChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISimpleOrientationSensor2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISimpleOrientationSensor2 { - type Vtable = ISimpleOrientationSensor2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISimpleOrientationSensor2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa277a798_8870_453e_8bd6_b8f5d8d7941b); -} +::windows_core::imp::com_interface!(ISimpleOrientationSensor2, ISimpleOrientationSensor2_Vtbl, 0xa277a798_8870_453e_8bd6_b8f5d8d7941b); #[repr(C)] #[doc(hidden)] pub struct ISimpleOrientationSensor2_Vtbl { @@ -2726,32 +1432,14 @@ pub struct ISimpleOrientationSensor2_Vtbl { #[cfg(not(feature = "Graphics_Display"))] ReadingTransform: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISimpleOrientationSensorDeviceId(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISimpleOrientationSensorDeviceId { - type Vtable = ISimpleOrientationSensorDeviceId_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISimpleOrientationSensorDeviceId { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfbc00acb_3b76_41f6_8091_30efe646d3cf); -} +::windows_core::imp::com_interface!(ISimpleOrientationSensorDeviceId, ISimpleOrientationSensorDeviceId_Vtbl, 0xfbc00acb_3b76_41f6_8091_30efe646d3cf); #[repr(C)] #[doc(hidden)] pub struct ISimpleOrientationSensorDeviceId_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub DeviceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISimpleOrientationSensorOrientationChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISimpleOrientationSensorOrientationChangedEventArgs { - type Vtable = ISimpleOrientationSensorOrientationChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISimpleOrientationSensorOrientationChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbcd5c660_23d4_4b4c_a22e_ba81ade0c601); -} +::windows_core::imp::com_interface!(ISimpleOrientationSensorOrientationChangedEventArgs, ISimpleOrientationSensorOrientationChangedEventArgs_Vtbl, 0xbcd5c660_23d4_4b4c_a22e_ba81ade0c601); #[repr(C)] #[doc(hidden)] pub struct ISimpleOrientationSensorOrientationChangedEventArgs_Vtbl { @@ -2759,32 +1447,14 @@ pub struct ISimpleOrientationSensorOrientationChangedEventArgs_Vtbl { pub Timestamp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::DateTime) -> ::windows_core::HRESULT, pub Orientation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut SimpleOrientation) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISimpleOrientationSensorStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISimpleOrientationSensorStatics { - type Vtable = ISimpleOrientationSensorStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISimpleOrientationSensorStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x72ed066f_70aa_40c6_9b1b_3433f7459b4e); -} +::windows_core::imp::com_interface!(ISimpleOrientationSensorStatics, ISimpleOrientationSensorStatics_Vtbl, 0x72ed066f_70aa_40c6_9b1b_3433f7459b4e); #[repr(C)] #[doc(hidden)] pub struct ISimpleOrientationSensorStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetDefault: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISimpleOrientationSensorStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISimpleOrientationSensorStatics2 { - type Vtable = ISimpleOrientationSensorStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISimpleOrientationSensorStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x848f9c7f_b138_4e11_8910_a2a2a3b56d83); -} +::windows_core::imp::com_interface!(ISimpleOrientationSensorStatics2, ISimpleOrientationSensorStatics2_Vtbl, 0x848f9c7f_b138_4e11_8910_a2a2a3b56d83); #[repr(C)] #[doc(hidden)] pub struct ISimpleOrientationSensorStatics2_Vtbl { @@ -2792,16 +1462,7 @@ pub struct ISimpleOrientationSensorStatics2_Vtbl { pub GetDeviceSelector: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub FromIdAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, deviceid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWakeOnApproachOptions(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWakeOnApproachOptions { - type Vtable = IWakeOnApproachOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWakeOnApproachOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf0b87ae7_7e1f_5ea5_814d_6b7e07defc2b); -} +::windows_core::imp::com_interface!(IWakeOnApproachOptions, IWakeOnApproachOptions_Vtbl, 0xf0b87ae7_7e1f_5ea5_814d_6b7e07defc2b); #[repr(C)] #[doc(hidden)] pub struct IWakeOnApproachOptions_Vtbl { @@ -2814,6 +1475,7 @@ pub struct IWakeOnApproachOptions_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Accelerometer(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Accelerometer, ::windows_core::IUnknown, ::windows_core::IInspectable); impl Accelerometer { pub fn GetCurrentReading(&self) -> ::windows_core::Result { let this = self; @@ -2871,52 +1533,52 @@ impl Accelerometer { #[doc = "Required features: `\"Graphics_Display\"`"] #[cfg(feature = "Graphics_Display")] pub fn SetReadingTransform(&self, value: super::super::Graphics::Display::DisplayOrientations) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetReadingTransform)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Graphics_Display\"`"] #[cfg(feature = "Graphics_Display")] pub fn ReadingTransform(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ReadingTransform)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetReportLatency(&self, value: u32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetReportLatency)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn ReportLatency(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ReportLatency)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn MaxBatchSize(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MaxBatchSize)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ReadingType(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ReadingType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ReportThreshold(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ReportThreshold)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn DeviceId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DeviceId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2967,19 +1629,17 @@ impl ::windows_core::RuntimeType for Accelerometer { } unsafe impl ::windows_core::Interface for Accelerometer { type Vtable = IAccelerometer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Accelerometer { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Accelerometer { const NAME: &'static str = "Windows.Devices.Sensors.Accelerometer"; } -::windows_core::imp::interface_hierarchy!(Accelerometer, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for Accelerometer {} unsafe impl ::core::marker::Sync for Accelerometer {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AccelerometerDataThreshold(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AccelerometerDataThreshold, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AccelerometerDataThreshold { pub fn XAxisInGForce(&self) -> ::windows_core::Result { let this = self; @@ -3020,19 +1680,17 @@ impl ::windows_core::RuntimeType for AccelerometerDataThreshold { } unsafe impl ::windows_core::Interface for AccelerometerDataThreshold { type Vtable = IAccelerometerDataThreshold_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AccelerometerDataThreshold { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AccelerometerDataThreshold { const NAME: &'static str = "Windows.Devices.Sensors.AccelerometerDataThreshold"; } -::windows_core::imp::interface_hierarchy!(AccelerometerDataThreshold, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AccelerometerDataThreshold {} unsafe impl ::core::marker::Sync for AccelerometerDataThreshold {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AccelerometerReading(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AccelerometerReading, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AccelerometerReading { pub fn Timestamp(&self) -> ::windows_core::Result { let this = self; @@ -3063,7 +1721,7 @@ impl AccelerometerReading { } } pub fn PerformanceCount(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PerformanceCount)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3072,7 +1730,7 @@ impl AccelerometerReading { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Properties(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3084,19 +1742,17 @@ impl ::windows_core::RuntimeType for AccelerometerReading { } unsafe impl ::windows_core::Interface for AccelerometerReading { type Vtable = IAccelerometerReading_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AccelerometerReading { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AccelerometerReading { const NAME: &'static str = "Windows.Devices.Sensors.AccelerometerReading"; } -::windows_core::imp::interface_hierarchy!(AccelerometerReading, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AccelerometerReading {} unsafe impl ::core::marker::Sync for AccelerometerReading {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AccelerometerReadingChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AccelerometerReadingChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AccelerometerReadingChangedEventArgs { pub fn Reading(&self) -> ::windows_core::Result { let this = self; @@ -3111,19 +1767,17 @@ impl ::windows_core::RuntimeType for AccelerometerReadingChangedEventArgs { } unsafe impl ::windows_core::Interface for AccelerometerReadingChangedEventArgs { type Vtable = IAccelerometerReadingChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AccelerometerReadingChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AccelerometerReadingChangedEventArgs { const NAME: &'static str = "Windows.Devices.Sensors.AccelerometerReadingChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(AccelerometerReadingChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AccelerometerReadingChangedEventArgs {} unsafe impl ::core::marker::Sync for AccelerometerReadingChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AccelerometerShakenEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AccelerometerShakenEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AccelerometerShakenEventArgs { pub fn Timestamp(&self) -> ::windows_core::Result { let this = self; @@ -3138,19 +1792,17 @@ impl ::windows_core::RuntimeType for AccelerometerShakenEventArgs { } unsafe impl ::windows_core::Interface for AccelerometerShakenEventArgs { type Vtable = IAccelerometerShakenEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AccelerometerShakenEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AccelerometerShakenEventArgs { const NAME: &'static str = "Windows.Devices.Sensors.AccelerometerShakenEventArgs"; } -::windows_core::imp::interface_hierarchy!(AccelerometerShakenEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AccelerometerShakenEventArgs {} unsafe impl ::core::marker::Sync for AccelerometerShakenEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ActivitySensor(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ActivitySensor, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ActivitySensor { pub fn GetCurrentReadingAsync(&self) -> ::windows_core::Result> { let this = self; @@ -3257,19 +1909,17 @@ impl ::windows_core::RuntimeType for ActivitySensor { } unsafe impl ::windows_core::Interface for ActivitySensor { type Vtable = IActivitySensor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ActivitySensor { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ActivitySensor { const NAME: &'static str = "Windows.Devices.Sensors.ActivitySensor"; } -::windows_core::imp::interface_hierarchy!(ActivitySensor, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ActivitySensor {} unsafe impl ::core::marker::Sync for ActivitySensor {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ActivitySensorReading(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ActivitySensorReading, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ActivitySensorReading { pub fn Timestamp(&self) -> ::windows_core::Result { let this = self; @@ -3298,19 +1948,17 @@ impl ::windows_core::RuntimeType for ActivitySensorReading { } unsafe impl ::windows_core::Interface for ActivitySensorReading { type Vtable = IActivitySensorReading_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ActivitySensorReading { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ActivitySensorReading { const NAME: &'static str = "Windows.Devices.Sensors.ActivitySensorReading"; } -::windows_core::imp::interface_hierarchy!(ActivitySensorReading, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ActivitySensorReading {} unsafe impl ::core::marker::Sync for ActivitySensorReading {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ActivitySensorReadingChangeReport(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ActivitySensorReadingChangeReport, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ActivitySensorReadingChangeReport { pub fn Reading(&self) -> ::windows_core::Result { let this = self; @@ -3325,19 +1973,17 @@ impl ::windows_core::RuntimeType for ActivitySensorReadingChangeReport { } unsafe impl ::windows_core::Interface for ActivitySensorReadingChangeReport { type Vtable = IActivitySensorReadingChangeReport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ActivitySensorReadingChangeReport { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ActivitySensorReadingChangeReport { const NAME: &'static str = "Windows.Devices.Sensors.ActivitySensorReadingChangeReport"; } -::windows_core::imp::interface_hierarchy!(ActivitySensorReadingChangeReport, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ActivitySensorReadingChangeReport {} unsafe impl ::core::marker::Sync for ActivitySensorReadingChangeReport {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ActivitySensorReadingChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ActivitySensorReadingChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ActivitySensorReadingChangedEventArgs { pub fn Reading(&self) -> ::windows_core::Result { let this = self; @@ -3352,19 +1998,17 @@ impl ::windows_core::RuntimeType for ActivitySensorReadingChangedEventArgs { } unsafe impl ::windows_core::Interface for ActivitySensorReadingChangedEventArgs { type Vtable = IActivitySensorReadingChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ActivitySensorReadingChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ActivitySensorReadingChangedEventArgs { const NAME: &'static str = "Windows.Devices.Sensors.ActivitySensorReadingChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(ActivitySensorReadingChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ActivitySensorReadingChangedEventArgs {} unsafe impl ::core::marker::Sync for ActivitySensorReadingChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ActivitySensorTriggerDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ActivitySensorTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ActivitySensorTriggerDetails { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -3381,19 +2025,17 @@ impl ::windows_core::RuntimeType for ActivitySensorTriggerDetails { } unsafe impl ::windows_core::Interface for ActivitySensorTriggerDetails { type Vtable = IActivitySensorTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ActivitySensorTriggerDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ActivitySensorTriggerDetails { const NAME: &'static str = "Windows.Devices.Sensors.ActivitySensorTriggerDetails"; } -::windows_core::imp::interface_hierarchy!(ActivitySensorTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ActivitySensorTriggerDetails {} unsafe impl ::core::marker::Sync for ActivitySensorTriggerDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AdaptiveDimmingOptions(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AdaptiveDimmingOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AdaptiveDimmingOptions { pub fn AllowWhenExternalDisplayConnected(&self) -> ::windows_core::Result { let this = self; @@ -3412,19 +2054,17 @@ impl ::windows_core::RuntimeType for AdaptiveDimmingOptions { } unsafe impl ::windows_core::Interface for AdaptiveDimmingOptions { type Vtable = IAdaptiveDimmingOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AdaptiveDimmingOptions { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AdaptiveDimmingOptions { const NAME: &'static str = "Windows.Devices.Sensors.AdaptiveDimmingOptions"; } -::windows_core::imp::interface_hierarchy!(AdaptiveDimmingOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AdaptiveDimmingOptions {} unsafe impl ::core::marker::Sync for AdaptiveDimmingOptions {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Altimeter(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Altimeter, ::windows_core::IUnknown, ::windows_core::IInspectable); impl Altimeter { pub fn GetCurrentReading(&self) -> ::windows_core::Result { let this = self; @@ -3473,18 +2113,18 @@ impl Altimeter { unsafe { (::windows_core::Interface::vtable(this).RemoveReadingChanged)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn SetReportLatency(&self, value: u32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetReportLatency)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn ReportLatency(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ReportLatency)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn MaxBatchSize(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MaxBatchSize)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3507,19 +2147,17 @@ impl ::windows_core::RuntimeType for Altimeter { } unsafe impl ::windows_core::Interface for Altimeter { type Vtable = IAltimeter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Altimeter { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Altimeter { const NAME: &'static str = "Windows.Devices.Sensors.Altimeter"; } -::windows_core::imp::interface_hierarchy!(Altimeter, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for Altimeter {} unsafe impl ::core::marker::Sync for Altimeter {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AltimeterReading(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AltimeterReading, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AltimeterReading { pub fn Timestamp(&self) -> ::windows_core::Result { let this = self; @@ -3536,7 +2174,7 @@ impl AltimeterReading { } } pub fn PerformanceCount(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PerformanceCount)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3545,7 +2183,7 @@ impl AltimeterReading { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Properties(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3557,19 +2195,17 @@ impl ::windows_core::RuntimeType for AltimeterReading { } unsafe impl ::windows_core::Interface for AltimeterReading { type Vtable = IAltimeterReading_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AltimeterReading { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AltimeterReading { const NAME: &'static str = "Windows.Devices.Sensors.AltimeterReading"; } -::windows_core::imp::interface_hierarchy!(AltimeterReading, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AltimeterReading {} unsafe impl ::core::marker::Sync for AltimeterReading {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AltimeterReadingChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AltimeterReadingChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AltimeterReadingChangedEventArgs { pub fn Reading(&self) -> ::windows_core::Result { let this = self; @@ -3584,19 +2220,17 @@ impl ::windows_core::RuntimeType for AltimeterReadingChangedEventArgs { } unsafe impl ::windows_core::Interface for AltimeterReadingChangedEventArgs { type Vtable = IAltimeterReadingChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AltimeterReadingChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AltimeterReadingChangedEventArgs { const NAME: &'static str = "Windows.Devices.Sensors.AltimeterReadingChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(AltimeterReadingChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AltimeterReadingChangedEventArgs {} unsafe impl ::core::marker::Sync for AltimeterReadingChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Barometer(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Barometer, ::windows_core::IUnknown, ::windows_core::IInspectable); impl Barometer { pub fn GetCurrentReading(&self) -> ::windows_core::Result { let this = self; @@ -3645,25 +2279,25 @@ impl Barometer { unsafe { (::windows_core::Interface::vtable(this).RemoveReadingChanged)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn SetReportLatency(&self, value: u32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetReportLatency)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn ReportLatency(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ReportLatency)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn MaxBatchSize(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MaxBatchSize)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ReportThreshold(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ReportThreshold)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3703,19 +2337,17 @@ impl ::windows_core::RuntimeType for Barometer { } unsafe impl ::windows_core::Interface for Barometer { type Vtable = IBarometer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Barometer { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Barometer { const NAME: &'static str = "Windows.Devices.Sensors.Barometer"; } -::windows_core::imp::interface_hierarchy!(Barometer, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for Barometer {} unsafe impl ::core::marker::Sync for Barometer {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BarometerDataThreshold(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BarometerDataThreshold, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BarometerDataThreshold { pub fn Hectopascals(&self) -> ::windows_core::Result { let this = self; @@ -3734,19 +2366,17 @@ impl ::windows_core::RuntimeType for BarometerDataThreshold { } unsafe impl ::windows_core::Interface for BarometerDataThreshold { type Vtable = IBarometerDataThreshold_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BarometerDataThreshold { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BarometerDataThreshold { const NAME: &'static str = "Windows.Devices.Sensors.BarometerDataThreshold"; } -::windows_core::imp::interface_hierarchy!(BarometerDataThreshold, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BarometerDataThreshold {} unsafe impl ::core::marker::Sync for BarometerDataThreshold {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BarometerReading(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BarometerReading, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BarometerReading { pub fn Timestamp(&self) -> ::windows_core::Result { let this = self; @@ -3763,7 +2393,7 @@ impl BarometerReading { } } pub fn PerformanceCount(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PerformanceCount)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3772,7 +2402,7 @@ impl BarometerReading { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Properties(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3784,19 +2414,17 @@ impl ::windows_core::RuntimeType for BarometerReading { } unsafe impl ::windows_core::Interface for BarometerReading { type Vtable = IBarometerReading_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BarometerReading { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BarometerReading { const NAME: &'static str = "Windows.Devices.Sensors.BarometerReading"; } -::windows_core::imp::interface_hierarchy!(BarometerReading, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BarometerReading {} unsafe impl ::core::marker::Sync for BarometerReading {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BarometerReadingChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BarometerReadingChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BarometerReadingChangedEventArgs { pub fn Reading(&self) -> ::windows_core::Result { let this = self; @@ -3811,19 +2439,17 @@ impl ::windows_core::RuntimeType for BarometerReadingChangedEventArgs { } unsafe impl ::windows_core::Interface for BarometerReadingChangedEventArgs { type Vtable = IBarometerReadingChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BarometerReadingChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BarometerReadingChangedEventArgs { const NAME: &'static str = "Windows.Devices.Sensors.BarometerReadingChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(BarometerReadingChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BarometerReadingChangedEventArgs {} unsafe impl ::core::marker::Sync for BarometerReadingChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Compass(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Compass, ::windows_core::IUnknown, ::windows_core::IInspectable); impl Compass { pub fn GetCurrentReading(&self) -> ::windows_core::Result { let this = self; @@ -3867,45 +2493,45 @@ impl Compass { #[doc = "Required features: `\"Graphics_Display\"`"] #[cfg(feature = "Graphics_Display")] pub fn SetReadingTransform(&self, value: super::super::Graphics::Display::DisplayOrientations) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetReadingTransform)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Graphics_Display\"`"] #[cfg(feature = "Graphics_Display")] pub fn ReadingTransform(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ReadingTransform)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetReportLatency(&self, value: u32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetReportLatency)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn ReportLatency(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ReportLatency)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn MaxBatchSize(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MaxBatchSize)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ReportThreshold(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ReportThreshold)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn DeviceId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DeviceId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3945,19 +2571,17 @@ impl ::windows_core::RuntimeType for Compass { } unsafe impl ::windows_core::Interface for Compass { type Vtable = ICompass_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Compass { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Compass { const NAME: &'static str = "Windows.Devices.Sensors.Compass"; } -::windows_core::imp::interface_hierarchy!(Compass, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for Compass {} unsafe impl ::core::marker::Sync for Compass {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CompassDataThreshold(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CompassDataThreshold, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CompassDataThreshold { pub fn Degrees(&self) -> ::windows_core::Result { let this = self; @@ -3976,19 +2600,17 @@ impl ::windows_core::RuntimeType for CompassDataThreshold { } unsafe impl ::windows_core::Interface for CompassDataThreshold { type Vtable = ICompassDataThreshold_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CompassDataThreshold { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CompassDataThreshold { const NAME: &'static str = "Windows.Devices.Sensors.CompassDataThreshold"; } -::windows_core::imp::interface_hierarchy!(CompassDataThreshold, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CompassDataThreshold {} unsafe impl ::core::marker::Sync for CompassDataThreshold {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CompassReading(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CompassReading, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CompassReading { pub fn Timestamp(&self) -> ::windows_core::Result { let this = self; @@ -4012,7 +2634,7 @@ impl CompassReading { } } pub fn PerformanceCount(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PerformanceCount)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4021,14 +2643,14 @@ impl CompassReading { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Properties(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn HeadingAccuracy(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).HeadingAccuracy)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4040,19 +2662,17 @@ impl ::windows_core::RuntimeType for CompassReading { } unsafe impl ::windows_core::Interface for CompassReading { type Vtable = ICompassReading_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CompassReading { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CompassReading { const NAME: &'static str = "Windows.Devices.Sensors.CompassReading"; } -::windows_core::imp::interface_hierarchy!(CompassReading, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CompassReading {} unsafe impl ::core::marker::Sync for CompassReading {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CompassReadingChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CompassReadingChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CompassReadingChangedEventArgs { pub fn Reading(&self) -> ::windows_core::Result { let this = self; @@ -4067,19 +2687,17 @@ impl ::windows_core::RuntimeType for CompassReadingChangedEventArgs { } unsafe impl ::windows_core::Interface for CompassReadingChangedEventArgs { type Vtable = ICompassReadingChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CompassReadingChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CompassReadingChangedEventArgs { const NAME: &'static str = "Windows.Devices.Sensors.CompassReadingChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(CompassReadingChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CompassReadingChangedEventArgs {} unsafe impl ::core::marker::Sync for CompassReadingChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Gyrometer(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Gyrometer, ::windows_core::IUnknown, ::windows_core::IInspectable); impl Gyrometer { pub fn GetCurrentReading(&self) -> ::windows_core::Result { let this = self; @@ -4123,45 +2741,45 @@ impl Gyrometer { #[doc = "Required features: `\"Graphics_Display\"`"] #[cfg(feature = "Graphics_Display")] pub fn SetReadingTransform(&self, value: super::super::Graphics::Display::DisplayOrientations) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetReadingTransform)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Graphics_Display\"`"] #[cfg(feature = "Graphics_Display")] pub fn ReadingTransform(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ReadingTransform)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetReportLatency(&self, value: u32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetReportLatency)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn ReportLatency(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ReportLatency)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn MaxBatchSize(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MaxBatchSize)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ReportThreshold(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ReportThreshold)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn DeviceId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DeviceId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4201,19 +2819,17 @@ impl ::windows_core::RuntimeType for Gyrometer { } unsafe impl ::windows_core::Interface for Gyrometer { type Vtable = IGyrometer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Gyrometer { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Gyrometer { const NAME: &'static str = "Windows.Devices.Sensors.Gyrometer"; } -::windows_core::imp::interface_hierarchy!(Gyrometer, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for Gyrometer {} unsafe impl ::core::marker::Sync for Gyrometer {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GyrometerDataThreshold(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GyrometerDataThreshold, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GyrometerDataThreshold { pub fn XAxisInDegreesPerSecond(&self) -> ::windows_core::Result { let this = self; @@ -4254,19 +2870,17 @@ impl ::windows_core::RuntimeType for GyrometerDataThreshold { } unsafe impl ::windows_core::Interface for GyrometerDataThreshold { type Vtable = IGyrometerDataThreshold_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GyrometerDataThreshold { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GyrometerDataThreshold { const NAME: &'static str = "Windows.Devices.Sensors.GyrometerDataThreshold"; } -::windows_core::imp::interface_hierarchy!(GyrometerDataThreshold, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GyrometerDataThreshold {} unsafe impl ::core::marker::Sync for GyrometerDataThreshold {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GyrometerReading(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GyrometerReading, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GyrometerReading { pub fn Timestamp(&self) -> ::windows_core::Result { let this = self; @@ -4297,7 +2911,7 @@ impl GyrometerReading { } } pub fn PerformanceCount(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PerformanceCount)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4306,7 +2920,7 @@ impl GyrometerReading { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Properties(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4318,19 +2932,17 @@ impl ::windows_core::RuntimeType for GyrometerReading { } unsafe impl ::windows_core::Interface for GyrometerReading { type Vtable = IGyrometerReading_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GyrometerReading { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GyrometerReading { const NAME: &'static str = "Windows.Devices.Sensors.GyrometerReading"; } -::windows_core::imp::interface_hierarchy!(GyrometerReading, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GyrometerReading {} unsafe impl ::core::marker::Sync for GyrometerReading {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GyrometerReadingChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GyrometerReadingChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GyrometerReadingChangedEventArgs { pub fn Reading(&self) -> ::windows_core::Result { let this = self; @@ -4345,19 +2957,17 @@ impl ::windows_core::RuntimeType for GyrometerReadingChangedEventArgs { } unsafe impl ::windows_core::Interface for GyrometerReadingChangedEventArgs { type Vtable = IGyrometerReadingChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GyrometerReadingChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GyrometerReadingChangedEventArgs { const NAME: &'static str = "Windows.Devices.Sensors.GyrometerReadingChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(GyrometerReadingChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GyrometerReadingChangedEventArgs {} unsafe impl ::core::marker::Sync for GyrometerReadingChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HingeAngleReading(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HingeAngleReading, ::windows_core::IUnknown, ::windows_core::IInspectable); impl HingeAngleReading { pub fn Timestamp(&self) -> ::windows_core::Result { let this = self; @@ -4388,19 +2998,17 @@ impl ::windows_core::RuntimeType for HingeAngleReading { } unsafe impl ::windows_core::Interface for HingeAngleReading { type Vtable = IHingeAngleReading_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HingeAngleReading { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HingeAngleReading { const NAME: &'static str = "Windows.Devices.Sensors.HingeAngleReading"; } -::windows_core::imp::interface_hierarchy!(HingeAngleReading, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for HingeAngleReading {} unsafe impl ::core::marker::Sync for HingeAngleReading {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HingeAngleSensor(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HingeAngleSensor, ::windows_core::IUnknown, ::windows_core::IInspectable); impl HingeAngleSensor { pub fn GetCurrentReadingAsync(&self) -> ::windows_core::Result> { let this = self; @@ -4483,19 +3091,17 @@ impl ::windows_core::RuntimeType for HingeAngleSensor { } unsafe impl ::windows_core::Interface for HingeAngleSensor { type Vtable = IHingeAngleSensor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HingeAngleSensor { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HingeAngleSensor { const NAME: &'static str = "Windows.Devices.Sensors.HingeAngleSensor"; } -::windows_core::imp::interface_hierarchy!(HingeAngleSensor, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for HingeAngleSensor {} unsafe impl ::core::marker::Sync for HingeAngleSensor {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HingeAngleSensorReadingChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HingeAngleSensorReadingChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl HingeAngleSensorReadingChangedEventArgs { pub fn Reading(&self) -> ::windows_core::Result { let this = self; @@ -4510,19 +3116,17 @@ impl ::windows_core::RuntimeType for HingeAngleSensorReadingChangedEventArgs { } unsafe impl ::windows_core::Interface for HingeAngleSensorReadingChangedEventArgs { type Vtable = IHingeAngleSensorReadingChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HingeAngleSensorReadingChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HingeAngleSensorReadingChangedEventArgs { const NAME: &'static str = "Windows.Devices.Sensors.HingeAngleSensorReadingChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(HingeAngleSensorReadingChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for HingeAngleSensorReadingChangedEventArgs {} unsafe impl ::core::marker::Sync for HingeAngleSensorReadingChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HumanPresenceFeatures(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HumanPresenceFeatures, ::windows_core::IUnknown, ::windows_core::IInspectable); impl HumanPresenceFeatures { pub fn SensorId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -4564,7 +3168,7 @@ impl HumanPresenceFeatures { } } pub fn IsAdaptiveDimmingSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsAdaptiveDimmingSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4576,19 +3180,17 @@ impl ::windows_core::RuntimeType for HumanPresenceFeatures { } unsafe impl ::windows_core::Interface for HumanPresenceFeatures { type Vtable = IHumanPresenceFeatures_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HumanPresenceFeatures { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HumanPresenceFeatures { const NAME: &'static str = "Windows.Devices.Sensors.HumanPresenceFeatures"; } -::windows_core::imp::interface_hierarchy!(HumanPresenceFeatures, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for HumanPresenceFeatures {} unsafe impl ::core::marker::Sync for HumanPresenceFeatures {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HumanPresenceSensor(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HumanPresenceSensor, ::windows_core::IUnknown, ::windows_core::IInspectable); impl HumanPresenceSensor { pub fn DeviceId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -4633,14 +3235,14 @@ impl HumanPresenceSensor { unsafe { (::windows_core::Interface::vtable(this).RemoveReadingChanged)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn IsPresenceSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsPresenceSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsEngagementSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsEngagementSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4692,19 +3294,17 @@ impl ::windows_core::RuntimeType for HumanPresenceSensor { } unsafe impl ::windows_core::Interface for HumanPresenceSensor { type Vtable = IHumanPresenceSensor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HumanPresenceSensor { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HumanPresenceSensor { const NAME: &'static str = "Windows.Devices.Sensors.HumanPresenceSensor"; } -::windows_core::imp::interface_hierarchy!(HumanPresenceSensor, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for HumanPresenceSensor {} unsafe impl ::core::marker::Sync for HumanPresenceSensor {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HumanPresenceSensorReading(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HumanPresenceSensorReading, ::windows_core::IUnknown, ::windows_core::IInspectable); impl HumanPresenceSensorReading { pub fn Timestamp(&self) -> ::windows_core::Result { let this = self; @@ -4737,7 +3337,7 @@ impl HumanPresenceSensorReading { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Properties(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4749,19 +3349,17 @@ impl ::windows_core::RuntimeType for HumanPresenceSensorReading { } unsafe impl ::windows_core::Interface for HumanPresenceSensorReading { type Vtable = IHumanPresenceSensorReading_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HumanPresenceSensorReading { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HumanPresenceSensorReading { const NAME: &'static str = "Windows.Devices.Sensors.HumanPresenceSensorReading"; } -::windows_core::imp::interface_hierarchy!(HumanPresenceSensorReading, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for HumanPresenceSensorReading {} unsafe impl ::core::marker::Sync for HumanPresenceSensorReading {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HumanPresenceSensorReadingChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HumanPresenceSensorReadingChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl HumanPresenceSensorReadingChangedEventArgs { pub fn Reading(&self) -> ::windows_core::Result { let this = self; @@ -4776,19 +3374,17 @@ impl ::windows_core::RuntimeType for HumanPresenceSensorReadingChangedEventArgs } unsafe impl ::windows_core::Interface for HumanPresenceSensorReadingChangedEventArgs { type Vtable = IHumanPresenceSensorReadingChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HumanPresenceSensorReadingChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HumanPresenceSensorReadingChangedEventArgs { const NAME: &'static str = "Windows.Devices.Sensors.HumanPresenceSensorReadingChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(HumanPresenceSensorReadingChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for HumanPresenceSensorReadingChangedEventArgs {} unsafe impl ::core::marker::Sync for HumanPresenceSensorReadingChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HumanPresenceSensorReadingUpdate(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HumanPresenceSensorReadingUpdate, ::windows_core::IUnknown, ::windows_core::IInspectable); impl HumanPresenceSensorReadingUpdate { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -4806,10 +3402,10 @@ impl HumanPresenceSensorReadingUpdate { } pub fn SetTimestamp(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetTimestamp)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetTimestamp)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn Presence(&self) -> ::windows_core::Result> { let this = self; @@ -4820,10 +3416,10 @@ impl HumanPresenceSensorReadingUpdate { } pub fn SetPresence(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetPresence)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetPresence)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn Engagement(&self) -> ::windows_core::Result> { let this = self; @@ -4834,10 +3430,10 @@ impl HumanPresenceSensorReadingUpdate { } pub fn SetEngagement(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetEngagement)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetEngagement)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn DistanceInMillimeters(&self) -> ::windows_core::Result> { let this = self; @@ -4848,10 +3444,10 @@ impl HumanPresenceSensorReadingUpdate { } pub fn SetDistanceInMillimeters(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetDistanceInMillimeters)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetDistanceInMillimeters)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } } impl ::windows_core::RuntimeType for HumanPresenceSensorReadingUpdate { @@ -4859,19 +3455,17 @@ impl ::windows_core::RuntimeType for HumanPresenceSensorReadingUpdate { } unsafe impl ::windows_core::Interface for HumanPresenceSensorReadingUpdate { type Vtable = IHumanPresenceSensorReadingUpdate_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HumanPresenceSensorReadingUpdate { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HumanPresenceSensorReadingUpdate { const NAME: &'static str = "Windows.Devices.Sensors.HumanPresenceSensorReadingUpdate"; } -::windows_core::imp::interface_hierarchy!(HumanPresenceSensorReadingUpdate, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for HumanPresenceSensorReadingUpdate {} unsafe impl ::core::marker::Sync for HumanPresenceSensorReadingUpdate {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HumanPresenceSettings(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HumanPresenceSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); impl HumanPresenceSettings { pub fn SensorId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -4904,10 +3498,10 @@ impl HumanPresenceSettings { } pub fn SetWakeOnApproachDistanceInMillimeters(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetWakeOnApproachDistanceInMillimeters)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetWakeOnApproachDistanceInMillimeters)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn IsLockOnLeaveEnabled(&self) -> ::windows_core::Result { let this = self; @@ -4929,10 +3523,10 @@ impl HumanPresenceSettings { } pub fn SetLockOnLeaveDistanceInMillimeters(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetLockOnLeaveDistanceInMillimeters)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetLockOnLeaveDistanceInMillimeters)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn LockOnLeaveTimeout(&self) -> ::windows_core::Result { let this = self; @@ -4961,32 +3555,32 @@ impl HumanPresenceSettings { unsafe { (::windows_core::Interface::vtable(this).SetIsAttentionAwareDimmingEnabled)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsAdaptiveDimmingEnabled(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsAdaptiveDimmingEnabled)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsAdaptiveDimmingEnabled(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsAdaptiveDimmingEnabled)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn WakeOptions(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).WakeOptions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn DimmingOptions(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DimmingOptions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn LockOptions(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).LockOptions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5062,19 +3656,17 @@ impl ::windows_core::RuntimeType for HumanPresenceSettings { } unsafe impl ::windows_core::Interface for HumanPresenceSettings { type Vtable = IHumanPresenceSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HumanPresenceSettings { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HumanPresenceSettings { const NAME: &'static str = "Windows.Devices.Sensors.HumanPresenceSettings"; } -::windows_core::imp::interface_hierarchy!(HumanPresenceSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for HumanPresenceSettings {} unsafe impl ::core::marker::Sync for HumanPresenceSettings {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Inclinometer(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Inclinometer, ::windows_core::IUnknown, ::windows_core::IInspectable); impl Inclinometer { pub fn GetCurrentReading(&self) -> ::windows_core::Result { let this = self; @@ -5118,52 +3710,52 @@ impl Inclinometer { #[doc = "Required features: `\"Graphics_Display\"`"] #[cfg(feature = "Graphics_Display")] pub fn SetReadingTransform(&self, value: super::super::Graphics::Display::DisplayOrientations) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetReadingTransform)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Graphics_Display\"`"] #[cfg(feature = "Graphics_Display")] pub fn ReadingTransform(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ReadingTransform)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ReadingType(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ReadingType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetReportLatency(&self, value: u32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetReportLatency)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn ReportLatency(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ReportLatency)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn MaxBatchSize(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MaxBatchSize)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ReportThreshold(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ReportThreshold)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn DeviceId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DeviceId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5225,19 +3817,17 @@ impl ::windows_core::RuntimeType for Inclinometer { } unsafe impl ::windows_core::Interface for Inclinometer { type Vtable = IInclinometer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Inclinometer { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Inclinometer { const NAME: &'static str = "Windows.Devices.Sensors.Inclinometer"; } -::windows_core::imp::interface_hierarchy!(Inclinometer, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for Inclinometer {} unsafe impl ::core::marker::Sync for Inclinometer {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct InclinometerDataThreshold(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(InclinometerDataThreshold, ::windows_core::IUnknown, ::windows_core::IInspectable); impl InclinometerDataThreshold { pub fn PitchInDegrees(&self) -> ::windows_core::Result { let this = self; @@ -5278,19 +3868,17 @@ impl ::windows_core::RuntimeType for InclinometerDataThreshold { } unsafe impl ::windows_core::Interface for InclinometerDataThreshold { type Vtable = IInclinometerDataThreshold_Vtbl; -} -unsafe impl ::windows_core::ComInterface for InclinometerDataThreshold { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for InclinometerDataThreshold { const NAME: &'static str = "Windows.Devices.Sensors.InclinometerDataThreshold"; } -::windows_core::imp::interface_hierarchy!(InclinometerDataThreshold, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for InclinometerDataThreshold {} unsafe impl ::core::marker::Sync for InclinometerDataThreshold {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct InclinometerReading(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(InclinometerReading, ::windows_core::IUnknown, ::windows_core::IInspectable); impl InclinometerReading { pub fn Timestamp(&self) -> ::windows_core::Result { let this = self; @@ -5321,7 +3909,7 @@ impl InclinometerReading { } } pub fn PerformanceCount(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PerformanceCount)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5330,14 +3918,14 @@ impl InclinometerReading { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Properties(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn YawAccuracy(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).YawAccuracy)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5349,19 +3937,17 @@ impl ::windows_core::RuntimeType for InclinometerReading { } unsafe impl ::windows_core::Interface for InclinometerReading { type Vtable = IInclinometerReading_Vtbl; -} -unsafe impl ::windows_core::ComInterface for InclinometerReading { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for InclinometerReading { const NAME: &'static str = "Windows.Devices.Sensors.InclinometerReading"; } -::windows_core::imp::interface_hierarchy!(InclinometerReading, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for InclinometerReading {} unsafe impl ::core::marker::Sync for InclinometerReading {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct InclinometerReadingChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(InclinometerReadingChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl InclinometerReadingChangedEventArgs { pub fn Reading(&self) -> ::windows_core::Result { let this = self; @@ -5376,19 +3962,17 @@ impl ::windows_core::RuntimeType for InclinometerReadingChangedEventArgs { } unsafe impl ::windows_core::Interface for InclinometerReadingChangedEventArgs { type Vtable = IInclinometerReadingChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for InclinometerReadingChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for InclinometerReadingChangedEventArgs { const NAME: &'static str = "Windows.Devices.Sensors.InclinometerReadingChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(InclinometerReadingChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for InclinometerReadingChangedEventArgs {} unsafe impl ::core::marker::Sync for InclinometerReadingChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LightSensor(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LightSensor, ::windows_core::IUnknown, ::windows_core::IInspectable); impl LightSensor { pub fn GetCurrentReading(&self) -> ::windows_core::Result { let this = self; @@ -5430,32 +4014,32 @@ impl LightSensor { unsafe { (::windows_core::Interface::vtable(this).RemoveReadingChanged)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn SetReportLatency(&self, value: u32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetReportLatency)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn ReportLatency(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ReportLatency)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn MaxBatchSize(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MaxBatchSize)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ReportThreshold(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ReportThreshold)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn DeviceId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DeviceId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5495,19 +4079,17 @@ impl ::windows_core::RuntimeType for LightSensor { } unsafe impl ::windows_core::Interface for LightSensor { type Vtable = ILightSensor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LightSensor { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LightSensor { const NAME: &'static str = "Windows.Devices.Sensors.LightSensor"; } -::windows_core::imp::interface_hierarchy!(LightSensor, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for LightSensor {} unsafe impl ::core::marker::Sync for LightSensor {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LightSensorDataThreshold(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LightSensorDataThreshold, ::windows_core::IUnknown, ::windows_core::IInspectable); impl LightSensorDataThreshold { pub fn LuxPercentage(&self) -> ::windows_core::Result { let this = self; @@ -5537,19 +4119,17 @@ impl ::windows_core::RuntimeType for LightSensorDataThreshold { } unsafe impl ::windows_core::Interface for LightSensorDataThreshold { type Vtable = ILightSensorDataThreshold_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LightSensorDataThreshold { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LightSensorDataThreshold { const NAME: &'static str = "Windows.Devices.Sensors.LightSensorDataThreshold"; } -::windows_core::imp::interface_hierarchy!(LightSensorDataThreshold, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for LightSensorDataThreshold {} unsafe impl ::core::marker::Sync for LightSensorDataThreshold {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LightSensorReading(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LightSensorReading, ::windows_core::IUnknown, ::windows_core::IInspectable); impl LightSensorReading { pub fn Timestamp(&self) -> ::windows_core::Result { let this = self; @@ -5566,7 +4146,7 @@ impl LightSensorReading { } } pub fn PerformanceCount(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PerformanceCount)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5575,7 +4155,7 @@ impl LightSensorReading { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Properties(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5587,19 +4167,17 @@ impl ::windows_core::RuntimeType for LightSensorReading { } unsafe impl ::windows_core::Interface for LightSensorReading { type Vtable = ILightSensorReading_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LightSensorReading { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LightSensorReading { const NAME: &'static str = "Windows.Devices.Sensors.LightSensorReading"; } -::windows_core::imp::interface_hierarchy!(LightSensorReading, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for LightSensorReading {} unsafe impl ::core::marker::Sync for LightSensorReading {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LightSensorReadingChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LightSensorReadingChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl LightSensorReadingChangedEventArgs { pub fn Reading(&self) -> ::windows_core::Result { let this = self; @@ -5614,19 +4192,17 @@ impl ::windows_core::RuntimeType for LightSensorReadingChangedEventArgs { } unsafe impl ::windows_core::Interface for LightSensorReadingChangedEventArgs { type Vtable = ILightSensorReadingChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LightSensorReadingChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LightSensorReadingChangedEventArgs { const NAME: &'static str = "Windows.Devices.Sensors.LightSensorReadingChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(LightSensorReadingChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for LightSensorReadingChangedEventArgs {} unsafe impl ::core::marker::Sync for LightSensorReadingChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LockOnLeaveOptions(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LockOnLeaveOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); impl LockOnLeaveOptions { pub fn AllowWhenExternalDisplayConnected(&self) -> ::windows_core::Result { let this = self; @@ -5645,19 +4221,17 @@ impl ::windows_core::RuntimeType for LockOnLeaveOptions { } unsafe impl ::windows_core::Interface for LockOnLeaveOptions { type Vtable = ILockOnLeaveOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LockOnLeaveOptions { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LockOnLeaveOptions { const NAME: &'static str = "Windows.Devices.Sensors.LockOnLeaveOptions"; } -::windows_core::imp::interface_hierarchy!(LockOnLeaveOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for LockOnLeaveOptions {} unsafe impl ::core::marker::Sync for LockOnLeaveOptions {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Magnetometer(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Magnetometer, ::windows_core::IUnknown, ::windows_core::IInspectable); impl Magnetometer { pub fn GetCurrentReading(&self) -> ::windows_core::Result { let this = self; @@ -5701,45 +4275,45 @@ impl Magnetometer { #[doc = "Required features: `\"Graphics_Display\"`"] #[cfg(feature = "Graphics_Display")] pub fn SetReadingTransform(&self, value: super::super::Graphics::Display::DisplayOrientations) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetReadingTransform)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Graphics_Display\"`"] #[cfg(feature = "Graphics_Display")] pub fn ReadingTransform(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ReadingTransform)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetReportLatency(&self, value: u32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetReportLatency)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn ReportLatency(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ReportLatency)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn MaxBatchSize(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MaxBatchSize)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ReportThreshold(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ReportThreshold)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn DeviceId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DeviceId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5779,19 +4353,17 @@ impl ::windows_core::RuntimeType for Magnetometer { } unsafe impl ::windows_core::Interface for Magnetometer { type Vtable = IMagnetometer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Magnetometer { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Magnetometer { const NAME: &'static str = "Windows.Devices.Sensors.Magnetometer"; } -::windows_core::imp::interface_hierarchy!(Magnetometer, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for Magnetometer {} unsafe impl ::core::marker::Sync for Magnetometer {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MagnetometerDataThreshold(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MagnetometerDataThreshold, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MagnetometerDataThreshold { pub fn XAxisMicroteslas(&self) -> ::windows_core::Result { let this = self; @@ -5832,19 +4404,17 @@ impl ::windows_core::RuntimeType for MagnetometerDataThreshold { } unsafe impl ::windows_core::Interface for MagnetometerDataThreshold { type Vtable = IMagnetometerDataThreshold_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MagnetometerDataThreshold { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MagnetometerDataThreshold { const NAME: &'static str = "Windows.Devices.Sensors.MagnetometerDataThreshold"; } -::windows_core::imp::interface_hierarchy!(MagnetometerDataThreshold, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MagnetometerDataThreshold {} unsafe impl ::core::marker::Sync for MagnetometerDataThreshold {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MagnetometerReading(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MagnetometerReading, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MagnetometerReading { pub fn Timestamp(&self) -> ::windows_core::Result { let this = self; @@ -5882,7 +4452,7 @@ impl MagnetometerReading { } } pub fn PerformanceCount(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PerformanceCount)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5891,7 +4461,7 @@ impl MagnetometerReading { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Properties(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5903,19 +4473,17 @@ impl ::windows_core::RuntimeType for MagnetometerReading { } unsafe impl ::windows_core::Interface for MagnetometerReading { type Vtable = IMagnetometerReading_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MagnetometerReading { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MagnetometerReading { const NAME: &'static str = "Windows.Devices.Sensors.MagnetometerReading"; } -::windows_core::imp::interface_hierarchy!(MagnetometerReading, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MagnetometerReading {} unsafe impl ::core::marker::Sync for MagnetometerReading {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MagnetometerReadingChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MagnetometerReadingChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MagnetometerReadingChangedEventArgs { pub fn Reading(&self) -> ::windows_core::Result { let this = self; @@ -5930,19 +4498,17 @@ impl ::windows_core::RuntimeType for MagnetometerReadingChangedEventArgs { } unsafe impl ::windows_core::Interface for MagnetometerReadingChangedEventArgs { type Vtable = IMagnetometerReadingChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MagnetometerReadingChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MagnetometerReadingChangedEventArgs { const NAME: &'static str = "Windows.Devices.Sensors.MagnetometerReadingChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(MagnetometerReadingChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MagnetometerReadingChangedEventArgs {} unsafe impl ::core::marker::Sync for MagnetometerReadingChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct OrientationSensor(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(OrientationSensor, ::windows_core::IUnknown, ::windows_core::IInspectable); impl OrientationSensor { pub fn GetCurrentReading(&self) -> ::windows_core::Result { let this = self; @@ -5986,45 +4552,45 @@ impl OrientationSensor { #[doc = "Required features: `\"Graphics_Display\"`"] #[cfg(feature = "Graphics_Display")] pub fn SetReadingTransform(&self, value: super::super::Graphics::Display::DisplayOrientations) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetReadingTransform)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Graphics_Display\"`"] #[cfg(feature = "Graphics_Display")] pub fn ReadingTransform(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ReadingTransform)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ReadingType(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ReadingType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetReportLatency(&self, value: u32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetReportLatency)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn ReportLatency(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ReportLatency)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn MaxBatchSize(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MaxBatchSize)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn DeviceId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DeviceId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6098,19 +4664,17 @@ impl ::windows_core::RuntimeType for OrientationSensor { } unsafe impl ::windows_core::Interface for OrientationSensor { type Vtable = IOrientationSensor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for OrientationSensor { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for OrientationSensor { const NAME: &'static str = "Windows.Devices.Sensors.OrientationSensor"; } -::windows_core::imp::interface_hierarchy!(OrientationSensor, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for OrientationSensor {} unsafe impl ::core::marker::Sync for OrientationSensor {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct OrientationSensorReading(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(OrientationSensorReading, ::windows_core::IUnknown, ::windows_core::IInspectable); impl OrientationSensorReading { pub fn Timestamp(&self) -> ::windows_core::Result { let this = self; @@ -6134,7 +4698,7 @@ impl OrientationSensorReading { } } pub fn PerformanceCount(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PerformanceCount)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6143,14 +4707,14 @@ impl OrientationSensorReading { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Properties(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn YawAccuracy(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).YawAccuracy)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6162,19 +4726,17 @@ impl ::windows_core::RuntimeType for OrientationSensorReading { } unsafe impl ::windows_core::Interface for OrientationSensorReading { type Vtable = IOrientationSensorReading_Vtbl; -} -unsafe impl ::windows_core::ComInterface for OrientationSensorReading { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for OrientationSensorReading { const NAME: &'static str = "Windows.Devices.Sensors.OrientationSensorReading"; } -::windows_core::imp::interface_hierarchy!(OrientationSensorReading, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for OrientationSensorReading {} unsafe impl ::core::marker::Sync for OrientationSensorReading {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct OrientationSensorReadingChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(OrientationSensorReadingChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl OrientationSensorReadingChangedEventArgs { pub fn Reading(&self) -> ::windows_core::Result { let this = self; @@ -6189,19 +4751,17 @@ impl ::windows_core::RuntimeType for OrientationSensorReadingChangedEventArgs { } unsafe impl ::windows_core::Interface for OrientationSensorReadingChangedEventArgs { type Vtable = IOrientationSensorReadingChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for OrientationSensorReadingChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for OrientationSensorReadingChangedEventArgs { const NAME: &'static str = "Windows.Devices.Sensors.OrientationSensorReadingChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(OrientationSensorReadingChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for OrientationSensorReadingChangedEventArgs {} unsafe impl ::core::marker::Sync for OrientationSensorReadingChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Pedometer(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Pedometer, ::windows_core::IUnknown, ::windows_core::IInspectable); impl Pedometer { pub fn DeviceId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -6252,7 +4812,7 @@ impl Pedometer { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetCurrentReadings(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetCurrentReadings)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6319,19 +4879,18 @@ impl ::windows_core::RuntimeType for Pedometer { } unsafe impl ::windows_core::Interface for Pedometer { type Vtable = IPedometer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Pedometer { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Pedometer { const NAME: &'static str = "Windows.Devices.Sensors.Pedometer"; } -::windows_core::imp::interface_hierarchy!(Pedometer, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for Pedometer {} unsafe impl ::core::marker::Sync for Pedometer {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PedometerDataThreshold(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PedometerDataThreshold, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(PedometerDataThreshold, ISensorDataThreshold); impl PedometerDataThreshold { pub fn Create(sensor: P0, stepgoal: i32) -> ::windows_core::Result where @@ -6353,20 +4912,17 @@ impl ::windows_core::RuntimeType for PedometerDataThreshold { } unsafe impl ::windows_core::Interface for PedometerDataThreshold { type Vtable = ISensorDataThreshold_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PedometerDataThreshold { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PedometerDataThreshold { const NAME: &'static str = "Windows.Devices.Sensors.PedometerDataThreshold"; } -::windows_core::imp::interface_hierarchy!(PedometerDataThreshold, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for PedometerDataThreshold {} unsafe impl ::core::marker::Send for PedometerDataThreshold {} unsafe impl ::core::marker::Sync for PedometerDataThreshold {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PedometerReading(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PedometerReading, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PedometerReading { pub fn StepKind(&self) -> ::windows_core::Result { let this = self; @@ -6402,19 +4958,17 @@ impl ::windows_core::RuntimeType for PedometerReading { } unsafe impl ::windows_core::Interface for PedometerReading { type Vtable = IPedometerReading_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PedometerReading { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PedometerReading { const NAME: &'static str = "Windows.Devices.Sensors.PedometerReading"; } -::windows_core::imp::interface_hierarchy!(PedometerReading, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PedometerReading {} unsafe impl ::core::marker::Sync for PedometerReading {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PedometerReadingChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PedometerReadingChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PedometerReadingChangedEventArgs { pub fn Reading(&self) -> ::windows_core::Result { let this = self; @@ -6429,19 +4983,17 @@ impl ::windows_core::RuntimeType for PedometerReadingChangedEventArgs { } unsafe impl ::windows_core::Interface for PedometerReadingChangedEventArgs { type Vtable = IPedometerReadingChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PedometerReadingChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PedometerReadingChangedEventArgs { const NAME: &'static str = "Windows.Devices.Sensors.PedometerReadingChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(PedometerReadingChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PedometerReadingChangedEventArgs {} unsafe impl ::core::marker::Sync for PedometerReadingChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ProximitySensor(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ProximitySensor, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ProximitySensor { pub fn DeviceId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -6531,19 +5083,18 @@ impl ::windows_core::RuntimeType for ProximitySensor { } unsafe impl ::windows_core::Interface for ProximitySensor { type Vtable = IProximitySensor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ProximitySensor { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ProximitySensor { const NAME: &'static str = "Windows.Devices.Sensors.ProximitySensor"; } -::windows_core::imp::interface_hierarchy!(ProximitySensor, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ProximitySensor {} unsafe impl ::core::marker::Sync for ProximitySensor {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ProximitySensorDataThreshold(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ProximitySensorDataThreshold, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ProximitySensorDataThreshold, ISensorDataThreshold); impl ProximitySensorDataThreshold { pub fn Create(sensor: P0) -> ::windows_core::Result where @@ -6565,20 +5116,18 @@ impl ::windows_core::RuntimeType for ProximitySensorDataThreshold { } unsafe impl ::windows_core::Interface for ProximitySensorDataThreshold { type Vtable = ISensorDataThreshold_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ProximitySensorDataThreshold { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ProximitySensorDataThreshold { const NAME: &'static str = "Windows.Devices.Sensors.ProximitySensorDataThreshold"; } -::windows_core::imp::interface_hierarchy!(ProximitySensorDataThreshold, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ProximitySensorDataThreshold {} unsafe impl ::core::marker::Send for ProximitySensorDataThreshold {} unsafe impl ::core::marker::Sync for ProximitySensorDataThreshold {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ProximitySensorDisplayOnOffController(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ProximitySensorDisplayOnOffController, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ProximitySensorDisplayOnOffController, super::super::Foundation::IClosable); impl ProximitySensorDisplayOnOffController { pub fn Close(&self) -> ::windows_core::Result<()> { let this = self; @@ -6590,20 +5139,17 @@ impl ::windows_core::RuntimeType for ProximitySensorDisplayOnOffController { } unsafe impl ::windows_core::Interface for ProximitySensorDisplayOnOffController { type Vtable = super::super::Foundation::IClosable_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ProximitySensorDisplayOnOffController { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ProximitySensorDisplayOnOffController { const NAME: &'static str = "Windows.Devices.Sensors.ProximitySensorDisplayOnOffController"; } -::windows_core::imp::interface_hierarchy!(ProximitySensorDisplayOnOffController, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ProximitySensorDisplayOnOffController {} unsafe impl ::core::marker::Send for ProximitySensorDisplayOnOffController {} unsafe impl ::core::marker::Sync for ProximitySensorDisplayOnOffController {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ProximitySensorReading(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ProximitySensorReading, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ProximitySensorReading { pub fn Timestamp(&self) -> ::windows_core::Result { let this = self; @@ -6632,19 +5178,17 @@ impl ::windows_core::RuntimeType for ProximitySensorReading { } unsafe impl ::windows_core::Interface for ProximitySensorReading { type Vtable = IProximitySensorReading_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ProximitySensorReading { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ProximitySensorReading { const NAME: &'static str = "Windows.Devices.Sensors.ProximitySensorReading"; } -::windows_core::imp::interface_hierarchy!(ProximitySensorReading, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ProximitySensorReading {} unsafe impl ::core::marker::Sync for ProximitySensorReading {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ProximitySensorReadingChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ProximitySensorReadingChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ProximitySensorReadingChangedEventArgs { pub fn Reading(&self) -> ::windows_core::Result { let this = self; @@ -6659,19 +5203,17 @@ impl ::windows_core::RuntimeType for ProximitySensorReadingChangedEventArgs { } unsafe impl ::windows_core::Interface for ProximitySensorReadingChangedEventArgs { type Vtable = IProximitySensorReadingChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ProximitySensorReadingChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ProximitySensorReadingChangedEventArgs { const NAME: &'static str = "Windows.Devices.Sensors.ProximitySensorReadingChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(ProximitySensorReadingChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ProximitySensorReadingChangedEventArgs {} unsafe impl ::core::marker::Sync for ProximitySensorReadingChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SensorDataThresholdTriggerDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SensorDataThresholdTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SensorDataThresholdTriggerDetails { pub fn DeviceId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -6693,19 +5235,17 @@ impl ::windows_core::RuntimeType for SensorDataThresholdTriggerDetails { } unsafe impl ::windows_core::Interface for SensorDataThresholdTriggerDetails { type Vtable = ISensorDataThresholdTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SensorDataThresholdTriggerDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SensorDataThresholdTriggerDetails { const NAME: &'static str = "Windows.Devices.Sensors.SensorDataThresholdTriggerDetails"; } -::windows_core::imp::interface_hierarchy!(SensorDataThresholdTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SensorDataThresholdTriggerDetails {} unsafe impl ::core::marker::Sync for SensorDataThresholdTriggerDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SensorQuaternion(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SensorQuaternion, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SensorQuaternion { pub fn W(&self) -> ::windows_core::Result { let this = self; @@ -6741,19 +5281,17 @@ impl ::windows_core::RuntimeType for SensorQuaternion { } unsafe impl ::windows_core::Interface for SensorQuaternion { type Vtable = ISensorQuaternion_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SensorQuaternion { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SensorQuaternion { const NAME: &'static str = "Windows.Devices.Sensors.SensorQuaternion"; } -::windows_core::imp::interface_hierarchy!(SensorQuaternion, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SensorQuaternion {} unsafe impl ::core::marker::Sync for SensorQuaternion {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SensorRotationMatrix(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SensorRotationMatrix, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SensorRotationMatrix { pub fn M11(&self) -> ::windows_core::Result { let this = self; @@ -6824,19 +5362,17 @@ impl ::windows_core::RuntimeType for SensorRotationMatrix { } unsafe impl ::windows_core::Interface for SensorRotationMatrix { type Vtable = ISensorRotationMatrix_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SensorRotationMatrix { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SensorRotationMatrix { const NAME: &'static str = "Windows.Devices.Sensors.SensorRotationMatrix"; } -::windows_core::imp::interface_hierarchy!(SensorRotationMatrix, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SensorRotationMatrix {} unsafe impl ::core::marker::Sync for SensorRotationMatrix {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SimpleOrientationSensor(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SimpleOrientationSensor, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SimpleOrientationSensor { pub fn GetCurrentOrientation(&self) -> ::windows_core::Result { let this = self; @@ -6862,20 +5398,20 @@ impl SimpleOrientationSensor { #[doc = "Required features: `\"Graphics_Display\"`"] #[cfg(feature = "Graphics_Display")] pub fn SetReadingTransform(&self, value: super::super::Graphics::Display::DisplayOrientations) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetReadingTransform)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Graphics_Display\"`"] #[cfg(feature = "Graphics_Display")] pub fn ReadingTransform(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ReadingTransform)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn DeviceId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DeviceId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6915,19 +5451,17 @@ impl ::windows_core::RuntimeType for SimpleOrientationSensor { } unsafe impl ::windows_core::Interface for SimpleOrientationSensor { type Vtable = ISimpleOrientationSensor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SimpleOrientationSensor { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SimpleOrientationSensor { const NAME: &'static str = "Windows.Devices.Sensors.SimpleOrientationSensor"; } -::windows_core::imp::interface_hierarchy!(SimpleOrientationSensor, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SimpleOrientationSensor {} unsafe impl ::core::marker::Sync for SimpleOrientationSensor {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SimpleOrientationSensorOrientationChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SimpleOrientationSensorOrientationChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SimpleOrientationSensorOrientationChangedEventArgs { pub fn Timestamp(&self) -> ::windows_core::Result { let this = self; @@ -6949,19 +5483,17 @@ impl ::windows_core::RuntimeType for SimpleOrientationSensorOrientationChangedEv } unsafe impl ::windows_core::Interface for SimpleOrientationSensorOrientationChangedEventArgs { type Vtable = ISimpleOrientationSensorOrientationChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SimpleOrientationSensorOrientationChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SimpleOrientationSensorOrientationChangedEventArgs { const NAME: &'static str = "Windows.Devices.Sensors.SimpleOrientationSensorOrientationChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(SimpleOrientationSensorOrientationChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SimpleOrientationSensorOrientationChangedEventArgs {} unsafe impl ::core::marker::Sync for SimpleOrientationSensorOrientationChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WakeOnApproachOptions(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WakeOnApproachOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WakeOnApproachOptions { pub fn AllowWhenExternalDisplayConnected(&self) -> ::windows_core::Result { let this = self; @@ -6991,14 +5523,11 @@ impl ::windows_core::RuntimeType for WakeOnApproachOptions { } unsafe impl ::windows_core::Interface for WakeOnApproachOptions { type Vtable = IWakeOnApproachOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WakeOnApproachOptions { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WakeOnApproachOptions { const NAME: &'static str = "Windows.Devices.Sensors.WakeOnApproachOptions"; } -::windows_core::imp::interface_hierarchy!(WakeOnApproachOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for WakeOnApproachOptions {} unsafe impl ::core::marker::Sync for WakeOnApproachOptions {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Devices/SerialCommunication/mod.rs b/crates/libs/windows/src/Windows/Devices/SerialCommunication/mod.rs index dbe382c96b..abd0a387d5 100644 --- a/crates/libs/windows/src/Windows/Devices/SerialCommunication/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/SerialCommunication/mod.rs @@ -1,45 +1,18 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IErrorReceivedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IErrorReceivedEventArgs { - type Vtable = IErrorReceivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IErrorReceivedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfcc6bf59_1283_4d8a_bfdf_566b33ddb28f); -} +::windows_core::imp::com_interface!(IErrorReceivedEventArgs, IErrorReceivedEventArgs_Vtbl, 0xfcc6bf59_1283_4d8a_bfdf_566b33ddb28f); #[repr(C)] #[doc(hidden)] pub struct IErrorReceivedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Error: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut SerialError) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPinChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPinChangedEventArgs { - type Vtable = IPinChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPinChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa2bf1db0_fc9c_4607_93d0_fa5e8343ee22); -} +::windows_core::imp::com_interface!(IPinChangedEventArgs, IPinChangedEventArgs_Vtbl, 0xa2bf1db0_fc9c_4607_93d0_fa5e8343ee22); #[repr(C)] #[doc(hidden)] pub struct IPinChangedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub PinChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut SerialPinChange) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISerialDevice(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISerialDevice { - type Vtable = ISerialDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISerialDevice { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe187ccc6_2210_414f_b65a_f5553a03372a); -} +::windows_core::imp::com_interface!(ISerialDevice, ISerialDevice_Vtbl, 0xe187ccc6_2210_414f_b65a_f5553a03372a); #[repr(C)] #[doc(hidden)] pub struct ISerialDevice_Vtbl { @@ -84,16 +57,7 @@ pub struct ISerialDevice_Vtbl { pub PinChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, reporthandler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemovePinChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISerialDeviceStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISerialDeviceStatics { - type Vtable = ISerialDeviceStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISerialDeviceStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x058c4a70_0836_4993_ae1a_b61ae3be056b); -} +::windows_core::imp::com_interface!(ISerialDeviceStatics, ISerialDeviceStatics_Vtbl, 0x058c4a70_0836_4993_ae1a_b61ae3be056b); #[repr(C)] #[doc(hidden)] pub struct ISerialDeviceStatics_Vtbl { @@ -106,6 +70,7 @@ pub struct ISerialDeviceStatics_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ErrorReceivedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ErrorReceivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ErrorReceivedEventArgs { pub fn Error(&self) -> ::windows_core::Result { let this = self; @@ -120,19 +85,17 @@ impl ::windows_core::RuntimeType for ErrorReceivedEventArgs { } unsafe impl ::windows_core::Interface for ErrorReceivedEventArgs { type Vtable = IErrorReceivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ErrorReceivedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ErrorReceivedEventArgs { const NAME: &'static str = "Windows.Devices.SerialCommunication.ErrorReceivedEventArgs"; } -::windows_core::imp::interface_hierarchy!(ErrorReceivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ErrorReceivedEventArgs {} unsafe impl ::core::marker::Sync for ErrorReceivedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PinChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PinChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PinChangedEventArgs { pub fn PinChange(&self) -> ::windows_core::Result { let this = self; @@ -147,22 +110,21 @@ impl ::windows_core::RuntimeType for PinChangedEventArgs { } unsafe impl ::windows_core::Interface for PinChangedEventArgs { type Vtable = IPinChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PinChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PinChangedEventArgs { const NAME: &'static str = "Windows.Devices.SerialCommunication.PinChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(PinChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PinChangedEventArgs {} unsafe impl ::core::marker::Sync for PinChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SerialDevice(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SerialDevice, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(SerialDevice, super::super::Foundation::IClosable); impl SerialDevice { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn BaudRate(&self) -> ::windows_core::Result { @@ -405,15 +367,11 @@ impl ::windows_core::RuntimeType for SerialDevice { } unsafe impl ::windows_core::Interface for SerialDevice { type Vtable = ISerialDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SerialDevice { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SerialDevice { const NAME: &'static str = "Windows.Devices.SerialCommunication.SerialDevice"; } -::windows_core::imp::interface_hierarchy!(SerialDevice, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for SerialDevice {} unsafe impl ::core::marker::Send for SerialDevice {} unsafe impl ::core::marker::Sync for SerialDevice {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Devices/SmartCards/mod.rs b/crates/libs/windows/src/Windows/Devices/SmartCards/mod.rs index 996f20fbae..3678034f9b 100644 --- a/crates/libs/windows/src/Windows/Devices/SmartCards/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/SmartCards/mod.rs @@ -1,45 +1,18 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICardAddedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICardAddedEventArgs { - type Vtable = ICardAddedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICardAddedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x18bbef98_f18b_4dd3_b118_dfb2c8e23cc6); -} +::windows_core::imp::com_interface!(ICardAddedEventArgs, ICardAddedEventArgs_Vtbl, 0x18bbef98_f18b_4dd3_b118_dfb2c8e23cc6); #[repr(C)] #[doc(hidden)] pub struct ICardAddedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub SmartCard: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICardRemovedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICardRemovedEventArgs { - type Vtable = ICardRemovedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICardRemovedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x15331aaf_22d7_4945_afc9_03b46f42a6cd); -} +::windows_core::imp::com_interface!(ICardRemovedEventArgs, ICardRemovedEventArgs_Vtbl, 0x15331aaf_22d7_4945_afc9_03b46f42a6cd); #[repr(C)] #[doc(hidden)] pub struct ICardRemovedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub SmartCard: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKnownSmartCardAppletIds(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKnownSmartCardAppletIds { - type Vtable = IKnownSmartCardAppletIds_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKnownSmartCardAppletIds { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7b04d8d8_95b4_4c88_8cea_411e55511efc); -} +::windows_core::imp::com_interface!(IKnownSmartCardAppletIds, IKnownSmartCardAppletIds_Vtbl, 0x7b04d8d8_95b4_4c88_8cea_411e55511efc); #[repr(C)] #[doc(hidden)] pub struct IKnownSmartCardAppletIds_Vtbl { @@ -53,16 +26,7 @@ pub struct IKnownSmartCardAppletIds_Vtbl { #[cfg(not(feature = "Storage_Streams"))] ProximityPaymentSystemEnvironment: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmartCard(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISmartCard { - type Vtable = ISmartCard_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmartCard { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1b718871_6434_43f4_b55a_6a29623870aa); -} +::windows_core::imp::com_interface!(ISmartCard, ISmartCard_Vtbl, 0x1b718871_6434_43f4_b55a_6a29623870aa); #[repr(C)] #[doc(hidden)] pub struct ISmartCard_Vtbl { @@ -74,16 +38,7 @@ pub struct ISmartCard_Vtbl { #[cfg(not(feature = "Storage_Streams"))] GetAnswerToResetAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmartCardAppletIdGroup(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISmartCardAppletIdGroup { - type Vtable = ISmartCardAppletIdGroup_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmartCardAppletIdGroup { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7db165e6_6264_56f4_5e03_c86385395eb1); -} +::windows_core::imp::com_interface!(ISmartCardAppletIdGroup, ISmartCardAppletIdGroup_Vtbl, 0x7db165e6_6264_56f4_5e03_c86385395eb1); #[repr(C)] #[doc(hidden)] pub struct ISmartCardAppletIdGroup_Vtbl { @@ -101,16 +56,7 @@ pub struct ISmartCardAppletIdGroup_Vtbl { pub AutomaticEnablement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetAutomaticEnablement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmartCardAppletIdGroup2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISmartCardAppletIdGroup2 { - type Vtable = ISmartCardAppletIdGroup2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmartCardAppletIdGroup2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6b0ef9dc_9956_4a62_8d4e_d37a68ebc3a6); -} +::windows_core::imp::com_interface!(ISmartCardAppletIdGroup2, ISmartCardAppletIdGroup2_Vtbl, 0x6b0ef9dc_9956_4a62_8d4e_d37a68ebc3a6); #[repr(C)] #[doc(hidden)] pub struct ISmartCardAppletIdGroup2_Vtbl { @@ -132,16 +78,7 @@ pub struct ISmartCardAppletIdGroup2_Vtbl { pub SecureUserAuthenticationRequired: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetSecureUserAuthenticationRequired: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmartCardAppletIdGroupFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISmartCardAppletIdGroupFactory { - type Vtable = ISmartCardAppletIdGroupFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmartCardAppletIdGroupFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9105eb4d_4a65_4e41_8061_cbe83f3695e5); -} +::windows_core::imp::com_interface!(ISmartCardAppletIdGroupFactory, ISmartCardAppletIdGroupFactory_Vtbl, 0x9105eb4d_4a65_4e41_8061_cbe83f3695e5); #[repr(C)] #[doc(hidden)] pub struct ISmartCardAppletIdGroupFactory_Vtbl { @@ -151,16 +88,7 @@ pub struct ISmartCardAppletIdGroupFactory_Vtbl { #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage_Streams")))] Create: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmartCardAppletIdGroupRegistration(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISmartCardAppletIdGroupRegistration { - type Vtable = ISmartCardAppletIdGroupRegistration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmartCardAppletIdGroupRegistration { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdf1208d1_31bb_5596_43b1_6d69a0257b3a); -} +::windows_core::imp::com_interface!(ISmartCardAppletIdGroupRegistration, ISmartCardAppletIdGroupRegistration_Vtbl, 0xdf1208d1_31bb_5596_43b1_6d69a0257b3a); #[repr(C)] #[doc(hidden)] pub struct ISmartCardAppletIdGroupRegistration_Vtbl { @@ -174,16 +102,7 @@ pub struct ISmartCardAppletIdGroupRegistration_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] SetAutomaticResponseApdusAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmartCardAppletIdGroupRegistration2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISmartCardAppletIdGroupRegistration2 { - type Vtable = ISmartCardAppletIdGroupRegistration2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmartCardAppletIdGroupRegistration2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5f5508d8_98a7_4f2e_91d9_6cfcceda407f); -} +::windows_core::imp::com_interface!(ISmartCardAppletIdGroupRegistration2, ISmartCardAppletIdGroupRegistration2_Vtbl, 0x5f5508d8_98a7_4f2e_91d9_6cfcceda407f); #[repr(C)] #[doc(hidden)] pub struct ISmartCardAppletIdGroupRegistration2_Vtbl { @@ -194,32 +113,14 @@ pub struct ISmartCardAppletIdGroupRegistration2_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] SetPropertiesAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmartCardAppletIdGroupStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISmartCardAppletIdGroupStatics { - type Vtable = ISmartCardAppletIdGroupStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmartCardAppletIdGroupStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xab2899a9_e76c_45cf_bf1d_90eaa6205927); -} +::windows_core::imp::com_interface!(ISmartCardAppletIdGroupStatics, ISmartCardAppletIdGroupStatics_Vtbl, 0xab2899a9_e76c_45cf_bf1d_90eaa6205927); #[repr(C)] #[doc(hidden)] pub struct ISmartCardAppletIdGroupStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub MaxAppletIds: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u16) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmartCardAutomaticResponseApdu(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISmartCardAutomaticResponseApdu { - type Vtable = ISmartCardAutomaticResponseApdu_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmartCardAutomaticResponseApdu { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x52152bab_c63e_4531_a857_d756d99b986a); -} +::windows_core::imp::com_interface!(ISmartCardAutomaticResponseApdu, ISmartCardAutomaticResponseApdu_Vtbl, 0x52152bab_c63e_4531_a857_d756d99b986a); #[repr(C)] #[doc(hidden)] pub struct ISmartCardAutomaticResponseApdu_Vtbl { @@ -259,16 +160,7 @@ pub struct ISmartCardAutomaticResponseApdu_Vtbl { #[cfg(not(feature = "Storage_Streams"))] SetResponseApdu: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmartCardAutomaticResponseApdu2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISmartCardAutomaticResponseApdu2 { - type Vtable = ISmartCardAutomaticResponseApdu2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmartCardAutomaticResponseApdu2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x44aebb14_559d_4531_4e51_89db6fa8a57a); -} +::windows_core::imp::com_interface!(ISmartCardAutomaticResponseApdu2, ISmartCardAutomaticResponseApdu2_Vtbl, 0x44aebb14_559d_4531_4e51_89db6fa8a57a); #[repr(C)] #[doc(hidden)] pub struct ISmartCardAutomaticResponseApdu2_Vtbl { @@ -278,16 +170,7 @@ pub struct ISmartCardAutomaticResponseApdu2_Vtbl { pub OutputState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetOutputState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmartCardAutomaticResponseApdu3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISmartCardAutomaticResponseApdu3 { - type Vtable = ISmartCardAutomaticResponseApdu3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmartCardAutomaticResponseApdu3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbf43da74_6576_4392_9367_fe3bc9e2d496); -} +::windows_core::imp::com_interface!(ISmartCardAutomaticResponseApdu3, ISmartCardAutomaticResponseApdu3_Vtbl, 0xbf43da74_6576_4392_9367_fe3bc9e2d496); #[repr(C)] #[doc(hidden)] pub struct ISmartCardAutomaticResponseApdu3_Vtbl { @@ -295,16 +178,7 @@ pub struct ISmartCardAutomaticResponseApdu3_Vtbl { pub AllowWhenCryptogramGeneratorNotPrepared: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetAllowWhenCryptogramGeneratorNotPrepared: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmartCardAutomaticResponseApduFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISmartCardAutomaticResponseApduFactory { - type Vtable = ISmartCardAutomaticResponseApduFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmartCardAutomaticResponseApduFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe97ea2fa_d02c_4c55_b02a_8cff7fa9f05b); -} +::windows_core::imp::com_interface!(ISmartCardAutomaticResponseApduFactory, ISmartCardAutomaticResponseApduFactory_Vtbl, 0xe97ea2fa_d02c_4c55_b02a_8cff7fa9f05b); #[repr(C)] #[doc(hidden)] pub struct ISmartCardAutomaticResponseApduFactory_Vtbl { @@ -314,16 +188,7 @@ pub struct ISmartCardAutomaticResponseApduFactory_Vtbl { #[cfg(not(feature = "Storage_Streams"))] Create: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmartCardChallengeContext(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISmartCardChallengeContext { - type Vtable = ISmartCardChallengeContext_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmartCardChallengeContext { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x192a5319_c9c4_4947_81cc_44794a61ef91); -} +::windows_core::imp::com_interface!(ISmartCardChallengeContext, ISmartCardChallengeContext_Vtbl, 0x192a5319_c9c4_4947_81cc_44794a61ef91); #[repr(C)] #[doc(hidden)] pub struct ISmartCardChallengeContext_Vtbl { @@ -349,32 +214,14 @@ pub struct ISmartCardChallengeContext_Vtbl { #[cfg(not(feature = "Storage_Streams"))] ChangeAdministrativeKeyAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmartCardConnect(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISmartCardConnect { - type Vtable = ISmartCardConnect_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmartCardConnect { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2fdf87e5_028d_491e_a058_3382c3986f40); -} +::windows_core::imp::com_interface!(ISmartCardConnect, ISmartCardConnect_Vtbl, 0x2fdf87e5_028d_491e_a058_3382c3986f40); #[repr(C)] #[doc(hidden)] pub struct ISmartCardConnect_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ConnectAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmartCardConnection(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISmartCardConnection { - type Vtable = ISmartCardConnection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmartCardConnection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7edb991a_a81a_47bc_a649_156be6b7f231); -} +::windows_core::imp::com_interface!(ISmartCardConnection, ISmartCardConnection_Vtbl, 0x7edb991a_a81a_47bc_a649_156be6b7f231); #[repr(C)] #[doc(hidden)] pub struct ISmartCardConnection_Vtbl { @@ -384,16 +231,7 @@ pub struct ISmartCardConnection_Vtbl { #[cfg(not(feature = "Storage_Streams"))] TransmitAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmartCardCryptogramGenerator(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISmartCardCryptogramGenerator { - type Vtable = ISmartCardCryptogramGenerator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmartCardCryptogramGenerator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe39f587b_edd3_4e49_b594_0ff5e4d0c76f); -} +::windows_core::imp::com_interface!(ISmartCardCryptogramGenerator, ISmartCardCryptogramGenerator_Vtbl, 0xe39f587b_edd3_4e49_b594_0ff5e4d0c76f); #[repr(C)] #[doc(hidden)] pub struct ISmartCardCryptogramGenerator_Vtbl { @@ -435,16 +273,7 @@ pub struct ISmartCardCryptogramGenerator_Vtbl { pub RequestUnlockCryptogramMaterialForUseAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, promptingbehavior: SmartCardUnlockPromptingBehavior, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub DeleteCryptogramMaterialPackageAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, materialpackagename: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmartCardCryptogramGenerator2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISmartCardCryptogramGenerator2 { - type Vtable = ISmartCardCryptogramGenerator2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmartCardCryptogramGenerator2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7116aa34_5d6d_4b4a_96a3_efa47d2a7e25); -} +::windows_core::imp::com_interface!(ISmartCardCryptogramGenerator2, ISmartCardCryptogramGenerator2_Vtbl, 0x7116aa34_5d6d_4b4a_96a3_efa47d2a7e25); #[repr(C)] #[doc(hidden)] pub struct ISmartCardCryptogramGenerator2_Vtbl { @@ -458,48 +287,21 @@ pub struct ISmartCardCryptogramGenerator2_Vtbl { pub GetAllCryptogramMaterialPackageCharacteristicsWithStorageKeyAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, storagekeyname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetAllCryptogramMaterialCharacteristicsAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, promptingbehavior: SmartCardUnlockPromptingBehavior, materialpackagename: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmartCardCryptogramGeneratorStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISmartCardCryptogramGeneratorStatics { - type Vtable = ISmartCardCryptogramGeneratorStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmartCardCryptogramGeneratorStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x09933910_cb9c_4015_967d_5234f3b02900); -} +::windows_core::imp::com_interface!(ISmartCardCryptogramGeneratorStatics, ISmartCardCryptogramGeneratorStatics_Vtbl, 0x09933910_cb9c_4015_967d_5234f3b02900); #[repr(C)] #[doc(hidden)] pub struct ISmartCardCryptogramGeneratorStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetSmartCardCryptogramGeneratorAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmartCardCryptogramGeneratorStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISmartCardCryptogramGeneratorStatics2 { - type Vtable = ISmartCardCryptogramGeneratorStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmartCardCryptogramGeneratorStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x09bdf5e5_b4bd_4e23_a588_74469204c128); -} +::windows_core::imp::com_interface!(ISmartCardCryptogramGeneratorStatics2, ISmartCardCryptogramGeneratorStatics2_Vtbl, 0x09bdf5e5_b4bd_4e23_a588_74469204c128); #[repr(C)] #[doc(hidden)] pub struct ISmartCardCryptogramGeneratorStatics2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub IsSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmartCardCryptogramGetAllCryptogramMaterialCharacteristicsResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISmartCardCryptogramGetAllCryptogramMaterialCharacteristicsResult { - type Vtable = ISmartCardCryptogramGetAllCryptogramMaterialCharacteristicsResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmartCardCryptogramGetAllCryptogramMaterialCharacteristicsResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2798e029_d687_4c92_86c6_399e9a0ecb09); -} +::windows_core::imp::com_interface!(ISmartCardCryptogramGetAllCryptogramMaterialCharacteristicsResult, ISmartCardCryptogramGetAllCryptogramMaterialCharacteristicsResult_Vtbl, 0x2798e029_d687_4c92_86c6_399e9a0ecb09); #[repr(C)] #[doc(hidden)] pub struct ISmartCardCryptogramGetAllCryptogramMaterialCharacteristicsResult_Vtbl { @@ -510,16 +312,7 @@ pub struct ISmartCardCryptogramGetAllCryptogramMaterialCharacteristicsResult_Vtb #[cfg(not(feature = "Foundation_Collections"))] Characteristics: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmartCardCryptogramGetAllCryptogramMaterialPackageCharacteristicsResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISmartCardCryptogramGetAllCryptogramMaterialPackageCharacteristicsResult { - type Vtable = ISmartCardCryptogramGetAllCryptogramMaterialPackageCharacteristicsResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmartCardCryptogramGetAllCryptogramMaterialPackageCharacteristicsResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4e6a8a5c_9773_46c4_a32f_b1e543159e04); -} +::windows_core::imp::com_interface!(ISmartCardCryptogramGetAllCryptogramMaterialPackageCharacteristicsResult, ISmartCardCryptogramGetAllCryptogramMaterialPackageCharacteristicsResult_Vtbl, 0x4e6a8a5c_9773_46c4_a32f_b1e543159e04); #[repr(C)] #[doc(hidden)] pub struct ISmartCardCryptogramGetAllCryptogramMaterialPackageCharacteristicsResult_Vtbl { @@ -530,16 +323,7 @@ pub struct ISmartCardCryptogramGetAllCryptogramMaterialPackageCharacteristicsRes #[cfg(not(feature = "Foundation_Collections"))] Characteristics: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmartCardCryptogramGetAllCryptogramStorageKeyCharacteristicsResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISmartCardCryptogramGetAllCryptogramStorageKeyCharacteristicsResult { - type Vtable = ISmartCardCryptogramGetAllCryptogramStorageKeyCharacteristicsResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmartCardCryptogramGetAllCryptogramStorageKeyCharacteristicsResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8c7ce857_a7e7_489d_b9d6_368061515012); -} +::windows_core::imp::com_interface!(ISmartCardCryptogramGetAllCryptogramStorageKeyCharacteristicsResult, ISmartCardCryptogramGetAllCryptogramStorageKeyCharacteristicsResult_Vtbl, 0x8c7ce857_a7e7_489d_b9d6_368061515012); #[repr(C)] #[doc(hidden)] pub struct ISmartCardCryptogramGetAllCryptogramStorageKeyCharacteristicsResult_Vtbl { @@ -550,16 +334,7 @@ pub struct ISmartCardCryptogramGetAllCryptogramStorageKeyCharacteristicsResult_V #[cfg(not(feature = "Foundation_Collections"))] Characteristics: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmartCardCryptogramMaterialCharacteristics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISmartCardCryptogramMaterialCharacteristics { - type Vtable = ISmartCardCryptogramMaterialCharacteristics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmartCardCryptogramMaterialCharacteristics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfc9ac5cc_c1d7_4153_923b_a2d43c6c8d49); -} +::windows_core::imp::com_interface!(ISmartCardCryptogramMaterialCharacteristics, ISmartCardCryptogramMaterialCharacteristics_Vtbl, 0xfc9ac5cc_c1d7_4153_923b_a2d43c6c8d49); #[repr(C)] #[doc(hidden)] pub struct ISmartCardCryptogramMaterialCharacteristics_Vtbl { @@ -582,16 +357,7 @@ pub struct ISmartCardCryptogramMaterialCharacteristics_Vtbl { pub ProtectionVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows_core::HRESULT, pub MaterialLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmartCardCryptogramMaterialPackageCharacteristics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISmartCardCryptogramMaterialPackageCharacteristics { - type Vtable = ISmartCardCryptogramMaterialPackageCharacteristics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmartCardCryptogramMaterialPackageCharacteristics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xffb58e1f_0692_4c47_93cf_34d91f9dcd00); -} +::windows_core::imp::com_interface!(ISmartCardCryptogramMaterialPackageCharacteristics, ISmartCardCryptogramMaterialPackageCharacteristics_Vtbl, 0xffb58e1f_0692_4c47_93cf_34d91f9dcd00); #[repr(C)] #[doc(hidden)] pub struct ISmartCardCryptogramMaterialPackageCharacteristics_Vtbl { @@ -601,16 +367,7 @@ pub struct ISmartCardCryptogramMaterialPackageCharacteristics_Vtbl { pub DateImported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::DateTime) -> ::windows_core::HRESULT, pub PackageFormat: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut SmartCardCryptogramMaterialPackageFormat) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmartCardCryptogramMaterialPossessionProof(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISmartCardCryptogramMaterialPossessionProof { - type Vtable = ISmartCardCryptogramMaterialPossessionProof_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmartCardCryptogramMaterialPossessionProof { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe5b9ab8c_a141_4135_9add_b0d2e3aa1fc9); -} +::windows_core::imp::com_interface!(ISmartCardCryptogramMaterialPossessionProof, ISmartCardCryptogramMaterialPossessionProof_Vtbl, 0xe5b9ab8c_a141_4135_9add_b0d2e3aa1fc9); #[repr(C)] #[doc(hidden)] pub struct ISmartCardCryptogramMaterialPossessionProof_Vtbl { @@ -621,16 +378,7 @@ pub struct ISmartCardCryptogramMaterialPossessionProof_Vtbl { #[cfg(not(feature = "Storage_Streams"))] Proof: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmartCardCryptogramPlacementStep(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISmartCardCryptogramPlacementStep { - type Vtable = ISmartCardCryptogramPlacementStep_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmartCardCryptogramPlacementStep { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x947b03eb_8342_4792_a2e5_925636378a53); -} +::windows_core::imp::com_interface!(ISmartCardCryptogramPlacementStep, ISmartCardCryptogramPlacementStep_Vtbl, 0x947b03eb_8342_4792_a2e5_925636378a53); #[repr(C)] #[doc(hidden)] pub struct ISmartCardCryptogramPlacementStep_Vtbl { @@ -660,16 +408,7 @@ pub struct ISmartCardCryptogramPlacementStep_Vtbl { pub ChainedOutputStep: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetChainedOutputStep: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmartCardCryptogramStorageKeyCharacteristics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISmartCardCryptogramStorageKeyCharacteristics { - type Vtable = ISmartCardCryptogramStorageKeyCharacteristics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmartCardCryptogramStorageKeyCharacteristics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8552546e_4457_4825_b464_635471a39f5c); -} +::windows_core::imp::com_interface!(ISmartCardCryptogramStorageKeyCharacteristics, ISmartCardCryptogramStorageKeyCharacteristics_Vtbl, 0x8552546e_4457_4825_b464_635471a39f5c); #[repr(C)] #[doc(hidden)] pub struct ISmartCardCryptogramStorageKeyCharacteristics_Vtbl { @@ -679,16 +418,7 @@ pub struct ISmartCardCryptogramStorageKeyCharacteristics_Vtbl { pub Algorithm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut SmartCardCryptogramStorageKeyAlgorithm) -> ::windows_core::HRESULT, pub Capabilities: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut SmartCardCryptogramStorageKeyCapabilities) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmartCardCryptogramStorageKeyInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISmartCardCryptogramStorageKeyInfo { - type Vtable = ISmartCardCryptogramStorageKeyInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmartCardCryptogramStorageKeyInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x77b0f00d_b097_4f61_a26a_9561639c9c3a); -} +::windows_core::imp::com_interface!(ISmartCardCryptogramStorageKeyInfo, ISmartCardCryptogramStorageKeyInfo_Vtbl, 0x77b0f00d_b097_4f61_a26a_9561639c9c3a); #[repr(C)] #[doc(hidden)] pub struct ISmartCardCryptogramStorageKeyInfo_Vtbl { @@ -713,48 +443,21 @@ pub struct ISmartCardCryptogramStorageKeyInfo_Vtbl { AttestationCertificateChain: usize, pub Capabilities: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut SmartCardCryptogramStorageKeyCapabilities) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmartCardCryptogramStorageKeyInfo2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISmartCardCryptogramStorageKeyInfo2 { - type Vtable = ISmartCardCryptogramStorageKeyInfo2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmartCardCryptogramStorageKeyInfo2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x000440f9_f7fd_417d_89e1_fbb0382adc4d); -} +::windows_core::imp::com_interface!(ISmartCardCryptogramStorageKeyInfo2, ISmartCardCryptogramStorageKeyInfo2_Vtbl, 0x000440f9_f7fd_417d_89e1_fbb0382adc4d); #[repr(C)] #[doc(hidden)] pub struct ISmartCardCryptogramStorageKeyInfo2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub OperationalRequirements: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmartCardEmulator(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISmartCardEmulator { - type Vtable = ISmartCardEmulator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmartCardEmulator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdfb906b2_875e_47e5_8077_e8bff1b1c6fb); -} +::windows_core::imp::com_interface!(ISmartCardEmulator, ISmartCardEmulator_Vtbl, 0xdfb906b2_875e_47e5_8077_e8bff1b1c6fb); #[repr(C)] #[doc(hidden)] pub struct ISmartCardEmulator_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub EnablementPolicy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut SmartCardEmulatorEnablementPolicy) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmartCardEmulator2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISmartCardEmulator2 { - type Vtable = ISmartCardEmulator2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmartCardEmulator2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfe3fc0b8_8529_411a_807b_48edc2a0ab44); -} +::windows_core::imp::com_interface!(ISmartCardEmulator2, ISmartCardEmulator2_Vtbl, 0xfe3fc0b8_8529_411a_807b_48edc2a0ab44); #[repr(C)] #[doc(hidden)] pub struct ISmartCardEmulator2_Vtbl { @@ -766,16 +469,7 @@ pub struct ISmartCardEmulator2_Vtbl { pub Start: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub IsHostCardEmulationSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmartCardEmulatorApduReceivedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISmartCardEmulatorApduReceivedEventArgs { - type Vtable = ISmartCardEmulatorApduReceivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmartCardEmulatorApduReceivedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd55d1576_69d2_5333_5b5f_f8c0d6e9f09f); -} +::windows_core::imp::com_interface!(ISmartCardEmulatorApduReceivedEventArgs, ISmartCardEmulatorApduReceivedEventArgs_Vtbl, 0xd55d1576_69d2_5333_5b5f_f8c0d6e9f09f); #[repr(C)] #[doc(hidden)] pub struct ISmartCardEmulatorApduReceivedEventArgs_Vtbl { @@ -791,16 +485,7 @@ pub struct ISmartCardEmulatorApduReceivedEventArgs_Vtbl { TryRespondAsync: usize, pub AutomaticResponseStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut SmartCardAutomaticResponseStatus) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmartCardEmulatorApduReceivedEventArgs2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISmartCardEmulatorApduReceivedEventArgs2 { - type Vtable = ISmartCardEmulatorApduReceivedEventArgs2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmartCardEmulatorApduReceivedEventArgs2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8bf93df0_22e1_4238_8610_94ce4a965425); -} +::windows_core::imp::com_interface!(ISmartCardEmulatorApduReceivedEventArgs2, ISmartCardEmulatorApduReceivedEventArgs2_Vtbl, 0x8bf93df0_22e1_4238_8610_94ce4a965425); #[repr(C)] #[doc(hidden)] pub struct ISmartCardEmulatorApduReceivedEventArgs2_Vtbl { @@ -811,16 +496,7 @@ pub struct ISmartCardEmulatorApduReceivedEventArgs2_Vtbl { #[cfg(not(feature = "Storage_Streams"))] TryRespondWithStateAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmartCardEmulatorApduReceivedEventArgsWithCryptograms(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISmartCardEmulatorApduReceivedEventArgsWithCryptograms { - type Vtable = ISmartCardEmulatorApduReceivedEventArgsWithCryptograms_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmartCardEmulatorApduReceivedEventArgsWithCryptograms { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd550bac7_b7bf_4e29_9294_0c4ac3c941bd); -} +::windows_core::imp::com_interface!(ISmartCardEmulatorApduReceivedEventArgsWithCryptograms, ISmartCardEmulatorApduReceivedEventArgsWithCryptograms_Vtbl, 0xd550bac7_b7bf_4e29_9294_0c4ac3c941bd); #[repr(C)] #[doc(hidden)] pub struct ISmartCardEmulatorApduReceivedEventArgsWithCryptograms_Vtbl { @@ -834,16 +510,7 @@ pub struct ISmartCardEmulatorApduReceivedEventArgsWithCryptograms_Vtbl { #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage_Streams")))] TryRespondWithCryptogramsAndStateAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmartCardEmulatorConnectionDeactivatedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISmartCardEmulatorConnectionDeactivatedEventArgs { - type Vtable = ISmartCardEmulatorConnectionDeactivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmartCardEmulatorConnectionDeactivatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2186d8d3_c5eb_5262_43df_62a0a1b55557); -} +::windows_core::imp::com_interface!(ISmartCardEmulatorConnectionDeactivatedEventArgs, ISmartCardEmulatorConnectionDeactivatedEventArgs_Vtbl, 0x2186d8d3_c5eb_5262_43df_62a0a1b55557); #[repr(C)] #[doc(hidden)] pub struct ISmartCardEmulatorConnectionDeactivatedEventArgs_Vtbl { @@ -851,16 +518,7 @@ pub struct ISmartCardEmulatorConnectionDeactivatedEventArgs_Vtbl { pub ConnectionProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Reason: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut SmartCardEmulatorConnectionDeactivatedReason) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmartCardEmulatorConnectionProperties(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISmartCardEmulatorConnectionProperties { - type Vtable = ISmartCardEmulatorConnectionProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmartCardEmulatorConnectionProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4e2ca5ee_f969_507d_6cf9_34e2d18df311); -} +::windows_core::imp::com_interface!(ISmartCardEmulatorConnectionProperties, ISmartCardEmulatorConnectionProperties_Vtbl, 0x4e2ca5ee_f969_507d_6cf9_34e2d18df311); #[repr(C)] #[doc(hidden)] pub struct ISmartCardEmulatorConnectionProperties_Vtbl { @@ -868,32 +526,14 @@ pub struct ISmartCardEmulatorConnectionProperties_Vtbl { pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, pub Source: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut SmartCardEmulatorConnectionSource) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmartCardEmulatorStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISmartCardEmulatorStatics { - type Vtable = ISmartCardEmulatorStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmartCardEmulatorStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7a9bfc4b_c4d3_494f_b8a2_6215d81e85b2); -} +::windows_core::imp::com_interface!(ISmartCardEmulatorStatics, ISmartCardEmulatorStatics_Vtbl, 0x7a9bfc4b_c4d3_494f_b8a2_6215d81e85b2); #[repr(C)] #[doc(hidden)] pub struct ISmartCardEmulatorStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetDefaultAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmartCardEmulatorStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISmartCardEmulatorStatics2 { - type Vtable = ISmartCardEmulatorStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmartCardEmulatorStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x69ae9f8a_b775_488b_8436_6c1e28ed731f); -} +::windows_core::imp::com_interface!(ISmartCardEmulatorStatics2, ISmartCardEmulatorStatics2_Vtbl, 0x69ae9f8a_b775_488b_8436_6c1e28ed731f); #[repr(C)] #[doc(hidden)] pub struct ISmartCardEmulatorStatics2_Vtbl { @@ -906,32 +546,14 @@ pub struct ISmartCardEmulatorStatics2_Vtbl { pub UnregisterAppletIdGroupAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, registration: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub MaxAppletIdGroupRegistrations: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u16) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmartCardEmulatorStatics3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISmartCardEmulatorStatics3 { - type Vtable = ISmartCardEmulatorStatics3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmartCardEmulatorStatics3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x59ea142a_9f09_43f5_8565_cfa8148e4cb2); -} +::windows_core::imp::com_interface!(ISmartCardEmulatorStatics3, ISmartCardEmulatorStatics3_Vtbl, 0x59ea142a_9f09_43f5_8565_cfa8148e4cb2); #[repr(C)] #[doc(hidden)] pub struct ISmartCardEmulatorStatics3_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub IsSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmartCardPinPolicy(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISmartCardPinPolicy { - type Vtable = ISmartCardPinPolicy_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmartCardPinPolicy { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x183ce184_4db6_4841_ac9e_2ac1f39b7304); -} +::windows_core::imp::com_interface!(ISmartCardPinPolicy, ISmartCardPinPolicy_Vtbl, 0x183ce184_4db6_4841_ac9e_2ac1f39b7304); #[repr(C)] #[doc(hidden)] pub struct ISmartCardPinPolicy_Vtbl { @@ -949,32 +571,14 @@ pub struct ISmartCardPinPolicy_Vtbl { pub SpecialCharacters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut SmartCardPinCharacterPolicyOption) -> ::windows_core::HRESULT, pub SetSpecialCharacters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: SmartCardPinCharacterPolicyOption) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmartCardPinResetDeferral(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISmartCardPinResetDeferral { - type Vtable = ISmartCardPinResetDeferral_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmartCardPinResetDeferral { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x18c94aac_7805_4004_85e4_bbefac8f6884); -} +::windows_core::imp::com_interface!(ISmartCardPinResetDeferral, ISmartCardPinResetDeferral_Vtbl, 0x18c94aac_7805_4004_85e4_bbefac8f6884); #[repr(C)] #[doc(hidden)] pub struct ISmartCardPinResetDeferral_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Complete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmartCardPinResetRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISmartCardPinResetRequest { - type Vtable = ISmartCardPinResetRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmartCardPinResetRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x12fe3c4d_5fb9_4e8e_9ff6_61f475124fef); -} +::windows_core::imp::com_interface!(ISmartCardPinResetRequest, ISmartCardPinResetRequest_Vtbl, 0x12fe3c4d_5fb9_4e8e_9ff6_61f475124fef); #[repr(C)] #[doc(hidden)] pub struct ISmartCardPinResetRequest_Vtbl { @@ -990,16 +594,7 @@ pub struct ISmartCardPinResetRequest_Vtbl { #[cfg(not(feature = "Storage_Streams"))] SetResponse: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmartCardProvisioning(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISmartCardProvisioning { - type Vtable = ISmartCardProvisioning_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmartCardProvisioning { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x19eeedbd_1fab_477c_b712_1a2c5af1fd6e); -} +::windows_core::imp::com_interface!(ISmartCardProvisioning, ISmartCardProvisioning_Vtbl, 0x19eeedbd_1fab_477c_b712_1a2c5af1fd6e); #[repr(C)] #[doc(hidden)] pub struct ISmartCardProvisioning_Vtbl { @@ -1011,32 +606,14 @@ pub struct ISmartCardProvisioning_Vtbl { pub RequestPinChangeAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RequestPinResetAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmartCardProvisioning2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISmartCardProvisioning2 { - type Vtable = ISmartCardProvisioning2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmartCardProvisioning2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x10fd28eb_3f79_4b66_9b7c_11c149b7d0bc); -} +::windows_core::imp::com_interface!(ISmartCardProvisioning2, ISmartCardProvisioning2_Vtbl, 0x10fd28eb_3f79_4b66_9b7c_11c149b7d0bc); #[repr(C)] #[doc(hidden)] pub struct ISmartCardProvisioning2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetAuthorityKeyContainerNameAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmartCardProvisioningStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISmartCardProvisioningStatics { - type Vtable = ISmartCardProvisioningStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmartCardProvisioningStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x13882848_0d13_4e70_9735_51daeca5254f); -} +::windows_core::imp::com_interface!(ISmartCardProvisioningStatics, ISmartCardProvisioningStatics_Vtbl, 0x13882848_0d13_4e70_9735_51daeca5254f); #[repr(C)] #[doc(hidden)] pub struct ISmartCardProvisioningStatics_Vtbl { @@ -1052,16 +629,7 @@ pub struct ISmartCardProvisioningStatics_Vtbl { RequestVirtualSmartCardCreationAsyncWithCardId: usize, pub RequestVirtualSmartCardDeletionAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, card: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmartCardProvisioningStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISmartCardProvisioningStatics2 { - type Vtable = ISmartCardProvisioningStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmartCardProvisioningStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3447c6a8_c9a0_4bd6_b50d_251f4e8d3a62); -} +::windows_core::imp::com_interface!(ISmartCardProvisioningStatics2, ISmartCardProvisioningStatics2_Vtbl, 0x3447c6a8_c9a0_4bd6_b50d_251f4e8d3a62); #[repr(C)] #[doc(hidden)] pub struct ISmartCardProvisioningStatics2_Vtbl { @@ -1075,16 +643,7 @@ pub struct ISmartCardProvisioningStatics2_Vtbl { #[cfg(not(feature = "Storage_Streams"))] RequestAttestedVirtualSmartCardCreationAsyncWithCardId: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmartCardReader(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISmartCardReader { - type Vtable = ISmartCardReader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmartCardReader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1074b4e0_54c2_4df0_817a_14c14378f06c); -} +::windows_core::imp::com_interface!(ISmartCardReader, ISmartCardReader_Vtbl, 0x1074b4e0_54c2_4df0_817a_14c14378f06c); #[repr(C)] #[doc(hidden)] pub struct ISmartCardReader_Vtbl { @@ -1102,16 +661,7 @@ pub struct ISmartCardReader_Vtbl { pub CardRemoved: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveCardRemoved: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmartCardReaderStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISmartCardReaderStatics { - type Vtable = ISmartCardReaderStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmartCardReaderStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x103c04e1_a1ca_48f2_a281_5b6f669af107); -} +::windows_core::imp::com_interface!(ISmartCardReaderStatics, ISmartCardReaderStatics_Vtbl, 0x103c04e1_a1ca_48f2_a281_5b6f669af107); #[repr(C)] #[doc(hidden)] pub struct ISmartCardReaderStatics_Vtbl { @@ -1120,16 +670,7 @@ pub struct ISmartCardReaderStatics_Vtbl { pub GetDeviceSelectorWithKind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, kind: SmartCardReaderKind, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub FromIdAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, deviceid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmartCardTriggerDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISmartCardTriggerDetails { - type Vtable = ISmartCardTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmartCardTriggerDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5f9bf11e_39ef_4f2b_b44f_0a9155b177bc); -} +::windows_core::imp::com_interface!(ISmartCardTriggerDetails, ISmartCardTriggerDetails_Vtbl, 0x5f9bf11e_39ef_4f2b_b44f_0a9155b177bc); #[repr(C)] #[doc(hidden)] pub struct ISmartCardTriggerDetails_Vtbl { @@ -1144,16 +685,7 @@ pub struct ISmartCardTriggerDetails_Vtbl { #[cfg(not(feature = "Storage_Streams"))] TriggerData: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmartCardTriggerDetails2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISmartCardTriggerDetails2 { - type Vtable = ISmartCardTriggerDetails2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmartCardTriggerDetails2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2945c569_8975_4a51_9e1a_5f8a76ee51af); -} +::windows_core::imp::com_interface!(ISmartCardTriggerDetails2, ISmartCardTriggerDetails2_Vtbl, 0x2945c569_8975_4a51_9e1a_5f8a76ee51af); #[repr(C)] #[doc(hidden)] pub struct ISmartCardTriggerDetails2_Vtbl { @@ -1162,16 +694,7 @@ pub struct ISmartCardTriggerDetails2_Vtbl { pub TryLaunchCurrentAppAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, arguments: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub TryLaunchCurrentAppWithBehaviorAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, arguments: ::std::mem::MaybeUninit<::windows_core::HSTRING>, behavior: SmartCardLaunchBehavior, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmartCardTriggerDetails3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISmartCardTriggerDetails3 { - type Vtable = ISmartCardTriggerDetails3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmartCardTriggerDetails3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb3e2c27d_18c6_4ba8_8376_ef03d4912666); -} +::windows_core::imp::com_interface!(ISmartCardTriggerDetails3, ISmartCardTriggerDetails3_Vtbl, 0xb3e2c27d_18c6_4ba8_8376_ef03d4912666); #[repr(C)] #[doc(hidden)] pub struct ISmartCardTriggerDetails3_Vtbl { @@ -1181,6 +704,7 @@ pub struct ISmartCardTriggerDetails3_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CardAddedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CardAddedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CardAddedEventArgs { pub fn SmartCard(&self) -> ::windows_core::Result { let this = self; @@ -1195,19 +719,17 @@ impl ::windows_core::RuntimeType for CardAddedEventArgs { } unsafe impl ::windows_core::Interface for CardAddedEventArgs { type Vtable = ICardAddedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CardAddedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CardAddedEventArgs { const NAME: &'static str = "Windows.Devices.SmartCards.CardAddedEventArgs"; } -::windows_core::imp::interface_hierarchy!(CardAddedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CardAddedEventArgs {} unsafe impl ::core::marker::Sync for CardAddedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CardRemovedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CardRemovedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CardRemovedEventArgs { pub fn SmartCard(&self) -> ::windows_core::Result { let this = self; @@ -1222,14 +744,11 @@ impl ::windows_core::RuntimeType for CardRemovedEventArgs { } unsafe impl ::windows_core::Interface for CardRemovedEventArgs { type Vtable = ICardRemovedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CardRemovedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CardRemovedEventArgs { const NAME: &'static str = "Windows.Devices.SmartCards.CardRemovedEventArgs"; } -::windows_core::imp::interface_hierarchy!(CardRemovedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CardRemovedEventArgs {} unsafe impl ::core::marker::Sync for CardRemovedEventArgs {} pub struct KnownSmartCardAppletIds; @@ -1262,6 +781,7 @@ impl ::windows_core::RuntimeName for KnownSmartCardAppletIds { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SmartCard(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SmartCard, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SmartCard { pub fn Reader(&self) -> ::windows_core::Result { let this = self; @@ -1287,7 +807,7 @@ impl SmartCard { } } pub fn ConnectAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + 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), &mut result__).from_abi(result__) @@ -1299,19 +819,17 @@ impl ::windows_core::RuntimeType for SmartCard { } unsafe impl ::windows_core::Interface for SmartCard { type Vtable = ISmartCard_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SmartCard { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SmartCard { const NAME: &'static str = "Windows.Devices.SmartCards.SmartCard"; } -::windows_core::imp::interface_hierarchy!(SmartCard, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SmartCard {} unsafe impl ::core::marker::Sync for SmartCard {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SmartCardAppletIdGroup(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SmartCardAppletIdGroup, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SmartCardAppletIdGroup { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1376,7 +894,7 @@ impl SmartCardAppletIdGroup { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn Logo(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Logo)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1386,51 +904,51 @@ impl SmartCardAppletIdGroup { #[cfg(feature = "Storage_Streams")] pub fn SetLogo(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetLogo)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn Description(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Description)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDescription(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDescription)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SecureUserAuthenticationRequired(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SecureUserAuthenticationRequired)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetSecureUserAuthenticationRequired(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetSecureUserAuthenticationRequired)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Storage_Streams\"`"] #[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::TryIntoParam>, + P0: ::windows_core::IntoParam>, { 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.try_into_param()?.abi(), emulationcategory, emulationtype, &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } pub fn MaxAppletIds() -> ::windows_core::Result { @@ -1455,19 +973,17 @@ impl ::windows_core::RuntimeType for SmartCardAppletIdGroup { } unsafe impl ::windows_core::Interface for SmartCardAppletIdGroup { type Vtable = ISmartCardAppletIdGroup_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SmartCardAppletIdGroup { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SmartCardAppletIdGroup { const NAME: &'static str = "Windows.Devices.SmartCards.SmartCardAppletIdGroup"; } -::windows_core::imp::interface_hierarchy!(SmartCardAppletIdGroup, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SmartCardAppletIdGroup {} unsafe impl ::core::marker::Sync for SmartCardAppletIdGroup {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SmartCardAppletIdGroupRegistration(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SmartCardAppletIdGroupRegistration, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SmartCardAppletIdGroupRegistration { pub fn ActivationPolicy(&self) -> ::windows_core::Result { let this = self; @@ -1501,16 +1017,16 @@ impl SmartCardAppletIdGroupRegistration { #[cfg(feature = "Foundation_Collections")] pub fn SetAutomaticResponseApdusAsync(&self, apdus: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).SetAutomaticResponseApdusAsync)(::windows_core::Interface::as_raw(this), apdus.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SetAutomaticResponseApdusAsync)(::windows_core::Interface::as_raw(this), apdus.into_param().abi(), &mut result__).from_abi(result__) } } pub fn SmartCardReaderId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SmartCardReaderId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1522,7 +1038,7 @@ impl SmartCardAppletIdGroupRegistration { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -1534,19 +1050,17 @@ impl ::windows_core::RuntimeType for SmartCardAppletIdGroupRegistration { } unsafe impl ::windows_core::Interface for SmartCardAppletIdGroupRegistration { type Vtable = ISmartCardAppletIdGroupRegistration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SmartCardAppletIdGroupRegistration { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SmartCardAppletIdGroupRegistration { const NAME: &'static str = "Windows.Devices.SmartCards.SmartCardAppletIdGroupRegistration"; } -::windows_core::imp::interface_hierarchy!(SmartCardAppletIdGroupRegistration, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SmartCardAppletIdGroupRegistration {} unsafe impl ::core::marker::Sync for SmartCardAppletIdGroupRegistration {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SmartCardAutomaticResponseApdu(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SmartCardAutomaticResponseApdu, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SmartCardAutomaticResponseApdu { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] @@ -1561,10 +1075,10 @@ impl SmartCardAutomaticResponseApdu { #[cfg(feature = "Storage_Streams")] pub fn SetCommandApdu(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetCommandApdu)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetCommandApdu)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] @@ -1579,10 +1093,10 @@ impl SmartCardAutomaticResponseApdu { #[cfg(feature = "Storage_Streams")] pub fn SetCommandApduBitMask(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetCommandApduBitMask)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetCommandApduBitMask)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn ShouldMatchLength(&self) -> ::windows_core::Result { let this = self; @@ -1608,10 +1122,10 @@ impl SmartCardAutomaticResponseApdu { #[cfg(feature = "Storage_Streams")] pub fn SetAppletId(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetAppletId)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetAppletId)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] @@ -1626,13 +1140,13 @@ impl SmartCardAutomaticResponseApdu { #[cfg(feature = "Storage_Streams")] pub fn SetResponseApdu(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetResponseApdu)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetResponseApdu)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn InputState(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).InputState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1640,13 +1154,13 @@ impl SmartCardAutomaticResponseApdu { } pub fn SetInputState(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetInputState)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn OutputState(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OutputState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1654,32 +1168,32 @@ impl SmartCardAutomaticResponseApdu { } pub fn SetOutputState(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetOutputState)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn AllowWhenCryptogramGeneratorNotPrepared(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AllowWhenCryptogramGeneratorNotPrepared)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetAllowWhenCryptogramGeneratorNotPrepared(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetAllowWhenCryptogramGeneratorNotPrepared)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn Create(commandapdu: P0, responseapdu: P1) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { Self::ISmartCardAutomaticResponseApduFactory(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).Create)(::windows_core::Interface::as_raw(this), commandapdu.try_into_param()?.abi(), responseapdu.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).Create)(::windows_core::Interface::as_raw(this), commandapdu.into_param().abi(), responseapdu.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -1693,22 +1207,21 @@ impl ::windows_core::RuntimeType for SmartCardAutomaticResponseApdu { } unsafe impl ::windows_core::Interface for SmartCardAutomaticResponseApdu { type Vtable = ISmartCardAutomaticResponseApdu_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SmartCardAutomaticResponseApdu { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SmartCardAutomaticResponseApdu { const NAME: &'static str = "Windows.Devices.SmartCards.SmartCardAutomaticResponseApdu"; } -::windows_core::imp::interface_hierarchy!(SmartCardAutomaticResponseApdu, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SmartCardAutomaticResponseApdu {} unsafe impl ::core::marker::Sync for SmartCardAutomaticResponseApdu {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SmartCardChallengeContext(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SmartCardChallengeContext, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(SmartCardChallengeContext, super::super::Foundation::IClosable); impl SmartCardChallengeContext { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Storage_Streams\"`"] @@ -1724,49 +1237,49 @@ impl SmartCardChallengeContext { #[cfg(feature = "Storage_Streams")] pub fn VerifyResponseAsync(&self, response: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).VerifyResponseAsync)(::windows_core::Interface::as_raw(this), response.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).VerifyResponseAsync)(::windows_core::Interface::as_raw(this), response.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn ProvisionAsync(&self, response: P0, formatcard: bool) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).ProvisionAsync)(::windows_core::Interface::as_raw(this), response.try_into_param()?.abi(), formatcard, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ProvisionAsync)(::windows_core::Interface::as_raw(this), response.into_param().abi(), formatcard, &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn ProvisionAsyncWithNewCardId(&self, response: P0, formatcard: bool, newcardid: ::windows_core::GUID) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).ProvisionAsyncWithNewCardId)(::windows_core::Interface::as_raw(this), response.try_into_param()?.abi(), formatcard, newcardid, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ProvisionAsyncWithNewCardId)(::windows_core::Interface::as_raw(this), response.into_param().abi(), formatcard, newcardid, &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn ChangeAdministrativeKeyAsync(&self, response: P0, newadministrativekey: P1) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).ChangeAdministrativeKeyAsync)(::windows_core::Interface::as_raw(this), response.try_into_param()?.abi(), newadministrativekey.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ChangeAdministrativeKeyAsync)(::windows_core::Interface::as_raw(this), response.into_param().abi(), newadministrativekey.into_param().abi(), &mut result__).from_abi(result__) } } } @@ -1775,35 +1288,33 @@ impl ::windows_core::RuntimeType for SmartCardChallengeContext { } unsafe impl ::windows_core::Interface for SmartCardChallengeContext { type Vtable = ISmartCardChallengeContext_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SmartCardChallengeContext { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SmartCardChallengeContext { const NAME: &'static str = "Windows.Devices.SmartCards.SmartCardChallengeContext"; } -::windows_core::imp::interface_hierarchy!(SmartCardChallengeContext, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for SmartCardChallengeContext {} unsafe impl ::core::marker::Send for SmartCardChallengeContext {} unsafe impl ::core::marker::Sync for SmartCardChallengeContext {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SmartCardConnection(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SmartCardConnection, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(SmartCardConnection, super::super::Foundation::IClosable); impl SmartCardConnection { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn TransmitAsync(&self, command: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).TransmitAsync)(::windows_core::Interface::as_raw(this), command.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).TransmitAsync)(::windows_core::Interface::as_raw(this), command.into_param().abi(), &mut result__).from_abi(result__) } } } @@ -1812,20 +1323,17 @@ impl ::windows_core::RuntimeType for SmartCardConnection { } unsafe impl ::windows_core::Interface for SmartCardConnection { type Vtable = ISmartCardConnection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SmartCardConnection { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SmartCardConnection { const NAME: &'static str = "Windows.Devices.SmartCards.SmartCardConnection"; } -::windows_core::imp::interface_hierarchy!(SmartCardConnection, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for SmartCardConnection {} unsafe impl ::core::marker::Send for SmartCardConnection {} unsafe impl ::core::marker::Sync for SmartCardConnection {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SmartCardCryptogramGenerator(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SmartCardCryptogramGenerator, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SmartCardCryptogramGenerator { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -1899,24 +1407,24 @@ 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::TryIntoParam, + P0: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), &mut result__).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.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Storage_Streams\"`"] #[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::TryIntoParam, + P0: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), &mut result__).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.into_param().abi(), &mut result__).from_abi(result__) } } pub fn RequestUnlockCryptogramMaterialForUseAsync(&self, promptingbehavior: SmartCardUnlockPromptingBehavior) -> ::windows_core::Result> { @@ -1937,38 +1445,38 @@ 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::TryIntoParam, - P1: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), cryptogramplacementsteps.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ValidateRequestApduAsync)(::windows_core::Interface::as_raw(this), promptingbehavior, apdutovalidate.into_param().abi(), cryptogramplacementsteps.into_param().abi(), &mut result__).from_abi(result__) } } pub fn GetAllCryptogramStorageKeyCharacteristicsAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetAllCryptogramStorageKeyCharacteristicsAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetAllCryptogramMaterialPackageCharacteristicsAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetAllCryptogramMaterialPackageCharacteristicsAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetAllCryptogramMaterialPackageCharacteristicsWithStorageKeyAsync(&self, storagekeyname: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetAllCryptogramMaterialPackageCharacteristicsWithStorageKeyAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(storagekeyname), &mut result__).from_abi(result__) } } pub fn GetAllCryptogramMaterialCharacteristicsAsync(&self, promptingbehavior: SmartCardUnlockPromptingBehavior, materialpackagename: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetAllCryptogramMaterialCharacteristicsAsync)(::windows_core::Interface::as_raw(this), promptingbehavior, ::core::mem::transmute_copy(materialpackagename), &mut result__).from_abi(result__) @@ -2002,19 +1510,17 @@ impl ::windows_core::RuntimeType for SmartCardCryptogramGenerator { } unsafe impl ::windows_core::Interface for SmartCardCryptogramGenerator { type Vtable = ISmartCardCryptogramGenerator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SmartCardCryptogramGenerator { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SmartCardCryptogramGenerator { const NAME: &'static str = "Windows.Devices.SmartCards.SmartCardCryptogramGenerator"; } -::windows_core::imp::interface_hierarchy!(SmartCardCryptogramGenerator, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SmartCardCryptogramGenerator {} unsafe impl ::core::marker::Sync for SmartCardCryptogramGenerator {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SmartCardCryptogramGetAllCryptogramMaterialCharacteristicsResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SmartCardCryptogramGetAllCryptogramMaterialCharacteristicsResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SmartCardCryptogramGetAllCryptogramMaterialCharacteristicsResult { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2045,19 +1551,17 @@ impl ::windows_core::RuntimeType for SmartCardCryptogramGetAllCryptogramMaterial } unsafe impl ::windows_core::Interface for SmartCardCryptogramGetAllCryptogramMaterialCharacteristicsResult { type Vtable = ISmartCardCryptogramGetAllCryptogramMaterialCharacteristicsResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SmartCardCryptogramGetAllCryptogramMaterialCharacteristicsResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SmartCardCryptogramGetAllCryptogramMaterialCharacteristicsResult { const NAME: &'static str = "Windows.Devices.SmartCards.SmartCardCryptogramGetAllCryptogramMaterialCharacteristicsResult"; } -::windows_core::imp::interface_hierarchy!(SmartCardCryptogramGetAllCryptogramMaterialCharacteristicsResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SmartCardCryptogramGetAllCryptogramMaterialCharacteristicsResult {} unsafe impl ::core::marker::Sync for SmartCardCryptogramGetAllCryptogramMaterialCharacteristicsResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SmartCardCryptogramGetAllCryptogramMaterialPackageCharacteristicsResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SmartCardCryptogramGetAllCryptogramMaterialPackageCharacteristicsResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SmartCardCryptogramGetAllCryptogramMaterialPackageCharacteristicsResult { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2088,19 +1592,17 @@ impl ::windows_core::RuntimeType for SmartCardCryptogramGetAllCryptogramMaterial } unsafe impl ::windows_core::Interface for SmartCardCryptogramGetAllCryptogramMaterialPackageCharacteristicsResult { type Vtable = ISmartCardCryptogramGetAllCryptogramMaterialPackageCharacteristicsResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SmartCardCryptogramGetAllCryptogramMaterialPackageCharacteristicsResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SmartCardCryptogramGetAllCryptogramMaterialPackageCharacteristicsResult { const NAME: &'static str = "Windows.Devices.SmartCards.SmartCardCryptogramGetAllCryptogramMaterialPackageCharacteristicsResult"; } -::windows_core::imp::interface_hierarchy!(SmartCardCryptogramGetAllCryptogramMaterialPackageCharacteristicsResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SmartCardCryptogramGetAllCryptogramMaterialPackageCharacteristicsResult {} unsafe impl ::core::marker::Sync for SmartCardCryptogramGetAllCryptogramMaterialPackageCharacteristicsResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SmartCardCryptogramGetAllCryptogramStorageKeyCharacteristicsResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SmartCardCryptogramGetAllCryptogramStorageKeyCharacteristicsResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SmartCardCryptogramGetAllCryptogramStorageKeyCharacteristicsResult { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2131,19 +1633,17 @@ impl ::windows_core::RuntimeType for SmartCardCryptogramGetAllCryptogramStorageK } unsafe impl ::windows_core::Interface for SmartCardCryptogramGetAllCryptogramStorageKeyCharacteristicsResult { type Vtable = ISmartCardCryptogramGetAllCryptogramStorageKeyCharacteristicsResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SmartCardCryptogramGetAllCryptogramStorageKeyCharacteristicsResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SmartCardCryptogramGetAllCryptogramStorageKeyCharacteristicsResult { const NAME: &'static str = "Windows.Devices.SmartCards.SmartCardCryptogramGetAllCryptogramStorageKeyCharacteristicsResult"; } -::windows_core::imp::interface_hierarchy!(SmartCardCryptogramGetAllCryptogramStorageKeyCharacteristicsResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SmartCardCryptogramGetAllCryptogramStorageKeyCharacteristicsResult {} unsafe impl ::core::marker::Sync for SmartCardCryptogramGetAllCryptogramStorageKeyCharacteristicsResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SmartCardCryptogramMaterialCharacteristics(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SmartCardCryptogramMaterialCharacteristics, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SmartCardCryptogramMaterialCharacteristics { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2220,19 +1720,17 @@ impl ::windows_core::RuntimeType for SmartCardCryptogramMaterialCharacteristics } unsafe impl ::windows_core::Interface for SmartCardCryptogramMaterialCharacteristics { type Vtable = ISmartCardCryptogramMaterialCharacteristics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SmartCardCryptogramMaterialCharacteristics { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SmartCardCryptogramMaterialCharacteristics { const NAME: &'static str = "Windows.Devices.SmartCards.SmartCardCryptogramMaterialCharacteristics"; } -::windows_core::imp::interface_hierarchy!(SmartCardCryptogramMaterialCharacteristics, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SmartCardCryptogramMaterialCharacteristics {} unsafe impl ::core::marker::Sync for SmartCardCryptogramMaterialCharacteristics {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SmartCardCryptogramMaterialPackageCharacteristics(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SmartCardCryptogramMaterialPackageCharacteristics, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SmartCardCryptogramMaterialPackageCharacteristics { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2275,19 +1773,17 @@ impl ::windows_core::RuntimeType for SmartCardCryptogramMaterialPackageCharacter } unsafe impl ::windows_core::Interface for SmartCardCryptogramMaterialPackageCharacteristics { type Vtable = ISmartCardCryptogramMaterialPackageCharacteristics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SmartCardCryptogramMaterialPackageCharacteristics { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SmartCardCryptogramMaterialPackageCharacteristics { const NAME: &'static str = "Windows.Devices.SmartCards.SmartCardCryptogramMaterialPackageCharacteristics"; } -::windows_core::imp::interface_hierarchy!(SmartCardCryptogramMaterialPackageCharacteristics, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SmartCardCryptogramMaterialPackageCharacteristics {} unsafe impl ::core::marker::Sync for SmartCardCryptogramMaterialPackageCharacteristics {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SmartCardCryptogramMaterialPossessionProof(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SmartCardCryptogramMaterialPossessionProof, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SmartCardCryptogramMaterialPossessionProof { pub fn OperationStatus(&self) -> ::windows_core::Result { let this = self; @@ -2311,19 +1807,17 @@ impl ::windows_core::RuntimeType for SmartCardCryptogramMaterialPossessionProof } unsafe impl ::windows_core::Interface for SmartCardCryptogramMaterialPossessionProof { type Vtable = ISmartCardCryptogramMaterialPossessionProof_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SmartCardCryptogramMaterialPossessionProof { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SmartCardCryptogramMaterialPossessionProof { const NAME: &'static str = "Windows.Devices.SmartCards.SmartCardCryptogramMaterialPossessionProof"; } -::windows_core::imp::interface_hierarchy!(SmartCardCryptogramMaterialPossessionProof, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SmartCardCryptogramMaterialPossessionProof {} unsafe impl ::core::marker::Sync for SmartCardCryptogramMaterialPossessionProof {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SmartCardCryptogramPlacementStep(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SmartCardCryptogramPlacementStep, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SmartCardCryptogramPlacementStep { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2356,10 +1850,10 @@ impl SmartCardCryptogramPlacementStep { #[cfg(feature = "Storage_Streams")] pub fn SetSourceData(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetSourceData)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetSourceData)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn CryptogramMaterialPackageName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -2447,19 +1941,17 @@ impl ::windows_core::RuntimeType for SmartCardCryptogramPlacementStep { } unsafe impl ::windows_core::Interface for SmartCardCryptogramPlacementStep { type Vtable = ISmartCardCryptogramPlacementStep_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SmartCardCryptogramPlacementStep { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SmartCardCryptogramPlacementStep { const NAME: &'static str = "Windows.Devices.SmartCards.SmartCardCryptogramPlacementStep"; } -::windows_core::imp::interface_hierarchy!(SmartCardCryptogramPlacementStep, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SmartCardCryptogramPlacementStep {} unsafe impl ::core::marker::Sync for SmartCardCryptogramPlacementStep {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SmartCardCryptogramStorageKeyCharacteristics(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SmartCardCryptogramStorageKeyCharacteristics, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SmartCardCryptogramStorageKeyCharacteristics { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2502,19 +1994,17 @@ impl ::windows_core::RuntimeType for SmartCardCryptogramStorageKeyCharacteristic } unsafe impl ::windows_core::Interface for SmartCardCryptogramStorageKeyCharacteristics { type Vtable = ISmartCardCryptogramStorageKeyCharacteristics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SmartCardCryptogramStorageKeyCharacteristics { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SmartCardCryptogramStorageKeyCharacteristics { const NAME: &'static str = "Windows.Devices.SmartCards.SmartCardCryptogramStorageKeyCharacteristics"; } -::windows_core::imp::interface_hierarchy!(SmartCardCryptogramStorageKeyCharacteristics, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SmartCardCryptogramStorageKeyCharacteristics {} unsafe impl ::core::marker::Sync for SmartCardCryptogramStorageKeyCharacteristics {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SmartCardCryptogramStorageKeyInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SmartCardCryptogramStorageKeyInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SmartCardCryptogramStorageKeyInfo { pub fn OperationStatus(&self) -> ::windows_core::Result { let this = self; @@ -2574,7 +2064,7 @@ impl SmartCardCryptogramStorageKeyInfo { } } pub fn OperationalRequirements(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OperationalRequirements)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2586,19 +2076,17 @@ impl ::windows_core::RuntimeType for SmartCardCryptogramStorageKeyInfo { } unsafe impl ::windows_core::Interface for SmartCardCryptogramStorageKeyInfo { type Vtable = ISmartCardCryptogramStorageKeyInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SmartCardCryptogramStorageKeyInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SmartCardCryptogramStorageKeyInfo { const NAME: &'static str = "Windows.Devices.SmartCards.SmartCardCryptogramStorageKeyInfo"; } -::windows_core::imp::interface_hierarchy!(SmartCardCryptogramStorageKeyInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SmartCardCryptogramStorageKeyInfo {} unsafe impl ::core::marker::Sync for SmartCardCryptogramStorageKeyInfo {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SmartCardEmulator(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SmartCardEmulator, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SmartCardEmulator { pub fn EnablementPolicy(&self) -> ::windows_core::Result { let this = self; @@ -2611,36 +2099,36 @@ impl SmartCardEmulator { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveApduReceived(&self, value: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveApduReceived)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn ConnectionDeactivated(&self, value: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveConnectionDeactivated(&self, value: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveConnectionDeactivated)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Start(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Start)(::windows_core::Interface::as_raw(this)).ok() } } pub fn IsHostCardEmulationSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsHostCardEmulationSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2711,19 +2199,17 @@ impl ::windows_core::RuntimeType for SmartCardEmulator { } unsafe impl ::windows_core::Interface for SmartCardEmulator { type Vtable = ISmartCardEmulator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SmartCardEmulator { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SmartCardEmulator { const NAME: &'static str = "Windows.Devices.SmartCards.SmartCardEmulator"; } -::windows_core::imp::interface_hierarchy!(SmartCardEmulator, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SmartCardEmulator {} unsafe impl ::core::marker::Sync for SmartCardEmulator {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SmartCardEmulatorApduReceivedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SmartCardEmulatorApduReceivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SmartCardEmulatorApduReceivedEventArgs { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] @@ -2745,12 +2231,12 @@ impl SmartCardEmulatorApduReceivedEventArgs { #[cfg(feature = "Storage_Streams")] pub fn TryRespondAsync(&self, responseapdu: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).TryRespondAsync)(::windows_core::Interface::as_raw(this), responseapdu.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).TryRespondAsync)(::windows_core::Interface::as_raw(this), responseapdu.into_param().abi(), &mut result__).from_abi(result__) } } pub fn AutomaticResponseStatus(&self) -> ::windows_core::Result { @@ -2761,7 +2247,7 @@ impl SmartCardEmulatorApduReceivedEventArgs { } } pub fn State(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).State)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2771,40 +2257,40 @@ impl SmartCardEmulatorApduReceivedEventArgs { #[cfg(feature = "Storage_Streams")] pub fn TryRespondWithStateAsync(&self, responseapdu: P0, nextstate: P1) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), nextstate.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).TryRespondWithStateAsync)(::windows_core::Interface::as_raw(this), responseapdu.into_param().abi(), nextstate.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Storage_Streams\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] pub fn TryRespondWithCryptogramsAsync(&self, responsetemplate: P0, cryptogramplacementsteps: P1) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), cryptogramplacementsteps.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).TryRespondWithCryptogramsAsync)(::windows_core::Interface::as_raw(this), responsetemplate.into_param().abi(), cryptogramplacementsteps.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Storage_Streams\"`"] #[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::TryIntoParam, - P1: ::windows_core::TryIntoParam>, - P2: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam>, + P2: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), cryptogramplacementsteps.try_into_param()?.abi(), nextstate.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) } } } @@ -2813,19 +2299,17 @@ impl ::windows_core::RuntimeType for SmartCardEmulatorApduReceivedEventArgs { } unsafe impl ::windows_core::Interface for SmartCardEmulatorApduReceivedEventArgs { type Vtable = ISmartCardEmulatorApduReceivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SmartCardEmulatorApduReceivedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SmartCardEmulatorApduReceivedEventArgs { const NAME: &'static str = "Windows.Devices.SmartCards.SmartCardEmulatorApduReceivedEventArgs"; } -::windows_core::imp::interface_hierarchy!(SmartCardEmulatorApduReceivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SmartCardEmulatorApduReceivedEventArgs {} unsafe impl ::core::marker::Sync for SmartCardEmulatorApduReceivedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SmartCardEmulatorConnectionDeactivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SmartCardEmulatorConnectionDeactivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SmartCardEmulatorConnectionDeactivatedEventArgs { pub fn ConnectionProperties(&self) -> ::windows_core::Result { let this = self; @@ -2847,19 +2331,17 @@ impl ::windows_core::RuntimeType for SmartCardEmulatorConnectionDeactivatedEvent } unsafe impl ::windows_core::Interface for SmartCardEmulatorConnectionDeactivatedEventArgs { type Vtable = ISmartCardEmulatorConnectionDeactivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SmartCardEmulatorConnectionDeactivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SmartCardEmulatorConnectionDeactivatedEventArgs { const NAME: &'static str = "Windows.Devices.SmartCards.SmartCardEmulatorConnectionDeactivatedEventArgs"; } -::windows_core::imp::interface_hierarchy!(SmartCardEmulatorConnectionDeactivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SmartCardEmulatorConnectionDeactivatedEventArgs {} unsafe impl ::core::marker::Sync for SmartCardEmulatorConnectionDeactivatedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SmartCardEmulatorConnectionProperties(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SmartCardEmulatorConnectionProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SmartCardEmulatorConnectionProperties { pub fn Id(&self) -> ::windows_core::Result<::windows_core::GUID> { let this = self; @@ -2881,19 +2363,17 @@ impl ::windows_core::RuntimeType for SmartCardEmulatorConnectionProperties { } unsafe impl ::windows_core::Interface for SmartCardEmulatorConnectionProperties { type Vtable = ISmartCardEmulatorConnectionProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SmartCardEmulatorConnectionProperties { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SmartCardEmulatorConnectionProperties { const NAME: &'static str = "Windows.Devices.SmartCards.SmartCardEmulatorConnectionProperties"; } -::windows_core::imp::interface_hierarchy!(SmartCardEmulatorConnectionProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SmartCardEmulatorConnectionProperties {} unsafe impl ::core::marker::Sync for SmartCardEmulatorConnectionProperties {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SmartCardPinPolicy(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SmartCardPinPolicy, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SmartCardPinPolicy { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2974,19 +2454,17 @@ impl ::windows_core::RuntimeType for SmartCardPinPolicy { } unsafe impl ::windows_core::Interface for SmartCardPinPolicy { type Vtable = ISmartCardPinPolicy_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SmartCardPinPolicy { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SmartCardPinPolicy { const NAME: &'static str = "Windows.Devices.SmartCards.SmartCardPinPolicy"; } -::windows_core::imp::interface_hierarchy!(SmartCardPinPolicy, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SmartCardPinPolicy {} unsafe impl ::core::marker::Sync for SmartCardPinPolicy {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SmartCardPinResetDeferral(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SmartCardPinResetDeferral, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SmartCardPinResetDeferral { pub fn Complete(&self) -> ::windows_core::Result<()> { let this = self; @@ -2998,19 +2476,17 @@ impl ::windows_core::RuntimeType for SmartCardPinResetDeferral { } unsafe impl ::windows_core::Interface for SmartCardPinResetDeferral { type Vtable = ISmartCardPinResetDeferral_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SmartCardPinResetDeferral { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SmartCardPinResetDeferral { const NAME: &'static str = "Windows.Devices.SmartCards.SmartCardPinResetDeferral"; } -::windows_core::imp::interface_hierarchy!(SmartCardPinResetDeferral, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SmartCardPinResetDeferral {} unsafe impl ::core::marker::Sync for SmartCardPinResetDeferral {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SmartCardPinResetRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SmartCardPinResetRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SmartCardPinResetRequest { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] @@ -3039,10 +2515,10 @@ impl SmartCardPinResetRequest { #[cfg(feature = "Storage_Streams")] pub fn SetResponse(&self, response: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetResponse)(::windows_core::Interface::as_raw(this), response.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetResponse)(::windows_core::Interface::as_raw(this), response.into_param().abi()).ok() } } } impl ::windows_core::RuntimeType for SmartCardPinResetRequest { @@ -3050,19 +2526,17 @@ impl ::windows_core::RuntimeType for SmartCardPinResetRequest { } unsafe impl ::windows_core::Interface for SmartCardPinResetRequest { type Vtable = ISmartCardPinResetRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SmartCardPinResetRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SmartCardPinResetRequest { const NAME: &'static str = "Windows.Devices.SmartCards.SmartCardPinResetRequest"; } -::windows_core::imp::interface_hierarchy!(SmartCardPinResetRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SmartCardPinResetRequest {} unsafe impl ::core::marker::Sync for SmartCardPinResetRequest {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SmartCardProvisioning(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SmartCardProvisioning, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SmartCardProvisioning { pub fn SmartCard(&self) -> ::windows_core::Result { let this = self; @@ -3110,7 +2584,7 @@ impl SmartCardProvisioning { } } pub fn GetAuthorityKeyContainerNameAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetAuthorityKeyContainerNameAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3129,24 +2603,24 @@ impl SmartCardProvisioning { #[cfg(feature = "Storage_Streams")] pub fn RequestVirtualSmartCardCreationAsync(friendlyname: &::windows_core::HSTRING, administrativekey: P0, pinpolicy: P1) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), pinpolicy.into_param().abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } #[doc = "Required features: `\"Storage_Streams\"`"] #[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::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), pinpolicy.into_param().abi(), cardid, &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } pub fn RequestVirtualSmartCardDeletionAsync(card: P0) -> ::windows_core::Result> @@ -3162,24 +2636,24 @@ impl SmartCardProvisioning { #[cfg(feature = "Storage_Streams")] pub fn RequestAttestedVirtualSmartCardCreationAsync(friendlyname: &::windows_core::HSTRING, administrativekey: P0, pinpolicy: P1) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), pinpolicy.into_param().abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } #[doc = "Required features: `\"Storage_Streams\"`"] #[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::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), pinpolicy.into_param().abi(), cardid, &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } #[doc(hidden)] @@ -3198,19 +2672,17 @@ impl ::windows_core::RuntimeType for SmartCardProvisioning { } unsafe impl ::windows_core::Interface for SmartCardProvisioning { type Vtable = ISmartCardProvisioning_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SmartCardProvisioning { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SmartCardProvisioning { const NAME: &'static str = "Windows.Devices.SmartCards.SmartCardProvisioning"; } -::windows_core::imp::interface_hierarchy!(SmartCardProvisioning, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SmartCardProvisioning {} unsafe impl ::core::marker::Sync for SmartCardProvisioning {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SmartCardReader(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SmartCardReader, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SmartCardReader { pub fn DeviceId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -3306,19 +2778,17 @@ impl ::windows_core::RuntimeType for SmartCardReader { } unsafe impl ::windows_core::Interface for SmartCardReader { type Vtable = ISmartCardReader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SmartCardReader { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SmartCardReader { const NAME: &'static str = "Windows.Devices.SmartCards.SmartCardReader"; } -::windows_core::imp::interface_hierarchy!(SmartCardReader, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SmartCardReader {} unsafe impl ::core::marker::Sync for SmartCardReader {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SmartCardTriggerDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SmartCardTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SmartCardTriggerDetails { pub fn TriggerType(&self) -> ::windows_core::Result { let this = self; @@ -3346,28 +2816,28 @@ impl SmartCardTriggerDetails { } } pub fn Emulator(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Emulator)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryLaunchCurrentAppAsync(&self, arguments: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryLaunchCurrentAppAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(arguments), &mut result__).from_abi(result__) } } pub fn TryLaunchCurrentAppWithBehaviorAsync(&self, arguments: &::windows_core::HSTRING, behavior: SmartCardLaunchBehavior) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryLaunchCurrentAppWithBehaviorAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(arguments), behavior, &mut result__).from_abi(result__) } } pub fn SmartCard(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SmartCard)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3379,14 +2849,11 @@ impl ::windows_core::RuntimeType for SmartCardTriggerDetails { } unsafe impl ::windows_core::Interface for SmartCardTriggerDetails { type Vtable = ISmartCardTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SmartCardTriggerDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SmartCardTriggerDetails { const NAME: &'static str = "Windows.Devices.SmartCards.SmartCardTriggerDetails"; } -::windows_core::imp::interface_hierarchy!(SmartCardTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SmartCardTriggerDetails {} unsafe impl ::core::marker::Sync for SmartCardTriggerDetails {} #[repr(transparent)] @@ -3954,9 +3421,7 @@ impl ::core::fmt::Debug for SmartCardUnlockPromptingBehavior { impl ::windows_core::RuntimeType for SmartCardUnlockPromptingBehavior { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::from_slice(b"enum(Windows.Devices.SmartCards.SmartCardUnlockPromptingBehavior;i4)"); } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct SmartCardPinResetHandler(pub ::windows_core::IUnknown); +::windows_core::imp::com_interface!(SmartCardPinResetHandler, SmartCardPinResetHandler_Vtbl, 0x138d5e40_f3bc_4a5c_b41d_4b4ef684e237); impl SmartCardPinResetHandler { pub fn new, ::core::option::Option<&SmartCardPinResetRequest>) -> ::windows_core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = SmartCardPinResetHandlerBox:: { vtable: &SmartCardPinResetHandlerBox::::VTABLE, count: ::windows_core::imp::RefCount::new(1), invoke }; @@ -3987,7 +3452,7 @@ impl, ::core::option::Op if iid.is_null() || interface.is_null() { return ::windows_core::HRESULT(-2147467261); } - *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; + *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::Interface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::Interface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; if (*interface).is_null() { ::windows_core::HRESULT(-2147467262) } else { @@ -4012,12 +3477,6 @@ impl, ::core::option::Op ((*this).invoke)(::windows_core::from_raw_borrowed(&sender), ::windows_core::from_raw_borrowed(&request)).into() } } -unsafe impl ::windows_core::Interface for SmartCardPinResetHandler { - type Vtable = SmartCardPinResetHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SmartCardPinResetHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x138d5e40_f3bc_4a5c_b41d_4b4ef684e237); -} impl ::windows_core::RuntimeType for SmartCardPinResetHandler { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } diff --git a/crates/libs/windows/src/Windows/Devices/Sms/impl.rs b/crates/libs/windows/src/Windows/Devices/Sms/impl.rs index a51ad8fc7f..e98b6eb6b0 100644 --- a/crates/libs/windows/src/Windows/Devices/Sms/impl.rs +++ b/crates/libs/windows/src/Windows/Devices/Sms/impl.rs @@ -56,7 +56,7 @@ impl ISmsBinaryMessage_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"deprecated\"`"] @@ -196,7 +196,7 @@ impl ISmsDevice_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISmsMessage_Impl: Sized { @@ -237,7 +237,7 @@ impl ISmsMessage_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISmsMessageBase_Impl: Sized { @@ -319,7 +319,7 @@ impl ISmsMessageBase_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Foundation_Collections\"`, `\"deprecated\"`"] @@ -487,6 +487,6 @@ impl ISmsTextMessage_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/Devices/Sms/mod.rs b/crates/libs/windows/src/Windows/Devices/Sms/mod.rs index 0748f588b4..b0827e1be3 100644 --- a/crates/libs/windows/src/Windows/Devices/Sms/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Sms/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmsAppMessage(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISmsAppMessage { - type Vtable = ISmsAppMessage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmsAppMessage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe8bb8494_d3a0_4a0a_86d7_291033a8cf54); -} +::windows_core::imp::com_interface!(ISmsAppMessage, ISmsAppMessage_Vtbl, 0xe8bb8494_d3a0_4a0a_86d7_291033a8cf54); #[repr(C)] #[doc(hidden)] pub struct ISmsAppMessage_Vtbl { @@ -41,11 +32,17 @@ pub struct ISmsAppMessage_Vtbl { #[cfg(not(feature = "Storage_Streams"))] SetBinaryBody: usize, } -#[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmsBinaryMessage(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + ISmsBinaryMessage, + ISmsBinaryMessage_Vtbl, + 0x5bf4e813_3b53_4c6e_b61a_d86a63755650 +); +#[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(ISmsBinaryMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "deprecated")] +::windows_core::imp::required_hierarchy!(ISmsBinaryMessage, ISmsMessage); #[cfg(feature = "deprecated")] impl ISmsBinaryMessage { #[doc = "Required features: `\"deprecated\"`"] @@ -79,14 +76,14 @@ impl ISmsBinaryMessage { unsafe { (::windows_core::Interface::vtable(this).SetData)(::windows_core::Interface::as_raw(this), value.len().try_into().unwrap(), value.as_ptr()).ok() } } pub fn Id(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Id)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn MessageClass(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MessageClass)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -94,22 +91,10 @@ impl ISmsBinaryMessage { } } #[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(ISmsBinaryMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] -impl ::windows_core::CanTryInto for ISmsBinaryMessage {} -#[cfg(feature = "deprecated")] impl ::windows_core::RuntimeType for ISmsBinaryMessage { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for ISmsBinaryMessage { - type Vtable = ISmsBinaryMessage_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for ISmsBinaryMessage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5bf4e813_3b53_4c6e_b61a_d86a63755650); -} -#[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] pub struct ISmsBinaryMessage_Vtbl { @@ -131,16 +116,7 @@ pub struct ISmsBinaryMessage_Vtbl { #[cfg(not(feature = "deprecated"))] SetData: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmsBroadcastMessage(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISmsBroadcastMessage { - type Vtable = ISmsBroadcastMessage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmsBroadcastMessage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x75aebbf1_e4b7_4874_a09c_2956e592f957); -} +::windows_core::imp::com_interface!(ISmsBroadcastMessage, ISmsBroadcastMessage_Vtbl, 0x75aebbf1_e4b7_4874_a09c_2956e592f957); #[repr(C)] #[doc(hidden)] pub struct ISmsBroadcastMessage_Vtbl { @@ -156,23 +132,27 @@ pub struct ISmsBroadcastMessage_Vtbl { pub IsEmergencyAlert: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub IsUserPopupRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmsDevice(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + ISmsDevice, + ISmsDevice_Vtbl, + 0x091791ed_872b_4eec_9c72_ab11627b34ec +); +#[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(ISmsDevice, ::windows_core::IUnknown, ::windows_core::IInspectable); #[cfg(feature = "deprecated")] impl ISmsDevice { #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] pub fn SendMessageAsync(&self, message: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).SendMessageAsync)(::windows_core::Interface::as_raw(this), message.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SendMessageAsync)(::windows_core::Interface::as_raw(this), message.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"deprecated\"`"] @@ -261,20 +241,10 @@ impl ISmsDevice { } } #[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(ISmsDevice, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] impl ::windows_core::RuntimeType for ISmsDevice { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for ISmsDevice { - type Vtable = ISmsDevice_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for ISmsDevice { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x091791ed_872b_4eec_9c72_ab11627b34ec); -} -#[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] pub struct ISmsDevice_Vtbl { @@ -320,16 +290,7 @@ pub struct ISmsDevice_Vtbl { #[cfg(not(feature = "deprecated"))] RemoveSmsDeviceStatusChanged: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmsDevice2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISmsDevice2 { - type Vtable = ISmsDevice2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmsDevice2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbd8a5c13_e522_46cb_b8d5_9ead30fb6c47); -} +::windows_core::imp::com_interface!(ISmsDevice2, ISmsDevice2_Vtbl, 0xbd8a5c13_e522_46cb_b8d5_9ead30fb6c47); #[repr(C)] #[doc(hidden)] pub struct ISmsDevice2_Vtbl { @@ -346,16 +307,7 @@ pub struct ISmsDevice2_Vtbl { pub DeviceStatusChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventhandler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveDeviceStatusChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventcookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmsDevice2Statics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISmsDevice2Statics { - type Vtable = ISmsDevice2Statics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmsDevice2Statics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x65c78325_1031_491e_8fb6_ef9991afe363); -} +::windows_core::imp::com_interface!(ISmsDevice2Statics, ISmsDevice2Statics_Vtbl, 0x65c78325_1031_491e_8fb6_ef9991afe363); #[repr(C)] #[doc(hidden)] pub struct ISmsDevice2Statics_Vtbl { @@ -365,19 +317,13 @@ pub struct ISmsDevice2Statics_Vtbl { pub GetDefault: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub FromParentId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, parentdeviceid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmsDeviceMessageStore(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for ISmsDeviceMessageStore { - type Vtable = ISmsDeviceMessageStore_Vtbl; -} #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for ISmsDeviceMessageStore { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9889f253_f188_4427_8d54_ce0c2423c5c1); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + ISmsDeviceMessageStore, + ISmsDeviceMessageStore_Vtbl, + 0x9889f253_f188_4427_8d54_ce0c2423c5c1 +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -404,19 +350,13 @@ pub struct ISmsDeviceMessageStore_Vtbl { #[cfg(not(feature = "deprecated"))] MaxMessages: usize, } -#[doc(hidden)] #[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmsDeviceStatics(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for ISmsDeviceStatics { - type Vtable = ISmsDeviceStatics_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for ISmsDeviceStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf88d07ea_d815_4dd1_a234_4520ce4604a4); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + ISmsDeviceStatics, + ISmsDeviceStatics_Vtbl, + 0xf88d07ea_d815_4dd1_a234_4520ce4604a4 +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -435,19 +375,13 @@ pub struct ISmsDeviceStatics_Vtbl { #[cfg(not(feature = "deprecated"))] GetDefaultAsync: usize, } -#[doc(hidden)] -#[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmsDeviceStatics2(::windows_core::IUnknown); #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for ISmsDeviceStatics2 { - type Vtable = ISmsDeviceStatics2_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for ISmsDeviceStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2ca11c87_0873_4caf_8a7d_bd471e8586d1); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + ISmsDeviceStatics2, + ISmsDeviceStatics2_Vtbl, + 0x2ca11c87_0873_4caf_8a7d_bd471e8586d1 +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -458,16 +392,7 @@ pub struct ISmsDeviceStatics2_Vtbl { #[cfg(not(feature = "deprecated"))] FromNetworkAccountIdAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmsFilterRule(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISmsFilterRule { - type Vtable = ISmsFilterRule_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmsFilterRule { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x40e32fae_b049_4fbc_afe9_e2a610eff55c); -} +::windows_core::imp::com_interface!(ISmsFilterRule, ISmsFilterRule_Vtbl, 0x40e32fae_b049_4fbc_afe9_e2a610eff55c); #[repr(C)] #[doc(hidden)] pub struct ISmsFilterRule_Vtbl { @@ -520,32 +445,14 @@ pub struct ISmsFilterRule_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] BroadcastChannels: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmsFilterRuleFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISmsFilterRuleFactory { - type Vtable = ISmsFilterRuleFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmsFilterRuleFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00c36508_6296_4f29_9aad_8920ceba3ce8); -} +::windows_core::imp::com_interface!(ISmsFilterRuleFactory, ISmsFilterRuleFactory_Vtbl, 0x00c36508_6296_4f29_9aad_8920ceba3ce8); #[repr(C)] #[doc(hidden)] pub struct ISmsFilterRuleFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateFilterRule: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, messagetype: SmsMessageType, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmsFilterRules(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISmsFilterRules { - type Vtable = ISmsFilterRules_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmsFilterRules { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4e47eafb_79cd_4881_9894_55a4135b23fa); -} +::windows_core::imp::com_interface!(ISmsFilterRules, ISmsFilterRules_Vtbl, 0x4e47eafb_79cd_4881_9894_55a4135b23fa); #[repr(C)] #[doc(hidden)] pub struct ISmsFilterRules_Vtbl { @@ -556,25 +463,15 @@ pub struct ISmsFilterRules_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Rules: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmsFilterRulesFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISmsFilterRulesFactory { - type Vtable = ISmsFilterRulesFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmsFilterRulesFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa09924ed_6e2e_4530_9fde_465d02eed00e); -} +::windows_core::imp::com_interface!(ISmsFilterRulesFactory, ISmsFilterRulesFactory_Vtbl, 0xa09924ed_6e2e_4530_9fde_465d02eed00e); #[repr(C)] #[doc(hidden)] pub struct ISmsFilterRulesFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateFilterRules: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, actiontype: SmsFilterActionType, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmsMessage(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISmsMessage, ISmsMessage_Vtbl, 0xed3c5e28_6984_4b07_811d_8d5906ed3cea); +::windows_core::imp::interface_hierarchy!(ISmsMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ISmsMessage { pub fn Id(&self) -> ::windows_core::Result { let this = self; @@ -591,16 +488,9 @@ impl ISmsMessage { } } } -::windows_core::imp::interface_hierarchy!(ISmsMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for ISmsMessage { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for ISmsMessage { - type Vtable = ISmsMessage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmsMessage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xed3c5e28_6984_4b07_811d_8d5906ed3cea); -} #[repr(C)] #[doc(hidden)] pub struct ISmsMessage_Vtbl { @@ -608,9 +498,8 @@ pub struct ISmsMessage_Vtbl { pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, pub MessageClass: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut SmsMessageClass) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmsMessageBase(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISmsMessageBase, ISmsMessageBase_Vtbl, 0x2cf0fe30_fe50_4fc6_aa88_4ccfe27a29ea); +::windows_core::imp::interface_hierarchy!(ISmsMessageBase, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ISmsMessageBase { pub fn MessageType(&self) -> ::windows_core::Result { let this = self; @@ -648,16 +537,9 @@ impl ISmsMessageBase { } } } -::windows_core::imp::interface_hierarchy!(ISmsMessageBase, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for ISmsMessageBase { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for ISmsMessageBase { - type Vtable = ISmsMessageBase_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmsMessageBase { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2cf0fe30_fe50_4fc6_aa88_4ccfe27a29ea); -} #[repr(C)] #[doc(hidden)] pub struct ISmsMessageBase_Vtbl { @@ -668,19 +550,13 @@ pub struct ISmsMessageBase_Vtbl { pub MessageClass: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut SmsMessageClass) -> ::windows_core::HRESULT, pub SimIccId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] #[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmsMessageReceivedEventArgs(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for ISmsMessageReceivedEventArgs { - type Vtable = ISmsMessageReceivedEventArgs_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for ISmsMessageReceivedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x08e80a98_b8e5_41c1_a3d8_d3abfae22675); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + ISmsMessageReceivedEventArgs, + ISmsMessageReceivedEventArgs_Vtbl, + 0x08e80a98_b8e5_41c1_a3d8_d3abfae22675 +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -695,16 +571,7 @@ pub struct ISmsMessageReceivedEventArgs_Vtbl { #[cfg(not(feature = "deprecated"))] BinaryMessage: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmsMessageReceivedTriggerDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISmsMessageReceivedTriggerDetails { - type Vtable = ISmsMessageReceivedTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmsMessageReceivedTriggerDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2bcfcbd4_2657_4128_ad5f_e3877132bdb1); -} +::windows_core::imp::com_interface!(ISmsMessageReceivedTriggerDetails, ISmsMessageReceivedTriggerDetails_Vtbl, 0x2bcfcbd4_2657_4128_ad5f_e3877132bdb1); #[repr(C)] #[doc(hidden)] pub struct ISmsMessageReceivedTriggerDetails_Vtbl { @@ -719,16 +586,7 @@ pub struct ISmsMessageReceivedTriggerDetails_Vtbl { pub Drop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Accept: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmsMessageRegistration(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISmsMessageRegistration { - type Vtable = ISmsMessageRegistration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmsMessageRegistration { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1720503e_f34f_446b_83b3_0ff19923b409); -} +::windows_core::imp::com_interface!(ISmsMessageRegistration, ISmsMessageRegistration_Vtbl, 0x1720503e_f34f_446b_83b3_0ff19923b409); #[repr(C)] #[doc(hidden)] pub struct ISmsMessageRegistration_Vtbl { @@ -738,16 +596,7 @@ pub struct ISmsMessageRegistration_Vtbl { pub MessageReceived: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventhandler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveMessageReceived: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventcookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmsMessageRegistrationStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISmsMessageRegistrationStatics { - type Vtable = ISmsMessageRegistrationStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmsMessageRegistrationStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x63a05464_2898_4778_a03c_6f994907d63a); -} +::windows_core::imp::com_interface!(ISmsMessageRegistrationStatics, ISmsMessageRegistrationStatics_Vtbl, 0x63a05464_2898_4778_a03c_6f994907d63a); #[repr(C)] #[doc(hidden)] pub struct ISmsMessageRegistrationStatics_Vtbl { @@ -758,19 +607,13 @@ pub struct ISmsMessageRegistrationStatics_Vtbl { AllRegistrations: usize, pub Register: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: ::std::mem::MaybeUninit<::windows_core::HSTRING>, filterrules: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmsReceivedEventDetails(::windows_core::IUnknown); #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for ISmsReceivedEventDetails { - type Vtable = ISmsReceivedEventDetails_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for ISmsReceivedEventDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5bb50f15_e46d_4c82_847d_5a0304c1d53d); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + ISmsReceivedEventDetails, + ISmsReceivedEventDetails_Vtbl, + 0x5bb50f15_e46d_4c82_847d_5a0304c1d53d +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -785,19 +628,13 @@ pub struct ISmsReceivedEventDetails_Vtbl { #[cfg(not(feature = "deprecated"))] MessageIndex: usize, } -#[doc(hidden)] -#[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmsReceivedEventDetails2(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for ISmsReceivedEventDetails2 { - type Vtable = ISmsReceivedEventDetails2_Vtbl; -} #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for ISmsReceivedEventDetails2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x40e05c86_a7b4_4771_9ae7_0b5ffb12c03a); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + ISmsReceivedEventDetails2, + ISmsReceivedEventDetails2_Vtbl, + 0x40e05c86_a7b4_4771_9ae7_0b5ffb12c03a +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -812,16 +649,7 @@ pub struct ISmsReceivedEventDetails2_Vtbl { #[cfg(not(feature = "deprecated"))] BinaryMessage: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmsSendMessageResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISmsSendMessageResult { - type Vtable = ISmsSendMessageResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmsSendMessageResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdb139af2_78c9_4feb_9622_452328088d62); -} +::windows_core::imp::com_interface!(ISmsSendMessageResult, ISmsSendMessageResult_Vtbl, 0xdb139af2_78c9_4feb_9622_452328088d62); #[repr(C)] #[doc(hidden)] pub struct ISmsSendMessageResult_Vtbl { @@ -837,16 +665,7 @@ pub struct ISmsSendMessageResult_Vtbl { pub NetworkCauseCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows_core::HRESULT, pub TransportFailureCause: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmsStatusMessage(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISmsStatusMessage { - type Vtable = ISmsStatusMessage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmsStatusMessage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe6d28342_b70b_4677_9379_c9783fdff8f4); -} +::windows_core::imp::com_interface!(ISmsStatusMessage, ISmsStatusMessage_Vtbl, 0xe6d28342_b70b_4677_9379_c9783fdff8f4); #[repr(C)] #[doc(hidden)] pub struct ISmsStatusMessage_Vtbl { @@ -859,11 +678,17 @@ pub struct ISmsStatusMessage_Vtbl { pub ServiceCenterTimestamp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::DateTime) -> ::windows_core::HRESULT, pub DischargeTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::DateTime) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmsTextMessage(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + ISmsTextMessage, + ISmsTextMessage_Vtbl, + 0xd61c904c_a495_487f_9a6f_971548c5bc9f +); +#[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(ISmsTextMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "deprecated")] +::windows_core::imp::required_hierarchy!(ISmsTextMessage, ISmsMessage); #[cfg(feature = "deprecated")] impl ISmsTextMessage { #[doc = "Required features: `\"deprecated\"`"] @@ -972,14 +797,14 @@ impl ISmsTextMessage { } } pub fn Id(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Id)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn MessageClass(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MessageClass)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -987,22 +812,10 @@ impl ISmsTextMessage { } } #[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(ISmsTextMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] -impl ::windows_core::CanTryInto for ISmsTextMessage {} -#[cfg(feature = "deprecated")] impl ::windows_core::RuntimeType for ISmsTextMessage { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for ISmsTextMessage { - type Vtable = ISmsTextMessage_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for ISmsTextMessage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd61c904c_a495_487f_9a6f_971548c5bc9f); -} -#[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] pub struct ISmsTextMessage_Vtbl { @@ -1060,16 +873,7 @@ pub struct ISmsTextMessage_Vtbl { #[cfg(not(all(feature = "Foundation_Collections", feature = "deprecated")))] ToBinaryMessages: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmsTextMessage2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISmsTextMessage2 { - type Vtable = ISmsTextMessage2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmsTextMessage2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x22a0d893_4555_4755_b5a1_e7fd84955f8d); -} +::windows_core::imp::com_interface!(ISmsTextMessage2, ISmsTextMessage2_Vtbl, 0x22a0d893_4555_4755_b5a1_e7fd84955f8d); #[repr(C)] #[doc(hidden)] pub struct ISmsTextMessage2_Vtbl { @@ -1091,19 +895,13 @@ pub struct ISmsTextMessage2_Vtbl { pub TeleserviceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows_core::HRESULT, pub ProtocolId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmsTextMessageStatics(::windows_core::IUnknown); #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for ISmsTextMessageStatics { - type Vtable = ISmsTextMessageStatics_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for ISmsTextMessageStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7f68c5ed_3ccc_47a3_8c55_380d3b010892); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + ISmsTextMessageStatics, + ISmsTextMessageStatics_Vtbl, + 0x7f68c5ed_3ccc_47a3_8c55_380d3b010892 +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -1118,16 +916,7 @@ pub struct ISmsTextMessageStatics_Vtbl { #[cfg(not(feature = "deprecated"))] FromBinaryData: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmsVoicemailMessage(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISmsVoicemailMessage { - type Vtable = ISmsVoicemailMessage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmsVoicemailMessage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x271aa0a6_95b1_44ff_bcb8_b8fdd7e08bc3); -} +::windows_core::imp::com_interface!(ISmsVoicemailMessage, ISmsVoicemailMessage_Vtbl, 0x271aa0a6_95b1_44ff_bcb8_b8fdd7e08bc3); #[repr(C)] #[doc(hidden)] pub struct ISmsVoicemailMessage_Vtbl { @@ -1137,16 +926,7 @@ pub struct ISmsVoicemailMessage_Vtbl { pub Body: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub MessageCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmsWapMessage(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISmsWapMessage { - type Vtable = ISmsWapMessage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmsWapMessage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcd937743_7a55_4d3b_9021_f22e022d09c5); -} +::windows_core::imp::com_interface!(ISmsWapMessage, ISmsWapMessage_Vtbl, 0xcd937743_7a55_4d3b_9021_f22e022d09c5); #[repr(C)] #[doc(hidden)] pub struct ISmsWapMessage_Vtbl { @@ -1171,6 +951,10 @@ pub struct ISmsWapMessage_Vtbl { #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DeleteSmsMessageOperation(::windows_core::IUnknown); #[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(DeleteSmsMessageOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "deprecated")] +::windows_core::imp::required_hierarchy!(DeleteSmsMessageOperation, super::super::Foundation::IAsyncAction, super::super::Foundation::IAsyncInfo); +#[cfg(feature = "deprecated")] impl DeleteSmsMessageOperation { pub fn SetCompleted(&self, handler: P0) -> ::windows_core::Result<()> where @@ -1191,32 +975,32 @@ impl DeleteSmsMessageOperation { unsafe { (::windows_core::Interface::vtable(this).GetResults)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Id(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Id)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Status(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Status)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ErrorCode(&self) -> ::windows_core::Result<::windows_core::HRESULT> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ErrorCode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Cancel(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Cancel)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } } @@ -1227,10 +1011,7 @@ impl ::windows_core::RuntimeType for DeleteSmsMessageOperation { #[cfg(feature = "deprecated")] unsafe impl ::windows_core::Interface for DeleteSmsMessageOperation { type Vtable = super::super::Foundation::IAsyncAction_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for DeleteSmsMessageOperation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "deprecated")] impl ::windows_core::RuntimeName for DeleteSmsMessageOperation { @@ -1267,18 +1048,16 @@ impl ::std::future::Future for DeleteSmsMessageOperation { } } } -#[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(DeleteSmsMessageOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] -impl ::windows_core::CanTryInto for DeleteSmsMessageOperation {} -#[cfg(feature = "deprecated")] -impl ::windows_core::CanTryInto for DeleteSmsMessageOperation {} #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DeleteSmsMessagesOperation(::windows_core::IUnknown); #[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(DeleteSmsMessagesOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "deprecated")] +::windows_core::imp::required_hierarchy!(DeleteSmsMessagesOperation, super::super::Foundation::IAsyncAction, super::super::Foundation::IAsyncInfo); +#[cfg(feature = "deprecated")] impl DeleteSmsMessagesOperation { pub fn SetCompleted(&self, handler: P0) -> ::windows_core::Result<()> where @@ -1299,32 +1078,32 @@ impl DeleteSmsMessagesOperation { unsafe { (::windows_core::Interface::vtable(this).GetResults)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Id(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Id)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Status(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Status)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ErrorCode(&self) -> ::windows_core::Result<::windows_core::HRESULT> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ErrorCode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Cancel(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Cancel)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } } @@ -1335,10 +1114,7 @@ impl ::windows_core::RuntimeType for DeleteSmsMessagesOperation { #[cfg(feature = "deprecated")] unsafe impl ::windows_core::Interface for DeleteSmsMessagesOperation { type Vtable = super::super::Foundation::IAsyncAction_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for DeleteSmsMessagesOperation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "deprecated")] impl ::windows_core::RuntimeName for DeleteSmsMessagesOperation { @@ -1375,46 +1151,44 @@ impl ::std::future::Future for DeleteSmsMessagesOperation { } } } -#[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(DeleteSmsMessagesOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] -impl ::windows_core::CanTryInto for DeleteSmsMessagesOperation {} -#[cfg(feature = "deprecated")] -impl ::windows_core::CanTryInto for DeleteSmsMessagesOperation {} #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GetSmsDeviceOperation(::windows_core::IUnknown); #[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(GetSmsDeviceOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "deprecated")] +::windows_core::imp::required_hierarchy!(GetSmsDeviceOperation, super::super::Foundation::IAsyncInfo, super::super::Foundation::IAsyncOperation::); +#[cfg(feature = "deprecated")] impl GetSmsDeviceOperation { pub fn Id(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Id)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Status(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Status)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ErrorCode(&self) -> ::windows_core::Result<::windows_core::HRESULT> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ErrorCode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Cancel(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Cancel)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn SetCompleted(&self, handler: P0) -> ::windows_core::Result<()> @@ -1446,10 +1220,7 @@ impl ::windows_core::RuntimeType for GetSmsDeviceOperation { #[cfg(feature = "deprecated")] unsafe impl ::windows_core::Interface for GetSmsDeviceOperation { type Vtable = super::super::Foundation::IAsyncOperation_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for GetSmsDeviceOperation { - const IID: ::windows_core::GUID = as ::windows_core::ComInterface>::IID; + const IID: ::windows_core::GUID = as ::windows_core::Interface>::IID; } #[cfg(feature = "deprecated")] impl ::windows_core::RuntimeName for GetSmsDeviceOperation { @@ -1486,46 +1257,44 @@ impl ::std::future::Future for GetSmsDeviceOperation { } } } -#[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(GetSmsDeviceOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] -impl ::windows_core::CanTryInto for GetSmsDeviceOperation {} -#[cfg(feature = "deprecated")] -impl ::windows_core::CanTryInto> for GetSmsDeviceOperation {} #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GetSmsMessageOperation(::windows_core::IUnknown); #[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(GetSmsMessageOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "deprecated")] +::windows_core::imp::required_hierarchy!(GetSmsMessageOperation, super::super::Foundation::IAsyncInfo, super::super::Foundation::IAsyncOperation::); +#[cfg(feature = "deprecated")] impl GetSmsMessageOperation { pub fn Id(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Id)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Status(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Status)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ErrorCode(&self) -> ::windows_core::Result<::windows_core::HRESULT> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ErrorCode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Cancel(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Cancel)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn SetCompleted(&self, handler: P0) -> ::windows_core::Result<()> @@ -1557,10 +1326,7 @@ impl ::windows_core::RuntimeType for GetSmsMessageOperation { #[cfg(feature = "deprecated")] unsafe impl ::windows_core::Interface for GetSmsMessageOperation { type Vtable = super::super::Foundation::IAsyncOperation_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for GetSmsMessageOperation { - const IID: ::windows_core::GUID = as ::windows_core::ComInterface>::IID; + const IID: ::windows_core::GUID = as ::windows_core::Interface>::IID; } #[cfg(feature = "deprecated")] impl ::windows_core::RuntimeName for GetSmsMessageOperation { @@ -1597,46 +1363,44 @@ impl ::std::future::Future for GetSmsMessageOperation { } } } -#[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(GetSmsMessageOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] -impl ::windows_core::CanTryInto for GetSmsMessageOperation {} -#[cfg(feature = "deprecated")] -impl ::windows_core::CanTryInto> for GetSmsMessageOperation {} #[doc = "Required features: `\"Foundation_Collections\"`, `\"deprecated\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GetSmsMessagesOperation(::windows_core::IUnknown); #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] +::windows_core::imp::interface_hierarchy!(GetSmsMessagesOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] +::windows_core::imp::required_hierarchy!(GetSmsMessagesOperation, super::super::Foundation::IAsyncInfo, super::super::Foundation::IAsyncOperationWithProgress::, i32>); +#[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] impl GetSmsMessagesOperation { pub fn Id(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Id)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Status(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Status)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ErrorCode(&self) -> ::windows_core::Result<::windows_core::HRESULT> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ErrorCode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Cancel(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Cancel)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -1692,10 +1456,7 @@ impl ::windows_core::RuntimeType for GetSmsMessagesOperation { #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] unsafe impl ::windows_core::Interface for GetSmsMessagesOperation { type Vtable = super::super::Foundation::IAsyncOperationWithProgress_Vtbl, i32>; -} -#[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] -unsafe impl ::windows_core::ComInterface for GetSmsMessagesOperation { - const IID: ::windows_core::GUID = , i32> as ::windows_core::ComInterface>::IID; + const IID: ::windows_core::GUID = , i32> as ::windows_core::Interface>::IID; } #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] impl ::windows_core::RuntimeName for GetSmsMessagesOperation { @@ -1732,18 +1493,16 @@ impl ::std::future::Future for GetSmsMessagesOperation { } } } -#[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] -::windows_core::imp::interface_hierarchy!(GetSmsMessagesOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] -impl ::windows_core::CanTryInto for GetSmsMessagesOperation {} -#[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] -impl ::windows_core::CanTryInto, i32>> for GetSmsMessagesOperation {} #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SendSmsMessageOperation(::windows_core::IUnknown); #[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(SendSmsMessageOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "deprecated")] +::windows_core::imp::required_hierarchy!(SendSmsMessageOperation, super::super::Foundation::IAsyncAction, super::super::Foundation::IAsyncInfo); +#[cfg(feature = "deprecated")] impl SendSmsMessageOperation { pub fn SetCompleted(&self, handler: P0) -> ::windows_core::Result<()> where @@ -1764,32 +1523,32 @@ impl SendSmsMessageOperation { unsafe { (::windows_core::Interface::vtable(this).GetResults)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Id(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Id)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Status(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Status)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ErrorCode(&self) -> ::windows_core::Result<::windows_core::HRESULT> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ErrorCode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Cancel(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Cancel)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } } @@ -1800,10 +1559,7 @@ impl ::windows_core::RuntimeType for SendSmsMessageOperation { #[cfg(feature = "deprecated")] unsafe impl ::windows_core::Interface for SendSmsMessageOperation { type Vtable = super::super::Foundation::IAsyncAction_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for SendSmsMessageOperation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "deprecated")] impl ::windows_core::RuntimeName for SendSmsMessageOperation { @@ -1840,15 +1596,11 @@ impl ::std::future::Future for SendSmsMessageOperation { } } } -#[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(SendSmsMessageOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] -impl ::windows_core::CanTryInto for SendSmsMessageOperation {} -#[cfg(feature = "deprecated")] -impl ::windows_core::CanTryInto for SendSmsMessageOperation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SmsAppMessage(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SmsAppMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(SmsAppMessage, ISmsMessageBase); impl SmsAppMessage { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1983,41 +1735,41 @@ impl SmsAppMessage { #[cfg(feature = "Storage_Streams")] pub fn SetBinaryBody(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetBinaryBody)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetBinaryBody)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn MessageType(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MessageType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn DeviceId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DeviceId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CellularClass(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CellularClass)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn MessageClass(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MessageClass)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SimIccId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SimIccId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2029,15 +1781,11 @@ impl ::windows_core::RuntimeType for SmsAppMessage { } unsafe impl ::windows_core::Interface for SmsAppMessage { type Vtable = ISmsAppMessage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SmsAppMessage { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SmsAppMessage { const NAME: &'static str = "Windows.Devices.Sms.SmsAppMessage"; } -::windows_core::imp::interface_hierarchy!(SmsAppMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for SmsAppMessage {} unsafe impl ::core::marker::Send for SmsAppMessage {} unsafe impl ::core::marker::Sync for SmsAppMessage {} #[doc = "Required features: `\"deprecated\"`"] @@ -2046,6 +1794,10 @@ unsafe impl ::core::marker::Sync for SmsAppMessage {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SmsBinaryMessage(::windows_core::IUnknown); #[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(SmsBinaryMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "deprecated")] +::windows_core::imp::required_hierarchy!(SmsBinaryMessage, ISmsBinaryMessage, ISmsMessage); +#[cfg(feature = "deprecated")] impl SmsBinaryMessage { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2085,14 +1837,14 @@ impl SmsBinaryMessage { unsafe { (::windows_core::Interface::vtable(this).SetData)(::windows_core::Interface::as_raw(this), value.len().try_into().unwrap(), value.as_ptr()).ok() } } pub fn Id(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Id)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn MessageClass(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MessageClass)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2106,28 +1858,21 @@ impl ::windows_core::RuntimeType for SmsBinaryMessage { #[cfg(feature = "deprecated")] unsafe impl ::windows_core::Interface for SmsBinaryMessage { type Vtable = ISmsBinaryMessage_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for SmsBinaryMessage { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "deprecated")] impl ::windows_core::RuntimeName for SmsBinaryMessage { const NAME: &'static str = "Windows.Devices.Sms.SmsBinaryMessage"; } #[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(SmsBinaryMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] -impl ::windows_core::CanTryInto for SmsBinaryMessage {} -#[cfg(feature = "deprecated")] -impl ::windows_core::CanTryInto for SmsBinaryMessage {} -#[cfg(feature = "deprecated")] unsafe impl ::core::marker::Send for SmsBinaryMessage {} #[cfg(feature = "deprecated")] unsafe impl ::core::marker::Sync for SmsBinaryMessage {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SmsBroadcastMessage(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SmsBroadcastMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(SmsBroadcastMessage, ISmsMessageBase); impl SmsBroadcastMessage { pub fn Timestamp(&self) -> ::windows_core::Result { let this = self; @@ -2200,35 +1945,35 @@ impl SmsBroadcastMessage { } } pub fn MessageType(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MessageType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn DeviceId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DeviceId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CellularClass(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CellularClass)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn MessageClass(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MessageClass)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SimIccId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SimIccId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2240,15 +1985,11 @@ impl ::windows_core::RuntimeType for SmsBroadcastMessage { } unsafe impl ::windows_core::Interface for SmsBroadcastMessage { type Vtable = ISmsBroadcastMessage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SmsBroadcastMessage { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SmsBroadcastMessage { const NAME: &'static str = "Windows.Devices.Sms.SmsBroadcastMessage"; } -::windows_core::imp::interface_hierarchy!(SmsBroadcastMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for SmsBroadcastMessage {} unsafe impl ::core::marker::Send for SmsBroadcastMessage {} unsafe impl ::core::marker::Sync for SmsBroadcastMessage {} #[doc = "Required features: `\"deprecated\"`"] @@ -2257,17 +1998,21 @@ unsafe impl ::core::marker::Sync for SmsBroadcastMessage {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SmsDevice(::windows_core::IUnknown); #[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(SmsDevice, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "deprecated")] +::windows_core::imp::required_hierarchy!(SmsDevice, ISmsDevice); +#[cfg(feature = "deprecated")] impl SmsDevice { #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] pub fn SendMessageAsync(&self, message: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).SendMessageAsync)(::windows_core::Interface::as_raw(this), message.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SendMessageAsync)(::windows_core::Interface::as_raw(this), message.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"deprecated\"`"] @@ -2406,22 +2151,16 @@ impl ::windows_core::RuntimeType for SmsDevice { #[cfg(feature = "deprecated")] unsafe impl ::windows_core::Interface for SmsDevice { type Vtable = ISmsDevice_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for SmsDevice { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "deprecated")] impl ::windows_core::RuntimeName for SmsDevice { const NAME: &'static str = "Windows.Devices.Sms.SmsDevice"; } -#[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(SmsDevice, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] -impl ::windows_core::CanTryInto for SmsDevice {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SmsDevice2(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SmsDevice2, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SmsDevice2 { pub fn SmscAddress(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -2471,22 +2210,22 @@ impl SmsDevice2 { } pub fn CalculateLength(&self, message: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CalculateLength)(::windows_core::Interface::as_raw(this), message.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CalculateLength)(::windows_core::Interface::as_raw(this), message.into_param().abi(), &mut result__).from_abi(result__) } } pub fn SendMessageAndGetResultAsync(&self, message: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).SendMessageAndGetResultAsync)(::windows_core::Interface::as_raw(this), message.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SendMessageAndGetResultAsync)(::windows_core::Interface::as_raw(this), message.into_param().abi(), &mut result__).from_abi(result__) } } pub fn DeviceStatusChanged(&self, eventhandler: P0) -> ::windows_core::Result @@ -2538,20 +2277,19 @@ impl ::windows_core::RuntimeType for SmsDevice2 { } unsafe impl ::windows_core::Interface for SmsDevice2 { type Vtable = ISmsDevice2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SmsDevice2 { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SmsDevice2 { const NAME: &'static str = "Windows.Devices.Sms.SmsDevice2"; } -::windows_core::imp::interface_hierarchy!(SmsDevice2, ::windows_core::IUnknown, ::windows_core::IInspectable); #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SmsDeviceMessageStore(::windows_core::IUnknown); #[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(SmsDeviceMessageStore, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "deprecated")] impl SmsDeviceMessageStore { #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] @@ -2606,20 +2344,16 @@ impl ::windows_core::RuntimeType for SmsDeviceMessageStore { #[cfg(feature = "deprecated")] unsafe impl ::windows_core::Interface for SmsDeviceMessageStore { type Vtable = ISmsDeviceMessageStore_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for SmsDeviceMessageStore { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "deprecated")] impl ::windows_core::RuntimeName for SmsDeviceMessageStore { const NAME: &'static str = "Windows.Devices.Sms.SmsDeviceMessageStore"; } -#[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(SmsDeviceMessageStore, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SmsFilterRule(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SmsFilterRule, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SmsFilterRule { pub fn MessageType(&self) -> ::windows_core::Result { let this = self; @@ -2755,19 +2489,17 @@ impl ::windows_core::RuntimeType for SmsFilterRule { } unsafe impl ::windows_core::Interface for SmsFilterRule { type Vtable = ISmsFilterRule_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SmsFilterRule { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SmsFilterRule { const NAME: &'static str = "Windows.Devices.Sms.SmsFilterRule"; } -::windows_core::imp::interface_hierarchy!(SmsFilterRule, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SmsFilterRule {} unsafe impl ::core::marker::Sync for SmsFilterRule {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SmsFilterRules(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SmsFilterRules, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SmsFilterRules { pub fn ActionType(&self) -> ::windows_core::Result { let this = self; @@ -2802,14 +2534,11 @@ impl ::windows_core::RuntimeType for SmsFilterRules { } unsafe impl ::windows_core::Interface for SmsFilterRules { type Vtable = ISmsFilterRules_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SmsFilterRules { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SmsFilterRules { const NAME: &'static str = "Windows.Devices.Sms.SmsFilterRules"; } -::windows_core::imp::interface_hierarchy!(SmsFilterRules, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SmsFilterRules {} unsafe impl ::core::marker::Sync for SmsFilterRules {} #[doc = "Required features: `\"deprecated\"`"] @@ -2818,6 +2547,8 @@ unsafe impl ::core::marker::Sync for SmsFilterRules {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SmsMessageReceivedEventArgs(::windows_core::IUnknown); #[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(SmsMessageReceivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "deprecated")] impl SmsMessageReceivedEventArgs { #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] @@ -2845,20 +2576,16 @@ impl ::windows_core::RuntimeType for SmsMessageReceivedEventArgs { #[cfg(feature = "deprecated")] unsafe impl ::windows_core::Interface for SmsMessageReceivedEventArgs { type Vtable = ISmsMessageReceivedEventArgs_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for SmsMessageReceivedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "deprecated")] impl ::windows_core::RuntimeName for SmsMessageReceivedEventArgs { const NAME: &'static str = "Windows.Devices.Sms.SmsMessageReceivedEventArgs"; } -#[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(SmsMessageReceivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SmsMessageReceivedTriggerDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SmsMessageReceivedTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SmsMessageReceivedTriggerDetails { pub fn MessageType(&self) -> ::windows_core::Result { let this = self; @@ -2923,19 +2650,17 @@ impl ::windows_core::RuntimeType for SmsMessageReceivedTriggerDetails { } unsafe impl ::windows_core::Interface for SmsMessageReceivedTriggerDetails { type Vtable = ISmsMessageReceivedTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SmsMessageReceivedTriggerDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SmsMessageReceivedTriggerDetails { const NAME: &'static str = "Windows.Devices.Sms.SmsMessageReceivedTriggerDetails"; } -::windows_core::imp::interface_hierarchy!(SmsMessageReceivedTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SmsMessageReceivedTriggerDetails {} unsafe impl ::core::marker::Sync for SmsMessageReceivedTriggerDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SmsMessageRegistration(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SmsMessageRegistration, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SmsMessageRegistration { pub fn Id(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -2990,20 +2715,19 @@ impl ::windows_core::RuntimeType for SmsMessageRegistration { } unsafe impl ::windows_core::Interface for SmsMessageRegistration { type Vtable = ISmsMessageRegistration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SmsMessageRegistration { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SmsMessageRegistration { const NAME: &'static str = "Windows.Devices.Sms.SmsMessageRegistration"; } -::windows_core::imp::interface_hierarchy!(SmsMessageRegistration, ::windows_core::IUnknown, ::windows_core::IInspectable); #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SmsReceivedEventDetails(::windows_core::IUnknown); #[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(SmsReceivedEventDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "deprecated")] impl SmsReceivedEventDetails { #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] @@ -3026,7 +2750,7 @@ impl SmsReceivedEventDetails { #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] pub fn MessageClass(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MessageClass)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3035,7 +2759,7 @@ impl SmsReceivedEventDetails { #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] pub fn BinaryMessage(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).BinaryMessage)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3049,24 +2773,20 @@ impl ::windows_core::RuntimeType for SmsReceivedEventDetails { #[cfg(feature = "deprecated")] unsafe impl ::windows_core::Interface for SmsReceivedEventDetails { type Vtable = ISmsReceivedEventDetails_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for SmsReceivedEventDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "deprecated")] impl ::windows_core::RuntimeName for SmsReceivedEventDetails { const NAME: &'static str = "Windows.Devices.Sms.SmsReceivedEventDetails"; } #[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(SmsReceivedEventDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] unsafe impl ::core::marker::Send for SmsReceivedEventDetails {} #[cfg(feature = "deprecated")] unsafe impl ::core::marker::Sync for SmsReceivedEventDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SmsSendMessageResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SmsSendMessageResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SmsSendMessageResult { pub fn IsSuccessful(&self) -> ::windows_core::Result { let this = self; @@ -3125,50 +2845,49 @@ impl ::windows_core::RuntimeType for SmsSendMessageResult { } unsafe impl ::windows_core::Interface for SmsSendMessageResult { type Vtable = ISmsSendMessageResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SmsSendMessageResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SmsSendMessageResult { const NAME: &'static str = "Windows.Devices.Sms.SmsSendMessageResult"; } -::windows_core::imp::interface_hierarchy!(SmsSendMessageResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SmsSendMessageResult {} unsafe impl ::core::marker::Sync for SmsSendMessageResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SmsStatusMessage(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SmsStatusMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(SmsStatusMessage, ISmsMessageBase); impl SmsStatusMessage { pub fn MessageType(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MessageType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn DeviceId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DeviceId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CellularClass(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CellularClass)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn MessageClass(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MessageClass)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SimIccId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SimIccId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3229,15 +2948,11 @@ impl ::windows_core::RuntimeType for SmsStatusMessage { } unsafe impl ::windows_core::Interface for SmsStatusMessage { type Vtable = ISmsStatusMessage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SmsStatusMessage { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SmsStatusMessage { const NAME: &'static str = "Windows.Devices.Sms.SmsStatusMessage"; } -::windows_core::imp::interface_hierarchy!(SmsStatusMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for SmsStatusMessage {} unsafe impl ::core::marker::Send for SmsStatusMessage {} unsafe impl ::core::marker::Sync for SmsStatusMessage {} #[doc = "Required features: `\"deprecated\"`"] @@ -3246,6 +2961,10 @@ unsafe impl ::core::marker::Sync for SmsStatusMessage {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SmsTextMessage(::windows_core::IUnknown); #[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(SmsTextMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "deprecated")] +::windows_core::imp::required_hierarchy!(SmsTextMessage, ISmsMessage, ISmsTextMessage); +#[cfg(feature = "deprecated")] impl SmsTextMessage { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -3255,14 +2974,14 @@ impl SmsTextMessage { SHARED.call(callback) } pub fn Id(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Id)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn MessageClass(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MessageClass)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3406,28 +3125,21 @@ impl ::windows_core::RuntimeType for SmsTextMessage { #[cfg(feature = "deprecated")] unsafe impl ::windows_core::Interface for SmsTextMessage { type Vtable = ISmsTextMessage_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for SmsTextMessage { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "deprecated")] impl ::windows_core::RuntimeName for SmsTextMessage { const NAME: &'static str = "Windows.Devices.Sms.SmsTextMessage"; } #[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(SmsTextMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] -impl ::windows_core::CanTryInto for SmsTextMessage {} -#[cfg(feature = "deprecated")] -impl ::windows_core::CanTryInto for SmsTextMessage {} -#[cfg(feature = "deprecated")] unsafe impl ::core::marker::Send for SmsTextMessage {} #[cfg(feature = "deprecated")] unsafe impl ::core::marker::Sync for SmsTextMessage {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SmsTextMessage2(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SmsTextMessage2, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(SmsTextMessage2, ISmsMessageBase); impl SmsTextMessage2 { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -3437,35 +3149,35 @@ impl SmsTextMessage2 { SHARED.call(callback) } pub fn MessageType(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MessageType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn DeviceId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DeviceId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CellularClass(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CellularClass)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn MessageClass(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MessageClass)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SimIccId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SimIccId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3571,51 +3283,49 @@ impl ::windows_core::RuntimeType for SmsTextMessage2 { } unsafe impl ::windows_core::Interface for SmsTextMessage2 { type Vtable = ISmsTextMessage2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SmsTextMessage2 { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SmsTextMessage2 { const NAME: &'static str = "Windows.Devices.Sms.SmsTextMessage2"; } -::windows_core::imp::interface_hierarchy!(SmsTextMessage2, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for SmsTextMessage2 {} unsafe impl ::core::marker::Send for SmsTextMessage2 {} unsafe impl ::core::marker::Sync for SmsTextMessage2 {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SmsVoicemailMessage(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SmsVoicemailMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(SmsVoicemailMessage, ISmsMessageBase); impl SmsVoicemailMessage { pub fn MessageType(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MessageType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn DeviceId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DeviceId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CellularClass(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CellularClass)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn MessageClass(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MessageClass)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SimIccId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SimIccId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3655,51 +3365,49 @@ impl ::windows_core::RuntimeType for SmsVoicemailMessage { } unsafe impl ::windows_core::Interface for SmsVoicemailMessage { type Vtable = ISmsVoicemailMessage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SmsVoicemailMessage { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SmsVoicemailMessage { const NAME: &'static str = "Windows.Devices.Sms.SmsVoicemailMessage"; } -::windows_core::imp::interface_hierarchy!(SmsVoicemailMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for SmsVoicemailMessage {} unsafe impl ::core::marker::Send for SmsVoicemailMessage {} unsafe impl ::core::marker::Sync for SmsVoicemailMessage {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SmsWapMessage(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SmsWapMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(SmsWapMessage, ISmsMessageBase); impl SmsWapMessage { pub fn MessageType(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MessageType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn DeviceId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DeviceId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CellularClass(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CellularClass)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn MessageClass(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MessageClass)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SimIccId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SimIccId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3764,15 +3472,11 @@ impl ::windows_core::RuntimeType for SmsWapMessage { } unsafe impl ::windows_core::Interface for SmsWapMessage { type Vtable = ISmsWapMessage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SmsWapMessage { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SmsWapMessage { const NAME: &'static str = "Windows.Devices.Sms.SmsWapMessage"; } -::windows_core::imp::interface_hierarchy!(SmsWapMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for SmsWapMessage {} unsafe impl ::core::marker::Send for SmsWapMessage {} unsafe impl ::core::marker::Sync for SmsWapMessage {} #[repr(transparent)] @@ -4073,11 +3777,8 @@ impl ::core::default::Default for SmsEncodedLength { unsafe { ::core::mem::zeroed() } } } -#[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct SmsDeviceStatusChangedEventHandler(pub ::windows_core::IUnknown); +::windows_core::imp::com_interface!(SmsDeviceStatusChangedEventHandler, SmsDeviceStatusChangedEventHandler_Vtbl, 0x982b1162_3dd7_4618_af89_0c272d5d06d8); #[cfg(feature = "deprecated")] impl SmsDeviceStatusChangedEventHandler { pub fn new) -> ::windows_core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { @@ -4112,7 +3813,7 @@ impl) -> ::windows_core::Result<()> if iid.is_null() || interface.is_null() { return ::windows_core::HRESULT(-2147467261); } - *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; + *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::Interface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::Interface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; if (*interface).is_null() { ::windows_core::HRESULT(-2147467262) } else { @@ -4138,14 +3839,6 @@ impl) -> ::windows_core::Result<()> } } #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for SmsDeviceStatusChangedEventHandler { - type Vtable = SmsDeviceStatusChangedEventHandler_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for SmsDeviceStatusChangedEventHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x982b1162_3dd7_4618_af89_0c272d5d06d8); -} -#[cfg(feature = "deprecated")] impl ::windows_core::RuntimeType for SmsDeviceStatusChangedEventHandler { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } @@ -4159,11 +3852,8 @@ pub struct SmsDeviceStatusChangedEventHandler_Vtbl { #[cfg(not(feature = "deprecated"))] Invoke: usize, } -#[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct SmsMessageReceivedEventHandler(pub ::windows_core::IUnknown); +::windows_core::imp::com_interface!(SmsMessageReceivedEventHandler, SmsMessageReceivedEventHandler_Vtbl, 0x0b7ad409_ec2d_47ce_a253_732beeebcacd); #[cfg(feature = "deprecated")] impl SmsMessageReceivedEventHandler { pub fn new, ::core::option::Option<&SmsMessageReceivedEventArgs>) -> ::windows_core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { @@ -4199,7 +3889,7 @@ impl, ::core::option::Option<&SmsMes if iid.is_null() || interface.is_null() { return ::windows_core::HRESULT(-2147467261); } - *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; + *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::Interface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::Interface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; if (*interface).is_null() { ::windows_core::HRESULT(-2147467262) } else { @@ -4225,14 +3915,6 @@ impl, ::core::option::Option<&SmsMes } } #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for SmsMessageReceivedEventHandler { - type Vtable = SmsMessageReceivedEventHandler_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for SmsMessageReceivedEventHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0b7ad409_ec2d_47ce_a253_732beeebcacd); -} -#[cfg(feature = "deprecated")] impl ::windows_core::RuntimeType for SmsMessageReceivedEventHandler { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } diff --git a/crates/libs/windows/src/Windows/Devices/Spi/Provider/impl.rs b/crates/libs/windows/src/Windows/Devices/Spi/Provider/impl.rs index ee4efce5a9..ed9206f295 100644 --- a/crates/libs/windows/src/Windows/Devices/Spi/Provider/impl.rs +++ b/crates/libs/windows/src/Windows/Devices/Spi/Provider/impl.rs @@ -24,7 +24,7 @@ impl ISpiControllerProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISpiDeviceProvider_Impl: Sized + super::super::super::Foundation::IClosable_Impl { @@ -95,7 +95,7 @@ impl ISpiDeviceProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -128,6 +128,6 @@ impl ISpiProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 573b1557aa..bb26cdf15d 100644 --- a/crates/libs/windows/src/Windows/Devices/Spi/Provider/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Spi/Provider/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProviderSpiConnectionSettings(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProviderSpiConnectionSettings { - type Vtable = IProviderSpiConnectionSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProviderSpiConnectionSettings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf6034550_a542_4ec0_9601_a4dd68f8697b); -} +::windows_core::imp::com_interface!(IProviderSpiConnectionSettings, IProviderSpiConnectionSettings_Vtbl, 0xf6034550_a542_4ec0_9601_a4dd68f8697b); #[repr(C)] #[doc(hidden)] pub struct IProviderSpiConnectionSettings_Vtbl { @@ -23,25 +14,15 @@ pub struct IProviderSpiConnectionSettings_Vtbl { pub SharingMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ProviderSpiSharingMode) -> ::windows_core::HRESULT, pub SetSharingMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ProviderSpiSharingMode) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProviderSpiConnectionSettingsFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProviderSpiConnectionSettingsFactory { - type Vtable = IProviderSpiConnectionSettingsFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProviderSpiConnectionSettingsFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x66456b5a_0c79_43e3_9f3c_e59780ac18fa); -} +::windows_core::imp::com_interface!(IProviderSpiConnectionSettingsFactory, IProviderSpiConnectionSettingsFactory_Vtbl, 0x66456b5a_0c79_43e3_9f3c_e59780ac18fa); #[repr(C)] #[doc(hidden)] pub struct IProviderSpiConnectionSettingsFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, chipselectline: i32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpiControllerProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpiControllerProvider, ISpiControllerProvider_Vtbl, 0xc1686504_02ce_4226_a385_4f11fb04b41b); +::windows_core::imp::interface_hierarchy!(ISpiControllerProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ISpiControllerProvider { pub fn GetDeviceProvider(&self, settings: P0) -> ::windows_core::Result where @@ -54,25 +35,18 @@ impl ISpiControllerProvider { } } } -::windows_core::imp::interface_hierarchy!(ISpiControllerProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for ISpiControllerProvider { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for ISpiControllerProvider { - type Vtable = ISpiControllerProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpiControllerProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc1686504_02ce_4226_a385_4f11fb04b41b); -} #[repr(C)] #[doc(hidden)] pub struct ISpiControllerProvider_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetDeviceProvider: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, settings: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpiDeviceProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpiDeviceProvider, ISpiDeviceProvider_Vtbl, 0x0d1c3443_304b_405c_b4f7_f5ab1074461e); +::windows_core::imp::interface_hierarchy!(ISpiDeviceProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ISpiDeviceProvider, super::super::super::Foundation::IClosable); impl ISpiDeviceProvider { pub fn DeviceId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -105,21 +79,13 @@ impl ISpiDeviceProvider { unsafe { (::windows_core::Interface::vtable(this).TransferFullDuplex)(::windows_core::Interface::as_raw(this), writebuffer.len().try_into().unwrap(), writebuffer.as_ptr(), readbuffer.len().try_into().unwrap(), readbuffer.as_mut_ptr()).ok() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } } -::windows_core::imp::interface_hierarchy!(ISpiDeviceProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ISpiDeviceProvider {} impl ::windows_core::RuntimeType for ISpiDeviceProvider { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for ISpiDeviceProvider { - type Vtable = ISpiDeviceProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpiDeviceProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0d1c3443_304b_405c_b4f7_f5ab1074461e); -} #[repr(C)] #[doc(hidden)] pub struct ISpiDeviceProvider_Vtbl { @@ -131,9 +97,8 @@ pub struct ISpiDeviceProvider_Vtbl { pub TransferSequential: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, writeBuffer_array_size: u32, writebuffer: *const u8, readBuffer_array_size: u32, readbuffer: *mut u8) -> ::windows_core::HRESULT, pub TransferFullDuplex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, writeBuffer_array_size: u32, writebuffer: *const u8, readBuffer_array_size: u32, readbuffer: *mut u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpiProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpiProvider, ISpiProvider_Vtbl, 0x96b461e2_77d4_48ce_aaa0_75715a8362cf); +::windows_core::imp::interface_hierarchy!(ISpiProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ISpiProvider { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -145,16 +110,9 @@ impl ISpiProvider { } } } -::windows_core::imp::interface_hierarchy!(ISpiProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for ISpiProvider { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for ISpiProvider { - type Vtable = ISpiProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpiProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x96b461e2_77d4_48ce_aaa0_75715a8362cf); -} #[repr(C)] #[doc(hidden)] pub struct ISpiProvider_Vtbl { @@ -167,6 +125,7 @@ pub struct ISpiProvider_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ProviderSpiConnectionSettings(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ProviderSpiConnectionSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ProviderSpiConnectionSettings { pub fn ChipSelectLine(&self) -> ::windows_core::Result { let this = self; @@ -240,14 +199,11 @@ impl ::windows_core::RuntimeType for ProviderSpiConnectionSettings { } unsafe impl ::windows_core::Interface for ProviderSpiConnectionSettings { type Vtable = IProviderSpiConnectionSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ProviderSpiConnectionSettings { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ProviderSpiConnectionSettings { const NAME: &'static str = "Windows.Devices.Spi.Provider.ProviderSpiConnectionSettings"; } -::windows_core::imp::interface_hierarchy!(ProviderSpiConnectionSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ProviderSpiConnectionSettings {} unsafe impl ::core::marker::Sync for ProviderSpiConnectionSettings {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Devices/Spi/impl.rs b/crates/libs/windows/src/Windows/Devices/Spi/impl.rs index 77de63f631..20a4dde74f 100644 --- a/crates/libs/windows/src/Windows/Devices/Spi/impl.rs +++ b/crates/libs/windows/src/Windows/Devices/Spi/impl.rs @@ -66,6 +66,6 @@ impl ISpiDeviceStatics_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/Devices/Spi/mod.rs b/crates/libs/windows/src/Windows/Devices/Spi/mod.rs index 33d0f29fc8..18556be3ef 100644 --- a/crates/libs/windows/src/Windows/Devices/Spi/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Spi/mod.rs @@ -1,16 +1,7 @@ #[cfg(feature = "Devices_Spi_Provider")] #[doc = "Required features: `\"Devices_Spi_Provider\"`"] pub mod Provider; -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpiBusInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpiBusInfo { - type Vtable = ISpiBusInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpiBusInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9929444a_54f2_48c6_b952_9c32fc02c669); -} +::windows_core::imp::com_interface!(ISpiBusInfo, ISpiBusInfo_Vtbl, 0x9929444a_54f2_48c6_b952_9c32fc02c669); #[repr(C)] #[doc(hidden)] pub struct ISpiBusInfo_Vtbl { @@ -23,16 +14,7 @@ pub struct ISpiBusInfo_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] SupportedDataBitLengths: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpiConnectionSettings(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpiConnectionSettings { - type Vtable = ISpiConnectionSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpiConnectionSettings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5283a37f_f935_4b9f_a7a7_3a7890afa5ce); -} +::windows_core::imp::com_interface!(ISpiConnectionSettings, ISpiConnectionSettings_Vtbl, 0x5283a37f_f935_4b9f_a7a7_3a7890afa5ce); #[repr(C)] #[doc(hidden)] pub struct ISpiConnectionSettings_Vtbl { @@ -48,48 +30,21 @@ pub struct ISpiConnectionSettings_Vtbl { pub SharingMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut SpiSharingMode) -> ::windows_core::HRESULT, pub SetSharingMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: SpiSharingMode) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpiConnectionSettingsFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpiConnectionSettingsFactory { - type Vtable = ISpiConnectionSettingsFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpiConnectionSettingsFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xff99081e_10c4_44b7_9fea_a748b5a46f31); -} +::windows_core::imp::com_interface!(ISpiConnectionSettingsFactory, ISpiConnectionSettingsFactory_Vtbl, 0xff99081e_10c4_44b7_9fea_a748b5a46f31); #[repr(C)] #[doc(hidden)] pub struct ISpiConnectionSettingsFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, chipselectline: i32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpiController(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpiController { - type Vtable = ISpiController_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpiController { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa8d3c829_9895_4159_a934_8741f1ee6d27); -} +::windows_core::imp::com_interface!(ISpiController, ISpiController_Vtbl, 0xa8d3c829_9895_4159_a934_8741f1ee6d27); #[repr(C)] #[doc(hidden)] pub struct ISpiController_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, settings: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpiControllerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpiControllerStatics { - type Vtable = ISpiControllerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpiControllerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0d5229e2_138b_4e48_b964_4f2f79b9c5a2); -} +::windows_core::imp::com_interface!(ISpiControllerStatics, ISpiControllerStatics_Vtbl, 0x0d5229e2_138b_4e48_b964_4f2f79b9c5a2); #[repr(C)] #[doc(hidden)] pub struct ISpiControllerStatics_Vtbl { @@ -100,16 +55,7 @@ pub struct ISpiControllerStatics_Vtbl { #[cfg(not(all(feature = "Devices_Spi_Provider", feature = "Foundation_Collections")))] GetControllersAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpiDevice(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpiDevice { - type Vtable = ISpiDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpiDevice { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x05d5356d_11b6_4d39_84d5_95dfb4c9f2ce); -} +::windows_core::imp::com_interface!(ISpiDevice, ISpiDevice_Vtbl, 0x05d5356d_11b6_4d39_84d5_95dfb4c9f2ce); #[repr(C)] #[doc(hidden)] pub struct ISpiDevice_Vtbl { @@ -121,9 +67,8 @@ pub struct ISpiDevice_Vtbl { pub TransferSequential: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, writeBuffer_array_size: u32, writebuffer: *const u8, readBuffer_array_size: u32, readbuffer: *mut u8) -> ::windows_core::HRESULT, pub TransferFullDuplex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, writeBuffer_array_size: u32, writebuffer: *const u8, readBuffer_array_size: u32, readbuffer: *mut u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpiDeviceStatics(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpiDeviceStatics, ISpiDeviceStatics_Vtbl, 0xa278e559_5720_4d3f_bd93_56f5ff5a5879); +::windows_core::imp::interface_hierarchy!(ISpiDeviceStatics, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ISpiDeviceStatics { pub fn GetDeviceSelector(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -157,16 +102,9 @@ impl ISpiDeviceStatics { } } } -::windows_core::imp::interface_hierarchy!(ISpiDeviceStatics, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for ISpiDeviceStatics { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for ISpiDeviceStatics { - type Vtable = ISpiDeviceStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpiDeviceStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa278e559_5720_4d3f_bd93_56f5ff5a5879); -} #[repr(C)] #[doc(hidden)] pub struct ISpiDeviceStatics_Vtbl { @@ -179,6 +117,7 @@ pub struct ISpiDeviceStatics_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpiBusInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpiBusInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SpiBusInfo { pub fn ChipSelectLineCount(&self) -> ::windows_core::Result { let this = self; @@ -216,19 +155,17 @@ impl ::windows_core::RuntimeType for SpiBusInfo { } unsafe impl ::windows_core::Interface for SpiBusInfo { type Vtable = ISpiBusInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpiBusInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpiBusInfo { const NAME: &'static str = "Windows.Devices.Spi.SpiBusInfo"; } -::windows_core::imp::interface_hierarchy!(SpiBusInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SpiBusInfo {} unsafe impl ::core::marker::Sync for SpiBusInfo {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpiConnectionSettings(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpiConnectionSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SpiConnectionSettings { pub fn ChipSelectLine(&self) -> ::windows_core::Result { let this = self; @@ -302,19 +239,17 @@ impl ::windows_core::RuntimeType for SpiConnectionSettings { } unsafe impl ::windows_core::Interface for SpiConnectionSettings { type Vtable = ISpiConnectionSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpiConnectionSettings { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpiConnectionSettings { const NAME: &'static str = "Windows.Devices.Spi.SpiConnectionSettings"; } -::windows_core::imp::interface_hierarchy!(SpiConnectionSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SpiConnectionSettings {} unsafe impl ::core::marker::Sync for SpiConnectionSettings {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpiController(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpiController, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SpiController { pub fn GetDevice(&self, settings: P0) -> ::windows_core::Result where @@ -336,11 +271,11 @@ impl SpiController { #[cfg(all(feature = "Devices_Spi_Provider", feature = "Foundation_Collections"))] pub fn GetControllersAsync(provider: P0) -> ::windows_core::Result>> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::ISpiControllerStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).GetControllersAsync)(::windows_core::Interface::as_raw(this), provider.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).GetControllersAsync)(::windows_core::Interface::as_raw(this), provider.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -354,22 +289,21 @@ impl ::windows_core::RuntimeType for SpiController { } unsafe impl ::windows_core::Interface for SpiController { type Vtable = ISpiController_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpiController { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpiController { const NAME: &'static str = "Windows.Devices.Spi.SpiController"; } -::windows_core::imp::interface_hierarchy!(SpiController, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SpiController {} unsafe impl ::core::marker::Sync for SpiController {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpiDevice(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpiDevice, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(SpiDevice, super::super::Foundation::IClosable); impl SpiDevice { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn DeviceId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { @@ -440,15 +374,11 @@ impl ::windows_core::RuntimeType for SpiDevice { } unsafe impl ::windows_core::Interface for SpiDevice { type Vtable = ISpiDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpiDevice { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpiDevice { const NAME: &'static str = "Windows.Devices.Spi.SpiDevice"; } -::windows_core::imp::interface_hierarchy!(SpiDevice, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for SpiDevice {} unsafe impl ::core::marker::Send for SpiDevice {} unsafe impl ::core::marker::Sync for SpiDevice {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Devices/Usb/mod.rs b/crates/libs/windows/src/Windows/Devices/Usb/mod.rs index 303c76cbb3..0dd4ac73c9 100644 --- a/crates/libs/windows/src/Windows/Devices/Usb/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Usb/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUsbBulkInEndpointDescriptor(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUsbBulkInEndpointDescriptor { - type Vtable = IUsbBulkInEndpointDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUsbBulkInEndpointDescriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3c6e4846_06cf_42a9_9dc2_971c1b14b6e3); -} +::windows_core::imp::com_interface!(IUsbBulkInEndpointDescriptor, IUsbBulkInEndpointDescriptor_Vtbl, 0x3c6e4846_06cf_42a9_9dc2_971c1b14b6e3); #[repr(C)] #[doc(hidden)] pub struct IUsbBulkInEndpointDescriptor_Vtbl { @@ -16,16 +7,7 @@ pub struct IUsbBulkInEndpointDescriptor_Vtbl { pub EndpointNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u8) -> ::windows_core::HRESULT, pub Pipe: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUsbBulkInPipe(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUsbBulkInPipe { - type Vtable = IUsbBulkInPipe_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUsbBulkInPipe { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf01d2d3b_4548_4d50_b326_d82cdabe1220); -} +::windows_core::imp::com_interface!(IUsbBulkInPipe, IUsbBulkInPipe_Vtbl, 0xf01d2d3b_4548_4d50_b326_d82cdabe1220); #[repr(C)] #[doc(hidden)] pub struct IUsbBulkInPipe_Vtbl { @@ -41,16 +23,7 @@ pub struct IUsbBulkInPipe_Vtbl { #[cfg(not(feature = "Storage_Streams"))] InputStream: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUsbBulkOutEndpointDescriptor(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUsbBulkOutEndpointDescriptor { - type Vtable = IUsbBulkOutEndpointDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUsbBulkOutEndpointDescriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2820847a_ffee_4f60_9be1_956cac3ecb65); -} +::windows_core::imp::com_interface!(IUsbBulkOutEndpointDescriptor, IUsbBulkOutEndpointDescriptor_Vtbl, 0x2820847a_ffee_4f60_9be1_956cac3ecb65); #[repr(C)] #[doc(hidden)] pub struct IUsbBulkOutEndpointDescriptor_Vtbl { @@ -59,16 +32,7 @@ pub struct IUsbBulkOutEndpointDescriptor_Vtbl { pub EndpointNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u8) -> ::windows_core::HRESULT, pub Pipe: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUsbBulkOutPipe(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUsbBulkOutPipe { - type Vtable = IUsbBulkOutPipe_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUsbBulkOutPipe { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa8e9ee6e_0115_45aa_8b21_37b225bccee7); -} +::windows_core::imp::com_interface!(IUsbBulkOutPipe, IUsbBulkOutPipe_Vtbl, 0xa8e9ee6e_0115_45aa_8b21_37b225bccee7); #[repr(C)] #[doc(hidden)] pub struct IUsbBulkOutPipe_Vtbl { @@ -82,16 +46,7 @@ pub struct IUsbBulkOutPipe_Vtbl { #[cfg(not(feature = "Storage_Streams"))] OutputStream: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUsbConfiguration(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUsbConfiguration { - type Vtable = IUsbConfiguration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUsbConfiguration { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x68177429_36a9_46d7_b873_fc689251ec30); -} +::windows_core::imp::com_interface!(IUsbConfiguration, IUsbConfiguration_Vtbl, 0x68177429_36a9_46d7_b873_fc689251ec30); #[repr(C)] #[doc(hidden)] pub struct IUsbConfiguration_Vtbl { @@ -106,16 +61,7 @@ pub struct IUsbConfiguration_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Descriptors: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUsbConfigurationDescriptor(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUsbConfigurationDescriptor { - type Vtable = IUsbConfigurationDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUsbConfigurationDescriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf2176d92_b442_407a_8207_7d646c0385f3); -} +::windows_core::imp::com_interface!(IUsbConfigurationDescriptor, IUsbConfigurationDescriptor_Vtbl, 0xf2176d92_b442_407a_8207_7d646c0385f3); #[repr(C)] #[doc(hidden)] pub struct IUsbConfigurationDescriptor_Vtbl { @@ -125,16 +71,7 @@ pub struct IUsbConfigurationDescriptor_Vtbl { pub SelfPowered: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub RemoteWakeup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUsbConfigurationDescriptorStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUsbConfigurationDescriptorStatics { - type Vtable = IUsbConfigurationDescriptorStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUsbConfigurationDescriptorStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x424ced93_e740_40a1_92bd_da120ea04914); -} +::windows_core::imp::com_interface!(IUsbConfigurationDescriptorStatics, IUsbConfigurationDescriptorStatics_Vtbl, 0x424ced93_e740_40a1_92bd_da120ea04914); #[repr(C)] #[doc(hidden)] pub struct IUsbConfigurationDescriptorStatics_Vtbl { @@ -142,16 +79,7 @@ pub struct IUsbConfigurationDescriptorStatics_Vtbl { pub TryParse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, descriptor: *mut ::core::ffi::c_void, parsed: *mut *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub Parse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, descriptor: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUsbControlRequestType(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUsbControlRequestType { - type Vtable = IUsbControlRequestType_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUsbControlRequestType { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8e9465a6_d73d_46de_94be_aae7f07c0f5c); -} +::windows_core::imp::com_interface!(IUsbControlRequestType, IUsbControlRequestType_Vtbl, 0x8e9465a6_d73d_46de_94be_aae7f07c0f5c); #[repr(C)] #[doc(hidden)] pub struct IUsbControlRequestType_Vtbl { @@ -165,16 +93,7 @@ pub struct IUsbControlRequestType_Vtbl { pub AsByte: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u8) -> ::windows_core::HRESULT, pub SetAsByte: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: u8) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUsbDescriptor(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUsbDescriptor { - type Vtable = IUsbDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUsbDescriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0a89f216_5f9d_4874_8904_da9ad3f5528f); -} +::windows_core::imp::com_interface!(IUsbDescriptor, IUsbDescriptor_Vtbl, 0x0a89f216_5f9d_4874_8904_da9ad3f5528f); #[repr(C)] #[doc(hidden)] pub struct IUsbDescriptor_Vtbl { @@ -186,16 +105,7 @@ pub struct IUsbDescriptor_Vtbl { #[cfg(not(feature = "Storage_Streams"))] ReadDescriptorBuffer: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUsbDevice(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUsbDevice { - type Vtable = IUsbDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUsbDevice { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5249b992_c456_44d5_ad5e_24f5a089f63b); -} +::windows_core::imp::com_interface!(IUsbDevice, IUsbDevice_Vtbl, 0x5249b992_c456_44d5_ad5e_24f5a089f63b); #[repr(C)] #[doc(hidden)] pub struct IUsbDevice_Vtbl { @@ -217,16 +127,7 @@ pub struct IUsbDevice_Vtbl { pub DeviceDescriptor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Configuration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUsbDeviceClass(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUsbDeviceClass { - type Vtable = IUsbDeviceClass_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUsbDeviceClass { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x051942f9_845e_47eb_b12a_38f2f617afe7); -} +::windows_core::imp::com_interface!(IUsbDeviceClass, IUsbDeviceClass_Vtbl, 0x051942f9_845e_47eb_b12a_38f2f617afe7); #[repr(C)] #[doc(hidden)] pub struct IUsbDeviceClass_Vtbl { @@ -238,31 +139,13 @@ pub struct IUsbDeviceClass_Vtbl { pub ProtocolCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetProtocolCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUsbDeviceClasses(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUsbDeviceClasses { - type Vtable = IUsbDeviceClasses_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUsbDeviceClasses { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x686f955d_9b92_4b30_9781_c22c55ac35cb); -} +::windows_core::imp::com_interface!(IUsbDeviceClasses, IUsbDeviceClasses_Vtbl, 0x686f955d_9b92_4b30_9781_c22c55ac35cb); #[repr(C)] #[doc(hidden)] pub struct IUsbDeviceClasses_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUsbDeviceClassesStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUsbDeviceClassesStatics { - type Vtable = IUsbDeviceClassesStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUsbDeviceClassesStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb20b0527_c580_4599_a165_981b4fd03230); -} +::windows_core::imp::com_interface!(IUsbDeviceClassesStatics, IUsbDeviceClassesStatics_Vtbl, 0xb20b0527_c580_4599_a165_981b4fd03230); #[repr(C)] #[doc(hidden)] pub struct IUsbDeviceClassesStatics_Vtbl { @@ -277,16 +160,7 @@ pub struct IUsbDeviceClassesStatics_Vtbl { pub Measurement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub VendorSpecific: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUsbDeviceDescriptor(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUsbDeviceDescriptor { - type Vtable = IUsbDeviceDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUsbDeviceDescriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1f48d1f6_ba97_4322_b92c_b5b189216588); -} +::windows_core::imp::com_interface!(IUsbDeviceDescriptor, IUsbDeviceDescriptor_Vtbl, 0x1f48d1f6_ba97_4322_b92c_b5b189216588); #[repr(C)] #[doc(hidden)] pub struct IUsbDeviceDescriptor_Vtbl { @@ -298,16 +172,7 @@ pub struct IUsbDeviceDescriptor_Vtbl { pub BcdDeviceRevision: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, pub NumberOfConfigurations: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u8) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUsbDeviceStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUsbDeviceStatics { - type Vtable = IUsbDeviceStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUsbDeviceStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x066b85a2_09b7_4446_8502_6fe6dcaa7309); -} +::windows_core::imp::com_interface!(IUsbDeviceStatics, IUsbDeviceStatics_Vtbl, 0x066b85a2_09b7_4446_8502_6fe6dcaa7309); #[repr(C)] #[doc(hidden)] pub struct IUsbDeviceStatics_Vtbl { @@ -318,16 +183,7 @@ pub struct IUsbDeviceStatics_Vtbl { pub GetDeviceClassSelector: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, usbclass: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub FromIdAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, deviceid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUsbEndpointDescriptor(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUsbEndpointDescriptor { - type Vtable = IUsbEndpointDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUsbEndpointDescriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6b4862d9_8df7_4b40_ac83_578f139f0575); -} +::windows_core::imp::com_interface!(IUsbEndpointDescriptor, IUsbEndpointDescriptor_Vtbl, 0x6b4862d9_8df7_4b40_ac83_578f139f0575); #[repr(C)] #[doc(hidden)] pub struct IUsbEndpointDescriptor_Vtbl { @@ -340,16 +196,7 @@ pub struct IUsbEndpointDescriptor_Vtbl { pub AsBulkOutEndpointDescriptor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub AsInterruptOutEndpointDescriptor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUsbEndpointDescriptorStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUsbEndpointDescriptorStatics { - type Vtable = IUsbEndpointDescriptorStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUsbEndpointDescriptorStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc890b201_9a6a_495e_a82c_295b9e708106); -} +::windows_core::imp::com_interface!(IUsbEndpointDescriptorStatics, IUsbEndpointDescriptorStatics_Vtbl, 0xc890b201_9a6a_495e_a82c_295b9e708106); #[repr(C)] #[doc(hidden)] pub struct IUsbEndpointDescriptorStatics_Vtbl { @@ -357,16 +204,7 @@ pub struct IUsbEndpointDescriptorStatics_Vtbl { pub TryParse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, descriptor: *mut ::core::ffi::c_void, parsed: *mut *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub Parse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, descriptor: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUsbInterface(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUsbInterface { - type Vtable = IUsbInterface_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUsbInterface { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa0322b95_7f47_48ab_a727_678c25be2112); -} +::windows_core::imp::com_interface!(IUsbInterface, IUsbInterface_Vtbl, 0xa0322b95_7f47_48ab_a727_678c25be2112); #[repr(C)] #[doc(hidden)] pub struct IUsbInterface_Vtbl { @@ -397,16 +235,7 @@ pub struct IUsbInterface_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Descriptors: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUsbInterfaceDescriptor(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUsbInterfaceDescriptor { - type Vtable = IUsbInterfaceDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUsbInterfaceDescriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x199670c7_b7ee_4f90_8cd5_94a2e257598a); -} +::windows_core::imp::com_interface!(IUsbInterfaceDescriptor, IUsbInterfaceDescriptor_Vtbl, 0x199670c7_b7ee_4f90_8cd5_94a2e257598a); #[repr(C)] #[doc(hidden)] pub struct IUsbInterfaceDescriptor_Vtbl { @@ -417,16 +246,7 @@ pub struct IUsbInterfaceDescriptor_Vtbl { pub AlternateSettingNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u8) -> ::windows_core::HRESULT, pub InterfaceNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u8) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUsbInterfaceDescriptorStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUsbInterfaceDescriptorStatics { - type Vtable = IUsbInterfaceDescriptorStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUsbInterfaceDescriptorStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe34a9ff5_77d6_48b6_b0be_16c6422316fe); -} +::windows_core::imp::com_interface!(IUsbInterfaceDescriptorStatics, IUsbInterfaceDescriptorStatics_Vtbl, 0xe34a9ff5_77d6_48b6_b0be_16c6422316fe); #[repr(C)] #[doc(hidden)] pub struct IUsbInterfaceDescriptorStatics_Vtbl { @@ -434,16 +254,7 @@ pub struct IUsbInterfaceDescriptorStatics_Vtbl { pub TryParse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, descriptor: *mut ::core::ffi::c_void, parsed: *mut *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub Parse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, descriptor: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUsbInterfaceSetting(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUsbInterfaceSetting { - type Vtable = IUsbInterfaceSetting_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUsbInterfaceSetting { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1827bba7_8da7_4af7_8f4c_7f3032e781f5); -} +::windows_core::imp::com_interface!(IUsbInterfaceSetting, IUsbInterfaceSetting_Vtbl, 0x1827bba7_8da7_4af7_8f4c_7f3032e781f5); #[repr(C)] #[doc(hidden)] pub struct IUsbInterfaceSetting_Vtbl { @@ -472,16 +283,7 @@ pub struct IUsbInterfaceSetting_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Descriptors: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUsbInterruptInEndpointDescriptor(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUsbInterruptInEndpointDescriptor { - type Vtable = IUsbInterruptInEndpointDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUsbInterruptInEndpointDescriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc0528967_c911_4c3a_86b2_419c2da89039); -} +::windows_core::imp::com_interface!(IUsbInterruptInEndpointDescriptor, IUsbInterruptInEndpointDescriptor_Vtbl, 0xc0528967_c911_4c3a_86b2_419c2da89039); #[repr(C)] #[doc(hidden)] pub struct IUsbInterruptInEndpointDescriptor_Vtbl { @@ -491,16 +293,7 @@ pub struct IUsbInterruptInEndpointDescriptor_Vtbl { pub Interval: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::TimeSpan) -> ::windows_core::HRESULT, pub Pipe: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUsbInterruptInEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUsbInterruptInEventArgs { - type Vtable = IUsbInterruptInEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUsbInterruptInEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb7b04092_1418_4936_8209_299cf5605583); -} +::windows_core::imp::com_interface!(IUsbInterruptInEventArgs, IUsbInterruptInEventArgs_Vtbl, 0xb7b04092_1418_4936_8209_299cf5605583); #[repr(C)] #[doc(hidden)] pub struct IUsbInterruptInEventArgs_Vtbl { @@ -510,16 +303,7 @@ pub struct IUsbInterruptInEventArgs_Vtbl { #[cfg(not(feature = "Storage_Streams"))] InterruptData: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUsbInterruptInPipe(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUsbInterruptInPipe { - type Vtable = IUsbInterruptInPipe_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUsbInterruptInPipe { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfa007116_84d7_48c7_8a3f_4c0b235f2ea6); -} +::windows_core::imp::com_interface!(IUsbInterruptInPipe, IUsbInterruptInPipe_Vtbl, 0xfa007116_84d7_48c7_8a3f_4c0b235f2ea6); #[repr(C)] #[doc(hidden)] pub struct IUsbInterruptInPipe_Vtbl { @@ -529,16 +313,7 @@ pub struct IUsbInterruptInPipe_Vtbl { pub DataReceived: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveDataReceived: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUsbInterruptOutEndpointDescriptor(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUsbInterruptOutEndpointDescriptor { - type Vtable = IUsbInterruptOutEndpointDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUsbInterruptOutEndpointDescriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcc9fed81_10ca_4533_952d_9e278341e80f); -} +::windows_core::imp::com_interface!(IUsbInterruptOutEndpointDescriptor, IUsbInterruptOutEndpointDescriptor_Vtbl, 0xcc9fed81_10ca_4533_952d_9e278341e80f); #[repr(C)] #[doc(hidden)] pub struct IUsbInterruptOutEndpointDescriptor_Vtbl { @@ -548,16 +323,7 @@ pub struct IUsbInterruptOutEndpointDescriptor_Vtbl { pub Interval: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::TimeSpan) -> ::windows_core::HRESULT, pub Pipe: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUsbInterruptOutPipe(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUsbInterruptOutPipe { - type Vtable = IUsbInterruptOutPipe_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUsbInterruptOutPipe { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe984c8a9_aaf9_49d0_b96c_f661ab4a7f95); -} +::windows_core::imp::com_interface!(IUsbInterruptOutPipe, IUsbInterruptOutPipe_Vtbl, 0xe984c8a9_aaf9_49d0_b96c_f661ab4a7f95); #[repr(C)] #[doc(hidden)] pub struct IUsbInterruptOutPipe_Vtbl { @@ -571,16 +337,7 @@ pub struct IUsbInterruptOutPipe_Vtbl { #[cfg(not(feature = "Storage_Streams"))] OutputStream: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUsbSetupPacket(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUsbSetupPacket { - type Vtable = IUsbSetupPacket_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUsbSetupPacket { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x104ba132_c78f_4c51_b654_e49d02f2cb03); -} +::windows_core::imp::com_interface!(IUsbSetupPacket, IUsbSetupPacket_Vtbl, 0x104ba132_c78f_4c51_b654_e49d02f2cb03); #[repr(C)] #[doc(hidden)] pub struct IUsbSetupPacket_Vtbl { @@ -596,16 +353,7 @@ pub struct IUsbSetupPacket_Vtbl { pub Length: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, pub SetLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUsbSetupPacketFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUsbSetupPacketFactory { - type Vtable = IUsbSetupPacketFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUsbSetupPacketFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc9257d50_1b2e_4a41_a2a7_338f0cef3c14); -} +::windows_core::imp::com_interface!(IUsbSetupPacketFactory, IUsbSetupPacketFactory_Vtbl, 0xc9257d50_1b2e_4a41_a2a7_338f0cef3c14); #[repr(C)] #[doc(hidden)] pub struct IUsbSetupPacketFactory_Vtbl { @@ -618,6 +366,7 @@ pub struct IUsbSetupPacketFactory_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UsbBulkInEndpointDescriptor(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UsbBulkInEndpointDescriptor, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UsbBulkInEndpointDescriptor { pub fn MaxPacketSize(&self) -> ::windows_core::Result { let this = self; @@ -646,19 +395,17 @@ impl ::windows_core::RuntimeType for UsbBulkInEndpointDescriptor { } unsafe impl ::windows_core::Interface for UsbBulkInEndpointDescriptor { type Vtable = IUsbBulkInEndpointDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UsbBulkInEndpointDescriptor { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UsbBulkInEndpointDescriptor { const NAME: &'static str = "Windows.Devices.Usb.UsbBulkInEndpointDescriptor"; } -::windows_core::imp::interface_hierarchy!(UsbBulkInEndpointDescriptor, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UsbBulkInEndpointDescriptor {} unsafe impl ::core::marker::Sync for UsbBulkInEndpointDescriptor {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UsbBulkInPipe(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UsbBulkInPipe, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UsbBulkInPipe { pub fn MaxTransferSizeBytes(&self) -> ::windows_core::Result { let this = self; @@ -711,19 +458,17 @@ impl ::windows_core::RuntimeType for UsbBulkInPipe { } unsafe impl ::windows_core::Interface for UsbBulkInPipe { type Vtable = IUsbBulkInPipe_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UsbBulkInPipe { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UsbBulkInPipe { const NAME: &'static str = "Windows.Devices.Usb.UsbBulkInPipe"; } -::windows_core::imp::interface_hierarchy!(UsbBulkInPipe, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UsbBulkInPipe {} unsafe impl ::core::marker::Sync for UsbBulkInPipe {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UsbBulkOutEndpointDescriptor(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UsbBulkOutEndpointDescriptor, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UsbBulkOutEndpointDescriptor { pub fn MaxPacketSize(&self) -> ::windows_core::Result { let this = self; @@ -752,19 +497,17 @@ impl ::windows_core::RuntimeType for UsbBulkOutEndpointDescriptor { } unsafe impl ::windows_core::Interface for UsbBulkOutEndpointDescriptor { type Vtable = IUsbBulkOutEndpointDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UsbBulkOutEndpointDescriptor { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UsbBulkOutEndpointDescriptor { const NAME: &'static str = "Windows.Devices.Usb.UsbBulkOutEndpointDescriptor"; } -::windows_core::imp::interface_hierarchy!(UsbBulkOutEndpointDescriptor, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UsbBulkOutEndpointDescriptor {} unsafe impl ::core::marker::Sync for UsbBulkOutEndpointDescriptor {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UsbBulkOutPipe(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UsbBulkOutPipe, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UsbBulkOutPipe { pub fn EndpointDescriptor(&self) -> ::windows_core::Result { let this = self; @@ -806,19 +549,17 @@ impl ::windows_core::RuntimeType for UsbBulkOutPipe { } unsafe impl ::windows_core::Interface for UsbBulkOutPipe { type Vtable = IUsbBulkOutPipe_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UsbBulkOutPipe { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UsbBulkOutPipe { const NAME: &'static str = "Windows.Devices.Usb.UsbBulkOutPipe"; } -::windows_core::imp::interface_hierarchy!(UsbBulkOutPipe, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UsbBulkOutPipe {} unsafe impl ::core::marker::Sync for UsbBulkOutPipe {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UsbConfiguration(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UsbConfiguration, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UsbConfiguration { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -851,19 +592,17 @@ impl ::windows_core::RuntimeType for UsbConfiguration { } unsafe impl ::windows_core::Interface for UsbConfiguration { type Vtable = IUsbConfiguration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UsbConfiguration { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UsbConfiguration { const NAME: &'static str = "Windows.Devices.Usb.UsbConfiguration"; } -::windows_core::imp::interface_hierarchy!(UsbConfiguration, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UsbConfiguration {} unsafe impl ::core::marker::Sync for UsbConfiguration {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UsbConfigurationDescriptor(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UsbConfigurationDescriptor, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UsbConfigurationDescriptor { pub fn ConfigurationValue(&self) -> ::windows_core::Result { let this = self; @@ -922,19 +661,17 @@ impl ::windows_core::RuntimeType for UsbConfigurationDescriptor { } unsafe impl ::windows_core::Interface for UsbConfigurationDescriptor { type Vtable = IUsbConfigurationDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UsbConfigurationDescriptor { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UsbConfigurationDescriptor { const NAME: &'static str = "Windows.Devices.Usb.UsbConfigurationDescriptor"; } -::windows_core::imp::interface_hierarchy!(UsbConfigurationDescriptor, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UsbConfigurationDescriptor {} unsafe impl ::core::marker::Sync for UsbConfigurationDescriptor {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UsbControlRequestType(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UsbControlRequestType, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UsbControlRequestType { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -993,19 +730,17 @@ impl ::windows_core::RuntimeType for UsbControlRequestType { } unsafe impl ::windows_core::Interface for UsbControlRequestType { type Vtable = IUsbControlRequestType_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UsbControlRequestType { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UsbControlRequestType { const NAME: &'static str = "Windows.Devices.Usb.UsbControlRequestType"; } -::windows_core::imp::interface_hierarchy!(UsbControlRequestType, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UsbControlRequestType {} unsafe impl ::core::marker::Sync for UsbControlRequestType {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UsbDescriptor(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UsbDescriptor, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UsbDescriptor { pub fn Length(&self) -> ::windows_core::Result { let this = self; @@ -1025,10 +760,10 @@ impl UsbDescriptor { #[cfg(feature = "Storage_Streams")] pub fn ReadDescriptorBuffer(&self, buffer: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).ReadDescriptorBuffer)(::windows_core::Interface::as_raw(this), buffer.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).ReadDescriptorBuffer)(::windows_core::Interface::as_raw(this), buffer.into_param().abi()).ok() } } } impl ::windows_core::RuntimeType for UsbDescriptor { @@ -1036,22 +771,21 @@ impl ::windows_core::RuntimeType for UsbDescriptor { } unsafe impl ::windows_core::Interface for UsbDescriptor { type Vtable = IUsbDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UsbDescriptor { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UsbDescriptor { const NAME: &'static str = "Windows.Devices.Usb.UsbDescriptor"; } -::windows_core::imp::interface_hierarchy!(UsbDescriptor, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UsbDescriptor {} unsafe impl ::core::marker::Sync for UsbDescriptor {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UsbDevice(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UsbDevice, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(UsbDevice, super::super::Foundation::IClosable); impl UsbDevice { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Storage_Streams\"`"] @@ -1059,12 +793,12 @@ impl UsbDevice { pub fn SendControlOutTransferAsync(&self, setuppacket: P0, buffer: P1) -> ::windows_core::Result> where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam, + P1: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SendControlOutTransferAsync)(::windows_core::Interface::as_raw(this), setuppacket.into_param().abi(), buffer.into_param().abi(), &mut result__).from_abi(result__) } } pub fn SendControlOutTransferAsyncNoBuffer(&self, setuppacket: P0) -> ::windows_core::Result> @@ -1082,12 +816,12 @@ impl UsbDevice { pub fn SendControlInTransferAsync(&self, setuppacket: P0, buffer: P1) -> ::windows_core::Result> where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam, + P1: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SendControlInTransferAsync)(::windows_core::Interface::as_raw(this), setuppacket.into_param().abi(), buffer.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Storage_Streams\"`"] @@ -1167,20 +901,17 @@ impl ::windows_core::RuntimeType for UsbDevice { } unsafe impl ::windows_core::Interface for UsbDevice { type Vtable = IUsbDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UsbDevice { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UsbDevice { const NAME: &'static str = "Windows.Devices.Usb.UsbDevice"; } -::windows_core::imp::interface_hierarchy!(UsbDevice, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for UsbDevice {} unsafe impl ::core::marker::Send for UsbDevice {} unsafe impl ::core::marker::Sync for UsbDevice {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UsbDeviceClass(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UsbDeviceClass, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UsbDeviceClass { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1209,10 +940,10 @@ impl UsbDeviceClass { } pub fn SetSubclassCode(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetSubclassCode)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetSubclassCode)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn ProtocolCode(&self) -> ::windows_core::Result> { let this = self; @@ -1223,10 +954,10 @@ impl UsbDeviceClass { } pub fn SetProtocolCode(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetProtocolCode)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetProtocolCode)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } } impl ::windows_core::RuntimeType for UsbDeviceClass { @@ -1234,19 +965,17 @@ impl ::windows_core::RuntimeType for UsbDeviceClass { } unsafe impl ::windows_core::Interface for UsbDeviceClass { type Vtable = IUsbDeviceClass_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UsbDeviceClass { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UsbDeviceClass { const NAME: &'static str = "Windows.Devices.Usb.UsbDeviceClass"; } -::windows_core::imp::interface_hierarchy!(UsbDeviceClass, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UsbDeviceClass {} unsafe impl ::core::marker::Sync for UsbDeviceClass {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UsbDeviceClasses(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UsbDeviceClasses, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UsbDeviceClasses { pub fn CdcControl() -> ::windows_core::Result { Self::IUsbDeviceClassesStatics(|this| unsafe { @@ -1313,19 +1042,17 @@ impl ::windows_core::RuntimeType for UsbDeviceClasses { } unsafe impl ::windows_core::Interface for UsbDeviceClasses { type Vtable = IUsbDeviceClasses_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UsbDeviceClasses { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UsbDeviceClasses { const NAME: &'static str = "Windows.Devices.Usb.UsbDeviceClasses"; } -::windows_core::imp::interface_hierarchy!(UsbDeviceClasses, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UsbDeviceClasses {} unsafe impl ::core::marker::Sync for UsbDeviceClasses {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UsbDeviceDescriptor(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UsbDeviceDescriptor, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UsbDeviceDescriptor { pub fn BcdUsb(&self) -> ::windows_core::Result { let this = self; @@ -1375,19 +1102,17 @@ impl ::windows_core::RuntimeType for UsbDeviceDescriptor { } unsafe impl ::windows_core::Interface for UsbDeviceDescriptor { type Vtable = IUsbDeviceDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UsbDeviceDescriptor { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UsbDeviceDescriptor { const NAME: &'static str = "Windows.Devices.Usb.UsbDeviceDescriptor"; } -::windows_core::imp::interface_hierarchy!(UsbDeviceDescriptor, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UsbDeviceDescriptor {} unsafe impl ::core::marker::Sync for UsbDeviceDescriptor {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UsbEndpointDescriptor(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UsbEndpointDescriptor, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UsbEndpointDescriptor { pub fn EndpointNumber(&self) -> ::windows_core::Result { let this = self; @@ -1467,19 +1192,17 @@ impl ::windows_core::RuntimeType for UsbEndpointDescriptor { } unsafe impl ::windows_core::Interface for UsbEndpointDescriptor { type Vtable = IUsbEndpointDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UsbEndpointDescriptor { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UsbEndpointDescriptor { const NAME: &'static str = "Windows.Devices.Usb.UsbEndpointDescriptor"; } -::windows_core::imp::interface_hierarchy!(UsbEndpointDescriptor, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UsbEndpointDescriptor {} unsafe impl ::core::marker::Sync for UsbEndpointDescriptor {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UsbInterface(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UsbInterface, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UsbInterface { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -1548,19 +1271,17 @@ impl ::windows_core::RuntimeType for UsbInterface { } unsafe impl ::windows_core::Interface for UsbInterface { type Vtable = IUsbInterface_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UsbInterface { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UsbInterface { const NAME: &'static str = "Windows.Devices.Usb.UsbInterface"; } -::windows_core::imp::interface_hierarchy!(UsbInterface, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UsbInterface {} unsafe impl ::core::marker::Sync for UsbInterface {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UsbInterfaceDescriptor(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UsbInterfaceDescriptor, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UsbInterfaceDescriptor { pub fn ClassCode(&self) -> ::windows_core::Result { let this = self; @@ -1626,19 +1347,17 @@ impl ::windows_core::RuntimeType for UsbInterfaceDescriptor { } unsafe impl ::windows_core::Interface for UsbInterfaceDescriptor { type Vtable = IUsbInterfaceDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UsbInterfaceDescriptor { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UsbInterfaceDescriptor { const NAME: &'static str = "Windows.Devices.Usb.UsbInterfaceDescriptor"; } -::windows_core::imp::interface_hierarchy!(UsbInterfaceDescriptor, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UsbInterfaceDescriptor {} unsafe impl ::core::marker::Sync for UsbInterfaceDescriptor {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UsbInterfaceSetting(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UsbInterfaceSetting, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UsbInterfaceSetting { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -1712,19 +1431,17 @@ impl ::windows_core::RuntimeType for UsbInterfaceSetting { } unsafe impl ::windows_core::Interface for UsbInterfaceSetting { type Vtable = IUsbInterfaceSetting_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UsbInterfaceSetting { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UsbInterfaceSetting { const NAME: &'static str = "Windows.Devices.Usb.UsbInterfaceSetting"; } -::windows_core::imp::interface_hierarchy!(UsbInterfaceSetting, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UsbInterfaceSetting {} unsafe impl ::core::marker::Sync for UsbInterfaceSetting {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UsbInterruptInEndpointDescriptor(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UsbInterruptInEndpointDescriptor, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UsbInterruptInEndpointDescriptor { pub fn MaxPacketSize(&self) -> ::windows_core::Result { let this = self; @@ -1760,19 +1477,17 @@ impl ::windows_core::RuntimeType for UsbInterruptInEndpointDescriptor { } unsafe impl ::windows_core::Interface for UsbInterruptInEndpointDescriptor { type Vtable = IUsbInterruptInEndpointDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UsbInterruptInEndpointDescriptor { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UsbInterruptInEndpointDescriptor { const NAME: &'static str = "Windows.Devices.Usb.UsbInterruptInEndpointDescriptor"; } -::windows_core::imp::interface_hierarchy!(UsbInterruptInEndpointDescriptor, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UsbInterruptInEndpointDescriptor {} unsafe impl ::core::marker::Sync for UsbInterruptInEndpointDescriptor {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UsbInterruptInEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UsbInterruptInEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UsbInterruptInEventArgs { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] @@ -1789,19 +1504,17 @@ impl ::windows_core::RuntimeType for UsbInterruptInEventArgs { } unsafe impl ::windows_core::Interface for UsbInterruptInEventArgs { type Vtable = IUsbInterruptInEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UsbInterruptInEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UsbInterruptInEventArgs { const NAME: &'static str = "Windows.Devices.Usb.UsbInterruptInEventArgs"; } -::windows_core::imp::interface_hierarchy!(UsbInterruptInEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UsbInterruptInEventArgs {} unsafe impl ::core::marker::Sync for UsbInterruptInEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UsbInterruptInPipe(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UsbInterruptInPipe, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UsbInterruptInPipe { pub fn EndpointDescriptor(&self) -> ::windows_core::Result { let this = self; @@ -1837,19 +1550,17 @@ impl ::windows_core::RuntimeType for UsbInterruptInPipe { } unsafe impl ::windows_core::Interface for UsbInterruptInPipe { type Vtable = IUsbInterruptInPipe_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UsbInterruptInPipe { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UsbInterruptInPipe { const NAME: &'static str = "Windows.Devices.Usb.UsbInterruptInPipe"; } -::windows_core::imp::interface_hierarchy!(UsbInterruptInPipe, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UsbInterruptInPipe {} unsafe impl ::core::marker::Sync for UsbInterruptInPipe {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UsbInterruptOutEndpointDescriptor(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UsbInterruptOutEndpointDescriptor, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UsbInterruptOutEndpointDescriptor { pub fn MaxPacketSize(&self) -> ::windows_core::Result { let this = self; @@ -1885,19 +1596,17 @@ impl ::windows_core::RuntimeType for UsbInterruptOutEndpointDescriptor { } unsafe impl ::windows_core::Interface for UsbInterruptOutEndpointDescriptor { type Vtable = IUsbInterruptOutEndpointDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UsbInterruptOutEndpointDescriptor { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UsbInterruptOutEndpointDescriptor { const NAME: &'static str = "Windows.Devices.Usb.UsbInterruptOutEndpointDescriptor"; } -::windows_core::imp::interface_hierarchy!(UsbInterruptOutEndpointDescriptor, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UsbInterruptOutEndpointDescriptor {} unsafe impl ::core::marker::Sync for UsbInterruptOutEndpointDescriptor {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UsbInterruptOutPipe(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UsbInterruptOutPipe, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UsbInterruptOutPipe { pub fn EndpointDescriptor(&self) -> ::windows_core::Result { let this = self; @@ -1939,19 +1648,17 @@ impl ::windows_core::RuntimeType for UsbInterruptOutPipe { } unsafe impl ::windows_core::Interface for UsbInterruptOutPipe { type Vtable = IUsbInterruptOutPipe_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UsbInterruptOutPipe { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UsbInterruptOutPipe { const NAME: &'static str = "Windows.Devices.Usb.UsbInterruptOutPipe"; } -::windows_core::imp::interface_hierarchy!(UsbInterruptOutPipe, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UsbInterruptOutPipe {} unsafe impl ::core::marker::Sync for UsbInterruptOutPipe {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UsbSetupPacket(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UsbSetupPacket, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UsbSetupPacket { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2022,11 +1729,11 @@ impl UsbSetupPacket { #[cfg(feature = "Storage_Streams")] pub fn CreateWithEightByteBuffer(eightbytebuffer: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IUsbSetupPacketFactory(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateWithEightByteBuffer)(::windows_core::Interface::as_raw(this), eightbytebuffer.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateWithEightByteBuffer)(::windows_core::Interface::as_raw(this), eightbytebuffer.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -2040,14 +1747,11 @@ impl ::windows_core::RuntimeType for UsbSetupPacket { } unsafe impl ::windows_core::Interface for UsbSetupPacket { type Vtable = IUsbSetupPacket_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UsbSetupPacket { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UsbSetupPacket { const NAME: &'static str = "Windows.Devices.Usb.UsbSetupPacket"; } -::windows_core::imp::interface_hierarchy!(UsbSetupPacket, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UsbSetupPacket {} unsafe impl ::core::marker::Sync for UsbSetupPacket {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Devices/WiFi/mod.rs b/crates/libs/windows/src/Windows/Devices/WiFi/mod.rs index f78e8d940f..9b14d94234 100644 --- a/crates/libs/windows/src/Windows/Devices/WiFi/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/WiFi/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWiFiAdapter(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWiFiAdapter { - type Vtable = IWiFiAdapter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWiFiAdapter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa6c4e423_3d75_43a4_b9de_11e26b72d9b0); -} +::windows_core::imp::com_interface!(IWiFiAdapter, IWiFiAdapter_Vtbl, 0xa6c4e423_3d75_43a4_b9de_11e26b72d9b0); #[repr(C)] #[doc(hidden)] pub struct IWiFiAdapter_Vtbl { @@ -31,16 +22,7 @@ pub struct IWiFiAdapter_Vtbl { ConnectWithPasswordCredentialAndSsidAsync: usize, pub Disconnect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWiFiAdapter2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWiFiAdapter2 { - type Vtable = IWiFiAdapter2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWiFiAdapter2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5bc4501d_81e4_453d_9430_1fcafbadd6b6); -} +::windows_core::imp::com_interface!(IWiFiAdapter2, IWiFiAdapter2_Vtbl, 0x5bc4501d_81e4_453d_9430_1fcafbadd6b6); #[repr(C)] #[doc(hidden)] pub struct IWiFiAdapter2_Vtbl { @@ -51,16 +33,7 @@ pub struct IWiFiAdapter2_Vtbl { #[cfg(not(feature = "Security_Credentials"))] ConnectWithPasswordCredentialAndSsidAndConnectionMethodAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWiFiAdapterStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWiFiAdapterStatics { - type Vtable = IWiFiAdapterStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWiFiAdapterStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xda25fddd_d24c_43e3_aabd_c4659f730f99); -} +::windows_core::imp::com_interface!(IWiFiAdapterStatics, IWiFiAdapterStatics_Vtbl, 0xda25fddd_d24c_43e3_aabd_c4659f730f99); #[repr(C)] #[doc(hidden)] pub struct IWiFiAdapterStatics_Vtbl { @@ -73,16 +46,7 @@ pub struct IWiFiAdapterStatics_Vtbl { pub FromIdAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, deviceid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RequestAccessAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWiFiAvailableNetwork(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWiFiAvailableNetwork { - type Vtable = IWiFiAvailableNetwork_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWiFiAvailableNetwork { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x26e96246_183e_4704_9826_71b4a2f0f668); -} +::windows_core::imp::com_interface!(IWiFiAvailableNetwork, IWiFiAvailableNetwork_Vtbl, 0x26e96246_183e_4704_9826_71b4a2f0f668); #[repr(C)] #[doc(hidden)] pub struct IWiFiAvailableNetwork_Vtbl { @@ -102,32 +66,14 @@ pub struct IWiFiAvailableNetwork_Vtbl { pub BeaconInterval: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::TimeSpan) -> ::windows_core::HRESULT, pub IsWiFiDirect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWiFiConnectionResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWiFiConnectionResult { - type Vtable = IWiFiConnectionResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWiFiConnectionResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x143bdfd9_c37d_40be_a5c8_857bce85a931); -} +::windows_core::imp::com_interface!(IWiFiConnectionResult, IWiFiConnectionResult_Vtbl, 0x143bdfd9_c37d_40be_a5c8_857bce85a931); #[repr(C)] #[doc(hidden)] pub struct IWiFiConnectionResult_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ConnectionStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut WiFiConnectionStatus) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWiFiNetworkReport(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWiFiNetworkReport { - type Vtable = IWiFiNetworkReport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWiFiNetworkReport { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9524ded2_5911_445e_8194_be4f1a704895); -} +::windows_core::imp::com_interface!(IWiFiNetworkReport, IWiFiNetworkReport_Vtbl, 0x9524ded2_5911_445e_8194_be4f1a704895); #[repr(C)] #[doc(hidden)] pub struct IWiFiNetworkReport_Vtbl { @@ -138,16 +84,7 @@ pub struct IWiFiNetworkReport_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] AvailableNetworks: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWiFiOnDemandHotspotConnectTriggerDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWiFiOnDemandHotspotConnectTriggerDetails { - type Vtable = IWiFiOnDemandHotspotConnectTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWiFiOnDemandHotspotConnectTriggerDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa268eb58_68f5_59cf_8d38_35bf44b097ef); -} +::windows_core::imp::com_interface!(IWiFiOnDemandHotspotConnectTriggerDetails, IWiFiOnDemandHotspotConnectTriggerDetails_Vtbl, 0xa268eb58_68f5_59cf_8d38_35bf44b097ef); #[repr(C)] #[doc(hidden)] pub struct IWiFiOnDemandHotspotConnectTriggerDetails_Vtbl { @@ -157,32 +94,14 @@ pub struct IWiFiOnDemandHotspotConnectTriggerDetails_Vtbl { pub ConnectAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Connect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWiFiOnDemandHotspotConnectionResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWiFiOnDemandHotspotConnectionResult { - type Vtable = IWiFiOnDemandHotspotConnectionResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWiFiOnDemandHotspotConnectionResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x911794a1_6c82_5de3_8a4a_f9ff22a4957a); -} +::windows_core::imp::com_interface!(IWiFiOnDemandHotspotConnectionResult, IWiFiOnDemandHotspotConnectionResult_Vtbl, 0x911794a1_6c82_5de3_8a4a_f9ff22a4957a); #[repr(C)] #[doc(hidden)] pub struct IWiFiOnDemandHotspotConnectionResult_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut WiFiOnDemandHotspotConnectStatus) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWiFiOnDemandHotspotNetwork(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWiFiOnDemandHotspotNetwork { - type Vtable = IWiFiOnDemandHotspotNetwork_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWiFiOnDemandHotspotNetwork { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x18dc7115_a04e_507c_bbaf_b78369d29fa7); -} +::windows_core::imp::com_interface!(IWiFiOnDemandHotspotNetwork, IWiFiOnDemandHotspotNetwork_Vtbl, 0x18dc7115_a04e_507c_bbaf_b78369d29fa7); #[repr(C)] #[doc(hidden)] pub struct IWiFiOnDemandHotspotNetwork_Vtbl { @@ -191,16 +110,7 @@ pub struct IWiFiOnDemandHotspotNetwork_Vtbl { pub UpdateProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newproperties: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWiFiOnDemandHotspotNetworkProperties(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWiFiOnDemandHotspotNetworkProperties { - type Vtable = IWiFiOnDemandHotspotNetworkProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWiFiOnDemandHotspotNetworkProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc810a1f2_c81d_5852_be50_e4bd4d81e98d); -} +::windows_core::imp::com_interface!(IWiFiOnDemandHotspotNetworkProperties, IWiFiOnDemandHotspotNetworkProperties_Vtbl, 0xc810a1f2_c81d_5852_be50_e4bd4d81e98d); #[repr(C)] #[doc(hidden)] pub struct IWiFiOnDemandHotspotNetworkProperties_Vtbl { @@ -226,32 +136,14 @@ pub struct IWiFiOnDemandHotspotNetworkProperties_Vtbl { #[cfg(not(feature = "Security_Credentials"))] SetPassword: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWiFiOnDemandHotspotNetworkStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWiFiOnDemandHotspotNetworkStatics { - type Vtable = IWiFiOnDemandHotspotNetworkStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWiFiOnDemandHotspotNetworkStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00f5b8ac_80e7_5054_871c_8739f374e3c9); -} +::windows_core::imp::com_interface!(IWiFiOnDemandHotspotNetworkStatics, IWiFiOnDemandHotspotNetworkStatics_Vtbl, 0x00f5b8ac_80e7_5054_871c_8739f374e3c9); #[repr(C)] #[doc(hidden)] pub struct IWiFiOnDemandHotspotNetworkStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetOrCreateById: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, networkid: ::windows_core::GUID, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWiFiWpsConfigurationResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWiFiWpsConfigurationResult { - type Vtable = IWiFiWpsConfigurationResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWiFiWpsConfigurationResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x67b49871_17ee_42d1_b14f_5a11f1226fb5); -} +::windows_core::imp::com_interface!(IWiFiWpsConfigurationResult, IWiFiWpsConfigurationResult_Vtbl, 0x67b49871_17ee_42d1_b14f_5a11f1226fb5); #[repr(C)] #[doc(hidden)] pub struct IWiFiWpsConfigurationResult_Vtbl { @@ -265,6 +157,7 @@ pub struct IWiFiWpsConfigurationResult_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WiFiAdapter(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WiFiAdapter, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WiFiAdapter { #[doc = "Required features: `\"Networking_Connectivity\"`"] #[cfg(feature = "Networking_Connectivity")] @@ -347,7 +240,7 @@ impl WiFiAdapter { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -360,7 +253,7 @@ impl WiFiAdapter { P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -403,19 +296,17 @@ impl ::windows_core::RuntimeType for WiFiAdapter { } unsafe impl ::windows_core::Interface for WiFiAdapter { type Vtable = IWiFiAdapter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WiFiAdapter { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WiFiAdapter { const NAME: &'static str = "Windows.Devices.WiFi.WiFiAdapter"; } -::windows_core::imp::interface_hierarchy!(WiFiAdapter, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for WiFiAdapter {} unsafe impl ::core::marker::Sync for WiFiAdapter {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WiFiAvailableNetwork(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WiFiAvailableNetwork, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WiFiAvailableNetwork { pub fn Uptime(&self) -> ::windows_core::Result { let this = self; @@ -502,19 +393,17 @@ impl ::windows_core::RuntimeType for WiFiAvailableNetwork { } unsafe impl ::windows_core::Interface for WiFiAvailableNetwork { type Vtable = IWiFiAvailableNetwork_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WiFiAvailableNetwork { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WiFiAvailableNetwork { const NAME: &'static str = "Windows.Devices.WiFi.WiFiAvailableNetwork"; } -::windows_core::imp::interface_hierarchy!(WiFiAvailableNetwork, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for WiFiAvailableNetwork {} unsafe impl ::core::marker::Sync for WiFiAvailableNetwork {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WiFiConnectionResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WiFiConnectionResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WiFiConnectionResult { pub fn ConnectionStatus(&self) -> ::windows_core::Result { let this = self; @@ -529,19 +418,17 @@ impl ::windows_core::RuntimeType for WiFiConnectionResult { } unsafe impl ::windows_core::Interface for WiFiConnectionResult { type Vtable = IWiFiConnectionResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WiFiConnectionResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WiFiConnectionResult { const NAME: &'static str = "Windows.Devices.WiFi.WiFiConnectionResult"; } -::windows_core::imp::interface_hierarchy!(WiFiConnectionResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for WiFiConnectionResult {} unsafe impl ::core::marker::Sync for WiFiConnectionResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WiFiNetworkReport(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WiFiNetworkReport, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WiFiNetworkReport { pub fn Timestamp(&self) -> ::windows_core::Result { let this = self; @@ -565,19 +452,17 @@ impl ::windows_core::RuntimeType for WiFiNetworkReport { } unsafe impl ::windows_core::Interface for WiFiNetworkReport { type Vtable = IWiFiNetworkReport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WiFiNetworkReport { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WiFiNetworkReport { const NAME: &'static str = "Windows.Devices.WiFi.WiFiNetworkReport"; } -::windows_core::imp::interface_hierarchy!(WiFiNetworkReport, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for WiFiNetworkReport {} unsafe impl ::core::marker::Sync for WiFiNetworkReport {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WiFiOnDemandHotspotConnectTriggerDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WiFiOnDemandHotspotConnectTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WiFiOnDemandHotspotConnectTriggerDetails { pub fn RequestedNetwork(&self) -> ::windows_core::Result { let this = self; @@ -610,19 +495,17 @@ impl ::windows_core::RuntimeType for WiFiOnDemandHotspotConnectTriggerDetails { } unsafe impl ::windows_core::Interface for WiFiOnDemandHotspotConnectTriggerDetails { type Vtable = IWiFiOnDemandHotspotConnectTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WiFiOnDemandHotspotConnectTriggerDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WiFiOnDemandHotspotConnectTriggerDetails { const NAME: &'static str = "Windows.Devices.WiFi.WiFiOnDemandHotspotConnectTriggerDetails"; } -::windows_core::imp::interface_hierarchy!(WiFiOnDemandHotspotConnectTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for WiFiOnDemandHotspotConnectTriggerDetails {} unsafe impl ::core::marker::Sync for WiFiOnDemandHotspotConnectTriggerDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WiFiOnDemandHotspotConnectionResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WiFiOnDemandHotspotConnectionResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WiFiOnDemandHotspotConnectionResult { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -637,19 +520,17 @@ impl ::windows_core::RuntimeType for WiFiOnDemandHotspotConnectionResult { } unsafe impl ::windows_core::Interface for WiFiOnDemandHotspotConnectionResult { type Vtable = IWiFiOnDemandHotspotConnectionResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WiFiOnDemandHotspotConnectionResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WiFiOnDemandHotspotConnectionResult { const NAME: &'static str = "Windows.Devices.WiFi.WiFiOnDemandHotspotConnectionResult"; } -::windows_core::imp::interface_hierarchy!(WiFiOnDemandHotspotConnectionResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for WiFiOnDemandHotspotConnectionResult {} unsafe impl ::core::marker::Sync for WiFiOnDemandHotspotConnectionResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WiFiOnDemandHotspotNetwork(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WiFiOnDemandHotspotNetwork, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WiFiOnDemandHotspotNetwork { pub fn GetProperties(&self) -> ::windows_core::Result { let this = self; @@ -689,19 +570,17 @@ impl ::windows_core::RuntimeType for WiFiOnDemandHotspotNetwork { } unsafe impl ::windows_core::Interface for WiFiOnDemandHotspotNetwork { type Vtable = IWiFiOnDemandHotspotNetwork_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WiFiOnDemandHotspotNetwork { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WiFiOnDemandHotspotNetwork { const NAME: &'static str = "Windows.Devices.WiFi.WiFiOnDemandHotspotNetwork"; } -::windows_core::imp::interface_hierarchy!(WiFiOnDemandHotspotNetwork, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for WiFiOnDemandHotspotNetwork {} unsafe impl ::core::marker::Sync for WiFiOnDemandHotspotNetwork {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WiFiOnDemandHotspotNetworkProperties(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WiFiOnDemandHotspotNetworkProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WiFiOnDemandHotspotNetworkProperties { pub fn DisplayName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -734,10 +613,10 @@ impl WiFiOnDemandHotspotNetworkProperties { } pub fn SetRemainingBatteryPercent(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetRemainingBatteryPercent)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetRemainingBatteryPercent)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn CellularBars(&self) -> ::windows_core::Result> { let this = self; @@ -748,10 +627,10 @@ impl WiFiOnDemandHotspotNetworkProperties { } pub fn SetCellularBars(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetCellularBars)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetCellularBars)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn IsMetered(&self) -> ::windows_core::Result { let this = self; @@ -799,19 +678,17 @@ impl ::windows_core::RuntimeType for WiFiOnDemandHotspotNetworkProperties { } unsafe impl ::windows_core::Interface for WiFiOnDemandHotspotNetworkProperties { type Vtable = IWiFiOnDemandHotspotNetworkProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WiFiOnDemandHotspotNetworkProperties { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WiFiOnDemandHotspotNetworkProperties { const NAME: &'static str = "Windows.Devices.WiFi.WiFiOnDemandHotspotNetworkProperties"; } -::windows_core::imp::interface_hierarchy!(WiFiOnDemandHotspotNetworkProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for WiFiOnDemandHotspotNetworkProperties {} unsafe impl ::core::marker::Sync for WiFiOnDemandHotspotNetworkProperties {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WiFiWpsConfigurationResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WiFiWpsConfigurationResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WiFiWpsConfigurationResult { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -835,14 +712,11 @@ impl ::windows_core::RuntimeType for WiFiWpsConfigurationResult { } unsafe impl ::windows_core::Interface for WiFiWpsConfigurationResult { type Vtable = IWiFiWpsConfigurationResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WiFiWpsConfigurationResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WiFiWpsConfigurationResult { const NAME: &'static str = "Windows.Devices.WiFi.WiFiWpsConfigurationResult"; } -::windows_core::imp::interface_hierarchy!(WiFiWpsConfigurationResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for WiFiWpsConfigurationResult {} unsafe impl ::core::marker::Sync for WiFiWpsConfigurationResult {} #[repr(transparent)] 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 a5c84e99d3..c7e4ccc0b1 100644 --- a/crates/libs/windows/src/Windows/Devices/WiFiDirect/Services/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/WiFiDirect/Services/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWiFiDirectService(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWiFiDirectService { - type Vtable = IWiFiDirectService_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWiFiDirectService { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x50aabbb8_5f71_45ec_84f1_a1e4fc7879a3); -} +::windows_core::imp::com_interface!(IWiFiDirectService, IWiFiDirectService_Vtbl, 0x50aabbb8_5f71_45ec_84f1_a1e4fc7879a3); #[repr(C)] #[doc(hidden)] pub struct IWiFiDirectService_Vtbl { @@ -37,16 +28,7 @@ pub struct IWiFiDirectService_Vtbl { pub ConnectAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ConnectAsyncWithPin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pin: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWiFiDirectServiceAdvertiser(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWiFiDirectServiceAdvertiser { - type Vtable = IWiFiDirectServiceAdvertiser_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWiFiDirectServiceAdvertiser { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa4aa1ee1_9d8f_4f4f_93ee_7ddea2e37f46); -} +::windows_core::imp::com_interface!(IWiFiDirectServiceAdvertiser, IWiFiDirectServiceAdvertiser_Vtbl, 0xa4aa1ee1_9d8f_4f4f_93ee_7ddea2e37f46); #[repr(C)] #[doc(hidden)] pub struct IWiFiDirectServiceAdvertiser_Vtbl { @@ -103,32 +85,14 @@ pub struct IWiFiDirectServiceAdvertiser_Vtbl { pub Start: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Stop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWiFiDirectServiceAdvertiserFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWiFiDirectServiceAdvertiserFactory { - type Vtable = IWiFiDirectServiceAdvertiserFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWiFiDirectServiceAdvertiserFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3106ac0d_b446_4f13_9f9a_8ae925feba2b); -} +::windows_core::imp::com_interface!(IWiFiDirectServiceAdvertiserFactory, IWiFiDirectServiceAdvertiserFactory_Vtbl, 0x3106ac0d_b446_4f13_9f9a_8ae925feba2b); #[repr(C)] #[doc(hidden)] pub struct IWiFiDirectServiceAdvertiserFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateWiFiDirectServiceAdvertiser: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, servicename: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWiFiDirectServiceAutoAcceptSessionConnectedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWiFiDirectServiceAutoAcceptSessionConnectedEventArgs { - type Vtable = IWiFiDirectServiceAutoAcceptSessionConnectedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWiFiDirectServiceAutoAcceptSessionConnectedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdcd9e01e_83df_43e5_8f43_cbe8479e84eb); -} +::windows_core::imp::com_interface!(IWiFiDirectServiceAutoAcceptSessionConnectedEventArgs, IWiFiDirectServiceAutoAcceptSessionConnectedEventArgs_Vtbl, 0xdcd9e01e_83df_43e5_8f43_cbe8479e84eb); #[repr(C)] #[doc(hidden)] pub struct IWiFiDirectServiceAutoAcceptSessionConnectedEventArgs_Vtbl { @@ -139,16 +103,7 @@ pub struct IWiFiDirectServiceAutoAcceptSessionConnectedEventArgs_Vtbl { #[cfg(not(feature = "Storage_Streams"))] SessionInfo: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWiFiDirectServiceProvisioningInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWiFiDirectServiceProvisioningInfo { - type Vtable = IWiFiDirectServiceProvisioningInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWiFiDirectServiceProvisioningInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8bdb7cfe_97d9_45a2_8e99_db50910fb6a6); -} +::windows_core::imp::com_interface!(IWiFiDirectServiceProvisioningInfo, IWiFiDirectServiceProvisioningInfo_Vtbl, 0x8bdb7cfe_97d9_45a2_8e99_db50910fb6a6); #[repr(C)] #[doc(hidden)] pub struct IWiFiDirectServiceProvisioningInfo_Vtbl { @@ -156,16 +111,7 @@ pub struct IWiFiDirectServiceProvisioningInfo_Vtbl { pub SelectedConfigurationMethod: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut WiFiDirectServiceConfigurationMethod) -> ::windows_core::HRESULT, pub IsGroupFormationNeeded: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWiFiDirectServiceRemotePortAddedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWiFiDirectServiceRemotePortAddedEventArgs { - type Vtable = IWiFiDirectServiceRemotePortAddedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWiFiDirectServiceRemotePortAddedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd4cebac1_3fd3_4f0e_b7bd_782906f44411); -} +::windows_core::imp::com_interface!(IWiFiDirectServiceRemotePortAddedEventArgs, IWiFiDirectServiceRemotePortAddedEventArgs_Vtbl, 0xd4cebac1_3fd3_4f0e_b7bd_782906f44411); #[repr(C)] #[doc(hidden)] pub struct IWiFiDirectServiceRemotePortAddedEventArgs_Vtbl { @@ -176,16 +122,7 @@ pub struct IWiFiDirectServiceRemotePortAddedEventArgs_Vtbl { EndpointPairs: usize, pub Protocol: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut WiFiDirectServiceIPProtocol) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWiFiDirectServiceSession(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWiFiDirectServiceSession { - type Vtable = IWiFiDirectServiceSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWiFiDirectServiceSession { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x81142163_e426_47cb_8640_e1b3588bf26f); -} +::windows_core::imp::com_interface!(IWiFiDirectServiceSession, IWiFiDirectServiceSession_Vtbl, 0x81142163_e426_47cb_8640_e1b3588bf26f); #[repr(C)] #[doc(hidden)] pub struct IWiFiDirectServiceSession_Vtbl { @@ -214,16 +151,7 @@ pub struct IWiFiDirectServiceSession_Vtbl { pub RemotePortAdded: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveRemotePortAdded: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWiFiDirectServiceSessionDeferredEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWiFiDirectServiceSessionDeferredEventArgs { - type Vtable = IWiFiDirectServiceSessionDeferredEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWiFiDirectServiceSessionDeferredEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8dfc197f_1201_4f1f_b6f4_5df1b7b9fb2e); -} +::windows_core::imp::com_interface!(IWiFiDirectServiceSessionDeferredEventArgs, IWiFiDirectServiceSessionDeferredEventArgs_Vtbl, 0x8dfc197f_1201_4f1f_b6f4_5df1b7b9fb2e); #[repr(C)] #[doc(hidden)] pub struct IWiFiDirectServiceSessionDeferredEventArgs_Vtbl { @@ -233,16 +161,7 @@ pub struct IWiFiDirectServiceSessionDeferredEventArgs_Vtbl { #[cfg(not(feature = "Storage_Streams"))] DeferredSessionInfo: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWiFiDirectServiceSessionRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWiFiDirectServiceSessionRequest { - type Vtable = IWiFiDirectServiceSessionRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWiFiDirectServiceSessionRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa0e27c8b_50cb_4a58_9bcf_e472b99fba04); -} +::windows_core::imp::com_interface!(IWiFiDirectServiceSessionRequest, IWiFiDirectServiceSessionRequest_Vtbl, 0xa0e27c8b_50cb_4a58_9bcf_e472b99fba04); #[repr(C)] #[doc(hidden)] pub struct IWiFiDirectServiceSessionRequest_Vtbl { @@ -257,32 +176,14 @@ pub struct IWiFiDirectServiceSessionRequest_Vtbl { #[cfg(not(feature = "Storage_Streams"))] SessionInfo: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWiFiDirectServiceSessionRequestedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWiFiDirectServiceSessionRequestedEventArgs { - type Vtable = IWiFiDirectServiceSessionRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWiFiDirectServiceSessionRequestedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x74bdcc11_53d6_4999_b4f8_6c8ecc1771e7); -} +::windows_core::imp::com_interface!(IWiFiDirectServiceSessionRequestedEventArgs, IWiFiDirectServiceSessionRequestedEventArgs_Vtbl, 0x74bdcc11_53d6_4999_b4f8_6c8ecc1771e7); #[repr(C)] #[doc(hidden)] pub struct IWiFiDirectServiceSessionRequestedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetSessionRequest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWiFiDirectServiceStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWiFiDirectServiceStatics { - type Vtable = IWiFiDirectServiceStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWiFiDirectServiceStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7db40045_fd74_4688_b725_5dce86acf233); -} +::windows_core::imp::com_interface!(IWiFiDirectServiceStatics, IWiFiDirectServiceStatics_Vtbl, 0x7db40045_fd74_4688_b725_5dce86acf233); #[repr(C)] #[doc(hidden)] pub struct IWiFiDirectServiceStatics_Vtbl { @@ -297,6 +198,7 @@ pub struct IWiFiDirectServiceStatics_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WiFiDirectService(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WiFiDirectService, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WiFiDirectService { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] @@ -340,10 +242,10 @@ impl WiFiDirectService { #[cfg(feature = "Storage_Streams")] pub fn SetSessionInfo(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetSessionInfo)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetSessionInfo)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn ServiceError(&self) -> ::windows_core::Result { let this = self; @@ -397,11 +299,11 @@ impl WiFiDirectService { #[cfg(feature = "Storage_Streams")] pub fn GetSelectorWithFilter(servicename: &::windows_core::HSTRING, serviceinfofilter: P0) -> ::windows_core::Result<::windows_core::HSTRING> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).GetSelectorWithFilter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(servicename), serviceinfofilter.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn FromIdAsync(deviceid: &::windows_core::HSTRING) -> ::windows_core::Result> { @@ -421,19 +323,17 @@ impl ::windows_core::RuntimeType for WiFiDirectService { } unsafe impl ::windows_core::Interface for WiFiDirectService { type Vtable = IWiFiDirectService_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WiFiDirectService { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WiFiDirectService { const NAME: &'static str = "Windows.Devices.WiFiDirect.Services.WiFiDirectService"; } -::windows_core::imp::interface_hierarchy!(WiFiDirectService, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for WiFiDirectService {} unsafe impl ::core::marker::Sync for WiFiDirectService {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WiFiDirectServiceAdvertiser(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WiFiDirectServiceAdvertiser, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WiFiDirectServiceAdvertiser { pub fn ServiceName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -464,10 +364,10 @@ impl WiFiDirectServiceAdvertiser { #[cfg(feature = "Storage_Streams")] pub fn SetServiceInfo(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetServiceInfo)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetServiceInfo)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn AutoAcceptSession(&self) -> ::windows_core::Result { let this = self; @@ -535,10 +435,10 @@ impl WiFiDirectServiceAdvertiser { #[cfg(feature = "Storage_Streams")] pub fn SetDeferredSessionInfo(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetDeferredSessionInfo)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetDeferredSessionInfo)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn AdvertisementStatus(&self) -> ::windows_core::Result { let this = self; @@ -645,19 +545,17 @@ impl ::windows_core::RuntimeType for WiFiDirectServiceAdvertiser { } unsafe impl ::windows_core::Interface for WiFiDirectServiceAdvertiser { type Vtable = IWiFiDirectServiceAdvertiser_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WiFiDirectServiceAdvertiser { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WiFiDirectServiceAdvertiser { const NAME: &'static str = "Windows.Devices.WiFiDirect.Services.WiFiDirectServiceAdvertiser"; } -::windows_core::imp::interface_hierarchy!(WiFiDirectServiceAdvertiser, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for WiFiDirectServiceAdvertiser {} unsafe impl ::core::marker::Sync for WiFiDirectServiceAdvertiser {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WiFiDirectServiceAutoAcceptSessionConnectedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WiFiDirectServiceAutoAcceptSessionConnectedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WiFiDirectServiceAutoAcceptSessionConnectedEventArgs { pub fn Session(&self) -> ::windows_core::Result { let this = self; @@ -681,19 +579,17 @@ impl ::windows_core::RuntimeType for WiFiDirectServiceAutoAcceptSessionConnected } unsafe impl ::windows_core::Interface for WiFiDirectServiceAutoAcceptSessionConnectedEventArgs { type Vtable = IWiFiDirectServiceAutoAcceptSessionConnectedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WiFiDirectServiceAutoAcceptSessionConnectedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WiFiDirectServiceAutoAcceptSessionConnectedEventArgs { const NAME: &'static str = "Windows.Devices.WiFiDirect.Services.WiFiDirectServiceAutoAcceptSessionConnectedEventArgs"; } -::windows_core::imp::interface_hierarchy!(WiFiDirectServiceAutoAcceptSessionConnectedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for WiFiDirectServiceAutoAcceptSessionConnectedEventArgs {} unsafe impl ::core::marker::Sync for WiFiDirectServiceAutoAcceptSessionConnectedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WiFiDirectServiceProvisioningInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WiFiDirectServiceProvisioningInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WiFiDirectServiceProvisioningInfo { pub fn SelectedConfigurationMethod(&self) -> ::windows_core::Result { let this = self; @@ -715,19 +611,17 @@ impl ::windows_core::RuntimeType for WiFiDirectServiceProvisioningInfo { } unsafe impl ::windows_core::Interface for WiFiDirectServiceProvisioningInfo { type Vtable = IWiFiDirectServiceProvisioningInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WiFiDirectServiceProvisioningInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WiFiDirectServiceProvisioningInfo { const NAME: &'static str = "Windows.Devices.WiFiDirect.Services.WiFiDirectServiceProvisioningInfo"; } -::windows_core::imp::interface_hierarchy!(WiFiDirectServiceProvisioningInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for WiFiDirectServiceProvisioningInfo {} unsafe impl ::core::marker::Sync for WiFiDirectServiceProvisioningInfo {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WiFiDirectServiceRemotePortAddedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WiFiDirectServiceRemotePortAddedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WiFiDirectServiceRemotePortAddedEventArgs { #[doc = "Required features: `\"Foundation_Collections\"`, `\"Networking\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Networking"))] @@ -751,22 +645,21 @@ impl ::windows_core::RuntimeType for WiFiDirectServiceRemotePortAddedEventArgs { } unsafe impl ::windows_core::Interface for WiFiDirectServiceRemotePortAddedEventArgs { type Vtable = IWiFiDirectServiceRemotePortAddedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WiFiDirectServiceRemotePortAddedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WiFiDirectServiceRemotePortAddedEventArgs { const NAME: &'static str = "Windows.Devices.WiFiDirect.Services.WiFiDirectServiceRemotePortAddedEventArgs"; } -::windows_core::imp::interface_hierarchy!(WiFiDirectServiceRemotePortAddedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for WiFiDirectServiceRemotePortAddedEventArgs {} unsafe impl ::core::marker::Sync for WiFiDirectServiceRemotePortAddedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WiFiDirectServiceSession(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WiFiDirectServiceSession, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(WiFiDirectServiceSession, super::super::super::Foundation::IClosable); impl WiFiDirectServiceSession { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn ServiceName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { @@ -885,20 +778,17 @@ impl ::windows_core::RuntimeType for WiFiDirectServiceSession { } unsafe impl ::windows_core::Interface for WiFiDirectServiceSession { type Vtable = IWiFiDirectServiceSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WiFiDirectServiceSession { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WiFiDirectServiceSession { const NAME: &'static str = "Windows.Devices.WiFiDirect.Services.WiFiDirectServiceSession"; } -::windows_core::imp::interface_hierarchy!(WiFiDirectServiceSession, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for WiFiDirectServiceSession {} unsafe impl ::core::marker::Send for WiFiDirectServiceSession {} unsafe impl ::core::marker::Sync for WiFiDirectServiceSession {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WiFiDirectServiceSessionDeferredEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WiFiDirectServiceSessionDeferredEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WiFiDirectServiceSessionDeferredEventArgs { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] @@ -915,22 +805,21 @@ impl ::windows_core::RuntimeType for WiFiDirectServiceSessionDeferredEventArgs { } unsafe impl ::windows_core::Interface for WiFiDirectServiceSessionDeferredEventArgs { type Vtable = IWiFiDirectServiceSessionDeferredEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WiFiDirectServiceSessionDeferredEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WiFiDirectServiceSessionDeferredEventArgs { const NAME: &'static str = "Windows.Devices.WiFiDirect.Services.WiFiDirectServiceSessionDeferredEventArgs"; } -::windows_core::imp::interface_hierarchy!(WiFiDirectServiceSessionDeferredEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for WiFiDirectServiceSessionDeferredEventArgs {} unsafe impl ::core::marker::Sync for WiFiDirectServiceSessionDeferredEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WiFiDirectServiceSessionRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WiFiDirectServiceSessionRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(WiFiDirectServiceSessionRequest, super::super::super::Foundation::IClosable); impl WiFiDirectServiceSessionRequest { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Devices_Enumeration\"`"] @@ -964,20 +853,17 @@ impl ::windows_core::RuntimeType for WiFiDirectServiceSessionRequest { } unsafe impl ::windows_core::Interface for WiFiDirectServiceSessionRequest { type Vtable = IWiFiDirectServiceSessionRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WiFiDirectServiceSessionRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WiFiDirectServiceSessionRequest { const NAME: &'static str = "Windows.Devices.WiFiDirect.Services.WiFiDirectServiceSessionRequest"; } -::windows_core::imp::interface_hierarchy!(WiFiDirectServiceSessionRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for WiFiDirectServiceSessionRequest {} unsafe impl ::core::marker::Send for WiFiDirectServiceSessionRequest {} unsafe impl ::core::marker::Sync for WiFiDirectServiceSessionRequest {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WiFiDirectServiceSessionRequestedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WiFiDirectServiceSessionRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WiFiDirectServiceSessionRequestedEventArgs { pub fn GetSessionRequest(&self) -> ::windows_core::Result { let this = self; @@ -992,14 +878,11 @@ impl ::windows_core::RuntimeType for WiFiDirectServiceSessionRequestedEventArgs } unsafe impl ::windows_core::Interface for WiFiDirectServiceSessionRequestedEventArgs { type Vtable = IWiFiDirectServiceSessionRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WiFiDirectServiceSessionRequestedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WiFiDirectServiceSessionRequestedEventArgs { const NAME: &'static str = "Windows.Devices.WiFiDirect.Services.WiFiDirectServiceSessionRequestedEventArgs"; } -::windows_core::imp::interface_hierarchy!(WiFiDirectServiceSessionRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for WiFiDirectServiceSessionRequestedEventArgs {} unsafe impl ::core::marker::Sync for WiFiDirectServiceSessionRequestedEventArgs {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Devices/WiFiDirect/mod.rs b/crates/libs/windows/src/Windows/Devices/WiFiDirect/mod.rs index 4c578ed9d5..d168c630b2 100644 --- a/crates/libs/windows/src/Windows/Devices/WiFiDirect/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/WiFiDirect/mod.rs @@ -1,16 +1,7 @@ #[cfg(feature = "Devices_WiFiDirect_Services")] #[doc = "Required features: `\"Devices_WiFiDirect_Services\"`"] pub mod Services; -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWiFiDirectAdvertisement(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWiFiDirectAdvertisement { - type Vtable = IWiFiDirectAdvertisement_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWiFiDirectAdvertisement { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xab511a2d_2a06_49a1_a584_61435c7905a6); -} +::windows_core::imp::com_interface!(IWiFiDirectAdvertisement, IWiFiDirectAdvertisement_Vtbl, 0xab511a2d_2a06_49a1_a584_61435c7905a6); #[repr(C)] #[doc(hidden)] pub struct IWiFiDirectAdvertisement_Vtbl { @@ -29,16 +20,7 @@ pub struct IWiFiDirectAdvertisement_Vtbl { pub SetIsAutonomousGroupOwnerEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, pub LegacySettings: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWiFiDirectAdvertisement2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWiFiDirectAdvertisement2 { - type Vtable = IWiFiDirectAdvertisement2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWiFiDirectAdvertisement2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb759aa46_d816_491b_917a_b40d7dc403a2); -} +::windows_core::imp::com_interface!(IWiFiDirectAdvertisement2, IWiFiDirectAdvertisement2_Vtbl, 0xb759aa46_d816_491b_917a_b40d7dc403a2); #[repr(C)] #[doc(hidden)] pub struct IWiFiDirectAdvertisement2_Vtbl { @@ -48,16 +30,7 @@ pub struct IWiFiDirectAdvertisement2_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] SupportedConfigurationMethods: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWiFiDirectAdvertisementPublisher(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWiFiDirectAdvertisementPublisher { - type Vtable = IWiFiDirectAdvertisementPublisher_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWiFiDirectAdvertisementPublisher { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb35a2d1a_9b1f_45d9_925a_694d66df68ef); -} +::windows_core::imp::com_interface!(IWiFiDirectAdvertisementPublisher, IWiFiDirectAdvertisementPublisher_Vtbl, 0xb35a2d1a_9b1f_45d9_925a_694d66df68ef); #[repr(C)] #[doc(hidden)] pub struct IWiFiDirectAdvertisementPublisher_Vtbl { @@ -69,16 +42,7 @@ pub struct IWiFiDirectAdvertisementPublisher_Vtbl { pub Start: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Stop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWiFiDirectAdvertisementPublisherStatusChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWiFiDirectAdvertisementPublisherStatusChangedEventArgs { - type Vtable = IWiFiDirectAdvertisementPublisherStatusChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWiFiDirectAdvertisementPublisherStatusChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaafde53c_5481_46e6_90dd_32116518f192); -} +::windows_core::imp::com_interface!(IWiFiDirectAdvertisementPublisherStatusChangedEventArgs, IWiFiDirectAdvertisementPublisherStatusChangedEventArgs_Vtbl, 0xaafde53c_5481_46e6_90dd_32116518f192); #[repr(C)] #[doc(hidden)] pub struct IWiFiDirectAdvertisementPublisherStatusChangedEventArgs_Vtbl { @@ -86,16 +50,7 @@ pub struct IWiFiDirectAdvertisementPublisherStatusChangedEventArgs_Vtbl { pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut WiFiDirectAdvertisementPublisherStatus) -> ::windows_core::HRESULT, pub Error: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut WiFiDirectError) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWiFiDirectConnectionListener(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWiFiDirectConnectionListener { - type Vtable = IWiFiDirectConnectionListener_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWiFiDirectConnectionListener { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x699c1b0d_8d13_4ee9_b9ec_9c72f8251f7d); -} +::windows_core::imp::com_interface!(IWiFiDirectConnectionListener, IWiFiDirectConnectionListener_Vtbl, 0x699c1b0d_8d13_4ee9_b9ec_9c72f8251f7d); #[repr(C)] #[doc(hidden)] pub struct IWiFiDirectConnectionListener_Vtbl { @@ -103,16 +58,7 @@ pub struct IWiFiDirectConnectionListener_Vtbl { pub ConnectionRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveConnectionRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWiFiDirectConnectionParameters(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWiFiDirectConnectionParameters { - type Vtable = IWiFiDirectConnectionParameters_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWiFiDirectConnectionParameters { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb2e55405_5702_4b16_a02c_bbcd21ef6098); -} +::windows_core::imp::com_interface!(IWiFiDirectConnectionParameters, IWiFiDirectConnectionParameters_Vtbl, 0xb2e55405_5702_4b16_a02c_bbcd21ef6098); #[repr(C)] #[doc(hidden)] pub struct IWiFiDirectConnectionParameters_Vtbl { @@ -120,16 +66,7 @@ pub struct IWiFiDirectConnectionParameters_Vtbl { pub GroupOwnerIntent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i16) -> ::windows_core::HRESULT, pub SetGroupOwnerIntent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i16) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWiFiDirectConnectionParameters2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWiFiDirectConnectionParameters2 { - type Vtable = IWiFiDirectConnectionParameters2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWiFiDirectConnectionParameters2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xab3b0fbe_aa82_44b4_88c8_e3056b89801d); -} +::windows_core::imp::com_interface!(IWiFiDirectConnectionParameters2, IWiFiDirectConnectionParameters2_Vtbl, 0xab3b0fbe_aa82_44b4_88c8_e3056b89801d); #[repr(C)] #[doc(hidden)] pub struct IWiFiDirectConnectionParameters2_Vtbl { @@ -141,16 +78,7 @@ pub struct IWiFiDirectConnectionParameters2_Vtbl { pub PreferredPairingProcedure: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut WiFiDirectPairingProcedure) -> ::windows_core::HRESULT, pub SetPreferredPairingProcedure: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: WiFiDirectPairingProcedure) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWiFiDirectConnectionParametersStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWiFiDirectConnectionParametersStatics { - type Vtable = IWiFiDirectConnectionParametersStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWiFiDirectConnectionParametersStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x598af493_7642_456f_b9d8_e8a9eb1f401a); -} +::windows_core::imp::com_interface!(IWiFiDirectConnectionParametersStatics, IWiFiDirectConnectionParametersStatics_Vtbl, 0x598af493_7642_456f_b9d8_e8a9eb1f401a); #[repr(C)] #[doc(hidden)] pub struct IWiFiDirectConnectionParametersStatics_Vtbl { @@ -160,16 +88,7 @@ pub struct IWiFiDirectConnectionParametersStatics_Vtbl { #[cfg(not(feature = "Devices_Enumeration"))] GetDevicePairingKinds: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWiFiDirectConnectionRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWiFiDirectConnectionRequest { - type Vtable = IWiFiDirectConnectionRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWiFiDirectConnectionRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8eb99605_914f_49c3_a614_d18dc5b19b43); -} +::windows_core::imp::com_interface!(IWiFiDirectConnectionRequest, IWiFiDirectConnectionRequest_Vtbl, 0x8eb99605_914f_49c3_a614_d18dc5b19b43); #[repr(C)] #[doc(hidden)] pub struct IWiFiDirectConnectionRequest_Vtbl { @@ -179,32 +98,14 @@ pub struct IWiFiDirectConnectionRequest_Vtbl { #[cfg(not(feature = "Devices_Enumeration"))] DeviceInformation: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWiFiDirectConnectionRequestedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWiFiDirectConnectionRequestedEventArgs { - type Vtable = IWiFiDirectConnectionRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWiFiDirectConnectionRequestedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf99d20be_d38d_484f_8215_e7b65abf244c); -} +::windows_core::imp::com_interface!(IWiFiDirectConnectionRequestedEventArgs, IWiFiDirectConnectionRequestedEventArgs_Vtbl, 0xf99d20be_d38d_484f_8215_e7b65abf244c); #[repr(C)] #[doc(hidden)] pub struct IWiFiDirectConnectionRequestedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetConnectionRequest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWiFiDirectDevice(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWiFiDirectDevice { - type Vtable = IWiFiDirectDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWiFiDirectDevice { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x72deaaa8_72eb_4dae_8a28_8513355d2777); -} +::windows_core::imp::com_interface!(IWiFiDirectDevice, IWiFiDirectDevice_Vtbl, 0x72deaaa8_72eb_4dae_8a28_8513355d2777); #[repr(C)] #[doc(hidden)] pub struct IWiFiDirectDevice_Vtbl { @@ -218,16 +119,7 @@ pub struct IWiFiDirectDevice_Vtbl { #[cfg(not(all(feature = "Foundation_Collections", feature = "Networking")))] GetConnectionEndpointPairs: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWiFiDirectDeviceStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWiFiDirectDeviceStatics { - type Vtable = IWiFiDirectDeviceStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWiFiDirectDeviceStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe86cb57c_3aac_4851_a792_482aaf931b04); -} +::windows_core::imp::com_interface!(IWiFiDirectDeviceStatics, IWiFiDirectDeviceStatics_Vtbl, 0xe86cb57c_3aac_4851_a792_482aaf931b04); #[repr(C)] #[doc(hidden)] pub struct IWiFiDirectDeviceStatics_Vtbl { @@ -235,16 +127,7 @@ pub struct IWiFiDirectDeviceStatics_Vtbl { pub GetDeviceSelector: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub FromIdAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, deviceid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWiFiDirectDeviceStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWiFiDirectDeviceStatics2 { - type Vtable = IWiFiDirectDeviceStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWiFiDirectDeviceStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1a953e49_b103_437e_9226_ab67971342f9); -} +::windows_core::imp::com_interface!(IWiFiDirectDeviceStatics2, IWiFiDirectDeviceStatics2_Vtbl, 0x1a953e49_b103_437e_9226_ab67971342f9); #[repr(C)] #[doc(hidden)] pub struct IWiFiDirectDeviceStatics2_Vtbl { @@ -252,16 +135,7 @@ pub struct IWiFiDirectDeviceStatics2_Vtbl { pub GetDeviceSelector: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: WiFiDirectDeviceSelectorType, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub FromIdAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, deviceid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, connectionparameters: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWiFiDirectInformationElement(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWiFiDirectInformationElement { - type Vtable = IWiFiDirectInformationElement_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWiFiDirectInformationElement { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaffb72d6_76bb_497e_ac8b_dc72838bc309); -} +::windows_core::imp::com_interface!(IWiFiDirectInformationElement, IWiFiDirectInformationElement_Vtbl, 0xaffb72d6_76bb_497e_ac8b_dc72838bc309); #[repr(C)] #[doc(hidden)] pub struct IWiFiDirectInformationElement_Vtbl { @@ -285,16 +159,7 @@ pub struct IWiFiDirectInformationElement_Vtbl { #[cfg(not(feature = "Storage_Streams"))] SetValue: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWiFiDirectInformationElementStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWiFiDirectInformationElementStatics { - type Vtable = IWiFiDirectInformationElementStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWiFiDirectInformationElementStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdbd02f16_11a5_4e60_8caa_34772148378a); -} +::windows_core::imp::com_interface!(IWiFiDirectInformationElementStatics, IWiFiDirectInformationElementStatics_Vtbl, 0xdbd02f16_11a5_4e60_8caa_34772148378a); #[repr(C)] #[doc(hidden)] pub struct IWiFiDirectInformationElementStatics_Vtbl { @@ -308,16 +173,7 @@ pub struct IWiFiDirectInformationElementStatics_Vtbl { #[cfg(not(all(feature = "Devices_Enumeration", feature = "Foundation_Collections")))] CreateFromDeviceInformation: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWiFiDirectLegacySettings(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWiFiDirectLegacySettings { - type Vtable = IWiFiDirectLegacySettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWiFiDirectLegacySettings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa64fdbba_f2fd_4567_a91b_f5c2f5321057); -} +::windows_core::imp::com_interface!(IWiFiDirectLegacySettings, IWiFiDirectLegacySettings_Vtbl, 0xa64fdbba_f2fd_4567_a91b_f5c2f5321057); #[repr(C)] #[doc(hidden)] pub struct IWiFiDirectLegacySettings_Vtbl { @@ -338,6 +194,7 @@ pub struct IWiFiDirectLegacySettings_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WiFiDirectAdvertisement(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WiFiDirectAdvertisement, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WiFiDirectAdvertisement { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -352,10 +209,10 @@ impl WiFiDirectAdvertisement { #[cfg(feature = "Foundation_Collections")] pub fn SetInformationElements(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetInformationElements)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetInformationElements)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn ListenStateDiscoverability(&self) -> ::windows_core::Result { let this = self; @@ -389,7 +246,7 @@ impl WiFiDirectAdvertisement { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn SupportedConfigurationMethods(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SupportedConfigurationMethods)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -401,19 +258,17 @@ impl ::windows_core::RuntimeType for WiFiDirectAdvertisement { } unsafe impl ::windows_core::Interface for WiFiDirectAdvertisement { type Vtable = IWiFiDirectAdvertisement_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WiFiDirectAdvertisement { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WiFiDirectAdvertisement { const NAME: &'static str = "Windows.Devices.WiFiDirect.WiFiDirectAdvertisement"; } -::windows_core::imp::interface_hierarchy!(WiFiDirectAdvertisement, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for WiFiDirectAdvertisement {} unsafe impl ::core::marker::Sync for WiFiDirectAdvertisement {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WiFiDirectAdvertisementPublisher(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WiFiDirectAdvertisementPublisher, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WiFiDirectAdvertisementPublisher { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -464,19 +319,17 @@ impl ::windows_core::RuntimeType for WiFiDirectAdvertisementPublisher { } unsafe impl ::windows_core::Interface for WiFiDirectAdvertisementPublisher { type Vtable = IWiFiDirectAdvertisementPublisher_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WiFiDirectAdvertisementPublisher { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WiFiDirectAdvertisementPublisher { const NAME: &'static str = "Windows.Devices.WiFiDirect.WiFiDirectAdvertisementPublisher"; } -::windows_core::imp::interface_hierarchy!(WiFiDirectAdvertisementPublisher, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for WiFiDirectAdvertisementPublisher {} unsafe impl ::core::marker::Sync for WiFiDirectAdvertisementPublisher {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WiFiDirectAdvertisementPublisherStatusChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WiFiDirectAdvertisementPublisherStatusChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WiFiDirectAdvertisementPublisherStatusChangedEventArgs { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -498,19 +351,17 @@ impl ::windows_core::RuntimeType for WiFiDirectAdvertisementPublisherStatusChang } unsafe impl ::windows_core::Interface for WiFiDirectAdvertisementPublisherStatusChangedEventArgs { type Vtable = IWiFiDirectAdvertisementPublisherStatusChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WiFiDirectAdvertisementPublisherStatusChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WiFiDirectAdvertisementPublisherStatusChangedEventArgs { const NAME: &'static str = "Windows.Devices.WiFiDirect.WiFiDirectAdvertisementPublisherStatusChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(WiFiDirectAdvertisementPublisherStatusChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for WiFiDirectAdvertisementPublisherStatusChangedEventArgs {} unsafe impl ::core::marker::Sync for WiFiDirectAdvertisementPublisherStatusChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WiFiDirectConnectionListener(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WiFiDirectConnectionListener, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WiFiDirectConnectionListener { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -539,19 +390,19 @@ impl ::windows_core::RuntimeType for WiFiDirectConnectionListener { } unsafe impl ::windows_core::Interface for WiFiDirectConnectionListener { type Vtable = IWiFiDirectConnectionListener_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WiFiDirectConnectionListener { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WiFiDirectConnectionListener { const NAME: &'static str = "Windows.Devices.WiFiDirect.WiFiDirectConnectionListener"; } -::windows_core::imp::interface_hierarchy!(WiFiDirectConnectionListener, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for WiFiDirectConnectionListener {} unsafe impl ::core::marker::Sync for WiFiDirectConnectionListener {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WiFiDirectConnectionParameters(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WiFiDirectConnectionParameters, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Devices_Enumeration")] +::windows_core::imp::required_hierarchy!(WiFiDirectConnectionParameters, super::Enumeration::IDevicePairingSettings); impl WiFiDirectConnectionParameters { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -574,21 +425,21 @@ impl WiFiDirectConnectionParameters { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn PreferenceOrderedConfigurationMethods(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreferenceOrderedConfigurationMethods)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PreferredPairingProcedure(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreferredPairingProcedure)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetPreferredPairingProcedure(&self, value: WiFiDirectPairingProcedure) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetPreferredPairingProcedure)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Devices_Enumeration\"`"] @@ -610,24 +461,21 @@ impl ::windows_core::RuntimeType for WiFiDirectConnectionParameters { } unsafe impl ::windows_core::Interface for WiFiDirectConnectionParameters { type Vtable = IWiFiDirectConnectionParameters_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WiFiDirectConnectionParameters { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WiFiDirectConnectionParameters { const NAME: &'static str = "Windows.Devices.WiFiDirect.WiFiDirectConnectionParameters"; } -::windows_core::imp::interface_hierarchy!(WiFiDirectConnectionParameters, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Devices_Enumeration")] -impl ::windows_core::CanTryInto for WiFiDirectConnectionParameters {} unsafe impl ::core::marker::Send for WiFiDirectConnectionParameters {} unsafe impl ::core::marker::Sync for WiFiDirectConnectionParameters {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WiFiDirectConnectionRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WiFiDirectConnectionRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(WiFiDirectConnectionRequest, super::super::Foundation::IClosable); impl WiFiDirectConnectionRequest { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Devices_Enumeration\"`"] @@ -645,20 +493,17 @@ impl ::windows_core::RuntimeType for WiFiDirectConnectionRequest { } unsafe impl ::windows_core::Interface for WiFiDirectConnectionRequest { type Vtable = IWiFiDirectConnectionRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WiFiDirectConnectionRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WiFiDirectConnectionRequest { const NAME: &'static str = "Windows.Devices.WiFiDirect.WiFiDirectConnectionRequest"; } -::windows_core::imp::interface_hierarchy!(WiFiDirectConnectionRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for WiFiDirectConnectionRequest {} unsafe impl ::core::marker::Send for WiFiDirectConnectionRequest {} unsafe impl ::core::marker::Sync for WiFiDirectConnectionRequest {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WiFiDirectConnectionRequestedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WiFiDirectConnectionRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WiFiDirectConnectionRequestedEventArgs { pub fn GetConnectionRequest(&self) -> ::windows_core::Result { let this = self; @@ -673,22 +518,21 @@ impl ::windows_core::RuntimeType for WiFiDirectConnectionRequestedEventArgs { } unsafe impl ::windows_core::Interface for WiFiDirectConnectionRequestedEventArgs { type Vtable = IWiFiDirectConnectionRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WiFiDirectConnectionRequestedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WiFiDirectConnectionRequestedEventArgs { const NAME: &'static str = "Windows.Devices.WiFiDirect.WiFiDirectConnectionRequestedEventArgs"; } -::windows_core::imp::interface_hierarchy!(WiFiDirectConnectionRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for WiFiDirectConnectionRequestedEventArgs {} unsafe impl ::core::marker::Sync for WiFiDirectConnectionRequestedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WiFiDirectDevice(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WiFiDirectDevice, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(WiFiDirectDevice, super::super::Foundation::IClosable); impl WiFiDirectDevice { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn ConnectionStatus(&self) -> ::windows_core::Result { @@ -771,20 +615,17 @@ impl ::windows_core::RuntimeType for WiFiDirectDevice { } unsafe impl ::windows_core::Interface for WiFiDirectDevice { type Vtable = IWiFiDirectDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WiFiDirectDevice { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WiFiDirectDevice { const NAME: &'static str = "Windows.Devices.WiFiDirect.WiFiDirectDevice"; } -::windows_core::imp::interface_hierarchy!(WiFiDirectDevice, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for WiFiDirectDevice {} unsafe impl ::core::marker::Send for WiFiDirectDevice {} unsafe impl ::core::marker::Sync for WiFiDirectDevice {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WiFiDirectInformationElement(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WiFiDirectInformationElement, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WiFiDirectInformationElement { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -806,10 +647,10 @@ impl WiFiDirectInformationElement { #[cfg(feature = "Storage_Streams")] pub fn SetOui(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetOui)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetOui)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn OuiType(&self) -> ::windows_core::Result { let this = self; @@ -835,20 +676,20 @@ impl WiFiDirectInformationElement { #[cfg(feature = "Storage_Streams")] pub fn SetValue(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetValue)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetValue)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Storage_Streams\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] pub fn CreateFromBuffer(buffer: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IWiFiDirectInformationElementStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateFromBuffer)(::windows_core::Interface::as_raw(this), buffer.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateFromBuffer)(::windows_core::Interface::as_raw(this), buffer.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Devices_Enumeration\"`, `\"Foundation_Collections\"`"] @@ -873,19 +714,17 @@ impl ::windows_core::RuntimeType for WiFiDirectInformationElement { } unsafe impl ::windows_core::Interface for WiFiDirectInformationElement { type Vtable = IWiFiDirectInformationElement_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WiFiDirectInformationElement { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WiFiDirectInformationElement { const NAME: &'static str = "Windows.Devices.WiFiDirect.WiFiDirectInformationElement"; } -::windows_core::imp::interface_hierarchy!(WiFiDirectInformationElement, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for WiFiDirectInformationElement {} unsafe impl ::core::marker::Sync for WiFiDirectInformationElement {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WiFiDirectLegacySettings(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WiFiDirectLegacySettings, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WiFiDirectLegacySettings { pub fn IsEnabled(&self) -> ::windows_core::Result { let this = self; @@ -933,14 +772,11 @@ impl ::windows_core::RuntimeType for WiFiDirectLegacySettings { } unsafe impl ::windows_core::Interface for WiFiDirectLegacySettings { type Vtable = IWiFiDirectLegacySettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WiFiDirectLegacySettings { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WiFiDirectLegacySettings { const NAME: &'static str = "Windows.Devices.WiFiDirect.WiFiDirectLegacySettings"; } -::windows_core::imp::interface_hierarchy!(WiFiDirectLegacySettings, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for WiFiDirectLegacySettings {} unsafe impl ::core::marker::Sync for WiFiDirectLegacySettings {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Devices/impl.rs b/crates/libs/windows/src/Windows/Devices/impl.rs index dca7b691d7..7bb78004df 100644 --- a/crates/libs/windows/src/Windows/Devices/impl.rs +++ b/crates/libs/windows/src/Windows/Devices/impl.rs @@ -84,6 +84,6 @@ impl ILowLevelDevicesAggregateProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/Devices/mod.rs b/crates/libs/windows/src/Windows/Devices/mod.rs index 0ae7bc4fd5..69d13e78b8 100644 --- a/crates/libs/windows/src/Windows/Devices/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/mod.rs @@ -85,9 +85,8 @@ pub mod WiFi; #[cfg(feature = "Devices_WiFiDirect")] #[doc = "Required features: `\"Devices_WiFiDirect\"`"] pub mod WiFiDirect; -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILowLevelDevicesAggregateProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ILowLevelDevicesAggregateProvider, ILowLevelDevicesAggregateProvider_Vtbl, 0xa73e561c_aac1_4ec7_a852_479f7060d01f); +::windows_core::imp::interface_hierarchy!(ILowLevelDevicesAggregateProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ILowLevelDevicesAggregateProvider { #[doc = "Required features: `\"Devices_Adc_Provider\"`"] #[cfg(feature = "Devices_Adc_Provider")] @@ -135,16 +134,9 @@ impl ILowLevelDevicesAggregateProvider { } } } -::windows_core::imp::interface_hierarchy!(ILowLevelDevicesAggregateProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for ILowLevelDevicesAggregateProvider { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for ILowLevelDevicesAggregateProvider { - type Vtable = ILowLevelDevicesAggregateProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILowLevelDevicesAggregateProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa73e561c_aac1_4ec7_a852_479f7060d01f); -} #[repr(C)] #[doc(hidden)] pub struct ILowLevelDevicesAggregateProvider_Vtbl { @@ -170,16 +162,7 @@ pub struct ILowLevelDevicesAggregateProvider_Vtbl { #[cfg(not(feature = "Devices_Spi_Provider"))] SpiControllerProvider: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILowLevelDevicesAggregateProviderFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILowLevelDevicesAggregateProviderFactory { - type Vtable = ILowLevelDevicesAggregateProviderFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILowLevelDevicesAggregateProviderFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9ac4aaf6_3473_465e_96d5_36281a2c57af); -} +::windows_core::imp::com_interface!(ILowLevelDevicesAggregateProviderFactory, ILowLevelDevicesAggregateProviderFactory_Vtbl, 0x9ac4aaf6_3473_465e_96d5_36281a2c57af); #[repr(C)] #[doc(hidden)] pub struct ILowLevelDevicesAggregateProviderFactory_Vtbl { @@ -189,31 +172,13 @@ pub struct ILowLevelDevicesAggregateProviderFactory_Vtbl { #[cfg(not(all(feature = "Devices_Adc_Provider", feature = "Devices_Gpio_Provider", feature = "Devices_I2c_Provider", feature = "Devices_Pwm_Provider", feature = "Devices_Spi_Provider")))] Create: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILowLevelDevicesController(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILowLevelDevicesController { - type Vtable = ILowLevelDevicesController_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILowLevelDevicesController { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2ec23dd4_179b_45de_9b39_3ae02527de52); -} +::windows_core::imp::com_interface!(ILowLevelDevicesController, ILowLevelDevicesController_Vtbl, 0x2ec23dd4_179b_45de_9b39_3ae02527de52); #[repr(C)] #[doc(hidden)] pub struct ILowLevelDevicesController_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILowLevelDevicesControllerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILowLevelDevicesControllerStatics { - type Vtable = ILowLevelDevicesControllerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILowLevelDevicesControllerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x093e926a_fccb_4394_a697_19de637c2db3); -} +::windows_core::imp::com_interface!(ILowLevelDevicesControllerStatics, ILowLevelDevicesControllerStatics_Vtbl, 0x093e926a_fccb_4394_a697_19de637c2db3); #[repr(C)] #[doc(hidden)] pub struct ILowLevelDevicesControllerStatics_Vtbl { @@ -224,6 +189,8 @@ pub struct ILowLevelDevicesControllerStatics_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LowLevelDevicesAggregateProvider(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LowLevelDevicesAggregateProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(LowLevelDevicesAggregateProvider, ILowLevelDevicesAggregateProvider); impl LowLevelDevicesAggregateProvider { #[doc = "Required features: `\"Devices_Adc_Provider\"`"] #[cfg(feature = "Devices_Adc_Provider")] @@ -274,15 +241,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::TryIntoParam, - P1: ::windows_core::TryIntoParam, - P2: ::windows_core::TryIntoParam, - P3: ::windows_core::TryIntoParam, - P4: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, + P2: ::windows_core::IntoParam, + P3: ::windows_core::IntoParam, + P4: ::windows_core::IntoParam, { Self::ILowLevelDevicesAggregateProviderFactory(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).Create)(::windows_core::Interface::as_raw(this), adc.try_into_param()?.abi(), pwm.try_into_param()?.abi(), gpio.try_into_param()?.abi(), i2c.try_into_param()?.abi(), spi.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } #[doc(hidden)] @@ -296,20 +263,17 @@ impl ::windows_core::RuntimeType for LowLevelDevicesAggregateProvider { } unsafe impl ::windows_core::Interface for LowLevelDevicesAggregateProvider { type Vtable = ILowLevelDevicesAggregateProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LowLevelDevicesAggregateProvider { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LowLevelDevicesAggregateProvider { const NAME: &'static str = "Windows.Devices.LowLevelDevicesAggregateProvider"; } -::windows_core::imp::interface_hierarchy!(LowLevelDevicesAggregateProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for LowLevelDevicesAggregateProvider {} unsafe impl ::core::marker::Send for LowLevelDevicesAggregateProvider {} unsafe impl ::core::marker::Sync for LowLevelDevicesAggregateProvider {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LowLevelDevicesController(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LowLevelDevicesController, ::windows_core::IUnknown, ::windows_core::IInspectable); impl LowLevelDevicesController { pub fn DefaultProvider() -> ::windows_core::Result { Self::ILowLevelDevicesControllerStatics(|this| unsafe { @@ -319,9 +283,9 @@ impl LowLevelDevicesController { } pub fn SetDefaultProvider(value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - Self::ILowLevelDevicesControllerStatics(|this| unsafe { (::windows_core::Interface::vtable(this).SetDefaultProvider)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() }) + Self::ILowLevelDevicesControllerStatics(|this| unsafe { (::windows_core::Interface::vtable(this).SetDefaultProvider)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() }) } #[doc(hidden)] pub fn ILowLevelDevicesControllerStatics ::windows_core::Result>(callback: F) -> ::windows_core::Result { @@ -334,14 +298,11 @@ impl ::windows_core::RuntimeType for LowLevelDevicesController { } unsafe impl ::windows_core::Interface for LowLevelDevicesController { type Vtable = ILowLevelDevicesController_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LowLevelDevicesController { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LowLevelDevicesController { const NAME: &'static str = "Windows.Devices.LowLevelDevicesController"; } -::windows_core::imp::interface_hierarchy!(LowLevelDevicesController, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for LowLevelDevicesController {} unsafe impl ::core::marker::Sync for LowLevelDevicesController {} #[cfg(feature = "implement")] diff --git a/crates/libs/windows/src/Windows/Embedded/DeviceLockdown/mod.rs b/crates/libs/windows/src/Windows/Embedded/DeviceLockdown/mod.rs index 191ab6efda..5bb8afb411 100644 --- a/crates/libs/windows/src/Windows/Embedded/DeviceLockdown/mod.rs +++ b/crates/libs/windows/src/Windows/Embedded/DeviceLockdown/mod.rs @@ -1,29 +1,11 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDeviceLockdownProfileInformation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDeviceLockdownProfileInformation { - type Vtable = IDeviceLockdownProfileInformation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDeviceLockdownProfileInformation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7980e14e_45b1_4a96_92fc_62756b739678); -} +::windows_core::imp::com_interface!(IDeviceLockdownProfileInformation, IDeviceLockdownProfileInformation_Vtbl, 0x7980e14e_45b1_4a96_92fc_62756b739678); #[repr(C)] #[doc(hidden)] pub struct IDeviceLockdownProfileInformation_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDeviceLockdownProfileStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDeviceLockdownProfileStatics { - type Vtable = IDeviceLockdownProfileStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDeviceLockdownProfileStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x622f6965_f9a8_41a1_a691_88cd80c7a069); -} +::windows_core::imp::com_interface!(IDeviceLockdownProfileStatics, IDeviceLockdownProfileStatics_Vtbl, 0x622f6965_f9a8_41a1_a691_88cd80c7a069); #[repr(C)] #[doc(hidden)] pub struct IDeviceLockdownProfileStatics_Vtbl { @@ -76,6 +58,7 @@ impl ::windows_core::RuntimeName for DeviceLockdownProfile { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DeviceLockdownProfileInformation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DeviceLockdownProfileInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DeviceLockdownProfileInformation { pub fn Name(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -90,13 +73,10 @@ impl ::windows_core::RuntimeType for DeviceLockdownProfileInformation { } unsafe impl ::windows_core::Interface for DeviceLockdownProfileInformation { type Vtable = IDeviceLockdownProfileInformation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DeviceLockdownProfileInformation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DeviceLockdownProfileInformation { const NAME: &'static str = "Windows.Embedded.DeviceLockdown.DeviceLockdownProfileInformation"; } -::windows_core::imp::interface_hierarchy!(DeviceLockdownProfileInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DeviceLockdownProfileInformation {} unsafe impl ::core::marker::Sync for DeviceLockdownProfileInformation {} diff --git a/crates/libs/windows/src/Windows/Foundation/Collections/impl.rs b/crates/libs/windows/src/Windows/Foundation/Collections/impl.rs index 0bcf676f89..c7565f516c 100644 --- a/crates/libs/windows/src/Windows/Foundation/Collections/impl.rs +++ b/crates/libs/windows/src/Windows/Foundation/Collections/impl.rs @@ -28,7 +28,7 @@ impl IIterable_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == & as ::windows_core::ComInterface>::IID + iid == & as ::windows_core::Interface>::IID } } pub trait IIterator_Impl: Sized @@ -100,7 +100,7 @@ impl IIterator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == & as ::windows_core::ComInterface>::IID + iid == & as ::windows_core::Interface>::IID } } pub trait IKeyValuePair_Impl: Sized @@ -149,7 +149,7 @@ impl bool { - iid == & as ::windows_core::ComInterface>::IID + iid == & as ::windows_core::Interface>::IID } } pub trait IMap_Impl: Sized + IIterable_Impl> @@ -251,7 +251,7 @@ impl bool { - iid == & as ::windows_core::ComInterface>::IID + iid == & as ::windows_core::Interface>::IID } } pub trait IMapChangedEventArgs_Impl: Sized @@ -297,7 +297,7 @@ impl IMapChangedEventArgs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == & as ::windows_core::ComInterface>::IID + iid == & as ::windows_core::Interface>::IID } } pub trait IMapView_Impl: Sized + IIterable_Impl> @@ -365,7 +365,7 @@ impl bool { - iid == & as ::windows_core::ComInterface>::IID + iid == & as ::windows_core::Interface>::IID } } pub trait IObservableMap_Impl: Sized + IIterable_Impl> + IMap_Impl @@ -406,7 +406,7 @@ impl bool { - iid == & as ::windows_core::ComInterface>::IID + iid == & as ::windows_core::Interface>::IID } } pub trait IObservableVector_Impl: Sized + IIterable_Impl + IVector_Impl @@ -445,7 +445,7 @@ impl IObservableVector_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == & as ::windows_core::ComInterface>::IID + iid == & as ::windows_core::Interface>::IID } } pub trait IPropertySet_Impl: Sized + IIterable_Impl> + IMap_Impl<::windows_core::HSTRING, ::windows_core::IInspectable> + IObservableMap_Impl<::windows_core::HSTRING, ::windows_core::IInspectable> {} @@ -457,7 +457,7 @@ impl IPropertySet_Vtbl { Self { base__: ::windows_core::IInspectable_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVector_Impl: Sized + IIterable_Impl @@ -592,7 +592,7 @@ impl IVector_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == & as ::windows_core::ComInterface>::IID + iid == & as ::windows_core::Interface>::IID } } pub trait IVectorChangedEventArgs_Impl: Sized { @@ -633,7 +633,7 @@ impl IVectorChangedEventArgs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVectorView_Impl: Sized + IIterable_Impl @@ -705,7 +705,7 @@ impl IVectorView_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == & as ::windows_core::ComInterface>::IID + iid == & as ::windows_core::Interface>::IID } } #[::windows_implement::implement(IIterable)] diff --git a/crates/libs/windows/src/Windows/Foundation/Collections/mod.rs b/crates/libs/windows/src/Windows/Foundation/Collections/mod.rs index b37564b36b..2f46ac2b2a 100644 --- a/crates/libs/windows/src/Windows/Foundation/Collections/mod.rs +++ b/crates/libs/windows/src/Windows/Foundation/Collections/mod.rs @@ -3,6 +3,8 @@ pub struct IIterable(::windows_core::IUnknown, ::core::marker::PhantomData) where T: ::windows_core::RuntimeType + 'static; +impl ::windows_core::CanInto<::windows_core::IUnknown> for IIterable {} +impl ::windows_core::CanInto<::windows_core::IInspectable> for IIterable {} impl IIterable { pub fn First(&self) -> ::windows_core::Result> { let this = self; @@ -12,8 +14,6 @@ impl IIterable { } } } -impl ::windows_core::CanInto<::windows_core::IUnknown> for IIterable {} -impl ::windows_core::CanInto<::windows_core::IInspectable> for IIterable {} impl ::windows_core::RuntimeType for IIterable { const SIGNATURE: ::windows_core::imp::ConstBuffer = { ::windows_core::imp::ConstBuffer::new().push_slice(b"pinterface(").push_slice(b"{faa585ea-6214-4217-afda-7f46de5869b3}").push_slice(b";").push_other(T::SIGNATURE).push_slice(b")") }; } @@ -33,8 +33,6 @@ impl ::core::iter::IntoIterator for &IIterable ::windows_core::Interface for IIterable { type Vtable = IIterable_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIterable { const IID: ::windows_core::GUID = ::windows_core::GUID::from_signature(::SIGNATURE); } #[repr(C)] @@ -52,6 +50,8 @@ where pub struct IIterator(::windows_core::IUnknown, ::core::marker::PhantomData) where T: ::windows_core::RuntimeType + 'static; +impl ::windows_core::CanInto<::windows_core::IUnknown> for IIterator {} +impl ::windows_core::CanInto<::windows_core::IInspectable> for IIterator {} impl IIterator { pub fn Current(&self) -> ::windows_core::Result { let this = self; @@ -82,8 +82,6 @@ impl IIterator { } } } -impl ::windows_core::CanInto<::windows_core::IUnknown> for IIterator {} -impl ::windows_core::CanInto<::windows_core::IInspectable> for IIterator {} impl ::windows_core::RuntimeType for IIterator { const SIGNATURE: ::windows_core::imp::ConstBuffer = { ::windows_core::imp::ConstBuffer::new().push_slice(b"pinterface(").push_slice(b"{6a79e863-4300-459a-9966-cbb660963ee1}").push_slice(b";").push_other(T::SIGNATURE).push_slice(b")") }; } @@ -99,8 +97,6 @@ impl ::core::iter::Iterator for IIterator { } unsafe impl ::windows_core::Interface for IIterator { type Vtable = IIterator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIterator { const IID: ::windows_core::GUID = ::windows_core::GUID::from_signature(::SIGNATURE); } #[repr(C)] @@ -122,6 +118,8 @@ pub struct IKeyValuePair(::windows_core::IUnknown, ::core::marker::Phantom where K: ::windows_core::RuntimeType + 'static, V: ::windows_core::RuntimeType + 'static; +impl ::windows_core::CanInto<::windows_core::IUnknown> for IKeyValuePair {} +impl ::windows_core::CanInto<::windows_core::IInspectable> for IKeyValuePair {} impl IKeyValuePair { pub fn Key(&self) -> ::windows_core::Result { let this = self; @@ -138,15 +136,11 @@ impl ::windows_core::CanInto<::windows_core::IUnknown> for IKeyValuePair {} -impl ::windows_core::CanInto<::windows_core::IInspectable> for IKeyValuePair {} impl ::windows_core::RuntimeType for IKeyValuePair { const SIGNATURE: ::windows_core::imp::ConstBuffer = { ::windows_core::imp::ConstBuffer::new().push_slice(b"pinterface(").push_slice(b"{02b51929-c1c4-4a7e-8940-0312b5c18500}").push_slice(b";").push_other(K::SIGNATURE).push_slice(b";").push_other(V::SIGNATURE).push_slice(b")") }; } unsafe impl ::windows_core::Interface for IKeyValuePair { type Vtable = IKeyValuePair_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKeyValuePair { const IID: ::windows_core::GUID = ::windows_core::GUID::from_signature(::SIGNATURE); } #[repr(C)] @@ -168,6 +162,11 @@ pub struct IMap(::windows_core::IUnknown, ::core::marker::PhantomData, where K: ::windows_core::RuntimeType + 'static, V: ::windows_core::RuntimeType + 'static; +impl ::windows_core::CanInto<::windows_core::IUnknown> for IMap {} +impl ::windows_core::CanInto<::windows_core::IInspectable> for IMap {} +impl ::windows_core::CanInto>> for IMap { + const QUERY: bool = true; +} impl IMap { pub fn Lookup(&self, key: P0) -> ::windows_core::Result where @@ -226,16 +225,13 @@ impl ::windows_core::Result>> { - let this = &::windows_core::ComInterface::cast::>>(self)?; + let this = &::windows_core::Interface::cast::>>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } } -impl ::windows_core::CanInto<::windows_core::IUnknown> for IMap {} -impl ::windows_core::CanInto<::windows_core::IInspectable> for IMap {} -impl ::windows_core::CanTryInto>> for IMap {} impl ::windows_core::RuntimeType for IMap { const SIGNATURE: ::windows_core::imp::ConstBuffer = { ::windows_core::imp::ConstBuffer::new().push_slice(b"pinterface(").push_slice(b"{3c2925fe-8519-45c1-aa79-197b6718c1c1}").push_slice(b";").push_other(K::SIGNATURE).push_slice(b";").push_other(V::SIGNATURE).push_slice(b")") }; } @@ -255,8 +251,6 @@ impl ::windows_core::Interface for IMap { type Vtable = IMap_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMap { const IID: ::windows_core::GUID = ::windows_core::GUID::from_signature(::SIGNATURE); } #[repr(C)] @@ -282,6 +276,8 @@ where pub struct IMapChangedEventArgs(::windows_core::IUnknown, ::core::marker::PhantomData) where K: ::windows_core::RuntimeType + 'static; +impl ::windows_core::CanInto<::windows_core::IUnknown> for IMapChangedEventArgs {} +impl ::windows_core::CanInto<::windows_core::IInspectable> for IMapChangedEventArgs {} impl IMapChangedEventArgs { pub fn CollectionChange(&self) -> ::windows_core::Result { let this = self; @@ -298,15 +294,11 @@ impl IMapChangedEventArgs { } } } -impl ::windows_core::CanInto<::windows_core::IUnknown> for IMapChangedEventArgs {} -impl ::windows_core::CanInto<::windows_core::IInspectable> for IMapChangedEventArgs {} impl ::windows_core::RuntimeType for IMapChangedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = { ::windows_core::imp::ConstBuffer::new().push_slice(b"pinterface(").push_slice(b"{9939f4df-050a-4c0f-aa60-77075f9c4777}").push_slice(b";").push_other(K::SIGNATURE).push_slice(b")") }; } unsafe impl ::windows_core::Interface for IMapChangedEventArgs { type Vtable = IMapChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMapChangedEventArgs { const IID: ::windows_core::GUID = ::windows_core::GUID::from_signature(::SIGNATURE); } #[repr(C)] @@ -326,6 +318,11 @@ pub struct IMapView(::windows_core::IUnknown, ::core::marker::PhantomData< where K: ::windows_core::RuntimeType + 'static, V: ::windows_core::RuntimeType + 'static; +impl ::windows_core::CanInto<::windows_core::IUnknown> for IMapView {} +impl ::windows_core::CanInto<::windows_core::IInspectable> for IMapView {} +impl ::windows_core::CanInto>> for IMapView { + const QUERY: bool = true; +} impl IMapView { pub fn Lookup(&self, key: P0) -> ::windows_core::Result where @@ -359,16 +356,13 @@ impl ::windows_core::Result>> { - let this = &::windows_core::ComInterface::cast::>>(self)?; + let this = &::windows_core::Interface::cast::>>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } } -impl ::windows_core::CanInto<::windows_core::IUnknown> for IMapView {} -impl ::windows_core::CanInto<::windows_core::IInspectable> for IMapView {} -impl ::windows_core::CanTryInto>> for IMapView {} impl ::windows_core::RuntimeType for IMapView { const SIGNATURE: ::windows_core::imp::ConstBuffer = { ::windows_core::imp::ConstBuffer::new().push_slice(b"pinterface(").push_slice(b"{e480ce40-a338-4ada-adcf-272272e48cb9}").push_slice(b";").push_other(K::SIGNATURE).push_slice(b";").push_other(V::SIGNATURE).push_slice(b")") }; } @@ -388,8 +382,6 @@ impl ::windows_core::Interface for IMapView { type Vtable = IMapView_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMapView { const IID: ::windows_core::GUID = ::windows_core::GUID::from_signature(::SIGNATURE); } #[repr(C)] @@ -413,6 +405,14 @@ pub struct IObservableMap(::windows_core::IUnknown, ::core::marker::Phanto where K: ::windows_core::RuntimeType + 'static, V: ::windows_core::RuntimeType + 'static; +impl ::windows_core::CanInto<::windows_core::IUnknown> for IObservableMap {} +impl ::windows_core::CanInto<::windows_core::IInspectable> for IObservableMap {} +impl ::windows_core::CanInto>> for IObservableMap { + const QUERY: bool = true; +} +impl ::windows_core::CanInto> for IObservableMap { + const QUERY: bool = true; +} impl IObservableMap { pub fn MapChanged(&self, vhnd: P0) -> ::windows_core::Result where @@ -429,7 +429,7 @@ impl ::windows_core::Result>> { - let this = &::windows_core::ComInterface::cast::>>(self)?; + let this = &::windows_core::Interface::cast::>>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -439,14 +439,14 @@ impl, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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__).from_abi(result__) } } pub fn Size(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Size)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -456,14 +456,14 @@ impl, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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__).from_abi(result__) } } pub fn GetView(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetView)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -474,7 +474,7 @@ impl, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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__).from_abi(result__) @@ -484,18 +484,14 @@ impl, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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() } } pub fn Clear(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).Clear)(::windows_core::Interface::as_raw(this)).ok() } } } -impl ::windows_core::CanInto<::windows_core::IUnknown> for IObservableMap {} -impl ::windows_core::CanInto<::windows_core::IInspectable> for IObservableMap {} -impl ::windows_core::CanTryInto>> for IObservableMap {} -impl ::windows_core::CanTryInto> for IObservableMap {} impl ::windows_core::RuntimeType for IObservableMap { const SIGNATURE: ::windows_core::imp::ConstBuffer = { ::windows_core::imp::ConstBuffer::new().push_slice(b"pinterface(").push_slice(b"{65df2bf5-bf39-41b5-aebc-5a9d865e472b}").push_slice(b";").push_other(K::SIGNATURE).push_slice(b";").push_other(V::SIGNATURE).push_slice(b")") }; } @@ -515,8 +511,6 @@ impl ::windows_core::Interface for IObservableMap { type Vtable = IObservableMap_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IObservableMap { const IID: ::windows_core::GUID = ::windows_core::GUID::from_signature(::SIGNATURE); } #[repr(C)] @@ -537,6 +531,14 @@ where pub struct IObservableVector(::windows_core::IUnknown, ::core::marker::PhantomData) where T: ::windows_core::RuntimeType + 'static; +impl ::windows_core::CanInto<::windows_core::IUnknown> for IObservableVector {} +impl ::windows_core::CanInto<::windows_core::IInspectable> for IObservableVector {} +impl ::windows_core::CanInto> for IObservableVector { + const QUERY: bool = true; +} +impl ::windows_core::CanInto> for IObservableVector { + const QUERY: bool = true; +} impl IObservableVector { pub fn VectorChanged(&self, vhnd: P0) -> ::windows_core::Result where @@ -553,28 +555,28 @@ impl IObservableVector { unsafe { (::windows_core::Interface::vtable(this).RemoveVectorChanged)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn First(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetAt(&self, index: u32) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetAt)(::windows_core::Interface::as_raw(this), index, &mut result__).from_abi(result__) } } pub fn Size(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Size)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetView(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetView)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -584,7 +586,7 @@ impl IObservableVector { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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__).from_abi(result__) @@ -594,51 +596,47 @@ impl IObservableVector { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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() } } pub fn InsertAt(&self, index: u32, value: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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() } } pub fn RemoveAt(&self, index: u32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveAt)(::windows_core::Interface::as_raw(this), index).ok() } } pub fn Append(&self, value: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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() } } pub fn RemoveAtEnd(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveAtEnd)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Clear(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).Clear)(::windows_core::Interface::as_raw(this)).ok() } } pub fn GetMany(&self, startindex: u32, items: &mut [>::Default]) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetMany)(::windows_core::Interface::as_raw(this), startindex, items.len().try_into().unwrap(), ::core::mem::transmute_copy(&items), &mut result__).from_abi(result__) } } pub fn ReplaceAll(&self, items: &[>::Default]) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).ReplaceAll)(::windows_core::Interface::as_raw(this), items.len().try_into().unwrap(), ::core::mem::transmute(items.as_ptr())).ok() } } } -impl ::windows_core::CanInto<::windows_core::IUnknown> for IObservableVector {} -impl ::windows_core::CanInto<::windows_core::IInspectable> for IObservableVector {} -impl ::windows_core::CanTryInto> for IObservableVector {} -impl ::windows_core::CanTryInto> for IObservableVector {} impl ::windows_core::RuntimeType for IObservableVector { const SIGNATURE: ::windows_core::imp::ConstBuffer = { ::windows_core::imp::ConstBuffer::new().push_slice(b"pinterface(").push_slice(b"{5917eb53-50b4-4a0d-b309-65862b3f1dbc}").push_slice(b";").push_other(T::SIGNATURE).push_slice(b")") }; } @@ -653,13 +651,11 @@ impl ::core::iter::IntoIterator for &I type Item = T; type IntoIter = VectorIterator; fn into_iter(self) -> Self::IntoIter { - VectorIterator::new(::windows_core::ComInterface::cast(self).ok()) + VectorIterator::new(::windows_core::Interface::cast(self).ok()) } } unsafe impl ::windows_core::Interface for IObservableVector { type Vtable = IObservableVector_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IObservableVector { const IID: ::windows_core::GUID = ::windows_core::GUID::from_signature(::SIGNATURE); } #[repr(C)] @@ -673,40 +669,40 @@ where pub RemoveVectorChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::EventRegistrationToken) -> ::windows_core::HRESULT, pub T: ::core::marker::PhantomData, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPropertySet(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPropertySet, IPropertySet_Vtbl, 0x8a43ed9f_f4e6_4421_acf9_1dab2986820c); +::windows_core::imp::interface_hierarchy!(IPropertySet, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IPropertySet, IIterable < IKeyValuePair < ::windows_core::HSTRING , ::windows_core::IInspectable > >, IMap < ::windows_core::HSTRING , ::windows_core::IInspectable >, IObservableMap < ::windows_core::HSTRING , ::windows_core::IInspectable >); impl IPropertySet { pub fn First(&self) -> ::windows_core::Result>> { - let this = &::windows_core::ComInterface::cast::>>(self)?; + let this = &::windows_core::Interface::cast::>>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Lookup(&self, key: &::windows_core::HSTRING) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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), ::core::mem::transmute_copy(key), &mut result__).from_abi(result__) } } pub fn Size(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Size)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn HasKey(&self, key: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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), ::core::mem::transmute_copy(key), &mut result__).from_abi(result__) } } pub fn GetView(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetView)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -716,39 +712,35 @@ impl IPropertySet { where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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__).from_abi(result__) } } pub fn Remove(&self, key: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).Remove)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key)).ok() } } pub fn Clear(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).Clear)(::windows_core::Interface::as_raw(this)).ok() } } pub fn MapChanged(&self, vhnd: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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__).from_abi(result__) } } pub fn RemoveMapChanged(&self, token: super::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveMapChanged)(::windows_core::Interface::as_raw(this), token).ok() } } } -::windows_core::imp::interface_hierarchy!(IPropertySet, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto>> for IPropertySet {} -impl ::windows_core::CanTryInto> for IPropertySet {} -impl ::windows_core::CanTryInto> for IPropertySet {} impl ::windows_core::RuntimeType for IPropertySet { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } @@ -766,12 +758,6 @@ impl ::core::iter::IntoIterator for &IPropertySet { self.First().unwrap() } } -unsafe impl ::windows_core::Interface for IPropertySet { - type Vtable = IPropertySet_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPropertySet { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8a43ed9f_f4e6_4421_acf9_1dab2986820c); -} #[repr(C)] #[doc(hidden)] pub struct IPropertySet_Vtbl { @@ -782,6 +768,11 @@ pub struct IPropertySet_Vtbl { pub struct IVector(::windows_core::IUnknown, ::core::marker::PhantomData) where T: ::windows_core::RuntimeType + 'static; +impl ::windows_core::CanInto<::windows_core::IUnknown> for IVector {} +impl ::windows_core::CanInto<::windows_core::IInspectable> for IVector {} +impl ::windows_core::CanInto> for IVector { + const QUERY: bool = true; +} impl IVector { pub fn GetAt(&self, index: u32) -> ::windows_core::Result { let this = self; @@ -859,16 +850,13 @@ impl IVector { unsafe { (::windows_core::Interface::vtable(this).ReplaceAll)(::windows_core::Interface::as_raw(this), items.len().try_into().unwrap(), ::core::mem::transmute(items.as_ptr())).ok() } } pub fn First(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } } -impl ::windows_core::CanInto<::windows_core::IUnknown> for IVector {} -impl ::windows_core::CanInto<::windows_core::IInspectable> for IVector {} -impl ::windows_core::CanTryInto> for IVector {} impl ::windows_core::RuntimeType for IVector { const SIGNATURE: ::windows_core::imp::ConstBuffer = { ::windows_core::imp::ConstBuffer::new().push_slice(b"pinterface(").push_slice(b"{913337e9-11a1-4345-a3a2-4e7f956e222d}").push_slice(b";").push_other(T::SIGNATURE).push_slice(b")") }; } @@ -906,8 +894,6 @@ impl ::core::iter::IntoIterator for &IVector } unsafe impl ::windows_core::Interface for IVector { type Vtable = IVector_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVector { const IID: ::windows_core::GUID = ::windows_core::GUID::from_signature(::SIGNATURE); } #[repr(C)] @@ -931,9 +917,8 @@ where pub ReplaceAll: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, items_array_size: u32, items: *const ::windows_core::AbiType) -> ::windows_core::HRESULT, pub T: ::core::marker::PhantomData, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVectorChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVectorChangedEventArgs, IVectorChangedEventArgs_Vtbl, 0x575933df_34fe_4480_af15_07691f3d5d9b); +::windows_core::imp::interface_hierarchy!(IVectorChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IVectorChangedEventArgs { pub fn CollectionChange(&self) -> ::windows_core::Result { let this = self; @@ -950,16 +935,9 @@ impl IVectorChangedEventArgs { } } } -::windows_core::imp::interface_hierarchy!(IVectorChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IVectorChangedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IVectorChangedEventArgs { - type Vtable = IVectorChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVectorChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x575933df_34fe_4480_af15_07691f3d5d9b); -} #[repr(C)] #[doc(hidden)] pub struct IVectorChangedEventArgs_Vtbl { @@ -972,6 +950,11 @@ pub struct IVectorChangedEventArgs_Vtbl { pub struct IVectorView(::windows_core::IUnknown, ::core::marker::PhantomData) where T: ::windows_core::RuntimeType + 'static; +impl ::windows_core::CanInto<::windows_core::IUnknown> for IVectorView {} +impl ::windows_core::CanInto<::windows_core::IInspectable> for IVectorView {} +impl ::windows_core::CanInto> for IVectorView { + const QUERY: bool = true; +} impl IVectorView { pub fn GetAt(&self, index: u32) -> ::windows_core::Result { let this = self; @@ -1005,16 +988,13 @@ impl IVectorView { } } pub fn First(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } } -impl ::windows_core::CanInto<::windows_core::IUnknown> for IVectorView {} -impl ::windows_core::CanInto<::windows_core::IInspectable> for IVectorView {} -impl ::windows_core::CanTryInto> for IVectorView {} impl ::windows_core::RuntimeType for IVectorView { const SIGNATURE: ::windows_core::imp::ConstBuffer = { ::windows_core::imp::ConstBuffer::new().push_slice(b"pinterface(").push_slice(b"{bbe1fa4c-b0e3-4583-baef-1f1b2e483e56}").push_slice(b";").push_other(T::SIGNATURE).push_slice(b")") }; } @@ -1052,8 +1032,6 @@ impl ::core::iter::IntoIterator for &IVectorView } unsafe impl ::windows_core::Interface for IVectorView { type Vtable = IVectorView_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVectorView { const IID: ::windows_core::GUID = ::windows_core::GUID::from_signature(::SIGNATURE); } #[repr(C)] @@ -1072,6 +1050,8 @@ where #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PropertySet(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PropertySet, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(PropertySet, IIterable < IKeyValuePair < ::windows_core::HSTRING , ::windows_core::IInspectable > >, IMap < ::windows_core::HSTRING , ::windows_core::IInspectable >, IObservableMap < ::windows_core::HSTRING , ::windows_core::IInspectable >, IPropertySet); impl PropertySet { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1081,35 +1061,35 @@ impl PropertySet { SHARED.call(callback) } pub fn First(&self) -> ::windows_core::Result>> { - let this = &::windows_core::ComInterface::cast::>>(self)?; + let this = &::windows_core::Interface::cast::>>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Lookup(&self, key: &::windows_core::HSTRING) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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), ::core::mem::transmute_copy(key), &mut result__).from_abi(result__) } } pub fn Size(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Size)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn HasKey(&self, key: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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), ::core::mem::transmute_copy(key), &mut result__).from_abi(result__) } } pub fn GetView(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetView)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1119,32 +1099,32 @@ impl PropertySet { where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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__).from_abi(result__) } } pub fn Remove(&self, key: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).Remove)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key)).ok() } } pub fn Clear(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).Clear)(::windows_core::Interface::as_raw(this)).ok() } } pub fn MapChanged(&self, vhnd: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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__).from_abi(result__) } } pub fn RemoveMapChanged(&self, token: super::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveMapChanged)(::windows_core::Interface::as_raw(this), token).ok() } } } @@ -1153,9 +1133,7 @@ impl ::windows_core::RuntimeType for PropertySet { } unsafe impl ::windows_core::Interface for PropertySet { type Vtable = IPropertySet_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PropertySet { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PropertySet { const NAME: &'static str = "Windows.Foundation.Collections.PropertySet"; @@ -1174,16 +1152,13 @@ impl ::core::iter::IntoIterator for &PropertySet { self.First().unwrap() } } -::windows_core::imp::interface_hierarchy!(PropertySet, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto>> for PropertySet {} -impl ::windows_core::CanTryInto> for PropertySet {} -impl ::windows_core::CanTryInto> for PropertySet {} -impl ::windows_core::CanTryInto for PropertySet {} unsafe impl ::core::marker::Send for PropertySet {} unsafe impl ::core::marker::Sync for PropertySet {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StringMap(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StringMap, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(StringMap, IIterable < IKeyValuePair < ::windows_core::HSTRING , ::windows_core::HSTRING > >, IMap < ::windows_core::HSTRING , ::windows_core::HSTRING >, IObservableMap < ::windows_core::HSTRING , ::windows_core::HSTRING >); impl StringMap { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1193,7 +1168,7 @@ impl StringMap { SHARED.call(callback) } pub fn First(&self) -> ::windows_core::Result>> { - let this = &::windows_core::ComInterface::cast::>>(self)?; + let this = &::windows_core::Interface::cast::>>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1246,14 +1221,14 @@ impl StringMap { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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__).from_abi(result__) } } pub fn RemoveMapChanged(&self, token: super::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveMapChanged)(::windows_core::Interface::as_raw(this), token).ok() } } } @@ -1262,9 +1237,7 @@ impl ::windows_core::RuntimeType for StringMap { } unsafe impl ::windows_core::Interface for StringMap { type Vtable = IMap_Vtbl<::windows_core::HSTRING, ::windows_core::HSTRING>; -} -unsafe impl ::windows_core::ComInterface for StringMap { - const IID: ::windows_core::GUID = as ::windows_core::ComInterface>::IID; + const IID: ::windows_core::GUID = as ::windows_core::Interface>::IID; } impl ::windows_core::RuntimeName for StringMap { const NAME: &'static str = "Windows.Foundation.Collections.StringMap"; @@ -1283,15 +1256,13 @@ impl ::core::iter::IntoIterator for &StringMap { self.First().unwrap() } } -::windows_core::imp::interface_hierarchy!(StringMap, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto>> for StringMap {} -impl ::windows_core::CanTryInto> for StringMap {} -impl ::windows_core::CanTryInto> for StringMap {} unsafe impl ::core::marker::Send for StringMap {} unsafe impl ::core::marker::Sync for StringMap {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ValueSet(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ValueSet, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ValueSet, IIterable < IKeyValuePair < ::windows_core::HSTRING , ::windows_core::IInspectable > >, IMap < ::windows_core::HSTRING , ::windows_core::IInspectable >, IObservableMap < ::windows_core::HSTRING , ::windows_core::IInspectable >, IPropertySet); impl ValueSet { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1301,35 +1272,35 @@ impl ValueSet { SHARED.call(callback) } pub fn First(&self) -> ::windows_core::Result>> { - let this = &::windows_core::ComInterface::cast::>>(self)?; + let this = &::windows_core::Interface::cast::>>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Lookup(&self, key: &::windows_core::HSTRING) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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), ::core::mem::transmute_copy(key), &mut result__).from_abi(result__) } } pub fn Size(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Size)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn HasKey(&self, key: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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), ::core::mem::transmute_copy(key), &mut result__).from_abi(result__) } } pub fn GetView(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetView)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1339,32 +1310,32 @@ impl ValueSet { where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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__).from_abi(result__) } } pub fn Remove(&self, key: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).Remove)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key)).ok() } } pub fn Clear(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).Clear)(::windows_core::Interface::as_raw(this)).ok() } } pub fn MapChanged(&self, vhnd: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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__).from_abi(result__) } } pub fn RemoveMapChanged(&self, token: super::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveMapChanged)(::windows_core::Interface::as_raw(this), token).ok() } } } @@ -1373,9 +1344,7 @@ impl ::windows_core::RuntimeType for ValueSet { } unsafe impl ::windows_core::Interface for ValueSet { type Vtable = IPropertySet_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ValueSet { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ValueSet { const NAME: &'static str = "Windows.Foundation.Collections.ValueSet"; @@ -1394,11 +1363,6 @@ impl ::core::iter::IntoIterator for &ValueSet { self.First().unwrap() } } -::windows_core::imp::interface_hierarchy!(ValueSet, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto>> for ValueSet {} -impl ::windows_core::CanTryInto> for ValueSet {} -impl ::windows_core::CanTryInto> for ValueSet {} -impl ::windows_core::CanTryInto for ValueSet {} unsafe impl ::core::marker::Send for ValueSet {} unsafe impl ::core::marker::Sync for ValueSet {} #[repr(transparent)] @@ -1423,7 +1387,7 @@ impl ::windows_core::RuntimeType for CollectionChange { } #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct MapChangedEventHandler(pub ::windows_core::IUnknown, ::core::marker::PhantomData, ::core::marker::PhantomData) +pub struct MapChangedEventHandler(::windows_core::IUnknown, ::core::marker::PhantomData, ::core::marker::PhantomData) where K: ::windows_core::RuntimeType + 'static, V: ::windows_core::RuntimeType + 'static; @@ -1434,11 +1398,11 @@ impl(&self, sender: P0, event: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, - P1: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, + P1: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).Invoke)(::windows_core::Interface::as_raw(this), sender.try_into_param()?.abi(), event.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).Invoke)(::windows_core::Interface::as_raw(this), sender.into_param().abi(), event.into_param().abi()).ok() } } } #[repr(C)] @@ -1463,7 +1427,7 @@ impl as ::windows_core::ComInterface>::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; + *interface = if *iid == as ::windows_core::Interface>::IID || *iid == <::windows_core::IUnknown as ::windows_core::Interface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::Interface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; if (*interface).is_null() { ::windows_core::HRESULT(-2147467262) } else { @@ -1490,8 +1454,6 @@ impl ::windows_core::Interface for MapChangedEventHandler { type Vtable = MapChangedEventHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MapChangedEventHandler { const IID: ::windows_core::GUID = ::windows_core::GUID::from_signature(::SIGNATURE); } impl ::windows_core::RuntimeType for MapChangedEventHandler { @@ -1511,7 +1473,7 @@ where } #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct VectorChangedEventHandler(pub ::windows_core::IUnknown, ::core::marker::PhantomData) +pub struct VectorChangedEventHandler(::windows_core::IUnknown, ::core::marker::PhantomData) where T: ::windows_core::RuntimeType + 'static; impl VectorChangedEventHandler { @@ -1521,11 +1483,11 @@ impl VectorChangedEventHandler { } pub fn Invoke(&self, sender: P0, event: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, - P1: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam>, + P1: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).Invoke)(::windows_core::Interface::as_raw(this), sender.try_into_param()?.abi(), event.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).Invoke)(::windows_core::Interface::as_raw(this), sender.into_param().abi(), event.into_param().abi()).ok() } } } #[repr(C)] @@ -1548,7 +1510,7 @@ impl as ::windows_core::ComInterface>::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; + *interface = if *iid == as ::windows_core::Interface>::IID || *iid == <::windows_core::IUnknown as ::windows_core::Interface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::Interface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; if (*interface).is_null() { ::windows_core::HRESULT(-2147467262) } else { @@ -1575,8 +1537,6 @@ impl ::windows_core::Interface for VectorChangedEventHandler { type Vtable = VectorChangedEventHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VectorChangedEventHandler { const IID: ::windows_core::GUID = ::windows_core::GUID::from_signature(::SIGNATURE); } impl ::windows_core::RuntimeType for VectorChangedEventHandler { diff --git a/crates/libs/windows/src/Windows/Foundation/Diagnostics/impl.rs b/crates/libs/windows/src/Windows/Foundation/Diagnostics/impl.rs index 54b61b0c90..2fff6f0506 100644 --- a/crates/libs/windows/src/Windows/Foundation/Diagnostics/impl.rs +++ b/crates/libs/windows/src/Windows/Foundation/Diagnostics/impl.rs @@ -30,7 +30,7 @@ impl IErrorReportingSettings_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Storage\"`"] @@ -118,7 +118,7 @@ impl IFileLoggingSession_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ILoggingChannel_Impl: Sized + super::IClosable_Impl { @@ -221,7 +221,7 @@ impl ILoggingChannel_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Storage\"`"] @@ -289,7 +289,7 @@ impl ILoggingSession_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ILoggingTarget_Impl: Sized { @@ -427,6 +427,6 @@ impl ILoggingTarget_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/Foundation/Diagnostics/mod.rs b/crates/libs/windows/src/Windows/Foundation/Diagnostics/mod.rs index 0d80719e84..89ef9f390c 100644 --- a/crates/libs/windows/src/Windows/Foundation/Diagnostics/mod.rs +++ b/crates/libs/windows/src/Windows/Foundation/Diagnostics/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAsyncCausalityTracerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAsyncCausalityTracerStatics { - type Vtable = IAsyncCausalityTracerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAsyncCausalityTracerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x50850b26_267e_451b_a890_ab6a370245ee); -} +::windows_core::imp::com_interface!(IAsyncCausalityTracerStatics, IAsyncCausalityTracerStatics_Vtbl, 0x50850b26_267e_451b_a890_ab6a370245ee); #[repr(C)] #[doc(hidden)] pub struct IAsyncCausalityTracerStatics_Vtbl { @@ -20,16 +11,7 @@ pub struct IAsyncCausalityTracerStatics_Vtbl { pub TracingStatusChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveTracingStatusChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cookie: super::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IErrorDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IErrorDetails { - type Vtable = IErrorDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IErrorDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x378cbb01_2cc9_428f_8c55_2c990d463e8f); -} +::windows_core::imp::com_interface!(IErrorDetails, IErrorDetails_Vtbl, 0x378cbb01_2cc9_428f_8c55_2c990d463e8f); #[repr(C)] #[doc(hidden)] pub struct IErrorDetails_Vtbl { @@ -38,25 +20,15 @@ pub struct IErrorDetails_Vtbl { pub LongDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub HelpUri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IErrorDetailsStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IErrorDetailsStatics { - type Vtable = IErrorDetailsStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IErrorDetailsStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb7703750_0b1d_46c8_aa0e_4b8178e4fce9); -} +::windows_core::imp::com_interface!(IErrorDetailsStatics, IErrorDetailsStatics_Vtbl, 0xb7703750_0b1d_46c8_aa0e_4b8178e4fce9); #[repr(C)] #[doc(hidden)] pub struct IErrorDetailsStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateFromHResultAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, errorcode: i32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IErrorReportingSettings(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IErrorReportingSettings, IErrorReportingSettings_Vtbl, 0x16369792_b03e_4ba1_8bb8_d28f4ab4d2c0); +::windows_core::imp::interface_hierarchy!(IErrorReportingSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IErrorReportingSettings { pub fn SetErrorOptions(&self, value: ErrorOptions) -> ::windows_core::Result<()> { let this = self; @@ -70,16 +42,9 @@ impl IErrorReportingSettings { } } } -::windows_core::imp::interface_hierarchy!(IErrorReportingSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IErrorReportingSettings { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IErrorReportingSettings { - type Vtable = IErrorReportingSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IErrorReportingSettings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x16369792_b03e_4ba1_8bb8_d28f4ab4d2c0); -} #[repr(C)] #[doc(hidden)] pub struct IErrorReportingSettings_Vtbl { @@ -87,9 +52,9 @@ pub struct IErrorReportingSettings_Vtbl { pub SetErrorOptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ErrorOptions) -> ::windows_core::HRESULT, pub GetErrorOptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ErrorOptions) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFileLoggingSession(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFileLoggingSession, IFileLoggingSession_Vtbl, 0x24c74216_fed2_404c_895f_1f9699cb02f7); +::windows_core::imp::interface_hierarchy!(IFileLoggingSession, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IFileLoggingSession, super::IClosable); impl IFileLoggingSession { pub fn Name(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -100,24 +65,24 @@ impl IFileLoggingSession { } pub fn AddLoggingChannel(&self, loggingchannel: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).AddLoggingChannel)(::windows_core::Interface::as_raw(this), loggingchannel.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).AddLoggingChannel)(::windows_core::Interface::as_raw(this), loggingchannel.into_param().abi()).ok() } } pub fn AddLoggingChannelWithLevel(&self, loggingchannel: P0, maxlevel: LoggingLevel) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).AddLoggingChannelWithLevel)(::windows_core::Interface::as_raw(this), loggingchannel.try_into_param()?.abi(), maxlevel).ok() } + unsafe { (::windows_core::Interface::vtable(this).AddLoggingChannelWithLevel)(::windows_core::Interface::as_raw(this), loggingchannel.into_param().abi(), maxlevel).ok() } } pub fn RemoveLoggingChannel(&self, loggingchannel: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).RemoveLoggingChannel)(::windows_core::Interface::as_raw(this), loggingchannel.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).RemoveLoggingChannel)(::windows_core::Interface::as_raw(this), loggingchannel.into_param().abi()).ok() } } #[doc = "Required features: `\"Storage\"`"] #[cfg(feature = "Storage")] @@ -143,21 +108,13 @@ impl IFileLoggingSession { unsafe { (::windows_core::Interface::vtable(this).RemoveLogFileGenerated)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } } -::windows_core::imp::interface_hierarchy!(IFileLoggingSession, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IFileLoggingSession {} impl ::windows_core::RuntimeType for IFileLoggingSession { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IFileLoggingSession { - type Vtable = IFileLoggingSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFileLoggingSession { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x24c74216_fed2_404c_895f_1f9699cb02f7); -} #[repr(C)] #[doc(hidden)] pub struct IFileLoggingSession_Vtbl { @@ -173,32 +130,14 @@ pub struct IFileLoggingSession_Vtbl { pub LogFileGenerated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveLogFileGenerated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFileLoggingSessionFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFileLoggingSessionFactory { - type Vtable = IFileLoggingSessionFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFileLoggingSessionFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeea08dce_8447_4daa_9133_12eb46f697d4); -} +::windows_core::imp::com_interface!(IFileLoggingSessionFactory, IFileLoggingSessionFactory_Vtbl, 0xeea08dce_8447_4daa_9133_12eb46f697d4); #[repr(C)] #[doc(hidden)] pub struct IFileLoggingSessionFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILogFileGeneratedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILogFileGeneratedEventArgs { - type Vtable = ILogFileGeneratedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILogFileGeneratedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x269e976f_0d38_4c1a_b53f_b395d881df84); -} +::windows_core::imp::com_interface!(ILogFileGeneratedEventArgs, ILogFileGeneratedEventArgs_Vtbl, 0x269e976f_0d38_4c1a_b53f_b395d881df84); #[repr(C)] #[doc(hidden)] pub struct ILogFileGeneratedEventArgs_Vtbl { @@ -208,16 +147,7 @@ pub struct ILogFileGeneratedEventArgs_Vtbl { #[cfg(not(feature = "Storage"))] File: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILoggingActivity(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILoggingActivity { - type Vtable = ILoggingActivity_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILoggingActivity { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbc032941_b766_4cb5_9848_97ac6ba6d60c); -} +::windows_core::imp::com_interface!(ILoggingActivity, ILoggingActivity_Vtbl, 0xbc032941_b766_4cb5_9848_97ac6ba6d60c); #[repr(C)] #[doc(hidden)] pub struct ILoggingActivity_Vtbl { @@ -225,16 +155,7 @@ pub struct ILoggingActivity_Vtbl { pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILoggingActivity2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILoggingActivity2 { - type Vtable = ILoggingActivity2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILoggingActivity2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x26c29808_6322_456a_af82_80c8642f178b); -} +::windows_core::imp::com_interface!(ILoggingActivity2, ILoggingActivity2_Vtbl, 0x26c29808_6322_456a_af82_80c8642f178b); #[repr(C)] #[doc(hidden)] pub struct ILoggingActivity2_Vtbl { @@ -244,16 +165,7 @@ pub struct ILoggingActivity2_Vtbl { pub StopActivityWithFields: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, stopeventname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, fields: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub StopActivityWithFieldsAndOptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, stopeventname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, fields: *mut ::core::ffi::c_void, options: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILoggingActivityFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILoggingActivityFactory { - type Vtable = ILoggingActivityFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILoggingActivityFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6b33b483_e10a_4c58_97d5_10fb451074fb); -} +::windows_core::imp::com_interface!(ILoggingActivityFactory, ILoggingActivityFactory_Vtbl, 0x6b33b483_e10a_4c58_97d5_10fb451074fb); #[repr(C)] #[doc(hidden)] pub struct ILoggingActivityFactory_Vtbl { @@ -261,9 +173,9 @@ pub struct ILoggingActivityFactory_Vtbl { pub CreateLoggingActivity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, activityname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, loggingchannel: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateLoggingActivityWithLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, activityname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, loggingchannel: *mut ::core::ffi::c_void, level: LoggingLevel, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILoggingChannel(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ILoggingChannel, ILoggingChannel_Vtbl, 0xe9a50343_11d7_4f01_b5ca_cf495278c0a8); +::windows_core::imp::interface_hierarchy!(ILoggingChannel, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ILoggingChannel, super::IClosable); impl ILoggingChannel { pub fn Name(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -317,21 +229,13 @@ impl ILoggingChannel { unsafe { (::windows_core::Interface::vtable(this).RemoveLoggingEnabled)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } } -::windows_core::imp::interface_hierarchy!(ILoggingChannel, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ILoggingChannel {} impl ::windows_core::RuntimeType for ILoggingChannel { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for ILoggingChannel { - type Vtable = ILoggingChannel_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILoggingChannel { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe9a50343_11d7_4f01_b5ca_cf495278c0a8); -} #[repr(C)] #[doc(hidden)] pub struct ILoggingChannel_Vtbl { @@ -346,32 +250,14 @@ pub struct ILoggingChannel_Vtbl { pub LoggingEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveLoggingEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILoggingChannel2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILoggingChannel2 { - type Vtable = ILoggingChannel2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILoggingChannel2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9f4c3cf3_0bac_45a5_9e33_baf3f3a246a5); -} +::windows_core::imp::com_interface!(ILoggingChannel2, ILoggingChannel2_Vtbl, 0x9f4c3cf3_0bac_45a5_9e33_baf3f3a246a5); #[repr(C)] #[doc(hidden)] pub struct ILoggingChannel2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILoggingChannelFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILoggingChannelFactory { - type Vtable = ILoggingChannelFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILoggingChannelFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4edc5b9c_af80_4a9b_b0dc_398f9ae5207b); -} +::windows_core::imp::com_interface!(ILoggingChannelFactory, ILoggingChannelFactory_Vtbl, 0x4edc5b9c_af80_4a9b_b0dc_398f9ae5207b); #[repr(C)] #[doc(hidden)] pub struct ILoggingChannelFactory_Vtbl { @@ -381,16 +267,7 @@ pub struct ILoggingChannelFactory_Vtbl { #[cfg(not(feature = "deprecated"))] Create: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILoggingChannelFactory2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILoggingChannelFactory2 { - type Vtable = ILoggingChannelFactory2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILoggingChannelFactory2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4c6ef5dd_3b27_4dc9_99f0_299c6e4603a1); -} +::windows_core::imp::com_interface!(ILoggingChannelFactory2, ILoggingChannelFactory2_Vtbl, 0x4c6ef5dd_3b27_4dc9_99f0_299c6e4603a1); #[repr(C)] #[doc(hidden)] pub struct ILoggingChannelFactory2_Vtbl { @@ -398,16 +275,7 @@ pub struct ILoggingChannelFactory2_Vtbl { pub CreateWithOptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows_core::HSTRING>, options: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateWithOptionsAndId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows_core::HSTRING>, options: *mut ::core::ffi::c_void, id: ::windows_core::GUID, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILoggingChannelOptions(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILoggingChannelOptions { - type Vtable = ILoggingChannelOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILoggingChannelOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc3e847ff_0ebb_4a53_8c54_dec24926cb2c); -} +::windows_core::imp::com_interface!(ILoggingChannelOptions, ILoggingChannelOptions_Vtbl, 0xc3e847ff_0ebb_4a53_8c54_dec24926cb2c); #[repr(C)] #[doc(hidden)] pub struct ILoggingChannelOptions_Vtbl { @@ -415,32 +283,14 @@ pub struct ILoggingChannelOptions_Vtbl { pub Group: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, pub SetGroup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILoggingChannelOptionsFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILoggingChannelOptionsFactory { - type Vtable = ILoggingChannelOptionsFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILoggingChannelOptionsFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa93151da_7faf_4191_8755_5e86dc65d896); -} +::windows_core::imp::com_interface!(ILoggingChannelOptionsFactory, ILoggingChannelOptionsFactory_Vtbl, 0xa93151da_7faf_4191_8755_5e86dc65d896); #[repr(C)] #[doc(hidden)] pub struct ILoggingChannelOptionsFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, group: ::windows_core::GUID, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILoggingFields(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILoggingFields { - type Vtable = ILoggingFields_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILoggingFields { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd7f6b7af_762d_4579_83bd_52c23bc333bc); -} +::windows_core::imp::com_interface!(ILoggingFields, ILoggingFields_Vtbl, 0xd7f6b7af_762d_4579_83bd_52c23bc333bc); #[repr(C)] #[doc(hidden)] pub struct ILoggingFields_Vtbl { @@ -561,16 +411,7 @@ pub struct ILoggingFields_Vtbl { pub AddRectArrayWithFormat: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows_core::HSTRING>, value_array_size: u32, value: *const super::Rect, format: LoggingFieldFormat) -> ::windows_core::HRESULT, pub AddRectArrayWithFormatAndTags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows_core::HSTRING>, value_array_size: u32, value: *const super::Rect, format: LoggingFieldFormat, tags: i32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILoggingOptions(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILoggingOptions { - type Vtable = ILoggingOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILoggingOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x90bc7850_0192_4f5d_ac26_006adaca12d8); -} +::windows_core::imp::com_interface!(ILoggingOptions, ILoggingOptions_Vtbl, 0x90bc7850_0192_4f5d_ac26_006adaca12d8); #[repr(C)] #[doc(hidden)] pub struct ILoggingOptions_Vtbl { @@ -588,25 +429,16 @@ pub struct ILoggingOptions_Vtbl { pub RelatedActivityId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, pub SetRelatedActivityId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILoggingOptionsFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILoggingOptionsFactory { - type Vtable = ILoggingOptionsFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILoggingOptionsFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd713c6cb_98ab_464b_9f22_a3268478368a); -} +::windows_core::imp::com_interface!(ILoggingOptionsFactory, ILoggingOptionsFactory_Vtbl, 0xd713c6cb_98ab_464b_9f22_a3268478368a); #[repr(C)] #[doc(hidden)] pub struct ILoggingOptionsFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateWithKeywords: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, keywords: i64, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILoggingSession(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ILoggingSession, ILoggingSession_Vtbl, 0x6221f306_9380_4ad7_baf5_41ea9310d768); +::windows_core::imp::interface_hierarchy!(ILoggingSession, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ILoggingSession, super::IClosable); impl ILoggingSession { pub fn Name(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -619,51 +451,43 @@ impl ILoggingSession { #[cfg(feature = "Storage")] pub fn SaveToFileAsync(&self, folder: P0, filename: &::windows_core::HSTRING) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).SaveToFileAsync)(::windows_core::Interface::as_raw(this), folder.try_into_param()?.abi(), ::core::mem::transmute_copy(filename), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SaveToFileAsync)(::windows_core::Interface::as_raw(this), folder.into_param().abi(), ::core::mem::transmute_copy(filename), &mut result__).from_abi(result__) } } pub fn AddLoggingChannel(&self, loggingchannel: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).AddLoggingChannel)(::windows_core::Interface::as_raw(this), loggingchannel.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).AddLoggingChannel)(::windows_core::Interface::as_raw(this), loggingchannel.into_param().abi()).ok() } } pub fn AddLoggingChannelWithLevel(&self, loggingchannel: P0, maxlevel: LoggingLevel) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).AddLoggingChannelWithLevel)(::windows_core::Interface::as_raw(this), loggingchannel.try_into_param()?.abi(), maxlevel).ok() } + unsafe { (::windows_core::Interface::vtable(this).AddLoggingChannelWithLevel)(::windows_core::Interface::as_raw(this), loggingchannel.into_param().abi(), maxlevel).ok() } } pub fn RemoveLoggingChannel(&self, loggingchannel: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).RemoveLoggingChannel)(::windows_core::Interface::as_raw(this), loggingchannel.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).RemoveLoggingChannel)(::windows_core::Interface::as_raw(this), loggingchannel.into_param().abi()).ok() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } } -::windows_core::imp::interface_hierarchy!(ILoggingSession, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ILoggingSession {} impl ::windows_core::RuntimeType for ILoggingSession { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for ILoggingSession { - type Vtable = ILoggingSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILoggingSession { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6221f306_9380_4ad7_baf5_41ea9310d768); -} #[repr(C)] #[doc(hidden)] pub struct ILoggingSession_Vtbl { @@ -677,25 +501,15 @@ pub struct ILoggingSession_Vtbl { pub AddLoggingChannelWithLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, loggingchannel: *mut ::core::ffi::c_void, maxlevel: LoggingLevel) -> ::windows_core::HRESULT, pub RemoveLoggingChannel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, loggingchannel: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILoggingSessionFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILoggingSessionFactory { - type Vtable = ILoggingSessionFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILoggingSessionFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4e937ee5_58fd_45e0_8c2f_a132eff95c1e); -} +::windows_core::imp::com_interface!(ILoggingSessionFactory, ILoggingSessionFactory_Vtbl, 0x4e937ee5_58fd_45e0_8c2f_a132eff95c1e); #[repr(C)] #[doc(hidden)] pub struct ILoggingSessionFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILoggingTarget(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ILoggingTarget, ILoggingTarget_Vtbl, 0x65f16c35_e388_4e26_b17a_f51cd3a83916); +::windows_core::imp::interface_hierarchy!(ILoggingTarget, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ILoggingTarget { pub fn IsEnabled(&self) -> ::windows_core::Result { let this = self; @@ -783,16 +597,9 @@ impl ILoggingTarget { } } } -::windows_core::imp::interface_hierarchy!(ILoggingTarget, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for ILoggingTarget { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for ILoggingTarget { - type Vtable = ILoggingTarget_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILoggingTarget { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x65f16c35_e388_4e26_b17a_f51cd3a83916); -} #[repr(C)] #[doc(hidden)] pub struct ILoggingTarget_Vtbl { @@ -809,16 +616,7 @@ pub struct ILoggingTarget_Vtbl { pub StartActivityWithFieldsAndLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, starteventname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, fields: *mut ::core::ffi::c_void, level: LoggingLevel, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub StartActivityWithFieldsAndOptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, starteventname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, fields: *mut ::core::ffi::c_void, level: LoggingLevel, options: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITracingStatusChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITracingStatusChangedEventArgs { - type Vtable = ITracingStatusChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITracingStatusChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x410b7711_ff3b_477f_9c9a_d2efda302dc3); -} +::windows_core::imp::com_interface!(ITracingStatusChangedEventArgs, ITracingStatusChangedEventArgs_Vtbl, 0x410b7711_ff3b_477f_9c9a_d2efda302dc3); #[repr(C)] #[doc(hidden)] pub struct ITracingStatusChangedEventArgs_Vtbl { @@ -867,6 +665,7 @@ impl ::windows_core::RuntimeName for AsyncCausalityTracer { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ErrorDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ErrorDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ErrorDetails { pub fn Description(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -906,22 +705,21 @@ impl ::windows_core::RuntimeType for ErrorDetails { } unsafe impl ::windows_core::Interface for ErrorDetails { type Vtable = IErrorDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ErrorDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ErrorDetails { const NAME: &'static str = "Windows.Foundation.Diagnostics.ErrorDetails"; } -::windows_core::imp::interface_hierarchy!(ErrorDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ErrorDetails {} unsafe impl ::core::marker::Sync for ErrorDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct FileLoggingSession(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(FileLoggingSession, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(FileLoggingSession, super::IClosable, IFileLoggingSession); impl FileLoggingSession { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Name(&self) -> ::windows_core::Result<::windows_core::HSTRING> { @@ -933,24 +731,24 @@ impl FileLoggingSession { } pub fn AddLoggingChannel(&self, loggingchannel: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).AddLoggingChannel)(::windows_core::Interface::as_raw(this), loggingchannel.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).AddLoggingChannel)(::windows_core::Interface::as_raw(this), loggingchannel.into_param().abi()).ok() } } pub fn AddLoggingChannelWithLevel(&self, loggingchannel: P0, maxlevel: LoggingLevel) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).AddLoggingChannelWithLevel)(::windows_core::Interface::as_raw(this), loggingchannel.try_into_param()?.abi(), maxlevel).ok() } + unsafe { (::windows_core::Interface::vtable(this).AddLoggingChannelWithLevel)(::windows_core::Interface::as_raw(this), loggingchannel.into_param().abi(), maxlevel).ok() } } pub fn RemoveLoggingChannel(&self, loggingchannel: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).RemoveLoggingChannel)(::windows_core::Interface::as_raw(this), loggingchannel.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).RemoveLoggingChannel)(::windows_core::Interface::as_raw(this), loggingchannel.into_param().abi()).ok() } } #[doc = "Required features: `\"Storage\"`"] #[cfg(feature = "Storage")] @@ -992,21 +790,17 @@ impl ::windows_core::RuntimeType for FileLoggingSession { } unsafe impl ::windows_core::Interface for FileLoggingSession { type Vtable = IFileLoggingSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for FileLoggingSession { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for FileLoggingSession { const NAME: &'static str = "Windows.Foundation.Diagnostics.FileLoggingSession"; } -::windows_core::imp::interface_hierarchy!(FileLoggingSession, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for FileLoggingSession {} -impl ::windows_core::CanTryInto for FileLoggingSession {} unsafe impl ::core::marker::Send for FileLoggingSession {} unsafe impl ::core::marker::Sync for FileLoggingSession {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LogFileGeneratedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LogFileGeneratedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl LogFileGeneratedEventArgs { #[doc = "Required features: `\"Storage\"`"] #[cfg(feature = "Storage")] @@ -1023,22 +817,21 @@ impl ::windows_core::RuntimeType for LogFileGeneratedEventArgs { } unsafe impl ::windows_core::Interface for LogFileGeneratedEventArgs { type Vtable = ILogFileGeneratedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LogFileGeneratedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LogFileGeneratedEventArgs { const NAME: &'static str = "Windows.Foundation.Diagnostics.LogFileGeneratedEventArgs"; } -::windows_core::imp::interface_hierarchy!(LogFileGeneratedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for LogFileGeneratedEventArgs {} unsafe impl ::core::marker::Sync for LogFileGeneratedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LoggingActivity(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LoggingActivity, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(LoggingActivity, super::IClosable, ILoggingTarget); impl LoggingActivity { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Name(&self) -> ::windows_core::Result<::windows_core::HSTRING> { @@ -1056,21 +849,21 @@ impl LoggingActivity { } } pub fn Channel(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Channel)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn StopActivity(&self, stopeventname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopActivity)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(stopeventname)).ok() } } pub fn StopActivityWithFields(&self, stopeventname: &::windows_core::HSTRING, fields: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StopActivityWithFieldsAndOptions(&self, stopeventname: &::windows_core::HSTRING, fields: P0, options: P1) -> ::windows_core::Result<()> @@ -1078,64 +871,64 @@ impl LoggingActivity { P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn CreateLoggingActivity(activityname: &::windows_core::HSTRING, loggingchannel: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateLoggingActivity)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(activityname), loggingchannel.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn CreateLoggingActivityWithLevel(activityname: &::windows_core::HSTRING, loggingchannel: P0, level: LoggingLevel) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), level, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateLoggingActivityWithLevel)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(activityname), loggingchannel.into_param().abi(), level, &mut result__).from_abi(result__) }) } pub fn IsEnabled(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsEnabled)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsEnabledWithLevel(&self, level: LoggingLevel) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsEnabledWithLevel)(::windows_core::Interface::as_raw(this), level, &mut result__).from_abi(result__) } } pub fn IsEnabledWithLevelAndKeywords(&self, level: LoggingLevel, keywords: i64) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsEnabledWithLevelAndKeywords)(::windows_core::Interface::as_raw(this), level, keywords, &mut result__).from_abi(result__) } } pub fn LogEvent(&self, eventname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).LogEvent)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(eventname)).ok() } } pub fn LogEventWithFields(&self, eventname: &::windows_core::HSTRING, fields: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn LogEventWithFieldsAndLevel(&self, eventname: &::windows_core::HSTRING, fields: P0, level: LoggingLevel) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn LogEventWithFieldsAndOptions(&self, eventname: &::windows_core::HSTRING, fields: P0, level: LoggingLevel, options: P1) -> ::windows_core::Result<()> @@ -1143,11 +936,11 @@ impl LoggingActivity { P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartActivity(&self, starteventname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).StartActivity)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(starteventname), &mut result__).from_abi(result__) @@ -1157,7 +950,7 @@ impl LoggingActivity { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -1167,7 +960,7 @@ impl LoggingActivity { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -1178,7 +971,7 @@ impl LoggingActivity { P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -1195,24 +988,21 @@ impl ::windows_core::RuntimeType for LoggingActivity { } unsafe impl ::windows_core::Interface for LoggingActivity { type Vtable = ILoggingActivity_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LoggingActivity { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LoggingActivity { const NAME: &'static str = "Windows.Foundation.Diagnostics.LoggingActivity"; } -::windows_core::imp::interface_hierarchy!(LoggingActivity, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for LoggingActivity {} -impl ::windows_core::CanTryInto for LoggingActivity {} unsafe impl ::core::marker::Send for LoggingActivity {} unsafe impl ::core::marker::Sync for LoggingActivity {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LoggingChannel(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LoggingChannel, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(LoggingChannel, super::IClosable, ILoggingChannel, ILoggingTarget); impl LoggingChannel { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Name(&self) -> ::windows_core::Result<::windows_core::HSTRING> { @@ -1267,7 +1057,7 @@ impl LoggingChannel { unsafe { (::windows_core::Interface::vtable(this).RemoveLoggingEnabled)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn Id(&self) -> ::windows_core::Result<::windows_core::GUID> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Id)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1300,42 +1090,42 @@ impl LoggingChannel { }) } pub fn IsEnabled(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsEnabled)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsEnabledWithLevel(&self, level: LoggingLevel) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsEnabledWithLevel)(::windows_core::Interface::as_raw(this), level, &mut result__).from_abi(result__) } } pub fn IsEnabledWithLevelAndKeywords(&self, level: LoggingLevel, keywords: i64) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsEnabledWithLevelAndKeywords)(::windows_core::Interface::as_raw(this), level, keywords, &mut result__).from_abi(result__) } } pub fn LogEvent(&self, eventname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).LogEvent)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(eventname)).ok() } } pub fn LogEventWithFields(&self, eventname: &::windows_core::HSTRING, fields: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn LogEventWithFieldsAndLevel(&self, eventname: &::windows_core::HSTRING, fields: P0, level: LoggingLevel) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn LogEventWithFieldsAndOptions(&self, eventname: &::windows_core::HSTRING, fields: P0, level: LoggingLevel, options: P1) -> ::windows_core::Result<()> @@ -1343,11 +1133,11 @@ impl LoggingChannel { P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartActivity(&self, starteventname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).StartActivity)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(starteventname), &mut result__).from_abi(result__) @@ -1357,7 +1147,7 @@ impl LoggingChannel { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -1367,7 +1157,7 @@ impl LoggingChannel { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -1378,7 +1168,7 @@ impl LoggingChannel { P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -1400,22 +1190,17 @@ impl ::windows_core::RuntimeType for LoggingChannel { } unsafe impl ::windows_core::Interface for LoggingChannel { type Vtable = ILoggingChannel_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LoggingChannel { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LoggingChannel { const NAME: &'static str = "Windows.Foundation.Diagnostics.LoggingChannel"; } -::windows_core::imp::interface_hierarchy!(LoggingChannel, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for LoggingChannel {} -impl ::windows_core::CanTryInto for LoggingChannel {} -impl ::windows_core::CanTryInto for LoggingChannel {} unsafe impl ::core::marker::Send for LoggingChannel {} unsafe impl ::core::marker::Sync for LoggingChannel {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LoggingChannelOptions(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LoggingChannelOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); impl LoggingChannelOptions { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1452,19 +1237,17 @@ impl ::windows_core::RuntimeType for LoggingChannelOptions { } unsafe impl ::windows_core::Interface for LoggingChannelOptions { type Vtable = ILoggingChannelOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LoggingChannelOptions { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LoggingChannelOptions { const NAME: &'static str = "Windows.Foundation.Diagnostics.LoggingChannelOptions"; } -::windows_core::imp::interface_hierarchy!(LoggingChannelOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for LoggingChannelOptions {} unsafe impl ::core::marker::Sync for LoggingChannelOptions {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LoggingFields(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LoggingFields, ::windows_core::IUnknown, ::windows_core::IInspectable); impl LoggingFields { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1939,19 +1722,17 @@ impl ::windows_core::RuntimeType for LoggingFields { } unsafe impl ::windows_core::Interface for LoggingFields { type Vtable = ILoggingFields_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LoggingFields { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LoggingFields { const NAME: &'static str = "Windows.Foundation.Diagnostics.LoggingFields"; } -::windows_core::imp::interface_hierarchy!(LoggingFields, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for LoggingFields {} unsafe impl ::core::marker::Sync for LoggingFields {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LoggingOptions(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LoggingOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); impl LoggingOptions { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2043,22 +1824,21 @@ impl ::windows_core::RuntimeType for LoggingOptions { } unsafe impl ::windows_core::Interface for LoggingOptions { type Vtable = ILoggingOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LoggingOptions { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LoggingOptions { const NAME: &'static str = "Windows.Foundation.Diagnostics.LoggingOptions"; } -::windows_core::imp::interface_hierarchy!(LoggingOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for LoggingOptions {} unsafe impl ::core::marker::Sync for LoggingOptions {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LoggingSession(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LoggingSession, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(LoggingSession, super::IClosable, ILoggingSession); impl LoggingSession { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Name(&self) -> ::windows_core::Result<::windows_core::HSTRING> { @@ -2072,34 +1852,34 @@ impl LoggingSession { #[cfg(feature = "Storage")] pub fn SaveToFileAsync(&self, folder: P0, filename: &::windows_core::HSTRING) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).SaveToFileAsync)(::windows_core::Interface::as_raw(this), folder.try_into_param()?.abi(), ::core::mem::transmute_copy(filename), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SaveToFileAsync)(::windows_core::Interface::as_raw(this), folder.into_param().abi(), ::core::mem::transmute_copy(filename), &mut result__).from_abi(result__) } } pub fn AddLoggingChannel(&self, loggingchannel: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).AddLoggingChannel)(::windows_core::Interface::as_raw(this), loggingchannel.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).AddLoggingChannel)(::windows_core::Interface::as_raw(this), loggingchannel.into_param().abi()).ok() } } pub fn AddLoggingChannelWithLevel(&self, loggingchannel: P0, maxlevel: LoggingLevel) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).AddLoggingChannelWithLevel)(::windows_core::Interface::as_raw(this), loggingchannel.try_into_param()?.abi(), maxlevel).ok() } + unsafe { (::windows_core::Interface::vtable(this).AddLoggingChannelWithLevel)(::windows_core::Interface::as_raw(this), loggingchannel.into_param().abi(), maxlevel).ok() } } pub fn RemoveLoggingChannel(&self, loggingchannel: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).RemoveLoggingChannel)(::windows_core::Interface::as_raw(this), loggingchannel.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).RemoveLoggingChannel)(::windows_core::Interface::as_raw(this), loggingchannel.into_param().abi()).ok() } } pub fn Create(name: &::windows_core::HSTRING) -> ::windows_core::Result { Self::ILoggingSessionFactory(|this| unsafe { @@ -2118,21 +1898,18 @@ impl ::windows_core::RuntimeType for LoggingSession { } unsafe impl ::windows_core::Interface for LoggingSession { type Vtable = ILoggingSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LoggingSession { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LoggingSession { const NAME: &'static str = "Windows.Foundation.Diagnostics.LoggingSession"; } -::windows_core::imp::interface_hierarchy!(LoggingSession, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for LoggingSession {} -impl ::windows_core::CanTryInto for LoggingSession {} unsafe impl ::core::marker::Send for LoggingSession {} unsafe impl ::core::marker::Sync for LoggingSession {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RuntimeBrokerErrorSettings(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RuntimeBrokerErrorSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(RuntimeBrokerErrorSettings, IErrorReportingSettings); impl RuntimeBrokerErrorSettings { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2158,20 +1935,17 @@ impl ::windows_core::RuntimeType for RuntimeBrokerErrorSettings { } unsafe impl ::windows_core::Interface for RuntimeBrokerErrorSettings { type Vtable = IErrorReportingSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RuntimeBrokerErrorSettings { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RuntimeBrokerErrorSettings { const NAME: &'static str = "Windows.Foundation.Diagnostics.RuntimeBrokerErrorSettings"; } -::windows_core::imp::interface_hierarchy!(RuntimeBrokerErrorSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for RuntimeBrokerErrorSettings {} unsafe impl ::core::marker::Send for RuntimeBrokerErrorSettings {} unsafe impl ::core::marker::Sync for RuntimeBrokerErrorSettings {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct TracingStatusChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(TracingStatusChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl TracingStatusChangedEventArgs { pub fn Enabled(&self) -> ::windows_core::Result { let this = self; @@ -2193,14 +1967,11 @@ impl ::windows_core::RuntimeType for TracingStatusChangedEventArgs { } unsafe impl ::windows_core::Interface for TracingStatusChangedEventArgs { type Vtable = ITracingStatusChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TracingStatusChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for TracingStatusChangedEventArgs { const NAME: &'static str = "Windows.Foundation.Diagnostics.TracingStatusChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(TracingStatusChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for TracingStatusChangedEventArgs {} unsafe impl ::core::marker::Sync for TracingStatusChangedEventArgs {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Foundation/Metadata/mod.rs b/crates/libs/windows/src/Windows/Foundation/Metadata/mod.rs index a63d215de8..b4bc892863 100644 --- a/crates/libs/windows/src/Windows/Foundation/Metadata/mod.rs +++ b/crates/libs/windows/src/Windows/Foundation/Metadata/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IApiInformationStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IApiInformationStatics { - type Vtable = IApiInformationStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IApiInformationStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x997439fe_f681_4a11_b416_c13a47e8ba36); -} +::windows_core::imp::com_interface!(IApiInformationStatics, IApiInformationStatics_Vtbl, 0x997439fe_f681_4a11_b416_c13a47e8ba36); #[repr(C)] #[doc(hidden)] pub struct IApiInformationStatics_Vtbl { diff --git a/crates/libs/windows/src/Windows/Foundation/impl.rs b/crates/libs/windows/src/Windows/Foundation/impl.rs index 19a3b05865..15c3466572 100644 --- a/crates/libs/windows/src/Windows/Foundation/impl.rs +++ b/crates/libs/windows/src/Windows/Foundation/impl.rs @@ -38,7 +38,7 @@ impl IAsyncAction_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAsyncActionWithProgress_Impl: Sized + IAsyncInfo_Impl @@ -106,7 +106,7 @@ impl IAsyncActionWithProgress_ } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == & as ::windows_core::ComInterface>::IID + iid == & as ::windows_core::Interface>::IID } } pub trait IAsyncInfo_Impl: Sized { @@ -174,7 +174,7 @@ impl IAsyncInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAsyncOperation_Impl: Sized + IAsyncInfo_Impl @@ -228,7 +228,7 @@ impl IAsyncOperation_Vtbl bool { - iid == & as ::windows_core::ComInterface>::IID + iid == & as ::windows_core::Interface>::IID } } pub trait IAsyncOperationWithProgress_Impl: Sized + IAsyncInfo_Impl @@ -305,7 +305,7 @@ impl bool { - iid == & as ::windows_core::ComInterface>::IID + iid == & as ::windows_core::Interface>::IID } } pub trait IClosable_Impl: Sized { @@ -324,7 +324,7 @@ impl IClosable_Vtbl { Self { base__: ::windows_core::IInspectable_Vtbl::new::(), Close: Close:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IGetActivationFactory_Impl: Sized { @@ -353,7 +353,7 @@ impl IGetActivationFactory_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMemoryBuffer_Impl: Sized + IClosable_Impl { @@ -379,7 +379,7 @@ impl IMemoryBuffer_Vtbl { Self { base__: ::windows_core::IInspectable_Vtbl::new::(), CreateReference: CreateReference:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMemoryBufferReference_Impl: Sized + IClosable_Impl { @@ -427,7 +427,7 @@ impl IMemoryBufferReference_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPropertyValue_Impl: Sized { @@ -836,7 +836,7 @@ impl IPropertyValue_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IReference_Impl: Sized + IPropertyValue_Impl @@ -869,7 +869,7 @@ impl IReference_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == & as ::windows_core::ComInterface>::IID + iid == & as ::windows_core::Interface>::IID } } pub trait IReferenceArray_Impl: Sized + IPropertyValue_Impl @@ -903,7 +903,7 @@ impl IReferenceArray_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == & as ::windows_core::ComInterface>::IID + iid == & as ::windows_core::Interface>::IID } } pub trait IStringable_Impl: Sized { @@ -929,7 +929,7 @@ impl IStringable_Vtbl { Self { base__: ::windows_core::IInspectable_Vtbl::new::(), ToString: ToString:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWwwFormUrlDecoderEntry_Impl: Sized { @@ -972,6 +972,6 @@ impl IWwwFormUrlDecoderEntry_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/Foundation/mod.rs b/crates/libs/windows/src/Windows/Foundation/mod.rs index b4b7697692..224130912e 100644 --- a/crates/libs/windows/src/Windows/Foundation/mod.rs +++ b/crates/libs/windows/src/Windows/Foundation/mod.rs @@ -10,9 +10,9 @@ pub mod Metadata; #[cfg(feature = "Foundation_Numerics")] #[doc = "Required features: `\"Foundation_Numerics\"`"] pub mod Numerics; -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAsyncAction(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAsyncAction, IAsyncAction_Vtbl, 0x5a648006_843a_4da9_865b_9d26e5dfad7b); +::windows_core::imp::interface_hierarchy!(IAsyncAction, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IAsyncAction, IAsyncInfo); impl IAsyncAction { pub fn SetCompleted(&self, handler: P0) -> ::windows_core::Result<()> where @@ -33,37 +33,35 @@ impl IAsyncAction { unsafe { (::windows_core::Interface::vtable(this).GetResults)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Id(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Id)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Status(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Status)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ErrorCode(&self) -> ::windows_core::Result<::windows_core::HRESULT> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ErrorCode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Cancel(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Cancel)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } } -::windows_core::imp::interface_hierarchy!(IAsyncAction, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IAsyncAction {} impl ::windows_core::RuntimeType for IAsyncAction { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } @@ -98,12 +96,6 @@ impl ::std::future::Future for IAsyncAction { } unsafe impl ::core::marker::Send for IAsyncAction {} unsafe impl ::core::marker::Sync for IAsyncAction {} -unsafe impl ::windows_core::Interface for IAsyncAction { - type Vtable = IAsyncAction_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAsyncAction { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5a648006_843a_4da9_865b_9d26e5dfad7b); -} #[repr(C)] #[doc(hidden)] pub struct IAsyncAction_Vtbl { @@ -117,6 +109,11 @@ pub struct IAsyncAction_Vtbl { pub struct IAsyncActionWithProgress(::windows_core::IUnknown, ::core::marker::PhantomData) where TProgress: ::windows_core::RuntimeType + 'static; +impl ::windows_core::CanInto<::windows_core::IUnknown> for IAsyncActionWithProgress {} +impl ::windows_core::CanInto<::windows_core::IInspectable> for IAsyncActionWithProgress {} +impl ::windows_core::CanInto for IAsyncActionWithProgress { + const QUERY: bool = true; +} impl IAsyncActionWithProgress { pub fn SetProgress(&self, handler: P0) -> ::windows_core::Result<()> where @@ -151,38 +148,35 @@ impl IAsyncActionWithProgress< unsafe { (::windows_core::Interface::vtable(this).GetResults)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Id(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Id)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Status(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Status)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ErrorCode(&self) -> ::windows_core::Result<::windows_core::HRESULT> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ErrorCode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Cancel(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Cancel)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } } -impl ::windows_core::CanInto<::windows_core::IUnknown> for IAsyncActionWithProgress {} -impl ::windows_core::CanInto<::windows_core::IInspectable> for IAsyncActionWithProgress {} -impl ::windows_core::CanTryInto for IAsyncActionWithProgress {} impl ::windows_core::RuntimeType for IAsyncActionWithProgress { const SIGNATURE: ::windows_core::imp::ConstBuffer = { ::windows_core::imp::ConstBuffer::new().push_slice(b"pinterface(").push_slice(b"{1f6db258-e803-48a1-9546-eb7353398884}").push_slice(b";").push_other(TProgress::SIGNATURE).push_slice(b")") }; } @@ -219,8 +213,6 @@ unsafe impl ::core::marker::Se unsafe impl ::core::marker::Sync for IAsyncActionWithProgress {} unsafe impl ::windows_core::Interface for IAsyncActionWithProgress { type Vtable = IAsyncActionWithProgress_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAsyncActionWithProgress { const IID: ::windows_core::GUID = ::windows_core::GUID::from_signature(::SIGNATURE); } #[repr(C)] @@ -237,9 +229,8 @@ where pub GetResults: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub TProgress: ::core::marker::PhantomData, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAsyncInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAsyncInfo, IAsyncInfo_Vtbl, 0x00000036_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IAsyncInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IAsyncInfo { pub fn Id(&self) -> ::windows_core::Result { let this = self; @@ -271,16 +262,9 @@ impl IAsyncInfo { unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } } -::windows_core::imp::interface_hierarchy!(IAsyncInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IAsyncInfo { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IAsyncInfo { - type Vtable = IAsyncInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAsyncInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00000036_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IAsyncInfo_Vtbl { @@ -296,6 +280,11 @@ pub struct IAsyncInfo_Vtbl { pub struct IAsyncOperation(::windows_core::IUnknown, ::core::marker::PhantomData) where TResult: ::windows_core::RuntimeType + 'static; +impl ::windows_core::CanInto<::windows_core::IUnknown> for IAsyncOperation {} +impl ::windows_core::CanInto<::windows_core::IInspectable> for IAsyncOperation {} +impl ::windows_core::CanInto for IAsyncOperation { + const QUERY: bool = true; +} impl IAsyncOperation { pub fn SetCompleted(&self, handler: P0) -> ::windows_core::Result<()> where @@ -319,38 +308,35 @@ impl IAsyncOperation { } } pub fn Id(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Id)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Status(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Status)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ErrorCode(&self) -> ::windows_core::Result<::windows_core::HRESULT> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ErrorCode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Cancel(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Cancel)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } } -impl ::windows_core::CanInto<::windows_core::IUnknown> for IAsyncOperation {} -impl ::windows_core::CanInto<::windows_core::IInspectable> for IAsyncOperation {} -impl ::windows_core::CanTryInto for IAsyncOperation {} impl ::windows_core::RuntimeType for IAsyncOperation { const SIGNATURE: ::windows_core::imp::ConstBuffer = { ::windows_core::imp::ConstBuffer::new().push_slice(b"pinterface(").push_slice(b"{9fc2b0bb-e446-44e2-aa61-9cab8f636af2}").push_slice(b";").push_other(TResult::SIGNATURE).push_slice(b")") }; } @@ -387,8 +373,6 @@ unsafe impl ::core::marker::Send unsafe impl ::core::marker::Sync for IAsyncOperation {} unsafe impl ::windows_core::Interface for IAsyncOperation { type Vtable = IAsyncOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAsyncOperation { const IID: ::windows_core::GUID = ::windows_core::GUID::from_signature(::SIGNATURE); } #[repr(C)] @@ -409,6 +393,11 @@ pub struct IAsyncOperationWithProgress(::windows_core::IUnkn where TResult: ::windows_core::RuntimeType + 'static, TProgress: ::windows_core::RuntimeType + 'static; +impl ::windows_core::CanInto<::windows_core::IUnknown> for IAsyncOperationWithProgress {} +impl ::windows_core::CanInto<::windows_core::IInspectable> for IAsyncOperationWithProgress {} +impl ::windows_core::CanInto for IAsyncOperationWithProgress { + const QUERY: bool = true; +} impl IAsyncOperationWithProgress { pub fn SetProgress(&self, handler: P0) -> ::windows_core::Result<()> where @@ -446,38 +435,35 @@ impl ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Id)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Status(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Status)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ErrorCode(&self) -> ::windows_core::Result<::windows_core::HRESULT> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ErrorCode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Cancel(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Cancel)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } } -impl ::windows_core::CanInto<::windows_core::IUnknown> for IAsyncOperationWithProgress {} -impl ::windows_core::CanInto<::windows_core::IInspectable> for IAsyncOperationWithProgress {} -impl ::windows_core::CanTryInto for IAsyncOperationWithProgress {} impl ::windows_core::RuntimeType for IAsyncOperationWithProgress { const SIGNATURE: ::windows_core::imp::ConstBuffer = { ::windows_core::imp::ConstBuffer::new().push_slice(b"pinterface(").push_slice(b"{b5d036d7-e297-498f-ba60-0289e76e23dd}").push_slice(b";").push_other(TResult::SIGNATURE).push_slice(b";").push_other(TProgress::SIGNATURE).push_slice(b")") }; } @@ -514,8 +500,6 @@ unsafe impl ::core::marker::Sync for IAsyncOperationWithProgress {} unsafe impl ::windows_core::Interface for IAsyncOperationWithProgress { type Vtable = IAsyncOperationWithProgress_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAsyncOperationWithProgress { const IID: ::windows_core::GUID = ::windows_core::GUID::from_signature(::SIGNATURE); } #[repr(C)] @@ -534,66 +518,39 @@ where pub TResult: ::core::marker::PhantomData, pub TProgress: ::core::marker::PhantomData, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IClosable(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IClosable, IClosable_Vtbl, 0x30d5a829_7fa4_4026_83bb_d75bae4ea99e); +::windows_core::imp::interface_hierarchy!(IClosable, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IClosable { pub fn Close(&self) -> ::windows_core::Result<()> { let this = self; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } } -::windows_core::imp::interface_hierarchy!(IClosable, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IClosable { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IClosable { - type Vtable = IClosable_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IClosable { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x30d5a829_7fa4_4026_83bb_d75bae4ea99e); -} #[repr(C)] #[doc(hidden)] pub struct IClosable_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Close: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDeferral(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDeferral { - type Vtable = IDeferral_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDeferral { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd6269732_3b7f_46a7_b40b_4fdca2a2c693); -} +::windows_core::imp::com_interface!(IDeferral, IDeferral_Vtbl, 0xd6269732_3b7f_46a7_b40b_4fdca2a2c693); #[repr(C)] #[doc(hidden)] pub struct IDeferral_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Complete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDeferralFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDeferralFactory { - type Vtable = IDeferralFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDeferralFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x65a1ecc5_3fb5_4832_8ca9_f061b281d13a); -} +::windows_core::imp::com_interface!(IDeferralFactory, IDeferralFactory_Vtbl, 0x65a1ecc5_3fb5_4832_8ca9_f061b281d13a); #[repr(C)] #[doc(hidden)] pub struct IDeferralFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGetActivationFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IGetActivationFactory, IGetActivationFactory_Vtbl, 0x4edb8ee2_96dd_49a7_94f7_4607ddab8e3c); +::windows_core::imp::interface_hierarchy!(IGetActivationFactory, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IGetActivationFactory { pub fn GetActivationFactory(&self, activatableclassid: &::windows_core::HSTRING) -> ::windows_core::Result<::windows_core::IInspectable> { let this = self; @@ -603,32 +560,16 @@ impl IGetActivationFactory { } } } -::windows_core::imp::interface_hierarchy!(IGetActivationFactory, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IGetActivationFactory { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IGetActivationFactory { - type Vtable = IGetActivationFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGetActivationFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4edb8ee2_96dd_49a7_94f7_4607ddab8e3c); -} #[repr(C)] #[doc(hidden)] pub struct IGetActivationFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetActivationFactory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, activatableclassid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGuidHelperStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGuidHelperStatics { - type Vtable = IGuidHelperStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGuidHelperStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x59c7966b_ae52_5283_ad7f_a1b9e9678add); -} +::windows_core::imp::com_interface!(IGuidHelperStatics, IGuidHelperStatics_Vtbl, 0x59c7966b_ae52_5283_ad7f_a1b9e9678add); #[repr(C)] #[doc(hidden)] pub struct IGuidHelperStatics_Vtbl { @@ -637,9 +578,9 @@ pub struct IGuidHelperStatics_Vtbl { pub Empty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, pub Equals: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, target: &::windows_core::GUID, value: &::windows_core::GUID, result__: *mut bool) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMemoryBuffer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMemoryBuffer, IMemoryBuffer_Vtbl, 0xfbc4dd2a_245b_11e4_af98_689423260cf8); +::windows_core::imp::interface_hierarchy!(IMemoryBuffer, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IMemoryBuffer, IClosable); impl IMemoryBuffer { pub fn CreateReference(&self) -> ::windows_core::Result { let this = self; @@ -649,46 +590,29 @@ impl IMemoryBuffer { } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } } -::windows_core::imp::interface_hierarchy!(IMemoryBuffer, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IMemoryBuffer {} impl ::windows_core::RuntimeType for IMemoryBuffer { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IMemoryBuffer { - type Vtable = IMemoryBuffer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMemoryBuffer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfbc4dd2a_245b_11e4_af98_689423260cf8); -} #[repr(C)] #[doc(hidden)] pub struct IMemoryBuffer_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateReference: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMemoryBufferFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMemoryBufferFactory { - type Vtable = IMemoryBufferFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMemoryBufferFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfbc4dd2b_245b_11e4_af98_689423260cf8); -} +::windows_core::imp::com_interface!(IMemoryBufferFactory, IMemoryBufferFactory_Vtbl, 0xfbc4dd2b_245b_11e4_af98_689423260cf8); #[repr(C)] #[doc(hidden)] pub struct IMemoryBufferFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, capacity: u32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMemoryBufferReference(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMemoryBufferReference, IMemoryBufferReference_Vtbl, 0xfbc4dd29_245b_11e4_af98_689423260cf8); +::windows_core::imp::interface_hierarchy!(IMemoryBufferReference, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IMemoryBufferReference, IClosable); impl IMemoryBufferReference { pub fn Capacity(&self) -> ::windows_core::Result { let this = self; @@ -712,21 +636,13 @@ impl IMemoryBufferReference { unsafe { (::windows_core::Interface::vtable(this).RemoveClosed)(::windows_core::Interface::as_raw(this), cookie).ok() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } } -::windows_core::imp::interface_hierarchy!(IMemoryBufferReference, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IMemoryBufferReference {} impl ::windows_core::RuntimeType for IMemoryBufferReference { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IMemoryBufferReference { - type Vtable = IMemoryBufferReference_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMemoryBufferReference { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfbc4dd29_245b_11e4_af98_689423260cf8); -} #[repr(C)] #[doc(hidden)] pub struct IMemoryBufferReference_Vtbl { @@ -735,9 +651,8 @@ pub struct IMemoryBufferReference_Vtbl { pub Closed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveClosed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cookie: EventRegistrationToken) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPropertyValue(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPropertyValue, IPropertyValue_Vtbl, 0x4bd682dd_7554_40e9_9a9b_82654ede7e62); +::windows_core::imp::interface_hierarchy!(IPropertyValue, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IPropertyValue { pub fn Type(&self) -> ::windows_core::Result { let this = self; @@ -956,16 +871,9 @@ impl IPropertyValue { unsafe { (::windows_core::Interface::vtable(this).GetRectArray)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } } } -::windows_core::imp::interface_hierarchy!(IPropertyValue, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IPropertyValue { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IPropertyValue { - type Vtable = IPropertyValue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPropertyValue { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4bd682dd_7554_40e9_9a9b_82654ede7e62); -} #[repr(C)] #[doc(hidden)] pub struct IPropertyValue_Vtbl { @@ -1010,16 +918,7 @@ pub struct IPropertyValue_Vtbl { pub GetSizeArray: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value_array_size: *mut u32, value: *mut *mut Size) -> ::windows_core::HRESULT, pub GetRectArray: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value_array_size: *mut u32, value: *mut *mut Rect) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPropertyValueStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPropertyValueStatics { - type Vtable = IPropertyValueStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPropertyValueStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x629bdbc8_d932_4ff4_96b9_8d96c5c1e858); -} +::windows_core::imp::com_interface!(IPropertyValueStatics, IPropertyValueStatics_Vtbl, 0x629bdbc8_d932_4ff4_96b9_8d96c5c1e858); #[repr(C)] #[doc(hidden)] pub struct IPropertyValueStatics_Vtbl { @@ -1069,6 +968,11 @@ pub struct IPropertyValueStatics_Vtbl { pub struct IReference(::windows_core::IUnknown, ::core::marker::PhantomData) where T: ::windows_core::RuntimeType + 'static; +impl ::windows_core::CanInto<::windows_core::IUnknown> for IReference {} +impl ::windows_core::CanInto<::windows_core::IInspectable> for IReference {} +impl ::windows_core::CanInto for IReference { + const QUERY: bool = true; +} impl IReference { pub fn Value(&self) -> ::windows_core::Result { let this = self; @@ -1078,232 +982,227 @@ impl IReference { } } pub fn Type(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Type)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsNumericScalar(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsNumericScalar)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetUInt8(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetUInt8)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetInt16(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetInt16)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetUInt16(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetUInt16)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetInt32(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetInt32)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetUInt32(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetUInt32)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetInt64(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetInt64)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetUInt64(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetUInt64)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetSingle(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetSingle)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetDouble(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetDouble)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetChar16(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetChar16)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetBoolean(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetBoolean)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetString)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetGuid(&self) -> ::windows_core::Result<::windows_core::GUID> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetGuid)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetDateTime(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetDateTime)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetTimeSpan(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetTimeSpan)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetPoint(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetPoint)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetSize(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetSize)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetRect(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetRect)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetUInt8Array(&self, value: &mut ::windows_core::Array) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).GetUInt8Array)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } } pub fn GetInt16Array(&self, value: &mut ::windows_core::Array) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).GetInt16Array)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } } pub fn GetUInt16Array(&self, value: &mut ::windows_core::Array) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).GetUInt16Array)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } } pub fn GetInt32Array(&self, value: &mut ::windows_core::Array) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).GetInt32Array)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } } pub fn GetUInt32Array(&self, value: &mut ::windows_core::Array) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).GetUInt32Array)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } } pub fn GetInt64Array(&self, value: &mut ::windows_core::Array) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).GetInt64Array)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } } pub fn GetUInt64Array(&self, value: &mut ::windows_core::Array) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).GetUInt64Array)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } } pub fn GetSingleArray(&self, value: &mut ::windows_core::Array) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).GetSingleArray)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } } pub fn GetDoubleArray(&self, value: &mut ::windows_core::Array) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).GetDoubleArray)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } } pub fn GetChar16Array(&self, value: &mut ::windows_core::Array) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).GetChar16Array)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } } pub fn GetBooleanArray(&self, value: &mut ::windows_core::Array) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).GetBooleanArray)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } } pub fn GetStringArray(&self, value: &mut ::windows_core::Array<::windows_core::HSTRING>) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).GetStringArray)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } } pub fn GetInspectableArray(&self, value: &mut ::windows_core::Array<::windows_core::IInspectable>) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).GetInspectableArray)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } } pub fn GetGuidArray(&self, value: &mut ::windows_core::Array<::windows_core::GUID>) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).GetGuidArray)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } } pub fn GetDateTimeArray(&self, value: &mut ::windows_core::Array) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).GetDateTimeArray)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } } pub fn GetTimeSpanArray(&self, value: &mut ::windows_core::Array) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).GetTimeSpanArray)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } } pub fn GetPointArray(&self, value: &mut ::windows_core::Array) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).GetPointArray)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } } pub fn GetSizeArray(&self, value: &mut ::windows_core::Array) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).GetSizeArray)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } } pub fn GetRectArray(&self, value: &mut ::windows_core::Array) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).GetRectArray)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } } } -impl ::windows_core::CanInto<::windows_core::IUnknown> for IReference {} -impl ::windows_core::CanInto<::windows_core::IInspectable> for IReference {} -impl ::windows_core::CanTryInto for IReference {} impl ::windows_core::RuntimeType for IReference { const SIGNATURE: ::windows_core::imp::ConstBuffer = { ::windows_core::imp::ConstBuffer::new().push_slice(b"pinterface(").push_slice(b"{61c17706-2d65-11e0-9ae8-d48564015472}").push_slice(b";").push_other(T::SIGNATURE).push_slice(b")") }; } unsafe impl ::windows_core::Interface for IReference { type Vtable = IReference_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IReference { const IID: ::windows_core::GUID = ::windows_core::GUID::from_signature(::SIGNATURE); } #[repr(C)] @@ -1321,6 +1220,11 @@ where pub struct IReferenceArray(::windows_core::IUnknown, ::core::marker::PhantomData) where T: ::windows_core::RuntimeType + 'static; +impl ::windows_core::CanInto<::windows_core::IUnknown> for IReferenceArray {} +impl ::windows_core::CanInto<::windows_core::IInspectable> for IReferenceArray {} +impl ::windows_core::CanInto for IReferenceArray { + const QUERY: bool = true; +} impl IReferenceArray { pub fn Value(&self) -> ::windows_core::Result<::windows_core::Array> { let this = self; @@ -1330,232 +1234,227 @@ impl IReferenceArray { } } pub fn Type(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Type)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsNumericScalar(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsNumericScalar)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetUInt8(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetUInt8)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetInt16(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetInt16)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetUInt16(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetUInt16)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetInt32(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetInt32)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetUInt32(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetUInt32)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetInt64(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetInt64)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetUInt64(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetUInt64)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetSingle(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetSingle)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetDouble(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetDouble)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetChar16(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetChar16)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetBoolean(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetBoolean)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetString)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetGuid(&self) -> ::windows_core::Result<::windows_core::GUID> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetGuid)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetDateTime(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetDateTime)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetTimeSpan(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetTimeSpan)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetPoint(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetPoint)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetSize(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetSize)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetRect(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetRect)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetUInt8Array(&self, value: &mut ::windows_core::Array) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).GetUInt8Array)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } } pub fn GetInt16Array(&self, value: &mut ::windows_core::Array) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).GetInt16Array)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } } pub fn GetUInt16Array(&self, value: &mut ::windows_core::Array) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).GetUInt16Array)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } } pub fn GetInt32Array(&self, value: &mut ::windows_core::Array) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).GetInt32Array)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } } pub fn GetUInt32Array(&self, value: &mut ::windows_core::Array) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).GetUInt32Array)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } } pub fn GetInt64Array(&self, value: &mut ::windows_core::Array) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).GetInt64Array)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } } pub fn GetUInt64Array(&self, value: &mut ::windows_core::Array) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).GetUInt64Array)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } } pub fn GetSingleArray(&self, value: &mut ::windows_core::Array) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).GetSingleArray)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } } pub fn GetDoubleArray(&self, value: &mut ::windows_core::Array) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).GetDoubleArray)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } } pub fn GetChar16Array(&self, value: &mut ::windows_core::Array) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).GetChar16Array)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } } pub fn GetBooleanArray(&self, value: &mut ::windows_core::Array) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).GetBooleanArray)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } } pub fn GetStringArray(&self, value: &mut ::windows_core::Array<::windows_core::HSTRING>) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).GetStringArray)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } } pub fn GetInspectableArray(&self, value: &mut ::windows_core::Array<::windows_core::IInspectable>) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).GetInspectableArray)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } } pub fn GetGuidArray(&self, value: &mut ::windows_core::Array<::windows_core::GUID>) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).GetGuidArray)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } } pub fn GetDateTimeArray(&self, value: &mut ::windows_core::Array) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).GetDateTimeArray)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } } pub fn GetTimeSpanArray(&self, value: &mut ::windows_core::Array) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).GetTimeSpanArray)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } } pub fn GetPointArray(&self, value: &mut ::windows_core::Array) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).GetPointArray)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } } pub fn GetSizeArray(&self, value: &mut ::windows_core::Array) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).GetSizeArray)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } } pub fn GetRectArray(&self, value: &mut ::windows_core::Array) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).GetRectArray)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } } } -impl ::windows_core::CanInto<::windows_core::IUnknown> for IReferenceArray {} -impl ::windows_core::CanInto<::windows_core::IInspectable> for IReferenceArray {} -impl ::windows_core::CanTryInto for IReferenceArray {} impl ::windows_core::RuntimeType for IReferenceArray { const SIGNATURE: ::windows_core::imp::ConstBuffer = { ::windows_core::imp::ConstBuffer::new().push_slice(b"pinterface(").push_slice(b"{61c17707-2d65-11e0-9ae8-d48564015472}").push_slice(b";").push_other(T::SIGNATURE).push_slice(b")") }; } unsafe impl ::windows_core::Interface for IReferenceArray { type Vtable = IReferenceArray_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IReferenceArray { const IID: ::windows_core::GUID = ::windows_core::GUID::from_signature(::SIGNATURE); } #[repr(C)] @@ -1568,9 +1467,8 @@ where pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result_size__: *mut u32, result__: *mut *mut ::windows_core::AbiType) -> ::windows_core::HRESULT, pub T: ::core::marker::PhantomData, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStringable(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IStringable, IStringable_Vtbl, 0x96369f54_8eb6_48f0_abce_c1b211e627c3); +::windows_core::imp::interface_hierarchy!(IStringable, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IStringable { pub fn ToString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1580,32 +1478,16 @@ impl IStringable { } } } -::windows_core::imp::interface_hierarchy!(IStringable, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IStringable { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IStringable { - type Vtable = IStringable_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStringable { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x96369f54_8eb6_48f0_abce_c1b211e627c3); -} #[repr(C)] #[doc(hidden)] pub struct IStringable_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ToString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUriEscapeStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUriEscapeStatics { - type Vtable = IUriEscapeStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUriEscapeStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc1d432ba_c824_4452_a7fd_512bc3bbe9a1); -} +::windows_core::imp::com_interface!(IUriEscapeStatics, IUriEscapeStatics_Vtbl, 0xc1d432ba_c824_4452_a7fd_512bc3bbe9a1); #[repr(C)] #[doc(hidden)] pub struct IUriEscapeStatics_Vtbl { @@ -1613,16 +1495,7 @@ pub struct IUriEscapeStatics_Vtbl { pub UnescapeComponent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, tounescape: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub EscapeComponent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, toescape: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUriRuntimeClass(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUriRuntimeClass { - type Vtable = IUriRuntimeClass_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUriRuntimeClass { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9e365e57_48b2_4160_956f_c7385120bbfc); -} +::windows_core::imp::com_interface!(IUriRuntimeClass, IUriRuntimeClass_Vtbl, 0x9e365e57_48b2_4160_956f_c7385120bbfc); #[repr(C)] #[doc(hidden)] pub struct IUriRuntimeClass_Vtbl { @@ -1645,16 +1518,7 @@ pub struct IUriRuntimeClass_Vtbl { pub Equals: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, puri: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub CombineUri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, relativeuri: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUriRuntimeClassFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUriRuntimeClassFactory { - type Vtable = IUriRuntimeClassFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUriRuntimeClassFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x44a9796f_723e_4fdf_a218_033e75b0c084); -} +::windows_core::imp::com_interface!(IUriRuntimeClassFactory, IUriRuntimeClassFactory_Vtbl, 0x44a9796f_723e_4fdf_a218_033e75b0c084); #[repr(C)] #[doc(hidden)] pub struct IUriRuntimeClassFactory_Vtbl { @@ -1662,16 +1526,7 @@ pub struct IUriRuntimeClassFactory_Vtbl { pub CreateUri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uri: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateWithRelativeUri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, baseuri: ::std::mem::MaybeUninit<::windows_core::HSTRING>, relativeuri: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUriRuntimeClassWithAbsoluteCanonicalUri(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUriRuntimeClassWithAbsoluteCanonicalUri { - type Vtable = IUriRuntimeClassWithAbsoluteCanonicalUri_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUriRuntimeClassWithAbsoluteCanonicalUri { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x758d9661_221c_480f_a339_50656673f46f); -} +::windows_core::imp::com_interface!(IUriRuntimeClassWithAbsoluteCanonicalUri, IUriRuntimeClassWithAbsoluteCanonicalUri_Vtbl, 0x758d9661_221c_480f_a339_50656673f46f); #[repr(C)] #[doc(hidden)] pub struct IUriRuntimeClassWithAbsoluteCanonicalUri_Vtbl { @@ -1679,9 +1534,8 @@ pub struct IUriRuntimeClassWithAbsoluteCanonicalUri_Vtbl { pub AbsoluteCanonicalUri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub DisplayIri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWwwFormUrlDecoderEntry(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWwwFormUrlDecoderEntry, IWwwFormUrlDecoderEntry_Vtbl, 0x125e7431_f678_4e8e_b670_20a9b06c512d); +::windows_core::imp::interface_hierarchy!(IWwwFormUrlDecoderEntry, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IWwwFormUrlDecoderEntry { pub fn Name(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1698,16 +1552,9 @@ impl IWwwFormUrlDecoderEntry { } } } -::windows_core::imp::interface_hierarchy!(IWwwFormUrlDecoderEntry, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IWwwFormUrlDecoderEntry { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IWwwFormUrlDecoderEntry { - type Vtable = IWwwFormUrlDecoderEntry_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWwwFormUrlDecoderEntry { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x125e7431_f678_4e8e_b670_20a9b06c512d); -} #[repr(C)] #[doc(hidden)] pub struct IWwwFormUrlDecoderEntry_Vtbl { @@ -1715,32 +1562,14 @@ pub struct IWwwFormUrlDecoderEntry_Vtbl { pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWwwFormUrlDecoderRuntimeClass(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWwwFormUrlDecoderRuntimeClass { - type Vtable = IWwwFormUrlDecoderRuntimeClass_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWwwFormUrlDecoderRuntimeClass { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd45a0451_f225_4542_9296_0e1df5d254df); -} +::windows_core::imp::com_interface!(IWwwFormUrlDecoderRuntimeClass, IWwwFormUrlDecoderRuntimeClass_Vtbl, 0xd45a0451_f225_4542_9296_0e1df5d254df); #[repr(C)] #[doc(hidden)] pub struct IWwwFormUrlDecoderRuntimeClass_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetFirstValueByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWwwFormUrlDecoderRuntimeClassFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWwwFormUrlDecoderRuntimeClassFactory { - type Vtable = IWwwFormUrlDecoderRuntimeClassFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWwwFormUrlDecoderRuntimeClassFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5b8c6b3d_24ae_41b5_a1bf_f0c3d544845b); -} +::windows_core::imp::com_interface!(IWwwFormUrlDecoderRuntimeClassFactory, IWwwFormUrlDecoderRuntimeClassFactory_Vtbl, 0x5b8c6b3d_24ae_41b5_a1bf_f0c3d544845b); #[repr(C)] #[doc(hidden)] pub struct IWwwFormUrlDecoderRuntimeClassFactory_Vtbl { @@ -1750,9 +1579,11 @@ pub struct IWwwFormUrlDecoderRuntimeClassFactory_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Deferral(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Deferral, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(Deferral, IClosable); impl Deferral { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Complete(&self) -> ::windows_core::Result<()> { @@ -1779,15 +1610,11 @@ impl ::windows_core::RuntimeType for Deferral { } unsafe impl ::windows_core::Interface for Deferral { type Vtable = IDeferral_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Deferral { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Deferral { const NAME: &'static str = "Windows.Foundation.Deferral"; } -::windows_core::imp::interface_hierarchy!(Deferral, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for Deferral {} unsafe impl ::core::marker::Send for Deferral {} unsafe impl ::core::marker::Sync for Deferral {} pub struct GuidHelper; @@ -1822,9 +1649,11 @@ impl ::windows_core::RuntimeName for GuidHelper { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MemoryBuffer(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MemoryBuffer, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(MemoryBuffer, IClosable, IMemoryBuffer); impl MemoryBuffer { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn CreateReference(&self) -> ::windows_core::Result { @@ -1851,16 +1680,11 @@ impl ::windows_core::RuntimeType for MemoryBuffer { } unsafe impl ::windows_core::Interface for MemoryBuffer { type Vtable = IMemoryBuffer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MemoryBuffer { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MemoryBuffer { const NAME: &'static str = "Windows.Foundation.MemoryBuffer"; } -::windows_core::imp::interface_hierarchy!(MemoryBuffer, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for MemoryBuffer {} -impl ::windows_core::CanTryInto for MemoryBuffer {} unsafe impl ::core::marker::Send for MemoryBuffer {} unsafe impl ::core::marker::Sync for MemoryBuffer {} pub struct PropertyValue; @@ -2114,9 +1938,11 @@ impl ::windows_core::RuntimeName for PropertyValue { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Uri(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Uri, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(Uri, IStringable); impl Uri { pub fn ToString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ToString)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2269,14 +2095,14 @@ impl Uri { }) } pub fn AbsoluteCanonicalUri(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AbsoluteCanonicalUri)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn DisplayIri(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DisplayIri)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2298,25 +2124,24 @@ impl ::windows_core::RuntimeType for Uri { } unsafe impl ::windows_core::Interface for Uri { type Vtable = IUriRuntimeClass_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Uri { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Uri { const NAME: &'static str = "Windows.Foundation.Uri"; } -::windows_core::imp::interface_hierarchy!(Uri, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for Uri {} unsafe impl ::core::marker::Send for Uri {} unsafe impl ::core::marker::Sync for Uri {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WwwFormUrlDecoder(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WwwFormUrlDecoder, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(WwwFormUrlDecoder, Collections::IIterable::, Collections::IVectorView::); impl WwwFormUrlDecoder { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2325,7 +2150,7 @@ impl WwwFormUrlDecoder { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetAt(&self, index: u32) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetAt)(::windows_core::Interface::as_raw(this), index, &mut result__).from_abi(result__) @@ -2334,7 +2159,7 @@ impl WwwFormUrlDecoder { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Size(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Size)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2344,18 +2169,18 @@ impl WwwFormUrlDecoder { #[cfg(feature = "Foundation_Collections")] pub fn IndexOf(&self, value: P0, index: &mut u32) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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.try_into_param()?.abi(), index, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).IndexOf)(::windows_core::Interface::as_raw(this), value.into_param().abi(), index, &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetMany(&self, startindex: u32, items: &mut [::core::option::Option]) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetMany)(::windows_core::Interface::as_raw(this), startindex, items.len().try_into().unwrap(), ::core::mem::transmute_copy(&items), &mut result__).from_abi(result__) @@ -2385,9 +2210,7 @@ impl ::windows_core::RuntimeType for WwwFormUrlDecoder { } unsafe impl ::windows_core::Interface for WwwFormUrlDecoder { type Vtable = IWwwFormUrlDecoderRuntimeClass_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WwwFormUrlDecoder { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WwwFormUrlDecoder { const NAME: &'static str = "Windows.Foundation.WwwFormUrlDecoder"; @@ -2405,19 +2228,16 @@ impl ::core::iter::IntoIterator for &WwwFormUrlDecoder { type Item = IWwwFormUrlDecoderEntry; type IntoIter = Collections::VectorViewIterator; fn into_iter(self) -> Self::IntoIter { - Collections::VectorViewIterator::new(::windows_core::ComInterface::cast(self).ok()) + Collections::VectorViewIterator::new(::windows_core::Interface::cast(self).ok()) } } -::windows_core::imp::interface_hierarchy!(WwwFormUrlDecoder, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for WwwFormUrlDecoder {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for WwwFormUrlDecoder {} unsafe impl ::core::marker::Send for WwwFormUrlDecoder {} unsafe impl ::core::marker::Sync for WwwFormUrlDecoder {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WwwFormUrlDecoderEntry(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WwwFormUrlDecoderEntry, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(WwwFormUrlDecoderEntry, IWwwFormUrlDecoderEntry); impl WwwFormUrlDecoderEntry { pub fn Name(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -2439,15 +2259,11 @@ impl ::windows_core::RuntimeType for WwwFormUrlDecoderEntry { } unsafe impl ::windows_core::Interface for WwwFormUrlDecoderEntry { type Vtable = IWwwFormUrlDecoderEntry_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WwwFormUrlDecoderEntry { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WwwFormUrlDecoderEntry { const NAME: &'static str = "Windows.Foundation.WwwFormUrlDecoderEntry"; } -::windows_core::imp::interface_hierarchy!(WwwFormUrlDecoderEntry, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for WwwFormUrlDecoderEntry {} unsafe impl ::core::marker::Send for WwwFormUrlDecoderEntry {} unsafe impl ::core::marker::Sync for WwwFormUrlDecoderEntry {} #[repr(transparent)] @@ -2724,9 +2540,7 @@ impl ::core::default::Default for TimeSpan { unsafe { ::core::mem::zeroed() } } } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct AsyncActionCompletedHandler(pub ::windows_core::IUnknown); +::windows_core::imp::com_interface!(AsyncActionCompletedHandler, AsyncActionCompletedHandler_Vtbl, 0xa4ed5c81_76c9_40bd_8be6_b1d90fb20ae7); impl AsyncActionCompletedHandler { pub fn new, AsyncStatus) -> ::windows_core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = AsyncActionCompletedHandlerBox:: { vtable: &AsyncActionCompletedHandlerBox::::VTABLE, count: ::windows_core::imp::RefCount::new(1), invoke }; @@ -2734,10 +2548,10 @@ impl AsyncActionCompletedHandler { } pub fn Invoke(&self, asyncinfo: P0, asyncstatus: AsyncStatus) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).Invoke)(::windows_core::Interface::as_raw(this), asyncinfo.try_into_param()?.abi(), asyncstatus).ok() } + unsafe { (::windows_core::Interface::vtable(this).Invoke)(::windows_core::Interface::as_raw(this), asyncinfo.into_param().abi(), asyncstatus).ok() } } } #[repr(C)] @@ -2756,7 +2570,7 @@ impl, AsyncStatus) -> ::windows_c if iid.is_null() || interface.is_null() { return ::windows_core::HRESULT(-2147467261); } - *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; + *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::Interface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::Interface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; if (*interface).is_null() { ::windows_core::HRESULT(-2147467262) } else { @@ -2781,12 +2595,6 @@ impl, AsyncStatus) -> ::windows_c ((*this).invoke)(::windows_core::from_raw_borrowed(&asyncinfo), asyncstatus).into() } } -unsafe impl ::windows_core::Interface for AsyncActionCompletedHandler { - type Vtable = AsyncActionCompletedHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AsyncActionCompletedHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa4ed5c81_76c9_40bd_8be6_b1d90fb20ae7); -} impl ::windows_core::RuntimeType for AsyncActionCompletedHandler { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } @@ -2798,7 +2606,7 @@ pub struct AsyncActionCompletedHandler_Vtbl { } #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct AsyncActionProgressHandler(pub ::windows_core::IUnknown, ::core::marker::PhantomData) +pub struct AsyncActionProgressHandler(::windows_core::IUnknown, ::core::marker::PhantomData) where TProgress: ::windows_core::RuntimeType + 'static; impl AsyncActionProgressHandler { @@ -2808,11 +2616,11 @@ impl AsyncActionProgressHandle } pub fn Invoke(&self, asyncinfo: P0, progressinfo: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, P1: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).Invoke)(::windows_core::Interface::as_raw(this), asyncinfo.try_into_param()?.abi(), progressinfo.into_param().abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).Invoke)(::windows_core::Interface::as_raw(this), asyncinfo.into_param().abi(), progressinfo.into_param().abi()).ok() } } } #[repr(C)] @@ -2835,7 +2643,7 @@ impl as ::windows_core::ComInterface>::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; + *interface = if *iid == as ::windows_core::Interface>::IID || *iid == <::windows_core::IUnknown as ::windows_core::Interface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::Interface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; if (*interface).is_null() { ::windows_core::HRESULT(-2147467262) } else { @@ -2862,8 +2670,6 @@ impl ::windows_core::Interface for AsyncActionProgressHandler { type Vtable = AsyncActionProgressHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AsyncActionProgressHandler { const IID: ::windows_core::GUID = ::windows_core::GUID::from_signature(::SIGNATURE); } impl ::windows_core::RuntimeType for AsyncActionProgressHandler { @@ -2881,7 +2687,7 @@ where } #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct AsyncActionWithProgressCompletedHandler(pub ::windows_core::IUnknown, ::core::marker::PhantomData) +pub struct AsyncActionWithProgressCompletedHandler(::windows_core::IUnknown, ::core::marker::PhantomData) where TProgress: ::windows_core::RuntimeType + 'static; impl AsyncActionWithProgressCompletedHandler { @@ -2891,10 +2697,10 @@ impl AsyncActionWithProgressCo } pub fn Invoke(&self, asyncinfo: P0, asyncstatus: AsyncStatus) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).Invoke)(::windows_core::Interface::as_raw(this), asyncinfo.try_into_param()?.abi(), asyncstatus).ok() } + unsafe { (::windows_core::Interface::vtable(this).Invoke)(::windows_core::Interface::as_raw(this), asyncinfo.into_param().abi(), asyncstatus).ok() } } } #[repr(C)] @@ -2917,7 +2723,7 @@ impl as ::windows_core::ComInterface>::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; + *interface = if *iid == as ::windows_core::Interface>::IID || *iid == <::windows_core::IUnknown as ::windows_core::Interface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::Interface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; if (*interface).is_null() { ::windows_core::HRESULT(-2147467262) } else { @@ -2944,8 +2750,6 @@ impl ::windows_core::Interface for AsyncActionWithProgressCompletedHandler { type Vtable = AsyncActionWithProgressCompletedHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AsyncActionWithProgressCompletedHandler { const IID: ::windows_core::GUID = ::windows_core::GUID::from_signature(::SIGNATURE); } impl ::windows_core::RuntimeType for AsyncActionWithProgressCompletedHandler { @@ -2963,7 +2767,7 @@ where } #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct AsyncOperationCompletedHandler(pub ::windows_core::IUnknown, ::core::marker::PhantomData) +pub struct AsyncOperationCompletedHandler(::windows_core::IUnknown, ::core::marker::PhantomData) where TResult: ::windows_core::RuntimeType + 'static; impl AsyncOperationCompletedHandler { @@ -2973,10 +2777,10 @@ impl AsyncOperationCompletedHand } pub fn Invoke(&self, asyncinfo: P0, asyncstatus: AsyncStatus) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).Invoke)(::windows_core::Interface::as_raw(this), asyncinfo.try_into_param()?.abi(), asyncstatus).ok() } + unsafe { (::windows_core::Interface::vtable(this).Invoke)(::windows_core::Interface::as_raw(this), asyncinfo.into_param().abi(), asyncstatus).ok() } } } #[repr(C)] @@ -2999,7 +2803,7 @@ impl as ::windows_core::ComInterface>::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; + *interface = if *iid == as ::windows_core::Interface>::IID || *iid == <::windows_core::IUnknown as ::windows_core::Interface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::Interface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; if (*interface).is_null() { ::windows_core::HRESULT(-2147467262) } else { @@ -3026,8 +2830,6 @@ impl ::windows_core::Interface for AsyncOperationCompletedHandler { type Vtable = AsyncOperationCompletedHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AsyncOperationCompletedHandler { const IID: ::windows_core::GUID = ::windows_core::GUID::from_signature(::SIGNATURE); } impl ::windows_core::RuntimeType for AsyncOperationCompletedHandler { @@ -3045,7 +2847,7 @@ where } #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct AsyncOperationProgressHandler(pub ::windows_core::IUnknown, ::core::marker::PhantomData, ::core::marker::PhantomData) +pub struct AsyncOperationProgressHandler(::windows_core::IUnknown, ::core::marker::PhantomData, ::core::marker::PhantomData) where TResult: ::windows_core::RuntimeType + 'static, TProgress: ::windows_core::RuntimeType + 'static; @@ -3056,11 +2858,11 @@ impl(&self, asyncinfo: P0, progressinfo: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, P1: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).Invoke)(::windows_core::Interface::as_raw(this), asyncinfo.try_into_param()?.abi(), progressinfo.into_param().abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).Invoke)(::windows_core::Interface::as_raw(this), asyncinfo.into_param().abi(), progressinfo.into_param().abi()).ok() } } } #[repr(C)] @@ -3085,7 +2887,7 @@ impl as ::windows_core::ComInterface>::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; + *interface = if *iid == as ::windows_core::Interface>::IID || *iid == <::windows_core::IUnknown as ::windows_core::Interface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::Interface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; if (*interface).is_null() { ::windows_core::HRESULT(-2147467262) } else { @@ -3112,8 +2914,6 @@ impl ::windows_core::Interface for AsyncOperationProgressHandler { type Vtable = AsyncOperationProgressHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AsyncOperationProgressHandler { const IID: ::windows_core::GUID = ::windows_core::GUID::from_signature(::SIGNATURE); } impl ::windows_core::RuntimeType for AsyncOperationProgressHandler { @@ -3133,7 +2933,7 @@ where } #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct AsyncOperationWithProgressCompletedHandler(pub ::windows_core::IUnknown, ::core::marker::PhantomData, ::core::marker::PhantomData) +pub struct AsyncOperationWithProgressCompletedHandler(::windows_core::IUnknown, ::core::marker::PhantomData, ::core::marker::PhantomData) where TResult: ::windows_core::RuntimeType + 'static, TProgress: ::windows_core::RuntimeType + 'static; @@ -3144,10 +2944,10 @@ impl(&self, asyncinfo: P0, asyncstatus: AsyncStatus) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).Invoke)(::windows_core::Interface::as_raw(this), asyncinfo.try_into_param()?.abi(), asyncstatus).ok() } + unsafe { (::windows_core::Interface::vtable(this).Invoke)(::windows_core::Interface::as_raw(this), asyncinfo.into_param().abi(), asyncstatus).ok() } } } #[repr(C)] @@ -3172,7 +2972,7 @@ impl as ::windows_core::ComInterface>::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; + *interface = if *iid == as ::windows_core::Interface>::IID || *iid == <::windows_core::IUnknown as ::windows_core::Interface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::Interface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; if (*interface).is_null() { ::windows_core::HRESULT(-2147467262) } else { @@ -3199,8 +2999,6 @@ impl ::windows_core::Interface for AsyncOperationWithProgressCompletedHandler { type Vtable = AsyncOperationWithProgressCompletedHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AsyncOperationWithProgressCompletedHandler { const IID: ::windows_core::GUID = ::windows_core::GUID::from_signature(::SIGNATURE); } impl ::windows_core::RuntimeType for AsyncOperationWithProgressCompletedHandler { @@ -3218,9 +3016,7 @@ where pub TResult: ::core::marker::PhantomData, pub TProgress: ::core::marker::PhantomData, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct DeferralCompletedHandler(pub ::windows_core::IUnknown); +::windows_core::imp::com_interface!(DeferralCompletedHandler, DeferralCompletedHandler_Vtbl, 0xed32a372_f3c8_4faa_9cfb_470148da3888); impl DeferralCompletedHandler { pub fn new ::windows_core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = DeferralCompletedHandlerBox:: { vtable: &DeferralCompletedHandlerBox::::VTABLE, count: ::windows_core::imp::RefCount::new(1), invoke }; @@ -3247,7 +3043,7 @@ impl ::windows_core::Result<()> + ::core::marker::Send + 'static> if iid.is_null() || interface.is_null() { return ::windows_core::HRESULT(-2147467261); } - *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; + *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::Interface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::Interface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; if (*interface).is_null() { ::windows_core::HRESULT(-2147467262) } else { @@ -3272,12 +3068,6 @@ impl ::windows_core::Result<()> + ::core::marker::Send + 'static> ((*this).invoke)().into() } } -unsafe impl ::windows_core::Interface for DeferralCompletedHandler { - type Vtable = DeferralCompletedHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DeferralCompletedHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xed32a372_f3c8_4faa_9cfb_470148da3888); -} impl ::windows_core::RuntimeType for DeferralCompletedHandler { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } @@ -3289,7 +3079,7 @@ pub struct DeferralCompletedHandler_Vtbl { } #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct EventHandler(pub ::windows_core::IUnknown, ::core::marker::PhantomData) +pub struct EventHandler(::windows_core::IUnknown, ::core::marker::PhantomData) where T: ::windows_core::RuntimeType + 'static; impl EventHandler { @@ -3326,7 +3116,7 @@ impl as ::windows_core::ComInterface>::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; + *interface = if *iid == as ::windows_core::Interface>::IID || *iid == <::windows_core::IUnknown as ::windows_core::Interface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::Interface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; if (*interface).is_null() { ::windows_core::HRESULT(-2147467262) } else { @@ -3353,8 +3143,6 @@ impl ::windows_core::Interface for EventHandler { type Vtable = EventHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EventHandler { const IID: ::windows_core::GUID = ::windows_core::GUID::from_signature(::SIGNATURE); } impl ::windows_core::RuntimeType for EventHandler { @@ -3372,7 +3160,7 @@ where } #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct TypedEventHandler(pub ::windows_core::IUnknown, ::core::marker::PhantomData, ::core::marker::PhantomData) +pub struct TypedEventHandler(::windows_core::IUnknown, ::core::marker::PhantomData, ::core::marker::PhantomData) where TSender: ::windows_core::RuntimeType + 'static, TResult: ::windows_core::RuntimeType + 'static; @@ -3412,7 +3200,7 @@ impl as ::windows_core::ComInterface>::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; + *interface = if *iid == as ::windows_core::Interface>::IID || *iid == <::windows_core::IUnknown as ::windows_core::Interface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::Interface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; if (*interface).is_null() { ::windows_core::HRESULT(-2147467262) } else { @@ -3439,8 +3227,6 @@ impl ::windows_core::Interface for TypedEventHandler { type Vtable = TypedEventHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TypedEventHandler { const IID: ::windows_core::GUID = ::windows_core::GUID::from_signature(::SIGNATURE); } impl ::windows_core::RuntimeType for TypedEventHandler { diff --git a/crates/libs/windows/src/Windows/Gaming/Input/Custom/impl.rs b/crates/libs/windows/src/Windows/Gaming/Input/Custom/impl.rs index a85be80822..1e864881b5 100644 --- a/crates/libs/windows/src/Windows/Gaming/Input/Custom/impl.rs +++ b/crates/libs/windows/src/Windows/Gaming/Input/Custom/impl.rs @@ -38,7 +38,7 @@ impl ICustomGameControllerFactory_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IGameControllerInputSink_Impl: Sized { @@ -67,7 +67,7 @@ impl IGameControllerInputSink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IGameControllerProvider_Impl: Sized { @@ -147,7 +147,7 @@ impl IGameControllerProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IGipGameControllerInputSink_Impl: Sized + IGameControllerInputSink_Impl { @@ -176,7 +176,7 @@ impl IGipGameControllerInputSink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IHidGameControllerInputSink_Impl: Sized + IGameControllerInputSink_Impl { @@ -198,7 +198,7 @@ impl IHidGameControllerInputSink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IXusbGameControllerInputSink_Impl: Sized + IGameControllerInputSink_Impl { @@ -220,6 +220,6 @@ impl IXusbGameControllerInputSink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 679aeb305b..1bd69d428b 100644 --- a/crates/libs/windows/src/Windows/Gaming/Input/Custom/mod.rs +++ b/crates/libs/windows/src/Windows/Gaming/Input/Custom/mod.rs @@ -1,42 +1,34 @@ -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICustomGameControllerFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICustomGameControllerFactory, ICustomGameControllerFactory_Vtbl, 0x69a0ae5e_758e_4cbe_ace6_62155fe9126f); +::windows_core::imp::interface_hierarchy!(ICustomGameControllerFactory, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ICustomGameControllerFactory { pub fn CreateGameController(&self, provider: P0) -> ::windows_core::Result<::windows_core::IInspectable> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateGameController)(::windows_core::Interface::as_raw(this), provider.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateGameController)(::windows_core::Interface::as_raw(this), provider.into_param().abi(), &mut result__).from_abi(result__) } } pub fn OnGameControllerAdded(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).OnGameControllerAdded)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).OnGameControllerAdded)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn OnGameControllerRemoved(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).OnGameControllerRemoved)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).OnGameControllerRemoved)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } } -::windows_core::imp::interface_hierarchy!(ICustomGameControllerFactory, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for ICustomGameControllerFactory { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for ICustomGameControllerFactory { - type Vtable = ICustomGameControllerFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICustomGameControllerFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x69a0ae5e_758e_4cbe_ace6_62155fe9126f); -} #[repr(C)] #[doc(hidden)] pub struct ICustomGameControllerFactory_Vtbl { @@ -45,16 +37,7 @@ pub struct ICustomGameControllerFactory_Vtbl { pub OnGameControllerAdded: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub OnGameControllerRemoved: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGameControllerFactoryManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGameControllerFactoryManagerStatics { - type Vtable = IGameControllerFactoryManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGameControllerFactoryManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x36cb66e3_d0a1_4986_a24c_40b137deba9e); -} +::windows_core::imp::com_interface!(IGameControllerFactoryManagerStatics, IGameControllerFactoryManagerStatics_Vtbl, 0x36cb66e3_d0a1_4986_a24c_40b137deba9e); #[repr(C)] #[doc(hidden)] pub struct IGameControllerFactoryManagerStatics_Vtbl { @@ -63,25 +46,15 @@ pub struct IGameControllerFactoryManagerStatics_Vtbl { pub RegisterCustomFactoryForHardwareId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, factory: *mut ::core::ffi::c_void, hardwarevendorid: u16, hardwareproductid: u16) -> ::windows_core::HRESULT, pub RegisterCustomFactoryForXusbType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, factory: *mut ::core::ffi::c_void, xusbtype: XusbDeviceType, xusbsubtype: XusbDeviceSubtype) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGameControllerFactoryManagerStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGameControllerFactoryManagerStatics2 { - type Vtable = IGameControllerFactoryManagerStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGameControllerFactoryManagerStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeace5644_19df_4115_b32a_2793e2aea3bb); -} +::windows_core::imp::com_interface!(IGameControllerFactoryManagerStatics2, IGameControllerFactoryManagerStatics2_Vtbl, 0xeace5644_19df_4115_b32a_2793e2aea3bb); #[repr(C)] #[doc(hidden)] pub struct IGameControllerFactoryManagerStatics2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub TryGetFactoryControllerFromGameController: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, factory: *mut ::core::ffi::c_void, gamecontroller: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGameControllerInputSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IGameControllerInputSink, IGameControllerInputSink_Vtbl, 0x1ff6f922_c640_4c78_a820_9a715c558bcb); +::windows_core::imp::interface_hierarchy!(IGameControllerInputSink, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IGameControllerInputSink { pub fn OnInputResumed(&self, timestamp: u64) -> ::windows_core::Result<()> { let this = self; @@ -92,16 +65,9 @@ impl IGameControllerInputSink { unsafe { (::windows_core::Interface::vtable(this).OnInputSuspended)(::windows_core::Interface::as_raw(this), timestamp).ok() } } } -::windows_core::imp::interface_hierarchy!(IGameControllerInputSink, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IGameControllerInputSink { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IGameControllerInputSink { - type Vtable = IGameControllerInputSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGameControllerInputSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1ff6f922_c640_4c78_a820_9a715c558bcb); -} #[repr(C)] #[doc(hidden)] pub struct IGameControllerInputSink_Vtbl { @@ -109,9 +75,8 @@ pub struct IGameControllerInputSink_Vtbl { pub OnInputResumed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, timestamp: u64) -> ::windows_core::HRESULT, pub OnInputSuspended: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, timestamp: u64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGameControllerProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IGameControllerProvider, IGameControllerProvider_Vtbl, 0xe6d73982_2996_4559_b16c_3e57d46e58d6); +::windows_core::imp::interface_hierarchy!(IGameControllerProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IGameControllerProvider { pub fn FirmwareVersionInfo(&self) -> ::windows_core::Result { let this = self; @@ -149,16 +114,9 @@ impl IGameControllerProvider { } } } -::windows_core::imp::interface_hierarchy!(IGameControllerProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IGameControllerProvider { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IGameControllerProvider { - type Vtable = IGameControllerProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGameControllerProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe6d73982_2996_4559_b16c_3e57d46e58d6); -} #[repr(C)] #[doc(hidden)] pub struct IGameControllerProvider_Vtbl { @@ -169,16 +127,7 @@ pub struct IGameControllerProvider_Vtbl { pub HardwareVersionInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut GameControllerVersionInfo) -> ::windows_core::HRESULT, pub IsConnected: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGipFirmwareUpdateResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGipFirmwareUpdateResult { - type Vtable = IGipFirmwareUpdateResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGipFirmwareUpdateResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6b794d32_8553_4292_8e03_e16651a2f8bc); -} +::windows_core::imp::com_interface!(IGipFirmwareUpdateResult, IGipFirmwareUpdateResult_Vtbl, 0x6b794d32_8553_4292_8e03_e16651a2f8bc); #[repr(C)] #[doc(hidden)] pub struct IGipFirmwareUpdateResult_Vtbl { @@ -187,9 +136,9 @@ pub struct IGipFirmwareUpdateResult_Vtbl { pub FinalComponentId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut GipFirmwareUpdateStatus) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGipGameControllerInputSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IGipGameControllerInputSink, IGipGameControllerInputSink_Vtbl, 0xa2108abf_09f1_43bc_a140_80f899ec36fb); +::windows_core::imp::interface_hierarchy!(IGipGameControllerInputSink, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IGipGameControllerInputSink, IGameControllerInputSink); impl IGipGameControllerInputSink { pub fn OnKeyReceived(&self, timestamp: u64, keycode: u8, ispressed: bool) -> ::windows_core::Result<()> { let this = self; @@ -200,25 +149,17 @@ impl IGipGameControllerInputSink { unsafe { (::windows_core::Interface::vtable(this).OnMessageReceived)(::windows_core::Interface::as_raw(this), timestamp, messageclass, messageid, sequenceid, messagebuffer.len().try_into().unwrap(), messagebuffer.as_ptr()).ok() } } pub fn OnInputResumed(&self, timestamp: u64) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).OnInputResumed)(::windows_core::Interface::as_raw(this), timestamp).ok() } } pub fn OnInputSuspended(&self, timestamp: u64) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).OnInputSuspended)(::windows_core::Interface::as_raw(this), timestamp).ok() } } } -::windows_core::imp::interface_hierarchy!(IGipGameControllerInputSink, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IGipGameControllerInputSink {} impl ::windows_core::RuntimeType for IGipGameControllerInputSink { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IGipGameControllerInputSink { - type Vtable = IGipGameControllerInputSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGipGameControllerInputSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa2108abf_09f1_43bc_a140_80f899ec36fb); -} #[repr(C)] #[doc(hidden)] pub struct IGipGameControllerInputSink_Vtbl { @@ -226,16 +167,7 @@ pub struct IGipGameControllerInputSink_Vtbl { pub OnKeyReceived: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, timestamp: u64, keycode: u8, ispressed: bool) -> ::windows_core::HRESULT, pub OnMessageReceived: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, timestamp: u64, messageclass: GipMessageClass, messageid: u8, sequenceid: u8, messageBuffer_array_size: u32, messagebuffer: *const u8) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGipGameControllerProvider(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGipGameControllerProvider { - type Vtable = IGipGameControllerProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGipGameControllerProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdbcf1e19_1af5_45a8_bf02_a0ee50c823fc); -} +::windows_core::imp::com_interface!(IGipGameControllerProvider, IGipGameControllerProvider_Vtbl, 0xdbcf1e19_1af5_45a8_bf02_a0ee50c823fc); #[repr(C)] #[doc(hidden)] pub struct IGipGameControllerProvider_Vtbl { @@ -247,50 +179,33 @@ pub struct IGipGameControllerProvider_Vtbl { #[cfg(not(feature = "Storage_Streams"))] UpdateFirmwareAsync: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHidGameControllerInputSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IHidGameControllerInputSink, IHidGameControllerInputSink_Vtbl, 0xf754c322_182d_40e4_a126_fcee4ffa1e31); +::windows_core::imp::interface_hierarchy!(IHidGameControllerInputSink, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IHidGameControllerInputSink, IGameControllerInputSink); impl IHidGameControllerInputSink { pub fn OnInputReportReceived(&self, timestamp: u64, reportid: u8, reportbuffer: &[u8]) -> ::windows_core::Result<()> { let this = self; unsafe { (::windows_core::Interface::vtable(this).OnInputReportReceived)(::windows_core::Interface::as_raw(this), timestamp, reportid, reportbuffer.len().try_into().unwrap(), reportbuffer.as_ptr()).ok() } } pub fn OnInputResumed(&self, timestamp: u64) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).OnInputResumed)(::windows_core::Interface::as_raw(this), timestamp).ok() } } pub fn OnInputSuspended(&self, timestamp: u64) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).OnInputSuspended)(::windows_core::Interface::as_raw(this), timestamp).ok() } } } -::windows_core::imp::interface_hierarchy!(IHidGameControllerInputSink, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IHidGameControllerInputSink {} impl ::windows_core::RuntimeType for IHidGameControllerInputSink { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IHidGameControllerInputSink { - type Vtable = IHidGameControllerInputSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHidGameControllerInputSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf754c322_182d_40e4_a126_fcee4ffa1e31); -} #[repr(C)] #[doc(hidden)] pub struct IHidGameControllerInputSink_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub OnInputReportReceived: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, timestamp: u64, reportid: u8, reportBuffer_array_size: u32, reportbuffer: *const u8) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHidGameControllerProvider(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHidGameControllerProvider { - type Vtable = IHidGameControllerProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHidGameControllerProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x95ce3af4_abf0_4b68_a081_3b7de73ff0e7); -} +::windows_core::imp::com_interface!(IHidGameControllerProvider, IHidGameControllerProvider_Vtbl, 0x95ce3af4_abf0_4b68_a081_3b7de73ff0e7); #[repr(C)] #[doc(hidden)] pub struct IHidGameControllerProvider_Vtbl { @@ -301,50 +216,33 @@ pub struct IHidGameControllerProvider_Vtbl { pub SendFeatureReport: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, reportid: u8, reportBuffer_array_size: u32, reportbuffer: *const u8) -> ::windows_core::HRESULT, pub SendOutputReport: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, reportid: u8, reportBuffer_array_size: u32, reportbuffer: *const u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXusbGameControllerInputSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXusbGameControllerInputSink, IXusbGameControllerInputSink_Vtbl, 0xb2ac1d95_6ecb_42b3_8aab_025401ca4712); +::windows_core::imp::interface_hierarchy!(IXusbGameControllerInputSink, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IXusbGameControllerInputSink, IGameControllerInputSink); impl IXusbGameControllerInputSink { pub fn OnInputReceived(&self, timestamp: u64, reportid: u8, inputbuffer: &[u8]) -> ::windows_core::Result<()> { let this = self; unsafe { (::windows_core::Interface::vtable(this).OnInputReceived)(::windows_core::Interface::as_raw(this), timestamp, reportid, inputbuffer.len().try_into().unwrap(), inputbuffer.as_ptr()).ok() } } pub fn OnInputResumed(&self, timestamp: u64) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).OnInputResumed)(::windows_core::Interface::as_raw(this), timestamp).ok() } } pub fn OnInputSuspended(&self, timestamp: u64) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).OnInputSuspended)(::windows_core::Interface::as_raw(this), timestamp).ok() } } } -::windows_core::imp::interface_hierarchy!(IXusbGameControllerInputSink, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IXusbGameControllerInputSink {} impl ::windows_core::RuntimeType for IXusbGameControllerInputSink { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IXusbGameControllerInputSink { - type Vtable = IXusbGameControllerInputSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXusbGameControllerInputSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb2ac1d95_6ecb_42b3_8aab_025401ca4712); -} #[repr(C)] #[doc(hidden)] pub struct IXusbGameControllerInputSink_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub OnInputReceived: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, timestamp: u64, reportid: u8, inputBuffer_array_size: u32, inputbuffer: *const u8) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXusbGameControllerProvider(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXusbGameControllerProvider { - type Vtable = IXusbGameControllerProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXusbGameControllerProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6e2971eb_0efb_48b4_808b_837643b2f216); -} +::windows_core::imp::com_interface!(IXusbGameControllerProvider, IXusbGameControllerProvider_Vtbl, 0x6e2971eb_0efb_48b4_808b_837643b2f216); #[repr(C)] #[doc(hidden)] pub struct IXusbGameControllerProvider_Vtbl { @@ -355,30 +253,30 @@ pub struct GameControllerFactoryManager; impl GameControllerFactoryManager { pub fn RegisterCustomFactoryForGipInterface(factory: P0, interfaceid: ::windows_core::GUID) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - Self::IGameControllerFactoryManagerStatics(|this| unsafe { (::windows_core::Interface::vtable(this).RegisterCustomFactoryForGipInterface)(::windows_core::Interface::as_raw(this), factory.try_into_param()?.abi(), interfaceid).ok() }) + Self::IGameControllerFactoryManagerStatics(|this| unsafe { (::windows_core::Interface::vtable(this).RegisterCustomFactoryForGipInterface)(::windows_core::Interface::as_raw(this), factory.into_param().abi(), interfaceid).ok() }) } pub fn RegisterCustomFactoryForHardwareId(factory: P0, hardwarevendorid: u16, hardwareproductid: u16) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - Self::IGameControllerFactoryManagerStatics(|this| unsafe { (::windows_core::Interface::vtable(this).RegisterCustomFactoryForHardwareId)(::windows_core::Interface::as_raw(this), factory.try_into_param()?.abi(), hardwarevendorid, hardwareproductid).ok() }) + Self::IGameControllerFactoryManagerStatics(|this| unsafe { (::windows_core::Interface::vtable(this).RegisterCustomFactoryForHardwareId)(::windows_core::Interface::as_raw(this), factory.into_param().abi(), hardwarevendorid, hardwareproductid).ok() }) } pub fn RegisterCustomFactoryForXusbType(factory: P0, xusbtype: XusbDeviceType, xusbsubtype: XusbDeviceSubtype) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - Self::IGameControllerFactoryManagerStatics(|this| unsafe { (::windows_core::Interface::vtable(this).RegisterCustomFactoryForXusbType)(::windows_core::Interface::as_raw(this), factory.try_into_param()?.abi(), xusbtype, xusbsubtype).ok() }) + Self::IGameControllerFactoryManagerStatics(|this| unsafe { (::windows_core::Interface::vtable(this).RegisterCustomFactoryForXusbType)(::windows_core::Interface::as_raw(this), factory.into_param().abi(), xusbtype, xusbsubtype).ok() }) } pub fn TryGetFactoryControllerFromGameController(factory: P0, gamecontroller: P1) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { Self::IGameControllerFactoryManagerStatics2(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).TryGetFactoryControllerFromGameController)(::windows_core::Interface::as_raw(this), factory.try_into_param()?.abi(), gamecontroller.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).TryGetFactoryControllerFromGameController)(::windows_core::Interface::as_raw(this), factory.into_param().abi(), gamecontroller.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -398,6 +296,7 @@ impl ::windows_core::RuntimeName for GameControllerFactoryManager { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GipFirmwareUpdateResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GipFirmwareUpdateResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GipFirmwareUpdateResult { pub fn ExtendedErrorCode(&self) -> ::windows_core::Result { let this = self; @@ -426,50 +325,49 @@ impl ::windows_core::RuntimeType for GipFirmwareUpdateResult { } unsafe impl ::windows_core::Interface for GipFirmwareUpdateResult { type Vtable = IGipFirmwareUpdateResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GipFirmwareUpdateResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GipFirmwareUpdateResult { const NAME: &'static str = "Windows.Gaming.Input.Custom.GipFirmwareUpdateResult"; } -::windows_core::imp::interface_hierarchy!(GipFirmwareUpdateResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GipFirmwareUpdateResult {} unsafe impl ::core::marker::Sync for GipFirmwareUpdateResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GipGameControllerProvider(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GipGameControllerProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(GipGameControllerProvider, IGameControllerProvider); impl GipGameControllerProvider { pub fn FirmwareVersionInfo(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FirmwareVersionInfo)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn HardwareProductId(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).HardwareProductId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn HardwareVendorId(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).HardwareVendorId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn HardwareVersionInfo(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).HardwareVersionInfo)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsConnected(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsConnected)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -487,12 +385,12 @@ impl GipGameControllerProvider { #[cfg(feature = "Storage_Streams")] pub fn UpdateFirmwareAsync(&self, firmwareimage: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).UpdateFirmwareAsync)(::windows_core::Interface::as_raw(this), firmwareimage.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).UpdateFirmwareAsync)(::windows_core::Interface::as_raw(this), firmwareimage.into_param().abi(), &mut result__).from_abi(result__) } } } @@ -501,51 +399,49 @@ impl ::windows_core::RuntimeType for GipGameControllerProvider { } unsafe impl ::windows_core::Interface for GipGameControllerProvider { type Vtable = IGipGameControllerProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GipGameControllerProvider { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GipGameControllerProvider { const NAME: &'static str = "Windows.Gaming.Input.Custom.GipGameControllerProvider"; } -::windows_core::imp::interface_hierarchy!(GipGameControllerProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for GipGameControllerProvider {} unsafe impl ::core::marker::Send for GipGameControllerProvider {} unsafe impl ::core::marker::Sync for GipGameControllerProvider {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HidGameControllerProvider(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HidGameControllerProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(HidGameControllerProvider, IGameControllerProvider); impl HidGameControllerProvider { pub fn FirmwareVersionInfo(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FirmwareVersionInfo)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn HardwareProductId(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).HardwareProductId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn HardwareVendorId(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).HardwareVendorId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn HardwareVersionInfo(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).HardwareVersionInfo)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsConnected(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsConnected)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -583,51 +479,49 @@ impl ::windows_core::RuntimeType for HidGameControllerProvider { } unsafe impl ::windows_core::Interface for HidGameControllerProvider { type Vtable = IHidGameControllerProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HidGameControllerProvider { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HidGameControllerProvider { const NAME: &'static str = "Windows.Gaming.Input.Custom.HidGameControllerProvider"; } -::windows_core::imp::interface_hierarchy!(HidGameControllerProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for HidGameControllerProvider {} unsafe impl ::core::marker::Send for HidGameControllerProvider {} unsafe impl ::core::marker::Sync for HidGameControllerProvider {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct XusbGameControllerProvider(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(XusbGameControllerProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(XusbGameControllerProvider, IGameControllerProvider); impl XusbGameControllerProvider { pub fn FirmwareVersionInfo(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FirmwareVersionInfo)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn HardwareProductId(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).HardwareProductId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn HardwareVendorId(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).HardwareVendorId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn HardwareVersionInfo(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).HardwareVersionInfo)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsConnected(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsConnected)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -643,15 +537,11 @@ impl ::windows_core::RuntimeType for XusbGameControllerProvider { } unsafe impl ::windows_core::Interface for XusbGameControllerProvider { type Vtable = IXusbGameControllerProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for XusbGameControllerProvider { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for XusbGameControllerProvider { const NAME: &'static str = "Windows.Gaming.Input.Custom.XusbGameControllerProvider"; } -::windows_core::imp::interface_hierarchy!(XusbGameControllerProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for XusbGameControllerProvider {} unsafe impl ::core::marker::Send for XusbGameControllerProvider {} unsafe impl ::core::marker::Sync for XusbGameControllerProvider {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Gaming/Input/ForceFeedback/impl.rs b/crates/libs/windows/src/Windows/Gaming/Input/ForceFeedback/impl.rs index 31d14c52e1..3b3c4dfd01 100644 --- a/crates/libs/windows/src/Windows/Gaming/Input/ForceFeedback/impl.rs +++ b/crates/libs/windows/src/Windows/Gaming/Input/ForceFeedback/impl.rs @@ -57,6 +57,6 @@ impl IForceFeedbackEffect_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 c75cededb7..1fe0a0eb43 100644 --- a/crates/libs/windows/src/Windows/Gaming/Input/ForceFeedback/mod.rs +++ b/crates/libs/windows/src/Windows/Gaming/Input/ForceFeedback/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IConditionForceEffect(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IConditionForceEffect { - type Vtable = IConditionForceEffect_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IConditionForceEffect { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x32d1ea68_3695_4e69_85c0_cd1944189140); -} +::windows_core::imp::com_interface!(IConditionForceEffect, IConditionForceEffect_Vtbl, 0x32d1ea68_3695_4e69_85c0_cd1944189140); #[repr(C)] #[doc(hidden)] pub struct IConditionForceEffect_Vtbl { @@ -18,32 +9,14 @@ pub struct IConditionForceEffect_Vtbl { #[cfg(not(feature = "Foundation_Numerics"))] SetParameters: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IConditionForceEffectFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IConditionForceEffectFactory { - type Vtable = IConditionForceEffectFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IConditionForceEffectFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x91a99264_1810_4eb6_a773_bfd3b8cddbab); -} +::windows_core::imp::com_interface!(IConditionForceEffectFactory, IConditionForceEffectFactory_Vtbl, 0x91a99264_1810_4eb6_a773_bfd3b8cddbab); #[repr(C)] #[doc(hidden)] pub struct IConditionForceEffectFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, effectkind: ConditionForceEffectKind, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IConstantForceEffect(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IConstantForceEffect { - type Vtable = IConstantForceEffect_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IConstantForceEffect { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9bfa0140_f3c7_415c_b068_0f068734bce0); -} +::windows_core::imp::com_interface!(IConstantForceEffect, IConstantForceEffect_Vtbl, 0x9bfa0140_f3c7_415c_b068_0f068734bce0); #[repr(C)] #[doc(hidden)] pub struct IConstantForceEffect_Vtbl { @@ -57,9 +30,8 @@ pub struct IConstantForceEffect_Vtbl { #[cfg(not(feature = "Foundation_Numerics"))] SetParametersWithEnvelope: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IForceFeedbackEffect(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IForceFeedbackEffect, IForceFeedbackEffect_Vtbl, 0xa17fba0c_2ae4_48c2_8063_eabd0777cb89); +::windows_core::imp::interface_hierarchy!(IForceFeedbackEffect, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IForceFeedbackEffect { pub fn Gain(&self) -> ::windows_core::Result { let this = self; @@ -88,16 +60,9 @@ impl IForceFeedbackEffect { unsafe { (::windows_core::Interface::vtable(this).Stop)(::windows_core::Interface::as_raw(this)).ok() } } } -::windows_core::imp::interface_hierarchy!(IForceFeedbackEffect, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IForceFeedbackEffect { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IForceFeedbackEffect { - type Vtable = IForceFeedbackEffect_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IForceFeedbackEffect { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa17fba0c_2ae4_48c2_8063_eabd0777cb89); -} #[repr(C)] #[doc(hidden)] pub struct IForceFeedbackEffect_Vtbl { @@ -108,16 +73,7 @@ pub struct IForceFeedbackEffect_Vtbl { pub Start: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Stop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IForceFeedbackMotor(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IForceFeedbackMotor { - type Vtable = IForceFeedbackMotor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IForceFeedbackMotor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8d3d417c_a5ea_4516_8026_2b00f74ef6e5); -} +::windows_core::imp::com_interface!(IForceFeedbackMotor, IForceFeedbackMotor_Vtbl, 0x8d3d417c_a5ea_4516_8026_2b00f74ef6e5); #[repr(C)] #[doc(hidden)] pub struct IForceFeedbackMotor_Vtbl { @@ -136,16 +92,7 @@ pub struct IForceFeedbackMotor_Vtbl { pub TryResetAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub TryUnloadEffectAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, effect: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPeriodicForceEffect(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPeriodicForceEffect { - type Vtable = IPeriodicForceEffect_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPeriodicForceEffect { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5c5138d7_fc75_4d52_9a0a_efe4cab5fe64); -} +::windows_core::imp::com_interface!(IPeriodicForceEffect, IPeriodicForceEffect_Vtbl, 0x5c5138d7_fc75_4d52_9a0a_efe4cab5fe64); #[repr(C)] #[doc(hidden)] pub struct IPeriodicForceEffect_Vtbl { @@ -160,32 +107,14 @@ pub struct IPeriodicForceEffect_Vtbl { #[cfg(not(feature = "Foundation_Numerics"))] SetParametersWithEnvelope: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPeriodicForceEffectFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPeriodicForceEffectFactory { - type Vtable = IPeriodicForceEffectFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPeriodicForceEffectFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6f62eb1a_9851_477b_b318_35ecaa15070f); -} +::windows_core::imp::com_interface!(IPeriodicForceEffectFactory, IPeriodicForceEffectFactory_Vtbl, 0x6f62eb1a_9851_477b_b318_35ecaa15070f); #[repr(C)] #[doc(hidden)] pub struct IPeriodicForceEffectFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, effectkind: PeriodicForceEffectKind, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRampForceEffect(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRampForceEffect { - type Vtable = IRampForceEffect_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRampForceEffect { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf1f81259_1ca6_4080_b56d_b43f3354d052); -} +::windows_core::imp::com_interface!(IRampForceEffect, IRampForceEffect_Vtbl, 0xf1f81259_1ca6_4080_b56d_b43f3354d052); #[repr(C)] #[doc(hidden)] pub struct IRampForceEffect_Vtbl { @@ -202,9 +131,11 @@ pub struct IRampForceEffect_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ConditionForceEffect(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ConditionForceEffect, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ConditionForceEffect, IForceFeedbackEffect); impl ConditionForceEffect { pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -213,7 +144,7 @@ impl ConditionForceEffect { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetParameters(&self, direction: super::super::super::Foundation::Numerics::Vector3, positivecoefficient: f32, negativecoefficient: f32, maxpositivemagnitude: f32, maxnegativemagnitude: f32, deadzone: f32, bias: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetParameters)(::windows_core::Interface::as_raw(this), direction, positivecoefficient, negativecoefficient, maxpositivemagnitude, maxnegativemagnitude, deadzone, bias).ok() } } pub fn CreateInstance(effectkind: ConditionForceEffectKind) -> ::windows_core::Result { @@ -259,20 +190,18 @@ impl ::windows_core::RuntimeType for ConditionForceEffect { } unsafe impl ::windows_core::Interface for ConditionForceEffect { type Vtable = IForceFeedbackEffect_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ConditionForceEffect { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ConditionForceEffect { const NAME: &'static str = "Windows.Gaming.Input.ForceFeedback.ConditionForceEffect"; } -::windows_core::imp::interface_hierarchy!(ConditionForceEffect, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ConditionForceEffect {} unsafe impl ::core::marker::Send for ConditionForceEffect {} unsafe impl ::core::marker::Sync for ConditionForceEffect {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ConstantForceEffect(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ConstantForceEffect, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ConstantForceEffect, IForceFeedbackEffect); impl ConstantForceEffect { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -284,13 +213,13 @@ impl ConstantForceEffect { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetParameters(&self, vector: super::super::super::Foundation::Numerics::Vector3, duration: super::super::super::Foundation::TimeSpan) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetParameters)(::windows_core::Interface::as_raw(this), vector, duration).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetParametersWithEnvelope(&self, vector: super::super::super::Foundation::Numerics::Vector3, attackgain: f32, sustaingain: f32, releasegain: f32, startdelay: super::super::super::Foundation::TimeSpan, attackduration: super::super::super::Foundation::TimeSpan, sustainduration: super::super::super::Foundation::TimeSpan, releaseduration: super::super::super::Foundation::TimeSpan, repeatcount: u32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetParametersWithEnvelope)(::windows_core::Interface::as_raw(this), vector, attackgain, sustaingain, releasegain, startdelay, attackduration, sustainduration, releaseduration, repeatcount).ok() } } pub fn Gain(&self) -> ::windows_core::Result { @@ -325,20 +254,17 @@ impl ::windows_core::RuntimeType for ConstantForceEffect { } unsafe impl ::windows_core::Interface for ConstantForceEffect { type Vtable = IForceFeedbackEffect_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ConstantForceEffect { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ConstantForceEffect { const NAME: &'static str = "Windows.Gaming.Input.ForceFeedback.ConstantForceEffect"; } -::windows_core::imp::interface_hierarchy!(ConstantForceEffect, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ConstantForceEffect {} unsafe impl ::core::marker::Send for ConstantForceEffect {} unsafe impl ::core::marker::Sync for ConstantForceEffect {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ForceFeedbackMotor(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ForceFeedbackMotor, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ForceFeedbackMotor { pub fn AreEffectsPaused(&self) -> ::windows_core::Result { let this = self; @@ -374,12 +300,12 @@ impl ForceFeedbackMotor { } pub fn LoadEffectAsync(&self, effect: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).LoadEffectAsync)(::windows_core::Interface::as_raw(this), effect.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).LoadEffectAsync)(::windows_core::Interface::as_raw(this), effect.into_param().abi(), &mut result__).from_abi(result__) } } pub fn PauseAllEffects(&self) -> ::windows_core::Result<()> { @@ -417,12 +343,12 @@ impl ForceFeedbackMotor { } pub fn TryUnloadEffectAsync(&self, effect: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).TryUnloadEffectAsync)(::windows_core::Interface::as_raw(this), effect.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).TryUnloadEffectAsync)(::windows_core::Interface::as_raw(this), effect.into_param().abi(), &mut result__).from_abi(result__) } } } @@ -431,19 +357,18 @@ impl ::windows_core::RuntimeType for ForceFeedbackMotor { } unsafe impl ::windows_core::Interface for ForceFeedbackMotor { type Vtable = IForceFeedbackMotor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ForceFeedbackMotor { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ForceFeedbackMotor { const NAME: &'static str = "Windows.Gaming.Input.ForceFeedback.ForceFeedbackMotor"; } -::windows_core::imp::interface_hierarchy!(ForceFeedbackMotor, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ForceFeedbackMotor {} unsafe impl ::core::marker::Sync for ForceFeedbackMotor {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PeriodicForceEffect(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PeriodicForceEffect, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(PeriodicForceEffect, IForceFeedbackEffect); impl PeriodicForceEffect { pub fn Gain(&self) -> ::windows_core::Result { let this = self; @@ -472,7 +397,7 @@ impl PeriodicForceEffect { unsafe { (::windows_core::Interface::vtable(this).Stop)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -481,13 +406,13 @@ impl PeriodicForceEffect { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetParameters(&self, vector: super::super::super::Foundation::Numerics::Vector3, frequency: f32, phase: f32, bias: f32, duration: super::super::super::Foundation::TimeSpan) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetParameters)(::windows_core::Interface::as_raw(this), vector, frequency, phase, bias, duration).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetParametersWithEnvelope(&self, vector: super::super::super::Foundation::Numerics::Vector3, frequency: f32, phase: f32, bias: f32, attackgain: f32, sustaingain: f32, releasegain: f32, startdelay: super::super::super::Foundation::TimeSpan, attackduration: super::super::super::Foundation::TimeSpan, sustainduration: super::super::super::Foundation::TimeSpan, releaseduration: super::super::super::Foundation::TimeSpan, repeatcount: u32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetParametersWithEnvelope)(::windows_core::Interface::as_raw(this), vector, frequency, phase, bias, attackgain, sustaingain, releasegain, startdelay, attackduration, sustainduration, releaseduration, repeatcount).ok() } } pub fn CreateInstance(effectkind: PeriodicForceEffectKind) -> ::windows_core::Result { @@ -507,20 +432,18 @@ impl ::windows_core::RuntimeType for PeriodicForceEffect { } unsafe impl ::windows_core::Interface for PeriodicForceEffect { type Vtable = IForceFeedbackEffect_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PeriodicForceEffect { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PeriodicForceEffect { const NAME: &'static str = "Windows.Gaming.Input.ForceFeedback.PeriodicForceEffect"; } -::windows_core::imp::interface_hierarchy!(PeriodicForceEffect, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for PeriodicForceEffect {} unsafe impl ::core::marker::Send for PeriodicForceEffect {} unsafe impl ::core::marker::Sync for PeriodicForceEffect {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RampForceEffect(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RampForceEffect, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(RampForceEffect, IForceFeedbackEffect); impl RampForceEffect { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -558,13 +481,13 @@ impl RampForceEffect { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetParameters(&self, startvector: super::super::super::Foundation::Numerics::Vector3, endvector: super::super::super::Foundation::Numerics::Vector3, duration: super::super::super::Foundation::TimeSpan) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetParameters)(::windows_core::Interface::as_raw(this), startvector, endvector, duration).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetParametersWithEnvelope(&self, startvector: super::super::super::Foundation::Numerics::Vector3, endvector: super::super::super::Foundation::Numerics::Vector3, attackgain: f32, sustaingain: f32, releasegain: f32, startdelay: super::super::super::Foundation::TimeSpan, attackduration: super::super::super::Foundation::TimeSpan, sustainduration: super::super::super::Foundation::TimeSpan, releaseduration: super::super::super::Foundation::TimeSpan, repeatcount: u32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetParametersWithEnvelope)(::windows_core::Interface::as_raw(this), startvector, endvector, attackgain, sustaingain, releasegain, startdelay, attackduration, sustainduration, releaseduration, repeatcount).ok() } } } @@ -573,15 +496,11 @@ impl ::windows_core::RuntimeType for RampForceEffect { } unsafe impl ::windows_core::Interface for RampForceEffect { type Vtable = IForceFeedbackEffect_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RampForceEffect { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RampForceEffect { const NAME: &'static str = "Windows.Gaming.Input.ForceFeedback.RampForceEffect"; } -::windows_core::imp::interface_hierarchy!(RampForceEffect, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for RampForceEffect {} unsafe impl ::core::marker::Send for RampForceEffect {} unsafe impl ::core::marker::Sync for RampForceEffect {} #[repr(transparent)] 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 56bfe993ac..33ee6f1701 100644 --- a/crates/libs/windows/src/Windows/Gaming/Input/Preview/mod.rs +++ b/crates/libs/windows/src/Windows/Gaming/Input/Preview/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGameControllerProviderInfoStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGameControllerProviderInfoStatics { - type Vtable = IGameControllerProviderInfoStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGameControllerProviderInfoStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0be1e6c5_d9bd_44ee_8362_488b2e464bfb); -} +::windows_core::imp::com_interface!(IGameControllerProviderInfoStatics, IGameControllerProviderInfoStatics_Vtbl, 0x0be1e6c5_d9bd_44ee_8362_488b2e464bfb); #[repr(C)] #[doc(hidden)] pub struct IGameControllerProviderInfoStatics_Vtbl { @@ -27,22 +18,22 @@ impl GameControllerProviderInfo { #[cfg(feature = "Gaming_Input_Custom")] pub fn GetParentProviderId(provider: P0) -> ::windows_core::Result<::windows_core::HSTRING> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IGameControllerProviderInfoStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).GetParentProviderId)(::windows_core::Interface::as_raw(this), provider.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).GetParentProviderId)(::windows_core::Interface::as_raw(this), provider.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Gaming_Input_Custom\"`"] #[cfg(feature = "Gaming_Input_Custom")] pub fn GetProviderId(provider: P0) -> ::windows_core::Result<::windows_core::HSTRING> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IGameControllerProviderInfoStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).GetProviderId)(::windows_core::Interface::as_raw(this), provider.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).GetProviderId)(::windows_core::Interface::as_raw(this), provider.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] diff --git a/crates/libs/windows/src/Windows/Gaming/Input/impl.rs b/crates/libs/windows/src/Windows/Gaming/Input/impl.rs index 162239daf9..b7c5c059ed 100644 --- a/crates/libs/windows/src/Windows/Gaming/Input/impl.rs +++ b/crates/libs/windows/src/Windows/Gaming/Input/impl.rs @@ -115,7 +115,7 @@ impl IGameController_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Devices_Power\"`"] @@ -148,6 +148,6 @@ impl IGameControllerBatteryInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/Gaming/Input/mod.rs b/crates/libs/windows/src/Windows/Gaming/Input/mod.rs index 79fb15e82e..39e44f7053 100644 --- a/crates/libs/windows/src/Windows/Gaming/Input/mod.rs +++ b/crates/libs/windows/src/Windows/Gaming/Input/mod.rs @@ -7,16 +7,7 @@ pub mod ForceFeedback; #[cfg(feature = "Gaming_Input_Preview")] #[doc = "Required features: `\"Gaming_Input_Preview\"`"] pub mod Preview; -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IArcadeStick(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IArcadeStick { - type Vtable = IArcadeStick_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IArcadeStick { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb14a539d_befb_4c81_8051_15ecf3b13036); -} +::windows_core::imp::com_interface!(IArcadeStick, IArcadeStick_Vtbl, 0xb14a539d_befb_4c81_8051_15ecf3b13036); #[repr(C)] #[doc(hidden)] pub struct IArcadeStick_Vtbl { @@ -24,16 +15,7 @@ pub struct IArcadeStick_Vtbl { pub GetButtonLabel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, button: ArcadeStickButtons, result__: *mut GameControllerButtonLabel) -> ::windows_core::HRESULT, pub GetCurrentReading: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ArcadeStickReading) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IArcadeStickStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IArcadeStickStatics { - type Vtable = IArcadeStickStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IArcadeStickStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5c37b8c8_37b1_4ad8_9458_200f1a30018e); -} +::windows_core::imp::com_interface!(IArcadeStickStatics, IArcadeStickStatics_Vtbl, 0x5c37b8c8_37b1_4ad8_9458_200f1a30018e); #[repr(C)] #[doc(hidden)] pub struct IArcadeStickStatics_Vtbl { @@ -47,32 +29,14 @@ pub struct IArcadeStickStatics_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] ArcadeSticks: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IArcadeStickStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IArcadeStickStatics2 { - type Vtable = IArcadeStickStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IArcadeStickStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x52b5d744_bb86_445a_b59c_596f0e2a49df); -} +::windows_core::imp::com_interface!(IArcadeStickStatics2, IArcadeStickStatics2_Vtbl, 0x52b5d744_bb86_445a_b59c_596f0e2a49df); #[repr(C)] #[doc(hidden)] pub struct IArcadeStickStatics2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub FromGameController: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, gamecontroller: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFlightStick(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFlightStick { - type Vtable = IFlightStick_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFlightStick { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb4a2c01c_b83b_4459_a1a9_97b03c33da7c); -} +::windows_core::imp::com_interface!(IFlightStick, IFlightStick_Vtbl, 0xb4a2c01c_b83b_4459_a1a9_97b03c33da7c); #[repr(C)] #[doc(hidden)] pub struct IFlightStick_Vtbl { @@ -81,16 +45,7 @@ pub struct IFlightStick_Vtbl { pub GetButtonLabel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, button: FlightStickButtons, result__: *mut GameControllerButtonLabel) -> ::windows_core::HRESULT, pub GetCurrentReading: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut FlightStickReading) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFlightStickStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFlightStickStatics { - type Vtable = IFlightStickStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFlightStickStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5514924a_fecc_435e_83dc_5cec8a18a520); -} +::windows_core::imp::com_interface!(IFlightStickStatics, IFlightStickStatics_Vtbl, 0x5514924a_fecc_435e_83dc_5cec8a18a520); #[repr(C)] #[doc(hidden)] pub struct IFlightStickStatics_Vtbl { @@ -105,9 +60,8 @@ pub struct IFlightStickStatics_Vtbl { FlightSticks: usize, pub FromGameController: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, gamecontroller: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGameController(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IGameController, IGameController_Vtbl, 0x1baf6522_5f64_42c5_8267_b9fe2215bfbd); +::windows_core::imp::interface_hierarchy!(IGameController, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IGameController { pub fn HeadsetConnected(&self, value: P0) -> ::windows_core::Result where @@ -177,16 +131,9 @@ impl IGameController { } } } -::windows_core::imp::interface_hierarchy!(IGameController, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IGameController { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IGameController { - type Vtable = IGameController_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGameController { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1baf6522_5f64_42c5_8267_b9fe2215bfbd); -} #[repr(C)] #[doc(hidden)] pub struct IGameController_Vtbl { @@ -207,9 +154,8 @@ pub struct IGameController_Vtbl { #[cfg(not(feature = "System"))] User: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGameControllerBatteryInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IGameControllerBatteryInfo, IGameControllerBatteryInfo_Vtbl, 0xdcecc681_3963_4da6_955d_553f3b6f6161); +::windows_core::imp::interface_hierarchy!(IGameControllerBatteryInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IGameControllerBatteryInfo { #[doc = "Required features: `\"Devices_Power\"`"] #[cfg(feature = "Devices_Power")] @@ -221,16 +167,9 @@ impl IGameControllerBatteryInfo { } } } -::windows_core::imp::interface_hierarchy!(IGameControllerBatteryInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IGameControllerBatteryInfo { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IGameControllerBatteryInfo { - type Vtable = IGameControllerBatteryInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGameControllerBatteryInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdcecc681_3963_4da6_955d_553f3b6f6161); -} #[repr(C)] #[doc(hidden)] pub struct IGameControllerBatteryInfo_Vtbl { @@ -240,16 +179,7 @@ pub struct IGameControllerBatteryInfo_Vtbl { #[cfg(not(feature = "Devices_Power"))] TryGetBatteryReport: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGamepad(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGamepad { - type Vtable = IGamepad_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGamepad { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbc7bb43c_0a69_3903_9e9d_a50f86a45de5); -} +::windows_core::imp::com_interface!(IGamepad, IGamepad_Vtbl, 0xbc7bb43c_0a69_3903_9e9d_a50f86a45de5); #[repr(C)] #[doc(hidden)] pub struct IGamepad_Vtbl { @@ -258,32 +188,14 @@ pub struct IGamepad_Vtbl { pub SetVibration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: GamepadVibration) -> ::windows_core::HRESULT, pub GetCurrentReading: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut GamepadReading) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGamepad2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGamepad2 { - type Vtable = IGamepad2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGamepad2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3c1689bd_5915_4245_b0c0_c89fae0308ff); -} +::windows_core::imp::com_interface!(IGamepad2, IGamepad2_Vtbl, 0x3c1689bd_5915_4245_b0c0_c89fae0308ff); #[repr(C)] #[doc(hidden)] pub struct IGamepad2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetButtonLabel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, button: GamepadButtons, result__: *mut GameControllerButtonLabel) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGamepadStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGamepadStatics { - type Vtable = IGamepadStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGamepadStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8bbce529_d49c_39e9_9560_e47dde96b7c8); -} +::windows_core::imp::com_interface!(IGamepadStatics, IGamepadStatics_Vtbl, 0x8bbce529_d49c_39e9_9560_e47dde96b7c8); #[repr(C)] #[doc(hidden)] pub struct IGamepadStatics_Vtbl { @@ -297,32 +209,14 @@ pub struct IGamepadStatics_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Gamepads: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGamepadStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGamepadStatics2 { - type Vtable = IGamepadStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGamepadStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x42676dc5_0856_47c4_9213_b395504c3a3c); -} +::windows_core::imp::com_interface!(IGamepadStatics2, IGamepadStatics2_Vtbl, 0x42676dc5_0856_47c4_9213_b395504c3a3c); #[repr(C)] #[doc(hidden)] pub struct IGamepadStatics2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub FromGameController: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, gamecontroller: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHeadset(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHeadset { - type Vtable = IHeadset_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHeadset { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3fd156ef_6925_3fa8_9181_029c5223ae3b); -} +::windows_core::imp::com_interface!(IHeadset, IHeadset_Vtbl, 0x3fd156ef_6925_3fa8_9181_029c5223ae3b); #[repr(C)] #[doc(hidden)] pub struct IHeadset_Vtbl { @@ -330,16 +224,7 @@ pub struct IHeadset_Vtbl { pub CaptureDeviceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub RenderDeviceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRacingWheel(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRacingWheel { - type Vtable = IRacingWheel_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRacingWheel { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf546656f_e106_4c82_a90f_554012904b85); -} +::windows_core::imp::com_interface!(IRacingWheel, IRacingWheel_Vtbl, 0xf546656f_e106_4c82_a90f_554012904b85); #[repr(C)] #[doc(hidden)] pub struct IRacingWheel_Vtbl { @@ -356,16 +241,7 @@ pub struct IRacingWheel_Vtbl { pub GetButtonLabel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, button: RacingWheelButtons, result__: *mut GameControllerButtonLabel) -> ::windows_core::HRESULT, pub GetCurrentReading: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut RacingWheelReading) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRacingWheelStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRacingWheelStatics { - type Vtable = IRacingWheelStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRacingWheelStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3ac12cd5_581b_4936_9f94_69f1e6514c7d); -} +::windows_core::imp::com_interface!(IRacingWheelStatics, IRacingWheelStatics_Vtbl, 0x3ac12cd5_581b_4936_9f94_69f1e6514c7d); #[repr(C)] #[doc(hidden)] pub struct IRacingWheelStatics_Vtbl { @@ -379,32 +255,14 @@ pub struct IRacingWheelStatics_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] RacingWheels: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRacingWheelStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRacingWheelStatics2 { - type Vtable = IRacingWheelStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRacingWheelStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe666bcaa_edfd_4323_a9f6_3c384048d1ed); -} +::windows_core::imp::com_interface!(IRacingWheelStatics2, IRacingWheelStatics2_Vtbl, 0xe666bcaa_edfd_4323_a9f6_3c384048d1ed); #[repr(C)] #[doc(hidden)] pub struct IRacingWheelStatics2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub FromGameController: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, gamecontroller: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRawGameController(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRawGameController { - type Vtable = IRawGameController_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRawGameController { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7cad6d91_a7e1_4f71_9a78_33e9c5dfea62); -} +::windows_core::imp::com_interface!(IRawGameController, IRawGameController_Vtbl, 0x7cad6d91_a7e1_4f71_9a78_33e9c5dfea62); #[repr(C)] #[doc(hidden)] pub struct IRawGameController_Vtbl { @@ -422,16 +280,7 @@ pub struct IRawGameController_Vtbl { pub GetCurrentReading: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, buttonArray_array_size: u32, buttonarray: *mut bool, switchArray_array_size: u32, switcharray: *mut GameControllerSwitchPosition, axisArray_array_size: u32, axisarray: *mut f64, result__: *mut u64) -> ::windows_core::HRESULT, pub GetSwitchKind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, switchindex: i32, result__: *mut GameControllerSwitchKind) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRawGameController2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRawGameController2 { - type Vtable = IRawGameController2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRawGameController2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x43c0c035_bb73_4756_a787_3ed6bea617bd); -} +::windows_core::imp::com_interface!(IRawGameController2, IRawGameController2_Vtbl, 0x43c0c035_bb73_4756_a787_3ed6bea617bd); #[repr(C)] #[doc(hidden)] pub struct IRawGameController2_Vtbl { @@ -443,16 +292,7 @@ pub struct IRawGameController2_Vtbl { pub NonRoamableId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub DisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRawGameControllerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRawGameControllerStatics { - type Vtable = IRawGameControllerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRawGameControllerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeb8d0792_e95a_4b19_afc7_0a59f8bf759e); -} +::windows_core::imp::com_interface!(IRawGameControllerStatics, IRawGameControllerStatics_Vtbl, 0xeb8d0792_e95a_4b19_afc7_0a59f8bf759e); #[repr(C)] #[doc(hidden)] pub struct IRawGameControllerStatics_Vtbl { @@ -467,16 +307,7 @@ pub struct IRawGameControllerStatics_Vtbl { RawGameControllers: usize, pub FromGameController: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, gamecontroller: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUINavigationController(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUINavigationController { - type Vtable = IUINavigationController_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUINavigationController { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe5aeefdd_f50e_4a55_8cdc_d33229548175); -} +::windows_core::imp::com_interface!(IUINavigationController, IUINavigationController_Vtbl, 0xe5aeefdd_f50e_4a55_8cdc_d33229548175); #[repr(C)] #[doc(hidden)] pub struct IUINavigationController_Vtbl { @@ -485,16 +316,7 @@ pub struct IUINavigationController_Vtbl { pub GetOptionalButtonLabel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, button: OptionalUINavigationButtons, result__: *mut GameControllerButtonLabel) -> ::windows_core::HRESULT, pub GetRequiredButtonLabel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, button: RequiredUINavigationButtons, result__: *mut GameControllerButtonLabel) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUINavigationControllerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUINavigationControllerStatics { - type Vtable = IUINavigationControllerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUINavigationControllerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2f14930a_f6f8_4a48_8d89_94786cca0c2e); -} +::windows_core::imp::com_interface!(IUINavigationControllerStatics, IUINavigationControllerStatics_Vtbl, 0x2f14930a_f6f8_4a48_8d89_94786cca0c2e); #[repr(C)] #[doc(hidden)] pub struct IUINavigationControllerStatics_Vtbl { @@ -508,16 +330,7 @@ pub struct IUINavigationControllerStatics_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] UINavigationControllers: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUINavigationControllerStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUINavigationControllerStatics2 { - type Vtable = IUINavigationControllerStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUINavigationControllerStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe0cb28e3_b20b_4b0b_9ed4_f3d53cec0de4); -} +::windows_core::imp::com_interface!(IUINavigationControllerStatics2, IUINavigationControllerStatics2_Vtbl, 0xe0cb28e3_b20b_4b0b_9ed4_f3d53cec0de4); #[repr(C)] #[doc(hidden)] pub struct IUINavigationControllerStatics2_Vtbl { @@ -527,6 +340,8 @@ pub struct IUINavigationControllerStatics2_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ArcadeStick(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ArcadeStick, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ArcadeStick, IGameController, IGameControllerBatteryInfo); impl ArcadeStick { pub fn GetButtonLabel(&self, button: ArcadeStickButtons) -> ::windows_core::Result { let this = self; @@ -576,39 +391,39 @@ impl ArcadeStick { } pub fn FromGameController(gamecontroller: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IArcadeStickStatics2(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).FromGameController)(::windows_core::Interface::as_raw(this), gamecontroller.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).FromGameController)(::windows_core::Interface::as_raw(this), gamecontroller.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn HeadsetConnected(&self, value: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveHeadsetConnected(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveHeadsetConnected)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn HeadsetDisconnected(&self, value: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveHeadsetDisconnected(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveHeadsetDisconnected)(::windows_core::Interface::as_raw(this), token).ok() } } #[doc = "Required features: `\"System\"`"] @@ -617,25 +432,25 @@ impl ArcadeStick { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveUserChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveUserChanged)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn Headset(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Headset)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsWireless(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsWireless)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -644,7 +459,7 @@ impl ArcadeStick { #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -653,7 +468,7 @@ impl ArcadeStick { #[doc = "Required features: `\"Devices_Power\"`"] #[cfg(feature = "Devices_Power")] pub fn TryGetBatteryReport(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetBatteryReport)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -675,21 +490,18 @@ impl ::windows_core::RuntimeType for ArcadeStick { } unsafe impl ::windows_core::Interface for ArcadeStick { type Vtable = IArcadeStick_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ArcadeStick { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ArcadeStick { const NAME: &'static str = "Windows.Gaming.Input.ArcadeStick"; } -::windows_core::imp::interface_hierarchy!(ArcadeStick, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ArcadeStick {} -impl ::windows_core::CanTryInto for ArcadeStick {} unsafe impl ::core::marker::Send for ArcadeStick {} unsafe impl ::core::marker::Sync for ArcadeStick {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct FlightStick(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(FlightStick, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(FlightStick, IGameController, IGameControllerBatteryInfo); impl FlightStick { pub fn HatSwitchKind(&self) -> ::windows_core::Result { let this = self; @@ -746,39 +558,39 @@ impl FlightStick { } pub fn FromGameController(gamecontroller: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IFlightStickStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).FromGameController)(::windows_core::Interface::as_raw(this), gamecontroller.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).FromGameController)(::windows_core::Interface::as_raw(this), gamecontroller.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn HeadsetConnected(&self, value: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveHeadsetConnected(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveHeadsetConnected)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn HeadsetDisconnected(&self, value: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveHeadsetDisconnected(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveHeadsetDisconnected)(::windows_core::Interface::as_raw(this), token).ok() } } #[doc = "Required features: `\"System\"`"] @@ -787,25 +599,25 @@ impl FlightStick { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveUserChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveUserChanged)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn Headset(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Headset)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsWireless(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsWireless)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -814,7 +626,7 @@ impl FlightStick { #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -823,7 +635,7 @@ impl FlightStick { #[doc = "Required features: `\"Devices_Power\"`"] #[cfg(feature = "Devices_Power")] pub fn TryGetBatteryReport(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetBatteryReport)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -840,48 +652,45 @@ impl ::windows_core::RuntimeType for FlightStick { } unsafe impl ::windows_core::Interface for FlightStick { type Vtable = IFlightStick_Vtbl; -} -unsafe impl ::windows_core::ComInterface for FlightStick { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for FlightStick { const NAME: &'static str = "Windows.Gaming.Input.FlightStick"; } -::windows_core::imp::interface_hierarchy!(FlightStick, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for FlightStick {} -impl ::windows_core::CanTryInto for FlightStick {} unsafe impl ::core::marker::Send for FlightStick {} unsafe impl ::core::marker::Sync for FlightStick {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Gamepad(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Gamepad, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(Gamepad, IGameController, IGameControllerBatteryInfo); impl Gamepad { pub fn HeadsetConnected(&self, value: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveHeadsetConnected(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveHeadsetConnected)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn HeadsetDisconnected(&self, value: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveHeadsetDisconnected(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveHeadsetDisconnected)(::windows_core::Interface::as_raw(this), token).ok() } } #[doc = "Required features: `\"System\"`"] @@ -890,25 +699,25 @@ impl Gamepad { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveUserChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveUserChanged)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn Headset(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Headset)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsWireless(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsWireless)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -917,7 +726,7 @@ impl Gamepad { #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -926,7 +735,7 @@ impl Gamepad { #[doc = "Required features: `\"Devices_Power\"`"] #[cfg(feature = "Devices_Power")] pub fn TryGetBatteryReport(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetBatteryReport)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -951,7 +760,7 @@ impl Gamepad { } } pub fn GetButtonLabel(&self, button: GamepadButtons) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetButtonLabel)(::windows_core::Interface::as_raw(this), button, &mut result__).from_abi(result__) @@ -991,11 +800,11 @@ impl Gamepad { } pub fn FromGameController(gamecontroller: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IGamepadStatics2(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).FromGameController)(::windows_core::Interface::as_raw(this), gamecontroller.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).FromGameController)(::windows_core::Interface::as_raw(this), gamecontroller.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -1014,26 +823,23 @@ impl ::windows_core::RuntimeType for Gamepad { } unsafe impl ::windows_core::Interface for Gamepad { type Vtable = IGamepad_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Gamepad { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Gamepad { const NAME: &'static str = "Windows.Gaming.Input.Gamepad"; } -::windows_core::imp::interface_hierarchy!(Gamepad, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for Gamepad {} -impl ::windows_core::CanTryInto for Gamepad {} unsafe impl ::core::marker::Send for Gamepad {} unsafe impl ::core::marker::Sync for Gamepad {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Headset(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Headset, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(Headset, IGameControllerBatteryInfo); impl Headset { #[doc = "Required features: `\"Devices_Power\"`"] #[cfg(feature = "Devices_Power")] pub fn TryGetBatteryReport(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetBatteryReport)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1059,47 +865,45 @@ impl ::windows_core::RuntimeType for Headset { } unsafe impl ::windows_core::Interface for Headset { type Vtable = IHeadset_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Headset { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Headset { const NAME: &'static str = "Windows.Gaming.Input.Headset"; } -::windows_core::imp::interface_hierarchy!(Headset, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for Headset {} unsafe impl ::core::marker::Send for Headset {} unsafe impl ::core::marker::Sync for Headset {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RacingWheel(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RacingWheel, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(RacingWheel, IGameController, IGameControllerBatteryInfo); impl RacingWheel { pub fn HeadsetConnected(&self, value: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveHeadsetConnected(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveHeadsetConnected)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn HeadsetDisconnected(&self, value: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveHeadsetDisconnected(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveHeadsetDisconnected)(::windows_core::Interface::as_raw(this), token).ok() } } #[doc = "Required features: `\"System\"`"] @@ -1108,25 +912,25 @@ impl RacingWheel { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveUserChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveUserChanged)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn Headset(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Headset)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsWireless(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsWireless)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1135,7 +939,7 @@ impl RacingWheel { #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1144,7 +948,7 @@ impl RacingWheel { #[doc = "Required features: `\"Devices_Power\"`"] #[cfg(feature = "Devices_Power")] pub fn TryGetBatteryReport(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetBatteryReport)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1242,11 +1046,11 @@ impl RacingWheel { } pub fn FromGameController(gamecontroller: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IRacingWheelStatics2(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).FromGameController)(::windows_core::Interface::as_raw(this), gamecontroller.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).FromGameController)(::windows_core::Interface::as_raw(this), gamecontroller.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -1265,48 +1069,45 @@ impl ::windows_core::RuntimeType for RacingWheel { } unsafe impl ::windows_core::Interface for RacingWheel { type Vtable = IRacingWheel_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RacingWheel { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RacingWheel { const NAME: &'static str = "Windows.Gaming.Input.RacingWheel"; } -::windows_core::imp::interface_hierarchy!(RacingWheel, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for RacingWheel {} -impl ::windows_core::CanTryInto for RacingWheel {} unsafe impl ::core::marker::Send for RacingWheel {} unsafe impl ::core::marker::Sync for RacingWheel {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RawGameController(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RawGameController, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(RawGameController, IGameController, IGameControllerBatteryInfo); impl RawGameController { pub fn HeadsetConnected(&self, value: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveHeadsetConnected(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveHeadsetConnected)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn HeadsetDisconnected(&self, value: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveHeadsetDisconnected(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveHeadsetDisconnected)(::windows_core::Interface::as_raw(this), token).ok() } } #[doc = "Required features: `\"System\"`"] @@ -1315,25 +1116,25 @@ impl RawGameController { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveUserChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveUserChanged)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn Headset(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Headset)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsWireless(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsWireless)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1342,7 +1143,7 @@ impl RawGameController { #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1351,7 +1152,7 @@ impl RawGameController { #[doc = "Required features: `\"Devices_Power\"`"] #[cfg(feature = "Devices_Power")] pub fn TryGetBatteryReport(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetBatteryReport)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1425,21 +1226,21 @@ impl RawGameController { #[doc = "Required features: `\"Devices_Haptics\"`, `\"Foundation_Collections\"`"] #[cfg(all(feature = "Devices_Haptics", feature = "Foundation_Collections"))] pub fn SimpleHapticsControllers(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SimpleHapticsControllers)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn NonRoamableId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NonRoamableId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn DisplayName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DisplayName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1479,11 +1280,11 @@ impl RawGameController { } pub fn FromGameController(gamecontroller: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IRawGameControllerStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).FromGameController)(::windows_core::Interface::as_raw(this), gamecontroller.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).FromGameController)(::windows_core::Interface::as_raw(this), gamecontroller.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -1497,48 +1298,45 @@ impl ::windows_core::RuntimeType for RawGameController { } unsafe impl ::windows_core::Interface for RawGameController { type Vtable = IRawGameController_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RawGameController { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RawGameController { const NAME: &'static str = "Windows.Gaming.Input.RawGameController"; } -::windows_core::imp::interface_hierarchy!(RawGameController, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for RawGameController {} -impl ::windows_core::CanTryInto for RawGameController {} unsafe impl ::core::marker::Send for RawGameController {} unsafe impl ::core::marker::Sync for RawGameController {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UINavigationController(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UINavigationController, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(UINavigationController, IGameController, IGameControllerBatteryInfo); impl UINavigationController { pub fn HeadsetConnected(&self, value: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveHeadsetConnected(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveHeadsetConnected)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn HeadsetDisconnected(&self, value: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveHeadsetDisconnected(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveHeadsetDisconnected)(::windows_core::Interface::as_raw(this), token).ok() } } #[doc = "Required features: `\"System\"`"] @@ -1547,25 +1345,25 @@ impl UINavigationController { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveUserChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveUserChanged)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn Headset(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Headset)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsWireless(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsWireless)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1574,7 +1372,7 @@ impl UINavigationController { #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1583,7 +1381,7 @@ impl UINavigationController { #[doc = "Required features: `\"Devices_Power\"`"] #[cfg(feature = "Devices_Power")] pub fn TryGetBatteryReport(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetBatteryReport)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1644,11 +1442,11 @@ impl UINavigationController { } pub fn FromGameController(gamecontroller: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IUINavigationControllerStatics2(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).FromGameController)(::windows_core::Interface::as_raw(this), gamecontroller.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).FromGameController)(::windows_core::Interface::as_raw(this), gamecontroller.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -1667,16 +1465,11 @@ impl ::windows_core::RuntimeType for UINavigationController { } unsafe impl ::windows_core::Interface for UINavigationController { type Vtable = IUINavigationController_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UINavigationController { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UINavigationController { const NAME: &'static str = "Windows.Gaming.Input.UINavigationController"; } -::windows_core::imp::interface_hierarchy!(UINavigationController, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for UINavigationController {} -impl ::windows_core::CanTryInto for UINavigationController {} unsafe impl ::core::marker::Send for UINavigationController {} unsafe impl ::core::marker::Sync for UINavigationController {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Gaming/Preview/GamesEnumeration/impl.rs b/crates/libs/windows/src/Windows/Gaming/Preview/GamesEnumeration/impl.rs index 0bee74b574..cbaa9f20ac 100644 --- a/crates/libs/windows/src/Windows/Gaming/Preview/GamesEnumeration/impl.rs +++ b/crates/libs/windows/src/Windows/Gaming/Preview/GamesEnumeration/impl.rs @@ -83,6 +83,6 @@ impl IGameListEntry_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 9ae9ecb15c..05f11afc48 100644 --- a/crates/libs/windows/src/Windows/Gaming/Preview/GamesEnumeration/mod.rs +++ b/crates/libs/windows/src/Windows/Gaming/Preview/GamesEnumeration/mod.rs @@ -1,6 +1,5 @@ -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGameListEntry(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IGameListEntry, IGameListEntry_Vtbl, 0x735924d3_811f_4494_b69c_c641a0c61543); +::windows_core::imp::interface_hierarchy!(IGameListEntry, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IGameListEntry { #[doc = "Required features: `\"ApplicationModel\"`"] #[cfg(feature = "ApplicationModel")] @@ -42,16 +41,9 @@ impl IGameListEntry { } } } -::windows_core::imp::interface_hierarchy!(IGameListEntry, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IGameListEntry { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IGameListEntry { - type Vtable = IGameListEntry_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGameListEntry { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x735924d3_811f_4494_b69c_c641a0c61543); -} #[repr(C)] #[doc(hidden)] pub struct IGameListEntry_Vtbl { @@ -68,16 +60,7 @@ pub struct IGameListEntry_Vtbl { Properties: usize, pub SetCategoryAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: GameListCategory, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGameListEntry2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGameListEntry2 { - type Vtable = IGameListEntry2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGameListEntry2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd84a8f8b_8749_4a25_90d3_f6c5a427886d); -} +::windows_core::imp::com_interface!(IGameListEntry2, IGameListEntry2_Vtbl, 0xd84a8f8b_8749_4a25_90d3_f6c5a427886d); #[repr(C)] #[doc(hidden)] pub struct IGameListEntry2_Vtbl { @@ -100,16 +83,7 @@ pub struct IGameListEntry2_Vtbl { pub SetTitleIdAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GameModeConfiguration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGameListStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGameListStatics { - type Vtable = IGameListStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGameListStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2ddd0f6f_9c66_4b05_945c_d6ed78491b8c); -} +::windows_core::imp::com_interface!(IGameListStatics, IGameListStatics_Vtbl, 0x2ddd0f6f_9c66_4b05_945c_d6ed78491b8c); #[repr(C)] #[doc(hidden)] pub struct IGameListStatics_Vtbl { @@ -129,16 +103,7 @@ pub struct IGameListStatics_Vtbl { pub GameUpdated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveGameUpdated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGameListStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGameListStatics2 { - type Vtable = IGameListStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGameListStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x395f2098_ea1a_45aa_9268_a83905686f27); -} +::windows_core::imp::com_interface!(IGameListStatics2, IGameListStatics2_Vtbl, 0x395f2098_ea1a_45aa_9268_a83905686f27); #[repr(C)] #[doc(hidden)] pub struct IGameListStatics2_Vtbl { @@ -149,16 +114,7 @@ pub struct IGameListStatics2_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] UnmergeEntryAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGameModeConfiguration(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGameModeConfiguration { - type Vtable = IGameModeConfiguration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGameModeConfiguration { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x78e591af_b142_4ef0_8830_55bc2be4f5ea); -} +::windows_core::imp::com_interface!(IGameModeConfiguration, IGameModeConfiguration_Vtbl, 0x78e591af_b142_4ef0_8830_55bc2be4f5ea); #[repr(C)] #[doc(hidden)] pub struct IGameModeConfiguration_Vtbl { @@ -185,16 +141,7 @@ pub struct IGameModeConfiguration_Vtbl { pub SetAffinitizeToExclusiveCpus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, pub SaveAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGameModeUserConfiguration(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGameModeUserConfiguration { - type Vtable = IGameModeUserConfiguration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGameModeUserConfiguration { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x72d34af4_756b_470f_a0c2_ba62a90795db); -} +::windows_core::imp::com_interface!(IGameModeUserConfiguration, IGameModeUserConfiguration_Vtbl, 0x72d34af4_756b_470f_a0c2_ba62a90795db); #[repr(C)] #[doc(hidden)] pub struct IGameModeUserConfiguration_Vtbl { @@ -205,16 +152,7 @@ pub struct IGameModeUserConfiguration_Vtbl { GamingRelatedProcessNames: usize, pub SaveAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGameModeUserConfigurationStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGameModeUserConfigurationStatics { - type Vtable = IGameModeUserConfigurationStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGameModeUserConfigurationStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6e50d97c_66ea_478e_a4a1_f57c0e8d00e7); -} +::windows_core::imp::com_interface!(IGameModeUserConfigurationStatics, IGameModeUserConfigurationStatics_Vtbl, 0x6e50d97c_66ea_478e_a4a1_f57c0e8d00e7); #[repr(C)] #[doc(hidden)] pub struct IGameModeUserConfigurationStatics_Vtbl { @@ -313,6 +251,8 @@ impl ::windows_core::RuntimeName for GameList { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GameListEntry(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GameListEntry, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(GameListEntry, IGameListEntry); impl GameListEntry { #[doc = "Required features: `\"ApplicationModel\"`"] #[cfg(feature = "ApplicationModel")] @@ -354,7 +294,7 @@ impl GameListEntry { } } pub fn LaunchableState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).LaunchableState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -363,14 +303,14 @@ impl GameListEntry { #[doc = "Required features: `\"Storage\"`"] #[cfg(feature = "Storage")] pub fn LauncherExecutable(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).LauncherExecutable)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn LaunchParameters(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).LaunchParameters)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -380,42 +320,42 @@ impl GameListEntry { #[cfg(feature = "Storage")] pub fn SetLauncherExecutableFileAsync(&self, executablefile: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SetLauncherExecutableFileAsync)(::windows_core::Interface::as_raw(this), executablefile.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Storage\"`"] #[cfg(feature = "Storage")] pub fn SetLauncherExecutableFileWithParamsAsync(&self, executablefile: P0, launchparams: &::windows_core::HSTRING) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), ::core::mem::transmute_copy(launchparams), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SetLauncherExecutableFileWithParamsAsync)(::windows_core::Interface::as_raw(this), executablefile.into_param().abi(), ::core::mem::transmute_copy(launchparams), &mut result__).from_abi(result__) } } pub fn TitleId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TitleId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetTitleIdAsync(&self, id: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SetTitleIdAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(id), &mut result__).from_abi(result__) } } pub fn GameModeConfiguration(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GameModeConfiguration)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -427,20 +367,17 @@ impl ::windows_core::RuntimeType for GameListEntry { } unsafe impl ::windows_core::Interface for GameListEntry { type Vtable = IGameListEntry_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GameListEntry { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GameListEntry { const NAME: &'static str = "Windows.Gaming.Preview.GamesEnumeration.GameListEntry"; } -::windows_core::imp::interface_hierarchy!(GameListEntry, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for GameListEntry {} unsafe impl ::core::marker::Send for GameListEntry {} unsafe impl ::core::marker::Sync for GameListEntry {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GameModeConfiguration(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GameModeConfiguration, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GameModeConfiguration { pub fn IsEnabled(&self) -> ::windows_core::Result { let this = self; @@ -471,10 +408,10 @@ impl GameModeConfiguration { } pub fn SetPercentGpuTimeAllocatedToGame(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetPercentGpuTimeAllocatedToGame)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetPercentGpuTimeAllocatedToGame)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn PercentGpuMemoryAllocatedToGame(&self) -> ::windows_core::Result> { let this = self; @@ -485,10 +422,10 @@ impl GameModeConfiguration { } pub fn SetPercentGpuMemoryAllocatedToGame(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetPercentGpuMemoryAllocatedToGame)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetPercentGpuMemoryAllocatedToGame)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn PercentGpuMemoryAllocatedToSystemCompositor(&self) -> ::windows_core::Result> { let this = self; @@ -499,10 +436,10 @@ impl GameModeConfiguration { } pub fn SetPercentGpuMemoryAllocatedToSystemCompositor(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetPercentGpuMemoryAllocatedToSystemCompositor)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetPercentGpuMemoryAllocatedToSystemCompositor)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn MaxCpuCount(&self) -> ::windows_core::Result> { let this = self; @@ -513,10 +450,10 @@ impl GameModeConfiguration { } pub fn SetMaxCpuCount(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetMaxCpuCount)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetMaxCpuCount)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn CpuExclusivityMaskLow(&self) -> ::windows_core::Result> { let this = self; @@ -527,10 +464,10 @@ impl GameModeConfiguration { } pub fn SetCpuExclusivityMaskLow(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetCpuExclusivityMaskLow)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetCpuExclusivityMaskLow)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn CpuExclusivityMaskHigh(&self) -> ::windows_core::Result> { let this = self; @@ -541,10 +478,10 @@ impl GameModeConfiguration { } pub fn SetCpuExclusivityMaskHigh(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetCpuExclusivityMaskHigh)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetCpuExclusivityMaskHigh)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn AffinitizeToExclusiveCpus(&self) -> ::windows_core::Result { let this = self; @@ -570,19 +507,17 @@ impl ::windows_core::RuntimeType for GameModeConfiguration { } unsafe impl ::windows_core::Interface for GameModeConfiguration { type Vtable = IGameModeConfiguration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GameModeConfiguration { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GameModeConfiguration { const NAME: &'static str = "Windows.Gaming.Preview.GamesEnumeration.GameModeConfiguration"; } -::windows_core::imp::interface_hierarchy!(GameModeConfiguration, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GameModeConfiguration {} unsafe impl ::core::marker::Sync for GameModeConfiguration {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GameModeUserConfiguration(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GameModeUserConfiguration, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GameModeUserConfiguration { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -617,14 +552,11 @@ impl ::windows_core::RuntimeType for GameModeUserConfiguration { } unsafe impl ::windows_core::Interface for GameModeUserConfiguration { type Vtable = IGameModeUserConfiguration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GameModeUserConfiguration { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GameModeUserConfiguration { const NAME: &'static str = "Windows.Gaming.Preview.GamesEnumeration.GameModeUserConfiguration"; } -::windows_core::imp::interface_hierarchy!(GameModeUserConfiguration, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GameModeUserConfiguration {} unsafe impl ::core::marker::Sync for GameModeUserConfiguration {} #[repr(transparent)] @@ -666,9 +598,7 @@ impl ::core::fmt::Debug for GameListEntryLaunchableState { impl ::windows_core::RuntimeType for GameListEntryLaunchableState { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::from_slice(b"enum(Windows.Gaming.Preview.GamesEnumeration.GameListEntryLaunchableState;i4)"); } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct GameListChangedEventHandler(pub ::windows_core::IUnknown); +::windows_core::imp::com_interface!(GameListChangedEventHandler, GameListChangedEventHandler_Vtbl, 0x25f6a421_d8f5_4d91_b40e_53d5e86fde64); impl GameListChangedEventHandler { pub fn new) -> ::windows_core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = GameListChangedEventHandlerBox:: { vtable: &GameListChangedEventHandlerBox::::VTABLE, count: ::windows_core::imp::RefCount::new(1), invoke }; @@ -698,7 +628,7 @@ impl) -> ::windows_core::Result< if iid.is_null() || interface.is_null() { return ::windows_core::HRESULT(-2147467261); } - *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; + *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::Interface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::Interface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; if (*interface).is_null() { ::windows_core::HRESULT(-2147467262) } else { @@ -723,12 +653,6 @@ impl) -> ::windows_core::Result< ((*this).invoke)(::windows_core::from_raw_borrowed(&game)).into() } } -unsafe impl ::windows_core::Interface for GameListChangedEventHandler { - type Vtable = GameListChangedEventHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GameListChangedEventHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x25f6a421_d8f5_4d91_b40e_53d5e86fde64); -} impl ::windows_core::RuntimeType for GameListChangedEventHandler { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } @@ -738,9 +662,7 @@ pub struct GameListChangedEventHandler_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Invoke: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, game: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct GameListRemovedEventHandler(pub ::windows_core::IUnknown); +::windows_core::imp::com_interface!(GameListRemovedEventHandler, GameListRemovedEventHandler_Vtbl, 0x10c5648f_6c8f_4712_9b38_474bc22e76d8); impl GameListRemovedEventHandler { pub fn new ::windows_core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = GameListRemovedEventHandlerBox:: { vtable: &GameListRemovedEventHandlerBox::::VTABLE, count: ::windows_core::imp::RefCount::new(1), invoke }; @@ -767,7 +689,7 @@ impl ::windows_core::Result<()> + ::core:: if iid.is_null() || interface.is_null() { return ::windows_core::HRESULT(-2147467261); } - *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; + *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::Interface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::Interface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; if (*interface).is_null() { ::windows_core::HRESULT(-2147467262) } else { @@ -792,12 +714,6 @@ impl ::windows_core::Result<()> + ::core:: ((*this).invoke)(::core::mem::transmute(&identifier)).into() } } -unsafe impl ::windows_core::Interface for GameListRemovedEventHandler { - type Vtable = GameListRemovedEventHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GameListRemovedEventHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x10c5648f_6c8f_4712_9b38_474bc22e76d8); -} impl ::windows_core::RuntimeType for GameListRemovedEventHandler { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } diff --git a/crates/libs/windows/src/Windows/Gaming/UI/mod.rs b/crates/libs/windows/src/Windows/Gaming/UI/mod.rs index 7da83e4560..46728fac69 100644 --- a/crates/libs/windows/src/Windows/Gaming/UI/mod.rs +++ b/crates/libs/windows/src/Windows/Gaming/UI/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGameBarStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGameBarStatics { - type Vtable = IGameBarStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGameBarStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1db9a292_cc78_4173_be45_b61e67283ea7); -} +::windows_core::imp::com_interface!(IGameBarStatics, IGameBarStatics_Vtbl, 0x1db9a292_cc78_4173_be45_b61e67283ea7); #[repr(C)] #[doc(hidden)] pub struct IGameBarStatics_Vtbl { @@ -19,16 +10,7 @@ pub struct IGameBarStatics_Vtbl { pub Visible: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub IsInputRedirected: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGameChatMessageReceivedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGameChatMessageReceivedEventArgs { - type Vtable = IGameChatMessageReceivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGameChatMessageReceivedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa28201f1_3fb9_4e42_a403_7afce2023b1e); -} +::windows_core::imp::com_interface!(IGameChatMessageReceivedEventArgs, IGameChatMessageReceivedEventArgs_Vtbl, 0xa28201f1_3fb9_4e42_a403_7afce2023b1e); #[repr(C)] #[doc(hidden)] pub struct IGameChatMessageReceivedEventArgs_Vtbl { @@ -39,16 +21,7 @@ pub struct IGameChatMessageReceivedEventArgs_Vtbl { pub Message: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Origin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut GameChatMessageOrigin) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGameChatOverlay(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGameChatOverlay { - type Vtable = IGameChatOverlay_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGameChatOverlay { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfbc64865_f6fc_4a48_ae07_03ac6ed43704); -} +::windows_core::imp::com_interface!(IGameChatOverlay, IGameChatOverlay_Vtbl, 0xfbc64865_f6fc_4a48_ae07_03ac6ed43704); #[repr(C)] #[doc(hidden)] pub struct IGameChatOverlay_Vtbl { @@ -57,16 +30,7 @@ pub struct IGameChatOverlay_Vtbl { pub SetDesiredPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: GameChatOverlayPosition) -> ::windows_core::HRESULT, pub AddMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sender: ::std::mem::MaybeUninit<::windows_core::HSTRING>, message: ::std::mem::MaybeUninit<::windows_core::HSTRING>, origin: GameChatMessageOrigin) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGameChatOverlayMessageSource(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGameChatOverlayMessageSource { - type Vtable = IGameChatOverlayMessageSource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGameChatOverlayMessageSource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1e177397_59fb_4f4f_8e9a_80acf817743c); -} +::windows_core::imp::com_interface!(IGameChatOverlayMessageSource, IGameChatOverlayMessageSource_Vtbl, 0x1e177397_59fb_4f4f_8e9a_80acf817743c); #[repr(C)] #[doc(hidden)] pub struct IGameChatOverlayMessageSource_Vtbl { @@ -75,32 +39,14 @@ pub struct IGameChatOverlayMessageSource_Vtbl { pub RemoveMessageReceived: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub SetDelayBeforeClosingAfterMessageReceived: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::Foundation::TimeSpan) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGameChatOverlayStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGameChatOverlayStatics { - type Vtable = IGameChatOverlayStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGameChatOverlayStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x89acf614_7867_49f7_9687_25d9dbf444d1); -} +::windows_core::imp::com_interface!(IGameChatOverlayStatics, IGameChatOverlayStatics_Vtbl, 0x89acf614_7867_49f7_9687_25d9dbf444d1); #[repr(C)] #[doc(hidden)] pub struct IGameChatOverlayStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetDefault: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGameUIProviderActivatedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGameUIProviderActivatedEventArgs { - type Vtable = IGameUIProviderActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGameUIProviderActivatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa7b3203e_caf7_4ded_bbd2_47de43bb6dd5); -} +::windows_core::imp::com_interface!(IGameUIProviderActivatedEventArgs, IGameUIProviderActivatedEventArgs_Vtbl, 0xa7b3203e_caf7_4ded_bbd2_47de43bb6dd5); #[repr(C)] #[doc(hidden)] pub struct IGameUIProviderActivatedEventArgs_Vtbl { @@ -164,6 +110,7 @@ impl ::windows_core::RuntimeName for GameBar { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GameChatMessageReceivedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GameChatMessageReceivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GameChatMessageReceivedEventArgs { pub fn AppId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -206,19 +153,17 @@ impl ::windows_core::RuntimeType for GameChatMessageReceivedEventArgs { } unsafe impl ::windows_core::Interface for GameChatMessageReceivedEventArgs { type Vtable = IGameChatMessageReceivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GameChatMessageReceivedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GameChatMessageReceivedEventArgs { const NAME: &'static str = "Windows.Gaming.UI.GameChatMessageReceivedEventArgs"; } -::windows_core::imp::interface_hierarchy!(GameChatMessageReceivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GameChatMessageReceivedEventArgs {} unsafe impl ::core::marker::Sync for GameChatMessageReceivedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GameChatOverlay(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GameChatOverlay, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GameChatOverlay { pub fn DesiredPosition(&self) -> ::windows_core::Result { let this = self; @@ -252,19 +197,17 @@ impl ::windows_core::RuntimeType for GameChatOverlay { } unsafe impl ::windows_core::Interface for GameChatOverlay { type Vtable = IGameChatOverlay_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GameChatOverlay { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GameChatOverlay { const NAME: &'static str = "Windows.Gaming.UI.GameChatOverlay"; } -::windows_core::imp::interface_hierarchy!(GameChatOverlay, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GameChatOverlay {} unsafe impl ::core::marker::Sync for GameChatOverlay {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GameChatOverlayMessageSource(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GameChatOverlayMessageSource, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GameChatOverlayMessageSource { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -297,24 +240,24 @@ impl ::windows_core::RuntimeType for GameChatOverlayMessageSource { } unsafe impl ::windows_core::Interface for GameChatOverlayMessageSource { type Vtable = IGameChatOverlayMessageSource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GameChatOverlayMessageSource { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GameChatOverlayMessageSource { const NAME: &'static str = "Windows.Gaming.UI.GameChatOverlayMessageSource"; } -::windows_core::imp::interface_hierarchy!(GameChatOverlayMessageSource, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GameChatOverlayMessageSource {} unsafe impl ::core::marker::Sync for GameChatOverlayMessageSource {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GameUIProviderActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GameUIProviderActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::required_hierarchy!(GameUIProviderActivatedEventArgs, super::super::ApplicationModel::Activation::IActivatedEventArgs); impl GameUIProviderActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -323,7 +266,7 @@ impl GameUIProviderActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -332,7 +275,7 @@ impl GameUIProviderActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -362,16 +305,11 @@ impl ::windows_core::RuntimeType for GameUIProviderActivatedEventArgs { } unsafe impl ::windows_core::Interface for GameUIProviderActivatedEventArgs { type Vtable = IGameUIProviderActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GameUIProviderActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GameUIProviderActivatedEventArgs { const NAME: &'static str = "Windows.Gaming.UI.GameUIProviderActivatedEventArgs"; } -::windows_core::imp::interface_hierarchy!(GameUIProviderActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for GameUIProviderActivatedEventArgs {} unsafe impl ::core::marker::Send for GameUIProviderActivatedEventArgs {} unsafe impl ::core::marker::Sync for GameUIProviderActivatedEventArgs {} #[repr(transparent)] 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 4bd66edcfe..88dec32ece 100644 --- a/crates/libs/windows/src/Windows/Gaming/XboxLive/Storage/mod.rs +++ b/crates/libs/windows/src/Windows/Gaming/XboxLive/Storage/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGameSaveBlobGetResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGameSaveBlobGetResult { - type Vtable = IGameSaveBlobGetResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGameSaveBlobGetResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x917281e0_7201_4953_aa2c_4008f03aef45); -} +::windows_core::imp::com_interface!(IGameSaveBlobGetResult, IGameSaveBlobGetResult_Vtbl, 0x917281e0_7201_4953_aa2c_4008f03aef45); #[repr(C)] #[doc(hidden)] pub struct IGameSaveBlobGetResult_Vtbl { @@ -18,16 +9,7 @@ pub struct IGameSaveBlobGetResult_Vtbl { #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage_Streams")))] Value: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGameSaveBlobInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGameSaveBlobInfo { - type Vtable = IGameSaveBlobInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGameSaveBlobInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xadd38034_baf0_4645_b6d0_46edaffb3c2b); -} +::windows_core::imp::com_interface!(IGameSaveBlobInfo, IGameSaveBlobInfo_Vtbl, 0xadd38034_baf0_4645_b6d0_46edaffb3c2b); #[repr(C)] #[doc(hidden)] pub struct IGameSaveBlobInfo_Vtbl { @@ -35,16 +17,7 @@ pub struct IGameSaveBlobInfo_Vtbl { pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Size: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGameSaveBlobInfoGetResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGameSaveBlobInfoGetResult { - type Vtable = IGameSaveBlobInfoGetResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGameSaveBlobInfoGetResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc7578582_3697_42bf_989c_665d923b5231); -} +::windows_core::imp::com_interface!(IGameSaveBlobInfoGetResult, IGameSaveBlobInfoGetResult_Vtbl, 0xc7578582_3697_42bf_989c_665d923b5231); #[repr(C)] #[doc(hidden)] pub struct IGameSaveBlobInfoGetResult_Vtbl { @@ -55,16 +28,7 @@ pub struct IGameSaveBlobInfoGetResult_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Value: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGameSaveBlobInfoQuery(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGameSaveBlobInfoQuery { - type Vtable = IGameSaveBlobInfoQuery_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGameSaveBlobInfoQuery { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9fdd74b2_eeee_447b_a9d2_7f96c0f83208); -} +::windows_core::imp::com_interface!(IGameSaveBlobInfoQuery, IGameSaveBlobInfoQuery_Vtbl, 0x9fdd74b2_eeee_447b_a9d2_7f96c0f83208); #[repr(C)] #[doc(hidden)] pub struct IGameSaveBlobInfoQuery_Vtbl { @@ -73,16 +37,7 @@ pub struct IGameSaveBlobInfoQuery_Vtbl { pub GetBlobInfoWithIndexAndMaxAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, startindex: u32, maxnumberofitems: u32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetItemCountAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGameSaveContainer(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGameSaveContainer { - type Vtable = IGameSaveContainer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGameSaveContainer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc3c08f89_563f_4ecd_9c6f_33fd0e323d10); -} +::windows_core::imp::com_interface!(IGameSaveContainer, IGameSaveContainer_Vtbl, 0xc3c08f89_563f_4ecd_9c6f_33fd0e323d10); #[repr(C)] #[doc(hidden)] pub struct IGameSaveContainer_Vtbl { @@ -107,16 +62,7 @@ pub struct IGameSaveContainer_Vtbl { SubmitPropertySetUpdatesAsync: usize, pub CreateBlobInfoQuery: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, blobnameprefix: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGameSaveContainerInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGameSaveContainerInfo { - type Vtable = IGameSaveContainerInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGameSaveContainerInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb7e27300_155d_4bb4_b2ba_930306f391b5); -} +::windows_core::imp::com_interface!(IGameSaveContainerInfo, IGameSaveContainerInfo_Vtbl, 0xb7e27300_155d_4bb4_b2ba_930306f391b5); #[repr(C)] #[doc(hidden)] pub struct IGameSaveContainerInfo_Vtbl { @@ -127,16 +73,7 @@ pub struct IGameSaveContainerInfo_Vtbl { pub LastModifiedTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::DateTime) -> ::windows_core::HRESULT, pub NeedsSync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGameSaveContainerInfoGetResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGameSaveContainerInfoGetResult { - type Vtable = IGameSaveContainerInfoGetResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGameSaveContainerInfoGetResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xffc50d74_c581_4f9d_9e39_30a10c1e4c50); -} +::windows_core::imp::com_interface!(IGameSaveContainerInfoGetResult, IGameSaveContainerInfoGetResult_Vtbl, 0xffc50d74_c581_4f9d_9e39_30a10c1e4c50); #[repr(C)] #[doc(hidden)] pub struct IGameSaveContainerInfoGetResult_Vtbl { @@ -147,16 +84,7 @@ pub struct IGameSaveContainerInfoGetResult_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Value: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGameSaveContainerInfoQuery(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGameSaveContainerInfoQuery { - type Vtable = IGameSaveContainerInfoQuery_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGameSaveContainerInfoQuery { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3c94e863_6f80_4327_9327_ffc11afd42b3); -} +::windows_core::imp::com_interface!(IGameSaveContainerInfoQuery, IGameSaveContainerInfoQuery_Vtbl, 0x3c94e863_6f80_4327_9327_ffc11afd42b3); #[repr(C)] #[doc(hidden)] pub struct IGameSaveContainerInfoQuery_Vtbl { @@ -165,32 +93,14 @@ pub struct IGameSaveContainerInfoQuery_Vtbl { pub GetContainerInfoWithIndexAndMaxAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, startindex: u32, maxnumberofitems: u32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetItemCountAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGameSaveOperationResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGameSaveOperationResult { - type Vtable = IGameSaveOperationResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGameSaveOperationResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcf0f1a05_24a0_4582_9a55_b1bbbb9388d8); -} +::windows_core::imp::com_interface!(IGameSaveOperationResult, IGameSaveOperationResult_Vtbl, 0xcf0f1a05_24a0_4582_9a55_b1bbbb9388d8); #[repr(C)] #[doc(hidden)] pub struct IGameSaveOperationResult_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut GameSaveErrorStatus) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGameSaveProvider(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGameSaveProvider { - type Vtable = IGameSaveProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGameSaveProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x90a60394_80fe_4211_97f8_a5de14dd95d2); -} +::windows_core::imp::com_interface!(IGameSaveProvider, IGameSaveProvider_Vtbl, 0x90a60394_80fe_4211_97f8_a5de14dd95d2); #[repr(C)] #[doc(hidden)] pub struct IGameSaveProvider_Vtbl { @@ -209,16 +119,7 @@ pub struct IGameSaveProvider_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] ContainersChangedSinceLastSync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGameSaveProviderGetResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGameSaveProviderGetResult { - type Vtable = IGameSaveProviderGetResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGameSaveProviderGetResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3ab90816_d393_4d65_ac16_41c3e67ab945); -} +::windows_core::imp::com_interface!(IGameSaveProviderGetResult, IGameSaveProviderGetResult_Vtbl, 0x3ab90816_d393_4d65_ac16_41c3e67ab945); #[repr(C)] #[doc(hidden)] pub struct IGameSaveProviderGetResult_Vtbl { @@ -226,16 +127,7 @@ pub struct IGameSaveProviderGetResult_Vtbl { pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut GameSaveErrorStatus) -> ::windows_core::HRESULT, pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGameSaveProviderStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGameSaveProviderStatics { - type Vtable = IGameSaveProviderStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGameSaveProviderStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd01d3ed0_7b03_449d_8cbd_3402842a1048); -} +::windows_core::imp::com_interface!(IGameSaveProviderStatics, IGameSaveProviderStatics_Vtbl, 0xd01d3ed0_7b03_449d_8cbd_3402842a1048); #[repr(C)] #[doc(hidden)] pub struct IGameSaveProviderStatics_Vtbl { @@ -252,6 +144,7 @@ pub struct IGameSaveProviderStatics_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GameSaveBlobGetResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GameSaveBlobGetResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GameSaveBlobGetResult { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -275,19 +168,17 @@ impl ::windows_core::RuntimeType for GameSaveBlobGetResult { } unsafe impl ::windows_core::Interface for GameSaveBlobGetResult { type Vtable = IGameSaveBlobGetResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GameSaveBlobGetResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GameSaveBlobGetResult { const NAME: &'static str = "Windows.Gaming.XboxLive.Storage.GameSaveBlobGetResult"; } -::windows_core::imp::interface_hierarchy!(GameSaveBlobGetResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GameSaveBlobGetResult {} unsafe impl ::core::marker::Sync for GameSaveBlobGetResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GameSaveBlobInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GameSaveBlobInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GameSaveBlobInfo { pub fn Name(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -309,19 +200,17 @@ impl ::windows_core::RuntimeType for GameSaveBlobInfo { } unsafe impl ::windows_core::Interface for GameSaveBlobInfo { type Vtable = IGameSaveBlobInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GameSaveBlobInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GameSaveBlobInfo { const NAME: &'static str = "Windows.Gaming.XboxLive.Storage.GameSaveBlobInfo"; } -::windows_core::imp::interface_hierarchy!(GameSaveBlobInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GameSaveBlobInfo {} unsafe impl ::core::marker::Sync for GameSaveBlobInfo {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GameSaveBlobInfoGetResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GameSaveBlobInfoGetResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GameSaveBlobInfoGetResult { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -345,19 +234,17 @@ impl ::windows_core::RuntimeType for GameSaveBlobInfoGetResult { } unsafe impl ::windows_core::Interface for GameSaveBlobInfoGetResult { type Vtable = IGameSaveBlobInfoGetResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GameSaveBlobInfoGetResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GameSaveBlobInfoGetResult { const NAME: &'static str = "Windows.Gaming.XboxLive.Storage.GameSaveBlobInfoGetResult"; } -::windows_core::imp::interface_hierarchy!(GameSaveBlobInfoGetResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GameSaveBlobInfoGetResult {} unsafe impl ::core::marker::Sync for GameSaveBlobInfoGetResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GameSaveBlobInfoQuery(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GameSaveBlobInfoQuery, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GameSaveBlobInfoQuery { pub fn GetBlobInfoAsync(&self) -> ::windows_core::Result> { let this = self; @@ -386,19 +273,17 @@ impl ::windows_core::RuntimeType for GameSaveBlobInfoQuery { } unsafe impl ::windows_core::Interface for GameSaveBlobInfoQuery { type Vtable = IGameSaveBlobInfoQuery_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GameSaveBlobInfoQuery { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GameSaveBlobInfoQuery { const NAME: &'static str = "Windows.Gaming.XboxLive.Storage.GameSaveBlobInfoQuery"; } -::windows_core::imp::interface_hierarchy!(GameSaveBlobInfoQuery, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GameSaveBlobInfoQuery {} unsafe impl ::core::marker::Sync for GameSaveBlobInfoQuery {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GameSaveContainer(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GameSaveContainer, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GameSaveContainer { pub fn Name(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -418,50 +303,50 @@ 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::TryIntoParam>, - P1: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, + P1: ::windows_core::IntoParam>, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).SubmitUpdatesAsync)(::windows_core::Interface::as_raw(this), blobstowrite.try_into_param()?.abi(), blobstodelete.try_into_param()?.abi(), ::core::mem::transmute_copy(displayname), &mut result__).from_abi(result__) + (::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__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Storage_Streams\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] pub fn ReadAsync(&self, blobstoread: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).ReadAsync)(::windows_core::Interface::as_raw(this), blobstoread.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ReadAsync)(::windows_core::Interface::as_raw(this), blobstoread.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetAsync(&self, blobstoread: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).GetAsync)(::windows_core::Interface::as_raw(this), blobstoread.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).GetAsync)(::windows_core::Interface::as_raw(this), blobstoread.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn SubmitPropertySetUpdatesAsync(&self, blobstowrite: P0, blobstodelete: P1, displayname: &::windows_core::HSTRING) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam>, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).SubmitPropertySetUpdatesAsync)(::windows_core::Interface::as_raw(this), blobstowrite.try_into_param()?.abi(), blobstodelete.try_into_param()?.abi(), ::core::mem::transmute_copy(displayname), &mut result__).from_abi(result__) + (::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__).from_abi(result__) } } pub fn CreateBlobInfoQuery(&self, blobnameprefix: &::windows_core::HSTRING) -> ::windows_core::Result { @@ -477,19 +362,17 @@ impl ::windows_core::RuntimeType for GameSaveContainer { } unsafe impl ::windows_core::Interface for GameSaveContainer { type Vtable = IGameSaveContainer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GameSaveContainer { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GameSaveContainer { const NAME: &'static str = "Windows.Gaming.XboxLive.Storage.GameSaveContainer"; } -::windows_core::imp::interface_hierarchy!(GameSaveContainer, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GameSaveContainer {} unsafe impl ::core::marker::Sync for GameSaveContainer {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GameSaveContainerInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GameSaveContainerInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GameSaveContainerInfo { pub fn Name(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -532,19 +415,17 @@ impl ::windows_core::RuntimeType for GameSaveContainerInfo { } unsafe impl ::windows_core::Interface for GameSaveContainerInfo { type Vtable = IGameSaveContainerInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GameSaveContainerInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GameSaveContainerInfo { const NAME: &'static str = "Windows.Gaming.XboxLive.Storage.GameSaveContainerInfo"; } -::windows_core::imp::interface_hierarchy!(GameSaveContainerInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GameSaveContainerInfo {} unsafe impl ::core::marker::Sync for GameSaveContainerInfo {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GameSaveContainerInfoGetResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GameSaveContainerInfoGetResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GameSaveContainerInfoGetResult { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -568,19 +449,17 @@ impl ::windows_core::RuntimeType for GameSaveContainerInfoGetResult { } unsafe impl ::windows_core::Interface for GameSaveContainerInfoGetResult { type Vtable = IGameSaveContainerInfoGetResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GameSaveContainerInfoGetResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GameSaveContainerInfoGetResult { const NAME: &'static str = "Windows.Gaming.XboxLive.Storage.GameSaveContainerInfoGetResult"; } -::windows_core::imp::interface_hierarchy!(GameSaveContainerInfoGetResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GameSaveContainerInfoGetResult {} unsafe impl ::core::marker::Sync for GameSaveContainerInfoGetResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GameSaveContainerInfoQuery(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GameSaveContainerInfoQuery, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GameSaveContainerInfoQuery { pub fn GetContainerInfoAsync(&self) -> ::windows_core::Result> { let this = self; @@ -609,19 +488,17 @@ impl ::windows_core::RuntimeType for GameSaveContainerInfoQuery { } unsafe impl ::windows_core::Interface for GameSaveContainerInfoQuery { type Vtable = IGameSaveContainerInfoQuery_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GameSaveContainerInfoQuery { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GameSaveContainerInfoQuery { const NAME: &'static str = "Windows.Gaming.XboxLive.Storage.GameSaveContainerInfoQuery"; } -::windows_core::imp::interface_hierarchy!(GameSaveContainerInfoQuery, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GameSaveContainerInfoQuery {} unsafe impl ::core::marker::Sync for GameSaveContainerInfoQuery {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GameSaveOperationResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GameSaveOperationResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GameSaveOperationResult { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -636,19 +513,17 @@ impl ::windows_core::RuntimeType for GameSaveOperationResult { } unsafe impl ::windows_core::Interface for GameSaveOperationResult { type Vtable = IGameSaveOperationResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GameSaveOperationResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GameSaveOperationResult { const NAME: &'static str = "Windows.Gaming.XboxLive.Storage.GameSaveOperationResult"; } -::windows_core::imp::interface_hierarchy!(GameSaveOperationResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GameSaveOperationResult {} unsafe impl ::core::marker::Sync for GameSaveOperationResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GameSaveProvider(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GameSaveProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GameSaveProvider { #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] @@ -736,19 +611,17 @@ impl ::windows_core::RuntimeType for GameSaveProvider { } unsafe impl ::windows_core::Interface for GameSaveProvider { type Vtable = IGameSaveProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GameSaveProvider { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GameSaveProvider { const NAME: &'static str = "Windows.Gaming.XboxLive.Storage.GameSaveProvider"; } -::windows_core::imp::interface_hierarchy!(GameSaveProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GameSaveProvider {} unsafe impl ::core::marker::Sync for GameSaveProvider {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GameSaveProviderGetResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GameSaveProviderGetResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GameSaveProviderGetResult { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -770,14 +643,11 @@ impl ::windows_core::RuntimeType for GameSaveProviderGetResult { } unsafe impl ::windows_core::Interface for GameSaveProviderGetResult { type Vtable = IGameSaveProviderGetResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GameSaveProviderGetResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GameSaveProviderGetResult { const NAME: &'static str = "Windows.Gaming.XboxLive.Storage.GameSaveProviderGetResult"; } -::windows_core::imp::interface_hierarchy!(GameSaveProviderGetResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GameSaveProviderGetResult {} unsafe impl ::core::marker::Sync for GameSaveProviderGetResult {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Globalization/Collation/mod.rs b/crates/libs/windows/src/Windows/Globalization/Collation/mod.rs index b4ee8370d7..98b520912e 100644 --- a/crates/libs/windows/src/Windows/Globalization/Collation/mod.rs +++ b/crates/libs/windows/src/Windows/Globalization/Collation/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICharacterGrouping(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICharacterGrouping { - type Vtable = ICharacterGrouping_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICharacterGrouping { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfae761bb_805d_4bb0_95bb_c1f7c3e8eb8e); -} +::windows_core::imp::com_interface!(ICharacterGrouping, ICharacterGrouping_Vtbl, 0xfae761bb_805d_4bb0_95bb_c1f7c3e8eb8e); #[repr(C)] #[doc(hidden)] pub struct ICharacterGrouping_Vtbl { @@ -15,32 +6,14 @@ pub struct ICharacterGrouping_Vtbl { pub First: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Label: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICharacterGroupings(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICharacterGroupings { - type Vtable = ICharacterGroupings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICharacterGroupings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb8d20a75_d4cf_4055_80e5_ce169c226496); -} +::windows_core::imp::com_interface!(ICharacterGroupings, ICharacterGroupings_Vtbl, 0xb8d20a75_d4cf_4055_80e5_ce169c226496); #[repr(C)] #[doc(hidden)] pub struct ICharacterGroupings_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Lookup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, text: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICharacterGroupingsFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICharacterGroupingsFactory { - type Vtable = ICharacterGroupingsFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICharacterGroupingsFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x99ea9fd9_886d_4401_9f98_69c82d4c2f78); -} +::windows_core::imp::com_interface!(ICharacterGroupingsFactory, ICharacterGroupingsFactory_Vtbl, 0x99ea9fd9_886d_4401_9f98_69c82d4c2f78); #[repr(C)] #[doc(hidden)] pub struct ICharacterGroupingsFactory_Vtbl { @@ -50,6 +23,7 @@ pub struct ICharacterGroupingsFactory_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CharacterGrouping(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CharacterGrouping, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CharacterGrouping { pub fn First(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -71,19 +45,19 @@ impl ::windows_core::RuntimeType for CharacterGrouping { } unsafe impl ::windows_core::Interface for CharacterGrouping { type Vtable = ICharacterGrouping_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CharacterGrouping { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CharacterGrouping { const NAME: &'static str = "Windows.Globalization.Collation.CharacterGrouping"; } -::windows_core::imp::interface_hierarchy!(CharacterGrouping, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CharacterGrouping {} unsafe impl ::core::marker::Sync for CharacterGrouping {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CharacterGroupings(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CharacterGroupings, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(CharacterGroupings, super::super::Foundation::Collections::IIterable::, super::super::Foundation::Collections::IVectorView::); impl CharacterGroupings { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -108,7 +82,7 @@ impl CharacterGroupings { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -117,7 +91,7 @@ impl CharacterGroupings { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetAt(&self, index: u32) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetAt)(::windows_core::Interface::as_raw(this), index, &mut result__).from_abi(result__) @@ -126,7 +100,7 @@ impl CharacterGroupings { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Size(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Size)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -138,7 +112,7 @@ impl CharacterGroupings { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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__).from_abi(result__) @@ -147,7 +121,7 @@ impl CharacterGroupings { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetMany(&self, startindex: u32, items: &mut [::core::option::Option]) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetMany)(::windows_core::Interface::as_raw(this), startindex, items.len().try_into().unwrap(), ::core::mem::transmute_copy(&items), &mut result__).from_abi(result__) @@ -164,9 +138,7 @@ impl ::windows_core::RuntimeType for CharacterGroupings { } unsafe impl ::windows_core::Interface for CharacterGroupings { type Vtable = ICharacterGroupings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CharacterGroupings { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CharacterGroupings { const NAME: &'static str = "Windows.Globalization.Collation.CharacterGroupings"; @@ -184,13 +156,8 @@ impl ::core::iter::IntoIterator for &CharacterGroupings { type Item = CharacterGrouping; type IntoIter = super::super::Foundation::Collections::VectorViewIterator; fn into_iter(self) -> Self::IntoIter { - super::super::Foundation::Collections::VectorViewIterator::new(::windows_core::ComInterface::cast(self).ok()) + super::super::Foundation::Collections::VectorViewIterator::new(::windows_core::Interface::cast(self).ok()) } } -::windows_core::imp::interface_hierarchy!(CharacterGroupings, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for CharacterGroupings {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for CharacterGroupings {} unsafe impl ::core::marker::Send for CharacterGroupings {} unsafe impl ::core::marker::Sync for CharacterGroupings {} diff --git a/crates/libs/windows/src/Windows/Globalization/DateTimeFormatting/mod.rs b/crates/libs/windows/src/Windows/Globalization/DateTimeFormatting/mod.rs index 0c0a516e7f..c3460c322a 100644 --- a/crates/libs/windows/src/Windows/Globalization/DateTimeFormatting/mod.rs +++ b/crates/libs/windows/src/Windows/Globalization/DateTimeFormatting/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDateTimeFormatter(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDateTimeFormatter { - type Vtable = IDateTimeFormatter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDateTimeFormatter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x95eeca10_73e0_4e4b_a183_3d6ad0ba35ec); -} +::windows_core::imp::com_interface!(IDateTimeFormatter, IDateTimeFormatter_Vtbl, 0x95eeca10_73e0_4e4b_a183_3d6ad0ba35ec); #[repr(C)] #[doc(hidden)] pub struct IDateTimeFormatter_Vtbl { @@ -37,32 +28,14 @@ pub struct IDateTimeFormatter_Vtbl { pub ResolvedLanguage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub ResolvedGeographicRegion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDateTimeFormatter2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDateTimeFormatter2 { - type Vtable = IDateTimeFormatter2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDateTimeFormatter2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x27c91a86_bdaa_4fd0_9e36_671d5aa5ee03); -} +::windows_core::imp::com_interface!(IDateTimeFormatter2, IDateTimeFormatter2_Vtbl, 0x27c91a86_bdaa_4fd0_9e36_671d5aa5ee03); #[repr(C)] #[doc(hidden)] pub struct IDateTimeFormatter2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub FormatUsingTimeZone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, datetime: super::super::Foundation::DateTime, timezoneid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDateTimeFormatterFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDateTimeFormatterFactory { - type Vtable = IDateTimeFormatterFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDateTimeFormatterFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xec8d8a53_1a2e_412d_8815_3b745fb1a2a0); -} +::windows_core::imp::com_interface!(IDateTimeFormatterFactory, IDateTimeFormatterFactory_Vtbl, 0xec8d8a53_1a2e_412d_8815_3b745fb1a2a0); #[repr(C)] #[doc(hidden)] pub struct IDateTimeFormatterFactory_Vtbl { @@ -87,16 +60,7 @@ pub struct IDateTimeFormatterFactory_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] CreateDateTimeFormatterDateTimeContext: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDateTimeFormatterStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDateTimeFormatterStatics { - type Vtable = IDateTimeFormatterStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDateTimeFormatterStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbfcde7c0_df4c_4a2e_9012_f47daf3f1212); -} +::windows_core::imp::com_interface!(IDateTimeFormatterStatics, IDateTimeFormatterStatics_Vtbl, 0xbfcde7c0_df4c_4a2e_9012_f47daf3f1212); #[repr(C)] #[doc(hidden)] pub struct IDateTimeFormatterStatics_Vtbl { @@ -109,6 +73,7 @@ pub struct IDateTimeFormatterStatics_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DateTimeFormatter(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DateTimeFormatter, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DateTimeFormatter { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -238,7 +203,7 @@ impl DateTimeFormatter { } } pub fn FormatUsingTimeZone(&self, datetime: super::super::Foundation::DateTime, timezoneid: &::windows_core::HSTRING) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FormatUsingTimeZone)(::windows_core::Interface::as_raw(this), datetime, ::core::mem::transmute_copy(timezoneid), &mut result__).from_abi(result__) @@ -254,22 +219,22 @@ impl DateTimeFormatter { #[cfg(feature = "Foundation_Collections")] pub fn CreateDateTimeFormatterLanguages(formattemplate: &::windows_core::HSTRING, languages: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateDateTimeFormatterLanguages)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(formattemplate), languages.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`"] #[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::TryIntoParam>, + P0: ::windows_core::IntoParam>, { 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.try_into_param()?.abi(), ::core::mem::transmute_copy(geographicregion), ::core::mem::transmute_copy(calendar), ::core::mem::transmute_copy(clock), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } pub fn CreateDateTimeFormatterDate(yearformat: YearFormat, monthformat: MonthFormat, dayformat: DayFormat, dayofweekformat: DayOfWeekFormat) -> ::windows_core::Result { @@ -288,22 +253,22 @@ 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::TryIntoParam>, + P0: ::windows_core::IntoParam>, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`"] #[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::TryIntoParam>, + P0: ::windows_core::IntoParam>, { 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.try_into_param()?.abi(), ::core::mem::transmute_copy(geographicregion), ::core::mem::transmute_copy(calendar), ::core::mem::transmute_copy(clock), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } pub fn LongDate() -> ::windows_core::Result { @@ -346,14 +311,11 @@ impl ::windows_core::RuntimeType for DateTimeFormatter { } unsafe impl ::windows_core::Interface for DateTimeFormatter { type Vtable = IDateTimeFormatter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DateTimeFormatter { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DateTimeFormatter { const NAME: &'static str = "Windows.Globalization.DateTimeFormatting.DateTimeFormatter"; } -::windows_core::imp::interface_hierarchy!(DateTimeFormatter, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DateTimeFormatter {} unsafe impl ::core::marker::Sync for DateTimeFormatter {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Globalization/Fonts/mod.rs b/crates/libs/windows/src/Windows/Globalization/Fonts/mod.rs index 73093b46f2..29ad07fc49 100644 --- a/crates/libs/windows/src/Windows/Globalization/Fonts/mod.rs +++ b/crates/libs/windows/src/Windows/Globalization/Fonts/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILanguageFont(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILanguageFont { - type Vtable = ILanguageFont_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILanguageFont { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb12e5c3a_b76d_459b_beeb_901151cd77d1); -} +::windows_core::imp::com_interface!(ILanguageFont, ILanguageFont_Vtbl, 0xb12e5c3a_b76d_459b_beeb_901151cd77d1); #[repr(C)] #[doc(hidden)] pub struct ILanguageFont_Vtbl { @@ -27,16 +18,7 @@ pub struct ILanguageFont_Vtbl { FontStyle: usize, pub ScaleFactor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILanguageFontGroup(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILanguageFontGroup { - type Vtable = ILanguageFontGroup_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILanguageFontGroup { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf33a7fc3_3a5c_4aea_b9ff_b39fb242f7f6); -} +::windows_core::imp::com_interface!(ILanguageFontGroup, ILanguageFontGroup_Vtbl, 0xf33a7fc3_3a5c_4aea_b9ff_b39fb242f7f6); #[repr(C)] #[doc(hidden)] pub struct ILanguageFontGroup_Vtbl { @@ -53,16 +35,7 @@ pub struct ILanguageFontGroup_Vtbl { pub DocumentAlternate1Font: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub DocumentAlternate2Font: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILanguageFontGroupFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILanguageFontGroupFactory { - type Vtable = ILanguageFontGroupFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILanguageFontGroupFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfcaeac67_4e77_49c7_b856_dde934fc735b); -} +::windows_core::imp::com_interface!(ILanguageFontGroupFactory, ILanguageFontGroupFactory_Vtbl, 0xfcaeac67_4e77_49c7_b856_dde934fc735b); #[repr(C)] #[doc(hidden)] pub struct ILanguageFontGroupFactory_Vtbl { @@ -72,6 +45,7 @@ pub struct ILanguageFontGroupFactory_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LanguageFont(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LanguageFont, ::windows_core::IUnknown, ::windows_core::IInspectable); impl LanguageFont { pub fn FontFamily(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -120,19 +94,17 @@ impl ::windows_core::RuntimeType for LanguageFont { } unsafe impl ::windows_core::Interface for LanguageFont { type Vtable = ILanguageFont_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LanguageFont { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LanguageFont { const NAME: &'static str = "Windows.Globalization.Fonts.LanguageFont"; } -::windows_core::imp::interface_hierarchy!(LanguageFont, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for LanguageFont {} unsafe impl ::core::marker::Sync for LanguageFont {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LanguageFontGroup(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LanguageFontGroup, ::windows_core::IUnknown, ::windows_core::IInspectable); impl LanguageFontGroup { pub fn UITextFont(&self) -> ::windows_core::Result { let this = self; @@ -228,13 +200,10 @@ impl ::windows_core::RuntimeType for LanguageFontGroup { } unsafe impl ::windows_core::Interface for LanguageFontGroup { type Vtable = ILanguageFontGroup_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LanguageFontGroup { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LanguageFontGroup { const NAME: &'static str = "Windows.Globalization.Fonts.LanguageFontGroup"; } -::windows_core::imp::interface_hierarchy!(LanguageFontGroup, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for LanguageFontGroup {} unsafe impl ::core::marker::Sync for LanguageFontGroup {} diff --git a/crates/libs/windows/src/Windows/Globalization/NumberFormatting/impl.rs b/crates/libs/windows/src/Windows/Globalization/NumberFormatting/impl.rs index b8afb4372f..beba929f8f 100644 --- a/crates/libs/windows/src/Windows/Globalization/NumberFormatting/impl.rs +++ b/crates/libs/windows/src/Windows/Globalization/NumberFormatting/impl.rs @@ -52,7 +52,7 @@ impl INumberFormatter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait INumberFormatter2_Impl: Sized { @@ -109,7 +109,7 @@ impl INumberFormatter2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -285,7 +285,7 @@ impl INumberFormatterOptions_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait INumberParser_Impl: Sized { @@ -342,7 +342,7 @@ impl INumberParser_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait INumberRounder_Impl: Sized { @@ -435,7 +435,7 @@ impl INumberRounder_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait INumberRounderOption_Impl: Sized { @@ -471,7 +471,7 @@ impl INumberRounderOption_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISignedZeroOption_Impl: Sized { @@ -506,7 +506,7 @@ impl ISignedZeroOption_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISignificantDigitsOption_Impl: Sized { @@ -541,6 +541,6 @@ impl ISignificantDigitsOption_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs b/crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs index 4385946b69..734b2c6717 100644 --- a/crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs +++ b/crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICurrencyFormatter(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICurrencyFormatter { - type Vtable = ICurrencyFormatter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICurrencyFormatter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x11730ca5_4b00_41b2_b332_73b12a497d54); -} +::windows_core::imp::com_interface!(ICurrencyFormatter, ICurrencyFormatter_Vtbl, 0x11730ca5_4b00_41b2_b332_73b12a497d54); #[repr(C)] #[doc(hidden)] pub struct ICurrencyFormatter_Vtbl { @@ -18,16 +9,7 @@ pub struct ICurrencyFormatter_Vtbl { #[cfg(not(feature = "deprecated"))] SetCurrency: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICurrencyFormatter2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICurrencyFormatter2 { - type Vtable = ICurrencyFormatter2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICurrencyFormatter2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x072c2f1d_e7ba_4197_920e_247c92f7dea6); -} +::windows_core::imp::com_interface!(ICurrencyFormatter2, ICurrencyFormatter2_Vtbl, 0x072c2f1d_e7ba_4197_920e_247c92f7dea6); #[repr(C)] #[doc(hidden)] pub struct ICurrencyFormatter2_Vtbl { @@ -36,16 +18,7 @@ pub struct ICurrencyFormatter2_Vtbl { pub SetMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: CurrencyFormatterMode) -> ::windows_core::HRESULT, pub ApplyRoundingForCurrency: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, roundingalgorithm: RoundingAlgorithm) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICurrencyFormatterFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICurrencyFormatterFactory { - type Vtable = ICurrencyFormatterFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICurrencyFormatterFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x86c7537e_b938_4aa2_84b0_2c33dc5b1450); -} +::windows_core::imp::com_interface!(ICurrencyFormatterFactory, ICurrencyFormatterFactory_Vtbl, 0x86c7537e_b938_4aa2_84b0_2c33dc5b1450); #[repr(C)] #[doc(hidden)] pub struct ICurrencyFormatterFactory_Vtbl { @@ -56,16 +29,7 @@ pub struct ICurrencyFormatterFactory_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] CreateCurrencyFormatterCodeContext: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDecimalFormatterFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDecimalFormatterFactory { - type Vtable = IDecimalFormatterFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDecimalFormatterFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0d018c9a_e393_46b8_b830_7a69c8f89fbb); -} +::windows_core::imp::com_interface!(IDecimalFormatterFactory, IDecimalFormatterFactory_Vtbl, 0x0d018c9a_e393_46b8_b830_7a69c8f89fbb); #[repr(C)] #[doc(hidden)] pub struct IDecimalFormatterFactory_Vtbl { @@ -75,16 +39,7 @@ pub struct IDecimalFormatterFactory_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] CreateDecimalFormatter: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIncrementNumberRounder(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIncrementNumberRounder { - type Vtable = IIncrementNumberRounder_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIncrementNumberRounder { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x70a64ff8_66ab_4155_9da1_739e46764543); -} +::windows_core::imp::com_interface!(IIncrementNumberRounder, IIncrementNumberRounder_Vtbl, 0x70a64ff8_66ab_4155_9da1_739e46764543); #[repr(C)] #[doc(hidden)] pub struct IIncrementNumberRounder_Vtbl { @@ -94,9 +49,8 @@ pub struct IIncrementNumberRounder_Vtbl { pub Increment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows_core::HRESULT, pub SetIncrement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INumberFormatter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INumberFormatter, INumberFormatter_Vtbl, 0xa5007c49_7676_4db7_8631_1b6ff265caa9); +::windows_core::imp::interface_hierarchy!(INumberFormatter, ::windows_core::IUnknown, ::windows_core::IInspectable); impl INumberFormatter { pub fn FormatInt(&self, value: i64) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -120,16 +74,9 @@ impl INumberFormatter { } } } -::windows_core::imp::interface_hierarchy!(INumberFormatter, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for INumberFormatter { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for INumberFormatter { - type Vtable = INumberFormatter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INumberFormatter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa5007c49_7676_4db7_8631_1b6ff265caa9); -} #[repr(C)] #[doc(hidden)] pub struct INumberFormatter_Vtbl { @@ -138,9 +85,8 @@ pub struct INumberFormatter_Vtbl { pub FormatUInt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: u64, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub FormatDouble: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f64, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INumberFormatter2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INumberFormatter2, INumberFormatter2_Vtbl, 0xd4a8c1f0_80d0_4b0d_a89e_882c1e8f8310); +::windows_core::imp::interface_hierarchy!(INumberFormatter2, ::windows_core::IUnknown, ::windows_core::IInspectable); impl INumberFormatter2 { pub fn FormatInt(&self, value: i64) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -164,16 +110,9 @@ impl INumberFormatter2 { } } } -::windows_core::imp::interface_hierarchy!(INumberFormatter2, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for INumberFormatter2 { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for INumberFormatter2 { - type Vtable = INumberFormatter2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INumberFormatter2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd4a8c1f0_80d0_4b0d_a89e_882c1e8f8310); -} #[repr(C)] #[doc(hidden)] pub struct INumberFormatter2_Vtbl { @@ -182,9 +121,8 @@ pub struct INumberFormatter2_Vtbl { pub FormatUInt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: u64, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub FormatDouble: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f64, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INumberFormatterOptions(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INumberFormatterOptions, INumberFormatterOptions_Vtbl, 0x80332d21_aee1_4a39_baa2_07ed8c96daf6); +::windows_core::imp::interface_hierarchy!(INumberFormatterOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); impl INumberFormatterOptions { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -272,16 +210,9 @@ impl INumberFormatterOptions { } } } -::windows_core::imp::interface_hierarchy!(INumberFormatterOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for INumberFormatterOptions { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for INumberFormatterOptions { - type Vtable = INumberFormatterOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INumberFormatterOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x80332d21_aee1_4a39_baa2_07ed8c96daf6); -} #[repr(C)] #[doc(hidden)] pub struct INumberFormatterOptions_Vtbl { @@ -304,9 +235,8 @@ pub struct INumberFormatterOptions_Vtbl { pub ResolvedLanguage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub ResolvedGeographicRegion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INumberParser(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INumberParser, INumberParser_Vtbl, 0xe6659412_4a13_4a53_83a1_392fbe4cff9f); +::windows_core::imp::interface_hierarchy!(INumberParser, ::windows_core::IUnknown, ::windows_core::IInspectable); impl INumberParser { pub fn ParseInt(&self, text: &::windows_core::HSTRING) -> ::windows_core::Result> { let this = self; @@ -330,16 +260,9 @@ impl INumberParser { } } } -::windows_core::imp::interface_hierarchy!(INumberParser, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for INumberParser { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for INumberParser { - type Vtable = INumberParser_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INumberParser { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe6659412_4a13_4a53_83a1_392fbe4cff9f); -} #[repr(C)] #[doc(hidden)] pub struct INumberParser_Vtbl { @@ -348,9 +271,8 @@ pub struct INumberParser_Vtbl { pub ParseUInt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, text: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ParseDouble: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, text: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INumberRounder(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INumberRounder, INumberRounder_Vtbl, 0x5473c375_38ed_4631_b80c_ef34fc48b7f5); +::windows_core::imp::interface_hierarchy!(INumberRounder, ::windows_core::IUnknown, ::windows_core::IInspectable); impl INumberRounder { pub fn RoundInt32(&self, value: i32) -> ::windows_core::Result { let this = self; @@ -395,16 +317,9 @@ impl INumberRounder { } } } -::windows_core::imp::interface_hierarchy!(INumberRounder, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for INumberRounder { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for INumberRounder { - type Vtable = INumberRounder_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INumberRounder { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5473c375_38ed_4631_b80c_ef34fc48b7f5); -} #[repr(C)] #[doc(hidden)] pub struct INumberRounder_Vtbl { @@ -416,9 +331,8 @@ pub struct INumberRounder_Vtbl { pub RoundSingle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f32, result__: *mut f32) -> ::windows_core::HRESULT, pub RoundDouble: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f64, result__: *mut f64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INumberRounderOption(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INumberRounderOption, INumberRounderOption_Vtbl, 0x3b088433_646f_4efe_8d48_66eb2e49e736); +::windows_core::imp::interface_hierarchy!(INumberRounderOption, ::windows_core::IUnknown, ::windows_core::IInspectable); impl INumberRounderOption { pub fn NumberRounder(&self) -> ::windows_core::Result { let this = self; @@ -429,22 +343,15 @@ impl INumberRounderOption { } pub fn SetNumberRounder(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetNumberRounder)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetNumberRounder)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } } -::windows_core::imp::interface_hierarchy!(INumberRounderOption, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for INumberRounderOption { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for INumberRounderOption { - type Vtable = INumberRounderOption_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INumberRounderOption { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3b088433_646f_4efe_8d48_66eb2e49e736); -} #[repr(C)] #[doc(hidden)] pub struct INumberRounderOption_Vtbl { @@ -452,16 +359,7 @@ pub struct INumberRounderOption_Vtbl { pub NumberRounder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetNumberRounder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INumeralSystemTranslator(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INumeralSystemTranslator { - type Vtable = INumeralSystemTranslator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INumeralSystemTranslator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x28f5bc2c_8c23_4234_ad2e_fa5a3a426e9b); -} +::windows_core::imp::com_interface!(INumeralSystemTranslator, INumeralSystemTranslator_Vtbl, 0x28f5bc2c_8c23_4234_ad2e_fa5a3a426e9b); #[repr(C)] #[doc(hidden)] pub struct INumeralSystemTranslator_Vtbl { @@ -475,16 +373,7 @@ pub struct INumeralSystemTranslator_Vtbl { pub SetNumeralSystem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub TranslateNumerals: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INumeralSystemTranslatorFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INumeralSystemTranslatorFactory { - type Vtable = INumeralSystemTranslatorFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INumeralSystemTranslatorFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9630c8da_36ef_4d88_a85c_6f0d98d620a6); -} +::windows_core::imp::com_interface!(INumeralSystemTranslatorFactory, INumeralSystemTranslatorFactory_Vtbl, 0x9630c8da_36ef_4d88_a85c_6f0d98d620a6); #[repr(C)] #[doc(hidden)] pub struct INumeralSystemTranslatorFactory_Vtbl { @@ -494,16 +383,7 @@ pub struct INumeralSystemTranslatorFactory_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Create: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPercentFormatterFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPercentFormatterFactory { - type Vtable = IPercentFormatterFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPercentFormatterFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb7828aef_fed4_4018_a6e2_e09961e03765); -} +::windows_core::imp::com_interface!(IPercentFormatterFactory, IPercentFormatterFactory_Vtbl, 0xb7828aef_fed4_4018_a6e2_e09961e03765); #[repr(C)] #[doc(hidden)] pub struct IPercentFormatterFactory_Vtbl { @@ -513,16 +393,7 @@ pub struct IPercentFormatterFactory_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] CreatePercentFormatter: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPermilleFormatterFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPermilleFormatterFactory { - type Vtable = IPermilleFormatterFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPermilleFormatterFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2b37b4ac_e638_4ed5_a998_62f6b06a49ae); -} +::windows_core::imp::com_interface!(IPermilleFormatterFactory, IPermilleFormatterFactory_Vtbl, 0x2b37b4ac_e638_4ed5_a998_62f6b06a49ae); #[repr(C)] #[doc(hidden)] pub struct IPermilleFormatterFactory_Vtbl { @@ -532,9 +403,8 @@ pub struct IPermilleFormatterFactory_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] CreatePermilleFormatter: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISignedZeroOption(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISignedZeroOption, ISignedZeroOption_Vtbl, 0xfd1cdd31_0a3c_49c4_a642_96a1564f4f30); +::windows_core::imp::interface_hierarchy!(ISignedZeroOption, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ISignedZeroOption { pub fn IsZeroSigned(&self) -> ::windows_core::Result { let this = self; @@ -548,16 +418,9 @@ impl ISignedZeroOption { unsafe { (::windows_core::Interface::vtable(this).SetIsZeroSigned)(::windows_core::Interface::as_raw(this), value).ok() } } } -::windows_core::imp::interface_hierarchy!(ISignedZeroOption, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for ISignedZeroOption { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for ISignedZeroOption { - type Vtable = ISignedZeroOption_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISignedZeroOption { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfd1cdd31_0a3c_49c4_a642_96a1564f4f30); -} #[repr(C)] #[doc(hidden)] pub struct ISignedZeroOption_Vtbl { @@ -565,16 +428,7 @@ pub struct ISignedZeroOption_Vtbl { pub IsZeroSigned: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetIsZeroSigned: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISignificantDigitsNumberRounder(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISignificantDigitsNumberRounder { - type Vtable = ISignificantDigitsNumberRounder_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISignificantDigitsNumberRounder { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf5941bca_6646_4913_8c76_1b191ff94dfd); -} +::windows_core::imp::com_interface!(ISignificantDigitsNumberRounder, ISignificantDigitsNumberRounder_Vtbl, 0xf5941bca_6646_4913_8c76_1b191ff94dfd); #[repr(C)] #[doc(hidden)] pub struct ISignificantDigitsNumberRounder_Vtbl { @@ -584,9 +438,8 @@ pub struct ISignificantDigitsNumberRounder_Vtbl { pub SignificantDigits: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, pub SetSignificantDigits: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISignificantDigitsOption(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISignificantDigitsOption, ISignificantDigitsOption_Vtbl, 0x1d4dfcdd_2d43_4ee8_bbf1_c1b26a711a58); +::windows_core::imp::interface_hierarchy!(ISignificantDigitsOption, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ISignificantDigitsOption { pub fn SignificantDigits(&self) -> ::windows_core::Result { let this = self; @@ -600,16 +453,9 @@ impl ISignificantDigitsOption { unsafe { (::windows_core::Interface::vtable(this).SetSignificantDigits)(::windows_core::Interface::as_raw(this), value).ok() } } } -::windows_core::imp::interface_hierarchy!(ISignificantDigitsOption, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for ISignificantDigitsOption { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for ISignificantDigitsOption { - type Vtable = ISignificantDigitsOption_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISignificantDigitsOption { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1d4dfcdd_2d43_4ee8_bbf1_c1b26a711a58); -} #[repr(C)] #[doc(hidden)] pub struct ISignificantDigitsOption_Vtbl { @@ -620,6 +466,8 @@ pub struct ISignificantDigitsOption_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CurrencyFormatter(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CurrencyFormatter, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(CurrencyFormatter, INumberFormatter, INumberFormatter2, INumberFormatterOptions, INumberParser, INumberRounderOption, ISignedZeroOption, ISignificantDigitsOption); impl CurrencyFormatter { pub fn Currency(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -635,18 +483,18 @@ impl CurrencyFormatter { unsafe { (::windows_core::Interface::vtable(this).SetCurrency)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn Mode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Mode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetMode(&self, value: CurrencyFormatterMode) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMode)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn ApplyRoundingForCurrency(&self, roundingalgorithm: RoundingAlgorithm) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ApplyRoundingForCurrency)(::windows_core::Interface::as_raw(this), roundingalgorithm).ok() } } pub fn CreateCurrencyFormatterCode(currencycode: &::windows_core::HSTRING) -> ::windows_core::Result { @@ -659,50 +507,50 @@ 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::TryIntoParam>, + P0: ::windows_core::IntoParam>, { 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.try_into_param()?.abi(), ::core::mem::transmute_copy(geographicregion), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } pub fn FormatInt(&self, value: i64) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FormatInt)(::windows_core::Interface::as_raw(this), value, &mut result__).from_abi(result__) } } pub fn FormatUInt(&self, value: u64) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FormatUInt)(::windows_core::Interface::as_raw(this), value, &mut result__).from_abi(result__) } } pub fn FormatDouble(&self, value: f64) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FormatDouble)(::windows_core::Interface::as_raw(this), value, &mut result__).from_abi(result__) } } pub fn FormatInt2(&self, value: i64) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FormatInt)(::windows_core::Interface::as_raw(this), value, &mut result__).from_abi(result__) } } pub fn FormatUInt2(&self, value: u64) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FormatUInt)(::windows_core::Interface::as_raw(this), value, &mut result__).from_abi(result__) } } pub fn FormatDouble2(&self, value: f64) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FormatDouble)(::windows_core::Interface::as_raw(this), value, &mut result__).from_abi(result__) @@ -711,111 +559,111 @@ impl CurrencyFormatter { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Languages(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Languages)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GeographicRegion(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GeographicRegion)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IntegerDigits(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IntegerDigits)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIntegerDigits(&self, value: i32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIntegerDigits)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn FractionDigits(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FractionDigits)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetFractionDigits(&self, value: i32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetFractionDigits)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsGrouped(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsGrouped)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsGrouped(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsGrouped)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsDecimalPointAlwaysDisplayed(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsDecimalPointAlwaysDisplayed)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsDecimalPointAlwaysDisplayed(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsDecimalPointAlwaysDisplayed)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn NumeralSystem(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NumeralSystem)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetNumeralSystem(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetNumeralSystem)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ResolvedLanguage(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ResolvedLanguage)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ResolvedGeographicRegion(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ResolvedGeographicRegion)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ParseInt(&self, text: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ParseInt)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(text), &mut result__).from_abi(result__) } } pub fn ParseUInt(&self, text: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ParseUInt)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(text), &mut result__).from_abi(result__) } } pub fn ParseDouble(&self, text: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ParseDouble)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(text), &mut result__).from_abi(result__) } } pub fn NumberRounder(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NumberRounder)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -823,31 +671,31 @@ impl CurrencyFormatter { } pub fn SetNumberRounder(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetNumberRounder)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn IsZeroSigned(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsZeroSigned)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsZeroSigned(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsZeroSigned)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn SignificantDigits(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SignificantDigits)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetSignificantDigits(&self, value: i32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetSignificantDigits)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc(hidden)] @@ -861,26 +709,18 @@ impl ::windows_core::RuntimeType for CurrencyFormatter { } unsafe impl ::windows_core::Interface for CurrencyFormatter { type Vtable = ICurrencyFormatter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CurrencyFormatter { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CurrencyFormatter { const NAME: &'static str = "Windows.Globalization.NumberFormatting.CurrencyFormatter"; } -::windows_core::imp::interface_hierarchy!(CurrencyFormatter, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CurrencyFormatter {} -impl ::windows_core::CanTryInto for CurrencyFormatter {} -impl ::windows_core::CanTryInto for CurrencyFormatter {} -impl ::windows_core::CanTryInto for CurrencyFormatter {} -impl ::windows_core::CanTryInto for CurrencyFormatter {} -impl ::windows_core::CanTryInto for CurrencyFormatter {} -impl ::windows_core::CanTryInto for CurrencyFormatter {} unsafe impl ::core::marker::Send for CurrencyFormatter {} unsafe impl ::core::marker::Sync for CurrencyFormatter {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DecimalFormatter(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DecimalFormatter, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(DecimalFormatter, INumberFormatter, INumberFormatter2, INumberFormatterOptions, INumberParser, INumberRounderOption, ISignedZeroOption, ISignificantDigitsOption); impl DecimalFormatter { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -893,11 +733,11 @@ impl DecimalFormatter { #[cfg(feature = "Foundation_Collections")] pub fn CreateDecimalFormatter(languages: P0, geographicregion: &::windows_core::HSTRING) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::IDecimalFormatterFactory(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateDecimalFormatter)(::windows_core::Interface::as_raw(this), languages.try_into_param()?.abi(), ::core::mem::transmute_copy(geographicregion), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateDecimalFormatter)(::windows_core::Interface::as_raw(this), languages.into_param().abi(), ::core::mem::transmute_copy(geographicregion), &mut result__).from_abi(result__) }) } pub fn FormatInt(&self, value: i64) -> ::windows_core::Result<::windows_core::HSTRING> { @@ -922,21 +762,21 @@ impl DecimalFormatter { } } pub fn FormatInt2(&self, value: i64) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FormatInt)(::windows_core::Interface::as_raw(this), value, &mut result__).from_abi(result__) } } pub fn FormatUInt2(&self, value: u64) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FormatUInt)(::windows_core::Interface::as_raw(this), value, &mut result__).from_abi(result__) } } pub fn FormatDouble2(&self, value: f64) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FormatDouble)(::windows_core::Interface::as_raw(this), value, &mut result__).from_abi(result__) @@ -945,111 +785,111 @@ impl DecimalFormatter { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Languages(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Languages)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GeographicRegion(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GeographicRegion)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IntegerDigits(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IntegerDigits)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIntegerDigits(&self, value: i32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIntegerDigits)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn FractionDigits(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FractionDigits)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetFractionDigits(&self, value: i32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetFractionDigits)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsGrouped(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsGrouped)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsGrouped(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsGrouped)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsDecimalPointAlwaysDisplayed(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsDecimalPointAlwaysDisplayed)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsDecimalPointAlwaysDisplayed(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsDecimalPointAlwaysDisplayed)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn NumeralSystem(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NumeralSystem)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetNumeralSystem(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetNumeralSystem)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ResolvedLanguage(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ResolvedLanguage)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ResolvedGeographicRegion(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ResolvedGeographicRegion)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ParseInt(&self, text: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ParseInt)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(text), &mut result__).from_abi(result__) } } pub fn ParseUInt(&self, text: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ParseUInt)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(text), &mut result__).from_abi(result__) } } pub fn ParseDouble(&self, text: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ParseDouble)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(text), &mut result__).from_abi(result__) } } pub fn NumberRounder(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NumberRounder)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1057,31 +897,31 @@ impl DecimalFormatter { } pub fn SetNumberRounder(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetNumberRounder)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn IsZeroSigned(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsZeroSigned)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsZeroSigned(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsZeroSigned)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn SignificantDigits(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SignificantDigits)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetSignificantDigits(&self, value: i32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetSignificantDigits)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc(hidden)] @@ -1095,26 +935,18 @@ impl ::windows_core::RuntimeType for DecimalFormatter { } unsafe impl ::windows_core::Interface for DecimalFormatter { type Vtable = INumberFormatter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DecimalFormatter { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DecimalFormatter { const NAME: &'static str = "Windows.Globalization.NumberFormatting.DecimalFormatter"; } -::windows_core::imp::interface_hierarchy!(DecimalFormatter, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for DecimalFormatter {} -impl ::windows_core::CanTryInto for DecimalFormatter {} -impl ::windows_core::CanTryInto for DecimalFormatter {} -impl ::windows_core::CanTryInto for DecimalFormatter {} -impl ::windows_core::CanTryInto for DecimalFormatter {} -impl ::windows_core::CanTryInto for DecimalFormatter {} -impl ::windows_core::CanTryInto for DecimalFormatter {} unsafe impl ::core::marker::Send for DecimalFormatter {} unsafe impl ::core::marker::Sync for DecimalFormatter {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct IncrementNumberRounder(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(IncrementNumberRounder, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IncrementNumberRounder, INumberRounder); impl IncrementNumberRounder { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1124,25 +956,25 @@ impl IncrementNumberRounder { SHARED.call(callback) } pub fn RoundingAlgorithm(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RoundingAlgorithm)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetRoundingAlgorithm(&self, value: RoundingAlgorithm) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRoundingAlgorithm)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Increment(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Increment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIncrement(&self, value: f64) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIncrement)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn RoundInt32(&self, value: i32) -> ::windows_core::Result { @@ -1193,20 +1025,17 @@ impl ::windows_core::RuntimeType for IncrementNumberRounder { } unsafe impl ::windows_core::Interface for IncrementNumberRounder { type Vtable = INumberRounder_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IncrementNumberRounder { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for IncrementNumberRounder { const NAME: &'static str = "Windows.Globalization.NumberFormatting.IncrementNumberRounder"; } -::windows_core::imp::interface_hierarchy!(IncrementNumberRounder, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IncrementNumberRounder {} unsafe impl ::core::marker::Send for IncrementNumberRounder {} unsafe impl ::core::marker::Sync for IncrementNumberRounder {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct NumeralSystemTranslator(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(NumeralSystemTranslator, ::windows_core::IUnknown, ::windows_core::IInspectable); impl NumeralSystemTranslator { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1253,11 +1082,11 @@ impl NumeralSystemTranslator { #[cfg(feature = "Foundation_Collections")] pub fn Create(languages: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::INumeralSystemTranslatorFactory(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).Create)(::windows_core::Interface::as_raw(this), languages.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).Create)(::windows_core::Interface::as_raw(this), languages.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -1271,19 +1100,18 @@ impl ::windows_core::RuntimeType for NumeralSystemTranslator { } unsafe impl ::windows_core::Interface for NumeralSystemTranslator { type Vtable = INumeralSystemTranslator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for NumeralSystemTranslator { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for NumeralSystemTranslator { const NAME: &'static str = "Windows.Globalization.NumberFormatting.NumeralSystemTranslator"; } -::windows_core::imp::interface_hierarchy!(NumeralSystemTranslator, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for NumeralSystemTranslator {} unsafe impl ::core::marker::Sync for NumeralSystemTranslator {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PercentFormatter(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PercentFormatter, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(PercentFormatter, INumberFormatter, INumberFormatter2, INumberFormatterOptions, INumberParser, INumberRounderOption, ISignedZeroOption, ISignificantDigitsOption); impl PercentFormatter { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1314,21 +1142,21 @@ impl PercentFormatter { } } pub fn FormatInt2(&self, value: i64) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FormatInt)(::windows_core::Interface::as_raw(this), value, &mut result__).from_abi(result__) } } pub fn FormatUInt2(&self, value: u64) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FormatUInt)(::windows_core::Interface::as_raw(this), value, &mut result__).from_abi(result__) } } pub fn FormatDouble2(&self, value: f64) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FormatDouble)(::windows_core::Interface::as_raw(this), value, &mut result__).from_abi(result__) @@ -1337,111 +1165,111 @@ impl PercentFormatter { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Languages(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Languages)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GeographicRegion(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GeographicRegion)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IntegerDigits(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IntegerDigits)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIntegerDigits(&self, value: i32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIntegerDigits)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn FractionDigits(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FractionDigits)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetFractionDigits(&self, value: i32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetFractionDigits)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsGrouped(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsGrouped)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsGrouped(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsGrouped)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsDecimalPointAlwaysDisplayed(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsDecimalPointAlwaysDisplayed)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsDecimalPointAlwaysDisplayed(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsDecimalPointAlwaysDisplayed)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn NumeralSystem(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NumeralSystem)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetNumeralSystem(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetNumeralSystem)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ResolvedLanguage(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ResolvedLanguage)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ResolvedGeographicRegion(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ResolvedGeographicRegion)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ParseInt(&self, text: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ParseInt)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(text), &mut result__).from_abi(result__) } } pub fn ParseUInt(&self, text: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ParseUInt)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(text), &mut result__).from_abi(result__) } } pub fn ParseDouble(&self, text: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ParseDouble)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(text), &mut result__).from_abi(result__) } } pub fn NumberRounder(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NumberRounder)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1449,42 +1277,42 @@ impl PercentFormatter { } pub fn SetNumberRounder(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetNumberRounder)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn CreatePercentFormatter(languages: P0, geographicregion: &::windows_core::HSTRING) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::IPercentFormatterFactory(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreatePercentFormatter)(::windows_core::Interface::as_raw(this), languages.try_into_param()?.abi(), ::core::mem::transmute_copy(geographicregion), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreatePercentFormatter)(::windows_core::Interface::as_raw(this), languages.into_param().abi(), ::core::mem::transmute_copy(geographicregion), &mut result__).from_abi(result__) }) } pub fn IsZeroSigned(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsZeroSigned)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsZeroSigned(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsZeroSigned)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn SignificantDigits(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SignificantDigits)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetSignificantDigits(&self, value: i32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetSignificantDigits)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc(hidden)] @@ -1498,26 +1326,18 @@ impl ::windows_core::RuntimeType for PercentFormatter { } unsafe impl ::windows_core::Interface for PercentFormatter { type Vtable = INumberFormatter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PercentFormatter { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PercentFormatter { const NAME: &'static str = "Windows.Globalization.NumberFormatting.PercentFormatter"; } -::windows_core::imp::interface_hierarchy!(PercentFormatter, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for PercentFormatter {} -impl ::windows_core::CanTryInto for PercentFormatter {} -impl ::windows_core::CanTryInto for PercentFormatter {} -impl ::windows_core::CanTryInto for PercentFormatter {} -impl ::windows_core::CanTryInto for PercentFormatter {} -impl ::windows_core::CanTryInto for PercentFormatter {} -impl ::windows_core::CanTryInto for PercentFormatter {} unsafe impl ::core::marker::Send for PercentFormatter {} unsafe impl ::core::marker::Sync for PercentFormatter {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PermilleFormatter(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PermilleFormatter, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(PermilleFormatter, INumberFormatter, INumberFormatter2, INumberFormatterOptions, INumberParser, INumberRounderOption, ISignedZeroOption, ISignificantDigitsOption); impl PermilleFormatter { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1548,21 +1368,21 @@ impl PermilleFormatter { } } pub fn FormatInt2(&self, value: i64) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FormatInt)(::windows_core::Interface::as_raw(this), value, &mut result__).from_abi(result__) } } pub fn FormatUInt2(&self, value: u64) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FormatUInt)(::windows_core::Interface::as_raw(this), value, &mut result__).from_abi(result__) } } pub fn FormatDouble2(&self, value: f64) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FormatDouble)(::windows_core::Interface::as_raw(this), value, &mut result__).from_abi(result__) @@ -1571,111 +1391,111 @@ impl PermilleFormatter { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Languages(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Languages)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GeographicRegion(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GeographicRegion)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IntegerDigits(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IntegerDigits)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIntegerDigits(&self, value: i32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIntegerDigits)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn FractionDigits(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FractionDigits)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetFractionDigits(&self, value: i32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetFractionDigits)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsGrouped(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsGrouped)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsGrouped(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsGrouped)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsDecimalPointAlwaysDisplayed(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsDecimalPointAlwaysDisplayed)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsDecimalPointAlwaysDisplayed(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsDecimalPointAlwaysDisplayed)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn NumeralSystem(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NumeralSystem)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetNumeralSystem(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetNumeralSystem)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ResolvedLanguage(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ResolvedLanguage)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ResolvedGeographicRegion(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ResolvedGeographicRegion)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ParseInt(&self, text: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ParseInt)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(text), &mut result__).from_abi(result__) } } pub fn ParseUInt(&self, text: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ParseUInt)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(text), &mut result__).from_abi(result__) } } pub fn ParseDouble(&self, text: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ParseDouble)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(text), &mut result__).from_abi(result__) } } pub fn NumberRounder(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NumberRounder)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1683,42 +1503,42 @@ impl PermilleFormatter { } pub fn SetNumberRounder(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetNumberRounder)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn CreatePermilleFormatter(languages: P0, geographicregion: &::windows_core::HSTRING) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::IPermilleFormatterFactory(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreatePermilleFormatter)(::windows_core::Interface::as_raw(this), languages.try_into_param()?.abi(), ::core::mem::transmute_copy(geographicregion), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreatePermilleFormatter)(::windows_core::Interface::as_raw(this), languages.into_param().abi(), ::core::mem::transmute_copy(geographicregion), &mut result__).from_abi(result__) }) } pub fn IsZeroSigned(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsZeroSigned)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsZeroSigned(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsZeroSigned)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn SignificantDigits(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SignificantDigits)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetSignificantDigits(&self, value: i32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetSignificantDigits)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc(hidden)] @@ -1732,26 +1552,18 @@ impl ::windows_core::RuntimeType for PermilleFormatter { } unsafe impl ::windows_core::Interface for PermilleFormatter { type Vtable = INumberFormatter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PermilleFormatter { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PermilleFormatter { const NAME: &'static str = "Windows.Globalization.NumberFormatting.PermilleFormatter"; } -::windows_core::imp::interface_hierarchy!(PermilleFormatter, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for PermilleFormatter {} -impl ::windows_core::CanTryInto for PermilleFormatter {} -impl ::windows_core::CanTryInto for PermilleFormatter {} -impl ::windows_core::CanTryInto for PermilleFormatter {} -impl ::windows_core::CanTryInto for PermilleFormatter {} -impl ::windows_core::CanTryInto for PermilleFormatter {} -impl ::windows_core::CanTryInto for PermilleFormatter {} unsafe impl ::core::marker::Send for PermilleFormatter {} unsafe impl ::core::marker::Sync for PermilleFormatter {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SignificantDigitsNumberRounder(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SignificantDigitsNumberRounder, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(SignificantDigitsNumberRounder, INumberRounder); impl SignificantDigitsNumberRounder { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1803,25 +1615,25 @@ impl SignificantDigitsNumberRounder { } } pub fn RoundingAlgorithm(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RoundingAlgorithm)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetRoundingAlgorithm(&self, value: RoundingAlgorithm) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRoundingAlgorithm)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn SignificantDigits(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SignificantDigits)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetSignificantDigits(&self, value: u32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetSignificantDigits)(::windows_core::Interface::as_raw(this), value).ok() } } } @@ -1830,15 +1642,11 @@ impl ::windows_core::RuntimeType for SignificantDigitsNumberRounder { } unsafe impl ::windows_core::Interface for SignificantDigitsNumberRounder { type Vtable = INumberRounder_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SignificantDigitsNumberRounder { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SignificantDigitsNumberRounder { const NAME: &'static str = "Windows.Globalization.NumberFormatting.SignificantDigitsNumberRounder"; } -::windows_core::imp::interface_hierarchy!(SignificantDigitsNumberRounder, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for SignificantDigitsNumberRounder {} unsafe impl ::core::marker::Send for SignificantDigitsNumberRounder {} unsafe impl ::core::marker::Sync for SignificantDigitsNumberRounder {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Globalization/PhoneNumberFormatting/mod.rs b/crates/libs/windows/src/Windows/Globalization/PhoneNumberFormatting/mod.rs index 1540f47ea6..236f2d475b 100644 --- a/crates/libs/windows/src/Windows/Globalization/PhoneNumberFormatting/mod.rs +++ b/crates/libs/windows/src/Windows/Globalization/PhoneNumberFormatting/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhoneNumberFormatter(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhoneNumberFormatter { - type Vtable = IPhoneNumberFormatter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhoneNumberFormatter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1556b49e_bad4_4b4a_900d_4407adb7c981); -} +::windows_core::imp::com_interface!(IPhoneNumberFormatter, IPhoneNumberFormatter_Vtbl, 0x1556b49e_bad4_4b4a_900d_4407adb7c981); #[repr(C)] #[doc(hidden)] pub struct IPhoneNumberFormatter_Vtbl { @@ -18,16 +9,7 @@ pub struct IPhoneNumberFormatter_Vtbl { pub FormatString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, number: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub FormatStringWithLeftToRightMarkers: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, number: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhoneNumberFormatterStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhoneNumberFormatterStatics { - type Vtable = IPhoneNumberFormatterStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhoneNumberFormatterStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5ca6f931_84d9_414b_ab4e_a0552c878602); -} +::windows_core::imp::com_interface!(IPhoneNumberFormatterStatics, IPhoneNumberFormatterStatics_Vtbl, 0x5ca6f931_84d9_414b_ab4e_a0552c878602); #[repr(C)] #[doc(hidden)] pub struct IPhoneNumberFormatterStatics_Vtbl { @@ -37,16 +19,7 @@ pub struct IPhoneNumberFormatterStatics_Vtbl { pub GetNationalDirectDialingPrefixForRegion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, regioncode: ::std::mem::MaybeUninit<::windows_core::HSTRING>, stripnondigit: bool, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub WrapWithLeftToRightMarkers: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, number: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhoneNumberInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhoneNumberInfo { - type Vtable = IPhoneNumberInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhoneNumberInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1c7ce4dd_c8b4_4ea3_9aef_b342e2c5b417); -} +::windows_core::imp::com_interface!(IPhoneNumberInfo, IPhoneNumberInfo_Vtbl, 0x1c7ce4dd_c8b4_4ea3_9aef_b342e2c5b417); #[repr(C)] #[doc(hidden)] pub struct IPhoneNumberInfo_Vtbl { @@ -60,32 +33,14 @@ pub struct IPhoneNumberInfo_Vtbl { pub GetGeographicRegionCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub CheckNumberMatch: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, othernumber: *mut ::core::ffi::c_void, result__: *mut PhoneNumberMatchResult) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhoneNumberInfoFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhoneNumberInfoFactory { - type Vtable = IPhoneNumberInfoFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhoneNumberInfoFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8202b964_adaa_4cff_8fcf_17e7516a28ff); -} +::windows_core::imp::com_interface!(IPhoneNumberInfoFactory, IPhoneNumberInfoFactory_Vtbl, 0x8202b964_adaa_4cff_8fcf_17e7516a28ff); #[repr(C)] #[doc(hidden)] pub struct IPhoneNumberInfoFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, number: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhoneNumberInfoStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhoneNumberInfoStatics { - type Vtable = IPhoneNumberInfoStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhoneNumberInfoStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5b3f4f6a_86a9_40e9_8649_6d61161928d4); -} +::windows_core::imp::com_interface!(IPhoneNumberInfoStatics, IPhoneNumberInfoStatics_Vtbl, 0x5b3f4f6a_86a9_40e9_8649_6d61161928d4); #[repr(C)] #[doc(hidden)] pub struct IPhoneNumberInfoStatics_Vtbl { @@ -96,6 +51,7 @@ pub struct IPhoneNumberInfoStatics_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PhoneNumberFormatter(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PhoneNumberFormatter, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PhoneNumberFormatter { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -177,19 +133,18 @@ impl ::windows_core::RuntimeType for PhoneNumberFormatter { } unsafe impl ::windows_core::Interface for PhoneNumberFormatter { type Vtable = IPhoneNumberFormatter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PhoneNumberFormatter { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PhoneNumberFormatter { const NAME: &'static str = "Windows.Globalization.PhoneNumberFormatting.PhoneNumberFormatter"; } -::windows_core::imp::interface_hierarchy!(PhoneNumberFormatter, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PhoneNumberFormatter {} unsafe impl ::core::marker::Sync for PhoneNumberFormatter {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PhoneNumberInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PhoneNumberInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(PhoneNumberInfo, super::super::Foundation::IStringable); impl PhoneNumberInfo { pub fn CountryCode(&self) -> ::windows_core::Result { let this = self; @@ -269,7 +224,7 @@ impl PhoneNumberInfo { }) } pub fn ToString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ToString)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -291,15 +246,11 @@ impl ::windows_core::RuntimeType for PhoneNumberInfo { } unsafe impl ::windows_core::Interface for PhoneNumberInfo { type Vtable = IPhoneNumberInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PhoneNumberInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PhoneNumberInfo { const NAME: &'static str = "Windows.Globalization.PhoneNumberFormatting.PhoneNumberInfo"; } -::windows_core::imp::interface_hierarchy!(PhoneNumberInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for PhoneNumberInfo {} unsafe impl ::core::marker::Send for PhoneNumberInfo {} unsafe impl ::core::marker::Sync for PhoneNumberInfo {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Globalization/mod.rs b/crates/libs/windows/src/Windows/Globalization/mod.rs index bb7202575a..1eab5c1d78 100644 --- a/crates/libs/windows/src/Windows/Globalization/mod.rs +++ b/crates/libs/windows/src/Windows/Globalization/mod.rs @@ -13,16 +13,7 @@ pub mod NumberFormatting; #[cfg(feature = "Globalization_PhoneNumberFormatting")] #[doc = "Required features: `\"Globalization_PhoneNumberFormatting\"`"] pub mod PhoneNumberFormatting; -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IApplicationLanguagesStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IApplicationLanguagesStatics { - type Vtable = IApplicationLanguagesStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IApplicationLanguagesStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x75b40847_0a4c_4a92_9565_fd63c95f7aed); -} +::windows_core::imp::com_interface!(IApplicationLanguagesStatics, IApplicationLanguagesStatics_Vtbl, 0x75b40847_0a4c_4a92_9565_fd63c95f7aed); #[repr(C)] #[doc(hidden)] pub struct IApplicationLanguagesStatics_Vtbl { @@ -38,16 +29,7 @@ pub struct IApplicationLanguagesStatics_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] ManifestLanguages: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IApplicationLanguagesStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IApplicationLanguagesStatics2 { - type Vtable = IApplicationLanguagesStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IApplicationLanguagesStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1df0de4f_072b_4d7b_8f06_cb2db40f2bb5); -} +::windows_core::imp::com_interface!(IApplicationLanguagesStatics2, IApplicationLanguagesStatics2_Vtbl, 0x1df0de4f_072b_4d7b_8f06_cb2db40f2bb5); #[repr(C)] #[doc(hidden)] pub struct IApplicationLanguagesStatics2_Vtbl { @@ -57,16 +39,7 @@ pub struct IApplicationLanguagesStatics2_Vtbl { #[cfg(not(all(feature = "Foundation_Collections", feature = "System")))] GetLanguagesForUser: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICalendar(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICalendar { - type Vtable = ICalendar_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICalendar { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xca30221d_86d9_40fb_a26b_d44eb7cf08ea); -} +::windows_core::imp::com_interface!(ICalendar, ICalendar_Vtbl, 0xca30221d_86d9_40fb_a26b_d44eb7cf08ea); #[repr(C)] #[doc(hidden)] pub struct ICalendar_Vtbl { @@ -173,16 +146,7 @@ pub struct ICalendar_Vtbl { pub ResolvedLanguage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub IsDaylightSavingTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICalendarFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICalendarFactory { - type Vtable = ICalendarFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICalendarFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x83f58412_e56b_4c75_a66e_0f63d57758a6); -} +::windows_core::imp::com_interface!(ICalendarFactory, ICalendarFactory_Vtbl, 0x83f58412_e56b_4c75_a66e_0f63d57758a6); #[repr(C)] #[doc(hidden)] pub struct ICalendarFactory_Vtbl { @@ -196,16 +160,7 @@ pub struct ICalendarFactory_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] CreateCalendar: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICalendarFactory2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICalendarFactory2 { - type Vtable = ICalendarFactory2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICalendarFactory2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb44b378c_ca7e_4590_9e72_ea2bec1a5115); -} +::windows_core::imp::com_interface!(ICalendarFactory2, ICalendarFactory2_Vtbl, 0xb44b378c_ca7e_4590_9e72_ea2bec1a5115); #[repr(C)] #[doc(hidden)] pub struct ICalendarFactory2_Vtbl { @@ -215,16 +170,7 @@ pub struct ICalendarFactory2_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] CreateCalendarWithTimeZone: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICalendarIdentifiersStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICalendarIdentifiersStatics { - type Vtable = ICalendarIdentifiersStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICalendarIdentifiersStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x80653f68_2cb2_4c1f_b590_f0f52bf4fd1a); -} +::windows_core::imp::com_interface!(ICalendarIdentifiersStatics, ICalendarIdentifiersStatics_Vtbl, 0x80653f68_2cb2_4c1f_b590_f0f52bf4fd1a); #[repr(C)] #[doc(hidden)] pub struct ICalendarIdentifiersStatics_Vtbl { @@ -239,32 +185,14 @@ pub struct ICalendarIdentifiersStatics_Vtbl { pub Thai: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub UmAlQura: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICalendarIdentifiersStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICalendarIdentifiersStatics2 { - type Vtable = ICalendarIdentifiersStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICalendarIdentifiersStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7df4d488_5fd0_42a7_95b5_7d98d823075f); -} +::windows_core::imp::com_interface!(ICalendarIdentifiersStatics2, ICalendarIdentifiersStatics2_Vtbl, 0x7df4d488_5fd0_42a7_95b5_7d98d823075f); #[repr(C)] #[doc(hidden)] pub struct ICalendarIdentifiersStatics2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Persian: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICalendarIdentifiersStatics3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICalendarIdentifiersStatics3 { - type Vtable = ICalendarIdentifiersStatics3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICalendarIdentifiersStatics3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2c225423_1fad_40c0_9334_a8eb90db04f5); -} +::windows_core::imp::com_interface!(ICalendarIdentifiersStatics3, ICalendarIdentifiersStatics3_Vtbl, 0x2c225423_1fad_40c0_9334_a8eb90db04f5); #[repr(C)] #[doc(hidden)] pub struct ICalendarIdentifiersStatics3_Vtbl { @@ -275,16 +203,7 @@ pub struct ICalendarIdentifiersStatics3_Vtbl { pub TaiwanLunar: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub VietnameseLunar: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IClockIdentifiersStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IClockIdentifiersStatics { - type Vtable = IClockIdentifiersStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IClockIdentifiersStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x523805bb_12ec_4f83_bc31_b1b4376b0808); -} +::windows_core::imp::com_interface!(IClockIdentifiersStatics, IClockIdentifiersStatics_Vtbl, 0x523805bb_12ec_4f83_bc31_b1b4376b0808); #[repr(C)] #[doc(hidden)] pub struct IClockIdentifiersStatics_Vtbl { @@ -292,16 +211,7 @@ pub struct IClockIdentifiersStatics_Vtbl { pub TwelveHour: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub TwentyFourHour: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICurrencyAmount(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICurrencyAmount { - type Vtable = ICurrencyAmount_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICurrencyAmount { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x74b49942_eb75_443a_95b3_7d723f56f93c); -} +::windows_core::imp::com_interface!(ICurrencyAmount, ICurrencyAmount_Vtbl, 0x74b49942_eb75_443a_95b3_7d723f56f93c); #[repr(C)] #[doc(hidden)] pub struct ICurrencyAmount_Vtbl { @@ -309,32 +219,14 @@ pub struct ICurrencyAmount_Vtbl { pub Amount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Currency: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICurrencyAmountFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICurrencyAmountFactory { - type Vtable = ICurrencyAmountFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICurrencyAmountFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x48d7168f_ef3b_4aee_a6a1_4b036fe03ff0); -} +::windows_core::imp::com_interface!(ICurrencyAmountFactory, ICurrencyAmountFactory_Vtbl, 0x48d7168f_ef3b_4aee_a6a1_4b036fe03ff0); #[repr(C)] #[doc(hidden)] pub struct ICurrencyAmountFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, amount: ::std::mem::MaybeUninit<::windows_core::HSTRING>, currency: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICurrencyIdentifiersStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICurrencyIdentifiersStatics { - type Vtable = ICurrencyIdentifiersStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICurrencyIdentifiersStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9f1d091b_d586_4913_9b6a_a9bd2dc12874); -} +::windows_core::imp::com_interface!(ICurrencyIdentifiersStatics, ICurrencyIdentifiersStatics_Vtbl, 0x9f1d091b_d586_4913_9b6a_a9bd2dc12874); #[repr(C)] #[doc(hidden)] pub struct ICurrencyIdentifiersStatics_Vtbl { @@ -497,32 +389,14 @@ pub struct ICurrencyIdentifiersStatics_Vtbl { pub ZMW: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub ZWL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICurrencyIdentifiersStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICurrencyIdentifiersStatics2 { - type Vtable = ICurrencyIdentifiersStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICurrencyIdentifiersStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1814797f_c3b2_4c33_9591_980011950d37); -} +::windows_core::imp::com_interface!(ICurrencyIdentifiersStatics2, ICurrencyIdentifiersStatics2_Vtbl, 0x1814797f_c3b2_4c33_9591_980011950d37); #[repr(C)] #[doc(hidden)] pub struct ICurrencyIdentifiersStatics2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub BYN: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICurrencyIdentifiersStatics3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICurrencyIdentifiersStatics3 { - type Vtable = ICurrencyIdentifiersStatics3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICurrencyIdentifiersStatics3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4fb23bfa_ed25_4f4d_857f_237f1748c21c); -} +::windows_core::imp::com_interface!(ICurrencyIdentifiersStatics3, ICurrencyIdentifiersStatics3_Vtbl, 0x4fb23bfa_ed25_4f4d_857f_237f1748c21c); #[repr(C)] #[doc(hidden)] pub struct ICurrencyIdentifiersStatics3_Vtbl { @@ -532,16 +406,7 @@ pub struct ICurrencyIdentifiersStatics3_Vtbl { pub STN: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub VES: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGeographicRegion(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGeographicRegion { - type Vtable = IGeographicRegion_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGeographicRegion { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x01e9a621_4a64_4ed9_954f_9edeb07bd903); -} +::windows_core::imp::com_interface!(IGeographicRegion, IGeographicRegion_Vtbl, 0x01e9a621_4a64_4ed9_954f_9edeb07bd903); #[repr(C)] #[doc(hidden)] pub struct IGeographicRegion_Vtbl { @@ -557,48 +422,21 @@ pub struct IGeographicRegion_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] CurrenciesInUse: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGeographicRegionFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGeographicRegionFactory { - type Vtable = IGeographicRegionFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGeographicRegionFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x53425270_77b4_426b_859f_81e19d512546); -} +::windows_core::imp::com_interface!(IGeographicRegionFactory, IGeographicRegionFactory_Vtbl, 0x53425270_77b4_426b_859f_81e19d512546); #[repr(C)] #[doc(hidden)] pub struct IGeographicRegionFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateGeographicRegion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, geographicregioncode: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGeographicRegionStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGeographicRegionStatics { - type Vtable = IGeographicRegionStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGeographicRegionStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x29e28974_7ad9_4ef4_8799_b3b44fadec08); -} +::windows_core::imp::com_interface!(IGeographicRegionStatics, IGeographicRegionStatics_Vtbl, 0x29e28974_7ad9_4ef4_8799_b3b44fadec08); #[repr(C)] #[doc(hidden)] pub struct IGeographicRegionStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub IsSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, geographicregioncode: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IJapanesePhoneme(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IJapanesePhoneme { - type Vtable = IJapanesePhoneme_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IJapanesePhoneme { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2f6a9300_e85b_43e6_897d_5d82f862df21); -} +::windows_core::imp::com_interface!(IJapanesePhoneme, IJapanesePhoneme_Vtbl, 0x2f6a9300_e85b_43e6_897d_5d82f862df21); #[repr(C)] #[doc(hidden)] pub struct IJapanesePhoneme_Vtbl { @@ -607,16 +445,7 @@ pub struct IJapanesePhoneme_Vtbl { pub YomiText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub IsPhraseStart: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IJapanesePhoneticAnalyzerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IJapanesePhoneticAnalyzerStatics { - type Vtable = IJapanesePhoneticAnalyzerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IJapanesePhoneticAnalyzerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x88ab9e90_93de_41b2_b4d5_8edb227fd1c2); -} +::windows_core::imp::com_interface!(IJapanesePhoneticAnalyzerStatics, IJapanesePhoneticAnalyzerStatics_Vtbl, 0x88ab9e90_93de_41b2_b4d5_8edb227fd1c2); #[repr(C)] #[doc(hidden)] pub struct IJapanesePhoneticAnalyzerStatics_Vtbl { @@ -630,16 +459,7 @@ pub struct IJapanesePhoneticAnalyzerStatics_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetWordsWithMonoRubyOption: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILanguage(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILanguage { - type Vtable = ILanguage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILanguage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xea79a752_f7c2_4265_b1bd_c4dec4e4f080); -} +::windows_core::imp::com_interface!(ILanguage, ILanguage_Vtbl, 0xea79a752_f7c2_4265_b1bd_c4dec4e4f080); #[repr(C)] #[doc(hidden)] pub struct ILanguage_Vtbl { @@ -649,48 +469,21 @@ pub struct ILanguage_Vtbl { pub NativeName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Script: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILanguage2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILanguage2 { - type Vtable = ILanguage2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILanguage2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6a47e5b5_d94d_4886_a404_a5a5b9d5b494); -} +::windows_core::imp::com_interface!(ILanguage2, ILanguage2_Vtbl, 0x6a47e5b5_d94d_4886_a404_a5a5b9d5b494); #[repr(C)] #[doc(hidden)] pub struct ILanguage2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub LayoutDirection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut LanguageLayoutDirection) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILanguage3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILanguage3 { - type Vtable = ILanguage3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILanguage3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc6af3d10_641a_5ba4_bb43_5e12aed75954); -} +::windows_core::imp::com_interface!(ILanguage3, ILanguage3_Vtbl, 0xc6af3d10_641a_5ba4_bb43_5e12aed75954); #[repr(C)] #[doc(hidden)] pub struct ILanguage3_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub AbbreviatedName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILanguageExtensionSubtags(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILanguageExtensionSubtags { - type Vtable = ILanguageExtensionSubtags_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILanguageExtensionSubtags { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7d7daf45_368d_4364_852b_dec927037b85); -} +::windows_core::imp::com_interface!(ILanguageExtensionSubtags, ILanguageExtensionSubtags_Vtbl, 0x7d7daf45_368d_4364_852b_dec927037b85); #[repr(C)] #[doc(hidden)] pub struct ILanguageExtensionSubtags_Vtbl { @@ -700,32 +493,14 @@ pub struct ILanguageExtensionSubtags_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetExtensionSubtags: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILanguageFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILanguageFactory { - type Vtable = ILanguageFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILanguageFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9b0252ac_0c27_44f8_b792_9793fb66c63e); -} +::windows_core::imp::com_interface!(ILanguageFactory, ILanguageFactory_Vtbl, 0x9b0252ac_0c27_44f8_b792_9793fb66c63e); #[repr(C)] #[doc(hidden)] pub struct ILanguageFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateLanguage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, languagetag: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILanguageStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILanguageStatics { - type Vtable = ILanguageStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILanguageStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb23cd557_0865_46d4_89b8_d59be8990f0d); -} +::windows_core::imp::com_interface!(ILanguageStatics, ILanguageStatics_Vtbl, 0xb23cd557_0865_46d4_89b8_d59be8990f0d); #[repr(C)] #[doc(hidden)] pub struct ILanguageStatics_Vtbl { @@ -733,32 +508,14 @@ pub struct ILanguageStatics_Vtbl { pub IsWellFormed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, languagetag: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut bool) -> ::windows_core::HRESULT, pub CurrentInputMethodLanguageTag: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILanguageStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILanguageStatics2 { - type Vtable = ILanguageStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILanguageStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x30199f6e_914b_4b2a_9d6e_e3b0e27dbe4f); -} +::windows_core::imp::com_interface!(ILanguageStatics2, ILanguageStatics2_Vtbl, 0x30199f6e_914b_4b2a_9d6e_e3b0e27dbe4f); #[repr(C)] #[doc(hidden)] pub struct ILanguageStatics2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub TrySetInputMethodLanguageTag: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, languagetag: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILanguageStatics3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILanguageStatics3 { - type Vtable = ILanguageStatics3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILanguageStatics3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd15ecb5a_71de_5752_9542_fac5b4f27261); -} +::windows_core::imp::com_interface!(ILanguageStatics3, ILanguageStatics3_Vtbl, 0xd15ecb5a_71de_5752_9542_fac5b4f27261); #[repr(C)] #[doc(hidden)] pub struct ILanguageStatics3_Vtbl { @@ -768,16 +525,7 @@ pub struct ILanguageStatics3_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetMuiCompatibleLanguageListFromLanguageTags: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INumeralSystemIdentifiersStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INumeralSystemIdentifiersStatics { - type Vtable = INumeralSystemIdentifiersStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INumeralSystemIdentifiersStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa5c662c3_68c9_4d3d_b765_972029e21dec); -} +::windows_core::imp::com_interface!(INumeralSystemIdentifiersStatics, INumeralSystemIdentifiersStatics_Vtbl, 0xa5c662c3_68c9_4d3d_b765_972029e21dec); #[repr(C)] #[doc(hidden)] pub struct INumeralSystemIdentifiersStatics_Vtbl { @@ -819,16 +567,7 @@ pub struct INumeralSystemIdentifiersStatics_Vtbl { pub Tibt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Vaii: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INumeralSystemIdentifiersStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INumeralSystemIdentifiersStatics2 { - type Vtable = INumeralSystemIdentifiersStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INumeralSystemIdentifiersStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7f003228_9ddb_4a34_9104_0260c091a7c7); -} +::windows_core::imp::com_interface!(INumeralSystemIdentifiersStatics2, INumeralSystemIdentifiersStatics2_Vtbl, 0x7f003228_9ddb_4a34_9104_0260c091a7c7); #[repr(C)] #[doc(hidden)] pub struct INumeralSystemIdentifiersStatics2_Vtbl { @@ -846,16 +585,7 @@ pub struct INumeralSystemIdentifiersStatics2_Vtbl { pub ZmthSanb: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub ZmthMono: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITimeZoneOnCalendar(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITimeZoneOnCalendar { - type Vtable = ITimeZoneOnCalendar_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITimeZoneOnCalendar { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbb3c25e5_46cf_4317_a3f5_02621ad54478); -} +::windows_core::imp::com_interface!(ITimeZoneOnCalendar, ITimeZoneOnCalendar_Vtbl, 0xbb3c25e5_46cf_4317_a3f5_02621ad54478); #[repr(C)] #[doc(hidden)] pub struct ITimeZoneOnCalendar_Vtbl { @@ -920,6 +650,7 @@ impl ::windows_core::RuntimeName for ApplicationLanguages { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Calendar(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Calendar, ::windows_core::IUnknown, ::windows_core::IInspectable); impl Calendar { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1545,55 +1276,55 @@ impl Calendar { #[cfg(feature = "Foundation_Collections")] pub fn CreateCalendarDefaultCalendarAndClock(languages: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::ICalendarFactory(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateCalendarDefaultCalendarAndClock)(::windows_core::Interface::as_raw(this), languages.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateCalendarDefaultCalendarAndClock)(::windows_core::Interface::as_raw(this), languages.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn CreateCalendar(languages: P0, calendar: &::windows_core::HSTRING, clock: &::windows_core::HSTRING) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::ICalendarFactory(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateCalendar)(::windows_core::Interface::as_raw(this), languages.try_into_param()?.abi(), ::core::mem::transmute_copy(calendar), ::core::mem::transmute_copy(clock), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`"] #[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::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::ICalendarFactory2(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateCalendarWithTimeZone)(::windows_core::Interface::as_raw(this), languages.try_into_param()?.abi(), ::core::mem::transmute_copy(calendar), ::core::mem::transmute_copy(clock), ::core::mem::transmute_copy(timezoneid), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } pub fn GetTimeZone(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetTimeZone)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ChangeTimeZone(&self, timezoneid: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ChangeTimeZone)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(timezoneid)).ok() } } pub fn TimeZoneAsFullString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TimeZoneAsFullString)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TimeZoneAsString(&self, ideallength: i32) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TimeZoneAsString)(::windows_core::Interface::as_raw(this), ideallength, &mut result__).from_abi(result__) @@ -1615,14 +1346,11 @@ impl ::windows_core::RuntimeType for Calendar { } unsafe impl ::windows_core::Interface for Calendar { type Vtable = ICalendar_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Calendar { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Calendar { const NAME: &'static str = "Windows.Globalization.Calendar"; } -::windows_core::imp::interface_hierarchy!(Calendar, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for Calendar {} unsafe impl ::core::marker::Sync for Calendar {} pub struct CalendarIdentifiers; @@ -1762,6 +1490,7 @@ impl ::windows_core::RuntimeName for ClockIdentifiers { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CurrencyAmount(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CurrencyAmount, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CurrencyAmount { pub fn Amount(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1794,14 +1523,11 @@ impl ::windows_core::RuntimeType for CurrencyAmount { } unsafe impl ::windows_core::Interface for CurrencyAmount { type Vtable = ICurrencyAmount_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CurrencyAmount { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CurrencyAmount { const NAME: &'static str = "Windows.Globalization.CurrencyAmount"; } -::windows_core::imp::interface_hierarchy!(CurrencyAmount, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CurrencyAmount {} unsafe impl ::core::marker::Sync for CurrencyAmount {} pub struct CurrencyIdentifiers; @@ -2800,6 +2526,7 @@ impl ::windows_core::RuntimeName for CurrencyIdentifiers { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GeographicRegion(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GeographicRegion, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GeographicRegion { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2887,19 +2614,17 @@ impl ::windows_core::RuntimeType for GeographicRegion { } unsafe impl ::windows_core::Interface for GeographicRegion { type Vtable = IGeographicRegion_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GeographicRegion { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GeographicRegion { const NAME: &'static str = "Windows.Globalization.GeographicRegion"; } -::windows_core::imp::interface_hierarchy!(GeographicRegion, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GeographicRegion {} unsafe impl ::core::marker::Sync for GeographicRegion {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct JapanesePhoneme(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(JapanesePhoneme, ::windows_core::IUnknown, ::windows_core::IInspectable); impl JapanesePhoneme { pub fn DisplayText(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -2928,14 +2653,11 @@ impl ::windows_core::RuntimeType for JapanesePhoneme { } unsafe impl ::windows_core::Interface for JapanesePhoneme { type Vtable = IJapanesePhoneme_Vtbl; -} -unsafe impl ::windows_core::ComInterface for JapanesePhoneme { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for JapanesePhoneme { const NAME: &'static str = "Windows.Globalization.JapanesePhoneme"; } -::windows_core::imp::interface_hierarchy!(JapanesePhoneme, ::windows_core::IUnknown, ::windows_core::IInspectable); pub struct JapanesePhoneticAnalyzer; impl JapanesePhoneticAnalyzer { #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -2966,6 +2688,7 @@ impl ::windows_core::RuntimeName for JapanesePhoneticAnalyzer { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Language(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Language, ::windows_core::IUnknown, ::windows_core::IInspectable); impl Language { pub fn LanguageTag(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -2996,14 +2719,14 @@ impl Language { } } pub fn LayoutDirection(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).LayoutDirection)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn AbbreviatedName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AbbreviatedName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3012,7 +2735,7 @@ impl Language { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetExtensionSubtags(&self, singleton: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetExtensionSubtags)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(singleton), &mut result__).from_abi(result__) @@ -3046,11 +2769,11 @@ impl Language { #[cfg(feature = "Foundation_Collections")] pub fn GetMuiCompatibleLanguageListFromLanguageTags(languagetags: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::ILanguageStatics3(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).GetMuiCompatibleLanguageListFromLanguageTags)(::windows_core::Interface::as_raw(this), languagetags.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).GetMuiCompatibleLanguageListFromLanguageTags)(::windows_core::Interface::as_raw(this), languagetags.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -3079,14 +2802,11 @@ impl ::windows_core::RuntimeType for Language { } unsafe impl ::windows_core::Interface for Language { type Vtable = ILanguage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Language { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Language { const NAME: &'static str = "Windows.Globalization.Language"; } -::windows_core::imp::interface_hierarchy!(Language, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for Language {} unsafe impl ::core::marker::Sync for Language {} pub struct NumeralSystemIdentifiers; diff --git a/crates/libs/windows/src/Windows/Graphics/Capture/mod.rs b/crates/libs/windows/src/Windows/Graphics/Capture/mod.rs index 999508e642..f89d564c80 100644 --- a/crates/libs/windows/src/Windows/Graphics/Capture/mod.rs +++ b/crates/libs/windows/src/Windows/Graphics/Capture/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirect3D11CaptureFrame(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirect3D11CaptureFrame { - type Vtable = IDirect3D11CaptureFrame_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirect3D11CaptureFrame { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfa50c623_38da_4b32_acf3_fa9734ad800e); -} +::windows_core::imp::com_interface!(IDirect3D11CaptureFrame, IDirect3D11CaptureFrame_Vtbl, 0xfa50c623_38da_4b32_acf3_fa9734ad800e); #[repr(C)] #[doc(hidden)] pub struct IDirect3D11CaptureFrame_Vtbl { @@ -19,16 +10,7 @@ pub struct IDirect3D11CaptureFrame_Vtbl { pub SystemRelativeTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::TimeSpan) -> ::windows_core::HRESULT, pub ContentSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::SizeInt32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirect3D11CaptureFramePool(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirect3D11CaptureFramePool { - type Vtable = IDirect3D11CaptureFramePool_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirect3D11CaptureFramePool { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x24eb6d22_1975_422e_82e7_780dbd8ddf24); -} +::windows_core::imp::com_interface!(IDirect3D11CaptureFramePool, IDirect3D11CaptureFramePool_Vtbl, 0x24eb6d22_1975_422e_82e7_780dbd8ddf24); #[repr(C)] #[doc(hidden)] pub struct IDirect3D11CaptureFramePool_Vtbl { @@ -46,16 +28,7 @@ pub struct IDirect3D11CaptureFramePool_Vtbl { #[cfg(not(feature = "System"))] DispatcherQueue: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirect3D11CaptureFramePoolStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirect3D11CaptureFramePoolStatics { - type Vtable = IDirect3D11CaptureFramePoolStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirect3D11CaptureFramePoolStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7784056a_67aa_4d53_ae54_1088d5a8ca21); -} +::windows_core::imp::com_interface!(IDirect3D11CaptureFramePoolStatics, IDirect3D11CaptureFramePoolStatics_Vtbl, 0x7784056a_67aa_4d53_ae54_1088d5a8ca21); #[repr(C)] #[doc(hidden)] pub struct IDirect3D11CaptureFramePoolStatics_Vtbl { @@ -65,16 +38,7 @@ pub struct IDirect3D11CaptureFramePoolStatics_Vtbl { #[cfg(not(feature = "Graphics_DirectX_Direct3D11"))] Create: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirect3D11CaptureFramePoolStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirect3D11CaptureFramePoolStatics2 { - type Vtable = IDirect3D11CaptureFramePoolStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirect3D11CaptureFramePoolStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x589b103f_6bbc_5df5_a991_02e28b3b66d5); -} +::windows_core::imp::com_interface!(IDirect3D11CaptureFramePoolStatics2, IDirect3D11CaptureFramePoolStatics2_Vtbl, 0x589b103f_6bbc_5df5_a991_02e28b3b66d5); #[repr(C)] #[doc(hidden)] pub struct IDirect3D11CaptureFramePoolStatics2_Vtbl { @@ -84,16 +48,7 @@ pub struct IDirect3D11CaptureFramePoolStatics2_Vtbl { #[cfg(not(feature = "Graphics_DirectX_Direct3D11"))] CreateFreeThreaded: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGraphicsCaptureAccessStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGraphicsCaptureAccessStatics { - type Vtable = IGraphicsCaptureAccessStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGraphicsCaptureAccessStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x743ed370_06ec_5040_a58a_901f0f757095); -} +::windows_core::imp::com_interface!(IGraphicsCaptureAccessStatics, IGraphicsCaptureAccessStatics_Vtbl, 0x743ed370_06ec_5040_a58a_901f0f757095); #[repr(C)] #[doc(hidden)] pub struct IGraphicsCaptureAccessStatics_Vtbl { @@ -103,16 +58,7 @@ pub struct IGraphicsCaptureAccessStatics_Vtbl { #[cfg(not(feature = "Security_Authorization_AppCapabilityAccess"))] RequestAccessAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGraphicsCaptureItem(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGraphicsCaptureItem { - type Vtable = IGraphicsCaptureItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGraphicsCaptureItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x79c3f95b_31f7_4ec2_a464_632ef5d30760); -} +::windows_core::imp::com_interface!(IGraphicsCaptureItem, IGraphicsCaptureItem_Vtbl, 0x79c3f95b_31f7_4ec2_a464_632ef5d30760); #[repr(C)] #[doc(hidden)] pub struct IGraphicsCaptureItem_Vtbl { @@ -122,16 +68,7 @@ pub struct IGraphicsCaptureItem_Vtbl { pub Closed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveClosed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGraphicsCaptureItemStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGraphicsCaptureItemStatics { - type Vtable = IGraphicsCaptureItemStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGraphicsCaptureItemStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa87ebea5_457c_5788_ab47_0cf1d3637e74); -} +::windows_core::imp::com_interface!(IGraphicsCaptureItemStatics, IGraphicsCaptureItemStatics_Vtbl, 0xa87ebea5_457c_5788_ab47_0cf1d3637e74); #[repr(C)] #[doc(hidden)] pub struct IGraphicsCaptureItemStatics_Vtbl { @@ -141,16 +78,7 @@ pub struct IGraphicsCaptureItemStatics_Vtbl { #[cfg(not(feature = "UI_Composition"))] CreateFromVisual: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGraphicsCaptureItemStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGraphicsCaptureItemStatics2 { - type Vtable = IGraphicsCaptureItemStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGraphicsCaptureItemStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3b92acc9_e584_5862_bf5c_9c316c6d2dbb); -} +::windows_core::imp::com_interface!(IGraphicsCaptureItemStatics2, IGraphicsCaptureItemStatics2_Vtbl, 0x3b92acc9_e584_5862_bf5c_9c316c6d2dbb); #[repr(C)] #[doc(hidden)] pub struct IGraphicsCaptureItemStatics2_Vtbl { @@ -161,48 +89,21 @@ pub struct IGraphicsCaptureItemStatics2_Vtbl { TryCreateFromWindowId: usize, pub TryCreateFromDisplayId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, displayid: super::DisplayId, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGraphicsCapturePicker(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGraphicsCapturePicker { - type Vtable = IGraphicsCapturePicker_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGraphicsCapturePicker { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5a1711b3_ad79_4b4a_9336_1318fdde3539); -} +::windows_core::imp::com_interface!(IGraphicsCapturePicker, IGraphicsCapturePicker_Vtbl, 0x5a1711b3_ad79_4b4a_9336_1318fdde3539); #[repr(C)] #[doc(hidden)] pub struct IGraphicsCapturePicker_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub PickSingleItemAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGraphicsCaptureSession(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGraphicsCaptureSession { - type Vtable = IGraphicsCaptureSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGraphicsCaptureSession { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x814e42a9_f70f_4ad7_939b_fddcc6eb880d); -} +::windows_core::imp::com_interface!(IGraphicsCaptureSession, IGraphicsCaptureSession_Vtbl, 0x814e42a9_f70f_4ad7_939b_fddcc6eb880d); #[repr(C)] #[doc(hidden)] pub struct IGraphicsCaptureSession_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub StartCapture: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGraphicsCaptureSession2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGraphicsCaptureSession2 { - type Vtable = IGraphicsCaptureSession2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGraphicsCaptureSession2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2c39ae40_7d2e_5044_804e_8b6799d4cf9e); -} +::windows_core::imp::com_interface!(IGraphicsCaptureSession2, IGraphicsCaptureSession2_Vtbl, 0x2c39ae40_7d2e_5044_804e_8b6799d4cf9e); #[repr(C)] #[doc(hidden)] pub struct IGraphicsCaptureSession2_Vtbl { @@ -210,16 +111,7 @@ pub struct IGraphicsCaptureSession2_Vtbl { pub IsCursorCaptureEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetIsCursorCaptureEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGraphicsCaptureSession3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGraphicsCaptureSession3 { - type Vtable = IGraphicsCaptureSession3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGraphicsCaptureSession3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf2cdd966_22ae_5ea1_9596_3a289344c3be); -} +::windows_core::imp::com_interface!(IGraphicsCaptureSession3, IGraphicsCaptureSession3_Vtbl, 0xf2cdd966_22ae_5ea1_9596_3a289344c3be); #[repr(C)] #[doc(hidden)] pub struct IGraphicsCaptureSession3_Vtbl { @@ -227,16 +119,7 @@ pub struct IGraphicsCaptureSession3_Vtbl { pub IsBorderRequired: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetIsBorderRequired: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGraphicsCaptureSessionStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGraphicsCaptureSessionStatics { - type Vtable = IGraphicsCaptureSessionStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGraphicsCaptureSessionStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2224a540_5974_49aa_b232_0882536f4cb5); -} +::windows_core::imp::com_interface!(IGraphicsCaptureSessionStatics, IGraphicsCaptureSessionStatics_Vtbl, 0x2224a540_5974_49aa_b232_0882536f4cb5); #[repr(C)] #[doc(hidden)] pub struct IGraphicsCaptureSessionStatics_Vtbl { @@ -246,9 +129,11 @@ pub struct IGraphicsCaptureSessionStatics_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Direct3D11CaptureFrame(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Direct3D11CaptureFrame, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(Direct3D11CaptureFrame, super::super::Foundation::IClosable); impl Direct3D11CaptureFrame { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Graphics_DirectX_Direct3D11\"`"] @@ -280,33 +165,31 @@ impl ::windows_core::RuntimeType for Direct3D11CaptureFrame { } unsafe impl ::windows_core::Interface for Direct3D11CaptureFrame { type Vtable = IDirect3D11CaptureFrame_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Direct3D11CaptureFrame { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Direct3D11CaptureFrame { const NAME: &'static str = "Windows.Graphics.Capture.Direct3D11CaptureFrame"; } -::windows_core::imp::interface_hierarchy!(Direct3D11CaptureFrame, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for Direct3D11CaptureFrame {} unsafe impl ::core::marker::Send for Direct3D11CaptureFrame {} unsafe impl ::core::marker::Sync for Direct3D11CaptureFrame {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Direct3D11CaptureFramePool(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Direct3D11CaptureFramePool, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(Direct3D11CaptureFramePool, super::super::Foundation::IClosable); impl Direct3D11CaptureFramePool { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Graphics_DirectX_Direct3D11\"`"] #[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::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).Recreate)(::windows_core::Interface::as_raw(this), device.try_into_param()?.abi(), pixelformat, numberofbuffers, size).ok() } + unsafe { (::windows_core::Interface::vtable(this).Recreate)(::windows_core::Interface::as_raw(this), device.into_param().abi(), pixelformat, numberofbuffers, size).ok() } } pub fn TryGetNextFrame(&self) -> ::windows_core::Result { let this = self; @@ -352,22 +235,22 @@ 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::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IDirect3D11CaptureFramePoolStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).Create)(::windows_core::Interface::as_raw(this), device.try_into_param()?.abi(), pixelformat, numberofbuffers, size, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).Create)(::windows_core::Interface::as_raw(this), device.into_param().abi(), pixelformat, numberofbuffers, size, &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Graphics_DirectX_Direct3D11\"`"] #[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::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IDirect3D11CaptureFramePoolStatics2(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateFreeThreaded)(::windows_core::Interface::as_raw(this), device.try_into_param()?.abi(), pixelformat, numberofbuffers, size, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateFreeThreaded)(::windows_core::Interface::as_raw(this), device.into_param().abi(), pixelformat, numberofbuffers, size, &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -386,15 +269,11 @@ impl ::windows_core::RuntimeType for Direct3D11CaptureFramePool { } unsafe impl ::windows_core::Interface for Direct3D11CaptureFramePool { type Vtable = IDirect3D11CaptureFramePool_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Direct3D11CaptureFramePool { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Direct3D11CaptureFramePool { const NAME: &'static str = "Windows.Graphics.Capture.Direct3D11CaptureFramePool"; } -::windows_core::imp::interface_hierarchy!(Direct3D11CaptureFramePool, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for Direct3D11CaptureFramePool {} unsafe impl ::core::marker::Send for Direct3D11CaptureFramePool {} unsafe impl ::core::marker::Sync for Direct3D11CaptureFramePool {} pub struct GraphicsCaptureAccess; @@ -419,6 +298,7 @@ impl ::windows_core::RuntimeName for GraphicsCaptureAccess { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GraphicsCaptureItem(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GraphicsCaptureItem, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GraphicsCaptureItem { pub fn DisplayName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -452,11 +332,11 @@ impl GraphicsCaptureItem { #[cfg(feature = "UI_Composition")] pub fn CreateFromVisual(visual: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IGraphicsCaptureItemStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateFromVisual)(::windows_core::Interface::as_raw(this), visual.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateFromVisual)(::windows_core::Interface::as_raw(this), visual.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"UI\"`"] @@ -489,19 +369,17 @@ impl ::windows_core::RuntimeType for GraphicsCaptureItem { } unsafe impl ::windows_core::Interface for GraphicsCaptureItem { type Vtable = IGraphicsCaptureItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GraphicsCaptureItem { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GraphicsCaptureItem { const NAME: &'static str = "Windows.Graphics.Capture.GraphicsCaptureItem"; } -::windows_core::imp::interface_hierarchy!(GraphicsCaptureItem, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GraphicsCaptureItem {} unsafe impl ::core::marker::Sync for GraphicsCaptureItem {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GraphicsCapturePicker(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GraphicsCapturePicker, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GraphicsCapturePicker { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -523,22 +401,21 @@ impl ::windows_core::RuntimeType for GraphicsCapturePicker { } unsafe impl ::windows_core::Interface for GraphicsCapturePicker { type Vtable = IGraphicsCapturePicker_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GraphicsCapturePicker { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GraphicsCapturePicker { const NAME: &'static str = "Windows.Graphics.Capture.GraphicsCapturePicker"; } -::windows_core::imp::interface_hierarchy!(GraphicsCapturePicker, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GraphicsCapturePicker {} unsafe impl ::core::marker::Sync for GraphicsCapturePicker {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GraphicsCaptureSession(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GraphicsCaptureSession, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(GraphicsCaptureSession, super::super::Foundation::IClosable); impl GraphicsCaptureSession { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn StartCapture(&self) -> ::windows_core::Result<()> { @@ -546,25 +423,25 @@ impl GraphicsCaptureSession { unsafe { (::windows_core::Interface::vtable(this).StartCapture)(::windows_core::Interface::as_raw(this)).ok() } } pub fn IsCursorCaptureEnabled(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsCursorCaptureEnabled)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsCursorCaptureEnabled(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsCursorCaptureEnabled)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsBorderRequired(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsBorderRequired)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsBorderRequired(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsBorderRequired)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsSupported() -> ::windows_core::Result { @@ -584,15 +461,11 @@ impl ::windows_core::RuntimeType for GraphicsCaptureSession { } unsafe impl ::windows_core::Interface for GraphicsCaptureSession { type Vtable = IGraphicsCaptureSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GraphicsCaptureSession { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GraphicsCaptureSession { const NAME: &'static str = "Windows.Graphics.Capture.GraphicsCaptureSession"; } -::windows_core::imp::interface_hierarchy!(GraphicsCaptureSession, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for GraphicsCaptureSession {} unsafe impl ::core::marker::Send for GraphicsCaptureSession {} unsafe impl ::core::marker::Sync for GraphicsCaptureSession {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Graphics/DirectX/Direct3D11/impl.rs b/crates/libs/windows/src/Windows/Graphics/DirectX/Direct3D11/impl.rs index 53db32d78e..9fc3a38c73 100644 --- a/crates/libs/windows/src/Windows/Graphics/DirectX/Direct3D11/impl.rs +++ b/crates/libs/windows/src/Windows/Graphics/DirectX/Direct3D11/impl.rs @@ -14,7 +14,7 @@ impl IDirect3DDevice_Vtbl { Self { base__: ::windows_core::IInspectable_Vtbl::new::(), Trim: Trim:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDirect3DSurface_Impl: Sized + super::super::super::Foundation::IClosable_Impl { @@ -39,6 +39,6 @@ impl IDirect3DSurface_Vtbl { Self { base__: ::windows_core::IInspectable_Vtbl::new::(), Description: Description:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/Graphics/DirectX/Direct3D11/mod.rs b/crates/libs/windows/src/Windows/Graphics/DirectX/Direct3D11/mod.rs index fc67cd85d9..7bc96fd33f 100644 --- a/crates/libs/windows/src/Windows/Graphics/DirectX/Direct3D11/mod.rs +++ b/crates/libs/windows/src/Windows/Graphics/DirectX/Direct3D11/mod.rs @@ -1,36 +1,28 @@ -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirect3DDevice(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirect3DDevice, IDirect3DDevice_Vtbl, 0xa37624ab_8d5f_4650_9d3e_9eae3d9bc670); +::windows_core::imp::interface_hierarchy!(IDirect3DDevice, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IDirect3DDevice, super::super::super::Foundation::IClosable); impl IDirect3DDevice { pub fn Trim(&self) -> ::windows_core::Result<()> { let this = self; unsafe { (::windows_core::Interface::vtable(this).Trim)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } } -::windows_core::imp::interface_hierarchy!(IDirect3DDevice, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IDirect3DDevice {} impl ::windows_core::RuntimeType for IDirect3DDevice { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IDirect3DDevice { - type Vtable = IDirect3DDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirect3DDevice { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa37624ab_8d5f_4650_9d3e_9eae3d9bc670); -} #[repr(C)] #[doc(hidden)] pub struct IDirect3DDevice_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Trim: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirect3DSurface(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirect3DSurface, IDirect3DSurface_Vtbl, 0x0bf4a146_13c1_4694_bee3_7abf15eaf586); +::windows_core::imp::interface_hierarchy!(IDirect3DSurface, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IDirect3DSurface, super::super::super::Foundation::IClosable); impl IDirect3DSurface { pub fn Description(&self) -> ::windows_core::Result { let this = self; @@ -40,21 +32,13 @@ impl IDirect3DSurface { } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } } -::windows_core::imp::interface_hierarchy!(IDirect3DSurface, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IDirect3DSurface {} impl ::windows_core::RuntimeType for IDirect3DSurface { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IDirect3DSurface { - type Vtable = IDirect3DSurface_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirect3DSurface { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0bf4a146_13c1_4694_bee3_7abf15eaf586); -} #[repr(C)] #[doc(hidden)] pub struct IDirect3DSurface_Vtbl { 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 b3d4b2a5c4..6092d96cce 100644 --- a/crates/libs/windows/src/Windows/Graphics/Display/Core/mod.rs +++ b/crates/libs/windows/src/Windows/Graphics/Display/Core/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHdmiDisplayInformation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHdmiDisplayInformation { - type Vtable = IHdmiDisplayInformation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHdmiDisplayInformation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x130b3c0a_f565_476e_abd5_ea05aee74c69); -} +::windows_core::imp::com_interface!(IHdmiDisplayInformation, IHdmiDisplayInformation_Vtbl, 0x130b3c0a_f565_476e_abd5_ea05aee74c69); #[repr(C)] #[doc(hidden)] pub struct IHdmiDisplayInformation_Vtbl { @@ -24,32 +15,14 @@ pub struct IHdmiDisplayInformation_Vtbl { pub DisplayModesChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveDisplayModesChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHdmiDisplayInformationStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHdmiDisplayInformationStatics { - type Vtable = IHdmiDisplayInformationStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHdmiDisplayInformationStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6ce6b260_f42a_4a15_914c_7b8e2a5a65df); -} +::windows_core::imp::com_interface!(IHdmiDisplayInformationStatics, IHdmiDisplayInformationStatics_Vtbl, 0x6ce6b260_f42a_4a15_914c_7b8e2a5a65df); #[repr(C)] #[doc(hidden)] pub struct IHdmiDisplayInformationStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetForCurrentView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHdmiDisplayMode(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHdmiDisplayMode { - type Vtable = IHdmiDisplayMode_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHdmiDisplayMode { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c06d5ad_1b90_4f51_9981_ef5a1c0ddf66); -} +::windows_core::imp::com_interface!(IHdmiDisplayMode, IHdmiDisplayMode_Vtbl, 0x0c06d5ad_1b90_4f51_9981_ef5a1c0ddf66); #[repr(C)] #[doc(hidden)] pub struct IHdmiDisplayMode_Vtbl { @@ -66,16 +39,7 @@ pub struct IHdmiDisplayMode_Vtbl { pub IsSmpte2084Supported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub Is2086MetadataSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHdmiDisplayMode2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHdmiDisplayMode2 { - type Vtable = IHdmiDisplayMode2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHdmiDisplayMode2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x07cd4e9f_4b3c_42b8_84e7_895368718af2); -} +::windows_core::imp::com_interface!(IHdmiDisplayMode2, IHdmiDisplayMode2_Vtbl, 0x07cd4e9f_4b3c_42b8_84e7_895368718af2); #[repr(C)] #[doc(hidden)] pub struct IHdmiDisplayMode2_Vtbl { @@ -85,6 +49,7 @@ pub struct IHdmiDisplayMode2_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HdmiDisplayInformation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HdmiDisplayInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl HdmiDisplayInformation { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -170,19 +135,17 @@ impl ::windows_core::RuntimeType for HdmiDisplayInformation { } unsafe impl ::windows_core::Interface for HdmiDisplayInformation { type Vtable = IHdmiDisplayInformation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HdmiDisplayInformation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HdmiDisplayInformation { const NAME: &'static str = "Windows.Graphics.Display.Core.HdmiDisplayInformation"; } -::windows_core::imp::interface_hierarchy!(HdmiDisplayInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for HdmiDisplayInformation {} unsafe impl ::core::marker::Sync for HdmiDisplayInformation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HdmiDisplayMode(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HdmiDisplayMode, ::windows_core::IUnknown, ::windows_core::IInspectable); impl HdmiDisplayMode { pub fn ResolutionWidthInRawPixels(&self) -> ::windows_core::Result { let this = self; @@ -265,7 +228,7 @@ impl HdmiDisplayMode { } } pub fn IsDolbyVisionLowLatencySupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsDolbyVisionLowLatencySupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -277,14 +240,11 @@ impl ::windows_core::RuntimeType for HdmiDisplayMode { } unsafe impl ::windows_core::Interface for HdmiDisplayMode { type Vtable = IHdmiDisplayMode_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HdmiDisplayMode { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HdmiDisplayMode { const NAME: &'static str = "Windows.Graphics.Display.Core.HdmiDisplayMode"; } -::windows_core::imp::interface_hierarchy!(HdmiDisplayMode, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for HdmiDisplayMode {} unsafe impl ::core::marker::Sync for HdmiDisplayMode {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Graphics/Display/mod.rs b/crates/libs/windows/src/Windows/Graphics/Display/mod.rs index 0e597de92a..9bb01f2b6a 100644 --- a/crates/libs/windows/src/Windows/Graphics/Display/mod.rs +++ b/crates/libs/windows/src/Windows/Graphics/Display/mod.rs @@ -1,16 +1,7 @@ #[cfg(feature = "Graphics_Display_Core")] #[doc = "Required features: `\"Graphics_Display_Core\"`"] pub mod Core; -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAdvancedColorInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAdvancedColorInfo { - type Vtable = IAdvancedColorInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAdvancedColorInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8797dcfb_b229_4081_ae9a_2cc85e34ad6a); -} +::windows_core::imp::com_interface!(IAdvancedColorInfo, IAdvancedColorInfo_Vtbl, 0x8797dcfb_b229_4081_ae9a_2cc85e34ad6a); #[repr(C)] #[doc(hidden)] pub struct IAdvancedColorInfo_Vtbl { @@ -27,16 +18,7 @@ pub struct IAdvancedColorInfo_Vtbl { pub IsHdrMetadataFormatCurrentlySupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, format: HdrMetadataFormat, result__: *mut bool) -> ::windows_core::HRESULT, pub IsAdvancedColorKindAvailable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, kind: AdvancedColorKind, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBrightnessOverride(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBrightnessOverride { - type Vtable = IBrightnessOverride_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBrightnessOverride { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x96c9621a_c143_4392_bedd_4a7e9574c8fd); -} +::windows_core::imp::com_interface!(IBrightnessOverride, IBrightnessOverride_Vtbl, 0x96c9621a_c143_4392_bedd_4a7e9574c8fd); #[repr(C)] #[doc(hidden)] pub struct IBrightnessOverride_Vtbl { @@ -56,16 +38,7 @@ pub struct IBrightnessOverride_Vtbl { pub BrightnessLevelChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveBrightnessLevelChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBrightnessOverrideSettings(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBrightnessOverrideSettings { - type Vtable = IBrightnessOverrideSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBrightnessOverrideSettings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd112ab2a_7604_4dba_bcf8_4b6f49502cb0); -} +::windows_core::imp::com_interface!(IBrightnessOverrideSettings, IBrightnessOverrideSettings_Vtbl, 0xd112ab2a_7604_4dba_bcf8_4b6f49502cb0); #[repr(C)] #[doc(hidden)] pub struct IBrightnessOverrideSettings_Vtbl { @@ -73,16 +46,7 @@ pub struct IBrightnessOverrideSettings_Vtbl { pub DesiredLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows_core::HRESULT, pub DesiredNits: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBrightnessOverrideSettingsStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBrightnessOverrideSettingsStatics { - type Vtable = IBrightnessOverrideSettingsStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBrightnessOverrideSettingsStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd487dc90_6f74_440b_b383_5fe96cf00b0f); -} +::windows_core::imp::com_interface!(IBrightnessOverrideSettingsStatics, IBrightnessOverrideSettingsStatics_Vtbl, 0xd487dc90_6f74_440b_b383_5fe96cf00b0f); #[repr(C)] #[doc(hidden)] pub struct IBrightnessOverrideSettingsStatics_Vtbl { @@ -91,16 +55,7 @@ pub struct IBrightnessOverrideSettingsStatics_Vtbl { pub CreateFromNits: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nits: f32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateFromDisplayBrightnessOverrideScenario: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, overridescenario: DisplayBrightnessOverrideScenario, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBrightnessOverrideStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBrightnessOverrideStatics { - type Vtable = IBrightnessOverrideStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBrightnessOverrideStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x03a7b9ed_e1f1_4a68_a11f_946ad8ce5393); -} +::windows_core::imp::com_interface!(IBrightnessOverrideStatics, IBrightnessOverrideStatics_Vtbl, 0x03a7b9ed_e1f1_4a68_a11f_946ad8ce5393); #[repr(C)] #[doc(hidden)] pub struct IBrightnessOverrideStatics_Vtbl { @@ -109,48 +64,21 @@ pub struct IBrightnessOverrideStatics_Vtbl { pub GetForCurrentView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SaveForSystemAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IColorOverrideSettings(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IColorOverrideSettings { - type Vtable = IColorOverrideSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IColorOverrideSettings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfbefa134_4a81_4c4d_a5b6_7d1b5c4bd00b); -} +::windows_core::imp::com_interface!(IColorOverrideSettings, IColorOverrideSettings_Vtbl, 0xfbefa134_4a81_4c4d_a5b6_7d1b5c4bd00b); #[repr(C)] #[doc(hidden)] pub struct IColorOverrideSettings_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub DesiredDisplayColorOverrideScenario: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut DisplayColorOverrideScenario) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IColorOverrideSettingsStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IColorOverrideSettingsStatics { - type Vtable = IColorOverrideSettingsStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IColorOverrideSettingsStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb068e05f_c41f_4ac9_afab_827ab6248f9a); -} +::windows_core::imp::com_interface!(IColorOverrideSettingsStatics, IColorOverrideSettingsStatics_Vtbl, 0xb068e05f_c41f_4ac9_afab_827ab6248f9a); #[repr(C)] #[doc(hidden)] pub struct IColorOverrideSettingsStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateFromDisplayColorOverrideScenario: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, overridescenario: DisplayColorOverrideScenario, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDisplayEnhancementOverride(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDisplayEnhancementOverride { - type Vtable = IDisplayEnhancementOverride_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDisplayEnhancementOverride { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x429594cf_d97a_4b02_a428_5c4292f7f522); -} +::windows_core::imp::com_interface!(IDisplayEnhancementOverride, IDisplayEnhancementOverride_Vtbl, 0x429594cf_d97a_4b02_a428_5c4292f7f522); #[repr(C)] #[doc(hidden)] pub struct IDisplayEnhancementOverride_Vtbl { @@ -171,16 +99,7 @@ pub struct IDisplayEnhancementOverride_Vtbl { pub DisplayEnhancementOverrideCapabilitiesChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveDisplayEnhancementOverrideCapabilitiesChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDisplayEnhancementOverrideCapabilities(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDisplayEnhancementOverrideCapabilities { - type Vtable = IDisplayEnhancementOverrideCapabilities_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDisplayEnhancementOverrideCapabilities { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x457060de_ee5a_47b7_9918_1e51e812ccc8); -} +::windows_core::imp::com_interface!(IDisplayEnhancementOverrideCapabilities, IDisplayEnhancementOverrideCapabilities_Vtbl, 0x457060de_ee5a_47b7_9918_1e51e812ccc8); #[repr(C)] #[doc(hidden)] pub struct IDisplayEnhancementOverrideCapabilities_Vtbl { @@ -192,48 +111,21 @@ pub struct IDisplayEnhancementOverrideCapabilities_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetSupportedNitRanges: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDisplayEnhancementOverrideCapabilitiesChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDisplayEnhancementOverrideCapabilitiesChangedEventArgs { - type Vtable = IDisplayEnhancementOverrideCapabilitiesChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDisplayEnhancementOverrideCapabilitiesChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdb61e664_15fa_49da_8b77_07dbd2af585d); -} +::windows_core::imp::com_interface!(IDisplayEnhancementOverrideCapabilitiesChangedEventArgs, IDisplayEnhancementOverrideCapabilitiesChangedEventArgs_Vtbl, 0xdb61e664_15fa_49da_8b77_07dbd2af585d); #[repr(C)] #[doc(hidden)] pub struct IDisplayEnhancementOverrideCapabilitiesChangedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Capabilities: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDisplayEnhancementOverrideStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDisplayEnhancementOverrideStatics { - type Vtable = IDisplayEnhancementOverrideStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDisplayEnhancementOverrideStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcf5b7ec1_9791_4453_b013_29b6f778e519); -} +::windows_core::imp::com_interface!(IDisplayEnhancementOverrideStatics, IDisplayEnhancementOverrideStatics_Vtbl, 0xcf5b7ec1_9791_4453_b013_29b6f778e519); #[repr(C)] #[doc(hidden)] pub struct IDisplayEnhancementOverrideStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetForCurrentView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDisplayInformation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDisplayInformation { - type Vtable = IDisplayInformation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDisplayInformation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbed112ae_adc3_4dc9_ae65_851f4d7d4799); -} +::windows_core::imp::com_interface!(IDisplayInformation, IDisplayInformation_Vtbl, 0xbed112ae_adc3_4dc9_ae65_851f4d7d4799); #[repr(C)] #[doc(hidden)] pub struct IDisplayInformation_Vtbl { @@ -258,48 +150,21 @@ pub struct IDisplayInformation_Vtbl { pub ColorProfileChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveColorProfileChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDisplayInformation2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDisplayInformation2 { - type Vtable = IDisplayInformation2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDisplayInformation2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4dcd0021_fad1_4b8e_8edf_775887b8bf19); -} +::windows_core::imp::com_interface!(IDisplayInformation2, IDisplayInformation2_Vtbl, 0x4dcd0021_fad1_4b8e_8edf_775887b8bf19); #[repr(C)] #[doc(hidden)] pub struct IDisplayInformation2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub RawPixelsPerViewPixel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDisplayInformation3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDisplayInformation3 { - type Vtable = IDisplayInformation3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDisplayInformation3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdb15011d_0f09_4466_8ff3_11de9a3c929a); -} +::windows_core::imp::com_interface!(IDisplayInformation3, IDisplayInformation3_Vtbl, 0xdb15011d_0f09_4466_8ff3_11de9a3c929a); #[repr(C)] #[doc(hidden)] pub struct IDisplayInformation3_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub DiagonalSizeInInches: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDisplayInformation4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDisplayInformation4 { - type Vtable = IDisplayInformation4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDisplayInformation4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc972ce2f_1242_46be_b536_e1aafe9e7acf); -} +::windows_core::imp::com_interface!(IDisplayInformation4, IDisplayInformation4_Vtbl, 0xc972ce2f_1242_46be_b536_e1aafe9e7acf); #[repr(C)] #[doc(hidden)] pub struct IDisplayInformation4_Vtbl { @@ -307,16 +172,7 @@ pub struct IDisplayInformation4_Vtbl { pub ScreenWidthInRawPixels: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, pub ScreenHeightInRawPixels: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDisplayInformation5(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDisplayInformation5 { - type Vtable = IDisplayInformation5_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDisplayInformation5 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3a5442dc_2cde_4a8d_80d1_21dc5adcc1aa); -} +::windows_core::imp::com_interface!(IDisplayInformation5, IDisplayInformation5_Vtbl, 0x3a5442dc_2cde_4a8d_80d1_21dc5adcc1aa); #[repr(C)] #[doc(hidden)] pub struct IDisplayInformation5_Vtbl { @@ -325,16 +181,7 @@ pub struct IDisplayInformation5_Vtbl { pub AdvancedColorInfoChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveAdvancedColorInfoChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDisplayInformationStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDisplayInformationStatics { - type Vtable = IDisplayInformationStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDisplayInformationStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc6a02a6c_d452_44dc_ba07_96f3c6adf9d1); -} +::windows_core::imp::com_interface!(IDisplayInformationStatics, IDisplayInformationStatics_Vtbl, 0xc6a02a6c_d452_44dc_ba07_96f3c6adf9d1); #[repr(C)] #[doc(hidden)] pub struct IDisplayInformationStatics_Vtbl { @@ -345,19 +192,13 @@ pub struct IDisplayInformationStatics_Vtbl { pub DisplayContentsInvalidated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveDisplayContentsInvalidated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDisplayPropertiesStatics(::windows_core::IUnknown); #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for IDisplayPropertiesStatics { - type Vtable = IDisplayPropertiesStatics_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for IDisplayPropertiesStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6937ed8d_30ea_4ded_8271_4553ff02f68a); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + IDisplayPropertiesStatics, + IDisplayPropertiesStatics_Vtbl, + 0x6937ed8d_30ea_4ded_8271_4553ff02f68a +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -436,31 +277,13 @@ pub struct IDisplayPropertiesStatics_Vtbl { #[cfg(not(feature = "deprecated"))] RemoveDisplayContentsInvalidated: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDisplayServices(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDisplayServices { - type Vtable = IDisplayServices_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDisplayServices { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1b54f32b_890d_5747_bd26_fdbdeb0c8a71); -} +::windows_core::imp::com_interface!(IDisplayServices, IDisplayServices_Vtbl, 0x1b54f32b_890d_5747_bd26_fdbdeb0c8a71); #[repr(C)] #[doc(hidden)] pub struct IDisplayServices_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDisplayServicesStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDisplayServicesStatics { - type Vtable = IDisplayServicesStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDisplayServicesStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdc2096bf_730a_5560_b461_91c13d692e0c); -} +::windows_core::imp::com_interface!(IDisplayServicesStatics, IDisplayServicesStatics_Vtbl, 0xdc2096bf_730a_5560_b461_91c13d692e0c); #[repr(C)] #[doc(hidden)] pub struct IDisplayServicesStatics_Vtbl { @@ -470,6 +293,7 @@ pub struct IDisplayServicesStatics_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AdvancedColorInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AdvancedColorInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AdvancedColorInfo { pub fn CurrentAdvancedColorKind(&self) -> ::windows_core::Result { let this = self; @@ -554,19 +378,17 @@ impl ::windows_core::RuntimeType for AdvancedColorInfo { } unsafe impl ::windows_core::Interface for AdvancedColorInfo { type Vtable = IAdvancedColorInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AdvancedColorInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AdvancedColorInfo { const NAME: &'static str = "Windows.Graphics.Display.AdvancedColorInfo"; } -::windows_core::imp::interface_hierarchy!(AdvancedColorInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AdvancedColorInfo {} unsafe impl ::core::marker::Sync for AdvancedColorInfo {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BrightnessOverride(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BrightnessOverride, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BrightnessOverride { pub fn IsSupported(&self) -> ::windows_core::Result { let this = self; @@ -686,19 +508,17 @@ impl ::windows_core::RuntimeType for BrightnessOverride { } unsafe impl ::windows_core::Interface for BrightnessOverride { type Vtable = IBrightnessOverride_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BrightnessOverride { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BrightnessOverride { const NAME: &'static str = "Windows.Graphics.Display.BrightnessOverride"; } -::windows_core::imp::interface_hierarchy!(BrightnessOverride, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BrightnessOverride {} unsafe impl ::core::marker::Sync for BrightnessOverride {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BrightnessOverrideSettings(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BrightnessOverrideSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BrightnessOverrideSettings { pub fn DesiredLevel(&self) -> ::windows_core::Result { let this = self; @@ -743,19 +563,17 @@ impl ::windows_core::RuntimeType for BrightnessOverrideSettings { } unsafe impl ::windows_core::Interface for BrightnessOverrideSettings { type Vtable = IBrightnessOverrideSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BrightnessOverrideSettings { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BrightnessOverrideSettings { const NAME: &'static str = "Windows.Graphics.Display.BrightnessOverrideSettings"; } -::windows_core::imp::interface_hierarchy!(BrightnessOverrideSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BrightnessOverrideSettings {} unsafe impl ::core::marker::Sync for BrightnessOverrideSettings {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ColorOverrideSettings(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ColorOverrideSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ColorOverrideSettings { pub fn DesiredDisplayColorOverrideScenario(&self) -> ::windows_core::Result { let this = self; @@ -781,19 +599,17 @@ impl ::windows_core::RuntimeType for ColorOverrideSettings { } unsafe impl ::windows_core::Interface for ColorOverrideSettings { type Vtable = IColorOverrideSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ColorOverrideSettings { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ColorOverrideSettings { const NAME: &'static str = "Windows.Graphics.Display.ColorOverrideSettings"; } -::windows_core::imp::interface_hierarchy!(ColorOverrideSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ColorOverrideSettings {} unsafe impl ::core::marker::Sync for ColorOverrideSettings {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DisplayEnhancementOverride(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DisplayEnhancementOverride, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DisplayEnhancementOverride { pub fn ColorOverrideSettings(&self) -> ::windows_core::Result { let this = self; @@ -911,19 +727,17 @@ impl ::windows_core::RuntimeType for DisplayEnhancementOverride { } unsafe impl ::windows_core::Interface for DisplayEnhancementOverride { type Vtable = IDisplayEnhancementOverride_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DisplayEnhancementOverride { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DisplayEnhancementOverride { const NAME: &'static str = "Windows.Graphics.Display.DisplayEnhancementOverride"; } -::windows_core::imp::interface_hierarchy!(DisplayEnhancementOverride, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DisplayEnhancementOverride {} unsafe impl ::core::marker::Sync for DisplayEnhancementOverride {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DisplayEnhancementOverrideCapabilities(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DisplayEnhancementOverrideCapabilities, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DisplayEnhancementOverrideCapabilities { pub fn IsBrightnessControlSupported(&self) -> ::windows_core::Result { let this = self; @@ -954,19 +768,17 @@ impl ::windows_core::RuntimeType for DisplayEnhancementOverrideCapabilities { } unsafe impl ::windows_core::Interface for DisplayEnhancementOverrideCapabilities { type Vtable = IDisplayEnhancementOverrideCapabilities_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DisplayEnhancementOverrideCapabilities { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DisplayEnhancementOverrideCapabilities { const NAME: &'static str = "Windows.Graphics.Display.DisplayEnhancementOverrideCapabilities"; } -::windows_core::imp::interface_hierarchy!(DisplayEnhancementOverrideCapabilities, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DisplayEnhancementOverrideCapabilities {} unsafe impl ::core::marker::Sync for DisplayEnhancementOverrideCapabilities {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DisplayEnhancementOverrideCapabilitiesChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DisplayEnhancementOverrideCapabilitiesChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DisplayEnhancementOverrideCapabilitiesChangedEventArgs { pub fn Capabilities(&self) -> ::windows_core::Result { let this = self; @@ -981,19 +793,17 @@ impl ::windows_core::RuntimeType for DisplayEnhancementOverrideCapabilitiesChang } unsafe impl ::windows_core::Interface for DisplayEnhancementOverrideCapabilitiesChangedEventArgs { type Vtable = IDisplayEnhancementOverrideCapabilitiesChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DisplayEnhancementOverrideCapabilitiesChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DisplayEnhancementOverrideCapabilitiesChangedEventArgs { const NAME: &'static str = "Windows.Graphics.Display.DisplayEnhancementOverrideCapabilitiesChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(DisplayEnhancementOverrideCapabilitiesChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DisplayEnhancementOverrideCapabilitiesChangedEventArgs {} unsafe impl ::core::marker::Sync for DisplayEnhancementOverrideCapabilitiesChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DisplayInformation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DisplayInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DisplayInformation { pub fn CurrentOrientation(&self) -> ::windows_core::Result { let this = self; @@ -1110,35 +920,35 @@ impl DisplayInformation { unsafe { (::windows_core::Interface::vtable(this).RemoveColorProfileChanged)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn RawPixelsPerViewPixel(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RawPixelsPerViewPixel)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn DiagonalSizeInInches(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DiagonalSizeInInches)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ScreenWidthInRawPixels(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ScreenWidthInRawPixels)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ScreenHeightInRawPixels(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ScreenHeightInRawPixels)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetAdvancedColorInfo(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetAdvancedColorInfo)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1148,14 +958,14 @@ impl DisplayInformation { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveAdvancedColorInfoChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveAdvancedColorInfoChanged)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn GetForCurrentView() -> ::windows_core::Result { @@ -1196,14 +1006,11 @@ impl ::windows_core::RuntimeType for DisplayInformation { } unsafe impl ::windows_core::Interface for DisplayInformation { type Vtable = IDisplayInformation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DisplayInformation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DisplayInformation { const NAME: &'static str = "Windows.Graphics.Display.DisplayInformation"; } -::windows_core::imp::interface_hierarchy!(DisplayInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DisplayInformation {} unsafe impl ::core::marker::Sync for DisplayInformation {} #[doc = "Required features: `\"deprecated\"`"] @@ -1366,6 +1173,7 @@ impl ::windows_core::RuntimeName for DisplayProperties { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DisplayServices(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DisplayServices, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DisplayServices { pub fn FindAll() -> ::windows_core::Result<::windows_core::Array> { Self::IDisplayServicesStatics(|this| unsafe { @@ -1384,14 +1192,11 @@ impl ::windows_core::RuntimeType for DisplayServices { } unsafe impl ::windows_core::Interface for DisplayServices { type Vtable = IDisplayServices_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DisplayServices { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DisplayServices { const NAME: &'static str = "Windows.Graphics.Display.DisplayServices"; } -::windows_core::imp::interface_hierarchy!(DisplayServices, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DisplayServices {} unsafe impl ::core::marker::Sync for DisplayServices {} #[repr(transparent)] @@ -1659,11 +1464,8 @@ impl ::core::default::Default for NitRange { unsafe { ::core::mem::zeroed() } } } -#[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct DisplayPropertiesEventHandler(pub ::windows_core::IUnknown); +::windows_core::imp::com_interface!(DisplayPropertiesEventHandler, DisplayPropertiesEventHandler_Vtbl, 0xdbdd8b01_f1a1_46d1_9ee3_543bcc995980); #[cfg(feature = "deprecated")] impl DisplayPropertiesEventHandler { pub fn new) -> ::windows_core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { @@ -1698,7 +1500,7 @@ impl) -> ::window if iid.is_null() || interface.is_null() { return ::windows_core::HRESULT(-2147467261); } - *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; + *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::Interface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::Interface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; if (*interface).is_null() { ::windows_core::HRESULT(-2147467262) } else { @@ -1724,14 +1526,6 @@ impl) -> ::window } } #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for DisplayPropertiesEventHandler { - type Vtable = DisplayPropertiesEventHandler_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for DisplayPropertiesEventHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdbdd8b01_f1a1_46d1_9ee3_543bcc995980); -} -#[cfg(feature = "deprecated")] impl ::windows_core::RuntimeType for DisplayPropertiesEventHandler { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } diff --git a/crates/libs/windows/src/Windows/Graphics/Effects/impl.rs b/crates/libs/windows/src/Windows/Graphics/Effects/impl.rs index 322339a385..e063695b9f 100644 --- a/crates/libs/windows/src/Windows/Graphics/Effects/impl.rs +++ b/crates/libs/windows/src/Windows/Graphics/Effects/impl.rs @@ -31,7 +31,7 @@ impl IGraphicsEffect_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IGraphicsEffectSource_Impl: Sized {} @@ -43,6 +43,6 @@ impl IGraphicsEffectSource_Vtbl { Self { base__: ::windows_core::IInspectable_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/Graphics/Effects/mod.rs b/crates/libs/windows/src/Windows/Graphics/Effects/mod.rs index 1e4295455d..4e4d36f2d0 100644 --- a/crates/libs/windows/src/Windows/Graphics/Effects/mod.rs +++ b/crates/libs/windows/src/Windows/Graphics/Effects/mod.rs @@ -1,6 +1,6 @@ -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGraphicsEffect(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IGraphicsEffect, IGraphicsEffect_Vtbl, 0xcb51c0ce_8fe6_4636_b202_861faa07d8f3); +::windows_core::imp::interface_hierarchy!(IGraphicsEffect, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IGraphicsEffect, IGraphicsEffectSource); impl IGraphicsEffect { pub fn Name(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -14,17 +14,9 @@ impl IGraphicsEffect { unsafe { (::windows_core::Interface::vtable(this).SetName)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(name)).ok() } } } -::windows_core::imp::interface_hierarchy!(IGraphicsEffect, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IGraphicsEffect {} impl ::windows_core::RuntimeType for IGraphicsEffect { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IGraphicsEffect { - type Vtable = IGraphicsEffect_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGraphicsEffect { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcb51c0ce_8fe6_4636_b202_861faa07d8f3); -} #[repr(C)] #[doc(hidden)] pub struct IGraphicsEffect_Vtbl { @@ -32,20 +24,12 @@ pub struct IGraphicsEffect_Vtbl { pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGraphicsEffectSource(::windows_core::IUnknown); -impl IGraphicsEffectSource {} +::windows_core::imp::com_interface!(IGraphicsEffectSource, IGraphicsEffectSource_Vtbl, 0x2d8f9ddc_4339_4eb9_9216_f9deb75658a2); ::windows_core::imp::interface_hierarchy!(IGraphicsEffectSource, ::windows_core::IUnknown, ::windows_core::IInspectable); +impl IGraphicsEffectSource {} impl ::windows_core::RuntimeType for IGraphicsEffectSource { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IGraphicsEffectSource { - type Vtable = IGraphicsEffectSource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGraphicsEffectSource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2d8f9ddc_4339_4eb9_9216_f9deb75658a2); -} #[repr(C)] #[doc(hidden)] pub struct IGraphicsEffectSource_Vtbl { diff --git a/crates/libs/windows/src/Windows/Graphics/Holographic/mod.rs b/crates/libs/windows/src/Windows/Graphics/Holographic/mod.rs index 7d66c37045..ac3fa9b88e 100644 --- a/crates/libs/windows/src/Windows/Graphics/Holographic/mod.rs +++ b/crates/libs/windows/src/Windows/Graphics/Holographic/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHolographicCamera(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHolographicCamera { - type Vtable = IHolographicCamera_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHolographicCamera { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe4e98445_9bed_4980_9ba0_e87680d1cb74); -} +::windows_core::imp::com_interface!(IHolographicCamera, IHolographicCamera_Vtbl, 0xe4e98445_9bed_4980_9ba0_e87680d1cb74); #[repr(C)] #[doc(hidden)] pub struct IHolographicCamera_Vtbl { @@ -20,16 +11,7 @@ pub struct IHolographicCamera_Vtbl { pub SetNearPlaneDistance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f64) -> ::windows_core::HRESULT, pub SetFarPlaneDistance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f64) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHolographicCamera2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHolographicCamera2 { - type Vtable = IHolographicCamera2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHolographicCamera2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb55b9f1a_ba8c_4f84_ad79_2e7e1e2450f3); -} +::windows_core::imp::com_interface!(IHolographicCamera2, IHolographicCamera2_Vtbl, 0xb55b9f1a_ba8c_4f84_ad79_2e7e1e2450f3); #[repr(C)] #[doc(hidden)] pub struct IHolographicCamera2_Vtbl { @@ -38,16 +20,7 @@ pub struct IHolographicCamera2_Vtbl { pub RightViewportParameters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Display: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHolographicCamera3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHolographicCamera3 { - type Vtable = IHolographicCamera3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHolographicCamera3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x45aa4fb3_7b59_524e_4a3f_4a6ad6650477); -} +::windows_core::imp::com_interface!(IHolographicCamera3, IHolographicCamera3_Vtbl, 0x45aa4fb3_7b59_524e_4a3f_4a6ad6650477); #[repr(C)] #[doc(hidden)] pub struct IHolographicCamera3_Vtbl { @@ -60,32 +33,14 @@ pub struct IHolographicCamera3_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] QuadLayers: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHolographicCamera4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHolographicCamera4 { - type Vtable = IHolographicCamera4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHolographicCamera4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9a2531d6_4723_4f39_a9a5_9d05181d9b44); -} +::windows_core::imp::com_interface!(IHolographicCamera4, IHolographicCamera4_Vtbl, 0x9a2531d6_4723_4f39_a9a5_9d05181d9b44); #[repr(C)] #[doc(hidden)] pub struct IHolographicCamera4_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CanOverrideViewport: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHolographicCamera5(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHolographicCamera5 { - type Vtable = IHolographicCamera5_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHolographicCamera5 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x229706f2_628d_4ef5_9c08_a63fdd7787c6); -} +::windows_core::imp::com_interface!(IHolographicCamera5, IHolographicCamera5_Vtbl, 0x229706f2_628d_4ef5_9c08_a63fdd7787c6); #[repr(C)] #[doc(hidden)] pub struct IHolographicCamera5_Vtbl { @@ -94,32 +49,14 @@ pub struct IHolographicCamera5_Vtbl { pub IsHardwareContentProtectionEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetIsHardwareContentProtectionEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHolographicCamera6(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHolographicCamera6 { - type Vtable = IHolographicCamera6_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHolographicCamera6 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0209194f_632d_5154_ab52_0b5d15b12505); -} +::windows_core::imp::com_interface!(IHolographicCamera6, IHolographicCamera6_Vtbl, 0x0209194f_632d_5154_ab52_0b5d15b12505); #[repr(C)] #[doc(hidden)] pub struct IHolographicCamera6_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ViewConfiguration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHolographicCameraPose(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHolographicCameraPose { - type Vtable = IHolographicCameraPose_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHolographicCameraPose { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0d7d7e30_12de_45bd_912b_c7f6561599d1); -} +::windows_core::imp::com_interface!(IHolographicCameraPose, IHolographicCameraPose_Vtbl, 0x0d7d7e30_12de_45bd_912b_c7f6561599d1); #[repr(C)] #[doc(hidden)] pub struct IHolographicCameraPose_Vtbl { @@ -145,16 +82,7 @@ pub struct IHolographicCameraPose_Vtbl { pub NearPlaneDistance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows_core::HRESULT, pub FarPlaneDistance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHolographicCameraPose2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHolographicCameraPose2 { - type Vtable = IHolographicCameraPose2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHolographicCameraPose2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x232be073_5d2d_4560_814e_2697c4fce16b); -} +::windows_core::imp::com_interface!(IHolographicCameraPose2, IHolographicCameraPose2_Vtbl, 0x232be073_5d2d_4560_814e_2697c4fce16b); #[repr(C)] #[doc(hidden)] pub struct IHolographicCameraPose2_Vtbl { @@ -169,16 +97,7 @@ pub struct IHolographicCameraPose2_Vtbl { OverrideProjectionTransform: usize, pub OverrideViewport: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, leftviewport: super::super::Foundation::Rect, rightviewport: super::super::Foundation::Rect) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHolographicCameraRenderingParameters(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHolographicCameraRenderingParameters { - type Vtable = IHolographicCameraRenderingParameters_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHolographicCameraRenderingParameters { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8eac2ed1_5bf4_4e16_8236_ae0800c11d0d); -} +::windows_core::imp::com_interface!(IHolographicCameraRenderingParameters, IHolographicCameraRenderingParameters_Vtbl, 0x8eac2ed1_5bf4_4e16_8236_ae0800c11d0d); #[repr(C)] #[doc(hidden)] pub struct IHolographicCameraRenderingParameters_Vtbl { @@ -204,16 +123,7 @@ pub struct IHolographicCameraRenderingParameters_Vtbl { #[cfg(not(feature = "Graphics_DirectX_Direct3D11"))] Direct3D11BackBuffer: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHolographicCameraRenderingParameters2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHolographicCameraRenderingParameters2 { - type Vtable = IHolographicCameraRenderingParameters2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHolographicCameraRenderingParameters2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x261270e3_b696_4634_94d6_be0681643599); -} +::windows_core::imp::com_interface!(IHolographicCameraRenderingParameters2, IHolographicCameraRenderingParameters2_Vtbl, 0x261270e3_b696_4634_94d6_be0681643599); #[repr(C)] #[doc(hidden)] pub struct IHolographicCameraRenderingParameters2_Vtbl { @@ -225,16 +135,7 @@ pub struct IHolographicCameraRenderingParameters2_Vtbl { #[cfg(not(feature = "Graphics_DirectX_Direct3D11"))] CommitDirect3D11DepthBuffer: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHolographicCameraRenderingParameters3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHolographicCameraRenderingParameters3 { - type Vtable = IHolographicCameraRenderingParameters3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHolographicCameraRenderingParameters3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb1aa513f_136d_4b06_b9d4_e4b914cd0683); -} +::windows_core::imp::com_interface!(IHolographicCameraRenderingParameters3, IHolographicCameraRenderingParameters3_Vtbl, 0xb1aa513f_136d_4b06_b9d4_e4b914cd0683); #[repr(C)] #[doc(hidden)] pub struct IHolographicCameraRenderingParameters3_Vtbl { @@ -242,16 +143,7 @@ pub struct IHolographicCameraRenderingParameters3_Vtbl { pub IsContentProtectionEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetIsContentProtectionEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHolographicCameraRenderingParameters4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHolographicCameraRenderingParameters4 { - type Vtable = IHolographicCameraRenderingParameters4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHolographicCameraRenderingParameters4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0878fa4c_e163_57dc_82b7_c406ab3e0537); -} +::windows_core::imp::com_interface!(IHolographicCameraRenderingParameters4, IHolographicCameraRenderingParameters4_Vtbl, 0x0878fa4c_e163_57dc_82b7_c406ab3e0537); #[repr(C)] #[doc(hidden)] pub struct IHolographicCameraRenderingParameters4_Vtbl { @@ -259,16 +151,7 @@ pub struct IHolographicCameraRenderingParameters4_Vtbl { pub DepthReprojectionMethod: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut HolographicDepthReprojectionMethod) -> ::windows_core::HRESULT, pub SetDepthReprojectionMethod: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: HolographicDepthReprojectionMethod) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHolographicCameraViewportParameters(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHolographicCameraViewportParameters { - type Vtable = IHolographicCameraViewportParameters_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHolographicCameraViewportParameters { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x80cdf3f7_842a_41e1_93ed_5692ab1fbb10); -} +::windows_core::imp::com_interface!(IHolographicCameraViewportParameters, IHolographicCameraViewportParameters_Vtbl, 0x80cdf3f7_842a_41e1_93ed_5692ab1fbb10); #[repr(C)] #[doc(hidden)] pub struct IHolographicCameraViewportParameters_Vtbl { @@ -282,16 +165,7 @@ pub struct IHolographicCameraViewportParameters_Vtbl { #[cfg(not(feature = "Foundation_Numerics"))] VisibleAreaMesh: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHolographicDisplay(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHolographicDisplay { - type Vtable = IHolographicDisplay_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHolographicDisplay { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9acea414_1d9f_4090_a388_90c06f6eae9c); -} +::windows_core::imp::com_interface!(IHolographicDisplay, IHolographicDisplay_Vtbl, 0x9acea414_1d9f_4090_a388_90c06f6eae9c); #[repr(C)] #[doc(hidden)] pub struct IHolographicDisplay_Vtbl { @@ -306,64 +180,28 @@ pub struct IHolographicDisplay_Vtbl { #[cfg(not(feature = "Perception_Spatial"))] SpatialLocator: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHolographicDisplay2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHolographicDisplay2 { - type Vtable = IHolographicDisplay2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHolographicDisplay2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x75ac3f82_e755_436c_8d96_4d32d131473e); -} +::windows_core::imp::com_interface!(IHolographicDisplay2, IHolographicDisplay2_Vtbl, 0x75ac3f82_e755_436c_8d96_4d32d131473e); #[repr(C)] #[doc(hidden)] pub struct IHolographicDisplay2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub RefreshRate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHolographicDisplay3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHolographicDisplay3 { - type Vtable = IHolographicDisplay3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHolographicDisplay3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfc4c6ac6_6480_5008_b29e_157d77c843f7); -} +::windows_core::imp::com_interface!(IHolographicDisplay3, IHolographicDisplay3_Vtbl, 0xfc4c6ac6_6480_5008_b29e_157d77c843f7); #[repr(C)] #[doc(hidden)] pub struct IHolographicDisplay3_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub TryGetViewConfiguration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, kind: HolographicViewConfigurationKind, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHolographicDisplayStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHolographicDisplayStatics { - type Vtable = IHolographicDisplayStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHolographicDisplayStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcb374983_e7b0_4841_8355_3ae5b536e9a4); -} +::windows_core::imp::com_interface!(IHolographicDisplayStatics, IHolographicDisplayStatics_Vtbl, 0xcb374983_e7b0_4841_8355_3ae5b536e9a4); #[repr(C)] #[doc(hidden)] pub struct IHolographicDisplayStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetDefault: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHolographicFrame(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHolographicFrame { - type Vtable = IHolographicFrame_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHolographicFrame { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc6988eb6_a8b9_3054_a6eb_d624b6536375); -} +::windows_core::imp::com_interface!(IHolographicFrame, IHolographicFrame_Vtbl, 0xc6988eb6_a8b9_3054_a6eb_d624b6536375); #[repr(C)] #[doc(hidden)] pub struct IHolographicFrame_Vtbl { @@ -384,48 +222,21 @@ pub struct IHolographicFrame_Vtbl { pub PresentUsingCurrentPredictionWithBehavior: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, waitbehavior: HolographicFramePresentWaitBehavior, result__: *mut HolographicFramePresentResult) -> ::windows_core::HRESULT, pub WaitForFrameToFinish: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHolographicFrame2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHolographicFrame2 { - type Vtable = IHolographicFrame2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHolographicFrame2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x283f37bf_3bf2_5e91_6633_870574e6f217); -} +::windows_core::imp::com_interface!(IHolographicFrame2, IHolographicFrame2_Vtbl, 0x283f37bf_3bf2_5e91_6633_870574e6f217); #[repr(C)] #[doc(hidden)] pub struct IHolographicFrame2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetQuadLayerUpdateParameters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, layer: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHolographicFrame3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHolographicFrame3 { - type Vtable = IHolographicFrame3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHolographicFrame3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe5e964c9_8a27_55d3_9f98_94530d369052); -} +::windows_core::imp::com_interface!(IHolographicFrame3, IHolographicFrame3_Vtbl, 0xe5e964c9_8a27_55d3_9f98_94530d369052); #[repr(C)] #[doc(hidden)] pub struct IHolographicFrame3_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut HolographicFrameId) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHolographicFramePrediction(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHolographicFramePrediction { - type Vtable = IHolographicFramePrediction_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHolographicFramePrediction { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x520f4de1_5c0a_4e79_a81e_6abe02bb2739); -} +::windows_core::imp::com_interface!(IHolographicFramePrediction, IHolographicFramePrediction_Vtbl, 0x520f4de1_5c0a_4e79_a81e_6abe02bb2739); #[repr(C)] #[doc(hidden)] pub struct IHolographicFramePrediction_Vtbl { @@ -439,19 +250,13 @@ pub struct IHolographicFramePrediction_Vtbl { #[cfg(not(feature = "Perception"))] Timestamp: usize, } -#[doc(hidden)] -#[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHolographicFramePresentationMonitor(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for IHolographicFramePresentationMonitor { - type Vtable = IHolographicFramePresentationMonitor_Vtbl; -} #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for IHolographicFramePresentationMonitor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xca87256c_6fae_428e_bb83_25dfee51136b); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + IHolographicFramePresentationMonitor, + IHolographicFramePresentationMonitor_Vtbl, + 0xca87256c_6fae_428e_bb83_25dfee51136b +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -462,19 +267,13 @@ pub struct IHolographicFramePresentationMonitor_Vtbl { #[cfg(not(all(feature = "Foundation_Collections", feature = "deprecated")))] ReadReports: usize, } -#[doc(hidden)] #[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHolographicFramePresentationReport(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for IHolographicFramePresentationReport { - type Vtable = IHolographicFramePresentationReport_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for IHolographicFramePresentationReport { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x80baf614_f2f4_4c8a_8de3_065c78f6d5de); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + IHolographicFramePresentationReport, + IHolographicFramePresentationReport_Vtbl, + 0x80baf614_f2f4_4c8a_8de3_065c78f6d5de +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -501,16 +300,7 @@ pub struct IHolographicFramePresentationReport_Vtbl { #[cfg(not(feature = "deprecated"))] PresentationCount: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHolographicFrameRenderingReport(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHolographicFrameRenderingReport { - type Vtable = IHolographicFrameRenderingReport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHolographicFrameRenderingReport { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x05f32de4_e384_51b3_b934_f0d3a0f78606); -} +::windows_core::imp::com_interface!(IHolographicFrameRenderingReport, IHolographicFrameRenderingReport_Vtbl, 0x05f32de4_e384_51b3_b934_f0d3a0f78606); #[repr(C)] #[doc(hidden)] pub struct IHolographicFrameRenderingReport_Vtbl { @@ -521,16 +311,7 @@ pub struct IHolographicFrameRenderingReport_Vtbl { pub SystemRelativeActualGpuFinishTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::TimeSpan) -> ::windows_core::HRESULT, pub SystemRelativeTargetLatchTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::TimeSpan) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHolographicFrameScanoutMonitor(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHolographicFrameScanoutMonitor { - type Vtable = IHolographicFrameScanoutMonitor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHolographicFrameScanoutMonitor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7e83efa9_843c_5401_8095_9bc1b8b08638); -} +::windows_core::imp::com_interface!(IHolographicFrameScanoutMonitor, IHolographicFrameScanoutMonitor_Vtbl, 0x7e83efa9_843c_5401_8095_9bc1b8b08638); #[repr(C)] #[doc(hidden)] pub struct IHolographicFrameScanoutMonitor_Vtbl { @@ -540,16 +321,7 @@ pub struct IHolographicFrameScanoutMonitor_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] ReadReports: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHolographicFrameScanoutReport(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHolographicFrameScanoutReport { - type Vtable = IHolographicFrameScanoutReport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHolographicFrameScanoutReport { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0ebbe606_03a0_5ca0_b46e_bba068d7233f); -} +::windows_core::imp::com_interface!(IHolographicFrameScanoutReport, IHolographicFrameScanoutReport_Vtbl, 0x0ebbe606_03a0_5ca0_b46e_bba068d7233f); #[repr(C)] #[doc(hidden)] pub struct IHolographicFrameScanoutReport_Vtbl { @@ -560,16 +332,7 @@ pub struct IHolographicFrameScanoutReport_Vtbl { pub SystemRelativeScanoutStartTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::TimeSpan) -> ::windows_core::HRESULT, pub SystemRelativePhotonTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::TimeSpan) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHolographicQuadLayer(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHolographicQuadLayer { - type Vtable = IHolographicQuadLayer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHolographicQuadLayer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x903460c9_c9d9_5d5c_41ac_a2d5ab0fd331); -} +::windows_core::imp::com_interface!(IHolographicQuadLayer, IHolographicQuadLayer_Vtbl, 0x903460c9_c9d9_5d5c_41ac_a2d5ab0fd331); #[repr(C)] #[doc(hidden)] pub struct IHolographicQuadLayer_Vtbl { @@ -580,16 +343,7 @@ pub struct IHolographicQuadLayer_Vtbl { PixelFormat: usize, pub Size: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::Size) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHolographicQuadLayerFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHolographicQuadLayerFactory { - type Vtable = IHolographicQuadLayerFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHolographicQuadLayerFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa67538f3_5a14_5a10_489a_455065b37b76); -} +::windows_core::imp::com_interface!(IHolographicQuadLayerFactory, IHolographicQuadLayerFactory_Vtbl, 0xa67538f3_5a14_5a10_489a_455065b37b76); #[repr(C)] #[doc(hidden)] pub struct IHolographicQuadLayerFactory_Vtbl { @@ -600,16 +354,7 @@ pub struct IHolographicQuadLayerFactory_Vtbl { #[cfg(not(feature = "Graphics_DirectX"))] CreateWithPixelFormat: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHolographicQuadLayerUpdateParameters(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHolographicQuadLayerUpdateParameters { - type Vtable = IHolographicQuadLayerUpdateParameters_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHolographicQuadLayerUpdateParameters { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2b0ea3b0_798d_5bca_55c2_2c0c762ebb08); -} +::windows_core::imp::com_interface!(IHolographicQuadLayerUpdateParameters, IHolographicQuadLayerUpdateParameters_Vtbl, 0x2b0ea3b0_798d_5bca_55c2_2c0c762ebb08); #[repr(C)] #[doc(hidden)] pub struct IHolographicQuadLayerUpdateParameters_Vtbl { @@ -633,16 +378,7 @@ pub struct IHolographicQuadLayerUpdateParameters_Vtbl { #[cfg(not(feature = "Foundation_Numerics"))] UpdateLocationWithDisplayRelativeMode: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHolographicQuadLayerUpdateParameters2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHolographicQuadLayerUpdateParameters2 { - type Vtable = IHolographicQuadLayerUpdateParameters2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHolographicQuadLayerUpdateParameters2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4f33d32d_82c1_46c1_8980_3cb70d98182b); -} +::windows_core::imp::com_interface!(IHolographicQuadLayerUpdateParameters2, IHolographicQuadLayerUpdateParameters2_Vtbl, 0x4f33d32d_82c1_46c1_8980_3cb70d98182b); #[repr(C)] #[doc(hidden)] pub struct IHolographicQuadLayerUpdateParameters2_Vtbl { @@ -653,16 +389,7 @@ pub struct IHolographicQuadLayerUpdateParameters2_Vtbl { #[cfg(not(feature = "Graphics_DirectX_Direct3D11"))] AcquireBufferToUpdateContentWithHardwareProtection: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHolographicSpace(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHolographicSpace { - type Vtable = IHolographicSpace_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHolographicSpace { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4380dba6_5e78_434f_807c_3433d1efe8b7); -} +::windows_core::imp::com_interface!(IHolographicSpace, IHolographicSpace_Vtbl, 0x4380dba6_5e78_434f_807c_3433d1efe8b7); #[repr(C)] #[doc(hidden)] pub struct IHolographicSpace_Vtbl { @@ -678,16 +405,7 @@ pub struct IHolographicSpace_Vtbl { pub RemoveCameraRemoved: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub CreateNextFrame: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHolographicSpace2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHolographicSpace2 { - type Vtable = IHolographicSpace2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHolographicSpace2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4f81a9a8_b7ff_4883_9827_7d677287ea70); -} +::windows_core::imp::com_interface!(IHolographicSpace2, IHolographicSpace2_Vtbl, 0x4f81a9a8_b7ff_4883_9827_7d677287ea70); #[repr(C)] #[doc(hidden)] pub struct IHolographicSpace2_Vtbl { @@ -702,32 +420,14 @@ pub struct IHolographicSpace2_Vtbl { #[cfg(not(feature = "deprecated"))] CreateFramePresentationMonitor: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHolographicSpace3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHolographicSpace3 { - type Vtable = IHolographicSpace3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHolographicSpace3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdf1733d1_f224_587e_8d71_1e8fc8f07b1f); -} +::windows_core::imp::com_interface!(IHolographicSpace3, IHolographicSpace3_Vtbl, 0xdf1733d1_f224_587e_8d71_1e8fc8f07b1f); #[repr(C)] #[doc(hidden)] pub struct IHolographicSpace3_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateFrameScanoutMonitor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, maxqueuedreports: u32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHolographicSpaceCameraAddedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHolographicSpaceCameraAddedEventArgs { - type Vtable = IHolographicSpaceCameraAddedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHolographicSpaceCameraAddedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x58f1da35_bbb3_3c8f_993d_6c80e7feb99f); -} +::windows_core::imp::com_interface!(IHolographicSpaceCameraAddedEventArgs, IHolographicSpaceCameraAddedEventArgs_Vtbl, 0x58f1da35_bbb3_3c8f_993d_6c80e7feb99f); #[repr(C)] #[doc(hidden)] pub struct IHolographicSpaceCameraAddedEventArgs_Vtbl { @@ -735,32 +435,14 @@ pub struct IHolographicSpaceCameraAddedEventArgs_Vtbl { pub Camera: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHolographicSpaceCameraRemovedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHolographicSpaceCameraRemovedEventArgs { - type Vtable = IHolographicSpaceCameraRemovedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHolographicSpaceCameraRemovedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x805444a8_f2ae_322e_8da9_836a0a95a4c1); -} +::windows_core::imp::com_interface!(IHolographicSpaceCameraRemovedEventArgs, IHolographicSpaceCameraRemovedEventArgs_Vtbl, 0x805444a8_f2ae_322e_8da9_836a0a95a4c1); #[repr(C)] #[doc(hidden)] pub struct IHolographicSpaceCameraRemovedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Camera: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHolographicSpaceStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHolographicSpaceStatics { - type Vtable = IHolographicSpaceStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHolographicSpaceStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x364e6064_c8f2_3ba1_8391_66b8489e67fd); -} +::windows_core::imp::com_interface!(IHolographicSpaceStatics, IHolographicSpaceStatics_Vtbl, 0x364e6064_c8f2_3ba1_8391_66b8489e67fd); #[repr(C)] #[doc(hidden)] pub struct IHolographicSpaceStatics_Vtbl { @@ -770,16 +452,7 @@ pub struct IHolographicSpaceStatics_Vtbl { #[cfg(not(feature = "UI_Core"))] CreateForCoreWindow: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHolographicSpaceStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHolographicSpaceStatics2 { - type Vtable = IHolographicSpaceStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHolographicSpaceStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0e777088_75fc_48af_8758_0652f6f07c59); -} +::windows_core::imp::com_interface!(IHolographicSpaceStatics2, IHolographicSpaceStatics2_Vtbl, 0x0e777088_75fc_48af_8758_0652f6f07c59); #[repr(C)] #[doc(hidden)] pub struct IHolographicSpaceStatics2_Vtbl { @@ -789,32 +462,14 @@ pub struct IHolographicSpaceStatics2_Vtbl { pub IsAvailableChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveIsAvailableChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHolographicSpaceStatics3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHolographicSpaceStatics3 { - type Vtable = IHolographicSpaceStatics3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHolographicSpaceStatics3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3b00de3d_b1a3_4dfe_8e79_fec5909e6df8); -} +::windows_core::imp::com_interface!(IHolographicSpaceStatics3, IHolographicSpaceStatics3_Vtbl, 0x3b00de3d_b1a3_4dfe_8e79_fec5909e6df8); #[repr(C)] #[doc(hidden)] pub struct IHolographicSpaceStatics3_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub IsConfigured: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHolographicViewConfiguration(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHolographicViewConfiguration { - type Vtable = IHolographicViewConfiguration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHolographicViewConfiguration { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5c1de6e6_67e9_5004_b02c_67a3a122b576); -} +::windows_core::imp::com_interface!(IHolographicViewConfiguration, IHolographicViewConfiguration_Vtbl, 0x5c1de6e6_67e9_5004_b02c_67a3a122b576); #[repr(C)] #[doc(hidden)] pub struct IHolographicViewConfiguration_Vtbl { @@ -841,16 +496,7 @@ pub struct IHolographicViewConfiguration_Vtbl { pub IsEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetIsEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHolographicViewConfiguration2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHolographicViewConfiguration2 { - type Vtable = IHolographicViewConfiguration2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHolographicViewConfiguration2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe241756e_e0d0_5019_9af5_1b165bc2f54e); -} +::windows_core::imp::com_interface!(IHolographicViewConfiguration2, IHolographicViewConfiguration2_Vtbl, 0xe241756e_e0d0_5019_9af5_1b165bc2f54e); #[repr(C)] #[doc(hidden)] pub struct IHolographicViewConfiguration2_Vtbl { @@ -863,6 +509,7 @@ pub struct IHolographicViewConfiguration2_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HolographicCamera(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HolographicCamera, ::windows_core::IUnknown, ::windows_core::IInspectable); impl HolographicCamera { pub fn RenderTargetSize(&self) -> ::windows_core::Result { let this = self; @@ -905,39 +552,39 @@ impl HolographicCamera { unsafe { (::windows_core::Interface::vtable(this).SetFarPlaneDistance)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn LeftViewportParameters(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).LeftViewportParameters)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn RightViewportParameters(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RightViewportParameters)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Display(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Display)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsPrimaryLayerEnabled(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsPrimaryLayerEnabled)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsPrimaryLayerEnabled(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsPrimaryLayerEnabled)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn MaxQuadLayerCount(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MaxQuadLayerCount)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -946,39 +593,39 @@ impl HolographicCamera { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn QuadLayers(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).QuadLayers)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CanOverrideViewport(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CanOverrideViewport)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsHardwareContentProtectionSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsHardwareContentProtectionSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsHardwareContentProtectionEnabled(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsHardwareContentProtectionEnabled)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsHardwareContentProtectionEnabled(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsHardwareContentProtectionEnabled)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn ViewConfiguration(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ViewConfiguration)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -990,19 +637,17 @@ impl ::windows_core::RuntimeType for HolographicCamera { } unsafe impl ::windows_core::Interface for HolographicCamera { type Vtable = IHolographicCamera_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HolographicCamera { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HolographicCamera { const NAME: &'static str = "Windows.Graphics.Holographic.HolographicCamera"; } -::windows_core::imp::interface_hierarchy!(HolographicCamera, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for HolographicCamera {} unsafe impl ::core::marker::Sync for HolographicCamera {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HolographicCameraPose(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HolographicCameraPose, ::windows_core::IUnknown, ::windows_core::IInspectable); impl HolographicCameraPose { pub fn HolographicCamera(&self) -> ::windows_core::Result { let this = self; @@ -1083,17 +728,17 @@ impl HolographicCameraPose { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn OverrideProjectionTransform(&self, projectiontransform: HolographicStereoTransform) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).OverrideProjectionTransform)(::windows_core::Interface::as_raw(this), projectiontransform).ok() } } pub fn OverrideViewport(&self, leftviewport: super::super::Foundation::Rect, rightviewport: super::super::Foundation::Rect) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).OverrideViewport)(::windows_core::Interface::as_raw(this), leftviewport, rightviewport).ok() } } } @@ -1102,19 +747,17 @@ impl ::windows_core::RuntimeType for HolographicCameraPose { } unsafe impl ::windows_core::Interface for HolographicCameraPose { type Vtable = IHolographicCameraPose_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HolographicCameraPose { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HolographicCameraPose { const NAME: &'static str = "Windows.Graphics.Holographic.HolographicCameraPose"; } -::windows_core::imp::interface_hierarchy!(HolographicCameraPose, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for HolographicCameraPose {} unsafe impl ::core::marker::Sync for HolographicCameraPose {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HolographicCameraRenderingParameters(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HolographicCameraRenderingParameters, ::windows_core::IUnknown, ::windows_core::IInspectable); impl HolographicCameraRenderingParameters { #[doc = "Required features: `\"Foundation_Numerics\"`, `\"Perception_Spatial\"`"] #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial"))] @@ -1162,45 +805,45 @@ impl HolographicCameraRenderingParameters { } } pub fn ReprojectionMode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ReprojectionMode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetReprojectionMode(&self, value: HolographicReprojectionMode) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetReprojectionMode)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Graphics_DirectX_Direct3D11\"`"] #[cfg(feature = "Graphics_DirectX_Direct3D11")] pub fn CommitDirect3D11DepthBuffer(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).CommitDirect3D11DepthBuffer)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn IsContentProtectionEnabled(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsContentProtectionEnabled)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsContentProtectionEnabled(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsContentProtectionEnabled)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn DepthReprojectionMethod(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DepthReprojectionMethod)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDepthReprojectionMethod(&self, value: HolographicDepthReprojectionMethod) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDepthReprojectionMethod)(::windows_core::Interface::as_raw(this), value).ok() } } } @@ -1209,19 +852,17 @@ impl ::windows_core::RuntimeType for HolographicCameraRenderingParameters { } unsafe impl ::windows_core::Interface for HolographicCameraRenderingParameters { type Vtable = IHolographicCameraRenderingParameters_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HolographicCameraRenderingParameters { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HolographicCameraRenderingParameters { const NAME: &'static str = "Windows.Graphics.Holographic.HolographicCameraRenderingParameters"; } -::windows_core::imp::interface_hierarchy!(HolographicCameraRenderingParameters, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for HolographicCameraRenderingParameters {} unsafe impl ::core::marker::Sync for HolographicCameraRenderingParameters {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HolographicCameraViewportParameters(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HolographicCameraViewportParameters, ::windows_core::IUnknown, ::windows_core::IInspectable); impl HolographicCameraViewportParameters { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] @@ -1247,19 +888,17 @@ impl ::windows_core::RuntimeType for HolographicCameraViewportParameters { } unsafe impl ::windows_core::Interface for HolographicCameraViewportParameters { type Vtable = IHolographicCameraViewportParameters_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HolographicCameraViewportParameters { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HolographicCameraViewportParameters { const NAME: &'static str = "Windows.Graphics.Holographic.HolographicCameraViewportParameters"; } -::windows_core::imp::interface_hierarchy!(HolographicCameraViewportParameters, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for HolographicCameraViewportParameters {} unsafe impl ::core::marker::Sync for HolographicCameraViewportParameters {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HolographicDisplay(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HolographicDisplay, ::windows_core::IUnknown, ::windows_core::IInspectable); impl HolographicDisplay { pub fn DisplayName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1306,14 +945,14 @@ impl HolographicDisplay { } } pub fn RefreshRate(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RefreshRate)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetViewConfiguration(&self, kind: HolographicViewConfigurationKind) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetViewConfiguration)(::windows_core::Interface::as_raw(this), kind, &mut result__).from_abi(result__) @@ -1336,19 +975,17 @@ impl ::windows_core::RuntimeType for HolographicDisplay { } unsafe impl ::windows_core::Interface for HolographicDisplay { type Vtable = IHolographicDisplay_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HolographicDisplay { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HolographicDisplay { const NAME: &'static str = "Windows.Graphics.Holographic.HolographicDisplay"; } -::windows_core::imp::interface_hierarchy!(HolographicDisplay, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for HolographicDisplay {} unsafe impl ::core::marker::Sync for HolographicDisplay {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HolographicFrame(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HolographicFrame, ::windows_core::IUnknown, ::windows_core::IInspectable); impl HolographicFrame { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -1418,14 +1055,14 @@ impl HolographicFrame { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn Id(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Id)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1437,19 +1074,17 @@ impl ::windows_core::RuntimeType for HolographicFrame { } unsafe impl ::windows_core::Interface for HolographicFrame { type Vtable = IHolographicFrame_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HolographicFrame { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HolographicFrame { const NAME: &'static str = "Windows.Graphics.Holographic.HolographicFrame"; } -::windows_core::imp::interface_hierarchy!(HolographicFrame, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for HolographicFrame {} unsafe impl ::core::marker::Sync for HolographicFrame {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HolographicFramePrediction(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HolographicFramePrediction, ::windows_core::IUnknown, ::windows_core::IInspectable); impl HolographicFramePrediction { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -1475,14 +1110,11 @@ impl ::windows_core::RuntimeType for HolographicFramePrediction { } unsafe impl ::windows_core::Interface for HolographicFramePrediction { type Vtable = IHolographicFramePrediction_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HolographicFramePrediction { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HolographicFramePrediction { const NAME: &'static str = "Windows.Graphics.Holographic.HolographicFramePrediction"; } -::windows_core::imp::interface_hierarchy!(HolographicFramePrediction, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for HolographicFramePrediction {} unsafe impl ::core::marker::Sync for HolographicFramePrediction {} #[doc = "Required features: `\"deprecated\"`"] @@ -1491,9 +1123,13 @@ unsafe impl ::core::marker::Sync for HolographicFramePrediction {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HolographicFramePresentationMonitor(::windows_core::IUnknown); #[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(HolographicFramePresentationMonitor, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "deprecated")] +::windows_core::imp::required_hierarchy!(HolographicFramePresentationMonitor, super::super::Foundation::IClosable); +#[cfg(feature = "deprecated")] impl HolographicFramePresentationMonitor { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`, `\"deprecated\"`"] @@ -1513,20 +1149,13 @@ impl ::windows_core::RuntimeType for HolographicFramePresentationMonitor { #[cfg(feature = "deprecated")] unsafe impl ::windows_core::Interface for HolographicFramePresentationMonitor { type Vtable = IHolographicFramePresentationMonitor_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for HolographicFramePresentationMonitor { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "deprecated")] impl ::windows_core::RuntimeName for HolographicFramePresentationMonitor { const NAME: &'static str = "Windows.Graphics.Holographic.HolographicFramePresentationMonitor"; } #[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(HolographicFramePresentationMonitor, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] -impl ::windows_core::CanTryInto for HolographicFramePresentationMonitor {} -#[cfg(feature = "deprecated")] unsafe impl ::core::marker::Send for HolographicFramePresentationMonitor {} #[cfg(feature = "deprecated")] unsafe impl ::core::marker::Sync for HolographicFramePresentationMonitor {} @@ -1536,6 +1165,8 @@ unsafe impl ::core::marker::Sync for HolographicFramePresentationMonitor {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HolographicFramePresentationReport(::windows_core::IUnknown); #[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(HolographicFramePresentationReport, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "deprecated")] impl HolographicFramePresentationReport { #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] @@ -1590,24 +1221,20 @@ impl ::windows_core::RuntimeType for HolographicFramePresentationReport { #[cfg(feature = "deprecated")] unsafe impl ::windows_core::Interface for HolographicFramePresentationReport { type Vtable = IHolographicFramePresentationReport_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for HolographicFramePresentationReport { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "deprecated")] impl ::windows_core::RuntimeName for HolographicFramePresentationReport { const NAME: &'static str = "Windows.Graphics.Holographic.HolographicFramePresentationReport"; } #[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(HolographicFramePresentationReport, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] unsafe impl ::core::marker::Send for HolographicFramePresentationReport {} #[cfg(feature = "deprecated")] unsafe impl ::core::marker::Sync for HolographicFramePresentationReport {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HolographicFrameRenderingReport(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HolographicFrameRenderingReport, ::windows_core::IUnknown, ::windows_core::IInspectable); impl HolographicFrameRenderingReport { pub fn FrameId(&self) -> ::windows_core::Result { let this = self; @@ -1650,22 +1277,21 @@ impl ::windows_core::RuntimeType for HolographicFrameRenderingReport { } unsafe impl ::windows_core::Interface for HolographicFrameRenderingReport { type Vtable = IHolographicFrameRenderingReport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HolographicFrameRenderingReport { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HolographicFrameRenderingReport { const NAME: &'static str = "Windows.Graphics.Holographic.HolographicFrameRenderingReport"; } -::windows_core::imp::interface_hierarchy!(HolographicFrameRenderingReport, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for HolographicFrameRenderingReport {} unsafe impl ::core::marker::Sync for HolographicFrameRenderingReport {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HolographicFrameScanoutMonitor(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HolographicFrameScanoutMonitor, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(HolographicFrameScanoutMonitor, super::super::Foundation::IClosable); impl HolographicFrameScanoutMonitor { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -1683,20 +1309,17 @@ impl ::windows_core::RuntimeType for HolographicFrameScanoutMonitor { } unsafe impl ::windows_core::Interface for HolographicFrameScanoutMonitor { type Vtable = IHolographicFrameScanoutMonitor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HolographicFrameScanoutMonitor { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HolographicFrameScanoutMonitor { const NAME: &'static str = "Windows.Graphics.Holographic.HolographicFrameScanoutMonitor"; } -::windows_core::imp::interface_hierarchy!(HolographicFrameScanoutMonitor, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for HolographicFrameScanoutMonitor {} unsafe impl ::core::marker::Send for HolographicFrameScanoutMonitor {} unsafe impl ::core::marker::Sync for HolographicFrameScanoutMonitor {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HolographicFrameScanoutReport(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HolographicFrameScanoutReport, ::windows_core::IUnknown, ::windows_core::IInspectable); impl HolographicFrameScanoutReport { pub fn RenderingReport(&self) -> ::windows_core::Result { let this = self; @@ -1739,22 +1362,21 @@ impl ::windows_core::RuntimeType for HolographicFrameScanoutReport { } unsafe impl ::windows_core::Interface for HolographicFrameScanoutReport { type Vtable = IHolographicFrameScanoutReport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HolographicFrameScanoutReport { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HolographicFrameScanoutReport { const NAME: &'static str = "Windows.Graphics.Holographic.HolographicFrameScanoutReport"; } -::windows_core::imp::interface_hierarchy!(HolographicFrameScanoutReport, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for HolographicFrameScanoutReport {} unsafe impl ::core::marker::Sync for HolographicFrameScanoutReport {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HolographicQuadLayer(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HolographicQuadLayer, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(HolographicQuadLayer, super::super::Foundation::IClosable); impl HolographicQuadLayer { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Graphics_DirectX\"`"] @@ -1798,20 +1420,17 @@ impl ::windows_core::RuntimeType for HolographicQuadLayer { } unsafe impl ::windows_core::Interface for HolographicQuadLayer { type Vtable = IHolographicQuadLayer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HolographicQuadLayer { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HolographicQuadLayer { const NAME: &'static str = "Windows.Graphics.Holographic.HolographicQuadLayer"; } -::windows_core::imp::interface_hierarchy!(HolographicQuadLayer, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for HolographicQuadLayer {} unsafe impl ::core::marker::Send for HolographicQuadLayer {} unsafe impl ::core::marker::Sync for HolographicQuadLayer {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HolographicQuadLayerUpdateParameters(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HolographicQuadLayerUpdateParameters, ::windows_core::IUnknown, ::windows_core::IInspectable); impl HolographicQuadLayerUpdateParameters { #[doc = "Required features: `\"Graphics_DirectX_Direct3D11\"`"] #[cfg(feature = "Graphics_DirectX_Direct3D11")] @@ -1852,7 +1471,7 @@ impl HolographicQuadLayerUpdateParameters { unsafe { (::windows_core::Interface::vtable(this).UpdateLocationWithDisplayRelativeMode)(::windows_core::Interface::as_raw(this), position, orientation).ok() } } pub fn CanAcquireWithHardwareProtection(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CanAcquireWithHardwareProtection)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1861,7 +1480,7 @@ impl HolographicQuadLayerUpdateParameters { #[doc = "Required features: `\"Graphics_DirectX_Direct3D11\"`"] #[cfg(feature = "Graphics_DirectX_Direct3D11")] pub fn AcquireBufferToUpdateContentWithHardwareProtection(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AcquireBufferToUpdateContentWithHardwareProtection)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1873,19 +1492,17 @@ impl ::windows_core::RuntimeType for HolographicQuadLayerUpdateParameters { } unsafe impl ::windows_core::Interface for HolographicQuadLayerUpdateParameters { type Vtable = IHolographicQuadLayerUpdateParameters_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HolographicQuadLayerUpdateParameters { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HolographicQuadLayerUpdateParameters { const NAME: &'static str = "Windows.Graphics.Holographic.HolographicQuadLayerUpdateParameters"; } -::windows_core::imp::interface_hierarchy!(HolographicQuadLayerUpdateParameters, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for HolographicQuadLayerUpdateParameters {} unsafe impl ::core::marker::Sync for HolographicQuadLayerUpdateParameters {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HolographicSpace(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HolographicSpace, ::windows_core::IUnknown, ::windows_core::IInspectable); impl HolographicSpace { pub fn PrimaryAdapterId(&self) -> ::windows_core::Result { let this = self; @@ -1898,10 +1515,10 @@ impl HolographicSpace { #[cfg(feature = "Graphics_DirectX_Direct3D11")] pub fn SetDirect3D11Device(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetDirect3D11Device)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetDirect3D11Device)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn CameraAdded(&self, handler: P0) -> ::windows_core::Result where @@ -1939,7 +1556,7 @@ impl HolographicSpace { } } pub fn UserPresence(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).UserPresence)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1949,35 +1566,35 @@ impl HolographicSpace { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveUserPresenceChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveUserPresenceChanged)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn WaitForNextFrameReady(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).WaitForNextFrameReady)(::windows_core::Interface::as_raw(this)).ok() } } pub fn WaitForNextFrameReadyWithHeadStart(&self, requestedheadstartduration: super::super::Foundation::TimeSpan) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).WaitForNextFrameReadyWithHeadStart)(::windows_core::Interface::as_raw(this), requestedheadstartduration).ok() } } #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] pub fn CreateFramePresentationMonitor(&self, maxqueuedreports: u32) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateFramePresentationMonitor)(::windows_core::Interface::as_raw(this), maxqueuedreports, &mut result__).from_abi(result__) } } pub fn CreateFrameScanoutMonitor(&self, maxqueuedreports: u32) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateFrameScanoutMonitor)(::windows_core::Interface::as_raw(this), maxqueuedreports, &mut result__).from_abi(result__) @@ -2045,19 +1662,17 @@ impl ::windows_core::RuntimeType for HolographicSpace { } unsafe impl ::windows_core::Interface for HolographicSpace { type Vtable = IHolographicSpace_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HolographicSpace { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HolographicSpace { const NAME: &'static str = "Windows.Graphics.Holographic.HolographicSpace"; } -::windows_core::imp::interface_hierarchy!(HolographicSpace, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for HolographicSpace {} unsafe impl ::core::marker::Sync for HolographicSpace {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HolographicSpaceCameraAddedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HolographicSpaceCameraAddedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl HolographicSpaceCameraAddedEventArgs { pub fn Camera(&self) -> ::windows_core::Result { let this = self; @@ -2079,19 +1694,17 @@ impl ::windows_core::RuntimeType for HolographicSpaceCameraAddedEventArgs { } unsafe impl ::windows_core::Interface for HolographicSpaceCameraAddedEventArgs { type Vtable = IHolographicSpaceCameraAddedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HolographicSpaceCameraAddedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HolographicSpaceCameraAddedEventArgs { const NAME: &'static str = "Windows.Graphics.Holographic.HolographicSpaceCameraAddedEventArgs"; } -::windows_core::imp::interface_hierarchy!(HolographicSpaceCameraAddedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for HolographicSpaceCameraAddedEventArgs {} unsafe impl ::core::marker::Sync for HolographicSpaceCameraAddedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HolographicSpaceCameraRemovedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HolographicSpaceCameraRemovedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl HolographicSpaceCameraRemovedEventArgs { pub fn Camera(&self) -> ::windows_core::Result { let this = self; @@ -2106,19 +1719,17 @@ impl ::windows_core::RuntimeType for HolographicSpaceCameraRemovedEventArgs { } unsafe impl ::windows_core::Interface for HolographicSpaceCameraRemovedEventArgs { type Vtable = IHolographicSpaceCameraRemovedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HolographicSpaceCameraRemovedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HolographicSpaceCameraRemovedEventArgs { const NAME: &'static str = "Windows.Graphics.Holographic.HolographicSpaceCameraRemovedEventArgs"; } -::windows_core::imp::interface_hierarchy!(HolographicSpaceCameraRemovedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for HolographicSpaceCameraRemovedEventArgs {} unsafe impl ::core::marker::Sync for HolographicSpaceCameraRemovedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HolographicViewConfiguration(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HolographicViewConfiguration, ::windows_core::IUnknown, ::windows_core::IInspectable); impl HolographicViewConfiguration { pub fn NativeRenderTargetSize(&self) -> ::windows_core::Result { let this = self; @@ -2207,7 +1818,7 @@ impl HolographicViewConfiguration { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn SupportedDepthReprojectionMethods(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SupportedDepthReprojectionMethods)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2219,14 +1830,11 @@ impl ::windows_core::RuntimeType for HolographicViewConfiguration { } unsafe impl ::windows_core::Interface for HolographicViewConfiguration { type Vtable = IHolographicViewConfiguration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HolographicViewConfiguration { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HolographicViewConfiguration { const NAME: &'static str = "Windows.Graphics.Holographic.HolographicViewConfiguration"; } -::windows_core::imp::interface_hierarchy!(HolographicViewConfiguration, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for HolographicViewConfiguration {} unsafe impl ::core::marker::Sync for HolographicViewConfiguration {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Graphics/Imaging/impl.rs b/crates/libs/windows/src/Windows/Graphics/Imaging/impl.rs index f35d78d485..85834552c7 100644 --- a/crates/libs/windows/src/Windows/Graphics/Imaging/impl.rs +++ b/crates/libs/windows/src/Windows/Graphics/Imaging/impl.rs @@ -174,7 +174,7 @@ impl IBitmapFrame_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Storage_Streams\"`"] @@ -235,7 +235,7 @@ impl IBitmapFrameWithSoftwareBitmap_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -268,6 +268,6 @@ impl IBitmapPropertiesView_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/Graphics/Imaging/mod.rs b/crates/libs/windows/src/Windows/Graphics/Imaging/mod.rs index b0661ee511..ae8f01d319 100644 --- a/crates/libs/windows/src/Windows/Graphics/Imaging/mod.rs +++ b/crates/libs/windows/src/Windows/Graphics/Imaging/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBitmapBuffer(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBitmapBuffer { - type Vtable = IBitmapBuffer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBitmapBuffer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa53e04c4_399c_438c_b28f_a63a6b83d1a1); -} +::windows_core::imp::com_interface!(IBitmapBuffer, IBitmapBuffer_Vtbl, 0xa53e04c4_399c_438c_b28f_a63a6b83d1a1); #[repr(C)] #[doc(hidden)] pub struct IBitmapBuffer_Vtbl { @@ -15,16 +6,7 @@ pub struct IBitmapBuffer_Vtbl { pub GetPlaneCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows_core::HRESULT, pub GetPlaneDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32, result__: *mut BitmapPlaneDescription) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBitmapCodecInformation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBitmapCodecInformation { - type Vtable = IBitmapCodecInformation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBitmapCodecInformation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x400caaf2_c4b0_4392_a3b0_6f6f9ba95cb4); -} +::windows_core::imp::com_interface!(IBitmapCodecInformation, IBitmapCodecInformation_Vtbl, 0x400caaf2_c4b0_4392_a3b0_6f6f9ba95cb4); #[repr(C)] #[doc(hidden)] pub struct IBitmapCodecInformation_Vtbl { @@ -40,16 +22,7 @@ pub struct IBitmapCodecInformation_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] MimeTypes: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBitmapDecoder(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBitmapDecoder { - type Vtable = IBitmapDecoder_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBitmapDecoder { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xacef22ba_1d74_4c91_9dfc_9620745233e6); -} +::windows_core::imp::com_interface!(IBitmapDecoder, IBitmapDecoder_Vtbl, 0xacef22ba_1d74_4c91_9dfc_9620745233e6); #[repr(C)] #[doc(hidden)] pub struct IBitmapDecoder_Vtbl { @@ -63,16 +36,7 @@ pub struct IBitmapDecoder_Vtbl { GetPreviewAsync: usize, pub GetFrameAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, frameindex: u32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBitmapDecoderStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBitmapDecoderStatics { - type Vtable = IBitmapDecoderStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBitmapDecoderStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x438ccb26_bcef_4e95_bad6_23a822e58d01); -} +::windows_core::imp::com_interface!(IBitmapDecoderStatics, IBitmapDecoderStatics_Vtbl, 0x438ccb26_bcef_4e95_bad6_23a822e58d01); #[repr(C)] #[doc(hidden)] pub struct IBitmapDecoderStatics_Vtbl { @@ -97,16 +61,7 @@ pub struct IBitmapDecoderStatics_Vtbl { #[cfg(not(feature = "Storage_Streams"))] CreateWithIdAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBitmapDecoderStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBitmapDecoderStatics2 { - type Vtable = IBitmapDecoderStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBitmapDecoderStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x50ba68ea_99a1_40c4_80d9_aef0dafa6c3f); -} +::windows_core::imp::com_interface!(IBitmapDecoderStatics2, IBitmapDecoderStatics2_Vtbl, 0x50ba68ea_99a1_40c4_80d9_aef0dafa6c3f); #[repr(C)] #[doc(hidden)] pub struct IBitmapDecoderStatics2_Vtbl { @@ -114,16 +69,7 @@ pub struct IBitmapDecoderStatics2_Vtbl { pub HeifDecoderId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, pub WebpDecoderId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBitmapEncoder(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBitmapEncoder { - type Vtable = IBitmapEncoder_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBitmapEncoder { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2bc468e3_e1f8_4b54_95e8_32919551ce62); -} +::windows_core::imp::com_interface!(IBitmapEncoder, IBitmapEncoder_Vtbl, 0x2bc468e3_e1f8_4b54_95e8_32919551ce62); #[repr(C)] #[doc(hidden)] pub struct IBitmapEncoder_Vtbl { @@ -146,16 +92,7 @@ pub struct IBitmapEncoder_Vtbl { GoToNextFrameWithEncodingOptionsAsync: usize, pub FlushAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBitmapEncoderStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBitmapEncoderStatics { - type Vtable = IBitmapEncoderStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBitmapEncoderStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa74356a7_a4e4_4eb9_8e40_564de7e1ccb2); -} +::windows_core::imp::com_interface!(IBitmapEncoderStatics, IBitmapEncoderStatics_Vtbl, 0xa74356a7_a4e4_4eb9_8e40_564de7e1ccb2); #[repr(C)] #[doc(hidden)] pub struct IBitmapEncoderStatics_Vtbl { @@ -184,41 +121,22 @@ pub struct IBitmapEncoderStatics_Vtbl { CreateForTranscodingAsync: usize, pub CreateForInPlacePropertyEncodingAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bitmapdecoder: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBitmapEncoderStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBitmapEncoderStatics2 { - type Vtable = IBitmapEncoderStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBitmapEncoderStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x33cbc259_fe31_41b1_b812_086d21e87e16); -} +::windows_core::imp::com_interface!(IBitmapEncoderStatics2, IBitmapEncoderStatics2_Vtbl, 0x33cbc259_fe31_41b1_b812_086d21e87e16); #[repr(C)] #[doc(hidden)] pub struct IBitmapEncoderStatics2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub HeifEncoderId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBitmapEncoderWithSoftwareBitmap(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBitmapEncoderWithSoftwareBitmap { - type Vtable = IBitmapEncoderWithSoftwareBitmap_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBitmapEncoderWithSoftwareBitmap { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x686cd241_4330_4c77_ace4_0334968b1768); -} +::windows_core::imp::com_interface!(IBitmapEncoderWithSoftwareBitmap, IBitmapEncoderWithSoftwareBitmap_Vtbl, 0x686cd241_4330_4c77_ace4_0334968b1768); #[repr(C)] #[doc(hidden)] pub struct IBitmapEncoderWithSoftwareBitmap_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub SetSoftwareBitmap: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bitmap: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBitmapFrame(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBitmapFrame, IBitmapFrame_Vtbl, 0x72a49a1c_8081_438d_91bc_94ecfc8185c6); +::windows_core::imp::interface_hierarchy!(IBitmapFrame, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IBitmapFrame { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] @@ -310,16 +228,9 @@ impl IBitmapFrame { } } } -::windows_core::imp::interface_hierarchy!(IBitmapFrame, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IBitmapFrame { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IBitmapFrame { - type Vtable = IBitmapFrame_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBitmapFrame { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x72a49a1c_8081_438d_91bc_94ecfc8185c6); -} #[repr(C)] #[doc(hidden)] pub struct IBitmapFrame_Vtbl { @@ -340,9 +251,9 @@ pub struct IBitmapFrame_Vtbl { pub GetPixelDataAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetPixelDataTransformedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pixelformat: BitmapPixelFormat, alphamode: BitmapAlphaMode, transform: *mut ::core::ffi::c_void, exiforientationmode: ExifOrientationMode, colormanagementmode: ColorManagementMode, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBitmapFrameWithSoftwareBitmap(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBitmapFrameWithSoftwareBitmap, IBitmapFrameWithSoftwareBitmap_Vtbl, 0xfe287c9a_420c_4963_87ad_691436e08383); +::windows_core::imp::interface_hierarchy!(IBitmapFrameWithSoftwareBitmap, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IBitmapFrameWithSoftwareBitmap, IBitmapFrame); impl IBitmapFrameWithSoftwareBitmap { pub fn GetSoftwareBitmapAsync(&self) -> ::windows_core::Result> { let this = self; @@ -371,77 +282,77 @@ impl IBitmapFrameWithSoftwareBitmap { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn GetThumbnailAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetThumbnailAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn BitmapProperties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).BitmapProperties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn BitmapPixelFormat(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).BitmapPixelFormat)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn BitmapAlphaMode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).BitmapAlphaMode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn DpiX(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DpiX)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn DpiY(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DpiY)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PixelWidth(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PixelWidth)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PixelHeight(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PixelHeight)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn OrientedPixelWidth(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OrientedPixelWidth)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn OrientedPixelHeight(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OrientedPixelHeight)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetPixelDataAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetPixelDataAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -451,24 +362,16 @@ impl IBitmapFrameWithSoftwareBitmap { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(IBitmapFrameWithSoftwareBitmap, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IBitmapFrameWithSoftwareBitmap {} impl ::windows_core::RuntimeType for IBitmapFrameWithSoftwareBitmap { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IBitmapFrameWithSoftwareBitmap { - type Vtable = IBitmapFrameWithSoftwareBitmap_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBitmapFrameWithSoftwareBitmap { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfe287c9a_420c_4963_87ad_691436e08383); -} #[repr(C)] #[doc(hidden)] pub struct IBitmapFrameWithSoftwareBitmap_Vtbl { @@ -477,16 +380,7 @@ pub struct IBitmapFrameWithSoftwareBitmap_Vtbl { pub GetSoftwareBitmapConvertedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pixelformat: BitmapPixelFormat, alphamode: BitmapAlphaMode, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetSoftwareBitmapTransformedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pixelformat: BitmapPixelFormat, alphamode: BitmapAlphaMode, transform: *mut ::core::ffi::c_void, exiforientationmode: ExifOrientationMode, colormanagementmode: ColorManagementMode, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBitmapProperties(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBitmapProperties { - type Vtable = IBitmapProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBitmapProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xea9f4f1b_b505_4450_a4d1_e8ca94529d8d); -} +::windows_core::imp::com_interface!(IBitmapProperties, IBitmapProperties_Vtbl, 0xea9f4f1b_b505_4450_a4d1_e8ca94529d8d); #[repr(C)] #[doc(hidden)] pub struct IBitmapProperties_Vtbl { @@ -496,33 +390,25 @@ pub struct IBitmapProperties_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] SetPropertiesAsync: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBitmapPropertiesView(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBitmapPropertiesView, IBitmapPropertiesView_Vtbl, 0x7e0fe87a_3a70_48f8_9c55_196cf5a545f5); +::windows_core::imp::interface_hierarchy!(IBitmapPropertiesView, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IBitmapPropertiesView { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetPropertiesAsync(&self, propertiestoretrieve: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).GetPropertiesAsync)(::windows_core::Interface::as_raw(this), propertiestoretrieve.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).GetPropertiesAsync)(::windows_core::Interface::as_raw(this), propertiestoretrieve.into_param().abi(), &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(IBitmapPropertiesView, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IBitmapPropertiesView { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IBitmapPropertiesView { - type Vtable = IBitmapPropertiesView_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBitmapPropertiesView { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7e0fe87a_3a70_48f8_9c55_196cf5a545f5); -} #[repr(C)] #[doc(hidden)] pub struct IBitmapPropertiesView_Vtbl { @@ -532,16 +418,7 @@ pub struct IBitmapPropertiesView_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetPropertiesAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBitmapTransform(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBitmapTransform { - type Vtable = IBitmapTransform_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBitmapTransform { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xae755344_e268_4d35_adcf_e995d31a8d34); -} +::windows_core::imp::com_interface!(IBitmapTransform, IBitmapTransform_Vtbl, 0xae755344_e268_4d35_adcf_e995d31a8d34); #[repr(C)] #[doc(hidden)] pub struct IBitmapTransform_Vtbl { @@ -559,16 +436,7 @@ pub struct IBitmapTransform_Vtbl { pub Bounds: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut BitmapBounds) -> ::windows_core::HRESULT, pub SetBounds: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: BitmapBounds) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBitmapTypedValue(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBitmapTypedValue { - type Vtable = IBitmapTypedValue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBitmapTypedValue { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcd8044a9_2443_4000_b0cd_79316c56f589); -} +::windows_core::imp::com_interface!(IBitmapTypedValue, IBitmapTypedValue_Vtbl, 0xcd8044a9_2443_4000_b0cd_79316c56f589); #[repr(C)] #[doc(hidden)] pub struct IBitmapTypedValue_Vtbl { @@ -576,48 +444,21 @@ pub struct IBitmapTypedValue_Vtbl { pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Type: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::PropertyType) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBitmapTypedValueFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBitmapTypedValueFactory { - type Vtable = IBitmapTypedValueFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBitmapTypedValueFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x92dbb599_ce13_46bb_9545_cb3a3f63eb8b); -} +::windows_core::imp::com_interface!(IBitmapTypedValueFactory, IBitmapTypedValueFactory_Vtbl, 0x92dbb599_ce13_46bb_9545_cb3a3f63eb8b); #[repr(C)] #[doc(hidden)] pub struct IBitmapTypedValueFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void, r#type: super::super::Foundation::PropertyType, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPixelDataProvider(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPixelDataProvider { - type Vtable = IPixelDataProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPixelDataProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdd831f25_185c_4595_9fb9_ccbe6ec18a6f); -} +::windows_core::imp::com_interface!(IPixelDataProvider, IPixelDataProvider_Vtbl, 0xdd831f25_185c_4595_9fb9_ccbe6ec18a6f); #[repr(C)] #[doc(hidden)] pub struct IPixelDataProvider_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub DetachPixelData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result_size__: *mut u32, result__: *mut *mut u8) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISoftwareBitmap(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISoftwareBitmap { - type Vtable = ISoftwareBitmap_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISoftwareBitmap { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x689e0708_7eef_483f_963f_da938818e073); -} +::windows_core::imp::com_interface!(ISoftwareBitmap, ISoftwareBitmap_Vtbl, 0x689e0708_7eef_483f_963f_da938818e073); #[repr(C)] #[doc(hidden)] pub struct ISoftwareBitmap_Vtbl { @@ -643,16 +484,7 @@ pub struct ISoftwareBitmap_Vtbl { CopyToBuffer: usize, pub GetReadOnlyView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISoftwareBitmapFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISoftwareBitmapFactory { - type Vtable = ISoftwareBitmapFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISoftwareBitmapFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc99feb69_2d62_4d47_a6b3_4fdb6a07fdf8); -} +::windows_core::imp::com_interface!(ISoftwareBitmapFactory, ISoftwareBitmapFactory_Vtbl, 0xc99feb69_2d62_4d47_a6b3_4fdb6a07fdf8); #[repr(C)] #[doc(hidden)] pub struct ISoftwareBitmapFactory_Vtbl { @@ -660,16 +492,7 @@ pub struct ISoftwareBitmapFactory_Vtbl { pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, format: BitmapPixelFormat, width: i32, height: i32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateWithAlpha: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, format: BitmapPixelFormat, width: i32, height: i32, alpha: BitmapAlphaMode, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISoftwareBitmapStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISoftwareBitmapStatics { - type Vtable = ISoftwareBitmapStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISoftwareBitmapStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdf0385db_672f_4a9d_806e_c2442f343e86); -} +::windows_core::imp::com_interface!(ISoftwareBitmapStatics, ISoftwareBitmapStatics_Vtbl, 0xdf0385db_672f_4a9d_806e_c2442f343e86); #[repr(C)] #[doc(hidden)] pub struct ISoftwareBitmapStatics_Vtbl { @@ -697,6 +520,8 @@ pub struct ISoftwareBitmapStatics_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BitmapBuffer(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BitmapBuffer, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(BitmapBuffer, super::super::Foundation::IClosable, super::super::Foundation::IMemoryBuffer); impl BitmapBuffer { pub fn GetPlaneCount(&self) -> ::windows_core::Result { let this = self; @@ -713,11 +538,11 @@ impl BitmapBuffer { } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn CreateReference(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateReference)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -729,21 +554,17 @@ impl ::windows_core::RuntimeType for BitmapBuffer { } unsafe impl ::windows_core::Interface for BitmapBuffer { type Vtable = IBitmapBuffer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BitmapBuffer { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BitmapBuffer { const NAME: &'static str = "Windows.Graphics.Imaging.BitmapBuffer"; } -::windows_core::imp::interface_hierarchy!(BitmapBuffer, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for BitmapBuffer {} -impl ::windows_core::CanTryInto for BitmapBuffer {} unsafe impl ::core::marker::Send for BitmapBuffer {} unsafe impl ::core::marker::Sync for BitmapBuffer {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BitmapCodecInformation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BitmapCodecInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BitmapCodecInformation { pub fn CodecId(&self) -> ::windows_core::Result<::windows_core::GUID> { let this = self; @@ -783,19 +604,18 @@ impl ::windows_core::RuntimeType for BitmapCodecInformation { } unsafe impl ::windows_core::Interface for BitmapCodecInformation { type Vtable = IBitmapCodecInformation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BitmapCodecInformation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BitmapCodecInformation { const NAME: &'static str = "Windows.Graphics.Imaging.BitmapCodecInformation"; } -::windows_core::imp::interface_hierarchy!(BitmapCodecInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BitmapCodecInformation {} unsafe impl ::core::marker::Sync for BitmapCodecInformation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BitmapDecoder(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BitmapDecoder, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(BitmapDecoder, IBitmapFrame, IBitmapFrameWithSoftwareBitmap); impl BitmapDecoder { pub fn BitmapContainerProperties(&self) -> ::windows_core::Result { let this = self; @@ -888,22 +708,22 @@ impl BitmapDecoder { #[cfg(feature = "Storage_Streams")] pub fn CreateAsync(stream: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IBitmapDecoderStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateAsync)(::windows_core::Interface::as_raw(this), stream.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateAsync)(::windows_core::Interface::as_raw(this), stream.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn CreateWithIdAsync(decoderid: ::windows_core::GUID, stream: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IBitmapDecoderStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateWithIdAsync)(::windows_core::Interface::as_raw(this), decoderid, stream.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateWithIdAsync)(::windows_core::Interface::as_raw(this), decoderid, stream.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn HeifDecoderId() -> ::windows_core::Result<::windows_core::GUID> { @@ -921,77 +741,77 @@ impl BitmapDecoder { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn GetThumbnailAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetThumbnailAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn BitmapProperties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).BitmapProperties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn BitmapPixelFormat(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).BitmapPixelFormat)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn BitmapAlphaMode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).BitmapAlphaMode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn DpiX(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DpiX)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn DpiY(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DpiY)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PixelWidth(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PixelWidth)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PixelHeight(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PixelHeight)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn OrientedPixelWidth(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OrientedPixelWidth)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn OrientedPixelHeight(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OrientedPixelHeight)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetPixelDataAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetPixelDataAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1001,21 +821,21 @@ impl BitmapDecoder { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn GetSoftwareBitmapAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetSoftwareBitmapAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetSoftwareBitmapConvertedAsync(&self, pixelformat: BitmapPixelFormat, alphamode: BitmapAlphaMode) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetSoftwareBitmapConvertedAsync)(::windows_core::Interface::as_raw(this), pixelformat, alphamode, &mut result__).from_abi(result__) @@ -1025,7 +845,7 @@ impl BitmapDecoder { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -1047,21 +867,17 @@ impl ::windows_core::RuntimeType for BitmapDecoder { } unsafe impl ::windows_core::Interface for BitmapDecoder { type Vtable = IBitmapDecoder_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BitmapDecoder { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BitmapDecoder { const NAME: &'static str = "Windows.Graphics.Imaging.BitmapDecoder"; } -::windows_core::imp::interface_hierarchy!(BitmapDecoder, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for BitmapDecoder {} -impl ::windows_core::CanTryInto for BitmapDecoder {} unsafe impl ::core::marker::Send for BitmapDecoder {} unsafe impl ::core::marker::Sync for BitmapDecoder {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BitmapEncoder(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BitmapEncoder, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BitmapEncoder { pub fn EncoderInformation(&self) -> ::windows_core::Result { let this = self; @@ -1139,12 +955,12 @@ impl BitmapEncoder { #[cfg(feature = "Foundation_Collections")] pub fn GoToNextFrameWithEncodingOptionsAsync(&self, encodingoptions: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>>, + P0: ::windows_core::IntoParam>>, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).GoToNextFrameWithEncodingOptionsAsync)(::windows_core::Interface::as_raw(this), encodingoptions.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).GoToNextFrameWithEncodingOptionsAsync)(::windows_core::Interface::as_raw(this), encodingoptions.into_param().abi(), &mut result__).from_abi(result__) } } pub fn FlushAsync(&self) -> ::windows_core::Result { @@ -1202,35 +1018,35 @@ impl BitmapEncoder { #[cfg(feature = "Storage_Streams")] pub fn CreateAsync(encoderid: ::windows_core::GUID, stream: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IBitmapEncoderStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateAsync)(::windows_core::Interface::as_raw(this), encoderid, stream.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateAsync)(::windows_core::Interface::as_raw(this), encoderid, stream.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Storage_Streams\"`"] #[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::TryIntoParam, - P1: ::windows_core::TryIntoParam>>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam>>, { Self::IBitmapEncoderStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateWithEncodingOptionsAsync)(::windows_core::Interface::as_raw(this), encoderid, stream.try_into_param()?.abi(), encodingoptions.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateWithEncodingOptionsAsync)(::windows_core::Interface::as_raw(this), encoderid, stream.into_param().abi(), encodingoptions.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn CreateForTranscodingAsync(stream: P0, bitmapdecoder: P1) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { Self::IBitmapEncoderStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateForTranscodingAsync)(::windows_core::Interface::as_raw(this), stream.try_into_param()?.abi(), bitmapdecoder.into_param().abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateForTranscodingAsync)(::windows_core::Interface::as_raw(this), stream.into_param().abi(), bitmapdecoder.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn CreateForInPlacePropertyEncodingAsync(bitmapdecoder: P0) -> ::windows_core::Result> @@ -1252,7 +1068,7 @@ impl BitmapEncoder { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } #[doc(hidden)] @@ -1271,19 +1087,18 @@ impl ::windows_core::RuntimeType for BitmapEncoder { } unsafe impl ::windows_core::Interface for BitmapEncoder { type Vtable = IBitmapEncoder_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BitmapEncoder { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BitmapEncoder { const NAME: &'static str = "Windows.Graphics.Imaging.BitmapEncoder"; } -::windows_core::imp::interface_hierarchy!(BitmapEncoder, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BitmapEncoder {} unsafe impl ::core::marker::Sync for BitmapEncoder {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BitmapFrame(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BitmapFrame, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(BitmapFrame, IBitmapFrame, IBitmapFrameWithSoftwareBitmap); impl BitmapFrame { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] @@ -1375,14 +1190,14 @@ impl BitmapFrame { } } pub fn GetSoftwareBitmapAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetSoftwareBitmapAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetSoftwareBitmapConvertedAsync(&self, pixelformat: BitmapPixelFormat, alphamode: BitmapAlphaMode) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetSoftwareBitmapConvertedAsync)(::windows_core::Interface::as_raw(this), pixelformat, alphamode, &mut result__).from_abi(result__) @@ -1392,7 +1207,7 @@ impl BitmapFrame { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -1404,44 +1219,41 @@ impl ::windows_core::RuntimeType for BitmapFrame { } unsafe impl ::windows_core::Interface for BitmapFrame { type Vtable = IBitmapFrame_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BitmapFrame { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BitmapFrame { const NAME: &'static str = "Windows.Graphics.Imaging.BitmapFrame"; } -::windows_core::imp::interface_hierarchy!(BitmapFrame, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for BitmapFrame {} -impl ::windows_core::CanTryInto for BitmapFrame {} unsafe impl ::core::marker::Send for BitmapFrame {} unsafe impl ::core::marker::Sync for BitmapFrame {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BitmapProperties(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BitmapProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(BitmapProperties, IBitmapPropertiesView); impl BitmapProperties { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn SetPropertiesAsync(&self, propertiestoset: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>>, + P0: ::windows_core::IntoParam>>, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).SetPropertiesAsync)(::windows_core::Interface::as_raw(this), propertiestoset.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SetPropertiesAsync)(::windows_core::Interface::as_raw(this), propertiestoset.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetPropertiesAsync(&self, propertiestoretrieve: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).GetPropertiesAsync)(::windows_core::Interface::as_raw(this), propertiestoretrieve.into_param().abi(), &mut result__).from_abi(result__) } } } @@ -1450,31 +1262,29 @@ impl ::windows_core::RuntimeType for BitmapProperties { } unsafe impl ::windows_core::Interface for BitmapProperties { type Vtable = IBitmapProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BitmapProperties { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BitmapProperties { const NAME: &'static str = "Windows.Graphics.Imaging.BitmapProperties"; } -::windows_core::imp::interface_hierarchy!(BitmapProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for BitmapProperties {} unsafe impl ::core::marker::Send for BitmapProperties {} unsafe impl ::core::marker::Sync for BitmapProperties {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BitmapPropertiesView(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BitmapPropertiesView, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(BitmapPropertiesView, IBitmapPropertiesView); impl BitmapPropertiesView { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetPropertiesAsync(&self, propertiestoretrieve: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).GetPropertiesAsync)(::windows_core::Interface::as_raw(this), propertiestoretrieve.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).GetPropertiesAsync)(::windows_core::Interface::as_raw(this), propertiestoretrieve.into_param().abi(), &mut result__).from_abi(result__) } } } @@ -1483,15 +1293,11 @@ impl ::windows_core::RuntimeType for BitmapPropertiesView { } unsafe impl ::windows_core::Interface for BitmapPropertiesView { type Vtable = IBitmapPropertiesView_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BitmapPropertiesView { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BitmapPropertiesView { const NAME: &'static str = "Windows.Graphics.Imaging.BitmapPropertiesView"; } -::windows_core::imp::interface_hierarchy!(BitmapPropertiesView, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for BitmapPropertiesView {} unsafe impl ::core::marker::Send for BitmapPropertiesView {} unsafe impl ::core::marker::Sync for BitmapPropertiesView {} #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -1500,6 +1306,10 @@ unsafe impl ::core::marker::Sync for BitmapPropertiesView {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BitmapPropertySet(::windows_core::IUnknown); #[cfg(feature = "Foundation_Collections")] +::windows_core::imp::interface_hierarchy!(BitmapPropertySet, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(BitmapPropertySet, super::super::Foundation::Collections::IIterable::>, super::super::Foundation::Collections::IMap::<::windows_core::HSTRING, BitmapTypedValue>); +#[cfg(feature = "Foundation_Collections")] impl BitmapPropertySet { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1511,7 +1321,7 @@ impl BitmapPropertySet { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> ::windows_core::Result>> { - let this = &::windows_core::ComInterface::cast::>>(self)?; + let this = &::windows_core::Interface::cast::>>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1585,10 +1395,7 @@ impl ::windows_core::RuntimeType for BitmapPropertySet { #[cfg(feature = "Foundation_Collections")] unsafe impl ::windows_core::Interface for BitmapPropertySet { type Vtable = super::super::Foundation::Collections::IMap_Vtbl<::windows_core::HSTRING, BitmapTypedValue>; -} -#[cfg(feature = "Foundation_Collections")] -unsafe impl ::windows_core::ComInterface for BitmapPropertySet { - const IID: ::windows_core::GUID = as ::windows_core::ComInterface>::IID; + const IID: ::windows_core::GUID = as ::windows_core::Interface>::IID; } #[cfg(feature = "Foundation_Collections")] impl ::windows_core::RuntimeName for BitmapPropertySet { @@ -1611,18 +1418,13 @@ impl ::core::iter::IntoIterator for &BitmapPropertySet { } } #[cfg(feature = "Foundation_Collections")] -::windows_core::imp::interface_hierarchy!(BitmapPropertySet, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto>> for BitmapPropertySet {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for BitmapPropertySet {} -#[cfg(feature = "Foundation_Collections")] unsafe impl ::core::marker::Send for BitmapPropertySet {} #[cfg(feature = "Foundation_Collections")] unsafe impl ::core::marker::Sync for BitmapPropertySet {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BitmapTransform(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BitmapTransform, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BitmapTransform { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1703,19 +1505,17 @@ impl ::windows_core::RuntimeType for BitmapTransform { } unsafe impl ::windows_core::Interface for BitmapTransform { type Vtable = IBitmapTransform_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BitmapTransform { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BitmapTransform { const NAME: &'static str = "Windows.Graphics.Imaging.BitmapTransform"; } -::windows_core::imp::interface_hierarchy!(BitmapTransform, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BitmapTransform {} unsafe impl ::core::marker::Sync for BitmapTransform {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BitmapTypedValue(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BitmapTypedValue, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BitmapTypedValue { pub fn Value(&self) -> ::windows_core::Result<::windows_core::IInspectable> { let this = self; @@ -1751,14 +1551,11 @@ impl ::windows_core::RuntimeType for BitmapTypedValue { } unsafe impl ::windows_core::Interface for BitmapTypedValue { type Vtable = IBitmapTypedValue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BitmapTypedValue { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BitmapTypedValue { const NAME: &'static str = "Windows.Graphics.Imaging.BitmapTypedValue"; } -::windows_core::imp::interface_hierarchy!(BitmapTypedValue, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BitmapTypedValue {} unsafe impl ::core::marker::Sync for BitmapTypedValue {} #[doc = "Required features: `\"Storage_Streams\"`"] @@ -1767,15 +1564,19 @@ unsafe impl ::core::marker::Sync for BitmapTypedValue {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ImageStream(::windows_core::IUnknown); #[cfg(feature = "Storage_Streams")] +::windows_core::imp::interface_hierarchy!(ImageStream, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Storage_Streams")] +::windows_core::imp::required_hierarchy!(ImageStream, super::super::Foundation::IClosable, super::super::Storage::Streams::IContentTypeProvider, super::super::Storage::Streams::IInputStream, super::super::Storage::Streams::IOutputStream, super::super::Storage::Streams::IRandomAccessStream, super::super::Storage::Streams::IRandomAccessStreamWithContentType); +#[cfg(feature = "Storage_Streams")] impl ImageStream { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn ContentType(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ContentType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1785,30 +1586,30 @@ 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::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), count, options, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ReadAsync)(::windows_core::Interface::as_raw(this), buffer.into_param().abi(), count, options, &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn WriteAsync(&self, buffer: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).WriteAsync)(::windows_core::Interface::as_raw(this), buffer.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn FlushAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FlushAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1817,7 +1618,7 @@ impl ImageStream { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn Size(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Size)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1826,13 +1627,13 @@ impl ImageStream { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn SetSize(&self, value: u64) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetSize)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn GetInputStreamAt(&self, position: u64) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetInputStreamAt)(::windows_core::Interface::as_raw(this), position, &mut result__).from_abi(result__) @@ -1841,7 +1642,7 @@ impl ImageStream { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn GetOutputStreamAt(&self, position: u64) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetOutputStreamAt)(::windows_core::Interface::as_raw(this), position, &mut result__).from_abi(result__) @@ -1850,7 +1651,7 @@ impl ImageStream { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn Position(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Position)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1859,13 +1660,13 @@ impl ImageStream { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn Seek(&self, position: u64) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Seek)(::windows_core::Interface::as_raw(this), position).ok() } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn CloneStream(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CloneStream)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1874,7 +1675,7 @@ impl ImageStream { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn CanRead(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CanRead)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1883,7 +1684,7 @@ impl ImageStream { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn CanWrite(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CanWrite)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1897,36 +1698,20 @@ impl ::windows_core::RuntimeType for ImageStream { #[cfg(feature = "Storage_Streams")] unsafe impl ::windows_core::Interface for ImageStream { type Vtable = super::super::Storage::Streams::IRandomAccessStreamWithContentType_Vtbl; -} -#[cfg(feature = "Storage_Streams")] -unsafe impl ::windows_core::ComInterface for ImageStream { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "Storage_Streams")] impl ::windows_core::RuntimeName for ImageStream { const NAME: &'static str = "Windows.Graphics.Imaging.ImageStream"; } #[cfg(feature = "Storage_Streams")] -::windows_core::imp::interface_hierarchy!(ImageStream, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Storage_Streams")] -impl ::windows_core::CanTryInto for ImageStream {} -#[cfg(feature = "Storage_Streams")] -impl ::windows_core::CanTryInto for ImageStream {} -#[cfg(feature = "Storage_Streams")] -impl ::windows_core::CanTryInto for ImageStream {} -#[cfg(feature = "Storage_Streams")] -impl ::windows_core::CanTryInto for ImageStream {} -#[cfg(feature = "Storage_Streams")] -impl ::windows_core::CanTryInto for ImageStream {} -#[cfg(feature = "Storage_Streams")] -impl ::windows_core::CanTryInto for ImageStream {} -#[cfg(feature = "Storage_Streams")] unsafe impl ::core::marker::Send for ImageStream {} #[cfg(feature = "Storage_Streams")] unsafe impl ::core::marker::Sync for ImageStream {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PixelDataProvider(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PixelDataProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PixelDataProvider { pub fn DetachPixelData(&self) -> ::windows_core::Result<::windows_core::Array> { let this = self; @@ -1941,22 +1726,21 @@ impl ::windows_core::RuntimeType for PixelDataProvider { } unsafe impl ::windows_core::Interface for PixelDataProvider { type Vtable = IPixelDataProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PixelDataProvider { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PixelDataProvider { const NAME: &'static str = "Windows.Graphics.Imaging.PixelDataProvider"; } -::windows_core::imp::interface_hierarchy!(PixelDataProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PixelDataProvider {} unsafe impl ::core::marker::Sync for PixelDataProvider {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SoftwareBitmap(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SoftwareBitmap, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(SoftwareBitmap, super::super::Foundation::IClosable); impl SoftwareBitmap { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn BitmapPixelFormat(&self) -> ::windows_core::Result { @@ -2034,19 +1818,19 @@ impl SoftwareBitmap { #[cfg(feature = "Storage_Streams")] pub fn CopyFromBuffer(&self, buffer: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).CopyFromBuffer)(::windows_core::Interface::as_raw(this), buffer.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).CopyFromBuffer)(::windows_core::Interface::as_raw(this), buffer.into_param().abi()).ok() } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn CopyToBuffer(&self, buffer: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).CopyToBuffer)(::windows_core::Interface::as_raw(this), buffer.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).CopyToBuffer)(::windows_core::Interface::as_raw(this), buffer.into_param().abi()).ok() } } pub fn GetReadOnlyView(&self) -> ::windows_core::Result { let this = self; @@ -2098,44 +1882,44 @@ impl SoftwareBitmap { #[cfg(feature = "Storage_Streams")] pub fn CreateCopyFromBuffer(source: P0, format: BitmapPixelFormat, width: i32, height: i32) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::ISoftwareBitmapStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateCopyFromBuffer)(::windows_core::Interface::as_raw(this), source.try_into_param()?.abi(), format, width, height, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateCopyFromBuffer)(::windows_core::Interface::as_raw(this), source.into_param().abi(), format, width, height, &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn CreateCopyWithAlphaFromBuffer(source: P0, format: BitmapPixelFormat, width: i32, height: i32, alpha: BitmapAlphaMode) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::ISoftwareBitmapStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateCopyWithAlphaFromBuffer)(::windows_core::Interface::as_raw(this), source.try_into_param()?.abi(), format, width, height, alpha, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateCopyWithAlphaFromBuffer)(::windows_core::Interface::as_raw(this), source.into_param().abi(), format, width, height, alpha, &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Graphics_DirectX_Direct3D11\"`"] #[cfg(feature = "Graphics_DirectX_Direct3D11")] pub fn CreateCopyFromSurfaceAsync(surface: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::ISoftwareBitmapStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateCopyFromSurfaceAsync)(::windows_core::Interface::as_raw(this), surface.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateCopyFromSurfaceAsync)(::windows_core::Interface::as_raw(this), surface.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Graphics_DirectX_Direct3D11\"`"] #[cfg(feature = "Graphics_DirectX_Direct3D11")] pub fn CreateCopyWithAlphaFromSurfaceAsync(surface: P0, alpha: BitmapAlphaMode) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::ISoftwareBitmapStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateCopyWithAlphaFromSurfaceAsync)(::windows_core::Interface::as_raw(this), surface.try_into_param()?.abi(), alpha, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateCopyWithAlphaFromSurfaceAsync)(::windows_core::Interface::as_raw(this), surface.into_param().abi(), alpha, &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -2154,15 +1938,11 @@ impl ::windows_core::RuntimeType for SoftwareBitmap { } unsafe impl ::windows_core::Interface for SoftwareBitmap { type Vtable = ISoftwareBitmap_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SoftwareBitmap { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SoftwareBitmap { const NAME: &'static str = "Windows.Graphics.Imaging.SoftwareBitmap"; } -::windows_core::imp::interface_hierarchy!(SoftwareBitmap, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for SoftwareBitmap {} unsafe impl ::core::marker::Send for SoftwareBitmap {} unsafe impl ::core::marker::Sync for SoftwareBitmap {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/impl.rs b/crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/impl.rs index 54bc007fe0..670d5fc5f8 100644 --- a/crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/impl.rs +++ b/crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/impl.rs @@ -31,7 +31,7 @@ impl IPrintCustomOptionDetails_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -61,7 +61,7 @@ impl IPrintItemListOptionDetails_Vtbl { Self { base__: ::windows_core::IInspectable_Vtbl::new::(), Items: Items:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPrintNumberOptionDetails_Impl: Sized + IPrintOptionDetails_Impl { @@ -102,7 +102,7 @@ impl IPrintNumberOptionDetails_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPrintOptionDetails_Impl: Sized { @@ -212,7 +212,7 @@ impl IPrintOptionDetails_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPrintTextOptionDetails_Impl: Sized + IPrintOptionDetails_Impl { @@ -240,6 +240,6 @@ impl IPrintTextOptionDetails_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 ba005f81d0..2259131159 100644 --- a/crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs +++ b/crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintBindingOptionDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintBindingOptionDetails { - type Vtable = IPrintBindingOptionDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintBindingOptionDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc3f4cc98_9564_4f16_a055_a98b9a49e9d3); -} +::windows_core::imp::com_interface!(IPrintBindingOptionDetails, IPrintBindingOptionDetails_Vtbl, 0xc3f4cc98_9564_4f16_a055_a98b9a49e9d3); #[repr(C)] #[doc(hidden)] pub struct IPrintBindingOptionDetails_Vtbl { @@ -17,16 +8,7 @@ pub struct IPrintBindingOptionDetails_Vtbl { pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintBorderingOptionDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintBorderingOptionDetails { - type Vtable = IPrintBorderingOptionDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintBorderingOptionDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4d73bc8f_fb53_4eb2_985f_1d91de0b7639); -} +::windows_core::imp::com_interface!(IPrintBorderingOptionDetails, IPrintBorderingOptionDetails_Vtbl, 0x4d73bc8f_fb53_4eb2_985f_1d91de0b7639); #[repr(C)] #[doc(hidden)] pub struct IPrintBorderingOptionDetails_Vtbl { @@ -36,16 +18,7 @@ pub struct IPrintBorderingOptionDetails_Vtbl { pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintCollationOptionDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintCollationOptionDetails { - type Vtable = IPrintCollationOptionDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintCollationOptionDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd6abb166_a5a6_40dc_acc3_739f28f1e5d3); -} +::windows_core::imp::com_interface!(IPrintCollationOptionDetails, IPrintCollationOptionDetails_Vtbl, 0xd6abb166_a5a6_40dc_acc3_739f28f1e5d3); #[repr(C)] #[doc(hidden)] pub struct IPrintCollationOptionDetails_Vtbl { @@ -55,16 +28,7 @@ pub struct IPrintCollationOptionDetails_Vtbl { pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintColorModeOptionDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintColorModeOptionDetails { - type Vtable = IPrintColorModeOptionDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintColorModeOptionDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdba97704_f1d6_4843_a484_9b447cdcf3b6); -} +::windows_core::imp::com_interface!(IPrintColorModeOptionDetails, IPrintColorModeOptionDetails_Vtbl, 0xdba97704_f1d6_4843_a484_9b447cdcf3b6); #[repr(C)] #[doc(hidden)] pub struct IPrintColorModeOptionDetails_Vtbl { @@ -74,16 +38,7 @@ pub struct IPrintColorModeOptionDetails_Vtbl { pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintCopiesOptionDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintCopiesOptionDetails { - type Vtable = IPrintCopiesOptionDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintCopiesOptionDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x42053099_4339_4343_898d_2c47b5e0c341); -} +::windows_core::imp::com_interface!(IPrintCopiesOptionDetails, IPrintCopiesOptionDetails_Vtbl, 0x42053099_4339_4343_898d_2c47b5e0c341); #[repr(C)] #[doc(hidden)] pub struct IPrintCopiesOptionDetails_Vtbl { @@ -93,16 +48,7 @@ pub struct IPrintCopiesOptionDetails_Vtbl { pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintCustomItemDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintCustomItemDetails { - type Vtable = IPrintCustomItemDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintCustomItemDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5704b637_5c3a_449a_aa36_b3291b1192fd); -} +::windows_core::imp::com_interface!(IPrintCustomItemDetails, IPrintCustomItemDetails_Vtbl, 0x5704b637_5c3a_449a_aa36_b3291b1192fd); #[repr(C)] #[doc(hidden)] pub struct IPrintCustomItemDetails_Vtbl { @@ -111,32 +57,14 @@ pub struct IPrintCustomItemDetails_Vtbl { pub SetItemDisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub ItemDisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintCustomItemListOptionDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintCustomItemListOptionDetails { - type Vtable = IPrintCustomItemListOptionDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintCustomItemListOptionDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa5fafd88_58f2_4ebd_b90f_51e4f2944c5d); -} +::windows_core::imp::com_interface!(IPrintCustomItemListOptionDetails, IPrintCustomItemListOptionDetails_Vtbl, 0xa5fafd88_58f2_4ebd_b90f_51e4f2944c5d); #[repr(C)] #[doc(hidden)] pub struct IPrintCustomItemListOptionDetails_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub AddItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, itemid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, displayname: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintCustomItemListOptionDetails2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintCustomItemListOptionDetails2 { - type Vtable = IPrintCustomItemListOptionDetails2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintCustomItemListOptionDetails2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc9d6353d_651c_4a39_906e_1091a1801bf1); -} +::windows_core::imp::com_interface!(IPrintCustomItemListOptionDetails2, IPrintCustomItemListOptionDetails2_Vtbl, 0xc9d6353d_651c_4a39_906e_1091a1801bf1); #[repr(C)] #[doc(hidden)] pub struct IPrintCustomItemListOptionDetails2_Vtbl { @@ -146,16 +74,7 @@ pub struct IPrintCustomItemListOptionDetails2_Vtbl { #[cfg(not(feature = "Storage_Streams"))] AddItem: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintCustomItemListOptionDetails3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintCustomItemListOptionDetails3 { - type Vtable = IPrintCustomItemListOptionDetails3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintCustomItemListOptionDetails3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4fa1b53f_3c34_4868_a407_fc5eab259b21); -} +::windows_core::imp::com_interface!(IPrintCustomItemListOptionDetails3, IPrintCustomItemListOptionDetails3_Vtbl, 0x4fa1b53f_3c34_4868_a407_fc5eab259b21); #[repr(C)] #[doc(hidden)] pub struct IPrintCustomItemListOptionDetails3_Vtbl { @@ -165,9 +84,9 @@ pub struct IPrintCustomItemListOptionDetails3_Vtbl { pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintCustomOptionDetails(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPrintCustomOptionDetails, IPrintCustomOptionDetails_Vtbl, 0xe32bde1c_28af_4b90_95da_a3acf320b929); +::windows_core::imp::interface_hierarchy!(IPrintCustomOptionDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IPrintCustomOptionDetails, IPrintOptionDetails); impl IPrintCustomOptionDetails { pub fn SetDisplayName(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { let this = self; @@ -181,43 +100,43 @@ impl IPrintCustomOptionDetails { } } pub fn OptionId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OptionId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn OptionType(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OptionType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetErrorText(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetErrorText)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ErrorText(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ErrorText)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetState(&self, value: PrintOptionStates) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetState)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn State(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).State)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Value(&self) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Value)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -227,24 +146,16 @@ impl IPrintCustomOptionDetails { where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(IPrintCustomOptionDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IPrintCustomOptionDetails {} impl ::windows_core::RuntimeType for IPrintCustomOptionDetails { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IPrintCustomOptionDetails { - type Vtable = IPrintCustomOptionDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintCustomOptionDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe32bde1c_28af_4b90_95da_a3acf320b929); -} #[repr(C)] #[doc(hidden)] pub struct IPrintCustomOptionDetails_Vtbl { @@ -252,16 +163,7 @@ pub struct IPrintCustomOptionDetails_Vtbl { pub SetDisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub DisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintCustomTextOptionDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintCustomTextOptionDetails { - type Vtable = IPrintCustomTextOptionDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintCustomTextOptionDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2ad171f8_c8bd_4905_9192_0d75136e8b31); -} +::windows_core::imp::com_interface!(IPrintCustomTextOptionDetails, IPrintCustomTextOptionDetails_Vtbl, 0x2ad171f8_c8bd_4905_9192_0d75136e8b31); #[repr(C)] #[doc(hidden)] pub struct IPrintCustomTextOptionDetails_Vtbl { @@ -269,16 +171,7 @@ pub struct IPrintCustomTextOptionDetails_Vtbl { pub SetMaxCharacters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: u32) -> ::windows_core::HRESULT, pub MaxCharacters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintCustomTextOptionDetails2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintCustomTextOptionDetails2 { - type Vtable = IPrintCustomTextOptionDetails2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintCustomTextOptionDetails2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcea70b54_b977_4718_8338_7ed2b0d86fe3); -} +::windows_core::imp::com_interface!(IPrintCustomTextOptionDetails2, IPrintCustomTextOptionDetails2_Vtbl, 0xcea70b54_b977_4718_8338_7ed2b0d86fe3); #[repr(C)] #[doc(hidden)] pub struct IPrintCustomTextOptionDetails2_Vtbl { @@ -288,16 +181,7 @@ pub struct IPrintCustomTextOptionDetails2_Vtbl { pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintCustomToggleOptionDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintCustomToggleOptionDetails { - type Vtable = IPrintCustomToggleOptionDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintCustomToggleOptionDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9db4d514_e461_4608_8ee9_db6f5ed073c6); -} +::windows_core::imp::com_interface!(IPrintCustomToggleOptionDetails, IPrintCustomToggleOptionDetails_Vtbl, 0x9db4d514_e461_4608_8ee9_db6f5ed073c6); #[repr(C)] #[doc(hidden)] pub struct IPrintCustomToggleOptionDetails_Vtbl { @@ -307,16 +191,7 @@ pub struct IPrintCustomToggleOptionDetails_Vtbl { pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintDuplexOptionDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintDuplexOptionDetails { - type Vtable = IPrintDuplexOptionDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintDuplexOptionDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfcd94591_d4a4_44fa_b3fe_42e0ba28d5ad); -} +::windows_core::imp::com_interface!(IPrintDuplexOptionDetails, IPrintDuplexOptionDetails_Vtbl, 0xfcd94591_d4a4_44fa_b3fe_42e0ba28d5ad); #[repr(C)] #[doc(hidden)] pub struct IPrintDuplexOptionDetails_Vtbl { @@ -326,16 +201,7 @@ pub struct IPrintDuplexOptionDetails_Vtbl { pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintHolePunchOptionDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintHolePunchOptionDetails { - type Vtable = IPrintHolePunchOptionDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintHolePunchOptionDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa6de1f18_482c_4657_9d71_8ddddbea1e1e); -} +::windows_core::imp::com_interface!(IPrintHolePunchOptionDetails, IPrintHolePunchOptionDetails_Vtbl, 0xa6de1f18_482c_4657_9d71_8ddddbea1e1e); #[repr(C)] #[doc(hidden)] pub struct IPrintHolePunchOptionDetails_Vtbl { @@ -345,9 +211,9 @@ pub struct IPrintHolePunchOptionDetails_Vtbl { pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintItemListOptionDetails(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPrintItemListOptionDetails, IPrintItemListOptionDetails_Vtbl, 0x9a2257bf_fe61_43d8_a24f_a3f6ab7320e7); +::windows_core::imp::interface_hierarchy!(IPrintItemListOptionDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IPrintItemListOptionDetails, IPrintOptionDetails); impl IPrintItemListOptionDetails { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -359,43 +225,43 @@ impl IPrintItemListOptionDetails { } } pub fn OptionId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OptionId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn OptionType(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OptionType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetErrorText(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetErrorText)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ErrorText(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ErrorText)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetState(&self, value: PrintOptionStates) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetState)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn State(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).State)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Value(&self) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Value)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -405,24 +271,16 @@ impl IPrintItemListOptionDetails { where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(IPrintItemListOptionDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IPrintItemListOptionDetails {} impl ::windows_core::RuntimeType for IPrintItemListOptionDetails { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IPrintItemListOptionDetails { - type Vtable = IPrintItemListOptionDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintItemListOptionDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9a2257bf_fe61_43d8_a24f_a3f6ab7320e7); -} #[repr(C)] #[doc(hidden)] pub struct IPrintItemListOptionDetails_Vtbl { @@ -432,16 +290,7 @@ pub struct IPrintItemListOptionDetails_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Items: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintMediaSizeOptionDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintMediaSizeOptionDetails { - type Vtable = IPrintMediaSizeOptionDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintMediaSizeOptionDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6c8d5bcf_c0bf_47c8_b84a_628e7d0d1a1d); -} +::windows_core::imp::com_interface!(IPrintMediaSizeOptionDetails, IPrintMediaSizeOptionDetails_Vtbl, 0x6c8d5bcf_c0bf_47c8_b84a_628e7d0d1a1d); #[repr(C)] #[doc(hidden)] pub struct IPrintMediaSizeOptionDetails_Vtbl { @@ -451,16 +300,7 @@ pub struct IPrintMediaSizeOptionDetails_Vtbl { pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintMediaTypeOptionDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintMediaTypeOptionDetails { - type Vtable = IPrintMediaTypeOptionDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintMediaTypeOptionDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf8c7000b_abf3_4abc_8e86_22abc5744a43); -} +::windows_core::imp::com_interface!(IPrintMediaTypeOptionDetails, IPrintMediaTypeOptionDetails_Vtbl, 0xf8c7000b_abf3_4abc_8e86_22abc5744a43); #[repr(C)] #[doc(hidden)] pub struct IPrintMediaTypeOptionDetails_Vtbl { @@ -470,9 +310,9 @@ pub struct IPrintMediaTypeOptionDetails_Vtbl { pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintNumberOptionDetails(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPrintNumberOptionDetails, IPrintNumberOptionDetails_Vtbl, 0x4d01bbaf_645c_4de9_965f_6fc6bbc47cab); +::windows_core::imp::interface_hierarchy!(IPrintNumberOptionDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IPrintNumberOptionDetails, IPrintOptionDetails); impl IPrintNumberOptionDetails { pub fn MinValue(&self) -> ::windows_core::Result { let this = self; @@ -489,43 +329,43 @@ impl IPrintNumberOptionDetails { } } pub fn OptionId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OptionId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn OptionType(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OptionType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetErrorText(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetErrorText)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ErrorText(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ErrorText)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetState(&self, value: PrintOptionStates) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetState)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn State(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).State)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Value(&self) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Value)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -535,24 +375,16 @@ impl IPrintNumberOptionDetails { where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(IPrintNumberOptionDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IPrintNumberOptionDetails {} impl ::windows_core::RuntimeType for IPrintNumberOptionDetails { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IPrintNumberOptionDetails { - type Vtable = IPrintNumberOptionDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintNumberOptionDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4d01bbaf_645c_4de9_965f_6fc6bbc47cab); -} #[repr(C)] #[doc(hidden)] pub struct IPrintNumberOptionDetails_Vtbl { @@ -560,9 +392,8 @@ pub struct IPrintNumberOptionDetails_Vtbl { pub MinValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, pub MaxValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintOptionDetails(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPrintOptionDetails, IPrintOptionDetails_Vtbl, 0x390686cf_d682_495f_adfe_d7333f5c1808); +::windows_core::imp::interface_hierarchy!(IPrintOptionDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IPrintOptionDetails { pub fn OptionId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -618,16 +449,9 @@ impl IPrintOptionDetails { } } } -::windows_core::imp::interface_hierarchy!(IPrintOptionDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IPrintOptionDetails { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IPrintOptionDetails { - type Vtable = IPrintOptionDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintOptionDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x390686cf_d682_495f_adfe_d7333f5c1808); -} #[repr(C)] #[doc(hidden)] pub struct IPrintOptionDetails_Vtbl { @@ -641,16 +465,7 @@ pub struct IPrintOptionDetails_Vtbl { pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub TrySetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintOrientationOptionDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintOrientationOptionDetails { - type Vtable = IPrintOrientationOptionDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintOrientationOptionDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x46c38879_66e0_4da0_87b4_d25457824eb7); -} +::windows_core::imp::com_interface!(IPrintOrientationOptionDetails, IPrintOrientationOptionDetails_Vtbl, 0x46c38879_66e0_4da0_87b4_d25457824eb7); #[repr(C)] #[doc(hidden)] pub struct IPrintOrientationOptionDetails_Vtbl { @@ -660,16 +475,7 @@ pub struct IPrintOrientationOptionDetails_Vtbl { pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintPageRangeOptionDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintPageRangeOptionDetails { - type Vtable = IPrintPageRangeOptionDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintPageRangeOptionDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5a19e4b7_2be8_4aa7_9ea5_defbe8713b4e); -} +::windows_core::imp::com_interface!(IPrintPageRangeOptionDetails, IPrintPageRangeOptionDetails_Vtbl, 0x5a19e4b7_2be8_4aa7_9ea5_defbe8713b4e); #[repr(C)] #[doc(hidden)] pub struct IPrintPageRangeOptionDetails_Vtbl { @@ -679,16 +485,7 @@ pub struct IPrintPageRangeOptionDetails_Vtbl { pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintQualityOptionDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintQualityOptionDetails { - type Vtable = IPrintQualityOptionDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintQualityOptionDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2dd06ba1_ce1a_44e6_84f9_3a92ea1e3044); -} +::windows_core::imp::com_interface!(IPrintQualityOptionDetails, IPrintQualityOptionDetails_Vtbl, 0x2dd06ba1_ce1a_44e6_84f9_3a92ea1e3044); #[repr(C)] #[doc(hidden)] pub struct IPrintQualityOptionDetails_Vtbl { @@ -698,16 +495,7 @@ pub struct IPrintQualityOptionDetails_Vtbl { pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintStapleOptionDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintStapleOptionDetails { - type Vtable = IPrintStapleOptionDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintStapleOptionDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd43175bd_9c0b_44e0_84f6_ceebce653800); -} +::windows_core::imp::com_interface!(IPrintStapleOptionDetails, IPrintStapleOptionDetails_Vtbl, 0xd43175bd_9c0b_44e0_84f6_ceebce653800); #[repr(C)] #[doc(hidden)] pub struct IPrintStapleOptionDetails_Vtbl { @@ -717,32 +505,14 @@ pub struct IPrintStapleOptionDetails_Vtbl { pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintTaskOptionChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintTaskOptionChangedEventArgs { - type Vtable = IPrintTaskOptionChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintTaskOptionChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x65197d05_a5ee_4307_9407_9acad147679c); -} +::windows_core::imp::com_interface!(IPrintTaskOptionChangedEventArgs, IPrintTaskOptionChangedEventArgs_Vtbl, 0x65197d05_a5ee_4307_9407_9acad147679c); #[repr(C)] #[doc(hidden)] pub struct IPrintTaskOptionChangedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub OptionId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintTaskOptionDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintTaskOptionDetails { - type Vtable = IPrintTaskOptionDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintTaskOptionDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf5720af1_a89e_42a6_81af_f8e010b38a68); -} +::windows_core::imp::com_interface!(IPrintTaskOptionDetails, IPrintTaskOptionDetails_Vtbl, 0xf5720af1_a89e_42a6_81af_f8e010b38a68); #[repr(C)] #[doc(hidden)] pub struct IPrintTaskOptionDetails_Vtbl { @@ -758,41 +528,23 @@ pub struct IPrintTaskOptionDetails_Vtbl { pub BeginValidation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventhandler: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveBeginValidation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventcookie: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintTaskOptionDetails2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintTaskOptionDetails2 { - type Vtable = IPrintTaskOptionDetails2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintTaskOptionDetails2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x53730a09_f968_4692_a177_c074597186db); -} +::windows_core::imp::com_interface!(IPrintTaskOptionDetails2, IPrintTaskOptionDetails2_Vtbl, 0x53730a09_f968_4692_a177_c074597186db); #[repr(C)] #[doc(hidden)] pub struct IPrintTaskOptionDetails2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateToggleOption: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, optionid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, displayname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintTaskOptionDetailsStatic(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintTaskOptionDetailsStatic { - type Vtable = IPrintTaskOptionDetailsStatic_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintTaskOptionDetailsStatic { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x135da193_0961_4b6e_8766_f13b7fbccd58); -} +::windows_core::imp::com_interface!(IPrintTaskOptionDetailsStatic, IPrintTaskOptionDetailsStatic_Vtbl, 0x135da193_0961_4b6e_8766_f13b7fbccd58); #[repr(C)] #[doc(hidden)] pub struct IPrintTaskOptionDetailsStatic_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetFromPrintTaskOptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, printtaskoptions: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintTextOptionDetails(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPrintTextOptionDetails, IPrintTextOptionDetails_Vtbl, 0xad75e563_5ce4_46bc_9918_ab9fad144c5b); +::windows_core::imp::interface_hierarchy!(IPrintTextOptionDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IPrintTextOptionDetails, IPrintOptionDetails); impl IPrintTextOptionDetails { pub fn MaxCharacters(&self) -> ::windows_core::Result { let this = self; @@ -802,43 +554,43 @@ impl IPrintTextOptionDetails { } } pub fn OptionId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OptionId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn OptionType(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OptionType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetErrorText(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetErrorText)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ErrorText(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ErrorText)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetState(&self, value: PrintOptionStates) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetState)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn State(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).State)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Value(&self) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Value)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -848,24 +600,16 @@ impl IPrintTextOptionDetails { where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(IPrintTextOptionDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IPrintTextOptionDetails {} impl ::windows_core::RuntimeType for IPrintTextOptionDetails { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IPrintTextOptionDetails { - type Vtable = IPrintTextOptionDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintTextOptionDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xad75e563_5ce4_46bc_9918_ab9fad144c5b); -} #[repr(C)] #[doc(hidden)] pub struct IPrintTextOptionDetails_Vtbl { @@ -875,24 +619,26 @@ pub struct IPrintTextOptionDetails_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintBindingOptionDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintBindingOptionDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(PrintBindingOptionDetails, IPrintItemListOptionDetails, IPrintOptionDetails); impl PrintBindingOptionDetails { pub fn SetWarningText(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetWarningText)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn WarningText(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).WarningText)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDescription(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDescription)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn Description(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Description)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -901,7 +647,7 @@ impl PrintBindingOptionDetails { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Items(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Items)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -966,39 +712,36 @@ impl ::windows_core::RuntimeType for PrintBindingOptionDetails { } unsafe impl ::windows_core::Interface for PrintBindingOptionDetails { type Vtable = IPrintOptionDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintBindingOptionDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintBindingOptionDetails { const NAME: &'static str = "Windows.Graphics.Printing.OptionDetails.PrintBindingOptionDetails"; } -::windows_core::imp::interface_hierarchy!(PrintBindingOptionDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for PrintBindingOptionDetails {} -impl ::windows_core::CanTryInto for PrintBindingOptionDetails {} unsafe impl ::core::marker::Send for PrintBindingOptionDetails {} unsafe impl ::core::marker::Sync for PrintBindingOptionDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintBorderingOptionDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintBorderingOptionDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(PrintBorderingOptionDetails, IPrintItemListOptionDetails, IPrintOptionDetails); impl PrintBorderingOptionDetails { pub fn SetWarningText(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetWarningText)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn WarningText(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).WarningText)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDescription(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDescription)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn Description(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Description)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1007,7 +750,7 @@ impl PrintBorderingOptionDetails { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Items(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Items)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1072,39 +815,36 @@ impl ::windows_core::RuntimeType for PrintBorderingOptionDetails { } unsafe impl ::windows_core::Interface for PrintBorderingOptionDetails { type Vtable = IPrintOptionDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintBorderingOptionDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintBorderingOptionDetails { const NAME: &'static str = "Windows.Graphics.Printing.OptionDetails.PrintBorderingOptionDetails"; } -::windows_core::imp::interface_hierarchy!(PrintBorderingOptionDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for PrintBorderingOptionDetails {} -impl ::windows_core::CanTryInto for PrintBorderingOptionDetails {} unsafe impl ::core::marker::Send for PrintBorderingOptionDetails {} unsafe impl ::core::marker::Sync for PrintBorderingOptionDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintCollationOptionDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintCollationOptionDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(PrintCollationOptionDetails, IPrintItemListOptionDetails, IPrintOptionDetails); impl PrintCollationOptionDetails { pub fn SetWarningText(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetWarningText)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn WarningText(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).WarningText)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDescription(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDescription)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn Description(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Description)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1113,7 +853,7 @@ impl PrintCollationOptionDetails { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Items(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Items)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1178,39 +918,36 @@ impl ::windows_core::RuntimeType for PrintCollationOptionDetails { } unsafe impl ::windows_core::Interface for PrintCollationOptionDetails { type Vtable = IPrintOptionDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintCollationOptionDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintCollationOptionDetails { const NAME: &'static str = "Windows.Graphics.Printing.OptionDetails.PrintCollationOptionDetails"; } -::windows_core::imp::interface_hierarchy!(PrintCollationOptionDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for PrintCollationOptionDetails {} -impl ::windows_core::CanTryInto for PrintCollationOptionDetails {} unsafe impl ::core::marker::Send for PrintCollationOptionDetails {} unsafe impl ::core::marker::Sync for PrintCollationOptionDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintColorModeOptionDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintColorModeOptionDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(PrintColorModeOptionDetails, IPrintItemListOptionDetails, IPrintOptionDetails); impl PrintColorModeOptionDetails { pub fn SetWarningText(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetWarningText)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn WarningText(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).WarningText)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDescription(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDescription)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn Description(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Description)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1219,7 +956,7 @@ impl PrintColorModeOptionDetails { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Items(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Items)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1284,53 +1021,50 @@ impl ::windows_core::RuntimeType for PrintColorModeOptionDetails { } unsafe impl ::windows_core::Interface for PrintColorModeOptionDetails { type Vtable = IPrintOptionDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintColorModeOptionDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintColorModeOptionDetails { const NAME: &'static str = "Windows.Graphics.Printing.OptionDetails.PrintColorModeOptionDetails"; } -::windows_core::imp::interface_hierarchy!(PrintColorModeOptionDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for PrintColorModeOptionDetails {} -impl ::windows_core::CanTryInto for PrintColorModeOptionDetails {} unsafe impl ::core::marker::Send for PrintColorModeOptionDetails {} unsafe impl ::core::marker::Sync for PrintColorModeOptionDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintCopiesOptionDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintCopiesOptionDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(PrintCopiesOptionDetails, IPrintNumberOptionDetails, IPrintOptionDetails); impl PrintCopiesOptionDetails { pub fn SetWarningText(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetWarningText)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn WarningText(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).WarningText)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDescription(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDescription)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn Description(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Description)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn MinValue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MinValue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn MaxValue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MaxValue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1395,21 +1129,17 @@ impl ::windows_core::RuntimeType for PrintCopiesOptionDetails { } unsafe impl ::windows_core::Interface for PrintCopiesOptionDetails { type Vtable = IPrintOptionDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintCopiesOptionDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintCopiesOptionDetails { const NAME: &'static str = "Windows.Graphics.Printing.OptionDetails.PrintCopiesOptionDetails"; } -::windows_core::imp::interface_hierarchy!(PrintCopiesOptionDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for PrintCopiesOptionDetails {} -impl ::windows_core::CanTryInto for PrintCopiesOptionDetails {} unsafe impl ::core::marker::Send for PrintCopiesOptionDetails {} unsafe impl ::core::marker::Sync for PrintCopiesOptionDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintCustomItemDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintCustomItemDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PrintCustomItemDetails { pub fn ItemId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1435,61 +1165,60 @@ impl ::windows_core::RuntimeType for PrintCustomItemDetails { } unsafe impl ::windows_core::Interface for PrintCustomItemDetails { type Vtable = IPrintCustomItemDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintCustomItemDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintCustomItemDetails { const NAME: &'static str = "Windows.Graphics.Printing.OptionDetails.PrintCustomItemDetails"; } -::windows_core::imp::interface_hierarchy!(PrintCustomItemDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PrintCustomItemDetails {} unsafe impl ::core::marker::Sync for PrintCustomItemDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintCustomItemListOptionDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintCustomItemListOptionDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(PrintCustomItemListOptionDetails, IPrintCustomOptionDetails, IPrintItemListOptionDetails, IPrintOptionDetails); impl PrintCustomItemListOptionDetails { pub fn AddItem(&self, itemid: &::windows_core::HSTRING, displayname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + 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)).ok() } } #[doc = "Required features: `\"Storage_Streams\"`"] #[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::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::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.try_into_param()?.abi()).ok() } + 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() } } pub fn SetWarningText(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetWarningText)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn WarningText(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).WarningText)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDescription(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDescription)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn Description(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Description)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDisplayName(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDisplayName)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn DisplayName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DisplayName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1498,7 +1227,7 @@ impl PrintCustomItemListOptionDetails { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Items(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Items)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1563,62 +1292,58 @@ impl ::windows_core::RuntimeType for PrintCustomItemListOptionDetails { } unsafe impl ::windows_core::Interface for PrintCustomItemListOptionDetails { type Vtable = IPrintOptionDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintCustomItemListOptionDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintCustomItemListOptionDetails { const NAME: &'static str = "Windows.Graphics.Printing.OptionDetails.PrintCustomItemListOptionDetails"; } -::windows_core::imp::interface_hierarchy!(PrintCustomItemListOptionDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for PrintCustomItemListOptionDetails {} -impl ::windows_core::CanTryInto for PrintCustomItemListOptionDetails {} -impl ::windows_core::CanTryInto for PrintCustomItemListOptionDetails {} unsafe impl ::core::marker::Send for PrintCustomItemListOptionDetails {} unsafe impl ::core::marker::Sync for PrintCustomItemListOptionDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintCustomTextOptionDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintCustomTextOptionDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(PrintCustomTextOptionDetails, IPrintCustomOptionDetails, IPrintOptionDetails); impl PrintCustomTextOptionDetails { pub fn SetDisplayName(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDisplayName)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn DisplayName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DisplayName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetMaxCharacters(&self, value: u32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMaxCharacters)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn MaxCharacters(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MaxCharacters)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetWarningText(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetWarningText)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn WarningText(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).WarningText)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDescription(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDescription)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn Description(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Description)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1683,50 +1408,47 @@ impl ::windows_core::RuntimeType for PrintCustomTextOptionDetails { } unsafe impl ::windows_core::Interface for PrintCustomTextOptionDetails { type Vtable = IPrintOptionDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintCustomTextOptionDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintCustomTextOptionDetails { const NAME: &'static str = "Windows.Graphics.Printing.OptionDetails.PrintCustomTextOptionDetails"; } -::windows_core::imp::interface_hierarchy!(PrintCustomTextOptionDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for PrintCustomTextOptionDetails {} -impl ::windows_core::CanTryInto for PrintCustomTextOptionDetails {} unsafe impl ::core::marker::Send for PrintCustomTextOptionDetails {} unsafe impl ::core::marker::Sync for PrintCustomTextOptionDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintCustomToggleOptionDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintCustomToggleOptionDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(PrintCustomToggleOptionDetails, IPrintCustomOptionDetails, IPrintOptionDetails); impl PrintCustomToggleOptionDetails { pub fn SetDisplayName(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDisplayName)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn DisplayName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DisplayName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetWarningText(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetWarningText)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn WarningText(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).WarningText)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDescription(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDescription)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn Description(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Description)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1791,39 +1513,36 @@ impl ::windows_core::RuntimeType for PrintCustomToggleOptionDetails { } unsafe impl ::windows_core::Interface for PrintCustomToggleOptionDetails { type Vtable = IPrintOptionDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintCustomToggleOptionDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintCustomToggleOptionDetails { const NAME: &'static str = "Windows.Graphics.Printing.OptionDetails.PrintCustomToggleOptionDetails"; } -::windows_core::imp::interface_hierarchy!(PrintCustomToggleOptionDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for PrintCustomToggleOptionDetails {} -impl ::windows_core::CanTryInto for PrintCustomToggleOptionDetails {} unsafe impl ::core::marker::Send for PrintCustomToggleOptionDetails {} unsafe impl ::core::marker::Sync for PrintCustomToggleOptionDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintDuplexOptionDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintDuplexOptionDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(PrintDuplexOptionDetails, IPrintItemListOptionDetails, IPrintOptionDetails); impl PrintDuplexOptionDetails { pub fn SetWarningText(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetWarningText)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn WarningText(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).WarningText)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDescription(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDescription)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn Description(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Description)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1832,7 +1551,7 @@ impl PrintDuplexOptionDetails { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Items(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Items)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1897,39 +1616,36 @@ impl ::windows_core::RuntimeType for PrintDuplexOptionDetails { } unsafe impl ::windows_core::Interface for PrintDuplexOptionDetails { type Vtable = IPrintOptionDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintDuplexOptionDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintDuplexOptionDetails { const NAME: &'static str = "Windows.Graphics.Printing.OptionDetails.PrintDuplexOptionDetails"; } -::windows_core::imp::interface_hierarchy!(PrintDuplexOptionDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for PrintDuplexOptionDetails {} -impl ::windows_core::CanTryInto for PrintDuplexOptionDetails {} unsafe impl ::core::marker::Send for PrintDuplexOptionDetails {} unsafe impl ::core::marker::Sync for PrintDuplexOptionDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintHolePunchOptionDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintHolePunchOptionDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(PrintHolePunchOptionDetails, IPrintItemListOptionDetails, IPrintOptionDetails); impl PrintHolePunchOptionDetails { pub fn SetWarningText(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetWarningText)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn WarningText(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).WarningText)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDescription(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDescription)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn Description(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Description)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1938,7 +1654,7 @@ impl PrintHolePunchOptionDetails { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Items(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Items)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2003,48 +1719,45 @@ impl ::windows_core::RuntimeType for PrintHolePunchOptionDetails { } unsafe impl ::windows_core::Interface for PrintHolePunchOptionDetails { type Vtable = IPrintOptionDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintHolePunchOptionDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintHolePunchOptionDetails { const NAME: &'static str = "Windows.Graphics.Printing.OptionDetails.PrintHolePunchOptionDetails"; } -::windows_core::imp::interface_hierarchy!(PrintHolePunchOptionDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for PrintHolePunchOptionDetails {} -impl ::windows_core::CanTryInto for PrintHolePunchOptionDetails {} unsafe impl ::core::marker::Send for PrintHolePunchOptionDetails {} unsafe impl ::core::marker::Sync for PrintHolePunchOptionDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintMediaSizeOptionDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintMediaSizeOptionDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(PrintMediaSizeOptionDetails, IPrintItemListOptionDetails, IPrintOptionDetails); impl PrintMediaSizeOptionDetails { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Items(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Items)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetWarningText(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetWarningText)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn WarningText(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).WarningText)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDescription(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDescription)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn Description(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Description)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2109,48 +1822,45 @@ impl ::windows_core::RuntimeType for PrintMediaSizeOptionDetails { } unsafe impl ::windows_core::Interface for PrintMediaSizeOptionDetails { type Vtable = IPrintOptionDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintMediaSizeOptionDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintMediaSizeOptionDetails { const NAME: &'static str = "Windows.Graphics.Printing.OptionDetails.PrintMediaSizeOptionDetails"; } -::windows_core::imp::interface_hierarchy!(PrintMediaSizeOptionDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for PrintMediaSizeOptionDetails {} -impl ::windows_core::CanTryInto for PrintMediaSizeOptionDetails {} unsafe impl ::core::marker::Send for PrintMediaSizeOptionDetails {} unsafe impl ::core::marker::Sync for PrintMediaSizeOptionDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintMediaTypeOptionDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintMediaTypeOptionDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(PrintMediaTypeOptionDetails, IPrintItemListOptionDetails, IPrintOptionDetails); impl PrintMediaTypeOptionDetails { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Items(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Items)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetWarningText(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetWarningText)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn WarningText(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).WarningText)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDescription(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDescription)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn Description(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Description)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2215,26 +1925,23 @@ impl ::windows_core::RuntimeType for PrintMediaTypeOptionDetails { } unsafe impl ::windows_core::Interface for PrintMediaTypeOptionDetails { type Vtable = IPrintOptionDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintMediaTypeOptionDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintMediaTypeOptionDetails { const NAME: &'static str = "Windows.Graphics.Printing.OptionDetails.PrintMediaTypeOptionDetails"; } -::windows_core::imp::interface_hierarchy!(PrintMediaTypeOptionDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for PrintMediaTypeOptionDetails {} -impl ::windows_core::CanTryInto for PrintMediaTypeOptionDetails {} unsafe impl ::core::marker::Send for PrintMediaTypeOptionDetails {} unsafe impl ::core::marker::Sync for PrintMediaTypeOptionDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintOrientationOptionDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintOrientationOptionDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(PrintOrientationOptionDetails, IPrintItemListOptionDetails, IPrintOptionDetails); impl PrintOrientationOptionDetails { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Items(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Items)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2294,22 +2001,22 @@ impl PrintOrientationOptionDetails { } } pub fn SetWarningText(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetWarningText)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn WarningText(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).WarningText)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDescription(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDescription)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn Description(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Description)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2321,21 +2028,18 @@ impl ::windows_core::RuntimeType for PrintOrientationOptionDetails { } unsafe impl ::windows_core::Interface for PrintOrientationOptionDetails { type Vtable = IPrintOptionDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintOrientationOptionDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintOrientationOptionDetails { const NAME: &'static str = "Windows.Graphics.Printing.OptionDetails.PrintOrientationOptionDetails"; } -::windows_core::imp::interface_hierarchy!(PrintOrientationOptionDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for PrintOrientationOptionDetails {} -impl ::windows_core::CanTryInto for PrintOrientationOptionDetails {} unsafe impl ::core::marker::Send for PrintOrientationOptionDetails {} unsafe impl ::core::marker::Sync for PrintOrientationOptionDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintPageRangeOptionDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintPageRangeOptionDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(PrintPageRangeOptionDetails, IPrintOptionDetails); impl PrintPageRangeOptionDetails { pub fn OptionId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -2391,22 +2095,22 @@ impl PrintPageRangeOptionDetails { } } pub fn SetWarningText(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetWarningText)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn WarningText(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).WarningText)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDescription(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDescription)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn Description(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Description)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2418,25 +2122,23 @@ impl ::windows_core::RuntimeType for PrintPageRangeOptionDetails { } unsafe impl ::windows_core::Interface for PrintPageRangeOptionDetails { type Vtable = IPrintOptionDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintPageRangeOptionDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintPageRangeOptionDetails { const NAME: &'static str = "Windows.Graphics.Printing.OptionDetails.PrintPageRangeOptionDetails"; } -::windows_core::imp::interface_hierarchy!(PrintPageRangeOptionDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for PrintPageRangeOptionDetails {} unsafe impl ::core::marker::Send for PrintPageRangeOptionDetails {} unsafe impl ::core::marker::Sync for PrintPageRangeOptionDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintQualityOptionDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintQualityOptionDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(PrintQualityOptionDetails, IPrintItemListOptionDetails, IPrintOptionDetails); impl PrintQualityOptionDetails { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Items(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Items)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2496,22 +2198,22 @@ impl PrintQualityOptionDetails { } } pub fn SetWarningText(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetWarningText)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn WarningText(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).WarningText)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDescription(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDescription)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn Description(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Description)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2523,26 +2225,23 @@ impl ::windows_core::RuntimeType for PrintQualityOptionDetails { } unsafe impl ::windows_core::Interface for PrintQualityOptionDetails { type Vtable = IPrintOptionDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintQualityOptionDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintQualityOptionDetails { const NAME: &'static str = "Windows.Graphics.Printing.OptionDetails.PrintQualityOptionDetails"; } -::windows_core::imp::interface_hierarchy!(PrintQualityOptionDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for PrintQualityOptionDetails {} -impl ::windows_core::CanTryInto for PrintQualityOptionDetails {} unsafe impl ::core::marker::Send for PrintQualityOptionDetails {} unsafe impl ::core::marker::Sync for PrintQualityOptionDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintStapleOptionDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintStapleOptionDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(PrintStapleOptionDetails, IPrintItemListOptionDetails, IPrintOptionDetails); impl PrintStapleOptionDetails { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Items(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Items)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2602,22 +2301,22 @@ impl PrintStapleOptionDetails { } } pub fn SetWarningText(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetWarningText)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn WarningText(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).WarningText)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDescription(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDescription)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn Description(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Description)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2629,21 +2328,17 @@ impl ::windows_core::RuntimeType for PrintStapleOptionDetails { } unsafe impl ::windows_core::Interface for PrintStapleOptionDetails { type Vtable = IPrintOptionDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintStapleOptionDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintStapleOptionDetails { const NAME: &'static str = "Windows.Graphics.Printing.OptionDetails.PrintStapleOptionDetails"; } -::windows_core::imp::interface_hierarchy!(PrintStapleOptionDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for PrintStapleOptionDetails {} -impl ::windows_core::CanTryInto for PrintStapleOptionDetails {} unsafe impl ::core::marker::Send for PrintStapleOptionDetails {} unsafe impl ::core::marker::Sync for PrintStapleOptionDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintTaskOptionChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintTaskOptionChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PrintTaskOptionChangedEventArgs { pub fn OptionId(&self) -> ::windows_core::Result<::windows_core::IInspectable> { let this = self; @@ -2658,19 +2353,18 @@ impl ::windows_core::RuntimeType for PrintTaskOptionChangedEventArgs { } unsafe impl ::windows_core::Interface for PrintTaskOptionChangedEventArgs { type Vtable = IPrintTaskOptionChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintTaskOptionChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintTaskOptionChangedEventArgs { const NAME: &'static str = "Windows.Graphics.Printing.OptionDetails.PrintTaskOptionChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(PrintTaskOptionChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PrintTaskOptionChangedEventArgs {} unsafe impl ::core::marker::Sync for PrintTaskOptionChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintTaskOptionDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintTaskOptionDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(PrintTaskOptionDetails, super::IPrintTaskOptionsCore, super::IPrintTaskOptionsCoreUIConfiguration); impl PrintTaskOptionDetails { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -2724,7 +2418,7 @@ impl PrintTaskOptionDetails { unsafe { (::windows_core::Interface::vtable(this).RemoveBeginValidation)(::windows_core::Interface::as_raw(this), eventcookie).ok() } } pub fn CreateToggleOption(&self, optionid: &::windows_core::HSTRING, displayname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateToggleOption)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(optionid), ::core::mem::transmute_copy(displayname), &mut result__).from_abi(result__) @@ -2740,7 +2434,7 @@ impl PrintTaskOptionDetails { }) } pub fn GetPageDescription(&self, jobpagenumber: u32) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetPageDescription)(::windows_core::Interface::as_raw(this), jobpagenumber, &mut result__).from_abi(result__) @@ -2749,7 +2443,7 @@ impl PrintTaskOptionDetails { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn DisplayedOptions(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DisplayedOptions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2766,16 +2460,11 @@ impl ::windows_core::RuntimeType for PrintTaskOptionDetails { } unsafe impl ::windows_core::Interface for PrintTaskOptionDetails { type Vtable = IPrintTaskOptionDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintTaskOptionDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintTaskOptionDetails { const NAME: &'static str = "Windows.Graphics.Printing.OptionDetails.PrintTaskOptionDetails"; } -::windows_core::imp::interface_hierarchy!(PrintTaskOptionDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for PrintTaskOptionDetails {} -impl ::windows_core::CanTryInto for PrintTaskOptionDetails {} unsafe impl ::core::marker::Send for PrintTaskOptionDetails {} unsafe impl ::core::marker::Sync for PrintTaskOptionDetails {} #[repr(transparent)] 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 a44a462d6c..fd9af87138 100644 --- a/crates/libs/windows/src/Windows/Graphics/Printing/PrintSupport/mod.rs +++ b/crates/libs/windows/src/Windows/Graphics/Printing/PrintSupport/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintSupportExtensionSession(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintSupportExtensionSession { - type Vtable = IPrintSupportExtensionSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintSupportExtensionSession { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeea45f1a_f4c6_54b3_a0b8_a559839aa4c3); -} +::windows_core::imp::com_interface!(IPrintSupportExtensionSession, IPrintSupportExtensionSession_Vtbl, 0xeea45f1a_f4c6_54b3_a0b8_a559839aa4c3); #[repr(C)] #[doc(hidden)] pub struct IPrintSupportExtensionSession_Vtbl { @@ -22,16 +13,7 @@ pub struct IPrintSupportExtensionSession_Vtbl { pub RemovePrintDeviceCapabilitiesChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub Start: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintSupportExtensionSession2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintSupportExtensionSession2 { - type Vtable = IPrintSupportExtensionSession2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintSupportExtensionSession2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x10fa8c11_6de8_5765_8fcf_e716e0f27ed1); -} +::windows_core::imp::com_interface!(IPrintSupportExtensionSession2, IPrintSupportExtensionSession2_Vtbl, 0x10fa8c11_6de8_5765_8fcf_e716e0f27ed1); #[repr(C)] #[doc(hidden)] pub struct IPrintSupportExtensionSession2_Vtbl { @@ -39,32 +21,14 @@ pub struct IPrintSupportExtensionSession2_Vtbl { pub PrinterSelected: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemovePrinterSelected: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintSupportExtensionTriggerDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintSupportExtensionTriggerDetails { - type Vtable = IPrintSupportExtensionTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintSupportExtensionTriggerDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xae083711_9b09_55d1_a0ae_2a14c5f83d6a); -} +::windows_core::imp::com_interface!(IPrintSupportExtensionTriggerDetails, IPrintSupportExtensionTriggerDetails_Vtbl, 0xae083711_9b09_55d1_a0ae_2a14c5f83d6a); #[repr(C)] #[doc(hidden)] pub struct IPrintSupportExtensionTriggerDetails_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Session: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintSupportPrintDeviceCapabilitiesChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintSupportPrintDeviceCapabilitiesChangedEventArgs { - type Vtable = IPrintSupportPrintDeviceCapabilitiesChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintSupportPrintDeviceCapabilitiesChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x15969bf0_9028_5722_8a37_7d7c34b41dd6); -} +::windows_core::imp::com_interface!(IPrintSupportPrintDeviceCapabilitiesChangedEventArgs, IPrintSupportPrintDeviceCapabilitiesChangedEventArgs_Vtbl, 0x15969bf0_9028_5722_8a37_7d7c34b41dd6); #[repr(C)] #[doc(hidden)] pub struct IPrintSupportPrintDeviceCapabilitiesChangedEventArgs_Vtbl { @@ -79,16 +43,7 @@ pub struct IPrintSupportPrintDeviceCapabilitiesChangedEventArgs_Vtbl { UpdatePrintDeviceCapabilities: usize, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintSupportPrintDeviceCapabilitiesChangedEventArgs2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintSupportPrintDeviceCapabilitiesChangedEventArgs2 { - type Vtable = IPrintSupportPrintDeviceCapabilitiesChangedEventArgs2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintSupportPrintDeviceCapabilitiesChangedEventArgs2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x469df9e7_fd07_5eeb_a07d_9fcc67f089ba); -} +::windows_core::imp::com_interface!(IPrintSupportPrintDeviceCapabilitiesChangedEventArgs2, IPrintSupportPrintDeviceCapabilitiesChangedEventArgs2_Vtbl, 0x469df9e7_fd07_5eeb_a07d_9fcc67f089ba); #[repr(C)] #[doc(hidden)] pub struct IPrintSupportPrintDeviceCapabilitiesChangedEventArgs2_Vtbl { @@ -108,31 +63,13 @@ pub struct IPrintSupportPrintDeviceCapabilitiesChangedEventArgs2_Vtbl { UpdatePrintDeviceResources: usize, pub SetPrintDeviceCapabilitiesUpdatePolicy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, updatepolicy: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintSupportPrintDeviceCapabilitiesUpdatePolicy(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintSupportPrintDeviceCapabilitiesUpdatePolicy { - type Vtable = IPrintSupportPrintDeviceCapabilitiesUpdatePolicy_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintSupportPrintDeviceCapabilitiesUpdatePolicy { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5f5fc025_8c35_5529_8038_8cdc3634bbcd); -} +::windows_core::imp::com_interface!(IPrintSupportPrintDeviceCapabilitiesUpdatePolicy, IPrintSupportPrintDeviceCapabilitiesUpdatePolicy_Vtbl, 0x5f5fc025_8c35_5529_8038_8cdc3634bbcd); #[repr(C)] #[doc(hidden)] pub struct IPrintSupportPrintDeviceCapabilitiesUpdatePolicy_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintSupportPrintDeviceCapabilitiesUpdatePolicyStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintSupportPrintDeviceCapabilitiesUpdatePolicyStatics { - type Vtable = IPrintSupportPrintDeviceCapabilitiesUpdatePolicyStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintSupportPrintDeviceCapabilitiesUpdatePolicyStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3d9e1a70_7c39_551f_aa1f_f8ca35b3119e); -} +::windows_core::imp::com_interface!(IPrintSupportPrintDeviceCapabilitiesUpdatePolicyStatics, IPrintSupportPrintDeviceCapabilitiesUpdatePolicyStatics_Vtbl, 0x3d9e1a70_7c39_551f_aa1f_f8ca35b3119e); #[repr(C)] #[doc(hidden)] pub struct IPrintSupportPrintDeviceCapabilitiesUpdatePolicyStatics_Vtbl { @@ -140,16 +77,7 @@ pub struct IPrintSupportPrintDeviceCapabilitiesUpdatePolicyStatics_Vtbl { pub CreatePeriodicRefresh: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, updateperiod: super::super::super::Foundation::TimeSpan, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreatePrintJobRefresh: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, numberofjobs: u32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintSupportPrintTicketElement(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintSupportPrintTicketElement { - type Vtable = IPrintSupportPrintTicketElement_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintSupportPrintTicketElement { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4b2a4489_730d_5be7_80e6_8332941abf13); -} +::windows_core::imp::com_interface!(IPrintSupportPrintTicketElement, IPrintSupportPrintTicketElement_Vtbl, 0x4b2a4489_730d_5be7_80e6_8332941abf13); #[repr(C)] #[doc(hidden)] pub struct IPrintSupportPrintTicketElement_Vtbl { @@ -159,16 +87,7 @@ pub struct IPrintSupportPrintTicketElement_Vtbl { pub NamespaceUri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetNamespaceUri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintSupportPrintTicketValidationRequestedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintSupportPrintTicketValidationRequestedEventArgs { - type Vtable = IPrintSupportPrintTicketValidationRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintSupportPrintTicketValidationRequestedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x338e4e69_db55_55c7_8338_ef64680a8f90); -} +::windows_core::imp::com_interface!(IPrintSupportPrintTicketValidationRequestedEventArgs, IPrintSupportPrintTicketValidationRequestedEventArgs_Vtbl, 0x338e4e69_db55_55c7_8338_ef64680a8f90); #[repr(C)] #[doc(hidden)] pub struct IPrintSupportPrintTicketValidationRequestedEventArgs_Vtbl { @@ -180,16 +99,7 @@ pub struct IPrintSupportPrintTicketValidationRequestedEventArgs_Vtbl { pub SetPrintTicketValidationStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, status: WorkflowPrintTicketValidationStatus) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintSupportPrinterSelectedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintSupportPrinterSelectedEventArgs { - type Vtable = IPrintSupportPrinterSelectedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintSupportPrinterSelectedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7b1cb7d9_a8a4_5c09_adb2_66165f817977); -} +::windows_core::imp::com_interface!(IPrintSupportPrinterSelectedEventArgs, IPrintSupportPrinterSelectedEventArgs_Vtbl, 0x7b1cb7d9_a8a4_5c09_adb2_66165f817977); #[repr(C)] #[doc(hidden)] pub struct IPrintSupportPrinterSelectedEventArgs_Vtbl { @@ -221,16 +131,7 @@ pub struct IPrintSupportPrinterSelectedEventArgs_Vtbl { SetAdaptiveCard: usize, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintSupportSessionInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintSupportSessionInfo { - type Vtable = IPrintSupportSessionInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintSupportSessionInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x852149af_777d_53e9_9ee9_45d3f4b5be9c); -} +::windows_core::imp::com_interface!(IPrintSupportSessionInfo, IPrintSupportSessionInfo_Vtbl, 0x852149af_777d_53e9_9ee9_45d3f4b5be9c); #[repr(C)] #[doc(hidden)] pub struct IPrintSupportSessionInfo_Vtbl { @@ -244,16 +145,7 @@ pub struct IPrintSupportSessionInfo_Vtbl { #[cfg(not(feature = "Devices_Printers"))] Printer: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintSupportSettingsActivatedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintSupportSettingsActivatedEventArgs { - type Vtable = IPrintSupportSettingsActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintSupportSettingsActivatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1e1b565e_a013_55ea_9b8c_eea39d9fb6c1); -} +::windows_core::imp::com_interface!(IPrintSupportSettingsActivatedEventArgs, IPrintSupportSettingsActivatedEventArgs_Vtbl, 0x1e1b565e_a013_55ea_9b8c_eea39d9fb6c1); #[repr(C)] #[doc(hidden)] pub struct IPrintSupportSettingsActivatedEventArgs_Vtbl { @@ -261,16 +153,7 @@ pub struct IPrintSupportSettingsActivatedEventArgs_Vtbl { pub Session: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintSupportSettingsUISession(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintSupportSettingsUISession { - type Vtable = IPrintSupportSettingsUISession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintSupportSettingsUISession { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc6da2251_83c3_55e4_a0f8_5de8b062adbf); -} +::windows_core::imp::com_interface!(IPrintSupportSettingsUISession, IPrintSupportSettingsUISession_Vtbl, 0xc6da2251_83c3_55e4_a0f8_5de8b062adbf); #[repr(C)] #[doc(hidden)] pub struct IPrintSupportSettingsUISession_Vtbl { @@ -290,6 +173,7 @@ pub struct IPrintSupportSettingsUISession_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintSupportExtensionSession(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintSupportExtensionSession, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PrintSupportExtensionSession { #[doc = "Required features: `\"Devices_Printers\"`"] #[cfg(feature = "Devices_Printers")] @@ -336,14 +220,14 @@ impl PrintSupportExtensionSession { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemovePrinterSelected(&self, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemovePrinterSelected)(::windows_core::Interface::as_raw(this), token).ok() } } } @@ -352,19 +236,17 @@ impl ::windows_core::RuntimeType for PrintSupportExtensionSession { } unsafe impl ::windows_core::Interface for PrintSupportExtensionSession { type Vtable = IPrintSupportExtensionSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintSupportExtensionSession { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintSupportExtensionSession { const NAME: &'static str = "Windows.Graphics.Printing.PrintSupport.PrintSupportExtensionSession"; } -::windows_core::imp::interface_hierarchy!(PrintSupportExtensionSession, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PrintSupportExtensionSession {} unsafe impl ::core::marker::Sync for PrintSupportExtensionSession {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintSupportExtensionTriggerDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintSupportExtensionTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PrintSupportExtensionTriggerDetails { pub fn Session(&self) -> ::windows_core::Result { let this = self; @@ -379,19 +261,17 @@ impl ::windows_core::RuntimeType for PrintSupportExtensionTriggerDetails { } unsafe impl ::windows_core::Interface for PrintSupportExtensionTriggerDetails { type Vtable = IPrintSupportExtensionTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintSupportExtensionTriggerDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintSupportExtensionTriggerDetails { const NAME: &'static str = "Windows.Graphics.Printing.PrintSupport.PrintSupportExtensionTriggerDetails"; } -::windows_core::imp::interface_hierarchy!(PrintSupportExtensionTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PrintSupportExtensionTriggerDetails {} unsafe impl ::core::marker::Sync for PrintSupportExtensionTriggerDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintSupportPrintDeviceCapabilitiesChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintSupportPrintDeviceCapabilitiesChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PrintSupportPrintDeviceCapabilitiesChangedEventArgs { #[doc = "Required features: `\"Data_Xml_Dom\"`"] #[cfg(feature = "Data_Xml_Dom")] @@ -422,13 +302,13 @@ impl PrintSupportPrintDeviceCapabilitiesChangedEventArgs { #[cfg(feature = "Foundation_Collections")] pub fn SetSupportedPdlPassthroughContentTypes(&self, supportedpdlcontenttypes: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetSupportedPdlPassthroughContentTypes)(::windows_core::Interface::as_raw(this), supportedpdlcontenttypes.try_into_param()?.abi()).ok() } + 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() } } pub fn ResourceLanguage(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ResourceLanguage)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -437,7 +317,7 @@ impl PrintSupportPrintDeviceCapabilitiesChangedEventArgs { #[doc = "Required features: `\"Data_Xml_Dom\"`"] #[cfg(feature = "Data_Xml_Dom")] pub fn GetCurrentPrintDeviceResources(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetCurrentPrintDeviceResources)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -449,14 +329,14 @@ impl PrintSupportPrintDeviceCapabilitiesChangedEventArgs { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn SetPrintDeviceCapabilitiesUpdatePolicy(&self, updatepolicy: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } } @@ -465,19 +345,17 @@ impl ::windows_core::RuntimeType for PrintSupportPrintDeviceCapabilitiesChangedE } unsafe impl ::windows_core::Interface for PrintSupportPrintDeviceCapabilitiesChangedEventArgs { type Vtable = IPrintSupportPrintDeviceCapabilitiesChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintSupportPrintDeviceCapabilitiesChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintSupportPrintDeviceCapabilitiesChangedEventArgs { const NAME: &'static str = "Windows.Graphics.Printing.PrintSupport.PrintSupportPrintDeviceCapabilitiesChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(PrintSupportPrintDeviceCapabilitiesChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PrintSupportPrintDeviceCapabilitiesChangedEventArgs {} unsafe impl ::core::marker::Sync for PrintSupportPrintDeviceCapabilitiesChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintSupportPrintDeviceCapabilitiesUpdatePolicy(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintSupportPrintDeviceCapabilitiesUpdatePolicy, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PrintSupportPrintDeviceCapabilitiesUpdatePolicy { pub fn CreatePeriodicRefresh(updateperiod: super::super::super::Foundation::TimeSpan) -> ::windows_core::Result { Self::IPrintSupportPrintDeviceCapabilitiesUpdatePolicyStatics(|this| unsafe { @@ -502,19 +380,17 @@ impl ::windows_core::RuntimeType for PrintSupportPrintDeviceCapabilitiesUpdatePo } unsafe impl ::windows_core::Interface for PrintSupportPrintDeviceCapabilitiesUpdatePolicy { type Vtable = IPrintSupportPrintDeviceCapabilitiesUpdatePolicy_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintSupportPrintDeviceCapabilitiesUpdatePolicy { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintSupportPrintDeviceCapabilitiesUpdatePolicy { const NAME: &'static str = "Windows.Graphics.Printing.PrintSupport.PrintSupportPrintDeviceCapabilitiesUpdatePolicy"; } -::windows_core::imp::interface_hierarchy!(PrintSupportPrintDeviceCapabilitiesUpdatePolicy, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PrintSupportPrintDeviceCapabilitiesUpdatePolicy {} unsafe impl ::core::marker::Sync for PrintSupportPrintDeviceCapabilitiesUpdatePolicy {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintSupportPrintTicketElement(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintSupportPrintTicketElement, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PrintSupportPrintTicketElement { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -551,19 +427,17 @@ impl ::windows_core::RuntimeType for PrintSupportPrintTicketElement { } unsafe impl ::windows_core::Interface for PrintSupportPrintTicketElement { type Vtable = IPrintSupportPrintTicketElement_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintSupportPrintTicketElement { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintSupportPrintTicketElement { const NAME: &'static str = "Windows.Graphics.Printing.PrintSupport.PrintSupportPrintTicketElement"; } -::windows_core::imp::interface_hierarchy!(PrintSupportPrintTicketElement, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PrintSupportPrintTicketElement {} unsafe impl ::core::marker::Sync for PrintSupportPrintTicketElement {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintSupportPrintTicketValidationRequestedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintSupportPrintTicketValidationRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PrintSupportPrintTicketValidationRequestedEventArgs { #[doc = "Required features: `\"Graphics_Printing_PrintTicket\"`"] #[cfg(feature = "Graphics_Printing_PrintTicket")] @@ -591,19 +465,17 @@ impl ::windows_core::RuntimeType for PrintSupportPrintTicketValidationRequestedE } unsafe impl ::windows_core::Interface for PrintSupportPrintTicketValidationRequestedEventArgs { type Vtable = IPrintSupportPrintTicketValidationRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintSupportPrintTicketValidationRequestedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintSupportPrintTicketValidationRequestedEventArgs { const NAME: &'static str = "Windows.Graphics.Printing.PrintSupport.PrintSupportPrintTicketValidationRequestedEventArgs"; } -::windows_core::imp::interface_hierarchy!(PrintSupportPrintTicketValidationRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PrintSupportPrintTicketValidationRequestedEventArgs {} unsafe impl ::core::marker::Sync for PrintSupportPrintTicketValidationRequestedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintSupportPrinterSelectedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintSupportPrinterSelectedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PrintSupportPrinterSelectedEventArgs { #[doc = "Required features: `\"ApplicationModel\"`"] #[cfg(feature = "ApplicationModel")] @@ -636,19 +508,19 @@ impl PrintSupportPrinterSelectedEventArgs { #[cfg(feature = "Foundation_Collections")] pub fn SetAdditionalFeatures(&self, features: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetAdditionalFeatures)(::windows_core::Interface::as_raw(this), features.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetAdditionalFeatures)(::windows_core::Interface::as_raw(this), features.into_param().abi()).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn SetAdditionalParameters(&self, parameters: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetAdditionalParameters)(::windows_core::Interface::as_raw(this), parameters.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetAdditionalParameters)(::windows_core::Interface::as_raw(this), parameters.into_param().abi()).ok() } } pub fn AllowedAdditionalFeaturesAndParametersCount(&self) -> ::windows_core::Result { let this = self; @@ -661,10 +533,10 @@ impl PrintSupportPrinterSelectedEventArgs { #[cfg(feature = "UI_Shell")] pub fn SetAdaptiveCard(&self, adaptivecard: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetAdaptiveCard)(::windows_core::Interface::as_raw(this), adaptivecard.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetAdaptiveCard)(::windows_core::Interface::as_raw(this), adaptivecard.into_param().abi()).ok() } } pub fn GetDeferral(&self) -> ::windows_core::Result { let this = self; @@ -679,19 +551,17 @@ impl ::windows_core::RuntimeType for PrintSupportPrinterSelectedEventArgs { } unsafe impl ::windows_core::Interface for PrintSupportPrinterSelectedEventArgs { type Vtable = IPrintSupportPrinterSelectedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintSupportPrinterSelectedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintSupportPrinterSelectedEventArgs { const NAME: &'static str = "Windows.Graphics.Printing.PrintSupport.PrintSupportPrinterSelectedEventArgs"; } -::windows_core::imp::interface_hierarchy!(PrintSupportPrinterSelectedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PrintSupportPrinterSelectedEventArgs {} unsafe impl ::core::marker::Sync for PrintSupportPrinterSelectedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintSupportSessionInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintSupportSessionInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PrintSupportSessionInfo { #[doc = "Required features: `\"ApplicationModel\"`"] #[cfg(feature = "ApplicationModel")] @@ -717,24 +587,24 @@ impl ::windows_core::RuntimeType for PrintSupportSessionInfo { } unsafe impl ::windows_core::Interface for PrintSupportSessionInfo { type Vtable = IPrintSupportSessionInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintSupportSessionInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintSupportSessionInfo { const NAME: &'static str = "Windows.Graphics.Printing.PrintSupport.PrintSupportSessionInfo"; } -::windows_core::imp::interface_hierarchy!(PrintSupportSessionInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PrintSupportSessionInfo {} unsafe impl ::core::marker::Sync for PrintSupportSessionInfo {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintSupportSettingsActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintSupportSettingsActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::required_hierarchy!(PrintSupportSettingsActivatedEventArgs, super::super::super::ApplicationModel::Activation::IActivatedEventArgs, super::super::super::ApplicationModel::Activation::IActivatedEventArgsWithUser); impl PrintSupportSettingsActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -743,7 +613,7 @@ impl PrintSupportSettingsActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -752,7 +622,7 @@ impl PrintSupportSettingsActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -761,7 +631,7 @@ impl PrintSupportSettingsActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`, `\"System\"`"] #[cfg(all(feature = "ApplicationModel_Activation", feature = "System"))] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -787,23 +657,17 @@ impl ::windows_core::RuntimeType for PrintSupportSettingsActivatedEventArgs { } unsafe impl ::windows_core::Interface for PrintSupportSettingsActivatedEventArgs { type Vtable = IPrintSupportSettingsActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintSupportSettingsActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintSupportSettingsActivatedEventArgs { const NAME: &'static str = "Windows.Graphics.Printing.PrintSupport.PrintSupportSettingsActivatedEventArgs"; } -::windows_core::imp::interface_hierarchy!(PrintSupportSettingsActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for PrintSupportSettingsActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for PrintSupportSettingsActivatedEventArgs {} unsafe impl ::core::marker::Send for PrintSupportSettingsActivatedEventArgs {} unsafe impl ::core::marker::Sync for PrintSupportSettingsActivatedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintSupportSettingsUISession(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintSupportSettingsUISession, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PrintSupportSettingsUISession { #[doc = "Required features: `\"Graphics_Printing_PrintTicket\"`"] #[cfg(feature = "Graphics_Printing_PrintTicket")] @@ -850,14 +714,11 @@ impl ::windows_core::RuntimeType for PrintSupportSettingsUISession { } unsafe impl ::windows_core::Interface for PrintSupportSettingsUISession { type Vtable = IPrintSupportSettingsUISession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintSupportSettingsUISession { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintSupportSettingsUISession { const NAME: &'static str = "Windows.Graphics.Printing.PrintSupport.PrintSupportSettingsUISession"; } -::windows_core::imp::interface_hierarchy!(PrintSupportSettingsUISession, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PrintSupportSettingsUISession {} unsafe impl ::core::marker::Sync for PrintSupportSettingsUISession {} #[repr(transparent)] 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 86c6e0cdf0..685a560f80 100644 --- a/crates/libs/windows/src/Windows/Graphics/Printing/PrintTicket/mod.rs +++ b/crates/libs/windows/src/Windows/Graphics/Printing/PrintTicket/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintTicketCapabilities(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintTicketCapabilities { - type Vtable = IPrintTicketCapabilities_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintTicketCapabilities { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8c45508b_bbdc_4256_a142_2fd615ecb416); -} +::windows_core::imp::com_interface!(IPrintTicketCapabilities, IPrintTicketCapabilities_Vtbl, 0x8c45508b_bbdc_4256_a142_2fd615ecb416); #[repr(C)] #[doc(hidden)] pub struct IPrintTicketCapabilities_Vtbl { @@ -36,16 +27,7 @@ pub struct IPrintTicketCapabilities_Vtbl { pub GetFeature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows_core::HSTRING>, xmlnamespace: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetParameterDefinition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows_core::HSTRING>, xmlnamespace: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintTicketFeature(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintTicketFeature { - type Vtable = IPrintTicketFeature_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintTicketFeature { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe7607d6a_59f5_4103_8858_b97710963d39); -} +::windows_core::imp::com_interface!(IPrintTicketFeature, IPrintTicketFeature_Vtbl, 0xe7607d6a_59f5_4103_8858_b97710963d39); #[repr(C)] #[doc(hidden)] pub struct IPrintTicketFeature_Vtbl { @@ -66,16 +48,7 @@ pub struct IPrintTicketFeature_Vtbl { pub SetSelectedOption: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SelectionType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut PrintTicketFeatureSelectionType) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintTicketOption(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintTicketOption { - type Vtable = IPrintTicketOption_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintTicketOption { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb086cf90_b367_4e4b_bd48_9c78a0bb31ce); -} +::windows_core::imp::com_interface!(IPrintTicketOption, IPrintTicketOption_Vtbl, 0xb086cf90_b367_4e4b_bd48_9c78a0bb31ce); #[repr(C)] #[doc(hidden)] pub struct IPrintTicketOption_Vtbl { @@ -98,16 +71,7 @@ pub struct IPrintTicketOption_Vtbl { pub GetPropertyValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows_core::HSTRING>, xmlnamespace: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetScoredPropertyValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows_core::HSTRING>, xmlnamespace: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintTicketParameterDefinition(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintTicketParameterDefinition { - type Vtable = IPrintTicketParameterDefinition_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintTicketParameterDefinition { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd6bab4e4_2962_4c01_b7f3_9a9294eb8335); -} +::windows_core::imp::com_interface!(IPrintTicketParameterDefinition, IPrintTicketParameterDefinition_Vtbl, 0xd6bab4e4_2962_4c01_b7f3_9a9294eb8335); #[repr(C)] #[doc(hidden)] pub struct IPrintTicketParameterDefinition_Vtbl { @@ -123,16 +87,7 @@ pub struct IPrintTicketParameterDefinition_Vtbl { pub RangeMin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows_core::HRESULT, pub RangeMax: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintTicketParameterInitializer(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintTicketParameterInitializer { - type Vtable = IPrintTicketParameterInitializer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintTicketParameterInitializer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5e3335bb_a0a5_48b1_9d5c_07116ddc597a); -} +::windows_core::imp::com_interface!(IPrintTicketParameterInitializer, IPrintTicketParameterInitializer_Vtbl, 0x5e3335bb_a0a5_48b1_9d5c_07116ddc597a); #[repr(C)] #[doc(hidden)] pub struct IPrintTicketParameterInitializer_Vtbl { @@ -146,16 +101,7 @@ pub struct IPrintTicketParameterInitializer_Vtbl { pub SetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintTicketValue(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintTicketValue { - type Vtable = IPrintTicketValue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintTicketValue { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x66b30a32_244d_4e22_a98b_bb3cf1f2dd91); -} +::windows_core::imp::com_interface!(IPrintTicketValue, IPrintTicketValue_Vtbl, 0x66b30a32_244d_4e22_a98b_bb3cf1f2dd91); #[repr(C)] #[doc(hidden)] pub struct IPrintTicketValue_Vtbl { @@ -164,16 +110,7 @@ pub struct IPrintTicketValue_Vtbl { pub GetValueAsInteger: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows_core::HRESULT, pub GetValueAsString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWorkflowPrintTicket(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWorkflowPrintTicket { - type Vtable = IWorkflowPrintTicket_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWorkflowPrintTicket { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x41d52285_35e8_448e_a8c5_e4b6a2cf826c); -} +::windows_core::imp::com_interface!(IWorkflowPrintTicket, IWorkflowPrintTicket_Vtbl, 0x41d52285_35e8_448e_a8c5_e4b6a2cf826c); #[repr(C)] #[doc(hidden)] pub struct IWorkflowPrintTicket_Vtbl { @@ -208,16 +145,7 @@ pub struct IWorkflowPrintTicket_Vtbl { pub SetParameterInitializerAsString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows_core::HSTRING>, xmlnamespace: ::std::mem::MaybeUninit<::windows_core::HSTRING>, stringvalue: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub MergeAndValidateTicket: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, deltashematicket: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWorkflowPrintTicketValidationResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWorkflowPrintTicketValidationResult { - type Vtable = IWorkflowPrintTicketValidationResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWorkflowPrintTicketValidationResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0ad1f392_da7b_4a36_bf36_6a99a62e2059); -} +::windows_core::imp::com_interface!(IWorkflowPrintTicketValidationResult, IWorkflowPrintTicketValidationResult_Vtbl, 0x0ad1f392_da7b_4a36_bf36_6a99a62e2059); #[repr(C)] #[doc(hidden)] pub struct IWorkflowPrintTicketValidationResult_Vtbl { @@ -228,6 +156,7 @@ pub struct IWorkflowPrintTicketValidationResult_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintTicketCapabilities(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintTicketCapabilities, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PrintTicketCapabilities { pub fn Name(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -377,19 +306,17 @@ impl ::windows_core::RuntimeType for PrintTicketCapabilities { } unsafe impl ::windows_core::Interface for PrintTicketCapabilities { type Vtable = IPrintTicketCapabilities_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintTicketCapabilities { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintTicketCapabilities { const NAME: &'static str = "Windows.Graphics.Printing.PrintTicket.PrintTicketCapabilities"; } -::windows_core::imp::interface_hierarchy!(PrintTicketCapabilities, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PrintTicketCapabilities {} unsafe impl ::core::marker::Sync for PrintTicketCapabilities {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintTicketFeature(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintTicketFeature, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PrintTicketFeature { pub fn Name(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -464,19 +391,17 @@ impl ::windows_core::RuntimeType for PrintTicketFeature { } unsafe impl ::windows_core::Interface for PrintTicketFeature { type Vtable = IPrintTicketFeature_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintTicketFeature { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintTicketFeature { const NAME: &'static str = "Windows.Graphics.Printing.PrintTicket.PrintTicketFeature"; } -::windows_core::imp::interface_hierarchy!(PrintTicketFeature, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PrintTicketFeature {} unsafe impl ::core::marker::Sync for PrintTicketFeature {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintTicketOption(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintTicketOption, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PrintTicketOption { pub fn Name(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -546,19 +471,17 @@ impl ::windows_core::RuntimeType for PrintTicketOption { } unsafe impl ::windows_core::Interface for PrintTicketOption { type Vtable = IPrintTicketOption_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintTicketOption { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintTicketOption { const NAME: &'static str = "Windows.Graphics.Printing.PrintTicket.PrintTicketOption"; } -::windows_core::imp::interface_hierarchy!(PrintTicketOption, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PrintTicketOption {} unsafe impl ::core::marker::Sync for PrintTicketOption {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintTicketParameterDefinition(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintTicketParameterDefinition, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PrintTicketParameterDefinition { pub fn Name(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -617,19 +540,17 @@ impl ::windows_core::RuntimeType for PrintTicketParameterDefinition { } unsafe impl ::windows_core::Interface for PrintTicketParameterDefinition { type Vtable = IPrintTicketParameterDefinition_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintTicketParameterDefinition { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintTicketParameterDefinition { const NAME: &'static str = "Windows.Graphics.Printing.PrintTicket.PrintTicketParameterDefinition"; } -::windows_core::imp::interface_hierarchy!(PrintTicketParameterDefinition, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PrintTicketParameterDefinition {} unsafe impl ::core::marker::Sync for PrintTicketParameterDefinition {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintTicketParameterInitializer(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintTicketParameterInitializer, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PrintTicketParameterInitializer { pub fn Name(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -674,19 +595,17 @@ impl ::windows_core::RuntimeType for PrintTicketParameterInitializer { } unsafe impl ::windows_core::Interface for PrintTicketParameterInitializer { type Vtable = IPrintTicketParameterInitializer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintTicketParameterInitializer { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintTicketParameterInitializer { const NAME: &'static str = "Windows.Graphics.Printing.PrintTicket.PrintTicketParameterInitializer"; } -::windows_core::imp::interface_hierarchy!(PrintTicketParameterInitializer, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PrintTicketParameterInitializer {} unsafe impl ::core::marker::Sync for PrintTicketParameterInitializer {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintTicketValue(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintTicketValue, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PrintTicketValue { pub fn Type(&self) -> ::windows_core::Result { let this = self; @@ -715,19 +634,17 @@ impl ::windows_core::RuntimeType for PrintTicketValue { } unsafe impl ::windows_core::Interface for PrintTicketValue { type Vtable = IPrintTicketValue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintTicketValue { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintTicketValue { const NAME: &'static str = "Windows.Graphics.Printing.PrintTicket.PrintTicketValue"; } -::windows_core::imp::interface_hierarchy!(PrintTicketValue, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PrintTicketValue {} unsafe impl ::core::marker::Sync for PrintTicketValue {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WorkflowPrintTicket(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WorkflowPrintTicket, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WorkflowPrintTicket { pub fn Name(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -922,19 +839,17 @@ impl ::windows_core::RuntimeType for WorkflowPrintTicket { } unsafe impl ::windows_core::Interface for WorkflowPrintTicket { type Vtable = IWorkflowPrintTicket_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WorkflowPrintTicket { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WorkflowPrintTicket { const NAME: &'static str = "Windows.Graphics.Printing.PrintTicket.WorkflowPrintTicket"; } -::windows_core::imp::interface_hierarchy!(WorkflowPrintTicket, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for WorkflowPrintTicket {} unsafe impl ::core::marker::Sync for WorkflowPrintTicket {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WorkflowPrintTicketValidationResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WorkflowPrintTicketValidationResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WorkflowPrintTicketValidationResult { pub fn Validated(&self) -> ::windows_core::Result { let this = self; @@ -956,14 +871,11 @@ impl ::windows_core::RuntimeType for WorkflowPrintTicketValidationResult { } unsafe impl ::windows_core::Interface for WorkflowPrintTicketValidationResult { type Vtable = IWorkflowPrintTicketValidationResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WorkflowPrintTicketValidationResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WorkflowPrintTicketValidationResult { const NAME: &'static str = "Windows.Graphics.Printing.PrintTicket.WorkflowPrintTicketValidationResult"; } -::windows_core::imp::interface_hierarchy!(WorkflowPrintTicketValidationResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for WorkflowPrintTicketValidationResult {} unsafe impl ::core::marker::Sync for WorkflowPrintTicketValidationResult {} #[repr(transparent)] 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 986da88c2c..9748905df5 100644 --- a/crates/libs/windows/src/Windows/Graphics/Printing/Workflow/mod.rs +++ b/crates/libs/windows/src/Windows/Graphics/Printing/Workflow/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintWorkflowBackgroundSession(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintWorkflowBackgroundSession { - type Vtable = IPrintWorkflowBackgroundSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintWorkflowBackgroundSession { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5b7913ba_0c5e_528a_7458_86a46cbddc45); -} +::windows_core::imp::com_interface!(IPrintWorkflowBackgroundSession, IPrintWorkflowBackgroundSession_Vtbl, 0x5b7913ba_0c5e_528a_7458_86a46cbddc45); #[repr(C)] #[doc(hidden)] pub struct IPrintWorkflowBackgroundSession_Vtbl { @@ -19,16 +10,7 @@ pub struct IPrintWorkflowBackgroundSession_Vtbl { pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut PrintWorkflowSessionStatus) -> ::windows_core::HRESULT, pub Start: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintWorkflowBackgroundSetupRequestedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintWorkflowBackgroundSetupRequestedEventArgs { - type Vtable = IPrintWorkflowBackgroundSetupRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintWorkflowBackgroundSetupRequestedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x43e97342_1750_59c9_61fb_383748a20362); -} +::windows_core::imp::com_interface!(IPrintWorkflowBackgroundSetupRequestedEventArgs, IPrintWorkflowBackgroundSetupRequestedEventArgs_Vtbl, 0x43e97342_1750_59c9_61fb_383748a20362); #[repr(C)] #[doc(hidden)] pub struct IPrintWorkflowBackgroundSetupRequestedEventArgs_Vtbl { @@ -41,16 +23,7 @@ pub struct IPrintWorkflowBackgroundSetupRequestedEventArgs_Vtbl { pub SetRequiresUI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintWorkflowConfiguration(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintWorkflowConfiguration { - type Vtable = IPrintWorkflowConfiguration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintWorkflowConfiguration { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd0aac4ed_fd4b_5df5_4bb6_8d0d159ebe3f); -} +::windows_core::imp::com_interface!(IPrintWorkflowConfiguration, IPrintWorkflowConfiguration_Vtbl, 0xd0aac4ed_fd4b_5df5_4bb6_8d0d159ebe3f); #[repr(C)] #[doc(hidden)] pub struct IPrintWorkflowConfiguration_Vtbl { @@ -59,32 +32,14 @@ pub struct IPrintWorkflowConfiguration_Vtbl { pub JobTitle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SessionId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintWorkflowConfiguration2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintWorkflowConfiguration2 { - type Vtable = IPrintWorkflowConfiguration2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintWorkflowConfiguration2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xde350a50_a6d4_5be2_8b9a_09d3d39ea780); -} +::windows_core::imp::com_interface!(IPrintWorkflowConfiguration2, IPrintWorkflowConfiguration2_Vtbl, 0xde350a50_a6d4_5be2_8b9a_09d3d39ea780); #[repr(C)] #[doc(hidden)] pub struct IPrintWorkflowConfiguration2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub AbortPrintFlow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, reason: PrintWorkflowJobAbortReason) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintWorkflowForegroundSession(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintWorkflowForegroundSession { - type Vtable = IPrintWorkflowForegroundSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintWorkflowForegroundSession { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc79b63d0_f8ec_4ceb_953a_c8876157dd33); -} +::windows_core::imp::com_interface!(IPrintWorkflowForegroundSession, IPrintWorkflowForegroundSession_Vtbl, 0xc79b63d0_f8ec_4ceb_953a_c8876157dd33); #[repr(C)] #[doc(hidden)] pub struct IPrintWorkflowForegroundSession_Vtbl { @@ -96,16 +51,7 @@ pub struct IPrintWorkflowForegroundSession_Vtbl { pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut PrintWorkflowSessionStatus) -> ::windows_core::HRESULT, pub Start: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintWorkflowForegroundSetupRequestedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintWorkflowForegroundSetupRequestedEventArgs { - type Vtable = IPrintWorkflowForegroundSetupRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintWorkflowForegroundSetupRequestedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbbe38247_9c1b_4dd3_9b2b_c80468d941b3); -} +::windows_core::imp::com_interface!(IPrintWorkflowForegroundSetupRequestedEventArgs, IPrintWorkflowForegroundSetupRequestedEventArgs_Vtbl, 0xbbe38247_9c1b_4dd3_9b2b_c80468d941b3); #[repr(C)] #[doc(hidden)] pub struct IPrintWorkflowForegroundSetupRequestedEventArgs_Vtbl { @@ -117,32 +63,14 @@ pub struct IPrintWorkflowForegroundSetupRequestedEventArgs_Vtbl { pub Configuration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintWorkflowJobActivatedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintWorkflowJobActivatedEventArgs { - type Vtable = IPrintWorkflowJobActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintWorkflowJobActivatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd4bd5e6d_034e_5e00_a616_f961a033dcc8); -} +::windows_core::imp::com_interface!(IPrintWorkflowJobActivatedEventArgs, IPrintWorkflowJobActivatedEventArgs_Vtbl, 0xd4bd5e6d_034e_5e00_a616_f961a033dcc8); #[repr(C)] #[doc(hidden)] pub struct IPrintWorkflowJobActivatedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Session: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintWorkflowJobBackgroundSession(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintWorkflowJobBackgroundSession { - type Vtable = IPrintWorkflowJobBackgroundSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintWorkflowJobBackgroundSession { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc5ec6ad8_20c9_5d51_8507_2734b46f96c5); -} +::windows_core::imp::com_interface!(IPrintWorkflowJobBackgroundSession, IPrintWorkflowJobBackgroundSession_Vtbl, 0xc5ec6ad8_20c9_5d51_8507_2734b46f96c5); #[repr(C)] #[doc(hidden)] pub struct IPrintWorkflowJobBackgroundSession_Vtbl { @@ -154,16 +82,7 @@ pub struct IPrintWorkflowJobBackgroundSession_Vtbl { pub RemovePdlModificationRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub Start: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintWorkflowJobNotificationEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintWorkflowJobNotificationEventArgs { - type Vtable = IPrintWorkflowJobNotificationEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintWorkflowJobNotificationEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0ae16fba_5398_5eba_b472_978650186a9a); -} +::windows_core::imp::com_interface!(IPrintWorkflowJobNotificationEventArgs, IPrintWorkflowJobNotificationEventArgs_Vtbl, 0x0ae16fba_5398_5eba_b472_978650186a9a); #[repr(C)] #[doc(hidden)] pub struct IPrintWorkflowJobNotificationEventArgs_Vtbl { @@ -172,16 +91,7 @@ pub struct IPrintWorkflowJobNotificationEventArgs_Vtbl { pub PrinterJob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintWorkflowJobStartingEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintWorkflowJobStartingEventArgs { - type Vtable = IPrintWorkflowJobStartingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintWorkflowJobStartingEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe3d99ba8_31ad_5e09_b0d7_601b97f161ad); -} +::windows_core::imp::com_interface!(IPrintWorkflowJobStartingEventArgs, IPrintWorkflowJobStartingEventArgs_Vtbl, 0xe3d99ba8_31ad_5e09_b0d7_601b97f161ad); #[repr(C)] #[doc(hidden)] pub struct IPrintWorkflowJobStartingEventArgs_Vtbl { @@ -194,32 +104,14 @@ pub struct IPrintWorkflowJobStartingEventArgs_Vtbl { pub SetSkipSystemRendering: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintWorkflowJobTriggerDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintWorkflowJobTriggerDetails { - type Vtable = IPrintWorkflowJobTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintWorkflowJobTriggerDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xff296129_60e2_51db_ba8c_e2ccddb516b9); -} +::windows_core::imp::com_interface!(IPrintWorkflowJobTriggerDetails, IPrintWorkflowJobTriggerDetails_Vtbl, 0xff296129_60e2_51db_ba8c_e2ccddb516b9); #[repr(C)] #[doc(hidden)] pub struct IPrintWorkflowJobTriggerDetails_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub PrintWorkflowJobSession: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintWorkflowJobUISession(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintWorkflowJobUISession { - type Vtable = IPrintWorkflowJobUISession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintWorkflowJobUISession { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00c8736b_7637_5687_a302_0f664d2aac65); -} +::windows_core::imp::com_interface!(IPrintWorkflowJobUISession, IPrintWorkflowJobUISession_Vtbl, 0x00c8736b_7637_5687_a302_0f664d2aac65); #[repr(C)] #[doc(hidden)] pub struct IPrintWorkflowJobUISession_Vtbl { @@ -231,31 +123,13 @@ pub struct IPrintWorkflowJobUISession_Vtbl { pub RemoveJobNotification: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub Start: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintWorkflowObjectModelSourceFileContent(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintWorkflowObjectModelSourceFileContent { - type Vtable = IPrintWorkflowObjectModelSourceFileContent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintWorkflowObjectModelSourceFileContent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc36c8a6a_8a2a_419a_b3c3_2090e6bfab2f); -} +::windows_core::imp::com_interface!(IPrintWorkflowObjectModelSourceFileContent, IPrintWorkflowObjectModelSourceFileContent_Vtbl, 0xc36c8a6a_8a2a_419a_b3c3_2090e6bfab2f); #[repr(C)] #[doc(hidden)] pub struct IPrintWorkflowObjectModelSourceFileContent_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintWorkflowObjectModelSourceFileContentFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintWorkflowObjectModelSourceFileContentFactory { - type Vtable = IPrintWorkflowObjectModelSourceFileContentFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintWorkflowObjectModelSourceFileContentFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x93b1b903_f013_56d6_b708_99ac2ccb12ee); -} +::windows_core::imp::com_interface!(IPrintWorkflowObjectModelSourceFileContentFactory, IPrintWorkflowObjectModelSourceFileContentFactory_Vtbl, 0x93b1b903_f013_56d6_b708_99ac2ccb12ee); #[repr(C)] #[doc(hidden)] pub struct IPrintWorkflowObjectModelSourceFileContentFactory_Vtbl { @@ -265,31 +139,13 @@ pub struct IPrintWorkflowObjectModelSourceFileContentFactory_Vtbl { #[cfg(not(feature = "Storage_Streams"))] CreateInstance: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintWorkflowObjectModelTargetPackage(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintWorkflowObjectModelTargetPackage { - type Vtable = IPrintWorkflowObjectModelTargetPackage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintWorkflowObjectModelTargetPackage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7d96bc74_9b54_4ca1_ad3a_979c3d44ddac); -} +::windows_core::imp::com_interface!(IPrintWorkflowObjectModelTargetPackage, IPrintWorkflowObjectModelTargetPackage_Vtbl, 0x7d96bc74_9b54_4ca1_ad3a_979c3d44ddac); #[repr(C)] #[doc(hidden)] pub struct IPrintWorkflowObjectModelTargetPackage_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintWorkflowPdlConverter(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintWorkflowPdlConverter { - type Vtable = IPrintWorkflowPdlConverter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintWorkflowPdlConverter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x40604b62_0ae4_51f1_818f_731dc0b005ab); -} +::windows_core::imp::com_interface!(IPrintWorkflowPdlConverter, IPrintWorkflowPdlConverter_Vtbl, 0x40604b62_0ae4_51f1_818f_731dc0b005ab); #[repr(C)] #[doc(hidden)] pub struct IPrintWorkflowPdlConverter_Vtbl { @@ -299,16 +155,7 @@ pub struct IPrintWorkflowPdlConverter_Vtbl { #[cfg(not(all(feature = "Graphics_Printing_PrintTicket", feature = "Storage_Streams")))] ConvertPdlAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintWorkflowPdlConverter2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintWorkflowPdlConverter2 { - type Vtable = IPrintWorkflowPdlConverter2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintWorkflowPdlConverter2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x854ceec1_7837_5b93_b7af_57a6998c2f71); -} +::windows_core::imp::com_interface!(IPrintWorkflowPdlConverter2, IPrintWorkflowPdlConverter2_Vtbl, 0x854ceec1_7837_5b93_b7af_57a6998c2f71); #[repr(C)] #[doc(hidden)] pub struct IPrintWorkflowPdlConverter2_Vtbl { @@ -318,16 +165,7 @@ pub struct IPrintWorkflowPdlConverter2_Vtbl { #[cfg(not(all(feature = "Graphics_Printing_PrintTicket", feature = "Storage_Streams")))] ConvertPdlAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintWorkflowPdlDataAvailableEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintWorkflowPdlDataAvailableEventArgs { - type Vtable = IPrintWorkflowPdlDataAvailableEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintWorkflowPdlDataAvailableEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd4ad6b50_1547_5991_a0ef_e2ee20211518); -} +::windows_core::imp::com_interface!(IPrintWorkflowPdlDataAvailableEventArgs, IPrintWorkflowPdlDataAvailableEventArgs_Vtbl, 0xd4ad6b50_1547_5991_a0ef_e2ee20211518); #[repr(C)] #[doc(hidden)] pub struct IPrintWorkflowPdlDataAvailableEventArgs_Vtbl { @@ -337,16 +175,7 @@ pub struct IPrintWorkflowPdlDataAvailableEventArgs_Vtbl { pub SourceContent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintWorkflowPdlModificationRequestedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintWorkflowPdlModificationRequestedEventArgs { - type Vtable = IPrintWorkflowPdlModificationRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintWorkflowPdlModificationRequestedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1a339a61_2e13_5edd_a707_ceec61d7333b); -} +::windows_core::imp::com_interface!(IPrintWorkflowPdlModificationRequestedEventArgs, IPrintWorkflowPdlModificationRequestedEventArgs_Vtbl, 0x1a339a61_2e13_5edd_a707_ceec61d7333b); #[repr(C)] #[doc(hidden)] pub struct IPrintWorkflowPdlModificationRequestedEventArgs_Vtbl { @@ -367,16 +196,7 @@ pub struct IPrintWorkflowPdlModificationRequestedEventArgs_Vtbl { pub GetPdlConverter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, conversiontype: PrintWorkflowPdlConversionType, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintWorkflowPdlModificationRequestedEventArgs2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintWorkflowPdlModificationRequestedEventArgs2 { - type Vtable = IPrintWorkflowPdlModificationRequestedEventArgs2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintWorkflowPdlModificationRequestedEventArgs2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8d692147_6c62_5e31_a0e7_d49f92c111c0); -} +::windows_core::imp::com_interface!(IPrintWorkflowPdlModificationRequestedEventArgs2, IPrintWorkflowPdlModificationRequestedEventArgs2_Vtbl, 0x8d692147_6c62_5e31_a0e7_d49f92c111c0); #[repr(C)] #[doc(hidden)] pub struct IPrintWorkflowPdlModificationRequestedEventArgs2_Vtbl { @@ -390,16 +210,7 @@ pub struct IPrintWorkflowPdlModificationRequestedEventArgs2_Vtbl { #[cfg(not(feature = "Storage_Streams"))] CreateJobOnPrinterWithAttributesBuffer: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintWorkflowPdlSourceContent(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintWorkflowPdlSourceContent { - type Vtable = IPrintWorkflowPdlSourceContent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintWorkflowPdlSourceContent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x92f7fc41_32b8_56ab_845e_b1e68b3aedd5); -} +::windows_core::imp::com_interface!(IPrintWorkflowPdlSourceContent, IPrintWorkflowPdlSourceContent_Vtbl, 0x92f7fc41_32b8_56ab_845e_b1e68b3aedd5); #[repr(C)] #[doc(hidden)] pub struct IPrintWorkflowPdlSourceContent_Vtbl { @@ -414,16 +225,7 @@ pub struct IPrintWorkflowPdlSourceContent_Vtbl { #[cfg(not(feature = "Storage"))] GetContentFileAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintWorkflowPdlTargetStream(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintWorkflowPdlTargetStream { - type Vtable = IPrintWorkflowPdlTargetStream_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintWorkflowPdlTargetStream { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa742dfe5_1ee3_52a9_9f9f_2e2043180fd1); -} +::windows_core::imp::com_interface!(IPrintWorkflowPdlTargetStream, IPrintWorkflowPdlTargetStream_Vtbl, 0xa742dfe5_1ee3_52a9_9f9f_2e2043180fd1); #[repr(C)] #[doc(hidden)] pub struct IPrintWorkflowPdlTargetStream_Vtbl { @@ -434,16 +236,7 @@ pub struct IPrintWorkflowPdlTargetStream_Vtbl { GetOutputStream: usize, pub CompleteStreamSubmission: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, status: PrintWorkflowSubmittedStatus) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintWorkflowPrinterJob(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintWorkflowPrinterJob { - type Vtable = IPrintWorkflowPrinterJob_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintWorkflowPrinterJob { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x12009f94_0d14_5443_bc09_250311ce570b); -} +::windows_core::imp::com_interface!(IPrintWorkflowPrinterJob, IPrintWorkflowPrinterJob_Vtbl, 0x12009f94_0d14_5443_bc09_250311ce570b); #[repr(C)] #[doc(hidden)] pub struct IPrintWorkflowPrinterJob_Vtbl { @@ -475,16 +268,7 @@ pub struct IPrintWorkflowPrinterJob_Vtbl { #[cfg(not(all(feature = "Devices_Printers", feature = "Foundation_Collections")))] SetJobAttributes: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintWorkflowSourceContent(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintWorkflowSourceContent { - type Vtable = IPrintWorkflowSourceContent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintWorkflowSourceContent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1a28c641_ceb1_4533_bb73_fbe63eefdb18); -} +::windows_core::imp::com_interface!(IPrintWorkflowSourceContent, IPrintWorkflowSourceContent_Vtbl, 0x1a28c641_ceb1_4533_bb73_fbe63eefdb18); #[repr(C)] #[doc(hidden)] pub struct IPrintWorkflowSourceContent_Vtbl { @@ -496,16 +280,7 @@ pub struct IPrintWorkflowSourceContent_Vtbl { pub GetSourceSpoolDataAsStreamContent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetSourceSpoolDataAsXpsObjectModel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintWorkflowSpoolStreamContent(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintWorkflowSpoolStreamContent { - type Vtable = IPrintWorkflowSpoolStreamContent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintWorkflowSpoolStreamContent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x72e55ece_e406_4b74_84e1_3ff3fdcdaf70); -} +::windows_core::imp::com_interface!(IPrintWorkflowSpoolStreamContent, IPrintWorkflowSpoolStreamContent_Vtbl, 0x72e55ece_e406_4b74_84e1_3ff3fdcdaf70); #[repr(C)] #[doc(hidden)] pub struct IPrintWorkflowSpoolStreamContent_Vtbl { @@ -515,16 +290,7 @@ pub struct IPrintWorkflowSpoolStreamContent_Vtbl { #[cfg(not(feature = "Storage_Streams"))] GetInputStream: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintWorkflowStreamTarget(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintWorkflowStreamTarget { - type Vtable = IPrintWorkflowStreamTarget_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintWorkflowStreamTarget { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb23bba84_8565_488b_9839_1c9e7c7aa916); -} +::windows_core::imp::com_interface!(IPrintWorkflowStreamTarget, IPrintWorkflowStreamTarget_Vtbl, 0xb23bba84_8565_488b_9839_1c9e7c7aa916); #[repr(C)] #[doc(hidden)] pub struct IPrintWorkflowStreamTarget_Vtbl { @@ -534,16 +300,7 @@ pub struct IPrintWorkflowStreamTarget_Vtbl { #[cfg(not(feature = "Storage_Streams"))] GetOutputStream: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintWorkflowSubmittedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintWorkflowSubmittedEventArgs { - type Vtable = IPrintWorkflowSubmittedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintWorkflowSubmittedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3add0a41_3794_5569_5c87_40e8ff720f83); -} +::windows_core::imp::com_interface!(IPrintWorkflowSubmittedEventArgs, IPrintWorkflowSubmittedEventArgs_Vtbl, 0x3add0a41_3794_5569_5c87_40e8ff720f83); #[repr(C)] #[doc(hidden)] pub struct IPrintWorkflowSubmittedEventArgs_Vtbl { @@ -555,16 +312,7 @@ pub struct IPrintWorkflowSubmittedEventArgs_Vtbl { GetTarget: usize, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintWorkflowSubmittedOperation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintWorkflowSubmittedOperation { - type Vtable = IPrintWorkflowSubmittedOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintWorkflowSubmittedOperation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2e4e6216_3be1_5f0f_5c81_a5a2bd4eab0e); -} +::windows_core::imp::com_interface!(IPrintWorkflowSubmittedOperation, IPrintWorkflowSubmittedOperation_Vtbl, 0x2e4e6216_3be1_5f0f_5c81_a5a2bd4eab0e); #[repr(C)] #[doc(hidden)] pub struct IPrintWorkflowSubmittedOperation_Vtbl { @@ -573,16 +321,7 @@ pub struct IPrintWorkflowSubmittedOperation_Vtbl { pub Configuration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub XpsContent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintWorkflowTarget(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintWorkflowTarget { - type Vtable = IPrintWorkflowTarget_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintWorkflowTarget { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x29da276c_0a73_5aed_4f3d_970d3251f057); -} +::windows_core::imp::com_interface!(IPrintWorkflowTarget, IPrintWorkflowTarget_Vtbl, 0x29da276c_0a73_5aed_4f3d_970d3251f057); #[repr(C)] #[doc(hidden)] pub struct IPrintWorkflowTarget_Vtbl { @@ -590,48 +329,21 @@ pub struct IPrintWorkflowTarget_Vtbl { pub TargetAsStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub TargetAsXpsObjectModelPackage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintWorkflowTriggerDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintWorkflowTriggerDetails { - type Vtable = IPrintWorkflowTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintWorkflowTriggerDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5739d868_9d86_4052_b0cb_f310becd59bb); -} +::windows_core::imp::com_interface!(IPrintWorkflowTriggerDetails, IPrintWorkflowTriggerDetails_Vtbl, 0x5739d868_9d86_4052_b0cb_f310becd59bb); #[repr(C)] #[doc(hidden)] pub struct IPrintWorkflowTriggerDetails_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub PrintWorkflowSession: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintWorkflowUIActivatedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintWorkflowUIActivatedEventArgs { - type Vtable = IPrintWorkflowUIActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintWorkflowUIActivatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbc8a844d_09eb_5746_72a6_8dc8b5edbe9b); -} +::windows_core::imp::com_interface!(IPrintWorkflowUIActivatedEventArgs, IPrintWorkflowUIActivatedEventArgs_Vtbl, 0xbc8a844d_09eb_5746_72a6_8dc8b5edbe9b); #[repr(C)] #[doc(hidden)] pub struct IPrintWorkflowUIActivatedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub PrintWorkflowSession: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintWorkflowUILauncher(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintWorkflowUILauncher { - type Vtable = IPrintWorkflowUILauncher_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintWorkflowUILauncher { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x64e9e22f_14cc_5828_96fb_39163fb6c378); -} +::windows_core::imp::com_interface!(IPrintWorkflowUILauncher, IPrintWorkflowUILauncher_Vtbl, 0x64e9e22f_14cc_5828_96fb_39163fb6c378); #[repr(C)] #[doc(hidden)] pub struct IPrintWorkflowUILauncher_Vtbl { @@ -639,16 +351,7 @@ pub struct IPrintWorkflowUILauncher_Vtbl { pub IsUILaunchEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub LaunchAndCompleteUIAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintWorkflowXpsDataAvailableEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintWorkflowXpsDataAvailableEventArgs { - type Vtable = IPrintWorkflowXpsDataAvailableEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintWorkflowXpsDataAvailableEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4d11c331_54d1_434e_be0e_82c5fa58e5b2); -} +::windows_core::imp::com_interface!(IPrintWorkflowXpsDataAvailableEventArgs, IPrintWorkflowXpsDataAvailableEventArgs_Vtbl, 0x4d11c331_54d1_434e_be0e_82c5fa58e5b2); #[repr(C)] #[doc(hidden)] pub struct IPrintWorkflowXpsDataAvailableEventArgs_Vtbl { @@ -659,6 +362,7 @@ pub struct IPrintWorkflowXpsDataAvailableEventArgs_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintWorkflowBackgroundSession(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintWorkflowBackgroundSession, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PrintWorkflowBackgroundSession { pub fn SetupRequested(&self, setupeventhandler: P0) -> ::windows_core::Result where @@ -705,19 +409,17 @@ impl ::windows_core::RuntimeType for PrintWorkflowBackgroundSession { } unsafe impl ::windows_core::Interface for PrintWorkflowBackgroundSession { type Vtable = IPrintWorkflowBackgroundSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintWorkflowBackgroundSession { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintWorkflowBackgroundSession { const NAME: &'static str = "Windows.Graphics.Printing.Workflow.PrintWorkflowBackgroundSession"; } -::windows_core::imp::interface_hierarchy!(PrintWorkflowBackgroundSession, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PrintWorkflowBackgroundSession {} unsafe impl ::core::marker::Sync for PrintWorkflowBackgroundSession {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintWorkflowBackgroundSetupRequestedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintWorkflowBackgroundSetupRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PrintWorkflowBackgroundSetupRequestedEventArgs { #[doc = "Required features: `\"Graphics_Printing_PrintTicket\"`"] #[cfg(feature = "Graphics_Printing_PrintTicket")] @@ -752,19 +454,17 @@ impl ::windows_core::RuntimeType for PrintWorkflowBackgroundSetupRequestedEventA } unsafe impl ::windows_core::Interface for PrintWorkflowBackgroundSetupRequestedEventArgs { type Vtable = IPrintWorkflowBackgroundSetupRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintWorkflowBackgroundSetupRequestedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintWorkflowBackgroundSetupRequestedEventArgs { const NAME: &'static str = "Windows.Graphics.Printing.Workflow.PrintWorkflowBackgroundSetupRequestedEventArgs"; } -::windows_core::imp::interface_hierarchy!(PrintWorkflowBackgroundSetupRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PrintWorkflowBackgroundSetupRequestedEventArgs {} unsafe impl ::core::marker::Sync for PrintWorkflowBackgroundSetupRequestedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintWorkflowConfiguration(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintWorkflowConfiguration, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PrintWorkflowConfiguration { pub fn SourceAppDisplayName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -788,7 +488,7 @@ impl PrintWorkflowConfiguration { } } pub fn AbortPrintFlow(&self, reason: PrintWorkflowJobAbortReason) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).AbortPrintFlow)(::windows_core::Interface::as_raw(this), reason).ok() } } } @@ -797,19 +497,17 @@ impl ::windows_core::RuntimeType for PrintWorkflowConfiguration { } unsafe impl ::windows_core::Interface for PrintWorkflowConfiguration { type Vtable = IPrintWorkflowConfiguration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintWorkflowConfiguration { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintWorkflowConfiguration { const NAME: &'static str = "Windows.Graphics.Printing.Workflow.PrintWorkflowConfiguration"; } -::windows_core::imp::interface_hierarchy!(PrintWorkflowConfiguration, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PrintWorkflowConfiguration {} unsafe impl ::core::marker::Sync for PrintWorkflowConfiguration {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintWorkflowForegroundSession(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintWorkflowForegroundSession, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PrintWorkflowForegroundSession { pub fn SetupRequested(&self, setupeventhandler: P0) -> ::windows_core::Result where @@ -856,19 +554,17 @@ impl ::windows_core::RuntimeType for PrintWorkflowForegroundSession { } unsafe impl ::windows_core::Interface for PrintWorkflowForegroundSession { type Vtable = IPrintWorkflowForegroundSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintWorkflowForegroundSession { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintWorkflowForegroundSession { const NAME: &'static str = "Windows.Graphics.Printing.Workflow.PrintWorkflowForegroundSession"; } -::windows_core::imp::interface_hierarchy!(PrintWorkflowForegroundSession, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PrintWorkflowForegroundSession {} unsafe impl ::core::marker::Sync for PrintWorkflowForegroundSession {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintWorkflowForegroundSetupRequestedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintWorkflowForegroundSetupRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PrintWorkflowForegroundSetupRequestedEventArgs { #[doc = "Required features: `\"Graphics_Printing_PrintTicket\"`"] #[cfg(feature = "Graphics_Printing_PrintTicket")] @@ -899,24 +595,24 @@ impl ::windows_core::RuntimeType for PrintWorkflowForegroundSetupRequestedEventA } unsafe impl ::windows_core::Interface for PrintWorkflowForegroundSetupRequestedEventArgs { type Vtable = IPrintWorkflowForegroundSetupRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintWorkflowForegroundSetupRequestedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintWorkflowForegroundSetupRequestedEventArgs { const NAME: &'static str = "Windows.Graphics.Printing.Workflow.PrintWorkflowForegroundSetupRequestedEventArgs"; } -::windows_core::imp::interface_hierarchy!(PrintWorkflowForegroundSetupRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PrintWorkflowForegroundSetupRequestedEventArgs {} unsafe impl ::core::marker::Sync for PrintWorkflowForegroundSetupRequestedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintWorkflowJobActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintWorkflowJobActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::required_hierarchy!(PrintWorkflowJobActivatedEventArgs, super::super::super::ApplicationModel::Activation::IActivatedEventArgs, super::super::super::ApplicationModel::Activation::IActivatedEventArgsWithUser); impl PrintWorkflowJobActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -925,7 +621,7 @@ impl PrintWorkflowJobActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -934,7 +630,7 @@ impl PrintWorkflowJobActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -943,7 +639,7 @@ impl PrintWorkflowJobActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`, `\"System\"`"] #[cfg(all(feature = "ApplicationModel_Activation", feature = "System"))] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -962,23 +658,17 @@ impl ::windows_core::RuntimeType for PrintWorkflowJobActivatedEventArgs { } unsafe impl ::windows_core::Interface for PrintWorkflowJobActivatedEventArgs { type Vtable = IPrintWorkflowJobActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintWorkflowJobActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintWorkflowJobActivatedEventArgs { const NAME: &'static str = "Windows.Graphics.Printing.Workflow.PrintWorkflowJobActivatedEventArgs"; } -::windows_core::imp::interface_hierarchy!(PrintWorkflowJobActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for PrintWorkflowJobActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for PrintWorkflowJobActivatedEventArgs {} unsafe impl ::core::marker::Send for PrintWorkflowJobActivatedEventArgs {} unsafe impl ::core::marker::Sync for PrintWorkflowJobActivatedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintWorkflowJobBackgroundSession(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintWorkflowJobBackgroundSession, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PrintWorkflowJobBackgroundSession { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -1025,19 +715,17 @@ impl ::windows_core::RuntimeType for PrintWorkflowJobBackgroundSession { } unsafe impl ::windows_core::Interface for PrintWorkflowJobBackgroundSession { type Vtable = IPrintWorkflowJobBackgroundSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintWorkflowJobBackgroundSession { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintWorkflowJobBackgroundSession { const NAME: &'static str = "Windows.Graphics.Printing.Workflow.PrintWorkflowJobBackgroundSession"; } -::windows_core::imp::interface_hierarchy!(PrintWorkflowJobBackgroundSession, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PrintWorkflowJobBackgroundSession {} unsafe impl ::core::marker::Sync for PrintWorkflowJobBackgroundSession {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintWorkflowJobNotificationEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintWorkflowJobNotificationEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PrintWorkflowJobNotificationEventArgs { pub fn Configuration(&self) -> ::windows_core::Result { let this = self; @@ -1066,19 +754,17 @@ impl ::windows_core::RuntimeType for PrintWorkflowJobNotificationEventArgs { } unsafe impl ::windows_core::Interface for PrintWorkflowJobNotificationEventArgs { type Vtable = IPrintWorkflowJobNotificationEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintWorkflowJobNotificationEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintWorkflowJobNotificationEventArgs { const NAME: &'static str = "Windows.Graphics.Printing.Workflow.PrintWorkflowJobNotificationEventArgs"; } -::windows_core::imp::interface_hierarchy!(PrintWorkflowJobNotificationEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PrintWorkflowJobNotificationEventArgs {} unsafe impl ::core::marker::Sync for PrintWorkflowJobNotificationEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintWorkflowJobStartingEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintWorkflowJobStartingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PrintWorkflowJobStartingEventArgs { pub fn Configuration(&self) -> ::windows_core::Result { let this = self; @@ -1113,19 +799,17 @@ impl ::windows_core::RuntimeType for PrintWorkflowJobStartingEventArgs { } unsafe impl ::windows_core::Interface for PrintWorkflowJobStartingEventArgs { type Vtable = IPrintWorkflowJobStartingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintWorkflowJobStartingEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintWorkflowJobStartingEventArgs { const NAME: &'static str = "Windows.Graphics.Printing.Workflow.PrintWorkflowJobStartingEventArgs"; } -::windows_core::imp::interface_hierarchy!(PrintWorkflowJobStartingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PrintWorkflowJobStartingEventArgs {} unsafe impl ::core::marker::Sync for PrintWorkflowJobStartingEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintWorkflowJobTriggerDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintWorkflowJobTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PrintWorkflowJobTriggerDetails { pub fn PrintWorkflowJobSession(&self) -> ::windows_core::Result { let this = self; @@ -1140,19 +824,17 @@ impl ::windows_core::RuntimeType for PrintWorkflowJobTriggerDetails { } unsafe impl ::windows_core::Interface for PrintWorkflowJobTriggerDetails { type Vtable = IPrintWorkflowJobTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintWorkflowJobTriggerDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintWorkflowJobTriggerDetails { const NAME: &'static str = "Windows.Graphics.Printing.Workflow.PrintWorkflowJobTriggerDetails"; } -::windows_core::imp::interface_hierarchy!(PrintWorkflowJobTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PrintWorkflowJobTriggerDetails {} unsafe impl ::core::marker::Sync for PrintWorkflowJobTriggerDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintWorkflowJobUISession(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintWorkflowJobUISession, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PrintWorkflowJobUISession { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -1199,29 +881,27 @@ impl ::windows_core::RuntimeType for PrintWorkflowJobUISession { } unsafe impl ::windows_core::Interface for PrintWorkflowJobUISession { type Vtable = IPrintWorkflowJobUISession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintWorkflowJobUISession { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintWorkflowJobUISession { const NAME: &'static str = "Windows.Graphics.Printing.Workflow.PrintWorkflowJobUISession"; } -::windows_core::imp::interface_hierarchy!(PrintWorkflowJobUISession, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PrintWorkflowJobUISession {} unsafe impl ::core::marker::Sync for PrintWorkflowJobUISession {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintWorkflowObjectModelSourceFileContent(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintWorkflowObjectModelSourceFileContent, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PrintWorkflowObjectModelSourceFileContent { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn CreateInstance(xpsstream: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IPrintWorkflowObjectModelSourceFileContentFactory(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateInstance)(::windows_core::Interface::as_raw(this), xpsstream.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateInstance)(::windows_core::Interface::as_raw(this), xpsstream.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -1235,51 +915,47 @@ impl ::windows_core::RuntimeType for PrintWorkflowObjectModelSourceFileContent { } unsafe impl ::windows_core::Interface for PrintWorkflowObjectModelSourceFileContent { type Vtable = IPrintWorkflowObjectModelSourceFileContent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintWorkflowObjectModelSourceFileContent { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintWorkflowObjectModelSourceFileContent { const NAME: &'static str = "Windows.Graphics.Printing.Workflow.PrintWorkflowObjectModelSourceFileContent"; } -::windows_core::imp::interface_hierarchy!(PrintWorkflowObjectModelSourceFileContent, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PrintWorkflowObjectModelSourceFileContent {} unsafe impl ::core::marker::Sync for PrintWorkflowObjectModelSourceFileContent {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintWorkflowObjectModelTargetPackage(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintWorkflowObjectModelTargetPackage, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PrintWorkflowObjectModelTargetPackage {} impl ::windows_core::RuntimeType for PrintWorkflowObjectModelTargetPackage { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_class::(); } unsafe impl ::windows_core::Interface for PrintWorkflowObjectModelTargetPackage { type Vtable = IPrintWorkflowObjectModelTargetPackage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintWorkflowObjectModelTargetPackage { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintWorkflowObjectModelTargetPackage { const NAME: &'static str = "Windows.Graphics.Printing.Workflow.PrintWorkflowObjectModelTargetPackage"; } -::windows_core::imp::interface_hierarchy!(PrintWorkflowObjectModelTargetPackage, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PrintWorkflowObjectModelTargetPackage {} unsafe impl ::core::marker::Sync for PrintWorkflowObjectModelTargetPackage {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintWorkflowPdlConverter(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintWorkflowPdlConverter, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PrintWorkflowPdlConverter { #[doc = "Required features: `\"Graphics_Printing_PrintTicket\"`, `\"Storage_Streams\"`"] #[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::TryIntoParam, - P2: ::windows_core::TryIntoParam, + P1: ::windows_core::IntoParam, + P2: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), outputstream.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) } } #[doc = "Required features: `\"Graphics_Printing_PrintTicket\"`, `\"Storage_Streams\"`"] @@ -1287,13 +963,13 @@ impl PrintWorkflowPdlConverter { pub fn ConvertPdlAsync2(&self, printticket: P0, inputstream: P1, outputstream: P2, hostbasedprocessingoperations: PdlConversionHostBasedProcessingOperations) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam, - P2: ::windows_core::TryIntoParam, + P1: ::windows_core::IntoParam, + P2: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), outputstream.try_into_param()?.abi(), hostbasedprocessingoperations, &mut result__).from_abi(result__) + (::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__).from_abi(result__) } } } @@ -1302,19 +978,17 @@ impl ::windows_core::RuntimeType for PrintWorkflowPdlConverter { } unsafe impl ::windows_core::Interface for PrintWorkflowPdlConverter { type Vtable = IPrintWorkflowPdlConverter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintWorkflowPdlConverter { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintWorkflowPdlConverter { const NAME: &'static str = "Windows.Graphics.Printing.Workflow.PrintWorkflowPdlConverter"; } -::windows_core::imp::interface_hierarchy!(PrintWorkflowPdlConverter, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PrintWorkflowPdlConverter {} unsafe impl ::core::marker::Sync for PrintWorkflowPdlConverter {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintWorkflowPdlDataAvailableEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintWorkflowPdlDataAvailableEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PrintWorkflowPdlDataAvailableEventArgs { pub fn Configuration(&self) -> ::windows_core::Result { let this = self; @@ -1350,19 +1024,17 @@ impl ::windows_core::RuntimeType for PrintWorkflowPdlDataAvailableEventArgs { } unsafe impl ::windows_core::Interface for PrintWorkflowPdlDataAvailableEventArgs { type Vtable = IPrintWorkflowPdlDataAvailableEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintWorkflowPdlDataAvailableEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintWorkflowPdlDataAvailableEventArgs { const NAME: &'static str = "Windows.Graphics.Printing.Workflow.PrintWorkflowPdlDataAvailableEventArgs"; } -::windows_core::imp::interface_hierarchy!(PrintWorkflowPdlDataAvailableEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PrintWorkflowPdlDataAvailableEventArgs {} unsafe impl ::core::marker::Sync for PrintWorkflowPdlDataAvailableEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintWorkflowPdlModificationRequestedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintWorkflowPdlModificationRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PrintWorkflowPdlModificationRequestedEventArgs { pub fn Configuration(&self) -> ::windows_core::Result { let this = self; @@ -1403,24 +1075,24 @@ 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::TryIntoParam>>, + P0: ::windows_core::IntoParam>>, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateJobOnPrinterWithAttributes)(::windows_core::Interface::as_raw(this), jobattributes.try_into_param()?.abi(), ::core::mem::transmute_copy(targetcontenttype), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateJobOnPrinterWithAttributes)(::windows_core::Interface::as_raw(this), jobattributes.into_param().abi(), ::core::mem::transmute_copy(targetcontenttype), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn CreateJobOnPrinterWithAttributesBuffer(&self, jobattributesbuffer: P0, targetcontenttype: &::windows_core::HSTRING) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateJobOnPrinterWithAttributesBuffer)(::windows_core::Interface::as_raw(this), jobattributesbuffer.try_into_param()?.abi(), ::core::mem::transmute_copy(targetcontenttype), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateJobOnPrinterWithAttributesBuffer)(::windows_core::Interface::as_raw(this), jobattributesbuffer.into_param().abi(), ::core::mem::transmute_copy(targetcontenttype), &mut result__).from_abi(result__) } } pub fn GetPdlConverter(&self, conversiontype: PrintWorkflowPdlConversionType) -> ::windows_core::Result { @@ -1441,26 +1113,26 @@ 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::TryIntoParam>>, - P1: ::windows_core::TryIntoParam>>, + P0: ::windows_core::IntoParam>>, + P1: ::windows_core::IntoParam>>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), ::core::mem::transmute_copy(targetcontenttype), operationattributes.try_into_param()?.abi(), jobattributesmergepolicy, operationattributesmergepolicy, &mut result__).from_abi(result__) + (::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__).from_abi(result__) } } #[doc = "Required features: `\"Storage_Streams\"`"] #[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::TryIntoParam, - P1: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), ::core::mem::transmute_copy(targetcontenttype), operationattributesbuffer.try_into_param()?.abi(), jobattributesmergepolicy, operationattributesmergepolicy, &mut result__).from_abi(result__) + (::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__).from_abi(result__) } } } @@ -1469,19 +1141,17 @@ impl ::windows_core::RuntimeType for PrintWorkflowPdlModificationRequestedEventA } unsafe impl ::windows_core::Interface for PrintWorkflowPdlModificationRequestedEventArgs { type Vtable = IPrintWorkflowPdlModificationRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintWorkflowPdlModificationRequestedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintWorkflowPdlModificationRequestedEventArgs { const NAME: &'static str = "Windows.Graphics.Printing.Workflow.PrintWorkflowPdlModificationRequestedEventArgs"; } -::windows_core::imp::interface_hierarchy!(PrintWorkflowPdlModificationRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PrintWorkflowPdlModificationRequestedEventArgs {} unsafe impl ::core::marker::Sync for PrintWorkflowPdlModificationRequestedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintWorkflowPdlSourceContent(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintWorkflowPdlSourceContent, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PrintWorkflowPdlSourceContent { pub fn ContentType(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1514,19 +1184,17 @@ impl ::windows_core::RuntimeType for PrintWorkflowPdlSourceContent { } unsafe impl ::windows_core::Interface for PrintWorkflowPdlSourceContent { type Vtable = IPrintWorkflowPdlSourceContent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintWorkflowPdlSourceContent { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintWorkflowPdlSourceContent { const NAME: &'static str = "Windows.Graphics.Printing.Workflow.PrintWorkflowPdlSourceContent"; } -::windows_core::imp::interface_hierarchy!(PrintWorkflowPdlSourceContent, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PrintWorkflowPdlSourceContent {} unsafe impl ::core::marker::Sync for PrintWorkflowPdlSourceContent {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintWorkflowPdlTargetStream(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintWorkflowPdlTargetStream, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PrintWorkflowPdlTargetStream { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] @@ -1547,19 +1215,17 @@ impl ::windows_core::RuntimeType for PrintWorkflowPdlTargetStream { } unsafe impl ::windows_core::Interface for PrintWorkflowPdlTargetStream { type Vtable = IPrintWorkflowPdlTargetStream_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintWorkflowPdlTargetStream { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintWorkflowPdlTargetStream { const NAME: &'static str = "Windows.Graphics.Printing.Workflow.PrintWorkflowPdlTargetStream"; } -::windows_core::imp::interface_hierarchy!(PrintWorkflowPdlTargetStream, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PrintWorkflowPdlTargetStream {} unsafe impl ::core::marker::Sync for PrintWorkflowPdlTargetStream {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintWorkflowPrinterJob(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintWorkflowPrinterJob, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PrintWorkflowPrinterJob { pub fn JobId(&self) -> ::windows_core::Result { let this = self; @@ -1597,48 +1263,48 @@ impl PrintWorkflowPrinterJob { #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] pub fn GetJobAttributesAsBuffer(&self, attributenames: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).GetJobAttributesAsBuffer)(::windows_core::Interface::as_raw(this), attributenames.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).GetJobAttributesAsBuffer)(::windows_core::Interface::as_raw(this), attributenames.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Devices_Printers\"`, `\"Foundation_Collections\"`"] #[cfg(all(feature = "Devices_Printers", feature = "Foundation_Collections"))] pub fn GetJobAttributes(&self, attributenames: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).GetJobAttributes)(::windows_core::Interface::as_raw(this), attributenames.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).GetJobAttributes)(::windows_core::Interface::as_raw(this), attributenames.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Devices_Printers\"`, `\"Storage_Streams\"`"] #[cfg(all(feature = "Devices_Printers", feature = "Storage_Streams"))] pub fn SetJobAttributesFromBuffer(&self, jobattributesbuffer: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).SetJobAttributesFromBuffer)(::windows_core::Interface::as_raw(this), jobattributesbuffer.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SetJobAttributesFromBuffer)(::windows_core::Interface::as_raw(this), jobattributesbuffer.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Devices_Printers\"`, `\"Foundation_Collections\"`"] #[cfg(all(feature = "Devices_Printers", feature = "Foundation_Collections"))] pub fn SetJobAttributes(&self, jobattributes: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>>, + P0: ::windows_core::IntoParam>>, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).SetJobAttributes)(::windows_core::Interface::as_raw(this), jobattributes.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SetJobAttributes)(::windows_core::Interface::as_raw(this), jobattributes.into_param().abi(), &mut result__).from_abi(result__) } } } @@ -1647,19 +1313,17 @@ impl ::windows_core::RuntimeType for PrintWorkflowPrinterJob { } unsafe impl ::windows_core::Interface for PrintWorkflowPrinterJob { type Vtable = IPrintWorkflowPrinterJob_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintWorkflowPrinterJob { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintWorkflowPrinterJob { const NAME: &'static str = "Windows.Graphics.Printing.Workflow.PrintWorkflowPrinterJob"; } -::windows_core::imp::interface_hierarchy!(PrintWorkflowPrinterJob, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PrintWorkflowPrinterJob {} unsafe impl ::core::marker::Sync for PrintWorkflowPrinterJob {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintWorkflowSourceContent(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintWorkflowSourceContent, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PrintWorkflowSourceContent { #[doc = "Required features: `\"Graphics_Printing_PrintTicket\"`"] #[cfg(feature = "Graphics_Printing_PrintTicket")] @@ -1690,19 +1354,17 @@ impl ::windows_core::RuntimeType for PrintWorkflowSourceContent { } unsafe impl ::windows_core::Interface for PrintWorkflowSourceContent { type Vtable = IPrintWorkflowSourceContent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintWorkflowSourceContent { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintWorkflowSourceContent { const NAME: &'static str = "Windows.Graphics.Printing.Workflow.PrintWorkflowSourceContent"; } -::windows_core::imp::interface_hierarchy!(PrintWorkflowSourceContent, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PrintWorkflowSourceContent {} unsafe impl ::core::marker::Sync for PrintWorkflowSourceContent {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintWorkflowSpoolStreamContent(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintWorkflowSpoolStreamContent, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PrintWorkflowSpoolStreamContent { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] @@ -1719,19 +1381,17 @@ impl ::windows_core::RuntimeType for PrintWorkflowSpoolStreamContent { } unsafe impl ::windows_core::Interface for PrintWorkflowSpoolStreamContent { type Vtable = IPrintWorkflowSpoolStreamContent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintWorkflowSpoolStreamContent { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintWorkflowSpoolStreamContent { const NAME: &'static str = "Windows.Graphics.Printing.Workflow.PrintWorkflowSpoolStreamContent"; } -::windows_core::imp::interface_hierarchy!(PrintWorkflowSpoolStreamContent, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PrintWorkflowSpoolStreamContent {} unsafe impl ::core::marker::Sync for PrintWorkflowSpoolStreamContent {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintWorkflowStreamTarget(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintWorkflowStreamTarget, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PrintWorkflowStreamTarget { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] @@ -1748,19 +1408,17 @@ impl ::windows_core::RuntimeType for PrintWorkflowStreamTarget { } unsafe impl ::windows_core::Interface for PrintWorkflowStreamTarget { type Vtable = IPrintWorkflowStreamTarget_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintWorkflowStreamTarget { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintWorkflowStreamTarget { const NAME: &'static str = "Windows.Graphics.Printing.Workflow.PrintWorkflowStreamTarget"; } -::windows_core::imp::interface_hierarchy!(PrintWorkflowStreamTarget, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PrintWorkflowStreamTarget {} unsafe impl ::core::marker::Sync for PrintWorkflowStreamTarget {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintWorkflowSubmittedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintWorkflowSubmittedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PrintWorkflowSubmittedEventArgs { pub fn Operation(&self) -> ::windows_core::Result { let this = self; @@ -1794,19 +1452,17 @@ impl ::windows_core::RuntimeType for PrintWorkflowSubmittedEventArgs { } unsafe impl ::windows_core::Interface for PrintWorkflowSubmittedEventArgs { type Vtable = IPrintWorkflowSubmittedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintWorkflowSubmittedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintWorkflowSubmittedEventArgs { const NAME: &'static str = "Windows.Graphics.Printing.Workflow.PrintWorkflowSubmittedEventArgs"; } -::windows_core::imp::interface_hierarchy!(PrintWorkflowSubmittedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PrintWorkflowSubmittedEventArgs {} unsafe impl ::core::marker::Sync for PrintWorkflowSubmittedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintWorkflowSubmittedOperation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintWorkflowSubmittedOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PrintWorkflowSubmittedOperation { pub fn Complete(&self, status: PrintWorkflowSubmittedStatus) -> ::windows_core::Result<()> { let this = self; @@ -1832,19 +1488,17 @@ impl ::windows_core::RuntimeType for PrintWorkflowSubmittedOperation { } unsafe impl ::windows_core::Interface for PrintWorkflowSubmittedOperation { type Vtable = IPrintWorkflowSubmittedOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintWorkflowSubmittedOperation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintWorkflowSubmittedOperation { const NAME: &'static str = "Windows.Graphics.Printing.Workflow.PrintWorkflowSubmittedOperation"; } -::windows_core::imp::interface_hierarchy!(PrintWorkflowSubmittedOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PrintWorkflowSubmittedOperation {} unsafe impl ::core::marker::Sync for PrintWorkflowSubmittedOperation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintWorkflowTarget(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintWorkflowTarget, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PrintWorkflowTarget { pub fn TargetAsStream(&self) -> ::windows_core::Result { let this = self; @@ -1866,19 +1520,17 @@ impl ::windows_core::RuntimeType for PrintWorkflowTarget { } unsafe impl ::windows_core::Interface for PrintWorkflowTarget { type Vtable = IPrintWorkflowTarget_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintWorkflowTarget { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintWorkflowTarget { const NAME: &'static str = "Windows.Graphics.Printing.Workflow.PrintWorkflowTarget"; } -::windows_core::imp::interface_hierarchy!(PrintWorkflowTarget, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PrintWorkflowTarget {} unsafe impl ::core::marker::Sync for PrintWorkflowTarget {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintWorkflowTriggerDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintWorkflowTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PrintWorkflowTriggerDetails { pub fn PrintWorkflowSession(&self) -> ::windows_core::Result { let this = self; @@ -1893,24 +1545,24 @@ impl ::windows_core::RuntimeType for PrintWorkflowTriggerDetails { } unsafe impl ::windows_core::Interface for PrintWorkflowTriggerDetails { type Vtable = IPrintWorkflowTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintWorkflowTriggerDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintWorkflowTriggerDetails { const NAME: &'static str = "Windows.Graphics.Printing.Workflow.PrintWorkflowTriggerDetails"; } -::windows_core::imp::interface_hierarchy!(PrintWorkflowTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PrintWorkflowTriggerDetails {} unsafe impl ::core::marker::Sync for PrintWorkflowTriggerDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintWorkflowUIActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintWorkflowUIActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::required_hierarchy!(PrintWorkflowUIActivatedEventArgs, super::super::super::ApplicationModel::Activation::IActivatedEventArgs, super::super::super::ApplicationModel::Activation::IActivatedEventArgsWithUser); impl PrintWorkflowUIActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1919,7 +1571,7 @@ impl PrintWorkflowUIActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1928,7 +1580,7 @@ impl PrintWorkflowUIActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1937,7 +1589,7 @@ impl PrintWorkflowUIActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`, `\"System\"`"] #[cfg(all(feature = "ApplicationModel_Activation", feature = "System"))] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1956,23 +1608,17 @@ impl ::windows_core::RuntimeType for PrintWorkflowUIActivatedEventArgs { } unsafe impl ::windows_core::Interface for PrintWorkflowUIActivatedEventArgs { type Vtable = IPrintWorkflowUIActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintWorkflowUIActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintWorkflowUIActivatedEventArgs { const NAME: &'static str = "Windows.Graphics.Printing.Workflow.PrintWorkflowUIActivatedEventArgs"; } -::windows_core::imp::interface_hierarchy!(PrintWorkflowUIActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for PrintWorkflowUIActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for PrintWorkflowUIActivatedEventArgs {} unsafe impl ::core::marker::Send for PrintWorkflowUIActivatedEventArgs {} unsafe impl ::core::marker::Sync for PrintWorkflowUIActivatedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintWorkflowUILauncher(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintWorkflowUILauncher, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PrintWorkflowUILauncher { pub fn IsUILaunchEnabled(&self) -> ::windows_core::Result { let this = self; @@ -1994,19 +1640,17 @@ impl ::windows_core::RuntimeType for PrintWorkflowUILauncher { } unsafe impl ::windows_core::Interface for PrintWorkflowUILauncher { type Vtable = IPrintWorkflowUILauncher_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintWorkflowUILauncher { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintWorkflowUILauncher { const NAME: &'static str = "Windows.Graphics.Printing.Workflow.PrintWorkflowUILauncher"; } -::windows_core::imp::interface_hierarchy!(PrintWorkflowUILauncher, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PrintWorkflowUILauncher {} unsafe impl ::core::marker::Sync for PrintWorkflowUILauncher {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintWorkflowXpsDataAvailableEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintWorkflowXpsDataAvailableEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PrintWorkflowXpsDataAvailableEventArgs { pub fn Operation(&self) -> ::windows_core::Result { let this = self; @@ -2028,14 +1672,11 @@ impl ::windows_core::RuntimeType for PrintWorkflowXpsDataAvailableEventArgs { } unsafe impl ::windows_core::Interface for PrintWorkflowXpsDataAvailableEventArgs { type Vtable = IPrintWorkflowXpsDataAvailableEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintWorkflowXpsDataAvailableEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintWorkflowXpsDataAvailableEventArgs { const NAME: &'static str = "Windows.Graphics.Printing.Workflow.PrintWorkflowXpsDataAvailableEventArgs"; } -::windows_core::imp::interface_hierarchy!(PrintWorkflowXpsDataAvailableEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PrintWorkflowXpsDataAvailableEventArgs {} unsafe impl ::core::marker::Sync for PrintWorkflowXpsDataAvailableEventArgs {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Graphics/Printing/impl.rs b/crates/libs/windows/src/Windows/Graphics/Printing/impl.rs index b3a7f1a248..823bb3037d 100644 --- a/crates/libs/windows/src/Windows/Graphics/Printing/impl.rs +++ b/crates/libs/windows/src/Windows/Graphics/Printing/impl.rs @@ -7,7 +7,7 @@ impl IPrintDocumentSource_Vtbl { Self { base__: ::windows_core::IInspectable_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPrintTaskOptionsCore_Impl: Sized { @@ -35,7 +35,7 @@ impl IPrintTaskOptionsCore_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPrintTaskOptionsCoreProperties_Impl: Sized { @@ -296,7 +296,7 @@ impl IPrintTaskOptionsCoreProperties_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -329,6 +329,6 @@ impl IPrintTaskOptionsCoreUIConfiguration_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/Graphics/Printing/mod.rs b/crates/libs/windows/src/Windows/Graphics/Printing/mod.rs index bc128bd2ce..73ab40df89 100644 --- a/crates/libs/windows/src/Windows/Graphics/Printing/mod.rs +++ b/crates/libs/windows/src/Windows/Graphics/Printing/mod.rs @@ -10,35 +10,18 @@ pub mod PrintTicket; #[cfg(feature = "Graphics_Printing_Workflow")] #[doc = "Required features: `\"Graphics_Printing_Workflow\"`"] pub mod Workflow; -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintDocumentSource(::windows_core::IUnknown); -impl IPrintDocumentSource {} +::windows_core::imp::com_interface!(IPrintDocumentSource, IPrintDocumentSource_Vtbl, 0xdedc0c30_f1eb_47df_aae6_ed5427511f01); ::windows_core::imp::interface_hierarchy!(IPrintDocumentSource, ::windows_core::IUnknown, ::windows_core::IInspectable); +impl IPrintDocumentSource {} impl ::windows_core::RuntimeType for IPrintDocumentSource { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IPrintDocumentSource { - type Vtable = IPrintDocumentSource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintDocumentSource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdedc0c30_f1eb_47df_aae6_ed5427511f01); -} #[repr(C)] #[doc(hidden)] pub struct IPrintDocumentSource_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintManager(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintManager { - type Vtable = IPrintManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xff2a9694_8c99_44fd_ae4a_19d9aa9a0f0a); -} +::windows_core::imp::com_interface!(IPrintManager, IPrintManager_Vtbl, 0xff2a9694_8c99_44fd_ae4a_19d9aa9a0f0a); #[repr(C)] #[doc(hidden)] pub struct IPrintManager_Vtbl { @@ -46,16 +29,7 @@ pub struct IPrintManager_Vtbl { pub PrintTaskRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventhandler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemovePrintTaskRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventcookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintManagerStatic(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintManagerStatic { - type Vtable = IPrintManagerStatic_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintManagerStatic { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x58185dcd_e634_4654_84f0_e0152a8217ac); -} +::windows_core::imp::com_interface!(IPrintManagerStatic, IPrintManagerStatic_Vtbl, 0x58185dcd_e634_4654_84f0_e0152a8217ac); #[repr(C)] #[doc(hidden)] pub struct IPrintManagerStatic_Vtbl { @@ -63,32 +37,14 @@ pub struct IPrintManagerStatic_Vtbl { pub GetForCurrentView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ShowPrintUIAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintManagerStatic2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintManagerStatic2 { - type Vtable = IPrintManagerStatic2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintManagerStatic2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x35a99955_e6ab_4139_9abd_b86a729b3598); -} +::windows_core::imp::com_interface!(IPrintManagerStatic2, IPrintManagerStatic2_Vtbl, 0x35a99955_e6ab_4139_9abd_b86a729b3598); #[repr(C)] #[doc(hidden)] pub struct IPrintManagerStatic2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub IsSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintPageInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintPageInfo { - type Vtable = IPrintPageInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintPageInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdd4be9c9_a6a1_4ada_930e_da872a4f23d3); -} +::windows_core::imp::com_interface!(IPrintPageInfo, IPrintPageInfo_Vtbl, 0xdd4be9c9_a6a1_4ada_930e_da872a4f23d3); #[repr(C)] #[doc(hidden)] pub struct IPrintPageInfo_Vtbl { @@ -104,16 +60,7 @@ pub struct IPrintPageInfo_Vtbl { pub SetOrientation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: PrintOrientation) -> ::windows_core::HRESULT, pub Orientation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut PrintOrientation) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintPageRange(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintPageRange { - type Vtable = IPrintPageRange_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintPageRange { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf8a06c54_6e7c_51c5_57fd_0660c2d71513); -} +::windows_core::imp::com_interface!(IPrintPageRange, IPrintPageRange_Vtbl, 0xf8a06c54_6e7c_51c5_57fd_0660c2d71513); #[repr(C)] #[doc(hidden)] pub struct IPrintPageRange_Vtbl { @@ -121,16 +68,7 @@ pub struct IPrintPageRange_Vtbl { pub FirstPageNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows_core::HRESULT, pub LastPageNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintPageRangeFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintPageRangeFactory { - type Vtable = IPrintPageRangeFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintPageRangeFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x408fd45f_e047_5f85_7129_fb085a4fad14); -} +::windows_core::imp::com_interface!(IPrintPageRangeFactory, IPrintPageRangeFactory_Vtbl, 0x408fd45f_e047_5f85_7129_fb085a4fad14); #[repr(C)] #[doc(hidden)] pub struct IPrintPageRangeFactory_Vtbl { @@ -138,16 +76,7 @@ pub struct IPrintPageRangeFactory_Vtbl { pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, firstpage: i32, lastpage: i32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateWithSinglePage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, page: i32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintPageRangeOptions(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintPageRangeOptions { - type Vtable = IPrintPageRangeOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintPageRangeOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xce6db728_1357_46b2_a923_79f995f448fc); -} +::windows_core::imp::com_interface!(IPrintPageRangeOptions, IPrintPageRangeOptions_Vtbl, 0xce6db728_1357_46b2_a923_79f995f448fc); #[repr(C)] #[doc(hidden)] pub struct IPrintPageRangeOptions_Vtbl { @@ -159,16 +88,7 @@ pub struct IPrintPageRangeOptions_Vtbl { pub SetAllowCustomSetOfPages: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, pub AllowCustomSetOfPages: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintTask(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintTask { - type Vtable = IPrintTask_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintTask { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x61d80247_6cf6_4fad_84e2_a5e82e2d4ceb); -} +::windows_core::imp::com_interface!(IPrintTask, IPrintTask_Vtbl, 0x61d80247_6cf6_4fad_84e2_a5e82e2d4ceb); #[repr(C)] #[doc(hidden)] pub struct IPrintTask_Vtbl { @@ -188,16 +108,7 @@ pub struct IPrintTask_Vtbl { pub Completed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventhandler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveCompleted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventcookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintTask2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintTask2 { - type Vtable = IPrintTask2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintTask2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x36234877_3e53_4d9d_8f5e_316ac8dedae1); -} +::windows_core::imp::com_interface!(IPrintTask2, IPrintTask2_Vtbl, 0x36234877_3e53_4d9d_8f5e_316ac8dedae1); #[repr(C)] #[doc(hidden)] pub struct IPrintTask2_Vtbl { @@ -205,32 +116,14 @@ pub struct IPrintTask2_Vtbl { pub SetIsPreviewEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, pub IsPreviewEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintTaskCompletedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintTaskCompletedEventArgs { - type Vtable = IPrintTaskCompletedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintTaskCompletedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5bcd34af_24e9_4c10_8d07_14c346ba3fce); -} +::windows_core::imp::com_interface!(IPrintTaskCompletedEventArgs, IPrintTaskCompletedEventArgs_Vtbl, 0x5bcd34af_24e9_4c10_8d07_14c346ba3fce); #[repr(C)] #[doc(hidden)] pub struct IPrintTaskCompletedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Completion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut PrintTaskCompletion) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintTaskOptions(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintTaskOptions { - type Vtable = IPrintTaskOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintTaskOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5a0a66bb_d289_41bb_96dd_57e28338ae3f); -} +::windows_core::imp::com_interface!(IPrintTaskOptions, IPrintTaskOptions_Vtbl, 0x5a0a66bb_d289_41bb_96dd_57e28338ae3f); #[repr(C)] #[doc(hidden)] pub struct IPrintTaskOptions_Vtbl { @@ -242,16 +135,7 @@ pub struct IPrintTaskOptions_Vtbl { #[cfg(not(feature = "Storage_Streams"))] GetPagePrintTicket: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintTaskOptions2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintTaskOptions2 { - type Vtable = IPrintTaskOptions2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintTaskOptions2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeb9b1606_9a36_4b59_8617_b217849262e1); -} +::windows_core::imp::com_interface!(IPrintTaskOptions2, IPrintTaskOptions2_Vtbl, 0xeb9b1606_9a36_4b59_8617_b217849262e1); #[repr(C)] #[doc(hidden)] pub struct IPrintTaskOptions2_Vtbl { @@ -262,9 +146,8 @@ pub struct IPrintTaskOptions2_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] CustomPageRanges: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintTaskOptionsCore(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPrintTaskOptionsCore, IPrintTaskOptionsCore_Vtbl, 0x1bdbb474_4ed1_41eb_be3c_72d18ed67337); +::windows_core::imp::interface_hierarchy!(IPrintTaskOptionsCore, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IPrintTaskOptionsCore { pub fn GetPageDescription(&self, jobpagenumber: u32) -> ::windows_core::Result { let this = self; @@ -274,25 +157,17 @@ impl IPrintTaskOptionsCore { } } } -::windows_core::imp::interface_hierarchy!(IPrintTaskOptionsCore, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IPrintTaskOptionsCore { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IPrintTaskOptionsCore { - type Vtable = IPrintTaskOptionsCore_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintTaskOptionsCore { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1bdbb474_4ed1_41eb_be3c_72d18ed67337); -} #[repr(C)] #[doc(hidden)] pub struct IPrintTaskOptionsCore_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetPageDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, jobpagenumber: u32, result__: *mut PrintPageDescription) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintTaskOptionsCoreProperties(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPrintTaskOptionsCoreProperties, IPrintTaskOptionsCoreProperties_Vtbl, 0xc1b71832_9e93_4e55_814b_3326a59efce1); +::windows_core::imp::interface_hierarchy!(IPrintTaskOptionsCoreProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IPrintTaskOptionsCoreProperties { pub fn SetMediaSize(&self, value: PrintMediaSize) -> ::windows_core::Result<()> { let this = self; @@ -430,16 +305,9 @@ impl IPrintTaskOptionsCoreProperties { } } } -::windows_core::imp::interface_hierarchy!(IPrintTaskOptionsCoreProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IPrintTaskOptionsCoreProperties { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IPrintTaskOptionsCoreProperties { - type Vtable = IPrintTaskOptionsCoreProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintTaskOptionsCoreProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc1b71832_9e93_4e55_814b_3326a59efce1); -} #[repr(C)] #[doc(hidden)] pub struct IPrintTaskOptionsCoreProperties_Vtbl { @@ -469,9 +337,8 @@ pub struct IPrintTaskOptionsCoreProperties_Vtbl { pub SetNumberOfCopies: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: u32) -> ::windows_core::HRESULT, pub NumberOfCopies: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintTaskOptionsCoreUIConfiguration(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPrintTaskOptionsCoreUIConfiguration, IPrintTaskOptionsCoreUIConfiguration_Vtbl, 0x62e69e23_9a1e_4336_b74f_3cc7f4cff709); +::windows_core::imp::interface_hierarchy!(IPrintTaskOptionsCoreUIConfiguration, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IPrintTaskOptionsCoreUIConfiguration { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -483,16 +350,9 @@ impl IPrintTaskOptionsCoreUIConfiguration { } } } -::windows_core::imp::interface_hierarchy!(IPrintTaskOptionsCoreUIConfiguration, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IPrintTaskOptionsCoreUIConfiguration { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IPrintTaskOptionsCoreUIConfiguration { - type Vtable = IPrintTaskOptionsCoreUIConfiguration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintTaskOptionsCoreUIConfiguration { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x62e69e23_9a1e_4336_b74f_3cc7f4cff709); -} #[repr(C)] #[doc(hidden)] pub struct IPrintTaskOptionsCoreUIConfiguration_Vtbl { @@ -502,32 +362,14 @@ pub struct IPrintTaskOptionsCoreUIConfiguration_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] DisplayedOptions: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintTaskProgressingEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintTaskProgressingEventArgs { - type Vtable = IPrintTaskProgressingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintTaskProgressingEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x810cd3cb_b410_4282_a073_5ac378234174); -} +::windows_core::imp::com_interface!(IPrintTaskProgressingEventArgs, IPrintTaskProgressingEventArgs_Vtbl, 0x810cd3cb_b410_4282_a073_5ac378234174); #[repr(C)] #[doc(hidden)] pub struct IPrintTaskProgressingEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub DocumentPageCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintTaskRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintTaskRequest { - type Vtable = IPrintTaskRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintTaskRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6ff61e2e_2722_4240_a67c_f364849a17f3); -} +::windows_core::imp::com_interface!(IPrintTaskRequest, IPrintTaskRequest_Vtbl, 0x6ff61e2e_2722_4240_a67c_f364849a17f3); #[repr(C)] #[doc(hidden)] pub struct IPrintTaskRequest_Vtbl { @@ -536,48 +378,21 @@ pub struct IPrintTaskRequest_Vtbl { pub CreatePrintTask: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, title: ::std::mem::MaybeUninit<::windows_core::HSTRING>, handler: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintTaskRequestedDeferral(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintTaskRequestedDeferral { - type Vtable = IPrintTaskRequestedDeferral_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintTaskRequestedDeferral { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcfefb3f0_ce3e_42c7_9496_64800c622c44); -} +::windows_core::imp::com_interface!(IPrintTaskRequestedDeferral, IPrintTaskRequestedDeferral_Vtbl, 0xcfefb3f0_ce3e_42c7_9496_64800c622c44); #[repr(C)] #[doc(hidden)] pub struct IPrintTaskRequestedDeferral_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Complete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintTaskRequestedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintTaskRequestedEventArgs { - type Vtable = IPrintTaskRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintTaskRequestedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd0aff924_a31b_454c_a7b6_5d0cc522fc16); -} +::windows_core::imp::com_interface!(IPrintTaskRequestedEventArgs, IPrintTaskRequestedEventArgs_Vtbl, 0xd0aff924_a31b_454c_a7b6_5d0cc522fc16); #[repr(C)] #[doc(hidden)] pub struct IPrintTaskRequestedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Request: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintTaskSourceRequestedArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintTaskSourceRequestedArgs { - type Vtable = IPrintTaskSourceRequestedArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintTaskSourceRequestedArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf9f067be_f456_41f0_9c98_5ce73e851410); -} +::windows_core::imp::com_interface!(IPrintTaskSourceRequestedArgs, IPrintTaskSourceRequestedArgs_Vtbl, 0xf9f067be_f456_41f0_9c98_5ce73e851410); #[repr(C)] #[doc(hidden)] pub struct IPrintTaskSourceRequestedArgs_Vtbl { @@ -586,32 +401,14 @@ pub struct IPrintTaskSourceRequestedArgs_Vtbl { pub SetSource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, source: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintTaskSourceRequestedDeferral(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintTaskSourceRequestedDeferral { - type Vtable = IPrintTaskSourceRequestedDeferral_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintTaskSourceRequestedDeferral { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4a1560d1_6992_4d9d_8555_4ca4563fb166); -} +::windows_core::imp::com_interface!(IPrintTaskSourceRequestedDeferral, IPrintTaskSourceRequestedDeferral_Vtbl, 0x4a1560d1_6992_4d9d_8555_4ca4563fb166); #[repr(C)] #[doc(hidden)] pub struct IPrintTaskSourceRequestedDeferral_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Complete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintTaskTargetDeviceSupport(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintTaskTargetDeviceSupport { - type Vtable = IPrintTaskTargetDeviceSupport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintTaskTargetDeviceSupport { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x295d70c0_c2cb_4b7d_b0ea_93095091a220); -} +::windows_core::imp::com_interface!(IPrintTaskTargetDeviceSupport, IPrintTaskTargetDeviceSupport_Vtbl, 0x295d70c0_c2cb_4b7d_b0ea_93095091a220); #[repr(C)] #[doc(hidden)] pub struct IPrintTaskTargetDeviceSupport_Vtbl { @@ -621,16 +418,7 @@ pub struct IPrintTaskTargetDeviceSupport_Vtbl { pub SetIs3DManufacturingTargetEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, pub Is3DManufacturingTargetEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStandardPrintTaskOptionsStatic(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStandardPrintTaskOptionsStatic { - type Vtable = IStandardPrintTaskOptionsStatic_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStandardPrintTaskOptionsStatic { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb4483d26_0dd0_4cd4_baff_930fc7d6a574); -} +::windows_core::imp::com_interface!(IStandardPrintTaskOptionsStatic, IStandardPrintTaskOptionsStatic_Vtbl, 0xb4483d26_0dd0_4cd4_baff_930fc7d6a574); #[repr(C)] #[doc(hidden)] pub struct IStandardPrintTaskOptionsStatic_Vtbl { @@ -649,32 +437,14 @@ pub struct IStandardPrintTaskOptionsStatic_Vtbl { pub NUp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub InputBin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStandardPrintTaskOptionsStatic2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStandardPrintTaskOptionsStatic2 { - type Vtable = IStandardPrintTaskOptionsStatic2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStandardPrintTaskOptionsStatic2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3be38bf4_7a44_4269_9a52_81261e289ee9); -} +::windows_core::imp::com_interface!(IStandardPrintTaskOptionsStatic2, IStandardPrintTaskOptionsStatic2_Vtbl, 0x3be38bf4_7a44_4269_9a52_81261e289ee9); #[repr(C)] #[doc(hidden)] pub struct IStandardPrintTaskOptionsStatic2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Bordering: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStandardPrintTaskOptionsStatic3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStandardPrintTaskOptionsStatic3 { - type Vtable = IStandardPrintTaskOptionsStatic3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStandardPrintTaskOptionsStatic3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbbf68e86_3858_41b3_a799_55dd9888d475); -} +::windows_core::imp::com_interface!(IStandardPrintTaskOptionsStatic3, IStandardPrintTaskOptionsStatic3_Vtbl, 0xbbf68e86_3858_41b3_a799_55dd9888d475); #[repr(C)] #[doc(hidden)] pub struct IStandardPrintTaskOptionsStatic3_Vtbl { @@ -684,6 +454,7 @@ pub struct IStandardPrintTaskOptionsStatic3_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintManager(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintManager, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PrintManager { pub fn PrintTaskRequested(&self, eventhandler: P0) -> ::windows_core::Result where @@ -733,19 +504,17 @@ impl ::windows_core::RuntimeType for PrintManager { } unsafe impl ::windows_core::Interface for PrintManager { type Vtable = IPrintManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintManager { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintManager { const NAME: &'static str = "Windows.Graphics.Printing.PrintManager"; } -::windows_core::imp::interface_hierarchy!(PrintManager, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PrintManager {} unsafe impl ::core::marker::Sync for PrintManager {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintPageInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintPageInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PrintPageInfo { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -815,19 +584,17 @@ impl ::windows_core::RuntimeType for PrintPageInfo { } unsafe impl ::windows_core::Interface for PrintPageInfo { type Vtable = IPrintPageInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintPageInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintPageInfo { const NAME: &'static str = "Windows.Graphics.Printing.PrintPageInfo"; } -::windows_core::imp::interface_hierarchy!(PrintPageInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PrintPageInfo {} unsafe impl ::core::marker::Sync for PrintPageInfo {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintPageRange(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintPageRange, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PrintPageRange { pub fn FirstPageNumber(&self) -> ::windows_core::Result { let this = self; @@ -866,19 +633,17 @@ impl ::windows_core::RuntimeType for PrintPageRange { } unsafe impl ::windows_core::Interface for PrintPageRange { type Vtable = IPrintPageRange_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintPageRange { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintPageRange { const NAME: &'static str = "Windows.Graphics.Printing.PrintPageRange"; } -::windows_core::imp::interface_hierarchy!(PrintPageRange, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PrintPageRange {} unsafe impl ::core::marker::Sync for PrintPageRange {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintPageRangeOptions(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintPageRangeOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PrintPageRangeOptions { pub fn SetAllowAllPages(&self, value: bool) -> ::windows_core::Result<()> { let this = self; @@ -919,19 +684,17 @@ impl ::windows_core::RuntimeType for PrintPageRangeOptions { } unsafe impl ::windows_core::Interface for PrintPageRangeOptions { type Vtable = IPrintPageRangeOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintPageRangeOptions { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintPageRangeOptions { const NAME: &'static str = "Windows.Graphics.Printing.PrintPageRangeOptions"; } -::windows_core::imp::interface_hierarchy!(PrintPageRangeOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PrintPageRangeOptions {} unsafe impl ::core::marker::Sync for PrintPageRangeOptions {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintTask(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintTask, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PrintTask { #[doc = "Required features: `\"ApplicationModel_DataTransfer\"`"] #[cfg(feature = "ApplicationModel_DataTransfer")] @@ -1013,33 +776,33 @@ impl PrintTask { unsafe { (::windows_core::Interface::vtable(this).RemoveCompleted)(::windows_core::Interface::as_raw(this), eventcookie).ok() } } pub fn SetIsPreviewEnabled(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsPreviewEnabled)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsPreviewEnabled(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsPreviewEnabled)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsPrinterTargetEnabled(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsPrinterTargetEnabled)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsPrinterTargetEnabled(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsPrinterTargetEnabled)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIs3DManufacturingTargetEnabled(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIs3DManufacturingTargetEnabled)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Is3DManufacturingTargetEnabled(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Is3DManufacturingTargetEnabled)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1051,19 +814,17 @@ impl ::windows_core::RuntimeType for PrintTask { } unsafe impl ::windows_core::Interface for PrintTask { type Vtable = IPrintTask_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintTask { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintTask { const NAME: &'static str = "Windows.Graphics.Printing.PrintTask"; } -::windows_core::imp::interface_hierarchy!(PrintTask, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PrintTask {} unsafe impl ::core::marker::Sync for PrintTask {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintTaskCompletedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintTaskCompletedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PrintTaskCompletedEventArgs { pub fn Completion(&self) -> ::windows_core::Result { let this = self; @@ -1078,26 +839,25 @@ impl ::windows_core::RuntimeType for PrintTaskCompletedEventArgs { } unsafe impl ::windows_core::Interface for PrintTaskCompletedEventArgs { type Vtable = IPrintTaskCompletedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintTaskCompletedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintTaskCompletedEventArgs { const NAME: &'static str = "Windows.Graphics.Printing.PrintTaskCompletedEventArgs"; } -::windows_core::imp::interface_hierarchy!(PrintTaskCompletedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PrintTaskCompletedEventArgs {} unsafe impl ::core::marker::Sync for PrintTaskCompletedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintTaskOptions(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintTaskOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(PrintTaskOptions, IPrintTaskOptionsCore, IPrintTaskOptionsCoreProperties, IPrintTaskOptionsCoreUIConfiguration); impl PrintTaskOptions { pub fn SetBordering(&self, value: PrintBordering) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetBordering)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Bordering(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Bordering)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1109,14 +869,14 @@ impl PrintTaskOptions { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn PageRangeOptions(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PageRangeOptions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1125,7 +885,7 @@ impl PrintTaskOptions { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn CustomPageRanges(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CustomPageRanges)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1139,135 +899,135 @@ impl PrintTaskOptions { } } pub fn SetMediaSize(&self, value: PrintMediaSize) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMediaSize)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn MediaSize(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MediaSize)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetMediaType(&self, value: PrintMediaType) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMediaType)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn MediaType(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MediaType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetOrientation(&self, value: PrintOrientation) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetOrientation)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Orientation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Orientation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetPrintQuality(&self, value: PrintQuality) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetPrintQuality)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn PrintQuality(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PrintQuality)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetColorMode(&self, value: PrintColorMode) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetColorMode)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn ColorMode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ColorMode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDuplex(&self, value: PrintDuplex) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDuplex)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Duplex(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Duplex)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetCollation(&self, value: PrintCollation) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCollation)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Collation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Collation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetStaple(&self, value: PrintStaple) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetStaple)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Staple(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Staple)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetHolePunch(&self, value: PrintHolePunch) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetHolePunch)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn HolePunch(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).HolePunch)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetBinding(&self, value: PrintBinding) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetBinding)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Binding(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Binding)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn MinCopies(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MinCopies)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn MaxCopies(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MaxCopies)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetNumberOfCopies(&self, value: u32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetNumberOfCopies)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn NumberOfCopies(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NumberOfCopies)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1276,7 +1036,7 @@ impl PrintTaskOptions { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn DisplayedOptions(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DisplayedOptions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1288,22 +1048,17 @@ impl ::windows_core::RuntimeType for PrintTaskOptions { } unsafe impl ::windows_core::Interface for PrintTaskOptions { type Vtable = IPrintTaskOptionsCore_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintTaskOptions { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintTaskOptions { const NAME: &'static str = "Windows.Graphics.Printing.PrintTaskOptions"; } -::windows_core::imp::interface_hierarchy!(PrintTaskOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for PrintTaskOptions {} -impl ::windows_core::CanTryInto for PrintTaskOptions {} -impl ::windows_core::CanTryInto for PrintTaskOptions {} unsafe impl ::core::marker::Send for PrintTaskOptions {} unsafe impl ::core::marker::Sync for PrintTaskOptions {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintTaskProgressingEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintTaskProgressingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PrintTaskProgressingEventArgs { pub fn DocumentPageCount(&self) -> ::windows_core::Result { let this = self; @@ -1318,19 +1073,17 @@ impl ::windows_core::RuntimeType for PrintTaskProgressingEventArgs { } unsafe impl ::windows_core::Interface for PrintTaskProgressingEventArgs { type Vtable = IPrintTaskProgressingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintTaskProgressingEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintTaskProgressingEventArgs { const NAME: &'static str = "Windows.Graphics.Printing.PrintTaskProgressingEventArgs"; } -::windows_core::imp::interface_hierarchy!(PrintTaskProgressingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PrintTaskProgressingEventArgs {} unsafe impl ::core::marker::Sync for PrintTaskProgressingEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintTaskRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintTaskRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PrintTaskRequest { pub fn Deadline(&self) -> ::windows_core::Result { let this = self; @@ -1362,19 +1115,17 @@ impl ::windows_core::RuntimeType for PrintTaskRequest { } unsafe impl ::windows_core::Interface for PrintTaskRequest { type Vtable = IPrintTaskRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintTaskRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintTaskRequest { const NAME: &'static str = "Windows.Graphics.Printing.PrintTaskRequest"; } -::windows_core::imp::interface_hierarchy!(PrintTaskRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PrintTaskRequest {} unsafe impl ::core::marker::Sync for PrintTaskRequest {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintTaskRequestedDeferral(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintTaskRequestedDeferral, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PrintTaskRequestedDeferral { pub fn Complete(&self) -> ::windows_core::Result<()> { let this = self; @@ -1386,19 +1137,17 @@ impl ::windows_core::RuntimeType for PrintTaskRequestedDeferral { } unsafe impl ::windows_core::Interface for PrintTaskRequestedDeferral { type Vtable = IPrintTaskRequestedDeferral_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintTaskRequestedDeferral { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintTaskRequestedDeferral { const NAME: &'static str = "Windows.Graphics.Printing.PrintTaskRequestedDeferral"; } -::windows_core::imp::interface_hierarchy!(PrintTaskRequestedDeferral, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PrintTaskRequestedDeferral {} unsafe impl ::core::marker::Sync for PrintTaskRequestedDeferral {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintTaskRequestedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintTaskRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PrintTaskRequestedEventArgs { pub fn Request(&self) -> ::windows_core::Result { let this = self; @@ -1413,19 +1162,17 @@ impl ::windows_core::RuntimeType for PrintTaskRequestedEventArgs { } unsafe impl ::windows_core::Interface for PrintTaskRequestedEventArgs { type Vtable = IPrintTaskRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintTaskRequestedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintTaskRequestedEventArgs { const NAME: &'static str = "Windows.Graphics.Printing.PrintTaskRequestedEventArgs"; } -::windows_core::imp::interface_hierarchy!(PrintTaskRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PrintTaskRequestedEventArgs {} unsafe impl ::core::marker::Sync for PrintTaskRequestedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintTaskSourceRequestedArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintTaskSourceRequestedArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PrintTaskSourceRequestedArgs { pub fn Deadline(&self) -> ::windows_core::Result { let this = self; @@ -1436,10 +1183,10 @@ impl PrintTaskSourceRequestedArgs { } pub fn SetSource(&self, source: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetSource)(::windows_core::Interface::as_raw(this), source.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetSource)(::windows_core::Interface::as_raw(this), source.into_param().abi()).ok() } } pub fn GetDeferral(&self) -> ::windows_core::Result { let this = self; @@ -1454,19 +1201,17 @@ impl ::windows_core::RuntimeType for PrintTaskSourceRequestedArgs { } unsafe impl ::windows_core::Interface for PrintTaskSourceRequestedArgs { type Vtable = IPrintTaskSourceRequestedArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintTaskSourceRequestedArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintTaskSourceRequestedArgs { const NAME: &'static str = "Windows.Graphics.Printing.PrintTaskSourceRequestedArgs"; } -::windows_core::imp::interface_hierarchy!(PrintTaskSourceRequestedArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PrintTaskSourceRequestedArgs {} unsafe impl ::core::marker::Sync for PrintTaskSourceRequestedArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrintTaskSourceRequestedDeferral(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrintTaskSourceRequestedDeferral, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PrintTaskSourceRequestedDeferral { pub fn Complete(&self) -> ::windows_core::Result<()> { let this = self; @@ -1478,14 +1223,11 @@ impl ::windows_core::RuntimeType for PrintTaskSourceRequestedDeferral { } unsafe impl ::windows_core::Interface for PrintTaskSourceRequestedDeferral { type Vtable = IPrintTaskSourceRequestedDeferral_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintTaskSourceRequestedDeferral { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrintTaskSourceRequestedDeferral { const NAME: &'static str = "Windows.Graphics.Printing.PrintTaskSourceRequestedDeferral"; } -::windows_core::imp::interface_hierarchy!(PrintTaskSourceRequestedDeferral, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PrintTaskSourceRequestedDeferral {} unsafe impl ::core::marker::Sync for PrintTaskSourceRequestedDeferral {} pub struct StandardPrintTaskOptions; @@ -2112,9 +1854,7 @@ impl ::core::default::Default for PrintPageDescription { unsafe { ::core::mem::zeroed() } } } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct PrintTaskSourceRequestedHandler(pub ::windows_core::IUnknown); +::windows_core::imp::com_interface!(PrintTaskSourceRequestedHandler, PrintTaskSourceRequestedHandler_Vtbl, 0x6c109fa8_5cb6_4b3a_8663_f39cb02dc9b4); impl PrintTaskSourceRequestedHandler { pub fn new) -> ::windows_core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = PrintTaskSourceRequestedHandlerBox:: { vtable: &PrintTaskSourceRequestedHandlerBox::::VTABLE, count: ::windows_core::imp::RefCount::new(1), invoke }; @@ -2144,7 +1884,7 @@ impl) -> ::window if iid.is_null() || interface.is_null() { return ::windows_core::HRESULT(-2147467261); } - *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; + *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::Interface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::Interface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; if (*interface).is_null() { ::windows_core::HRESULT(-2147467262) } else { @@ -2169,12 +1909,6 @@ impl) -> ::window ((*this).invoke)(::windows_core::from_raw_borrowed(&args)).into() } } -unsafe impl ::windows_core::Interface for PrintTaskSourceRequestedHandler { - type Vtable = PrintTaskSourceRequestedHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrintTaskSourceRequestedHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6c109fa8_5cb6_4b3a_8663_f39cb02dc9b4); -} impl ::windows_core::RuntimeType for PrintTaskSourceRequestedHandler { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } diff --git a/crates/libs/windows/src/Windows/Graphics/Printing3D/mod.rs b/crates/libs/windows/src/Windows/Graphics/Printing3D/mod.rs index 63e1ee0444..5201f79398 100644 --- a/crates/libs/windows/src/Windows/Graphics/Printing3D/mod.rs +++ b/crates/libs/windows/src/Windows/Graphics/Printing3D/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrint3DManager(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrint3DManager { - type Vtable = IPrint3DManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrint3DManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4d2fcb0a_7366_4971_8bd5_17c4e3e8c6c0); -} +::windows_core::imp::com_interface!(IPrint3DManager, IPrint3DManager_Vtbl, 0x4d2fcb0a_7366_4971_8bd5_17c4e3e8c6c0); #[repr(C)] #[doc(hidden)] pub struct IPrint3DManager_Vtbl { @@ -15,16 +6,7 @@ pub struct IPrint3DManager_Vtbl { pub TaskRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventhandler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveTaskRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrint3DManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrint3DManagerStatics { - type Vtable = IPrint3DManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrint3DManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0ef1cafe_a9ad_4c08_a917_1d1f863eabcb); -} +::windows_core::imp::com_interface!(IPrint3DManagerStatics, IPrint3DManagerStatics_Vtbl, 0x0ef1cafe_a9ad_4c08_a917_1d1f863eabcb); #[repr(C)] #[doc(hidden)] pub struct IPrint3DManagerStatics_Vtbl { @@ -32,16 +14,7 @@ pub struct IPrint3DManagerStatics_Vtbl { pub GetForCurrentView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ShowPrintUIAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrint3DTask(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrint3DTask { - type Vtable = IPrint3DTask_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrint3DTask { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8ce3d080_2118_4c28_80de_f426d70191ae); -} +::windows_core::imp::com_interface!(IPrint3DTask, IPrint3DTask_Vtbl, 0x8ce3d080_2118_4c28_80de_f426d70191ae); #[repr(C)] #[doc(hidden)] pub struct IPrint3DTask_Vtbl { @@ -54,16 +27,7 @@ pub struct IPrint3DTask_Vtbl { pub SourceChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventhandler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveSourceChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventcookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrint3DTaskCompletedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrint3DTaskCompletedEventArgs { - type Vtable = IPrint3DTaskCompletedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrint3DTaskCompletedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcc1914af_2614_4f1d_accc_d6fc4fda5455); -} +::windows_core::imp::com_interface!(IPrint3DTaskCompletedEventArgs, IPrint3DTaskCompletedEventArgs_Vtbl, 0xcc1914af_2614_4f1d_accc_d6fc4fda5455); #[repr(C)] #[doc(hidden)] pub struct IPrint3DTaskCompletedEventArgs_Vtbl { @@ -71,80 +35,35 @@ pub struct IPrint3DTaskCompletedEventArgs_Vtbl { pub Completion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut Print3DTaskCompletion) -> ::windows_core::HRESULT, pub ExtendedStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut Print3DTaskDetail) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrint3DTaskRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrint3DTaskRequest { - type Vtable = IPrint3DTaskRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrint3DTaskRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2595c46f_2245_4c5a_8731_0d604dc6bc3c); -} +::windows_core::imp::com_interface!(IPrint3DTaskRequest, IPrint3DTaskRequest_Vtbl, 0x2595c46f_2245_4c5a_8731_0d604dc6bc3c); #[repr(C)] #[doc(hidden)] pub struct IPrint3DTaskRequest_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateTask: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, title: ::std::mem::MaybeUninit<::windows_core::HSTRING>, printerid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, handler: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrint3DTaskRequestedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrint3DTaskRequestedEventArgs { - type Vtable = IPrint3DTaskRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrint3DTaskRequestedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x150cb77f_18c5_40d7_9f40_fab3096e05a9); -} +::windows_core::imp::com_interface!(IPrint3DTaskRequestedEventArgs, IPrint3DTaskRequestedEventArgs_Vtbl, 0x150cb77f_18c5_40d7_9f40_fab3096e05a9); #[repr(C)] #[doc(hidden)] pub struct IPrint3DTaskRequestedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Request: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrint3DTaskSourceChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrint3DTaskSourceChangedEventArgs { - type Vtable = IPrint3DTaskSourceChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrint3DTaskSourceChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5bcd34af_24e9_4c10_8d07_14c346ba3fcf); -} +::windows_core::imp::com_interface!(IPrint3DTaskSourceChangedEventArgs, IPrint3DTaskSourceChangedEventArgs_Vtbl, 0x5bcd34af_24e9_4c10_8d07_14c346ba3fcf); #[repr(C)] #[doc(hidden)] pub struct IPrint3DTaskSourceChangedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Source: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrint3DTaskSourceRequestedArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrint3DTaskSourceRequestedArgs { - type Vtable = IPrint3DTaskSourceRequestedArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrint3DTaskSourceRequestedArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc77c9aba_24af_424d_a3bf_92250c355602); -} +::windows_core::imp::com_interface!(IPrint3DTaskSourceRequestedArgs, IPrint3DTaskSourceRequestedArgs_Vtbl, 0xc77c9aba_24af_424d_a3bf_92250c355602); #[repr(C)] #[doc(hidden)] pub struct IPrint3DTaskSourceRequestedArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub SetSource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, source: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrinting3D3MFPackage(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrinting3D3MFPackage { - type Vtable = IPrinting3D3MFPackage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrinting3D3MFPackage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf64dd5c8_2ab7_45a9_a1b7_267e948d5b18); -} +::windows_core::imp::com_interface!(IPrinting3D3MFPackage, IPrinting3D3MFPackage_Vtbl, 0xf64dd5c8_2ab7_45a9_a1b7_267e948d5b18); #[repr(C)] #[doc(hidden)] pub struct IPrinting3D3MFPackage_Vtbl { @@ -181,16 +100,7 @@ pub struct IPrinting3D3MFPackage_Vtbl { LoadModelFromPackageAsync: usize, pub SaveModelToPackageAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrinting3D3MFPackage2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrinting3D3MFPackage2 { - type Vtable = IPrinting3D3MFPackage2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrinting3D3MFPackage2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x965c7ac4_93cb_4430_92b8_789cd454f883); -} +::windows_core::imp::com_interface!(IPrinting3D3MFPackage2, IPrinting3D3MFPackage2_Vtbl, 0x965c7ac4_93cb_4430_92b8_789cd454f883); #[repr(C)] #[doc(hidden)] pub struct IPrinting3D3MFPackage2_Vtbl { @@ -198,16 +108,7 @@ pub struct IPrinting3D3MFPackage2_Vtbl { pub Compression: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut Printing3DPackageCompression) -> ::windows_core::HRESULT, pub SetCompression: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: Printing3DPackageCompression) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrinting3D3MFPackageStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrinting3D3MFPackageStatics { - type Vtable = IPrinting3D3MFPackageStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrinting3D3MFPackageStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7058d9af_7a9a_4787_b817_f6f459214823); -} +::windows_core::imp::com_interface!(IPrinting3D3MFPackageStatics, IPrinting3D3MFPackageStatics_Vtbl, 0x7058d9af_7a9a_4787_b817_f6f459214823); #[repr(C)] #[doc(hidden)] pub struct IPrinting3D3MFPackageStatics_Vtbl { @@ -217,16 +118,7 @@ pub struct IPrinting3D3MFPackageStatics_Vtbl { #[cfg(not(feature = "Storage_Streams"))] LoadAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrinting3DBaseMaterial(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrinting3DBaseMaterial { - type Vtable = IPrinting3DBaseMaterial_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrinting3DBaseMaterial { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd0f0e743_c50c_4bcb_9d04_fc16adcea2c9); -} +::windows_core::imp::com_interface!(IPrinting3DBaseMaterial, IPrinting3DBaseMaterial_Vtbl, 0xd0f0e743_c50c_4bcb_9d04_fc16adcea2c9); #[repr(C)] #[doc(hidden)] pub struct IPrinting3DBaseMaterial_Vtbl { @@ -236,16 +128,7 @@ pub struct IPrinting3DBaseMaterial_Vtbl { pub Color: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetColor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrinting3DBaseMaterialGroup(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrinting3DBaseMaterialGroup { - type Vtable = IPrinting3DBaseMaterialGroup_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrinting3DBaseMaterialGroup { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x94f070b8_2515_4a8d_a1f0_d0fc13d06021); -} +::windows_core::imp::com_interface!(IPrinting3DBaseMaterialGroup, IPrinting3DBaseMaterialGroup_Vtbl, 0x94f070b8_2515_4a8d_a1f0_d0fc13d06021); #[repr(C)] #[doc(hidden)] pub struct IPrinting3DBaseMaterialGroup_Vtbl { @@ -256,32 +139,14 @@ pub struct IPrinting3DBaseMaterialGroup_Vtbl { Bases: usize, pub MaterialGroupId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrinting3DBaseMaterialGroupFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrinting3DBaseMaterialGroupFactory { - type Vtable = IPrinting3DBaseMaterialGroupFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrinting3DBaseMaterialGroupFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5c1546dc_8697_4193_976b_84bb4116e5bf); -} +::windows_core::imp::com_interface!(IPrinting3DBaseMaterialGroupFactory, IPrinting3DBaseMaterialGroupFactory_Vtbl, 0x5c1546dc_8697_4193_976b_84bb4116e5bf); #[repr(C)] #[doc(hidden)] pub struct IPrinting3DBaseMaterialGroupFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, materialgroupid: u32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrinting3DBaseMaterialStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrinting3DBaseMaterialStatics { - type Vtable = IPrinting3DBaseMaterialStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrinting3DBaseMaterialStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x815a47bc_374a_476d_be92_3ecfd1cb9776); -} +::windows_core::imp::com_interface!(IPrinting3DBaseMaterialStatics, IPrinting3DBaseMaterialStatics_Vtbl, 0x815a47bc_374a_476d_be92_3ecfd1cb9776); #[repr(C)] #[doc(hidden)] pub struct IPrinting3DBaseMaterialStatics_Vtbl { @@ -289,16 +154,7 @@ pub struct IPrinting3DBaseMaterialStatics_Vtbl { pub Abs: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Pla: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrinting3DColorMaterial(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrinting3DColorMaterial { - type Vtable = IPrinting3DColorMaterial_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrinting3DColorMaterial { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe1899928_7ce7_4285_a35d_f145c9510c7b); -} +::windows_core::imp::com_interface!(IPrinting3DColorMaterial, IPrinting3DColorMaterial_Vtbl, 0xe1899928_7ce7_4285_a35d_f145c9510c7b); #[repr(C)] #[doc(hidden)] pub struct IPrinting3DColorMaterial_Vtbl { @@ -306,16 +162,7 @@ pub struct IPrinting3DColorMaterial_Vtbl { pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, pub SetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrinting3DColorMaterial2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrinting3DColorMaterial2 { - type Vtable = IPrinting3DColorMaterial2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrinting3DColorMaterial2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfab0e852_0aef_44e9_9ddd_36eeea5acd44); -} +::windows_core::imp::com_interface!(IPrinting3DColorMaterial2, IPrinting3DColorMaterial2_Vtbl, 0xfab0e852_0aef_44e9_9ddd_36eeea5acd44); #[repr(C)] #[doc(hidden)] pub struct IPrinting3DColorMaterial2_Vtbl { @@ -329,16 +176,7 @@ pub struct IPrinting3DColorMaterial2_Vtbl { #[cfg(not(feature = "UI"))] SetColor: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrinting3DColorMaterialGroup(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrinting3DColorMaterialGroup { - type Vtable = IPrinting3DColorMaterialGroup_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrinting3DColorMaterialGroup { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x001a6bd0_aadf_4226_afe9_f369a0b45004); -} +::windows_core::imp::com_interface!(IPrinting3DColorMaterialGroup, IPrinting3DColorMaterialGroup_Vtbl, 0x001a6bd0_aadf_4226_afe9_f369a0b45004); #[repr(C)] #[doc(hidden)] pub struct IPrinting3DColorMaterialGroup_Vtbl { @@ -349,32 +187,14 @@ pub struct IPrinting3DColorMaterialGroup_Vtbl { Colors: usize, pub MaterialGroupId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrinting3DColorMaterialGroupFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrinting3DColorMaterialGroupFactory { - type Vtable = IPrinting3DColorMaterialGroupFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrinting3DColorMaterialGroupFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x71d38d6d_b1ea_4a5b_bc54_19c65f3df044); -} +::windows_core::imp::com_interface!(IPrinting3DColorMaterialGroupFactory, IPrinting3DColorMaterialGroupFactory_Vtbl, 0x71d38d6d_b1ea_4a5b_bc54_19c65f3df044); #[repr(C)] #[doc(hidden)] pub struct IPrinting3DColorMaterialGroupFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, materialgroupid: u32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrinting3DComponent(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrinting3DComponent { - type Vtable = IPrinting3DComponent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrinting3DComponent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7e287845_bf7f_4cdb_a27f_30a01437fede); -} +::windows_core::imp::com_interface!(IPrinting3DComponent, IPrinting3DComponent_Vtbl, 0x7e287845_bf7f_4cdb_a27f_30a01437fede); #[repr(C)] #[doc(hidden)] pub struct IPrinting3DComponent_Vtbl { @@ -394,16 +214,7 @@ pub struct IPrinting3DComponent_Vtbl { pub PartNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetPartNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrinting3DComponentWithMatrix(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrinting3DComponentWithMatrix { - type Vtable = IPrinting3DComponentWithMatrix_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrinting3DComponentWithMatrix { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3279f335_0ef0_456b_9a21_49bebe8b51c2); -} +::windows_core::imp::com_interface!(IPrinting3DComponentWithMatrix, IPrinting3DComponentWithMatrix_Vtbl, 0x3279f335_0ef0_456b_9a21_49bebe8b51c2); #[repr(C)] #[doc(hidden)] pub struct IPrinting3DComponentWithMatrix_Vtbl { @@ -419,16 +230,7 @@ pub struct IPrinting3DComponentWithMatrix_Vtbl { #[cfg(not(feature = "Foundation_Numerics"))] SetMatrix: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrinting3DCompositeMaterial(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrinting3DCompositeMaterial { - type Vtable = IPrinting3DCompositeMaterial_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrinting3DCompositeMaterial { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x462238dd_562e_4f6c_882d_f4d841fd63c7); -} +::windows_core::imp::com_interface!(IPrinting3DCompositeMaterial, IPrinting3DCompositeMaterial_Vtbl, 0x462238dd_562e_4f6c_882d_f4d841fd63c7); #[repr(C)] #[doc(hidden)] pub struct IPrinting3DCompositeMaterial_Vtbl { @@ -438,16 +240,7 @@ pub struct IPrinting3DCompositeMaterial_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Values: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrinting3DCompositeMaterialGroup(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrinting3DCompositeMaterialGroup { - type Vtable = IPrinting3DCompositeMaterialGroup_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrinting3DCompositeMaterialGroup { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8d946a5b_40f1_496d_a5fb_340a5a678e30); -} +::windows_core::imp::com_interface!(IPrinting3DCompositeMaterialGroup, IPrinting3DCompositeMaterialGroup_Vtbl, 0x8d946a5b_40f1_496d_a5fb_340a5a678e30); #[repr(C)] #[doc(hidden)] pub struct IPrinting3DCompositeMaterialGroup_Vtbl { @@ -462,16 +255,7 @@ pub struct IPrinting3DCompositeMaterialGroup_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] MaterialIndices: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrinting3DCompositeMaterialGroup2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrinting3DCompositeMaterialGroup2 { - type Vtable = IPrinting3DCompositeMaterialGroup2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrinting3DCompositeMaterialGroup2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x06e86d62_7d3b_41e1_944c_bafde4555483); -} +::windows_core::imp::com_interface!(IPrinting3DCompositeMaterialGroup2, IPrinting3DCompositeMaterialGroup2_Vtbl, 0x06e86d62_7d3b_41e1_944c_bafde4555483); #[repr(C)] #[doc(hidden)] pub struct IPrinting3DCompositeMaterialGroup2_Vtbl { @@ -479,32 +263,14 @@ pub struct IPrinting3DCompositeMaterialGroup2_Vtbl { pub BaseMaterialGroup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetBaseMaterialGroup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrinting3DCompositeMaterialGroupFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrinting3DCompositeMaterialGroupFactory { - type Vtable = IPrinting3DCompositeMaterialGroupFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrinting3DCompositeMaterialGroupFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd08ecd13_92ff_43aa_a627_8d43c22c817e); -} +::windows_core::imp::com_interface!(IPrinting3DCompositeMaterialGroupFactory, IPrinting3DCompositeMaterialGroupFactory_Vtbl, 0xd08ecd13_92ff_43aa_a627_8d43c22c817e); #[repr(C)] #[doc(hidden)] pub struct IPrinting3DCompositeMaterialGroupFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, materialgroupid: u32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrinting3DFaceReductionOptions(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrinting3DFaceReductionOptions { - type Vtable = IPrinting3DFaceReductionOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrinting3DFaceReductionOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbbfed397_2d74_46f7_be85_99a67bbb6629); -} +::windows_core::imp::com_interface!(IPrinting3DFaceReductionOptions, IPrinting3DFaceReductionOptions_Vtbl, 0xbbfed397_2d74_46f7_be85_99a67bbb6629); #[repr(C)] #[doc(hidden)] pub struct IPrinting3DFaceReductionOptions_Vtbl { @@ -516,16 +282,7 @@ pub struct IPrinting3DFaceReductionOptions_Vtbl { pub MaxEdgeLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows_core::HRESULT, pub SetMaxEdgeLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f64) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrinting3DMaterial(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrinting3DMaterial { - type Vtable = IPrinting3DMaterial_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrinting3DMaterial { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x378db256_ed62_4952_b85b_03567d7c465e); -} +::windows_core::imp::com_interface!(IPrinting3DMaterial, IPrinting3DMaterial_Vtbl, 0x378db256_ed62_4952_b85b_03567d7c465e); #[repr(C)] #[doc(hidden)] pub struct IPrinting3DMaterial_Vtbl { @@ -551,16 +308,7 @@ pub struct IPrinting3DMaterial_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] MultiplePropertyGroups: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrinting3DMesh(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrinting3DMesh { - type Vtable = IPrinting3DMesh_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrinting3DMesh { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x192e90dc_0228_2e01_bc20_c5290cbf32c4); -} +::windows_core::imp::com_interface!(IPrinting3DMesh, IPrinting3DMesh_Vtbl, 0x192e90dc_0228_2e01_bc20_c5290cbf32c4); #[repr(C)] #[doc(hidden)] pub struct IPrinting3DMesh_Vtbl { @@ -607,16 +355,7 @@ pub struct IPrinting3DMesh_Vtbl { BufferSet: usize, pub VerifyAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: Printing3DMeshVerificationMode, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrinting3DMeshVerificationResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrinting3DMeshVerificationResult { - type Vtable = IPrinting3DMeshVerificationResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrinting3DMeshVerificationResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x195671ba_e93a_4e8a_a46f_dea8e852197e); -} +::windows_core::imp::com_interface!(IPrinting3DMeshVerificationResult, IPrinting3DMeshVerificationResult_Vtbl, 0x195671ba_e93a_4e8a_a46f_dea8e852197e); #[repr(C)] #[doc(hidden)] pub struct IPrinting3DMeshVerificationResult_Vtbl { @@ -631,16 +370,7 @@ pub struct IPrinting3DMeshVerificationResult_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] ReversedNormalTriangles: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrinting3DModel(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrinting3DModel { - type Vtable = IPrinting3DModel_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrinting3DModel { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2d012ef0_52fb_919a_77b0_4b1a3b80324f); -} +::windows_core::imp::com_interface!(IPrinting3DModel, IPrinting3DModel_Vtbl, 0x2d012ef0_52fb_919a_77b0_4b1a3b80324f); #[repr(C)] #[doc(hidden)] pub struct IPrinting3DModel_Vtbl { @@ -676,16 +406,7 @@ pub struct IPrinting3DModel_Vtbl { pub RepairAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrinting3DModel2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrinting3DModel2 { - type Vtable = IPrinting3DModel2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrinting3DModel2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc92069c7_c841_47f3_a84e_a149fd08b657); -} +::windows_core::imp::com_interface!(IPrinting3DModel2, IPrinting3DModel2_Vtbl, 0xc92069c7_c841_47f3_a84e_a149fd08b657); #[repr(C)] #[doc(hidden)] pub struct IPrinting3DModel2_Vtbl { @@ -697,16 +418,7 @@ pub struct IPrinting3DModel2_Vtbl { pub TryReduceFacesWithOptionsAndTimeAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, printing3dfacereductionoptions: *mut ::core::ffi::c_void, maxwait: super::super::Foundation::TimeSpan, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RepairWithProgressAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrinting3DModelTexture(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrinting3DModelTexture { - type Vtable = IPrinting3DModelTexture_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrinting3DModelTexture { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5dafcf01_b59d_483c_97bb_a4d546d1c75c); -} +::windows_core::imp::com_interface!(IPrinting3DModelTexture, IPrinting3DModelTexture_Vtbl, 0x5dafcf01_b59d_483c_97bb_a4d546d1c75c); #[repr(C)] #[doc(hidden)] pub struct IPrinting3DModelTexture_Vtbl { @@ -718,16 +430,7 @@ pub struct IPrinting3DModelTexture_Vtbl { pub TileStyleV: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut Printing3DTextureEdgeBehavior) -> ::windows_core::HRESULT, pub SetTileStyleV: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: Printing3DTextureEdgeBehavior) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrinting3DMultiplePropertyMaterial(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrinting3DMultiplePropertyMaterial { - type Vtable = IPrinting3DMultiplePropertyMaterial_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrinting3DMultiplePropertyMaterial { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x25a6254b_c6e9_484d_a214_a25e5776ba62); -} +::windows_core::imp::com_interface!(IPrinting3DMultiplePropertyMaterial, IPrinting3DMultiplePropertyMaterial_Vtbl, 0x25a6254b_c6e9_484d_a214_a25e5776ba62); #[repr(C)] #[doc(hidden)] pub struct IPrinting3DMultiplePropertyMaterial_Vtbl { @@ -737,16 +440,7 @@ pub struct IPrinting3DMultiplePropertyMaterial_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] MaterialIndices: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrinting3DMultiplePropertyMaterialGroup(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrinting3DMultiplePropertyMaterialGroup { - type Vtable = IPrinting3DMultiplePropertyMaterialGroup_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrinting3DMultiplePropertyMaterialGroup { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf0950519_aeb9_4515_a39b_a088fbbb277c); -} +::windows_core::imp::com_interface!(IPrinting3DMultiplePropertyMaterialGroup, IPrinting3DMultiplePropertyMaterialGroup_Vtbl, 0xf0950519_aeb9_4515_a39b_a088fbbb277c); #[repr(C)] #[doc(hidden)] pub struct IPrinting3DMultiplePropertyMaterialGroup_Vtbl { @@ -761,32 +455,14 @@ pub struct IPrinting3DMultiplePropertyMaterialGroup_Vtbl { MaterialGroupIndices: usize, pub MaterialGroupId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrinting3DMultiplePropertyMaterialGroupFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrinting3DMultiplePropertyMaterialGroupFactory { - type Vtable = IPrinting3DMultiplePropertyMaterialGroupFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrinting3DMultiplePropertyMaterialGroupFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x323e196e_d4c6_451e_a814_4d78a210fe53); -} +::windows_core::imp::com_interface!(IPrinting3DMultiplePropertyMaterialGroupFactory, IPrinting3DMultiplePropertyMaterialGroupFactory_Vtbl, 0x323e196e_d4c6_451e_a814_4d78a210fe53); #[repr(C)] #[doc(hidden)] pub struct IPrinting3DMultiplePropertyMaterialGroupFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, materialgroupid: u32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrinting3DTexture2CoordMaterial(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrinting3DTexture2CoordMaterial { - type Vtable = IPrinting3DTexture2CoordMaterial_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrinting3DTexture2CoordMaterial { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8d844bfb_07e9_4986_9833_8dd3d48c6859); -} +::windows_core::imp::com_interface!(IPrinting3DTexture2CoordMaterial, IPrinting3DTexture2CoordMaterial_Vtbl, 0x8d844bfb_07e9_4986_9833_8dd3d48c6859); #[repr(C)] #[doc(hidden)] pub struct IPrinting3DTexture2CoordMaterial_Vtbl { @@ -798,16 +474,7 @@ pub struct IPrinting3DTexture2CoordMaterial_Vtbl { pub V: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows_core::HRESULT, pub SetV: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f64) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrinting3DTexture2CoordMaterialGroup(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrinting3DTexture2CoordMaterialGroup { - type Vtable = IPrinting3DTexture2CoordMaterialGroup_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrinting3DTexture2CoordMaterialGroup { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x627d7ca7_6d90_4fb9_9fc4_9feff3dfa892); -} +::windows_core::imp::com_interface!(IPrinting3DTexture2CoordMaterialGroup, IPrinting3DTexture2CoordMaterialGroup_Vtbl, 0x627d7ca7_6d90_4fb9_9fc4_9feff3dfa892); #[repr(C)] #[doc(hidden)] pub struct IPrinting3DTexture2CoordMaterialGroup_Vtbl { @@ -818,16 +485,7 @@ pub struct IPrinting3DTexture2CoordMaterialGroup_Vtbl { Texture2Coords: usize, pub MaterialGroupId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrinting3DTexture2CoordMaterialGroup2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrinting3DTexture2CoordMaterialGroup2 { - type Vtable = IPrinting3DTexture2CoordMaterialGroup2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrinting3DTexture2CoordMaterialGroup2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x69fbdbba_b12e_429b_8386_df5284f6e80f); -} +::windows_core::imp::com_interface!(IPrinting3DTexture2CoordMaterialGroup2, IPrinting3DTexture2CoordMaterialGroup2_Vtbl, 0x69fbdbba_b12e_429b_8386_df5284f6e80f); #[repr(C)] #[doc(hidden)] pub struct IPrinting3DTexture2CoordMaterialGroup2_Vtbl { @@ -835,32 +493,14 @@ pub struct IPrinting3DTexture2CoordMaterialGroup2_Vtbl { pub Texture: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetTexture: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrinting3DTexture2CoordMaterialGroupFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrinting3DTexture2CoordMaterialGroupFactory { - type Vtable = IPrinting3DTexture2CoordMaterialGroupFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrinting3DTexture2CoordMaterialGroupFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcbb049b0_468a_4c6f_b2a2_8eb8ba8dea48); -} +::windows_core::imp::com_interface!(IPrinting3DTexture2CoordMaterialGroupFactory, IPrinting3DTexture2CoordMaterialGroupFactory_Vtbl, 0xcbb049b0_468a_4c6f_b2a2_8eb8ba8dea48); #[repr(C)] #[doc(hidden)] pub struct IPrinting3DTexture2CoordMaterialGroupFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, materialgroupid: u32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrinting3DTextureResource(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrinting3DTextureResource { - type Vtable = IPrinting3DTextureResource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrinting3DTextureResource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa70df32d_6ab1_44ae_bc45_a27382c0d38c); -} +::windows_core::imp::com_interface!(IPrinting3DTextureResource, IPrinting3DTextureResource_Vtbl, 0xa70df32d_6ab1_44ae_bc45_a27382c0d38c); #[repr(C)] #[doc(hidden)] pub struct IPrinting3DTextureResource_Vtbl { @@ -879,6 +519,7 @@ pub struct IPrinting3DTextureResource_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Print3DManager(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Print3DManager, ::windows_core::IUnknown, ::windows_core::IInspectable); impl Print3DManager { pub fn TaskRequested(&self, eventhandler: P0) -> ::windows_core::Result where @@ -917,19 +558,17 @@ impl ::windows_core::RuntimeType for Print3DManager { } unsafe impl ::windows_core::Interface for Print3DManager { type Vtable = IPrint3DManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Print3DManager { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Print3DManager { const NAME: &'static str = "Windows.Graphics.Printing3D.Print3DManager"; } -::windows_core::imp::interface_hierarchy!(Print3DManager, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for Print3DManager {} unsafe impl ::core::marker::Sync for Print3DManager {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Print3DTask(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Print3DTask, ::windows_core::IUnknown, ::windows_core::IInspectable); impl Print3DTask { pub fn Source(&self) -> ::windows_core::Result { let this = self; @@ -986,19 +625,17 @@ impl ::windows_core::RuntimeType for Print3DTask { } unsafe impl ::windows_core::Interface for Print3DTask { type Vtable = IPrint3DTask_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Print3DTask { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Print3DTask { const NAME: &'static str = "Windows.Graphics.Printing3D.Print3DTask"; } -::windows_core::imp::interface_hierarchy!(Print3DTask, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for Print3DTask {} unsafe impl ::core::marker::Sync for Print3DTask {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Print3DTaskCompletedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Print3DTaskCompletedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl Print3DTaskCompletedEventArgs { pub fn Completion(&self) -> ::windows_core::Result { let this = self; @@ -1020,19 +657,17 @@ impl ::windows_core::RuntimeType for Print3DTaskCompletedEventArgs { } unsafe impl ::windows_core::Interface for Print3DTaskCompletedEventArgs { type Vtable = IPrint3DTaskCompletedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Print3DTaskCompletedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Print3DTaskCompletedEventArgs { const NAME: &'static str = "Windows.Graphics.Printing3D.Print3DTaskCompletedEventArgs"; } -::windows_core::imp::interface_hierarchy!(Print3DTaskCompletedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for Print3DTaskCompletedEventArgs {} unsafe impl ::core::marker::Sync for Print3DTaskCompletedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Print3DTaskRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Print3DTaskRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl Print3DTaskRequest { pub fn CreateTask(&self, title: &::windows_core::HSTRING, printerid: &::windows_core::HSTRING, handler: P0) -> ::windows_core::Result where @@ -1050,19 +685,17 @@ impl ::windows_core::RuntimeType for Print3DTaskRequest { } unsafe impl ::windows_core::Interface for Print3DTaskRequest { type Vtable = IPrint3DTaskRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Print3DTaskRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Print3DTaskRequest { const NAME: &'static str = "Windows.Graphics.Printing3D.Print3DTaskRequest"; } -::windows_core::imp::interface_hierarchy!(Print3DTaskRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for Print3DTaskRequest {} unsafe impl ::core::marker::Sync for Print3DTaskRequest {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Print3DTaskRequestedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Print3DTaskRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl Print3DTaskRequestedEventArgs { pub fn Request(&self) -> ::windows_core::Result { let this = self; @@ -1077,19 +710,17 @@ impl ::windows_core::RuntimeType for Print3DTaskRequestedEventArgs { } unsafe impl ::windows_core::Interface for Print3DTaskRequestedEventArgs { type Vtable = IPrint3DTaskRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Print3DTaskRequestedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Print3DTaskRequestedEventArgs { const NAME: &'static str = "Windows.Graphics.Printing3D.Print3DTaskRequestedEventArgs"; } -::windows_core::imp::interface_hierarchy!(Print3DTaskRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for Print3DTaskRequestedEventArgs {} unsafe impl ::core::marker::Sync for Print3DTaskRequestedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Print3DTaskSourceChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Print3DTaskSourceChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl Print3DTaskSourceChangedEventArgs { pub fn Source(&self) -> ::windows_core::Result { let this = self; @@ -1104,19 +735,17 @@ impl ::windows_core::RuntimeType for Print3DTaskSourceChangedEventArgs { } unsafe impl ::windows_core::Interface for Print3DTaskSourceChangedEventArgs { type Vtable = IPrint3DTaskSourceChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Print3DTaskSourceChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Print3DTaskSourceChangedEventArgs { const NAME: &'static str = "Windows.Graphics.Printing3D.Print3DTaskSourceChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(Print3DTaskSourceChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for Print3DTaskSourceChangedEventArgs {} unsafe impl ::core::marker::Sync for Print3DTaskSourceChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Print3DTaskSourceRequestedArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Print3DTaskSourceRequestedArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl Print3DTaskSourceRequestedArgs { pub fn SetSource(&self, source: P0) -> ::windows_core::Result<()> where @@ -1131,19 +760,17 @@ impl ::windows_core::RuntimeType for Print3DTaskSourceRequestedArgs { } unsafe impl ::windows_core::Interface for Print3DTaskSourceRequestedArgs { type Vtable = IPrint3DTaskSourceRequestedArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Print3DTaskSourceRequestedArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Print3DTaskSourceRequestedArgs { const NAME: &'static str = "Windows.Graphics.Printing3D.Print3DTaskSourceRequestedArgs"; } -::windows_core::imp::interface_hierarchy!(Print3DTaskSourceRequestedArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for Print3DTaskSourceRequestedArgs {} unsafe impl ::core::marker::Sync for Print3DTaskSourceRequestedArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Printing3D3MFPackage(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Printing3D3MFPackage, ::windows_core::IUnknown, ::windows_core::IInspectable); impl Printing3D3MFPackage { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1174,10 +801,10 @@ impl Printing3D3MFPackage { #[cfg(feature = "Storage_Streams")] pub fn SetPrintTicket(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetPrintTicket)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetPrintTicket)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] @@ -1192,10 +819,10 @@ impl Printing3D3MFPackage { #[cfg(feature = "Storage_Streams")] pub fn SetModelPart(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetModelPart)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetModelPart)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn Thumbnail(&self) -> ::windows_core::Result { let this = self; @@ -1224,12 +851,12 @@ impl Printing3D3MFPackage { #[cfg(feature = "Storage_Streams")] pub fn LoadModelFromPackageAsync(&self, value: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).LoadModelFromPackageAsync)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).LoadModelFromPackageAsync)(::windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).from_abi(result__) } } pub fn SaveModelToPackageAsync(&self, value: P0) -> ::windows_core::Result @@ -1243,25 +870,25 @@ impl Printing3D3MFPackage { } } pub fn Compression(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compression)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetCompression(&self, value: Printing3DPackageCompression) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCompression)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn LoadAsync(value: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IPrinting3D3MFPackageStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).LoadAsync)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).LoadAsync)(::windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -1275,19 +902,17 @@ impl ::windows_core::RuntimeType for Printing3D3MFPackage { } unsafe impl ::windows_core::Interface for Printing3D3MFPackage { type Vtable = IPrinting3D3MFPackage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Printing3D3MFPackage { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Printing3D3MFPackage { const NAME: &'static str = "Windows.Graphics.Printing3D.Printing3D3MFPackage"; } -::windows_core::imp::interface_hierarchy!(Printing3D3MFPackage, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for Printing3D3MFPackage {} unsafe impl ::core::marker::Sync for Printing3D3MFPackage {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Printing3DBaseMaterial(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Printing3DBaseMaterial, ::windows_core::IUnknown, ::windows_core::IInspectable); impl Printing3DBaseMaterial { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1344,19 +969,17 @@ impl ::windows_core::RuntimeType for Printing3DBaseMaterial { } unsafe impl ::windows_core::Interface for Printing3DBaseMaterial { type Vtable = IPrinting3DBaseMaterial_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Printing3DBaseMaterial { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Printing3DBaseMaterial { const NAME: &'static str = "Windows.Graphics.Printing3D.Printing3DBaseMaterial"; } -::windows_core::imp::interface_hierarchy!(Printing3DBaseMaterial, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for Printing3DBaseMaterial {} unsafe impl ::core::marker::Sync for Printing3DBaseMaterial {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Printing3DBaseMaterialGroup(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Printing3DBaseMaterialGroup, ::windows_core::IUnknown, ::windows_core::IInspectable); impl Printing3DBaseMaterialGroup { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -1391,19 +1014,17 @@ impl ::windows_core::RuntimeType for Printing3DBaseMaterialGroup { } unsafe impl ::windows_core::Interface for Printing3DBaseMaterialGroup { type Vtable = IPrinting3DBaseMaterialGroup_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Printing3DBaseMaterialGroup { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Printing3DBaseMaterialGroup { const NAME: &'static str = "Windows.Graphics.Printing3D.Printing3DBaseMaterialGroup"; } -::windows_core::imp::interface_hierarchy!(Printing3DBaseMaterialGroup, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for Printing3DBaseMaterialGroup {} unsafe impl ::core::marker::Sync for Printing3DBaseMaterialGroup {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Printing3DColorMaterial(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Printing3DColorMaterial, ::windows_core::IUnknown, ::windows_core::IInspectable); impl Printing3DColorMaterial { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1426,7 +1047,7 @@ impl Printing3DColorMaterial { #[doc = "Required features: `\"UI\"`"] #[cfg(feature = "UI")] pub fn Color(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Color)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1435,7 +1056,7 @@ impl Printing3DColorMaterial { #[doc = "Required features: `\"UI\"`"] #[cfg(feature = "UI")] pub fn SetColor(&self, value: super::super::UI::Color) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetColor)(::windows_core::Interface::as_raw(this), value).ok() } } } @@ -1444,19 +1065,17 @@ impl ::windows_core::RuntimeType for Printing3DColorMaterial { } unsafe impl ::windows_core::Interface for Printing3DColorMaterial { type Vtable = IPrinting3DColorMaterial_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Printing3DColorMaterial { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Printing3DColorMaterial { const NAME: &'static str = "Windows.Graphics.Printing3D.Printing3DColorMaterial"; } -::windows_core::imp::interface_hierarchy!(Printing3DColorMaterial, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for Printing3DColorMaterial {} unsafe impl ::core::marker::Sync for Printing3DColorMaterial {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Printing3DColorMaterialGroup(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Printing3DColorMaterialGroup, ::windows_core::IUnknown, ::windows_core::IInspectable); impl Printing3DColorMaterialGroup { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -1491,19 +1110,17 @@ impl ::windows_core::RuntimeType for Printing3DColorMaterialGroup { } unsafe impl ::windows_core::Interface for Printing3DColorMaterialGroup { type Vtable = IPrinting3DColorMaterialGroup_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Printing3DColorMaterialGroup { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Printing3DColorMaterialGroup { const NAME: &'static str = "Windows.Graphics.Printing3D.Printing3DColorMaterialGroup"; } -::windows_core::imp::interface_hierarchy!(Printing3DColorMaterialGroup, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for Printing3DColorMaterialGroup {} unsafe impl ::core::marker::Sync for Printing3DColorMaterialGroup {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Printing3DComponent(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Printing3DComponent, ::windows_core::IUnknown, ::windows_core::IInspectable); impl Printing3DComponent { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1588,19 +1205,17 @@ impl ::windows_core::RuntimeType for Printing3DComponent { } unsafe impl ::windows_core::Interface for Printing3DComponent { type Vtable = IPrinting3DComponent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Printing3DComponent { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Printing3DComponent { const NAME: &'static str = "Windows.Graphics.Printing3D.Printing3DComponent"; } -::windows_core::imp::interface_hierarchy!(Printing3DComponent, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for Printing3DComponent {} unsafe impl ::core::marker::Sync for Printing3DComponent {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Printing3DComponentWithMatrix(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Printing3DComponentWithMatrix, ::windows_core::IUnknown, ::windows_core::IInspectable); impl Printing3DComponentWithMatrix { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1644,19 +1259,17 @@ impl ::windows_core::RuntimeType for Printing3DComponentWithMatrix { } unsafe impl ::windows_core::Interface for Printing3DComponentWithMatrix { type Vtable = IPrinting3DComponentWithMatrix_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Printing3DComponentWithMatrix { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Printing3DComponentWithMatrix { const NAME: &'static str = "Windows.Graphics.Printing3D.Printing3DComponentWithMatrix"; } -::windows_core::imp::interface_hierarchy!(Printing3DComponentWithMatrix, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for Printing3DComponentWithMatrix {} unsafe impl ::core::marker::Sync for Printing3DComponentWithMatrix {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Printing3DCompositeMaterial(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Printing3DCompositeMaterial, ::windows_core::IUnknown, ::windows_core::IInspectable); impl Printing3DCompositeMaterial { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1680,19 +1293,17 @@ impl ::windows_core::RuntimeType for Printing3DCompositeMaterial { } unsafe impl ::windows_core::Interface for Printing3DCompositeMaterial { type Vtable = IPrinting3DCompositeMaterial_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Printing3DCompositeMaterial { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Printing3DCompositeMaterial { const NAME: &'static str = "Windows.Graphics.Printing3D.Printing3DCompositeMaterial"; } -::windows_core::imp::interface_hierarchy!(Printing3DCompositeMaterial, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for Printing3DCompositeMaterial {} unsafe impl ::core::marker::Sync for Printing3DCompositeMaterial {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Printing3DCompositeMaterialGroup(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Printing3DCompositeMaterialGroup, ::windows_core::IUnknown, ::windows_core::IInspectable); impl Printing3DCompositeMaterialGroup { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -1720,7 +1331,7 @@ impl Printing3DCompositeMaterialGroup { } } pub fn BaseMaterialGroup(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).BaseMaterialGroup)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1730,7 +1341,7 @@ impl Printing3DCompositeMaterialGroup { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Create(materialgroupid: u32) -> ::windows_core::Result { @@ -1750,19 +1361,17 @@ impl ::windows_core::RuntimeType for Printing3DCompositeMaterialGroup { } unsafe impl ::windows_core::Interface for Printing3DCompositeMaterialGroup { type Vtable = IPrinting3DCompositeMaterialGroup_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Printing3DCompositeMaterialGroup { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Printing3DCompositeMaterialGroup { const NAME: &'static str = "Windows.Graphics.Printing3D.Printing3DCompositeMaterialGroup"; } -::windows_core::imp::interface_hierarchy!(Printing3DCompositeMaterialGroup, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for Printing3DCompositeMaterialGroup {} unsafe impl ::core::marker::Sync for Printing3DCompositeMaterialGroup {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Printing3DFaceReductionOptions(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Printing3DFaceReductionOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); impl Printing3DFaceReductionOptions { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1810,19 +1419,17 @@ impl ::windows_core::RuntimeType for Printing3DFaceReductionOptions { } unsafe impl ::windows_core::Interface for Printing3DFaceReductionOptions { type Vtable = IPrinting3DFaceReductionOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Printing3DFaceReductionOptions { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Printing3DFaceReductionOptions { const NAME: &'static str = "Windows.Graphics.Printing3D.Printing3DFaceReductionOptions"; } -::windows_core::imp::interface_hierarchy!(Printing3DFaceReductionOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for Printing3DFaceReductionOptions {} unsafe impl ::core::marker::Sync for Printing3DFaceReductionOptions {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Printing3DMaterial(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Printing3DMaterial, ::windows_core::IUnknown, ::windows_core::IInspectable); impl Printing3DMaterial { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1882,19 +1489,17 @@ impl ::windows_core::RuntimeType for Printing3DMaterial { } unsafe impl ::windows_core::Interface for Printing3DMaterial { type Vtable = IPrinting3DMaterial_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Printing3DMaterial { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Printing3DMaterial { const NAME: &'static str = "Windows.Graphics.Printing3D.Printing3DMaterial"; } -::windows_core::imp::interface_hierarchy!(Printing3DMaterial, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for Printing3DMaterial {} unsafe impl ::core::marker::Sync for Printing3DMaterial {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Printing3DMesh(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Printing3DMesh, ::windows_core::IUnknown, ::windows_core::IInspectable); impl Printing3DMesh { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2052,19 +1657,17 @@ impl ::windows_core::RuntimeType for Printing3DMesh { } unsafe impl ::windows_core::Interface for Printing3DMesh { type Vtable = IPrinting3DMesh_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Printing3DMesh { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Printing3DMesh { const NAME: &'static str = "Windows.Graphics.Printing3D.Printing3DMesh"; } -::windows_core::imp::interface_hierarchy!(Printing3DMesh, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for Printing3DMesh {} unsafe impl ::core::marker::Sync for Printing3DMesh {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Printing3DMeshVerificationResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Printing3DMeshVerificationResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl Printing3DMeshVerificationResult { pub fn IsValid(&self) -> ::windows_core::Result { let this = self; @@ -2097,19 +1700,17 @@ impl ::windows_core::RuntimeType for Printing3DMeshVerificationResult { } unsafe impl ::windows_core::Interface for Printing3DMeshVerificationResult { type Vtable = IPrinting3DMeshVerificationResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Printing3DMeshVerificationResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Printing3DMeshVerificationResult { const NAME: &'static str = "Windows.Graphics.Printing3D.Printing3DMeshVerificationResult"; } -::windows_core::imp::interface_hierarchy!(Printing3DMeshVerificationResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for Printing3DMeshVerificationResult {} unsafe impl ::core::marker::Sync for Printing3DMeshVerificationResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Printing3DModel(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Printing3DModel, ::windows_core::IUnknown, ::windows_core::IInspectable); impl Printing3DModel { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2228,21 +1829,21 @@ impl Printing3DModel { } } pub fn TryPartialRepairAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryPartialRepairAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryPartialRepairWithTimeAsync(&self, maxwaittime: super::super::Foundation::TimeSpan) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryPartialRepairWithTimeAsync)(::windows_core::Interface::as_raw(this), maxwaittime, &mut result__).from_abi(result__) } } pub fn TryReduceFacesAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryReduceFacesAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2252,7 +1853,7 @@ impl Printing3DModel { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -2262,14 +1863,14 @@ impl Printing3DModel { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RepairWithProgressAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RepairWithProgressAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2281,19 +1882,17 @@ impl ::windows_core::RuntimeType for Printing3DModel { } unsafe impl ::windows_core::Interface for Printing3DModel { type Vtable = IPrinting3DModel_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Printing3DModel { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Printing3DModel { const NAME: &'static str = "Windows.Graphics.Printing3D.Printing3DModel"; } -::windows_core::imp::interface_hierarchy!(Printing3DModel, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for Printing3DModel {} unsafe impl ::core::marker::Sync for Printing3DModel {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Printing3DModelTexture(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Printing3DModelTexture, ::windows_core::IUnknown, ::windows_core::IInspectable); impl Printing3DModelTexture { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2344,19 +1943,17 @@ impl ::windows_core::RuntimeType for Printing3DModelTexture { } unsafe impl ::windows_core::Interface for Printing3DModelTexture { type Vtable = IPrinting3DModelTexture_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Printing3DModelTexture { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Printing3DModelTexture { const NAME: &'static str = "Windows.Graphics.Printing3D.Printing3DModelTexture"; } -::windows_core::imp::interface_hierarchy!(Printing3DModelTexture, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for Printing3DModelTexture {} unsafe impl ::core::marker::Sync for Printing3DModelTexture {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Printing3DMultiplePropertyMaterial(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Printing3DMultiplePropertyMaterial, ::windows_core::IUnknown, ::windows_core::IInspectable); impl Printing3DMultiplePropertyMaterial { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2380,19 +1977,17 @@ impl ::windows_core::RuntimeType for Printing3DMultiplePropertyMaterial { } unsafe impl ::windows_core::Interface for Printing3DMultiplePropertyMaterial { type Vtable = IPrinting3DMultiplePropertyMaterial_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Printing3DMultiplePropertyMaterial { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Printing3DMultiplePropertyMaterial { const NAME: &'static str = "Windows.Graphics.Printing3D.Printing3DMultiplePropertyMaterial"; } -::windows_core::imp::interface_hierarchy!(Printing3DMultiplePropertyMaterial, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for Printing3DMultiplePropertyMaterial {} unsafe impl ::core::marker::Sync for Printing3DMultiplePropertyMaterial {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Printing3DMultiplePropertyMaterialGroup(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Printing3DMultiplePropertyMaterialGroup, ::windows_core::IUnknown, ::windows_core::IInspectable); impl Printing3DMultiplePropertyMaterialGroup { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -2436,19 +2031,17 @@ impl ::windows_core::RuntimeType for Printing3DMultiplePropertyMaterialGroup { } unsafe impl ::windows_core::Interface for Printing3DMultiplePropertyMaterialGroup { type Vtable = IPrinting3DMultiplePropertyMaterialGroup_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Printing3DMultiplePropertyMaterialGroup { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Printing3DMultiplePropertyMaterialGroup { const NAME: &'static str = "Windows.Graphics.Printing3D.Printing3DMultiplePropertyMaterialGroup"; } -::windows_core::imp::interface_hierarchy!(Printing3DMultiplePropertyMaterialGroup, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for Printing3DMultiplePropertyMaterialGroup {} unsafe impl ::core::marker::Sync for Printing3DMultiplePropertyMaterialGroup {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Printing3DTexture2CoordMaterial(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Printing3DTexture2CoordMaterial, ::windows_core::IUnknown, ::windows_core::IInspectable); impl Printing3DTexture2CoordMaterial { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2499,19 +2092,17 @@ impl ::windows_core::RuntimeType for Printing3DTexture2CoordMaterial { } unsafe impl ::windows_core::Interface for Printing3DTexture2CoordMaterial { type Vtable = IPrinting3DTexture2CoordMaterial_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Printing3DTexture2CoordMaterial { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Printing3DTexture2CoordMaterial { const NAME: &'static str = "Windows.Graphics.Printing3D.Printing3DTexture2CoordMaterial"; } -::windows_core::imp::interface_hierarchy!(Printing3DTexture2CoordMaterial, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for Printing3DTexture2CoordMaterial {} unsafe impl ::core::marker::Sync for Printing3DTexture2CoordMaterial {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Printing3DTexture2CoordMaterialGroup(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Printing3DTexture2CoordMaterialGroup, ::windows_core::IUnknown, ::windows_core::IInspectable); impl Printing3DTexture2CoordMaterialGroup { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -2530,7 +2121,7 @@ impl Printing3DTexture2CoordMaterialGroup { } } pub fn Texture(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Texture)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2540,7 +2131,7 @@ impl Printing3DTexture2CoordMaterialGroup { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Create(materialgroupid: u32) -> ::windows_core::Result { @@ -2560,19 +2151,17 @@ impl ::windows_core::RuntimeType for Printing3DTexture2CoordMaterialGroup { } unsafe impl ::windows_core::Interface for Printing3DTexture2CoordMaterialGroup { type Vtable = IPrinting3DTexture2CoordMaterialGroup_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Printing3DTexture2CoordMaterialGroup { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Printing3DTexture2CoordMaterialGroup { const NAME: &'static str = "Windows.Graphics.Printing3D.Printing3DTexture2CoordMaterialGroup"; } -::windows_core::imp::interface_hierarchy!(Printing3DTexture2CoordMaterialGroup, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for Printing3DTexture2CoordMaterialGroup {} unsafe impl ::core::marker::Sync for Printing3DTexture2CoordMaterialGroup {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Printing3DTextureResource(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Printing3DTextureResource, ::windows_core::IUnknown, ::windows_core::IInspectable); impl Printing3DTextureResource { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2594,10 +2183,10 @@ impl Printing3DTextureResource { #[cfg(feature = "Storage_Streams")] pub fn SetTextureData(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetTextureData)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetTextureData)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn Name(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -2616,14 +2205,11 @@ impl ::windows_core::RuntimeType for Printing3DTextureResource { } unsafe impl ::windows_core::Interface for Printing3DTextureResource { type Vtable = IPrinting3DTextureResource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Printing3DTextureResource { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Printing3DTextureResource { const NAME: &'static str = "Windows.Graphics.Printing3D.Printing3DTextureResource"; } -::windows_core::imp::interface_hierarchy!(Printing3DTextureResource, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for Printing3DTextureResource {} unsafe impl ::core::marker::Sync for Printing3DTextureResource {} #[repr(transparent)] @@ -2824,9 +2410,7 @@ impl ::core::default::Default for Printing3DBufferDescription { unsafe { ::core::mem::zeroed() } } } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct Print3DTaskSourceRequestedHandler(pub ::windows_core::IUnknown); +::windows_core::imp::com_interface!(Print3DTaskSourceRequestedHandler, Print3DTaskSourceRequestedHandler_Vtbl, 0xe9175e70_c917_46de_bb51_d9a94db3711f); impl Print3DTaskSourceRequestedHandler { pub fn new) -> ::windows_core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = Print3DTaskSourceRequestedHandlerBox:: { vtable: &Print3DTaskSourceRequestedHandlerBox::::VTABLE, count: ::windows_core::imp::RefCount::new(1), invoke }; @@ -2856,7 +2440,7 @@ impl) -> ::wind if iid.is_null() || interface.is_null() { return ::windows_core::HRESULT(-2147467261); } - *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; + *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::Interface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::Interface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; if (*interface).is_null() { ::windows_core::HRESULT(-2147467262) } else { @@ -2881,12 +2465,6 @@ impl) -> ::wind ((*this).invoke)(::windows_core::from_raw_borrowed(&args)).into() } } -unsafe impl ::windows_core::Interface for Print3DTaskSourceRequestedHandler { - type Vtable = Print3DTaskSourceRequestedHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Print3DTaskSourceRequestedHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe9175e70_c917_46de_bb51_d9a94db3711f); -} impl ::windows_core::RuntimeType for Print3DTaskSourceRequestedHandler { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } diff --git a/crates/libs/windows/src/Windows/Graphics/impl.rs b/crates/libs/windows/src/Windows/Graphics/impl.rs index 2cd4cc8d88..3f852cd39a 100644 --- a/crates/libs/windows/src/Windows/Graphics/impl.rs +++ b/crates/libs/windows/src/Windows/Graphics/impl.rs @@ -7,6 +7,6 @@ impl IGeometrySource2D_Vtbl { Self { base__: ::windows_core::IInspectable_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/Graphics/mod.rs b/crates/libs/windows/src/Windows/Graphics/mod.rs index 17c05552ad..79e7e41886 100644 --- a/crates/libs/windows/src/Windows/Graphics/mod.rs +++ b/crates/libs/windows/src/Windows/Graphics/mod.rs @@ -22,20 +22,12 @@ pub mod Printing; #[cfg(feature = "Graphics_Printing3D")] #[doc = "Required features: `\"Graphics_Printing3D\"`"] pub mod Printing3D; -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGeometrySource2D(::windows_core::IUnknown); -impl IGeometrySource2D {} +::windows_core::imp::com_interface!(IGeometrySource2D, IGeometrySource2D_Vtbl, 0xcaff7902_670c_4181_a624_da977203b845); ::windows_core::imp::interface_hierarchy!(IGeometrySource2D, ::windows_core::IUnknown, ::windows_core::IInspectable); +impl IGeometrySource2D {} impl ::windows_core::RuntimeType for IGeometrySource2D { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IGeometrySource2D { - type Vtable = IGeometrySource2D_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGeometrySource2D { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcaff7902_670c_4181_a624_da977203b845); -} #[repr(C)] #[doc(hidden)] pub struct IGeometrySource2D_Vtbl { diff --git a/crates/libs/windows/src/Windows/Management/Core/mod.rs b/crates/libs/windows/src/Windows/Management/Core/mod.rs index 7bde3d27de..e1478daa84 100644 --- a/crates/libs/windows/src/Windows/Management/Core/mod.rs +++ b/crates/libs/windows/src/Windows/Management/Core/mod.rs @@ -1,28 +1,10 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IApplicationDataManager(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IApplicationDataManager { - type Vtable = IApplicationDataManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IApplicationDataManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x74d10432_2e99_4000_9a3a_64307e858129); -} +::windows_core::imp::com_interface!(IApplicationDataManager, IApplicationDataManager_Vtbl, 0x74d10432_2e99_4000_9a3a_64307e858129); #[repr(C)] #[doc(hidden)] pub struct IApplicationDataManager_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IApplicationDataManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IApplicationDataManagerStatics { - type Vtable = IApplicationDataManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IApplicationDataManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1e1862e3_698e_49a1_9752_dee94925b9b3); -} +::windows_core::imp::com_interface!(IApplicationDataManagerStatics, IApplicationDataManagerStatics_Vtbl, 0x1e1862e3_698e_49a1_9752_dee94925b9b3); #[repr(C)] #[doc(hidden)] pub struct IApplicationDataManagerStatics_Vtbl { @@ -35,6 +17,7 @@ pub struct IApplicationDataManagerStatics_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ApplicationDataManager(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ApplicationDataManager, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ApplicationDataManager { #[doc = "Required features: `\"Storage\"`"] #[cfg(feature = "Storage")] @@ -55,13 +38,10 @@ impl ::windows_core::RuntimeType for ApplicationDataManager { } unsafe impl ::windows_core::Interface for ApplicationDataManager { type Vtable = IApplicationDataManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ApplicationDataManager { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ApplicationDataManager { const NAME: &'static str = "Windows.Management.Core.ApplicationDataManager"; } -::windows_core::imp::interface_hierarchy!(ApplicationDataManager, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ApplicationDataManager {} unsafe impl ::core::marker::Sync for ApplicationDataManager {} diff --git a/crates/libs/windows/src/Windows/Management/Deployment/Preview/mod.rs b/crates/libs/windows/src/Windows/Management/Deployment/Preview/mod.rs index e2f28a096a..5a0ce7f478 100644 --- a/crates/libs/windows/src/Windows/Management/Deployment/Preview/mod.rs +++ b/crates/libs/windows/src/Windows/Management/Deployment/Preview/mod.rs @@ -1,29 +1,11 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IClassicAppManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IClassicAppManagerStatics { - type Vtable = IClassicAppManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IClassicAppManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe2fad668_882c_4f33_b035_0df7b90d67e6); -} +::windows_core::imp::com_interface!(IClassicAppManagerStatics, IClassicAppManagerStatics_Vtbl, 0xe2fad668_882c_4f33_b035_0df7b90d67e6); #[repr(C)] #[doc(hidden)] pub struct IClassicAppManagerStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub FindInstalledApp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, appuninstallkey: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInstalledClassicAppInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInstalledClassicAppInfo { - type Vtable = IInstalledClassicAppInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInstalledClassicAppInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0a7d3da3_65d0_4086_80d6_0610d760207d); -} +::windows_core::imp::com_interface!(IInstalledClassicAppInfo, IInstalledClassicAppInfo_Vtbl, 0x0a7d3da3_65d0_4086_80d6_0610d760207d); #[repr(C)] #[doc(hidden)] pub struct IInstalledClassicAppInfo_Vtbl { @@ -51,6 +33,7 @@ impl ::windows_core::RuntimeName for ClassicAppManager { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct InstalledClassicAppInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(InstalledClassicAppInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl InstalledClassicAppInfo { pub fn DisplayName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -72,13 +55,10 @@ impl ::windows_core::RuntimeType for InstalledClassicAppInfo { } unsafe impl ::windows_core::Interface for InstalledClassicAppInfo { type Vtable = IInstalledClassicAppInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for InstalledClassicAppInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for InstalledClassicAppInfo { const NAME: &'static str = "Windows.Management.Deployment.Preview.InstalledClassicAppInfo"; } -::windows_core::imp::interface_hierarchy!(InstalledClassicAppInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for InstalledClassicAppInfo {} unsafe impl ::core::marker::Sync for InstalledClassicAppInfo {} diff --git a/crates/libs/windows/src/Windows/Management/Deployment/mod.rs b/crates/libs/windows/src/Windows/Management/Deployment/mod.rs index ff35d10637..d77e1bcdc8 100644 --- a/crates/libs/windows/src/Windows/Management/Deployment/mod.rs +++ b/crates/libs/windows/src/Windows/Management/Deployment/mod.rs @@ -1,16 +1,7 @@ #[cfg(feature = "Management_Deployment_Preview")] #[doc = "Required features: `\"Management_Deployment_Preview\"`"] pub mod Preview; -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAddPackageOptions(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAddPackageOptions { - type Vtable = IAddPackageOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAddPackageOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x05cee018_f68f_422b_95a4_66679ec77fc0); -} +::windows_core::imp::com_interface!(IAddPackageOptions, IAddPackageOptions_Vtbl, 0x05cee018_f68f_422b_95a4_66679ec77fc0); #[repr(C)] #[doc(hidden)] pub struct IAddPackageOptions_Vtbl { @@ -58,16 +49,7 @@ pub struct IAddPackageOptions_Vtbl { pub DeferRegistrationWhenPackagesAreInUse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetDeferRegistrationWhenPackagesAreInUse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAddPackageOptions2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAddPackageOptions2 { - type Vtable = IAddPackageOptions2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAddPackageOptions2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xee515828_bf33_40f7_84af_1b6fad2919d7); -} +::windows_core::imp::com_interface!(IAddPackageOptions2, IAddPackageOptions2_Vtbl, 0xee515828_bf33_40f7_84af_1b6fad2919d7); #[repr(C)] #[doc(hidden)] pub struct IAddPackageOptions2_Vtbl { @@ -79,16 +61,7 @@ pub struct IAddPackageOptions2_Vtbl { pub LimitToExistingPackages: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetLimitToExistingPackages: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppInstallerManager(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppInstallerManager { - type Vtable = IAppInstallerManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppInstallerManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe7ee21c3_2103_53ee_9b18_68afeab0033d); -} +::windows_core::imp::com_interface!(IAppInstallerManager, IAppInstallerManager_Vtbl, 0xe7ee21c3_2103_53ee_9b18_68afeab0033d); #[repr(C)] #[doc(hidden)] pub struct IAppInstallerManager_Vtbl { @@ -97,16 +70,7 @@ pub struct IAppInstallerManager_Vtbl { pub ClearAutoUpdateSettings: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, packagefamilyname: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub PauseAutoUpdatesUntil: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, packagefamilyname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, datetime: super::super::Foundation::DateTime) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppInstallerManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppInstallerManagerStatics { - type Vtable = IAppInstallerManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppInstallerManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc95a6ed5_fc59_5336_9b2e_2b07c5e61434); -} +::windows_core::imp::com_interface!(IAppInstallerManagerStatics, IAppInstallerManagerStatics_Vtbl, 0xc95a6ed5_fc59_5336_9b2e_2b07c5e61434); #[repr(C)] #[doc(hidden)] pub struct IAppInstallerManagerStatics_Vtbl { @@ -114,16 +78,7 @@ pub struct IAppInstallerManagerStatics_Vtbl { pub GetDefault: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetForSystem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAutoUpdateSettingsOptions(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAutoUpdateSettingsOptions { - type Vtable = IAutoUpdateSettingsOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAutoUpdateSettingsOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x67491d87_35e1_512a_8968_1ae88d1be6d3); -} +::windows_core::imp::com_interface!(IAutoUpdateSettingsOptions, IAutoUpdateSettingsOptions_Vtbl, 0x67491d87_35e1_512a_8968_1ae88d1be6d3); #[repr(C)] #[doc(hidden)] pub struct IAutoUpdateSettingsOptions_Vtbl { @@ -169,16 +124,7 @@ pub struct IAutoUpdateSettingsOptions_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] OptionalPackageUris: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAutoUpdateSettingsOptionsStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAutoUpdateSettingsOptionsStatics { - type Vtable = IAutoUpdateSettingsOptionsStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAutoUpdateSettingsOptionsStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x887b337d_0c05_54d0_bd49_3bb7a2c084cb); -} +::windows_core::imp::com_interface!(IAutoUpdateSettingsOptionsStatics, IAutoUpdateSettingsOptionsStatics_Vtbl, 0x887b337d_0c05_54d0_bd49_3bb7a2c084cb); #[repr(C)] #[doc(hidden)] pub struct IAutoUpdateSettingsOptionsStatics_Vtbl { @@ -188,16 +134,7 @@ pub struct IAutoUpdateSettingsOptionsStatics_Vtbl { #[cfg(not(feature = "ApplicationModel"))] CreateFromAppInstallerInfo: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICreateSharedPackageContainerOptions(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICreateSharedPackageContainerOptions { - type Vtable = ICreateSharedPackageContainerOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICreateSharedPackageContainerOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc2ab6ece_f664_5c8e_a4b3_2a33276d3dde); -} +::windows_core::imp::com_interface!(ICreateSharedPackageContainerOptions, ICreateSharedPackageContainerOptions_Vtbl, 0xc2ab6ece_f664_5c8e_a4b3_2a33276d3dde); #[repr(C)] #[doc(hidden)] pub struct ICreateSharedPackageContainerOptions_Vtbl { @@ -211,16 +148,7 @@ pub struct ICreateSharedPackageContainerOptions_Vtbl { pub CreateCollisionOption: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut SharedPackageContainerCreationCollisionOptions) -> ::windows_core::HRESULT, pub SetCreateCollisionOption: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: SharedPackageContainerCreationCollisionOptions) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICreateSharedPackageContainerResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICreateSharedPackageContainerResult { - type Vtable = ICreateSharedPackageContainerResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICreateSharedPackageContainerResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xce8810bf_151c_5707_b936_497e564afc7a); -} +::windows_core::imp::com_interface!(ICreateSharedPackageContainerResult, ICreateSharedPackageContainerResult_Vtbl, 0xce8810bf_151c_5707_b936_497e564afc7a); #[repr(C)] #[doc(hidden)] pub struct ICreateSharedPackageContainerResult_Vtbl { @@ -229,16 +157,7 @@ pub struct ICreateSharedPackageContainerResult_Vtbl { pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut SharedPackageContainerOperationStatus) -> ::windows_core::HRESULT, pub ExtendedError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDeleteSharedPackageContainerOptions(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDeleteSharedPackageContainerOptions { - type Vtable = IDeleteSharedPackageContainerOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDeleteSharedPackageContainerOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9d81865f_986e_5138_8b5d_384d8e66ed6c); -} +::windows_core::imp::com_interface!(IDeleteSharedPackageContainerOptions, IDeleteSharedPackageContainerOptions_Vtbl, 0x9d81865f_986e_5138_8b5d_384d8e66ed6c); #[repr(C)] #[doc(hidden)] pub struct IDeleteSharedPackageContainerOptions_Vtbl { @@ -248,16 +167,7 @@ pub struct IDeleteSharedPackageContainerOptions_Vtbl { pub AllUsers: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetAllUsers: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDeleteSharedPackageContainerResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDeleteSharedPackageContainerResult { - type Vtable = IDeleteSharedPackageContainerResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDeleteSharedPackageContainerResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x35398884_5736_517b_85bc_e598c81ab284); -} +::windows_core::imp::com_interface!(IDeleteSharedPackageContainerResult, IDeleteSharedPackageContainerResult_Vtbl, 0x35398884_5736_517b_85bc_e598c81ab284); #[repr(C)] #[doc(hidden)] pub struct IDeleteSharedPackageContainerResult_Vtbl { @@ -265,16 +175,7 @@ pub struct IDeleteSharedPackageContainerResult_Vtbl { pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut SharedPackageContainerOperationStatus) -> ::windows_core::HRESULT, pub ExtendedError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDeploymentResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDeploymentResult { - type Vtable = IDeploymentResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDeploymentResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2563b9ae_b77d_4c1f_8a7b_20e6ad515ef3); -} +::windows_core::imp::com_interface!(IDeploymentResult, IDeploymentResult_Vtbl, 0x2563b9ae_b77d_4c1f_8a7b_20e6ad515ef3); #[repr(C)] #[doc(hidden)] pub struct IDeploymentResult_Vtbl { @@ -283,32 +184,14 @@ pub struct IDeploymentResult_Vtbl { pub ActivityId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, pub ExtendedErrorCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDeploymentResult2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDeploymentResult2 { - type Vtable = IDeploymentResult2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDeploymentResult2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfc0e715c_5a01_4bd7_bcf1_381c8c82e04a); -} +::windows_core::imp::com_interface!(IDeploymentResult2, IDeploymentResult2_Vtbl, 0xfc0e715c_5a01_4bd7_bcf1_381c8c82e04a); #[repr(C)] #[doc(hidden)] pub struct IDeploymentResult2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub IsRegistered: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFindSharedPackageContainerOptions(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFindSharedPackageContainerOptions { - type Vtable = IFindSharedPackageContainerOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFindSharedPackageContainerOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb40fc8fe_8384_54cc_817d_ae09d3b6a606); -} +::windows_core::imp::com_interface!(IFindSharedPackageContainerOptions, IFindSharedPackageContainerOptions_Vtbl, 0xb40fc8fe_8384_54cc_817d_ae09d3b6a606); #[repr(C)] #[doc(hidden)] pub struct IFindSharedPackageContainerOptions_Vtbl { @@ -318,16 +201,7 @@ pub struct IFindSharedPackageContainerOptions_Vtbl { pub PackageFamilyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetPackageFamilyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPackageAllUserProvisioningOptions(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPackageAllUserProvisioningOptions { - type Vtable = IPackageAllUserProvisioningOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPackageAllUserProvisioningOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xda35aa22_1de0_5d3e_99ff_d24f3118bf5e); -} +::windows_core::imp::com_interface!(IPackageAllUserProvisioningOptions, IPackageAllUserProvisioningOptions_Vtbl, 0xda35aa22_1de0_5d3e_99ff_d24f3118bf5e); #[repr(C)] #[doc(hidden)] pub struct IPackageAllUserProvisioningOptions_Vtbl { @@ -341,16 +215,7 @@ pub struct IPackageAllUserProvisioningOptions_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] ProjectionOrderPackageFamilyNames: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPackageManager(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPackageManager { - type Vtable = IPackageManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPackageManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9a7d4b65_5e8f_4fc7_a2e5_7f6925cb8b53); -} +::windows_core::imp::com_interface!(IPackageManager, IPackageManager_Vtbl, 0x9a7d4b65_5e8f_4fc7_a2e5_7f6925cb8b53); #[repr(C)] #[doc(hidden)] pub struct IPackageManager_Vtbl { @@ -411,32 +276,14 @@ pub struct IPackageManager_Vtbl { #[cfg(not(feature = "ApplicationModel"))] FindPackageByUserSecurityIdPackageFullName: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPackageManager10(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPackageManager10 { - type Vtable = IPackageManager10_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPackageManager10 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa7d7d07e_2e66_4093_aed5_e093ed87b3bb); -} +::windows_core::imp::com_interface!(IPackageManager10, IPackageManager10_Vtbl, 0xa7d7d07e_2e66_4093_aed5_e093ed87b3bb); #[repr(C)] #[doc(hidden)] pub struct IPackageManager10_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ProvisionPackageForAllUsersWithOptionsAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mainpackagefamilyname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, options: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPackageManager2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPackageManager2 { - type Vtable = IPackageManager2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPackageManager2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf7aad08d_0840_46f2_b5d8_cad47693a095); -} +::windows_core::imp::com_interface!(IPackageManager2, IPackageManager2_Vtbl, 0xf7aad08d_0840_46f2_b5d8_cad47693a095); #[repr(C)] #[doc(hidden)] pub struct IPackageManager2_Vtbl { @@ -476,16 +323,7 @@ pub struct IPackageManager2_Vtbl { FindPackagesByUserSecurityIdPackageFamilyNameWithPackageTypes: usize, pub StageUserDataAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, packagefullname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPackageManager3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPackageManager3 { - type Vtable = IPackageManager3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPackageManager3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdaad9948_36f1_41a7_9188_bc263e0dcb72); -} +::windows_core::imp::com_interface!(IPackageManager3, IPackageManager3_Vtbl, 0xdaad9948_36f1_41a7_9188_bc263e0dcb72); #[repr(C)] #[doc(hidden)] pub struct IPackageManager3_Vtbl { @@ -518,16 +356,7 @@ pub struct IPackageManager3_Vtbl { StagePackageToVolumeAsync: usize, pub StageUserDataWithOptionsAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, packagefullname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, deploymentoptions: DeploymentOptions, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPackageManager4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPackageManager4 { - type Vtable = IPackageManager4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPackageManager4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3c719963_bab6_46bf_8ff7_da4719230ae6); -} +::windows_core::imp::com_interface!(IPackageManager4, IPackageManager4_Vtbl, 0x3c719963_bab6_46bf_8ff7_da4719230ae6); #[repr(C)] #[doc(hidden)] pub struct IPackageManager4_Vtbl { @@ -537,16 +366,7 @@ pub struct IPackageManager4_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetPackageVolumesAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPackageManager5(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPackageManager5 { - type Vtable = IPackageManager5_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPackageManager5 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x711f3117_1afd_4313_978c_9bb6e1b864a7); -} +::windows_core::imp::com_interface!(IPackageManager5, IPackageManager5_Vtbl, 0x711f3117_1afd_4313_978c_9bb6e1b864a7); #[repr(C)] #[doc(hidden)] pub struct IPackageManager5_Vtbl { @@ -565,16 +385,7 @@ pub struct IPackageManager5_Vtbl { RegisterPackageByFamilyNameAndOptionalPackagesAsync: usize, pub DebugSettings: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPackageManager6(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPackageManager6 { - type Vtable = IPackageManager6_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPackageManager6 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0847e909_53cd_4e4f_832e_57d180f6e447); -} +::windows_core::imp::com_interface!(IPackageManager6, IPackageManager6_Vtbl, 0x0847e909_53cd_4e4f_832e_57d180f6e447); #[repr(C)] #[doc(hidden)] pub struct IPackageManager6_Vtbl { @@ -595,16 +406,7 @@ pub struct IPackageManager6_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] RequestAddPackageAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPackageManager7(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPackageManager7 { - type Vtable = IPackageManager7_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPackageManager7 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf28654f4_2ba7_4b80_88d6_be15f9a23fba); -} +::windows_core::imp::com_interface!(IPackageManager7, IPackageManager7_Vtbl, 0xf28654f4_2ba7_4b80_88d6_be15f9a23fba); #[repr(C)] #[doc(hidden)] pub struct IPackageManager7_Vtbl { @@ -614,32 +416,14 @@ pub struct IPackageManager7_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] RequestAddPackageAndRelatedSetAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPackageManager8(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPackageManager8 { - type Vtable = IPackageManager8_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPackageManager8 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb8575330_1298_4ee2_80ee_7f659c5d2782); -} +::windows_core::imp::com_interface!(IPackageManager8, IPackageManager8_Vtbl, 0xb8575330_1298_4ee2_80ee_7f659c5d2782); #[repr(C)] #[doc(hidden)] pub struct IPackageManager8_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub DeprovisionPackageForAllUsersAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, packagefamilyname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPackageManager9(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPackageManager9 { - type Vtable = IPackageManager9_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPackageManager9 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1aa79035_cc71_4b2e_80a6_c7041d8579a7); -} +::windows_core::imp::com_interface!(IPackageManager9, IPackageManager9_Vtbl, 0x1aa79035_cc71_4b2e_80a6_c7041d8579a7); #[repr(C)] #[doc(hidden)] pub struct IPackageManager9_Vtbl { @@ -658,16 +442,7 @@ pub struct IPackageManager9_Vtbl { pub SetPackageStubPreference: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, packagefamilyname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, usestub: PackageStubPreference) -> ::windows_core::HRESULT, pub GetPackageStubPreference: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, packagefamilyname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut PackageStubPreference) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPackageManagerDebugSettings(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPackageManagerDebugSettings { - type Vtable = IPackageManagerDebugSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPackageManagerDebugSettings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1a611683_a988_4fcf_8f0f_ce175898e8eb); -} +::windows_core::imp::com_interface!(IPackageManagerDebugSettings, IPackageManagerDebugSettings_Vtbl, 0x1a611683_a988_4fcf_8f0f_ce175898e8eb); #[repr(C)] #[doc(hidden)] pub struct IPackageManagerDebugSettings_Vtbl { @@ -681,16 +456,7 @@ pub struct IPackageManagerDebugSettings_Vtbl { #[cfg(not(feature = "ApplicationModel"))] SetContentGroupStateWithPercentageAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPackageUserInformation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPackageUserInformation { - type Vtable = IPackageUserInformation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPackageUserInformation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf6383423_fa09_4cbc_9055_15ca275e2e7e); -} +::windows_core::imp::com_interface!(IPackageUserInformation, IPackageUserInformation_Vtbl, 0xf6383423_fa09_4cbc_9055_15ca275e2e7e); #[repr(C)] #[doc(hidden)] pub struct IPackageUserInformation_Vtbl { @@ -698,16 +464,7 @@ pub struct IPackageUserInformation_Vtbl { pub UserSecurityId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub InstallState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut PackageInstallState) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPackageVolume(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPackageVolume { - type Vtable = IPackageVolume_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPackageVolume { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcf2672c3_1a40_4450_9739_2ace2e898853); -} +::windows_core::imp::com_interface!(IPackageVolume, IPackageVolume_Vtbl, 0xcf2672c3_1a40_4450_9739_2ace2e898853); #[repr(C)] #[doc(hidden)] pub struct IPackageVolume_Vtbl { @@ -775,16 +532,7 @@ pub struct IPackageVolume_Vtbl { #[cfg(not(all(feature = "ApplicationModel", feature = "Foundation_Collections")))] FindPackageByUserSecurityIdPackageFullName: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPackageVolume2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPackageVolume2 { - type Vtable = IPackageVolume2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPackageVolume2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x46abcf2e_9dd4_47a2_ab8c_c6408349bcd8); -} +::windows_core::imp::com_interface!(IPackageVolume2, IPackageVolume2_Vtbl, 0x46abcf2e_9dd4_47a2_ab8c_c6408349bcd8); #[repr(C)] #[doc(hidden)] pub struct IPackageVolume2_Vtbl { @@ -793,16 +541,7 @@ pub struct IPackageVolume2_Vtbl { pub IsAppxInstallSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub GetAvailableSpaceAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRegisterPackageOptions(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRegisterPackageOptions { - type Vtable = IRegisterPackageOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRegisterPackageOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x677112a7_50d4_496c_8415_0602b4c6d3bf); -} +::windows_core::imp::com_interface!(IRegisterPackageOptions, IRegisterPackageOptions_Vtbl, 0x677112a7_50d4_496c_8415_0602b4c6d3bf); #[repr(C)] #[doc(hidden)] pub struct IRegisterPackageOptions_Vtbl { @@ -836,16 +575,7 @@ pub struct IRegisterPackageOptions_Vtbl { pub DeferRegistrationWhenPackagesAreInUse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetDeferRegistrationWhenPackagesAreInUse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRegisterPackageOptions2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRegisterPackageOptions2 { - type Vtable = IRegisterPackageOptions2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRegisterPackageOptions2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3dfa9743_86ff_4a11_bc93_434eb6be3a0b); -} +::windows_core::imp::com_interface!(IRegisterPackageOptions2, IRegisterPackageOptions2_Vtbl, 0x3dfa9743_86ff_4a11_bc93_434eb6be3a0b); #[repr(C)] #[doc(hidden)] pub struct IRegisterPackageOptions2_Vtbl { @@ -855,16 +585,7 @@ pub struct IRegisterPackageOptions2_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] ExpectedDigests: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISharedPackageContainer(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISharedPackageContainer { - type Vtable = ISharedPackageContainer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISharedPackageContainer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x177f1aa9_151e_5ef7_b1d9_2fba0b4b0d17); -} +::windows_core::imp::com_interface!(ISharedPackageContainer, ISharedPackageContainer_Vtbl, 0x177f1aa9_151e_5ef7_b1d9_2fba0b4b0d17); #[repr(C)] #[doc(hidden)] pub struct ISharedPackageContainer_Vtbl { @@ -878,16 +599,7 @@ pub struct ISharedPackageContainer_Vtbl { pub RemovePackageFamily: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, packagefamilyname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, options: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ResetData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISharedPackageContainerManager(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISharedPackageContainerManager { - type Vtable = ISharedPackageContainerManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISharedPackageContainerManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbe353068_1ef7_5ac8_ab3f_0b9f612f0274); -} +::windows_core::imp::com_interface!(ISharedPackageContainerManager, ISharedPackageContainerManager_Vtbl, 0xbe353068_1ef7_5ac8_ab3f_0b9f612f0274); #[repr(C)] #[doc(hidden)] pub struct ISharedPackageContainerManager_Vtbl { @@ -904,16 +616,7 @@ pub struct ISharedPackageContainerManager_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] FindContainersWithOptions: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISharedPackageContainerManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISharedPackageContainerManagerStatics { - type Vtable = ISharedPackageContainerManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISharedPackageContainerManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2ef56348_838a_5f55_a89e_1198a2c627e6); -} +::windows_core::imp::com_interface!(ISharedPackageContainerManagerStatics, ISharedPackageContainerManagerStatics_Vtbl, 0x2ef56348_838a_5f55_a89e_1198a2c627e6); #[repr(C)] #[doc(hidden)] pub struct ISharedPackageContainerManagerStatics_Vtbl { @@ -922,48 +625,21 @@ pub struct ISharedPackageContainerManagerStatics_Vtbl { pub GetForUser: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, usersid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetForProvisioning: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISharedPackageContainerMember(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISharedPackageContainerMember { - type Vtable = ISharedPackageContainerMember_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISharedPackageContainerMember { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfe0d0438_43c9_5426_b89c_f79bf85ddff4); -} +::windows_core::imp::com_interface!(ISharedPackageContainerMember, ISharedPackageContainerMember_Vtbl, 0xfe0d0438_43c9_5426_b89c_f79bf85ddff4); #[repr(C)] #[doc(hidden)] pub struct ISharedPackageContainerMember_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub PackageFamilyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISharedPackageContainerMemberFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISharedPackageContainerMemberFactory { - type Vtable = ISharedPackageContainerMemberFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISharedPackageContainerMemberFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x49b0ceeb_498f_5a62_b738_b3ca0d436704); -} +::windows_core::imp::com_interface!(ISharedPackageContainerMemberFactory, ISharedPackageContainerMemberFactory_Vtbl, 0x49b0ceeb_498f_5a62_b738_b3ca0d436704); #[repr(C)] #[doc(hidden)] pub struct ISharedPackageContainerMemberFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, packagefamilyname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStagePackageOptions(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStagePackageOptions { - type Vtable = IStagePackageOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStagePackageOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0b110c9c_b95d_4c56_bd36_6d656800d06b); -} +::windows_core::imp::com_interface!(IStagePackageOptions, IStagePackageOptions_Vtbl, 0x0b110c9c_b95d_4c56_bd36_6d656800d06b); #[repr(C)] #[doc(hidden)] pub struct IStagePackageOptions_Vtbl { @@ -1003,16 +679,7 @@ pub struct IStagePackageOptions_Vtbl { pub AllowUnsigned: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetAllowUnsigned: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStagePackageOptions2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStagePackageOptions2 { - type Vtable = IStagePackageOptions2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStagePackageOptions2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x990c4ccc_6226_4192_ba92_79875fce0d9c); -} +::windows_core::imp::com_interface!(IStagePackageOptions2, IStagePackageOptions2_Vtbl, 0x990c4ccc_6226_4192_ba92_79875fce0d9c); #[repr(C)] #[doc(hidden)] pub struct IStagePackageOptions2_Vtbl { @@ -1022,16 +689,7 @@ pub struct IStagePackageOptions2_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] ExpectedDigests: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUpdateSharedPackageContainerOptions(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUpdateSharedPackageContainerOptions { - type Vtable = IUpdateSharedPackageContainerOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUpdateSharedPackageContainerOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x80672e83_7194_59f9_b5b9_daa5375f130a); -} +::windows_core::imp::com_interface!(IUpdateSharedPackageContainerOptions, IUpdateSharedPackageContainerOptions_Vtbl, 0x80672e83_7194_59f9_b5b9_daa5375f130a); #[repr(C)] #[doc(hidden)] pub struct IUpdateSharedPackageContainerOptions_Vtbl { @@ -1041,16 +699,7 @@ pub struct IUpdateSharedPackageContainerOptions_Vtbl { pub RequirePackagesPresent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetRequirePackagesPresent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUpdateSharedPackageContainerResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUpdateSharedPackageContainerResult { - type Vtable = IUpdateSharedPackageContainerResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUpdateSharedPackageContainerResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaa407df7_c72d_5458_aea3_4645b6a8ee99); -} +::windows_core::imp::com_interface!(IUpdateSharedPackageContainerResult, IUpdateSharedPackageContainerResult_Vtbl, 0xaa407df7_c72d_5458_aea3_4645b6a8ee99); #[repr(C)] #[doc(hidden)] pub struct IUpdateSharedPackageContainerResult_Vtbl { @@ -1061,6 +710,7 @@ pub struct IUpdateSharedPackageContainerResult_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AddPackageOptions(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AddPackageOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AddPackageOptions { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1257,21 +907,21 @@ impl AddPackageOptions { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn ExpectedDigests(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ExpectedDigests)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn LimitToExistingPackages(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).LimitToExistingPackages)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetLimitToExistingPackages(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetLimitToExistingPackages)(::windows_core::Interface::as_raw(this), value).ok() } } } @@ -1280,19 +930,17 @@ impl ::windows_core::RuntimeType for AddPackageOptions { } unsafe impl ::windows_core::Interface for AddPackageOptions { type Vtable = IAddPackageOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AddPackageOptions { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AddPackageOptions { const NAME: &'static str = "Windows.Management.Deployment.AddPackageOptions"; } -::windows_core::imp::interface_hierarchy!(AddPackageOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AddPackageOptions {} unsafe impl ::core::marker::Sync for AddPackageOptions {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppInstallerManager(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppInstallerManager, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppInstallerManager { pub fn SetAutoUpdateSettings(&self, packagefamilyname: &::windows_core::HSTRING, appinstallerinfo: P0) -> ::windows_core::Result<()> where @@ -1332,19 +980,17 @@ impl ::windows_core::RuntimeType for AppInstallerManager { } unsafe impl ::windows_core::Interface for AppInstallerManager { type Vtable = IAppInstallerManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppInstallerManager { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppInstallerManager { const NAME: &'static str = "Windows.Management.Deployment.AppInstallerManager"; } -::windows_core::imp::interface_hierarchy!(AppInstallerManager, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppInstallerManager {} unsafe impl ::core::marker::Sync for AppInstallerManager {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AutoUpdateSettingsOptions(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AutoUpdateSettingsOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AutoUpdateSettingsOptions { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1517,19 +1163,17 @@ impl ::windows_core::RuntimeType for AutoUpdateSettingsOptions { } unsafe impl ::windows_core::Interface for AutoUpdateSettingsOptions { type Vtable = IAutoUpdateSettingsOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AutoUpdateSettingsOptions { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AutoUpdateSettingsOptions { const NAME: &'static str = "Windows.Management.Deployment.AutoUpdateSettingsOptions"; } -::windows_core::imp::interface_hierarchy!(AutoUpdateSettingsOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AutoUpdateSettingsOptions {} unsafe impl ::core::marker::Sync for AutoUpdateSettingsOptions {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CreateSharedPackageContainerOptions(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CreateSharedPackageContainerOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CreateSharedPackageContainerOptions { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1575,19 +1219,17 @@ impl ::windows_core::RuntimeType for CreateSharedPackageContainerOptions { } unsafe impl ::windows_core::Interface for CreateSharedPackageContainerOptions { type Vtable = ICreateSharedPackageContainerOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CreateSharedPackageContainerOptions { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CreateSharedPackageContainerOptions { const NAME: &'static str = "Windows.Management.Deployment.CreateSharedPackageContainerOptions"; } -::windows_core::imp::interface_hierarchy!(CreateSharedPackageContainerOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CreateSharedPackageContainerOptions {} unsafe impl ::core::marker::Sync for CreateSharedPackageContainerOptions {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CreateSharedPackageContainerResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CreateSharedPackageContainerResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CreateSharedPackageContainerResult { pub fn Container(&self) -> ::windows_core::Result { let this = self; @@ -1616,19 +1258,17 @@ impl ::windows_core::RuntimeType for CreateSharedPackageContainerResult { } unsafe impl ::windows_core::Interface for CreateSharedPackageContainerResult { type Vtable = ICreateSharedPackageContainerResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CreateSharedPackageContainerResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CreateSharedPackageContainerResult { const NAME: &'static str = "Windows.Management.Deployment.CreateSharedPackageContainerResult"; } -::windows_core::imp::interface_hierarchy!(CreateSharedPackageContainerResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CreateSharedPackageContainerResult {} unsafe impl ::core::marker::Sync for CreateSharedPackageContainerResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DeleteSharedPackageContainerOptions(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DeleteSharedPackageContainerOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DeleteSharedPackageContainerOptions { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1665,19 +1305,17 @@ impl ::windows_core::RuntimeType for DeleteSharedPackageContainerOptions { } unsafe impl ::windows_core::Interface for DeleteSharedPackageContainerOptions { type Vtable = IDeleteSharedPackageContainerOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DeleteSharedPackageContainerOptions { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DeleteSharedPackageContainerOptions { const NAME: &'static str = "Windows.Management.Deployment.DeleteSharedPackageContainerOptions"; } -::windows_core::imp::interface_hierarchy!(DeleteSharedPackageContainerOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DeleteSharedPackageContainerOptions {} unsafe impl ::core::marker::Sync for DeleteSharedPackageContainerOptions {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DeleteSharedPackageContainerResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DeleteSharedPackageContainerResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DeleteSharedPackageContainerResult { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -1699,19 +1337,17 @@ impl ::windows_core::RuntimeType for DeleteSharedPackageContainerResult { } unsafe impl ::windows_core::Interface for DeleteSharedPackageContainerResult { type Vtable = IDeleteSharedPackageContainerResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DeleteSharedPackageContainerResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DeleteSharedPackageContainerResult { const NAME: &'static str = "Windows.Management.Deployment.DeleteSharedPackageContainerResult"; } -::windows_core::imp::interface_hierarchy!(DeleteSharedPackageContainerResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DeleteSharedPackageContainerResult {} unsafe impl ::core::marker::Sync for DeleteSharedPackageContainerResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DeploymentResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DeploymentResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DeploymentResult { pub fn ErrorText(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1735,7 +1371,7 @@ impl DeploymentResult { } } pub fn IsRegistered(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsRegistered)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1747,19 +1383,17 @@ impl ::windows_core::RuntimeType for DeploymentResult { } unsafe impl ::windows_core::Interface for DeploymentResult { type Vtable = IDeploymentResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DeploymentResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DeploymentResult { const NAME: &'static str = "Windows.Management.Deployment.DeploymentResult"; } -::windows_core::imp::interface_hierarchy!(DeploymentResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DeploymentResult {} unsafe impl ::core::marker::Sync for DeploymentResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct FindSharedPackageContainerOptions(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(FindSharedPackageContainerOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); impl FindSharedPackageContainerOptions { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1796,19 +1430,17 @@ impl ::windows_core::RuntimeType for FindSharedPackageContainerOptions { } unsafe impl ::windows_core::Interface for FindSharedPackageContainerOptions { type Vtable = IFindSharedPackageContainerOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for FindSharedPackageContainerOptions { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for FindSharedPackageContainerOptions { const NAME: &'static str = "Windows.Management.Deployment.FindSharedPackageContainerOptions"; } -::windows_core::imp::interface_hierarchy!(FindSharedPackageContainerOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for FindSharedPackageContainerOptions {} unsafe impl ::core::marker::Sync for FindSharedPackageContainerOptions {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PackageAllUserProvisioningOptions(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PackageAllUserProvisioningOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PackageAllUserProvisioningOptions { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1841,19 +1473,17 @@ impl ::windows_core::RuntimeType for PackageAllUserProvisioningOptions { } unsafe impl ::windows_core::Interface for PackageAllUserProvisioningOptions { type Vtable = IPackageAllUserProvisioningOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PackageAllUserProvisioningOptions { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PackageAllUserProvisioningOptions { const NAME: &'static str = "Windows.Management.Deployment.PackageAllUserProvisioningOptions"; } -::windows_core::imp::interface_hierarchy!(PackageAllUserProvisioningOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PackageAllUserProvisioningOptions {} unsafe impl ::core::marker::Sync for PackageAllUserProvisioningOptions {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PackageManager(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PackageManager, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PackageManager { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1867,12 +1497,12 @@ impl PackageManager { pub fn AddPackageAsync(&self, packageuri: P0, dependencypackageuris: P1, deploymentoptions: DeploymentOptions) -> ::windows_core::Result> where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam>, + P1: ::windows_core::IntoParam>, { 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.try_into_param()?.abi(), deploymentoptions, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).AddPackageAsync)(::windows_core::Interface::as_raw(this), packageuri.into_param().abi(), dependencypackageuris.into_param().abi(), deploymentoptions, &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -1880,12 +1510,12 @@ impl PackageManager { pub fn UpdatePackageAsync(&self, packageuri: P0, dependencypackageuris: P1, deploymentoptions: DeploymentOptions) -> ::windows_core::Result> where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam>, + P1: ::windows_core::IntoParam>, { 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.try_into_param()?.abi(), deploymentoptions, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).UpdatePackageAsync)(::windows_core::Interface::as_raw(this), packageuri.into_param().abi(), dependencypackageuris.into_param().abi(), deploymentoptions, &mut result__).from_abi(result__) } } pub fn RemovePackageAsync(&self, packagefullname: &::windows_core::HSTRING) -> ::windows_core::Result> { @@ -1900,12 +1530,12 @@ impl PackageManager { pub fn StagePackageAsync(&self, packageuri: P0, dependencypackageuris: P1) -> ::windows_core::Result> where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam>, + P1: ::windows_core::IntoParam>, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).StagePackageAsync)(::windows_core::Interface::as_raw(this), packageuri.into_param().abi(), dependencypackageuris.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -1913,12 +1543,12 @@ impl PackageManager { pub fn RegisterPackageAsync(&self, manifesturi: P0, dependencypackageuris: P1, deploymentoptions: DeploymentOptions) -> ::windows_core::Result> where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam>, + P1: ::windows_core::IntoParam>, { 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.try_into_param()?.abi(), deploymentoptions, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).RegisterPackageAsync)(::windows_core::Interface::as_raw(this), manifesturi.into_param().abi(), dependencypackageuris.into_param().abi(), deploymentoptions, &mut result__).from_abi(result__) } } #[doc = "Required features: `\"ApplicationModel\"`, `\"Foundation_Collections\"`"] @@ -2017,14 +1647,14 @@ impl PackageManager { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemovePackageWithOptionsAsync(&self, packagefullname: &::windows_core::HSTRING, removaloptions: RemovalOptions) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RemovePackageWithOptionsAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(packagefullname), removaloptions, &mut result__).from_abi(result__) @@ -2035,30 +1665,30 @@ impl PackageManager { pub fn StagePackageWithOptionsAsync(&self, packageuri: P0, dependencypackageuris: P1, deploymentoptions: DeploymentOptions) -> ::windows_core::Result> where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam>, + P1: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), deploymentoptions, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).StagePackageWithOptionsAsync)(::windows_core::Interface::as_raw(this), packageuri.into_param().abi(), dependencypackageuris.into_param().abi(), deploymentoptions, &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn RegisterPackageByFullNameAsync(&self, mainpackagefullname: &::windows_core::HSTRING, dependencypackagefullnames: P0, deploymentoptions: DeploymentOptions) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), deploymentoptions, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).RegisterPackageByFullNameAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(mainpackagefullname), dependencypackagefullnames.into_param().abi(), deploymentoptions, &mut result__).from_abi(result__) } } #[doc = "Required features: `\"ApplicationModel\"`, `\"Foundation_Collections\"`"] #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] pub fn FindPackagesWithPackageTypes(&self, packagetypes: PackageTypes) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FindPackagesWithPackageTypes)(::windows_core::Interface::as_raw(this), packagetypes, &mut result__).from_abi(result__) @@ -2067,7 +1697,7 @@ impl PackageManager { #[doc = "Required features: `\"ApplicationModel\"`, `\"Foundation_Collections\"`"] #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] pub fn FindPackagesByUserSecurityIdWithPackageTypes(&self, usersecurityid: &::windows_core::HSTRING, packagetypes: PackageTypes) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FindPackagesByUserSecurityIdWithPackageTypes)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(usersecurityid), packagetypes, &mut result__).from_abi(result__) @@ -2076,7 +1706,7 @@ impl PackageManager { #[doc = "Required features: `\"ApplicationModel\"`, `\"Foundation_Collections\"`"] #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] pub fn FindPackagesByNamePublisherWithPackageTypes(&self, packagename: &::windows_core::HSTRING, packagepublisher: &::windows_core::HSTRING, packagetypes: PackageTypes) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FindPackagesByNamePublisherWithPackageTypes)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(packagename), ::core::mem::transmute_copy(packagepublisher), packagetypes, &mut result__).from_abi(result__) @@ -2085,7 +1715,7 @@ impl PackageManager { #[doc = "Required features: `\"ApplicationModel\"`, `\"Foundation_Collections\"`"] #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] pub fn FindPackagesByUserSecurityIdNamePublisherWithPackageTypes(&self, usersecurityid: &::windows_core::HSTRING, packagename: &::windows_core::HSTRING, packagepublisher: &::windows_core::HSTRING, packagetypes: PackageTypes) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FindPackagesByUserSecurityIdNamePublisherWithPackageTypes)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(usersecurityid), ::core::mem::transmute_copy(packagename), ::core::mem::transmute_copy(packagepublisher), packagetypes, &mut result__).from_abi(result__) @@ -2094,7 +1724,7 @@ impl PackageManager { #[doc = "Required features: `\"ApplicationModel\"`, `\"Foundation_Collections\"`"] #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] pub fn FindPackagesByPackageFamilyNameWithPackageTypes(&self, packagefamilyname: &::windows_core::HSTRING, packagetypes: PackageTypes) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FindPackagesByPackageFamilyNameWithPackageTypes)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(packagefamilyname), packagetypes, &mut result__).from_abi(result__) @@ -2103,21 +1733,21 @@ impl PackageManager { #[doc = "Required features: `\"ApplicationModel\"`, `\"Foundation_Collections\"`"] #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] pub fn FindPackagesByUserSecurityIdPackageFamilyNameWithPackageTypes(&self, usersecurityid: &::windows_core::HSTRING, packagefamilyname: &::windows_core::HSTRING, packagetypes: PackageTypes) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FindPackagesByUserSecurityIdPackageFamilyNameWithPackageTypes)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(usersecurityid), ::core::mem::transmute_copy(packagefamilyname), packagetypes, &mut result__).from_abi(result__) } } pub fn StageUserDataAsync(&self, packagefullname: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).StageUserDataAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(packagefullname), &mut result__).from_abi(result__) } } pub fn AddPackageVolumeAsync(&self, packagestorepath: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AddPackageVolumeAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(packagestorepath), &mut result__).from_abi(result__) @@ -2128,17 +1758,17 @@ impl PackageManager { pub fn AddPackageToVolumeAsync(&self, packageuri: P0, dependencypackageuris: P1, deploymentoptions: DeploymentOptions, targetvolume: P2) -> ::windows_core::Result> where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam>, + P1: ::windows_core::IntoParam>, P2: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), deploymentoptions, targetvolume.into_param().abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) } } pub fn ClearPackageStatus(&self, packagefullname: &::windows_core::HSTRING, status: PackageStatus) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ClearPackageStatus)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(packagefullname), status).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -2146,17 +1776,17 @@ impl PackageManager { pub fn RegisterPackageWithAppDataVolumeAsync(&self, manifesturi: P0, dependencypackageuris: P1, deploymentoptions: DeploymentOptions, appdatavolume: P2) -> ::windows_core::Result> where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam>, + P1: ::windows_core::IntoParam>, P2: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), deploymentoptions, appdatavolume.into_param().abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) } } pub fn FindPackageVolumeByName(&self, volumename: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FindPackageVolumeByName)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(volumename), &mut result__).from_abi(result__) @@ -2165,14 +1795,14 @@ impl PackageManager { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn FindPackageVolumes(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FindPackageVolumes)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetDefaultPackageVolume(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetDefaultPackageVolume)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2182,7 +1812,7 @@ impl PackageManager { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -2192,7 +1822,7 @@ impl PackageManager { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -2202,18 +1832,18 @@ impl PackageManager { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn SetPackageStatus(&self, packagefullname: &::windows_core::HSTRING, status: PackageStatus) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetPackageStatus)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(packagefullname), status).ok() } } pub fn SetPackageVolumeOfflineAsync(&self, packagevolume: P0) -> ::windows_core::Result> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -2223,7 +1853,7 @@ impl PackageManager { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -2234,17 +1864,17 @@ impl PackageManager { pub fn StagePackageToVolumeAsync(&self, packageuri: P0, dependencypackageuris: P1, deploymentoptions: DeploymentOptions, targetvolume: P2) -> ::windows_core::Result> where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam>, + P1: ::windows_core::IntoParam>, P2: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), deploymentoptions, targetvolume.into_param().abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) } } pub fn StageUserDataWithOptionsAsync(&self, packagefullname: &::windows_core::HSTRING, deploymentoptions: DeploymentOptions) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).StageUserDataWithOptionsAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(packagefullname), deploymentoptions, &mut result__).from_abi(result__) @@ -2253,7 +1883,7 @@ impl PackageManager { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetPackageVolumesAsync(&self) -> ::windows_core::Result>> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetPackageVolumesAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2264,15 +1894,15 @@ impl PackageManager { 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::TryIntoParam>, + P1: ::windows_core::IntoParam>, P2: ::windows_core::IntoParam, - P3: ::windows_core::TryIntoParam>, - P4: ::windows_core::TryIntoParam>, + P3: ::windows_core::IntoParam>, + P4: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), deploymentoptions, targetvolume.into_param().abi(), optionalpackagefamilynames.try_into_param()?.abi(), externalpackageuris.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -2280,40 +1910,40 @@ impl PackageManager { 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::TryIntoParam>, + P1: ::windows_core::IntoParam>, P2: ::windows_core::IntoParam, - P3: ::windows_core::TryIntoParam>, - P4: ::windows_core::TryIntoParam>, + P3: ::windows_core::IntoParam>, + P4: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), deploymentoptions, targetvolume.into_param().abi(), optionalpackagefamilynames.try_into_param()?.abi(), externalpackageuris.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[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::TryIntoParam>, + P0: ::windows_core::IntoParam>, P1: ::windows_core::IntoParam, - P2: ::windows_core::TryIntoParam>, + P2: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), deploymentoptions, appdatavolume.into_param().abi(), optionalpackagefamilynames.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) } } pub fn DebugSettings(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DebugSettings)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ProvisionPackageForAllUsersAsync(&self, packagefamilyname: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ProvisionPackageForAllUsersAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(packagefamilyname), &mut result__).from_abi(result__) @@ -2324,7 +1954,7 @@ impl PackageManager { P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -2335,7 +1965,7 @@ impl PackageManager { P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -2346,16 +1976,16 @@ impl PackageManager { 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::TryIntoParam>, + P1: ::windows_core::IntoParam>, P2: ::windows_core::IntoParam, - P3: ::windows_core::TryIntoParam>, - P4: ::windows_core::TryIntoParam>, - P5: ::windows_core::TryIntoParam>, + P3: ::windows_core::IntoParam>, + P4: ::windows_core::IntoParam>, + P5: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), options, targetvolume.into_param().abi(), optionalpackagefamilynames.try_into_param()?.abi(), packageuristoinstall.try_into_param()?.abi(), relatedpackageuris.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -2363,16 +1993,16 @@ impl PackageManager { 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::TryIntoParam>, + P1: ::windows_core::IntoParam>, P2: ::windows_core::IntoParam, - P3: ::windows_core::TryIntoParam>, - P4: ::windows_core::TryIntoParam>, - P5: ::windows_core::TryIntoParam>, + P3: ::windows_core::IntoParam>, + P4: ::windows_core::IntoParam>, + P5: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), options, targetvolume.into_param().abi(), optionalpackagefamilynames.try_into_param()?.abi(), packageuristoinstall.try_into_param()?.abi(), relatedpackageuris.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -2380,15 +2010,15 @@ impl PackageManager { 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::TryIntoParam>, + P1: ::windows_core::IntoParam>, P2: ::windows_core::IntoParam, - P3: ::windows_core::TryIntoParam>, - P4: ::windows_core::TryIntoParam>, + P3: ::windows_core::IntoParam>, + P4: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), deploymentoptions, targetvolume.into_param().abi(), optionalpackagefamilynames.try_into_param()?.abi(), relatedpackageuris.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -2396,20 +2026,20 @@ impl PackageManager { 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::TryIntoParam>, + P1: ::windows_core::IntoParam>, P2: ::windows_core::IntoParam, - P3: ::windows_core::TryIntoParam>, - P4: ::windows_core::TryIntoParam>, - P5: ::windows_core::TryIntoParam>, + P3: ::windows_core::IntoParam>, + P4: ::windows_core::IntoParam>, + P5: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), deploymentoptions, targetvolume.into_param().abi(), optionalpackagefamilynames.try_into_param()?.abi(), relatedpackageuris.try_into_param()?.abi(), packageuristoinstall.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) } } pub fn DeprovisionPackageForAllUsersAsync(&self, packagefamilyname: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DeprovisionPackageForAllUsersAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(packagefamilyname), &mut result__).from_abi(result__) @@ -2418,7 +2048,7 @@ impl PackageManager { #[doc = "Required features: `\"ApplicationModel\"`, `\"Foundation_Collections\"`"] #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] pub fn FindProvisionedPackages(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FindProvisionedPackages)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2429,7 +2059,7 @@ impl PackageManager { P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -2440,7 +2070,7 @@ impl PackageManager { P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -2451,7 +2081,7 @@ impl PackageManager { P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -2461,21 +2091,21 @@ impl PackageManager { #[cfg(feature = "Foundation_Collections")] pub fn RegisterPackagesByFullNameAsync(&self, packagefullnames: P0, options: P1) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), options.into_param().abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).RegisterPackagesByFullNameAsync)(::windows_core::Interface::as_raw(this), packagefullnames.into_param().abi(), options.into_param().abi(), &mut result__).from_abi(result__) } } pub fn SetPackageStubPreference(&self, packagefamilyname: &::windows_core::HSTRING, usestub: PackageStubPreference) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetPackageStubPreference)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(packagefamilyname), usestub).ok() } } pub fn GetPackageStubPreference(&self, packagefamilyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetPackageStubPreference)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(packagefamilyname), &mut result__).from_abi(result__) @@ -2487,19 +2117,17 @@ impl ::windows_core::RuntimeType for PackageManager { } unsafe impl ::windows_core::Interface for PackageManager { type Vtable = IPackageManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PackageManager { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PackageManager { const NAME: &'static str = "Windows.Management.Deployment.PackageManager"; } -::windows_core::imp::interface_hierarchy!(PackageManager, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PackageManager {} unsafe impl ::core::marker::Sync for PackageManager {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PackageManagerDebugSettings(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PackageManagerDebugSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PackageManagerDebugSettings { #[doc = "Required features: `\"ApplicationModel\"`"] #[cfg(feature = "ApplicationModel")] @@ -2531,19 +2159,17 @@ impl ::windows_core::RuntimeType for PackageManagerDebugSettings { } unsafe impl ::windows_core::Interface for PackageManagerDebugSettings { type Vtable = IPackageManagerDebugSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PackageManagerDebugSettings { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PackageManagerDebugSettings { const NAME: &'static str = "Windows.Management.Deployment.PackageManagerDebugSettings"; } -::windows_core::imp::interface_hierarchy!(PackageManagerDebugSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PackageManagerDebugSettings {} unsafe impl ::core::marker::Sync for PackageManagerDebugSettings {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PackageUserInformation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PackageUserInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PackageUserInformation { pub fn UserSecurityId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -2565,19 +2191,17 @@ impl ::windows_core::RuntimeType for PackageUserInformation { } unsafe impl ::windows_core::Interface for PackageUserInformation { type Vtable = IPackageUserInformation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PackageUserInformation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PackageUserInformation { const NAME: &'static str = "Windows.Management.Deployment.PackageUserInformation"; } -::windows_core::imp::interface_hierarchy!(PackageUserInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PackageUserInformation {} unsafe impl ::core::marker::Sync for PackageUserInformation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PackageVolume(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PackageVolume, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PackageVolume { pub fn IsOffline(&self) -> ::windows_core::Result { let this = self; @@ -2748,21 +2372,21 @@ impl PackageVolume { } } pub fn IsFullTrustPackageSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsFullTrustPackageSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsAppxInstallSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsAppxInstallSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetAvailableSpaceAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetAvailableSpaceAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2774,19 +2398,17 @@ impl ::windows_core::RuntimeType for PackageVolume { } unsafe impl ::windows_core::Interface for PackageVolume { type Vtable = IPackageVolume_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PackageVolume { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PackageVolume { const NAME: &'static str = "Windows.Management.Deployment.PackageVolume"; } -::windows_core::imp::interface_hierarchy!(PackageVolume, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PackageVolume {} unsafe impl ::core::marker::Sync for PackageVolume {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RegisterPackageOptions(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RegisterPackageOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RegisterPackageOptions { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2932,7 +2554,7 @@ impl RegisterPackageOptions { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn ExpectedDigests(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ExpectedDigests)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2944,19 +2566,17 @@ impl ::windows_core::RuntimeType for RegisterPackageOptions { } unsafe impl ::windows_core::Interface for RegisterPackageOptions { type Vtable = IRegisterPackageOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RegisterPackageOptions { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RegisterPackageOptions { const NAME: &'static str = "Windows.Management.Deployment.RegisterPackageOptions"; } -::windows_core::imp::interface_hierarchy!(RegisterPackageOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RegisterPackageOptions {} unsafe impl ::core::marker::Sync for RegisterPackageOptions {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SharedPackageContainer(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SharedPackageContainer, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SharedPackageContainer { pub fn Name(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -3004,19 +2624,17 @@ impl ::windows_core::RuntimeType for SharedPackageContainer { } unsafe impl ::windows_core::Interface for SharedPackageContainer { type Vtable = ISharedPackageContainer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SharedPackageContainer { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SharedPackageContainer { const NAME: &'static str = "Windows.Management.Deployment.SharedPackageContainer"; } -::windows_core::imp::interface_hierarchy!(SharedPackageContainer, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SharedPackageContainer {} unsafe impl ::core::marker::Sync for SharedPackageContainer {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SharedPackageContainerManager(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SharedPackageContainerManager, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SharedPackageContainerManager { pub fn CreateContainer(&self, name: &::windows_core::HSTRING, options: P0) -> ::windows_core::Result where @@ -3095,19 +2713,17 @@ impl ::windows_core::RuntimeType for SharedPackageContainerManager { } unsafe impl ::windows_core::Interface for SharedPackageContainerManager { type Vtable = ISharedPackageContainerManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SharedPackageContainerManager { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SharedPackageContainerManager { const NAME: &'static str = "Windows.Management.Deployment.SharedPackageContainerManager"; } -::windows_core::imp::interface_hierarchy!(SharedPackageContainerManager, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SharedPackageContainerManager {} unsafe impl ::core::marker::Sync for SharedPackageContainerManager {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SharedPackageContainerMember(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SharedPackageContainerMember, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SharedPackageContainerMember { pub fn PackageFamilyName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -3133,19 +2749,17 @@ impl ::windows_core::RuntimeType for SharedPackageContainerMember { } unsafe impl ::windows_core::Interface for SharedPackageContainerMember { type Vtable = ISharedPackageContainerMember_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SharedPackageContainerMember { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SharedPackageContainerMember { const NAME: &'static str = "Windows.Management.Deployment.SharedPackageContainerMember"; } -::windows_core::imp::interface_hierarchy!(SharedPackageContainerMember, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SharedPackageContainerMember {} unsafe impl ::core::marker::Sync for SharedPackageContainerMember {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StagePackageOptions(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StagePackageOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); impl StagePackageOptions { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -3298,7 +2912,7 @@ impl StagePackageOptions { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn ExpectedDigests(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ExpectedDigests)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3310,19 +2924,17 @@ impl ::windows_core::RuntimeType for StagePackageOptions { } unsafe impl ::windows_core::Interface for StagePackageOptions { type Vtable = IStagePackageOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StagePackageOptions { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StagePackageOptions { const NAME: &'static str = "Windows.Management.Deployment.StagePackageOptions"; } -::windows_core::imp::interface_hierarchy!(StagePackageOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for StagePackageOptions {} unsafe impl ::core::marker::Sync for StagePackageOptions {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UpdateSharedPackageContainerOptions(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UpdateSharedPackageContainerOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UpdateSharedPackageContainerOptions { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -3359,19 +2971,17 @@ impl ::windows_core::RuntimeType for UpdateSharedPackageContainerOptions { } unsafe impl ::windows_core::Interface for UpdateSharedPackageContainerOptions { type Vtable = IUpdateSharedPackageContainerOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UpdateSharedPackageContainerOptions { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UpdateSharedPackageContainerOptions { const NAME: &'static str = "Windows.Management.Deployment.UpdateSharedPackageContainerOptions"; } -::windows_core::imp::interface_hierarchy!(UpdateSharedPackageContainerOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UpdateSharedPackageContainerOptions {} unsafe impl ::core::marker::Sync for UpdateSharedPackageContainerOptions {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UpdateSharedPackageContainerResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UpdateSharedPackageContainerResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UpdateSharedPackageContainerResult { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -3393,14 +3003,11 @@ impl ::windows_core::RuntimeType for UpdateSharedPackageContainerResult { } unsafe impl ::windows_core::Interface for UpdateSharedPackageContainerResult { type Vtable = IUpdateSharedPackageContainerResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UpdateSharedPackageContainerResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UpdateSharedPackageContainerResult { const NAME: &'static str = "Windows.Management.Deployment.UpdateSharedPackageContainerResult"; } -::windows_core::imp::interface_hierarchy!(UpdateSharedPackageContainerResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UpdateSharedPackageContainerResult {} unsafe impl ::core::marker::Sync for UpdateSharedPackageContainerResult {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Management/Policies/mod.rs b/crates/libs/windows/src/Windows/Management/Policies/mod.rs index 7d43f6fdfa..2925af96bc 100644 --- a/crates/libs/windows/src/Windows/Management/Policies/mod.rs +++ b/crates/libs/windows/src/Windows/Management/Policies/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INamedPolicyData(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INamedPolicyData { - type Vtable = INamedPolicyData_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INamedPolicyData { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x38dcb198_95ac_4077_a643_8078cae26400); -} +::windows_core::imp::com_interface!(INamedPolicyData, INamedPolicyData_Vtbl, 0x38dcb198_95ac_4077_a643_8078cae26400); #[repr(C)] #[doc(hidden)] pub struct INamedPolicyData_Vtbl { @@ -32,16 +23,7 @@ pub struct INamedPolicyData_Vtbl { pub Changed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, changedhandler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INamedPolicyStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INamedPolicyStatics { - type Vtable = INamedPolicyStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INamedPolicyStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7f793be7_76c4_4058_8cad_67662cd05f0d); -} +::windows_core::imp::com_interface!(INamedPolicyStatics, INamedPolicyStatics_Vtbl, 0x7f793be7_76c4_4058_8cad_67662cd05f0d); #[repr(C)] #[doc(hidden)] pub struct INamedPolicyStatics_Vtbl { @@ -83,6 +65,7 @@ impl ::windows_core::RuntimeName for NamedPolicy { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct NamedPolicyData(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(NamedPolicyData, ::windows_core::IUnknown, ::windows_core::IInspectable); impl NamedPolicyData { pub fn Area(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -185,14 +168,11 @@ impl ::windows_core::RuntimeType for NamedPolicyData { } unsafe impl ::windows_core::Interface for NamedPolicyData { type Vtable = INamedPolicyData_Vtbl; -} -unsafe impl ::windows_core::ComInterface for NamedPolicyData { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for NamedPolicyData { const NAME: &'static str = "Windows.Management.Policies.NamedPolicyData"; } -::windows_core::imp::interface_hierarchy!(NamedPolicyData, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for NamedPolicyData {} unsafe impl ::core::marker::Sync for NamedPolicyData {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Management/Update/mod.rs b/crates/libs/windows/src/Windows/Management/Update/mod.rs index 1bfdaa16bb..ad52bc4e45 100644 --- a/crates/libs/windows/src/Windows/Management/Update/mod.rs +++ b/crates/libs/windows/src/Windows/Management/Update/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPreviewBuildsManager(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPreviewBuildsManager { - type Vtable = IPreviewBuildsManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPreviewBuildsManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfa07dd61_7e4f_59f7_7c9f_def9051c5f62); -} +::windows_core::imp::com_interface!(IPreviewBuildsManager, IPreviewBuildsManager_Vtbl, 0xfa07dd61_7e4f_59f7_7c9f_def9051c5f62); #[repr(C)] #[doc(hidden)] pub struct IPreviewBuildsManager_Vtbl { @@ -17,16 +8,7 @@ pub struct IPreviewBuildsManager_Vtbl { pub GetCurrentState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SyncAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPreviewBuildsManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPreviewBuildsManagerStatics { - type Vtable = IPreviewBuildsManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPreviewBuildsManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3e422887_b112_5a70_7da1_97d78d32aa29); -} +::windows_core::imp::com_interface!(IPreviewBuildsManagerStatics, IPreviewBuildsManagerStatics_Vtbl, 0x3e422887_b112_5a70_7da1_97d78d32aa29); #[repr(C)] #[doc(hidden)] pub struct IPreviewBuildsManagerStatics_Vtbl { @@ -34,16 +16,7 @@ pub struct IPreviewBuildsManagerStatics_Vtbl { pub GetDefault: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub IsSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPreviewBuildsState(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPreviewBuildsState { - type Vtable = IPreviewBuildsState_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPreviewBuildsState { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa2f2903e_b223_5f63_7546_3e8eac070a2e); -} +::windows_core::imp::com_interface!(IPreviewBuildsState, IPreviewBuildsState_Vtbl, 0xa2f2903e_b223_5f63_7546_3e8eac070a2e); #[repr(C)] #[doc(hidden)] pub struct IPreviewBuildsState_Vtbl { @@ -53,16 +26,7 @@ pub struct IPreviewBuildsState_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Properties: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWindowsUpdate(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWindowsUpdate { - type Vtable = IWindowsUpdate_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWindowsUpdate { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc3c88dd7_0ef3_52b2_a9ad_66bfc6bd9582); -} +::windows_core::imp::com_interface!(IWindowsUpdate, IWindowsUpdate_Vtbl, 0xc3c88dd7_0ef3_52b2_a9ad_66bfc6bd9582); #[repr(C)] #[doc(hidden)] pub struct IWindowsUpdate_Vtbl { @@ -92,16 +56,7 @@ pub struct IWindowsUpdate_Vtbl { pub GetPropertyValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertyname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub AcceptEula: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWindowsUpdateActionCompletedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWindowsUpdateActionCompletedEventArgs { - type Vtable = IWindowsUpdateActionCompletedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWindowsUpdateActionCompletedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2c44b950_a655_5321_aec1_aee762922131); -} +::windows_core::imp::com_interface!(IWindowsUpdateActionCompletedEventArgs, IWindowsUpdateActionCompletedEventArgs_Vtbl, 0x2c44b950_a655_5321_aec1_aee762922131); #[repr(C)] #[doc(hidden)] pub struct IWindowsUpdateActionCompletedEventArgs_Vtbl { @@ -111,16 +66,7 @@ pub struct IWindowsUpdateActionCompletedEventArgs_Vtbl { pub Succeeded: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub ExtendedError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWindowsUpdateActionProgress(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWindowsUpdateActionProgress { - type Vtable = IWindowsUpdateActionProgress_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWindowsUpdateActionProgress { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x83b22d8a_4bb0_549f_ba39_59724882d137); -} +::windows_core::imp::com_interface!(IWindowsUpdateActionProgress, IWindowsUpdateActionProgress_Vtbl, 0x83b22d8a_4bb0_549f_ba39_59724882d137); #[repr(C)] #[doc(hidden)] pub struct IWindowsUpdateActionProgress_Vtbl { @@ -128,16 +74,7 @@ pub struct IWindowsUpdateActionProgress_Vtbl { pub Action: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Progress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWindowsUpdateActionResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWindowsUpdateActionResult { - type Vtable = IWindowsUpdateActionResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWindowsUpdateActionResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe6692c62_f697_51b7_ab7f_e73e5e688f12); -} +::windows_core::imp::com_interface!(IWindowsUpdateActionResult, IWindowsUpdateActionResult_Vtbl, 0xe6692c62_f697_51b7_ab7f_e73e5e688f12); #[repr(C)] #[doc(hidden)] pub struct IWindowsUpdateActionResult_Vtbl { @@ -147,16 +84,7 @@ pub struct IWindowsUpdateActionResult_Vtbl { pub ExtendedError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, pub Action: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWindowsUpdateAdministrator(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWindowsUpdateAdministrator { - type Vtable = IWindowsUpdateAdministrator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWindowsUpdateAdministrator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7a60181c_ba1e_5cf9_aa65_304120b73d72); -} +::windows_core::imp::com_interface!(IWindowsUpdateAdministrator, IWindowsUpdateAdministrator_Vtbl, 0x7a60181c_ba1e_5cf9_aa65_304120b73d72); #[repr(C)] #[doc(hidden)] pub struct IWindowsUpdateAdministrator_Vtbl { @@ -171,16 +99,7 @@ pub struct IWindowsUpdateAdministrator_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetUpdates: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWindowsUpdateAdministratorStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWindowsUpdateAdministratorStatics { - type Vtable = IWindowsUpdateAdministratorStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWindowsUpdateAdministratorStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x013e6d36_ef69_53bc_8db8_c403bca550ed); -} +::windows_core::imp::com_interface!(IWindowsUpdateAdministratorStatics, IWindowsUpdateAdministratorStatics_Vtbl, 0x013e6d36_ef69_53bc_8db8_c403bca550ed); #[repr(C)] #[doc(hidden)] pub struct IWindowsUpdateAdministratorStatics_Vtbl { @@ -192,16 +111,7 @@ pub struct IWindowsUpdateAdministratorStatics_Vtbl { pub RequestRestart: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, restartoptions: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub CancelRestartRequest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, requestrestarttoken: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWindowsUpdateApprovalData(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWindowsUpdateApprovalData { - type Vtable = IWindowsUpdateApprovalData_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWindowsUpdateApprovalData { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaadf5bfd_84db_59bc_85e2_ad4fc1f62f7c); -} +::windows_core::imp::com_interface!(IWindowsUpdateApprovalData, IWindowsUpdateApprovalData_Vtbl, 0xaadf5bfd_84db_59bc_85e2_ad4fc1f62f7c); #[repr(C)] #[doc(hidden)] pub struct IWindowsUpdateApprovalData_Vtbl { @@ -217,16 +127,7 @@ pub struct IWindowsUpdateApprovalData_Vtbl { pub OptOutOfAutoReboot: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetOptOutOfAutoReboot: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWindowsUpdateAttentionRequiredInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWindowsUpdateAttentionRequiredInfo { - type Vtable = IWindowsUpdateAttentionRequiredInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWindowsUpdateAttentionRequiredInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x44df2579_74d3_5ffa_b6ce_09e187e1e0ed); -} +::windows_core::imp::com_interface!(IWindowsUpdateAttentionRequiredInfo, IWindowsUpdateAttentionRequiredInfo_Vtbl, 0x44df2579_74d3_5ffa_b6ce_09e187e1e0ed); #[repr(C)] #[doc(hidden)] pub struct IWindowsUpdateAttentionRequiredInfo_Vtbl { @@ -234,16 +135,7 @@ pub struct IWindowsUpdateAttentionRequiredInfo_Vtbl { pub Reason: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut WindowsUpdateAttentionRequiredReason) -> ::windows_core::HRESULT, pub Timestamp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWindowsUpdateAttentionRequiredReasonChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWindowsUpdateAttentionRequiredReasonChangedEventArgs { - type Vtable = IWindowsUpdateAttentionRequiredReasonChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWindowsUpdateAttentionRequiredReasonChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0627abca_dbb8_524a_b1d2_d9df004eeb31); -} +::windows_core::imp::com_interface!(IWindowsUpdateAttentionRequiredReasonChangedEventArgs, IWindowsUpdateAttentionRequiredReasonChangedEventArgs_Vtbl, 0x0627abca_dbb8_524a_b1d2_d9df004eeb31); #[repr(C)] #[doc(hidden)] pub struct IWindowsUpdateAttentionRequiredReasonChangedEventArgs_Vtbl { @@ -251,16 +143,7 @@ pub struct IWindowsUpdateAttentionRequiredReasonChangedEventArgs_Vtbl { pub Update: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Reason: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut WindowsUpdateAttentionRequiredReason) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWindowsUpdateGetAdministratorResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWindowsUpdateGetAdministratorResult { - type Vtable = IWindowsUpdateGetAdministratorResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWindowsUpdateGetAdministratorResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbb39ffc4_2c42_5b1c_8995_343341c92c50); -} +::windows_core::imp::com_interface!(IWindowsUpdateGetAdministratorResult, IWindowsUpdateGetAdministratorResult_Vtbl, 0xbb39ffc4_2c42_5b1c_8995_343341c92c50); #[repr(C)] #[doc(hidden)] pub struct IWindowsUpdateGetAdministratorResult_Vtbl { @@ -268,16 +151,7 @@ pub struct IWindowsUpdateGetAdministratorResult_Vtbl { pub Administrator: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut WindowsUpdateAdministratorStatus) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWindowsUpdateItem(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWindowsUpdateItem { - type Vtable = IWindowsUpdateItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWindowsUpdateItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb222e44a_49b6_59bf_a033_ef617cd73a98); -} +::windows_core::imp::com_interface!(IWindowsUpdateItem, IWindowsUpdateItem_Vtbl, 0xb222e44a_49b6_59bf_a033_ef617cd73a98); #[repr(C)] #[doc(hidden)] pub struct IWindowsUpdateItem_Vtbl { @@ -291,16 +165,7 @@ pub struct IWindowsUpdateItem_Vtbl { pub Category: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Operation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWindowsUpdateManager(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWindowsUpdateManager { - type Vtable = IWindowsUpdateManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWindowsUpdateManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5dd966c0_a71a_5602_bbd0_09a70e4573fa); -} +::windows_core::imp::com_interface!(IWindowsUpdateManager, IWindowsUpdateManager_Vtbl, 0x5dd966c0_a71a_5602_bbd0_09a70e4573fa); #[repr(C)] #[doc(hidden)] pub struct IWindowsUpdateManager_Vtbl { @@ -334,32 +199,14 @@ pub struct IWindowsUpdateManager_Vtbl { GetMostRecentCompletedUpdatesAsync: usize, pub StartScan: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, userinitiated: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWindowsUpdateManagerFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWindowsUpdateManagerFactory { - type Vtable = IWindowsUpdateManagerFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWindowsUpdateManagerFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1b394df8_decb_5f44_b47c_6ccf3bcfdb37); -} +::windows_core::imp::com_interface!(IWindowsUpdateManagerFactory, IWindowsUpdateManagerFactory_Vtbl, 0x1b394df8_decb_5f44_b47c_6ccf3bcfdb37); #[repr(C)] #[doc(hidden)] pub struct IWindowsUpdateManagerFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, clientid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWindowsUpdateProgressChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWindowsUpdateProgressChangedEventArgs { - type Vtable = IWindowsUpdateProgressChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWindowsUpdateProgressChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbbfbdeeb_94c8_5aa7_b0fb_66c67c233b0a); -} +::windows_core::imp::com_interface!(IWindowsUpdateProgressChangedEventArgs, IWindowsUpdateProgressChangedEventArgs_Vtbl, 0xbbfbdeeb_94c8_5aa7_b0fb_66c67c233b0a); #[repr(C)] #[doc(hidden)] pub struct IWindowsUpdateProgressChangedEventArgs_Vtbl { @@ -367,16 +214,7 @@ pub struct IWindowsUpdateProgressChangedEventArgs_Vtbl { pub Update: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ActionProgress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWindowsUpdateRestartRequestOptions(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWindowsUpdateRestartRequestOptions { - type Vtable = IWindowsUpdateRestartRequestOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWindowsUpdateRestartRequestOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x38cfb7d3_4188_5222_905c_6c4443c951ee); -} +::windows_core::imp::com_interface!(IWindowsUpdateRestartRequestOptions, IWindowsUpdateRestartRequestOptions_Vtbl, 0x38cfb7d3_4188_5222_905c_6c4443c951ee); #[repr(C)] #[doc(hidden)] pub struct IWindowsUpdateRestartRequestOptions_Vtbl { @@ -396,32 +234,14 @@ pub struct IWindowsUpdateRestartRequestOptions_Vtbl { pub OptOutOfAutoReboot: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetOptOutOfAutoReboot: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWindowsUpdateRestartRequestOptionsFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWindowsUpdateRestartRequestOptionsFactory { - type Vtable = IWindowsUpdateRestartRequestOptionsFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWindowsUpdateRestartRequestOptionsFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x75f41d04_0e17_50d0_8c15_6b9d0539b3a9); -} +::windows_core::imp::com_interface!(IWindowsUpdateRestartRequestOptionsFactory, IWindowsUpdateRestartRequestOptionsFactory_Vtbl, 0x75f41d04_0e17_50d0_8c15_6b9d0539b3a9); #[repr(C)] #[doc(hidden)] pub struct IWindowsUpdateRestartRequestOptionsFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, title: ::std::mem::MaybeUninit<::windows_core::HSTRING>, description: ::std::mem::MaybeUninit<::windows_core::HSTRING>, moreinfourl: *mut ::core::ffi::c_void, compliancedeadlineindays: i32, compliancegraceperiodindays: i32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWindowsUpdateScanCompletedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWindowsUpdateScanCompletedEventArgs { - type Vtable = IWindowsUpdateScanCompletedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWindowsUpdateScanCompletedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x95b6953e_ba5c_5fe8_b115_12de184a6bb0); -} +::windows_core::imp::com_interface!(IWindowsUpdateScanCompletedEventArgs, IWindowsUpdateScanCompletedEventArgs_Vtbl, 0x95b6953e_ba5c_5fe8_b115_12de184a6bb0); #[repr(C)] #[doc(hidden)] pub struct IWindowsUpdateScanCompletedEventArgs_Vtbl { @@ -437,6 +257,7 @@ pub struct IWindowsUpdateScanCompletedEventArgs_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PreviewBuildsManager(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PreviewBuildsManager, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PreviewBuildsManager { pub fn ArePreviewBuildsAllowed(&self) -> ::windows_core::Result { let this = self; @@ -486,19 +307,17 @@ impl ::windows_core::RuntimeType for PreviewBuildsManager { } unsafe impl ::windows_core::Interface for PreviewBuildsManager { type Vtable = IPreviewBuildsManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PreviewBuildsManager { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PreviewBuildsManager { const NAME: &'static str = "Windows.Management.Update.PreviewBuildsManager"; } -::windows_core::imp::interface_hierarchy!(PreviewBuildsManager, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PreviewBuildsManager {} unsafe impl ::core::marker::Sync for PreviewBuildsManager {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PreviewBuildsState(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PreviewBuildsState, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PreviewBuildsState { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -515,19 +334,17 @@ impl ::windows_core::RuntimeType for PreviewBuildsState { } unsafe impl ::windows_core::Interface for PreviewBuildsState { type Vtable = IPreviewBuildsState_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PreviewBuildsState { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PreviewBuildsState { const NAME: &'static str = "Windows.Management.Update.PreviewBuildsState"; } -::windows_core::imp::interface_hierarchy!(PreviewBuildsState, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PreviewBuildsState {} unsafe impl ::core::marker::Sync for PreviewBuildsState {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WindowsUpdate(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WindowsUpdate, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WindowsUpdate { pub fn ProviderId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -700,19 +517,17 @@ impl ::windows_core::RuntimeType for WindowsUpdate { } unsafe impl ::windows_core::Interface for WindowsUpdate { type Vtable = IWindowsUpdate_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WindowsUpdate { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WindowsUpdate { const NAME: &'static str = "Windows.Management.Update.WindowsUpdate"; } -::windows_core::imp::interface_hierarchy!(WindowsUpdate, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for WindowsUpdate {} unsafe impl ::core::marker::Sync for WindowsUpdate {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WindowsUpdateActionCompletedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WindowsUpdateActionCompletedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WindowsUpdateActionCompletedEventArgs { pub fn Update(&self) -> ::windows_core::Result { let this = self; @@ -748,19 +563,17 @@ impl ::windows_core::RuntimeType for WindowsUpdateActionCompletedEventArgs { } unsafe impl ::windows_core::Interface for WindowsUpdateActionCompletedEventArgs { type Vtable = IWindowsUpdateActionCompletedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WindowsUpdateActionCompletedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WindowsUpdateActionCompletedEventArgs { const NAME: &'static str = "Windows.Management.Update.WindowsUpdateActionCompletedEventArgs"; } -::windows_core::imp::interface_hierarchy!(WindowsUpdateActionCompletedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for WindowsUpdateActionCompletedEventArgs {} unsafe impl ::core::marker::Sync for WindowsUpdateActionCompletedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WindowsUpdateActionProgress(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WindowsUpdateActionProgress, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WindowsUpdateActionProgress { pub fn Action(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -782,19 +595,17 @@ impl ::windows_core::RuntimeType for WindowsUpdateActionProgress { } unsafe impl ::windows_core::Interface for WindowsUpdateActionProgress { type Vtable = IWindowsUpdateActionProgress_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WindowsUpdateActionProgress { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WindowsUpdateActionProgress { const NAME: &'static str = "Windows.Management.Update.WindowsUpdateActionProgress"; } -::windows_core::imp::interface_hierarchy!(WindowsUpdateActionProgress, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for WindowsUpdateActionProgress {} unsafe impl ::core::marker::Sync for WindowsUpdateActionProgress {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WindowsUpdateActionResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WindowsUpdateActionResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WindowsUpdateActionResult { pub fn Timestamp(&self) -> ::windows_core::Result { let this = self; @@ -830,19 +641,17 @@ impl ::windows_core::RuntimeType for WindowsUpdateActionResult { } unsafe impl ::windows_core::Interface for WindowsUpdateActionResult { type Vtable = IWindowsUpdateActionResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WindowsUpdateActionResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WindowsUpdateActionResult { const NAME: &'static str = "Windows.Management.Update.WindowsUpdateActionResult"; } -::windows_core::imp::interface_hierarchy!(WindowsUpdateActionResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for WindowsUpdateActionResult {} unsafe impl ::core::marker::Sync for WindowsUpdateActionResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WindowsUpdateAdministrator(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WindowsUpdateAdministrator, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WindowsUpdateAdministrator { pub fn StartAdministratorScan(&self) -> ::windows_core::Result<()> { let this = self; @@ -923,19 +732,17 @@ impl ::windows_core::RuntimeType for WindowsUpdateAdministrator { } unsafe impl ::windows_core::Interface for WindowsUpdateAdministrator { type Vtable = IWindowsUpdateAdministrator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WindowsUpdateAdministrator { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WindowsUpdateAdministrator { const NAME: &'static str = "Windows.Management.Update.WindowsUpdateAdministrator"; } -::windows_core::imp::interface_hierarchy!(WindowsUpdateAdministrator, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for WindowsUpdateAdministrator {} unsafe impl ::core::marker::Sync for WindowsUpdateAdministrator {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WindowsUpdateApprovalData(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WindowsUpdateApprovalData, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WindowsUpdateApprovalData { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -953,10 +760,10 @@ impl WindowsUpdateApprovalData { } pub fn SetSeeker(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetSeeker)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetSeeker)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn AllowDownloadOnMetered(&self) -> ::windows_core::Result> { let this = self; @@ -967,10 +774,10 @@ impl WindowsUpdateApprovalData { } pub fn SetAllowDownloadOnMetered(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetAllowDownloadOnMetered)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetAllowDownloadOnMetered)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn ComplianceDeadlineInDays(&self) -> ::windows_core::Result> { let this = self; @@ -981,10 +788,10 @@ impl WindowsUpdateApprovalData { } pub fn SetComplianceDeadlineInDays(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetComplianceDeadlineInDays)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetComplianceDeadlineInDays)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn ComplianceGracePeriodInDays(&self) -> ::windows_core::Result> { let this = self; @@ -995,10 +802,10 @@ impl WindowsUpdateApprovalData { } pub fn SetComplianceGracePeriodInDays(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetComplianceGracePeriodInDays)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetComplianceGracePeriodInDays)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn OptOutOfAutoReboot(&self) -> ::windows_core::Result> { let this = self; @@ -1009,10 +816,10 @@ impl WindowsUpdateApprovalData { } pub fn SetOptOutOfAutoReboot(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetOptOutOfAutoReboot)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetOptOutOfAutoReboot)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } } impl ::windows_core::RuntimeType for WindowsUpdateApprovalData { @@ -1020,19 +827,17 @@ impl ::windows_core::RuntimeType for WindowsUpdateApprovalData { } unsafe impl ::windows_core::Interface for WindowsUpdateApprovalData { type Vtable = IWindowsUpdateApprovalData_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WindowsUpdateApprovalData { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WindowsUpdateApprovalData { const NAME: &'static str = "Windows.Management.Update.WindowsUpdateApprovalData"; } -::windows_core::imp::interface_hierarchy!(WindowsUpdateApprovalData, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for WindowsUpdateApprovalData {} unsafe impl ::core::marker::Sync for WindowsUpdateApprovalData {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WindowsUpdateAttentionRequiredInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WindowsUpdateAttentionRequiredInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WindowsUpdateAttentionRequiredInfo { pub fn Reason(&self) -> ::windows_core::Result { let this = self; @@ -1054,19 +859,17 @@ impl ::windows_core::RuntimeType for WindowsUpdateAttentionRequiredInfo { } unsafe impl ::windows_core::Interface for WindowsUpdateAttentionRequiredInfo { type Vtable = IWindowsUpdateAttentionRequiredInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WindowsUpdateAttentionRequiredInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WindowsUpdateAttentionRequiredInfo { const NAME: &'static str = "Windows.Management.Update.WindowsUpdateAttentionRequiredInfo"; } -::windows_core::imp::interface_hierarchy!(WindowsUpdateAttentionRequiredInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for WindowsUpdateAttentionRequiredInfo {} unsafe impl ::core::marker::Sync for WindowsUpdateAttentionRequiredInfo {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WindowsUpdateAttentionRequiredReasonChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WindowsUpdateAttentionRequiredReasonChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WindowsUpdateAttentionRequiredReasonChangedEventArgs { pub fn Update(&self) -> ::windows_core::Result { let this = self; @@ -1088,19 +891,17 @@ impl ::windows_core::RuntimeType for WindowsUpdateAttentionRequiredReasonChanged } unsafe impl ::windows_core::Interface for WindowsUpdateAttentionRequiredReasonChangedEventArgs { type Vtable = IWindowsUpdateAttentionRequiredReasonChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WindowsUpdateAttentionRequiredReasonChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WindowsUpdateAttentionRequiredReasonChangedEventArgs { const NAME: &'static str = "Windows.Management.Update.WindowsUpdateAttentionRequiredReasonChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(WindowsUpdateAttentionRequiredReasonChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for WindowsUpdateAttentionRequiredReasonChangedEventArgs {} unsafe impl ::core::marker::Sync for WindowsUpdateAttentionRequiredReasonChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WindowsUpdateGetAdministratorResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WindowsUpdateGetAdministratorResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WindowsUpdateGetAdministratorResult { pub fn Administrator(&self) -> ::windows_core::Result { let this = self; @@ -1122,19 +923,17 @@ impl ::windows_core::RuntimeType for WindowsUpdateGetAdministratorResult { } unsafe impl ::windows_core::Interface for WindowsUpdateGetAdministratorResult { type Vtable = IWindowsUpdateGetAdministratorResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WindowsUpdateGetAdministratorResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WindowsUpdateGetAdministratorResult { const NAME: &'static str = "Windows.Management.Update.WindowsUpdateGetAdministratorResult"; } -::windows_core::imp::interface_hierarchy!(WindowsUpdateGetAdministratorResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for WindowsUpdateGetAdministratorResult {} unsafe impl ::core::marker::Sync for WindowsUpdateGetAdministratorResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WindowsUpdateItem(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WindowsUpdateItem, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WindowsUpdateItem { pub fn ProviderId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1198,19 +997,17 @@ impl ::windows_core::RuntimeType for WindowsUpdateItem { } unsafe impl ::windows_core::Interface for WindowsUpdateItem { type Vtable = IWindowsUpdateItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WindowsUpdateItem { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WindowsUpdateItem { const NAME: &'static str = "Windows.Management.Update.WindowsUpdateItem"; } -::windows_core::imp::interface_hierarchy!(WindowsUpdateItem, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for WindowsUpdateItem {} unsafe impl ::core::marker::Sync for WindowsUpdateItem {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WindowsUpdateManager(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WindowsUpdateManager, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WindowsUpdateManager { pub fn ScanningStateChanged(&self, handler: P0) -> ::windows_core::Result where @@ -1365,19 +1162,17 @@ impl ::windows_core::RuntimeType for WindowsUpdateManager { } unsafe impl ::windows_core::Interface for WindowsUpdateManager { type Vtable = IWindowsUpdateManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WindowsUpdateManager { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WindowsUpdateManager { const NAME: &'static str = "Windows.Management.Update.WindowsUpdateManager"; } -::windows_core::imp::interface_hierarchy!(WindowsUpdateManager, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for WindowsUpdateManager {} unsafe impl ::core::marker::Sync for WindowsUpdateManager {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WindowsUpdateProgressChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WindowsUpdateProgressChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WindowsUpdateProgressChangedEventArgs { pub fn Update(&self) -> ::windows_core::Result { let this = self; @@ -1399,19 +1194,17 @@ impl ::windows_core::RuntimeType for WindowsUpdateProgressChangedEventArgs { } unsafe impl ::windows_core::Interface for WindowsUpdateProgressChangedEventArgs { type Vtable = IWindowsUpdateProgressChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WindowsUpdateProgressChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WindowsUpdateProgressChangedEventArgs { const NAME: &'static str = "Windows.Management.Update.WindowsUpdateProgressChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(WindowsUpdateProgressChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for WindowsUpdateProgressChangedEventArgs {} unsafe impl ::core::marker::Sync for WindowsUpdateProgressChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WindowsUpdateRestartRequestOptions(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WindowsUpdateRestartRequestOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WindowsUpdateRestartRequestOptions { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1520,19 +1313,17 @@ impl ::windows_core::RuntimeType for WindowsUpdateRestartRequestOptions { } unsafe impl ::windows_core::Interface for WindowsUpdateRestartRequestOptions { type Vtable = IWindowsUpdateRestartRequestOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WindowsUpdateRestartRequestOptions { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WindowsUpdateRestartRequestOptions { const NAME: &'static str = "Windows.Management.Update.WindowsUpdateRestartRequestOptions"; } -::windows_core::imp::interface_hierarchy!(WindowsUpdateRestartRequestOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for WindowsUpdateRestartRequestOptions {} unsafe impl ::core::marker::Sync for WindowsUpdateRestartRequestOptions {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WindowsUpdateScanCompletedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WindowsUpdateScanCompletedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WindowsUpdateScanCompletedEventArgs { pub fn ProviderId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1570,14 +1361,11 @@ impl ::windows_core::RuntimeType for WindowsUpdateScanCompletedEventArgs { } unsafe impl ::windows_core::Interface for WindowsUpdateScanCompletedEventArgs { type Vtable = IWindowsUpdateScanCompletedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WindowsUpdateScanCompletedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WindowsUpdateScanCompletedEventArgs { const NAME: &'static str = "Windows.Management.Update.WindowsUpdateScanCompletedEventArgs"; } -::windows_core::imp::interface_hierarchy!(WindowsUpdateScanCompletedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for WindowsUpdateScanCompletedEventArgs {} unsafe impl ::core::marker::Sync for WindowsUpdateScanCompletedEventArgs {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Management/Workplace/mod.rs b/crates/libs/windows/src/Windows/Management/Workplace/mod.rs index 4c4f085da2..f95ebb6aa6 100644 --- a/crates/libs/windows/src/Windows/Management/Workplace/mod.rs +++ b/crates/libs/windows/src/Windows/Management/Workplace/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMdmAllowPolicyStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMdmAllowPolicyStatics { - type Vtable = IMdmAllowPolicyStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMdmAllowPolicyStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc39709e7_741c_41f2_a4b6_314c31502586); -} +::windows_core::imp::com_interface!(IMdmAllowPolicyStatics, IMdmAllowPolicyStatics_Vtbl, 0xc39709e7_741c_41f2_a4b6_314c31502586); #[repr(C)] #[doc(hidden)] pub struct IMdmAllowPolicyStatics_Vtbl { @@ -17,32 +8,14 @@ pub struct IMdmAllowPolicyStatics_Vtbl { pub IsMicrosoftAccountAllowed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub IsStoreAllowed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMdmPolicyStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMdmPolicyStatics2 { - type Vtable = IMdmPolicyStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMdmPolicyStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc99c7526_03d4_49f9_a993_43efccd265c4); -} +::windows_core::imp::com_interface!(IMdmPolicyStatics2, IMdmPolicyStatics2_Vtbl, 0xc99c7526_03d4_49f9_a993_43efccd265c4); #[repr(C)] #[doc(hidden)] pub struct IMdmPolicyStatics2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetMessagingSyncPolicy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut MessagingSyncPolicy) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWorkplaceSettingsStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWorkplaceSettingsStatics { - type Vtable = IWorkplaceSettingsStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWorkplaceSettingsStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe4676ffd_2d92_4c08_bad4_f6590b54a6d3); -} +::windows_core::imp::com_interface!(IWorkplaceSettingsStatics, IWorkplaceSettingsStatics_Vtbl, 0xe4676ffd_2d92_4c08_bad4_f6590b54a6d3); #[repr(C)] #[doc(hidden)] pub struct IWorkplaceSettingsStatics_Vtbl { diff --git a/crates/libs/windows/src/Windows/Management/mod.rs b/crates/libs/windows/src/Windows/Management/mod.rs index b1ebe02b38..ff87393e87 100644 --- a/crates/libs/windows/src/Windows/Management/mod.rs +++ b/crates/libs/windows/src/Windows/Management/mod.rs @@ -13,16 +13,7 @@ pub mod Update; #[cfg(feature = "Management_Workplace")] #[doc = "Required features: `\"Management_Workplace\"`"] pub mod Workplace; -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMdmAlert(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMdmAlert { - type Vtable = IMdmAlert_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMdmAlert { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb0fbc327_28c1_4b52_a548_c5807caf70b6); -} +::windows_core::imp::com_interface!(IMdmAlert, IMdmAlert_Vtbl, 0xb0fbc327_28c1_4b52_a548_c5807caf70b6); #[repr(C)] #[doc(hidden)] pub struct IMdmAlert_Vtbl { @@ -41,16 +32,7 @@ pub struct IMdmAlert_Vtbl { pub Type: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMdmSession(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMdmSession { - type Vtable = IMdmSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMdmSession { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfe89314c_8f64_4797_a9d7_9d88f86ae166); -} +::windows_core::imp::com_interface!(IMdmSession, IMdmSession_Vtbl, 0xfe89314c_8f64_4797_a9d7_9d88f86ae166); #[repr(C)] #[doc(hidden)] pub struct IMdmSession_Vtbl { @@ -70,16 +52,7 @@ pub struct IMdmSession_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] StartWithAlertsAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMdmSessionManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMdmSessionManagerStatics { - type Vtable = IMdmSessionManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMdmSessionManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcf4ad959_f745_4b79_9b5c_de0bf8efe44b); -} +::windows_core::imp::com_interface!(IMdmSessionManagerStatics, IMdmSessionManagerStatics_Vtbl, 0xcf4ad959_f745_4b79_9b5c_de0bf8efe44b); #[repr(C)] #[doc(hidden)] pub struct IMdmSessionManagerStatics_Vtbl { @@ -95,6 +68,7 @@ pub struct IMdmSessionManagerStatics_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MdmAlert(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MdmAlert, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MdmAlert { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -182,17 +156,15 @@ impl ::windows_core::RuntimeType for MdmAlert { } unsafe impl ::windows_core::Interface for MdmAlert { type Vtable = IMdmAlert_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MdmAlert { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MdmAlert { const NAME: &'static str = "Windows.Management.MdmAlert"; } -::windows_core::imp::interface_hierarchy!(MdmAlert, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MdmSession(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MdmSession, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MdmSession { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -246,12 +218,12 @@ impl MdmSession { #[cfg(feature = "Foundation_Collections")] pub fn StartWithAlertsAsync(&self, alerts: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).StartWithAlertsAsync)(::windows_core::Interface::as_raw(this), alerts.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).StartWithAlertsAsync)(::windows_core::Interface::as_raw(this), alerts.into_param().abi(), &mut result__).from_abi(result__) } } } @@ -260,14 +232,11 @@ impl ::windows_core::RuntimeType for MdmSession { } unsafe impl ::windows_core::Interface for MdmSession { type Vtable = IMdmSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MdmSession { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MdmSession { const NAME: &'static str = "Windows.Management.MdmSession"; } -::windows_core::imp::interface_hierarchy!(MdmSession, ::windows_core::IUnknown, ::windows_core::IInspectable); pub struct MdmSessionManager; impl MdmSessionManager { #[doc = "Required features: `\"Foundation_Collections\"`"] diff --git a/crates/libs/windows/src/Windows/Media/AppBroadcasting/mod.rs b/crates/libs/windows/src/Windows/Media/AppBroadcasting/mod.rs index 82eb3a87bf..f77a3125bf 100644 --- a/crates/libs/windows/src/Windows/Media/AppBroadcasting/mod.rs +++ b/crates/libs/windows/src/Windows/Media/AppBroadcasting/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppBroadcastingMonitor(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppBroadcastingMonitor { - type Vtable = IAppBroadcastingMonitor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppBroadcastingMonitor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00f95a68_8907_48a0_b8ef_24d208137542); -} +::windows_core::imp::com_interface!(IAppBroadcastingMonitor, IAppBroadcastingMonitor_Vtbl, 0x00f95a68_8907_48a0_b8ef_24d208137542); #[repr(C)] #[doc(hidden)] pub struct IAppBroadcastingMonitor_Vtbl { @@ -16,16 +7,7 @@ pub struct IAppBroadcastingMonitor_Vtbl { pub IsCurrentAppBroadcastingChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveIsCurrentAppBroadcastingChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppBroadcastingStatus(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppBroadcastingStatus { - type Vtable = IAppBroadcastingStatus_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppBroadcastingStatus { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1225e4df_03a1_42f8_8b80_c9228cd9cf2e); -} +::windows_core::imp::com_interface!(IAppBroadcastingStatus, IAppBroadcastingStatus_Vtbl, 0x1225e4df_03a1_42f8_8b80_c9228cd9cf2e); #[repr(C)] #[doc(hidden)] pub struct IAppBroadcastingStatus_Vtbl { @@ -33,16 +15,7 @@ pub struct IAppBroadcastingStatus_Vtbl { pub CanStartBroadcast: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub Details: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppBroadcastingStatusDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppBroadcastingStatusDetails { - type Vtable = IAppBroadcastingStatusDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppBroadcastingStatusDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x069dada4_b573_4e3c_8e19_1bafacd09713); -} +::windows_core::imp::com_interface!(IAppBroadcastingStatusDetails, IAppBroadcastingStatusDetails_Vtbl, 0x069dada4_b573_4e3c_8e19_1bafacd09713); #[repr(C)] #[doc(hidden)] pub struct IAppBroadcastingStatusDetails_Vtbl { @@ -56,16 +29,7 @@ pub struct IAppBroadcastingStatusDetails_Vtbl { pub IsDisabledByUser: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub IsDisabledBySystem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppBroadcastingUI(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppBroadcastingUI { - type Vtable = IAppBroadcastingUI_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppBroadcastingUI { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe56f9f8f_ee99_4dca_a3c3_70af3db44f5f); -} +::windows_core::imp::com_interface!(IAppBroadcastingUI, IAppBroadcastingUI_Vtbl, 0xe56f9f8f_ee99_4dca_a3c3_70af3db44f5f); #[repr(C)] #[doc(hidden)] pub struct IAppBroadcastingUI_Vtbl { @@ -73,16 +37,7 @@ pub struct IAppBroadcastingUI_Vtbl { pub GetStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ShowBroadcastUI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppBroadcastingUIStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppBroadcastingUIStatics { - type Vtable = IAppBroadcastingUIStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppBroadcastingUIStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x55a8a79d_23cb_4579_9c34_886fe02c045a); -} +::windows_core::imp::com_interface!(IAppBroadcastingUIStatics, IAppBroadcastingUIStatics_Vtbl, 0x55a8a79d_23cb_4579_9c34_886fe02c045a); #[repr(C)] #[doc(hidden)] pub struct IAppBroadcastingUIStatics_Vtbl { @@ -96,6 +51,7 @@ pub struct IAppBroadcastingUIStatics_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppBroadcastingMonitor(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppBroadcastingMonitor, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppBroadcastingMonitor { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -131,19 +87,17 @@ impl ::windows_core::RuntimeType for AppBroadcastingMonitor { } unsafe impl ::windows_core::Interface for AppBroadcastingMonitor { type Vtable = IAppBroadcastingMonitor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppBroadcastingMonitor { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppBroadcastingMonitor { const NAME: &'static str = "Windows.Media.AppBroadcasting.AppBroadcastingMonitor"; } -::windows_core::imp::interface_hierarchy!(AppBroadcastingMonitor, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppBroadcastingMonitor {} unsafe impl ::core::marker::Sync for AppBroadcastingMonitor {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppBroadcastingStatus(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppBroadcastingStatus, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppBroadcastingStatus { pub fn CanStartBroadcast(&self) -> ::windows_core::Result { let this = self; @@ -165,19 +119,17 @@ impl ::windows_core::RuntimeType for AppBroadcastingStatus { } unsafe impl ::windows_core::Interface for AppBroadcastingStatus { type Vtable = IAppBroadcastingStatus_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppBroadcastingStatus { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppBroadcastingStatus { const NAME: &'static str = "Windows.Media.AppBroadcasting.AppBroadcastingStatus"; } -::windows_core::imp::interface_hierarchy!(AppBroadcastingStatus, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppBroadcastingStatus {} unsafe impl ::core::marker::Sync for AppBroadcastingStatus {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppBroadcastingStatusDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppBroadcastingStatusDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppBroadcastingStatusDetails { pub fn IsAnyAppBroadcasting(&self) -> ::windows_core::Result { let this = self; @@ -241,19 +193,17 @@ impl ::windows_core::RuntimeType for AppBroadcastingStatusDetails { } unsafe impl ::windows_core::Interface for AppBroadcastingStatusDetails { type Vtable = IAppBroadcastingStatusDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppBroadcastingStatusDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppBroadcastingStatusDetails { const NAME: &'static str = "Windows.Media.AppBroadcasting.AppBroadcastingStatusDetails"; } -::windows_core::imp::interface_hierarchy!(AppBroadcastingStatusDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppBroadcastingStatusDetails {} unsafe impl ::core::marker::Sync for AppBroadcastingStatusDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppBroadcastingUI(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppBroadcastingUI, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppBroadcastingUI { pub fn GetStatus(&self) -> ::windows_core::Result { let this = self; @@ -294,13 +244,10 @@ impl ::windows_core::RuntimeType for AppBroadcastingUI { } unsafe impl ::windows_core::Interface for AppBroadcastingUI { type Vtable = IAppBroadcastingUI_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppBroadcastingUI { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppBroadcastingUI { const NAME: &'static str = "Windows.Media.AppBroadcasting.AppBroadcastingUI"; } -::windows_core::imp::interface_hierarchy!(AppBroadcastingUI, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppBroadcastingUI {} unsafe impl ::core::marker::Sync for AppBroadcastingUI {} diff --git a/crates/libs/windows/src/Windows/Media/AppRecording/mod.rs b/crates/libs/windows/src/Windows/Media/AppRecording/mod.rs index 9cb84b06a7..28d2d19c16 100644 --- a/crates/libs/windows/src/Windows/Media/AppRecording/mod.rs +++ b/crates/libs/windows/src/Windows/Media/AppRecording/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppRecordingManager(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppRecordingManager { - type Vtable = IAppRecordingManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppRecordingManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe7e26076_a044_48e2_a512_3094d574c7cc); -} +::windows_core::imp::com_interface!(IAppRecordingManager, IAppRecordingManager_Vtbl, 0xe7e26076_a044_48e2_a512_3094d574c7cc); #[repr(C)] #[doc(hidden)] pub struct IAppRecordingManager_Vtbl { @@ -30,32 +21,14 @@ pub struct IAppRecordingManager_Vtbl { #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage")))] SaveScreenshotToFilesAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppRecordingManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppRecordingManagerStatics { - type Vtable = IAppRecordingManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppRecordingManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x50e709f7_38ce_4bd3_9db2_e72bbe9de11d); -} +::windows_core::imp::com_interface!(IAppRecordingManagerStatics, IAppRecordingManagerStatics_Vtbl, 0x50e709f7_38ce_4bd3_9db2_e72bbe9de11d); #[repr(C)] #[doc(hidden)] pub struct IAppRecordingManagerStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetDefault: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppRecordingResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppRecordingResult { - type Vtable = IAppRecordingResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppRecordingResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3a900864_c66d_46f9_b2d9_5bc2dad070d7); -} +::windows_core::imp::com_interface!(IAppRecordingResult, IAppRecordingResult_Vtbl, 0x3a900864_c66d_46f9_b2d9_5bc2dad070d7); #[repr(C)] #[doc(hidden)] pub struct IAppRecordingResult_Vtbl { @@ -65,16 +38,7 @@ pub struct IAppRecordingResult_Vtbl { pub Duration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::TimeSpan) -> ::windows_core::HRESULT, pub IsFileTruncated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppRecordingSaveScreenshotResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppRecordingSaveScreenshotResult { - type Vtable = IAppRecordingSaveScreenshotResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppRecordingSaveScreenshotResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9c5b8d0a_0abb_4457_aaee_24f9c12ec778); -} +::windows_core::imp::com_interface!(IAppRecordingSaveScreenshotResult, IAppRecordingSaveScreenshotResult_Vtbl, 0x9c5b8d0a_0abb_4457_aaee_24f9c12ec778); #[repr(C)] #[doc(hidden)] pub struct IAppRecordingSaveScreenshotResult_Vtbl { @@ -86,16 +50,7 @@ pub struct IAppRecordingSaveScreenshotResult_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] SavedScreenshotInfos: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppRecordingSavedScreenshotInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppRecordingSavedScreenshotInfo { - type Vtable = IAppRecordingSavedScreenshotInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppRecordingSavedScreenshotInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9b642d0a_189a_4d00_bf25_e1bb1249d594); -} +::windows_core::imp::com_interface!(IAppRecordingSavedScreenshotInfo, IAppRecordingSavedScreenshotInfo_Vtbl, 0x9b642d0a_189a_4d00_bf25_e1bb1249d594); #[repr(C)] #[doc(hidden)] pub struct IAppRecordingSavedScreenshotInfo_Vtbl { @@ -106,16 +61,7 @@ pub struct IAppRecordingSavedScreenshotInfo_Vtbl { File: usize, pub MediaEncodingSubtype: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppRecordingStatus(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppRecordingStatus { - type Vtable = IAppRecordingStatus_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppRecordingStatus { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1d0cc82c_bc18_4b8a_a6ef_127efab3b5d9); -} +::windows_core::imp::com_interface!(IAppRecordingStatus, IAppRecordingStatus_Vtbl, 0x1d0cc82c_bc18_4b8a_a6ef_127efab3b5d9); #[repr(C)] #[doc(hidden)] pub struct IAppRecordingStatus_Vtbl { @@ -125,16 +71,7 @@ pub struct IAppRecordingStatus_Vtbl { pub HistoricalBufferDuration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::TimeSpan) -> ::windows_core::HRESULT, pub Details: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppRecordingStatusDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppRecordingStatusDetails { - type Vtable = IAppRecordingStatusDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppRecordingStatusDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb538a9b0_14ed_4412_ac45_6d672c9c9949); -} +::windows_core::imp::com_interface!(IAppRecordingStatusDetails, IAppRecordingStatusDetails_Vtbl, 0xb538a9b0_14ed_4412_ac45_6d672c9c9949); #[repr(C)] #[doc(hidden)] pub struct IAppRecordingStatusDetails_Vtbl { @@ -152,6 +89,7 @@ pub struct IAppRecordingStatusDetails_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppRecordingManager(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppRecordingManager, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppRecordingManager { pub fn GetStatus(&self) -> ::windows_core::Result { let this = self; @@ -198,12 +136,12 @@ impl AppRecordingManager { 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::TryIntoParam>, + P1: ::windows_core::IntoParam>, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) } } pub fn GetDefault() -> ::windows_core::Result { @@ -223,19 +161,17 @@ impl ::windows_core::RuntimeType for AppRecordingManager { } unsafe impl ::windows_core::Interface for AppRecordingManager { type Vtable = IAppRecordingManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppRecordingManager { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppRecordingManager { const NAME: &'static str = "Windows.Media.AppRecording.AppRecordingManager"; } -::windows_core::imp::interface_hierarchy!(AppRecordingManager, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppRecordingManager {} unsafe impl ::core::marker::Sync for AppRecordingManager {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppRecordingResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppRecordingResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppRecordingResult { pub fn Succeeded(&self) -> ::windows_core::Result { let this = self; @@ -271,19 +207,17 @@ impl ::windows_core::RuntimeType for AppRecordingResult { } unsafe impl ::windows_core::Interface for AppRecordingResult { type Vtable = IAppRecordingResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppRecordingResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppRecordingResult { const NAME: &'static str = "Windows.Media.AppRecording.AppRecordingResult"; } -::windows_core::imp::interface_hierarchy!(AppRecordingResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppRecordingResult {} unsafe impl ::core::marker::Sync for AppRecordingResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppRecordingSaveScreenshotResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppRecordingSaveScreenshotResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppRecordingSaveScreenshotResult { pub fn Succeeded(&self) -> ::windows_core::Result { let this = self; @@ -314,19 +248,17 @@ impl ::windows_core::RuntimeType for AppRecordingSaveScreenshotResult { } unsafe impl ::windows_core::Interface for AppRecordingSaveScreenshotResult { type Vtable = IAppRecordingSaveScreenshotResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppRecordingSaveScreenshotResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppRecordingSaveScreenshotResult { const NAME: &'static str = "Windows.Media.AppRecording.AppRecordingSaveScreenshotResult"; } -::windows_core::imp::interface_hierarchy!(AppRecordingSaveScreenshotResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppRecordingSaveScreenshotResult {} unsafe impl ::core::marker::Sync for AppRecordingSaveScreenshotResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppRecordingSavedScreenshotInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppRecordingSavedScreenshotInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppRecordingSavedScreenshotInfo { #[doc = "Required features: `\"Storage\"`"] #[cfg(feature = "Storage")] @@ -350,19 +282,17 @@ impl ::windows_core::RuntimeType for AppRecordingSavedScreenshotInfo { } unsafe impl ::windows_core::Interface for AppRecordingSavedScreenshotInfo { type Vtable = IAppRecordingSavedScreenshotInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppRecordingSavedScreenshotInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppRecordingSavedScreenshotInfo { const NAME: &'static str = "Windows.Media.AppRecording.AppRecordingSavedScreenshotInfo"; } -::windows_core::imp::interface_hierarchy!(AppRecordingSavedScreenshotInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppRecordingSavedScreenshotInfo {} unsafe impl ::core::marker::Sync for AppRecordingSavedScreenshotInfo {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppRecordingStatus(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppRecordingStatus, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppRecordingStatus { pub fn CanRecord(&self) -> ::windows_core::Result { let this = self; @@ -398,19 +328,17 @@ impl ::windows_core::RuntimeType for AppRecordingStatus { } unsafe impl ::windows_core::Interface for AppRecordingStatus { type Vtable = IAppRecordingStatus_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppRecordingStatus { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppRecordingStatus { const NAME: &'static str = "Windows.Media.AppRecording.AppRecordingStatus"; } -::windows_core::imp::interface_hierarchy!(AppRecordingStatus, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppRecordingStatus {} unsafe impl ::core::marker::Sync for AppRecordingStatus {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppRecordingStatusDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppRecordingStatusDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppRecordingStatusDetails { pub fn IsAnyAppBroadcasting(&self) -> ::windows_core::Result { let this = self; @@ -481,14 +409,11 @@ impl ::windows_core::RuntimeType for AppRecordingStatusDetails { } unsafe impl ::windows_core::Interface for AppRecordingStatusDetails { type Vtable = IAppRecordingStatusDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppRecordingStatusDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppRecordingStatusDetails { const NAME: &'static str = "Windows.Media.AppRecording.AppRecordingStatusDetails"; } -::windows_core::imp::interface_hierarchy!(AppRecordingStatusDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppRecordingStatusDetails {} unsafe impl ::core::marker::Sync for AppRecordingStatusDetails {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Media/Audio/impl.rs b/crates/libs/windows/src/Windows/Media/Audio/impl.rs index ca1d90d9d3..5efb69cbc8 100644 --- a/crates/libs/windows/src/Windows/Media/Audio/impl.rs +++ b/crates/libs/windows/src/Windows/Media/Audio/impl.rs @@ -49,7 +49,7 @@ impl IAudioInputNode_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Media_Effects\"`, `\"Media_MediaProperties\"`"] @@ -79,7 +79,7 @@ impl IAudioInputNode2_Vtbl { Self { base__: ::windows_core::IInspectable_Vtbl::new::(), Emitter: Emitter:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Media_Effects\"`, `\"Media_MediaProperties\"`"] @@ -201,7 +201,7 @@ impl IAudioNode_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Media_Effects\"`, `\"Media_MediaProperties\"`"] @@ -241,6 +241,6 @@ impl IAudioNodeWithListener_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/Media/Audio/mod.rs b/crates/libs/windows/src/Windows/Media/Audio/mod.rs index 8f53778ab6..b93e514c2c 100644 --- a/crates/libs/windows/src/Windows/Media/Audio/mod.rs +++ b/crates/libs/windows/src/Windows/Media/Audio/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioDeviceInputNode(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioDeviceInputNode { - type Vtable = IAudioDeviceInputNode_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioDeviceInputNode { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb01b6be1_6f4e_49e2_ac01_559d62beb3a9); -} +::windows_core::imp::com_interface!(IAudioDeviceInputNode, IAudioDeviceInputNode_Vtbl, 0xb01b6be1_6f4e_49e2_ac01_559d62beb3a9); #[repr(C)] #[doc(hidden)] pub struct IAudioDeviceInputNode_Vtbl { @@ -17,16 +8,7 @@ pub struct IAudioDeviceInputNode_Vtbl { #[cfg(not(feature = "Devices_Enumeration"))] Device: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioDeviceOutputNode(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioDeviceOutputNode { - type Vtable = IAudioDeviceOutputNode_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioDeviceOutputNode { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x362edbff_ff1c_4434_9e0f_bd2ef522ac82); -} +::windows_core::imp::com_interface!(IAudioDeviceOutputNode, IAudioDeviceOutputNode_Vtbl, 0x362edbff_ff1c_4434_9e0f_bd2ef522ac82); #[repr(C)] #[doc(hidden)] pub struct IAudioDeviceOutputNode_Vtbl { @@ -36,16 +18,7 @@ pub struct IAudioDeviceOutputNode_Vtbl { #[cfg(not(feature = "Devices_Enumeration"))] Device: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioFileInputNode(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioFileInputNode { - type Vtable = IAudioFileInputNode_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioFileInputNode { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x905b67c8_6f65_4cd4_8890_4694843c276d); -} +::windows_core::imp::com_interface!(IAudioFileInputNode, IAudioFileInputNode_Vtbl, 0x905b67c8_6f65_4cd4_8890_4694843c276d); #[repr(C)] #[doc(hidden)] pub struct IAudioFileInputNode_Vtbl { @@ -68,16 +41,7 @@ pub struct IAudioFileInputNode_Vtbl { pub FileCompleted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveFileCompleted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioFileOutputNode(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioFileOutputNode { - type Vtable = IAudioFileOutputNode_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioFileOutputNode { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x50e01980_5166_4093_80f8_ada00089e9cf); -} +::windows_core::imp::com_interface!(IAudioFileOutputNode, IAudioFileOutputNode_Vtbl, 0x50e01980_5166_4093_80f8_ada00089e9cf); #[repr(C)] #[doc(hidden)] pub struct IAudioFileOutputNode_Vtbl { @@ -95,32 +59,14 @@ pub struct IAudioFileOutputNode_Vtbl { #[cfg(not(feature = "Media_Transcoding"))] FinalizeAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioFrameCompletedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioFrameCompletedEventArgs { - type Vtable = IAudioFrameCompletedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioFrameCompletedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdc7c829e_0208_4504_a5a8_f0f268920a65); -} +::windows_core::imp::com_interface!(IAudioFrameCompletedEventArgs, IAudioFrameCompletedEventArgs_Vtbl, 0xdc7c829e_0208_4504_a5a8_f0f268920a65); #[repr(C)] #[doc(hidden)] pub struct IAudioFrameCompletedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Frame: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioFrameInputNode(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioFrameInputNode { - type Vtable = IAudioFrameInputNode_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioFrameInputNode { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x01b266c7_fd96_4ff5_a3c5_d27a9bf44237); -} +::windows_core::imp::com_interface!(IAudioFrameInputNode, IAudioFrameInputNode_Vtbl, 0x01b266c7_fd96_4ff5_a3c5_d27a9bf44237); #[repr(C)] #[doc(hidden)] pub struct IAudioFrameInputNode_Vtbl { @@ -135,32 +81,14 @@ pub struct IAudioFrameInputNode_Vtbl { pub QuantumStarted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveQuantumStarted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioFrameOutputNode(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioFrameOutputNode { - type Vtable = IAudioFrameOutputNode_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioFrameOutputNode { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb847371b_3299_45f5_88b3_c9d12a3f1cc8); -} +::windows_core::imp::com_interface!(IAudioFrameOutputNode, IAudioFrameOutputNode_Vtbl, 0xb847371b_3299_45f5_88b3_c9d12a3f1cc8); #[repr(C)] #[doc(hidden)] pub struct IAudioFrameOutputNode_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetFrame: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioGraph(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioGraph { - type Vtable = IAudioGraph_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioGraph { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1ad46eed_e48c_4e14_9660_2c4f83e9cdd8); -} +::windows_core::imp::com_interface!(IAudioGraph, IAudioGraph_Vtbl, 0x1ad46eed_e48c_4e14_9660_2c4f83e9cdd8); #[repr(C)] #[doc(hidden)] pub struct IAudioGraph_Vtbl { @@ -227,16 +155,7 @@ pub struct IAudioGraph_Vtbl { pub RenderDeviceAudioProcessing: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::AudioProcessing) -> ::windows_core::HRESULT, pub SamplesPerQuantum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioGraph2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioGraph2 { - type Vtable = IAudioGraph2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioGraph2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4e4c3bd5_4fc1_45f6_a947_3cd38f4fd839); -} +::windows_core::imp::com_interface!(IAudioGraph2, IAudioGraph2_Vtbl, 0x4e4c3bd5_4fc1_45f6_a947_3cd38f4fd839); #[repr(C)] #[doc(hidden)] pub struct IAudioGraph2_Vtbl { @@ -259,16 +178,7 @@ pub struct IAudioGraph2_Vtbl { CreateSubmixNodeWithFormatAndEmitter: usize, pub CreateBatchUpdater: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioGraph3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioGraph3 { - type Vtable = IAudioGraph3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioGraph3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xddcd25ae_1185_42a7_831d_6a9b0fc86820); -} +::windows_core::imp::com_interface!(IAudioGraph3, IAudioGraph3_Vtbl, 0xddcd25ae_1185_42a7_831d_6a9b0fc86820); #[repr(C)] #[doc(hidden)] pub struct IAudioGraph3_Vtbl { @@ -282,16 +192,7 @@ pub struct IAudioGraph3_Vtbl { #[cfg(not(feature = "Media_Core"))] CreateMediaSourceAudioInputNodeWithEmitterAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioGraphConnection(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioGraphConnection { - type Vtable = IAudioGraphConnection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioGraphConnection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x763070ed_d04e_4fac_b233_600b42edd469); -} +::windows_core::imp::com_interface!(IAudioGraphConnection, IAudioGraphConnection_Vtbl, 0x763070ed_d04e_4fac_b233_600b42edd469); #[repr(C)] #[doc(hidden)] pub struct IAudioGraphConnection_Vtbl { @@ -300,16 +201,7 @@ pub struct IAudioGraphConnection_Vtbl { pub SetGain: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f64) -> ::windows_core::HRESULT, pub Gain: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioGraphSettings(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioGraphSettings { - type Vtable = IAudioGraphSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioGraphSettings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1d59647f_e6fe_4628_84f8_9d8bdba25785); -} +::windows_core::imp::com_interface!(IAudioGraphSettings, IAudioGraphSettings_Vtbl, 0x1d59647f_e6fe_4628_84f8_9d8bdba25785); #[repr(C)] #[doc(hidden)] pub struct IAudioGraphSettings_Vtbl { @@ -345,16 +237,7 @@ pub struct IAudioGraphSettings_Vtbl { pub DesiredRenderDeviceAudioProcessing: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::AudioProcessing) -> ::windows_core::HRESULT, pub SetDesiredRenderDeviceAudioProcessing: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::AudioProcessing) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioGraphSettings2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioGraphSettings2 { - type Vtable = IAudioGraphSettings2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioGraphSettings2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x72919787_4dab_46e3_b4c9_d8e1a2636062); -} +::windows_core::imp::com_interface!(IAudioGraphSettings2, IAudioGraphSettings2_Vtbl, 0x72919787_4dab_46e3_b4c9_d8e1a2636062); #[repr(C)] #[doc(hidden)] pub struct IAudioGraphSettings2_Vtbl { @@ -362,16 +245,7 @@ pub struct IAudioGraphSettings2_Vtbl { pub SetMaxPlaybackSpeedFactor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f64) -> ::windows_core::HRESULT, pub MaxPlaybackSpeedFactor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioGraphSettingsFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioGraphSettingsFactory { - type Vtable = IAudioGraphSettingsFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioGraphSettingsFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa5d91cc6_c2eb_4a61_a214_1d66d75f83da); -} +::windows_core::imp::com_interface!(IAudioGraphSettingsFactory, IAudioGraphSettingsFactory_Vtbl, 0xa5d91cc6_c2eb_4a61_a214_1d66d75f83da); #[repr(C)] #[doc(hidden)] pub struct IAudioGraphSettingsFactory_Vtbl { @@ -381,41 +255,23 @@ pub struct IAudioGraphSettingsFactory_Vtbl { #[cfg(not(feature = "Media_Render"))] Create: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioGraphStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioGraphStatics { - type Vtable = IAudioGraphStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioGraphStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x76ec3132_e159_4ab7_a82a_17beb4b31e94); -} +::windows_core::imp::com_interface!(IAudioGraphStatics, IAudioGraphStatics_Vtbl, 0x76ec3132_e159_4ab7_a82a_17beb4b31e94); #[repr(C)] #[doc(hidden)] pub struct IAudioGraphStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, settings: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioGraphUnrecoverableErrorOccurredEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioGraphUnrecoverableErrorOccurredEventArgs { - type Vtable = IAudioGraphUnrecoverableErrorOccurredEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioGraphUnrecoverableErrorOccurredEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc3d9cbe0_3ff6_4fb3_b262_50d435c55423); -} +::windows_core::imp::com_interface!(IAudioGraphUnrecoverableErrorOccurredEventArgs, IAudioGraphUnrecoverableErrorOccurredEventArgs_Vtbl, 0xc3d9cbe0_3ff6_4fb3_b262_50d435c55423); #[repr(C)] #[doc(hidden)] pub struct IAudioGraphUnrecoverableErrorOccurredEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Error: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut AudioGraphUnrecoverableError) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioInputNode(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioInputNode, IAudioInputNode_Vtbl, 0xd148005c_8428_4784_b7fd_a99d468c5d20); +::windows_core::imp::interface_hierarchy!(IAudioInputNode, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IAudioInputNode, IAudioNode, super::super::Foundation::IClosable); impl IAudioInputNode { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -428,40 +284,40 @@ impl IAudioInputNode { } pub fn AddOutgoingConnection(&self, destination: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).AddOutgoingConnection)(::windows_core::Interface::as_raw(this), destination.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).AddOutgoingConnection)(::windows_core::Interface::as_raw(this), destination.into_param().abi()).ok() } } pub fn AddOutgoingConnectionWithGain(&self, destination: P0, gain: f64) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).AddOutgoingConnectionWithGain)(::windows_core::Interface::as_raw(this), destination.try_into_param()?.abi(), gain).ok() } + unsafe { (::windows_core::Interface::vtable(this).AddOutgoingConnectionWithGain)(::windows_core::Interface::as_raw(this), destination.into_param().abi(), gain).ok() } } pub fn RemoveOutgoingConnection(&self, destination: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).RemoveOutgoingConnection)(::windows_core::Interface::as_raw(this), destination.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).RemoveOutgoingConnection)(::windows_core::Interface::as_raw(this), destination.into_param().abi()).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Media_Effects\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Media_Effects"))] pub fn EffectDefinitions(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).EffectDefinitions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetOutgoingGain(&self, value: f64) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetOutgoingGain)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn OutgoingGain(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OutgoingGain)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -470,70 +326,61 @@ impl IAudioInputNode { #[doc = "Required features: `\"Media_MediaProperties\"`"] #[cfg(feature = "Media_MediaProperties")] pub fn EncodingProperties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).EncodingProperties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ConsumeInput(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ConsumeInput)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetConsumeInput(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetConsumeInput)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Start(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Start)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Stop(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Stop)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Reset(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Reset)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Media_Effects\"`"] #[cfg(feature = "Media_Effects")] pub fn DisableEffectsByDefinition(&self, definition: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).DisableEffectsByDefinition)(::windows_core::Interface::as_raw(this), definition.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"Media_Effects\"`"] #[cfg(feature = "Media_Effects")] pub fn EnableEffectsByDefinition(&self, definition: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).EnableEffectsByDefinition)(::windows_core::Interface::as_raw(this), definition.try_into_param()?.abi()).ok() } + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } } -::windows_core::imp::interface_hierarchy!(IAudioInputNode, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IAudioInputNode {} -impl ::windows_core::CanTryInto for IAudioInputNode {} impl ::windows_core::RuntimeType for IAudioInputNode { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IAudioInputNode { - type Vtable = IAudioInputNode_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioInputNode { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd148005c_8428_4784_b7fd_a99d468c5d20); -} #[repr(C)] #[doc(hidden)] pub struct IAudioInputNode_Vtbl { @@ -546,9 +393,9 @@ pub struct IAudioInputNode_Vtbl { pub AddOutgoingConnectionWithGain: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, destination: *mut ::core::ffi::c_void, gain: f64) -> ::windows_core::HRESULT, pub RemoveOutgoingConnection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, destination: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioInputNode2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioInputNode2, IAudioInputNode2_Vtbl, 0x905156b7_ca68_4c6d_a8bc_e3ee17fe3fd2); +::windows_core::imp::interface_hierarchy!(IAudioInputNode2, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IAudioInputNode2, IAudioInputNode, IAudioNode, super::super::Foundation::IClosable); impl IAudioInputNode2 { pub fn Emitter(&self) -> ::windows_core::Result { let this = self; @@ -560,7 +407,7 @@ impl IAudioInputNode2 { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn OutgoingConnections(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OutgoingConnections)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -568,40 +415,40 @@ impl IAudioInputNode2 { } pub fn AddOutgoingConnection(&self, destination: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).AddOutgoingConnection)(::windows_core::Interface::as_raw(this), destination.try_into_param()?.abi()).ok() } + 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() } } pub fn AddOutgoingConnectionWithGain(&self, destination: P0, gain: f64) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).AddOutgoingConnectionWithGain)(::windows_core::Interface::as_raw(this), destination.try_into_param()?.abi(), gain).ok() } + 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() } } pub fn RemoveOutgoingConnection(&self, destination: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).RemoveOutgoingConnection)(::windows_core::Interface::as_raw(this), destination.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Media_Effects\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Media_Effects"))] pub fn EffectDefinitions(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).EffectDefinitions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetOutgoingGain(&self, value: f64) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetOutgoingGain)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn OutgoingGain(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OutgoingGain)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -610,80 +457,70 @@ impl IAudioInputNode2 { #[doc = "Required features: `\"Media_MediaProperties\"`"] #[cfg(feature = "Media_MediaProperties")] pub fn EncodingProperties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).EncodingProperties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ConsumeInput(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ConsumeInput)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetConsumeInput(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetConsumeInput)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Start(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Start)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Stop(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Stop)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Reset(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Reset)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Media_Effects\"`"] #[cfg(feature = "Media_Effects")] pub fn DisableEffectsByDefinition(&self, definition: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).DisableEffectsByDefinition)(::windows_core::Interface::as_raw(this), definition.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"Media_Effects\"`"] #[cfg(feature = "Media_Effects")] pub fn EnableEffectsByDefinition(&self, definition: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).EnableEffectsByDefinition)(::windows_core::Interface::as_raw(this), definition.try_into_param()?.abi()).ok() } + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } } -::windows_core::imp::interface_hierarchy!(IAudioInputNode2, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IAudioInputNode2 {} -impl ::windows_core::CanTryInto for IAudioInputNode2 {} -impl ::windows_core::CanTryInto for IAudioInputNode2 {} impl ::windows_core::RuntimeType for IAudioInputNode2 { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IAudioInputNode2 { - type Vtable = IAudioInputNode2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioInputNode2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x905156b7_ca68_4c6d_a8bc_e3ee17fe3fd2); -} #[repr(C)] #[doc(hidden)] pub struct IAudioInputNode2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Emitter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioNode(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioNode, IAudioNode_Vtbl, 0x15389d7f_dbd8_4819_bf03_668e9357cd6d); +::windows_core::imp::interface_hierarchy!(IAudioNode, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IAudioNode, super::super::Foundation::IClosable); impl IAudioNode { #[doc = "Required features: `\"Foundation_Collections\"`, `\"Media_Effects\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Media_Effects"))] @@ -741,36 +578,28 @@ impl IAudioNode { #[cfg(feature = "Media_Effects")] pub fn DisableEffectsByDefinition(&self, definition: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).DisableEffectsByDefinition)(::windows_core::Interface::as_raw(this), definition.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).DisableEffectsByDefinition)(::windows_core::Interface::as_raw(this), definition.into_param().abi()).ok() } } #[doc = "Required features: `\"Media_Effects\"`"] #[cfg(feature = "Media_Effects")] pub fn EnableEffectsByDefinition(&self, definition: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).EnableEffectsByDefinition)(::windows_core::Interface::as_raw(this), definition.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).EnableEffectsByDefinition)(::windows_core::Interface::as_raw(this), definition.into_param().abi()).ok() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } } -::windows_core::imp::interface_hierarchy!(IAudioNode, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IAudioNode {} impl ::windows_core::RuntimeType for IAudioNode { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IAudioNode { - type Vtable = IAudioNode_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioNode { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x15389d7f_dbd8_4819_bf03_668e9357cd6d); -} #[repr(C)] #[doc(hidden)] pub struct IAudioNode_Vtbl { @@ -799,16 +628,7 @@ pub struct IAudioNode_Vtbl { #[cfg(not(feature = "Media_Effects"))] EnableEffectsByDefinition: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioNodeEmitter(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioNodeEmitter { - type Vtable = IAudioNodeEmitter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioNodeEmitter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3676971d_880a_47b8_adf7_1323a9d965be); -} +::windows_core::imp::com_interface!(IAudioNodeEmitter, IAudioNodeEmitter_Vtbl, 0x3676971d_880a_47b8_adf7_1323a9d965be); #[repr(C)] #[doc(hidden)] pub struct IAudioNodeEmitter_Vtbl { @@ -847,16 +667,7 @@ pub struct IAudioNodeEmitter_Vtbl { SetDopplerVelocity: usize, pub IsDopplerDisabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioNodeEmitter2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioNodeEmitter2 { - type Vtable = IAudioNodeEmitter2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioNodeEmitter2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4ab6eecb_ec29_47f8_818c_b6b660a5aeb1); -} +::windows_core::imp::com_interface!(IAudioNodeEmitter2, IAudioNodeEmitter2_Vtbl, 0x4ab6eecb_ec29_47f8_818c_b6b660a5aeb1); #[repr(C)] #[doc(hidden)] pub struct IAudioNodeEmitter2_Vtbl { @@ -864,16 +675,7 @@ pub struct IAudioNodeEmitter2_Vtbl { pub SpatialAudioModel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut SpatialAudioModel) -> ::windows_core::HRESULT, pub SetSpatialAudioModel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: SpatialAudioModel) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioNodeEmitterConeProperties(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioNodeEmitterConeProperties { - type Vtable = IAudioNodeEmitterConeProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioNodeEmitterConeProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe99b2cee_02ca_4375_9326_0c6ae4bcdfb5); -} +::windows_core::imp::com_interface!(IAudioNodeEmitterConeProperties, IAudioNodeEmitterConeProperties_Vtbl, 0xe99b2cee_02ca_4375_9326_0c6ae4bcdfb5); #[repr(C)] #[doc(hidden)] pub struct IAudioNodeEmitterConeProperties_Vtbl { @@ -882,16 +684,7 @@ pub struct IAudioNodeEmitterConeProperties_Vtbl { pub OuterAngle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows_core::HRESULT, pub OuterAngleGain: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioNodeEmitterDecayModel(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioNodeEmitterDecayModel { - type Vtable = IAudioNodeEmitterDecayModel_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioNodeEmitterDecayModel { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1d1d5af7_0d53_4fa9_bd84_d5816a86f3ff); -} +::windows_core::imp::com_interface!(IAudioNodeEmitterDecayModel, IAudioNodeEmitterDecayModel_Vtbl, 0x1d1d5af7_0d53_4fa9_bd84_d5816a86f3ff); #[repr(C)] #[doc(hidden)] pub struct IAudioNodeEmitterDecayModel_Vtbl { @@ -901,16 +694,7 @@ pub struct IAudioNodeEmitterDecayModel_Vtbl { pub MaxGain: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows_core::HRESULT, pub NaturalProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioNodeEmitterDecayModelStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioNodeEmitterDecayModelStatics { - type Vtable = IAudioNodeEmitterDecayModelStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioNodeEmitterDecayModelStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc7787ca8_f178_462f_bc81_8dd5cbe5dae8); -} +::windows_core::imp::com_interface!(IAudioNodeEmitterDecayModelStatics, IAudioNodeEmitterDecayModelStatics_Vtbl, 0xc7787ca8_f178_462f_bc81_8dd5cbe5dae8); #[repr(C)] #[doc(hidden)] pub struct IAudioNodeEmitterDecayModelStatics_Vtbl { @@ -918,32 +702,14 @@ pub struct IAudioNodeEmitterDecayModelStatics_Vtbl { pub CreateNatural: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mingain: f64, maxgain: f64, unitygaindistance: f64, cutoffdistance: f64, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateCustom: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mingain: f64, maxgain: f64, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioNodeEmitterFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioNodeEmitterFactory { - type Vtable = IAudioNodeEmitterFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioNodeEmitterFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfdc8489a_6ad6_4ce4_b7f7_a99370df7ee9); -} +::windows_core::imp::com_interface!(IAudioNodeEmitterFactory, IAudioNodeEmitterFactory_Vtbl, 0xfdc8489a_6ad6_4ce4_b7f7_a99370df7ee9); #[repr(C)] #[doc(hidden)] pub struct IAudioNodeEmitterFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateAudioNodeEmitter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, shape: *mut ::core::ffi::c_void, decaymodel: *mut ::core::ffi::c_void, settings: AudioNodeEmitterSettings, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioNodeEmitterNaturalDecayModelProperties(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioNodeEmitterNaturalDecayModelProperties { - type Vtable = IAudioNodeEmitterNaturalDecayModelProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioNodeEmitterNaturalDecayModelProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x48934bcf_cf2c_4efc_9331_75bd22df1f0c); -} +::windows_core::imp::com_interface!(IAudioNodeEmitterNaturalDecayModelProperties, IAudioNodeEmitterNaturalDecayModelProperties_Vtbl, 0x48934bcf_cf2c_4efc_9331_75bd22df1f0c); #[repr(C)] #[doc(hidden)] pub struct IAudioNodeEmitterNaturalDecayModelProperties_Vtbl { @@ -951,16 +717,7 @@ pub struct IAudioNodeEmitterNaturalDecayModelProperties_Vtbl { pub UnityGainDistance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows_core::HRESULT, pub CutoffDistance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioNodeEmitterShape(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioNodeEmitterShape { - type Vtable = IAudioNodeEmitterShape_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioNodeEmitterShape { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xea0311c5_e73d_44bc_859c_45553bbc4828); -} +::windows_core::imp::com_interface!(IAudioNodeEmitterShape, IAudioNodeEmitterShape_Vtbl, 0xea0311c5_e73d_44bc_859c_45553bbc4828); #[repr(C)] #[doc(hidden)] pub struct IAudioNodeEmitterShape_Vtbl { @@ -968,16 +725,7 @@ pub struct IAudioNodeEmitterShape_Vtbl { pub Kind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut AudioNodeEmitterShapeKind) -> ::windows_core::HRESULT, pub ConeProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioNodeEmitterShapeStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioNodeEmitterShapeStatics { - type Vtable = IAudioNodeEmitterShapeStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioNodeEmitterShapeStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x57bb2771_ffa5_4b86_a779_e264aeb9145f); -} +::windows_core::imp::com_interface!(IAudioNodeEmitterShapeStatics, IAudioNodeEmitterShapeStatics_Vtbl, 0x57bb2771_ffa5_4b86_a779_e264aeb9145f); #[repr(C)] #[doc(hidden)] pub struct IAudioNodeEmitterShapeStatics_Vtbl { @@ -985,16 +733,7 @@ pub struct IAudioNodeEmitterShapeStatics_Vtbl { pub CreateCone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, innerangle: f64, outerangle: f64, outeranglegain: f64, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateOmnidirectional: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioNodeListener(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioNodeListener { - type Vtable = IAudioNodeListener_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioNodeListener { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd9722e16_0c0a_41da_b755_6c77835fb1eb); -} +::windows_core::imp::com_interface!(IAudioNodeListener, IAudioNodeListener_Vtbl, 0xd9722e16_0c0a_41da_b755_6c77835fb1eb); #[repr(C)] #[doc(hidden)] pub struct IAudioNodeListener_Vtbl { @@ -1026,9 +765,9 @@ pub struct IAudioNodeListener_Vtbl { #[cfg(not(feature = "Foundation_Numerics"))] SetDopplerVelocity: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioNodeWithListener(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioNodeWithListener, IAudioNodeWithListener_Vtbl, 0x0e0f907c_79ff_4544_9eeb_01257b15105a); +::windows_core::imp::interface_hierarchy!(IAudioNodeWithListener, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IAudioNodeWithListener, IAudioNode, super::super::Foundation::IClosable); impl IAudioNodeWithListener { pub fn SetListener(&self, value: P0) -> ::windows_core::Result<()> where @@ -1047,18 +786,18 @@ impl IAudioNodeWithListener { #[doc = "Required features: `\"Foundation_Collections\"`, `\"Media_Effects\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Media_Effects"))] pub fn EffectDefinitions(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).EffectDefinitions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetOutgoingGain(&self, value: f64) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetOutgoingGain)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn OutgoingGain(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OutgoingGain)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1067,70 +806,61 @@ impl IAudioNodeWithListener { #[doc = "Required features: `\"Media_MediaProperties\"`"] #[cfg(feature = "Media_MediaProperties")] pub fn EncodingProperties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).EncodingProperties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ConsumeInput(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ConsumeInput)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetConsumeInput(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetConsumeInput)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Start(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Start)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Stop(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Stop)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Reset(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Reset)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Media_Effects\"`"] #[cfg(feature = "Media_Effects")] pub fn DisableEffectsByDefinition(&self, definition: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).DisableEffectsByDefinition)(::windows_core::Interface::as_raw(this), definition.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"Media_Effects\"`"] #[cfg(feature = "Media_Effects")] pub fn EnableEffectsByDefinition(&self, definition: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).EnableEffectsByDefinition)(::windows_core::Interface::as_raw(this), definition.try_into_param()?.abi()).ok() } + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } } -::windows_core::imp::interface_hierarchy!(IAudioNodeWithListener, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IAudioNodeWithListener {} -impl ::windows_core::CanTryInto for IAudioNodeWithListener {} impl ::windows_core::RuntimeType for IAudioNodeWithListener { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IAudioNodeWithListener { - type Vtable = IAudioNodeWithListener_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioNodeWithListener { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0e0f907c_79ff_4544_9eeb_01257b15105a); -} #[repr(C)] #[doc(hidden)] pub struct IAudioNodeWithListener_Vtbl { @@ -1138,16 +868,7 @@ pub struct IAudioNodeWithListener_Vtbl { pub SetListener: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Listener: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioPlaybackConnection(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioPlaybackConnection { - type Vtable = IAudioPlaybackConnection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioPlaybackConnection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1a4c1dea_cafc_50e7_8718_ea3f81cbfa51); -} +::windows_core::imp::com_interface!(IAudioPlaybackConnection, IAudioPlaybackConnection_Vtbl, 0x1a4c1dea_cafc_50e7_8718_ea3f81cbfa51); #[repr(C)] #[doc(hidden)] pub struct IAudioPlaybackConnection_Vtbl { @@ -1161,16 +882,7 @@ pub struct IAudioPlaybackConnection_Vtbl { pub StateChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveStateChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioPlaybackConnectionOpenResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioPlaybackConnectionOpenResult { - type Vtable = IAudioPlaybackConnectionOpenResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioPlaybackConnectionOpenResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4e656aef_39f9_5fc9_a519_a5bbfd9fe921); -} +::windows_core::imp::com_interface!(IAudioPlaybackConnectionOpenResult, IAudioPlaybackConnectionOpenResult_Vtbl, 0x4e656aef_39f9_5fc9_a519_a5bbfd9fe921); #[repr(C)] #[doc(hidden)] pub struct IAudioPlaybackConnectionOpenResult_Vtbl { @@ -1178,16 +890,7 @@ pub struct IAudioPlaybackConnectionOpenResult_Vtbl { pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut AudioPlaybackConnectionOpenResultStatus) -> ::windows_core::HRESULT, pub ExtendedError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioPlaybackConnectionStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioPlaybackConnectionStatics { - type Vtable = IAudioPlaybackConnectionStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioPlaybackConnectionStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe60963a2_69e6_5ffc_9e13_824a85213daf); -} +::windows_core::imp::com_interface!(IAudioPlaybackConnectionStatics, IAudioPlaybackConnectionStatics_Vtbl, 0xe60963a2_69e6_5ffc_9e13_824a85213daf); #[repr(C)] #[doc(hidden)] pub struct IAudioPlaybackConnectionStatics_Vtbl { @@ -1195,16 +898,7 @@ pub struct IAudioPlaybackConnectionStatics_Vtbl { pub GetDeviceSelector: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub TryCreateFromId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioStateMonitor(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioStateMonitor { - type Vtable = IAudioStateMonitor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioStateMonitor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1d13d136_0199_4cdc_b84e_e72c2b581ece); -} +::windows_core::imp::com_interface!(IAudioStateMonitor, IAudioStateMonitor_Vtbl, 0x1d13d136_0199_4cdc_b84e_e72c2b581ece); #[repr(C)] #[doc(hidden)] pub struct IAudioStateMonitor_Vtbl { @@ -1213,16 +907,7 @@ pub struct IAudioStateMonitor_Vtbl { pub RemoveSoundLevelChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub SoundLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::SoundLevel) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioStateMonitorStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioStateMonitorStatics { - type Vtable = IAudioStateMonitorStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioStateMonitorStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6374ea4c_1b3b_4001_94d9_dd225330fa40); -} +::windows_core::imp::com_interface!(IAudioStateMonitorStatics, IAudioStateMonitorStatics_Vtbl, 0x6374ea4c_1b3b_4001_94d9_dd225330fa40); #[repr(C)] #[doc(hidden)] pub struct IAudioStateMonitorStatics_Vtbl { @@ -1254,16 +939,7 @@ pub struct IAudioStateMonitorStatics_Vtbl { #[cfg(not(feature = "Media_Capture"))] CreateForCaptureMonitoringWithCategoryAndDeviceId: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICreateAudioDeviceInputNodeResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICreateAudioDeviceInputNodeResult { - type Vtable = ICreateAudioDeviceInputNodeResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICreateAudioDeviceInputNodeResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x16eec7a8_1ca7_40ef_91a4_d346e0aa1bba); -} +::windows_core::imp::com_interface!(ICreateAudioDeviceInputNodeResult, ICreateAudioDeviceInputNodeResult_Vtbl, 0x16eec7a8_1ca7_40ef_91a4_d346e0aa1bba); #[repr(C)] #[doc(hidden)] pub struct ICreateAudioDeviceInputNodeResult_Vtbl { @@ -1271,32 +947,14 @@ pub struct ICreateAudioDeviceInputNodeResult_Vtbl { pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut AudioDeviceNodeCreationStatus) -> ::windows_core::HRESULT, pub DeviceInputNode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICreateAudioDeviceInputNodeResult2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICreateAudioDeviceInputNodeResult2 { - type Vtable = ICreateAudioDeviceInputNodeResult2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICreateAudioDeviceInputNodeResult2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x921c69ce_3f35_41c7_9622_79f608baedc2); -} +::windows_core::imp::com_interface!(ICreateAudioDeviceInputNodeResult2, ICreateAudioDeviceInputNodeResult2_Vtbl, 0x921c69ce_3f35_41c7_9622_79f608baedc2); #[repr(C)] #[doc(hidden)] pub struct ICreateAudioDeviceInputNodeResult2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ExtendedError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICreateAudioDeviceOutputNodeResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICreateAudioDeviceOutputNodeResult { - type Vtable = ICreateAudioDeviceOutputNodeResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICreateAudioDeviceOutputNodeResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf7776d27_1d9a_47f7_9cd4_2859cc1b7bff); -} +::windows_core::imp::com_interface!(ICreateAudioDeviceOutputNodeResult, ICreateAudioDeviceOutputNodeResult_Vtbl, 0xf7776d27_1d9a_47f7_9cd4_2859cc1b7bff); #[repr(C)] #[doc(hidden)] pub struct ICreateAudioDeviceOutputNodeResult_Vtbl { @@ -1304,32 +962,14 @@ pub struct ICreateAudioDeviceOutputNodeResult_Vtbl { pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut AudioDeviceNodeCreationStatus) -> ::windows_core::HRESULT, pub DeviceOutputNode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICreateAudioDeviceOutputNodeResult2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICreateAudioDeviceOutputNodeResult2 { - type Vtable = ICreateAudioDeviceOutputNodeResult2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICreateAudioDeviceOutputNodeResult2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4864269f_bdce_4ab1_bd38_fbae93aedaca); -} +::windows_core::imp::com_interface!(ICreateAudioDeviceOutputNodeResult2, ICreateAudioDeviceOutputNodeResult2_Vtbl, 0x4864269f_bdce_4ab1_bd38_fbae93aedaca); #[repr(C)] #[doc(hidden)] pub struct ICreateAudioDeviceOutputNodeResult2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ExtendedError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICreateAudioFileInputNodeResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICreateAudioFileInputNodeResult { - type Vtable = ICreateAudioFileInputNodeResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICreateAudioFileInputNodeResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xce83d61c_e297_4c50_9ce7_1c7a69d6bd09); -} +::windows_core::imp::com_interface!(ICreateAudioFileInputNodeResult, ICreateAudioFileInputNodeResult_Vtbl, 0xce83d61c_e297_4c50_9ce7_1c7a69d6bd09); #[repr(C)] #[doc(hidden)] pub struct ICreateAudioFileInputNodeResult_Vtbl { @@ -1337,32 +977,14 @@ pub struct ICreateAudioFileInputNodeResult_Vtbl { pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut AudioFileNodeCreationStatus) -> ::windows_core::HRESULT, pub FileInputNode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICreateAudioFileInputNodeResult2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICreateAudioFileInputNodeResult2 { - type Vtable = ICreateAudioFileInputNodeResult2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICreateAudioFileInputNodeResult2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf9082020_3d80_4fe0_81c1_768fea7ca7e0); -} +::windows_core::imp::com_interface!(ICreateAudioFileInputNodeResult2, ICreateAudioFileInputNodeResult2_Vtbl, 0xf9082020_3d80_4fe0_81c1_768fea7ca7e0); #[repr(C)] #[doc(hidden)] pub struct ICreateAudioFileInputNodeResult2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ExtendedError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICreateAudioFileOutputNodeResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICreateAudioFileOutputNodeResult { - type Vtable = ICreateAudioFileOutputNodeResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICreateAudioFileOutputNodeResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x47d6ba7b_e909_453f_866e_5540cda734ff); -} +::windows_core::imp::com_interface!(ICreateAudioFileOutputNodeResult, ICreateAudioFileOutputNodeResult_Vtbl, 0x47d6ba7b_e909_453f_866e_5540cda734ff); #[repr(C)] #[doc(hidden)] pub struct ICreateAudioFileOutputNodeResult_Vtbl { @@ -1370,32 +992,14 @@ pub struct ICreateAudioFileOutputNodeResult_Vtbl { pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut AudioFileNodeCreationStatus) -> ::windows_core::HRESULT, pub FileOutputNode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICreateAudioFileOutputNodeResult2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICreateAudioFileOutputNodeResult2 { - type Vtable = ICreateAudioFileOutputNodeResult2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICreateAudioFileOutputNodeResult2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9f01b50d_3318_47b3_a60a_1b492be7fc0d); -} +::windows_core::imp::com_interface!(ICreateAudioFileOutputNodeResult2, ICreateAudioFileOutputNodeResult2_Vtbl, 0x9f01b50d_3318_47b3_a60a_1b492be7fc0d); #[repr(C)] #[doc(hidden)] pub struct ICreateAudioFileOutputNodeResult2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ExtendedError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICreateAudioGraphResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICreateAudioGraphResult { - type Vtable = ICreateAudioGraphResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICreateAudioGraphResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5453ef7e_7bde_4b76_bb5d_48f79cfc8c0b); -} +::windows_core::imp::com_interface!(ICreateAudioGraphResult, ICreateAudioGraphResult_Vtbl, 0x5453ef7e_7bde_4b76_bb5d_48f79cfc8c0b); #[repr(C)] #[doc(hidden)] pub struct ICreateAudioGraphResult_Vtbl { @@ -1403,32 +1007,14 @@ pub struct ICreateAudioGraphResult_Vtbl { pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut AudioGraphCreationStatus) -> ::windows_core::HRESULT, pub Graph: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICreateAudioGraphResult2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICreateAudioGraphResult2 { - type Vtable = ICreateAudioGraphResult2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICreateAudioGraphResult2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6d738dfc_88c6_4fcb_a534_85cedd4050a1); -} +::windows_core::imp::com_interface!(ICreateAudioGraphResult2, ICreateAudioGraphResult2_Vtbl, 0x6d738dfc_88c6_4fcb_a534_85cedd4050a1); #[repr(C)] #[doc(hidden)] pub struct ICreateAudioGraphResult2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ExtendedError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICreateMediaSourceAudioInputNodeResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICreateMediaSourceAudioInputNodeResult { - type Vtable = ICreateMediaSourceAudioInputNodeResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICreateMediaSourceAudioInputNodeResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x46a658a3_53c0_4d59_9e51_cc1d1044a4c4); -} +::windows_core::imp::com_interface!(ICreateMediaSourceAudioInputNodeResult, ICreateMediaSourceAudioInputNodeResult_Vtbl, 0x46a658a3_53c0_4d59_9e51_cc1d1044a4c4); #[repr(C)] #[doc(hidden)] pub struct ICreateMediaSourceAudioInputNodeResult_Vtbl { @@ -1436,32 +1022,14 @@ pub struct ICreateMediaSourceAudioInputNodeResult_Vtbl { pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut MediaSourceAudioInputNodeCreationStatus) -> ::windows_core::HRESULT, pub Node: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICreateMediaSourceAudioInputNodeResult2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICreateMediaSourceAudioInputNodeResult2 { - type Vtable = ICreateMediaSourceAudioInputNodeResult2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICreateMediaSourceAudioInputNodeResult2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x63514ce8_6a1a_49e3_97ec_28fd5be114e5); -} +::windows_core::imp::com_interface!(ICreateMediaSourceAudioInputNodeResult2, ICreateMediaSourceAudioInputNodeResult2_Vtbl, 0x63514ce8_6a1a_49e3_97ec_28fd5be114e5); #[repr(C)] #[doc(hidden)] pub struct ICreateMediaSourceAudioInputNodeResult2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ExtendedError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEchoEffectDefinition(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEchoEffectDefinition { - type Vtable = IEchoEffectDefinition_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEchoEffectDefinition { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0e4d3faa_36b8_4c91_b9da_11f44a8a6610); -} +::windows_core::imp::com_interface!(IEchoEffectDefinition, IEchoEffectDefinition_Vtbl, 0x0e4d3faa_36b8_4c91_b9da_11f44a8a6610); #[repr(C)] #[doc(hidden)] pub struct IEchoEffectDefinition_Vtbl { @@ -1473,32 +1041,14 @@ pub struct IEchoEffectDefinition_Vtbl { pub SetDelay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f64) -> ::windows_core::HRESULT, pub Delay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEchoEffectDefinitionFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEchoEffectDefinitionFactory { - type Vtable = IEchoEffectDefinitionFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEchoEffectDefinitionFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0d4e2257_aaf2_4e86_a54c_fb79db8f6c12); -} +::windows_core::imp::com_interface!(IEchoEffectDefinitionFactory, IEchoEffectDefinitionFactory_Vtbl, 0x0d4e2257_aaf2_4e86_a54c_fb79db8f6c12); #[repr(C)] #[doc(hidden)] pub struct IEchoEffectDefinitionFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, audiograph: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEqualizerBand(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEqualizerBand { - type Vtable = IEqualizerBand_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEqualizerBand { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc00a5a6a_262d_4b85_9bb7_43280b62ed0c); -} +::windows_core::imp::com_interface!(IEqualizerBand, IEqualizerBand_Vtbl, 0xc00a5a6a_262d_4b85_9bb7_43280b62ed0c); #[repr(C)] #[doc(hidden)] pub struct IEqualizerBand_Vtbl { @@ -1510,16 +1060,7 @@ pub struct IEqualizerBand_Vtbl { pub Gain: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows_core::HRESULT, pub SetGain: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f64) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEqualizerEffectDefinition(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEqualizerEffectDefinition { - type Vtable = IEqualizerEffectDefinition_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEqualizerEffectDefinition { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x023f6f1f_83fe_449a_a822_c696442d16b0); -} +::windows_core::imp::com_interface!(IEqualizerEffectDefinition, IEqualizerEffectDefinition_Vtbl, 0x023f6f1f_83fe_449a_a822_c696442d16b0); #[repr(C)] #[doc(hidden)] pub struct IEqualizerEffectDefinition_Vtbl { @@ -1529,48 +1070,21 @@ pub struct IEqualizerEffectDefinition_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Bands: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEqualizerEffectDefinitionFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEqualizerEffectDefinitionFactory { - type Vtable = IEqualizerEffectDefinitionFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEqualizerEffectDefinitionFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd2876fc4_d410_4eb5_9e69_c9aa1277eaf0); -} +::windows_core::imp::com_interface!(IEqualizerEffectDefinitionFactory, IEqualizerEffectDefinitionFactory_Vtbl, 0xd2876fc4_d410_4eb5_9e69_c9aa1277eaf0); #[repr(C)] #[doc(hidden)] pub struct IEqualizerEffectDefinitionFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, audiograph: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFrameInputNodeQuantumStartedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFrameInputNodeQuantumStartedEventArgs { - type Vtable = IFrameInputNodeQuantumStartedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFrameInputNodeQuantumStartedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3d9bd498_a306_4f06_bd9f_e9efc8226304); -} +::windows_core::imp::com_interface!(IFrameInputNodeQuantumStartedEventArgs, IFrameInputNodeQuantumStartedEventArgs_Vtbl, 0x3d9bd498_a306_4f06_bd9f_e9efc8226304); #[repr(C)] #[doc(hidden)] pub struct IFrameInputNodeQuantumStartedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub RequiredSamples: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILimiterEffectDefinition(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILimiterEffectDefinition { - type Vtable = ILimiterEffectDefinition_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILimiterEffectDefinition { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6b755d19_2603_47ba_bdeb_39055e3486dc); -} +::windows_core::imp::com_interface!(ILimiterEffectDefinition, ILimiterEffectDefinition_Vtbl, 0x6b755d19_2603_47ba_bdeb_39055e3486dc); #[repr(C)] #[doc(hidden)] pub struct ILimiterEffectDefinition_Vtbl { @@ -1580,32 +1094,14 @@ pub struct ILimiterEffectDefinition_Vtbl { pub SetLoudness: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: u32) -> ::windows_core::HRESULT, pub Loudness: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILimiterEffectDefinitionFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILimiterEffectDefinitionFactory { - type Vtable = ILimiterEffectDefinitionFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILimiterEffectDefinitionFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xecbae6f1_61ff_45ef_b8f5_48659a57c72d); -} +::windows_core::imp::com_interface!(ILimiterEffectDefinitionFactory, ILimiterEffectDefinitionFactory_Vtbl, 0xecbae6f1_61ff_45ef_b8f5_48659a57c72d); #[repr(C)] #[doc(hidden)] pub struct ILimiterEffectDefinitionFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, audiograph: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaSourceAudioInputNode(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaSourceAudioInputNode { - type Vtable = IMediaSourceAudioInputNode_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaSourceAudioInputNode { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x99d8983b_a88a_4041_8e4f_ddbac0c91fd3); -} +::windows_core::imp::com_interface!(IMediaSourceAudioInputNode, IMediaSourceAudioInputNode_Vtbl, 0x99d8983b_a88a_4041_8e4f_ddbac0c91fd3); #[repr(C)] #[doc(hidden)] pub struct IMediaSourceAudioInputNode_Vtbl { @@ -1628,16 +1124,7 @@ pub struct IMediaSourceAudioInputNode_Vtbl { pub MediaSourceCompleted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveMediaSourceCompleted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IReverbEffectDefinition(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IReverbEffectDefinition { - type Vtable = IReverbEffectDefinition_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IReverbEffectDefinition { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4606aa89_f563_4d0a_8f6e_f0cddff35d84); -} +::windows_core::imp::com_interface!(IReverbEffectDefinition, IReverbEffectDefinition_Vtbl, 0x4606aa89_f563_4d0a_8f6e_f0cddff35d84); #[repr(C)] #[doc(hidden)] pub struct IReverbEffectDefinition_Vtbl { @@ -1689,48 +1176,21 @@ pub struct IReverbEffectDefinition_Vtbl { pub SetDisableLateField: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, pub DisableLateField: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IReverbEffectDefinitionFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IReverbEffectDefinitionFactory { - type Vtable = IReverbEffectDefinitionFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IReverbEffectDefinitionFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa7d5cbfe_100b_4ff0_9da6_dc4e05a759f0); -} +::windows_core::imp::com_interface!(IReverbEffectDefinitionFactory, IReverbEffectDefinitionFactory_Vtbl, 0xa7d5cbfe_100b_4ff0_9da6_dc4e05a759f0); #[repr(C)] #[doc(hidden)] pub struct IReverbEffectDefinitionFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, audiograph: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISetDefaultSpatialAudioFormatResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISetDefaultSpatialAudioFormatResult { - type Vtable = ISetDefaultSpatialAudioFormatResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISetDefaultSpatialAudioFormatResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1c2aa511_1400_5e70_9ea9_ae151241e8ea); -} +::windows_core::imp::com_interface!(ISetDefaultSpatialAudioFormatResult, ISetDefaultSpatialAudioFormatResult_Vtbl, 0x1c2aa511_1400_5e70_9ea9_ae151241e8ea); #[repr(C)] #[doc(hidden)] pub struct ISetDefaultSpatialAudioFormatResult_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut SetDefaultSpatialAudioFormatStatus) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialAudioDeviceConfiguration(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialAudioDeviceConfiguration { - type Vtable = ISpatialAudioDeviceConfiguration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialAudioDeviceConfiguration { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xee830034_61cf_5749_9da4_10f0fe028199); -} +::windows_core::imp::com_interface!(ISpatialAudioDeviceConfiguration, ISpatialAudioDeviceConfiguration_Vtbl, 0xee830034_61cf_5749_9da4_10f0fe028199); #[repr(C)] #[doc(hidden)] pub struct ISpatialAudioDeviceConfiguration_Vtbl { @@ -1744,32 +1204,14 @@ pub struct ISpatialAudioDeviceConfiguration_Vtbl { pub ConfigurationChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveConfigurationChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialAudioDeviceConfigurationStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialAudioDeviceConfigurationStatics { - type Vtable = ISpatialAudioDeviceConfigurationStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialAudioDeviceConfigurationStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3ec37f7b_936d_4e04_9728_2827d9f758c4); -} +::windows_core::imp::com_interface!(ISpatialAudioDeviceConfigurationStatics, ISpatialAudioDeviceConfigurationStatics_Vtbl, 0x3ec37f7b_936d_4e04_9728_2827d9f758c4); #[repr(C)] #[doc(hidden)] pub struct ISpatialAudioDeviceConfigurationStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetForDeviceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, deviceid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialAudioFormatConfiguration(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialAudioFormatConfiguration { - type Vtable = ISpatialAudioFormatConfiguration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialAudioFormatConfiguration { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x32df09a8_50f0_5395_9923_7d44ca71ed6d); -} +::windows_core::imp::com_interface!(ISpatialAudioFormatConfiguration, ISpatialAudioFormatConfiguration_Vtbl, 0x32df09a8_50f0_5395_9923_7d44ca71ed6d); #[repr(C)] #[doc(hidden)] pub struct ISpatialAudioFormatConfiguration_Vtbl { @@ -1779,32 +1221,14 @@ pub struct ISpatialAudioFormatConfiguration_Vtbl { pub MixedRealityExclusiveModePolicy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut MixedRealitySpatialAudioFormatPolicy) -> ::windows_core::HRESULT, pub SetMixedRealityExclusiveModePolicy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: MixedRealitySpatialAudioFormatPolicy) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialAudioFormatConfigurationStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialAudioFormatConfigurationStatics { - type Vtable = ISpatialAudioFormatConfigurationStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialAudioFormatConfigurationStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2b5fef71_67c9_4e5f_a35b_41680711f8c7); -} +::windows_core::imp::com_interface!(ISpatialAudioFormatConfigurationStatics, ISpatialAudioFormatConfigurationStatics_Vtbl, 0x2b5fef71_67c9_4e5f_a35b_41680711f8c7); #[repr(C)] #[doc(hidden)] pub struct ISpatialAudioFormatConfigurationStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetDefault: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialAudioFormatSubtypeStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialAudioFormatSubtypeStatics { - type Vtable = ISpatialAudioFormatSubtypeStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialAudioFormatSubtypeStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb3de8a47_83ee_4266_a945_bedf507afeed); -} +::windows_core::imp::com_interface!(ISpatialAudioFormatSubtypeStatics, ISpatialAudioFormatSubtypeStatics_Vtbl, 0xb3de8a47_83ee_4266_a945_bedf507afeed); #[repr(C)] #[doc(hidden)] pub struct ISpatialAudioFormatSubtypeStatics_Vtbl { @@ -1816,16 +1240,7 @@ pub struct ISpatialAudioFormatSubtypeStatics_Vtbl { pub DTSHeadphoneX: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub DTSXUltra: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialAudioFormatSubtypeStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialAudioFormatSubtypeStatics2 { - type Vtable = ISpatialAudioFormatSubtypeStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialAudioFormatSubtypeStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4565e6cb_d95b_5621_b6af_0e8849c57c80); -} +::windows_core::imp::com_interface!(ISpatialAudioFormatSubtypeStatics2, ISpatialAudioFormatSubtypeStatics2_Vtbl, 0x4565e6cb_d95b_5621_b6af_0e8849c57c80); #[repr(C)] #[doc(hidden)] pub struct ISpatialAudioFormatSubtypeStatics2_Vtbl { @@ -1835,6 +1250,8 @@ pub struct ISpatialAudioFormatSubtypeStatics2_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AudioDeviceInputNode(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AudioDeviceInputNode, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(AudioDeviceInputNode, IAudioInputNode, IAudioInputNode2, IAudioNode, super::super::Foundation::IClosable); impl AudioDeviceInputNode { #[doc = "Required features: `\"Devices_Enumeration\"`"] #[cfg(feature = "Devices_Enumeration")] @@ -1848,7 +1265,7 @@ impl AudioDeviceInputNode { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn OutgoingConnections(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OutgoingConnections)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1856,27 +1273,27 @@ impl AudioDeviceInputNode { } pub fn AddOutgoingConnection(&self, destination: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).AddOutgoingConnection)(::windows_core::Interface::as_raw(this), destination.try_into_param()?.abi()).ok() } + 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() } } pub fn AddOutgoingConnectionWithGain(&self, destination: P0, gain: f64) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).AddOutgoingConnectionWithGain)(::windows_core::Interface::as_raw(this), destination.try_into_param()?.abi(), gain).ok() } + 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() } } pub fn RemoveOutgoingConnection(&self, destination: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).RemoveOutgoingConnection)(::windows_core::Interface::as_raw(this), destination.try_into_param()?.abi()).ok() } + 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() } } pub fn Emitter(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Emitter)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1885,18 +1302,18 @@ impl AudioDeviceInputNode { #[doc = "Required features: `\"Foundation_Collections\"`, `\"Media_Effects\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Media_Effects"))] pub fn EffectDefinitions(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).EffectDefinitions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetOutgoingGain(&self, value: f64) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetOutgoingGain)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn OutgoingGain(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OutgoingGain)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1905,55 +1322,55 @@ impl AudioDeviceInputNode { #[doc = "Required features: `\"Media_MediaProperties\"`"] #[cfg(feature = "Media_MediaProperties")] pub fn EncodingProperties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).EncodingProperties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ConsumeInput(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ConsumeInput)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetConsumeInput(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetConsumeInput)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Start(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Start)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Stop(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Stop)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Reset(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Reset)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Media_Effects\"`"] #[cfg(feature = "Media_Effects")] pub fn DisableEffectsByDefinition(&self, definition: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).DisableEffectsByDefinition)(::windows_core::Interface::as_raw(this), definition.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"Media_Effects\"`"] #[cfg(feature = "Media_Effects")] pub fn EnableEffectsByDefinition(&self, definition: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).EnableEffectsByDefinition)(::windows_core::Interface::as_raw(this), definition.try_into_param()?.abi()).ok() } + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } } @@ -1962,23 +1379,18 @@ impl ::windows_core::RuntimeType for AudioDeviceInputNode { } unsafe impl ::windows_core::Interface for AudioDeviceInputNode { type Vtable = IAudioDeviceInputNode_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AudioDeviceInputNode { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AudioDeviceInputNode { const NAME: &'static str = "Windows.Media.Audio.AudioDeviceInputNode"; } -::windows_core::imp::interface_hierarchy!(AudioDeviceInputNode, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for AudioDeviceInputNode {} -impl ::windows_core::CanTryInto for AudioDeviceInputNode {} -impl ::windows_core::CanTryInto for AudioDeviceInputNode {} -impl ::windows_core::CanTryInto for AudioDeviceInputNode {} unsafe impl ::core::marker::Send for AudioDeviceInputNode {} unsafe impl ::core::marker::Sync for AudioDeviceInputNode {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AudioDeviceOutputNode(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AudioDeviceOutputNode, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(AudioDeviceOutputNode, IAudioNode, IAudioNodeWithListener, super::super::Foundation::IClosable); impl AudioDeviceOutputNode { #[doc = "Required features: `\"Devices_Enumeration\"`"] #[cfg(feature = "Devices_Enumeration")] @@ -1992,18 +1404,18 @@ impl AudioDeviceOutputNode { #[doc = "Required features: `\"Foundation_Collections\"`, `\"Media_Effects\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Media_Effects"))] pub fn EffectDefinitions(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).EffectDefinitions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetOutgoingGain(&self, value: f64) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetOutgoingGain)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn OutgoingGain(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OutgoingGain)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2012,69 +1424,69 @@ impl AudioDeviceOutputNode { #[doc = "Required features: `\"Media_MediaProperties\"`"] #[cfg(feature = "Media_MediaProperties")] pub fn EncodingProperties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).EncodingProperties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ConsumeInput(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ConsumeInput)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetConsumeInput(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetConsumeInput)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Start(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Start)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Stop(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Stop)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Reset(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Reset)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Media_Effects\"`"] #[cfg(feature = "Media_Effects")] pub fn DisableEffectsByDefinition(&self, definition: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).DisableEffectsByDefinition)(::windows_core::Interface::as_raw(this), definition.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"Media_Effects\"`"] #[cfg(feature = "Media_Effects")] pub fn EnableEffectsByDefinition(&self, definition: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).EnableEffectsByDefinition)(::windows_core::Interface::as_raw(this), definition.try_into_param()?.abi()).ok() } + 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() } } pub fn SetListener(&self, value: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Listener(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Listener)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } } @@ -2083,22 +1495,18 @@ impl ::windows_core::RuntimeType for AudioDeviceOutputNode { } unsafe impl ::windows_core::Interface for AudioDeviceOutputNode { type Vtable = IAudioDeviceOutputNode_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AudioDeviceOutputNode { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AudioDeviceOutputNode { const NAME: &'static str = "Windows.Media.Audio.AudioDeviceOutputNode"; } -::windows_core::imp::interface_hierarchy!(AudioDeviceOutputNode, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for AudioDeviceOutputNode {} -impl ::windows_core::CanTryInto for AudioDeviceOutputNode {} -impl ::windows_core::CanTryInto for AudioDeviceOutputNode {} unsafe impl ::core::marker::Send for AudioDeviceOutputNode {} unsafe impl ::core::marker::Sync for AudioDeviceOutputNode {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AudioFileInputNode(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AudioFileInputNode, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(AudioFileInputNode, IAudioInputNode, IAudioInputNode2, IAudioNode, super::super::Foundation::IClosable); impl AudioFileInputNode { pub fn SetPlaybackSpeedFactor(&self, value: f64) -> ::windows_core::Result<()> { let this = self; @@ -2131,10 +1539,10 @@ impl AudioFileInputNode { } pub fn SetStartTime(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetStartTime)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetStartTime)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn EndTime(&self) -> ::windows_core::Result> { let this = self; @@ -2145,10 +1553,10 @@ impl AudioFileInputNode { } pub fn SetEndTime(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetEndTime)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetEndTime)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn LoopCount(&self) -> ::windows_core::Result> { let this = self; @@ -2159,10 +1567,10 @@ impl AudioFileInputNode { } pub fn SetLoopCount(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetLoopCount)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetLoopCount)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn Duration(&self) -> ::windows_core::Result { let this = self; @@ -2197,7 +1605,7 @@ impl AudioFileInputNode { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn OutgoingConnections(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OutgoingConnections)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2205,27 +1613,27 @@ impl AudioFileInputNode { } pub fn AddOutgoingConnection(&self, destination: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).AddOutgoingConnection)(::windows_core::Interface::as_raw(this), destination.try_into_param()?.abi()).ok() } + 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() } } pub fn AddOutgoingConnectionWithGain(&self, destination: P0, gain: f64) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).AddOutgoingConnectionWithGain)(::windows_core::Interface::as_raw(this), destination.try_into_param()?.abi(), gain).ok() } + 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() } } pub fn RemoveOutgoingConnection(&self, destination: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).RemoveOutgoingConnection)(::windows_core::Interface::as_raw(this), destination.try_into_param()?.abi()).ok() } + 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() } } pub fn Emitter(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Emitter)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2234,18 +1642,18 @@ impl AudioFileInputNode { #[doc = "Required features: `\"Foundation_Collections\"`, `\"Media_Effects\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Media_Effects"))] pub fn EffectDefinitions(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).EffectDefinitions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetOutgoingGain(&self, value: f64) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetOutgoingGain)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn OutgoingGain(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OutgoingGain)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2254,55 +1662,55 @@ impl AudioFileInputNode { #[doc = "Required features: `\"Media_MediaProperties\"`"] #[cfg(feature = "Media_MediaProperties")] pub fn EncodingProperties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).EncodingProperties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ConsumeInput(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ConsumeInput)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetConsumeInput(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetConsumeInput)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Start(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Start)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Stop(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Stop)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Reset(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Reset)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Media_Effects\"`"] #[cfg(feature = "Media_Effects")] pub fn DisableEffectsByDefinition(&self, definition: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).DisableEffectsByDefinition)(::windows_core::Interface::as_raw(this), definition.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"Media_Effects\"`"] #[cfg(feature = "Media_Effects")] pub fn EnableEffectsByDefinition(&self, definition: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).EnableEffectsByDefinition)(::windows_core::Interface::as_raw(this), definition.try_into_param()?.abi()).ok() } + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } } @@ -2311,23 +1719,18 @@ impl ::windows_core::RuntimeType for AudioFileInputNode { } unsafe impl ::windows_core::Interface for AudioFileInputNode { type Vtable = IAudioFileInputNode_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AudioFileInputNode { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AudioFileInputNode { const NAME: &'static str = "Windows.Media.Audio.AudioFileInputNode"; } -::windows_core::imp::interface_hierarchy!(AudioFileInputNode, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for AudioFileInputNode {} -impl ::windows_core::CanTryInto for AudioFileInputNode {} -impl ::windows_core::CanTryInto for AudioFileInputNode {} -impl ::windows_core::CanTryInto for AudioFileInputNode {} unsafe impl ::core::marker::Send for AudioFileInputNode {} unsafe impl ::core::marker::Sync for AudioFileInputNode {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AudioFileOutputNode(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AudioFileOutputNode, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(AudioFileOutputNode, IAudioNode, super::super::Foundation::IClosable); impl AudioFileOutputNode { #[doc = "Required features: `\"Storage\"`"] #[cfg(feature = "Storage")] @@ -2359,18 +1762,18 @@ impl AudioFileOutputNode { #[doc = "Required features: `\"Foundation_Collections\"`, `\"Media_Effects\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Media_Effects"))] pub fn EffectDefinitions(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).EffectDefinitions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetOutgoingGain(&self, value: f64) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetOutgoingGain)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn OutgoingGain(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OutgoingGain)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2379,55 +1782,55 @@ impl AudioFileOutputNode { #[doc = "Required features: `\"Media_MediaProperties\"`"] #[cfg(feature = "Media_MediaProperties")] pub fn EncodingProperties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).EncodingProperties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ConsumeInput(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ConsumeInput)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetConsumeInput(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetConsumeInput)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Start(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Start)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Stop(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Stop)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Reset(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Reset)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Media_Effects\"`"] #[cfg(feature = "Media_Effects")] pub fn DisableEffectsByDefinition(&self, definition: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).DisableEffectsByDefinition)(::windows_core::Interface::as_raw(this), definition.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"Media_Effects\"`"] #[cfg(feature = "Media_Effects")] pub fn EnableEffectsByDefinition(&self, definition: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).EnableEffectsByDefinition)(::windows_core::Interface::as_raw(this), definition.try_into_param()?.abi()).ok() } + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } } @@ -2436,21 +1839,17 @@ impl ::windows_core::RuntimeType for AudioFileOutputNode { } unsafe impl ::windows_core::Interface for AudioFileOutputNode { type Vtable = IAudioFileOutputNode_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AudioFileOutputNode { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AudioFileOutputNode { const NAME: &'static str = "Windows.Media.Audio.AudioFileOutputNode"; } -::windows_core::imp::interface_hierarchy!(AudioFileOutputNode, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for AudioFileOutputNode {} -impl ::windows_core::CanTryInto for AudioFileOutputNode {} unsafe impl ::core::marker::Send for AudioFileOutputNode {} unsafe impl ::core::marker::Sync for AudioFileOutputNode {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AudioFrameCompletedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AudioFrameCompletedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AudioFrameCompletedEventArgs { pub fn Frame(&self) -> ::windows_core::Result { let this = self; @@ -2465,19 +1864,18 @@ impl ::windows_core::RuntimeType for AudioFrameCompletedEventArgs { } unsafe impl ::windows_core::Interface for AudioFrameCompletedEventArgs { type Vtable = IAudioFrameCompletedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AudioFrameCompletedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AudioFrameCompletedEventArgs { const NAME: &'static str = "Windows.Media.Audio.AudioFrameCompletedEventArgs"; } -::windows_core::imp::interface_hierarchy!(AudioFrameCompletedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AudioFrameCompletedEventArgs {} unsafe impl ::core::marker::Sync for AudioFrameCompletedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AudioFrameInputNode(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AudioFrameInputNode, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(AudioFrameInputNode, IAudioInputNode, IAudioInputNode2, IAudioNode, super::super::Foundation::IClosable); impl AudioFrameInputNode { pub fn SetPlaybackSpeedFactor(&self, value: f64) -> ::windows_core::Result<()> { let this = self; @@ -2539,7 +1937,7 @@ impl AudioFrameInputNode { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn OutgoingConnections(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OutgoingConnections)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2547,27 +1945,27 @@ impl AudioFrameInputNode { } pub fn AddOutgoingConnection(&self, destination: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).AddOutgoingConnection)(::windows_core::Interface::as_raw(this), destination.try_into_param()?.abi()).ok() } + 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() } } pub fn AddOutgoingConnectionWithGain(&self, destination: P0, gain: f64) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).AddOutgoingConnectionWithGain)(::windows_core::Interface::as_raw(this), destination.try_into_param()?.abi(), gain).ok() } + 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() } } pub fn RemoveOutgoingConnection(&self, destination: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).RemoveOutgoingConnection)(::windows_core::Interface::as_raw(this), destination.try_into_param()?.abi()).ok() } + 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() } } pub fn Emitter(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Emitter)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2576,18 +1974,18 @@ impl AudioFrameInputNode { #[doc = "Required features: `\"Foundation_Collections\"`, `\"Media_Effects\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Media_Effects"))] pub fn EffectDefinitions(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).EffectDefinitions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetOutgoingGain(&self, value: f64) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetOutgoingGain)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn OutgoingGain(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OutgoingGain)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2596,55 +1994,55 @@ impl AudioFrameInputNode { #[doc = "Required features: `\"Media_MediaProperties\"`"] #[cfg(feature = "Media_MediaProperties")] pub fn EncodingProperties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).EncodingProperties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ConsumeInput(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ConsumeInput)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetConsumeInput(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetConsumeInput)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Start(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Start)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Stop(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Stop)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Reset(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Reset)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Media_Effects\"`"] #[cfg(feature = "Media_Effects")] pub fn DisableEffectsByDefinition(&self, definition: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).DisableEffectsByDefinition)(::windows_core::Interface::as_raw(this), definition.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"Media_Effects\"`"] #[cfg(feature = "Media_Effects")] pub fn EnableEffectsByDefinition(&self, definition: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).EnableEffectsByDefinition)(::windows_core::Interface::as_raw(this), definition.try_into_param()?.abi()).ok() } + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } } @@ -2653,23 +2051,18 @@ impl ::windows_core::RuntimeType for AudioFrameInputNode { } unsafe impl ::windows_core::Interface for AudioFrameInputNode { type Vtable = IAudioFrameInputNode_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AudioFrameInputNode { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AudioFrameInputNode { const NAME: &'static str = "Windows.Media.Audio.AudioFrameInputNode"; } -::windows_core::imp::interface_hierarchy!(AudioFrameInputNode, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for AudioFrameInputNode {} -impl ::windows_core::CanTryInto for AudioFrameInputNode {} -impl ::windows_core::CanTryInto for AudioFrameInputNode {} -impl ::windows_core::CanTryInto for AudioFrameInputNode {} unsafe impl ::core::marker::Send for AudioFrameInputNode {} unsafe impl ::core::marker::Sync for AudioFrameInputNode {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AudioFrameOutputNode(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AudioFrameOutputNode, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(AudioFrameOutputNode, IAudioNode, super::super::Foundation::IClosable); impl AudioFrameOutputNode { pub fn GetFrame(&self) -> ::windows_core::Result { let this = self; @@ -2681,18 +2074,18 @@ impl AudioFrameOutputNode { #[doc = "Required features: `\"Foundation_Collections\"`, `\"Media_Effects\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Media_Effects"))] pub fn EffectDefinitions(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).EffectDefinitions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetOutgoingGain(&self, value: f64) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetOutgoingGain)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn OutgoingGain(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OutgoingGain)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2701,55 +2094,55 @@ impl AudioFrameOutputNode { #[doc = "Required features: `\"Media_MediaProperties\"`"] #[cfg(feature = "Media_MediaProperties")] pub fn EncodingProperties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).EncodingProperties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ConsumeInput(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ConsumeInput)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetConsumeInput(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetConsumeInput)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Start(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Start)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Stop(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Stop)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Reset(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Reset)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Media_Effects\"`"] #[cfg(feature = "Media_Effects")] pub fn DisableEffectsByDefinition(&self, definition: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).DisableEffectsByDefinition)(::windows_core::Interface::as_raw(this), definition.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"Media_Effects\"`"] #[cfg(feature = "Media_Effects")] pub fn EnableEffectsByDefinition(&self, definition: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).EnableEffectsByDefinition)(::windows_core::Interface::as_raw(this), definition.try_into_param()?.abi()).ok() } + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } } @@ -2758,21 +2151,18 @@ impl ::windows_core::RuntimeType for AudioFrameOutputNode { } unsafe impl ::windows_core::Interface for AudioFrameOutputNode { type Vtable = IAudioFrameOutputNode_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AudioFrameOutputNode { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AudioFrameOutputNode { const NAME: &'static str = "Windows.Media.Audio.AudioFrameOutputNode"; } -::windows_core::imp::interface_hierarchy!(AudioFrameOutputNode, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for AudioFrameOutputNode {} -impl ::windows_core::CanTryInto for AudioFrameOutputNode {} unsafe impl ::core::marker::Send for AudioFrameOutputNode {} unsafe impl ::core::marker::Sync for AudioFrameOutputNode {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AudioGraph(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AudioGraph, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(AudioGraph, super::super::Foundation::IClosable); impl AudioGraph { pub fn CreateFrameInputNode(&self) -> ::windows_core::Result { let this = self; @@ -2857,37 +2247,37 @@ impl AudioGraph { #[cfg(feature = "Storage")] pub fn CreateFileInputNodeAsync(&self, file: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateFileInputNodeAsync)(::windows_core::Interface::as_raw(this), file.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateFileInputNodeAsync)(::windows_core::Interface::as_raw(this), file.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Storage\"`"] #[cfg(feature = "Storage")] pub fn CreateFileOutputNodeAsync(&self, file: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateFileOutputNodeAsync)(::windows_core::Interface::as_raw(this), file.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateFileOutputNodeAsync)(::windows_core::Interface::as_raw(this), file.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Media_MediaProperties\"`, `\"Storage\"`"] #[cfg(all(feature = "Media_MediaProperties", feature = "Storage"))] pub fn CreateFileOutputNodeWithFileProfileAsync(&self, file: P0, fileencodingprofile: P1) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateFileOutputNodeWithFileProfileAsync)(::windows_core::Interface::as_raw(this), file.try_into_param()?.abi(), fileencodingprofile.into_param().abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateFileOutputNodeWithFileProfileAsync)(::windows_core::Interface::as_raw(this), file.into_param().abi(), fileencodingprofile.into_param().abi(), &mut result__).from_abi(result__) } } pub fn CreateSubmixNode(&self) -> ::windows_core::Result { @@ -3016,7 +2406,7 @@ impl AudioGraph { P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -3030,7 +2420,7 @@ impl AudioGraph { P1: ::windows_core::IntoParam, P2: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -3040,13 +2430,13 @@ impl AudioGraph { #[cfg(feature = "Storage")] pub fn CreateFileInputNodeWithEmitterAsync(&self, file: P0, emitter: P1) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), emitter.into_param().abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateFileInputNodeWithEmitterAsync)(::windows_core::Interface::as_raw(this), file.into_param().abi(), emitter.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Media_MediaProperties\"`"] @@ -3056,14 +2446,14 @@ impl AudioGraph { P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn CreateBatchUpdater(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateBatchUpdater)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3075,7 +2465,7 @@ impl AudioGraph { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -3088,7 +2478,7 @@ impl AudioGraph { P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -3104,7 +2494,7 @@ impl AudioGraph { }) } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } #[doc(hidden)] @@ -3118,20 +2508,18 @@ impl ::windows_core::RuntimeType for AudioGraph { } unsafe impl ::windows_core::Interface for AudioGraph { type Vtable = IAudioGraph_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AudioGraph { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AudioGraph { const NAME: &'static str = "Windows.Media.Audio.AudioGraph"; } -::windows_core::imp::interface_hierarchy!(AudioGraph, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for AudioGraph {} unsafe impl ::core::marker::Send for AudioGraph {} unsafe impl ::core::marker::Sync for AudioGraph {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AudioGraphBatchUpdater(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AudioGraphBatchUpdater, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(AudioGraphBatchUpdater, super::super::Foundation::IClosable); impl AudioGraphBatchUpdater { pub fn Close(&self) -> ::windows_core::Result<()> { let this = self; @@ -3143,20 +2531,17 @@ impl ::windows_core::RuntimeType for AudioGraphBatchUpdater { } unsafe impl ::windows_core::Interface for AudioGraphBatchUpdater { type Vtable = super::super::Foundation::IClosable_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AudioGraphBatchUpdater { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AudioGraphBatchUpdater { const NAME: &'static str = "Windows.Media.Audio.AudioGraphBatchUpdater"; } -::windows_core::imp::interface_hierarchy!(AudioGraphBatchUpdater, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for AudioGraphBatchUpdater {} unsafe impl ::core::marker::Send for AudioGraphBatchUpdater {} unsafe impl ::core::marker::Sync for AudioGraphBatchUpdater {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AudioGraphConnection(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AudioGraphConnection, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AudioGraphConnection { pub fn Destination(&self) -> ::windows_core::Result { let this = self; @@ -3182,19 +2567,17 @@ impl ::windows_core::RuntimeType for AudioGraphConnection { } unsafe impl ::windows_core::Interface for AudioGraphConnection { type Vtable = IAudioGraphConnection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AudioGraphConnection { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AudioGraphConnection { const NAME: &'static str = "Windows.Media.Audio.AudioGraphConnection"; } -::windows_core::imp::interface_hierarchy!(AudioGraphConnection, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AudioGraphConnection {} unsafe impl ::core::marker::Sync for AudioGraphConnection {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AudioGraphSettings(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AudioGraphSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AudioGraphSettings { #[doc = "Required features: `\"Media_MediaProperties\"`"] #[cfg(feature = "Media_MediaProperties")] @@ -3281,11 +2664,11 @@ impl AudioGraphSettings { unsafe { (::windows_core::Interface::vtable(this).SetDesiredRenderDeviceAudioProcessing)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn SetMaxPlaybackSpeedFactor(&self, value: f64) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMaxPlaybackSpeedFactor)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn MaxPlaybackSpeedFactor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MaxPlaybackSpeedFactor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3310,19 +2693,17 @@ impl ::windows_core::RuntimeType for AudioGraphSettings { } unsafe impl ::windows_core::Interface for AudioGraphSettings { type Vtable = IAudioGraphSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AudioGraphSettings { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AudioGraphSettings { const NAME: &'static str = "Windows.Media.Audio.AudioGraphSettings"; } -::windows_core::imp::interface_hierarchy!(AudioGraphSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AudioGraphSettings {} unsafe impl ::core::marker::Sync for AudioGraphSettings {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AudioGraphUnrecoverableErrorOccurredEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AudioGraphUnrecoverableErrorOccurredEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AudioGraphUnrecoverableErrorOccurredEventArgs { pub fn Error(&self) -> ::windows_core::Result { let this = self; @@ -3337,19 +2718,17 @@ impl ::windows_core::RuntimeType for AudioGraphUnrecoverableErrorOccurredEventAr } unsafe impl ::windows_core::Interface for AudioGraphUnrecoverableErrorOccurredEventArgs { type Vtable = IAudioGraphUnrecoverableErrorOccurredEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AudioGraphUnrecoverableErrorOccurredEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AudioGraphUnrecoverableErrorOccurredEventArgs { const NAME: &'static str = "Windows.Media.Audio.AudioGraphUnrecoverableErrorOccurredEventArgs"; } -::windows_core::imp::interface_hierarchy!(AudioGraphUnrecoverableErrorOccurredEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AudioGraphUnrecoverableErrorOccurredEventArgs {} unsafe impl ::core::marker::Sync for AudioGraphUnrecoverableErrorOccurredEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AudioNodeEmitter(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AudioNodeEmitter, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AudioNodeEmitter { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -3458,14 +2837,14 @@ impl AudioNodeEmitter { } } pub fn SpatialAudioModel(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SpatialAudioModel)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetSpatialAudioModel(&self, value: SpatialAudioModel) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetSpatialAudioModel)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn CreateAudioNodeEmitter(shape: P0, decaymodel: P1, settings: AudioNodeEmitterSettings) -> ::windows_core::Result @@ -3489,19 +2868,17 @@ impl ::windows_core::RuntimeType for AudioNodeEmitter { } unsafe impl ::windows_core::Interface for AudioNodeEmitter { type Vtable = IAudioNodeEmitter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AudioNodeEmitter { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AudioNodeEmitter { const NAME: &'static str = "Windows.Media.Audio.AudioNodeEmitter"; } -::windows_core::imp::interface_hierarchy!(AudioNodeEmitter, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AudioNodeEmitter {} unsafe impl ::core::marker::Sync for AudioNodeEmitter {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AudioNodeEmitterConeProperties(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AudioNodeEmitterConeProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AudioNodeEmitterConeProperties { pub fn InnerAngle(&self) -> ::windows_core::Result { let this = self; @@ -3530,19 +2907,17 @@ impl ::windows_core::RuntimeType for AudioNodeEmitterConeProperties { } unsafe impl ::windows_core::Interface for AudioNodeEmitterConeProperties { type Vtable = IAudioNodeEmitterConeProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AudioNodeEmitterConeProperties { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AudioNodeEmitterConeProperties { const NAME: &'static str = "Windows.Media.Audio.AudioNodeEmitterConeProperties"; } -::windows_core::imp::interface_hierarchy!(AudioNodeEmitterConeProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AudioNodeEmitterConeProperties {} unsafe impl ::core::marker::Sync for AudioNodeEmitterConeProperties {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AudioNodeEmitterDecayModel(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AudioNodeEmitterDecayModel, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AudioNodeEmitterDecayModel { pub fn Kind(&self) -> ::windows_core::Result { let this = self; @@ -3595,19 +2970,17 @@ impl ::windows_core::RuntimeType for AudioNodeEmitterDecayModel { } unsafe impl ::windows_core::Interface for AudioNodeEmitterDecayModel { type Vtable = IAudioNodeEmitterDecayModel_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AudioNodeEmitterDecayModel { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AudioNodeEmitterDecayModel { const NAME: &'static str = "Windows.Media.Audio.AudioNodeEmitterDecayModel"; } -::windows_core::imp::interface_hierarchy!(AudioNodeEmitterDecayModel, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AudioNodeEmitterDecayModel {} unsafe impl ::core::marker::Sync for AudioNodeEmitterDecayModel {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AudioNodeEmitterNaturalDecayModelProperties(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AudioNodeEmitterNaturalDecayModelProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AudioNodeEmitterNaturalDecayModelProperties { pub fn UnityGainDistance(&self) -> ::windows_core::Result { let this = self; @@ -3629,19 +3002,17 @@ impl ::windows_core::RuntimeType for AudioNodeEmitterNaturalDecayModelProperties } unsafe impl ::windows_core::Interface for AudioNodeEmitterNaturalDecayModelProperties { type Vtable = IAudioNodeEmitterNaturalDecayModelProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AudioNodeEmitterNaturalDecayModelProperties { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AudioNodeEmitterNaturalDecayModelProperties { const NAME: &'static str = "Windows.Media.Audio.AudioNodeEmitterNaturalDecayModelProperties"; } -::windows_core::imp::interface_hierarchy!(AudioNodeEmitterNaturalDecayModelProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AudioNodeEmitterNaturalDecayModelProperties {} unsafe impl ::core::marker::Sync for AudioNodeEmitterNaturalDecayModelProperties {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AudioNodeEmitterShape(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AudioNodeEmitterShape, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AudioNodeEmitterShape { pub fn Kind(&self) -> ::windows_core::Result { let this = self; @@ -3680,19 +3051,17 @@ impl ::windows_core::RuntimeType for AudioNodeEmitterShape { } unsafe impl ::windows_core::Interface for AudioNodeEmitterShape { type Vtable = IAudioNodeEmitterShape_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AudioNodeEmitterShape { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AudioNodeEmitterShape { const NAME: &'static str = "Windows.Media.Audio.AudioNodeEmitterShape"; } -::windows_core::imp::interface_hierarchy!(AudioNodeEmitterShape, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AudioNodeEmitterShape {} unsafe impl ::core::marker::Sync for AudioNodeEmitterShape {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AudioNodeListener(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AudioNodeListener, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AudioNodeListener { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -3763,19 +3132,18 @@ impl ::windows_core::RuntimeType for AudioNodeListener { } unsafe impl ::windows_core::Interface for AudioNodeListener { type Vtable = IAudioNodeListener_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AudioNodeListener { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AudioNodeListener { const NAME: &'static str = "Windows.Media.Audio.AudioNodeListener"; } -::windows_core::imp::interface_hierarchy!(AudioNodeListener, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AudioNodeListener {} unsafe impl ::core::marker::Sync for AudioNodeListener {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AudioPlaybackConnection(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AudioPlaybackConnection, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(AudioPlaybackConnection, super::super::Foundation::IClosable); impl AudioPlaybackConnection { pub fn Start(&self) -> ::windows_core::Result<()> { let this = self; @@ -3843,7 +3211,7 @@ impl AudioPlaybackConnection { }) } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } #[doc(hidden)] @@ -3857,20 +3225,17 @@ impl ::windows_core::RuntimeType for AudioPlaybackConnection { } unsafe impl ::windows_core::Interface for AudioPlaybackConnection { type Vtable = IAudioPlaybackConnection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AudioPlaybackConnection { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AudioPlaybackConnection { const NAME: &'static str = "Windows.Media.Audio.AudioPlaybackConnection"; } -::windows_core::imp::interface_hierarchy!(AudioPlaybackConnection, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for AudioPlaybackConnection {} unsafe impl ::core::marker::Send for AudioPlaybackConnection {} unsafe impl ::core::marker::Sync for AudioPlaybackConnection {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AudioPlaybackConnectionOpenResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AudioPlaybackConnectionOpenResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AudioPlaybackConnectionOpenResult { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -3892,19 +3257,17 @@ impl ::windows_core::RuntimeType for AudioPlaybackConnectionOpenResult { } unsafe impl ::windows_core::Interface for AudioPlaybackConnectionOpenResult { type Vtable = IAudioPlaybackConnectionOpenResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AudioPlaybackConnectionOpenResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AudioPlaybackConnectionOpenResult { const NAME: &'static str = "Windows.Media.Audio.AudioPlaybackConnectionOpenResult"; } -::windows_core::imp::interface_hierarchy!(AudioPlaybackConnectionOpenResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AudioPlaybackConnectionOpenResult {} unsafe impl ::core::marker::Sync for AudioPlaybackConnectionOpenResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AudioStateMonitor(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AudioStateMonitor, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AudioStateMonitor { pub fn SoundLevelChanged(&self, handler: P0) -> ::windows_core::Result where @@ -3998,19 +3361,18 @@ impl ::windows_core::RuntimeType for AudioStateMonitor { } unsafe impl ::windows_core::Interface for AudioStateMonitor { type Vtable = IAudioStateMonitor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AudioStateMonitor { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AudioStateMonitor { const NAME: &'static str = "Windows.Media.Audio.AudioStateMonitor"; } -::windows_core::imp::interface_hierarchy!(AudioStateMonitor, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AudioStateMonitor {} unsafe impl ::core::marker::Sync for AudioStateMonitor {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AudioSubmixNode(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AudioSubmixNode, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(AudioSubmixNode, IAudioInputNode, IAudioInputNode2, IAudioNode, super::super::Foundation::IClosable); impl AudioSubmixNode { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -4023,27 +3385,27 @@ impl AudioSubmixNode { } pub fn AddOutgoingConnection(&self, destination: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).AddOutgoingConnection)(::windows_core::Interface::as_raw(this), destination.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).AddOutgoingConnection)(::windows_core::Interface::as_raw(this), destination.into_param().abi()).ok() } } pub fn AddOutgoingConnectionWithGain(&self, destination: P0, gain: f64) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).AddOutgoingConnectionWithGain)(::windows_core::Interface::as_raw(this), destination.try_into_param()?.abi(), gain).ok() } + unsafe { (::windows_core::Interface::vtable(this).AddOutgoingConnectionWithGain)(::windows_core::Interface::as_raw(this), destination.into_param().abi(), gain).ok() } } pub fn RemoveOutgoingConnection(&self, destination: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).RemoveOutgoingConnection)(::windows_core::Interface::as_raw(this), destination.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).RemoveOutgoingConnection)(::windows_core::Interface::as_raw(this), destination.into_param().abi()).ok() } } pub fn Emitter(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Emitter)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4052,18 +3414,18 @@ impl AudioSubmixNode { #[doc = "Required features: `\"Foundation_Collections\"`, `\"Media_Effects\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Media_Effects"))] pub fn EffectDefinitions(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).EffectDefinitions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetOutgoingGain(&self, value: f64) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetOutgoingGain)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn OutgoingGain(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OutgoingGain)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4072,55 +3434,55 @@ impl AudioSubmixNode { #[doc = "Required features: `\"Media_MediaProperties\"`"] #[cfg(feature = "Media_MediaProperties")] pub fn EncodingProperties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).EncodingProperties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ConsumeInput(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ConsumeInput)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetConsumeInput(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetConsumeInput)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Start(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Start)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Stop(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Stop)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Reset(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Reset)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Media_Effects\"`"] #[cfg(feature = "Media_Effects")] pub fn DisableEffectsByDefinition(&self, definition: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).DisableEffectsByDefinition)(::windows_core::Interface::as_raw(this), definition.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"Media_Effects\"`"] #[cfg(feature = "Media_Effects")] pub fn EnableEffectsByDefinition(&self, definition: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).EnableEffectsByDefinition)(::windows_core::Interface::as_raw(this), definition.try_into_param()?.abi()).ok() } + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } } @@ -4129,23 +3491,17 @@ impl ::windows_core::RuntimeType for AudioSubmixNode { } unsafe impl ::windows_core::Interface for AudioSubmixNode { type Vtable = IAudioInputNode_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AudioSubmixNode { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AudioSubmixNode { const NAME: &'static str = "Windows.Media.Audio.AudioSubmixNode"; } -::windows_core::imp::interface_hierarchy!(AudioSubmixNode, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for AudioSubmixNode {} -impl ::windows_core::CanTryInto for AudioSubmixNode {} -impl ::windows_core::CanTryInto for AudioSubmixNode {} -impl ::windows_core::CanTryInto for AudioSubmixNode {} unsafe impl ::core::marker::Send for AudioSubmixNode {} unsafe impl ::core::marker::Sync for AudioSubmixNode {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CreateAudioDeviceInputNodeResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CreateAudioDeviceInputNodeResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CreateAudioDeviceInputNodeResult { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -4162,7 +3518,7 @@ impl CreateAudioDeviceInputNodeResult { } } pub fn ExtendedError(&self) -> ::windows_core::Result<::windows_core::HRESULT> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ExtendedError)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4174,19 +3530,17 @@ impl ::windows_core::RuntimeType for CreateAudioDeviceInputNodeResult { } unsafe impl ::windows_core::Interface for CreateAudioDeviceInputNodeResult { type Vtable = ICreateAudioDeviceInputNodeResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CreateAudioDeviceInputNodeResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CreateAudioDeviceInputNodeResult { const NAME: &'static str = "Windows.Media.Audio.CreateAudioDeviceInputNodeResult"; } -::windows_core::imp::interface_hierarchy!(CreateAudioDeviceInputNodeResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CreateAudioDeviceInputNodeResult {} unsafe impl ::core::marker::Sync for CreateAudioDeviceInputNodeResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CreateAudioDeviceOutputNodeResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CreateAudioDeviceOutputNodeResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CreateAudioDeviceOutputNodeResult { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -4203,7 +3557,7 @@ impl CreateAudioDeviceOutputNodeResult { } } pub fn ExtendedError(&self) -> ::windows_core::Result<::windows_core::HRESULT> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ExtendedError)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4215,19 +3569,17 @@ impl ::windows_core::RuntimeType for CreateAudioDeviceOutputNodeResult { } unsafe impl ::windows_core::Interface for CreateAudioDeviceOutputNodeResult { type Vtable = ICreateAudioDeviceOutputNodeResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CreateAudioDeviceOutputNodeResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CreateAudioDeviceOutputNodeResult { const NAME: &'static str = "Windows.Media.Audio.CreateAudioDeviceOutputNodeResult"; } -::windows_core::imp::interface_hierarchy!(CreateAudioDeviceOutputNodeResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CreateAudioDeviceOutputNodeResult {} unsafe impl ::core::marker::Sync for CreateAudioDeviceOutputNodeResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CreateAudioFileInputNodeResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CreateAudioFileInputNodeResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CreateAudioFileInputNodeResult { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -4244,7 +3596,7 @@ impl CreateAudioFileInputNodeResult { } } pub fn ExtendedError(&self) -> ::windows_core::Result<::windows_core::HRESULT> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ExtendedError)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4256,19 +3608,17 @@ impl ::windows_core::RuntimeType for CreateAudioFileInputNodeResult { } unsafe impl ::windows_core::Interface for CreateAudioFileInputNodeResult { type Vtable = ICreateAudioFileInputNodeResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CreateAudioFileInputNodeResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CreateAudioFileInputNodeResult { const NAME: &'static str = "Windows.Media.Audio.CreateAudioFileInputNodeResult"; } -::windows_core::imp::interface_hierarchy!(CreateAudioFileInputNodeResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CreateAudioFileInputNodeResult {} unsafe impl ::core::marker::Sync for CreateAudioFileInputNodeResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CreateAudioFileOutputNodeResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CreateAudioFileOutputNodeResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CreateAudioFileOutputNodeResult { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -4285,7 +3635,7 @@ impl CreateAudioFileOutputNodeResult { } } pub fn ExtendedError(&self) -> ::windows_core::Result<::windows_core::HRESULT> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ExtendedError)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4297,19 +3647,17 @@ impl ::windows_core::RuntimeType for CreateAudioFileOutputNodeResult { } unsafe impl ::windows_core::Interface for CreateAudioFileOutputNodeResult { type Vtable = ICreateAudioFileOutputNodeResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CreateAudioFileOutputNodeResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CreateAudioFileOutputNodeResult { const NAME: &'static str = "Windows.Media.Audio.CreateAudioFileOutputNodeResult"; } -::windows_core::imp::interface_hierarchy!(CreateAudioFileOutputNodeResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CreateAudioFileOutputNodeResult {} unsafe impl ::core::marker::Sync for CreateAudioFileOutputNodeResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CreateAudioGraphResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CreateAudioGraphResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CreateAudioGraphResult { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -4326,7 +3674,7 @@ impl CreateAudioGraphResult { } } pub fn ExtendedError(&self) -> ::windows_core::Result<::windows_core::HRESULT> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ExtendedError)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4338,19 +3686,17 @@ impl ::windows_core::RuntimeType for CreateAudioGraphResult { } unsafe impl ::windows_core::Interface for CreateAudioGraphResult { type Vtable = ICreateAudioGraphResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CreateAudioGraphResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CreateAudioGraphResult { const NAME: &'static str = "Windows.Media.Audio.CreateAudioGraphResult"; } -::windows_core::imp::interface_hierarchy!(CreateAudioGraphResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CreateAudioGraphResult {} unsafe impl ::core::marker::Sync for CreateAudioGraphResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CreateMediaSourceAudioInputNodeResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CreateMediaSourceAudioInputNodeResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CreateMediaSourceAudioInputNodeResult { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -4367,7 +3713,7 @@ impl CreateMediaSourceAudioInputNodeResult { } } pub fn ExtendedError(&self) -> ::windows_core::Result<::windows_core::HRESULT> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ExtendedError)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4379,24 +3725,24 @@ impl ::windows_core::RuntimeType for CreateMediaSourceAudioInputNodeResult { } unsafe impl ::windows_core::Interface for CreateMediaSourceAudioInputNodeResult { type Vtable = ICreateMediaSourceAudioInputNodeResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CreateMediaSourceAudioInputNodeResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CreateMediaSourceAudioInputNodeResult { const NAME: &'static str = "Windows.Media.Audio.CreateMediaSourceAudioInputNodeResult"; } -::windows_core::imp::interface_hierarchy!(CreateMediaSourceAudioInputNodeResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CreateMediaSourceAudioInputNodeResult {} unsafe impl ::core::marker::Sync for CreateMediaSourceAudioInputNodeResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EchoEffectDefinition(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EchoEffectDefinition, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Media_Effects")] +::windows_core::imp::required_hierarchy!(EchoEffectDefinition, super::Effects::IAudioEffectDefinition); impl EchoEffectDefinition { #[doc = "Required features: `\"Media_Effects\"`"] #[cfg(feature = "Media_Effects")] pub fn ActivatableClassId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ActivatableClassId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4405,7 +3751,7 @@ impl EchoEffectDefinition { #[doc = "Required features: `\"Foundation_Collections\"`, `\"Media_Effects\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Media_Effects"))] pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4464,21 +3810,17 @@ impl ::windows_core::RuntimeType for EchoEffectDefinition { } unsafe impl ::windows_core::Interface for EchoEffectDefinition { type Vtable = IEchoEffectDefinition_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EchoEffectDefinition { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EchoEffectDefinition { const NAME: &'static str = "Windows.Media.Audio.EchoEffectDefinition"; } -::windows_core::imp::interface_hierarchy!(EchoEffectDefinition, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Media_Effects")] -impl ::windows_core::CanTryInto for EchoEffectDefinition {} unsafe impl ::core::marker::Send for EchoEffectDefinition {} unsafe impl ::core::marker::Sync for EchoEffectDefinition {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EqualizerBand(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EqualizerBand, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EqualizerBand { pub fn Bandwidth(&self) -> ::windows_core::Result { let this = self; @@ -4519,24 +3861,24 @@ impl ::windows_core::RuntimeType for EqualizerBand { } unsafe impl ::windows_core::Interface for EqualizerBand { type Vtable = IEqualizerBand_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EqualizerBand { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EqualizerBand { const NAME: &'static str = "Windows.Media.Audio.EqualizerBand"; } -::windows_core::imp::interface_hierarchy!(EqualizerBand, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EqualizerBand {} unsafe impl ::core::marker::Sync for EqualizerBand {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EqualizerEffectDefinition(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EqualizerEffectDefinition, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Media_Effects")] +::windows_core::imp::required_hierarchy!(EqualizerEffectDefinition, super::Effects::IAudioEffectDefinition); impl EqualizerEffectDefinition { #[doc = "Required features: `\"Media_Effects\"`"] #[cfg(feature = "Media_Effects")] pub fn ActivatableClassId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ActivatableClassId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4545,7 +3887,7 @@ impl EqualizerEffectDefinition { #[doc = "Required features: `\"Foundation_Collections\"`, `\"Media_Effects\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Media_Effects"))] pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4580,21 +3922,17 @@ impl ::windows_core::RuntimeType for EqualizerEffectDefinition { } unsafe impl ::windows_core::Interface for EqualizerEffectDefinition { type Vtable = IEqualizerEffectDefinition_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EqualizerEffectDefinition { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EqualizerEffectDefinition { const NAME: &'static str = "Windows.Media.Audio.EqualizerEffectDefinition"; } -::windows_core::imp::interface_hierarchy!(EqualizerEffectDefinition, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Media_Effects")] -impl ::windows_core::CanTryInto for EqualizerEffectDefinition {} unsafe impl ::core::marker::Send for EqualizerEffectDefinition {} unsafe impl ::core::marker::Sync for EqualizerEffectDefinition {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct FrameInputNodeQuantumStartedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(FrameInputNodeQuantumStartedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl FrameInputNodeQuantumStartedEventArgs { pub fn RequiredSamples(&self) -> ::windows_core::Result { let this = self; @@ -4609,24 +3947,24 @@ impl ::windows_core::RuntimeType for FrameInputNodeQuantumStartedEventArgs { } unsafe impl ::windows_core::Interface for FrameInputNodeQuantumStartedEventArgs { type Vtable = IFrameInputNodeQuantumStartedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for FrameInputNodeQuantumStartedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for FrameInputNodeQuantumStartedEventArgs { const NAME: &'static str = "Windows.Media.Audio.FrameInputNodeQuantumStartedEventArgs"; } -::windows_core::imp::interface_hierarchy!(FrameInputNodeQuantumStartedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for FrameInputNodeQuantumStartedEventArgs {} unsafe impl ::core::marker::Sync for FrameInputNodeQuantumStartedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LimiterEffectDefinition(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LimiterEffectDefinition, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Media_Effects")] +::windows_core::imp::required_hierarchy!(LimiterEffectDefinition, super::Effects::IAudioEffectDefinition); impl LimiterEffectDefinition { #[doc = "Required features: `\"Media_Effects\"`"] #[cfg(feature = "Media_Effects")] pub fn ActivatableClassId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ActivatableClassId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4635,7 +3973,7 @@ impl LimiterEffectDefinition { #[doc = "Required features: `\"Foundation_Collections\"`, `\"Media_Effects\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Media_Effects"))] pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4683,26 +4021,23 @@ impl ::windows_core::RuntimeType for LimiterEffectDefinition { } unsafe impl ::windows_core::Interface for LimiterEffectDefinition { type Vtable = ILimiterEffectDefinition_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LimiterEffectDefinition { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LimiterEffectDefinition { const NAME: &'static str = "Windows.Media.Audio.LimiterEffectDefinition"; } -::windows_core::imp::interface_hierarchy!(LimiterEffectDefinition, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Media_Effects")] -impl ::windows_core::CanTryInto for LimiterEffectDefinition {} unsafe impl ::core::marker::Send for LimiterEffectDefinition {} unsafe impl ::core::marker::Sync for LimiterEffectDefinition {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaSourceAudioInputNode(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaSourceAudioInputNode, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(MediaSourceAudioInputNode, IAudioInputNode, IAudioInputNode2, IAudioNode, super::super::Foundation::IClosable); impl MediaSourceAudioInputNode { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn OutgoingConnections(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OutgoingConnections)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4710,27 +4045,27 @@ impl MediaSourceAudioInputNode { } pub fn AddOutgoingConnection(&self, destination: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).AddOutgoingConnection)(::windows_core::Interface::as_raw(this), destination.try_into_param()?.abi()).ok() } + 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() } } pub fn AddOutgoingConnectionWithGain(&self, destination: P0, gain: f64) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).AddOutgoingConnectionWithGain)(::windows_core::Interface::as_raw(this), destination.try_into_param()?.abi(), gain).ok() } + 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() } } pub fn RemoveOutgoingConnection(&self, destination: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).RemoveOutgoingConnection)(::windows_core::Interface::as_raw(this), destination.try_into_param()?.abi()).ok() } + 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() } } pub fn Emitter(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Emitter)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4739,18 +4074,18 @@ impl MediaSourceAudioInputNode { #[doc = "Required features: `\"Foundation_Collections\"`, `\"Media_Effects\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Media_Effects"))] pub fn EffectDefinitions(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).EffectDefinitions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetOutgoingGain(&self, value: f64) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetOutgoingGain)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn OutgoingGain(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OutgoingGain)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4759,55 +4094,55 @@ impl MediaSourceAudioInputNode { #[doc = "Required features: `\"Media_MediaProperties\"`"] #[cfg(feature = "Media_MediaProperties")] pub fn EncodingProperties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).EncodingProperties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ConsumeInput(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ConsumeInput)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetConsumeInput(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetConsumeInput)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Start(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Start)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Stop(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Stop)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Reset(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Reset)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Media_Effects\"`"] #[cfg(feature = "Media_Effects")] pub fn DisableEffectsByDefinition(&self, definition: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).DisableEffectsByDefinition)(::windows_core::Interface::as_raw(this), definition.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"Media_Effects\"`"] #[cfg(feature = "Media_Effects")] pub fn EnableEffectsByDefinition(&self, definition: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).EnableEffectsByDefinition)(::windows_core::Interface::as_raw(this), definition.try_into_param()?.abi()).ok() } + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn SetPlaybackSpeedFactor(&self, value: f64) -> ::windows_core::Result<()> { @@ -4841,10 +4176,10 @@ impl MediaSourceAudioInputNode { } pub fn SetStartTime(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetStartTime)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetStartTime)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn EndTime(&self) -> ::windows_core::Result> { let this = self; @@ -4855,10 +4190,10 @@ impl MediaSourceAudioInputNode { } pub fn SetEndTime(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetEndTime)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetEndTime)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn LoopCount(&self) -> ::windows_core::Result> { let this = self; @@ -4869,10 +4204,10 @@ impl MediaSourceAudioInputNode { } pub fn SetLoopCount(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetLoopCount)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetLoopCount)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn Duration(&self) -> ::windows_core::Result { let this = self; @@ -4910,28 +4245,24 @@ impl ::windows_core::RuntimeType for MediaSourceAudioInputNode { } unsafe impl ::windows_core::Interface for MediaSourceAudioInputNode { type Vtable = IMediaSourceAudioInputNode_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaSourceAudioInputNode { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaSourceAudioInputNode { const NAME: &'static str = "Windows.Media.Audio.MediaSourceAudioInputNode"; } -::windows_core::imp::interface_hierarchy!(MediaSourceAudioInputNode, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for MediaSourceAudioInputNode {} -impl ::windows_core::CanTryInto for MediaSourceAudioInputNode {} -impl ::windows_core::CanTryInto for MediaSourceAudioInputNode {} -impl ::windows_core::CanTryInto for MediaSourceAudioInputNode {} unsafe impl ::core::marker::Send for MediaSourceAudioInputNode {} unsafe impl ::core::marker::Sync for MediaSourceAudioInputNode {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ReverbEffectDefinition(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ReverbEffectDefinition, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Media_Effects")] +::windows_core::imp::required_hierarchy!(ReverbEffectDefinition, super::Effects::IAudioEffectDefinition); impl ReverbEffectDefinition { #[doc = "Required features: `\"Media_Effects\"`"] #[cfg(feature = "Media_Effects")] pub fn ActivatableClassId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ActivatableClassId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4940,7 +4271,7 @@ impl ReverbEffectDefinition { #[doc = "Required features: `\"Foundation_Collections\"`, `\"Media_Effects\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Media_Effects"))] pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5219,21 +4550,17 @@ impl ::windows_core::RuntimeType for ReverbEffectDefinition { } unsafe impl ::windows_core::Interface for ReverbEffectDefinition { type Vtable = IReverbEffectDefinition_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ReverbEffectDefinition { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ReverbEffectDefinition { const NAME: &'static str = "Windows.Media.Audio.ReverbEffectDefinition"; } -::windows_core::imp::interface_hierarchy!(ReverbEffectDefinition, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Media_Effects")] -impl ::windows_core::CanTryInto for ReverbEffectDefinition {} unsafe impl ::core::marker::Send for ReverbEffectDefinition {} unsafe impl ::core::marker::Sync for ReverbEffectDefinition {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SetDefaultSpatialAudioFormatResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SetDefaultSpatialAudioFormatResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SetDefaultSpatialAudioFormatResult { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -5248,19 +4575,17 @@ impl ::windows_core::RuntimeType for SetDefaultSpatialAudioFormatResult { } unsafe impl ::windows_core::Interface for SetDefaultSpatialAudioFormatResult { type Vtable = ISetDefaultSpatialAudioFormatResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SetDefaultSpatialAudioFormatResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SetDefaultSpatialAudioFormatResult { const NAME: &'static str = "Windows.Media.Audio.SetDefaultSpatialAudioFormatResult"; } -::windows_core::imp::interface_hierarchy!(SetDefaultSpatialAudioFormatResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SetDefaultSpatialAudioFormatResult {} unsafe impl ::core::marker::Sync for SetDefaultSpatialAudioFormatResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpatialAudioDeviceConfiguration(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpatialAudioDeviceConfiguration, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SpatialAudioDeviceConfiguration { pub fn DeviceId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -5335,19 +4660,17 @@ impl ::windows_core::RuntimeType for SpatialAudioDeviceConfiguration { } unsafe impl ::windows_core::Interface for SpatialAudioDeviceConfiguration { type Vtable = ISpatialAudioDeviceConfiguration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpatialAudioDeviceConfiguration { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpatialAudioDeviceConfiguration { const NAME: &'static str = "Windows.Media.Audio.SpatialAudioDeviceConfiguration"; } -::windows_core::imp::interface_hierarchy!(SpatialAudioDeviceConfiguration, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SpatialAudioDeviceConfiguration {} unsafe impl ::core::marker::Sync for SpatialAudioDeviceConfiguration {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpatialAudioFormatConfiguration(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpatialAudioFormatConfiguration, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SpatialAudioFormatConfiguration { pub fn ReportLicenseChangedAsync(&self, subtype: &::windows_core::HSTRING) -> ::windows_core::Result { let this = self; @@ -5391,14 +4714,11 @@ impl ::windows_core::RuntimeType for SpatialAudioFormatConfiguration { } unsafe impl ::windows_core::Interface for SpatialAudioFormatConfiguration { type Vtable = ISpatialAudioFormatConfiguration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpatialAudioFormatConfiguration { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpatialAudioFormatConfiguration { const NAME: &'static str = "Windows.Media.Audio.SpatialAudioFormatConfiguration"; } -::windows_core::imp::interface_hierarchy!(SpatialAudioFormatConfiguration, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SpatialAudioFormatConfiguration {} unsafe impl ::core::marker::Sync for SpatialAudioFormatConfiguration {} pub struct SpatialAudioFormatSubtype; 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 ac6b36ca10..cbdeeebe06 100644 --- a/crates/libs/windows/src/Windows/Media/Capture/Core/mod.rs +++ b/crates/libs/windows/src/Windows/Media/Capture/Core/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVariablePhotoCapturedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVariablePhotoCapturedEventArgs { - type Vtable = IVariablePhotoCapturedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVariablePhotoCapturedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd1eb4c5c_1b53_4e4a_8b5c_db7887ac949b); -} +::windows_core::imp::com_interface!(IVariablePhotoCapturedEventArgs, IVariablePhotoCapturedEventArgs_Vtbl, 0xd1eb4c5c_1b53_4e4a_8b5c_db7887ac949b); #[repr(C)] #[doc(hidden)] pub struct IVariablePhotoCapturedEventArgs_Vtbl { @@ -17,16 +8,7 @@ pub struct IVariablePhotoCapturedEventArgs_Vtbl { pub UsedFrameControllerIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CapturedFrameControlValues: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVariablePhotoSequenceCapture(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVariablePhotoSequenceCapture { - type Vtable = IVariablePhotoSequenceCapture_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVariablePhotoSequenceCapture { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd0112d1d_031e_4041_a6d6_bd742476a8ee); -} +::windows_core::imp::com_interface!(IVariablePhotoSequenceCapture, IVariablePhotoSequenceCapture_Vtbl, 0xd0112d1d_031e_4041_a6d6_bd742476a8ee); #[repr(C)] #[doc(hidden)] pub struct IVariablePhotoSequenceCapture_Vtbl { @@ -39,16 +21,7 @@ pub struct IVariablePhotoSequenceCapture_Vtbl { pub Stopped: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveStopped: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVariablePhotoSequenceCapture2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVariablePhotoSequenceCapture2 { - type Vtable = IVariablePhotoSequenceCapture2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVariablePhotoSequenceCapture2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfe2c62bc_50b0_43e3_917c_e3b92798942f); -} +::windows_core::imp::com_interface!(IVariablePhotoSequenceCapture2, IVariablePhotoSequenceCapture2_Vtbl, 0xfe2c62bc_50b0_43e3_917c_e3b92798942f); #[repr(C)] #[doc(hidden)] pub struct IVariablePhotoSequenceCapture2_Vtbl { @@ -58,6 +31,7 @@ pub struct IVariablePhotoSequenceCapture2_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VariablePhotoCapturedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VariablePhotoCapturedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl VariablePhotoCapturedEventArgs { pub fn Frame(&self) -> ::windows_core::Result { let this = self; @@ -93,19 +67,17 @@ impl ::windows_core::RuntimeType for VariablePhotoCapturedEventArgs { } unsafe impl ::windows_core::Interface for VariablePhotoCapturedEventArgs { type Vtable = IVariablePhotoCapturedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VariablePhotoCapturedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VariablePhotoCapturedEventArgs { const NAME: &'static str = "Windows.Media.Capture.Core.VariablePhotoCapturedEventArgs"; } -::windows_core::imp::interface_hierarchy!(VariablePhotoCapturedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for VariablePhotoCapturedEventArgs {} unsafe impl ::core::marker::Sync for VariablePhotoCapturedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VariablePhotoSequenceCapture(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VariablePhotoSequenceCapture, ::windows_core::IUnknown, ::windows_core::IInspectable); impl VariablePhotoSequenceCapture { pub fn StartAsync(&self) -> ::windows_core::Result { let this = self; @@ -157,7 +129,7 @@ impl VariablePhotoSequenceCapture { unsafe { (::windows_core::Interface::vtable(this).RemoveStopped)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn UpdateSettingsAsync(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).UpdateSettingsAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -169,11 +141,8 @@ impl ::windows_core::RuntimeType for VariablePhotoSequenceCapture { } unsafe impl ::windows_core::Interface for VariablePhotoSequenceCapture { type Vtable = IVariablePhotoSequenceCapture_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VariablePhotoSequenceCapture { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VariablePhotoSequenceCapture { const NAME: &'static str = "Windows.Media.Capture.Core.VariablePhotoSequenceCapture"; } -::windows_core::imp::interface_hierarchy!(VariablePhotoSequenceCapture, ::windows_core::IUnknown, ::windows_core::IInspectable); 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 369bdbd410..4b1d878e49 100644 --- a/crates/libs/windows/src/Windows/Media/Capture/Frames/mod.rs +++ b/crates/libs/windows/src/Windows/Media/Capture/Frames/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioMediaFrame(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioMediaFrame { - type Vtable = IAudioMediaFrame_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioMediaFrame { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa3a9feff_8021_441b_9a46_e7f0137b7981); -} +::windows_core::imp::com_interface!(IAudioMediaFrame, IAudioMediaFrame_Vtbl, 0xa3a9feff_8021_441b_9a46_e7f0137b7981); #[repr(C)] #[doc(hidden)] pub struct IAudioMediaFrame_Vtbl { @@ -19,16 +10,7 @@ pub struct IAudioMediaFrame_Vtbl { AudioEncodingProperties: usize, pub GetAudioFrame: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBufferMediaFrame(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBufferMediaFrame { - type Vtable = IBufferMediaFrame_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBufferMediaFrame { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb5b153c7_9b84_4062_b79c_a365b2596854); -} +::windows_core::imp::com_interface!(IBufferMediaFrame, IBufferMediaFrame_Vtbl, 0xb5b153c7_9b84_4062_b79c_a365b2596854); #[repr(C)] #[doc(hidden)] pub struct IBufferMediaFrame_Vtbl { @@ -39,16 +21,7 @@ pub struct IBufferMediaFrame_Vtbl { #[cfg(not(feature = "Storage_Streams"))] Buffer: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDepthMediaFrame(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDepthMediaFrame { - type Vtable = IDepthMediaFrame_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDepthMediaFrame { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x47135e4f_8549_45c0_925b_80d35efdb10a); -} +::windows_core::imp::com_interface!(IDepthMediaFrame, IDepthMediaFrame_Vtbl, 0x47135e4f_8549_45c0_925b_80d35efdb10a); #[repr(C)] #[doc(hidden)] pub struct IDepthMediaFrame_Vtbl { @@ -61,16 +34,7 @@ pub struct IDepthMediaFrame_Vtbl { #[cfg(not(all(feature = "Media_Devices_Core", feature = "Perception_Spatial")))] TryCreateCoordinateMapper: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDepthMediaFrame2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDepthMediaFrame2 { - type Vtable = IDepthMediaFrame2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDepthMediaFrame2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6cca473d_c4a4_4176_b0cd_33eae3b35aa3); -} +::windows_core::imp::com_interface!(IDepthMediaFrame2, IDepthMediaFrame2_Vtbl, 0x6cca473d_c4a4_4176_b0cd_33eae3b35aa3); #[repr(C)] #[doc(hidden)] pub struct IDepthMediaFrame2_Vtbl { @@ -78,16 +42,7 @@ pub struct IDepthMediaFrame2_Vtbl { pub MaxReliableDepth: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, pub MinReliableDepth: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDepthMediaFrameFormat(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDepthMediaFrameFormat { - type Vtable = IDepthMediaFrameFormat_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDepthMediaFrameFormat { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc312cf40_d729_453e_8780_2e04f140d28e); -} +::windows_core::imp::com_interface!(IDepthMediaFrameFormat, IDepthMediaFrameFormat_Vtbl, 0xc312cf40_d729_453e_8780_2e04f140d28e); #[repr(C)] #[doc(hidden)] pub struct IDepthMediaFrameFormat_Vtbl { @@ -95,16 +50,7 @@ pub struct IDepthMediaFrameFormat_Vtbl { pub VideoFormat: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub DepthScaleInMeters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInfraredMediaFrame(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInfraredMediaFrame { - type Vtable = IInfraredMediaFrame_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInfraredMediaFrame { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3fd13503_004b_4f0e_91ac_465299b41658); -} +::windows_core::imp::com_interface!(IInfraredMediaFrame, IInfraredMediaFrame_Vtbl, 0x3fd13503_004b_4f0e_91ac_465299b41658); #[repr(C)] #[doc(hidden)] pub struct IInfraredMediaFrame_Vtbl { @@ -113,31 +59,13 @@ pub struct IInfraredMediaFrame_Vtbl { pub VideoMediaFrame: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub IsIlluminated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaFrameArrivedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaFrameArrivedEventArgs { - type Vtable = IMediaFrameArrivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaFrameArrivedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0b430add_a490_4435_ada1_9affd55239f7); -} +::windows_core::imp::com_interface!(IMediaFrameArrivedEventArgs, IMediaFrameArrivedEventArgs_Vtbl, 0x0b430add_a490_4435_ada1_9affd55239f7); #[repr(C)] #[doc(hidden)] pub struct IMediaFrameArrivedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaFrameFormat(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaFrameFormat { - type Vtable = IMediaFrameFormat_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaFrameFormat { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x71902b4e_b279_4a97_a9db_bd5a2fb78f39); -} +::windows_core::imp::com_interface!(IMediaFrameFormat, IMediaFrameFormat_Vtbl, 0x71902b4e_b279_4a97_a9db_bd5a2fb78f39); #[repr(C)] #[doc(hidden)] pub struct IMediaFrameFormat_Vtbl { @@ -154,16 +82,7 @@ pub struct IMediaFrameFormat_Vtbl { Properties: usize, pub VideoFormat: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaFrameFormat2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaFrameFormat2 { - type Vtable = IMediaFrameFormat2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaFrameFormat2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x63856340_5e87_4c10_86d1_6df097a6c6a8); -} +::windows_core::imp::com_interface!(IMediaFrameFormat2, IMediaFrameFormat2_Vtbl, 0x63856340_5e87_4c10_86d1_6df097a6c6a8); #[repr(C)] #[doc(hidden)] pub struct IMediaFrameFormat2_Vtbl { @@ -173,16 +92,7 @@ pub struct IMediaFrameFormat2_Vtbl { #[cfg(not(feature = "Media_MediaProperties"))] AudioEncodingProperties: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaFrameReader(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaFrameReader { - type Vtable = IMediaFrameReader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaFrameReader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe4c94395_2028_48ed_90b0_d1c1b162e24c); -} +::windows_core::imp::com_interface!(IMediaFrameReader, IMediaFrameReader_Vtbl, 0xe4c94395_2028_48ed_90b0_d1c1b162e24c); #[repr(C)] #[doc(hidden)] pub struct IMediaFrameReader_Vtbl { @@ -193,16 +103,7 @@ pub struct IMediaFrameReader_Vtbl { pub StartAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub StopAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaFrameReader2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaFrameReader2 { - type Vtable = IMediaFrameReader2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaFrameReader2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x871127b3_8531_4050_87cc_a13733cf3e9b); -} +::windows_core::imp::com_interface!(IMediaFrameReader2, IMediaFrameReader2_Vtbl, 0x871127b3_8531_4050_87cc_a13733cf3e9b); #[repr(C)] #[doc(hidden)] pub struct IMediaFrameReader2_Vtbl { @@ -210,16 +111,7 @@ pub struct IMediaFrameReader2_Vtbl { pub SetAcquisitionMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: MediaFrameReaderAcquisitionMode) -> ::windows_core::HRESULT, pub AcquisitionMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut MediaFrameReaderAcquisitionMode) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaFrameReference(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaFrameReference { - type Vtable = IMediaFrameReference_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaFrameReference { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf6b88641_f0dc_4044_8dc9_961cedd05bad); -} +::windows_core::imp::com_interface!(IMediaFrameReference, IMediaFrameReference_Vtbl, 0xf6b88641_f0dc_4044_8dc9_961cedd05bad); #[repr(C)] #[doc(hidden)] pub struct IMediaFrameReference_Vtbl { @@ -239,32 +131,14 @@ pub struct IMediaFrameReference_Vtbl { #[cfg(not(feature = "Perception_Spatial"))] CoordinateSystem: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaFrameReference2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaFrameReference2 { - type Vtable = IMediaFrameReference2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaFrameReference2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xddbc3ecc_d5b2_49ef_836a_947d989b80c1); -} +::windows_core::imp::com_interface!(IMediaFrameReference2, IMediaFrameReference2_Vtbl, 0xddbc3ecc_d5b2_49ef_836a_947d989b80c1); #[repr(C)] #[doc(hidden)] pub struct IMediaFrameReference2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub AudioMediaFrame: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaFrameSource(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaFrameSource { - type Vtable = IMediaFrameSource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaFrameSource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd6782953_90db_46a8_8add_2aa884a8d253); -} +::windows_core::imp::com_interface!(IMediaFrameSource, IMediaFrameSource_Vtbl, 0xd6782953_90db_46a8_8add_2aa884a8d253); #[repr(C)] #[doc(hidden)] pub struct IMediaFrameSource_Vtbl { @@ -284,16 +158,7 @@ pub struct IMediaFrameSource_Vtbl { #[cfg(not(feature = "Media_Devices_Core"))] TryGetCameraIntrinsics: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaFrameSourceController(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaFrameSourceController { - type Vtable = IMediaFrameSourceController_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaFrameSourceController { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6d076635_316d_4b8f_b7b6_eeb04a8c6525); -} +::windows_core::imp::com_interface!(IMediaFrameSourceController, IMediaFrameSourceController_Vtbl, 0x6d076635_316d_4b8f_b7b6_eeb04a8c6525); #[repr(C)] #[doc(hidden)] pub struct IMediaFrameSourceController_Vtbl { @@ -305,16 +170,7 @@ pub struct IMediaFrameSourceController_Vtbl { #[cfg(not(feature = "Media_Devices"))] VideoDeviceController: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaFrameSourceController2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaFrameSourceController2 { - type Vtable = IMediaFrameSourceController2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaFrameSourceController2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xefc49fd4_fcf2_4a03_b4e4_ac9628739bee); -} +::windows_core::imp::com_interface!(IMediaFrameSourceController2, IMediaFrameSourceController2_Vtbl, 0xefc49fd4_fcf2_4a03_b4e4_ac9628739bee); #[repr(C)] #[doc(hidden)] pub struct IMediaFrameSourceController2_Vtbl { @@ -322,16 +178,7 @@ pub struct IMediaFrameSourceController2_Vtbl { pub GetPropertyByExtendedIdAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, extendedPropertyId_array_size: u32, extendedpropertyid: *const u8, maxpropertyvaluesize: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetPropertyByExtendedIdAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, extendedPropertyId_array_size: u32, extendedpropertyid: *const u8, propertyValue_array_size: u32, propertyvalue: *const u8, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaFrameSourceController3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaFrameSourceController3 { - type Vtable = IMediaFrameSourceController3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaFrameSourceController3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1f0cf815_2464_4651_b1e8_4a82dbdb54de); -} +::windows_core::imp::com_interface!(IMediaFrameSourceController3, IMediaFrameSourceController3_Vtbl, 0x1f0cf815_2464_4651_b1e8_4a82dbdb54de); #[repr(C)] #[doc(hidden)] pub struct IMediaFrameSourceController3_Vtbl { @@ -341,16 +188,7 @@ pub struct IMediaFrameSourceController3_Vtbl { #[cfg(not(feature = "Media_Devices"))] AudioDeviceController: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaFrameSourceGetPropertyResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaFrameSourceGetPropertyResult { - type Vtable = IMediaFrameSourceGetPropertyResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaFrameSourceGetPropertyResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x088616c2_3a64_4bd5_bd2b_e7c898d2f37a); -} +::windows_core::imp::com_interface!(IMediaFrameSourceGetPropertyResult, IMediaFrameSourceGetPropertyResult_Vtbl, 0x088616c2_3a64_4bd5_bd2b_e7c898d2f37a); #[repr(C)] #[doc(hidden)] pub struct IMediaFrameSourceGetPropertyResult_Vtbl { @@ -358,16 +196,7 @@ pub struct IMediaFrameSourceGetPropertyResult_Vtbl { pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut MediaFrameSourceGetPropertyStatus) -> ::windows_core::HRESULT, pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaFrameSourceGroup(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaFrameSourceGroup { - type Vtable = IMediaFrameSourceGroup_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaFrameSourceGroup { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7f605b87_4832_4b5f_ae3d_412faab37d34); -} +::windows_core::imp::com_interface!(IMediaFrameSourceGroup, IMediaFrameSourceGroup_Vtbl, 0x7f605b87_4832_4b5f_ae3d_412faab37d34); #[repr(C)] #[doc(hidden)] pub struct IMediaFrameSourceGroup_Vtbl { @@ -379,16 +208,7 @@ pub struct IMediaFrameSourceGroup_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] SourceInfos: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaFrameSourceGroupStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaFrameSourceGroupStatics { - type Vtable = IMediaFrameSourceGroupStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaFrameSourceGroupStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1c48bfc5_436f_4508_94cf_d5d8b7326445); -} +::windows_core::imp::com_interface!(IMediaFrameSourceGroupStatics, IMediaFrameSourceGroupStatics_Vtbl, 0x1c48bfc5_436f_4508_94cf_d5d8b7326445); #[repr(C)] #[doc(hidden)] pub struct IMediaFrameSourceGroupStatics_Vtbl { @@ -400,16 +220,7 @@ pub struct IMediaFrameSourceGroupStatics_Vtbl { pub FromIdAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeviceSelector: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaFrameSourceInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaFrameSourceInfo { - type Vtable = IMediaFrameSourceInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaFrameSourceInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x87bdc9cd_4601_408f_91cf_038318cd0af3); -} +::windows_core::imp::com_interface!(IMediaFrameSourceInfo, IMediaFrameSourceInfo_Vtbl, 0x87bdc9cd_4601_408f_91cf_038318cd0af3); #[repr(C)] #[doc(hidden)] pub struct IMediaFrameSourceInfo_Vtbl { @@ -431,16 +242,7 @@ pub struct IMediaFrameSourceInfo_Vtbl { #[cfg(not(feature = "Perception_Spatial"))] CoordinateSystem: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaFrameSourceInfo2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaFrameSourceInfo2 { - type Vtable = IMediaFrameSourceInfo2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaFrameSourceInfo2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x195a7855_6457_42c6_a769_19b65bd32e6e); -} +::windows_core::imp::com_interface!(IMediaFrameSourceInfo2, IMediaFrameSourceInfo2_Vtbl, 0x195a7855_6457_42c6_a769_19b65bd32e6e); #[repr(C)] #[doc(hidden)] pub struct IMediaFrameSourceInfo2_Vtbl { @@ -451,16 +253,7 @@ pub struct IMediaFrameSourceInfo2_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] VideoProfileMediaDescription: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaFrameSourceInfo3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaFrameSourceInfo3 { - type Vtable = IMediaFrameSourceInfo3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaFrameSourceInfo3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xca824ab6_66ea_5885_a2b6_26c0eeec3c7b); -} +::windows_core::imp::com_interface!(IMediaFrameSourceInfo3, IMediaFrameSourceInfo3_Vtbl, 0xca824ab6_66ea_5885_a2b6_26c0eeec3c7b); #[repr(C)] #[doc(hidden)] pub struct IMediaFrameSourceInfo3_Vtbl { @@ -470,47 +263,20 @@ pub struct IMediaFrameSourceInfo3_Vtbl { #[cfg(not(all(feature = "Devices_Enumeration", feature = "UI_WindowManagement")))] GetRelativePanel: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaFrameSourceInfo4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaFrameSourceInfo4 { - type Vtable = IMediaFrameSourceInfo4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaFrameSourceInfo4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4817d721_85eb_470c_8f37_43ca5498e41d); -} +::windows_core::imp::com_interface!(IMediaFrameSourceInfo4, IMediaFrameSourceInfo4_Vtbl, 0x4817d721_85eb_470c_8f37_43ca5498e41d); #[repr(C)] #[doc(hidden)] pub struct IMediaFrameSourceInfo4_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub IsShareable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMultiSourceMediaFrameArrivedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMultiSourceMediaFrameArrivedEventArgs { - type Vtable = IMultiSourceMediaFrameArrivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMultiSourceMediaFrameArrivedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x63115e01_cf51_48fd_aab0_6d693eb48127); -} +::windows_core::imp::com_interface!(IMultiSourceMediaFrameArrivedEventArgs, IMultiSourceMediaFrameArrivedEventArgs_Vtbl, 0x63115e01_cf51_48fd_aab0_6d693eb48127); #[repr(C)] #[doc(hidden)] pub struct IMultiSourceMediaFrameArrivedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMultiSourceMediaFrameReader(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMultiSourceMediaFrameReader { - type Vtable = IMultiSourceMediaFrameReader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMultiSourceMediaFrameReader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8d144402_f763_488d_98f2_b437bcf075e7); -} +::windows_core::imp::com_interface!(IMultiSourceMediaFrameReader, IMultiSourceMediaFrameReader_Vtbl, 0x8d144402_f763_488d_98f2_b437bcf075e7); #[repr(C)] #[doc(hidden)] pub struct IMultiSourceMediaFrameReader_Vtbl { @@ -521,16 +287,7 @@ pub struct IMultiSourceMediaFrameReader_Vtbl { pub StartAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub StopAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMultiSourceMediaFrameReader2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMultiSourceMediaFrameReader2 { - type Vtable = IMultiSourceMediaFrameReader2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMultiSourceMediaFrameReader2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xef5c8abd_fc5c_4c6b_9d81_3cb9cc637c26); -} +::windows_core::imp::com_interface!(IMultiSourceMediaFrameReader2, IMultiSourceMediaFrameReader2_Vtbl, 0xef5c8abd_fc5c_4c6b_9d81_3cb9cc637c26); #[repr(C)] #[doc(hidden)] pub struct IMultiSourceMediaFrameReader2_Vtbl { @@ -538,32 +295,14 @@ pub struct IMultiSourceMediaFrameReader2_Vtbl { pub SetAcquisitionMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: MediaFrameReaderAcquisitionMode) -> ::windows_core::HRESULT, pub AcquisitionMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut MediaFrameReaderAcquisitionMode) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMultiSourceMediaFrameReference(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMultiSourceMediaFrameReference { - type Vtable = IMultiSourceMediaFrameReference_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMultiSourceMediaFrameReference { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x21964b1a_7fe2_44d6_92e5_298e6d2810e9); -} +::windows_core::imp::com_interface!(IMultiSourceMediaFrameReference, IMultiSourceMediaFrameReference_Vtbl, 0x21964b1a_7fe2_44d6_92e5_298e6d2810e9); #[repr(C)] #[doc(hidden)] pub struct IMultiSourceMediaFrameReference_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub TryGetFrameReferenceBySourceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sourceid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVideoMediaFrame(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVideoMediaFrame { - type Vtable = IVideoMediaFrame_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVideoMediaFrame { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00dd4ccb_32bd_4fe1_a013_7cc13cf5dbcf); -} +::windows_core::imp::com_interface!(IVideoMediaFrame, IVideoMediaFrame_Vtbl, 0x00dd4ccb_32bd_4fe1_a013_7cc13cf5dbcf); #[repr(C)] #[doc(hidden)] pub struct IVideoMediaFrame_Vtbl { @@ -586,16 +325,7 @@ pub struct IVideoMediaFrame_Vtbl { pub DepthMediaFrame: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetVideoFrame: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVideoMediaFrameFormat(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVideoMediaFrameFormat { - type Vtable = IVideoMediaFrameFormat_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVideoMediaFrameFormat { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x46027fc0_d71b_45c7_8f14_6d9a0ae604e4); -} +::windows_core::imp::com_interface!(IVideoMediaFrameFormat, IVideoMediaFrameFormat_Vtbl, 0x46027fc0_d71b_45c7_8f14_6d9a0ae604e4); #[repr(C)] #[doc(hidden)] pub struct IVideoMediaFrameFormat_Vtbl { @@ -608,6 +338,7 @@ pub struct IVideoMediaFrameFormat_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AudioMediaFrame(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AudioMediaFrame, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AudioMediaFrame { pub fn FrameReference(&self) -> ::windows_core::Result { let this = self; @@ -638,19 +369,17 @@ impl ::windows_core::RuntimeType for AudioMediaFrame { } unsafe impl ::windows_core::Interface for AudioMediaFrame { type Vtable = IAudioMediaFrame_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AudioMediaFrame { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AudioMediaFrame { const NAME: &'static str = "Windows.Media.Capture.Frames.AudioMediaFrame"; } -::windows_core::imp::interface_hierarchy!(AudioMediaFrame, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AudioMediaFrame {} unsafe impl ::core::marker::Sync for AudioMediaFrame {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BufferMediaFrame(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BufferMediaFrame, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BufferMediaFrame { pub fn FrameReference(&self) -> ::windows_core::Result { let this = self; @@ -674,19 +403,17 @@ impl ::windows_core::RuntimeType for BufferMediaFrame { } unsafe impl ::windows_core::Interface for BufferMediaFrame { type Vtable = IBufferMediaFrame_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BufferMediaFrame { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BufferMediaFrame { const NAME: &'static str = "Windows.Media.Capture.Frames.BufferMediaFrame"; } -::windows_core::imp::interface_hierarchy!(BufferMediaFrame, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BufferMediaFrame {} unsafe impl ::core::marker::Sync for BufferMediaFrame {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DepthMediaFrame(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DepthMediaFrame, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DepthMediaFrame { pub fn FrameReference(&self) -> ::windows_core::Result { let this = self; @@ -723,14 +450,14 @@ impl DepthMediaFrame { } } pub fn MaxReliableDepth(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MaxReliableDepth)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn MinReliableDepth(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MinReliableDepth)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -742,19 +469,17 @@ impl ::windows_core::RuntimeType for DepthMediaFrame { } unsafe impl ::windows_core::Interface for DepthMediaFrame { type Vtable = IDepthMediaFrame_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DepthMediaFrame { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DepthMediaFrame { const NAME: &'static str = "Windows.Media.Capture.Frames.DepthMediaFrame"; } -::windows_core::imp::interface_hierarchy!(DepthMediaFrame, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DepthMediaFrame {} unsafe impl ::core::marker::Sync for DepthMediaFrame {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DepthMediaFrameFormat(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DepthMediaFrameFormat, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DepthMediaFrameFormat { pub fn VideoFormat(&self) -> ::windows_core::Result { let this = self; @@ -776,19 +501,17 @@ impl ::windows_core::RuntimeType for DepthMediaFrameFormat { } unsafe impl ::windows_core::Interface for DepthMediaFrameFormat { type Vtable = IDepthMediaFrameFormat_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DepthMediaFrameFormat { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DepthMediaFrameFormat { const NAME: &'static str = "Windows.Media.Capture.Frames.DepthMediaFrameFormat"; } -::windows_core::imp::interface_hierarchy!(DepthMediaFrameFormat, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DepthMediaFrameFormat {} unsafe impl ::core::marker::Sync for DepthMediaFrameFormat {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct InfraredMediaFrame(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(InfraredMediaFrame, ::windows_core::IUnknown, ::windows_core::IInspectable); impl InfraredMediaFrame { pub fn FrameReference(&self) -> ::windows_core::Result { let this = self; @@ -817,38 +540,34 @@ impl ::windows_core::RuntimeType for InfraredMediaFrame { } unsafe impl ::windows_core::Interface for InfraredMediaFrame { type Vtable = IInfraredMediaFrame_Vtbl; -} -unsafe impl ::windows_core::ComInterface for InfraredMediaFrame { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for InfraredMediaFrame { const NAME: &'static str = "Windows.Media.Capture.Frames.InfraredMediaFrame"; } -::windows_core::imp::interface_hierarchy!(InfraredMediaFrame, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for InfraredMediaFrame {} unsafe impl ::core::marker::Sync for InfraredMediaFrame {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaFrameArrivedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaFrameArrivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaFrameArrivedEventArgs {} impl ::windows_core::RuntimeType for MediaFrameArrivedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_class::(); } unsafe impl ::windows_core::Interface for MediaFrameArrivedEventArgs { type Vtable = IMediaFrameArrivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaFrameArrivedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaFrameArrivedEventArgs { const NAME: &'static str = "Windows.Media.Capture.Frames.MediaFrameArrivedEventArgs"; } -::windows_core::imp::interface_hierarchy!(MediaFrameArrivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaFrameArrivedEventArgs {} unsafe impl ::core::marker::Sync for MediaFrameArrivedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaFrameFormat(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaFrameFormat, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaFrameFormat { pub fn MajorType(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -892,7 +611,7 @@ impl MediaFrameFormat { #[doc = "Required features: `\"Media_MediaProperties\"`"] #[cfg(feature = "Media_MediaProperties")] pub fn AudioEncodingProperties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AudioEncodingProperties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -904,22 +623,21 @@ impl ::windows_core::RuntimeType for MediaFrameFormat { } unsafe impl ::windows_core::Interface for MediaFrameFormat { type Vtable = IMediaFrameFormat_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaFrameFormat { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaFrameFormat { const NAME: &'static str = "Windows.Media.Capture.Frames.MediaFrameFormat"; } -::windows_core::imp::interface_hierarchy!(MediaFrameFormat, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaFrameFormat {} unsafe impl ::core::marker::Sync for MediaFrameFormat {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaFrameReader(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaFrameReader, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(MediaFrameReader, super::super::super::Foundation::IClosable); impl MediaFrameReader { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn FrameArrived(&self, handler: P0) -> ::windows_core::Result @@ -958,11 +676,11 @@ impl MediaFrameReader { } } pub fn SetAcquisitionMode(&self, value: MediaFrameReaderAcquisitionMode) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetAcquisitionMode)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn AcquisitionMode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AcquisitionMode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -974,23 +692,21 @@ impl ::windows_core::RuntimeType for MediaFrameReader { } unsafe impl ::windows_core::Interface for MediaFrameReader { type Vtable = IMediaFrameReader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaFrameReader { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaFrameReader { const NAME: &'static str = "Windows.Media.Capture.Frames.MediaFrameReader"; } -::windows_core::imp::interface_hierarchy!(MediaFrameReader, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for MediaFrameReader {} unsafe impl ::core::marker::Send for MediaFrameReader {} unsafe impl ::core::marker::Sync for MediaFrameReader {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaFrameReference(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaFrameReference, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(MediaFrameReference, super::super::super::Foundation::IClosable); impl MediaFrameReference { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn SourceKind(&self) -> ::windows_core::Result { @@ -1054,7 +770,7 @@ impl MediaFrameReference { } } pub fn AudioMediaFrame(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AudioMediaFrame)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1066,20 +782,17 @@ impl ::windows_core::RuntimeType for MediaFrameReference { } unsafe impl ::windows_core::Interface for MediaFrameReference { type Vtable = IMediaFrameReference_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaFrameReference { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaFrameReference { const NAME: &'static str = "Windows.Media.Capture.Frames.MediaFrameReference"; } -::windows_core::imp::interface_hierarchy!(MediaFrameReference, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for MediaFrameReference {} unsafe impl ::core::marker::Send for MediaFrameReference {} unsafe impl ::core::marker::Sync for MediaFrameReference {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaFrameSource(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaFrameSource, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaFrameSource { pub fn Info(&self) -> ::windows_core::Result { let this = self; @@ -1153,19 +866,17 @@ impl ::windows_core::RuntimeType for MediaFrameSource { } unsafe impl ::windows_core::Interface for MediaFrameSource { type Vtable = IMediaFrameSource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaFrameSource { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaFrameSource { const NAME: &'static str = "Windows.Media.Capture.Frames.MediaFrameSource"; } -::windows_core::imp::interface_hierarchy!(MediaFrameSource, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaFrameSource {} unsafe impl ::core::marker::Sync for MediaFrameSource {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaFrameSourceController(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaFrameSourceController, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaFrameSourceController { pub fn GetPropertyAsync(&self, propertyid: &::windows_core::HSTRING) -> ::windows_core::Result> { let this = self; @@ -1195,16 +906,16 @@ impl MediaFrameSourceController { } pub fn GetPropertyByExtendedIdAsync(&self, extendedpropertyid: &[u8], maxpropertyvaluesize: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) } } pub fn SetPropertyByExtendedIdAsync(&self, extendedpropertyid: &[u8], propertyvalue: &[u8]) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SetPropertyByExtendedIdAsync)(::windows_core::Interface::as_raw(this), extendedpropertyid.len().try_into().unwrap(), extendedpropertyid.as_ptr(), propertyvalue.len().try_into().unwrap(), propertyvalue.as_ptr(), &mut result__).from_abi(result__) @@ -1213,7 +924,7 @@ impl MediaFrameSourceController { #[doc = "Required features: `\"Media_Devices\"`"] #[cfg(feature = "Media_Devices")] pub fn AudioDeviceController(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AudioDeviceController)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1225,19 +936,17 @@ impl ::windows_core::RuntimeType for MediaFrameSourceController { } unsafe impl ::windows_core::Interface for MediaFrameSourceController { type Vtable = IMediaFrameSourceController_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaFrameSourceController { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaFrameSourceController { const NAME: &'static str = "Windows.Media.Capture.Frames.MediaFrameSourceController"; } -::windows_core::imp::interface_hierarchy!(MediaFrameSourceController, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaFrameSourceController {} unsafe impl ::core::marker::Sync for MediaFrameSourceController {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaFrameSourceGetPropertyResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaFrameSourceGetPropertyResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaFrameSourceGetPropertyResult { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -1259,19 +968,17 @@ impl ::windows_core::RuntimeType for MediaFrameSourceGetPropertyResult { } unsafe impl ::windows_core::Interface for MediaFrameSourceGetPropertyResult { type Vtable = IMediaFrameSourceGetPropertyResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaFrameSourceGetPropertyResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaFrameSourceGetPropertyResult { const NAME: &'static str = "Windows.Media.Capture.Frames.MediaFrameSourceGetPropertyResult"; } -::windows_core::imp::interface_hierarchy!(MediaFrameSourceGetPropertyResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaFrameSourceGetPropertyResult {} unsafe impl ::core::marker::Sync for MediaFrameSourceGetPropertyResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaFrameSourceGroup(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaFrameSourceGroup, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaFrameSourceGroup { pub fn Id(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1327,19 +1034,17 @@ impl ::windows_core::RuntimeType for MediaFrameSourceGroup { } unsafe impl ::windows_core::Interface for MediaFrameSourceGroup { type Vtable = IMediaFrameSourceGroup_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaFrameSourceGroup { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaFrameSourceGroup { const NAME: &'static str = "Windows.Media.Capture.Frames.MediaFrameSourceGroup"; } -::windows_core::imp::interface_hierarchy!(MediaFrameSourceGroup, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaFrameSourceGroup {} unsafe impl ::core::marker::Sync for MediaFrameSourceGroup {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaFrameSourceInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaFrameSourceInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaFrameSourceInfo { pub fn Id(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1397,7 +1102,7 @@ impl MediaFrameSourceInfo { } } pub fn ProfileId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ProfileId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1406,7 +1111,7 @@ impl MediaFrameSourceInfo { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn VideoProfileMediaDescription(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).VideoProfileMediaDescription)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1418,14 +1123,14 @@ impl MediaFrameSourceInfo { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn IsShareable(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsShareable)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1437,41 +1142,38 @@ impl ::windows_core::RuntimeType for MediaFrameSourceInfo { } unsafe impl ::windows_core::Interface for MediaFrameSourceInfo { type Vtable = IMediaFrameSourceInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaFrameSourceInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaFrameSourceInfo { const NAME: &'static str = "Windows.Media.Capture.Frames.MediaFrameSourceInfo"; } -::windows_core::imp::interface_hierarchy!(MediaFrameSourceInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaFrameSourceInfo {} unsafe impl ::core::marker::Sync for MediaFrameSourceInfo {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MultiSourceMediaFrameArrivedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MultiSourceMediaFrameArrivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MultiSourceMediaFrameArrivedEventArgs {} impl ::windows_core::RuntimeType for MultiSourceMediaFrameArrivedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_class::(); } unsafe impl ::windows_core::Interface for MultiSourceMediaFrameArrivedEventArgs { type Vtable = IMultiSourceMediaFrameArrivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MultiSourceMediaFrameArrivedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MultiSourceMediaFrameArrivedEventArgs { const NAME: &'static str = "Windows.Media.Capture.Frames.MultiSourceMediaFrameArrivedEventArgs"; } -::windows_core::imp::interface_hierarchy!(MultiSourceMediaFrameArrivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MultiSourceMediaFrameArrivedEventArgs {} unsafe impl ::core::marker::Sync for MultiSourceMediaFrameArrivedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MultiSourceMediaFrameReader(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MultiSourceMediaFrameReader, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(MultiSourceMediaFrameReader, super::super::super::Foundation::IClosable); impl MultiSourceMediaFrameReader { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn FrameArrived(&self, handler: P0) -> ::windows_core::Result @@ -1510,11 +1212,11 @@ impl MultiSourceMediaFrameReader { } } pub fn SetAcquisitionMode(&self, value: MediaFrameReaderAcquisitionMode) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetAcquisitionMode)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn AcquisitionMode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AcquisitionMode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1526,23 +1228,21 @@ impl ::windows_core::RuntimeType for MultiSourceMediaFrameReader { } unsafe impl ::windows_core::Interface for MultiSourceMediaFrameReader { type Vtable = IMultiSourceMediaFrameReader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MultiSourceMediaFrameReader { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MultiSourceMediaFrameReader { const NAME: &'static str = "Windows.Media.Capture.Frames.MultiSourceMediaFrameReader"; } -::windows_core::imp::interface_hierarchy!(MultiSourceMediaFrameReader, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for MultiSourceMediaFrameReader {} unsafe impl ::core::marker::Send for MultiSourceMediaFrameReader {} unsafe impl ::core::marker::Sync for MultiSourceMediaFrameReader {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MultiSourceMediaFrameReference(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MultiSourceMediaFrameReference, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(MultiSourceMediaFrameReference, super::super::super::Foundation::IClosable); impl MultiSourceMediaFrameReference { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn TryGetFrameReferenceBySourceId(&self, sourceid: &::windows_core::HSTRING) -> ::windows_core::Result { @@ -1558,20 +1258,17 @@ impl ::windows_core::RuntimeType for MultiSourceMediaFrameReference { } unsafe impl ::windows_core::Interface for MultiSourceMediaFrameReference { type Vtable = IMultiSourceMediaFrameReference_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MultiSourceMediaFrameReference { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MultiSourceMediaFrameReference { const NAME: &'static str = "Windows.Media.Capture.Frames.MultiSourceMediaFrameReference"; } -::windows_core::imp::interface_hierarchy!(MultiSourceMediaFrameReference, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for MultiSourceMediaFrameReference {} unsafe impl ::core::marker::Send for MultiSourceMediaFrameReference {} unsafe impl ::core::marker::Sync for MultiSourceMediaFrameReference {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VideoMediaFrame(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VideoMediaFrame, ::windows_core::IUnknown, ::windows_core::IInspectable); impl VideoMediaFrame { pub fn FrameReference(&self) -> ::windows_core::Result { let this = self; @@ -1641,19 +1338,17 @@ impl ::windows_core::RuntimeType for VideoMediaFrame { } unsafe impl ::windows_core::Interface for VideoMediaFrame { type Vtable = IVideoMediaFrame_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VideoMediaFrame { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VideoMediaFrame { const NAME: &'static str = "Windows.Media.Capture.Frames.VideoMediaFrame"; } -::windows_core::imp::interface_hierarchy!(VideoMediaFrame, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for VideoMediaFrame {} unsafe impl ::core::marker::Sync for VideoMediaFrame {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VideoMediaFrameFormat(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VideoMediaFrameFormat, ::windows_core::IUnknown, ::windows_core::IInspectable); impl VideoMediaFrameFormat { pub fn MediaFrameFormat(&self) -> ::windows_core::Result { let this = self; @@ -1689,14 +1384,11 @@ impl ::windows_core::RuntimeType for VideoMediaFrameFormat { } unsafe impl ::windows_core::Interface for VideoMediaFrameFormat { type Vtable = IVideoMediaFrameFormat_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VideoMediaFrameFormat { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VideoMediaFrameFormat { const NAME: &'static str = "Windows.Media.Capture.Frames.VideoMediaFrameFormat"; } -::windows_core::imp::interface_hierarchy!(VideoMediaFrameFormat, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for VideoMediaFrameFormat {} unsafe impl ::core::marker::Sync for VideoMediaFrameFormat {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Media/Capture/mod.rs b/crates/libs/windows/src/Windows/Media/Capture/mod.rs index 1be4bc310d..4c14db16d5 100644 --- a/crates/libs/windows/src/Windows/Media/Capture/mod.rs +++ b/crates/libs/windows/src/Windows/Media/Capture/mod.rs @@ -4,16 +4,7 @@ pub mod Core; #[cfg(feature = "Media_Capture_Frames")] #[doc = "Required features: `\"Media_Capture_Frames\"`"] pub mod Frames; -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAdvancedCapturedPhoto(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAdvancedCapturedPhoto { - type Vtable = IAdvancedCapturedPhoto_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAdvancedCapturedPhoto { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf072728b_b292_4491_9d41_99807a550bbf); -} +::windows_core::imp::com_interface!(IAdvancedCapturedPhoto, IAdvancedCapturedPhoto_Vtbl, 0xf072728b_b292_4491_9d41_99807a550bbf); #[repr(C)] #[doc(hidden)] pub struct IAdvancedCapturedPhoto_Vtbl { @@ -25,32 +16,14 @@ pub struct IAdvancedCapturedPhoto_Vtbl { Mode: usize, pub Context: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAdvancedCapturedPhoto2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAdvancedCapturedPhoto2 { - type Vtable = IAdvancedCapturedPhoto2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAdvancedCapturedPhoto2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x18cf6cd8_cffe_42d8_8104_017bb318f4a1); -} +::windows_core::imp::com_interface!(IAdvancedCapturedPhoto2, IAdvancedCapturedPhoto2_Vtbl, 0x18cf6cd8_cffe_42d8_8104_017bb318f4a1); #[repr(C)] #[doc(hidden)] pub struct IAdvancedCapturedPhoto2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub FrameBoundsRelativeToReferencePhoto: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAdvancedPhotoCapture(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAdvancedPhotoCapture { - type Vtable = IAdvancedPhotoCapture_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAdvancedPhotoCapture { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x83ffaafa_6667_44dc_973c_a6bce596aa0f); -} +::windows_core::imp::com_interface!(IAdvancedPhotoCapture, IAdvancedPhotoCapture_Vtbl, 0x83ffaafa_6667_44dc_973c_a6bce596aa0f); #[repr(C)] #[doc(hidden)] pub struct IAdvancedPhotoCapture_Vtbl { @@ -63,16 +36,7 @@ pub struct IAdvancedPhotoCapture_Vtbl { pub RemoveAllPhotosCaptured: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub FinishAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppBroadcastBackgroundService(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppBroadcastBackgroundService { - type Vtable = IAppBroadcastBackgroundService_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppBroadcastBackgroundService { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbad1e72a_fa94_46f9_95fc_d71511cda70b); -} +::windows_core::imp::com_interface!(IAppBroadcastBackgroundService, IAppBroadcastBackgroundService_Vtbl, 0xbad1e72a_fa94_46f9_95fc_d71511cda70b); #[repr(C)] #[doc(hidden)] pub struct IAppBroadcastBackgroundService_Vtbl { @@ -92,16 +56,7 @@ pub struct IAppBroadcastBackgroundService_Vtbl { pub RemoveHeartbeatRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub TitleId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppBroadcastBackgroundService2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppBroadcastBackgroundService2 { - type Vtable = IAppBroadcastBackgroundService2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppBroadcastBackgroundService2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfc8ccbbf_5549_4b87_959f_23ca401fd473); -} +::windows_core::imp::com_interface!(IAppBroadcastBackgroundService2, IAppBroadcastBackgroundService2_Vtbl, 0xfc8ccbbf_5549_4b87_959f_23ca401fd473); #[repr(C)] #[doc(hidden)] pub struct IAppBroadcastBackgroundService2_Vtbl { @@ -118,16 +73,7 @@ pub struct IAppBroadcastBackgroundService2_Vtbl { pub BroadcastChannelChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveBroadcastChannelChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppBroadcastBackgroundServiceSignInInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppBroadcastBackgroundServiceSignInInfo { - type Vtable = IAppBroadcastBackgroundServiceSignInInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppBroadcastBackgroundServiceSignInInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5e735275_88c8_4eca_89ba_4825985db880); -} +::windows_core::imp::com_interface!(IAppBroadcastBackgroundServiceSignInInfo, IAppBroadcastBackgroundServiceSignInInfo_Vtbl, 0x5e735275_88c8_4eca_89ba_4825985db880); #[repr(C)] #[doc(hidden)] pub struct IAppBroadcastBackgroundServiceSignInInfo_Vtbl { @@ -146,16 +92,7 @@ pub struct IAppBroadcastBackgroundServiceSignInInfo_Vtbl { pub SignInStateChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveSignInStateChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppBroadcastBackgroundServiceSignInInfo2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppBroadcastBackgroundServiceSignInInfo2 { - type Vtable = IAppBroadcastBackgroundServiceSignInInfo2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppBroadcastBackgroundServiceSignInInfo2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9104285c_62cf_4a3c_a7ee_aeb507404645); -} +::windows_core::imp::com_interface!(IAppBroadcastBackgroundServiceSignInInfo2, IAppBroadcastBackgroundServiceSignInInfo2_Vtbl, 0x9104285c_62cf_4a3c_a7ee_aeb507404645); #[repr(C)] #[doc(hidden)] pub struct IAppBroadcastBackgroundServiceSignInInfo2_Vtbl { @@ -163,16 +100,7 @@ pub struct IAppBroadcastBackgroundServiceSignInInfo2_Vtbl { pub UserNameChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveUserNameChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppBroadcastBackgroundServiceStreamInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppBroadcastBackgroundServiceStreamInfo { - type Vtable = IAppBroadcastBackgroundServiceStreamInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppBroadcastBackgroundServiceStreamInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x31dc02bc_990a_4904_aa96_fe364381f136); -} +::windows_core::imp::com_interface!(IAppBroadcastBackgroundServiceStreamInfo, IAppBroadcastBackgroundServiceStreamInfo_Vtbl, 0x31dc02bc_990a_4904_aa96_fe364381f136); #[repr(C)] #[doc(hidden)] pub struct IAppBroadcastBackgroundServiceStreamInfo_Vtbl { @@ -192,32 +120,14 @@ pub struct IAppBroadcastBackgroundServiceStreamInfo_Vtbl { pub VideoEncodingBitrateChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveVideoEncodingBitrateChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppBroadcastBackgroundServiceStreamInfo2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppBroadcastBackgroundServiceStreamInfo2 { - type Vtable = IAppBroadcastBackgroundServiceStreamInfo2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppBroadcastBackgroundServiceStreamInfo2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbd1e9f6d_94dc_4fce_9541_a9f129596334); -} +::windows_core::imp::com_interface!(IAppBroadcastBackgroundServiceStreamInfo2, IAppBroadcastBackgroundServiceStreamInfo2_Vtbl, 0xbd1e9f6d_94dc_4fce_9541_a9f129596334); #[repr(C)] #[doc(hidden)] pub struct IAppBroadcastBackgroundServiceStreamInfo2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ReportProblemWithStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppBroadcastCameraCaptureStateChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppBroadcastCameraCaptureStateChangedEventArgs { - type Vtable = IAppBroadcastCameraCaptureStateChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppBroadcastCameraCaptureStateChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1e334cd0_b882_4b88_8692_05999aceb70f); -} +::windows_core::imp::com_interface!(IAppBroadcastCameraCaptureStateChangedEventArgs, IAppBroadcastCameraCaptureStateChangedEventArgs_Vtbl, 0x1e334cd0_b882_4b88_8692_05999aceb70f); #[repr(C)] #[doc(hidden)] pub struct IAppBroadcastCameraCaptureStateChangedEventArgs_Vtbl { @@ -225,16 +135,7 @@ pub struct IAppBroadcastCameraCaptureStateChangedEventArgs_Vtbl { pub State: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut AppBroadcastCameraCaptureState) -> ::windows_core::HRESULT, pub ErrorCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppBroadcastGlobalSettings(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppBroadcastGlobalSettings { - type Vtable = IAppBroadcastGlobalSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppBroadcastGlobalSettings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb2cb27a5_70fc_4e17_80bd_6ba0fd3ff3a0); -} +::windows_core::imp::com_interface!(IAppBroadcastGlobalSettings, IAppBroadcastGlobalSettings_Vtbl, 0xb2cb27a5_70fc_4e17_80bd_6ba0fd3ff3a0); #[repr(C)] #[doc(hidden)] pub struct IAppBroadcastGlobalSettings_Vtbl { @@ -264,16 +165,7 @@ pub struct IAppBroadcastGlobalSettings_Vtbl { pub SetIsCursorImageCaptureEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, pub IsCursorImageCaptureEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppBroadcastHeartbeatRequestedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppBroadcastHeartbeatRequestedEventArgs { - type Vtable = IAppBroadcastHeartbeatRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppBroadcastHeartbeatRequestedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcea54283_ee51_4dbf_9472_79a9ed4e2165); -} +::windows_core::imp::com_interface!(IAppBroadcastHeartbeatRequestedEventArgs, IAppBroadcastHeartbeatRequestedEventArgs_Vtbl, 0xcea54283_ee51_4dbf_9472_79a9ed4e2165); #[repr(C)] #[doc(hidden)] pub struct IAppBroadcastHeartbeatRequestedEventArgs_Vtbl { @@ -281,16 +173,7 @@ pub struct IAppBroadcastHeartbeatRequestedEventArgs_Vtbl { pub SetHandled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, pub Handled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppBroadcastManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppBroadcastManagerStatics { - type Vtable = IAppBroadcastManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppBroadcastManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x364e018b_1e4e_411f_ab3e_92959844c156); -} +::windows_core::imp::com_interface!(IAppBroadcastManagerStatics, IAppBroadcastManagerStatics_Vtbl, 0x364e018b_1e4e_411f_ab3e_92959844c156); #[repr(C)] #[doc(hidden)] pub struct IAppBroadcastManagerStatics_Vtbl { @@ -300,16 +183,7 @@ pub struct IAppBroadcastManagerStatics_Vtbl { pub GetProviderSettings: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ApplyProviderSettings: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppBroadcastMicrophoneCaptureStateChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppBroadcastMicrophoneCaptureStateChangedEventArgs { - type Vtable = IAppBroadcastMicrophoneCaptureStateChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppBroadcastMicrophoneCaptureStateChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa86ad5e9_9440_4908_9d09_65b7e315d795); -} +::windows_core::imp::com_interface!(IAppBroadcastMicrophoneCaptureStateChangedEventArgs, IAppBroadcastMicrophoneCaptureStateChangedEventArgs_Vtbl, 0xa86ad5e9_9440_4908_9d09_65b7e315d795); #[repr(C)] #[doc(hidden)] pub struct IAppBroadcastMicrophoneCaptureStateChangedEventArgs_Vtbl { @@ -317,16 +191,7 @@ pub struct IAppBroadcastMicrophoneCaptureStateChangedEventArgs_Vtbl { pub State: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut AppBroadcastMicrophoneCaptureState) -> ::windows_core::HRESULT, pub ErrorCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppBroadcastPlugIn(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppBroadcastPlugIn { - type Vtable = IAppBroadcastPlugIn_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppBroadcastPlugIn { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x520c1e66_6513_4574_ac54_23b79729615b); -} +::windows_core::imp::com_interface!(IAppBroadcastPlugIn, IAppBroadcastPlugIn_Vtbl, 0x520c1e66_6513_4574_ac54_23b79729615b); #[repr(C)] #[doc(hidden)] pub struct IAppBroadcastPlugIn_Vtbl { @@ -339,16 +204,7 @@ pub struct IAppBroadcastPlugIn_Vtbl { Logo: usize, pub DisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppBroadcastPlugInManager(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppBroadcastPlugInManager { - type Vtable = IAppBroadcastPlugInManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppBroadcastPlugInManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe550d979_27a1_49a7_bbf4_d7a9e9d07668); -} +::windows_core::imp::com_interface!(IAppBroadcastPlugInManager, IAppBroadcastPlugInManager_Vtbl, 0xe550d979_27a1_49a7_bbf4_d7a9e9d07668); #[repr(C)] #[doc(hidden)] pub struct IAppBroadcastPlugInManager_Vtbl { @@ -361,16 +217,7 @@ pub struct IAppBroadcastPlugInManager_Vtbl { pub DefaultPlugIn: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetDefaultPlugIn: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppBroadcastPlugInManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppBroadcastPlugInManagerStatics { - type Vtable = IAppBroadcastPlugInManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppBroadcastPlugInManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf2645c20_5c76_4cdc_9364_82fe9eb6534d); -} +::windows_core::imp::com_interface!(IAppBroadcastPlugInManagerStatics, IAppBroadcastPlugInManagerStatics_Vtbl, 0xf2645c20_5c76_4cdc_9364_82fe9eb6534d); #[repr(C)] #[doc(hidden)] pub struct IAppBroadcastPlugInManagerStatics_Vtbl { @@ -381,32 +228,14 @@ pub struct IAppBroadcastPlugInManagerStatics_Vtbl { #[cfg(not(feature = "System"))] GetForUser: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppBroadcastPlugInStateChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppBroadcastPlugInStateChangedEventArgs { - type Vtable = IAppBroadcastPlugInStateChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppBroadcastPlugInStateChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4881d0f2_abc5_4fc6_84b0_89370bb47212); -} +::windows_core::imp::com_interface!(IAppBroadcastPlugInStateChangedEventArgs, IAppBroadcastPlugInStateChangedEventArgs_Vtbl, 0x4881d0f2_abc5_4fc6_84b0_89370bb47212); #[repr(C)] #[doc(hidden)] pub struct IAppBroadcastPlugInStateChangedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub PlugInState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut AppBroadcastPlugInState) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppBroadcastPreview(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppBroadcastPreview { - type Vtable = IAppBroadcastPreview_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppBroadcastPreview { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x14b60f5a_6e4a_4b80_a14f_67ee77d153e7); -} +::windows_core::imp::com_interface!(IAppBroadcastPreview, IAppBroadcastPreview_Vtbl, 0x14b60f5a_6e4a_4b80_a14f_67ee77d153e7); #[repr(C)] #[doc(hidden)] pub struct IAppBroadcastPreview_Vtbl { @@ -418,16 +247,7 @@ pub struct IAppBroadcastPreview_Vtbl { pub RemovePreviewStateChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub PreviewStreamReader: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppBroadcastPreviewStateChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppBroadcastPreviewStateChangedEventArgs { - type Vtable = IAppBroadcastPreviewStateChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppBroadcastPreviewStateChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5a57f2de_8dea_4e86_90ad_03fc26b9653c); -} +::windows_core::imp::com_interface!(IAppBroadcastPreviewStateChangedEventArgs, IAppBroadcastPreviewStateChangedEventArgs_Vtbl, 0x5a57f2de_8dea_4e86_90ad_03fc26b9653c); #[repr(C)] #[doc(hidden)] pub struct IAppBroadcastPreviewStateChangedEventArgs_Vtbl { @@ -435,16 +255,7 @@ pub struct IAppBroadcastPreviewStateChangedEventArgs_Vtbl { pub PreviewState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut AppBroadcastPreviewState) -> ::windows_core::HRESULT, pub ErrorCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppBroadcastPreviewStreamReader(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppBroadcastPreviewStreamReader { - type Vtable = IAppBroadcastPreviewStreamReader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppBroadcastPreviewStreamReader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x92228d50_db3f_40a8_8cd4_f4e371ddab37); -} +::windows_core::imp::com_interface!(IAppBroadcastPreviewStreamReader, IAppBroadcastPreviewStreamReader_Vtbl, 0x92228d50_db3f_40a8_8cd4_f4e371ddab37); #[repr(C)] #[doc(hidden)] pub struct IAppBroadcastPreviewStreamReader_Vtbl { @@ -464,16 +275,7 @@ pub struct IAppBroadcastPreviewStreamReader_Vtbl { pub VideoFrameArrived: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveVideoFrameArrived: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppBroadcastPreviewStreamVideoFrame(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppBroadcastPreviewStreamVideoFrame { - type Vtable = IAppBroadcastPreviewStreamVideoFrame_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppBroadcastPreviewStreamVideoFrame { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x010fbea1_94fe_4499_b8c0_8d244279fb12); -} +::windows_core::imp::com_interface!(IAppBroadcastPreviewStreamVideoFrame, IAppBroadcastPreviewStreamVideoFrame_Vtbl, 0x010fbea1_94fe_4499_b8c0_8d244279fb12); #[repr(C)] #[doc(hidden)] pub struct IAppBroadcastPreviewStreamVideoFrame_Vtbl { @@ -484,16 +286,7 @@ pub struct IAppBroadcastPreviewStreamVideoFrame_Vtbl { #[cfg(not(feature = "Storage_Streams"))] VideoBuffer: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppBroadcastPreviewStreamVideoHeader(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppBroadcastPreviewStreamVideoHeader { - type Vtable = IAppBroadcastPreviewStreamVideoHeader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppBroadcastPreviewStreamVideoHeader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8bef6113_da84_4499_a7ab_87118cb4a157); -} +::windows_core::imp::com_interface!(IAppBroadcastPreviewStreamVideoHeader, IAppBroadcastPreviewStreamVideoHeader_Vtbl, 0x8bef6113_da84_4499_a7ab_87118cb4a157); #[repr(C)] #[doc(hidden)] pub struct IAppBroadcastPreviewStreamVideoHeader_Vtbl { @@ -503,16 +296,7 @@ pub struct IAppBroadcastPreviewStreamVideoHeader_Vtbl { pub Duration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::TimeSpan) -> ::windows_core::HRESULT, pub FrameId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u64) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppBroadcastProviderSettings(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppBroadcastProviderSettings { - type Vtable = IAppBroadcastProviderSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppBroadcastProviderSettings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc30bdf62_9948_458f_ad50_aa06ec03da08); -} +::windows_core::imp::com_interface!(IAppBroadcastProviderSettings, IAppBroadcastProviderSettings_Vtbl, 0xc30bdf62_9948_458f_ad50_aa06ec03da08); #[repr(C)] #[doc(hidden)] pub struct IAppBroadcastProviderSettings_Vtbl { @@ -532,16 +316,7 @@ pub struct IAppBroadcastProviderSettings_Vtbl { pub SetVideoEncodingResolutionMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: AppBroadcastVideoEncodingResolutionMode) -> ::windows_core::HRESULT, pub VideoEncodingResolutionMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut AppBroadcastVideoEncodingResolutionMode) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppBroadcastServices(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppBroadcastServices { - type Vtable = IAppBroadcastServices_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppBroadcastServices { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8660b4d6_969b_4e3c_ac3a_8b042ee4ee63); -} +::windows_core::imp::com_interface!(IAppBroadcastServices, IAppBroadcastServices_Vtbl, 0x8660b4d6_969b_4e3c_ac3a_8b042ee4ee63); #[repr(C)] #[doc(hidden)] pub struct IAppBroadcastServices_Vtbl { @@ -562,16 +337,7 @@ pub struct IAppBroadcastServices_Vtbl { pub StartPreview: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, desiredsize: super::super::Foundation::Size, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub State: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppBroadcastSignInStateChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppBroadcastSignInStateChangedEventArgs { - type Vtable = IAppBroadcastSignInStateChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppBroadcastSignInStateChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x02b692a4_5919_4a9e_8d5e_c9bb0dd3377a); -} +::windows_core::imp::com_interface!(IAppBroadcastSignInStateChangedEventArgs, IAppBroadcastSignInStateChangedEventArgs_Vtbl, 0x02b692a4_5919_4a9e_8d5e_c9bb0dd3377a); #[repr(C)] #[doc(hidden)] pub struct IAppBroadcastSignInStateChangedEventArgs_Vtbl { @@ -579,16 +345,7 @@ pub struct IAppBroadcastSignInStateChangedEventArgs_Vtbl { pub SignInState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut AppBroadcastSignInState) -> ::windows_core::HRESULT, pub Result: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut AppBroadcastSignInResult) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppBroadcastState(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppBroadcastState { - type Vtable = IAppBroadcastState_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppBroadcastState { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xee08056d_8099_4ddd_922e_c56dac58abfb); -} +::windows_core::imp::com_interface!(IAppBroadcastState, IAppBroadcastState_Vtbl, 0xee08056d_8099_4ddd_922e_c56dac58abfb); #[repr(C)] #[doc(hidden)] pub struct IAppBroadcastState_Vtbl { @@ -635,16 +392,7 @@ pub struct IAppBroadcastState_Vtbl { pub CaptureTargetClosed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveCaptureTargetClosed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppBroadcastStreamAudioFrame(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppBroadcastStreamAudioFrame { - type Vtable = IAppBroadcastStreamAudioFrame_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppBroadcastStreamAudioFrame { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xefab4ac8_21ba_453f_8bb7_5e938a2e9a74); -} +::windows_core::imp::com_interface!(IAppBroadcastStreamAudioFrame, IAppBroadcastStreamAudioFrame_Vtbl, 0xefab4ac8_21ba_453f_8bb7_5e938a2e9a74); #[repr(C)] #[doc(hidden)] pub struct IAppBroadcastStreamAudioFrame_Vtbl { @@ -655,16 +403,7 @@ pub struct IAppBroadcastStreamAudioFrame_Vtbl { #[cfg(not(feature = "Storage_Streams"))] AudioBuffer: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppBroadcastStreamAudioHeader(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppBroadcastStreamAudioHeader { - type Vtable = IAppBroadcastStreamAudioHeader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppBroadcastStreamAudioHeader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbf21a570_6b78_4216_9f07_5aff5256f1b7); -} +::windows_core::imp::com_interface!(IAppBroadcastStreamAudioHeader, IAppBroadcastStreamAudioHeader_Vtbl, 0xbf21a570_6b78_4216_9f07_5aff5256f1b7); #[repr(C)] #[doc(hidden)] pub struct IAppBroadcastStreamAudioHeader_Vtbl { @@ -675,16 +414,7 @@ pub struct IAppBroadcastStreamAudioHeader_Vtbl { pub HasDiscontinuity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub FrameId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u64) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppBroadcastStreamReader(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppBroadcastStreamReader { - type Vtable = IAppBroadcastStreamReader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppBroadcastStreamReader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb338bcf9_3364_4460_b5f1_3cc2796a8aa2); -} +::windows_core::imp::com_interface!(IAppBroadcastStreamReader, IAppBroadcastStreamReader_Vtbl, 0xb338bcf9_3364_4460_b5f1_3cc2796a8aa2); #[repr(C)] #[doc(hidden)] pub struct IAppBroadcastStreamReader_Vtbl { @@ -706,32 +436,14 @@ pub struct IAppBroadcastStreamReader_Vtbl { pub VideoFrameArrived: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveVideoFrameArrived: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppBroadcastStreamStateChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppBroadcastStreamStateChangedEventArgs { - type Vtable = IAppBroadcastStreamStateChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppBroadcastStreamStateChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5108a733_d008_4a89_93be_58aed961374e); -} +::windows_core::imp::com_interface!(IAppBroadcastStreamStateChangedEventArgs, IAppBroadcastStreamStateChangedEventArgs_Vtbl, 0x5108a733_d008_4a89_93be_58aed961374e); #[repr(C)] #[doc(hidden)] pub struct IAppBroadcastStreamStateChangedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub StreamState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut AppBroadcastStreamState) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppBroadcastStreamVideoFrame(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppBroadcastStreamVideoFrame { - type Vtable = IAppBroadcastStreamVideoFrame_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppBroadcastStreamVideoFrame { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0f97cf2b_c9e4_4e88_8194_d814cbd585d8); -} +::windows_core::imp::com_interface!(IAppBroadcastStreamVideoFrame, IAppBroadcastStreamVideoFrame_Vtbl, 0x0f97cf2b_c9e4_4e88_8194_d814cbd585d8); #[repr(C)] #[doc(hidden)] pub struct IAppBroadcastStreamVideoFrame_Vtbl { @@ -742,16 +454,7 @@ pub struct IAppBroadcastStreamVideoFrame_Vtbl { #[cfg(not(feature = "Storage_Streams"))] VideoBuffer: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppBroadcastStreamVideoHeader(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppBroadcastStreamVideoHeader { - type Vtable = IAppBroadcastStreamVideoHeader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppBroadcastStreamVideoHeader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0b9ebece_7e32_432d_8ca2_36bf10b9f462); -} +::windows_core::imp::com_interface!(IAppBroadcastStreamVideoHeader, IAppBroadcastStreamVideoHeader_Vtbl, 0x0b9ebece_7e32_432d_8ca2_36bf10b9f462); #[repr(C)] #[doc(hidden)] pub struct IAppBroadcastStreamVideoHeader_Vtbl { @@ -763,48 +466,21 @@ pub struct IAppBroadcastStreamVideoHeader_Vtbl { pub HasDiscontinuity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub FrameId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u64) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppBroadcastTriggerDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppBroadcastTriggerDetails { - type Vtable = IAppBroadcastTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppBroadcastTriggerDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdeebab35_ec5e_4d8f_b1c0_5da6e8c75638); -} +::windows_core::imp::com_interface!(IAppBroadcastTriggerDetails, IAppBroadcastTriggerDetails_Vtbl, 0xdeebab35_ec5e_4d8f_b1c0_5da6e8c75638); #[repr(C)] #[doc(hidden)] pub struct IAppBroadcastTriggerDetails_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub BackgroundService: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppBroadcastViewerCountChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppBroadcastViewerCountChangedEventArgs { - type Vtable = IAppBroadcastViewerCountChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppBroadcastViewerCountChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe6e11825_5401_4ade_8bd2_c14ecee6807d); -} +::windows_core::imp::com_interface!(IAppBroadcastViewerCountChangedEventArgs, IAppBroadcastViewerCountChangedEventArgs_Vtbl, 0xe6e11825_5401_4ade_8bd2_c14ecee6807d); #[repr(C)] #[doc(hidden)] pub struct IAppBroadcastViewerCountChangedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ViewerCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppCapture(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppCapture { - type Vtable = IAppCapture_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppCapture { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9749d453_a29a_45ed_8f29_22d09942cff7); -} +::windows_core::imp::com_interface!(IAppCapture, IAppCapture_Vtbl, 0x9749d453_a29a_45ed_8f29_22d09942cff7); #[repr(C)] #[doc(hidden)] pub struct IAppCapture_Vtbl { @@ -814,16 +490,7 @@ pub struct IAppCapture_Vtbl { pub CapturingChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveCapturingChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppCaptureAlternateShortcutKeys(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppCaptureAlternateShortcutKeys { - type Vtable = IAppCaptureAlternateShortcutKeys_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppCaptureAlternateShortcutKeys { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x19e8e0ef_236c_40f9_b38f_9b7dd65d1ccc); -} +::windows_core::imp::com_interface!(IAppCaptureAlternateShortcutKeys, IAppCaptureAlternateShortcutKeys_Vtbl, 0x19e8e0ef_236c_40f9_b38f_9b7dd65d1ccc); #[repr(C)] #[doc(hidden)] pub struct IAppCaptureAlternateShortcutKeys_Vtbl { @@ -909,16 +576,7 @@ pub struct IAppCaptureAlternateShortcutKeys_Vtbl { #[cfg(not(feature = "System"))] ToggleRecordingIndicatorKeyModifiers: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppCaptureAlternateShortcutKeys2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppCaptureAlternateShortcutKeys2 { - type Vtable = IAppCaptureAlternateShortcutKeys2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppCaptureAlternateShortcutKeys2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc3669090_dd17_47f0_95e5_ce42286cf338); -} +::windows_core::imp::com_interface!(IAppCaptureAlternateShortcutKeys2, IAppCaptureAlternateShortcutKeys2_Vtbl, 0xc3669090_dd17_47f0_95e5_ce42286cf338); #[repr(C)] #[doc(hidden)] pub struct IAppCaptureAlternateShortcutKeys2_Vtbl { @@ -940,16 +598,7 @@ pub struct IAppCaptureAlternateShortcutKeys2_Vtbl { #[cfg(not(feature = "System"))] ToggleMicrophoneCaptureKeyModifiers: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppCaptureAlternateShortcutKeys3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppCaptureAlternateShortcutKeys3 { - type Vtable = IAppCaptureAlternateShortcutKeys3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppCaptureAlternateShortcutKeys3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7b81448c_418e_469c_a49a_45b597c826b6); -} +::windows_core::imp::com_interface!(IAppCaptureAlternateShortcutKeys3, IAppCaptureAlternateShortcutKeys3_Vtbl, 0x7b81448c_418e_469c_a49a_45b597c826b6); #[repr(C)] #[doc(hidden)] pub struct IAppCaptureAlternateShortcutKeys3_Vtbl { @@ -987,32 +636,14 @@ pub struct IAppCaptureAlternateShortcutKeys3_Vtbl { #[cfg(not(feature = "System"))] ToggleBroadcastKeyModifiers: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppCaptureDurationGeneratedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppCaptureDurationGeneratedEventArgs { - type Vtable = IAppCaptureDurationGeneratedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppCaptureDurationGeneratedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc1f5563b_ffa1_44c9_975f_27fbeb553b35); -} +::windows_core::imp::com_interface!(IAppCaptureDurationGeneratedEventArgs, IAppCaptureDurationGeneratedEventArgs_Vtbl, 0xc1f5563b_ffa1_44c9_975f_27fbeb553b35); #[repr(C)] #[doc(hidden)] pub struct IAppCaptureDurationGeneratedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Duration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::TimeSpan) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppCaptureFileGeneratedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppCaptureFileGeneratedEventArgs { - type Vtable = IAppCaptureFileGeneratedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppCaptureFileGeneratedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4189fbf4_465e_45bf_907f_165b3fb23758); -} +::windows_core::imp::com_interface!(IAppCaptureFileGeneratedEventArgs, IAppCaptureFileGeneratedEventArgs_Vtbl, 0x4189fbf4_465e_45bf_907f_165b3fb23758); #[repr(C)] #[doc(hidden)] pub struct IAppCaptureFileGeneratedEventArgs_Vtbl { @@ -1022,16 +653,7 @@ pub struct IAppCaptureFileGeneratedEventArgs_Vtbl { #[cfg(not(feature = "Storage"))] File: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppCaptureManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppCaptureManagerStatics { - type Vtable = IAppCaptureManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppCaptureManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7d9e3ea7_6282_4735_8d4e_aa45f90f6723); -} +::windows_core::imp::com_interface!(IAppCaptureManagerStatics, IAppCaptureManagerStatics_Vtbl, 0x7d9e3ea7_6282_4735_8d4e_aa45f90f6723); #[repr(C)] #[doc(hidden)] pub struct IAppCaptureManagerStatics_Vtbl { @@ -1039,16 +661,7 @@ pub struct IAppCaptureManagerStatics_Vtbl { pub GetCurrentSettings: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ApplySettings: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, appcapturesettings: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppCaptureMetadataWriter(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppCaptureMetadataWriter { - type Vtable = IAppCaptureMetadataWriter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppCaptureMetadataWriter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe0ce4877_9aaf_46b4_ad31_6a60b441c780); -} +::windows_core::imp::com_interface!(IAppCaptureMetadataWriter, IAppCaptureMetadataWriter_Vtbl, 0xe0ce4877_9aaf_46b4_ad31_6a60b441c780); #[repr(C)] #[doc(hidden)] pub struct IAppCaptureMetadataWriter_Vtbl { @@ -1065,16 +678,7 @@ pub struct IAppCaptureMetadataWriter_Vtbl { pub MetadataPurged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveMetadataPurged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppCaptureMicrophoneCaptureStateChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppCaptureMicrophoneCaptureStateChangedEventArgs { - type Vtable = IAppCaptureMicrophoneCaptureStateChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppCaptureMicrophoneCaptureStateChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x324d249e_45bc_4c35_bc35_e469fc7a69e0); -} +::windows_core::imp::com_interface!(IAppCaptureMicrophoneCaptureStateChangedEventArgs, IAppCaptureMicrophoneCaptureStateChangedEventArgs_Vtbl, 0x324d249e_45bc_4c35_bc35_e469fc7a69e0); #[repr(C)] #[doc(hidden)] pub struct IAppCaptureMicrophoneCaptureStateChangedEventArgs_Vtbl { @@ -1082,17 +686,8 @@ pub struct IAppCaptureMicrophoneCaptureStateChangedEventArgs_Vtbl { pub State: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut AppCaptureMicrophoneCaptureState) -> ::windows_core::HRESULT, pub ErrorCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppCaptureRecordOperation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppCaptureRecordOperation { - type Vtable = IAppCaptureRecordOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppCaptureRecordOperation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc66020a9_1538_495c_9bbb_2ba870ec5861); -} -#[repr(C)] +::windows_core::imp::com_interface!(IAppCaptureRecordOperation, IAppCaptureRecordOperation_Vtbl, 0xc66020a9_1538_495c_9bbb_2ba870ec5861); +#[repr(C)] #[doc(hidden)] pub struct IAppCaptureRecordOperation_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, @@ -1112,16 +707,7 @@ pub struct IAppCaptureRecordOperation_Vtbl { pub FileGenerated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveFileGenerated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppCaptureRecordingStateChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppCaptureRecordingStateChangedEventArgs { - type Vtable = IAppCaptureRecordingStateChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppCaptureRecordingStateChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x24fc8712_e305_490d_b415_6b1c9049736b); -} +::windows_core::imp::com_interface!(IAppCaptureRecordingStateChangedEventArgs, IAppCaptureRecordingStateChangedEventArgs_Vtbl, 0x24fc8712_e305_490d_b415_6b1c9049736b); #[repr(C)] #[doc(hidden)] pub struct IAppCaptureRecordingStateChangedEventArgs_Vtbl { @@ -1129,16 +715,7 @@ pub struct IAppCaptureRecordingStateChangedEventArgs_Vtbl { pub State: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut AppCaptureRecordingState) -> ::windows_core::HRESULT, pub ErrorCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppCaptureServices(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppCaptureServices { - type Vtable = IAppCaptureServices_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppCaptureServices { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x44fec0b5_34f5_4f18_ae8c_b9123abbfc0d); -} +::windows_core::imp::com_interface!(IAppCaptureServices, IAppCaptureServices_Vtbl, 0x44fec0b5_34f5_4f18_ae8c_b9123abbfc0d); #[repr(C)] #[doc(hidden)] pub struct IAppCaptureServices_Vtbl { @@ -1148,16 +725,7 @@ pub struct IAppCaptureServices_Vtbl { pub CanCapture: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub State: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppCaptureSettings(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppCaptureSettings { - type Vtable = IAppCaptureSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppCaptureSettings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x14683a86_8807_48d3_883a_970ee4532a39); -} +::windows_core::imp::com_interface!(IAppCaptureSettings, IAppCaptureSettings_Vtbl, 0x14683a86_8807_48d3_883a_970ee4532a39); #[repr(C)] #[doc(hidden)] pub struct IAppCaptureSettings_Vtbl { @@ -1211,16 +779,7 @@ pub struct IAppCaptureSettings_Vtbl { pub IsMemoryConstrained: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub HasHardwareEncoder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppCaptureSettings2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppCaptureSettings2 { - type Vtable = IAppCaptureSettings2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppCaptureSettings2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfcb8cee7_e26b_476f_9b1a_ec342d2a8fde); -} +::windows_core::imp::com_interface!(IAppCaptureSettings2, IAppCaptureSettings2_Vtbl, 0xfcb8cee7_e26b_476f_9b1a_ec342d2a8fde); #[repr(C)] #[doc(hidden)] pub struct IAppCaptureSettings2_Vtbl { @@ -1228,16 +787,7 @@ pub struct IAppCaptureSettings2_Vtbl { pub IsGpuConstrained: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub AlternateShortcutKeys: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppCaptureSettings3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppCaptureSettings3 { - type Vtable = IAppCaptureSettings3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppCaptureSettings3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa93502fe_88c2_42d6_aaaa_40feffd75aec); -} +::windows_core::imp::com_interface!(IAppCaptureSettings3, IAppCaptureSettings3_Vtbl, 0xa93502fe_88c2_42d6_aaaa_40feffd75aec); #[repr(C)] #[doc(hidden)] pub struct IAppCaptureSettings3_Vtbl { @@ -1245,16 +795,7 @@ pub struct IAppCaptureSettings3_Vtbl { pub SetIsMicrophoneCaptureEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, pub IsMicrophoneCaptureEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppCaptureSettings4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppCaptureSettings4 { - type Vtable = IAppCaptureSettings4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppCaptureSettings4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x07c2774c_1a81_482f_a244_049d95f25b0b); -} +::windows_core::imp::com_interface!(IAppCaptureSettings4, IAppCaptureSettings4_Vtbl, 0x07c2774c_1a81_482f_a244_049d95f25b0b); #[repr(C)] #[doc(hidden)] pub struct IAppCaptureSettings4_Vtbl { @@ -1268,16 +809,7 @@ pub struct IAppCaptureSettings4_Vtbl { pub SetVideoEncodingFrameRateMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: AppCaptureVideoEncodingFrameRateMode) -> ::windows_core::HRESULT, pub VideoEncodingFrameRateMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut AppCaptureVideoEncodingFrameRateMode) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppCaptureSettings5(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppCaptureSettings5 { - type Vtable = IAppCaptureSettings5_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppCaptureSettings5 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x18894522_b0e8_4ba0_8f13_3eaa5fa4013b); -} +::windows_core::imp::com_interface!(IAppCaptureSettings5, IAppCaptureSettings5_Vtbl, 0x18894522_b0e8_4ba0_8f13_3eaa5fa4013b); #[repr(C)] #[doc(hidden)] pub struct IAppCaptureSettings5_Vtbl { @@ -1287,16 +819,7 @@ pub struct IAppCaptureSettings5_Vtbl { pub SetIsCursorImageCaptureEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, pub IsCursorImageCaptureEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppCaptureState(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppCaptureState { - type Vtable = IAppCaptureState_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppCaptureState { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x73134372_d4eb_44ce_9538_465f506ac4ea); -} +::windows_core::imp::com_interface!(IAppCaptureState, IAppCaptureState_Vtbl, 0x73134372_d4eb_44ce_9538_465f506ac4ea); #[repr(C)] #[doc(hidden)] pub struct IAppCaptureState_Vtbl { @@ -1313,48 +836,21 @@ pub struct IAppCaptureState_Vtbl { pub CaptureTargetClosed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveCaptureTargetClosed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppCaptureStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppCaptureStatics { - type Vtable = IAppCaptureStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppCaptureStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf922dd6c_0a7e_4e74_8b20_9c1f902d08a1); -} +::windows_core::imp::com_interface!(IAppCaptureStatics, IAppCaptureStatics_Vtbl, 0xf922dd6c_0a7e_4e74_8b20_9c1f902d08a1); #[repr(C)] #[doc(hidden)] pub struct IAppCaptureStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetForCurrentView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppCaptureStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppCaptureStatics2 { - type Vtable = IAppCaptureStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppCaptureStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb2d881d4_836c_4da4_afd7_facc041e1cf3); -} +::windows_core::imp::com_interface!(IAppCaptureStatics2, IAppCaptureStatics2_Vtbl, 0xb2d881d4_836c_4da4_afd7_facc041e1cf3); #[repr(C)] #[doc(hidden)] pub struct IAppCaptureStatics2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub SetAllowedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, allowed: bool, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICameraCaptureUI(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICameraCaptureUI { - type Vtable = ICameraCaptureUI_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICameraCaptureUI { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x48587540_6f93_4bb4_b8f3_e89e48948c91); -} +::windows_core::imp::com_interface!(ICameraCaptureUI, ICameraCaptureUI_Vtbl, 0x48587540_6f93_4bb4_b8f3_e89e48948c91); #[repr(C)] #[doc(hidden)] pub struct ICameraCaptureUI_Vtbl { @@ -1366,16 +862,7 @@ pub struct ICameraCaptureUI_Vtbl { #[cfg(not(feature = "Storage"))] CaptureFileAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICameraCaptureUIPhotoCaptureSettings(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICameraCaptureUIPhotoCaptureSettings { - type Vtable = ICameraCaptureUIPhotoCaptureSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICameraCaptureUIPhotoCaptureSettings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb9f5be97_3472_46a8_8a9e_04ce42ccc97d); -} +::windows_core::imp::com_interface!(ICameraCaptureUIPhotoCaptureSettings, ICameraCaptureUIPhotoCaptureSettings_Vtbl, 0xb9f5be97_3472_46a8_8a9e_04ce42ccc97d); #[repr(C)] #[doc(hidden)] pub struct ICameraCaptureUIPhotoCaptureSettings_Vtbl { @@ -1391,16 +878,7 @@ pub struct ICameraCaptureUIPhotoCaptureSettings_Vtbl { pub AllowCropping: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetAllowCropping: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICameraCaptureUIVideoCaptureSettings(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICameraCaptureUIVideoCaptureSettings { - type Vtable = ICameraCaptureUIVideoCaptureSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICameraCaptureUIVideoCaptureSettings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x64e92d1f_a28d_425a_b84f_e568335ff24e); -} +::windows_core::imp::com_interface!(ICameraCaptureUIVideoCaptureSettings, ICameraCaptureUIVideoCaptureSettings_Vtbl, 0x64e92d1f_a28d_425a_b84f_e568335ff24e); #[repr(C)] #[doc(hidden)] pub struct ICameraCaptureUIVideoCaptureSettings_Vtbl { @@ -1414,32 +892,14 @@ pub struct ICameraCaptureUIVideoCaptureSettings_Vtbl { pub AllowTrimming: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetAllowTrimming: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICameraOptionsUIStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICameraOptionsUIStatics { - type Vtable = ICameraOptionsUIStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICameraOptionsUIStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3b0d5e34_3906_4b7d_946c_7bde844499ae); -} +::windows_core::imp::com_interface!(ICameraOptionsUIStatics, ICameraOptionsUIStatics_Vtbl, 0x3b0d5e34_3906_4b7d_946c_7bde844499ae); #[repr(C)] #[doc(hidden)] pub struct ICameraOptionsUIStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Show: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mediacapture: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICapturedFrame(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICapturedFrame { - type Vtable = ICapturedFrame_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICapturedFrame { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1dd2de1f_571b_44d8_8e80_a08a1578766e); -} +::windows_core::imp::com_interface!(ICapturedFrame, ICapturedFrame_Vtbl, 0x1dd2de1f_571b_44d8_8e80_a08a1578766e); #[repr(C)] #[doc(hidden)] pub struct ICapturedFrame_Vtbl { @@ -1447,16 +907,7 @@ pub struct ICapturedFrame_Vtbl { pub Width: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, pub Height: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICapturedFrame2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICapturedFrame2 { - type Vtable = ICapturedFrame2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICapturedFrame2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x543fa6d1_bd78_4866_adda_24314bc65dea); -} +::windows_core::imp::com_interface!(ICapturedFrame2, ICapturedFrame2_Vtbl, 0x543fa6d1_bd78_4866_adda_24314bc65dea); #[repr(C)] #[doc(hidden)] pub struct ICapturedFrame2_Vtbl { @@ -1467,16 +918,7 @@ pub struct ICapturedFrame2_Vtbl { #[cfg(not(all(feature = "Foundation_Collections", feature = "Graphics_Imaging")))] BitmapProperties: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICapturedFrameControlValues(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICapturedFrameControlValues { - type Vtable = ICapturedFrameControlValues_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICapturedFrameControlValues { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x90c65b7f_4e0d_4ca4_882d_7a144fed0a90); -} +::windows_core::imp::com_interface!(ICapturedFrameControlValues, ICapturedFrameControlValues_Vtbl, 0x90c65b7f_4e0d_4ca4_882d_7a144fed0a90); #[repr(C)] #[doc(hidden)] pub struct ICapturedFrameControlValues_Vtbl { @@ -1494,16 +936,7 @@ pub struct ICapturedFrameControlValues_Vtbl { pub WhiteBalance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ZoomFactor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICapturedFrameControlValues2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICapturedFrameControlValues2 { - type Vtable = ICapturedFrameControlValues2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICapturedFrameControlValues2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x500b2b88_06d2_4aa7_a7db_d37af73321d8); -} +::windows_core::imp::com_interface!(ICapturedFrameControlValues2, ICapturedFrameControlValues2_Vtbl, 0x500b2b88_06d2_4aa7_a7db_d37af73321d8); #[repr(C)] #[doc(hidden)] pub struct ICapturedFrameControlValues2_Vtbl { @@ -1520,16 +953,7 @@ pub struct ICapturedFrameControlValues2_Vtbl { SensorFrameRate: usize, pub WhiteBalanceGain: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICapturedFrameWithSoftwareBitmap(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICapturedFrameWithSoftwareBitmap { - type Vtable = ICapturedFrameWithSoftwareBitmap_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICapturedFrameWithSoftwareBitmap { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb58e8b6e_8503_49b5_9e86_897d26a3ff3d); -} +::windows_core::imp::com_interface!(ICapturedFrameWithSoftwareBitmap, ICapturedFrameWithSoftwareBitmap_Vtbl, 0xb58e8b6e_8503_49b5_9e86_897d26a3ff3d); #[repr(C)] #[doc(hidden)] pub struct ICapturedFrameWithSoftwareBitmap_Vtbl { @@ -1539,16 +963,7 @@ pub struct ICapturedFrameWithSoftwareBitmap_Vtbl { #[cfg(not(feature = "Graphics_Imaging"))] SoftwareBitmap: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICapturedPhoto(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICapturedPhoto { - type Vtable = ICapturedPhoto_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICapturedPhoto { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb0ce7e5a_cfcc_4d6c_8ad1_0869208aca16); -} +::windows_core::imp::com_interface!(ICapturedPhoto, ICapturedPhoto_Vtbl, 0xb0ce7e5a_cfcc_4d6c_8ad1_0869208aca16); #[repr(C)] #[doc(hidden)] pub struct ICapturedPhoto_Vtbl { @@ -1556,16 +971,7 @@ pub struct ICapturedPhoto_Vtbl { pub Frame: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Thumbnail: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGameBarServices(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGameBarServices { - type Vtable = IGameBarServices_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGameBarServices { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2dbead57_50a6_499e_8c6c_d330a7311796); -} +::windows_core::imp::com_interface!(IGameBarServices, IGameBarServices_Vtbl, 0x2dbead57_50a6_499e_8c6c_d330a7311796); #[repr(C)] #[doc(hidden)] pub struct IGameBarServices_Vtbl { @@ -1580,16 +986,7 @@ pub struct IGameBarServices_Vtbl { pub CommandReceived: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveCommandReceived: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGameBarServicesCommandEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGameBarServicesCommandEventArgs { - type Vtable = IGameBarServicesCommandEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGameBarServicesCommandEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa74226b2_f176_4fcf_8fbb_cf698b2eb8e0); -} +::windows_core::imp::com_interface!(IGameBarServicesCommandEventArgs, IGameBarServicesCommandEventArgs_Vtbl, 0xa74226b2_f176_4fcf_8fbb_cf698b2eb8e0); #[repr(C)] #[doc(hidden)] pub struct IGameBarServicesCommandEventArgs_Vtbl { @@ -1597,16 +994,7 @@ pub struct IGameBarServicesCommandEventArgs_Vtbl { pub Command: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut GameBarCommand) -> ::windows_core::HRESULT, pub Origin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut GameBarCommandOrigin) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGameBarServicesManager(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGameBarServicesManager { - type Vtable = IGameBarServicesManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGameBarServicesManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3a4b9cfa_7f8b_4c60_9dbb_0bcd262dffc6); -} +::windows_core::imp::com_interface!(IGameBarServicesManager, IGameBarServicesManager_Vtbl, 0x3a4b9cfa_7f8b_4c60_9dbb_0bcd262dffc6); #[repr(C)] #[doc(hidden)] pub struct IGameBarServicesManager_Vtbl { @@ -1614,48 +1002,21 @@ pub struct IGameBarServicesManager_Vtbl { pub GameBarServicesCreated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveGameBarServicesCreated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGameBarServicesManagerGameBarServicesCreatedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGameBarServicesManagerGameBarServicesCreatedEventArgs { - type Vtable = IGameBarServicesManagerGameBarServicesCreatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGameBarServicesManagerGameBarServicesCreatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xededbd9c_143e_49a3_a5ea_0b1995c8d46e); -} +::windows_core::imp::com_interface!(IGameBarServicesManagerGameBarServicesCreatedEventArgs, IGameBarServicesManagerGameBarServicesCreatedEventArgs_Vtbl, 0xededbd9c_143e_49a3_a5ea_0b1995c8d46e); #[repr(C)] #[doc(hidden)] pub struct IGameBarServicesManagerGameBarServicesCreatedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GameBarServices: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGameBarServicesManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGameBarServicesManagerStatics { - type Vtable = IGameBarServicesManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGameBarServicesManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x34c1b616_ff25_4792_98f2_d3753f15ac13); -} +::windows_core::imp::com_interface!(IGameBarServicesManagerStatics, IGameBarServicesManagerStatics_Vtbl, 0x34c1b616_ff25_4792_98f2_d3753f15ac13); #[repr(C)] #[doc(hidden)] pub struct IGameBarServicesManagerStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetDefault: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGameBarServicesTargetInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGameBarServicesTargetInfo { - type Vtable = IGameBarServicesTargetInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGameBarServicesTargetInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb4202f92_1611_4e05_b6ef_dfd737ae33b0); -} +::windows_core::imp::com_interface!(IGameBarServicesTargetInfo, IGameBarServicesTargetInfo_Vtbl, 0xb4202f92_1611_4e05_b6ef_dfd737ae33b0); #[repr(C)] #[doc(hidden)] pub struct IGameBarServicesTargetInfo_Vtbl { @@ -1665,16 +1026,7 @@ pub struct IGameBarServicesTargetInfo_Vtbl { pub TitleId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub DisplayMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut GameBarServicesDisplayMode) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILowLagMediaRecording(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILowLagMediaRecording { - type Vtable = ILowLagMediaRecording_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILowLagMediaRecording { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x41c8baf7_ff3f_49f0_a477_f195e3ce5108); -} +::windows_core::imp::com_interface!(ILowLagMediaRecording, ILowLagMediaRecording_Vtbl, 0x41c8baf7_ff3f_49f0_a477_f195e3ce5108); #[repr(C)] #[doc(hidden)] pub struct ILowLagMediaRecording_Vtbl { @@ -1683,16 +1035,7 @@ pub struct ILowLagMediaRecording_Vtbl { pub StopAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub FinishAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILowLagMediaRecording2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILowLagMediaRecording2 { - type Vtable = ILowLagMediaRecording2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILowLagMediaRecording2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6369c758_5644_41e2_97af_8ef56a25e225); -} +::windows_core::imp::com_interface!(ILowLagMediaRecording2, ILowLagMediaRecording2_Vtbl, 0x6369c758_5644_41e2_97af_8ef56a25e225); #[repr(C)] #[doc(hidden)] pub struct ILowLagMediaRecording2_Vtbl { @@ -1703,16 +1046,7 @@ pub struct ILowLagMediaRecording2_Vtbl { PauseAsync: usize, pub ResumeAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILowLagMediaRecording3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILowLagMediaRecording3 { - type Vtable = ILowLagMediaRecording3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILowLagMediaRecording3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5c33ab12_48f7_47da_b41e_90880a5fe0ec); -} +::windows_core::imp::com_interface!(ILowLagMediaRecording3, ILowLagMediaRecording3_Vtbl, 0x5c33ab12_48f7_47da_b41e_90880a5fe0ec); #[repr(C)] #[doc(hidden)] pub struct ILowLagMediaRecording3_Vtbl { @@ -1723,16 +1057,7 @@ pub struct ILowLagMediaRecording3_Vtbl { PauseWithResultAsync: usize, pub StopWithResultAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILowLagPhotoCapture(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILowLagPhotoCapture { - type Vtable = ILowLagPhotoCapture_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILowLagPhotoCapture { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa37251b7_6b44_473d_8f24_f703d6c0ec44); -} +::windows_core::imp::com_interface!(ILowLagPhotoCapture, ILowLagPhotoCapture_Vtbl, 0xa37251b7_6b44_473d_8f24_f703d6c0ec44); #[repr(C)] #[doc(hidden)] pub struct ILowLagPhotoCapture_Vtbl { @@ -1740,16 +1065,7 @@ pub struct ILowLagPhotoCapture_Vtbl { pub CaptureAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub FinishAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILowLagPhotoSequenceCapture(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILowLagPhotoSequenceCapture { - type Vtable = ILowLagPhotoSequenceCapture_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILowLagPhotoSequenceCapture { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7cc346bb_b9a9_4c91_8ffa_287e9c668669); -} +::windows_core::imp::com_interface!(ILowLagPhotoSequenceCapture, ILowLagPhotoSequenceCapture_Vtbl, 0x7cc346bb_b9a9_4c91_8ffa_287e9c668669); #[repr(C)] #[doc(hidden)] pub struct ILowLagPhotoSequenceCapture_Vtbl { @@ -1760,16 +1076,7 @@ pub struct ILowLagPhotoSequenceCapture_Vtbl { pub PhotoCaptured: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemovePhotoCaptured: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaCapture(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaCapture { - type Vtable = IMediaCapture_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaCapture { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc61afbb4_fb10_4a34_ac18_ca80d9c8e7ee); -} +::windows_core::imp::com_interface!(IMediaCapture, IMediaCapture_Vtbl, 0xc61afbb4_fb10_4a34_ac18_ca80d9c8e7ee); #[repr(C)] #[doc(hidden)] pub struct IMediaCapture_Vtbl { @@ -1828,16 +1135,7 @@ pub struct IMediaCapture_Vtbl { pub SetRecordRotation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: VideoRotation) -> ::windows_core::HRESULT, pub GetRecordRotation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut VideoRotation) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaCapture2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaCapture2 { - type Vtable = IMediaCapture2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaCapture2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9cc68260_7da1_4043_b652_21b8878daff9); -} +::windows_core::imp::com_interface!(IMediaCapture2, IMediaCapture2_Vtbl, 0x9cc68260_7da1_4043_b652_21b8878daff9); #[repr(C)] #[doc(hidden)] pub struct IMediaCapture2_Vtbl { @@ -1871,16 +1169,7 @@ pub struct IMediaCapture2_Vtbl { #[cfg(not(all(feature = "Foundation_Collections", feature = "Media_MediaProperties")))] SetEncodingPropertiesAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaCapture3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaCapture3 { - type Vtable = IMediaCapture3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaCapture3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd4136f30_1564_466e_bc0a_af94e02ab016); -} +::windows_core::imp::com_interface!(IMediaCapture3, IMediaCapture3_Vtbl, 0xd4136f30_1564_466e_bc0a_af94e02ab016); #[repr(C)] #[doc(hidden)] pub struct IMediaCapture3_Vtbl { @@ -1894,16 +1183,7 @@ pub struct IMediaCapture3_Vtbl { pub PhotoConfirmationCaptured: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemovePhotoConfirmationCaptured: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaCapture4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaCapture4 { - type Vtable = IMediaCapture4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaCapture4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbacd6fd6_fb08_4947_aea2_ce14eff0ce13); -} +::windows_core::imp::com_interface!(IMediaCapture4, IMediaCapture4_Vtbl, 0xbacd6fd6_fb08_4947_aea2_ce14eff0ce13); #[repr(C)] #[doc(hidden)] pub struct IMediaCapture4_Vtbl { @@ -1937,16 +1217,7 @@ pub struct IMediaCapture4_Vtbl { #[cfg(not(feature = "Media_MediaProperties"))] PrepareAdvancedPhotoCaptureAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaCapture5(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaCapture5 { - type Vtable = IMediaCapture5_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaCapture5 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xda787c22_3a9b_4720_a71e_97900a316e5a); -} +::windows_core::imp::com_interface!(IMediaCapture5, IMediaCapture5_Vtbl, 0xda787c22_3a9b_4720_a71e_97900a316e5a); #[repr(C)] #[doc(hidden)] pub struct IMediaCapture5_Vtbl { @@ -1974,16 +1245,7 @@ pub struct IMediaCapture5_Vtbl { #[cfg(not(all(feature = "Graphics_Imaging", feature = "Media_Capture_Frames")))] CreateFrameReaderWithSubtypeAndSizeAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaCapture6(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaCapture6 { - type Vtable = IMediaCapture6_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaCapture6 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x228948bd_4b20_4bb1_9fd6_a583212a1012); -} +::windows_core::imp::com_interface!(IMediaCapture6, IMediaCapture6_Vtbl, 0x228948bd_4b20_4bb1_9fd6_a583212a1012); #[repr(C)] #[doc(hidden)] pub struct IMediaCapture6_Vtbl { @@ -1995,16 +1257,7 @@ pub struct IMediaCapture6_Vtbl { #[cfg(not(all(feature = "Foundation_Collections", feature = "Media_Capture_Frames")))] CreateMultiSourceFrameReaderAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaCapture7(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaCapture7 { - type Vtable = IMediaCapture7_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaCapture7 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9169f102_8888_541a_95bc_24e4d462542a); -} +::windows_core::imp::com_interface!(IMediaCapture7, IMediaCapture7_Vtbl, 0x9169f102_8888_541a_95bc_24e4d462542a); #[repr(C)] #[doc(hidden)] pub struct IMediaCapture7_Vtbl { @@ -2014,16 +1267,7 @@ pub struct IMediaCapture7_Vtbl { #[cfg(not(feature = "UI_WindowManagement"))] CreateRelativePanelWatcher: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaCaptureDeviceExclusiveControlStatusChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaCaptureDeviceExclusiveControlStatusChangedEventArgs { - type Vtable = IMediaCaptureDeviceExclusiveControlStatusChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaCaptureDeviceExclusiveControlStatusChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9d2f920d_a588_43c6_89d6_5ad322af006a); -} +::windows_core::imp::com_interface!(IMediaCaptureDeviceExclusiveControlStatusChangedEventArgs, IMediaCaptureDeviceExclusiveControlStatusChangedEventArgs_Vtbl, 0x9d2f920d_a588_43c6_89d6_5ad322af006a); #[repr(C)] #[doc(hidden)] pub struct IMediaCaptureDeviceExclusiveControlStatusChangedEventArgs_Vtbl { @@ -2031,16 +1275,7 @@ pub struct IMediaCaptureDeviceExclusiveControlStatusChangedEventArgs_Vtbl { pub DeviceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut MediaCaptureDeviceExclusiveControlStatus) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaCaptureFailedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaCaptureFailedEventArgs { - type Vtable = IMediaCaptureFailedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaCaptureFailedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x80fde3f4_54c4_42c0_8d19_cea1a87ca18b); -} +::windows_core::imp::com_interface!(IMediaCaptureFailedEventArgs, IMediaCaptureFailedEventArgs_Vtbl, 0x80fde3f4_54c4_42c0_8d19_cea1a87ca18b); #[repr(C)] #[doc(hidden)] pub struct IMediaCaptureFailedEventArgs_Vtbl { @@ -2048,16 +1283,7 @@ pub struct IMediaCaptureFailedEventArgs_Vtbl { pub Message: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Code: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaCaptureFocusChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaCaptureFocusChangedEventArgs { - type Vtable = IMediaCaptureFocusChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaCaptureFocusChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x81e1bc7f_2277_493e_abee_d3f44ff98c04); -} +::windows_core::imp::com_interface!(IMediaCaptureFocusChangedEventArgs, IMediaCaptureFocusChangedEventArgs_Vtbl, 0x81e1bc7f_2277_493e_abee_d3f44ff98c04); #[repr(C)] #[doc(hidden)] pub struct IMediaCaptureFocusChangedEventArgs_Vtbl { @@ -2067,16 +1293,7 @@ pub struct IMediaCaptureFocusChangedEventArgs_Vtbl { #[cfg(not(feature = "Media_Devices"))] FocusState: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaCaptureInitializationSettings(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaCaptureInitializationSettings { - type Vtable = IMediaCaptureInitializationSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaCaptureInitializationSettings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9782ba70_ea65_4900_9356_8ca887726884); -} +::windows_core::imp::com_interface!(IMediaCaptureInitializationSettings, IMediaCaptureInitializationSettings_Vtbl, 0x9782ba70_ea65_4900_9356_8ca887726884); #[repr(C)] #[doc(hidden)] pub struct IMediaCaptureInitializationSettings_Vtbl { @@ -2090,16 +1307,7 @@ pub struct IMediaCaptureInitializationSettings_Vtbl { pub SetPhotoCaptureSource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: PhotoCaptureSource) -> ::windows_core::HRESULT, pub PhotoCaptureSource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut PhotoCaptureSource) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaCaptureInitializationSettings2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaCaptureInitializationSettings2 { - type Vtable = IMediaCaptureInitializationSettings2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaCaptureInitializationSettings2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x404e0626_c9dc_43e9_aee4_e6bf1b57b44c); -} +::windows_core::imp::com_interface!(IMediaCaptureInitializationSettings2, IMediaCaptureInitializationSettings2_Vtbl, 0x404e0626_c9dc_43e9_aee4_e6bf1b57b44c); #[repr(C)] #[doc(hidden)] pub struct IMediaCaptureInitializationSettings2_Vtbl { @@ -2109,16 +1317,7 @@ pub struct IMediaCaptureInitializationSettings2_Vtbl { pub SetAudioProcessing: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::AudioProcessing) -> ::windows_core::HRESULT, pub AudioProcessing: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::AudioProcessing) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaCaptureInitializationSettings3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaCaptureInitializationSettings3 { - type Vtable = IMediaCaptureInitializationSettings3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaCaptureInitializationSettings3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4160519d_be48_4730_8104_0cf6e9e97948); -} +::windows_core::imp::com_interface!(IMediaCaptureInitializationSettings3, IMediaCaptureInitializationSettings3_Vtbl, 0x4160519d_be48_4730_8104_0cf6e9e97948); #[repr(C)] #[doc(hidden)] pub struct IMediaCaptureInitializationSettings3_Vtbl { @@ -2140,16 +1339,7 @@ pub struct IMediaCaptureInitializationSettings3_Vtbl { #[cfg(not(feature = "Media_Core"))] VideoSource: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaCaptureInitializationSettings4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaCaptureInitializationSettings4 { - type Vtable = IMediaCaptureInitializationSettings4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaCaptureInitializationSettings4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf502a537_4cb7_4d28_95ed_4f9f012e0518); -} +::windows_core::imp::com_interface!(IMediaCaptureInitializationSettings4, IMediaCaptureInitializationSettings4_Vtbl, 0xf502a537_4cb7_4d28_95ed_4f9f012e0518); #[repr(C)] #[doc(hidden)] pub struct IMediaCaptureInitializationSettings4_Vtbl { @@ -2163,16 +1353,7 @@ pub struct IMediaCaptureInitializationSettings4_Vtbl { pub PhotoMediaDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetPhotoMediaDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaCaptureInitializationSettings5(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaCaptureInitializationSettings5 { - type Vtable = IMediaCaptureInitializationSettings5_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaCaptureInitializationSettings5 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd5a2e3b8_2626_4e94_b7b3_5308a0f64b1a); -} +::windows_core::imp::com_interface!(IMediaCaptureInitializationSettings5, IMediaCaptureInitializationSettings5_Vtbl, 0xd5a2e3b8_2626_4e94_b7b3_5308a0f64b1a); #[repr(C)] #[doc(hidden)] pub struct IMediaCaptureInitializationSettings5_Vtbl { @@ -2190,16 +1371,7 @@ pub struct IMediaCaptureInitializationSettings5_Vtbl { pub MemoryPreference: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut MediaCaptureMemoryPreference) -> ::windows_core::HRESULT, pub SetMemoryPreference: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: MediaCaptureMemoryPreference) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaCaptureInitializationSettings6(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaCaptureInitializationSettings6 { - type Vtable = IMediaCaptureInitializationSettings6_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaCaptureInitializationSettings6 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb2e26b47_3db1_4d33_ab63_0ffa09056585); -} +::windows_core::imp::com_interface!(IMediaCaptureInitializationSettings6, IMediaCaptureInitializationSettings6_Vtbl, 0xb2e26b47_3db1_4d33_ab63_0ffa09056585); #[repr(C)] #[doc(hidden)] pub struct IMediaCaptureInitializationSettings6_Vtbl { @@ -2207,16 +1379,7 @@ pub struct IMediaCaptureInitializationSettings6_Vtbl { pub AlwaysPlaySystemShutterSound: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetAlwaysPlaySystemShutterSound: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaCaptureInitializationSettings7(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaCaptureInitializationSettings7 { - type Vtable = IMediaCaptureInitializationSettings7_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaCaptureInitializationSettings7 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x41546967_f58a_5d82_9ef4_ed572fb5e34e); -} +::windows_core::imp::com_interface!(IMediaCaptureInitializationSettings7, IMediaCaptureInitializationSettings7_Vtbl, 0x41546967_f58a_5d82_9ef4_ed572fb5e34e); #[repr(C)] #[doc(hidden)] pub struct IMediaCaptureInitializationSettings7_Vtbl { @@ -2232,16 +1395,7 @@ pub struct IMediaCaptureInitializationSettings7_Vtbl { pub DeviceUri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetDeviceUri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaCapturePauseResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaCapturePauseResult { - type Vtable = IMediaCapturePauseResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaCapturePauseResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaec47ca3_4477_4b04_a06f_2c1c5182fe9d); -} +::windows_core::imp::com_interface!(IMediaCapturePauseResult, IMediaCapturePauseResult_Vtbl, 0xaec47ca3_4477_4b04_a06f_2c1c5182fe9d); #[repr(C)] #[doc(hidden)] pub struct IMediaCapturePauseResult_Vtbl { @@ -2249,16 +1403,7 @@ pub struct IMediaCapturePauseResult_Vtbl { pub LastFrame: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RecordDuration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::TimeSpan) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaCaptureRelativePanelWatcher(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaCaptureRelativePanelWatcher { - type Vtable = IMediaCaptureRelativePanelWatcher_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaCaptureRelativePanelWatcher { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7d896566_04be_5b89_b30e_bd34a9f12db0); -} +::windows_core::imp::com_interface!(IMediaCaptureRelativePanelWatcher, IMediaCaptureRelativePanelWatcher_Vtbl, 0x7d896566_04be_5b89_b30e_bd34a9f12db0); #[repr(C)] #[doc(hidden)] pub struct IMediaCaptureRelativePanelWatcher_Vtbl { @@ -2272,16 +1417,7 @@ pub struct IMediaCaptureRelativePanelWatcher_Vtbl { pub Start: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Stop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaCaptureSettings(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaCaptureSettings { - type Vtable = IMediaCaptureSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaCaptureSettings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1d83aafe_6d45_4477_8dc4_ac5bc01c4091); -} +::windows_core::imp::com_interface!(IMediaCaptureSettings, IMediaCaptureSettings_Vtbl, 0x1d83aafe_6d45_4477_8dc4_ac5bc01c4091); #[repr(C)] #[doc(hidden)] pub struct IMediaCaptureSettings_Vtbl { @@ -2292,16 +1428,7 @@ pub struct IMediaCaptureSettings_Vtbl { pub PhotoCaptureSource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut PhotoCaptureSource) -> ::windows_core::HRESULT, pub VideoDeviceCharacteristic: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut VideoDeviceCharacteristic) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaCaptureSettings2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaCaptureSettings2 { - type Vtable = IMediaCaptureSettings2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaCaptureSettings2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6f9e7cfb_fa9f_4b13_9cbe_5ab94f1f3493); -} +::windows_core::imp::com_interface!(IMediaCaptureSettings2, IMediaCaptureSettings2_Vtbl, 0x6f9e7cfb_fa9f_4b13_9cbe_5ab94f1f3493); #[repr(C)] #[doc(hidden)] pub struct IMediaCaptureSettings2_Vtbl { @@ -2315,16 +1442,7 @@ pub struct IMediaCaptureSettings2_Vtbl { pub MediaCategory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut MediaCategory) -> ::windows_core::HRESULT, pub AudioProcessing: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::AudioProcessing) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaCaptureSettings3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaCaptureSettings3 { - type Vtable = IMediaCaptureSettings3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaCaptureSettings3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x303c67c2_8058_4b1b_b877_8c2ef3528440); -} +::windows_core::imp::com_interface!(IMediaCaptureSettings3, IMediaCaptureSettings3_Vtbl, 0x303c67c2_8058_4b1b_b877_8c2ef3528440); #[repr(C)] #[doc(hidden)] pub struct IMediaCaptureSettings3_Vtbl { @@ -2334,16 +1452,7 @@ pub struct IMediaCaptureSettings3_Vtbl { #[cfg(not(feature = "Graphics_DirectX_Direct3D11"))] Direct3D11Device: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaCaptureStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaCaptureStatics { - type Vtable = IMediaCaptureStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaCaptureStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xacef81ff_99ed_4645_965e_1925cfc63834); -} +::windows_core::imp::com_interface!(IMediaCaptureStatics, IMediaCaptureStatics_Vtbl, 0xacef81ff_99ed_4645_965e_1925cfc63834); #[repr(C)] #[doc(hidden)] pub struct IMediaCaptureStatics_Vtbl { @@ -2362,16 +1471,7 @@ pub struct IMediaCaptureStatics_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] FindKnownVideoProfiles: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaCaptureStopResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaCaptureStopResult { - type Vtable = IMediaCaptureStopResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaCaptureStopResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf9db6a2a_a092_4ad1_97d4_f201f9d082db); -} +::windows_core::imp::com_interface!(IMediaCaptureStopResult, IMediaCaptureStopResult_Vtbl, 0xf9db6a2a_a092_4ad1_97d4_f201f9d082db); #[repr(C)] #[doc(hidden)] pub struct IMediaCaptureStopResult_Vtbl { @@ -2379,16 +1479,7 @@ pub struct IMediaCaptureStopResult_Vtbl { pub LastFrame: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RecordDuration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::TimeSpan) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaCaptureVideoPreview(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaCaptureVideoPreview { - type Vtable = IMediaCaptureVideoPreview_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaCaptureVideoPreview { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x27727073_549e_447f_a20a_4f03c479d8c0); -} +::windows_core::imp::com_interface!(IMediaCaptureVideoPreview, IMediaCaptureVideoPreview_Vtbl, 0x27727073_549e_447f_a20a_4f03c479d8c0); #[repr(C)] #[doc(hidden)] pub struct IMediaCaptureVideoPreview_Vtbl { @@ -2404,16 +1495,7 @@ pub struct IMediaCaptureVideoPreview_Vtbl { StartPreviewToCustomSinkIdAsync: usize, pub StopPreviewAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaCaptureVideoProfile(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaCaptureVideoProfile { - type Vtable = IMediaCaptureVideoProfile_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaCaptureVideoProfile { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x21a073bf_a3ee_4ecf_9ef6_50b0bc4e1305); -} +::windows_core::imp::com_interface!(IMediaCaptureVideoProfile, IMediaCaptureVideoProfile_Vtbl, 0x21a073bf_a3ee_4ecf_9ef6_50b0bc4e1305); #[repr(C)] #[doc(hidden)] pub struct IMediaCaptureVideoProfile_Vtbl { @@ -2437,16 +1519,7 @@ pub struct IMediaCaptureVideoProfile_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetConcurrency: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaCaptureVideoProfile2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaCaptureVideoProfile2 { - type Vtable = IMediaCaptureVideoProfile2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaCaptureVideoProfile2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x97ddc95f_94ce_468f_9316_fc5bc2638f6b); -} +::windows_core::imp::com_interface!(IMediaCaptureVideoProfile2, IMediaCaptureVideoProfile2_Vtbl, 0x97ddc95f_94ce_468f_9316_fc5bc2638f6b); #[repr(C)] #[doc(hidden)] pub struct IMediaCaptureVideoProfile2_Vtbl { @@ -2460,16 +1533,7 @@ pub struct IMediaCaptureVideoProfile2_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Properties: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaCaptureVideoProfileMediaDescription(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaCaptureVideoProfileMediaDescription { - type Vtable = IMediaCaptureVideoProfileMediaDescription_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaCaptureVideoProfileMediaDescription { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8012afef_b691_49ff_83f2_c1e76eaaea1b); -} +::windows_core::imp::com_interface!(IMediaCaptureVideoProfileMediaDescription, IMediaCaptureVideoProfileMediaDescription_Vtbl, 0x8012afef_b691_49ff_83f2_c1e76eaaea1b); #[repr(C)] #[doc(hidden)] pub struct IMediaCaptureVideoProfileMediaDescription_Vtbl { @@ -2486,16 +1550,7 @@ pub struct IMediaCaptureVideoProfileMediaDescription_Vtbl { #[cfg(not(feature = "deprecated"))] IsHdrVideoSupported: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaCaptureVideoProfileMediaDescription2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaCaptureVideoProfileMediaDescription2 { - type Vtable = IMediaCaptureVideoProfileMediaDescription2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaCaptureVideoProfileMediaDescription2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc6a6ef13_322d_413a_b85a_68a88e02f4e9); -} +::windows_core::imp::com_interface!(IMediaCaptureVideoProfileMediaDescription2, IMediaCaptureVideoProfileMediaDescription2_Vtbl, 0xc6a6ef13_322d_413a_b85a_68a88e02f4e9); #[repr(C)] #[doc(hidden)] pub struct IMediaCaptureVideoProfileMediaDescription2_Vtbl { @@ -2506,16 +1561,7 @@ pub struct IMediaCaptureVideoProfileMediaDescription2_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Properties: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOptionalReferencePhotoCapturedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOptionalReferencePhotoCapturedEventArgs { - type Vtable = IOptionalReferencePhotoCapturedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOptionalReferencePhotoCapturedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x470f88b3_1e6d_4051_9c8b_f1d85af047b7); -} +::windows_core::imp::com_interface!(IOptionalReferencePhotoCapturedEventArgs, IOptionalReferencePhotoCapturedEventArgs_Vtbl, 0x470f88b3_1e6d_4051_9c8b_f1d85af047b7); #[repr(C)] #[doc(hidden)] pub struct IOptionalReferencePhotoCapturedEventArgs_Vtbl { @@ -2523,16 +1569,7 @@ pub struct IOptionalReferencePhotoCapturedEventArgs_Vtbl { pub Frame: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Context: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhotoCapturedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhotoCapturedEventArgs { - type Vtable = IPhotoCapturedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhotoCapturedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x373bfbc1_984e_4ff0_bf85_1c00aabc5a45); -} +::windows_core::imp::com_interface!(IPhotoCapturedEventArgs, IPhotoCapturedEventArgs_Vtbl, 0x373bfbc1_984e_4ff0_bf85_1c00aabc5a45); #[repr(C)] #[doc(hidden)] pub struct IPhotoCapturedEventArgs_Vtbl { @@ -2541,16 +1578,7 @@ pub struct IPhotoCapturedEventArgs_Vtbl { pub Thumbnail: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CaptureTimeOffset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::TimeSpan) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhotoConfirmationCapturedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhotoConfirmationCapturedEventArgs { - type Vtable = IPhotoConfirmationCapturedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhotoConfirmationCapturedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xab473672_c28a_4827_8f8d_3636d3beb51e); -} +::windows_core::imp::com_interface!(IPhotoConfirmationCapturedEventArgs, IPhotoConfirmationCapturedEventArgs_Vtbl, 0xab473672_c28a_4827_8f8d_3636d3beb51e); #[repr(C)] #[doc(hidden)] pub struct IPhotoConfirmationCapturedEventArgs_Vtbl { @@ -2558,16 +1586,7 @@ pub struct IPhotoConfirmationCapturedEventArgs_Vtbl { pub Frame: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CaptureTimeOffset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::TimeSpan) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IScreenCapture(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IScreenCapture { - type Vtable = IScreenCapture_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IScreenCapture { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x89179ef7_cd12_4e0e_a6d4_5b3de98b2e9b); -} +::windows_core::imp::com_interface!(IScreenCapture, IScreenCapture_Vtbl, 0x89179ef7_cd12_4e0e_a6d4_5b3de98b2e9b); #[repr(C)] #[doc(hidden)] pub struct IScreenCapture_Vtbl { @@ -2585,32 +1604,14 @@ pub struct IScreenCapture_Vtbl { pub SourceSuspensionChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveSourceSuspensionChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IScreenCaptureStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IScreenCaptureStatics { - type Vtable = IScreenCaptureStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IScreenCaptureStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc898c3b0_c8a5_11e2_8b8b_0800200c9a66); -} +::windows_core::imp::com_interface!(IScreenCaptureStatics, IScreenCaptureStatics_Vtbl, 0xc898c3b0_c8a5_11e2_8b8b_0800200c9a66); #[repr(C)] #[doc(hidden)] pub struct IScreenCaptureStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetForCurrentView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISourceSuspensionChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISourceSuspensionChangedEventArgs { - type Vtable = ISourceSuspensionChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISourceSuspensionChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2ece7b5e_d49b_4394_bc32_f97d6cedec1c); -} +::windows_core::imp::com_interface!(ISourceSuspensionChangedEventArgs, ISourceSuspensionChangedEventArgs_Vtbl, 0x2ece7b5e_d49b_4394_bc32_f97d6cedec1c); #[repr(C)] #[doc(hidden)] pub struct ISourceSuspensionChangedEventArgs_Vtbl { @@ -2618,16 +1619,7 @@ pub struct ISourceSuspensionChangedEventArgs_Vtbl { pub IsAudioSuspended: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub IsVideoSuspended: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVideoStreamConfiguration(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVideoStreamConfiguration { - type Vtable = IVideoStreamConfiguration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVideoStreamConfiguration { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd8770a6f_4390_4b5e_ad3e_0f8af0963490); -} +::windows_core::imp::com_interface!(IVideoStreamConfiguration, IVideoStreamConfiguration_Vtbl, 0xd8770a6f_4390_4b5e_ad3e_0f8af0963490); #[repr(C)] #[doc(hidden)] pub struct IVideoStreamConfiguration_Vtbl { @@ -2644,6 +1636,7 @@ pub struct IVideoStreamConfiguration_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AdvancedCapturedPhoto(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AdvancedCapturedPhoto, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AdvancedCapturedPhoto { pub fn Frame(&self) -> ::windows_core::Result { let this = self; @@ -2669,7 +1662,7 @@ impl AdvancedCapturedPhoto { } } pub fn FrameBoundsRelativeToReferencePhoto(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FrameBoundsRelativeToReferencePhoto)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2681,19 +1674,17 @@ impl ::windows_core::RuntimeType for AdvancedCapturedPhoto { } unsafe impl ::windows_core::Interface for AdvancedCapturedPhoto { type Vtable = IAdvancedCapturedPhoto_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AdvancedCapturedPhoto { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AdvancedCapturedPhoto { const NAME: &'static str = "Windows.Media.Capture.AdvancedCapturedPhoto"; } -::windows_core::imp::interface_hierarchy!(AdvancedCapturedPhoto, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AdvancedCapturedPhoto {} unsafe impl ::core::marker::Sync for AdvancedCapturedPhoto {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AdvancedPhotoCapture(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AdvancedPhotoCapture, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AdvancedPhotoCapture { pub fn CaptureAsync(&self) -> ::windows_core::Result> { let this = self; @@ -2753,19 +1744,17 @@ impl ::windows_core::RuntimeType for AdvancedPhotoCapture { } unsafe impl ::windows_core::Interface for AdvancedPhotoCapture { type Vtable = IAdvancedPhotoCapture_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AdvancedPhotoCapture { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AdvancedPhotoCapture { const NAME: &'static str = "Windows.Media.Capture.AdvancedPhotoCapture"; } -::windows_core::imp::interface_hierarchy!(AdvancedPhotoCapture, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AdvancedPhotoCapture {} unsafe impl ::core::marker::Sync for AdvancedPhotoCapture {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppBroadcastBackgroundService(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppBroadcastBackgroundService, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppBroadcastBackgroundService { pub fn SetPlugInState(&self, value: AppBroadcastPlugInState) -> ::windows_core::Result<()> { let this = self; @@ -2857,71 +1846,71 @@ impl AppBroadcastBackgroundService { } } pub fn SetBroadcastTitle(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetBroadcastTitle)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn BroadcastLanguage(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).BroadcastLanguage)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetBroadcastLanguage(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetBroadcastLanguage)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn BroadcastChannel(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).BroadcastChannel)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetBroadcastChannel(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetBroadcastChannel)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn BroadcastTitleChanged(&self, handler: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveBroadcastTitleChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveBroadcastTitleChanged)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn BroadcastLanguageChanged(&self, handler: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveBroadcastLanguageChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveBroadcastLanguageChanged)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn BroadcastChannelChanged(&self, handler: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveBroadcastChannelChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveBroadcastChannelChanged)(::windows_core::Interface::as_raw(this), token).ok() } } } @@ -2930,17 +1919,15 @@ impl ::windows_core::RuntimeType for AppBroadcastBackgroundService { } unsafe impl ::windows_core::Interface for AppBroadcastBackgroundService { type Vtable = IAppBroadcastBackgroundService_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppBroadcastBackgroundService { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppBroadcastBackgroundService { const NAME: &'static str = "Windows.Media.Capture.AppBroadcastBackgroundService"; } -::windows_core::imp::interface_hierarchy!(AppBroadcastBackgroundService, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppBroadcastBackgroundServiceSignInInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppBroadcastBackgroundServiceSignInInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppBroadcastBackgroundServiceSignInInfo { pub fn SignInState(&self) -> ::windows_core::Result { let this = self; @@ -3015,14 +2002,14 @@ impl AppBroadcastBackgroundServiceSignInInfo { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveUserNameChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveUserNameChanged)(::windows_core::Interface::as_raw(this), token).ok() } } } @@ -3031,17 +2018,15 @@ impl ::windows_core::RuntimeType for AppBroadcastBackgroundServiceSignInInfo { } unsafe impl ::windows_core::Interface for AppBroadcastBackgroundServiceSignInInfo { type Vtable = IAppBroadcastBackgroundServiceSignInInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppBroadcastBackgroundServiceSignInInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppBroadcastBackgroundServiceSignInInfo { const NAME: &'static str = "Windows.Media.Capture.AppBroadcastBackgroundServiceSignInInfo"; } -::windows_core::imp::interface_hierarchy!(AppBroadcastBackgroundServiceSignInInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppBroadcastBackgroundServiceStreamInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppBroadcastBackgroundServiceStreamInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppBroadcastBackgroundServiceStreamInfo { pub fn StreamState(&self) -> ::windows_core::Result { let this = self; @@ -3133,7 +2118,7 @@ impl AppBroadcastBackgroundServiceStreamInfo { unsafe { (::windows_core::Interface::vtable(this).RemoveVideoEncodingBitrateChanged)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn ReportProblemWithStream(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ReportProblemWithStream)(::windows_core::Interface::as_raw(this)).ok() } } } @@ -3142,17 +2127,15 @@ impl ::windows_core::RuntimeType for AppBroadcastBackgroundServiceStreamInfo { } unsafe impl ::windows_core::Interface for AppBroadcastBackgroundServiceStreamInfo { type Vtable = IAppBroadcastBackgroundServiceStreamInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppBroadcastBackgroundServiceStreamInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppBroadcastBackgroundServiceStreamInfo { const NAME: &'static str = "Windows.Media.Capture.AppBroadcastBackgroundServiceStreamInfo"; } -::windows_core::imp::interface_hierarchy!(AppBroadcastBackgroundServiceStreamInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppBroadcastCameraCaptureStateChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppBroadcastCameraCaptureStateChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppBroadcastCameraCaptureStateChangedEventArgs { pub fn State(&self) -> ::windows_core::Result { let this = self; @@ -3174,19 +2157,17 @@ impl ::windows_core::RuntimeType for AppBroadcastCameraCaptureStateChangedEventA } unsafe impl ::windows_core::Interface for AppBroadcastCameraCaptureStateChangedEventArgs { type Vtable = IAppBroadcastCameraCaptureStateChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppBroadcastCameraCaptureStateChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppBroadcastCameraCaptureStateChangedEventArgs { const NAME: &'static str = "Windows.Media.Capture.AppBroadcastCameraCaptureStateChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(AppBroadcastCameraCaptureStateChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppBroadcastCameraCaptureStateChangedEventArgs {} unsafe impl ::core::marker::Sync for AppBroadcastCameraCaptureStateChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppBroadcastGlobalSettings(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppBroadcastGlobalSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppBroadcastGlobalSettings { pub fn IsBroadcastEnabled(&self) -> ::windows_core::Result { let this = self; @@ -3332,17 +2313,15 @@ impl ::windows_core::RuntimeType for AppBroadcastGlobalSettings { } unsafe impl ::windows_core::Interface for AppBroadcastGlobalSettings { type Vtable = IAppBroadcastGlobalSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppBroadcastGlobalSettings { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppBroadcastGlobalSettings { const NAME: &'static str = "Windows.Media.Capture.AppBroadcastGlobalSettings"; } -::windows_core::imp::interface_hierarchy!(AppBroadcastGlobalSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppBroadcastHeartbeatRequestedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppBroadcastHeartbeatRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppBroadcastHeartbeatRequestedEventArgs { pub fn SetHandled(&self, value: bool) -> ::windows_core::Result<()> { let this = self; @@ -3361,14 +2340,11 @@ impl ::windows_core::RuntimeType for AppBroadcastHeartbeatRequestedEventArgs { } unsafe impl ::windows_core::Interface for AppBroadcastHeartbeatRequestedEventArgs { type Vtable = IAppBroadcastHeartbeatRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppBroadcastHeartbeatRequestedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppBroadcastHeartbeatRequestedEventArgs { const NAME: &'static str = "Windows.Media.Capture.AppBroadcastHeartbeatRequestedEventArgs"; } -::windows_core::imp::interface_hierarchy!(AppBroadcastHeartbeatRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); pub struct AppBroadcastManager; impl AppBroadcastManager { pub fn GetGlobalSettings() -> ::windows_core::Result { @@ -3407,6 +2383,7 @@ impl ::windows_core::RuntimeName for AppBroadcastManager { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppBroadcastMicrophoneCaptureStateChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppBroadcastMicrophoneCaptureStateChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppBroadcastMicrophoneCaptureStateChangedEventArgs { pub fn State(&self) -> ::windows_core::Result { let this = self; @@ -3428,19 +2405,17 @@ impl ::windows_core::RuntimeType for AppBroadcastMicrophoneCaptureStateChangedEv } unsafe impl ::windows_core::Interface for AppBroadcastMicrophoneCaptureStateChangedEventArgs { type Vtable = IAppBroadcastMicrophoneCaptureStateChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppBroadcastMicrophoneCaptureStateChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppBroadcastMicrophoneCaptureStateChangedEventArgs { const NAME: &'static str = "Windows.Media.Capture.AppBroadcastMicrophoneCaptureStateChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(AppBroadcastMicrophoneCaptureStateChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppBroadcastMicrophoneCaptureStateChangedEventArgs {} unsafe impl ::core::marker::Sync for AppBroadcastMicrophoneCaptureStateChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppBroadcastPlugIn(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppBroadcastPlugIn, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppBroadcastPlugIn { pub fn AppId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -3478,19 +2453,17 @@ impl ::windows_core::RuntimeType for AppBroadcastPlugIn { } unsafe impl ::windows_core::Interface for AppBroadcastPlugIn { type Vtable = IAppBroadcastPlugIn_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppBroadcastPlugIn { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppBroadcastPlugIn { const NAME: &'static str = "Windows.Media.Capture.AppBroadcastPlugIn"; } -::windows_core::imp::interface_hierarchy!(AppBroadcastPlugIn, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppBroadcastPlugIn {} unsafe impl ::core::marker::Sync for AppBroadcastPlugIn {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppBroadcastPlugInManager(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppBroadcastPlugInManager, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppBroadcastPlugInManager { pub fn IsBroadcastProviderAvailable(&self) -> ::windows_core::Result { let this = self; @@ -3550,19 +2523,17 @@ impl ::windows_core::RuntimeType for AppBroadcastPlugInManager { } unsafe impl ::windows_core::Interface for AppBroadcastPlugInManager { type Vtable = IAppBroadcastPlugInManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppBroadcastPlugInManager { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppBroadcastPlugInManager { const NAME: &'static str = "Windows.Media.Capture.AppBroadcastPlugInManager"; } -::windows_core::imp::interface_hierarchy!(AppBroadcastPlugInManager, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppBroadcastPlugInManager {} unsafe impl ::core::marker::Sync for AppBroadcastPlugInManager {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppBroadcastPlugInStateChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppBroadcastPlugInStateChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppBroadcastPlugInStateChangedEventArgs { pub fn PlugInState(&self) -> ::windows_core::Result { let this = self; @@ -3577,19 +2548,17 @@ impl ::windows_core::RuntimeType for AppBroadcastPlugInStateChangedEventArgs { } unsafe impl ::windows_core::Interface for AppBroadcastPlugInStateChangedEventArgs { type Vtable = IAppBroadcastPlugInStateChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppBroadcastPlugInStateChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppBroadcastPlugInStateChangedEventArgs { const NAME: &'static str = "Windows.Media.Capture.AppBroadcastPlugInStateChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(AppBroadcastPlugInStateChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppBroadcastPlugInStateChangedEventArgs {} unsafe impl ::core::marker::Sync for AppBroadcastPlugInStateChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppBroadcastPreview(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppBroadcastPreview, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppBroadcastPreview { pub fn StopPreview(&self) -> ::windows_core::Result<()> { let this = self; @@ -3636,19 +2605,17 @@ impl ::windows_core::RuntimeType for AppBroadcastPreview { } unsafe impl ::windows_core::Interface for AppBroadcastPreview { type Vtable = IAppBroadcastPreview_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppBroadcastPreview { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppBroadcastPreview { const NAME: &'static str = "Windows.Media.Capture.AppBroadcastPreview"; } -::windows_core::imp::interface_hierarchy!(AppBroadcastPreview, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppBroadcastPreview {} unsafe impl ::core::marker::Sync for AppBroadcastPreview {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppBroadcastPreviewStateChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppBroadcastPreviewStateChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppBroadcastPreviewStateChangedEventArgs { pub fn PreviewState(&self) -> ::windows_core::Result { let this = self; @@ -3670,19 +2637,17 @@ impl ::windows_core::RuntimeType for AppBroadcastPreviewStateChangedEventArgs { } unsafe impl ::windows_core::Interface for AppBroadcastPreviewStateChangedEventArgs { type Vtable = IAppBroadcastPreviewStateChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppBroadcastPreviewStateChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppBroadcastPreviewStateChangedEventArgs { const NAME: &'static str = "Windows.Media.Capture.AppBroadcastPreviewStateChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(AppBroadcastPreviewStateChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppBroadcastPreviewStateChangedEventArgs {} unsafe impl ::core::marker::Sync for AppBroadcastPreviewStateChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppBroadcastPreviewStreamReader(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppBroadcastPreviewStreamReader, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppBroadcastPreviewStreamReader { pub fn VideoWidth(&self) -> ::windows_core::Result { let this = self; @@ -3750,19 +2715,17 @@ impl ::windows_core::RuntimeType for AppBroadcastPreviewStreamReader { } unsafe impl ::windows_core::Interface for AppBroadcastPreviewStreamReader { type Vtable = IAppBroadcastPreviewStreamReader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppBroadcastPreviewStreamReader { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppBroadcastPreviewStreamReader { const NAME: &'static str = "Windows.Media.Capture.AppBroadcastPreviewStreamReader"; } -::windows_core::imp::interface_hierarchy!(AppBroadcastPreviewStreamReader, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppBroadcastPreviewStreamReader {} unsafe impl ::core::marker::Sync for AppBroadcastPreviewStreamReader {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppBroadcastPreviewStreamVideoFrame(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppBroadcastPreviewStreamVideoFrame, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppBroadcastPreviewStreamVideoFrame { pub fn VideoHeader(&self) -> ::windows_core::Result { let this = self; @@ -3786,19 +2749,17 @@ impl ::windows_core::RuntimeType for AppBroadcastPreviewStreamVideoFrame { } unsafe impl ::windows_core::Interface for AppBroadcastPreviewStreamVideoFrame { type Vtable = IAppBroadcastPreviewStreamVideoFrame_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppBroadcastPreviewStreamVideoFrame { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppBroadcastPreviewStreamVideoFrame { const NAME: &'static str = "Windows.Media.Capture.AppBroadcastPreviewStreamVideoFrame"; } -::windows_core::imp::interface_hierarchy!(AppBroadcastPreviewStreamVideoFrame, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppBroadcastPreviewStreamVideoFrame {} unsafe impl ::core::marker::Sync for AppBroadcastPreviewStreamVideoFrame {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppBroadcastPreviewStreamVideoHeader(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppBroadcastPreviewStreamVideoHeader, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppBroadcastPreviewStreamVideoHeader { pub fn AbsoluteTimestamp(&self) -> ::windows_core::Result { let this = self; @@ -3834,19 +2795,17 @@ impl ::windows_core::RuntimeType for AppBroadcastPreviewStreamVideoHeader { } unsafe impl ::windows_core::Interface for AppBroadcastPreviewStreamVideoHeader { type Vtable = IAppBroadcastPreviewStreamVideoHeader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppBroadcastPreviewStreamVideoHeader { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppBroadcastPreviewStreamVideoHeader { const NAME: &'static str = "Windows.Media.Capture.AppBroadcastPreviewStreamVideoHeader"; } -::windows_core::imp::interface_hierarchy!(AppBroadcastPreviewStreamVideoHeader, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppBroadcastPreviewStreamVideoHeader {} unsafe impl ::core::marker::Sync for AppBroadcastPreviewStreamVideoHeader {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppBroadcastProviderSettings(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppBroadcastProviderSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppBroadcastProviderSettings { pub fn SetDefaultBroadcastTitle(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { let this = self; @@ -3931,17 +2890,15 @@ impl ::windows_core::RuntimeType for AppBroadcastProviderSettings { } unsafe impl ::windows_core::Interface for AppBroadcastProviderSettings { type Vtable = IAppBroadcastProviderSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppBroadcastProviderSettings { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppBroadcastProviderSettings { const NAME: &'static str = "Windows.Media.Capture.AppBroadcastProviderSettings"; } -::windows_core::imp::interface_hierarchy!(AppBroadcastProviderSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppBroadcastServices(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppBroadcastServices, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppBroadcastServices { pub fn CaptureTargetType(&self) -> ::windows_core::Result { let this = self; @@ -4036,19 +2993,17 @@ impl ::windows_core::RuntimeType for AppBroadcastServices { } unsafe impl ::windows_core::Interface for AppBroadcastServices { type Vtable = IAppBroadcastServices_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppBroadcastServices { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppBroadcastServices { const NAME: &'static str = "Windows.Media.Capture.AppBroadcastServices"; } -::windows_core::imp::interface_hierarchy!(AppBroadcastServices, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppBroadcastServices {} unsafe impl ::core::marker::Sync for AppBroadcastServices {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppBroadcastSignInStateChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppBroadcastSignInStateChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppBroadcastSignInStateChangedEventArgs { pub fn SignInState(&self) -> ::windows_core::Result { let this = self; @@ -4070,17 +3025,15 @@ impl ::windows_core::RuntimeType for AppBroadcastSignInStateChangedEventArgs { } unsafe impl ::windows_core::Interface for AppBroadcastSignInStateChangedEventArgs { type Vtable = IAppBroadcastSignInStateChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppBroadcastSignInStateChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppBroadcastSignInStateChangedEventArgs { const NAME: &'static str = "Windows.Media.Capture.AppBroadcastSignInStateChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(AppBroadcastSignInStateChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppBroadcastState(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppBroadcastState, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppBroadcastState { pub fn IsCaptureTargetRunning(&self) -> ::windows_core::Result { let this = self; @@ -4322,19 +3275,17 @@ impl ::windows_core::RuntimeType for AppBroadcastState { } unsafe impl ::windows_core::Interface for AppBroadcastState { type Vtable = IAppBroadcastState_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppBroadcastState { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppBroadcastState { const NAME: &'static str = "Windows.Media.Capture.AppBroadcastState"; } -::windows_core::imp::interface_hierarchy!(AppBroadcastState, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppBroadcastState {} unsafe impl ::core::marker::Sync for AppBroadcastState {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppBroadcastStreamAudioFrame(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppBroadcastStreamAudioFrame, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppBroadcastStreamAudioFrame { pub fn AudioHeader(&self) -> ::windows_core::Result { let this = self; @@ -4358,17 +3309,15 @@ impl ::windows_core::RuntimeType for AppBroadcastStreamAudioFrame { } unsafe impl ::windows_core::Interface for AppBroadcastStreamAudioFrame { type Vtable = IAppBroadcastStreamAudioFrame_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppBroadcastStreamAudioFrame { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppBroadcastStreamAudioFrame { const NAME: &'static str = "Windows.Media.Capture.AppBroadcastStreamAudioFrame"; } -::windows_core::imp::interface_hierarchy!(AppBroadcastStreamAudioFrame, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppBroadcastStreamAudioHeader(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppBroadcastStreamAudioHeader, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppBroadcastStreamAudioHeader { pub fn AbsoluteTimestamp(&self) -> ::windows_core::Result { let this = self; @@ -4411,17 +3360,15 @@ impl ::windows_core::RuntimeType for AppBroadcastStreamAudioHeader { } unsafe impl ::windows_core::Interface for AppBroadcastStreamAudioHeader { type Vtable = IAppBroadcastStreamAudioHeader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppBroadcastStreamAudioHeader { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppBroadcastStreamAudioHeader { const NAME: &'static str = "Windows.Media.Capture.AppBroadcastStreamAudioHeader"; } -::windows_core::imp::interface_hierarchy!(AppBroadcastStreamAudioHeader, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppBroadcastStreamReader(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppBroadcastStreamReader, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppBroadcastStreamReader { pub fn AudioChannels(&self) -> ::windows_core::Result { let this = self; @@ -4522,17 +3469,15 @@ impl ::windows_core::RuntimeType for AppBroadcastStreamReader { } unsafe impl ::windows_core::Interface for AppBroadcastStreamReader { type Vtable = IAppBroadcastStreamReader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppBroadcastStreamReader { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppBroadcastStreamReader { const NAME: &'static str = "Windows.Media.Capture.AppBroadcastStreamReader"; } -::windows_core::imp::interface_hierarchy!(AppBroadcastStreamReader, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppBroadcastStreamStateChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppBroadcastStreamStateChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppBroadcastStreamStateChangedEventArgs { pub fn StreamState(&self) -> ::windows_core::Result { let this = self; @@ -4547,17 +3492,15 @@ impl ::windows_core::RuntimeType for AppBroadcastStreamStateChangedEventArgs { } unsafe impl ::windows_core::Interface for AppBroadcastStreamStateChangedEventArgs { type Vtable = IAppBroadcastStreamStateChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppBroadcastStreamStateChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppBroadcastStreamStateChangedEventArgs { const NAME: &'static str = "Windows.Media.Capture.AppBroadcastStreamStateChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(AppBroadcastStreamStateChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppBroadcastStreamVideoFrame(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppBroadcastStreamVideoFrame, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppBroadcastStreamVideoFrame { pub fn VideoHeader(&self) -> ::windows_core::Result { let this = self; @@ -4581,17 +3524,15 @@ impl ::windows_core::RuntimeType for AppBroadcastStreamVideoFrame { } unsafe impl ::windows_core::Interface for AppBroadcastStreamVideoFrame { type Vtable = IAppBroadcastStreamVideoFrame_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppBroadcastStreamVideoFrame { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppBroadcastStreamVideoFrame { const NAME: &'static str = "Windows.Media.Capture.AppBroadcastStreamVideoFrame"; } -::windows_core::imp::interface_hierarchy!(AppBroadcastStreamVideoFrame, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppBroadcastStreamVideoHeader(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppBroadcastStreamVideoHeader, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppBroadcastStreamVideoHeader { pub fn AbsoluteTimestamp(&self) -> ::windows_core::Result { let this = self; @@ -4641,17 +3582,15 @@ impl ::windows_core::RuntimeType for AppBroadcastStreamVideoHeader { } unsafe impl ::windows_core::Interface for AppBroadcastStreamVideoHeader { type Vtable = IAppBroadcastStreamVideoHeader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppBroadcastStreamVideoHeader { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppBroadcastStreamVideoHeader { const NAME: &'static str = "Windows.Media.Capture.AppBroadcastStreamVideoHeader"; } -::windows_core::imp::interface_hierarchy!(AppBroadcastStreamVideoHeader, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppBroadcastTriggerDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppBroadcastTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppBroadcastTriggerDetails { pub fn BackgroundService(&self) -> ::windows_core::Result { let this = self; @@ -4666,17 +3605,15 @@ impl ::windows_core::RuntimeType for AppBroadcastTriggerDetails { } unsafe impl ::windows_core::Interface for AppBroadcastTriggerDetails { type Vtable = IAppBroadcastTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppBroadcastTriggerDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppBroadcastTriggerDetails { const NAME: &'static str = "Windows.Media.Capture.AppBroadcastTriggerDetails"; } -::windows_core::imp::interface_hierarchy!(AppBroadcastTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppBroadcastViewerCountChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppBroadcastViewerCountChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppBroadcastViewerCountChangedEventArgs { pub fn ViewerCount(&self) -> ::windows_core::Result { let this = self; @@ -4691,19 +3628,17 @@ impl ::windows_core::RuntimeType for AppBroadcastViewerCountChangedEventArgs { } unsafe impl ::windows_core::Interface for AppBroadcastViewerCountChangedEventArgs { type Vtable = IAppBroadcastViewerCountChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppBroadcastViewerCountChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppBroadcastViewerCountChangedEventArgs { const NAME: &'static str = "Windows.Media.Capture.AppBroadcastViewerCountChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(AppBroadcastViewerCountChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppBroadcastViewerCountChangedEventArgs {} unsafe impl ::core::marker::Sync for AppBroadcastViewerCountChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppCapture(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppCapture, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppCapture { pub fn IsCapturingAudio(&self) -> ::windows_core::Result { let this = self; @@ -4761,17 +3696,15 @@ impl ::windows_core::RuntimeType for AppCapture { } unsafe impl ::windows_core::Interface for AppCapture { type Vtable = IAppCapture_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppCapture { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppCapture { const NAME: &'static str = "Windows.Media.Capture.AppCapture"; } -::windows_core::imp::interface_hierarchy!(AppCapture, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppCaptureAlternateShortcutKeys(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppCaptureAlternateShortcutKeys, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppCaptureAlternateShortcutKeys { #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] @@ -4926,13 +3859,13 @@ impl AppCaptureAlternateShortcutKeys { #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn SetToggleMicrophoneCaptureKey(&self, value: super::super::System::VirtualKey) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetToggleMicrophoneCaptureKey)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn ToggleMicrophoneCaptureKey(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ToggleMicrophoneCaptureKey)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4941,13 +3874,13 @@ impl AppCaptureAlternateShortcutKeys { #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn SetToggleMicrophoneCaptureKeyModifiers(&self, value: super::super::System::VirtualKeyModifiers) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetToggleMicrophoneCaptureKeyModifiers)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn ToggleMicrophoneCaptureKeyModifiers(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ToggleMicrophoneCaptureKeyModifiers)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4956,13 +3889,13 @@ impl AppCaptureAlternateShortcutKeys { #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn SetToggleCameraCaptureKey(&self, value: super::super::System::VirtualKey) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetToggleCameraCaptureKey)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn ToggleCameraCaptureKey(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ToggleCameraCaptureKey)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4971,13 +3904,13 @@ impl AppCaptureAlternateShortcutKeys { #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn SetToggleCameraCaptureKeyModifiers(&self, value: super::super::System::VirtualKeyModifiers) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetToggleCameraCaptureKeyModifiers)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn ToggleCameraCaptureKeyModifiers(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ToggleCameraCaptureKeyModifiers)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4986,13 +3919,13 @@ impl AppCaptureAlternateShortcutKeys { #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn SetToggleBroadcastKey(&self, value: super::super::System::VirtualKey) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetToggleBroadcastKey)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn ToggleBroadcastKey(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ToggleBroadcastKey)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5001,13 +3934,13 @@ impl AppCaptureAlternateShortcutKeys { #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn SetToggleBroadcastKeyModifiers(&self, value: super::super::System::VirtualKeyModifiers) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetToggleBroadcastKeyModifiers)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn ToggleBroadcastKeyModifiers(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ToggleBroadcastKeyModifiers)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5019,17 +3952,15 @@ impl ::windows_core::RuntimeType for AppCaptureAlternateShortcutKeys { } unsafe impl ::windows_core::Interface for AppCaptureAlternateShortcutKeys { type Vtable = IAppCaptureAlternateShortcutKeys_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppCaptureAlternateShortcutKeys { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppCaptureAlternateShortcutKeys { const NAME: &'static str = "Windows.Media.Capture.AppCaptureAlternateShortcutKeys"; } -::windows_core::imp::interface_hierarchy!(AppCaptureAlternateShortcutKeys, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppCaptureDurationGeneratedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppCaptureDurationGeneratedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppCaptureDurationGeneratedEventArgs { pub fn Duration(&self) -> ::windows_core::Result { let this = self; @@ -5044,19 +3975,17 @@ impl ::windows_core::RuntimeType for AppCaptureDurationGeneratedEventArgs { } unsafe impl ::windows_core::Interface for AppCaptureDurationGeneratedEventArgs { type Vtable = IAppCaptureDurationGeneratedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppCaptureDurationGeneratedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppCaptureDurationGeneratedEventArgs { const NAME: &'static str = "Windows.Media.Capture.AppCaptureDurationGeneratedEventArgs"; } -::windows_core::imp::interface_hierarchy!(AppCaptureDurationGeneratedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppCaptureDurationGeneratedEventArgs {} unsafe impl ::core::marker::Sync for AppCaptureDurationGeneratedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppCaptureFileGeneratedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppCaptureFileGeneratedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppCaptureFileGeneratedEventArgs { #[doc = "Required features: `\"Storage\"`"] #[cfg(feature = "Storage")] @@ -5073,14 +4002,11 @@ impl ::windows_core::RuntimeType for AppCaptureFileGeneratedEventArgs { } unsafe impl ::windows_core::Interface for AppCaptureFileGeneratedEventArgs { type Vtable = IAppCaptureFileGeneratedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppCaptureFileGeneratedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppCaptureFileGeneratedEventArgs { const NAME: &'static str = "Windows.Media.Capture.AppCaptureFileGeneratedEventArgs"; } -::windows_core::imp::interface_hierarchy!(AppCaptureFileGeneratedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppCaptureFileGeneratedEventArgs {} unsafe impl ::core::marker::Sync for AppCaptureFileGeneratedEventArgs {} pub struct AppCaptureManager; @@ -5109,6 +4035,8 @@ impl ::windows_core::RuntimeName for AppCaptureManager { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppCaptureMetadataWriter(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppCaptureMetadataWriter, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(AppCaptureMetadataWriter, super::super::Foundation::IClosable); impl AppCaptureMetadataWriter { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -5171,7 +4099,7 @@ impl AppCaptureMetadataWriter { unsafe { (::windows_core::Interface::vtable(this).RemoveMetadataPurged)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } } @@ -5180,20 +4108,17 @@ impl ::windows_core::RuntimeType for AppCaptureMetadataWriter { } unsafe impl ::windows_core::Interface for AppCaptureMetadataWriter { type Vtable = IAppCaptureMetadataWriter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppCaptureMetadataWriter { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppCaptureMetadataWriter { const NAME: &'static str = "Windows.Media.Capture.AppCaptureMetadataWriter"; } -::windows_core::imp::interface_hierarchy!(AppCaptureMetadataWriter, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for AppCaptureMetadataWriter {} unsafe impl ::core::marker::Send for AppCaptureMetadataWriter {} unsafe impl ::core::marker::Sync for AppCaptureMetadataWriter {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppCaptureMicrophoneCaptureStateChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppCaptureMicrophoneCaptureStateChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppCaptureMicrophoneCaptureStateChangedEventArgs { pub fn State(&self) -> ::windows_core::Result { let this = self; @@ -5215,19 +4140,17 @@ impl ::windows_core::RuntimeType for AppCaptureMicrophoneCaptureStateChangedEven } unsafe impl ::windows_core::Interface for AppCaptureMicrophoneCaptureStateChangedEventArgs { type Vtable = IAppCaptureMicrophoneCaptureStateChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppCaptureMicrophoneCaptureStateChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppCaptureMicrophoneCaptureStateChangedEventArgs { const NAME: &'static str = "Windows.Media.Capture.AppCaptureMicrophoneCaptureStateChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(AppCaptureMicrophoneCaptureStateChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppCaptureMicrophoneCaptureStateChangedEventArgs {} unsafe impl ::core::marker::Sync for AppCaptureMicrophoneCaptureStateChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppCaptureRecordOperation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppCaptureRecordOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppCaptureRecordOperation { pub fn StopRecording(&self) -> ::windows_core::Result<()> { let this = self; @@ -5318,19 +4241,17 @@ impl ::windows_core::RuntimeType for AppCaptureRecordOperation { } unsafe impl ::windows_core::Interface for AppCaptureRecordOperation { type Vtable = IAppCaptureRecordOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppCaptureRecordOperation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppCaptureRecordOperation { const NAME: &'static str = "Windows.Media.Capture.AppCaptureRecordOperation"; } -::windows_core::imp::interface_hierarchy!(AppCaptureRecordOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppCaptureRecordOperation {} unsafe impl ::core::marker::Sync for AppCaptureRecordOperation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppCaptureRecordingStateChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppCaptureRecordingStateChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppCaptureRecordingStateChangedEventArgs { pub fn State(&self) -> ::windows_core::Result { let this = self; @@ -5352,19 +4273,17 @@ impl ::windows_core::RuntimeType for AppCaptureRecordingStateChangedEventArgs { } unsafe impl ::windows_core::Interface for AppCaptureRecordingStateChangedEventArgs { type Vtable = IAppCaptureRecordingStateChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppCaptureRecordingStateChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppCaptureRecordingStateChangedEventArgs { const NAME: &'static str = "Windows.Media.Capture.AppCaptureRecordingStateChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(AppCaptureRecordingStateChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppCaptureRecordingStateChangedEventArgs {} unsafe impl ::core::marker::Sync for AppCaptureRecordingStateChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppCaptureServices(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppCaptureServices, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppCaptureServices { pub fn Record(&self) -> ::windows_core::Result { let this = self; @@ -5400,19 +4319,17 @@ impl ::windows_core::RuntimeType for AppCaptureServices { } unsafe impl ::windows_core::Interface for AppCaptureServices { type Vtable = IAppCaptureServices_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppCaptureServices { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppCaptureServices { const NAME: &'static str = "Windows.Media.Capture.AppCaptureServices"; } -::windows_core::imp::interface_hierarchy!(AppCaptureServices, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppCaptureServices {} unsafe impl ::core::marker::Sync for AppCaptureServices {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppCaptureSettings(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppCaptureSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppCaptureSettings { #[doc = "Required features: `\"Storage\"`"] #[cfg(feature = "Storage")] @@ -5633,91 +4550,91 @@ impl AppCaptureSettings { } } pub fn IsGpuConstrained(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsGpuConstrained)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn AlternateShortcutKeys(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AlternateShortcutKeys)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsMicrophoneCaptureEnabled(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsMicrophoneCaptureEnabled)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsMicrophoneCaptureEnabled(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsMicrophoneCaptureEnabled)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsMicrophoneCaptureEnabledByDefault(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsMicrophoneCaptureEnabledByDefault)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsMicrophoneCaptureEnabledByDefault(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsMicrophoneCaptureEnabledByDefault)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetSystemAudioGain(&self, value: f64) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetSystemAudioGain)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn SystemAudioGain(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SystemAudioGain)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetMicrophoneGain(&self, value: f64) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMicrophoneGain)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn MicrophoneGain(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MicrophoneGain)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetVideoEncodingFrameRateMode(&self, value: AppCaptureVideoEncodingFrameRateMode) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetVideoEncodingFrameRateMode)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn VideoEncodingFrameRateMode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).VideoEncodingFrameRateMode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsEchoCancellationEnabled(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsEchoCancellationEnabled)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsEchoCancellationEnabled(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsEchoCancellationEnabled)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsCursorImageCaptureEnabled(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsCursorImageCaptureEnabled)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsCursorImageCaptureEnabled(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsCursorImageCaptureEnabled)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5729,17 +4646,15 @@ impl ::windows_core::RuntimeType for AppCaptureSettings { } unsafe impl ::windows_core::Interface for AppCaptureSettings { type Vtable = IAppCaptureSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppCaptureSettings { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppCaptureSettings { const NAME: &'static str = "Windows.Media.Capture.AppCaptureSettings"; } -::windows_core::imp::interface_hierarchy!(AppCaptureSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppCaptureState(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppCaptureState, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppCaptureState { pub fn IsTargetRunning(&self) -> ::windows_core::Result { let this = self; @@ -5818,19 +4733,17 @@ impl ::windows_core::RuntimeType for AppCaptureState { } unsafe impl ::windows_core::Interface for AppCaptureState { type Vtable = IAppCaptureState_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppCaptureState { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppCaptureState { const NAME: &'static str = "Windows.Media.Capture.AppCaptureState"; } -::windows_core::imp::interface_hierarchy!(AppCaptureState, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppCaptureState {} unsafe impl ::core::marker::Sync for AppCaptureState {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CameraCaptureUI(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CameraCaptureUI, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CameraCaptureUI { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -5868,17 +4781,15 @@ impl ::windows_core::RuntimeType for CameraCaptureUI { } unsafe impl ::windows_core::Interface for CameraCaptureUI { type Vtable = ICameraCaptureUI_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CameraCaptureUI { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CameraCaptureUI { const NAME: &'static str = "Windows.Media.Capture.CameraCaptureUI"; } -::windows_core::imp::interface_hierarchy!(CameraCaptureUI, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CameraCaptureUIPhotoCaptureSettings(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CameraCaptureUIPhotoCaptureSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CameraCaptureUIPhotoCaptureSettings { pub fn Format(&self) -> ::windows_core::Result { let this = self; @@ -5941,19 +4852,17 @@ impl ::windows_core::RuntimeType for CameraCaptureUIPhotoCaptureSettings { } unsafe impl ::windows_core::Interface for CameraCaptureUIPhotoCaptureSettings { type Vtable = ICameraCaptureUIPhotoCaptureSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CameraCaptureUIPhotoCaptureSettings { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CameraCaptureUIPhotoCaptureSettings { const NAME: &'static str = "Windows.Media.Capture.CameraCaptureUIPhotoCaptureSettings"; } -::windows_core::imp::interface_hierarchy!(CameraCaptureUIPhotoCaptureSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CameraCaptureUIPhotoCaptureSettings {} unsafe impl ::core::marker::Sync for CameraCaptureUIPhotoCaptureSettings {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CameraCaptureUIVideoCaptureSettings(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CameraCaptureUIVideoCaptureSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CameraCaptureUIVideoCaptureSettings { pub fn Format(&self) -> ::windows_core::Result { let this = self; @@ -6005,14 +4914,11 @@ impl ::windows_core::RuntimeType for CameraCaptureUIVideoCaptureSettings { } unsafe impl ::windows_core::Interface for CameraCaptureUIVideoCaptureSettings { type Vtable = ICameraCaptureUIVideoCaptureSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CameraCaptureUIVideoCaptureSettings { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CameraCaptureUIVideoCaptureSettings { const NAME: &'static str = "Windows.Media.Capture.CameraCaptureUIVideoCaptureSettings"; } -::windows_core::imp::interface_hierarchy!(CameraCaptureUIVideoCaptureSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CameraCaptureUIVideoCaptureSettings {} unsafe impl ::core::marker::Sync for CameraCaptureUIVideoCaptureSettings {} pub struct CameraOptionsUI; @@ -6035,6 +4941,9 @@ impl ::windows_core::RuntimeName for CameraOptionsUI { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CapturedFrame(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CapturedFrame, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Storage_Streams")] +::windows_core::imp::required_hierarchy!(CapturedFrame, super::super::Foundation::IClosable, super::super::Storage::Streams::IContentTypeProvider, super::super::Storage::Streams::IInputStream, super::super::Storage::Streams::IOutputStream, super::super::Storage::Streams::IRandomAccessStream, super::super::Storage::Streams::IRandomAccessStreamWithContentType); impl CapturedFrame { pub fn Width(&self) -> ::windows_core::Result { let this = self; @@ -6051,7 +4960,7 @@ impl CapturedFrame { } } pub fn ControlValues(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ControlValues)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6060,7 +4969,7 @@ impl CapturedFrame { #[doc = "Required features: `\"Foundation_Collections\"`, `\"Graphics_Imaging\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Graphics_Imaging"))] pub fn BitmapProperties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).BitmapProperties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6069,20 +4978,20 @@ impl CapturedFrame { #[doc = "Required features: `\"Graphics_Imaging\"`"] #[cfg(feature = "Graphics_Imaging")] pub fn SoftwareBitmap(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SoftwareBitmap)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn ContentType(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ContentType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6092,30 +5001,30 @@ 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::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), count, options, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ReadAsync)(::windows_core::Interface::as_raw(this), buffer.into_param().abi(), count, options, &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn WriteAsync(&self, buffer: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).WriteAsync)(::windows_core::Interface::as_raw(this), buffer.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn FlushAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FlushAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6124,7 +5033,7 @@ impl CapturedFrame { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn Size(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Size)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6133,13 +5042,13 @@ impl CapturedFrame { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn SetSize(&self, value: u64) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetSize)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn GetInputStreamAt(&self, position: u64) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetInputStreamAt)(::windows_core::Interface::as_raw(this), position, &mut result__).from_abi(result__) @@ -6148,7 +5057,7 @@ impl CapturedFrame { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn GetOutputStreamAt(&self, position: u64) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetOutputStreamAt)(::windows_core::Interface::as_raw(this), position, &mut result__).from_abi(result__) @@ -6157,7 +5066,7 @@ impl CapturedFrame { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn Position(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Position)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6166,13 +5075,13 @@ impl CapturedFrame { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn Seek(&self, position: u64) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Seek)(::windows_core::Interface::as_raw(this), position).ok() } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn CloneStream(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CloneStream)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6181,7 +5090,7 @@ impl CapturedFrame { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn CanRead(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CanRead)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6190,7 +5099,7 @@ impl CapturedFrame { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn CanWrite(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CanWrite)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6202,30 +5111,17 @@ impl ::windows_core::RuntimeType for CapturedFrame { } unsafe impl ::windows_core::Interface for CapturedFrame { type Vtable = ICapturedFrame_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CapturedFrame { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CapturedFrame { const NAME: &'static str = "Windows.Media.Capture.CapturedFrame"; } -::windows_core::imp::interface_hierarchy!(CapturedFrame, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CapturedFrame {} -#[cfg(feature = "Storage_Streams")] -impl ::windows_core::CanTryInto for CapturedFrame {} -#[cfg(feature = "Storage_Streams")] -impl ::windows_core::CanTryInto for CapturedFrame {} -#[cfg(feature = "Storage_Streams")] -impl ::windows_core::CanTryInto for CapturedFrame {} -#[cfg(feature = "Storage_Streams")] -impl ::windows_core::CanTryInto for CapturedFrame {} -#[cfg(feature = "Storage_Streams")] -impl ::windows_core::CanTryInto for CapturedFrame {} unsafe impl ::core::marker::Send for CapturedFrame {} unsafe impl ::core::marker::Sync for CapturedFrame {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CapturedFrameControlValues(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CapturedFrameControlValues, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CapturedFrameControlValues { pub fn Exposure(&self) -> ::windows_core::Result> { let this = self; @@ -6295,21 +5191,21 @@ impl CapturedFrameControlValues { #[doc = "Required features: `\"Media_Devices\"`"] #[cfg(feature = "Media_Devices")] pub fn FocusState(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FocusState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsoDigitalGain(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsoDigitalGain)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsoAnalogGain(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsoAnalogGain)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6318,14 +5214,14 @@ impl CapturedFrameControlValues { #[doc = "Required features: `\"Media_MediaProperties\"`"] #[cfg(feature = "Media_MediaProperties")] pub fn SensorFrameRate(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SensorFrameRate)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn WhiteBalanceGain(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).WhiteBalanceGain)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6337,19 +5233,17 @@ impl ::windows_core::RuntimeType for CapturedFrameControlValues { } unsafe impl ::windows_core::Interface for CapturedFrameControlValues { type Vtable = ICapturedFrameControlValues_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CapturedFrameControlValues { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CapturedFrameControlValues { const NAME: &'static str = "Windows.Media.Capture.CapturedFrameControlValues"; } -::windows_core::imp::interface_hierarchy!(CapturedFrameControlValues, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CapturedFrameControlValues {} unsafe impl ::core::marker::Sync for CapturedFrameControlValues {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CapturedPhoto(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CapturedPhoto, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CapturedPhoto { pub fn Frame(&self) -> ::windows_core::Result { let this = self; @@ -6371,19 +5265,17 @@ impl ::windows_core::RuntimeType for CapturedPhoto { } unsafe impl ::windows_core::Interface for CapturedPhoto { type Vtable = ICapturedPhoto_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CapturedPhoto { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CapturedPhoto { const NAME: &'static str = "Windows.Media.Capture.CapturedPhoto"; } -::windows_core::imp::interface_hierarchy!(CapturedPhoto, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CapturedPhoto {} unsafe impl ::core::marker::Sync for CapturedPhoto {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GameBarServices(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GameBarServices, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GameBarServices { pub fn TargetCapturePolicy(&self) -> ::windows_core::Result { let this = self; @@ -6448,19 +5340,17 @@ impl ::windows_core::RuntimeType for GameBarServices { } unsafe impl ::windows_core::Interface for GameBarServices { type Vtable = IGameBarServices_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GameBarServices { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GameBarServices { const NAME: &'static str = "Windows.Media.Capture.GameBarServices"; } -::windows_core::imp::interface_hierarchy!(GameBarServices, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GameBarServices {} unsafe impl ::core::marker::Sync for GameBarServices {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GameBarServicesCommandEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GameBarServicesCommandEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GameBarServicesCommandEventArgs { pub fn Command(&self) -> ::windows_core::Result { let this = self; @@ -6482,19 +5372,17 @@ impl ::windows_core::RuntimeType for GameBarServicesCommandEventArgs { } unsafe impl ::windows_core::Interface for GameBarServicesCommandEventArgs { type Vtable = IGameBarServicesCommandEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GameBarServicesCommandEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GameBarServicesCommandEventArgs { const NAME: &'static str = "Windows.Media.Capture.GameBarServicesCommandEventArgs"; } -::windows_core::imp::interface_hierarchy!(GameBarServicesCommandEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GameBarServicesCommandEventArgs {} unsafe impl ::core::marker::Sync for GameBarServicesCommandEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GameBarServicesManager(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GameBarServicesManager, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GameBarServicesManager { pub fn GameBarServicesCreated(&self, value: P0) -> ::windows_core::Result where @@ -6527,19 +5415,17 @@ impl ::windows_core::RuntimeType for GameBarServicesManager { } unsafe impl ::windows_core::Interface for GameBarServicesManager { type Vtable = IGameBarServicesManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GameBarServicesManager { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GameBarServicesManager { const NAME: &'static str = "Windows.Media.Capture.GameBarServicesManager"; } -::windows_core::imp::interface_hierarchy!(GameBarServicesManager, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GameBarServicesManager {} unsafe impl ::core::marker::Sync for GameBarServicesManager {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GameBarServicesManagerGameBarServicesCreatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GameBarServicesManagerGameBarServicesCreatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GameBarServicesManagerGameBarServicesCreatedEventArgs { pub fn GameBarServices(&self) -> ::windows_core::Result { let this = self; @@ -6554,19 +5440,17 @@ impl ::windows_core::RuntimeType for GameBarServicesManagerGameBarServicesCreate } unsafe impl ::windows_core::Interface for GameBarServicesManagerGameBarServicesCreatedEventArgs { type Vtable = IGameBarServicesManagerGameBarServicesCreatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GameBarServicesManagerGameBarServicesCreatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GameBarServicesManagerGameBarServicesCreatedEventArgs { const NAME: &'static str = "Windows.Media.Capture.GameBarServicesManagerGameBarServicesCreatedEventArgs"; } -::windows_core::imp::interface_hierarchy!(GameBarServicesManagerGameBarServicesCreatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GameBarServicesManagerGameBarServicesCreatedEventArgs {} unsafe impl ::core::marker::Sync for GameBarServicesManagerGameBarServicesCreatedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GameBarServicesTargetInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GameBarServicesTargetInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GameBarServicesTargetInfo { pub fn DisplayName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -6602,19 +5486,17 @@ impl ::windows_core::RuntimeType for GameBarServicesTargetInfo { } unsafe impl ::windows_core::Interface for GameBarServicesTargetInfo { type Vtable = IGameBarServicesTargetInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GameBarServicesTargetInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GameBarServicesTargetInfo { const NAME: &'static str = "Windows.Media.Capture.GameBarServicesTargetInfo"; } -::windows_core::imp::interface_hierarchy!(GameBarServicesTargetInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GameBarServicesTargetInfo {} unsafe impl ::core::marker::Sync for GameBarServicesTargetInfo {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LowLagMediaRecording(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LowLagMediaRecording, ::windows_core::IUnknown, ::windows_core::IInspectable); impl LowLagMediaRecording { pub fn StartAsync(&self) -> ::windows_core::Result { let this = self; @@ -6640,14 +5522,14 @@ impl LowLagMediaRecording { #[doc = "Required features: `\"Media_Devices\"`"] #[cfg(feature = "Media_Devices")] pub fn PauseAsync(&self, behavior: super::Devices::MediaCapturePauseBehavior) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PauseAsync)(::windows_core::Interface::as_raw(this), behavior, &mut result__).from_abi(result__) } } pub fn ResumeAsync(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ResumeAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6656,14 +5538,14 @@ impl LowLagMediaRecording { #[doc = "Required features: `\"Media_Devices\"`"] #[cfg(feature = "Media_Devices")] pub fn PauseWithResultAsync(&self, behavior: super::Devices::MediaCapturePauseBehavior) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PauseWithResultAsync)(::windows_core::Interface::as_raw(this), behavior, &mut result__).from_abi(result__) } } pub fn StopWithResultAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).StopWithResultAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6675,17 +5557,15 @@ impl ::windows_core::RuntimeType for LowLagMediaRecording { } unsafe impl ::windows_core::Interface for LowLagMediaRecording { type Vtable = ILowLagMediaRecording_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LowLagMediaRecording { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LowLagMediaRecording { const NAME: &'static str = "Windows.Media.Capture.LowLagMediaRecording"; } -::windows_core::imp::interface_hierarchy!(LowLagMediaRecording, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LowLagPhotoCapture(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LowLagPhotoCapture, ::windows_core::IUnknown, ::windows_core::IInspectable); impl LowLagPhotoCapture { pub fn CaptureAsync(&self) -> ::windows_core::Result> { let this = self; @@ -6707,17 +5587,15 @@ impl ::windows_core::RuntimeType for LowLagPhotoCapture { } unsafe impl ::windows_core::Interface for LowLagPhotoCapture { type Vtable = ILowLagPhotoCapture_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LowLagPhotoCapture { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LowLagPhotoCapture { const NAME: &'static str = "Windows.Media.Capture.LowLagPhotoCapture"; } -::windows_core::imp::interface_hierarchy!(LowLagPhotoCapture, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LowLagPhotoSequenceCapture(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LowLagPhotoSequenceCapture, ::windows_core::IUnknown, ::windows_core::IInspectable); impl LowLagPhotoSequenceCapture { pub fn StartAsync(&self) -> ::windows_core::Result { let this = self; @@ -6760,17 +5638,16 @@ impl ::windows_core::RuntimeType for LowLagPhotoSequenceCapture { } unsafe impl ::windows_core::Interface for LowLagPhotoSequenceCapture { type Vtable = ILowLagPhotoSequenceCapture_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LowLagPhotoSequenceCapture { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LowLagPhotoSequenceCapture { const NAME: &'static str = "Windows.Media.Capture.LowLagPhotoSequenceCapture"; } -::windows_core::imp::interface_hierarchy!(LowLagPhotoSequenceCapture, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaCapture(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaCapture, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(MediaCapture, super::super::Foundation::IClosable); impl MediaCapture { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -6780,7 +5657,7 @@ impl MediaCapture { SHARED.call(callback) } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn InitializeAsync(&self) -> ::windows_core::Result { @@ -6805,12 +5682,12 @@ impl MediaCapture { pub fn StartRecordToStorageFileAsync(&self, encodingprofile: P0, file: P1) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam, + P1: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).StartRecordToStorageFileAsync)(::windows_core::Interface::as_raw(this), encodingprofile.into_param().abi(), file.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Media_MediaProperties\"`, `\"Storage_Streams\"`"] @@ -6818,12 +5695,12 @@ impl MediaCapture { pub fn StartRecordToStreamAsync(&self, encodingprofile: P0, stream: P1) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam, + P1: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).StartRecordToStreamAsync)(::windows_core::Interface::as_raw(this), encodingprofile.into_param().abi(), stream.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Media_MediaProperties\"`"] @@ -6831,12 +5708,12 @@ impl MediaCapture { pub fn StartRecordToCustomSinkAsync(&self, encodingprofile: P0, custommediasink: P1) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam, + P1: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).StartRecordToCustomSinkAsync)(::windows_core::Interface::as_raw(this), encodingprofile.into_param().abi(), custommediasink.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Media_MediaProperties\"`"] @@ -6844,12 +5721,12 @@ impl MediaCapture { pub fn StartRecordToCustomSinkIdAsync(&self, encodingprofile: P0, customsinkactivationid: &::windows_core::HSTRING, customsinksettings: P1) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam, + P1: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) } } pub fn StopRecordAsync(&self) -> ::windows_core::Result { @@ -6864,12 +5741,12 @@ impl MediaCapture { pub fn CapturePhotoToStorageFileAsync(&self, r#type: P0, file: P1) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam, + P1: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CapturePhotoToStorageFileAsync)(::windows_core::Interface::as_raw(this), r#type.into_param().abi(), file.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Media_MediaProperties\"`, `\"Storage_Streams\"`"] @@ -6877,24 +5754,24 @@ impl MediaCapture { pub fn CapturePhotoToStreamAsync(&self, r#type: P0, stream: P1) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam, + P1: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CapturePhotoToStreamAsync)(::windows_core::Interface::as_raw(this), r#type.into_param().abi(), stream.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`, `\"deprecated\"`"] #[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::TryIntoParam, + P0: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).AddEffectAsync)(::windows_core::Interface::as_raw(this), mediastreamtype, ::core::mem::transmute_copy(effectactivationid), effectsettings.into_param().abi(), &mut result__).from_abi(result__) } } pub fn ClearEffectsAsync(&self, mediastreamtype: MediaStreamType) -> ::windows_core::Result { @@ -7009,12 +5886,12 @@ impl MediaCapture { pub fn PrepareLowLagRecordToStorageFileAsync(&self, encodingprofile: P0, file: P1) -> ::windows_core::Result> where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam, + P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).PrepareLowLagRecordToStorageFileAsync)(::windows_core::Interface::as_raw(this), encodingprofile.into_param().abi(), file.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Media_MediaProperties\"`, `\"Storage_Streams\"`"] @@ -7022,12 +5899,12 @@ impl MediaCapture { pub fn PrepareLowLagRecordToStreamAsync(&self, encodingprofile: P0, stream: P1) -> ::windows_core::Result> where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam, + P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).PrepareLowLagRecordToStreamAsync)(::windows_core::Interface::as_raw(this), encodingprofile.into_param().abi(), stream.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Media_MediaProperties\"`"] @@ -7035,12 +5912,12 @@ impl MediaCapture { pub fn PrepareLowLagRecordToCustomSinkAsync(&self, encodingprofile: P0, custommediasink: P1) -> ::windows_core::Result> where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam, + P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).PrepareLowLagRecordToCustomSinkAsync)(::windows_core::Interface::as_raw(this), encodingprofile.into_param().abi(), custommediasink.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Media_MediaProperties\"`"] @@ -7048,12 +5925,12 @@ impl MediaCapture { pub fn PrepareLowLagRecordToCustomSinkIdAsync(&self, encodingprofile: P0, customsinkactivationid: &::windows_core::HSTRING, customsinksettings: P1) -> ::windows_core::Result> where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam, + P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) } } #[doc = "Required features: `\"Media_MediaProperties\"`"] @@ -7062,7 +5939,7 @@ impl MediaCapture { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -7074,7 +5951,7 @@ impl MediaCapture { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -7084,13 +5961,13 @@ impl MediaCapture { #[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::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), encoderproperties.into_param().abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SetEncodingPropertiesAsync)(::windows_core::Interface::as_raw(this), mediastreamtype, mediaencodingproperties.into_param().abi(), encoderproperties.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Media_Capture_Core\"`, `\"Media_MediaProperties\"`"] @@ -7099,7 +5976,7 @@ impl MediaCapture { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -7109,65 +5986,65 @@ impl MediaCapture { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveFocusChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveFocusChanged)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn PhotoConfirmationCaptured(&self, handler: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemovePhotoConfirmationCaptured(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemovePhotoConfirmationCaptured)(::windows_core::Interface::as_raw(this), token).ok() } } #[doc = "Required features: `\"Media_Effects\"`"] #[cfg(feature = "Media_Effects")] pub fn AddAudioEffectAsync(&self, definition: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).AddAudioEffectAsync)(::windows_core::Interface::as_raw(this), definition.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Media_Effects\"`"] #[cfg(feature = "Media_Effects")] pub fn AddVideoEffectAsync(&self, definition: P0, mediastreamtype: MediaStreamType) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), mediastreamtype, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).AddVideoEffectAsync)(::windows_core::Interface::as_raw(this), definition.into_param().abi(), mediastreamtype, &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Media_Devices\"`"] #[cfg(feature = "Media_Devices")] pub fn PauseRecordAsync(&self, behavior: super::Devices::MediaCapturePauseBehavior) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PauseRecordAsync)(::windows_core::Interface::as_raw(this), behavior, &mut result__).from_abi(result__) } } pub fn ResumeRecordAsync(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ResumeRecordAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -7177,27 +6054,27 @@ impl MediaCapture { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveCameraStreamStateChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveCameraStreamStateChanged)(::windows_core::Interface::as_raw(this), token).ok() } } #[doc = "Required features: `\"Media_Devices\"`"] #[cfg(feature = "Media_Devices")] pub fn CameraStreamState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CameraStreamState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetPreviewFrameAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetPreviewFrameAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -7207,7 +6084,7 @@ impl MediaCapture { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -7217,18 +6094,18 @@ impl MediaCapture { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveThermalStatusChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveThermalStatusChanged)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn ThermalStatus(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ThermalStatus)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -7240,7 +6117,7 @@ impl MediaCapture { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -7248,25 +6125,25 @@ impl MediaCapture { } pub fn RemoveEffectAsync(&self, effect: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).RemoveEffectAsync)(::windows_core::Interface::as_raw(this), effect.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Media_Devices\"`"] #[cfg(feature = "Media_Devices")] pub fn PauseRecordWithResultAsync(&self, behavior: super::Devices::MediaCapturePauseBehavior) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PauseRecordWithResultAsync)(::windows_core::Interface::as_raw(this), behavior, &mut result__).from_abi(result__) } } pub fn StopRecordWithResultAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).StopRecordWithResultAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -7275,7 +6152,7 @@ impl MediaCapture { #[doc = "Required features: `\"Foundation_Collections\"`, `\"Media_Capture_Frames\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Media_Capture_Frames"))] pub fn FrameSources(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FrameSources)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -7287,7 +6164,7 @@ impl MediaCapture { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -7299,7 +6176,7 @@ impl MediaCapture { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -7311,7 +6188,7 @@ impl MediaCapture { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -7321,26 +6198,26 @@ impl MediaCapture { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveCaptureDeviceExclusiveControlStatusChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveCaptureDeviceExclusiveControlStatusChanged)(::windows_core::Interface::as_raw(this), token).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Media_Capture_Frames\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Media_Capture_Frames"))] pub fn CreateMultiSourceFrameReaderAsync(&self, inputsources: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateMultiSourceFrameReaderAsync)(::windows_core::Interface::as_raw(this), inputsources.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"UI_WindowManagement\"`"] @@ -7349,7 +6226,7 @@ impl MediaCapture { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -7386,7 +6263,7 @@ impl MediaCapture { }) } pub fn StartPreviewAsync(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).StartPreviewAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -7397,12 +6274,12 @@ impl MediaCapture { pub fn StartPreviewToCustomSinkAsync(&self, encodingprofile: P0, custommediasink: P1) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam, + P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).StartPreviewToCustomSinkAsync)(::windows_core::Interface::as_raw(this), encodingprofile.into_param().abi(), custommediasink.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Media_MediaProperties\"`"] @@ -7410,16 +6287,16 @@ impl MediaCapture { pub fn StartPreviewToCustomSinkIdAsync(&self, encodingprofile: P0, customsinkactivationid: &::windows_core::HSTRING, customsinksettings: P1) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam, + P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) } } pub fn StopPreviewAsync(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).StopPreviewAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -7436,18 +6313,15 @@ impl ::windows_core::RuntimeType for MediaCapture { } unsafe impl ::windows_core::Interface for MediaCapture { type Vtable = IMediaCapture_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaCapture { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaCapture { const NAME: &'static str = "Windows.Media.Capture.MediaCapture"; } -::windows_core::imp::interface_hierarchy!(MediaCapture, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for MediaCapture {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaCaptureDeviceExclusiveControlStatusChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaCaptureDeviceExclusiveControlStatusChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaCaptureDeviceExclusiveControlStatusChangedEventArgs { pub fn DeviceId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -7469,19 +6343,17 @@ impl ::windows_core::RuntimeType for MediaCaptureDeviceExclusiveControlStatusCha } unsafe impl ::windows_core::Interface for MediaCaptureDeviceExclusiveControlStatusChangedEventArgs { type Vtable = IMediaCaptureDeviceExclusiveControlStatusChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaCaptureDeviceExclusiveControlStatusChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaCaptureDeviceExclusiveControlStatusChangedEventArgs { const NAME: &'static str = "Windows.Media.Capture.MediaCaptureDeviceExclusiveControlStatusChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(MediaCaptureDeviceExclusiveControlStatusChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaCaptureDeviceExclusiveControlStatusChangedEventArgs {} unsafe impl ::core::marker::Sync for MediaCaptureDeviceExclusiveControlStatusChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaCaptureFailedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaCaptureFailedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaCaptureFailedEventArgs { pub fn Message(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -7503,17 +6375,15 @@ impl ::windows_core::RuntimeType for MediaCaptureFailedEventArgs { } unsafe impl ::windows_core::Interface for MediaCaptureFailedEventArgs { type Vtable = IMediaCaptureFailedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaCaptureFailedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaCaptureFailedEventArgs { const NAME: &'static str = "Windows.Media.Capture.MediaCaptureFailedEventArgs"; } -::windows_core::imp::interface_hierarchy!(MediaCaptureFailedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaCaptureFocusChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaCaptureFocusChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaCaptureFocusChangedEventArgs { #[doc = "Required features: `\"Media_Devices\"`"] #[cfg(feature = "Media_Devices")] @@ -7530,19 +6400,17 @@ impl ::windows_core::RuntimeType for MediaCaptureFocusChangedEventArgs { } unsafe impl ::windows_core::Interface for MediaCaptureFocusChangedEventArgs { type Vtable = IMediaCaptureFocusChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaCaptureFocusChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaCaptureFocusChangedEventArgs { const NAME: &'static str = "Windows.Media.Capture.MediaCaptureFocusChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(MediaCaptureFocusChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaCaptureFocusChangedEventArgs {} unsafe impl ::core::marker::Sync for MediaCaptureFocusChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaCaptureInitializationSettings(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaCaptureInitializationSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaCaptureInitializationSettings { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -7596,22 +6464,22 @@ impl MediaCaptureInitializationSettings { } } pub fn SetMediaCategory(&self, value: MediaCategory) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMediaCategory)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn MediaCategory(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MediaCategory)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetAudioProcessing(&self, value: super::AudioProcessing) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetAudioProcessing)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn AudioProcessing(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AudioProcessing)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -7621,15 +6489,15 @@ impl MediaCaptureInitializationSettings { #[cfg(feature = "Media_Core")] pub fn SetAudioSource(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetAudioSource)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"Media_Core\"`"] #[cfg(feature = "Media_Core")] pub fn AudioSource(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AudioSource)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -7639,22 +6507,22 @@ impl MediaCaptureInitializationSettings { #[cfg(feature = "Media_Core")] pub fn SetVideoSource(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetVideoSource)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"Media_Core\"`"] #[cfg(feature = "Media_Core")] pub fn VideoSource(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).VideoSource)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn VideoProfile(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).VideoProfile)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -7664,11 +6532,11 @@ impl MediaCaptureInitializationSettings { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn PreviewMediaDescription(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviewMediaDescription)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -7678,11 +6546,11 @@ impl MediaCaptureInitializationSettings { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn RecordMediaDescription(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RecordMediaDescription)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -7692,11 +6560,11 @@ impl MediaCaptureInitializationSettings { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn PhotoMediaDescription(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PhotoMediaDescription)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -7706,13 +6574,13 @@ impl MediaCaptureInitializationSettings { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } #[doc = "Required features: `\"Media_Capture_Frames\"`"] #[cfg(feature = "Media_Capture_Frames")] pub fn SourceGroup(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SourceGroup)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -7724,46 +6592,46 @@ impl MediaCaptureInitializationSettings { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn SharingMode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SharingMode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetSharingMode(&self, value: MediaCaptureSharingMode) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetSharingMode)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn MemoryPreference(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MemoryPreference)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetMemoryPreference(&self, value: MediaCaptureMemoryPreference) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMemoryPreference)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn AlwaysPlaySystemShutterSound(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AlwaysPlaySystemShutterSound)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetAlwaysPlaySystemShutterSound(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetAlwaysPlaySystemShutterSound)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Security_Credentials\"`"] #[cfg(feature = "Security_Credentials")] pub fn DeviceUriPasswordCredential(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DeviceUriPasswordCredential)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -7775,11 +6643,11 @@ impl MediaCaptureInitializationSettings { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn DeviceUri(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DeviceUri)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -7789,7 +6657,7 @@ impl MediaCaptureInitializationSettings { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } } @@ -7798,22 +6666,21 @@ impl ::windows_core::RuntimeType for MediaCaptureInitializationSettings { } unsafe impl ::windows_core::Interface for MediaCaptureInitializationSettings { type Vtable = IMediaCaptureInitializationSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaCaptureInitializationSettings { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaCaptureInitializationSettings { const NAME: &'static str = "Windows.Media.Capture.MediaCaptureInitializationSettings"; } -::windows_core::imp::interface_hierarchy!(MediaCaptureInitializationSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaCaptureInitializationSettings {} unsafe impl ::core::marker::Sync for MediaCaptureInitializationSettings {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaCapturePauseResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaCapturePauseResult, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(MediaCapturePauseResult, super::super::Foundation::IClosable); impl MediaCapturePauseResult { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn LastFrame(&self) -> ::windows_core::Result { @@ -7836,21 +6703,19 @@ impl ::windows_core::RuntimeType for MediaCapturePauseResult { } unsafe impl ::windows_core::Interface for MediaCapturePauseResult { type Vtable = IMediaCapturePauseResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaCapturePauseResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaCapturePauseResult { const NAME: &'static str = "Windows.Media.Capture.MediaCapturePauseResult"; } -::windows_core::imp::interface_hierarchy!(MediaCapturePauseResult, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for MediaCapturePauseResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaCaptureRelativePanelWatcher(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaCaptureRelativePanelWatcher, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(MediaCaptureRelativePanelWatcher, super::super::Foundation::IClosable); impl MediaCaptureRelativePanelWatcher { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Devices_Enumeration\"`"] @@ -7890,20 +6755,17 @@ impl ::windows_core::RuntimeType for MediaCaptureRelativePanelWatcher { } unsafe impl ::windows_core::Interface for MediaCaptureRelativePanelWatcher { type Vtable = IMediaCaptureRelativePanelWatcher_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaCaptureRelativePanelWatcher { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaCaptureRelativePanelWatcher { const NAME: &'static str = "Windows.Media.Capture.MediaCaptureRelativePanelWatcher"; } -::windows_core::imp::interface_hierarchy!(MediaCaptureRelativePanelWatcher, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for MediaCaptureRelativePanelWatcher {} unsafe impl ::core::marker::Send for MediaCaptureRelativePanelWatcher {} unsafe impl ::core::marker::Sync for MediaCaptureRelativePanelWatcher {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaCaptureSettings(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaCaptureSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaCaptureSettings { pub fn AudioDeviceId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -7941,56 +6803,56 @@ impl MediaCaptureSettings { } } pub fn ConcurrentRecordAndPhotoSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ConcurrentRecordAndPhotoSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ConcurrentRecordAndPhotoSequenceSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ConcurrentRecordAndPhotoSequenceSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CameraSoundRequiredForRegion(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CameraSoundRequiredForRegion)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Horizontal35mmEquivalentFocalLength(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Horizontal35mmEquivalentFocalLength)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PitchOffsetDegrees(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PitchOffsetDegrees)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Vertical35mmEquivalentFocalLength(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Vertical35mmEquivalentFocalLength)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn MediaCategory(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MediaCategory)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn AudioProcessing(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AudioProcessing)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -7999,7 +6861,7 @@ impl MediaCaptureSettings { #[doc = "Required features: `\"Graphics_DirectX_Direct3D11\"`"] #[cfg(feature = "Graphics_DirectX_Direct3D11")] pub fn Direct3D11Device(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Direct3D11Device)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -8011,20 +6873,19 @@ impl ::windows_core::RuntimeType for MediaCaptureSettings { } unsafe impl ::windows_core::Interface for MediaCaptureSettings { type Vtable = IMediaCaptureSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaCaptureSettings { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaCaptureSettings { const NAME: &'static str = "Windows.Media.Capture.MediaCaptureSettings"; } -::windows_core::imp::interface_hierarchy!(MediaCaptureSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaCaptureStopResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaCaptureStopResult, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(MediaCaptureStopResult, super::super::Foundation::IClosable); impl MediaCaptureStopResult { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn LastFrame(&self) -> ::windows_core::Result { @@ -8047,18 +6908,15 @@ impl ::windows_core::RuntimeType for MediaCaptureStopResult { } unsafe impl ::windows_core::Interface for MediaCaptureStopResult { type Vtable = IMediaCaptureStopResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaCaptureStopResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaCaptureStopResult { const NAME: &'static str = "Windows.Media.Capture.MediaCaptureStopResult"; } -::windows_core::imp::interface_hierarchy!(MediaCaptureStopResult, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for MediaCaptureStopResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaCaptureVideoProfile(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaCaptureVideoProfile, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaCaptureVideoProfile { pub fn Id(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -8113,7 +6971,7 @@ impl MediaCaptureVideoProfile { #[doc = "Required features: `\"Foundation_Collections\"`, `\"Media_Capture_Frames\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Media_Capture_Frames"))] pub fn FrameSourceInfos(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FrameSourceInfos)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -8122,7 +6980,7 @@ impl MediaCaptureVideoProfile { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Properties(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -8134,19 +6992,17 @@ impl ::windows_core::RuntimeType for MediaCaptureVideoProfile { } unsafe impl ::windows_core::Interface for MediaCaptureVideoProfile { type Vtable = IMediaCaptureVideoProfile_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaCaptureVideoProfile { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaCaptureVideoProfile { const NAME: &'static str = "Windows.Media.Capture.MediaCaptureVideoProfile"; } -::windows_core::imp::interface_hierarchy!(MediaCaptureVideoProfile, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaCaptureVideoProfile {} unsafe impl ::core::marker::Sync for MediaCaptureVideoProfile {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaCaptureVideoProfileMediaDescription(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaCaptureVideoProfileMediaDescription, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaCaptureVideoProfileMediaDescription { pub fn Width(&self) -> ::windows_core::Result { let this = self; @@ -8188,7 +7044,7 @@ impl MediaCaptureVideoProfileMediaDescription { } } pub fn Subtype(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Subtype)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -8197,7 +7053,7 @@ impl MediaCaptureVideoProfileMediaDescription { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Properties(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -8209,19 +7065,17 @@ impl ::windows_core::RuntimeType for MediaCaptureVideoProfileMediaDescription { } unsafe impl ::windows_core::Interface for MediaCaptureVideoProfileMediaDescription { type Vtable = IMediaCaptureVideoProfileMediaDescription_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaCaptureVideoProfileMediaDescription { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaCaptureVideoProfileMediaDescription { const NAME: &'static str = "Windows.Media.Capture.MediaCaptureVideoProfileMediaDescription"; } -::windows_core::imp::interface_hierarchy!(MediaCaptureVideoProfileMediaDescription, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaCaptureVideoProfileMediaDescription {} unsafe impl ::core::marker::Sync for MediaCaptureVideoProfileMediaDescription {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct OptionalReferencePhotoCapturedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(OptionalReferencePhotoCapturedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl OptionalReferencePhotoCapturedEventArgs { pub fn Frame(&self) -> ::windows_core::Result { let this = self; @@ -8243,19 +7097,17 @@ impl ::windows_core::RuntimeType for OptionalReferencePhotoCapturedEventArgs { } unsafe impl ::windows_core::Interface for OptionalReferencePhotoCapturedEventArgs { type Vtable = IOptionalReferencePhotoCapturedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for OptionalReferencePhotoCapturedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for OptionalReferencePhotoCapturedEventArgs { const NAME: &'static str = "Windows.Media.Capture.OptionalReferencePhotoCapturedEventArgs"; } -::windows_core::imp::interface_hierarchy!(OptionalReferencePhotoCapturedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for OptionalReferencePhotoCapturedEventArgs {} unsafe impl ::core::marker::Sync for OptionalReferencePhotoCapturedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PhotoCapturedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PhotoCapturedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PhotoCapturedEventArgs { pub fn Frame(&self) -> ::windows_core::Result { let this = self; @@ -8284,19 +7136,17 @@ impl ::windows_core::RuntimeType for PhotoCapturedEventArgs { } unsafe impl ::windows_core::Interface for PhotoCapturedEventArgs { type Vtable = IPhotoCapturedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PhotoCapturedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PhotoCapturedEventArgs { const NAME: &'static str = "Windows.Media.Capture.PhotoCapturedEventArgs"; } -::windows_core::imp::interface_hierarchy!(PhotoCapturedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PhotoCapturedEventArgs {} unsafe impl ::core::marker::Sync for PhotoCapturedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PhotoConfirmationCapturedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PhotoConfirmationCapturedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PhotoConfirmationCapturedEventArgs { pub fn Frame(&self) -> ::windows_core::Result { let this = self; @@ -8318,19 +7168,17 @@ impl ::windows_core::RuntimeType for PhotoConfirmationCapturedEventArgs { } unsafe impl ::windows_core::Interface for PhotoConfirmationCapturedEventArgs { type Vtable = IPhotoConfirmationCapturedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PhotoConfirmationCapturedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PhotoConfirmationCapturedEventArgs { const NAME: &'static str = "Windows.Media.Capture.PhotoConfirmationCapturedEventArgs"; } -::windows_core::imp::interface_hierarchy!(PhotoConfirmationCapturedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PhotoConfirmationCapturedEventArgs {} unsafe impl ::core::marker::Sync for PhotoConfirmationCapturedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ScreenCapture(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ScreenCapture, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ScreenCapture { #[doc = "Required features: `\"Media_Core\"`"] #[cfg(feature = "Media_Core")] @@ -8395,19 +7243,17 @@ impl ::windows_core::RuntimeType for ScreenCapture { } unsafe impl ::windows_core::Interface for ScreenCapture { type Vtable = IScreenCapture_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ScreenCapture { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ScreenCapture { const NAME: &'static str = "Windows.Media.Capture.ScreenCapture"; } -::windows_core::imp::interface_hierarchy!(ScreenCapture, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ScreenCapture {} unsafe impl ::core::marker::Sync for ScreenCapture {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SourceSuspensionChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SourceSuspensionChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SourceSuspensionChangedEventArgs { pub fn IsAudioSuspended(&self) -> ::windows_core::Result { let this = self; @@ -8429,19 +7275,17 @@ impl ::windows_core::RuntimeType for SourceSuspensionChangedEventArgs { } unsafe impl ::windows_core::Interface for SourceSuspensionChangedEventArgs { type Vtable = ISourceSuspensionChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SourceSuspensionChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SourceSuspensionChangedEventArgs { const NAME: &'static str = "Windows.Media.Capture.SourceSuspensionChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(SourceSuspensionChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SourceSuspensionChangedEventArgs {} unsafe impl ::core::marker::Sync for SourceSuspensionChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VideoStreamConfiguration(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VideoStreamConfiguration, ::windows_core::IUnknown, ::windows_core::IInspectable); impl VideoStreamConfiguration { #[doc = "Required features: `\"Media_MediaProperties\"`"] #[cfg(feature = "Media_MediaProperties")] @@ -8467,14 +7311,11 @@ impl ::windows_core::RuntimeType for VideoStreamConfiguration { } unsafe impl ::windows_core::Interface for VideoStreamConfiguration { type Vtable = IVideoStreamConfiguration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VideoStreamConfiguration { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VideoStreamConfiguration { const NAME: &'static str = "Windows.Media.Capture.VideoStreamConfiguration"; } -::windows_core::imp::interface_hierarchy!(VideoStreamConfiguration, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for VideoStreamConfiguration {} unsafe impl ::core::marker::Sync for VideoStreamConfiguration {} #[repr(transparent)] @@ -9393,9 +8234,7 @@ impl ::core::default::Default for WhiteBalanceGain { unsafe { ::core::mem::zeroed() } } } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct MediaCaptureFailedEventHandler(pub ::windows_core::IUnknown); +::windows_core::imp::com_interface!(MediaCaptureFailedEventHandler, MediaCaptureFailedEventHandler_Vtbl, 0x2014effb_5cd8_4f08_a314_0d360da59f14); impl MediaCaptureFailedEventHandler { pub fn new, ::core::option::Option<&MediaCaptureFailedEventArgs>) -> ::windows_core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = MediaCaptureFailedEventHandlerBox:: { vtable: &MediaCaptureFailedEventHandlerBox::::VTABLE, count: ::windows_core::imp::RefCount::new(1), invoke }; @@ -9426,7 +8265,7 @@ impl, ::core::option::Option<&Med if iid.is_null() || interface.is_null() { return ::windows_core::HRESULT(-2147467261); } - *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; + *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::Interface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::Interface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; if (*interface).is_null() { ::windows_core::HRESULT(-2147467262) } else { @@ -9451,12 +8290,6 @@ impl, ::core::option::Option<&Med ((*this).invoke)(::windows_core::from_raw_borrowed(&sender), ::windows_core::from_raw_borrowed(&erroreventargs)).into() } } -unsafe impl ::windows_core::Interface for MediaCaptureFailedEventHandler { - type Vtable = MediaCaptureFailedEventHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaCaptureFailedEventHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2014effb_5cd8_4f08_a314_0d360da59f14); -} impl ::windows_core::RuntimeType for MediaCaptureFailedEventHandler { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } @@ -9466,9 +8299,7 @@ pub struct MediaCaptureFailedEventHandler_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Invoke: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sender: *mut ::core::ffi::c_void, erroreventargs: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct RecordLimitationExceededEventHandler(pub ::windows_core::IUnknown); +::windows_core::imp::com_interface!(RecordLimitationExceededEventHandler, RecordLimitationExceededEventHandler_Vtbl, 0x3fae8f2e_4fe1_4ffd_aaba_e1f1337d4e53); impl RecordLimitationExceededEventHandler { pub fn new) -> ::windows_core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = RecordLimitationExceededEventHandlerBox:: { vtable: &RecordLimitationExceededEventHandlerBox::::VTABLE, count: ::windows_core::imp::RefCount::new(1), invoke }; @@ -9498,7 +8329,7 @@ impl) -> ::windows_core::Result<( if iid.is_null() || interface.is_null() { return ::windows_core::HRESULT(-2147467261); } - *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; + *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::Interface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::Interface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; if (*interface).is_null() { ::windows_core::HRESULT(-2147467262) } else { @@ -9523,12 +8354,6 @@ impl) -> ::windows_core::Result<( ((*this).invoke)(::windows_core::from_raw_borrowed(&sender)).into() } } -unsafe impl ::windows_core::Interface for RecordLimitationExceededEventHandler { - type Vtable = RecordLimitationExceededEventHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RecordLimitationExceededEventHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3fae8f2e_4fe1_4ffd_aaba_e1f1337d4e53); -} impl ::windows_core::RuntimeType for RecordLimitationExceededEventHandler { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } diff --git a/crates/libs/windows/src/Windows/Media/Casting/mod.rs b/crates/libs/windows/src/Windows/Media/Casting/mod.rs index 2d440ea051..dc4b4e853a 100644 --- a/crates/libs/windows/src/Windows/Media/Casting/mod.rs +++ b/crates/libs/windows/src/Windows/Media/Casting/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICastingConnection(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICastingConnection { - type Vtable = ICastingConnection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICastingConnection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcd951653_c2f1_4498_8b78_5fb4cd3640dd); -} +::windows_core::imp::com_interface!(ICastingConnection, ICastingConnection_Vtbl, 0xcd951653_c2f1_4498_8b78_5fb4cd3640dd); #[repr(C)] #[doc(hidden)] pub struct ICastingConnection_Vtbl { @@ -23,16 +14,7 @@ pub struct ICastingConnection_Vtbl { pub RequestStartCastingAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub DisconnectAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICastingConnectionErrorOccurredEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICastingConnectionErrorOccurredEventArgs { - type Vtable = ICastingConnectionErrorOccurredEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICastingConnectionErrorOccurredEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa7fb3c69_8719_4f00_81fb_961863c79a32); -} +::windows_core::imp::com_interface!(ICastingConnectionErrorOccurredEventArgs, ICastingConnectionErrorOccurredEventArgs_Vtbl, 0xa7fb3c69_8719_4f00_81fb_961863c79a32); #[repr(C)] #[doc(hidden)] pub struct ICastingConnectionErrorOccurredEventArgs_Vtbl { @@ -40,16 +22,7 @@ pub struct ICastingConnectionErrorOccurredEventArgs_Vtbl { pub ErrorStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut CastingConnectionErrorStatus) -> ::windows_core::HRESULT, pub Message: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICastingDevice(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICastingDevice { - type Vtable = ICastingDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICastingDevice { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xde721c83_4a43_4ad1_a6d2_2492a796c3f2); -} +::windows_core::imp::com_interface!(ICastingDevice, ICastingDevice_Vtbl, 0xde721c83_4a43_4ad1_a6d2_2492a796c3f2); #[repr(C)] #[doc(hidden)] pub struct ICastingDevice_Vtbl { @@ -63,16 +36,7 @@ pub struct ICastingDevice_Vtbl { pub GetSupportedCastingPlaybackTypesAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateCastingConnection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICastingDevicePicker(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICastingDevicePicker { - type Vtable = ICastingDevicePicker_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICastingDevicePicker { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdcd39924_0591_49be_aacb_4b82ee756a95); -} +::windows_core::imp::com_interface!(ICastingDevicePicker, ICastingDevicePicker_Vtbl, 0xdcd39924_0591_49be_aacb_4b82ee756a95); #[repr(C)] #[doc(hidden)] pub struct ICastingDevicePicker_Vtbl { @@ -93,16 +57,7 @@ pub struct ICastingDevicePicker_Vtbl { ShowWithPlacement: usize, pub Hide: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICastingDevicePickerFilter(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICastingDevicePickerFilter { - type Vtable = ICastingDevicePickerFilter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICastingDevicePickerFilter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbe8c619c_b563_4354_ae33_9fdaad8c6291); -} +::windows_core::imp::com_interface!(ICastingDevicePickerFilter, ICastingDevicePickerFilter_Vtbl, 0xbe8c619c_b563_4354_ae33_9fdaad8c6291); #[repr(C)] #[doc(hidden)] pub struct ICastingDevicePickerFilter_Vtbl { @@ -118,32 +73,14 @@ pub struct ICastingDevicePickerFilter_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] SupportedCastingSources: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICastingDeviceSelectedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICastingDeviceSelectedEventArgs { - type Vtable = ICastingDeviceSelectedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICastingDeviceSelectedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdc439e86_dd57_4d0d_9400_af45e4fb3663); -} +::windows_core::imp::com_interface!(ICastingDeviceSelectedEventArgs, ICastingDeviceSelectedEventArgs_Vtbl, 0xdc439e86_dd57_4d0d_9400_af45e4fb3663); #[repr(C)] #[doc(hidden)] pub struct ICastingDeviceSelectedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub SelectedCastingDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICastingDeviceStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICastingDeviceStatics { - type Vtable = ICastingDeviceStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICastingDeviceStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe7d958d7_4d13_4237_a365_4c4f6a4cfd2f); -} +::windows_core::imp::com_interface!(ICastingDeviceStatics, ICastingDeviceStatics_Vtbl, 0xe7d958d7_4d13_4237_a365_4c4f6a4cfd2f); #[repr(C)] #[doc(hidden)] pub struct ICastingDeviceStatics_Vtbl { @@ -156,16 +93,7 @@ pub struct ICastingDeviceStatics_Vtbl { #[cfg(not(feature = "Devices_Enumeration"))] DeviceInfoSupportsCastingAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICastingSource(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICastingSource { - type Vtable = ICastingSource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICastingSource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf429ea72_3467_47e6_a027_522923e9d727); -} +::windows_core::imp::com_interface!(ICastingSource, ICastingSource_Vtbl, 0xf429ea72_3467_47e6_a027_522923e9d727); #[repr(C)] #[doc(hidden)] pub struct ICastingSource_Vtbl { @@ -176,6 +104,8 @@ pub struct ICastingSource_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CastingConnection(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CastingConnection, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(CastingConnection, super::super::Foundation::IClosable); impl CastingConnection { pub fn State(&self) -> ::windows_core::Result { let this = self; @@ -251,7 +181,7 @@ impl CastingConnection { } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } } @@ -260,20 +190,17 @@ impl ::windows_core::RuntimeType for CastingConnection { } unsafe impl ::windows_core::Interface for CastingConnection { type Vtable = ICastingConnection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CastingConnection { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CastingConnection { const NAME: &'static str = "Windows.Media.Casting.CastingConnection"; } -::windows_core::imp::interface_hierarchy!(CastingConnection, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CastingConnection {} unsafe impl ::core::marker::Send for CastingConnection {} unsafe impl ::core::marker::Sync for CastingConnection {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CastingConnectionErrorOccurredEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CastingConnectionErrorOccurredEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CastingConnectionErrorOccurredEventArgs { pub fn ErrorStatus(&self) -> ::windows_core::Result { let this = self; @@ -295,19 +222,17 @@ impl ::windows_core::RuntimeType for CastingConnectionErrorOccurredEventArgs { } unsafe impl ::windows_core::Interface for CastingConnectionErrorOccurredEventArgs { type Vtable = ICastingConnectionErrorOccurredEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CastingConnectionErrorOccurredEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CastingConnectionErrorOccurredEventArgs { const NAME: &'static str = "Windows.Media.Casting.CastingConnectionErrorOccurredEventArgs"; } -::windows_core::imp::interface_hierarchy!(CastingConnectionErrorOccurredEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CastingConnectionErrorOccurredEventArgs {} unsafe impl ::core::marker::Sync for CastingConnectionErrorOccurredEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CastingDevice(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CastingDevice, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CastingDevice { pub fn Id(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -389,19 +314,17 @@ impl ::windows_core::RuntimeType for CastingDevice { } unsafe impl ::windows_core::Interface for CastingDevice { type Vtable = ICastingDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CastingDevice { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CastingDevice { const NAME: &'static str = "Windows.Media.Casting.CastingDevice"; } -::windows_core::imp::interface_hierarchy!(CastingDevice, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CastingDevice {} unsafe impl ::core::marker::Sync for CastingDevice {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CastingDevicePicker(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CastingDevicePicker, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CastingDevicePicker { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -474,19 +397,17 @@ impl ::windows_core::RuntimeType for CastingDevicePicker { } unsafe impl ::windows_core::Interface for CastingDevicePicker { type Vtable = ICastingDevicePicker_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CastingDevicePicker { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CastingDevicePicker { const NAME: &'static str = "Windows.Media.Casting.CastingDevicePicker"; } -::windows_core::imp::interface_hierarchy!(CastingDevicePicker, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CastingDevicePicker {} unsafe impl ::core::marker::Sync for CastingDevicePicker {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CastingDevicePickerFilter(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CastingDevicePickerFilter, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CastingDevicePickerFilter { pub fn SupportsAudio(&self) -> ::windows_core::Result { let this = self; @@ -536,19 +457,17 @@ impl ::windows_core::RuntimeType for CastingDevicePickerFilter { } unsafe impl ::windows_core::Interface for CastingDevicePickerFilter { type Vtable = ICastingDevicePickerFilter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CastingDevicePickerFilter { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CastingDevicePickerFilter { const NAME: &'static str = "Windows.Media.Casting.CastingDevicePickerFilter"; } -::windows_core::imp::interface_hierarchy!(CastingDevicePickerFilter, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CastingDevicePickerFilter {} unsafe impl ::core::marker::Sync for CastingDevicePickerFilter {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CastingDeviceSelectedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CastingDeviceSelectedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CastingDeviceSelectedEventArgs { pub fn SelectedCastingDevice(&self) -> ::windows_core::Result { let this = self; @@ -563,19 +482,17 @@ impl ::windows_core::RuntimeType for CastingDeviceSelectedEventArgs { } unsafe impl ::windows_core::Interface for CastingDeviceSelectedEventArgs { type Vtable = ICastingDeviceSelectedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CastingDeviceSelectedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CastingDeviceSelectedEventArgs { const NAME: &'static str = "Windows.Media.Casting.CastingDeviceSelectedEventArgs"; } -::windows_core::imp::interface_hierarchy!(CastingDeviceSelectedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CastingDeviceSelectedEventArgs {} unsafe impl ::core::marker::Sync for CastingDeviceSelectedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CastingSource(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CastingSource, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CastingSource { pub fn PreferredSourceUri(&self) -> ::windows_core::Result { let this = self; @@ -597,14 +514,11 @@ impl ::windows_core::RuntimeType for CastingSource { } unsafe impl ::windows_core::Interface for CastingSource { type Vtable = ICastingSource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CastingSource { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CastingSource { const NAME: &'static str = "Windows.Media.Casting.CastingSource"; } -::windows_core::imp::interface_hierarchy!(CastingSource, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CastingSource {} unsafe impl ::core::marker::Sync for CastingSource {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Media/ClosedCaptioning/mod.rs b/crates/libs/windows/src/Windows/Media/ClosedCaptioning/mod.rs index 9c319dc248..d50673a636 100644 --- a/crates/libs/windows/src/Windows/Media/ClosedCaptioning/mod.rs +++ b/crates/libs/windows/src/Windows/Media/ClosedCaptioning/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IClosedCaptionPropertiesStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IClosedCaptionPropertiesStatics { - type Vtable = IClosedCaptionPropertiesStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IClosedCaptionPropertiesStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x10aa1f84_cc30_4141_b503_5272289e0c20); -} +::windows_core::imp::com_interface!(IClosedCaptionPropertiesStatics, IClosedCaptionPropertiesStatics_Vtbl, 0x10aa1f84_cc30_4141_b503_5272289e0c20); #[repr(C)] #[doc(hidden)] pub struct IClosedCaptionPropertiesStatics_Vtbl { @@ -34,16 +25,7 @@ pub struct IClosedCaptionPropertiesStatics_Vtbl { ComputedRegionColor: usize, pub RegionOpacity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ClosedCaptionOpacity) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IClosedCaptionPropertiesStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IClosedCaptionPropertiesStatics2 { - type Vtable = IClosedCaptionPropertiesStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IClosedCaptionPropertiesStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9de26870_37de_4197_8845_9a48dc5ac317); -} +::windows_core::imp::com_interface!(IClosedCaptionPropertiesStatics2, IClosedCaptionPropertiesStatics2_Vtbl, 0x9de26870_37de_4197_8845_9a48dc5ac317); #[repr(C)] #[doc(hidden)] pub struct IClosedCaptionPropertiesStatics2_Vtbl { diff --git a/crates/libs/windows/src/Windows/Media/ContentRestrictions/mod.rs b/crates/libs/windows/src/Windows/Media/ContentRestrictions/mod.rs index 33444b4f84..8a14fda3d7 100644 --- a/crates/libs/windows/src/Windows/Media/ContentRestrictions/mod.rs +++ b/crates/libs/windows/src/Windows/Media/ContentRestrictions/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContentRestrictionsBrowsePolicy(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContentRestrictionsBrowsePolicy { - type Vtable = IContentRestrictionsBrowsePolicy_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContentRestrictionsBrowsePolicy { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8c0133a4_442e_461a_8757_fad2f5bd37e4); -} +::windows_core::imp::com_interface!(IContentRestrictionsBrowsePolicy, IContentRestrictionsBrowsePolicy_Vtbl, 0x8c0133a4_442e_461a_8757_fad2f5bd37e4); #[repr(C)] #[doc(hidden)] pub struct IContentRestrictionsBrowsePolicy_Vtbl { @@ -16,16 +7,7 @@ pub struct IContentRestrictionsBrowsePolicy_Vtbl { pub MaxBrowsableAgeRating: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub PreferredAgeRating: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRatedContentDescription(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRatedContentDescription { - type Vtable = IRatedContentDescription_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRatedContentDescription { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x694866df_66b2_4dc3_96b1_f090eedee255); -} +::windows_core::imp::com_interface!(IRatedContentDescription, IRatedContentDescription_Vtbl, 0x694866df_66b2_4dc3_96b1_f090eedee255); #[repr(C)] #[doc(hidden)] pub struct IRatedContentDescription_Vtbl { @@ -53,32 +35,14 @@ pub struct IRatedContentDescription_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] SetRatings: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRatedContentDescriptionFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRatedContentDescriptionFactory { - type Vtable = IRatedContentDescriptionFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRatedContentDescriptionFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2e38df62_9b90_4fa6_89c1_4b8d2ffb3573); -} +::windows_core::imp::com_interface!(IRatedContentDescriptionFactory, IRatedContentDescriptionFactory_Vtbl, 0x2e38df62_9b90_4fa6_89c1_4b8d2ffb3573); #[repr(C)] #[doc(hidden)] pub struct IRatedContentDescriptionFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: ::std::mem::MaybeUninit<::windows_core::HSTRING>, title: ::std::mem::MaybeUninit<::windows_core::HSTRING>, category: RatedContentCategory, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRatedContentRestrictions(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRatedContentRestrictions { - type Vtable = IRatedContentRestrictions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRatedContentRestrictions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3f7f23cb_ba07_4401_a49d_8b9222205723); -} +::windows_core::imp::com_interface!(IRatedContentRestrictions, IRatedContentRestrictions_Vtbl, 0x3f7f23cb_ba07_4401_a49d_8b9222205723); #[repr(C)] #[doc(hidden)] pub struct IRatedContentRestrictions_Vtbl { @@ -89,16 +53,7 @@ pub struct IRatedContentRestrictions_Vtbl { pub RestrictionsChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveRestrictionsChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRatedContentRestrictionsFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRatedContentRestrictionsFactory { - type Vtable = IRatedContentRestrictionsFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRatedContentRestrictionsFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfb4b2996_c3bd_4910_9619_97cfd0694d56); -} +::windows_core::imp::com_interface!(IRatedContentRestrictionsFactory, IRatedContentRestrictionsFactory_Vtbl, 0xfb4b2996_c3bd_4910_9619_97cfd0694d56); #[repr(C)] #[doc(hidden)] pub struct IRatedContentRestrictionsFactory_Vtbl { @@ -108,6 +63,7 @@ pub struct IRatedContentRestrictionsFactory_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContentRestrictionsBrowsePolicy(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContentRestrictionsBrowsePolicy, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ContentRestrictionsBrowsePolicy { pub fn GeographicRegion(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -136,19 +92,17 @@ impl ::windows_core::RuntimeType for ContentRestrictionsBrowsePolicy { } unsafe impl ::windows_core::Interface for ContentRestrictionsBrowsePolicy { type Vtable = IContentRestrictionsBrowsePolicy_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContentRestrictionsBrowsePolicy { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContentRestrictionsBrowsePolicy { const NAME: &'static str = "Windows.Media.ContentRestrictions.ContentRestrictionsBrowsePolicy"; } -::windows_core::imp::interface_hierarchy!(ContentRestrictionsBrowsePolicy, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ContentRestrictionsBrowsePolicy {} unsafe impl ::core::marker::Sync for ContentRestrictionsBrowsePolicy {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RatedContentDescription(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RatedContentDescription, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RatedContentDescription { pub fn Id(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -185,10 +139,10 @@ impl RatedContentDescription { #[cfg(feature = "Storage_Streams")] pub fn SetImage(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetImage)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetImage)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn Category(&self) -> ::windows_core::Result { let this = self; @@ -214,10 +168,10 @@ impl RatedContentDescription { #[cfg(feature = "Foundation_Collections")] pub fn SetRatings(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetRatings)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetRatings)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn Create(id: &::windows_core::HSTRING, title: &::windows_core::HSTRING, category: RatedContentCategory) -> ::windows_core::Result { Self::IRatedContentDescriptionFactory(|this| unsafe { @@ -236,19 +190,17 @@ impl ::windows_core::RuntimeType for RatedContentDescription { } unsafe impl ::windows_core::Interface for RatedContentDescription { type Vtable = IRatedContentDescription_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RatedContentDescription { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RatedContentDescription { const NAME: &'static str = "Windows.Media.ContentRestrictions.RatedContentDescription"; } -::windows_core::imp::interface_hierarchy!(RatedContentDescription, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RatedContentDescription {} unsafe impl ::core::marker::Sync for RatedContentDescription {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RatedContentRestrictions(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RatedContentRestrictions, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RatedContentRestrictions { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -315,14 +267,11 @@ impl ::windows_core::RuntimeType for RatedContentRestrictions { } unsafe impl ::windows_core::Interface for RatedContentRestrictions { type Vtable = IRatedContentRestrictions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RatedContentRestrictions { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RatedContentRestrictions { const NAME: &'static str = "Windows.Media.ContentRestrictions.RatedContentRestrictions"; } -::windows_core::imp::interface_hierarchy!(RatedContentRestrictions, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RatedContentRestrictions {} unsafe impl ::core::marker::Sync for RatedContentRestrictions {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Media/Control/mod.rs b/crates/libs/windows/src/Windows/Media/Control/mod.rs index 7c8be8823b..abc5b72a2f 100644 --- a/crates/libs/windows/src/Windows/Media/Control/mod.rs +++ b/crates/libs/windows/src/Windows/Media/Control/mod.rs @@ -1,28 +1,10 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICurrentSessionChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICurrentSessionChangedEventArgs { - type Vtable = ICurrentSessionChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICurrentSessionChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6969cb39_0bfa_5fe0_8d73_09cc5e5408e1); -} +::windows_core::imp::com_interface!(ICurrentSessionChangedEventArgs, ICurrentSessionChangedEventArgs_Vtbl, 0x6969cb39_0bfa_5fe0_8d73_09cc5e5408e1); #[repr(C)] #[doc(hidden)] pub struct ICurrentSessionChangedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGlobalSystemMediaTransportControlsSession(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGlobalSystemMediaTransportControlsSession { - type Vtable = IGlobalSystemMediaTransportControlsSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGlobalSystemMediaTransportControlsSession { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7148c835_9b14_5ae2_ab85_dc9b1c14e1a8); -} +::windows_core::imp::com_interface!(IGlobalSystemMediaTransportControlsSession, IGlobalSystemMediaTransportControlsSession_Vtbl, 0x7148c835_9b14_5ae2_ab85_dc9b1c14e1a8); #[repr(C)] #[doc(hidden)] pub struct IGlobalSystemMediaTransportControlsSession_Vtbl { @@ -53,16 +35,7 @@ pub struct IGlobalSystemMediaTransportControlsSession_Vtbl { pub MediaPropertiesChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveMediaPropertiesChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGlobalSystemMediaTransportControlsSessionManager(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGlobalSystemMediaTransportControlsSessionManager { - type Vtable = IGlobalSystemMediaTransportControlsSessionManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGlobalSystemMediaTransportControlsSessionManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcace8eac_e86e_504a_ab31_5ff8ff1bce49); -} +::windows_core::imp::com_interface!(IGlobalSystemMediaTransportControlsSessionManager, IGlobalSystemMediaTransportControlsSessionManager_Vtbl, 0xcace8eac_e86e_504a_ab31_5ff8ff1bce49); #[repr(C)] #[doc(hidden)] pub struct IGlobalSystemMediaTransportControlsSessionManager_Vtbl { @@ -77,32 +50,14 @@ pub struct IGlobalSystemMediaTransportControlsSessionManager_Vtbl { pub SessionsChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveSessionsChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGlobalSystemMediaTransportControlsSessionManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGlobalSystemMediaTransportControlsSessionManagerStatics { - type Vtable = IGlobalSystemMediaTransportControlsSessionManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGlobalSystemMediaTransportControlsSessionManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2050c4ee_11a0_57de_aed7_c97c70338245); -} +::windows_core::imp::com_interface!(IGlobalSystemMediaTransportControlsSessionManagerStatics, IGlobalSystemMediaTransportControlsSessionManagerStatics_Vtbl, 0x2050c4ee_11a0_57de_aed7_c97c70338245); #[repr(C)] #[doc(hidden)] pub struct IGlobalSystemMediaTransportControlsSessionManagerStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub RequestAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGlobalSystemMediaTransportControlsSessionMediaProperties(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGlobalSystemMediaTransportControlsSessionMediaProperties { - type Vtable = IGlobalSystemMediaTransportControlsSessionMediaProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGlobalSystemMediaTransportControlsSessionMediaProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x68856cf6_adb4_54b2_ac16_05837907acb6); -} +::windows_core::imp::com_interface!(IGlobalSystemMediaTransportControlsSessionMediaProperties, IGlobalSystemMediaTransportControlsSessionMediaProperties_Vtbl, 0x68856cf6_adb4_54b2_ac16_05837907acb6); #[repr(C)] #[doc(hidden)] pub struct IGlobalSystemMediaTransportControlsSessionMediaProperties_Vtbl { @@ -124,16 +79,7 @@ pub struct IGlobalSystemMediaTransportControlsSessionMediaProperties_Vtbl { #[cfg(not(feature = "Storage_Streams"))] Thumbnail: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGlobalSystemMediaTransportControlsSessionPlaybackControls(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGlobalSystemMediaTransportControlsSessionPlaybackControls { - type Vtable = IGlobalSystemMediaTransportControlsSessionPlaybackControls_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGlobalSystemMediaTransportControlsSessionPlaybackControls { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6501a3e6_bc7a_503a_bb1b_68f158f3fb03); -} +::windows_core::imp::com_interface!(IGlobalSystemMediaTransportControlsSessionPlaybackControls, IGlobalSystemMediaTransportControlsSessionPlaybackControls_Vtbl, 0x6501a3e6_bc7a_503a_bb1b_68f158f3fb03); #[repr(C)] #[doc(hidden)] pub struct IGlobalSystemMediaTransportControlsSessionPlaybackControls_Vtbl { @@ -154,16 +100,7 @@ pub struct IGlobalSystemMediaTransportControlsSessionPlaybackControls_Vtbl { pub IsPlaybackRateEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub IsPlaybackPositionEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGlobalSystemMediaTransportControlsSessionPlaybackInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGlobalSystemMediaTransportControlsSessionPlaybackInfo { - type Vtable = IGlobalSystemMediaTransportControlsSessionPlaybackInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGlobalSystemMediaTransportControlsSessionPlaybackInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x94b4b6cf_e8ba_51ad_87a7_c10ade106127); -} +::windows_core::imp::com_interface!(IGlobalSystemMediaTransportControlsSessionPlaybackInfo, IGlobalSystemMediaTransportControlsSessionPlaybackInfo_Vtbl, 0x94b4b6cf_e8ba_51ad_87a7_c10ade106127); #[repr(C)] #[doc(hidden)] pub struct IGlobalSystemMediaTransportControlsSessionPlaybackInfo_Vtbl { @@ -175,16 +112,7 @@ pub struct IGlobalSystemMediaTransportControlsSessionPlaybackInfo_Vtbl { pub PlaybackRate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub IsShuffleActive: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGlobalSystemMediaTransportControlsSessionTimelineProperties(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGlobalSystemMediaTransportControlsSessionTimelineProperties { - type Vtable = IGlobalSystemMediaTransportControlsSessionTimelineProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGlobalSystemMediaTransportControlsSessionTimelineProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xede34136_6f25_588d_8ecf_ea5b6735aaa5); -} +::windows_core::imp::com_interface!(IGlobalSystemMediaTransportControlsSessionTimelineProperties, IGlobalSystemMediaTransportControlsSessionTimelineProperties_Vtbl, 0xede34136_6f25_588d_8ecf_ea5b6735aaa5); #[repr(C)] #[doc(hidden)] pub struct IGlobalSystemMediaTransportControlsSessionTimelineProperties_Vtbl { @@ -196,61 +124,25 @@ pub struct IGlobalSystemMediaTransportControlsSessionTimelineProperties_Vtbl { pub Position: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::TimeSpan) -> ::windows_core::HRESULT, pub LastUpdatedTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::DateTime) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaPropertiesChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaPropertiesChangedEventArgs { - type Vtable = IMediaPropertiesChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaPropertiesChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7d3741cb_adf0_5cef_91ba_cfabcdd77678); -} +::windows_core::imp::com_interface!(IMediaPropertiesChangedEventArgs, IMediaPropertiesChangedEventArgs_Vtbl, 0x7d3741cb_adf0_5cef_91ba_cfabcdd77678); #[repr(C)] #[doc(hidden)] pub struct IMediaPropertiesChangedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlaybackInfoChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPlaybackInfoChangedEventArgs { - type Vtable = IPlaybackInfoChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPlaybackInfoChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x786756c2_bc0d_50a5_8807_054291fef139); -} +::windows_core::imp::com_interface!(IPlaybackInfoChangedEventArgs, IPlaybackInfoChangedEventArgs_Vtbl, 0x786756c2_bc0d_50a5_8807_054291fef139); #[repr(C)] #[doc(hidden)] pub struct IPlaybackInfoChangedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISessionsChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISessionsChangedEventArgs { - type Vtable = ISessionsChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISessionsChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbbf0cd32_42c4_5a58_b317_f34bbfbd26e0); -} +::windows_core::imp::com_interface!(ISessionsChangedEventArgs, ISessionsChangedEventArgs_Vtbl, 0xbbf0cd32_42c4_5a58_b317_f34bbfbd26e0); #[repr(C)] #[doc(hidden)] pub struct ISessionsChangedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITimelinePropertiesChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITimelinePropertiesChangedEventArgs { - type Vtable = ITimelinePropertiesChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITimelinePropertiesChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x29033a2f_c923_5a77_bcaf_055ff415ad32); -} +::windows_core::imp::com_interface!(ITimelinePropertiesChangedEventArgs, ITimelinePropertiesChangedEventArgs_Vtbl, 0x29033a2f_c923_5a77_bcaf_055ff415ad32); #[repr(C)] #[doc(hidden)] pub struct ITimelinePropertiesChangedEventArgs_Vtbl { @@ -259,25 +151,24 @@ pub struct ITimelinePropertiesChangedEventArgs_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CurrentSessionChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CurrentSessionChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CurrentSessionChangedEventArgs {} impl ::windows_core::RuntimeType for CurrentSessionChangedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_class::(); } unsafe impl ::windows_core::Interface for CurrentSessionChangedEventArgs { type Vtable = ICurrentSessionChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CurrentSessionChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CurrentSessionChangedEventArgs { const NAME: &'static str = "Windows.Media.Control.CurrentSessionChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(CurrentSessionChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CurrentSessionChangedEventArgs {} unsafe impl ::core::marker::Sync for CurrentSessionChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GlobalSystemMediaTransportControlsSession(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GlobalSystemMediaTransportControlsSession, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GlobalSystemMediaTransportControlsSession { pub fn SourceAppUserModelId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -460,19 +351,17 @@ impl ::windows_core::RuntimeType for GlobalSystemMediaTransportControlsSession { } unsafe impl ::windows_core::Interface for GlobalSystemMediaTransportControlsSession { type Vtable = IGlobalSystemMediaTransportControlsSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GlobalSystemMediaTransportControlsSession { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GlobalSystemMediaTransportControlsSession { const NAME: &'static str = "Windows.Media.Control.GlobalSystemMediaTransportControlsSession"; } -::windows_core::imp::interface_hierarchy!(GlobalSystemMediaTransportControlsSession, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GlobalSystemMediaTransportControlsSession {} unsafe impl ::core::marker::Sync for GlobalSystemMediaTransportControlsSession {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GlobalSystemMediaTransportControlsSessionManager(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GlobalSystemMediaTransportControlsSessionManager, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GlobalSystemMediaTransportControlsSessionManager { pub fn GetCurrentSession(&self) -> ::windows_core::Result { let this = self; @@ -535,19 +424,17 @@ impl ::windows_core::RuntimeType for GlobalSystemMediaTransportControlsSessionMa } unsafe impl ::windows_core::Interface for GlobalSystemMediaTransportControlsSessionManager { type Vtable = IGlobalSystemMediaTransportControlsSessionManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GlobalSystemMediaTransportControlsSessionManager { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GlobalSystemMediaTransportControlsSessionManager { const NAME: &'static str = "Windows.Media.Control.GlobalSystemMediaTransportControlsSessionManager"; } -::windows_core::imp::interface_hierarchy!(GlobalSystemMediaTransportControlsSessionManager, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GlobalSystemMediaTransportControlsSessionManager {} unsafe impl ::core::marker::Sync for GlobalSystemMediaTransportControlsSessionManager {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GlobalSystemMediaTransportControlsSessionMediaProperties(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GlobalSystemMediaTransportControlsSessionMediaProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GlobalSystemMediaTransportControlsSessionMediaProperties { pub fn Title(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -629,19 +516,17 @@ impl ::windows_core::RuntimeType for GlobalSystemMediaTransportControlsSessionMe } unsafe impl ::windows_core::Interface for GlobalSystemMediaTransportControlsSessionMediaProperties { type Vtable = IGlobalSystemMediaTransportControlsSessionMediaProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GlobalSystemMediaTransportControlsSessionMediaProperties { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GlobalSystemMediaTransportControlsSessionMediaProperties { const NAME: &'static str = "Windows.Media.Control.GlobalSystemMediaTransportControlsSessionMediaProperties"; } -::windows_core::imp::interface_hierarchy!(GlobalSystemMediaTransportControlsSessionMediaProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GlobalSystemMediaTransportControlsSessionMediaProperties {} unsafe impl ::core::marker::Sync for GlobalSystemMediaTransportControlsSessionMediaProperties {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GlobalSystemMediaTransportControlsSessionPlaybackControls(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GlobalSystemMediaTransportControlsSessionPlaybackControls, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GlobalSystemMediaTransportControlsSessionPlaybackControls { pub fn IsPlayEnabled(&self) -> ::windows_core::Result { let this = self; @@ -754,19 +639,17 @@ impl ::windows_core::RuntimeType for GlobalSystemMediaTransportControlsSessionPl } unsafe impl ::windows_core::Interface for GlobalSystemMediaTransportControlsSessionPlaybackControls { type Vtable = IGlobalSystemMediaTransportControlsSessionPlaybackControls_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GlobalSystemMediaTransportControlsSessionPlaybackControls { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GlobalSystemMediaTransportControlsSessionPlaybackControls { const NAME: &'static str = "Windows.Media.Control.GlobalSystemMediaTransportControlsSessionPlaybackControls"; } -::windows_core::imp::interface_hierarchy!(GlobalSystemMediaTransportControlsSessionPlaybackControls, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GlobalSystemMediaTransportControlsSessionPlaybackControls {} unsafe impl ::core::marker::Sync for GlobalSystemMediaTransportControlsSessionPlaybackControls {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GlobalSystemMediaTransportControlsSessionPlaybackInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GlobalSystemMediaTransportControlsSessionPlaybackInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GlobalSystemMediaTransportControlsSessionPlaybackInfo { pub fn Controls(&self) -> ::windows_core::Result { let this = self; @@ -816,19 +699,17 @@ impl ::windows_core::RuntimeType for GlobalSystemMediaTransportControlsSessionPl } unsafe impl ::windows_core::Interface for GlobalSystemMediaTransportControlsSessionPlaybackInfo { type Vtable = IGlobalSystemMediaTransportControlsSessionPlaybackInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GlobalSystemMediaTransportControlsSessionPlaybackInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GlobalSystemMediaTransportControlsSessionPlaybackInfo { const NAME: &'static str = "Windows.Media.Control.GlobalSystemMediaTransportControlsSessionPlaybackInfo"; } -::windows_core::imp::interface_hierarchy!(GlobalSystemMediaTransportControlsSessionPlaybackInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GlobalSystemMediaTransportControlsSessionPlaybackInfo {} unsafe impl ::core::marker::Sync for GlobalSystemMediaTransportControlsSessionPlaybackInfo {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GlobalSystemMediaTransportControlsSessionTimelineProperties(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GlobalSystemMediaTransportControlsSessionTimelineProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GlobalSystemMediaTransportControlsSessionTimelineProperties { pub fn StartTime(&self) -> ::windows_core::Result { let this = self; @@ -878,90 +759,79 @@ impl ::windows_core::RuntimeType for GlobalSystemMediaTransportControlsSessionTi } unsafe impl ::windows_core::Interface for GlobalSystemMediaTransportControlsSessionTimelineProperties { type Vtable = IGlobalSystemMediaTransportControlsSessionTimelineProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GlobalSystemMediaTransportControlsSessionTimelineProperties { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GlobalSystemMediaTransportControlsSessionTimelineProperties { const NAME: &'static str = "Windows.Media.Control.GlobalSystemMediaTransportControlsSessionTimelineProperties"; } -::windows_core::imp::interface_hierarchy!(GlobalSystemMediaTransportControlsSessionTimelineProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GlobalSystemMediaTransportControlsSessionTimelineProperties {} unsafe impl ::core::marker::Sync for GlobalSystemMediaTransportControlsSessionTimelineProperties {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaPropertiesChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaPropertiesChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaPropertiesChangedEventArgs {} impl ::windows_core::RuntimeType for MediaPropertiesChangedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_class::(); } unsafe impl ::windows_core::Interface for MediaPropertiesChangedEventArgs { type Vtable = IMediaPropertiesChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaPropertiesChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaPropertiesChangedEventArgs { const NAME: &'static str = "Windows.Media.Control.MediaPropertiesChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(MediaPropertiesChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaPropertiesChangedEventArgs {} unsafe impl ::core::marker::Sync for MediaPropertiesChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PlaybackInfoChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PlaybackInfoChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PlaybackInfoChangedEventArgs {} impl ::windows_core::RuntimeType for PlaybackInfoChangedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_class::(); } unsafe impl ::windows_core::Interface for PlaybackInfoChangedEventArgs { type Vtable = IPlaybackInfoChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PlaybackInfoChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PlaybackInfoChangedEventArgs { const NAME: &'static str = "Windows.Media.Control.PlaybackInfoChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(PlaybackInfoChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PlaybackInfoChangedEventArgs {} unsafe impl ::core::marker::Sync for PlaybackInfoChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SessionsChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SessionsChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SessionsChangedEventArgs {} impl ::windows_core::RuntimeType for SessionsChangedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_class::(); } unsafe impl ::windows_core::Interface for SessionsChangedEventArgs { type Vtable = ISessionsChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SessionsChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SessionsChangedEventArgs { const NAME: &'static str = "Windows.Media.Control.SessionsChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(SessionsChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SessionsChangedEventArgs {} unsafe impl ::core::marker::Sync for SessionsChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct TimelinePropertiesChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(TimelinePropertiesChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl TimelinePropertiesChangedEventArgs {} impl ::windows_core::RuntimeType for TimelinePropertiesChangedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_class::(); } unsafe impl ::windows_core::Interface for TimelinePropertiesChangedEventArgs { type Vtable = ITimelinePropertiesChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TimelinePropertiesChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for TimelinePropertiesChangedEventArgs { const NAME: &'static str = "Windows.Media.Control.TimelinePropertiesChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(TimelinePropertiesChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for TimelinePropertiesChangedEventArgs {} unsafe impl ::core::marker::Sync for TimelinePropertiesChangedEventArgs {} #[repr(transparent)] 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 cb8916fb9c..13b7204619 100644 --- a/crates/libs/windows/src/Windows/Media/Core/Preview/mod.rs +++ b/crates/libs/windows/src/Windows/Media/Core/Preview/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISoundLevelBrokerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISoundLevelBrokerStatics { - type Vtable = ISoundLevelBrokerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISoundLevelBrokerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6a633961_dbed_464c_a09a_33412f5caa3f); -} +::windows_core::imp::com_interface!(ISoundLevelBrokerStatics, ISoundLevelBrokerStatics_Vtbl, 0x6a633961_dbed_464c_a09a_33412f5caa3f); #[repr(C)] #[doc(hidden)] pub struct ISoundLevelBrokerStatics_Vtbl { diff --git a/crates/libs/windows/src/Windows/Media/Core/impl.rs b/crates/libs/windows/src/Windows/Media/Core/impl.rs index 9d007535a5..abc0d7075b 100644 --- a/crates/libs/windows/src/Windows/Media/Core/impl.rs +++ b/crates/libs/windows/src/Windows/Media/Core/impl.rs @@ -71,7 +71,7 @@ impl IMediaCue_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMediaSource_Impl: Sized {} @@ -83,7 +83,7 @@ impl IMediaSource_Vtbl { Self { base__: ::windows_core::IInspectable_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMediaStreamDescriptor_Impl: Sized { @@ -153,7 +153,7 @@ impl IMediaStreamDescriptor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMediaStreamDescriptor2_Impl: Sized + IMediaStreamDescriptor_Impl { @@ -189,7 +189,7 @@ impl IMediaStreamDescriptor2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMediaTrack_Impl: Sized { @@ -266,7 +266,7 @@ impl IMediaTrack_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISingleSelectMediaTrackList_Impl: Sized { @@ -321,7 +321,7 @@ impl ISingleSelectMediaTrackList_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -354,6 +354,6 @@ impl ITimedMetadataTrackProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/Media/Core/mod.rs b/crates/libs/windows/src/Windows/Media/Core/mod.rs index 94773056d9..38d7382bfd 100644 --- a/crates/libs/windows/src/Windows/Media/Core/mod.rs +++ b/crates/libs/windows/src/Windows/Media/Core/mod.rs @@ -1,16 +1,7 @@ #[cfg(feature = "Media_Core_Preview")] #[doc = "Required features: `\"Media_Core_Preview\"`"] pub mod Preview; -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioStreamDescriptor(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioStreamDescriptor { - type Vtable = IAudioStreamDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioStreamDescriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1e3692e4_4027_4847_a70b_df1d9a2a7b04); -} +::windows_core::imp::com_interface!(IAudioStreamDescriptor, IAudioStreamDescriptor_Vtbl, 0x1e3692e4_4027_4847_a70b_df1d9a2a7b04); #[repr(C)] #[doc(hidden)] pub struct IAudioStreamDescriptor_Vtbl { @@ -20,16 +11,7 @@ pub struct IAudioStreamDescriptor_Vtbl { #[cfg(not(feature = "Media_MediaProperties"))] EncodingProperties: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioStreamDescriptor2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioStreamDescriptor2 { - type Vtable = IAudioStreamDescriptor2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioStreamDescriptor2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2e68f1f6_a448_497b_8840_85082665acf9); -} +::windows_core::imp::com_interface!(IAudioStreamDescriptor2, IAudioStreamDescriptor2_Vtbl, 0x2e68f1f6_a448_497b_8840_85082665acf9); #[repr(C)] #[doc(hidden)] pub struct IAudioStreamDescriptor2_Vtbl { @@ -39,32 +21,14 @@ pub struct IAudioStreamDescriptor2_Vtbl { pub SetTrailingEncoderPadding: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub TrailingEncoderPadding: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioStreamDescriptor3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioStreamDescriptor3 { - type Vtable = IAudioStreamDescriptor3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioStreamDescriptor3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4d220da1_8e83_44ef_8973_2f63e993f36b); -} +::windows_core::imp::com_interface!(IAudioStreamDescriptor3, IAudioStreamDescriptor3_Vtbl, 0x4d220da1_8e83_44ef_8973_2f63e993f36b); #[repr(C)] #[doc(hidden)] pub struct IAudioStreamDescriptor3_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Copy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioStreamDescriptorFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioStreamDescriptorFactory { - type Vtable = IAudioStreamDescriptorFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioStreamDescriptorFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4a86ce9e_4cb1_4380_8e0c_83504b7f5bf3); -} +::windows_core::imp::com_interface!(IAudioStreamDescriptorFactory, IAudioStreamDescriptorFactory_Vtbl, 0x4a86ce9e_4cb1_4380_8e0c_83504b7f5bf3); #[repr(C)] #[doc(hidden)] pub struct IAudioStreamDescriptorFactory_Vtbl { @@ -74,16 +38,7 @@ pub struct IAudioStreamDescriptorFactory_Vtbl { #[cfg(not(feature = "Media_MediaProperties"))] Create: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioTrack(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioTrack { - type Vtable = IAudioTrack_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioTrack { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf23b6e77_3ef7_40de_b943_068b1321701d); -} +::windows_core::imp::com_interface!(IAudioTrack, IAudioTrack_Vtbl, 0xf23b6e77_3ef7_40de_b943_068b1321701d); #[repr(C)] #[doc(hidden)] pub struct IAudioTrack_Vtbl { @@ -101,32 +56,14 @@ pub struct IAudioTrack_Vtbl { pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SupportInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioTrackOpenFailedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioTrackOpenFailedEventArgs { - type Vtable = IAudioTrackOpenFailedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioTrackOpenFailedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeeddb9b9_bb7c_4112_bf76_9384676f824b); -} +::windows_core::imp::com_interface!(IAudioTrackOpenFailedEventArgs, IAudioTrackOpenFailedEventArgs_Vtbl, 0xeeddb9b9_bb7c_4112_bf76_9384676f824b); #[repr(C)] #[doc(hidden)] pub struct IAudioTrackOpenFailedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ExtendedError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioTrackSupportInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioTrackSupportInfo { - type Vtable = IAudioTrackSupportInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioTrackSupportInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x178beff7_cc39_44a6_b951_4a5653f073fa); -} +::windows_core::imp::com_interface!(IAudioTrackSupportInfo, IAudioTrackSupportInfo_Vtbl, 0x178beff7_cc39_44a6_b951_4a5653f073fa); #[repr(C)] #[doc(hidden)] pub struct IAudioTrackSupportInfo_Vtbl { @@ -136,16 +73,7 @@ pub struct IAudioTrackSupportInfo_Vtbl { pub DegradationReason: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut AudioDecoderDegradationReason) -> ::windows_core::HRESULT, pub MediaSourceStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut MediaSourceStatus) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IChapterCue(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IChapterCue { - type Vtable = IChapterCue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IChapterCue { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x72a98001_d38a_4c0a_8fa6_75cddaf4664c); -} +::windows_core::imp::com_interface!(IChapterCue, IChapterCue_Vtbl, 0x72a98001_d38a_4c0a_8fa6_75cddaf4664c); #[repr(C)] #[doc(hidden)] pub struct IChapterCue_Vtbl { @@ -153,16 +81,7 @@ pub struct IChapterCue_Vtbl { pub SetTitle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Title: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICodecInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICodecInfo { - type Vtable = ICodecInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICodecInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51e89f85_ea97_499c_86ac_4ce5e73f3a42); -} +::windows_core::imp::com_interface!(ICodecInfo, ICodecInfo_Vtbl, 0x51e89f85_ea97_499c_86ac_4ce5e73f3a42); #[repr(C)] #[doc(hidden)] pub struct ICodecInfo_Vtbl { @@ -176,16 +95,7 @@ pub struct ICodecInfo_Vtbl { pub DisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub IsTrusted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICodecQuery(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICodecQuery { - type Vtable = ICodecQuery_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICodecQuery { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x222a953a_af61_4e04_808a_a4634e2f3ac4); -} +::windows_core::imp::com_interface!(ICodecQuery, ICodecQuery_Vtbl, 0x222a953a_af61_4e04_808a_a4634e2f3ac4); #[repr(C)] #[doc(hidden)] pub struct ICodecQuery_Vtbl { @@ -195,16 +105,7 @@ pub struct ICodecQuery_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] FindAllAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICodecSubtypesStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICodecSubtypesStatics { - type Vtable = ICodecSubtypesStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICodecSubtypesStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa66ac4f2_888b_4224_8cf6_2a8d4eb02382); -} +::windows_core::imp::com_interface!(ICodecSubtypesStatics, ICodecSubtypesStatics_Vtbl, 0xa66ac4f2_888b_4224_8cf6_2a8d4eb02382); #[repr(C)] #[doc(hidden)] pub struct ICodecSubtypesStatics_Vtbl { @@ -261,16 +162,7 @@ pub struct ICodecSubtypesStatics_Vtbl { pub AudioFormatWMAudioV8: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub AudioFormatWMAudioV9: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataCue(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDataCue { - type Vtable = IDataCue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDataCue { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7c7f676d_1fbc_4e2d_9a87_ee38bd1dc637); -} +::windows_core::imp::com_interface!(IDataCue, IDataCue_Vtbl, 0x7c7f676d_1fbc_4e2d_9a87_ee38bd1dc637); #[repr(C)] #[doc(hidden)] pub struct IDataCue_Vtbl { @@ -284,16 +176,7 @@ pub struct IDataCue_Vtbl { #[cfg(not(feature = "Storage_Streams"))] Data: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataCue2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDataCue2 { - type Vtable = IDataCue2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDataCue2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbc561b15_95f2_49e8_96f1_8dd5dac68d93); -} +::windows_core::imp::com_interface!(IDataCue2, IDataCue2_Vtbl, 0xbc561b15_95f2_49e8_96f1_8dd5dac68d93); #[repr(C)] #[doc(hidden)] pub struct IDataCue2_Vtbl { @@ -303,32 +186,14 @@ pub struct IDataCue2_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Properties: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFaceDetectedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFaceDetectedEventArgs { - type Vtable = IFaceDetectedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFaceDetectedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x19918426_c65b_46ba_85f8_13880576c90a); -} +::windows_core::imp::com_interface!(IFaceDetectedEventArgs, IFaceDetectedEventArgs_Vtbl, 0x19918426_c65b_46ba_85f8_13880576c90a); #[repr(C)] #[doc(hidden)] pub struct IFaceDetectedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ResultFrame: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFaceDetectionEffect(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFaceDetectionEffect { - type Vtable = IFaceDetectionEffect_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFaceDetectionEffect { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xae15ebd2_0542_42a9_bc90_f283a29f46c1); -} +::windows_core::imp::com_interface!(IFaceDetectionEffect, IFaceDetectionEffect_Vtbl, 0xae15ebd2_0542_42a9_bc90_f283a29f46c1); #[repr(C)] #[doc(hidden)] pub struct IFaceDetectionEffect_Vtbl { @@ -340,16 +205,7 @@ pub struct IFaceDetectionEffect_Vtbl { pub FaceDetected: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveFaceDetected: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFaceDetectionEffectDefinition(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFaceDetectionEffectDefinition { - type Vtable = IFaceDetectionEffectDefinition_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFaceDetectionEffectDefinition { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x43dca081_b848_4f33_b702_1fd2624fb016); -} +::windows_core::imp::com_interface!(IFaceDetectionEffectDefinition, IFaceDetectionEffectDefinition_Vtbl, 0x43dca081_b848_4f33_b702_1fd2624fb016); #[repr(C)] #[doc(hidden)] pub struct IFaceDetectionEffectDefinition_Vtbl { @@ -359,16 +215,7 @@ pub struct IFaceDetectionEffectDefinition_Vtbl { pub SetSynchronousDetectionEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, pub SynchronousDetectionEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFaceDetectionEffectFrame(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFaceDetectionEffectFrame { - type Vtable = IFaceDetectionEffectFrame_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFaceDetectionEffectFrame { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8ab08993_5dc8_447b_a247_5270bd802ece); -} +::windows_core::imp::com_interface!(IFaceDetectionEffectFrame, IFaceDetectionEffectFrame_Vtbl, 0x8ab08993_5dc8_447b_a247_5270bd802ece); #[repr(C)] #[doc(hidden)] pub struct IFaceDetectionEffectFrame_Vtbl { @@ -378,16 +225,7 @@ pub struct IFaceDetectionEffectFrame_Vtbl { #[cfg(not(all(feature = "Foundation_Collections", feature = "Media_FaceAnalysis")))] DetectedFaces: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHighDynamicRangeControl(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHighDynamicRangeControl { - type Vtable = IHighDynamicRangeControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHighDynamicRangeControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x55f1a7ae_d957_4dc9_9d1c_8553a82a7d99); -} +::windows_core::imp::com_interface!(IHighDynamicRangeControl, IHighDynamicRangeControl_Vtbl, 0x55f1a7ae_d957_4dc9_9d1c_8553a82a7d99); #[repr(C)] #[doc(hidden)] pub struct IHighDynamicRangeControl_Vtbl { @@ -395,16 +233,7 @@ pub struct IHighDynamicRangeControl_Vtbl { pub SetEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, pub Enabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHighDynamicRangeOutput(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHighDynamicRangeOutput { - type Vtable = IHighDynamicRangeOutput_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHighDynamicRangeOutput { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0f57806b_253b_4119_bb40_3a90e51384f7); -} +::windows_core::imp::com_interface!(IHighDynamicRangeOutput, IHighDynamicRangeOutput_Vtbl, 0x0f57806b_253b_4119_bb40_3a90e51384f7); #[repr(C)] #[doc(hidden)] pub struct IHighDynamicRangeOutput_Vtbl { @@ -415,16 +244,7 @@ pub struct IHighDynamicRangeOutput_Vtbl { #[cfg(not(all(feature = "Foundation_Collections", feature = "Media_Devices_Core")))] FrameControllers: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IImageCue(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IImageCue { - type Vtable = IImageCue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IImageCue { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x52828282_367b_440b_9116_3c84570dd270); -} +::windows_core::imp::com_interface!(IImageCue, IImageCue_Vtbl, 0x52828282_367b_440b_9116_3c84570dd270); #[repr(C)] #[doc(hidden)] pub struct IImageCue_Vtbl { @@ -442,16 +262,7 @@ pub struct IImageCue_Vtbl { #[cfg(not(feature = "Graphics_Imaging"))] SoftwareBitmap: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInitializeMediaStreamSourceRequestedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInitializeMediaStreamSourceRequestedEventArgs { - type Vtable = IInitializeMediaStreamSourceRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInitializeMediaStreamSourceRequestedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x25bc45e1_9b08_4c2e_a855_4542f1a75deb); -} +::windows_core::imp::com_interface!(IInitializeMediaStreamSourceRequestedEventArgs, IInitializeMediaStreamSourceRequestedEventArgs_Vtbl, 0x25bc45e1_9b08_4c2e_a855_4542f1a75deb); #[repr(C)] #[doc(hidden)] pub struct IInitializeMediaStreamSourceRequestedEventArgs_Vtbl { @@ -463,16 +274,7 @@ pub struct IInitializeMediaStreamSourceRequestedEventArgs_Vtbl { RandomAccessStream: usize, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILowLightFusionResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILowLightFusionResult { - type Vtable = ILowLightFusionResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILowLightFusionResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x78edbe35_27a0_42e0_9cd3_738d2089de9c); -} +::windows_core::imp::com_interface!(ILowLightFusionResult, ILowLightFusionResult_Vtbl, 0x78edbe35_27a0_42e0_9cd3_738d2089de9c); #[repr(C)] #[doc(hidden)] pub struct ILowLightFusionResult_Vtbl { @@ -482,16 +284,7 @@ pub struct ILowLightFusionResult_Vtbl { #[cfg(not(feature = "Graphics_Imaging"))] Frame: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILowLightFusionStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILowLightFusionStatics { - type Vtable = ILowLightFusionStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILowLightFusionStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5305016d_c29e_40e2_87a9_9e1fd2f192f5); -} +::windows_core::imp::com_interface!(ILowLightFusionStatics, ILowLightFusionStatics_Vtbl, 0x5305016d_c29e_40e2_87a9_9e1fd2f192f5); #[repr(C)] #[doc(hidden)] pub struct ILowLightFusionStatics_Vtbl { @@ -506,16 +299,7 @@ pub struct ILowLightFusionStatics_Vtbl { #[cfg(not(all(feature = "Foundation_Collections", feature = "Graphics_Imaging")))] FuseAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaBinder(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaBinder { - type Vtable = IMediaBinder_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaBinder { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2b7e40aa_de07_424f_83f1_f1de46c4fa2e); -} +::windows_core::imp::com_interface!(IMediaBinder, IMediaBinder_Vtbl, 0x2b7e40aa_de07_424f_83f1_f1de46c4fa2e); #[repr(C)] #[doc(hidden)] pub struct IMediaBinder_Vtbl { @@ -526,16 +310,7 @@ pub struct IMediaBinder_Vtbl { pub SetToken: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Source: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaBindingEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaBindingEventArgs { - type Vtable = IMediaBindingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaBindingEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb61cb25a_1b6d_4630_a86d_2f0837f712e5); -} +::windows_core::imp::com_interface!(IMediaBindingEventArgs, IMediaBindingEventArgs_Vtbl, 0xb61cb25a_1b6d_4630_a86d_2f0837f712e5); #[repr(C)] #[doc(hidden)] pub struct IMediaBindingEventArgs_Vtbl { @@ -554,16 +329,7 @@ pub struct IMediaBindingEventArgs_Vtbl { #[cfg(not(feature = "Storage_Streams"))] SetStreamReference: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaBindingEventArgs2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaBindingEventArgs2 { - type Vtable = IMediaBindingEventArgs2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaBindingEventArgs2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0464cceb_bb5a_482f_b8ba_f0284c696567); -} +::windows_core::imp::com_interface!(IMediaBindingEventArgs2, IMediaBindingEventArgs2_Vtbl, 0x0464cceb_bb5a_482f_b8ba_f0284c696567); #[repr(C)] #[doc(hidden)] pub struct IMediaBindingEventArgs2_Vtbl { @@ -577,16 +343,7 @@ pub struct IMediaBindingEventArgs2_Vtbl { #[cfg(not(feature = "Storage"))] SetStorageFile: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaBindingEventArgs3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaBindingEventArgs3 { - type Vtable = IMediaBindingEventArgs3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaBindingEventArgs3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf8eb475e_19be_44fc_a5ed_7aba315037f9); -} +::windows_core::imp::com_interface!(IMediaBindingEventArgs3, IMediaBindingEventArgs3_Vtbl, 0xf8eb475e_19be_44fc_a5ed_7aba315037f9); #[repr(C)] #[doc(hidden)] pub struct IMediaBindingEventArgs3_Vtbl { @@ -596,9 +353,8 @@ pub struct IMediaBindingEventArgs3_Vtbl { #[cfg(not(feature = "Networking_BackgroundTransfer"))] SetDownloadOperation: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaCue(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMediaCue, IMediaCue_Vtbl, 0xc7d15e5d_59dc_431f_a0ee_27744323b36d); +::windows_core::imp::interface_hierarchy!(IMediaCue, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IMediaCue { pub fn SetStartTime(&self, value: super::super::Foundation::TimeSpan) -> ::windows_core::Result<()> { let this = self; @@ -634,16 +390,9 @@ impl IMediaCue { } } } -::windows_core::imp::interface_hierarchy!(IMediaCue, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IMediaCue { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IMediaCue { - type Vtable = IMediaCue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaCue { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc7d15e5d_59dc_431f_a0ee_27744323b36d); -} #[repr(C)] #[doc(hidden)] pub struct IMediaCue_Vtbl { @@ -655,51 +404,25 @@ pub struct IMediaCue_Vtbl { pub SetId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaCueEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaCueEventArgs { - type Vtable = IMediaCueEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaCueEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd12f47f7_5fa4_4e68_9fe5_32160dcee57e); -} +::windows_core::imp::com_interface!(IMediaCueEventArgs, IMediaCueEventArgs_Vtbl, 0xd12f47f7_5fa4_4e68_9fe5_32160dcee57e); #[repr(C)] #[doc(hidden)] pub struct IMediaCueEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Cue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaSource(::windows_core::IUnknown); -impl IMediaSource {} +::windows_core::imp::com_interface!(IMediaSource, IMediaSource_Vtbl, 0xe7bfb599_a09d_4c21_bcdf_20af4f86b3d9); ::windows_core::imp::interface_hierarchy!(IMediaSource, ::windows_core::IUnknown, ::windows_core::IInspectable); +impl IMediaSource {} impl ::windows_core::RuntimeType for IMediaSource { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IMediaSource { - type Vtable = IMediaSource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaSource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe7bfb599_a09d_4c21_bcdf_20af4f86b3d9); -} #[repr(C)] #[doc(hidden)] pub struct IMediaSource_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaSource2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaSource2 { - type Vtable = IMediaSource2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaSource2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2eb61048_655f_4c37_b813_b4e45dfa0abe); -} +::windows_core::imp::com_interface!(IMediaSource2, IMediaSource2_Vtbl, 0x2eb61048_655f_4c37_b813_b4e45dfa0abe); #[repr(C)] #[doc(hidden)] pub struct IMediaSource2_Vtbl { @@ -721,16 +444,7 @@ pub struct IMediaSource2_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] ExternalTimedMetadataTracks: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaSource3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaSource3 { - type Vtable = IMediaSource3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaSource3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb59f0d9b_4b6e_41ed_bbb4_7c7509a994ad); -} +::windows_core::imp::com_interface!(IMediaSource3, IMediaSource3_Vtbl, 0xb59f0d9b_4b6e_41ed_bbb4_7c7509a994ad); #[repr(C)] #[doc(hidden)] pub struct IMediaSource3_Vtbl { @@ -740,16 +454,7 @@ pub struct IMediaSource3_Vtbl { pub State: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut MediaSourceState) -> ::windows_core::HRESULT, pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaSource4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaSource4 { - type Vtable = IMediaSource4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaSource4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbdafad57_8eff_4c63_85a6_84de0ae3e4f2); -} +::windows_core::imp::com_interface!(IMediaSource4, IMediaSource4_Vtbl, 0xbdafad57_8eff_4c63_85a6_84de0ae3e4f2); #[repr(C)] #[doc(hidden)] pub struct IMediaSource4_Vtbl { @@ -763,16 +468,7 @@ pub struct IMediaSource4_Vtbl { pub Uri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub OpenAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaSource5(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaSource5 { - type Vtable = IMediaSource5_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaSource5 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x331a22ae_ed2e_4a22_94c8_b743a92b3022); -} +::windows_core::imp::com_interface!(IMediaSource5, IMediaSource5_Vtbl, 0x331a22ae_ed2e_4a22_94c8_b743a92b3022); #[repr(C)] #[doc(hidden)] pub struct IMediaSource5_Vtbl { @@ -782,16 +478,7 @@ pub struct IMediaSource5_Vtbl { #[cfg(not(feature = "Networking_BackgroundTransfer"))] DownloadOperation: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaSourceAppServiceConnection(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaSourceAppServiceConnection { - type Vtable = IMediaSourceAppServiceConnection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaSourceAppServiceConnection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x61e1ea97_1916_4810_b7f4_b642be829596); -} +::windows_core::imp::com_interface!(IMediaSourceAppServiceConnection, IMediaSourceAppServiceConnection_Vtbl, 0x61e1ea97_1916_4810_b7f4_b642be829596); #[repr(C)] #[doc(hidden)] pub struct IMediaSourceAppServiceConnection_Vtbl { @@ -800,16 +487,7 @@ pub struct IMediaSourceAppServiceConnection_Vtbl { pub RemoveInitializeMediaStreamSourceRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub Start: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaSourceAppServiceConnectionFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaSourceAppServiceConnectionFactory { - type Vtable = IMediaSourceAppServiceConnectionFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaSourceAppServiceConnectionFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x65b912eb_80b9_44f9_9c1e_e120f6d92838); -} +::windows_core::imp::com_interface!(IMediaSourceAppServiceConnectionFactory, IMediaSourceAppServiceConnectionFactory_Vtbl, 0x65b912eb_80b9_44f9_9c1e_e120f6d92838); #[repr(C)] #[doc(hidden)] pub struct IMediaSourceAppServiceConnectionFactory_Vtbl { @@ -819,48 +497,21 @@ pub struct IMediaSourceAppServiceConnectionFactory_Vtbl { #[cfg(not(feature = "ApplicationModel_AppService"))] Create: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaSourceError(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaSourceError { - type Vtable = IMediaSourceError_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaSourceError { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5c0a8965_37c5_4e9d_8d21_1cdee90cecc6); -} +::windows_core::imp::com_interface!(IMediaSourceError, IMediaSourceError_Vtbl, 0x5c0a8965_37c5_4e9d_8d21_1cdee90cecc6); #[repr(C)] #[doc(hidden)] pub struct IMediaSourceError_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ExtendedError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaSourceOpenOperationCompletedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaSourceOpenOperationCompletedEventArgs { - type Vtable = IMediaSourceOpenOperationCompletedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaSourceOpenOperationCompletedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfc682ceb_e281_477c_a8e0_1acd654114c8); -} +::windows_core::imp::com_interface!(IMediaSourceOpenOperationCompletedEventArgs, IMediaSourceOpenOperationCompletedEventArgs_Vtbl, 0xfc682ceb_e281_477c_a8e0_1acd654114c8); #[repr(C)] #[doc(hidden)] pub struct IMediaSourceOpenOperationCompletedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Error: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaSourceStateChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaSourceStateChangedEventArgs { - type Vtable = IMediaSourceStateChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaSourceStateChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0a30af82_9071_4bac_bc39_ca2a93b717a9); -} +::windows_core::imp::com_interface!(IMediaSourceStateChangedEventArgs, IMediaSourceStateChangedEventArgs_Vtbl, 0x0a30af82_9071_4bac_bc39_ca2a93b717a9); #[repr(C)] #[doc(hidden)] pub struct IMediaSourceStateChangedEventArgs_Vtbl { @@ -868,16 +519,7 @@ pub struct IMediaSourceStateChangedEventArgs_Vtbl { pub OldState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut MediaSourceState) -> ::windows_core::HRESULT, pub NewState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut MediaSourceState) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaSourceStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaSourceStatics { - type Vtable = IMediaSourceStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaSourceStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf77d6fa4_4652_410e_b1d8_e9a5e245a45c); -} +::windows_core::imp::com_interface!(IMediaSourceStatics, IMediaSourceStatics_Vtbl, 0xf77d6fa4_4652_410e_b1d8_e9a5e245a45c); #[repr(C)] #[doc(hidden)] pub struct IMediaSourceStatics_Vtbl { @@ -903,32 +545,14 @@ pub struct IMediaSourceStatics_Vtbl { CreateFromStreamReference: usize, pub CreateFromUri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uri: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaSourceStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaSourceStatics2 { - type Vtable = IMediaSourceStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaSourceStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeee161a4_7f13_4896_b8cb_df0de5bcb9f1); -} +::windows_core::imp::com_interface!(IMediaSourceStatics2, IMediaSourceStatics2_Vtbl, 0xeee161a4_7f13_4896_b8cb_df0de5bcb9f1); #[repr(C)] #[doc(hidden)] pub struct IMediaSourceStatics2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateFromMediaBinder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, binder: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaSourceStatics3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaSourceStatics3 { - type Vtable = IMediaSourceStatics3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaSourceStatics3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x453a30d6_2bea_4122_9f73_eace04526e35); -} +::windows_core::imp::com_interface!(IMediaSourceStatics3, IMediaSourceStatics3_Vtbl, 0x453a30d6_2bea_4122_9f73_eace04526e35); #[repr(C)] #[doc(hidden)] pub struct IMediaSourceStatics3_Vtbl { @@ -938,16 +562,7 @@ pub struct IMediaSourceStatics3_Vtbl { #[cfg(not(feature = "Media_Capture_Frames"))] CreateFromMediaFrameSource: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaSourceStatics4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaSourceStatics4 { - type Vtable = IMediaSourceStatics4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaSourceStatics4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x281b3bfc_e50a_4428_a500_9c4ed918d3f0); -} +::windows_core::imp::com_interface!(IMediaSourceStatics4, IMediaSourceStatics4_Vtbl, 0x281b3bfc_e50a_4428_a500_9c4ed918d3f0); #[repr(C)] #[doc(hidden)] pub struct IMediaSourceStatics4_Vtbl { @@ -957,9 +572,8 @@ pub struct IMediaSourceStatics4_Vtbl { #[cfg(not(feature = "Networking_BackgroundTransfer"))] CreateFromDownloadOperation: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaStreamDescriptor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMediaStreamDescriptor, IMediaStreamDescriptor_Vtbl, 0x80f16e6e_92f7_451e_97d2_afd80742da70); +::windows_core::imp::interface_hierarchy!(IMediaStreamDescriptor, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IMediaStreamDescriptor { pub fn IsSelected(&self) -> ::windows_core::Result { let this = self; @@ -991,16 +605,9 @@ impl IMediaStreamDescriptor { } } } -::windows_core::imp::interface_hierarchy!(IMediaStreamDescriptor, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IMediaStreamDescriptor { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IMediaStreamDescriptor { - type Vtable = IMediaStreamDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaStreamDescriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x80f16e6e_92f7_451e_97d2_afd80742da70); -} #[repr(C)] #[doc(hidden)] pub struct IMediaStreamDescriptor_Vtbl { @@ -1011,9 +618,9 @@ pub struct IMediaStreamDescriptor_Vtbl { pub SetLanguage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Language: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaStreamDescriptor2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMediaStreamDescriptor2, IMediaStreamDescriptor2_Vtbl, 0x5073010f_e8b2_4071_b00b_ebf337a76b58); +::windows_core::imp::interface_hierarchy!(IMediaStreamDescriptor2, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IMediaStreamDescriptor2, IMediaStreamDescriptor); impl IMediaStreamDescriptor2 { pub fn SetLabel(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { let this = self; @@ -1027,46 +634,38 @@ impl IMediaStreamDescriptor2 { } } pub fn IsSelected(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsSelected)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetName(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetName)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn Name(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Name)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetLanguage(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetLanguage)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn Language(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Language)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(IMediaStreamDescriptor2, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IMediaStreamDescriptor2 {} impl ::windows_core::RuntimeType for IMediaStreamDescriptor2 { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IMediaStreamDescriptor2 { - type Vtable = IMediaStreamDescriptor2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaStreamDescriptor2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5073010f_e8b2_4071_b00b_ebf337a76b58); -} #[repr(C)] #[doc(hidden)] pub struct IMediaStreamDescriptor2_Vtbl { @@ -1074,17 +673,8 @@ pub struct IMediaStreamDescriptor2_Vtbl { pub SetLabel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Label: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaStreamSample(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaStreamSample { - type Vtable = IMediaStreamSample_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaStreamSample { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5c8db627_4b80_4361_9837_6cb7481ad9d6); -} -#[repr(C)] +::windows_core::imp::com_interface!(IMediaStreamSample, IMediaStreamSample_Vtbl, 0x5c8db627_4b80_4361_9837_6cb7481ad9d6); +#[repr(C)] #[doc(hidden)] pub struct IMediaStreamSample_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, @@ -1109,16 +699,7 @@ pub struct IMediaStreamSample_Vtbl { pub SetDiscontinuous: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, pub Discontinuous: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaStreamSample2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaStreamSample2 { - type Vtable = IMediaStreamSample2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaStreamSample2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x45078691_fce8_4746_a1c8_10c25d3d7cd3); -} +::windows_core::imp::com_interface!(IMediaStreamSample2, IMediaStreamSample2_Vtbl, 0x45078691_fce8_4746_a1c8_10c25d3d7cd3); #[repr(C)] #[doc(hidden)] pub struct IMediaStreamSample2_Vtbl { @@ -1128,16 +709,7 @@ pub struct IMediaStreamSample2_Vtbl { #[cfg(not(feature = "Graphics_DirectX_Direct3D11"))] Direct3D11Surface: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaStreamSampleProtectionProperties(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaStreamSampleProtectionProperties { - type Vtable = IMediaStreamSampleProtectionProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaStreamSampleProtectionProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4eb88292_ecdf_493e_841d_dd4add7caca2); -} +::windows_core::imp::com_interface!(IMediaStreamSampleProtectionProperties, IMediaStreamSampleProtectionProperties_Vtbl, 0x4eb88292_ecdf_493e_841d_dd4add7caca2); #[repr(C)] #[doc(hidden)] pub struct IMediaStreamSampleProtectionProperties_Vtbl { @@ -1149,16 +721,7 @@ pub struct IMediaStreamSampleProtectionProperties_Vtbl { pub SetSubSampleMapping: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value_array_size: u32, value: *const u8) -> ::windows_core::HRESULT, pub GetSubSampleMapping: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value_array_size: *mut u32, value: *mut *mut u8) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaStreamSampleStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaStreamSampleStatics { - type Vtable = IMediaStreamSampleStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaStreamSampleStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdfdf218f_a6cf_4579_be41_73dd941ad972); -} +::windows_core::imp::com_interface!(IMediaStreamSampleStatics, IMediaStreamSampleStatics_Vtbl, 0xdfdf218f_a6cf_4579_be41_73dd941ad972); #[repr(C)] #[doc(hidden)] pub struct IMediaStreamSampleStatics_Vtbl { @@ -1172,16 +735,7 @@ pub struct IMediaStreamSampleStatics_Vtbl { #[cfg(not(feature = "Storage_Streams"))] CreateFromStreamAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaStreamSampleStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaStreamSampleStatics2 { - type Vtable = IMediaStreamSampleStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaStreamSampleStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9efe9521_6d46_494c_a2f8_d662922e2dd7); -} +::windows_core::imp::com_interface!(IMediaStreamSampleStatics2, IMediaStreamSampleStatics2_Vtbl, 0x9efe9521_6d46_494c_a2f8_d662922e2dd7); #[repr(C)] #[doc(hidden)] pub struct IMediaStreamSampleStatics2_Vtbl { @@ -1191,16 +745,7 @@ pub struct IMediaStreamSampleStatics2_Vtbl { #[cfg(not(feature = "Graphics_DirectX_Direct3D11"))] CreateFromDirect3D11Surface: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaStreamSource(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaStreamSource { - type Vtable = IMediaStreamSource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaStreamSource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3712d543_45eb_4138_aa62_c01e26f3843f); -} +::windows_core::imp::com_interface!(IMediaStreamSource, IMediaStreamSource_Vtbl, 0x3712d543_45eb_4138_aa62_c01e26f3843f); #[repr(C)] #[doc(hidden)] pub struct IMediaStreamSource_Vtbl { @@ -1250,16 +795,7 @@ pub struct IMediaStreamSource_Vtbl { Thumbnail: usize, pub AddProtectionKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, streamdescriptor: *mut ::core::ffi::c_void, keyIdentifier_array_size: u32, keyidentifier: *const u8, licenseData_array_size: u32, licensedata: *const u8) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaStreamSource2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaStreamSource2 { - type Vtable = IMediaStreamSource2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaStreamSource2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xec55d0ad_2e6a_4f74_adbb_b562d1533849); -} +::windows_core::imp::com_interface!(IMediaStreamSource2, IMediaStreamSource2_Vtbl, 0xec55d0ad_2e6a_4f74_adbb_b562d1533849); #[repr(C)] #[doc(hidden)] pub struct IMediaStreamSource2_Vtbl { @@ -1267,16 +803,7 @@ pub struct IMediaStreamSource2_Vtbl { pub SampleRendered: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveSampleRendered: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaStreamSource3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaStreamSource3 { - type Vtable = IMediaStreamSource3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaStreamSource3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6a2a2746_3ddd_4ddf_a121_94045ecf9440); -} +::windows_core::imp::com_interface!(IMediaStreamSource3, IMediaStreamSource3_Vtbl, 0x6a2a2746_3ddd_4ddf_a121_94045ecf9440); #[repr(C)] #[doc(hidden)] pub struct IMediaStreamSource3_Vtbl { @@ -1284,16 +811,7 @@ pub struct IMediaStreamSource3_Vtbl { pub SetMaxSupportedPlaybackRate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub MaxSupportedPlaybackRate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaStreamSource4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaStreamSource4 { - type Vtable = IMediaStreamSource4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaStreamSource4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1d0cfcab_830d_417c_a3a9_2454fd6415c7); -} +::windows_core::imp::com_interface!(IMediaStreamSource4, IMediaStreamSource4_Vtbl, 0x1d0cfcab_830d_417c_a3a9_2454fd6415c7); #[repr(C)] #[doc(hidden)] pub struct IMediaStreamSource4_Vtbl { @@ -1301,48 +819,21 @@ pub struct IMediaStreamSource4_Vtbl { pub SetIsLive: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, pub IsLive: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaStreamSourceClosedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaStreamSourceClosedEventArgs { - type Vtable = IMediaStreamSourceClosedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaStreamSourceClosedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcd8c7eb2_4816_4e24_88f0_491ef7386406); -} +::windows_core::imp::com_interface!(IMediaStreamSourceClosedEventArgs, IMediaStreamSourceClosedEventArgs_Vtbl, 0xcd8c7eb2_4816_4e24_88f0_491ef7386406); #[repr(C)] #[doc(hidden)] pub struct IMediaStreamSourceClosedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Request: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaStreamSourceClosedRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaStreamSourceClosedRequest { - type Vtable = IMediaStreamSourceClosedRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaStreamSourceClosedRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x907c00e9_18a3_4951_887a_2c1eebd5c69e); -} +::windows_core::imp::com_interface!(IMediaStreamSourceClosedRequest, IMediaStreamSourceClosedRequest_Vtbl, 0x907c00e9_18a3_4951_887a_2c1eebd5c69e); #[repr(C)] #[doc(hidden)] pub struct IMediaStreamSourceClosedRequest_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Reason: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut MediaStreamSourceClosedReason) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaStreamSourceFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaStreamSourceFactory { - type Vtable = IMediaStreamSourceFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaStreamSourceFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xef77e0d9_d158_4b7a_863f_203342fbfd41); -} +::windows_core::imp::com_interface!(IMediaStreamSourceFactory, IMediaStreamSourceFactory_Vtbl, 0xef77e0d9_d158_4b7a_863f_203342fbfd41); #[repr(C)] #[doc(hidden)] pub struct IMediaStreamSourceFactory_Vtbl { @@ -1350,32 +841,14 @@ pub struct IMediaStreamSourceFactory_Vtbl { pub CreateFromDescriptor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, descriptor: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateFromDescriptors: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, descriptor: *mut ::core::ffi::c_void, descriptor2: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaStreamSourceSampleRenderedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaStreamSourceSampleRenderedEventArgs { - type Vtable = IMediaStreamSourceSampleRenderedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaStreamSourceSampleRenderedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9d697b05_d4f2_4c7a_9dfe_8d6cd0b3ee84); -} +::windows_core::imp::com_interface!(IMediaStreamSourceSampleRenderedEventArgs, IMediaStreamSourceSampleRenderedEventArgs_Vtbl, 0x9d697b05_d4f2_4c7a_9dfe_8d6cd0b3ee84); #[repr(C)] #[doc(hidden)] pub struct IMediaStreamSourceSampleRenderedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub SampleLag: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::TimeSpan) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaStreamSourceSampleRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaStreamSourceSampleRequest { - type Vtable = IMediaStreamSourceSampleRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaStreamSourceSampleRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4db341a9_3501_4d9b_83f9_8f235c822532); -} +::windows_core::imp::com_interface!(IMediaStreamSourceSampleRequest, IMediaStreamSourceSampleRequest_Vtbl, 0x4db341a9_3501_4d9b_83f9_8f235c822532); #[repr(C)] #[doc(hidden)] pub struct IMediaStreamSourceSampleRequest_Vtbl { @@ -1386,64 +859,28 @@ pub struct IMediaStreamSourceSampleRequest_Vtbl { pub Sample: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ReportSampleProgress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, progress: u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaStreamSourceSampleRequestDeferral(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaStreamSourceSampleRequestDeferral { - type Vtable = IMediaStreamSourceSampleRequestDeferral_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaStreamSourceSampleRequestDeferral { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7895cc02_f982_43c8_9d16_c62d999319be); -} +::windows_core::imp::com_interface!(IMediaStreamSourceSampleRequestDeferral, IMediaStreamSourceSampleRequestDeferral_Vtbl, 0x7895cc02_f982_43c8_9d16_c62d999319be); #[repr(C)] #[doc(hidden)] pub struct IMediaStreamSourceSampleRequestDeferral_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Complete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaStreamSourceSampleRequestedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaStreamSourceSampleRequestedEventArgs { - type Vtable = IMediaStreamSourceSampleRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaStreamSourceSampleRequestedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x10f9bb9e_71c5_492f_847f_0da1f35e81f8); -} +::windows_core::imp::com_interface!(IMediaStreamSourceSampleRequestedEventArgs, IMediaStreamSourceSampleRequestedEventArgs_Vtbl, 0x10f9bb9e_71c5_492f_847f_0da1f35e81f8); #[repr(C)] #[doc(hidden)] pub struct IMediaStreamSourceSampleRequestedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Request: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaStreamSourceStartingEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaStreamSourceStartingEventArgs { - type Vtable = IMediaStreamSourceStartingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaStreamSourceStartingEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf41468f2_c274_4940_a5bb_28a572452fa7); -} +::windows_core::imp::com_interface!(IMediaStreamSourceStartingEventArgs, IMediaStreamSourceStartingEventArgs_Vtbl, 0xf41468f2_c274_4940_a5bb_28a572452fa7); #[repr(C)] #[doc(hidden)] pub struct IMediaStreamSourceStartingEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Request: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaStreamSourceStartingRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaStreamSourceStartingRequest { - type Vtable = IMediaStreamSourceStartingRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaStreamSourceStartingRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2a9093e4_35c4_4b1b_a791_0d99db56dd1d); -} +::windows_core::imp::com_interface!(IMediaStreamSourceStartingRequest, IMediaStreamSourceStartingRequest_Vtbl, 0x2a9093e4_35c4_4b1b_a791_0d99db56dd1d); #[repr(C)] #[doc(hidden)] pub struct IMediaStreamSourceStartingRequest_Vtbl { @@ -1452,32 +889,14 @@ pub struct IMediaStreamSourceStartingRequest_Vtbl { pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetActualStartPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, position: super::super::Foundation::TimeSpan) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaStreamSourceStartingRequestDeferral(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaStreamSourceStartingRequestDeferral { - type Vtable = IMediaStreamSourceStartingRequestDeferral_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaStreamSourceStartingRequestDeferral { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3f1356a5_6340_4dc4_9910_068ed9f598f8); -} +::windows_core::imp::com_interface!(IMediaStreamSourceStartingRequestDeferral, IMediaStreamSourceStartingRequestDeferral_Vtbl, 0x3f1356a5_6340_4dc4_9910_068ed9f598f8); #[repr(C)] #[doc(hidden)] pub struct IMediaStreamSourceStartingRequestDeferral_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Complete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaStreamSourceSwitchStreamsRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaStreamSourceSwitchStreamsRequest { - type Vtable = IMediaStreamSourceSwitchStreamsRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaStreamSourceSwitchStreamsRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x41b8808e_38a9_4ec3_9ba0_b69b85501e90); -} +::windows_core::imp::com_interface!(IMediaStreamSourceSwitchStreamsRequest, IMediaStreamSourceSwitchStreamsRequest_Vtbl, 0x41b8808e_38a9_4ec3_9ba0_b69b85501e90); #[repr(C)] #[doc(hidden)] pub struct IMediaStreamSourceSwitchStreamsRequest_Vtbl { @@ -1486,41 +905,22 @@ pub struct IMediaStreamSourceSwitchStreamsRequest_Vtbl { pub NewStreamDescriptor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaStreamSourceSwitchStreamsRequestDeferral(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaStreamSourceSwitchStreamsRequestDeferral { - type Vtable = IMediaStreamSourceSwitchStreamsRequestDeferral_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaStreamSourceSwitchStreamsRequestDeferral { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbee3d835_a505_4f9a_b943_2b8cb1b4bbd9); -} +::windows_core::imp::com_interface!(IMediaStreamSourceSwitchStreamsRequestDeferral, IMediaStreamSourceSwitchStreamsRequestDeferral_Vtbl, 0xbee3d835_a505_4f9a_b943_2b8cb1b4bbd9); #[repr(C)] #[doc(hidden)] pub struct IMediaStreamSourceSwitchStreamsRequestDeferral_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Complete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaStreamSourceSwitchStreamsRequestedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaStreamSourceSwitchStreamsRequestedEventArgs { - type Vtable = IMediaStreamSourceSwitchStreamsRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaStreamSourceSwitchStreamsRequestedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x42202b72_6ea1_4677_981e_350a0da412aa); -} +::windows_core::imp::com_interface!(IMediaStreamSourceSwitchStreamsRequestedEventArgs, IMediaStreamSourceSwitchStreamsRequestedEventArgs_Vtbl, 0x42202b72_6ea1_4677_981e_350a0da412aa); #[repr(C)] #[doc(hidden)] pub struct IMediaStreamSourceSwitchStreamsRequestedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Request: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaTrack(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMediaTrack, IMediaTrack_Vtbl, 0x03e1fafc_c931_491a_b46b_c10ee8c256b7); +::windows_core::imp::interface_hierarchy!(IMediaTrack, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IMediaTrack { pub fn Id(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1555,16 +955,9 @@ impl IMediaTrack { } } } -::windows_core::imp::interface_hierarchy!(IMediaTrack, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IMediaTrack { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IMediaTrack { - type Vtable = IMediaTrack_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaTrack { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x03e1fafc_c931_491a_b46b_c10ee8c256b7); -} #[repr(C)] #[doc(hidden)] pub struct IMediaTrack_Vtbl { @@ -1575,16 +968,7 @@ pub struct IMediaTrack_Vtbl { pub SetLabel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Label: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMseSourceBuffer(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMseSourceBuffer { - type Vtable = IMseSourceBuffer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMseSourceBuffer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c1aa3e3_df8d_4079_a3fe_6849184b4e2f); -} +::windows_core::imp::com_interface!(IMseSourceBuffer, IMseSourceBuffer_Vtbl, 0x0c1aa3e3_df8d_4079_a3fe_6849184b4e2f); #[repr(C)] #[doc(hidden)] pub struct IMseSourceBuffer_Vtbl { @@ -1627,16 +1011,7 @@ pub struct IMseSourceBuffer_Vtbl { pub Abort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, start: super::super::Foundation::TimeSpan, end: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMseSourceBufferList(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMseSourceBufferList { - type Vtable = IMseSourceBufferList_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMseSourceBufferList { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x95fae8e7_a8e7_4ebf_8927_145e940ba511); -} +::windows_core::imp::com_interface!(IMseSourceBufferList, IMseSourceBufferList_Vtbl, 0x95fae8e7_a8e7_4ebf_8927_145e940ba511); #[repr(C)] #[doc(hidden)] pub struct IMseSourceBufferList_Vtbl { @@ -1650,16 +1025,7 @@ pub struct IMseSourceBufferList_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Buffers: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMseStreamSource(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMseStreamSource { - type Vtable = IMseStreamSource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMseStreamSource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb0b4198d_02f4_4923_88dd_81bc3f360ffa); -} +::windows_core::imp::com_interface!(IMseStreamSource, IMseStreamSource_Vtbl, 0xb0b4198d_02f4_4923_88dd_81bc3f360ffa); #[repr(C)] #[doc(hidden)] pub struct IMseStreamSource_Vtbl { @@ -1679,16 +1045,7 @@ pub struct IMseStreamSource_Vtbl { pub RemoveSourceBuffer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, buffer: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub EndOfStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, status: MseEndOfStreamStatus) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMseStreamSource2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMseStreamSource2 { - type Vtable = IMseStreamSource2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMseStreamSource2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x66f57d37_f9e7_418a_9cde_a020e956552b); -} +::windows_core::imp::com_interface!(IMseStreamSource2, IMseStreamSource2_Vtbl, 0x66f57d37_f9e7_418a_9cde_a020e956552b); #[repr(C)] #[doc(hidden)] pub struct IMseStreamSource2_Vtbl { @@ -1696,32 +1053,14 @@ pub struct IMseStreamSource2_Vtbl { pub LiveSeekableRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetLiveSeekableRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMseStreamSourceStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMseStreamSourceStatics { - type Vtable = IMseStreamSourceStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMseStreamSourceStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x465c679d_d570_43ce_ba21_0bff5f3fbd0a); -} +::windows_core::imp::com_interface!(IMseStreamSourceStatics, IMseStreamSourceStatics_Vtbl, 0x465c679d_d570_43ce_ba21_0bff5f3fbd0a); #[repr(C)] #[doc(hidden)] pub struct IMseStreamSourceStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub IsContentTypeSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, contenttype: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISceneAnalysisEffect(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISceneAnalysisEffect { - type Vtable = ISceneAnalysisEffect_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISceneAnalysisEffect { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc04ba319_ca41_4813_bffd_7b08b0ed2557); -} +::windows_core::imp::com_interface!(ISceneAnalysisEffect, ISceneAnalysisEffect_Vtbl, 0xc04ba319_ca41_4813_bffd_7b08b0ed2557); #[repr(C)] #[doc(hidden)] pub struct ISceneAnalysisEffect_Vtbl { @@ -1732,16 +1071,7 @@ pub struct ISceneAnalysisEffect_Vtbl { pub SceneAnalyzed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveSceneAnalyzed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISceneAnalysisEffectFrame(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISceneAnalysisEffectFrame { - type Vtable = ISceneAnalysisEffectFrame_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISceneAnalysisEffectFrame { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd8b10e4c_7fd9_42e1_85eb_6572c297c987); -} +::windows_core::imp::com_interface!(ISceneAnalysisEffectFrame, ISceneAnalysisEffectFrame_Vtbl, 0xd8b10e4c_7fd9_42e1_85eb_6572c297c987); #[repr(C)] #[doc(hidden)] pub struct ISceneAnalysisEffectFrame_Vtbl { @@ -1752,41 +1082,22 @@ pub struct ISceneAnalysisEffectFrame_Vtbl { FrameControlValues: usize, pub HighDynamicRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISceneAnalysisEffectFrame2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISceneAnalysisEffectFrame2 { - type Vtable = ISceneAnalysisEffectFrame2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISceneAnalysisEffectFrame2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2d4e29be_061f_47ae_9915_02524b5f9a5f); -} +::windows_core::imp::com_interface!(ISceneAnalysisEffectFrame2, ISceneAnalysisEffectFrame2_Vtbl, 0x2d4e29be_061f_47ae_9915_02524b5f9a5f); #[repr(C)] #[doc(hidden)] pub struct ISceneAnalysisEffectFrame2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub AnalysisRecommendation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut SceneAnalysisRecommendation) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISceneAnalyzedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISceneAnalyzedEventArgs { - type Vtable = ISceneAnalyzedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISceneAnalyzedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x146b9588_2851_45e4_ad55_44cf8df8db4d); -} +::windows_core::imp::com_interface!(ISceneAnalyzedEventArgs, ISceneAnalyzedEventArgs_Vtbl, 0x146b9588_2851_45e4_ad55_44cf8df8db4d); #[repr(C)] #[doc(hidden)] pub struct ISceneAnalyzedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ResultFrame: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISingleSelectMediaTrackList(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISingleSelectMediaTrackList, ISingleSelectMediaTrackList_Vtbl, 0x77206f1f_c34f_494f_8077_2bad9ff4ecf1); +::windows_core::imp::interface_hierarchy!(ISingleSelectMediaTrackList, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ISingleSelectMediaTrackList { pub fn SelectedIndexChanged(&self, handler: P0) -> ::windows_core::Result where @@ -1814,16 +1125,9 @@ impl ISingleSelectMediaTrackList { } } } -::windows_core::imp::interface_hierarchy!(ISingleSelectMediaTrackList, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for ISingleSelectMediaTrackList { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for ISingleSelectMediaTrackList { - type Vtable = ISingleSelectMediaTrackList_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISingleSelectMediaTrackList { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x77206f1f_c34f_494f_8077_2bad9ff4ecf1); -} #[repr(C)] #[doc(hidden)] pub struct ISingleSelectMediaTrackList_Vtbl { @@ -1833,16 +1137,7 @@ pub struct ISingleSelectMediaTrackList_Vtbl { pub SetSelectedIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i32) -> ::windows_core::HRESULT, pub SelectedIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechCue(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpeechCue { - type Vtable = ISpeechCue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpeechCue { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaee254dc_1725_4bad_8043_a98499b017a2); -} +::windows_core::imp::com_interface!(ISpeechCue, ISpeechCue_Vtbl, 0xaee254dc_1725_4bad_8043_a98499b017a2); #[repr(C)] #[doc(hidden)] pub struct ISpeechCue_Vtbl { @@ -1854,16 +1149,7 @@ pub struct ISpeechCue_Vtbl { pub EndPositionInInput: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetEndPositionInInput: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITimedMetadataStreamDescriptor(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITimedMetadataStreamDescriptor { - type Vtable = ITimedMetadataStreamDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITimedMetadataStreamDescriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x133336bf_296a_463e_9ff9_01cd25691408); -} +::windows_core::imp::com_interface!(ITimedMetadataStreamDescriptor, ITimedMetadataStreamDescriptor_Vtbl, 0x133336bf_296a_463e_9ff9_01cd25691408); #[repr(C)] #[doc(hidden)] pub struct ITimedMetadataStreamDescriptor_Vtbl { @@ -1874,16 +1160,7 @@ pub struct ITimedMetadataStreamDescriptor_Vtbl { EncodingProperties: usize, pub Copy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITimedMetadataStreamDescriptorFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITimedMetadataStreamDescriptorFactory { - type Vtable = ITimedMetadataStreamDescriptorFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITimedMetadataStreamDescriptorFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc027de30_7362_4ff9_98b1_2dfd0b8d1cae); -} +::windows_core::imp::com_interface!(ITimedMetadataStreamDescriptorFactory, ITimedMetadataStreamDescriptorFactory_Vtbl, 0xc027de30_7362_4ff9_98b1_2dfd0b8d1cae); #[repr(C)] #[doc(hidden)] pub struct ITimedMetadataStreamDescriptorFactory_Vtbl { @@ -1893,16 +1170,7 @@ pub struct ITimedMetadataStreamDescriptorFactory_Vtbl { #[cfg(not(feature = "Media_MediaProperties"))] Create: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITimedMetadataTrack(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITimedMetadataTrack { - type Vtable = ITimedMetadataTrack_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITimedMetadataTrack { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9e6aed9e_f67a_49a9_b330_cf03b0e9cf07); -} +::windows_core::imp::com_interface!(ITimedMetadataTrack, ITimedMetadataTrack_Vtbl, 0x9e6aed9e_f67a_49a9_b330_cf03b0e9cf07); #[repr(C)] #[doc(hidden)] pub struct ITimedMetadataTrack_Vtbl { @@ -1926,16 +1194,7 @@ pub struct ITimedMetadataTrack_Vtbl { pub AddCue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cue: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RemoveCue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cue: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITimedMetadataTrack2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITimedMetadataTrack2 { - type Vtable = ITimedMetadataTrack2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITimedMetadataTrack2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x21b4b648_9f9d_40ba_a8f3_1a92753aef0b); -} +::windows_core::imp::com_interface!(ITimedMetadataTrack2, ITimedMetadataTrack2_Vtbl, 0x21b4b648_9f9d_40ba_a8f3_1a92753aef0b); #[repr(C)] #[doc(hidden)] pub struct ITimedMetadataTrack2_Vtbl { @@ -1946,16 +1205,7 @@ pub struct ITimedMetadataTrack2_Vtbl { PlaybackItem: usize, pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITimedMetadataTrackError(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITimedMetadataTrackError { - type Vtable = ITimedMetadataTrackError_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITimedMetadataTrackError { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb3767915_4114_4819_b9d9_dd76089e72f8); -} +::windows_core::imp::com_interface!(ITimedMetadataTrackError, ITimedMetadataTrackError_Vtbl, 0xb3767915_4114_4819_b9d9_dd76089e72f8); #[repr(C)] #[doc(hidden)] pub struct ITimedMetadataTrackError_Vtbl { @@ -1963,41 +1213,22 @@ pub struct ITimedMetadataTrackError_Vtbl { pub ErrorCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut TimedMetadataTrackErrorCode) -> ::windows_core::HRESULT, pub ExtendedError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITimedMetadataTrackFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITimedMetadataTrackFactory { - type Vtable = ITimedMetadataTrackFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITimedMetadataTrackFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8dd57611_97b3_4e1f_852c_0f482c81ad26); -} +::windows_core::imp::com_interface!(ITimedMetadataTrackFactory, ITimedMetadataTrackFactory_Vtbl, 0x8dd57611_97b3_4e1f_852c_0f482c81ad26); #[repr(C)] #[doc(hidden)] pub struct ITimedMetadataTrackFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: ::std::mem::MaybeUninit<::windows_core::HSTRING>, language: ::std::mem::MaybeUninit<::windows_core::HSTRING>, kind: TimedMetadataKind, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITimedMetadataTrackFailedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITimedMetadataTrackFailedEventArgs { - type Vtable = ITimedMetadataTrackFailedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITimedMetadataTrackFailedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa57fc9d1_6789_4d4d_b07f_84b4f31acb70); -} +::windows_core::imp::com_interface!(ITimedMetadataTrackFailedEventArgs, ITimedMetadataTrackFailedEventArgs_Vtbl, 0xa57fc9d1_6789_4d4d_b07f_84b4f31acb70); #[repr(C)] #[doc(hidden)] pub struct ITimedMetadataTrackFailedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Error: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITimedMetadataTrackProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITimedMetadataTrackProvider, ITimedMetadataTrackProvider_Vtbl, 0x3b7f2024_f74e_4ade_93c5_219da05b6856); +::windows_core::imp::interface_hierarchy!(ITimedMetadataTrackProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ITimedMetadataTrackProvider { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -2009,16 +1240,9 @@ impl ITimedMetadataTrackProvider { } } } -::windows_core::imp::interface_hierarchy!(ITimedMetadataTrackProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for ITimedMetadataTrackProvider { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for ITimedMetadataTrackProvider { - type Vtable = ITimedMetadataTrackProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITimedMetadataTrackProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3b7f2024_f74e_4ade_93c5_219da05b6856); -} #[repr(C)] #[doc(hidden)] pub struct ITimedMetadataTrackProvider_Vtbl { @@ -2028,16 +1252,7 @@ pub struct ITimedMetadataTrackProvider_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] TimedMetadataTracks: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITimedTextBouten(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITimedTextBouten { - type Vtable = ITimedTextBouten_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITimedTextBouten { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd9062783_5597_5092_820c_8f738e0f774a); -} +::windows_core::imp::com_interface!(ITimedTextBouten, ITimedTextBouten_Vtbl, 0xd9062783_5597_5092_820c_8f738e0f774a); #[repr(C)] #[doc(hidden)] pub struct ITimedTextBouten_Vtbl { @@ -2055,16 +1270,7 @@ pub struct ITimedTextBouten_Vtbl { pub Position: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut TimedTextBoutenPosition) -> ::windows_core::HRESULT, pub SetPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: TimedTextBoutenPosition) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITimedTextCue(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITimedTextCue { - type Vtable = ITimedTextCue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITimedTextCue { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51c79e51_3b86_494d_b359_bb2ea7aca9a9); -} +::windows_core::imp::com_interface!(ITimedTextCue, ITimedTextCue_Vtbl, 0x51c79e51_3b86_494d_b359_bb2ea7aca9a9); #[repr(C)] #[doc(hidden)] pub struct ITimedTextCue_Vtbl { @@ -2078,16 +1284,7 @@ pub struct ITimedTextCue_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Lines: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITimedTextLine(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITimedTextLine { - type Vtable = ITimedTextLine_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITimedTextLine { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x978d7ce2_7308_4c66_be50_65777289f5df); -} +::windows_core::imp::com_interface!(ITimedTextLine, ITimedTextLine_Vtbl, 0x978d7ce2_7308_4c66_be50_65777289f5df); #[repr(C)] #[doc(hidden)] pub struct ITimedTextLine_Vtbl { @@ -2099,16 +1296,7 @@ pub struct ITimedTextLine_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Subformats: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITimedTextRegion(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITimedTextRegion { - type Vtable = ITimedTextRegion_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITimedTextRegion { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1ed0881f_8a06_4222_9f59_b21bf40124b4); -} +::windows_core::imp::com_interface!(ITimedTextRegion, ITimedTextRegion_Vtbl, 0x1ed0881f_8a06_4222_9f59_b21bf40124b4); #[repr(C)] #[doc(hidden)] pub struct ITimedTextRegion_Vtbl { @@ -2144,16 +1332,7 @@ pub struct ITimedTextRegion_Vtbl { pub ScrollMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut TimedTextScrollMode) -> ::windows_core::HRESULT, pub SetScrollMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: TimedTextScrollMode) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITimedTextRuby(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITimedTextRuby { - type Vtable = ITimedTextRuby_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITimedTextRuby { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x10335c29_5b3c_5693_9959_d05a0bd24628); -} +::windows_core::imp::com_interface!(ITimedTextRuby, ITimedTextRuby_Vtbl, 0x10335c29_5b3c_5693_9959_d05a0bd24628); #[repr(C)] #[doc(hidden)] pub struct ITimedTextRuby_Vtbl { @@ -2167,16 +1346,7 @@ pub struct ITimedTextRuby_Vtbl { pub Reserve: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut TimedTextRubyReserve) -> ::windows_core::HRESULT, pub SetReserve: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: TimedTextRubyReserve) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITimedTextSource(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITimedTextSource { - type Vtable = ITimedTextSource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITimedTextSource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc4ed9ba6_101f_404d_a949_82f33fcd93b7); -} +::windows_core::imp::com_interface!(ITimedTextSource, ITimedTextSource_Vtbl, 0xc4ed9ba6_101f_404d_a949_82f33fcd93b7); #[repr(C)] #[doc(hidden)] pub struct ITimedTextSource_Vtbl { @@ -2184,16 +1354,7 @@ pub struct ITimedTextSource_Vtbl { pub Resolved: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveResolved: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITimedTextSourceResolveResultEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITimedTextSourceResolveResultEventArgs { - type Vtable = ITimedTextSourceResolveResultEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITimedTextSourceResolveResultEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x48907c9c_dcd8_4c33_9ad3_6cdce7b1c566); -} +::windows_core::imp::com_interface!(ITimedTextSourceResolveResultEventArgs, ITimedTextSourceResolveResultEventArgs_Vtbl, 0x48907c9c_dcd8_4c33_9ad3_6cdce7b1c566); #[repr(C)] #[doc(hidden)] pub struct ITimedTextSourceResolveResultEventArgs_Vtbl { @@ -2204,16 +1365,7 @@ pub struct ITimedTextSourceResolveResultEventArgs_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Tracks: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITimedTextSourceStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITimedTextSourceStatics { - type Vtable = ITimedTextSourceStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITimedTextSourceStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7e311853_9aba_4ac4_bb98_2fb176c3bfdd); -} +::windows_core::imp::com_interface!(ITimedTextSourceStatics, ITimedTextSourceStatics_Vtbl, 0x7e311853_9aba_4ac4_bb98_2fb176c3bfdd); #[repr(C)] #[doc(hidden)] pub struct ITimedTextSourceStatics_Vtbl { @@ -2229,16 +1381,7 @@ pub struct ITimedTextSourceStatics_Vtbl { CreateFromStreamWithLanguage: usize, pub CreateFromUriWithLanguage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uri: *mut ::core::ffi::c_void, defaultlanguage: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITimedTextSourceStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITimedTextSourceStatics2 { - type Vtable = ITimedTextSourceStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITimedTextSourceStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb66b7602_923e_43fa_9633_587075812db5); -} +::windows_core::imp::com_interface!(ITimedTextSourceStatics2, ITimedTextSourceStatics2_Vtbl, 0xb66b7602_923e_43fa_9633_587075812db5); #[repr(C)] #[doc(hidden)] pub struct ITimedTextSourceStatics2_Vtbl { @@ -2254,16 +1397,7 @@ pub struct ITimedTextSourceStatics2_Vtbl { CreateFromStreamWithIndexAndLanguage: usize, pub CreateFromUriWithIndexAndLanguage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uri: *mut ::core::ffi::c_void, indexuri: *mut ::core::ffi::c_void, defaultlanguage: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITimedTextStyle(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITimedTextStyle { - type Vtable = ITimedTextStyle_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITimedTextStyle { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1bb2384d_a825_40c2_a7f5_281eaedf3b55); -} +::windows_core::imp::com_interface!(ITimedTextStyle, ITimedTextStyle_Vtbl, 0x1bb2384d_a825_40c2_a7f5_281eaedf3b55); #[repr(C)] #[doc(hidden)] pub struct ITimedTextStyle_Vtbl { @@ -2311,16 +1445,7 @@ pub struct ITimedTextStyle_Vtbl { pub OutlineRadius: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut TimedTextDouble) -> ::windows_core::HRESULT, pub SetOutlineRadius: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: TimedTextDouble) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITimedTextStyle2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITimedTextStyle2 { - type Vtable = ITimedTextStyle2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITimedTextStyle2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x655f492d_6111_4787_89cc_686fece57e14); -} +::windows_core::imp::com_interface!(ITimedTextStyle2, ITimedTextStyle2_Vtbl, 0x655f492d_6111_4787_89cc_686fece57e14); #[repr(C)] #[doc(hidden)] pub struct ITimedTextStyle2_Vtbl { @@ -2334,16 +1459,7 @@ pub struct ITimedTextStyle2_Vtbl { pub IsOverlineEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetIsOverlineEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITimedTextStyle3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITimedTextStyle3 { - type Vtable = ITimedTextStyle3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITimedTextStyle3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf803f93b_3e99_595e_bbb7_78a2fa13c270); -} +::windows_core::imp::com_interface!(ITimedTextStyle3, ITimedTextStyle3_Vtbl, 0xf803f93b_3e99_595e_bbb7_78a2fa13c270); #[repr(C)] #[doc(hidden)] pub struct ITimedTextStyle3_Vtbl { @@ -2355,16 +1471,7 @@ pub struct ITimedTextStyle3_Vtbl { pub FontAngleInDegrees: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows_core::HRESULT, pub SetFontAngleInDegrees: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f64) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITimedTextSubformat(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITimedTextSubformat { - type Vtable = ITimedTextSubformat_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITimedTextSubformat { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd713502f_3261_4722_a0c2_b937b2390f14); -} +::windows_core::imp::com_interface!(ITimedTextSubformat, ITimedTextSubformat_Vtbl, 0xd713502f_3261_4722_a0c2_b937b2390f14); #[repr(C)] #[doc(hidden)] pub struct ITimedTextSubformat_Vtbl { @@ -2376,16 +1483,7 @@ pub struct ITimedTextSubformat_Vtbl { pub SubformatStyle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetSubformatStyle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVideoStabilizationEffect(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVideoStabilizationEffect { - type Vtable = IVideoStabilizationEffect_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVideoStabilizationEffect { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0808a650_9698_4e57_877b_bd7cb2ee0f8a); -} +::windows_core::imp::com_interface!(IVideoStabilizationEffect, IVideoStabilizationEffect_Vtbl, 0x0808a650_9698_4e57_877b_bd7cb2ee0f8a); #[repr(C)] #[doc(hidden)] pub struct IVideoStabilizationEffect_Vtbl { @@ -2399,67 +1497,31 @@ pub struct IVideoStabilizationEffect_Vtbl { #[cfg(not(all(feature = "Media_Capture", feature = "Media_Devices", feature = "Media_MediaProperties")))] GetRecommendedStreamConfiguration: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVideoStabilizationEffectEnabledChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVideoStabilizationEffectEnabledChangedEventArgs { - type Vtable = IVideoStabilizationEffectEnabledChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVideoStabilizationEffectEnabledChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x187eff28_67bb_4713_b900_4168da164529); -} +::windows_core::imp::com_interface!(IVideoStabilizationEffectEnabledChangedEventArgs, IVideoStabilizationEffectEnabledChangedEventArgs_Vtbl, 0x187eff28_67bb_4713_b900_4168da164529); #[repr(C)] #[doc(hidden)] pub struct IVideoStabilizationEffectEnabledChangedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Reason: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut VideoStabilizationEffectEnabledChangedReason) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVideoStreamDescriptor(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVideoStreamDescriptor { - type Vtable = IVideoStreamDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVideoStreamDescriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x12ee0d55_9c2b_4440_8057_2c7a90f0cbec); -} +::windows_core::imp::com_interface!(IVideoStreamDescriptor, IVideoStreamDescriptor_Vtbl, 0x12ee0d55_9c2b_4440_8057_2c7a90f0cbec); #[repr(C)] #[doc(hidden)] pub struct IVideoStreamDescriptor_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, - #[cfg(feature = "Media_MediaProperties")] - pub EncodingProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, - #[cfg(not(feature = "Media_MediaProperties"))] - EncodingProperties: usize, -} -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVideoStreamDescriptor2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVideoStreamDescriptor2 { - type Vtable = IVideoStreamDescriptor2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVideoStreamDescriptor2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8b306e10_453e_4088_832d_c36fa4f94af3); + #[cfg(feature = "Media_MediaProperties")] + pub EncodingProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, + #[cfg(not(feature = "Media_MediaProperties"))] + EncodingProperties: usize, } +::windows_core::imp::com_interface!(IVideoStreamDescriptor2, IVideoStreamDescriptor2_Vtbl, 0x8b306e10_453e_4088_832d_c36fa4f94af3); #[repr(C)] #[doc(hidden)] pub struct IVideoStreamDescriptor2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Copy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVideoStreamDescriptorFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVideoStreamDescriptorFactory { - type Vtable = IVideoStreamDescriptorFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVideoStreamDescriptorFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x494ef6d1_bb75_43d2_9e5e_7b79a3afced4); -} +::windows_core::imp::com_interface!(IVideoStreamDescriptorFactory, IVideoStreamDescriptorFactory_Vtbl, 0x494ef6d1_bb75_43d2_9e5e_7b79a3afced4); #[repr(C)] #[doc(hidden)] pub struct IVideoStreamDescriptorFactory_Vtbl { @@ -2469,16 +1531,7 @@ pub struct IVideoStreamDescriptorFactory_Vtbl { #[cfg(not(feature = "Media_MediaProperties"))] Create: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVideoTrack(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVideoTrack { - type Vtable = IVideoTrack_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVideoTrack { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x99f3b7f3_e298_4396_bb6a_a51be6a2a20a); -} +::windows_core::imp::com_interface!(IVideoTrack, IVideoTrack_Vtbl, 0x99f3b7f3_e298_4396_bb6a_a51be6a2a20a); #[repr(C)] #[doc(hidden)] pub struct IVideoTrack_Vtbl { @@ -2496,32 +1549,14 @@ pub struct IVideoTrack_Vtbl { pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SupportInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVideoTrackOpenFailedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVideoTrackOpenFailedEventArgs { - type Vtable = IVideoTrackOpenFailedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVideoTrackOpenFailedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7679e231_04f9_4c82_a4ee_8602c8bb4754); -} +::windows_core::imp::com_interface!(IVideoTrackOpenFailedEventArgs, IVideoTrackOpenFailedEventArgs_Vtbl, 0x7679e231_04f9_4c82_a4ee_8602c8bb4754); #[repr(C)] #[doc(hidden)] pub struct IVideoTrackOpenFailedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ExtendedError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVideoTrackSupportInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVideoTrackSupportInfo { - type Vtable = IVideoTrackSupportInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVideoTrackSupportInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4bb534a0_fc5f_450d_8ff0_778d590486de); -} +::windows_core::imp::com_interface!(IVideoTrackSupportInfo, IVideoTrackSupportInfo_Vtbl, 0x4bb534a0_fc5f_450d_8ff0_778d590486de); #[repr(C)] #[doc(hidden)] pub struct IVideoTrackSupportInfo_Vtbl { @@ -2532,6 +1567,8 @@ pub struct IVideoTrackSupportInfo_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AudioStreamDescriptor(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AudioStreamDescriptor, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(AudioStreamDescriptor, IMediaStreamDescriptor, IMediaStreamDescriptor2); impl AudioStreamDescriptor { #[doc = "Required features: `\"Media_MediaProperties\"`"] #[cfg(feature = "Media_MediaProperties")] @@ -2544,13 +1581,13 @@ impl AudioStreamDescriptor { } pub fn SetLeadingEncoderPadding(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetLeadingEncoderPadding)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn LeadingEncoderPadding(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).LeadingEncoderPadding)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2558,20 +1595,20 @@ impl AudioStreamDescriptor { } pub fn SetTrailingEncoderPadding(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetTrailingEncoderPadding)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn TrailingEncoderPadding(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TrailingEncoderPadding)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Copy(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Copy)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2589,40 +1626,40 @@ impl AudioStreamDescriptor { }) } pub fn IsSelected(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsSelected)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetName(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetName)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn Name(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Name)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetLanguage(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetLanguage)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn Language(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Language)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetLabel(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetLabel)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn Label(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Label)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2639,40 +1676,37 @@ impl ::windows_core::RuntimeType for AudioStreamDescriptor { } unsafe impl ::windows_core::Interface for AudioStreamDescriptor { type Vtable = IAudioStreamDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AudioStreamDescriptor { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AudioStreamDescriptor { const NAME: &'static str = "Windows.Media.Core.AudioStreamDescriptor"; } -::windows_core::imp::interface_hierarchy!(AudioStreamDescriptor, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for AudioStreamDescriptor {} -impl ::windows_core::CanTryInto for AudioStreamDescriptor {} unsafe impl ::core::marker::Send for AudioStreamDescriptor {} unsafe impl ::core::marker::Sync for AudioStreamDescriptor {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AudioTrack(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AudioTrack, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(AudioTrack, IMediaTrack); impl AudioTrack { pub fn OpenFailed(&self, handler: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveOpenFailed(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveOpenFailed)(::windows_core::Interface::as_raw(this), token).ok() } } #[doc = "Required features: `\"Media_MediaProperties\"`"] #[cfg(feature = "Media_MediaProperties")] pub fn GetEncodingProperties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetEncodingProperties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2681,21 +1715,21 @@ impl AudioTrack { #[doc = "Required features: `\"Media_Playback\"`"] #[cfg(feature = "Media_Playback")] pub fn PlaybackItem(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PlaybackItem)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Name(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Name)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SupportInfo(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SupportInfo)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2739,20 +1773,17 @@ impl ::windows_core::RuntimeType for AudioTrack { } unsafe impl ::windows_core::Interface for AudioTrack { type Vtable = IMediaTrack_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AudioTrack { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AudioTrack { const NAME: &'static str = "Windows.Media.Core.AudioTrack"; } -::windows_core::imp::interface_hierarchy!(AudioTrack, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for AudioTrack {} unsafe impl ::core::marker::Send for AudioTrack {} unsafe impl ::core::marker::Sync for AudioTrack {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AudioTrackOpenFailedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AudioTrackOpenFailedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AudioTrackOpenFailedEventArgs { pub fn ExtendedError(&self) -> ::windows_core::Result<::windows_core::HRESULT> { let this = self; @@ -2767,19 +1798,17 @@ impl ::windows_core::RuntimeType for AudioTrackOpenFailedEventArgs { } unsafe impl ::windows_core::Interface for AudioTrackOpenFailedEventArgs { type Vtable = IAudioTrackOpenFailedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AudioTrackOpenFailedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AudioTrackOpenFailedEventArgs { const NAME: &'static str = "Windows.Media.Core.AudioTrackOpenFailedEventArgs"; } -::windows_core::imp::interface_hierarchy!(AudioTrackOpenFailedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AudioTrackOpenFailedEventArgs {} unsafe impl ::core::marker::Sync for AudioTrackOpenFailedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AudioTrackSupportInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AudioTrackSupportInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AudioTrackSupportInfo { pub fn DecoderStatus(&self) -> ::windows_core::Result { let this = self; @@ -2815,19 +1844,18 @@ impl ::windows_core::RuntimeType for AudioTrackSupportInfo { } unsafe impl ::windows_core::Interface for AudioTrackSupportInfo { type Vtable = IAudioTrackSupportInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AudioTrackSupportInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AudioTrackSupportInfo { const NAME: &'static str = "Windows.Media.Core.AudioTrackSupportInfo"; } -::windows_core::imp::interface_hierarchy!(AudioTrackSupportInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AudioTrackSupportInfo {} unsafe impl ::core::marker::Sync for AudioTrackSupportInfo {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ChapterCue(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ChapterCue, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ChapterCue, IMediaCue); impl ChapterCue { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2848,33 +1876,33 @@ impl ChapterCue { } } pub fn SetStartTime(&self, value: super::super::Foundation::TimeSpan) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetStartTime)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn StartTime(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).StartTime)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDuration(&self, value: super::super::Foundation::TimeSpan) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDuration)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Duration(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Duration)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetId(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetId)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn Id(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Id)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2886,20 +1914,17 @@ impl ::windows_core::RuntimeType for ChapterCue { } unsafe impl ::windows_core::Interface for ChapterCue { type Vtable = IChapterCue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ChapterCue { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ChapterCue { const NAME: &'static str = "Windows.Media.Core.ChapterCue"; } -::windows_core::imp::interface_hierarchy!(ChapterCue, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ChapterCue {} unsafe impl ::core::marker::Send for ChapterCue {} unsafe impl ::core::marker::Sync for ChapterCue {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CodecInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CodecInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CodecInfo { pub fn Kind(&self) -> ::windows_core::Result { let this = self; @@ -2944,19 +1969,17 @@ impl ::windows_core::RuntimeType for CodecInfo { } unsafe impl ::windows_core::Interface for CodecInfo { type Vtable = ICodecInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CodecInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CodecInfo { const NAME: &'static str = "Windows.Media.Core.CodecInfo"; } -::windows_core::imp::interface_hierarchy!(CodecInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CodecInfo {} unsafe impl ::core::marker::Sync for CodecInfo {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CodecQuery(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CodecQuery, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CodecQuery { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2980,14 +2003,11 @@ impl ::windows_core::RuntimeType for CodecQuery { } unsafe impl ::windows_core::Interface for CodecQuery { type Vtable = ICodecQuery_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CodecQuery { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CodecQuery { const NAME: &'static str = "Windows.Media.Core.CodecQuery"; } -::windows_core::imp::interface_hierarchy!(CodecQuery, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CodecQuery {} unsafe impl ::core::marker::Sync for CodecQuery {} pub struct CodecSubtypes; @@ -3310,6 +2330,8 @@ impl ::windows_core::RuntimeName for CodecSubtypes { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DataCue(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DataCue, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(DataCue, IMediaCue); impl DataCue { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -3322,10 +2344,10 @@ impl DataCue { #[cfg(feature = "Storage_Streams")] pub fn SetData(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetData)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetData)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] @@ -3339,40 +2361,40 @@ impl DataCue { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetStartTime(&self, value: super::super::Foundation::TimeSpan) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetStartTime)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn StartTime(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).StartTime)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDuration(&self, value: super::super::Foundation::TimeSpan) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDuration)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Duration(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Duration)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetId(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetId)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn Id(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Id)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3384,20 +2406,17 @@ impl ::windows_core::RuntimeType for DataCue { } unsafe impl ::windows_core::Interface for DataCue { type Vtable = IDataCue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DataCue { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DataCue { const NAME: &'static str = "Windows.Media.Core.DataCue"; } -::windows_core::imp::interface_hierarchy!(DataCue, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for DataCue {} unsafe impl ::core::marker::Send for DataCue {} unsafe impl ::core::marker::Sync for DataCue {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct FaceDetectedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(FaceDetectedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl FaceDetectedEventArgs { pub fn ResultFrame(&self) -> ::windows_core::Result { let this = self; @@ -3412,19 +2431,18 @@ impl ::windows_core::RuntimeType for FaceDetectedEventArgs { } unsafe impl ::windows_core::Interface for FaceDetectedEventArgs { type Vtable = IFaceDetectedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for FaceDetectedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for FaceDetectedEventArgs { const NAME: &'static str = "Windows.Media.Core.FaceDetectedEventArgs"; } -::windows_core::imp::interface_hierarchy!(FaceDetectedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for FaceDetectedEventArgs {} unsafe impl ::core::marker::Sync for FaceDetectedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct FaceDetectionEffect(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(FaceDetectionEffect, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(FaceDetectionEffect, super::IMediaExtension); impl FaceDetectionEffect { pub fn SetEnabled(&self, value: bool) -> ::windows_core::Result<()> { let this = self; @@ -3466,10 +2484,10 @@ impl FaceDetectionEffect { #[cfg(feature = "Foundation_Collections")] pub fn SetProperties(&self, configuration: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetProperties)(::windows_core::Interface::as_raw(this), configuration.try_into_param()?.abi()).ok() } + 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() } } } impl ::windows_core::RuntimeType for FaceDetectionEffect { @@ -3477,15 +2495,11 @@ impl ::windows_core::RuntimeType for FaceDetectionEffect { } unsafe impl ::windows_core::Interface for FaceDetectionEffect { type Vtable = IFaceDetectionEffect_Vtbl; -} -unsafe impl ::windows_core::ComInterface for FaceDetectionEffect { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for FaceDetectionEffect { const NAME: &'static str = "Windows.Media.Core.FaceDetectionEffect"; } -::windows_core::imp::interface_hierarchy!(FaceDetectionEffect, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for FaceDetectionEffect {} unsafe impl ::core::marker::Send for FaceDetectionEffect {} unsafe impl ::core::marker::Sync for FaceDetectionEffect {} #[doc = "Required features: `\"Media_Effects\"`"] @@ -3494,6 +2508,10 @@ unsafe impl ::core::marker::Sync for FaceDetectionEffect {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct FaceDetectionEffectDefinition(::windows_core::IUnknown); #[cfg(feature = "Media_Effects")] +::windows_core::imp::interface_hierarchy!(FaceDetectionEffectDefinition, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Media_Effects")] +::windows_core::imp::required_hierarchy!(FaceDetectionEffectDefinition, super::Effects::IVideoEffectDefinition); +#[cfg(feature = "Media_Effects")] impl FaceDetectionEffectDefinition { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -3503,22 +2521,22 @@ impl FaceDetectionEffectDefinition { SHARED.call(callback) } pub fn SetDetectionMode(&self, value: FaceDetectionMode) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDetectionMode)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn DetectionMode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DetectionMode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetSynchronousDetectionEnabled(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetSynchronousDetectionEnabled)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn SynchronousDetectionEnabled(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SynchronousDetectionEnabled)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3550,29 +2568,24 @@ impl ::windows_core::RuntimeType for FaceDetectionEffectDefinition { #[cfg(feature = "Media_Effects")] unsafe impl ::windows_core::Interface for FaceDetectionEffectDefinition { type Vtable = super::Effects::IVideoEffectDefinition_Vtbl; -} -#[cfg(feature = "Media_Effects")] -unsafe impl ::windows_core::ComInterface for FaceDetectionEffectDefinition { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "Media_Effects")] impl ::windows_core::RuntimeName for FaceDetectionEffectDefinition { const NAME: &'static str = "Windows.Media.Core.FaceDetectionEffectDefinition"; } #[cfg(feature = "Media_Effects")] -::windows_core::imp::interface_hierarchy!(FaceDetectionEffectDefinition, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Media_Effects")] -impl ::windows_core::CanTryInto for FaceDetectionEffectDefinition {} -#[cfg(feature = "Media_Effects")] unsafe impl ::core::marker::Send for FaceDetectionEffectDefinition {} #[cfg(feature = "Media_Effects")] unsafe impl ::core::marker::Sync for FaceDetectionEffectDefinition {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct FaceDetectionEffectFrame(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(FaceDetectionEffectFrame, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(FaceDetectionEffectFrame, super::super::Foundation::IClosable, super::IMediaFrame); impl FaceDetectionEffectFrame { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Media_FaceAnalysis\"`"] @@ -3585,14 +2598,14 @@ impl FaceDetectionEffectFrame { } } pub fn Type(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Type)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsReadOnly(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsReadOnly)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3600,13 +2613,13 @@ impl FaceDetectionEffectFrame { } pub fn SetRelativeTime(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetRelativeTime)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn RelativeTime(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RelativeTime)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3614,13 +2627,13 @@ impl FaceDetectionEffectFrame { } pub fn SetSystemRelativeTime(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetSystemRelativeTime)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn SystemRelativeTime(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SystemRelativeTime)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3628,24 +2641,24 @@ impl FaceDetectionEffectFrame { } pub fn SetDuration(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetDuration)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn Duration(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Duration)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsDiscontinuous(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsDiscontinuous)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsDiscontinuous(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsDiscontinuous)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3654,7 +2667,7 @@ impl FaceDetectionEffectFrame { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn ExtendedProperties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ExtendedProperties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3666,21 +2679,17 @@ impl ::windows_core::RuntimeType for FaceDetectionEffectFrame { } unsafe impl ::windows_core::Interface for FaceDetectionEffectFrame { type Vtable = IFaceDetectionEffectFrame_Vtbl; -} -unsafe impl ::windows_core::ComInterface for FaceDetectionEffectFrame { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for FaceDetectionEffectFrame { const NAME: &'static str = "Windows.Media.Core.FaceDetectionEffectFrame"; } -::windows_core::imp::interface_hierarchy!(FaceDetectionEffectFrame, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for FaceDetectionEffectFrame {} -impl ::windows_core::CanTryInto for FaceDetectionEffectFrame {} unsafe impl ::core::marker::Send for FaceDetectionEffectFrame {} unsafe impl ::core::marker::Sync for FaceDetectionEffectFrame {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HighDynamicRangeControl(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HighDynamicRangeControl, ::windows_core::IUnknown, ::windows_core::IInspectable); impl HighDynamicRangeControl { pub fn SetEnabled(&self, value: bool) -> ::windows_core::Result<()> { let this = self; @@ -3699,19 +2708,17 @@ impl ::windows_core::RuntimeType for HighDynamicRangeControl { } unsafe impl ::windows_core::Interface for HighDynamicRangeControl { type Vtable = IHighDynamicRangeControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HighDynamicRangeControl { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HighDynamicRangeControl { const NAME: &'static str = "Windows.Media.Core.HighDynamicRangeControl"; } -::windows_core::imp::interface_hierarchy!(HighDynamicRangeControl, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for HighDynamicRangeControl {} unsafe impl ::core::marker::Sync for HighDynamicRangeControl {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HighDynamicRangeOutput(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HighDynamicRangeOutput, ::windows_core::IUnknown, ::windows_core::IInspectable); impl HighDynamicRangeOutput { pub fn Certainty(&self) -> ::windows_core::Result { let this = self; @@ -3735,19 +2742,18 @@ impl ::windows_core::RuntimeType for HighDynamicRangeOutput { } unsafe impl ::windows_core::Interface for HighDynamicRangeOutput { type Vtable = IHighDynamicRangeOutput_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HighDynamicRangeOutput { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HighDynamicRangeOutput { const NAME: &'static str = "Windows.Media.Core.HighDynamicRangeOutput"; } -::windows_core::imp::interface_hierarchy!(HighDynamicRangeOutput, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for HighDynamicRangeOutput {} unsafe impl ::core::marker::Sync for HighDynamicRangeOutput {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ImageCue(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ImageCue, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ImageCue, IMediaCue); impl ImageCue { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -3797,33 +2803,33 @@ impl ImageCue { } } pub fn SetStartTime(&self, value: super::super::Foundation::TimeSpan) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetStartTime)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn StartTime(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).StartTime)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDuration(&self, value: super::super::Foundation::TimeSpan) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDuration)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Duration(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Duration)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetId(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetId)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn Id(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Id)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3835,20 +2841,17 @@ impl ::windows_core::RuntimeType for ImageCue { } unsafe impl ::windows_core::Interface for ImageCue { type Vtable = IImageCue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ImageCue { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ImageCue { const NAME: &'static str = "Windows.Media.Core.ImageCue"; } -::windows_core::imp::interface_hierarchy!(ImageCue, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ImageCue {} unsafe impl ::core::marker::Send for ImageCue {} unsafe impl ::core::marker::Sync for ImageCue {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct InitializeMediaStreamSourceRequestedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(InitializeMediaStreamSourceRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl InitializeMediaStreamSourceRequestedEventArgs { pub fn Source(&self) -> ::windows_core::Result { let this = self; @@ -3879,14 +2882,11 @@ impl ::windows_core::RuntimeType for InitializeMediaStreamSourceRequestedEventAr } unsafe impl ::windows_core::Interface for InitializeMediaStreamSourceRequestedEventArgs { type Vtable = IInitializeMediaStreamSourceRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for InitializeMediaStreamSourceRequestedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for InitializeMediaStreamSourceRequestedEventArgs { const NAME: &'static str = "Windows.Media.Core.InitializeMediaStreamSourceRequestedEventArgs"; } -::windows_core::imp::interface_hierarchy!(InitializeMediaStreamSourceRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for InitializeMediaStreamSourceRequestedEventArgs {} unsafe impl ::core::marker::Sync for InitializeMediaStreamSourceRequestedEventArgs {} pub struct LowLightFusion; @@ -3909,11 +2909,11 @@ impl LowLightFusion { #[cfg(all(feature = "Foundation_Collections", feature = "Graphics_Imaging"))] pub fn FuseAsync(frameset: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::ILowLightFusionStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).FuseAsync)(::windows_core::Interface::as_raw(this), frameset.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).FuseAsync)(::windows_core::Interface::as_raw(this), frameset.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -3928,9 +2928,11 @@ impl ::windows_core::RuntimeName for LowLightFusion { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LowLightFusionResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LowLightFusionResult, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(LowLightFusionResult, super::super::Foundation::IClosable); impl LowLightFusionResult { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Graphics_Imaging\"`"] @@ -3948,20 +2950,17 @@ impl ::windows_core::RuntimeType for LowLightFusionResult { } unsafe impl ::windows_core::Interface for LowLightFusionResult { type Vtable = ILowLightFusionResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LowLightFusionResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LowLightFusionResult { const NAME: &'static str = "Windows.Media.Core.LowLightFusionResult"; } -::windows_core::imp::interface_hierarchy!(LowLightFusionResult, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for LowLightFusionResult {} unsafe impl ::core::marker::Send for LowLightFusionResult {} unsafe impl ::core::marker::Sync for LowLightFusionResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaBinder(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaBinder, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaBinder { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -4008,19 +3007,17 @@ impl ::windows_core::RuntimeType for MediaBinder { } unsafe impl ::windows_core::Interface for MediaBinder { type Vtable = IMediaBinder_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaBinder { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaBinder { const NAME: &'static str = "Windows.Media.Core.MediaBinder"; } -::windows_core::imp::interface_hierarchy!(MediaBinder, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaBinder {} unsafe impl ::core::marker::Sync for MediaBinder {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaBindingEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaBindingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaBindingEventArgs { pub fn Canceled(&self, handler: P0) -> ::windows_core::Result where @@ -4061,19 +3058,19 @@ impl MediaBindingEventArgs { #[cfg(feature = "Storage_Streams")] pub fn SetStream(&self, stream: P0, contenttype: &::windows_core::HSTRING) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetStream)(::windows_core::Interface::as_raw(this), stream.try_into_param()?.abi(), ::core::mem::transmute_copy(contenttype)).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetStream)(::windows_core::Interface::as_raw(this), stream.into_param().abi(), ::core::mem::transmute_copy(contenttype)).ok() } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn SetStreamReference(&self, stream: P0, contenttype: &::windows_core::HSTRING) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetStreamReference)(::windows_core::Interface::as_raw(this), stream.try_into_param()?.abi(), ::core::mem::transmute_copy(contenttype)).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetStreamReference)(::windows_core::Interface::as_raw(this), stream.into_param().abi(), ::core::mem::transmute_copy(contenttype)).ok() } } #[doc = "Required features: `\"Media_Streaming_Adaptive\"`"] #[cfg(feature = "Media_Streaming_Adaptive")] @@ -4081,17 +3078,17 @@ impl MediaBindingEventArgs { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } #[doc = "Required features: `\"Storage\"`"] #[cfg(feature = "Storage")] pub fn SetStorageFile(&self, file: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetStorageFile)(::windows_core::Interface::as_raw(this), file.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"Networking_BackgroundTransfer\"`"] #[cfg(feature = "Networking_BackgroundTransfer")] @@ -4099,7 +3096,7 @@ impl MediaBindingEventArgs { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } } @@ -4108,19 +3105,17 @@ impl ::windows_core::RuntimeType for MediaBindingEventArgs { } unsafe impl ::windows_core::Interface for MediaBindingEventArgs { type Vtable = IMediaBindingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaBindingEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaBindingEventArgs { const NAME: &'static str = "Windows.Media.Core.MediaBindingEventArgs"; } -::windows_core::imp::interface_hierarchy!(MediaBindingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaBindingEventArgs {} unsafe impl ::core::marker::Sync for MediaBindingEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaCueEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaCueEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaCueEventArgs { pub fn Cue(&self) -> ::windows_core::Result { let this = self; @@ -4135,22 +3130,22 @@ impl ::windows_core::RuntimeType for MediaCueEventArgs { } unsafe impl ::windows_core::Interface for MediaCueEventArgs { type Vtable = IMediaCueEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaCueEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaCueEventArgs { const NAME: &'static str = "Windows.Media.Core.MediaCueEventArgs"; } -::windows_core::imp::interface_hierarchy!(MediaCueEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaCueEventArgs {} unsafe impl ::core::marker::Sync for MediaCueEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaSource(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaSource, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Media_Playback")] +::windows_core::imp::required_hierarchy!(MediaSource, super::super::Foundation::IClosable, super::Playback::IMediaPlaybackSource); impl MediaSource { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn OpenOperationCompleted(&self, handler: P0) -> ::windows_core::Result @@ -4212,59 +3207,59 @@ impl MediaSource { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveStateChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveStateChanged)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn State(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).State)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Reset(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Reset)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Media_Streaming_Adaptive\"`"] #[cfg(feature = "Media_Streaming_Adaptive")] pub fn AdaptiveMediaSource(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AdaptiveMediaSource)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn MediaStreamSource(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MediaStreamSource)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn MseStreamSource(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MseStreamSource)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Uri(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Uri)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn OpenAsync(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OpenAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4273,7 +3268,7 @@ impl MediaSource { #[doc = "Required features: `\"Networking_BackgroundTransfer\"`"] #[cfg(feature = "Networking_BackgroundTransfer")] pub fn DownloadOperation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DownloadOperation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4310,44 +3305,44 @@ impl MediaSource { } pub fn CreateFromIMediaSource(mediasource: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IMediaSourceStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateFromIMediaSource)(::windows_core::Interface::as_raw(this), mediasource.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateFromIMediaSource)(::windows_core::Interface::as_raw(this), mediasource.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Storage\"`"] #[cfg(feature = "Storage")] pub fn CreateFromStorageFile(file: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IMediaSourceStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateFromStorageFile)(::windows_core::Interface::as_raw(this), file.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateFromStorageFile)(::windows_core::Interface::as_raw(this), file.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn CreateFromStream(stream: P0, contenttype: &::windows_core::HSTRING) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IMediaSourceStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateFromStream)(::windows_core::Interface::as_raw(this), stream.try_into_param()?.abi(), ::core::mem::transmute_copy(contenttype), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateFromStream)(::windows_core::Interface::as_raw(this), stream.into_param().abi(), ::core::mem::transmute_copy(contenttype), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn CreateFromStreamReference(stream: P0, contenttype: &::windows_core::HSTRING) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IMediaSourceStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateFromStreamReference)(::windows_core::Interface::as_raw(this), stream.try_into_param()?.abi(), ::core::mem::transmute_copy(contenttype), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateFromStreamReference)(::windows_core::Interface::as_raw(this), stream.into_param().abi(), ::core::mem::transmute_copy(contenttype), &mut result__).from_abi(result__) }) } pub fn CreateFromUri(uri: P0) -> ::windows_core::Result @@ -4416,22 +3411,17 @@ impl ::windows_core::RuntimeType for MediaSource { } unsafe impl ::windows_core::Interface for MediaSource { type Vtable = IMediaSource2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaSource { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaSource { const NAME: &'static str = "Windows.Media.Core.MediaSource"; } -::windows_core::imp::interface_hierarchy!(MediaSource, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for MediaSource {} -#[cfg(feature = "Media_Playback")] -impl ::windows_core::CanTryInto for MediaSource {} unsafe impl ::core::marker::Send for MediaSource {} unsafe impl ::core::marker::Sync for MediaSource {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaSourceAppServiceConnection(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaSourceAppServiceConnection, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaSourceAppServiceConnection { pub fn InitializeMediaStreamSourceRequested(&self, handler: P0) -> ::windows_core::Result where @@ -4473,17 +3463,15 @@ impl ::windows_core::RuntimeType for MediaSourceAppServiceConnection { } unsafe impl ::windows_core::Interface for MediaSourceAppServiceConnection { type Vtable = IMediaSourceAppServiceConnection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaSourceAppServiceConnection { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaSourceAppServiceConnection { const NAME: &'static str = "Windows.Media.Core.MediaSourceAppServiceConnection"; } -::windows_core::imp::interface_hierarchy!(MediaSourceAppServiceConnection, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaSourceError(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaSourceError, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaSourceError { pub fn ExtendedError(&self) -> ::windows_core::Result<::windows_core::HRESULT> { let this = self; @@ -4498,19 +3486,17 @@ impl ::windows_core::RuntimeType for MediaSourceError { } unsafe impl ::windows_core::Interface for MediaSourceError { type Vtable = IMediaSourceError_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaSourceError { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaSourceError { const NAME: &'static str = "Windows.Media.Core.MediaSourceError"; } -::windows_core::imp::interface_hierarchy!(MediaSourceError, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaSourceError {} unsafe impl ::core::marker::Sync for MediaSourceError {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaSourceOpenOperationCompletedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaSourceOpenOperationCompletedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaSourceOpenOperationCompletedEventArgs { pub fn Error(&self) -> ::windows_core::Result { let this = self; @@ -4525,19 +3511,17 @@ impl ::windows_core::RuntimeType for MediaSourceOpenOperationCompletedEventArgs } unsafe impl ::windows_core::Interface for MediaSourceOpenOperationCompletedEventArgs { type Vtable = IMediaSourceOpenOperationCompletedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaSourceOpenOperationCompletedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaSourceOpenOperationCompletedEventArgs { const NAME: &'static str = "Windows.Media.Core.MediaSourceOpenOperationCompletedEventArgs"; } -::windows_core::imp::interface_hierarchy!(MediaSourceOpenOperationCompletedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaSourceOpenOperationCompletedEventArgs {} unsafe impl ::core::marker::Sync for MediaSourceOpenOperationCompletedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaSourceStateChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaSourceStateChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaSourceStateChangedEventArgs { pub fn OldState(&self) -> ::windows_core::Result { let this = self; @@ -4559,19 +3543,17 @@ impl ::windows_core::RuntimeType for MediaSourceStateChangedEventArgs { } unsafe impl ::windows_core::Interface for MediaSourceStateChangedEventArgs { type Vtable = IMediaSourceStateChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaSourceStateChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaSourceStateChangedEventArgs { const NAME: &'static str = "Windows.Media.Core.MediaSourceStateChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(MediaSourceStateChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaSourceStateChangedEventArgs {} unsafe impl ::core::marker::Sync for MediaSourceStateChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaStreamSample(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaStreamSample, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaStreamSample { pub fn Processed(&self, handler: P0) -> ::windows_core::Result where @@ -4666,7 +3648,7 @@ impl MediaStreamSample { #[doc = "Required features: `\"Graphics_DirectX_Direct3D11\"`"] #[cfg(feature = "Graphics_DirectX_Direct3D11")] pub fn Direct3D11Surface(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Direct3D11Surface)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4676,33 +3658,33 @@ impl MediaStreamSample { #[cfg(feature = "Storage_Streams")] pub fn CreateFromBuffer(buffer: P0, timestamp: super::super::Foundation::TimeSpan) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IMediaStreamSampleStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateFromBuffer)(::windows_core::Interface::as_raw(this), buffer.try_into_param()?.abi(), timestamp, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateFromBuffer)(::windows_core::Interface::as_raw(this), buffer.into_param().abi(), timestamp, &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn CreateFromStreamAsync(stream: P0, count: u32, timestamp: super::super::Foundation::TimeSpan) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IMediaStreamSampleStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateFromStreamAsync)(::windows_core::Interface::as_raw(this), stream.try_into_param()?.abi(), count, timestamp, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateFromStreamAsync)(::windows_core::Interface::as_raw(this), stream.into_param().abi(), count, timestamp, &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Graphics_DirectX_Direct3D11\"`"] #[cfg(feature = "Graphics_DirectX_Direct3D11")] pub fn CreateFromDirect3D11Surface(surface: P0, timestamp: super::super::Foundation::TimeSpan) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IMediaStreamSampleStatics2(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateFromDirect3D11Surface)(::windows_core::Interface::as_raw(this), surface.try_into_param()?.abi(), timestamp, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateFromDirect3D11Surface)(::windows_core::Interface::as_raw(this), surface.into_param().abi(), timestamp, &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -4721,14 +3703,11 @@ impl ::windows_core::RuntimeType for MediaStreamSample { } unsafe impl ::windows_core::Interface for MediaStreamSample { type Vtable = IMediaStreamSample_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaStreamSample { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaStreamSample { const NAME: &'static str = "Windows.Media.Core.MediaStreamSample"; } -::windows_core::imp::interface_hierarchy!(MediaStreamSample, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaStreamSample {} unsafe impl ::core::marker::Sync for MediaStreamSample {} #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -4737,11 +3716,15 @@ unsafe impl ::core::marker::Sync for MediaStreamSample {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaStreamSamplePropertySet(::windows_core::IUnknown); #[cfg(feature = "Foundation_Collections")] +::windows_core::imp::interface_hierarchy!(MediaStreamSamplePropertySet, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(MediaStreamSamplePropertySet, super::super::Foundation::Collections::IIterable::>, super::super::Foundation::Collections::IMap::<::windows_core::GUID, ::windows_core::IInspectable>); +#[cfg(feature = "Foundation_Collections")] impl MediaStreamSamplePropertySet { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> ::windows_core::Result>> { - let this = &::windows_core::ComInterface::cast::>>(self)?; + let this = &::windows_core::Interface::cast::>>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4815,10 +3798,7 @@ impl ::windows_core::RuntimeType for MediaStreamSamplePropertySet { #[cfg(feature = "Foundation_Collections")] unsafe impl ::windows_core::Interface for MediaStreamSamplePropertySet { type Vtable = super::super::Foundation::Collections::IMap_Vtbl<::windows_core::GUID, ::windows_core::IInspectable>; -} -#[cfg(feature = "Foundation_Collections")] -unsafe impl ::windows_core::ComInterface for MediaStreamSamplePropertySet { - const IID: ::windows_core::GUID = as ::windows_core::ComInterface>::IID; + const IID: ::windows_core::GUID = as ::windows_core::Interface>::IID; } #[cfg(feature = "Foundation_Collections")] impl ::windows_core::RuntimeName for MediaStreamSamplePropertySet { @@ -4841,18 +3821,13 @@ impl ::core::iter::IntoIterator for &MediaStreamSamplePropertySet { } } #[cfg(feature = "Foundation_Collections")] -::windows_core::imp::interface_hierarchy!(MediaStreamSamplePropertySet, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto>> for MediaStreamSamplePropertySet {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for MediaStreamSamplePropertySet {} -#[cfg(feature = "Foundation_Collections")] unsafe impl ::core::marker::Send for MediaStreamSamplePropertySet {} #[cfg(feature = "Foundation_Collections")] unsafe impl ::core::marker::Sync for MediaStreamSamplePropertySet {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaStreamSampleProtectionProperties(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaStreamSampleProtectionProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaStreamSampleProtectionProperties { pub fn SetKeyIdentifier(&self, value: &[u8]) -> ::windows_core::Result<()> { let this = self; @@ -4884,19 +3859,18 @@ impl ::windows_core::RuntimeType for MediaStreamSampleProtectionProperties { } unsafe impl ::windows_core::Interface for MediaStreamSampleProtectionProperties { type Vtable = IMediaStreamSampleProtectionProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaStreamSampleProtectionProperties { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaStreamSampleProtectionProperties { const NAME: &'static str = "Windows.Media.Core.MediaStreamSampleProtectionProperties"; } -::windows_core::imp::interface_hierarchy!(MediaStreamSampleProtectionProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaStreamSampleProtectionProperties {} unsafe impl ::core::marker::Sync for MediaStreamSampleProtectionProperties {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaStreamSource(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaStreamSource, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(MediaStreamSource, IMediaSource); impl MediaStreamSource { pub fn Closed(&self, handler: P0) -> ::windows_core::Result where @@ -4974,10 +3948,10 @@ impl MediaStreamSource { } pub fn AddStreamDescriptor(&self, descriptor: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).AddStreamDescriptor)(::windows_core::Interface::as_raw(this), descriptor.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).AddStreamDescriptor)(::windows_core::Interface::as_raw(this), descriptor.into_param().abi()).ok() } } #[doc = "Required features: `\"Media_Protection\"`"] #[cfg(feature = "Media_Protection")] @@ -5056,10 +4030,10 @@ impl MediaStreamSource { #[cfg(feature = "Storage_Streams")] pub fn SetThumbnail(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetThumbnail)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetThumbnail)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] @@ -5072,45 +4046,45 @@ impl MediaStreamSource { } pub fn AddProtectionKey(&self, streamdescriptor: P0, keyidentifier: &[u8], licensedata: &[u8]) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).AddProtectionKey)(::windows_core::Interface::as_raw(this), streamdescriptor.try_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.into_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>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveSampleRendered(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveSampleRendered)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn SetMaxSupportedPlaybackRate(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetMaxSupportedPlaybackRate)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn MaxSupportedPlaybackRate(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MaxSupportedPlaybackRate)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsLive(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsLive)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsLive(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsLive)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5118,21 +4092,21 @@ impl MediaStreamSource { } pub fn CreateFromDescriptor(descriptor: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IMediaStreamSourceFactory(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateFromDescriptor)(::windows_core::Interface::as_raw(this), descriptor.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateFromDescriptor)(::windows_core::Interface::as_raw(this), descriptor.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn CreateFromDescriptors(descriptor: P0, descriptor2: P1) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { Self::IMediaStreamSourceFactory(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateFromDescriptors)(::windows_core::Interface::as_raw(this), descriptor.try_into_param()?.abi(), descriptor2.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateFromDescriptors)(::windows_core::Interface::as_raw(this), descriptor.into_param().abi(), descriptor2.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -5146,20 +4120,17 @@ impl ::windows_core::RuntimeType for MediaStreamSource { } unsafe impl ::windows_core::Interface for MediaStreamSource { type Vtable = IMediaStreamSource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaStreamSource { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaStreamSource { const NAME: &'static str = "Windows.Media.Core.MediaStreamSource"; } -::windows_core::imp::interface_hierarchy!(MediaStreamSource, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for MediaStreamSource {} unsafe impl ::core::marker::Send for MediaStreamSource {} unsafe impl ::core::marker::Sync for MediaStreamSource {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaStreamSourceClosedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaStreamSourceClosedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaStreamSourceClosedEventArgs { pub fn Request(&self) -> ::windows_core::Result { let this = self; @@ -5174,19 +4145,17 @@ impl ::windows_core::RuntimeType for MediaStreamSourceClosedEventArgs { } unsafe impl ::windows_core::Interface for MediaStreamSourceClosedEventArgs { type Vtable = IMediaStreamSourceClosedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaStreamSourceClosedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaStreamSourceClosedEventArgs { const NAME: &'static str = "Windows.Media.Core.MediaStreamSourceClosedEventArgs"; } -::windows_core::imp::interface_hierarchy!(MediaStreamSourceClosedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaStreamSourceClosedEventArgs {} unsafe impl ::core::marker::Sync for MediaStreamSourceClosedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaStreamSourceClosedRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaStreamSourceClosedRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaStreamSourceClosedRequest { pub fn Reason(&self) -> ::windows_core::Result { let this = self; @@ -5201,19 +4170,17 @@ impl ::windows_core::RuntimeType for MediaStreamSourceClosedRequest { } unsafe impl ::windows_core::Interface for MediaStreamSourceClosedRequest { type Vtable = IMediaStreamSourceClosedRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaStreamSourceClosedRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaStreamSourceClosedRequest { const NAME: &'static str = "Windows.Media.Core.MediaStreamSourceClosedRequest"; } -::windows_core::imp::interface_hierarchy!(MediaStreamSourceClosedRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaStreamSourceClosedRequest {} unsafe impl ::core::marker::Sync for MediaStreamSourceClosedRequest {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaStreamSourceSampleRenderedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaStreamSourceSampleRenderedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaStreamSourceSampleRenderedEventArgs { pub fn SampleLag(&self) -> ::windows_core::Result { let this = self; @@ -5228,19 +4195,17 @@ impl ::windows_core::RuntimeType for MediaStreamSourceSampleRenderedEventArgs { } unsafe impl ::windows_core::Interface for MediaStreamSourceSampleRenderedEventArgs { type Vtable = IMediaStreamSourceSampleRenderedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaStreamSourceSampleRenderedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaStreamSourceSampleRenderedEventArgs { const NAME: &'static str = "Windows.Media.Core.MediaStreamSourceSampleRenderedEventArgs"; } -::windows_core::imp::interface_hierarchy!(MediaStreamSourceSampleRenderedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaStreamSourceSampleRenderedEventArgs {} unsafe impl ::core::marker::Sync for MediaStreamSourceSampleRenderedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaStreamSourceSampleRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaStreamSourceSampleRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaStreamSourceSampleRequest { pub fn StreamDescriptor(&self) -> ::windows_core::Result { let this = self; @@ -5280,19 +4245,17 @@ impl ::windows_core::RuntimeType for MediaStreamSourceSampleRequest { } unsafe impl ::windows_core::Interface for MediaStreamSourceSampleRequest { type Vtable = IMediaStreamSourceSampleRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaStreamSourceSampleRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaStreamSourceSampleRequest { const NAME: &'static str = "Windows.Media.Core.MediaStreamSourceSampleRequest"; } -::windows_core::imp::interface_hierarchy!(MediaStreamSourceSampleRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaStreamSourceSampleRequest {} unsafe impl ::core::marker::Sync for MediaStreamSourceSampleRequest {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaStreamSourceSampleRequestDeferral(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaStreamSourceSampleRequestDeferral, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaStreamSourceSampleRequestDeferral { pub fn Complete(&self) -> ::windows_core::Result<()> { let this = self; @@ -5304,19 +4267,17 @@ impl ::windows_core::RuntimeType for MediaStreamSourceSampleRequestDeferral { } unsafe impl ::windows_core::Interface for MediaStreamSourceSampleRequestDeferral { type Vtable = IMediaStreamSourceSampleRequestDeferral_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaStreamSourceSampleRequestDeferral { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaStreamSourceSampleRequestDeferral { const NAME: &'static str = "Windows.Media.Core.MediaStreamSourceSampleRequestDeferral"; } -::windows_core::imp::interface_hierarchy!(MediaStreamSourceSampleRequestDeferral, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaStreamSourceSampleRequestDeferral {} unsafe impl ::core::marker::Sync for MediaStreamSourceSampleRequestDeferral {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaStreamSourceSampleRequestedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaStreamSourceSampleRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaStreamSourceSampleRequestedEventArgs { pub fn Request(&self) -> ::windows_core::Result { let this = self; @@ -5331,19 +4292,17 @@ impl ::windows_core::RuntimeType for MediaStreamSourceSampleRequestedEventArgs { } unsafe impl ::windows_core::Interface for MediaStreamSourceSampleRequestedEventArgs { type Vtable = IMediaStreamSourceSampleRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaStreamSourceSampleRequestedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaStreamSourceSampleRequestedEventArgs { const NAME: &'static str = "Windows.Media.Core.MediaStreamSourceSampleRequestedEventArgs"; } -::windows_core::imp::interface_hierarchy!(MediaStreamSourceSampleRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaStreamSourceSampleRequestedEventArgs {} unsafe impl ::core::marker::Sync for MediaStreamSourceSampleRequestedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaStreamSourceStartingEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaStreamSourceStartingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaStreamSourceStartingEventArgs { pub fn Request(&self) -> ::windows_core::Result { let this = self; @@ -5358,19 +4317,17 @@ impl ::windows_core::RuntimeType for MediaStreamSourceStartingEventArgs { } unsafe impl ::windows_core::Interface for MediaStreamSourceStartingEventArgs { type Vtable = IMediaStreamSourceStartingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaStreamSourceStartingEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaStreamSourceStartingEventArgs { const NAME: &'static str = "Windows.Media.Core.MediaStreamSourceStartingEventArgs"; } -::windows_core::imp::interface_hierarchy!(MediaStreamSourceStartingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaStreamSourceStartingEventArgs {} unsafe impl ::core::marker::Sync for MediaStreamSourceStartingEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaStreamSourceStartingRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaStreamSourceStartingRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaStreamSourceStartingRequest { pub fn StartPosition(&self) -> ::windows_core::Result> { let this = self; @@ -5396,19 +4353,17 @@ impl ::windows_core::RuntimeType for MediaStreamSourceStartingRequest { } unsafe impl ::windows_core::Interface for MediaStreamSourceStartingRequest { type Vtable = IMediaStreamSourceStartingRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaStreamSourceStartingRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaStreamSourceStartingRequest { const NAME: &'static str = "Windows.Media.Core.MediaStreamSourceStartingRequest"; } -::windows_core::imp::interface_hierarchy!(MediaStreamSourceStartingRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaStreamSourceStartingRequest {} unsafe impl ::core::marker::Sync for MediaStreamSourceStartingRequest {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaStreamSourceStartingRequestDeferral(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaStreamSourceStartingRequestDeferral, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaStreamSourceStartingRequestDeferral { pub fn Complete(&self) -> ::windows_core::Result<()> { let this = self; @@ -5420,19 +4375,17 @@ impl ::windows_core::RuntimeType for MediaStreamSourceStartingRequestDeferral { } unsafe impl ::windows_core::Interface for MediaStreamSourceStartingRequestDeferral { type Vtable = IMediaStreamSourceStartingRequestDeferral_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaStreamSourceStartingRequestDeferral { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaStreamSourceStartingRequestDeferral { const NAME: &'static str = "Windows.Media.Core.MediaStreamSourceStartingRequestDeferral"; } -::windows_core::imp::interface_hierarchy!(MediaStreamSourceStartingRequestDeferral, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaStreamSourceStartingRequestDeferral {} unsafe impl ::core::marker::Sync for MediaStreamSourceStartingRequestDeferral {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaStreamSourceSwitchStreamsRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaStreamSourceSwitchStreamsRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaStreamSourceSwitchStreamsRequest { pub fn OldStreamDescriptor(&self) -> ::windows_core::Result { let this = self; @@ -5461,19 +4414,17 @@ impl ::windows_core::RuntimeType for MediaStreamSourceSwitchStreamsRequest { } unsafe impl ::windows_core::Interface for MediaStreamSourceSwitchStreamsRequest { type Vtable = IMediaStreamSourceSwitchStreamsRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaStreamSourceSwitchStreamsRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaStreamSourceSwitchStreamsRequest { const NAME: &'static str = "Windows.Media.Core.MediaStreamSourceSwitchStreamsRequest"; } -::windows_core::imp::interface_hierarchy!(MediaStreamSourceSwitchStreamsRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaStreamSourceSwitchStreamsRequest {} unsafe impl ::core::marker::Sync for MediaStreamSourceSwitchStreamsRequest {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaStreamSourceSwitchStreamsRequestDeferral(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaStreamSourceSwitchStreamsRequestDeferral, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaStreamSourceSwitchStreamsRequestDeferral { pub fn Complete(&self) -> ::windows_core::Result<()> { let this = self; @@ -5485,19 +4436,17 @@ impl ::windows_core::RuntimeType for MediaStreamSourceSwitchStreamsRequestDeferr } unsafe impl ::windows_core::Interface for MediaStreamSourceSwitchStreamsRequestDeferral { type Vtable = IMediaStreamSourceSwitchStreamsRequestDeferral_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaStreamSourceSwitchStreamsRequestDeferral { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaStreamSourceSwitchStreamsRequestDeferral { const NAME: &'static str = "Windows.Media.Core.MediaStreamSourceSwitchStreamsRequestDeferral"; } -::windows_core::imp::interface_hierarchy!(MediaStreamSourceSwitchStreamsRequestDeferral, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaStreamSourceSwitchStreamsRequestDeferral {} unsafe impl ::core::marker::Sync for MediaStreamSourceSwitchStreamsRequestDeferral {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaStreamSourceSwitchStreamsRequestedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaStreamSourceSwitchStreamsRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaStreamSourceSwitchStreamsRequestedEventArgs { pub fn Request(&self) -> ::windows_core::Result { let this = self; @@ -5512,19 +4461,17 @@ impl ::windows_core::RuntimeType for MediaStreamSourceSwitchStreamsRequestedEven } unsafe impl ::windows_core::Interface for MediaStreamSourceSwitchStreamsRequestedEventArgs { type Vtable = IMediaStreamSourceSwitchStreamsRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaStreamSourceSwitchStreamsRequestedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaStreamSourceSwitchStreamsRequestedEventArgs { const NAME: &'static str = "Windows.Media.Core.MediaStreamSourceSwitchStreamsRequestedEventArgs"; } -::windows_core::imp::interface_hierarchy!(MediaStreamSourceSwitchStreamsRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaStreamSourceSwitchStreamsRequestedEventArgs {} unsafe impl ::core::marker::Sync for MediaStreamSourceSwitchStreamsRequestedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MseSourceBuffer(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MseSourceBuffer, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MseSourceBuffer { pub fn UpdateStarting(&self, handler: P0) -> ::windows_core::Result where @@ -5654,37 +4601,37 @@ impl MseSourceBuffer { } pub fn SetAppendWindowEnd(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetAppendWindowEnd)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetAppendWindowEnd)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn AppendBuffer(&self, buffer: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).AppendBuffer)(::windows_core::Interface::as_raw(this), buffer.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).AppendBuffer)(::windows_core::Interface::as_raw(this), buffer.into_param().abi()).ok() } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn AppendStream(&self, stream: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).AppendStream)(::windows_core::Interface::as_raw(this), stream.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).AppendStream)(::windows_core::Interface::as_raw(this), stream.into_param().abi()).ok() } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn AppendStreamMaxSize(&self, stream: P0, maxsize: u64) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).AppendStreamMaxSize)(::windows_core::Interface::as_raw(this), stream.try_into_param()?.abi(), maxsize).ok() } + unsafe { (::windows_core::Interface::vtable(this).AppendStreamMaxSize)(::windows_core::Interface::as_raw(this), stream.into_param().abi(), maxsize).ok() } } pub fn Abort(&self) -> ::windows_core::Result<()> { let this = self; @@ -5692,10 +4639,10 @@ impl MseSourceBuffer { } pub fn Remove(&self, start: super::super::Foundation::TimeSpan, end: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).Remove)(::windows_core::Interface::as_raw(this), start, end.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).Remove)(::windows_core::Interface::as_raw(this), start, end.into_param().abi()).ok() } } } impl ::windows_core::RuntimeType for MseSourceBuffer { @@ -5703,19 +4650,17 @@ impl ::windows_core::RuntimeType for MseSourceBuffer { } unsafe impl ::windows_core::Interface for MseSourceBuffer { type Vtable = IMseSourceBuffer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MseSourceBuffer { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MseSourceBuffer { const NAME: &'static str = "Windows.Media.Core.MseSourceBuffer"; } -::windows_core::imp::interface_hierarchy!(MseSourceBuffer, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MseSourceBuffer {} unsafe impl ::core::marker::Sync for MseSourceBuffer {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MseSourceBufferList(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MseSourceBufferList, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MseSourceBufferList { pub fn SourceBufferAdded(&self, handler: P0) -> ::windows_core::Result where @@ -5760,19 +4705,18 @@ impl ::windows_core::RuntimeType for MseSourceBufferList { } unsafe impl ::windows_core::Interface for MseSourceBufferList { type Vtable = IMseSourceBufferList_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MseSourceBufferList { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MseSourceBufferList { const NAME: &'static str = "Windows.Media.Core.MseSourceBufferList"; } -::windows_core::imp::interface_hierarchy!(MseSourceBufferList, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MseSourceBufferList {} unsafe impl ::core::marker::Sync for MseSourceBufferList {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MseStreamSource(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MseStreamSource, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(MseStreamSource, IMediaSource); impl MseStreamSource { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -5853,10 +4797,10 @@ impl MseStreamSource { } pub fn SetDuration(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetDuration)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetDuration)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn AddSourceBuffer(&self, mimetype: &::windows_core::HSTRING) -> ::windows_core::Result { let this = self; @@ -5877,7 +4821,7 @@ impl MseStreamSource { unsafe { (::windows_core::Interface::vtable(this).EndOfStream)(::windows_core::Interface::as_raw(this), status).ok() } } pub fn LiveSeekableRange(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).LiveSeekableRange)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5885,10 +4829,10 @@ impl MseStreamSource { } pub fn SetLiveSeekableRange(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetLiveSeekableRange)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn IsContentTypeSupported(contenttype: &::windows_core::HSTRING) -> ::windows_core::Result { Self::IMseStreamSourceStatics(|this| unsafe { @@ -5907,29 +4851,27 @@ impl ::windows_core::RuntimeType for MseStreamSource { } unsafe impl ::windows_core::Interface for MseStreamSource { type Vtable = IMseStreamSource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MseStreamSource { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MseStreamSource { const NAME: &'static str = "Windows.Media.Core.MseStreamSource"; } -::windows_core::imp::interface_hierarchy!(MseStreamSource, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for MseStreamSource {} unsafe impl ::core::marker::Send for MseStreamSource {} unsafe impl ::core::marker::Sync for MseStreamSource {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SceneAnalysisEffect(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SceneAnalysisEffect, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(SceneAnalysisEffect, super::IMediaExtension); impl SceneAnalysisEffect { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn SetProperties(&self, configuration: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetProperties)(::windows_core::Interface::as_raw(this), configuration.try_into_param()?.abi()).ok() } + 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() } } pub fn HighDynamicRangeAnalyzer(&self) -> ::windows_core::Result { let this = self; @@ -5969,15 +4911,11 @@ impl ::windows_core::RuntimeType for SceneAnalysisEffect { } unsafe impl ::windows_core::Interface for SceneAnalysisEffect { type Vtable = ISceneAnalysisEffect_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SceneAnalysisEffect { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SceneAnalysisEffect { const NAME: &'static str = "Windows.Media.Core.SceneAnalysisEffect"; } -::windows_core::imp::interface_hierarchy!(SceneAnalysisEffect, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for SceneAnalysisEffect {} unsafe impl ::core::marker::Send for SceneAnalysisEffect {} unsafe impl ::core::marker::Sync for SceneAnalysisEffect {} #[doc = "Required features: `\"Media_Effects\"`"] @@ -5986,6 +4924,10 @@ unsafe impl ::core::marker::Sync for SceneAnalysisEffect {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SceneAnalysisEffectDefinition(::windows_core::IUnknown); #[cfg(feature = "Media_Effects")] +::windows_core::imp::interface_hierarchy!(SceneAnalysisEffectDefinition, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Media_Effects")] +::windows_core::imp::required_hierarchy!(SceneAnalysisEffectDefinition, super::Effects::IVideoEffectDefinition); +#[cfg(feature = "Media_Effects")] impl SceneAnalysisEffectDefinition { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -6020,40 +4962,35 @@ impl ::windows_core::RuntimeType for SceneAnalysisEffectDefinition { #[cfg(feature = "Media_Effects")] unsafe impl ::windows_core::Interface for SceneAnalysisEffectDefinition { type Vtable = super::Effects::IVideoEffectDefinition_Vtbl; -} -#[cfg(feature = "Media_Effects")] -unsafe impl ::windows_core::ComInterface for SceneAnalysisEffectDefinition { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "Media_Effects")] impl ::windows_core::RuntimeName for SceneAnalysisEffectDefinition { const NAME: &'static str = "Windows.Media.Core.SceneAnalysisEffectDefinition"; } #[cfg(feature = "Media_Effects")] -::windows_core::imp::interface_hierarchy!(SceneAnalysisEffectDefinition, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Media_Effects")] -impl ::windows_core::CanTryInto for SceneAnalysisEffectDefinition {} -#[cfg(feature = "Media_Effects")] unsafe impl ::core::marker::Send for SceneAnalysisEffectDefinition {} #[cfg(feature = "Media_Effects")] unsafe impl ::core::marker::Sync for SceneAnalysisEffectDefinition {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SceneAnalysisEffectFrame(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SceneAnalysisEffectFrame, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(SceneAnalysisEffectFrame, super::super::Foundation::IClosable, super::IMediaFrame); impl SceneAnalysisEffectFrame { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Type(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Type)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsReadOnly(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsReadOnly)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6061,13 +4998,13 @@ impl SceneAnalysisEffectFrame { } pub fn SetRelativeTime(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetRelativeTime)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn RelativeTime(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RelativeTime)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6075,13 +5012,13 @@ impl SceneAnalysisEffectFrame { } pub fn SetSystemRelativeTime(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetSystemRelativeTime)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn SystemRelativeTime(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SystemRelativeTime)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6089,24 +5026,24 @@ impl SceneAnalysisEffectFrame { } pub fn SetDuration(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetDuration)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn Duration(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Duration)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsDiscontinuous(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsDiscontinuous)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsDiscontinuous(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsDiscontinuous)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6115,7 +5052,7 @@ impl SceneAnalysisEffectFrame { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn ExtendedProperties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ExtendedProperties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6138,7 +5075,7 @@ impl SceneAnalysisEffectFrame { } } pub fn AnalysisRecommendation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AnalysisRecommendation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6150,21 +5087,17 @@ impl ::windows_core::RuntimeType for SceneAnalysisEffectFrame { } unsafe impl ::windows_core::Interface for SceneAnalysisEffectFrame { type Vtable = ISceneAnalysisEffectFrame_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SceneAnalysisEffectFrame { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SceneAnalysisEffectFrame { const NAME: &'static str = "Windows.Media.Core.SceneAnalysisEffectFrame"; } -::windows_core::imp::interface_hierarchy!(SceneAnalysisEffectFrame, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for SceneAnalysisEffectFrame {} -impl ::windows_core::CanTryInto for SceneAnalysisEffectFrame {} unsafe impl ::core::marker::Send for SceneAnalysisEffectFrame {} unsafe impl ::core::marker::Sync for SceneAnalysisEffectFrame {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SceneAnalyzedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SceneAnalyzedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SceneAnalyzedEventArgs { pub fn ResultFrame(&self) -> ::windows_core::Result { let this = self; @@ -6179,19 +5112,18 @@ impl ::windows_core::RuntimeType for SceneAnalyzedEventArgs { } unsafe impl ::windows_core::Interface for SceneAnalyzedEventArgs { type Vtable = ISceneAnalyzedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SceneAnalyzedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SceneAnalyzedEventArgs { const NAME: &'static str = "Windows.Media.Core.SceneAnalyzedEventArgs"; } -::windows_core::imp::interface_hierarchy!(SceneAnalyzedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SceneAnalyzedEventArgs {} unsafe impl ::core::marker::Sync for SceneAnalyzedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpeechCue(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpeechCue, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(SpeechCue, IMediaCue); impl SpeechCue { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -6201,33 +5133,33 @@ impl SpeechCue { SHARED.call(callback) } pub fn SetStartTime(&self, value: super::super::Foundation::TimeSpan) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetStartTime)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn StartTime(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).StartTime)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDuration(&self, value: super::super::Foundation::TimeSpan) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDuration)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Duration(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Duration)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetId(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetId)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn Id(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Id)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6253,10 +5185,10 @@ impl SpeechCue { } pub fn SetStartPositionInInput(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetStartPositionInInput)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetStartPositionInInput)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn EndPositionInInput(&self) -> ::windows_core::Result> { let this = self; @@ -6267,10 +5199,10 @@ impl SpeechCue { } pub fn SetEndPositionInInput(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetEndPositionInInput)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetEndPositionInInput)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } } impl ::windows_core::RuntimeType for SpeechCue { @@ -6278,20 +5210,18 @@ impl ::windows_core::RuntimeType for SpeechCue { } unsafe impl ::windows_core::Interface for SpeechCue { type Vtable = ISpeechCue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpeechCue { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpeechCue { const NAME: &'static str = "Windows.Media.Core.SpeechCue"; } -::windows_core::imp::interface_hierarchy!(SpeechCue, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for SpeechCue {} unsafe impl ::core::marker::Send for SpeechCue {} unsafe impl ::core::marker::Sync for SpeechCue {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct TimedMetadataStreamDescriptor(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(TimedMetadataStreamDescriptor, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(TimedMetadataStreamDescriptor, IMediaStreamDescriptor, IMediaStreamDescriptor2); impl TimedMetadataStreamDescriptor { pub fn IsSelected(&self) -> ::windows_core::Result { let this = self; @@ -6323,11 +5253,11 @@ impl TimedMetadataStreamDescriptor { } } pub fn SetLabel(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetLabel)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn Label(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Label)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6336,14 +5266,14 @@ impl TimedMetadataStreamDescriptor { #[doc = "Required features: `\"Media_MediaProperties\"`"] #[cfg(feature = "Media_MediaProperties")] pub fn EncodingProperties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).EncodingProperties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Copy(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Copy)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6371,49 +5301,46 @@ impl ::windows_core::RuntimeType for TimedMetadataStreamDescriptor { } unsafe impl ::windows_core::Interface for TimedMetadataStreamDescriptor { type Vtable = IMediaStreamDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TimedMetadataStreamDescriptor { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for TimedMetadataStreamDescriptor { const NAME: &'static str = "Windows.Media.Core.TimedMetadataStreamDescriptor"; } -::windows_core::imp::interface_hierarchy!(TimedMetadataStreamDescriptor, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for TimedMetadataStreamDescriptor {} -impl ::windows_core::CanTryInto for TimedMetadataStreamDescriptor {} unsafe impl ::core::marker::Send for TimedMetadataStreamDescriptor {} unsafe impl ::core::marker::Sync for TimedMetadataStreamDescriptor {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct TimedMetadataTrack(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(TimedMetadataTrack, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(TimedMetadataTrack, IMediaTrack); impl TimedMetadataTrack { pub fn Id(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Id)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Language(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Language)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TrackKind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TrackKind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetLabel(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetLabel)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn Label(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Label)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6495,29 +5422,29 @@ impl TimedMetadataTrack { } pub fn AddCue(&self, cue: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).AddCue)(::windows_core::Interface::as_raw(this), cue.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).AddCue)(::windows_core::Interface::as_raw(this), cue.into_param().abi()).ok() } } pub fn RemoveCue(&self, cue: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).RemoveCue)(::windows_core::Interface::as_raw(this), cue.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).RemoveCue)(::windows_core::Interface::as_raw(this), cue.into_param().abi()).ok() } } #[doc = "Required features: `\"Media_Playback\"`"] #[cfg(feature = "Media_Playback")] pub fn PlaybackItem(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PlaybackItem)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Name(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Name)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6540,20 +5467,17 @@ impl ::windows_core::RuntimeType for TimedMetadataTrack { } unsafe impl ::windows_core::Interface for TimedMetadataTrack { type Vtable = ITimedMetadataTrack_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TimedMetadataTrack { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for TimedMetadataTrack { const NAME: &'static str = "Windows.Media.Core.TimedMetadataTrack"; } -::windows_core::imp::interface_hierarchy!(TimedMetadataTrack, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for TimedMetadataTrack {} unsafe impl ::core::marker::Send for TimedMetadataTrack {} unsafe impl ::core::marker::Sync for TimedMetadataTrack {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct TimedMetadataTrackError(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(TimedMetadataTrackError, ::windows_core::IUnknown, ::windows_core::IInspectable); impl TimedMetadataTrackError { pub fn ErrorCode(&self) -> ::windows_core::Result { let this = self; @@ -6575,19 +5499,17 @@ impl ::windows_core::RuntimeType for TimedMetadataTrackError { } unsafe impl ::windows_core::Interface for TimedMetadataTrackError { type Vtable = ITimedMetadataTrackError_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TimedMetadataTrackError { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for TimedMetadataTrackError { const NAME: &'static str = "Windows.Media.Core.TimedMetadataTrackError"; } -::windows_core::imp::interface_hierarchy!(TimedMetadataTrackError, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for TimedMetadataTrackError {} unsafe impl ::core::marker::Sync for TimedMetadataTrackError {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct TimedMetadataTrackFailedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(TimedMetadataTrackFailedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl TimedMetadataTrackFailedEventArgs { pub fn Error(&self) -> ::windows_core::Result { let this = self; @@ -6602,19 +5524,17 @@ impl ::windows_core::RuntimeType for TimedMetadataTrackFailedEventArgs { } unsafe impl ::windows_core::Interface for TimedMetadataTrackFailedEventArgs { type Vtable = ITimedMetadataTrackFailedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TimedMetadataTrackFailedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for TimedMetadataTrackFailedEventArgs { const NAME: &'static str = "Windows.Media.Core.TimedMetadataTrackFailedEventArgs"; } -::windows_core::imp::interface_hierarchy!(TimedMetadataTrackFailedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for TimedMetadataTrackFailedEventArgs {} unsafe impl ::core::marker::Sync for TimedMetadataTrackFailedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct TimedTextBouten(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(TimedTextBouten, ::windows_core::IUnknown, ::windows_core::IInspectable); impl TimedTextBouten { pub fn Type(&self) -> ::windows_core::Result { let this = self; @@ -6659,19 +5579,18 @@ impl ::windows_core::RuntimeType for TimedTextBouten { } unsafe impl ::windows_core::Interface for TimedTextBouten { type Vtable = ITimedTextBouten_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TimedTextBouten { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for TimedTextBouten { const NAME: &'static str = "Windows.Media.Core.TimedTextBouten"; } -::windows_core::imp::interface_hierarchy!(TimedTextBouten, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for TimedTextBouten {} unsafe impl ::core::marker::Sync for TimedTextBouten {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct TimedTextCue(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(TimedTextCue, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(TimedTextCue, IMediaCue); impl TimedTextCue { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -6681,33 +5600,33 @@ impl TimedTextCue { SHARED.call(callback) } pub fn SetStartTime(&self, value: super::super::Foundation::TimeSpan) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetStartTime)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn StartTime(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).StartTime)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDuration(&self, value: super::super::Foundation::TimeSpan) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDuration)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Duration(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Duration)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetId(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetId)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn Id(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Id)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6756,20 +5675,17 @@ impl ::windows_core::RuntimeType for TimedTextCue { } unsafe impl ::windows_core::Interface for TimedTextCue { type Vtable = ITimedTextCue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TimedTextCue { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for TimedTextCue { const NAME: &'static str = "Windows.Media.Core.TimedTextCue"; } -::windows_core::imp::interface_hierarchy!(TimedTextCue, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for TimedTextCue {} unsafe impl ::core::marker::Send for TimedTextCue {} unsafe impl ::core::marker::Sync for TimedTextCue {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct TimedTextLine(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(TimedTextLine, ::windows_core::IUnknown, ::windows_core::IInspectable); impl TimedTextLine { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -6804,19 +5720,17 @@ impl ::windows_core::RuntimeType for TimedTextLine { } unsafe impl ::windows_core::Interface for TimedTextLine { type Vtable = ITimedTextLine_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TimedTextLine { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for TimedTextLine { const NAME: &'static str = "Windows.Media.Core.TimedTextLine"; } -::windows_core::imp::interface_hierarchy!(TimedTextLine, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for TimedTextLine {} unsafe impl ::core::marker::Sync for TimedTextLine {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct TimedTextRegion(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(TimedTextRegion, ::windows_core::IUnknown, ::windows_core::IInspectable); impl TimedTextRegion { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -6967,19 +5881,17 @@ impl ::windows_core::RuntimeType for TimedTextRegion { } unsafe impl ::windows_core::Interface for TimedTextRegion { type Vtable = ITimedTextRegion_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TimedTextRegion { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for TimedTextRegion { const NAME: &'static str = "Windows.Media.Core.TimedTextRegion"; } -::windows_core::imp::interface_hierarchy!(TimedTextRegion, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for TimedTextRegion {} unsafe impl ::core::marker::Sync for TimedTextRegion {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct TimedTextRuby(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(TimedTextRuby, ::windows_core::IUnknown, ::windows_core::IInspectable); impl TimedTextRuby { pub fn Text(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -7031,19 +5943,17 @@ impl ::windows_core::RuntimeType for TimedTextRuby { } unsafe impl ::windows_core::Interface for TimedTextRuby { type Vtable = ITimedTextRuby_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TimedTextRuby { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for TimedTextRuby { const NAME: &'static str = "Windows.Media.Core.TimedTextRuby"; } -::windows_core::imp::interface_hierarchy!(TimedTextRuby, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for TimedTextRuby {} unsafe impl ::core::marker::Sync for TimedTextRuby {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct TimedTextSource(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(TimedTextSource, ::windows_core::IUnknown, ::windows_core::IInspectable); impl TimedTextSource { pub fn Resolved(&self, handler: P0) -> ::windows_core::Result where @@ -7063,11 +5973,11 @@ impl TimedTextSource { #[cfg(feature = "Storage_Streams")] pub fn CreateFromStream(stream: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::ITimedTextSourceStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateFromStream)(::windows_core::Interface::as_raw(this), stream.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateFromStream)(::windows_core::Interface::as_raw(this), stream.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn CreateFromUri(uri: P0) -> ::windows_core::Result @@ -7083,11 +5993,11 @@ impl TimedTextSource { #[cfg(feature = "Storage_Streams")] pub fn CreateFromStreamWithLanguage(stream: P0, defaultlanguage: &::windows_core::HSTRING) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::ITimedTextSourceStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateFromStreamWithLanguage)(::windows_core::Interface::as_raw(this), stream.try_into_param()?.abi(), ::core::mem::transmute_copy(defaultlanguage), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateFromStreamWithLanguage)(::windows_core::Interface::as_raw(this), stream.into_param().abi(), ::core::mem::transmute_copy(defaultlanguage), &mut result__).from_abi(result__) }) } pub fn CreateFromUriWithLanguage(uri: P0, defaultlanguage: &::windows_core::HSTRING) -> ::windows_core::Result @@ -7103,12 +6013,12 @@ impl TimedTextSource { #[cfg(feature = "Storage_Streams")] pub fn CreateFromStreamWithIndex(stream: P0, indexstream: P1) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { Self::ITimedTextSourceStatics2(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateFromStreamWithIndex)(::windows_core::Interface::as_raw(this), stream.try_into_param()?.abi(), indexstream.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateFromStreamWithIndex)(::windows_core::Interface::as_raw(this), stream.into_param().abi(), indexstream.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn CreateFromUriWithIndex(uri: P0, indexuri: P1) -> ::windows_core::Result @@ -7125,12 +6035,12 @@ impl TimedTextSource { #[cfg(feature = "Storage_Streams")] pub fn CreateFromStreamWithIndexAndLanguage(stream: P0, indexstream: P1, defaultlanguage: &::windows_core::HSTRING) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { Self::ITimedTextSourceStatics2(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateFromStreamWithIndexAndLanguage)(::windows_core::Interface::as_raw(this), stream.try_into_param()?.abi(), indexstream.try_into_param()?.abi(), ::core::mem::transmute_copy(defaultlanguage), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } pub fn CreateFromUriWithIndexAndLanguage(uri: P0, indexuri: P1, defaultlanguage: &::windows_core::HSTRING) -> ::windows_core::Result @@ -7159,19 +6069,17 @@ impl ::windows_core::RuntimeType for TimedTextSource { } unsafe impl ::windows_core::Interface for TimedTextSource { type Vtable = ITimedTextSource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TimedTextSource { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for TimedTextSource { const NAME: &'static str = "Windows.Media.Core.TimedTextSource"; } -::windows_core::imp::interface_hierarchy!(TimedTextSource, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for TimedTextSource {} unsafe impl ::core::marker::Sync for TimedTextSource {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct TimedTextSourceResolveResultEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(TimedTextSourceResolveResultEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl TimedTextSourceResolveResultEventArgs { pub fn Error(&self) -> ::windows_core::Result { let this = self; @@ -7195,19 +6103,17 @@ impl ::windows_core::RuntimeType for TimedTextSourceResolveResultEventArgs { } unsafe impl ::windows_core::Interface for TimedTextSourceResolveResultEventArgs { type Vtable = ITimedTextSourceResolveResultEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TimedTextSourceResolveResultEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for TimedTextSourceResolveResultEventArgs { const NAME: &'static str = "Windows.Media.Core.TimedTextSourceResolveResultEventArgs"; } -::windows_core::imp::interface_hierarchy!(TimedTextSourceResolveResultEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for TimedTextSourceResolveResultEventArgs {} unsafe impl ::core::marker::Sync for TimedTextSourceResolveResultEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct TimedTextStyle(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(TimedTextStyle, ::windows_core::IUnknown, ::windows_core::IInspectable); impl TimedTextStyle { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -7361,83 +6267,83 @@ impl TimedTextStyle { unsafe { (::windows_core::Interface::vtable(this).SetOutlineRadius)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn FontStyle(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FontStyle)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetFontStyle(&self, value: TimedTextFontStyle) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetFontStyle)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsUnderlineEnabled(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsUnderlineEnabled)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsUnderlineEnabled(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsUnderlineEnabled)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsLineThroughEnabled(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsLineThroughEnabled)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsLineThroughEnabled(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsLineThroughEnabled)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsOverlineEnabled(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsOverlineEnabled)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsOverlineEnabled(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsOverlineEnabled)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Ruby(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Ruby)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Bouten(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Bouten)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsTextCombined(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsTextCombined)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsTextCombined(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsTextCombined)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn FontAngleInDegrees(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FontAngleInDegrees)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetFontAngleInDegrees(&self, value: f64) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetFontAngleInDegrees)(::windows_core::Interface::as_raw(this), value).ok() } } } @@ -7446,19 +6352,17 @@ impl ::windows_core::RuntimeType for TimedTextStyle { } unsafe impl ::windows_core::Interface for TimedTextStyle { type Vtable = ITimedTextStyle_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TimedTextStyle { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for TimedTextStyle { const NAME: &'static str = "Windows.Media.Core.TimedTextStyle"; } -::windows_core::imp::interface_hierarchy!(TimedTextStyle, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for TimedTextStyle {} unsafe impl ::core::marker::Sync for TimedTextStyle {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct TimedTextSubformat(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(TimedTextSubformat, ::windows_core::IUnknown, ::windows_core::IInspectable); impl TimedTextSubformat { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -7509,28 +6413,27 @@ impl ::windows_core::RuntimeType for TimedTextSubformat { } unsafe impl ::windows_core::Interface for TimedTextSubformat { type Vtable = ITimedTextSubformat_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TimedTextSubformat { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for TimedTextSubformat { const NAME: &'static str = "Windows.Media.Core.TimedTextSubformat"; } -::windows_core::imp::interface_hierarchy!(TimedTextSubformat, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for TimedTextSubformat {} unsafe impl ::core::marker::Sync for TimedTextSubformat {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VideoStabilizationEffect(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VideoStabilizationEffect, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(VideoStabilizationEffect, super::IMediaExtension); impl VideoStabilizationEffect { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn SetProperties(&self, configuration: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetProperties)(::windows_core::Interface::as_raw(this), configuration.try_into_param()?.abi()).ok() } + 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() } } pub fn SetEnabled(&self, value: bool) -> ::windows_core::Result<()> { let this = self; @@ -7576,15 +6479,11 @@ impl ::windows_core::RuntimeType for VideoStabilizationEffect { } unsafe impl ::windows_core::Interface for VideoStabilizationEffect { type Vtable = IVideoStabilizationEffect_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VideoStabilizationEffect { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VideoStabilizationEffect { const NAME: &'static str = "Windows.Media.Core.VideoStabilizationEffect"; } -::windows_core::imp::interface_hierarchy!(VideoStabilizationEffect, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for VideoStabilizationEffect {} unsafe impl ::core::marker::Send for VideoStabilizationEffect {} unsafe impl ::core::marker::Sync for VideoStabilizationEffect {} #[doc = "Required features: `\"Media_Effects\"`"] @@ -7593,6 +6492,10 @@ unsafe impl ::core::marker::Sync for VideoStabilizationEffect {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VideoStabilizationEffectDefinition(::windows_core::IUnknown); #[cfg(feature = "Media_Effects")] +::windows_core::imp::interface_hierarchy!(VideoStabilizationEffectDefinition, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Media_Effects")] +::windows_core::imp::required_hierarchy!(VideoStabilizationEffectDefinition, super::Effects::IVideoEffectDefinition); +#[cfg(feature = "Media_Effects")] impl VideoStabilizationEffectDefinition { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -7627,26 +6530,20 @@ impl ::windows_core::RuntimeType for VideoStabilizationEffectDefinition { #[cfg(feature = "Media_Effects")] unsafe impl ::windows_core::Interface for VideoStabilizationEffectDefinition { type Vtable = super::Effects::IVideoEffectDefinition_Vtbl; -} -#[cfg(feature = "Media_Effects")] -unsafe impl ::windows_core::ComInterface for VideoStabilizationEffectDefinition { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "Media_Effects")] impl ::windows_core::RuntimeName for VideoStabilizationEffectDefinition { const NAME: &'static str = "Windows.Media.Core.VideoStabilizationEffectDefinition"; } #[cfg(feature = "Media_Effects")] -::windows_core::imp::interface_hierarchy!(VideoStabilizationEffectDefinition, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Media_Effects")] -impl ::windows_core::CanTryInto for VideoStabilizationEffectDefinition {} -#[cfg(feature = "Media_Effects")] unsafe impl ::core::marker::Send for VideoStabilizationEffectDefinition {} #[cfg(feature = "Media_Effects")] unsafe impl ::core::marker::Sync for VideoStabilizationEffectDefinition {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VideoStabilizationEffectEnabledChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VideoStabilizationEffectEnabledChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl VideoStabilizationEffectEnabledChangedEventArgs { pub fn Reason(&self) -> ::windows_core::Result { let this = self; @@ -7661,55 +6558,54 @@ impl ::windows_core::RuntimeType for VideoStabilizationEffectEnabledChangedEvent } unsafe impl ::windows_core::Interface for VideoStabilizationEffectEnabledChangedEventArgs { type Vtable = IVideoStabilizationEffectEnabledChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VideoStabilizationEffectEnabledChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VideoStabilizationEffectEnabledChangedEventArgs { const NAME: &'static str = "Windows.Media.Core.VideoStabilizationEffectEnabledChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(VideoStabilizationEffectEnabledChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for VideoStabilizationEffectEnabledChangedEventArgs {} unsafe impl ::core::marker::Sync for VideoStabilizationEffectEnabledChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VideoStreamDescriptor(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VideoStreamDescriptor, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(VideoStreamDescriptor, IMediaStreamDescriptor, IMediaStreamDescriptor2); impl VideoStreamDescriptor { pub fn IsSelected(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsSelected)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetName(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetName)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn Name(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Name)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetLanguage(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetLanguage)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn Language(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Language)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetLabel(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetLabel)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn Label(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Label)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -7725,7 +6621,7 @@ impl VideoStreamDescriptor { } } pub fn Copy(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Copy)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -7753,21 +6649,18 @@ impl ::windows_core::RuntimeType for VideoStreamDescriptor { } unsafe impl ::windows_core::Interface for VideoStreamDescriptor { type Vtable = IVideoStreamDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VideoStreamDescriptor { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VideoStreamDescriptor { const NAME: &'static str = "Windows.Media.Core.VideoStreamDescriptor"; } -::windows_core::imp::interface_hierarchy!(VideoStreamDescriptor, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for VideoStreamDescriptor {} -impl ::windows_core::CanTryInto for VideoStreamDescriptor {} unsafe impl ::core::marker::Send for VideoStreamDescriptor {} unsafe impl ::core::marker::Sync for VideoStreamDescriptor {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VideoTrack(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VideoTrack, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(VideoTrack, IMediaTrack); impl VideoTrack { pub fn Id(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -7805,20 +6698,20 @@ impl VideoTrack { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveOpenFailed(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveOpenFailed)(::windows_core::Interface::as_raw(this), token).ok() } } #[doc = "Required features: `\"Media_MediaProperties\"`"] #[cfg(feature = "Media_MediaProperties")] pub fn GetEncodingProperties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetEncodingProperties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -7827,21 +6720,21 @@ impl VideoTrack { #[doc = "Required features: `\"Media_Playback\"`"] #[cfg(feature = "Media_Playback")] pub fn PlaybackItem(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PlaybackItem)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Name(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Name)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SupportInfo(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SupportInfo)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -7853,20 +6746,17 @@ impl ::windows_core::RuntimeType for VideoTrack { } unsafe impl ::windows_core::Interface for VideoTrack { type Vtable = IMediaTrack_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VideoTrack { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VideoTrack { const NAME: &'static str = "Windows.Media.Core.VideoTrack"; } -::windows_core::imp::interface_hierarchy!(VideoTrack, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for VideoTrack {} unsafe impl ::core::marker::Send for VideoTrack {} unsafe impl ::core::marker::Sync for VideoTrack {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VideoTrackOpenFailedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VideoTrackOpenFailedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl VideoTrackOpenFailedEventArgs { pub fn ExtendedError(&self) -> ::windows_core::Result<::windows_core::HRESULT> { let this = self; @@ -7881,19 +6771,17 @@ impl ::windows_core::RuntimeType for VideoTrackOpenFailedEventArgs { } unsafe impl ::windows_core::Interface for VideoTrackOpenFailedEventArgs { type Vtable = IVideoTrackOpenFailedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VideoTrackOpenFailedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VideoTrackOpenFailedEventArgs { const NAME: &'static str = "Windows.Media.Core.VideoTrackOpenFailedEventArgs"; } -::windows_core::imp::interface_hierarchy!(VideoTrackOpenFailedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for VideoTrackOpenFailedEventArgs {} unsafe impl ::core::marker::Sync for VideoTrackOpenFailedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VideoTrackSupportInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VideoTrackSupportInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl VideoTrackSupportInfo { pub fn DecoderStatus(&self) -> ::windows_core::Result { let this = self; @@ -7915,14 +6803,11 @@ impl ::windows_core::RuntimeType for VideoTrackSupportInfo { } unsafe impl ::windows_core::Interface for VideoTrackSupportInfo { type Vtable = IVideoTrackSupportInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VideoTrackSupportInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VideoTrackSupportInfo { const NAME: &'static str = "Windows.Media.Core.VideoTrackSupportInfo"; } -::windows_core::imp::interface_hierarchy!(VideoTrackSupportInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for VideoTrackSupportInfo {} unsafe impl ::core::marker::Sync for VideoTrackSupportInfo {} #[repr(transparent)] 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 9334783501..a4d5db0e12 100644 --- a/crates/libs/windows/src/Windows/Media/Devices/Core/mod.rs +++ b/crates/libs/windows/src/Windows/Media/Devices/Core/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICameraIntrinsics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICameraIntrinsics { - type Vtable = ICameraIntrinsics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICameraIntrinsics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0aa6ed32_6589_49da_afde_594270ca0aac); -} +::windows_core::imp::com_interface!(ICameraIntrinsics, ICameraIntrinsics_Vtbl, 0x0aa6ed32_6589_49da_afde_594270ca0aac); #[repr(C)] #[doc(hidden)] pub struct ICameraIntrinsics_Vtbl { @@ -47,16 +38,7 @@ pub struct ICameraIntrinsics_Vtbl { #[cfg(not(feature = "Foundation_Numerics"))] UnprojectPixelsAtUnitDepth: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICameraIntrinsics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICameraIntrinsics2 { - type Vtable = ICameraIntrinsics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICameraIntrinsics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0cdaa447_0798_4b4d_839f_c5ec414db27a); -} +::windows_core::imp::com_interface!(ICameraIntrinsics2, ICameraIntrinsics2_Vtbl, 0x0cdaa447_0798_4b4d_839f_c5ec414db27a); #[repr(C)] #[doc(hidden)] pub struct ICameraIntrinsics2_Vtbl { @@ -70,16 +52,7 @@ pub struct ICameraIntrinsics2_Vtbl { pub UndistortPoint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: super::super::super::Foundation::Point, result__: *mut super::super::super::Foundation::Point) -> ::windows_core::HRESULT, pub UndistortPoints: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, inputs_array_size: u32, inputs: *const super::super::super::Foundation::Point, results_array_size: u32, results: *mut super::super::super::Foundation::Point) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICameraIntrinsicsFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICameraIntrinsicsFactory { - type Vtable = ICameraIntrinsicsFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICameraIntrinsicsFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc0ddc486_2132_4a34_a659_9bfe2a055712); -} +::windows_core::imp::com_interface!(ICameraIntrinsicsFactory, ICameraIntrinsicsFactory_Vtbl, 0xc0ddc486_2132_4a34_a659_9bfe2a055712); #[repr(C)] #[doc(hidden)] pub struct ICameraIntrinsicsFactory_Vtbl { @@ -89,16 +62,7 @@ pub struct ICameraIntrinsicsFactory_Vtbl { #[cfg(not(feature = "Foundation_Numerics"))] Create: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDepthCorrelatedCoordinateMapper(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDepthCorrelatedCoordinateMapper { - type Vtable = IDepthCorrelatedCoordinateMapper_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDepthCorrelatedCoordinateMapper { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf95d89fb_8af0_4cb0_926d_696866e5046a); -} +::windows_core::imp::com_interface!(IDepthCorrelatedCoordinateMapper, IDepthCorrelatedCoordinateMapper_Vtbl, 0xf95d89fb_8af0_4cb0_926d_696866e5046a); #[repr(C)] #[doc(hidden)] pub struct IDepthCorrelatedCoordinateMapper_Vtbl { @@ -120,16 +84,7 @@ pub struct IDepthCorrelatedCoordinateMapper_Vtbl { #[cfg(not(feature = "Perception_Spatial"))] MapPoints: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFrameControlCapabilities(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFrameControlCapabilities { - type Vtable = IFrameControlCapabilities_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFrameControlCapabilities { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa8ffae60_4e9e_4377_a789_e24c4ae7e544); -} +::windows_core::imp::com_interface!(IFrameControlCapabilities, IFrameControlCapabilities_Vtbl, 0xa8ffae60_4e9e_4377_a789_e24c4ae7e544); #[repr(C)] #[doc(hidden)] pub struct IFrameControlCapabilities_Vtbl { @@ -140,32 +95,14 @@ pub struct IFrameControlCapabilities_Vtbl { pub Focus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub PhotoConfirmationSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFrameControlCapabilities2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFrameControlCapabilities2 { - type Vtable = IFrameControlCapabilities2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFrameControlCapabilities2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xce9b0464_4730_440f_bd3e_efe8a8f230a8); -} +::windows_core::imp::com_interface!(IFrameControlCapabilities2, IFrameControlCapabilities2_Vtbl, 0xce9b0464_4730_440f_bd3e_efe8a8f230a8); #[repr(C)] #[doc(hidden)] pub struct IFrameControlCapabilities2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Flash: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFrameController(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFrameController { - type Vtable = IFrameController_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFrameController { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc16459d9_baef_4052_9177_48aff2af7522); -} +::windows_core::imp::com_interface!(IFrameController, IFrameController_Vtbl, 0xc16459d9_baef_4052_9177_48aff2af7522); #[repr(C)] #[doc(hidden)] pub struct IFrameController_Vtbl { @@ -177,32 +114,14 @@ pub struct IFrameController_Vtbl { pub PhotoConfirmationEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetPhotoConfirmationEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFrameController2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFrameController2 { - type Vtable = IFrameController2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFrameController2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00d3bc75_d87c_485b_8a09_5c358568b427); -} +::windows_core::imp::com_interface!(IFrameController2, IFrameController2_Vtbl, 0x00d3bc75_d87c_485b_8a09_5c358568b427); #[repr(C)] #[doc(hidden)] pub struct IFrameController2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub FlashControl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFrameExposureCapabilities(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFrameExposureCapabilities { - type Vtable = IFrameExposureCapabilities_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFrameExposureCapabilities { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbdbe9ce3_3985_4e72_97c2_0590d61307a1); -} +::windows_core::imp::com_interface!(IFrameExposureCapabilities, IFrameExposureCapabilities_Vtbl, 0xbdbe9ce3_3985_4e72_97c2_0590d61307a1); #[repr(C)] #[doc(hidden)] pub struct IFrameExposureCapabilities_Vtbl { @@ -212,16 +131,7 @@ pub struct IFrameExposureCapabilities_Vtbl { pub Max: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::TimeSpan) -> ::windows_core::HRESULT, pub Step: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::TimeSpan) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFrameExposureCompensationCapabilities(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFrameExposureCompensationCapabilities { - type Vtable = IFrameExposureCompensationCapabilities_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFrameExposureCompensationCapabilities { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb988a823_8065_41ee_b04f_722265954500); -} +::windows_core::imp::com_interface!(IFrameExposureCompensationCapabilities, IFrameExposureCompensationCapabilities_Vtbl, 0xb988a823_8065_41ee_b04f_722265954500); #[repr(C)] #[doc(hidden)] pub struct IFrameExposureCompensationCapabilities_Vtbl { @@ -231,16 +141,7 @@ pub struct IFrameExposureCompensationCapabilities_Vtbl { pub Max: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows_core::HRESULT, pub Step: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFrameExposureCompensationControl(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFrameExposureCompensationControl { - type Vtable = IFrameExposureCompensationControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFrameExposureCompensationControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe95896c9_f7f9_48ca_8591_a26531cb1578); -} +::windows_core::imp::com_interface!(IFrameExposureCompensationControl, IFrameExposureCompensationControl_Vtbl, 0xe95896c9_f7f9_48ca_8591_a26531cb1578); #[repr(C)] #[doc(hidden)] pub struct IFrameExposureCompensationControl_Vtbl { @@ -248,16 +149,7 @@ pub struct IFrameExposureCompensationControl_Vtbl { pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFrameExposureControl(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFrameExposureControl { - type Vtable = IFrameExposureControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFrameExposureControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb1605a61_ffaf_4752_b621_f5b6f117f432); -} +::windows_core::imp::com_interface!(IFrameExposureControl, IFrameExposureControl_Vtbl, 0xb1605a61_ffaf_4752_b621_f5b6f117f432); #[repr(C)] #[doc(hidden)] pub struct IFrameExposureControl_Vtbl { @@ -267,16 +159,7 @@ pub struct IFrameExposureControl_Vtbl { pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFrameFlashCapabilities(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFrameFlashCapabilities { - type Vtable = IFrameFlashCapabilities_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFrameFlashCapabilities { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbb9341a2_5ebe_4f62_8223_0e2b05bfbbd0); -} +::windows_core::imp::com_interface!(IFrameFlashCapabilities, IFrameFlashCapabilities_Vtbl, 0xbb9341a2_5ebe_4f62_8223_0e2b05bfbbd0); #[repr(C)] #[doc(hidden)] pub struct IFrameFlashCapabilities_Vtbl { @@ -285,16 +168,7 @@ pub struct IFrameFlashCapabilities_Vtbl { pub RedEyeReductionSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub PowerSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFrameFlashControl(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFrameFlashControl { - type Vtable = IFrameFlashControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFrameFlashControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x75d5f6c7_bd45_4fab_9375_45ac04b332c2); -} +::windows_core::imp::com_interface!(IFrameFlashControl, IFrameFlashControl_Vtbl, 0x75d5f6c7_bd45_4fab_9375_45ac04b332c2); #[repr(C)] #[doc(hidden)] pub struct IFrameFlashControl_Vtbl { @@ -308,16 +182,7 @@ pub struct IFrameFlashControl_Vtbl { pub PowerPercent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows_core::HRESULT, pub SetPowerPercent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFrameFocusCapabilities(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFrameFocusCapabilities { - type Vtable = IFrameFocusCapabilities_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFrameFocusCapabilities { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7b25cd58_01c0_4065_9c40_c1a721425c1a); -} +::windows_core::imp::com_interface!(IFrameFocusCapabilities, IFrameFocusCapabilities_Vtbl, 0x7b25cd58_01c0_4065_9c40_c1a721425c1a); #[repr(C)] #[doc(hidden)] pub struct IFrameFocusCapabilities_Vtbl { @@ -327,16 +192,7 @@ pub struct IFrameFocusCapabilities_Vtbl { pub Max: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, pub Step: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFrameFocusControl(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFrameFocusControl { - type Vtable = IFrameFocusControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFrameFocusControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x272df1d0_d912_4214_a67b_e38a8d48d8c6); -} +::windows_core::imp::com_interface!(IFrameFocusControl, IFrameFocusControl_Vtbl, 0x272df1d0_d912_4214_a67b_e38a8d48d8c6); #[repr(C)] #[doc(hidden)] pub struct IFrameFocusControl_Vtbl { @@ -344,16 +200,7 @@ pub struct IFrameFocusControl_Vtbl { pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFrameIsoSpeedCapabilities(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFrameIsoSpeedCapabilities { - type Vtable = IFrameIsoSpeedCapabilities_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFrameIsoSpeedCapabilities { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x16bdff61_6df6_4ac9_b92a_9f6ecd1ad2fa); -} +::windows_core::imp::com_interface!(IFrameIsoSpeedCapabilities, IFrameIsoSpeedCapabilities_Vtbl, 0x16bdff61_6df6_4ac9_b92a_9f6ecd1ad2fa); #[repr(C)] #[doc(hidden)] pub struct IFrameIsoSpeedCapabilities_Vtbl { @@ -363,16 +210,7 @@ pub struct IFrameIsoSpeedCapabilities_Vtbl { pub Max: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, pub Step: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFrameIsoSpeedControl(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFrameIsoSpeedControl { - type Vtable = IFrameIsoSpeedControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFrameIsoSpeedControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1a03efed_786a_4c75_a557_7ab9a85f588c); -} +::windows_core::imp::com_interface!(IFrameIsoSpeedControl, IFrameIsoSpeedControl_Vtbl, 0x1a03efed_786a_4c75_a557_7ab9a85f588c); #[repr(C)] #[doc(hidden)] pub struct IFrameIsoSpeedControl_Vtbl { @@ -382,16 +220,7 @@ pub struct IFrameIsoSpeedControl_Vtbl { pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVariablePhotoSequenceController(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVariablePhotoSequenceController { - type Vtable = IVariablePhotoSequenceController_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVariablePhotoSequenceController { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7fbff880_ed8c_43fd_a7c3_b35809e4229a); -} +::windows_core::imp::com_interface!(IVariablePhotoSequenceController, IVariablePhotoSequenceController_Vtbl, 0x7fbff880_ed8c_43fd_a7c3_b35809e4229a); #[repr(C)] #[doc(hidden)] pub struct IVariablePhotoSequenceController_Vtbl { @@ -417,6 +246,7 @@ pub struct IVariablePhotoSequenceController_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CameraIntrinsics(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CameraIntrinsics, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CameraIntrinsics { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] @@ -501,32 +331,32 @@ impl CameraIntrinsics { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn UndistortedProjectionTransform(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).UndistortedProjectionTransform)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn DistortPoint(&self, input: super::super::super::Foundation::Point) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DistortPoint)(::windows_core::Interface::as_raw(this), input, &mut result__).from_abi(result__) } } pub fn DistortPoints(&self, inputs: &[super::super::super::Foundation::Point], results: &mut [super::super::super::Foundation::Point]) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).DistortPoints)(::windows_core::Interface::as_raw(this), inputs.len().try_into().unwrap(), inputs.as_ptr(), results.len().try_into().unwrap(), results.as_mut_ptr()).ok() } } pub fn UndistortPoint(&self, input: super::super::super::Foundation::Point) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).UndistortPoint)(::windows_core::Interface::as_raw(this), input, &mut result__).from_abi(result__) } } pub fn UndistortPoints(&self, inputs: &[super::super::super::Foundation::Point], results: &mut [super::super::super::Foundation::Point]) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).UndistortPoints)(::windows_core::Interface::as_raw(this), inputs.len().try_into().unwrap(), inputs.as_ptr(), results.len().try_into().unwrap(), results.as_mut_ptr()).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] @@ -548,22 +378,21 @@ impl ::windows_core::RuntimeType for CameraIntrinsics { } unsafe impl ::windows_core::Interface for CameraIntrinsics { type Vtable = ICameraIntrinsics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CameraIntrinsics { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CameraIntrinsics { const NAME: &'static str = "Windows.Media.Devices.Core.CameraIntrinsics"; } -::windows_core::imp::interface_hierarchy!(CameraIntrinsics, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CameraIntrinsics {} unsafe impl ::core::marker::Sync for CameraIntrinsics {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DepthCorrelatedCoordinateMapper(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DepthCorrelatedCoordinateMapper, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(DepthCorrelatedCoordinateMapper, super::super::super::Foundation::IClosable); impl DepthCorrelatedCoordinateMapper { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`, `\"Perception_Spatial\"`"] @@ -616,20 +445,17 @@ impl ::windows_core::RuntimeType for DepthCorrelatedCoordinateMapper { } unsafe impl ::windows_core::Interface for DepthCorrelatedCoordinateMapper { type Vtable = IDepthCorrelatedCoordinateMapper_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DepthCorrelatedCoordinateMapper { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DepthCorrelatedCoordinateMapper { const NAME: &'static str = "Windows.Media.Devices.Core.DepthCorrelatedCoordinateMapper"; } -::windows_core::imp::interface_hierarchy!(DepthCorrelatedCoordinateMapper, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for DepthCorrelatedCoordinateMapper {} unsafe impl ::core::marker::Send for DepthCorrelatedCoordinateMapper {} unsafe impl ::core::marker::Sync for DepthCorrelatedCoordinateMapper {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct FrameControlCapabilities(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(FrameControlCapabilities, ::windows_core::IUnknown, ::windows_core::IInspectable); impl FrameControlCapabilities { pub fn Exposure(&self) -> ::windows_core::Result { let this = self; @@ -667,7 +493,7 @@ impl FrameControlCapabilities { } } pub fn Flash(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Flash)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -679,17 +505,15 @@ impl ::windows_core::RuntimeType for FrameControlCapabilities { } unsafe impl ::windows_core::Interface for FrameControlCapabilities { type Vtable = IFrameControlCapabilities_Vtbl; -} -unsafe impl ::windows_core::ComInterface for FrameControlCapabilities { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for FrameControlCapabilities { const NAME: &'static str = "Windows.Media.Devices.Core.FrameControlCapabilities"; } -::windows_core::imp::interface_hierarchy!(FrameControlCapabilities, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct FrameController(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(FrameController, ::windows_core::IUnknown, ::windows_core::IInspectable); impl FrameController { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -735,13 +559,13 @@ impl FrameController { } pub fn SetPhotoConfirmationEnabled(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetPhotoConfirmationEnabled)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetPhotoConfirmationEnabled)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn FlashControl(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FlashControl)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -753,19 +577,17 @@ impl ::windows_core::RuntimeType for FrameController { } unsafe impl ::windows_core::Interface for FrameController { type Vtable = IFrameController_Vtbl; -} -unsafe impl ::windows_core::ComInterface for FrameController { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for FrameController { const NAME: &'static str = "Windows.Media.Devices.Core.FrameController"; } -::windows_core::imp::interface_hierarchy!(FrameController, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for FrameController {} unsafe impl ::core::marker::Sync for FrameController {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct FrameExposureCapabilities(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(FrameExposureCapabilities, ::windows_core::IUnknown, ::windows_core::IInspectable); impl FrameExposureCapabilities { pub fn Supported(&self) -> ::windows_core::Result { let this = self; @@ -801,17 +623,15 @@ impl ::windows_core::RuntimeType for FrameExposureCapabilities { } unsafe impl ::windows_core::Interface for FrameExposureCapabilities { type Vtable = IFrameExposureCapabilities_Vtbl; -} -unsafe impl ::windows_core::ComInterface for FrameExposureCapabilities { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for FrameExposureCapabilities { const NAME: &'static str = "Windows.Media.Devices.Core.FrameExposureCapabilities"; } -::windows_core::imp::interface_hierarchy!(FrameExposureCapabilities, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct FrameExposureCompensationCapabilities(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(FrameExposureCompensationCapabilities, ::windows_core::IUnknown, ::windows_core::IInspectable); impl FrameExposureCompensationCapabilities { pub fn Supported(&self) -> ::windows_core::Result { let this = self; @@ -847,17 +667,15 @@ impl ::windows_core::RuntimeType for FrameExposureCompensationCapabilities { } unsafe impl ::windows_core::Interface for FrameExposureCompensationCapabilities { type Vtable = IFrameExposureCompensationCapabilities_Vtbl; -} -unsafe impl ::windows_core::ComInterface for FrameExposureCompensationCapabilities { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for FrameExposureCompensationCapabilities { const NAME: &'static str = "Windows.Media.Devices.Core.FrameExposureCompensationCapabilities"; } -::windows_core::imp::interface_hierarchy!(FrameExposureCompensationCapabilities, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct FrameExposureCompensationControl(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(FrameExposureCompensationControl, ::windows_core::IUnknown, ::windows_core::IInspectable); impl FrameExposureCompensationControl { pub fn Value(&self) -> ::windows_core::Result> { let this = self; @@ -868,10 +686,10 @@ impl FrameExposureCompensationControl { } pub fn SetValue(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetValue)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetValue)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } } impl ::windows_core::RuntimeType for FrameExposureCompensationControl { @@ -879,17 +697,15 @@ impl ::windows_core::RuntimeType for FrameExposureCompensationControl { } unsafe impl ::windows_core::Interface for FrameExposureCompensationControl { type Vtable = IFrameExposureCompensationControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for FrameExposureCompensationControl { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for FrameExposureCompensationControl { const NAME: &'static str = "Windows.Media.Devices.Core.FrameExposureCompensationControl"; } -::windows_core::imp::interface_hierarchy!(FrameExposureCompensationControl, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct FrameExposureControl(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(FrameExposureControl, ::windows_core::IUnknown, ::windows_core::IInspectable); impl FrameExposureControl { pub fn Auto(&self) -> ::windows_core::Result { let this = self; @@ -911,10 +727,10 @@ impl FrameExposureControl { } pub fn SetValue(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetValue)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetValue)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } } impl ::windows_core::RuntimeType for FrameExposureControl { @@ -922,17 +738,15 @@ impl ::windows_core::RuntimeType for FrameExposureControl { } unsafe impl ::windows_core::Interface for FrameExposureControl { type Vtable = IFrameExposureControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for FrameExposureControl { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for FrameExposureControl { const NAME: &'static str = "Windows.Media.Devices.Core.FrameExposureControl"; } -::windows_core::imp::interface_hierarchy!(FrameExposureControl, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct FrameFlashCapabilities(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(FrameFlashCapabilities, ::windows_core::IUnknown, ::windows_core::IInspectable); impl FrameFlashCapabilities { pub fn Supported(&self) -> ::windows_core::Result { let this = self; @@ -961,17 +775,15 @@ impl ::windows_core::RuntimeType for FrameFlashCapabilities { } unsafe impl ::windows_core::Interface for FrameFlashCapabilities { type Vtable = IFrameFlashCapabilities_Vtbl; -} -unsafe impl ::windows_core::ComInterface for FrameFlashCapabilities { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for FrameFlashCapabilities { const NAME: &'static str = "Windows.Media.Devices.Core.FrameFlashCapabilities"; } -::windows_core::imp::interface_hierarchy!(FrameFlashCapabilities, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct FrameFlashControl(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(FrameFlashControl, ::windows_core::IUnknown, ::windows_core::IInspectable); impl FrameFlashControl { pub fn Mode(&self) -> ::windows_core::Result { let this = self; @@ -1023,17 +835,15 @@ impl ::windows_core::RuntimeType for FrameFlashControl { } unsafe impl ::windows_core::Interface for FrameFlashControl { type Vtable = IFrameFlashControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for FrameFlashControl { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for FrameFlashControl { const NAME: &'static str = "Windows.Media.Devices.Core.FrameFlashControl"; } -::windows_core::imp::interface_hierarchy!(FrameFlashControl, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct FrameFocusCapabilities(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(FrameFocusCapabilities, ::windows_core::IUnknown, ::windows_core::IInspectable); impl FrameFocusCapabilities { pub fn Supported(&self) -> ::windows_core::Result { let this = self; @@ -1069,17 +879,15 @@ impl ::windows_core::RuntimeType for FrameFocusCapabilities { } unsafe impl ::windows_core::Interface for FrameFocusCapabilities { type Vtable = IFrameFocusCapabilities_Vtbl; -} -unsafe impl ::windows_core::ComInterface for FrameFocusCapabilities { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for FrameFocusCapabilities { const NAME: &'static str = "Windows.Media.Devices.Core.FrameFocusCapabilities"; } -::windows_core::imp::interface_hierarchy!(FrameFocusCapabilities, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct FrameFocusControl(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(FrameFocusControl, ::windows_core::IUnknown, ::windows_core::IInspectable); impl FrameFocusControl { pub fn Value(&self) -> ::windows_core::Result> { let this = self; @@ -1090,10 +898,10 @@ impl FrameFocusControl { } pub fn SetValue(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetValue)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetValue)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } } impl ::windows_core::RuntimeType for FrameFocusControl { @@ -1101,17 +909,15 @@ impl ::windows_core::RuntimeType for FrameFocusControl { } unsafe impl ::windows_core::Interface for FrameFocusControl { type Vtable = IFrameFocusControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for FrameFocusControl { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for FrameFocusControl { const NAME: &'static str = "Windows.Media.Devices.Core.FrameFocusControl"; } -::windows_core::imp::interface_hierarchy!(FrameFocusControl, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct FrameIsoSpeedCapabilities(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(FrameIsoSpeedCapabilities, ::windows_core::IUnknown, ::windows_core::IInspectable); impl FrameIsoSpeedCapabilities { pub fn Supported(&self) -> ::windows_core::Result { let this = self; @@ -1147,17 +953,15 @@ impl ::windows_core::RuntimeType for FrameIsoSpeedCapabilities { } unsafe impl ::windows_core::Interface for FrameIsoSpeedCapabilities { type Vtable = IFrameIsoSpeedCapabilities_Vtbl; -} -unsafe impl ::windows_core::ComInterface for FrameIsoSpeedCapabilities { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for FrameIsoSpeedCapabilities { const NAME: &'static str = "Windows.Media.Devices.Core.FrameIsoSpeedCapabilities"; } -::windows_core::imp::interface_hierarchy!(FrameIsoSpeedCapabilities, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct FrameIsoSpeedControl(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(FrameIsoSpeedControl, ::windows_core::IUnknown, ::windows_core::IInspectable); impl FrameIsoSpeedControl { pub fn Auto(&self) -> ::windows_core::Result { let this = self; @@ -1179,10 +983,10 @@ impl FrameIsoSpeedControl { } pub fn SetValue(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetValue)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetValue)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } } impl ::windows_core::RuntimeType for FrameIsoSpeedControl { @@ -1190,17 +994,15 @@ impl ::windows_core::RuntimeType for FrameIsoSpeedControl { } unsafe impl ::windows_core::Interface for FrameIsoSpeedControl { type Vtable = IFrameIsoSpeedControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for FrameIsoSpeedControl { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for FrameIsoSpeedControl { const NAME: &'static str = "Windows.Media.Devices.Core.FrameIsoSpeedControl"; } -::windows_core::imp::interface_hierarchy!(FrameIsoSpeedControl, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VariablePhotoSequenceController(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VariablePhotoSequenceController, ::windows_core::IUnknown, ::windows_core::IInspectable); impl VariablePhotoSequenceController { pub fn Supported(&self) -> ::windows_core::Result { let this = self; @@ -1231,12 +1033,12 @@ impl VariablePhotoSequenceController { #[cfg(feature = "Media_MediaProperties")] pub fn GetHighestConcurrentFrameRate(&self, captureproperties: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).GetHighestConcurrentFrameRate)(::windows_core::Interface::as_raw(this), captureproperties.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).GetHighestConcurrentFrameRate)(::windows_core::Interface::as_raw(this), captureproperties.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Media_MediaProperties\"`"] @@ -1270,14 +1072,11 @@ impl ::windows_core::RuntimeType for VariablePhotoSequenceController { } unsafe impl ::windows_core::Interface for VariablePhotoSequenceController { type Vtable = IVariablePhotoSequenceController_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VariablePhotoSequenceController { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VariablePhotoSequenceController { const NAME: &'static str = "Windows.Media.Devices.Core.VariablePhotoSequenceController"; } -::windows_core::imp::interface_hierarchy!(VariablePhotoSequenceController, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::marker::Copy, ::core::clone::Clone, ::core::default::Default)] pub struct FrameFlashMode(pub i32); diff --git a/crates/libs/windows/src/Windows/Media/Devices/impl.rs b/crates/libs/windows/src/Windows/Media/Devices/impl.rs index 24a6f502dc..a38f0a3134 100644 --- a/crates/libs/windows/src/Windows/Media/Devices/impl.rs +++ b/crates/libs/windows/src/Windows/Media/Devices/impl.rs @@ -37,7 +37,7 @@ impl IDefaultAudioDeviceChangedEventArgs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Media_Capture\"`, `\"Media_MediaProperties\"`"] @@ -98,6 +98,6 @@ impl IMediaDeviceController_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/Media/Devices/mod.rs b/crates/libs/windows/src/Windows/Media/Devices/mod.rs index 17ec867f28..99991ea199 100644 --- a/crates/libs/windows/src/Windows/Media/Devices/mod.rs +++ b/crates/libs/windows/src/Windows/Media/Devices/mod.rs @@ -1,16 +1,7 @@ #[cfg(feature = "Media_Devices_Core")] #[doc = "Required features: `\"Media_Devices_Core\"`"] pub mod Core; -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAdvancedPhotoCaptureSettings(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAdvancedPhotoCaptureSettings { - type Vtable = IAdvancedPhotoCaptureSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAdvancedPhotoCaptureSettings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x08f3863a_0018_445b_93d2_646d1c5ed05c); -} +::windows_core::imp::com_interface!(IAdvancedPhotoCaptureSettings, IAdvancedPhotoCaptureSettings_Vtbl, 0x08f3863a_0018_445b_93d2_646d1c5ed05c); #[repr(C)] #[doc(hidden)] pub struct IAdvancedPhotoCaptureSettings_Vtbl { @@ -18,16 +9,7 @@ pub struct IAdvancedPhotoCaptureSettings_Vtbl { pub Mode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut AdvancedPhotoMode) -> ::windows_core::HRESULT, pub SetMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: AdvancedPhotoMode) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAdvancedPhotoControl(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAdvancedPhotoControl { - type Vtable = IAdvancedPhotoControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAdvancedPhotoControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc5b15486_9001_4682_9309_68eae0080eec); -} +::windows_core::imp::com_interface!(IAdvancedPhotoControl, IAdvancedPhotoControl_Vtbl, 0xc5b15486_9001_4682_9309_68eae0080eec); #[repr(C)] #[doc(hidden)] pub struct IAdvancedPhotoControl_Vtbl { @@ -40,16 +22,7 @@ pub struct IAdvancedPhotoControl_Vtbl { pub Mode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut AdvancedPhotoMode) -> ::windows_core::HRESULT, pub Configure: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, settings: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAdvancedVideoCaptureDeviceController(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAdvancedVideoCaptureDeviceController { - type Vtable = IAdvancedVideoCaptureDeviceController_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAdvancedVideoCaptureDeviceController { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xde6ff4d3_2b96_4583_80ab_b5b01dc6a8d7); -} +::windows_core::imp::com_interface!(IAdvancedVideoCaptureDeviceController, IAdvancedVideoCaptureDeviceController_Vtbl, 0xde6ff4d3_2b96_4583_80ab_b5b01dc6a8d7); #[repr(C)] #[doc(hidden)] pub struct IAdvancedVideoCaptureDeviceController_Vtbl { @@ -57,32 +30,14 @@ pub struct IAdvancedVideoCaptureDeviceController_Vtbl { pub SetDeviceProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertyid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, propertyvalue: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeviceProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertyid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAdvancedVideoCaptureDeviceController10(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAdvancedVideoCaptureDeviceController10 { - type Vtable = IAdvancedVideoCaptureDeviceController10_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAdvancedVideoCaptureDeviceController10 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc621b82d_d6f0_5c1b_a388_a6e938407146); -} +::windows_core::imp::com_interface!(IAdvancedVideoCaptureDeviceController10, IAdvancedVideoCaptureDeviceController10_Vtbl, 0xc621b82d_d6f0_5c1b_a388_a6e938407146); #[repr(C)] #[doc(hidden)] pub struct IAdvancedVideoCaptureDeviceController10_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CameraOcclusionInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAdvancedVideoCaptureDeviceController11(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAdvancedVideoCaptureDeviceController11 { - type Vtable = IAdvancedVideoCaptureDeviceController11_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAdvancedVideoCaptureDeviceController11 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd5b65ae2_3772_580c_a630_e75de9106904); -} +::windows_core::imp::com_interface!(IAdvancedVideoCaptureDeviceController11, IAdvancedVideoCaptureDeviceController11_Vtbl, 0xd5b65ae2_3772_580c_a630_e75de9106904); #[repr(C)] #[doc(hidden)] pub struct IAdvancedVideoCaptureDeviceController11_Vtbl { @@ -92,16 +47,7 @@ pub struct IAdvancedVideoCaptureDeviceController11_Vtbl { #[cfg(not(feature = "Media_Capture"))] TryAcquireExclusiveControl: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAdvancedVideoCaptureDeviceController2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAdvancedVideoCaptureDeviceController2 { - type Vtable = IAdvancedVideoCaptureDeviceController2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAdvancedVideoCaptureDeviceController2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8bb94f8f_f11a_43db_b402_11930b80ae56); -} +::windows_core::imp::com_interface!(IAdvancedVideoCaptureDeviceController2, IAdvancedVideoCaptureDeviceController2_Vtbl, 0x8bb94f8f_f11a_43db_b402_11930b80ae56); #[repr(C)] #[doc(hidden)] pub struct IAdvancedVideoCaptureDeviceController2_Vtbl { @@ -120,16 +66,7 @@ pub struct IAdvancedVideoCaptureDeviceController2_Vtbl { pub PrimaryUse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut CaptureUse) -> ::windows_core::HRESULT, pub SetPrimaryUse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: CaptureUse) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAdvancedVideoCaptureDeviceController3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAdvancedVideoCaptureDeviceController3 { - type Vtable = IAdvancedVideoCaptureDeviceController3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAdvancedVideoCaptureDeviceController3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa98b8f34_ee0d_470c_b9f0_4229c4bbd089); -} +::windows_core::imp::com_interface!(IAdvancedVideoCaptureDeviceController3, IAdvancedVideoCaptureDeviceController3_Vtbl, 0xa98b8f34_ee0d_470c_b9f0_4229c4bbd089); #[repr(C)] #[doc(hidden)] pub struct IAdvancedVideoCaptureDeviceController3_Vtbl { @@ -141,16 +78,7 @@ pub struct IAdvancedVideoCaptureDeviceController3_Vtbl { pub PhotoConfirmationControl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ZoomControl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAdvancedVideoCaptureDeviceController4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAdvancedVideoCaptureDeviceController4 { - type Vtable = IAdvancedVideoCaptureDeviceController4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAdvancedVideoCaptureDeviceController4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xea9fbfaf_d371_41c3_9a17_824a87ebdfd2); -} +::windows_core::imp::com_interface!(IAdvancedVideoCaptureDeviceController4, IAdvancedVideoCaptureDeviceController4_Vtbl, 0xea9fbfaf_d371_41c3_9a17_824a87ebdfd2); #[repr(C)] #[doc(hidden)] pub struct IAdvancedVideoCaptureDeviceController4_Vtbl { @@ -162,16 +90,7 @@ pub struct IAdvancedVideoCaptureDeviceController4_Vtbl { pub OpticalImageStabilizationControl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub AdvancedPhotoControl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAdvancedVideoCaptureDeviceController5(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAdvancedVideoCaptureDeviceController5 { - type Vtable = IAdvancedVideoCaptureDeviceController5_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAdvancedVideoCaptureDeviceController5 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x33512b17_b9cb_4a23_b875_f9eaab535492); -} +::windows_core::imp::com_interface!(IAdvancedVideoCaptureDeviceController5, IAdvancedVideoCaptureDeviceController5_Vtbl, 0x33512b17_b9cb_4a23_b875_f9eaab535492); #[repr(C)] #[doc(hidden)] pub struct IAdvancedVideoCaptureDeviceController5_Vtbl { @@ -182,80 +101,35 @@ pub struct IAdvancedVideoCaptureDeviceController5_Vtbl { pub GetDevicePropertyByExtendedId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, extendedPropertyId_array_size: u32, extendedpropertyid: *const u8, maxpropertyvaluesize: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetDevicePropertyByExtendedId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, extendedPropertyId_array_size: u32, extendedpropertyid: *const u8, propertyValue_array_size: u32, propertyvalue: *const u8, result__: *mut VideoDeviceControllerSetDevicePropertyStatus) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAdvancedVideoCaptureDeviceController6(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAdvancedVideoCaptureDeviceController6 { - type Vtable = IAdvancedVideoCaptureDeviceController6_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAdvancedVideoCaptureDeviceController6 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb6563a53_68a1_44b7_9f89_b5fa97ac0cbe); -} +::windows_core::imp::com_interface!(IAdvancedVideoCaptureDeviceController6, IAdvancedVideoCaptureDeviceController6_Vtbl, 0xb6563a53_68a1_44b7_9f89_b5fa97ac0cbe); #[repr(C)] #[doc(hidden)] pub struct IAdvancedVideoCaptureDeviceController6_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub VideoTemporalDenoisingControl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAdvancedVideoCaptureDeviceController7(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAdvancedVideoCaptureDeviceController7 { - type Vtable = IAdvancedVideoCaptureDeviceController7_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAdvancedVideoCaptureDeviceController7 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8d2927f0_a054_50e7_b7df_7c04234d10f0); -} +::windows_core::imp::com_interface!(IAdvancedVideoCaptureDeviceController7, IAdvancedVideoCaptureDeviceController7_Vtbl, 0x8d2927f0_a054_50e7_b7df_7c04234d10f0); #[repr(C)] #[doc(hidden)] pub struct IAdvancedVideoCaptureDeviceController7_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub InfraredTorchControl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAdvancedVideoCaptureDeviceController8(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAdvancedVideoCaptureDeviceController8 { - type Vtable = IAdvancedVideoCaptureDeviceController8_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAdvancedVideoCaptureDeviceController8 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd843f010_e7fb_595b_9a78_0e54c4532b43); -} +::windows_core::imp::com_interface!(IAdvancedVideoCaptureDeviceController8, IAdvancedVideoCaptureDeviceController8_Vtbl, 0xd843f010_e7fb_595b_9a78_0e54c4532b43); #[repr(C)] #[doc(hidden)] pub struct IAdvancedVideoCaptureDeviceController8_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub PanelBasedOptimizationControl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAdvancedVideoCaptureDeviceController9(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAdvancedVideoCaptureDeviceController9 { - type Vtable = IAdvancedVideoCaptureDeviceController9_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAdvancedVideoCaptureDeviceController9 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8bdca95d_0255_51bc_a10d_5a169ec1625a); -} +::windows_core::imp::com_interface!(IAdvancedVideoCaptureDeviceController9, IAdvancedVideoCaptureDeviceController9_Vtbl, 0x8bdca95d_0255_51bc_a10d_5a169ec1625a); #[repr(C)] #[doc(hidden)] pub struct IAdvancedVideoCaptureDeviceController9_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub DigitalWindowControl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioDeviceController(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioDeviceController { - type Vtable = IAudioDeviceController_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioDeviceController { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xedd4a388_79c7_4f7c_90e8_ef934b21580a); -} +::windows_core::imp::com_interface!(IAudioDeviceController, IAudioDeviceController_Vtbl, 0xedd4a388_79c7_4f7c_90e8_ef934b21580a); #[repr(C)] #[doc(hidden)] pub struct IAudioDeviceController_Vtbl { @@ -265,16 +139,7 @@ pub struct IAudioDeviceController_Vtbl { pub SetVolumePercent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f32) -> ::windows_core::HRESULT, pub VolumePercent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioDeviceModule(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioDeviceModule { - type Vtable = IAudioDeviceModule_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioDeviceModule { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x86cfac36_47c1_4b33_9852_8773ec4be123); -} +::windows_core::imp::com_interface!(IAudioDeviceModule, IAudioDeviceModule_Vtbl, 0x86cfac36_47c1_4b33_9852_8773ec4be123); #[repr(C)] #[doc(hidden)] pub struct IAudioDeviceModule_Vtbl { @@ -289,16 +154,7 @@ pub struct IAudioDeviceModule_Vtbl { #[cfg(not(feature = "Storage_Streams"))] SendCommandAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioDeviceModuleNotificationEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioDeviceModuleNotificationEventArgs { - type Vtable = IAudioDeviceModuleNotificationEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioDeviceModuleNotificationEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe3e3ccaf_224c_48be_956b_9a13134e96e8); -} +::windows_core::imp::com_interface!(IAudioDeviceModuleNotificationEventArgs, IAudioDeviceModuleNotificationEventArgs_Vtbl, 0xe3e3ccaf_224c_48be_956b_9a13134e96e8); #[repr(C)] #[doc(hidden)] pub struct IAudioDeviceModuleNotificationEventArgs_Vtbl { @@ -309,16 +165,7 @@ pub struct IAudioDeviceModuleNotificationEventArgs_Vtbl { #[cfg(not(feature = "Storage_Streams"))] NotificationData: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioDeviceModulesManager(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioDeviceModulesManager { - type Vtable = IAudioDeviceModulesManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioDeviceModulesManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6aa40c4d_960a_4d1c_b318_0022604547ed); -} +::windows_core::imp::com_interface!(IAudioDeviceModulesManager, IAudioDeviceModulesManager_Vtbl, 0x6aa40c4d_960a_4d1c_b318_0022604547ed); #[repr(C)] #[doc(hidden)] pub struct IAudioDeviceModulesManager_Vtbl { @@ -334,32 +181,14 @@ pub struct IAudioDeviceModulesManager_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] FindAll: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioDeviceModulesManagerFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioDeviceModulesManagerFactory { - type Vtable = IAudioDeviceModulesManagerFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioDeviceModulesManagerFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8db03670_e64d_4773_96c0_bc7ebf0e063f); -} +::windows_core::imp::com_interface!(IAudioDeviceModulesManagerFactory, IAudioDeviceModulesManagerFactory_Vtbl, 0x8db03670_e64d_4773_96c0_bc7ebf0e063f); #[repr(C)] #[doc(hidden)] pub struct IAudioDeviceModulesManagerFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, deviceid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICallControl(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICallControl { - type Vtable = ICallControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICallControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa520d0d6_ae8d_45db_8011_ca49d3b3e578); -} +::windows_core::imp::com_interface!(ICallControl, ICallControl_Vtbl, 0xa520d0d6_ae8d_45db_8011_ca49d3b3e578); #[repr(C)] #[doc(hidden)] pub struct ICallControl_Vtbl { @@ -382,16 +211,7 @@ pub struct ICallControl_Vtbl { pub AudioTransferRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveAudioTransferRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICallControlStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICallControlStatics { - type Vtable = ICallControlStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICallControlStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x03945ad5_85ab_40e1_af19_56c94303b019); -} +::windows_core::imp::com_interface!(ICallControlStatics, ICallControlStatics_Vtbl, 0x03945ad5_85ab_40e1_af19_56c94303b019); #[repr(C)] #[doc(hidden)] pub struct ICallControlStatics_Vtbl { @@ -399,16 +219,7 @@ pub struct ICallControlStatics_Vtbl { pub GetDefault: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub FromId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, deviceid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICameraOcclusionInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICameraOcclusionInfo { - type Vtable = ICameraOcclusionInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICameraOcclusionInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaf6c4ad0_a84d_5db6_be58_a5da21cfe011); -} +::windows_core::imp::com_interface!(ICameraOcclusionInfo, ICameraOcclusionInfo_Vtbl, 0xaf6c4ad0_a84d_5db6_be58_a5da21cfe011); #[repr(C)] #[doc(hidden)] pub struct ICameraOcclusionInfo_Vtbl { @@ -418,16 +229,7 @@ pub struct ICameraOcclusionInfo_Vtbl { pub StateChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveStateChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICameraOcclusionState(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICameraOcclusionState { - type Vtable = ICameraOcclusionState_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICameraOcclusionState { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x430adeb8_6842_5e55_9bde_04b4ef3a8a57); -} +::windows_core::imp::com_interface!(ICameraOcclusionState, ICameraOcclusionState_Vtbl, 0x430adeb8_6842_5e55_9bde_04b4ef3a8a57); #[repr(C)] #[doc(hidden)] pub struct ICameraOcclusionState_Vtbl { @@ -435,25 +237,15 @@ pub struct ICameraOcclusionState_Vtbl { pub IsOccluded: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub IsOcclusionKind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, occlusionkind: CameraOcclusionKind, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICameraOcclusionStateChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICameraOcclusionStateChangedEventArgs { - type Vtable = ICameraOcclusionStateChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICameraOcclusionStateChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8512d848_c0de_57ca_a1ca_fb2c3d23df55); -} +::windows_core::imp::com_interface!(ICameraOcclusionStateChangedEventArgs, ICameraOcclusionStateChangedEventArgs_Vtbl, 0x8512d848_c0de_57ca_a1ca_fb2c3d23df55); #[repr(C)] #[doc(hidden)] pub struct ICameraOcclusionStateChangedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub State: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDefaultAudioDeviceChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDefaultAudioDeviceChangedEventArgs, IDefaultAudioDeviceChangedEventArgs_Vtbl, 0x110f882f_1c05_4657_a18e_47c9b69f07ab); +::windows_core::imp::interface_hierarchy!(IDefaultAudioDeviceChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IDefaultAudioDeviceChangedEventArgs { pub fn Id(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -470,16 +262,9 @@ impl IDefaultAudioDeviceChangedEventArgs { } } } -::windows_core::imp::interface_hierarchy!(IDefaultAudioDeviceChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IDefaultAudioDeviceChangedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IDefaultAudioDeviceChangedEventArgs { - type Vtable = IDefaultAudioDeviceChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDefaultAudioDeviceChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x110f882f_1c05_4657_a18e_47c9b69f07ab); -} #[repr(C)] #[doc(hidden)] pub struct IDefaultAudioDeviceChangedEventArgs_Vtbl { @@ -487,16 +272,7 @@ pub struct IDefaultAudioDeviceChangedEventArgs_Vtbl { pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Role: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut AudioDeviceRole) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDialRequestedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDialRequestedEventArgs { - type Vtable = IDialRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDialRequestedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x037b929e_953c_4286_8866_4f0f376c855a); -} +::windows_core::imp::com_interface!(IDialRequestedEventArgs, IDialRequestedEventArgs_Vtbl, 0x037b929e_953c_4286_8866_4f0f376c855a); #[repr(C)] #[doc(hidden)] pub struct IDialRequestedEventArgs_Vtbl { @@ -504,16 +280,7 @@ pub struct IDialRequestedEventArgs_Vtbl { pub Handled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Contact: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDigitalWindowBounds(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDigitalWindowBounds { - type Vtable = IDigitalWindowBounds_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDigitalWindowBounds { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdd4f21dd_d173_5c6b_8c25_bdd26d5122b1); -} +::windows_core::imp::com_interface!(IDigitalWindowBounds, IDigitalWindowBounds_Vtbl, 0xdd4f21dd_d173_5c6b_8c25_bdd26d5122b1); #[repr(C)] #[doc(hidden)] pub struct IDigitalWindowBounds_Vtbl { @@ -525,16 +292,7 @@ pub struct IDigitalWindowBounds_Vtbl { pub Scale: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows_core::HRESULT, pub SetScale: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f64) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDigitalWindowCapability(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDigitalWindowCapability { - type Vtable = IDigitalWindowCapability_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDigitalWindowCapability { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd78bad2c_f721_5244_a196_b56ccbec606c); -} +::windows_core::imp::com_interface!(IDigitalWindowCapability, IDigitalWindowCapability_Vtbl, 0xd78bad2c_f721_5244_a196_b56ccbec606c); #[repr(C)] #[doc(hidden)] pub struct IDigitalWindowCapability_Vtbl { @@ -546,16 +304,7 @@ pub struct IDigitalWindowCapability_Vtbl { pub MinScaleValueWithoutUpsampling: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows_core::HRESULT, pub NormalizedFieldOfViewLimit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::Rect) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDigitalWindowControl(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDigitalWindowControl { - type Vtable = IDigitalWindowControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDigitalWindowControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x23b69eff_65d2_53ea_8780_de582b48b544); -} +::windows_core::imp::com_interface!(IDigitalWindowControl, IDigitalWindowControl_Vtbl, 0x23b69eff_65d2_53ea_8780_de582b48b544); #[repr(C)] #[doc(hidden)] pub struct IDigitalWindowControl_Vtbl { @@ -572,16 +321,7 @@ pub struct IDigitalWindowControl_Vtbl { SupportedCapabilities: usize, pub GetCapabilityForSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, width: i32, height: i32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IExposureCompensationControl(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IExposureCompensationControl { - type Vtable = IExposureCompensationControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IExposureCompensationControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x81c8e834_dcec_4011_a610_1f3847e64aca); -} +::windows_core::imp::com_interface!(IExposureCompensationControl, IExposureCompensationControl_Vtbl, 0x81c8e834_dcec_4011_a610_1f3847e64aca); #[repr(C)] #[doc(hidden)] pub struct IExposureCompensationControl_Vtbl { @@ -593,16 +333,7 @@ pub struct IExposureCompensationControl_Vtbl { pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows_core::HRESULT, pub SetValueAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IExposureControl(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IExposureControl { - type Vtable = IExposureControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IExposureControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x09e8cbe2_ad96_4f28_a0e0_96ed7e1b5fd2); -} +::windows_core::imp::com_interface!(IExposureControl, IExposureControl_Vtbl, 0x09e8cbe2_ad96_4f28_a0e0_96ed7e1b5fd2); #[repr(C)] #[doc(hidden)] pub struct IExposureControl_Vtbl { @@ -616,16 +347,7 @@ pub struct IExposureControl_Vtbl { pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::TimeSpan) -> ::windows_core::HRESULT, pub SetValueAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, shutterduration: super::super::Foundation::TimeSpan, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IExposurePriorityVideoControl(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IExposurePriorityVideoControl { - type Vtable = IExposurePriorityVideoControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IExposurePriorityVideoControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2cb240a3_5168_4271_9ea5_47621a98a352); -} +::windows_core::imp::com_interface!(IExposurePriorityVideoControl, IExposurePriorityVideoControl_Vtbl, 0x2cb240a3_5168_4271_9ea5_47621a98a352); #[repr(C)] #[doc(hidden)] pub struct IExposurePriorityVideoControl_Vtbl { @@ -634,16 +356,7 @@ pub struct IExposurePriorityVideoControl_Vtbl { pub Enabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFlashControl(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFlashControl { - type Vtable = IFlashControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFlashControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdef41dbe_7d68_45e3_8c0f_be7bb32837d0); -} +::windows_core::imp::com_interface!(IFlashControl, IFlashControl_Vtbl, 0xdef41dbe_7d68_45e3_8c0f_be7bb32837d0); #[repr(C)] #[doc(hidden)] pub struct IFlashControl_Vtbl { @@ -660,16 +373,7 @@ pub struct IFlashControl_Vtbl { pub PowerPercent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows_core::HRESULT, pub SetPowerPercent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFlashControl2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFlashControl2 { - type Vtable = IFlashControl2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFlashControl2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7d29cc9e_75e1_4af7_bd7d_4e38e1c06cd6); -} +::windows_core::imp::com_interface!(IFlashControl2, IFlashControl2_Vtbl, 0x7d29cc9e_75e1_4af7_bd7d_4e38e1c06cd6); #[repr(C)] #[doc(hidden)] pub struct IFlashControl2_Vtbl { @@ -678,16 +382,7 @@ pub struct IFlashControl2_Vtbl { pub AssistantLightEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetAssistantLightEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFocusControl(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFocusControl { - type Vtable = IFocusControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFocusControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc0d889f6_5228_4453_b153_85606592b238); -} +::windows_core::imp::com_interface!(IFocusControl, IFocusControl_Vtbl, 0xc0d889f6_5228_4453_b153_85606592b238); #[repr(C)] #[doc(hidden)] pub struct IFocusControl_Vtbl { @@ -707,16 +402,7 @@ pub struct IFocusControl_Vtbl { pub SetValueAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, focus: u32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub FocusAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFocusControl2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFocusControl2 { - type Vtable = IFocusControl2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFocusControl2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3f7cff48_c534_4e9e_94c3_52ef2afd5d07); -} +::windows_core::imp::com_interface!(IFocusControl2, IFocusControl2_Vtbl, 0x3f7cff48_c534_4e9e_94c3_52ef2afd5d07); #[repr(C)] #[doc(hidden)] pub struct IFocusControl2_Vtbl { @@ -741,16 +427,7 @@ pub struct IFocusControl2_Vtbl { pub LockAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Configure: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, settings: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFocusSettings(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFocusSettings { - type Vtable = IFocusSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFocusSettings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x79958f6b_3263_4275_85d6_aeae891c96ee); -} +::windows_core::imp::com_interface!(IFocusSettings, IFocusSettings_Vtbl, 0x79958f6b_3263_4275_85d6_aeae891c96ee); #[repr(C)] #[doc(hidden)] pub struct IFocusSettings_Vtbl { @@ -768,16 +445,7 @@ pub struct IFocusSettings_Vtbl { pub DisableDriverFallback: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetDisableDriverFallback: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHdrVideoControl(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHdrVideoControl { - type Vtable = IHdrVideoControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHdrVideoControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x55d8e2d0_30c0_43bf_9b9a_9799d70ced94); -} +::windows_core::imp::com_interface!(IHdrVideoControl, IHdrVideoControl_Vtbl, 0x55d8e2d0_30c0_43bf_9b9a_9799d70ced94); #[repr(C)] #[doc(hidden)] pub struct IHdrVideoControl_Vtbl { @@ -790,16 +458,7 @@ pub struct IHdrVideoControl_Vtbl { pub Mode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut HdrVideoMode) -> ::windows_core::HRESULT, pub SetMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: HdrVideoMode) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInfraredTorchControl(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInfraredTorchControl { - type Vtable = IInfraredTorchControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInfraredTorchControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1cba2c83_6cb6_5a04_a6fc_3be7b33ff056); -} +::windows_core::imp::com_interface!(IInfraredTorchControl, IInfraredTorchControl_Vtbl, 0x1cba2c83_6cb6_5a04_a6fc_3be7b33ff056); #[repr(C)] #[doc(hidden)] pub struct IInfraredTorchControl_Vtbl { @@ -817,16 +476,7 @@ pub struct IInfraredTorchControl_Vtbl { pub Power: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows_core::HRESULT, pub SetPower: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIsoSpeedControl(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIsoSpeedControl { - type Vtable = IIsoSpeedControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIsoSpeedControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x27b6c322_25ad_4f1b_aaab_524ab376ca33); -} +::windows_core::imp::com_interface!(IIsoSpeedControl, IIsoSpeedControl_Vtbl, 0x27b6c322_25ad_4f1b_aaab_524ab376ca33); #[repr(C)] #[doc(hidden)] pub struct IIsoSpeedControl_Vtbl { @@ -845,16 +495,7 @@ pub struct IIsoSpeedControl_Vtbl { #[cfg(not(feature = "deprecated"))] SetPresetAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIsoSpeedControl2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIsoSpeedControl2 { - type Vtable = IIsoSpeedControl2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIsoSpeedControl2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6f1578f2_6d77_4f8a_8c2f_6130b6395053); -} +::windows_core::imp::com_interface!(IIsoSpeedControl2, IIsoSpeedControl2_Vtbl, 0x6f1578f2_6d77_4f8a_8c2f_6130b6395053); #[repr(C)] #[doc(hidden)] pub struct IIsoSpeedControl2_Vtbl { @@ -867,32 +508,14 @@ pub struct IIsoSpeedControl2_Vtbl { pub Auto: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetAutoAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKeypadPressedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKeypadPressedEventArgs { - type Vtable = IKeypadPressedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKeypadPressedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd3a43900_b4fa_49cd_9442_89af6568f601); -} +::windows_core::imp::com_interface!(IKeypadPressedEventArgs, IKeypadPressedEventArgs_Vtbl, 0xd3a43900_b4fa_49cd_9442_89af6568f601); #[repr(C)] #[doc(hidden)] pub struct IKeypadPressedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub TelephonyKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut TelephonyKey) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILowLagPhotoControl(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILowLagPhotoControl { - type Vtable = ILowLagPhotoControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILowLagPhotoControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6d5c4dd0_fadf_415d_aee6_3baa529300c9); -} +::windows_core::imp::com_interface!(ILowLagPhotoControl, ILowLagPhotoControl_Vtbl, 0x6d5c4dd0_fadf_415d_aee6_3baa529300c9); #[repr(C)] #[doc(hidden)] pub struct ILowLagPhotoControl_Vtbl { @@ -919,16 +542,7 @@ pub struct ILowLagPhotoControl_Vtbl { pub SetDesiredThumbnailSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: u32) -> ::windows_core::HRESULT, pub HardwareAcceleratedThumbnailSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILowLagPhotoSequenceControl(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILowLagPhotoSequenceControl { - type Vtable = ILowLagPhotoSequenceControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILowLagPhotoSequenceControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3dcf909d_6d16_409c_bafe_b9a594c6fde6); -} +::windows_core::imp::com_interface!(ILowLagPhotoSequenceControl, ILowLagPhotoSequenceControl_Vtbl, 0x3dcf909d_6d16_409c_bafe_b9a594c6fde6); #[repr(C)] #[doc(hidden)] pub struct ILowLagPhotoSequenceControl_Vtbl { @@ -962,16 +576,7 @@ pub struct ILowLagPhotoSequenceControl_Vtbl { pub SetDesiredThumbnailSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: u32) -> ::windows_core::HRESULT, pub HardwareAcceleratedThumbnailSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaDeviceControl(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaDeviceControl { - type Vtable = IMediaDeviceControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaDeviceControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xefa8dfa9_6f75_4863_ba0b_583f3036b4de); -} +::windows_core::imp::com_interface!(IMediaDeviceControl, IMediaDeviceControl_Vtbl, 0xefa8dfa9_6f75_4863_ba0b_583f3036b4de); #[repr(C)] #[doc(hidden)] pub struct IMediaDeviceControl_Vtbl { @@ -982,16 +587,7 @@ pub struct IMediaDeviceControl_Vtbl { pub TryGetAuto: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut bool, result__: *mut bool) -> ::windows_core::HRESULT, pub TrySetAuto: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaDeviceControlCapabilities(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaDeviceControlCapabilities { - type Vtable = IMediaDeviceControlCapabilities_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaDeviceControlCapabilities { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x23005816_eb85_43e2_b92b_8240d5ee70ec); -} +::windows_core::imp::com_interface!(IMediaDeviceControlCapabilities, IMediaDeviceControlCapabilities_Vtbl, 0x23005816_eb85_43e2_b92b_8240d5ee70ec); #[repr(C)] #[doc(hidden)] pub struct IMediaDeviceControlCapabilities_Vtbl { @@ -1003,9 +599,8 @@ pub struct IMediaDeviceControlCapabilities_Vtbl { pub Default: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows_core::HRESULT, pub AutoModeSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaDeviceController(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMediaDeviceController, IMediaDeviceController_Vtbl, 0xf6f8f5ce_209a_48fb_86fc_d44578f317e6); +::windows_core::imp::interface_hierarchy!(IMediaDeviceController, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IMediaDeviceController { #[doc = "Required features: `\"Foundation_Collections\"`, `\"Media_Capture\"`, `\"Media_MediaProperties\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Media_Capture", feature = "Media_MediaProperties"))] @@ -1029,25 +624,18 @@ 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::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).SetMediaStreamPropertiesAsync)(::windows_core::Interface::as_raw(this), mediastreamtype, mediaencodingproperties.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SetMediaStreamPropertiesAsync)(::windows_core::Interface::as_raw(this), mediastreamtype, mediaencodingproperties.into_param().abi(), &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(IMediaDeviceController, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IMediaDeviceController { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IMediaDeviceController { - type Vtable = IMediaDeviceController_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaDeviceController { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf6f8f5ce_209a_48fb_86fc_d44578f317e6); -} #[repr(C)] #[doc(hidden)] pub struct IMediaDeviceController_Vtbl { @@ -1065,16 +653,7 @@ pub struct IMediaDeviceController_Vtbl { #[cfg(not(all(feature = "Media_Capture", feature = "Media_MediaProperties")))] SetMediaStreamPropertiesAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaDeviceStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaDeviceStatics { - type Vtable = IMediaDeviceStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaDeviceStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaa2d9a40_909f_4bba_bf8b_0c0d296f14f0); -} +::windows_core::imp::com_interface!(IMediaDeviceStatics, IMediaDeviceStatics_Vtbl, 0xaa2d9a40_909f_4bba_bf8b_0c0d296f14f0); #[repr(C)] #[doc(hidden)] pub struct IMediaDeviceStatics_Vtbl { @@ -1089,16 +668,7 @@ pub struct IMediaDeviceStatics_Vtbl { pub DefaultAudioRenderDeviceChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveDefaultAudioRenderDeviceChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IModuleCommandResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IModuleCommandResult { - type Vtable = IModuleCommandResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IModuleCommandResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x520d1eb4_1374_4c7d_b1e4_39dcdf3eae4e); -} +::windows_core::imp::com_interface!(IModuleCommandResult, IModuleCommandResult_Vtbl, 0x520d1eb4_1374_4c7d_b1e4_39dcdf3eae4e); #[repr(C)] #[doc(hidden)] pub struct IModuleCommandResult_Vtbl { @@ -1109,16 +679,7 @@ pub struct IModuleCommandResult_Vtbl { #[cfg(not(feature = "Storage_Streams"))] Result: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOpticalImageStabilizationControl(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOpticalImageStabilizationControl { - type Vtable = IOpticalImageStabilizationControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOpticalImageStabilizationControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbfad9c1d_00bc_423b_8eb2_a0178ca94247); -} +::windows_core::imp::com_interface!(IOpticalImageStabilizationControl, IOpticalImageStabilizationControl_Vtbl, 0xbfad9c1d_00bc_423b_8eb2_a0178ca94247); #[repr(C)] #[doc(hidden)] pub struct IOpticalImageStabilizationControl_Vtbl { @@ -1131,16 +692,7 @@ pub struct IOpticalImageStabilizationControl_Vtbl { pub Mode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut OpticalImageStabilizationMode) -> ::windows_core::HRESULT, pub SetMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: OpticalImageStabilizationMode) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPanelBasedOptimizationControl(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPanelBasedOptimizationControl { - type Vtable = IPanelBasedOptimizationControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPanelBasedOptimizationControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x33323223_6247_5419_a5a4_3d808645d917); -} +::windows_core::imp::com_interface!(IPanelBasedOptimizationControl, IPanelBasedOptimizationControl_Vtbl, 0x33323223_6247_5419_a5a4_3d808645d917); #[repr(C)] #[doc(hidden)] pub struct IPanelBasedOptimizationControl_Vtbl { @@ -1155,16 +707,7 @@ pub struct IPanelBasedOptimizationControl_Vtbl { #[cfg(not(feature = "Devices_Enumeration"))] SetPanel: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhotoConfirmationControl(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhotoConfirmationControl { - type Vtable = IPhotoConfirmationControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhotoConfirmationControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc8f3f363_ff5e_4582_a9a8_0550f85a4a76); -} +::windows_core::imp::com_interface!(IPhotoConfirmationControl, IPhotoConfirmationControl_Vtbl, 0xc8f3f363_ff5e_4582_a9a8_0550f85a4a76); #[repr(C)] #[doc(hidden)] pub struct IPhotoConfirmationControl_Vtbl { @@ -1181,32 +724,14 @@ pub struct IPhotoConfirmationControl_Vtbl { #[cfg(not(feature = "Media_MediaProperties"))] SetPixelFormat: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRedialRequestedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRedialRequestedEventArgs { - type Vtable = IRedialRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRedialRequestedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7eb55209_76ab_4c31_b40e_4b58379d580c); -} +::windows_core::imp::com_interface!(IRedialRequestedEventArgs, IRedialRequestedEventArgs_Vtbl, 0x7eb55209_76ab_4c31_b40e_4b58379d580c); #[repr(C)] #[doc(hidden)] pub struct IRedialRequestedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Handled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRegionOfInterest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRegionOfInterest { - type Vtable = IRegionOfInterest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRegionOfInterest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe5ecc834_ce66_4e05_a78f_cf391a5ec2d1); -} +::windows_core::imp::com_interface!(IRegionOfInterest, IRegionOfInterest_Vtbl, 0xe5ecc834_ce66_4e05_a78f_cf391a5ec2d1); #[repr(C)] #[doc(hidden)] pub struct IRegionOfInterest_Vtbl { @@ -1220,16 +745,7 @@ pub struct IRegionOfInterest_Vtbl { pub Bounds: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::Rect) -> ::windows_core::HRESULT, pub SetBounds: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::Foundation::Rect) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRegionOfInterest2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRegionOfInterest2 { - type Vtable = IRegionOfInterest2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRegionOfInterest2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x19fe2a91_73aa_4d51_8a9d_56ccf7db7f54); -} +::windows_core::imp::com_interface!(IRegionOfInterest2, IRegionOfInterest2_Vtbl, 0x19fe2a91_73aa_4d51_8a9d_56ccf7db7f54); #[repr(C)] #[doc(hidden)] pub struct IRegionOfInterest2_Vtbl { @@ -1241,16 +757,7 @@ pub struct IRegionOfInterest2_Vtbl { pub Weight: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, pub SetWeight: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRegionsOfInterestControl(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRegionsOfInterestControl { - type Vtable = IRegionsOfInterestControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRegionsOfInterestControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc323f527_ab0b_4558_8b5b_df5693db0378); -} +::windows_core::imp::com_interface!(IRegionsOfInterestControl, IRegionsOfInterestControl_Vtbl, 0xc323f527_ab0b_4558_8b5b_df5693db0378); #[repr(C)] #[doc(hidden)] pub struct IRegionsOfInterestControl_Vtbl { @@ -1269,16 +776,7 @@ pub struct IRegionsOfInterestControl_Vtbl { pub AutoWhiteBalanceSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub AutoExposureSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISceneModeControl(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISceneModeControl { - type Vtable = ISceneModeControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISceneModeControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd48e5af7_8d59_4854_8c62_12c70ba89b7c); -} +::windows_core::imp::com_interface!(ISceneModeControl, ISceneModeControl_Vtbl, 0xd48e5af7_8d59_4854_8c62_12c70ba89b7c); #[repr(C)] #[doc(hidden)] pub struct ISceneModeControl_Vtbl { @@ -1290,16 +788,7 @@ pub struct ISceneModeControl_Vtbl { pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut CaptureSceneMode) -> ::windows_core::HRESULT, pub SetValueAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, scenemode: CaptureSceneMode, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITorchControl(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITorchControl { - type Vtable = ITorchControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITorchControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa6053665_8250_416c_919a_724296afa306); -} +::windows_core::imp::com_interface!(ITorchControl, ITorchControl_Vtbl, 0xa6053665_8250_416c_919a_724296afa306); #[repr(C)] #[doc(hidden)] pub struct ITorchControl_Vtbl { @@ -1311,16 +800,7 @@ pub struct ITorchControl_Vtbl { pub PowerPercent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows_core::HRESULT, pub SetPowerPercent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVideoDeviceController(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVideoDeviceController { - type Vtable = IVideoDeviceController_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVideoDeviceController { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x99555575_2e2e_40b8_b6c7_f82d10013210); -} +::windows_core::imp::com_interface!(IVideoDeviceController, IVideoDeviceController_Vtbl, 0x99555575_2e2e_40b8_b6c7_f82d10013210); #[repr(C)] #[doc(hidden)] pub struct IVideoDeviceController_Vtbl { @@ -1345,16 +825,7 @@ pub struct IVideoDeviceController_Vtbl { #[cfg(not(feature = "Media_Capture"))] TryGetPowerlineFrequency: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVideoDeviceControllerGetDevicePropertyResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVideoDeviceControllerGetDevicePropertyResult { - type Vtable = IVideoDeviceControllerGetDevicePropertyResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVideoDeviceControllerGetDevicePropertyResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc5d88395_6ed5_4790_8b5d_0ef13935d0f8); -} +::windows_core::imp::com_interface!(IVideoDeviceControllerGetDevicePropertyResult, IVideoDeviceControllerGetDevicePropertyResult_Vtbl, 0xc5d88395_6ed5_4790_8b5d_0ef13935d0f8); #[repr(C)] #[doc(hidden)] pub struct IVideoDeviceControllerGetDevicePropertyResult_Vtbl { @@ -1362,16 +833,7 @@ pub struct IVideoDeviceControllerGetDevicePropertyResult_Vtbl { pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut VideoDeviceControllerGetDevicePropertyStatus) -> ::windows_core::HRESULT, pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVideoTemporalDenoisingControl(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVideoTemporalDenoisingControl { - type Vtable = IVideoTemporalDenoisingControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVideoTemporalDenoisingControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7ab34735_3e2a_4a32_baff_4358c4fbdd57); -} +::windows_core::imp::com_interface!(IVideoTemporalDenoisingControl, IVideoTemporalDenoisingControl_Vtbl, 0x7ab34735_3e2a_4a32_baff_4358c4fbdd57); #[repr(C)] #[doc(hidden)] pub struct IVideoTemporalDenoisingControl_Vtbl { @@ -1384,16 +846,7 @@ pub struct IVideoTemporalDenoisingControl_Vtbl { pub Mode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut VideoTemporalDenoisingMode) -> ::windows_core::HRESULT, pub SetMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: VideoTemporalDenoisingMode) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWhiteBalanceControl(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWhiteBalanceControl { - type Vtable = IWhiteBalanceControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWhiteBalanceControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x781f047e_7162_49c8_a8f9_9481c565363e); -} +::windows_core::imp::com_interface!(IWhiteBalanceControl, IWhiteBalanceControl_Vtbl, 0x781f047e_7162_49c8_a8f9_9481c565363e); #[repr(C)] #[doc(hidden)] pub struct IWhiteBalanceControl_Vtbl { @@ -1407,16 +860,7 @@ pub struct IWhiteBalanceControl_Vtbl { pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, pub SetValueAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, temperature: u32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IZoomControl(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IZoomControl { - type Vtable = IZoomControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IZoomControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3a1e0b12_32da_4c17_bfd7_8d0c73c8f5a5); -} +::windows_core::imp::com_interface!(IZoomControl, IZoomControl_Vtbl, 0x3a1e0b12_32da_4c17_bfd7_8d0c73c8f5a5); #[repr(C)] #[doc(hidden)] pub struct IZoomControl_Vtbl { @@ -1428,16 +872,7 @@ pub struct IZoomControl_Vtbl { pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows_core::HRESULT, pub SetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IZoomControl2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IZoomControl2 { - type Vtable = IZoomControl2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IZoomControl2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x69843db0_2e99_4641_8529_184f319d1671); -} +::windows_core::imp::com_interface!(IZoomControl2, IZoomControl2_Vtbl, 0x69843db0_2e99_4641_8529_184f319d1671); #[repr(C)] #[doc(hidden)] pub struct IZoomControl2_Vtbl { @@ -1449,16 +884,7 @@ pub struct IZoomControl2_Vtbl { pub Mode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ZoomTransitionMode) -> ::windows_core::HRESULT, pub Configure: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, settings: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IZoomSettings(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IZoomSettings { - type Vtable = IZoomSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IZoomSettings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6ad66b24_14b4_4bfd_b18f_88fe24463b52); -} +::windows_core::imp::com_interface!(IZoomSettings, IZoomSettings_Vtbl, 0x6ad66b24_14b4_4bfd_b18f_88fe24463b52); #[repr(C)] #[doc(hidden)] pub struct IZoomSettings_Vtbl { @@ -1471,6 +897,7 @@ pub struct IZoomSettings_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AdvancedPhotoCaptureSettings(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AdvancedPhotoCaptureSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AdvancedPhotoCaptureSettings { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1496,19 +923,17 @@ impl ::windows_core::RuntimeType for AdvancedPhotoCaptureSettings { } unsafe impl ::windows_core::Interface for AdvancedPhotoCaptureSettings { type Vtable = IAdvancedPhotoCaptureSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AdvancedPhotoCaptureSettings { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AdvancedPhotoCaptureSettings { const NAME: &'static str = "Windows.Media.Devices.AdvancedPhotoCaptureSettings"; } -::windows_core::imp::interface_hierarchy!(AdvancedPhotoCaptureSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AdvancedPhotoCaptureSettings {} unsafe impl ::core::marker::Sync for AdvancedPhotoCaptureSettings {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AdvancedPhotoControl(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AdvancedPhotoControl, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AdvancedPhotoControl { pub fn Supported(&self) -> ::windows_core::Result { let this = self; @@ -1546,19 +971,18 @@ impl ::windows_core::RuntimeType for AdvancedPhotoControl { } unsafe impl ::windows_core::Interface for AdvancedPhotoControl { type Vtable = IAdvancedPhotoControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AdvancedPhotoControl { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AdvancedPhotoControl { const NAME: &'static str = "Windows.Media.Devices.AdvancedPhotoControl"; } -::windows_core::imp::interface_hierarchy!(AdvancedPhotoControl, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AdvancedPhotoControl {} unsafe impl ::core::marker::Sync for AdvancedPhotoControl {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AudioDeviceController(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AudioDeviceController, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(AudioDeviceController, IMediaDeviceController); impl AudioDeviceController { pub fn SetMuted(&self, value: bool) -> ::windows_core::Result<()> { let this = self; @@ -1585,7 +1009,7 @@ impl AudioDeviceController { #[doc = "Required features: `\"Foundation_Collections\"`, `\"Media_Capture\"`, `\"Media_MediaProperties\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Media_Capture", feature = "Media_MediaProperties"))] pub fn GetAvailableMediaStreamProperties(&self, mediastreamtype: super::Capture::MediaStreamType) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetAvailableMediaStreamProperties)(::windows_core::Interface::as_raw(this), mediastreamtype, &mut result__).from_abi(result__) @@ -1594,7 +1018,7 @@ impl AudioDeviceController { #[doc = "Required features: `\"Media_Capture\"`, `\"Media_MediaProperties\"`"] #[cfg(all(feature = "Media_Capture", feature = "Media_MediaProperties"))] pub fn GetMediaStreamProperties(&self, mediastreamtype: super::Capture::MediaStreamType) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetMediaStreamProperties)(::windows_core::Interface::as_raw(this), mediastreamtype, &mut result__).from_abi(result__) @@ -1604,12 +1028,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::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SetMediaStreamPropertiesAsync)(::windows_core::Interface::as_raw(this), mediastreamtype, mediaencodingproperties.into_param().abi(), &mut result__).from_abi(result__) } } } @@ -1618,18 +1042,15 @@ impl ::windows_core::RuntimeType for AudioDeviceController { } unsafe impl ::windows_core::Interface for AudioDeviceController { type Vtable = IAudioDeviceController_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AudioDeviceController { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AudioDeviceController { const NAME: &'static str = "Windows.Media.Devices.AudioDeviceController"; } -::windows_core::imp::interface_hierarchy!(AudioDeviceController, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for AudioDeviceController {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AudioDeviceModule(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AudioDeviceModule, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AudioDeviceModule { pub fn ClassId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1670,12 +1091,12 @@ impl AudioDeviceModule { #[cfg(feature = "Storage_Streams")] pub fn SendCommandAsync(&self, command: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).SendCommandAsync)(::windows_core::Interface::as_raw(this), command.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SendCommandAsync)(::windows_core::Interface::as_raw(this), command.into_param().abi(), &mut result__).from_abi(result__) } } } @@ -1684,17 +1105,15 @@ impl ::windows_core::RuntimeType for AudioDeviceModule { } unsafe impl ::windows_core::Interface for AudioDeviceModule { type Vtable = IAudioDeviceModule_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AudioDeviceModule { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AudioDeviceModule { const NAME: &'static str = "Windows.Media.Devices.AudioDeviceModule"; } -::windows_core::imp::interface_hierarchy!(AudioDeviceModule, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AudioDeviceModuleNotificationEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AudioDeviceModuleNotificationEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AudioDeviceModuleNotificationEventArgs { pub fn Module(&self) -> ::windows_core::Result { let this = self; @@ -1718,19 +1137,17 @@ impl ::windows_core::RuntimeType for AudioDeviceModuleNotificationEventArgs { } unsafe impl ::windows_core::Interface for AudioDeviceModuleNotificationEventArgs { type Vtable = IAudioDeviceModuleNotificationEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AudioDeviceModuleNotificationEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AudioDeviceModuleNotificationEventArgs { const NAME: &'static str = "Windows.Media.Devices.AudioDeviceModuleNotificationEventArgs"; } -::windows_core::imp::interface_hierarchy!(AudioDeviceModuleNotificationEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AudioDeviceModuleNotificationEventArgs {} unsafe impl ::core::marker::Sync for AudioDeviceModuleNotificationEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AudioDeviceModulesManager(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AudioDeviceModulesManager, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AudioDeviceModulesManager { pub fn ModuleNotificationReceived(&self, handler: P0) -> ::windows_core::Result where @@ -1781,19 +1198,17 @@ impl ::windows_core::RuntimeType for AudioDeviceModulesManager { } unsafe impl ::windows_core::Interface for AudioDeviceModulesManager { type Vtable = IAudioDeviceModulesManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AudioDeviceModulesManager { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AudioDeviceModulesManager { const NAME: &'static str = "Windows.Media.Devices.AudioDeviceModulesManager"; } -::windows_core::imp::interface_hierarchy!(AudioDeviceModulesManager, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AudioDeviceModulesManager {} unsafe impl ::core::marker::Sync for AudioDeviceModulesManager {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CallControl(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CallControl, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CallControl { pub fn IndicateNewIncomingCall(&self, enableringer: bool, callerid: &::windows_core::HSTRING) -> ::windows_core::Result { let this = self; @@ -1931,19 +1346,17 @@ impl ::windows_core::RuntimeType for CallControl { } unsafe impl ::windows_core::Interface for CallControl { type Vtable = ICallControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CallControl { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CallControl { const NAME: &'static str = "Windows.Media.Devices.CallControl"; } -::windows_core::imp::interface_hierarchy!(CallControl, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CallControl {} unsafe impl ::core::marker::Sync for CallControl {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CameraOcclusionInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CameraOcclusionInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CameraOcclusionInfo { pub fn GetState(&self) -> ::windows_core::Result { let this = self; @@ -1979,19 +1392,17 @@ impl ::windows_core::RuntimeType for CameraOcclusionInfo { } unsafe impl ::windows_core::Interface for CameraOcclusionInfo { type Vtable = ICameraOcclusionInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CameraOcclusionInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CameraOcclusionInfo { const NAME: &'static str = "Windows.Media.Devices.CameraOcclusionInfo"; } -::windows_core::imp::interface_hierarchy!(CameraOcclusionInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CameraOcclusionInfo {} unsafe impl ::core::marker::Sync for CameraOcclusionInfo {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CameraOcclusionState(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CameraOcclusionState, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CameraOcclusionState { pub fn IsOccluded(&self) -> ::windows_core::Result { let this = self; @@ -2013,19 +1424,17 @@ impl ::windows_core::RuntimeType for CameraOcclusionState { } unsafe impl ::windows_core::Interface for CameraOcclusionState { type Vtable = ICameraOcclusionState_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CameraOcclusionState { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CameraOcclusionState { const NAME: &'static str = "Windows.Media.Devices.CameraOcclusionState"; } -::windows_core::imp::interface_hierarchy!(CameraOcclusionState, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CameraOcclusionState {} unsafe impl ::core::marker::Sync for CameraOcclusionState {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CameraOcclusionStateChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CameraOcclusionStateChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CameraOcclusionStateChangedEventArgs { pub fn State(&self) -> ::windows_core::Result { let this = self; @@ -2040,19 +1449,18 @@ impl ::windows_core::RuntimeType for CameraOcclusionStateChangedEventArgs { } unsafe impl ::windows_core::Interface for CameraOcclusionStateChangedEventArgs { type Vtable = ICameraOcclusionStateChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CameraOcclusionStateChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CameraOcclusionStateChangedEventArgs { const NAME: &'static str = "Windows.Media.Devices.CameraOcclusionStateChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(CameraOcclusionStateChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CameraOcclusionStateChangedEventArgs {} unsafe impl ::core::marker::Sync for CameraOcclusionStateChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DefaultAudioCaptureDeviceChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DefaultAudioCaptureDeviceChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(DefaultAudioCaptureDeviceChangedEventArgs, IDefaultAudioDeviceChangedEventArgs); impl DefaultAudioCaptureDeviceChangedEventArgs { pub fn Id(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -2074,20 +1482,18 @@ impl ::windows_core::RuntimeType for DefaultAudioCaptureDeviceChangedEventArgs { } unsafe impl ::windows_core::Interface for DefaultAudioCaptureDeviceChangedEventArgs { type Vtable = IDefaultAudioDeviceChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DefaultAudioCaptureDeviceChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DefaultAudioCaptureDeviceChangedEventArgs { const NAME: &'static str = "Windows.Media.Devices.DefaultAudioCaptureDeviceChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(DefaultAudioCaptureDeviceChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for DefaultAudioCaptureDeviceChangedEventArgs {} unsafe impl ::core::marker::Send for DefaultAudioCaptureDeviceChangedEventArgs {} unsafe impl ::core::marker::Sync for DefaultAudioCaptureDeviceChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DefaultAudioRenderDeviceChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DefaultAudioRenderDeviceChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(DefaultAudioRenderDeviceChangedEventArgs, IDefaultAudioDeviceChangedEventArgs); impl DefaultAudioRenderDeviceChangedEventArgs { pub fn Id(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -2109,20 +1515,17 @@ impl ::windows_core::RuntimeType for DefaultAudioRenderDeviceChangedEventArgs { } unsafe impl ::windows_core::Interface for DefaultAudioRenderDeviceChangedEventArgs { type Vtable = IDefaultAudioDeviceChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DefaultAudioRenderDeviceChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DefaultAudioRenderDeviceChangedEventArgs { const NAME: &'static str = "Windows.Media.Devices.DefaultAudioRenderDeviceChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(DefaultAudioRenderDeviceChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for DefaultAudioRenderDeviceChangedEventArgs {} unsafe impl ::core::marker::Send for DefaultAudioRenderDeviceChangedEventArgs {} unsafe impl ::core::marker::Sync for DefaultAudioRenderDeviceChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DialRequestedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DialRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DialRequestedEventArgs { pub fn Handled(&self) -> ::windows_core::Result<()> { let this = self; @@ -2141,19 +1544,17 @@ impl ::windows_core::RuntimeType for DialRequestedEventArgs { } unsafe impl ::windows_core::Interface for DialRequestedEventArgs { type Vtable = IDialRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DialRequestedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DialRequestedEventArgs { const NAME: &'static str = "Windows.Media.Devices.DialRequestedEventArgs"; } -::windows_core::imp::interface_hierarchy!(DialRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DialRequestedEventArgs {} unsafe impl ::core::marker::Sync for DialRequestedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DigitalWindowBounds(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DigitalWindowBounds, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DigitalWindowBounds { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2201,19 +1602,17 @@ impl ::windows_core::RuntimeType for DigitalWindowBounds { } unsafe impl ::windows_core::Interface for DigitalWindowBounds { type Vtable = IDigitalWindowBounds_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DigitalWindowBounds { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DigitalWindowBounds { const NAME: &'static str = "Windows.Media.Devices.DigitalWindowBounds"; } -::windows_core::imp::interface_hierarchy!(DigitalWindowBounds, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DigitalWindowBounds {} unsafe impl ::core::marker::Sync for DigitalWindowBounds {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DigitalWindowCapability(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DigitalWindowCapability, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DigitalWindowCapability { pub fn Width(&self) -> ::windows_core::Result { let this = self; @@ -2263,19 +1662,17 @@ impl ::windows_core::RuntimeType for DigitalWindowCapability { } unsafe impl ::windows_core::Interface for DigitalWindowCapability { type Vtable = IDigitalWindowCapability_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DigitalWindowCapability { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DigitalWindowCapability { const NAME: &'static str = "Windows.Media.Devices.DigitalWindowCapability"; } -::windows_core::imp::interface_hierarchy!(DigitalWindowCapability, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DigitalWindowCapability {} unsafe impl ::core::marker::Sync for DigitalWindowCapability {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DigitalWindowControl(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DigitalWindowControl, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DigitalWindowControl { pub fn IsSupported(&self) -> ::windows_core::Result { let this = self; @@ -2338,19 +1735,17 @@ impl ::windows_core::RuntimeType for DigitalWindowControl { } unsafe impl ::windows_core::Interface for DigitalWindowControl { type Vtable = IDigitalWindowControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DigitalWindowControl { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DigitalWindowControl { const NAME: &'static str = "Windows.Media.Devices.DigitalWindowControl"; } -::windows_core::imp::interface_hierarchy!(DigitalWindowControl, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DigitalWindowControl {} unsafe impl ::core::marker::Sync for DigitalWindowControl {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ExposureCompensationControl(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ExposureCompensationControl, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ExposureCompensationControl { pub fn Supported(&self) -> ::windows_core::Result { let this = self; @@ -2400,17 +1795,15 @@ impl ::windows_core::RuntimeType for ExposureCompensationControl { } unsafe impl ::windows_core::Interface for ExposureCompensationControl { type Vtable = IExposureCompensationControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ExposureCompensationControl { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ExposureCompensationControl { const NAME: &'static str = "Windows.Media.Devices.ExposureCompensationControl"; } -::windows_core::imp::interface_hierarchy!(ExposureCompensationControl, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ExposureControl(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ExposureControl, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ExposureControl { pub fn Supported(&self) -> ::windows_core::Result { let this = self; @@ -2474,17 +1867,15 @@ impl ::windows_core::RuntimeType for ExposureControl { } unsafe impl ::windows_core::Interface for ExposureControl { type Vtable = IExposureControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ExposureControl { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ExposureControl { const NAME: &'static str = "Windows.Media.Devices.ExposureControl"; } -::windows_core::imp::interface_hierarchy!(ExposureControl, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ExposurePriorityVideoControl(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ExposurePriorityVideoControl, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ExposurePriorityVideoControl { pub fn Supported(&self) -> ::windows_core::Result { let this = self; @@ -2510,19 +1901,17 @@ impl ::windows_core::RuntimeType for ExposurePriorityVideoControl { } unsafe impl ::windows_core::Interface for ExposurePriorityVideoControl { type Vtable = IExposurePriorityVideoControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ExposurePriorityVideoControl { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ExposurePriorityVideoControl { const NAME: &'static str = "Windows.Media.Devices.ExposurePriorityVideoControl"; } -::windows_core::imp::interface_hierarchy!(ExposurePriorityVideoControl, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ExposurePriorityVideoControl {} unsafe impl ::core::marker::Sync for ExposurePriorityVideoControl {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct FlashControl(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(FlashControl, ::windows_core::IUnknown, ::windows_core::IInspectable); impl FlashControl { pub fn Supported(&self) -> ::windows_core::Result { let this = self; @@ -2590,21 +1979,21 @@ impl FlashControl { unsafe { (::windows_core::Interface::vtable(this).SetPowerPercent)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn AssistantLightSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AssistantLightSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn AssistantLightEnabled(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AssistantLightEnabled)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetAssistantLightEnabled(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetAssistantLightEnabled)(::windows_core::Interface::as_raw(this), value).ok() } } } @@ -2613,17 +2002,15 @@ impl ::windows_core::RuntimeType for FlashControl { } unsafe impl ::windows_core::Interface for FlashControl { type Vtable = IFlashControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for FlashControl { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for FlashControl { const NAME: &'static str = "Windows.Media.Devices.FlashControl"; } -::windows_core::imp::interface_hierarchy!(FlashControl, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct FocusControl(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(FocusControl, ::windows_core::IUnknown, ::windows_core::IInspectable); impl FocusControl { pub fn Supported(&self) -> ::windows_core::Result { let this = self; @@ -2705,14 +2092,14 @@ impl FocusControl { } } pub fn FocusChangedSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FocusChangedSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn WaitForFocusSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).WaitForFocusSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2721,7 +2108,7 @@ impl FocusControl { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn SupportedFocusModes(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SupportedFocusModes)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2730,7 +2117,7 @@ impl FocusControl { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn SupportedFocusDistances(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SupportedFocusDistances)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2739,35 +2126,35 @@ impl FocusControl { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn SupportedFocusRanges(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SupportedFocusRanges)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Mode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Mode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn FocusState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FocusState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn UnlockAsync(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).UnlockAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn LockAsync(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).LockAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2777,7 +2164,7 @@ impl FocusControl { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } } @@ -2786,17 +2173,15 @@ impl ::windows_core::RuntimeType for FocusControl { } unsafe impl ::windows_core::Interface for FocusControl { type Vtable = IFocusControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for FocusControl { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for FocusControl { const NAME: &'static str = "Windows.Media.Devices.FocusControl"; } -::windows_core::imp::interface_hierarchy!(FocusControl, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct FocusSettings(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(FocusSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); impl FocusSettings { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2836,10 +2221,10 @@ impl FocusSettings { } pub fn SetValue(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetValue)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetValue)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn Distance(&self) -> ::windows_core::Result> { let this = self; @@ -2850,10 +2235,10 @@ impl FocusSettings { } pub fn SetDistance(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetDistance)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetDistance)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn WaitForFocus(&self) -> ::windows_core::Result { let this = self; @@ -2883,19 +2268,17 @@ impl ::windows_core::RuntimeType for FocusSettings { } unsafe impl ::windows_core::Interface for FocusSettings { type Vtable = IFocusSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for FocusSettings { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for FocusSettings { const NAME: &'static str = "Windows.Media.Devices.FocusSettings"; } -::windows_core::imp::interface_hierarchy!(FocusSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for FocusSettings {} unsafe impl ::core::marker::Sync for FocusSettings {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HdrVideoControl(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HdrVideoControl, ::windows_core::IUnknown, ::windows_core::IInspectable); impl HdrVideoControl { pub fn Supported(&self) -> ::windows_core::Result { let this = self; @@ -2930,19 +2313,17 @@ impl ::windows_core::RuntimeType for HdrVideoControl { } unsafe impl ::windows_core::Interface for HdrVideoControl { type Vtable = IHdrVideoControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HdrVideoControl { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HdrVideoControl { const NAME: &'static str = "Windows.Media.Devices.HdrVideoControl"; } -::windows_core::imp::interface_hierarchy!(HdrVideoControl, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for HdrVideoControl {} unsafe impl ::core::marker::Sync for HdrVideoControl {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct InfraredTorchControl(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(InfraredTorchControl, ::windows_core::IUnknown, ::windows_core::IInspectable); impl InfraredTorchControl { pub fn IsSupported(&self) -> ::windows_core::Result { let this = self; @@ -3009,19 +2390,17 @@ impl ::windows_core::RuntimeType for InfraredTorchControl { } unsafe impl ::windows_core::Interface for InfraredTorchControl { type Vtable = IInfraredTorchControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for InfraredTorchControl { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for InfraredTorchControl { const NAME: &'static str = "Windows.Media.Devices.InfraredTorchControl"; } -::windows_core::imp::interface_hierarchy!(InfraredTorchControl, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for InfraredTorchControl {} unsafe impl ::core::marker::Sync for InfraredTorchControl {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct IsoSpeedControl(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(IsoSpeedControl, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IsoSpeedControl { pub fn Supported(&self) -> ::windows_core::Result { let this = self; @@ -3058,49 +2437,49 @@ impl IsoSpeedControl { } } pub fn Min(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Min)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Max(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Max)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Step(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Step)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Value(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Value)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetValueAsync(&self, isospeed: u32) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SetValueAsync)(::windows_core::Interface::as_raw(this), isospeed, &mut result__).from_abi(result__) } } pub fn Auto(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Auto)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetAutoAsync(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SetAutoAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3112,17 +2491,15 @@ impl ::windows_core::RuntimeType for IsoSpeedControl { } unsafe impl ::windows_core::Interface for IsoSpeedControl { type Vtable = IIsoSpeedControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IsoSpeedControl { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for IsoSpeedControl { const NAME: &'static str = "Windows.Media.Devices.IsoSpeedControl"; } -::windows_core::imp::interface_hierarchy!(IsoSpeedControl, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct KeypadPressedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(KeypadPressedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl KeypadPressedEventArgs { pub fn TelephonyKey(&self) -> ::windows_core::Result { let this = self; @@ -3137,30 +2514,28 @@ impl ::windows_core::RuntimeType for KeypadPressedEventArgs { } unsafe impl ::windows_core::Interface for KeypadPressedEventArgs { type Vtable = IKeypadPressedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for KeypadPressedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for KeypadPressedEventArgs { const NAME: &'static str = "Windows.Media.Devices.KeypadPressedEventArgs"; } -::windows_core::imp::interface_hierarchy!(KeypadPressedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for KeypadPressedEventArgs {} unsafe impl ::core::marker::Sync for KeypadPressedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LowLagPhotoControl(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LowLagPhotoControl, ::windows_core::IUnknown, ::windows_core::IInspectable); impl LowLagPhotoControl { #[doc = "Required features: `\"Media_MediaProperties\"`"] #[cfg(feature = "Media_MediaProperties")] pub fn GetHighestConcurrentFrameRate(&self, captureproperties: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).GetHighestConcurrentFrameRate)(::windows_core::Interface::as_raw(this), captureproperties.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).GetHighestConcurrentFrameRate)(::windows_core::Interface::as_raw(this), captureproperties.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Media_MediaProperties\"`"] @@ -3222,17 +2597,15 @@ impl ::windows_core::RuntimeType for LowLagPhotoControl { } unsafe impl ::windows_core::Interface for LowLagPhotoControl { type Vtable = ILowLagPhotoControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LowLagPhotoControl { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LowLagPhotoControl { const NAME: &'static str = "Windows.Media.Devices.LowLagPhotoControl"; } -::windows_core::imp::interface_hierarchy!(LowLagPhotoControl, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LowLagPhotoSequenceControl(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LowLagPhotoSequenceControl, ::windows_core::IUnknown, ::windows_core::IInspectable); impl LowLagPhotoSequenceControl { pub fn Supported(&self) -> ::windows_core::Result { let this = self; @@ -3281,12 +2654,12 @@ impl LowLagPhotoSequenceControl { #[cfg(feature = "Media_MediaProperties")] pub fn GetHighestConcurrentFrameRate(&self, captureproperties: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).GetHighestConcurrentFrameRate)(::windows_core::Interface::as_raw(this), captureproperties.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).GetHighestConcurrentFrameRate)(::windows_core::Interface::as_raw(this), captureproperties.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Media_MediaProperties\"`"] @@ -3348,14 +2721,11 @@ impl ::windows_core::RuntimeType for LowLagPhotoSequenceControl { } unsafe impl ::windows_core::Interface for LowLagPhotoSequenceControl { type Vtable = ILowLagPhotoSequenceControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LowLagPhotoSequenceControl { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LowLagPhotoSequenceControl { const NAME: &'static str = "Windows.Media.Devices.LowLagPhotoSequenceControl"; } -::windows_core::imp::interface_hierarchy!(LowLagPhotoSequenceControl, ::windows_core::IUnknown, ::windows_core::IInspectable); pub struct MediaDevice; impl MediaDevice { pub fn GetAudioCaptureSelector() -> ::windows_core::Result<::windows_core::HSTRING> { @@ -3424,6 +2794,7 @@ impl ::windows_core::RuntimeName for MediaDevice { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaDeviceControl(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaDeviceControl, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaDeviceControl { pub fn Capabilities(&self) -> ::windows_core::Result { let this = self; @@ -3466,17 +2837,15 @@ impl ::windows_core::RuntimeType for MediaDeviceControl { } unsafe impl ::windows_core::Interface for MediaDeviceControl { type Vtable = IMediaDeviceControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaDeviceControl { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaDeviceControl { const NAME: &'static str = "Windows.Media.Devices.MediaDeviceControl"; } -::windows_core::imp::interface_hierarchy!(MediaDeviceControl, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaDeviceControlCapabilities(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaDeviceControlCapabilities, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaDeviceControlCapabilities { pub fn Supported(&self) -> ::windows_core::Result { let this = self; @@ -3526,17 +2895,15 @@ impl ::windows_core::RuntimeType for MediaDeviceControlCapabilities { } unsafe impl ::windows_core::Interface for MediaDeviceControlCapabilities { type Vtable = IMediaDeviceControlCapabilities_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaDeviceControlCapabilities { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaDeviceControlCapabilities { const NAME: &'static str = "Windows.Media.Devices.MediaDeviceControlCapabilities"; } -::windows_core::imp::interface_hierarchy!(MediaDeviceControlCapabilities, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ModuleCommandResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ModuleCommandResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ModuleCommandResult { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -3560,17 +2927,15 @@ impl ::windows_core::RuntimeType for ModuleCommandResult { } unsafe impl ::windows_core::Interface for ModuleCommandResult { type Vtable = IModuleCommandResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ModuleCommandResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ModuleCommandResult { const NAME: &'static str = "Windows.Media.Devices.ModuleCommandResult"; } -::windows_core::imp::interface_hierarchy!(ModuleCommandResult, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct OpticalImageStabilizationControl(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(OpticalImageStabilizationControl, ::windows_core::IUnknown, ::windows_core::IInspectable); impl OpticalImageStabilizationControl { pub fn Supported(&self) -> ::windows_core::Result { let this = self; @@ -3605,19 +2970,17 @@ impl ::windows_core::RuntimeType for OpticalImageStabilizationControl { } unsafe impl ::windows_core::Interface for OpticalImageStabilizationControl { type Vtable = IOpticalImageStabilizationControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for OpticalImageStabilizationControl { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for OpticalImageStabilizationControl { const NAME: &'static str = "Windows.Media.Devices.OpticalImageStabilizationControl"; } -::windows_core::imp::interface_hierarchy!(OpticalImageStabilizationControl, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for OpticalImageStabilizationControl {} unsafe impl ::core::marker::Sync for OpticalImageStabilizationControl {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PanelBasedOptimizationControl(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PanelBasedOptimizationControl, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PanelBasedOptimizationControl { pub fn IsSupported(&self) -> ::windows_core::Result { let this = self; @@ -3647,19 +3010,17 @@ impl ::windows_core::RuntimeType for PanelBasedOptimizationControl { } unsafe impl ::windows_core::Interface for PanelBasedOptimizationControl { type Vtable = IPanelBasedOptimizationControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PanelBasedOptimizationControl { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PanelBasedOptimizationControl { const NAME: &'static str = "Windows.Media.Devices.PanelBasedOptimizationControl"; } -::windows_core::imp::interface_hierarchy!(PanelBasedOptimizationControl, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PanelBasedOptimizationControl {} unsafe impl ::core::marker::Sync for PanelBasedOptimizationControl {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PhotoConfirmationControl(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PhotoConfirmationControl, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PhotoConfirmationControl { pub fn Supported(&self) -> ::windows_core::Result { let this = self; @@ -3700,17 +3061,15 @@ impl ::windows_core::RuntimeType for PhotoConfirmationControl { } unsafe impl ::windows_core::Interface for PhotoConfirmationControl { type Vtable = IPhotoConfirmationControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PhotoConfirmationControl { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PhotoConfirmationControl { const NAME: &'static str = "Windows.Media.Devices.PhotoConfirmationControl"; } -::windows_core::imp::interface_hierarchy!(PhotoConfirmationControl, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RedialRequestedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RedialRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RedialRequestedEventArgs { pub fn Handled(&self) -> ::windows_core::Result<()> { let this = self; @@ -3722,19 +3081,17 @@ impl ::windows_core::RuntimeType for RedialRequestedEventArgs { } unsafe impl ::windows_core::Interface for RedialRequestedEventArgs { type Vtable = IRedialRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RedialRequestedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RedialRequestedEventArgs { const NAME: &'static str = "Windows.Media.Devices.RedialRequestedEventArgs"; } -::windows_core::imp::interface_hierarchy!(RedialRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RedialRequestedEventArgs {} unsafe impl ::core::marker::Sync for RedialRequestedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RegionOfInterest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RegionOfInterest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RegionOfInterest { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -3788,36 +3145,36 @@ impl RegionOfInterest { unsafe { (::windows_core::Interface::vtable(this).SetBounds)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Type(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Type)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetType(&self, value: RegionOfInterestType) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetType)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn BoundsNormalized(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).BoundsNormalized)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetBoundsNormalized(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetBoundsNormalized)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Weight(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Weight)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetWeight(&self, value: u32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetWeight)(::windows_core::Interface::as_raw(this), value).ok() } } } @@ -3826,19 +3183,17 @@ impl ::windows_core::RuntimeType for RegionOfInterest { } unsafe impl ::windows_core::Interface for RegionOfInterest { type Vtable = IRegionOfInterest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RegionOfInterest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RegionOfInterest { const NAME: &'static str = "Windows.Media.Devices.RegionOfInterest"; } -::windows_core::imp::interface_hierarchy!(RegionOfInterest, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RegionOfInterest {} unsafe impl ::core::marker::Sync for RegionOfInterest {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RegionsOfInterestControl(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RegionsOfInterestControl, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RegionsOfInterestControl { pub fn MaxRegions(&self) -> ::windows_core::Result { let this = self; @@ -3851,24 +3206,24 @@ impl RegionsOfInterestControl { #[cfg(feature = "Foundation_Collections")] pub fn SetRegionsAsync(&self, regions: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).SetRegionsAsync)(::windows_core::Interface::as_raw(this), regions.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SetRegionsAsync)(::windows_core::Interface::as_raw(this), regions.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn SetRegionsWithLockAsync(&self, regions: P0, lockvalues: bool) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).SetRegionsWithLockAsync)(::windows_core::Interface::as_raw(this), regions.try_into_param()?.abi(), lockvalues, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SetRegionsWithLockAsync)(::windows_core::Interface::as_raw(this), regions.into_param().abi(), lockvalues, &mut result__).from_abi(result__) } } pub fn ClearRegionsAsync(&self) -> ::windows_core::Result { @@ -3905,17 +3260,15 @@ impl ::windows_core::RuntimeType for RegionsOfInterestControl { } unsafe impl ::windows_core::Interface for RegionsOfInterestControl { type Vtable = IRegionsOfInterestControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RegionsOfInterestControl { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RegionsOfInterestControl { const NAME: &'static str = "Windows.Media.Devices.RegionsOfInterestControl"; } -::windows_core::imp::interface_hierarchy!(RegionsOfInterestControl, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SceneModeControl(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SceneModeControl, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SceneModeControl { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -3946,17 +3299,15 @@ impl ::windows_core::RuntimeType for SceneModeControl { } unsafe impl ::windows_core::Interface for SceneModeControl { type Vtable = ISceneModeControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SceneModeControl { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SceneModeControl { const NAME: &'static str = "Windows.Media.Devices.SceneModeControl"; } -::windows_core::imp::interface_hierarchy!(SceneModeControl, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct TorchControl(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(TorchControl, ::windows_core::IUnknown, ::windows_core::IInspectable); impl TorchControl { pub fn Supported(&self) -> ::windows_core::Result { let this = self; @@ -4000,34 +3351,33 @@ impl ::windows_core::RuntimeType for TorchControl { } unsafe impl ::windows_core::Interface for TorchControl { type Vtable = ITorchControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TorchControl { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for TorchControl { const NAME: &'static str = "Windows.Media.Devices.TorchControl"; } -::windows_core::imp::interface_hierarchy!(TorchControl, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VideoDeviceController(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VideoDeviceController, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(VideoDeviceController, IMediaDeviceController); impl VideoDeviceController { pub fn SetDeviceProperty(&self, propertyid: &::windows_core::HSTRING, propertyvalue: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn GetDeviceProperty(&self, propertyid: &::windows_core::HSTRING) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetDeviceProperty)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyid), &mut result__).from_abi(result__) } } pub fn CameraOcclusionInfo(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CameraOcclusionInfo)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4036,164 +3386,164 @@ impl VideoDeviceController { #[doc = "Required features: `\"Media_Capture\"`"] #[cfg(feature = "Media_Capture")] pub fn TryAcquireExclusiveControl(&self, deviceid: &::windows_core::HSTRING, mode: super::Capture::MediaCaptureDeviceExclusiveControlReleaseMode) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryAcquireExclusiveControl)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(deviceid), mode, &mut result__).from_abi(result__) } } pub fn LowLagPhotoSequence(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).LowLagPhotoSequence)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn LowLagPhoto(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).LowLagPhoto)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SceneModeControl(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SceneModeControl)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TorchControl(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TorchControl)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn FlashControl(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FlashControl)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn WhiteBalanceControl(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).WhiteBalanceControl)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ExposureControl(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ExposureControl)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn FocusControl(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FocusControl)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ExposureCompensationControl(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ExposureCompensationControl)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsoSpeedControl(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsoSpeedControl)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn RegionsOfInterestControl(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RegionsOfInterestControl)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PrimaryUse(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PrimaryUse)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetPrimaryUse(&self, value: CaptureUse) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetPrimaryUse)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Media_Devices_Core\"`"] #[cfg(feature = "Media_Devices_Core")] pub fn VariablePhotoSequenceController(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).VariablePhotoSequenceController)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PhotoConfirmationControl(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PhotoConfirmationControl)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ZoomControl(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ZoomControl)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ExposurePriorityVideoControl(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ExposurePriorityVideoControl)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn DesiredOptimization(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DesiredOptimization)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDesiredOptimization(&self, value: MediaCaptureOptimization) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDesiredOptimization)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn HdrVideoControl(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).HdrVideoControl)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn OpticalImageStabilizationControl(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OpticalImageStabilizationControl)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn AdvancedPhotoControl(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AdvancedPhotoControl)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Id(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Id)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4201,19 +3551,19 @@ impl VideoDeviceController { } pub fn GetDevicePropertyById(&self, propertyid: &::windows_core::HSTRING, maxpropertyvaluesize: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).GetDevicePropertyById)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyid), maxpropertyvaluesize.into_param().abi(), &mut result__).from_abi(result__) } } pub fn SetDevicePropertyById(&self, propertyid: &::windows_core::HSTRING, propertyvalue: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -4221,44 +3571,44 @@ impl VideoDeviceController { } pub fn GetDevicePropertyByExtendedId(&self, extendedpropertyid: &[u8], maxpropertyvaluesize: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) } } pub fn SetDevicePropertyByExtendedId(&self, extendedpropertyid: &[u8], propertyvalue: &[u8]) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SetDevicePropertyByExtendedId)(::windows_core::Interface::as_raw(this), extendedpropertyid.len().try_into().unwrap(), extendedpropertyid.as_ptr(), propertyvalue.len().try_into().unwrap(), propertyvalue.as_ptr(), &mut result__).from_abi(result__) } } pub fn VideoTemporalDenoisingControl(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).VideoTemporalDenoisingControl)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn InfraredTorchControl(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).InfraredTorchControl)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PanelBasedOptimizationControl(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PanelBasedOptimizationControl)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn DigitalWindowControl(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DigitalWindowControl)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4267,7 +3617,7 @@ impl VideoDeviceController { #[doc = "Required features: `\"Foundation_Collections\"`, `\"Media_Capture\"`, `\"Media_MediaProperties\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Media_Capture", feature = "Media_MediaProperties"))] pub fn GetAvailableMediaStreamProperties(&self, mediastreamtype: super::Capture::MediaStreamType) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetAvailableMediaStreamProperties)(::windows_core::Interface::as_raw(this), mediastreamtype, &mut result__).from_abi(result__) @@ -4276,7 +3626,7 @@ impl VideoDeviceController { #[doc = "Required features: `\"Media_Capture\"`, `\"Media_MediaProperties\"`"] #[cfg(all(feature = "Media_Capture", feature = "Media_MediaProperties"))] pub fn GetMediaStreamProperties(&self, mediastreamtype: super::Capture::MediaStreamType) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetMediaStreamProperties)(::windows_core::Interface::as_raw(this), mediastreamtype, &mut result__).from_abi(result__) @@ -4286,12 +3636,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::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SetMediaStreamPropertiesAsync)(::windows_core::Interface::as_raw(this), mediastreamtype, mediaencodingproperties.into_param().abi(), &mut result__).from_abi(result__) } } pub fn Brightness(&self) -> ::windows_core::Result { @@ -4395,18 +3745,15 @@ impl ::windows_core::RuntimeType for VideoDeviceController { } unsafe impl ::windows_core::Interface for VideoDeviceController { type Vtable = IVideoDeviceController_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VideoDeviceController { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VideoDeviceController { const NAME: &'static str = "Windows.Media.Devices.VideoDeviceController"; } -::windows_core::imp::interface_hierarchy!(VideoDeviceController, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for VideoDeviceController {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VideoDeviceControllerGetDevicePropertyResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VideoDeviceControllerGetDevicePropertyResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl VideoDeviceControllerGetDevicePropertyResult { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -4428,19 +3775,17 @@ impl ::windows_core::RuntimeType for VideoDeviceControllerGetDevicePropertyResul } unsafe impl ::windows_core::Interface for VideoDeviceControllerGetDevicePropertyResult { type Vtable = IVideoDeviceControllerGetDevicePropertyResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VideoDeviceControllerGetDevicePropertyResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VideoDeviceControllerGetDevicePropertyResult { const NAME: &'static str = "Windows.Media.Devices.VideoDeviceControllerGetDevicePropertyResult"; } -::windows_core::imp::interface_hierarchy!(VideoDeviceControllerGetDevicePropertyResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for VideoDeviceControllerGetDevicePropertyResult {} unsafe impl ::core::marker::Sync for VideoDeviceControllerGetDevicePropertyResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VideoTemporalDenoisingControl(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VideoTemporalDenoisingControl, ::windows_core::IUnknown, ::windows_core::IInspectable); impl VideoTemporalDenoisingControl { pub fn Supported(&self) -> ::windows_core::Result { let this = self; @@ -4475,19 +3820,17 @@ impl ::windows_core::RuntimeType for VideoTemporalDenoisingControl { } unsafe impl ::windows_core::Interface for VideoTemporalDenoisingControl { type Vtable = IVideoTemporalDenoisingControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VideoTemporalDenoisingControl { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VideoTemporalDenoisingControl { const NAME: &'static str = "Windows.Media.Devices.VideoTemporalDenoisingControl"; } -::windows_core::imp::interface_hierarchy!(VideoTemporalDenoisingControl, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for VideoTemporalDenoisingControl {} unsafe impl ::core::marker::Sync for VideoTemporalDenoisingControl {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WhiteBalanceControl(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WhiteBalanceControl, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WhiteBalanceControl { pub fn Supported(&self) -> ::windows_core::Result { let this = self; @@ -4551,17 +3894,15 @@ impl ::windows_core::RuntimeType for WhiteBalanceControl { } unsafe impl ::windows_core::Interface for WhiteBalanceControl { type Vtable = IWhiteBalanceControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WhiteBalanceControl { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WhiteBalanceControl { const NAME: &'static str = "Windows.Media.Devices.WhiteBalanceControl"; } -::windows_core::imp::interface_hierarchy!(WhiteBalanceControl, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ZoomControl(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ZoomControl, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ZoomControl { pub fn Supported(&self) -> ::windows_core::Result { let this = self; @@ -4605,14 +3946,14 @@ impl ZoomControl { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn SupportedModes(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SupportedModes)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Mode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Mode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4622,7 +3963,7 @@ impl ZoomControl { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } } @@ -4631,17 +3972,15 @@ impl ::windows_core::RuntimeType for ZoomControl { } unsafe impl ::windows_core::Interface for ZoomControl { type Vtable = IZoomControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ZoomControl { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ZoomControl { const NAME: &'static str = "Windows.Media.Devices.ZoomControl"; } -::windows_core::imp::interface_hierarchy!(ZoomControl, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ZoomSettings(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ZoomSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ZoomSettings { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -4678,14 +4017,11 @@ impl ::windows_core::RuntimeType for ZoomSettings { } unsafe impl ::windows_core::Interface for ZoomSettings { type Vtable = IZoomSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ZoomSettings { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ZoomSettings { const NAME: &'static str = "Windows.Media.Devices.ZoomSettings"; } -::windows_core::imp::interface_hierarchy!(ZoomSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ZoomSettings {} unsafe impl ::core::marker::Sync for ZoomSettings {} #[repr(transparent)] @@ -5239,9 +4575,7 @@ impl ::core::fmt::Debug for ZoomTransitionMode { impl ::windows_core::RuntimeType for ZoomTransitionMode { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::from_slice(b"enum(Windows.Media.Devices.ZoomTransitionMode;i4)"); } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct CallControlEventHandler(pub ::windows_core::IUnknown); +::windows_core::imp::com_interface!(CallControlEventHandler, CallControlEventHandler_Vtbl, 0x596f759f_50df_4454_bc63_4d3d01b61958); impl CallControlEventHandler { pub fn new) -> ::windows_core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = CallControlEventHandlerBox:: { vtable: &CallControlEventHandlerBox::::VTABLE, count: ::windows_core::imp::RefCount::new(1), invoke }; @@ -5271,7 +4605,7 @@ impl) -> ::windows_core::Result<() if iid.is_null() || interface.is_null() { return ::windows_core::HRESULT(-2147467261); } - *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; + *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::Interface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::Interface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; if (*interface).is_null() { ::windows_core::HRESULT(-2147467262) } else { @@ -5296,12 +4630,6 @@ impl) -> ::windows_core::Result<() ((*this).invoke)(::windows_core::from_raw_borrowed(&sender)).into() } } -unsafe impl ::windows_core::Interface for CallControlEventHandler { - type Vtable = CallControlEventHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CallControlEventHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x596f759f_50df_4454_bc63_4d3d01b61958); -} impl ::windows_core::RuntimeType for CallControlEventHandler { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } @@ -5311,9 +4639,7 @@ pub struct CallControlEventHandler_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Invoke: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sender: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct DialRequestedEventHandler(pub ::windows_core::IUnknown); +::windows_core::imp::com_interface!(DialRequestedEventHandler, DialRequestedEventHandler_Vtbl, 0x5abbffdb_c21f_4bc4_891b_257e28c1b1a4); impl DialRequestedEventHandler { pub fn new, ::core::option::Option<&DialRequestedEventArgs>) -> ::windows_core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = DialRequestedEventHandlerBox:: { vtable: &DialRequestedEventHandlerBox::::VTABLE, count: ::windows_core::imp::RefCount::new(1), invoke }; @@ -5344,7 +4670,7 @@ impl, ::core::option::Option<&Dial if iid.is_null() || interface.is_null() { return ::windows_core::HRESULT(-2147467261); } - *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; + *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::Interface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::Interface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; if (*interface).is_null() { ::windows_core::HRESULT(-2147467262) } else { @@ -5369,12 +4695,6 @@ impl, ::core::option::Option<&Dial ((*this).invoke)(::windows_core::from_raw_borrowed(&sender), ::windows_core::from_raw_borrowed(&e)).into() } } -unsafe impl ::windows_core::Interface for DialRequestedEventHandler { - type Vtable = DialRequestedEventHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DialRequestedEventHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5abbffdb_c21f_4bc4_891b_257e28c1b1a4); -} impl ::windows_core::RuntimeType for DialRequestedEventHandler { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } @@ -5384,9 +4704,7 @@ pub struct DialRequestedEventHandler_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Invoke: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sender: *mut ::core::ffi::c_void, e: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct KeypadPressedEventHandler(pub ::windows_core::IUnknown); +::windows_core::imp::com_interface!(KeypadPressedEventHandler, KeypadPressedEventHandler_Vtbl, 0xe637a454_c527_422c_8926_c9af83b559a0); impl KeypadPressedEventHandler { pub fn new, ::core::option::Option<&KeypadPressedEventArgs>) -> ::windows_core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = KeypadPressedEventHandlerBox:: { vtable: &KeypadPressedEventHandlerBox::::VTABLE, count: ::windows_core::imp::RefCount::new(1), invoke }; @@ -5417,7 +4735,7 @@ impl, ::core::option::Option<&Keyp if iid.is_null() || interface.is_null() { return ::windows_core::HRESULT(-2147467261); } - *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; + *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::Interface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::Interface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; if (*interface).is_null() { ::windows_core::HRESULT(-2147467262) } else { @@ -5442,12 +4760,6 @@ impl, ::core::option::Option<&Keyp ((*this).invoke)(::windows_core::from_raw_borrowed(&sender), ::windows_core::from_raw_borrowed(&e)).into() } } -unsafe impl ::windows_core::Interface for KeypadPressedEventHandler { - type Vtable = KeypadPressedEventHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for KeypadPressedEventHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe637a454_c527_422c_8926_c9af83b559a0); -} impl ::windows_core::RuntimeType for KeypadPressedEventHandler { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } @@ -5457,9 +4769,7 @@ pub struct KeypadPressedEventHandler_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Invoke: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sender: *mut ::core::ffi::c_void, e: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct RedialRequestedEventHandler(pub ::windows_core::IUnknown); +::windows_core::imp::com_interface!(RedialRequestedEventHandler, RedialRequestedEventHandler_Vtbl, 0xbaf257d1_4ebd_4b84_9f47_6ec43d75d8b1); impl RedialRequestedEventHandler { pub fn new, ::core::option::Option<&RedialRequestedEventArgs>) -> ::windows_core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = RedialRequestedEventHandlerBox:: { vtable: &RedialRequestedEventHandlerBox::::VTABLE, count: ::windows_core::imp::RefCount::new(1), invoke }; @@ -5490,7 +4800,7 @@ impl, ::core::option::Option<&Redi if iid.is_null() || interface.is_null() { return ::windows_core::HRESULT(-2147467261); } - *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; + *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::Interface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::Interface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; if (*interface).is_null() { ::windows_core::HRESULT(-2147467262) } else { @@ -5515,12 +4825,6 @@ impl, ::core::option::Option<&Redi ((*this).invoke)(::windows_core::from_raw_borrowed(&sender), ::windows_core::from_raw_borrowed(&e)).into() } } -unsafe impl ::windows_core::Interface for RedialRequestedEventHandler { - type Vtable = RedialRequestedEventHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RedialRequestedEventHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbaf257d1_4ebd_4b84_9f47_6ec43d75d8b1); -} impl ::windows_core::RuntimeType for RedialRequestedEventHandler { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } diff --git a/crates/libs/windows/src/Windows/Media/DialProtocol/mod.rs b/crates/libs/windows/src/Windows/Media/DialProtocol/mod.rs index 4c01e9cffe..5cd54b0dbe 100644 --- a/crates/libs/windows/src/Windows/Media/DialProtocol/mod.rs +++ b/crates/libs/windows/src/Windows/Media/DialProtocol/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDialApp(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDialApp { - type Vtable = IDialApp_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDialApp { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x555ffbd3_45b7_49f3_bbd7_302db6084646); -} +::windows_core::imp::com_interface!(IDialApp, IDialApp_Vtbl, 0x555ffbd3_45b7_49f3_bbd7_302db6084646); #[repr(C)] #[doc(hidden)] pub struct IDialApp_Vtbl { @@ -17,16 +8,7 @@ pub struct IDialApp_Vtbl { pub StopAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetAppStateAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDialAppStateDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDialAppStateDetails { - type Vtable = IDialAppStateDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDialAppStateDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xddc4a4a1_f5de_400d_bea4_8c8466bb2961); -} +::windows_core::imp::com_interface!(IDialAppStateDetails, IDialAppStateDetails_Vtbl, 0xddc4a4a1_f5de_400d_bea4_8c8466bb2961); #[repr(C)] #[doc(hidden)] pub struct IDialAppStateDetails_Vtbl { @@ -34,16 +16,7 @@ pub struct IDialAppStateDetails_Vtbl { pub State: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut DialAppState) -> ::windows_core::HRESULT, pub FullXml: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDialDevice(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDialDevice { - type Vtable = IDialDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDialDevice { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfff0edaf_759f_41d2_a20a_7f29ce0b3784); -} +::windows_core::imp::com_interface!(IDialDevice, IDialDevice_Vtbl, 0xfff0edaf_759f_41d2_a20a_7f29ce0b3784); #[repr(C)] #[doc(hidden)] pub struct IDialDevice_Vtbl { @@ -51,16 +24,7 @@ pub struct IDialDevice_Vtbl { pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub GetDialApp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, appname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDialDevice2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDialDevice2 { - type Vtable = IDialDevice2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDialDevice2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbab7f3d5_5bfb_4eba_8b32_b57c5c5ee5c9); -} +::windows_core::imp::com_interface!(IDialDevice2, IDialDevice2_Vtbl, 0xbab7f3d5_5bfb_4eba_8b32_b57c5c5ee5c9); #[repr(C)] #[doc(hidden)] pub struct IDialDevice2_Vtbl { @@ -71,16 +35,7 @@ pub struct IDialDevice2_Vtbl { #[cfg(not(feature = "Storage_Streams"))] Thumbnail: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDialDevicePicker(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDialDevicePicker { - type Vtable = IDialDevicePicker_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDialDevicePicker { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xba7e520a_ff59_4f4b_bdac_d89f495ad6e1); -} +::windows_core::imp::com_interface!(IDialDevicePicker, IDialDevicePicker_Vtbl, 0xba7e520a_ff59_4f4b_bdac_d89f495ad6e1); #[repr(C)] #[doc(hidden)] pub struct IDialDevicePicker_Vtbl { @@ -109,16 +64,7 @@ pub struct IDialDevicePicker_Vtbl { pub Hide: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetDisplayStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, device: *mut ::core::ffi::c_void, status: DialDeviceDisplayStatus) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDialDevicePickerFilter(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDialDevicePickerFilter { - type Vtable = IDialDevicePickerFilter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDialDevicePickerFilter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc17c93ba_86c0_485d_b8d6_0f9a8f641590); -} +::windows_core::imp::com_interface!(IDialDevicePickerFilter, IDialDevicePickerFilter_Vtbl, 0xc17c93ba_86c0_485d_b8d6_0f9a8f641590); #[repr(C)] #[doc(hidden)] pub struct IDialDevicePickerFilter_Vtbl { @@ -128,32 +74,14 @@ pub struct IDialDevicePickerFilter_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] SupportedAppNames: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDialDeviceSelectedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDialDeviceSelectedEventArgs { - type Vtable = IDialDeviceSelectedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDialDeviceSelectedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x480b92ad_ac76_47eb_9c06_a19304da0247); -} +::windows_core::imp::com_interface!(IDialDeviceSelectedEventArgs, IDialDeviceSelectedEventArgs_Vtbl, 0x480b92ad_ac76_47eb_9c06_a19304da0247); #[repr(C)] #[doc(hidden)] pub struct IDialDeviceSelectedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub SelectedDialDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDialDeviceStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDialDeviceStatics { - type Vtable = IDialDeviceStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDialDeviceStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaa69cc95_01f8_4758_8461_2bbd1cdc3cf3); -} +::windows_core::imp::com_interface!(IDialDeviceStatics, IDialDeviceStatics_Vtbl, 0xaa69cc95_01f8_4758_8461_2bbd1cdc3cf3); #[repr(C)] #[doc(hidden)] pub struct IDialDeviceStatics_Vtbl { @@ -165,32 +93,14 @@ pub struct IDialDeviceStatics_Vtbl { #[cfg(not(feature = "Devices_Enumeration"))] DeviceInfoSupportsDialAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDialDisconnectButtonClickedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDialDisconnectButtonClickedEventArgs { - type Vtable = IDialDisconnectButtonClickedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDialDisconnectButtonClickedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x52765152_9c81_4e55_adc2_0ebe99cde3b6); -} +::windows_core::imp::com_interface!(IDialDisconnectButtonClickedEventArgs, IDialDisconnectButtonClickedEventArgs_Vtbl, 0x52765152_9c81_4e55_adc2_0ebe99cde3b6); #[repr(C)] #[doc(hidden)] pub struct IDialDisconnectButtonClickedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Device: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDialReceiverApp(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDialReceiverApp { - type Vtable = IDialReceiverApp_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDialReceiverApp { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfd3e7c57_5045_470e_b304_4dd9b13e7d11); -} +::windows_core::imp::com_interface!(IDialReceiverApp, IDialReceiverApp_Vtbl, 0xfd3e7c57_5045_470e_b304_4dd9b13e7d11); #[repr(C)] #[doc(hidden)] pub struct IDialReceiverApp_Vtbl { @@ -204,32 +114,14 @@ pub struct IDialReceiverApp_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] SetAdditionalDataAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDialReceiverApp2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDialReceiverApp2 { - type Vtable = IDialReceiverApp2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDialReceiverApp2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x530c5805_9130_42ac_a504_1977dcb2ea8a); -} +::windows_core::imp::com_interface!(IDialReceiverApp2, IDialReceiverApp2_Vtbl, 0x530c5805_9130_42ac_a504_1977dcb2ea8a); #[repr(C)] #[doc(hidden)] pub struct IDialReceiverApp2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetUniqueDeviceNameAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDialReceiverAppStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDialReceiverAppStatics { - type Vtable = IDialReceiverAppStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDialReceiverAppStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x53183a3c_4c36_4d02_b28a_f2a9da38ec52); -} +::windows_core::imp::com_interface!(IDialReceiverAppStatics, IDialReceiverAppStatics_Vtbl, 0x53183a3c_4c36_4d02_b28a_f2a9da38ec52); #[repr(C)] #[doc(hidden)] pub struct IDialReceiverAppStatics_Vtbl { @@ -239,6 +131,7 @@ pub struct IDialReceiverAppStatics_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DialApp(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DialApp, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DialApp { pub fn AppName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -274,19 +167,17 @@ impl ::windows_core::RuntimeType for DialApp { } unsafe impl ::windows_core::Interface for DialApp { type Vtable = IDialApp_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DialApp { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DialApp { const NAME: &'static str = "Windows.Media.DialProtocol.DialApp"; } -::windows_core::imp::interface_hierarchy!(DialApp, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DialApp {} unsafe impl ::core::marker::Sync for DialApp {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DialAppStateDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DialAppStateDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DialAppStateDetails { pub fn State(&self) -> ::windows_core::Result { let this = self; @@ -308,19 +199,17 @@ impl ::windows_core::RuntimeType for DialAppStateDetails { } unsafe impl ::windows_core::Interface for DialAppStateDetails { type Vtable = IDialAppStateDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DialAppStateDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DialAppStateDetails { const NAME: &'static str = "Windows.Media.DialProtocol.DialAppStateDetails"; } -::windows_core::imp::interface_hierarchy!(DialAppStateDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DialAppStateDetails {} unsafe impl ::core::marker::Sync for DialAppStateDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DialDevice(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DialDevice, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DialDevice { pub fn Id(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -337,7 +226,7 @@ impl DialDevice { } } pub fn FriendlyName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FriendlyName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -346,7 +235,7 @@ impl DialDevice { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn Thumbnail(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Thumbnail)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -386,19 +275,17 @@ impl ::windows_core::RuntimeType for DialDevice { } unsafe impl ::windows_core::Interface for DialDevice { type Vtable = IDialDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DialDevice { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DialDevice { const NAME: &'static str = "Windows.Media.DialProtocol.DialDevice"; } -::windows_core::imp::interface_hierarchy!(DialDevice, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DialDevice {} unsafe impl ::core::marker::Sync for DialDevice {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DialDevicePicker(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DialDevicePicker, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DialDevicePicker { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -508,19 +395,17 @@ impl ::windows_core::RuntimeType for DialDevicePicker { } unsafe impl ::windows_core::Interface for DialDevicePicker { type Vtable = IDialDevicePicker_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DialDevicePicker { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DialDevicePicker { const NAME: &'static str = "Windows.Media.DialProtocol.DialDevicePicker"; } -::windows_core::imp::interface_hierarchy!(DialDevicePicker, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DialDevicePicker {} unsafe impl ::core::marker::Sync for DialDevicePicker {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DialDevicePickerFilter(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DialDevicePickerFilter, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DialDevicePickerFilter { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -537,19 +422,17 @@ impl ::windows_core::RuntimeType for DialDevicePickerFilter { } unsafe impl ::windows_core::Interface for DialDevicePickerFilter { type Vtable = IDialDevicePickerFilter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DialDevicePickerFilter { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DialDevicePickerFilter { const NAME: &'static str = "Windows.Media.DialProtocol.DialDevicePickerFilter"; } -::windows_core::imp::interface_hierarchy!(DialDevicePickerFilter, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DialDevicePickerFilter {} unsafe impl ::core::marker::Sync for DialDevicePickerFilter {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DialDeviceSelectedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DialDeviceSelectedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DialDeviceSelectedEventArgs { pub fn SelectedDialDevice(&self) -> ::windows_core::Result { let this = self; @@ -564,19 +447,17 @@ impl ::windows_core::RuntimeType for DialDeviceSelectedEventArgs { } unsafe impl ::windows_core::Interface for DialDeviceSelectedEventArgs { type Vtable = IDialDeviceSelectedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DialDeviceSelectedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DialDeviceSelectedEventArgs { const NAME: &'static str = "Windows.Media.DialProtocol.DialDeviceSelectedEventArgs"; } -::windows_core::imp::interface_hierarchy!(DialDeviceSelectedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DialDeviceSelectedEventArgs {} unsafe impl ::core::marker::Sync for DialDeviceSelectedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DialDisconnectButtonClickedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DialDisconnectButtonClickedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DialDisconnectButtonClickedEventArgs { pub fn Device(&self) -> ::windows_core::Result { let this = self; @@ -591,19 +472,17 @@ impl ::windows_core::RuntimeType for DialDisconnectButtonClickedEventArgs { } unsafe impl ::windows_core::Interface for DialDisconnectButtonClickedEventArgs { type Vtable = IDialDisconnectButtonClickedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DialDisconnectButtonClickedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DialDisconnectButtonClickedEventArgs { const NAME: &'static str = "Windows.Media.DialProtocol.DialDisconnectButtonClickedEventArgs"; } -::windows_core::imp::interface_hierarchy!(DialDisconnectButtonClickedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DialDisconnectButtonClickedEventArgs {} unsafe impl ::core::marker::Sync for DialDisconnectButtonClickedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DialReceiverApp(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DialReceiverApp, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DialReceiverApp { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -618,16 +497,16 @@ impl DialReceiverApp { #[cfg(feature = "Foundation_Collections")] pub fn SetAdditionalDataAsync(&self, additionaldata: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>>, + P0: ::windows_core::IntoParam>>, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).SetAdditionalDataAsync)(::windows_core::Interface::as_raw(this), additionaldata.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SetAdditionalDataAsync)(::windows_core::Interface::as_raw(this), additionaldata.into_param().abi(), &mut result__).from_abi(result__) } } pub fn GetUniqueDeviceNameAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetUniqueDeviceNameAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -650,14 +529,11 @@ impl ::windows_core::RuntimeType for DialReceiverApp { } unsafe impl ::windows_core::Interface for DialReceiverApp { type Vtable = IDialReceiverApp_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DialReceiverApp { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DialReceiverApp { const NAME: &'static str = "Windows.Media.DialProtocol.DialReceiverApp"; } -::windows_core::imp::interface_hierarchy!(DialReceiverApp, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DialReceiverApp {} unsafe impl ::core::marker::Sync for DialReceiverApp {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Media/Editing/mod.rs b/crates/libs/windows/src/Windows/Media/Editing/mod.rs index 493cc0933f..d2f32547ef 100644 --- a/crates/libs/windows/src/Windows/Media/Editing/mod.rs +++ b/crates/libs/windows/src/Windows/Media/Editing/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundAudioTrack(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBackgroundAudioTrack { - type Vtable = IBackgroundAudioTrack_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundAudioTrack { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4b91b3bd_9e21_4266_a9c2_67dd011a2357); -} +::windows_core::imp::com_interface!(IBackgroundAudioTrack, IBackgroundAudioTrack_Vtbl, 0x4b91b3bd_9e21_4266_a9c2_67dd011a2357); #[repr(C)] #[doc(hidden)] pub struct IBackgroundAudioTrack_Vtbl { @@ -36,16 +27,7 @@ pub struct IBackgroundAudioTrack_Vtbl { #[cfg(not(all(feature = "Foundation_Collections", feature = "Media_Effects")))] AudioEffectDefinitions: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundAudioTrackStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBackgroundAudioTrackStatics { - type Vtable = IBackgroundAudioTrackStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundAudioTrackStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd9b1c0d7_d018_42a8_a559_cb4d9e97e664); -} +::windows_core::imp::com_interface!(IBackgroundAudioTrackStatics, IBackgroundAudioTrackStatics_Vtbl, 0xd9b1c0d7_d018_42a8_a559_cb4d9e97e664); #[repr(C)] #[doc(hidden)] pub struct IBackgroundAudioTrackStatics_Vtbl { @@ -56,16 +38,7 @@ pub struct IBackgroundAudioTrackStatics_Vtbl { #[cfg(not(feature = "Storage"))] CreateFromFileAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmbeddedAudioTrack(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmbeddedAudioTrack { - type Vtable = IEmbeddedAudioTrack_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmbeddedAudioTrack { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x55ee5a7a_2d30_3fba_a190_4f1a6454f88f); -} +::windows_core::imp::com_interface!(IEmbeddedAudioTrack, IEmbeddedAudioTrack_Vtbl, 0x55ee5a7a_2d30_3fba_a190_4f1a6454f88f); #[repr(C)] #[doc(hidden)] pub struct IEmbeddedAudioTrack_Vtbl { @@ -75,16 +48,7 @@ pub struct IEmbeddedAudioTrack_Vtbl { #[cfg(not(feature = "Media_MediaProperties"))] GetAudioEncodingProperties: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaClip(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaClip { - type Vtable = IMediaClip_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaClip { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x53f25366_5fba_3ea4_8693_24761811140a); -} +::windows_core::imp::com_interface!(IMediaClip, IMediaClip_Vtbl, 0x53f25366_5fba_3ea4_8693_24761811140a); #[repr(C)] #[doc(hidden)] pub struct IMediaClip_Vtbl { @@ -123,16 +87,7 @@ pub struct IMediaClip_Vtbl { #[cfg(not(all(feature = "Foundation_Collections", feature = "Media_Effects")))] VideoEffectDefinitions: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaClipStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaClipStatics { - type Vtable = IMediaClipStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaClipStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfa402b68_928f_43c4_bc6e_783a1a359656); -} +::windows_core::imp::com_interface!(IMediaClipStatics, IMediaClipStatics_Vtbl, 0xfa402b68_928f_43c4_bc6e_783a1a359656); #[repr(C)] #[doc(hidden)] pub struct IMediaClipStatics_Vtbl { @@ -150,16 +105,7 @@ pub struct IMediaClipStatics_Vtbl { #[cfg(not(feature = "Storage"))] CreateFromImageFileAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaClipStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaClipStatics2 { - type Vtable = IMediaClipStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaClipStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5b1dd7b3_854e_4d9b_877d_4774a556cd12); -} +::windows_core::imp::com_interface!(IMediaClipStatics2, IMediaClipStatics2_Vtbl, 0x5b1dd7b3_854e_4d9b_877d_4774a556cd12); #[repr(C)] #[doc(hidden)] pub struct IMediaClipStatics2_Vtbl { @@ -169,16 +115,7 @@ pub struct IMediaClipStatics2_Vtbl { #[cfg(not(feature = "Graphics_DirectX_Direct3D11"))] CreateFromSurface: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaComposition(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaComposition { - type Vtable = IMediaComposition_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaComposition { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2e06e605_dc71_41d6_b837_2d2bc14a2947); -} +::windows_core::imp::com_interface!(IMediaComposition, IMediaComposition_Vtbl, 0x2e06e605_dc71_41d6_b837_2d2bc14a2947); #[repr(C)] #[doc(hidden)] pub struct IMediaComposition_Vtbl { @@ -238,16 +175,7 @@ pub struct IMediaComposition_Vtbl { #[cfg(not(feature = "Media_Core"))] GeneratePreviewMediaStreamSource: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaComposition2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaComposition2 { - type Vtable = IMediaComposition2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaComposition2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa59e5372_2366_492c_bec8_e6dfba6d0281); -} +::windows_core::imp::com_interface!(IMediaComposition2, IMediaComposition2_Vtbl, 0xa59e5372_2366_492c_bec8_e6dfba6d0281); #[repr(C)] #[doc(hidden)] pub struct IMediaComposition2_Vtbl { @@ -257,16 +185,7 @@ pub struct IMediaComposition2_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] OverlayLayers: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaCompositionStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaCompositionStatics { - type Vtable = IMediaCompositionStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaCompositionStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x87a08f04_e32a_45ce_8f66_a30df0766224); -} +::windows_core::imp::com_interface!(IMediaCompositionStatics, IMediaCompositionStatics_Vtbl, 0x87a08f04_e32a_45ce_8f66_a30df0766224); #[repr(C)] #[doc(hidden)] pub struct IMediaCompositionStatics_Vtbl { @@ -276,16 +195,7 @@ pub struct IMediaCompositionStatics_Vtbl { #[cfg(not(feature = "Storage"))] LoadAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaOverlay(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaOverlay { - type Vtable = IMediaOverlay_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaOverlay { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa902ae5d_7869_4830_8ab1_94dc01c05fa4); -} +::windows_core::imp::com_interface!(IMediaOverlay, IMediaOverlay_Vtbl, 0xa902ae5d_7869_4830_8ab1_94dc01c05fa4); #[repr(C)] #[doc(hidden)] pub struct IMediaOverlay_Vtbl { @@ -301,16 +211,7 @@ pub struct IMediaOverlay_Vtbl { pub AudioEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetAudioEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaOverlayFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaOverlayFactory { - type Vtable = IMediaOverlayFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaOverlayFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb584828a_6188_4f8f_a2e0_aa552d598e18); -} +::windows_core::imp::com_interface!(IMediaOverlayFactory, IMediaOverlayFactory_Vtbl, 0xb584828a_6188_4f8f_a2e0_aa552d598e18); #[repr(C)] #[doc(hidden)] pub struct IMediaOverlayFactory_Vtbl { @@ -318,16 +219,7 @@ pub struct IMediaOverlayFactory_Vtbl { pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, clip: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateWithPositionAndOpacity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, clip: *mut ::core::ffi::c_void, position: super::super::Foundation::Rect, opacity: f64, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaOverlayLayer(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaOverlayLayer { - type Vtable = IMediaOverlayLayer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaOverlayLayer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa6d9ba57_eeda_46c6_bbe5_e398c84168ac); -} +::windows_core::imp::com_interface!(IMediaOverlayLayer, IMediaOverlayLayer_Vtbl, 0xa6d9ba57_eeda_46c6_bbe5_e398c84168ac); #[repr(C)] #[doc(hidden)] pub struct IMediaOverlayLayer_Vtbl { @@ -342,16 +234,7 @@ pub struct IMediaOverlayLayer_Vtbl { #[cfg(not(feature = "Media_Effects"))] CustomCompositorDefinition: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaOverlayLayerFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaOverlayLayerFactory { - type Vtable = IMediaOverlayLayerFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaOverlayLayerFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x947cb473_a39e_4362_abbf_9f8b5070a062); -} +::windows_core::imp::com_interface!(IMediaOverlayLayerFactory, IMediaOverlayLayerFactory_Vtbl, 0x947cb473_a39e_4362_abbf_9f8b5070a062); #[repr(C)] #[doc(hidden)] pub struct IMediaOverlayLayerFactory_Vtbl { @@ -364,6 +247,7 @@ pub struct IMediaOverlayLayerFactory_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BackgroundAudioTrack(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BackgroundAudioTrack, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BackgroundAudioTrack { pub fn TrimTimeFromStart(&self) -> ::windows_core::Result { let this = self; @@ -470,11 +354,11 @@ impl BackgroundAudioTrack { #[cfg(feature = "Storage")] pub fn CreateFromFileAsync(file: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IBackgroundAudioTrackStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateFromFileAsync)(::windows_core::Interface::as_raw(this), file.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateFromFileAsync)(::windows_core::Interface::as_raw(this), file.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -488,19 +372,17 @@ impl ::windows_core::RuntimeType for BackgroundAudioTrack { } unsafe impl ::windows_core::Interface for BackgroundAudioTrack { type Vtable = IBackgroundAudioTrack_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BackgroundAudioTrack { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BackgroundAudioTrack { const NAME: &'static str = "Windows.Media.Editing.BackgroundAudioTrack"; } -::windows_core::imp::interface_hierarchy!(BackgroundAudioTrack, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BackgroundAudioTrack {} unsafe impl ::core::marker::Sync for BackgroundAudioTrack {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EmbeddedAudioTrack(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EmbeddedAudioTrack, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EmbeddedAudioTrack { #[doc = "Required features: `\"Media_MediaProperties\"`"] #[cfg(feature = "Media_MediaProperties")] @@ -517,19 +399,17 @@ impl ::windows_core::RuntimeType for EmbeddedAudioTrack { } unsafe impl ::windows_core::Interface for EmbeddedAudioTrack { type Vtable = IEmbeddedAudioTrack_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EmbeddedAudioTrack { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EmbeddedAudioTrack { const NAME: &'static str = "Windows.Media.Editing.EmbeddedAudioTrack"; } -::windows_core::imp::interface_hierarchy!(EmbeddedAudioTrack, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EmbeddedAudioTrack {} unsafe impl ::core::marker::Sync for EmbeddedAudioTrack {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaClip(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaClip, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaClip { pub fn TrimTimeFromStart(&self) -> ::windows_core::Result { let this = self; @@ -667,33 +547,33 @@ impl MediaClip { #[cfg(feature = "Storage")] pub fn CreateFromFileAsync(file: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IMediaClipStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateFromFileAsync)(::windows_core::Interface::as_raw(this), file.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateFromFileAsync)(::windows_core::Interface::as_raw(this), file.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Storage\"`"] #[cfg(feature = "Storage")] pub fn CreateFromImageFileAsync(file: P0, originalduration: super::super::Foundation::TimeSpan) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IMediaClipStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateFromImageFileAsync)(::windows_core::Interface::as_raw(this), file.try_into_param()?.abi(), originalduration, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateFromImageFileAsync)(::windows_core::Interface::as_raw(this), file.into_param().abi(), originalduration, &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Graphics_DirectX_Direct3D11\"`"] #[cfg(feature = "Graphics_DirectX_Direct3D11")] pub fn CreateFromSurface(surface: P0, originalduration: super::super::Foundation::TimeSpan) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IMediaClipStatics2(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateFromSurface)(::windows_core::Interface::as_raw(this), surface.try_into_param()?.abi(), originalduration, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateFromSurface)(::windows_core::Interface::as_raw(this), surface.into_param().abi(), originalduration, &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -712,19 +592,17 @@ impl ::windows_core::RuntimeType for MediaClip { } unsafe impl ::windows_core::Interface for MediaClip { type Vtable = IMediaClip_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaClip { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaClip { const NAME: &'static str = "Windows.Media.Editing.MediaClip"; } -::windows_core::imp::interface_hierarchy!(MediaClip, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaClip {} unsafe impl ::core::marker::Sync for MediaClip {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaComposition(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaComposition, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaComposition { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -778,12 +656,12 @@ impl MediaComposition { #[cfg(feature = "Storage")] pub fn SaveAsync(&self, file: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).SaveAsync)(::windows_core::Interface::as_raw(this), file.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SaveAsync)(::windows_core::Interface::as_raw(this), file.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Graphics_Imaging\"`, `\"Storage_Streams\"`"] @@ -799,49 +677,49 @@ 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::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).GetThumbnailsAsync)(::windows_core::Interface::as_raw(this), timesfromstart.try_into_param()?.abi(), scaledwidth, scaledheight, frameprecision, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).GetThumbnailsAsync)(::windows_core::Interface::as_raw(this), timesfromstart.into_param().abi(), scaledwidth, scaledheight, frameprecision, &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Media_Transcoding\"`, `\"Storage\"`"] #[cfg(all(feature = "Media_Transcoding", feature = "Storage"))] pub fn RenderToFileAsync(&self, destination: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).RenderToFileAsync)(::windows_core::Interface::as_raw(this), destination.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).RenderToFileAsync)(::windows_core::Interface::as_raw(this), destination.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Media_Transcoding\"`, `\"Storage\"`"] #[cfg(all(feature = "Media_Transcoding", feature = "Storage"))] pub fn RenderToFileWithTrimmingPreferenceAsync(&self, destination: P0, trimmingpreference: MediaTrimmingPreference) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).RenderToFileWithTrimmingPreferenceAsync)(::windows_core::Interface::as_raw(this), destination.try_into_param()?.abi(), trimmingpreference, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).RenderToFileWithTrimmingPreferenceAsync)(::windows_core::Interface::as_raw(this), destination.into_param().abi(), trimmingpreference, &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Media_MediaProperties\"`, `\"Media_Transcoding\"`, `\"Storage\"`"] #[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::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).RenderToFileWithProfileAsync)(::windows_core::Interface::as_raw(this), destination.try_into_param()?.abi(), trimmingpreference, encodingprofile.into_param().abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).RenderToFileWithProfileAsync)(::windows_core::Interface::as_raw(this), destination.into_param().abi(), trimmingpreference, encodingprofile.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Media_MediaProperties\"`"] @@ -886,7 +764,7 @@ impl MediaComposition { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn OverlayLayers(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OverlayLayers)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -914,19 +792,17 @@ impl ::windows_core::RuntimeType for MediaComposition { } unsafe impl ::windows_core::Interface for MediaComposition { type Vtable = IMediaComposition_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaComposition { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaComposition { const NAME: &'static str = "Windows.Media.Editing.MediaComposition"; } -::windows_core::imp::interface_hierarchy!(MediaComposition, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaComposition {} unsafe impl ::core::marker::Sync for MediaComposition {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaOverlay(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaOverlay, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaOverlay { pub fn Position(&self) -> ::windows_core::Result { let this = self; @@ -1015,19 +891,17 @@ impl ::windows_core::RuntimeType for MediaOverlay { } unsafe impl ::windows_core::Interface for MediaOverlay { type Vtable = IMediaOverlay_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaOverlay { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaOverlay { const NAME: &'static str = "Windows.Media.Editing.MediaOverlay"; } -::windows_core::imp::interface_hierarchy!(MediaOverlay, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaOverlay {} unsafe impl ::core::marker::Sync for MediaOverlay {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaOverlayLayer(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaOverlayLayer, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaOverlayLayer { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1065,11 +939,11 @@ impl MediaOverlayLayer { #[cfg(feature = "Media_Effects")] pub fn CreateWithCompositorDefinition(compositordefinition: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IMediaOverlayLayerFactory(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateWithCompositorDefinition)(::windows_core::Interface::as_raw(this), compositordefinition.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateWithCompositorDefinition)(::windows_core::Interface::as_raw(this), compositordefinition.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -1083,14 +957,11 @@ impl ::windows_core::RuntimeType for MediaOverlayLayer { } unsafe impl ::windows_core::Interface for MediaOverlayLayer { type Vtable = IMediaOverlayLayer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaOverlayLayer { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaOverlayLayer { const NAME: &'static str = "Windows.Media.Editing.MediaOverlayLayer"; } -::windows_core::imp::interface_hierarchy!(MediaOverlayLayer, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaOverlayLayer {} unsafe impl ::core::marker::Sync for MediaOverlayLayer {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Media/Effects/impl.rs b/crates/libs/windows/src/Windows/Media/Effects/impl.rs index 4a9468c844..39297cdce5 100644 --- a/crates/libs/windows/src/Windows/Media/Effects/impl.rs +++ b/crates/libs/windows/src/Windows/Media/Effects/impl.rs @@ -42,7 +42,7 @@ impl IAudioEffectDefinition_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Media_MediaProperties\"`"] @@ -116,7 +116,7 @@ impl IBasicAudioEffect_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Graphics_DirectX_Direct3D11\"`, `\"Media_MediaProperties\"`"] @@ -216,7 +216,7 @@ impl IBasicVideoEffect_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Graphics_DirectX_Direct3D11\"`, `\"Media_MediaProperties\"`"] @@ -276,7 +276,7 @@ impl IVideoCompositor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -323,7 +323,7 @@ impl IVideoCompositorDefinition_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -370,6 +370,6 @@ impl IVideoEffectDefinition_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/Media/Effects/mod.rs b/crates/libs/windows/src/Windows/Media/Effects/mod.rs index fc064b5f56..17c929cec5 100644 --- a/crates/libs/windows/src/Windows/Media/Effects/mod.rs +++ b/crates/libs/windows/src/Windows/Media/Effects/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioCaptureEffectsManager(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioCaptureEffectsManager { - type Vtable = IAudioCaptureEffectsManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioCaptureEffectsManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8f85c271_038d_4393_8298_540110608eef); -} +::windows_core::imp::com_interface!(IAudioCaptureEffectsManager, IAudioCaptureEffectsManager_Vtbl, 0x8f85c271_038d_4393_8298_540110608eef); #[repr(C)] #[doc(hidden)] pub struct IAudioCaptureEffectsManager_Vtbl { @@ -19,25 +10,15 @@ pub struct IAudioCaptureEffectsManager_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetAudioCaptureEffects: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioEffect(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioEffect { - type Vtable = IAudioEffect_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioEffect { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x34aafa51_9207_4055_be93_6e5734a86ae4); -} +::windows_core::imp::com_interface!(IAudioEffect, IAudioEffect_Vtbl, 0x34aafa51_9207_4055_be93_6e5734a86ae4); #[repr(C)] #[doc(hidden)] pub struct IAudioEffect_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub AudioEffectType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut AudioEffectType) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioEffectDefinition(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioEffectDefinition, IAudioEffectDefinition_Vtbl, 0xe4d7f974_7d80_4f73_9089_e31c9db9c294); +::windows_core::imp::interface_hierarchy!(IAudioEffectDefinition, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IAudioEffectDefinition { pub fn ActivatableClassId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -56,16 +37,9 @@ impl IAudioEffectDefinition { } } } -::windows_core::imp::interface_hierarchy!(IAudioEffectDefinition, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IAudioEffectDefinition { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IAudioEffectDefinition { - type Vtable = IAudioEffectDefinition_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioEffectDefinition { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe4d7f974_7d80_4f73_9089_e31c9db9c294); -} #[repr(C)] #[doc(hidden)] pub struct IAudioEffectDefinition_Vtbl { @@ -76,16 +50,7 @@ pub struct IAudioEffectDefinition_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Properties: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioEffectDefinitionFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioEffectDefinitionFactory { - type Vtable = IAudioEffectDefinitionFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioEffectDefinitionFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8e1da646_e705_45ed_8a2b_fc4e4f405a97); -} +::windows_core::imp::com_interface!(IAudioEffectDefinitionFactory, IAudioEffectDefinitionFactory_Vtbl, 0x8e1da646_e705_45ed_8a2b_fc4e4f405a97); #[repr(C)] #[doc(hidden)] pub struct IAudioEffectDefinitionFactory_Vtbl { @@ -96,16 +61,7 @@ pub struct IAudioEffectDefinitionFactory_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] CreateWithProperties: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioEffectsManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioEffectsManagerStatics { - type Vtable = IAudioEffectsManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioEffectsManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x66406c04_86fa_47cc_a315_f489d8c3fe10); -} +::windows_core::imp::com_interface!(IAudioEffectsManagerStatics, IAudioEffectsManagerStatics_Vtbl, 0x66406c04_86fa_47cc_a315_f489d8c3fe10); #[repr(C)] #[doc(hidden)] pub struct IAudioEffectsManagerStatics_Vtbl { @@ -127,16 +83,7 @@ pub struct IAudioEffectsManagerStatics_Vtbl { #[cfg(not(feature = "Media_Capture"))] CreateAudioCaptureEffectsManagerWithMode: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioRenderEffectsManager(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioRenderEffectsManager { - type Vtable = IAudioRenderEffectsManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioRenderEffectsManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4dc98966_8751_42b2_bfcb_39ca7864bd47); -} +::windows_core::imp::com_interface!(IAudioRenderEffectsManager, IAudioRenderEffectsManager_Vtbl, 0x4dc98966_8751_42b2_bfcb_39ca7864bd47); #[repr(C)] #[doc(hidden)] pub struct IAudioRenderEffectsManager_Vtbl { @@ -148,19 +95,13 @@ pub struct IAudioRenderEffectsManager_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetAudioRenderEffects: usize, } -#[doc(hidden)] -#[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioRenderEffectsManager2(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for IAudioRenderEffectsManager2 { - type Vtable = IAudioRenderEffectsManager2_Vtbl; -} #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for IAudioRenderEffectsManager2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa844cd09_5ecc_44b3_bb4e_1db07287139c); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + IAudioRenderEffectsManager2, + IAudioRenderEffectsManager2_Vtbl, + 0xa844cd09_5ecc_44b3_bb4e_1db07287139c +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -179,9 +120,9 @@ pub struct IAudioRenderEffectsManager2_Vtbl { #[cfg(not(feature = "deprecated"))] ShowSettingsUI: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBasicAudioEffect(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBasicAudioEffect, IBasicAudioEffect_Vtbl, 0x8c062c53_6bc0_48b8_a99a_4b41550f1359); +::windows_core::imp::interface_hierarchy!(IBasicAudioEffect, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IBasicAudioEffect, super::IMediaExtension); impl IBasicAudioEffect { pub fn UseInputFrameForOutput(&self) -> ::windows_core::Result { let this = self; @@ -227,23 +168,15 @@ impl IBasicAudioEffect { #[cfg(feature = "Foundation_Collections")] pub fn SetProperties(&self, configuration: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetProperties)(::windows_core::Interface::as_raw(this), configuration.try_into_param()?.abi()).ok() } + 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() } } } -::windows_core::imp::interface_hierarchy!(IBasicAudioEffect, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IBasicAudioEffect {} impl ::windows_core::RuntimeType for IBasicAudioEffect { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IBasicAudioEffect { - type Vtable = IBasicAudioEffect_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBasicAudioEffect { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8c062c53_6bc0_48b8_a99a_4b41550f1359); -} #[repr(C)] #[doc(hidden)] pub struct IBasicAudioEffect_Vtbl { @@ -261,9 +194,9 @@ pub struct IBasicAudioEffect_Vtbl { pub Close: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, reason: MediaEffectClosedReason) -> ::windows_core::HRESULT, pub DiscardQueuedFrames: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBasicVideoEffect(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBasicVideoEffect, IBasicVideoEffect_Vtbl, 0x8262c7ef_b360_40be_949b_2ff42ff35693); +::windows_core::imp::interface_hierarchy!(IBasicVideoEffect, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IBasicVideoEffect, super::IMediaExtension); impl IBasicVideoEffect { pub fn IsReadOnly(&self) -> ::windows_core::Result { let this = self; @@ -300,10 +233,10 @@ impl IBasicVideoEffect { pub fn SetEncodingProperties(&self, encodingproperties: P0, device: P1) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam, + P1: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetEncodingProperties)(::windows_core::Interface::as_raw(this), encodingproperties.into_param().abi(), device.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetEncodingProperties)(::windows_core::Interface::as_raw(this), encodingproperties.into_param().abi(), device.into_param().abi()).ok() } } pub fn ProcessFrame(&self, context: P0) -> ::windows_core::Result<()> where @@ -324,23 +257,15 @@ impl IBasicVideoEffect { #[cfg(feature = "Foundation_Collections")] pub fn SetProperties(&self, configuration: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetProperties)(::windows_core::Interface::as_raw(this), configuration.try_into_param()?.abi()).ok() } + 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() } } } -::windows_core::imp::interface_hierarchy!(IBasicVideoEffect, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IBasicVideoEffect {} impl ::windows_core::RuntimeType for IBasicVideoEffect { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IBasicVideoEffect { - type Vtable = IBasicVideoEffect_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBasicVideoEffect { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8262c7ef_b360_40be_949b_2ff42ff35693); -} #[repr(C)] #[doc(hidden)] pub struct IBasicVideoEffect_Vtbl { @@ -360,16 +285,7 @@ pub struct IBasicVideoEffect_Vtbl { pub Close: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, reason: MediaEffectClosedReason) -> ::windows_core::HRESULT, pub DiscardQueuedFrames: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositeVideoFrameContext(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositeVideoFrameContext { - type Vtable = ICompositeVideoFrameContext_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositeVideoFrameContext { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6c30024b_f514_4278_a5f7_b9188049d110); -} +::windows_core::imp::com_interface!(ICompositeVideoFrameContext, ICompositeVideoFrameContext_Vtbl, 0x6c30024b_f514_4278_a5f7_b9188049d110); #[repr(C)] #[doc(hidden)] pub struct ICompositeVideoFrameContext_Vtbl { @@ -385,16 +301,7 @@ pub struct ICompositeVideoFrameContext_Vtbl { #[cfg(not(all(feature = "Graphics_DirectX_Direct3D11", feature = "Media_Editing")))] GetOverlayForSurface: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProcessAudioFrameContext(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProcessAudioFrameContext { - type Vtable = IProcessAudioFrameContext_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProcessAudioFrameContext { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4cd92946_1222_4a27_a586_fb3e20273255); -} +::windows_core::imp::com_interface!(IProcessAudioFrameContext, IProcessAudioFrameContext_Vtbl, 0x4cd92946_1222_4a27_a586_fb3e20273255); #[repr(C)] #[doc(hidden)] pub struct IProcessAudioFrameContext_Vtbl { @@ -402,16 +309,7 @@ pub struct IProcessAudioFrameContext_Vtbl { pub InputFrame: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub OutputFrame: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProcessVideoFrameContext(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProcessVideoFrameContext { - type Vtable = IProcessVideoFrameContext_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProcessVideoFrameContext { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x276f0e2b_6461_401e_ba78_0fdad6114eec); -} +::windows_core::imp::com_interface!(IProcessVideoFrameContext, IProcessVideoFrameContext_Vtbl, 0x276f0e2b_6461_401e_ba78_0fdad6114eec); #[repr(C)] #[doc(hidden)] pub struct IProcessVideoFrameContext_Vtbl { @@ -419,16 +317,7 @@ pub struct IProcessVideoFrameContext_Vtbl { pub InputFrame: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub OutputFrame: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISlowMotionEffectDefinition(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISlowMotionEffectDefinition { - type Vtable = ISlowMotionEffectDefinition_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISlowMotionEffectDefinition { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x35053cd0_176c_4763_82c4_1b02dbe31737); -} +::windows_core::imp::com_interface!(ISlowMotionEffectDefinition, ISlowMotionEffectDefinition_Vtbl, 0x35053cd0_176c_4763_82c4_1b02dbe31737); #[repr(C)] #[doc(hidden)] pub struct ISlowMotionEffectDefinition_Vtbl { @@ -436,9 +325,9 @@ pub struct ISlowMotionEffectDefinition_Vtbl { pub TimeStretchRate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows_core::HRESULT, pub SetTimeStretchRate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVideoCompositor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVideoCompositor, IVideoCompositor_Vtbl, 0x8510b43e_420c_420f_96c7_7c98bba1fc55); +::windows_core::imp::interface_hierarchy!(IVideoCompositor, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IVideoCompositor, super::IMediaExtension); impl IVideoCompositor { pub fn TimeIndependent(&self) -> ::windows_core::Result { let this = self; @@ -452,10 +341,10 @@ impl IVideoCompositor { pub fn SetEncodingProperties(&self, backgroundproperties: P0, device: P1) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam, + P1: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetEncodingProperties)(::windows_core::Interface::as_raw(this), backgroundproperties.into_param().abi(), device.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetEncodingProperties)(::windows_core::Interface::as_raw(this), backgroundproperties.into_param().abi(), device.into_param().abi()).ok() } } pub fn CompositeFrame(&self, context: P0) -> ::windows_core::Result<()> where @@ -476,23 +365,15 @@ impl IVideoCompositor { #[cfg(feature = "Foundation_Collections")] pub fn SetProperties(&self, configuration: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetProperties)(::windows_core::Interface::as_raw(this), configuration.try_into_param()?.abi()).ok() } + 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() } } } -::windows_core::imp::interface_hierarchy!(IVideoCompositor, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IVideoCompositor {} impl ::windows_core::RuntimeType for IVideoCompositor { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IVideoCompositor { - type Vtable = IVideoCompositor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVideoCompositor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8510b43e_420c_420f_96c7_7c98bba1fc55); -} #[repr(C)] #[doc(hidden)] pub struct IVideoCompositor_Vtbl { @@ -506,9 +387,8 @@ pub struct IVideoCompositor_Vtbl { pub Close: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, reason: MediaEffectClosedReason) -> ::windows_core::HRESULT, pub DiscardQueuedFrames: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVideoCompositorDefinition(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVideoCompositorDefinition, IVideoCompositorDefinition_Vtbl, 0x7946b8d0_2010_4ae3_9ab2_2cef42edd4d2); +::windows_core::imp::interface_hierarchy!(IVideoCompositorDefinition, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IVideoCompositorDefinition { pub fn ActivatableClassId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -527,16 +407,9 @@ impl IVideoCompositorDefinition { } } } -::windows_core::imp::interface_hierarchy!(IVideoCompositorDefinition, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IVideoCompositorDefinition { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IVideoCompositorDefinition { - type Vtable = IVideoCompositorDefinition_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVideoCompositorDefinition { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7946b8d0_2010_4ae3_9ab2_2cef42edd4d2); -} #[repr(C)] #[doc(hidden)] pub struct IVideoCompositorDefinition_Vtbl { @@ -547,16 +420,7 @@ pub struct IVideoCompositorDefinition_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Properties: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVideoCompositorDefinitionFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVideoCompositorDefinitionFactory { - type Vtable = IVideoCompositorDefinitionFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVideoCompositorDefinitionFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4366fd10_68b8_4d52_89b6_02a968cca899); -} +::windows_core::imp::com_interface!(IVideoCompositorDefinitionFactory, IVideoCompositorDefinitionFactory_Vtbl, 0x4366fd10_68b8_4d52_89b6_02a968cca899); #[repr(C)] #[doc(hidden)] pub struct IVideoCompositorDefinitionFactory_Vtbl { @@ -567,9 +431,8 @@ pub struct IVideoCompositorDefinitionFactory_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] CreateWithProperties: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVideoEffectDefinition(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVideoEffectDefinition, IVideoEffectDefinition_Vtbl, 0x39f38cf0_8d0f_4f3e_84fc_2d46a5297943); +::windows_core::imp::interface_hierarchy!(IVideoEffectDefinition, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IVideoEffectDefinition { pub fn ActivatableClassId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -588,16 +451,9 @@ impl IVideoEffectDefinition { } } } -::windows_core::imp::interface_hierarchy!(IVideoEffectDefinition, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IVideoEffectDefinition { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IVideoEffectDefinition { - type Vtable = IVideoEffectDefinition_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVideoEffectDefinition { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x39f38cf0_8d0f_4f3e_84fc_2d46a5297943); -} #[repr(C)] #[doc(hidden)] pub struct IVideoEffectDefinition_Vtbl { @@ -608,16 +464,7 @@ pub struct IVideoEffectDefinition_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Properties: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVideoEffectDefinitionFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVideoEffectDefinitionFactory { - type Vtable = IVideoEffectDefinitionFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVideoEffectDefinitionFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x81439b4e_6e33_428f_9d21_b5aafef7617c); -} +::windows_core::imp::com_interface!(IVideoEffectDefinitionFactory, IVideoEffectDefinitionFactory_Vtbl, 0x81439b4e_6e33_428f_9d21_b5aafef7617c); #[repr(C)] #[doc(hidden)] pub struct IVideoEffectDefinitionFactory_Vtbl { @@ -628,16 +475,7 @@ pub struct IVideoEffectDefinitionFactory_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] CreateWithProperties: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVideoTransformEffectDefinition(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVideoTransformEffectDefinition { - type Vtable = IVideoTransformEffectDefinition_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVideoTransformEffectDefinition { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9664bb6a_1ea6_4aa6_8074_abe8851ecae2); -} +::windows_core::imp::com_interface!(IVideoTransformEffectDefinition, IVideoTransformEffectDefinition_Vtbl, 0x9664bb6a_1ea6_4aa6_8074_abe8851ecae2); #[repr(C)] #[doc(hidden)] pub struct IVideoTransformEffectDefinition_Vtbl { @@ -679,32 +517,14 @@ pub struct IVideoTransformEffectDefinition_Vtbl { #[cfg(not(feature = "Media_Transcoding"))] ProcessingAlgorithm: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVideoTransformEffectDefinition2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVideoTransformEffectDefinition2 { - type Vtable = IVideoTransformEffectDefinition2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVideoTransformEffectDefinition2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf0a8089f_66c8_4694_9fd9_1136abf7444a); -} +::windows_core::imp::com_interface!(IVideoTransformEffectDefinition2, IVideoTransformEffectDefinition2_Vtbl, 0xf0a8089f_66c8_4694_9fd9_1136abf7444a); #[repr(C)] #[doc(hidden)] pub struct IVideoTransformEffectDefinition2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub SphericalProjection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVideoTransformSphericalProjection(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVideoTransformSphericalProjection { - type Vtable = IVideoTransformSphericalProjection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVideoTransformSphericalProjection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcf4401f0_9bf2_4c39_9f41_e022514a8468); -} +::windows_core::imp::com_interface!(IVideoTransformSphericalProjection, IVideoTransformSphericalProjection_Vtbl, 0xcf4401f0_9bf2_4c39_9f41_e022514a8468); #[repr(C)] #[doc(hidden)] pub struct IVideoTransformSphericalProjection_Vtbl { @@ -741,6 +561,7 @@ pub struct IVideoTransformSphericalProjection_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AudioCaptureEffectsManager(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AudioCaptureEffectsManager, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AudioCaptureEffectsManager { pub fn AudioCaptureEffectsChanged(&self, handler: P0) -> ::windows_core::Result where @@ -771,19 +592,17 @@ impl ::windows_core::RuntimeType for AudioCaptureEffectsManager { } unsafe impl ::windows_core::Interface for AudioCaptureEffectsManager { type Vtable = IAudioCaptureEffectsManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AudioCaptureEffectsManager { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AudioCaptureEffectsManager { const NAME: &'static str = "Windows.Media.Effects.AudioCaptureEffectsManager"; } -::windows_core::imp::interface_hierarchy!(AudioCaptureEffectsManager, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AudioCaptureEffectsManager {} unsafe impl ::core::marker::Sync for AudioCaptureEffectsManager {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AudioEffect(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AudioEffect, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AudioEffect { pub fn AudioEffectType(&self) -> ::windows_core::Result { let this = self; @@ -798,19 +617,18 @@ impl ::windows_core::RuntimeType for AudioEffect { } unsafe impl ::windows_core::Interface for AudioEffect { type Vtable = IAudioEffect_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AudioEffect { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AudioEffect { const NAME: &'static str = "Windows.Media.Effects.AudioEffect"; } -::windows_core::imp::interface_hierarchy!(AudioEffect, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AudioEffect {} unsafe impl ::core::marker::Sync for AudioEffect {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AudioEffectDefinition(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AudioEffectDefinition, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(AudioEffectDefinition, IAudioEffectDefinition); impl AudioEffectDefinition { pub fn ActivatableClassId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -838,11 +656,11 @@ impl AudioEffectDefinition { #[cfg(feature = "Foundation_Collections")] pub fn CreateWithProperties(activatableclassid: &::windows_core::HSTRING, props: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateWithProperties)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(activatableclassid), props.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -856,15 +674,11 @@ impl ::windows_core::RuntimeType for AudioEffectDefinition { } unsafe impl ::windows_core::Interface for AudioEffectDefinition { type Vtable = IAudioEffectDefinition_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AudioEffectDefinition { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AudioEffectDefinition { const NAME: &'static str = "Windows.Media.Effects.AudioEffectDefinition"; } -::windows_core::imp::interface_hierarchy!(AudioEffectDefinition, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for AudioEffectDefinition {} unsafe impl ::core::marker::Send for AudioEffectDefinition {} unsafe impl ::core::marker::Sync for AudioEffectDefinition {} pub struct AudioEffectsManager; @@ -913,6 +727,7 @@ impl ::windows_core::RuntimeName for AudioEffectsManager { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AudioRenderEffectsManager(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AudioRenderEffectsManager, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AudioRenderEffectsManager { pub fn AudioRenderEffectsChanged(&self, handler: P0) -> ::windows_core::Result where @@ -940,7 +755,7 @@ impl AudioRenderEffectsManager { #[doc = "Required features: `\"Storage_Streams\"`, `\"deprecated\"`"] #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] pub fn EffectsProviderThumbnail(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).EffectsProviderThumbnail)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -949,7 +764,7 @@ impl AudioRenderEffectsManager { #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] pub fn EffectsProviderSettingsLabel(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).EffectsProviderSettingsLabel)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -958,7 +773,7 @@ impl AudioRenderEffectsManager { #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] pub fn ShowSettingsUI(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ShowSettingsUI)(::windows_core::Interface::as_raw(this)).ok() } } } @@ -967,19 +782,17 @@ impl ::windows_core::RuntimeType for AudioRenderEffectsManager { } unsafe impl ::windows_core::Interface for AudioRenderEffectsManager { type Vtable = IAudioRenderEffectsManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AudioRenderEffectsManager { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AudioRenderEffectsManager { const NAME: &'static str = "Windows.Media.Effects.AudioRenderEffectsManager"; } -::windows_core::imp::interface_hierarchy!(AudioRenderEffectsManager, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AudioRenderEffectsManager {} unsafe impl ::core::marker::Sync for AudioRenderEffectsManager {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CompositeVideoFrameContext(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CompositeVideoFrameContext, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CompositeVideoFrameContext { #[doc = "Required features: `\"Foundation_Collections\"`, `\"Graphics_DirectX_Direct3D11\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Graphics_DirectX_Direct3D11"))] @@ -1008,12 +821,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::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).GetOverlayForSurface)(::windows_core::Interface::as_raw(this), surfacetooverlay.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).GetOverlayForSurface)(::windows_core::Interface::as_raw(this), surfacetooverlay.into_param().abi(), &mut result__).from_abi(result__) } } } @@ -1022,19 +835,17 @@ impl ::windows_core::RuntimeType for CompositeVideoFrameContext { } unsafe impl ::windows_core::Interface for CompositeVideoFrameContext { type Vtable = ICompositeVideoFrameContext_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CompositeVideoFrameContext { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CompositeVideoFrameContext { const NAME: &'static str = "Windows.Media.Effects.CompositeVideoFrameContext"; } -::windows_core::imp::interface_hierarchy!(CompositeVideoFrameContext, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CompositeVideoFrameContext {} unsafe impl ::core::marker::Sync for CompositeVideoFrameContext {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ProcessAudioFrameContext(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ProcessAudioFrameContext, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ProcessAudioFrameContext { pub fn InputFrame(&self) -> ::windows_core::Result { let this = self; @@ -1056,19 +867,17 @@ impl ::windows_core::RuntimeType for ProcessAudioFrameContext { } unsafe impl ::windows_core::Interface for ProcessAudioFrameContext { type Vtable = IProcessAudioFrameContext_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ProcessAudioFrameContext { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ProcessAudioFrameContext { const NAME: &'static str = "Windows.Media.Effects.ProcessAudioFrameContext"; } -::windows_core::imp::interface_hierarchy!(ProcessAudioFrameContext, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ProcessAudioFrameContext {} unsafe impl ::core::marker::Sync for ProcessAudioFrameContext {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ProcessVideoFrameContext(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ProcessVideoFrameContext, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ProcessVideoFrameContext { pub fn InputFrame(&self) -> ::windows_core::Result { let this = self; @@ -1090,19 +899,18 @@ impl ::windows_core::RuntimeType for ProcessVideoFrameContext { } unsafe impl ::windows_core::Interface for ProcessVideoFrameContext { type Vtable = IProcessVideoFrameContext_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ProcessVideoFrameContext { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ProcessVideoFrameContext { const NAME: &'static str = "Windows.Media.Effects.ProcessVideoFrameContext"; } -::windows_core::imp::interface_hierarchy!(ProcessVideoFrameContext, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ProcessVideoFrameContext {} unsafe impl ::core::marker::Sync for ProcessVideoFrameContext {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SlowMotionEffectDefinition(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SlowMotionEffectDefinition, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(SlowMotionEffectDefinition, IVideoEffectDefinition); impl SlowMotionEffectDefinition { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1123,7 +931,7 @@ impl SlowMotionEffectDefinition { unsafe { (::windows_core::Interface::vtable(this).SetTimeStretchRate)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn ActivatableClassId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ActivatableClassId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1132,7 +940,7 @@ impl SlowMotionEffectDefinition { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1144,20 +952,18 @@ impl ::windows_core::RuntimeType for SlowMotionEffectDefinition { } unsafe impl ::windows_core::Interface for SlowMotionEffectDefinition { type Vtable = ISlowMotionEffectDefinition_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SlowMotionEffectDefinition { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SlowMotionEffectDefinition { const NAME: &'static str = "Windows.Media.Effects.SlowMotionEffectDefinition"; } -::windows_core::imp::interface_hierarchy!(SlowMotionEffectDefinition, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for SlowMotionEffectDefinition {} unsafe impl ::core::marker::Send for SlowMotionEffectDefinition {} unsafe impl ::core::marker::Sync for SlowMotionEffectDefinition {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VideoCompositorDefinition(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VideoCompositorDefinition, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(VideoCompositorDefinition, IVideoCompositorDefinition); impl VideoCompositorDefinition { pub fn ActivatableClassId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1185,11 +991,11 @@ impl VideoCompositorDefinition { #[cfg(feature = "Foundation_Collections")] pub fn CreateWithProperties(activatableclassid: &::windows_core::HSTRING, props: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateWithProperties)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(activatableclassid), props.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -1203,20 +1009,18 @@ impl ::windows_core::RuntimeType for VideoCompositorDefinition { } unsafe impl ::windows_core::Interface for VideoCompositorDefinition { type Vtable = IVideoCompositorDefinition_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VideoCompositorDefinition { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VideoCompositorDefinition { const NAME: &'static str = "Windows.Media.Effects.VideoCompositorDefinition"; } -::windows_core::imp::interface_hierarchy!(VideoCompositorDefinition, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for VideoCompositorDefinition {} unsafe impl ::core::marker::Send for VideoCompositorDefinition {} unsafe impl ::core::marker::Sync for VideoCompositorDefinition {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VideoEffectDefinition(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VideoEffectDefinition, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(VideoEffectDefinition, IVideoEffectDefinition); impl VideoEffectDefinition { pub fn ActivatableClassId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1244,11 +1048,11 @@ impl VideoEffectDefinition { #[cfg(feature = "Foundation_Collections")] pub fn CreateWithProperties(activatableclassid: &::windows_core::HSTRING, props: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateWithProperties)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(activatableclassid), props.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -1262,20 +1066,18 @@ impl ::windows_core::RuntimeType for VideoEffectDefinition { } unsafe impl ::windows_core::Interface for VideoEffectDefinition { type Vtable = IVideoEffectDefinition_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VideoEffectDefinition { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VideoEffectDefinition { const NAME: &'static str = "Windows.Media.Effects.VideoEffectDefinition"; } -::windows_core::imp::interface_hierarchy!(VideoEffectDefinition, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for VideoEffectDefinition {} unsafe impl ::core::marker::Send for VideoEffectDefinition {} unsafe impl ::core::marker::Sync for VideoEffectDefinition {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VideoTransformEffectDefinition(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VideoTransformEffectDefinition, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(VideoTransformEffectDefinition, IVideoEffectDefinition); impl VideoTransformEffectDefinition { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1303,7 +1105,7 @@ impl VideoTransformEffectDefinition { #[doc = "Required features: `\"UI\"`"] #[cfg(feature = "UI")] pub fn PaddingColor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PaddingColor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1312,35 +1114,35 @@ impl VideoTransformEffectDefinition { #[doc = "Required features: `\"UI\"`"] #[cfg(feature = "UI")] pub fn SetPaddingColor(&self, value: super::super::UI::Color) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetPaddingColor)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn OutputSize(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OutputSize)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetOutputSize(&self, value: super::super::Foundation::Size) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetOutputSize)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn CropRectangle(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CropRectangle)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetCropRectangle(&self, value: super::super::Foundation::Rect) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCropRectangle)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Media_MediaProperties\"`"] #[cfg(feature = "Media_MediaProperties")] pub fn Rotation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Rotation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1349,13 +1151,13 @@ impl VideoTransformEffectDefinition { #[doc = "Required features: `\"Media_MediaProperties\"`"] #[cfg(feature = "Media_MediaProperties")] pub fn SetRotation(&self, value: super::MediaProperties::MediaRotation) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRotation)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Media_MediaProperties\"`"] #[cfg(feature = "Media_MediaProperties")] pub fn Mirror(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Mirror)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1364,26 +1166,26 @@ impl VideoTransformEffectDefinition { #[doc = "Required features: `\"Media_MediaProperties\"`"] #[cfg(feature = "Media_MediaProperties")] pub fn SetMirror(&self, value: super::MediaProperties::MediaMirroringOptions) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMirror)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Media_Transcoding\"`"] #[cfg(feature = "Media_Transcoding")] pub fn SetProcessingAlgorithm(&self, value: super::Transcoding::MediaVideoProcessingAlgorithm) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetProcessingAlgorithm)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Media_Transcoding\"`"] #[cfg(feature = "Media_Transcoding")] pub fn ProcessingAlgorithm(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ProcessingAlgorithm)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SphericalProjection(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SphericalProjection)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1395,20 +1197,17 @@ impl ::windows_core::RuntimeType for VideoTransformEffectDefinition { } unsafe impl ::windows_core::Interface for VideoTransformEffectDefinition { type Vtable = IVideoEffectDefinition_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VideoTransformEffectDefinition { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VideoTransformEffectDefinition { const NAME: &'static str = "Windows.Media.Effects.VideoTransformEffectDefinition"; } -::windows_core::imp::interface_hierarchy!(VideoTransformEffectDefinition, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for VideoTransformEffectDefinition {} unsafe impl ::core::marker::Send for VideoTransformEffectDefinition {} unsafe impl ::core::marker::Sync for VideoTransformEffectDefinition {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VideoTransformSphericalProjection(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VideoTransformSphericalProjection, ::windows_core::IUnknown, ::windows_core::IInspectable); impl VideoTransformSphericalProjection { pub fn IsEnabled(&self) -> ::windows_core::Result { let this = self; @@ -1483,14 +1282,11 @@ impl ::windows_core::RuntimeType for VideoTransformSphericalProjection { } unsafe impl ::windows_core::Interface for VideoTransformSphericalProjection { type Vtable = IVideoTransformSphericalProjection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VideoTransformSphericalProjection { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VideoTransformSphericalProjection { const NAME: &'static str = "Windows.Media.Effects.VideoTransformSphericalProjection"; } -::windows_core::imp::interface_hierarchy!(VideoTransformSphericalProjection, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for VideoTransformSphericalProjection {} unsafe impl ::core::marker::Sync for VideoTransformSphericalProjection {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Media/FaceAnalysis/mod.rs b/crates/libs/windows/src/Windows/Media/FaceAnalysis/mod.rs index fc80c68d19..c1c13f4edb 100644 --- a/crates/libs/windows/src/Windows/Media/FaceAnalysis/mod.rs +++ b/crates/libs/windows/src/Windows/Media/FaceAnalysis/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDetectedFace(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDetectedFace { - type Vtable = IDetectedFace_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDetectedFace { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8200d454_66bc_34df_9410_e89400195414); -} +::windows_core::imp::com_interface!(IDetectedFace, IDetectedFace_Vtbl, 0x8200d454_66bc_34df_9410_e89400195414); #[repr(C)] #[doc(hidden)] pub struct IDetectedFace_Vtbl { @@ -17,16 +8,7 @@ pub struct IDetectedFace_Vtbl { #[cfg(not(feature = "Graphics_Imaging"))] FaceBox: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFaceDetector(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFaceDetector { - type Vtable = IFaceDetector_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFaceDetector { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x16b672dc_fe6f_3117_8d95_c3f04d51630c); -} +::windows_core::imp::com_interface!(IFaceDetector, IFaceDetector_Vtbl, 0x16b672dc_fe6f_3117_8d95_c3f04d51630c); #[repr(C)] #[doc(hidden)] pub struct IFaceDetector_Vtbl { @@ -56,16 +38,7 @@ pub struct IFaceDetector_Vtbl { #[cfg(not(feature = "Graphics_Imaging"))] SetMaxDetectableFaceSize: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFaceDetectorStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFaceDetectorStatics { - type Vtable = IFaceDetectorStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFaceDetectorStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbc042d67_9047_33f6_881b_6746c1b218b8); -} +::windows_core::imp::com_interface!(IFaceDetectorStatics, IFaceDetectorStatics_Vtbl, 0xbc042d67_9047_33f6_881b_6746c1b218b8); #[repr(C)] #[doc(hidden)] pub struct IFaceDetectorStatics_Vtbl { @@ -81,16 +54,7 @@ pub struct IFaceDetectorStatics_Vtbl { IsBitmapPixelFormatSupported: usize, pub IsSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFaceTracker(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFaceTracker { - type Vtable = IFaceTracker_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFaceTracker { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6ba67d8c_a841_4420_93e6_2420a1884fcf); -} +::windows_core::imp::com_interface!(IFaceTracker, IFaceTracker_Vtbl, 0x6ba67d8c_a841_4420_93e6_2420a1884fcf); #[repr(C)] #[doc(hidden)] pub struct IFaceTracker_Vtbl { @@ -116,16 +80,7 @@ pub struct IFaceTracker_Vtbl { #[cfg(not(feature = "Graphics_Imaging"))] SetMaxDetectableFaceSize: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFaceTrackerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFaceTrackerStatics { - type Vtable = IFaceTrackerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFaceTrackerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe9629198_1801_3fa5_932e_31d767af6c4d); -} +::windows_core::imp::com_interface!(IFaceTrackerStatics, IFaceTrackerStatics_Vtbl, 0xe9629198_1801_3fa5_932e_31d767af6c4d); #[repr(C)] #[doc(hidden)] pub struct IFaceTrackerStatics_Vtbl { @@ -144,6 +99,7 @@ pub struct IFaceTrackerStatics_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DetectedFace(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DetectedFace, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DetectedFace { #[doc = "Required features: `\"Graphics_Imaging\"`"] #[cfg(feature = "Graphics_Imaging")] @@ -160,19 +116,17 @@ impl ::windows_core::RuntimeType for DetectedFace { } unsafe impl ::windows_core::Interface for DetectedFace { type Vtable = IDetectedFace_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DetectedFace { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DetectedFace { const NAME: &'static str = "Windows.Media.FaceAnalysis.DetectedFace"; } -::windows_core::imp::interface_hierarchy!(DetectedFace, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DetectedFace {} unsafe impl ::core::marker::Sync for DetectedFace {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct FaceDetector(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(FaceDetector, ::windows_core::IUnknown, ::windows_core::IInspectable); impl FaceDetector { #[doc = "Required features: `\"Foundation_Collections\"`, `\"Graphics_Imaging\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Graphics_Imaging"))] @@ -267,19 +221,17 @@ impl ::windows_core::RuntimeType for FaceDetector { } unsafe impl ::windows_core::Interface for FaceDetector { type Vtable = IFaceDetector_Vtbl; -} -unsafe impl ::windows_core::ComInterface for FaceDetector { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for FaceDetector { const NAME: &'static str = "Windows.Media.FaceAnalysis.FaceDetector"; } -::windows_core::imp::interface_hierarchy!(FaceDetector, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for FaceDetector {} unsafe impl ::core::marker::Sync for FaceDetector {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct FaceTracker(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(FaceTracker, ::windows_core::IUnknown, ::windows_core::IInspectable); impl FaceTracker { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -362,13 +314,10 @@ impl ::windows_core::RuntimeType for FaceTracker { } unsafe impl ::windows_core::Interface for FaceTracker { type Vtable = IFaceTracker_Vtbl; -} -unsafe impl ::windows_core::ComInterface for FaceTracker { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for FaceTracker { const NAME: &'static str = "Windows.Media.FaceAnalysis.FaceTracker"; } -::windows_core::imp::interface_hierarchy!(FaceTracker, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for FaceTracker {} unsafe impl ::core::marker::Sync for FaceTracker {} diff --git a/crates/libs/windows/src/Windows/Media/Import/mod.rs b/crates/libs/windows/src/Windows/Media/Import/mod.rs index 711dfc4787..603013ae99 100644 --- a/crates/libs/windows/src/Windows/Media/Import/mod.rs +++ b/crates/libs/windows/src/Windows/Media/Import/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhotoImportDeleteImportedItemsFromSourceResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhotoImportDeleteImportedItemsFromSourceResult { - type Vtable = IPhotoImportDeleteImportedItemsFromSourceResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhotoImportDeleteImportedItemsFromSourceResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf4e112f8_843d_428a_a1a6_81510292b0ae); -} +::windows_core::imp::com_interface!(IPhotoImportDeleteImportedItemsFromSourceResult, IPhotoImportDeleteImportedItemsFromSourceResult_Vtbl, 0xf4e112f8_843d_428a_a1a6_81510292b0ae); #[repr(C)] #[doc(hidden)] pub struct IPhotoImportDeleteImportedItemsFromSourceResult_Vtbl { @@ -29,16 +20,7 @@ pub struct IPhotoImportDeleteImportedItemsFromSourceResult_Vtbl { pub TotalCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, pub TotalSizeInBytes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u64) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhotoImportFindItemsResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhotoImportFindItemsResult { - type Vtable = IPhotoImportFindItemsResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhotoImportFindItemsResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3915e647_6c78_492b_844e_8fe5e8f6bfb9); -} +::windows_core::imp::com_interface!(IPhotoImportFindItemsResult, IPhotoImportFindItemsResult_Vtbl, 0x3915e647_6c78_492b_844e_8fe5e8f6bfb9); #[repr(C)] #[doc(hidden)] pub struct IPhotoImportFindItemsResult_Vtbl { @@ -80,32 +62,14 @@ pub struct IPhotoImportFindItemsResult_Vtbl { pub ItemImported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveItemImported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhotoImportFindItemsResult2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhotoImportFindItemsResult2 { - type Vtable = IPhotoImportFindItemsResult2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhotoImportFindItemsResult2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfbdd6a3b_ecf9_406a_815e_5015625b0a88); -} +::windows_core::imp::com_interface!(IPhotoImportFindItemsResult2, IPhotoImportFindItemsResult2_Vtbl, 0xfbdd6a3b_ecf9_406a_815e_5015625b0a88); #[repr(C)] #[doc(hidden)] pub struct IPhotoImportFindItemsResult2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub AddItemsInDateRangeToSelection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rangestart: super::super::Foundation::DateTime, rangelength: super::super::Foundation::TimeSpan) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhotoImportImportItemsResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhotoImportImportItemsResult { - type Vtable = IPhotoImportImportItemsResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhotoImportImportItemsResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe4d4f478_d419_4443_a84e_f06a850c0b00); -} +::windows_core::imp::com_interface!(IPhotoImportImportItemsResult, IPhotoImportImportItemsResult_Vtbl, 0xe4d4f478_d419_4443_a84e_f06a850c0b00); #[repr(C)] #[doc(hidden)] pub struct IPhotoImportImportItemsResult_Vtbl { @@ -128,16 +92,7 @@ pub struct IPhotoImportImportItemsResult_Vtbl { pub TotalSizeInBytes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u64) -> ::windows_core::HRESULT, pub DeleteImportedItemsFromSourceAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhotoImportItem(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhotoImportItem { - type Vtable = IPhotoImportItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhotoImportItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa9d07e76_9bfc_43b8_b356_633b6a988c9e); -} +::windows_core::imp::com_interface!(IPhotoImportItem, IPhotoImportItem_Vtbl, 0xa9d07e76_9bfc_43b8_b356_633b6a988c9e); #[repr(C)] #[doc(hidden)] pub struct IPhotoImportItem_Vtbl { @@ -171,48 +126,21 @@ pub struct IPhotoImportItem_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] DeletedFileNames: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhotoImportItem2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhotoImportItem2 { - type Vtable = IPhotoImportItem2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhotoImportItem2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf1053505_f53b_46a3_9e30_3610791a9110); -} +::windows_core::imp::com_interface!(IPhotoImportItem2, IPhotoImportItem2_Vtbl, 0xf1053505_f53b_46a3_9e30_3610791a9110); #[repr(C)] #[doc(hidden)] pub struct IPhotoImportItem2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Path: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhotoImportItemImportedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhotoImportItemImportedEventArgs { - type Vtable = IPhotoImportItemImportedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhotoImportItemImportedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x42cb2fdd_7d68_47b5_bc7c_ceb73e0c77dc); -} +::windows_core::imp::com_interface!(IPhotoImportItemImportedEventArgs, IPhotoImportItemImportedEventArgs_Vtbl, 0x42cb2fdd_7d68_47b5_bc7c_ceb73e0c77dc); #[repr(C)] #[doc(hidden)] pub struct IPhotoImportItemImportedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ImportedItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhotoImportManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhotoImportManagerStatics { - type Vtable = IPhotoImportManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhotoImportManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2771903d_a046_4f06_9b9c_bfd662e83287); -} +::windows_core::imp::com_interface!(IPhotoImportManagerStatics, IPhotoImportManagerStatics_Vtbl, 0x2771903d_a046_4f06_9b9c_bfd662e83287); #[repr(C)] #[doc(hidden)] pub struct IPhotoImportManagerStatics_Vtbl { @@ -227,16 +155,7 @@ pub struct IPhotoImportManagerStatics_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetPendingOperations: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhotoImportOperation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhotoImportOperation { - type Vtable = IPhotoImportOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhotoImportOperation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd9f797e4_a09a_4ee4_a4b1_20940277a5be); -} +::windows_core::imp::com_interface!(IPhotoImportOperation, IPhotoImportOperation_Vtbl, 0xd9f797e4_a09a_4ee4_a4b1_20940277a5be); #[repr(C)] #[doc(hidden)] pub struct IPhotoImportOperation_Vtbl { @@ -247,32 +166,14 @@ pub struct IPhotoImportOperation_Vtbl { pub ContinueImportingItemsAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ContinueDeletingImportedItemsFromSourceAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhotoImportSelectionChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhotoImportSelectionChangedEventArgs { - type Vtable = IPhotoImportSelectionChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhotoImportSelectionChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x10461782_fa9d_4c30_8bc9_4d64911572d5); -} +::windows_core::imp::com_interface!(IPhotoImportSelectionChangedEventArgs, IPhotoImportSelectionChangedEventArgs_Vtbl, 0x10461782_fa9d_4c30_8bc9_4d64911572d5); #[repr(C)] #[doc(hidden)] pub struct IPhotoImportSelectionChangedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub IsSelectionEmpty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhotoImportSession(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhotoImportSession { - type Vtable = IPhotoImportSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhotoImportSession { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaa63916e_ecdb_4efe_94c6_5f5cafe34cfb); -} +::windows_core::imp::com_interface!(IPhotoImportSession, IPhotoImportSession_Vtbl, 0xaa63916e_ecdb_4efe_94c6_5f5cafe34cfb); #[repr(C)] #[doc(hidden)] pub struct IPhotoImportSession_Vtbl { @@ -295,16 +196,7 @@ pub struct IPhotoImportSession_Vtbl { pub DestinationFileNamePrefix: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub FindItemsAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, contenttypefilter: PhotoImportContentTypeFilter, itemselectionmode: PhotoImportItemSelectionMode, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhotoImportSession2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhotoImportSession2 { - type Vtable = IPhotoImportSession2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhotoImportSession2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2a526710_3ec6_469d_a375_2b9f4785391e); -} +::windows_core::imp::com_interface!(IPhotoImportSession2, IPhotoImportSession2_Vtbl, 0x2a526710_3ec6_469d_a375_2b9f4785391e); #[repr(C)] #[doc(hidden)] pub struct IPhotoImportSession2_Vtbl { @@ -314,16 +206,7 @@ pub struct IPhotoImportSession2_Vtbl { pub SetRememberDeselectedItems: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, pub RememberDeselectedItems: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhotoImportSidecar(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhotoImportSidecar { - type Vtable = IPhotoImportSidecar_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhotoImportSidecar { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x46d7d757_f802_44c7_9c98_7a71f4bc1486); -} +::windows_core::imp::com_interface!(IPhotoImportSidecar, IPhotoImportSidecar_Vtbl, 0x46d7d757_f802_44c7_9c98_7a71f4bc1486); #[repr(C)] #[doc(hidden)] pub struct IPhotoImportSidecar_Vtbl { @@ -332,16 +215,7 @@ pub struct IPhotoImportSidecar_Vtbl { pub SizeInBytes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u64) -> ::windows_core::HRESULT, pub Date: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::DateTime) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhotoImportSource(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhotoImportSource { - type Vtable = IPhotoImportSource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhotoImportSource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1f8ea35e_145b_4cd6_87f1_54965a982fef); -} +::windows_core::imp::com_interface!(IPhotoImportSource, IPhotoImportSource_Vtbl, 0x1f8ea35e_145b_4cd6_87f1_54965a982fef); #[repr(C)] #[doc(hidden)] pub struct IPhotoImportSource_Vtbl { @@ -370,16 +244,7 @@ pub struct IPhotoImportSource_Vtbl { Thumbnail: usize, pub CreateImportSession: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhotoImportSourceStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhotoImportSourceStatics { - type Vtable = IPhotoImportSourceStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhotoImportSourceStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0528e586_32d8_467c_8cee_23a1b2f43e85); -} +::windows_core::imp::com_interface!(IPhotoImportSourceStatics, IPhotoImportSourceStatics_Vtbl, 0x0528e586_32d8_467c_8cee_23a1b2f43e85); #[repr(C)] #[doc(hidden)] pub struct IPhotoImportSourceStatics_Vtbl { @@ -390,16 +255,7 @@ pub struct IPhotoImportSourceStatics_Vtbl { #[cfg(not(feature = "Storage"))] FromFolderAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhotoImportStorageMedium(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhotoImportStorageMedium { - type Vtable = IPhotoImportStorageMedium_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhotoImportStorageMedium { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf2b9b093_fc85_487f_87c2_58d675d05b07); -} +::windows_core::imp::com_interface!(IPhotoImportStorageMedium, IPhotoImportStorageMedium_Vtbl, 0xf2b9b093_fc85_487f_87c2_58d675d05b07); #[repr(C)] #[doc(hidden)] pub struct IPhotoImportStorageMedium_Vtbl { @@ -413,16 +269,7 @@ pub struct IPhotoImportStorageMedium_Vtbl { pub AvailableSpaceInBytes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u64) -> ::windows_core::HRESULT, pub Refresh: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhotoImportVideoSegment(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhotoImportVideoSegment { - type Vtable = IPhotoImportVideoSegment_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhotoImportVideoSegment { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x623c0289_321a_41d8_9166_8c62a333276c); -} +::windows_core::imp::com_interface!(IPhotoImportVideoSegment, IPhotoImportVideoSegment_Vtbl, 0x623c0289_321a_41d8_9166_8c62a333276c); #[repr(C)] #[doc(hidden)] pub struct IPhotoImportVideoSegment_Vtbl { @@ -439,6 +286,7 @@ pub struct IPhotoImportVideoSegment_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PhotoImportDeleteImportedItemsFromSourceResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PhotoImportDeleteImportedItemsFromSourceResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PhotoImportDeleteImportedItemsFromSourceResult { pub fn Session(&self) -> ::windows_core::Result { let this = self; @@ -539,19 +387,17 @@ impl ::windows_core::RuntimeType for PhotoImportDeleteImportedItemsFromSourceRes } unsafe impl ::windows_core::Interface for PhotoImportDeleteImportedItemsFromSourceResult { type Vtable = IPhotoImportDeleteImportedItemsFromSourceResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PhotoImportDeleteImportedItemsFromSourceResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PhotoImportDeleteImportedItemsFromSourceResult { const NAME: &'static str = "Windows.Media.Import.PhotoImportDeleteImportedItemsFromSourceResult"; } -::windows_core::imp::interface_hierarchy!(PhotoImportDeleteImportedItemsFromSourceResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PhotoImportDeleteImportedItemsFromSourceResult {} unsafe impl ::core::marker::Sync for PhotoImportDeleteImportedItemsFromSourceResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PhotoImportFindItemsResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PhotoImportFindItemsResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PhotoImportFindItemsResult { pub fn Session(&self) -> ::windows_core::Result { let this = self; @@ -778,7 +624,7 @@ impl PhotoImportFindItemsResult { unsafe { (::windows_core::Interface::vtable(this).RemoveItemImported)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn AddItemsInDateRangeToSelection(&self, rangestart: super::super::Foundation::DateTime, rangelength: super::super::Foundation::TimeSpan) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).AddItemsInDateRangeToSelection)(::windows_core::Interface::as_raw(this), rangestart, rangelength).ok() } } } @@ -787,19 +633,17 @@ impl ::windows_core::RuntimeType for PhotoImportFindItemsResult { } unsafe impl ::windows_core::Interface for PhotoImportFindItemsResult { type Vtable = IPhotoImportFindItemsResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PhotoImportFindItemsResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PhotoImportFindItemsResult { const NAME: &'static str = "Windows.Media.Import.PhotoImportFindItemsResult"; } -::windows_core::imp::interface_hierarchy!(PhotoImportFindItemsResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PhotoImportFindItemsResult {} unsafe impl ::core::marker::Sync for PhotoImportFindItemsResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PhotoImportImportItemsResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PhotoImportImportItemsResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PhotoImportImportItemsResult { pub fn Session(&self) -> ::windows_core::Result { let this = self; @@ -907,19 +751,17 @@ impl ::windows_core::RuntimeType for PhotoImportImportItemsResult { } unsafe impl ::windows_core::Interface for PhotoImportImportItemsResult { type Vtable = IPhotoImportImportItemsResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PhotoImportImportItemsResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PhotoImportImportItemsResult { const NAME: &'static str = "Windows.Media.Import.PhotoImportImportItemsResult"; } -::windows_core::imp::interface_hierarchy!(PhotoImportImportItemsResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PhotoImportImportItemsResult {} unsafe impl ::core::marker::Sync for PhotoImportImportItemsResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PhotoImportItem(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PhotoImportItem, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PhotoImportItem { pub fn Name(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1020,7 +862,7 @@ impl PhotoImportItem { } } pub fn Path(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Path)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1032,19 +874,17 @@ impl ::windows_core::RuntimeType for PhotoImportItem { } unsafe impl ::windows_core::Interface for PhotoImportItem { type Vtable = IPhotoImportItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PhotoImportItem { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PhotoImportItem { const NAME: &'static str = "Windows.Media.Import.PhotoImportItem"; } -::windows_core::imp::interface_hierarchy!(PhotoImportItem, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PhotoImportItem {} unsafe impl ::core::marker::Sync for PhotoImportItem {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PhotoImportItemImportedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PhotoImportItemImportedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PhotoImportItemImportedEventArgs { pub fn ImportedItem(&self) -> ::windows_core::Result { let this = self; @@ -1059,14 +899,11 @@ impl ::windows_core::RuntimeType for PhotoImportItemImportedEventArgs { } unsafe impl ::windows_core::Interface for PhotoImportItemImportedEventArgs { type Vtable = IPhotoImportItemImportedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PhotoImportItemImportedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PhotoImportItemImportedEventArgs { const NAME: &'static str = "Windows.Media.Import.PhotoImportItemImportedEventArgs"; } -::windows_core::imp::interface_hierarchy!(PhotoImportItemImportedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PhotoImportItemImportedEventArgs {} unsafe impl ::core::marker::Sync for PhotoImportItemImportedEventArgs {} pub struct PhotoImportManager; @@ -1105,6 +942,7 @@ impl ::windows_core::RuntimeName for PhotoImportManager { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PhotoImportOperation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PhotoImportOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PhotoImportOperation { pub fn Stage(&self) -> ::windows_core::Result { let this = self; @@ -1147,19 +985,17 @@ impl ::windows_core::RuntimeType for PhotoImportOperation { } unsafe impl ::windows_core::Interface for PhotoImportOperation { type Vtable = IPhotoImportOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PhotoImportOperation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PhotoImportOperation { const NAME: &'static str = "Windows.Media.Import.PhotoImportOperation"; } -::windows_core::imp::interface_hierarchy!(PhotoImportOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PhotoImportOperation {} unsafe impl ::core::marker::Sync for PhotoImportOperation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PhotoImportSelectionChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PhotoImportSelectionChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PhotoImportSelectionChangedEventArgs { pub fn IsSelectionEmpty(&self) -> ::windows_core::Result { let this = self; @@ -1174,22 +1010,21 @@ impl ::windows_core::RuntimeType for PhotoImportSelectionChangedEventArgs { } unsafe impl ::windows_core::Interface for PhotoImportSelectionChangedEventArgs { type Vtable = IPhotoImportSelectionChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PhotoImportSelectionChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PhotoImportSelectionChangedEventArgs { const NAME: &'static str = "Windows.Media.Import.PhotoImportSelectionChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(PhotoImportSelectionChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PhotoImportSelectionChangedEventArgs {} unsafe impl ::core::marker::Sync for PhotoImportSelectionChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PhotoImportSession(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PhotoImportSession, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(PhotoImportSession, super::super::Foundation::IClosable); impl PhotoImportSession { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Source(&self) -> ::windows_core::Result { @@ -1210,10 +1045,10 @@ impl PhotoImportSession { #[cfg(feature = "Storage")] pub fn SetDestinationFolder(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetDestinationFolder)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetDestinationFolder)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } #[doc = "Required features: `\"Storage\"`"] #[cfg(feature = "Storage")] @@ -1265,22 +1100,22 @@ impl PhotoImportSession { } } pub fn SetSubfolderDateFormat(&self, value: PhotoImportSubfolderDateFormat) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetSubfolderDateFormat)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn SubfolderDateFormat(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SubfolderDateFormat)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetRememberDeselectedItems(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRememberDeselectedItems)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn RememberDeselectedItems(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RememberDeselectedItems)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1292,20 +1127,17 @@ impl ::windows_core::RuntimeType for PhotoImportSession { } unsafe impl ::windows_core::Interface for PhotoImportSession { type Vtable = IPhotoImportSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PhotoImportSession { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PhotoImportSession { const NAME: &'static str = "Windows.Media.Import.PhotoImportSession"; } -::windows_core::imp::interface_hierarchy!(PhotoImportSession, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for PhotoImportSession {} unsafe impl ::core::marker::Send for PhotoImportSession {} unsafe impl ::core::marker::Sync for PhotoImportSession {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PhotoImportSidecar(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PhotoImportSidecar, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PhotoImportSidecar { pub fn Name(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1334,19 +1166,17 @@ impl ::windows_core::RuntimeType for PhotoImportSidecar { } unsafe impl ::windows_core::Interface for PhotoImportSidecar { type Vtable = IPhotoImportSidecar_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PhotoImportSidecar { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PhotoImportSidecar { const NAME: &'static str = "Windows.Media.Import.PhotoImportSidecar"; } -::windows_core::imp::interface_hierarchy!(PhotoImportSidecar, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PhotoImportSidecar {} unsafe impl ::core::marker::Sync for PhotoImportSidecar {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PhotoImportSource(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PhotoImportSource, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PhotoImportSource { pub fn Id(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1481,11 +1311,11 @@ impl PhotoImportSource { #[cfg(feature = "Storage")] pub fn FromFolderAsync(sourcerootfolder: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IPhotoImportSourceStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).FromFolderAsync)(::windows_core::Interface::as_raw(this), sourcerootfolder.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).FromFolderAsync)(::windows_core::Interface::as_raw(this), sourcerootfolder.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -1499,19 +1329,17 @@ impl ::windows_core::RuntimeType for PhotoImportSource { } unsafe impl ::windows_core::Interface for PhotoImportSource { type Vtable = IPhotoImportSource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PhotoImportSource { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PhotoImportSource { const NAME: &'static str = "Windows.Media.Import.PhotoImportSource"; } -::windows_core::imp::interface_hierarchy!(PhotoImportSource, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PhotoImportSource {} unsafe impl ::core::marker::Sync for PhotoImportSource {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PhotoImportStorageMedium(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PhotoImportStorageMedium, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PhotoImportStorageMedium { pub fn Name(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1572,19 +1400,17 @@ impl ::windows_core::RuntimeType for PhotoImportStorageMedium { } unsafe impl ::windows_core::Interface for PhotoImportStorageMedium { type Vtable = IPhotoImportStorageMedium_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PhotoImportStorageMedium { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PhotoImportStorageMedium { const NAME: &'static str = "Windows.Media.Import.PhotoImportStorageMedium"; } -::windows_core::imp::interface_hierarchy!(PhotoImportStorageMedium, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PhotoImportStorageMedium {} unsafe impl ::core::marker::Sync for PhotoImportStorageMedium {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PhotoImportVideoSegment(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PhotoImportVideoSegment, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PhotoImportVideoSegment { pub fn Name(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1629,14 +1455,11 @@ impl ::windows_core::RuntimeType for PhotoImportVideoSegment { } unsafe impl ::windows_core::Interface for PhotoImportVideoSegment { type Vtable = IPhotoImportVideoSegment_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PhotoImportVideoSegment { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PhotoImportVideoSegment { const NAME: &'static str = "Windows.Media.Import.PhotoImportVideoSegment"; } -::windows_core::imp::interface_hierarchy!(PhotoImportVideoSegment, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PhotoImportVideoSegment {} unsafe impl ::core::marker::Sync for PhotoImportVideoSegment {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Media/MediaProperties/impl.rs b/crates/libs/windows/src/Windows/Media/MediaProperties/impl.rs index 41389ac8f5..077a992052 100644 --- a/crates/libs/windows/src/Windows/Media/MediaProperties/impl.rs +++ b/crates/libs/windows/src/Windows/Media/MediaProperties/impl.rs @@ -63,6 +63,6 @@ impl IMediaEncodingProperties_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/Media/MediaProperties/mod.rs b/crates/libs/windows/src/Windows/Media/MediaProperties/mod.rs index 00f7023e54..f0c5b64589 100644 --- a/crates/libs/windows/src/Windows/Media/MediaProperties/mod.rs +++ b/crates/libs/windows/src/Windows/Media/MediaProperties/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioEncodingProperties(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioEncodingProperties { - type Vtable = IAudioEncodingProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioEncodingProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x62bc7a16_005c_4b3b_8a0b_0a090e9687f3); -} +::windows_core::imp::com_interface!(IAudioEncodingProperties, IAudioEncodingProperties_Vtbl, 0x62bc7a16_005c_4b3b_8a0b_0a090e9687f3); #[repr(C)] #[doc(hidden)] pub struct IAudioEncodingProperties_Vtbl { @@ -21,48 +12,21 @@ pub struct IAudioEncodingProperties_Vtbl { pub SetBitsPerSample: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: u32) -> ::windows_core::HRESULT, pub BitsPerSample: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioEncodingProperties2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioEncodingProperties2 { - type Vtable = IAudioEncodingProperties2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioEncodingProperties2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc45d54da_80bd_4c23_80d5_72d4a181e894); -} +::windows_core::imp::com_interface!(IAudioEncodingProperties2, IAudioEncodingProperties2_Vtbl, 0xc45d54da_80bd_4c23_80d5_72d4a181e894); #[repr(C)] #[doc(hidden)] pub struct IAudioEncodingProperties2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub IsSpatial: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioEncodingProperties3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioEncodingProperties3 { - type Vtable = IAudioEncodingProperties3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioEncodingProperties3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x87600341_748c_4f8d_b0fd_10caf08ff087); -} +::windows_core::imp::com_interface!(IAudioEncodingProperties3, IAudioEncodingProperties3_Vtbl, 0x87600341_748c_4f8d_b0fd_10caf08ff087); #[repr(C)] #[doc(hidden)] pub struct IAudioEncodingProperties3_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Copy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioEncodingPropertiesStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioEncodingPropertiesStatics { - type Vtable = IAudioEncodingPropertiesStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioEncodingPropertiesStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0cad332c_ebe9_4527_b36d_e42a13cf38db); -} +::windows_core::imp::com_interface!(IAudioEncodingPropertiesStatics, IAudioEncodingPropertiesStatics_Vtbl, 0x0cad332c_ebe9_4527_b36d_e42a13cf38db); #[repr(C)] #[doc(hidden)] pub struct IAudioEncodingPropertiesStatics_Vtbl { @@ -73,16 +37,7 @@ pub struct IAudioEncodingPropertiesStatics_Vtbl { pub CreatePcm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, samplerate: u32, channelcount: u32, bitspersample: u32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateWma: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, samplerate: u32, channelcount: u32, bitrate: u32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioEncodingPropertiesStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioEncodingPropertiesStatics2 { - type Vtable = IAudioEncodingPropertiesStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioEncodingPropertiesStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7489316f_77a0_433d_8ed5_4040280e8665); -} +::windows_core::imp::com_interface!(IAudioEncodingPropertiesStatics2, IAudioEncodingPropertiesStatics2_Vtbl, 0x7489316f_77a0_433d_8ed5_4040280e8665); #[repr(C)] #[doc(hidden)] pub struct IAudioEncodingPropertiesStatics2_Vtbl { @@ -90,16 +45,7 @@ pub struct IAudioEncodingPropertiesStatics2_Vtbl { pub CreateAlac: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, samplerate: u32, channelcount: u32, bitspersample: u32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateFlac: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, samplerate: u32, channelcount: u32, bitspersample: u32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioEncodingPropertiesWithFormatUserData(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioEncodingPropertiesWithFormatUserData { - type Vtable = IAudioEncodingPropertiesWithFormatUserData_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioEncodingPropertiesWithFormatUserData { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x98f10d79_13ea_49ff_be70_2673db69702c); -} +::windows_core::imp::com_interface!(IAudioEncodingPropertiesWithFormatUserData, IAudioEncodingPropertiesWithFormatUserData_Vtbl, 0x98f10d79_13ea_49ff_be70_2673db69702c); #[repr(C)] #[doc(hidden)] pub struct IAudioEncodingPropertiesWithFormatUserData_Vtbl { @@ -107,16 +53,7 @@ pub struct IAudioEncodingPropertiesWithFormatUserData_Vtbl { pub SetFormatUserData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value_array_size: u32, value: *const u8) -> ::windows_core::HRESULT, pub GetFormatUserData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value_array_size: *mut u32, value: *mut *mut u8) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAv1ProfileIdsStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAv1ProfileIdsStatics { - type Vtable = IAv1ProfileIdsStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAv1ProfileIdsStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9105812b_7c09_5882_88a4_678008a5174d); -} +::windows_core::imp::com_interface!(IAv1ProfileIdsStatics, IAv1ProfileIdsStatics_Vtbl, 0x9105812b_7c09_5882_88a4_678008a5174d); #[repr(C)] #[doc(hidden)] pub struct IAv1ProfileIdsStatics_Vtbl { @@ -134,47 +71,20 @@ pub struct IAv1ProfileIdsStatics_Vtbl { pub ProfessionalChromaSubsampling422BitDepth10: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows_core::HRESULT, pub ProfessionalChromaSubsampling422BitDepth12: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContainerEncodingProperties(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContainerEncodingProperties { - type Vtable = IContainerEncodingProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContainerEncodingProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x59ac2a57_b32a_479e_8a61_4b7f2e9e7ea0); -} +::windows_core::imp::com_interface!(IContainerEncodingProperties, IContainerEncodingProperties_Vtbl, 0x59ac2a57_b32a_479e_8a61_4b7f2e9e7ea0); #[repr(C)] #[doc(hidden)] pub struct IContainerEncodingProperties_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContainerEncodingProperties2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContainerEncodingProperties2 { - type Vtable = IContainerEncodingProperties2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContainerEncodingProperties2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb272c029_ae26_4819_baad_ad7a49b0a876); -} +::windows_core::imp::com_interface!(IContainerEncodingProperties2, IContainerEncodingProperties2_Vtbl, 0xb272c029_ae26_4819_baad_ad7a49b0a876); #[repr(C)] #[doc(hidden)] pub struct IContainerEncodingProperties2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Copy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IH264ProfileIdsStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IH264ProfileIdsStatics { - type Vtable = IH264ProfileIdsStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IH264ProfileIdsStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x38654ca7_846a_4f97_a2e5_c3a15bbf70fd); -} +::windows_core::imp::com_interface!(IH264ProfileIdsStatics, IH264ProfileIdsStatics_Vtbl, 0x38654ca7_846a_4f97_a2e5_c3a15bbf70fd); #[repr(C)] #[doc(hidden)] pub struct IH264ProfileIdsStatics_Vtbl { @@ -190,16 +100,7 @@ pub struct IH264ProfileIdsStatics_Vtbl { pub StereoHigh: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows_core::HRESULT, pub MultiviewHigh: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHevcProfileIdsStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHevcProfileIdsStatics { - type Vtable = IHevcProfileIdsStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHevcProfileIdsStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1e50d280_2aa7_53c1_973f_2189fa656f53); -} +::windows_core::imp::com_interface!(IHevcProfileIdsStatics, IHevcProfileIdsStatics_Vtbl, 0x1e50d280_2aa7_53c1_973f_2189fa656f53); #[repr(C)] #[doc(hidden)] pub struct IHevcProfileIdsStatics_Vtbl { @@ -227,16 +128,7 @@ pub struct IHevcProfileIdsStatics_Vtbl { pub MainStillChromaSubsampling444BitDepth8: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows_core::HRESULT, pub MainStillChromaSubsampling444BitDepth16: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IImageEncodingProperties(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IImageEncodingProperties { - type Vtable = IImageEncodingProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IImageEncodingProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x78625635_f331_4189_b1c3_b48d5ae034f1); -} +::windows_core::imp::com_interface!(IImageEncodingProperties, IImageEncodingProperties_Vtbl, 0x78625635_f331_4189_b1c3_b48d5ae034f1); #[repr(C)] #[doc(hidden)] pub struct IImageEncodingProperties_Vtbl { @@ -246,32 +138,14 @@ pub struct IImageEncodingProperties_Vtbl { pub SetHeight: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: u32) -> ::windows_core::HRESULT, pub Height: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IImageEncodingProperties2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IImageEncodingProperties2 { - type Vtable = IImageEncodingProperties2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IImageEncodingProperties2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc854a2df_c923_469b_ac8e_6a9f3c1cd9e3); -} +::windows_core::imp::com_interface!(IImageEncodingProperties2, IImageEncodingProperties2_Vtbl, 0xc854a2df_c923_469b_ac8e_6a9f3c1cd9e3); #[repr(C)] #[doc(hidden)] pub struct IImageEncodingProperties2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Copy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IImageEncodingPropertiesStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IImageEncodingPropertiesStatics { - type Vtable = IImageEncodingPropertiesStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IImageEncodingPropertiesStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x257c68dc_8b99_439e_aa59_913a36161297); -} +::windows_core::imp::com_interface!(IImageEncodingPropertiesStatics, IImageEncodingPropertiesStatics_Vtbl, 0x257c68dc_8b99_439e_aa59_913a36161297); #[repr(C)] #[doc(hidden)] pub struct IImageEncodingPropertiesStatics_Vtbl { @@ -280,16 +154,7 @@ pub struct IImageEncodingPropertiesStatics_Vtbl { pub CreatePng: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateJpegXR: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IImageEncodingPropertiesStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IImageEncodingPropertiesStatics2 { - type Vtable = IImageEncodingPropertiesStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IImageEncodingPropertiesStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf6c25b29_3824_46b0_956e_501329e1be3c); -} +::windows_core::imp::com_interface!(IImageEncodingPropertiesStatics2, IImageEncodingPropertiesStatics2_Vtbl, 0xf6c25b29_3824_46b0_956e_501329e1be3c); #[repr(C)] #[doc(hidden)] pub struct IImageEncodingPropertiesStatics2_Vtbl { @@ -297,32 +162,14 @@ pub struct IImageEncodingPropertiesStatics2_Vtbl { pub CreateUncompressed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, format: MediaPixelFormat, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateBmp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IImageEncodingPropertiesStatics3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IImageEncodingPropertiesStatics3 { - type Vtable = IImageEncodingPropertiesStatics3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IImageEncodingPropertiesStatics3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x48f4814d_a2ff_48dc_8ea0_e90680663656); -} +::windows_core::imp::com_interface!(IImageEncodingPropertiesStatics3, IImageEncodingPropertiesStatics3_Vtbl, 0x48f4814d_a2ff_48dc_8ea0_e90680663656); #[repr(C)] #[doc(hidden)] pub struct IImageEncodingPropertiesStatics3_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateHeif: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaEncodingProfile(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaEncodingProfile { - type Vtable = IMediaEncodingProfile_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaEncodingProfile { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe7dbf5a8_1db9_4783_876b_3dfe12acfdb3); -} +::windows_core::imp::com_interface!(IMediaEncodingProfile, IMediaEncodingProfile_Vtbl, 0xe7dbf5a8_1db9_4783_876b_3dfe12acfdb3); #[repr(C)] #[doc(hidden)] pub struct IMediaEncodingProfile_Vtbl { @@ -334,16 +181,7 @@ pub struct IMediaEncodingProfile_Vtbl { pub SetContainer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Container: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaEncodingProfile2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaEncodingProfile2 { - type Vtable = IMediaEncodingProfile2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaEncodingProfile2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x349b3e0a_4035_488e_9877_85632865ed10); -} +::windows_core::imp::com_interface!(IMediaEncodingProfile2, IMediaEncodingProfile2_Vtbl, 0x349b3e0a_4035_488e_9877_85632865ed10); #[repr(C)] #[doc(hidden)] pub struct IMediaEncodingProfile2_Vtbl { @@ -365,16 +203,7 @@ pub struct IMediaEncodingProfile2_Vtbl { #[cfg(not(all(feature = "Foundation_Collections", feature = "Media_Core")))] GetVideoTracks: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaEncodingProfile3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaEncodingProfile3 { - type Vtable = IMediaEncodingProfile3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaEncodingProfile3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xba6ebe88_7570_4e69_accf_5611ad015f88); -} +::windows_core::imp::com_interface!(IMediaEncodingProfile3, IMediaEncodingProfile3_Vtbl, 0xba6ebe88_7570_4e69_accf_5611ad015f88); #[repr(C)] #[doc(hidden)] pub struct IMediaEncodingProfile3_Vtbl { @@ -388,16 +217,7 @@ pub struct IMediaEncodingProfile3_Vtbl { #[cfg(not(all(feature = "Foundation_Collections", feature = "Media_Core")))] GetTimedMetadataTracks: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaEncodingProfileStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaEncodingProfileStatics { - type Vtable = IMediaEncodingProfileStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaEncodingProfileStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x197f352c_2ede_4a45_a896_817a4854f8fe); -} +::windows_core::imp::com_interface!(IMediaEncodingProfileStatics, IMediaEncodingProfileStatics_Vtbl, 0x197f352c_2ede_4a45_a896_817a4854f8fe); #[repr(C)] #[doc(hidden)] pub struct IMediaEncodingProfileStatics_Vtbl { @@ -416,16 +236,7 @@ pub struct IMediaEncodingProfileStatics_Vtbl { #[cfg(not(feature = "Storage_Streams"))] CreateFromStreamAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaEncodingProfileStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaEncodingProfileStatics2 { - type Vtable = IMediaEncodingProfileStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaEncodingProfileStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xce8de74f_6af4_4288_8fe2_79adf1f79a43); -} +::windows_core::imp::com_interface!(IMediaEncodingProfileStatics2, IMediaEncodingProfileStatics2_Vtbl, 0xce8de74f_6af4_4288_8fe2_79adf1f79a43); #[repr(C)] #[doc(hidden)] pub struct IMediaEncodingProfileStatics2_Vtbl { @@ -433,16 +244,7 @@ pub struct IMediaEncodingProfileStatics2_Vtbl { pub CreateWav: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, quality: AudioEncodingQuality, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateAvi: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, quality: VideoEncodingQuality, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaEncodingProfileStatics3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaEncodingProfileStatics3 { - type Vtable = IMediaEncodingProfileStatics3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaEncodingProfileStatics3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x90dac5aa_cf76_4294_a9ed_1a1420f51f6b); -} +::windows_core::imp::com_interface!(IMediaEncodingProfileStatics3, IMediaEncodingProfileStatics3_Vtbl, 0x90dac5aa_cf76_4294_a9ed_1a1420f51f6b); #[repr(C)] #[doc(hidden)] pub struct IMediaEncodingProfileStatics3_Vtbl { @@ -451,16 +253,7 @@ pub struct IMediaEncodingProfileStatics3_Vtbl { pub CreateFlac: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, quality: AudioEncodingQuality, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateHevc: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, quality: VideoEncodingQuality, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaEncodingProfileStatics4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaEncodingProfileStatics4 { - type Vtable = IMediaEncodingProfileStatics4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaEncodingProfileStatics4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6fafd7b5_9404_514a_81dd_c9444d648af0); -} +::windows_core::imp::com_interface!(IMediaEncodingProfileStatics4, IMediaEncodingProfileStatics4_Vtbl, 0x6fafd7b5_9404_514a_81dd_c9444d648af0); #[repr(C)] #[doc(hidden)] pub struct IMediaEncodingProfileStatics4_Vtbl { @@ -468,9 +261,8 @@ pub struct IMediaEncodingProfileStatics4_Vtbl { pub CreateVp9: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, quality: VideoEncodingQuality, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateAv1: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, quality: VideoEncodingQuality, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaEncodingProperties(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMediaEncodingProperties, IMediaEncodingProperties_Vtbl, 0xb4002af6_acd4_4e5a_a24b_5d7498a8b8c4); +::windows_core::imp::interface_hierarchy!(IMediaEncodingProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IMediaEncodingProperties { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -500,16 +292,9 @@ impl IMediaEncodingProperties { } } } -::windows_core::imp::interface_hierarchy!(IMediaEncodingProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IMediaEncodingProperties { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IMediaEncodingProperties { - type Vtable = IMediaEncodingProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaEncodingProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb4002af6_acd4_4e5a_a24b_5d7498a8b8c4); -} #[repr(C)] #[doc(hidden)] pub struct IMediaEncodingProperties_Vtbl { @@ -522,16 +307,7 @@ pub struct IMediaEncodingProperties_Vtbl { pub SetSubtype: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Subtype: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaEncodingSubtypesStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaEncodingSubtypesStatics { - type Vtable = IMediaEncodingSubtypesStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaEncodingSubtypesStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x37b6580e_a171_4464_ba5a_53189e48c1c8); -} +::windows_core::imp::com_interface!(IMediaEncodingSubtypesStatics, IMediaEncodingSubtypesStatics_Vtbl, 0x37b6580e_a171_4464_ba5a_53189e48c1c8); #[repr(C)] #[doc(hidden)] pub struct IMediaEncodingSubtypesStatics_Vtbl { @@ -577,16 +353,7 @@ pub struct IMediaEncodingSubtypesStatics_Vtbl { pub Yuy2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Yv12: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaEncodingSubtypesStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaEncodingSubtypesStatics2 { - type Vtable = IMediaEncodingSubtypesStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaEncodingSubtypesStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4b7cd23d_42ff_4d33_8531_0626bee4b52d); -} +::windows_core::imp::com_interface!(IMediaEncodingSubtypesStatics2, IMediaEncodingSubtypesStatics2_Vtbl, 0x4b7cd23d_42ff_4d33_8531_0626bee4b52d); #[repr(C)] #[doc(hidden)] pub struct IMediaEncodingSubtypesStatics2_Vtbl { @@ -596,16 +363,7 @@ pub struct IMediaEncodingSubtypesStatics2_Vtbl { pub L16: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub D16: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaEncodingSubtypesStatics3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaEncodingSubtypesStatics3 { - type Vtable = IMediaEncodingSubtypesStatics3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaEncodingSubtypesStatics3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xba2414e4_883d_464e_a44f_097da08ef7ff); -} +::windows_core::imp::com_interface!(IMediaEncodingSubtypesStatics3, IMediaEncodingSubtypesStatics3_Vtbl, 0xba2414e4_883d_464e_a44f_097da08ef7ff); #[repr(C)] #[doc(hidden)] pub struct IMediaEncodingSubtypesStatics3_Vtbl { @@ -613,48 +371,21 @@ pub struct IMediaEncodingSubtypesStatics3_Vtbl { pub Alac: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Flac: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaEncodingSubtypesStatics4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaEncodingSubtypesStatics4 { - type Vtable = IMediaEncodingSubtypesStatics4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaEncodingSubtypesStatics4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xddece58a_3949_4644_8a2c_59ef02c642fa); -} +::windows_core::imp::com_interface!(IMediaEncodingSubtypesStatics4, IMediaEncodingSubtypesStatics4_Vtbl, 0xddece58a_3949_4644_8a2c_59ef02c642fa); #[repr(C)] #[doc(hidden)] pub struct IMediaEncodingSubtypesStatics4_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub P010: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaEncodingSubtypesStatics5(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaEncodingSubtypesStatics5 { - type Vtable = IMediaEncodingSubtypesStatics5_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaEncodingSubtypesStatics5 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5ad4a007_ffce_4760_9828_5d0c99637e6a); -} +::windows_core::imp::com_interface!(IMediaEncodingSubtypesStatics5, IMediaEncodingSubtypesStatics5_Vtbl, 0x5ad4a007_ffce_4760_9828_5d0c99637e6a); #[repr(C)] #[doc(hidden)] pub struct IMediaEncodingSubtypesStatics5_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Heif: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaEncodingSubtypesStatics6(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaEncodingSubtypesStatics6 { - type Vtable = IMediaEncodingSubtypesStatics6_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaEncodingSubtypesStatics6 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa1252973_a984_5912_93bb_54e7e569e053); -} +::windows_core::imp::com_interface!(IMediaEncodingSubtypesStatics6, IMediaEncodingSubtypesStatics6_Vtbl, 0xa1252973_a984_5912_93bb_54e7e569e053); #[repr(C)] #[doc(hidden)] pub struct IMediaEncodingSubtypesStatics6_Vtbl { @@ -664,32 +395,14 @@ pub struct IMediaEncodingSubtypesStatics6_Vtbl { pub Ssa: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub VobSub: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaEncodingSubtypesStatics7(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaEncodingSubtypesStatics7 { - type Vtable = IMediaEncodingSubtypesStatics7_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaEncodingSubtypesStatics7 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x92f2dca7_9937_52a1_b619_ddfad81cd99c); -} +::windows_core::imp::com_interface!(IMediaEncodingSubtypesStatics7, IMediaEncodingSubtypesStatics7_Vtbl, 0x92f2dca7_9937_52a1_b619_ddfad81cd99c); #[repr(C)] #[doc(hidden)] pub struct IMediaEncodingSubtypesStatics7_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Av1: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaRatio(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaRatio { - type Vtable = IMediaRatio_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaRatio { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd2d0fee5_8929_401d_ac78_7d357e378163); -} +::windows_core::imp::com_interface!(IMediaRatio, IMediaRatio_Vtbl, 0xd2d0fee5_8929_401d_ac78_7d357e378163); #[repr(C)] #[doc(hidden)] pub struct IMediaRatio_Vtbl { @@ -699,16 +412,7 @@ pub struct IMediaRatio_Vtbl { pub SetDenominator: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: u32) -> ::windows_core::HRESULT, pub Denominator: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMpeg2ProfileIdsStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMpeg2ProfileIdsStatics { - type Vtable = IMpeg2ProfileIdsStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMpeg2ProfileIdsStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa461ff85_e57a_4128_9b21_d5331b04235c); -} +::windows_core::imp::com_interface!(IMpeg2ProfileIdsStatics, IMpeg2ProfileIdsStatics_Vtbl, 0xa461ff85_e57a_4128_9b21_d5331b04235c); #[repr(C)] #[doc(hidden)] pub struct IMpeg2ProfileIdsStatics_Vtbl { @@ -719,16 +423,7 @@ pub struct IMpeg2ProfileIdsStatics_Vtbl { pub SpatiallyScalable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows_core::HRESULT, pub High: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITimedMetadataEncodingProperties(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITimedMetadataEncodingProperties { - type Vtable = ITimedMetadataEncodingProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITimedMetadataEncodingProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51cd30d3_d690_4cfa_97f4_4a398e9db420); -} +::windows_core::imp::com_interface!(ITimedMetadataEncodingProperties, ITimedMetadataEncodingProperties_Vtbl, 0x51cd30d3_d690_4cfa_97f4_4a398e9db420); #[repr(C)] #[doc(hidden)] pub struct ITimedMetadataEncodingProperties_Vtbl { @@ -737,16 +432,7 @@ pub struct ITimedMetadataEncodingProperties_Vtbl { pub GetFormatUserData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value_array_size: *mut u32, value: *mut *mut u8) -> ::windows_core::HRESULT, pub Copy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITimedMetadataEncodingPropertiesStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITimedMetadataEncodingPropertiesStatics { - type Vtable = ITimedMetadataEncodingPropertiesStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITimedMetadataEncodingPropertiesStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6629bb67_6e55_5643_89a0_7a7e8d85b52c); -} +::windows_core::imp::com_interface!(ITimedMetadataEncodingPropertiesStatics, ITimedMetadataEncodingPropertiesStatics_Vtbl, 0x6629bb67_6e55_5643_89a0_7a7e8d85b52c); #[repr(C)] #[doc(hidden)] pub struct ITimedMetadataEncodingPropertiesStatics_Vtbl { @@ -756,16 +442,7 @@ pub struct ITimedMetadataEncodingPropertiesStatics_Vtbl { pub CreateSsa: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, formatUserData_array_size: u32, formatuserdata: *const u8, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateVobSub: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, formatUserData_array_size: u32, formatuserdata: *const u8, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVideoEncodingProperties(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVideoEncodingProperties { - type Vtable = IVideoEncodingProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVideoEncodingProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x76ee6c9a_37c2_4f2a_880a_1282bbb4373d); -} +::windows_core::imp::com_interface!(IVideoEncodingProperties, IVideoEncodingProperties_Vtbl, 0x76ee6c9a_37c2_4f2a_880a_1282bbb4373d); #[repr(C)] #[doc(hidden)] pub struct IVideoEncodingProperties_Vtbl { @@ -779,16 +456,7 @@ pub struct IVideoEncodingProperties_Vtbl { pub FrameRate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub PixelAspectRatio: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVideoEncodingProperties2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVideoEncodingProperties2 { - type Vtable = IVideoEncodingProperties2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVideoEncodingProperties2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf743a1ef_d465_4290_a94b_ef0f1528f8e3); -} +::windows_core::imp::com_interface!(IVideoEncodingProperties2, IVideoEncodingProperties2_Vtbl, 0xf743a1ef_d465_4290_a94b_ef0f1528f8e3); #[repr(C)] #[doc(hidden)] pub struct IVideoEncodingProperties2_Vtbl { @@ -798,64 +466,28 @@ pub struct IVideoEncodingProperties2_Vtbl { pub SetProfileId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i32) -> ::windows_core::HRESULT, pub ProfileId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVideoEncodingProperties3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVideoEncodingProperties3 { - type Vtable = IVideoEncodingProperties3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVideoEncodingProperties3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x386bcdc4_873a_479f_b3eb_56c1fcbec6d7); -} +::windows_core::imp::com_interface!(IVideoEncodingProperties3, IVideoEncodingProperties3_Vtbl, 0x386bcdc4_873a_479f_b3eb_56c1fcbec6d7); #[repr(C)] #[doc(hidden)] pub struct IVideoEncodingProperties3_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub StereoscopicVideoPackingMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut StereoscopicVideoPackingMode) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVideoEncodingProperties4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVideoEncodingProperties4 { - type Vtable = IVideoEncodingProperties4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVideoEncodingProperties4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x724ef014_c10c_40f2_9d72_3ee13b45fa8e); -} +::windows_core::imp::com_interface!(IVideoEncodingProperties4, IVideoEncodingProperties4_Vtbl, 0x724ef014_c10c_40f2_9d72_3ee13b45fa8e); #[repr(C)] #[doc(hidden)] pub struct IVideoEncodingProperties4_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub SphericalVideoFrameFormat: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut SphericalVideoFrameFormat) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVideoEncodingProperties5(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVideoEncodingProperties5 { - type Vtable = IVideoEncodingProperties5_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVideoEncodingProperties5 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4959080f_272f_4ece_a4df_c0ccdb33d840); -} +::windows_core::imp::com_interface!(IVideoEncodingProperties5, IVideoEncodingProperties5_Vtbl, 0x4959080f_272f_4ece_a4df_c0ccdb33d840); #[repr(C)] #[doc(hidden)] pub struct IVideoEncodingProperties5_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Copy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVideoEncodingPropertiesStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVideoEncodingPropertiesStatics { - type Vtable = IVideoEncodingPropertiesStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVideoEncodingPropertiesStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3ce14d44_1dc5_43db_9f38_ebebf90152cb); -} +::windows_core::imp::com_interface!(IVideoEncodingPropertiesStatics, IVideoEncodingPropertiesStatics_Vtbl, 0x3ce14d44_1dc5_43db_9f38_ebebf90152cb); #[repr(C)] #[doc(hidden)] pub struct IVideoEncodingPropertiesStatics_Vtbl { @@ -864,32 +496,14 @@ pub struct IVideoEncodingPropertiesStatics_Vtbl { pub CreateMpeg2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateUncompressed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, subtype: ::std::mem::MaybeUninit<::windows_core::HSTRING>, width: u32, height: u32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVideoEncodingPropertiesStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVideoEncodingPropertiesStatics2 { - type Vtable = IVideoEncodingPropertiesStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVideoEncodingPropertiesStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcf1ebd5d_49fe_4d00_b59a_cfa4dfc51944); -} +::windows_core::imp::com_interface!(IVideoEncodingPropertiesStatics2, IVideoEncodingPropertiesStatics2_Vtbl, 0xcf1ebd5d_49fe_4d00_b59a_cfa4dfc51944); #[repr(C)] #[doc(hidden)] pub struct IVideoEncodingPropertiesStatics2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateHevc: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVideoEncodingPropertiesStatics3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVideoEncodingPropertiesStatics3 { - type Vtable = IVideoEncodingPropertiesStatics3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVideoEncodingPropertiesStatics3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x65b46685_60da_5e51_91a2_b38c4763b872); -} +::windows_core::imp::com_interface!(IVideoEncodingPropertiesStatics3, IVideoEncodingPropertiesStatics3_Vtbl, 0x65b46685_60da_5e51_91a2_b38c4763b872); #[repr(C)] #[doc(hidden)] pub struct IVideoEncodingPropertiesStatics3_Vtbl { @@ -897,16 +511,7 @@ pub struct IVideoEncodingPropertiesStatics3_Vtbl { pub CreateVp9: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateAv1: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVp9ProfileIdsStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVp9ProfileIdsStatics { - type Vtable = IVp9ProfileIdsStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVp9ProfileIdsStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x20311a55_fe06_5883_92d9_6080c97743e5); -} +::windows_core::imp::com_interface!(IVp9ProfileIdsStatics, IVp9ProfileIdsStatics_Vtbl, 0x20311a55_fe06_5883_92d9_6080c97743e5); #[repr(C)] #[doc(hidden)] pub struct IVp9ProfileIdsStatics_Vtbl { @@ -918,6 +523,8 @@ pub struct IVp9ProfileIdsStatics_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AudioEncodingProperties(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AudioEncodingProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(AudioEncodingProperties, IMediaEncodingProperties); impl AudioEncodingProperties { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -971,14 +578,14 @@ impl AudioEncodingProperties { } } pub fn IsSpatial(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsSpatial)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Copy(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Copy)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1027,35 +634,35 @@ impl AudioEncodingProperties { }) } pub fn SetFormatUserData(&self, value: &[u8]) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetFormatUserData)(::windows_core::Interface::as_raw(this), value.len().try_into().unwrap(), value.as_ptr()).ok() } } pub fn GetFormatUserData(&self, value: &mut ::windows_core::Array) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).GetFormatUserData)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Type(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Type)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetSubtype(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetSubtype)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn Subtype(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Subtype)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1077,15 +684,11 @@ impl ::windows_core::RuntimeType for AudioEncodingProperties { } unsafe impl ::windows_core::Interface for AudioEncodingProperties { type Vtable = IAudioEncodingProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AudioEncodingProperties { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AudioEncodingProperties { const NAME: &'static str = "Windows.Media.MediaProperties.AudioEncodingProperties"; } -::windows_core::imp::interface_hierarchy!(AudioEncodingProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for AudioEncodingProperties {} unsafe impl ::core::marker::Send for AudioEncodingProperties {} unsafe impl ::core::marker::Sync for AudioEncodingProperties {} pub struct Av1ProfileIds; @@ -1174,6 +777,8 @@ impl ::windows_core::RuntimeName for Av1ProfileIds { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContainerEncodingProperties(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContainerEncodingProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ContainerEncodingProperties, IMediaEncodingProperties); impl ContainerEncodingProperties { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1183,7 +788,7 @@ impl ContainerEncodingProperties { SHARED.call(callback) } pub fn Copy(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Copy)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1192,25 +797,25 @@ impl ContainerEncodingProperties { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Type(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Type)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetSubtype(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetSubtype)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn Subtype(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Subtype)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1222,15 +827,11 @@ impl ::windows_core::RuntimeType for ContainerEncodingProperties { } unsafe impl ::windows_core::Interface for ContainerEncodingProperties { type Vtable = IContainerEncodingProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContainerEncodingProperties { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContainerEncodingProperties { const NAME: &'static str = "Windows.Media.MediaProperties.ContainerEncodingProperties"; } -::windows_core::imp::interface_hierarchy!(ContainerEncodingProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ContainerEncodingProperties {} unsafe impl ::core::marker::Send for ContainerEncodingProperties {} unsafe impl ::core::marker::Sync for ContainerEncodingProperties {} pub struct H264ProfileIds; @@ -1450,6 +1051,8 @@ impl ::windows_core::RuntimeName for HevcProfileIds { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ImageEncodingProperties(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ImageEncodingProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ImageEncodingProperties, IMediaEncodingProperties); impl ImageEncodingProperties { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1481,7 +1084,7 @@ impl ImageEncodingProperties { } } pub fn Copy(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Copy)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1526,25 +1129,25 @@ impl ImageEncodingProperties { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Type(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Type)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetSubtype(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetSubtype)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn Subtype(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Subtype)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1571,20 +1174,17 @@ impl ::windows_core::RuntimeType for ImageEncodingProperties { } unsafe impl ::windows_core::Interface for ImageEncodingProperties { type Vtable = IImageEncodingProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ImageEncodingProperties { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ImageEncodingProperties { const NAME: &'static str = "Windows.Media.MediaProperties.ImageEncodingProperties"; } -::windows_core::imp::interface_hierarchy!(ImageEncodingProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ImageEncodingProperties {} unsafe impl ::core::marker::Send for ImageEncodingProperties {} unsafe impl ::core::marker::Sync for ImageEncodingProperties {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaEncodingProfile(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaEncodingProfile, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaEncodingProfile { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1639,15 +1239,15 @@ impl MediaEncodingProfile { #[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] pub fn SetAudioTracks(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetAudioTracks)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Media_Core\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] pub fn GetAudioTracks(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetAudioTracks)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1657,15 +1257,15 @@ impl MediaEncodingProfile { #[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] pub fn SetVideoTracks(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetVideoTracks)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Media_Core\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] pub fn GetVideoTracks(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetVideoTracks)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1675,15 +1275,15 @@ impl MediaEncodingProfile { #[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] pub fn SetTimedMetadataTracks(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetTimedMetadataTracks)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Media_Core\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] pub fn GetTimedMetadataTracks(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetTimedMetadataTracks)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1723,22 +1323,22 @@ impl MediaEncodingProfile { #[cfg(feature = "Storage")] pub fn CreateFromFileAsync(file: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IMediaEncodingProfileStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateFromFileAsync)(::windows_core::Interface::as_raw(this), file.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateFromFileAsync)(::windows_core::Interface::as_raw(this), file.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn CreateFromStreamAsync(stream: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IMediaEncodingProfileStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateFromStreamAsync)(::windows_core::Interface::as_raw(this), stream.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateFromStreamAsync)(::windows_core::Interface::as_raw(this), stream.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn CreateWav(quality: AudioEncodingQuality) -> ::windows_core::Result { @@ -1809,14 +1409,11 @@ impl ::windows_core::RuntimeType for MediaEncodingProfile { } unsafe impl ::windows_core::Interface for MediaEncodingProfile { type Vtable = IMediaEncodingProfile_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaEncodingProfile { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaEncodingProfile { const NAME: &'static str = "Windows.Media.MediaProperties.MediaEncodingProfile"; } -::windows_core::imp::interface_hierarchy!(MediaEncodingProfile, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaEncodingProfile {} unsafe impl ::core::marker::Sync for MediaEncodingProfile {} pub struct MediaEncodingSubtypes; @@ -2184,6 +1781,10 @@ impl ::windows_core::RuntimeName for MediaEncodingSubtypes { #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaPropertySet(::windows_core::IUnknown); #[cfg(feature = "Foundation_Collections")] +::windows_core::imp::interface_hierarchy!(MediaPropertySet, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(MediaPropertySet, super::super::Foundation::Collections::IIterable::>, super::super::Foundation::Collections::IMap::<::windows_core::GUID, ::windows_core::IInspectable>); +#[cfg(feature = "Foundation_Collections")] impl MediaPropertySet { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2195,7 +1796,7 @@ impl MediaPropertySet { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> ::windows_core::Result>> { - let this = &::windows_core::ComInterface::cast::>>(self)?; + let this = &::windows_core::Interface::cast::>>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2269,10 +1870,7 @@ impl ::windows_core::RuntimeType for MediaPropertySet { #[cfg(feature = "Foundation_Collections")] unsafe impl ::windows_core::Interface for MediaPropertySet { type Vtable = super::super::Foundation::Collections::IMap_Vtbl<::windows_core::GUID, ::windows_core::IInspectable>; -} -#[cfg(feature = "Foundation_Collections")] -unsafe impl ::windows_core::ComInterface for MediaPropertySet { - const IID: ::windows_core::GUID = as ::windows_core::ComInterface>::IID; + const IID: ::windows_core::GUID = as ::windows_core::Interface>::IID; } #[cfg(feature = "Foundation_Collections")] impl ::windows_core::RuntimeName for MediaPropertySet { @@ -2295,18 +1893,13 @@ impl ::core::iter::IntoIterator for &MediaPropertySet { } } #[cfg(feature = "Foundation_Collections")] -::windows_core::imp::interface_hierarchy!(MediaPropertySet, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto>> for MediaPropertySet {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for MediaPropertySet {} -#[cfg(feature = "Foundation_Collections")] unsafe impl ::core::marker::Send for MediaPropertySet {} #[cfg(feature = "Foundation_Collections")] unsafe impl ::core::marker::Sync for MediaPropertySet {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaRatio(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaRatio, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaRatio { pub fn SetNumerator(&self, value: u32) -> ::windows_core::Result<()> { let this = self; @@ -2336,14 +1929,11 @@ impl ::windows_core::RuntimeType for MediaRatio { } unsafe impl ::windows_core::Interface for MediaRatio { type Vtable = IMediaRatio_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaRatio { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaRatio { const NAME: &'static str = "Windows.Media.MediaProperties.MediaRatio"; } -::windows_core::imp::interface_hierarchy!(MediaRatio, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaRatio {} unsafe impl ::core::marker::Sync for MediaRatio {} pub struct Mpeg2ProfileIds; @@ -2390,6 +1980,8 @@ impl ::windows_core::RuntimeName for Mpeg2ProfileIds { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct TimedMetadataEncodingProperties(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(TimedMetadataEncodingProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(TimedMetadataEncodingProperties, IMediaEncodingProperties); impl TimedMetadataEncodingProperties { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2426,15 +2018,15 @@ impl TimedMetadataEncodingProperties { } } pub fn SetFormatUserData(&self, value: &[u8]) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetFormatUserData)(::windows_core::Interface::as_raw(this), value.len().try_into().unwrap(), value.as_ptr()).ok() } } pub fn GetFormatUserData(&self, value: &mut ::windows_core::Array) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).GetFormatUserData)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } } pub fn Copy(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Copy)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2475,20 +2067,18 @@ impl ::windows_core::RuntimeType for TimedMetadataEncodingProperties { } unsafe impl ::windows_core::Interface for TimedMetadataEncodingProperties { type Vtable = IMediaEncodingProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TimedMetadataEncodingProperties { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for TimedMetadataEncodingProperties { const NAME: &'static str = "Windows.Media.MediaProperties.TimedMetadataEncodingProperties"; } -::windows_core::imp::interface_hierarchy!(TimedMetadataEncodingProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for TimedMetadataEncodingProperties {} unsafe impl ::core::marker::Send for TimedMetadataEncodingProperties {} unsafe impl ::core::marker::Sync for TimedMetadataEncodingProperties {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VideoEncodingProperties(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VideoEncodingProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(VideoEncodingProperties, IMediaEncodingProperties); impl VideoEncodingProperties { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2500,25 +2090,25 @@ impl VideoEncodingProperties { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Type(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Type)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetSubtype(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetSubtype)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn Subtype(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Subtype)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2572,40 +2162,40 @@ impl VideoEncodingProperties { } } pub fn SetFormatUserData(&self, value: &[u8]) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetFormatUserData)(::windows_core::Interface::as_raw(this), value.len().try_into().unwrap(), value.as_ptr()).ok() } } pub fn GetFormatUserData(&self, value: &mut ::windows_core::Array) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).GetFormatUserData)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } } pub fn SetProfileId(&self, value: i32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetProfileId)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn ProfileId(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ProfileId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn StereoscopicVideoPackingMode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).StereoscopicVideoPackingMode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SphericalVideoFrameFormat(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SphericalVideoFrameFormat)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Copy(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Copy)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2668,15 +2258,11 @@ impl ::windows_core::RuntimeType for VideoEncodingProperties { } unsafe impl ::windows_core::Interface for VideoEncodingProperties { type Vtable = IVideoEncodingProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VideoEncodingProperties { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VideoEncodingProperties { const NAME: &'static str = "Windows.Media.MediaProperties.VideoEncodingProperties"; } -::windows_core::imp::interface_hierarchy!(VideoEncodingProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for VideoEncodingProperties {} unsafe impl ::core::marker::Send for VideoEncodingProperties {} unsafe impl ::core::marker::Sync for VideoEncodingProperties {} pub struct Vp9ProfileIds; diff --git a/crates/libs/windows/src/Windows/Media/Miracast/mod.rs b/crates/libs/windows/src/Windows/Media/Miracast/mod.rs index e350ebf94a..2533be7af5 100644 --- a/crates/libs/windows/src/Windows/Media/Miracast/mod.rs +++ b/crates/libs/windows/src/Windows/Media/Miracast/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMiracastReceiver(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMiracastReceiver { - type Vtable = IMiracastReceiver_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMiracastReceiver { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7a315258_e444_51b4_aff7_b88daa1229e0); -} +::windows_core::imp::com_interface!(IMiracastReceiver, IMiracastReceiver_Vtbl, 0x7a315258_e444_51b4_aff7_b88daa1229e0); #[repr(C)] #[doc(hidden)] pub struct IMiracastReceiver_Vtbl { @@ -32,16 +23,7 @@ pub struct IMiracastReceiver_Vtbl { pub ClearKnownTransmitters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RemoveKnownTransmitter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, transmitter: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMiracastReceiverApplySettingsResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMiracastReceiverApplySettingsResult { - type Vtable = IMiracastReceiverApplySettingsResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMiracastReceiverApplySettingsResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd0aa6272_09cd_58e1_a4f2_5d5143d312f9); -} +::windows_core::imp::com_interface!(IMiracastReceiverApplySettingsResult, IMiracastReceiverApplySettingsResult_Vtbl, 0xd0aa6272_09cd_58e1_a4f2_5d5143d312f9); #[repr(C)] #[doc(hidden)] pub struct IMiracastReceiverApplySettingsResult_Vtbl { @@ -49,16 +31,7 @@ pub struct IMiracastReceiverApplySettingsResult_Vtbl { pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut MiracastReceiverApplySettingsStatus) -> ::windows_core::HRESULT, pub ExtendedError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMiracastReceiverConnection(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMiracastReceiverConnection { - type Vtable = IMiracastReceiverConnection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMiracastReceiverConnection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x704b2f36_d2e5_551f_a854_f822b7917d28); -} +::windows_core::imp::com_interface!(IMiracastReceiverConnection, IMiracastReceiverConnection_Vtbl, 0x704b2f36_d2e5_551f_a854_f822b7917d28); #[repr(C)] #[doc(hidden)] pub struct IMiracastReceiverConnection_Vtbl { @@ -74,16 +47,7 @@ pub struct IMiracastReceiverConnection_Vtbl { pub CursorImageChannel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub StreamControl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMiracastReceiverConnectionCreatedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMiracastReceiverConnectionCreatedEventArgs { - type Vtable = IMiracastReceiverConnectionCreatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMiracastReceiverConnectionCreatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7d8dfa39_307a_5c0f_94bd_d0c69d169982); -} +::windows_core::imp::com_interface!(IMiracastReceiverConnectionCreatedEventArgs, IMiracastReceiverConnectionCreatedEventArgs_Vtbl, 0x7d8dfa39_307a_5c0f_94bd_d0c69d169982); #[repr(C)] #[doc(hidden)] pub struct IMiracastReceiverConnectionCreatedEventArgs_Vtbl { @@ -92,16 +56,7 @@ pub struct IMiracastReceiverConnectionCreatedEventArgs_Vtbl { pub Pin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMiracastReceiverCursorImageChannel(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMiracastReceiverCursorImageChannel { - type Vtable = IMiracastReceiverCursorImageChannel_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMiracastReceiverCursorImageChannel { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd9ac332d_723a_5a9d_b90a_81153efa2a0f); -} +::windows_core::imp::com_interface!(IMiracastReceiverCursorImageChannel, IMiracastReceiverCursorImageChannel_Vtbl, 0xd9ac332d_723a_5a9d_b90a_81153efa2a0f); #[repr(C)] #[doc(hidden)] pub struct IMiracastReceiverCursorImageChannel_Vtbl { @@ -124,16 +79,7 @@ pub struct IMiracastReceiverCursorImageChannel_Vtbl { pub PositionChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemovePositionChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMiracastReceiverCursorImageChannelSettings(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMiracastReceiverCursorImageChannelSettings { - type Vtable = IMiracastReceiverCursorImageChannelSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMiracastReceiverCursorImageChannelSettings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xccdbedff_bd00_5b9c_8e4c_00cacf86b634); -} +::windows_core::imp::com_interface!(IMiracastReceiverCursorImageChannelSettings, IMiracastReceiverCursorImageChannelSettings_Vtbl, 0xccdbedff_bd00_5b9c_8e4c_00cacf86b634); #[repr(C)] #[doc(hidden)] pub struct IMiracastReceiverCursorImageChannelSettings_Vtbl { @@ -149,32 +95,14 @@ pub struct IMiracastReceiverCursorImageChannelSettings_Vtbl { #[cfg(not(feature = "Graphics"))] SetMaxImageSize: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMiracastReceiverDisconnectedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMiracastReceiverDisconnectedEventArgs { - type Vtable = IMiracastReceiverDisconnectedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMiracastReceiverDisconnectedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd9a15e5e_5fee_57e6_b4b0_04727db93229); -} +::windows_core::imp::com_interface!(IMiracastReceiverDisconnectedEventArgs, IMiracastReceiverDisconnectedEventArgs_Vtbl, 0xd9a15e5e_5fee_57e6_b4b0_04727db93229); #[repr(C)] #[doc(hidden)] pub struct IMiracastReceiverDisconnectedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Connection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMiracastReceiverGameControllerDevice(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMiracastReceiverGameControllerDevice { - type Vtable = IMiracastReceiverGameControllerDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMiracastReceiverGameControllerDevice { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2d7171e8_bed4_5118_a058_e2477eb5888d); -} +::windows_core::imp::com_interface!(IMiracastReceiverGameControllerDevice, IMiracastReceiverGameControllerDevice_Vtbl, 0x2d7171e8_bed4_5118_a058_e2477eb5888d); #[repr(C)] #[doc(hidden)] pub struct IMiracastReceiverGameControllerDevice_Vtbl { @@ -188,16 +116,7 @@ pub struct IMiracastReceiverGameControllerDevice_Vtbl { pub Changed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMiracastReceiverInputDevices(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMiracastReceiverInputDevices { - type Vtable = IMiracastReceiverInputDevices_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMiracastReceiverInputDevices { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xda35bb02_28aa_5ee8_96f5_a42901c66f00); -} +::windows_core::imp::com_interface!(IMiracastReceiverInputDevices, IMiracastReceiverInputDevices_Vtbl, 0xda35bb02_28aa_5ee8_96f5_a42901c66f00); #[repr(C)] #[doc(hidden)] pub struct IMiracastReceiverInputDevices_Vtbl { @@ -205,16 +124,7 @@ pub struct IMiracastReceiverInputDevices_Vtbl { pub Keyboard: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GameController: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMiracastReceiverKeyboardDevice(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMiracastReceiverKeyboardDevice { - type Vtable = IMiracastReceiverKeyboardDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMiracastReceiverKeyboardDevice { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbeb67272_06c0_54ff_ac96_217464ff2501); -} +::windows_core::imp::com_interface!(IMiracastReceiverKeyboardDevice, IMiracastReceiverKeyboardDevice_Vtbl, 0xbeb67272_06c0_54ff_ac96_217464ff2501); #[repr(C)] #[doc(hidden)] pub struct IMiracastReceiverKeyboardDevice_Vtbl { @@ -226,16 +136,7 @@ pub struct IMiracastReceiverKeyboardDevice_Vtbl { pub Changed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMiracastReceiverMediaSourceCreatedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMiracastReceiverMediaSourceCreatedEventArgs { - type Vtable = IMiracastReceiverMediaSourceCreatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMiracastReceiverMediaSourceCreatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x17cf519e_1246_531d_945a_6b158e39c3aa); -} +::windows_core::imp::com_interface!(IMiracastReceiverMediaSourceCreatedEventArgs, IMiracastReceiverMediaSourceCreatedEventArgs_Vtbl, 0x17cf519e_1246_531d_945a_6b158e39c3aa); #[repr(C)] #[doc(hidden)] pub struct IMiracastReceiverMediaSourceCreatedEventArgs_Vtbl { @@ -248,16 +149,7 @@ pub struct IMiracastReceiverMediaSourceCreatedEventArgs_Vtbl { pub CursorImageChannelSettings: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMiracastReceiverSession(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMiracastReceiverSession { - type Vtable = IMiracastReceiverSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMiracastReceiverSession { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1d2bcdb4_ef8b_5209_bfc9_c32116504803); -} +::windows_core::imp::com_interface!(IMiracastReceiverSession, IMiracastReceiverSession_Vtbl, 0x1d2bcdb4_ef8b_5209_bfc9_c32116504803); #[repr(C)] #[doc(hidden)] pub struct IMiracastReceiverSession_Vtbl { @@ -275,16 +167,7 @@ pub struct IMiracastReceiverSession_Vtbl { pub Start: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub StartAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMiracastReceiverSessionStartResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMiracastReceiverSessionStartResult { - type Vtable = IMiracastReceiverSessionStartResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMiracastReceiverSessionStartResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb7c573ee_40ca_51ff_95f2_c9de34f2e90e); -} +::windows_core::imp::com_interface!(IMiracastReceiverSessionStartResult, IMiracastReceiverSessionStartResult_Vtbl, 0xb7c573ee_40ca_51ff_95f2_c9de34f2e90e); #[repr(C)] #[doc(hidden)] pub struct IMiracastReceiverSessionStartResult_Vtbl { @@ -292,16 +175,7 @@ pub struct IMiracastReceiverSessionStartResult_Vtbl { pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut MiracastReceiverSessionStartStatus) -> ::windows_core::HRESULT, pub ExtendedError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMiracastReceiverSettings(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMiracastReceiverSettings { - type Vtable = IMiracastReceiverSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMiracastReceiverSettings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x57cd2f24_c55a_5fbe_9464_eb05307705dd); -} +::windows_core::imp::com_interface!(IMiracastReceiverSettings, IMiracastReceiverSettings_Vtbl, 0x57cd2f24_c55a_5fbe_9464_eb05307705dd); #[repr(C)] #[doc(hidden)] pub struct IMiracastReceiverSettings_Vtbl { @@ -317,16 +191,7 @@ pub struct IMiracastReceiverSettings_Vtbl { pub RequireAuthorizationFromKnownTransmitters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetRequireAuthorizationFromKnownTransmitters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMiracastReceiverStatus(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMiracastReceiverStatus { - type Vtable = IMiracastReceiverStatus_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMiracastReceiverStatus { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc28a5591_23ab_519e_ad09_90bff6dcc87e); -} +::windows_core::imp::com_interface!(IMiracastReceiverStatus, IMiracastReceiverStatus_Vtbl, 0xc28a5591_23ab_519e_ad09_90bff6dcc87e); #[repr(C)] #[doc(hidden)] pub struct IMiracastReceiverStatus_Vtbl { @@ -340,16 +205,7 @@ pub struct IMiracastReceiverStatus_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] KnownTransmitters: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMiracastReceiverStreamControl(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMiracastReceiverStreamControl { - type Vtable = IMiracastReceiverStreamControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMiracastReceiverStreamControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x38ea2d8b_2769_5ad7_8a8a_254b9df7ba82); -} +::windows_core::imp::com_interface!(IMiracastReceiverStreamControl, IMiracastReceiverStreamControl_Vtbl, 0x38ea2d8b_2769_5ad7_8a8a_254b9df7ba82); #[repr(C)] #[doc(hidden)] pub struct IMiracastReceiverStreamControl_Vtbl { @@ -361,16 +217,7 @@ pub struct IMiracastReceiverStreamControl_Vtbl { pub MuteAudio: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetMuteAudio: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMiracastReceiverVideoStreamSettings(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMiracastReceiverVideoStreamSettings { - type Vtable = IMiracastReceiverVideoStreamSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMiracastReceiverVideoStreamSettings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x169b5e1b_149d_52d0_b126_6f89744e4f50); -} +::windows_core::imp::com_interface!(IMiracastReceiverVideoStreamSettings, IMiracastReceiverVideoStreamSettings_Vtbl, 0x169b5e1b_149d_52d0_b126_6f89744e4f50); #[repr(C)] #[doc(hidden)] pub struct IMiracastReceiverVideoStreamSettings_Vtbl { @@ -386,16 +233,7 @@ pub struct IMiracastReceiverVideoStreamSettings_Vtbl { pub Bitrate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows_core::HRESULT, pub SetBitrate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMiracastTransmitter(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMiracastTransmitter { - type Vtable = IMiracastTransmitter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMiracastTransmitter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x342d79fd_2e64_5508_8a30_833d1eac70d0); -} +::windows_core::imp::com_interface!(IMiracastTransmitter, IMiracastTransmitter_Vtbl, 0x342d79fd_2e64_5508_8a30_833d1eac70d0); #[repr(C)] #[doc(hidden)] pub struct IMiracastTransmitter_Vtbl { @@ -414,6 +252,7 @@ pub struct IMiracastTransmitter_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MiracastReceiver(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MiracastReceiver, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MiracastReceiver { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -532,19 +371,17 @@ impl ::windows_core::RuntimeType for MiracastReceiver { } unsafe impl ::windows_core::Interface for MiracastReceiver { type Vtable = IMiracastReceiver_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MiracastReceiver { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MiracastReceiver { const NAME: &'static str = "Windows.Media.Miracast.MiracastReceiver"; } -::windows_core::imp::interface_hierarchy!(MiracastReceiver, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MiracastReceiver {} unsafe impl ::core::marker::Sync for MiracastReceiver {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MiracastReceiverApplySettingsResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MiracastReceiverApplySettingsResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MiracastReceiverApplySettingsResult { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -566,22 +403,21 @@ impl ::windows_core::RuntimeType for MiracastReceiverApplySettingsResult { } unsafe impl ::windows_core::Interface for MiracastReceiverApplySettingsResult { type Vtable = IMiracastReceiverApplySettingsResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MiracastReceiverApplySettingsResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MiracastReceiverApplySettingsResult { const NAME: &'static str = "Windows.Media.Miracast.MiracastReceiverApplySettingsResult"; } -::windows_core::imp::interface_hierarchy!(MiracastReceiverApplySettingsResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MiracastReceiverApplySettingsResult {} unsafe impl ::core::marker::Sync for MiracastReceiverApplySettingsResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MiracastReceiverConnection(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MiracastReceiverConnection, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(MiracastReceiverConnection, super::super::Foundation::IClosable); impl MiracastReceiverConnection { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Disconnect(&self, reason: MiracastReceiverDisconnectReason) -> ::windows_core::Result<()> { @@ -648,20 +484,17 @@ impl ::windows_core::RuntimeType for MiracastReceiverConnection { } unsafe impl ::windows_core::Interface for MiracastReceiverConnection { type Vtable = IMiracastReceiverConnection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MiracastReceiverConnection { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MiracastReceiverConnection { const NAME: &'static str = "Windows.Media.Miracast.MiracastReceiverConnection"; } -::windows_core::imp::interface_hierarchy!(MiracastReceiverConnection, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for MiracastReceiverConnection {} unsafe impl ::core::marker::Send for MiracastReceiverConnection {} unsafe impl ::core::marker::Sync for MiracastReceiverConnection {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MiracastReceiverConnectionCreatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MiracastReceiverConnectionCreatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MiracastReceiverConnectionCreatedEventArgs { pub fn Connection(&self) -> ::windows_core::Result { let this = self; @@ -690,19 +523,17 @@ impl ::windows_core::RuntimeType for MiracastReceiverConnectionCreatedEventArgs } unsafe impl ::windows_core::Interface for MiracastReceiverConnectionCreatedEventArgs { type Vtable = IMiracastReceiverConnectionCreatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MiracastReceiverConnectionCreatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MiracastReceiverConnectionCreatedEventArgs { const NAME: &'static str = "Windows.Media.Miracast.MiracastReceiverConnectionCreatedEventArgs"; } -::windows_core::imp::interface_hierarchy!(MiracastReceiverConnectionCreatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MiracastReceiverConnectionCreatedEventArgs {} unsafe impl ::core::marker::Sync for MiracastReceiverConnectionCreatedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MiracastReceiverCursorImageChannel(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MiracastReceiverCursorImageChannel, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MiracastReceiverCursorImageChannel { pub fn IsEnabled(&self) -> ::windows_core::Result { let this = self; @@ -772,19 +603,17 @@ impl ::windows_core::RuntimeType for MiracastReceiverCursorImageChannel { } unsafe impl ::windows_core::Interface for MiracastReceiverCursorImageChannel { type Vtable = IMiracastReceiverCursorImageChannel_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MiracastReceiverCursorImageChannel { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MiracastReceiverCursorImageChannel { const NAME: &'static str = "Windows.Media.Miracast.MiracastReceiverCursorImageChannel"; } -::windows_core::imp::interface_hierarchy!(MiracastReceiverCursorImageChannel, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MiracastReceiverCursorImageChannel {} unsafe impl ::core::marker::Sync for MiracastReceiverCursorImageChannel {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MiracastReceiverCursorImageChannelSettings(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MiracastReceiverCursorImageChannelSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MiracastReceiverCursorImageChannelSettings { pub fn IsEnabled(&self) -> ::windows_core::Result { let this = self; @@ -818,19 +647,17 @@ impl ::windows_core::RuntimeType for MiracastReceiverCursorImageChannelSettings } unsafe impl ::windows_core::Interface for MiracastReceiverCursorImageChannelSettings { type Vtable = IMiracastReceiverCursorImageChannelSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MiracastReceiverCursorImageChannelSettings { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MiracastReceiverCursorImageChannelSettings { const NAME: &'static str = "Windows.Media.Miracast.MiracastReceiverCursorImageChannelSettings"; } -::windows_core::imp::interface_hierarchy!(MiracastReceiverCursorImageChannelSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MiracastReceiverCursorImageChannelSettings {} unsafe impl ::core::marker::Sync for MiracastReceiverCursorImageChannelSettings {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MiracastReceiverDisconnectedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MiracastReceiverDisconnectedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MiracastReceiverDisconnectedEventArgs { pub fn Connection(&self) -> ::windows_core::Result { let this = self; @@ -845,19 +672,17 @@ impl ::windows_core::RuntimeType for MiracastReceiverDisconnectedEventArgs { } unsafe impl ::windows_core::Interface for MiracastReceiverDisconnectedEventArgs { type Vtable = IMiracastReceiverDisconnectedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MiracastReceiverDisconnectedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MiracastReceiverDisconnectedEventArgs { const NAME: &'static str = "Windows.Media.Miracast.MiracastReceiverDisconnectedEventArgs"; } -::windows_core::imp::interface_hierarchy!(MiracastReceiverDisconnectedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MiracastReceiverDisconnectedEventArgs {} unsafe impl ::core::marker::Sync for MiracastReceiverDisconnectedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MiracastReceiverGameControllerDevice(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MiracastReceiverGameControllerDevice, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MiracastReceiverGameControllerDevice { pub fn TransmitInput(&self) -> ::windows_core::Result { let this = self; @@ -915,19 +740,17 @@ impl ::windows_core::RuntimeType for MiracastReceiverGameControllerDevice { } unsafe impl ::windows_core::Interface for MiracastReceiverGameControllerDevice { type Vtable = IMiracastReceiverGameControllerDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MiracastReceiverGameControllerDevice { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MiracastReceiverGameControllerDevice { const NAME: &'static str = "Windows.Media.Miracast.MiracastReceiverGameControllerDevice"; } -::windows_core::imp::interface_hierarchy!(MiracastReceiverGameControllerDevice, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MiracastReceiverGameControllerDevice {} unsafe impl ::core::marker::Sync for MiracastReceiverGameControllerDevice {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MiracastReceiverInputDevices(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MiracastReceiverInputDevices, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MiracastReceiverInputDevices { pub fn Keyboard(&self) -> ::windows_core::Result { let this = self; @@ -949,19 +772,17 @@ impl ::windows_core::RuntimeType for MiracastReceiverInputDevices { } unsafe impl ::windows_core::Interface for MiracastReceiverInputDevices { type Vtable = IMiracastReceiverInputDevices_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MiracastReceiverInputDevices { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MiracastReceiverInputDevices { const NAME: &'static str = "Windows.Media.Miracast.MiracastReceiverInputDevices"; } -::windows_core::imp::interface_hierarchy!(MiracastReceiverInputDevices, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MiracastReceiverInputDevices {} unsafe impl ::core::marker::Sync for MiracastReceiverInputDevices {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MiracastReceiverKeyboardDevice(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MiracastReceiverKeyboardDevice, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MiracastReceiverKeyboardDevice { pub fn TransmitInput(&self) -> ::windows_core::Result { let this = self; @@ -1008,19 +829,17 @@ impl ::windows_core::RuntimeType for MiracastReceiverKeyboardDevice { } unsafe impl ::windows_core::Interface for MiracastReceiverKeyboardDevice { type Vtable = IMiracastReceiverKeyboardDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MiracastReceiverKeyboardDevice { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MiracastReceiverKeyboardDevice { const NAME: &'static str = "Windows.Media.Miracast.MiracastReceiverKeyboardDevice"; } -::windows_core::imp::interface_hierarchy!(MiracastReceiverKeyboardDevice, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MiracastReceiverKeyboardDevice {} unsafe impl ::core::marker::Sync for MiracastReceiverKeyboardDevice {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MiracastReceiverMediaSourceCreatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MiracastReceiverMediaSourceCreatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MiracastReceiverMediaSourceCreatedEventArgs { pub fn Connection(&self) -> ::windows_core::Result { let this = self; @@ -1058,22 +877,21 @@ impl ::windows_core::RuntimeType for MiracastReceiverMediaSourceCreatedEventArgs } unsafe impl ::windows_core::Interface for MiracastReceiverMediaSourceCreatedEventArgs { type Vtable = IMiracastReceiverMediaSourceCreatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MiracastReceiverMediaSourceCreatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MiracastReceiverMediaSourceCreatedEventArgs { const NAME: &'static str = "Windows.Media.Miracast.MiracastReceiverMediaSourceCreatedEventArgs"; } -::windows_core::imp::interface_hierarchy!(MiracastReceiverMediaSourceCreatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MiracastReceiverMediaSourceCreatedEventArgs {} unsafe impl ::core::marker::Sync for MiracastReceiverMediaSourceCreatedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MiracastReceiverSession(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MiracastReceiverSession, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(MiracastReceiverSession, super::super::Foundation::IClosable); impl MiracastReceiverSession { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn ConnectionCreated(&self, handler: P0) -> ::windows_core::Result @@ -1160,20 +978,17 @@ impl ::windows_core::RuntimeType for MiracastReceiverSession { } unsafe impl ::windows_core::Interface for MiracastReceiverSession { type Vtable = IMiracastReceiverSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MiracastReceiverSession { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MiracastReceiverSession { const NAME: &'static str = "Windows.Media.Miracast.MiracastReceiverSession"; } -::windows_core::imp::interface_hierarchy!(MiracastReceiverSession, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for MiracastReceiverSession {} unsafe impl ::core::marker::Send for MiracastReceiverSession {} unsafe impl ::core::marker::Sync for MiracastReceiverSession {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MiracastReceiverSessionStartResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MiracastReceiverSessionStartResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MiracastReceiverSessionStartResult { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -1195,19 +1010,17 @@ impl ::windows_core::RuntimeType for MiracastReceiverSessionStartResult { } unsafe impl ::windows_core::Interface for MiracastReceiverSessionStartResult { type Vtable = IMiracastReceiverSessionStartResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MiracastReceiverSessionStartResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MiracastReceiverSessionStartResult { const NAME: &'static str = "Windows.Media.Miracast.MiracastReceiverSessionStartResult"; } -::windows_core::imp::interface_hierarchy!(MiracastReceiverSessionStartResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MiracastReceiverSessionStartResult {} unsafe impl ::core::marker::Sync for MiracastReceiverSessionStartResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MiracastReceiverSettings(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MiracastReceiverSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MiracastReceiverSettings { pub fn FriendlyName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1270,19 +1083,17 @@ impl ::windows_core::RuntimeType for MiracastReceiverSettings { } unsafe impl ::windows_core::Interface for MiracastReceiverSettings { type Vtable = IMiracastReceiverSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MiracastReceiverSettings { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MiracastReceiverSettings { const NAME: &'static str = "Windows.Media.Miracast.MiracastReceiverSettings"; } -::windows_core::imp::interface_hierarchy!(MiracastReceiverSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MiracastReceiverSettings {} unsafe impl ::core::marker::Sync for MiracastReceiverSettings {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MiracastReceiverStatus(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MiracastReceiverStatus, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MiracastReceiverStatus { pub fn ListeningStatus(&self) -> ::windows_core::Result { let this = self; @@ -1327,19 +1138,17 @@ impl ::windows_core::RuntimeType for MiracastReceiverStatus { } unsafe impl ::windows_core::Interface for MiracastReceiverStatus { type Vtable = IMiracastReceiverStatus_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MiracastReceiverStatus { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MiracastReceiverStatus { const NAME: &'static str = "Windows.Media.Miracast.MiracastReceiverStatus"; } -::windows_core::imp::interface_hierarchy!(MiracastReceiverStatus, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MiracastReceiverStatus {} unsafe impl ::core::marker::Sync for MiracastReceiverStatus {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MiracastReceiverStreamControl(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MiracastReceiverStreamControl, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MiracastReceiverStreamControl { pub fn GetVideoStreamSettings(&self) -> ::windows_core::Result { let this = self; @@ -1389,19 +1198,17 @@ impl ::windows_core::RuntimeType for MiracastReceiverStreamControl { } unsafe impl ::windows_core::Interface for MiracastReceiverStreamControl { type Vtable = IMiracastReceiverStreamControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MiracastReceiverStreamControl { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MiracastReceiverStreamControl { const NAME: &'static str = "Windows.Media.Miracast.MiracastReceiverStreamControl"; } -::windows_core::imp::interface_hierarchy!(MiracastReceiverStreamControl, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MiracastReceiverStreamControl {} unsafe impl ::core::marker::Sync for MiracastReceiverStreamControl {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MiracastReceiverVideoStreamSettings(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MiracastReceiverVideoStreamSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MiracastReceiverVideoStreamSettings { #[doc = "Required features: `\"Graphics\"`"] #[cfg(feature = "Graphics")] @@ -1435,19 +1242,17 @@ impl ::windows_core::RuntimeType for MiracastReceiverVideoStreamSettings { } unsafe impl ::windows_core::Interface for MiracastReceiverVideoStreamSettings { type Vtable = IMiracastReceiverVideoStreamSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MiracastReceiverVideoStreamSettings { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MiracastReceiverVideoStreamSettings { const NAME: &'static str = "Windows.Media.Miracast.MiracastReceiverVideoStreamSettings"; } -::windows_core::imp::interface_hierarchy!(MiracastReceiverVideoStreamSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MiracastReceiverVideoStreamSettings {} unsafe impl ::core::marker::Sync for MiracastReceiverVideoStreamSettings {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MiracastTransmitter(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MiracastTransmitter, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MiracastTransmitter { pub fn Name(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1500,14 +1305,11 @@ impl ::windows_core::RuntimeType for MiracastTransmitter { } unsafe impl ::windows_core::Interface for MiracastTransmitter { type Vtable = IMiracastTransmitter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MiracastTransmitter { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MiracastTransmitter { const NAME: &'static str = "Windows.Media.Miracast.MiracastTransmitter"; } -::windows_core::imp::interface_hierarchy!(MiracastTransmitter, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MiracastTransmitter {} unsafe impl ::core::marker::Sync for MiracastTransmitter {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Media/Ocr/mod.rs b/crates/libs/windows/src/Windows/Media/Ocr/mod.rs index ff09be9804..71e3dca8e0 100644 --- a/crates/libs/windows/src/Windows/Media/Ocr/mod.rs +++ b/crates/libs/windows/src/Windows/Media/Ocr/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOcrEngine(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOcrEngine { - type Vtable = IOcrEngine_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOcrEngine { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5a14bc41_5b76_3140_b680_8825562683ac); -} +::windows_core::imp::com_interface!(IOcrEngine, IOcrEngine_Vtbl, 0x5a14bc41_5b76_3140_b680_8825562683ac); #[repr(C)] #[doc(hidden)] pub struct IOcrEngine_Vtbl { @@ -21,16 +12,7 @@ pub struct IOcrEngine_Vtbl { #[cfg(not(feature = "Globalization"))] RecognizerLanguage: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOcrEngineStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOcrEngineStatics { - type Vtable = IOcrEngineStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOcrEngineStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5bffa85a_3384_3540_9940_699120d428a8); -} +::windows_core::imp::com_interface!(IOcrEngineStatics, IOcrEngineStatics_Vtbl, 0x5bffa85a_3384_3540_9940_699120d428a8); #[repr(C)] #[doc(hidden)] pub struct IOcrEngineStatics_Vtbl { @@ -50,16 +32,7 @@ pub struct IOcrEngineStatics_Vtbl { TryCreateFromLanguage: usize, pub TryCreateFromUserProfileLanguages: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOcrLine(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOcrLine { - type Vtable = IOcrLine_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOcrLine { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0043a16f_e31f_3a24_899c_d444bd088124); -} +::windows_core::imp::com_interface!(IOcrLine, IOcrLine_Vtbl, 0x0043a16f_e31f_3a24_899c_d444bd088124); #[repr(C)] #[doc(hidden)] pub struct IOcrLine_Vtbl { @@ -70,16 +43,7 @@ pub struct IOcrLine_Vtbl { Words: usize, pub Text: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOcrResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOcrResult { - type Vtable = IOcrResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOcrResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9bd235b2_175b_3d6a_92e2_388c206e2f63); -} +::windows_core::imp::com_interface!(IOcrResult, IOcrResult_Vtbl, 0x9bd235b2_175b_3d6a_92e2_388c206e2f63); #[repr(C)] #[doc(hidden)] pub struct IOcrResult_Vtbl { @@ -91,16 +55,7 @@ pub struct IOcrResult_Vtbl { pub TextAngle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Text: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOcrWord(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOcrWord { - type Vtable = IOcrWord_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOcrWord { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3c2a477a_5cd9_3525_ba2a_23d1e0a68a1d); -} +::windows_core::imp::com_interface!(IOcrWord, IOcrWord_Vtbl, 0x3c2a477a_5cd9_3525_ba2a_23d1e0a68a1d); #[repr(C)] #[doc(hidden)] pub struct IOcrWord_Vtbl { @@ -111,6 +66,7 @@ pub struct IOcrWord_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct OcrEngine(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(OcrEngine, ::windows_core::IUnknown, ::windows_core::IInspectable); impl OcrEngine { #[doc = "Required features: `\"Graphics_Imaging\"`"] #[cfg(feature = "Graphics_Imaging")] @@ -186,19 +142,17 @@ impl ::windows_core::RuntimeType for OcrEngine { } unsafe impl ::windows_core::Interface for OcrEngine { type Vtable = IOcrEngine_Vtbl; -} -unsafe impl ::windows_core::ComInterface for OcrEngine { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for OcrEngine { const NAME: &'static str = "Windows.Media.Ocr.OcrEngine"; } -::windows_core::imp::interface_hierarchy!(OcrEngine, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for OcrEngine {} unsafe impl ::core::marker::Sync for OcrEngine {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct OcrLine(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(OcrLine, ::windows_core::IUnknown, ::windows_core::IInspectable); impl OcrLine { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -222,19 +176,17 @@ impl ::windows_core::RuntimeType for OcrLine { } unsafe impl ::windows_core::Interface for OcrLine { type Vtable = IOcrLine_Vtbl; -} -unsafe impl ::windows_core::ComInterface for OcrLine { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for OcrLine { const NAME: &'static str = "Windows.Media.Ocr.OcrLine"; } -::windows_core::imp::interface_hierarchy!(OcrLine, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for OcrLine {} unsafe impl ::core::marker::Sync for OcrLine {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct OcrResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(OcrResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl OcrResult { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -265,19 +217,17 @@ impl ::windows_core::RuntimeType for OcrResult { } unsafe impl ::windows_core::Interface for OcrResult { type Vtable = IOcrResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for OcrResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for OcrResult { const NAME: &'static str = "Windows.Media.Ocr.OcrResult"; } -::windows_core::imp::interface_hierarchy!(OcrResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for OcrResult {} unsafe impl ::core::marker::Sync for OcrResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct OcrWord(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(OcrWord, ::windows_core::IUnknown, ::windows_core::IInspectable); impl OcrWord { pub fn BoundingRect(&self) -> ::windows_core::Result { let this = self; @@ -299,13 +249,10 @@ impl ::windows_core::RuntimeType for OcrWord { } unsafe impl ::windows_core::Interface for OcrWord { type Vtable = IOcrWord_Vtbl; -} -unsafe impl ::windows_core::ComInterface for OcrWord { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for OcrWord { const NAME: &'static str = "Windows.Media.Ocr.OcrWord"; } -::windows_core::imp::interface_hierarchy!(OcrWord, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for OcrWord {} unsafe impl ::core::marker::Sync for OcrWord {} diff --git a/crates/libs/windows/src/Windows/Media/PlayTo/mod.rs b/crates/libs/windows/src/Windows/Media/PlayTo/mod.rs index 8497268e7f..4e88c0f83a 100644 --- a/crates/libs/windows/src/Windows/Media/PlayTo/mod.rs +++ b/crates/libs/windows/src/Windows/Media/PlayTo/mod.rs @@ -1,48 +1,24 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICurrentTimeChangeRequestedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICurrentTimeChangeRequestedEventArgs { - type Vtable = ICurrentTimeChangeRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICurrentTimeChangeRequestedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x99711324_edc7_4bf5_91f6_3c8627db59e5); -} +::windows_core::imp::com_interface!(ICurrentTimeChangeRequestedEventArgs, ICurrentTimeChangeRequestedEventArgs_Vtbl, 0x99711324_edc7_4bf5_91f6_3c8627db59e5); #[repr(C)] #[doc(hidden)] pub struct ICurrentTimeChangeRequestedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Time: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::TimeSpan) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMuteChangeRequestedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMuteChangeRequestedEventArgs { - type Vtable = IMuteChangeRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMuteChangeRequestedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe4b4f5f6_af1f_4f1e_b437_7da32400e1d4); -} +::windows_core::imp::com_interface!(IMuteChangeRequestedEventArgs, IMuteChangeRequestedEventArgs_Vtbl, 0xe4b4f5f6_af1f_4f1e_b437_7da32400e1d4); #[repr(C)] #[doc(hidden)] pub struct IMuteChangeRequestedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Mute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlayToConnection(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for IPlayToConnection { - type Vtable = IPlayToConnection_Vtbl; -} #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for IPlayToConnection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x112fbfc8_f235_4fde_8d41_9bf27c9e9a40); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + IPlayToConnection, + IPlayToConnection_Vtbl, + 0x112fbfc8_f235_4fde_8d41_9bf27c9e9a40 +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -77,19 +53,13 @@ pub struct IPlayToConnection_Vtbl { #[cfg(not(feature = "deprecated"))] RemoveError: usize, } -#[doc(hidden)] -#[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlayToConnectionErrorEventArgs(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for IPlayToConnectionErrorEventArgs { - type Vtable = IPlayToConnectionErrorEventArgs_Vtbl; -} #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for IPlayToConnectionErrorEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbf5eada6_88e6_445f_9d40_d9b9f8939896); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + IPlayToConnectionErrorEventArgs, + IPlayToConnectionErrorEventArgs_Vtbl, + 0xbf5eada6_88e6_445f_9d40_d9b9f8939896 +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -104,19 +74,13 @@ pub struct IPlayToConnectionErrorEventArgs_Vtbl { #[cfg(not(feature = "deprecated"))] Message: usize, } -#[doc(hidden)] -#[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlayToConnectionStateChangedEventArgs(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for IPlayToConnectionStateChangedEventArgs { - type Vtable = IPlayToConnectionStateChangedEventArgs_Vtbl; -} #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for IPlayToConnectionStateChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x68c4b50f_0c20_4980_8602_58c62238d423); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + IPlayToConnectionStateChangedEventArgs, + IPlayToConnectionStateChangedEventArgs_Vtbl, + 0x68c4b50f_0c20_4980_8602_58c62238d423 +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -131,19 +95,13 @@ pub struct IPlayToConnectionStateChangedEventArgs_Vtbl { #[cfg(not(feature = "deprecated"))] CurrentState: usize, } -#[doc(hidden)] #[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlayToConnectionTransferredEventArgs(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for IPlayToConnectionTransferredEventArgs { - type Vtable = IPlayToConnectionTransferredEventArgs_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for IPlayToConnectionTransferredEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfae3193a_0683_47d9_8df0_18cbb48984d8); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + IPlayToConnectionTransferredEventArgs, + IPlayToConnectionTransferredEventArgs_Vtbl, + 0xfae3193a_0683_47d9_8df0_18cbb48984d8 +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -158,19 +116,13 @@ pub struct IPlayToConnectionTransferredEventArgs_Vtbl { #[cfg(not(feature = "deprecated"))] CurrentSource: usize, } -#[doc(hidden)] -#[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlayToManager(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for IPlayToManager { - type Vtable = IPlayToManager_Vtbl; -} #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for IPlayToManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf56a206e_1b77_42ef_8f0d_b949f8d9b260); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + IPlayToManager, + IPlayToManager_Vtbl, + 0xf56a206e_1b77_42ef_8f0d_b949f8d9b260 +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -201,19 +153,13 @@ pub struct IPlayToManager_Vtbl { #[cfg(not(feature = "deprecated"))] DefaultSourceSelection: usize, } -#[doc(hidden)] -#[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlayToManagerStatics(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for IPlayToManagerStatics { - type Vtable = IPlayToManagerStatics_Vtbl; -} #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for IPlayToManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x64e6a887_3982_4f3b_ba20_6155e435325b); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + IPlayToManagerStatics, + IPlayToManagerStatics_Vtbl, + 0x64e6a887_3982_4f3b_ba20_6155e435325b +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -228,16 +174,7 @@ pub struct IPlayToManagerStatics_Vtbl { #[cfg(not(feature = "deprecated"))] ShowPlayToUI: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlayToReceiver(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPlayToReceiver { - type Vtable = IPlayToReceiver_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPlayToReceiver { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xac15cf47_a162_4aa6_af1b_3aa35f3b9069); -} +::windows_core::imp::com_interface!(IPlayToReceiver, IPlayToReceiver_Vtbl, 0xac15cf47_a162_4aa6_af1b_3aa35f3b9069); #[repr(C)] #[doc(hidden)] pub struct IPlayToReceiver_Vtbl { @@ -287,19 +224,13 @@ pub struct IPlayToReceiver_Vtbl { pub StartAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub StopAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlayToSource(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for IPlayToSource { - type Vtable = IPlayToSource_Vtbl; -} #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for IPlayToSource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7f138a08_fbb7_4b09_8356_aa5f4e335c31); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + IPlayToSource, + IPlayToSource_Vtbl, + 0x7f138a08_fbb7_4b09_8356_aa5f4e335c31 +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -322,19 +253,13 @@ pub struct IPlayToSource_Vtbl { #[cfg(not(feature = "deprecated"))] PlayNext: usize, } -#[doc(hidden)] #[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlayToSourceDeferral(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for IPlayToSourceDeferral { - type Vtable = IPlayToSourceDeferral_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for IPlayToSourceDeferral { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4100891d_278e_4f29_859b_a9e501053e7d); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + IPlayToSourceDeferral, + IPlayToSourceDeferral_Vtbl, + 0x4100891d_278e_4f29_859b_a9e501053e7d +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -345,19 +270,13 @@ pub struct IPlayToSourceDeferral_Vtbl { #[cfg(not(feature = "deprecated"))] Complete: usize, } -#[doc(hidden)] -#[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlayToSourceRequest(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for IPlayToSourceRequest { - type Vtable = IPlayToSourceRequest_Vtbl; -} #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for IPlayToSourceRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf8584665_64f4_44a0_ac0d_468d2b8fda83); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + IPlayToSourceRequest, + IPlayToSourceRequest_Vtbl, + 0xf8584665_64f4_44a0_ac0d_468d2b8fda83 +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -380,19 +299,13 @@ pub struct IPlayToSourceRequest_Vtbl { #[cfg(not(feature = "deprecated"))] SetSource: usize, } -#[doc(hidden)] #[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlayToSourceRequestedEventArgs(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for IPlayToSourceRequestedEventArgs { - type Vtable = IPlayToSourceRequestedEventArgs_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for IPlayToSourceRequestedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc5cdc330_29df_4ec6_9da9_9fbdfcfc1b3e); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + IPlayToSourceRequestedEventArgs, + IPlayToSourceRequestedEventArgs_Vtbl, + 0xc5cdc330_29df_4ec6_9da9_9fbdfcfc1b3e +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -403,19 +316,13 @@ pub struct IPlayToSourceRequestedEventArgs_Vtbl { #[cfg(not(feature = "deprecated"))] SourceRequest: usize, } -#[doc(hidden)] -#[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlayToSourceSelectedEventArgs(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for IPlayToSourceSelectedEventArgs { - type Vtable = IPlayToSourceSelectedEventArgs_Vtbl; -} #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for IPlayToSourceSelectedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c9d8511_5202_4dcb_8c67_abda12bb3c12); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + IPlayToSourceSelectedEventArgs, + IPlayToSourceSelectedEventArgs_Vtbl, + 0x0c9d8511_5202_4dcb_8c67_abda12bb3c12 +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -442,19 +349,13 @@ pub struct IPlayToSourceSelectedEventArgs_Vtbl { #[cfg(not(feature = "deprecated"))] SupportsVideo: usize, } -#[doc(hidden)] -#[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlayToSourceWithPreferredSourceUri(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for IPlayToSourceWithPreferredSourceUri { - type Vtable = IPlayToSourceWithPreferredSourceUri_Vtbl; -} #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for IPlayToSourceWithPreferredSourceUri { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaab253eb_3301_4dc4_afba_b2f2ed9635a0); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + IPlayToSourceWithPreferredSourceUri, + IPlayToSourceWithPreferredSourceUri_Vtbl, + 0xaab253eb_3301_4dc4_afba_b2f2ed9635a0 +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -469,32 +370,14 @@ pub struct IPlayToSourceWithPreferredSourceUri_Vtbl { #[cfg(not(feature = "deprecated"))] SetPreferredSourceUri: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlaybackRateChangeRequestedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPlaybackRateChangeRequestedEventArgs { - type Vtable = IPlaybackRateChangeRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPlaybackRateChangeRequestedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0f5661ae_2c88_4cca_8540_d586095d13a5); -} +::windows_core::imp::com_interface!(IPlaybackRateChangeRequestedEventArgs, IPlaybackRateChangeRequestedEventArgs_Vtbl, 0x0f5661ae_2c88_4cca_8540_d586095d13a5); #[repr(C)] #[doc(hidden)] pub struct IPlaybackRateChangeRequestedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Rate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISourceChangeRequestedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISourceChangeRequestedEventArgs { - type Vtable = ISourceChangeRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISourceChangeRequestedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfb3f3a96_7aa6_4a8b_86e7_54f6c6d34f64); -} +::windows_core::imp::com_interface!(ISourceChangeRequestedEventArgs, ISourceChangeRequestedEventArgs_Vtbl, 0xfb3f3a96_7aa6_4a8b_86e7_54f6c6d34f64); #[repr(C)] #[doc(hidden)] pub struct ISourceChangeRequestedEventArgs_Vtbl { @@ -519,16 +402,7 @@ pub struct ISourceChangeRequestedEventArgs_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Properties: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVolumeChangeRequestedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVolumeChangeRequestedEventArgs { - type Vtable = IVolumeChangeRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVolumeChangeRequestedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6f026d5c_cf75_4c2b_913e_6d7c6c329179); -} +::windows_core::imp::com_interface!(IVolumeChangeRequestedEventArgs, IVolumeChangeRequestedEventArgs_Vtbl, 0x6f026d5c_cf75_4c2b_913e_6d7c6c329179); #[repr(C)] #[doc(hidden)] pub struct IVolumeChangeRequestedEventArgs_Vtbl { @@ -538,6 +412,7 @@ pub struct IVolumeChangeRequestedEventArgs_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CurrentTimeChangeRequestedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CurrentTimeChangeRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CurrentTimeChangeRequestedEventArgs { pub fn Time(&self) -> ::windows_core::Result { let this = self; @@ -552,17 +427,15 @@ impl ::windows_core::RuntimeType for CurrentTimeChangeRequestedEventArgs { } unsafe impl ::windows_core::Interface for CurrentTimeChangeRequestedEventArgs { type Vtable = ICurrentTimeChangeRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CurrentTimeChangeRequestedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CurrentTimeChangeRequestedEventArgs { const NAME: &'static str = "Windows.Media.PlayTo.CurrentTimeChangeRequestedEventArgs"; } -::windows_core::imp::interface_hierarchy!(CurrentTimeChangeRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MuteChangeRequestedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MuteChangeRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MuteChangeRequestedEventArgs { pub fn Mute(&self) -> ::windows_core::Result { let this = self; @@ -577,20 +450,19 @@ impl ::windows_core::RuntimeType for MuteChangeRequestedEventArgs { } unsafe impl ::windows_core::Interface for MuteChangeRequestedEventArgs { type Vtable = IMuteChangeRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MuteChangeRequestedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MuteChangeRequestedEventArgs { const NAME: &'static str = "Windows.Media.PlayTo.MuteChangeRequestedEventArgs"; } -::windows_core::imp::interface_hierarchy!(MuteChangeRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PlayToConnection(::windows_core::IUnknown); #[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(PlayToConnection, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "deprecated")] impl PlayToConnection { #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] @@ -663,18 +535,13 @@ impl ::windows_core::RuntimeType for PlayToConnection { #[cfg(feature = "deprecated")] unsafe impl ::windows_core::Interface for PlayToConnection { type Vtable = IPlayToConnection_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for PlayToConnection { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "deprecated")] impl ::windows_core::RuntimeName for PlayToConnection { const NAME: &'static str = "Windows.Media.PlayTo.PlayToConnection"; } #[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(PlayToConnection, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] unsafe impl ::core::marker::Send for PlayToConnection {} #[cfg(feature = "deprecated")] unsafe impl ::core::marker::Sync for PlayToConnection {} @@ -684,6 +551,8 @@ unsafe impl ::core::marker::Sync for PlayToConnection {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PlayToConnectionErrorEventArgs(::windows_core::IUnknown); #[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(PlayToConnectionErrorEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "deprecated")] impl PlayToConnectionErrorEventArgs { #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] @@ -711,18 +580,13 @@ impl ::windows_core::RuntimeType for PlayToConnectionErrorEventArgs { #[cfg(feature = "deprecated")] unsafe impl ::windows_core::Interface for PlayToConnectionErrorEventArgs { type Vtable = IPlayToConnectionErrorEventArgs_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for PlayToConnectionErrorEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "deprecated")] impl ::windows_core::RuntimeName for PlayToConnectionErrorEventArgs { const NAME: &'static str = "Windows.Media.PlayTo.PlayToConnectionErrorEventArgs"; } #[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(PlayToConnectionErrorEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] unsafe impl ::core::marker::Send for PlayToConnectionErrorEventArgs {} #[cfg(feature = "deprecated")] unsafe impl ::core::marker::Sync for PlayToConnectionErrorEventArgs {} @@ -732,6 +596,8 @@ unsafe impl ::core::marker::Sync for PlayToConnectionErrorEventArgs {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PlayToConnectionStateChangedEventArgs(::windows_core::IUnknown); #[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(PlayToConnectionStateChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "deprecated")] impl PlayToConnectionStateChangedEventArgs { #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] @@ -759,18 +625,13 @@ impl ::windows_core::RuntimeType for PlayToConnectionStateChangedEventArgs { #[cfg(feature = "deprecated")] unsafe impl ::windows_core::Interface for PlayToConnectionStateChangedEventArgs { type Vtable = IPlayToConnectionStateChangedEventArgs_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for PlayToConnectionStateChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "deprecated")] impl ::windows_core::RuntimeName for PlayToConnectionStateChangedEventArgs { const NAME: &'static str = "Windows.Media.PlayTo.PlayToConnectionStateChangedEventArgs"; } #[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(PlayToConnectionStateChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] unsafe impl ::core::marker::Send for PlayToConnectionStateChangedEventArgs {} #[cfg(feature = "deprecated")] unsafe impl ::core::marker::Sync for PlayToConnectionStateChangedEventArgs {} @@ -780,6 +641,8 @@ unsafe impl ::core::marker::Sync for PlayToConnectionStateChangedEventArgs {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PlayToConnectionTransferredEventArgs(::windows_core::IUnknown); #[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(PlayToConnectionTransferredEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "deprecated")] impl PlayToConnectionTransferredEventArgs { #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] @@ -807,18 +670,13 @@ impl ::windows_core::RuntimeType for PlayToConnectionTransferredEventArgs { #[cfg(feature = "deprecated")] unsafe impl ::windows_core::Interface for PlayToConnectionTransferredEventArgs { type Vtable = IPlayToConnectionTransferredEventArgs_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for PlayToConnectionTransferredEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "deprecated")] impl ::windows_core::RuntimeName for PlayToConnectionTransferredEventArgs { const NAME: &'static str = "Windows.Media.PlayTo.PlayToConnectionTransferredEventArgs"; } #[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(PlayToConnectionTransferredEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] unsafe impl ::core::marker::Send for PlayToConnectionTransferredEventArgs {} #[cfg(feature = "deprecated")] unsafe impl ::core::marker::Sync for PlayToConnectionTransferredEventArgs {} @@ -828,6 +686,8 @@ unsafe impl ::core::marker::Sync for PlayToConnectionTransferredEventArgs {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PlayToManager(::windows_core::IUnknown); #[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(PlayToManager, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "deprecated")] impl PlayToManager { #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] @@ -907,24 +767,20 @@ impl ::windows_core::RuntimeType for PlayToManager { #[cfg(feature = "deprecated")] unsafe impl ::windows_core::Interface for PlayToManager { type Vtable = IPlayToManager_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for PlayToManager { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "deprecated")] impl ::windows_core::RuntimeName for PlayToManager { const NAME: &'static str = "Windows.Media.PlayTo.PlayToManager"; } #[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(PlayToManager, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] unsafe impl ::core::marker::Send for PlayToManager {} #[cfg(feature = "deprecated")] unsafe impl ::core::marker::Sync for PlayToManager {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PlayToReceiver(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PlayToReceiver, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PlayToReceiver { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1180,20 +1036,19 @@ impl ::windows_core::RuntimeType for PlayToReceiver { } unsafe impl ::windows_core::Interface for PlayToReceiver { type Vtable = IPlayToReceiver_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PlayToReceiver { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PlayToReceiver { const NAME: &'static str = "Windows.Media.PlayTo.PlayToReceiver"; } -::windows_core::imp::interface_hierarchy!(PlayToReceiver, ::windows_core::IUnknown, ::windows_core::IInspectable); #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PlayToSource(::windows_core::IUnknown); #[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(PlayToSource, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "deprecated")] impl PlayToSource { #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] @@ -1231,7 +1086,7 @@ impl PlayToSource { #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] pub fn PreferredSourceUri(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreferredSourceUri)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1243,7 +1098,7 @@ impl PlayToSource { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } } @@ -1254,18 +1109,13 @@ impl ::windows_core::RuntimeType for PlayToSource { #[cfg(feature = "deprecated")] unsafe impl ::windows_core::Interface for PlayToSource { type Vtable = IPlayToSource_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for PlayToSource { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "deprecated")] impl ::windows_core::RuntimeName for PlayToSource { const NAME: &'static str = "Windows.Media.PlayTo.PlayToSource"; } #[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(PlayToSource, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] unsafe impl ::core::marker::Send for PlayToSource {} #[cfg(feature = "deprecated")] unsafe impl ::core::marker::Sync for PlayToSource {} @@ -1275,6 +1125,8 @@ unsafe impl ::core::marker::Sync for PlayToSource {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PlayToSourceDeferral(::windows_core::IUnknown); #[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(PlayToSourceDeferral, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "deprecated")] impl PlayToSourceDeferral { #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] @@ -1290,18 +1142,13 @@ impl ::windows_core::RuntimeType for PlayToSourceDeferral { #[cfg(feature = "deprecated")] unsafe impl ::windows_core::Interface for PlayToSourceDeferral { type Vtable = IPlayToSourceDeferral_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for PlayToSourceDeferral { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "deprecated")] impl ::windows_core::RuntimeName for PlayToSourceDeferral { const NAME: &'static str = "Windows.Media.PlayTo.PlayToSourceDeferral"; } #[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(PlayToSourceDeferral, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] unsafe impl ::core::marker::Send for PlayToSourceDeferral {} #[cfg(feature = "deprecated")] unsafe impl ::core::marker::Sync for PlayToSourceDeferral {} @@ -1311,6 +1158,8 @@ unsafe impl ::core::marker::Sync for PlayToSourceDeferral {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PlayToSourceRequest(::windows_core::IUnknown); #[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(PlayToSourceRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "deprecated")] impl PlayToSourceRequest { #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] @@ -1353,18 +1202,13 @@ impl ::windows_core::RuntimeType for PlayToSourceRequest { #[cfg(feature = "deprecated")] unsafe impl ::windows_core::Interface for PlayToSourceRequest { type Vtable = IPlayToSourceRequest_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for PlayToSourceRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "deprecated")] impl ::windows_core::RuntimeName for PlayToSourceRequest { const NAME: &'static str = "Windows.Media.PlayTo.PlayToSourceRequest"; } #[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(PlayToSourceRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] unsafe impl ::core::marker::Send for PlayToSourceRequest {} #[cfg(feature = "deprecated")] unsafe impl ::core::marker::Sync for PlayToSourceRequest {} @@ -1374,6 +1218,8 @@ unsafe impl ::core::marker::Sync for PlayToSourceRequest {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PlayToSourceRequestedEventArgs(::windows_core::IUnknown); #[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(PlayToSourceRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "deprecated")] impl PlayToSourceRequestedEventArgs { #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] @@ -1392,18 +1238,13 @@ impl ::windows_core::RuntimeType for PlayToSourceRequestedEventArgs { #[cfg(feature = "deprecated")] unsafe impl ::windows_core::Interface for PlayToSourceRequestedEventArgs { type Vtable = IPlayToSourceRequestedEventArgs_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for PlayToSourceRequestedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "deprecated")] impl ::windows_core::RuntimeName for PlayToSourceRequestedEventArgs { const NAME: &'static str = "Windows.Media.PlayTo.PlayToSourceRequestedEventArgs"; } #[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(PlayToSourceRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] unsafe impl ::core::marker::Send for PlayToSourceRequestedEventArgs {} #[cfg(feature = "deprecated")] unsafe impl ::core::marker::Sync for PlayToSourceRequestedEventArgs {} @@ -1413,6 +1254,8 @@ unsafe impl ::core::marker::Sync for PlayToSourceRequestedEventArgs {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PlayToSourceSelectedEventArgs(::windows_core::IUnknown); #[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(PlayToSourceSelectedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "deprecated")] impl PlayToSourceSelectedEventArgs { #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] @@ -1467,24 +1310,20 @@ impl ::windows_core::RuntimeType for PlayToSourceSelectedEventArgs { #[cfg(feature = "deprecated")] unsafe impl ::windows_core::Interface for PlayToSourceSelectedEventArgs { type Vtable = IPlayToSourceSelectedEventArgs_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for PlayToSourceSelectedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "deprecated")] impl ::windows_core::RuntimeName for PlayToSourceSelectedEventArgs { const NAME: &'static str = "Windows.Media.PlayTo.PlayToSourceSelectedEventArgs"; } #[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(PlayToSourceSelectedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] unsafe impl ::core::marker::Send for PlayToSourceSelectedEventArgs {} #[cfg(feature = "deprecated")] unsafe impl ::core::marker::Sync for PlayToSourceSelectedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PlaybackRateChangeRequestedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PlaybackRateChangeRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PlaybackRateChangeRequestedEventArgs { pub fn Rate(&self) -> ::windows_core::Result { let this = self; @@ -1499,17 +1338,15 @@ impl ::windows_core::RuntimeType for PlaybackRateChangeRequestedEventArgs { } unsafe impl ::windows_core::Interface for PlaybackRateChangeRequestedEventArgs { type Vtable = IPlaybackRateChangeRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PlaybackRateChangeRequestedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PlaybackRateChangeRequestedEventArgs { const NAME: &'static str = "Windows.Media.PlayTo.PlaybackRateChangeRequestedEventArgs"; } -::windows_core::imp::interface_hierarchy!(PlaybackRateChangeRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SourceChangeRequestedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SourceChangeRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SourceChangeRequestedEventArgs { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] @@ -1593,17 +1430,15 @@ impl ::windows_core::RuntimeType for SourceChangeRequestedEventArgs { } unsafe impl ::windows_core::Interface for SourceChangeRequestedEventArgs { type Vtable = ISourceChangeRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SourceChangeRequestedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SourceChangeRequestedEventArgs { const NAME: &'static str = "Windows.Media.PlayTo.SourceChangeRequestedEventArgs"; } -::windows_core::imp::interface_hierarchy!(SourceChangeRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VolumeChangeRequestedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VolumeChangeRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl VolumeChangeRequestedEventArgs { pub fn Volume(&self) -> ::windows_core::Result { let this = self; @@ -1618,14 +1453,11 @@ impl ::windows_core::RuntimeType for VolumeChangeRequestedEventArgs { } unsafe impl ::windows_core::Interface for VolumeChangeRequestedEventArgs { type Vtable = IVolumeChangeRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VolumeChangeRequestedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VolumeChangeRequestedEventArgs { const NAME: &'static str = "Windows.Media.PlayTo.VolumeChangeRequestedEventArgs"; } -::windows_core::imp::interface_hierarchy!(VolumeChangeRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Media/Playback/impl.rs b/crates/libs/windows/src/Windows/Media/Playback/impl.rs index 20b0417954..fac313fb4d 100644 --- a/crates/libs/windows/src/Windows/Media/Playback/impl.rs +++ b/crates/libs/windows/src/Windows/Media/Playback/impl.rs @@ -35,7 +35,7 @@ impl IMediaEnginePlaybackSource_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMediaPlaybackSource_Impl: Sized {} @@ -47,6 +47,6 @@ impl IMediaPlaybackSource_Vtbl { Self { base__: ::windows_core::IInspectable_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/Media/Playback/mod.rs b/crates/libs/windows/src/Windows/Media/Playback/mod.rs index e82666473d..bf16e7342f 100644 --- a/crates/libs/windows/src/Windows/Media/Playback/mod.rs +++ b/crates/libs/windows/src/Windows/Media/Playback/mod.rs @@ -1,16 +1,10 @@ -#[doc(hidden)] #[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundMediaPlayerStatics(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for IBackgroundMediaPlayerStatics { - type Vtable = IBackgroundMediaPlayerStatics_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for IBackgroundMediaPlayerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x856ddbc1_55f7_471f_a0f2_68ac4c904592); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + IBackgroundMediaPlayerStatics, + IBackgroundMediaPlayerStatics_Vtbl, + 0x856ddbc1_55f7_471f_a0f2_68ac4c904592 +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -53,16 +47,7 @@ pub struct IBackgroundMediaPlayerStatics_Vtbl { #[cfg(not(feature = "deprecated"))] Shutdown: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICurrentMediaPlaybackItemChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICurrentMediaPlaybackItemChangedEventArgs { - type Vtable = ICurrentMediaPlaybackItemChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICurrentMediaPlaybackItemChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1743a892_5c43_4a15_967a_572d2d0f26c6); -} +::windows_core::imp::com_interface!(ICurrentMediaPlaybackItemChangedEventArgs, ICurrentMediaPlaybackItemChangedEventArgs_Vtbl, 0x1743a892_5c43_4a15_967a_572d2d0f26c6); #[repr(C)] #[doc(hidden)] pub struct ICurrentMediaPlaybackItemChangedEventArgs_Vtbl { @@ -70,32 +55,14 @@ pub struct ICurrentMediaPlaybackItemChangedEventArgs_Vtbl { pub NewItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub OldItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICurrentMediaPlaybackItemChangedEventArgs2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICurrentMediaPlaybackItemChangedEventArgs2 { - type Vtable = ICurrentMediaPlaybackItemChangedEventArgs2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICurrentMediaPlaybackItemChangedEventArgs2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1d80a51e_996e_40a9_be48_e66ec90b2b7d); -} +::windows_core::imp::com_interface!(ICurrentMediaPlaybackItemChangedEventArgs2, ICurrentMediaPlaybackItemChangedEventArgs2_Vtbl, 0x1d80a51e_996e_40a9_be48_e66ec90b2b7d); #[repr(C)] #[doc(hidden)] pub struct ICurrentMediaPlaybackItemChangedEventArgs2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Reason: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut MediaPlaybackItemChangedReason) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaBreak(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaBreak { - type Vtable = IMediaBreak_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaBreak { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x714be270_0def_4ebc_a489_6b34930e1558); -} +::windows_core::imp::com_interface!(IMediaBreak, IMediaBreak_Vtbl, 0x714be270_0def_4ebc_a489_6b34930e1558); #[repr(C)] #[doc(hidden)] pub struct IMediaBreak_Vtbl { @@ -110,32 +77,14 @@ pub struct IMediaBreak_Vtbl { pub CanStart: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetCanStart: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaBreakEndedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaBreakEndedEventArgs { - type Vtable = IMediaBreakEndedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaBreakEndedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x32b93276_1c5d_4fee_8732_236dc3a88580); -} +::windows_core::imp::com_interface!(IMediaBreakEndedEventArgs, IMediaBreakEndedEventArgs_Vtbl, 0x32b93276_1c5d_4fee_8732_236dc3a88580); #[repr(C)] #[doc(hidden)] pub struct IMediaBreakEndedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub MediaBreak: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaBreakFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaBreakFactory { - type Vtable = IMediaBreakFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaBreakFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4516e002_18e0_4079_8b5f_d33495c15d2e); -} +::windows_core::imp::com_interface!(IMediaBreakFactory, IMediaBreakFactory_Vtbl, 0x4516e002_18e0_4079_8b5f_d33495c15d2e); #[repr(C)] #[doc(hidden)] pub struct IMediaBreakFactory_Vtbl { @@ -143,16 +92,7 @@ pub struct IMediaBreakFactory_Vtbl { pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, insertionmethod: MediaBreakInsertionMethod, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateWithPresentationPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, insertionmethod: MediaBreakInsertionMethod, presentationposition: super::super::Foundation::TimeSpan, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaBreakManager(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaBreakManager { - type Vtable = IMediaBreakManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaBreakManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa854ddb1_feb4_4d9b_9d97_0fdbe58e5e39); -} +::windows_core::imp::com_interface!(IMediaBreakManager, IMediaBreakManager_Vtbl, 0xa854ddb1_feb4_4d9b_9d97_0fdbe58e5e39); #[repr(C)] #[doc(hidden)] pub struct IMediaBreakManager_Vtbl { @@ -170,16 +110,7 @@ pub struct IMediaBreakManager_Vtbl { pub PlayBreak: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SkipCurrentBreak: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaBreakSchedule(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaBreakSchedule { - type Vtable = IMediaBreakSchedule_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaBreakSchedule { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa19a5813_98b6_41d8_83da_f971d22b7bba); -} +::windows_core::imp::com_interface!(IMediaBreakSchedule, IMediaBreakSchedule_Vtbl, 0xa19a5813_98b6_41d8_83da_f971d22b7bba); #[repr(C)] #[doc(hidden)] pub struct IMediaBreakSchedule_Vtbl { @@ -198,16 +129,7 @@ pub struct IMediaBreakSchedule_Vtbl { pub PostrollBreak: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub PlaybackItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaBreakSeekedOverEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaBreakSeekedOverEventArgs { - type Vtable = IMediaBreakSeekedOverEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaBreakSeekedOverEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe5aa6746_0606_4492_b9d3_c3c8fde0a4ea); -} +::windows_core::imp::com_interface!(IMediaBreakSeekedOverEventArgs, IMediaBreakSeekedOverEventArgs_Vtbl, 0xe5aa6746_0606_4492_b9d3_c3c8fde0a4ea); #[repr(C)] #[doc(hidden)] pub struct IMediaBreakSeekedOverEventArgs_Vtbl { @@ -219,43 +141,29 @@ pub struct IMediaBreakSeekedOverEventArgs_Vtbl { pub OldPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::TimeSpan) -> ::windows_core::HRESULT, pub NewPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::TimeSpan) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaBreakSkippedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaBreakSkippedEventArgs { - type Vtable = IMediaBreakSkippedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaBreakSkippedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6ee94c05_2f54_4a3e_a3ab_24c3b270b4a3); -} +::windows_core::imp::com_interface!(IMediaBreakSkippedEventArgs, IMediaBreakSkippedEventArgs_Vtbl, 0x6ee94c05_2f54_4a3e_a3ab_24c3b270b4a3); #[repr(C)] #[doc(hidden)] pub struct IMediaBreakSkippedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub MediaBreak: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaBreakStartedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaBreakStartedEventArgs { - type Vtable = IMediaBreakStartedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaBreakStartedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa87efe71_dfd4_454a_956e_0a4a648395f8); -} +::windows_core::imp::com_interface!(IMediaBreakStartedEventArgs, IMediaBreakStartedEventArgs_Vtbl, 0xa87efe71_dfd4_454a_956e_0a4a648395f8); #[repr(C)] #[doc(hidden)] pub struct IMediaBreakStartedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub MediaBreak: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaEnginePlaybackSource(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + IMediaEnginePlaybackSource, + IMediaEnginePlaybackSource_Vtbl, + 0x5c1d0ba7_3856_48b9_8dc6_244bf107bf8c +); +#[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(IMediaEnginePlaybackSource, ::windows_core::IUnknown, ::windows_core::IInspectable); #[cfg(feature = "deprecated")] impl IMediaEnginePlaybackSource { #[doc = "Required features: `\"deprecated\"`"] @@ -271,27 +179,17 @@ impl IMediaEnginePlaybackSource { #[cfg(feature = "deprecated")] pub fn SetPlaybackSource(&self, source: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetPlaybackSource)(::windows_core::Interface::as_raw(this), source.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetPlaybackSource)(::windows_core::Interface::as_raw(this), source.into_param().abi()).ok() } } } #[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(IMediaEnginePlaybackSource, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] impl ::windows_core::RuntimeType for IMediaEnginePlaybackSource { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for IMediaEnginePlaybackSource { - type Vtable = IMediaEnginePlaybackSource_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for IMediaEnginePlaybackSource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5c1d0ba7_3856_48b9_8dc6_244bf107bf8c); -} -#[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] pub struct IMediaEnginePlaybackSource_Vtbl { @@ -305,16 +203,7 @@ pub struct IMediaEnginePlaybackSource_Vtbl { #[cfg(not(feature = "deprecated"))] SetPlaybackSource: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaItemDisplayProperties(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaItemDisplayProperties { - type Vtable = IMediaItemDisplayProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaItemDisplayProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1e3c1b48_7097_4384_a217_c1291dfa8c16); -} +::windows_core::imp::com_interface!(IMediaItemDisplayProperties, IMediaItemDisplayProperties_Vtbl, 0x1e3c1b48_7097_4384_a217_c1291dfa8c16); #[repr(C)] #[doc(hidden)] pub struct IMediaItemDisplayProperties_Vtbl { @@ -333,16 +222,7 @@ pub struct IMediaItemDisplayProperties_Vtbl { SetThumbnail: usize, pub ClearAll: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaPlaybackCommandManager(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaPlaybackCommandManager { - type Vtable = IMediaPlaybackCommandManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaPlaybackCommandManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5acee5a6_5cb6_4a5a_8521_cc86b1c1ed37); -} +::windows_core::imp::com_interface!(IMediaPlaybackCommandManager, IMediaPlaybackCommandManager_Vtbl, 0x5acee5a6_5cb6_4a5a_8521_cc86b1c1ed37); #[repr(C)] #[doc(hidden)] pub struct IMediaPlaybackCommandManager_Vtbl { @@ -381,16 +261,7 @@ pub struct IMediaPlaybackCommandManager_Vtbl { pub RateReceived: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveRateReceived: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaPlaybackCommandManagerAutoRepeatModeReceivedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaPlaybackCommandManagerAutoRepeatModeReceivedEventArgs { - type Vtable = IMediaPlaybackCommandManagerAutoRepeatModeReceivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaPlaybackCommandManagerAutoRepeatModeReceivedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3d6f4f23_5230_4411_a0e9_bad94c2a045c); -} +::windows_core::imp::com_interface!(IMediaPlaybackCommandManagerAutoRepeatModeReceivedEventArgs, IMediaPlaybackCommandManagerAutoRepeatModeReceivedEventArgs_Vtbl, 0x3d6f4f23_5230_4411_a0e9_bad94c2a045c); #[repr(C)] #[doc(hidden)] pub struct IMediaPlaybackCommandManagerAutoRepeatModeReceivedEventArgs_Vtbl { @@ -400,16 +271,7 @@ pub struct IMediaPlaybackCommandManagerAutoRepeatModeReceivedEventArgs_Vtbl { pub AutoRepeatMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::MediaPlaybackAutoRepeatMode) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaPlaybackCommandManagerCommandBehavior(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaPlaybackCommandManagerCommandBehavior { - type Vtable = IMediaPlaybackCommandManagerCommandBehavior_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaPlaybackCommandManagerCommandBehavior { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x786c1e78_ce78_4a10_afd6_843fcbb90c2e); -} +::windows_core::imp::com_interface!(IMediaPlaybackCommandManagerCommandBehavior, IMediaPlaybackCommandManagerCommandBehavior_Vtbl, 0x786c1e78_ce78_4a10_afd6_843fcbb90c2e); #[repr(C)] #[doc(hidden)] pub struct IMediaPlaybackCommandManagerCommandBehavior_Vtbl { @@ -421,16 +283,7 @@ pub struct IMediaPlaybackCommandManagerCommandBehavior_Vtbl { pub IsEnabledChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveIsEnabledChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaPlaybackCommandManagerFastForwardReceivedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaPlaybackCommandManagerFastForwardReceivedEventArgs { - type Vtable = IMediaPlaybackCommandManagerFastForwardReceivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaPlaybackCommandManagerFastForwardReceivedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x30f064d9_b491_4d0a_bc21_3098bd1332e9); -} +::windows_core::imp::com_interface!(IMediaPlaybackCommandManagerFastForwardReceivedEventArgs, IMediaPlaybackCommandManagerFastForwardReceivedEventArgs_Vtbl, 0x30f064d9_b491_4d0a_bc21_3098bd1332e9); #[repr(C)] #[doc(hidden)] pub struct IMediaPlaybackCommandManagerFastForwardReceivedEventArgs_Vtbl { @@ -439,16 +292,7 @@ pub struct IMediaPlaybackCommandManagerFastForwardReceivedEventArgs_Vtbl { pub SetHandled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaPlaybackCommandManagerNextReceivedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaPlaybackCommandManagerNextReceivedEventArgs { - type Vtable = IMediaPlaybackCommandManagerNextReceivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaPlaybackCommandManagerNextReceivedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe1504433_a2b0_45d4_b9de_5f42ac14a839); -} +::windows_core::imp::com_interface!(IMediaPlaybackCommandManagerNextReceivedEventArgs, IMediaPlaybackCommandManagerNextReceivedEventArgs_Vtbl, 0xe1504433_a2b0_45d4_b9de_5f42ac14a839); #[repr(C)] #[doc(hidden)] pub struct IMediaPlaybackCommandManagerNextReceivedEventArgs_Vtbl { @@ -457,16 +301,7 @@ pub struct IMediaPlaybackCommandManagerNextReceivedEventArgs_Vtbl { pub SetHandled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaPlaybackCommandManagerPauseReceivedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaPlaybackCommandManagerPauseReceivedEventArgs { - type Vtable = IMediaPlaybackCommandManagerPauseReceivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaPlaybackCommandManagerPauseReceivedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5ceccd1c_c25c_4221_b16c_c3c98ce012d6); -} +::windows_core::imp::com_interface!(IMediaPlaybackCommandManagerPauseReceivedEventArgs, IMediaPlaybackCommandManagerPauseReceivedEventArgs_Vtbl, 0x5ceccd1c_c25c_4221_b16c_c3c98ce012d6); #[repr(C)] #[doc(hidden)] pub struct IMediaPlaybackCommandManagerPauseReceivedEventArgs_Vtbl { @@ -475,16 +310,7 @@ pub struct IMediaPlaybackCommandManagerPauseReceivedEventArgs_Vtbl { pub SetHandled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaPlaybackCommandManagerPlayReceivedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaPlaybackCommandManagerPlayReceivedEventArgs { - type Vtable = IMediaPlaybackCommandManagerPlayReceivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaPlaybackCommandManagerPlayReceivedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9af0004e_578b_4c56_a006_16159d888a48); -} +::windows_core::imp::com_interface!(IMediaPlaybackCommandManagerPlayReceivedEventArgs, IMediaPlaybackCommandManagerPlayReceivedEventArgs_Vtbl, 0x9af0004e_578b_4c56_a006_16159d888a48); #[repr(C)] #[doc(hidden)] pub struct IMediaPlaybackCommandManagerPlayReceivedEventArgs_Vtbl { @@ -493,16 +319,7 @@ pub struct IMediaPlaybackCommandManagerPlayReceivedEventArgs_Vtbl { pub SetHandled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaPlaybackCommandManagerPositionReceivedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaPlaybackCommandManagerPositionReceivedEventArgs { - type Vtable = IMediaPlaybackCommandManagerPositionReceivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaPlaybackCommandManagerPositionReceivedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5591a754_d627_4bdd_a90d_86a015b24902); -} +::windows_core::imp::com_interface!(IMediaPlaybackCommandManagerPositionReceivedEventArgs, IMediaPlaybackCommandManagerPositionReceivedEventArgs_Vtbl, 0x5591a754_d627_4bdd_a90d_86a015b24902); #[repr(C)] #[doc(hidden)] pub struct IMediaPlaybackCommandManagerPositionReceivedEventArgs_Vtbl { @@ -512,16 +329,7 @@ pub struct IMediaPlaybackCommandManagerPositionReceivedEventArgs_Vtbl { pub Position: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::TimeSpan) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaPlaybackCommandManagerPreviousReceivedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaPlaybackCommandManagerPreviousReceivedEventArgs { - type Vtable = IMediaPlaybackCommandManagerPreviousReceivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaPlaybackCommandManagerPreviousReceivedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x525e3081_4632_4f76_99b1_d771623f6287); -} +::windows_core::imp::com_interface!(IMediaPlaybackCommandManagerPreviousReceivedEventArgs, IMediaPlaybackCommandManagerPreviousReceivedEventArgs_Vtbl, 0x525e3081_4632_4f76_99b1_d771623f6287); #[repr(C)] #[doc(hidden)] pub struct IMediaPlaybackCommandManagerPreviousReceivedEventArgs_Vtbl { @@ -530,16 +338,7 @@ pub struct IMediaPlaybackCommandManagerPreviousReceivedEventArgs_Vtbl { pub SetHandled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaPlaybackCommandManagerRateReceivedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaPlaybackCommandManagerRateReceivedEventArgs { - type Vtable = IMediaPlaybackCommandManagerRateReceivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaPlaybackCommandManagerRateReceivedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x18ea3939_4a16_4169_8b05_3eb9f5ff78eb); -} +::windows_core::imp::com_interface!(IMediaPlaybackCommandManagerRateReceivedEventArgs, IMediaPlaybackCommandManagerRateReceivedEventArgs_Vtbl, 0x18ea3939_4a16_4169_8b05_3eb9f5ff78eb); #[repr(C)] #[doc(hidden)] pub struct IMediaPlaybackCommandManagerRateReceivedEventArgs_Vtbl { @@ -549,16 +348,7 @@ pub struct IMediaPlaybackCommandManagerRateReceivedEventArgs_Vtbl { pub PlaybackRate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaPlaybackCommandManagerRewindReceivedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaPlaybackCommandManagerRewindReceivedEventArgs { - type Vtable = IMediaPlaybackCommandManagerRewindReceivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaPlaybackCommandManagerRewindReceivedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9f085947_a3c0_425d_aaef_97ba7898b141); -} +::windows_core::imp::com_interface!(IMediaPlaybackCommandManagerRewindReceivedEventArgs, IMediaPlaybackCommandManagerRewindReceivedEventArgs_Vtbl, 0x9f085947_a3c0_425d_aaef_97ba7898b141); #[repr(C)] #[doc(hidden)] pub struct IMediaPlaybackCommandManagerRewindReceivedEventArgs_Vtbl { @@ -567,16 +357,7 @@ pub struct IMediaPlaybackCommandManagerRewindReceivedEventArgs_Vtbl { pub SetHandled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaPlaybackCommandManagerShuffleReceivedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaPlaybackCommandManagerShuffleReceivedEventArgs { - type Vtable = IMediaPlaybackCommandManagerShuffleReceivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaPlaybackCommandManagerShuffleReceivedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x50a05cef_63ee_4a96_b7b5_fee08b9ff90c); -} +::windows_core::imp::com_interface!(IMediaPlaybackCommandManagerShuffleReceivedEventArgs, IMediaPlaybackCommandManagerShuffleReceivedEventArgs_Vtbl, 0x50a05cef_63ee_4a96_b7b5_fee08b9ff90c); #[repr(C)] #[doc(hidden)] pub struct IMediaPlaybackCommandManagerShuffleReceivedEventArgs_Vtbl { @@ -586,16 +367,7 @@ pub struct IMediaPlaybackCommandManagerShuffleReceivedEventArgs_Vtbl { pub IsShuffleRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaPlaybackItem(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaPlaybackItem { - type Vtable = IMediaPlaybackItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaPlaybackItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x047097d2_e4af_48ab_b283_6929e674ece2); -} +::windows_core::imp::com_interface!(IMediaPlaybackItem, IMediaPlaybackItem_Vtbl, 0x047097d2_e4af_48ab_b283_6929e674ece2); #[repr(C)] #[doc(hidden)] pub struct IMediaPlaybackItem_Vtbl { @@ -632,16 +404,7 @@ pub struct IMediaPlaybackItem_Vtbl { #[cfg(not(all(feature = "Foundation_Collections", feature = "Media_Core")))] TimedMetadataTracks: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaPlaybackItem2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaPlaybackItem2 { - type Vtable = IMediaPlaybackItem2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaPlaybackItem2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd859d171_d7ef_4b81_ac1f_f40493cbb091); -} +::windows_core::imp::com_interface!(IMediaPlaybackItem2, IMediaPlaybackItem2_Vtbl, 0xd859d171_d7ef_4b81_ac1f_f40493cbb091); #[repr(C)] #[doc(hidden)] pub struct IMediaPlaybackItem2_Vtbl { @@ -654,16 +417,7 @@ pub struct IMediaPlaybackItem2_Vtbl { pub GetDisplayProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ApplyDisplayProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaPlaybackItem3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaPlaybackItem3 { - type Vtable = IMediaPlaybackItem3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaPlaybackItem3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0d328220_b80a_4d09_9ff8_f87094a1c831); -} +::windows_core::imp::com_interface!(IMediaPlaybackItem3, IMediaPlaybackItem3_Vtbl, 0x0d328220_b80a_4d09_9ff8_f87094a1c831); #[repr(C)] #[doc(hidden)] pub struct IMediaPlaybackItem3_Vtbl { @@ -674,16 +428,7 @@ pub struct IMediaPlaybackItem3_Vtbl { pub AutoLoadedDisplayProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut AutoLoadedDisplayPropertyKind) -> ::windows_core::HRESULT, pub SetAutoLoadedDisplayProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: AutoLoadedDisplayPropertyKind) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaPlaybackItemError(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaPlaybackItemError { - type Vtable = IMediaPlaybackItemError_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaPlaybackItemError { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x69fbef2b_dcd6_4df9_a450_dbf4c6f1c2c2); -} +::windows_core::imp::com_interface!(IMediaPlaybackItemError, IMediaPlaybackItemError_Vtbl, 0x69fbef2b_dcd6_4df9_a450_dbf4c6f1c2c2); #[repr(C)] #[doc(hidden)] pub struct IMediaPlaybackItemError_Vtbl { @@ -691,16 +436,7 @@ pub struct IMediaPlaybackItemError_Vtbl { pub ErrorCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut MediaPlaybackItemErrorCode) -> ::windows_core::HRESULT, pub ExtendedError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaPlaybackItemFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaPlaybackItemFactory { - type Vtable = IMediaPlaybackItemFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaPlaybackItemFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7133fce1_1769_4ff9_a7c1_38d2c4d42360); -} +::windows_core::imp::com_interface!(IMediaPlaybackItemFactory, IMediaPlaybackItemFactory_Vtbl, 0x7133fce1_1769_4ff9_a7c1_38d2c4d42360); #[repr(C)] #[doc(hidden)] pub struct IMediaPlaybackItemFactory_Vtbl { @@ -710,16 +446,7 @@ pub struct IMediaPlaybackItemFactory_Vtbl { #[cfg(not(feature = "Media_Core"))] Create: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaPlaybackItemFactory2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaPlaybackItemFactory2 { - type Vtable = IMediaPlaybackItemFactory2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaPlaybackItemFactory2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd77cdf3a_b947_4972_b35d_adfb931a71e6); -} +::windows_core::imp::com_interface!(IMediaPlaybackItemFactory2, IMediaPlaybackItemFactory2_Vtbl, 0xd77cdf3a_b947_4972_b35d_adfb931a71e6); #[repr(C)] #[doc(hidden)] pub struct IMediaPlaybackItemFactory2_Vtbl { @@ -733,16 +460,7 @@ pub struct IMediaPlaybackItemFactory2_Vtbl { #[cfg(not(feature = "Media_Core"))] CreateWithStartTimeAndDurationLimit: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaPlaybackItemFailedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaPlaybackItemFailedEventArgs { - type Vtable = IMediaPlaybackItemFailedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaPlaybackItemFailedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7703134a_e9a7_47c3_862c_c656d30683d4); -} +::windows_core::imp::com_interface!(IMediaPlaybackItemFailedEventArgs, IMediaPlaybackItemFailedEventArgs_Vtbl, 0x7703134a_e9a7_47c3_862c_c656d30683d4); #[repr(C)] #[doc(hidden)] pub struct IMediaPlaybackItemFailedEventArgs_Vtbl { @@ -750,32 +468,14 @@ pub struct IMediaPlaybackItemFailedEventArgs_Vtbl { pub Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Error: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaPlaybackItemOpenedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaPlaybackItemOpenedEventArgs { - type Vtable = IMediaPlaybackItemOpenedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaPlaybackItemOpenedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcbd9bd82_3037_4fbe_ae8f_39fc39edf4ef); -} +::windows_core::imp::com_interface!(IMediaPlaybackItemOpenedEventArgs, IMediaPlaybackItemOpenedEventArgs_Vtbl, 0xcbd9bd82_3037_4fbe_ae8f_39fc39edf4ef); #[repr(C)] #[doc(hidden)] pub struct IMediaPlaybackItemOpenedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaPlaybackItemStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaPlaybackItemStatics { - type Vtable = IMediaPlaybackItemStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaPlaybackItemStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4b1be7f4_4345_403c_8a67_f5de91df4c86); -} +::windows_core::imp::com_interface!(IMediaPlaybackItemStatics, IMediaPlaybackItemStatics_Vtbl, 0x4b1be7f4_4345_403c_8a67_f5de91df4c86); #[repr(C)] #[doc(hidden)] pub struct IMediaPlaybackItemStatics_Vtbl { @@ -785,16 +485,7 @@ pub struct IMediaPlaybackItemStatics_Vtbl { #[cfg(not(feature = "Media_Core"))] FindFromMediaSource: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaPlaybackList(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaPlaybackList { - type Vtable = IMediaPlaybackList_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaPlaybackList { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7f77ee9c_dc42_4e26_a98d_7850df8ec925); -} +::windows_core::imp::com_interface!(IMediaPlaybackList, IMediaPlaybackList_Vtbl, 0x7f77ee9c_dc42_4e26_a98d_7850df8ec925); #[repr(C)] #[doc(hidden)] pub struct IMediaPlaybackList_Vtbl { @@ -819,16 +510,7 @@ pub struct IMediaPlaybackList_Vtbl { pub MovePrevious: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub MoveTo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, itemindex: u32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaPlaybackList2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaPlaybackList2 { - type Vtable = IMediaPlaybackList2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaPlaybackList2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0e09b478_600a_4274_a14b_0b6723d0f48b); -} +::windows_core::imp::com_interface!(IMediaPlaybackList2, IMediaPlaybackList2_Vtbl, 0x0e09b478_600a_4274_a14b_0b6723d0f48b); #[repr(C)] #[doc(hidden)] pub struct IMediaPlaybackList2_Vtbl { @@ -846,16 +528,7 @@ pub struct IMediaPlaybackList2_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] SetShuffledItems: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaPlaybackList3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaPlaybackList3 { - type Vtable = IMediaPlaybackList3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaPlaybackList3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdd24bba9_bc47_4463_aa90_c18b7e5ffde1); -} +::windows_core::imp::com_interface!(IMediaPlaybackList3, IMediaPlaybackList3_Vtbl, 0xdd24bba9_bc47_4463_aa90_c18b7e5ffde1); #[repr(C)] #[doc(hidden)] pub struct IMediaPlaybackList3_Vtbl { @@ -863,16 +536,7 @@ pub struct IMediaPlaybackList3_Vtbl { pub MaxPlayedItemsToKeepOpen: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetMaxPlayedItemsToKeepOpen: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaPlaybackSession(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaPlaybackSession { - type Vtable = IMediaPlaybackSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaPlaybackSession { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc32b683d_0407_41ba_8946_8b345a5a5435); -} +::windows_core::imp::com_interface!(IMediaPlaybackSession, IMediaPlaybackSession_Vtbl, 0xc32b683d_0407_41ba_8946_8b345a5a5435); #[repr(C)] #[doc(hidden)] pub struct IMediaPlaybackSession_Vtbl { @@ -922,16 +586,7 @@ pub struct IMediaPlaybackSession_Vtbl { #[cfg(not(feature = "Media_MediaProperties"))] SetStereoscopicVideoPackingMode: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaPlaybackSession2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaPlaybackSession2 { - type Vtable = IMediaPlaybackSession2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaPlaybackSession2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf8ba7c79_1fc8_4097_ad70_c0fa18cc0050); -} +::windows_core::imp::com_interface!(IMediaPlaybackSession2, IMediaPlaybackSession2_Vtbl, 0xf8ba7c79_1fc8_4097_ad70_c0fa18cc0050); #[repr(C)] #[doc(hidden)] pub struct IMediaPlaybackSession2_Vtbl { @@ -961,16 +616,7 @@ pub struct IMediaPlaybackSession2_Vtbl { GetSeekableRanges: usize, pub IsSupportedPlaybackRateRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rate1: f64, rate2: f64, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaPlaybackSession3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaPlaybackSession3 { - type Vtable = IMediaPlaybackSession3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaPlaybackSession3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7ba2b41a_a3e2_405f_b77b_a4812c238b66); -} +::windows_core::imp::com_interface!(IMediaPlaybackSession3, IMediaPlaybackSession3_Vtbl, 0x7ba2b41a_a3e2_405f_b77b_a4812c238b66); #[repr(C)] #[doc(hidden)] pub struct IMediaPlaybackSession3_Vtbl { @@ -985,67 +631,32 @@ pub struct IMediaPlaybackSession3_Vtbl { SetPlaybackRotation: usize, pub GetOutputDegradationPolicyState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaPlaybackSessionBufferingStartedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaPlaybackSessionBufferingStartedEventArgs { - type Vtable = IMediaPlaybackSessionBufferingStartedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaPlaybackSessionBufferingStartedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcd6aafed_74e2_43b5_b115_76236c33791a); -} +::windows_core::imp::com_interface!(IMediaPlaybackSessionBufferingStartedEventArgs, IMediaPlaybackSessionBufferingStartedEventArgs_Vtbl, 0xcd6aafed_74e2_43b5_b115_76236c33791a); #[repr(C)] #[doc(hidden)] pub struct IMediaPlaybackSessionBufferingStartedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub IsPlaybackInterruption: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaPlaybackSessionOutputDegradationPolicyState(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaPlaybackSessionOutputDegradationPolicyState { - type Vtable = IMediaPlaybackSessionOutputDegradationPolicyState_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaPlaybackSessionOutputDegradationPolicyState { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x558e727d_f633_49f9_965a_abaa1db709be); -} +::windows_core::imp::com_interface!(IMediaPlaybackSessionOutputDegradationPolicyState, IMediaPlaybackSessionOutputDegradationPolicyState_Vtbl, 0x558e727d_f633_49f9_965a_abaa1db709be); #[repr(C)] #[doc(hidden)] pub struct IMediaPlaybackSessionOutputDegradationPolicyState_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub VideoConstrictionReason: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut MediaPlaybackSessionVideoConstrictionReason) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaPlaybackSource(::windows_core::IUnknown); -impl IMediaPlaybackSource {} +::windows_core::imp::com_interface!(IMediaPlaybackSource, IMediaPlaybackSource_Vtbl, 0xef9dc2bc_9317_4696_b051_2bad643177b5); ::windows_core::imp::interface_hierarchy!(IMediaPlaybackSource, ::windows_core::IUnknown, ::windows_core::IInspectable); +impl IMediaPlaybackSource {} impl ::windows_core::RuntimeType for IMediaPlaybackSource { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IMediaPlaybackSource { - type Vtable = IMediaPlaybackSource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaPlaybackSource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xef9dc2bc_9317_4696_b051_2bad643177b5); -} #[repr(C)] #[doc(hidden)] pub struct IMediaPlaybackSource_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaPlaybackSphericalVideoProjection(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaPlaybackSphericalVideoProjection { - type Vtable = IMediaPlaybackSphericalVideoProjection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaPlaybackSphericalVideoProjection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd405b37c_6f0e_4661_b8ee_d487ba9752d5); -} +::windows_core::imp::com_interface!(IMediaPlaybackSphericalVideoProjection, IMediaPlaybackSphericalVideoProjection_Vtbl, 0xd405b37c_6f0e_4661_b8ee_d487ba9752d5); #[repr(C)] #[doc(hidden)] pub struct IMediaPlaybackSphericalVideoProjection_Vtbl { @@ -1073,38 +684,20 @@ pub struct IMediaPlaybackSphericalVideoProjection_Vtbl { pub ProjectionMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut SphericalVideoProjectionMode) -> ::windows_core::HRESULT, pub SetProjectionMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: SphericalVideoProjectionMode) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaPlaybackTimedMetadataTrackList(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaPlaybackTimedMetadataTrackList { - type Vtable = IMediaPlaybackTimedMetadataTrackList_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaPlaybackTimedMetadataTrackList { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x72b41319_bbfb_46a3_9372_9c9c744b9438); -} +::windows_core::imp::com_interface!(IMediaPlaybackTimedMetadataTrackList, IMediaPlaybackTimedMetadataTrackList_Vtbl, 0x72b41319_bbfb_46a3_9372_9c9c744b9438); #[repr(C)] #[doc(hidden)] pub struct IMediaPlaybackTimedMetadataTrackList_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, #[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] pub PresentationModeChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Media_Core")))] - PresentationModeChanged: usize, - pub RemovePresentationModeChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, - pub GetPresentationMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, result__: *mut TimedMetadataTrackPresentationMode) -> ::windows_core::HRESULT, - pub SetPresentationMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, value: TimedMetadataTrackPresentationMode) -> ::windows_core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaPlayer(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaPlayer { - type Vtable = IMediaPlayer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaPlayer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x381a83cb_6fff_499b_8d64_2885dfc1249e); + #[cfg(not(all(feature = "Foundation_Collections", feature = "Media_Core")))] + PresentationModeChanged: usize, + pub RemovePresentationModeChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, + pub GetPresentationMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, result__: *mut TimedMetadataTrackPresentationMode) -> ::windows_core::HRESULT, + pub SetPresentationMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, value: TimedMetadataTrackPresentationMode) -> ::windows_core::HRESULT, } +::windows_core::imp::com_interface!(IMediaPlayer, IMediaPlayer_Vtbl, 0x381a83cb_6fff_499b_8d64_2885dfc1249e); #[repr(C)] #[doc(hidden)] pub struct IMediaPlayer_Vtbl { @@ -1224,16 +817,7 @@ pub struct IMediaPlayer_Vtbl { #[cfg(not(feature = "deprecated"))] SetUriSource: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaPlayer2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaPlayer2 { - type Vtable = IMediaPlayer2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaPlayer2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3c841218_2123_4fc5_9082_2f883f77bdf5); -} +::windows_core::imp::com_interface!(IMediaPlayer2, IMediaPlayer2_Vtbl, 0x3c841218_2123_4fc5_9082_2f883f77bdf5); #[repr(C)] #[doc(hidden)] pub struct IMediaPlayer2_Vtbl { @@ -1244,16 +828,7 @@ pub struct IMediaPlayer2_Vtbl { pub AudioDeviceType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut MediaPlayerAudioDeviceType) -> ::windows_core::HRESULT, pub SetAudioDeviceType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: MediaPlayerAudioDeviceType) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaPlayer3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaPlayer3 { - type Vtable = IMediaPlayer3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaPlayer3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xee0660da_031b_4feb_bd9b_92e0a0a8d299); -} +::windows_core::imp::com_interface!(IMediaPlayer3, IMediaPlayer3_Vtbl, 0xee0660da_031b_4feb_bd9b_92e0a0a8d299); #[repr(C)] #[doc(hidden)] pub struct IMediaPlayer3_Vtbl { @@ -1290,16 +865,7 @@ pub struct IMediaPlayer3_Vtbl { #[cfg(not(feature = "Media_Casting"))] GetAsCastingSource: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaPlayer4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaPlayer4 { - type Vtable = IMediaPlayer4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaPlayer4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x80035db0_7448_4770_afcf_2a57450914c5); -} +::windows_core::imp::com_interface!(IMediaPlayer4, IMediaPlayer4_Vtbl, 0x80035db0_7448_4770_afcf_2a57450914c5); #[repr(C)] #[doc(hidden)] pub struct IMediaPlayer4_Vtbl { @@ -1310,16 +876,7 @@ pub struct IMediaPlayer4_Vtbl { #[cfg(not(feature = "UI_Composition"))] GetSurface: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaPlayer5(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaPlayer5 { - type Vtable = IMediaPlayer5_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaPlayer5 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcfe537fd_f86a_4446_bf4d_c8e792b7b4b3); -} +::windows_core::imp::com_interface!(IMediaPlayer5, IMediaPlayer5_Vtbl, 0xcfe537fd_f86a_4446_bf4d_c8e792b7b4b3); #[repr(C)] #[doc(hidden)] pub struct IMediaPlayer5_Vtbl { @@ -1341,16 +898,7 @@ pub struct IMediaPlayer5_Vtbl { #[cfg(not(feature = "Graphics_DirectX_Direct3D11"))] CopyFrameToStereoscopicVideoSurfaces: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaPlayer6(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaPlayer6 { - type Vtable = IMediaPlayer6_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaPlayer6 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe0caa086_ae65_414c_b010_8bc55f00e692); -} +::windows_core::imp::com_interface!(IMediaPlayer6, IMediaPlayer6_Vtbl, 0xe0caa086_ae65_414c_b010_8bc55f00e692); #[repr(C)] #[doc(hidden)] pub struct IMediaPlayer6_Vtbl { @@ -1366,16 +914,7 @@ pub struct IMediaPlayer6_Vtbl { #[cfg(not(feature = "Graphics_DirectX_Direct3D11"))] RenderSubtitlesToSurfaceWithTargetRectangle: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaPlayer7(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaPlayer7 { - type Vtable = IMediaPlayer7_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaPlayer7 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5d1dc478_4500_4531_b3f4_777a71491f7f); -} +::windows_core::imp::com_interface!(IMediaPlayer7, IMediaPlayer7_Vtbl, 0x5d1dc478_4500_4531_b3f4_777a71491f7f); #[repr(C)] #[doc(hidden)] pub struct IMediaPlayer7_Vtbl { @@ -1385,16 +924,7 @@ pub struct IMediaPlayer7_Vtbl { #[cfg(not(feature = "Media_Audio"))] AudioStateMonitor: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaPlayerDataReceivedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaPlayerDataReceivedEventArgs { - type Vtable = IMediaPlayerDataReceivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaPlayerDataReceivedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc75a9405_c801_412a_835b_83fc0e622a8e); -} +::windows_core::imp::com_interface!(IMediaPlayerDataReceivedEventArgs, IMediaPlayerDataReceivedEventArgs_Vtbl, 0xc75a9405_c801_412a_835b_83fc0e622a8e); #[repr(C)] #[doc(hidden)] pub struct IMediaPlayerDataReceivedEventArgs_Vtbl { @@ -1404,16 +934,7 @@ pub struct IMediaPlayerDataReceivedEventArgs_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Data: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaPlayerEffects(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaPlayerEffects { - type Vtable = IMediaPlayerEffects_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaPlayerEffects { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x85a1deda_cab6_4cc0_8be3_6035f4de2591); -} +::windows_core::imp::com_interface!(IMediaPlayerEffects, IMediaPlayerEffects_Vtbl, 0x85a1deda_cab6_4cc0_8be3_6035f4de2591); #[repr(C)] #[doc(hidden)] pub struct IMediaPlayerEffects_Vtbl { @@ -1424,16 +945,7 @@ pub struct IMediaPlayerEffects_Vtbl { AddAudioEffect: usize, pub RemoveAllEffects: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaPlayerEffects2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaPlayerEffects2 { - type Vtable = IMediaPlayerEffects2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaPlayerEffects2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfa419a79_1bbe_46c5_ae1f_8ee69fb3c2c7); -} +::windows_core::imp::com_interface!(IMediaPlayerEffects2, IMediaPlayerEffects2_Vtbl, 0xfa419a79_1bbe_46c5_ae1f_8ee69fb3c2c7); #[repr(C)] #[doc(hidden)] pub struct IMediaPlayerEffects2_Vtbl { @@ -1443,16 +955,7 @@ pub struct IMediaPlayerEffects2_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] AddVideoEffect: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaPlayerFailedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaPlayerFailedEventArgs { - type Vtable = IMediaPlayerFailedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaPlayerFailedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2744e9b9_a7e3_4f16_bac4_7914ebc08301); -} +::windows_core::imp::com_interface!(IMediaPlayerFailedEventArgs, IMediaPlayerFailedEventArgs_Vtbl, 0x2744e9b9_a7e3_4f16_bac4_7914ebc08301); #[repr(C)] #[doc(hidden)] pub struct IMediaPlayerFailedEventArgs_Vtbl { @@ -1461,32 +964,14 @@ pub struct IMediaPlayerFailedEventArgs_Vtbl { pub ExtendedErrorCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, pub ErrorMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaPlayerRateChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaPlayerRateChangedEventArgs { - type Vtable = IMediaPlayerRateChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaPlayerRateChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x40600d58_3b61_4bb2_989f_fc65608b6cab); -} +::windows_core::imp::com_interface!(IMediaPlayerRateChangedEventArgs, IMediaPlayerRateChangedEventArgs_Vtbl, 0x40600d58_3b61_4bb2_989f_fc65608b6cab); #[repr(C)] #[doc(hidden)] pub struct IMediaPlayerRateChangedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub NewRate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaPlayerSource(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaPlayerSource { - type Vtable = IMediaPlayerSource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaPlayerSource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbd4f8897_1423_4c3e_82c5_0fb1af94f715); -} +::windows_core::imp::com_interface!(IMediaPlayerSource, IMediaPlayerSource_Vtbl, 0xbd4f8897_1423_4c3e_82c5_0fb1af94f715); #[repr(C)] #[doc(hidden)] pub struct IMediaPlayerSource_Vtbl { @@ -1512,16 +997,7 @@ pub struct IMediaPlayerSource_Vtbl { #[cfg(not(all(feature = "Media_Core", feature = "deprecated")))] SetMediaSource: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaPlayerSource2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaPlayerSource2 { - type Vtable = IMediaPlayerSource2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaPlayerSource2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x82449b9f_7322_4c0b_b03b_3e69a48260c5); -} +::windows_core::imp::com_interface!(IMediaPlayerSource2, IMediaPlayerSource2_Vtbl, 0x82449b9f_7322_4c0b_b03b_3e69a48260c5); #[repr(C)] #[doc(hidden)] pub struct IMediaPlayerSource2_Vtbl { @@ -1529,16 +1005,7 @@ pub struct IMediaPlayerSource2_Vtbl { pub Source: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetSource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaPlayerSurface(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaPlayerSurface { - type Vtable = IMediaPlayerSurface_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaPlayerSurface { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0ed653bc_b736_49c3_830b_764a3845313a); -} +::windows_core::imp::com_interface!(IMediaPlayerSurface, IMediaPlayerSurface_Vtbl, 0x0ed653bc_b736_49c3_830b_764a3845313a); #[repr(C)] #[doc(hidden)] pub struct IMediaPlayerSurface_Vtbl { @@ -1553,16 +1020,7 @@ pub struct IMediaPlayerSurface_Vtbl { Compositor: usize, pub MediaPlayer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlaybackMediaMarker(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPlaybackMediaMarker { - type Vtable = IPlaybackMediaMarker_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPlaybackMediaMarker { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc4d22f5c_3c1c_4444_b6b9_778b0422d41a); -} +::windows_core::imp::com_interface!(IPlaybackMediaMarker, IPlaybackMediaMarker_Vtbl, 0xc4d22f5c_3c1c_4444_b6b9_778b0422d41a); #[repr(C)] #[doc(hidden)] pub struct IPlaybackMediaMarker_Vtbl { @@ -1571,16 +1029,7 @@ pub struct IPlaybackMediaMarker_Vtbl { pub MediaMarkerType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Text: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlaybackMediaMarkerFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPlaybackMediaMarkerFactory { - type Vtable = IPlaybackMediaMarkerFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPlaybackMediaMarkerFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8c530a78_e0ae_4e1a_a8c8_e23f982a937b); -} +::windows_core::imp::com_interface!(IPlaybackMediaMarkerFactory, IPlaybackMediaMarkerFactory_Vtbl, 0x8c530a78_e0ae_4e1a_a8c8_e23f982a937b); #[repr(C)] #[doc(hidden)] pub struct IPlaybackMediaMarkerFactory_Vtbl { @@ -1588,32 +1037,14 @@ pub struct IPlaybackMediaMarkerFactory_Vtbl { pub CreateFromTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::Foundation::TimeSpan, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::Foundation::TimeSpan, mediamarkettype: ::std::mem::MaybeUninit<::windows_core::HSTRING>, text: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlaybackMediaMarkerReachedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPlaybackMediaMarkerReachedEventArgs { - type Vtable = IPlaybackMediaMarkerReachedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPlaybackMediaMarkerReachedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x578cd1b9_90e2_4e60_abc4_8740b01f6196); -} +::windows_core::imp::com_interface!(IPlaybackMediaMarkerReachedEventArgs, IPlaybackMediaMarkerReachedEventArgs_Vtbl, 0x578cd1b9_90e2_4e60_abc4_8740b01f6196); #[repr(C)] #[doc(hidden)] pub struct IPlaybackMediaMarkerReachedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub PlaybackMediaMarker: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlaybackMediaMarkerSequence(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPlaybackMediaMarkerSequence { - type Vtable = IPlaybackMediaMarkerSequence_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPlaybackMediaMarkerSequence { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf2810cee_638b_46cf_8817_1d111fe9d8c4); -} +::windows_core::imp::com_interface!(IPlaybackMediaMarkerSequence, IPlaybackMediaMarkerSequence_Vtbl, 0xf2810cee_638b_46cf_8817_1d111fe9d8c4); #[repr(C)] #[doc(hidden)] pub struct IPlaybackMediaMarkerSequence_Vtbl { @@ -1622,16 +1053,7 @@ pub struct IPlaybackMediaMarkerSequence_Vtbl { pub Insert: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clear: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITimedMetadataPresentationModeChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITimedMetadataPresentationModeChangedEventArgs { - type Vtable = ITimedMetadataPresentationModeChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITimedMetadataPresentationModeChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd1636099_65df_45ae_8cef_dc0b53fdc2bb); -} +::windows_core::imp::com_interface!(ITimedMetadataPresentationModeChangedEventArgs, ITimedMetadataPresentationModeChangedEventArgs_Vtbl, 0xd1636099_65df_45ae_8cef_dc0b53fdc2bb); #[repr(C)] #[doc(hidden)] pub struct ITimedMetadataPresentationModeChangedEventArgs_Vtbl { @@ -1731,6 +1153,7 @@ impl ::windows_core::RuntimeName for BackgroundMediaPlayer { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CurrentMediaPlaybackItemChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CurrentMediaPlaybackItemChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CurrentMediaPlaybackItemChangedEventArgs { pub fn NewItem(&self) -> ::windows_core::Result { let this = self; @@ -1747,7 +1170,7 @@ impl CurrentMediaPlaybackItemChangedEventArgs { } } pub fn Reason(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Reason)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1759,19 +1182,17 @@ impl ::windows_core::RuntimeType for CurrentMediaPlaybackItemChangedEventArgs { } unsafe impl ::windows_core::Interface for CurrentMediaPlaybackItemChangedEventArgs { type Vtable = ICurrentMediaPlaybackItemChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CurrentMediaPlaybackItemChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CurrentMediaPlaybackItemChangedEventArgs { const NAME: &'static str = "Windows.Media.Playback.CurrentMediaPlaybackItemChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(CurrentMediaPlaybackItemChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CurrentMediaPlaybackItemChangedEventArgs {} unsafe impl ::core::marker::Sync for CurrentMediaPlaybackItemChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaBreak(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaBreak, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaBreak { pub fn PlaybackList(&self) -> ::windows_core::Result { let this = self; @@ -1837,19 +1258,17 @@ impl ::windows_core::RuntimeType for MediaBreak { } unsafe impl ::windows_core::Interface for MediaBreak { type Vtable = IMediaBreak_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaBreak { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaBreak { const NAME: &'static str = "Windows.Media.Playback.MediaBreak"; } -::windows_core::imp::interface_hierarchy!(MediaBreak, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaBreak {} unsafe impl ::core::marker::Sync for MediaBreak {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaBreakEndedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaBreakEndedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaBreakEndedEventArgs { pub fn MediaBreak(&self) -> ::windows_core::Result { let this = self; @@ -1864,19 +1283,17 @@ impl ::windows_core::RuntimeType for MediaBreakEndedEventArgs { } unsafe impl ::windows_core::Interface for MediaBreakEndedEventArgs { type Vtable = IMediaBreakEndedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaBreakEndedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaBreakEndedEventArgs { const NAME: &'static str = "Windows.Media.Playback.MediaBreakEndedEventArgs"; } -::windows_core::imp::interface_hierarchy!(MediaBreakEndedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaBreakEndedEventArgs {} unsafe impl ::core::marker::Sync for MediaBreakEndedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaBreakManager(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaBreakManager, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaBreakManager { pub fn BreaksSeekedOver(&self, handler: P0) -> ::windows_core::Result where @@ -1965,19 +1382,17 @@ impl ::windows_core::RuntimeType for MediaBreakManager { } unsafe impl ::windows_core::Interface for MediaBreakManager { type Vtable = IMediaBreakManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaBreakManager { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaBreakManager { const NAME: &'static str = "Windows.Media.Playback.MediaBreakManager"; } -::windows_core::imp::interface_hierarchy!(MediaBreakManager, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaBreakManager {} unsafe impl ::core::marker::Sync for MediaBreakManager {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaBreakSchedule(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaBreakSchedule, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaBreakSchedule { pub fn ScheduleChanged(&self, handler: P0) -> ::windows_core::Result where @@ -2057,19 +1472,17 @@ impl ::windows_core::RuntimeType for MediaBreakSchedule { } unsafe impl ::windows_core::Interface for MediaBreakSchedule { type Vtable = IMediaBreakSchedule_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaBreakSchedule { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaBreakSchedule { const NAME: &'static str = "Windows.Media.Playback.MediaBreakSchedule"; } -::windows_core::imp::interface_hierarchy!(MediaBreakSchedule, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaBreakSchedule {} unsafe impl ::core::marker::Sync for MediaBreakSchedule {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaBreakSeekedOverEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaBreakSeekedOverEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaBreakSeekedOverEventArgs { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -2100,19 +1513,17 @@ impl ::windows_core::RuntimeType for MediaBreakSeekedOverEventArgs { } unsafe impl ::windows_core::Interface for MediaBreakSeekedOverEventArgs { type Vtable = IMediaBreakSeekedOverEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaBreakSeekedOverEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaBreakSeekedOverEventArgs { const NAME: &'static str = "Windows.Media.Playback.MediaBreakSeekedOverEventArgs"; } -::windows_core::imp::interface_hierarchy!(MediaBreakSeekedOverEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaBreakSeekedOverEventArgs {} unsafe impl ::core::marker::Sync for MediaBreakSeekedOverEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaBreakSkippedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaBreakSkippedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaBreakSkippedEventArgs { pub fn MediaBreak(&self) -> ::windows_core::Result { let this = self; @@ -2127,19 +1538,17 @@ impl ::windows_core::RuntimeType for MediaBreakSkippedEventArgs { } unsafe impl ::windows_core::Interface for MediaBreakSkippedEventArgs { type Vtable = IMediaBreakSkippedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaBreakSkippedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaBreakSkippedEventArgs { const NAME: &'static str = "Windows.Media.Playback.MediaBreakSkippedEventArgs"; } -::windows_core::imp::interface_hierarchy!(MediaBreakSkippedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaBreakSkippedEventArgs {} unsafe impl ::core::marker::Sync for MediaBreakSkippedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaBreakStartedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaBreakStartedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaBreakStartedEventArgs { pub fn MediaBreak(&self) -> ::windows_core::Result { let this = self; @@ -2154,19 +1563,17 @@ impl ::windows_core::RuntimeType for MediaBreakStartedEventArgs { } unsafe impl ::windows_core::Interface for MediaBreakStartedEventArgs { type Vtable = IMediaBreakStartedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaBreakStartedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaBreakStartedEventArgs { const NAME: &'static str = "Windows.Media.Playback.MediaBreakStartedEventArgs"; } -::windows_core::imp::interface_hierarchy!(MediaBreakStartedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaBreakStartedEventArgs {} unsafe impl ::core::marker::Sync for MediaBreakStartedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaItemDisplayProperties(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaItemDisplayProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaItemDisplayProperties { pub fn Type(&self) -> ::windows_core::Result { let this = self; @@ -2221,14 +1628,11 @@ impl ::windows_core::RuntimeType for MediaItemDisplayProperties { } unsafe impl ::windows_core::Interface for MediaItemDisplayProperties { type Vtable = IMediaItemDisplayProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaItemDisplayProperties { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaItemDisplayProperties { const NAME: &'static str = "Windows.Media.Playback.MediaItemDisplayProperties"; } -::windows_core::imp::interface_hierarchy!(MediaItemDisplayProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaItemDisplayProperties {} unsafe impl ::core::marker::Sync for MediaItemDisplayProperties {} #[doc = "Required features: `\"Foundation_Collections\"`, `\"Media_Core\"`"] @@ -2237,11 +1641,15 @@ unsafe impl ::core::marker::Sync for MediaItemDisplayProperties {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaPlaybackAudioTrackList(::windows_core::IUnknown); #[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] +::windows_core::imp::interface_hierarchy!(MediaPlaybackAudioTrackList, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] +::windows_core::imp::required_hierarchy!(MediaPlaybackAudioTrackList, super::super::Foundation::Collections::IIterable::, super::Core::ISingleSelectMediaTrackList, super::super::Foundation::Collections::IVectorView::); +#[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] impl MediaPlaybackAudioTrackList { #[doc = "Required features: `\"Foundation_Collections\"`, `\"Media_Core\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] pub fn First(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2253,7 +1661,7 @@ impl MediaPlaybackAudioTrackList { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -2262,19 +1670,19 @@ impl MediaPlaybackAudioTrackList { #[doc = "Required features: `\"Media_Core\"`"] #[cfg(feature = "Media_Core")] pub fn RemoveSelectedIndexChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveSelectedIndexChanged)(::windows_core::Interface::as_raw(this), token).ok() } } #[doc = "Required features: `\"Media_Core\"`"] #[cfg(feature = "Media_Core")] pub fn SetSelectedIndex(&self, value: i32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetSelectedIndex)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Media_Core\"`"] #[cfg(feature = "Media_Core")] pub fn SelectedIndex(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SelectedIndex)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2327,10 +1735,7 @@ impl ::windows_core::RuntimeType for MediaPlaybackAudioTrackList { #[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] unsafe impl ::windows_core::Interface for MediaPlaybackAudioTrackList { type Vtable = super::super::Foundation::Collections::IVectorView_Vtbl; -} -#[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] -unsafe impl ::windows_core::ComInterface for MediaPlaybackAudioTrackList { - const IID: ::windows_core::GUID = as ::windows_core::ComInterface>::IID; + const IID: ::windows_core::GUID = as ::windows_core::Interface>::IID; } #[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] impl ::windows_core::RuntimeName for MediaPlaybackAudioTrackList { @@ -2349,24 +1754,17 @@ impl ::core::iter::IntoIterator for &MediaPlaybackAudioTrackList { type Item = super::Core::AudioTrack; type IntoIter = super::super::Foundation::Collections::VectorViewIterator; fn into_iter(self) -> Self::IntoIter { - super::super::Foundation::Collections::VectorViewIterator::new(::windows_core::ComInterface::cast(self).ok()) + super::super::Foundation::Collections::VectorViewIterator::new(::windows_core::Interface::cast(self).ok()) } } #[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] -::windows_core::imp::interface_hierarchy!(MediaPlaybackAudioTrackList, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] -impl ::windows_core::CanTryInto> for MediaPlaybackAudioTrackList {} -#[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] -impl ::windows_core::CanTryInto for MediaPlaybackAudioTrackList {} -#[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] -impl ::windows_core::CanTryInto> for MediaPlaybackAudioTrackList {} -#[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] unsafe impl ::core::marker::Send for MediaPlaybackAudioTrackList {} #[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] unsafe impl ::core::marker::Sync for MediaPlaybackAudioTrackList {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaPlaybackCommandManager(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaPlaybackCommandManager, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaPlaybackCommandManager { pub fn IsEnabled(&self) -> ::windows_core::Result { let this = self; @@ -2602,19 +2000,17 @@ impl ::windows_core::RuntimeType for MediaPlaybackCommandManager { } unsafe impl ::windows_core::Interface for MediaPlaybackCommandManager { type Vtable = IMediaPlaybackCommandManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaPlaybackCommandManager { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaPlaybackCommandManager { const NAME: &'static str = "Windows.Media.Playback.MediaPlaybackCommandManager"; } -::windows_core::imp::interface_hierarchy!(MediaPlaybackCommandManager, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaPlaybackCommandManager {} unsafe impl ::core::marker::Sync for MediaPlaybackCommandManager {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaPlaybackCommandManagerAutoRepeatModeReceivedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaPlaybackCommandManagerAutoRepeatModeReceivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaPlaybackCommandManagerAutoRepeatModeReceivedEventArgs { pub fn Handled(&self) -> ::windows_core::Result { let this = self; @@ -2647,19 +2043,17 @@ impl ::windows_core::RuntimeType for MediaPlaybackCommandManagerAutoRepeatModeRe } unsafe impl ::windows_core::Interface for MediaPlaybackCommandManagerAutoRepeatModeReceivedEventArgs { type Vtable = IMediaPlaybackCommandManagerAutoRepeatModeReceivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaPlaybackCommandManagerAutoRepeatModeReceivedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaPlaybackCommandManagerAutoRepeatModeReceivedEventArgs { const NAME: &'static str = "Windows.Media.Playback.MediaPlaybackCommandManagerAutoRepeatModeReceivedEventArgs"; } -::windows_core::imp::interface_hierarchy!(MediaPlaybackCommandManagerAutoRepeatModeReceivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaPlaybackCommandManagerAutoRepeatModeReceivedEventArgs {} unsafe impl ::core::marker::Sync for MediaPlaybackCommandManagerAutoRepeatModeReceivedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaPlaybackCommandManagerCommandBehavior(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaPlaybackCommandManagerCommandBehavior, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaPlaybackCommandManagerCommandBehavior { pub fn CommandManager(&self) -> ::windows_core::Result { let this = self; @@ -2706,19 +2100,17 @@ impl ::windows_core::RuntimeType for MediaPlaybackCommandManagerCommandBehavior } unsafe impl ::windows_core::Interface for MediaPlaybackCommandManagerCommandBehavior { type Vtable = IMediaPlaybackCommandManagerCommandBehavior_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaPlaybackCommandManagerCommandBehavior { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaPlaybackCommandManagerCommandBehavior { const NAME: &'static str = "Windows.Media.Playback.MediaPlaybackCommandManagerCommandBehavior"; } -::windows_core::imp::interface_hierarchy!(MediaPlaybackCommandManagerCommandBehavior, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaPlaybackCommandManagerCommandBehavior {} unsafe impl ::core::marker::Sync for MediaPlaybackCommandManagerCommandBehavior {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaPlaybackCommandManagerFastForwardReceivedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaPlaybackCommandManagerFastForwardReceivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaPlaybackCommandManagerFastForwardReceivedEventArgs { pub fn Handled(&self) -> ::windows_core::Result { let this = self; @@ -2744,19 +2136,17 @@ impl ::windows_core::RuntimeType for MediaPlaybackCommandManagerFastForwardRecei } unsafe impl ::windows_core::Interface for MediaPlaybackCommandManagerFastForwardReceivedEventArgs { type Vtable = IMediaPlaybackCommandManagerFastForwardReceivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaPlaybackCommandManagerFastForwardReceivedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaPlaybackCommandManagerFastForwardReceivedEventArgs { const NAME: &'static str = "Windows.Media.Playback.MediaPlaybackCommandManagerFastForwardReceivedEventArgs"; } -::windows_core::imp::interface_hierarchy!(MediaPlaybackCommandManagerFastForwardReceivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaPlaybackCommandManagerFastForwardReceivedEventArgs {} unsafe impl ::core::marker::Sync for MediaPlaybackCommandManagerFastForwardReceivedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaPlaybackCommandManagerNextReceivedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaPlaybackCommandManagerNextReceivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaPlaybackCommandManagerNextReceivedEventArgs { pub fn Handled(&self) -> ::windows_core::Result { let this = self; @@ -2782,19 +2172,17 @@ impl ::windows_core::RuntimeType for MediaPlaybackCommandManagerNextReceivedEven } unsafe impl ::windows_core::Interface for MediaPlaybackCommandManagerNextReceivedEventArgs { type Vtable = IMediaPlaybackCommandManagerNextReceivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaPlaybackCommandManagerNextReceivedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaPlaybackCommandManagerNextReceivedEventArgs { const NAME: &'static str = "Windows.Media.Playback.MediaPlaybackCommandManagerNextReceivedEventArgs"; } -::windows_core::imp::interface_hierarchy!(MediaPlaybackCommandManagerNextReceivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaPlaybackCommandManagerNextReceivedEventArgs {} unsafe impl ::core::marker::Sync for MediaPlaybackCommandManagerNextReceivedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaPlaybackCommandManagerPauseReceivedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaPlaybackCommandManagerPauseReceivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaPlaybackCommandManagerPauseReceivedEventArgs { pub fn Handled(&self) -> ::windows_core::Result { let this = self; @@ -2820,19 +2208,17 @@ impl ::windows_core::RuntimeType for MediaPlaybackCommandManagerPauseReceivedEve } unsafe impl ::windows_core::Interface for MediaPlaybackCommandManagerPauseReceivedEventArgs { type Vtable = IMediaPlaybackCommandManagerPauseReceivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaPlaybackCommandManagerPauseReceivedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaPlaybackCommandManagerPauseReceivedEventArgs { const NAME: &'static str = "Windows.Media.Playback.MediaPlaybackCommandManagerPauseReceivedEventArgs"; } -::windows_core::imp::interface_hierarchy!(MediaPlaybackCommandManagerPauseReceivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaPlaybackCommandManagerPauseReceivedEventArgs {} unsafe impl ::core::marker::Sync for MediaPlaybackCommandManagerPauseReceivedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaPlaybackCommandManagerPlayReceivedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaPlaybackCommandManagerPlayReceivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaPlaybackCommandManagerPlayReceivedEventArgs { pub fn Handled(&self) -> ::windows_core::Result { let this = self; @@ -2858,19 +2244,17 @@ impl ::windows_core::RuntimeType for MediaPlaybackCommandManagerPlayReceivedEven } unsafe impl ::windows_core::Interface for MediaPlaybackCommandManagerPlayReceivedEventArgs { type Vtable = IMediaPlaybackCommandManagerPlayReceivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaPlaybackCommandManagerPlayReceivedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaPlaybackCommandManagerPlayReceivedEventArgs { const NAME: &'static str = "Windows.Media.Playback.MediaPlaybackCommandManagerPlayReceivedEventArgs"; } -::windows_core::imp::interface_hierarchy!(MediaPlaybackCommandManagerPlayReceivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaPlaybackCommandManagerPlayReceivedEventArgs {} unsafe impl ::core::marker::Sync for MediaPlaybackCommandManagerPlayReceivedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaPlaybackCommandManagerPositionReceivedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaPlaybackCommandManagerPositionReceivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaPlaybackCommandManagerPositionReceivedEventArgs { pub fn Handled(&self) -> ::windows_core::Result { let this = self; @@ -2903,19 +2287,17 @@ impl ::windows_core::RuntimeType for MediaPlaybackCommandManagerPositionReceived } unsafe impl ::windows_core::Interface for MediaPlaybackCommandManagerPositionReceivedEventArgs { type Vtable = IMediaPlaybackCommandManagerPositionReceivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaPlaybackCommandManagerPositionReceivedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaPlaybackCommandManagerPositionReceivedEventArgs { const NAME: &'static str = "Windows.Media.Playback.MediaPlaybackCommandManagerPositionReceivedEventArgs"; } -::windows_core::imp::interface_hierarchy!(MediaPlaybackCommandManagerPositionReceivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaPlaybackCommandManagerPositionReceivedEventArgs {} unsafe impl ::core::marker::Sync for MediaPlaybackCommandManagerPositionReceivedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaPlaybackCommandManagerPreviousReceivedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaPlaybackCommandManagerPreviousReceivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaPlaybackCommandManagerPreviousReceivedEventArgs { pub fn Handled(&self) -> ::windows_core::Result { let this = self; @@ -2941,19 +2323,17 @@ impl ::windows_core::RuntimeType for MediaPlaybackCommandManagerPreviousReceived } unsafe impl ::windows_core::Interface for MediaPlaybackCommandManagerPreviousReceivedEventArgs { type Vtable = IMediaPlaybackCommandManagerPreviousReceivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaPlaybackCommandManagerPreviousReceivedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaPlaybackCommandManagerPreviousReceivedEventArgs { const NAME: &'static str = "Windows.Media.Playback.MediaPlaybackCommandManagerPreviousReceivedEventArgs"; } -::windows_core::imp::interface_hierarchy!(MediaPlaybackCommandManagerPreviousReceivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaPlaybackCommandManagerPreviousReceivedEventArgs {} unsafe impl ::core::marker::Sync for MediaPlaybackCommandManagerPreviousReceivedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaPlaybackCommandManagerRateReceivedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaPlaybackCommandManagerRateReceivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaPlaybackCommandManagerRateReceivedEventArgs { pub fn Handled(&self) -> ::windows_core::Result { let this = self; @@ -2986,19 +2366,17 @@ impl ::windows_core::RuntimeType for MediaPlaybackCommandManagerRateReceivedEven } unsafe impl ::windows_core::Interface for MediaPlaybackCommandManagerRateReceivedEventArgs { type Vtable = IMediaPlaybackCommandManagerRateReceivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaPlaybackCommandManagerRateReceivedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaPlaybackCommandManagerRateReceivedEventArgs { const NAME: &'static str = "Windows.Media.Playback.MediaPlaybackCommandManagerRateReceivedEventArgs"; } -::windows_core::imp::interface_hierarchy!(MediaPlaybackCommandManagerRateReceivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaPlaybackCommandManagerRateReceivedEventArgs {} unsafe impl ::core::marker::Sync for MediaPlaybackCommandManagerRateReceivedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaPlaybackCommandManagerRewindReceivedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaPlaybackCommandManagerRewindReceivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaPlaybackCommandManagerRewindReceivedEventArgs { pub fn Handled(&self) -> ::windows_core::Result { let this = self; @@ -3024,19 +2402,17 @@ impl ::windows_core::RuntimeType for MediaPlaybackCommandManagerRewindReceivedEv } unsafe impl ::windows_core::Interface for MediaPlaybackCommandManagerRewindReceivedEventArgs { type Vtable = IMediaPlaybackCommandManagerRewindReceivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaPlaybackCommandManagerRewindReceivedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaPlaybackCommandManagerRewindReceivedEventArgs { const NAME: &'static str = "Windows.Media.Playback.MediaPlaybackCommandManagerRewindReceivedEventArgs"; } -::windows_core::imp::interface_hierarchy!(MediaPlaybackCommandManagerRewindReceivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaPlaybackCommandManagerRewindReceivedEventArgs {} unsafe impl ::core::marker::Sync for MediaPlaybackCommandManagerRewindReceivedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaPlaybackCommandManagerShuffleReceivedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaPlaybackCommandManagerShuffleReceivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaPlaybackCommandManagerShuffleReceivedEventArgs { pub fn Handled(&self) -> ::windows_core::Result { let this = self; @@ -3069,19 +2445,18 @@ impl ::windows_core::RuntimeType for MediaPlaybackCommandManagerShuffleReceivedE } unsafe impl ::windows_core::Interface for MediaPlaybackCommandManagerShuffleReceivedEventArgs { type Vtable = IMediaPlaybackCommandManagerShuffleReceivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaPlaybackCommandManagerShuffleReceivedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaPlaybackCommandManagerShuffleReceivedEventArgs { const NAME: &'static str = "Windows.Media.Playback.MediaPlaybackCommandManagerShuffleReceivedEventArgs"; } -::windows_core::imp::interface_hierarchy!(MediaPlaybackCommandManagerShuffleReceivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaPlaybackCommandManagerShuffleReceivedEventArgs {} unsafe impl ::core::marker::Sync for MediaPlaybackCommandManagerShuffleReceivedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaPlaybackItem(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaPlaybackItem, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(MediaPlaybackItem, IMediaPlaybackSource); impl MediaPlaybackItem { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -3168,39 +2543,39 @@ impl MediaPlaybackItem { } } pub fn BreakSchedule(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).BreakSchedule)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn StartTime(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).StartTime)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn DurationLimit(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DurationLimit)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CanSkip(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CanSkip)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetCanSkip(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCanSkip)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn GetDisplayProperties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetDisplayProperties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3210,36 +2585,36 @@ impl MediaPlaybackItem { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn IsDisabledInPlaybackList(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsDisabledInPlaybackList)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsDisabledInPlaybackList(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsDisabledInPlaybackList)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn TotalDownloadProgress(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TotalDownloadProgress)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn AutoLoadedDisplayProperties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AutoLoadedDisplayProperties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetAutoLoadedDisplayProperties(&self, value: AutoLoadedDisplayPropertyKind) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetAutoLoadedDisplayProperties)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Media_Core\"`"] @@ -3307,20 +2682,17 @@ impl ::windows_core::RuntimeType for MediaPlaybackItem { } unsafe impl ::windows_core::Interface for MediaPlaybackItem { type Vtable = IMediaPlaybackItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaPlaybackItem { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaPlaybackItem { const NAME: &'static str = "Windows.Media.Playback.MediaPlaybackItem"; } -::windows_core::imp::interface_hierarchy!(MediaPlaybackItem, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for MediaPlaybackItem {} unsafe impl ::core::marker::Send for MediaPlaybackItem {} unsafe impl ::core::marker::Sync for MediaPlaybackItem {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaPlaybackItemError(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaPlaybackItemError, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaPlaybackItemError { pub fn ErrorCode(&self) -> ::windows_core::Result { let this = self; @@ -3342,19 +2714,17 @@ impl ::windows_core::RuntimeType for MediaPlaybackItemError { } unsafe impl ::windows_core::Interface for MediaPlaybackItemError { type Vtable = IMediaPlaybackItemError_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaPlaybackItemError { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaPlaybackItemError { const NAME: &'static str = "Windows.Media.Playback.MediaPlaybackItemError"; } -::windows_core::imp::interface_hierarchy!(MediaPlaybackItemError, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaPlaybackItemError {} unsafe impl ::core::marker::Sync for MediaPlaybackItemError {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaPlaybackItemFailedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaPlaybackItemFailedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaPlaybackItemFailedEventArgs { pub fn Item(&self) -> ::windows_core::Result { let this = self; @@ -3376,19 +2746,17 @@ impl ::windows_core::RuntimeType for MediaPlaybackItemFailedEventArgs { } unsafe impl ::windows_core::Interface for MediaPlaybackItemFailedEventArgs { type Vtable = IMediaPlaybackItemFailedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaPlaybackItemFailedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaPlaybackItemFailedEventArgs { const NAME: &'static str = "Windows.Media.Playback.MediaPlaybackItemFailedEventArgs"; } -::windows_core::imp::interface_hierarchy!(MediaPlaybackItemFailedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaPlaybackItemFailedEventArgs {} unsafe impl ::core::marker::Sync for MediaPlaybackItemFailedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaPlaybackItemOpenedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaPlaybackItemOpenedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaPlaybackItemOpenedEventArgs { pub fn Item(&self) -> ::windows_core::Result { let this = self; @@ -3403,19 +2771,18 @@ impl ::windows_core::RuntimeType for MediaPlaybackItemOpenedEventArgs { } unsafe impl ::windows_core::Interface for MediaPlaybackItemOpenedEventArgs { type Vtable = IMediaPlaybackItemOpenedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaPlaybackItemOpenedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaPlaybackItemOpenedEventArgs { const NAME: &'static str = "Windows.Media.Playback.MediaPlaybackItemOpenedEventArgs"; } -::windows_core::imp::interface_hierarchy!(MediaPlaybackItemOpenedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaPlaybackItemOpenedEventArgs {} unsafe impl ::core::marker::Sync for MediaPlaybackItemOpenedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaPlaybackList(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaPlaybackList, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(MediaPlaybackList, IMediaPlaybackSource); impl MediaPlaybackList { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -3533,7 +2900,7 @@ impl MediaPlaybackList { } } pub fn MaxPrefetchTime(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MaxPrefetchTime)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3541,13 +2908,13 @@ impl MediaPlaybackList { } pub fn SetMaxPrefetchTime(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetMaxPrefetchTime)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StartingItem(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).StartingItem)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3557,13 +2924,13 @@ impl MediaPlaybackList { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn ShuffledItems(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ShuffledItems)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3573,13 +2940,13 @@ impl MediaPlaybackList { #[cfg(feature = "Foundation_Collections")] pub fn SetShuffledItems(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetShuffledItems)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn MaxPlayedItemsToKeepOpen(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MaxPlayedItemsToKeepOpen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3587,10 +2954,10 @@ impl MediaPlaybackList { } pub fn SetMaxPlayedItemsToKeepOpen(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetMaxPlayedItemsToKeepOpen)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } } impl ::windows_core::RuntimeType for MediaPlaybackList { @@ -3598,20 +2965,17 @@ impl ::windows_core::RuntimeType for MediaPlaybackList { } unsafe impl ::windows_core::Interface for MediaPlaybackList { type Vtable = IMediaPlaybackList_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaPlaybackList { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaPlaybackList { const NAME: &'static str = "Windows.Media.Playback.MediaPlaybackList"; } -::windows_core::imp::interface_hierarchy!(MediaPlaybackList, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for MediaPlaybackList {} unsafe impl ::core::marker::Send for MediaPlaybackList {} unsafe impl ::core::marker::Sync for MediaPlaybackList {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaPlaybackSession(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaPlaybackSession, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaPlaybackSession { pub fn PlaybackStateChanged(&self, value: P0) -> ::windows_core::Result where @@ -3875,80 +3239,80 @@ impl MediaPlaybackSession { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveBufferedRangesChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveBufferedRangesChanged)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn PlayedRangesChanged(&self, value: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemovePlayedRangesChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemovePlayedRangesChanged)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn SeekableRangesChanged(&self, value: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveSeekableRangesChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveSeekableRangesChanged)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn SupportedPlaybackRatesChanged(&self, value: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveSupportedPlaybackRatesChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveSupportedPlaybackRatesChanged)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn SphericalVideoProjection(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SphericalVideoProjection)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsMirroring(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsMirroring)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsMirroring(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsMirroring)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetBufferedRanges(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetBufferedRanges)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3957,7 +3321,7 @@ impl MediaPlaybackSession { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetPlayedRanges(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetPlayedRanges)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3966,14 +3330,14 @@ impl MediaPlaybackSession { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetSeekableRanges(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetSeekableRanges)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsSupportedPlaybackRateRange(&self, rate1: f64, rate2: f64) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsSupportedPlaybackRateRange)(::windows_core::Interface::as_raw(this), rate1, rate2, &mut result__).from_abi(result__) @@ -3982,7 +3346,7 @@ impl MediaPlaybackSession { #[doc = "Required features: `\"Media_MediaProperties\"`"] #[cfg(feature = "Media_MediaProperties")] pub fn PlaybackRotation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PlaybackRotation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3991,11 +3355,11 @@ impl MediaPlaybackSession { #[doc = "Required features: `\"Media_MediaProperties\"`"] #[cfg(feature = "Media_MediaProperties")] pub fn SetPlaybackRotation(&self, value: super::MediaProperties::MediaRotation) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetPlaybackRotation)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn GetOutputDegradationPolicyState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetOutputDegradationPolicyState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4007,19 +3371,17 @@ impl ::windows_core::RuntimeType for MediaPlaybackSession { } unsafe impl ::windows_core::Interface for MediaPlaybackSession { type Vtable = IMediaPlaybackSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaPlaybackSession { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaPlaybackSession { const NAME: &'static str = "Windows.Media.Playback.MediaPlaybackSession"; } -::windows_core::imp::interface_hierarchy!(MediaPlaybackSession, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaPlaybackSession {} unsafe impl ::core::marker::Sync for MediaPlaybackSession {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaPlaybackSessionBufferingStartedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaPlaybackSessionBufferingStartedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaPlaybackSessionBufferingStartedEventArgs { pub fn IsPlaybackInterruption(&self) -> ::windows_core::Result { let this = self; @@ -4034,19 +3396,17 @@ impl ::windows_core::RuntimeType for MediaPlaybackSessionBufferingStartedEventAr } unsafe impl ::windows_core::Interface for MediaPlaybackSessionBufferingStartedEventArgs { type Vtable = IMediaPlaybackSessionBufferingStartedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaPlaybackSessionBufferingStartedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaPlaybackSessionBufferingStartedEventArgs { const NAME: &'static str = "Windows.Media.Playback.MediaPlaybackSessionBufferingStartedEventArgs"; } -::windows_core::imp::interface_hierarchy!(MediaPlaybackSessionBufferingStartedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaPlaybackSessionBufferingStartedEventArgs {} unsafe impl ::core::marker::Sync for MediaPlaybackSessionBufferingStartedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaPlaybackSessionOutputDegradationPolicyState(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaPlaybackSessionOutputDegradationPolicyState, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaPlaybackSessionOutputDegradationPolicyState { pub fn VideoConstrictionReason(&self) -> ::windows_core::Result { let this = self; @@ -4061,19 +3421,17 @@ impl ::windows_core::RuntimeType for MediaPlaybackSessionOutputDegradationPolicy } unsafe impl ::windows_core::Interface for MediaPlaybackSessionOutputDegradationPolicyState { type Vtable = IMediaPlaybackSessionOutputDegradationPolicyState_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaPlaybackSessionOutputDegradationPolicyState { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaPlaybackSessionOutputDegradationPolicyState { const NAME: &'static str = "Windows.Media.Playback.MediaPlaybackSessionOutputDegradationPolicyState"; } -::windows_core::imp::interface_hierarchy!(MediaPlaybackSessionOutputDegradationPolicyState, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaPlaybackSessionOutputDegradationPolicyState {} unsafe impl ::core::marker::Sync for MediaPlaybackSessionOutputDegradationPolicyState {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaPlaybackSphericalVideoProjection(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaPlaybackSphericalVideoProjection, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaPlaybackSphericalVideoProjection { pub fn IsEnabled(&self) -> ::windows_core::Result { let this = self; @@ -4144,14 +3502,11 @@ impl ::windows_core::RuntimeType for MediaPlaybackSphericalVideoProjection { } unsafe impl ::windows_core::Interface for MediaPlaybackSphericalVideoProjection { type Vtable = IMediaPlaybackSphericalVideoProjection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaPlaybackSphericalVideoProjection { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaPlaybackSphericalVideoProjection { const NAME: &'static str = "Windows.Media.Playback.MediaPlaybackSphericalVideoProjection"; } -::windows_core::imp::interface_hierarchy!(MediaPlaybackSphericalVideoProjection, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaPlaybackSphericalVideoProjection {} unsafe impl ::core::marker::Sync for MediaPlaybackSphericalVideoProjection {} #[doc = "Required features: `\"Foundation_Collections\"`, `\"Media_Core\"`"] @@ -4160,11 +3515,15 @@ unsafe impl ::core::marker::Sync for MediaPlaybackSphericalVideoProjection {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaPlaybackTimedMetadataTrackList(::windows_core::IUnknown); #[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] +::windows_core::imp::interface_hierarchy!(MediaPlaybackTimedMetadataTrackList, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] +::windows_core::imp::required_hierarchy!(MediaPlaybackTimedMetadataTrackList, super::super::Foundation::Collections::IIterable::, super::super::Foundation::Collections::IVectorView::); +#[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] impl MediaPlaybackTimedMetadataTrackList { #[doc = "Required features: `\"Foundation_Collections\"`, `\"Media_Core\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] pub fn First(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4176,25 +3535,25 @@ impl MediaPlaybackTimedMetadataTrackList { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemovePresentationModeChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemovePresentationModeChanged)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn GetPresentationMode(&self, index: u32) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetPresentationMode)(::windows_core::Interface::as_raw(this), index, &mut result__).from_abi(result__) } } pub fn SetPresentationMode(&self, index: u32, value: TimedMetadataTrackPresentationMode) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetPresentationMode)(::windows_core::Interface::as_raw(this), index, value).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Media_Core\"`"] @@ -4244,10 +3603,7 @@ impl ::windows_core::RuntimeType for MediaPlaybackTimedMetadataTrackList { #[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] unsafe impl ::windows_core::Interface for MediaPlaybackTimedMetadataTrackList { type Vtable = super::super::Foundation::Collections::IVectorView_Vtbl; -} -#[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] -unsafe impl ::windows_core::ComInterface for MediaPlaybackTimedMetadataTrackList { - const IID: ::windows_core::GUID = as ::windows_core::ComInterface>::IID; + const IID: ::windows_core::GUID = as ::windows_core::Interface>::IID; } #[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] impl ::windows_core::RuntimeName for MediaPlaybackTimedMetadataTrackList { @@ -4266,16 +3622,10 @@ impl ::core::iter::IntoIterator for &MediaPlaybackTimedMetadataTrackList { type Item = super::Core::TimedMetadataTrack; type IntoIter = super::super::Foundation::Collections::VectorViewIterator; fn into_iter(self) -> Self::IntoIter { - super::super::Foundation::Collections::VectorViewIterator::new(::windows_core::ComInterface::cast(self).ok()) + super::super::Foundation::Collections::VectorViewIterator::new(::windows_core::Interface::cast(self).ok()) } } #[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] -::windows_core::imp::interface_hierarchy!(MediaPlaybackTimedMetadataTrackList, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] -impl ::windows_core::CanTryInto> for MediaPlaybackTimedMetadataTrackList {} -#[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] -impl ::windows_core::CanTryInto> for MediaPlaybackTimedMetadataTrackList {} -#[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] unsafe impl ::core::marker::Send for MediaPlaybackTimedMetadataTrackList {} #[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] unsafe impl ::core::marker::Sync for MediaPlaybackTimedMetadataTrackList {} @@ -4285,11 +3635,15 @@ unsafe impl ::core::marker::Sync for MediaPlaybackTimedMetadataTrackList {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaPlaybackVideoTrackList(::windows_core::IUnknown); #[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] +::windows_core::imp::interface_hierarchy!(MediaPlaybackVideoTrackList, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] +::windows_core::imp::required_hierarchy!(MediaPlaybackVideoTrackList, super::super::Foundation::Collections::IIterable::, super::Core::ISingleSelectMediaTrackList, super::super::Foundation::Collections::IVectorView::); +#[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] impl MediaPlaybackVideoTrackList { #[doc = "Required features: `\"Foundation_Collections\"`, `\"Media_Core\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] pub fn First(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4301,7 +3655,7 @@ impl MediaPlaybackVideoTrackList { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -4310,19 +3664,19 @@ impl MediaPlaybackVideoTrackList { #[doc = "Required features: `\"Media_Core\"`"] #[cfg(feature = "Media_Core")] pub fn RemoveSelectedIndexChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveSelectedIndexChanged)(::windows_core::Interface::as_raw(this), token).ok() } } #[doc = "Required features: `\"Media_Core\"`"] #[cfg(feature = "Media_Core")] pub fn SetSelectedIndex(&self, value: i32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetSelectedIndex)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Media_Core\"`"] #[cfg(feature = "Media_Core")] pub fn SelectedIndex(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SelectedIndex)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4375,10 +3729,7 @@ impl ::windows_core::RuntimeType for MediaPlaybackVideoTrackList { #[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] unsafe impl ::windows_core::Interface for MediaPlaybackVideoTrackList { type Vtable = super::super::Foundation::Collections::IVectorView_Vtbl; -} -#[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] -unsafe impl ::windows_core::ComInterface for MediaPlaybackVideoTrackList { - const IID: ::windows_core::GUID = as ::windows_core::ComInterface>::IID; + const IID: ::windows_core::GUID = as ::windows_core::Interface>::IID; } #[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] impl ::windows_core::RuntimeName for MediaPlaybackVideoTrackList { @@ -4397,24 +3748,18 @@ impl ::core::iter::IntoIterator for &MediaPlaybackVideoTrackList { type Item = super::Core::VideoTrack; type IntoIter = super::super::Foundation::Collections::VectorViewIterator; fn into_iter(self) -> Self::IntoIter { - super::super::Foundation::Collections::VectorViewIterator::new(::windows_core::ComInterface::cast(self).ok()) + super::super::Foundation::Collections::VectorViewIterator::new(::windows_core::Interface::cast(self).ok()) } } #[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] -::windows_core::imp::interface_hierarchy!(MediaPlaybackVideoTrackList, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] -impl ::windows_core::CanTryInto> for MediaPlaybackVideoTrackList {} -#[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] -impl ::windows_core::CanTryInto for MediaPlaybackVideoTrackList {} -#[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] -impl ::windows_core::CanTryInto> for MediaPlaybackVideoTrackList {} -#[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] unsafe impl ::core::marker::Send for MediaPlaybackVideoTrackList {} #[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] unsafe impl ::core::marker::Sync for MediaPlaybackVideoTrackList {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaPlayer(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaPlayer, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(MediaPlayer, super::super::Foundation::IClosable); impl MediaPlayer { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -4424,7 +3769,7 @@ impl MediaPlayer { SHARED.call(callback) } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn AutoPlay(&self) -> ::windows_core::Result { @@ -4746,104 +4091,104 @@ impl MediaPlayer { unsafe { (::windows_core::Interface::vtable(this).SetUriSource)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn SystemMediaTransportControls(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SystemMediaTransportControls)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn AudioCategory(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AudioCategory)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetAudioCategory(&self, value: MediaPlayerAudioCategory) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetAudioCategory)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn AudioDeviceType(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AudioDeviceType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetAudioDeviceType(&self, value: MediaPlayerAudioDeviceType) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetAudioDeviceType)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsMutedChanged(&self, value: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveIsMutedChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveIsMutedChanged)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn SourceChanged(&self, value: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveSourceChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveSourceChanged)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn AudioBalance(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AudioBalance)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetAudioBalance(&self, value: f64) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetAudioBalance)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn RealTimePlayback(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RealTimePlayback)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetRealTimePlayback(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRealTimePlayback)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn StereoscopicVideoRenderMode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).StereoscopicVideoRenderMode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetStereoscopicVideoRenderMode(&self, value: StereoscopicVideoRenderMode) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetStereoscopicVideoRenderMode)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn BreakManager(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).BreakManager)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CommandManager(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CommandManager)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4852,7 +4197,7 @@ impl MediaPlayer { #[doc = "Required features: `\"Devices_Enumeration\"`"] #[cfg(feature = "Devices_Enumeration")] pub fn AudioDevice(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AudioDevice)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4864,11 +4209,11 @@ impl MediaPlayer { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn TimelineController(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TimelineController)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4878,46 +4223,46 @@ impl MediaPlayer { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn TimelineControllerPositionOffset(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TimelineControllerPositionOffset)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetTimelineControllerPositionOffset(&self, value: super::super::Foundation::TimeSpan) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetTimelineControllerPositionOffset)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn PlaybackSession(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PlaybackSession)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn StepForwardOneFrame(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StepForwardOneFrame)(::windows_core::Interface::as_raw(this)).ok() } } pub fn StepBackwardOneFrame(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StepBackwardOneFrame)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Media_Casting\"`"] #[cfg(feature = "Media_Casting")] pub fn GetAsCastingSource(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetAsCastingSource)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetSurfaceSize(&self, size: super::super::Foundation::Size) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetSurfaceSize)(::windows_core::Interface::as_raw(this), size).ok() } } #[doc = "Required features: `\"UI_Composition\"`"] @@ -4926,7 +4271,7 @@ impl MediaPlayer { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -4936,97 +4281,97 @@ impl MediaPlayer { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveVideoFrameAvailable(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveVideoFrameAvailable)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn IsVideoFrameServerEnabled(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsVideoFrameServerEnabled)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsVideoFrameServerEnabled(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsVideoFrameServerEnabled)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Graphics_DirectX_Direct3D11\"`"] #[cfg(feature = "Graphics_DirectX_Direct3D11")] pub fn CopyFrameToVideoSurface(&self, destination: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).CopyFrameToVideoSurface)(::windows_core::Interface::as_raw(this), destination.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"Graphics_DirectX_Direct3D11\"`"] #[cfg(feature = "Graphics_DirectX_Direct3D11")] pub fn CopyFrameToVideoSurfaceWithTargetRectangle(&self, destination: P0, targetrectangle: super::super::Foundation::Rect) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).CopyFrameToVideoSurfaceWithTargetRectangle)(::windows_core::Interface::as_raw(this), destination.try_into_param()?.abi(), targetrectangle).ok() } + 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() } } #[doc = "Required features: `\"Graphics_DirectX_Direct3D11\"`"] #[cfg(feature = "Graphics_DirectX_Direct3D11")] pub fn CopyFrameToStereoscopicVideoSurfaces(&self, destinationlefteye: P0, destinationrighteye: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).CopyFrameToStereoscopicVideoSurfaces)(::windows_core::Interface::as_raw(this), destinationlefteye.try_into_param()?.abi(), destinationrighteye.try_into_param()?.abi()).ok() } + 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() } } pub fn SubtitleFrameChanged(&self, handler: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveSubtitleFrameChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveSubtitleFrameChanged)(::windows_core::Interface::as_raw(this), token).ok() } } #[doc = "Required features: `\"Graphics_DirectX_Direct3D11\"`"] #[cfg(feature = "Graphics_DirectX_Direct3D11")] pub fn RenderSubtitlesToSurface(&self, destination: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).RenderSubtitlesToSurface)(::windows_core::Interface::as_raw(this), destination.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Graphics_DirectX_Direct3D11\"`"] #[cfg(feature = "Graphics_DirectX_Direct3D11")] pub fn RenderSubtitlesToSurfaceWithTargetRectangle(&self, destination: P0, targetrectangle: super::super::Foundation::Rect) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), targetrectangle, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).RenderSubtitlesToSurfaceWithTargetRectangle)(::windows_core::Interface::as_raw(this), destination.into_param().abi(), targetrectangle, &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Media_Audio\"`"] #[cfg(feature = "Media_Audio")] pub fn AudioStateMonitor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AudioStateMonitor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5036,28 +4381,28 @@ 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::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).AddAudioEffect)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(activatableclassid), effectoptional, configuration.try_into_param()?.abi()).ok() } + 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() } } pub fn RemoveAllEffects(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveAllEffects)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn AddVideoEffect(&self, activatableclassid: &::windows_core::HSTRING, effectoptional: bool, effectconfiguration: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).AddVideoEffect)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(activatableclassid), effectoptional, effectconfiguration.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"Media_Protection\"`"] #[cfg(feature = "Media_Protection")] pub fn ProtectionManager(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ProtectionManager)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5069,38 +4414,38 @@ impl MediaPlayer { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } #[doc = "Required features: `\"Storage\"`, `\"deprecated\"`"] #[cfg(all(feature = "Storage", feature = "deprecated"))] pub fn SetFileSource(&self, file: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetFileSource)(::windows_core::Interface::as_raw(this), file.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"Storage_Streams\"`, `\"deprecated\"`"] #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] pub fn SetStreamSource(&self, stream: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetStreamSource)(::windows_core::Interface::as_raw(this), stream.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"Media_Core\"`, `\"deprecated\"`"] #[cfg(all(feature = "Media_Core", feature = "deprecated"))] pub fn SetMediaSource(&self, source: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetMediaSource)(::windows_core::Interface::as_raw(this), source.try_into_param()?.abi()).ok() } + 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() } } pub fn Source(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Source)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5108,10 +4453,10 @@ impl MediaPlayer { } pub fn SetSource(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetSource)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } } impl ::windows_core::RuntimeType for MediaPlayer { @@ -5119,20 +4464,17 @@ impl ::windows_core::RuntimeType for MediaPlayer { } unsafe impl ::windows_core::Interface for MediaPlayer { type Vtable = IMediaPlayer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaPlayer { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaPlayer { const NAME: &'static str = "Windows.Media.Playback.MediaPlayer"; } -::windows_core::imp::interface_hierarchy!(MediaPlayer, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for MediaPlayer {} unsafe impl ::core::marker::Send for MediaPlayer {} unsafe impl ::core::marker::Sync for MediaPlayer {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaPlayerDataReceivedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaPlayerDataReceivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaPlayerDataReceivedEventArgs { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -5149,19 +4491,17 @@ impl ::windows_core::RuntimeType for MediaPlayerDataReceivedEventArgs { } unsafe impl ::windows_core::Interface for MediaPlayerDataReceivedEventArgs { type Vtable = IMediaPlayerDataReceivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaPlayerDataReceivedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaPlayerDataReceivedEventArgs { const NAME: &'static str = "Windows.Media.Playback.MediaPlayerDataReceivedEventArgs"; } -::windows_core::imp::interface_hierarchy!(MediaPlayerDataReceivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaPlayerDataReceivedEventArgs {} unsafe impl ::core::marker::Sync for MediaPlayerDataReceivedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaPlayerFailedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaPlayerFailedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaPlayerFailedEventArgs { pub fn Error(&self) -> ::windows_core::Result { let this = self; @@ -5190,19 +4530,17 @@ impl ::windows_core::RuntimeType for MediaPlayerFailedEventArgs { } unsafe impl ::windows_core::Interface for MediaPlayerFailedEventArgs { type Vtable = IMediaPlayerFailedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaPlayerFailedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaPlayerFailedEventArgs { const NAME: &'static str = "Windows.Media.Playback.MediaPlayerFailedEventArgs"; } -::windows_core::imp::interface_hierarchy!(MediaPlayerFailedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaPlayerFailedEventArgs {} unsafe impl ::core::marker::Sync for MediaPlayerFailedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaPlayerRateChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaPlayerRateChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaPlayerRateChangedEventArgs { pub fn NewRate(&self) -> ::windows_core::Result { let this = self; @@ -5217,22 +4555,21 @@ impl ::windows_core::RuntimeType for MediaPlayerRateChangedEventArgs { } unsafe impl ::windows_core::Interface for MediaPlayerRateChangedEventArgs { type Vtable = IMediaPlayerRateChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaPlayerRateChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaPlayerRateChangedEventArgs { const NAME: &'static str = "Windows.Media.Playback.MediaPlayerRateChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(MediaPlayerRateChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaPlayerRateChangedEventArgs {} unsafe impl ::core::marker::Sync for MediaPlayerRateChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaPlayerSurface(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaPlayerSurface, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(MediaPlayerSurface, super::super::Foundation::IClosable); impl MediaPlayerSurface { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"UI_Composition\"`"] @@ -5266,20 +4603,17 @@ impl ::windows_core::RuntimeType for MediaPlayerSurface { } unsafe impl ::windows_core::Interface for MediaPlayerSurface { type Vtable = IMediaPlayerSurface_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaPlayerSurface { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaPlayerSurface { const NAME: &'static str = "Windows.Media.Playback.MediaPlayerSurface"; } -::windows_core::imp::interface_hierarchy!(MediaPlayerSurface, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for MediaPlayerSurface {} unsafe impl ::core::marker::Send for MediaPlayerSurface {} unsafe impl ::core::marker::Sync for MediaPlayerSurface {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PlaybackMediaMarker(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PlaybackMediaMarker, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PlaybackMediaMarker { pub fn Time(&self) -> ::windows_core::Result { let this = self; @@ -5325,19 +4659,17 @@ impl ::windows_core::RuntimeType for PlaybackMediaMarker { } unsafe impl ::windows_core::Interface for PlaybackMediaMarker { type Vtable = IPlaybackMediaMarker_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PlaybackMediaMarker { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PlaybackMediaMarker { const NAME: &'static str = "Windows.Media.Playback.PlaybackMediaMarker"; } -::windows_core::imp::interface_hierarchy!(PlaybackMediaMarker, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PlaybackMediaMarker {} unsafe impl ::core::marker::Sync for PlaybackMediaMarker {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PlaybackMediaMarkerReachedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PlaybackMediaMarkerReachedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PlaybackMediaMarkerReachedEventArgs { pub fn PlaybackMediaMarker(&self) -> ::windows_core::Result { let this = self; @@ -5352,24 +4684,24 @@ impl ::windows_core::RuntimeType for PlaybackMediaMarkerReachedEventArgs { } unsafe impl ::windows_core::Interface for PlaybackMediaMarkerReachedEventArgs { type Vtable = IPlaybackMediaMarkerReachedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PlaybackMediaMarkerReachedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PlaybackMediaMarkerReachedEventArgs { const NAME: &'static str = "Windows.Media.Playback.PlaybackMediaMarkerReachedEventArgs"; } -::windows_core::imp::interface_hierarchy!(PlaybackMediaMarkerReachedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PlaybackMediaMarkerReachedEventArgs {} unsafe impl ::core::marker::Sync for PlaybackMediaMarkerReachedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PlaybackMediaMarkerSequence(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PlaybackMediaMarkerSequence, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(PlaybackMediaMarkerSequence, super::super::Foundation::Collections::IIterable::); impl PlaybackMediaMarkerSequence { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5399,9 +4731,7 @@ impl ::windows_core::RuntimeType for PlaybackMediaMarkerSequence { } unsafe impl ::windows_core::Interface for PlaybackMediaMarkerSequence { type Vtable = IPlaybackMediaMarkerSequence_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PlaybackMediaMarkerSequence { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PlaybackMediaMarkerSequence { const NAME: &'static str = "Windows.Media.Playback.PlaybackMediaMarkerSequence"; @@ -5422,14 +4752,12 @@ impl ::core::iter::IntoIterator for &PlaybackMediaMarkerSequence { self.First().unwrap() } } -::windows_core::imp::interface_hierarchy!(PlaybackMediaMarkerSequence, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for PlaybackMediaMarkerSequence {} unsafe impl ::core::marker::Send for PlaybackMediaMarkerSequence {} unsafe impl ::core::marker::Sync for PlaybackMediaMarkerSequence {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct TimedMetadataPresentationModeChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(TimedMetadataPresentationModeChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl TimedMetadataPresentationModeChangedEventArgs { #[doc = "Required features: `\"Media_Core\"`"] #[cfg(feature = "Media_Core")] @@ -5460,14 +4788,11 @@ impl ::windows_core::RuntimeType for TimedMetadataPresentationModeChangedEventAr } unsafe impl ::windows_core::Interface for TimedMetadataPresentationModeChangedEventArgs { type Vtable = ITimedMetadataPresentationModeChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TimedMetadataPresentationModeChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for TimedMetadataPresentationModeChangedEventArgs { const NAME: &'static str = "Windows.Media.Playback.TimedMetadataPresentationModeChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(TimedMetadataPresentationModeChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for TimedMetadataPresentationModeChangedEventArgs {} unsafe impl ::core::marker::Sync for TimedMetadataPresentationModeChangedEventArgs {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Media/Playlists/mod.rs b/crates/libs/windows/src/Windows/Media/Playlists/mod.rs index 7cac10931d..9157a84672 100644 --- a/crates/libs/windows/src/Windows/Media/Playlists/mod.rs +++ b/crates/libs/windows/src/Windows/Media/Playlists/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlaylist(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPlaylist { - type Vtable = IPlaylist_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPlaylist { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x803736f5_cf44_4d97_83b3_7a089e9ab663); -} +::windows_core::imp::com_interface!(IPlaylist, IPlaylist_Vtbl, 0x803736f5_cf44_4d97_83b3_7a089e9ab663); #[repr(C)] #[doc(hidden)] pub struct IPlaylist_Vtbl { @@ -26,16 +17,7 @@ pub struct IPlaylist_Vtbl { #[cfg(not(feature = "Storage"))] SaveAsWithFormatAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlaylistStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPlaylistStatics { - type Vtable = IPlaylistStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPlaylistStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc5c331cd_81f9_4ff3_95b9_70b6ff046b68); -} +::windows_core::imp::com_interface!(IPlaylistStatics, IPlaylistStatics_Vtbl, 0xc5c331cd_81f9_4ff3_95b9_70b6ff046b68); #[repr(C)] #[doc(hidden)] pub struct IPlaylistStatics_Vtbl { @@ -48,6 +30,7 @@ pub struct IPlaylistStatics_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Playlist(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Playlist, ::windows_core::IUnknown, ::windows_core::IInspectable); impl Playlist { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -76,35 +59,35 @@ 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::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).SaveAsAsync)(::windows_core::Interface::as_raw(this), savelocation.try_into_param()?.abi(), ::core::mem::transmute_copy(desiredname), option, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SaveAsAsync)(::windows_core::Interface::as_raw(this), savelocation.into_param().abi(), ::core::mem::transmute_copy(desiredname), option, &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Storage\"`"] #[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::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).SaveAsWithFormatAsync)(::windows_core::Interface::as_raw(this), savelocation.try_into_param()?.abi(), ::core::mem::transmute_copy(desiredname), option, playlistformat, &mut result__).from_abi(result__) + (::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__).from_abi(result__) } } #[doc = "Required features: `\"Storage\"`"] #[cfg(feature = "Storage")] pub fn LoadAsync(file: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IPlaylistStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).LoadAsync)(::windows_core::Interface::as_raw(this), file.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).LoadAsync)(::windows_core::Interface::as_raw(this), file.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -118,14 +101,11 @@ impl ::windows_core::RuntimeType for Playlist { } unsafe impl ::windows_core::Interface for Playlist { type Vtable = IPlaylist_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Playlist { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Playlist { const NAME: &'static str = "Windows.Media.Playlists.Playlist"; } -::windows_core::imp::interface_hierarchy!(Playlist, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::marker::Copy, ::core::clone::Clone, ::core::default::Default)] pub struct PlaylistFormat(pub i32); diff --git a/crates/libs/windows/src/Windows/Media/Protection/PlayReady/impl.rs b/crates/libs/windows/src/Windows/Media/Protection/PlayReady/impl.rs index 7066cf5e10..8c81d864d3 100644 --- a/crates/libs/windows/src/Windows/Media/Protection/PlayReady/impl.rs +++ b/crates/libs/windows/src/Windows/Media/Protection/PlayReady/impl.rs @@ -55,7 +55,7 @@ impl INDClosedCaptionDataReceivedEventArgs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"deprecated\"`"] @@ -104,7 +104,7 @@ impl INDCustomData_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"deprecated\"`"] @@ -211,7 +211,7 @@ impl INDDownloadEngine_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"deprecated\"`"] @@ -272,7 +272,7 @@ impl INDDownloadEngineNotifier_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"deprecated\"`"] @@ -305,7 +305,7 @@ impl INDLicenseFetchCompletedEventArgs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"deprecated\"`"] @@ -373,7 +373,7 @@ impl INDLicenseFetchDescriptor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"deprecated\"`"] @@ -406,7 +406,7 @@ impl INDLicenseFetchResult_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"deprecated\"`"] @@ -481,7 +481,7 @@ impl INDMessenger_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"deprecated\"`"] @@ -513,7 +513,7 @@ impl INDProximityDetectionCompletedEventArgs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"deprecated\"`"] @@ -580,7 +580,7 @@ impl INDRegistrationCompletedEventArgs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"deprecated\"`"] @@ -611,7 +611,7 @@ impl INDSendResult_Vtbl { Self { base__: ::windows_core::IInspectable_Vtbl::new::(), Response: Response:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Media_Core\"`, `\"deprecated\"`"] @@ -644,7 +644,7 @@ impl INDStartResult_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Storage\"`, `\"deprecated\"`"] @@ -674,7 +674,7 @@ impl INDStorageFileHelper_Vtbl { Self { base__: ::windows_core::IInspectable_Vtbl::new::(), GetFileURLs: GetFileURLs:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Media_Core\"`, `\"deprecated\"`"] @@ -741,7 +741,7 @@ impl INDStreamParser_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Media_Core\"`, `\"deprecated\"`"] @@ -788,7 +788,7 @@ impl INDStreamParserNotifier_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"deprecated\"`"] @@ -959,7 +959,7 @@ impl INDTransmitterProperties_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPlayReadyDomain_Impl: Sized { @@ -1041,7 +1041,7 @@ impl IPlayReadyDomain_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPlayReadyLicense_Impl: Sized { @@ -1148,7 +1148,7 @@ impl IPlayReadyLicense_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPlayReadyLicenseAcquisitionServiceRequest_Impl: Sized + super::IMediaProtectionServiceRequest_Impl + IPlayReadyServiceRequest_Impl { @@ -1204,7 +1204,7 @@ impl IPlayReadyLicenseAcquisitionServiceRequest_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPlayReadyLicenseSession_Impl: Sized { @@ -1240,7 +1240,7 @@ impl IPlayReadyLicenseSession_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -1273,7 +1273,7 @@ impl IPlayReadyLicenseSession2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPlayReadySecureStopServiceRequest_Impl: Sized + super::IMediaProtectionServiceRequest_Impl + IPlayReadyServiceRequest_Impl { @@ -1355,7 +1355,7 @@ impl IPlayReadySecureStopServiceRequest_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPlayReadyServiceRequest_Impl: Sized + super::IMediaProtectionServiceRequest_Impl { @@ -1481,6 +1481,6 @@ impl IPlayReadyServiceRequest_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 a687dfb9a0..b013f877ac 100644 --- a/crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs +++ b/crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs @@ -1,16 +1,10 @@ -#[doc(hidden)] -#[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INDClient(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for INDClient { - type Vtable = INDClient_Vtbl; -} #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for INDClient { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3bd6781b_61b8_46e2_99a5_8abcb6b9f7d6); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + INDClient, + INDClient_Vtbl, + 0x3bd6781b_61b8_46e2_99a5_8abcb6b9f7d6 +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -73,19 +67,13 @@ pub struct INDClient_Vtbl { #[cfg(not(feature = "deprecated"))] Close: usize, } -#[doc(hidden)] -#[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INDClientFactory(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for INDClientFactory { - type Vtable = INDClientFactory_Vtbl; -} #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for INDClientFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3e53dd62_fee8_451f_b0d4_f706cca3e037); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + INDClientFactory, + INDClientFactory_Vtbl, + 0x3e53dd62_fee8_451f_b0d4_f706cca3e037 +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -96,11 +84,15 @@ pub struct INDClientFactory_Vtbl { #[cfg(not(feature = "deprecated"))] CreateInstance: usize, } -#[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INDClosedCaptionDataReceivedEventArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + INDClosedCaptionDataReceivedEventArgs, + INDClosedCaptionDataReceivedEventArgs_Vtbl, + 0x4738d29f_c345_4649_8468_b8c5fc357190 +); +#[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(INDClosedCaptionDataReceivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); #[cfg(feature = "deprecated")] impl INDClosedCaptionDataReceivedEventArgs { #[doc = "Required features: `\"deprecated\"`"] @@ -132,20 +124,10 @@ impl INDClosedCaptionDataReceivedEventArgs { } } #[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(INDClosedCaptionDataReceivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] impl ::windows_core::RuntimeType for INDClosedCaptionDataReceivedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for INDClosedCaptionDataReceivedEventArgs { - type Vtable = INDClosedCaptionDataReceivedEventArgs_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for INDClosedCaptionDataReceivedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4738d29f_c345_4649_8468_b8c5fc357190); -} -#[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] pub struct INDClosedCaptionDataReceivedEventArgs_Vtbl { @@ -163,11 +145,15 @@ pub struct INDClosedCaptionDataReceivedEventArgs_Vtbl { #[cfg(not(feature = "deprecated"))] ClosedCaptionData: usize, } -#[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INDCustomData(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + INDCustomData, + INDCustomData_Vtbl, + 0xf5cb0fdc_2d09_4f19_b5e1_76a0b3ee9267 +); +#[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(INDCustomData, ::windows_core::IUnknown, ::windows_core::IInspectable); #[cfg(feature = "deprecated")] impl INDCustomData { #[doc = "Required features: `\"deprecated\"`"] @@ -190,20 +176,10 @@ impl INDCustomData { } } #[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(INDCustomData, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] impl ::windows_core::RuntimeType for INDCustomData { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for INDCustomData { - type Vtable = INDCustomData_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for INDCustomData { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf5cb0fdc_2d09_4f19_b5e1_76a0b3ee9267); -} -#[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] pub struct INDCustomData_Vtbl { @@ -217,19 +193,13 @@ pub struct INDCustomData_Vtbl { #[cfg(not(feature = "deprecated"))] CustomData: usize, } -#[doc(hidden)] -#[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INDCustomDataFactory(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for INDCustomDataFactory { - type Vtable = INDCustomDataFactory_Vtbl; -} #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for INDCustomDataFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd65405ab_3424_4833_8c9a_af5fdeb22872); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + INDCustomDataFactory, + INDCustomDataFactory_Vtbl, + 0xd65405ab_3424_4833_8c9a_af5fdeb22872 +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -240,11 +210,15 @@ pub struct INDCustomDataFactory_Vtbl { #[cfg(not(feature = "deprecated"))] CreateInstance: usize, } -#[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INDDownloadEngine(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + INDDownloadEngine, + INDDownloadEngine_Vtbl, + 0x2d223d65_c4b6_4438_8d46_b96e6d0fb21f +); +#[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(INDDownloadEngine, ::windows_core::IUnknown, ::windows_core::IInspectable); #[cfg(feature = "deprecated")] impl INDDownloadEngine { #[doc = "Required features: `\"deprecated\"`"] @@ -318,20 +292,10 @@ impl INDDownloadEngine { } } #[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(INDDownloadEngine, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] impl ::windows_core::RuntimeType for INDDownloadEngine { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for INDDownloadEngine { - type Vtable = INDDownloadEngine_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for INDDownloadEngine { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2d223d65_c4b6_4438_8d46_b96e6d0fb21f); -} -#[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] pub struct INDDownloadEngine_Vtbl { @@ -373,11 +337,15 @@ pub struct INDDownloadEngine_Vtbl { #[cfg(not(feature = "deprecated"))] Notifier: usize, } -#[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INDDownloadEngineNotifier(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + INDDownloadEngineNotifier, + INDDownloadEngineNotifier_Vtbl, + 0xd720b4d4_f4b8_4530_a809_9193a571e7fc +); +#[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(INDDownloadEngineNotifier, ::windows_core::IUnknown, ::windows_core::IInspectable); #[cfg(feature = "deprecated")] impl INDDownloadEngineNotifier { #[doc = "Required features: `\"deprecated\"`"] @@ -396,10 +364,10 @@ impl INDDownloadEngineNotifier { #[cfg(feature = "deprecated")] pub fn OnContentIDReceived(&self, licensefetchdescriptor: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).OnContentIDReceived)(::windows_core::Interface::as_raw(this), licensefetchdescriptor.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).OnContentIDReceived)(::windows_core::Interface::as_raw(this), licensefetchdescriptor.into_param().abi()).ok() } } #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] @@ -421,20 +389,10 @@ impl INDDownloadEngineNotifier { } } #[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(INDDownloadEngineNotifier, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] impl ::windows_core::RuntimeType for INDDownloadEngineNotifier { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for INDDownloadEngineNotifier { - type Vtable = INDDownloadEngineNotifier_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for INDDownloadEngineNotifier { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd720b4d4_f4b8_4530_a809_9193a571e7fc); -} -#[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] pub struct INDDownloadEngineNotifier_Vtbl { @@ -464,11 +422,15 @@ pub struct INDDownloadEngineNotifier_Vtbl { #[cfg(not(feature = "deprecated"))] OnNetworkError: usize, } -#[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INDLicenseFetchCompletedEventArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + INDLicenseFetchCompletedEventArgs, + INDLicenseFetchCompletedEventArgs_Vtbl, + 0x1ee30a1a_11b2_4558_8865_e3a516922517 +); +#[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(INDLicenseFetchCompletedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); #[cfg(feature = "deprecated")] impl INDLicenseFetchCompletedEventArgs { #[doc = "Required features: `\"deprecated\"`"] @@ -482,20 +444,10 @@ impl INDLicenseFetchCompletedEventArgs { } } #[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(INDLicenseFetchCompletedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] impl ::windows_core::RuntimeType for INDLicenseFetchCompletedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for INDLicenseFetchCompletedEventArgs { - type Vtable = INDLicenseFetchCompletedEventArgs_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for INDLicenseFetchCompletedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1ee30a1a_11b2_4558_8865_e3a516922517); -} -#[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] pub struct INDLicenseFetchCompletedEventArgs_Vtbl { @@ -505,11 +457,15 @@ pub struct INDLicenseFetchCompletedEventArgs_Vtbl { #[cfg(not(feature = "deprecated"))] ResponseCustomData: usize, } -#[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INDLicenseFetchDescriptor(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + INDLicenseFetchDescriptor, + INDLicenseFetchDescriptor_Vtbl, + 0x5498d33a_e686_4935_a567_7ca77ad20fa4 +); +#[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(INDLicenseFetchDescriptor, ::windows_core::IUnknown, ::windows_core::IInspectable); #[cfg(feature = "deprecated")] impl INDLicenseFetchDescriptor { #[doc = "Required features: `\"deprecated\"`"] @@ -543,27 +499,17 @@ impl INDLicenseFetchDescriptor { #[cfg(feature = "deprecated")] pub fn SetLicenseFetchChallengeCustomData(&self, licensefetchchallengecustomdata: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetLicenseFetchChallengeCustomData)(::windows_core::Interface::as_raw(this), licensefetchchallengecustomdata.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetLicenseFetchChallengeCustomData)(::windows_core::Interface::as_raw(this), licensefetchchallengecustomdata.into_param().abi()).ok() } } } #[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(INDLicenseFetchDescriptor, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] impl ::windows_core::RuntimeType for INDLicenseFetchDescriptor { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for INDLicenseFetchDescriptor { - type Vtable = INDLicenseFetchDescriptor_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for INDLicenseFetchDescriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5498d33a_e686_4935_a567_7ca77ad20fa4); -} -#[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] pub struct INDLicenseFetchDescriptor_Vtbl { @@ -585,19 +531,13 @@ pub struct INDLicenseFetchDescriptor_Vtbl { #[cfg(not(feature = "deprecated"))] SetLicenseFetchChallengeCustomData: usize, } -#[doc(hidden)] -#[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INDLicenseFetchDescriptorFactory(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for INDLicenseFetchDescriptorFactory { - type Vtable = INDLicenseFetchDescriptorFactory_Vtbl; -} #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for INDLicenseFetchDescriptorFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd0031202_cfac_4f00_ae6a_97af80b848f2); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + INDLicenseFetchDescriptorFactory, + INDLicenseFetchDescriptorFactory_Vtbl, + 0xd0031202_cfac_4f00_ae6a_97af80b848f2 +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -608,11 +548,15 @@ pub struct INDLicenseFetchDescriptorFactory_Vtbl { #[cfg(not(feature = "deprecated"))] CreateInstance: usize, } -#[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INDLicenseFetchResult(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + INDLicenseFetchResult, + INDLicenseFetchResult_Vtbl, + 0x21d39698_aa62_45ff_a5ff_8037e5433825 +); +#[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(INDLicenseFetchResult, ::windows_core::IUnknown, ::windows_core::IInspectable); #[cfg(feature = "deprecated")] impl INDLicenseFetchResult { #[doc = "Required features: `\"deprecated\"`"] @@ -626,20 +570,10 @@ impl INDLicenseFetchResult { } } #[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(INDLicenseFetchResult, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] impl ::windows_core::RuntimeType for INDLicenseFetchResult { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for INDLicenseFetchResult { - type Vtable = INDLicenseFetchResult_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for INDLicenseFetchResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x21d39698_aa62_45ff_a5ff_8037e5433825); -} -#[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] pub struct INDLicenseFetchResult_Vtbl { @@ -649,11 +583,15 @@ pub struct INDLicenseFetchResult_Vtbl { #[cfg(not(feature = "deprecated"))] ResponseCustomData: usize, } -#[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INDMessenger(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + INDMessenger, + INDMessenger_Vtbl, + 0xd42df95d_a75b_47bf_8249_bc83820da38a +); +#[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(INDMessenger, ::windows_core::IUnknown, ::windows_core::IInspectable); #[cfg(feature = "deprecated")] impl INDMessenger { #[doc = "Required features: `\"deprecated\"`"] @@ -694,20 +632,10 @@ impl INDMessenger { } } #[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(INDMessenger, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] impl ::windows_core::RuntimeType for INDMessenger { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for INDMessenger { - type Vtable = INDMessenger_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for INDMessenger { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd42df95d_a75b_47bf_8249_bc83820da38a); -} -#[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] pub struct INDMessenger_Vtbl { @@ -729,11 +657,15 @@ pub struct INDMessenger_Vtbl { #[cfg(not(feature = "deprecated"))] SendLicenseFetchRequestAsync: usize, } -#[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INDProximityDetectionCompletedEventArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + INDProximityDetectionCompletedEventArgs, + INDProximityDetectionCompletedEventArgs_Vtbl, + 0x2a706328_da25_4f8c_9eb7_5d0fc3658bca +); +#[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(INDProximityDetectionCompletedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); #[cfg(feature = "deprecated")] impl INDProximityDetectionCompletedEventArgs { #[doc = "Required features: `\"deprecated\"`"] @@ -747,20 +679,10 @@ impl INDProximityDetectionCompletedEventArgs { } } #[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(INDProximityDetectionCompletedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] impl ::windows_core::RuntimeType for INDProximityDetectionCompletedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for INDProximityDetectionCompletedEventArgs { - type Vtable = INDProximityDetectionCompletedEventArgs_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for INDProximityDetectionCompletedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2a706328_da25_4f8c_9eb7_5d0fc3658bca); -} -#[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] pub struct INDProximityDetectionCompletedEventArgs_Vtbl { @@ -770,11 +692,15 @@ pub struct INDProximityDetectionCompletedEventArgs_Vtbl { #[cfg(not(feature = "deprecated"))] ProximityDetectionRetryCount: usize, } -#[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INDRegistrationCompletedEventArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + INDRegistrationCompletedEventArgs, + INDRegistrationCompletedEventArgs_Vtbl, + 0x9e39b64d_ab5b_4905_acdc_787a77c6374d +); +#[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(INDRegistrationCompletedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); #[cfg(feature = "deprecated")] impl INDRegistrationCompletedEventArgs { #[doc = "Required features: `\"deprecated\"`"] @@ -812,20 +738,10 @@ impl INDRegistrationCompletedEventArgs { } } #[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(INDRegistrationCompletedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] impl ::windows_core::RuntimeType for INDRegistrationCompletedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for INDRegistrationCompletedEventArgs { - type Vtable = INDRegistrationCompletedEventArgs_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for INDRegistrationCompletedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9e39b64d_ab5b_4905_acdc_787a77c6374d); -} -#[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] pub struct INDRegistrationCompletedEventArgs_Vtbl { @@ -847,11 +763,15 @@ pub struct INDRegistrationCompletedEventArgs_Vtbl { #[cfg(not(feature = "deprecated"))] SetTransmitterCertificateAccepted: usize, } -#[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INDSendResult(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + INDSendResult, + INDSendResult_Vtbl, + 0xe3685517_a584_479d_90b7_d689c7bf7c80 +); +#[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(INDSendResult, ::windows_core::IUnknown, ::windows_core::IInspectable); #[cfg(feature = "deprecated")] impl INDSendResult { #[doc = "Required features: `\"deprecated\"`"] @@ -865,20 +785,10 @@ impl INDSendResult { } } #[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(INDSendResult, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] impl ::windows_core::RuntimeType for INDSendResult { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for INDSendResult { - type Vtable = INDSendResult_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for INDSendResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe3685517_a584_479d_90b7_d689c7bf7c80); -} -#[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] pub struct INDSendResult_Vtbl { @@ -888,11 +798,15 @@ pub struct INDSendResult_Vtbl { #[cfg(not(feature = "deprecated"))] Response: usize, } -#[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INDStartResult(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + INDStartResult, + INDStartResult_Vtbl, + 0x79f6e96e_f50f_4015_8ba4_c2bc344ebd4e +); +#[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(INDStartResult, ::windows_core::IUnknown, ::windows_core::IInspectable); #[cfg(feature = "deprecated")] impl INDStartResult { #[doc = "Required features: `\"Media_Core\"`, `\"deprecated\"`"] @@ -906,20 +820,10 @@ impl INDStartResult { } } #[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(INDStartResult, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] impl ::windows_core::RuntimeType for INDStartResult { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for INDStartResult { - type Vtable = INDStartResult_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for INDStartResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x79f6e96e_f50f_4015_8ba4_c2bc344ebd4e); -} -#[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] pub struct INDStartResult_Vtbl { @@ -929,41 +833,35 @@ pub struct INDStartResult_Vtbl { #[cfg(not(all(feature = "Media_Core", feature = "deprecated")))] MediaStreamSource: usize, } -#[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INDStorageFileHelper(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + INDStorageFileHelper, + INDStorageFileHelper_Vtbl, + 0xd8f0bef8_91d2_4d47_a3f9_eaff4edb729f +); +#[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(INDStorageFileHelper, ::windows_core::IUnknown, ::windows_core::IInspectable); #[cfg(feature = "deprecated")] impl INDStorageFileHelper { #[doc = "Required features: `\"Foundation_Collections\"`, `\"Storage\"`, `\"deprecated\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Storage", feature = "deprecated"))] pub fn GetFileURLs(&self, file: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).GetFileURLs)(::windows_core::Interface::as_raw(this), file.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).GetFileURLs)(::windows_core::Interface::as_raw(this), file.into_param().abi(), &mut result__).from_abi(result__) } } } #[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(INDStorageFileHelper, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] impl ::windows_core::RuntimeType for INDStorageFileHelper { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for INDStorageFileHelper { - type Vtable = INDStorageFileHelper_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for INDStorageFileHelper { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd8f0bef8_91d2_4d47_a3f9_eaff4edb729f); -} -#[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] pub struct INDStorageFileHelper_Vtbl { @@ -973,11 +871,15 @@ pub struct INDStorageFileHelper_Vtbl { #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage", feature = "deprecated")))] GetFileURLs: usize, } -#[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INDStreamParser(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + INDStreamParser, + INDStreamParser_Vtbl, + 0xe0baa198_9796_41c9_8695_59437e67e66a +); +#[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(INDStreamParser, ::windows_core::IUnknown, ::windows_core::IInspectable); #[cfg(feature = "deprecated")] impl INDStreamParser { #[doc = "Required features: `\"deprecated\"`"] @@ -990,12 +892,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::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).GetStreamInformation)(::windows_core::Interface::as_raw(this), descriptor.try_into_param()?.abi(), streamtype, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).GetStreamInformation)(::windows_core::Interface::as_raw(this), descriptor.into_param().abi(), streamtype, &mut result__).from_abi(result__) } } #[doc = "Required features: `\"deprecated\"`"] @@ -1021,20 +923,10 @@ impl INDStreamParser { } } #[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(INDStreamParser, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] impl ::windows_core::RuntimeType for INDStreamParser { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for INDStreamParser { - type Vtable = INDStreamParser_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for INDStreamParser { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe0baa198_9796_41c9_8695_59437e67e66a); -} -#[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] pub struct INDStreamParser_Vtbl { @@ -1060,31 +952,35 @@ pub struct INDStreamParser_Vtbl { #[cfg(not(feature = "deprecated"))] Notifier: usize, } -#[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INDStreamParserNotifier(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + INDStreamParserNotifier, + INDStreamParserNotifier_Vtbl, + 0xc167acd0_2ce6_426c_ace5_5e9275fea715 +); +#[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(INDStreamParserNotifier, ::windows_core::IUnknown, ::windows_core::IInspectable); #[cfg(feature = "deprecated")] impl INDStreamParserNotifier { #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] pub fn OnContentIDReceived(&self, licensefetchdescriptor: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).OnContentIDReceived)(::windows_core::Interface::as_raw(this), licensefetchdescriptor.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).OnContentIDReceived)(::windows_core::Interface::as_raw(this), licensefetchdescriptor.into_param().abi()).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Media_Core\"`, `\"deprecated\"`"] #[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::TryIntoParam>, - P1: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, + P1: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).OnMediaStreamDescriptorCreated)(::windows_core::Interface::as_raw(this), audiostreamdescriptors.try_into_param()?.abi(), videostreamdescriptors.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).OnMediaStreamDescriptorCreated)(::windows_core::Interface::as_raw(this), audiostreamdescriptors.into_param().abi(), videostreamdescriptors.into_param().abi()).ok() } } #[doc = "Required features: `\"Media_Core\"`, `\"deprecated\"`"] #[cfg(all(feature = "Media_Core", feature = "deprecated"))] @@ -1099,27 +995,17 @@ impl INDStreamParserNotifier { #[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::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).OnBeginSetupDecryptor)(::windows_core::Interface::as_raw(this), descriptor.try_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.into_param().abi(), keyid, probytes.len().try_into().unwrap(), probytes.as_ptr()).ok() } } } #[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(INDStreamParserNotifier, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] impl ::windows_core::RuntimeType for INDStreamParserNotifier { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for INDStreamParserNotifier { - type Vtable = INDStreamParserNotifier_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for INDStreamParserNotifier { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc167acd0_2ce6_426c_ace5_5e9275fea715); -} -#[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] pub struct INDStreamParserNotifier_Vtbl { @@ -1141,19 +1027,13 @@ pub struct INDStreamParserNotifier_Vtbl { #[cfg(not(all(feature = "Media_Core", feature = "deprecated")))] OnBeginSetupDecryptor: usize, } -#[doc(hidden)] -#[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INDTCPMessengerFactory(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for INDTCPMessengerFactory { - type Vtable = INDTCPMessengerFactory_Vtbl; -} #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for INDTCPMessengerFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7dd85cfe_1b99_4f68_8f82_8177f7cedf2b); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + INDTCPMessengerFactory, + INDTCPMessengerFactory_Vtbl, + 0x7dd85cfe_1b99_4f68_8f82_8177f7cedf2b +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -1164,11 +1044,15 @@ pub struct INDTCPMessengerFactory_Vtbl { #[cfg(not(feature = "deprecated"))] CreateInstance: usize, } -#[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INDTransmitterProperties(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + INDTransmitterProperties, + INDTransmitterProperties_Vtbl, + 0xe536af23_ac4f_4adc_8c66_4ff7c2702dd6 +); +#[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(INDTransmitterProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); #[cfg(feature = "deprecated")] impl INDTransmitterProperties { #[doc = "Required features: `\"deprecated\"`"] @@ -1272,20 +1156,10 @@ impl INDTransmitterProperties { } } #[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(INDTransmitterProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] impl ::windows_core::RuntimeType for INDTransmitterProperties { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for INDTransmitterProperties { - type Vtable = INDTransmitterProperties_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for INDTransmitterProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe536af23_ac4f_4adc_8c66_4ff7c2702dd6); -} -#[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] pub struct INDTransmitterProperties_Vtbl { @@ -1335,16 +1209,7 @@ pub struct INDTransmitterProperties_Vtbl { #[cfg(not(feature = "deprecated"))] ModelNumber: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlayReadyContentHeader(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPlayReadyContentHeader { - type Vtable = IPlayReadyContentHeader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPlayReadyContentHeader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9a438a6a_7f4c_452e_88bd_0148c6387a2c); -} +::windows_core::imp::com_interface!(IPlayReadyContentHeader, IPlayReadyContentHeader_Vtbl, 0x9a438a6a_7f4c_452e_88bd_0148c6387a2c); #[repr(C)] #[doc(hidden)] pub struct IPlayReadyContentHeader_Vtbl { @@ -1360,16 +1225,7 @@ pub struct IPlayReadyContentHeader_Vtbl { pub GetSerializedHeader: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result_size__: *mut u32, result__: *mut *mut u8) -> ::windows_core::HRESULT, pub HeaderWithEmbeddedUpdates: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlayReadyContentHeader2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPlayReadyContentHeader2 { - type Vtable = IPlayReadyContentHeader2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPlayReadyContentHeader2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x359c79f4_2180_498c_965b_e754d875eab2); -} +::windows_core::imp::com_interface!(IPlayReadyContentHeader2, IPlayReadyContentHeader2_Vtbl, 0x359c79f4_2180_498c_965b_e754d875eab2); #[repr(C)] #[doc(hidden)] pub struct IPlayReadyContentHeader2_Vtbl { @@ -1377,16 +1233,7 @@ pub struct IPlayReadyContentHeader2_Vtbl { pub KeyIds: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result_size__: *mut u32, result__: *mut *mut ::windows_core::GUID) -> ::windows_core::HRESULT, pub KeyIdStrings: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result_size__: *mut u32, result__: *mut *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlayReadyContentHeaderFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPlayReadyContentHeaderFactory { - type Vtable = IPlayReadyContentHeaderFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPlayReadyContentHeaderFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcb97c8ff_b758_4776_bf01_217a8b510b2c); -} +::windows_core::imp::com_interface!(IPlayReadyContentHeaderFactory, IPlayReadyContentHeaderFactory_Vtbl, 0xcb97c8ff_b758_4776_bf01_217a8b510b2c); #[repr(C)] #[doc(hidden)] pub struct IPlayReadyContentHeaderFactory_Vtbl { @@ -1395,41 +1242,22 @@ pub struct IPlayReadyContentHeaderFactory_Vtbl { pub CreateInstanceFromComponents: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, contentkeyid: ::windows_core::GUID, contentkeyidstring: ::std::mem::MaybeUninit<::windows_core::HSTRING>, contentencryptionalgorithm: PlayReadyEncryptionAlgorithm, licenseacquisitionurl: *mut ::core::ffi::c_void, licenseacquisitionuserinterfaceurl: *mut ::core::ffi::c_void, customattributes: ::std::mem::MaybeUninit<::windows_core::HSTRING>, domainserviceid: ::windows_core::GUID, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateInstanceFromPlayReadyHeader: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, headerBytes_array_size: u32, headerbytes: *const u8, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlayReadyContentHeaderFactory2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPlayReadyContentHeaderFactory2 { - type Vtable = IPlayReadyContentHeaderFactory2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPlayReadyContentHeaderFactory2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd1239cf5_ae6d_4778_97fd_6e3a2eeadbeb); -} +::windows_core::imp::com_interface!(IPlayReadyContentHeaderFactory2, IPlayReadyContentHeaderFactory2_Vtbl, 0xd1239cf5_ae6d_4778_97fd_6e3a2eeadbeb); #[repr(C)] #[doc(hidden)] pub struct IPlayReadyContentHeaderFactory2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateInstanceFromComponents2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwflags: u32, contentKeyIds_array_size: u32, contentkeyids: *const ::windows_core::GUID, contentKeyIdStrings_array_size: u32, contentkeyidstrings: *const ::std::mem::MaybeUninit<::windows_core::HSTRING>, contentencryptionalgorithm: PlayReadyEncryptionAlgorithm, licenseacquisitionurl: *mut ::core::ffi::c_void, licenseacquisitionuserinterfaceurl: *mut ::core::ffi::c_void, customattributes: ::std::mem::MaybeUninit<::windows_core::HSTRING>, domainserviceid: ::windows_core::GUID, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlayReadyContentResolver(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPlayReadyContentResolver { - type Vtable = IPlayReadyContentResolver_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPlayReadyContentResolver { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfbfd2523_906d_4982_a6b8_6849565a7ce8); -} +::windows_core::imp::com_interface!(IPlayReadyContentResolver, IPlayReadyContentResolver_Vtbl, 0xfbfd2523_906d_4982_a6b8_6849565a7ce8); #[repr(C)] #[doc(hidden)] pub struct IPlayReadyContentResolver_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ServiceRequest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, contentheader: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlayReadyDomain(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPlayReadyDomain, IPlayReadyDomain_Vtbl, 0xadcc93ac_97e6_43ef_95e4_d7868f3b16a9); +::windows_core::imp::interface_hierarchy!(IPlayReadyDomain, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IPlayReadyDomain { pub fn AccountId(&self) -> ::windows_core::Result<::windows_core::GUID> { let this = self; @@ -1467,16 +1295,9 @@ impl IPlayReadyDomain { } } } -::windows_core::imp::interface_hierarchy!(IPlayReadyDomain, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IPlayReadyDomain { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IPlayReadyDomain { - type Vtable = IPlayReadyDomain_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPlayReadyDomain { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xadcc93ac_97e6_43ef_95e4_d7868f3b16a9); -} #[repr(C)] #[doc(hidden)] pub struct IPlayReadyDomain_Vtbl { @@ -1487,16 +1308,7 @@ pub struct IPlayReadyDomain_Vtbl { pub FriendlyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub DomainJoinUrl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlayReadyDomainIterableFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPlayReadyDomainIterableFactory { - type Vtable = IPlayReadyDomainIterableFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPlayReadyDomainIterableFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4df384ee_3121_4df3_a5e8_d0c24c0500fc); -} +::windows_core::imp::com_interface!(IPlayReadyDomainIterableFactory, IPlayReadyDomainIterableFactory_Vtbl, 0x4df384ee_3121_4df3_a5e8_d0c24c0500fc); #[repr(C)] #[doc(hidden)] pub struct IPlayReadyDomainIterableFactory_Vtbl { @@ -1506,16 +1318,7 @@ pub struct IPlayReadyDomainIterableFactory_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] CreateInstance: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlayReadyDomainJoinServiceRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPlayReadyDomainJoinServiceRequest { - type Vtable = IPlayReadyDomainJoinServiceRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPlayReadyDomainJoinServiceRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x171b4a5a_405f_4739_b040_67b9f0c38758); -} +::windows_core::imp::com_interface!(IPlayReadyDomainJoinServiceRequest, IPlayReadyDomainJoinServiceRequest_Vtbl, 0x171b4a5a_405f_4739_b040_67b9f0c38758); #[repr(C)] #[doc(hidden)] pub struct IPlayReadyDomainJoinServiceRequest_Vtbl { @@ -1527,16 +1330,7 @@ pub struct IPlayReadyDomainJoinServiceRequest_Vtbl { pub DomainServiceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, pub SetDomainServiceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlayReadyDomainLeaveServiceRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPlayReadyDomainLeaveServiceRequest { - type Vtable = IPlayReadyDomainLeaveServiceRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPlayReadyDomainLeaveServiceRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x062d58be_97ad_4917_aa03_46d4c252d464); -} +::windows_core::imp::com_interface!(IPlayReadyDomainLeaveServiceRequest, IPlayReadyDomainLeaveServiceRequest_Vtbl, 0x062d58be_97ad_4917_aa03_46d4c252d464); #[repr(C)] #[doc(hidden)] pub struct IPlayReadyDomainLeaveServiceRequest_Vtbl { @@ -1546,16 +1340,7 @@ pub struct IPlayReadyDomainLeaveServiceRequest_Vtbl { pub DomainServiceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, pub SetDomainServiceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlayReadyITADataGenerator(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPlayReadyITADataGenerator { - type Vtable = IPlayReadyITADataGenerator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPlayReadyITADataGenerator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x24446b8e_10b9_4530_b25b_901a8029a9b2); -} +::windows_core::imp::com_interface!(IPlayReadyITADataGenerator, IPlayReadyITADataGenerator_Vtbl, 0x24446b8e_10b9_4530_b25b_901a8029a9b2); #[repr(C)] #[doc(hidden)] pub struct IPlayReadyITADataGenerator_Vtbl { @@ -1565,24 +1350,14 @@ pub struct IPlayReadyITADataGenerator_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GenerateData: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlayReadyIndividualizationServiceRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPlayReadyIndividualizationServiceRequest { - type Vtable = IPlayReadyIndividualizationServiceRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPlayReadyIndividualizationServiceRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x21f5a86b_008c_4611_ab2f_aaa6c69f0e24); -} +::windows_core::imp::com_interface!(IPlayReadyIndividualizationServiceRequest, IPlayReadyIndividualizationServiceRequest_Vtbl, 0x21f5a86b_008c_4611_ab2f_aaa6c69f0e24); #[repr(C)] #[doc(hidden)] pub struct IPlayReadyIndividualizationServiceRequest_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlayReadyLicense(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPlayReadyLicense, IPlayReadyLicense_Vtbl, 0xee474c4e_fa3c_414d_a9f2_3ffc1ef832d4); +::windows_core::imp::interface_hierarchy!(IPlayReadyLicense, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IPlayReadyLicense { pub fn FullyEvaluated(&self) -> ::windows_core::Result { let this = self; @@ -1634,16 +1409,9 @@ impl IPlayReadyLicense { } } } -::windows_core::imp::interface_hierarchy!(IPlayReadyLicense, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IPlayReadyLicense { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IPlayReadyLicense { - type Vtable = IPlayReadyLicense_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPlayReadyLicense { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xee474c4e_fa3c_414d_a9f2_3ffc1ef832d4); -} #[repr(C)] #[doc(hidden)] pub struct IPlayReadyLicense_Vtbl { @@ -1651,21 +1419,12 @@ pub struct IPlayReadyLicense_Vtbl { pub FullyEvaluated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub UsableForPlay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub ExpirationDate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, - pub ExpireAfterFirstPlay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, - pub DomainAccountID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, - pub ChainDepth: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, - pub GetKIDAtChainDepth: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, chaindepth: u32, result__: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlayReadyLicense2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPlayReadyLicense2 { - type Vtable = IPlayReadyLicense2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPlayReadyLicense2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x30f4e7a7_d8e3_48a0_bcda_ff9f40530436); + pub ExpireAfterFirstPlay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, + pub DomainAccountID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, + pub ChainDepth: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, + pub GetKIDAtChainDepth: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, chaindepth: u32, result__: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, } +::windows_core::imp::com_interface!(IPlayReadyLicense2, IPlayReadyLicense2_Vtbl, 0x30f4e7a7_d8e3_48a0_bcda_ff9f40530436); #[repr(C)] #[doc(hidden)] pub struct IPlayReadyLicense2_Vtbl { @@ -1675,9 +1434,9 @@ pub struct IPlayReadyLicense2_Vtbl { pub InMemoryOnly: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub ExpiresInRealTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlayReadyLicenseAcquisitionServiceRequest(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPlayReadyLicenseAcquisitionServiceRequest, IPlayReadyLicenseAcquisitionServiceRequest_Vtbl, 0x5d85ff45_3e9f_4f48_93e1_9530c8d58c3e); +::windows_core::imp::interface_hierarchy!(IPlayReadyLicenseAcquisitionServiceRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IPlayReadyLicenseAcquisitionServiceRequest, super::IMediaProtectionServiceRequest, IPlayReadyServiceRequest); impl IPlayReadyLicenseAcquisitionServiceRequest { pub fn ContentHeader(&self) -> ::windows_core::Result { let this = self; @@ -1705,21 +1464,21 @@ impl IPlayReadyLicenseAcquisitionServiceRequest { unsafe { (::windows_core::Interface::vtable(this).SetDomainServiceId)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn ProtectionSystem(&self) -> ::windows_core::Result<::windows_core::GUID> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ProtectionSystem)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Type(&self) -> ::windows_core::Result<::windows_core::GUID> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Type)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Uri(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Uri)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1729,68 +1488,59 @@ impl IPlayReadyLicenseAcquisitionServiceRequest { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn ResponseCustomData(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ResponseCustomData)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ChallengeCustomData(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ChallengeCustomData)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetChallengeCustomData(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetChallengeCustomData)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn BeginServiceRequest(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).BeginServiceRequest)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn NextServiceRequest(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NextServiceRequest)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GenerateManualEnablingChallenge(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GenerateManualEnablingChallenge)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ProcessManualEnablingResponse(&self, responsebytes: &[u8]) -> ::windows_core::Result<::windows_core::HRESULT> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ProcessManualEnablingResponse)(::windows_core::Interface::as_raw(this), responsebytes.len().try_into().unwrap(), responsebytes.as_ptr(), &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(IPlayReadyLicenseAcquisitionServiceRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IPlayReadyLicenseAcquisitionServiceRequest {} -impl ::windows_core::CanTryInto for IPlayReadyLicenseAcquisitionServiceRequest {} impl ::windows_core::RuntimeType for IPlayReadyLicenseAcquisitionServiceRequest { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IPlayReadyLicenseAcquisitionServiceRequest { - type Vtable = IPlayReadyLicenseAcquisitionServiceRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPlayReadyLicenseAcquisitionServiceRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5d85ff45_3e9f_4f48_93e1_9530c8d58c3e); -} #[repr(C)] #[doc(hidden)] pub struct IPlayReadyLicenseAcquisitionServiceRequest_Vtbl { @@ -1800,32 +1550,14 @@ pub struct IPlayReadyLicenseAcquisitionServiceRequest_Vtbl { pub DomainServiceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, pub SetDomainServiceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlayReadyLicenseAcquisitionServiceRequest2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPlayReadyLicenseAcquisitionServiceRequest2 { - type Vtable = IPlayReadyLicenseAcquisitionServiceRequest2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPlayReadyLicenseAcquisitionServiceRequest2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb7fa5eb5_fe0c_b225_bc60_5a9edd32ceb5); -} +::windows_core::imp::com_interface!(IPlayReadyLicenseAcquisitionServiceRequest2, IPlayReadyLicenseAcquisitionServiceRequest2_Vtbl, 0xb7fa5eb5_fe0c_b225_bc60_5a9edd32ceb5); #[repr(C)] #[doc(hidden)] pub struct IPlayReadyLicenseAcquisitionServiceRequest2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub SessionId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlayReadyLicenseAcquisitionServiceRequest3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPlayReadyLicenseAcquisitionServiceRequest3 { - type Vtable = IPlayReadyLicenseAcquisitionServiceRequest3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPlayReadyLicenseAcquisitionServiceRequest3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x394e5f4d_7f75_430d_b2e7_7f75f34b2d75); -} +::windows_core::imp::com_interface!(IPlayReadyLicenseAcquisitionServiceRequest3, IPlayReadyLicenseAcquisitionServiceRequest3_Vtbl, 0x394e5f4d_7f75_430d_b2e7_7f75f34b2d75); #[repr(C)] #[doc(hidden)] pub struct IPlayReadyLicenseAcquisitionServiceRequest3_Vtbl { @@ -1835,16 +1567,7 @@ pub struct IPlayReadyLicenseAcquisitionServiceRequest3_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] CreateLicenseIterable: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlayReadyLicenseIterableFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPlayReadyLicenseIterableFactory { - type Vtable = IPlayReadyLicenseIterableFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPlayReadyLicenseIterableFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd4179f08_0837_4978_8e68_be4293c8d7a6); -} +::windows_core::imp::com_interface!(IPlayReadyLicenseIterableFactory, IPlayReadyLicenseIterableFactory_Vtbl, 0xd4179f08_0837_4978_8e68_be4293c8d7a6); #[repr(C)] #[doc(hidden)] pub struct IPlayReadyLicenseIterableFactory_Vtbl { @@ -1854,25 +1577,15 @@ pub struct IPlayReadyLicenseIterableFactory_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] CreateInstance: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlayReadyLicenseManagement(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPlayReadyLicenseManagement { - type Vtable = IPlayReadyLicenseManagement_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPlayReadyLicenseManagement { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaaeb2141_0957_4405_b892_8bf3ec5dadd9); -} +::windows_core::imp::com_interface!(IPlayReadyLicenseManagement, IPlayReadyLicenseManagement_Vtbl, 0xaaeb2141_0957_4405_b892_8bf3ec5dadd9); #[repr(C)] #[doc(hidden)] pub struct IPlayReadyLicenseManagement_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub DeleteLicenses: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, contentheader: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlayReadyLicenseSession(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPlayReadyLicenseSession, IPlayReadyLicenseSession_Vtbl, 0xa1723a39_87fa_4fdd_abbb_a9720e845259); +::windows_core::imp::interface_hierarchy!(IPlayReadyLicenseSession, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IPlayReadyLicenseSession { pub fn CreateLAServiceRequest(&self) -> ::windows_core::Result { let this = self; @@ -1889,16 +1602,9 @@ impl IPlayReadyLicenseSession { unsafe { (::windows_core::Interface::vtable(this).ConfigureMediaProtectionManager)(::windows_core::Interface::as_raw(this), mpm.into_param().abi()).ok() } } } -::windows_core::imp::interface_hierarchy!(IPlayReadyLicenseSession, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IPlayReadyLicenseSession { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IPlayReadyLicenseSession { - type Vtable = IPlayReadyLicenseSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPlayReadyLicenseSession { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa1723a39_87fa_4fdd_abbb_a9720e845259); -} #[repr(C)] #[doc(hidden)] pub struct IPlayReadyLicenseSession_Vtbl { @@ -1906,9 +1612,9 @@ pub struct IPlayReadyLicenseSession_Vtbl { pub CreateLAServiceRequest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ConfigureMediaProtectionManager: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mpm: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlayReadyLicenseSession2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPlayReadyLicenseSession2, IPlayReadyLicenseSession2_Vtbl, 0x4909be3a_3aed_4656_8ad7_ee0fd7799510); +::windows_core::imp::interface_hierarchy!(IPlayReadyLicenseSession2, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IPlayReadyLicenseSession2, IPlayReadyLicenseSession); impl IPlayReadyLicenseSession2 { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -1923,7 +1629,7 @@ impl IPlayReadyLicenseSession2 { } } pub fn CreateLAServiceRequest(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateLAServiceRequest)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1933,21 +1639,13 @@ impl IPlayReadyLicenseSession2 { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } } -::windows_core::imp::interface_hierarchy!(IPlayReadyLicenseSession2, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IPlayReadyLicenseSession2 {} impl ::windows_core::RuntimeType for IPlayReadyLicenseSession2 { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IPlayReadyLicenseSession2 { - type Vtable = IPlayReadyLicenseSession2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPlayReadyLicenseSession2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4909be3a_3aed_4656_8ad7_ee0fd7799510); -} #[repr(C)] #[doc(hidden)] pub struct IPlayReadyLicenseSession2_Vtbl { @@ -1957,16 +1655,7 @@ pub struct IPlayReadyLicenseSession2_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] CreateLicenseIterable: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlayReadyLicenseSessionFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPlayReadyLicenseSessionFactory { - type Vtable = IPlayReadyLicenseSessionFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPlayReadyLicenseSessionFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x62492699_6527_429e_98be_48d798ac2739); -} +::windows_core::imp::com_interface!(IPlayReadyLicenseSessionFactory, IPlayReadyLicenseSessionFactory_Vtbl, 0x62492699_6527_429e_98be_48d798ac2739); #[repr(C)] #[doc(hidden)] pub struct IPlayReadyLicenseSessionFactory_Vtbl { @@ -1976,16 +1665,7 @@ pub struct IPlayReadyLicenseSessionFactory_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] CreateInstance: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlayReadyMeteringReportServiceRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPlayReadyMeteringReportServiceRequest { - type Vtable = IPlayReadyMeteringReportServiceRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPlayReadyMeteringReportServiceRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc12b231c_0ecd_4f11_a185_1e24a4a67fb7); -} +::windows_core::imp::com_interface!(IPlayReadyMeteringReportServiceRequest, IPlayReadyMeteringReportServiceRequest_Vtbl, 0xc12b231c_0ecd_4f11_a185_1e24a4a67fb7); #[repr(C)] #[doc(hidden)] pub struct IPlayReadyMeteringReportServiceRequest_Vtbl { @@ -1993,31 +1673,13 @@ pub struct IPlayReadyMeteringReportServiceRequest_Vtbl { pub MeteringCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result_size__: *mut u32, result__: *mut *mut u8) -> ::windows_core::HRESULT, pub SetMeteringCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, meteringCertBytes_array_size: u32, meteringcertbytes: *const u8) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlayReadyRevocationServiceRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPlayReadyRevocationServiceRequest { - type Vtable = IPlayReadyRevocationServiceRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPlayReadyRevocationServiceRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x543d66ac_faf0_4560_84a5_0e4acec939e4); -} +::windows_core::imp::com_interface!(IPlayReadyRevocationServiceRequest, IPlayReadyRevocationServiceRequest_Vtbl, 0x543d66ac_faf0_4560_84a5_0e4acec939e4); #[repr(C)] #[doc(hidden)] pub struct IPlayReadyRevocationServiceRequest_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlayReadySecureStopIterableFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPlayReadySecureStopIterableFactory { - type Vtable = IPlayReadySecureStopIterableFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPlayReadySecureStopIterableFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5f1f0165_4214_4d9e_81eb_e89f9d294aee); -} +::windows_core::imp::com_interface!(IPlayReadySecureStopIterableFactory, IPlayReadySecureStopIterableFactory_Vtbl, 0x5f1f0165_4214_4d9e_81eb_e89f9d294aee); #[repr(C)] #[doc(hidden)] pub struct IPlayReadySecureStopIterableFactory_Vtbl { @@ -2027,9 +1689,9 @@ pub struct IPlayReadySecureStopIterableFactory_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] CreateInstance: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlayReadySecureStopServiceRequest(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPlayReadySecureStopServiceRequest, IPlayReadySecureStopServiceRequest_Vtbl, 0xb5501ee5_01bf_4401_9677_05630a6a4cc8); +::windows_core::imp::interface_hierarchy!(IPlayReadySecureStopServiceRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IPlayReadySecureStopServiceRequest, super::IMediaProtectionServiceRequest, IPlayReadyServiceRequest); impl IPlayReadySecureStopServiceRequest { pub fn SessionID(&self) -> ::windows_core::Result<::windows_core::GUID> { let this = self; @@ -2067,21 +1729,21 @@ impl IPlayReadySecureStopServiceRequest { } } pub fn ProtectionSystem(&self) -> ::windows_core::Result<::windows_core::GUID> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ProtectionSystem)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Type(&self) -> ::windows_core::Result<::windows_core::GUID> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Type)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Uri(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Uri)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2091,68 +1753,59 @@ impl IPlayReadySecureStopServiceRequest { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn ResponseCustomData(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ResponseCustomData)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ChallengeCustomData(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ChallengeCustomData)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetChallengeCustomData(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetChallengeCustomData)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn BeginServiceRequest(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).BeginServiceRequest)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn NextServiceRequest(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NextServiceRequest)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GenerateManualEnablingChallenge(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GenerateManualEnablingChallenge)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ProcessManualEnablingResponse(&self, responsebytes: &[u8]) -> ::windows_core::Result<::windows_core::HRESULT> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ProcessManualEnablingResponse)(::windows_core::Interface::as_raw(this), responsebytes.len().try_into().unwrap(), responsebytes.as_ptr(), &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(IPlayReadySecureStopServiceRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IPlayReadySecureStopServiceRequest {} -impl ::windows_core::CanTryInto for IPlayReadySecureStopServiceRequest {} impl ::windows_core::RuntimeType for IPlayReadySecureStopServiceRequest { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IPlayReadySecureStopServiceRequest { - type Vtable = IPlayReadySecureStopServiceRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPlayReadySecureStopServiceRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb5501ee5_01bf_4401_9677_05630a6a4cc8); -} #[repr(C)] #[doc(hidden)] pub struct IPlayReadySecureStopServiceRequest_Vtbl { @@ -2163,16 +1816,7 @@ pub struct IPlayReadySecureStopServiceRequest_Vtbl { pub Stopped: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub PublisherCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result_size__: *mut u32, result__: *mut *mut u8) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlayReadySecureStopServiceRequestFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPlayReadySecureStopServiceRequestFactory { - type Vtable = IPlayReadySecureStopServiceRequestFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPlayReadySecureStopServiceRequestFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0e448ac9_e67e_494e_9f49_6285438c76cf); -} +::windows_core::imp::com_interface!(IPlayReadySecureStopServiceRequestFactory, IPlayReadySecureStopServiceRequestFactory_Vtbl, 0x0e448ac9_e67e_494e_9f49_6285438c76cf); #[repr(C)] #[doc(hidden)] pub struct IPlayReadySecureStopServiceRequestFactory_Vtbl { @@ -2180,9 +1824,9 @@ pub struct IPlayReadySecureStopServiceRequestFactory_Vtbl { pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, publisherCertBytes_array_size: u32, publishercertbytes: *const u8, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateInstanceFromSessionID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sessionid: ::windows_core::GUID, publisherCertBytes_array_size: u32, publishercertbytes: *const u8, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlayReadyServiceRequest(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPlayReadyServiceRequest, IPlayReadyServiceRequest_Vtbl, 0x8bad2836_a703_45a6_a180_76f3565aa725); +::windows_core::imp::interface_hierarchy!(IPlayReadyServiceRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IPlayReadyServiceRequest, super::IMediaProtectionServiceRequest); impl IPlayReadyServiceRequest { pub fn Uri(&self) -> ::windows_core::Result { let this = self; @@ -2245,31 +1889,23 @@ impl IPlayReadyServiceRequest { } } pub fn ProtectionSystem(&self) -> ::windows_core::Result<::windows_core::GUID> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ProtectionSystem)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Type(&self) -> ::windows_core::Result<::windows_core::GUID> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Type)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(IPlayReadyServiceRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IPlayReadyServiceRequest {} impl ::windows_core::RuntimeType for IPlayReadyServiceRequest { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IPlayReadyServiceRequest { - type Vtable = IPlayReadyServiceRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPlayReadyServiceRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8bad2836_a703_45a6_a180_76f3565aa725); -} #[repr(C)] #[doc(hidden)] pub struct IPlayReadyServiceRequest_Vtbl { @@ -2284,16 +1920,7 @@ pub struct IPlayReadyServiceRequest_Vtbl { pub GenerateManualEnablingChallenge: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ProcessManualEnablingResponse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, responseBytes_array_size: u32, responsebytes: *const u8, result__: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlayReadySoapMessage(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPlayReadySoapMessage { - type Vtable = IPlayReadySoapMessage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPlayReadySoapMessage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb659fcb5_ce41_41ba_8a0d_61df5fffa139); -} +::windows_core::imp::com_interface!(IPlayReadySoapMessage, IPlayReadySoapMessage_Vtbl, 0xb659fcb5_ce41_41ba_8a0d_61df5fffa139); #[repr(C)] #[doc(hidden)] pub struct IPlayReadySoapMessage_Vtbl { @@ -2305,16 +1932,7 @@ pub struct IPlayReadySoapMessage_Vtbl { MessageHeaders: usize, pub Uri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlayReadyStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPlayReadyStatics { - type Vtable = IPlayReadyStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPlayReadyStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5e69c00d_247c_469a_8f31_5c1a1571d9c6); -} +::windows_core::imp::com_interface!(IPlayReadyStatics, IPlayReadyStatics_Vtbl, 0x5e69c00d_247c_469a_8f31_5c1a1571d9c6); #[repr(C)] #[doc(hidden)] pub struct IPlayReadyStatics_Vtbl { @@ -2328,32 +1946,14 @@ pub struct IPlayReadyStatics_Vtbl { pub MediaProtectionSystemId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, pub PlayReadySecurityVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlayReadyStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPlayReadyStatics2 { - type Vtable = IPlayReadyStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPlayReadyStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1f8d6a92_5f9a_423e_9466_b33969af7a3d); -} +::windows_core::imp::com_interface!(IPlayReadyStatics2, IPlayReadyStatics2_Vtbl, 0x1f8d6a92_5f9a_423e_9466_b33969af7a3d); #[repr(C)] #[doc(hidden)] pub struct IPlayReadyStatics2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub PlayReadyCertificateSecurityLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlayReadyStatics3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPlayReadyStatics3 { - type Vtable = IPlayReadyStatics3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPlayReadyStatics3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3fa33f71_2dd3_4bed_ae49_f7148e63e710); -} +::windows_core::imp::com_interface!(IPlayReadyStatics3, IPlayReadyStatics3_Vtbl, 0x3fa33f71_2dd3_4bed_ae49_f7148e63e710); #[repr(C)] #[doc(hidden)] pub struct IPlayReadyStatics3_Vtbl { @@ -2361,16 +1961,7 @@ pub struct IPlayReadyStatics3_Vtbl { pub SecureStopServiceRequestType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, pub CheckSupportedHardware: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwdrmfeature: PlayReadyHardwareDRMFeatures, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlayReadyStatics4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPlayReadyStatics4 { - type Vtable = IPlayReadyStatics4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPlayReadyStatics4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x50a91300_d824_4231_9d5e_78ef8844c7d7); -} +::windows_core::imp::com_interface!(IPlayReadyStatics4, IPlayReadyStatics4_Vtbl, 0x50a91300_d824_4231_9d5e_78ef8844c7d7); #[repr(C)] #[doc(hidden)] pub struct IPlayReadyStatics4_Vtbl { @@ -2378,16 +1969,7 @@ pub struct IPlayReadyStatics4_Vtbl { pub InputTrustAuthorityToCreate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub ProtectionSystemId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlayReadyStatics5(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPlayReadyStatics5 { - type Vtable = IPlayReadyStatics5_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPlayReadyStatics5 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x230a7075_dfa0_4f8e_a779_cefea9c6824b); -} +::windows_core::imp::com_interface!(IPlayReadyStatics5, IPlayReadyStatics5_Vtbl, 0x230a7075_dfa0_4f8e_a779_cefea9c6824b); #[repr(C)] #[doc(hidden)] pub struct IPlayReadyStatics5_Vtbl { @@ -2402,6 +1984,8 @@ pub struct IPlayReadyStatics5_Vtbl { #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct NDClient(::windows_core::IUnknown); #[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(NDClient, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "deprecated")] impl NDClient { #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] @@ -2498,37 +2082,37 @@ impl NDClient { pub fn StartAsync(&self, contenturl: P0, startasyncoptions: u32, registrationcustomdata: P1, licensefetchdescriptor: P2) -> ::windows_core::Result> where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam, - P2: ::windows_core::TryIntoParam, + P1: ::windows_core::IntoParam, + P2: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), licensefetchdescriptor.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) } } #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] pub fn LicenseFetchAsync(&self, licensefetchdescriptor: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).LicenseFetchAsync)(::windows_core::Interface::as_raw(this), licensefetchdescriptor.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).LicenseFetchAsync)(::windows_core::Interface::as_raw(this), licensefetchdescriptor.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] pub fn ReRegistrationAsync(&self, registrationcustomdata: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).ReRegistrationAsync)(::windows_core::Interface::as_raw(this), registrationcustomdata.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ReRegistrationAsync)(::windows_core::Interface::as_raw(this), registrationcustomdata.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"deprecated\"`"] @@ -2541,13 +2125,13 @@ impl NDClient { #[cfg(feature = "deprecated")] pub fn CreateInstance(downloadengine: P0, streamparser: P1, pmessenger: P2) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam, - P2: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, + P2: ::windows_core::IntoParam, { Self::INDClientFactory(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateInstance)(::windows_core::Interface::as_raw(this), downloadengine.try_into_param()?.abi(), streamparser.try_into_param()?.abi(), pmessenger.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } #[doc(hidden)] @@ -2564,23 +2148,22 @@ impl ::windows_core::RuntimeType for NDClient { #[cfg(feature = "deprecated")] unsafe impl ::windows_core::Interface for NDClient { type Vtable = INDClient_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for NDClient { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "deprecated")] impl ::windows_core::RuntimeName for NDClient { const NAME: &'static str = "Windows.Media.Protection.PlayReady.NDClient"; } -#[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(NDClient, ::windows_core::IUnknown, ::windows_core::IInspectable); #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct NDCustomData(::windows_core::IUnknown); #[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(NDCustomData, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "deprecated")] +::windows_core::imp::required_hierarchy!(NDCustomData, INDCustomData); +#[cfg(feature = "deprecated")] impl NDCustomData { #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] @@ -2622,25 +2205,22 @@ impl ::windows_core::RuntimeType for NDCustomData { #[cfg(feature = "deprecated")] unsafe impl ::windows_core::Interface for NDCustomData { type Vtable = INDCustomData_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for NDCustomData { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "deprecated")] impl ::windows_core::RuntimeName for NDCustomData { const NAME: &'static str = "Windows.Media.Protection.PlayReady.NDCustomData"; } -#[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(NDCustomData, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] -impl ::windows_core::CanTryInto for NDCustomData {} #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct NDDownloadEngineNotifier(::windows_core::IUnknown); #[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(NDDownloadEngineNotifier, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "deprecated")] +::windows_core::imp::required_hierarchy!(NDDownloadEngineNotifier, INDDownloadEngineNotifier); +#[cfg(feature = "deprecated")] impl NDDownloadEngineNotifier { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2665,10 +2245,10 @@ impl NDDownloadEngineNotifier { #[cfg(feature = "deprecated")] pub fn OnContentIDReceived(&self, licensefetchdescriptor: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).OnContentIDReceived)(::windows_core::Interface::as_raw(this), licensefetchdescriptor.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).OnContentIDReceived)(::windows_core::Interface::as_raw(this), licensefetchdescriptor.into_param().abi()).ok() } } #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] @@ -2696,25 +2276,22 @@ impl ::windows_core::RuntimeType for NDDownloadEngineNotifier { #[cfg(feature = "deprecated")] unsafe impl ::windows_core::Interface for NDDownloadEngineNotifier { type Vtable = INDDownloadEngineNotifier_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for NDDownloadEngineNotifier { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "deprecated")] impl ::windows_core::RuntimeName for NDDownloadEngineNotifier { const NAME: &'static str = "Windows.Media.Protection.PlayReady.NDDownloadEngineNotifier"; } -#[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(NDDownloadEngineNotifier, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] -impl ::windows_core::CanTryInto for NDDownloadEngineNotifier {} #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct NDLicenseFetchDescriptor(::windows_core::IUnknown); #[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(NDLicenseFetchDescriptor, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "deprecated")] +::windows_core::imp::required_hierarchy!(NDLicenseFetchDescriptor, INDLicenseFetchDescriptor); +#[cfg(feature = "deprecated")] impl NDLicenseFetchDescriptor { #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] @@ -2747,20 +2324,20 @@ impl NDLicenseFetchDescriptor { #[cfg(feature = "deprecated")] pub fn SetLicenseFetchChallengeCustomData(&self, licensefetchchallengecustomdata: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetLicenseFetchChallengeCustomData)(::windows_core::Interface::as_raw(this), licensefetchchallengecustomdata.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetLicenseFetchChallengeCustomData)(::windows_core::Interface::as_raw(this), licensefetchchallengecustomdata.into_param().abi()).ok() } } #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] pub fn CreateInstance(contentidtype: NDContentIDType, contentidbytes: &[u8], licensefetchchallengecustomdata: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), &mut result__).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.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -2777,25 +2354,22 @@ impl ::windows_core::RuntimeType for NDLicenseFetchDescriptor { #[cfg(feature = "deprecated")] unsafe impl ::windows_core::Interface for NDLicenseFetchDescriptor { type Vtable = INDLicenseFetchDescriptor_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for NDLicenseFetchDescriptor { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "deprecated")] impl ::windows_core::RuntimeName for NDLicenseFetchDescriptor { const NAME: &'static str = "Windows.Media.Protection.PlayReady.NDLicenseFetchDescriptor"; } -#[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(NDLicenseFetchDescriptor, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] -impl ::windows_core::CanTryInto for NDLicenseFetchDescriptor {} #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct NDStorageFileHelper(::windows_core::IUnknown); #[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(NDStorageFileHelper, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "deprecated")] +::windows_core::imp::required_hierarchy!(NDStorageFileHelper, INDStorageFileHelper); +#[cfg(feature = "deprecated")] impl NDStorageFileHelper { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2808,12 +2382,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::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).GetFileURLs)(::windows_core::Interface::as_raw(this), file.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).GetFileURLs)(::windows_core::Interface::as_raw(this), file.into_param().abi(), &mut result__).from_abi(result__) } } } @@ -2824,25 +2398,22 @@ impl ::windows_core::RuntimeType for NDStorageFileHelper { #[cfg(feature = "deprecated")] unsafe impl ::windows_core::Interface for NDStorageFileHelper { type Vtable = INDStorageFileHelper_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for NDStorageFileHelper { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "deprecated")] impl ::windows_core::RuntimeName for NDStorageFileHelper { const NAME: &'static str = "Windows.Media.Protection.PlayReady.NDStorageFileHelper"; } -#[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(NDStorageFileHelper, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] -impl ::windows_core::CanTryInto for NDStorageFileHelper {} #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct NDStreamParserNotifier(::windows_core::IUnknown); #[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(NDStreamParserNotifier, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "deprecated")] +::windows_core::imp::required_hierarchy!(NDStreamParserNotifier, INDStreamParserNotifier); +#[cfg(feature = "deprecated")] impl NDStreamParserNotifier { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2855,20 +2426,20 @@ impl NDStreamParserNotifier { #[cfg(feature = "deprecated")] pub fn OnContentIDReceived(&self, licensefetchdescriptor: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).OnContentIDReceived)(::windows_core::Interface::as_raw(this), licensefetchdescriptor.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).OnContentIDReceived)(::windows_core::Interface::as_raw(this), licensefetchdescriptor.into_param().abi()).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Media_Core\"`, `\"deprecated\"`"] #[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::TryIntoParam>, - P1: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, + P1: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).OnMediaStreamDescriptorCreated)(::windows_core::Interface::as_raw(this), audiostreamdescriptors.try_into_param()?.abi(), videostreamdescriptors.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).OnMediaStreamDescriptorCreated)(::windows_core::Interface::as_raw(this), audiostreamdescriptors.into_param().abi(), videostreamdescriptors.into_param().abi()).ok() } } #[doc = "Required features: `\"Media_Core\"`, `\"deprecated\"`"] #[cfg(all(feature = "Media_Core", feature = "deprecated"))] @@ -2883,10 +2454,10 @@ impl NDStreamParserNotifier { #[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::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).OnBeginSetupDecryptor)(::windows_core::Interface::as_raw(this), descriptor.try_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.into_param().abi(), keyid, probytes.len().try_into().unwrap(), probytes.as_ptr()).ok() } } } #[cfg(feature = "deprecated")] @@ -2896,25 +2467,22 @@ impl ::windows_core::RuntimeType for NDStreamParserNotifier { #[cfg(feature = "deprecated")] unsafe impl ::windows_core::Interface for NDStreamParserNotifier { type Vtable = INDStreamParserNotifier_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for NDStreamParserNotifier { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "deprecated")] impl ::windows_core::RuntimeName for NDStreamParserNotifier { const NAME: &'static str = "Windows.Media.Protection.PlayReady.NDStreamParserNotifier"; } -#[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(NDStreamParserNotifier, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] -impl ::windows_core::CanTryInto for NDStreamParserNotifier {} #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct NDTCPMessenger(::windows_core::IUnknown); #[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(NDTCPMessenger, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "deprecated")] +::windows_core::imp::required_hierarchy!(NDTCPMessenger, INDMessenger); +#[cfg(feature = "deprecated")] impl NDTCPMessenger { #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] @@ -2974,22 +2542,16 @@ impl ::windows_core::RuntimeType for NDTCPMessenger { #[cfg(feature = "deprecated")] unsafe impl ::windows_core::Interface for NDTCPMessenger { type Vtable = INDMessenger_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for NDTCPMessenger { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "deprecated")] impl ::windows_core::RuntimeName for NDTCPMessenger { const NAME: &'static str = "Windows.Media.Protection.PlayReady.NDTCPMessenger"; } -#[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(NDTCPMessenger, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] -impl ::windows_core::CanTryInto for NDTCPMessenger {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PlayReadyContentHeader(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PlayReadyContentHeader, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PlayReadyContentHeader { pub fn KeyId(&self) -> ::windows_core::Result<::windows_core::GUID> { let this = self; @@ -3062,14 +2624,14 @@ impl PlayReadyContentHeader { } } pub fn KeyIds(&self) -> ::windows_core::Result<::windows_core::Array<::windows_core::GUID>> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows_core::Interface::vtable(this).KeyIds)(::windows_core::Interface::as_raw(this), ::windows_core::Array::<::windows_core::GUID>::set_abi_len(::std::mem::transmute(&mut result__)), result__.as_mut_ptr() as *mut _ as _).and_then(|| result__.assume_init()) } } pub fn KeyIdStrings(&self) -> ::windows_core::Result<::windows_core::Array<::windows_core::HSTRING>> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows_core::Interface::vtable(this).KeyIdStrings)(::windows_core::Interface::as_raw(this), ::windows_core::Array::<::windows_core::HSTRING>::set_abi_len(::std::mem::transmute(&mut result__)), result__.as_mut_ptr() as *mut _ as _).and_then(|| result__.assume_init()) @@ -3127,14 +2689,11 @@ impl ::windows_core::RuntimeType for PlayReadyContentHeader { } unsafe impl ::windows_core::Interface for PlayReadyContentHeader { type Vtable = IPlayReadyContentHeader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PlayReadyContentHeader { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PlayReadyContentHeader { const NAME: &'static str = "Windows.Media.Protection.PlayReady.PlayReadyContentHeader"; } -::windows_core::imp::interface_hierarchy!(PlayReadyContentHeader, ::windows_core::IUnknown, ::windows_core::IInspectable); pub struct PlayReadyContentResolver; impl PlayReadyContentResolver { pub fn ServiceRequest(contentheader: P0) -> ::windows_core::Result @@ -3158,6 +2717,8 @@ impl ::windows_core::RuntimeName for PlayReadyContentResolver { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PlayReadyDomain(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PlayReadyDomain, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(PlayReadyDomain, IPlayReadyDomain); impl PlayReadyDomain { pub fn AccountId(&self) -> ::windows_core::Result<::windows_core::GUID> { let this = self; @@ -3200,21 +2761,21 @@ impl ::windows_core::RuntimeType for PlayReadyDomain { } unsafe impl ::windows_core::Interface for PlayReadyDomain { type Vtable = IPlayReadyDomain_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PlayReadyDomain { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PlayReadyDomain { const NAME: &'static str = "Windows.Media.Protection.PlayReady.PlayReadyDomain"; } -::windows_core::imp::interface_hierarchy!(PlayReadyDomain, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for PlayReadyDomain {} #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PlayReadyDomainIterable(::windows_core::IUnknown); #[cfg(feature = "Foundation_Collections")] +::windows_core::imp::interface_hierarchy!(PlayReadyDomainIterable, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(PlayReadyDomainIterable, super::super::super::Foundation::Collections::IIterable::); +#[cfg(feature = "Foundation_Collections")] impl PlayReadyDomainIterable { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -3246,10 +2807,7 @@ impl ::windows_core::RuntimeType for PlayReadyDomainIterable { #[cfg(feature = "Foundation_Collections")] unsafe impl ::windows_core::Interface for PlayReadyDomainIterable { type Vtable = super::super::super::Foundation::Collections::IIterable_Vtbl; -} -#[cfg(feature = "Foundation_Collections")] -unsafe impl ::windows_core::ComInterface for PlayReadyDomainIterable { - const IID: ::windows_core::GUID = as ::windows_core::ComInterface>::IID; + const IID: ::windows_core::GUID = as ::windows_core::Interface>::IID; } #[cfg(feature = "Foundation_Collections")] impl ::windows_core::RuntimeName for PlayReadyDomainIterable { @@ -3271,16 +2829,16 @@ impl ::core::iter::IntoIterator for &PlayReadyDomainIterable { self.First().unwrap() } } -#[cfg(feature = "Foundation_Collections")] -::windows_core::imp::interface_hierarchy!(PlayReadyDomainIterable, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for PlayReadyDomainIterable {} #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PlayReadyDomainIterator(::windows_core::IUnknown); #[cfg(feature = "Foundation_Collections")] +::windows_core::imp::interface_hierarchy!(PlayReadyDomainIterator, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(PlayReadyDomainIterator, super::super::super::Foundation::Collections::IIterator::); +#[cfg(feature = "Foundation_Collections")] impl PlayReadyDomainIterator { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -3326,22 +2884,17 @@ impl ::windows_core::RuntimeType for PlayReadyDomainIterator { #[cfg(feature = "Foundation_Collections")] unsafe impl ::windows_core::Interface for PlayReadyDomainIterator { type Vtable = super::super::super::Foundation::Collections::IIterator_Vtbl; -} -#[cfg(feature = "Foundation_Collections")] -unsafe impl ::windows_core::ComInterface for PlayReadyDomainIterator { - const IID: ::windows_core::GUID = as ::windows_core::ComInterface>::IID; + const IID: ::windows_core::GUID = as ::windows_core::Interface>::IID; } #[cfg(feature = "Foundation_Collections")] impl ::windows_core::RuntimeName for PlayReadyDomainIterator { const NAME: &'static str = "Windows.Media.Protection.PlayReady.PlayReadyDomainIterator"; } -#[cfg(feature = "Foundation_Collections")] -::windows_core::imp::interface_hierarchy!(PlayReadyDomainIterator, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for PlayReadyDomainIterator {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PlayReadyDomainJoinServiceRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PlayReadyDomainJoinServiceRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(PlayReadyDomainJoinServiceRequest, super::IMediaProtectionServiceRequest, IPlayReadyServiceRequest); impl PlayReadyDomainJoinServiceRequest { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -3351,14 +2904,14 @@ impl PlayReadyDomainJoinServiceRequest { SHARED.call(callback) } pub fn ProtectionSystem(&self) -> ::windows_core::Result<::windows_core::GUID> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ProtectionSystem)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Type(&self) -> ::windows_core::Result<::windows_core::GUID> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Type)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3398,7 +2951,7 @@ impl PlayReadyDomainJoinServiceRequest { unsafe { (::windows_core::Interface::vtable(this).SetDomainServiceId)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Uri(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Uri)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3408,50 +2961,50 @@ impl PlayReadyDomainJoinServiceRequest { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn ResponseCustomData(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ResponseCustomData)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ChallengeCustomData(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ChallengeCustomData)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetChallengeCustomData(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetChallengeCustomData)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn BeginServiceRequest(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).BeginServiceRequest)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn NextServiceRequest(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NextServiceRequest)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GenerateManualEnablingChallenge(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GenerateManualEnablingChallenge)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ProcessManualEnablingResponse(&self, responsebytes: &[u8]) -> ::windows_core::Result<::windows_core::HRESULT> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ProcessManualEnablingResponse)(::windows_core::Interface::as_raw(this), responsebytes.len().try_into().unwrap(), responsebytes.as_ptr(), &mut result__).from_abi(result__) @@ -3463,19 +3016,16 @@ impl ::windows_core::RuntimeType for PlayReadyDomainJoinServiceRequest { } unsafe impl ::windows_core::Interface for PlayReadyDomainJoinServiceRequest { type Vtable = IPlayReadyDomainJoinServiceRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PlayReadyDomainJoinServiceRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PlayReadyDomainJoinServiceRequest { const NAME: &'static str = "Windows.Media.Protection.PlayReady.PlayReadyDomainJoinServiceRequest"; } -::windows_core::imp::interface_hierarchy!(PlayReadyDomainJoinServiceRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for PlayReadyDomainJoinServiceRequest {} -impl ::windows_core::CanTryInto for PlayReadyDomainJoinServiceRequest {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PlayReadyDomainLeaveServiceRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PlayReadyDomainLeaveServiceRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(PlayReadyDomainLeaveServiceRequest, super::IMediaProtectionServiceRequest, IPlayReadyServiceRequest); impl PlayReadyDomainLeaveServiceRequest { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -3485,14 +3035,14 @@ impl PlayReadyDomainLeaveServiceRequest { SHARED.call(callback) } pub fn ProtectionSystem(&self) -> ::windows_core::Result<::windows_core::GUID> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ProtectionSystem)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Type(&self) -> ::windows_core::Result<::windows_core::GUID> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Type)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3521,7 +3071,7 @@ impl PlayReadyDomainLeaveServiceRequest { unsafe { (::windows_core::Interface::vtable(this).SetDomainServiceId)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Uri(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Uri)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3531,50 +3081,50 @@ impl PlayReadyDomainLeaveServiceRequest { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn ResponseCustomData(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ResponseCustomData)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ChallengeCustomData(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ChallengeCustomData)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetChallengeCustomData(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetChallengeCustomData)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn BeginServiceRequest(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).BeginServiceRequest)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn NextServiceRequest(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NextServiceRequest)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GenerateManualEnablingChallenge(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GenerateManualEnablingChallenge)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ProcessManualEnablingResponse(&self, responsebytes: &[u8]) -> ::windows_core::Result<::windows_core::HRESULT> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ProcessManualEnablingResponse)(::windows_core::Interface::as_raw(this), responsebytes.len().try_into().unwrap(), responsebytes.as_ptr(), &mut result__).from_abi(result__) @@ -3586,19 +3136,15 @@ impl ::windows_core::RuntimeType for PlayReadyDomainLeaveServiceRequest { } unsafe impl ::windows_core::Interface for PlayReadyDomainLeaveServiceRequest { type Vtable = IPlayReadyDomainLeaveServiceRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PlayReadyDomainLeaveServiceRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PlayReadyDomainLeaveServiceRequest { const NAME: &'static str = "Windows.Media.Protection.PlayReady.PlayReadyDomainLeaveServiceRequest"; } -::windows_core::imp::interface_hierarchy!(PlayReadyDomainLeaveServiceRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for PlayReadyDomainLeaveServiceRequest {} -impl ::windows_core::CanTryInto for PlayReadyDomainLeaveServiceRequest {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PlayReadyITADataGenerator(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PlayReadyITADataGenerator, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PlayReadyITADataGenerator { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -3611,12 +3157,12 @@ impl PlayReadyITADataGenerator { #[cfg(feature = "Foundation_Collections")] pub fn GenerateData(&self, guidcpsystemid: ::windows_core::GUID, countofstreams: u32, configuration: P0, format: PlayReadyITADataFormat) -> ::windows_core::Result<::windows_core::Array> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), format, ::windows_core::Array::::set_abi_len(::std::mem::transmute(&mut result__)), result__.as_mut_ptr() as *mut _ as _).and_then(|| result__.assume_init()) + (::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 _).and_then(|| result__.assume_init()) } } } @@ -3625,17 +3171,16 @@ impl ::windows_core::RuntimeType for PlayReadyITADataGenerator { } unsafe impl ::windows_core::Interface for PlayReadyITADataGenerator { type Vtable = IPlayReadyITADataGenerator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PlayReadyITADataGenerator { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PlayReadyITADataGenerator { const NAME: &'static str = "Windows.Media.Protection.PlayReady.PlayReadyITADataGenerator"; } -::windows_core::imp::interface_hierarchy!(PlayReadyITADataGenerator, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PlayReadyIndividualizationServiceRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PlayReadyIndividualizationServiceRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(PlayReadyIndividualizationServiceRequest, super::IMediaProtectionServiceRequest, IPlayReadyServiceRequest); impl PlayReadyIndividualizationServiceRequest { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -3645,21 +3190,21 @@ impl PlayReadyIndividualizationServiceRequest { SHARED.call(callback) } pub fn ProtectionSystem(&self) -> ::windows_core::Result<::windows_core::GUID> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ProtectionSystem)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Type(&self) -> ::windows_core::Result<::windows_core::GUID> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Type)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Uri(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Uri)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3669,50 +3214,50 @@ impl PlayReadyIndividualizationServiceRequest { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn ResponseCustomData(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ResponseCustomData)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ChallengeCustomData(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ChallengeCustomData)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetChallengeCustomData(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetChallengeCustomData)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn BeginServiceRequest(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).BeginServiceRequest)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn NextServiceRequest(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NextServiceRequest)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GenerateManualEnablingChallenge(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GenerateManualEnablingChallenge)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ProcessManualEnablingResponse(&self, responsebytes: &[u8]) -> ::windows_core::Result<::windows_core::HRESULT> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ProcessManualEnablingResponse)(::windows_core::Interface::as_raw(this), responsebytes.len().try_into().unwrap(), responsebytes.as_ptr(), &mut result__).from_abi(result__) @@ -3724,19 +3269,16 @@ impl ::windows_core::RuntimeType for PlayReadyIndividualizationServiceRequest { } unsafe impl ::windows_core::Interface for PlayReadyIndividualizationServiceRequest { type Vtable = IPlayReadyIndividualizationServiceRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PlayReadyIndividualizationServiceRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PlayReadyIndividualizationServiceRequest { const NAME: &'static str = "Windows.Media.Protection.PlayReady.PlayReadyIndividualizationServiceRequest"; } -::windows_core::imp::interface_hierarchy!(PlayReadyIndividualizationServiceRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for PlayReadyIndividualizationServiceRequest {} -impl ::windows_core::CanTryInto for PlayReadyIndividualizationServiceRequest {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PlayReadyLicense(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PlayReadyLicense, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(PlayReadyLicense, IPlayReadyLicense); impl PlayReadyLicense { pub fn FullyEvaluated(&self) -> ::windows_core::Result { let this = self; @@ -3788,28 +3330,28 @@ impl PlayReadyLicense { } } pub fn SecureStopId(&self) -> ::windows_core::Result<::windows_core::GUID> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SecureStopId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SecurityLevel(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SecurityLevel)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn InMemoryOnly(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).InMemoryOnly)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ExpiresInRealTime(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ExpiresInRealTime)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3821,18 +3363,16 @@ impl ::windows_core::RuntimeType for PlayReadyLicense { } unsafe impl ::windows_core::Interface for PlayReadyLicense { type Vtable = IPlayReadyLicense_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PlayReadyLicense { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PlayReadyLicense { const NAME: &'static str = "Windows.Media.Protection.PlayReady.PlayReadyLicense"; } -::windows_core::imp::interface_hierarchy!(PlayReadyLicense, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for PlayReadyLicense {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PlayReadyLicenseAcquisitionServiceRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PlayReadyLicenseAcquisitionServiceRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(PlayReadyLicenseAcquisitionServiceRequest, super::IMediaProtectionServiceRequest, IPlayReadyLicenseAcquisitionServiceRequest, IPlayReadyServiceRequest); impl PlayReadyLicenseAcquisitionServiceRequest { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -3842,14 +3382,14 @@ impl PlayReadyLicenseAcquisitionServiceRequest { SHARED.call(callback) } pub fn ProtectionSystem(&self) -> ::windows_core::Result<::windows_core::GUID> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ProtectionSystem)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Type(&self) -> ::windows_core::Result<::windows_core::GUID> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Type)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3881,7 +3421,7 @@ impl PlayReadyLicenseAcquisitionServiceRequest { unsafe { (::windows_core::Interface::vtable(this).SetDomainServiceId)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn SessionId(&self) -> ::windows_core::Result<::windows_core::GUID> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SessionId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3893,14 +3433,14 @@ impl PlayReadyLicenseAcquisitionServiceRequest { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn Uri(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Uri)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3910,50 +3450,50 @@ impl PlayReadyLicenseAcquisitionServiceRequest { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn ResponseCustomData(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ResponseCustomData)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ChallengeCustomData(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ChallengeCustomData)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetChallengeCustomData(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetChallengeCustomData)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn BeginServiceRequest(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).BeginServiceRequest)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn NextServiceRequest(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NextServiceRequest)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GenerateManualEnablingChallenge(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GenerateManualEnablingChallenge)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ProcessManualEnablingResponse(&self, responsebytes: &[u8]) -> ::windows_core::Result<::windows_core::HRESULT> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ProcessManualEnablingResponse)(::windows_core::Interface::as_raw(this), responsebytes.len().try_into().unwrap(), responsebytes.as_ptr(), &mut result__).from_abi(result__) @@ -3965,23 +3505,21 @@ impl ::windows_core::RuntimeType for PlayReadyLicenseAcquisitionServiceRequest { } unsafe impl ::windows_core::Interface for PlayReadyLicenseAcquisitionServiceRequest { type Vtable = IPlayReadyLicenseAcquisitionServiceRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PlayReadyLicenseAcquisitionServiceRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PlayReadyLicenseAcquisitionServiceRequest { const NAME: &'static str = "Windows.Media.Protection.PlayReady.PlayReadyLicenseAcquisitionServiceRequest"; } -::windows_core::imp::interface_hierarchy!(PlayReadyLicenseAcquisitionServiceRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for PlayReadyLicenseAcquisitionServiceRequest {} -impl ::windows_core::CanTryInto for PlayReadyLicenseAcquisitionServiceRequest {} -impl ::windows_core::CanTryInto for PlayReadyLicenseAcquisitionServiceRequest {} #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PlayReadyLicenseIterable(::windows_core::IUnknown); #[cfg(feature = "Foundation_Collections")] +::windows_core::imp::interface_hierarchy!(PlayReadyLicenseIterable, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(PlayReadyLicenseIterable, super::super::super::Foundation::Collections::IIterable::); +#[cfg(feature = "Foundation_Collections")] impl PlayReadyLicenseIterable { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -4023,10 +3561,7 @@ impl ::windows_core::RuntimeType for PlayReadyLicenseIterable { #[cfg(feature = "Foundation_Collections")] unsafe impl ::windows_core::Interface for PlayReadyLicenseIterable { type Vtable = super::super::super::Foundation::Collections::IIterable_Vtbl; -} -#[cfg(feature = "Foundation_Collections")] -unsafe impl ::windows_core::ComInterface for PlayReadyLicenseIterable { - const IID: ::windows_core::GUID = as ::windows_core::ComInterface>::IID; + const IID: ::windows_core::GUID = as ::windows_core::Interface>::IID; } #[cfg(feature = "Foundation_Collections")] impl ::windows_core::RuntimeName for PlayReadyLicenseIterable { @@ -4048,16 +3583,16 @@ impl ::core::iter::IntoIterator for &PlayReadyLicenseIterable { self.First().unwrap() } } -#[cfg(feature = "Foundation_Collections")] -::windows_core::imp::interface_hierarchy!(PlayReadyLicenseIterable, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for PlayReadyLicenseIterable {} #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PlayReadyLicenseIterator(::windows_core::IUnknown); #[cfg(feature = "Foundation_Collections")] +::windows_core::imp::interface_hierarchy!(PlayReadyLicenseIterator, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(PlayReadyLicenseIterator, super::super::super::Foundation::Collections::IIterator::); +#[cfg(feature = "Foundation_Collections")] impl PlayReadyLicenseIterator { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -4103,19 +3638,12 @@ impl ::windows_core::RuntimeType for PlayReadyLicenseIterator { #[cfg(feature = "Foundation_Collections")] unsafe impl ::windows_core::Interface for PlayReadyLicenseIterator { type Vtable = super::super::super::Foundation::Collections::IIterator_Vtbl; -} -#[cfg(feature = "Foundation_Collections")] -unsafe impl ::windows_core::ComInterface for PlayReadyLicenseIterator { - const IID: ::windows_core::GUID = as ::windows_core::ComInterface>::IID; + const IID: ::windows_core::GUID = as ::windows_core::Interface>::IID; } #[cfg(feature = "Foundation_Collections")] impl ::windows_core::RuntimeName for PlayReadyLicenseIterator { const NAME: &'static str = "Windows.Media.Protection.PlayReady.PlayReadyLicenseIterator"; } -#[cfg(feature = "Foundation_Collections")] -::windows_core::imp::interface_hierarchy!(PlayReadyLicenseIterator, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for PlayReadyLicenseIterator {} pub struct PlayReadyLicenseManagement; impl PlayReadyLicenseManagement { pub fn DeleteLicenses(contentheader: P0) -> ::windows_core::Result @@ -4139,6 +3667,8 @@ impl ::windows_core::RuntimeName for PlayReadyLicenseManagement { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PlayReadyLicenseSession(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PlayReadyLicenseSession, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(PlayReadyLicenseSession, IPlayReadyLicenseSession, IPlayReadyLicenseSession2); impl PlayReadyLicenseSession { pub fn CreateLAServiceRequest(&self) -> ::windows_core::Result { let this = self; @@ -4160,7 +3690,7 @@ impl PlayReadyLicenseSession { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -4170,11 +3700,11 @@ impl PlayReadyLicenseSession { #[cfg(feature = "Foundation_Collections")] pub fn CreateInstance(configuration: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IPlayReadyLicenseSessionFactory(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateInstance)(::windows_core::Interface::as_raw(this), configuration.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateInstance)(::windows_core::Interface::as_raw(this), configuration.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -4188,19 +3718,16 @@ impl ::windows_core::RuntimeType for PlayReadyLicenseSession { } unsafe impl ::windows_core::Interface for PlayReadyLicenseSession { type Vtable = IPlayReadyLicenseSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PlayReadyLicenseSession { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PlayReadyLicenseSession { const NAME: &'static str = "Windows.Media.Protection.PlayReady.PlayReadyLicenseSession"; } -::windows_core::imp::interface_hierarchy!(PlayReadyLicenseSession, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for PlayReadyLicenseSession {} -impl ::windows_core::CanTryInto for PlayReadyLicenseSession {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PlayReadyMeteringReportServiceRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PlayReadyMeteringReportServiceRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(PlayReadyMeteringReportServiceRequest, super::IMediaProtectionServiceRequest, IPlayReadyServiceRequest); impl PlayReadyMeteringReportServiceRequest { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -4210,14 +3737,14 @@ impl PlayReadyMeteringReportServiceRequest { SHARED.call(callback) } pub fn ProtectionSystem(&self) -> ::windows_core::Result<::windows_core::GUID> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ProtectionSystem)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Type(&self) -> ::windows_core::Result<::windows_core::GUID> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Type)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4235,7 +3762,7 @@ impl PlayReadyMeteringReportServiceRequest { unsafe { (::windows_core::Interface::vtable(this).SetMeteringCertificate)(::windows_core::Interface::as_raw(this), meteringcertbytes.len().try_into().unwrap(), meteringcertbytes.as_ptr()).ok() } } pub fn Uri(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Uri)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4245,50 +3772,50 @@ impl PlayReadyMeteringReportServiceRequest { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn ResponseCustomData(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ResponseCustomData)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ChallengeCustomData(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ChallengeCustomData)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetChallengeCustomData(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetChallengeCustomData)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn BeginServiceRequest(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).BeginServiceRequest)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn NextServiceRequest(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NextServiceRequest)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GenerateManualEnablingChallenge(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GenerateManualEnablingChallenge)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ProcessManualEnablingResponse(&self, responsebytes: &[u8]) -> ::windows_core::Result<::windows_core::HRESULT> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ProcessManualEnablingResponse)(::windows_core::Interface::as_raw(this), responsebytes.len().try_into().unwrap(), responsebytes.as_ptr(), &mut result__).from_abi(result__) @@ -4300,19 +3827,16 @@ impl ::windows_core::RuntimeType for PlayReadyMeteringReportServiceRequest { } unsafe impl ::windows_core::Interface for PlayReadyMeteringReportServiceRequest { type Vtable = IPlayReadyMeteringReportServiceRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PlayReadyMeteringReportServiceRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PlayReadyMeteringReportServiceRequest { const NAME: &'static str = "Windows.Media.Protection.PlayReady.PlayReadyMeteringReportServiceRequest"; } -::windows_core::imp::interface_hierarchy!(PlayReadyMeteringReportServiceRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for PlayReadyMeteringReportServiceRequest {} -impl ::windows_core::CanTryInto for PlayReadyMeteringReportServiceRequest {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PlayReadyRevocationServiceRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PlayReadyRevocationServiceRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(PlayReadyRevocationServiceRequest, super::IMediaProtectionServiceRequest, IPlayReadyServiceRequest); impl PlayReadyRevocationServiceRequest { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -4322,21 +3846,21 @@ impl PlayReadyRevocationServiceRequest { SHARED.call(callback) } pub fn ProtectionSystem(&self) -> ::windows_core::Result<::windows_core::GUID> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ProtectionSystem)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Type(&self) -> ::windows_core::Result<::windows_core::GUID> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Type)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Uri(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Uri)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4346,50 +3870,50 @@ impl PlayReadyRevocationServiceRequest { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn ResponseCustomData(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ResponseCustomData)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ChallengeCustomData(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ChallengeCustomData)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetChallengeCustomData(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetChallengeCustomData)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn BeginServiceRequest(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).BeginServiceRequest)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn NextServiceRequest(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NextServiceRequest)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GenerateManualEnablingChallenge(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GenerateManualEnablingChallenge)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ProcessManualEnablingResponse(&self, responsebytes: &[u8]) -> ::windows_core::Result<::windows_core::HRESULT> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ProcessManualEnablingResponse)(::windows_core::Interface::as_raw(this), responsebytes.len().try_into().unwrap(), responsebytes.as_ptr(), &mut result__).from_abi(result__) @@ -4401,22 +3925,21 @@ impl ::windows_core::RuntimeType for PlayReadyRevocationServiceRequest { } unsafe impl ::windows_core::Interface for PlayReadyRevocationServiceRequest { type Vtable = IPlayReadyRevocationServiceRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PlayReadyRevocationServiceRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PlayReadyRevocationServiceRequest { const NAME: &'static str = "Windows.Media.Protection.PlayReady.PlayReadyRevocationServiceRequest"; } -::windows_core::imp::interface_hierarchy!(PlayReadyRevocationServiceRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for PlayReadyRevocationServiceRequest {} -impl ::windows_core::CanTryInto for PlayReadyRevocationServiceRequest {} #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PlayReadySecureStopIterable(::windows_core::IUnknown); #[cfg(feature = "Foundation_Collections")] +::windows_core::imp::interface_hierarchy!(PlayReadySecureStopIterable, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(PlayReadySecureStopIterable, super::super::super::Foundation::Collections::IIterable::); +#[cfg(feature = "Foundation_Collections")] impl PlayReadySecureStopIterable { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -4448,10 +3971,7 @@ impl ::windows_core::RuntimeType for PlayReadySecureStopIterable { #[cfg(feature = "Foundation_Collections")] unsafe impl ::windows_core::Interface for PlayReadySecureStopIterable { type Vtable = super::super::super::Foundation::Collections::IIterable_Vtbl; -} -#[cfg(feature = "Foundation_Collections")] -unsafe impl ::windows_core::ComInterface for PlayReadySecureStopIterable { - const IID: ::windows_core::GUID = as ::windows_core::ComInterface>::IID; + const IID: ::windows_core::GUID = as ::windows_core::Interface>::IID; } #[cfg(feature = "Foundation_Collections")] impl ::windows_core::RuntimeName for PlayReadySecureStopIterable { @@ -4473,16 +3993,16 @@ impl ::core::iter::IntoIterator for &PlayReadySecureStopIterable { self.First().unwrap() } } -#[cfg(feature = "Foundation_Collections")] -::windows_core::imp::interface_hierarchy!(PlayReadySecureStopIterable, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for PlayReadySecureStopIterable {} #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PlayReadySecureStopIterator(::windows_core::IUnknown); #[cfg(feature = "Foundation_Collections")] +::windows_core::imp::interface_hierarchy!(PlayReadySecureStopIterator, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(PlayReadySecureStopIterator, super::super::super::Foundation::Collections::IIterator::); +#[cfg(feature = "Foundation_Collections")] impl PlayReadySecureStopIterator { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -4528,32 +4048,27 @@ impl ::windows_core::RuntimeType for PlayReadySecureStopIterator { #[cfg(feature = "Foundation_Collections")] unsafe impl ::windows_core::Interface for PlayReadySecureStopIterator { type Vtable = super::super::super::Foundation::Collections::IIterator_Vtbl; -} -#[cfg(feature = "Foundation_Collections")] -unsafe impl ::windows_core::ComInterface for PlayReadySecureStopIterator { - const IID: ::windows_core::GUID = as ::windows_core::ComInterface>::IID; + const IID: ::windows_core::GUID = as ::windows_core::Interface>::IID; } #[cfg(feature = "Foundation_Collections")] impl ::windows_core::RuntimeName for PlayReadySecureStopIterator { const NAME: &'static str = "Windows.Media.Protection.PlayReady.PlayReadySecureStopIterator"; } -#[cfg(feature = "Foundation_Collections")] -::windows_core::imp::interface_hierarchy!(PlayReadySecureStopIterator, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for PlayReadySecureStopIterator {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PlayReadySecureStopServiceRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PlayReadySecureStopServiceRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(PlayReadySecureStopServiceRequest, super::IMediaProtectionServiceRequest, IPlayReadySecureStopServiceRequest, IPlayReadyServiceRequest); impl PlayReadySecureStopServiceRequest { pub fn ProtectionSystem(&self) -> ::windows_core::Result<::windows_core::GUID> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ProtectionSystem)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Type(&self) -> ::windows_core::Result<::windows_core::GUID> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Type)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4607,7 +4122,7 @@ impl PlayReadySecureStopServiceRequest { }) } pub fn Uri(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Uri)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4617,50 +4132,50 @@ impl PlayReadySecureStopServiceRequest { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn ResponseCustomData(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ResponseCustomData)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ChallengeCustomData(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ChallengeCustomData)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetChallengeCustomData(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetChallengeCustomData)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn BeginServiceRequest(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).BeginServiceRequest)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn NextServiceRequest(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NextServiceRequest)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GenerateManualEnablingChallenge(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GenerateManualEnablingChallenge)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ProcessManualEnablingResponse(&self, responsebytes: &[u8]) -> ::windows_core::Result<::windows_core::HRESULT> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ProcessManualEnablingResponse)(::windows_core::Interface::as_raw(this), responsebytes.len().try_into().unwrap(), responsebytes.as_ptr(), &mut result__).from_abi(result__) @@ -4677,20 +4192,15 @@ impl ::windows_core::RuntimeType for PlayReadySecureStopServiceRequest { } unsafe impl ::windows_core::Interface for PlayReadySecureStopServiceRequest { type Vtable = IPlayReadySecureStopServiceRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PlayReadySecureStopServiceRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PlayReadySecureStopServiceRequest { const NAME: &'static str = "Windows.Media.Protection.PlayReady.PlayReadySecureStopServiceRequest"; } -::windows_core::imp::interface_hierarchy!(PlayReadySecureStopServiceRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for PlayReadySecureStopServiceRequest {} -impl ::windows_core::CanTryInto for PlayReadySecureStopServiceRequest {} -impl ::windows_core::CanTryInto for PlayReadySecureStopServiceRequest {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PlayReadySoapMessage(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PlayReadySoapMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PlayReadySoapMessage { pub fn GetMessageBody(&self) -> ::windows_core::Result<::windows_core::Array> { let this = self; @@ -4721,14 +4231,11 @@ impl ::windows_core::RuntimeType for PlayReadySoapMessage { } unsafe impl ::windows_core::Interface for PlayReadySoapMessage { type Vtable = IPlayReadySoapMessage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PlayReadySoapMessage { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PlayReadySoapMessage { const NAME: &'static str = "Windows.Media.Protection.PlayReady.PlayReadySoapMessage"; } -::windows_core::imp::interface_hierarchy!(PlayReadySoapMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); pub struct PlayReadyStatics; impl PlayReadyStatics { pub fn DomainJoinServiceRequestType() -> ::windows_core::Result<::windows_core::GUID> { diff --git a/crates/libs/windows/src/Windows/Media/Protection/impl.rs b/crates/libs/windows/src/Windows/Media/Protection/impl.rs index c2dbf90816..88ae37effa 100644 --- a/crates/libs/windows/src/Windows/Media/Protection/impl.rs +++ b/crates/libs/windows/src/Windows/Media/Protection/impl.rs @@ -36,6 +36,6 @@ impl IMediaProtectionServiceRequest_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/Media/Protection/mod.rs b/crates/libs/windows/src/Windows/Media/Protection/mod.rs index 2ec4424e7d..79d8b9cce2 100644 --- a/crates/libs/windows/src/Windows/Media/Protection/mod.rs +++ b/crates/libs/windows/src/Windows/Media/Protection/mod.rs @@ -1,16 +1,7 @@ #[cfg(feature = "Media_Protection_PlayReady")] #[doc = "Required features: `\"Media_Protection_PlayReady\"`"] pub mod PlayReady; -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IComponentLoadFailedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IComponentLoadFailedEventArgs { - type Vtable = IComponentLoadFailedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IComponentLoadFailedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x95972e93_7746_417e_8495_f031bbc5862c); -} +::windows_core::imp::com_interface!(IComponentLoadFailedEventArgs, IComponentLoadFailedEventArgs_Vtbl, 0x95972e93_7746_417e_8495_f031bbc5862c); #[repr(C)] #[doc(hidden)] pub struct IComponentLoadFailedEventArgs_Vtbl { @@ -18,32 +9,14 @@ pub struct IComponentLoadFailedEventArgs_Vtbl { pub Information: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Completion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IComponentRenewalStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IComponentRenewalStatics { - type Vtable = IComponentRenewalStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IComponentRenewalStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6ffbcd67_b795_48c5_8b7b_a7c4efe202e3); -} +::windows_core::imp::com_interface!(IComponentRenewalStatics, IComponentRenewalStatics_Vtbl, 0x6ffbcd67_b795_48c5_8b7b_a7c4efe202e3); #[repr(C)] #[doc(hidden)] pub struct IComponentRenewalStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub RenewSystemComponentsAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, information: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHdcpSession(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHdcpSession { - type Vtable = IHdcpSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHdcpSession { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x718845e9_64d7_426d_809b_1be461941a2a); -} +::windows_core::imp::com_interface!(IHdcpSession, IHdcpSession_Vtbl, 0x718845e9_64d7_426d_809b_1be461941a2a); #[repr(C)] #[doc(hidden)] pub struct IHdcpSession_Vtbl { @@ -54,16 +27,7 @@ pub struct IHdcpSession_Vtbl { pub ProtectionChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveProtectionChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaProtectionManager(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaProtectionManager { - type Vtable = IMediaProtectionManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaProtectionManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x45694947_c741_434b_a79e_474c12d93d2f); -} +::windows_core::imp::com_interface!(IMediaProtectionManager, IMediaProtectionManager_Vtbl, 0x45694947_c741_434b_a79e_474c12d93d2f); #[repr(C)] #[doc(hidden)] pub struct IMediaProtectionManager_Vtbl { @@ -79,16 +43,7 @@ pub struct IMediaProtectionManager_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Properties: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaProtectionPMPServer(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaProtectionPMPServer { - type Vtable = IMediaProtectionPMPServer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaProtectionPMPServer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c111226_7b26_4d31_95bb_9c1b08ef7fc0); -} +::windows_core::imp::com_interface!(IMediaProtectionPMPServer, IMediaProtectionPMPServer_Vtbl, 0x0c111226_7b26_4d31_95bb_9c1b08ef7fc0); #[repr(C)] #[doc(hidden)] pub struct IMediaProtectionPMPServer_Vtbl { @@ -98,16 +53,7 @@ pub struct IMediaProtectionPMPServer_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Properties: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaProtectionPMPServerFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaProtectionPMPServerFactory { - type Vtable = IMediaProtectionPMPServerFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaProtectionPMPServerFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x602c8e5e_f7d2_487e_af91_dbc4252b2182); -} +::windows_core::imp::com_interface!(IMediaProtectionPMPServerFactory, IMediaProtectionPMPServerFactory_Vtbl, 0x602c8e5e_f7d2_487e_af91_dbc4252b2182); #[repr(C)] #[doc(hidden)] pub struct IMediaProtectionPMPServerFactory_Vtbl { @@ -117,25 +63,15 @@ pub struct IMediaProtectionPMPServerFactory_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] CreatePMPServer: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaProtectionServiceCompletion(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaProtectionServiceCompletion { - type Vtable = IMediaProtectionServiceCompletion_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaProtectionServiceCompletion { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8b5cca18_cfd5_44ee_a2ed_df76010c14b5); -} +::windows_core::imp::com_interface!(IMediaProtectionServiceCompletion, IMediaProtectionServiceCompletion_Vtbl, 0x8b5cca18_cfd5_44ee_a2ed_df76010c14b5); #[repr(C)] #[doc(hidden)] pub struct IMediaProtectionServiceCompletion_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Complete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, success: bool) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaProtectionServiceRequest(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMediaProtectionServiceRequest, IMediaProtectionServiceRequest_Vtbl, 0xb1de0ea6_2094_478d_87a4_8b95200f85c6); +::windows_core::imp::interface_hierarchy!(IMediaProtectionServiceRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IMediaProtectionServiceRequest { pub fn ProtectionSystem(&self) -> ::windows_core::Result<::windows_core::GUID> { let this = self; @@ -152,16 +88,9 @@ impl IMediaProtectionServiceRequest { } } } -::windows_core::imp::interface_hierarchy!(IMediaProtectionServiceRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IMediaProtectionServiceRequest { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IMediaProtectionServiceRequest { - type Vtable = IMediaProtectionServiceRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaProtectionServiceRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb1de0ea6_2094_478d_87a4_8b95200f85c6); -} #[repr(C)] #[doc(hidden)] pub struct IMediaProtectionServiceRequest_Vtbl { @@ -169,32 +98,14 @@ pub struct IMediaProtectionServiceRequest_Vtbl { pub ProtectionSystem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, pub Type: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProtectionCapabilities(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProtectionCapabilities { - type Vtable = IProtectionCapabilities_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProtectionCapabilities { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc7ac5d7e_7480_4d29_a464_7bcd913dd8e4); -} +::windows_core::imp::com_interface!(IProtectionCapabilities, IProtectionCapabilities_Vtbl, 0xc7ac5d7e_7480_4d29_a464_7bcd913dd8e4); #[repr(C)] #[doc(hidden)] pub struct IProtectionCapabilities_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub IsTypeSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: ::std::mem::MaybeUninit<::windows_core::HSTRING>, keysystem: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut ProtectionCapabilityResult) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRevocationAndRenewalInformation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRevocationAndRenewalInformation { - type Vtable = IRevocationAndRenewalInformation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRevocationAndRenewalInformation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf3a1937b_2501_439e_a6e7_6fc95e175fcf); -} +::windows_core::imp::com_interface!(IRevocationAndRenewalInformation, IRevocationAndRenewalInformation_Vtbl, 0xf3a1937b_2501_439e_a6e7_6fc95e175fcf); #[repr(C)] #[doc(hidden)] pub struct IRevocationAndRenewalInformation_Vtbl { @@ -204,16 +115,7 @@ pub struct IRevocationAndRenewalInformation_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Items: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRevocationAndRenewalItem(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRevocationAndRenewalItem { - type Vtable = IRevocationAndRenewalItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRevocationAndRenewalItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3099c20c_3cf0_49ea_902d_caf32d2dde2c); -} +::windows_core::imp::com_interface!(IRevocationAndRenewalItem, IRevocationAndRenewalItem_Vtbl, 0x3099c20c_3cf0_49ea_902d_caf32d2dde2c); #[repr(C)] #[doc(hidden)] pub struct IRevocationAndRenewalItem_Vtbl { @@ -224,16 +126,7 @@ pub struct IRevocationAndRenewalItem_Vtbl { pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub RenewalId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IServiceRequestedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IServiceRequestedEventArgs { - type Vtable = IServiceRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IServiceRequestedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x34283baf_abb4_4fc1_bd89_93f106573a49); -} +::windows_core::imp::com_interface!(IServiceRequestedEventArgs, IServiceRequestedEventArgs_Vtbl, 0x34283baf_abb4_4fc1_bd89_93f106573a49); #[repr(C)] #[doc(hidden)] pub struct IServiceRequestedEventArgs_Vtbl { @@ -241,16 +134,7 @@ pub struct IServiceRequestedEventArgs_Vtbl { pub Request: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Completion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IServiceRequestedEventArgs2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IServiceRequestedEventArgs2 { - type Vtable = IServiceRequestedEventArgs2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IServiceRequestedEventArgs2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x553c69d6_fafe_4128_8dfa_130e398a13a7); -} +::windows_core::imp::com_interface!(IServiceRequestedEventArgs2, IServiceRequestedEventArgs2_Vtbl, 0x553c69d6_fafe_4128_8dfa_130e398a13a7); #[repr(C)] #[doc(hidden)] pub struct IServiceRequestedEventArgs2_Vtbl { @@ -263,6 +147,7 @@ pub struct IServiceRequestedEventArgs2_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ComponentLoadFailedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ComponentLoadFailedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ComponentLoadFailedEventArgs { pub fn Information(&self) -> ::windows_core::Result { let this = self; @@ -284,14 +169,11 @@ impl ::windows_core::RuntimeType for ComponentLoadFailedEventArgs { } unsafe impl ::windows_core::Interface for ComponentLoadFailedEventArgs { type Vtable = IComponentLoadFailedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ComponentLoadFailedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ComponentLoadFailedEventArgs { const NAME: &'static str = "Windows.Media.Protection.ComponentLoadFailedEventArgs"; } -::windows_core::imp::interface_hierarchy!(ComponentLoadFailedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ComponentLoadFailedEventArgs {} unsafe impl ::core::marker::Sync for ComponentLoadFailedEventArgs {} pub struct ComponentRenewal; @@ -317,6 +199,8 @@ impl ::windows_core::RuntimeName for ComponentRenewal { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HdcpSession(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HdcpSession, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(HdcpSession, super::super::Foundation::IClosable); impl HdcpSession { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -326,7 +210,7 @@ impl HdcpSession { SHARED.call(callback) } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn IsEffectiveProtectionAtLeast(&self, protection: HdcpProtection) -> ::windows_core::Result { @@ -370,20 +254,17 @@ impl ::windows_core::RuntimeType for HdcpSession { } unsafe impl ::windows_core::Interface for HdcpSession { type Vtable = IHdcpSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HdcpSession { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HdcpSession { const NAME: &'static str = "Windows.Media.Protection.HdcpSession"; } -::windows_core::imp::interface_hierarchy!(HdcpSession, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for HdcpSession {} unsafe impl ::core::marker::Send for HdcpSession {} unsafe impl ::core::marker::Sync for HdcpSession {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaProtectionManager(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaProtectionManager, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaProtectionManager { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -449,19 +330,17 @@ impl ::windows_core::RuntimeType for MediaProtectionManager { } unsafe impl ::windows_core::Interface for MediaProtectionManager { type Vtable = IMediaProtectionManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaProtectionManager { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaProtectionManager { const NAME: &'static str = "Windows.Media.Protection.MediaProtectionManager"; } -::windows_core::imp::interface_hierarchy!(MediaProtectionManager, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaProtectionManager {} unsafe impl ::core::marker::Sync for MediaProtectionManager {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaProtectionPMPServer(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaProtectionPMPServer, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaProtectionPMPServer { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -476,11 +355,11 @@ impl MediaProtectionPMPServer { #[cfg(feature = "Foundation_Collections")] pub fn CreatePMPServer(pproperties: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IMediaProtectionPMPServerFactory(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreatePMPServer)(::windows_core::Interface::as_raw(this), pproperties.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreatePMPServer)(::windows_core::Interface::as_raw(this), pproperties.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -494,19 +373,17 @@ impl ::windows_core::RuntimeType for MediaProtectionPMPServer { } unsafe impl ::windows_core::Interface for MediaProtectionPMPServer { type Vtable = IMediaProtectionPMPServer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaProtectionPMPServer { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaProtectionPMPServer { const NAME: &'static str = "Windows.Media.Protection.MediaProtectionPMPServer"; } -::windows_core::imp::interface_hierarchy!(MediaProtectionPMPServer, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaProtectionPMPServer {} unsafe impl ::core::marker::Sync for MediaProtectionPMPServer {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaProtectionServiceCompletion(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaProtectionServiceCompletion, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaProtectionServiceCompletion { pub fn Complete(&self, success: bool) -> ::windows_core::Result<()> { let this = self; @@ -518,19 +395,17 @@ impl ::windows_core::RuntimeType for MediaProtectionServiceCompletion { } unsafe impl ::windows_core::Interface for MediaProtectionServiceCompletion { type Vtable = IMediaProtectionServiceCompletion_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaProtectionServiceCompletion { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaProtectionServiceCompletion { const NAME: &'static str = "Windows.Media.Protection.MediaProtectionServiceCompletion"; } -::windows_core::imp::interface_hierarchy!(MediaProtectionServiceCompletion, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaProtectionServiceCompletion {} unsafe impl ::core::marker::Sync for MediaProtectionServiceCompletion {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ProtectionCapabilities(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ProtectionCapabilities, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ProtectionCapabilities { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -552,19 +427,17 @@ impl ::windows_core::RuntimeType for ProtectionCapabilities { } unsafe impl ::windows_core::Interface for ProtectionCapabilities { type Vtable = IProtectionCapabilities_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ProtectionCapabilities { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ProtectionCapabilities { const NAME: &'static str = "Windows.Media.Protection.ProtectionCapabilities"; } -::windows_core::imp::interface_hierarchy!(ProtectionCapabilities, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ProtectionCapabilities {} unsafe impl ::core::marker::Sync for ProtectionCapabilities {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RevocationAndRenewalInformation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RevocationAndRenewalInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RevocationAndRenewalInformation { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -581,19 +454,17 @@ impl ::windows_core::RuntimeType for RevocationAndRenewalInformation { } unsafe impl ::windows_core::Interface for RevocationAndRenewalInformation { type Vtable = IRevocationAndRenewalInformation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RevocationAndRenewalInformation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RevocationAndRenewalInformation { const NAME: &'static str = "Windows.Media.Protection.RevocationAndRenewalInformation"; } -::windows_core::imp::interface_hierarchy!(RevocationAndRenewalInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RevocationAndRenewalInformation {} unsafe impl ::core::marker::Sync for RevocationAndRenewalInformation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RevocationAndRenewalItem(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RevocationAndRenewalItem, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RevocationAndRenewalItem { pub fn Reasons(&self) -> ::windows_core::Result { let this = self; @@ -636,19 +507,17 @@ impl ::windows_core::RuntimeType for RevocationAndRenewalItem { } unsafe impl ::windows_core::Interface for RevocationAndRenewalItem { type Vtable = IRevocationAndRenewalItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RevocationAndRenewalItem { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RevocationAndRenewalItem { const NAME: &'static str = "Windows.Media.Protection.RevocationAndRenewalItem"; } -::windows_core::imp::interface_hierarchy!(RevocationAndRenewalItem, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RevocationAndRenewalItem {} unsafe impl ::core::marker::Sync for RevocationAndRenewalItem {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ServiceRequestedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ServiceRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ServiceRequestedEventArgs { pub fn Request(&self) -> ::windows_core::Result { let this = self; @@ -667,7 +536,7 @@ impl ServiceRequestedEventArgs { #[doc = "Required features: `\"Media_Playback\"`"] #[cfg(feature = "Media_Playback")] pub fn MediaPlaybackItem(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MediaPlaybackItem)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -679,14 +548,11 @@ impl ::windows_core::RuntimeType for ServiceRequestedEventArgs { } unsafe impl ::windows_core::Interface for ServiceRequestedEventArgs { type Vtable = IServiceRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ServiceRequestedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ServiceRequestedEventArgs { const NAME: &'static str = "Windows.Media.Protection.ServiceRequestedEventArgs"; } -::windows_core::imp::interface_hierarchy!(ServiceRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ServiceRequestedEventArgs {} unsafe impl ::core::marker::Sync for ServiceRequestedEventArgs {} #[repr(transparent)] @@ -854,9 +720,7 @@ impl ::core::ops::Not for RevocationAndRenewalReasons { impl ::windows_core::RuntimeType for RevocationAndRenewalReasons { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::from_slice(b"enum(Windows.Media.Protection.RevocationAndRenewalReasons;u4)"); } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ComponentLoadFailedEventHandler(pub ::windows_core::IUnknown); +::windows_core::imp::com_interface!(ComponentLoadFailedEventHandler, ComponentLoadFailedEventHandler_Vtbl, 0x95da643c_6db9_424b_86ca_091af432081c); impl ComponentLoadFailedEventHandler { pub fn new, ::core::option::Option<&ComponentLoadFailedEventArgs>) -> ::windows_core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = ComponentLoadFailedEventHandlerBox:: { vtable: &ComponentLoadFailedEventHandlerBox::::VTABLE, count: ::windows_core::imp::RefCount::new(1), invoke }; @@ -887,7 +751,7 @@ impl, ::core::option::O if iid.is_null() || interface.is_null() { return ::windows_core::HRESULT(-2147467261); } - *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; + *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::Interface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::Interface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; if (*interface).is_null() { ::windows_core::HRESULT(-2147467262) } else { @@ -912,12 +776,6 @@ impl, ::core::option::O ((*this).invoke)(::windows_core::from_raw_borrowed(&sender), ::windows_core::from_raw_borrowed(&e)).into() } } -unsafe impl ::windows_core::Interface for ComponentLoadFailedEventHandler { - type Vtable = ComponentLoadFailedEventHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ComponentLoadFailedEventHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x95da643c_6db9_424b_86ca_091af432081c); -} impl ::windows_core::RuntimeType for ComponentLoadFailedEventHandler { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } @@ -927,9 +785,7 @@ pub struct ComponentLoadFailedEventHandler_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Invoke: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sender: *mut ::core::ffi::c_void, e: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct RebootNeededEventHandler(pub ::windows_core::IUnknown); +::windows_core::imp::com_interface!(RebootNeededEventHandler, RebootNeededEventHandler_Vtbl, 0x64e12a45_973b_4a3a_b260_91898a49a82c); impl RebootNeededEventHandler { pub fn new) -> ::windows_core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = RebootNeededEventHandlerBox:: { vtable: &RebootNeededEventHandlerBox::::VTABLE, count: ::windows_core::imp::RefCount::new(1), invoke }; @@ -959,7 +815,7 @@ impl) -> ::windows_core if iid.is_null() || interface.is_null() { return ::windows_core::HRESULT(-2147467261); } - *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; + *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::Interface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::Interface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; if (*interface).is_null() { ::windows_core::HRESULT(-2147467262) } else { @@ -984,12 +840,6 @@ impl) -> ::windows_core ((*this).invoke)(::windows_core::from_raw_borrowed(&sender)).into() } } -unsafe impl ::windows_core::Interface for RebootNeededEventHandler { - type Vtable = RebootNeededEventHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RebootNeededEventHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x64e12a45_973b_4a3a_b260_91898a49a82c); -} impl ::windows_core::RuntimeType for RebootNeededEventHandler { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } @@ -999,9 +849,7 @@ pub struct RebootNeededEventHandler_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Invoke: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sender: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ServiceRequestedEventHandler(pub ::windows_core::IUnknown); +::windows_core::imp::com_interface!(ServiceRequestedEventHandler, ServiceRequestedEventHandler_Vtbl, 0xd2d690ba_cac9_48e1_95c0_d38495a84055); impl ServiceRequestedEventHandler { pub fn new, ::core::option::Option<&ServiceRequestedEventArgs>) -> ::windows_core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = ServiceRequestedEventHandlerBox:: { vtable: &ServiceRequestedEventHandlerBox::::VTABLE, count: ::windows_core::imp::RefCount::new(1), invoke }; @@ -1032,7 +880,7 @@ impl, ::core::option::O if iid.is_null() || interface.is_null() { return ::windows_core::HRESULT(-2147467261); } - *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; + *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::Interface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::Interface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; if (*interface).is_null() { ::windows_core::HRESULT(-2147467262) } else { @@ -1057,12 +905,6 @@ impl, ::core::option::O ((*this).invoke)(::windows_core::from_raw_borrowed(&sender), ::windows_core::from_raw_borrowed(&e)).into() } } -unsafe impl ::windows_core::Interface for ServiceRequestedEventHandler { - type Vtable = ServiceRequestedEventHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ServiceRequestedEventHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd2d690ba_cac9_48e1_95c0_d38495a84055); -} impl ::windows_core::RuntimeType for ServiceRequestedEventHandler { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } diff --git a/crates/libs/windows/src/Windows/Media/SpeechRecognition/impl.rs b/crates/libs/windows/src/Windows/Media/SpeechRecognition/impl.rs index 80d3c53dce..73fe1ce287 100644 --- a/crates/libs/windows/src/Windows/Media/SpeechRecognition/impl.rs +++ b/crates/libs/windows/src/Windows/Media/SpeechRecognition/impl.rs @@ -84,6 +84,6 @@ impl ISpeechRecognitionConstraint_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/Media/SpeechRecognition/mod.rs b/crates/libs/windows/src/Windows/Media/SpeechRecognition/mod.rs index 494a271d18..f8c5f9de39 100644 --- a/crates/libs/windows/src/Windows/Media/SpeechRecognition/mod.rs +++ b/crates/libs/windows/src/Windows/Media/SpeechRecognition/mod.rs @@ -1,45 +1,18 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechContinuousRecognitionCompletedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpeechContinuousRecognitionCompletedEventArgs { - type Vtable = ISpeechContinuousRecognitionCompletedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpeechContinuousRecognitionCompletedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe3d069bb_e30c_5e18_424b_7fbe81f8fbd0); -} +::windows_core::imp::com_interface!(ISpeechContinuousRecognitionCompletedEventArgs, ISpeechContinuousRecognitionCompletedEventArgs_Vtbl, 0xe3d069bb_e30c_5e18_424b_7fbe81f8fbd0); #[repr(C)] #[doc(hidden)] pub struct ISpeechContinuousRecognitionCompletedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut SpeechRecognitionResultStatus) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechContinuousRecognitionResultGeneratedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpeechContinuousRecognitionResultGeneratedEventArgs { - type Vtable = ISpeechContinuousRecognitionResultGeneratedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpeechContinuousRecognitionResultGeneratedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x19091e1e_6e7e_5a46_40fb_76594f786504); -} +::windows_core::imp::com_interface!(ISpeechContinuousRecognitionResultGeneratedEventArgs, ISpeechContinuousRecognitionResultGeneratedEventArgs_Vtbl, 0x19091e1e_6e7e_5a46_40fb_76594f786504); #[repr(C)] #[doc(hidden)] pub struct ISpeechContinuousRecognitionResultGeneratedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Result: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechContinuousRecognitionSession(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpeechContinuousRecognitionSession { - type Vtable = ISpeechContinuousRecognitionSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpeechContinuousRecognitionSession { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6a213c04_6614_49f8_99a2_b5e9b3a085c8); -} +::windows_core::imp::com_interface!(ISpeechContinuousRecognitionSession, ISpeechContinuousRecognitionSession_Vtbl, 0x6a213c04_6614_49f8_99a2_b5e9b3a085c8); #[repr(C)] #[doc(hidden)] pub struct ISpeechContinuousRecognitionSession_Vtbl { @@ -57,25 +30,15 @@ pub struct ISpeechContinuousRecognitionSession_Vtbl { pub ResultGenerated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveResultGenerated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechRecognitionCompilationResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpeechRecognitionCompilationResult { - type Vtable = ISpeechRecognitionCompilationResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpeechRecognitionCompilationResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x407e6c5d_6ac7_4da4_9cc1_2fce32cf7489); -} +::windows_core::imp::com_interface!(ISpeechRecognitionCompilationResult, ISpeechRecognitionCompilationResult_Vtbl, 0x407e6c5d_6ac7_4da4_9cc1_2fce32cf7489); #[repr(C)] #[doc(hidden)] pub struct ISpeechRecognitionCompilationResult_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut SpeechRecognitionResultStatus) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechRecognitionConstraint(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpeechRecognitionConstraint, ISpeechRecognitionConstraint_Vtbl, 0x79ac1628_4d68_43c4_8911_40dc4101b55b); +::windows_core::imp::interface_hierarchy!(ISpeechRecognitionConstraint, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ISpeechRecognitionConstraint { pub fn IsEnabled(&self) -> ::windows_core::Result { let this = self; @@ -118,16 +81,9 @@ impl ISpeechRecognitionConstraint { unsafe { (::windows_core::Interface::vtable(this).SetProbability)(::windows_core::Interface::as_raw(this), value).ok() } } } -::windows_core::imp::interface_hierarchy!(ISpeechRecognitionConstraint, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for ISpeechRecognitionConstraint { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for ISpeechRecognitionConstraint { - type Vtable = ISpeechRecognitionConstraint_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpeechRecognitionConstraint { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x79ac1628_4d68_43c4_8911_40dc4101b55b); -} #[repr(C)] #[doc(hidden)] pub struct ISpeechRecognitionConstraint_Vtbl { @@ -140,16 +96,7 @@ pub struct ISpeechRecognitionConstraint_Vtbl { pub Probability: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut SpeechRecognitionConstraintProbability) -> ::windows_core::HRESULT, pub SetProbability: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: SpeechRecognitionConstraintProbability) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechRecognitionGrammarFileConstraint(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpeechRecognitionGrammarFileConstraint { - type Vtable = ISpeechRecognitionGrammarFileConstraint_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpeechRecognitionGrammarFileConstraint { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb5031a8f_85ca_4fa4_b11a_474fc41b3835); -} +::windows_core::imp::com_interface!(ISpeechRecognitionGrammarFileConstraint, ISpeechRecognitionGrammarFileConstraint_Vtbl, 0xb5031a8f_85ca_4fa4_b11a_474fc41b3835); #[repr(C)] #[doc(hidden)] pub struct ISpeechRecognitionGrammarFileConstraint_Vtbl { @@ -159,16 +106,7 @@ pub struct ISpeechRecognitionGrammarFileConstraint_Vtbl { #[cfg(not(feature = "Storage"))] GrammarFile: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechRecognitionGrammarFileConstraintFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpeechRecognitionGrammarFileConstraintFactory { - type Vtable = ISpeechRecognitionGrammarFileConstraintFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpeechRecognitionGrammarFileConstraintFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3da770eb_c479_4c27_9f19_89974ef392d1); -} +::windows_core::imp::com_interface!(ISpeechRecognitionGrammarFileConstraintFactory, ISpeechRecognitionGrammarFileConstraintFactory_Vtbl, 0x3da770eb_c479_4c27_9f19_89974ef392d1); #[repr(C)] #[doc(hidden)] pub struct ISpeechRecognitionGrammarFileConstraintFactory_Vtbl { @@ -182,48 +120,21 @@ pub struct ISpeechRecognitionGrammarFileConstraintFactory_Vtbl { #[cfg(not(feature = "Storage"))] CreateWithTag: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechRecognitionHypothesis(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpeechRecognitionHypothesis { - type Vtable = ISpeechRecognitionHypothesis_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpeechRecognitionHypothesis { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7a7b25b0_99c5_4f7d_bf84_10aa1302b634); -} +::windows_core::imp::com_interface!(ISpeechRecognitionHypothesis, ISpeechRecognitionHypothesis_Vtbl, 0x7a7b25b0_99c5_4f7d_bf84_10aa1302b634); #[repr(C)] #[doc(hidden)] pub struct ISpeechRecognitionHypothesis_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Text: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechRecognitionHypothesisGeneratedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpeechRecognitionHypothesisGeneratedEventArgs { - type Vtable = ISpeechRecognitionHypothesisGeneratedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpeechRecognitionHypothesisGeneratedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x55161a7a_8023_5866_411d_1213bb271476); -} +::windows_core::imp::com_interface!(ISpeechRecognitionHypothesisGeneratedEventArgs, ISpeechRecognitionHypothesisGeneratedEventArgs_Vtbl, 0x55161a7a_8023_5866_411d_1213bb271476); #[repr(C)] #[doc(hidden)] pub struct ISpeechRecognitionHypothesisGeneratedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Hypothesis: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechRecognitionListConstraint(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpeechRecognitionListConstraint { - type Vtable = ISpeechRecognitionListConstraint_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpeechRecognitionListConstraint { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x09c487e9_e4ad_4526_81f2_4946fb481d98); -} +::windows_core::imp::com_interface!(ISpeechRecognitionListConstraint, ISpeechRecognitionListConstraint_Vtbl, 0x09c487e9_e4ad_4526_81f2_4946fb481d98); #[repr(C)] #[doc(hidden)] pub struct ISpeechRecognitionListConstraint_Vtbl { @@ -233,16 +144,7 @@ pub struct ISpeechRecognitionListConstraint_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Commands: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechRecognitionListConstraintFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpeechRecognitionListConstraintFactory { - type Vtable = ISpeechRecognitionListConstraintFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpeechRecognitionListConstraintFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x40f3cdc7_562a_426a_9f3b_3b4e282be1d5); -} +::windows_core::imp::com_interface!(ISpeechRecognitionListConstraintFactory, ISpeechRecognitionListConstraintFactory_Vtbl, 0x40f3cdc7_562a_426a_9f3b_3b4e282be1d5); #[repr(C)] #[doc(hidden)] pub struct ISpeechRecognitionListConstraintFactory_Vtbl { @@ -256,32 +158,14 @@ pub struct ISpeechRecognitionListConstraintFactory_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] CreateWithTag: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechRecognitionQualityDegradingEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpeechRecognitionQualityDegradingEventArgs { - type Vtable = ISpeechRecognitionQualityDegradingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpeechRecognitionQualityDegradingEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4fe24105_8c3a_4c7e_8d0a_5bd4f5b14ad8); -} +::windows_core::imp::com_interface!(ISpeechRecognitionQualityDegradingEventArgs, ISpeechRecognitionQualityDegradingEventArgs_Vtbl, 0x4fe24105_8c3a_4c7e_8d0a_5bd4f5b14ad8); #[repr(C)] #[doc(hidden)] pub struct ISpeechRecognitionQualityDegradingEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Problem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut SpeechRecognitionAudioProblem) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechRecognitionResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpeechRecognitionResult { - type Vtable = ISpeechRecognitionResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpeechRecognitionResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4e303157_034e_4652_857e_d0454cc4beec); -} +::windows_core::imp::com_interface!(ISpeechRecognitionResult, ISpeechRecognitionResult_Vtbl, 0x4e303157_034e_4652_857e_d0454cc4beec); #[repr(C)] #[doc(hidden)] pub struct ISpeechRecognitionResult_Vtbl { @@ -301,16 +185,7 @@ pub struct ISpeechRecognitionResult_Vtbl { RulePath: usize, pub RawConfidence: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechRecognitionResult2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpeechRecognitionResult2 { - type Vtable = ISpeechRecognitionResult2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpeechRecognitionResult2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaf7ed1ba_451b_4166_a0c1_1ffe84032d03); -} +::windows_core::imp::com_interface!(ISpeechRecognitionResult2, ISpeechRecognitionResult2_Vtbl, 0xaf7ed1ba_451b_4166_a0c1_1ffe84032d03); #[repr(C)] #[doc(hidden)] pub struct ISpeechRecognitionResult2_Vtbl { @@ -318,16 +193,7 @@ pub struct ISpeechRecognitionResult2_Vtbl { pub PhraseStartTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::DateTime) -> ::windows_core::HRESULT, pub PhraseDuration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::TimeSpan) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechRecognitionSemanticInterpretation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpeechRecognitionSemanticInterpretation { - type Vtable = ISpeechRecognitionSemanticInterpretation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpeechRecognitionSemanticInterpretation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaae1da9b_7e32_4c1f_89fe_0c65f486f52e); -} +::windows_core::imp::com_interface!(ISpeechRecognitionSemanticInterpretation, ISpeechRecognitionSemanticInterpretation_Vtbl, 0xaae1da9b_7e32_4c1f_89fe_0c65f486f52e); #[repr(C)] #[doc(hidden)] pub struct ISpeechRecognitionSemanticInterpretation_Vtbl { @@ -337,16 +203,7 @@ pub struct ISpeechRecognitionSemanticInterpretation_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Properties: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechRecognitionTopicConstraint(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpeechRecognitionTopicConstraint { - type Vtable = ISpeechRecognitionTopicConstraint_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpeechRecognitionTopicConstraint { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbf6fdf19_825d_4e69_a681_36e48cf1c93e); -} +::windows_core::imp::com_interface!(ISpeechRecognitionTopicConstraint, ISpeechRecognitionTopicConstraint_Vtbl, 0xbf6fdf19_825d_4e69_a681_36e48cf1c93e); #[repr(C)] #[doc(hidden)] pub struct ISpeechRecognitionTopicConstraint_Vtbl { @@ -354,16 +211,7 @@ pub struct ISpeechRecognitionTopicConstraint_Vtbl { pub Scenario: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut SpeechRecognitionScenario) -> ::windows_core::HRESULT, pub TopicHint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechRecognitionTopicConstraintFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpeechRecognitionTopicConstraintFactory { - type Vtable = ISpeechRecognitionTopicConstraintFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpeechRecognitionTopicConstraintFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6e6863df_ec05_47d7_a5df_56a3431e58d2); -} +::windows_core::imp::com_interface!(ISpeechRecognitionTopicConstraintFactory, ISpeechRecognitionTopicConstraintFactory_Vtbl, 0x6e6863df_ec05_47d7_a5df_56a3431e58d2); #[repr(C)] #[doc(hidden)] pub struct ISpeechRecognitionTopicConstraintFactory_Vtbl { @@ -371,31 +219,13 @@ pub struct ISpeechRecognitionTopicConstraintFactory_Vtbl { pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, scenario: SpeechRecognitionScenario, topichint: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateWithTag: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, scenario: SpeechRecognitionScenario, topichint: ::std::mem::MaybeUninit<::windows_core::HSTRING>, tag: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechRecognitionVoiceCommandDefinitionConstraint(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpeechRecognitionVoiceCommandDefinitionConstraint { - type Vtable = ISpeechRecognitionVoiceCommandDefinitionConstraint_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpeechRecognitionVoiceCommandDefinitionConstraint { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf2791c2b_1ef4_4ae7_9d77_b6ff10b8a3c2); -} +::windows_core::imp::com_interface!(ISpeechRecognitionVoiceCommandDefinitionConstraint, ISpeechRecognitionVoiceCommandDefinitionConstraint_Vtbl, 0xf2791c2b_1ef4_4ae7_9d77_b6ff10b8a3c2); #[repr(C)] #[doc(hidden)] pub struct ISpeechRecognitionVoiceCommandDefinitionConstraint_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechRecognizer(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpeechRecognizer { - type Vtable = ISpeechRecognizer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpeechRecognizer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0bc3c9cb_c26a_40f2_aeb5_8096b2e48073); -} +::windows_core::imp::com_interface!(ISpeechRecognizer, ISpeechRecognizer_Vtbl, 0x0bc3c9cb_c26a_40f2_aeb5_8096b2e48073); #[repr(C)] #[doc(hidden)] pub struct ISpeechRecognizer_Vtbl { @@ -418,16 +248,7 @@ pub struct ISpeechRecognizer_Vtbl { pub StateChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, statechangedhandler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveStateChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechRecognizer2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpeechRecognizer2 { - type Vtable = ISpeechRecognizer2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpeechRecognizer2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x63c9baf1_91e3_4ea4_86a1_7c3867d084a6); -} +::windows_core::imp::com_interface!(ISpeechRecognizer2, ISpeechRecognizer2_Vtbl, 0x63c9baf1_91e3_4ea4_86a1_7c3867d084a6); #[repr(C)] #[doc(hidden)] pub struct ISpeechRecognizer2_Vtbl { @@ -438,16 +259,7 @@ pub struct ISpeechRecognizer2_Vtbl { pub HypothesisGenerated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveHypothesisGenerated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechRecognizerFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpeechRecognizerFactory { - type Vtable = ISpeechRecognizerFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpeechRecognizerFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x60c488dd_7fb8_4033_ac70_d046f64818e1); -} +::windows_core::imp::com_interface!(ISpeechRecognizerFactory, ISpeechRecognizerFactory_Vtbl, 0x60c488dd_7fb8_4033_ac70_d046f64818e1); #[repr(C)] #[doc(hidden)] pub struct ISpeechRecognizerFactory_Vtbl { @@ -457,32 +269,14 @@ pub struct ISpeechRecognizerFactory_Vtbl { #[cfg(not(feature = "Globalization"))] Create: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechRecognizerStateChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpeechRecognizerStateChangedEventArgs { - type Vtable = ISpeechRecognizerStateChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpeechRecognizerStateChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x563d4f09_ba03_4bad_ad81_ddc6c4dab0c3); -} +::windows_core::imp::com_interface!(ISpeechRecognizerStateChangedEventArgs, ISpeechRecognizerStateChangedEventArgs_Vtbl, 0x563d4f09_ba03_4bad_ad81_ddc6c4dab0c3); #[repr(C)] #[doc(hidden)] pub struct ISpeechRecognizerStateChangedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub State: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut SpeechRecognizerState) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechRecognizerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpeechRecognizerStatics { - type Vtable = ISpeechRecognizerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpeechRecognizerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x87a35eac_a7dc_4b0b_bcc9_24f47c0b7ebf); -} +::windows_core::imp::com_interface!(ISpeechRecognizerStatics, ISpeechRecognizerStatics_Vtbl, 0x87a35eac_a7dc_4b0b_bcc9_24f47c0b7ebf); #[repr(C)] #[doc(hidden)] pub struct ISpeechRecognizerStatics_Vtbl { @@ -500,16 +294,7 @@ pub struct ISpeechRecognizerStatics_Vtbl { #[cfg(not(all(feature = "Foundation_Collections", feature = "Globalization")))] SupportedGrammarLanguages: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechRecognizerStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpeechRecognizerStatics2 { - type Vtable = ISpeechRecognizerStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpeechRecognizerStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1d1b0d95_7565_4ef9_a2f3_ba15162a96cf); -} +::windows_core::imp::com_interface!(ISpeechRecognizerStatics2, ISpeechRecognizerStatics2_Vtbl, 0x1d1b0d95_7565_4ef9_a2f3_ba15162a96cf); #[repr(C)] #[doc(hidden)] pub struct ISpeechRecognizerStatics2_Vtbl { @@ -519,16 +304,7 @@ pub struct ISpeechRecognizerStatics2_Vtbl { #[cfg(not(feature = "Globalization"))] TrySetSystemSpeechLanguageAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechRecognizerTimeouts(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpeechRecognizerTimeouts { - type Vtable = ISpeechRecognizerTimeouts_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpeechRecognizerTimeouts { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2ef76fca_6a3c_4dca_a153_df1bc88a79af); -} +::windows_core::imp::com_interface!(ISpeechRecognizerTimeouts, ISpeechRecognizerTimeouts_Vtbl, 0x2ef76fca_6a3c_4dca_a153_df1bc88a79af); #[repr(C)] #[doc(hidden)] pub struct ISpeechRecognizerTimeouts_Vtbl { @@ -540,16 +316,7 @@ pub struct ISpeechRecognizerTimeouts_Vtbl { pub BabbleTimeout: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::TimeSpan) -> ::windows_core::HRESULT, pub SetBabbleTimeout: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::Foundation::TimeSpan) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechRecognizerUIOptions(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpeechRecognizerUIOptions { - type Vtable = ISpeechRecognizerUIOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpeechRecognizerUIOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7888d641_b92b_44ba_a25f_d1864630641f); -} +::windows_core::imp::com_interface!(ISpeechRecognizerUIOptions, ISpeechRecognizerUIOptions_Vtbl, 0x7888d641_b92b_44ba_a25f_d1864630641f); #[repr(C)] #[doc(hidden)] pub struct ISpeechRecognizerUIOptions_Vtbl { @@ -563,16 +330,7 @@ pub struct ISpeechRecognizerUIOptions_Vtbl { pub ShowConfirmation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetShowConfirmation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVoiceCommandManager(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVoiceCommandManager { - type Vtable = IVoiceCommandManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVoiceCommandManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaa3a8dd5_b6e7_4ee2_baa9_dd6baced0a2b); -} +::windows_core::imp::com_interface!(IVoiceCommandManager, IVoiceCommandManager_Vtbl, 0xaa3a8dd5_b6e7_4ee2_baa9_dd6baced0a2b); #[repr(C)] #[doc(hidden)] pub struct IVoiceCommandManager_Vtbl { @@ -586,16 +344,7 @@ pub struct IVoiceCommandManager_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] InstalledCommandSets: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVoiceCommandSet(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVoiceCommandSet { - type Vtable = IVoiceCommandSet_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVoiceCommandSet { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0bedda75_46e6_4b11_a088_5c68632899b5); -} +::windows_core::imp::com_interface!(IVoiceCommandSet, IVoiceCommandSet_Vtbl, 0x0bedda75_46e6_4b11_a088_5c68632899b5); #[repr(C)] #[doc(hidden)] pub struct IVoiceCommandSet_Vtbl { @@ -610,6 +359,7 @@ pub struct IVoiceCommandSet_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpeechContinuousRecognitionCompletedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpeechContinuousRecognitionCompletedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SpeechContinuousRecognitionCompletedEventArgs { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -624,19 +374,17 @@ impl ::windows_core::RuntimeType for SpeechContinuousRecognitionCompletedEventAr } unsafe impl ::windows_core::Interface for SpeechContinuousRecognitionCompletedEventArgs { type Vtable = ISpeechContinuousRecognitionCompletedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpeechContinuousRecognitionCompletedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpeechContinuousRecognitionCompletedEventArgs { const NAME: &'static str = "Windows.Media.SpeechRecognition.SpeechContinuousRecognitionCompletedEventArgs"; } -::windows_core::imp::interface_hierarchy!(SpeechContinuousRecognitionCompletedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SpeechContinuousRecognitionCompletedEventArgs {} unsafe impl ::core::marker::Sync for SpeechContinuousRecognitionCompletedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpeechContinuousRecognitionResultGeneratedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpeechContinuousRecognitionResultGeneratedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SpeechContinuousRecognitionResultGeneratedEventArgs { pub fn Result(&self) -> ::windows_core::Result { let this = self; @@ -651,19 +399,17 @@ impl ::windows_core::RuntimeType for SpeechContinuousRecognitionResultGeneratedE } unsafe impl ::windows_core::Interface for SpeechContinuousRecognitionResultGeneratedEventArgs { type Vtable = ISpeechContinuousRecognitionResultGeneratedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpeechContinuousRecognitionResultGeneratedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpeechContinuousRecognitionResultGeneratedEventArgs { const NAME: &'static str = "Windows.Media.SpeechRecognition.SpeechContinuousRecognitionResultGeneratedEventArgs"; } -::windows_core::imp::interface_hierarchy!(SpeechContinuousRecognitionResultGeneratedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SpeechContinuousRecognitionResultGeneratedEventArgs {} unsafe impl ::core::marker::Sync for SpeechContinuousRecognitionResultGeneratedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpeechContinuousRecognitionSession(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpeechContinuousRecognitionSession, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SpeechContinuousRecognitionSession { pub fn AutoStopSilenceTimeout(&self) -> ::windows_core::Result { let this = self; @@ -749,19 +495,17 @@ impl ::windows_core::RuntimeType for SpeechContinuousRecognitionSession { } unsafe impl ::windows_core::Interface for SpeechContinuousRecognitionSession { type Vtable = ISpeechContinuousRecognitionSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpeechContinuousRecognitionSession { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpeechContinuousRecognitionSession { const NAME: &'static str = "Windows.Media.SpeechRecognition.SpeechContinuousRecognitionSession"; } -::windows_core::imp::interface_hierarchy!(SpeechContinuousRecognitionSession, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SpeechContinuousRecognitionSession {} unsafe impl ::core::marker::Sync for SpeechContinuousRecognitionSession {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpeechRecognitionCompilationResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpeechRecognitionCompilationResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SpeechRecognitionCompilationResult { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -776,58 +520,57 @@ impl ::windows_core::RuntimeType for SpeechRecognitionCompilationResult { } unsafe impl ::windows_core::Interface for SpeechRecognitionCompilationResult { type Vtable = ISpeechRecognitionCompilationResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpeechRecognitionCompilationResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpeechRecognitionCompilationResult { const NAME: &'static str = "Windows.Media.SpeechRecognition.SpeechRecognitionCompilationResult"; } -::windows_core::imp::interface_hierarchy!(SpeechRecognitionCompilationResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SpeechRecognitionCompilationResult {} unsafe impl ::core::marker::Sync for SpeechRecognitionCompilationResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpeechRecognitionGrammarFileConstraint(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpeechRecognitionGrammarFileConstraint, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(SpeechRecognitionGrammarFileConstraint, ISpeechRecognitionConstraint); impl SpeechRecognitionGrammarFileConstraint { pub fn IsEnabled(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsEnabled)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsEnabled(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsEnabled)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Tag(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Tag)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetTag(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetTag)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn Type(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Type)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Probability(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Probability)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetProbability(&self, value: SpeechRecognitionConstraintProbability) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetProbability)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Storage\"`"] @@ -872,20 +615,17 @@ impl ::windows_core::RuntimeType for SpeechRecognitionGrammarFileConstraint { } unsafe impl ::windows_core::Interface for SpeechRecognitionGrammarFileConstraint { type Vtable = ISpeechRecognitionGrammarFileConstraint_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpeechRecognitionGrammarFileConstraint { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpeechRecognitionGrammarFileConstraint { const NAME: &'static str = "Windows.Media.SpeechRecognition.SpeechRecognitionGrammarFileConstraint"; } -::windows_core::imp::interface_hierarchy!(SpeechRecognitionGrammarFileConstraint, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for SpeechRecognitionGrammarFileConstraint {} unsafe impl ::core::marker::Send for SpeechRecognitionGrammarFileConstraint {} unsafe impl ::core::marker::Sync for SpeechRecognitionGrammarFileConstraint {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpeechRecognitionHypothesis(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpeechRecognitionHypothesis, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SpeechRecognitionHypothesis { pub fn Text(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -900,19 +640,17 @@ impl ::windows_core::RuntimeType for SpeechRecognitionHypothesis { } unsafe impl ::windows_core::Interface for SpeechRecognitionHypothesis { type Vtable = ISpeechRecognitionHypothesis_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpeechRecognitionHypothesis { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpeechRecognitionHypothesis { const NAME: &'static str = "Windows.Media.SpeechRecognition.SpeechRecognitionHypothesis"; } -::windows_core::imp::interface_hierarchy!(SpeechRecognitionHypothesis, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SpeechRecognitionHypothesis {} unsafe impl ::core::marker::Sync for SpeechRecognitionHypothesis {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpeechRecognitionHypothesisGeneratedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpeechRecognitionHypothesisGeneratedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SpeechRecognitionHypothesisGeneratedEventArgs { pub fn Hypothesis(&self) -> ::windows_core::Result { let this = self; @@ -927,58 +665,57 @@ impl ::windows_core::RuntimeType for SpeechRecognitionHypothesisGeneratedEventAr } unsafe impl ::windows_core::Interface for SpeechRecognitionHypothesisGeneratedEventArgs { type Vtable = ISpeechRecognitionHypothesisGeneratedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpeechRecognitionHypothesisGeneratedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpeechRecognitionHypothesisGeneratedEventArgs { const NAME: &'static str = "Windows.Media.SpeechRecognition.SpeechRecognitionHypothesisGeneratedEventArgs"; } -::windows_core::imp::interface_hierarchy!(SpeechRecognitionHypothesisGeneratedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SpeechRecognitionHypothesisGeneratedEventArgs {} unsafe impl ::core::marker::Sync for SpeechRecognitionHypothesisGeneratedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpeechRecognitionListConstraint(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpeechRecognitionListConstraint, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(SpeechRecognitionListConstraint, ISpeechRecognitionConstraint); impl SpeechRecognitionListConstraint { pub fn IsEnabled(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsEnabled)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsEnabled(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsEnabled)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Tag(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Tag)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetTag(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetTag)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn Type(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Type)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Probability(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Probability)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetProbability(&self, value: SpeechRecognitionConstraintProbability) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetProbability)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -994,22 +731,22 @@ impl SpeechRecognitionListConstraint { #[cfg(feature = "Foundation_Collections")] pub fn Create(commands: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::ISpeechRecognitionListConstraintFactory(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).Create)(::windows_core::Interface::as_raw(this), commands.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).Create)(::windows_core::Interface::as_raw(this), commands.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn CreateWithTag(commands: P0, tag: &::windows_core::HSTRING) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::ISpeechRecognitionListConstraintFactory(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateWithTag)(::windows_core::Interface::as_raw(this), commands.try_into_param()?.abi(), ::core::mem::transmute_copy(tag), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateWithTag)(::windows_core::Interface::as_raw(this), commands.into_param().abi(), ::core::mem::transmute_copy(tag), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -1023,20 +760,17 @@ impl ::windows_core::RuntimeType for SpeechRecognitionListConstraint { } unsafe impl ::windows_core::Interface for SpeechRecognitionListConstraint { type Vtable = ISpeechRecognitionListConstraint_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpeechRecognitionListConstraint { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpeechRecognitionListConstraint { const NAME: &'static str = "Windows.Media.SpeechRecognition.SpeechRecognitionListConstraint"; } -::windows_core::imp::interface_hierarchy!(SpeechRecognitionListConstraint, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for SpeechRecognitionListConstraint {} unsafe impl ::core::marker::Send for SpeechRecognitionListConstraint {} unsafe impl ::core::marker::Sync for SpeechRecognitionListConstraint {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpeechRecognitionQualityDegradingEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpeechRecognitionQualityDegradingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SpeechRecognitionQualityDegradingEventArgs { pub fn Problem(&self) -> ::windows_core::Result { let this = self; @@ -1051,19 +785,17 @@ impl ::windows_core::RuntimeType for SpeechRecognitionQualityDegradingEventArgs } unsafe impl ::windows_core::Interface for SpeechRecognitionQualityDegradingEventArgs { type Vtable = ISpeechRecognitionQualityDegradingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpeechRecognitionQualityDegradingEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpeechRecognitionQualityDegradingEventArgs { const NAME: &'static str = "Windows.Media.SpeechRecognition.SpeechRecognitionQualityDegradingEventArgs"; } -::windows_core::imp::interface_hierarchy!(SpeechRecognitionQualityDegradingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SpeechRecognitionQualityDegradingEventArgs {} unsafe impl ::core::marker::Sync for SpeechRecognitionQualityDegradingEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpeechRecognitionResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpeechRecognitionResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SpeechRecognitionResult { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -1126,14 +858,14 @@ impl SpeechRecognitionResult { } } pub fn PhraseStartTime(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PhraseStartTime)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PhraseDuration(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PhraseDuration)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1145,19 +877,17 @@ impl ::windows_core::RuntimeType for SpeechRecognitionResult { } unsafe impl ::windows_core::Interface for SpeechRecognitionResult { type Vtable = ISpeechRecognitionResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpeechRecognitionResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpeechRecognitionResult { const NAME: &'static str = "Windows.Media.SpeechRecognition.SpeechRecognitionResult"; } -::windows_core::imp::interface_hierarchy!(SpeechRecognitionResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SpeechRecognitionResult {} unsafe impl ::core::marker::Sync for SpeechRecognitionResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpeechRecognitionSemanticInterpretation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpeechRecognitionSemanticInterpretation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SpeechRecognitionSemanticInterpretation { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -1174,58 +904,57 @@ impl ::windows_core::RuntimeType for SpeechRecognitionSemanticInterpretation { } unsafe impl ::windows_core::Interface for SpeechRecognitionSemanticInterpretation { type Vtable = ISpeechRecognitionSemanticInterpretation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpeechRecognitionSemanticInterpretation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpeechRecognitionSemanticInterpretation { const NAME: &'static str = "Windows.Media.SpeechRecognition.SpeechRecognitionSemanticInterpretation"; } -::windows_core::imp::interface_hierarchy!(SpeechRecognitionSemanticInterpretation, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SpeechRecognitionSemanticInterpretation {} unsafe impl ::core::marker::Sync for SpeechRecognitionSemanticInterpretation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpeechRecognitionTopicConstraint(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpeechRecognitionTopicConstraint, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(SpeechRecognitionTopicConstraint, ISpeechRecognitionConstraint); impl SpeechRecognitionTopicConstraint { pub fn IsEnabled(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsEnabled)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsEnabled(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsEnabled)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Tag(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Tag)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetTag(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetTag)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn Type(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Type)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Probability(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Probability)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetProbability(&self, value: SpeechRecognitionConstraintProbability) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetProbability)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Scenario(&self) -> ::windows_core::Result { @@ -1265,59 +994,57 @@ impl ::windows_core::RuntimeType for SpeechRecognitionTopicConstraint { } unsafe impl ::windows_core::Interface for SpeechRecognitionTopicConstraint { type Vtable = ISpeechRecognitionTopicConstraint_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpeechRecognitionTopicConstraint { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpeechRecognitionTopicConstraint { const NAME: &'static str = "Windows.Media.SpeechRecognition.SpeechRecognitionTopicConstraint"; } -::windows_core::imp::interface_hierarchy!(SpeechRecognitionTopicConstraint, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for SpeechRecognitionTopicConstraint {} unsafe impl ::core::marker::Send for SpeechRecognitionTopicConstraint {} unsafe impl ::core::marker::Sync for SpeechRecognitionTopicConstraint {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpeechRecognitionVoiceCommandDefinitionConstraint(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpeechRecognitionVoiceCommandDefinitionConstraint, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(SpeechRecognitionVoiceCommandDefinitionConstraint, ISpeechRecognitionConstraint); impl SpeechRecognitionVoiceCommandDefinitionConstraint { pub fn IsEnabled(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsEnabled)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsEnabled(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsEnabled)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Tag(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Tag)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetTag(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetTag)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn Type(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Type)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Probability(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Probability)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetProbability(&self, value: SpeechRecognitionConstraintProbability) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetProbability)(::windows_core::Interface::as_raw(this), value).ok() } } } @@ -1326,20 +1053,18 @@ impl ::windows_core::RuntimeType for SpeechRecognitionVoiceCommandDefinitionCons } unsafe impl ::windows_core::Interface for SpeechRecognitionVoiceCommandDefinitionConstraint { type Vtable = ISpeechRecognitionVoiceCommandDefinitionConstraint_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpeechRecognitionVoiceCommandDefinitionConstraint { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpeechRecognitionVoiceCommandDefinitionConstraint { const NAME: &'static str = "Windows.Media.SpeechRecognition.SpeechRecognitionVoiceCommandDefinitionConstraint"; } -::windows_core::imp::interface_hierarchy!(SpeechRecognitionVoiceCommandDefinitionConstraint, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for SpeechRecognitionVoiceCommandDefinitionConstraint {} unsafe impl ::core::marker::Send for SpeechRecognitionVoiceCommandDefinitionConstraint {} unsafe impl ::core::marker::Sync for SpeechRecognitionVoiceCommandDefinitionConstraint {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpeechRecognizer(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpeechRecognizer, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(SpeechRecognizer, super::super::Foundation::IClosable); impl SpeechRecognizer { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1349,7 +1074,7 @@ impl SpeechRecognizer { SHARED.call(callback) } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Globalization\"`"] @@ -1434,21 +1159,21 @@ impl SpeechRecognizer { unsafe { (::windows_core::Interface::vtable(this).RemoveStateChanged)(::windows_core::Interface::as_raw(this), cookie).ok() } } pub fn ContinuousRecognitionSession(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ContinuousRecognitionSession)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn State(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).State)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn StopRecognitionAsync(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).StopRecognitionAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1458,14 +1183,14 @@ impl SpeechRecognizer { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveHypothesisGenerated(&self, value: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveHypothesisGenerated)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Globalization\"`"] @@ -1535,20 +1260,17 @@ impl ::windows_core::RuntimeType for SpeechRecognizer { } unsafe impl ::windows_core::Interface for SpeechRecognizer { type Vtable = ISpeechRecognizer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpeechRecognizer { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpeechRecognizer { const NAME: &'static str = "Windows.Media.SpeechRecognition.SpeechRecognizer"; } -::windows_core::imp::interface_hierarchy!(SpeechRecognizer, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for SpeechRecognizer {} unsafe impl ::core::marker::Send for SpeechRecognizer {} unsafe impl ::core::marker::Sync for SpeechRecognizer {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpeechRecognizerStateChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpeechRecognizerStateChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SpeechRecognizerStateChangedEventArgs { pub fn State(&self) -> ::windows_core::Result { let this = self; @@ -1563,19 +1285,17 @@ impl ::windows_core::RuntimeType for SpeechRecognizerStateChangedEventArgs { } unsafe impl ::windows_core::Interface for SpeechRecognizerStateChangedEventArgs { type Vtable = ISpeechRecognizerStateChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpeechRecognizerStateChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpeechRecognizerStateChangedEventArgs { const NAME: &'static str = "Windows.Media.SpeechRecognition.SpeechRecognizerStateChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(SpeechRecognizerStateChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SpeechRecognizerStateChangedEventArgs {} unsafe impl ::core::marker::Sync for SpeechRecognizerStateChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpeechRecognizerTimeouts(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpeechRecognizerTimeouts, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SpeechRecognizerTimeouts { pub fn InitialSilenceTimeout(&self) -> ::windows_core::Result { let this = self; @@ -1616,19 +1336,17 @@ impl ::windows_core::RuntimeType for SpeechRecognizerTimeouts { } unsafe impl ::windows_core::Interface for SpeechRecognizerTimeouts { type Vtable = ISpeechRecognizerTimeouts_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpeechRecognizerTimeouts { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpeechRecognizerTimeouts { const NAME: &'static str = "Windows.Media.SpeechRecognition.SpeechRecognizerTimeouts"; } -::windows_core::imp::interface_hierarchy!(SpeechRecognizerTimeouts, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SpeechRecognizerTimeouts {} unsafe impl ::core::marker::Sync for SpeechRecognizerTimeouts {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpeechRecognizerUIOptions(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpeechRecognizerUIOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SpeechRecognizerUIOptions { pub fn ExampleText(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1680,14 +1398,11 @@ impl ::windows_core::RuntimeType for SpeechRecognizerUIOptions { } unsafe impl ::windows_core::Interface for SpeechRecognizerUIOptions { type Vtable = ISpeechRecognizerUIOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpeechRecognizerUIOptions { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpeechRecognizerUIOptions { const NAME: &'static str = "Windows.Media.SpeechRecognition.SpeechRecognizerUIOptions"; } -::windows_core::imp::interface_hierarchy!(SpeechRecognizerUIOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SpeechRecognizerUIOptions {} unsafe impl ::core::marker::Sync for SpeechRecognizerUIOptions {} pub struct VoiceCommandManager; @@ -1723,6 +1438,7 @@ impl ::windows_core::RuntimeName for VoiceCommandManager { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VoiceCommandSet(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VoiceCommandSet, ::windows_core::IUnknown, ::windows_core::IInspectable); impl VoiceCommandSet { pub fn Language(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1742,12 +1458,12 @@ impl VoiceCommandSet { #[cfg(feature = "Foundation_Collections")] pub fn SetPhraseListAsync(&self, phraselistname: &::windows_core::HSTRING, phraselist: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SetPhraseListAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(phraselistname), phraselist.into_param().abi(), &mut result__).from_abi(result__) } } } @@ -1756,14 +1472,11 @@ impl ::windows_core::RuntimeType for VoiceCommandSet { } unsafe impl ::windows_core::Interface for VoiceCommandSet { type Vtable = IVoiceCommandSet_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VoiceCommandSet { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VoiceCommandSet { const NAME: &'static str = "Windows.Media.SpeechRecognition.VoiceCommandSet"; } -::windows_core::imp::interface_hierarchy!(VoiceCommandSet, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for VoiceCommandSet {} unsafe impl ::core::marker::Sync for VoiceCommandSet {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Media/SpeechSynthesis/mod.rs b/crates/libs/windows/src/Windows/Media/SpeechSynthesis/mod.rs index 1684521dd2..2f1ed05bd9 100644 --- a/crates/libs/windows/src/Windows/Media/SpeechSynthesis/mod.rs +++ b/crates/libs/windows/src/Windows/Media/SpeechSynthesis/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInstalledVoicesStatic(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInstalledVoicesStatic { - type Vtable = IInstalledVoicesStatic_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInstalledVoicesStatic { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7d526ecc_7533_4c3f_85be_888c2baeebdc); -} +::windows_core::imp::com_interface!(IInstalledVoicesStatic, IInstalledVoicesStatic_Vtbl, 0x7d526ecc_7533_4c3f_85be_888c2baeebdc); #[repr(C)] #[doc(hidden)] pub struct IInstalledVoicesStatic_Vtbl { @@ -18,32 +9,14 @@ pub struct IInstalledVoicesStatic_Vtbl { AllVoices: usize, pub DefaultVoice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInstalledVoicesStatic2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInstalledVoicesStatic2 { - type Vtable = IInstalledVoicesStatic2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInstalledVoicesStatic2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x64255f2e_358d_4058_be9a_fd3fcb423530); -} +::windows_core::imp::com_interface!(IInstalledVoicesStatic2, IInstalledVoicesStatic2_Vtbl, 0x64255f2e_358d_4058_be9a_fd3fcb423530); #[repr(C)] #[doc(hidden)] pub struct IInstalledVoicesStatic2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub TrySetDefaultVoiceAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, voice: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechSynthesisStream(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpeechSynthesisStream { - type Vtable = ISpeechSynthesisStream_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpeechSynthesisStream { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x83e46e93_244c_4622_ba0b_6229c4d0d65d); -} +::windows_core::imp::com_interface!(ISpeechSynthesisStream, ISpeechSynthesisStream_Vtbl, 0x83e46e93_244c_4622_ba0b_6229c4d0d65d); #[repr(C)] #[doc(hidden)] pub struct ISpeechSynthesisStream_Vtbl { @@ -53,16 +26,7 @@ pub struct ISpeechSynthesisStream_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Markers: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechSynthesizer(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpeechSynthesizer { - type Vtable = ISpeechSynthesizer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpeechSynthesizer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xce9f7c76_97f4_4ced_ad68_d51c458e45c6); -} +::windows_core::imp::com_interface!(ISpeechSynthesizer, ISpeechSynthesizer_Vtbl, 0xce9f7c76_97f4_4ced_ad68_d51c458e45c6); #[repr(C)] #[doc(hidden)] pub struct ISpeechSynthesizer_Vtbl { @@ -72,32 +36,14 @@ pub struct ISpeechSynthesizer_Vtbl { pub SetVoice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Voice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechSynthesizer2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpeechSynthesizer2 { - type Vtable = ISpeechSynthesizer2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpeechSynthesizer2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa7c5ecb2_4339_4d6a_bbf8_c7a4f1544c2e); -} +::windows_core::imp::com_interface!(ISpeechSynthesizer2, ISpeechSynthesizer2_Vtbl, 0xa7c5ecb2_4339_4d6a_bbf8_c7a4f1544c2e); #[repr(C)] #[doc(hidden)] pub struct ISpeechSynthesizer2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Options: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechSynthesizerOptions(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpeechSynthesizerOptions { - type Vtable = ISpeechSynthesizerOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpeechSynthesizerOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa0e23871_cc3d_43c9_91b1_ee185324d83d); -} +::windows_core::imp::com_interface!(ISpeechSynthesizerOptions, ISpeechSynthesizerOptions_Vtbl, 0xa0e23871_cc3d_43c9_91b1_ee185324d83d); #[repr(C)] #[doc(hidden)] pub struct ISpeechSynthesizerOptions_Vtbl { @@ -107,16 +53,7 @@ pub struct ISpeechSynthesizerOptions_Vtbl { pub IncludeSentenceBoundaryMetadata: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetIncludeSentenceBoundaryMetadata: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechSynthesizerOptions2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpeechSynthesizerOptions2 { - type Vtable = ISpeechSynthesizerOptions2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpeechSynthesizerOptions2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1cbef60e_119c_4bed_b118_d250c3a25793); -} +::windows_core::imp::com_interface!(ISpeechSynthesizerOptions2, ISpeechSynthesizerOptions2_Vtbl, 0x1cbef60e_119c_4bed_b118_d250c3a25793); #[repr(C)] #[doc(hidden)] pub struct ISpeechSynthesizerOptions2_Vtbl { @@ -128,16 +65,7 @@ pub struct ISpeechSynthesizerOptions2_Vtbl { pub AudioPitch: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows_core::HRESULT, pub SetAudioPitch: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f64) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechSynthesizerOptions3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpeechSynthesizerOptions3 { - type Vtable = ISpeechSynthesizerOptions3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpeechSynthesizerOptions3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x401ed877_902c_4814_a582_a5d0c0769fa8); -} +::windows_core::imp::com_interface!(ISpeechSynthesizerOptions3, ISpeechSynthesizerOptions3_Vtbl, 0x401ed877_902c_4814_a582_a5d0c0769fa8); #[repr(C)] #[doc(hidden)] pub struct ISpeechSynthesizerOptions3_Vtbl { @@ -147,16 +75,7 @@ pub struct ISpeechSynthesizerOptions3_Vtbl { pub PunctuationSilence: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut SpeechPunctuationSilence) -> ::windows_core::HRESULT, pub SetPunctuationSilence: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: SpeechPunctuationSilence) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVoiceInformation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVoiceInformation { - type Vtable = IVoiceInformation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVoiceInformation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb127d6a4_1291_4604_aa9c_83134083352c); -} +::windows_core::imp::com_interface!(IVoiceInformation, IVoiceInformation_Vtbl, 0xb127d6a4_1291_4604_aa9c_83134083352c); #[repr(C)] #[doc(hidden)] pub struct IVoiceInformation_Vtbl { @@ -170,15 +89,18 @@ pub struct IVoiceInformation_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpeechSynthesisStream(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpeechSynthesisStream, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(all(feature = "Media_Core", feature = "Storage_Streams"))] +::windows_core::imp::required_hierarchy!(SpeechSynthesisStream, super::super::Foundation::IClosable, super::super::Storage::Streams::IContentTypeProvider, super::super::Storage::Streams::IInputStream, super::super::Storage::Streams::IOutputStream, super::super::Storage::Streams::IRandomAccessStream, super::super::Storage::Streams::IRandomAccessStreamWithContentType, super::Core::ITimedMetadataTrackProvider); impl SpeechSynthesisStream { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn ContentType(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ContentType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -188,30 +110,30 @@ 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::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), count, options, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ReadAsync)(::windows_core::Interface::as_raw(this), buffer.into_param().abi(), count, options, &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn WriteAsync(&self, buffer: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).WriteAsync)(::windows_core::Interface::as_raw(this), buffer.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn FlushAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FlushAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -220,7 +142,7 @@ impl SpeechSynthesisStream { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn Size(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Size)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -229,13 +151,13 @@ impl SpeechSynthesisStream { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn SetSize(&self, value: u64) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetSize)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn GetInputStreamAt(&self, position: u64) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetInputStreamAt)(::windows_core::Interface::as_raw(this), position, &mut result__).from_abi(result__) @@ -244,7 +166,7 @@ impl SpeechSynthesisStream { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn GetOutputStreamAt(&self, position: u64) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetOutputStreamAt)(::windows_core::Interface::as_raw(this), position, &mut result__).from_abi(result__) @@ -253,7 +175,7 @@ impl SpeechSynthesisStream { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn Position(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Position)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -262,13 +184,13 @@ impl SpeechSynthesisStream { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn Seek(&self, position: u64) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Seek)(::windows_core::Interface::as_raw(this), position).ok() } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn CloneStream(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CloneStream)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -277,7 +199,7 @@ impl SpeechSynthesisStream { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn CanRead(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CanRead)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -286,7 +208,7 @@ impl SpeechSynthesisStream { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn CanWrite(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CanWrite)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -304,7 +226,7 @@ impl SpeechSynthesisStream { #[doc = "Required features: `\"Foundation_Collections\"`, `\"Media_Core\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] pub fn TimedMetadataTracks(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TimedMetadataTracks)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -316,32 +238,18 @@ impl ::windows_core::RuntimeType for SpeechSynthesisStream { } unsafe impl ::windows_core::Interface for SpeechSynthesisStream { type Vtable = ISpeechSynthesisStream_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpeechSynthesisStream { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpeechSynthesisStream { const NAME: &'static str = "Windows.Media.SpeechSynthesis.SpeechSynthesisStream"; } -::windows_core::imp::interface_hierarchy!(SpeechSynthesisStream, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for SpeechSynthesisStream {} -#[cfg(feature = "Storage_Streams")] -impl ::windows_core::CanTryInto for SpeechSynthesisStream {} -#[cfg(feature = "Storage_Streams")] -impl ::windows_core::CanTryInto for SpeechSynthesisStream {} -#[cfg(feature = "Storage_Streams")] -impl ::windows_core::CanTryInto for SpeechSynthesisStream {} -#[cfg(feature = "Storage_Streams")] -impl ::windows_core::CanTryInto for SpeechSynthesisStream {} -#[cfg(feature = "Storage_Streams")] -impl ::windows_core::CanTryInto for SpeechSynthesisStream {} -#[cfg(feature = "Media_Core")] -impl ::windows_core::CanTryInto for SpeechSynthesisStream {} unsafe impl ::core::marker::Send for SpeechSynthesisStream {} unsafe impl ::core::marker::Sync for SpeechSynthesisStream {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpeechSynthesizer(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpeechSynthesizer, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(SpeechSynthesizer, super::super::Foundation::IClosable); impl SpeechSynthesizer { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -351,7 +259,7 @@ impl SpeechSynthesizer { SHARED.call(callback) } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -406,7 +314,7 @@ impl SpeechSynthesizer { } } pub fn Options(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Options)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -428,20 +336,17 @@ impl ::windows_core::RuntimeType for SpeechSynthesizer { } unsafe impl ::windows_core::Interface for SpeechSynthesizer { type Vtable = ISpeechSynthesizer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpeechSynthesizer { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpeechSynthesizer { const NAME: &'static str = "Windows.Media.SpeechSynthesis.SpeechSynthesizer"; } -::windows_core::imp::interface_hierarchy!(SpeechSynthesizer, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for SpeechSynthesizer {} unsafe impl ::core::marker::Send for SpeechSynthesizer {} unsafe impl ::core::marker::Sync for SpeechSynthesizer {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpeechSynthesizerOptions(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpeechSynthesizerOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SpeechSynthesizerOptions { pub fn IncludeWordBoundaryMetadata(&self) -> ::windows_core::Result { let this = self; @@ -466,58 +371,58 @@ impl SpeechSynthesizerOptions { unsafe { (::windows_core::Interface::vtable(this).SetIncludeSentenceBoundaryMetadata)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn AudioVolume(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AudioVolume)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetAudioVolume(&self, value: f64) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetAudioVolume)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn SpeakingRate(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SpeakingRate)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetSpeakingRate(&self, value: f64) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetSpeakingRate)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn AudioPitch(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AudioPitch)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetAudioPitch(&self, value: f64) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetAudioPitch)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn AppendedSilence(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AppendedSilence)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetAppendedSilence(&self, value: SpeechAppendedSilence) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetAppendedSilence)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn PunctuationSilence(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PunctuationSilence)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetPunctuationSilence(&self, value: SpeechPunctuationSilence) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetPunctuationSilence)(::windows_core::Interface::as_raw(this), value).ok() } } } @@ -526,19 +431,17 @@ impl ::windows_core::RuntimeType for SpeechSynthesizerOptions { } unsafe impl ::windows_core::Interface for SpeechSynthesizerOptions { type Vtable = ISpeechSynthesizerOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpeechSynthesizerOptions { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpeechSynthesizerOptions { const NAME: &'static str = "Windows.Media.SpeechSynthesis.SpeechSynthesizerOptions"; } -::windows_core::imp::interface_hierarchy!(SpeechSynthesizerOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SpeechSynthesizerOptions {} unsafe impl ::core::marker::Sync for SpeechSynthesizerOptions {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VoiceInformation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VoiceInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl VoiceInformation { pub fn DisplayName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -581,14 +484,11 @@ impl ::windows_core::RuntimeType for VoiceInformation { } unsafe impl ::windows_core::Interface for VoiceInformation { type Vtable = IVoiceInformation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VoiceInformation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VoiceInformation { const NAME: &'static str = "Windows.Media.SpeechSynthesis.VoiceInformation"; } -::windows_core::imp::interface_hierarchy!(VoiceInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for VoiceInformation {} unsafe impl ::core::marker::Sync for VoiceInformation {} #[repr(transparent)] 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 3d6d748f66..0bcfc9782f 100644 --- a/crates/libs/windows/src/Windows/Media/Streaming/Adaptive/mod.rs +++ b/crates/libs/windows/src/Windows/Media/Streaming/Adaptive/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAdaptiveMediaSource(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAdaptiveMediaSource { - type Vtable = IAdaptiveMediaSource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAdaptiveMediaSource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4c7332ef_d39f_4396_b4d9_043957a7c964); -} +::windows_core::imp::com_interface!(IAdaptiveMediaSource, IAdaptiveMediaSource_Vtbl, 0x4c7332ef_d39f_4396_b4d9_043957a7c964); #[repr(C)] #[doc(hidden)] pub struct IAdaptiveMediaSource_Vtbl { @@ -42,32 +33,14 @@ pub struct IAdaptiveMediaSource_Vtbl { pub DownloadFailed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveDownloadFailed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAdaptiveMediaSource2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAdaptiveMediaSource2 { - type Vtable = IAdaptiveMediaSource2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAdaptiveMediaSource2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x17890342_6760_4bb9_a58a_f7aa98b08c0e); -} +::windows_core::imp::com_interface!(IAdaptiveMediaSource2, IAdaptiveMediaSource2_Vtbl, 0x17890342_6760_4bb9_a58a_f7aa98b08c0e); #[repr(C)] #[doc(hidden)] pub struct IAdaptiveMediaSource2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub AdvancedSettings: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAdaptiveMediaSource3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAdaptiveMediaSource3 { - type Vtable = IAdaptiveMediaSource3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAdaptiveMediaSource3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xba7023fd_c334_461b_a36e_c99f54f7174a); -} +::windows_core::imp::com_interface!(IAdaptiveMediaSource3, IAdaptiveMediaSource3_Vtbl, 0xba7023fd_c334_461b_a36e_c99f54f7174a); #[repr(C)] #[doc(hidden)] pub struct IAdaptiveMediaSource3_Vtbl { @@ -79,16 +52,7 @@ pub struct IAdaptiveMediaSource3_Vtbl { pub Diagnostics: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetCorrelatedTimes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAdaptiveMediaSourceAdvancedSettings(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAdaptiveMediaSourceAdvancedSettings { - type Vtable = IAdaptiveMediaSourceAdvancedSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAdaptiveMediaSourceAdvancedSettings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x55db1680_1aeb_47dc_aa08_9a11610ba45a); -} +::windows_core::imp::com_interface!(IAdaptiveMediaSourceAdvancedSettings, IAdaptiveMediaSourceAdvancedSettings_Vtbl, 0x55db1680_1aeb_47dc_aa08_9a11610ba45a); #[repr(C)] #[doc(hidden)] pub struct IAdaptiveMediaSourceAdvancedSettings_Vtbl { @@ -100,16 +64,7 @@ pub struct IAdaptiveMediaSourceAdvancedSettings_Vtbl { pub BitrateDowngradeTriggerRatio: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetBitrateDowngradeTriggerRatio: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAdaptiveMediaSourceCorrelatedTimes(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAdaptiveMediaSourceCorrelatedTimes { - type Vtable = IAdaptiveMediaSourceCorrelatedTimes_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAdaptiveMediaSourceCorrelatedTimes { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x05108787_e032_48e1_ab8d_002b0b3051df); -} +::windows_core::imp::com_interface!(IAdaptiveMediaSourceCorrelatedTimes, IAdaptiveMediaSourceCorrelatedTimes_Vtbl, 0x05108787_e032_48e1_ab8d_002b0b3051df); #[repr(C)] #[doc(hidden)] pub struct IAdaptiveMediaSourceCorrelatedTimes_Vtbl { @@ -118,16 +73,7 @@ pub struct IAdaptiveMediaSourceCorrelatedTimes_Vtbl { pub PresentationTimeStamp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ProgramDateTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAdaptiveMediaSourceCreationResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAdaptiveMediaSourceCreationResult { - type Vtable = IAdaptiveMediaSourceCreationResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAdaptiveMediaSourceCreationResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4686b6b2_800f_4e31_9093_76d4782013e7); -} +::windows_core::imp::com_interface!(IAdaptiveMediaSourceCreationResult, IAdaptiveMediaSourceCreationResult_Vtbl, 0x4686b6b2_800f_4e31_9093_76d4782013e7); #[repr(C)] #[doc(hidden)] pub struct IAdaptiveMediaSourceCreationResult_Vtbl { @@ -139,32 +85,14 @@ pub struct IAdaptiveMediaSourceCreationResult_Vtbl { #[cfg(not(feature = "Web_Http"))] HttpResponseMessage: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAdaptiveMediaSourceCreationResult2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAdaptiveMediaSourceCreationResult2 { - type Vtable = IAdaptiveMediaSourceCreationResult2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAdaptiveMediaSourceCreationResult2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1c3243bf_1c44_404b_a201_df45ac7898e8); -} +::windows_core::imp::com_interface!(IAdaptiveMediaSourceCreationResult2, IAdaptiveMediaSourceCreationResult2_Vtbl, 0x1c3243bf_1c44_404b_a201_df45ac7898e8); #[repr(C)] #[doc(hidden)] pub struct IAdaptiveMediaSourceCreationResult2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ExtendedError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAdaptiveMediaSourceDiagnosticAvailableEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAdaptiveMediaSourceDiagnosticAvailableEventArgs { - type Vtable = IAdaptiveMediaSourceDiagnosticAvailableEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAdaptiveMediaSourceDiagnosticAvailableEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3af64f06_6d9c_494a_b7a9_b3a5dee6ad68); -} +::windows_core::imp::com_interface!(IAdaptiveMediaSourceDiagnosticAvailableEventArgs, IAdaptiveMediaSourceDiagnosticAvailableEventArgs_Vtbl, 0x3af64f06_6d9c_494a_b7a9_b3a5dee6ad68); #[repr(C)] #[doc(hidden)] pub struct IAdaptiveMediaSourceDiagnosticAvailableEventArgs_Vtbl { @@ -179,32 +107,14 @@ pub struct IAdaptiveMediaSourceDiagnosticAvailableEventArgs_Vtbl { pub ResourceByteRangeLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Bitrate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAdaptiveMediaSourceDiagnosticAvailableEventArgs2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAdaptiveMediaSourceDiagnosticAvailableEventArgs2 { - type Vtable = IAdaptiveMediaSourceDiagnosticAvailableEventArgs2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAdaptiveMediaSourceDiagnosticAvailableEventArgs2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8c6dd857_16a5_4d9f_810e_00bd901b3ef9); -} +::windows_core::imp::com_interface!(IAdaptiveMediaSourceDiagnosticAvailableEventArgs2, IAdaptiveMediaSourceDiagnosticAvailableEventArgs2_Vtbl, 0x8c6dd857_16a5_4d9f_810e_00bd901b3ef9); #[repr(C)] #[doc(hidden)] pub struct IAdaptiveMediaSourceDiagnosticAvailableEventArgs2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ExtendedError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAdaptiveMediaSourceDiagnosticAvailableEventArgs3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAdaptiveMediaSourceDiagnosticAvailableEventArgs3 { - type Vtable = IAdaptiveMediaSourceDiagnosticAvailableEventArgs3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAdaptiveMediaSourceDiagnosticAvailableEventArgs3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc3650cd5_daeb_4103_84da_68769ad513ff); -} +::windows_core::imp::com_interface!(IAdaptiveMediaSourceDiagnosticAvailableEventArgs3, IAdaptiveMediaSourceDiagnosticAvailableEventArgs3_Vtbl, 0xc3650cd5_daeb_4103_84da_68769ad513ff); #[repr(C)] #[doc(hidden)] pub struct IAdaptiveMediaSourceDiagnosticAvailableEventArgs3_Vtbl { @@ -212,16 +122,7 @@ pub struct IAdaptiveMediaSourceDiagnosticAvailableEventArgs3_Vtbl { pub ResourceDuration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ResourceContentType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAdaptiveMediaSourceDiagnostics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAdaptiveMediaSourceDiagnostics { - type Vtable = IAdaptiveMediaSourceDiagnostics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAdaptiveMediaSourceDiagnostics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9b24ee68_962e_448c_aebf_b29b56098e23); -} +::windows_core::imp::com_interface!(IAdaptiveMediaSourceDiagnostics, IAdaptiveMediaSourceDiagnostics_Vtbl, 0x9b24ee68_962e_448c_aebf_b29b56098e23); #[repr(C)] #[doc(hidden)] pub struct IAdaptiveMediaSourceDiagnostics_Vtbl { @@ -229,16 +130,7 @@ pub struct IAdaptiveMediaSourceDiagnostics_Vtbl { pub DiagnosticAvailable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveDiagnosticAvailable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAdaptiveMediaSourceDownloadBitrateChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAdaptiveMediaSourceDownloadBitrateChangedEventArgs { - type Vtable = IAdaptiveMediaSourceDownloadBitrateChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAdaptiveMediaSourceDownloadBitrateChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x670c0a44_e04e_4eff_816a_17399f78f4ba); -} +::windows_core::imp::com_interface!(IAdaptiveMediaSourceDownloadBitrateChangedEventArgs, IAdaptiveMediaSourceDownloadBitrateChangedEventArgs_Vtbl, 0x670c0a44_e04e_4eff_816a_17399f78f4ba); #[repr(C)] #[doc(hidden)] pub struct IAdaptiveMediaSourceDownloadBitrateChangedEventArgs_Vtbl { @@ -246,32 +138,14 @@ pub struct IAdaptiveMediaSourceDownloadBitrateChangedEventArgs_Vtbl { pub OldValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, pub NewValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAdaptiveMediaSourceDownloadBitrateChangedEventArgs2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAdaptiveMediaSourceDownloadBitrateChangedEventArgs2 { - type Vtable = IAdaptiveMediaSourceDownloadBitrateChangedEventArgs2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAdaptiveMediaSourceDownloadBitrateChangedEventArgs2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf3f1f444_96ae_4de0_b540_2b3246e6968c); -} +::windows_core::imp::com_interface!(IAdaptiveMediaSourceDownloadBitrateChangedEventArgs2, IAdaptiveMediaSourceDownloadBitrateChangedEventArgs2_Vtbl, 0xf3f1f444_96ae_4de0_b540_2b3246e6968c); #[repr(C)] #[doc(hidden)] pub struct IAdaptiveMediaSourceDownloadBitrateChangedEventArgs2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Reason: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut AdaptiveMediaSourceDownloadBitrateChangedReason) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAdaptiveMediaSourceDownloadCompletedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAdaptiveMediaSourceDownloadCompletedEventArgs { - type Vtable = IAdaptiveMediaSourceDownloadCompletedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAdaptiveMediaSourceDownloadCompletedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x19240dc3_5b37_4a1a_8970_d621cb6ca83b); -} +::windows_core::imp::com_interface!(IAdaptiveMediaSourceDownloadCompletedEventArgs, IAdaptiveMediaSourceDownloadCompletedEventArgs_Vtbl, 0x19240dc3_5b37_4a1a_8970_d621cb6ca83b); #[repr(C)] #[doc(hidden)] pub struct IAdaptiveMediaSourceDownloadCompletedEventArgs_Vtbl { @@ -285,16 +159,7 @@ pub struct IAdaptiveMediaSourceDownloadCompletedEventArgs_Vtbl { #[cfg(not(feature = "Web_Http"))] HttpResponseMessage: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAdaptiveMediaSourceDownloadCompletedEventArgs2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAdaptiveMediaSourceDownloadCompletedEventArgs2 { - type Vtable = IAdaptiveMediaSourceDownloadCompletedEventArgs2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAdaptiveMediaSourceDownloadCompletedEventArgs2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x704744c4_964a_40e4_af95_9177dd6dfa00); -} +::windows_core::imp::com_interface!(IAdaptiveMediaSourceDownloadCompletedEventArgs2, IAdaptiveMediaSourceDownloadCompletedEventArgs2_Vtbl, 0x704744c4_964a_40e4_af95_9177dd6dfa00); #[repr(C)] #[doc(hidden)] pub struct IAdaptiveMediaSourceDownloadCompletedEventArgs2_Vtbl { @@ -303,16 +168,7 @@ pub struct IAdaptiveMediaSourceDownloadCompletedEventArgs2_Vtbl { pub Statistics: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Position: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAdaptiveMediaSourceDownloadCompletedEventArgs3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAdaptiveMediaSourceDownloadCompletedEventArgs3 { - type Vtable = IAdaptiveMediaSourceDownloadCompletedEventArgs3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAdaptiveMediaSourceDownloadCompletedEventArgs3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0f8a8bd1_93b2_47c6_badc_8be2c8f7f6e8); -} +::windows_core::imp::com_interface!(IAdaptiveMediaSourceDownloadCompletedEventArgs3, IAdaptiveMediaSourceDownloadCompletedEventArgs3_Vtbl, 0x0f8a8bd1_93b2_47c6_badc_8be2c8f7f6e8); #[repr(C)] #[doc(hidden)] pub struct IAdaptiveMediaSourceDownloadCompletedEventArgs3_Vtbl { @@ -320,16 +176,7 @@ pub struct IAdaptiveMediaSourceDownloadCompletedEventArgs3_Vtbl { pub ResourceDuration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ResourceContentType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAdaptiveMediaSourceDownloadFailedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAdaptiveMediaSourceDownloadFailedEventArgs { - type Vtable = IAdaptiveMediaSourceDownloadFailedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAdaptiveMediaSourceDownloadFailedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x37739048_f4ab_40a4_b135_c6dfd8bd7ff1); -} +::windows_core::imp::com_interface!(IAdaptiveMediaSourceDownloadFailedEventArgs, IAdaptiveMediaSourceDownloadFailedEventArgs_Vtbl, 0x37739048_f4ab_40a4_b135_c6dfd8bd7ff1); #[repr(C)] #[doc(hidden)] pub struct IAdaptiveMediaSourceDownloadFailedEventArgs_Vtbl { @@ -343,16 +190,7 @@ pub struct IAdaptiveMediaSourceDownloadFailedEventArgs_Vtbl { #[cfg(not(feature = "Web_Http"))] HttpResponseMessage: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAdaptiveMediaSourceDownloadFailedEventArgs2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAdaptiveMediaSourceDownloadFailedEventArgs2 { - type Vtable = IAdaptiveMediaSourceDownloadFailedEventArgs2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAdaptiveMediaSourceDownloadFailedEventArgs2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x70919568_967c_4986_90c5_c6fc4b31e2d8); -} +::windows_core::imp::com_interface!(IAdaptiveMediaSourceDownloadFailedEventArgs2, IAdaptiveMediaSourceDownloadFailedEventArgs2_Vtbl, 0x70919568_967c_4986_90c5_c6fc4b31e2d8); #[repr(C)] #[doc(hidden)] pub struct IAdaptiveMediaSourceDownloadFailedEventArgs2_Vtbl { @@ -362,16 +200,7 @@ pub struct IAdaptiveMediaSourceDownloadFailedEventArgs2_Vtbl { pub Statistics: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Position: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAdaptiveMediaSourceDownloadFailedEventArgs3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAdaptiveMediaSourceDownloadFailedEventArgs3 { - type Vtable = IAdaptiveMediaSourceDownloadFailedEventArgs3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAdaptiveMediaSourceDownloadFailedEventArgs3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd0354549_1132_4a10_915a_c2211b5b9409); -} +::windows_core::imp::com_interface!(IAdaptiveMediaSourceDownloadFailedEventArgs3, IAdaptiveMediaSourceDownloadFailedEventArgs3_Vtbl, 0xd0354549_1132_4a10_915a_c2211b5b9409); #[repr(C)] #[doc(hidden)] pub struct IAdaptiveMediaSourceDownloadFailedEventArgs3_Vtbl { @@ -379,32 +208,14 @@ pub struct IAdaptiveMediaSourceDownloadFailedEventArgs3_Vtbl { pub ResourceDuration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ResourceContentType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAdaptiveMediaSourceDownloadRequestedDeferral(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAdaptiveMediaSourceDownloadRequestedDeferral { - type Vtable = IAdaptiveMediaSourceDownloadRequestedDeferral_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAdaptiveMediaSourceDownloadRequestedDeferral { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x05c68f64_fa20_4dbd_9821_4bf4c9bf77ab); -} +::windows_core::imp::com_interface!(IAdaptiveMediaSourceDownloadRequestedDeferral, IAdaptiveMediaSourceDownloadRequestedDeferral_Vtbl, 0x05c68f64_fa20_4dbd_9821_4bf4c9bf77ab); #[repr(C)] #[doc(hidden)] pub struct IAdaptiveMediaSourceDownloadRequestedDeferral_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Complete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAdaptiveMediaSourceDownloadRequestedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAdaptiveMediaSourceDownloadRequestedEventArgs { - type Vtable = IAdaptiveMediaSourceDownloadRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAdaptiveMediaSourceDownloadRequestedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc83fdffd_44a9_47a2_bf96_03398b4bfaaf); -} +::windows_core::imp::com_interface!(IAdaptiveMediaSourceDownloadRequestedEventArgs, IAdaptiveMediaSourceDownloadRequestedEventArgs_Vtbl, 0xc83fdffd_44a9_47a2_bf96_03398b4bfaaf); #[repr(C)] #[doc(hidden)] pub struct IAdaptiveMediaSourceDownloadRequestedEventArgs_Vtbl { @@ -416,16 +227,7 @@ pub struct IAdaptiveMediaSourceDownloadRequestedEventArgs_Vtbl { pub Result: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAdaptiveMediaSourceDownloadRequestedEventArgs2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAdaptiveMediaSourceDownloadRequestedEventArgs2 { - type Vtable = IAdaptiveMediaSourceDownloadRequestedEventArgs2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAdaptiveMediaSourceDownloadRequestedEventArgs2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb37d8bfe_aa44_4d82_825b_611de3bcfecb); -} +::windows_core::imp::com_interface!(IAdaptiveMediaSourceDownloadRequestedEventArgs2, IAdaptiveMediaSourceDownloadRequestedEventArgs2_Vtbl, 0xb37d8bfe_aa44_4d82_825b_611de3bcfecb); #[repr(C)] #[doc(hidden)] pub struct IAdaptiveMediaSourceDownloadRequestedEventArgs2_Vtbl { @@ -433,16 +235,7 @@ pub struct IAdaptiveMediaSourceDownloadRequestedEventArgs2_Vtbl { pub RequestId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows_core::HRESULT, pub Position: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAdaptiveMediaSourceDownloadRequestedEventArgs3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAdaptiveMediaSourceDownloadRequestedEventArgs3 { - type Vtable = IAdaptiveMediaSourceDownloadRequestedEventArgs3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAdaptiveMediaSourceDownloadRequestedEventArgs3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x333c50fd_4f62_4481_ab44_1e47b0574225); -} +::windows_core::imp::com_interface!(IAdaptiveMediaSourceDownloadRequestedEventArgs3, IAdaptiveMediaSourceDownloadRequestedEventArgs3_Vtbl, 0x333c50fd_4f62_4481_ab44_1e47b0574225); #[repr(C)] #[doc(hidden)] pub struct IAdaptiveMediaSourceDownloadRequestedEventArgs3_Vtbl { @@ -450,16 +243,7 @@ pub struct IAdaptiveMediaSourceDownloadRequestedEventArgs3_Vtbl { pub ResourceDuration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ResourceContentType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAdaptiveMediaSourceDownloadResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAdaptiveMediaSourceDownloadResult { - type Vtable = IAdaptiveMediaSourceDownloadResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAdaptiveMediaSourceDownloadResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf4afdc73_bcee_4a6a_9f0a_fec41e2339b0); -} +::windows_core::imp::com_interface!(IAdaptiveMediaSourceDownloadResult, IAdaptiveMediaSourceDownloadResult_Vtbl, 0xf4afdc73_bcee_4a6a_9f0a_fec41e2339b0); #[repr(C)] #[doc(hidden)] pub struct IAdaptiveMediaSourceDownloadResult_Vtbl { @@ -487,16 +271,7 @@ pub struct IAdaptiveMediaSourceDownloadResult_Vtbl { pub ExtendedStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, pub SetExtendedStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAdaptiveMediaSourceDownloadResult2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAdaptiveMediaSourceDownloadResult2 { - type Vtable = IAdaptiveMediaSourceDownloadResult2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAdaptiveMediaSourceDownloadResult2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x15552cb7_7b80_4ac4_8660_a4b97f7c70f0); -} +::windows_core::imp::com_interface!(IAdaptiveMediaSourceDownloadResult2, IAdaptiveMediaSourceDownloadResult2_Vtbl, 0x15552cb7_7b80_4ac4_8660_a4b97f7c70f0); #[repr(C)] #[doc(hidden)] pub struct IAdaptiveMediaSourceDownloadResult2_Vtbl { @@ -506,16 +281,7 @@ pub struct IAdaptiveMediaSourceDownloadResult2_Vtbl { pub ResourceByteRangeLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetResourceByteRangeLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAdaptiveMediaSourceDownloadStatistics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAdaptiveMediaSourceDownloadStatistics { - type Vtable = IAdaptiveMediaSourceDownloadStatistics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAdaptiveMediaSourceDownloadStatistics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa306cefb_e96a_4dff_a9b8_1ae08c01ae98); -} +::windows_core::imp::com_interface!(IAdaptiveMediaSourceDownloadStatistics, IAdaptiveMediaSourceDownloadStatistics_Vtbl, 0xa306cefb_e96a_4dff_a9b8_1ae08c01ae98); #[repr(C)] #[doc(hidden)] pub struct IAdaptiveMediaSourceDownloadStatistics_Vtbl { @@ -525,16 +291,7 @@ pub struct IAdaptiveMediaSourceDownloadStatistics_Vtbl { pub TimeToFirstByteReceived: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub TimeToLastByteReceived: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAdaptiveMediaSourcePlaybackBitrateChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAdaptiveMediaSourcePlaybackBitrateChangedEventArgs { - type Vtable = IAdaptiveMediaSourcePlaybackBitrateChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAdaptiveMediaSourcePlaybackBitrateChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x23a29f6d_7dda_4a51_87a9_6fa8c5b292be); -} +::windows_core::imp::com_interface!(IAdaptiveMediaSourcePlaybackBitrateChangedEventArgs, IAdaptiveMediaSourcePlaybackBitrateChangedEventArgs_Vtbl, 0x23a29f6d_7dda_4a51_87a9_6fa8c5b292be); #[repr(C)] #[doc(hidden)] pub struct IAdaptiveMediaSourcePlaybackBitrateChangedEventArgs_Vtbl { @@ -543,16 +300,7 @@ pub struct IAdaptiveMediaSourcePlaybackBitrateChangedEventArgs_Vtbl { pub NewValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, pub AudioOnly: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAdaptiveMediaSourceStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAdaptiveMediaSourceStatics { - type Vtable = IAdaptiveMediaSourceStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAdaptiveMediaSourceStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x50a6bd5d_66ef_4cd3_9579_9e660507dc3f); -} +::windows_core::imp::com_interface!(IAdaptiveMediaSourceStatics, IAdaptiveMediaSourceStatics_Vtbl, 0x50a6bd5d_66ef_4cd3_9579_9e660507dc3f); #[repr(C)] #[doc(hidden)] pub struct IAdaptiveMediaSourceStatics_Vtbl { @@ -575,6 +323,9 @@ pub struct IAdaptiveMediaSourceStatics_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AdaptiveMediaSource(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AdaptiveMediaSource, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Media_Core")] +::windows_core::imp::required_hierarchy!(AdaptiveMediaSource, super::super::super::Foundation::IClosable, super::super::Core::IMediaSource); impl AdaptiveMediaSource { pub fn IsLive(&self) -> ::windows_core::Result { let this = self; @@ -637,10 +388,10 @@ impl AdaptiveMediaSource { } pub fn SetDesiredMinBitrate(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetDesiredMinBitrate)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetDesiredMinBitrate)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn DesiredMaxBitrate(&self) -> ::windows_core::Result> { let this = self; @@ -651,10 +402,10 @@ impl AdaptiveMediaSource { } pub fn SetDesiredMaxBitrate(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetDesiredMaxBitrate)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetDesiredMaxBitrate)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn AudioOnlyPlayback(&self) -> ::windows_core::Result { let this = self; @@ -752,28 +503,28 @@ impl AdaptiveMediaSource { unsafe { (::windows_core::Interface::vtable(this).RemoveDownloadFailed)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn AdvancedSettings(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AdvancedSettings)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn MinLiveOffset(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MinLiveOffset)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn MaxSeekableWindowSize(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MaxSeekableWindowSize)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn DesiredSeekableWindowSize(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DesiredSeekableWindowSize)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -781,20 +532,20 @@ impl AdaptiveMediaSource { } pub fn SetDesiredSeekableWindowSize(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetDesiredSeekableWindowSize)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn Diagnostics(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Diagnostics)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetCorrelatedTimes(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetCorrelatedTimes)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -831,29 +582,29 @@ impl AdaptiveMediaSource { #[cfg(feature = "Storage_Streams")] pub fn CreateFromStreamAsync(stream: P0, uri: P1, contenttype: &::windows_core::HSTRING) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { Self::IAdaptiveMediaSourceStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateFromStreamAsync)(::windows_core::Interface::as_raw(this), stream.try_into_param()?.abi(), uri.into_param().abi(), ::core::mem::transmute_copy(contenttype), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } #[doc = "Required features: `\"Storage_Streams\"`, `\"Web_Http\"`"] #[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::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, P2: ::windows_core::IntoParam, { Self::IAdaptiveMediaSourceStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateFromStreamWithDownloaderAsync)(::windows_core::Interface::as_raw(this), stream.try_into_param()?.abi(), uri.into_param().abi(), ::core::mem::transmute_copy(contenttype), httpclient.into_param().abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } #[doc(hidden)] @@ -867,22 +618,17 @@ impl ::windows_core::RuntimeType for AdaptiveMediaSource { } unsafe impl ::windows_core::Interface for AdaptiveMediaSource { type Vtable = IAdaptiveMediaSource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AdaptiveMediaSource { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AdaptiveMediaSource { const NAME: &'static str = "Windows.Media.Streaming.Adaptive.AdaptiveMediaSource"; } -::windows_core::imp::interface_hierarchy!(AdaptiveMediaSource, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for AdaptiveMediaSource {} -#[cfg(feature = "Media_Core")] -impl ::windows_core::CanTryInto for AdaptiveMediaSource {} unsafe impl ::core::marker::Send for AdaptiveMediaSource {} unsafe impl ::core::marker::Sync for AdaptiveMediaSource {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AdaptiveMediaSourceAdvancedSettings(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AdaptiveMediaSourceAdvancedSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AdaptiveMediaSourceAdvancedSettings { pub fn AllSegmentsIndependent(&self) -> ::windows_core::Result { let this = self; @@ -904,10 +650,10 @@ impl AdaptiveMediaSourceAdvancedSettings { } pub fn SetDesiredBitrateHeadroomRatio(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetDesiredBitrateHeadroomRatio)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetDesiredBitrateHeadroomRatio)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn BitrateDowngradeTriggerRatio(&self) -> ::windows_core::Result> { let this = self; @@ -918,10 +664,10 @@ impl AdaptiveMediaSourceAdvancedSettings { } pub fn SetBitrateDowngradeTriggerRatio(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetBitrateDowngradeTriggerRatio)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetBitrateDowngradeTriggerRatio)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } } impl ::windows_core::RuntimeType for AdaptiveMediaSourceAdvancedSettings { @@ -929,19 +675,17 @@ impl ::windows_core::RuntimeType for AdaptiveMediaSourceAdvancedSettings { } unsafe impl ::windows_core::Interface for AdaptiveMediaSourceAdvancedSettings { type Vtable = IAdaptiveMediaSourceAdvancedSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AdaptiveMediaSourceAdvancedSettings { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AdaptiveMediaSourceAdvancedSettings { const NAME: &'static str = "Windows.Media.Streaming.Adaptive.AdaptiveMediaSourceAdvancedSettings"; } -::windows_core::imp::interface_hierarchy!(AdaptiveMediaSourceAdvancedSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AdaptiveMediaSourceAdvancedSettings {} unsafe impl ::core::marker::Sync for AdaptiveMediaSourceAdvancedSettings {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AdaptiveMediaSourceCorrelatedTimes(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AdaptiveMediaSourceCorrelatedTimes, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AdaptiveMediaSourceCorrelatedTimes { pub fn Position(&self) -> ::windows_core::Result> { let this = self; @@ -970,19 +714,17 @@ impl ::windows_core::RuntimeType for AdaptiveMediaSourceCorrelatedTimes { } unsafe impl ::windows_core::Interface for AdaptiveMediaSourceCorrelatedTimes { type Vtable = IAdaptiveMediaSourceCorrelatedTimes_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AdaptiveMediaSourceCorrelatedTimes { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AdaptiveMediaSourceCorrelatedTimes { const NAME: &'static str = "Windows.Media.Streaming.Adaptive.AdaptiveMediaSourceCorrelatedTimes"; } -::windows_core::imp::interface_hierarchy!(AdaptiveMediaSourceCorrelatedTimes, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AdaptiveMediaSourceCorrelatedTimes {} unsafe impl ::core::marker::Sync for AdaptiveMediaSourceCorrelatedTimes {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AdaptiveMediaSourceCreationResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AdaptiveMediaSourceCreationResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AdaptiveMediaSourceCreationResult { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -1008,7 +750,7 @@ impl AdaptiveMediaSourceCreationResult { } } pub fn ExtendedError(&self) -> ::windows_core::Result<::windows_core::HRESULT> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ExtendedError)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1020,19 +762,17 @@ impl ::windows_core::RuntimeType for AdaptiveMediaSourceCreationResult { } unsafe impl ::windows_core::Interface for AdaptiveMediaSourceCreationResult { type Vtable = IAdaptiveMediaSourceCreationResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AdaptiveMediaSourceCreationResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AdaptiveMediaSourceCreationResult { const NAME: &'static str = "Windows.Media.Streaming.Adaptive.AdaptiveMediaSourceCreationResult"; } -::windows_core::imp::interface_hierarchy!(AdaptiveMediaSourceCreationResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AdaptiveMediaSourceCreationResult {} unsafe impl ::core::marker::Sync for AdaptiveMediaSourceCreationResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AdaptiveMediaSourceDiagnosticAvailableEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AdaptiveMediaSourceDiagnosticAvailableEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AdaptiveMediaSourceDiagnosticAvailableEventArgs { pub fn DiagnosticType(&self) -> ::windows_core::Result { let this = self; @@ -1098,21 +838,21 @@ impl AdaptiveMediaSourceDiagnosticAvailableEventArgs { } } pub fn ExtendedError(&self) -> ::windows_core::Result<::windows_core::HRESULT> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ExtendedError)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ResourceDuration(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ResourceDuration)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ResourceContentType(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ResourceContentType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1124,19 +864,17 @@ impl ::windows_core::RuntimeType for AdaptiveMediaSourceDiagnosticAvailableEvent } unsafe impl ::windows_core::Interface for AdaptiveMediaSourceDiagnosticAvailableEventArgs { type Vtable = IAdaptiveMediaSourceDiagnosticAvailableEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AdaptiveMediaSourceDiagnosticAvailableEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AdaptiveMediaSourceDiagnosticAvailableEventArgs { const NAME: &'static str = "Windows.Media.Streaming.Adaptive.AdaptiveMediaSourceDiagnosticAvailableEventArgs"; } -::windows_core::imp::interface_hierarchy!(AdaptiveMediaSourceDiagnosticAvailableEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AdaptiveMediaSourceDiagnosticAvailableEventArgs {} unsafe impl ::core::marker::Sync for AdaptiveMediaSourceDiagnosticAvailableEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AdaptiveMediaSourceDiagnostics(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AdaptiveMediaSourceDiagnostics, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AdaptiveMediaSourceDiagnostics { pub fn DiagnosticAvailable(&self, handler: P0) -> ::windows_core::Result where @@ -1158,19 +896,17 @@ impl ::windows_core::RuntimeType for AdaptiveMediaSourceDiagnostics { } unsafe impl ::windows_core::Interface for AdaptiveMediaSourceDiagnostics { type Vtable = IAdaptiveMediaSourceDiagnostics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AdaptiveMediaSourceDiagnostics { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AdaptiveMediaSourceDiagnostics { const NAME: &'static str = "Windows.Media.Streaming.Adaptive.AdaptiveMediaSourceDiagnostics"; } -::windows_core::imp::interface_hierarchy!(AdaptiveMediaSourceDiagnostics, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AdaptiveMediaSourceDiagnostics {} unsafe impl ::core::marker::Sync for AdaptiveMediaSourceDiagnostics {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AdaptiveMediaSourceDownloadBitrateChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AdaptiveMediaSourceDownloadBitrateChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AdaptiveMediaSourceDownloadBitrateChangedEventArgs { pub fn OldValue(&self) -> ::windows_core::Result { let this = self; @@ -1187,7 +923,7 @@ impl AdaptiveMediaSourceDownloadBitrateChangedEventArgs { } } pub fn Reason(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Reason)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1199,19 +935,17 @@ impl ::windows_core::RuntimeType for AdaptiveMediaSourceDownloadBitrateChangedEv } unsafe impl ::windows_core::Interface for AdaptiveMediaSourceDownloadBitrateChangedEventArgs { type Vtable = IAdaptiveMediaSourceDownloadBitrateChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AdaptiveMediaSourceDownloadBitrateChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AdaptiveMediaSourceDownloadBitrateChangedEventArgs { const NAME: &'static str = "Windows.Media.Streaming.Adaptive.AdaptiveMediaSourceDownloadBitrateChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(AdaptiveMediaSourceDownloadBitrateChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AdaptiveMediaSourceDownloadBitrateChangedEventArgs {} unsafe impl ::core::marker::Sync for AdaptiveMediaSourceDownloadBitrateChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AdaptiveMediaSourceDownloadCompletedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AdaptiveMediaSourceDownloadCompletedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AdaptiveMediaSourceDownloadCompletedEventArgs { pub fn ResourceType(&self) -> ::windows_core::Result { let this = self; @@ -1251,35 +985,35 @@ impl AdaptiveMediaSourceDownloadCompletedEventArgs { } } pub fn RequestId(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RequestId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Statistics(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Statistics)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Position(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Position)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ResourceDuration(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ResourceDuration)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ResourceContentType(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ResourceContentType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1291,19 +1025,17 @@ impl ::windows_core::RuntimeType for AdaptiveMediaSourceDownloadCompletedEventAr } unsafe impl ::windows_core::Interface for AdaptiveMediaSourceDownloadCompletedEventArgs { type Vtable = IAdaptiveMediaSourceDownloadCompletedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AdaptiveMediaSourceDownloadCompletedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AdaptiveMediaSourceDownloadCompletedEventArgs { const NAME: &'static str = "Windows.Media.Streaming.Adaptive.AdaptiveMediaSourceDownloadCompletedEventArgs"; } -::windows_core::imp::interface_hierarchy!(AdaptiveMediaSourceDownloadCompletedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AdaptiveMediaSourceDownloadCompletedEventArgs {} unsafe impl ::core::marker::Sync for AdaptiveMediaSourceDownloadCompletedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AdaptiveMediaSourceDownloadFailedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AdaptiveMediaSourceDownloadFailedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AdaptiveMediaSourceDownloadFailedEventArgs { pub fn ResourceType(&self) -> ::windows_core::Result { let this = self; @@ -1343,42 +1075,42 @@ impl AdaptiveMediaSourceDownloadFailedEventArgs { } } pub fn RequestId(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RequestId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ExtendedError(&self) -> ::windows_core::Result<::windows_core::HRESULT> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ExtendedError)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Statistics(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Statistics)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Position(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Position)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ResourceDuration(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ResourceDuration)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ResourceContentType(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ResourceContentType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1390,19 +1122,17 @@ impl ::windows_core::RuntimeType for AdaptiveMediaSourceDownloadFailedEventArgs } unsafe impl ::windows_core::Interface for AdaptiveMediaSourceDownloadFailedEventArgs { type Vtable = IAdaptiveMediaSourceDownloadFailedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AdaptiveMediaSourceDownloadFailedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AdaptiveMediaSourceDownloadFailedEventArgs { const NAME: &'static str = "Windows.Media.Streaming.Adaptive.AdaptiveMediaSourceDownloadFailedEventArgs"; } -::windows_core::imp::interface_hierarchy!(AdaptiveMediaSourceDownloadFailedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AdaptiveMediaSourceDownloadFailedEventArgs {} unsafe impl ::core::marker::Sync for AdaptiveMediaSourceDownloadFailedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AdaptiveMediaSourceDownloadRequestedDeferral(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AdaptiveMediaSourceDownloadRequestedDeferral, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AdaptiveMediaSourceDownloadRequestedDeferral { pub fn Complete(&self) -> ::windows_core::Result<()> { let this = self; @@ -1414,19 +1144,17 @@ impl ::windows_core::RuntimeType for AdaptiveMediaSourceDownloadRequestedDeferra } unsafe impl ::windows_core::Interface for AdaptiveMediaSourceDownloadRequestedDeferral { type Vtable = IAdaptiveMediaSourceDownloadRequestedDeferral_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AdaptiveMediaSourceDownloadRequestedDeferral { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AdaptiveMediaSourceDownloadRequestedDeferral { const NAME: &'static str = "Windows.Media.Streaming.Adaptive.AdaptiveMediaSourceDownloadRequestedDeferral"; } -::windows_core::imp::interface_hierarchy!(AdaptiveMediaSourceDownloadRequestedDeferral, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AdaptiveMediaSourceDownloadRequestedDeferral {} unsafe impl ::core::marker::Sync for AdaptiveMediaSourceDownloadRequestedDeferral {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AdaptiveMediaSourceDownloadRequestedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AdaptiveMediaSourceDownloadRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AdaptiveMediaSourceDownloadRequestedEventArgs { pub fn ResourceType(&self) -> ::windows_core::Result { let this = self; @@ -1471,28 +1199,28 @@ impl AdaptiveMediaSourceDownloadRequestedEventArgs { } } pub fn RequestId(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RequestId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Position(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Position)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ResourceDuration(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ResourceDuration)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ResourceContentType(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ResourceContentType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1504,19 +1232,17 @@ impl ::windows_core::RuntimeType for AdaptiveMediaSourceDownloadRequestedEventAr } unsafe impl ::windows_core::Interface for AdaptiveMediaSourceDownloadRequestedEventArgs { type Vtable = IAdaptiveMediaSourceDownloadRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AdaptiveMediaSourceDownloadRequestedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AdaptiveMediaSourceDownloadRequestedEventArgs { const NAME: &'static str = "Windows.Media.Streaming.Adaptive.AdaptiveMediaSourceDownloadRequestedEventArgs"; } -::windows_core::imp::interface_hierarchy!(AdaptiveMediaSourceDownloadRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AdaptiveMediaSourceDownloadRequestedEventArgs {} unsafe impl ::core::marker::Sync for AdaptiveMediaSourceDownloadRequestedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AdaptiveMediaSourceDownloadResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AdaptiveMediaSourceDownloadResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AdaptiveMediaSourceDownloadResult { pub fn ResourceUri(&self) -> ::windows_core::Result { let this = self; @@ -1545,10 +1271,10 @@ impl AdaptiveMediaSourceDownloadResult { #[cfg(feature = "Storage_Streams")] pub fn SetInputStream(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetInputStream)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetInputStream)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] @@ -1563,10 +1289,10 @@ impl AdaptiveMediaSourceDownloadResult { #[cfg(feature = "Storage_Streams")] pub fn SetBuffer(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetBuffer)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetBuffer)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn ContentType(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1591,7 +1317,7 @@ impl AdaptiveMediaSourceDownloadResult { unsafe { (::windows_core::Interface::vtable(this).SetExtendedStatus)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn ResourceByteRangeOffset(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ResourceByteRangeOffset)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1599,13 +1325,13 @@ impl AdaptiveMediaSourceDownloadResult { } pub fn SetResourceByteRangeOffset(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetResourceByteRangeOffset)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn ResourceByteRangeLength(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ResourceByteRangeLength)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1613,10 +1339,10 @@ impl AdaptiveMediaSourceDownloadResult { } pub fn SetResourceByteRangeLength(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetResourceByteRangeLength)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } } impl ::windows_core::RuntimeType for AdaptiveMediaSourceDownloadResult { @@ -1624,19 +1350,17 @@ impl ::windows_core::RuntimeType for AdaptiveMediaSourceDownloadResult { } unsafe impl ::windows_core::Interface for AdaptiveMediaSourceDownloadResult { type Vtable = IAdaptiveMediaSourceDownloadResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AdaptiveMediaSourceDownloadResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AdaptiveMediaSourceDownloadResult { const NAME: &'static str = "Windows.Media.Streaming.Adaptive.AdaptiveMediaSourceDownloadResult"; } -::windows_core::imp::interface_hierarchy!(AdaptiveMediaSourceDownloadResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AdaptiveMediaSourceDownloadResult {} unsafe impl ::core::marker::Sync for AdaptiveMediaSourceDownloadResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AdaptiveMediaSourceDownloadStatistics(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AdaptiveMediaSourceDownloadStatistics, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AdaptiveMediaSourceDownloadStatistics { pub fn ContentBytesReceivedCount(&self) -> ::windows_core::Result { let this = self; @@ -1672,19 +1396,17 @@ impl ::windows_core::RuntimeType for AdaptiveMediaSourceDownloadStatistics { } unsafe impl ::windows_core::Interface for AdaptiveMediaSourceDownloadStatistics { type Vtable = IAdaptiveMediaSourceDownloadStatistics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AdaptiveMediaSourceDownloadStatistics { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AdaptiveMediaSourceDownloadStatistics { const NAME: &'static str = "Windows.Media.Streaming.Adaptive.AdaptiveMediaSourceDownloadStatistics"; } -::windows_core::imp::interface_hierarchy!(AdaptiveMediaSourceDownloadStatistics, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AdaptiveMediaSourceDownloadStatistics {} unsafe impl ::core::marker::Sync for AdaptiveMediaSourceDownloadStatistics {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AdaptiveMediaSourcePlaybackBitrateChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AdaptiveMediaSourcePlaybackBitrateChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AdaptiveMediaSourcePlaybackBitrateChangedEventArgs { pub fn OldValue(&self) -> ::windows_core::Result { let this = self; @@ -1713,14 +1435,11 @@ impl ::windows_core::RuntimeType for AdaptiveMediaSourcePlaybackBitrateChangedEv } unsafe impl ::windows_core::Interface for AdaptiveMediaSourcePlaybackBitrateChangedEventArgs { type Vtable = IAdaptiveMediaSourcePlaybackBitrateChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AdaptiveMediaSourcePlaybackBitrateChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AdaptiveMediaSourcePlaybackBitrateChangedEventArgs { const NAME: &'static str = "Windows.Media.Streaming.Adaptive.AdaptiveMediaSourcePlaybackBitrateChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(AdaptiveMediaSourcePlaybackBitrateChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AdaptiveMediaSourcePlaybackBitrateChangedEventArgs {} unsafe impl ::core::marker::Sync for AdaptiveMediaSourcePlaybackBitrateChangedEventArgs {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Media/Transcoding/mod.rs b/crates/libs/windows/src/Windows/Media/Transcoding/mod.rs index 8ca76b16da..59c91ad3b0 100644 --- a/crates/libs/windows/src/Windows/Media/Transcoding/mod.rs +++ b/crates/libs/windows/src/Windows/Media/Transcoding/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaTranscoder(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaTranscoder { - type Vtable = IMediaTranscoder_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaTranscoder { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x190c99d2_a0aa_4d34_86bc_eed1b12c2f5b); -} +::windows_core::imp::com_interface!(IMediaTranscoder, IMediaTranscoder_Vtbl, 0x190c99d2_a0aa_4d34_86bc_eed1b12c2f5b); #[repr(C)] #[doc(hidden)] pub struct IMediaTranscoder_Vtbl { @@ -40,16 +31,7 @@ pub struct IMediaTranscoder_Vtbl { #[cfg(not(all(feature = "Media_MediaProperties", feature = "Storage_Streams")))] PrepareStreamTranscodeAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaTranscoder2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaTranscoder2 { - type Vtable = IMediaTranscoder2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaTranscoder2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x40531d74_35e0_4f04_8574_ca8bc4e5a082); -} +::windows_core::imp::com_interface!(IMediaTranscoder2, IMediaTranscoder2_Vtbl, 0x40531d74_35e0_4f04_8574_ca8bc4e5a082); #[repr(C)] #[doc(hidden)] pub struct IMediaTranscoder2_Vtbl { @@ -61,16 +43,7 @@ pub struct IMediaTranscoder2_Vtbl { pub SetVideoProcessingAlgorithm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: MediaVideoProcessingAlgorithm) -> ::windows_core::HRESULT, pub VideoProcessingAlgorithm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut MediaVideoProcessingAlgorithm) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrepareTranscodeResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrepareTranscodeResult { - type Vtable = IPrepareTranscodeResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrepareTranscodeResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x05f25dce_994f_4a34_9d68_97ccce1730d6); -} +::windows_core::imp::com_interface!(IPrepareTranscodeResult, IPrepareTranscodeResult_Vtbl, 0x05f25dce_994f_4a34_9d68_97ccce1730d6); #[repr(C)] #[doc(hidden)] pub struct IPrepareTranscodeResult_Vtbl { @@ -82,6 +55,7 @@ pub struct IPrepareTranscodeResult_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaTranscoder(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaTranscoder, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaTranscoder { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -142,10 +116,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::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).AddAudioEffectWithSettings)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(activatableclassid), effectrequired, configuration.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).AddAudioEffectWithSettings)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(activatableclassid), effectrequired, configuration.into_param().abi()).ok() } } pub fn AddVideoEffect(&self, activatableclassid: &::windows_core::HSTRING) -> ::windows_core::Result<()> { let this = self; @@ -155,10 +129,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::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).AddVideoEffectWithSettings)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(activatableclassid), effectrequired, configuration.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).AddVideoEffectWithSettings)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(activatableclassid), effectrequired, configuration.into_param().abi()).ok() } } pub fn ClearEffects(&self) -> ::windows_core::Result<()> { let this = self; @@ -168,50 +142,50 @@ 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::TryIntoParam, - P1: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, P2: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).PrepareFileTranscodeAsync)(::windows_core::Interface::as_raw(this), source.try_into_param()?.abi(), destination.try_into_param()?.abi(), profile.into_param().abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) } } #[doc = "Required features: `\"Media_MediaProperties\"`, `\"Storage_Streams\"`"] #[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::TryIntoParam, - P1: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, P2: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).PrepareStreamTranscodeAsync)(::windows_core::Interface::as_raw(this), source.try_into_param()?.abi(), destination.try_into_param()?.abi(), profile.into_param().abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) } } #[doc = "Required features: `\"Media_Core\"`, `\"Media_MediaProperties\"`, `\"Storage_Streams\"`"] #[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::TryIntoParam, - P1: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, P2: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), destination.try_into_param()?.abi(), profile.into_param().abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) } } pub fn SetVideoProcessingAlgorithm(&self, value: MediaVideoProcessingAlgorithm) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetVideoProcessingAlgorithm)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn VideoProcessingAlgorithm(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).VideoProcessingAlgorithm)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -223,19 +197,17 @@ impl ::windows_core::RuntimeType for MediaTranscoder { } unsafe impl ::windows_core::Interface for MediaTranscoder { type Vtable = IMediaTranscoder_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaTranscoder { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaTranscoder { const NAME: &'static str = "Windows.Media.Transcoding.MediaTranscoder"; } -::windows_core::imp::interface_hierarchy!(MediaTranscoder, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaTranscoder {} unsafe impl ::core::marker::Sync for MediaTranscoder {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PrepareTranscodeResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PrepareTranscodeResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PrepareTranscodeResult { pub fn CanTranscode(&self) -> ::windows_core::Result { let this = self; @@ -264,14 +236,11 @@ impl ::windows_core::RuntimeType for PrepareTranscodeResult { } unsafe impl ::windows_core::Interface for PrepareTranscodeResult { type Vtable = IPrepareTranscodeResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PrepareTranscodeResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PrepareTranscodeResult { const NAME: &'static str = "Windows.Media.Transcoding.PrepareTranscodeResult"; } -::windows_core::imp::interface_hierarchy!(PrepareTranscodeResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PrepareTranscodeResult {} unsafe impl ::core::marker::Sync for PrepareTranscodeResult {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Media/impl.rs b/crates/libs/windows/src/Windows/Media/impl.rs index 718b5c3aeb..958ec01120 100644 --- a/crates/libs/windows/src/Windows/Media/impl.rs +++ b/crates/libs/windows/src/Windows/Media/impl.rs @@ -18,7 +18,7 @@ impl IMediaExtension_Vtbl { Self { base__: ::windows_core::IInspectable_Vtbl::new::(), SetProperties: SetProperties:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -161,7 +161,7 @@ impl IMediaFrame_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMediaMarker_Impl: Sized { @@ -217,7 +217,7 @@ impl IMediaMarker_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -247,6 +247,6 @@ impl IMediaMarkers_Vtbl { Self { base__: ::windows_core::IInspectable_Vtbl::new::(), Markers: Markers:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/Media/mod.rs b/crates/libs/windows/src/Windows/Media/mod.rs index f6992f8cb0..d4b97c971f 100644 --- a/crates/libs/windows/src/Windows/Media/mod.rs +++ b/crates/libs/windows/src/Windows/Media/mod.rs @@ -79,16 +79,7 @@ pub mod Streaming; #[cfg(feature = "Media_Transcoding")] #[doc = "Required features: `\"Media_Transcoding\"`"] pub mod Transcoding; -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioBuffer(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioBuffer { - type Vtable = IAudioBuffer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioBuffer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x35175827_724b_4c6a_b130_f6537f9ae0d0); -} +::windows_core::imp::com_interface!(IAudioBuffer, IAudioBuffer_Vtbl, 0x35175827_724b_4c6a_b130_f6537f9ae0d0); #[repr(C)] #[doc(hidden)] pub struct IAudioBuffer_Vtbl { @@ -97,64 +88,28 @@ pub struct IAudioBuffer_Vtbl { pub Length: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, pub SetLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioFrame(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioFrame { - type Vtable = IAudioFrame_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioFrame { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe36ac304_aab2_4277_9ed0_43cedf8e29c6); -} +::windows_core::imp::com_interface!(IAudioFrame, IAudioFrame_Vtbl, 0xe36ac304_aab2_4277_9ed0_43cedf8e29c6); #[repr(C)] #[doc(hidden)] pub struct IAudioFrame_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub LockBuffer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mode: AudioBufferAccessMode, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioFrameFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioFrameFactory { - type Vtable = IAudioFrameFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioFrameFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x91a90ade_2422_40a6_b9ad_30d02404317d); -} +::windows_core::imp::com_interface!(IAudioFrameFactory, IAudioFrameFactory_Vtbl, 0x91a90ade_2422_40a6_b9ad_30d02404317d); #[repr(C)] #[doc(hidden)] pub struct IAudioFrameFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, capacity: u32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAutoRepeatModeChangeRequestedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAutoRepeatModeChangeRequestedEventArgs { - type Vtable = IAutoRepeatModeChangeRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAutoRepeatModeChangeRequestedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xea137efa_d852_438e_882b_c990109a78f4); -} +::windows_core::imp::com_interface!(IAutoRepeatModeChangeRequestedEventArgs, IAutoRepeatModeChangeRequestedEventArgs_Vtbl, 0xea137efa_d852_438e_882b_c990109a78f4); #[repr(C)] #[doc(hidden)] pub struct IAutoRepeatModeChangeRequestedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub RequestedAutoRepeatMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut MediaPlaybackAutoRepeatMode) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IImageDisplayProperties(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IImageDisplayProperties { - type Vtable = IImageDisplayProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IImageDisplayProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcd0bc7ef_54e7_411f_9933_f0e98b0a96d2); -} +::windows_core::imp::com_interface!(IImageDisplayProperties, IImageDisplayProperties_Vtbl, 0xcd0bc7ef_54e7_411f_9933_f0e98b0a96d2); #[repr(C)] #[doc(hidden)] pub struct IImageDisplayProperties_Vtbl { @@ -164,19 +119,13 @@ pub struct IImageDisplayProperties_Vtbl { pub Subtitle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetSubtitle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] #[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaControl(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for IMediaControl { - type Vtable = IMediaControl_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for IMediaControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x98f1fbe1_7a8d_42cb_b6fe_8fe698264f13); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + IMediaControl, + IMediaControl_Vtbl, + 0x98f1fbe1_7a8d_42cb_b6fe_8fe698264f13 +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -315,30 +264,22 @@ pub struct IMediaControl_Vtbl { #[cfg(not(feature = "deprecated"))] AlbumArt: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaExtension(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMediaExtension, IMediaExtension_Vtbl, 0x07915118_45df_442b_8a3f_f7826a6370ab); +::windows_core::imp::interface_hierarchy!(IMediaExtension, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IMediaExtension { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn SetProperties(&self, configuration: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetProperties)(::windows_core::Interface::as_raw(this), configuration.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetProperties)(::windows_core::Interface::as_raw(this), configuration.into_param().abi()).ok() } } } -::windows_core::imp::interface_hierarchy!(IMediaExtension, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IMediaExtension { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IMediaExtension { - type Vtable = IMediaExtension_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaExtension { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x07915118_45df_442b_8a3f_f7826a6370ab); -} #[repr(C)] #[doc(hidden)] pub struct IMediaExtension_Vtbl { @@ -348,16 +289,7 @@ pub struct IMediaExtension_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] SetProperties: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaExtensionManager(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaExtensionManager { - type Vtable = IMediaExtensionManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaExtensionManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4a25eaf5_242d_4dfb_97f4_69b7c42576ff); -} +::windows_core::imp::com_interface!(IMediaExtensionManager, IMediaExtensionManager_Vtbl, 0x4a25eaf5_242d_4dfb_97f4_69b7c42576ff); #[repr(C)] #[doc(hidden)] pub struct IMediaExtensionManager_Vtbl { @@ -393,16 +325,7 @@ pub struct IMediaExtensionManager_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] RegisterVideoEncoderWithSettings: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaExtensionManager2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaExtensionManager2 { - type Vtable = IMediaExtensionManager2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaExtensionManager2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5bcebf47_4043_4fed_acaf_54ec29dfb1f7); -} +::windows_core::imp::com_interface!(IMediaExtensionManager2, IMediaExtensionManager2_Vtbl, 0x5bcebf47_4043_4fed_acaf_54ec29dfb1f7); #[repr(C)] #[doc(hidden)] pub struct IMediaExtensionManager2_Vtbl { @@ -412,9 +335,9 @@ pub struct IMediaExtensionManager2_Vtbl { #[cfg(not(feature = "ApplicationModel_AppService"))] RegisterMediaExtensionForAppService: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaFrame(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMediaFrame, IMediaFrame_Vtbl, 0xbfb52f8c_5943_47d8_8e10_05308aa5fbd0); +::windows_core::imp::interface_hierarchy!(IMediaFrame, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IMediaFrame, super::Foundation::IClosable); impl IMediaFrame { pub fn Type(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -432,10 +355,10 @@ impl IMediaFrame { } pub fn SetRelativeTime(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetRelativeTime)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetRelativeTime)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn RelativeTime(&self) -> ::windows_core::Result> { let this = self; @@ -446,10 +369,10 @@ impl IMediaFrame { } pub fn SetSystemRelativeTime(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetSystemRelativeTime)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetSystemRelativeTime)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn SystemRelativeTime(&self) -> ::windows_core::Result> { let this = self; @@ -460,10 +383,10 @@ impl IMediaFrame { } pub fn SetDuration(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetDuration)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetDuration)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn Duration(&self) -> ::windows_core::Result> { let this = self; @@ -493,21 +416,13 @@ impl IMediaFrame { } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } } -::windows_core::imp::interface_hierarchy!(IMediaFrame, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IMediaFrame {} impl ::windows_core::RuntimeType for IMediaFrame { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IMediaFrame { - type Vtable = IMediaFrame_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaFrame { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbfb52f8c_5943_47d8_8e10_05308aa5fbd0); -} #[repr(C)] #[doc(hidden)] pub struct IMediaFrame_Vtbl { @@ -527,9 +442,8 @@ pub struct IMediaFrame_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] ExtendedProperties: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaMarker(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMediaMarker, IMediaMarker_Vtbl, 0x1803def8_dca5_4b6f_9c20_e3d3c0643625); +::windows_core::imp::interface_hierarchy!(IMediaMarker, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IMediaMarker { pub fn Time(&self) -> ::windows_core::Result { let this = self; @@ -553,16 +467,9 @@ impl IMediaMarker { } } } -::windows_core::imp::interface_hierarchy!(IMediaMarker, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IMediaMarker { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IMediaMarker { - type Vtable = IMediaMarker_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaMarker { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1803def8_dca5_4b6f_9c20_e3d3c0643625); -} #[repr(C)] #[doc(hidden)] pub struct IMediaMarker_Vtbl { @@ -571,25 +478,15 @@ pub struct IMediaMarker_Vtbl { pub MediaMarkerType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Text: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaMarkerTypesStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaMarkerTypesStatics { - type Vtable = IMediaMarkerTypesStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaMarkerTypesStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbb198040_482f_4743_8832_45853821ece0); -} +::windows_core::imp::com_interface!(IMediaMarkerTypesStatics, IMediaMarkerTypesStatics_Vtbl, 0xbb198040_482f_4743_8832_45853821ece0); #[repr(C)] #[doc(hidden)] pub struct IMediaMarkerTypesStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Bookmark: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaMarkers(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMediaMarkers, IMediaMarkers_Vtbl, 0xafeab189_f8dd_466e_aa10_920b52353fdf); +::windows_core::imp::interface_hierarchy!(IMediaMarkers, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IMediaMarkers { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -601,16 +498,9 @@ impl IMediaMarkers { } } } -::windows_core::imp::interface_hierarchy!(IMediaMarkers, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IMediaMarkers { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IMediaMarkers { - type Vtable = IMediaMarkers_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaMarkers { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xafeab189_f8dd_466e_aa10_920b52353fdf); -} #[repr(C)] #[doc(hidden)] pub struct IMediaMarkers_Vtbl { @@ -620,16 +510,7 @@ pub struct IMediaMarkers_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Markers: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaProcessingTriggerDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaProcessingTriggerDetails { - type Vtable = IMediaProcessingTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaProcessingTriggerDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeb8564ac_a351_4f4e_b4f0_9bf2408993db); -} +::windows_core::imp::com_interface!(IMediaProcessingTriggerDetails, IMediaProcessingTriggerDetails_Vtbl, 0xeb8564ac_a351_4f4e_b4f0_9bf2408993db); #[repr(C)] #[doc(hidden)] pub struct IMediaProcessingTriggerDetails_Vtbl { @@ -639,16 +520,7 @@ pub struct IMediaProcessingTriggerDetails_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Arguments: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaTimelineController(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaTimelineController { - type Vtable = IMediaTimelineController_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaTimelineController { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8ed361f3_0b78_4360_bf71_0c841999ea1b); -} +::windows_core::imp::com_interface!(IMediaTimelineController, IMediaTimelineController_Vtbl, 0x8ed361f3_0b78_4360_bf71_0c841999ea1b); #[repr(C)] #[doc(hidden)] pub struct IMediaTimelineController_Vtbl { @@ -666,16 +538,7 @@ pub struct IMediaTimelineController_Vtbl { pub StateChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, statechangedeventhandler: *mut ::core::ffi::c_void, result__: *mut super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveStateChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventcookie: super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaTimelineController2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaTimelineController2 { - type Vtable = IMediaTimelineController2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaTimelineController2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xef74ea38_9e72_4df9_8355_6e90c81bbadd); -} +::windows_core::imp::com_interface!(IMediaTimelineController2, IMediaTimelineController2_Vtbl, 0xef74ea38_9e72_4df9_8355_6e90c81bbadd); #[repr(C)] #[doc(hidden)] pub struct IMediaTimelineController2_Vtbl { @@ -689,32 +552,14 @@ pub struct IMediaTimelineController2_Vtbl { pub Ended: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventhandler: *mut ::core::ffi::c_void, result__: *mut super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveEnded: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaTimelineControllerFailedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaTimelineControllerFailedEventArgs { - type Vtable = IMediaTimelineControllerFailedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaTimelineControllerFailedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8821f81d_3e77_43fb_be26_4fc87a044834); -} +::windows_core::imp::com_interface!(IMediaTimelineControllerFailedEventArgs, IMediaTimelineControllerFailedEventArgs_Vtbl, 0x8821f81d_3e77_43fb_be26_4fc87a044834); #[repr(C)] #[doc(hidden)] pub struct IMediaTimelineControllerFailedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ExtendedError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMusicDisplayProperties(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMusicDisplayProperties { - type Vtable = IMusicDisplayProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMusicDisplayProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6bbf0c59_d0a0_4d26_92a0_f978e1d18e7b); -} +::windows_core::imp::com_interface!(IMusicDisplayProperties, IMusicDisplayProperties_Vtbl, 0x6bbf0c59_d0a0_4d26_92a0_f978e1d18e7b); #[repr(C)] #[doc(hidden)] pub struct IMusicDisplayProperties_Vtbl { @@ -726,16 +571,7 @@ pub struct IMusicDisplayProperties_Vtbl { pub Artist: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetArtist: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMusicDisplayProperties2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMusicDisplayProperties2 { - type Vtable = IMusicDisplayProperties2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMusicDisplayProperties2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00368462_97d3_44b9_b00f_008afcefaf18); -} +::windows_core::imp::com_interface!(IMusicDisplayProperties2, IMusicDisplayProperties2_Vtbl, 0x00368462_97d3_44b9_b00f_008afcefaf18); #[repr(C)] #[doc(hidden)] pub struct IMusicDisplayProperties2_Vtbl { @@ -749,16 +585,7 @@ pub struct IMusicDisplayProperties2_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Genres: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMusicDisplayProperties3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMusicDisplayProperties3 { - type Vtable = IMusicDisplayProperties3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMusicDisplayProperties3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4db51ac1_0681_4e8c_9401_b8159d9eefc7); -} +::windows_core::imp::com_interface!(IMusicDisplayProperties3, IMusicDisplayProperties3_Vtbl, 0x4db51ac1_0681_4e8c_9401_b8159d9eefc7); #[repr(C)] #[doc(hidden)] pub struct IMusicDisplayProperties3_Vtbl { @@ -766,64 +593,28 @@ pub struct IMusicDisplayProperties3_Vtbl { pub AlbumTrackCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, pub SetAlbumTrackCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlaybackPositionChangeRequestedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPlaybackPositionChangeRequestedEventArgs { - type Vtable = IPlaybackPositionChangeRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPlaybackPositionChangeRequestedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb4493f88_eb28_4961_9c14_335e44f3e125); -} +::windows_core::imp::com_interface!(IPlaybackPositionChangeRequestedEventArgs, IPlaybackPositionChangeRequestedEventArgs_Vtbl, 0xb4493f88_eb28_4961_9c14_335e44f3e125); #[repr(C)] #[doc(hidden)] pub struct IPlaybackPositionChangeRequestedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub RequestedPlaybackPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::Foundation::TimeSpan) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlaybackRateChangeRequestedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPlaybackRateChangeRequestedEventArgs { - type Vtable = IPlaybackRateChangeRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPlaybackRateChangeRequestedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2ce2c41f_3cd6_4f77_9ba7_eb27c26a2140); -} +::windows_core::imp::com_interface!(IPlaybackRateChangeRequestedEventArgs, IPlaybackRateChangeRequestedEventArgs_Vtbl, 0x2ce2c41f_3cd6_4f77_9ba7_eb27c26a2140); #[repr(C)] #[doc(hidden)] pub struct IPlaybackRateChangeRequestedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub RequestedPlaybackRate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShuffleEnabledChangeRequestedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IShuffleEnabledChangeRequestedEventArgs { - type Vtable = IShuffleEnabledChangeRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IShuffleEnabledChangeRequestedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x49b593fe_4fd0_4666_a314_c0e01940d302); -} +::windows_core::imp::com_interface!(IShuffleEnabledChangeRequestedEventArgs, IShuffleEnabledChangeRequestedEventArgs_Vtbl, 0x49b593fe_4fd0_4666_a314_c0e01940d302); #[repr(C)] #[doc(hidden)] pub struct IShuffleEnabledChangeRequestedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub RequestedShuffleEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISystemMediaTransportControls(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISystemMediaTransportControls { - type Vtable = ISystemMediaTransportControls_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISystemMediaTransportControls { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x99fa3ff4_1742_42a6_902e_087d41f965ec); -} +::windows_core::imp::com_interface!(ISystemMediaTransportControls, ISystemMediaTransportControls_Vtbl, 0x99fa3ff4_1742_42a6_902e_087d41f965ec); #[repr(C)] #[doc(hidden)] pub struct ISystemMediaTransportControls_Vtbl { @@ -859,16 +650,7 @@ pub struct ISystemMediaTransportControls_Vtbl { pub PropertyChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemovePropertyChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISystemMediaTransportControls2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISystemMediaTransportControls2 { - type Vtable = ISystemMediaTransportControls2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISystemMediaTransportControls2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xea98d2f6_7f3c_4af2_a586_72889808efb1); -} +::windows_core::imp::com_interface!(ISystemMediaTransportControls2, ISystemMediaTransportControls2_Vtbl, 0xea98d2f6_7f3c_4af2_a586_72889808efb1); #[repr(C)] #[doc(hidden)] pub struct ISystemMediaTransportControls2_Vtbl { @@ -889,32 +671,14 @@ pub struct ISystemMediaTransportControls2_Vtbl { pub AutoRepeatModeChangeRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveAutoRepeatModeChangeRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISystemMediaTransportControlsButtonPressedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISystemMediaTransportControlsButtonPressedEventArgs { - type Vtable = ISystemMediaTransportControlsButtonPressedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISystemMediaTransportControlsButtonPressedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb7f47116_a56f_4dc8_9e11_92031f4a87c2); -} +::windows_core::imp::com_interface!(ISystemMediaTransportControlsButtonPressedEventArgs, ISystemMediaTransportControlsButtonPressedEventArgs_Vtbl, 0xb7f47116_a56f_4dc8_9e11_92031f4a87c2); #[repr(C)] #[doc(hidden)] pub struct ISystemMediaTransportControlsButtonPressedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Button: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut SystemMediaTransportControlsButton) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISystemMediaTransportControlsDisplayUpdater(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISystemMediaTransportControlsDisplayUpdater { - type Vtable = ISystemMediaTransportControlsDisplayUpdater_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISystemMediaTransportControlsDisplayUpdater { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8abbc53e_fa55_4ecf_ad8e_c984e5dd1550); -} +::windows_core::imp::com_interface!(ISystemMediaTransportControlsDisplayUpdater, ISystemMediaTransportControlsDisplayUpdater_Vtbl, 0x8abbc53e_fa55_4ecf_ad8e_c984e5dd1550); #[repr(C)] #[doc(hidden)] pub struct ISystemMediaTransportControlsDisplayUpdater_Vtbl { @@ -941,48 +705,21 @@ pub struct ISystemMediaTransportControlsDisplayUpdater_Vtbl { pub ClearAll: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Update: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISystemMediaTransportControlsPropertyChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISystemMediaTransportControlsPropertyChangedEventArgs { - type Vtable = ISystemMediaTransportControlsPropertyChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISystemMediaTransportControlsPropertyChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd0ca0936_339b_4cb3_8eeb_737607f56e08); -} +::windows_core::imp::com_interface!(ISystemMediaTransportControlsPropertyChangedEventArgs, ISystemMediaTransportControlsPropertyChangedEventArgs_Vtbl, 0xd0ca0936_339b_4cb3_8eeb_737607f56e08); #[repr(C)] #[doc(hidden)] pub struct ISystemMediaTransportControlsPropertyChangedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Property: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut SystemMediaTransportControlsProperty) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISystemMediaTransportControlsStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISystemMediaTransportControlsStatics { - type Vtable = ISystemMediaTransportControlsStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISystemMediaTransportControlsStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x43ba380a_eca4_4832_91ab_d415fae484c6); -} +::windows_core::imp::com_interface!(ISystemMediaTransportControlsStatics, ISystemMediaTransportControlsStatics_Vtbl, 0x43ba380a_eca4_4832_91ab_d415fae484c6); #[repr(C)] #[doc(hidden)] pub struct ISystemMediaTransportControlsStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetForCurrentView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISystemMediaTransportControlsTimelineProperties(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISystemMediaTransportControlsTimelineProperties { - type Vtable = ISystemMediaTransportControlsTimelineProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISystemMediaTransportControlsTimelineProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5125316a_c3a2_475b_8507_93534dc88f15); -} +::windows_core::imp::com_interface!(ISystemMediaTransportControlsTimelineProperties, ISystemMediaTransportControlsTimelineProperties_Vtbl, 0x5125316a_c3a2_475b_8507_93534dc88f15); #[repr(C)] #[doc(hidden)] pub struct ISystemMediaTransportControlsTimelineProperties_Vtbl { @@ -998,16 +735,7 @@ pub struct ISystemMediaTransportControlsTimelineProperties_Vtbl { pub Position: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::Foundation::TimeSpan) -> ::windows_core::HRESULT, pub SetPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::Foundation::TimeSpan) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVideoDisplayProperties(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVideoDisplayProperties { - type Vtable = IVideoDisplayProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVideoDisplayProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5609fdb1_5d2d_4872_8170_45dee5bc2f5c); -} +::windows_core::imp::com_interface!(IVideoDisplayProperties, IVideoDisplayProperties_Vtbl, 0x5609fdb1_5d2d_4872_8170_45dee5bc2f5c); #[repr(C)] #[doc(hidden)] pub struct IVideoDisplayProperties_Vtbl { @@ -1017,16 +745,7 @@ pub struct IVideoDisplayProperties_Vtbl { pub Subtitle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetSubtitle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVideoDisplayProperties2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVideoDisplayProperties2 { - type Vtable = IVideoDisplayProperties2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVideoDisplayProperties2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb410e1ce_ab52_41ab_a486_cc10fab152f9); -} +::windows_core::imp::com_interface!(IVideoDisplayProperties2, IVideoDisplayProperties2_Vtbl, 0xb410e1ce_ab52_41ab_a486_cc10fab152f9); #[repr(C)] #[doc(hidden)] pub struct IVideoDisplayProperties2_Vtbl { @@ -1036,32 +755,14 @@ pub struct IVideoDisplayProperties2_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Genres: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVideoEffectsStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVideoEffectsStatics { - type Vtable = IVideoEffectsStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVideoEffectsStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1fcda5e8_baf1_4521_980c_3bcebb44cf38); -} +::windows_core::imp::com_interface!(IVideoEffectsStatics, IVideoEffectsStatics_Vtbl, 0x1fcda5e8_baf1_4521_980c_3bcebb44cf38); #[repr(C)] #[doc(hidden)] pub struct IVideoEffectsStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub VideoStabilization: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVideoFrame(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVideoFrame { - type Vtable = IVideoFrame_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVideoFrame { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0cc06625_90fc_4c92_bd95_7ded21819d1c); -} +::windows_core::imp::com_interface!(IVideoFrame, IVideoFrame_Vtbl, 0x0cc06625_90fc_4c92_bd95_7ded21819d1c); #[repr(C)] #[doc(hidden)] pub struct IVideoFrame_Vtbl { @@ -1076,16 +777,7 @@ pub struct IVideoFrame_Vtbl { #[cfg(not(feature = "Graphics_DirectX_Direct3D11"))] Direct3DSurface: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVideoFrame2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVideoFrame2 { - type Vtable = IVideoFrame2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVideoFrame2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3837840d_336c_4366_8d46_060798736c5d); -} +::windows_core::imp::com_interface!(IVideoFrame2, IVideoFrame2_Vtbl, 0x3837840d_336c_4366_8d46_060798736c5d); #[repr(C)] #[doc(hidden)] pub struct IVideoFrame2_Vtbl { @@ -1095,16 +787,7 @@ pub struct IVideoFrame2_Vtbl { #[cfg(not(feature = "Graphics_Imaging"))] CopyToWithBoundsAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVideoFrameFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVideoFrameFactory { - type Vtable = IVideoFrameFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVideoFrameFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x014b6d69_2228_4c92_92ff_50c380d3e776); -} +::windows_core::imp::com_interface!(IVideoFrameFactory, IVideoFrameFactory_Vtbl, 0x014b6d69_2228_4c92_92ff_50c380d3e776); #[repr(C)] #[doc(hidden)] pub struct IVideoFrameFactory_Vtbl { @@ -1118,16 +801,7 @@ pub struct IVideoFrameFactory_Vtbl { #[cfg(not(feature = "Graphics_Imaging"))] CreateWithAlpha: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVideoFrameStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVideoFrameStatics { - type Vtable = IVideoFrameStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVideoFrameStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xab2a556f_6111_4b33_8ec3_2b209a02e17a); -} +::windows_core::imp::com_interface!(IVideoFrameStatics, IVideoFrameStatics_Vtbl, 0xab2a556f_6111_4b33_8ec3_2b209a02e17a); #[repr(C)] #[doc(hidden)] pub struct IVideoFrameStatics_Vtbl { @@ -1152,6 +826,8 @@ pub struct IVideoFrameStatics_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AudioBuffer(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AudioBuffer, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(AudioBuffer, super::Foundation::IClosable, super::Foundation::IMemoryBuffer); impl AudioBuffer { pub fn Capacity(&self) -> ::windows_core::Result { let this = self; @@ -1172,11 +848,11 @@ impl AudioBuffer { unsafe { (::windows_core::Interface::vtable(this).SetLength)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn CreateReference(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateReference)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1188,21 +864,18 @@ impl ::windows_core::RuntimeType for AudioBuffer { } unsafe impl ::windows_core::Interface for AudioBuffer { type Vtable = IAudioBuffer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AudioBuffer { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AudioBuffer { const NAME: &'static str = "Windows.Media.AudioBuffer"; } -::windows_core::imp::interface_hierarchy!(AudioBuffer, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for AudioBuffer {} -impl ::windows_core::CanTryInto for AudioBuffer {} unsafe impl ::core::marker::Send for AudioBuffer {} unsafe impl ::core::marker::Sync for AudioBuffer {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AudioFrame(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AudioFrame, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(AudioFrame, super::Foundation::IClosable, IMediaFrame); impl AudioFrame { pub fn LockBuffer(&self, mode: AudioBufferAccessMode) -> ::windows_core::Result { let this = self; @@ -1218,18 +891,18 @@ impl AudioFrame { }) } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Type(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Type)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsReadOnly(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsReadOnly)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1237,13 +910,13 @@ impl AudioFrame { } pub fn SetRelativeTime(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetRelativeTime)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn RelativeTime(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RelativeTime)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1251,13 +924,13 @@ impl AudioFrame { } pub fn SetSystemRelativeTime(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetSystemRelativeTime)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn SystemRelativeTime(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SystemRelativeTime)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1265,24 +938,24 @@ impl AudioFrame { } pub fn SetDuration(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetDuration)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn Duration(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Duration)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsDiscontinuous(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsDiscontinuous)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsDiscontinuous(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsDiscontinuous)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1291,7 +964,7 @@ impl AudioFrame { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn ExtendedProperties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ExtendedProperties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1308,21 +981,17 @@ impl ::windows_core::RuntimeType for AudioFrame { } unsafe impl ::windows_core::Interface for AudioFrame { type Vtable = IAudioFrame_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AudioFrame { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AudioFrame { const NAME: &'static str = "Windows.Media.AudioFrame"; } -::windows_core::imp::interface_hierarchy!(AudioFrame, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for AudioFrame {} -impl ::windows_core::CanTryInto for AudioFrame {} unsafe impl ::core::marker::Send for AudioFrame {} unsafe impl ::core::marker::Sync for AudioFrame {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AutoRepeatModeChangeRequestedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AutoRepeatModeChangeRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AutoRepeatModeChangeRequestedEventArgs { pub fn RequestedAutoRepeatMode(&self) -> ::windows_core::Result { let this = self; @@ -1337,19 +1006,17 @@ impl ::windows_core::RuntimeType for AutoRepeatModeChangeRequestedEventArgs { } unsafe impl ::windows_core::Interface for AutoRepeatModeChangeRequestedEventArgs { type Vtable = IAutoRepeatModeChangeRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AutoRepeatModeChangeRequestedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AutoRepeatModeChangeRequestedEventArgs { const NAME: &'static str = "Windows.Media.AutoRepeatModeChangeRequestedEventArgs"; } -::windows_core::imp::interface_hierarchy!(AutoRepeatModeChangeRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AutoRepeatModeChangeRequestedEventArgs {} unsafe impl ::core::marker::Sync for AutoRepeatModeChangeRequestedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ImageDisplayProperties(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ImageDisplayProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ImageDisplayProperties { pub fn Title(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1379,14 +1046,11 @@ impl ::windows_core::RuntimeType for ImageDisplayProperties { } unsafe impl ::windows_core::Interface for ImageDisplayProperties { type Vtable = IImageDisplayProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ImageDisplayProperties { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ImageDisplayProperties { const NAME: &'static str = "Windows.Media.ImageDisplayProperties"; } -::windows_core::imp::interface_hierarchy!(ImageDisplayProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ImageDisplayProperties {} unsafe impl ::core::marker::Sync for ImageDisplayProperties {} #[doc = "Required features: `\"deprecated\"`"] @@ -1663,6 +1327,7 @@ impl ::windows_core::RuntimeName for MediaControl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaExtensionManager(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaExtensionManager, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaExtensionManager { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1679,10 +1344,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::TryIntoParam, + P0: ::windows_core::IntoParam, { 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.try_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.into_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; @@ -1692,10 +1357,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::TryIntoParam, + P0: ::windows_core::IntoParam, { 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.try_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.into_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; @@ -1705,10 +1370,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::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).RegisterAudioDecoderWithSettings)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(activatableclassid), inputsubtype, outputsubtype, configuration.try_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.into_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; @@ -1718,10 +1383,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::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).RegisterAudioEncoderWithSettings)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(activatableclassid), inputsubtype, outputsubtype, configuration.try_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.into_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; @@ -1731,10 +1396,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::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).RegisterVideoDecoderWithSettings)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(activatableclassid), inputsubtype, outputsubtype, configuration.try_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.into_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; @@ -1744,20 +1409,20 @@ 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::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).RegisterVideoEncoderWithSettings)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(activatableclassid), inputsubtype, outputsubtype, configuration.try_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.into_param().abi()).ok() } } #[doc = "Required features: `\"ApplicationModel_AppService\"`"] #[cfg(feature = "ApplicationModel_AppService")] pub fn RegisterMediaExtensionForAppService(&self, extension: P0, connection: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).RegisterMediaExtensionForAppService)(::windows_core::Interface::as_raw(this), extension.try_into_param()?.abi(), connection.into_param().abi()).ok() } + 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() } } } impl ::windows_core::RuntimeType for MediaExtensionManager { @@ -1765,14 +1430,11 @@ impl ::windows_core::RuntimeType for MediaExtensionManager { } unsafe impl ::windows_core::Interface for MediaExtensionManager { type Vtable = IMediaExtensionManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaExtensionManager { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaExtensionManager { const NAME: &'static str = "Windows.Media.MediaExtensionManager"; } -::windows_core::imp::interface_hierarchy!(MediaExtensionManager, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaExtensionManager {} unsafe impl ::core::marker::Sync for MediaExtensionManager {} pub struct MediaMarkerTypes; @@ -1795,6 +1457,7 @@ impl ::windows_core::RuntimeName for MediaMarkerTypes { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaProcessingTriggerDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaProcessingTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaProcessingTriggerDetails { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -1811,19 +1474,17 @@ impl ::windows_core::RuntimeType for MediaProcessingTriggerDetails { } unsafe impl ::windows_core::Interface for MediaProcessingTriggerDetails { type Vtable = IMediaProcessingTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaProcessingTriggerDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaProcessingTriggerDetails { const NAME: &'static str = "Windows.Media.MediaProcessingTriggerDetails"; } -::windows_core::imp::interface_hierarchy!(MediaProcessingTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaProcessingTriggerDetails {} unsafe impl ::core::marker::Sync for MediaProcessingTriggerDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaTimelineController(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaTimelineController, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaTimelineController { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1902,7 +1563,7 @@ impl MediaTimelineController { unsafe { (::windows_core::Interface::vtable(this).RemoveStateChanged)(::windows_core::Interface::as_raw(this), eventcookie).ok() } } pub fn Duration(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Duration)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1910,48 +1571,48 @@ impl MediaTimelineController { } pub fn SetDuration(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetDuration)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn IsLoopingEnabled(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsLoopingEnabled)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsLoopingEnabled(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsLoopingEnabled)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Failed(&self, eventhandler: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveFailed(&self, token: super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveFailed)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn Ended(&self, eventhandler: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveEnded(&self, token: super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveEnded)(::windows_core::Interface::as_raw(this), token).ok() } } } @@ -1960,19 +1621,17 @@ impl ::windows_core::RuntimeType for MediaTimelineController { } unsafe impl ::windows_core::Interface for MediaTimelineController { type Vtable = IMediaTimelineController_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaTimelineController { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaTimelineController { const NAME: &'static str = "Windows.Media.MediaTimelineController"; } -::windows_core::imp::interface_hierarchy!(MediaTimelineController, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaTimelineController {} unsafe impl ::core::marker::Sync for MediaTimelineController {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaTimelineControllerFailedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaTimelineControllerFailedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaTimelineControllerFailedEventArgs { pub fn ExtendedError(&self) -> ::windows_core::Result<::windows_core::HRESULT> { let this = self; @@ -1987,19 +1646,17 @@ impl ::windows_core::RuntimeType for MediaTimelineControllerFailedEventArgs { } unsafe impl ::windows_core::Interface for MediaTimelineControllerFailedEventArgs { type Vtable = IMediaTimelineControllerFailedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaTimelineControllerFailedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaTimelineControllerFailedEventArgs { const NAME: &'static str = "Windows.Media.MediaTimelineControllerFailedEventArgs"; } -::windows_core::imp::interface_hierarchy!(MediaTimelineControllerFailedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MediaTimelineControllerFailedEventArgs {} unsafe impl ::core::marker::Sync for MediaTimelineControllerFailedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MusicDisplayProperties(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MusicDisplayProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MusicDisplayProperties { pub fn Title(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -2035,45 +1692,45 @@ impl MusicDisplayProperties { unsafe { (::windows_core::Interface::vtable(this).SetArtist)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn AlbumTitle(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AlbumTitle)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetAlbumTitle(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetAlbumTitle)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn TrackNumber(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TrackNumber)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetTrackNumber(&self, value: u32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetTrackNumber)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Genres(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Genres)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn AlbumTrackCount(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AlbumTrackCount)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetAlbumTrackCount(&self, value: u32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetAlbumTrackCount)(::windows_core::Interface::as_raw(this), value).ok() } } } @@ -2082,19 +1739,17 @@ impl ::windows_core::RuntimeType for MusicDisplayProperties { } unsafe impl ::windows_core::Interface for MusicDisplayProperties { type Vtable = IMusicDisplayProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MusicDisplayProperties { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MusicDisplayProperties { const NAME: &'static str = "Windows.Media.MusicDisplayProperties"; } -::windows_core::imp::interface_hierarchy!(MusicDisplayProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MusicDisplayProperties {} unsafe impl ::core::marker::Sync for MusicDisplayProperties {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PlaybackPositionChangeRequestedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PlaybackPositionChangeRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PlaybackPositionChangeRequestedEventArgs { pub fn RequestedPlaybackPosition(&self) -> ::windows_core::Result { let this = self; @@ -2109,19 +1764,17 @@ impl ::windows_core::RuntimeType for PlaybackPositionChangeRequestedEventArgs { } unsafe impl ::windows_core::Interface for PlaybackPositionChangeRequestedEventArgs { type Vtable = IPlaybackPositionChangeRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PlaybackPositionChangeRequestedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PlaybackPositionChangeRequestedEventArgs { const NAME: &'static str = "Windows.Media.PlaybackPositionChangeRequestedEventArgs"; } -::windows_core::imp::interface_hierarchy!(PlaybackPositionChangeRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PlaybackPositionChangeRequestedEventArgs {} unsafe impl ::core::marker::Sync for PlaybackPositionChangeRequestedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PlaybackRateChangeRequestedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PlaybackRateChangeRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PlaybackRateChangeRequestedEventArgs { pub fn RequestedPlaybackRate(&self) -> ::windows_core::Result { let this = self; @@ -2136,19 +1789,17 @@ impl ::windows_core::RuntimeType for PlaybackRateChangeRequestedEventArgs { } unsafe impl ::windows_core::Interface for PlaybackRateChangeRequestedEventArgs { type Vtable = IPlaybackRateChangeRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PlaybackRateChangeRequestedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PlaybackRateChangeRequestedEventArgs { const NAME: &'static str = "Windows.Media.PlaybackRateChangeRequestedEventArgs"; } -::windows_core::imp::interface_hierarchy!(PlaybackRateChangeRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PlaybackRateChangeRequestedEventArgs {} unsafe impl ::core::marker::Sync for PlaybackRateChangeRequestedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ShuffleEnabledChangeRequestedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ShuffleEnabledChangeRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ShuffleEnabledChangeRequestedEventArgs { pub fn RequestedShuffleEnabled(&self) -> ::windows_core::Result { let this = self; @@ -2163,19 +1814,17 @@ impl ::windows_core::RuntimeType for ShuffleEnabledChangeRequestedEventArgs { } unsafe impl ::windows_core::Interface for ShuffleEnabledChangeRequestedEventArgs { type Vtable = IShuffleEnabledChangeRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ShuffleEnabledChangeRequestedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ShuffleEnabledChangeRequestedEventArgs { const NAME: &'static str = "Windows.Media.ShuffleEnabledChangeRequestedEventArgs"; } -::windows_core::imp::interface_hierarchy!(ShuffleEnabledChangeRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ShuffleEnabledChangeRequestedEventArgs {} unsafe impl ::core::marker::Sync for ShuffleEnabledChangeRequestedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SystemMediaTransportControls(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SystemMediaTransportControls, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SystemMediaTransportControls { pub fn PlaybackStatus(&self) -> ::windows_core::Result { let this = self; @@ -2352,99 +2001,99 @@ impl SystemMediaTransportControls { unsafe { (::windows_core::Interface::vtable(this).RemovePropertyChanged)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn AutoRepeatMode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AutoRepeatMode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetAutoRepeatMode(&self, value: MediaPlaybackAutoRepeatMode) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetAutoRepeatMode)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn ShuffleEnabled(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ShuffleEnabled)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetShuffleEnabled(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetShuffleEnabled)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn PlaybackRate(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PlaybackRate)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetPlaybackRate(&self, value: f64) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetPlaybackRate)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn UpdateTimelineProperties(&self, timelineproperties: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn PlaybackPositionChangeRequested(&self, handler: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemovePlaybackPositionChangeRequested(&self, token: super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemovePlaybackPositionChangeRequested)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn PlaybackRateChangeRequested(&self, handler: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemovePlaybackRateChangeRequested(&self, token: super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemovePlaybackRateChangeRequested)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn ShuffleEnabledChangeRequested(&self, handler: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveShuffleEnabledChangeRequested(&self, token: super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveShuffleEnabledChangeRequested)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn AutoRepeatModeChangeRequested(&self, handler: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveAutoRepeatModeChangeRequested(&self, token: super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveAutoRepeatModeChangeRequested)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn GetForCurrentView() -> ::windows_core::Result { @@ -2464,19 +2113,17 @@ impl ::windows_core::RuntimeType for SystemMediaTransportControls { } unsafe impl ::windows_core::Interface for SystemMediaTransportControls { type Vtable = ISystemMediaTransportControls_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SystemMediaTransportControls { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SystemMediaTransportControls { const NAME: &'static str = "Windows.Media.SystemMediaTransportControls"; } -::windows_core::imp::interface_hierarchy!(SystemMediaTransportControls, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SystemMediaTransportControls {} unsafe impl ::core::marker::Sync for SystemMediaTransportControls {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SystemMediaTransportControlsButtonPressedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SystemMediaTransportControlsButtonPressedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SystemMediaTransportControlsButtonPressedEventArgs { pub fn Button(&self) -> ::windows_core::Result { let this = self; @@ -2491,19 +2138,17 @@ impl ::windows_core::RuntimeType for SystemMediaTransportControlsButtonPressedEv } unsafe impl ::windows_core::Interface for SystemMediaTransportControlsButtonPressedEventArgs { type Vtable = ISystemMediaTransportControlsButtonPressedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SystemMediaTransportControlsButtonPressedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SystemMediaTransportControlsButtonPressedEventArgs { const NAME: &'static str = "Windows.Media.SystemMediaTransportControlsButtonPressedEventArgs"; } -::windows_core::imp::interface_hierarchy!(SystemMediaTransportControlsButtonPressedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SystemMediaTransportControlsButtonPressedEventArgs {} unsafe impl ::core::marker::Sync for SystemMediaTransportControlsButtonPressedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SystemMediaTransportControlsDisplayUpdater(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SystemMediaTransportControlsDisplayUpdater, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SystemMediaTransportControlsDisplayUpdater { pub fn Type(&self) -> ::windows_core::Result { let this = self; @@ -2592,19 +2237,17 @@ impl ::windows_core::RuntimeType for SystemMediaTransportControlsDisplayUpdater } unsafe impl ::windows_core::Interface for SystemMediaTransportControlsDisplayUpdater { type Vtable = ISystemMediaTransportControlsDisplayUpdater_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SystemMediaTransportControlsDisplayUpdater { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SystemMediaTransportControlsDisplayUpdater { const NAME: &'static str = "Windows.Media.SystemMediaTransportControlsDisplayUpdater"; } -::windows_core::imp::interface_hierarchy!(SystemMediaTransportControlsDisplayUpdater, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SystemMediaTransportControlsDisplayUpdater {} unsafe impl ::core::marker::Sync for SystemMediaTransportControlsDisplayUpdater {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SystemMediaTransportControlsPropertyChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SystemMediaTransportControlsPropertyChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SystemMediaTransportControlsPropertyChangedEventArgs { pub fn Property(&self) -> ::windows_core::Result { let this = self; @@ -2619,19 +2262,17 @@ impl ::windows_core::RuntimeType for SystemMediaTransportControlsPropertyChanged } unsafe impl ::windows_core::Interface for SystemMediaTransportControlsPropertyChangedEventArgs { type Vtable = ISystemMediaTransportControlsPropertyChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SystemMediaTransportControlsPropertyChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SystemMediaTransportControlsPropertyChangedEventArgs { const NAME: &'static str = "Windows.Media.SystemMediaTransportControlsPropertyChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(SystemMediaTransportControlsPropertyChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SystemMediaTransportControlsPropertyChangedEventArgs {} unsafe impl ::core::marker::Sync for SystemMediaTransportControlsPropertyChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SystemMediaTransportControlsTimelineProperties(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SystemMediaTransportControlsTimelineProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SystemMediaTransportControlsTimelineProperties { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2701,19 +2342,17 @@ impl ::windows_core::RuntimeType for SystemMediaTransportControlsTimelinePropert } unsafe impl ::windows_core::Interface for SystemMediaTransportControlsTimelineProperties { type Vtable = ISystemMediaTransportControlsTimelineProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SystemMediaTransportControlsTimelineProperties { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SystemMediaTransportControlsTimelineProperties { const NAME: &'static str = "Windows.Media.SystemMediaTransportControlsTimelineProperties"; } -::windows_core::imp::interface_hierarchy!(SystemMediaTransportControlsTimelineProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SystemMediaTransportControlsTimelineProperties {} unsafe impl ::core::marker::Sync for SystemMediaTransportControlsTimelineProperties {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VideoDisplayProperties(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VideoDisplayProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); impl VideoDisplayProperties { pub fn Title(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -2740,7 +2379,7 @@ impl VideoDisplayProperties { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Genres(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Genres)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2752,14 +2391,11 @@ impl ::windows_core::RuntimeType for VideoDisplayProperties { } unsafe impl ::windows_core::Interface for VideoDisplayProperties { type Vtable = IVideoDisplayProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VideoDisplayProperties { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VideoDisplayProperties { const NAME: &'static str = "Windows.Media.VideoDisplayProperties"; } -::windows_core::imp::interface_hierarchy!(VideoDisplayProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for VideoDisplayProperties {} unsafe impl ::core::marker::Sync for VideoDisplayProperties {} pub struct VideoEffects; @@ -2782,20 +2418,22 @@ impl ::windows_core::RuntimeName for VideoEffects { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VideoFrame(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VideoFrame, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(VideoFrame, super::Foundation::IClosable, IMediaFrame); impl VideoFrame { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Type(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Type)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsReadOnly(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsReadOnly)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2803,13 +2441,13 @@ impl VideoFrame { } pub fn SetRelativeTime(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetRelativeTime)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn RelativeTime(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RelativeTime)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2817,13 +2455,13 @@ impl VideoFrame { } pub fn SetSystemRelativeTime(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetSystemRelativeTime)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn SystemRelativeTime(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SystemRelativeTime)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2831,24 +2469,24 @@ impl VideoFrame { } pub fn SetDuration(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetDuration)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn Duration(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Duration)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsDiscontinuous(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsDiscontinuous)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsDiscontinuous(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsDiscontinuous)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2857,7 +2495,7 @@ impl VideoFrame { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn ExtendedProperties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ExtendedProperties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2896,13 +2534,13 @@ impl VideoFrame { pub fn CopyToWithBoundsAsync(&self, frame: P0, sourcebounds: P1, destinationbounds: P2) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam>, - P2: ::windows_core::TryIntoParam>, + P1: ::windows_core::IntoParam>, + P2: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), destinationbounds.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) } } #[doc = "Required features: `\"Graphics_Imaging\"`"] @@ -2933,11 +2571,11 @@ 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::TryIntoParam, + P0: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateAsDirect3D11SurfaceBackedWithDevice)(::windows_core::Interface::as_raw(this), format, width, height, device.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Graphics_Imaging\"`"] @@ -2955,11 +2593,11 @@ impl VideoFrame { #[cfg(feature = "Graphics_DirectX_Direct3D11")] pub fn CreateWithDirect3D11Surface(surface: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IVideoFrameStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateWithDirect3D11Surface)(::windows_core::Interface::as_raw(this), surface.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateWithDirect3D11Surface)(::windows_core::Interface::as_raw(this), surface.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -2978,16 +2616,11 @@ impl ::windows_core::RuntimeType for VideoFrame { } unsafe impl ::windows_core::Interface for VideoFrame { type Vtable = IVideoFrame_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VideoFrame { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VideoFrame { const NAME: &'static str = "Windows.Media.VideoFrame"; } -::windows_core::imp::interface_hierarchy!(VideoFrame, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for VideoFrame {} -impl ::windows_core::CanTryInto for VideoFrame {} unsafe impl ::core::marker::Send for VideoFrame {} unsafe impl ::core::marker::Sync for VideoFrame {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Networking/BackgroundTransfer/impl.rs b/crates/libs/windows/src/Windows/Networking/BackgroundTransfer/impl.rs index 667cdb0e23..aafb46719e 100644 --- a/crates/libs/windows/src/Windows/Networking/BackgroundTransfer/impl.rs +++ b/crates/libs/windows/src/Windows/Networking/BackgroundTransfer/impl.rs @@ -125,7 +125,7 @@ impl IBackgroundTransferBase_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IBackgroundTransferContentPartFactory_Impl: Sized { @@ -168,7 +168,7 @@ impl IBackgroundTransferContentPartFactory_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Storage_Streams\"`"] @@ -290,7 +290,7 @@ impl IBackgroundTransferOperation_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IBackgroundTransferOperationPriority_Impl: Sized { @@ -325,6 +325,6 @@ impl IBackgroundTransferOperationPriority_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/Networking/BackgroundTransfer/mod.rs b/crates/libs/windows/src/Windows/Networking/BackgroundTransfer/mod.rs index 7accada6fd..18f784cb41 100644 --- a/crates/libs/windows/src/Windows/Networking/BackgroundTransfer/mod.rs +++ b/crates/libs/windows/src/Windows/Networking/BackgroundTransfer/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundDownloader(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBackgroundDownloader { - type Vtable = IBackgroundDownloader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundDownloader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc1c79333_6649_4b1d_a826_a4b3dd234d0b); -} +::windows_core::imp::com_interface!(IBackgroundDownloader, IBackgroundDownloader_Vtbl, 0xc1c79333_6649_4b1d_a826_a4b3dd234d0b); #[repr(C)] #[doc(hidden)] pub struct IBackgroundDownloader_Vtbl { @@ -25,16 +16,7 @@ pub struct IBackgroundDownloader_Vtbl { #[cfg(not(feature = "Storage_Streams"))] CreateDownloadAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundDownloader2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBackgroundDownloader2 { - type Vtable = IBackgroundDownloader2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundDownloader2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa94a5847_348d_4a35_890e_8a1ef3798479); -} +::windows_core::imp::com_interface!(IBackgroundDownloader2, IBackgroundDownloader2_Vtbl, 0xa94a5847_348d_4a35_890e_8a1ef3798479); #[repr(C)] #[doc(hidden)] pub struct IBackgroundDownloader2_Vtbl { @@ -74,48 +56,21 @@ pub struct IBackgroundDownloader2_Vtbl { #[cfg(not(feature = "UI_Notifications"))] SetFailureTileNotification: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundDownloader3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBackgroundDownloader3 { - type Vtable = IBackgroundDownloader3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundDownloader3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd11a8c48_86e8_48e2_b615_6976aabf861d); -} +::windows_core::imp::com_interface!(IBackgroundDownloader3, IBackgroundDownloader3_Vtbl, 0xd11a8c48_86e8_48e2_b615_6976aabf861d); #[repr(C)] #[doc(hidden)] pub struct IBackgroundDownloader3_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CompletionGroup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundDownloaderFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBackgroundDownloaderFactory { - type Vtable = IBackgroundDownloaderFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundDownloaderFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x26836c24_d89e_46f4_a29a_4f4d4f144155); -} +::windows_core::imp::com_interface!(IBackgroundDownloaderFactory, IBackgroundDownloaderFactory_Vtbl, 0x26836c24_d89e_46f4_a29a_4f4d4f144155); #[repr(C)] #[doc(hidden)] pub struct IBackgroundDownloaderFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateWithCompletionGroup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, completiongroup: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundDownloaderStaticMethods(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBackgroundDownloaderStaticMethods { - type Vtable = IBackgroundDownloaderStaticMethods_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundDownloaderStaticMethods { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x52a65a35_c64e_426c_9919_540d0d21a650); -} +::windows_core::imp::com_interface!(IBackgroundDownloaderStaticMethods, IBackgroundDownloaderStaticMethods_Vtbl, 0x52a65a35_c64e_426c_9919_540d0d21a650); #[repr(C)] #[doc(hidden)] pub struct IBackgroundDownloaderStaticMethods_Vtbl { @@ -129,16 +84,7 @@ pub struct IBackgroundDownloaderStaticMethods_Vtbl { #[cfg(not(all(feature = "Foundation_Collections", feature = "deprecated")))] GetCurrentDownloadsForGroupAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundDownloaderStaticMethods2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBackgroundDownloaderStaticMethods2 { - type Vtable = IBackgroundDownloaderStaticMethods2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundDownloaderStaticMethods2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2faa1327_1ad4_4ca5_b2cd_08dbf0746afe); -} +::windows_core::imp::com_interface!(IBackgroundDownloaderStaticMethods2, IBackgroundDownloaderStaticMethods2_Vtbl, 0x2faa1327_1ad4_4ca5_b2cd_08dbf0746afe); #[repr(C)] #[doc(hidden)] pub struct IBackgroundDownloaderStaticMethods2_Vtbl { @@ -148,19 +94,13 @@ pub struct IBackgroundDownloaderStaticMethods2_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetCurrentDownloadsForTransferGroupAsync: usize, } -#[doc(hidden)] #[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundDownloaderUserConsent(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for IBackgroundDownloaderUserConsent { - type Vtable = IBackgroundDownloaderUserConsent_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for IBackgroundDownloaderUserConsent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5d14e906_9266_4808_bd71_5925f2a3130a); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + IBackgroundDownloaderUserConsent, + IBackgroundDownloaderUserConsent_Vtbl, + 0x5d14e906_9266_4808_bd71_5925f2a3130a +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -171,9 +111,8 @@ pub struct IBackgroundDownloaderUserConsent_Vtbl { #[cfg(not(all(feature = "Foundation_Collections", feature = "deprecated")))] RequestUnconstrainedDownloadsAsync: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundTransferBase(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBackgroundTransferBase, IBackgroundTransferBase_Vtbl, 0x2a9da250_c769_458c_afe8_feb8d4d3b2ef); +::windows_core::imp::interface_hierarchy!(IBackgroundTransferBase, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IBackgroundTransferBase { pub fn SetRequestHeader(&self, headername: &::windows_core::HSTRING, headervalue: &::windows_core::HSTRING) -> ::windows_core::Result<()> { let this = self; @@ -253,16 +192,9 @@ impl IBackgroundTransferBase { unsafe { (::windows_core::Interface::vtable(this).SetCostPolicy)(::windows_core::Interface::as_raw(this), value).ok() } } } -::windows_core::imp::interface_hierarchy!(IBackgroundTransferBase, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IBackgroundTransferBase { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IBackgroundTransferBase { - type Vtable = IBackgroundTransferBase_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundTransferBase { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2a9da250_c769_458c_afe8_feb8d4d3b2ef); -} #[repr(C)] #[doc(hidden)] pub struct IBackgroundTransferBase_Vtbl { @@ -297,16 +229,7 @@ pub struct IBackgroundTransferBase_Vtbl { pub CostPolicy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut BackgroundTransferCostPolicy) -> ::windows_core::HRESULT, pub SetCostPolicy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: BackgroundTransferCostPolicy) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundTransferCompletionGroup(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBackgroundTransferCompletionGroup { - type Vtable = IBackgroundTransferCompletionGroup_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundTransferCompletionGroup { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2d930225_986b_574d_7950_0add47f5d706); -} +::windows_core::imp::com_interface!(IBackgroundTransferCompletionGroup, IBackgroundTransferCompletionGroup_Vtbl, 0x2d930225_986b_574d_7950_0add47f5d706); #[repr(C)] #[doc(hidden)] pub struct IBackgroundTransferCompletionGroup_Vtbl { @@ -318,16 +241,7 @@ pub struct IBackgroundTransferCompletionGroup_Vtbl { pub IsEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub Enable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundTransferCompletionGroupTriggerDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBackgroundTransferCompletionGroupTriggerDetails { - type Vtable = IBackgroundTransferCompletionGroupTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundTransferCompletionGroupTriggerDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7b6be286_6e47_5136_7fcb_fa4389f46f5b); -} +::windows_core::imp::com_interface!(IBackgroundTransferCompletionGroupTriggerDetails, IBackgroundTransferCompletionGroupTriggerDetails_Vtbl, 0x7b6be286_6e47_5136_7fcb_fa4389f46f5b); #[repr(C)] #[doc(hidden)] pub struct IBackgroundTransferCompletionGroupTriggerDetails_Vtbl { @@ -341,16 +255,7 @@ pub struct IBackgroundTransferCompletionGroupTriggerDetails_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Uploads: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundTransferContentPart(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBackgroundTransferContentPart { - type Vtable = IBackgroundTransferContentPart_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundTransferContentPart { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe8e15657_d7d1_4ed8_838e_674ac217ace6); -} +::windows_core::imp::com_interface!(IBackgroundTransferContentPart, IBackgroundTransferContentPart_Vtbl, 0xe8e15657_d7d1_4ed8_838e_674ac217ace6); #[repr(C)] #[doc(hidden)] pub struct IBackgroundTransferContentPart_Vtbl { @@ -362,9 +267,8 @@ pub struct IBackgroundTransferContentPart_Vtbl { #[cfg(not(feature = "Storage"))] SetFile: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundTransferContentPartFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBackgroundTransferContentPartFactory, IBackgroundTransferContentPartFactory_Vtbl, 0x90ef98a9_7a01_4a0b_9f80_a0b0bb370f8d); +::windows_core::imp::interface_hierarchy!(IBackgroundTransferContentPartFactory, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IBackgroundTransferContentPartFactory { pub fn CreateWithName(&self, name: &::windows_core::HSTRING) -> ::windows_core::Result { let this = self; @@ -381,16 +285,9 @@ impl IBackgroundTransferContentPartFactory { } } } -::windows_core::imp::interface_hierarchy!(IBackgroundTransferContentPartFactory, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IBackgroundTransferContentPartFactory { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IBackgroundTransferContentPartFactory { - type Vtable = IBackgroundTransferContentPartFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundTransferContentPartFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x90ef98a9_7a01_4a0b_9f80_a0b0bb370f8d); -} #[repr(C)] #[doc(hidden)] pub struct IBackgroundTransferContentPartFactory_Vtbl { @@ -398,16 +295,7 @@ pub struct IBackgroundTransferContentPartFactory_Vtbl { pub CreateWithName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateWithNameAndFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows_core::HSTRING>, filename: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundTransferErrorStaticMethods(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBackgroundTransferErrorStaticMethods { - type Vtable = IBackgroundTransferErrorStaticMethods_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundTransferErrorStaticMethods { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaad33b04_1192_4bf4_8b68_39c5add244e2); -} +::windows_core::imp::com_interface!(IBackgroundTransferErrorStaticMethods, IBackgroundTransferErrorStaticMethods_Vtbl, 0xaad33b04_1192_4bf4_8b68_39c5add244e2); #[repr(C)] #[doc(hidden)] pub struct IBackgroundTransferErrorStaticMethods_Vtbl { @@ -417,16 +305,7 @@ pub struct IBackgroundTransferErrorStaticMethods_Vtbl { #[cfg(not(feature = "Web"))] GetStatus: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundTransferGroup(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBackgroundTransferGroup { - type Vtable = IBackgroundTransferGroup_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundTransferGroup { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd8c3e3e4_6459_4540_85eb_aaa1c8903677); -} +::windows_core::imp::com_interface!(IBackgroundTransferGroup, IBackgroundTransferGroup_Vtbl, 0xd8c3e3e4_6459_4540_85eb_aaa1c8903677); #[repr(C)] #[doc(hidden)] pub struct IBackgroundTransferGroup_Vtbl { @@ -435,25 +314,15 @@ pub struct IBackgroundTransferGroup_Vtbl { pub TransferBehavior: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut BackgroundTransferBehavior) -> ::windows_core::HRESULT, pub SetTransferBehavior: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: BackgroundTransferBehavior) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundTransferGroupStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBackgroundTransferGroupStatics { - type Vtable = IBackgroundTransferGroupStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundTransferGroupStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x02ec50b2_7d18_495b_aa22_32a97d45d3e2); -} +::windows_core::imp::com_interface!(IBackgroundTransferGroupStatics, IBackgroundTransferGroupStatics_Vtbl, 0x02ec50b2_7d18_495b_aa22_32a97d45d3e2); #[repr(C)] #[doc(hidden)] pub struct IBackgroundTransferGroupStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateGroup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundTransferOperation(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBackgroundTransferOperation, IBackgroundTransferOperation_Vtbl, 0xded06846_90ca_44fb_8fb1_124154c0d539); +::windows_core::imp::interface_hierarchy!(IBackgroundTransferOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IBackgroundTransferOperation { pub fn Guid(&self) -> ::windows_core::Result<::windows_core::GUID> { let this = self; @@ -513,16 +382,9 @@ impl IBackgroundTransferOperation { } } } -::windows_core::imp::interface_hierarchy!(IBackgroundTransferOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IBackgroundTransferOperation { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IBackgroundTransferOperation { - type Vtable = IBackgroundTransferOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundTransferOperation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xded06846_90ca_44fb_8fb1_124154c0d539); -} #[repr(C)] #[doc(hidden)] pub struct IBackgroundTransferOperation_Vtbl { @@ -542,9 +404,8 @@ pub struct IBackgroundTransferOperation_Vtbl { GetResultStreamAt: usize, pub GetResponseInformation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundTransferOperationPriority(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBackgroundTransferOperationPriority, IBackgroundTransferOperationPriority_Vtbl, 0x04854327_5254_4b3a_915e_0aa49275c0f9); +::windows_core::imp::interface_hierarchy!(IBackgroundTransferOperationPriority, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IBackgroundTransferOperationPriority { pub fn Priority(&self) -> ::windows_core::Result { let this = self; @@ -558,16 +419,9 @@ impl IBackgroundTransferOperationPriority { unsafe { (::windows_core::Interface::vtable(this).SetPriority)(::windows_core::Interface::as_raw(this), value).ok() } } } -::windows_core::imp::interface_hierarchy!(IBackgroundTransferOperationPriority, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IBackgroundTransferOperationPriority { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IBackgroundTransferOperationPriority { - type Vtable = IBackgroundTransferOperationPriority_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundTransferOperationPriority { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x04854327_5254_4b3a_915e_0aa49275c0f9); -} #[repr(C)] #[doc(hidden)] pub struct IBackgroundTransferOperationPriority_Vtbl { @@ -575,16 +429,7 @@ pub struct IBackgroundTransferOperationPriority_Vtbl { pub Priority: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut BackgroundTransferPriority) -> ::windows_core::HRESULT, pub SetPriority: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: BackgroundTransferPriority) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundTransferRangesDownloadedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBackgroundTransferRangesDownloadedEventArgs { - type Vtable = IBackgroundTransferRangesDownloadedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundTransferRangesDownloadedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3ebc7453_bf48_4a88_9248_b0c165184f5c); -} +::windows_core::imp::com_interface!(IBackgroundTransferRangesDownloadedEventArgs, IBackgroundTransferRangesDownloadedEventArgs_Vtbl, 0x3ebc7453_bf48_4a88_9248_b0c165184f5c); #[repr(C)] #[doc(hidden)] pub struct IBackgroundTransferRangesDownloadedEventArgs_Vtbl { @@ -596,16 +441,7 @@ pub struct IBackgroundTransferRangesDownloadedEventArgs_Vtbl { AddedRanges: usize, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundUploader(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBackgroundUploader { - type Vtable = IBackgroundUploader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundUploader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc595c9ae_cead_465b_8801_c55ac90a01ce); -} +::windows_core::imp::com_interface!(IBackgroundUploader, IBackgroundUploader_Vtbl, 0xc595c9ae_cead_465b_8801_c55ac90a01ce); #[repr(C)] #[doc(hidden)] pub struct IBackgroundUploader_Vtbl { @@ -631,16 +467,7 @@ pub struct IBackgroundUploader_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] CreateUploadWithSubTypeAndBoundaryAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundUploader2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBackgroundUploader2 { - type Vtable = IBackgroundUploader2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundUploader2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8e0612ce_0c34_4463_807f_198a1b8bd4ad); -} +::windows_core::imp::com_interface!(IBackgroundUploader2, IBackgroundUploader2_Vtbl, 0x8e0612ce_0c34_4463_807f_198a1b8bd4ad); #[repr(C)] #[doc(hidden)] pub struct IBackgroundUploader2_Vtbl { @@ -680,48 +507,21 @@ pub struct IBackgroundUploader2_Vtbl { #[cfg(not(feature = "UI_Notifications"))] SetFailureTileNotification: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundUploader3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBackgroundUploader3 { - type Vtable = IBackgroundUploader3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundUploader3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb95e9439_5bf0_4b3a_8c47_2c6199a854b9); -} +::windows_core::imp::com_interface!(IBackgroundUploader3, IBackgroundUploader3_Vtbl, 0xb95e9439_5bf0_4b3a_8c47_2c6199a854b9); #[repr(C)] #[doc(hidden)] pub struct IBackgroundUploader3_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CompletionGroup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundUploaderFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBackgroundUploaderFactory { - type Vtable = IBackgroundUploaderFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundUploaderFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x736203c7_10e7_48a0_ac3c_1ac71095ec57); -} +::windows_core::imp::com_interface!(IBackgroundUploaderFactory, IBackgroundUploaderFactory_Vtbl, 0x736203c7_10e7_48a0_ac3c_1ac71095ec57); #[repr(C)] #[doc(hidden)] pub struct IBackgroundUploaderFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateWithCompletionGroup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, completiongroup: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundUploaderStaticMethods(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBackgroundUploaderStaticMethods { - type Vtable = IBackgroundUploaderStaticMethods_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundUploaderStaticMethods { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf2875cfb_9b05_4741_9121_740a83e247df); -} +::windows_core::imp::com_interface!(IBackgroundUploaderStaticMethods, IBackgroundUploaderStaticMethods_Vtbl, 0xf2875cfb_9b05_4741_9121_740a83e247df); #[repr(C)] #[doc(hidden)] pub struct IBackgroundUploaderStaticMethods_Vtbl { @@ -735,16 +535,7 @@ pub struct IBackgroundUploaderStaticMethods_Vtbl { #[cfg(not(all(feature = "Foundation_Collections", feature = "deprecated")))] GetCurrentUploadsForGroupAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundUploaderStaticMethods2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBackgroundUploaderStaticMethods2 { - type Vtable = IBackgroundUploaderStaticMethods2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundUploaderStaticMethods2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe919ac62_ea08_42f0_a2ac_07e467549080); -} +::windows_core::imp::com_interface!(IBackgroundUploaderStaticMethods2, IBackgroundUploaderStaticMethods2_Vtbl, 0xe919ac62_ea08_42f0_a2ac_07e467549080); #[repr(C)] #[doc(hidden)] pub struct IBackgroundUploaderStaticMethods2_Vtbl { @@ -754,19 +545,13 @@ pub struct IBackgroundUploaderStaticMethods2_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetCurrentUploadsForTransferGroupAsync: usize, } -#[doc(hidden)] -#[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundUploaderUserConsent(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for IBackgroundUploaderUserConsent { - type Vtable = IBackgroundUploaderUserConsent_Vtbl; -} #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for IBackgroundUploaderUserConsent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3bb384cb_0760_461d_907f_5138f84d44c1); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + IBackgroundUploaderUserConsent, + IBackgroundUploaderUserConsent_Vtbl, + 0x3bb384cb_0760_461d_907f_5138f84d44c1 +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -777,16 +562,7 @@ pub struct IBackgroundUploaderUserConsent_Vtbl { #[cfg(not(all(feature = "Foundation_Collections", feature = "deprecated")))] RequestUnconstrainedUploadsAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContentPrefetcher(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContentPrefetcher { - type Vtable = IContentPrefetcher_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContentPrefetcher { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa8d6f754_7dc1_4cd9_8810_2a6aa9417e11); -} +::windows_core::imp::com_interface!(IContentPrefetcher, IContentPrefetcher_Vtbl, 0xa8d6f754_7dc1_4cd9_8810_2a6aa9417e11); #[repr(C)] #[doc(hidden)] pub struct IContentPrefetcher_Vtbl { @@ -798,32 +574,14 @@ pub struct IContentPrefetcher_Vtbl { pub SetIndirectContentUri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub IndirectContentUri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContentPrefetcherTime(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContentPrefetcherTime { - type Vtable = IContentPrefetcherTime_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContentPrefetcherTime { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe361fd08_132a_4fde_a7cc_fcb0e66523af); -} +::windows_core::imp::com_interface!(IContentPrefetcherTime, IContentPrefetcherTime_Vtbl, 0xe361fd08_132a_4fde_a7cc_fcb0e66523af); #[repr(C)] #[doc(hidden)] pub struct IContentPrefetcherTime_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub LastSuccessfulPrefetchTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDownloadOperation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDownloadOperation { - type Vtable = IDownloadOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDownloadOperation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbd87ebb0_5714_4e09_ba68_bef73903b0d7); -} +::windows_core::imp::com_interface!(IDownloadOperation, IDownloadOperation_Vtbl, 0xbd87ebb0_5714_4e09_ba68_bef73903b0d7); #[repr(C)] #[doc(hidden)] pub struct IDownloadOperation_Vtbl { @@ -838,32 +596,14 @@ pub struct IDownloadOperation_Vtbl { pub Pause: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Resume: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDownloadOperation2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDownloadOperation2 { - type Vtable = IDownloadOperation2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDownloadOperation2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa3cced40_8f9c_4353_9cd4_290dee387c38); -} +::windows_core::imp::com_interface!(IDownloadOperation2, IDownloadOperation2_Vtbl, 0xa3cced40_8f9c_4353_9cd4_290dee387c38); #[repr(C)] #[doc(hidden)] pub struct IDownloadOperation2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub TransferGroup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDownloadOperation3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDownloadOperation3 { - type Vtable = IDownloadOperation3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDownloadOperation3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5027351c_7d5e_4adc_b8d3_df5c6031b9cc); -} +::windows_core::imp::com_interface!(IDownloadOperation3, IDownloadOperation3_Vtbl, 0x5027351c_7d5e_4adc_b8d3_df5c6031b9cc); #[repr(C)] #[doc(hidden)] pub struct IDownloadOperation3_Vtbl { @@ -890,32 +630,14 @@ pub struct IDownloadOperation3_Vtbl { #[cfg(not(feature = "Web"))] CurrentWebErrorStatus: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDownloadOperation4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDownloadOperation4 { - type Vtable = IDownloadOperation4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDownloadOperation4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0cdaaef4_8cef_404a_966d_f058400bed80); -} +::windows_core::imp::com_interface!(IDownloadOperation4, IDownloadOperation4_Vtbl, 0x0cdaaef4_8cef_404a_966d_f058400bed80); #[repr(C)] #[doc(hidden)] pub struct IDownloadOperation4_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub MakeCurrentInTransferGroup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDownloadOperation5(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDownloadOperation5 { - type Vtable = IDownloadOperation5_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDownloadOperation5 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa699a86f_5590_463a_b8d6_1e491a2760a5); -} +::windows_core::imp::com_interface!(IDownloadOperation5, IDownloadOperation5_Vtbl, 0xa699a86f_5590_463a_b8d6_1e491a2760a5); #[repr(C)] #[doc(hidden)] pub struct IDownloadOperation5_Vtbl { @@ -923,16 +645,7 @@ pub struct IDownloadOperation5_Vtbl { pub SetRequestHeader: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, headername: ::std::mem::MaybeUninit<::windows_core::HSTRING>, headervalue: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub RemoveRequestHeader: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, headername: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IResponseInformation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IResponseInformation { - type Vtable = IResponseInformation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IResponseInformation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf8bb9a12_f713_4792_8b68_d9d297f91d2e); -} +::windows_core::imp::com_interface!(IResponseInformation, IResponseInformation_Vtbl, 0xf8bb9a12_f713_4792_8b68_d9d297f91d2e); #[repr(C)] #[doc(hidden)] pub struct IResponseInformation_Vtbl { @@ -945,19 +658,13 @@ pub struct IResponseInformation_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Headers: usize, } -#[doc(hidden)] -#[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUnconstrainedTransferRequestResult(::windows_core::IUnknown); #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for IUnconstrainedTransferRequestResult { - type Vtable = IUnconstrainedTransferRequestResult_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for IUnconstrainedTransferRequestResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4c24b81f_d944_4112_a98e_6a69522b7ebb); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + IUnconstrainedTransferRequestResult, + IUnconstrainedTransferRequestResult_Vtbl, + 0x4c24b81f_d944_4112_a98e_6a69522b7ebb +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -968,16 +675,7 @@ pub struct IUnconstrainedTransferRequestResult_Vtbl { #[cfg(not(feature = "deprecated"))] IsUnconstrained: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUploadOperation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUploadOperation { - type Vtable = IUploadOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUploadOperation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3e5624e0_7389_434c_8b35_427fd36bbdae); -} +::windows_core::imp::com_interface!(IUploadOperation, IUploadOperation_Vtbl, 0x3e5624e0_7389_434c_8b35_427fd36bbdae); #[repr(C)] #[doc(hidden)] pub struct IUploadOperation_Vtbl { @@ -990,48 +688,21 @@ pub struct IUploadOperation_Vtbl { pub StartAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub AttachAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUploadOperation2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUploadOperation2 { - type Vtable = IUploadOperation2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUploadOperation2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x556189f2_2774_4df6_9fa5_209f2bfb12f7); -} +::windows_core::imp::com_interface!(IUploadOperation2, IUploadOperation2_Vtbl, 0x556189f2_2774_4df6_9fa5_209f2bfb12f7); #[repr(C)] #[doc(hidden)] pub struct IUploadOperation2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub TransferGroup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUploadOperation3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUploadOperation3 { - type Vtable = IUploadOperation3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUploadOperation3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x42c92ca3_de39_4546_bc62_3774b4294de3); -} +::windows_core::imp::com_interface!(IUploadOperation3, IUploadOperation3_Vtbl, 0x42c92ca3_de39_4546_bc62_3774b4294de3); #[repr(C)] #[doc(hidden)] pub struct IUploadOperation3_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub MakeCurrentInTransferGroup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUploadOperation4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUploadOperation4 { - type Vtable = IUploadOperation4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUploadOperation4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x50edef31_fac5_41ee_b030_dc77caee9faa); -} +::windows_core::imp::com_interface!(IUploadOperation4, IUploadOperation4_Vtbl, 0x50edef31_fac5_41ee_b030_dc77caee9faa); #[repr(C)] #[doc(hidden)] pub struct IUploadOperation4_Vtbl { @@ -1042,6 +713,8 @@ pub struct IUploadOperation4_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BackgroundDownloader(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BackgroundDownloader, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(BackgroundDownloader, IBackgroundTransferBase); impl BackgroundDownloader { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1055,12 +728,12 @@ impl BackgroundDownloader { pub fn CreateDownload(&self, uri: P0, resultfile: P1) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam, + P1: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateDownload)(::windows_core::Interface::as_raw(this), uri.into_param().abi(), resultfile.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Storage\"`"] @@ -1068,13 +741,13 @@ impl BackgroundDownloader { pub fn CreateDownloadFromFile(&self, uri: P0, resultfile: P1, requestbodyfile: P2) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam, - P2: ::windows_core::TryIntoParam, + P1: ::windows_core::IntoParam, + P2: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), requestbodyfile.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) } } #[doc = "Required features: `\"Storage_Streams\"`"] @@ -1082,17 +755,17 @@ impl BackgroundDownloader { pub fn CreateDownloadAsync(&self, uri: P0, resultfile: P1, requestbodystream: P2) -> ::windows_core::Result> where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam, - P2: ::windows_core::TryIntoParam, + P1: ::windows_core::IntoParam, + P2: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), requestbodystream.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) } } pub fn TransferGroup(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TransferGroup)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1102,13 +775,13 @@ impl BackgroundDownloader { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } #[doc = "Required features: `\"UI_Notifications\"`"] #[cfg(feature = "UI_Notifications")] pub fn SuccessToastNotification(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SuccessToastNotification)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1120,13 +793,13 @@ impl BackgroundDownloader { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } #[doc = "Required features: `\"UI_Notifications\"`"] #[cfg(feature = "UI_Notifications")] pub fn FailureToastNotification(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FailureToastNotification)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1138,13 +811,13 @@ impl BackgroundDownloader { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } #[doc = "Required features: `\"UI_Notifications\"`"] #[cfg(feature = "UI_Notifications")] pub fn SuccessTileNotification(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SuccessTileNotification)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1156,13 +829,13 @@ impl BackgroundDownloader { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } #[doc = "Required features: `\"UI_Notifications\"`"] #[cfg(feature = "UI_Notifications")] pub fn FailureTileNotification(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FailureTileNotification)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1174,11 +847,11 @@ impl BackgroundDownloader { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn CompletionGroup(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CompletionGroup)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1224,21 +897,21 @@ impl BackgroundDownloader { #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] pub fn RequestUnconstrainedDownloadsAsync(operations: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::IBackgroundDownloaderUserConsent(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).RequestUnconstrainedDownloadsAsync)(::windows_core::Interface::as_raw(this), operations.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).RequestUnconstrainedDownloadsAsync)(::windows_core::Interface::as_raw(this), operations.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn SetRequestHeader(&self, headername: &::windows_core::HSTRING, headervalue: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRequestHeader)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(headername), ::core::mem::transmute_copy(headervalue)).ok() } } #[doc = "Required features: `\"Security_Credentials\"`"] #[cfg(feature = "Security_Credentials")] pub fn ServerCredential(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ServerCredential)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1250,13 +923,13 @@ impl BackgroundDownloader { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } #[doc = "Required features: `\"Security_Credentials\"`"] #[cfg(feature = "Security_Credentials")] pub fn ProxyCredential(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ProxyCredential)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1268,24 +941,24 @@ impl BackgroundDownloader { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Method(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Method)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetMethod(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMethod)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] pub fn Group(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Group)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1294,18 +967,18 @@ impl BackgroundDownloader { #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] pub fn SetGroup(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetGroup)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn CostPolicy(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CostPolicy)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetCostPolicy(&self, value: BackgroundTransferCostPolicy) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCostPolicy)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc(hidden)] @@ -1335,20 +1008,17 @@ impl ::windows_core::RuntimeType for BackgroundDownloader { } unsafe impl ::windows_core::Interface for BackgroundDownloader { type Vtable = IBackgroundDownloader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BackgroundDownloader { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BackgroundDownloader { const NAME: &'static str = "Windows.Networking.BackgroundTransfer.BackgroundDownloader"; } -::windows_core::imp::interface_hierarchy!(BackgroundDownloader, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for BackgroundDownloader {} unsafe impl ::core::marker::Send for BackgroundDownloader {} unsafe impl ::core::marker::Sync for BackgroundDownloader {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BackgroundTransferCompletionGroup(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BackgroundTransferCompletionGroup, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BackgroundTransferCompletionGroup { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1383,19 +1053,17 @@ impl ::windows_core::RuntimeType for BackgroundTransferCompletionGroup { } unsafe impl ::windows_core::Interface for BackgroundTransferCompletionGroup { type Vtable = IBackgroundTransferCompletionGroup_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BackgroundTransferCompletionGroup { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BackgroundTransferCompletionGroup { const NAME: &'static str = "Windows.Networking.BackgroundTransfer.BackgroundTransferCompletionGroup"; } -::windows_core::imp::interface_hierarchy!(BackgroundTransferCompletionGroup, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BackgroundTransferCompletionGroup {} unsafe impl ::core::marker::Sync for BackgroundTransferCompletionGroup {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BackgroundTransferCompletionGroupTriggerDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BackgroundTransferCompletionGroupTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BackgroundTransferCompletionGroupTriggerDetails { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -1421,19 +1089,17 @@ impl ::windows_core::RuntimeType for BackgroundTransferCompletionGroupTriggerDet } unsafe impl ::windows_core::Interface for BackgroundTransferCompletionGroupTriggerDetails { type Vtable = IBackgroundTransferCompletionGroupTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BackgroundTransferCompletionGroupTriggerDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BackgroundTransferCompletionGroupTriggerDetails { const NAME: &'static str = "Windows.Networking.BackgroundTransfer.BackgroundTransferCompletionGroupTriggerDetails"; } -::windows_core::imp::interface_hierarchy!(BackgroundTransferCompletionGroupTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BackgroundTransferCompletionGroupTriggerDetails {} unsafe impl ::core::marker::Sync for BackgroundTransferCompletionGroupTriggerDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BackgroundTransferContentPart(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BackgroundTransferContentPart, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BackgroundTransferContentPart { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1454,10 +1120,10 @@ impl BackgroundTransferContentPart { #[cfg(feature = "Storage")] pub fn SetFile(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetFile)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetFile)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn CreateWithName(name: &::windows_core::HSTRING) -> ::windows_core::Result { Self::IBackgroundTransferContentPartFactory(|this| unsafe { @@ -1482,14 +1148,11 @@ impl ::windows_core::RuntimeType for BackgroundTransferContentPart { } unsafe impl ::windows_core::Interface for BackgroundTransferContentPart { type Vtable = IBackgroundTransferContentPart_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BackgroundTransferContentPart { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BackgroundTransferContentPart { const NAME: &'static str = "Windows.Networking.BackgroundTransfer.BackgroundTransferContentPart"; } -::windows_core::imp::interface_hierarchy!(BackgroundTransferContentPart, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BackgroundTransferContentPart {} unsafe impl ::core::marker::Sync for BackgroundTransferContentPart {} pub struct BackgroundTransferError; @@ -1514,6 +1177,7 @@ impl ::windows_core::RuntimeName for BackgroundTransferError { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BackgroundTransferGroup(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BackgroundTransferGroup, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BackgroundTransferGroup { pub fn Name(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1550,19 +1214,17 @@ impl ::windows_core::RuntimeType for BackgroundTransferGroup { } unsafe impl ::windows_core::Interface for BackgroundTransferGroup { type Vtable = IBackgroundTransferGroup_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BackgroundTransferGroup { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BackgroundTransferGroup { const NAME: &'static str = "Windows.Networking.BackgroundTransfer.BackgroundTransferGroup"; } -::windows_core::imp::interface_hierarchy!(BackgroundTransferGroup, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BackgroundTransferGroup {} unsafe impl ::core::marker::Sync for BackgroundTransferGroup {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BackgroundTransferRangesDownloadedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BackgroundTransferRangesDownloadedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BackgroundTransferRangesDownloadedEventArgs { pub fn WasDownloadRestarted(&self) -> ::windows_core::Result { let this = self; @@ -1593,19 +1255,18 @@ impl ::windows_core::RuntimeType for BackgroundTransferRangesDownloadedEventArgs } unsafe impl ::windows_core::Interface for BackgroundTransferRangesDownloadedEventArgs { type Vtable = IBackgroundTransferRangesDownloadedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BackgroundTransferRangesDownloadedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BackgroundTransferRangesDownloadedEventArgs { const NAME: &'static str = "Windows.Networking.BackgroundTransfer.BackgroundTransferRangesDownloadedEventArgs"; } -::windows_core::imp::interface_hierarchy!(BackgroundTransferRangesDownloadedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BackgroundTransferRangesDownloadedEventArgs {} unsafe impl ::core::marker::Sync for BackgroundTransferRangesDownloadedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BackgroundUploader(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BackgroundUploader, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(BackgroundUploader, IBackgroundTransferBase); impl BackgroundUploader { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1615,13 +1276,13 @@ impl BackgroundUploader { SHARED.call(callback) } pub fn SetRequestHeader(&self, headername: &::windows_core::HSTRING, headervalue: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRequestHeader)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(headername), ::core::mem::transmute_copy(headervalue)).ok() } } #[doc = "Required features: `\"Security_Credentials\"`"] #[cfg(feature = "Security_Credentials")] pub fn ServerCredential(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ServerCredential)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1633,13 +1294,13 @@ impl BackgroundUploader { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } #[doc = "Required features: `\"Security_Credentials\"`"] #[cfg(feature = "Security_Credentials")] pub fn ProxyCredential(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ProxyCredential)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1651,24 +1312,24 @@ impl BackgroundUploader { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Method(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Method)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetMethod(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMethod)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] pub fn Group(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Group)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1677,18 +1338,18 @@ impl BackgroundUploader { #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] pub fn SetGroup(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetGroup)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn CostPolicy(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CostPolicy)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetCostPolicy(&self, value: BackgroundTransferCostPolicy) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCostPolicy)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Storage\"`"] @@ -1696,12 +1357,12 @@ impl BackgroundUploader { pub fn CreateUpload(&self, uri: P0, sourcefile: P1) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam, + P1: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateUpload)(::windows_core::Interface::as_raw(this), uri.into_param().abi(), sourcefile.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Storage_Streams\"`"] @@ -1709,12 +1370,12 @@ impl BackgroundUploader { pub fn CreateUploadFromStreamAsync(&self, uri: P0, sourcestream: P1) -> ::windows_core::Result> where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam, + P1: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateUploadFromStreamAsync)(::windows_core::Interface::as_raw(this), uri.into_param().abi(), sourcestream.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -1722,12 +1383,12 @@ impl BackgroundUploader { pub fn CreateUploadWithFormDataAndAutoBoundaryAsync(&self, uri: P0, parts: P1) -> ::windows_core::Result> where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam>, + P1: ::windows_core::IntoParam>, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateUploadWithFormDataAndAutoBoundaryAsync)(::windows_core::Interface::as_raw(this), uri.into_param().abi(), parts.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -1735,12 +1396,12 @@ impl BackgroundUploader { pub fn CreateUploadWithSubTypeAsync(&self, uri: P0, parts: P1, subtype: &::windows_core::HSTRING) -> ::windows_core::Result> where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam>, + P1: ::windows_core::IntoParam>, { 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.try_into_param()?.abi(), ::core::mem::transmute_copy(subtype), &mut result__).from_abi(result__) + (::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__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -1748,16 +1409,16 @@ impl BackgroundUploader { 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::TryIntoParam>, + P1: ::windows_core::IntoParam>, { 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.try_into_param()?.abi(), ::core::mem::transmute_copy(subtype), ::core::mem::transmute_copy(boundary), &mut result__).from_abi(result__) + (::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__).from_abi(result__) } } pub fn TransferGroup(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TransferGroup)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1767,13 +1428,13 @@ impl BackgroundUploader { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } #[doc = "Required features: `\"UI_Notifications\"`"] #[cfg(feature = "UI_Notifications")] pub fn SuccessToastNotification(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SuccessToastNotification)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1785,13 +1446,13 @@ impl BackgroundUploader { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } #[doc = "Required features: `\"UI_Notifications\"`"] #[cfg(feature = "UI_Notifications")] pub fn FailureToastNotification(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FailureToastNotification)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1803,13 +1464,13 @@ impl BackgroundUploader { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } #[doc = "Required features: `\"UI_Notifications\"`"] #[cfg(feature = "UI_Notifications")] pub fn SuccessTileNotification(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SuccessTileNotification)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1821,13 +1482,13 @@ impl BackgroundUploader { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } #[doc = "Required features: `\"UI_Notifications\"`"] #[cfg(feature = "UI_Notifications")] pub fn FailureTileNotification(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FailureTileNotification)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1839,11 +1500,11 @@ impl BackgroundUploader { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn CompletionGroup(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CompletionGroup)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1889,11 +1550,11 @@ impl BackgroundUploader { #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] pub fn RequestUnconstrainedUploadsAsync(operations: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::IBackgroundUploaderUserConsent(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).RequestUnconstrainedUploadsAsync)(::windows_core::Interface::as_raw(this), operations.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).RequestUnconstrainedUploadsAsync)(::windows_core::Interface::as_raw(this), operations.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -1923,15 +1584,11 @@ impl ::windows_core::RuntimeType for BackgroundUploader { } unsafe impl ::windows_core::Interface for BackgroundUploader { type Vtable = IBackgroundUploader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BackgroundUploader { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BackgroundUploader { const NAME: &'static str = "Windows.Networking.BackgroundTransfer.BackgroundUploader"; } -::windows_core::imp::interface_hierarchy!(BackgroundUploader, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for BackgroundUploader {} unsafe impl ::core::marker::Send for BackgroundUploader {} unsafe impl ::core::marker::Sync for BackgroundUploader {} pub struct ContentPrefetcher; @@ -1979,23 +1636,25 @@ impl ::windows_core::RuntimeName for ContentPrefetcher { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DownloadOperation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DownloadOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(DownloadOperation, IBackgroundTransferOperation, IBackgroundTransferOperationPriority); impl DownloadOperation { pub fn Guid(&self) -> ::windows_core::Result<::windows_core::GUID> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Guid)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn RequestedUri(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RequestedUri)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Method(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Method)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2004,48 +1663,48 @@ impl DownloadOperation { #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] pub fn Group(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Group)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CostPolicy(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CostPolicy)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetCostPolicy(&self, value: BackgroundTransferCostPolicy) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCostPolicy)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn GetResultStreamAt(&self, position: u64) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetResultStreamAt)(::windows_core::Interface::as_raw(this), position, &mut result__).from_abi(result__) } } pub fn GetResponseInformation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetResponseInformation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Priority(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Priority)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetPriority(&self, value: BackgroundTransferPriority) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetPriority)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Storage\"`"] @@ -2087,27 +1746,27 @@ impl DownloadOperation { unsafe { (::windows_core::Interface::vtable(this).Resume)(::windows_core::Interface::as_raw(this)).ok() } } pub fn TransferGroup(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TransferGroup)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsRandomAccessRequired(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsRandomAccessRequired)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsRandomAccessRequired(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsRandomAccessRequired)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn GetResultRandomAccessStreamReference(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetResultRandomAccessStreamReference)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2116,7 +1775,7 @@ impl DownloadOperation { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetDownloadedRanges(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetDownloadedRanges)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2126,27 +1785,27 @@ impl DownloadOperation { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveRangesDownloaded(&self, eventcookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveRangesDownloaded)(::windows_core::Interface::as_raw(this), eventcookie).ok() } } pub fn SetRequestedUri(&self, value: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Web\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Web"))] pub fn RecoverableWebErrorStatuses(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RecoverableWebErrorStatuses)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2155,22 +1814,22 @@ impl DownloadOperation { #[doc = "Required features: `\"Web\"`"] #[cfg(feature = "Web")] pub fn CurrentWebErrorStatus(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CurrentWebErrorStatus)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn MakeCurrentInTransferGroup(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).MakeCurrentInTransferGroup)(::windows_core::Interface::as_raw(this)).ok() } } pub fn SetRequestHeader(&self, headername: &::windows_core::HSTRING, headervalue: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRequestHeader)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(headername), ::core::mem::transmute_copy(headervalue)).ok() } } pub fn RemoveRequestHeader(&self, headername: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveRequestHeader)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(headername)).ok() } } } @@ -2179,21 +1838,17 @@ impl ::windows_core::RuntimeType for DownloadOperation { } unsafe impl ::windows_core::Interface for DownloadOperation { type Vtable = IDownloadOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DownloadOperation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DownloadOperation { const NAME: &'static str = "Windows.Networking.BackgroundTransfer.DownloadOperation"; } -::windows_core::imp::interface_hierarchy!(DownloadOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for DownloadOperation {} -impl ::windows_core::CanTryInto for DownloadOperation {} unsafe impl ::core::marker::Send for DownloadOperation {} unsafe impl ::core::marker::Sync for DownloadOperation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ResponseInformation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ResponseInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ResponseInformation { pub fn IsResumable(&self) -> ::windows_core::Result { let this = self; @@ -2231,14 +1886,11 @@ impl ::windows_core::RuntimeType for ResponseInformation { } unsafe impl ::windows_core::Interface for ResponseInformation { type Vtable = IResponseInformation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ResponseInformation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ResponseInformation { const NAME: &'static str = "Windows.Networking.BackgroundTransfer.ResponseInformation"; } -::windows_core::imp::interface_hierarchy!(ResponseInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ResponseInformation {} unsafe impl ::core::marker::Sync for ResponseInformation {} #[doc = "Required features: `\"deprecated\"`"] @@ -2247,6 +1899,8 @@ unsafe impl ::core::marker::Sync for ResponseInformation {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UnconstrainedTransferRequestResult(::windows_core::IUnknown); #[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(UnconstrainedTransferRequestResult, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "deprecated")] impl UnconstrainedTransferRequestResult { #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] @@ -2265,41 +1919,38 @@ impl ::windows_core::RuntimeType for UnconstrainedTransferRequestResult { #[cfg(feature = "deprecated")] unsafe impl ::windows_core::Interface for UnconstrainedTransferRequestResult { type Vtable = IUnconstrainedTransferRequestResult_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for UnconstrainedTransferRequestResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "deprecated")] impl ::windows_core::RuntimeName for UnconstrainedTransferRequestResult { const NAME: &'static str = "Windows.Networking.BackgroundTransfer.UnconstrainedTransferRequestResult"; } #[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(UnconstrainedTransferRequestResult, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] unsafe impl ::core::marker::Send for UnconstrainedTransferRequestResult {} #[cfg(feature = "deprecated")] unsafe impl ::core::marker::Sync for UnconstrainedTransferRequestResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UploadOperation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UploadOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(UploadOperation, IBackgroundTransferOperation, IBackgroundTransferOperationPriority); impl UploadOperation { pub fn Guid(&self) -> ::windows_core::Result<::windows_core::GUID> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Guid)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn RequestedUri(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RequestedUri)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Method(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Method)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2308,48 +1959,48 @@ impl UploadOperation { #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] pub fn Group(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Group)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CostPolicy(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CostPolicy)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetCostPolicy(&self, value: BackgroundTransferCostPolicy) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCostPolicy)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn GetResultStreamAt(&self, position: u64) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetResultStreamAt)(::windows_core::Interface::as_raw(this), position, &mut result__).from_abi(result__) } } pub fn GetResponseInformation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetResponseInformation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Priority(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Priority)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetPriority(&self, value: BackgroundTransferPriority) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetPriority)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Storage\"`"] @@ -2383,22 +2034,22 @@ impl UploadOperation { } } pub fn TransferGroup(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TransferGroup)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn MakeCurrentInTransferGroup(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).MakeCurrentInTransferGroup)(::windows_core::Interface::as_raw(this)).ok() } } pub fn SetRequestHeader(&self, headername: &::windows_core::HSTRING, headervalue: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRequestHeader)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(headername), ::core::mem::transmute_copy(headervalue)).ok() } } pub fn RemoveRequestHeader(&self, headername: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveRequestHeader)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(headername)).ok() } } } @@ -2407,16 +2058,11 @@ impl ::windows_core::RuntimeType for UploadOperation { } unsafe impl ::windows_core::Interface for UploadOperation { type Vtable = IUploadOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UploadOperation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UploadOperation { const NAME: &'static str = "Windows.Networking.BackgroundTransfer.UploadOperation"; } -::windows_core::imp::interface_hierarchy!(UploadOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for UploadOperation {} -impl ::windows_core::CanTryInto for UploadOperation {} unsafe impl ::core::marker::Send for UploadOperation {} unsafe impl ::core::marker::Sync for UploadOperation {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Networking/Connectivity/mod.rs b/crates/libs/windows/src/Windows/Networking/Connectivity/mod.rs index 0836bffa18..b32129777b 100644 --- a/crates/libs/windows/src/Windows/Networking/Connectivity/mod.rs +++ b/crates/libs/windows/src/Windows/Networking/Connectivity/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAttributedNetworkUsage(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAttributedNetworkUsage { - type Vtable = IAttributedNetworkUsage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAttributedNetworkUsage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf769b039_eca2_45eb_ade1_b0368b756c49); -} +::windows_core::imp::com_interface!(IAttributedNetworkUsage, IAttributedNetworkUsage_Vtbl, 0xf769b039_eca2_45eb_ade1_b0368b756c49); #[repr(C)] #[doc(hidden)] pub struct IAttributedNetworkUsage_Vtbl { @@ -21,16 +12,7 @@ pub struct IAttributedNetworkUsage_Vtbl { #[cfg(not(feature = "Storage_Streams"))] AttributionThumbnail: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICellularApnContext(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICellularApnContext { - type Vtable = ICellularApnContext_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICellularApnContext { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6fa529f4_effd_4542_9ab2_705bbf94943a); -} +::windows_core::imp::com_interface!(ICellularApnContext, ICellularApnContext_Vtbl, 0x6fa529f4_effd_4542_9ab2_705bbf94943a); #[repr(C)] #[doc(hidden)] pub struct ICellularApnContext_Vtbl { @@ -48,16 +30,7 @@ pub struct ICellularApnContext_Vtbl { pub AuthenticationType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut CellularApnAuthenticationType) -> ::windows_core::HRESULT, pub SetAuthenticationType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: CellularApnAuthenticationType) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICellularApnContext2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICellularApnContext2 { - type Vtable = ICellularApnContext2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICellularApnContext2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x76b0eb1a_ac49_4350_b1e5_dc4763bc69c7); -} +::windows_core::imp::com_interface!(ICellularApnContext2, ICellularApnContext2_Vtbl, 0x76b0eb1a_ac49_4350_b1e5_dc4763bc69c7); #[repr(C)] #[doc(hidden)] pub struct ICellularApnContext2_Vtbl { @@ -65,16 +38,7 @@ pub struct ICellularApnContext2_Vtbl { pub ProfileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetProfileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IConnectionCost(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IConnectionCost { - type Vtable = IConnectionCost_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IConnectionCost { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbad7d829_3416_4b10_a202_bac0b075bdae); -} +::windows_core::imp::com_interface!(IConnectionCost, IConnectionCost_Vtbl, 0xbad7d829_3416_4b10_a202_bac0b075bdae); #[repr(C)] #[doc(hidden)] pub struct IConnectionCost_Vtbl { @@ -84,32 +48,14 @@ pub struct IConnectionCost_Vtbl { pub OverDataLimit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub ApproachingDataLimit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IConnectionCost2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IConnectionCost2 { - type Vtable = IConnectionCost2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IConnectionCost2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8e113a05_e209_4549_bb25_5e0db691cb05); -} +::windows_core::imp::com_interface!(IConnectionCost2, IConnectionCost2_Vtbl, 0x8e113a05_e209_4549_bb25_5e0db691cb05); #[repr(C)] #[doc(hidden)] pub struct IConnectionCost2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub BackgroundDataUsageRestricted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IConnectionProfile(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IConnectionProfile { - type Vtable = IConnectionProfile_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IConnectionProfile { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x71ba143c_598e_49d0_84eb_8febaedcc195); -} +::windows_core::imp::com_interface!(IConnectionProfile, IConnectionProfile_Vtbl, 0x71ba143c_598e_49d0_84eb_8febaedcc195); #[repr(C)] #[doc(hidden)] pub struct IConnectionProfile_Vtbl { @@ -133,16 +79,7 @@ pub struct IConnectionProfile_Vtbl { GetLocalUsagePerRoamingStates: usize, pub NetworkSecuritySettings: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IConnectionProfile2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IConnectionProfile2 { - type Vtable = IConnectionProfile2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IConnectionProfile2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe2045145_4c9f_400c_9150_7ec7d6e2888a); -} +::windows_core::imp::com_interface!(IConnectionProfile2, IConnectionProfile2_Vtbl, 0xe2045145_4c9f_400c_9150_7ec7d6e2888a); #[repr(C)] #[doc(hidden)] pub struct IConnectionProfile2_Vtbl { @@ -163,16 +100,7 @@ pub struct IConnectionProfile2_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetConnectivityIntervalsAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IConnectionProfile3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IConnectionProfile3 { - type Vtable = IConnectionProfile3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IConnectionProfile3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x578c2528_4cd9_4161_8045_201cfd5b115c); -} +::windows_core::imp::com_interface!(IConnectionProfile3, IConnectionProfile3_Vtbl, 0x578c2528_4cd9_4161_8045_201cfd5b115c); #[repr(C)] #[doc(hidden)] pub struct IConnectionProfile3_Vtbl { @@ -182,16 +110,7 @@ pub struct IConnectionProfile3_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetAttributedNetworkUsageAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IConnectionProfile4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IConnectionProfile4 { - type Vtable = IConnectionProfile4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IConnectionProfile4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7a2d42cd_81e0_4ae6_abed_ab9ca13eb714); -} +::windows_core::imp::com_interface!(IConnectionProfile4, IConnectionProfile4_Vtbl, 0x7a2d42cd_81e0_4ae6_abed_ab9ca13eb714); #[repr(C)] #[doc(hidden)] pub struct IConnectionProfile4_Vtbl { @@ -201,16 +120,7 @@ pub struct IConnectionProfile4_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetProviderNetworkUsageAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IConnectionProfile5(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IConnectionProfile5 { - type Vtable = IConnectionProfile5_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IConnectionProfile5 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x85361ec7_9c73_4be0_8f14_578eec71ee0e); -} +::windows_core::imp::com_interface!(IConnectionProfile5, IConnectionProfile5_Vtbl, 0x85361ec7_9c73_4be0_8f14_578eec71ee0e); #[repr(C)] #[doc(hidden)] pub struct IConnectionProfile5_Vtbl { @@ -218,32 +128,14 @@ pub struct IConnectionProfile5_Vtbl { pub CanDelete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub TryDeleteAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IConnectionProfile6(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IConnectionProfile6 { - type Vtable = IConnectionProfile6_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IConnectionProfile6 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdc27dfe2_7a6f_5d0e_9589_2fe2e5b6f9aa); -} +::windows_core::imp::com_interface!(IConnectionProfile6, IConnectionProfile6_Vtbl, 0xdc27dfe2_7a6f_5d0e_9589_2fe2e5b6f9aa); #[repr(C)] #[doc(hidden)] pub struct IConnectionProfile6_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub IsDomainAuthenticatedBy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, kind: DomainAuthenticationKind, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IConnectionProfileFilter(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IConnectionProfileFilter { - type Vtable = IConnectionProfileFilter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IConnectionProfileFilter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x204c7cc8_bd2d_4e8d_a4b3_455ec337388a); -} +::windows_core::imp::com_interface!(IConnectionProfileFilter, IConnectionProfileFilter_Vtbl, 0x204c7cc8_bd2d_4e8d_a4b3_455ec337388a); #[repr(C)] #[doc(hidden)] pub struct IConnectionProfileFilter_Vtbl { @@ -259,16 +151,7 @@ pub struct IConnectionProfileFilter_Vtbl { pub SetServiceProviderGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ServiceProviderGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IConnectionProfileFilter2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IConnectionProfileFilter2 { - type Vtable = IConnectionProfileFilter2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IConnectionProfileFilter2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcd068ee1_c3fc_4fad_9ddc_593faa4b7885); -} +::windows_core::imp::com_interface!(IConnectionProfileFilter2, IConnectionProfileFilter2_Vtbl, 0xcd068ee1_c3fc_4fad_9ddc_593faa4b7885); #[repr(C)] #[doc(hidden)] pub struct IConnectionProfileFilter2_Vtbl { @@ -284,16 +167,7 @@ pub struct IConnectionProfileFilter2_Vtbl { #[cfg(not(feature = "Storage_Streams"))] RawData: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IConnectionProfileFilter3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IConnectionProfileFilter3 { - type Vtable = IConnectionProfileFilter3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IConnectionProfileFilter3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0aaa09c0_5014_447c_8809_aee4cb0af94a); -} +::windows_core::imp::com_interface!(IConnectionProfileFilter3, IConnectionProfileFilter3_Vtbl, 0x0aaa09c0_5014_447c_8809_aee4cb0af94a); #[repr(C)] #[doc(hidden)] pub struct IConnectionProfileFilter3_Vtbl { @@ -301,32 +175,14 @@ pub struct IConnectionProfileFilter3_Vtbl { pub SetPurposeGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub PurposeGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IConnectionSession(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IConnectionSession { - type Vtable = IConnectionSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IConnectionSession { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xff905d4c_f83b_41b0_8a0c_1462d9c56b73); -} +::windows_core::imp::com_interface!(IConnectionSession, IConnectionSession_Vtbl, 0xff905d4c_f83b_41b0_8a0c_1462d9c56b73); #[repr(C)] #[doc(hidden)] pub struct IConnectionSession_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ConnectionProfile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IConnectivityInterval(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IConnectivityInterval { - type Vtable = IConnectivityInterval_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IConnectivityInterval { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4faa3fff_6746_4824_a964_eed8e87f8709); -} +::windows_core::imp::com_interface!(IConnectivityInterval, IConnectivityInterval_Vtbl, 0x4faa3fff_6746_4824_a964_eed8e87f8709); #[repr(C)] #[doc(hidden)] pub struct IConnectivityInterval_Vtbl { @@ -334,16 +190,7 @@ pub struct IConnectivityInterval_Vtbl { pub StartTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::DateTime) -> ::windows_core::HRESULT, pub ConnectionDuration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::TimeSpan) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IConnectivityManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IConnectivityManagerStatics { - type Vtable = IConnectivityManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IConnectivityManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5120d4b1_4fb1_48b0_afc9_42e0092a8164); -} +::windows_core::imp::com_interface!(IConnectivityManagerStatics, IConnectivityManagerStatics_Vtbl, 0x5120d4b1_4fb1_48b0_afc9_42e0092a8164); #[repr(C)] #[doc(hidden)] pub struct IConnectivityManagerStatics_Vtbl { @@ -352,16 +199,7 @@ pub struct IConnectivityManagerStatics_Vtbl { pub AddHttpRoutePolicy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, routepolicy: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RemoveHttpRoutePolicy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, routepolicy: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataPlanStatus(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDataPlanStatus { - type Vtable = IDataPlanStatus_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDataPlanStatus { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x977a8b8c_3885_40f3_8851_42cd2bd568bb); -} +::windows_core::imp::com_interface!(IDataPlanStatus, IDataPlanStatus_Vtbl, 0x977a8b8c_3885_40f3_8851_42cd2bd568bb); #[repr(C)] #[doc(hidden)] pub struct IDataPlanStatus_Vtbl { @@ -373,16 +211,7 @@ pub struct IDataPlanStatus_Vtbl { pub NextBillingCycle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub MaxTransferSizeInMegabytes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataPlanUsage(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDataPlanUsage { - type Vtable = IDataPlanUsage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDataPlanUsage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb921492d_3b44_47ff_b361_be59e69ed1b0); -} +::windows_core::imp::com_interface!(IDataPlanUsage, IDataPlanUsage_Vtbl, 0xb921492d_3b44_47ff_b361_be59e69ed1b0); #[repr(C)] #[doc(hidden)] pub struct IDataPlanUsage_Vtbl { @@ -390,19 +219,13 @@ pub struct IDataPlanUsage_Vtbl { pub MegabytesUsed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, pub LastSyncTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::DateTime) -> ::windows_core::HRESULT, } -#[doc(hidden)] #[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataUsage(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for IDataUsage { - type Vtable = IDataUsage_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for IDataUsage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc1431dd3_b146_4d39_b959_0c69b096c512); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + IDataUsage, + IDataUsage_Vtbl, + 0xc1431dd3_b146_4d39_b959_0c69b096c512 +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -417,16 +240,7 @@ pub struct IDataUsage_Vtbl { #[cfg(not(feature = "deprecated"))] BytesReceived: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIPInformation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIPInformation { - type Vtable = IIPInformation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIPInformation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd85145e0_138f_47d7_9b3a_36bb488cef33); -} +::windows_core::imp::com_interface!(IIPInformation, IIPInformation_Vtbl, 0xd85145e0_138f_47d7_9b3a_36bb488cef33); #[repr(C)] #[doc(hidden)] pub struct IIPInformation_Vtbl { @@ -434,16 +248,7 @@ pub struct IIPInformation_Vtbl { pub NetworkAdapter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub PrefixLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILanIdentifier(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILanIdentifier { - type Vtable = ILanIdentifier_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILanIdentifier { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x48aa53aa_1108_4546_a6cb_9a74da4b7ba0); -} +::windows_core::imp::com_interface!(ILanIdentifier, ILanIdentifier_Vtbl, 0x48aa53aa_1108_4546_a6cb_9a74da4b7ba0); #[repr(C)] #[doc(hidden)] pub struct ILanIdentifier_Vtbl { @@ -452,16 +257,7 @@ pub struct ILanIdentifier_Vtbl { pub PortId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub NetworkAdapterId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILanIdentifierData(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILanIdentifierData { - type Vtable = ILanIdentifierData_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILanIdentifierData { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa74e83c3_d639_45be_a36a_c4e4aeaf6d9b); -} +::windows_core::imp::com_interface!(ILanIdentifierData, ILanIdentifierData_Vtbl, 0xa74e83c3_d639_45be_a36a_c4e4aeaf6d9b); #[repr(C)] #[doc(hidden)] pub struct ILanIdentifierData_Vtbl { @@ -472,16 +268,7 @@ pub struct ILanIdentifierData_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Value: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetworkAdapter(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INetworkAdapter { - type Vtable = INetworkAdapter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INetworkAdapter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3b542e03_5388_496c_a8a3_affd39aec2e6); -} +::windows_core::imp::com_interface!(INetworkAdapter, INetworkAdapter_Vtbl, 0x3b542e03_5388_496c_a8a3_affd39aec2e6); #[repr(C)] #[doc(hidden)] pub struct INetworkAdapter_Vtbl { @@ -493,16 +280,7 @@ pub struct INetworkAdapter_Vtbl { pub NetworkAdapterId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, pub GetConnectedProfileAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetworkInformationStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INetworkInformationStatics { - type Vtable = INetworkInformationStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INetworkInformationStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5074f851_950d_4165_9c15_365619481eea); -} +::windows_core::imp::com_interface!(INetworkInformationStatics, INetworkInformationStatics_Vtbl, 0x5074f851_950d_4165_9c15_365619481eea); #[repr(C)] #[doc(hidden)] pub struct INetworkInformationStatics_Vtbl { @@ -528,16 +306,7 @@ pub struct INetworkInformationStatics_Vtbl { pub NetworkStatusChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, networkstatushandler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveNetworkStatusChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventcookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetworkInformationStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INetworkInformationStatics2 { - type Vtable = INetworkInformationStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INetworkInformationStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x459ced14_2832_49b6_ba6e_e265f04786a8); -} +::windows_core::imp::com_interface!(INetworkInformationStatics2, INetworkInformationStatics2_Vtbl, 0x459ced14_2832_49b6_ba6e_e265f04786a8); #[repr(C)] #[doc(hidden)] pub struct INetworkInformationStatics2_Vtbl { @@ -547,16 +316,7 @@ pub struct INetworkInformationStatics2_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] FindConnectionProfilesAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetworkItem(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INetworkItem { - type Vtable = INetworkItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INetworkItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x01bc4d39_f5e0_4567_a28c_42080c831b2b); -} +::windows_core::imp::com_interface!(INetworkItem, INetworkItem_Vtbl, 0x01bc4d39_f5e0_4567_a28c_42080c831b2b); #[repr(C)] #[doc(hidden)] pub struct INetworkItem_Vtbl { @@ -564,16 +324,7 @@ pub struct INetworkItem_Vtbl { pub NetworkId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, pub GetNetworkTypes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut NetworkTypes) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetworkSecuritySettings(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INetworkSecuritySettings { - type Vtable = INetworkSecuritySettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INetworkSecuritySettings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7ca07e8d_917b_4b5f_b84d_28f7a5ac5402); -} +::windows_core::imp::com_interface!(INetworkSecuritySettings, INetworkSecuritySettings_Vtbl, 0x7ca07e8d_917b_4b5f_b84d_28f7a5ac5402); #[repr(C)] #[doc(hidden)] pub struct INetworkSecuritySettings_Vtbl { @@ -581,16 +332,7 @@ pub struct INetworkSecuritySettings_Vtbl { pub NetworkAuthenticationType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut NetworkAuthenticationType) -> ::windows_core::HRESULT, pub NetworkEncryptionType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut NetworkEncryptionType) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetworkStateChangeEventDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INetworkStateChangeEventDetails { - type Vtable = INetworkStateChangeEventDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INetworkStateChangeEventDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1f0cf333_d7a6_44dd_a4e9_687c476b903d); -} +::windows_core::imp::com_interface!(INetworkStateChangeEventDetails, INetworkStateChangeEventDetails_Vtbl, 0x1f0cf333_d7a6_44dd_a4e9_687c476b903d); #[repr(C)] #[doc(hidden)] pub struct INetworkStateChangeEventDetails_Vtbl { @@ -602,16 +344,7 @@ pub struct INetworkStateChangeEventDetails_Vtbl { pub HasNewHostNameList: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub HasNewWwanRegistrationState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetworkStateChangeEventDetails2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INetworkStateChangeEventDetails2 { - type Vtable = INetworkStateChangeEventDetails2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INetworkStateChangeEventDetails2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd643c0e8_30d3_4f6a_ad47_6a1873ceb3c1); -} +::windows_core::imp::com_interface!(INetworkStateChangeEventDetails2, INetworkStateChangeEventDetails2_Vtbl, 0xd643c0e8_30d3_4f6a_ad47_6a1873ceb3c1); #[repr(C)] #[doc(hidden)] pub struct INetworkStateChangeEventDetails2_Vtbl { @@ -619,16 +352,7 @@ pub struct INetworkStateChangeEventDetails2_Vtbl { pub HasNewTetheringOperationalState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub HasNewTetheringClientCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetworkUsage(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INetworkUsage { - type Vtable = INetworkUsage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INetworkUsage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x49da8fce_9985_4927_bf5b_072b5c65f8d9); -} +::windows_core::imp::com_interface!(INetworkUsage, INetworkUsage_Vtbl, 0x49da8fce_9985_4927_bf5b_072b5c65f8d9); #[repr(C)] #[doc(hidden)] pub struct INetworkUsage_Vtbl { @@ -637,16 +361,7 @@ pub struct INetworkUsage_Vtbl { pub BytesReceived: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u64) -> ::windows_core::HRESULT, pub ConnectionDuration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::TimeSpan) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProviderNetworkUsage(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProviderNetworkUsage { - type Vtable = IProviderNetworkUsage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProviderNetworkUsage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5ec69e04_7931_48c8_b8f3_46300fa42728); -} +::windows_core::imp::com_interface!(IProviderNetworkUsage, IProviderNetworkUsage_Vtbl, 0x5ec69e04_7931_48c8_b8f3_46300fa42728); #[repr(C)] #[doc(hidden)] pub struct IProviderNetworkUsage_Vtbl { @@ -655,16 +370,7 @@ pub struct IProviderNetworkUsage_Vtbl { pub BytesReceived: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u64) -> ::windows_core::HRESULT, pub ProviderId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProxyConfiguration(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProxyConfiguration { - type Vtable = IProxyConfiguration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProxyConfiguration { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xef3a60b4_9004_4dd6_b7d8_b3e502f4aad0); -} +::windows_core::imp::com_interface!(IProxyConfiguration, IProxyConfiguration_Vtbl, 0xef3a60b4_9004_4dd6_b7d8_b3e502f4aad0); #[repr(C)] #[doc(hidden)] pub struct IProxyConfiguration_Vtbl { @@ -675,16 +381,7 @@ pub struct IProxyConfiguration_Vtbl { ProxyUris: usize, pub CanConnectDirectly: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRoutePolicy(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRoutePolicy { - type Vtable = IRoutePolicy_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRoutePolicy { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x11abc4ac_0fc7_42e4_8742_569923b1ca11); -} +::windows_core::imp::com_interface!(IRoutePolicy, IRoutePolicy_Vtbl, 0x11abc4ac_0fc7_42e4_8742_569923b1ca11); #[repr(C)] #[doc(hidden)] pub struct IRoutePolicy_Vtbl { @@ -693,48 +390,21 @@ pub struct IRoutePolicy_Vtbl { pub HostName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub HostNameType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::DomainNameType) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRoutePolicyFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRoutePolicyFactory { - type Vtable = IRoutePolicyFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRoutePolicyFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x36027933_a18e_4db5_a697_f58fa7364e44); -} +::windows_core::imp::com_interface!(IRoutePolicyFactory, IRoutePolicyFactory_Vtbl, 0x36027933_a18e_4db5_a697_f58fa7364e44); #[repr(C)] #[doc(hidden)] pub struct IRoutePolicyFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateRoutePolicy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, connectionprofile: *mut ::core::ffi::c_void, hostname: *mut ::core::ffi::c_void, r#type: super::DomainNameType, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWlanConnectionProfileDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWlanConnectionProfileDetails { - type Vtable = IWlanConnectionProfileDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWlanConnectionProfileDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x562098cb_b35a_4bf1_a884_b7557e88ff86); -} +::windows_core::imp::com_interface!(IWlanConnectionProfileDetails, IWlanConnectionProfileDetails_Vtbl, 0x562098cb_b35a_4bf1_a884_b7557e88ff86); #[repr(C)] #[doc(hidden)] pub struct IWlanConnectionProfileDetails_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetConnectedSsid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWwanConnectionProfileDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWwanConnectionProfileDetails { - type Vtable = IWwanConnectionProfileDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWwanConnectionProfileDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0e4da8fe_835f_4df3_82fd_df556ebc09ef); -} +::windows_core::imp::com_interface!(IWwanConnectionProfileDetails, IWwanConnectionProfileDetails_Vtbl, 0x0e4da8fe_835f_4df3_82fd_df556ebc09ef); #[repr(C)] #[doc(hidden)] pub struct IWwanConnectionProfileDetails_Vtbl { @@ -744,16 +414,7 @@ pub struct IWwanConnectionProfileDetails_Vtbl { pub GetNetworkRegistrationState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut WwanNetworkRegistrationState) -> ::windows_core::HRESULT, pub GetCurrentDataClass: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut WwanDataClass) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWwanConnectionProfileDetails2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWwanConnectionProfileDetails2 { - type Vtable = IWwanConnectionProfileDetails2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWwanConnectionProfileDetails2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7a754ede_a1ed_48b2_8e92_b460033d52e2); -} +::windows_core::imp::com_interface!(IWwanConnectionProfileDetails2, IWwanConnectionProfileDetails2_Vtbl, 0x7a754ede_a1ed_48b2_8e92_b460033d52e2); #[repr(C)] #[doc(hidden)] pub struct IWwanConnectionProfileDetails2_Vtbl { @@ -767,6 +428,7 @@ pub struct IWwanConnectionProfileDetails2_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AttributedNetworkUsage(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AttributedNetworkUsage, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AttributedNetworkUsage { pub fn BytesSent(&self) -> ::windows_core::Result { let this = self; @@ -811,19 +473,17 @@ impl ::windows_core::RuntimeType for AttributedNetworkUsage { } unsafe impl ::windows_core::Interface for AttributedNetworkUsage { type Vtable = IAttributedNetworkUsage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AttributedNetworkUsage { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AttributedNetworkUsage { const NAME: &'static str = "Windows.Networking.Connectivity.AttributedNetworkUsage"; } -::windows_core::imp::interface_hierarchy!(AttributedNetworkUsage, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AttributedNetworkUsage {} unsafe impl ::core::marker::Sync for AttributedNetworkUsage {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CellularApnContext(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CellularApnContext, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CellularApnContext { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -899,14 +559,14 @@ impl CellularApnContext { unsafe { (::windows_core::Interface::vtable(this).SetAuthenticationType)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn ProfileName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ProfileName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetProfileName(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetProfileName)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } } @@ -915,19 +575,17 @@ impl ::windows_core::RuntimeType for CellularApnContext { } unsafe impl ::windows_core::Interface for CellularApnContext { type Vtable = ICellularApnContext_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CellularApnContext { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CellularApnContext { const NAME: &'static str = "Windows.Networking.Connectivity.CellularApnContext"; } -::windows_core::imp::interface_hierarchy!(CellularApnContext, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CellularApnContext {} unsafe impl ::core::marker::Sync for CellularApnContext {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ConnectionCost(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ConnectionCost, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ConnectionCost { pub fn NetworkCostType(&self) -> ::windows_core::Result { let this = self; @@ -958,7 +616,7 @@ impl ConnectionCost { } } pub fn BackgroundDataUsageRestricted(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).BackgroundDataUsageRestricted)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -970,19 +628,17 @@ impl ::windows_core::RuntimeType for ConnectionCost { } unsafe impl ::windows_core::Interface for ConnectionCost { type Vtable = IConnectionCost_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ConnectionCost { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ConnectionCost { const NAME: &'static str = "Windows.Networking.Connectivity.ConnectionCost"; } -::windows_core::imp::interface_hierarchy!(ConnectionCost, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ConnectionCost {} unsafe impl ::core::marker::Sync for ConnectionCost {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ConnectionProfile(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ConnectionProfile, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ConnectionProfile { pub fn ProfileName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1054,49 +710,49 @@ impl ConnectionProfile { } } pub fn IsWwanConnectionProfile(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsWwanConnectionProfile)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsWlanConnectionProfile(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsWlanConnectionProfile)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn WwanConnectionProfileDetails(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).WwanConnectionProfileDetails)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn WlanConnectionProfileDetails(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).WlanConnectionProfileDetails)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ServiceProviderGuid(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ServiceProviderGuid)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetSignalBars(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetSignalBars)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetDomainConnectivityLevel(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetDomainConnectivityLevel)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1105,7 +761,7 @@ impl ConnectionProfile { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetNetworkUsageAsync(&self, starttime: super::super::Foundation::DateTime, endtime: super::super::Foundation::DateTime, granularity: DataUsageGranularity, states: NetworkUsageStates) -> ::windows_core::Result>> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetNetworkUsageAsync)(::windows_core::Interface::as_raw(this), starttime, endtime, granularity, states, &mut result__).from_abi(result__) @@ -1114,7 +770,7 @@ impl ConnectionProfile { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetConnectivityIntervalsAsync(&self, starttime: super::super::Foundation::DateTime, endtime: super::super::Foundation::DateTime, states: NetworkUsageStates) -> ::windows_core::Result>> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetConnectivityIntervalsAsync)(::windows_core::Interface::as_raw(this), starttime, endtime, states, &mut result__).from_abi(result__) @@ -1123,7 +779,7 @@ impl ConnectionProfile { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetAttributedNetworkUsageAsync(&self, starttime: super::super::Foundation::DateTime, endtime: super::super::Foundation::DateTime, states: NetworkUsageStates) -> ::windows_core::Result>> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetAttributedNetworkUsageAsync)(::windows_core::Interface::as_raw(this), starttime, endtime, states, &mut result__).from_abi(result__) @@ -1132,28 +788,28 @@ impl ConnectionProfile { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetProviderNetworkUsageAsync(&self, starttime: super::super::Foundation::DateTime, endtime: super::super::Foundation::DateTime, states: NetworkUsageStates) -> ::windows_core::Result>> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetProviderNetworkUsageAsync)(::windows_core::Interface::as_raw(this), starttime, endtime, states, &mut result__).from_abi(result__) } } pub fn CanDelete(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CanDelete)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryDeleteAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + 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), &mut result__).from_abi(result__) } } pub fn IsDomainAuthenticatedBy(&self, kind: DomainAuthenticationKind) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsDomainAuthenticatedBy)(::windows_core::Interface::as_raw(this), kind, &mut result__).from_abi(result__) @@ -1165,19 +821,17 @@ impl ::windows_core::RuntimeType for ConnectionProfile { } unsafe impl ::windows_core::Interface for ConnectionProfile { type Vtable = IConnectionProfile_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ConnectionProfile { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ConnectionProfile { const NAME: &'static str = "Windows.Networking.Connectivity.ConnectionProfile"; } -::windows_core::imp::interface_hierarchy!(ConnectionProfile, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ConnectionProfile {} unsafe impl ::core::marker::Sync for ConnectionProfile {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ConnectionProfileFilter(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ConnectionProfileFilter, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ConnectionProfileFilter { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1232,10 +886,10 @@ impl ConnectionProfileFilter { } pub fn SetServiceProviderGuid(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetServiceProviderGuid)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetServiceProviderGuid)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn ServiceProviderGuid(&self) -> ::windows_core::Result> { let this = self; @@ -1246,13 +900,13 @@ impl ConnectionProfileFilter { } pub fn SetIsRoaming(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetIsRoaming)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn IsRoaming(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsRoaming)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1260,13 +914,13 @@ impl ConnectionProfileFilter { } pub fn SetIsOverDataLimit(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetIsOverDataLimit)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn IsOverDataLimit(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsOverDataLimit)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1274,13 +928,13 @@ impl ConnectionProfileFilter { } pub fn SetIsBackgroundDataUsageRestricted(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetIsBackgroundDataUsageRestricted)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn IsBackgroundDataUsageRestricted(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsBackgroundDataUsageRestricted)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1289,7 +943,7 @@ impl ConnectionProfileFilter { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn RawData(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RawData)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1297,13 +951,13 @@ impl ConnectionProfileFilter { } pub fn SetPurposeGuid(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetPurposeGuid)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn PurposeGuid(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PurposeGuid)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1315,22 +969,21 @@ impl ::windows_core::RuntimeType for ConnectionProfileFilter { } unsafe impl ::windows_core::Interface for ConnectionProfileFilter { type Vtable = IConnectionProfileFilter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ConnectionProfileFilter { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ConnectionProfileFilter { const NAME: &'static str = "Windows.Networking.Connectivity.ConnectionProfileFilter"; } -::windows_core::imp::interface_hierarchy!(ConnectionProfileFilter, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ConnectionProfileFilter {} unsafe impl ::core::marker::Sync for ConnectionProfileFilter {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ConnectionSession(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ConnectionSession, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ConnectionSession, super::super::Foundation::IClosable); impl ConnectionSession { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn ConnectionProfile(&self) -> ::windows_core::Result { @@ -1346,20 +999,17 @@ impl ::windows_core::RuntimeType for ConnectionSession { } unsafe impl ::windows_core::Interface for ConnectionSession { type Vtable = IConnectionSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ConnectionSession { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ConnectionSession { const NAME: &'static str = "Windows.Networking.Connectivity.ConnectionSession"; } -::windows_core::imp::interface_hierarchy!(ConnectionSession, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ConnectionSession {} unsafe impl ::core::marker::Send for ConnectionSession {} unsafe impl ::core::marker::Sync for ConnectionSession {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ConnectivityInterval(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ConnectivityInterval, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ConnectivityInterval { pub fn StartTime(&self) -> ::windows_core::Result { let this = self; @@ -1381,14 +1031,11 @@ impl ::windows_core::RuntimeType for ConnectivityInterval { } unsafe impl ::windows_core::Interface for ConnectivityInterval { type Vtable = IConnectivityInterval_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ConnectivityInterval { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ConnectivityInterval { const NAME: &'static str = "Windows.Networking.Connectivity.ConnectivityInterval"; } -::windows_core::imp::interface_hierarchy!(ConnectivityInterval, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ConnectivityInterval {} unsafe impl ::core::marker::Sync for ConnectivityInterval {} pub struct ConnectivityManager; @@ -1426,6 +1073,7 @@ impl ::windows_core::RuntimeName for ConnectivityManager { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DataPlanStatus(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DataPlanStatus, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DataPlanStatus { pub fn DataPlanUsage(&self) -> ::windows_core::Result { let this = self; @@ -1475,19 +1123,17 @@ impl ::windows_core::RuntimeType for DataPlanStatus { } unsafe impl ::windows_core::Interface for DataPlanStatus { type Vtable = IDataPlanStatus_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DataPlanStatus { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DataPlanStatus { const NAME: &'static str = "Windows.Networking.Connectivity.DataPlanStatus"; } -::windows_core::imp::interface_hierarchy!(DataPlanStatus, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DataPlanStatus {} unsafe impl ::core::marker::Sync for DataPlanStatus {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DataPlanUsage(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DataPlanUsage, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DataPlanUsage { pub fn MegabytesUsed(&self) -> ::windows_core::Result { let this = self; @@ -1509,14 +1155,11 @@ impl ::windows_core::RuntimeType for DataPlanUsage { } unsafe impl ::windows_core::Interface for DataPlanUsage { type Vtable = IDataPlanUsage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DataPlanUsage { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DataPlanUsage { const NAME: &'static str = "Windows.Networking.Connectivity.DataPlanUsage"; } -::windows_core::imp::interface_hierarchy!(DataPlanUsage, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DataPlanUsage {} unsafe impl ::core::marker::Sync for DataPlanUsage {} #[doc = "Required features: `\"deprecated\"`"] @@ -1525,6 +1168,8 @@ unsafe impl ::core::marker::Sync for DataPlanUsage {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DataUsage(::windows_core::IUnknown); #[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(DataUsage, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "deprecated")] impl DataUsage { #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] @@ -1552,24 +1197,20 @@ impl ::windows_core::RuntimeType for DataUsage { #[cfg(feature = "deprecated")] unsafe impl ::windows_core::Interface for DataUsage { type Vtable = IDataUsage_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for DataUsage { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "deprecated")] impl ::windows_core::RuntimeName for DataUsage { const NAME: &'static str = "Windows.Networking.Connectivity.DataUsage"; } #[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(DataUsage, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "deprecated")] unsafe impl ::core::marker::Send for DataUsage {} #[cfg(feature = "deprecated")] unsafe impl ::core::marker::Sync for DataUsage {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct IPInformation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(IPInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IPInformation { pub fn NetworkAdapter(&self) -> ::windows_core::Result { let this = self; @@ -1591,19 +1232,17 @@ impl ::windows_core::RuntimeType for IPInformation { } unsafe impl ::windows_core::Interface for IPInformation { type Vtable = IIPInformation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPInformation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for IPInformation { const NAME: &'static str = "Windows.Networking.Connectivity.IPInformation"; } -::windows_core::imp::interface_hierarchy!(IPInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for IPInformation {} unsafe impl ::core::marker::Sync for IPInformation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LanIdentifier(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LanIdentifier, ::windows_core::IUnknown, ::windows_core::IInspectable); impl LanIdentifier { pub fn InfrastructureId(&self) -> ::windows_core::Result { let this = self; @@ -1632,19 +1271,17 @@ impl ::windows_core::RuntimeType for LanIdentifier { } unsafe impl ::windows_core::Interface for LanIdentifier { type Vtable = ILanIdentifier_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LanIdentifier { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LanIdentifier { const NAME: &'static str = "Windows.Networking.Connectivity.LanIdentifier"; } -::windows_core::imp::interface_hierarchy!(LanIdentifier, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for LanIdentifier {} unsafe impl ::core::marker::Sync for LanIdentifier {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LanIdentifierData(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LanIdentifierData, ::windows_core::IUnknown, ::windows_core::IInspectable); impl LanIdentifierData { pub fn Type(&self) -> ::windows_core::Result { let this = self; @@ -1668,19 +1305,17 @@ impl ::windows_core::RuntimeType for LanIdentifierData { } unsafe impl ::windows_core::Interface for LanIdentifierData { type Vtable = ILanIdentifierData_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LanIdentifierData { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LanIdentifierData { const NAME: &'static str = "Windows.Networking.Connectivity.LanIdentifierData"; } -::windows_core::imp::interface_hierarchy!(LanIdentifierData, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for LanIdentifierData {} unsafe impl ::core::marker::Sync for LanIdentifierData {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct NetworkAdapter(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(NetworkAdapter, ::windows_core::IUnknown, ::windows_core::IInspectable); impl NetworkAdapter { pub fn OutboundMaxBitsPerSecond(&self) -> ::windows_core::Result { let this = self; @@ -1730,14 +1365,11 @@ impl ::windows_core::RuntimeType for NetworkAdapter { } unsafe impl ::windows_core::Interface for NetworkAdapter { type Vtable = INetworkAdapter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for NetworkAdapter { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for NetworkAdapter { const NAME: &'static str = "Windows.Networking.Connectivity.NetworkAdapter"; } -::windows_core::imp::interface_hierarchy!(NetworkAdapter, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for NetworkAdapter {} unsafe impl ::core::marker::Sync for NetworkAdapter {} pub struct NetworkInformation; @@ -1785,11 +1417,11 @@ impl NetworkInformation { #[cfg(feature = "Foundation_Collections")] pub fn GetSortedEndpointPairs(destinationlist: P0, sortoptions: super::HostNameSortOptions) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::INetworkInformationStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).GetSortedEndpointPairs)(::windows_core::Interface::as_raw(this), destinationlist.try_into_param()?.abi(), sortoptions, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).GetSortedEndpointPairs)(::windows_core::Interface::as_raw(this), destinationlist.into_param().abi(), sortoptions, &mut result__).from_abi(result__) }) } pub fn NetworkStatusChanged(networkstatushandler: P0) -> ::windows_core::Result @@ -1832,6 +1464,7 @@ impl ::windows_core::RuntimeName for NetworkInformation { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct NetworkItem(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(NetworkItem, ::windows_core::IUnknown, ::windows_core::IInspectable); impl NetworkItem { pub fn NetworkId(&self) -> ::windows_core::Result<::windows_core::GUID> { let this = self; @@ -1853,19 +1486,17 @@ impl ::windows_core::RuntimeType for NetworkItem { } unsafe impl ::windows_core::Interface for NetworkItem { type Vtable = INetworkItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for NetworkItem { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for NetworkItem { const NAME: &'static str = "Windows.Networking.Connectivity.NetworkItem"; } -::windows_core::imp::interface_hierarchy!(NetworkItem, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for NetworkItem {} unsafe impl ::core::marker::Sync for NetworkItem {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct NetworkSecuritySettings(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(NetworkSecuritySettings, ::windows_core::IUnknown, ::windows_core::IInspectable); impl NetworkSecuritySettings { pub fn NetworkAuthenticationType(&self) -> ::windows_core::Result { let this = self; @@ -1887,19 +1518,17 @@ impl ::windows_core::RuntimeType for NetworkSecuritySettings { } unsafe impl ::windows_core::Interface for NetworkSecuritySettings { type Vtable = INetworkSecuritySettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for NetworkSecuritySettings { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for NetworkSecuritySettings { const NAME: &'static str = "Windows.Networking.Connectivity.NetworkSecuritySettings"; } -::windows_core::imp::interface_hierarchy!(NetworkSecuritySettings, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for NetworkSecuritySettings {} unsafe impl ::core::marker::Sync for NetworkSecuritySettings {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct NetworkStateChangeEventDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(NetworkStateChangeEventDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl NetworkStateChangeEventDetails { pub fn HasNewInternetConnectionProfile(&self) -> ::windows_core::Result { let this = self; @@ -1944,14 +1573,14 @@ impl NetworkStateChangeEventDetails { } } pub fn HasNewTetheringOperationalState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).HasNewTetheringOperationalState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn HasNewTetheringClientCount(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).HasNewTetheringClientCount)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1963,19 +1592,17 @@ impl ::windows_core::RuntimeType for NetworkStateChangeEventDetails { } unsafe impl ::windows_core::Interface for NetworkStateChangeEventDetails { type Vtable = INetworkStateChangeEventDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for NetworkStateChangeEventDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for NetworkStateChangeEventDetails { const NAME: &'static str = "Windows.Networking.Connectivity.NetworkStateChangeEventDetails"; } -::windows_core::imp::interface_hierarchy!(NetworkStateChangeEventDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for NetworkStateChangeEventDetails {} unsafe impl ::core::marker::Sync for NetworkStateChangeEventDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct NetworkUsage(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(NetworkUsage, ::windows_core::IUnknown, ::windows_core::IInspectable); impl NetworkUsage { pub fn BytesSent(&self) -> ::windows_core::Result { let this = self; @@ -2004,19 +1631,17 @@ impl ::windows_core::RuntimeType for NetworkUsage { } unsafe impl ::windows_core::Interface for NetworkUsage { type Vtable = INetworkUsage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for NetworkUsage { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for NetworkUsage { const NAME: &'static str = "Windows.Networking.Connectivity.NetworkUsage"; } -::windows_core::imp::interface_hierarchy!(NetworkUsage, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for NetworkUsage {} unsafe impl ::core::marker::Sync for NetworkUsage {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ProviderNetworkUsage(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ProviderNetworkUsage, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ProviderNetworkUsage { pub fn BytesSent(&self) -> ::windows_core::Result { let this = self; @@ -2045,19 +1670,17 @@ impl ::windows_core::RuntimeType for ProviderNetworkUsage { } unsafe impl ::windows_core::Interface for ProviderNetworkUsage { type Vtable = IProviderNetworkUsage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ProviderNetworkUsage { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ProviderNetworkUsage { const NAME: &'static str = "Windows.Networking.Connectivity.ProviderNetworkUsage"; } -::windows_core::imp::interface_hierarchy!(ProviderNetworkUsage, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ProviderNetworkUsage {} unsafe impl ::core::marker::Sync for ProviderNetworkUsage {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ProxyConfiguration(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ProxyConfiguration, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ProxyConfiguration { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -2081,19 +1704,17 @@ impl ::windows_core::RuntimeType for ProxyConfiguration { } unsafe impl ::windows_core::Interface for ProxyConfiguration { type Vtable = IProxyConfiguration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ProxyConfiguration { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ProxyConfiguration { const NAME: &'static str = "Windows.Networking.Connectivity.ProxyConfiguration"; } -::windows_core::imp::interface_hierarchy!(ProxyConfiguration, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ProxyConfiguration {} unsafe impl ::core::marker::Sync for ProxyConfiguration {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RoutePolicy(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RoutePolicy, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RoutePolicy { pub fn ConnectionProfile(&self) -> ::windows_core::Result { let this = self; @@ -2137,19 +1758,17 @@ impl ::windows_core::RuntimeType for RoutePolicy { } unsafe impl ::windows_core::Interface for RoutePolicy { type Vtable = IRoutePolicy_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RoutePolicy { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RoutePolicy { const NAME: &'static str = "Windows.Networking.Connectivity.RoutePolicy"; } -::windows_core::imp::interface_hierarchy!(RoutePolicy, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RoutePolicy {} unsafe impl ::core::marker::Sync for RoutePolicy {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WlanConnectionProfileDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WlanConnectionProfileDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WlanConnectionProfileDetails { pub fn GetConnectedSsid(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -2164,19 +1783,17 @@ impl ::windows_core::RuntimeType for WlanConnectionProfileDetails { } unsafe impl ::windows_core::Interface for WlanConnectionProfileDetails { type Vtable = IWlanConnectionProfileDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WlanConnectionProfileDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WlanConnectionProfileDetails { const NAME: &'static str = "Windows.Networking.Connectivity.WlanConnectionProfileDetails"; } -::windows_core::imp::interface_hierarchy!(WlanConnectionProfileDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for WlanConnectionProfileDetails {} unsafe impl ::core::marker::Sync for WlanConnectionProfileDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WwanConnectionProfileDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WwanConnectionProfileDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WwanConnectionProfileDetails { pub fn HomeProviderId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -2207,7 +1824,7 @@ impl WwanConnectionProfileDetails { } } pub fn IPKind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IPKind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2216,7 +1833,7 @@ impl WwanConnectionProfileDetails { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn PurposeGuids(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PurposeGuids)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2228,14 +1845,11 @@ impl ::windows_core::RuntimeType for WwanConnectionProfileDetails { } unsafe impl ::windows_core::Interface for WwanConnectionProfileDetails { type Vtable = IWwanConnectionProfileDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WwanConnectionProfileDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WwanConnectionProfileDetails { const NAME: &'static str = "Windows.Networking.Connectivity.WwanConnectionProfileDetails"; } -::windows_core::imp::interface_hierarchy!(WwanConnectionProfileDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for WwanConnectionProfileDetails {} unsafe impl ::core::marker::Sync for WwanConnectionProfileDetails {} #[repr(transparent)] @@ -2699,9 +2313,7 @@ impl ::core::default::Default for NetworkUsageStates { unsafe { ::core::mem::zeroed() } } } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct NetworkStatusChangedEventHandler(pub ::windows_core::IUnknown); +::windows_core::imp::com_interface!(NetworkStatusChangedEventHandler, NetworkStatusChangedEventHandler_Vtbl, 0x71ba143f_598e_49d0_84eb_8febaedcc195); impl NetworkStatusChangedEventHandler { pub fn new) -> ::windows_core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = NetworkStatusChangedEventHandlerBox:: { vtable: &NetworkStatusChangedEventHandlerBox::::VTABLE, count: ::windows_core::imp::RefCount::new(1), invoke }; @@ -2731,7 +2343,7 @@ impl) -> ::window if iid.is_null() || interface.is_null() { return ::windows_core::HRESULT(-2147467261); } - *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; + *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::Interface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::Interface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; if (*interface).is_null() { ::windows_core::HRESULT(-2147467262) } else { @@ -2756,12 +2368,6 @@ impl) -> ::window ((*this).invoke)(::windows_core::from_raw_borrowed(&sender)).into() } } -unsafe impl ::windows_core::Interface for NetworkStatusChangedEventHandler { - type Vtable = NetworkStatusChangedEventHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for NetworkStatusChangedEventHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x71ba143f_598e_49d0_84eb_8febaedcc195); -} impl ::windows_core::RuntimeType for NetworkStatusChangedEventHandler { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } diff --git a/crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs b/crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs index 2c03a2a836..c08f8a233e 100644 --- a/crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs +++ b/crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IESim(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IESim { - type Vtable = IESim_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IESim { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6f6e6e26_f123_437d_8ced_dc1d2bc0c3a9); -} +::windows_core::imp::com_interface!(IESim, IESim_Vtbl, 0x6f6e6e26_f123_437d_8ced_dc1d2bc0c3a9); #[repr(C)] #[doc(hidden)] pub struct IESim_Vtbl { @@ -28,16 +19,7 @@ pub struct IESim_Vtbl { pub ProfileChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveProfileChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IESim2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IESim2 { - type Vtable = IESim2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IESim2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbd4fd0a0_c68f_56eb_b99b_8f34b8100299); -} +::windows_core::imp::com_interface!(IESim2, IESim2_Vtbl, 0xbd4fd0a0_c68f_56eb_b99b_8f34b8100299); #[repr(C)] #[doc(hidden)] pub struct IESim2_Vtbl { @@ -47,48 +29,21 @@ pub struct IESim2_Vtbl { pub DiscoverAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub DiscoverWithServerAddressAndMatchingIdAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, serveraddress: ::std::mem::MaybeUninit<::windows_core::HSTRING>, matchingid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IESim3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IESim3 { - type Vtable = IESim3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IESim3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfe1edf45_01b8_5d31_b8d3_d9cbebb2b831); -} +::windows_core::imp::com_interface!(IESim3, IESim3_Vtbl, 0xfe1edf45_01b8_5d31_b8d3_d9cbebb2b831); #[repr(C)] #[doc(hidden)] pub struct IESim3_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub SlotIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IESimAddedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IESimAddedEventArgs { - type Vtable = IESimAddedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IESimAddedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x38bd0a58_4d5a_4d08_8da7_e73eff369ddd); -} +::windows_core::imp::com_interface!(IESimAddedEventArgs, IESimAddedEventArgs_Vtbl, 0x38bd0a58_4d5a_4d08_8da7_e73eff369ddd); #[repr(C)] #[doc(hidden)] pub struct IESimAddedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ESim: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IESimDiscoverEvent(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IESimDiscoverEvent { - type Vtable = IESimDiscoverEvent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IESimDiscoverEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe59ac3e3_39bc_5f6f_9321_0d4a182d261b); -} +::windows_core::imp::com_interface!(IESimDiscoverEvent, IESimDiscoverEvent_Vtbl, 0xe59ac3e3_39bc_5f6f_9321_0d4a182d261b); #[repr(C)] #[doc(hidden)] pub struct IESimDiscoverEvent_Vtbl { @@ -96,16 +51,7 @@ pub struct IESimDiscoverEvent_Vtbl { pub MatchingId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub RspServerAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IESimDiscoverResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IESimDiscoverResult { - type Vtable = IESimDiscoverResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IESimDiscoverResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x56b4bb5e_ab2f_5ac6_b359_dd5a8e237926); -} +::windows_core::imp::com_interface!(IESimDiscoverResult, IESimDiscoverResult_Vtbl, 0x56b4bb5e_ab2f_5ac6_b359_dd5a8e237926); #[repr(C)] #[doc(hidden)] pub struct IESimDiscoverResult_Vtbl { @@ -118,16 +64,7 @@ pub struct IESimDiscoverResult_Vtbl { pub ProfileMetadata: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Result: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IESimDownloadProfileMetadataResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IESimDownloadProfileMetadataResult { - type Vtable = IESimDownloadProfileMetadataResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IESimDownloadProfileMetadataResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc4234d9e_5ad6_426d_8d00_4434f449afec); -} +::windows_core::imp::com_interface!(IESimDownloadProfileMetadataResult, IESimDownloadProfileMetadataResult_Vtbl, 0xc4234d9e_5ad6_426d_8d00_4434f449afec); #[repr(C)] #[doc(hidden)] pub struct IESimDownloadProfileMetadataResult_Vtbl { @@ -135,16 +72,7 @@ pub struct IESimDownloadProfileMetadataResult_Vtbl { pub Result: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ProfileMetadata: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IESimManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IESimManagerStatics { - type Vtable = IESimManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IESimManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0bfa2c0c_df88_4631_bf04_c12e281b3962); -} +::windows_core::imp::com_interface!(IESimManagerStatics, IESimManagerStatics_Vtbl, 0x0bfa2c0c_df88_4631_bf04_c12e281b3962); #[repr(C)] #[doc(hidden)] pub struct IESimManagerStatics_Vtbl { @@ -154,48 +82,21 @@ pub struct IESimManagerStatics_Vtbl { pub ServiceInfoChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveServiceInfoChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IESimOperationResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IESimOperationResult { - type Vtable = IESimOperationResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IESimOperationResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa67b63b1_309b_4e77_9e7e_cd93f1ddc7b9); -} +::windows_core::imp::com_interface!(IESimOperationResult, IESimOperationResult_Vtbl, 0xa67b63b1_309b_4e77_9e7e_cd93f1ddc7b9); #[repr(C)] #[doc(hidden)] pub struct IESimOperationResult_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ESimOperationStatus) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IESimPolicy(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IESimPolicy { - type Vtable = IESimPolicy_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IESimPolicy { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x41e1b99d_cf7e_4315_882b_6f1e74b0d38f); -} +::windows_core::imp::com_interface!(IESimPolicy, IESimPolicy_Vtbl, 0x41e1b99d_cf7e_4315_882b_6f1e74b0d38f); #[repr(C)] #[doc(hidden)] pub struct IESimPolicy_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ShouldEnableManagingUi: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IESimProfile(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IESimProfile { - type Vtable = IESimProfile_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IESimProfile { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xee1e7880_06a9_4027_b4f8_ddb23d7810e0); -} +::windows_core::imp::com_interface!(IESimProfile, IESimProfile_Vtbl, 0xee1e7880_06a9_4027_b4f8_ddb23d7810e0); #[repr(C)] #[doc(hidden)] pub struct IESimProfile_Vtbl { @@ -215,16 +116,7 @@ pub struct IESimProfile_Vtbl { pub EnableAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetNicknameAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newnickname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IESimProfileMetadata(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IESimProfileMetadata { - type Vtable = IESimProfileMetadata_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IESimProfileMetadata { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xed25831f_90db_498d_a7b4_ebce807d3c23); -} +::windows_core::imp::com_interface!(IESimProfileMetadata, IESimProfileMetadata_Vtbl, 0xed25831f_90db_498d_a7b4_ebce807d3c23); #[repr(C)] #[doc(hidden)] pub struct IESimProfileMetadata_Vtbl { @@ -246,16 +138,7 @@ pub struct IESimProfileMetadata_Vtbl { pub StateChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveStateChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IESimProfilePolicy(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IESimProfilePolicy { - type Vtable = IESimProfilePolicy_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IESimProfilePolicy { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe6dd0f1d_9c5c_46c5_a289_a948999bf062); -} +::windows_core::imp::com_interface!(IESimProfilePolicy, IESimProfilePolicy_Vtbl, 0xe6dd0f1d_9c5c_46c5_a289_a948999bf062); #[repr(C)] #[doc(hidden)] pub struct IESimProfilePolicy_Vtbl { @@ -264,32 +147,14 @@ pub struct IESimProfilePolicy_Vtbl { pub CanDisable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub IsManagedByEnterprise: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IESimRemovedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IESimRemovedEventArgs { - type Vtable = IESimRemovedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IESimRemovedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdec5277b_2fd9_4ed9_8376_d9b5e41278a3); -} +::windows_core::imp::com_interface!(IESimRemovedEventArgs, IESimRemovedEventArgs_Vtbl, 0xdec5277b_2fd9_4ed9_8376_d9b5e41278a3); #[repr(C)] #[doc(hidden)] pub struct IESimRemovedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ESim: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IESimServiceInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IESimServiceInfo { - type Vtable = IESimServiceInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IESimServiceInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf16aabcf_7f59_4a51_8494_bd89d5ff50ee); -} +::windows_core::imp::com_interface!(IESimServiceInfo, IESimServiceInfo_Vtbl, 0xf16aabcf_7f59_4a51_8494_bd89d5ff50ee); #[repr(C)] #[doc(hidden)] pub struct IESimServiceInfo_Vtbl { @@ -297,32 +162,14 @@ pub struct IESimServiceInfo_Vtbl { pub AuthenticationPreference: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ESimAuthenticationPreference) -> ::windows_core::HRESULT, pub IsESimUiEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IESimUpdatedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IESimUpdatedEventArgs { - type Vtable = IESimUpdatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IESimUpdatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4c125cec_508d_4b88_83cb_68bef8168d12); -} +::windows_core::imp::com_interface!(IESimUpdatedEventArgs, IESimUpdatedEventArgs_Vtbl, 0x4c125cec_508d_4b88_83cb_68bef8168d12); #[repr(C)] #[doc(hidden)] pub struct IESimUpdatedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ESim: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IESimWatcher(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IESimWatcher { - type Vtable = IESimWatcher_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IESimWatcher { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc1f84ceb_a28d_4fbf_9771_6e31b81ccf22); -} +::windows_core::imp::com_interface!(IESimWatcher, IESimWatcher_Vtbl, 0xc1f84ceb_a28d_4fbf_9771_6e31b81ccf22); #[repr(C)] #[doc(hidden)] pub struct IESimWatcher_Vtbl { @@ -341,32 +188,14 @@ pub struct IESimWatcher_Vtbl { pub Updated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveUpdated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFdnAccessManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFdnAccessManagerStatics { - type Vtable = IFdnAccessManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFdnAccessManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf2aa4395_f1e6_4319_aa3e_477ca64b2bdf); -} +::windows_core::imp::com_interface!(IFdnAccessManagerStatics, IFdnAccessManagerStatics_Vtbl, 0xf2aa4395_f1e6_4319_aa3e_477ca64b2bdf); #[repr(C)] #[doc(hidden)] pub struct IFdnAccessManagerStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub RequestUnlockAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, contactlistid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHotspotAuthenticationContext(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHotspotAuthenticationContext { - type Vtable = IHotspotAuthenticationContext_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHotspotAuthenticationContext { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe756c791_1003_4de5_83c7_de61d88831d0); -} +::windows_core::imp::com_interface!(IHotspotAuthenticationContext, IHotspotAuthenticationContext_Vtbl, 0xe756c791_1003_4de5_83c7_de61d88831d0); #[repr(C)] #[doc(hidden)] pub struct IHotspotAuthenticationContext_Vtbl { @@ -387,64 +216,28 @@ pub struct IHotspotAuthenticationContext_Vtbl { pub SkipAuthentication: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub TriggerAttentionRequired: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, packagerelativeapplicationid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, applicationparameters: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHotspotAuthenticationContext2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHotspotAuthenticationContext2 { - type Vtable = IHotspotAuthenticationContext2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHotspotAuthenticationContext2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe756c791_1004_4de5_83c7_de61d88831d0); -} +::windows_core::imp::com_interface!(IHotspotAuthenticationContext2, IHotspotAuthenticationContext2_Vtbl, 0xe756c791_1004_4de5_83c7_de61d88831d0); #[repr(C)] #[doc(hidden)] pub struct IHotspotAuthenticationContext2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub IssueCredentialsAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, username: ::std::mem::MaybeUninit<::windows_core::HSTRING>, password: ::std::mem::MaybeUninit<::windows_core::HSTRING>, extraparameters: ::std::mem::MaybeUninit<::windows_core::HSTRING>, markasmanualconnectonfailure: bool, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHotspotAuthenticationContextStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHotspotAuthenticationContextStatics { - type Vtable = IHotspotAuthenticationContextStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHotspotAuthenticationContextStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe756c791_1002_4de5_83c7_de61d88831d0); -} +::windows_core::imp::com_interface!(IHotspotAuthenticationContextStatics, IHotspotAuthenticationContextStatics_Vtbl, 0xe756c791_1002_4de5_83c7_de61d88831d0); #[repr(C)] #[doc(hidden)] pub struct IHotspotAuthenticationContextStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub TryGetAuthenticationContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventoken: ::std::mem::MaybeUninit<::windows_core::HSTRING>, context: *mut *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHotspotAuthenticationEventDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHotspotAuthenticationEventDetails { - type Vtable = IHotspotAuthenticationEventDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHotspotAuthenticationEventDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe756c791_1001_4de5_83c7_de61d88831d0); -} +::windows_core::imp::com_interface!(IHotspotAuthenticationEventDetails, IHotspotAuthenticationEventDetails_Vtbl, 0xe756c791_1001_4de5_83c7_de61d88831d0); #[repr(C)] #[doc(hidden)] pub struct IHotspotAuthenticationEventDetails_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub EventToken: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHotspotCredentialsAuthenticationResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHotspotCredentialsAuthenticationResult { - type Vtable = IHotspotCredentialsAuthenticationResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHotspotCredentialsAuthenticationResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe756c791_1005_4de5_83c7_de61d88831d0); -} +::windows_core::imp::com_interface!(IHotspotCredentialsAuthenticationResult, IHotspotCredentialsAuthenticationResult_Vtbl, 0xe756c791_1005_4de5_83c7_de61d88831d0); #[repr(C)] #[doc(hidden)] pub struct IHotspotCredentialsAuthenticationResult_Vtbl { @@ -457,16 +250,7 @@ pub struct IHotspotCredentialsAuthenticationResult_Vtbl { #[cfg(not(feature = "Data_Xml_Dom"))] AuthenticationReplyXml: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKnownCSimFilePathsStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKnownCSimFilePathsStatics { - type Vtable = IKnownCSimFilePathsStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKnownCSimFilePathsStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb458aeed_49f1_4c22_b073_96d511bf9c35); -} +::windows_core::imp::com_interface!(IKnownCSimFilePathsStatics, IKnownCSimFilePathsStatics_Vtbl, 0xb458aeed_49f1_4c22_b073_96d511bf9c35); #[repr(C)] #[doc(hidden)] pub struct IKnownCSimFilePathsStatics_Vtbl { @@ -484,16 +268,7 @@ pub struct IKnownCSimFilePathsStatics_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Gid2: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKnownRuimFilePathsStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKnownRuimFilePathsStatics { - type Vtable = IKnownRuimFilePathsStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKnownRuimFilePathsStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3883c8b9_ff24_4571_a867_09f960426e14); -} +::windows_core::imp::com_interface!(IKnownRuimFilePathsStatics, IKnownRuimFilePathsStatics_Vtbl, 0x3883c8b9_ff24_4571_a867_09f960426e14); #[repr(C)] #[doc(hidden)] pub struct IKnownRuimFilePathsStatics_Vtbl { @@ -511,16 +286,7 @@ pub struct IKnownRuimFilePathsStatics_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Gid2: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKnownSimFilePathsStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKnownSimFilePathsStatics { - type Vtable = IKnownSimFilePathsStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKnownSimFilePathsStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x80cd1a63_37a5_43d3_80a3_ccd23e8fecee); -} +::windows_core::imp::com_interface!(IKnownSimFilePathsStatics, IKnownSimFilePathsStatics_Vtbl, 0x80cd1a63_37a5_43d3_80a3_ccd23e8fecee); #[repr(C)] #[doc(hidden)] pub struct IKnownSimFilePathsStatics_Vtbl { @@ -542,16 +308,7 @@ pub struct IKnownSimFilePathsStatics_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Gid2: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKnownUSimFilePathsStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKnownUSimFilePathsStatics { - type Vtable = IKnownUSimFilePathsStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKnownUSimFilePathsStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7c34e581_1f1b_43f4_9530_8b092d32d71f); -} +::windows_core::imp::com_interface!(IKnownUSimFilePathsStatics, IKnownUSimFilePathsStatics_Vtbl, 0x7c34e581_1f1b_43f4_9530_8b092d32d71f); #[repr(C)] #[doc(hidden)] pub struct IKnownUSimFilePathsStatics_Vtbl { @@ -577,16 +334,7 @@ pub struct IKnownUSimFilePathsStatics_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Gid2: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMobileBroadbandAccount(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMobileBroadbandAccount { - type Vtable = IMobileBroadbandAccount_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMobileBroadbandAccount { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x36c24ccd_cee2_43e0_a603_ee86a36d6570); -} +::windows_core::imp::com_interface!(IMobileBroadbandAccount, IMobileBroadbandAccount_Vtbl, 0x36c24ccd_cee2_43e0_a603_ee86a36d6570); #[repr(C)] #[doc(hidden)] pub struct IMobileBroadbandAccount_Vtbl { @@ -597,16 +345,7 @@ pub struct IMobileBroadbandAccount_Vtbl { pub CurrentNetwork: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CurrentDeviceInformation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMobileBroadbandAccount2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMobileBroadbandAccount2 { - type Vtable = IMobileBroadbandAccount2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMobileBroadbandAccount2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x38f52f1c_1136_4257_959f_b658a352b6d4); -} +::windows_core::imp::com_interface!(IMobileBroadbandAccount2, IMobileBroadbandAccount2_Vtbl, 0x38f52f1c_1136_4257_959f_b658a352b6d4); #[repr(C)] #[doc(hidden)] pub struct IMobileBroadbandAccount2_Vtbl { @@ -616,48 +355,21 @@ pub struct IMobileBroadbandAccount2_Vtbl { #[cfg(not(all(feature = "Foundation_Collections", feature = "Networking_Connectivity")))] GetConnectionProfiles: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMobileBroadbandAccount3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMobileBroadbandAccount3 { - type Vtable = IMobileBroadbandAccount3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMobileBroadbandAccount3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x092a1e21_9379_4b9b_ad31_d5fee2f748c6); -} +::windows_core::imp::com_interface!(IMobileBroadbandAccount3, IMobileBroadbandAccount3_Vtbl, 0x092a1e21_9379_4b9b_ad31_d5fee2f748c6); #[repr(C)] #[doc(hidden)] pub struct IMobileBroadbandAccount3_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub AccountExperienceUrl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMobileBroadbandAccountEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMobileBroadbandAccountEventArgs { - type Vtable = IMobileBroadbandAccountEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMobileBroadbandAccountEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3853c880_77de_4c04_bead_a123b08c9f59); -} +::windows_core::imp::com_interface!(IMobileBroadbandAccountEventArgs, IMobileBroadbandAccountEventArgs_Vtbl, 0x3853c880_77de_4c04_bead_a123b08c9f59); #[repr(C)] #[doc(hidden)] pub struct IMobileBroadbandAccountEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub NetworkAccountId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMobileBroadbandAccountStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMobileBroadbandAccountStatics { - type Vtable = IMobileBroadbandAccountStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMobileBroadbandAccountStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaa7f4d24_afc1_4fc8_ae9a_a9175310faad); -} +::windows_core::imp::com_interface!(IMobileBroadbandAccountStatics, IMobileBroadbandAccountStatics_Vtbl, 0xaa7f4d24_afc1_4fc8_ae9a_a9175310faad); #[repr(C)] #[doc(hidden)] pub struct IMobileBroadbandAccountStatics_Vtbl { @@ -668,16 +380,7 @@ pub struct IMobileBroadbandAccountStatics_Vtbl { AvailableNetworkAccountIds: usize, pub CreateFromNetworkAccountId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, networkaccountid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMobileBroadbandAccountUpdatedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMobileBroadbandAccountUpdatedEventArgs { - type Vtable = IMobileBroadbandAccountUpdatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMobileBroadbandAccountUpdatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7bc31d88_a6bd_49e1_80ab_6b91354a57d4); -} +::windows_core::imp::com_interface!(IMobileBroadbandAccountUpdatedEventArgs, IMobileBroadbandAccountUpdatedEventArgs_Vtbl, 0x7bc31d88_a6bd_49e1_80ab_6b91354a57d4); #[repr(C)] #[doc(hidden)] pub struct IMobileBroadbandAccountUpdatedEventArgs_Vtbl { @@ -686,16 +389,7 @@ pub struct IMobileBroadbandAccountUpdatedEventArgs_Vtbl { pub HasDeviceInformationChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub HasNetworkChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMobileBroadbandAccountWatcher(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMobileBroadbandAccountWatcher { - type Vtable = IMobileBroadbandAccountWatcher_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMobileBroadbandAccountWatcher { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6bf3335e_23b5_449f_928d_5e0d3e04471d); -} +::windows_core::imp::com_interface!(IMobileBroadbandAccountWatcher, IMobileBroadbandAccountWatcher_Vtbl, 0x6bf3335e_23b5_449f_928d_5e0d3e04471d); #[repr(C)] #[doc(hidden)] pub struct IMobileBroadbandAccountWatcher_Vtbl { @@ -714,16 +408,7 @@ pub struct IMobileBroadbandAccountWatcher_Vtbl { pub Start: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Stop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMobileBroadbandAntennaSar(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMobileBroadbandAntennaSar { - type Vtable = IMobileBroadbandAntennaSar_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMobileBroadbandAntennaSar { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb9af4b7e_cbf9_4109_90be_5c06bfd513b6); -} +::windows_core::imp::com_interface!(IMobileBroadbandAntennaSar, IMobileBroadbandAntennaSar_Vtbl, 0xb9af4b7e_cbf9_4109_90be_5c06bfd513b6); #[repr(C)] #[doc(hidden)] pub struct IMobileBroadbandAntennaSar_Vtbl { @@ -731,32 +416,14 @@ pub struct IMobileBroadbandAntennaSar_Vtbl { pub AntennaIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows_core::HRESULT, pub SarBackoffIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMobileBroadbandAntennaSarFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMobileBroadbandAntennaSarFactory { - type Vtable = IMobileBroadbandAntennaSarFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMobileBroadbandAntennaSarFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa91e1716_c04d_4a21_8698_1459dc672c6e); -} +::windows_core::imp::com_interface!(IMobileBroadbandAntennaSarFactory, IMobileBroadbandAntennaSarFactory_Vtbl, 0xa91e1716_c04d_4a21_8698_1459dc672c6e); #[repr(C)] #[doc(hidden)] pub struct IMobileBroadbandAntennaSarFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateWithIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, antennaindex: i32, sarbackoffindex: i32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMobileBroadbandCellCdma(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMobileBroadbandCellCdma { - type Vtable = IMobileBroadbandCellCdma_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMobileBroadbandCellCdma { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0601b3b4_411a_4f2e_8287_76f5650c60cd); -} +::windows_core::imp::com_interface!(IMobileBroadbandCellCdma, IMobileBroadbandCellCdma_Vtbl, 0x0601b3b4_411a_4f2e_8287_76f5650c60cd); #[repr(C)] #[doc(hidden)] pub struct IMobileBroadbandCellCdma_Vtbl { @@ -770,16 +437,7 @@ pub struct IMobileBroadbandCellCdma_Vtbl { pub PilotSignalStrengthInDB: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SystemId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMobileBroadbandCellGsm(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMobileBroadbandCellGsm { - type Vtable = IMobileBroadbandCellGsm_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMobileBroadbandCellGsm { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcc917f06_7ee0_47b8_9e1f_c3b48df9df5b); -} +::windows_core::imp::com_interface!(IMobileBroadbandCellGsm, IMobileBroadbandCellGsm_Vtbl, 0xcc917f06_7ee0_47b8_9e1f_c3b48df9df5b); #[repr(C)] #[doc(hidden)] pub struct IMobileBroadbandCellGsm_Vtbl { @@ -792,16 +450,7 @@ pub struct IMobileBroadbandCellGsm_Vtbl { pub ReceivedSignalStrengthInDBm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub TimingAdvanceInBitPeriods: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMobileBroadbandCellLte(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMobileBroadbandCellLte { - type Vtable = IMobileBroadbandCellLte_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMobileBroadbandCellLte { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9197c87b_2b78_456d_8b53_aaa25d0af741); -} +::windows_core::imp::com_interface!(IMobileBroadbandCellLte, IMobileBroadbandCellLte_Vtbl, 0x9197c87b_2b78_456d_8b53_aaa25d0af741); #[repr(C)] #[doc(hidden)] pub struct IMobileBroadbandCellLte_Vtbl { @@ -815,16 +464,7 @@ pub struct IMobileBroadbandCellLte_Vtbl { pub TimingAdvanceInBitPeriods: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub TrackingAreaCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMobileBroadbandCellNR(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMobileBroadbandCellNR { - type Vtable = IMobileBroadbandCellNR_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMobileBroadbandCellNR { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa13f0deb_66fc_4b4b_83a9_a487a3a5a0a6); -} +::windows_core::imp::com_interface!(IMobileBroadbandCellNR, IMobileBroadbandCellNR_Vtbl, 0xa13f0deb_66fc_4b4b_83a9_a487a3a5a0a6); #[repr(C)] #[doc(hidden)] pub struct IMobileBroadbandCellNR_Vtbl { @@ -839,16 +479,7 @@ pub struct IMobileBroadbandCellNR_Vtbl { pub TrackingAreaCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SignalToNoiseRatioInDB: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMobileBroadbandCellTdscdma(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMobileBroadbandCellTdscdma { - type Vtable = IMobileBroadbandCellTdscdma_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMobileBroadbandCellTdscdma { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0eda1655_db0e_4182_8cda_cc419a7bde08); -} +::windows_core::imp::com_interface!(IMobileBroadbandCellTdscdma, IMobileBroadbandCellTdscdma_Vtbl, 0x0eda1655_db0e_4182_8cda_cc419a7bde08); #[repr(C)] #[doc(hidden)] pub struct IMobileBroadbandCellTdscdma_Vtbl { @@ -862,16 +493,7 @@ pub struct IMobileBroadbandCellTdscdma_Vtbl { pub ReceivedSignalCodePowerInDBm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub TimingAdvanceInBitPeriods: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMobileBroadbandCellUmts(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMobileBroadbandCellUmts { - type Vtable = IMobileBroadbandCellUmts_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMobileBroadbandCellUmts { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x77b4b5ae_49c8_4f15_b285_4c26a7f67215); -} +::windows_core::imp::com_interface!(IMobileBroadbandCellUmts, IMobileBroadbandCellUmts_Vtbl, 0x77b4b5ae_49c8_4f15_b285_4c26a7f67215); #[repr(C)] #[doc(hidden)] pub struct IMobileBroadbandCellUmts_Vtbl { @@ -885,16 +507,7 @@ pub struct IMobileBroadbandCellUmts_Vtbl { pub ReceivedSignalCodePowerInDBm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SignalToNoiseRatioInDB: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMobileBroadbandCellsInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMobileBroadbandCellsInfo { - type Vtable = IMobileBroadbandCellsInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMobileBroadbandCellsInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x89a9562a_e472_4da5_929c_de61711dd261); -} +::windows_core::imp::com_interface!(IMobileBroadbandCellsInfo, IMobileBroadbandCellsInfo_Vtbl, 0x89a9562a_e472_4da5_929c_de61711dd261); #[repr(C)] #[doc(hidden)] pub struct IMobileBroadbandCellsInfo_Vtbl { @@ -940,16 +553,7 @@ pub struct IMobileBroadbandCellsInfo_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] ServingCellsUmts: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMobileBroadbandCellsInfo2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMobileBroadbandCellsInfo2 { - type Vtable = IMobileBroadbandCellsInfo2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMobileBroadbandCellsInfo2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x66205912_b89f_4e12_bbb6_d5cf09a820ca); -} +::windows_core::imp::com_interface!(IMobileBroadbandCellsInfo2, IMobileBroadbandCellsInfo2_Vtbl, 0x66205912_b89f_4e12_bbb6_d5cf09a820ca); #[repr(C)] #[doc(hidden)] pub struct IMobileBroadbandCellsInfo2_Vtbl { @@ -963,33 +567,15 @@ pub struct IMobileBroadbandCellsInfo2_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] ServingCellsNR: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMobileBroadbandCurrentSlotIndexChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMobileBroadbandCurrentSlotIndexChangedEventArgs { - type Vtable = IMobileBroadbandCurrentSlotIndexChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMobileBroadbandCurrentSlotIndexChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf718b184_c370_5fd4_a670_1846cb9bce47); -} +::windows_core::imp::com_interface!(IMobileBroadbandCurrentSlotIndexChangedEventArgs, IMobileBroadbandCurrentSlotIndexChangedEventArgs_Vtbl, 0xf718b184_c370_5fd4_a670_1846cb9bce47); #[repr(C)] #[doc(hidden)] pub struct IMobileBroadbandCurrentSlotIndexChangedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CurrentSlotIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMobileBroadbandDeviceInformation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMobileBroadbandDeviceInformation { - type Vtable = IMobileBroadbandDeviceInformation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMobileBroadbandDeviceInformation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe6d08168_e381_4c6e_9be8_fe156969a446); -} -#[repr(C)] +::windows_core::imp::com_interface!(IMobileBroadbandDeviceInformation, IMobileBroadbandDeviceInformation_Vtbl, 0xe6d08168_e381_4c6e_9be8_fe156969a446); +#[repr(C)] #[doc(hidden)] pub struct IMobileBroadbandDeviceInformation_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, @@ -1014,16 +600,7 @@ pub struct IMobileBroadbandDeviceInformation_Vtbl { pub DeviceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub CurrentRadioState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut MobileBroadbandRadioState) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMobileBroadbandDeviceInformation2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMobileBroadbandDeviceInformation2 { - type Vtable = IMobileBroadbandDeviceInformation2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMobileBroadbandDeviceInformation2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2e467af1_f932_4737_a722_03ba72370cb8); -} +::windows_core::imp::com_interface!(IMobileBroadbandDeviceInformation2, IMobileBroadbandDeviceInformation2_Vtbl, 0x2e467af1_f932_4737_a722_03ba72370cb8); #[repr(C)] #[doc(hidden)] pub struct IMobileBroadbandDeviceInformation2_Vtbl { @@ -1032,16 +609,7 @@ pub struct IMobileBroadbandDeviceInformation2_Vtbl { pub Revision: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SerialNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMobileBroadbandDeviceInformation3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMobileBroadbandDeviceInformation3 { - type Vtable = IMobileBroadbandDeviceInformation3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMobileBroadbandDeviceInformation3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe08bb4bd_5d30_4b5a_92cc_d54df881d49e); -} +::windows_core::imp::com_interface!(IMobileBroadbandDeviceInformation3, IMobileBroadbandDeviceInformation3_Vtbl, 0xe08bb4bd_5d30_4b5a_92cc_d54df881d49e); #[repr(C)] #[doc(hidden)] pub struct IMobileBroadbandDeviceInformation3_Vtbl { @@ -1050,32 +618,14 @@ pub struct IMobileBroadbandDeviceInformation3_Vtbl { pub SimPnn: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SimGid1: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMobileBroadbandDeviceInformation4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMobileBroadbandDeviceInformation4 { - type Vtable = IMobileBroadbandDeviceInformation4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMobileBroadbandDeviceInformation4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x263f3152_7b9d_582c_b17c_f80a60b50031); -} +::windows_core::imp::com_interface!(IMobileBroadbandDeviceInformation4, IMobileBroadbandDeviceInformation4_Vtbl, 0x263f3152_7b9d_582c_b17c_f80a60b50031); #[repr(C)] #[doc(hidden)] pub struct IMobileBroadbandDeviceInformation4_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub SlotManager: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMobileBroadbandDeviceService(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMobileBroadbandDeviceService { - type Vtable = IMobileBroadbandDeviceService_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMobileBroadbandDeviceService { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x22be1a52_bd80_40ac_8e1f_2e07836a3dbd); -} +::windows_core::imp::com_interface!(IMobileBroadbandDeviceService, IMobileBroadbandDeviceService_Vtbl, 0x22be1a52_bd80_40ac_8e1f_2e07836a3dbd); #[repr(C)] #[doc(hidden)] pub struct IMobileBroadbandDeviceService_Vtbl { @@ -1088,16 +638,7 @@ pub struct IMobileBroadbandDeviceService_Vtbl { pub OpenDataSession: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub OpenCommandSession: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMobileBroadbandDeviceServiceCommandResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMobileBroadbandDeviceServiceCommandResult { - type Vtable = IMobileBroadbandDeviceServiceCommandResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMobileBroadbandDeviceServiceCommandResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb0f46abb_94d6_44b9_a538_f0810b645389); -} +::windows_core::imp::com_interface!(IMobileBroadbandDeviceServiceCommandResult, IMobileBroadbandDeviceServiceCommandResult_Vtbl, 0xb0f46abb_94d6_44b9_a538_f0810b645389); #[repr(C)] #[doc(hidden)] pub struct IMobileBroadbandDeviceServiceCommandResult_Vtbl { @@ -1108,16 +649,7 @@ pub struct IMobileBroadbandDeviceServiceCommandResult_Vtbl { #[cfg(not(feature = "Storage_Streams"))] ResponseData: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMobileBroadbandDeviceServiceCommandSession(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMobileBroadbandDeviceServiceCommandSession { - type Vtable = IMobileBroadbandDeviceServiceCommandSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMobileBroadbandDeviceServiceCommandSession { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfc098a45_913b_4914_b6c3_ae6304593e75); -} +::windows_core::imp::com_interface!(IMobileBroadbandDeviceServiceCommandSession, IMobileBroadbandDeviceServiceCommandSession_Vtbl, 0xfc098a45_913b_4914_b6c3_ae6304593e75); #[repr(C)] #[doc(hidden)] pub struct IMobileBroadbandDeviceServiceCommandSession_Vtbl { @@ -1132,16 +664,7 @@ pub struct IMobileBroadbandDeviceServiceCommandSession_Vtbl { SendSetCommandAsync: usize, pub CloseSession: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMobileBroadbandDeviceServiceDataReceivedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMobileBroadbandDeviceServiceDataReceivedEventArgs { - type Vtable = IMobileBroadbandDeviceServiceDataReceivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMobileBroadbandDeviceServiceDataReceivedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb6aa13de_1380_40e3_8618_73cbca48138c); -} +::windows_core::imp::com_interface!(IMobileBroadbandDeviceServiceDataReceivedEventArgs, IMobileBroadbandDeviceServiceDataReceivedEventArgs_Vtbl, 0xb6aa13de_1380_40e3_8618_73cbca48138c); #[repr(C)] #[doc(hidden)] pub struct IMobileBroadbandDeviceServiceDataReceivedEventArgs_Vtbl { @@ -1151,16 +674,7 @@ pub struct IMobileBroadbandDeviceServiceDataReceivedEventArgs_Vtbl { #[cfg(not(feature = "Storage_Streams"))] ReceivedData: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMobileBroadbandDeviceServiceDataSession(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMobileBroadbandDeviceServiceDataSession { - type Vtable = IMobileBroadbandDeviceServiceDataSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMobileBroadbandDeviceServiceDataSession { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdad62333_8bcf_4289_8a37_045c2169486a); -} +::windows_core::imp::com_interface!(IMobileBroadbandDeviceServiceDataSession, IMobileBroadbandDeviceServiceDataSession_Vtbl, 0xdad62333_8bcf_4289_8a37_045c2169486a); #[repr(C)] #[doc(hidden)] pub struct IMobileBroadbandDeviceServiceDataSession_Vtbl { @@ -1173,16 +687,7 @@ pub struct IMobileBroadbandDeviceServiceDataSession_Vtbl { pub DataReceived: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventhandler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveDataReceived: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventcookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMobileBroadbandDeviceServiceInformation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMobileBroadbandDeviceServiceInformation { - type Vtable = IMobileBroadbandDeviceServiceInformation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMobileBroadbandDeviceServiceInformation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x53d69b5b_c4ed_45f0_803a_d9417a6d9846); -} +::windows_core::imp::com_interface!(IMobileBroadbandDeviceServiceInformation, IMobileBroadbandDeviceServiceInformation_Vtbl, 0x53d69b5b_c4ed_45f0_803a_d9417a6d9846); #[repr(C)] #[doc(hidden)] pub struct IMobileBroadbandDeviceServiceInformation_Vtbl { @@ -1191,16 +696,7 @@ pub struct IMobileBroadbandDeviceServiceInformation_Vtbl { pub IsDataReadSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub IsDataWriteSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMobileBroadbandDeviceServiceTriggerDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMobileBroadbandDeviceServiceTriggerDetails { - type Vtable = IMobileBroadbandDeviceServiceTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMobileBroadbandDeviceServiceTriggerDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4a055b70_b9ae_4458_9241_a6a5fbf18a0c); -} +::windows_core::imp::com_interface!(IMobileBroadbandDeviceServiceTriggerDetails, IMobileBroadbandDeviceServiceTriggerDetails_Vtbl, 0x4a055b70_b9ae_4458_9241_a6a5fbf18a0c); #[repr(C)] #[doc(hidden)] pub struct IMobileBroadbandDeviceServiceTriggerDetails_Vtbl { @@ -1212,32 +708,14 @@ pub struct IMobileBroadbandDeviceServiceTriggerDetails_Vtbl { #[cfg(not(feature = "Storage_Streams"))] ReceivedData: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMobileBroadbandDeviceServiceTriggerDetails2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMobileBroadbandDeviceServiceTriggerDetails2 { - type Vtable = IMobileBroadbandDeviceServiceTriggerDetails2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMobileBroadbandDeviceServiceTriggerDetails2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd83d5f16_336a_553f_94bb_0cd1a2ff0c81); -} +::windows_core::imp::com_interface!(IMobileBroadbandDeviceServiceTriggerDetails2, IMobileBroadbandDeviceServiceTriggerDetails2_Vtbl, 0xd83d5f16_336a_553f_94bb_0cd1a2ff0c81); #[repr(C)] #[doc(hidden)] pub struct IMobileBroadbandDeviceServiceTriggerDetails2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub EventId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMobileBroadbandModem(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMobileBroadbandModem { - type Vtable = IMobileBroadbandModem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMobileBroadbandModem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd0356912_e9f9_4f67_a03d_43189a316bf1); -} +::windows_core::imp::com_interface!(IMobileBroadbandModem, IMobileBroadbandModem_Vtbl, 0xd0356912_e9f9_4f67_a03d_43189a316bf1); #[repr(C)] #[doc(hidden)] pub struct IMobileBroadbandModem_Vtbl { @@ -1256,16 +734,7 @@ pub struct IMobileBroadbandModem_Vtbl { pub GetCurrentConfigurationAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CurrentNetwork: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMobileBroadbandModem2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMobileBroadbandModem2 { - type Vtable = IMobileBroadbandModem2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMobileBroadbandModem2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x12862b28_b9eb_4ee2_bbe3_711f53eea373); -} +::windows_core::imp::com_interface!(IMobileBroadbandModem2, IMobileBroadbandModem2_Vtbl, 0x12862b28_b9eb_4ee2_bbe3_711f53eea373); #[repr(C)] #[doc(hidden)] pub struct IMobileBroadbandModem2_Vtbl { @@ -1273,16 +742,7 @@ pub struct IMobileBroadbandModem2_Vtbl { pub GetIsPassthroughEnabledAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetIsPassthroughEnabledAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMobileBroadbandModem3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMobileBroadbandModem3 { - type Vtable = IMobileBroadbandModem3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMobileBroadbandModem3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe9fec6ea_2f34_4582_9102_c314d2a87eec); -} +::windows_core::imp::com_interface!(IMobileBroadbandModem3, IMobileBroadbandModem3_Vtbl, 0xe9fec6ea_2f34_4582_9102_c314d2a87eec); #[repr(C)] #[doc(hidden)] pub struct IMobileBroadbandModem3_Vtbl { @@ -1292,16 +752,7 @@ pub struct IMobileBroadbandModem3_Vtbl { pub IsInEmergencyCallModeChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveIsInEmergencyCallModeChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMobileBroadbandModem4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMobileBroadbandModem4 { - type Vtable = IMobileBroadbandModem4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMobileBroadbandModem4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4a0398c2_91be_412b_b569_586e9f0030d1); -} +::windows_core::imp::com_interface!(IMobileBroadbandModem4, IMobileBroadbandModem4_Vtbl, 0x4a0398c2_91be_412b_b569_586e9f0030d1); #[repr(C)] #[doc(hidden)] pub struct IMobileBroadbandModem4_Vtbl { @@ -1311,16 +762,7 @@ pub struct IMobileBroadbandModem4_Vtbl { pub SetIsPassthroughEnabledWithSlotIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool, slotindex: i32, result__: *mut MobileBroadbandModemStatus) -> ::windows_core::HRESULT, pub GetIsPassthroughEnabledWithSlotIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, slotindex: i32, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMobileBroadbandModemConfiguration(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMobileBroadbandModemConfiguration { - type Vtable = IMobileBroadbandModemConfiguration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMobileBroadbandModemConfiguration { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfce035a3_d6cd_4320_b982_be9d3ec7890f); -} +::windows_core::imp::com_interface!(IMobileBroadbandModemConfiguration, IMobileBroadbandModemConfiguration_Vtbl, 0xfce035a3_d6cd_4320_b982_be9d3ec7890f); #[repr(C)] #[doc(hidden)] pub struct IMobileBroadbandModemConfiguration_Vtbl { @@ -1329,32 +771,14 @@ pub struct IMobileBroadbandModemConfiguration_Vtbl { pub HomeProviderId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub HomeProviderName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMobileBroadbandModemConfiguration2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMobileBroadbandModemConfiguration2 { - type Vtable = IMobileBroadbandModemConfiguration2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMobileBroadbandModemConfiguration2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x320ff5c5_e460_42ae_aa51_69621e7a4477); -} +::windows_core::imp::com_interface!(IMobileBroadbandModemConfiguration2, IMobileBroadbandModemConfiguration2_Vtbl, 0x320ff5c5_e460_42ae_aa51_69621e7a4477); #[repr(C)] #[doc(hidden)] pub struct IMobileBroadbandModemConfiguration2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub SarManager: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMobileBroadbandModemIsolation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMobileBroadbandModemIsolation { - type Vtable = IMobileBroadbandModemIsolation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMobileBroadbandModemIsolation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb5618fec_e661_4330_9bb4_3480212ec354); -} +::windows_core::imp::com_interface!(IMobileBroadbandModemIsolation, IMobileBroadbandModemIsolation_Vtbl, 0xb5618fec_e661_4330_9bb4_3480212ec354); #[repr(C)] #[doc(hidden)] pub struct IMobileBroadbandModemIsolation_Vtbl { @@ -1364,32 +788,14 @@ pub struct IMobileBroadbandModemIsolation_Vtbl { pub ApplyConfigurationAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ClearConfigurationAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMobileBroadbandModemIsolationFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMobileBroadbandModemIsolationFactory { - type Vtable = IMobileBroadbandModemIsolationFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMobileBroadbandModemIsolationFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x21d7ec58_c2b1_4c2f_a030_72820a24ecd9); -} +::windows_core::imp::com_interface!(IMobileBroadbandModemIsolationFactory, IMobileBroadbandModemIsolationFactory_Vtbl, 0x21d7ec58_c2b1_4c2f_a030_72820a24ecd9); #[repr(C)] #[doc(hidden)] pub struct IMobileBroadbandModemIsolationFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, modemdeviceid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, rulegroupid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMobileBroadbandModemStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMobileBroadbandModemStatics { - type Vtable = IMobileBroadbandModemStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMobileBroadbandModemStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf99ed637_d6f1_4a78_8cbc_6421a65063c8); -} +::windows_core::imp::com_interface!(IMobileBroadbandModemStatics, IMobileBroadbandModemStatics_Vtbl, 0xf99ed637_d6f1_4a78_8cbc_6421a65063c8); #[repr(C)] #[doc(hidden)] pub struct IMobileBroadbandModemStatics_Vtbl { @@ -1398,16 +804,7 @@ pub struct IMobileBroadbandModemStatics_Vtbl { pub FromId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, deviceid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDefault: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMobileBroadbandNetwork(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMobileBroadbandNetwork { - type Vtable = IMobileBroadbandNetwork_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMobileBroadbandNetwork { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcb63928c_0309_4cb6_a8c1_6a5a3c8e1ff6); -} +::windows_core::imp::com_interface!(IMobileBroadbandNetwork, IMobileBroadbandNetwork_Vtbl, 0xcb63928c_0309_4cb6_a8c1_6a5a3c8e1ff6); #[repr(C)] #[doc(hidden)] pub struct IMobileBroadbandNetwork_Vtbl { @@ -1426,16 +823,7 @@ pub struct IMobileBroadbandNetwork_Vtbl { pub RegisteredProviderName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub ShowConnectionUI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMobileBroadbandNetwork2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMobileBroadbandNetwork2 { - type Vtable = IMobileBroadbandNetwork2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMobileBroadbandNetwork2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5a55db22_62f7_4bdd_ba1d_477441960ba0); -} +::windows_core::imp::com_interface!(IMobileBroadbandNetwork2, IMobileBroadbandNetwork2_Vtbl, 0x5a55db22_62f7_4bdd_ba1d_477441960ba0); #[repr(C)] #[doc(hidden)] pub struct IMobileBroadbandNetwork2_Vtbl { @@ -1446,32 +834,14 @@ pub struct IMobileBroadbandNetwork2_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] RegistrationUiccApps: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMobileBroadbandNetwork3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMobileBroadbandNetwork3 { - type Vtable = IMobileBroadbandNetwork3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMobileBroadbandNetwork3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x33670a8a_c7ef_444c_ab6c_df7ef7a390fe); -} +::windows_core::imp::com_interface!(IMobileBroadbandNetwork3, IMobileBroadbandNetwork3_Vtbl, 0x33670a8a_c7ef_444c_ab6c_df7ef7a390fe); #[repr(C)] #[doc(hidden)] pub struct IMobileBroadbandNetwork3_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetCellsInfoAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMobileBroadbandNetworkRegistrationStateChange(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMobileBroadbandNetworkRegistrationStateChange { - type Vtable = IMobileBroadbandNetworkRegistrationStateChange_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMobileBroadbandNetworkRegistrationStateChange { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbeaf94e1_960f_49b4_a08d_7d85e968c7ec); -} +::windows_core::imp::com_interface!(IMobileBroadbandNetworkRegistrationStateChange, IMobileBroadbandNetworkRegistrationStateChange_Vtbl, 0xbeaf94e1_960f_49b4_a08d_7d85e968c7ec); #[repr(C)] #[doc(hidden)] pub struct IMobileBroadbandNetworkRegistrationStateChange_Vtbl { @@ -1479,16 +849,7 @@ pub struct IMobileBroadbandNetworkRegistrationStateChange_Vtbl { pub DeviceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Network: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMobileBroadbandNetworkRegistrationStateChangeTriggerDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMobileBroadbandNetworkRegistrationStateChangeTriggerDetails { - type Vtable = IMobileBroadbandNetworkRegistrationStateChangeTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMobileBroadbandNetworkRegistrationStateChangeTriggerDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x89135cff_28b8_46aa_b137_1c4b0f21edfe); -} +::windows_core::imp::com_interface!(IMobileBroadbandNetworkRegistrationStateChangeTriggerDetails, IMobileBroadbandNetworkRegistrationStateChangeTriggerDetails_Vtbl, 0x89135cff_28b8_46aa_b137_1c4b0f21edfe); #[repr(C)] #[doc(hidden)] pub struct IMobileBroadbandNetworkRegistrationStateChangeTriggerDetails_Vtbl { @@ -1498,16 +859,7 @@ pub struct IMobileBroadbandNetworkRegistrationStateChangeTriggerDetails_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] NetworkRegistrationStateChanges: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMobileBroadbandPco(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMobileBroadbandPco { - type Vtable = IMobileBroadbandPco_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMobileBroadbandPco { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd4e4fcbe_e3a3_43c5_a87b_6c86d229d7fa); -} +::windows_core::imp::com_interface!(IMobileBroadbandPco, IMobileBroadbandPco_Vtbl, 0xd4e4fcbe_e3a3_43c5_a87b_6c86d229d7fa); #[repr(C)] #[doc(hidden)] pub struct IMobileBroadbandPco_Vtbl { @@ -1519,32 +871,14 @@ pub struct IMobileBroadbandPco_Vtbl { pub IsComplete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub DeviceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMobileBroadbandPcoDataChangeTriggerDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMobileBroadbandPcoDataChangeTriggerDetails { - type Vtable = IMobileBroadbandPcoDataChangeTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMobileBroadbandPcoDataChangeTriggerDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x263f5114_64e0_4493_909b_2d14a01962b1); -} +::windows_core::imp::com_interface!(IMobileBroadbandPcoDataChangeTriggerDetails, IMobileBroadbandPcoDataChangeTriggerDetails_Vtbl, 0x263f5114_64e0_4493_909b_2d14a01962b1); #[repr(C)] #[doc(hidden)] pub struct IMobileBroadbandPcoDataChangeTriggerDetails_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub UpdatedData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMobileBroadbandPin(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMobileBroadbandPin { - type Vtable = IMobileBroadbandPin_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMobileBroadbandPin { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe661d709_e779_45bf_8281_75323df9e321); -} +::windows_core::imp::com_interface!(IMobileBroadbandPin, IMobileBroadbandPin_Vtbl, 0xe661d709_e779_45bf_8281_75323df9e321); #[repr(C)] #[doc(hidden)] pub struct IMobileBroadbandPin_Vtbl { @@ -1562,16 +896,7 @@ pub struct IMobileBroadbandPin_Vtbl { pub ChangeAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, currentpin: ::std::mem::MaybeUninit<::windows_core::HSTRING>, newpin: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub UnblockAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinunblockkey: ::std::mem::MaybeUninit<::windows_core::HSTRING>, newpin: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMobileBroadbandPinLockStateChange(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMobileBroadbandPinLockStateChange { - type Vtable = IMobileBroadbandPinLockStateChange_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMobileBroadbandPinLockStateChange { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbe16673e_1f04_4f95_8b90_e7f559dde7e5); -} +::windows_core::imp::com_interface!(IMobileBroadbandPinLockStateChange, IMobileBroadbandPinLockStateChange_Vtbl, 0xbe16673e_1f04_4f95_8b90_e7f559dde7e5); #[repr(C)] #[doc(hidden)] pub struct IMobileBroadbandPinLockStateChange_Vtbl { @@ -1580,16 +905,7 @@ pub struct IMobileBroadbandPinLockStateChange_Vtbl { pub PinType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut MobileBroadbandPinType) -> ::windows_core::HRESULT, pub PinLockState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut MobileBroadbandPinLockState) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMobileBroadbandPinLockStateChangeTriggerDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMobileBroadbandPinLockStateChangeTriggerDetails { - type Vtable = IMobileBroadbandPinLockStateChangeTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMobileBroadbandPinLockStateChangeTriggerDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd338c091_3e91_4d38_9036_aee83a6e79ad); -} +::windows_core::imp::com_interface!(IMobileBroadbandPinLockStateChangeTriggerDetails, IMobileBroadbandPinLockStateChangeTriggerDetails_Vtbl, 0xd338c091_3e91_4d38_9036_aee83a6e79ad); #[repr(C)] #[doc(hidden)] pub struct IMobileBroadbandPinLockStateChangeTriggerDetails_Vtbl { @@ -1599,16 +915,7 @@ pub struct IMobileBroadbandPinLockStateChangeTriggerDetails_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] PinLockStateChanges: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMobileBroadbandPinManager(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMobileBroadbandPinManager { - type Vtable = IMobileBroadbandPinManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMobileBroadbandPinManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x83567edd_6e1f_4b9b_a413_2b1f50cc36df); -} +::windows_core::imp::com_interface!(IMobileBroadbandPinManager, IMobileBroadbandPinManager_Vtbl, 0x83567edd_6e1f_4b9b_a413_2b1f50cc36df); #[repr(C)] #[doc(hidden)] pub struct IMobileBroadbandPinManager_Vtbl { @@ -1619,16 +926,7 @@ pub struct IMobileBroadbandPinManager_Vtbl { SupportedPins: usize, pub GetPin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pintype: MobileBroadbandPinType, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMobileBroadbandPinOperationResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMobileBroadbandPinOperationResult { - type Vtable = IMobileBroadbandPinOperationResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMobileBroadbandPinOperationResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x11dddc32_31e7_49f5_b663_123d3bef0362); -} +::windows_core::imp::com_interface!(IMobileBroadbandPinOperationResult, IMobileBroadbandPinOperationResult_Vtbl, 0x11dddc32_31e7_49f5_b663_123d3bef0362); #[repr(C)] #[doc(hidden)] pub struct IMobileBroadbandPinOperationResult_Vtbl { @@ -1636,16 +934,7 @@ pub struct IMobileBroadbandPinOperationResult_Vtbl { pub IsSuccessful: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub AttemptsRemaining: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMobileBroadbandRadioStateChange(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMobileBroadbandRadioStateChange { - type Vtable = IMobileBroadbandRadioStateChange_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMobileBroadbandRadioStateChange { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb054a561_9833_4aed_9717_4348b21a24b3); -} +::windows_core::imp::com_interface!(IMobileBroadbandRadioStateChange, IMobileBroadbandRadioStateChange_Vtbl, 0xb054a561_9833_4aed_9717_4348b21a24b3); #[repr(C)] #[doc(hidden)] pub struct IMobileBroadbandRadioStateChange_Vtbl { @@ -1653,16 +942,7 @@ pub struct IMobileBroadbandRadioStateChange_Vtbl { pub DeviceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub RadioState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut MobileBroadbandRadioState) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMobileBroadbandRadioStateChangeTriggerDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMobileBroadbandRadioStateChangeTriggerDetails { - type Vtable = IMobileBroadbandRadioStateChangeTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMobileBroadbandRadioStateChangeTriggerDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x71301ace_093c_42c6_b0db_ad1f75a65445); -} +::windows_core::imp::com_interface!(IMobileBroadbandRadioStateChangeTriggerDetails, IMobileBroadbandRadioStateChangeTriggerDetails_Vtbl, 0x71301ace_093c_42c6_b0db_ad1f75a65445); #[repr(C)] #[doc(hidden)] pub struct IMobileBroadbandRadioStateChangeTriggerDetails_Vtbl { @@ -1672,16 +952,7 @@ pub struct IMobileBroadbandRadioStateChangeTriggerDetails_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] RadioStateChanges: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMobileBroadbandSarManager(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMobileBroadbandSarManager { - type Vtable = IMobileBroadbandSarManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMobileBroadbandSarManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe5b26833_967e_40c9_a485_19c0dd209e22); -} +::windows_core::imp::com_interface!(IMobileBroadbandSarManager, IMobileBroadbandSarManager_Vtbl, 0xe5b26833_967e_40c9_a485_19c0dd209e22); #[repr(C)] #[doc(hidden)] pub struct IMobileBroadbandSarManager_Vtbl { @@ -1708,16 +979,7 @@ pub struct IMobileBroadbandSarManager_Vtbl { pub StartTransmissionStateMonitoring: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub StopTransmissionStateMonitoring: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMobileBroadbandSlotInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMobileBroadbandSlotInfo { - type Vtable = IMobileBroadbandSlotInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMobileBroadbandSlotInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbd350b32_882e_542a_b17d_0bb1b49bae9e); -} +::windows_core::imp::com_interface!(IMobileBroadbandSlotInfo, IMobileBroadbandSlotInfo_Vtbl, 0xbd350b32_882e_542a_b17d_0bb1b49bae9e); #[repr(C)] #[doc(hidden)] pub struct IMobileBroadbandSlotInfo_Vtbl { @@ -1725,48 +987,21 @@ pub struct IMobileBroadbandSlotInfo_Vtbl { pub Index: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows_core::HRESULT, pub State: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut MobileBroadbandSlotState) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMobileBroadbandSlotInfo2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMobileBroadbandSlotInfo2 { - type Vtable = IMobileBroadbandSlotInfo2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMobileBroadbandSlotInfo2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x393cb039_ca44_524c_822d_83a3620f0efc); -} +::windows_core::imp::com_interface!(IMobileBroadbandSlotInfo2, IMobileBroadbandSlotInfo2_Vtbl, 0x393cb039_ca44_524c_822d_83a3620f0efc); #[repr(C)] #[doc(hidden)] pub struct IMobileBroadbandSlotInfo2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub IccId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMobileBroadbandSlotInfoChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMobileBroadbandSlotInfoChangedEventArgs { - type Vtable = IMobileBroadbandSlotInfoChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMobileBroadbandSlotInfoChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3158839f_950c_54ce_a48d_ba4529b48f0f); -} +::windows_core::imp::com_interface!(IMobileBroadbandSlotInfoChangedEventArgs, IMobileBroadbandSlotInfoChangedEventArgs_Vtbl, 0x3158839f_950c_54ce_a48d_ba4529b48f0f); #[repr(C)] #[doc(hidden)] pub struct IMobileBroadbandSlotInfoChangedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub SlotInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMobileBroadbandSlotManager(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMobileBroadbandSlotManager { - type Vtable = IMobileBroadbandSlotManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMobileBroadbandSlotManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeba07cd6_2019_5f81_a294_cc364a11d0b2); -} +::windows_core::imp::com_interface!(IMobileBroadbandSlotManager, IMobileBroadbandSlotManager_Vtbl, 0xeba07cd6_2019_5f81_a294_cc364a11d0b2); #[repr(C)] #[doc(hidden)] pub struct IMobileBroadbandSlotManager_Vtbl { @@ -1783,32 +1018,14 @@ pub struct IMobileBroadbandSlotManager_Vtbl { pub CurrentSlotIndexChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveCurrentSlotIndexChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMobileBroadbandTransmissionStateChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMobileBroadbandTransmissionStateChangedEventArgs { - type Vtable = IMobileBroadbandTransmissionStateChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMobileBroadbandTransmissionStateChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x612e3875_040a_4f99_a4f9_61d7c32da129); -} +::windows_core::imp::com_interface!(IMobileBroadbandTransmissionStateChangedEventArgs, IMobileBroadbandTransmissionStateChangedEventArgs_Vtbl, 0x612e3875_040a_4f99_a4f9_61d7c32da129); #[repr(C)] #[doc(hidden)] pub struct IMobileBroadbandTransmissionStateChangedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub IsTransmitting: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMobileBroadbandUicc(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMobileBroadbandUicc { - type Vtable = IMobileBroadbandUicc_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMobileBroadbandUicc { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe634f691_525a_4ce2_8fce_aa4162579154); -} +::windows_core::imp::com_interface!(IMobileBroadbandUicc, IMobileBroadbandUicc_Vtbl, 0xe634f691_525a_4ce2_8fce_aa4162579154); #[repr(C)] #[doc(hidden)] pub struct IMobileBroadbandUicc_Vtbl { @@ -1816,16 +1033,7 @@ pub struct IMobileBroadbandUicc_Vtbl { pub SimIccId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub GetUiccAppsAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMobileBroadbandUiccApp(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMobileBroadbandUiccApp { - type Vtable = IMobileBroadbandUiccApp_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMobileBroadbandUiccApp { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4d170556_98a1_43dd_b2ec_50c90cf248df); -} +::windows_core::imp::com_interface!(IMobileBroadbandUiccApp, IMobileBroadbandUiccApp_Vtbl, 0x4d170556_98a1_43dd_b2ec_50c90cf248df); #[repr(C)] #[doc(hidden)] pub struct IMobileBroadbandUiccApp_Vtbl { @@ -1844,16 +1052,7 @@ pub struct IMobileBroadbandUiccApp_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] ReadRecordAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMobileBroadbandUiccAppReadRecordResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMobileBroadbandUiccAppReadRecordResult { - type Vtable = IMobileBroadbandUiccAppReadRecordResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMobileBroadbandUiccAppReadRecordResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x64c95285_358e_47c5_8249_695f383b2bdb); -} +::windows_core::imp::com_interface!(IMobileBroadbandUiccAppReadRecordResult, IMobileBroadbandUiccAppReadRecordResult_Vtbl, 0x64c95285_358e_47c5_8249_695f383b2bdb); #[repr(C)] #[doc(hidden)] pub struct IMobileBroadbandUiccAppReadRecordResult_Vtbl { @@ -1864,16 +1063,7 @@ pub struct IMobileBroadbandUiccAppReadRecordResult_Vtbl { #[cfg(not(feature = "Storage_Streams"))] Data: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMobileBroadbandUiccAppRecordDetailsResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMobileBroadbandUiccAppRecordDetailsResult { - type Vtable = IMobileBroadbandUiccAppRecordDetailsResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMobileBroadbandUiccAppRecordDetailsResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd919682f_be14_4934_981d_2f57b9ed83e6); -} +::windows_core::imp::com_interface!(IMobileBroadbandUiccAppRecordDetailsResult, IMobileBroadbandUiccAppRecordDetailsResult_Vtbl, 0xd919682f_be14_4934_981d_2f57b9ed83e6); #[repr(C)] #[doc(hidden)] pub struct IMobileBroadbandUiccAppRecordDetailsResult_Vtbl { @@ -1885,16 +1075,7 @@ pub struct IMobileBroadbandUiccAppRecordDetailsResult_Vtbl { pub ReadAccessCondition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut UiccAccessCondition) -> ::windows_core::HRESULT, pub WriteAccessCondition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut UiccAccessCondition) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMobileBroadbandUiccAppsResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMobileBroadbandUiccAppsResult { - type Vtable = IMobileBroadbandUiccAppsResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMobileBroadbandUiccAppsResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x744930eb_8157_4a41_8494_6bf54c9b1d2b); -} +::windows_core::imp::com_interface!(IMobileBroadbandUiccAppsResult, IMobileBroadbandUiccAppsResult_Vtbl, 0x744930eb_8157_4a41_8494_6bf54c9b1d2b); #[repr(C)] #[doc(hidden)] pub struct IMobileBroadbandUiccAppsResult_Vtbl { @@ -1905,32 +1086,14 @@ pub struct IMobileBroadbandUiccAppsResult_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] UiccApps: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetworkOperatorDataUsageTriggerDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INetworkOperatorDataUsageTriggerDetails { - type Vtable = INetworkOperatorDataUsageTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INetworkOperatorDataUsageTriggerDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x50e3126d_a465_4eeb_9317_28a167630cea); -} +::windows_core::imp::com_interface!(INetworkOperatorDataUsageTriggerDetails, INetworkOperatorDataUsageTriggerDetails_Vtbl, 0x50e3126d_a465_4eeb_9317_28a167630cea); #[repr(C)] #[doc(hidden)] pub struct INetworkOperatorDataUsageTriggerDetails_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub NotificationKind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut NetworkOperatorDataUsageNotificationKind) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetworkOperatorNotificationEventDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INetworkOperatorNotificationEventDetails { - type Vtable = INetworkOperatorNotificationEventDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INetworkOperatorNotificationEventDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbc68a9d1_82e1_4488_9f2c_1276c2468fac); -} +::windows_core::imp::com_interface!(INetworkOperatorNotificationEventDetails, INetworkOperatorNotificationEventDetails_Vtbl, 0xbc68a9d1_82e1_4488_9f2c_1276c2468fac); #[repr(C)] #[doc(hidden)] pub struct INetworkOperatorNotificationEventDetails_Vtbl { @@ -1945,16 +1108,7 @@ pub struct INetworkOperatorNotificationEventDetails_Vtbl { #[cfg(not(feature = "Devices_Sms"))] SmsMessage: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetworkOperatorTetheringAccessPointConfiguration(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INetworkOperatorTetheringAccessPointConfiguration { - type Vtable = INetworkOperatorTetheringAccessPointConfiguration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INetworkOperatorTetheringAccessPointConfiguration { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0bcc0284_412e_403d_acc6_b757e34774a4); -} +::windows_core::imp::com_interface!(INetworkOperatorTetheringAccessPointConfiguration, INetworkOperatorTetheringAccessPointConfiguration_Vtbl, 0x0bcc0284_412e_403d_acc6_b757e34774a4); #[repr(C)] #[doc(hidden)] pub struct INetworkOperatorTetheringAccessPointConfiguration_Vtbl { @@ -1964,16 +1118,7 @@ pub struct INetworkOperatorTetheringAccessPointConfiguration_Vtbl { pub Passphrase: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetPassphrase: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetworkOperatorTetheringAccessPointConfiguration2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INetworkOperatorTetheringAccessPointConfiguration2 { - type Vtable = INetworkOperatorTetheringAccessPointConfiguration2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INetworkOperatorTetheringAccessPointConfiguration2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb1809142_7238_59a0_928b_74ab46fd64b6); -} +::windows_core::imp::com_interface!(INetworkOperatorTetheringAccessPointConfiguration2, INetworkOperatorTetheringAccessPointConfiguration2_Vtbl, 0xb1809142_7238_59a0_928b_74ab46fd64b6); #[repr(C)] #[doc(hidden)] pub struct INetworkOperatorTetheringAccessPointConfiguration2_Vtbl { @@ -1983,16 +1128,7 @@ pub struct INetworkOperatorTetheringAccessPointConfiguration2_Vtbl { pub Band: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut TetheringWiFiBand) -> ::windows_core::HRESULT, pub SetBand: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: TetheringWiFiBand) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetworkOperatorTetheringClient(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INetworkOperatorTetheringClient { - type Vtable = INetworkOperatorTetheringClient_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INetworkOperatorTetheringClient { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x709d254c_595f_4847_bb30_646935542918); -} +::windows_core::imp::com_interface!(INetworkOperatorTetheringClient, INetworkOperatorTetheringClient_Vtbl, 0x709d254c_595f_4847_bb30_646935542918); #[repr(C)] #[doc(hidden)] pub struct INetworkOperatorTetheringClient_Vtbl { @@ -2003,16 +1139,7 @@ pub struct INetworkOperatorTetheringClient_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] HostNames: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetworkOperatorTetheringClientManager(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INetworkOperatorTetheringClientManager { - type Vtable = INetworkOperatorTetheringClientManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INetworkOperatorTetheringClientManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x91b14016_8dca_4225_bbed_eef8b8d718d7); -} +::windows_core::imp::com_interface!(INetworkOperatorTetheringClientManager, INetworkOperatorTetheringClientManager_Vtbl, 0x91b14016_8dca_4225_bbed_eef8b8d718d7); #[repr(C)] #[doc(hidden)] pub struct INetworkOperatorTetheringClientManager_Vtbl { @@ -2022,32 +1149,14 @@ pub struct INetworkOperatorTetheringClientManager_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetTetheringClients: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetworkOperatorTetheringEntitlementCheck(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INetworkOperatorTetheringEntitlementCheck { - type Vtable = INetworkOperatorTetheringEntitlementCheck_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INetworkOperatorTetheringEntitlementCheck { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0108916d_9e9a_4af6_8da3_60493b19c204); -} +::windows_core::imp::com_interface!(INetworkOperatorTetheringEntitlementCheck, INetworkOperatorTetheringEntitlementCheck_Vtbl, 0x0108916d_9e9a_4af6_8da3_60493b19c204); #[repr(C)] #[doc(hidden)] pub struct INetworkOperatorTetheringEntitlementCheck_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub AuthorizeTethering: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, allow: bool, entitlementfailurereason: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetworkOperatorTetheringManager(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INetworkOperatorTetheringManager { - type Vtable = INetworkOperatorTetheringManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INetworkOperatorTetheringManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd45a8da0_0e86_4d98_8ba4_dd70d4b764d3); -} +::windows_core::imp::com_interface!(INetworkOperatorTetheringManager, INetworkOperatorTetheringManager_Vtbl, 0xd45a8da0_0e86_4d98_8ba4_dd70d4b764d3); #[repr(C)] #[doc(hidden)] pub struct INetworkOperatorTetheringManager_Vtbl { @@ -2060,16 +1169,7 @@ pub struct INetworkOperatorTetheringManager_Vtbl { pub StartTetheringAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub StopTetheringAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetworkOperatorTetheringManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INetworkOperatorTetheringManagerStatics { - type Vtable = INetworkOperatorTetheringManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INetworkOperatorTetheringManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3ebcbacc_f8c3_405c_9964_70a1eeabe194); -} +::windows_core::imp::com_interface!(INetworkOperatorTetheringManagerStatics, INetworkOperatorTetheringManagerStatics_Vtbl, 0x3ebcbacc_f8c3_405c_9964_70a1eeabe194); #[repr(C)] #[doc(hidden)] pub struct INetworkOperatorTetheringManagerStatics_Vtbl { @@ -2077,16 +1177,7 @@ pub struct INetworkOperatorTetheringManagerStatics_Vtbl { pub GetTetheringCapability: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, networkaccountid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut TetheringCapability) -> ::windows_core::HRESULT, pub CreateFromNetworkAccountId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, networkaccountid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetworkOperatorTetheringManagerStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INetworkOperatorTetheringManagerStatics2 { - type Vtable = INetworkOperatorTetheringManagerStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INetworkOperatorTetheringManagerStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5b235412_35f0_49e7_9b08_16d278fbaa42); -} +::windows_core::imp::com_interface!(INetworkOperatorTetheringManagerStatics2, INetworkOperatorTetheringManagerStatics2_Vtbl, 0x5b235412_35f0_49e7_9b08_16d278fbaa42); #[repr(C)] #[doc(hidden)] pub struct INetworkOperatorTetheringManagerStatics2_Vtbl { @@ -2100,16 +1191,7 @@ pub struct INetworkOperatorTetheringManagerStatics2_Vtbl { #[cfg(not(feature = "Networking_Connectivity"))] CreateFromConnectionProfile: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetworkOperatorTetheringManagerStatics3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INetworkOperatorTetheringManagerStatics3 { - type Vtable = INetworkOperatorTetheringManagerStatics3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INetworkOperatorTetheringManagerStatics3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8fdaadb6_4af9_4f21_9b58_d53e9f24231e); -} +::windows_core::imp::com_interface!(INetworkOperatorTetheringManagerStatics3, INetworkOperatorTetheringManagerStatics3_Vtbl, 0x8fdaadb6_4af9_4f21_9b58_d53e9f24231e); #[repr(C)] #[doc(hidden)] pub struct INetworkOperatorTetheringManagerStatics3_Vtbl { @@ -2119,16 +1201,7 @@ pub struct INetworkOperatorTetheringManagerStatics3_Vtbl { #[cfg(not(feature = "Networking_Connectivity"))] CreateFromConnectionProfileWithTargetAdapter: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetworkOperatorTetheringManagerStatics4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INetworkOperatorTetheringManagerStatics4 { - type Vtable = INetworkOperatorTetheringManagerStatics4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INetworkOperatorTetheringManagerStatics4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb3b9f9d0_ebff_46a4_a847_d663d8b0977e); -} +::windows_core::imp::com_interface!(INetworkOperatorTetheringManagerStatics4, INetworkOperatorTetheringManagerStatics4_Vtbl, 0xb3b9f9d0_ebff_46a4_a847_d663d8b0977e); #[repr(C)] #[doc(hidden)] pub struct INetworkOperatorTetheringManagerStatics4_Vtbl { @@ -2139,16 +1212,7 @@ pub struct INetworkOperatorTetheringManagerStatics4_Vtbl { pub DisableNoConnectionsTimeout: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub DisableNoConnectionsTimeoutAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetworkOperatorTetheringOperationResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INetworkOperatorTetheringOperationResult { - type Vtable = INetworkOperatorTetheringOperationResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INetworkOperatorTetheringOperationResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xebd203a1_01ba_476d_b4b3_bf3d12c8f80c); -} +::windows_core::imp::com_interface!(INetworkOperatorTetheringOperationResult, INetworkOperatorTetheringOperationResult_Vtbl, 0xebd203a1_01ba_476d_b4b3_bf3d12c8f80c); #[repr(C)] #[doc(hidden)] pub struct INetworkOperatorTetheringOperationResult_Vtbl { @@ -2156,16 +1220,7 @@ pub struct INetworkOperatorTetheringOperationResult_Vtbl { pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut TetheringOperationStatus) -> ::windows_core::HRESULT, pub AdditionalErrorMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProvisionFromXmlDocumentResults(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProvisionFromXmlDocumentResults { - type Vtable = IProvisionFromXmlDocumentResults_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProvisionFromXmlDocumentResults { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x217700e0_8203_11df_adb9_f4ce462d9137); -} +::windows_core::imp::com_interface!(IProvisionFromXmlDocumentResults, IProvisionFromXmlDocumentResults_Vtbl, 0x217700e0_8203_11df_adb9_f4ce462d9137); #[repr(C)] #[doc(hidden)] pub struct IProvisionFromXmlDocumentResults_Vtbl { @@ -2173,16 +1228,7 @@ pub struct IProvisionFromXmlDocumentResults_Vtbl { pub AllElementsProvisioned: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub ProvisionResultsXml: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProvisionedProfile(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProvisionedProfile { - type Vtable = IProvisionedProfile_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProvisionedProfile { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x217700e0_8202_11df_adb9_f4ce462d9137); -} +::windows_core::imp::com_interface!(IProvisionedProfile, IProvisionedProfile_Vtbl, 0x217700e0_8202_11df_adb9_f4ce462d9137); #[repr(C)] #[doc(hidden)] pub struct IProvisionedProfile_Vtbl { @@ -2193,16 +1239,7 @@ pub struct IProvisionedProfile_Vtbl { UpdateCost: usize, pub UpdateUsage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ProfileUsage) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProvisioningAgent(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProvisioningAgent { - type Vtable = IProvisioningAgent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProvisioningAgent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x217700e0_8201_11df_adb9_f4ce462d9137); -} +::windows_core::imp::com_interface!(IProvisioningAgent, IProvisioningAgent_Vtbl, 0x217700e0_8201_11df_adb9_f4ce462d9137); #[repr(C)] #[doc(hidden)] pub struct IProvisioningAgent_Vtbl { @@ -2210,32 +1247,14 @@ pub struct IProvisioningAgent_Vtbl { pub ProvisionFromXmlDocumentAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, provisioningxmldocument: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetProvisionedProfile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mediatype: ProfileMediaType, profilename: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProvisioningAgentStaticMethods(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProvisioningAgentStaticMethods { - type Vtable = IProvisioningAgentStaticMethods_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProvisioningAgentStaticMethods { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x217700e0_8101_11df_adb9_f4ce462d9137); -} +::windows_core::imp::com_interface!(IProvisioningAgentStaticMethods, IProvisioningAgentStaticMethods_Vtbl, 0x217700e0_8101_11df_adb9_f4ce462d9137); #[repr(C)] #[doc(hidden)] pub struct IProvisioningAgentStaticMethods_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateFromNetworkAccountId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, networkaccountid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITetheringEntitlementCheckTriggerDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITetheringEntitlementCheckTriggerDetails { - type Vtable = ITetheringEntitlementCheckTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITetheringEntitlementCheckTriggerDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x03c65e9d_5926_41f3_a94e_b50926fc421b); -} +::windows_core::imp::com_interface!(ITetheringEntitlementCheckTriggerDetails, ITetheringEntitlementCheckTriggerDetails_Vtbl, 0x03c65e9d_5926_41f3_a94e_b50926fc421b); #[repr(C)] #[doc(hidden)] pub struct ITetheringEntitlementCheckTriggerDetails_Vtbl { @@ -2244,16 +1263,7 @@ pub struct ITetheringEntitlementCheckTriggerDetails_Vtbl { pub AllowTethering: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub DenyTethering: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, entitlementfailurereason: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUssdMessage(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUssdMessage { - type Vtable = IUssdMessage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUssdMessage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2f9acf82_2004_4d5d_bf81_2aba1b4be4a8); -} +::windows_core::imp::com_interface!(IUssdMessage, IUssdMessage_Vtbl, 0x2f9acf82_2004_4d5d_bf81_2aba1b4be4a8); #[repr(C)] #[doc(hidden)] pub struct IUssdMessage_Vtbl { @@ -2265,32 +1275,14 @@ pub struct IUssdMessage_Vtbl { pub PayloadAsText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetPayloadAsText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUssdMessageFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUssdMessageFactory { - type Vtable = IUssdMessageFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUssdMessageFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2f9acf82_1003_4d5d_bf81_2aba1b4be4a8); -} +::windows_core::imp::com_interface!(IUssdMessageFactory, IUssdMessageFactory_Vtbl, 0x2f9acf82_1003_4d5d_bf81_2aba1b4be4a8); #[repr(C)] #[doc(hidden)] pub struct IUssdMessageFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, messagetext: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUssdReply(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUssdReply { - type Vtable = IUssdReply_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUssdReply { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2f9acf82_2005_4d5d_bf81_2aba1b4be4a8); -} +::windows_core::imp::com_interface!(IUssdReply, IUssdReply_Vtbl, 0x2f9acf82_2005_4d5d_bf81_2aba1b4be4a8); #[repr(C)] #[doc(hidden)] pub struct IUssdReply_Vtbl { @@ -2298,16 +1290,7 @@ pub struct IUssdReply_Vtbl { pub ResultCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut UssdResultCode) -> ::windows_core::HRESULT, pub Message: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUssdSession(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUssdSession { - type Vtable = IUssdSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUssdSession { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2f9acf82_2002_4d5d_bf81_2aba1b4be4a8); -} +::windows_core::imp::com_interface!(IUssdSession, IUssdSession_Vtbl, 0x2f9acf82_2002_4d5d_bf81_2aba1b4be4a8); #[repr(C)] #[doc(hidden)] pub struct IUssdSession_Vtbl { @@ -2315,16 +1298,7 @@ pub struct IUssdSession_Vtbl { pub SendMessageAndGetReplyAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, message: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Close: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUssdSessionStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUssdSessionStatics { - type Vtable = IUssdSessionStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUssdSessionStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2f9acf82_1001_4d5d_bf81_2aba1b4be4a8); -} +::windows_core::imp::com_interface!(IUssdSessionStatics, IUssdSessionStatics_Vtbl, 0x2f9acf82_1001_4d5d_bf81_2aba1b4be4a8); #[repr(C)] #[doc(hidden)] pub struct IUssdSessionStatics_Vtbl { @@ -2335,6 +1309,7 @@ pub struct IUssdSessionStatics_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ESim(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ESim, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ESim { pub fn AvailableMemoryInBytes(&self) -> ::windows_core::Result> { let this = self; @@ -2423,35 +1398,35 @@ impl ESim { unsafe { (::windows_core::Interface::vtable(this).RemoveProfileChanged)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn Discover(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Discover)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn DiscoverWithServerAddressAndMatchingId(&self, serveraddress: &::windows_core::HSTRING, matchingid: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DiscoverWithServerAddressAndMatchingId)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(serveraddress), ::core::mem::transmute_copy(matchingid), &mut result__).from_abi(result__) } } pub fn DiscoverAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DiscoverAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn DiscoverWithServerAddressAndMatchingIdAsync(&self, serveraddress: &::windows_core::HSTRING, matchingid: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DiscoverWithServerAddressAndMatchingIdAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(serveraddress), ::core::mem::transmute_copy(matchingid), &mut result__).from_abi(result__) } } pub fn SlotIndex(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SlotIndex)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2463,19 +1438,17 @@ impl ::windows_core::RuntimeType for ESim { } unsafe impl ::windows_core::Interface for ESim { type Vtable = IESim_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ESim { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ESim { const NAME: &'static str = "Windows.Networking.NetworkOperators.ESim"; } -::windows_core::imp::interface_hierarchy!(ESim, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ESim {} unsafe impl ::core::marker::Sync for ESim {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ESimAddedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ESimAddedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ESimAddedEventArgs { pub fn ESim(&self) -> ::windows_core::Result { let this = self; @@ -2490,19 +1463,17 @@ impl ::windows_core::RuntimeType for ESimAddedEventArgs { } unsafe impl ::windows_core::Interface for ESimAddedEventArgs { type Vtable = IESimAddedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ESimAddedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ESimAddedEventArgs { const NAME: &'static str = "Windows.Networking.NetworkOperators.ESimAddedEventArgs"; } -::windows_core::imp::interface_hierarchy!(ESimAddedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ESimAddedEventArgs {} unsafe impl ::core::marker::Sync for ESimAddedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ESimDiscoverEvent(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ESimDiscoverEvent, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ESimDiscoverEvent { pub fn MatchingId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -2524,19 +1495,17 @@ impl ::windows_core::RuntimeType for ESimDiscoverEvent { } unsafe impl ::windows_core::Interface for ESimDiscoverEvent { type Vtable = IESimDiscoverEvent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ESimDiscoverEvent { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ESimDiscoverEvent { const NAME: &'static str = "Windows.Networking.NetworkOperators.ESimDiscoverEvent"; } -::windows_core::imp::interface_hierarchy!(ESimDiscoverEvent, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ESimDiscoverEvent {} unsafe impl ::core::marker::Sync for ESimDiscoverEvent {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ESimDiscoverResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ESimDiscoverResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ESimDiscoverResult { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -2574,19 +1543,17 @@ impl ::windows_core::RuntimeType for ESimDiscoverResult { } unsafe impl ::windows_core::Interface for ESimDiscoverResult { type Vtable = IESimDiscoverResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ESimDiscoverResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ESimDiscoverResult { const NAME: &'static str = "Windows.Networking.NetworkOperators.ESimDiscoverResult"; } -::windows_core::imp::interface_hierarchy!(ESimDiscoverResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ESimDiscoverResult {} unsafe impl ::core::marker::Sync for ESimDiscoverResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ESimDownloadProfileMetadataResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ESimDownloadProfileMetadataResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ESimDownloadProfileMetadataResult { pub fn Result(&self) -> ::windows_core::Result { let this = self; @@ -2608,14 +1575,11 @@ impl ::windows_core::RuntimeType for ESimDownloadProfileMetadataResult { } unsafe impl ::windows_core::Interface for ESimDownloadProfileMetadataResult { type Vtable = IESimDownloadProfileMetadataResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ESimDownloadProfileMetadataResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ESimDownloadProfileMetadataResult { const NAME: &'static str = "Windows.Networking.NetworkOperators.ESimDownloadProfileMetadataResult"; } -::windows_core::imp::interface_hierarchy!(ESimDownloadProfileMetadataResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ESimDownloadProfileMetadataResult {} unsafe impl ::core::marker::Sync for ESimDownloadProfileMetadataResult {} pub struct ESimManager; @@ -2656,6 +1620,7 @@ impl ::windows_core::RuntimeName for ESimManager { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ESimOperationResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ESimOperationResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ESimOperationResult { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -2670,19 +1635,17 @@ impl ::windows_core::RuntimeType for ESimOperationResult { } unsafe impl ::windows_core::Interface for ESimOperationResult { type Vtable = IESimOperationResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ESimOperationResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ESimOperationResult { const NAME: &'static str = "Windows.Networking.NetworkOperators.ESimOperationResult"; } -::windows_core::imp::interface_hierarchy!(ESimOperationResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ESimOperationResult {} unsafe impl ::core::marker::Sync for ESimOperationResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ESimPolicy(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ESimPolicy, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ESimPolicy { pub fn ShouldEnableManagingUi(&self) -> ::windows_core::Result { let this = self; @@ -2697,19 +1660,17 @@ impl ::windows_core::RuntimeType for ESimPolicy { } unsafe impl ::windows_core::Interface for ESimPolicy { type Vtable = IESimPolicy_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ESimPolicy { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ESimPolicy { const NAME: &'static str = "Windows.Networking.NetworkOperators.ESimPolicy"; } -::windows_core::imp::interface_hierarchy!(ESimPolicy, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ESimPolicy {} unsafe impl ::core::marker::Sync for ESimPolicy {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ESimProfile(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ESimProfile, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ESimProfile { pub fn Class(&self) -> ::windows_core::Result { let this = self; @@ -2796,19 +1757,17 @@ impl ::windows_core::RuntimeType for ESimProfile { } unsafe impl ::windows_core::Interface for ESimProfile { type Vtable = IESimProfile_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ESimProfile { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ESimProfile { const NAME: &'static str = "Windows.Networking.NetworkOperators.ESimProfile"; } -::windows_core::imp::interface_hierarchy!(ESimProfile, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ESimProfile {} unsafe impl ::core::marker::Sync for ESimProfile {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ESimProfileMetadata(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ESimProfileMetadata, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ESimProfileMetadata { pub fn IsConfirmationCodeRequired(&self) -> ::windows_core::Result { let this = self; @@ -2909,19 +1868,17 @@ impl ::windows_core::RuntimeType for ESimProfileMetadata { } unsafe impl ::windows_core::Interface for ESimProfileMetadata { type Vtable = IESimProfileMetadata_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ESimProfileMetadata { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ESimProfileMetadata { const NAME: &'static str = "Windows.Networking.NetworkOperators.ESimProfileMetadata"; } -::windows_core::imp::interface_hierarchy!(ESimProfileMetadata, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ESimProfileMetadata {} unsafe impl ::core::marker::Sync for ESimProfileMetadata {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ESimProfilePolicy(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ESimProfilePolicy, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ESimProfilePolicy { pub fn CanDelete(&self) -> ::windows_core::Result { let this = self; @@ -2950,19 +1907,17 @@ impl ::windows_core::RuntimeType for ESimProfilePolicy { } unsafe impl ::windows_core::Interface for ESimProfilePolicy { type Vtable = IESimProfilePolicy_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ESimProfilePolicy { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ESimProfilePolicy { const NAME: &'static str = "Windows.Networking.NetworkOperators.ESimProfilePolicy"; } -::windows_core::imp::interface_hierarchy!(ESimProfilePolicy, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ESimProfilePolicy {} unsafe impl ::core::marker::Sync for ESimProfilePolicy {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ESimRemovedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ESimRemovedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ESimRemovedEventArgs { pub fn ESim(&self) -> ::windows_core::Result { let this = self; @@ -2977,19 +1932,17 @@ impl ::windows_core::RuntimeType for ESimRemovedEventArgs { } unsafe impl ::windows_core::Interface for ESimRemovedEventArgs { type Vtable = IESimRemovedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ESimRemovedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ESimRemovedEventArgs { const NAME: &'static str = "Windows.Networking.NetworkOperators.ESimRemovedEventArgs"; } -::windows_core::imp::interface_hierarchy!(ESimRemovedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ESimRemovedEventArgs {} unsafe impl ::core::marker::Sync for ESimRemovedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ESimServiceInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ESimServiceInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ESimServiceInfo { pub fn AuthenticationPreference(&self) -> ::windows_core::Result { let this = self; @@ -3011,19 +1964,17 @@ impl ::windows_core::RuntimeType for ESimServiceInfo { } unsafe impl ::windows_core::Interface for ESimServiceInfo { type Vtable = IESimServiceInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ESimServiceInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ESimServiceInfo { const NAME: &'static str = "Windows.Networking.NetworkOperators.ESimServiceInfo"; } -::windows_core::imp::interface_hierarchy!(ESimServiceInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ESimServiceInfo {} unsafe impl ::core::marker::Sync for ESimServiceInfo {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ESimUpdatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ESimUpdatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ESimUpdatedEventArgs { pub fn ESim(&self) -> ::windows_core::Result { let this = self; @@ -3038,19 +1989,17 @@ impl ::windows_core::RuntimeType for ESimUpdatedEventArgs { } unsafe impl ::windows_core::Interface for ESimUpdatedEventArgs { type Vtable = IESimUpdatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ESimUpdatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ESimUpdatedEventArgs { const NAME: &'static str = "Windows.Networking.NetworkOperators.ESimUpdatedEventArgs"; } -::windows_core::imp::interface_hierarchy!(ESimUpdatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ESimUpdatedEventArgs {} unsafe impl ::core::marker::Sync for ESimUpdatedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ESimWatcher(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ESimWatcher, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ESimWatcher { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -3143,14 +2092,11 @@ impl ::windows_core::RuntimeType for ESimWatcher { } unsafe impl ::windows_core::Interface for ESimWatcher { type Vtable = IESimWatcher_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ESimWatcher { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ESimWatcher { const NAME: &'static str = "Windows.Networking.NetworkOperators.ESimWatcher"; } -::windows_core::imp::interface_hierarchy!(ESimWatcher, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ESimWatcher {} unsafe impl ::core::marker::Sync for ESimWatcher {} pub struct FdnAccessManager; @@ -3173,6 +2119,7 @@ impl ::windows_core::RuntimeName for FdnAccessManager { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HotspotAuthenticationContext(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HotspotAuthenticationContext, ::windows_core::IUnknown, ::windows_core::IInspectable); impl HotspotAuthenticationContext { pub fn WirelessNetworkId(&self) -> ::windows_core::Result<::windows_core::Array> { let this = self; @@ -3230,7 +2177,7 @@ impl HotspotAuthenticationContext { unsafe { (::windows_core::Interface::vtable(this).TriggerAttentionRequired)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(packagerelativeapplicationid), ::core::mem::transmute_copy(applicationparameters)).ok() } } pub fn IssueCredentialsAsync(&self, username: &::windows_core::HSTRING, password: &::windows_core::HSTRING, extraparameters: &::windows_core::HSTRING, markasmanualconnectonfailure: bool) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IssueCredentialsAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(username), ::core::mem::transmute_copy(password), ::core::mem::transmute_copy(extraparameters), markasmanualconnectonfailure, &mut result__).from_abi(result__) @@ -3253,17 +2200,15 @@ impl ::windows_core::RuntimeType for HotspotAuthenticationContext { } unsafe impl ::windows_core::Interface for HotspotAuthenticationContext { type Vtable = IHotspotAuthenticationContext_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HotspotAuthenticationContext { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HotspotAuthenticationContext { const NAME: &'static str = "Windows.Networking.NetworkOperators.HotspotAuthenticationContext"; } -::windows_core::imp::interface_hierarchy!(HotspotAuthenticationContext, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HotspotAuthenticationEventDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HotspotAuthenticationEventDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl HotspotAuthenticationEventDetails { pub fn EventToken(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -3278,17 +2223,15 @@ impl ::windows_core::RuntimeType for HotspotAuthenticationEventDetails { } unsafe impl ::windows_core::Interface for HotspotAuthenticationEventDetails { type Vtable = IHotspotAuthenticationEventDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HotspotAuthenticationEventDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HotspotAuthenticationEventDetails { const NAME: &'static str = "Windows.Networking.NetworkOperators.HotspotAuthenticationEventDetails"; } -::windows_core::imp::interface_hierarchy!(HotspotAuthenticationEventDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HotspotCredentialsAuthenticationResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HotspotCredentialsAuthenticationResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl HotspotCredentialsAuthenticationResult { pub fn HasNetworkErrorOccurred(&self) -> ::windows_core::Result { let this = self; @@ -3326,14 +2269,11 @@ impl ::windows_core::RuntimeType for HotspotCredentialsAuthenticationResult { } unsafe impl ::windows_core::Interface for HotspotCredentialsAuthenticationResult { type Vtable = IHotspotCredentialsAuthenticationResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HotspotCredentialsAuthenticationResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HotspotCredentialsAuthenticationResult { const NAME: &'static str = "Windows.Networking.NetworkOperators.HotspotCredentialsAuthenticationResult"; } -::windows_core::imp::interface_hierarchy!(HotspotCredentialsAuthenticationResult, ::windows_core::IUnknown, ::windows_core::IInspectable); pub struct KnownCSimFilePaths; impl KnownCSimFilePaths { #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -3501,6 +2441,7 @@ impl ::windows_core::RuntimeName for KnownUSimFilePaths { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MobileBroadbandAccount(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MobileBroadbandAccount, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MobileBroadbandAccount { pub fn NetworkAccountId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -3540,14 +2481,14 @@ impl MobileBroadbandAccount { #[doc = "Required features: `\"Foundation_Collections\"`, `\"Networking_Connectivity\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Networking_Connectivity"))] pub fn GetConnectionProfiles(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetConnectionProfiles)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn AccountExperienceUrl(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AccountExperienceUrl)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3578,17 +2519,15 @@ impl ::windows_core::RuntimeType for MobileBroadbandAccount { } unsafe impl ::windows_core::Interface for MobileBroadbandAccount { type Vtable = IMobileBroadbandAccount_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MobileBroadbandAccount { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MobileBroadbandAccount { const NAME: &'static str = "Windows.Networking.NetworkOperators.MobileBroadbandAccount"; } -::windows_core::imp::interface_hierarchy!(MobileBroadbandAccount, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MobileBroadbandAccountEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MobileBroadbandAccountEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MobileBroadbandAccountEventArgs { pub fn NetworkAccountId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -3603,17 +2542,15 @@ impl ::windows_core::RuntimeType for MobileBroadbandAccountEventArgs { } unsafe impl ::windows_core::Interface for MobileBroadbandAccountEventArgs { type Vtable = IMobileBroadbandAccountEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MobileBroadbandAccountEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MobileBroadbandAccountEventArgs { const NAME: &'static str = "Windows.Networking.NetworkOperators.MobileBroadbandAccountEventArgs"; } -::windows_core::imp::interface_hierarchy!(MobileBroadbandAccountEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MobileBroadbandAccountUpdatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MobileBroadbandAccountUpdatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MobileBroadbandAccountUpdatedEventArgs { pub fn NetworkAccountId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -3642,17 +2579,15 @@ impl ::windows_core::RuntimeType for MobileBroadbandAccountUpdatedEventArgs { } unsafe impl ::windows_core::Interface for MobileBroadbandAccountUpdatedEventArgs { type Vtable = IMobileBroadbandAccountUpdatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MobileBroadbandAccountUpdatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MobileBroadbandAccountUpdatedEventArgs { const NAME: &'static str = "Windows.Networking.NetworkOperators.MobileBroadbandAccountUpdatedEventArgs"; } -::windows_core::imp::interface_hierarchy!(MobileBroadbandAccountUpdatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MobileBroadbandAccountWatcher(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MobileBroadbandAccountWatcher, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MobileBroadbandAccountWatcher { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -3752,17 +2687,15 @@ impl ::windows_core::RuntimeType for MobileBroadbandAccountWatcher { } unsafe impl ::windows_core::Interface for MobileBroadbandAccountWatcher { type Vtable = IMobileBroadbandAccountWatcher_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MobileBroadbandAccountWatcher { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MobileBroadbandAccountWatcher { const NAME: &'static str = "Windows.Networking.NetworkOperators.MobileBroadbandAccountWatcher"; } -::windows_core::imp::interface_hierarchy!(MobileBroadbandAccountWatcher, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MobileBroadbandAntennaSar(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MobileBroadbandAntennaSar, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MobileBroadbandAntennaSar { pub fn AntennaIndex(&self) -> ::windows_core::Result { let this = self; @@ -3795,19 +2728,17 @@ impl ::windows_core::RuntimeType for MobileBroadbandAntennaSar { } unsafe impl ::windows_core::Interface for MobileBroadbandAntennaSar { type Vtable = IMobileBroadbandAntennaSar_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MobileBroadbandAntennaSar { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MobileBroadbandAntennaSar { const NAME: &'static str = "Windows.Networking.NetworkOperators.MobileBroadbandAntennaSar"; } -::windows_core::imp::interface_hierarchy!(MobileBroadbandAntennaSar, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MobileBroadbandAntennaSar {} unsafe impl ::core::marker::Sync for MobileBroadbandAntennaSar {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MobileBroadbandCellCdma(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MobileBroadbandCellCdma, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MobileBroadbandCellCdma { pub fn BaseStationId(&self) -> ::windows_core::Result> { let this = self; @@ -3871,19 +2802,17 @@ impl ::windows_core::RuntimeType for MobileBroadbandCellCdma { } unsafe impl ::windows_core::Interface for MobileBroadbandCellCdma { type Vtable = IMobileBroadbandCellCdma_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MobileBroadbandCellCdma { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MobileBroadbandCellCdma { const NAME: &'static str = "Windows.Networking.NetworkOperators.MobileBroadbandCellCdma"; } -::windows_core::imp::interface_hierarchy!(MobileBroadbandCellCdma, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MobileBroadbandCellCdma {} unsafe impl ::core::marker::Sync for MobileBroadbandCellCdma {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MobileBroadbandCellGsm(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MobileBroadbandCellGsm, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MobileBroadbandCellGsm { pub fn BaseStationId(&self) -> ::windows_core::Result> { let this = self; @@ -3940,19 +2869,17 @@ impl ::windows_core::RuntimeType for MobileBroadbandCellGsm { } unsafe impl ::windows_core::Interface for MobileBroadbandCellGsm { type Vtable = IMobileBroadbandCellGsm_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MobileBroadbandCellGsm { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MobileBroadbandCellGsm { const NAME: &'static str = "Windows.Networking.NetworkOperators.MobileBroadbandCellGsm"; } -::windows_core::imp::interface_hierarchy!(MobileBroadbandCellGsm, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MobileBroadbandCellGsm {} unsafe impl ::core::marker::Sync for MobileBroadbandCellGsm {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MobileBroadbandCellLte(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MobileBroadbandCellLte, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MobileBroadbandCellLte { pub fn CellId(&self) -> ::windows_core::Result> { let this = self; @@ -4016,19 +2943,17 @@ impl ::windows_core::RuntimeType for MobileBroadbandCellLte { } unsafe impl ::windows_core::Interface for MobileBroadbandCellLte { type Vtable = IMobileBroadbandCellLte_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MobileBroadbandCellLte { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MobileBroadbandCellLte { const NAME: &'static str = "Windows.Networking.NetworkOperators.MobileBroadbandCellLte"; } -::windows_core::imp::interface_hierarchy!(MobileBroadbandCellLte, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MobileBroadbandCellLte {} unsafe impl ::core::marker::Sync for MobileBroadbandCellLte {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MobileBroadbandCellNR(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MobileBroadbandCellNR, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MobileBroadbandCellNR { pub fn CellId(&self) -> ::windows_core::Result> { let this = self; @@ -4099,19 +3024,17 @@ impl ::windows_core::RuntimeType for MobileBroadbandCellNR { } unsafe impl ::windows_core::Interface for MobileBroadbandCellNR { type Vtable = IMobileBroadbandCellNR_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MobileBroadbandCellNR { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MobileBroadbandCellNR { const NAME: &'static str = "Windows.Networking.NetworkOperators.MobileBroadbandCellNR"; } -::windows_core::imp::interface_hierarchy!(MobileBroadbandCellNR, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MobileBroadbandCellNR {} unsafe impl ::core::marker::Sync for MobileBroadbandCellNR {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MobileBroadbandCellTdscdma(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MobileBroadbandCellTdscdma, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MobileBroadbandCellTdscdma { pub fn CellId(&self) -> ::windows_core::Result> { let this = self; @@ -4175,19 +3098,17 @@ impl ::windows_core::RuntimeType for MobileBroadbandCellTdscdma { } unsafe impl ::windows_core::Interface for MobileBroadbandCellTdscdma { type Vtable = IMobileBroadbandCellTdscdma_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MobileBroadbandCellTdscdma { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MobileBroadbandCellTdscdma { const NAME: &'static str = "Windows.Networking.NetworkOperators.MobileBroadbandCellTdscdma"; } -::windows_core::imp::interface_hierarchy!(MobileBroadbandCellTdscdma, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MobileBroadbandCellTdscdma {} unsafe impl ::core::marker::Sync for MobileBroadbandCellTdscdma {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MobileBroadbandCellUmts(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MobileBroadbandCellUmts, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MobileBroadbandCellUmts { pub fn CellId(&self) -> ::windows_core::Result> { let this = self; @@ -4251,19 +3172,17 @@ impl ::windows_core::RuntimeType for MobileBroadbandCellUmts { } unsafe impl ::windows_core::Interface for MobileBroadbandCellUmts { type Vtable = IMobileBroadbandCellUmts_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MobileBroadbandCellUmts { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MobileBroadbandCellUmts { const NAME: &'static str = "Windows.Networking.NetworkOperators.MobileBroadbandCellUmts"; } -::windows_core::imp::interface_hierarchy!(MobileBroadbandCellUmts, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MobileBroadbandCellUmts {} unsafe impl ::core::marker::Sync for MobileBroadbandCellUmts {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MobileBroadbandCellsInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MobileBroadbandCellsInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MobileBroadbandCellsInfo { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -4358,7 +3277,7 @@ impl MobileBroadbandCellsInfo { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn NeighboringCellsNR(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NeighboringCellsNR)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4367,7 +3286,7 @@ impl MobileBroadbandCellsInfo { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn ServingCellsNR(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ServingCellsNR)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4379,19 +3298,17 @@ impl ::windows_core::RuntimeType for MobileBroadbandCellsInfo { } unsafe impl ::windows_core::Interface for MobileBroadbandCellsInfo { type Vtable = IMobileBroadbandCellsInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MobileBroadbandCellsInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MobileBroadbandCellsInfo { const NAME: &'static str = "Windows.Networking.NetworkOperators.MobileBroadbandCellsInfo"; } -::windows_core::imp::interface_hierarchy!(MobileBroadbandCellsInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MobileBroadbandCellsInfo {} unsafe impl ::core::marker::Sync for MobileBroadbandCellsInfo {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MobileBroadbandCurrentSlotIndexChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MobileBroadbandCurrentSlotIndexChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MobileBroadbandCurrentSlotIndexChangedEventArgs { pub fn CurrentSlotIndex(&self) -> ::windows_core::Result { let this = self; @@ -4406,19 +3323,17 @@ impl ::windows_core::RuntimeType for MobileBroadbandCurrentSlotIndexChangedEvent } unsafe impl ::windows_core::Interface for MobileBroadbandCurrentSlotIndexChangedEventArgs { type Vtable = IMobileBroadbandCurrentSlotIndexChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MobileBroadbandCurrentSlotIndexChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MobileBroadbandCurrentSlotIndexChangedEventArgs { const NAME: &'static str = "Windows.Networking.NetworkOperators.MobileBroadbandCurrentSlotIndexChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(MobileBroadbandCurrentSlotIndexChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MobileBroadbandCurrentSlotIndexChangedEventArgs {} unsafe impl ::core::marker::Sync for MobileBroadbandCurrentSlotIndexChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MobileBroadbandDeviceInformation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MobileBroadbandDeviceInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MobileBroadbandDeviceInformation { pub fn NetworkDeviceStatus(&self) -> ::windows_core::Result { let this = self; @@ -4523,49 +3438,49 @@ impl MobileBroadbandDeviceInformation { } } pub fn PinManager(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PinManager)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Revision(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Revision)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SerialNumber(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SerialNumber)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SimSpn(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SimSpn)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SimPnn(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SimPnn)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SimGid1(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SimGid1)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SlotManager(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SlotManager)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4577,17 +3492,15 @@ impl ::windows_core::RuntimeType for MobileBroadbandDeviceInformation { } unsafe impl ::windows_core::Interface for MobileBroadbandDeviceInformation { type Vtable = IMobileBroadbandDeviceInformation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MobileBroadbandDeviceInformation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MobileBroadbandDeviceInformation { const NAME: &'static str = "Windows.Networking.NetworkOperators.MobileBroadbandDeviceInformation"; } -::windows_core::imp::interface_hierarchy!(MobileBroadbandDeviceInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MobileBroadbandDeviceService(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MobileBroadbandDeviceService, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MobileBroadbandDeviceService { pub fn DeviceServiceId(&self) -> ::windows_core::Result<::windows_core::GUID> { let this = self; @@ -4625,19 +3538,17 @@ impl ::windows_core::RuntimeType for MobileBroadbandDeviceService { } unsafe impl ::windows_core::Interface for MobileBroadbandDeviceService { type Vtable = IMobileBroadbandDeviceService_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MobileBroadbandDeviceService { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MobileBroadbandDeviceService { const NAME: &'static str = "Windows.Networking.NetworkOperators.MobileBroadbandDeviceService"; } -::windows_core::imp::interface_hierarchy!(MobileBroadbandDeviceService, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MobileBroadbandDeviceService {} unsafe impl ::core::marker::Sync for MobileBroadbandDeviceService {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MobileBroadbandDeviceServiceCommandResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MobileBroadbandDeviceServiceCommandResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MobileBroadbandDeviceServiceCommandResult { pub fn StatusCode(&self) -> ::windows_core::Result { let this = self; @@ -4661,42 +3572,40 @@ impl ::windows_core::RuntimeType for MobileBroadbandDeviceServiceCommandResult { } unsafe impl ::windows_core::Interface for MobileBroadbandDeviceServiceCommandResult { type Vtable = IMobileBroadbandDeviceServiceCommandResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MobileBroadbandDeviceServiceCommandResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MobileBroadbandDeviceServiceCommandResult { const NAME: &'static str = "Windows.Networking.NetworkOperators.MobileBroadbandDeviceServiceCommandResult"; } -::windows_core::imp::interface_hierarchy!(MobileBroadbandDeviceServiceCommandResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MobileBroadbandDeviceServiceCommandResult {} unsafe impl ::core::marker::Sync for MobileBroadbandDeviceServiceCommandResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MobileBroadbandDeviceServiceCommandSession(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MobileBroadbandDeviceServiceCommandSession, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MobileBroadbandDeviceServiceCommandSession { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn SendQueryCommandAsync(&self, commandid: u32, data: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).SendQueryCommandAsync)(::windows_core::Interface::as_raw(this), commandid, data.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SendQueryCommandAsync)(::windows_core::Interface::as_raw(this), commandid, data.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn SendSetCommandAsync(&self, commandid: u32, data: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).SendSetCommandAsync)(::windows_core::Interface::as_raw(this), commandid, data.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SendSetCommandAsync)(::windows_core::Interface::as_raw(this), commandid, data.into_param().abi(), &mut result__).from_abi(result__) } } pub fn CloseSession(&self) -> ::windows_core::Result<()> { @@ -4709,19 +3618,17 @@ impl ::windows_core::RuntimeType for MobileBroadbandDeviceServiceCommandSession } unsafe impl ::windows_core::Interface for MobileBroadbandDeviceServiceCommandSession { type Vtable = IMobileBroadbandDeviceServiceCommandSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MobileBroadbandDeviceServiceCommandSession { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MobileBroadbandDeviceServiceCommandSession { const NAME: &'static str = "Windows.Networking.NetworkOperators.MobileBroadbandDeviceServiceCommandSession"; } -::windows_core::imp::interface_hierarchy!(MobileBroadbandDeviceServiceCommandSession, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MobileBroadbandDeviceServiceCommandSession {} unsafe impl ::core::marker::Sync for MobileBroadbandDeviceServiceCommandSession {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MobileBroadbandDeviceServiceDataReceivedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MobileBroadbandDeviceServiceDataReceivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MobileBroadbandDeviceServiceDataReceivedEventArgs { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] @@ -4738,30 +3645,28 @@ impl ::windows_core::RuntimeType for MobileBroadbandDeviceServiceDataReceivedEve } unsafe impl ::windows_core::Interface for MobileBroadbandDeviceServiceDataReceivedEventArgs { type Vtable = IMobileBroadbandDeviceServiceDataReceivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MobileBroadbandDeviceServiceDataReceivedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MobileBroadbandDeviceServiceDataReceivedEventArgs { const NAME: &'static str = "Windows.Networking.NetworkOperators.MobileBroadbandDeviceServiceDataReceivedEventArgs"; } -::windows_core::imp::interface_hierarchy!(MobileBroadbandDeviceServiceDataReceivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MobileBroadbandDeviceServiceDataReceivedEventArgs {} unsafe impl ::core::marker::Sync for MobileBroadbandDeviceServiceDataReceivedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MobileBroadbandDeviceServiceDataSession(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MobileBroadbandDeviceServiceDataSession, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MobileBroadbandDeviceServiceDataSession { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn WriteDataAsync(&self, value: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).WriteDataAsync)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).WriteDataAsync)(::windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).from_abi(result__) } } pub fn CloseSession(&self) -> ::windows_core::Result<()> { @@ -4788,19 +3693,17 @@ impl ::windows_core::RuntimeType for MobileBroadbandDeviceServiceDataSession { } unsafe impl ::windows_core::Interface for MobileBroadbandDeviceServiceDataSession { type Vtable = IMobileBroadbandDeviceServiceDataSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MobileBroadbandDeviceServiceDataSession { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MobileBroadbandDeviceServiceDataSession { const NAME: &'static str = "Windows.Networking.NetworkOperators.MobileBroadbandDeviceServiceDataSession"; } -::windows_core::imp::interface_hierarchy!(MobileBroadbandDeviceServiceDataSession, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MobileBroadbandDeviceServiceDataSession {} unsafe impl ::core::marker::Sync for MobileBroadbandDeviceServiceDataSession {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MobileBroadbandDeviceServiceInformation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MobileBroadbandDeviceServiceInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MobileBroadbandDeviceServiceInformation { pub fn DeviceServiceId(&self) -> ::windows_core::Result<::windows_core::GUID> { let this = self; @@ -4829,19 +3732,17 @@ impl ::windows_core::RuntimeType for MobileBroadbandDeviceServiceInformation { } unsafe impl ::windows_core::Interface for MobileBroadbandDeviceServiceInformation { type Vtable = IMobileBroadbandDeviceServiceInformation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MobileBroadbandDeviceServiceInformation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MobileBroadbandDeviceServiceInformation { const NAME: &'static str = "Windows.Networking.NetworkOperators.MobileBroadbandDeviceServiceInformation"; } -::windows_core::imp::interface_hierarchy!(MobileBroadbandDeviceServiceInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MobileBroadbandDeviceServiceInformation {} unsafe impl ::core::marker::Sync for MobileBroadbandDeviceServiceInformation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MobileBroadbandDeviceServiceTriggerDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MobileBroadbandDeviceServiceTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MobileBroadbandDeviceServiceTriggerDetails { pub fn DeviceId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -4867,7 +3768,7 @@ impl MobileBroadbandDeviceServiceTriggerDetails { } } pub fn EventId(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).EventId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4879,19 +3780,17 @@ impl ::windows_core::RuntimeType for MobileBroadbandDeviceServiceTriggerDetails } unsafe impl ::windows_core::Interface for MobileBroadbandDeviceServiceTriggerDetails { type Vtable = IMobileBroadbandDeviceServiceTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MobileBroadbandDeviceServiceTriggerDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MobileBroadbandDeviceServiceTriggerDetails { const NAME: &'static str = "Windows.Networking.NetworkOperators.MobileBroadbandDeviceServiceTriggerDetails"; } -::windows_core::imp::interface_hierarchy!(MobileBroadbandDeviceServiceTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MobileBroadbandDeviceServiceTriggerDetails {} unsafe impl ::core::marker::Sync for MobileBroadbandDeviceServiceTriggerDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MobileBroadbandModem(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MobileBroadbandModem, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MobileBroadbandModem { pub fn CurrentAccount(&self) -> ::windows_core::Result { let this = self; @@ -4966,28 +3865,28 @@ impl MobileBroadbandModem { } } pub fn GetIsPassthroughEnabledAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetIsPassthroughEnabledAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsPassthroughEnabledAsync(&self, value: bool) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SetIsPassthroughEnabledAsync)(::windows_core::Interface::as_raw(this), value, &mut result__).from_abi(result__) } } pub fn TryGetPcoAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetPcoAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsInEmergencyCallMode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsInEmergencyCallMode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4997,39 +3896,39 @@ impl MobileBroadbandModem { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveIsInEmergencyCallModeChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveIsInEmergencyCallModeChanged)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn SetIsPassthroughEnabledWithSlotIndexAsync(&self, value: bool, slotindex: i32) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SetIsPassthroughEnabledWithSlotIndexAsync)(::windows_core::Interface::as_raw(this), value, slotindex, &mut result__).from_abi(result__) } } pub fn GetIsPassthroughEnabledWithSlotIndexAsync(&self, slotindex: i32) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetIsPassthroughEnabledWithSlotIndexAsync)(::windows_core::Interface::as_raw(this), slotindex, &mut result__).from_abi(result__) } } pub fn SetIsPassthroughEnabledWithSlotIndex(&self, value: bool, slotindex: i32) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SetIsPassthroughEnabledWithSlotIndex)(::windows_core::Interface::as_raw(this), value, slotindex, &mut result__).from_abi(result__) } } pub fn GetIsPassthroughEnabledWithSlotIndex(&self, slotindex: i32) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetIsPassthroughEnabledWithSlotIndex)(::windows_core::Interface::as_raw(this), slotindex, &mut result__).from_abi(result__) @@ -5064,19 +3963,17 @@ impl ::windows_core::RuntimeType for MobileBroadbandModem { } unsafe impl ::windows_core::Interface for MobileBroadbandModem { type Vtable = IMobileBroadbandModem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MobileBroadbandModem { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MobileBroadbandModem { const NAME: &'static str = "Windows.Networking.NetworkOperators.MobileBroadbandModem"; } -::windows_core::imp::interface_hierarchy!(MobileBroadbandModem, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MobileBroadbandModem {} unsafe impl ::core::marker::Sync for MobileBroadbandModem {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MobileBroadbandModemConfiguration(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MobileBroadbandModemConfiguration, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MobileBroadbandModemConfiguration { pub fn Uicc(&self) -> ::windows_core::Result { let this = self; @@ -5100,7 +3997,7 @@ impl MobileBroadbandModemConfiguration { } } pub fn SarManager(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SarManager)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5112,17 +4009,15 @@ impl ::windows_core::RuntimeType for MobileBroadbandModemConfiguration { } unsafe impl ::windows_core::Interface for MobileBroadbandModemConfiguration { type Vtable = IMobileBroadbandModemConfiguration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MobileBroadbandModemConfiguration { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MobileBroadbandModemConfiguration { const NAME: &'static str = "Windows.Networking.NetworkOperators.MobileBroadbandModemConfiguration"; } -::windows_core::imp::interface_hierarchy!(MobileBroadbandModemConfiguration, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MobileBroadbandModemIsolation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MobileBroadbandModemIsolation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MobileBroadbandModemIsolation { pub fn AddAllowedHost(&self, host: P0) -> ::windows_core::Result<()> where @@ -5170,19 +4065,17 @@ impl ::windows_core::RuntimeType for MobileBroadbandModemIsolation { } unsafe impl ::windows_core::Interface for MobileBroadbandModemIsolation { type Vtable = IMobileBroadbandModemIsolation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MobileBroadbandModemIsolation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MobileBroadbandModemIsolation { const NAME: &'static str = "Windows.Networking.NetworkOperators.MobileBroadbandModemIsolation"; } -::windows_core::imp::interface_hierarchy!(MobileBroadbandModemIsolation, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MobileBroadbandModemIsolation {} unsafe impl ::core::marker::Sync for MobileBroadbandModemIsolation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MobileBroadbandNetwork(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MobileBroadbandNetwork, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MobileBroadbandNetwork { #[doc = "Required features: `\"Networking_Connectivity\"`"] #[cfg(feature = "Networking_Connectivity")] @@ -5254,7 +4147,7 @@ impl MobileBroadbandNetwork { unsafe { (::windows_core::Interface::vtable(this).ShowConnectionUI)(::windows_core::Interface::as_raw(this)).ok() } } pub fn GetVoiceCallSupportAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetVoiceCallSupportAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5263,14 +4156,14 @@ impl MobileBroadbandNetwork { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn RegistrationUiccApps(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RegistrationUiccApps)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetCellsInfoAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetCellsInfoAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5282,17 +4175,15 @@ impl ::windows_core::RuntimeType for MobileBroadbandNetwork { } unsafe impl ::windows_core::Interface for MobileBroadbandNetwork { type Vtable = IMobileBroadbandNetwork_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MobileBroadbandNetwork { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MobileBroadbandNetwork { const NAME: &'static str = "Windows.Networking.NetworkOperators.MobileBroadbandNetwork"; } -::windows_core::imp::interface_hierarchy!(MobileBroadbandNetwork, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MobileBroadbandNetworkRegistrationStateChange(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MobileBroadbandNetworkRegistrationStateChange, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MobileBroadbandNetworkRegistrationStateChange { pub fn DeviceId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -5314,19 +4205,17 @@ impl ::windows_core::RuntimeType for MobileBroadbandNetworkRegistrationStateChan } unsafe impl ::windows_core::Interface for MobileBroadbandNetworkRegistrationStateChange { type Vtable = IMobileBroadbandNetworkRegistrationStateChange_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MobileBroadbandNetworkRegistrationStateChange { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MobileBroadbandNetworkRegistrationStateChange { const NAME: &'static str = "Windows.Networking.NetworkOperators.MobileBroadbandNetworkRegistrationStateChange"; } -::windows_core::imp::interface_hierarchy!(MobileBroadbandNetworkRegistrationStateChange, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MobileBroadbandNetworkRegistrationStateChange {} unsafe impl ::core::marker::Sync for MobileBroadbandNetworkRegistrationStateChange {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MobileBroadbandNetworkRegistrationStateChangeTriggerDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MobileBroadbandNetworkRegistrationStateChangeTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MobileBroadbandNetworkRegistrationStateChangeTriggerDetails { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -5343,19 +4232,17 @@ impl ::windows_core::RuntimeType for MobileBroadbandNetworkRegistrationStateChan } unsafe impl ::windows_core::Interface for MobileBroadbandNetworkRegistrationStateChangeTriggerDetails { type Vtable = IMobileBroadbandNetworkRegistrationStateChangeTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MobileBroadbandNetworkRegistrationStateChangeTriggerDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MobileBroadbandNetworkRegistrationStateChangeTriggerDetails { const NAME: &'static str = "Windows.Networking.NetworkOperators.MobileBroadbandNetworkRegistrationStateChangeTriggerDetails"; } -::windows_core::imp::interface_hierarchy!(MobileBroadbandNetworkRegistrationStateChangeTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MobileBroadbandNetworkRegistrationStateChangeTriggerDetails {} unsafe impl ::core::marker::Sync for MobileBroadbandNetworkRegistrationStateChangeTriggerDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MobileBroadbandPco(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MobileBroadbandPco, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MobileBroadbandPco { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] @@ -5386,19 +4273,17 @@ impl ::windows_core::RuntimeType for MobileBroadbandPco { } unsafe impl ::windows_core::Interface for MobileBroadbandPco { type Vtable = IMobileBroadbandPco_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MobileBroadbandPco { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MobileBroadbandPco { const NAME: &'static str = "Windows.Networking.NetworkOperators.MobileBroadbandPco"; } -::windows_core::imp::interface_hierarchy!(MobileBroadbandPco, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MobileBroadbandPco {} unsafe impl ::core::marker::Sync for MobileBroadbandPco {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MobileBroadbandPcoDataChangeTriggerDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MobileBroadbandPcoDataChangeTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MobileBroadbandPcoDataChangeTriggerDetails { pub fn UpdatedData(&self) -> ::windows_core::Result { let this = self; @@ -5413,19 +4298,17 @@ impl ::windows_core::RuntimeType for MobileBroadbandPcoDataChangeTriggerDetails } unsafe impl ::windows_core::Interface for MobileBroadbandPcoDataChangeTriggerDetails { type Vtable = IMobileBroadbandPcoDataChangeTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MobileBroadbandPcoDataChangeTriggerDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MobileBroadbandPcoDataChangeTriggerDetails { const NAME: &'static str = "Windows.Networking.NetworkOperators.MobileBroadbandPcoDataChangeTriggerDetails"; } -::windows_core::imp::interface_hierarchy!(MobileBroadbandPcoDataChangeTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MobileBroadbandPcoDataChangeTriggerDetails {} unsafe impl ::core::marker::Sync for MobileBroadbandPcoDataChangeTriggerDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MobileBroadbandPin(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MobileBroadbandPin, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MobileBroadbandPin { pub fn Type(&self) -> ::windows_core::Result { let this = self; @@ -5517,19 +4400,17 @@ impl ::windows_core::RuntimeType for MobileBroadbandPin { } unsafe impl ::windows_core::Interface for MobileBroadbandPin { type Vtable = IMobileBroadbandPin_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MobileBroadbandPin { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MobileBroadbandPin { const NAME: &'static str = "Windows.Networking.NetworkOperators.MobileBroadbandPin"; } -::windows_core::imp::interface_hierarchy!(MobileBroadbandPin, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MobileBroadbandPin {} unsafe impl ::core::marker::Sync for MobileBroadbandPin {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MobileBroadbandPinLockStateChange(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MobileBroadbandPinLockStateChange, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MobileBroadbandPinLockStateChange { pub fn DeviceId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -5558,19 +4439,17 @@ impl ::windows_core::RuntimeType for MobileBroadbandPinLockStateChange { } unsafe impl ::windows_core::Interface for MobileBroadbandPinLockStateChange { type Vtable = IMobileBroadbandPinLockStateChange_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MobileBroadbandPinLockStateChange { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MobileBroadbandPinLockStateChange { const NAME: &'static str = "Windows.Networking.NetworkOperators.MobileBroadbandPinLockStateChange"; } -::windows_core::imp::interface_hierarchy!(MobileBroadbandPinLockStateChange, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MobileBroadbandPinLockStateChange {} unsafe impl ::core::marker::Sync for MobileBroadbandPinLockStateChange {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MobileBroadbandPinLockStateChangeTriggerDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MobileBroadbandPinLockStateChangeTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MobileBroadbandPinLockStateChangeTriggerDetails { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -5587,19 +4466,17 @@ impl ::windows_core::RuntimeType for MobileBroadbandPinLockStateChangeTriggerDet } unsafe impl ::windows_core::Interface for MobileBroadbandPinLockStateChangeTriggerDetails { type Vtable = IMobileBroadbandPinLockStateChangeTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MobileBroadbandPinLockStateChangeTriggerDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MobileBroadbandPinLockStateChangeTriggerDetails { const NAME: &'static str = "Windows.Networking.NetworkOperators.MobileBroadbandPinLockStateChangeTriggerDetails"; } -::windows_core::imp::interface_hierarchy!(MobileBroadbandPinLockStateChangeTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MobileBroadbandPinLockStateChangeTriggerDetails {} unsafe impl ::core::marker::Sync for MobileBroadbandPinLockStateChangeTriggerDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MobileBroadbandPinManager(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MobileBroadbandPinManager, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MobileBroadbandPinManager { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -5623,19 +4500,17 @@ impl ::windows_core::RuntimeType for MobileBroadbandPinManager { } unsafe impl ::windows_core::Interface for MobileBroadbandPinManager { type Vtable = IMobileBroadbandPinManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MobileBroadbandPinManager { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MobileBroadbandPinManager { const NAME: &'static str = "Windows.Networking.NetworkOperators.MobileBroadbandPinManager"; } -::windows_core::imp::interface_hierarchy!(MobileBroadbandPinManager, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MobileBroadbandPinManager {} unsafe impl ::core::marker::Sync for MobileBroadbandPinManager {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MobileBroadbandPinOperationResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MobileBroadbandPinOperationResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MobileBroadbandPinOperationResult { pub fn IsSuccessful(&self) -> ::windows_core::Result { let this = self; @@ -5657,19 +4532,17 @@ impl ::windows_core::RuntimeType for MobileBroadbandPinOperationResult { } unsafe impl ::windows_core::Interface for MobileBroadbandPinOperationResult { type Vtable = IMobileBroadbandPinOperationResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MobileBroadbandPinOperationResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MobileBroadbandPinOperationResult { const NAME: &'static str = "Windows.Networking.NetworkOperators.MobileBroadbandPinOperationResult"; } -::windows_core::imp::interface_hierarchy!(MobileBroadbandPinOperationResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MobileBroadbandPinOperationResult {} unsafe impl ::core::marker::Sync for MobileBroadbandPinOperationResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MobileBroadbandRadioStateChange(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MobileBroadbandRadioStateChange, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MobileBroadbandRadioStateChange { pub fn DeviceId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -5691,19 +4564,17 @@ impl ::windows_core::RuntimeType for MobileBroadbandRadioStateChange { } unsafe impl ::windows_core::Interface for MobileBroadbandRadioStateChange { type Vtable = IMobileBroadbandRadioStateChange_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MobileBroadbandRadioStateChange { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MobileBroadbandRadioStateChange { const NAME: &'static str = "Windows.Networking.NetworkOperators.MobileBroadbandRadioStateChange"; } -::windows_core::imp::interface_hierarchy!(MobileBroadbandRadioStateChange, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MobileBroadbandRadioStateChange {} unsafe impl ::core::marker::Sync for MobileBroadbandRadioStateChange {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MobileBroadbandRadioStateChangeTriggerDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MobileBroadbandRadioStateChangeTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MobileBroadbandRadioStateChangeTriggerDetails { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -5720,19 +4591,17 @@ impl ::windows_core::RuntimeType for MobileBroadbandRadioStateChangeTriggerDetai } unsafe impl ::windows_core::Interface for MobileBroadbandRadioStateChangeTriggerDetails { type Vtable = IMobileBroadbandRadioStateChangeTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MobileBroadbandRadioStateChangeTriggerDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MobileBroadbandRadioStateChangeTriggerDetails { const NAME: &'static str = "Windows.Networking.NetworkOperators.MobileBroadbandRadioStateChangeTriggerDetails"; } -::windows_core::imp::interface_hierarchy!(MobileBroadbandRadioStateChangeTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MobileBroadbandRadioStateChangeTriggerDetails {} unsafe impl ::core::marker::Sync for MobileBroadbandRadioStateChangeTriggerDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MobileBroadbandSarManager(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MobileBroadbandSarManager, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MobileBroadbandSarManager { pub fn IsBackoffEnabled(&self) -> ::windows_core::Result { let this = self; @@ -5803,12 +4672,12 @@ impl MobileBroadbandSarManager { #[cfg(feature = "Foundation_Collections")] pub fn SetConfigurationAsync(&self, antennas: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).SetConfigurationAsync)(::windows_core::Interface::as_raw(this), antennas.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SetConfigurationAsync)(::windows_core::Interface::as_raw(this), antennas.into_param().abi(), &mut result__).from_abi(result__) } } pub fn RevertSarToHardwareControlAsync(&self) -> ::windows_core::Result { @@ -5846,19 +4715,17 @@ impl ::windows_core::RuntimeType for MobileBroadbandSarManager { } unsafe impl ::windows_core::Interface for MobileBroadbandSarManager { type Vtable = IMobileBroadbandSarManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MobileBroadbandSarManager { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MobileBroadbandSarManager { const NAME: &'static str = "Windows.Networking.NetworkOperators.MobileBroadbandSarManager"; } -::windows_core::imp::interface_hierarchy!(MobileBroadbandSarManager, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MobileBroadbandSarManager {} unsafe impl ::core::marker::Sync for MobileBroadbandSarManager {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MobileBroadbandSlotInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MobileBroadbandSlotInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MobileBroadbandSlotInfo { pub fn Index(&self) -> ::windows_core::Result { let this = self; @@ -5875,7 +4742,7 @@ impl MobileBroadbandSlotInfo { } } pub fn IccId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IccId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5887,19 +4754,17 @@ impl ::windows_core::RuntimeType for MobileBroadbandSlotInfo { } unsafe impl ::windows_core::Interface for MobileBroadbandSlotInfo { type Vtable = IMobileBroadbandSlotInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MobileBroadbandSlotInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MobileBroadbandSlotInfo { const NAME: &'static str = "Windows.Networking.NetworkOperators.MobileBroadbandSlotInfo"; } -::windows_core::imp::interface_hierarchy!(MobileBroadbandSlotInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MobileBroadbandSlotInfo {} unsafe impl ::core::marker::Sync for MobileBroadbandSlotInfo {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MobileBroadbandSlotInfoChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MobileBroadbandSlotInfoChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MobileBroadbandSlotInfoChangedEventArgs { pub fn SlotInfo(&self) -> ::windows_core::Result { let this = self; @@ -5914,19 +4779,17 @@ impl ::windows_core::RuntimeType for MobileBroadbandSlotInfoChangedEventArgs { } unsafe impl ::windows_core::Interface for MobileBroadbandSlotInfoChangedEventArgs { type Vtable = IMobileBroadbandSlotInfoChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MobileBroadbandSlotInfoChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MobileBroadbandSlotInfoChangedEventArgs { const NAME: &'static str = "Windows.Networking.NetworkOperators.MobileBroadbandSlotInfoChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(MobileBroadbandSlotInfoChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MobileBroadbandSlotInfoChangedEventArgs {} unsafe impl ::core::marker::Sync for MobileBroadbandSlotInfoChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MobileBroadbandSlotManager(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MobileBroadbandSlotManager, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MobileBroadbandSlotManager { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -5992,19 +4855,17 @@ impl ::windows_core::RuntimeType for MobileBroadbandSlotManager { } unsafe impl ::windows_core::Interface for MobileBroadbandSlotManager { type Vtable = IMobileBroadbandSlotManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MobileBroadbandSlotManager { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MobileBroadbandSlotManager { const NAME: &'static str = "Windows.Networking.NetworkOperators.MobileBroadbandSlotManager"; } -::windows_core::imp::interface_hierarchy!(MobileBroadbandSlotManager, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MobileBroadbandSlotManager {} unsafe impl ::core::marker::Sync for MobileBroadbandSlotManager {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MobileBroadbandTransmissionStateChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MobileBroadbandTransmissionStateChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MobileBroadbandTransmissionStateChangedEventArgs { pub fn IsTransmitting(&self) -> ::windows_core::Result { let this = self; @@ -6019,19 +4880,17 @@ impl ::windows_core::RuntimeType for MobileBroadbandTransmissionStateChangedEven } unsafe impl ::windows_core::Interface for MobileBroadbandTransmissionStateChangedEventArgs { type Vtable = IMobileBroadbandTransmissionStateChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MobileBroadbandTransmissionStateChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MobileBroadbandTransmissionStateChangedEventArgs { const NAME: &'static str = "Windows.Networking.NetworkOperators.MobileBroadbandTransmissionStateChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(MobileBroadbandTransmissionStateChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MobileBroadbandTransmissionStateChangedEventArgs {} unsafe impl ::core::marker::Sync for MobileBroadbandTransmissionStateChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MobileBroadbandUicc(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MobileBroadbandUicc, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MobileBroadbandUicc { pub fn SimIccId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -6053,19 +4912,17 @@ impl ::windows_core::RuntimeType for MobileBroadbandUicc { } unsafe impl ::windows_core::Interface for MobileBroadbandUicc { type Vtable = IMobileBroadbandUicc_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MobileBroadbandUicc { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MobileBroadbandUicc { const NAME: &'static str = "Windows.Networking.NetworkOperators.MobileBroadbandUicc"; } -::windows_core::imp::interface_hierarchy!(MobileBroadbandUicc, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MobileBroadbandUicc {} unsafe impl ::core::marker::Sync for MobileBroadbandUicc {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MobileBroadbandUiccApp(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MobileBroadbandUiccApp, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MobileBroadbandUiccApp { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] @@ -6087,24 +4944,24 @@ impl MobileBroadbandUiccApp { #[cfg(feature = "Foundation_Collections")] pub fn GetRecordDetailsAsync(&self, uiccfilepath: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).GetRecordDetailsAsync)(::windows_core::Interface::as_raw(this), uiccfilepath.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).GetRecordDetailsAsync)(::windows_core::Interface::as_raw(this), uiccfilepath.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn ReadRecordAsync(&self, uiccfilepath: P0, recordindex: i32) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).ReadRecordAsync)(::windows_core::Interface::as_raw(this), uiccfilepath.try_into_param()?.abi(), recordindex, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ReadRecordAsync)(::windows_core::Interface::as_raw(this), uiccfilepath.into_param().abi(), recordindex, &mut result__).from_abi(result__) } } } @@ -6113,19 +4970,17 @@ impl ::windows_core::RuntimeType for MobileBroadbandUiccApp { } unsafe impl ::windows_core::Interface for MobileBroadbandUiccApp { type Vtable = IMobileBroadbandUiccApp_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MobileBroadbandUiccApp { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MobileBroadbandUiccApp { const NAME: &'static str = "Windows.Networking.NetworkOperators.MobileBroadbandUiccApp"; } -::windows_core::imp::interface_hierarchy!(MobileBroadbandUiccApp, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MobileBroadbandUiccApp {} unsafe impl ::core::marker::Sync for MobileBroadbandUiccApp {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MobileBroadbandUiccAppReadRecordResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MobileBroadbandUiccAppReadRecordResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MobileBroadbandUiccAppReadRecordResult { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -6149,19 +5004,17 @@ impl ::windows_core::RuntimeType for MobileBroadbandUiccAppReadRecordResult { } unsafe impl ::windows_core::Interface for MobileBroadbandUiccAppReadRecordResult { type Vtable = IMobileBroadbandUiccAppReadRecordResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MobileBroadbandUiccAppReadRecordResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MobileBroadbandUiccAppReadRecordResult { const NAME: &'static str = "Windows.Networking.NetworkOperators.MobileBroadbandUiccAppReadRecordResult"; } -::windows_core::imp::interface_hierarchy!(MobileBroadbandUiccAppReadRecordResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MobileBroadbandUiccAppReadRecordResult {} unsafe impl ::core::marker::Sync for MobileBroadbandUiccAppReadRecordResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MobileBroadbandUiccAppRecordDetailsResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MobileBroadbandUiccAppRecordDetailsResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MobileBroadbandUiccAppRecordDetailsResult { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -6211,19 +5064,17 @@ impl ::windows_core::RuntimeType for MobileBroadbandUiccAppRecordDetailsResult { } unsafe impl ::windows_core::Interface for MobileBroadbandUiccAppRecordDetailsResult { type Vtable = IMobileBroadbandUiccAppRecordDetailsResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MobileBroadbandUiccAppRecordDetailsResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MobileBroadbandUiccAppRecordDetailsResult { const NAME: &'static str = "Windows.Networking.NetworkOperators.MobileBroadbandUiccAppRecordDetailsResult"; } -::windows_core::imp::interface_hierarchy!(MobileBroadbandUiccAppRecordDetailsResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MobileBroadbandUiccAppRecordDetailsResult {} unsafe impl ::core::marker::Sync for MobileBroadbandUiccAppRecordDetailsResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MobileBroadbandUiccAppsResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MobileBroadbandUiccAppsResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MobileBroadbandUiccAppsResult { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -6247,19 +5098,17 @@ impl ::windows_core::RuntimeType for MobileBroadbandUiccAppsResult { } unsafe impl ::windows_core::Interface for MobileBroadbandUiccAppsResult { type Vtable = IMobileBroadbandUiccAppsResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MobileBroadbandUiccAppsResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MobileBroadbandUiccAppsResult { const NAME: &'static str = "Windows.Networking.NetworkOperators.MobileBroadbandUiccAppsResult"; } -::windows_core::imp::interface_hierarchy!(MobileBroadbandUiccAppsResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MobileBroadbandUiccAppsResult {} unsafe impl ::core::marker::Sync for MobileBroadbandUiccAppsResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct NetworkOperatorDataUsageTriggerDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(NetworkOperatorDataUsageTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl NetworkOperatorDataUsageTriggerDetails { pub fn NotificationKind(&self) -> ::windows_core::Result { let this = self; @@ -6274,19 +5123,17 @@ impl ::windows_core::RuntimeType for NetworkOperatorDataUsageTriggerDetails { } unsafe impl ::windows_core::Interface for NetworkOperatorDataUsageTriggerDetails { type Vtable = INetworkOperatorDataUsageTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for NetworkOperatorDataUsageTriggerDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for NetworkOperatorDataUsageTriggerDetails { const NAME: &'static str = "Windows.Networking.NetworkOperators.NetworkOperatorDataUsageTriggerDetails"; } -::windows_core::imp::interface_hierarchy!(NetworkOperatorDataUsageTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for NetworkOperatorDataUsageTriggerDetails {} unsafe impl ::core::marker::Sync for NetworkOperatorDataUsageTriggerDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct NetworkOperatorNotificationEventDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(NetworkOperatorNotificationEventDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl NetworkOperatorNotificationEventDetails { pub fn NotificationType(&self) -> ::windows_core::Result { let this = self; @@ -6333,7 +5180,7 @@ impl NetworkOperatorNotificationEventDetails { } } pub fn AuthorizeTethering(&self, allow: bool, entitlementfailurereason: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).AuthorizeTethering)(::windows_core::Interface::as_raw(this), allow, ::core::mem::transmute_copy(entitlementfailurereason)).ok() } } } @@ -6342,19 +5189,17 @@ impl ::windows_core::RuntimeType for NetworkOperatorNotificationEventDetails { } unsafe impl ::windows_core::Interface for NetworkOperatorNotificationEventDetails { type Vtable = INetworkOperatorNotificationEventDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for NetworkOperatorNotificationEventDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for NetworkOperatorNotificationEventDetails { const NAME: &'static str = "Windows.Networking.NetworkOperators.NetworkOperatorNotificationEventDetails"; } -::windows_core::imp::interface_hierarchy!(NetworkOperatorNotificationEventDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for NetworkOperatorNotificationEventDetails {} unsafe impl ::core::marker::Sync for NetworkOperatorNotificationEventDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct NetworkOperatorTetheringAccessPointConfiguration(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(NetworkOperatorTetheringAccessPointConfiguration, ::windows_core::IUnknown, ::windows_core::IInspectable); impl NetworkOperatorTetheringAccessPointConfiguration { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -6386,28 +5231,28 @@ impl NetworkOperatorTetheringAccessPointConfiguration { unsafe { (::windows_core::Interface::vtable(this).SetPassphrase)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn IsBandSupported(&self, band: TetheringWiFiBand) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsBandSupported)(::windows_core::Interface::as_raw(this), band, &mut result__).from_abi(result__) } } pub fn IsBandSupportedAsync(&self, band: TetheringWiFiBand) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsBandSupportedAsync)(::windows_core::Interface::as_raw(this), band, &mut result__).from_abi(result__) } } pub fn Band(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Band)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetBand(&self, value: TetheringWiFiBand) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetBand)(::windows_core::Interface::as_raw(this), value).ok() } } } @@ -6416,19 +5261,17 @@ impl ::windows_core::RuntimeType for NetworkOperatorTetheringAccessPointConfigur } unsafe impl ::windows_core::Interface for NetworkOperatorTetheringAccessPointConfiguration { type Vtable = INetworkOperatorTetheringAccessPointConfiguration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for NetworkOperatorTetheringAccessPointConfiguration { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for NetworkOperatorTetheringAccessPointConfiguration { const NAME: &'static str = "Windows.Networking.NetworkOperators.NetworkOperatorTetheringAccessPointConfiguration"; } -::windows_core::imp::interface_hierarchy!(NetworkOperatorTetheringAccessPointConfiguration, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for NetworkOperatorTetheringAccessPointConfiguration {} unsafe impl ::core::marker::Sync for NetworkOperatorTetheringAccessPointConfiguration {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct NetworkOperatorTetheringClient(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(NetworkOperatorTetheringClient, ::windows_core::IUnknown, ::windows_core::IInspectable); impl NetworkOperatorTetheringClient { pub fn MacAddress(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -6452,24 +5295,22 @@ impl ::windows_core::RuntimeType for NetworkOperatorTetheringClient { } unsafe impl ::windows_core::Interface for NetworkOperatorTetheringClient { type Vtable = INetworkOperatorTetheringClient_Vtbl; -} -unsafe impl ::windows_core::ComInterface for NetworkOperatorTetheringClient { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for NetworkOperatorTetheringClient { const NAME: &'static str = "Windows.Networking.NetworkOperators.NetworkOperatorTetheringClient"; } -::windows_core::imp::interface_hierarchy!(NetworkOperatorTetheringClient, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for NetworkOperatorTetheringClient {} unsafe impl ::core::marker::Sync for NetworkOperatorTetheringClient {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct NetworkOperatorTetheringManager(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(NetworkOperatorTetheringManager, ::windows_core::IUnknown, ::windows_core::IInspectable); impl NetworkOperatorTetheringManager { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetTetheringClients(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetTetheringClients)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6623,17 +5464,15 @@ impl ::windows_core::RuntimeType for NetworkOperatorTetheringManager { } unsafe impl ::windows_core::Interface for NetworkOperatorTetheringManager { type Vtable = INetworkOperatorTetheringManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for NetworkOperatorTetheringManager { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for NetworkOperatorTetheringManager { const NAME: &'static str = "Windows.Networking.NetworkOperators.NetworkOperatorTetheringManager"; } -::windows_core::imp::interface_hierarchy!(NetworkOperatorTetheringManager, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct NetworkOperatorTetheringOperationResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(NetworkOperatorTetheringOperationResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl NetworkOperatorTetheringOperationResult { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -6655,17 +5494,15 @@ impl ::windows_core::RuntimeType for NetworkOperatorTetheringOperationResult { } unsafe impl ::windows_core::Interface for NetworkOperatorTetheringOperationResult { type Vtable = INetworkOperatorTetheringOperationResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for NetworkOperatorTetheringOperationResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for NetworkOperatorTetheringOperationResult { const NAME: &'static str = "Windows.Networking.NetworkOperators.NetworkOperatorTetheringOperationResult"; } -::windows_core::imp::interface_hierarchy!(NetworkOperatorTetheringOperationResult, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ProvisionFromXmlDocumentResults(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ProvisionFromXmlDocumentResults, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ProvisionFromXmlDocumentResults { pub fn AllElementsProvisioned(&self) -> ::windows_core::Result { let this = self; @@ -6687,17 +5524,15 @@ impl ::windows_core::RuntimeType for ProvisionFromXmlDocumentResults { } unsafe impl ::windows_core::Interface for ProvisionFromXmlDocumentResults { type Vtable = IProvisionFromXmlDocumentResults_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ProvisionFromXmlDocumentResults { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ProvisionFromXmlDocumentResults { const NAME: &'static str = "Windows.Networking.NetworkOperators.ProvisionFromXmlDocumentResults"; } -::windows_core::imp::interface_hierarchy!(ProvisionFromXmlDocumentResults, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ProvisionedProfile(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ProvisionedProfile, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ProvisionedProfile { #[doc = "Required features: `\"Networking_Connectivity\"`"] #[cfg(feature = "Networking_Connectivity")] @@ -6715,17 +5550,15 @@ impl ::windows_core::RuntimeType for ProvisionedProfile { } unsafe impl ::windows_core::Interface for ProvisionedProfile { type Vtable = IProvisionedProfile_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ProvisionedProfile { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ProvisionedProfile { const NAME: &'static str = "Windows.Networking.NetworkOperators.ProvisionedProfile"; } -::windows_core::imp::interface_hierarchy!(ProvisionedProfile, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ProvisioningAgent(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ProvisioningAgent, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ProvisioningAgent { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -6765,17 +5598,15 @@ impl ::windows_core::RuntimeType for ProvisioningAgent { } unsafe impl ::windows_core::Interface for ProvisioningAgent { type Vtable = IProvisioningAgent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ProvisioningAgent { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ProvisioningAgent { const NAME: &'static str = "Windows.Networking.NetworkOperators.ProvisioningAgent"; } -::windows_core::imp::interface_hierarchy!(ProvisioningAgent, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct TetheringEntitlementCheckTriggerDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(TetheringEntitlementCheckTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl TetheringEntitlementCheckTriggerDetails { pub fn NetworkAccountId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -6798,19 +5629,17 @@ impl ::windows_core::RuntimeType for TetheringEntitlementCheckTriggerDetails { } unsafe impl ::windows_core::Interface for TetheringEntitlementCheckTriggerDetails { type Vtable = ITetheringEntitlementCheckTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TetheringEntitlementCheckTriggerDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for TetheringEntitlementCheckTriggerDetails { const NAME: &'static str = "Windows.Networking.NetworkOperators.TetheringEntitlementCheckTriggerDetails"; } -::windows_core::imp::interface_hierarchy!(TetheringEntitlementCheckTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for TetheringEntitlementCheckTriggerDetails {} unsafe impl ::core::marker::Sync for TetheringEntitlementCheckTriggerDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UssdMessage(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UssdMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UssdMessage { pub fn DataCodingScheme(&self) -> ::windows_core::Result { let this = self; @@ -6862,19 +5691,17 @@ impl ::windows_core::RuntimeType for UssdMessage { } unsafe impl ::windows_core::Interface for UssdMessage { type Vtable = IUssdMessage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UssdMessage { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UssdMessage { const NAME: &'static str = "Windows.Networking.NetworkOperators.UssdMessage"; } -::windows_core::imp::interface_hierarchy!(UssdMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UssdMessage {} unsafe impl ::core::marker::Sync for UssdMessage {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UssdReply(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UssdReply, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UssdReply { pub fn ResultCode(&self) -> ::windows_core::Result { let this = self; @@ -6896,17 +5723,15 @@ impl ::windows_core::RuntimeType for UssdReply { } unsafe impl ::windows_core::Interface for UssdReply { type Vtable = IUssdReply_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UssdReply { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UssdReply { const NAME: &'static str = "Windows.Networking.NetworkOperators.UssdReply"; } -::windows_core::imp::interface_hierarchy!(UssdReply, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UssdSession(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UssdSession, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UssdSession { pub fn SendMessageAndGetReplyAsync(&self, message: P0) -> ::windows_core::Result> where @@ -6945,14 +5770,11 @@ impl ::windows_core::RuntimeType for UssdSession { } unsafe impl ::windows_core::Interface for UssdSession { type Vtable = IUssdSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UssdSession { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UssdSession { const NAME: &'static str = "Windows.Networking.NetworkOperators.UssdSession"; } -::windows_core::imp::interface_hierarchy!(UssdSession, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::marker::Copy, ::core::clone::Clone, ::core::default::Default)] pub struct DataClasses(pub u32); diff --git a/crates/libs/windows/src/Windows/Networking/Proximity/mod.rs b/crates/libs/windows/src/Windows/Networking/Proximity/mod.rs index 20fcab5420..bc53d60caf 100644 --- a/crates/libs/windows/src/Windows/Networking/Proximity/mod.rs +++ b/crates/libs/windows/src/Windows/Networking/Proximity/mod.rs @@ -1,29 +1,11 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IConnectionRequestedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IConnectionRequestedEventArgs { - type Vtable = IConnectionRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IConnectionRequestedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeb6891ae_4f1e_4c66_bd0d_46924a942e08); -} +::windows_core::imp::com_interface!(IConnectionRequestedEventArgs, IConnectionRequestedEventArgs_Vtbl, 0xeb6891ae_4f1e_4c66_bd0d_46924a942e08); #[repr(C)] #[doc(hidden)] pub struct IConnectionRequestedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub PeerInformation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPeerFinderStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPeerFinderStatics { - type Vtable = IPeerFinderStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPeerFinderStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x914b3b61_f6e1_47c4_a14c_148a1903d0c6); -} +::windows_core::imp::com_interface!(IPeerFinderStatics, IPeerFinderStatics_Vtbl, 0x914b3b61_f6e1_47c4_a14c_148a1903d0c6); #[repr(C)] #[doc(hidden)] pub struct IPeerFinderStatics_Vtbl { @@ -57,16 +39,7 @@ pub struct IPeerFinderStatics_Vtbl { #[cfg(not(feature = "Networking_Sockets"))] ConnectAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPeerFinderStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPeerFinderStatics2 { - type Vtable = IPeerFinderStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPeerFinderStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd6e73c65_fdd0_4b0b_9312_866408935d82); -} +::windows_core::imp::com_interface!(IPeerFinderStatics2, IPeerFinderStatics2_Vtbl, 0xd6e73c65_fdd0_4b0b_9312_866408935d82); #[repr(C)] #[doc(hidden)] pub struct IPeerFinderStatics2_Vtbl { @@ -83,32 +56,14 @@ pub struct IPeerFinderStatics2_Vtbl { SetDiscoveryData: usize, pub CreateWatcher: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPeerInformation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPeerInformation { - type Vtable = IPeerInformation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPeerInformation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x20024f08_9fff_45f4_b6e9_408b2ebef373); -} +::windows_core::imp::com_interface!(IPeerInformation, IPeerInformation_Vtbl, 0x20024f08_9fff_45f4_b6e9_408b2ebef373); #[repr(C)] #[doc(hidden)] pub struct IPeerInformation_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub DisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPeerInformation3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPeerInformation3 { - type Vtable = IPeerInformation3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPeerInformation3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb20f612a_dbd0_40f8_95bd_2d4209c7836f); -} +::windows_core::imp::com_interface!(IPeerInformation3, IPeerInformation3_Vtbl, 0xb20f612a_dbd0_40f8_95bd_2d4209c7836f); #[repr(C)] #[doc(hidden)] pub struct IPeerInformation3_Vtbl { @@ -119,16 +74,7 @@ pub struct IPeerInformation3_Vtbl { #[cfg(not(feature = "Storage_Streams"))] DiscoveryData: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPeerInformationWithHostAndService(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPeerInformationWithHostAndService { - type Vtable = IPeerInformationWithHostAndService_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPeerInformationWithHostAndService { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xecc7ccad_1b70_4e8b_92db_bbe781419308); -} +::windows_core::imp::com_interface!(IPeerInformationWithHostAndService, IPeerInformationWithHostAndService_Vtbl, 0xecc7ccad_1b70_4e8b_92db_bbe781419308); #[repr(C)] #[doc(hidden)] pub struct IPeerInformationWithHostAndService_Vtbl { @@ -136,16 +82,7 @@ pub struct IPeerInformationWithHostAndService_Vtbl { pub HostName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ServiceName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPeerWatcher(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPeerWatcher { - type Vtable = IPeerWatcher_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPeerWatcher { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3cee21f8_2fa6_4679_9691_03c94a420f34); -} +::windows_core::imp::com_interface!(IPeerWatcher, IPeerWatcher_Vtbl, 0x3cee21f8_2fa6_4679_9691_03c94a420f34); #[repr(C)] #[doc(hidden)] pub struct IPeerWatcher_Vtbl { @@ -164,16 +101,7 @@ pub struct IPeerWatcher_Vtbl { pub Start: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Stop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProximityDevice(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProximityDevice { - type Vtable = IProximityDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProximityDevice { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xefa8a552_f6e1_4329_a0fc_ab6b0fd28262); -} +::windows_core::imp::com_interface!(IProximityDevice, IProximityDevice_Vtbl, 0xefa8a552_f6e1_4329_a0fc_ab6b0fd28262); #[repr(C)] #[doc(hidden)] pub struct IProximityDevice_Vtbl { @@ -201,16 +129,7 @@ pub struct IProximityDevice_Vtbl { pub BitsPerSecond: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u64) -> ::windows_core::HRESULT, pub DeviceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProximityDeviceStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProximityDeviceStatics { - type Vtable = IProximityDeviceStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProximityDeviceStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x914ba01d_f6e1_47c4_a14c_148a1903d0c6); -} +::windows_core::imp::com_interface!(IProximityDeviceStatics, IProximityDeviceStatics_Vtbl, 0x914ba01d_f6e1_47c4_a14c_148a1903d0c6); #[repr(C)] #[doc(hidden)] pub struct IProximityDeviceStatics_Vtbl { @@ -219,16 +138,7 @@ pub struct IProximityDeviceStatics_Vtbl { pub GetDefault: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub FromId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, deviceid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProximityMessage(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProximityMessage { - type Vtable = IProximityMessage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProximityMessage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xefab0782_f6e1_4675_a045_d8e320c24808); -} +::windows_core::imp::com_interface!(IProximityMessage, IProximityMessage_Vtbl, 0xefab0782_f6e1_4675_a045_d8e320c24808); #[repr(C)] #[doc(hidden)] pub struct IProximityMessage_Vtbl { @@ -241,16 +151,7 @@ pub struct IProximityMessage_Vtbl { Data: usize, pub DataAsString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITriggeredConnectionStateChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITriggeredConnectionStateChangedEventArgs { - type Vtable = ITriggeredConnectionStateChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITriggeredConnectionStateChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc6a780ad_f6e1_4d54_96e2_33f620bca88a); -} +::windows_core::imp::com_interface!(ITriggeredConnectionStateChangedEventArgs, ITriggeredConnectionStateChangedEventArgs_Vtbl, 0xc6a780ad_f6e1_4d54_96e2_33f620bca88a); #[repr(C)] #[doc(hidden)] pub struct ITriggeredConnectionStateChangedEventArgs_Vtbl { @@ -265,6 +166,7 @@ pub struct ITriggeredConnectionStateChangedEventArgs_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ConnectionRequestedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ConnectionRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ConnectionRequestedEventArgs { pub fn PeerInformation(&self) -> ::windows_core::Result { let this = self; @@ -279,14 +181,11 @@ impl ::windows_core::RuntimeType for ConnectionRequestedEventArgs { } unsafe impl ::windows_core::Interface for ConnectionRequestedEventArgs { type Vtable = IConnectionRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ConnectionRequestedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ConnectionRequestedEventArgs { const NAME: &'static str = "Windows.Networking.Proximity.ConnectionRequestedEventArgs"; } -::windows_core::imp::interface_hierarchy!(ConnectionRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ConnectionRequestedEventArgs {} unsafe impl ::core::marker::Sync for ConnectionRequestedEventArgs {} pub struct PeerFinder; @@ -414,9 +313,9 @@ impl PeerFinder { #[cfg(feature = "Storage_Streams")] pub fn SetDiscoveryData(value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - Self::IPeerFinderStatics2(|this| unsafe { (::windows_core::Interface::vtable(this).SetDiscoveryData)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() }) + Self::IPeerFinderStatics2(|this| unsafe { (::windows_core::Interface::vtable(this).SetDiscoveryData)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() }) } pub fn CreateWatcher() -> ::windows_core::Result { Self::IPeerFinderStatics2(|this| unsafe { @@ -441,6 +340,7 @@ impl ::windows_core::RuntimeName for PeerFinder { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PeerInformation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PeerInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PeerInformation { pub fn DisplayName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -450,7 +350,7 @@ impl PeerInformation { } } pub fn Id(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Id)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -459,21 +359,21 @@ impl PeerInformation { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn DiscoveryData(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DiscoveryData)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn HostName(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).HostName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ServiceName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ServiceName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -485,19 +385,17 @@ impl ::windows_core::RuntimeType for PeerInformation { } unsafe impl ::windows_core::Interface for PeerInformation { type Vtable = IPeerInformation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PeerInformation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PeerInformation { const NAME: &'static str = "Windows.Networking.Proximity.PeerInformation"; } -::windows_core::imp::interface_hierarchy!(PeerInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PeerInformation {} unsafe impl ::core::marker::Sync for PeerInformation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PeerWatcher(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PeerWatcher, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PeerWatcher { pub fn Added(&self, handler: P0) -> ::windows_core::Result where @@ -590,19 +488,17 @@ impl ::windows_core::RuntimeType for PeerWatcher { } unsafe impl ::windows_core::Interface for PeerWatcher { type Vtable = IPeerWatcher_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PeerWatcher { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PeerWatcher { const NAME: &'static str = "Windows.Networking.Proximity.PeerWatcher"; } -::windows_core::imp::interface_hierarchy!(PeerWatcher, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PeerWatcher {} unsafe impl ::core::marker::Sync for PeerWatcher {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ProximityDevice(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ProximityDevice, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ProximityDevice { pub fn SubscribeForMessage(&self, messagetype: &::windows_core::HSTRING, messagereceivedhandler: P0) -> ::windows_core::Result where @@ -635,25 +531,25 @@ impl ProximityDevice { #[cfg(feature = "Storage_Streams")] pub fn PublishBinaryMessage(&self, messagetype: &::windows_core::HSTRING, message: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).PublishBinaryMessage)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(messagetype), message.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn PublishBinaryMessageWithCallback(&self, messagetype: &::windows_core::HSTRING, message: P0, messagetransmittedhandler: P1) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), messagetransmittedhandler.into_param().abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) } } pub fn PublishUriMessage(&self, message: P0) -> ::windows_core::Result @@ -763,19 +659,17 @@ impl ::windows_core::RuntimeType for ProximityDevice { } unsafe impl ::windows_core::Interface for ProximityDevice { type Vtable = IProximityDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ProximityDevice { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ProximityDevice { const NAME: &'static str = "Windows.Networking.Proximity.ProximityDevice"; } -::windows_core::imp::interface_hierarchy!(ProximityDevice, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ProximityDevice {} unsafe impl ::core::marker::Sync for ProximityDevice {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ProximityMessage(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ProximityMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ProximityMessage { pub fn MessageType(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -813,19 +707,17 @@ impl ::windows_core::RuntimeType for ProximityMessage { } unsafe impl ::windows_core::Interface for ProximityMessage { type Vtable = IProximityMessage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ProximityMessage { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ProximityMessage { const NAME: &'static str = "Windows.Networking.Proximity.ProximityMessage"; } -::windows_core::imp::interface_hierarchy!(ProximityMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ProximityMessage {} unsafe impl ::core::marker::Sync for ProximityMessage {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct TriggeredConnectionStateChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(TriggeredConnectionStateChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl TriggeredConnectionStateChangedEventArgs { pub fn State(&self) -> ::windows_core::Result { let this = self; @@ -856,14 +748,11 @@ impl ::windows_core::RuntimeType for TriggeredConnectionStateChangedEventArgs { } unsafe impl ::windows_core::Interface for TriggeredConnectionStateChangedEventArgs { type Vtable = ITriggeredConnectionStateChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TriggeredConnectionStateChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for TriggeredConnectionStateChangedEventArgs { const NAME: &'static str = "Windows.Networking.Proximity.TriggeredConnectionStateChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(TriggeredConnectionStateChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for TriggeredConnectionStateChangedEventArgs {} unsafe impl ::core::marker::Sync for TriggeredConnectionStateChangedEventArgs {} #[repr(transparent)] @@ -981,9 +870,7 @@ impl ::core::fmt::Debug for TriggeredConnectState { impl ::windows_core::RuntimeType for TriggeredConnectState { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::from_slice(b"enum(Windows.Networking.Proximity.TriggeredConnectState;i4)"); } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct DeviceArrivedEventHandler(pub ::windows_core::IUnknown); +::windows_core::imp::com_interface!(DeviceArrivedEventHandler, DeviceArrivedEventHandler_Vtbl, 0xefa9da69_f6e1_49c9_a49e_8e0fc58fb911); impl DeviceArrivedEventHandler { pub fn new) -> ::windows_core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = DeviceArrivedEventHandlerBox:: { vtable: &DeviceArrivedEventHandlerBox::::VTABLE, count: ::windows_core::imp::RefCount::new(1), invoke }; @@ -1013,7 +900,7 @@ impl) -> ::windows_core::Resul if iid.is_null() || interface.is_null() { return ::windows_core::HRESULT(-2147467261); } - *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; + *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::Interface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::Interface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; if (*interface).is_null() { ::windows_core::HRESULT(-2147467262) } else { @@ -1038,12 +925,6 @@ impl) -> ::windows_core::Resul ((*this).invoke)(::windows_core::from_raw_borrowed(&sender)).into() } } -unsafe impl ::windows_core::Interface for DeviceArrivedEventHandler { - type Vtable = DeviceArrivedEventHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DeviceArrivedEventHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xefa9da69_f6e1_49c9_a49e_8e0fc58fb911); -} impl ::windows_core::RuntimeType for DeviceArrivedEventHandler { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } @@ -1053,9 +934,7 @@ pub struct DeviceArrivedEventHandler_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Invoke: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sender: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct DeviceDepartedEventHandler(pub ::windows_core::IUnknown); +::windows_core::imp::com_interface!(DeviceDepartedEventHandler, DeviceDepartedEventHandler_Vtbl, 0xefa9da69_f6e2_49c9_a49e_8e0fc58fb911); impl DeviceDepartedEventHandler { pub fn new) -> ::windows_core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = DeviceDepartedEventHandlerBox:: { vtable: &DeviceDepartedEventHandlerBox::::VTABLE, count: ::windows_core::imp::RefCount::new(1), invoke }; @@ -1085,7 +964,7 @@ impl) -> ::windows_core::Resul if iid.is_null() || interface.is_null() { return ::windows_core::HRESULT(-2147467261); } - *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; + *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::Interface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::Interface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; if (*interface).is_null() { ::windows_core::HRESULT(-2147467262) } else { @@ -1110,12 +989,6 @@ impl) -> ::windows_core::Resul ((*this).invoke)(::windows_core::from_raw_borrowed(&sender)).into() } } -unsafe impl ::windows_core::Interface for DeviceDepartedEventHandler { - type Vtable = DeviceDepartedEventHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DeviceDepartedEventHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xefa9da69_f6e2_49c9_a49e_8e0fc58fb911); -} impl ::windows_core::RuntimeType for DeviceDepartedEventHandler { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } @@ -1125,9 +998,7 @@ pub struct DeviceDepartedEventHandler_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Invoke: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sender: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct MessageReceivedHandler(pub ::windows_core::IUnknown); +::windows_core::imp::com_interface!(MessageReceivedHandler, MessageReceivedHandler_Vtbl, 0xefab0782_f6e2_4675_a045_d8e320c24808); impl MessageReceivedHandler { pub fn new, ::core::option::Option<&ProximityMessage>) -> ::windows_core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = MessageReceivedHandlerBox:: { vtable: &MessageReceivedHandlerBox::::VTABLE, count: ::windows_core::imp::RefCount::new(1), invoke }; @@ -1158,7 +1029,7 @@ impl, ::core::option::Option<& if iid.is_null() || interface.is_null() { return ::windows_core::HRESULT(-2147467261); } - *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; + *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::Interface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::Interface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; if (*interface).is_null() { ::windows_core::HRESULT(-2147467262) } else { @@ -1183,12 +1054,6 @@ impl, ::core::option::Option<& ((*this).invoke)(::windows_core::from_raw_borrowed(&sender), ::windows_core::from_raw_borrowed(&message)).into() } } -unsafe impl ::windows_core::Interface for MessageReceivedHandler { - type Vtable = MessageReceivedHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MessageReceivedHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xefab0782_f6e2_4675_a045_d8e320c24808); -} impl ::windows_core::RuntimeType for MessageReceivedHandler { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } @@ -1198,9 +1063,7 @@ pub struct MessageReceivedHandler_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Invoke: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sender: *mut ::core::ffi::c_void, message: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct MessageTransmittedHandler(pub ::windows_core::IUnknown); +::windows_core::imp::com_interface!(MessageTransmittedHandler, MessageTransmittedHandler_Vtbl, 0xefaa0b4a_f6e2_4d7d_856c_78fc8efc021e); impl MessageTransmittedHandler { pub fn new, i64) -> ::windows_core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = MessageTransmittedHandlerBox:: { vtable: &MessageTransmittedHandlerBox::::VTABLE, count: ::windows_core::imp::RefCount::new(1), invoke }; @@ -1230,7 +1093,7 @@ impl, i64) -> ::windows_core:: if iid.is_null() || interface.is_null() { return ::windows_core::HRESULT(-2147467261); } - *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; + *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::Interface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::Interface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; if (*interface).is_null() { ::windows_core::HRESULT(-2147467262) } else { @@ -1255,12 +1118,6 @@ impl, i64) -> ::windows_core:: ((*this).invoke)(::windows_core::from_raw_borrowed(&sender), messageid).into() } } -unsafe impl ::windows_core::Interface for MessageTransmittedHandler { - type Vtable = MessageTransmittedHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MessageTransmittedHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xefaa0b4a_f6e2_4d7d_856c_78fc8efc021e); -} impl ::windows_core::RuntimeType for MessageTransmittedHandler { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } diff --git a/crates/libs/windows/src/Windows/Networking/PushNotifications/mod.rs b/crates/libs/windows/src/Windows/Networking/PushNotifications/mod.rs index 3cbeceef9c..3ce6825d5e 100644 --- a/crates/libs/windows/src/Windows/Networking/PushNotifications/mod.rs +++ b/crates/libs/windows/src/Windows/Networking/PushNotifications/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPushNotificationChannel(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPushNotificationChannel { - type Vtable = IPushNotificationChannel_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPushNotificationChannel { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2b28102e_ef0b_4f39_9b8a_a3c194de7081); -} +::windows_core::imp::com_interface!(IPushNotificationChannel, IPushNotificationChannel_Vtbl, 0x2b28102e_ef0b_4f39_9b8a_a3c194de7081); #[repr(C)] #[doc(hidden)] pub struct IPushNotificationChannel_Vtbl { @@ -18,16 +9,7 @@ pub struct IPushNotificationChannel_Vtbl { pub PushNotificationReceived: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemovePushNotificationReceived: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPushNotificationChannelManagerForUser(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPushNotificationChannelManagerForUser { - type Vtable = IPushNotificationChannelManagerForUser_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPushNotificationChannelManagerForUser { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa4c45704_1182_42c7_8890_f563c4890dc4); -} +::windows_core::imp::com_interface!(IPushNotificationChannelManagerForUser, IPushNotificationChannelManagerForUser_Vtbl, 0xa4c45704_1182_42c7_8890_f563c4890dc4); #[repr(C)] #[doc(hidden)] pub struct IPushNotificationChannelManagerForUser_Vtbl { @@ -40,16 +22,7 @@ pub struct IPushNotificationChannelManagerForUser_Vtbl { #[cfg(not(feature = "System"))] User: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPushNotificationChannelManagerForUser2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPushNotificationChannelManagerForUser2 { - type Vtable = IPushNotificationChannelManagerForUser2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPushNotificationChannelManagerForUser2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc38b066a_7cc1_4dac_87fd_be6e920414a4); -} +::windows_core::imp::com_interface!(IPushNotificationChannelManagerForUser2, IPushNotificationChannelManagerForUser2_Vtbl, 0xc38b066a_7cc1_4dac_87fd_be6e920414a4); #[repr(C)] #[doc(hidden)] pub struct IPushNotificationChannelManagerForUser2_Vtbl { @@ -63,16 +36,7 @@ pub struct IPushNotificationChannelManagerForUser2_Vtbl { #[cfg(not(feature = "Storage_Streams"))] CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsyncWithId: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPushNotificationChannelManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPushNotificationChannelManagerStatics { - type Vtable = IPushNotificationChannelManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPushNotificationChannelManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8baf9b65_77a1_4588_bd19_861529a9dcf0); -} +::windows_core::imp::com_interface!(IPushNotificationChannelManagerStatics, IPushNotificationChannelManagerStatics_Vtbl, 0x8baf9b65_77a1_4588_bd19_861529a9dcf0); #[repr(C)] #[doc(hidden)] pub struct IPushNotificationChannelManagerStatics_Vtbl { @@ -81,16 +45,7 @@ pub struct IPushNotificationChannelManagerStatics_Vtbl { pub CreatePushNotificationChannelForApplicationAsyncWithId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, applicationid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreatePushNotificationChannelForSecondaryTileAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, tileid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPushNotificationChannelManagerStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPushNotificationChannelManagerStatics2 { - type Vtable = IPushNotificationChannelManagerStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPushNotificationChannelManagerStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb444a65d_a7e9_4b28_950e_f375a907f9df); -} +::windows_core::imp::com_interface!(IPushNotificationChannelManagerStatics2, IPushNotificationChannelManagerStatics2_Vtbl, 0xb444a65d_a7e9_4b28_950e_f375a907f9df); #[repr(C)] #[doc(hidden)] pub struct IPushNotificationChannelManagerStatics2_Vtbl { @@ -100,32 +55,14 @@ pub struct IPushNotificationChannelManagerStatics2_Vtbl { #[cfg(not(feature = "System"))] GetForUser: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPushNotificationChannelManagerStatics3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPushNotificationChannelManagerStatics3 { - type Vtable = IPushNotificationChannelManagerStatics3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPushNotificationChannelManagerStatics3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4701fefe_0ede_4a3f_ae78_bfa471496925); -} +::windows_core::imp::com_interface!(IPushNotificationChannelManagerStatics3, IPushNotificationChannelManagerStatics3_Vtbl, 0x4701fefe_0ede_4a3f_ae78_bfa471496925); #[repr(C)] #[doc(hidden)] pub struct IPushNotificationChannelManagerStatics3_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetDefault: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPushNotificationChannelManagerStatics4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPushNotificationChannelManagerStatics4 { - type Vtable = IPushNotificationChannelManagerStatics4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPushNotificationChannelManagerStatics4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbc540efb_7820_5a5b_9c01_b4757f774025); -} +::windows_core::imp::com_interface!(IPushNotificationChannelManagerStatics4, IPushNotificationChannelManagerStatics4_Vtbl, 0xbc540efb_7820_5a5b_9c01_b4757f774025); #[repr(C)] #[doc(hidden)] pub struct IPushNotificationChannelManagerStatics4_Vtbl { @@ -133,31 +70,13 @@ pub struct IPushNotificationChannelManagerStatics4_Vtbl { pub ChannelsRevoked: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveChannelsRevoked: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPushNotificationChannelsRevokedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPushNotificationChannelsRevokedEventArgs { - type Vtable = IPushNotificationChannelsRevokedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPushNotificationChannelsRevokedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x20e1a24c_1a34_5beb_aae2_40c232c8c140); -} +::windows_core::imp::com_interface!(IPushNotificationChannelsRevokedEventArgs, IPushNotificationChannelsRevokedEventArgs_Vtbl, 0x20e1a24c_1a34_5beb_aae2_40c232c8c140); #[repr(C)] #[doc(hidden)] pub struct IPushNotificationChannelsRevokedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPushNotificationReceivedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPushNotificationReceivedEventArgs { - type Vtable = IPushNotificationReceivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPushNotificationReceivedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd1065e0c_36cd_484c_b935_0a99b753cf00); -} +::windows_core::imp::com_interface!(IPushNotificationReceivedEventArgs, IPushNotificationReceivedEventArgs_Vtbl, 0xd1065e0c_36cd_484c_b935_0a99b753cf00); #[repr(C)] #[doc(hidden)] pub struct IPushNotificationReceivedEventArgs_Vtbl { @@ -179,32 +98,14 @@ pub struct IPushNotificationReceivedEventArgs_Vtbl { BadgeNotification: usize, pub RawNotification: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRawNotification(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRawNotification { - type Vtable = IRawNotification_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRawNotification { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1a227281_3b79_42ac_9963_22ab00d4f0b7); -} +::windows_core::imp::com_interface!(IRawNotification, IRawNotification_Vtbl, 0x1a227281_3b79_42ac_9963_22ab00d4f0b7); #[repr(C)] #[doc(hidden)] pub struct IRawNotification_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Content: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRawNotification2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRawNotification2 { - type Vtable = IRawNotification2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRawNotification2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe6d0cf19_0c6f_4cdd_9424_eec5be014d26); -} +::windows_core::imp::com_interface!(IRawNotification2, IRawNotification2_Vtbl, 0xe6d0cf19_0c6f_4cdd_9424_eec5be014d26); #[repr(C)] #[doc(hidden)] pub struct IRawNotification2_Vtbl { @@ -215,16 +116,7 @@ pub struct IRawNotification2_Vtbl { Headers: usize, pub ChannelId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRawNotification3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRawNotification3 { - type Vtable = IRawNotification3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRawNotification3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x62737dde_8a73_424c_ab44_5635f40a96e5); -} +::windows_core::imp::com_interface!(IRawNotification3, IRawNotification3_Vtbl, 0x62737dde_8a73_424c_ab44_5635f40a96e5); #[repr(C)] #[doc(hidden)] pub struct IRawNotification3_Vtbl { @@ -237,6 +129,7 @@ pub struct IRawNotification3_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PushNotificationChannel(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PushNotificationChannel, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PushNotificationChannel { pub fn Uri(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -276,14 +169,11 @@ impl ::windows_core::RuntimeType for PushNotificationChannel { } unsafe impl ::windows_core::Interface for PushNotificationChannel { type Vtable = IPushNotificationChannel_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PushNotificationChannel { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PushNotificationChannel { const NAME: &'static str = "Windows.Networking.PushNotifications.PushNotificationChannel"; } -::windows_core::imp::interface_hierarchy!(PushNotificationChannel, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PushNotificationChannel {} unsafe impl ::core::marker::Sync for PushNotificationChannel {} pub struct PushNotificationChannelManager; @@ -362,6 +252,7 @@ impl ::windows_core::RuntimeName for PushNotificationChannelManager { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PushNotificationChannelManagerForUser(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PushNotificationChannelManagerForUser, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PushNotificationChannelManagerForUser { pub fn CreatePushNotificationChannelForApplicationAsync(&self) -> ::windows_core::Result> { let this = self; @@ -397,24 +288,24 @@ impl PushNotificationChannelManagerForUser { #[cfg(feature = "Storage_Streams")] pub fn CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsync(&self, appserverkey: P0, channelid: &::windows_core::HSTRING) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), ::core::mem::transmute_copy(channelid), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsync)(::windows_core::Interface::as_raw(this), appserverkey.into_param().abi(), ::core::mem::transmute_copy(channelid), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Storage_Streams\"`"] #[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::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), ::core::mem::transmute_copy(channelid), ::core::mem::transmute_copy(appid), &mut result__).from_abi(result__) + (::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__).from_abi(result__) } } } @@ -423,38 +314,34 @@ impl ::windows_core::RuntimeType for PushNotificationChannelManagerForUser { } unsafe impl ::windows_core::Interface for PushNotificationChannelManagerForUser { type Vtable = IPushNotificationChannelManagerForUser_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PushNotificationChannelManagerForUser { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PushNotificationChannelManagerForUser { const NAME: &'static str = "Windows.Networking.PushNotifications.PushNotificationChannelManagerForUser"; } -::windows_core::imp::interface_hierarchy!(PushNotificationChannelManagerForUser, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PushNotificationChannelManagerForUser {} unsafe impl ::core::marker::Sync for PushNotificationChannelManagerForUser {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PushNotificationChannelsRevokedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PushNotificationChannelsRevokedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PushNotificationChannelsRevokedEventArgs {} impl ::windows_core::RuntimeType for PushNotificationChannelsRevokedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_class::(); } unsafe impl ::windows_core::Interface for PushNotificationChannelsRevokedEventArgs { type Vtable = IPushNotificationChannelsRevokedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PushNotificationChannelsRevokedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PushNotificationChannelsRevokedEventArgs { const NAME: &'static str = "Windows.Networking.PushNotifications.PushNotificationChannelsRevokedEventArgs"; } -::windows_core::imp::interface_hierarchy!(PushNotificationChannelsRevokedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PushNotificationChannelsRevokedEventArgs {} unsafe impl ::core::marker::Sync for PushNotificationChannelsRevokedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PushNotificationReceivedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PushNotificationReceivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PushNotificationReceivedEventArgs { pub fn SetCancel(&self, value: bool) -> ::windows_core::Result<()> { let this = self; @@ -514,19 +401,17 @@ impl ::windows_core::RuntimeType for PushNotificationReceivedEventArgs { } unsafe impl ::windows_core::Interface for PushNotificationReceivedEventArgs { type Vtable = IPushNotificationReceivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PushNotificationReceivedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PushNotificationReceivedEventArgs { const NAME: &'static str = "Windows.Networking.PushNotifications.PushNotificationReceivedEventArgs"; } -::windows_core::imp::interface_hierarchy!(PushNotificationReceivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PushNotificationReceivedEventArgs {} unsafe impl ::core::marker::Sync for PushNotificationReceivedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RawNotification(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RawNotification, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RawNotification { pub fn Content(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -538,14 +423,14 @@ impl RawNotification { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Headers(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Headers)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ChannelId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ChannelId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -554,7 +439,7 @@ impl RawNotification { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn ContentBytes(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ContentBytes)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -566,14 +451,11 @@ impl ::windows_core::RuntimeType for RawNotification { } unsafe impl ::windows_core::Interface for RawNotification { type Vtable = IRawNotification_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RawNotification { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RawNotification { const NAME: &'static str = "Windows.Networking.PushNotifications.RawNotification"; } -::windows_core::imp::interface_hierarchy!(RawNotification, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RawNotification {} unsafe impl ::core::marker::Sync for RawNotification {} #[repr(transparent)] 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 1ab4791533..c952e0c303 100644 --- a/crates/libs/windows/src/Windows/Networking/ServiceDiscovery/Dnssd/mod.rs +++ b/crates/libs/windows/src/Windows/Networking/ServiceDiscovery/Dnssd/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDnssdRegistrationResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDnssdRegistrationResult { - type Vtable = IDnssdRegistrationResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDnssdRegistrationResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3d786ad2_e606_5350_73ea_7e97f066162f); -} +::windows_core::imp::com_interface!(IDnssdRegistrationResult, IDnssdRegistrationResult_Vtbl, 0x3d786ad2_e606_5350_73ea_7e97f066162f); #[repr(C)] #[doc(hidden)] pub struct IDnssdRegistrationResult_Vtbl { @@ -16,16 +7,7 @@ pub struct IDnssdRegistrationResult_Vtbl { pub IPAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub HasInstanceNameChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDnssdServiceInstance(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDnssdServiceInstance { - type Vtable = IDnssdServiceInstance_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDnssdServiceInstance { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe246db7e_98a5_4ca1_b9e4_c253d33c35ff); -} +::windows_core::imp::com_interface!(IDnssdServiceInstance, IDnssdServiceInstance_Vtbl, 0xe246db7e_98a5_4ca1_b9e4_c253d33c35ff); #[repr(C)] #[doc(hidden)] pub struct IDnssdServiceInstance_Vtbl { @@ -61,32 +43,14 @@ pub struct IDnssdServiceInstance_Vtbl { #[cfg(not(all(feature = "Networking_Connectivity", feature = "Networking_Sockets")))] RegisterDatagramSocketAsync2: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDnssdServiceInstanceFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDnssdServiceInstanceFactory { - type Vtable = IDnssdServiceInstanceFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDnssdServiceInstanceFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6cb061a1_c478_4331_9684_4af2186c0a2b); -} +::windows_core::imp::com_interface!(IDnssdServiceInstanceFactory, IDnssdServiceInstanceFactory_Vtbl, 0x6cb061a1_c478_4331_9684_4af2186c0a2b); #[repr(C)] #[doc(hidden)] pub struct IDnssdServiceInstanceFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dnssdserviceinstancename: ::std::mem::MaybeUninit<::windows_core::HSTRING>, hostname: *mut ::core::ffi::c_void, port: u16, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDnssdServiceWatcher(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDnssdServiceWatcher { - type Vtable = IDnssdServiceWatcher_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDnssdServiceWatcher { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcc34d9c1_db7d_4b69_983d_c6f83f205682); -} +::windows_core::imp::com_interface!(IDnssdServiceWatcher, IDnssdServiceWatcher_Vtbl, 0xcc34d9c1_db7d_4b69_983d_c6f83f205682); #[repr(C)] #[doc(hidden)] pub struct IDnssdServiceWatcher_Vtbl { @@ -104,6 +68,8 @@ pub struct IDnssdServiceWatcher_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DnssdRegistrationResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DnssdRegistrationResult, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(DnssdRegistrationResult, super::super::super::Foundation::IStringable); impl DnssdRegistrationResult { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -134,7 +100,7 @@ impl DnssdRegistrationResult { } } pub fn ToString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ToString)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -146,20 +112,18 @@ impl ::windows_core::RuntimeType for DnssdRegistrationResult { } unsafe impl ::windows_core::Interface for DnssdRegistrationResult { type Vtable = IDnssdRegistrationResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DnssdRegistrationResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DnssdRegistrationResult { const NAME: &'static str = "Windows.Networking.ServiceDiscovery.Dnssd.DnssdRegistrationResult"; } -::windows_core::imp::interface_hierarchy!(DnssdRegistrationResult, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for DnssdRegistrationResult {} unsafe impl ::core::marker::Send for DnssdRegistrationResult {} unsafe impl ::core::marker::Sync for DnssdRegistrationResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DnssdServiceInstance(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DnssdServiceInstance, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(DnssdServiceInstance, super::super::super::Foundation::IStringable); impl DnssdServiceInstance { pub fn DnssdServiceInstanceName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -288,7 +252,7 @@ impl DnssdServiceInstance { }) } pub fn ToString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ToString)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -305,15 +269,11 @@ impl ::windows_core::RuntimeType for DnssdServiceInstance { } unsafe impl ::windows_core::Interface for DnssdServiceInstance { type Vtable = IDnssdServiceInstance_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DnssdServiceInstance { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DnssdServiceInstance { const NAME: &'static str = "Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstance"; } -::windows_core::imp::interface_hierarchy!(DnssdServiceInstance, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for DnssdServiceInstance {} unsafe impl ::core::marker::Send for DnssdServiceInstance {} unsafe impl ::core::marker::Sync for DnssdServiceInstance {} #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -322,11 +282,15 @@ unsafe impl ::core::marker::Sync for DnssdServiceInstance {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DnssdServiceInstanceCollection(::windows_core::IUnknown); #[cfg(feature = "Foundation_Collections")] +::windows_core::imp::interface_hierarchy!(DnssdServiceInstanceCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(DnssdServiceInstanceCollection, super::super::super::Foundation::Collections::IIterable::, super::super::super::Foundation::Collections::IVectorView::); +#[cfg(feature = "Foundation_Collections")] impl DnssdServiceInstanceCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -379,10 +343,7 @@ impl ::windows_core::RuntimeType for DnssdServiceInstanceCollection { #[cfg(feature = "Foundation_Collections")] unsafe impl ::windows_core::Interface for DnssdServiceInstanceCollection { type Vtable = super::super::super::Foundation::Collections::IVectorView_Vtbl; -} -#[cfg(feature = "Foundation_Collections")] -unsafe impl ::windows_core::ComInterface for DnssdServiceInstanceCollection { - const IID: ::windows_core::GUID = as ::windows_core::ComInterface>::IID; + const IID: ::windows_core::GUID = as ::windows_core::Interface>::IID; } #[cfg(feature = "Foundation_Collections")] impl ::windows_core::RuntimeName for DnssdServiceInstanceCollection { @@ -401,22 +362,17 @@ impl ::core::iter::IntoIterator for &DnssdServiceInstanceCollection { type Item = DnssdServiceInstance; type IntoIter = super::super::super::Foundation::Collections::VectorViewIterator; fn into_iter(self) -> Self::IntoIter { - super::super::super::Foundation::Collections::VectorViewIterator::new(::windows_core::ComInterface::cast(self).ok()) + super::super::super::Foundation::Collections::VectorViewIterator::new(::windows_core::Interface::cast(self).ok()) } } #[cfg(feature = "Foundation_Collections")] -::windows_core::imp::interface_hierarchy!(DnssdServiceInstanceCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for DnssdServiceInstanceCollection {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for DnssdServiceInstanceCollection {} -#[cfg(feature = "Foundation_Collections")] unsafe impl ::core::marker::Send for DnssdServiceInstanceCollection {} #[cfg(feature = "Foundation_Collections")] unsafe impl ::core::marker::Sync for DnssdServiceInstanceCollection {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DnssdServiceWatcher(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DnssdServiceWatcher, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DnssdServiceWatcher { pub fn Added(&self, handler: P0) -> ::windows_core::Result where @@ -481,14 +437,11 @@ impl ::windows_core::RuntimeType for DnssdServiceWatcher { } unsafe impl ::windows_core::Interface for DnssdServiceWatcher { type Vtable = IDnssdServiceWatcher_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DnssdServiceWatcher { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DnssdServiceWatcher { const NAME: &'static str = "Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceWatcher"; } -::windows_core::imp::interface_hierarchy!(DnssdServiceWatcher, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DnssdServiceWatcher {} unsafe impl ::core::marker::Sync for DnssdServiceWatcher {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Networking/Sockets/impl.rs b/crates/libs/windows/src/Windows/Networking/Sockets/impl.rs index da16104f0c..0a49f726cc 100644 --- a/crates/libs/windows/src/Windows/Networking/Sockets/impl.rs +++ b/crates/libs/windows/src/Windows/Networking/Sockets/impl.rs @@ -24,7 +24,7 @@ impl IControlChannelTriggerEventDetails_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IControlChannelTriggerResetEventDetails_Impl: Sized { @@ -78,7 +78,7 @@ impl IControlChannelTriggerResetEventDetails_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Storage_Streams\"`"] @@ -159,7 +159,7 @@ impl IWebSocket_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Security_Credentials\"`"] @@ -254,7 +254,7 @@ impl IWebSocketControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Security_Credentials\"`, `\"Security_Cryptography_Certificates\"`"] @@ -287,7 +287,7 @@ impl IWebSocketControl2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWebSocketInformation_Impl: Sized { @@ -343,7 +343,7 @@ impl IWebSocketInformation_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Security_Cryptography_Certificates\"`"] @@ -417,6 +417,6 @@ impl IWebSocketInformation2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/Networking/Sockets/mod.rs b/crates/libs/windows/src/Windows/Networking/Sockets/mod.rs index afac032d73..b3728f629c 100644 --- a/crates/libs/windows/src/Windows/Networking/Sockets/mod.rs +++ b/crates/libs/windows/src/Windows/Networking/Sockets/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IControlChannelTrigger(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IControlChannelTrigger { - type Vtable = IControlChannelTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IControlChannelTrigger { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7d1431a7_ee96_40e8_a199_8703cd969ec3); -} +::windows_core::imp::com_interface!(IControlChannelTrigger, IControlChannelTrigger_Vtbl, 0x7d1431a7_ee96_40e8_a199_8703cd969ec3); #[repr(C)] #[doc(hidden)] pub struct IControlChannelTrigger_Vtbl { @@ -30,25 +21,15 @@ pub struct IControlChannelTrigger_Vtbl { pub DecreaseNetworkKeepAliveInterval: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub FlushTransport: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IControlChannelTrigger2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IControlChannelTrigger2 { - type Vtable = IControlChannelTrigger2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IControlChannelTrigger2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaf00d237_51be_4514_9725_3556e1879580); -} +::windows_core::imp::com_interface!(IControlChannelTrigger2, IControlChannelTrigger2_Vtbl, 0xaf00d237_51be_4514_9725_3556e1879580); #[repr(C)] #[doc(hidden)] pub struct IControlChannelTrigger2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub IsWakeFromLowPowerSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IControlChannelTriggerEventDetails(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IControlChannelTriggerEventDetails, IControlChannelTriggerEventDetails_Vtbl, 0x1b36e047_89bb_4236_96ac_71d012bb4869); +::windows_core::imp::interface_hierarchy!(IControlChannelTriggerEventDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IControlChannelTriggerEventDetails { pub fn ControlChannelTrigger(&self) -> ::windows_core::Result { let this = self; @@ -58,32 +39,16 @@ impl IControlChannelTriggerEventDetails { } } } -::windows_core::imp::interface_hierarchy!(IControlChannelTriggerEventDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IControlChannelTriggerEventDetails { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IControlChannelTriggerEventDetails { - type Vtable = IControlChannelTriggerEventDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IControlChannelTriggerEventDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1b36e047_89bb_4236_96ac_71d012bb4869); -} #[repr(C)] #[doc(hidden)] pub struct IControlChannelTriggerEventDetails_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ControlChannelTrigger: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IControlChannelTriggerFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IControlChannelTriggerFactory { - type Vtable = IControlChannelTriggerFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IControlChannelTriggerFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xda4b7cf0_8d71_446f_88c3_b95184a2d6cd); -} +::windows_core::imp::com_interface!(IControlChannelTriggerFactory, IControlChannelTriggerFactory_Vtbl, 0xda4b7cf0_8d71_446f_88c3_b95184a2d6cd); #[repr(C)] #[doc(hidden)] pub struct IControlChannelTriggerFactory_Vtbl { @@ -91,9 +56,8 @@ pub struct IControlChannelTriggerFactory_Vtbl { pub CreateControlChannelTrigger: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, channelid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, serverkeepaliveintervalinminutes: u32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateControlChannelTriggerEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, channelid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, serverkeepaliveintervalinminutes: u32, resourcerequesttype: ControlChannelTriggerResourceType, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IControlChannelTriggerResetEventDetails(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IControlChannelTriggerResetEventDetails, IControlChannelTriggerResetEventDetails_Vtbl, 0x6851038e_8ec4_42fe_9bb2_21e91b7bfcb1); +::windows_core::imp::interface_hierarchy!(IControlChannelTriggerResetEventDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IControlChannelTriggerResetEventDetails { pub fn ResetReason(&self) -> ::windows_core::Result { let this = self; @@ -117,16 +81,9 @@ impl IControlChannelTriggerResetEventDetails { } } } -::windows_core::imp::interface_hierarchy!(IControlChannelTriggerResetEventDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IControlChannelTriggerResetEventDetails { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IControlChannelTriggerResetEventDetails { - type Vtable = IControlChannelTriggerResetEventDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IControlChannelTriggerResetEventDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6851038e_8ec4_42fe_9bb2_21e91b7bfcb1); -} #[repr(C)] #[doc(hidden)] pub struct IControlChannelTriggerResetEventDetails_Vtbl { @@ -135,16 +92,7 @@ pub struct IControlChannelTriggerResetEventDetails_Vtbl { pub HardwareSlotReset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SoftwareSlotReset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDatagramSocket(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDatagramSocket { - type Vtable = IDatagramSocket_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDatagramSocket { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7fe25bbb_c3bc_4677_8446_ca28a465a3af); -} +::windows_core::imp::com_interface!(IDatagramSocket, IDatagramSocket_Vtbl, 0x7fe25bbb_c3bc_4677_8446_ca28a465a3af); #[repr(C)] #[doc(hidden)] pub struct IDatagramSocket_Vtbl { @@ -171,16 +119,7 @@ pub struct IDatagramSocket_Vtbl { pub MessageReceived: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventhandler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveMessageReceived: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventcookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDatagramSocket2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDatagramSocket2 { - type Vtable = IDatagramSocket2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDatagramSocket2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd83ba354_9a9d_4185_a20a_1424c9c2a7cd); -} +::windows_core::imp::com_interface!(IDatagramSocket2, IDatagramSocket2_Vtbl, 0xd83ba354_9a9d_4185_a20a_1424c9c2a7cd); #[repr(C)] #[doc(hidden)] pub struct IDatagramSocket2_Vtbl { @@ -190,16 +129,7 @@ pub struct IDatagramSocket2_Vtbl { #[cfg(not(feature = "Networking_Connectivity"))] BindServiceNameAndAdapterAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDatagramSocket3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDatagramSocket3 { - type Vtable = IDatagramSocket3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDatagramSocket3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x37544f09_ab92_4306_9ac1_0c381283d9c6); -} +::windows_core::imp::com_interface!(IDatagramSocket3, IDatagramSocket3_Vtbl, 0x37544f09_ab92_4306_9ac1_0c381283d9c6); #[repr(C)] #[doc(hidden)] pub struct IDatagramSocket3_Vtbl { @@ -211,16 +141,7 @@ pub struct IDatagramSocket3_Vtbl { pub TransferOwnershipWithContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, socketid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, data: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub TransferOwnershipWithContextAndKeepAliveTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, socketid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, data: *mut ::core::ffi::c_void, keepalivetime: super::super::Foundation::TimeSpan) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDatagramSocketControl(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDatagramSocketControl { - type Vtable = IDatagramSocketControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDatagramSocketControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x52ac3f2e_349a_4135_bb58_b79b2647d390); -} +::windows_core::imp::com_interface!(IDatagramSocketControl, IDatagramSocketControl_Vtbl, 0x52ac3f2e_349a_4135_bb58_b79b2647d390); #[repr(C)] #[doc(hidden)] pub struct IDatagramSocketControl_Vtbl { @@ -230,16 +151,7 @@ pub struct IDatagramSocketControl_Vtbl { pub OutboundUnicastHopLimit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u8) -> ::windows_core::HRESULT, pub SetOutboundUnicastHopLimit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: u8) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDatagramSocketControl2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDatagramSocketControl2 { - type Vtable = IDatagramSocketControl2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDatagramSocketControl2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x33ead5c2_979c_4415_82a1_3cfaf646c192); -} +::windows_core::imp::com_interface!(IDatagramSocketControl2, IDatagramSocketControl2_Vtbl, 0x33ead5c2_979c_4415_82a1_3cfaf646c192); #[repr(C)] #[doc(hidden)] pub struct IDatagramSocketControl2_Vtbl { @@ -249,16 +161,7 @@ pub struct IDatagramSocketControl2_Vtbl { pub DontFragment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetDontFragment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDatagramSocketControl3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDatagramSocketControl3 { - type Vtable = IDatagramSocketControl3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDatagramSocketControl3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd4eb8256_1f6d_4598_9b57_d42a001df349); -} +::windows_core::imp::com_interface!(IDatagramSocketControl3, IDatagramSocketControl3_Vtbl, 0xd4eb8256_1f6d_4598_9b57_d42a001df349); #[repr(C)] #[doc(hidden)] pub struct IDatagramSocketControl3_Vtbl { @@ -266,16 +169,7 @@ pub struct IDatagramSocketControl3_Vtbl { pub MulticastOnly: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetMulticastOnly: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDatagramSocketInformation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDatagramSocketInformation { - type Vtable = IDatagramSocketInformation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDatagramSocketInformation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5f1a569a_55fb_48cd_9706_7a974f7b1585); -} +::windows_core::imp::com_interface!(IDatagramSocketInformation, IDatagramSocketInformation_Vtbl, 0x5f1a569a_55fb_48cd_9706_7a974f7b1585); #[repr(C)] #[doc(hidden)] pub struct IDatagramSocketInformation_Vtbl { @@ -285,16 +179,7 @@ pub struct IDatagramSocketInformation_Vtbl { pub RemoteAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RemotePort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDatagramSocketMessageReceivedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDatagramSocketMessageReceivedEventArgs { - type Vtable = IDatagramSocketMessageReceivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDatagramSocketMessageReceivedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9e2ddca2_1712_4ce4_b179_8c652c6d107e); -} +::windows_core::imp::com_interface!(IDatagramSocketMessageReceivedEventArgs, IDatagramSocketMessageReceivedEventArgs_Vtbl, 0x9e2ddca2_1712_4ce4_b179_8c652c6d107e); #[repr(C)] #[doc(hidden)] pub struct IDatagramSocketMessageReceivedEventArgs_Vtbl { @@ -311,16 +196,7 @@ pub struct IDatagramSocketMessageReceivedEventArgs_Vtbl { #[cfg(not(feature = "Storage_Streams"))] GetDataStream: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDatagramSocketStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDatagramSocketStatics { - type Vtable = IDatagramSocketStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDatagramSocketStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe9c62aee_1494_4a21_bb7e_8589fc751d9d); -} +::windows_core::imp::com_interface!(IDatagramSocketStatics, IDatagramSocketStatics_Vtbl, 0xe9c62aee_1494_4a21_bb7e_8589fc751d9d); #[repr(C)] #[doc(hidden)] pub struct IDatagramSocketStatics_Vtbl { @@ -334,16 +210,7 @@ pub struct IDatagramSocketStatics_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetEndpointPairsWithSortOptionsAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMessageWebSocket(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMessageWebSocket { - type Vtable = IMessageWebSocket_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMessageWebSocket { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x33727d08_34d5_4746_ad7b_8dde5bc2ef88); -} +::windows_core::imp::com_interface!(IMessageWebSocket, IMessageWebSocket_Vtbl, 0x33727d08_34d5_4746_ad7b_8dde5bc2ef88); #[repr(C)] #[doc(hidden)] pub struct IMessageWebSocket_Vtbl { @@ -353,16 +220,7 @@ pub struct IMessageWebSocket_Vtbl { pub MessageReceived: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventhandler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveMessageReceived: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventcookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMessageWebSocket2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMessageWebSocket2 { - type Vtable = IMessageWebSocket2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMessageWebSocket2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbed0cee7_f9c8_440a_9ad5_737281d9742e); -} +::windows_core::imp::com_interface!(IMessageWebSocket2, IMessageWebSocket2_Vtbl, 0xbed0cee7_f9c8_440a_9ad5_737281d9742e); #[repr(C)] #[doc(hidden)] pub struct IMessageWebSocket2_Vtbl { @@ -370,16 +228,7 @@ pub struct IMessageWebSocket2_Vtbl { pub ServerCustomValidationRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventhandler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveServerCustomValidationRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventcookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMessageWebSocket3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMessageWebSocket3 { - type Vtable = IMessageWebSocket3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMessageWebSocket3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x59d9defb_71af_4349_8487_911fcf681597); -} +::windows_core::imp::com_interface!(IMessageWebSocket3, IMessageWebSocket3_Vtbl, 0x59d9defb_71af_4349_8487_911fcf681597); #[repr(C)] #[doc(hidden)] pub struct IMessageWebSocket3_Vtbl { @@ -393,16 +242,7 @@ pub struct IMessageWebSocket3_Vtbl { #[cfg(not(feature = "Storage_Streams"))] SendFinalFrameAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMessageWebSocketControl(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMessageWebSocketControl { - type Vtable = IMessageWebSocketControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMessageWebSocketControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8118388a_c629_4f0a_80fb_81fc05538862); -} +::windows_core::imp::com_interface!(IMessageWebSocketControl, IMessageWebSocketControl_Vtbl, 0x8118388a_c629_4f0a_80fb_81fc05538862); #[repr(C)] #[doc(hidden)] pub struct IMessageWebSocketControl_Vtbl { @@ -412,16 +252,7 @@ pub struct IMessageWebSocketControl_Vtbl { pub MessageType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut SocketMessageType) -> ::windows_core::HRESULT, pub SetMessageType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: SocketMessageType) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMessageWebSocketControl2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMessageWebSocketControl2 { - type Vtable = IMessageWebSocketControl2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMessageWebSocketControl2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe30fd791_080c_400a_a712_27dfa9e744d8); -} +::windows_core::imp::com_interface!(IMessageWebSocketControl2, IMessageWebSocketControl2_Vtbl, 0xe30fd791_080c_400a_a712_27dfa9e744d8); #[repr(C)] #[doc(hidden)] pub struct IMessageWebSocketControl2_Vtbl { @@ -440,16 +271,7 @@ pub struct IMessageWebSocketControl2_Vtbl { #[cfg(not(feature = "Security_Cryptography_Certificates"))] SetClientCertificate: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMessageWebSocketMessageReceivedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMessageWebSocketMessageReceivedEventArgs { - type Vtable = IMessageWebSocketMessageReceivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMessageWebSocketMessageReceivedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x478c22ac_4c4b_42ed_9ed7_1ef9f94fa3d5); -} +::windows_core::imp::com_interface!(IMessageWebSocketMessageReceivedEventArgs, IMessageWebSocketMessageReceivedEventArgs_Vtbl, 0x478c22ac_4c4b_42ed_9ed7_1ef9f94fa3d5); #[repr(C)] #[doc(hidden)] pub struct IMessageWebSocketMessageReceivedEventArgs_Vtbl { @@ -464,32 +286,14 @@ pub struct IMessageWebSocketMessageReceivedEventArgs_Vtbl { #[cfg(not(feature = "Storage_Streams"))] GetDataStream: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMessageWebSocketMessageReceivedEventArgs2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMessageWebSocketMessageReceivedEventArgs2 { - type Vtable = IMessageWebSocketMessageReceivedEventArgs2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMessageWebSocketMessageReceivedEventArgs2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x89ce06fd_dd6f_4a07_87f9_f9eb4d89d83d); -} +::windows_core::imp::com_interface!(IMessageWebSocketMessageReceivedEventArgs2, IMessageWebSocketMessageReceivedEventArgs2_Vtbl, 0x89ce06fd_dd6f_4a07_87f9_f9eb4d89d83d); #[repr(C)] #[doc(hidden)] pub struct IMessageWebSocketMessageReceivedEventArgs2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub IsMessageComplete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IServerMessageWebSocket(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IServerMessageWebSocket { - type Vtable = IServerMessageWebSocket_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IServerMessageWebSocket { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe3ac9240_813b_5efd_7e11_ae2305fc77f1); -} +::windows_core::imp::com_interface!(IServerMessageWebSocket, IServerMessageWebSocket_Vtbl, 0xe3ac9240_813b_5efd_7e11_ae2305fc77f1); #[repr(C)] #[doc(hidden)] pub struct IServerMessageWebSocket_Vtbl { @@ -506,16 +310,7 @@ pub struct IServerMessageWebSocket_Vtbl { pub RemoveClosed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub CloseWithStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, code: u16, reason: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IServerMessageWebSocketControl(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IServerMessageWebSocketControl { - type Vtable = IServerMessageWebSocketControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IServerMessageWebSocketControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x69c2f051_1c1f_587a_4519_2181610192b7); -} +::windows_core::imp::com_interface!(IServerMessageWebSocketControl, IServerMessageWebSocketControl_Vtbl, 0x69c2f051_1c1f_587a_4519_2181610192b7); #[repr(C)] #[doc(hidden)] pub struct IServerMessageWebSocketControl_Vtbl { @@ -523,16 +318,7 @@ pub struct IServerMessageWebSocketControl_Vtbl { pub MessageType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut SocketMessageType) -> ::windows_core::HRESULT, pub SetMessageType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: SocketMessageType) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IServerMessageWebSocketInformation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IServerMessageWebSocketInformation { - type Vtable = IServerMessageWebSocketInformation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IServerMessageWebSocketInformation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfc32b45f_4448_5505_6cc9_09afa8915f5d); -} +::windows_core::imp::com_interface!(IServerMessageWebSocketInformation, IServerMessageWebSocketInformation_Vtbl, 0xfc32b45f_4448_5505_6cc9_09afa8915f5d); #[repr(C)] #[doc(hidden)] pub struct IServerMessageWebSocketInformation_Vtbl { @@ -541,16 +327,7 @@ pub struct IServerMessageWebSocketInformation_Vtbl { pub Protocol: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub LocalAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IServerStreamWebSocket(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IServerStreamWebSocket { - type Vtable = IServerStreamWebSocket_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IServerStreamWebSocket { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2ced5bbf_74f6_55e4_79df_9132680dfee8); -} +::windows_core::imp::com_interface!(IServerStreamWebSocket, IServerStreamWebSocket_Vtbl, 0x2ced5bbf_74f6_55e4_79df_9132680dfee8); #[repr(C)] #[doc(hidden)] pub struct IServerStreamWebSocket_Vtbl { @@ -568,16 +345,7 @@ pub struct IServerStreamWebSocket_Vtbl { pub RemoveClosed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub CloseWithStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, code: u16, reason: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IServerStreamWebSocketInformation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IServerStreamWebSocketInformation { - type Vtable = IServerStreamWebSocketInformation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IServerStreamWebSocketInformation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfc32b45f_4448_5505_6cc9_09aba8915f5d); -} +::windows_core::imp::com_interface!(IServerStreamWebSocketInformation, IServerStreamWebSocketInformation_Vtbl, 0xfc32b45f_4448_5505_6cc9_09aba8915f5d); #[repr(C)] #[doc(hidden)] pub struct IServerStreamWebSocketInformation_Vtbl { @@ -586,16 +354,7 @@ pub struct IServerStreamWebSocketInformation_Vtbl { pub Protocol: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub LocalAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISocketActivityContext(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISocketActivityContext { - type Vtable = ISocketActivityContext_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISocketActivityContext { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x43b04d64_4c85_4396_a637_1d973f6ebd49); -} +::windows_core::imp::com_interface!(ISocketActivityContext, ISocketActivityContext_Vtbl, 0x43b04d64_4c85_4396_a637_1d973f6ebd49); #[repr(C)] #[doc(hidden)] pub struct ISocketActivityContext_Vtbl { @@ -605,16 +364,7 @@ pub struct ISocketActivityContext_Vtbl { #[cfg(not(feature = "Storage_Streams"))] Data: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISocketActivityContextFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISocketActivityContextFactory { - type Vtable = ISocketActivityContextFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISocketActivityContextFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb99fc3c3_088c_4388_83ae_2525138e049a); -} +::windows_core::imp::com_interface!(ISocketActivityContextFactory, ISocketActivityContextFactory_Vtbl, 0xb99fc3c3_088c_4388_83ae_2525138e049a); #[repr(C)] #[doc(hidden)] pub struct ISocketActivityContextFactory_Vtbl { @@ -624,16 +374,7 @@ pub struct ISocketActivityContextFactory_Vtbl { #[cfg(not(feature = "Storage_Streams"))] Create: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISocketActivityInformation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISocketActivityInformation { - type Vtable = ISocketActivityInformation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISocketActivityInformation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8d8a42e4_a87e_4b74_9968_185b2511defe); -} +::windows_core::imp::com_interface!(ISocketActivityInformation, ISocketActivityInformation_Vtbl, 0x8d8a42e4_a87e_4b74_9968_185b2511defe); #[repr(C)] #[doc(hidden)] pub struct ISocketActivityInformation_Vtbl { @@ -646,16 +387,7 @@ pub struct ISocketActivityInformation_Vtbl { pub StreamSocket: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub StreamSocketListener: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISocketActivityInformationStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISocketActivityInformationStatics { - type Vtable = ISocketActivityInformationStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISocketActivityInformationStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8570b47a_7e7d_4736_8041_1327a6543c56); -} +::windows_core::imp::com_interface!(ISocketActivityInformationStatics, ISocketActivityInformationStatics_Vtbl, 0x8570b47a_7e7d_4736_8041_1327a6543c56); #[repr(C)] #[doc(hidden)] pub struct ISocketActivityInformationStatics_Vtbl { @@ -665,16 +397,7 @@ pub struct ISocketActivityInformationStatics_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] AllSockets: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISocketActivityTriggerDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISocketActivityTriggerDetails { - type Vtable = ISocketActivityTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISocketActivityTriggerDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x45f406a7_fc9f_4f81_acad_355fef51e67b); -} +::windows_core::imp::com_interface!(ISocketActivityTriggerDetails, ISocketActivityTriggerDetails_Vtbl, 0x45f406a7_fc9f_4f81_acad_355fef51e67b); #[repr(C)] #[doc(hidden)] pub struct ISocketActivityTriggerDetails_Vtbl { @@ -682,32 +405,14 @@ pub struct ISocketActivityTriggerDetails_Vtbl { pub Reason: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut SocketActivityTriggerReason) -> ::windows_core::HRESULT, pub SocketInformation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISocketErrorStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISocketErrorStatics { - type Vtable = ISocketErrorStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISocketErrorStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x828337f4_7d56_4d8e_b7b4_a07dd7c1bca9); -} +::windows_core::imp::com_interface!(ISocketErrorStatics, ISocketErrorStatics_Vtbl, 0x828337f4_7d56_4d8e_b7b4_a07dd7c1bca9); #[repr(C)] #[doc(hidden)] pub struct ISocketErrorStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hresult: i32, result__: *mut SocketErrorStatus) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStreamSocket(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStreamSocket { - type Vtable = IStreamSocket_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStreamSocket { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x69a22cf3_fc7b_4857_af38_f6e7de6a5b49); -} +::windows_core::imp::com_interface!(IStreamSocket, IStreamSocket_Vtbl, 0x69a22cf3_fc7b_4857_af38_f6e7de6a5b49); #[repr(C)] #[doc(hidden)] pub struct IStreamSocket_Vtbl { @@ -728,16 +433,7 @@ pub struct IStreamSocket_Vtbl { pub ConnectWithProtectionLevelAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, remotehostname: *mut ::core::ffi::c_void, remoteservicename: ::std::mem::MaybeUninit<::windows_core::HSTRING>, protectionlevel: SocketProtectionLevel, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub UpgradeToSslAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, protectionlevel: SocketProtectionLevel, validationhostname: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStreamSocket2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStreamSocket2 { - type Vtable = IStreamSocket2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStreamSocket2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x29d0e575_f314_4d09_adf0_0fbd967fbd9f); -} +::windows_core::imp::com_interface!(IStreamSocket2, IStreamSocket2_Vtbl, 0x29d0e575_f314_4d09_adf0_0fbd967fbd9f); #[repr(C)] #[doc(hidden)] pub struct IStreamSocket2_Vtbl { @@ -747,16 +443,7 @@ pub struct IStreamSocket2_Vtbl { #[cfg(not(feature = "Networking_Connectivity"))] ConnectWithProtectionLevelAndAdapterAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStreamSocket3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStreamSocket3 { - type Vtable = IStreamSocket3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStreamSocket3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3f430b00_9d28_4854_bac3_2301941ec223); -} +::windows_core::imp::com_interface!(IStreamSocket3, IStreamSocket3_Vtbl, 0x3f430b00_9d28_4854_bac3_2301941ec223); #[repr(C)] #[doc(hidden)] pub struct IStreamSocket3_Vtbl { @@ -768,16 +455,7 @@ pub struct IStreamSocket3_Vtbl { pub TransferOwnershipWithContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, socketid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, data: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub TransferOwnershipWithContextAndKeepAliveTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, socketid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, data: *mut ::core::ffi::c_void, keepalivetime: super::super::Foundation::TimeSpan) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStreamSocketControl(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStreamSocketControl { - type Vtable = IStreamSocketControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStreamSocketControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfe25adf1_92ab_4af3_9992_0f4c85e36cc4); -} +::windows_core::imp::com_interface!(IStreamSocketControl, IStreamSocketControl_Vtbl, 0xfe25adf1_92ab_4af3_9992_0f4c85e36cc4); #[repr(C)] #[doc(hidden)] pub struct IStreamSocketControl_Vtbl { @@ -793,16 +471,7 @@ pub struct IStreamSocketControl_Vtbl { pub OutboundUnicastHopLimit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u8) -> ::windows_core::HRESULT, pub SetOutboundUnicastHopLimit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: u8) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStreamSocketControl2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStreamSocketControl2 { - type Vtable = IStreamSocketControl2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStreamSocketControl2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc2d09a56_060f_44c1_b8e2_1fbf60bd62c5); -} +::windows_core::imp::com_interface!(IStreamSocketControl2, IStreamSocketControl2_Vtbl, 0xc2d09a56_060f_44c1_b8e2_1fbf60bd62c5); #[repr(C)] #[doc(hidden)] pub struct IStreamSocketControl2_Vtbl { @@ -812,16 +481,7 @@ pub struct IStreamSocketControl2_Vtbl { #[cfg(not(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates")))] IgnorableServerCertificateErrors: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStreamSocketControl3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStreamSocketControl3 { - type Vtable = IStreamSocketControl3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStreamSocketControl3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc56a444c_4e74_403e_894c_b31cae5c7342); -} +::windows_core::imp::com_interface!(IStreamSocketControl3, IStreamSocketControl3_Vtbl, 0xc56a444c_4e74_403e_894c_b31cae5c7342); #[repr(C)] #[doc(hidden)] pub struct IStreamSocketControl3_Vtbl { @@ -837,16 +497,7 @@ pub struct IStreamSocketControl3_Vtbl { #[cfg(not(feature = "Security_Cryptography_Certificates"))] SetClientCertificate: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStreamSocketControl4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStreamSocketControl4 { - type Vtable = IStreamSocketControl4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStreamSocketControl4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x964e2b3d_ec27_4888_b3ce_c74b418423ad); -} +::windows_core::imp::com_interface!(IStreamSocketControl4, IStreamSocketControl4_Vtbl, 0x964e2b3d_ec27_4888_b3ce_c74b418423ad); #[repr(C)] #[doc(hidden)] pub struct IStreamSocketControl4_Vtbl { @@ -854,16 +505,7 @@ pub struct IStreamSocketControl4_Vtbl { pub MinProtectionLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut SocketProtectionLevel) -> ::windows_core::HRESULT, pub SetMinProtectionLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: SocketProtectionLevel) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStreamSocketInformation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStreamSocketInformation { - type Vtable = IStreamSocketInformation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStreamSocketInformation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3b80ae30_5e68_4205_88f0_dc85d2e25ded); -} +::windows_core::imp::com_interface!(IStreamSocketInformation, IStreamSocketInformation_Vtbl, 0x3b80ae30_5e68_4205_88f0_dc85d2e25ded); #[repr(C)] #[doc(hidden)] pub struct IStreamSocketInformation_Vtbl { @@ -882,16 +524,7 @@ pub struct IStreamSocketInformation_Vtbl { #[cfg(not(feature = "Storage_Streams"))] SessionKey: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStreamSocketInformation2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStreamSocketInformation2 { - type Vtable = IStreamSocketInformation2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStreamSocketInformation2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x12c28452_4bdc_4ee4_976a_cf130e9d92e3); -} +::windows_core::imp::com_interface!(IStreamSocketInformation2, IStreamSocketInformation2_Vtbl, 0x12c28452_4bdc_4ee4_976a_cf130e9d92e3); #[repr(C)] #[doc(hidden)] pub struct IStreamSocketInformation2_Vtbl { @@ -910,16 +543,7 @@ pub struct IStreamSocketInformation2_Vtbl { #[cfg(not(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates")))] ServerIntermediateCertificates: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStreamSocketListener(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStreamSocketListener { - type Vtable = IStreamSocketListener_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStreamSocketListener { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xff513437_df9f_4df0_bf82_0ec5d7b35aae); -} +::windows_core::imp::com_interface!(IStreamSocketListener, IStreamSocketListener_Vtbl, 0xff513437_df9f_4df0_bf82_0ec5d7b35aae); #[repr(C)] #[doc(hidden)] pub struct IStreamSocketListener_Vtbl { @@ -931,16 +555,7 @@ pub struct IStreamSocketListener_Vtbl { pub ConnectionReceived: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventhandler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveConnectionReceived: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventcookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStreamSocketListener2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStreamSocketListener2 { - type Vtable = IStreamSocketListener2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStreamSocketListener2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x658dc13e_bb3e_4458_b232_ed1088694b98); -} +::windows_core::imp::com_interface!(IStreamSocketListener2, IStreamSocketListener2_Vtbl, 0x658dc13e_bb3e_4458_b232_ed1088694b98); #[repr(C)] #[doc(hidden)] pub struct IStreamSocketListener2_Vtbl { @@ -951,16 +566,7 @@ pub struct IStreamSocketListener2_Vtbl { #[cfg(not(feature = "Networking_Connectivity"))] BindServiceNameWithProtectionLevelAndAdapterAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStreamSocketListener3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStreamSocketListener3 { - type Vtable = IStreamSocketListener3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStreamSocketListener3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4798201c_bdf8_4919_8542_28d450e74507); -} +::windows_core::imp::com_interface!(IStreamSocketListener3, IStreamSocketListener3_Vtbl, 0x4798201c_bdf8_4919_8542_28d450e74507); #[repr(C)] #[doc(hidden)] pub struct IStreamSocketListener3_Vtbl { @@ -971,32 +577,14 @@ pub struct IStreamSocketListener3_Vtbl { pub TransferOwnership: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, socketid: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub TransferOwnershipWithContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, socketid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, data: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStreamSocketListenerConnectionReceivedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStreamSocketListenerConnectionReceivedEventArgs { - type Vtable = IStreamSocketListenerConnectionReceivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStreamSocketListenerConnectionReceivedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c472ea9_373f_447b_85b1_ddd4548803ba); -} +::windows_core::imp::com_interface!(IStreamSocketListenerConnectionReceivedEventArgs, IStreamSocketListenerConnectionReceivedEventArgs_Vtbl, 0x0c472ea9_373f_447b_85b1_ddd4548803ba); #[repr(C)] #[doc(hidden)] pub struct IStreamSocketListenerConnectionReceivedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Socket: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStreamSocketListenerControl(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStreamSocketListenerControl { - type Vtable = IStreamSocketListenerControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStreamSocketListenerControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x20d8c576_8d8a_4dba_9722_a16c4d984980); -} +::windows_core::imp::com_interface!(IStreamSocketListenerControl, IStreamSocketListenerControl_Vtbl, 0x20d8c576_8d8a_4dba_9722_a16c4d984980); #[repr(C)] #[doc(hidden)] pub struct IStreamSocketListenerControl_Vtbl { @@ -1004,16 +592,7 @@ pub struct IStreamSocketListenerControl_Vtbl { pub QualityOfService: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut SocketQualityOfService) -> ::windows_core::HRESULT, pub SetQualityOfService: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: SocketQualityOfService) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStreamSocketListenerControl2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStreamSocketListenerControl2 { - type Vtable = IStreamSocketListenerControl2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStreamSocketListenerControl2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x948bb665_2c3e_404b_b8b0_8eb249a2b0a1); -} +::windows_core::imp::com_interface!(IStreamSocketListenerControl2, IStreamSocketListenerControl2_Vtbl, 0x948bb665_2c3e_404b_b8b0_8eb249a2b0a1); #[repr(C)] #[doc(hidden)] pub struct IStreamSocketListenerControl2_Vtbl { @@ -1027,32 +606,14 @@ pub struct IStreamSocketListenerControl2_Vtbl { pub OutboundUnicastHopLimit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u8) -> ::windows_core::HRESULT, pub SetOutboundUnicastHopLimit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: u8) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStreamSocketListenerInformation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStreamSocketListenerInformation { - type Vtable = IStreamSocketListenerInformation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStreamSocketListenerInformation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe62ba82f_a63a_430b_bf62_29e93e5633b4); -} +::windows_core::imp::com_interface!(IStreamSocketListenerInformation, IStreamSocketListenerInformation_Vtbl, 0xe62ba82f_a63a_430b_bf62_29e93e5633b4); #[repr(C)] #[doc(hidden)] pub struct IStreamSocketListenerInformation_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub LocalPort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStreamSocketStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStreamSocketStatics { - type Vtable = IStreamSocketStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStreamSocketStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa420bc4a_6e2e_4af5_b556_355ae0cd4f29); -} +::windows_core::imp::com_interface!(IStreamSocketStatics, IStreamSocketStatics_Vtbl, 0xa420bc4a_6e2e_4af5_b556_355ae0cd4f29); #[repr(C)] #[doc(hidden)] pub struct IStreamSocketStatics_Vtbl { @@ -1066,16 +627,7 @@ pub struct IStreamSocketStatics_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetEndpointPairsWithSortOptionsAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStreamWebSocket(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStreamWebSocket { - type Vtable = IStreamWebSocket_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStreamWebSocket { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbd4a49d8_b289_45bb_97eb_c7525205a843); -} +::windows_core::imp::com_interface!(IStreamWebSocket, IStreamWebSocket_Vtbl, 0xbd4a49d8_b289_45bb_97eb_c7525205a843); #[repr(C)] #[doc(hidden)] pub struct IStreamWebSocket_Vtbl { @@ -1087,16 +639,7 @@ pub struct IStreamWebSocket_Vtbl { #[cfg(not(feature = "Storage_Streams"))] InputStream: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStreamWebSocket2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStreamWebSocket2 { - type Vtable = IStreamWebSocket2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStreamWebSocket2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaa4d08cb_93f5_4678_8236_57cce5417ed5); -} +::windows_core::imp::com_interface!(IStreamWebSocket2, IStreamWebSocket2_Vtbl, 0xaa4d08cb_93f5_4678_8236_57cce5417ed5); #[repr(C)] #[doc(hidden)] pub struct IStreamWebSocket2_Vtbl { @@ -1104,16 +647,7 @@ pub struct IStreamWebSocket2_Vtbl { pub ServerCustomValidationRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventhandler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveServerCustomValidationRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventcookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStreamWebSocketControl(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStreamWebSocketControl { - type Vtable = IStreamWebSocketControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStreamWebSocketControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb4f478b1_a45a_48db_953a_645b7d964c07); -} +::windows_core::imp::com_interface!(IStreamWebSocketControl, IStreamWebSocketControl_Vtbl, 0xb4f478b1_a45a_48db_953a_645b7d964c07); #[repr(C)] #[doc(hidden)] pub struct IStreamWebSocketControl_Vtbl { @@ -1121,16 +655,7 @@ pub struct IStreamWebSocketControl_Vtbl { pub NoDelay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetNoDelay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStreamWebSocketControl2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStreamWebSocketControl2 { - type Vtable = IStreamWebSocketControl2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStreamWebSocketControl2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x215d9f7e_fa58_40da_9f11_a48dafe95037); -} +::windows_core::imp::com_interface!(IStreamWebSocketControl2, IStreamWebSocketControl2_Vtbl, 0x215d9f7e_fa58_40da_9f11_a48dafe95037); #[repr(C)] #[doc(hidden)] pub struct IStreamWebSocketControl2_Vtbl { @@ -1147,9 +672,9 @@ pub struct IStreamWebSocketControl2_Vtbl { #[cfg(not(feature = "Security_Cryptography_Certificates"))] SetClientCertificate: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebSocket(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWebSocket, IWebSocket_Vtbl, 0xf877396f_99b1_4e18_bc08_850c9adf156e); +::windows_core::imp::interface_hierarchy!(IWebSocket, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IWebSocket, super::super::Foundation::IClosable); impl IWebSocket { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] @@ -1193,21 +718,13 @@ impl IWebSocket { unsafe { (::windows_core::Interface::vtable(this).CloseWithStatus)(::windows_core::Interface::as_raw(this), code, ::core::mem::transmute_copy(reason)).ok() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } } -::windows_core::imp::interface_hierarchy!(IWebSocket, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IWebSocket {} impl ::windows_core::RuntimeType for IWebSocket { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IWebSocket { - type Vtable = IWebSocket_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebSocket { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf877396f_99b1_4e18_bc08_850c9adf156e); -} #[repr(C)] #[doc(hidden)] pub struct IWebSocket_Vtbl { @@ -1222,16 +739,7 @@ pub struct IWebSocket_Vtbl { pub RemoveClosed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventcookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub CloseWithStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, code: u16, reason: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebSocketClosedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebSocketClosedEventArgs { - type Vtable = IWebSocketClosedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebSocketClosedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xceb78d07_d0a8_4703_a091_c8c2c0915bc3); -} +::windows_core::imp::com_interface!(IWebSocketClosedEventArgs, IWebSocketClosedEventArgs_Vtbl, 0xceb78d07_d0a8_4703_a091_c8c2c0915bc3); #[repr(C)] #[doc(hidden)] pub struct IWebSocketClosedEventArgs_Vtbl { @@ -1239,9 +747,8 @@ pub struct IWebSocketClosedEventArgs_Vtbl { pub Code: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u16) -> ::windows_core::HRESULT, pub Reason: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebSocketControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWebSocketControl, IWebSocketControl_Vtbl, 0x2ec4bdc3_d9a5_455a_9811_de24d45337e9); +::windows_core::imp::interface_hierarchy!(IWebSocketControl, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IWebSocketControl { pub fn OutboundBufferSizeInBytes(&self) -> ::windows_core::Result { let this = self; @@ -1300,16 +807,9 @@ impl IWebSocketControl { } } } -::windows_core::imp::interface_hierarchy!(IWebSocketControl, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IWebSocketControl { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IWebSocketControl { - type Vtable = IWebSocketControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebSocketControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2ec4bdc3_d9a5_455a_9811_de24d45337e9); -} #[repr(C)] #[doc(hidden)] pub struct IWebSocketControl_Vtbl { @@ -1337,9 +837,9 @@ pub struct IWebSocketControl_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] SupportedProtocols: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebSocketControl2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWebSocketControl2, IWebSocketControl2_Vtbl, 0x79c3be03_f2ca_461e_af4e_9665bc2d0620); +::windows_core::imp::interface_hierarchy!(IWebSocketControl2, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IWebSocketControl2, IWebSocketControl); impl IWebSocketControl2 { #[doc = "Required features: `\"Foundation_Collections\"`, `\"Security_Cryptography_Certificates\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates"))] @@ -1351,20 +851,20 @@ impl IWebSocketControl2 { } } pub fn OutboundBufferSizeInBytes(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OutboundBufferSizeInBytes)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetOutboundBufferSizeInBytes(&self, value: u32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetOutboundBufferSizeInBytes)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Security_Credentials\"`"] #[cfg(feature = "Security_Credentials")] pub fn ServerCredential(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ServerCredential)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1376,13 +876,13 @@ impl IWebSocketControl2 { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } #[doc = "Required features: `\"Security_Credentials\"`"] #[cfg(feature = "Security_Credentials")] pub fn ProxyCredential(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ProxyCredential)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1394,30 +894,22 @@ impl IWebSocketControl2 { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn SupportedProtocols(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SupportedProtocols)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(IWebSocketControl2, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IWebSocketControl2 {} impl ::windows_core::RuntimeType for IWebSocketControl2 { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IWebSocketControl2 { - type Vtable = IWebSocketControl2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebSocketControl2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x79c3be03_f2ca_461e_af4e_9665bc2d0620); -} #[repr(C)] #[doc(hidden)] pub struct IWebSocketControl2_Vtbl { @@ -1427,16 +919,7 @@ pub struct IWebSocketControl2_Vtbl { #[cfg(not(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates")))] IgnorableServerCertificateErrors: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebSocketErrorStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebSocketErrorStatics { - type Vtable = IWebSocketErrorStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebSocketErrorStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x27cdf35b_1f61_4709_8e02_61283ada4e9d); -} +::windows_core::imp::com_interface!(IWebSocketErrorStatics, IWebSocketErrorStatics_Vtbl, 0x27cdf35b_1f61_4709_8e02_61283ada4e9d); #[repr(C)] #[doc(hidden)] pub struct IWebSocketErrorStatics_Vtbl { @@ -1446,9 +929,8 @@ pub struct IWebSocketErrorStatics_Vtbl { #[cfg(not(feature = "Web"))] GetStatus: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebSocketInformation(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWebSocketInformation, IWebSocketInformation_Vtbl, 0x5e01e316_c92a_47a5_b25f_07847639d181); +::windows_core::imp::interface_hierarchy!(IWebSocketInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IWebSocketInformation { pub fn LocalAddress(&self) -> ::windows_core::Result { let this = self; @@ -1472,16 +954,9 @@ impl IWebSocketInformation { } } } -::windows_core::imp::interface_hierarchy!(IWebSocketInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IWebSocketInformation { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IWebSocketInformation { - type Vtable = IWebSocketInformation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebSocketInformation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5e01e316_c92a_47a5_b25f_07847639d181); -} #[repr(C)] #[doc(hidden)] pub struct IWebSocketInformation_Vtbl { @@ -1490,9 +965,9 @@ pub struct IWebSocketInformation_Vtbl { pub BandwidthStatistics: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut BandwidthStatistics) -> ::windows_core::HRESULT, pub Protocol: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebSocketInformation2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWebSocketInformation2, IWebSocketInformation2_Vtbl, 0xce1d39ce_a1b7_4d43_8269_8d5b981bd47a); +::windows_core::imp::interface_hierarchy!(IWebSocketInformation2, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IWebSocketInformation2, IWebSocketInformation); impl IWebSocketInformation2 { #[doc = "Required features: `\"Security_Cryptography_Certificates\"`"] #[cfg(feature = "Security_Cryptography_Certificates")] @@ -1529,38 +1004,30 @@ impl IWebSocketInformation2 { } } pub fn LocalAddress(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).LocalAddress)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn BandwidthStatistics(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).BandwidthStatistics)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Protocol(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Protocol)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(IWebSocketInformation2, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IWebSocketInformation2 {} impl ::windows_core::RuntimeType for IWebSocketInformation2 { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IWebSocketInformation2 { - type Vtable = IWebSocketInformation2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebSocketInformation2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xce1d39ce_a1b7_4d43_8269_8d5b981bd47a); -} #[repr(C)] #[doc(hidden)] pub struct IWebSocketInformation2_Vtbl { @@ -1579,16 +1046,7 @@ pub struct IWebSocketInformation2_Vtbl { #[cfg(not(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates")))] ServerIntermediateCertificates: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebSocketServerCustomValidationRequestedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebSocketServerCustomValidationRequestedEventArgs { - type Vtable = IWebSocketServerCustomValidationRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebSocketServerCustomValidationRequestedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xffeffe48_022a_4ab7_8b36_e10af4640e6b); -} +::windows_core::imp::com_interface!(IWebSocketServerCustomValidationRequestedEventArgs, IWebSocketServerCustomValidationRequestedEventArgs_Vtbl, 0xffeffe48_022a_4ab7_8b36_e10af4640e6b); #[repr(C)] #[doc(hidden)] pub struct IWebSocketServerCustomValidationRequestedEventArgs_Vtbl { @@ -1612,9 +1070,11 @@ pub struct IWebSocketServerCustomValidationRequestedEventArgs_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ControlChannelTrigger(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ControlChannelTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ControlChannelTrigger, super::super::Foundation::IClosable); impl ControlChannelTrigger { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn ControlChannelTriggerId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { @@ -1690,7 +1150,7 @@ impl ControlChannelTrigger { unsafe { (::windows_core::Interface::vtable(this).FlushTransport)(::windows_core::Interface::as_raw(this)).ok() } } pub fn IsWakeFromLowPowerSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsWakeFromLowPowerSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1719,20 +1179,18 @@ impl ::windows_core::RuntimeType for ControlChannelTrigger { } unsafe impl ::windows_core::Interface for ControlChannelTrigger { type Vtable = IControlChannelTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ControlChannelTrigger { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ControlChannelTrigger { const NAME: &'static str = "Windows.Networking.Sockets.ControlChannelTrigger"; } -::windows_core::imp::interface_hierarchy!(ControlChannelTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ControlChannelTrigger {} unsafe impl ::core::marker::Send for ControlChannelTrigger {} unsafe impl ::core::marker::Sync for ControlChannelTrigger {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DatagramSocket(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DatagramSocket, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(DatagramSocket, super::super::Foundation::IClosable); impl DatagramSocket { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1742,7 +1200,7 @@ impl DatagramSocket { SHARED.call(callback) } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Control(&self) -> ::windows_core::Result { @@ -1856,43 +1314,43 @@ impl DatagramSocket { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn CancelIOAsync(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CancelIOAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn EnableTransferOwnership(&self, taskid: ::windows_core::GUID) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).EnableTransferOwnership)(::windows_core::Interface::as_raw(this), taskid).ok() } } pub fn EnableTransferOwnershipWithConnectedStandbyAction(&self, taskid: ::windows_core::GUID, connectedstandbyaction: SocketActivityConnectedStandbyAction) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).EnableTransferOwnershipWithConnectedStandbyAction)(::windows_core::Interface::as_raw(this), taskid, connectedstandbyaction).ok() } } pub fn TransferOwnership(&self, socketid: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).TransferOwnership)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(socketid)).ok() } } pub fn TransferOwnershipWithContext(&self, socketid: &::windows_core::HSTRING, data: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn TransferOwnershipWithContextAndKeepAliveTime(&self, socketid: &::windows_core::HSTRING, data: P0, keepalivetime: super::super::Foundation::TimeSpan) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -1928,20 +1386,17 @@ impl ::windows_core::RuntimeType for DatagramSocket { } unsafe impl ::windows_core::Interface for DatagramSocket { type Vtable = IDatagramSocket_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DatagramSocket { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DatagramSocket { const NAME: &'static str = "Windows.Networking.Sockets.DatagramSocket"; } -::windows_core::imp::interface_hierarchy!(DatagramSocket, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for DatagramSocket {} unsafe impl ::core::marker::Send for DatagramSocket {} unsafe impl ::core::marker::Sync for DatagramSocket {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DatagramSocketControl(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DatagramSocketControl, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DatagramSocketControl { pub fn QualityOfService(&self) -> ::windows_core::Result { let this = self; @@ -1966,36 +1421,36 @@ impl DatagramSocketControl { unsafe { (::windows_core::Interface::vtable(this).SetOutboundUnicastHopLimit)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn InboundBufferSizeInBytes(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).InboundBufferSizeInBytes)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetInboundBufferSizeInBytes(&self, value: u32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetInboundBufferSizeInBytes)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn DontFragment(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DontFragment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDontFragment(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDontFragment)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn MulticastOnly(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MulticastOnly)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetMulticastOnly(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMulticastOnly)(::windows_core::Interface::as_raw(this), value).ok() } } } @@ -2004,19 +1459,17 @@ impl ::windows_core::RuntimeType for DatagramSocketControl { } unsafe impl ::windows_core::Interface for DatagramSocketControl { type Vtable = IDatagramSocketControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DatagramSocketControl { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DatagramSocketControl { const NAME: &'static str = "Windows.Networking.Sockets.DatagramSocketControl"; } -::windows_core::imp::interface_hierarchy!(DatagramSocketControl, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DatagramSocketControl {} unsafe impl ::core::marker::Sync for DatagramSocketControl {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DatagramSocketInformation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DatagramSocketInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DatagramSocketInformation { pub fn LocalAddress(&self) -> ::windows_core::Result { let this = self; @@ -2052,19 +1505,17 @@ impl ::windows_core::RuntimeType for DatagramSocketInformation { } unsafe impl ::windows_core::Interface for DatagramSocketInformation { type Vtable = IDatagramSocketInformation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DatagramSocketInformation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DatagramSocketInformation { const NAME: &'static str = "Windows.Networking.Sockets.DatagramSocketInformation"; } -::windows_core::imp::interface_hierarchy!(DatagramSocketInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DatagramSocketInformation {} unsafe impl ::core::marker::Sync for DatagramSocketInformation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DatagramSocketMessageReceivedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DatagramSocketMessageReceivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DatagramSocketMessageReceivedEventArgs { pub fn RemoteAddress(&self) -> ::windows_core::Result { let this = self; @@ -2111,19 +1562,18 @@ impl ::windows_core::RuntimeType for DatagramSocketMessageReceivedEventArgs { } unsafe impl ::windows_core::Interface for DatagramSocketMessageReceivedEventArgs { type Vtable = IDatagramSocketMessageReceivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DatagramSocketMessageReceivedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DatagramSocketMessageReceivedEventArgs { const NAME: &'static str = "Windows.Networking.Sockets.DatagramSocketMessageReceivedEventArgs"; } -::windows_core::imp::interface_hierarchy!(DatagramSocketMessageReceivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DatagramSocketMessageReceivedEventArgs {} unsafe impl ::core::marker::Sync for DatagramSocketMessageReceivedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MessageWebSocket(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MessageWebSocket, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(MessageWebSocket, super::super::Foundation::IClosable, IWebSocket); impl MessageWebSocket { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2133,7 +1583,7 @@ impl MessageWebSocket { SHARED.call(callback) } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Control(&self) -> ::windows_core::Result { @@ -2168,44 +1618,44 @@ impl MessageWebSocket { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveServerCustomValidationRequested(&self, eventcookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveServerCustomValidationRequested)(::windows_core::Interface::as_raw(this), eventcookie).ok() } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn SendNonfinalFrameAsync(&self, data: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SendNonfinalFrameAsync)(::windows_core::Interface::as_raw(this), data.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn SendFinalFrameAsync(&self, data: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SendFinalFrameAsync)(::windows_core::Interface::as_raw(this), data.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn OutputStream(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OutputStream)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2215,32 +1665,32 @@ impl MessageWebSocket { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn SetRequestHeader(&self, headername: &::windows_core::HSTRING, headervalue: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRequestHeader)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(headername), ::core::mem::transmute_copy(headervalue)).ok() } } pub fn Closed(&self, eventhandler: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveClosed(&self, eventcookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveClosed)(::windows_core::Interface::as_raw(this), eventcookie).ok() } } pub fn CloseWithStatus(&self, code: u16, reason: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).CloseWithStatus)(::windows_core::Interface::as_raw(this), code, ::core::mem::transmute_copy(reason)).ok() } } } @@ -2249,21 +1699,18 @@ impl ::windows_core::RuntimeType for MessageWebSocket { } unsafe impl ::windows_core::Interface for MessageWebSocket { type Vtable = IMessageWebSocket_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MessageWebSocket { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MessageWebSocket { const NAME: &'static str = "Windows.Networking.Sockets.MessageWebSocket"; } -::windows_core::imp::interface_hierarchy!(MessageWebSocket, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for MessageWebSocket {} -impl ::windows_core::CanTryInto for MessageWebSocket {} unsafe impl ::core::marker::Send for MessageWebSocket {} unsafe impl ::core::marker::Sync for MessageWebSocket {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MessageWebSocketControl(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MessageWebSocketControl, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(MessageWebSocketControl, IWebSocketControl, IWebSocketControl2); impl MessageWebSocketControl { pub fn MaxMessageSize(&self) -> ::windows_core::Result { let this = self; @@ -2288,38 +1735,38 @@ impl MessageWebSocketControl { unsafe { (::windows_core::Interface::vtable(this).SetMessageType)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn DesiredUnsolicitedPongInterval(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DesiredUnsolicitedPongInterval)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDesiredUnsolicitedPongInterval(&self, value: super::super::Foundation::TimeSpan) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDesiredUnsolicitedPongInterval)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn ActualUnsolicitedPongInterval(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ActualUnsolicitedPongInterval)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ReceiveMode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ReceiveMode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetReceiveMode(&self, value: MessageWebSocketReceiveMode) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetReceiveMode)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Security_Cryptography_Certificates\"`"] #[cfg(feature = "Security_Cryptography_Certificates")] pub fn ClientCertificate(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ClientCertificate)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2331,24 +1778,24 @@ impl MessageWebSocketControl { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn OutboundBufferSizeInBytes(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OutboundBufferSizeInBytes)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetOutboundBufferSizeInBytes(&self, value: u32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetOutboundBufferSizeInBytes)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Security_Credentials\"`"] #[cfg(feature = "Security_Credentials")] pub fn ServerCredential(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ServerCredential)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2360,13 +1807,13 @@ impl MessageWebSocketControl { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } #[doc = "Required features: `\"Security_Credentials\"`"] #[cfg(feature = "Security_Credentials")] pub fn ProxyCredential(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ProxyCredential)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2378,13 +1825,13 @@ impl MessageWebSocketControl { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn SupportedProtocols(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SupportedProtocols)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2393,7 +1840,7 @@ impl MessageWebSocketControl { #[doc = "Required features: `\"Foundation_Collections\"`, `\"Security_Cryptography_Certificates\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates"))] pub fn IgnorableServerCertificateErrors(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IgnorableServerCertificateErrors)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2405,21 +1852,18 @@ impl ::windows_core::RuntimeType for MessageWebSocketControl { } unsafe impl ::windows_core::Interface for MessageWebSocketControl { type Vtable = IMessageWebSocketControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MessageWebSocketControl { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MessageWebSocketControl { const NAME: &'static str = "Windows.Networking.Sockets.MessageWebSocketControl"; } -::windows_core::imp::interface_hierarchy!(MessageWebSocketControl, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for MessageWebSocketControl {} -impl ::windows_core::CanTryInto for MessageWebSocketControl {} unsafe impl ::core::marker::Send for MessageWebSocketControl {} unsafe impl ::core::marker::Sync for MessageWebSocketControl {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MessageWebSocketInformation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MessageWebSocketInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(MessageWebSocketInformation, IWebSocketInformation, IWebSocketInformation2); impl MessageWebSocketInformation { pub fn LocalAddress(&self) -> ::windows_core::Result { let this = self; @@ -2445,14 +1889,14 @@ impl MessageWebSocketInformation { #[doc = "Required features: `\"Security_Cryptography_Certificates\"`"] #[cfg(feature = "Security_Cryptography_Certificates")] pub fn ServerCertificate(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ServerCertificate)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ServerCertificateErrorSeverity(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ServerCertificateErrorSeverity)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2461,7 +1905,7 @@ impl MessageWebSocketInformation { #[doc = "Required features: `\"Foundation_Collections\"`, `\"Security_Cryptography_Certificates\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates"))] pub fn ServerCertificateErrors(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ServerCertificateErrors)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2470,7 +1914,7 @@ impl MessageWebSocketInformation { #[doc = "Required features: `\"Foundation_Collections\"`, `\"Security_Cryptography_Certificates\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates"))] pub fn ServerIntermediateCertificates(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ServerIntermediateCertificates)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2482,21 +1926,17 @@ impl ::windows_core::RuntimeType for MessageWebSocketInformation { } unsafe impl ::windows_core::Interface for MessageWebSocketInformation { type Vtable = IWebSocketInformation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MessageWebSocketInformation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MessageWebSocketInformation { const NAME: &'static str = "Windows.Networking.Sockets.MessageWebSocketInformation"; } -::windows_core::imp::interface_hierarchy!(MessageWebSocketInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for MessageWebSocketInformation {} -impl ::windows_core::CanTryInto for MessageWebSocketInformation {} unsafe impl ::core::marker::Send for MessageWebSocketInformation {} unsafe impl ::core::marker::Sync for MessageWebSocketInformation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MessageWebSocketMessageReceivedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MessageWebSocketMessageReceivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MessageWebSocketMessageReceivedEventArgs { pub fn MessageType(&self) -> ::windows_core::Result { let this = self; @@ -2524,7 +1964,7 @@ impl MessageWebSocketMessageReceivedEventArgs { } } pub fn IsMessageComplete(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsMessageComplete)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2536,22 +1976,21 @@ impl ::windows_core::RuntimeType for MessageWebSocketMessageReceivedEventArgs { } unsafe impl ::windows_core::Interface for MessageWebSocketMessageReceivedEventArgs { type Vtable = IMessageWebSocketMessageReceivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MessageWebSocketMessageReceivedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MessageWebSocketMessageReceivedEventArgs { const NAME: &'static str = "Windows.Networking.Sockets.MessageWebSocketMessageReceivedEventArgs"; } -::windows_core::imp::interface_hierarchy!(MessageWebSocketMessageReceivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MessageWebSocketMessageReceivedEventArgs {} unsafe impl ::core::marker::Sync for MessageWebSocketMessageReceivedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ServerMessageWebSocket(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ServerMessageWebSocket, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ServerMessageWebSocket, super::super::Foundation::IClosable); impl ServerMessageWebSocket { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn MessageReceived(&self, value: P0) -> ::windows_core::Result @@ -2615,20 +2054,17 @@ impl ::windows_core::RuntimeType for ServerMessageWebSocket { } unsafe impl ::windows_core::Interface for ServerMessageWebSocket { type Vtable = IServerMessageWebSocket_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ServerMessageWebSocket { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ServerMessageWebSocket { const NAME: &'static str = "Windows.Networking.Sockets.ServerMessageWebSocket"; } -::windows_core::imp::interface_hierarchy!(ServerMessageWebSocket, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ServerMessageWebSocket {} unsafe impl ::core::marker::Send for ServerMessageWebSocket {} unsafe impl ::core::marker::Sync for ServerMessageWebSocket {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ServerMessageWebSocketControl(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ServerMessageWebSocketControl, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ServerMessageWebSocketControl { pub fn MessageType(&self) -> ::windows_core::Result { let this = self; @@ -2647,19 +2083,17 @@ impl ::windows_core::RuntimeType for ServerMessageWebSocketControl { } unsafe impl ::windows_core::Interface for ServerMessageWebSocketControl { type Vtable = IServerMessageWebSocketControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ServerMessageWebSocketControl { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ServerMessageWebSocketControl { const NAME: &'static str = "Windows.Networking.Sockets.ServerMessageWebSocketControl"; } -::windows_core::imp::interface_hierarchy!(ServerMessageWebSocketControl, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ServerMessageWebSocketControl {} unsafe impl ::core::marker::Sync for ServerMessageWebSocketControl {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ServerMessageWebSocketInformation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ServerMessageWebSocketInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ServerMessageWebSocketInformation { pub fn BandwidthStatistics(&self) -> ::windows_core::Result { let this = self; @@ -2688,22 +2122,21 @@ impl ::windows_core::RuntimeType for ServerMessageWebSocketInformation { } unsafe impl ::windows_core::Interface for ServerMessageWebSocketInformation { type Vtable = IServerMessageWebSocketInformation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ServerMessageWebSocketInformation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ServerMessageWebSocketInformation { const NAME: &'static str = "Windows.Networking.Sockets.ServerMessageWebSocketInformation"; } -::windows_core::imp::interface_hierarchy!(ServerMessageWebSocketInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ServerMessageWebSocketInformation {} unsafe impl ::core::marker::Sync for ServerMessageWebSocketInformation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ServerStreamWebSocket(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ServerStreamWebSocket, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ServerStreamWebSocket, super::super::Foundation::IClosable); impl ServerStreamWebSocket { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Information(&self) -> ::windows_core::Result { @@ -2755,20 +2188,17 @@ impl ::windows_core::RuntimeType for ServerStreamWebSocket { } unsafe impl ::windows_core::Interface for ServerStreamWebSocket { type Vtable = IServerStreamWebSocket_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ServerStreamWebSocket { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ServerStreamWebSocket { const NAME: &'static str = "Windows.Networking.Sockets.ServerStreamWebSocket"; } -::windows_core::imp::interface_hierarchy!(ServerStreamWebSocket, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ServerStreamWebSocket {} unsafe impl ::core::marker::Send for ServerStreamWebSocket {} unsafe impl ::core::marker::Sync for ServerStreamWebSocket {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ServerStreamWebSocketInformation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ServerStreamWebSocketInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ServerStreamWebSocketInformation { pub fn BandwidthStatistics(&self) -> ::windows_core::Result { let this = self; @@ -2797,19 +2227,17 @@ impl ::windows_core::RuntimeType for ServerStreamWebSocketInformation { } unsafe impl ::windows_core::Interface for ServerStreamWebSocketInformation { type Vtable = IServerStreamWebSocketInformation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ServerStreamWebSocketInformation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ServerStreamWebSocketInformation { const NAME: &'static str = "Windows.Networking.Sockets.ServerStreamWebSocketInformation"; } -::windows_core::imp::interface_hierarchy!(ServerStreamWebSocketInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ServerStreamWebSocketInformation {} unsafe impl ::core::marker::Sync for ServerStreamWebSocketInformation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SocketActivityContext(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SocketActivityContext, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SocketActivityContext { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] @@ -2824,11 +2252,11 @@ impl SocketActivityContext { #[cfg(feature = "Storage_Streams")] pub fn Create(data: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::ISocketActivityContextFactory(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).Create)(::windows_core::Interface::as_raw(this), data.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).Create)(::windows_core::Interface::as_raw(this), data.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -2842,19 +2270,17 @@ impl ::windows_core::RuntimeType for SocketActivityContext { } unsafe impl ::windows_core::Interface for SocketActivityContext { type Vtable = ISocketActivityContext_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SocketActivityContext { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SocketActivityContext { const NAME: &'static str = "Windows.Networking.Sockets.SocketActivityContext"; } -::windows_core::imp::interface_hierarchy!(SocketActivityContext, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SocketActivityContext {} unsafe impl ::core::marker::Sync for SocketActivityContext {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SocketActivityInformation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SocketActivityInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SocketActivityInformation { pub fn TaskId(&self) -> ::windows_core::Result<::windows_core::GUID> { let this = self; @@ -2924,19 +2350,17 @@ impl ::windows_core::RuntimeType for SocketActivityInformation { } unsafe impl ::windows_core::Interface for SocketActivityInformation { type Vtable = ISocketActivityInformation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SocketActivityInformation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SocketActivityInformation { const NAME: &'static str = "Windows.Networking.Sockets.SocketActivityInformation"; } -::windows_core::imp::interface_hierarchy!(SocketActivityInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SocketActivityInformation {} unsafe impl ::core::marker::Sync for SocketActivityInformation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SocketActivityTriggerDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SocketActivityTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SocketActivityTriggerDetails { pub fn Reason(&self) -> ::windows_core::Result { let this = self; @@ -2958,14 +2382,11 @@ impl ::windows_core::RuntimeType for SocketActivityTriggerDetails { } unsafe impl ::windows_core::Interface for SocketActivityTriggerDetails { type Vtable = ISocketActivityTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SocketActivityTriggerDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SocketActivityTriggerDetails { const NAME: &'static str = "Windows.Networking.Sockets.SocketActivityTriggerDetails"; } -::windows_core::imp::interface_hierarchy!(SocketActivityTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SocketActivityTriggerDetails {} unsafe impl ::core::marker::Sync for SocketActivityTriggerDetails {} pub struct SocketError; @@ -2988,6 +2409,8 @@ impl ::windows_core::RuntimeName for SocketError { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StreamSocket(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StreamSocket, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(StreamSocket, super::super::Foundation::IClosable); impl StreamSocket { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2997,7 +2420,7 @@ impl StreamSocket { SHARED.call(callback) } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Control(&self) -> ::windows_core::Result { @@ -3089,43 +2512,43 @@ impl StreamSocket { P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn CancelIOAsync(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CancelIOAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn EnableTransferOwnership(&self, taskid: ::windows_core::GUID) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).EnableTransferOwnership)(::windows_core::Interface::as_raw(this), taskid).ok() } } pub fn EnableTransferOwnershipWithConnectedStandbyAction(&self, taskid: ::windows_core::GUID, connectedstandbyaction: SocketActivityConnectedStandbyAction) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).EnableTransferOwnershipWithConnectedStandbyAction)(::windows_core::Interface::as_raw(this), taskid, connectedstandbyaction).ok() } } pub fn TransferOwnership(&self, socketid: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).TransferOwnership)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(socketid)).ok() } } pub fn TransferOwnershipWithContext(&self, socketid: &::windows_core::HSTRING, data: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn TransferOwnershipWithContextAndKeepAliveTime(&self, socketid: &::windows_core::HSTRING, data: P0, keepalivetime: super::super::Foundation::TimeSpan) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -3161,20 +2584,17 @@ impl ::windows_core::RuntimeType for StreamSocket { } unsafe impl ::windows_core::Interface for StreamSocket { type Vtable = IStreamSocket_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StreamSocket { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StreamSocket { const NAME: &'static str = "Windows.Networking.Sockets.StreamSocket"; } -::windows_core::imp::interface_hierarchy!(StreamSocket, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for StreamSocket {} unsafe impl ::core::marker::Send for StreamSocket {} unsafe impl ::core::marker::Sync for StreamSocket {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StreamSocketControl(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StreamSocketControl, ::windows_core::IUnknown, ::windows_core::IInspectable); impl StreamSocketControl { pub fn NoDelay(&self) -> ::windows_core::Result { let this = self; @@ -3234,27 +2654,27 @@ impl StreamSocketControl { #[doc = "Required features: `\"Foundation_Collections\"`, `\"Security_Cryptography_Certificates\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates"))] pub fn IgnorableServerCertificateErrors(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IgnorableServerCertificateErrors)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SerializeConnectionAttempts(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SerializeConnectionAttempts)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetSerializeConnectionAttempts(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetSerializeConnectionAttempts)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Security_Cryptography_Certificates\"`"] #[cfg(feature = "Security_Cryptography_Certificates")] pub fn ClientCertificate(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ClientCertificate)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3266,18 +2686,18 @@ impl StreamSocketControl { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn MinProtectionLevel(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MinProtectionLevel)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetMinProtectionLevel(&self, value: SocketProtectionLevel) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMinProtectionLevel)(::windows_core::Interface::as_raw(this), value).ok() } } } @@ -3286,19 +2706,17 @@ impl ::windows_core::RuntimeType for StreamSocketControl { } unsafe impl ::windows_core::Interface for StreamSocketControl { type Vtable = IStreamSocketControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StreamSocketControl { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StreamSocketControl { const NAME: &'static str = "Windows.Networking.Sockets.StreamSocketControl"; } -::windows_core::imp::interface_hierarchy!(StreamSocketControl, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for StreamSocketControl {} unsafe impl ::core::marker::Sync for StreamSocketControl {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StreamSocketInformation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StreamSocketInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl StreamSocketInformation { pub fn LocalAddress(&self) -> ::windows_core::Result { let this = self; @@ -3373,7 +2791,7 @@ impl StreamSocketInformation { } } pub fn ServerCertificateErrorSeverity(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ServerCertificateErrorSeverity)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3382,7 +2800,7 @@ impl StreamSocketInformation { #[doc = "Required features: `\"Foundation_Collections\"`, `\"Security_Cryptography_Certificates\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates"))] pub fn ServerCertificateErrors(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ServerCertificateErrors)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3391,7 +2809,7 @@ impl StreamSocketInformation { #[doc = "Required features: `\"Security_Cryptography_Certificates\"`"] #[cfg(feature = "Security_Cryptography_Certificates")] pub fn ServerCertificate(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ServerCertificate)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3400,7 +2818,7 @@ impl StreamSocketInformation { #[doc = "Required features: `\"Foundation_Collections\"`, `\"Security_Cryptography_Certificates\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates"))] pub fn ServerIntermediateCertificates(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ServerIntermediateCertificates)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3412,19 +2830,18 @@ impl ::windows_core::RuntimeType for StreamSocketInformation { } unsafe impl ::windows_core::Interface for StreamSocketInformation { type Vtable = IStreamSocketInformation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StreamSocketInformation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StreamSocketInformation { const NAME: &'static str = "Windows.Networking.Sockets.StreamSocketInformation"; } -::windows_core::imp::interface_hierarchy!(StreamSocketInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for StreamSocketInformation {} unsafe impl ::core::marker::Sync for StreamSocketInformation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StreamSocketListener(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StreamSocketListener, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(StreamSocketListener, super::super::Foundation::IClosable); impl StreamSocketListener { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -3434,7 +2851,7 @@ impl StreamSocketListener { SHARED.call(callback) } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Control(&self) -> ::windows_core::Result { @@ -3483,7 +2900,7 @@ impl StreamSocketListener { unsafe { (::windows_core::Interface::vtable(this).RemoveConnectionReceived)(::windows_core::Interface::as_raw(this), eventcookie).ok() } } pub fn BindServiceNameWithProtectionLevelAsync(&self, localservicename: &::windows_core::HSTRING, protectionlevel: SocketProtectionLevel) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).BindServiceNameWithProtectionLevelAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(localservicename), protectionlevel, &mut result__).from_abi(result__) @@ -3495,36 +2912,36 @@ impl StreamSocketListener { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn CancelIOAsync(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CancelIOAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn EnableTransferOwnership(&self, taskid: ::windows_core::GUID) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).EnableTransferOwnership)(::windows_core::Interface::as_raw(this), taskid).ok() } } pub fn EnableTransferOwnershipWithConnectedStandbyAction(&self, taskid: ::windows_core::GUID, connectedstandbyaction: SocketActivityConnectedStandbyAction) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).EnableTransferOwnershipWithConnectedStandbyAction)(::windows_core::Interface::as_raw(this), taskid, connectedstandbyaction).ok() } } pub fn TransferOwnership(&self, socketid: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).TransferOwnership)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(socketid)).ok() } } pub fn TransferOwnershipWithContext(&self, socketid: &::windows_core::HSTRING, data: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } } @@ -3533,20 +2950,17 @@ impl ::windows_core::RuntimeType for StreamSocketListener { } unsafe impl ::windows_core::Interface for StreamSocketListener { type Vtable = IStreamSocketListener_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StreamSocketListener { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StreamSocketListener { const NAME: &'static str = "Windows.Networking.Sockets.StreamSocketListener"; } -::windows_core::imp::interface_hierarchy!(StreamSocketListener, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for StreamSocketListener {} unsafe impl ::core::marker::Send for StreamSocketListener {} unsafe impl ::core::marker::Sync for StreamSocketListener {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StreamSocketListenerConnectionReceivedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StreamSocketListenerConnectionReceivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl StreamSocketListenerConnectionReceivedEventArgs { pub fn Socket(&self) -> ::windows_core::Result { let this = self; @@ -3561,19 +2975,17 @@ impl ::windows_core::RuntimeType for StreamSocketListenerConnectionReceivedEvent } unsafe impl ::windows_core::Interface for StreamSocketListenerConnectionReceivedEventArgs { type Vtable = IStreamSocketListenerConnectionReceivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StreamSocketListenerConnectionReceivedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StreamSocketListenerConnectionReceivedEventArgs { const NAME: &'static str = "Windows.Networking.Sockets.StreamSocketListenerConnectionReceivedEventArgs"; } -::windows_core::imp::interface_hierarchy!(StreamSocketListenerConnectionReceivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for StreamSocketListenerConnectionReceivedEventArgs {} unsafe impl ::core::marker::Sync for StreamSocketListenerConnectionReceivedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StreamSocketListenerControl(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StreamSocketListenerControl, ::windows_core::IUnknown, ::windows_core::IInspectable); impl StreamSocketListenerControl { pub fn QualityOfService(&self) -> ::windows_core::Result { let this = self; @@ -3587,47 +2999,47 @@ impl StreamSocketListenerControl { unsafe { (::windows_core::Interface::vtable(this).SetQualityOfService)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn NoDelay(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NoDelay)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetNoDelay(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetNoDelay)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn KeepAlive(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).KeepAlive)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetKeepAlive(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetKeepAlive)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn OutboundBufferSizeInBytes(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OutboundBufferSizeInBytes)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetOutboundBufferSizeInBytes(&self, value: u32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetOutboundBufferSizeInBytes)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn OutboundUnicastHopLimit(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OutboundUnicastHopLimit)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetOutboundUnicastHopLimit(&self, value: u8) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetOutboundUnicastHopLimit)(::windows_core::Interface::as_raw(this), value).ok() } } } @@ -3636,19 +3048,17 @@ impl ::windows_core::RuntimeType for StreamSocketListenerControl { } unsafe impl ::windows_core::Interface for StreamSocketListenerControl { type Vtable = IStreamSocketListenerControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StreamSocketListenerControl { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StreamSocketListenerControl { const NAME: &'static str = "Windows.Networking.Sockets.StreamSocketListenerControl"; } -::windows_core::imp::interface_hierarchy!(StreamSocketListenerControl, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for StreamSocketListenerControl {} unsafe impl ::core::marker::Sync for StreamSocketListenerControl {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StreamSocketListenerInformation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StreamSocketListenerInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl StreamSocketListenerInformation { pub fn LocalPort(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -3663,19 +3073,18 @@ impl ::windows_core::RuntimeType for StreamSocketListenerInformation { } unsafe impl ::windows_core::Interface for StreamSocketListenerInformation { type Vtable = IStreamSocketListenerInformation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StreamSocketListenerInformation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StreamSocketListenerInformation { const NAME: &'static str = "Windows.Networking.Sockets.StreamSocketListenerInformation"; } -::windows_core::imp::interface_hierarchy!(StreamSocketListenerInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for StreamSocketListenerInformation {} unsafe impl ::core::marker::Sync for StreamSocketListenerInformation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StreamWebSocket(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StreamWebSocket, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(StreamWebSocket, super::super::Foundation::IClosable, IWebSocket); impl StreamWebSocket { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -3685,7 +3094,7 @@ impl StreamWebSocket { SHARED.call(callback) } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Control(&self) -> ::windows_core::Result { @@ -3715,20 +3124,20 @@ impl StreamWebSocket { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveServerCustomValidationRequested(&self, eventcookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveServerCustomValidationRequested)(::windows_core::Interface::as_raw(this), eventcookie).ok() } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn OutputStream(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OutputStream)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3738,32 +3147,32 @@ impl StreamWebSocket { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn SetRequestHeader(&self, headername: &::windows_core::HSTRING, headervalue: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRequestHeader)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(headername), ::core::mem::transmute_copy(headervalue)).ok() } } pub fn Closed(&self, eventhandler: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveClosed(&self, eventcookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveClosed)(::windows_core::Interface::as_raw(this), eventcookie).ok() } } pub fn CloseWithStatus(&self, code: u16, reason: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).CloseWithStatus)(::windows_core::Interface::as_raw(this), code, ::core::mem::transmute_copy(reason)).ok() } } } @@ -3772,21 +3181,18 @@ impl ::windows_core::RuntimeType for StreamWebSocket { } unsafe impl ::windows_core::Interface for StreamWebSocket { type Vtable = IStreamWebSocket_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StreamWebSocket { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StreamWebSocket { const NAME: &'static str = "Windows.Networking.Sockets.StreamWebSocket"; } -::windows_core::imp::interface_hierarchy!(StreamWebSocket, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for StreamWebSocket {} -impl ::windows_core::CanTryInto for StreamWebSocket {} unsafe impl ::core::marker::Send for StreamWebSocket {} unsafe impl ::core::marker::Sync for StreamWebSocket {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StreamWebSocketControl(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StreamWebSocketControl, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(StreamWebSocketControl, IWebSocketControl, IWebSocketControl2); impl StreamWebSocketControl { pub fn NoDelay(&self) -> ::windows_core::Result { let this = self; @@ -3800,18 +3206,18 @@ impl StreamWebSocketControl { unsafe { (::windows_core::Interface::vtable(this).SetNoDelay)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn DesiredUnsolicitedPongInterval(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DesiredUnsolicitedPongInterval)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDesiredUnsolicitedPongInterval(&self, value: super::super::Foundation::TimeSpan) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDesiredUnsolicitedPongInterval)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn ActualUnsolicitedPongInterval(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ActualUnsolicitedPongInterval)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3820,7 +3226,7 @@ impl StreamWebSocketControl { #[doc = "Required features: `\"Security_Cryptography_Certificates\"`"] #[cfg(feature = "Security_Cryptography_Certificates")] pub fn ClientCertificate(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ClientCertificate)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3832,24 +3238,24 @@ impl StreamWebSocketControl { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn OutboundBufferSizeInBytes(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OutboundBufferSizeInBytes)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetOutboundBufferSizeInBytes(&self, value: u32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetOutboundBufferSizeInBytes)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Security_Credentials\"`"] #[cfg(feature = "Security_Credentials")] pub fn ServerCredential(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ServerCredential)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3861,13 +3267,13 @@ impl StreamWebSocketControl { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } #[doc = "Required features: `\"Security_Credentials\"`"] #[cfg(feature = "Security_Credentials")] pub fn ProxyCredential(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ProxyCredential)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3879,13 +3285,13 @@ impl StreamWebSocketControl { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn SupportedProtocols(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SupportedProtocols)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3894,7 +3300,7 @@ impl StreamWebSocketControl { #[doc = "Required features: `\"Foundation_Collections\"`, `\"Security_Cryptography_Certificates\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates"))] pub fn IgnorableServerCertificateErrors(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IgnorableServerCertificateErrors)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3906,21 +3312,18 @@ impl ::windows_core::RuntimeType for StreamWebSocketControl { } unsafe impl ::windows_core::Interface for StreamWebSocketControl { type Vtable = IStreamWebSocketControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StreamWebSocketControl { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StreamWebSocketControl { const NAME: &'static str = "Windows.Networking.Sockets.StreamWebSocketControl"; } -::windows_core::imp::interface_hierarchy!(StreamWebSocketControl, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for StreamWebSocketControl {} -impl ::windows_core::CanTryInto for StreamWebSocketControl {} unsafe impl ::core::marker::Send for StreamWebSocketControl {} unsafe impl ::core::marker::Sync for StreamWebSocketControl {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StreamWebSocketInformation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StreamWebSocketInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(StreamWebSocketInformation, IWebSocketInformation, IWebSocketInformation2); impl StreamWebSocketInformation { pub fn LocalAddress(&self) -> ::windows_core::Result { let this = self; @@ -3946,14 +3349,14 @@ impl StreamWebSocketInformation { #[doc = "Required features: `\"Security_Cryptography_Certificates\"`"] #[cfg(feature = "Security_Cryptography_Certificates")] pub fn ServerCertificate(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ServerCertificate)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ServerCertificateErrorSeverity(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ServerCertificateErrorSeverity)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3962,7 +3365,7 @@ impl StreamWebSocketInformation { #[doc = "Required features: `\"Foundation_Collections\"`, `\"Security_Cryptography_Certificates\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates"))] pub fn ServerCertificateErrors(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ServerCertificateErrors)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3971,7 +3374,7 @@ impl StreamWebSocketInformation { #[doc = "Required features: `\"Foundation_Collections\"`, `\"Security_Cryptography_Certificates\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates"))] pub fn ServerIntermediateCertificates(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ServerIntermediateCertificates)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3983,21 +3386,17 @@ impl ::windows_core::RuntimeType for StreamWebSocketInformation { } unsafe impl ::windows_core::Interface for StreamWebSocketInformation { type Vtable = IWebSocketInformation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StreamWebSocketInformation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StreamWebSocketInformation { const NAME: &'static str = "Windows.Networking.Sockets.StreamWebSocketInformation"; } -::windows_core::imp::interface_hierarchy!(StreamWebSocketInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for StreamWebSocketInformation {} -impl ::windows_core::CanTryInto for StreamWebSocketInformation {} unsafe impl ::core::marker::Send for StreamWebSocketInformation {} unsafe impl ::core::marker::Sync for StreamWebSocketInformation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebSocketClosedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WebSocketClosedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WebSocketClosedEventArgs { pub fn Code(&self) -> ::windows_core::Result { let this = self; @@ -4019,14 +3418,11 @@ impl ::windows_core::RuntimeType for WebSocketClosedEventArgs { } unsafe impl ::windows_core::Interface for WebSocketClosedEventArgs { type Vtable = IWebSocketClosedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WebSocketClosedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WebSocketClosedEventArgs { const NAME: &'static str = "Windows.Networking.Sockets.WebSocketClosedEventArgs"; } -::windows_core::imp::interface_hierarchy!(WebSocketClosedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for WebSocketClosedEventArgs {} unsafe impl ::core::marker::Sync for WebSocketClosedEventArgs {} pub struct WebSocketError; @@ -4054,6 +3450,10 @@ impl ::windows_core::RuntimeName for WebSocketError { #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebSocketKeepAlive(::windows_core::IUnknown); #[cfg(feature = "ApplicationModel_Background")] +::windows_core::imp::interface_hierarchy!(WebSocketKeepAlive, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "ApplicationModel_Background")] +::windows_core::imp::required_hierarchy!(WebSocketKeepAlive, super::super::ApplicationModel::Background::IBackgroundTask); +#[cfg(feature = "ApplicationModel_Background")] impl WebSocketKeepAlive { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -4066,10 +3466,10 @@ impl WebSocketKeepAlive { #[cfg(feature = "ApplicationModel_Background")] pub fn Run(&self, taskinstance: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).Run)(::windows_core::Interface::as_raw(this), taskinstance.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).Run)(::windows_core::Interface::as_raw(this), taskinstance.into_param().abi()).ok() } } } #[cfg(feature = "ApplicationModel_Background")] @@ -4079,26 +3479,20 @@ impl ::windows_core::RuntimeType for WebSocketKeepAlive { #[cfg(feature = "ApplicationModel_Background")] unsafe impl ::windows_core::Interface for WebSocketKeepAlive { type Vtable = super::super::ApplicationModel::Background::IBackgroundTask_Vtbl; -} -#[cfg(feature = "ApplicationModel_Background")] -unsafe impl ::windows_core::ComInterface for WebSocketKeepAlive { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "ApplicationModel_Background")] impl ::windows_core::RuntimeName for WebSocketKeepAlive { const NAME: &'static str = "Windows.Networking.Sockets.WebSocketKeepAlive"; } #[cfg(feature = "ApplicationModel_Background")] -::windows_core::imp::interface_hierarchy!(WebSocketKeepAlive, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "ApplicationModel_Background")] -impl ::windows_core::CanTryInto for WebSocketKeepAlive {} -#[cfg(feature = "ApplicationModel_Background")] unsafe impl ::core::marker::Send for WebSocketKeepAlive {} #[cfg(feature = "ApplicationModel_Background")] unsafe impl ::core::marker::Sync for WebSocketKeepAlive {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebSocketServerCustomValidationRequestedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WebSocketServerCustomValidationRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WebSocketServerCustomValidationRequestedEventArgs { #[doc = "Required features: `\"Security_Cryptography_Certificates\"`"] #[cfg(feature = "Security_Cryptography_Certificates")] @@ -4151,14 +3545,11 @@ impl ::windows_core::RuntimeType for WebSocketServerCustomValidationRequestedEve } unsafe impl ::windows_core::Interface for WebSocketServerCustomValidationRequestedEventArgs { type Vtable = IWebSocketServerCustomValidationRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WebSocketServerCustomValidationRequestedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WebSocketServerCustomValidationRequestedEventArgs { const NAME: &'static str = "Windows.Networking.Sockets.WebSocketServerCustomValidationRequestedEventArgs"; } -::windows_core::imp::interface_hierarchy!(WebSocketServerCustomValidationRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for WebSocketServerCustomValidationRequestedEventArgs {} unsafe impl ::core::marker::Sync for WebSocketServerCustomValidationRequestedEventArgs {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Networking/Vpn/impl.rs b/crates/libs/windows/src/Windows/Networking/Vpn/impl.rs index 4246cf5105..99be10a17e 100644 --- a/crates/libs/windows/src/Windows/Networking/Vpn/impl.rs +++ b/crates/libs/windows/src/Windows/Networking/Vpn/impl.rs @@ -17,7 +17,7 @@ impl IVpnChannelStatics_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Security_Credentials\"`, `\"Security_Cryptography_Certificates\"`"] @@ -92,7 +92,7 @@ impl IVpnCredential_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVpnCustomPrompt_Impl: Sized { @@ -168,7 +168,7 @@ impl IVpnCustomPrompt_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVpnCustomPromptElement_Impl: Sized { @@ -244,7 +244,7 @@ impl IVpnCustomPromptElement_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -277,7 +277,7 @@ impl IVpnDomainNameInfoFactory_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVpnInterfaceIdFactory_Impl: Sized { @@ -306,7 +306,7 @@ impl IVpnInterfaceIdFactory_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -339,7 +339,7 @@ impl IVpnNamespaceInfoFactory_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVpnPacketBufferFactory_Impl: Sized { @@ -368,7 +368,7 @@ impl IVpnPacketBufferFactory_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVpnPlugIn_Impl: Sized { @@ -418,7 +418,7 @@ impl IVpnPlugIn_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -554,7 +554,7 @@ impl IVpnProfile_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVpnRouteFactory_Impl: Sized { @@ -580,6 +580,6 @@ impl IVpnRouteFactory_Vtbl { Self { base__: ::windows_core::IInspectable_Vtbl::new::(), CreateVpnRoute: CreateVpnRoute:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/Networking/Vpn/mod.rs b/crates/libs/windows/src/Windows/Networking/Vpn/mod.rs index 338a5320bc..0ca40e9d8c 100644 --- a/crates/libs/windows/src/Windows/Networking/Vpn/mod.rs +++ b/crates/libs/windows/src/Windows/Networking/Vpn/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVpnAppId(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVpnAppId { - type Vtable = IVpnAppId_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVpnAppId { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7b06a635_5c58_41d9_94a7_bfbcf1d8ca54); -} +::windows_core::imp::com_interface!(IVpnAppId, IVpnAppId_Vtbl, 0x7b06a635_5c58_41d9_94a7_bfbcf1d8ca54); #[repr(C)] #[doc(hidden)] pub struct IVpnAppId_Vtbl { @@ -17,32 +8,14 @@ pub struct IVpnAppId_Vtbl { pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVpnAppIdFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVpnAppIdFactory { - type Vtable = IVpnAppIdFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVpnAppIdFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x46adfd2a_0aab_4fdb_821d_d3ddc919788b); -} +::windows_core::imp::com_interface!(IVpnAppIdFactory, IVpnAppIdFactory_Vtbl, 0x46adfd2a_0aab_4fdb_821d_d3ddc919788b); #[repr(C)] #[doc(hidden)] pub struct IVpnAppIdFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: VpnAppIdType, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVpnChannel(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVpnChannel { - type Vtable = IVpnChannel_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVpnChannel { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4ac78d07_d1a8_4303_a091_c8d2e0915bc3); -} +::windows_core::imp::com_interface!(IVpnChannel, IVpnChannel_Vtbl, 0x4ac78d07_d1a8_4303_a091_c8d2e0915bc3); #[repr(C)] #[doc(hidden)] pub struct IVpnChannel_Vtbl { @@ -73,16 +46,7 @@ pub struct IVpnChannel_Vtbl { pub SetErrorMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, message: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetAllowedSslTlsVersions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, tunneltransport: *mut ::core::ffi::c_void, usetls12: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVpnChannel2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVpnChannel2 { - type Vtable = IVpnChannel2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVpnChannel2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2255d165_993b_4629_ad60_f1c3f3537f50); -} +::windows_core::imp::com_interface!(IVpnChannel2, IVpnChannel2_Vtbl, 0x2255d165_993b_4629_ad60_f1c3f3537f50); #[repr(C)] #[doc(hidden)] pub struct IVpnChannel2_Vtbl { @@ -115,16 +79,7 @@ pub struct IVpnChannel2_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] StartWithTrafficFilter: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVpnChannel4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVpnChannel4 { - type Vtable = IVpnChannel4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVpnChannel4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd7266ede_2937_419d_9570_486aebb81803); -} +::windows_core::imp::com_interface!(IVpnChannel4, IVpnChannel4_Vtbl, 0xd7266ede_2937_419d_9570_486aebb81803); #[repr(C)] #[doc(hidden)] pub struct IVpnChannel4_Vtbl { @@ -142,16 +97,7 @@ pub struct IVpnChannel4_Vtbl { GetSlotTypeForTransportContext: usize, pub CurrentRequestTransportContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVpnChannel5(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVpnChannel5 { - type Vtable = IVpnChannel5_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVpnChannel5 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xde7a0992_8384_4fbc_882c_1fd23124cd3b); -} +::windows_core::imp::com_interface!(IVpnChannel5, IVpnChannel5_Vtbl, 0xde7a0992_8384_4fbc_882c_1fd23124cd3b); #[repr(C)] #[doc(hidden)] pub struct IVpnChannel5_Vtbl { @@ -161,16 +107,7 @@ pub struct IVpnChannel5_Vtbl { pub FlushVpnReceivePacketBuffers: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub FlushVpnSendPacketBuffers: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVpnChannel6(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVpnChannel6 { - type Vtable = IVpnChannel6_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVpnChannel6 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x55843696_bd63_49c5_abca_5da77885551a); -} +::windows_core::imp::com_interface!(IVpnChannel6, IVpnChannel6_Vtbl, 0x55843696_bd63_49c5_abca_5da77885551a); #[repr(C)] #[doc(hidden)] pub struct IVpnChannel6_Vtbl { @@ -180,48 +117,21 @@ pub struct IVpnChannel6_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] ActivateForeground: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVpnChannelActivityEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVpnChannelActivityEventArgs { - type Vtable = IVpnChannelActivityEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVpnChannelActivityEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa36c88f2_afdc_4775_855d_d4ac0a35fc55); -} +::windows_core::imp::com_interface!(IVpnChannelActivityEventArgs, IVpnChannelActivityEventArgs_Vtbl, 0xa36c88f2_afdc_4775_855d_d4ac0a35fc55); #[repr(C)] #[doc(hidden)] pub struct IVpnChannelActivityEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Type: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut VpnChannelActivityEventType) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVpnChannelActivityStateChangedArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVpnChannelActivityStateChangedArgs { - type Vtable = IVpnChannelActivityStateChangedArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVpnChannelActivityStateChangedArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3d750565_fdc0_4bbe_a23b_45fffc6d97a1); -} +::windows_core::imp::com_interface!(IVpnChannelActivityStateChangedArgs, IVpnChannelActivityStateChangedArgs_Vtbl, 0x3d750565_fdc0_4bbe_a23b_45fffc6d97a1); #[repr(C)] #[doc(hidden)] pub struct IVpnChannelActivityStateChangedArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ActivityState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut VpnChannelActivityEventType) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVpnChannelConfiguration(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVpnChannelConfiguration { - type Vtable = IVpnChannelConfiguration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVpnChannelConfiguration { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0e2ddca2_2012_4fe4_b179_8c652c6d107e); -} +::windows_core::imp::com_interface!(IVpnChannelConfiguration, IVpnChannelConfiguration_Vtbl, 0x0e2ddca2_2012_4fe4_b179_8c652c6d107e); #[repr(C)] #[doc(hidden)] pub struct IVpnChannelConfiguration_Vtbl { @@ -233,16 +143,7 @@ pub struct IVpnChannelConfiguration_Vtbl { ServerHostNameList: usize, pub CustomField: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVpnChannelConfiguration2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVpnChannelConfiguration2 { - type Vtable = IVpnChannelConfiguration2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVpnChannelConfiguration2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf30b574c_7824_471c_a118_63dbc93ae4c7); -} +::windows_core::imp::com_interface!(IVpnChannelConfiguration2, IVpnChannelConfiguration2_Vtbl, 0xf30b574c_7824_471c_a118_63dbc93ae4c7); #[repr(C)] #[doc(hidden)] pub struct IVpnChannelConfiguration2_Vtbl { @@ -252,9 +153,8 @@ pub struct IVpnChannelConfiguration2_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] ServerUris: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVpnChannelStatics(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVpnChannelStatics, IVpnChannelStatics_Vtbl, 0x88eb062d_e818_4ffd_98a6_363e3736c95d); +::windows_core::imp::interface_hierarchy!(IVpnChannelStatics, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IVpnChannelStatics { pub fn ProcessEventAsync(&self, thirdpartyplugin: P0, event: P1) -> ::windows_core::Result<()> where @@ -265,25 +165,17 @@ impl IVpnChannelStatics { unsafe { (::windows_core::Interface::vtable(this).ProcessEventAsync)(::windows_core::Interface::as_raw(this), thirdpartyplugin.into_param().abi(), event.into_param().abi()).ok() } } } -::windows_core::imp::interface_hierarchy!(IVpnChannelStatics, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IVpnChannelStatics { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IVpnChannelStatics { - type Vtable = IVpnChannelStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVpnChannelStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x88eb062d_e818_4ffd_98a6_363e3736c95d); -} #[repr(C)] #[doc(hidden)] pub struct IVpnChannelStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ProcessEventAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, thirdpartyplugin: *mut ::core::ffi::c_void, event: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVpnCredential(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVpnCredential, IVpnCredential_Vtbl, 0xb7e78af3_a46d_404b_8729_1832522853ac); +::windows_core::imp::interface_hierarchy!(IVpnCredential, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IVpnCredential { #[doc = "Required features: `\"Security_Credentials\"`"] #[cfg(feature = "Security_Credentials")] @@ -320,16 +212,9 @@ impl IVpnCredential { } } } -::windows_core::imp::interface_hierarchy!(IVpnCredential, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IVpnCredential { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IVpnCredential { - type Vtable = IVpnCredential_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVpnCredential { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb7e78af3_a46d_404b_8729_1832522853ac); -} #[repr(C)] #[doc(hidden)] pub struct IVpnCredential_Vtbl { @@ -348,16 +233,7 @@ pub struct IVpnCredential_Vtbl { #[cfg(not(feature = "Security_Credentials"))] OldPasswordCredential: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVpnCustomCheckBox(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVpnCustomCheckBox { - type Vtable = IVpnCustomCheckBox_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVpnCustomCheckBox { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x43878753_03c5_4e61_93d7_a957714c4282); -} +::windows_core::imp::com_interface!(IVpnCustomCheckBox, IVpnCustomCheckBox_Vtbl, 0x43878753_03c5_4e61_93d7_a957714c4282); #[repr(C)] #[doc(hidden)] pub struct IVpnCustomCheckBox_Vtbl { @@ -366,16 +242,7 @@ pub struct IVpnCustomCheckBox_Vtbl { pub InitialCheckState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub Checked: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVpnCustomComboBox(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVpnCustomComboBox { - type Vtable = IVpnCustomComboBox_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVpnCustomComboBox { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9a24158e_dba1_4c6f_8270_dcf3c9761c4c); -} +::windows_core::imp::com_interface!(IVpnCustomComboBox, IVpnCustomComboBox_Vtbl, 0x9a24158e_dba1_4c6f_8270_dcf3c9761c4c); #[repr(C)] #[doc(hidden)] pub struct IVpnCustomComboBox_Vtbl { @@ -390,16 +257,7 @@ pub struct IVpnCustomComboBox_Vtbl { OptionsText: usize, pub Selected: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVpnCustomEditBox(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVpnCustomEditBox { - type Vtable = IVpnCustomEditBox_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVpnCustomEditBox { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3002d9a0_cfbf_4c0b_8f3c_66f503c20b39); -} +::windows_core::imp::com_interface!(IVpnCustomEditBox, IVpnCustomEditBox_Vtbl, 0x3002d9a0_cfbf_4c0b_8f3c_66f503c20b39); #[repr(C)] #[doc(hidden)] pub struct IVpnCustomEditBox_Vtbl { @@ -410,24 +268,14 @@ pub struct IVpnCustomEditBox_Vtbl { pub NoEcho: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub Text: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVpnCustomErrorBox(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVpnCustomErrorBox { - type Vtable = IVpnCustomErrorBox_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVpnCustomErrorBox { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9ec4efb2_c942_42af_b223_588b48328721); -} +::windows_core::imp::com_interface!(IVpnCustomErrorBox, IVpnCustomErrorBox_Vtbl, 0x9ec4efb2_c942_42af_b223_588b48328721); #[repr(C)] #[doc(hidden)] pub struct IVpnCustomErrorBox_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVpnCustomPrompt(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVpnCustomPrompt, IVpnCustomPrompt_Vtbl, 0x9b2ebe7b_87d5_433c_b4f6_eee6aa68a244); +::windows_core::imp::interface_hierarchy!(IVpnCustomPrompt, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IVpnCustomPrompt { pub fn SetLabel(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { let this = self; @@ -463,16 +311,9 @@ impl IVpnCustomPrompt { } } } -::windows_core::imp::interface_hierarchy!(IVpnCustomPrompt, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IVpnCustomPrompt { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IVpnCustomPrompt { - type Vtable = IVpnCustomPrompt_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVpnCustomPrompt { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9b2ebe7b_87d5_433c_b4f6_eee6aa68a244); -} #[repr(C)] #[doc(hidden)] pub struct IVpnCustomPrompt_Vtbl { @@ -484,16 +325,7 @@ pub struct IVpnCustomPrompt_Vtbl { pub SetBordered: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, pub Bordered: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVpnCustomPromptBooleanInput(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVpnCustomPromptBooleanInput { - type Vtable = IVpnCustomPromptBooleanInput_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVpnCustomPromptBooleanInput { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc4c9a69e_ff47_4527_9f27_a49292019979); -} +::windows_core::imp::com_interface!(IVpnCustomPromptBooleanInput, IVpnCustomPromptBooleanInput_Vtbl, 0xc4c9a69e_ff47_4527_9f27_a49292019979); #[repr(C)] #[doc(hidden)] pub struct IVpnCustomPromptBooleanInput_Vtbl { @@ -502,9 +334,8 @@ pub struct IVpnCustomPromptBooleanInput_Vtbl { pub InitialValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVpnCustomPromptElement(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVpnCustomPromptElement, IVpnCustomPromptElement_Vtbl, 0x73bd5638_6f04_404d_93dd_50a44924a38b); +::windows_core::imp::interface_hierarchy!(IVpnCustomPromptElement, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IVpnCustomPromptElement { pub fn SetDisplayName(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { let this = self; @@ -540,16 +371,9 @@ impl IVpnCustomPromptElement { } } } -::windows_core::imp::interface_hierarchy!(IVpnCustomPromptElement, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IVpnCustomPromptElement { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IVpnCustomPromptElement { - type Vtable = IVpnCustomPromptElement_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVpnCustomPromptElement { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x73bd5638_6f04_404d_93dd_50a44924a38b); -} #[repr(C)] #[doc(hidden)] pub struct IVpnCustomPromptElement_Vtbl { @@ -561,16 +385,7 @@ pub struct IVpnCustomPromptElement_Vtbl { pub SetEmphasized: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, pub Emphasized: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVpnCustomPromptOptionSelector(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVpnCustomPromptOptionSelector { - type Vtable = IVpnCustomPromptOptionSelector_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVpnCustomPromptOptionSelector { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3b8f34d9_8ec1_4e95_9a4e_7ba64d38f330); -} +::windows_core::imp::com_interface!(IVpnCustomPromptOptionSelector, IVpnCustomPromptOptionSelector_Vtbl, 0x3b8f34d9_8ec1_4e95_9a4e_7ba64d38f330); #[repr(C)] #[doc(hidden)] pub struct IVpnCustomPromptOptionSelector_Vtbl { @@ -581,16 +396,7 @@ pub struct IVpnCustomPromptOptionSelector_Vtbl { Options: usize, pub SelectedIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVpnCustomPromptText(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVpnCustomPromptText { - type Vtable = IVpnCustomPromptText_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVpnCustomPromptText { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3bc8bdee_3a42_49a3_abdd_07b2edea752d); -} +::windows_core::imp::com_interface!(IVpnCustomPromptText, IVpnCustomPromptText_Vtbl, 0x3bc8bdee_3a42_49a3_abdd_07b2edea752d); #[repr(C)] #[doc(hidden)] pub struct IVpnCustomPromptText_Vtbl { @@ -598,16 +404,7 @@ pub struct IVpnCustomPromptText_Vtbl { pub SetText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Text: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVpnCustomPromptTextInput(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVpnCustomPromptTextInput { - type Vtable = IVpnCustomPromptTextInput_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVpnCustomPromptTextInput { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc9da9c75_913c_47d5_88ba_48fc48930235); -} +::windows_core::imp::com_interface!(IVpnCustomPromptTextInput, IVpnCustomPromptTextInput_Vtbl, 0xc9da9c75_913c_47d5_88ba_48fc48930235); #[repr(C)] #[doc(hidden)] pub struct IVpnCustomPromptTextInput_Vtbl { @@ -618,16 +415,7 @@ pub struct IVpnCustomPromptTextInput_Vtbl { pub IsTextHidden: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub Text: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVpnCustomTextBox(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVpnCustomTextBox { - type Vtable = IVpnCustomTextBox_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVpnCustomTextBox { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdaa4c3ca_8f23_4d36_91f1_76d937827942); -} +::windows_core::imp::com_interface!(IVpnCustomTextBox, IVpnCustomTextBox_Vtbl, 0xdaa4c3ca_8f23_4d36_91f1_76d937827942); #[repr(C)] #[doc(hidden)] pub struct IVpnCustomTextBox_Vtbl { @@ -635,16 +423,7 @@ pub struct IVpnCustomTextBox_Vtbl { pub SetDisplayText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub DisplayText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVpnDomainNameAssignment(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVpnDomainNameAssignment { - type Vtable = IVpnDomainNameAssignment_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVpnDomainNameAssignment { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4135b141_ccdb_49b5_9401_039a8ae767e9); -} +::windows_core::imp::com_interface!(IVpnDomainNameAssignment, IVpnDomainNameAssignment_Vtbl, 0x4135b141_ccdb_49b5_9401_039a8ae767e9); #[repr(C)] #[doc(hidden)] pub struct IVpnDomainNameAssignment_Vtbl { @@ -656,16 +435,7 @@ pub struct IVpnDomainNameAssignment_Vtbl { pub SetProxyAutoConfigurationUri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ProxyAutoConfigurationUri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVpnDomainNameInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVpnDomainNameInfo { - type Vtable = IVpnDomainNameInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVpnDomainNameInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xad2eb82f_ea8e_4f7a_843e_1a87e32e1b9a); -} +::windows_core::imp::com_interface!(IVpnDomainNameInfo, IVpnDomainNameInfo_Vtbl, 0xad2eb82f_ea8e_4f7a_843e_1a87e32e1b9a); #[repr(C)] #[doc(hidden)] pub struct IVpnDomainNameInfo_Vtbl { @@ -683,16 +453,7 @@ pub struct IVpnDomainNameInfo_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] WebProxyServers: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVpnDomainNameInfo2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVpnDomainNameInfo2 { - type Vtable = IVpnDomainNameInfo2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVpnDomainNameInfo2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xab871151_6c53_4828_9883_d886de104407); -} +::windows_core::imp::com_interface!(IVpnDomainNameInfo2, IVpnDomainNameInfo2_Vtbl, 0xab871151_6c53_4828_9883_d886de104407); #[repr(C)] #[doc(hidden)] pub struct IVpnDomainNameInfo2_Vtbl { @@ -702,34 +463,26 @@ pub struct IVpnDomainNameInfo2_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] WebProxyUris: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVpnDomainNameInfoFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVpnDomainNameInfoFactory, IVpnDomainNameInfoFactory_Vtbl, 0x2507bb75_028f_4688_8d3a_c4531df37da8); +::windows_core::imp::interface_hierarchy!(IVpnDomainNameInfoFactory, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IVpnDomainNameInfoFactory { #[doc = "Required features: `\"Foundation_Collections\"`"] #[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::TryIntoParam>, - P1: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, + P1: ::windows_core::IntoParam>, { 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.try_into_param()?.abi(), proxyserverlist.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(IVpnDomainNameInfoFactory, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IVpnDomainNameInfoFactory { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IVpnDomainNameInfoFactory { - type Vtable = IVpnDomainNameInfoFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVpnDomainNameInfoFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2507bb75_028f_4688_8d3a_c4531df37da8); -} #[repr(C)] #[doc(hidden)] pub struct IVpnDomainNameInfoFactory_Vtbl { @@ -739,16 +492,7 @@ pub struct IVpnDomainNameInfoFactory_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] CreateVpnDomainNameInfo: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVpnForegroundActivatedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVpnForegroundActivatedEventArgs { - type Vtable = IVpnForegroundActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVpnForegroundActivatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x85b465b0_cadb_4d70_ac92_543a24dc9ebc); -} +::windows_core::imp::com_interface!(IVpnForegroundActivatedEventArgs, IVpnForegroundActivatedEventArgs_Vtbl, 0x85b465b0_cadb_4d70_ac92_543a24dc9ebc); #[repr(C)] #[doc(hidden)] pub struct IVpnForegroundActivatedEventArgs_Vtbl { @@ -760,16 +504,7 @@ pub struct IVpnForegroundActivatedEventArgs_Vtbl { SharedContext: usize, pub ActivationOperation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVpnForegroundActivationOperation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVpnForegroundActivationOperation { - type Vtable = IVpnForegroundActivationOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVpnForegroundActivationOperation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9e010d57_f17a_4bd5_9b6d_f984f1297d3c); -} +::windows_core::imp::com_interface!(IVpnForegroundActivationOperation, IVpnForegroundActivationOperation_Vtbl, 0x9e010d57_f17a_4bd5_9b6d_f984f1297d3c); #[repr(C)] #[doc(hidden)] pub struct IVpnForegroundActivationOperation_Vtbl { @@ -779,25 +514,15 @@ pub struct IVpnForegroundActivationOperation_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Complete: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVpnInterfaceId(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVpnInterfaceId { - type Vtable = IVpnInterfaceId_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVpnInterfaceId { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9e2ddca2_1712_4ce4_b179_8c652c6d1011); -} +::windows_core::imp::com_interface!(IVpnInterfaceId, IVpnInterfaceId_Vtbl, 0x9e2ddca2_1712_4ce4_b179_8c652c6d1011); #[repr(C)] #[doc(hidden)] pub struct IVpnInterfaceId_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetAddressInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id_array_size: *mut u32, id: *mut *mut u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVpnInterfaceIdFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVpnInterfaceIdFactory, IVpnInterfaceIdFactory_Vtbl, 0x9e2ddca2_1712_4ce4_b179_8c652c6d1000); +::windows_core::imp::interface_hierarchy!(IVpnInterfaceIdFactory, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IVpnInterfaceIdFactory { pub fn CreateVpnInterfaceId(&self, address: &[u8]) -> ::windows_core::Result { let this = self; @@ -807,32 +532,16 @@ impl IVpnInterfaceIdFactory { } } } -::windows_core::imp::interface_hierarchy!(IVpnInterfaceIdFactory, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IVpnInterfaceIdFactory { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IVpnInterfaceIdFactory { - type Vtable = IVpnInterfaceIdFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVpnInterfaceIdFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9e2ddca2_1712_4ce4_b179_8c652c6d1000); -} #[repr(C)] #[doc(hidden)] pub struct IVpnInterfaceIdFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateVpnInterfaceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, address_array_size: u32, address: *const u8, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVpnManagementAgent(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVpnManagementAgent { - type Vtable = IVpnManagementAgent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVpnManagementAgent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x193696cd_a5c4_4abe_852b_785be4cb3e34); -} +::windows_core::imp::com_interface!(IVpnManagementAgent, IVpnManagementAgent_Vtbl, 0x193696cd_a5c4_4abe_852b_785be4cb3e34); #[repr(C)] #[doc(hidden)] pub struct IVpnManagementAgent_Vtbl { @@ -853,16 +562,7 @@ pub struct IVpnManagementAgent_Vtbl { ConnectProfileWithPasswordCredentialAsync: usize, pub DisconnectProfileAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, profile: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVpnNamespaceAssignment(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVpnNamespaceAssignment { - type Vtable = IVpnNamespaceAssignment_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVpnNamespaceAssignment { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd7f7db18_307d_4c0e_bd62_8fa270bbadd6); -} +::windows_core::imp::com_interface!(IVpnNamespaceAssignment, IVpnNamespaceAssignment_Vtbl, 0xd7f7db18_307d_4c0e_bd62_8fa270bbadd6); #[repr(C)] #[doc(hidden)] pub struct IVpnNamespaceAssignment_Vtbl { @@ -878,16 +578,7 @@ pub struct IVpnNamespaceAssignment_Vtbl { pub SetProxyAutoConfigUri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ProxyAutoConfigUri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVpnNamespaceInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVpnNamespaceInfo { - type Vtable = IVpnNamespaceInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVpnNamespaceInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x30edfb43_444f_44c5_8167_a35a91f1af94); -} +::windows_core::imp::com_interface!(IVpnNamespaceInfo, IVpnNamespaceInfo_Vtbl, 0x30edfb43_444f_44c5_8167_a35a91f1af94); #[repr(C)] #[doc(hidden)] pub struct IVpnNamespaceInfo_Vtbl { @@ -911,34 +602,26 @@ pub struct IVpnNamespaceInfo_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] WebProxyServers: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVpnNamespaceInfoFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVpnNamespaceInfoFactory, IVpnNamespaceInfoFactory_Vtbl, 0xcb3e951a_b0ce_442b_acbb_5f99b202c31c); +::windows_core::imp::interface_hierarchy!(IVpnNamespaceInfoFactory, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IVpnNamespaceInfoFactory { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn CreateVpnNamespaceInfo(&self, name: &::windows_core::HSTRING, dnsserverlist: P0, proxyserverlist: P1) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, - P1: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, + P1: ::windows_core::IntoParam>, { 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.try_into_param()?.abi(), proxyserverlist.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(IVpnNamespaceInfoFactory, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IVpnNamespaceInfoFactory { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IVpnNamespaceInfoFactory { - type Vtable = IVpnNamespaceInfoFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVpnNamespaceInfoFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcb3e951a_b0ce_442b_acbb_5f99b202c31c); -} #[repr(C)] #[doc(hidden)] pub struct IVpnNamespaceInfoFactory_Vtbl { @@ -948,16 +631,7 @@ pub struct IVpnNamespaceInfoFactory_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] CreateVpnNamespaceInfo: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVpnNativeProfile(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVpnNativeProfile { - type Vtable = IVpnNativeProfile_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVpnNativeProfile { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa4aee29e_6417_4333_9842_f0a66db69802); -} +::windows_core::imp::com_interface!(IVpnNativeProfile, IVpnNativeProfile_Vtbl, 0xa4aee29e_6417_4333_9842_f0a66db69802); #[repr(C)] #[doc(hidden)] pub struct IVpnNativeProfile_Vtbl { @@ -977,16 +651,7 @@ pub struct IVpnNativeProfile_Vtbl { pub EapConfiguration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetEapConfiguration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVpnNativeProfile2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVpnNativeProfile2 { - type Vtable = IVpnNativeProfile2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVpnNativeProfile2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0fec2467_cdb5_4ac7_b5a3_0afb5ec47682); -} +::windows_core::imp::com_interface!(IVpnNativeProfile2, IVpnNativeProfile2_Vtbl, 0x0fec2467_cdb5_4ac7_b5a3_0afb5ec47682); #[repr(C)] #[doc(hidden)] pub struct IVpnNativeProfile2_Vtbl { @@ -995,16 +660,7 @@ pub struct IVpnNativeProfile2_Vtbl { pub SetRequireVpnClientAppUI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, pub ConnectionStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut VpnManagementConnectionStatus) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVpnPacketBuffer(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVpnPacketBuffer { - type Vtable = IVpnPacketBuffer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVpnPacketBuffer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc2f891fc_4d5c_4a63_b70d_4e307eacce55); -} +::windows_core::imp::com_interface!(IVpnPacketBuffer, IVpnPacketBuffer_Vtbl, 0xc2f891fc_4d5c_4a63_b70d_4e307eacce55); #[repr(C)] #[doc(hidden)] pub struct IVpnPacketBuffer_Vtbl { @@ -1018,32 +674,14 @@ pub struct IVpnPacketBuffer_Vtbl { pub SetTransportAffinity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: u32) -> ::windows_core::HRESULT, pub TransportAffinity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVpnPacketBuffer2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVpnPacketBuffer2 { - type Vtable = IVpnPacketBuffer2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVpnPacketBuffer2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x665e91f0_8805_4bf5_a619_2e84882e6b4f); -} +::windows_core::imp::com_interface!(IVpnPacketBuffer2, IVpnPacketBuffer2_Vtbl, 0x665e91f0_8805_4bf5_a619_2e84882e6b4f); #[repr(C)] #[doc(hidden)] pub struct IVpnPacketBuffer2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub AppId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVpnPacketBuffer3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVpnPacketBuffer3 { - type Vtable = IVpnPacketBuffer3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVpnPacketBuffer3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe256072f_107b_4c40_b127_5bc53e0ad960); -} +::windows_core::imp::com_interface!(IVpnPacketBuffer3, IVpnPacketBuffer3_Vtbl, 0xe256072f_107b_4c40_b127_5bc53e0ad960); #[repr(C)] #[doc(hidden)] pub struct IVpnPacketBuffer3_Vtbl { @@ -1051,9 +689,8 @@ pub struct IVpnPacketBuffer3_Vtbl { pub SetTransportContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub TransportContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVpnPacketBufferFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVpnPacketBufferFactory, IVpnPacketBufferFactory_Vtbl, 0x9e2ddca2_1712_4ce4_b179_8c652c6d9999); +::windows_core::imp::interface_hierarchy!(IVpnPacketBufferFactory, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IVpnPacketBufferFactory { pub fn CreateVpnPacketBuffer(&self, parentbuffer: P0, offset: u32, length: u32) -> ::windows_core::Result where @@ -1066,32 +703,16 @@ impl IVpnPacketBufferFactory { } } } -::windows_core::imp::interface_hierarchy!(IVpnPacketBufferFactory, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IVpnPacketBufferFactory { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IVpnPacketBufferFactory { - type Vtable = IVpnPacketBufferFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVpnPacketBufferFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9e2ddca2_1712_4ce4_b179_8c652c6d9999); -} #[repr(C)] #[doc(hidden)] pub struct IVpnPacketBufferFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateVpnPacketBuffer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, parentbuffer: *mut ::core::ffi::c_void, offset: u32, length: u32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVpnPacketBufferList(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVpnPacketBufferList { - type Vtable = IVpnPacketBufferList_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVpnPacketBufferList { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc2f891fc_4d5c_4a63_b70d_4e307eacce77); -} +::windows_core::imp::com_interface!(IVpnPacketBufferList, IVpnPacketBufferList_Vtbl, 0xc2f891fc_4d5c_4a63_b70d_4e307eacce77); #[repr(C)] #[doc(hidden)] pub struct IVpnPacketBufferList_Vtbl { @@ -1105,16 +726,7 @@ pub struct IVpnPacketBufferList_Vtbl { pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut VpnPacketBufferStatus) -> ::windows_core::HRESULT, pub Size: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVpnPacketBufferList2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVpnPacketBufferList2 { - type Vtable = IVpnPacketBufferList2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVpnPacketBufferList2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3e7acfe5_ea1e_482a_8d98_c065f57d89ea); -} +::windows_core::imp::com_interface!(IVpnPacketBufferList2, IVpnPacketBufferList2_Vtbl, 0x3e7acfe5_ea1e_482a_8d98_c065f57d89ea); #[repr(C)] #[doc(hidden)] pub struct IVpnPacketBufferList2_Vtbl { @@ -1124,16 +736,7 @@ pub struct IVpnPacketBufferList2_Vtbl { pub AddTrailingPacket: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nextvpnpacketbuffer: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RemoveTrailingPacket: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVpnPickedCredential(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVpnPickedCredential { - type Vtable = IVpnPickedCredential_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVpnPickedCredential { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9a793ac7_8854_4e52_ad97_24dd9a842bce); -} +::windows_core::imp::com_interface!(IVpnPickedCredential, IVpnPickedCredential_Vtbl, 0x9a793ac7_8854_4e52_ad97_24dd9a842bce); #[repr(C)] #[doc(hidden)] pub struct IVpnPickedCredential_Vtbl { @@ -1148,9 +751,8 @@ pub struct IVpnPickedCredential_Vtbl { #[cfg(not(feature = "Security_Credentials"))] OldPasswordCredential: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVpnPlugIn(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVpnPlugIn, IVpnPlugIn_Vtbl, 0xceb78d07_d0a8_4703_a091_c8c2c0915bc4); +::windows_core::imp::interface_hierarchy!(IVpnPlugIn, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IVpnPlugIn { pub fn Connect(&self, channel: P0) -> ::windows_core::Result<()> where @@ -1193,16 +795,9 @@ impl IVpnPlugIn { 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() } } } -::windows_core::imp::interface_hierarchy!(IVpnPlugIn, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IVpnPlugIn { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IVpnPlugIn { - type Vtable = IVpnPlugIn_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVpnPlugIn { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xceb78d07_d0a8_4703_a091_c8c2c0915bc4); -} #[repr(C)] #[doc(hidden)] pub struct IVpnPlugIn_Vtbl { @@ -1213,16 +808,7 @@ pub struct IVpnPlugIn_Vtbl { pub Encapsulate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, channel: *mut ::core::ffi::c_void, packets: *mut ::core::ffi::c_void, encapulatedpackets: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Decapsulate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, channel: *mut ::core::ffi::c_void, encapbuffer: *mut ::core::ffi::c_void, decapsulatedpackets: *mut ::core::ffi::c_void, controlpacketstosend: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVpnPlugInProfile(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVpnPlugInProfile { - type Vtable = IVpnPlugInProfile_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVpnPlugInProfile { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0edf0da4_4f00_4589_8d7b_4bf988f6542c); -} +::windows_core::imp::com_interface!(IVpnPlugInProfile, IVpnPlugInProfile_Vtbl, 0x0edf0da4_4f00_4589_8d7b_4bf988f6542c); #[repr(C)] #[doc(hidden)] pub struct IVpnPlugInProfile_Vtbl { @@ -1236,16 +822,7 @@ pub struct IVpnPlugInProfile_Vtbl { pub VpnPluginPackageFamilyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetVpnPluginPackageFamilyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVpnPlugInProfile2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVpnPlugInProfile2 { - type Vtable = IVpnPlugInProfile2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVpnPlugInProfile2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x611c4892_cf94_4ad6_ba99_00f4ff34565e); -} +::windows_core::imp::com_interface!(IVpnPlugInProfile2, IVpnPlugInProfile2_Vtbl, 0x611c4892_cf94_4ad6_ba99_00f4ff34565e); #[repr(C)] #[doc(hidden)] pub struct IVpnPlugInProfile2_Vtbl { @@ -1254,9 +831,8 @@ pub struct IVpnPlugInProfile2_Vtbl { pub SetRequireVpnClientAppUI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, pub ConnectionStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut VpnManagementConnectionStatus) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVpnProfile(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVpnProfile, IVpnProfile_Vtbl, 0x7875b751_b0d7_43db_8a93_d3fe2479e56a); +::windows_core::imp::interface_hierarchy!(IVpnProfile, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IVpnProfile { pub fn ProfileName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1328,16 +904,9 @@ impl IVpnProfile { unsafe { (::windows_core::Interface::vtable(this).SetAlwaysOn)(::windows_core::Interface::as_raw(this), value).ok() } } } -::windows_core::imp::interface_hierarchy!(IVpnProfile, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IVpnProfile { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IVpnProfile { - type Vtable = IVpnProfile_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVpnProfile { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7875b751_b0d7_43db_8a93_d3fe2479e56a); -} #[repr(C)] #[doc(hidden)] pub struct IVpnProfile_Vtbl { @@ -1365,16 +934,7 @@ pub struct IVpnProfile_Vtbl { pub AlwaysOn: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetAlwaysOn: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVpnRoute(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVpnRoute { - type Vtable = IVpnRoute_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVpnRoute { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb5731b83_0969_4699_938e_7776db29cfb3); -} +::windows_core::imp::com_interface!(IVpnRoute, IVpnRoute_Vtbl, 0xb5731b83_0969_4699_938e_7776db29cfb3); #[repr(C)] #[doc(hidden)] pub struct IVpnRoute_Vtbl { @@ -1384,16 +944,7 @@ pub struct IVpnRoute_Vtbl { pub SetPrefixSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: u8) -> ::windows_core::HRESULT, pub PrefixSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u8) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVpnRouteAssignment(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVpnRouteAssignment { - type Vtable = IVpnRouteAssignment_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVpnRouteAssignment { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdb64de22_ce39_4a76_9550_f61039f80e48); -} +::windows_core::imp::com_interface!(IVpnRouteAssignment, IVpnRouteAssignment_Vtbl, 0xdb64de22_ce39_4a76_9550_f61039f80e48); #[repr(C)] #[doc(hidden)] pub struct IVpnRouteAssignment_Vtbl { @@ -1433,9 +984,8 @@ pub struct IVpnRouteAssignment_Vtbl { pub SetExcludeLocalSubnets: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, pub ExcludeLocalSubnets: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVpnRouteFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVpnRouteFactory, IVpnRouteFactory_Vtbl, 0xbdeab5ff_45cf_4b99_83fb_db3bc2672b02); +::windows_core::imp::interface_hierarchy!(IVpnRouteFactory, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IVpnRouteFactory { pub fn CreateVpnRoute(&self, address: P0, prefixsize: u8) -> ::windows_core::Result where @@ -1448,32 +998,16 @@ impl IVpnRouteFactory { } } } -::windows_core::imp::interface_hierarchy!(IVpnRouteFactory, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IVpnRouteFactory { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IVpnRouteFactory { - type Vtable = IVpnRouteFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVpnRouteFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbdeab5ff_45cf_4b99_83fb_db3bc2672b02); -} #[repr(C)] #[doc(hidden)] pub struct IVpnRouteFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateVpnRoute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, address: *mut ::core::ffi::c_void, prefixsize: u8, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVpnSystemHealth(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVpnSystemHealth { - type Vtable = IVpnSystemHealth_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVpnSystemHealth { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x99a8f8af_c0ee_4e75_817a_f231aee5123d); -} +::windows_core::imp::com_interface!(IVpnSystemHealth, IVpnSystemHealth_Vtbl, 0x99a8f8af_c0ee_4e75_817a_f231aee5123d); #[repr(C)] #[doc(hidden)] pub struct IVpnSystemHealth_Vtbl { @@ -1483,16 +1017,7 @@ pub struct IVpnSystemHealth_Vtbl { #[cfg(not(feature = "Storage_Streams"))] StatementOfHealth: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVpnTrafficFilter(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVpnTrafficFilter { - type Vtable = IVpnTrafficFilter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVpnTrafficFilter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2f691b60_6c9f_47f5_ac36_bb1b042e2c50); -} +::windows_core::imp::com_interface!(IVpnTrafficFilter, IVpnTrafficFilter_Vtbl, 0x2f691b60_6c9f_47f5_ac36_bb1b042e2c50); #[repr(C)] #[doc(hidden)] pub struct IVpnTrafficFilter_Vtbl { @@ -1524,16 +1049,7 @@ pub struct IVpnTrafficFilter_Vtbl { pub RoutingPolicyType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut VpnRoutingPolicyType) -> ::windows_core::HRESULT, pub SetRoutingPolicyType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: VpnRoutingPolicyType) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVpnTrafficFilterAssignment(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVpnTrafficFilterAssignment { - type Vtable = IVpnTrafficFilterAssignment_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVpnTrafficFilterAssignment { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x56ccd45c_e664_471e_89cd_601603b9e0f3); -} +::windows_core::imp::com_interface!(IVpnTrafficFilterAssignment, IVpnTrafficFilterAssignment_Vtbl, 0x56ccd45c_e664_471e_89cd_601603b9e0f3); #[repr(C)] #[doc(hidden)] pub struct IVpnTrafficFilterAssignment_Vtbl { @@ -1547,16 +1063,7 @@ pub struct IVpnTrafficFilterAssignment_Vtbl { pub AllowInbound: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetAllowInbound: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVpnTrafficFilterFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVpnTrafficFilterFactory { - type Vtable = IVpnTrafficFilterFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVpnTrafficFilterFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x480d41d5_7f99_474c_86ee_96df168318f1); -} +::windows_core::imp::com_interface!(IVpnTrafficFilterFactory, IVpnTrafficFilterFactory_Vtbl, 0x480d41d5_7f99_474c_86ee_96df168318f1); #[repr(C)] #[doc(hidden)] pub struct IVpnTrafficFilterFactory_Vtbl { @@ -1566,6 +1073,7 @@ pub struct IVpnTrafficFilterFactory_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VpnAppId(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VpnAppId, ::windows_core::IUnknown, ::windows_core::IInspectable); impl VpnAppId { pub fn Type(&self) -> ::windows_core::Result { let this = self; @@ -1606,19 +1114,17 @@ impl ::windows_core::RuntimeType for VpnAppId { } unsafe impl ::windows_core::Interface for VpnAppId { type Vtable = IVpnAppId_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VpnAppId { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VpnAppId { const NAME: &'static str = "Windows.Networking.Vpn.VpnAppId"; } -::windows_core::imp::interface_hierarchy!(VpnAppId, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for VpnAppId {} unsafe impl ::core::marker::Sync for VpnAppId {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VpnChannel(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VpnChannel, ::windows_core::IUnknown, ::windows_core::IInspectable); impl VpnChannel { pub fn AssociateTransport(&self, mainoutertunneltransport: P0, optionaloutertunneltransport: P1) -> ::windows_core::Result<()> where @@ -1632,8 +1138,8 @@ impl VpnChannel { #[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::TryIntoParam>, - P1: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, + P1: ::windows_core::IntoParam>, P2: ::windows_core::IntoParam, P3: ::windows_core::IntoParam, P4: ::windows_core::IntoParam, @@ -1641,7 +1147,7 @@ impl VpnChannel { P6: ::windows_core::IntoParam<::windows_core::IInspectable>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).Start)(::windows_core::Interface::as_raw(this), assignedclientipv4list.try_into_param()?.abi(), assignedclientipv6list.try_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.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() } } pub fn Stop(&self) -> ::windows_core::Result<()> { let this = self; @@ -1720,10 +1226,10 @@ impl VpnChannel { #[cfg(feature = "Foundation_Collections")] pub fn RequestCustomPrompt(&self, customprompt: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).RequestCustomPrompt)(::windows_core::Interface::as_raw(this), customprompt.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).RequestCustomPrompt)(::windows_core::Interface::as_raw(this), customprompt.into_param().abi()).ok() } } pub fn SetErrorMessage(&self, message: &::windows_core::HSTRING) -> ::windows_core::Result<()> { let this = self; @@ -1740,52 +1246,52 @@ impl VpnChannel { #[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::TryIntoParam>, - P1: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, + P1: ::windows_core::IntoParam>, P2: ::windows_core::IntoParam, P3: ::windows_core::IntoParam, P4: ::windows_core::IntoParam, P5: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartWithMainTransport)(::windows_core::Interface::as_raw(this), assignedclientipv4list.try_into_param()?.abi(), assignedclientipv6list.try_into_param()?.abi(), vpninterfaceid.into_param().abi(), assignedroutes.into_param().abi(), assigneddomainname.into_param().abi(), mtusize, maxframesize, reserved, mainoutertunneltransport.into_param().abi()).ok() } + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[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::TryIntoParam>, - P1: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, + P1: ::windows_core::IntoParam>, P2: ::windows_core::IntoParam, P3: ::windows_core::IntoParam, P4: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartExistingTransports)(::windows_core::Interface::as_raw(this), assignedclientipv4list.try_into_param()?.abi(), assignedclientipv6list.try_into_param()?.abi(), vpninterfaceid.into_param().abi(), assignedroutes.into_param().abi(), assigneddomainname.into_param().abi(), mtusize, maxframesize, reserved).ok() } + 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() } } pub fn ActivityStateChange(&self, handler: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveActivityStateChange(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveActivityStateChange)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn GetVpnSendPacketBuffer(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetVpnSendPacketBuffer)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetVpnReceivePacketBuffer(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetVpnReceivePacketBuffer)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1795,12 +1301,12 @@ impl VpnChannel { #[cfg(feature = "Foundation_Collections")] pub fn RequestCustomPromptAsync(&self, custompromptelement: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).RequestCustomPromptAsync)(::windows_core::Interface::as_raw(this), custompromptelement.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Security_Cryptography_Certificates\"`"] @@ -1809,36 +1315,36 @@ impl VpnChannel { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RequestCredentialsWithOptionsAsync(&self, credtype: VpnCredentialType, credoptions: u32) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RequestCredentialsWithOptionsAsync)(::windows_core::Interface::as_raw(this), credtype, credoptions, &mut result__).from_abi(result__) } } pub fn RequestCredentialsSimpleAsync(&self, credtype: VpnCredentialType) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RequestCredentialsSimpleAsync)(::windows_core::Interface::as_raw(this), credtype, &mut result__).from_abi(result__) } } pub fn TerminateConnection(&self, message: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).TerminateConnection)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(message)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[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::TryIntoParam>, - P1: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, + P1: ::windows_core::IntoParam>, P2: ::windows_core::IntoParam, P3: ::windows_core::IntoParam, P4: ::windows_core::IntoParam, @@ -1846,38 +1352,38 @@ impl VpnChannel { P6: ::windows_core::IntoParam<::windows_core::IInspectable>, P7: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartWithTrafficFilter)(::windows_core::Interface::as_raw(this), assignedclientipv4list.try_into_param()?.abi(), assignedclientipv6list.try_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() } + 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() } } pub fn AddAndAssociateTransport(&self, transport: P0, context: P1) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, P1: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[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::TryIntoParam>, - P1: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, + P1: ::windows_core::IntoParam>, P2: ::windows_core::IntoParam, P3: ::windows_core::IntoParam, P4: ::windows_core::IntoParam, - P5: ::windows_core::TryIntoParam>, + P5: ::windows_core::IntoParam>, P6: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartWithMultipleTransports)(::windows_core::Interface::as_raw(this), assignedclientipv4addresses.try_into_param()?.abi(), assignedclientipv6addresses.try_into_param()?.abi(), vpninterfaceid.into_param().abi(), assignedroutes.into_param().abi(), assignednamespace.into_param().abi(), mtusize, maxframesize, reserved, transports.try_into_param()?.abi(), assignedtrafficfilters.into_param().abi()).ok() } + 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() } } pub fn ReplaceAndAssociateTransport(&self, transport: P0, context: P1) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, P1: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartReconnectingTransport(&self, transport: P0, context: P1) -> ::windows_core::Result<()> @@ -1885,7 +1391,7 @@ impl VpnChannel { P0: ::windows_core::IntoParam<::windows_core::IInspectable>, P1: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } #[doc = "Required features: `\"Networking_Sockets\"`"] @@ -1894,14 +1400,14 @@ impl VpnChannel { where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn CurrentRequestTransportContext(&self) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CurrentRequestTransportContext)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1911,22 +1417,22 @@ impl VpnChannel { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn AppendVpnSendPacketBuffer(&self, encapsulatedpacketbuffer: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn FlushVpnReceivePacketBuffers(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).FlushVpnReceivePacketBuffers)(::windows_core::Interface::as_raw(this)).ok() } } pub fn FlushVpnSendPacketBuffers(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).FlushVpnSendPacketBuffers)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -1935,7 +1441,7 @@ impl VpnChannel { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -1959,19 +1465,17 @@ impl ::windows_core::RuntimeType for VpnChannel { } unsafe impl ::windows_core::Interface for VpnChannel { type Vtable = IVpnChannel_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VpnChannel { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VpnChannel { const NAME: &'static str = "Windows.Networking.Vpn.VpnChannel"; } -::windows_core::imp::interface_hierarchy!(VpnChannel, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for VpnChannel {} unsafe impl ::core::marker::Sync for VpnChannel {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VpnChannelActivityEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VpnChannelActivityEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl VpnChannelActivityEventArgs { pub fn Type(&self) -> ::windows_core::Result { let this = self; @@ -1986,19 +1490,17 @@ impl ::windows_core::RuntimeType for VpnChannelActivityEventArgs { } unsafe impl ::windows_core::Interface for VpnChannelActivityEventArgs { type Vtable = IVpnChannelActivityEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VpnChannelActivityEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VpnChannelActivityEventArgs { const NAME: &'static str = "Windows.Networking.Vpn.VpnChannelActivityEventArgs"; } -::windows_core::imp::interface_hierarchy!(VpnChannelActivityEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for VpnChannelActivityEventArgs {} unsafe impl ::core::marker::Sync for VpnChannelActivityEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VpnChannelActivityStateChangedArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VpnChannelActivityStateChangedArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl VpnChannelActivityStateChangedArgs { pub fn ActivityState(&self) -> ::windows_core::Result { let this = self; @@ -2013,19 +1515,17 @@ impl ::windows_core::RuntimeType for VpnChannelActivityStateChangedArgs { } unsafe impl ::windows_core::Interface for VpnChannelActivityStateChangedArgs { type Vtable = IVpnChannelActivityStateChangedArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VpnChannelActivityStateChangedArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VpnChannelActivityStateChangedArgs { const NAME: &'static str = "Windows.Networking.Vpn.VpnChannelActivityStateChangedArgs"; } -::windows_core::imp::interface_hierarchy!(VpnChannelActivityStateChangedArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for VpnChannelActivityStateChangedArgs {} unsafe impl ::core::marker::Sync for VpnChannelActivityStateChangedArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VpnChannelConfiguration(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VpnChannelConfiguration, ::windows_core::IUnknown, ::windows_core::IInspectable); impl VpnChannelConfiguration { pub fn ServerServiceName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -2053,7 +1553,7 @@ impl VpnChannelConfiguration { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn ServerUris(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ServerUris)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2065,19 +1565,18 @@ impl ::windows_core::RuntimeType for VpnChannelConfiguration { } unsafe impl ::windows_core::Interface for VpnChannelConfiguration { type Vtable = IVpnChannelConfiguration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VpnChannelConfiguration { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VpnChannelConfiguration { const NAME: &'static str = "Windows.Networking.Vpn.VpnChannelConfiguration"; } -::windows_core::imp::interface_hierarchy!(VpnChannelConfiguration, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for VpnChannelConfiguration {} unsafe impl ::core::marker::Sync for VpnChannelConfiguration {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VpnCredential(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VpnCredential, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(VpnCredential, IVpnCredential); impl VpnCredential { #[doc = "Required features: `\"Security_Credentials\"`"] #[cfg(feature = "Security_Credentials")] @@ -2119,20 +1618,18 @@ impl ::windows_core::RuntimeType for VpnCredential { } unsafe impl ::windows_core::Interface for VpnCredential { type Vtable = IVpnCredential_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VpnCredential { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VpnCredential { const NAME: &'static str = "Windows.Networking.Vpn.VpnCredential"; } -::windows_core::imp::interface_hierarchy!(VpnCredential, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for VpnCredential {} unsafe impl ::core::marker::Send for VpnCredential {} unsafe impl ::core::marker::Sync for VpnCredential {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VpnCustomCheckBox(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VpnCustomCheckBox, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(VpnCustomCheckBox, IVpnCustomPrompt); impl VpnCustomCheckBox { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2160,33 +1657,33 @@ impl VpnCustomCheckBox { } } pub fn SetLabel(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetLabel)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn Label(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Label)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetCompulsory(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCompulsory)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Compulsory(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compulsory)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetBordered(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetBordered)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Bordered(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Bordered)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2198,20 +1695,18 @@ impl ::windows_core::RuntimeType for VpnCustomCheckBox { } unsafe impl ::windows_core::Interface for VpnCustomCheckBox { type Vtable = IVpnCustomCheckBox_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VpnCustomCheckBox { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VpnCustomCheckBox { const NAME: &'static str = "Windows.Networking.Vpn.VpnCustomCheckBox"; } -::windows_core::imp::interface_hierarchy!(VpnCustomCheckBox, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for VpnCustomCheckBox {} unsafe impl ::core::marker::Send for VpnCustomCheckBox {} unsafe impl ::core::marker::Sync for VpnCustomCheckBox {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VpnCustomComboBox(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VpnCustomComboBox, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(VpnCustomComboBox, IVpnCustomPrompt); impl VpnCustomComboBox { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2224,10 +1719,10 @@ impl VpnCustomComboBox { #[cfg(feature = "Foundation_Collections")] pub fn SetOptionsText(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetOptionsText)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetOptionsText)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -2246,33 +1741,33 @@ impl VpnCustomComboBox { } } pub fn SetLabel(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetLabel)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn Label(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Label)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetCompulsory(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCompulsory)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Compulsory(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compulsory)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetBordered(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetBordered)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Bordered(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Bordered)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2284,20 +1779,18 @@ impl ::windows_core::RuntimeType for VpnCustomComboBox { } unsafe impl ::windows_core::Interface for VpnCustomComboBox { type Vtable = IVpnCustomComboBox_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VpnCustomComboBox { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VpnCustomComboBox { const NAME: &'static str = "Windows.Networking.Vpn.VpnCustomComboBox"; } -::windows_core::imp::interface_hierarchy!(VpnCustomComboBox, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for VpnCustomComboBox {} unsafe impl ::core::marker::Send for VpnCustomComboBox {} unsafe impl ::core::marker::Sync for VpnCustomComboBox {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VpnCustomEditBox(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VpnCustomEditBox, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(VpnCustomEditBox, IVpnCustomPrompt); impl VpnCustomEditBox { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2336,33 +1829,33 @@ impl VpnCustomEditBox { } } pub fn SetLabel(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetLabel)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn Label(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Label)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetCompulsory(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCompulsory)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Compulsory(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compulsory)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetBordered(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetBordered)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Bordered(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Bordered)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2374,20 +1867,18 @@ impl ::windows_core::RuntimeType for VpnCustomEditBox { } unsafe impl ::windows_core::Interface for VpnCustomEditBox { type Vtable = IVpnCustomEditBox_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VpnCustomEditBox { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VpnCustomEditBox { const NAME: &'static str = "Windows.Networking.Vpn.VpnCustomEditBox"; } -::windows_core::imp::interface_hierarchy!(VpnCustomEditBox, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for VpnCustomEditBox {} unsafe impl ::core::marker::Send for VpnCustomEditBox {} unsafe impl ::core::marker::Sync for VpnCustomEditBox {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VpnCustomErrorBox(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VpnCustomErrorBox, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(VpnCustomErrorBox, IVpnCustomPrompt); impl VpnCustomErrorBox { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2397,33 +1888,33 @@ impl VpnCustomErrorBox { SHARED.call(callback) } pub fn SetLabel(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetLabel)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn Label(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Label)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetCompulsory(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCompulsory)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Compulsory(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compulsory)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetBordered(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetBordered)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Bordered(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Bordered)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2435,20 +1926,18 @@ impl ::windows_core::RuntimeType for VpnCustomErrorBox { } unsafe impl ::windows_core::Interface for VpnCustomErrorBox { type Vtable = IVpnCustomErrorBox_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VpnCustomErrorBox { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VpnCustomErrorBox { const NAME: &'static str = "Windows.Networking.Vpn.VpnCustomErrorBox"; } -::windows_core::imp::interface_hierarchy!(VpnCustomErrorBox, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for VpnCustomErrorBox {} unsafe impl ::core::marker::Send for VpnCustomErrorBox {} unsafe impl ::core::marker::Sync for VpnCustomErrorBox {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VpnCustomPromptBooleanInput(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VpnCustomPromptBooleanInput, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(VpnCustomPromptBooleanInput, IVpnCustomPromptElement); impl VpnCustomPromptBooleanInput { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2476,33 +1965,33 @@ impl VpnCustomPromptBooleanInput { } } pub fn SetDisplayName(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDisplayName)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn DisplayName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DisplayName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetCompulsory(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCompulsory)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Compulsory(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compulsory)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetEmphasized(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetEmphasized)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Emphasized(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Emphasized)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2514,20 +2003,18 @@ impl ::windows_core::RuntimeType for VpnCustomPromptBooleanInput { } unsafe impl ::windows_core::Interface for VpnCustomPromptBooleanInput { type Vtable = IVpnCustomPromptBooleanInput_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VpnCustomPromptBooleanInput { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VpnCustomPromptBooleanInput { const NAME: &'static str = "Windows.Networking.Vpn.VpnCustomPromptBooleanInput"; } -::windows_core::imp::interface_hierarchy!(VpnCustomPromptBooleanInput, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for VpnCustomPromptBooleanInput {} unsafe impl ::core::marker::Send for VpnCustomPromptBooleanInput {} unsafe impl ::core::marker::Sync for VpnCustomPromptBooleanInput {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VpnCustomPromptOptionSelector(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VpnCustomPromptOptionSelector, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(VpnCustomPromptOptionSelector, IVpnCustomPromptElement); impl VpnCustomPromptOptionSelector { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2537,33 +2024,33 @@ impl VpnCustomPromptOptionSelector { SHARED.call(callback) } pub fn SetDisplayName(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDisplayName)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn DisplayName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DisplayName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetCompulsory(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCompulsory)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Compulsory(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compulsory)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetEmphasized(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetEmphasized)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Emphasized(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Emphasized)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2591,20 +2078,18 @@ impl ::windows_core::RuntimeType for VpnCustomPromptOptionSelector { } unsafe impl ::windows_core::Interface for VpnCustomPromptOptionSelector { type Vtable = IVpnCustomPromptOptionSelector_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VpnCustomPromptOptionSelector { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VpnCustomPromptOptionSelector { const NAME: &'static str = "Windows.Networking.Vpn.VpnCustomPromptOptionSelector"; } -::windows_core::imp::interface_hierarchy!(VpnCustomPromptOptionSelector, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for VpnCustomPromptOptionSelector {} unsafe impl ::core::marker::Send for VpnCustomPromptOptionSelector {} unsafe impl ::core::marker::Sync for VpnCustomPromptOptionSelector {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VpnCustomPromptText(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VpnCustomPromptText, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(VpnCustomPromptText, IVpnCustomPromptElement); impl VpnCustomPromptText { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2614,33 +2099,33 @@ impl VpnCustomPromptText { SHARED.call(callback) } pub fn SetDisplayName(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDisplayName)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn DisplayName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DisplayName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetCompulsory(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCompulsory)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Compulsory(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compulsory)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetEmphasized(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetEmphasized)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Emphasized(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Emphasized)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2663,20 +2148,18 @@ impl ::windows_core::RuntimeType for VpnCustomPromptText { } unsafe impl ::windows_core::Interface for VpnCustomPromptText { type Vtable = IVpnCustomPromptText_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VpnCustomPromptText { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VpnCustomPromptText { const NAME: &'static str = "Windows.Networking.Vpn.VpnCustomPromptText"; } -::windows_core::imp::interface_hierarchy!(VpnCustomPromptText, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for VpnCustomPromptText {} unsafe impl ::core::marker::Send for VpnCustomPromptText {} unsafe impl ::core::marker::Sync for VpnCustomPromptText {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VpnCustomPromptTextInput(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VpnCustomPromptTextInput, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(VpnCustomPromptTextInput, IVpnCustomPromptElement); impl VpnCustomPromptTextInput { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2686,33 +2169,33 @@ impl VpnCustomPromptTextInput { SHARED.call(callback) } pub fn SetDisplayName(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDisplayName)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn DisplayName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DisplayName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetCompulsory(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCompulsory)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Compulsory(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compulsory)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetEmphasized(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetEmphasized)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Emphasized(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Emphasized)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2753,20 +2236,18 @@ impl ::windows_core::RuntimeType for VpnCustomPromptTextInput { } unsafe impl ::windows_core::Interface for VpnCustomPromptTextInput { type Vtable = IVpnCustomPromptTextInput_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VpnCustomPromptTextInput { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VpnCustomPromptTextInput { const NAME: &'static str = "Windows.Networking.Vpn.VpnCustomPromptTextInput"; } -::windows_core::imp::interface_hierarchy!(VpnCustomPromptTextInput, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for VpnCustomPromptTextInput {} unsafe impl ::core::marker::Send for VpnCustomPromptTextInput {} unsafe impl ::core::marker::Sync for VpnCustomPromptTextInput {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VpnCustomTextBox(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VpnCustomTextBox, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(VpnCustomTextBox, IVpnCustomPrompt); impl VpnCustomTextBox { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2776,33 +2257,33 @@ impl VpnCustomTextBox { SHARED.call(callback) } pub fn SetLabel(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetLabel)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn Label(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Label)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetCompulsory(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCompulsory)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Compulsory(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compulsory)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetBordered(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetBordered)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Bordered(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Bordered)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2825,20 +2306,17 @@ impl ::windows_core::RuntimeType for VpnCustomTextBox { } unsafe impl ::windows_core::Interface for VpnCustomTextBox { type Vtable = IVpnCustomTextBox_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VpnCustomTextBox { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VpnCustomTextBox { const NAME: &'static str = "Windows.Networking.Vpn.VpnCustomTextBox"; } -::windows_core::imp::interface_hierarchy!(VpnCustomTextBox, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for VpnCustomTextBox {} unsafe impl ::core::marker::Send for VpnCustomTextBox {} unsafe impl ::core::marker::Sync for VpnCustomTextBox {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VpnDomainNameAssignment(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VpnDomainNameAssignment, ::windows_core::IUnknown, ::windows_core::IInspectable); impl VpnDomainNameAssignment { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2876,19 +2354,17 @@ impl ::windows_core::RuntimeType for VpnDomainNameAssignment { } unsafe impl ::windows_core::Interface for VpnDomainNameAssignment { type Vtable = IVpnDomainNameAssignment_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VpnDomainNameAssignment { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VpnDomainNameAssignment { const NAME: &'static str = "Windows.Networking.Vpn.VpnDomainNameAssignment"; } -::windows_core::imp::interface_hierarchy!(VpnDomainNameAssignment, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for VpnDomainNameAssignment {} unsafe impl ::core::marker::Sync for VpnDomainNameAssignment {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VpnDomainNameInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VpnDomainNameInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl VpnDomainNameInfo { pub fn SetDomainName(&self, value: P0) -> ::windows_core::Result<()> where @@ -2936,7 +2412,7 @@ impl VpnDomainNameInfo { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn WebProxyUris(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).WebProxyUris)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2946,12 +2422,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::TryIntoParam>, - P1: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, + P1: ::windows_core::IntoParam>, { 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.try_into_param()?.abi(), proxyserverlist.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } #[doc(hidden)] @@ -2965,24 +2441,24 @@ impl ::windows_core::RuntimeType for VpnDomainNameInfo { } unsafe impl ::windows_core::Interface for VpnDomainNameInfo { type Vtable = IVpnDomainNameInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VpnDomainNameInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VpnDomainNameInfo { const NAME: &'static str = "Windows.Networking.Vpn.VpnDomainNameInfo"; } -::windows_core::imp::interface_hierarchy!(VpnDomainNameInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for VpnDomainNameInfo {} unsafe impl ::core::marker::Sync for VpnDomainNameInfo {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VpnForegroundActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VpnForegroundActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::required_hierarchy!(VpnForegroundActivatedEventArgs, super::super::ApplicationModel::Activation::IActivatedEventArgs, super::super::ApplicationModel::Activation::IActivatedEventArgsWithUser); impl VpnForegroundActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2991,7 +2467,7 @@ impl VpnForegroundActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3000,7 +2476,7 @@ impl VpnForegroundActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3009,7 +2485,7 @@ impl VpnForegroundActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`, `\"System\"`"] #[cfg(all(feature = "ApplicationModel_Activation", feature = "System"))] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3044,23 +2520,17 @@ impl ::windows_core::RuntimeType for VpnForegroundActivatedEventArgs { } unsafe impl ::windows_core::Interface for VpnForegroundActivatedEventArgs { type Vtable = IVpnForegroundActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VpnForegroundActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VpnForegroundActivatedEventArgs { const NAME: &'static str = "Windows.Networking.Vpn.VpnForegroundActivatedEventArgs"; } -::windows_core::imp::interface_hierarchy!(VpnForegroundActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for VpnForegroundActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for VpnForegroundActivatedEventArgs {} unsafe impl ::core::marker::Send for VpnForegroundActivatedEventArgs {} unsafe impl ::core::marker::Sync for VpnForegroundActivatedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VpnForegroundActivationOperation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VpnForegroundActivationOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl VpnForegroundActivationOperation { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -3077,19 +2547,17 @@ impl ::windows_core::RuntimeType for VpnForegroundActivationOperation { } unsafe impl ::windows_core::Interface for VpnForegroundActivationOperation { type Vtable = IVpnForegroundActivationOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VpnForegroundActivationOperation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VpnForegroundActivationOperation { const NAME: &'static str = "Windows.Networking.Vpn.VpnForegroundActivationOperation"; } -::windows_core::imp::interface_hierarchy!(VpnForegroundActivationOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for VpnForegroundActivationOperation {} unsafe impl ::core::marker::Sync for VpnForegroundActivationOperation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VpnInterfaceId(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VpnInterfaceId, ::windows_core::IUnknown, ::windows_core::IInspectable); impl VpnInterfaceId { pub fn GetAddressInfo(&self, id: &mut ::windows_core::Array) -> ::windows_core::Result<()> { let this = self; @@ -3112,19 +2580,17 @@ impl ::windows_core::RuntimeType for VpnInterfaceId { } unsafe impl ::windows_core::Interface for VpnInterfaceId { type Vtable = IVpnInterfaceId_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VpnInterfaceId { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VpnInterfaceId { const NAME: &'static str = "Windows.Networking.Vpn.VpnInterfaceId"; } -::windows_core::imp::interface_hierarchy!(VpnInterfaceId, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for VpnInterfaceId {} unsafe impl ::core::marker::Sync for VpnInterfaceId {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VpnManagementAgent(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VpnManagementAgent, ::windows_core::IUnknown, ::windows_core::IInspectable); impl VpnManagementAgent { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -3142,12 +2608,12 @@ impl VpnManagementAgent { } pub fn AddProfileFromObjectAsync(&self, profile: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).AddProfileFromObjectAsync)(::windows_core::Interface::as_raw(this), profile.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).AddProfileFromObjectAsync)(::windows_core::Interface::as_raw(this), profile.into_param().abi(), &mut result__).from_abi(result__) } } pub fn UpdateProfileFromXmlAsync(&self, xml: &::windows_core::HSTRING) -> ::windows_core::Result> { @@ -3159,12 +2625,12 @@ impl VpnManagementAgent { } pub fn UpdateProfileFromObjectAsync(&self, profile: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).UpdateProfileFromObjectAsync)(::windows_core::Interface::as_raw(this), profile.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).UpdateProfileFromObjectAsync)(::windows_core::Interface::as_raw(this), profile.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -3178,45 +2644,45 @@ impl VpnManagementAgent { } pub fn DeleteProfileAsync(&self, profile: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).DeleteProfileAsync)(::windows_core::Interface::as_raw(this), profile.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).DeleteProfileAsync)(::windows_core::Interface::as_raw(this), profile.into_param().abi(), &mut result__).from_abi(result__) } } pub fn ConnectProfileAsync(&self, profile: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).ConnectProfileAsync)(::windows_core::Interface::as_raw(this), profile.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ConnectProfileAsync)(::windows_core::Interface::as_raw(this), profile.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Security_Credentials\"`"] #[cfg(feature = "Security_Credentials")] pub fn ConnectProfileWithPasswordCredentialAsync(&self, profile: P0, passwordcredential: P1) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).ConnectProfileWithPasswordCredentialAsync)(::windows_core::Interface::as_raw(this), profile.try_into_param()?.abi(), passwordcredential.into_param().abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ConnectProfileWithPasswordCredentialAsync)(::windows_core::Interface::as_raw(this), profile.into_param().abi(), passwordcredential.into_param().abi(), &mut result__).from_abi(result__) } } pub fn DisconnectProfileAsync(&self, profile: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).DisconnectProfileAsync)(::windows_core::Interface::as_raw(this), profile.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).DisconnectProfileAsync)(::windows_core::Interface::as_raw(this), profile.into_param().abi(), &mut result__).from_abi(result__) } } } @@ -3225,19 +2691,17 @@ impl ::windows_core::RuntimeType for VpnManagementAgent { } unsafe impl ::windows_core::Interface for VpnManagementAgent { type Vtable = IVpnManagementAgent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VpnManagementAgent { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VpnManagementAgent { const NAME: &'static str = "Windows.Networking.Vpn.VpnManagementAgent"; } -::windows_core::imp::interface_hierarchy!(VpnManagementAgent, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for VpnManagementAgent {} unsafe impl ::core::marker::Sync for VpnManagementAgent {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VpnNamespaceAssignment(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VpnNamespaceAssignment, ::windows_core::IUnknown, ::windows_core::IInspectable); impl VpnNamespaceAssignment { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -3250,10 +2714,10 @@ impl VpnNamespaceAssignment { #[cfg(feature = "Foundation_Collections")] pub fn SetNamespaceList(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetNamespaceList)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetNamespaceList)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -3284,19 +2748,17 @@ impl ::windows_core::RuntimeType for VpnNamespaceAssignment { } unsafe impl ::windows_core::Interface for VpnNamespaceAssignment { type Vtable = IVpnNamespaceAssignment_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VpnNamespaceAssignment { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VpnNamespaceAssignment { const NAME: &'static str = "Windows.Networking.Vpn.VpnNamespaceAssignment"; } -::windows_core::imp::interface_hierarchy!(VpnNamespaceAssignment, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for VpnNamespaceAssignment {} unsafe impl ::core::marker::Sync for VpnNamespaceAssignment {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VpnNamespaceInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VpnNamespaceInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl VpnNamespaceInfo { pub fn SetNamespace(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { let this = self; @@ -3313,10 +2775,10 @@ impl VpnNamespaceInfo { #[cfg(feature = "Foundation_Collections")] pub fn SetDnsServers(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetDnsServers)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetDnsServers)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -3331,10 +2793,10 @@ impl VpnNamespaceInfo { #[cfg(feature = "Foundation_Collections")] pub fn SetWebProxyServers(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetWebProxyServers)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetWebProxyServers)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -3349,12 +2811,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::TryIntoParam>, - P1: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, + P1: ::windows_core::IntoParam>, { 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.try_into_param()?.abi(), proxyserverlist.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } #[doc(hidden)] @@ -3368,19 +2830,18 @@ impl ::windows_core::RuntimeType for VpnNamespaceInfo { } unsafe impl ::windows_core::Interface for VpnNamespaceInfo { type Vtable = IVpnNamespaceInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VpnNamespaceInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VpnNamespaceInfo { const NAME: &'static str = "Windows.Networking.Vpn.VpnNamespaceInfo"; } -::windows_core::imp::interface_hierarchy!(VpnNamespaceInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for VpnNamespaceInfo {} unsafe impl ::core::marker::Sync for VpnNamespaceInfo {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VpnNativeProfile(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VpnNativeProfile, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(VpnNativeProfile, IVpnProfile); impl VpnNativeProfile { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -3454,38 +2915,38 @@ impl VpnNativeProfile { unsafe { (::windows_core::Interface::vtable(this).SetEapConfiguration)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn RequireVpnClientAppUI(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RequireVpnClientAppUI)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetRequireVpnClientAppUI(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRequireVpnClientAppUI)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn ConnectionStatus(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ConnectionStatus)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ProfileName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ProfileName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetProfileName(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetProfileName)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn AppTriggers(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AppTriggers)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3494,7 +2955,7 @@ impl VpnNativeProfile { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Routes(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Routes)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3503,7 +2964,7 @@ impl VpnNativeProfile { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn DomainNameInfoList(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DomainNameInfoList)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3512,32 +2973,32 @@ impl VpnNativeProfile { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn TrafficFilters(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TrafficFilters)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn RememberCredentials(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RememberCredentials)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetRememberCredentials(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRememberCredentials)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn AlwaysOn(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AlwaysOn)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetAlwaysOn(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetAlwaysOn)(::windows_core::Interface::as_raw(this), value).ok() } } } @@ -3546,20 +3007,17 @@ impl ::windows_core::RuntimeType for VpnNativeProfile { } unsafe impl ::windows_core::Interface for VpnNativeProfile { type Vtable = IVpnNativeProfile_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VpnNativeProfile { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VpnNativeProfile { const NAME: &'static str = "Windows.Networking.Vpn.VpnNativeProfile"; } -::windows_core::imp::interface_hierarchy!(VpnNativeProfile, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for VpnNativeProfile {} unsafe impl ::core::marker::Send for VpnNativeProfile {} unsafe impl ::core::marker::Sync for VpnNativeProfile {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VpnPacketBuffer(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VpnPacketBuffer, ::windows_core::IUnknown, ::windows_core::IInspectable); impl VpnPacketBuffer { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] @@ -3593,7 +3051,7 @@ impl VpnPacketBuffer { } } pub fn AppId(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AppId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3603,11 +3061,11 @@ impl VpnPacketBuffer { where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn TransportContext(&self) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TransportContext)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3633,24 +3091,24 @@ impl ::windows_core::RuntimeType for VpnPacketBuffer { } unsafe impl ::windows_core::Interface for VpnPacketBuffer { type Vtable = IVpnPacketBuffer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VpnPacketBuffer { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VpnPacketBuffer { const NAME: &'static str = "Windows.Networking.Vpn.VpnPacketBuffer"; } -::windows_core::imp::interface_hierarchy!(VpnPacketBuffer, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for VpnPacketBuffer {} unsafe impl ::core::marker::Sync for VpnPacketBuffer {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VpnPacketBufferList(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VpnPacketBufferList, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(VpnPacketBufferList, super::super::Foundation::Collections::IIterable::); impl VpnPacketBufferList { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3712,9 +3170,7 @@ impl ::windows_core::RuntimeType for VpnPacketBufferList { } unsafe impl ::windows_core::Interface for VpnPacketBufferList { type Vtable = IVpnPacketBufferList_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VpnPacketBufferList { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VpnPacketBufferList { const NAME: &'static str = "Windows.Networking.Vpn.VpnPacketBufferList"; @@ -3735,14 +3191,12 @@ impl ::core::iter::IntoIterator for &VpnPacketBufferList { self.First().unwrap() } } -::windows_core::imp::interface_hierarchy!(VpnPacketBufferList, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for VpnPacketBufferList {} unsafe impl ::core::marker::Send for VpnPacketBufferList {} unsafe impl ::core::marker::Sync for VpnPacketBufferList {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VpnPickedCredential(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VpnPickedCredential, ::windows_core::IUnknown, ::windows_core::IInspectable); impl VpnPickedCredential { #[doc = "Required features: `\"Security_Credentials\"`"] #[cfg(feature = "Security_Credentials")] @@ -3775,19 +3229,18 @@ impl ::windows_core::RuntimeType for VpnPickedCredential { } unsafe impl ::windows_core::Interface for VpnPickedCredential { type Vtable = IVpnPickedCredential_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VpnPickedCredential { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VpnPickedCredential { const NAME: &'static str = "Windows.Networking.Vpn.VpnPickedCredential"; } -::windows_core::imp::interface_hierarchy!(VpnPickedCredential, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for VpnPickedCredential {} unsafe impl ::core::marker::Sync for VpnPickedCredential {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VpnPlugInProfile(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VpnPlugInProfile, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(VpnPlugInProfile, IVpnProfile); impl VpnPlugInProfile { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -3828,38 +3281,38 @@ impl VpnPlugInProfile { unsafe { (::windows_core::Interface::vtable(this).SetVpnPluginPackageFamilyName)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn RequireVpnClientAppUI(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RequireVpnClientAppUI)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetRequireVpnClientAppUI(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRequireVpnClientAppUI)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn ConnectionStatus(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ConnectionStatus)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ProfileName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ProfileName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetProfileName(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetProfileName)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn AppTriggers(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AppTriggers)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3868,7 +3321,7 @@ impl VpnPlugInProfile { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Routes(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Routes)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3877,7 +3330,7 @@ impl VpnPlugInProfile { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn DomainNameInfoList(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DomainNameInfoList)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3886,32 +3339,32 @@ impl VpnPlugInProfile { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn TrafficFilters(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TrafficFilters)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn RememberCredentials(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RememberCredentials)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetRememberCredentials(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRememberCredentials)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn AlwaysOn(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AlwaysOn)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetAlwaysOn(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetAlwaysOn)(::windows_core::Interface::as_raw(this), value).ok() } } } @@ -3920,20 +3373,17 @@ impl ::windows_core::RuntimeType for VpnPlugInProfile { } unsafe impl ::windows_core::Interface for VpnPlugInProfile { type Vtable = IVpnPlugInProfile_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VpnPlugInProfile { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VpnPlugInProfile { const NAME: &'static str = "Windows.Networking.Vpn.VpnPlugInProfile"; } -::windows_core::imp::interface_hierarchy!(VpnPlugInProfile, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for VpnPlugInProfile {} unsafe impl ::core::marker::Send for VpnPlugInProfile {} unsafe impl ::core::marker::Sync for VpnPlugInProfile {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VpnRoute(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VpnRoute, ::windows_core::IUnknown, ::windows_core::IInspectable); impl VpnRoute { pub fn SetAddress(&self, value: P0) -> ::windows_core::Result<()> where @@ -3980,19 +3430,17 @@ impl ::windows_core::RuntimeType for VpnRoute { } unsafe impl ::windows_core::Interface for VpnRoute { type Vtable = IVpnRoute_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VpnRoute { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VpnRoute { const NAME: &'static str = "Windows.Networking.Vpn.VpnRoute"; } -::windows_core::imp::interface_hierarchy!(VpnRoute, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for VpnRoute {} unsafe impl ::core::marker::Sync for VpnRoute {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VpnRouteAssignment(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VpnRouteAssignment, ::windows_core::IUnknown, ::windows_core::IInspectable); impl VpnRouteAssignment { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -4005,19 +3453,19 @@ impl VpnRouteAssignment { #[cfg(feature = "Foundation_Collections")] pub fn SetIpv4InclusionRoutes(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetIpv4InclusionRoutes)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetIpv4InclusionRoutes)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn SetIpv6InclusionRoutes(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetIpv6InclusionRoutes)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetIpv6InclusionRoutes)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -4041,19 +3489,19 @@ impl VpnRouteAssignment { #[cfg(feature = "Foundation_Collections")] pub fn SetIpv4ExclusionRoutes(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetIpv4ExclusionRoutes)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetIpv4ExclusionRoutes)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn SetIpv6ExclusionRoutes(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetIpv6ExclusionRoutes)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetIpv6ExclusionRoutes)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -4090,19 +3538,17 @@ impl ::windows_core::RuntimeType for VpnRouteAssignment { } unsafe impl ::windows_core::Interface for VpnRouteAssignment { type Vtable = IVpnRouteAssignment_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VpnRouteAssignment { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VpnRouteAssignment { const NAME: &'static str = "Windows.Networking.Vpn.VpnRouteAssignment"; } -::windows_core::imp::interface_hierarchy!(VpnRouteAssignment, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for VpnRouteAssignment {} unsafe impl ::core::marker::Sync for VpnRouteAssignment {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VpnSystemHealth(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VpnSystemHealth, ::windows_core::IUnknown, ::windows_core::IInspectable); impl VpnSystemHealth { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] @@ -4119,19 +3565,17 @@ impl ::windows_core::RuntimeType for VpnSystemHealth { } unsafe impl ::windows_core::Interface for VpnSystemHealth { type Vtable = IVpnSystemHealth_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VpnSystemHealth { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VpnSystemHealth { const NAME: &'static str = "Windows.Networking.Vpn.VpnSystemHealth"; } -::windows_core::imp::interface_hierarchy!(VpnSystemHealth, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for VpnSystemHealth {} unsafe impl ::core::marker::Sync for VpnSystemHealth {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VpnTrafficFilter(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VpnTrafficFilter, ::windows_core::IUnknown, ::windows_core::IInspectable); impl VpnTrafficFilter { pub fn AppId(&self) -> ::windows_core::Result { let this = self; @@ -4234,19 +3678,17 @@ impl ::windows_core::RuntimeType for VpnTrafficFilter { } unsafe impl ::windows_core::Interface for VpnTrafficFilter { type Vtable = IVpnTrafficFilter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VpnTrafficFilter { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VpnTrafficFilter { const NAME: &'static str = "Windows.Networking.Vpn.VpnTrafficFilter"; } -::windows_core::imp::interface_hierarchy!(VpnTrafficFilter, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for VpnTrafficFilter {} unsafe impl ::core::marker::Sync for VpnTrafficFilter {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VpnTrafficFilterAssignment(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VpnTrafficFilterAssignment, ::windows_core::IUnknown, ::windows_core::IInspectable); impl VpnTrafficFilterAssignment { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -4292,14 +3734,11 @@ impl ::windows_core::RuntimeType for VpnTrafficFilterAssignment { } unsafe impl ::windows_core::Interface for VpnTrafficFilterAssignment { type Vtable = IVpnTrafficFilterAssignment_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VpnTrafficFilterAssignment { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VpnTrafficFilterAssignment { const NAME: &'static str = "Windows.Networking.Vpn.VpnTrafficFilterAssignment"; } -::windows_core::imp::interface_hierarchy!(VpnTrafficFilterAssignment, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for VpnTrafficFilterAssignment {} unsafe impl ::core::marker::Sync for VpnTrafficFilterAssignment {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Networking/XboxLive/mod.rs b/crates/libs/windows/src/Windows/Networking/XboxLive/mod.rs index e48cd8aa8e..980ac75b74 100644 --- a/crates/libs/windows/src/Windows/Networking/XboxLive/mod.rs +++ b/crates/libs/windows/src/Windows/Networking/XboxLive/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXboxLiveDeviceAddress(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXboxLiveDeviceAddress { - type Vtable = IXboxLiveDeviceAddress_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXboxLiveDeviceAddress { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf5bbd279_3c86_4b57_a31a_b9462408fd01); -} +::windows_core::imp::com_interface!(IXboxLiveDeviceAddress, IXboxLiveDeviceAddress_Vtbl, 0xf5bbd279_3c86_4b57_a31a_b9462408fd01); #[repr(C)] #[doc(hidden)] pub struct IXboxLiveDeviceAddress_Vtbl { @@ -25,16 +16,7 @@ pub struct IXboxLiveDeviceAddress_Vtbl { pub IsLocal: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub NetworkAccessKind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut XboxLiveNetworkAccessKind) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXboxLiveDeviceAddressStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXboxLiveDeviceAddressStatics { - type Vtable = IXboxLiveDeviceAddressStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXboxLiveDeviceAddressStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5954a819_4a79_4931_827c_7f503e963263); -} +::windows_core::imp::com_interface!(IXboxLiveDeviceAddressStatics, IXboxLiveDeviceAddressStatics_Vtbl, 0x5954a819_4a79_4931_827c_7f503e963263); #[repr(C)] #[doc(hidden)] pub struct IXboxLiveDeviceAddressStatics_Vtbl { @@ -48,16 +30,7 @@ pub struct IXboxLiveDeviceAddressStatics_Vtbl { pub GetLocal: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub MaxSnapshotBytesSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXboxLiveEndpointPair(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXboxLiveEndpointPair { - type Vtable = IXboxLiveEndpointPair_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXboxLiveEndpointPair { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1e9a839b_813e_44e0_b87f_c87a093475e4); -} +::windows_core::imp::com_interface!(IXboxLiveEndpointPair, IXboxLiveEndpointPair_Vtbl, 0x1e9a839b_813e_44e0_b87f_c87a093475e4); #[repr(C)] #[doc(hidden)] pub struct IXboxLiveEndpointPair_Vtbl { @@ -75,16 +48,7 @@ pub struct IXboxLiveEndpointPair_Vtbl { pub LocalHostName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub LocalPort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXboxLiveEndpointPairCreationResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXboxLiveEndpointPairCreationResult { - type Vtable = IXboxLiveEndpointPairCreationResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXboxLiveEndpointPairCreationResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd9a8bb95_2aab_4d1e_9794_33ecc0dcf0fe); -} +::windows_core::imp::com_interface!(IXboxLiveEndpointPairCreationResult, IXboxLiveEndpointPairCreationResult_Vtbl, 0xd9a8bb95_2aab_4d1e_9794_33ecc0dcf0fe); #[repr(C)] #[doc(hidden)] pub struct IXboxLiveEndpointPairCreationResult_Vtbl { @@ -94,16 +58,7 @@ pub struct IXboxLiveEndpointPairCreationResult_Vtbl { pub IsExistingPathEvaluation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub EndpointPair: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXboxLiveEndpointPairStateChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXboxLiveEndpointPairStateChangedEventArgs { - type Vtable = IXboxLiveEndpointPairStateChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXboxLiveEndpointPairStateChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x592e3b55_de08_44e7_ac3b_b9b9a169583a); -} +::windows_core::imp::com_interface!(IXboxLiveEndpointPairStateChangedEventArgs, IXboxLiveEndpointPairStateChangedEventArgs_Vtbl, 0x592e3b55_de08_44e7_ac3b_b9b9a169583a); #[repr(C)] #[doc(hidden)] pub struct IXboxLiveEndpointPairStateChangedEventArgs_Vtbl { @@ -111,16 +66,7 @@ pub struct IXboxLiveEndpointPairStateChangedEventArgs_Vtbl { pub OldState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut XboxLiveEndpointPairState) -> ::windows_core::HRESULT, pub NewState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut XboxLiveEndpointPairState) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXboxLiveEndpointPairStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXboxLiveEndpointPairStatics { - type Vtable = IXboxLiveEndpointPairStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXboxLiveEndpointPairStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x64316b30_217a_4243_8ee1_6729281d27db); -} +::windows_core::imp::com_interface!(IXboxLiveEndpointPairStatics, IXboxLiveEndpointPairStatics_Vtbl, 0x64316b30_217a_4243_8ee1_6729281d27db); #[repr(C)] #[doc(hidden)] pub struct IXboxLiveEndpointPairStatics_Vtbl { @@ -128,16 +74,7 @@ pub struct IXboxLiveEndpointPairStatics_Vtbl { pub FindEndpointPairBySocketAddressBytes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, localSocketAddress_array_size: u32, localsocketaddress: *const u8, remoteSocketAddress_array_size: u32, remotesocketaddress: *const u8, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub FindEndpointPairByHostNamesAndPorts: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, localhostname: *mut ::core::ffi::c_void, localport: ::std::mem::MaybeUninit<::windows_core::HSTRING>, remotehostname: *mut ::core::ffi::c_void, remoteport: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXboxLiveEndpointPairTemplate(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXboxLiveEndpointPairTemplate { - type Vtable = IXboxLiveEndpointPairTemplate_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXboxLiveEndpointPairTemplate { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6b286ecf_3457_40ce_b9a1_c0cfe0213ea7); -} +::windows_core::imp::com_interface!(IXboxLiveEndpointPairTemplate, IXboxLiveEndpointPairTemplate_Vtbl, 0x6b286ecf_3457_40ce_b9a1_c0cfe0213ea7); #[repr(C)] #[doc(hidden)] pub struct IXboxLiveEndpointPairTemplate_Vtbl { @@ -159,16 +96,7 @@ pub struct IXboxLiveEndpointPairTemplate_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] EndpointPairs: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXboxLiveEndpointPairTemplateStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXboxLiveEndpointPairTemplateStatics { - type Vtable = IXboxLiveEndpointPairTemplateStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXboxLiveEndpointPairTemplateStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1e13137b_737b_4a23_bc64_0870f75655ba); -} +::windows_core::imp::com_interface!(IXboxLiveEndpointPairTemplateStatics, IXboxLiveEndpointPairTemplateStatics_Vtbl, 0x1e13137b_737b_4a23_bc64_0870f75655ba); #[repr(C)] #[doc(hidden)] pub struct IXboxLiveEndpointPairTemplateStatics_Vtbl { @@ -179,32 +107,14 @@ pub struct IXboxLiveEndpointPairTemplateStatics_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Templates: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXboxLiveInboundEndpointPairCreatedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXboxLiveInboundEndpointPairCreatedEventArgs { - type Vtable = IXboxLiveInboundEndpointPairCreatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXboxLiveInboundEndpointPairCreatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdc183b62_22ba_48d2_80de_c23968bd198b); -} +::windows_core::imp::com_interface!(IXboxLiveInboundEndpointPairCreatedEventArgs, IXboxLiveInboundEndpointPairCreatedEventArgs_Vtbl, 0xdc183b62_22ba_48d2_80de_c23968bd198b); #[repr(C)] #[doc(hidden)] pub struct IXboxLiveInboundEndpointPairCreatedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub EndpointPair: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXboxLiveQualityOfServiceMeasurement(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXboxLiveQualityOfServiceMeasurement { - type Vtable = IXboxLiveQualityOfServiceMeasurement_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXboxLiveQualityOfServiceMeasurement { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4d682bce_a5d6_47e6_a236_cfde5fbdf2ed); -} +::windows_core::imp::com_interface!(IXboxLiveQualityOfServiceMeasurement, IXboxLiveQualityOfServiceMeasurement_Vtbl, 0x4d682bce_a5d6_47e6_a236_cfde5fbdf2ed); #[repr(C)] #[doc(hidden)] pub struct IXboxLiveQualityOfServiceMeasurement_Vtbl { @@ -244,16 +154,7 @@ pub struct IXboxLiveQualityOfServiceMeasurement_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] PrivatePayloadResults: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXboxLiveQualityOfServiceMeasurementStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXboxLiveQualityOfServiceMeasurementStatics { - type Vtable = IXboxLiveQualityOfServiceMeasurementStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXboxLiveQualityOfServiceMeasurementStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6e352dca_23cf_440a_b077_5e30857a8234); -} +::windows_core::imp::com_interface!(IXboxLiveQualityOfServiceMeasurementStatics, IXboxLiveQualityOfServiceMeasurementStatics_Vtbl, 0x6e352dca_23cf_440a_b077_5e30857a8234); #[repr(C)] #[doc(hidden)] pub struct IXboxLiveQualityOfServiceMeasurementStatics_Vtbl { @@ -276,16 +177,7 @@ pub struct IXboxLiveQualityOfServiceMeasurementStatics_Vtbl { SetPublishedPrivatePayload: usize, pub MaxPrivatePayloadSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXboxLiveQualityOfServiceMetricResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXboxLiveQualityOfServiceMetricResult { - type Vtable = IXboxLiveQualityOfServiceMetricResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXboxLiveQualityOfServiceMetricResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaeec53d1_3561_4782_b0cf_d3ae29d9fa87); -} +::windows_core::imp::com_interface!(IXboxLiveQualityOfServiceMetricResult, IXboxLiveQualityOfServiceMetricResult_Vtbl, 0xaeec53d1_3561_4782_b0cf_d3ae29d9fa87); #[repr(C)] #[doc(hidden)] pub struct IXboxLiveQualityOfServiceMetricResult_Vtbl { @@ -295,16 +187,7 @@ pub struct IXboxLiveQualityOfServiceMetricResult_Vtbl { pub Metric: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut XboxLiveQualityOfServiceMetric) -> ::windows_core::HRESULT, pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u64) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXboxLiveQualityOfServicePrivatePayloadResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXboxLiveQualityOfServicePrivatePayloadResult { - type Vtable = IXboxLiveQualityOfServicePrivatePayloadResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXboxLiveQualityOfServicePrivatePayloadResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5a6302ae_6f38_41c0_9fcc_ea6cb978cafc); -} +::windows_core::imp::com_interface!(IXboxLiveQualityOfServicePrivatePayloadResult, IXboxLiveQualityOfServicePrivatePayloadResult_Vtbl, 0x5a6302ae_6f38_41c0_9fcc_ea6cb978cafc); #[repr(C)] #[doc(hidden)] pub struct IXboxLiveQualityOfServicePrivatePayloadResult_Vtbl { @@ -319,6 +202,7 @@ pub struct IXboxLiveQualityOfServicePrivatePayloadResult_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct XboxLiveDeviceAddress(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(XboxLiveDeviceAddress, ::windows_core::IUnknown, ::windows_core::IInspectable); impl XboxLiveDeviceAddress { pub fn SnapshotChanged(&self, handler: P0) -> ::windows_core::Result where @@ -395,11 +279,11 @@ impl XboxLiveDeviceAddress { #[cfg(feature = "Storage_Streams")] pub fn CreateFromSnapshotBuffer(buffer: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IXboxLiveDeviceAddressStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateFromSnapshotBuffer)(::windows_core::Interface::as_raw(this), buffer.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateFromSnapshotBuffer)(::windows_core::Interface::as_raw(this), buffer.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn CreateFromSnapshotBytes(buffer: &[u8]) -> ::windows_core::Result { @@ -431,19 +315,17 @@ impl ::windows_core::RuntimeType for XboxLiveDeviceAddress { } unsafe impl ::windows_core::Interface for XboxLiveDeviceAddress { type Vtable = IXboxLiveDeviceAddress_Vtbl; -} -unsafe impl ::windows_core::ComInterface for XboxLiveDeviceAddress { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for XboxLiveDeviceAddress { const NAME: &'static str = "Windows.Networking.XboxLive.XboxLiveDeviceAddress"; } -::windows_core::imp::interface_hierarchy!(XboxLiveDeviceAddress, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for XboxLiveDeviceAddress {} unsafe impl ::core::marker::Sync for XboxLiveDeviceAddress {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct XboxLiveEndpointPair(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(XboxLiveEndpointPair, ::windows_core::IUnknown, ::windows_core::IInspectable); impl XboxLiveEndpointPair { pub fn StateChanged(&self, handler: P0) -> ::windows_core::Result where @@ -550,19 +432,17 @@ impl ::windows_core::RuntimeType for XboxLiveEndpointPair { } unsafe impl ::windows_core::Interface for XboxLiveEndpointPair { type Vtable = IXboxLiveEndpointPair_Vtbl; -} -unsafe impl ::windows_core::ComInterface for XboxLiveEndpointPair { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for XboxLiveEndpointPair { const NAME: &'static str = "Windows.Networking.XboxLive.XboxLiveEndpointPair"; } -::windows_core::imp::interface_hierarchy!(XboxLiveEndpointPair, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for XboxLiveEndpointPair {} unsafe impl ::core::marker::Sync for XboxLiveEndpointPair {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct XboxLiveEndpointPairCreationResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(XboxLiveEndpointPairCreationResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl XboxLiveEndpointPairCreationResult { pub fn DeviceAddress(&self) -> ::windows_core::Result { let this = self; @@ -598,19 +478,17 @@ impl ::windows_core::RuntimeType for XboxLiveEndpointPairCreationResult { } unsafe impl ::windows_core::Interface for XboxLiveEndpointPairCreationResult { type Vtable = IXboxLiveEndpointPairCreationResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for XboxLiveEndpointPairCreationResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for XboxLiveEndpointPairCreationResult { const NAME: &'static str = "Windows.Networking.XboxLive.XboxLiveEndpointPairCreationResult"; } -::windows_core::imp::interface_hierarchy!(XboxLiveEndpointPairCreationResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for XboxLiveEndpointPairCreationResult {} unsafe impl ::core::marker::Sync for XboxLiveEndpointPairCreationResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct XboxLiveEndpointPairStateChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(XboxLiveEndpointPairStateChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl XboxLiveEndpointPairStateChangedEventArgs { pub fn OldState(&self) -> ::windows_core::Result { let this = self; @@ -632,19 +510,17 @@ impl ::windows_core::RuntimeType for XboxLiveEndpointPairStateChangedEventArgs { } unsafe impl ::windows_core::Interface for XboxLiveEndpointPairStateChangedEventArgs { type Vtable = IXboxLiveEndpointPairStateChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for XboxLiveEndpointPairStateChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for XboxLiveEndpointPairStateChangedEventArgs { const NAME: &'static str = "Windows.Networking.XboxLive.XboxLiveEndpointPairStateChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(XboxLiveEndpointPairStateChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for XboxLiveEndpointPairStateChangedEventArgs {} unsafe impl ::core::marker::Sync for XboxLiveEndpointPairStateChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct XboxLiveEndpointPairTemplate(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(XboxLiveEndpointPairTemplate, ::windows_core::IUnknown, ::windows_core::IInspectable); impl XboxLiveEndpointPairTemplate { pub fn InboundEndpointPairCreated(&self, handler: P0) -> ::windows_core::Result where @@ -776,19 +652,17 @@ impl ::windows_core::RuntimeType for XboxLiveEndpointPairTemplate { } unsafe impl ::windows_core::Interface for XboxLiveEndpointPairTemplate { type Vtable = IXboxLiveEndpointPairTemplate_Vtbl; -} -unsafe impl ::windows_core::ComInterface for XboxLiveEndpointPairTemplate { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for XboxLiveEndpointPairTemplate { const NAME: &'static str = "Windows.Networking.XboxLive.XboxLiveEndpointPairTemplate"; } -::windows_core::imp::interface_hierarchy!(XboxLiveEndpointPairTemplate, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for XboxLiveEndpointPairTemplate {} unsafe impl ::core::marker::Sync for XboxLiveEndpointPairTemplate {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct XboxLiveInboundEndpointPairCreatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(XboxLiveInboundEndpointPairCreatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl XboxLiveInboundEndpointPairCreatedEventArgs { pub fn EndpointPair(&self) -> ::windows_core::Result { let this = self; @@ -803,19 +677,17 @@ impl ::windows_core::RuntimeType for XboxLiveInboundEndpointPairCreatedEventArgs } unsafe impl ::windows_core::Interface for XboxLiveInboundEndpointPairCreatedEventArgs { type Vtable = IXboxLiveInboundEndpointPairCreatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for XboxLiveInboundEndpointPairCreatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for XboxLiveInboundEndpointPairCreatedEventArgs { const NAME: &'static str = "Windows.Networking.XboxLive.XboxLiveInboundEndpointPairCreatedEventArgs"; } -::windows_core::imp::interface_hierarchy!(XboxLiveInboundEndpointPairCreatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for XboxLiveInboundEndpointPairCreatedEventArgs {} unsafe impl ::core::marker::Sync for XboxLiveInboundEndpointPairCreatedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct XboxLiveQualityOfServiceMeasurement(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(XboxLiveQualityOfServiceMeasurement, ::windows_core::IUnknown, ::windows_core::IInspectable); impl XboxLiveQualityOfServiceMeasurement { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -993,9 +865,9 @@ impl XboxLiveQualityOfServiceMeasurement { #[cfg(feature = "Storage_Streams")] pub fn SetPublishedPrivatePayload(value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - Self::IXboxLiveQualityOfServiceMeasurementStatics(|this| unsafe { (::windows_core::Interface::vtable(this).SetPublishedPrivatePayload)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() }) + Self::IXboxLiveQualityOfServiceMeasurementStatics(|this| unsafe { (::windows_core::Interface::vtable(this).SetPublishedPrivatePayload)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() }) } pub fn MaxPrivatePayloadSize() -> ::windows_core::Result { Self::IXboxLiveQualityOfServiceMeasurementStatics(|this| unsafe { @@ -1014,19 +886,17 @@ impl ::windows_core::RuntimeType for XboxLiveQualityOfServiceMeasurement { } unsafe impl ::windows_core::Interface for XboxLiveQualityOfServiceMeasurement { type Vtable = IXboxLiveQualityOfServiceMeasurement_Vtbl; -} -unsafe impl ::windows_core::ComInterface for XboxLiveQualityOfServiceMeasurement { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for XboxLiveQualityOfServiceMeasurement { const NAME: &'static str = "Windows.Networking.XboxLive.XboxLiveQualityOfServiceMeasurement"; } -::windows_core::imp::interface_hierarchy!(XboxLiveQualityOfServiceMeasurement, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for XboxLiveQualityOfServiceMeasurement {} unsafe impl ::core::marker::Sync for XboxLiveQualityOfServiceMeasurement {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct XboxLiveQualityOfServiceMetricResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(XboxLiveQualityOfServiceMetricResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl XboxLiveQualityOfServiceMetricResult { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -1062,19 +932,17 @@ impl ::windows_core::RuntimeType for XboxLiveQualityOfServiceMetricResult { } unsafe impl ::windows_core::Interface for XboxLiveQualityOfServiceMetricResult { type Vtable = IXboxLiveQualityOfServiceMetricResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for XboxLiveQualityOfServiceMetricResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for XboxLiveQualityOfServiceMetricResult { const NAME: &'static str = "Windows.Networking.XboxLive.XboxLiveQualityOfServiceMetricResult"; } -::windows_core::imp::interface_hierarchy!(XboxLiveQualityOfServiceMetricResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for XboxLiveQualityOfServiceMetricResult {} unsafe impl ::core::marker::Sync for XboxLiveQualityOfServiceMetricResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct XboxLiveQualityOfServicePrivatePayloadResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(XboxLiveQualityOfServicePrivatePayloadResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl XboxLiveQualityOfServicePrivatePayloadResult { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -1105,14 +973,11 @@ impl ::windows_core::RuntimeType for XboxLiveQualityOfServicePrivatePayloadResul } unsafe impl ::windows_core::Interface for XboxLiveQualityOfServicePrivatePayloadResult { type Vtable = IXboxLiveQualityOfServicePrivatePayloadResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for XboxLiveQualityOfServicePrivatePayloadResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for XboxLiveQualityOfServicePrivatePayloadResult { const NAME: &'static str = "Windows.Networking.XboxLive.XboxLiveQualityOfServicePrivatePayloadResult"; } -::windows_core::imp::interface_hierarchy!(XboxLiveQualityOfServicePrivatePayloadResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for XboxLiveQualityOfServicePrivatePayloadResult {} unsafe impl ::core::marker::Sync for XboxLiveQualityOfServicePrivatePayloadResult {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Networking/mod.rs b/crates/libs/windows/src/Windows/Networking/mod.rs index 362c09734a..a6104d13ca 100644 --- a/crates/libs/windows/src/Windows/Networking/mod.rs +++ b/crates/libs/windows/src/Windows/Networking/mod.rs @@ -25,16 +25,7 @@ pub mod Vpn; #[cfg(feature = "Networking_XboxLive")] #[doc = "Required features: `\"Networking_XboxLive\"`"] pub mod XboxLive; -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEndpointPair(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEndpointPair { - type Vtable = IEndpointPair_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEndpointPair { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x33a0aa36_f8fa_4b30_b856_76517c3bd06d); -} +::windows_core::imp::com_interface!(IEndpointPair, IEndpointPair_Vtbl, 0x33a0aa36_f8fa_4b30_b856_76517c3bd06d); #[repr(C)] #[doc(hidden)] pub struct IEndpointPair_Vtbl { @@ -48,32 +39,14 @@ pub struct IEndpointPair_Vtbl { pub RemoteServiceName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetRemoteServiceName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEndpointPairFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEndpointPairFactory { - type Vtable = IEndpointPairFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEndpointPairFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb609d971_64e0_442b_aa6f_cc8c8f181f78); -} +::windows_core::imp::com_interface!(IEndpointPairFactory, IEndpointPairFactory_Vtbl, 0xb609d971_64e0_442b_aa6f_cc8c8f181f78); #[repr(C)] #[doc(hidden)] pub struct IEndpointPairFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateEndpointPair: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, localhostname: *mut ::core::ffi::c_void, localservicename: ::std::mem::MaybeUninit<::windows_core::HSTRING>, remotehostname: *mut ::core::ffi::c_void, remoteservicename: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHostName(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHostName { - type Vtable = IHostName_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHostName { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbf8ecaad_ed96_49a7_9084_d416cae88dcb); -} +::windows_core::imp::com_interface!(IHostName, IHostName_Vtbl, 0xbf8ecaad_ed96_49a7_9084_d416cae88dcb); #[repr(C)] #[doc(hidden)] pub struct IHostName_Vtbl { @@ -88,32 +61,14 @@ pub struct IHostName_Vtbl { pub Type: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut HostNameType) -> ::windows_core::HRESULT, pub IsEqual: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hostname: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHostNameFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHostNameFactory { - type Vtable = IHostNameFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHostNameFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x458c23ed_712f_4576_adf1_c20b2c643558); -} +::windows_core::imp::com_interface!(IHostNameFactory, IHostNameFactory_Vtbl, 0x458c23ed_712f_4576_adf1_c20b2c643558); #[repr(C)] #[doc(hidden)] pub struct IHostNameFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateHostName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hostname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHostNameStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHostNameStatics { - type Vtable = IHostNameStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHostNameStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf68cd4bf_a388_4e8b_91ea_54dd6dd901c0); -} +::windows_core::imp::com_interface!(IHostNameStatics, IHostNameStatics_Vtbl, 0xf68cd4bf_a388_4e8b_91ea_54dd6dd901c0); #[repr(C)] #[doc(hidden)] pub struct IHostNameStatics_Vtbl { @@ -123,6 +78,7 @@ pub struct IHostNameStatics_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EndpointPair(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EndpointPair, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EndpointPair { pub fn LocalHostName(&self) -> ::windows_core::Result { let this = self; @@ -195,19 +151,18 @@ impl ::windows_core::RuntimeType for EndpointPair { } unsafe impl ::windows_core::Interface for EndpointPair { type Vtable = IEndpointPair_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EndpointPair { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EndpointPair { const NAME: &'static str = "Windows.Networking.EndpointPair"; } -::windows_core::imp::interface_hierarchy!(EndpointPair, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EndpointPair {} unsafe impl ::core::marker::Sync for EndpointPair {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HostName(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HostName, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(HostName, super::Foundation::IStringable); impl HostName { #[doc = "Required features: `\"Networking_Connectivity\"`"] #[cfg(feature = "Networking_Connectivity")] @@ -269,7 +224,7 @@ impl HostName { }) } pub fn ToString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ToString)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -291,15 +246,11 @@ impl ::windows_core::RuntimeType for HostName { } unsafe impl ::windows_core::Interface for HostName { type Vtable = IHostName_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HostName { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HostName { const NAME: &'static str = "Windows.Networking.HostName"; } -::windows_core::imp::interface_hierarchy!(HostName, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for HostName {} unsafe impl ::core::marker::Send for HostName {} unsafe impl ::core::marker::Sync for HostName {} #[repr(transparent)] 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 a2833cf6a7..8942426475 100644 --- a/crates/libs/windows/src/Windows/Perception/Automation/Core/mod.rs +++ b/crates/libs/windows/src/Windows/Perception/Automation/Core/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICorePerceptionAutomationStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICorePerceptionAutomationStatics { - type Vtable = ICorePerceptionAutomationStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICorePerceptionAutomationStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0bb04541_4ce2_4923_9a76_8187ecc59112); -} +::windows_core::imp::com_interface!(ICorePerceptionAutomationStatics, ICorePerceptionAutomationStatics_Vtbl, 0x0bb04541_4ce2_4923_9a76_8187ecc59112); #[repr(C)] #[doc(hidden)] pub struct ICorePerceptionAutomationStatics_Vtbl { @@ -18,9 +9,9 @@ pub struct CorePerceptionAutomation; impl CorePerceptionAutomation { pub fn SetActivationFactoryProvider(provider: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - Self::ICorePerceptionAutomationStatics(|this| unsafe { (::windows_core::Interface::vtable(this).SetActivationFactoryProvider)(::windows_core::Interface::as_raw(this), provider.try_into_param()?.abi()).ok() }) + Self::ICorePerceptionAutomationStatics(|this| unsafe { (::windows_core::Interface::vtable(this).SetActivationFactoryProvider)(::windows_core::Interface::as_raw(this), provider.into_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 cfd3579004..ee49178373 100644 --- a/crates/libs/windows/src/Windows/Perception/People/mod.rs +++ b/crates/libs/windows/src/Windows/Perception/People/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEyesPose(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEyesPose { - type Vtable = IEyesPose_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEyesPose { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x682a9b23_8a1e_5b86_a060_906ffacb62a4); -} +::windows_core::imp::com_interface!(IEyesPose, IEyesPose_Vtbl, 0x682a9b23_8a1e_5b86_a060_906ffacb62a4); #[repr(C)] #[doc(hidden)] pub struct IEyesPose_Vtbl { @@ -19,16 +10,7 @@ pub struct IEyesPose_Vtbl { Gaze: usize, pub UpdateTimestamp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEyesPoseStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEyesPoseStatics { - type Vtable = IEyesPoseStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEyesPoseStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1cff7413_b21f_54c0_80c1_e60d994ca58c); -} +::windows_core::imp::com_interface!(IEyesPoseStatics, IEyesPoseStatics_Vtbl, 0x1cff7413_b21f_54c0_80c1_e60d994ca58c); #[repr(C)] #[doc(hidden)] pub struct IEyesPoseStatics_Vtbl { @@ -39,16 +21,7 @@ pub struct IEyesPoseStatics_Vtbl { #[cfg(not(feature = "UI_Input"))] RequestAccessAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHandMeshObserver(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHandMeshObserver { - type Vtable = IHandMeshObserver_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHandMeshObserver { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x85ae30cb_6fc3_55c4_a7b4_29e33896ca69); -} +::windows_core::imp::com_interface!(IHandMeshObserver, IHandMeshObserver_Vtbl, 0x85ae30cb_6fc3_55c4_a7b4_29e33896ca69); #[repr(C)] #[doc(hidden)] pub struct IHandMeshObserver_Vtbl { @@ -65,16 +38,7 @@ pub struct IHandMeshObserver_Vtbl { pub NeutralPoseVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows_core::HRESULT, pub ModelId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHandMeshVertexState(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHandMeshVertexState { - type Vtable = IHandMeshVertexState_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHandMeshVertexState { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x046c5fef_1d8b_55de_ab2c_1cd424886d8f); -} +::windows_core::imp::com_interface!(IHandMeshVertexState, IHandMeshVertexState_Vtbl, 0x046c5fef_1d8b_55de_ab2c_1cd424886d8f); #[repr(C)] #[doc(hidden)] pub struct IHandMeshVertexState_Vtbl { @@ -89,16 +53,7 @@ pub struct IHandMeshVertexState_Vtbl { GetVertices: usize, pub UpdateTimestamp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHandPose(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHandPose { - type Vtable = IHandPose_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHandPose { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4d98e79a_bb08_5d09_91de_df0dd3fae46c); -} +::windows_core::imp::com_interface!(IHandPose, IHandPose_Vtbl, 0x4d98e79a_bb08_5d09_91de_df0dd3fae46c); #[repr(C)] #[doc(hidden)] pub struct IHandPose_Vtbl { @@ -120,16 +75,7 @@ pub struct IHandPose_Vtbl { #[cfg(not(feature = "Foundation_Numerics"))] GetRelativeJoints: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHeadPose(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHeadPose { - type Vtable = IHeadPose_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHeadPose { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7f5ac5a5_49db_379f_9429_32a2faf34fa6); -} +::windows_core::imp::com_interface!(IHeadPose, IHeadPose_Vtbl, 0x7f5ac5a5_49db_379f_9429_32a2faf34fa6); #[repr(C)] #[doc(hidden)] pub struct IHeadPose_Vtbl { @@ -150,6 +96,7 @@ pub struct IHeadPose_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EyesPose(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EyesPose, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EyesPose { pub fn IsCalibrationValid(&self) -> ::windows_core::Result { let this = self; @@ -199,19 +146,17 @@ impl ::windows_core::RuntimeType for EyesPose { } unsafe impl ::windows_core::Interface for EyesPose { type Vtable = IEyesPose_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EyesPose { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EyesPose { const NAME: &'static str = "Windows.Perception.People.EyesPose"; } -::windows_core::imp::interface_hierarchy!(EyesPose, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EyesPose {} unsafe impl ::core::marker::Sync for EyesPose {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HandMeshObserver(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HandMeshObserver, ::windows_core::IUnknown, ::windows_core::IInspectable); impl HandMeshObserver { #[doc = "Required features: `\"UI_Input_Spatial\"`"] #[cfg(feature = "UI_Input_Spatial")] @@ -277,19 +222,17 @@ impl ::windows_core::RuntimeType for HandMeshObserver { } unsafe impl ::windows_core::Interface for HandMeshObserver { type Vtable = IHandMeshObserver_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HandMeshObserver { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HandMeshObserver { const NAME: &'static str = "Windows.Perception.People.HandMeshObserver"; } -::windows_core::imp::interface_hierarchy!(HandMeshObserver, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for HandMeshObserver {} unsafe impl ::core::marker::Sync for HandMeshObserver {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HandMeshVertexState(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HandMeshVertexState, ::windows_core::IUnknown, ::windows_core::IInspectable); impl HandMeshVertexState { #[doc = "Required features: `\"Perception_Spatial\"`"] #[cfg(feature = "Perception_Spatial")] @@ -319,19 +262,17 @@ impl ::windows_core::RuntimeType for HandMeshVertexState { } unsafe impl ::windows_core::Interface for HandMeshVertexState { type Vtable = IHandMeshVertexState_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HandMeshVertexState { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HandMeshVertexState { const NAME: &'static str = "Windows.Perception.People.HandMeshVertexState"; } -::windows_core::imp::interface_hierarchy!(HandMeshVertexState, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for HandMeshVertexState {} unsafe impl ::core::marker::Sync for HandMeshVertexState {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HandPose(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HandPose, ::windows_core::IUnknown, ::windows_core::IInspectable); impl HandPose { #[doc = "Required features: `\"Foundation_Numerics\"`, `\"Perception_Spatial\"`"] #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial"))] @@ -378,19 +319,17 @@ impl ::windows_core::RuntimeType for HandPose { } unsafe impl ::windows_core::Interface for HandPose { type Vtable = IHandPose_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HandPose { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HandPose { const NAME: &'static str = "Windows.Perception.People.HandPose"; } -::windows_core::imp::interface_hierarchy!(HandPose, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for HandPose {} unsafe impl ::core::marker::Sync for HandPose {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HeadPose(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HeadPose, ::windows_core::IUnknown, ::windows_core::IInspectable); impl HeadPose { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] @@ -425,14 +364,11 @@ impl ::windows_core::RuntimeType for HeadPose { } unsafe impl ::windows_core::Interface for HeadPose { type Vtable = IHeadPose_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HeadPose { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HeadPose { const NAME: &'static str = "Windows.Perception.People.HeadPose"; } -::windows_core::imp::interface_hierarchy!(HeadPose, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for HeadPose {} unsafe impl ::core::marker::Sync for HeadPose {} #[repr(transparent)] 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 ca4f120f93..86c67bb5d9 100644 --- a/crates/libs/windows/src/Windows/Perception/Spatial/Preview/mod.rs +++ b/crates/libs/windows/src/Windows/Perception/Spatial/Preview/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialGraphInteropFrameOfReferencePreview(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialGraphInteropFrameOfReferencePreview { - type Vtable = ISpatialGraphInteropFrameOfReferencePreview_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialGraphInteropFrameOfReferencePreview { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa8271b23_735f_5729_a98e_e64ed189abc5); -} +::windows_core::imp::com_interface!(ISpatialGraphInteropFrameOfReferencePreview, ISpatialGraphInteropFrameOfReferencePreview_Vtbl, 0xa8271b23_735f_5729_a98e_e64ed189abc5); #[repr(C)] #[doc(hidden)] pub struct ISpatialGraphInteropFrameOfReferencePreview_Vtbl { @@ -19,16 +10,7 @@ pub struct ISpatialGraphInteropFrameOfReferencePreview_Vtbl { #[cfg(not(feature = "Foundation_Numerics"))] CoordinateSystemToNodeTransform: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialGraphInteropPreviewStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialGraphInteropPreviewStatics { - type Vtable = ISpatialGraphInteropPreviewStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialGraphInteropPreviewStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc042644c_20d8_4ed0_aef7_6805b8e53f55); -} +::windows_core::imp::com_interface!(ISpatialGraphInteropPreviewStatics, ISpatialGraphInteropPreviewStatics_Vtbl, 0xc042644c_20d8_4ed0_aef7_6805b8e53f55); #[repr(C)] #[doc(hidden)] pub struct ISpatialGraphInteropPreviewStatics_Vtbl { @@ -44,16 +26,7 @@ pub struct ISpatialGraphInteropPreviewStatics_Vtbl { CreateCoordinateSystemForNodeWithPositionAndOrientation: usize, pub CreateLocatorForNode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nodeid: ::windows_core::GUID, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialGraphInteropPreviewStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialGraphInteropPreviewStatics2 { - type Vtable = ISpatialGraphInteropPreviewStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialGraphInteropPreviewStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2490b15f_6cbd_4b1e_b765_31e462a32df2); -} +::windows_core::imp::com_interface!(ISpatialGraphInteropPreviewStatics2, ISpatialGraphInteropPreviewStatics2_Vtbl, 0x2490b15f_6cbd_4b1e_b765_31e462a32df2); #[repr(C)] #[doc(hidden)] pub struct ISpatialGraphInteropPreviewStatics2_Vtbl { @@ -71,6 +44,7 @@ pub struct ISpatialGraphInteropPreviewStatics2_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpatialGraphInteropFrameOfReferencePreview(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpatialGraphInteropFrameOfReferencePreview, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SpatialGraphInteropFrameOfReferencePreview { pub fn CoordinateSystem(&self) -> ::windows_core::Result { let this = self; @@ -101,14 +75,11 @@ impl ::windows_core::RuntimeType for SpatialGraphInteropFrameOfReferencePreview } unsafe impl ::windows_core::Interface for SpatialGraphInteropFrameOfReferencePreview { type Vtable = ISpatialGraphInteropFrameOfReferencePreview_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpatialGraphInteropFrameOfReferencePreview { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpatialGraphInteropFrameOfReferencePreview { const NAME: &'static str = "Windows.Perception.Spatial.Preview.SpatialGraphInteropFrameOfReferencePreview"; } -::windows_core::imp::interface_hierarchy!(SpatialGraphInteropFrameOfReferencePreview, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SpatialGraphInteropFrameOfReferencePreview {} unsafe impl ::core::marker::Sync for SpatialGraphInteropFrameOfReferencePreview {} pub struct SpatialGraphInteropPreview; 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 7ce30f8060..e890f74735 100644 --- a/crates/libs/windows/src/Windows/Perception/Spatial/Surfaces/mod.rs +++ b/crates/libs/windows/src/Windows/Perception/Spatial/Surfaces/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialSurfaceInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialSurfaceInfo { - type Vtable = ISpatialSurfaceInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialSurfaceInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf8e9ebe7_39b7_3962_bb03_57f56e1fb0a1); -} +::windows_core::imp::com_interface!(ISpatialSurfaceInfo, ISpatialSurfaceInfo_Vtbl, 0xf8e9ebe7_39b7_3962_bb03_57f56e1fb0a1); #[repr(C)] #[doc(hidden)] pub struct ISpatialSurfaceInfo_Vtbl { @@ -21,16 +12,7 @@ pub struct ISpatialSurfaceInfo_Vtbl { pub TryComputeLatestMeshAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, maxtrianglespercubicmeter: f64, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub TryComputeLatestMeshWithOptionsAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, maxtrianglespercubicmeter: f64, options: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialSurfaceMesh(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialSurfaceMesh { - type Vtable = ISpatialSurfaceMesh_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialSurfaceMesh { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x108f57d9_df0d_3950_a0fd_f972c77c27b4); -} +::windows_core::imp::com_interface!(ISpatialSurfaceMesh, ISpatialSurfaceMesh_Vtbl, 0x108f57d9_df0d_3950_a0fd_f972c77c27b4); #[repr(C)] #[doc(hidden)] pub struct ISpatialSurfaceMesh_Vtbl { @@ -45,16 +27,7 @@ pub struct ISpatialSurfaceMesh_Vtbl { VertexPositionScale: usize, pub VertexNormals: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialSurfaceMeshBuffer(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialSurfaceMeshBuffer { - type Vtable = ISpatialSurfaceMeshBuffer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialSurfaceMeshBuffer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x93cf59e0_871f_33f8_98b2_03d101458f6f); -} +::windows_core::imp::com_interface!(ISpatialSurfaceMeshBuffer, ISpatialSurfaceMeshBuffer_Vtbl, 0x93cf59e0_871f_33f8_98b2_03d101458f6f); #[repr(C)] #[doc(hidden)] pub struct ISpatialSurfaceMeshBuffer_Vtbl { @@ -70,16 +43,7 @@ pub struct ISpatialSurfaceMeshBuffer_Vtbl { #[cfg(not(feature = "Storage_Streams"))] Data: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialSurfaceMeshOptions(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialSurfaceMeshOptions { - type Vtable = ISpatialSurfaceMeshOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialSurfaceMeshOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd2759f89_3572_3d2d_a10d_5fee9394aa37); -} +::windows_core::imp::com_interface!(ISpatialSurfaceMeshOptions, ISpatialSurfaceMeshOptions_Vtbl, 0xd2759f89_3572_3d2d_a10d_5fee9394aa37); #[repr(C)] #[doc(hidden)] pub struct ISpatialSurfaceMeshOptions_Vtbl { @@ -111,16 +75,7 @@ pub struct ISpatialSurfaceMeshOptions_Vtbl { pub IncludeVertexNormals: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetIncludeVertexNormals: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialSurfaceMeshOptionsStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialSurfaceMeshOptionsStatics { - type Vtable = ISpatialSurfaceMeshOptionsStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialSurfaceMeshOptionsStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9b340abf_9781_4505_8935_013575caae5e); -} +::windows_core::imp::com_interface!(ISpatialSurfaceMeshOptionsStatics, ISpatialSurfaceMeshOptionsStatics_Vtbl, 0x9b340abf_9781_4505_8935_013575caae5e); #[repr(C)] #[doc(hidden)] pub struct ISpatialSurfaceMeshOptionsStatics_Vtbl { @@ -138,16 +93,7 @@ pub struct ISpatialSurfaceMeshOptionsStatics_Vtbl { #[cfg(not(all(feature = "Foundation_Collections", feature = "Graphics_DirectX")))] SupportedVertexNormalFormats: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialSurfaceObserver(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialSurfaceObserver { - type Vtable = ISpatialSurfaceObserver_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialSurfaceObserver { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x10b69819_ddca_3483_ac3a_748fe8c86df5); -} +::windows_core::imp::com_interface!(ISpatialSurfaceObserver, ISpatialSurfaceObserver_Vtbl, 0x10b69819_ddca_3483_ac3a_748fe8c86df5); #[repr(C)] #[doc(hidden)] pub struct ISpatialSurfaceObserver_Vtbl { @@ -164,32 +110,14 @@ pub struct ISpatialSurfaceObserver_Vtbl { pub ObservedSurfacesChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveObservedSurfacesChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialSurfaceObserverStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialSurfaceObserverStatics { - type Vtable = ISpatialSurfaceObserverStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialSurfaceObserverStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x165951ed_2108_4168_9175_87e027bc9285); -} +::windows_core::imp::com_interface!(ISpatialSurfaceObserverStatics, ISpatialSurfaceObserverStatics_Vtbl, 0x165951ed_2108_4168_9175_87e027bc9285); #[repr(C)] #[doc(hidden)] pub struct ISpatialSurfaceObserverStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub RequestAccessAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialSurfaceObserverStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialSurfaceObserverStatics2 { - type Vtable = ISpatialSurfaceObserverStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialSurfaceObserverStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0f534261_c55d_4e6b_a895_a19de69a42e3); -} +::windows_core::imp::com_interface!(ISpatialSurfaceObserverStatics2, ISpatialSurfaceObserverStatics2_Vtbl, 0x0f534261_c55d_4e6b_a895_a19de69a42e3); #[repr(C)] #[doc(hidden)] pub struct ISpatialSurfaceObserverStatics2_Vtbl { @@ -199,6 +127,7 @@ pub struct ISpatialSurfaceObserverStatics2_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpatialSurfaceInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpatialSurfaceInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SpatialSurfaceInfo { pub fn Id(&self) -> ::windows_core::Result<::windows_core::GUID> { let this = self; @@ -249,19 +178,17 @@ impl ::windows_core::RuntimeType for SpatialSurfaceInfo { } unsafe impl ::windows_core::Interface for SpatialSurfaceInfo { type Vtable = ISpatialSurfaceInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpatialSurfaceInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpatialSurfaceInfo { const NAME: &'static str = "Windows.Perception.Spatial.Surfaces.SpatialSurfaceInfo"; } -::windows_core::imp::interface_hierarchy!(SpatialSurfaceInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SpatialSurfaceInfo {} unsafe impl ::core::marker::Sync for SpatialSurfaceInfo {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpatialSurfaceMesh(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpatialSurfaceMesh, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SpatialSurfaceMesh { pub fn SurfaceInfo(&self) -> ::windows_core::Result { let this = self; @@ -313,19 +240,17 @@ impl ::windows_core::RuntimeType for SpatialSurfaceMesh { } unsafe impl ::windows_core::Interface for SpatialSurfaceMesh { type Vtable = ISpatialSurfaceMesh_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpatialSurfaceMesh { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpatialSurfaceMesh { const NAME: &'static str = "Windows.Perception.Spatial.Surfaces.SpatialSurfaceMesh"; } -::windows_core::imp::interface_hierarchy!(SpatialSurfaceMesh, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SpatialSurfaceMesh {} unsafe impl ::core::marker::Sync for SpatialSurfaceMesh {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpatialSurfaceMeshBuffer(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpatialSurfaceMeshBuffer, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SpatialSurfaceMeshBuffer { #[doc = "Required features: `\"Graphics_DirectX\"`"] #[cfg(feature = "Graphics_DirectX")] @@ -365,19 +290,17 @@ impl ::windows_core::RuntimeType for SpatialSurfaceMeshBuffer { } unsafe impl ::windows_core::Interface for SpatialSurfaceMeshBuffer { type Vtable = ISpatialSurfaceMeshBuffer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpatialSurfaceMeshBuffer { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpatialSurfaceMeshBuffer { const NAME: &'static str = "Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshBuffer"; } -::windows_core::imp::interface_hierarchy!(SpatialSurfaceMeshBuffer, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SpatialSurfaceMeshBuffer {} unsafe impl ::core::marker::Sync for SpatialSurfaceMeshBuffer {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpatialSurfaceMeshOptions(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpatialSurfaceMeshOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SpatialSurfaceMeshOptions { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -477,19 +400,17 @@ impl ::windows_core::RuntimeType for SpatialSurfaceMeshOptions { } unsafe impl ::windows_core::Interface for SpatialSurfaceMeshOptions { type Vtable = ISpatialSurfaceMeshOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpatialSurfaceMeshOptions { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpatialSurfaceMeshOptions { const NAME: &'static str = "Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshOptions"; } -::windows_core::imp::interface_hierarchy!(SpatialSurfaceMeshOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SpatialSurfaceMeshOptions {} unsafe impl ::core::marker::Sync for SpatialSurfaceMeshOptions {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpatialSurfaceObserver(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpatialSurfaceObserver, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SpatialSurfaceObserver { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -518,10 +439,10 @@ impl SpatialSurfaceObserver { #[cfg(feature = "Foundation_Collections")] pub fn SetBoundingVolumes(&self, bounds: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetBoundingVolumes)(::windows_core::Interface::as_raw(this), bounds.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetBoundingVolumes)(::windows_core::Interface::as_raw(this), bounds.into_param().abi()).ok() } } pub fn ObservedSurfacesChanged(&self, handler: P0) -> ::windows_core::Result where @@ -565,13 +486,10 @@ impl ::windows_core::RuntimeType for SpatialSurfaceObserver { } unsafe impl ::windows_core::Interface for SpatialSurfaceObserver { type Vtable = ISpatialSurfaceObserver_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpatialSurfaceObserver { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpatialSurfaceObserver { const NAME: &'static str = "Windows.Perception.Spatial.Surfaces.SpatialSurfaceObserver"; } -::windows_core::imp::interface_hierarchy!(SpatialSurfaceObserver, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SpatialSurfaceObserver {} unsafe impl ::core::marker::Sync for SpatialSurfaceObserver {} diff --git a/crates/libs/windows/src/Windows/Perception/Spatial/mod.rs b/crates/libs/windows/src/Windows/Perception/Spatial/mod.rs index 8caf743111..2ee4b4e1f6 100644 --- a/crates/libs/windows/src/Windows/Perception/Spatial/mod.rs +++ b/crates/libs/windows/src/Windows/Perception/Spatial/mod.rs @@ -4,16 +4,7 @@ pub mod Preview; #[cfg(feature = "Perception_Spatial_Surfaces")] #[doc = "Required features: `\"Perception_Spatial_Surfaces\"`"] pub mod Surfaces; -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialAnchor(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialAnchor { - type Vtable = ISpatialAnchor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialAnchor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0529e5ce_1d34_3702_bcec_eabff578a869); -} +::windows_core::imp::com_interface!(ISpatialAnchor, ISpatialAnchor_Vtbl, 0x0529e5ce_1d34_3702_bcec_eabff578a869); #[repr(C)] #[doc(hidden)] pub struct ISpatialAnchor_Vtbl { @@ -23,32 +14,14 @@ pub struct ISpatialAnchor_Vtbl { pub RawCoordinateSystemAdjusted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveRawCoordinateSystemAdjusted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialAnchor2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialAnchor2 { - type Vtable = ISpatialAnchor2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialAnchor2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xed17c908_a695_4cf6_92fd_97263ba71047); -} +::windows_core::imp::com_interface!(ISpatialAnchor2, ISpatialAnchor2_Vtbl, 0xed17c908_a695_4cf6_92fd_97263ba71047); #[repr(C)] #[doc(hidden)] pub struct ISpatialAnchor2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub RemovedByUser: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialAnchorExportSufficiency(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialAnchorExportSufficiency { - type Vtable = ISpatialAnchorExportSufficiency_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialAnchorExportSufficiency { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x77c25b2b_3409_4088_b91b_fdfd05d1648f); -} +::windows_core::imp::com_interface!(ISpatialAnchorExportSufficiency, ISpatialAnchorExportSufficiency_Vtbl, 0x77c25b2b_3409_4088_b91b_fdfd05d1648f); #[repr(C)] #[doc(hidden)] pub struct ISpatialAnchorExportSufficiency_Vtbl { @@ -57,16 +30,7 @@ pub struct ISpatialAnchorExportSufficiency_Vtbl { pub SufficiencyLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows_core::HRESULT, pub RecommendedSufficiencyLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialAnchorExporter(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialAnchorExporter { - type Vtable = ISpatialAnchorExporter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialAnchorExporter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9a2a4338_24fb_4269_89c5_88304aeef20f); -} +::windows_core::imp::com_interface!(ISpatialAnchorExporter, ISpatialAnchorExporter_Vtbl, 0x9a2a4338_24fb_4269_89c5_88304aeef20f); #[repr(C)] #[doc(hidden)] pub struct ISpatialAnchorExporter_Vtbl { @@ -77,16 +41,7 @@ pub struct ISpatialAnchorExporter_Vtbl { #[cfg(not(feature = "Storage_Streams"))] TryExportAnchorAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialAnchorExporterStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialAnchorExporterStatics { - type Vtable = ISpatialAnchorExporterStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialAnchorExporterStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xed2507b8_2475_439c_85ff_7fed341fdc88); -} +::windows_core::imp::com_interface!(ISpatialAnchorExporterStatics, ISpatialAnchorExporterStatics_Vtbl, 0xed2507b8_2475_439c_85ff_7fed341fdc88); #[repr(C)] #[doc(hidden)] pub struct ISpatialAnchorExporterStatics_Vtbl { @@ -94,32 +49,14 @@ pub struct ISpatialAnchorExporterStatics_Vtbl { pub GetDefault: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RequestAccessAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialAnchorManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialAnchorManagerStatics { - type Vtable = ISpatialAnchorManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialAnchorManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x88e30eab_f3b7_420b_b086_8a80c07d910d); -} +::windows_core::imp::com_interface!(ISpatialAnchorManagerStatics, ISpatialAnchorManagerStatics_Vtbl, 0x88e30eab_f3b7_420b_b086_8a80c07d910d); #[repr(C)] #[doc(hidden)] pub struct ISpatialAnchorManagerStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub RequestStoreAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialAnchorRawCoordinateSystemAdjustedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialAnchorRawCoordinateSystemAdjustedEventArgs { - type Vtable = ISpatialAnchorRawCoordinateSystemAdjustedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialAnchorRawCoordinateSystemAdjustedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa1e81eb8_56c7_3117_a2e4_81e0fcf28e00); -} +::windows_core::imp::com_interface!(ISpatialAnchorRawCoordinateSystemAdjustedEventArgs, ISpatialAnchorRawCoordinateSystemAdjustedEventArgs_Vtbl, 0xa1e81eb8_56c7_3117_a2e4_81e0fcf28e00); #[repr(C)] #[doc(hidden)] pub struct ISpatialAnchorRawCoordinateSystemAdjustedEventArgs_Vtbl { @@ -129,16 +66,7 @@ pub struct ISpatialAnchorRawCoordinateSystemAdjustedEventArgs_Vtbl { #[cfg(not(feature = "Foundation_Numerics"))] OldRawCoordinateSystemToNewRawCoordinateSystemTransform: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialAnchorStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialAnchorStatics { - type Vtable = ISpatialAnchorStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialAnchorStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa9928642_0174_311c_ae79_0e5107669f16); -} +::windows_core::imp::com_interface!(ISpatialAnchorStatics, ISpatialAnchorStatics_Vtbl, 0xa9928642_0174_311c_ae79_0e5107669f16); #[repr(C)] #[doc(hidden)] pub struct ISpatialAnchorStatics_Vtbl { @@ -153,16 +81,7 @@ pub struct ISpatialAnchorStatics_Vtbl { #[cfg(not(feature = "Foundation_Numerics"))] TryCreateWithPositionAndOrientationRelativeTo: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialAnchorStore(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialAnchorStore { - type Vtable = ISpatialAnchorStore_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialAnchorStore { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb0bc3636_486a_3cb0_9e6f_1245165c4db6); -} +::windows_core::imp::com_interface!(ISpatialAnchorStore, ISpatialAnchorStore_Vtbl, 0xb0bc3636_486a_3cb0_9e6f_1245165c4db6); #[repr(C)] #[doc(hidden)] pub struct ISpatialAnchorStore_Vtbl { @@ -175,19 +94,13 @@ pub struct ISpatialAnchorStore_Vtbl { pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Clear: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialAnchorTransferManagerStatics(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for ISpatialAnchorTransferManagerStatics { - type Vtable = ISpatialAnchorTransferManagerStatics_Vtbl; -} #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for ISpatialAnchorTransferManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x03bbf9b9_12d8_4bce_8835_c5df3ac0adab); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + ISpatialAnchorTransferManagerStatics, + ISpatialAnchorTransferManagerStatics_Vtbl, + 0x03bbf9b9_12d8_4bce_8835_c5df3ac0adab +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -206,31 +119,13 @@ pub struct ISpatialAnchorTransferManagerStatics_Vtbl { #[cfg(not(feature = "deprecated"))] RequestAccessAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialBoundingVolume(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialBoundingVolume { - type Vtable = ISpatialBoundingVolume_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialBoundingVolume { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfb2065da_68c3_33df_b7af_4c787207999c); -} +::windows_core::imp::com_interface!(ISpatialBoundingVolume, ISpatialBoundingVolume_Vtbl, 0xfb2065da_68c3_33df_b7af_4c787207999c); #[repr(C)] #[doc(hidden)] pub struct ISpatialBoundingVolume_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialBoundingVolumeStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialBoundingVolumeStatics { - type Vtable = ISpatialBoundingVolumeStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialBoundingVolumeStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x05889117_b3e1_36d8_b017_566181a5b196); -} +::windows_core::imp::com_interface!(ISpatialBoundingVolumeStatics, ISpatialBoundingVolumeStatics_Vtbl, 0x05889117_b3e1_36d8_b017_566181a5b196); #[repr(C)] #[doc(hidden)] pub struct ISpatialBoundingVolumeStatics_Vtbl { @@ -252,16 +147,7 @@ pub struct ISpatialBoundingVolumeStatics_Vtbl { #[cfg(not(feature = "Foundation_Numerics"))] FromFrustum: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialCoordinateSystem(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialCoordinateSystem { - type Vtable = ISpatialCoordinateSystem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialCoordinateSystem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x69ebca4b_60a3_3586_a653_59a7bd676d07); -} +::windows_core::imp::com_interface!(ISpatialCoordinateSystem, ISpatialCoordinateSystem_Vtbl, 0x69ebca4b_60a3_3586_a653_59a7bd676d07); #[repr(C)] #[doc(hidden)] pub struct ISpatialCoordinateSystem_Vtbl { @@ -271,16 +157,7 @@ pub struct ISpatialCoordinateSystem_Vtbl { #[cfg(not(feature = "Foundation_Numerics"))] TryGetTransformTo: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialEntity(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialEntity { - type Vtable = ISpatialEntity_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialEntity { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x166de955_e1eb_454c_ba08_e6c0668ddc65); -} +::windows_core::imp::com_interface!(ISpatialEntity, ISpatialEntity_Vtbl, 0x166de955_e1eb_454c_ba08_e6c0668ddc65); #[repr(C)] #[doc(hidden)] pub struct ISpatialEntity_Vtbl { @@ -292,32 +169,14 @@ pub struct ISpatialEntity_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Properties: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialEntityAddedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialEntityAddedEventArgs { - type Vtable = ISpatialEntityAddedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialEntityAddedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa397f49b_156a_4707_ac2c_d31d570ed399); -} +::windows_core::imp::com_interface!(ISpatialEntityAddedEventArgs, ISpatialEntityAddedEventArgs_Vtbl, 0xa397f49b_156a_4707_ac2c_d31d570ed399); #[repr(C)] #[doc(hidden)] pub struct ISpatialEntityAddedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Entity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialEntityFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialEntityFactory { - type Vtable = ISpatialEntityFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialEntityFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe1f1e325_349f_4225_a2f3_4b01c15fe056); -} +::windows_core::imp::com_interface!(ISpatialEntityFactory, ISpatialEntityFactory_Vtbl, 0xe1f1e325_349f_4225_a2f3_4b01c15fe056); #[repr(C)] #[doc(hidden)] pub struct ISpatialEntityFactory_Vtbl { @@ -328,32 +187,14 @@ pub struct ISpatialEntityFactory_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] CreateWithSpatialAnchorAndProperties: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialEntityRemovedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialEntityRemovedEventArgs { - type Vtable = ISpatialEntityRemovedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialEntityRemovedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x91741800_536d_4e9f_abf6_415b5444d651); -} +::windows_core::imp::com_interface!(ISpatialEntityRemovedEventArgs, ISpatialEntityRemovedEventArgs_Vtbl, 0x91741800_536d_4e9f_abf6_415b5444d651); #[repr(C)] #[doc(hidden)] pub struct ISpatialEntityRemovedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Entity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialEntityStore(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialEntityStore { - type Vtable = ISpatialEntityStore_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialEntityStore { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x329788ba_e513_4f06_889d_1be30ecf43e6); -} +::windows_core::imp::com_interface!(ISpatialEntityStore, ISpatialEntityStore_Vtbl, 0x329788ba_e513_4f06_889d_1be30ecf43e6); #[repr(C)] #[doc(hidden)] pub struct ISpatialEntityStore_Vtbl { @@ -362,16 +203,7 @@ pub struct ISpatialEntityStore_Vtbl { pub RemoveAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, entity: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateEntityWatcher: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialEntityStoreStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialEntityStoreStatics { - type Vtable = ISpatialEntityStoreStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialEntityStoreStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6b4b389e_7c50_4e92_8a62_4d1d4b7ccd3e); -} +::windows_core::imp::com_interface!(ISpatialEntityStoreStatics, ISpatialEntityStoreStatics_Vtbl, 0x6b4b389e_7c50_4e92_8a62_4d1d4b7ccd3e); #[repr(C)] #[doc(hidden)] pub struct ISpatialEntityStoreStatics_Vtbl { @@ -382,32 +214,14 @@ pub struct ISpatialEntityStoreStatics_Vtbl { #[cfg(not(feature = "System_RemoteSystems"))] TryGetForRemoteSystemSession: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialEntityUpdatedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialEntityUpdatedEventArgs { - type Vtable = ISpatialEntityUpdatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialEntityUpdatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe5671766_627b_43cb_a49f_b3be6d47deed); -} +::windows_core::imp::com_interface!(ISpatialEntityUpdatedEventArgs, ISpatialEntityUpdatedEventArgs_Vtbl, 0xe5671766_627b_43cb_a49f_b3be6d47deed); #[repr(C)] #[doc(hidden)] pub struct ISpatialEntityUpdatedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Entity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialEntityWatcher(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialEntityWatcher { - type Vtable = ISpatialEntityWatcher_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialEntityWatcher { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb3b85fa0_6d5e_4bbc_805d_5fe5b9ba1959); -} +::windows_core::imp::com_interface!(ISpatialEntityWatcher, ISpatialEntityWatcher_Vtbl, 0xb3b85fa0_6d5e_4bbc_805d_5fe5b9ba1959); #[repr(C)] #[doc(hidden)] pub struct ISpatialEntityWatcher_Vtbl { @@ -424,16 +238,7 @@ pub struct ISpatialEntityWatcher_Vtbl { pub Start: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Stop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialLocation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialLocation { - type Vtable = ISpatialLocation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialLocation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1d81d29d_24a1_37d5_8fa1_39b4f9ad67e2); -} +::windows_core::imp::com_interface!(ISpatialLocation, ISpatialLocation_Vtbl, 0x1d81d29d_24a1_37d5_8fa1_39b4f9ad67e2); #[repr(C)] #[doc(hidden)] pub struct ISpatialLocation_Vtbl { @@ -463,16 +268,7 @@ pub struct ISpatialLocation_Vtbl { #[cfg(not(all(feature = "Foundation_Numerics", feature = "deprecated")))] AbsoluteAngularAcceleration: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialLocation2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialLocation2 { - type Vtable = ISpatialLocation2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialLocation2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x117f2416_38a7_4a18_b404_ab8fabe1d78b); -} +::windows_core::imp::com_interface!(ISpatialLocation2, ISpatialLocation2_Vtbl, 0x117f2416_38a7_4a18_b404_ab8fabe1d78b); #[repr(C)] #[doc(hidden)] pub struct ISpatialLocation2_Vtbl { @@ -486,16 +282,7 @@ pub struct ISpatialLocation2_Vtbl { #[cfg(not(feature = "Foundation_Numerics"))] AbsoluteAngularAccelerationAxisAngle: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialLocator(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialLocator { - type Vtable = ISpatialLocator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialLocator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf6478925_9e0c_3bb6_997e_b64ecca24cf4); -} +::windows_core::imp::com_interface!(ISpatialLocator, ISpatialLocator_Vtbl, 0xf6478925_9e0c_3bb6_997e_b64ecca24cf4); #[repr(C)] #[doc(hidden)] pub struct ISpatialLocator_Vtbl { @@ -533,16 +320,7 @@ pub struct ISpatialLocator_Vtbl { #[cfg(not(feature = "Foundation_Numerics"))] CreateStationaryFrameOfReferenceAtCurrentLocationWithPositionAndOrientationAndRelativeHeading: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialLocatorAttachedFrameOfReference(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialLocatorAttachedFrameOfReference { - type Vtable = ISpatialLocatorAttachedFrameOfReference_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialLocatorAttachedFrameOfReference { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe1774ef6_1f4f_499c_9625_ef5e6ed7a048); -} +::windows_core::imp::com_interface!(ISpatialLocatorAttachedFrameOfReference, ISpatialLocatorAttachedFrameOfReference_Vtbl, 0xe1774ef6_1f4f_499c_9625_ef5e6ed7a048); #[repr(C)] #[doc(hidden)] pub struct ISpatialLocatorAttachedFrameOfReference_Vtbl { @@ -567,16 +345,7 @@ pub struct ISpatialLocatorAttachedFrameOfReference_Vtbl { pub GetStationaryCoordinateSystemAtTimestamp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, timestamp: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub TryGetRelativeHeadingAtTimestamp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, timestamp: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialLocatorPositionalTrackingDeactivatingEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialLocatorPositionalTrackingDeactivatingEventArgs { - type Vtable = ISpatialLocatorPositionalTrackingDeactivatingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialLocatorPositionalTrackingDeactivatingEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb8a84063_e3f4_368b_9061_9ea9d1d6cc16); -} +::windows_core::imp::com_interface!(ISpatialLocatorPositionalTrackingDeactivatingEventArgs, ISpatialLocatorPositionalTrackingDeactivatingEventArgs_Vtbl, 0xb8a84063_e3f4_368b_9061_9ea9d1d6cc16); #[repr(C)] #[doc(hidden)] pub struct ISpatialLocatorPositionalTrackingDeactivatingEventArgs_Vtbl { @@ -584,32 +353,14 @@ pub struct ISpatialLocatorPositionalTrackingDeactivatingEventArgs_Vtbl { pub Canceled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetCanceled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialLocatorStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialLocatorStatics { - type Vtable = ISpatialLocatorStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialLocatorStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb76e3340_a7c2_361b_bb82_56e93b89b1bb); -} +::windows_core::imp::com_interface!(ISpatialLocatorStatics, ISpatialLocatorStatics_Vtbl, 0xb76e3340_a7c2_361b_bb82_56e93b89b1bb); #[repr(C)] #[doc(hidden)] pub struct ISpatialLocatorStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetDefault: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialStageFrameOfReference(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialStageFrameOfReference { - type Vtable = ISpatialStageFrameOfReference_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialStageFrameOfReference { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7a8a3464_ad0d_4590_ab86_33062b674926); -} +::windows_core::imp::com_interface!(ISpatialStageFrameOfReference, ISpatialStageFrameOfReference_Vtbl, 0x7a8a3464_ad0d_4590_ab86_33062b674926); #[repr(C)] #[doc(hidden)] pub struct ISpatialStageFrameOfReference_Vtbl { @@ -623,16 +374,7 @@ pub struct ISpatialStageFrameOfReference_Vtbl { #[cfg(not(feature = "Foundation_Numerics"))] TryGetMovementBounds: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialStageFrameOfReferenceStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialStageFrameOfReferenceStatics { - type Vtable = ISpatialStageFrameOfReferenceStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialStageFrameOfReferenceStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf78d5c4d_a0a4_499c_8d91_a8c965d40654); -} +::windows_core::imp::com_interface!(ISpatialStageFrameOfReferenceStatics, ISpatialStageFrameOfReferenceStatics_Vtbl, 0xf78d5c4d_a0a4_499c_8d91_a8c965d40654); #[repr(C)] #[doc(hidden)] pub struct ISpatialStageFrameOfReferenceStatics_Vtbl { @@ -642,16 +384,7 @@ pub struct ISpatialStageFrameOfReferenceStatics_Vtbl { pub RemoveCurrentChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RequestNewStageAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialStationaryFrameOfReference(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialStationaryFrameOfReference { - type Vtable = ISpatialStationaryFrameOfReference_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialStationaryFrameOfReference { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x09dbccb9_bcf8_3e7f_be7e_7edccbb178a8); -} +::windows_core::imp::com_interface!(ISpatialStationaryFrameOfReference, ISpatialStationaryFrameOfReference_Vtbl, 0x09dbccb9_bcf8_3e7f_be7e_7edccbb178a8); #[repr(C)] #[doc(hidden)] pub struct ISpatialStationaryFrameOfReference_Vtbl { @@ -661,6 +394,7 @@ pub struct ISpatialStationaryFrameOfReference_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpatialAnchor(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpatialAnchor, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SpatialAnchor { pub fn CoordinateSystem(&self) -> ::windows_core::Result { let this = self; @@ -691,7 +425,7 @@ impl SpatialAnchor { unsafe { (::windows_core::Interface::vtable(this).RemoveRawCoordinateSystemAdjusted)(::windows_core::Interface::as_raw(this), cookie).ok() } } pub fn RemovedByUser(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RemovedByUser)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -739,19 +473,17 @@ impl ::windows_core::RuntimeType for SpatialAnchor { } unsafe impl ::windows_core::Interface for SpatialAnchor { type Vtable = ISpatialAnchor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpatialAnchor { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpatialAnchor { const NAME: &'static str = "Windows.Perception.Spatial.SpatialAnchor"; } -::windows_core::imp::interface_hierarchy!(SpatialAnchor, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SpatialAnchor {} unsafe impl ::core::marker::Sync for SpatialAnchor {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpatialAnchorExportSufficiency(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpatialAnchorExportSufficiency, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SpatialAnchorExportSufficiency { pub fn IsMinimallySufficient(&self) -> ::windows_core::Result { let this = self; @@ -780,19 +512,17 @@ impl ::windows_core::RuntimeType for SpatialAnchorExportSufficiency { } unsafe impl ::windows_core::Interface for SpatialAnchorExportSufficiency { type Vtable = ISpatialAnchorExportSufficiency_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpatialAnchorExportSufficiency { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpatialAnchorExportSufficiency { const NAME: &'static str = "Windows.Perception.Spatial.SpatialAnchorExportSufficiency"; } -::windows_core::imp::interface_hierarchy!(SpatialAnchorExportSufficiency, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SpatialAnchorExportSufficiency {} unsafe impl ::core::marker::Sync for SpatialAnchorExportSufficiency {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpatialAnchorExporter(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpatialAnchorExporter, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SpatialAnchorExporter { pub fn GetAnchorExportSufficiencyAsync(&self, anchor: P0, purpose: SpatialAnchorExportPurpose) -> ::windows_core::Result> where @@ -809,12 +539,12 @@ impl SpatialAnchorExporter { pub fn TryExportAnchorAsync(&self, anchor: P0, purpose: SpatialAnchorExportPurpose, stream: P1) -> ::windows_core::Result> where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam, + P1: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).TryExportAnchorAsync)(::windows_core::Interface::as_raw(this), anchor.into_param().abi(), purpose, stream.into_param().abi(), &mut result__).from_abi(result__) } } pub fn GetDefault() -> ::windows_core::Result { @@ -840,14 +570,11 @@ impl ::windows_core::RuntimeType for SpatialAnchorExporter { } unsafe impl ::windows_core::Interface for SpatialAnchorExporter { type Vtable = ISpatialAnchorExporter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpatialAnchorExporter { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpatialAnchorExporter { const NAME: &'static str = "Windows.Perception.Spatial.SpatialAnchorExporter"; } -::windows_core::imp::interface_hierarchy!(SpatialAnchorExporter, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SpatialAnchorExporter {} unsafe impl ::core::marker::Sync for SpatialAnchorExporter {} pub struct SpatialAnchorManager; @@ -870,6 +597,7 @@ impl ::windows_core::RuntimeName for SpatialAnchorManager { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpatialAnchorRawCoordinateSystemAdjustedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpatialAnchorRawCoordinateSystemAdjustedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SpatialAnchorRawCoordinateSystemAdjustedEventArgs { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] @@ -886,19 +614,17 @@ impl ::windows_core::RuntimeType for SpatialAnchorRawCoordinateSystemAdjustedEve } unsafe impl ::windows_core::Interface for SpatialAnchorRawCoordinateSystemAdjustedEventArgs { type Vtable = ISpatialAnchorRawCoordinateSystemAdjustedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpatialAnchorRawCoordinateSystemAdjustedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpatialAnchorRawCoordinateSystemAdjustedEventArgs { const NAME: &'static str = "Windows.Perception.Spatial.SpatialAnchorRawCoordinateSystemAdjustedEventArgs"; } -::windows_core::imp::interface_hierarchy!(SpatialAnchorRawCoordinateSystemAdjustedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SpatialAnchorRawCoordinateSystemAdjustedEventArgs {} unsafe impl ::core::marker::Sync for SpatialAnchorRawCoordinateSystemAdjustedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpatialAnchorStore(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpatialAnchorStore, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SpatialAnchorStore { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -933,14 +659,11 @@ impl ::windows_core::RuntimeType for SpatialAnchorStore { } unsafe impl ::windows_core::Interface for SpatialAnchorStore { type Vtable = ISpatialAnchorStore_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpatialAnchorStore { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpatialAnchorStore { const NAME: &'static str = "Windows.Perception.Spatial.SpatialAnchorStore"; } -::windows_core::imp::interface_hierarchy!(SpatialAnchorStore, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SpatialAnchorStore {} unsafe impl ::core::marker::Sync for SpatialAnchorStore {} #[doc = "Required features: `\"deprecated\"`"] @@ -952,23 +675,23 @@ impl SpatialAnchorTransferManager { #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams", feature = "deprecated"))] pub fn TryImportAnchorsAsync(stream: P0) -> ::windows_core::Result>> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::ISpatialAnchorTransferManagerStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).TryImportAnchorsAsync)(::windows_core::Interface::as_raw(this), stream.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).TryImportAnchorsAsync)(::windows_core::Interface::as_raw(this), stream.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Storage_Streams\"`, `\"deprecated\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams", feature = "deprecated"))] pub fn TryExportAnchorsAsync(anchors: P0, stream: P1) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>>, - P1: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam>>, + P1: ::windows_core::IntoParam, { Self::ISpatialAnchorTransferManagerStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).TryExportAnchorsAsync)(::windows_core::Interface::as_raw(this), anchors.try_into_param()?.abi(), stream.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).TryExportAnchorsAsync)(::windows_core::Interface::as_raw(this), anchors.into_param().abi(), stream.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"deprecated\"`"] @@ -993,6 +716,7 @@ impl ::windows_core::RuntimeName for SpatialAnchorTransferManager { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpatialBoundingVolume(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpatialBoundingVolume, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SpatialBoundingVolume { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] @@ -1049,19 +773,17 @@ impl ::windows_core::RuntimeType for SpatialBoundingVolume { } unsafe impl ::windows_core::Interface for SpatialBoundingVolume { type Vtable = ISpatialBoundingVolume_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpatialBoundingVolume { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpatialBoundingVolume { const NAME: &'static str = "Windows.Perception.Spatial.SpatialBoundingVolume"; } -::windows_core::imp::interface_hierarchy!(SpatialBoundingVolume, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SpatialBoundingVolume {} unsafe impl ::core::marker::Sync for SpatialBoundingVolume {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpatialCoordinateSystem(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpatialCoordinateSystem, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SpatialCoordinateSystem { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] @@ -1081,19 +803,17 @@ impl ::windows_core::RuntimeType for SpatialCoordinateSystem { } unsafe impl ::windows_core::Interface for SpatialCoordinateSystem { type Vtable = ISpatialCoordinateSystem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpatialCoordinateSystem { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpatialCoordinateSystem { const NAME: &'static str = "Windows.Perception.Spatial.SpatialCoordinateSystem"; } -::windows_core::imp::interface_hierarchy!(SpatialCoordinateSystem, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SpatialCoordinateSystem {} unsafe impl ::core::marker::Sync for SpatialCoordinateSystem {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpatialEntity(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpatialEntity, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SpatialEntity { pub fn Id(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1150,19 +870,17 @@ impl ::windows_core::RuntimeType for SpatialEntity { } unsafe impl ::windows_core::Interface for SpatialEntity { type Vtable = ISpatialEntity_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpatialEntity { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpatialEntity { const NAME: &'static str = "Windows.Perception.Spatial.SpatialEntity"; } -::windows_core::imp::interface_hierarchy!(SpatialEntity, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SpatialEntity {} unsafe impl ::core::marker::Sync for SpatialEntity {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpatialEntityAddedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpatialEntityAddedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SpatialEntityAddedEventArgs { pub fn Entity(&self) -> ::windows_core::Result { let this = self; @@ -1177,19 +895,17 @@ impl ::windows_core::RuntimeType for SpatialEntityAddedEventArgs { } unsafe impl ::windows_core::Interface for SpatialEntityAddedEventArgs { type Vtable = ISpatialEntityAddedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpatialEntityAddedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpatialEntityAddedEventArgs { const NAME: &'static str = "Windows.Perception.Spatial.SpatialEntityAddedEventArgs"; } -::windows_core::imp::interface_hierarchy!(SpatialEntityAddedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SpatialEntityAddedEventArgs {} unsafe impl ::core::marker::Sync for SpatialEntityAddedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpatialEntityRemovedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpatialEntityRemovedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SpatialEntityRemovedEventArgs { pub fn Entity(&self) -> ::windows_core::Result { let this = self; @@ -1204,19 +920,17 @@ impl ::windows_core::RuntimeType for SpatialEntityRemovedEventArgs { } unsafe impl ::windows_core::Interface for SpatialEntityRemovedEventArgs { type Vtable = ISpatialEntityRemovedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpatialEntityRemovedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpatialEntityRemovedEventArgs { const NAME: &'static str = "Windows.Perception.Spatial.SpatialEntityRemovedEventArgs"; } -::windows_core::imp::interface_hierarchy!(SpatialEntityRemovedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SpatialEntityRemovedEventArgs {} unsafe impl ::core::marker::Sync for SpatialEntityRemovedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpatialEntityStore(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpatialEntityStore, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SpatialEntityStore { pub fn SaveAsync(&self, entity: P0) -> ::windows_core::Result where @@ -1273,19 +987,17 @@ impl ::windows_core::RuntimeType for SpatialEntityStore { } unsafe impl ::windows_core::Interface for SpatialEntityStore { type Vtable = ISpatialEntityStore_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpatialEntityStore { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpatialEntityStore { const NAME: &'static str = "Windows.Perception.Spatial.SpatialEntityStore"; } -::windows_core::imp::interface_hierarchy!(SpatialEntityStore, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SpatialEntityStore {} unsafe impl ::core::marker::Sync for SpatialEntityStore {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpatialEntityUpdatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpatialEntityUpdatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SpatialEntityUpdatedEventArgs { pub fn Entity(&self) -> ::windows_core::Result { let this = self; @@ -1300,19 +1012,17 @@ impl ::windows_core::RuntimeType for SpatialEntityUpdatedEventArgs { } unsafe impl ::windows_core::Interface for SpatialEntityUpdatedEventArgs { type Vtable = ISpatialEntityUpdatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpatialEntityUpdatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpatialEntityUpdatedEventArgs { const NAME: &'static str = "Windows.Perception.Spatial.SpatialEntityUpdatedEventArgs"; } -::windows_core::imp::interface_hierarchy!(SpatialEntityUpdatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SpatialEntityUpdatedEventArgs {} unsafe impl ::core::marker::Sync for SpatialEntityUpdatedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpatialEntityWatcher(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpatialEntityWatcher, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SpatialEntityWatcher { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -1391,19 +1101,17 @@ impl ::windows_core::RuntimeType for SpatialEntityWatcher { } unsafe impl ::windows_core::Interface for SpatialEntityWatcher { type Vtable = ISpatialEntityWatcher_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpatialEntityWatcher { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpatialEntityWatcher { const NAME: &'static str = "Windows.Perception.Spatial.SpatialEntityWatcher"; } -::windows_core::imp::interface_hierarchy!(SpatialEntityWatcher, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SpatialEntityWatcher {} unsafe impl ::core::marker::Sync for SpatialEntityWatcher {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpatialLocation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpatialLocation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SpatialLocation { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] @@ -1462,7 +1170,7 @@ impl SpatialLocation { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn AbsoluteAngularVelocityAxisAngle(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AbsoluteAngularVelocityAxisAngle)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1471,7 +1179,7 @@ impl SpatialLocation { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn AbsoluteAngularAccelerationAxisAngle(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AbsoluteAngularAccelerationAxisAngle)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1483,19 +1191,17 @@ impl ::windows_core::RuntimeType for SpatialLocation { } unsafe impl ::windows_core::Interface for SpatialLocation { type Vtable = ISpatialLocation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpatialLocation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpatialLocation { const NAME: &'static str = "Windows.Perception.Spatial.SpatialLocation"; } -::windows_core::imp::interface_hierarchy!(SpatialLocation, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SpatialLocation {} unsafe impl ::core::marker::Sync for SpatialLocation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpatialLocator(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpatialLocator, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SpatialLocator { pub fn Locatability(&self) -> ::windows_core::Result { let this = self; @@ -1628,19 +1334,17 @@ impl ::windows_core::RuntimeType for SpatialLocator { } unsafe impl ::windows_core::Interface for SpatialLocator { type Vtable = ISpatialLocator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpatialLocator { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpatialLocator { const NAME: &'static str = "Windows.Perception.Spatial.SpatialLocator"; } -::windows_core::imp::interface_hierarchy!(SpatialLocator, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SpatialLocator {} unsafe impl ::core::marker::Sync for SpatialLocator {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpatialLocatorAttachedFrameOfReference(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpatialLocatorAttachedFrameOfReference, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SpatialLocatorAttachedFrameOfReference { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] @@ -1702,19 +1406,17 @@ impl ::windows_core::RuntimeType for SpatialLocatorAttachedFrameOfReference { } unsafe impl ::windows_core::Interface for SpatialLocatorAttachedFrameOfReference { type Vtable = ISpatialLocatorAttachedFrameOfReference_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpatialLocatorAttachedFrameOfReference { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpatialLocatorAttachedFrameOfReference { const NAME: &'static str = "Windows.Perception.Spatial.SpatialLocatorAttachedFrameOfReference"; } -::windows_core::imp::interface_hierarchy!(SpatialLocatorAttachedFrameOfReference, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SpatialLocatorAttachedFrameOfReference {} unsafe impl ::core::marker::Sync for SpatialLocatorAttachedFrameOfReference {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpatialLocatorPositionalTrackingDeactivatingEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpatialLocatorPositionalTrackingDeactivatingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SpatialLocatorPositionalTrackingDeactivatingEventArgs { pub fn Canceled(&self) -> ::windows_core::Result { let this = self; @@ -1733,19 +1435,17 @@ impl ::windows_core::RuntimeType for SpatialLocatorPositionalTrackingDeactivatin } unsafe impl ::windows_core::Interface for SpatialLocatorPositionalTrackingDeactivatingEventArgs { type Vtable = ISpatialLocatorPositionalTrackingDeactivatingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpatialLocatorPositionalTrackingDeactivatingEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpatialLocatorPositionalTrackingDeactivatingEventArgs { const NAME: &'static str = "Windows.Perception.Spatial.SpatialLocatorPositionalTrackingDeactivatingEventArgs"; } -::windows_core::imp::interface_hierarchy!(SpatialLocatorPositionalTrackingDeactivatingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SpatialLocatorPositionalTrackingDeactivatingEventArgs {} unsafe impl ::core::marker::Sync for SpatialLocatorPositionalTrackingDeactivatingEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpatialStageFrameOfReference(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpatialStageFrameOfReference, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SpatialStageFrameOfReference { pub fn CoordinateSystem(&self) -> ::windows_core::Result { let this = self; @@ -1825,19 +1525,17 @@ impl ::windows_core::RuntimeType for SpatialStageFrameOfReference { } unsafe impl ::windows_core::Interface for SpatialStageFrameOfReference { type Vtable = ISpatialStageFrameOfReference_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpatialStageFrameOfReference { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpatialStageFrameOfReference { const NAME: &'static str = "Windows.Perception.Spatial.SpatialStageFrameOfReference"; } -::windows_core::imp::interface_hierarchy!(SpatialStageFrameOfReference, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SpatialStageFrameOfReference {} unsafe impl ::core::marker::Sync for SpatialStageFrameOfReference {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpatialStationaryFrameOfReference(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpatialStationaryFrameOfReference, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SpatialStationaryFrameOfReference { pub fn CoordinateSystem(&self) -> ::windows_core::Result { let this = self; @@ -1852,14 +1550,11 @@ impl ::windows_core::RuntimeType for SpatialStationaryFrameOfReference { } unsafe impl ::windows_core::Interface for SpatialStationaryFrameOfReference { type Vtable = ISpatialStationaryFrameOfReference_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpatialStationaryFrameOfReference { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpatialStationaryFrameOfReference { const NAME: &'static str = "Windows.Perception.Spatial.SpatialStationaryFrameOfReference"; } -::windows_core::imp::interface_hierarchy!(SpatialStationaryFrameOfReference, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SpatialStationaryFrameOfReference {} unsafe impl ::core::marker::Sync for SpatialStationaryFrameOfReference {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Perception/mod.rs b/crates/libs/windows/src/Windows/Perception/mod.rs index e690d86d91..0c004d55e0 100644 --- a/crates/libs/windows/src/Windows/Perception/mod.rs +++ b/crates/libs/windows/src/Windows/Perception/mod.rs @@ -7,16 +7,7 @@ pub mod People; #[cfg(feature = "Perception_Spatial")] #[doc = "Required features: `\"Perception_Spatial\"`"] pub mod Spatial; -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPerceptionTimestamp(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPerceptionTimestamp { - type Vtable = IPerceptionTimestamp_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPerceptionTimestamp { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x87c24804_a22e_4adb_ba26_d78ef639bcf4); -} +::windows_core::imp::com_interface!(IPerceptionTimestamp, IPerceptionTimestamp_Vtbl, 0x87c24804_a22e_4adb_ba26_d78ef639bcf4); #[repr(C)] #[doc(hidden)] pub struct IPerceptionTimestamp_Vtbl { @@ -24,48 +15,21 @@ pub struct IPerceptionTimestamp_Vtbl { pub TargetTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::Foundation::DateTime) -> ::windows_core::HRESULT, pub PredictionAmount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::Foundation::TimeSpan) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPerceptionTimestamp2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPerceptionTimestamp2 { - type Vtable = IPerceptionTimestamp2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPerceptionTimestamp2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe354b7ed_2bd1_41b7_9ed0_74a15c354537); -} +::windows_core::imp::com_interface!(IPerceptionTimestamp2, IPerceptionTimestamp2_Vtbl, 0xe354b7ed_2bd1_41b7_9ed0_74a15c354537); #[repr(C)] #[doc(hidden)] pub struct IPerceptionTimestamp2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub SystemRelativeTargetTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::Foundation::TimeSpan) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPerceptionTimestampHelperStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPerceptionTimestampHelperStatics { - type Vtable = IPerceptionTimestampHelperStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPerceptionTimestampHelperStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x47a611d4_a9df_4edc_855d_f4d339d967ac); -} +::windows_core::imp::com_interface!(IPerceptionTimestampHelperStatics, IPerceptionTimestampHelperStatics_Vtbl, 0x47a611d4_a9df_4edc_855d_f4d339d967ac); #[repr(C)] #[doc(hidden)] pub struct IPerceptionTimestampHelperStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub FromHistoricalTargetTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, targettime: super::Foundation::DateTime, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPerceptionTimestampHelperStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPerceptionTimestampHelperStatics2 { - type Vtable = IPerceptionTimestampHelperStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPerceptionTimestampHelperStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x73d1a7fe_3fb9_4571_87d4_3c920a5e86eb); -} +::windows_core::imp::com_interface!(IPerceptionTimestampHelperStatics2, IPerceptionTimestampHelperStatics2_Vtbl, 0x73d1a7fe_3fb9_4571_87d4_3c920a5e86eb); #[repr(C)] #[doc(hidden)] pub struct IPerceptionTimestampHelperStatics2_Vtbl { @@ -75,6 +39,7 @@ pub struct IPerceptionTimestampHelperStatics2_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PerceptionTimestamp(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PerceptionTimestamp, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PerceptionTimestamp { pub fn TargetTime(&self) -> ::windows_core::Result { let this = self; @@ -91,7 +56,7 @@ impl PerceptionTimestamp { } } pub fn SystemRelativeTargetTime(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SystemRelativeTargetTime)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -103,14 +68,11 @@ impl ::windows_core::RuntimeType for PerceptionTimestamp { } unsafe impl ::windows_core::Interface for PerceptionTimestamp { type Vtable = IPerceptionTimestamp_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PerceptionTimestamp { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PerceptionTimestamp { const NAME: &'static str = "Windows.Perception.PerceptionTimestamp"; } -::windows_core::imp::interface_hierarchy!(PerceptionTimestamp, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PerceptionTimestamp {} unsafe impl ::core::marker::Sync for PerceptionTimestamp {} pub struct PerceptionTimestampHelper; diff --git a/crates/libs/windows/src/Windows/Phone/ApplicationModel/mod.rs b/crates/libs/windows/src/Windows/Phone/ApplicationModel/mod.rs index a6e4156ba6..083e39fe30 100644 --- a/crates/libs/windows/src/Windows/Phone/ApplicationModel/mod.rs +++ b/crates/libs/windows/src/Windows/Phone/ApplicationModel/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IApplicationProfileStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IApplicationProfileStatics { - type Vtable = IApplicationProfileStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IApplicationProfileStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd5008ab4_7e7a_11e1_a7f2_b0a14824019b); -} +::windows_core::imp::com_interface!(IApplicationProfileStatics, IApplicationProfileStatics_Vtbl, 0xd5008ab4_7e7a_11e1_a7f2_b0a14824019b); #[repr(C)] #[doc(hidden)] pub struct IApplicationProfileStatics_Vtbl { diff --git a/crates/libs/windows/src/Windows/Phone/Devices/Notification/mod.rs b/crates/libs/windows/src/Windows/Phone/Devices/Notification/mod.rs index b2026bfd62..05addf2783 100644 --- a/crates/libs/windows/src/Windows/Phone/Devices/Notification/mod.rs +++ b/crates/libs/windows/src/Windows/Phone/Devices/Notification/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVibrationDevice(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVibrationDevice { - type Vtable = IVibrationDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVibrationDevice { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1b4a6595_cfcd_4e08_92fb_c1906d04498c); -} +::windows_core::imp::com_interface!(IVibrationDevice, IVibrationDevice_Vtbl, 0x1b4a6595_cfcd_4e08_92fb_c1906d04498c); #[repr(C)] #[doc(hidden)] pub struct IVibrationDevice_Vtbl { @@ -15,16 +6,7 @@ pub struct IVibrationDevice_Vtbl { pub Vibrate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, duration: super::super::super::Foundation::TimeSpan) -> ::windows_core::HRESULT, pub Cancel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVibrationDeviceStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVibrationDeviceStatics { - type Vtable = IVibrationDeviceStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVibrationDeviceStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x332fd2f1_1c69_4c91_949e_4bb67a85bdc7); -} +::windows_core::imp::com_interface!(IVibrationDeviceStatics, IVibrationDeviceStatics_Vtbl, 0x332fd2f1_1c69_4c91_949e_4bb67a85bdc7); #[repr(C)] #[doc(hidden)] pub struct IVibrationDeviceStatics_Vtbl { @@ -34,6 +16,7 @@ pub struct IVibrationDeviceStatics_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VibrationDevice(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VibrationDevice, ::windows_core::IUnknown, ::windows_core::IInspectable); impl VibrationDevice { pub fn Vibrate(&self, duration: super::super::super::Foundation::TimeSpan) -> ::windows_core::Result<()> { let this = self; @@ -60,13 +43,10 @@ impl ::windows_core::RuntimeType for VibrationDevice { } unsafe impl ::windows_core::Interface for VibrationDevice { type Vtable = IVibrationDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VibrationDevice { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VibrationDevice { const NAME: &'static str = "Windows.Phone.Devices.Notification.VibrationDevice"; } -::windows_core::imp::interface_hierarchy!(VibrationDevice, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for VibrationDevice {} unsafe impl ::core::marker::Sync for VibrationDevice {} 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 68aa4c07f2..b8b03ff811 100644 --- a/crates/libs/windows/src/Windows/Phone/Devices/Power/mod.rs +++ b/crates/libs/windows/src/Windows/Phone/Devices/Power/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBattery(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBattery { - type Vtable = IBattery_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBattery { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x972adbdd_6720_4702_a476_b9d38a0070e3); -} +::windows_core::imp::com_interface!(IBattery, IBattery_Vtbl, 0x972adbdd_6720_4702_a476_b9d38a0070e3); #[repr(C)] #[doc(hidden)] pub struct IBattery_Vtbl { @@ -17,16 +8,7 @@ pub struct IBattery_Vtbl { pub RemainingChargePercentChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, changehandler: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveRemainingChargePercentChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBatteryStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBatteryStatics { - type Vtable = IBatteryStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBatteryStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfaf5bc70_6369_11e1_b86c_0800200c9a66); -} +::windows_core::imp::com_interface!(IBatteryStatics, IBatteryStatics_Vtbl, 0xfaf5bc70_6369_11e1_b86c_0800200c9a66); #[repr(C)] #[doc(hidden)] pub struct IBatteryStatics_Vtbl { @@ -36,6 +18,7 @@ pub struct IBatteryStatics_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Battery(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Battery, ::windows_core::IUnknown, ::windows_core::IInspectable); impl Battery { pub fn RemainingChargePercent(&self) -> ::windows_core::Result { let this = self; @@ -82,13 +65,10 @@ impl ::windows_core::RuntimeType for Battery { } unsafe impl ::windows_core::Interface for Battery { type Vtable = IBattery_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Battery { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Battery { const NAME: &'static str = "Windows.Phone.Devices.Power.Battery"; } -::windows_core::imp::interface_hierarchy!(Battery, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for Battery {} unsafe impl ::core::marker::Sync for Battery {} 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 e75b87ca95..be7ec6c1b4 100644 --- a/crates/libs/windows/src/Windows/Phone/Management/Deployment/mod.rs +++ b/crates/libs/windows/src/Windows/Phone/Management/Deployment/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnterprise(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnterprise { - type Vtable = IEnterprise_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnterprise { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x96592f8d_856c_4426_a947_b06307718078); -} +::windows_core::imp::com_interface!(IEnterprise, IEnterprise_Vtbl, 0x96592f8d_856c_4426_a947_b06307718078); #[repr(C)] #[doc(hidden)] pub struct IEnterprise_Vtbl { @@ -19,16 +10,7 @@ pub struct IEnterprise_Vtbl { pub EnrollmentValidTo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::DateTime) -> ::windows_core::HRESULT, pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut EnterpriseStatus) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnterpriseEnrollmentManager(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnterpriseEnrollmentManager { - type Vtable = IEnterpriseEnrollmentManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnterpriseEnrollmentManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x20f9f390_2c69_41d8_88e6_e4b3884026cb); -} +::windows_core::imp::com_interface!(IEnterpriseEnrollmentManager, IEnterpriseEnrollmentManager_Vtbl, 0x20f9f390_2c69_41d8_88e6_e4b3884026cb); #[repr(C)] #[doc(hidden)] pub struct IEnterpriseEnrollmentManager_Vtbl { @@ -42,16 +24,7 @@ pub struct IEnterpriseEnrollmentManager_Vtbl { pub RequestEnrollmentAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enrollmenttoken: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RequestUnenrollmentAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enterprise: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnterpriseEnrollmentResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnterpriseEnrollmentResult { - type Vtable = IEnterpriseEnrollmentResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnterpriseEnrollmentResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9ff71ce6_90db_4342_b326_1729aa91301c); -} +::windows_core::imp::com_interface!(IEnterpriseEnrollmentResult, IEnterpriseEnrollmentResult_Vtbl, 0x9ff71ce6_90db_4342_b326_1729aa91301c); #[repr(C)] #[doc(hidden)] pub struct IEnterpriseEnrollmentResult_Vtbl { @@ -59,16 +32,7 @@ pub struct IEnterpriseEnrollmentResult_Vtbl { pub EnrolledEnterprise: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut EnterpriseEnrollmentStatus) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInstallationManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInstallationManagerStatics { - type Vtable = IInstallationManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInstallationManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x929aa738_8d49_42ac_80c9_b4ad793c43f2); -} +::windows_core::imp::com_interface!(IInstallationManagerStatics, IInstallationManagerStatics_Vtbl, 0x929aa738_8d49_42ac_80c9_b4ad793c43f2); #[repr(C)] #[doc(hidden)] pub struct IInstallationManagerStatics_Vtbl { @@ -88,16 +52,7 @@ pub struct IInstallationManagerStatics_Vtbl { #[cfg(not(all(feature = "ApplicationModel", feature = "Foundation_Collections")))] FindPackages: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInstallationManagerStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInstallationManagerStatics2 { - type Vtable = IInstallationManagerStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInstallationManagerStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7c6c2cbd_fa4a_4c8e_ab97_d959452f19e5); -} +::windows_core::imp::com_interface!(IInstallationManagerStatics2, IInstallationManagerStatics2_Vtbl, 0x7c6c2cbd_fa4a_4c8e_ab97_d959452f19e5); #[repr(C)] #[doc(hidden)] pub struct IInstallationManagerStatics2_Vtbl { @@ -115,16 +70,7 @@ pub struct IInstallationManagerStatics2_Vtbl { #[cfg(not(all(feature = "ApplicationModel", feature = "Foundation_Collections")))] FindPackagesByNamePublisher: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPackageInstallResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPackageInstallResult { - type Vtable = IPackageInstallResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPackageInstallResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x33e8eed5_0f7e_4473_967c_7d6e1c0e7de1); -} +::windows_core::imp::com_interface!(IPackageInstallResult, IPackageInstallResult_Vtbl, 0x33e8eed5_0f7e_4473_967c_7d6e1c0e7de1); #[repr(C)] #[doc(hidden)] pub struct IPackageInstallResult_Vtbl { @@ -135,16 +81,7 @@ pub struct IPackageInstallResult_Vtbl { #[cfg(not(feature = "Management_Deployment"))] InstallState: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPackageInstallResult2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPackageInstallResult2 { - type Vtable = IPackageInstallResult2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPackageInstallResult2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7149d909_3ff9_41ed_a717_2bc65ffc61d2); -} +::windows_core::imp::com_interface!(IPackageInstallResult2, IPackageInstallResult2_Vtbl, 0x7149d909_3ff9_41ed_a717_2bc65ffc61d2); #[repr(C)] #[doc(hidden)] pub struct IPackageInstallResult2_Vtbl { @@ -154,6 +91,7 @@ pub struct IPackageInstallResult2_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Enterprise(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Enterprise, ::windows_core::IUnknown, ::windows_core::IInspectable); impl Enterprise { pub fn Id(&self) -> ::windows_core::Result<::windows_core::GUID> { let this = self; @@ -203,14 +141,11 @@ impl ::windows_core::RuntimeType for Enterprise { } unsafe impl ::windows_core::Interface for Enterprise { type Vtable = IEnterprise_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Enterprise { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Enterprise { const NAME: &'static str = "Windows.Phone.Management.Deployment.Enterprise"; } -::windows_core::imp::interface_hierarchy!(Enterprise, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for Enterprise {} unsafe impl ::core::marker::Sync for Enterprise {} pub struct EnterpriseEnrollmentManager; @@ -262,6 +197,7 @@ impl ::windows_core::RuntimeName for EnterpriseEnrollmentManager { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EnterpriseEnrollmentResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EnterpriseEnrollmentResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EnterpriseEnrollmentResult { pub fn EnrolledEnterprise(&self) -> ::windows_core::Result { let this = self; @@ -283,14 +219,11 @@ impl ::windows_core::RuntimeType for EnterpriseEnrollmentResult { } unsafe impl ::windows_core::Interface for EnterpriseEnrollmentResult { type Vtable = IEnterpriseEnrollmentResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EnterpriseEnrollmentResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EnterpriseEnrollmentResult { const NAME: &'static str = "Windows.Phone.Management.Deployment.EnterpriseEnrollmentResult"; } -::windows_core::imp::interface_hierarchy!(EnterpriseEnrollmentResult, ::windows_core::IUnknown, ::windows_core::IInspectable); pub struct InstallationManager; impl InstallationManager { pub fn AddPackageAsync(title: &::windows_core::HSTRING, sourcelocation: P0) -> ::windows_core::Result> @@ -349,11 +282,11 @@ impl InstallationManager { 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::TryIntoParam>, + P1: ::windows_core::IntoParam>, { 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.try_into_param()?.abi(), deploymentoptions, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).RegisterPackageAsync)(::windows_core::Interface::as_raw(this), manifesturi.into_param().abi(), dependencypackageuris.into_param().abi(), deploymentoptions, &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"ApplicationModel\"`, `\"Foundation_Collections\"`"] @@ -381,6 +314,7 @@ impl ::windows_core::RuntimeName for InstallationManager { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PackageInstallResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PackageInstallResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PackageInstallResult { pub fn ProductId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -399,7 +333,7 @@ impl PackageInstallResult { } } pub fn ErrorText(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ErrorText)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -411,14 +345,11 @@ impl ::windows_core::RuntimeType for PackageInstallResult { } unsafe impl ::windows_core::Interface for PackageInstallResult { type Vtable = IPackageInstallResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PackageInstallResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PackageInstallResult { const NAME: &'static str = "Windows.Phone.Management.Deployment.PackageInstallResult"; } -::windows_core::imp::interface_hierarchy!(PackageInstallResult, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::marker::Copy, ::core::clone::Clone, ::core::default::Default)] pub struct EnterpriseEnrollmentStatus(pub i32); 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 320d1ea9ac..76cd56e3c2 100644 --- a/crates/libs/windows/src/Windows/Phone/Media/Devices/mod.rs +++ b/crates/libs/windows/src/Windows/Phone/Media/Devices/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioRoutingManager(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioRoutingManager { - type Vtable = IAudioRoutingManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioRoutingManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x79340d20_71cc_4526_9f29_fc8d2486418b); -} +::windows_core::imp::com_interface!(IAudioRoutingManager, IAudioRoutingManager_Vtbl, 0x79340d20_71cc_4526_9f29_fc8d2486418b); #[repr(C)] #[doc(hidden)] pub struct IAudioRoutingManager_Vtbl { @@ -18,16 +9,7 @@ pub struct IAudioRoutingManager_Vtbl { pub RemoveAudioEndpointChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub AvailableAudioEndpoints: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut AvailableAudioRoutingEndpoints) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioRoutingManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioRoutingManagerStatics { - type Vtable = IAudioRoutingManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioRoutingManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x977fb2a4_5590_4a6f_adde_6a3d0ad58250); -} +::windows_core::imp::com_interface!(IAudioRoutingManagerStatics, IAudioRoutingManagerStatics_Vtbl, 0x977fb2a4_5590_4a6f_adde_6a3d0ad58250); #[repr(C)] #[doc(hidden)] pub struct IAudioRoutingManagerStatics_Vtbl { @@ -37,6 +19,7 @@ pub struct IAudioRoutingManagerStatics_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AudioRoutingManager(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AudioRoutingManager, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AudioRoutingManager { pub fn GetAudioEndpoint(&self) -> ::windows_core::Result { let this = self; @@ -87,14 +70,11 @@ impl ::windows_core::RuntimeType for AudioRoutingManager { } unsafe impl ::windows_core::Interface for AudioRoutingManager { type Vtable = IAudioRoutingManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AudioRoutingManager { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AudioRoutingManager { const NAME: &'static str = "Windows.Phone.Media.Devices.AudioRoutingManager"; } -::windows_core::imp::interface_hierarchy!(AudioRoutingManager, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AudioRoutingManager {} unsafe impl ::core::marker::Sync for AudioRoutingManager {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Phone/Notification/Management/impl.rs b/crates/libs/windows/src/Windows/Phone/Notification/Management/impl.rs index 8c63ceb845..f47f789d6d 100644 --- a/crates/libs/windows/src/Windows/Phone/Notification/Management/impl.rs +++ b/crates/libs/windows/src/Windows/Phone/Notification/Management/impl.rs @@ -84,6 +84,6 @@ impl IAccessoryNotificationTriggerDetails_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 0f30596c83..95e89da8e4 100644 --- a/crates/libs/windows/src/Windows/Phone/Notification/Management/mod.rs +++ b/crates/libs/windows/src/Windows/Phone/Notification/Management/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAccessoryManager(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAccessoryManager { - type Vtable = IAccessoryManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAccessoryManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0d04a12c_883d_4aa7_bca7_fa4bb8bffee6); -} +::windows_core::imp::com_interface!(IAccessoryManager, IAccessoryManager_Vtbl, 0x0d04a12c_883d_4aa7_bca7_fa4bb8bffee6); #[repr(C)] #[doc(hidden)] pub struct IAccessoryManager_Vtbl { @@ -66,16 +57,7 @@ pub struct IAccessoryManager_Vtbl { #[cfg(not(feature = "Storage_Streams"))] GetAppIcon: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAccessoryManager2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAccessoryManager2 { - type Vtable = IAccessoryManager2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAccessoryManager2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbacad44d_d393_46c6_b80c_15fdf44d5386); -} +::windows_core::imp::com_interface!(IAccessoryManager2, IAccessoryManager2_Vtbl, 0xbacad44d_d393_46c6_b80c_15fdf44d5386); #[repr(C)] #[doc(hidden)] pub struct IAccessoryManager2_Vtbl { @@ -108,16 +90,7 @@ pub struct IAccessoryManager2_Vtbl { EnableEmailNotificationFolderFilter: usize, pub UpdateEmailReadStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, messageentryid: *mut ::core::ffi::c_void, isread: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAccessoryManager3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAccessoryManager3 { - type Vtable = IAccessoryManager3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAccessoryManager3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x81f75137_edc7_47e0_b2f7_7e577c833f7d); -} +::windows_core::imp::com_interface!(IAccessoryManager3, IAccessoryManager3_Vtbl, 0x81f75137_edc7_47e0_b2f7_7e577c833f7d); #[repr(C)] #[doc(hidden)] pub struct IAccessoryManager3_Vtbl { @@ -127,9 +100,8 @@ pub struct IAccessoryManager3_Vtbl { pub SnoozeReminderByInstanceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, instanceid: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub DismissReminderByInstanceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, instanceid: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAccessoryNotificationTriggerDetails(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAccessoryNotificationTriggerDetails, IAccessoryNotificationTriggerDetails_Vtbl, 0x6968a7d4_e3ca_49cb_8c87_2c11cdff9646); +::windows_core::imp::interface_hierarchy!(IAccessoryNotificationTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IAccessoryNotificationTriggerDetails { pub fn TimeCreated(&self) -> ::windows_core::Result { let this = self; @@ -171,16 +143,9 @@ impl IAccessoryNotificationTriggerDetails { unsafe { (::windows_core::Interface::vtable(this).SetStartedProcessing)(::windows_core::Interface::as_raw(this), value).ok() } } } -::windows_core::imp::interface_hierarchy!(IAccessoryNotificationTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IAccessoryNotificationTriggerDetails { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IAccessoryNotificationTriggerDetails { - type Vtable = IAccessoryNotificationTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAccessoryNotificationTriggerDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6968a7d4_e3ca_49cb_8c87_2c11cdff9646); -} #[repr(C)] #[doc(hidden)] pub struct IAccessoryNotificationTriggerDetails_Vtbl { @@ -192,16 +157,7 @@ pub struct IAccessoryNotificationTriggerDetails_Vtbl { pub StartedProcessing: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetStartedProcessing: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAlarmNotificationTriggerDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAlarmNotificationTriggerDetails { - type Vtable = IAlarmNotificationTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAlarmNotificationTriggerDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x38f5fa30_c738_4da2_908c_775d83c36abb); -} +::windows_core::imp::com_interface!(IAlarmNotificationTriggerDetails, IAlarmNotificationTriggerDetails_Vtbl, 0x38f5fa30_c738_4da2_908c_775d83c36abb); #[repr(C)] #[doc(hidden)] pub struct IAlarmNotificationTriggerDetails_Vtbl { @@ -211,32 +167,14 @@ pub struct IAlarmNotificationTriggerDetails_Vtbl { pub Timestamp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::DateTime) -> ::windows_core::HRESULT, pub ReminderState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ReminderState) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAlarmNotificationTriggerDetails2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAlarmNotificationTriggerDetails2 { - type Vtable = IAlarmNotificationTriggerDetails2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAlarmNotificationTriggerDetails2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcf16e06a_7155_40fe_a9c2_7bd2127ef853); -} +::windows_core::imp::com_interface!(IAlarmNotificationTriggerDetails2, IAlarmNotificationTriggerDetails2_Vtbl, 0xcf16e06a_7155_40fe_a9c2_7bd2127ef853); #[repr(C)] #[doc(hidden)] pub struct IAlarmNotificationTriggerDetails2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub InstanceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppNotificationInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppNotificationInfo { - type Vtable = IAppNotificationInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppNotificationInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2157bea5_e286_45d3_9bea_f790fc216e0e); -} +::windows_core::imp::com_interface!(IAppNotificationInfo, IAppNotificationInfo_Vtbl, 0x2157bea5_e286_45d3_9bea_f790fc216e0e); #[repr(C)] #[doc(hidden)] pub struct IAppNotificationInfo_Vtbl { @@ -244,16 +182,7 @@ pub struct IAppNotificationInfo_Vtbl { pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBinaryId(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBinaryId { - type Vtable = IBinaryId_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBinaryId { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4f0da531_5595_44b4_9181_ce4efa3fc168); -} +::windows_core::imp::com_interface!(IBinaryId, IBinaryId_Vtbl, 0x4f0da531_5595_44b4_9181_ce4efa3fc168); #[repr(C)] #[doc(hidden)] pub struct IBinaryId_Vtbl { @@ -261,16 +190,7 @@ pub struct IBinaryId_Vtbl { pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u8) -> ::windows_core::HRESULT, pub Length: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICalendarChangedNotificationTriggerDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICalendarChangedNotificationTriggerDetails { - type Vtable = ICalendarChangedNotificationTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICalendarChangedNotificationTriggerDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4b8a3bfc_279d_42ab_9c68_3e87977bf216); -} +::windows_core::imp::com_interface!(ICalendarChangedNotificationTriggerDetails, ICalendarChangedNotificationTriggerDetails_Vtbl, 0x4b8a3bfc_279d_42ab_9c68_3e87977bf216); #[repr(C)] #[doc(hidden)] pub struct ICalendarChangedNotificationTriggerDetails_Vtbl { @@ -278,16 +198,7 @@ pub struct ICalendarChangedNotificationTriggerDetails_Vtbl { pub EventType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut CalendarChangedEvent) -> ::windows_core::HRESULT, pub ItemId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICortanaTileNotificationTriggerDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICortanaTileNotificationTriggerDetails { - type Vtable = ICortanaTileNotificationTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICortanaTileNotificationTriggerDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdc0f01d5_1489_46bb_b73b_7f90067ecf27); -} +::windows_core::imp::com_interface!(ICortanaTileNotificationTriggerDetails, ICortanaTileNotificationTriggerDetails_Vtbl, 0xdc0f01d5_1489_46bb_b73b_7f90067ecf27); #[repr(C)] #[doc(hidden)] pub struct ICortanaTileNotificationTriggerDetails_Vtbl { @@ -303,16 +214,7 @@ pub struct ICortanaTileNotificationTriggerDetails_Vtbl { pub NonWrappedSmallContent4: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Source: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailAccountInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailAccountInfo { - type Vtable = IEmailAccountInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailAccountInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdfbc02ab_bda0_4568_927e_b2ede35818a1); -} +::windows_core::imp::com_interface!(IEmailAccountInfo, IEmailAccountInfo_Vtbl, 0xdfbc02ab_bda0_4568_927e_b2ede35818a1); #[repr(C)] #[doc(hidden)] pub struct IEmailAccountInfo_Vtbl { @@ -320,16 +222,7 @@ pub struct IEmailAccountInfo_Vtbl { pub DisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub IsNotificationEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailFolderInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailFolderInfo { - type Vtable = IEmailFolderInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailFolderInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc207150e_e237_46d6_90e6_4f529eeac1e2); -} +::windows_core::imp::com_interface!(IEmailFolderInfo, IEmailFolderInfo_Vtbl, 0xc207150e_e237_46d6_90e6_4f529eeac1e2); #[repr(C)] #[doc(hidden)] pub struct IEmailFolderInfo_Vtbl { @@ -337,16 +230,7 @@ pub struct IEmailFolderInfo_Vtbl { pub DisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub IsNotificationEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailNotificationTriggerDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailNotificationTriggerDetails { - type Vtable = IEmailNotificationTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailNotificationTriggerDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf3b82612_46cf_4e70_8e0d_7b2e04ab492b); -} +::windows_core::imp::com_interface!(IEmailNotificationTriggerDetails, IEmailNotificationTriggerDetails_Vtbl, 0xf3b82612_46cf_4e70_8e0d_7b2e04ab492b); #[repr(C)] #[doc(hidden)] pub struct IEmailNotificationTriggerDetails_Vtbl { @@ -361,32 +245,14 @@ pub struct IEmailNotificationTriggerDetails_Vtbl { EmailMessage: usize, pub Timestamp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::DateTime) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailNotificationTriggerDetails2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailNotificationTriggerDetails2 { - type Vtable = IEmailNotificationTriggerDetails2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailNotificationTriggerDetails2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x168067e3_c56f_4ec7_bed1_f734e08de5b2); -} +::windows_core::imp::com_interface!(IEmailNotificationTriggerDetails2, IEmailNotificationTriggerDetails2_Vtbl, 0x168067e3_c56f_4ec7_bed1_f734e08de5b2); #[repr(C)] #[doc(hidden)] pub struct IEmailNotificationTriggerDetails2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub MessageEntryId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailReadNotificationTriggerDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmailReadNotificationTriggerDetails { - type Vtable = IEmailReadNotificationTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmailReadNotificationTriggerDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf5b7a087_06f3_4e3e_8c42_325e67010413); -} +::windows_core::imp::com_interface!(IEmailReadNotificationTriggerDetails, IEmailReadNotificationTriggerDetails_Vtbl, 0xf5b7a087_06f3_4e3e_8c42_325e67010413); #[repr(C)] #[doc(hidden)] pub struct IEmailReadNotificationTriggerDetails_Vtbl { @@ -396,16 +262,7 @@ pub struct IEmailReadNotificationTriggerDetails_Vtbl { pub MessageEntryId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub IsRead: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaControlsTriggerDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaControlsTriggerDetails { - type Vtable = IMediaControlsTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaControlsTriggerDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfab4648b_ae45_4548_91ca_4ab0548e33b5); -} +::windows_core::imp::com_interface!(IMediaControlsTriggerDetails, IMediaControlsTriggerDetails_Vtbl, 0xfab4648b_ae45_4548_91ca_4ab0548e33b5); #[repr(C)] #[doc(hidden)] pub struct IMediaControlsTriggerDetails_Vtbl { @@ -413,16 +270,7 @@ pub struct IMediaControlsTriggerDetails_Vtbl { pub PlaybackStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut PlaybackStatus) -> ::windows_core::HRESULT, pub MediaMetadata: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaMetadata(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaMetadata { - type Vtable = IMediaMetadata_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaMetadata { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9b50ddf7_bb6c_4330_b3cd_0704a54cdb80); -} +::windows_core::imp::com_interface!(IMediaMetadata, IMediaMetadata_Vtbl, 0x9b50ddf7_bb6c_4330_b3cd_0704a54cdb80); #[repr(C)] #[doc(hidden)] pub struct IMediaMetadata_Vtbl { @@ -438,16 +286,7 @@ pub struct IMediaMetadata_Vtbl { #[cfg(not(feature = "Storage_Streams"))] Thumbnail: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhoneCallDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhoneCallDetails { - type Vtable = IPhoneCallDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhoneCallDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c1b6f53_f071_483e_bf33_ebd44b724447); -} +::windows_core::imp::com_interface!(IPhoneCallDetails, IPhoneCallDetails_Vtbl, 0x0c1b6f53_f071_483e_bf33_ebd44b724447); #[repr(C)] #[doc(hidden)] pub struct IPhoneCallDetails_Vtbl { @@ -468,16 +307,7 @@ pub struct IPhoneCallDetails_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] PresetTextResponses: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhoneLineDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhoneLineDetails { - type Vtable = IPhoneLineDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhoneLineDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x47eb32dc_33ed_49b9_995c_a296bac82b77); -} +::windows_core::imp::com_interface!(IPhoneLineDetails, IPhoneLineDetails_Vtbl, 0x47eb32dc_33ed_49b9_995c_a296bac82b77); #[repr(C)] #[doc(hidden)] pub struct IPhoneLineDetails_Vtbl { @@ -489,32 +319,14 @@ pub struct IPhoneLineDetails_Vtbl { pub VoicemailCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, pub RegistrationState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut PhoneLineRegistrationState) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhoneLineDetails2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhoneLineDetails2 { - type Vtable = IPhoneLineDetails2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhoneLineDetails2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb30cd77d_0147_498c_8241_bf0cabc60a25); -} +::windows_core::imp::com_interface!(IPhoneLineDetails2, IPhoneLineDetails2_Vtbl, 0xb30cd77d_0147_498c_8241_bf0cabc60a25); #[repr(C)] #[doc(hidden)] pub struct IPhoneLineDetails2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub MissedCallCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhoneNotificationTriggerDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhoneNotificationTriggerDetails { - type Vtable = IPhoneNotificationTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhoneNotificationTriggerDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xccc2fdf7_09c3_4118_91bc_ca6323a8d383); -} +::windows_core::imp::com_interface!(IPhoneNotificationTriggerDetails, IPhoneNotificationTriggerDetails_Vtbl, 0xccc2fdf7_09c3_4118_91bc_ca6323a8d383); #[repr(C)] #[doc(hidden)] pub struct IPhoneNotificationTriggerDetails_Vtbl { @@ -523,16 +335,7 @@ pub struct IPhoneNotificationTriggerDetails_Vtbl { pub CallDetails: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub PhoneLineChangedId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IReminderNotificationTriggerDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IReminderNotificationTriggerDetails { - type Vtable = IReminderNotificationTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IReminderNotificationTriggerDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5bddaa5d_9f61_4bf0_9feb_10502bc0b0c2); -} +::windows_core::imp::com_interface!(IReminderNotificationTriggerDetails, IReminderNotificationTriggerDetails_Vtbl, 0x5bddaa5d_9f61_4bf0_9feb_10502bc0b0c2); #[repr(C)] #[doc(hidden)] pub struct IReminderNotificationTriggerDetails_Vtbl { @@ -548,32 +351,14 @@ pub struct IReminderNotificationTriggerDetails_Vtbl { Appointment: usize, pub ReminderState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ReminderState) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IReminderNotificationTriggerDetails2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IReminderNotificationTriggerDetails2 { - type Vtable = IReminderNotificationTriggerDetails2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IReminderNotificationTriggerDetails2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe715f9c0_504d_4c0f_a6b3_bcb9722c6cdd); -} +::windows_core::imp::com_interface!(IReminderNotificationTriggerDetails2, IReminderNotificationTriggerDetails2_Vtbl, 0xe715f9c0_504d_4c0f_a6b3_bcb9722c6cdd); #[repr(C)] #[doc(hidden)] pub struct IReminderNotificationTriggerDetails2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub InstanceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeedDialEntry(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpeedDialEntry { - type Vtable = ISpeedDialEntry_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpeedDialEntry { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9240b6db_872c_46dc_b62a_be4541b166f8); -} +::windows_core::imp::com_interface!(ISpeedDialEntry, ISpeedDialEntry_Vtbl, 0x9240b6db_872c_46dc_b62a_be4541b166f8); #[repr(C)] #[doc(hidden)] pub struct ISpeedDialEntry_Vtbl { @@ -582,16 +367,7 @@ pub struct ISpeedDialEntry_Vtbl { pub NumberType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub ContactName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITextResponse(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITextResponse { - type Vtable = ITextResponse_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITextResponse { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe9cb74c3_2457_4cdb_8110_72f5e8e883e8); -} +::windows_core::imp::com_interface!(ITextResponse, ITextResponse_Vtbl, 0xe9cb74c3_2457_4cdb_8110_72f5e8e883e8); #[repr(C)] #[doc(hidden)] pub struct ITextResponse_Vtbl { @@ -599,16 +375,7 @@ pub struct ITextResponse_Vtbl { pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, pub Content: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IToastNotificationTriggerDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IToastNotificationTriggerDetails { - type Vtable = IToastNotificationTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IToastNotificationTriggerDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc9314895_4e6d_4e9d_afec_9e921b875ae8); -} +::windows_core::imp::com_interface!(IToastNotificationTriggerDetails, IToastNotificationTriggerDetails_Vtbl, 0xc9314895_4e6d_4e9d_afec_9e921b875ae8); #[repr(C)] #[doc(hidden)] pub struct IToastNotificationTriggerDetails_Vtbl { @@ -619,32 +386,14 @@ pub struct IToastNotificationTriggerDetails_Vtbl { pub Text4: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SuppressPopup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IToastNotificationTriggerDetails2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IToastNotificationTriggerDetails2 { - type Vtable = IToastNotificationTriggerDetails2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IToastNotificationTriggerDetails2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3e0479dd_cac4_4f60_afa3_b925d9d83c93); -} +::windows_core::imp::com_interface!(IToastNotificationTriggerDetails2, IToastNotificationTriggerDetails2_Vtbl, 0x3e0479dd_cac4_4f60_afa3_b925d9d83c93); #[repr(C)] #[doc(hidden)] pub struct IToastNotificationTriggerDetails2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub InstanceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVolumeInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVolumeInfo { - type Vtable = IVolumeInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVolumeInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x944dd118_7704_4481_b92e_d3ed3ece6322); -} +::windows_core::imp::com_interface!(IVolumeInfo, IVolumeInfo_Vtbl, 0x944dd118_7704_4481_b92e_d3ed3ece6322); #[repr(C)] #[doc(hidden)] pub struct IVolumeInfo_Vtbl { @@ -671,9 +420,9 @@ impl AccessoryManager { } pub fn ProcessTriggerDetails(pdetails: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - Self::IAccessoryManager(|this| unsafe { (::windows_core::Interface::vtable(this).ProcessTriggerDetails)(::windows_core::Interface::as_raw(this), pdetails.try_into_param()?.abi()).ok() }) + Self::IAccessoryManager(|this| unsafe { (::windows_core::Interface::vtable(this).ProcessTriggerDetails)(::windows_core::Interface::as_raw(this), pdetails.into_param().abi()).ok() }) } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -913,9 +662,9 @@ impl AccessoryManager { #[cfg(feature = "Foundation_Collections")] pub fn EnableEmailNotificationFolderFilter(emailaccount: &::windows_core::HSTRING, folders: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - Self::IAccessoryManager2(|this| unsafe { (::windows_core::Interface::vtable(this).EnableEmailNotificationFolderFilter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(emailaccount), folders.try_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.into_param().abi()).ok() }) } pub fn UpdateEmailReadStatus(messageentryid: P0, isread: bool) -> ::windows_core::Result<()> where @@ -957,44 +706,46 @@ impl ::windows_core::RuntimeName for AccessoryManager { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AlarmNotificationTriggerDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AlarmNotificationTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(AlarmNotificationTriggerDetails, IAccessoryNotificationTriggerDetails); impl AlarmNotificationTriggerDetails { pub fn TimeCreated(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TimeCreated)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn AppDisplayName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AppDisplayName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn AppId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AppId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn AccessoryNotificationType(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AccessoryNotificationType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn StartedProcessing(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).StartedProcessing)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetStartedProcessing(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetStartedProcessing)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn AlarmId(&self) -> ::windows_core::Result<::windows_core::GUID> { @@ -1026,7 +777,7 @@ impl AlarmNotificationTriggerDetails { } } pub fn InstanceId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).InstanceId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1038,18 +789,15 @@ impl ::windows_core::RuntimeType for AlarmNotificationTriggerDetails { } unsafe impl ::windows_core::Interface for AlarmNotificationTriggerDetails { type Vtable = IAlarmNotificationTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AlarmNotificationTriggerDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AlarmNotificationTriggerDetails { const NAME: &'static str = "Windows.Phone.Notification.Management.AlarmNotificationTriggerDetails"; } -::windows_core::imp::interface_hierarchy!(AlarmNotificationTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for AlarmNotificationTriggerDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppNotificationInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppNotificationInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppNotificationInfo { pub fn Id(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1071,17 +819,15 @@ impl ::windows_core::RuntimeType for AppNotificationInfo { } unsafe impl ::windows_core::Interface for AppNotificationInfo { type Vtable = IAppNotificationInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppNotificationInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppNotificationInfo { const NAME: &'static str = "Windows.Phone.Notification.Management.AppNotificationInfo"; } -::windows_core::imp::interface_hierarchy!(AppNotificationInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BinaryId(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BinaryId, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BinaryId { pub fn Id(&self) -> ::windows_core::Result { let this = self; @@ -1103,55 +849,54 @@ impl ::windows_core::RuntimeType for BinaryId { } unsafe impl ::windows_core::Interface for BinaryId { type Vtable = IBinaryId_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BinaryId { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BinaryId { const NAME: &'static str = "Windows.Phone.Notification.Management.BinaryId"; } -::windows_core::imp::interface_hierarchy!(BinaryId, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CalendarChangedNotificationTriggerDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CalendarChangedNotificationTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(CalendarChangedNotificationTriggerDetails, IAccessoryNotificationTriggerDetails); impl CalendarChangedNotificationTriggerDetails { pub fn TimeCreated(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TimeCreated)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn AppDisplayName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AppDisplayName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn AppId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AppId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn AccessoryNotificationType(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AccessoryNotificationType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn StartedProcessing(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).StartedProcessing)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetStartedProcessing(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetStartedProcessing)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn EventType(&self) -> ::windows_core::Result { @@ -1174,56 +919,54 @@ impl ::windows_core::RuntimeType for CalendarChangedNotificationTriggerDetails { } unsafe impl ::windows_core::Interface for CalendarChangedNotificationTriggerDetails { type Vtable = ICalendarChangedNotificationTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CalendarChangedNotificationTriggerDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CalendarChangedNotificationTriggerDetails { const NAME: &'static str = "Windows.Phone.Notification.Management.CalendarChangedNotificationTriggerDetails"; } -::windows_core::imp::interface_hierarchy!(CalendarChangedNotificationTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CalendarChangedNotificationTriggerDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CortanaTileNotificationTriggerDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CortanaTileNotificationTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(CortanaTileNotificationTriggerDetails, IAccessoryNotificationTriggerDetails); impl CortanaTileNotificationTriggerDetails { pub fn TimeCreated(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TimeCreated)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn AppDisplayName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AppDisplayName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn AppId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AppId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn AccessoryNotificationType(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AccessoryNotificationType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn StartedProcessing(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).StartedProcessing)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetStartedProcessing(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetStartedProcessing)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn TileId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { @@ -1302,18 +1045,15 @@ impl ::windows_core::RuntimeType for CortanaTileNotificationTriggerDetails { } unsafe impl ::windows_core::Interface for CortanaTileNotificationTriggerDetails { type Vtable = ICortanaTileNotificationTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CortanaTileNotificationTriggerDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CortanaTileNotificationTriggerDetails { const NAME: &'static str = "Windows.Phone.Notification.Management.CortanaTileNotificationTriggerDetails"; } -::windows_core::imp::interface_hierarchy!(CortanaTileNotificationTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CortanaTileNotificationTriggerDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EmailAccountInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EmailAccountInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EmailAccountInfo { pub fn DisplayName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1335,17 +1075,15 @@ impl ::windows_core::RuntimeType for EmailAccountInfo { } unsafe impl ::windows_core::Interface for EmailAccountInfo { type Vtable = IEmailAccountInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EmailAccountInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EmailAccountInfo { const NAME: &'static str = "Windows.Phone.Notification.Management.EmailAccountInfo"; } -::windows_core::imp::interface_hierarchy!(EmailAccountInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EmailFolderInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EmailFolderInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EmailFolderInfo { pub fn DisplayName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1367,55 +1105,54 @@ impl ::windows_core::RuntimeType for EmailFolderInfo { } unsafe impl ::windows_core::Interface for EmailFolderInfo { type Vtable = IEmailFolderInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EmailFolderInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EmailFolderInfo { const NAME: &'static str = "Windows.Phone.Notification.Management.EmailFolderInfo"; } -::windows_core::imp::interface_hierarchy!(EmailFolderInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EmailNotificationTriggerDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EmailNotificationTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(EmailNotificationTriggerDetails, IAccessoryNotificationTriggerDetails); impl EmailNotificationTriggerDetails { pub fn TimeCreated(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TimeCreated)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn AppDisplayName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AppDisplayName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn AppId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AppId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn AccessoryNotificationType(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AccessoryNotificationType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn StartedProcessing(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).StartedProcessing)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetStartedProcessing(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetStartedProcessing)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn AccountName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { @@ -1463,7 +1200,7 @@ impl EmailNotificationTriggerDetails { } } pub fn MessageEntryId(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MessageEntryId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1475,56 +1212,54 @@ impl ::windows_core::RuntimeType for EmailNotificationTriggerDetails { } unsafe impl ::windows_core::Interface for EmailNotificationTriggerDetails { type Vtable = IEmailNotificationTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EmailNotificationTriggerDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EmailNotificationTriggerDetails { const NAME: &'static str = "Windows.Phone.Notification.Management.EmailNotificationTriggerDetails"; } -::windows_core::imp::interface_hierarchy!(EmailNotificationTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for EmailNotificationTriggerDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EmailReadNotificationTriggerDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EmailReadNotificationTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(EmailReadNotificationTriggerDetails, IAccessoryNotificationTriggerDetails); impl EmailReadNotificationTriggerDetails { pub fn TimeCreated(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TimeCreated)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn AppDisplayName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AppDisplayName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn AppId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AppId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn AccessoryNotificationType(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AccessoryNotificationType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn StartedProcessing(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).StartedProcessing)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetStartedProcessing(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetStartedProcessing)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn AccountName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { @@ -1561,56 +1296,54 @@ impl ::windows_core::RuntimeType for EmailReadNotificationTriggerDetails { } unsafe impl ::windows_core::Interface for EmailReadNotificationTriggerDetails { type Vtable = IEmailReadNotificationTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EmailReadNotificationTriggerDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EmailReadNotificationTriggerDetails { const NAME: &'static str = "Windows.Phone.Notification.Management.EmailReadNotificationTriggerDetails"; } -::windows_core::imp::interface_hierarchy!(EmailReadNotificationTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for EmailReadNotificationTriggerDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaControlsTriggerDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaControlsTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(MediaControlsTriggerDetails, IAccessoryNotificationTriggerDetails); impl MediaControlsTriggerDetails { pub fn TimeCreated(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TimeCreated)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn AppDisplayName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AppDisplayName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn AppId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AppId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn AccessoryNotificationType(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AccessoryNotificationType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn StartedProcessing(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).StartedProcessing)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetStartedProcessing(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetStartedProcessing)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn PlaybackStatus(&self) -> ::windows_core::Result { @@ -1633,18 +1366,15 @@ impl ::windows_core::RuntimeType for MediaControlsTriggerDetails { } unsafe impl ::windows_core::Interface for MediaControlsTriggerDetails { type Vtable = IMediaControlsTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaControlsTriggerDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaControlsTriggerDetails { const NAME: &'static str = "Windows.Phone.Notification.Management.MediaControlsTriggerDetails"; } -::windows_core::imp::interface_hierarchy!(MediaControlsTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for MediaControlsTriggerDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MediaMetadata(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MediaMetadata, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MediaMetadata { pub fn Title(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1703,17 +1433,15 @@ impl ::windows_core::RuntimeType for MediaMetadata { } unsafe impl ::windows_core::Interface for MediaMetadata { type Vtable = IMediaMetadata_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MediaMetadata { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MediaMetadata { const NAME: &'static str = "Windows.Phone.Notification.Management.MediaMetadata"; } -::windows_core::imp::interface_hierarchy!(MediaMetadata, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PhoneCallDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PhoneCallDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PhoneCallDetails { pub fn PhoneLine(&self) -> ::windows_core::Result<::windows_core::GUID> { let this = self; @@ -1807,17 +1535,15 @@ impl ::windows_core::RuntimeType for PhoneCallDetails { } unsafe impl ::windows_core::Interface for PhoneCallDetails { type Vtable = IPhoneCallDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PhoneCallDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PhoneCallDetails { const NAME: &'static str = "Windows.Phone.Notification.Management.PhoneCallDetails"; } -::windows_core::imp::interface_hierarchy!(PhoneCallDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PhoneLineDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PhoneLineDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PhoneLineDetails { pub fn LineId(&self) -> ::windows_core::Result<::windows_core::GUID> { let this = self; @@ -1862,7 +1588,7 @@ impl PhoneLineDetails { } } pub fn MissedCallCount(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MissedCallCount)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1874,55 +1600,54 @@ impl ::windows_core::RuntimeType for PhoneLineDetails { } unsafe impl ::windows_core::Interface for PhoneLineDetails { type Vtable = IPhoneLineDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PhoneLineDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PhoneLineDetails { const NAME: &'static str = "Windows.Phone.Notification.Management.PhoneLineDetails"; } -::windows_core::imp::interface_hierarchy!(PhoneLineDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PhoneNotificationTriggerDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PhoneNotificationTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(PhoneNotificationTriggerDetails, IAccessoryNotificationTriggerDetails); impl PhoneNotificationTriggerDetails { pub fn TimeCreated(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TimeCreated)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn AppDisplayName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AppDisplayName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn AppId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AppId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn AccessoryNotificationType(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AccessoryNotificationType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn StartedProcessing(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).StartedProcessing)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetStartedProcessing(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetStartedProcessing)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn PhoneNotificationType(&self) -> ::windows_core::Result { @@ -1952,56 +1677,54 @@ impl ::windows_core::RuntimeType for PhoneNotificationTriggerDetails { } unsafe impl ::windows_core::Interface for PhoneNotificationTriggerDetails { type Vtable = IPhoneNotificationTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PhoneNotificationTriggerDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PhoneNotificationTriggerDetails { const NAME: &'static str = "Windows.Phone.Notification.Management.PhoneNotificationTriggerDetails"; } -::windows_core::imp::interface_hierarchy!(PhoneNotificationTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for PhoneNotificationTriggerDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ReminderNotificationTriggerDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ReminderNotificationTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ReminderNotificationTriggerDetails, IAccessoryNotificationTriggerDetails); impl ReminderNotificationTriggerDetails { pub fn TimeCreated(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TimeCreated)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn AppDisplayName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AppDisplayName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn AppId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AppId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn AccessoryNotificationType(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AccessoryNotificationType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn StartedProcessing(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).StartedProcessing)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetStartedProcessing(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetStartedProcessing)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn ReminderId(&self) -> ::windows_core::Result<::windows_core::GUID> { @@ -2056,7 +1779,7 @@ impl ReminderNotificationTriggerDetails { } } pub fn InstanceId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).InstanceId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2068,18 +1791,15 @@ impl ::windows_core::RuntimeType for ReminderNotificationTriggerDetails { } unsafe impl ::windows_core::Interface for ReminderNotificationTriggerDetails { type Vtable = IReminderNotificationTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ReminderNotificationTriggerDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ReminderNotificationTriggerDetails { const NAME: &'static str = "Windows.Phone.Notification.Management.ReminderNotificationTriggerDetails"; } -::windows_core::imp::interface_hierarchy!(ReminderNotificationTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ReminderNotificationTriggerDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpeedDialEntry(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpeedDialEntry, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SpeedDialEntry { pub fn PhoneNumber(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -2108,17 +1828,15 @@ impl ::windows_core::RuntimeType for SpeedDialEntry { } unsafe impl ::windows_core::Interface for SpeedDialEntry { type Vtable = ISpeedDialEntry_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpeedDialEntry { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpeedDialEntry { const NAME: &'static str = "Windows.Phone.Notification.Management.SpeedDialEntry"; } -::windows_core::imp::interface_hierarchy!(SpeedDialEntry, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct TextResponse(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(TextResponse, ::windows_core::IUnknown, ::windows_core::IInspectable); impl TextResponse { pub fn Id(&self) -> ::windows_core::Result { let this = self; @@ -2140,55 +1858,54 @@ impl ::windows_core::RuntimeType for TextResponse { } unsafe impl ::windows_core::Interface for TextResponse { type Vtable = ITextResponse_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TextResponse { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for TextResponse { const NAME: &'static str = "Windows.Phone.Notification.Management.TextResponse"; } -::windows_core::imp::interface_hierarchy!(TextResponse, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ToastNotificationTriggerDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ToastNotificationTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ToastNotificationTriggerDetails, IAccessoryNotificationTriggerDetails); impl ToastNotificationTriggerDetails { pub fn TimeCreated(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TimeCreated)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn AppDisplayName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AppDisplayName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn AppId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AppId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn AccessoryNotificationType(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AccessoryNotificationType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn StartedProcessing(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).StartedProcessing)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetStartedProcessing(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetStartedProcessing)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Text1(&self) -> ::windows_core::Result<::windows_core::HSTRING> { @@ -2227,7 +1944,7 @@ impl ToastNotificationTriggerDetails { } } pub fn InstanceId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).InstanceId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2239,18 +1956,15 @@ impl ::windows_core::RuntimeType for ToastNotificationTriggerDetails { } unsafe impl ::windows_core::Interface for ToastNotificationTriggerDetails { type Vtable = IToastNotificationTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ToastNotificationTriggerDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ToastNotificationTriggerDetails { const NAME: &'static str = "Windows.Phone.Notification.Management.ToastNotificationTriggerDetails"; } -::windows_core::imp::interface_hierarchy!(ToastNotificationTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ToastNotificationTriggerDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VolumeInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VolumeInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl VolumeInfo { pub fn SystemVolume(&self) -> ::windows_core::Result { let this = self; @@ -2293,14 +2007,11 @@ impl ::windows_core::RuntimeType for VolumeInfo { } unsafe impl ::windows_core::Interface for VolumeInfo { type Vtable = IVolumeInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VolumeInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VolumeInfo { const NAME: &'static str = "Windows.Phone.Notification.Management.VolumeInfo"; } -::windows_core::imp::interface_hierarchy!(VolumeInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::marker::Copy, ::core::clone::Clone, ::core::default::Default)] pub struct AccessoryNotificationType(pub u32); 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 2c30ecf175..4f04dd237b 100644 --- a/crates/libs/windows/src/Windows/Phone/PersonalInformation/Provisioning/mod.rs +++ b/crates/libs/windows/src/Windows/Phone/PersonalInformation/Provisioning/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactPartnerProvisioningManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactPartnerProvisioningManagerStatics { - type Vtable = IContactPartnerProvisioningManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactPartnerProvisioningManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc0d79a21_01af_4fd3_98cd_b3d656de15f4); -} +::windows_core::imp::com_interface!(IContactPartnerProvisioningManagerStatics, IContactPartnerProvisioningManagerStatics_Vtbl, 0xc0d79a21_01af_4fd3_98cd_b3d656de15f4); #[repr(C)] #[doc(hidden)] pub struct IContactPartnerProvisioningManagerStatics_Vtbl { @@ -18,32 +9,14 @@ pub struct IContactPartnerProvisioningManagerStatics_Vtbl { #[cfg(not(feature = "Storage_Streams"))] ImportVcardToSystemAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactPartnerProvisioningManagerStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactPartnerProvisioningManagerStatics2 { - type Vtable = IContactPartnerProvisioningManagerStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactPartnerProvisioningManagerStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc26155f7_55ed_475d_9334_c5d484c30f1a); -} +::windows_core::imp::com_interface!(IContactPartnerProvisioningManagerStatics2, IContactPartnerProvisioningManagerStatics2_Vtbl, 0xc26155f7_55ed_475d_9334_c5d484c30f1a); #[repr(C)] #[doc(hidden)] pub struct IContactPartnerProvisioningManagerStatics2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub AssociateSocialNetworkAccountAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, store: *mut ::core::ffi::c_void, networkname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, networkaccountid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMessagePartnerProvisioningManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMessagePartnerProvisioningManagerStatics { - type Vtable = IMessagePartnerProvisioningManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMessagePartnerProvisioningManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8a1b0850_73c5_457c_bc59_ed7d615c05a4); -} +::windows_core::imp::com_interface!(IMessagePartnerProvisioningManagerStatics, IMessagePartnerProvisioningManagerStatics_Vtbl, 0x8a1b0850_73c5_457c_bc59_ed7d615c05a4); #[repr(C)] #[doc(hidden)] pub struct IMessagePartnerProvisioningManagerStatics_Vtbl { @@ -72,11 +45,11 @@ impl ContactPartnerProvisioningManager { #[cfg(feature = "Storage_Streams")] pub fn ImportVcardToSystemAsync(stream: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IContactPartnerProvisioningManagerStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).ImportVcardToSystemAsync)(::windows_core::Interface::as_raw(this), stream.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ImportVcardToSystemAsync)(::windows_core::Interface::as_raw(this), stream.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn AssociateSocialNetworkAccountAsync(store: P0, networkname: &::windows_core::HSTRING, networkaccountid: &::windows_core::HSTRING) -> ::windows_core::Result @@ -108,23 +81,23 @@ 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::TryIntoParam>, + P0: ::windows_core::IntoParam>, { 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.try_into_param()?.abi(), deliverytime, &mut result__).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.into_param().abi(), deliverytime, &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`"] #[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::TryIntoParam>, - P1: ::windows_core::TryIntoParam>>, + P0: ::windows_core::IntoParam>, + P1: ::windows_core::IntoParam>>, { 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.try_into_param()?.abi(), deliverytime, attachments.try_into_param()?.abi(), &mut result__).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.into_param().abi(), deliverytime, attachments.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] diff --git a/crates/libs/windows/src/Windows/Phone/PersonalInformation/impl.rs b/crates/libs/windows/src/Windows/Phone/PersonalInformation/impl.rs index 68cdf19f25..ff7a4f264a 100644 --- a/crates/libs/windows/src/Windows/Phone/PersonalInformation/impl.rs +++ b/crates/libs/windows/src/Windows/Phone/PersonalInformation/impl.rs @@ -203,7 +203,7 @@ impl IContactInformation_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IContactInformation2_Impl: Sized { @@ -238,6 +238,6 @@ impl IContactInformation2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/Phone/PersonalInformation/mod.rs b/crates/libs/windows/src/Windows/Phone/PersonalInformation/mod.rs index a03e9dec02..12a922f42a 100644 --- a/crates/libs/windows/src/Windows/Phone/PersonalInformation/mod.rs +++ b/crates/libs/windows/src/Windows/Phone/PersonalInformation/mod.rs @@ -1,16 +1,7 @@ #[cfg(feature = "Phone_PersonalInformation_Provisioning")] #[doc = "Required features: `\"Phone_PersonalInformation_Provisioning\"`"] pub mod Provisioning; -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactAddress(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactAddress { - type Vtable = IContactAddress_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactAddress { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5f24f927_94a9_44a2_a155_2d0b37d1dccd); -} +::windows_core::imp::com_interface!(IContactAddress, IContactAddress_Vtbl, 0x5f24f927_94a9_44a2_a155_2d0b37d1dccd); #[repr(C)] #[doc(hidden)] pub struct IContactAddress_Vtbl { @@ -26,16 +17,7 @@ pub struct IContactAddress_Vtbl { pub StreetAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetStreetAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactChangeRecord(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactChangeRecord { - type Vtable = IContactChangeRecord_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactChangeRecord { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb9d3f78f_513b_4742_be00_cc5c5c236b04); -} +::windows_core::imp::com_interface!(IContactChangeRecord, IContactChangeRecord_Vtbl, 0xb9d3f78f_513b_4742_be00_cc5c5c236b04); #[repr(C)] #[doc(hidden)] pub struct IContactChangeRecord_Vtbl { @@ -45,9 +27,8 @@ pub struct IContactChangeRecord_Vtbl { pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub RemoteId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactInformation(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IContactInformation, IContactInformation_Vtbl, 0xe2b51ffc_e792_4ab7_b15b_f2e078664dea); +::windows_core::imp::interface_hierarchy!(IContactInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IContactInformation { pub fn DisplayName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -117,12 +98,12 @@ impl IContactInformation { #[cfg(feature = "Storage_Streams")] pub fn SetDisplayPictureAsync(&self, stream: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).SetDisplayPictureAsync)(::windows_core::Interface::as_raw(this), stream.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SetDisplayPictureAsync)(::windows_core::Interface::as_raw(this), stream.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Storage_Streams\"`"] @@ -162,16 +143,9 @@ impl IContactInformation { } } } -::windows_core::imp::interface_hierarchy!(IContactInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IContactInformation { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IContactInformation { - type Vtable = IContactInformation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactInformation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe2b51ffc_e792_4ab7_b15b_f2e078664dea); -} #[repr(C)] #[doc(hidden)] pub struct IContactInformation_Vtbl { @@ -211,9 +185,8 @@ pub struct IContactInformation_Vtbl { #[cfg(not(feature = "Storage_Streams"))] ToVcardWithOptionsAsync: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactInformation2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IContactInformation2, IContactInformation2_Vtbl, 0x3198b20c_621e_4668_ac38_d667b87d06d5); +::windows_core::imp::interface_hierarchy!(IContactInformation2, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IContactInformation2 { pub fn DisplayPictureDate(&self) -> ::windows_core::Result { let this = self; @@ -227,16 +200,9 @@ impl IContactInformation2 { unsafe { (::windows_core::Interface::vtable(this).SetDisplayPictureDate)(::windows_core::Interface::as_raw(this), returnvalue).ok() } } } -::windows_core::imp::interface_hierarchy!(IContactInformation2, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IContactInformation2 { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IContactInformation2 { - type Vtable = IContactInformation2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactInformation2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3198b20c_621e_4668_ac38_d667b87d06d5); -} #[repr(C)] #[doc(hidden)] pub struct IContactInformation2_Vtbl { @@ -244,16 +210,7 @@ pub struct IContactInformation2_Vtbl { pub DisplayPictureDate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::DateTime) -> ::windows_core::HRESULT, pub SetDisplayPictureDate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, returnvalue: super::super::Foundation::DateTime) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactInformationStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactInformationStatics { - type Vtable = IContactInformationStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactInformationStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0f67bb29_03d0_4be6_b2a5_fb13859f1202); -} +::windows_core::imp::com_interface!(IContactInformationStatics, IContactInformationStatics_Vtbl, 0x0f67bb29_03d0_4be6_b2a5_fb13859f1202); #[repr(C)] #[doc(hidden)] pub struct IContactInformationStatics_Vtbl { @@ -263,16 +220,7 @@ pub struct IContactInformationStatics_Vtbl { #[cfg(not(feature = "Storage_Streams"))] ParseVcardAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactQueryOptions(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactQueryOptions { - type Vtable = IContactQueryOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactQueryOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x580cab76_3f31_46c1_9a50_424a53dacae3); -} +::windows_core::imp::com_interface!(IContactQueryOptions, IContactQueryOptions_Vtbl, 0x580cab76_3f31_46c1_9a50_424a53dacae3); #[repr(C)] #[doc(hidden)] pub struct IContactQueryOptions_Vtbl { @@ -284,16 +232,7 @@ pub struct IContactQueryOptions_Vtbl { pub OrderBy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ContactQueryResultOrdering) -> ::windows_core::HRESULT, pub SetOrderBy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ContactQueryResultOrdering) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactQueryResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactQueryResult { - type Vtable = IContactQueryResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactQueryResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc03db722_ecdb_4700_857e_3e786426b04b); -} +::windows_core::imp::com_interface!(IContactQueryResult, IContactQueryResult_Vtbl, 0xc03db722_ecdb_4700_857e_3e786426b04b); #[repr(C)] #[doc(hidden)] pub struct IContactQueryResult_Vtbl { @@ -309,16 +248,7 @@ pub struct IContactQueryResult_Vtbl { GetContactsAsyncInRange: usize, pub GetCurrentQueryOptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactStore(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactStore { - type Vtable = IContactStore_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactStore { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb2cd6fef_2bfd_4fad_8552_4e698097e8eb); -} +::windows_core::imp::com_interface!(IContactStore, IContactStore_Vtbl, 0xb2cd6fef_2bfd_4fad_8552_4e698097e8eb); #[repr(C)] #[doc(hidden)] pub struct IContactStore_Vtbl { @@ -343,32 +273,14 @@ pub struct IContactStore_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] SaveExtendedPropertiesAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactStore2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactStore2 { - type Vtable = IContactStore2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactStore2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x65f1b64f_d653_43a7_b236_b30c0f4d7269); -} +::windows_core::imp::com_interface!(IContactStore2, IContactStore2_Vtbl, 0x65f1b64f_d653_43a7_b236_b30c0f4d7269); #[repr(C)] #[doc(hidden)] pub struct IContactStore2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateMeContactAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactStoreStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactStoreStatics { - type Vtable = IContactStoreStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactStoreStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa804fe22_4beb_44cc_a572_67a5b92e8567); -} +::windows_core::imp::com_interface!(IContactStoreStatics, IContactStoreStatics_Vtbl, 0xa804fe22_4beb_44cc_a572_67a5b92e8567); #[repr(C)] #[doc(hidden)] pub struct IContactStoreStatics_Vtbl { @@ -376,16 +288,7 @@ pub struct IContactStoreStatics_Vtbl { pub CreateOrOpenAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateOrOpenWithOptionsAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, access: ContactStoreSystemAccessMode, sharing: ContactStoreApplicationAccessMode, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKnownContactPropertiesStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKnownContactPropertiesStatics { - type Vtable = IKnownContactPropertiesStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKnownContactPropertiesStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd5812b01_2ced_4ee6_b1d6_094bf88ef0b6); -} +::windows_core::imp::com_interface!(IKnownContactPropertiesStatics, IKnownContactPropertiesStatics_Vtbl, 0xd5812b01_2ced_4ee6_b1d6_094bf88ef0b6); #[repr(C)] #[doc(hidden)] pub struct IKnownContactPropertiesStatics_Vtbl { @@ -426,16 +329,7 @@ pub struct IKnownContactPropertiesStatics_Vtbl { pub AlternateMobileTelephone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub AlternateWorkTelephone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStoredContact(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStoredContact { - type Vtable = IStoredContact_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStoredContact { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb070b7b1_263d_4e71_abe7_591d2466570e); -} +::windows_core::imp::com_interface!(IStoredContact, IStoredContact_Vtbl, 0xb070b7b1_263d_4e71_abe7_591d2466570e); #[repr(C)] #[doc(hidden)] pub struct IStoredContact_Vtbl { @@ -451,16 +345,7 @@ pub struct IStoredContact_Vtbl { pub SaveAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ReplaceExistingContactAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStoredContactFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStoredContactFactory { - type Vtable = IStoredContactFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStoredContactFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x49ede921_c225_4fd9_89c5_cecc2c8a4b79); -} +::windows_core::imp::com_interface!(IStoredContactFactory, IStoredContactFactory_Vtbl, 0x49ede921_c225_4fd9_89c5_cecc2c8a4b79); #[repr(C)] #[doc(hidden)] pub struct IStoredContactFactory_Vtbl { @@ -471,6 +356,7 @@ pub struct IStoredContactFactory_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContactAddress(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContactAddress, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ContactAddress { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -540,19 +426,17 @@ impl ::windows_core::RuntimeType for ContactAddress { } unsafe impl ::windows_core::Interface for ContactAddress { type Vtable = IContactAddress_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContactAddress { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContactAddress { const NAME: &'static str = "Windows.Phone.PersonalInformation.ContactAddress"; } -::windows_core::imp::interface_hierarchy!(ContactAddress, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ContactAddress {} unsafe impl ::core::marker::Sync for ContactAddress {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContactChangeRecord(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContactChangeRecord, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ContactChangeRecord { pub fn ChangeType(&self) -> ::windows_core::Result { let this = self; @@ -588,19 +472,18 @@ impl ::windows_core::RuntimeType for ContactChangeRecord { } unsafe impl ::windows_core::Interface for ContactChangeRecord { type Vtable = IContactChangeRecord_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContactChangeRecord { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContactChangeRecord { const NAME: &'static str = "Windows.Phone.PersonalInformation.ContactChangeRecord"; } -::windows_core::imp::interface_hierarchy!(ContactChangeRecord, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ContactChangeRecord {} unsafe impl ::core::marker::Sync for ContactChangeRecord {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContactInformation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContactInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ContactInformation, IContactInformation); impl ContactInformation { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -677,12 +560,12 @@ impl ContactInformation { #[cfg(feature = "Storage_Streams")] pub fn SetDisplayPictureAsync(&self, stream: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).SetDisplayPictureAsync)(::windows_core::Interface::as_raw(this), stream.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SetDisplayPictureAsync)(::windows_core::Interface::as_raw(this), stream.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Storage_Streams\"`"] @@ -725,11 +608,11 @@ impl ContactInformation { #[cfg(feature = "Storage_Streams")] pub fn ParseVcardAsync(vcard: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IContactInformationStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).ParseVcardAsync)(::windows_core::Interface::as_raw(this), vcard.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ParseVcardAsync)(::windows_core::Interface::as_raw(this), vcard.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -743,20 +626,17 @@ impl ::windows_core::RuntimeType for ContactInformation { } unsafe impl ::windows_core::Interface for ContactInformation { type Vtable = IContactInformation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContactInformation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContactInformation { const NAME: &'static str = "Windows.Phone.PersonalInformation.ContactInformation"; } -::windows_core::imp::interface_hierarchy!(ContactInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ContactInformation {} unsafe impl ::core::marker::Send for ContactInformation {} unsafe impl ::core::marker::Sync for ContactInformation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContactQueryOptions(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContactQueryOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ContactQueryOptions { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -791,19 +671,17 @@ impl ::windows_core::RuntimeType for ContactQueryOptions { } unsafe impl ::windows_core::Interface for ContactQueryOptions { type Vtable = IContactQueryOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContactQueryOptions { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContactQueryOptions { const NAME: &'static str = "Windows.Phone.PersonalInformation.ContactQueryOptions"; } -::windows_core::imp::interface_hierarchy!(ContactQueryOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ContactQueryOptions {} unsafe impl ::core::marker::Sync for ContactQueryOptions {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContactQueryResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContactQueryResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ContactQueryResult { pub fn GetContactCountAsync(&self) -> ::windows_core::Result> { let this = self; @@ -843,19 +721,17 @@ impl ::windows_core::RuntimeType for ContactQueryResult { } unsafe impl ::windows_core::Interface for ContactQueryResult { type Vtable = IContactQueryResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContactQueryResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContactQueryResult { const NAME: &'static str = "Windows.Phone.PersonalInformation.ContactQueryResult"; } -::windows_core::imp::interface_hierarchy!(ContactQueryResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ContactQueryResult {} unsafe impl ::core::marker::Sync for ContactQueryResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContactStore(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContactStore, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ContactStore { pub fn FindContactByRemoteIdAsync(&self, id: &::windows_core::HSTRING) -> ::windows_core::Result> { let this = self; @@ -931,16 +807,16 @@ impl ContactStore { #[cfg(feature = "Foundation_Collections")] pub fn SaveExtendedPropertiesAsync(&self, data: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).SaveExtendedPropertiesAsync)(::windows_core::Interface::as_raw(this), data.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SaveExtendedPropertiesAsync)(::windows_core::Interface::as_raw(this), data.into_param().abi(), &mut result__).from_abi(result__) } } pub fn CreateMeContactAsync(&self, id: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateMeContactAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(id), &mut result__).from_abi(result__) @@ -969,14 +845,11 @@ impl ::windows_core::RuntimeType for ContactStore { } unsafe impl ::windows_core::Interface for ContactStore { type Vtable = IContactStore_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContactStore { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContactStore { const NAME: &'static str = "Windows.Phone.PersonalInformation.ContactStore"; } -::windows_core::imp::interface_hierarchy!(ContactStore, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ContactStore {} unsafe impl ::core::marker::Sync for ContactStore {} pub struct KnownContactProperties; @@ -1203,66 +1076,68 @@ impl ::windows_core::RuntimeName for KnownContactProperties { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StoredContact(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StoredContact, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(StoredContact, IContactInformation, IContactInformation2); impl StoredContact { pub fn DisplayName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DisplayName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDisplayName(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDisplayName)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn FamilyName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FamilyName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetFamilyName(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetFamilyName)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn GivenName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GivenName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetGivenName(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetGivenName)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn HonorificPrefix(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).HonorificPrefix)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetHonorificPrefix(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetHonorificPrefix)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn HonorificSuffix(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).HonorificSuffix)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetHonorificSuffix(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetHonorificSuffix)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn GetDisplayPictureAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetDisplayPictureAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1272,18 +1147,18 @@ impl StoredContact { #[cfg(feature = "Storage_Streams")] pub fn SetDisplayPictureAsync(&self, stream: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SetDisplayPictureAsync)(::windows_core::Interface::as_raw(this), stream.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn DisplayPicture(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DisplayPicture)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1292,7 +1167,7 @@ impl StoredContact { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetPropertiesAsync(&self) -> ::windows_core::Result>> { - let this = &::windows_core::ComInterface::cast::(self)?; + 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), &mut result__).from_abi(result__) @@ -1301,7 +1176,7 @@ impl StoredContact { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn ToVcardAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ToVcardAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1310,21 +1185,21 @@ impl StoredContact { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn ToVcardWithOptionsAsync(&self, format: VCardFormat) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ToVcardWithOptionsAsync)(::windows_core::Interface::as_raw(this), format, &mut result__).from_abi(result__) } } pub fn DisplayPictureDate(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DisplayPictureDate)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDisplayPictureDate(&self, returnvalue: super::super::Foundation::DateTime) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDisplayPictureDate)(::windows_core::Interface::as_raw(this), returnvalue).ok() } } pub fn Store(&self) -> ::windows_core::Result { @@ -1405,16 +1280,11 @@ impl ::windows_core::RuntimeType for StoredContact { } unsafe impl ::windows_core::Interface for StoredContact { type Vtable = IStoredContact_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StoredContact { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StoredContact { const NAME: &'static str = "Windows.Phone.PersonalInformation.StoredContact"; } -::windows_core::imp::interface_hierarchy!(StoredContact, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for StoredContact {} -impl ::windows_core::CanTryInto for StoredContact {} unsafe impl ::core::marker::Send for StoredContact {} unsafe impl ::core::marker::Sync for StoredContact {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Phone/StartScreen/impl.rs b/crates/libs/windows/src/Windows/Phone/StartScreen/impl.rs index bc2c9dd381..d93ff13215 100644 --- a/crates/libs/windows/src/Windows/Phone/StartScreen/impl.rs +++ b/crates/libs/windows/src/Windows/Phone/StartScreen/impl.rs @@ -28,6 +28,6 @@ impl IToastNotificationManagerStatics3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/Phone/StartScreen/mod.rs b/crates/libs/windows/src/Windows/Phone/StartScreen/mod.rs index 14e3b140dc..df35f3c4d0 100644 --- a/crates/libs/windows/src/Windows/Phone/StartScreen/mod.rs +++ b/crates/libs/windows/src/Windows/Phone/StartScreen/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDualSimTile(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDualSimTile { - type Vtable = IDualSimTile_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDualSimTile { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x143ab213_d05f_4041_a18c_3e3fcb75b41e); -} +::windows_core::imp::com_interface!(IDualSimTile, IDualSimTile_Vtbl, 0x143ab213_d05f_4041_a18c_3e3fcb75b41e); #[repr(C)] #[doc(hidden)] pub struct IDualSimTile_Vtbl { @@ -19,16 +10,7 @@ pub struct IDualSimTile_Vtbl { pub UpdateAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub DeleteAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDualSimTileStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDualSimTileStatics { - type Vtable = IDualSimTileStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDualSimTileStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x50567c9e_c58f_4dc9_b6e8_fa6777eeeb37); -} +::windows_core::imp::com_interface!(IDualSimTileStatics, IDualSimTileStatics_Vtbl, 0x50567c9e_c58f_4dc9_b6e8_fa6777eeeb37); #[repr(C)] #[doc(hidden)] pub struct IDualSimTileStatics_Vtbl { @@ -60,9 +42,8 @@ pub struct IDualSimTileStatics_Vtbl { #[cfg(not(feature = "UI_Notifications"))] CreateToastNotifierForSim2: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IToastNotificationManagerStatics3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IToastNotificationManagerStatics3, IToastNotificationManagerStatics3_Vtbl, 0x2717f54b_50df_4455_8e6e_41e0fc8e13ce); +::windows_core::imp::interface_hierarchy!(IToastNotificationManagerStatics3, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IToastNotificationManagerStatics3 { #[doc = "Required features: `\"UI_Notifications\"`"] #[cfg(feature = "UI_Notifications")] @@ -74,16 +55,9 @@ impl IToastNotificationManagerStatics3 { } } } -::windows_core::imp::interface_hierarchy!(IToastNotificationManagerStatics3, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IToastNotificationManagerStatics3 { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IToastNotificationManagerStatics3 { - type Vtable = IToastNotificationManagerStatics3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IToastNotificationManagerStatics3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2717f54b_50df_4455_8e6e_41e0fc8e13ce); -} #[repr(C)] #[doc(hidden)] pub struct IToastNotificationManagerStatics3_Vtbl { @@ -96,6 +70,7 @@ pub struct IToastNotificationManagerStatics3_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DualSimTile(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DualSimTile, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DualSimTile { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -214,13 +189,10 @@ impl ::windows_core::RuntimeType for DualSimTile { } unsafe impl ::windows_core::Interface for DualSimTile { type Vtable = IDualSimTile_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DualSimTile { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DualSimTile { const NAME: &'static str = "Windows.Phone.StartScreen.DualSimTile"; } -::windows_core::imp::interface_hierarchy!(DualSimTile, ::windows_core::IUnknown, ::windows_core::IInspectable); #[cfg(feature = "implement")] ::core::include!("impl.rs"); 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 af91abca93..f9d756e3bc 100644 --- a/crates/libs/windows/src/Windows/Phone/System/Power/mod.rs +++ b/crates/libs/windows/src/Windows/Phone/System/Power/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPowerManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPowerManagerStatics { - type Vtable = IPowerManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPowerManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x25de8fd0_1c5b_11e1_bddb_0800200c9a66); -} +::windows_core::imp::com_interface!(IPowerManagerStatics, IPowerManagerStatics_Vtbl, 0x25de8fd0_1c5b_11e1_bddb_0800200c9a66); #[repr(C)] #[doc(hidden)] pub struct IPowerManagerStatics_Vtbl { @@ -16,16 +7,7 @@ pub struct IPowerManagerStatics_Vtbl { pub PowerSavingModeChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, changehandler: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemovePowerSavingModeChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPowerManagerStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPowerManagerStatics2 { - type Vtable = IPowerManagerStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPowerManagerStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x596236cf_1918_4551_a466_c51aae373bf8); -} +::windows_core::imp::com_interface!(IPowerManagerStatics2, IPowerManagerStatics2_Vtbl, 0x596236cf_1918_4551_a466_c51aae373bf8); #[repr(C)] #[doc(hidden)] pub struct IPowerManagerStatics2_Vtbl { diff --git a/crates/libs/windows/src/Windows/Phone/System/Profile/mod.rs b/crates/libs/windows/src/Windows/Phone/System/Profile/mod.rs index 207cd14dc0..40eeb1369c 100644 --- a/crates/libs/windows/src/Windows/Phone/System/Profile/mod.rs +++ b/crates/libs/windows/src/Windows/Phone/System/Profile/mod.rs @@ -1,16 +1,10 @@ -#[doc(hidden)] -#[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRetailModeStatics(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for IRetailModeStatics { - type Vtable = IRetailModeStatics_Vtbl; -} #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for IRetailModeStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd7ded029_fdda_43e7_93fb_e53ab6e89ec3); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + IRetailModeStatics, + IRetailModeStatics_Vtbl, + 0xd7ded029_fdda_43e7_93fb_e53ab6e89ec3 +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] 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 5a49219953..75519609cd 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 @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGameService(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGameService { - type Vtable = IGameService_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGameService { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2e2d5098_48a9_4efc_afd6_8e6da09003fb); -} +::windows_core::imp::com_interface!(IGameService, IGameService_Vtbl, 0x2e2d5098_48a9_4efc_afd6_8e6da09003fb); #[repr(C)] #[doc(hidden)] pub struct IGameService_Vtbl { @@ -24,16 +15,7 @@ pub struct IGameService_Vtbl { #[cfg(not(feature = "Storage_Streams"))] PostResult: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGameService2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGameService2 { - type Vtable = IGameService2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGameService2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd2364ef6_ea17_4be5_8d8a_c860885e051f); -} +::windows_core::imp::com_interface!(IGameService2, IGameService2_Vtbl, 0xd2364ef6_ea17_4be5_8d8a_c860885e051f); #[repr(C)] #[doc(hidden)] pub struct IGameService2_Vtbl { @@ -41,16 +23,7 @@ pub struct IGameService2_Vtbl { pub NotifyPartnerTokenExpired: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, audienceuri: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetAuthenticationStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGameServicePropertyCollection(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGameServicePropertyCollection { - type Vtable = IGameServicePropertyCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGameServicePropertyCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x07e57fc8_debb_4609_9cc8_529d16bc2bd9); -} +::windows_core::imp::com_interface!(IGameServicePropertyCollection, IGameServicePropertyCollection_Vtbl, 0x07e57fc8_debb_4609_9cc8_529d16bc2bd9); #[repr(C)] #[doc(hidden)] pub struct IGameServicePropertyCollection_Vtbl { @@ -102,9 +75,9 @@ 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::TryIntoParam, + P0: ::windows_core::IntoParam, { - Self::IGameService(|this| unsafe { (::windows_core::Interface::vtable(this).PostResult)(::windows_core::Interface::as_raw(this), gamevariant, scorekind, scorevalue, gameoutcome, buffer.try_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.into_param().abi()).ok() }) } pub fn NotifyPartnerTokenExpired(audienceuri: P0) -> ::windows_core::Result<()> where @@ -135,6 +108,7 @@ impl ::windows_core::RuntimeName for GameService { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GameServicePropertyCollection(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GameServicePropertyCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GameServicePropertyCollection { pub fn GetPropertyAsync(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result> { let this = self; @@ -149,14 +123,11 @@ impl ::windows_core::RuntimeType for GameServicePropertyCollection { } unsafe impl ::windows_core::Interface for GameServicePropertyCollection { type Vtable = IGameServicePropertyCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GameServicePropertyCollection { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GameServicePropertyCollection { const NAME: &'static str = "Windows.Phone.System.UserProfile.GameServices.Core.GameServicePropertyCollection"; } -::windows_core::imp::interface_hierarchy!(GameServicePropertyCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GameServicePropertyCollection {} unsafe impl ::core::marker::Sync for GameServicePropertyCollection {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Phone/System/mod.rs b/crates/libs/windows/src/Windows/Phone/System/mod.rs index 881476fe9c..cfa80cf701 100644 --- a/crates/libs/windows/src/Windows/Phone/System/mod.rs +++ b/crates/libs/windows/src/Windows/Phone/System/mod.rs @@ -7,32 +7,14 @@ pub mod Profile; #[cfg(feature = "Phone_System_UserProfile")] #[doc = "Required features: `\"Phone_System_UserProfile\"`"] pub mod UserProfile; -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISystemProtectionStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISystemProtectionStatics { - type Vtable = ISystemProtectionStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISystemProtectionStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x49c36560_97e1_4d99_8bfb_befeaa6ace6d); -} +::windows_core::imp::com_interface!(ISystemProtectionStatics, ISystemProtectionStatics_Vtbl, 0x49c36560_97e1_4d99_8bfb_befeaa6ace6d); #[repr(C)] #[doc(hidden)] pub struct ISystemProtectionStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ScreenLocked: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISystemProtectionUnlockStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISystemProtectionUnlockStatics { - type Vtable = ISystemProtectionUnlockStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISystemProtectionUnlockStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0692fa3f_8f11_4c4b_aa0d_87d7af7b1779); -} +::windows_core::imp::com_interface!(ISystemProtectionUnlockStatics, ISystemProtectionUnlockStatics_Vtbl, 0x0692fa3f_8f11_4c4b_aa0d_87d7af7b1779); #[repr(C)] #[doc(hidden)] pub struct ISystemProtectionUnlockStatics_Vtbl { 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 67dcb7980a..853f79d73f 100644 --- a/crates/libs/windows/src/Windows/Phone/UI/Input/mod.rs +++ b/crates/libs/windows/src/Windows/Phone/UI/Input/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackPressedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBackPressedEventArgs { - type Vtable = IBackPressedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackPressedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf6f555ff_64ec_42a2_b93b_2fbc0c36a121); -} +::windows_core::imp::com_interface!(IBackPressedEventArgs, IBackPressedEventArgs_Vtbl, 0xf6f555ff_64ec_42a2_b93b_2fbc0c36a121); #[repr(C)] #[doc(hidden)] pub struct IBackPressedEventArgs_Vtbl { @@ -15,31 +6,13 @@ pub struct IBackPressedEventArgs_Vtbl { pub Handled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetHandled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICameraEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICameraEventArgs { - type Vtable = ICameraEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICameraEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb4063bda_201f_473d_bc69_e9e4ac57c9d0); -} +::windows_core::imp::com_interface!(ICameraEventArgs, ICameraEventArgs_Vtbl, 0xb4063bda_201f_473d_bc69_e9e4ac57c9d0); #[repr(C)] #[doc(hidden)] pub struct ICameraEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHardwareButtonsStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHardwareButtonsStatics { - type Vtable = IHardwareButtonsStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHardwareButtonsStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x594b8780_da66_4fd8_a776_7506bd0cbfa7); -} +::windows_core::imp::com_interface!(IHardwareButtonsStatics, IHardwareButtonsStatics_Vtbl, 0x594b8780_da66_4fd8_a776_7506bd0cbfa7); #[repr(C)] #[doc(hidden)] pub struct IHardwareButtonsStatics_Vtbl { @@ -47,16 +20,7 @@ pub struct IHardwareButtonsStatics_Vtbl { pub BackPressed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveBackPressed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHardwareButtonsStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHardwareButtonsStatics2 { - type Vtable = IHardwareButtonsStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHardwareButtonsStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x39c6c274_993f_40dd_854c_831a8934b92e); -} +::windows_core::imp::com_interface!(IHardwareButtonsStatics2, IHardwareButtonsStatics2_Vtbl, 0x39c6c274_993f_40dd_854c_831a8934b92e); #[repr(C)] #[doc(hidden)] pub struct IHardwareButtonsStatics2_Vtbl { @@ -71,6 +35,7 @@ pub struct IHardwareButtonsStatics2_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BackPressedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BackPressedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BackPressedEventArgs { pub fn Handled(&self) -> ::windows_core::Result { let this = self; @@ -89,33 +54,28 @@ impl ::windows_core::RuntimeType for BackPressedEventArgs { } unsafe impl ::windows_core::Interface for BackPressedEventArgs { type Vtable = IBackPressedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BackPressedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BackPressedEventArgs { const NAME: &'static str = "Windows.Phone.UI.Input.BackPressedEventArgs"; } -::windows_core::imp::interface_hierarchy!(BackPressedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BackPressedEventArgs {} unsafe impl ::core::marker::Sync for BackPressedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CameraEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CameraEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CameraEventArgs {} impl ::windows_core::RuntimeType for CameraEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_class::(); } unsafe impl ::windows_core::Interface for CameraEventArgs { type Vtable = ICameraEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CameraEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CameraEventArgs { const NAME: &'static str = "Windows.Phone.UI.Input.CameraEventArgs"; } -::windows_core::imp::interface_hierarchy!(CameraEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CameraEventArgs {} unsafe impl ::core::marker::Sync for CameraEventArgs {} pub struct HardwareButtons; 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 c6851fd044..61c6386259 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 @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMicrosoftAccountMultiFactorAuthenticationManager(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMicrosoftAccountMultiFactorAuthenticationManager { - type Vtable = IMicrosoftAccountMultiFactorAuthenticationManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMicrosoftAccountMultiFactorAuthenticationManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0fd340a5_f574_4320_a08e_0a19a82322aa); -} +::windows_core::imp::com_interface!(IMicrosoftAccountMultiFactorAuthenticationManager, IMicrosoftAccountMultiFactorAuthenticationManager_Vtbl, 0x0fd340a5_f574_4320_a08e_0a19a82322aa); #[repr(C)] #[doc(hidden)] pub struct IMicrosoftAccountMultiFactorAuthenticationManager_Vtbl { @@ -29,32 +20,14 @@ pub struct IMicrosoftAccountMultiFactorAuthenticationManager_Vtbl { pub DenySessionUsingAuthSessionInfoAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, authenticationsessioninfo: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub DenySessionAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, useraccountid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, sessionid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, sessionauthenticationtype: MicrosoftAccountMultiFactorAuthenticationType, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMicrosoftAccountMultiFactorAuthenticatorStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMicrosoftAccountMultiFactorAuthenticatorStatics { - type Vtable = IMicrosoftAccountMultiFactorAuthenticatorStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMicrosoftAccountMultiFactorAuthenticatorStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd964c2e6_f446_4c71_8b79_6ea4024aa9b8); -} +::windows_core::imp::com_interface!(IMicrosoftAccountMultiFactorAuthenticatorStatics, IMicrosoftAccountMultiFactorAuthenticatorStatics_Vtbl, 0xd964c2e6_f446_4c71_8b79_6ea4024aa9b8); #[repr(C)] #[doc(hidden)] pub struct IMicrosoftAccountMultiFactorAuthenticatorStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Current: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMicrosoftAccountMultiFactorGetSessionsResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMicrosoftAccountMultiFactorGetSessionsResult { - type Vtable = IMicrosoftAccountMultiFactorGetSessionsResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMicrosoftAccountMultiFactorGetSessionsResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4e23a9a0_e9fa_497a_95de_6d5747bf974c); -} +::windows_core::imp::com_interface!(IMicrosoftAccountMultiFactorGetSessionsResult, IMicrosoftAccountMultiFactorGetSessionsResult_Vtbl, 0x4e23a9a0_e9fa_497a_95de_6d5747bf974c); #[repr(C)] #[doc(hidden)] pub struct IMicrosoftAccountMultiFactorGetSessionsResult_Vtbl { @@ -65,16 +38,7 @@ pub struct IMicrosoftAccountMultiFactorGetSessionsResult_Vtbl { Sessions: usize, pub ServiceResponse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut MicrosoftAccountMultiFactorServiceResponse) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMicrosoftAccountMultiFactorOneTimeCodedInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMicrosoftAccountMultiFactorOneTimeCodedInfo { - type Vtable = IMicrosoftAccountMultiFactorOneTimeCodedInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMicrosoftAccountMultiFactorOneTimeCodedInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x82ba264b_d87c_4668_a976_40cfae547d08); -} +::windows_core::imp::com_interface!(IMicrosoftAccountMultiFactorOneTimeCodedInfo, IMicrosoftAccountMultiFactorOneTimeCodedInfo_Vtbl, 0x82ba264b_d87c_4668_a976_40cfae547d08); #[repr(C)] #[doc(hidden)] pub struct IMicrosoftAccountMultiFactorOneTimeCodedInfo_Vtbl { @@ -84,16 +48,7 @@ pub struct IMicrosoftAccountMultiFactorOneTimeCodedInfo_Vtbl { pub TimeToLive: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::TimeSpan) -> ::windows_core::HRESULT, pub ServiceResponse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut MicrosoftAccountMultiFactorServiceResponse) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMicrosoftAccountMultiFactorSessionInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMicrosoftAccountMultiFactorSessionInfo { - type Vtable = IMicrosoftAccountMultiFactorSessionInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMicrosoftAccountMultiFactorSessionInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5f7eabb4_a278_4635_b765_b494eb260af4); -} +::windows_core::imp::com_interface!(IMicrosoftAccountMultiFactorSessionInfo, IMicrosoftAccountMultiFactorSessionInfo_Vtbl, 0x5f7eabb4_a278_4635_b765_b494eb260af4); #[repr(C)] #[doc(hidden)] pub struct IMicrosoftAccountMultiFactorSessionInfo_Vtbl { @@ -106,16 +61,7 @@ pub struct IMicrosoftAccountMultiFactorSessionInfo_Vtbl { pub RequestTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::DateTime) -> ::windows_core::HRESULT, pub ExpirationTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::DateTime) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo { - type Vtable = IMicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaa7ec5fb_da3f_4088_a20d_5618afadb2e5); -} +::windows_core::imp::com_interface!(IMicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo, IMicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo_Vtbl, 0xaa7ec5fb_da3f_4088_a20d_5618afadb2e5); #[repr(C)] #[doc(hidden)] pub struct IMicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo_Vtbl { @@ -133,6 +79,7 @@ pub struct IMicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MicrosoftAccountMultiFactorAuthenticationManager(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MicrosoftAccountMultiFactorAuthenticationManager, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MicrosoftAccountMultiFactorAuthenticationManager { pub fn GetOneTimePassCodeAsync(&self, useraccountid: &::windows_core::HSTRING, codelength: u32) -> ::windows_core::Result> { let this = self; @@ -166,24 +113,24 @@ impl MicrosoftAccountMultiFactorAuthenticationManager { #[cfg(feature = "Foundation_Collections")] pub fn GetSessionsAsync(&self, useraccountidlist: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).GetSessionsAsync)(::windows_core::Interface::as_raw(this), useraccountidlist.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).GetSessionsAsync)(::windows_core::Interface::as_raw(this), useraccountidlist.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetSessionsAndUnregisteredAccountsAsync(&self, useraccountidlist: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).GetSessionsAndUnregisteredAccountsAsync)(::windows_core::Interface::as_raw(this), useraccountidlist.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).GetSessionsAndUnregisteredAccountsAsync)(::windows_core::Interface::as_raw(this), useraccountidlist.into_param().abi(), &mut result__).from_abi(result__) } } pub fn ApproveSessionUsingAuthSessionInfoAsync(&self, sessionauthentictionstatus: MicrosoftAccountMultiFactorSessionAuthenticationStatus, authenticationsessioninfo: P0) -> ::windows_core::Result> @@ -237,19 +184,17 @@ impl ::windows_core::RuntimeType for MicrosoftAccountMultiFactorAuthenticationMa } unsafe impl ::windows_core::Interface for MicrosoftAccountMultiFactorAuthenticationManager { type Vtable = IMicrosoftAccountMultiFactorAuthenticationManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MicrosoftAccountMultiFactorAuthenticationManager { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MicrosoftAccountMultiFactorAuthenticationManager { const NAME: &'static str = "Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorAuthenticationManager"; } -::windows_core::imp::interface_hierarchy!(MicrosoftAccountMultiFactorAuthenticationManager, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MicrosoftAccountMultiFactorAuthenticationManager {} unsafe impl ::core::marker::Sync for MicrosoftAccountMultiFactorAuthenticationManager {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MicrosoftAccountMultiFactorGetSessionsResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MicrosoftAccountMultiFactorGetSessionsResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MicrosoftAccountMultiFactorGetSessionsResult { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -273,19 +218,17 @@ impl ::windows_core::RuntimeType for MicrosoftAccountMultiFactorGetSessionsResul } unsafe impl ::windows_core::Interface for MicrosoftAccountMultiFactorGetSessionsResult { type Vtable = IMicrosoftAccountMultiFactorGetSessionsResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MicrosoftAccountMultiFactorGetSessionsResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MicrosoftAccountMultiFactorGetSessionsResult { const NAME: &'static str = "Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorGetSessionsResult"; } -::windows_core::imp::interface_hierarchy!(MicrosoftAccountMultiFactorGetSessionsResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MicrosoftAccountMultiFactorGetSessionsResult {} unsafe impl ::core::marker::Sync for MicrosoftAccountMultiFactorGetSessionsResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MicrosoftAccountMultiFactorOneTimeCodedInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MicrosoftAccountMultiFactorOneTimeCodedInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MicrosoftAccountMultiFactorOneTimeCodedInfo { pub fn Code(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -321,19 +264,17 @@ impl ::windows_core::RuntimeType for MicrosoftAccountMultiFactorOneTimeCodedInfo } unsafe impl ::windows_core::Interface for MicrosoftAccountMultiFactorOneTimeCodedInfo { type Vtable = IMicrosoftAccountMultiFactorOneTimeCodedInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MicrosoftAccountMultiFactorOneTimeCodedInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MicrosoftAccountMultiFactorOneTimeCodedInfo { const NAME: &'static str = "Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorOneTimeCodedInfo"; } -::windows_core::imp::interface_hierarchy!(MicrosoftAccountMultiFactorOneTimeCodedInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MicrosoftAccountMultiFactorOneTimeCodedInfo {} unsafe impl ::core::marker::Sync for MicrosoftAccountMultiFactorOneTimeCodedInfo {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MicrosoftAccountMultiFactorSessionInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MicrosoftAccountMultiFactorSessionInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MicrosoftAccountMultiFactorSessionInfo { pub fn UserAccountId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -390,19 +331,17 @@ impl ::windows_core::RuntimeType for MicrosoftAccountMultiFactorSessionInfo { } unsafe impl ::windows_core::Interface for MicrosoftAccountMultiFactorSessionInfo { type Vtable = IMicrosoftAccountMultiFactorSessionInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MicrosoftAccountMultiFactorSessionInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MicrosoftAccountMultiFactorSessionInfo { const NAME: &'static str = "Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorSessionInfo"; } -::windows_core::imp::interface_hierarchy!(MicrosoftAccountMultiFactorSessionInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MicrosoftAccountMultiFactorSessionInfo {} unsafe impl ::core::marker::Sync for MicrosoftAccountMultiFactorSessionInfo {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -435,14 +374,11 @@ impl ::windows_core::RuntimeType for MicrosoftAccountMultiFactorUnregisteredAcco } unsafe impl ::windows_core::Interface for MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo { type Vtable = IMicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo { const NAME: &'static str = "Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo"; } -::windows_core::imp::interface_hierarchy!(MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo {} unsafe impl ::core::marker::Sync for MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Security/Authentication/Identity/mod.rs b/crates/libs/windows/src/Windows/Security/Authentication/Identity/mod.rs index 0f43bcd9e4..a49e289cd5 100644 --- a/crates/libs/windows/src/Windows/Security/Authentication/Identity/mod.rs +++ b/crates/libs/windows/src/Windows/Security/Authentication/Identity/mod.rs @@ -1,16 +1,7 @@ #[cfg(feature = "Security_Authentication_Identity_Core")] #[doc = "Required features: `\"Security_Authentication_Identity_Core\"`"] pub mod Core; -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnterpriseKeyCredentialRegistrationInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnterpriseKeyCredentialRegistrationInfo { - type Vtable = IEnterpriseKeyCredentialRegistrationInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnterpriseKeyCredentialRegistrationInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x38321acc_672b_4823_b603_6b3c753daf97); -} +::windows_core::imp::com_interface!(IEnterpriseKeyCredentialRegistrationInfo, IEnterpriseKeyCredentialRegistrationInfo_Vtbl, 0x38321acc_672b_4823_b603_6b3c753daf97); #[repr(C)] #[doc(hidden)] pub struct IEnterpriseKeyCredentialRegistrationInfo_Vtbl { @@ -21,16 +12,7 @@ pub struct IEnterpriseKeyCredentialRegistrationInfo_Vtbl { pub KeyId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub KeyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnterpriseKeyCredentialRegistrationManager(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnterpriseKeyCredentialRegistrationManager { - type Vtable = IEnterpriseKeyCredentialRegistrationManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnterpriseKeyCredentialRegistrationManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x83f3be3f_a25f_4cba_bb8e_bdc32d03c297); -} +::windows_core::imp::com_interface!(IEnterpriseKeyCredentialRegistrationManager, IEnterpriseKeyCredentialRegistrationManager_Vtbl, 0x83f3be3f_a25f_4cba_bb8e_bdc32d03c297); #[repr(C)] #[doc(hidden)] pub struct IEnterpriseKeyCredentialRegistrationManager_Vtbl { @@ -40,16 +22,7 @@ pub struct IEnterpriseKeyCredentialRegistrationManager_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetRegistrationsAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnterpriseKeyCredentialRegistrationManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnterpriseKeyCredentialRegistrationManagerStatics { - type Vtable = IEnterpriseKeyCredentialRegistrationManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnterpriseKeyCredentialRegistrationManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x77b85e9e_acf4_4bc0_bac2_40bb46efbb3f); -} +::windows_core::imp::com_interface!(IEnterpriseKeyCredentialRegistrationManagerStatics, IEnterpriseKeyCredentialRegistrationManagerStatics_Vtbl, 0x77b85e9e_acf4_4bc0_bac2_40bb46efbb3f); #[repr(C)] #[doc(hidden)] pub struct IEnterpriseKeyCredentialRegistrationManagerStatics_Vtbl { @@ -59,6 +32,7 @@ pub struct IEnterpriseKeyCredentialRegistrationManagerStatics_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EnterpriseKeyCredentialRegistrationInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EnterpriseKeyCredentialRegistrationInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EnterpriseKeyCredentialRegistrationInfo { pub fn TenantId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -101,19 +75,17 @@ impl ::windows_core::RuntimeType for EnterpriseKeyCredentialRegistrationInfo { } unsafe impl ::windows_core::Interface for EnterpriseKeyCredentialRegistrationInfo { type Vtable = IEnterpriseKeyCredentialRegistrationInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EnterpriseKeyCredentialRegistrationInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EnterpriseKeyCredentialRegistrationInfo { const NAME: &'static str = "Windows.Security.Authentication.Identity.EnterpriseKeyCredentialRegistrationInfo"; } -::windows_core::imp::interface_hierarchy!(EnterpriseKeyCredentialRegistrationInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EnterpriseKeyCredentialRegistrationInfo {} unsafe impl ::core::marker::Sync for EnterpriseKeyCredentialRegistrationInfo {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EnterpriseKeyCredentialRegistrationManager(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EnterpriseKeyCredentialRegistrationManager, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EnterpriseKeyCredentialRegistrationManager { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -141,13 +113,10 @@ impl ::windows_core::RuntimeType for EnterpriseKeyCredentialRegistrationManager } unsafe impl ::windows_core::Interface for EnterpriseKeyCredentialRegistrationManager { type Vtable = IEnterpriseKeyCredentialRegistrationManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EnterpriseKeyCredentialRegistrationManager { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EnterpriseKeyCredentialRegistrationManager { const NAME: &'static str = "Windows.Security.Authentication.Identity.EnterpriseKeyCredentialRegistrationManager"; } -::windows_core::imp::interface_hierarchy!(EnterpriseKeyCredentialRegistrationManager, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EnterpriseKeyCredentialRegistrationManager {} unsafe impl ::core::marker::Sync for EnterpriseKeyCredentialRegistrationManager {} 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 63fc47558d..109dd506c5 100644 --- a/crates/libs/windows/src/Windows/Security/Authentication/OnlineId/mod.rs +++ b/crates/libs/windows/src/Windows/Security/Authentication/OnlineId/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOnlineIdAuthenticator(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOnlineIdAuthenticator { - type Vtable = IOnlineIdAuthenticator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOnlineIdAuthenticator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa003f58a_29ab_4817_b884_d7516dad18b9); -} +::windows_core::imp::com_interface!(IOnlineIdAuthenticator, IOnlineIdAuthenticator_Vtbl, 0xa003f58a_29ab_4817_b884_d7516dad18b9); #[repr(C)] #[doc(hidden)] pub struct IOnlineIdAuthenticator_Vtbl { @@ -23,16 +14,7 @@ pub struct IOnlineIdAuthenticator_Vtbl { pub CanSignOut: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub AuthenticatedSafeCustomerId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOnlineIdServiceTicket(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOnlineIdServiceTicket { - type Vtable = IOnlineIdServiceTicket_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOnlineIdServiceTicket { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc95c547f_d781_4a94_acb8_c59874238c26); -} +::windows_core::imp::com_interface!(IOnlineIdServiceTicket, IOnlineIdServiceTicket_Vtbl, 0xc95c547f_d781_4a94_acb8_c59874238c26); #[repr(C)] #[doc(hidden)] pub struct IOnlineIdServiceTicket_Vtbl { @@ -41,16 +23,7 @@ pub struct IOnlineIdServiceTicket_Vtbl { pub Request: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ErrorCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOnlineIdServiceTicketRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOnlineIdServiceTicketRequest { - type Vtable = IOnlineIdServiceTicketRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOnlineIdServiceTicketRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x297445d3_fb63_4135_8909_4e354c061466); -} +::windows_core::imp::com_interface!(IOnlineIdServiceTicketRequest, IOnlineIdServiceTicketRequest_Vtbl, 0x297445d3_fb63_4135_8909_4e354c061466); #[repr(C)] #[doc(hidden)] pub struct IOnlineIdServiceTicketRequest_Vtbl { @@ -58,16 +31,7 @@ pub struct IOnlineIdServiceTicketRequest_Vtbl { pub Service: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Policy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOnlineIdServiceTicketRequestFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOnlineIdServiceTicketRequestFactory { - type Vtable = IOnlineIdServiceTicketRequestFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOnlineIdServiceTicketRequestFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbebb0a08_9e73_4077_9614_08614c0bc245); -} +::windows_core::imp::com_interface!(IOnlineIdServiceTicketRequestFactory, IOnlineIdServiceTicketRequestFactory_Vtbl, 0xbebb0a08_9e73_4077_9614_08614c0bc245); #[repr(C)] #[doc(hidden)] pub struct IOnlineIdServiceTicketRequestFactory_Vtbl { @@ -75,16 +39,7 @@ pub struct IOnlineIdServiceTicketRequestFactory_Vtbl { pub CreateOnlineIdServiceTicketRequest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, service: ::std::mem::MaybeUninit<::windows_core::HSTRING>, policy: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateOnlineIdServiceTicketRequestAdvanced: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, service: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOnlineIdSystemAuthenticatorForUser(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOnlineIdSystemAuthenticatorForUser { - type Vtable = IOnlineIdSystemAuthenticatorForUser_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOnlineIdSystemAuthenticatorForUser { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5798befb_1de4_4186_a2e6_b563f86aaf44); -} +::windows_core::imp::com_interface!(IOnlineIdSystemAuthenticatorForUser, IOnlineIdSystemAuthenticatorForUser_Vtbl, 0x5798befb_1de4_4186_a2e6_b563f86aaf44); #[repr(C)] #[doc(hidden)] pub struct IOnlineIdSystemAuthenticatorForUser_Vtbl { @@ -97,16 +52,7 @@ pub struct IOnlineIdSystemAuthenticatorForUser_Vtbl { #[cfg(not(feature = "System"))] User: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOnlineIdSystemAuthenticatorStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOnlineIdSystemAuthenticatorStatics { - type Vtable = IOnlineIdSystemAuthenticatorStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOnlineIdSystemAuthenticatorStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x85047792_f634_41e3_96a4_5164e902c740); -} +::windows_core::imp::com_interface!(IOnlineIdSystemAuthenticatorStatics, IOnlineIdSystemAuthenticatorStatics_Vtbl, 0x85047792_f634_41e3_96a4_5164e902c740); #[repr(C)] #[doc(hidden)] pub struct IOnlineIdSystemAuthenticatorStatics_Vtbl { @@ -117,16 +63,7 @@ pub struct IOnlineIdSystemAuthenticatorStatics_Vtbl { #[cfg(not(feature = "System"))] GetForUser: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOnlineIdSystemIdentity(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOnlineIdSystemIdentity { - type Vtable = IOnlineIdSystemIdentity_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOnlineIdSystemIdentity { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x743cd20d_b6ca_434d_8124_53ea12685307); -} +::windows_core::imp::com_interface!(IOnlineIdSystemIdentity, IOnlineIdSystemIdentity_Vtbl, 0x743cd20d_b6ca_434d_8124_53ea12685307); #[repr(C)] #[doc(hidden)] pub struct IOnlineIdSystemIdentity_Vtbl { @@ -134,16 +71,7 @@ pub struct IOnlineIdSystemIdentity_Vtbl { pub Ticket: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOnlineIdSystemTicketResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOnlineIdSystemTicketResult { - type Vtable = IOnlineIdSystemTicketResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOnlineIdSystemTicketResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdb0a5ff8_b098_4acd_9d13_9e640652b5b6); -} +::windows_core::imp::com_interface!(IOnlineIdSystemTicketResult, IOnlineIdSystemTicketResult_Vtbl, 0xdb0a5ff8_b098_4acd_9d13_9e640652b5b6); #[repr(C)] #[doc(hidden)] pub struct IOnlineIdSystemTicketResult_Vtbl { @@ -152,16 +80,7 @@ pub struct IOnlineIdSystemTicketResult_Vtbl { pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut OnlineIdSystemTicketStatus) -> ::windows_core::HRESULT, pub ExtendedError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserIdentity(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserIdentity { - type Vtable = IUserIdentity_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserIdentity { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2146d9cd_0742_4be3_8a1c_7c7ae679aa88); -} +::windows_core::imp::com_interface!(IUserIdentity, IUserIdentity_Vtbl, 0x2146d9cd_0742_4be3_8a1c_7c7ae679aa88); #[repr(C)] #[doc(hidden)] pub struct IUserIdentity_Vtbl { @@ -181,6 +100,7 @@ pub struct IUserIdentity_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct OnlineIdAuthenticator(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(OnlineIdAuthenticator, ::windows_core::IUnknown, ::windows_core::IInspectable); impl OnlineIdAuthenticator { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -203,12 +123,12 @@ impl OnlineIdAuthenticator { #[cfg(feature = "Foundation_Collections")] pub fn AuthenticateUserAsyncAdvanced(&self, requests: P0, credentialprompttype: CredentialPromptType) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).AuthenticateUserAsyncAdvanced)(::windows_core::Interface::as_raw(this), requests.try_into_param()?.abi(), credentialprompttype, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).AuthenticateUserAsyncAdvanced)(::windows_core::Interface::as_raw(this), requests.into_param().abi(), credentialprompttype, &mut result__).from_abi(result__) } } pub fn SignOutUserAsync(&self) -> ::windows_core::Result { @@ -249,19 +169,17 @@ impl ::windows_core::RuntimeType for OnlineIdAuthenticator { } unsafe impl ::windows_core::Interface for OnlineIdAuthenticator { type Vtable = IOnlineIdAuthenticator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for OnlineIdAuthenticator { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for OnlineIdAuthenticator { const NAME: &'static str = "Windows.Security.Authentication.OnlineId.OnlineIdAuthenticator"; } -::windows_core::imp::interface_hierarchy!(OnlineIdAuthenticator, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for OnlineIdAuthenticator {} unsafe impl ::core::marker::Sync for OnlineIdAuthenticator {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct OnlineIdServiceTicket(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(OnlineIdServiceTicket, ::windows_core::IUnknown, ::windows_core::IInspectable); impl OnlineIdServiceTicket { pub fn Value(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -290,19 +208,17 @@ impl ::windows_core::RuntimeType for OnlineIdServiceTicket { } unsafe impl ::windows_core::Interface for OnlineIdServiceTicket { type Vtable = IOnlineIdServiceTicket_Vtbl; -} -unsafe impl ::windows_core::ComInterface for OnlineIdServiceTicket { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for OnlineIdServiceTicket { const NAME: &'static str = "Windows.Security.Authentication.OnlineId.OnlineIdServiceTicket"; } -::windows_core::imp::interface_hierarchy!(OnlineIdServiceTicket, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for OnlineIdServiceTicket {} unsafe impl ::core::marker::Sync for OnlineIdServiceTicket {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct OnlineIdServiceTicketRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(OnlineIdServiceTicketRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl OnlineIdServiceTicketRequest { pub fn Service(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -341,14 +257,11 @@ impl ::windows_core::RuntimeType for OnlineIdServiceTicketRequest { } unsafe impl ::windows_core::Interface for OnlineIdServiceTicketRequest { type Vtable = IOnlineIdServiceTicketRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for OnlineIdServiceTicketRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for OnlineIdServiceTicketRequest { const NAME: &'static str = "Windows.Security.Authentication.OnlineId.OnlineIdServiceTicketRequest"; } -::windows_core::imp::interface_hierarchy!(OnlineIdServiceTicketRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for OnlineIdServiceTicketRequest {} unsafe impl ::core::marker::Sync for OnlineIdServiceTicketRequest {} pub struct OnlineIdSystemAuthenticator; @@ -382,6 +295,7 @@ impl ::windows_core::RuntimeName for OnlineIdSystemAuthenticator { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct OnlineIdSystemAuthenticatorForUser(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(OnlineIdSystemAuthenticatorForUser, ::windows_core::IUnknown, ::windows_core::IInspectable); impl OnlineIdSystemAuthenticatorForUser { pub fn GetTicketAsync(&self, request: P0) -> ::windows_core::Result> where @@ -419,19 +333,17 @@ impl ::windows_core::RuntimeType for OnlineIdSystemAuthenticatorForUser { } unsafe impl ::windows_core::Interface for OnlineIdSystemAuthenticatorForUser { type Vtable = IOnlineIdSystemAuthenticatorForUser_Vtbl; -} -unsafe impl ::windows_core::ComInterface for OnlineIdSystemAuthenticatorForUser { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for OnlineIdSystemAuthenticatorForUser { const NAME: &'static str = "Windows.Security.Authentication.OnlineId.OnlineIdSystemAuthenticatorForUser"; } -::windows_core::imp::interface_hierarchy!(OnlineIdSystemAuthenticatorForUser, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for OnlineIdSystemAuthenticatorForUser {} unsafe impl ::core::marker::Sync for OnlineIdSystemAuthenticatorForUser {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct OnlineIdSystemIdentity(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(OnlineIdSystemIdentity, ::windows_core::IUnknown, ::windows_core::IInspectable); impl OnlineIdSystemIdentity { pub fn Ticket(&self) -> ::windows_core::Result { let this = self; @@ -453,19 +365,17 @@ impl ::windows_core::RuntimeType for OnlineIdSystemIdentity { } unsafe impl ::windows_core::Interface for OnlineIdSystemIdentity { type Vtable = IOnlineIdSystemIdentity_Vtbl; -} -unsafe impl ::windows_core::ComInterface for OnlineIdSystemIdentity { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for OnlineIdSystemIdentity { const NAME: &'static str = "Windows.Security.Authentication.OnlineId.OnlineIdSystemIdentity"; } -::windows_core::imp::interface_hierarchy!(OnlineIdSystemIdentity, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for OnlineIdSystemIdentity {} unsafe impl ::core::marker::Sync for OnlineIdSystemIdentity {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct OnlineIdSystemTicketResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(OnlineIdSystemTicketResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl OnlineIdSystemTicketResult { pub fn Identity(&self) -> ::windows_core::Result { let this = self; @@ -494,19 +404,18 @@ impl ::windows_core::RuntimeType for OnlineIdSystemTicketResult { } unsafe impl ::windows_core::Interface for OnlineIdSystemTicketResult { type Vtable = IOnlineIdSystemTicketResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for OnlineIdSystemTicketResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for OnlineIdSystemTicketResult { const NAME: &'static str = "Windows.Security.Authentication.OnlineId.OnlineIdSystemTicketResult"; } -::windows_core::imp::interface_hierarchy!(OnlineIdSystemTicketResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for OnlineIdSystemTicketResult {} unsafe impl ::core::marker::Sync for OnlineIdSystemTicketResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SignOutUserOperation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SignOutUserOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(SignOutUserOperation, super::super::super::Foundation::IAsyncAction, super::super::super::Foundation::IAsyncInfo); impl SignOutUserOperation { pub fn SetCompleted(&self, handler: P0) -> ::windows_core::Result<()> where @@ -527,32 +436,32 @@ impl SignOutUserOperation { unsafe { (::windows_core::Interface::vtable(this).GetResults)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Id(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Id)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Status(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Status)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ErrorCode(&self) -> ::windows_core::Result<::windows_core::HRESULT> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ErrorCode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Cancel(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Cancel)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } } @@ -561,9 +470,7 @@ impl ::windows_core::RuntimeType for SignOutUserOperation { } unsafe impl ::windows_core::Interface for SignOutUserOperation { type Vtable = super::super::super::Foundation::IAsyncAction_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SignOutUserOperation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SignOutUserOperation { const NAME: &'static str = "Windows.Security.Authentication.OnlineId.SignOutUserOperation"; @@ -597,42 +504,41 @@ impl ::std::future::Future for SignOutUserOperation { } } } -::windows_core::imp::interface_hierarchy!(SignOutUserOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for SignOutUserOperation {} -impl ::windows_core::CanTryInto for SignOutUserOperation {} unsafe impl ::core::marker::Send for SignOutUserOperation {} unsafe impl ::core::marker::Sync for SignOutUserOperation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UserAuthenticationOperation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UserAuthenticationOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(UserAuthenticationOperation, super::super::super::Foundation::IAsyncInfo, super::super::super::Foundation::IAsyncOperation::); impl UserAuthenticationOperation { pub fn Id(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Id)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Status(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Status)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ErrorCode(&self) -> ::windows_core::Result<::windows_core::HRESULT> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ErrorCode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Cancel(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Cancel)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn SetCompleted(&self, handler: P0) -> ::windows_core::Result<()> @@ -662,9 +568,7 @@ impl ::windows_core::RuntimeType for UserAuthenticationOperation { } unsafe impl ::windows_core::Interface for UserAuthenticationOperation { type Vtable = super::super::super::Foundation::IAsyncOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UserAuthenticationOperation { - const IID: ::windows_core::GUID = as ::windows_core::ComInterface>::IID; + const IID: ::windows_core::GUID = as ::windows_core::Interface>::IID; } impl ::windows_core::RuntimeName for UserAuthenticationOperation { const NAME: &'static str = "Windows.Security.Authentication.OnlineId.UserAuthenticationOperation"; @@ -698,14 +602,12 @@ impl ::std::future::Future for UserAuthenticationOperation { } } } -::windows_core::imp::interface_hierarchy!(UserAuthenticationOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for UserAuthenticationOperation {} -impl ::windows_core::CanTryInto> for UserAuthenticationOperation {} unsafe impl ::core::marker::Send for UserAuthenticationOperation {} unsafe impl ::core::marker::Sync for UserAuthenticationOperation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UserIdentity(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UserIdentity, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UserIdentity { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -771,14 +673,11 @@ impl ::windows_core::RuntimeType for UserIdentity { } unsafe impl ::windows_core::Interface for UserIdentity { type Vtable = IUserIdentity_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UserIdentity { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UserIdentity { const NAME: &'static str = "Windows.Security.Authentication.OnlineId.UserIdentity"; } -::windows_core::imp::interface_hierarchy!(UserIdentity, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UserIdentity {} unsafe impl ::core::marker::Sync for UserIdentity {} #[repr(transparent)] 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 3e1119a13c..5730a21385 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 @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFindAllAccountsResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFindAllAccountsResult { - type Vtable = IFindAllAccountsResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFindAllAccountsResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa5812b5d_b72e_420c_86ab_aac0d7b7261f); -} +::windows_core::imp::com_interface!(IFindAllAccountsResult, IFindAllAccountsResult_Vtbl, 0xa5812b5d_b72e_420c_86ab_aac0d7b7261f); #[repr(C)] #[doc(hidden)] pub struct IFindAllAccountsResult_Vtbl { @@ -19,16 +10,7 @@ pub struct IFindAllAccountsResult_Vtbl { pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut FindAllWebAccountsStatus) -> ::windows_core::HRESULT, pub ProviderError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebAccountEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebAccountEventArgs { - type Vtable = IWebAccountEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebAccountEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6fb7037d_424e_44ec_977c_ef2415462a5a); -} +::windows_core::imp::com_interface!(IWebAccountEventArgs, IWebAccountEventArgs_Vtbl, 0x6fb7037d_424e_44ec_977c_ef2415462a5a); #[repr(C)] #[doc(hidden)] pub struct IWebAccountEventArgs_Vtbl { @@ -38,16 +20,7 @@ pub struct IWebAccountEventArgs_Vtbl { #[cfg(not(feature = "Security_Credentials"))] Account: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebAccountMonitor(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebAccountMonitor { - type Vtable = IWebAccountMonitor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebAccountMonitor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7445f5fd_aa9d_4619_8d5d_c138a4ede3e5); -} +::windows_core::imp::com_interface!(IWebAccountMonitor, IWebAccountMonitor_Vtbl, 0x7445f5fd_aa9d_4619_8d5d_c138a4ede3e5); #[repr(C)] #[doc(hidden)] pub struct IWebAccountMonitor_Vtbl { @@ -59,16 +32,7 @@ pub struct IWebAccountMonitor_Vtbl { pub DefaultSignInAccountChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveDefaultSignInAccountChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebAccountMonitor2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebAccountMonitor2 { - type Vtable = IWebAccountMonitor2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebAccountMonitor2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa7adc1f8_24b8_4f01_9ae5_24545e71233a); -} +::windows_core::imp::com_interface!(IWebAccountMonitor2, IWebAccountMonitor2_Vtbl, 0xa7adc1f8_24b8_4f01_9ae5_24545e71233a); #[repr(C)] #[doc(hidden)] pub struct IWebAccountMonitor2_Vtbl { @@ -76,16 +40,7 @@ pub struct IWebAccountMonitor2_Vtbl { pub AccountPictureUpdated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveAccountPictureUpdated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebAuthenticationCoreManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebAuthenticationCoreManagerStatics { - type Vtable = IWebAuthenticationCoreManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebAuthenticationCoreManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6aca7c92_a581_4479_9c10_752eff44fd34); -} +::windows_core::imp::com_interface!(IWebAuthenticationCoreManagerStatics, IWebAuthenticationCoreManagerStatics_Vtbl, 0x6aca7c92_a581_4479_9c10_752eff44fd34); #[repr(C)] #[doc(hidden)] pub struct IWebAuthenticationCoreManagerStatics_Vtbl { @@ -113,16 +68,7 @@ pub struct IWebAuthenticationCoreManagerStatics_Vtbl { #[cfg(not(feature = "Security_Credentials"))] FindAccountProviderWithAuthorityAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebAuthenticationCoreManagerStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebAuthenticationCoreManagerStatics2 { - type Vtable = IWebAuthenticationCoreManagerStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebAuthenticationCoreManagerStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf584184a_8b57_4820_b6a4_70a5b6fcf44a); -} +::windows_core::imp::com_interface!(IWebAuthenticationCoreManagerStatics2, IWebAuthenticationCoreManagerStatics2_Vtbl, 0xf584184a_8b57_4820_b6a4_70a5b6fcf44a); #[repr(C)] #[doc(hidden)] pub struct IWebAuthenticationCoreManagerStatics2_Vtbl { @@ -132,16 +78,7 @@ pub struct IWebAuthenticationCoreManagerStatics2_Vtbl { #[cfg(not(all(feature = "Security_Credentials", feature = "System")))] FindAccountProviderWithAuthorityForUserAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebAuthenticationCoreManagerStatics3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebAuthenticationCoreManagerStatics3 { - type Vtable = IWebAuthenticationCoreManagerStatics3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebAuthenticationCoreManagerStatics3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2404eeb2_8924_4d93_ab3a_99688b419d56); -} +::windows_core::imp::com_interface!(IWebAuthenticationCoreManagerStatics3, IWebAuthenticationCoreManagerStatics3_Vtbl, 0x2404eeb2_8924_4d93_ab3a_99688b419d56); #[repr(C)] #[doc(hidden)] pub struct IWebAuthenticationCoreManagerStatics3_Vtbl { @@ -151,16 +88,7 @@ pub struct IWebAuthenticationCoreManagerStatics3_Vtbl { #[cfg(not(all(feature = "Foundation_Collections", feature = "Security_Credentials")))] CreateWebAccountMonitor: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebAuthenticationCoreManagerStatics4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebAuthenticationCoreManagerStatics4 { - type Vtable = IWebAuthenticationCoreManagerStatics4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebAuthenticationCoreManagerStatics4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x54e633fe_96e0_41e8_9832_1298897c2aaf); -} +::windows_core::imp::com_interface!(IWebAuthenticationCoreManagerStatics4, IWebAuthenticationCoreManagerStatics4_Vtbl, 0x54e633fe_96e0_41e8_9832_1298897c2aaf); #[repr(C)] #[doc(hidden)] pub struct IWebAuthenticationCoreManagerStatics4_Vtbl { @@ -186,16 +114,7 @@ pub struct IWebAuthenticationCoreManagerStatics4_Vtbl { #[cfg(not(all(feature = "Security_Credentials", feature = "System")))] FindSystemAccountProviderWithAuthorityForUserAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebProviderError(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebProviderError { - type Vtable = IWebProviderError_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebProviderError { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdb191bb1_50c5_4809_8dca_09c99410245c); -} +::windows_core::imp::com_interface!(IWebProviderError, IWebProviderError_Vtbl, 0xdb191bb1_50c5_4809_8dca_09c99410245c); #[repr(C)] #[doc(hidden)] pub struct IWebProviderError_Vtbl { @@ -207,32 +126,14 @@ pub struct IWebProviderError_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Properties: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebProviderErrorFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebProviderErrorFactory { - type Vtable = IWebProviderErrorFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebProviderErrorFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe3c40a2d_89ef_4e37_847f_a8b9d5a32910); -} +::windows_core::imp::com_interface!(IWebProviderErrorFactory, IWebProviderErrorFactory_Vtbl, 0xe3c40a2d_89ef_4e37_847f_a8b9d5a32910); #[repr(C)] #[doc(hidden)] pub struct IWebProviderErrorFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, errorcode: u32, errormessage: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebTokenRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebTokenRequest { - type Vtable = IWebTokenRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebTokenRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb77b4d68_adcb_4673_b364_0cf7b35caf97); -} +::windows_core::imp::com_interface!(IWebTokenRequest, IWebTokenRequest_Vtbl, 0xb77b4d68_adcb_4673_b364_0cf7b35caf97); #[repr(C)] #[doc(hidden)] pub struct IWebTokenRequest_Vtbl { @@ -249,16 +150,7 @@ pub struct IWebTokenRequest_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Properties: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebTokenRequest2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebTokenRequest2 { - type Vtable = IWebTokenRequest2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebTokenRequest2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd700c079_30c8_4397_9654_961c3be8b855); -} +::windows_core::imp::com_interface!(IWebTokenRequest2, IWebTokenRequest2_Vtbl, 0xd700c079_30c8_4397_9654_961c3be8b855); #[repr(C)] #[doc(hidden)] pub struct IWebTokenRequest2_Vtbl { @@ -268,16 +160,7 @@ pub struct IWebTokenRequest2_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] AppProperties: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebTokenRequest3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebTokenRequest3 { - type Vtable = IWebTokenRequest3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebTokenRequest3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5a755b51_3bb1_41a5_a63d_90bc32c7db9a); -} +::windows_core::imp::com_interface!(IWebTokenRequest3, IWebTokenRequest3_Vtbl, 0x5a755b51_3bb1_41a5_a63d_90bc32c7db9a); #[repr(C)] #[doc(hidden)] pub struct IWebTokenRequest3_Vtbl { @@ -285,16 +168,7 @@ pub struct IWebTokenRequest3_Vtbl { pub CorrelationId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetCorrelationId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebTokenRequestFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebTokenRequestFactory { - type Vtable = IWebTokenRequestFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebTokenRequestFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6cf2141c_0ff0_4c67_b84f_99ddbe4a72c9); -} +::windows_core::imp::com_interface!(IWebTokenRequestFactory, IWebTokenRequestFactory_Vtbl, 0x6cf2141c_0ff0_4c67_b84f_99ddbe4a72c9); #[repr(C)] #[doc(hidden)] pub struct IWebTokenRequestFactory_Vtbl { @@ -316,16 +190,7 @@ pub struct IWebTokenRequestFactory_Vtbl { #[cfg(not(feature = "Security_Credentials"))] CreateWithScope: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebTokenRequestResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebTokenRequestResult { - type Vtable = IWebTokenRequestResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebTokenRequestResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc12a8305_d1f8_4483_8d54_38fe292784ff); -} +::windows_core::imp::com_interface!(IWebTokenRequestResult, IWebTokenRequestResult_Vtbl, 0xc12a8305_d1f8_4483_8d54_38fe292784ff); #[repr(C)] #[doc(hidden)] pub struct IWebTokenRequestResult_Vtbl { @@ -338,16 +203,7 @@ pub struct IWebTokenRequestResult_Vtbl { pub ResponseError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub InvalidateCacheAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebTokenResponse(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebTokenResponse { - type Vtable = IWebTokenResponse_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebTokenResponse { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x67a7c5ca_83f6_44c6_a3b1_0eb69e41fa8a); -} +::windows_core::imp::com_interface!(IWebTokenResponse, IWebTokenResponse_Vtbl, 0x67a7c5ca_83f6_44c6_a3b1_0eb69e41fa8a); #[repr(C)] #[doc(hidden)] pub struct IWebTokenResponse_Vtbl { @@ -363,16 +219,7 @@ pub struct IWebTokenResponse_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Properties: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebTokenResponseFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebTokenResponseFactory { - type Vtable = IWebTokenResponseFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebTokenResponseFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xab6bf7f8_5450_4ef6_97f7_052b0431c0f0); -} +::windows_core::imp::com_interface!(IWebTokenResponseFactory, IWebTokenResponseFactory_Vtbl, 0xab6bf7f8_5450_4ef6_97f7_052b0431c0f0); #[repr(C)] #[doc(hidden)] pub struct IWebTokenResponseFactory_Vtbl { @@ -390,6 +237,7 @@ pub struct IWebTokenResponseFactory_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct FindAllAccountsResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(FindAllAccountsResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl FindAllAccountsResult { #[doc = "Required features: `\"Foundation_Collections\"`, `\"Security_Credentials\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Security_Credentials"))] @@ -420,19 +268,17 @@ impl ::windows_core::RuntimeType for FindAllAccountsResult { } unsafe impl ::windows_core::Interface for FindAllAccountsResult { type Vtable = IFindAllAccountsResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for FindAllAccountsResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for FindAllAccountsResult { const NAME: &'static str = "Windows.Security.Authentication.Web.Core.FindAllAccountsResult"; } -::windows_core::imp::interface_hierarchy!(FindAllAccountsResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for FindAllAccountsResult {} unsafe impl ::core::marker::Sync for FindAllAccountsResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebAccountEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WebAccountEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WebAccountEventArgs { #[doc = "Required features: `\"Security_Credentials\"`"] #[cfg(feature = "Security_Credentials")] @@ -449,19 +295,17 @@ impl ::windows_core::RuntimeType for WebAccountEventArgs { } unsafe impl ::windows_core::Interface for WebAccountEventArgs { type Vtable = IWebAccountEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WebAccountEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WebAccountEventArgs { const NAME: &'static str = "Windows.Security.Authentication.Web.Core.WebAccountEventArgs"; } -::windows_core::imp::interface_hierarchy!(WebAccountEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for WebAccountEventArgs {} unsafe impl ::core::marker::Sync for WebAccountEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebAccountMonitor(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WebAccountMonitor, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WebAccountMonitor { pub fn Updated(&self, handler: P0) -> ::windows_core::Result where @@ -509,14 +353,14 @@ impl WebAccountMonitor { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveAccountPictureUpdated(&self, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveAccountPictureUpdated)(::windows_core::Interface::as_raw(this), token).ok() } } } @@ -525,14 +369,11 @@ impl ::windows_core::RuntimeType for WebAccountMonitor { } unsafe impl ::windows_core::Interface for WebAccountMonitor { type Vtable = IWebAccountMonitor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WebAccountMonitor { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WebAccountMonitor { const NAME: &'static str = "Windows.Security.Authentication.Web.Core.WebAccountMonitor"; } -::windows_core::imp::interface_hierarchy!(WebAccountMonitor, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for WebAccountMonitor {} unsafe impl ::core::marker::Sync for WebAccountMonitor {} pub struct WebAuthenticationCoreManager; @@ -621,11 +462,11 @@ impl WebAuthenticationCoreManager { #[cfg(all(feature = "Foundation_Collections", feature = "Security_Credentials"))] pub fn CreateWebAccountMonitor(webaccounts: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::IWebAuthenticationCoreManagerStatics3(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateWebAccountMonitor)(::windows_core::Interface::as_raw(this), webaccounts.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateWebAccountMonitor)(::windows_core::Interface::as_raw(this), webaccounts.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Security_Credentials\"`"] @@ -704,6 +545,7 @@ impl ::windows_core::RuntimeName for WebAuthenticationCoreManager { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebProviderError(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WebProviderError, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WebProviderError { pub fn ErrorCode(&self) -> ::windows_core::Result { let this = self; @@ -745,19 +587,17 @@ impl ::windows_core::RuntimeType for WebProviderError { } unsafe impl ::windows_core::Interface for WebProviderError { type Vtable = IWebProviderError_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WebProviderError { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WebProviderError { const NAME: &'static str = "Windows.Security.Authentication.Web.Core.WebProviderError"; } -::windows_core::imp::interface_hierarchy!(WebProviderError, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for WebProviderError {} unsafe impl ::core::marker::Sync for WebProviderError {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebTokenRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WebTokenRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WebTokenRequest { #[doc = "Required features: `\"Security_Credentials\"`"] #[cfg(feature = "Security_Credentials")] @@ -801,21 +641,21 @@ impl WebTokenRequest { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn AppProperties(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AppProperties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CorrelationId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CorrelationId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetCorrelationId(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCorrelationId)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } #[doc = "Required features: `\"Security_Credentials\"`"] @@ -873,19 +713,17 @@ impl ::windows_core::RuntimeType for WebTokenRequest { } unsafe impl ::windows_core::Interface for WebTokenRequest { type Vtable = IWebTokenRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WebTokenRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WebTokenRequest { const NAME: &'static str = "Windows.Security.Authentication.Web.Core.WebTokenRequest"; } -::windows_core::imp::interface_hierarchy!(WebTokenRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for WebTokenRequest {} unsafe impl ::core::marker::Sync for WebTokenRequest {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebTokenRequestResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WebTokenRequestResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WebTokenRequestResult { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -923,19 +761,17 @@ impl ::windows_core::RuntimeType for WebTokenRequestResult { } unsafe impl ::windows_core::Interface for WebTokenRequestResult { type Vtable = IWebTokenRequestResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WebTokenRequestResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WebTokenRequestResult { const NAME: &'static str = "Windows.Security.Authentication.Web.Core.WebTokenRequestResult"; } -::windows_core::imp::interface_hierarchy!(WebTokenRequestResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for WebTokenRequestResult {} unsafe impl ::core::marker::Sync for WebTokenRequestResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebTokenResponse(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WebTokenResponse, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WebTokenResponse { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1016,14 +852,11 @@ impl ::windows_core::RuntimeType for WebTokenResponse { } unsafe impl ::windows_core::Interface for WebTokenResponse { type Vtable = IWebTokenResponse_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WebTokenResponse { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WebTokenResponse { const NAME: &'static str = "Windows.Security.Authentication.Web.Core.WebTokenResponse"; } -::windows_core::imp::interface_hierarchy!(WebTokenResponse, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for WebTokenResponse {} unsafe impl ::core::marker::Sync for WebTokenResponse {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Security/Authentication/Web/Provider/impl.rs b/crates/libs/windows/src/Windows/Security/Authentication/Web/Provider/impl.rs index 50437be406..f6634ffa9d 100644 --- a/crates/libs/windows/src/Windows/Security/Authentication/Web/Provider/impl.rs +++ b/crates/libs/windows/src/Windows/Security/Authentication/Web/Provider/impl.rs @@ -28,7 +28,7 @@ impl IWebAccountProviderBaseReportOperation_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWebAccountProviderOperation_Impl: Sized { @@ -53,7 +53,7 @@ impl IWebAccountProviderOperation_Vtbl { Self { base__: ::windows_core::IInspectable_Vtbl::new::(), Kind: Kind:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Security_Authentication_Web_Core\"`"] @@ -86,7 +86,7 @@ impl IWebAccountProviderSilentReportOperation_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWebAccountProviderTokenObjects_Impl: Sized { @@ -115,7 +115,7 @@ impl IWebAccountProviderTokenObjects_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"System\"`"] @@ -145,7 +145,7 @@ impl IWebAccountProviderTokenObjects2_Vtbl { Self { base__: ::windows_core::IInspectable_Vtbl::new::(), User: User:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -212,7 +212,7 @@ impl IWebAccountProviderTokenOperation_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Security_Authentication_Web_Core\"`"] @@ -238,6 +238,6 @@ impl IWebAccountProviderUIReportOperation_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 a4973342c0..205a88ccf7 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 @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebAccountClientView(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebAccountClientView { - type Vtable = IWebAccountClientView_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebAccountClientView { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe7bd66ba_0bc7_4c66_bfd4_65d3082cbca8); -} +::windows_core::imp::com_interface!(IWebAccountClientView, IWebAccountClientView_Vtbl, 0xe7bd66ba_0bc7_4c66_bfd4_65d3082cbca8); #[repr(C)] #[doc(hidden)] pub struct IWebAccountClientView_Vtbl { @@ -16,16 +7,7 @@ pub struct IWebAccountClientView_Vtbl { pub Type: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut WebAccountClientViewType) -> ::windows_core::HRESULT, pub AccountPairwiseId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebAccountClientViewFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebAccountClientViewFactory { - type Vtable = IWebAccountClientViewFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebAccountClientViewFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x616d16a4_de22_4855_a326_06cebf2a3f23); -} +::windows_core::imp::com_interface!(IWebAccountClientViewFactory, IWebAccountClientViewFactory_Vtbl, 0x616d16a4_de22_4855_a326_06cebf2a3f23); #[repr(C)] #[doc(hidden)] pub struct IWebAccountClientViewFactory_Vtbl { @@ -33,16 +15,7 @@ pub struct IWebAccountClientViewFactory_Vtbl { pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, viewtype: WebAccountClientViewType, applicationcallbackuri: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateWithPairwiseId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, viewtype: WebAccountClientViewType, applicationcallbackuri: *mut ::core::ffi::c_void, accountpairwiseid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebAccountManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebAccountManagerStatics { - type Vtable = IWebAccountManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebAccountManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb2e8e1a6_d49a_4032_84bf_1a2847747bf1); -} +::windows_core::imp::com_interface!(IWebAccountManagerStatics, IWebAccountManagerStatics_Vtbl, 0xb2e8e1a6_d49a_4032_84bf_1a2847747bf1); #[repr(C)] #[doc(hidden)] pub struct IWebAccountManagerStatics_Vtbl { @@ -88,32 +61,14 @@ pub struct IWebAccountManagerStatics_Vtbl { #[cfg(not(feature = "Security_Credentials"))] ClearWebAccountPictureAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebAccountManagerStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebAccountManagerStatics2 { - type Vtable = IWebAccountManagerStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebAccountManagerStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x68a7a829_2d5f_4653_8bb0_bd2fa6bd2d87); -} +::windows_core::imp::com_interface!(IWebAccountManagerStatics2, IWebAccountManagerStatics2_Vtbl, 0x68a7a829_2d5f_4653_8bb0_bd2fa6bd2d87); #[repr(C)] #[doc(hidden)] pub struct IWebAccountManagerStatics2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub PullCookiesAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uristring: ::std::mem::MaybeUninit<::windows_core::HSTRING>, callerpfn: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebAccountManagerStatics3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebAccountManagerStatics3 { - type Vtable = IWebAccountManagerStatics3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebAccountManagerStatics3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdd4523a6_8a4f_4aa2_b15e_03f550af1359); -} +::windows_core::imp::com_interface!(IWebAccountManagerStatics3, IWebAccountManagerStatics3_Vtbl, 0xdd4523a6_8a4f_4aa2_b15e_03f550af1359); #[repr(C)] #[doc(hidden)] pub struct IWebAccountManagerStatics3_Vtbl { @@ -135,16 +90,7 @@ pub struct IWebAccountManagerStatics3_Vtbl { #[cfg(not(all(feature = "Foundation_Collections", feature = "Security_Credentials", feature = "System")))] AddWebAccountWithScopeAndMapForUserAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebAccountManagerStatics4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebAccountManagerStatics4 { - type Vtable = IWebAccountManagerStatics4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebAccountManagerStatics4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x59ebc2d2_f7db_412f_bc3f_f2fea04430b4); -} +::windows_core::imp::com_interface!(IWebAccountManagerStatics4, IWebAccountManagerStatics4_Vtbl, 0x59ebc2d2_f7db_412f_bc3f_f2fea04430b4); #[repr(C)] #[doc(hidden)] pub struct IWebAccountManagerStatics4_Vtbl { @@ -155,16 +101,7 @@ pub struct IWebAccountManagerStatics4_Vtbl { #[cfg(not(feature = "Security_Credentials"))] InvalidateAppCacheForAccountAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebAccountMapManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebAccountMapManagerStatics { - type Vtable = IWebAccountMapManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebAccountMapManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe8fa446f_3a1b_48a4_8e90_1e59ca6f54db); -} +::windows_core::imp::com_interface!(IWebAccountMapManagerStatics, IWebAccountMapManagerStatics_Vtbl, 0xe8fa446f_3a1b_48a4_8e90_1e59ca6f54db); #[repr(C)] #[doc(hidden)] pub struct IWebAccountMapManagerStatics_Vtbl { @@ -186,25 +123,15 @@ pub struct IWebAccountMapManagerStatics_Vtbl { #[cfg(not(feature = "Security_Credentials"))] ClearPerUserFromPerAppAccountAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebAccountProviderAddAccountOperation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebAccountProviderAddAccountOperation { - type Vtable = IWebAccountProviderAddAccountOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebAccountProviderAddAccountOperation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x73ebdccf_4378_4c79_9335_a5d7ab81594e); -} +::windows_core::imp::com_interface!(IWebAccountProviderAddAccountOperation, IWebAccountProviderAddAccountOperation_Vtbl, 0x73ebdccf_4378_4c79_9335_a5d7ab81594e); #[repr(C)] #[doc(hidden)] pub struct IWebAccountProviderAddAccountOperation_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ReportCompleted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebAccountProviderBaseReportOperation(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWebAccountProviderBaseReportOperation, IWebAccountProviderBaseReportOperation_Vtbl, 0xbba4acbb_993b_4d57_bbe4_1421e3668b4c); +::windows_core::imp::interface_hierarchy!(IWebAccountProviderBaseReportOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IWebAccountProviderBaseReportOperation { pub fn ReportCompleted(&self) -> ::windows_core::Result<()> { let this = self; @@ -220,16 +147,9 @@ impl IWebAccountProviderBaseReportOperation { unsafe { (::windows_core::Interface::vtable(this).ReportError)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } } -::windows_core::imp::interface_hierarchy!(IWebAccountProviderBaseReportOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IWebAccountProviderBaseReportOperation { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IWebAccountProviderBaseReportOperation { - type Vtable = IWebAccountProviderBaseReportOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebAccountProviderBaseReportOperation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbba4acbb_993b_4d57_bbe4_1421e3668b4c); -} #[repr(C)] #[doc(hidden)] pub struct IWebAccountProviderBaseReportOperation_Vtbl { @@ -240,16 +160,7 @@ pub struct IWebAccountProviderBaseReportOperation_Vtbl { #[cfg(not(feature = "Security_Authentication_Web_Core"))] ReportError: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebAccountProviderDeleteAccountOperation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebAccountProviderDeleteAccountOperation { - type Vtable = IWebAccountProviderDeleteAccountOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebAccountProviderDeleteAccountOperation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0abb48b8_9e01_49c9_a355_7d48caf7d6ca); -} +::windows_core::imp::com_interface!(IWebAccountProviderDeleteAccountOperation, IWebAccountProviderDeleteAccountOperation_Vtbl, 0x0abb48b8_9e01_49c9_a355_7d48caf7d6ca); #[repr(C)] #[doc(hidden)] pub struct IWebAccountProviderDeleteAccountOperation_Vtbl { @@ -259,16 +170,7 @@ pub struct IWebAccountProviderDeleteAccountOperation_Vtbl { #[cfg(not(feature = "Security_Credentials"))] WebAccount: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebAccountProviderManageAccountOperation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebAccountProviderManageAccountOperation { - type Vtable = IWebAccountProviderManageAccountOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebAccountProviderManageAccountOperation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xed20dc5c_d21b_463e_a9b7_c1fd0edae978); -} +::windows_core::imp::com_interface!(IWebAccountProviderManageAccountOperation, IWebAccountProviderManageAccountOperation_Vtbl, 0xed20dc5c_d21b_463e_a9b7_c1fd0edae978); #[repr(C)] #[doc(hidden)] pub struct IWebAccountProviderManageAccountOperation_Vtbl { @@ -279,9 +181,8 @@ pub struct IWebAccountProviderManageAccountOperation_Vtbl { WebAccount: usize, pub ReportCompleted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebAccountProviderOperation(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWebAccountProviderOperation, IWebAccountProviderOperation_Vtbl, 0x6d5d2426_10b1_419a_a44e_f9c5161574e6); +::windows_core::imp::interface_hierarchy!(IWebAccountProviderOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IWebAccountProviderOperation { pub fn Kind(&self) -> ::windows_core::Result { let this = self; @@ -291,32 +192,16 @@ impl IWebAccountProviderOperation { } } } -::windows_core::imp::interface_hierarchy!(IWebAccountProviderOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IWebAccountProviderOperation { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IWebAccountProviderOperation { - type Vtable = IWebAccountProviderOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebAccountProviderOperation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6d5d2426_10b1_419a_a44e_f9c5161574e6); -} #[repr(C)] #[doc(hidden)] pub struct IWebAccountProviderOperation_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Kind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut WebAccountProviderOperationKind) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebAccountProviderRetrieveCookiesOperation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebAccountProviderRetrieveCookiesOperation { - type Vtable = IWebAccountProviderRetrieveCookiesOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebAccountProviderRetrieveCookiesOperation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5a040441_0fa3_4ab1_a01c_20b110358594); -} +::windows_core::imp::com_interface!(IWebAccountProviderRetrieveCookiesOperation, IWebAccountProviderRetrieveCookiesOperation_Vtbl, 0x5a040441_0fa3_4ab1_a01c_20b110358594); #[repr(C)] #[doc(hidden)] pub struct IWebAccountProviderRetrieveCookiesOperation_Vtbl { @@ -330,16 +215,7 @@ pub struct IWebAccountProviderRetrieveCookiesOperation_Vtbl { pub Uri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ApplicationCallbackUri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebAccountProviderSignOutAccountOperation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebAccountProviderSignOutAccountOperation { - type Vtable = IWebAccountProviderSignOutAccountOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebAccountProviderSignOutAccountOperation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb890e21d_0c55_47bc_8c72_04a6fc7cac07); -} +::windows_core::imp::com_interface!(IWebAccountProviderSignOutAccountOperation, IWebAccountProviderSignOutAccountOperation_Vtbl, 0xb890e21d_0c55_47bc_8c72_04a6fc7cac07); #[repr(C)] #[doc(hidden)] pub struct IWebAccountProviderSignOutAccountOperation_Vtbl { @@ -351,9 +227,9 @@ pub struct IWebAccountProviderSignOutAccountOperation_Vtbl { pub ApplicationCallbackUri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ClientId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebAccountProviderSilentReportOperation(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWebAccountProviderSilentReportOperation, IWebAccountProviderSilentReportOperation_Vtbl, 0xe0b545f8_3b0f_44da_924c_7b18baaa62a9); +::windows_core::imp::interface_hierarchy!(IWebAccountProviderSilentReportOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IWebAccountProviderSilentReportOperation, IWebAccountProviderBaseReportOperation); impl IWebAccountProviderSilentReportOperation { pub fn ReportUserInteractionRequired(&self) -> ::windows_core::Result<()> { let this = self; @@ -369,7 +245,7 @@ impl IWebAccountProviderSilentReportOperation { unsafe { (::windows_core::Interface::vtable(this).ReportUserInteractionRequiredWithError)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn ReportCompleted(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ReportCompleted)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Security_Authentication_Web_Core\"`"] @@ -378,21 +254,13 @@ impl IWebAccountProviderSilentReportOperation { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } } -::windows_core::imp::interface_hierarchy!(IWebAccountProviderSilentReportOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IWebAccountProviderSilentReportOperation {} impl ::windows_core::RuntimeType for IWebAccountProviderSilentReportOperation { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IWebAccountProviderSilentReportOperation { - type Vtable = IWebAccountProviderSilentReportOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebAccountProviderSilentReportOperation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe0b545f8_3b0f_44da_924c_7b18baaa62a9); -} #[repr(C)] #[doc(hidden)] pub struct IWebAccountProviderSilentReportOperation_Vtbl { @@ -403,9 +271,8 @@ pub struct IWebAccountProviderSilentReportOperation_Vtbl { #[cfg(not(feature = "Security_Authentication_Web_Core"))] ReportUserInteractionRequiredWithError: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebAccountProviderTokenObjects(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWebAccountProviderTokenObjects, IWebAccountProviderTokenObjects_Vtbl, 0x408f284b_1328_42db_89a4_0bce7a717d8e); +::windows_core::imp::interface_hierarchy!(IWebAccountProviderTokenObjects, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IWebAccountProviderTokenObjects { pub fn Operation(&self) -> ::windows_core::Result { let this = self; @@ -415,25 +282,18 @@ impl IWebAccountProviderTokenObjects { } } } -::windows_core::imp::interface_hierarchy!(IWebAccountProviderTokenObjects, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IWebAccountProviderTokenObjects { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IWebAccountProviderTokenObjects { - type Vtable = IWebAccountProviderTokenObjects_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebAccountProviderTokenObjects { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x408f284b_1328_42db_89a4_0bce7a717d8e); -} #[repr(C)] #[doc(hidden)] pub struct IWebAccountProviderTokenObjects_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Operation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebAccountProviderTokenObjects2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWebAccountProviderTokenObjects2, IWebAccountProviderTokenObjects2_Vtbl, 0x1020b893_5ca5_4fff_95fb_b820273fc395); +::windows_core::imp::interface_hierarchy!(IWebAccountProviderTokenObjects2, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IWebAccountProviderTokenObjects2, IWebAccountProviderTokenObjects); impl IWebAccountProviderTokenObjects2 { #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] @@ -445,24 +305,16 @@ impl IWebAccountProviderTokenObjects2 { } } pub fn Operation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Operation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(IWebAccountProviderTokenObjects2, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IWebAccountProviderTokenObjects2 {} impl ::windows_core::RuntimeType for IWebAccountProviderTokenObjects2 { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IWebAccountProviderTokenObjects2 { - type Vtable = IWebAccountProviderTokenObjects2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebAccountProviderTokenObjects2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1020b893_5ca5_4fff_95fb_b820273fc395); -} #[repr(C)] #[doc(hidden)] pub struct IWebAccountProviderTokenObjects2_Vtbl { @@ -472,9 +324,9 @@ pub struct IWebAccountProviderTokenObjects2_Vtbl { #[cfg(not(feature = "System"))] User: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebAccountProviderTokenOperation(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWebAccountProviderTokenOperation, IWebAccountProviderTokenOperation_Vtbl, 0x95c613be_2034_4c38_9434_d26c14b2b4b2); +::windows_core::imp::interface_hierarchy!(IWebAccountProviderTokenOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IWebAccountProviderTokenOperation, IWebAccountProviderOperation); impl IWebAccountProviderTokenOperation { pub fn ProviderRequest(&self) -> ::windows_core::Result { let this = self; @@ -504,24 +356,16 @@ impl IWebAccountProviderTokenOperation { } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(IWebAccountProviderTokenOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IWebAccountProviderTokenOperation {} impl ::windows_core::RuntimeType for IWebAccountProviderTokenOperation { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IWebAccountProviderTokenOperation { - type Vtable = IWebAccountProviderTokenOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebAccountProviderTokenOperation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x95c613be_2034_4c38_9434_d26c14b2b4b2); -} #[repr(C)] #[doc(hidden)] pub struct IWebAccountProviderTokenOperation_Vtbl { @@ -534,16 +378,16 @@ pub struct IWebAccountProviderTokenOperation_Vtbl { pub SetCacheExpirationTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::super::super::Foundation::DateTime) -> ::windows_core::HRESULT, pub CacheExpirationTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::DateTime) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebAccountProviderUIReportOperation(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWebAccountProviderUIReportOperation, IWebAccountProviderUIReportOperation_Vtbl, 0x28ff92d3_8f80_42fb_944f_b2107bbd42e6); +::windows_core::imp::interface_hierarchy!(IWebAccountProviderUIReportOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IWebAccountProviderUIReportOperation, IWebAccountProviderBaseReportOperation); impl IWebAccountProviderUIReportOperation { pub fn ReportUserCanceled(&self) -> ::windows_core::Result<()> { let this = self; unsafe { (::windows_core::Interface::vtable(this).ReportUserCanceled)(::windows_core::Interface::as_raw(this)).ok() } } pub fn ReportCompleted(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ReportCompleted)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Security_Authentication_Web_Core\"`"] @@ -552,37 +396,20 @@ impl IWebAccountProviderUIReportOperation { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } } -::windows_core::imp::interface_hierarchy!(IWebAccountProviderUIReportOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IWebAccountProviderUIReportOperation {} impl ::windows_core::RuntimeType for IWebAccountProviderUIReportOperation { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IWebAccountProviderUIReportOperation { - type Vtable = IWebAccountProviderUIReportOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebAccountProviderUIReportOperation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x28ff92d3_8f80_42fb_944f_b2107bbd42e6); -} #[repr(C)] #[doc(hidden)] pub struct IWebAccountProviderUIReportOperation_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ReportUserCanceled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebAccountScopeManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebAccountScopeManagerStatics { - type Vtable = IWebAccountScopeManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebAccountScopeManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5c6ce37c_12b2_423a_bf3d_85b8d7e53656); -} +::windows_core::imp::com_interface!(IWebAccountScopeManagerStatics, IWebAccountScopeManagerStatics_Vtbl, 0x5c6ce37c_12b2_423a_bf3d_85b8d7e53656); #[repr(C)] #[doc(hidden)] pub struct IWebAccountScopeManagerStatics_Vtbl { @@ -600,16 +427,7 @@ pub struct IWebAccountScopeManagerStatics_Vtbl { #[cfg(not(feature = "Security_Credentials"))] GetScope: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebProviderTokenRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebProviderTokenRequest { - type Vtable = IWebProviderTokenRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebProviderTokenRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1e18778b_8805_454b_9f11_468d2af1095a); -} +::windows_core::imp::com_interface!(IWebProviderTokenRequest, IWebProviderTokenRequest_Vtbl, 0x1e18778b_8805_454b_9f11_468d2af1095a); #[repr(C)] #[doc(hidden)] pub struct IWebProviderTokenRequest_Vtbl { @@ -629,16 +447,7 @@ pub struct IWebProviderTokenRequest_Vtbl { #[cfg(not(feature = "Security_Cryptography_Core"))] GetApplicationTokenBindingKeyAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebProviderTokenRequest2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebProviderTokenRequest2 { - type Vtable = IWebProviderTokenRequest2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebProviderTokenRequest2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb5d72e4c_10b1_4aa6_88b1_0b6c9e0c1e46); -} +::windows_core::imp::com_interface!(IWebProviderTokenRequest2, IWebProviderTokenRequest2_Vtbl, 0xb5d72e4c_10b1_4aa6_88b1_0b6c9e0c1e46); #[repr(C)] #[doc(hidden)] pub struct IWebProviderTokenRequest2_Vtbl { @@ -648,16 +457,7 @@ pub struct IWebProviderTokenRequest2_Vtbl { #[cfg(not(feature = "Storage_Streams"))] GetApplicationTokenBindingKeyIdAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebProviderTokenRequest3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebProviderTokenRequest3 { - type Vtable = IWebProviderTokenRequest3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebProviderTokenRequest3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1b2716aa_4289_446e_9256_dafb6f66a51e); -} +::windows_core::imp::com_interface!(IWebProviderTokenRequest3, IWebProviderTokenRequest3_Vtbl, 0x1b2716aa_4289_446e_9256_dafb6f66a51e); #[repr(C)] #[doc(hidden)] pub struct IWebProviderTokenRequest3_Vtbl { @@ -666,16 +466,7 @@ pub struct IWebProviderTokenRequest3_Vtbl { pub ApplicationProcessName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub CheckApplicationForCapabilityAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, capabilityname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebProviderTokenResponse(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebProviderTokenResponse { - type Vtable = IWebProviderTokenResponse_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebProviderTokenResponse { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xef213793_ef55_4186_b7ce_8cb2e7f9849e); -} +::windows_core::imp::com_interface!(IWebProviderTokenResponse, IWebProviderTokenResponse_Vtbl, 0xef213793_ef55_4186_b7ce_8cb2e7f9849e); #[repr(C)] #[doc(hidden)] pub struct IWebProviderTokenResponse_Vtbl { @@ -685,16 +476,7 @@ pub struct IWebProviderTokenResponse_Vtbl { #[cfg(not(feature = "Security_Authentication_Web_Core"))] ClientResponse: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebProviderTokenResponseFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebProviderTokenResponseFactory { - type Vtable = IWebProviderTokenResponseFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebProviderTokenResponseFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfa49d99a_25ba_4077_9cfa_9db4dea7b71a); -} +::windows_core::imp::com_interface!(IWebProviderTokenResponseFactory, IWebProviderTokenResponseFactory_Vtbl, 0xfa49d99a_25ba_4077_9cfa_9db4dea7b71a); #[repr(C)] #[doc(hidden)] pub struct IWebProviderTokenResponseFactory_Vtbl { @@ -707,6 +489,7 @@ pub struct IWebProviderTokenResponseFactory_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebAccountClientView(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WebAccountClientView, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WebAccountClientView { pub fn ApplicationCallbackUri(&self) -> ::windows_core::Result { let this = self; @@ -758,14 +541,11 @@ impl ::windows_core::RuntimeType for WebAccountClientView { } unsafe impl ::windows_core::Interface for WebAccountClientView { type Vtable = IWebAccountClientView_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WebAccountClientView { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WebAccountClientView { const NAME: &'static str = "Windows.Security.Authentication.Web.Provider.WebAccountClientView"; } -::windows_core::imp::interface_hierarchy!(WebAccountClientView, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for WebAccountClientView {} unsafe impl ::core::marker::Sync for WebAccountClientView {} pub struct WebAccountManager; @@ -775,22 +555,22 @@ impl WebAccountManager { pub fn UpdateWebAccountPropertiesAsync(webaccount: P0, webaccountusername: &::windows_core::HSTRING, additionalproperties: P1) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam>, + P1: ::windows_core::IntoParam>, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Security_Credentials\"`"] #[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::TryIntoParam>, + P0: ::windows_core::IntoParam>, { 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.try_into_param()?.abi(), &mut result__).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.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Security_Credentials\"`"] @@ -817,11 +597,11 @@ impl WebAccountManager { pub fn PushCookiesAsync(uri: P0, cookies: P1) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam>, + P1: ::windows_core::IntoParam>, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).PushCookiesAsync)(::windows_core::Interface::as_raw(this), uri.into_param().abi(), cookies.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Security_Credentials\"`"] @@ -864,11 +644,11 @@ impl WebAccountManager { pub fn SetWebAccountPictureAsync(webaccount: P0, webaccountpicture: P1) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam, + P1: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SetWebAccountPictureAsync)(::windows_core::Interface::as_raw(this), webaccount.into_param().abi(), webaccountpicture.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Security_Credentials\"`"] @@ -904,11 +684,11 @@ impl WebAccountManager { 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::TryIntoParam>, + P1: ::windows_core::IntoParam>, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Security_Credentials\"`, `\"System\"`"] @@ -916,11 +696,11 @@ impl WebAccountManager { 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::TryIntoParam>, + P1: ::windows_core::IntoParam>, { 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.try_into_param()?.abi(), scope, &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Security_Credentials\"`, `\"System\"`"] @@ -928,11 +708,11 @@ impl WebAccountManager { 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::TryIntoParam>, + P1: ::windows_core::IntoParam>, { 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.try_into_param()?.abi(), scope, ::core::mem::transmute_copy(peruserwebaccountid), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } pub fn InvalidateAppCacheForAllAccountsAsync() -> ::windows_core::Result { @@ -956,11 +736,11 @@ impl WebAccountManager { #[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::TryIntoParam>, + P0: ::windows_core::IntoParam>, { 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.try_into_param()?.abi(), scope, ::core::mem::transmute_copy(peruserwebaccountid), &mut result__).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.into_param().abi(), scope, ::core::mem::transmute_copy(peruserwebaccountid), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Security_Credentials\"`"] @@ -1000,11 +780,11 @@ impl WebAccountManager { #[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::TryIntoParam>, + P0: ::windows_core::IntoParam>, { 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.try_into_param()?.abi(), scope, &mut result__).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.into_param().abi(), scope, &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Security_Credentials\"`"] @@ -1066,13 +846,15 @@ impl ::windows_core::RuntimeName for WebAccountManager { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebAccountProviderAddAccountOperation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WebAccountProviderAddAccountOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(WebAccountProviderAddAccountOperation, IWebAccountProviderOperation); impl WebAccountProviderAddAccountOperation { pub fn ReportCompleted(&self) -> ::windows_core::Result<()> { let this = self; unsafe { (::windows_core::Interface::vtable(this).ReportCompleted)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1084,23 +866,21 @@ impl ::windows_core::RuntimeType for WebAccountProviderAddAccountOperation { } unsafe impl ::windows_core::Interface for WebAccountProviderAddAccountOperation { type Vtable = IWebAccountProviderAddAccountOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WebAccountProviderAddAccountOperation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WebAccountProviderAddAccountOperation { const NAME: &'static str = "Windows.Security.Authentication.Web.Provider.WebAccountProviderAddAccountOperation"; } -::windows_core::imp::interface_hierarchy!(WebAccountProviderAddAccountOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for WebAccountProviderAddAccountOperation {} unsafe impl ::core::marker::Send for WebAccountProviderAddAccountOperation {} unsafe impl ::core::marker::Sync for WebAccountProviderAddAccountOperation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebAccountProviderDeleteAccountOperation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WebAccountProviderDeleteAccountOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(WebAccountProviderDeleteAccountOperation, IWebAccountProviderBaseReportOperation, IWebAccountProviderOperation); impl WebAccountProviderDeleteAccountOperation { pub fn ReportCompleted(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ReportCompleted)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Security_Authentication_Web_Core\"`"] @@ -1109,7 +889,7 @@ impl WebAccountProviderDeleteAccountOperation { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } #[doc = "Required features: `\"Security_Credentials\"`"] @@ -1122,7 +902,7 @@ impl WebAccountProviderDeleteAccountOperation { } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1134,24 +914,21 @@ impl ::windows_core::RuntimeType for WebAccountProviderDeleteAccountOperation { } unsafe impl ::windows_core::Interface for WebAccountProviderDeleteAccountOperation { type Vtable = IWebAccountProviderDeleteAccountOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WebAccountProviderDeleteAccountOperation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WebAccountProviderDeleteAccountOperation { const NAME: &'static str = "Windows.Security.Authentication.Web.Provider.WebAccountProviderDeleteAccountOperation"; } -::windows_core::imp::interface_hierarchy!(WebAccountProviderDeleteAccountOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for WebAccountProviderDeleteAccountOperation {} -impl ::windows_core::CanTryInto for WebAccountProviderDeleteAccountOperation {} unsafe impl ::core::marker::Send for WebAccountProviderDeleteAccountOperation {} unsafe impl ::core::marker::Sync for WebAccountProviderDeleteAccountOperation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebAccountProviderGetTokenSilentOperation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WebAccountProviderGetTokenSilentOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(WebAccountProviderGetTokenSilentOperation, IWebAccountProviderBaseReportOperation, IWebAccountProviderOperation, IWebAccountProviderSilentReportOperation, IWebAccountProviderTokenOperation); impl WebAccountProviderGetTokenSilentOperation { pub fn ReportCompleted(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ReportCompleted)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Security_Authentication_Web_Core\"`"] @@ -1160,18 +937,18 @@ impl WebAccountProviderGetTokenSilentOperation { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ReportUserInteractionRequired(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ReportUserInteractionRequired)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Security_Authentication_Web_Core\"`"] @@ -1180,7 +957,7 @@ impl WebAccountProviderGetTokenSilentOperation { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn ProviderRequest(&self) -> ::windows_core::Result { @@ -1216,23 +993,18 @@ impl ::windows_core::RuntimeType for WebAccountProviderGetTokenSilentOperation { } unsafe impl ::windows_core::Interface for WebAccountProviderGetTokenSilentOperation { type Vtable = IWebAccountProviderTokenOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WebAccountProviderGetTokenSilentOperation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WebAccountProviderGetTokenSilentOperation { const NAME: &'static str = "Windows.Security.Authentication.Web.Provider.WebAccountProviderGetTokenSilentOperation"; } -::windows_core::imp::interface_hierarchy!(WebAccountProviderGetTokenSilentOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for WebAccountProviderGetTokenSilentOperation {} -impl ::windows_core::CanTryInto for WebAccountProviderGetTokenSilentOperation {} -impl ::windows_core::CanTryInto for WebAccountProviderGetTokenSilentOperation {} -impl ::windows_core::CanTryInto for WebAccountProviderGetTokenSilentOperation {} unsafe impl ::core::marker::Send for WebAccountProviderGetTokenSilentOperation {} unsafe impl ::core::marker::Sync for WebAccountProviderGetTokenSilentOperation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebAccountProviderManageAccountOperation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WebAccountProviderManageAccountOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(WebAccountProviderManageAccountOperation, IWebAccountProviderOperation); impl WebAccountProviderManageAccountOperation { #[doc = "Required features: `\"Security_Credentials\"`"] #[cfg(feature = "Security_Credentials")] @@ -1248,7 +1020,7 @@ impl WebAccountProviderManageAccountOperation { unsafe { (::windows_core::Interface::vtable(this).ReportCompleted)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1260,23 +1032,21 @@ impl ::windows_core::RuntimeType for WebAccountProviderManageAccountOperation { } unsafe impl ::windows_core::Interface for WebAccountProviderManageAccountOperation { type Vtable = IWebAccountProviderManageAccountOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WebAccountProviderManageAccountOperation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WebAccountProviderManageAccountOperation { const NAME: &'static str = "Windows.Security.Authentication.Web.Provider.WebAccountProviderManageAccountOperation"; } -::windows_core::imp::interface_hierarchy!(WebAccountProviderManageAccountOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for WebAccountProviderManageAccountOperation {} unsafe impl ::core::marker::Send for WebAccountProviderManageAccountOperation {} unsafe impl ::core::marker::Sync for WebAccountProviderManageAccountOperation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebAccountProviderRequestTokenOperation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WebAccountProviderRequestTokenOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(WebAccountProviderRequestTokenOperation, IWebAccountProviderBaseReportOperation, IWebAccountProviderOperation, IWebAccountProviderTokenOperation, IWebAccountProviderUIReportOperation); impl WebAccountProviderRequestTokenOperation { pub fn ReportCompleted(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ReportCompleted)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Security_Authentication_Web_Core\"`"] @@ -1285,11 +1055,11 @@ impl WebAccountProviderRequestTokenOperation { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1323,7 +1093,7 @@ impl WebAccountProviderRequestTokenOperation { } } pub fn ReportUserCanceled(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ReportUserCanceled)(::windows_core::Interface::as_raw(this)).ok() } } } @@ -1332,26 +1102,21 @@ impl ::windows_core::RuntimeType for WebAccountProviderRequestTokenOperation { } unsafe impl ::windows_core::Interface for WebAccountProviderRequestTokenOperation { type Vtable = IWebAccountProviderTokenOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WebAccountProviderRequestTokenOperation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WebAccountProviderRequestTokenOperation { const NAME: &'static str = "Windows.Security.Authentication.Web.Provider.WebAccountProviderRequestTokenOperation"; } -::windows_core::imp::interface_hierarchy!(WebAccountProviderRequestTokenOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for WebAccountProviderRequestTokenOperation {} -impl ::windows_core::CanTryInto for WebAccountProviderRequestTokenOperation {} -impl ::windows_core::CanTryInto for WebAccountProviderRequestTokenOperation {} -impl ::windows_core::CanTryInto for WebAccountProviderRequestTokenOperation {} unsafe impl ::core::marker::Send for WebAccountProviderRequestTokenOperation {} unsafe impl ::core::marker::Sync for WebAccountProviderRequestTokenOperation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebAccountProviderRetrieveCookiesOperation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WebAccountProviderRetrieveCookiesOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(WebAccountProviderRetrieveCookiesOperation, IWebAccountProviderBaseReportOperation, IWebAccountProviderOperation); impl WebAccountProviderRetrieveCookiesOperation { pub fn ReportCompleted(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ReportCompleted)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Security_Authentication_Web_Core\"`"] @@ -1360,11 +1125,11 @@ impl WebAccountProviderRetrieveCookiesOperation { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1413,24 +1178,21 @@ impl ::windows_core::RuntimeType for WebAccountProviderRetrieveCookiesOperation } unsafe impl ::windows_core::Interface for WebAccountProviderRetrieveCookiesOperation { type Vtable = IWebAccountProviderRetrieveCookiesOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WebAccountProviderRetrieveCookiesOperation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WebAccountProviderRetrieveCookiesOperation { const NAME: &'static str = "Windows.Security.Authentication.Web.Provider.WebAccountProviderRetrieveCookiesOperation"; } -::windows_core::imp::interface_hierarchy!(WebAccountProviderRetrieveCookiesOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for WebAccountProviderRetrieveCookiesOperation {} -impl ::windows_core::CanTryInto for WebAccountProviderRetrieveCookiesOperation {} unsafe impl ::core::marker::Send for WebAccountProviderRetrieveCookiesOperation {} unsafe impl ::core::marker::Sync for WebAccountProviderRetrieveCookiesOperation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebAccountProviderSignOutAccountOperation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WebAccountProviderSignOutAccountOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(WebAccountProviderSignOutAccountOperation, IWebAccountProviderBaseReportOperation, IWebAccountProviderOperation); impl WebAccountProviderSignOutAccountOperation { pub fn ReportCompleted(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ReportCompleted)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Security_Authentication_Web_Core\"`"] @@ -1439,11 +1201,11 @@ impl WebAccountProviderSignOutAccountOperation { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1478,21 +1240,18 @@ impl ::windows_core::RuntimeType for WebAccountProviderSignOutAccountOperation { } unsafe impl ::windows_core::Interface for WebAccountProviderSignOutAccountOperation { type Vtable = IWebAccountProviderSignOutAccountOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WebAccountProviderSignOutAccountOperation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WebAccountProviderSignOutAccountOperation { const NAME: &'static str = "Windows.Security.Authentication.Web.Provider.WebAccountProviderSignOutAccountOperation"; } -::windows_core::imp::interface_hierarchy!(WebAccountProviderSignOutAccountOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for WebAccountProviderSignOutAccountOperation {} -impl ::windows_core::CanTryInto for WebAccountProviderSignOutAccountOperation {} unsafe impl ::core::marker::Send for WebAccountProviderSignOutAccountOperation {} unsafe impl ::core::marker::Sync for WebAccountProviderSignOutAccountOperation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebAccountProviderTriggerDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WebAccountProviderTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(WebAccountProviderTriggerDetails, IWebAccountProviderTokenObjects, IWebAccountProviderTokenObjects2); impl WebAccountProviderTriggerDetails { pub fn Operation(&self) -> ::windows_core::Result { let this = self; @@ -1504,7 +1263,7 @@ impl WebAccountProviderTriggerDetails { #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1516,21 +1275,17 @@ impl ::windows_core::RuntimeType for WebAccountProviderTriggerDetails { } unsafe impl ::windows_core::Interface for WebAccountProviderTriggerDetails { type Vtable = IWebAccountProviderTokenObjects_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WebAccountProviderTriggerDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WebAccountProviderTriggerDetails { const NAME: &'static str = "Windows.Security.Authentication.Web.Provider.WebAccountProviderTriggerDetails"; } -::windows_core::imp::interface_hierarchy!(WebAccountProviderTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for WebAccountProviderTriggerDetails {} -impl ::windows_core::CanTryInto for WebAccountProviderTriggerDetails {} unsafe impl ::core::marker::Send for WebAccountProviderTriggerDetails {} unsafe impl ::core::marker::Sync for WebAccountProviderTriggerDetails {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebProviderTokenRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WebProviderTokenRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WebProviderTokenRequest { #[doc = "Required features: `\"Security_Authentication_Web_Core\"`"] #[cfg(feature = "Security_Authentication_Web_Core")] @@ -1582,28 +1337,28 @@ impl WebProviderTokenRequest { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn ApplicationPackageFamilyName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ApplicationPackageFamilyName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ApplicationProcessName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ApplicationProcessName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CheckApplicationForCapabilityAsync(&self, capabilityname: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CheckApplicationForCapabilityAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(capabilityname), &mut result__).from_abi(result__) @@ -1615,19 +1370,17 @@ impl ::windows_core::RuntimeType for WebProviderTokenRequest { } unsafe impl ::windows_core::Interface for WebProviderTokenRequest { type Vtable = IWebProviderTokenRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WebProviderTokenRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WebProviderTokenRequest { const NAME: &'static str = "Windows.Security.Authentication.Web.Provider.WebProviderTokenRequest"; } -::windows_core::imp::interface_hierarchy!(WebProviderTokenRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for WebProviderTokenRequest {} unsafe impl ::core::marker::Sync for WebProviderTokenRequest {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebProviderTokenResponse(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WebProviderTokenResponse, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WebProviderTokenResponse { #[doc = "Required features: `\"Security_Authentication_Web_Core\"`"] #[cfg(feature = "Security_Authentication_Web_Core")] @@ -1660,14 +1413,11 @@ impl ::windows_core::RuntimeType for WebProviderTokenResponse { } unsafe impl ::windows_core::Interface for WebProviderTokenResponse { type Vtable = IWebProviderTokenResponse_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WebProviderTokenResponse { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WebProviderTokenResponse { const NAME: &'static str = "Windows.Security.Authentication.Web.Provider.WebProviderTokenResponse"; } -::windows_core::imp::interface_hierarchy!(WebProviderTokenResponse, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for WebProviderTokenResponse {} unsafe impl ::core::marker::Sync for WebProviderTokenResponse {} #[repr(transparent)] 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 0cd6c51aca..e00763cc8a 100644 --- a/crates/libs/windows/src/Windows/Security/Authentication/Web/mod.rs +++ b/crates/libs/windows/src/Windows/Security/Authentication/Web/mod.rs @@ -4,16 +4,7 @@ pub mod Core; #[cfg(feature = "Security_Authentication_Web_Provider")] #[doc = "Required features: `\"Security_Authentication_Web_Provider\"`"] pub mod Provider; -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebAuthenticationBrokerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebAuthenticationBrokerStatics { - type Vtable = IWebAuthenticationBrokerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebAuthenticationBrokerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2f149f1a_e673_40b5_bc22_201a6864a37b); -} +::windows_core::imp::com_interface!(IWebAuthenticationBrokerStatics, IWebAuthenticationBrokerStatics_Vtbl, 0x2f149f1a_e673_40b5_bc22_201a6864a37b); #[repr(C)] #[doc(hidden)] pub struct IWebAuthenticationBrokerStatics_Vtbl { @@ -22,16 +13,7 @@ pub struct IWebAuthenticationBrokerStatics_Vtbl { pub AuthenticateWithoutCallbackUriAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, options: WebAuthenticationOptions, requesturi: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetCurrentApplicationCallbackUri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebAuthenticationBrokerStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebAuthenticationBrokerStatics2 { - type Vtable = IWebAuthenticationBrokerStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebAuthenticationBrokerStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x73cdfb9e_14e7_41da_a971_aaf4410b621e); -} +::windows_core::imp::com_interface!(IWebAuthenticationBrokerStatics2, IWebAuthenticationBrokerStatics2_Vtbl, 0x73cdfb9e_14e7_41da_a971_aaf4410b621e); #[repr(C)] #[doc(hidden)] pub struct IWebAuthenticationBrokerStatics2_Vtbl { @@ -45,16 +27,7 @@ pub struct IWebAuthenticationBrokerStatics2_Vtbl { pub AuthenticateSilentlyAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, requesturi: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub AuthenticateSilentlyWithOptionsAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, requesturi: *mut ::core::ffi::c_void, options: WebAuthenticationOptions, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebAuthenticationResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebAuthenticationResult { - type Vtable = IWebAuthenticationResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebAuthenticationResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x64002b4b_ede9_470a_a5cd_0323faf6e262); -} +::windows_core::imp::com_interface!(IWebAuthenticationResult, IWebAuthenticationResult_Vtbl, 0x64002b4b_ede9_470a_a5cd_0323faf6e262); #[repr(C)] #[doc(hidden)] pub struct IWebAuthenticationResult_Vtbl { @@ -148,6 +121,7 @@ impl ::windows_core::RuntimeName for WebAuthenticationBroker { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebAuthenticationResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WebAuthenticationResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WebAuthenticationResult { pub fn ResponseData(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -176,14 +150,11 @@ impl ::windows_core::RuntimeType for WebAuthenticationResult { } unsafe impl ::windows_core::Interface for WebAuthenticationResult { type Vtable = IWebAuthenticationResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WebAuthenticationResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WebAuthenticationResult { const NAME: &'static str = "Windows.Security.Authentication.Web.WebAuthenticationResult"; } -::windows_core::imp::interface_hierarchy!(WebAuthenticationResult, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::marker::Copy, ::core::clone::Clone, ::core::default::Default)] pub struct TokenBindingKeyType(pub i32); 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 462a4159ef..6cadc396bb 100644 --- a/crates/libs/windows/src/Windows/Security/Authorization/AppCapabilityAccess/mod.rs +++ b/crates/libs/windows/src/Windows/Security/Authorization/AppCapabilityAccess/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppCapability(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppCapability { - type Vtable = IAppCapability_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppCapability { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4c49d915_8a2a_4295_9437_2df7c396aff4); -} +::windows_core::imp::com_interface!(IAppCapability, IAppCapability_Vtbl, 0x4c49d915_8a2a_4295_9437_2df7c396aff4); #[repr(C)] #[doc(hidden)] pub struct IAppCapability_Vtbl { @@ -22,16 +13,7 @@ pub struct IAppCapability_Vtbl { pub AccessChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveAccessChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppCapability2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppCapability2 { - type Vtable = IAppCapability2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppCapability2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x11c7ccb6_c74f_50a3_b960_88008767d939); -} +::windows_core::imp::com_interface!(IAppCapability2, IAppCapability2_Vtbl, 0x11c7ccb6_c74f_50a3_b960_88008767d939); #[repr(C)] #[doc(hidden)] pub struct IAppCapability2_Vtbl { @@ -39,31 +21,13 @@ pub struct IAppCapability2_Vtbl { pub DisplayMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetDisplayMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppCapabilityAccessChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppCapabilityAccessChangedEventArgs { - type Vtable = IAppCapabilityAccessChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppCapabilityAccessChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0a578d15_bdd7_457e_8cca_6f53bd2e5944); -} +::windows_core::imp::com_interface!(IAppCapabilityAccessChangedEventArgs, IAppCapabilityAccessChangedEventArgs_Vtbl, 0x0a578d15_bdd7_457e_8cca_6f53bd2e5944); #[repr(C)] #[doc(hidden)] pub struct IAppCapabilityAccessChangedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppCapabilityStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppCapabilityStatics { - type Vtable = IAppCapabilityStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppCapabilityStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7c353e2a_46ee_44e5_af3d_6ad3fc49bd22); -} +::windows_core::imp::com_interface!(IAppCapabilityStatics, IAppCapabilityStatics_Vtbl, 0x7c353e2a_46ee_44e5_af3d_6ad3fc49bd22); #[repr(C)] #[doc(hidden)] pub struct IAppCapabilityStatics_Vtbl { @@ -85,6 +49,7 @@ pub struct IAppCapabilityStatics_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppCapability(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppCapability, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppCapability { pub fn CapabilityName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -131,25 +96,25 @@ impl AppCapability { unsafe { (::windows_core::Interface::vtable(this).RemoveAccessChanged)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn DisplayMessage(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DisplayMessage)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDisplayMessage(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDisplayMessage)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn RequestAccessForCapabilitiesAsync(capabilitynames: P0) -> ::windows_core::Result>> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::IAppCapabilityStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).RequestAccessForCapabilitiesAsync)(::windows_core::Interface::as_raw(this), capabilitynames.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).RequestAccessForCapabilitiesAsync)(::windows_core::Interface::as_raw(this), capabilitynames.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`, `\"System\"`"] @@ -157,11 +122,11 @@ impl AppCapability { pub fn RequestAccessForCapabilitiesForUserAsync(user: P0, capabilitynames: P1) -> ::windows_core::Result>> where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam>, + P1: ::windows_core::IntoParam>, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).RequestAccessForCapabilitiesForUserAsync)(::windows_core::Interface::as_raw(this), user.into_param().abi(), capabilitynames.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn Create(capabilityname: &::windows_core::HSTRING) -> ::windows_core::Result { @@ -192,33 +157,28 @@ impl ::windows_core::RuntimeType for AppCapability { } unsafe impl ::windows_core::Interface for AppCapability { type Vtable = IAppCapability_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppCapability { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppCapability { const NAME: &'static str = "Windows.Security.Authorization.AppCapabilityAccess.AppCapability"; } -::windows_core::imp::interface_hierarchy!(AppCapability, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppCapability {} unsafe impl ::core::marker::Sync for AppCapability {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppCapabilityAccessChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppCapabilityAccessChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppCapabilityAccessChangedEventArgs {} impl ::windows_core::RuntimeType for AppCapabilityAccessChangedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_class::(); } unsafe impl ::windows_core::Interface for AppCapabilityAccessChangedEventArgs { type Vtable = IAppCapabilityAccessChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppCapabilityAccessChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppCapabilityAccessChangedEventArgs { const NAME: &'static str = "Windows.Security.Authorization.AppCapabilityAccess.AppCapabilityAccessChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(AppCapabilityAccessChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppCapabilityAccessChangedEventArgs {} unsafe impl ::core::marker::Sync for AppCapabilityAccessChangedEventArgs {} #[repr(transparent)] 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 ed60d4fa69..d17ee375f5 100644 --- a/crates/libs/windows/src/Windows/Security/Credentials/UI/mod.rs +++ b/crates/libs/windows/src/Windows/Security/Credentials/UI/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICredentialPickerOptions(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICredentialPickerOptions { - type Vtable = ICredentialPickerOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICredentialPickerOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x965a0b4c_95fa_467f_992b_0b22e5859bf6); -} +::windows_core::imp::com_interface!(ICredentialPickerOptions, ICredentialPickerOptions_Vtbl, 0x965a0b4c_95fa_467f_992b_0b22e5859bf6); #[repr(C)] #[doc(hidden)] pub struct ICredentialPickerOptions_Vtbl { @@ -39,16 +30,7 @@ pub struct ICredentialPickerOptions_Vtbl { pub SetCredentialSaveOption: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: CredentialSaveOption) -> ::windows_core::HRESULT, pub CredentialSaveOption: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut CredentialSaveOption) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICredentialPickerResults(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICredentialPickerResults { - type Vtable = ICredentialPickerResults_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICredentialPickerResults { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1948f99a_cc30_410c_9c38_cc0884c5b3d7); -} +::windows_core::imp::com_interface!(ICredentialPickerResults, ICredentialPickerResults_Vtbl, 0x1948f99a_cc30_410c_9c38_cc0884c5b3d7); #[repr(C)] #[doc(hidden)] pub struct ICredentialPickerResults_Vtbl { @@ -64,16 +46,7 @@ pub struct ICredentialPickerResults_Vtbl { pub CredentialUserName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub CredentialPassword: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICredentialPickerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICredentialPickerStatics { - type Vtable = ICredentialPickerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICredentialPickerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaa3a5c73_c9ea_4782_99fb_e6d7e938e12d); -} +::windows_core::imp::com_interface!(ICredentialPickerStatics, ICredentialPickerStatics_Vtbl, 0xaa3a5c73_c9ea_4782_99fb_e6d7e938e12d); #[repr(C)] #[doc(hidden)] pub struct ICredentialPickerStatics_Vtbl { @@ -82,16 +55,7 @@ pub struct ICredentialPickerStatics_Vtbl { pub PickWithMessageAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, targetname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, message: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub PickWithCaptionAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, targetname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, message: ::std::mem::MaybeUninit<::windows_core::HSTRING>, caption: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserConsentVerifierStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserConsentVerifierStatics { - type Vtable = IUserConsentVerifierStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserConsentVerifierStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaf4f3f91_564c_4ddc_b8b5_973447627c65); -} +::windows_core::imp::com_interface!(IUserConsentVerifierStatics, IUserConsentVerifierStatics_Vtbl, 0xaf4f3f91_564c_4ddc_b8b5_973447627c65); #[repr(C)] #[doc(hidden)] pub struct IUserConsentVerifierStatics_Vtbl { @@ -134,6 +98,7 @@ impl ::windows_core::RuntimeName for CredentialPicker { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CredentialPickerOptions(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CredentialPickerOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CredentialPickerOptions { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -212,10 +177,10 @@ impl CredentialPickerOptions { #[cfg(feature = "Storage_Streams")] pub fn SetPreviousCredential(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetPreviousCredential)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetPreviousCredential)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] @@ -265,17 +230,15 @@ impl ::windows_core::RuntimeType for CredentialPickerOptions { } unsafe impl ::windows_core::Interface for CredentialPickerOptions { type Vtable = ICredentialPickerOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CredentialPickerOptions { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CredentialPickerOptions { const NAME: &'static str = "Windows.Security.Credentials.UI.CredentialPickerOptions"; } -::windows_core::imp::interface_hierarchy!(CredentialPickerOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CredentialPickerResults(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CredentialPickerResults, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CredentialPickerResults { pub fn ErrorCode(&self) -> ::windows_core::Result { let this = self; @@ -334,14 +297,11 @@ impl ::windows_core::RuntimeType for CredentialPickerResults { } unsafe impl ::windows_core::Interface for CredentialPickerResults { type Vtable = ICredentialPickerResults_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CredentialPickerResults { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CredentialPickerResults { const NAME: &'static str = "Windows.Security.Credentials.UI.CredentialPickerResults"; } -::windows_core::imp::interface_hierarchy!(CredentialPickerResults, ::windows_core::IUnknown, ::windows_core::IInspectable); pub struct UserConsentVerifier; impl UserConsentVerifier { pub fn CheckAvailabilityAsync() -> ::windows_core::Result> { diff --git a/crates/libs/windows/src/Windows/Security/Credentials/impl.rs b/crates/libs/windows/src/Windows/Security/Credentials/impl.rs index 0f31ced7c9..430911721f 100644 --- a/crates/libs/windows/src/Windows/Security/Credentials/impl.rs +++ b/crates/libs/windows/src/Windows/Security/Credentials/impl.rs @@ -51,6 +51,6 @@ impl IWebAccount_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/Security/Credentials/mod.rs b/crates/libs/windows/src/Windows/Security/Credentials/mod.rs index 553472433b..ca7545f86a 100644 --- a/crates/libs/windows/src/Windows/Security/Credentials/mod.rs +++ b/crates/libs/windows/src/Windows/Security/Credentials/mod.rs @@ -1,32 +1,14 @@ #[cfg(feature = "Security_Credentials_UI")] #[doc = "Required features: `\"Security_Credentials_UI\"`"] pub mod UI; -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICredentialFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICredentialFactory { - type Vtable = ICredentialFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICredentialFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x54ef13a1_bf26_47b5_97dd_de779b7cad58); -} +::windows_core::imp::com_interface!(ICredentialFactory, ICredentialFactory_Vtbl, 0x54ef13a1_bf26_47b5_97dd_de779b7cad58); #[repr(C)] #[doc(hidden)] pub struct ICredentialFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreatePasswordCredential: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, resource: ::std::mem::MaybeUninit<::windows_core::HSTRING>, username: ::std::mem::MaybeUninit<::windows_core::HSTRING>, password: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKeyCredential(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKeyCredential { - type Vtable = IKeyCredential_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKeyCredential { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9585ef8d_457b_4847_b11a_fa960bbdb138); -} +::windows_core::imp::com_interface!(IKeyCredential, IKeyCredential_Vtbl, 0x9585ef8d_457b_4847_b11a_fa960bbdb138); #[repr(C)] #[doc(hidden)] pub struct IKeyCredential_Vtbl { @@ -46,16 +28,7 @@ pub struct IKeyCredential_Vtbl { RequestSignAsync: usize, pub GetAttestationAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKeyCredentialAttestationResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKeyCredentialAttestationResult { - type Vtable = IKeyCredentialAttestationResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKeyCredentialAttestationResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x78aab3a1_a3c1_4103_b6cc_472c44171cbb); -} +::windows_core::imp::com_interface!(IKeyCredentialAttestationResult, IKeyCredentialAttestationResult_Vtbl, 0x78aab3a1_a3c1_4103_b6cc_472c44171cbb); #[repr(C)] #[doc(hidden)] pub struct IKeyCredentialAttestationResult_Vtbl { @@ -70,16 +43,7 @@ pub struct IKeyCredentialAttestationResult_Vtbl { AttestationBuffer: usize, pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut KeyCredentialAttestationStatus) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKeyCredentialManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKeyCredentialManagerStatics { - type Vtable = IKeyCredentialManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKeyCredentialManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6aac468b_0ef1_4ce0_8290_4106da6a63b5); -} +::windows_core::imp::com_interface!(IKeyCredentialManagerStatics, IKeyCredentialManagerStatics_Vtbl, 0x6aac468b_0ef1_4ce0_8290_4106da6a63b5); #[repr(C)] #[doc(hidden)] pub struct IKeyCredentialManagerStatics_Vtbl { @@ -90,16 +54,7 @@ pub struct IKeyCredentialManagerStatics_Vtbl { pub OpenAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub DeleteAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKeyCredentialOperationResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKeyCredentialOperationResult { - type Vtable = IKeyCredentialOperationResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKeyCredentialOperationResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf53786c1_5261_4cdd_976d_cc909ac71620); -} +::windows_core::imp::com_interface!(IKeyCredentialOperationResult, IKeyCredentialOperationResult_Vtbl, 0xf53786c1_5261_4cdd_976d_cc909ac71620); #[repr(C)] #[doc(hidden)] pub struct IKeyCredentialOperationResult_Vtbl { @@ -110,16 +65,7 @@ pub struct IKeyCredentialOperationResult_Vtbl { Result: usize, pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut KeyCredentialStatus) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKeyCredentialRetrievalResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKeyCredentialRetrievalResult { - type Vtable = IKeyCredentialRetrievalResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKeyCredentialRetrievalResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x58cd7703_8d87_4249_9b58_f6598cc9644e); -} +::windows_core::imp::com_interface!(IKeyCredentialRetrievalResult, IKeyCredentialRetrievalResult_Vtbl, 0x58cd7703_8d87_4249_9b58_f6598cc9644e); #[repr(C)] #[doc(hidden)] pub struct IKeyCredentialRetrievalResult_Vtbl { @@ -127,16 +73,7 @@ pub struct IKeyCredentialRetrievalResult_Vtbl { pub Credential: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut KeyCredentialStatus) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPasswordCredential(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPasswordCredential { - type Vtable = IPasswordCredential_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPasswordCredential { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6ab18989_c720_41a7_a6c1_feadb36329a0); -} +::windows_core::imp::com_interface!(IPasswordCredential, IPasswordCredential_Vtbl, 0x6ab18989_c720_41a7_a6c1_feadb36329a0); #[repr(C)] #[doc(hidden)] pub struct IPasswordCredential_Vtbl { @@ -153,16 +90,7 @@ pub struct IPasswordCredential_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Properties: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPasswordVault(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPasswordVault { - type Vtable = IPasswordVault_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPasswordVault { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x61fd2c0b_c8d4_48c1_a54f_bc5a64205af2); -} +::windows_core::imp::com_interface!(IPasswordVault, IPasswordVault_Vtbl, 0x61fd2c0b_c8d4_48c1_a54f_bc5a64205af2); #[repr(C)] #[doc(hidden)] pub struct IPasswordVault_Vtbl { @@ -183,9 +111,8 @@ pub struct IPasswordVault_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] RetrieveAll: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebAccount(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWebAccount, IWebAccount_Vtbl, 0x69473eb2_8031_49be_80bb_96cb46d99aba); +::windows_core::imp::interface_hierarchy!(IWebAccount, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IWebAccount { pub fn WebAccountProvider(&self) -> ::windows_core::Result { let this = self; @@ -209,16 +136,9 @@ impl IWebAccount { } } } -::windows_core::imp::interface_hierarchy!(IWebAccount, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IWebAccount { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IWebAccount { - type Vtable = IWebAccount_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebAccount { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x69473eb2_8031_49be_80bb_96cb46d99aba); -} #[repr(C)] #[doc(hidden)] pub struct IWebAccount_Vtbl { @@ -227,16 +147,7 @@ pub struct IWebAccount_Vtbl { pub UserName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub State: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut WebAccountState) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebAccount2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebAccount2 { - type Vtable = IWebAccount2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebAccount2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7b56d6f8_990b_4eb5_94a7_5621f3a8b824); -} +::windows_core::imp::com_interface!(IWebAccount2, IWebAccount2_Vtbl, 0x7b56d6f8_990b_4eb5_94a7_5621f3a8b824); #[repr(C)] #[doc(hidden)] pub struct IWebAccount2_Vtbl { @@ -253,32 +164,14 @@ pub struct IWebAccount2_Vtbl { pub SignOutAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SignOutWithClientIdAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, clientid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebAccountFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebAccountFactory { - type Vtable = IWebAccountFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebAccountFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xac9afb39_1de9_4e92_b78f_0581a87f6e5c); -} +::windows_core::imp::com_interface!(IWebAccountFactory, IWebAccountFactory_Vtbl, 0xac9afb39_1de9_4e92_b78f_0581a87f6e5c); #[repr(C)] #[doc(hidden)] pub struct IWebAccountFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateWebAccount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, webaccountprovider: *mut ::core::ffi::c_void, username: ::std::mem::MaybeUninit<::windows_core::HSTRING>, state: WebAccountState, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebAccountProvider(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebAccountProvider { - type Vtable = IWebAccountProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebAccountProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x29dcc8c3_7ab9_4a7c_a336_b942f9dbf7c7); -} +::windows_core::imp::com_interface!(IWebAccountProvider, IWebAccountProvider_Vtbl, 0x29dcc8c3_7ab9_4a7c_a336_b942f9dbf7c7); #[repr(C)] #[doc(hidden)] pub struct IWebAccountProvider_Vtbl { @@ -290,16 +183,7 @@ pub struct IWebAccountProvider_Vtbl { #[cfg(not(feature = "deprecated"))] IconUri: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebAccountProvider2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebAccountProvider2 { - type Vtable = IWebAccountProvider2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebAccountProvider2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4a01eb05_4e42_41d4_b518_e008a5163614); -} +::windows_core::imp::com_interface!(IWebAccountProvider2, IWebAccountProvider2_Vtbl, 0x4a01eb05_4e42_41d4_b518_e008a5163614); #[repr(C)] #[doc(hidden)] pub struct IWebAccountProvider2_Vtbl { @@ -307,16 +191,7 @@ pub struct IWebAccountProvider2_Vtbl { pub DisplayPurpose: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Authority: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebAccountProvider3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebAccountProvider3 { - type Vtable = IWebAccountProvider3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebAccountProvider3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xda1c518b_970d_4d49_825c_f2706f8ca7fe); -} +::windows_core::imp::com_interface!(IWebAccountProvider3, IWebAccountProvider3_Vtbl, 0xda1c518b_970d_4d49_825c_f2706f8ca7fe); #[repr(C)] #[doc(hidden)] pub struct IWebAccountProvider3_Vtbl { @@ -326,32 +201,14 @@ pub struct IWebAccountProvider3_Vtbl { #[cfg(not(feature = "System"))] User: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebAccountProvider4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebAccountProvider4 { - type Vtable = IWebAccountProvider4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebAccountProvider4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x718fd8db_e796_4210_b74e_84d29894b080); -} +::windows_core::imp::com_interface!(IWebAccountProvider4, IWebAccountProvider4_Vtbl, 0x718fd8db_e796_4210_b74e_84d29894b080); #[repr(C)] #[doc(hidden)] pub struct IWebAccountProvider4_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub IsSystemProvider: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebAccountProviderFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebAccountProviderFactory { - type Vtable = IWebAccountProviderFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebAccountProviderFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1d767df1_e1e1_4b9a_a774_5c7c7e3bf371); -} +::windows_core::imp::com_interface!(IWebAccountProviderFactory, IWebAccountProviderFactory_Vtbl, 0x1d767df1_e1e1_4b9a_a774_5c7c7e3bf371); #[repr(C)] #[doc(hidden)] pub struct IWebAccountProviderFactory_Vtbl { @@ -361,6 +218,7 @@ pub struct IWebAccountProviderFactory_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct KeyCredential(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(KeyCredential, ::windows_core::IUnknown, ::windows_core::IInspectable); impl KeyCredential { pub fn Name(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -391,12 +249,12 @@ impl KeyCredential { #[cfg(feature = "Storage_Streams")] pub fn RequestSignAsync(&self, data: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).RequestSignAsync)(::windows_core::Interface::as_raw(this), data.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).RequestSignAsync)(::windows_core::Interface::as_raw(this), data.into_param().abi(), &mut result__).from_abi(result__) } } pub fn GetAttestationAsync(&self) -> ::windows_core::Result> { @@ -412,19 +270,17 @@ impl ::windows_core::RuntimeType for KeyCredential { } unsafe impl ::windows_core::Interface for KeyCredential { type Vtable = IKeyCredential_Vtbl; -} -unsafe impl ::windows_core::ComInterface for KeyCredential { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for KeyCredential { const NAME: &'static str = "Windows.Security.Credentials.KeyCredential"; } -::windows_core::imp::interface_hierarchy!(KeyCredential, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for KeyCredential {} unsafe impl ::core::marker::Sync for KeyCredential {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct KeyCredentialAttestationResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(KeyCredentialAttestationResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl KeyCredentialAttestationResult { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] @@ -457,14 +313,11 @@ impl ::windows_core::RuntimeType for KeyCredentialAttestationResult { } unsafe impl ::windows_core::Interface for KeyCredentialAttestationResult { type Vtable = IKeyCredentialAttestationResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for KeyCredentialAttestationResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for KeyCredentialAttestationResult { const NAME: &'static str = "Windows.Security.Credentials.KeyCredentialAttestationResult"; } -::windows_core::imp::interface_hierarchy!(KeyCredentialAttestationResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for KeyCredentialAttestationResult {} unsafe impl ::core::marker::Sync for KeyCredentialAttestationResult {} pub struct KeyCredentialManager; @@ -511,6 +364,7 @@ impl ::windows_core::RuntimeName for KeyCredentialManager { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct KeyCredentialOperationResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(KeyCredentialOperationResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl KeyCredentialOperationResult { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] @@ -534,19 +388,17 @@ impl ::windows_core::RuntimeType for KeyCredentialOperationResult { } unsafe impl ::windows_core::Interface for KeyCredentialOperationResult { type Vtable = IKeyCredentialOperationResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for KeyCredentialOperationResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for KeyCredentialOperationResult { const NAME: &'static str = "Windows.Security.Credentials.KeyCredentialOperationResult"; } -::windows_core::imp::interface_hierarchy!(KeyCredentialOperationResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for KeyCredentialOperationResult {} unsafe impl ::core::marker::Sync for KeyCredentialOperationResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct KeyCredentialRetrievalResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(KeyCredentialRetrievalResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl KeyCredentialRetrievalResult { pub fn Credential(&self) -> ::windows_core::Result { let this = self; @@ -568,19 +420,17 @@ impl ::windows_core::RuntimeType for KeyCredentialRetrievalResult { } unsafe impl ::windows_core::Interface for KeyCredentialRetrievalResult { type Vtable = IKeyCredentialRetrievalResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for KeyCredentialRetrievalResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for KeyCredentialRetrievalResult { const NAME: &'static str = "Windows.Security.Credentials.KeyCredentialRetrievalResult"; } -::windows_core::imp::interface_hierarchy!(KeyCredentialRetrievalResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for KeyCredentialRetrievalResult {} unsafe impl ::core::marker::Sync for KeyCredentialRetrievalResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PasswordCredential(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PasswordCredential, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PasswordCredential { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -652,14 +502,11 @@ impl ::windows_core::RuntimeType for PasswordCredential { } unsafe impl ::windows_core::Interface for PasswordCredential { type Vtable = IPasswordCredential_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PasswordCredential { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PasswordCredential { const NAME: &'static str = "Windows.Security.Credentials.PasswordCredential"; } -::windows_core::imp::interface_hierarchy!(PasswordCredential, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PasswordCredential {} unsafe impl ::core::marker::Sync for PasswordCredential {} #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -668,6 +515,10 @@ unsafe impl ::core::marker::Sync for PasswordCredential {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PasswordCredentialPropertyStore(::windows_core::IUnknown); #[cfg(feature = "Foundation_Collections")] +::windows_core::imp::interface_hierarchy!(PasswordCredentialPropertyStore, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(PasswordCredentialPropertyStore, super::super::Foundation::Collections::IIterable::>, super::super::Foundation::Collections::IMap::<::windows_core::HSTRING, ::windows_core::IInspectable>, super::super::Foundation::Collections::IObservableMap::<::windows_core::HSTRING, ::windows_core::IInspectable>, super::super::Foundation::Collections::IPropertySet); +#[cfg(feature = "Foundation_Collections")] impl PasswordCredentialPropertyStore { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -679,7 +530,7 @@ impl PasswordCredentialPropertyStore { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> ::windows_core::Result>> { - let this = &::windows_core::ComInterface::cast::>>(self)?; + let this = &::windows_core::Interface::cast::>>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -688,7 +539,7 @@ impl PasswordCredentialPropertyStore { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Lookup(&self, key: &::windows_core::HSTRING) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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), ::core::mem::transmute_copy(key), &mut result__).from_abi(result__) @@ -697,7 +548,7 @@ impl PasswordCredentialPropertyStore { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Size(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Size)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -706,7 +557,7 @@ impl PasswordCredentialPropertyStore { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn HasKey(&self, key: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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), ::core::mem::transmute_copy(key), &mut result__).from_abi(result__) @@ -715,7 +566,7 @@ impl PasswordCredentialPropertyStore { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetView(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetView)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -727,7 +578,7 @@ impl PasswordCredentialPropertyStore { where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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__).from_abi(result__) @@ -736,13 +587,13 @@ impl PasswordCredentialPropertyStore { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Remove(&self, key: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).Remove)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Clear(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).Clear)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -751,7 +602,7 @@ impl PasswordCredentialPropertyStore { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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__).from_abi(result__) @@ -760,7 +611,7 @@ impl PasswordCredentialPropertyStore { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn RemoveMapChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveMapChanged)(::windows_core::Interface::as_raw(this), token).ok() } } } @@ -771,10 +622,7 @@ impl ::windows_core::RuntimeType for PasswordCredentialPropertyStore { #[cfg(feature = "Foundation_Collections")] unsafe impl ::windows_core::Interface for PasswordCredentialPropertyStore { type Vtable = super::super::Foundation::Collections::IPropertySet_Vtbl; -} -#[cfg(feature = "Foundation_Collections")] -unsafe impl ::windows_core::ComInterface for PasswordCredentialPropertyStore { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "Foundation_Collections")] impl ::windows_core::RuntimeName for PasswordCredentialPropertyStore { @@ -797,22 +645,13 @@ impl ::core::iter::IntoIterator for &PasswordCredentialPropertyStore { } } #[cfg(feature = "Foundation_Collections")] -::windows_core::imp::interface_hierarchy!(PasswordCredentialPropertyStore, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto>> for PasswordCredentialPropertyStore {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for PasswordCredentialPropertyStore {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for PasswordCredentialPropertyStore {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto for PasswordCredentialPropertyStore {} -#[cfg(feature = "Foundation_Collections")] unsafe impl ::core::marker::Send for PasswordCredentialPropertyStore {} #[cfg(feature = "Foundation_Collections")] unsafe impl ::core::marker::Sync for PasswordCredentialPropertyStore {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PasswordVault(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PasswordVault, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PasswordVault { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -875,19 +714,18 @@ impl ::windows_core::RuntimeType for PasswordVault { } unsafe impl ::windows_core::Interface for PasswordVault { type Vtable = IPasswordVault_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PasswordVault { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PasswordVault { const NAME: &'static str = "Windows.Security.Credentials.PasswordVault"; } -::windows_core::imp::interface_hierarchy!(PasswordVault, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PasswordVault {} unsafe impl ::core::marker::Sync for PasswordVault {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebAccount(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WebAccount, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(WebAccount, IWebAccount); impl WebAccount { pub fn WebAccountProvider(&self) -> ::windows_core::Result { let this = self; @@ -911,7 +749,7 @@ impl WebAccount { } } pub fn Id(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Id)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -920,7 +758,7 @@ impl WebAccount { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Properties(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -929,21 +767,21 @@ impl WebAccount { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn GetPictureAsync(&self, desizedsize: WebAccountPictureSize) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetPictureAsync)(::windows_core::Interface::as_raw(this), desizedsize, &mut result__).from_abi(result__) } } pub fn SignOutAsync(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SignOutAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SignOutWithClientIdAsync(&self, clientid: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SignOutWithClientIdAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(clientid), &mut result__).from_abi(result__) @@ -969,20 +807,17 @@ impl ::windows_core::RuntimeType for WebAccount { } unsafe impl ::windows_core::Interface for WebAccount { type Vtable = IWebAccount_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WebAccount { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WebAccount { const NAME: &'static str = "Windows.Security.Credentials.WebAccount"; } -::windows_core::imp::interface_hierarchy!(WebAccount, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for WebAccount {} unsafe impl ::core::marker::Send for WebAccount {} unsafe impl ::core::marker::Sync for WebAccount {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebAccountProvider(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WebAccountProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WebAccountProvider { pub fn Id(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1008,14 +843,14 @@ impl WebAccountProvider { } } pub fn DisplayPurpose(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DisplayPurpose)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Authority(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Authority)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1024,14 +859,14 @@ impl WebAccountProvider { #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsSystemProvider(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsSystemProvider)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1057,14 +892,11 @@ impl ::windows_core::RuntimeType for WebAccountProvider { } unsafe impl ::windows_core::Interface for WebAccountProvider { type Vtable = IWebAccountProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WebAccountProvider { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WebAccountProvider { const NAME: &'static str = "Windows.Security.Credentials.WebAccountProvider"; } -::windows_core::imp::interface_hierarchy!(WebAccountProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for WebAccountProvider {} unsafe impl ::core::marker::Sync for WebAccountProvider {} #[repr(transparent)] 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 579c445993..4804e0a209 100644 --- a/crates/libs/windows/src/Windows/Security/Cryptography/Certificates/mod.rs +++ b/crates/libs/windows/src/Windows/Security/Cryptography/Certificates/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertificate(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICertificate { - type Vtable = ICertificate_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICertificate { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x333f740c_04d8_43b3_b278_8c5fcc9be5a0); -} +::windows_core::imp::com_interface!(ICertificate, ICertificate_Vtbl, 0x333f740c_04d8_43b3_b278_8c5fcc9be5a0); #[repr(C)] #[doc(hidden)] pub struct ICertificate_Vtbl { @@ -40,16 +31,7 @@ pub struct ICertificate_Vtbl { pub SetFriendlyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub FriendlyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertificate2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICertificate2 { - type Vtable = ICertificate2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICertificate2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x17b8374c_8a25_4d96_a492_8fc29ac4fda6); -} +::windows_core::imp::com_interface!(ICertificate2, ICertificate2_Vtbl, 0x17b8374c_8a25_4d96_a492_8fc29ac4fda6); #[repr(C)] #[doc(hidden)] pub struct ICertificate2_Vtbl { @@ -61,16 +43,7 @@ pub struct ICertificate2_Vtbl { pub SignatureHashAlgorithmName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SubjectAlternativeName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertificate3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICertificate3 { - type Vtable = ICertificate3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICertificate3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbe51a966_ae5f_4652_ace7_c6d7e7724cf3); -} +::windows_core::imp::com_interface!(ICertificate3, ICertificate3_Vtbl, 0xbe51a966_ae5f_4652_ace7_c6d7e7724cf3); #[repr(C)] #[doc(hidden)] pub struct ICertificate3_Vtbl { @@ -79,16 +52,7 @@ pub struct ICertificate3_Vtbl { pub StoreName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub KeyStorageProviderName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertificateChain(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICertificateChain { - type Vtable = ICertificateChain_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICertificateChain { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x20bf5385_3691_4501_a62c_fd97278b31ee); -} +::windows_core::imp::com_interface!(ICertificateChain, ICertificateChain_Vtbl, 0x20bf5385_3691_4501_a62c_fd97278b31ee); #[repr(C)] #[doc(hidden)] pub struct ICertificateChain_Vtbl { @@ -100,16 +64,7 @@ pub struct ICertificateChain_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetCertificates: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertificateEnrollmentManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICertificateEnrollmentManagerStatics { - type Vtable = ICertificateEnrollmentManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICertificateEnrollmentManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8846ef3f_a986_48fb_9fd7_9aec06935bf1); -} +::windows_core::imp::com_interface!(ICertificateEnrollmentManagerStatics, ICertificateEnrollmentManagerStatics_Vtbl, 0x8846ef3f_a986_48fb_9fd7_9aec06935bf1); #[repr(C)] #[doc(hidden)] pub struct ICertificateEnrollmentManagerStatics_Vtbl { @@ -118,16 +73,7 @@ pub struct ICertificateEnrollmentManagerStatics_Vtbl { pub InstallCertificateAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, certificate: ::std::mem::MaybeUninit<::windows_core::HSTRING>, installoption: InstallOptions, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ImportPfxDataAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfxdata: ::std::mem::MaybeUninit<::windows_core::HSTRING>, password: ::std::mem::MaybeUninit<::windows_core::HSTRING>, exportable: ExportOption, keyprotectionlevel: KeyProtectionLevel, installoption: InstallOptions, friendlyname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertificateEnrollmentManagerStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICertificateEnrollmentManagerStatics2 { - type Vtable = ICertificateEnrollmentManagerStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICertificateEnrollmentManagerStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdc5b1c33_6429_4014_999c_5d9735802d1d); -} +::windows_core::imp::com_interface!(ICertificateEnrollmentManagerStatics2, ICertificateEnrollmentManagerStatics2_Vtbl, 0xdc5b1c33_6429_4014_999c_5d9735802d1d); #[repr(C)] #[doc(hidden)] pub struct ICertificateEnrollmentManagerStatics2_Vtbl { @@ -135,32 +81,14 @@ pub struct ICertificateEnrollmentManagerStatics2_Vtbl { pub UserCertificateEnrollmentManager: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ImportPfxDataToKspAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfxdata: ::std::mem::MaybeUninit<::windows_core::HSTRING>, password: ::std::mem::MaybeUninit<::windows_core::HSTRING>, exportable: ExportOption, keyprotectionlevel: KeyProtectionLevel, installoption: InstallOptions, friendlyname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, keystorageprovider: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertificateEnrollmentManagerStatics3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICertificateEnrollmentManagerStatics3 { - type Vtable = ICertificateEnrollmentManagerStatics3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICertificateEnrollmentManagerStatics3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfdec82be_617c_425a_b72d_398b26ac7264); -} +::windows_core::imp::com_interface!(ICertificateEnrollmentManagerStatics3, ICertificateEnrollmentManagerStatics3_Vtbl, 0xfdec82be_617c_425a_b72d_398b26ac7264); #[repr(C)] #[doc(hidden)] pub struct ICertificateEnrollmentManagerStatics3_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ImportPfxDataToKspWithParametersAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfxdata: ::std::mem::MaybeUninit<::windows_core::HSTRING>, password: ::std::mem::MaybeUninit<::windows_core::HSTRING>, pfximportparameters: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertificateExtension(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICertificateExtension { - type Vtable = ICertificateExtension_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICertificateExtension { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x84cf0656_a9e6_454d_8e45_2ea7c4bcd53b); -} +::windows_core::imp::com_interface!(ICertificateExtension, ICertificateExtension_Vtbl, 0x84cf0656_a9e6_454d_8e45_2ea7c4bcd53b); #[repr(C)] #[doc(hidden)] pub struct ICertificateExtension_Vtbl { @@ -173,16 +101,7 @@ pub struct ICertificateExtension_Vtbl { pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result_size__: *mut u32, result__: *mut *mut u8) -> ::windows_core::HRESULT, pub SetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value_array_size: u32, value: *const u8) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertificateFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICertificateFactory { - type Vtable = ICertificateFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICertificateFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x17b4221c_4baf_44a2_9608_04fb62b16942); -} +::windows_core::imp::com_interface!(ICertificateFactory, ICertificateFactory_Vtbl, 0x17b4221c_4baf_44a2_9608_04fb62b16942); #[repr(C)] #[doc(hidden)] pub struct ICertificateFactory_Vtbl { @@ -192,16 +111,7 @@ pub struct ICertificateFactory_Vtbl { #[cfg(not(feature = "Storage_Streams"))] CreateCertificate: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertificateKeyUsages(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICertificateKeyUsages { - type Vtable = ICertificateKeyUsages_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICertificateKeyUsages { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6ac6206f_e1cf_486a_b485_a69c83e46fd1); -} +::windows_core::imp::com_interface!(ICertificateKeyUsages, ICertificateKeyUsages_Vtbl, 0x6ac6206f_e1cf_486a_b485_a69c83e46fd1); #[repr(C)] #[doc(hidden)] pub struct ICertificateKeyUsages_Vtbl { @@ -223,16 +133,7 @@ pub struct ICertificateKeyUsages_Vtbl { pub DigitalSignature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetDigitalSignature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertificateQuery(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICertificateQuery { - type Vtable = ICertificateQuery_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICertificateQuery { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5b082a31_a728_4916_b5ee_ffcb8acf2417); -} +::windows_core::imp::com_interface!(ICertificateQuery, ICertificateQuery_Vtbl, 0x5b082a31_a728_4916_b5ee_ffcb8acf2417); #[repr(C)] #[doc(hidden)] pub struct ICertificateQuery_Vtbl { @@ -250,16 +151,7 @@ pub struct ICertificateQuery_Vtbl { pub HardwareOnly: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetHardwareOnly: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertificateQuery2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICertificateQuery2 { - type Vtable = ICertificateQuery2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICertificateQuery2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x935a0af7_0bd9_4f75_b8c2_e27a7f74eecd); -} +::windows_core::imp::com_interface!(ICertificateQuery2, ICertificateQuery2_Vtbl, 0x935a0af7_0bd9_4f75_b8c2_e27a7f74eecd); #[repr(C)] #[doc(hidden)] pub struct ICertificateQuery2_Vtbl { @@ -271,16 +163,7 @@ pub struct ICertificateQuery2_Vtbl { pub StoreName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetStoreName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertificateRequestProperties(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICertificateRequestProperties { - type Vtable = ICertificateRequestProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICertificateRequestProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x487e84f6_94e2_4dce_8833_1a700a37a29a); -} +::windows_core::imp::com_interface!(ICertificateRequestProperties, ICertificateRequestProperties_Vtbl, 0x487e84f6_94e2_4dce_8833_1a700a37a29a); #[repr(C)] #[doc(hidden)] pub struct ICertificateRequestProperties_Vtbl { @@ -304,16 +187,7 @@ pub struct ICertificateRequestProperties_Vtbl { pub KeyStorageProviderName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetKeyStorageProviderName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertificateRequestProperties2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICertificateRequestProperties2 { - type Vtable = ICertificateRequestProperties2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICertificateRequestProperties2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3da0c954_d73f_4ff3_a0a6_0677c0ada05b); -} +::windows_core::imp::com_interface!(ICertificateRequestProperties2, ICertificateRequestProperties2_Vtbl, 0x3da0c954_d73f_4ff3_a0a6_0677c0ada05b); #[repr(C)] #[doc(hidden)] pub struct ICertificateRequestProperties2_Vtbl { @@ -325,16 +199,7 @@ pub struct ICertificateRequestProperties2_Vtbl { pub AttestationCredentialCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetAttestationCredentialCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertificateRequestProperties3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICertificateRequestProperties3 { - type Vtable = ICertificateRequestProperties3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICertificateRequestProperties3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe687f616_734d_46b1_9d4c_6edfdbfc845b); -} +::windows_core::imp::com_interface!(ICertificateRequestProperties3, ICertificateRequestProperties3_Vtbl, 0xe687f616_734d_46b1_9d4c_6edfdbfc845b); #[repr(C)] #[doc(hidden)] pub struct ICertificateRequestProperties3_Vtbl { @@ -350,16 +215,7 @@ pub struct ICertificateRequestProperties3_Vtbl { pub UseExistingKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetUseExistingKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertificateRequestProperties4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICertificateRequestProperties4 { - type Vtable = ICertificateRequestProperties4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICertificateRequestProperties4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4e429ad2_1c61_4fea_b8fe_135fb19cdce4); -} +::windows_core::imp::com_interface!(ICertificateRequestProperties4, ICertificateRequestProperties4_Vtbl, 0x4e429ad2_1c61_4fea_b8fe_135fb19cdce4); #[repr(C)] #[doc(hidden)] pub struct ICertificateRequestProperties4_Vtbl { @@ -374,16 +230,7 @@ pub struct ICertificateRequestProperties4_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Extensions: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertificateStore(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICertificateStore { - type Vtable = ICertificateStore_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICertificateStore { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb0bff720_344e_4331_af14_a7f7a7ebc93a); -} +::windows_core::imp::com_interface!(ICertificateStore, ICertificateStore_Vtbl, 0xb0bff720_344e_4331_af14_a7f7a7ebc93a); #[repr(C)] #[doc(hidden)] pub struct ICertificateStore_Vtbl { @@ -391,32 +238,14 @@ pub struct ICertificateStore_Vtbl { pub Add: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, certificate: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Delete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, certificate: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertificateStore2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICertificateStore2 { - type Vtable = ICertificateStore2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICertificateStore2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc7e68e4a_417d_4d1a_babd_15687e549974); -} +::windows_core::imp::com_interface!(ICertificateStore2, ICertificateStore2_Vtbl, 0xc7e68e4a_417d_4d1a_babd_15687e549974); #[repr(C)] #[doc(hidden)] pub struct ICertificateStore2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertificateStoresStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICertificateStoresStatics { - type Vtable = ICertificateStoresStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICertificateStoresStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfbecc739_c6fe_4de7_99cf_74c3e596e032); -} +::windows_core::imp::com_interface!(ICertificateStoresStatics, ICertificateStoresStatics_Vtbl, 0xfbecc739_c6fe_4de7_99cf_74c3e596e032); #[repr(C)] #[doc(hidden)] pub struct ICertificateStoresStatics_Vtbl { @@ -433,32 +262,14 @@ pub struct ICertificateStoresStatics_Vtbl { pub IntermediateCertificationAuthorities: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetStoreByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, storename: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertificateStoresStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICertificateStoresStatics2 { - type Vtable = ICertificateStoresStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICertificateStoresStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfa900b79_a0d4_4b8c_bc55_c0a37eb141ed); -} +::windows_core::imp::com_interface!(ICertificateStoresStatics2, ICertificateStoresStatics2_Vtbl, 0xfa900b79_a0d4_4b8c_bc55_c0a37eb141ed); #[repr(C)] #[doc(hidden)] pub struct ICertificateStoresStatics2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetUserStoreByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, storename: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IChainBuildingParameters(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IChainBuildingParameters { - type Vtable = IChainBuildingParameters_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IChainBuildingParameters { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x422ba922_7c8d_47b7_b59b_b12703733ac3); -} +::windows_core::imp::com_interface!(IChainBuildingParameters, IChainBuildingParameters_Vtbl, 0x422ba922_7c8d_47b7_b59b_b12703733ac3); #[repr(C)] #[doc(hidden)] pub struct IChainBuildingParameters_Vtbl { @@ -482,16 +293,7 @@ pub struct IChainBuildingParameters_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] ExclusiveTrustRoots: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IChainValidationParameters(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IChainValidationParameters { - type Vtable = IChainValidationParameters_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IChainValidationParameters { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc4743b4a_7eb0_4b56_a040_b9c8e655ddf3); -} +::windows_core::imp::com_interface!(IChainValidationParameters, IChainValidationParameters_Vtbl, 0xc4743b4a_7eb0_4b56_a040_b9c8e655ddf3); #[repr(C)] #[doc(hidden)] pub struct IChainValidationParameters_Vtbl { @@ -507,16 +309,7 @@ pub struct IChainValidationParameters_Vtbl { #[cfg(not(feature = "Networking"))] SetServerDnsName: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICmsAttachedSignature(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICmsAttachedSignature { - type Vtable = ICmsAttachedSignature_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICmsAttachedSignature { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x61899d9d_3757_4ecb_bddc_0ca357d7a936); -} +::windows_core::imp::com_interface!(ICmsAttachedSignature, ICmsAttachedSignature_Vtbl, 0x61899d9d_3757_4ecb_bddc_0ca357d7a936); #[repr(C)] #[doc(hidden)] pub struct ICmsAttachedSignature_Vtbl { @@ -532,16 +325,7 @@ pub struct ICmsAttachedSignature_Vtbl { Signers: usize, pub VerifySignature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut SignatureValidationResult) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICmsAttachedSignatureFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICmsAttachedSignatureFactory { - type Vtable = ICmsAttachedSignatureFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICmsAttachedSignatureFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd0c8fc15_f757_4c64_a362_52cc1c77cffb); -} +::windows_core::imp::com_interface!(ICmsAttachedSignatureFactory, ICmsAttachedSignatureFactory_Vtbl, 0xd0c8fc15_f757_4c64_a362_52cc1c77cffb); #[repr(C)] #[doc(hidden)] pub struct ICmsAttachedSignatureFactory_Vtbl { @@ -551,16 +335,7 @@ pub struct ICmsAttachedSignatureFactory_Vtbl { #[cfg(not(feature = "Storage_Streams"))] CreateCmsAttachedSignature: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICmsAttachedSignatureStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICmsAttachedSignatureStatics { - type Vtable = ICmsAttachedSignatureStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICmsAttachedSignatureStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x87989c8e_b0ad_498d_a7f5_78b59bce4b36); -} +::windows_core::imp::com_interface!(ICmsAttachedSignatureStatics, ICmsAttachedSignatureStatics_Vtbl, 0x87989c8e_b0ad_498d_a7f5_78b59bce4b36); #[repr(C)] #[doc(hidden)] pub struct ICmsAttachedSignatureStatics_Vtbl { @@ -570,16 +345,7 @@ pub struct ICmsAttachedSignatureStatics_Vtbl { #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage_Streams")))] GenerateSignatureAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICmsDetachedSignature(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICmsDetachedSignature { - type Vtable = ICmsDetachedSignature_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICmsDetachedSignature { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0f1ef154_f65e_4536_8339_5944081db2ca); -} +::windows_core::imp::com_interface!(ICmsDetachedSignature, ICmsDetachedSignature_Vtbl, 0x0f1ef154_f65e_4536_8339_5944081db2ca); #[repr(C)] #[doc(hidden)] pub struct ICmsDetachedSignature_Vtbl { @@ -597,16 +363,7 @@ pub struct ICmsDetachedSignature_Vtbl { #[cfg(not(feature = "Storage_Streams"))] VerifySignatureAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICmsDetachedSignatureFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICmsDetachedSignatureFactory { - type Vtable = ICmsDetachedSignatureFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICmsDetachedSignatureFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc4ab3503_ae7f_4387_ad19_00f150e48ebb); -} +::windows_core::imp::com_interface!(ICmsDetachedSignatureFactory, ICmsDetachedSignatureFactory_Vtbl, 0xc4ab3503_ae7f_4387_ad19_00f150e48ebb); #[repr(C)] #[doc(hidden)] pub struct ICmsDetachedSignatureFactory_Vtbl { @@ -616,16 +373,7 @@ pub struct ICmsDetachedSignatureFactory_Vtbl { #[cfg(not(feature = "Storage_Streams"))] CreateCmsDetachedSignature: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICmsDetachedSignatureStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICmsDetachedSignatureStatics { - type Vtable = ICmsDetachedSignatureStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICmsDetachedSignatureStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3d114cfd_bf9b_4682_9be6_91f57c053808); -} +::windows_core::imp::com_interface!(ICmsDetachedSignatureStatics, ICmsDetachedSignatureStatics_Vtbl, 0x3d114cfd_bf9b_4682_9be6_91f57c053808); #[repr(C)] #[doc(hidden)] pub struct ICmsDetachedSignatureStatics_Vtbl { @@ -635,16 +383,7 @@ pub struct ICmsDetachedSignatureStatics_Vtbl { #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage_Streams")))] GenerateSignatureAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICmsSignerInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICmsSignerInfo { - type Vtable = ICmsSignerInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICmsSignerInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x50d020db_1d2f_4c1a_b5c5_d0188ff91f47); -} +::windows_core::imp::com_interface!(ICmsSignerInfo, ICmsSignerInfo_Vtbl, 0x50d020db_1d2f_4c1a_b5c5_d0188ff91f47); #[repr(C)] #[doc(hidden)] pub struct ICmsSignerInfo_Vtbl { @@ -655,16 +394,7 @@ pub struct ICmsSignerInfo_Vtbl { pub SetHashAlgorithmName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub TimestampInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICmsTimestampInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICmsTimestampInfo { - type Vtable = ICmsTimestampInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICmsTimestampInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2f5f00f2_2c18_4f88_8435_c534086076f5); -} +::windows_core::imp::com_interface!(ICmsTimestampInfo, ICmsTimestampInfo_Vtbl, 0x2f5f00f2_2c18_4f88_8435_c534086076f5); #[repr(C)] #[doc(hidden)] pub struct ICmsTimestampInfo_Vtbl { @@ -676,16 +406,7 @@ pub struct ICmsTimestampInfo_Vtbl { Certificates: usize, pub Timestamp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::DateTime) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKeyAlgorithmNamesStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKeyAlgorithmNamesStatics { - type Vtable = IKeyAlgorithmNamesStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKeyAlgorithmNamesStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x479065d7_7ac7_4581_8c3b_d07027140448); -} +::windows_core::imp::com_interface!(IKeyAlgorithmNamesStatics, IKeyAlgorithmNamesStatics_Vtbl, 0x479065d7_7ac7_4581_8c3b_d07027140448); #[repr(C)] #[doc(hidden)] pub struct IKeyAlgorithmNamesStatics_Vtbl { @@ -699,16 +420,7 @@ pub struct IKeyAlgorithmNamesStatics_Vtbl { pub Ecdsa384: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Ecdsa521: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKeyAlgorithmNamesStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKeyAlgorithmNamesStatics2 { - type Vtable = IKeyAlgorithmNamesStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKeyAlgorithmNamesStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc99b5686_e1fd_4a4a_893d_a26f33dd8bb4); -} +::windows_core::imp::com_interface!(IKeyAlgorithmNamesStatics2, IKeyAlgorithmNamesStatics2_Vtbl, 0xc99b5686_e1fd_4a4a_893d_a26f33dd8bb4); #[repr(C)] #[doc(hidden)] pub struct IKeyAlgorithmNamesStatics2_Vtbl { @@ -716,16 +428,7 @@ pub struct IKeyAlgorithmNamesStatics2_Vtbl { pub Ecdsa: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Ecdh: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKeyAttestationHelperStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKeyAttestationHelperStatics { - type Vtable = IKeyAttestationHelperStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKeyAttestationHelperStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1648e246_f644_4326_88be_3af102d30e0c); -} +::windows_core::imp::com_interface!(IKeyAttestationHelperStatics, IKeyAttestationHelperStatics_Vtbl, 0x1648e246_f644_4326_88be_3af102d30e0c); #[repr(C)] #[doc(hidden)] pub struct IKeyAttestationHelperStatics_Vtbl { @@ -733,32 +436,14 @@ pub struct IKeyAttestationHelperStatics_Vtbl { pub DecryptTpmAttestationCredentialAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, credential: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetTpmAttestationCredentialId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, credential: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKeyAttestationHelperStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKeyAttestationHelperStatics2 { - type Vtable = IKeyAttestationHelperStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKeyAttestationHelperStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9c590b2c_a6c6_4a5e_9e64_e85d5279df97); -} +::windows_core::imp::com_interface!(IKeyAttestationHelperStatics2, IKeyAttestationHelperStatics2_Vtbl, 0x9c590b2c_a6c6_4a5e_9e64_e85d5279df97); #[repr(C)] #[doc(hidden)] pub struct IKeyAttestationHelperStatics2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub DecryptTpmAttestationCredentialWithContainerNameAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, credential: ::std::mem::MaybeUninit<::windows_core::HSTRING>, containername: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKeyStorageProviderNamesStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKeyStorageProviderNamesStatics { - type Vtable = IKeyStorageProviderNamesStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKeyStorageProviderNamesStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaf186ae0_5529_4602_bd94_0aab91957b5c); -} +::windows_core::imp::com_interface!(IKeyStorageProviderNamesStatics, IKeyStorageProviderNamesStatics_Vtbl, 0xaf186ae0_5529_4602_bd94_0aab91957b5c); #[repr(C)] #[doc(hidden)] pub struct IKeyStorageProviderNamesStatics_Vtbl { @@ -767,32 +452,14 @@ pub struct IKeyStorageProviderNamesStatics_Vtbl { pub SmartcardKeyStorageProvider: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub PlatformKeyStorageProvider: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKeyStorageProviderNamesStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKeyStorageProviderNamesStatics2 { - type Vtable = IKeyStorageProviderNamesStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKeyStorageProviderNamesStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x262d743d_9c2e_41cc_8812_c4d971dd7c60); -} +::windows_core::imp::com_interface!(IKeyStorageProviderNamesStatics2, IKeyStorageProviderNamesStatics2_Vtbl, 0x262d743d_9c2e_41cc_8812_c4d971dd7c60); #[repr(C)] #[doc(hidden)] pub struct IKeyStorageProviderNamesStatics2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub PassportKeyStorageProvider: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPfxImportParameters(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPfxImportParameters { - type Vtable = IPfxImportParameters_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPfxImportParameters { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x680d3511_9a08_47c8_864a_2edd4d8eb46c); -} +::windows_core::imp::com_interface!(IPfxImportParameters, IPfxImportParameters_Vtbl, 0x680d3511_9a08_47c8_864a_2edd4d8eb46c); #[repr(C)] #[doc(hidden)] pub struct IPfxImportParameters_Vtbl { @@ -812,16 +479,7 @@ pub struct IPfxImportParameters_Vtbl { pub ReaderName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetReaderName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStandardCertificateStoreNamesStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStandardCertificateStoreNamesStatics { - type Vtable = IStandardCertificateStoreNamesStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStandardCertificateStoreNamesStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c154adb_a496_41f8_8fe5_9e96f36efbf8); -} +::windows_core::imp::com_interface!(IStandardCertificateStoreNamesStatics, IStandardCertificateStoreNamesStatics_Vtbl, 0x0c154adb_a496_41f8_8fe5_9e96f36efbf8); #[repr(C)] #[doc(hidden)] pub struct IStandardCertificateStoreNamesStatics_Vtbl { @@ -830,16 +488,7 @@ pub struct IStandardCertificateStoreNamesStatics_Vtbl { pub TrustedRootCertificationAuthorities: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub IntermediateCertificationAuthorities: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISubjectAlternativeNameInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISubjectAlternativeNameInfo { - type Vtable = ISubjectAlternativeNameInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISubjectAlternativeNameInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x582859f1_569d_4c20_be7b_4e1c9a0bc52b); -} +::windows_core::imp::com_interface!(ISubjectAlternativeNameInfo, ISubjectAlternativeNameInfo_Vtbl, 0x582859f1_569d_4c20_be7b_4e1c9a0bc52b); #[repr(C)] #[doc(hidden)] pub struct ISubjectAlternativeNameInfo_Vtbl { @@ -869,16 +518,7 @@ pub struct ISubjectAlternativeNameInfo_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] PrincipalName: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISubjectAlternativeNameInfo2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISubjectAlternativeNameInfo2 { - type Vtable = ISubjectAlternativeNameInfo2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISubjectAlternativeNameInfo2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x437a78c6_1c51_41ea_b34a_3d654398a370); -} +::windows_core::imp::com_interface!(ISubjectAlternativeNameInfo2, ISubjectAlternativeNameInfo2_Vtbl, 0x437a78c6_1c51_41ea_b34a_3d654398a370); #[repr(C)] #[doc(hidden)] pub struct ISubjectAlternativeNameInfo2_Vtbl { @@ -909,16 +549,7 @@ pub struct ISubjectAlternativeNameInfo2_Vtbl { PrincipalNames: usize, pub Extension: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserCertificateEnrollmentManager(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserCertificateEnrollmentManager { - type Vtable = IUserCertificateEnrollmentManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserCertificateEnrollmentManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x96313718_22e1_4819_b20b_ab46a6eca06e); -} +::windows_core::imp::com_interface!(IUserCertificateEnrollmentManager, IUserCertificateEnrollmentManager_Vtbl, 0x96313718_22e1_4819_b20b_ab46a6eca06e); #[repr(C)] #[doc(hidden)] pub struct IUserCertificateEnrollmentManager_Vtbl { @@ -928,32 +559,14 @@ pub struct IUserCertificateEnrollmentManager_Vtbl { pub ImportPfxDataAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfxdata: ::std::mem::MaybeUninit<::windows_core::HSTRING>, password: ::std::mem::MaybeUninit<::windows_core::HSTRING>, exportable: ExportOption, keyprotectionlevel: KeyProtectionLevel, installoption: InstallOptions, friendlyname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ImportPfxDataToKspAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfxdata: ::std::mem::MaybeUninit<::windows_core::HSTRING>, password: ::std::mem::MaybeUninit<::windows_core::HSTRING>, exportable: ExportOption, keyprotectionlevel: KeyProtectionLevel, installoption: InstallOptions, friendlyname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, keystorageprovider: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserCertificateEnrollmentManager2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserCertificateEnrollmentManager2 { - type Vtable = IUserCertificateEnrollmentManager2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserCertificateEnrollmentManager2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0dad9cb1_65de_492a_b86d_fc5c482c3747); -} +::windows_core::imp::com_interface!(IUserCertificateEnrollmentManager2, IUserCertificateEnrollmentManager2_Vtbl, 0x0dad9cb1_65de_492a_b86d_fc5c482c3747); #[repr(C)] #[doc(hidden)] pub struct IUserCertificateEnrollmentManager2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ImportPfxDataToKspWithParametersAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfxdata: ::std::mem::MaybeUninit<::windows_core::HSTRING>, password: ::std::mem::MaybeUninit<::windows_core::HSTRING>, pfximportparameters: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserCertificateStore(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserCertificateStore { - type Vtable = IUserCertificateStore_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserCertificateStore { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc9fb1d83_789f_4b4e_9180_045a757aac6d); -} +::windows_core::imp::com_interface!(IUserCertificateStore, IUserCertificateStore_Vtbl, 0xc9fb1d83_789f_4b4e_9180_045a757aac6d); #[repr(C)] #[doc(hidden)] pub struct IUserCertificateStore_Vtbl { @@ -965,30 +578,31 @@ pub struct IUserCertificateStore_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Certificate(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Certificate, ::windows_core::IUnknown, ::windows_core::IInspectable); impl Certificate { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn BuildChainAsync(&self, certificates: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).BuildChainAsync)(::windows_core::Interface::as_raw(this), certificates.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).BuildChainAsync)(::windows_core::Interface::as_raw(this), certificates.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn BuildChainWithParametersAsync(&self, certificates: P0, parameters: P1) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, P1: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).BuildChainWithParametersAsync)(::windows_core::Interface::as_raw(this), certificates.try_into_param()?.abi(), parameters.into_param().abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).BuildChainWithParametersAsync)(::windows_core::Interface::as_raw(this), certificates.into_param().abi(), parameters.into_param().abi(), &mut result__).from_abi(result__) } } pub fn SerialNumber(&self) -> ::windows_core::Result<::windows_core::Array> { @@ -1084,63 +698,63 @@ impl Certificate { } } pub fn IsSecurityDeviceBound(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsSecurityDeviceBound)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn KeyUsages(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).KeyUsages)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn KeyAlgorithmName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).KeyAlgorithmName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SignatureAlgorithmName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SignatureAlgorithmName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SignatureHashAlgorithmName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SignatureHashAlgorithmName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SubjectAlternativeName(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SubjectAlternativeName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsPerUser(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsPerUser)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn StoreName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).StoreName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn KeyStorageProviderName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).KeyStorageProviderName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1150,11 +764,11 @@ impl Certificate { #[cfg(feature = "Storage_Streams")] pub fn CreateCertificate(certblob: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::ICertificateFactory(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateCertificate)(::windows_core::Interface::as_raw(this), certblob.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateCertificate)(::windows_core::Interface::as_raw(this), certblob.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -1168,19 +782,17 @@ impl ::windows_core::RuntimeType for Certificate { } unsafe impl ::windows_core::Interface for Certificate { type Vtable = ICertificate_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Certificate { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Certificate { const NAME: &'static str = "Windows.Security.Cryptography.Certificates.Certificate"; } -::windows_core::imp::interface_hierarchy!(Certificate, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for Certificate {} unsafe impl ::core::marker::Sync for Certificate {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CertificateChain(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CertificateChain, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CertificateChain { pub fn Validate(&self) -> ::windows_core::Result { let this = self; @@ -1214,14 +826,11 @@ impl ::windows_core::RuntimeType for CertificateChain { } unsafe impl ::windows_core::Interface for CertificateChain { type Vtable = ICertificateChain_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CertificateChain { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CertificateChain { const NAME: &'static str = "Windows.Security.Cryptography.Certificates.CertificateChain"; } -::windows_core::imp::interface_hierarchy!(CertificateChain, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CertificateChain {} unsafe impl ::core::marker::Sync for CertificateChain {} pub struct CertificateEnrollmentManager; @@ -1290,6 +899,7 @@ impl ::windows_core::RuntimeName for CertificateEnrollmentManager { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CertificateExtension(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CertificateExtension, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CertificateExtension { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1341,19 +951,17 @@ impl ::windows_core::RuntimeType for CertificateExtension { } unsafe impl ::windows_core::Interface for CertificateExtension { type Vtable = ICertificateExtension_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CertificateExtension { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CertificateExtension { const NAME: &'static str = "Windows.Security.Cryptography.Certificates.CertificateExtension"; } -::windows_core::imp::interface_hierarchy!(CertificateExtension, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CertificateExtension {} unsafe impl ::core::marker::Sync for CertificateExtension {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CertificateKeyUsages(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CertificateKeyUsages, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CertificateKeyUsages { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1456,19 +1064,17 @@ impl ::windows_core::RuntimeType for CertificateKeyUsages { } unsafe impl ::windows_core::Interface for CertificateKeyUsages { type Vtable = ICertificateKeyUsages_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CertificateKeyUsages { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CertificateKeyUsages { const NAME: &'static str = "Windows.Security.Cryptography.Certificates.CertificateKeyUsages"; } -::windows_core::imp::interface_hierarchy!(CertificateKeyUsages, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CertificateKeyUsages {} unsafe impl ::core::marker::Sync for CertificateKeyUsages {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CertificateQuery(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CertificateQuery, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CertificateQuery { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1531,36 +1137,36 @@ impl CertificateQuery { unsafe { (::windows_core::Interface::vtable(this).SetHardwareOnly)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IncludeDuplicates(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IncludeDuplicates)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIncludeDuplicates(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIncludeDuplicates)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IncludeExpiredCertificates(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IncludeExpiredCertificates)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIncludeExpiredCertificates(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIncludeExpiredCertificates)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn StoreName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).StoreName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetStoreName(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetStoreName)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } } @@ -1569,19 +1175,17 @@ impl ::windows_core::RuntimeType for CertificateQuery { } unsafe impl ::windows_core::Interface for CertificateQuery { type Vtable = ICertificateQuery_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CertificateQuery { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CertificateQuery { const NAME: &'static str = "Windows.Security.Cryptography.Certificates.CertificateQuery"; } -::windows_core::imp::interface_hierarchy!(CertificateQuery, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CertificateQuery {} unsafe impl ::core::marker::Sync for CertificateQuery {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CertificateRequestProperties(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CertificateRequestProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CertificateRequestProperties { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1690,18 +1294,18 @@ impl CertificateRequestProperties { unsafe { (::windows_core::Interface::vtable(this).SetKeyStorageProviderName)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn SmartcardReaderName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SmartcardReaderName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetSmartcardReaderName(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetSmartcardReaderName)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn SigningCertificate(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SigningCertificate)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1711,11 +1315,11 @@ impl CertificateRequestProperties { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn AttestationCredentialCertificate(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AttestationCredentialCertificate)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1725,75 +1329,75 @@ impl CertificateRequestProperties { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn CurveName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CurveName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetCurveName(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCurveName)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn CurveParameters(&self) -> ::windows_core::Result<::windows_core::Array> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows_core::Interface::vtable(this).CurveParameters)(::windows_core::Interface::as_raw(this), ::windows_core::Array::::set_abi_len(::std::mem::transmute(&mut result__)), result__.as_mut_ptr() as *mut _ as _).and_then(|| result__.assume_init()) } } pub fn SetCurveParameters(&self, value: &[u8]) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCurveParameters)(::windows_core::Interface::as_raw(this), value.len().try_into().unwrap(), value.as_ptr()).ok() } } pub fn ContainerNamePrefix(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ContainerNamePrefix)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetContainerNamePrefix(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetContainerNamePrefix)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ContainerName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ContainerName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetContainerName(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetContainerName)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn UseExistingKey(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).UseExistingKey)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetUseExistingKey(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetUseExistingKey)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn SuppressedDefaults(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SuppressedDefaults)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SubjectAlternativeName(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SubjectAlternativeName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1802,7 +1406,7 @@ impl CertificateRequestProperties { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Extensions(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Extensions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1814,19 +1418,17 @@ impl ::windows_core::RuntimeType for CertificateRequestProperties { } unsafe impl ::windows_core::Interface for CertificateRequestProperties { type Vtable = ICertificateRequestProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CertificateRequestProperties { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CertificateRequestProperties { const NAME: &'static str = "Windows.Security.Cryptography.Certificates.CertificateRequestProperties"; } -::windows_core::imp::interface_hierarchy!(CertificateRequestProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CertificateRequestProperties {} unsafe impl ::core::marker::Sync for CertificateRequestProperties {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CertificateStore(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CertificateStore, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CertificateStore { pub fn Add(&self, certificate: P0) -> ::windows_core::Result<()> where @@ -1843,7 +1445,7 @@ impl CertificateStore { unsafe { (::windows_core::Interface::vtable(this).Delete)(::windows_core::Interface::as_raw(this), certificate.into_param().abi()).ok() } } pub fn Name(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Name)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1855,14 +1457,11 @@ impl ::windows_core::RuntimeType for CertificateStore { } unsafe impl ::windows_core::Interface for CertificateStore { type Vtable = ICertificateStore_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CertificateStore { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CertificateStore { const NAME: &'static str = "Windows.Security.Cryptography.Certificates.CertificateStore"; } -::windows_core::imp::interface_hierarchy!(CertificateStore, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CertificateStore {} unsafe impl ::core::marker::Sync for CertificateStore {} pub struct CertificateStores; @@ -1927,6 +1526,7 @@ impl ::windows_core::RuntimeName for CertificateStores { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ChainBuildingParameters(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ChainBuildingParameters, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ChainBuildingParameters { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2014,19 +1614,17 @@ impl ::windows_core::RuntimeType for ChainBuildingParameters { } unsafe impl ::windows_core::Interface for ChainBuildingParameters { type Vtable = IChainBuildingParameters_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ChainBuildingParameters { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ChainBuildingParameters { const NAME: &'static str = "Windows.Security.Cryptography.Certificates.ChainBuildingParameters"; } -::windows_core::imp::interface_hierarchy!(ChainBuildingParameters, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ChainBuildingParameters {} unsafe impl ::core::marker::Sync for ChainBuildingParameters {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ChainValidationParameters(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ChainValidationParameters, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ChainValidationParameters { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2070,19 +1668,17 @@ impl ::windows_core::RuntimeType for ChainValidationParameters { } unsafe impl ::windows_core::Interface for ChainValidationParameters { type Vtable = IChainValidationParameters_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ChainValidationParameters { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ChainValidationParameters { const NAME: &'static str = "Windows.Security.Cryptography.Certificates.ChainValidationParameters"; } -::windows_core::imp::interface_hierarchy!(ChainValidationParameters, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ChainValidationParameters {} unsafe impl ::core::marker::Sync for ChainValidationParameters {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CmsAttachedSignature(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CmsAttachedSignature, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CmsAttachedSignature { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -2120,24 +1716,24 @@ impl CmsAttachedSignature { #[cfg(feature = "Storage_Streams")] pub fn CreateCmsAttachedSignature(inputblob: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::ICmsAttachedSignatureFactory(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateCmsAttachedSignature)(::windows_core::Interface::as_raw(this), inputblob.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateCmsAttachedSignature)(::windows_core::Interface::as_raw(this), inputblob.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Storage_Streams\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] pub fn GenerateSignatureAsync(data: P0, signers: P1, certificates: P2) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam>, - P2: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam>, + P2: ::windows_core::IntoParam>, { Self::ICmsAttachedSignatureStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).GenerateSignatureAsync)(::windows_core::Interface::as_raw(this), data.try_into_param()?.abi(), signers.try_into_param()?.abi(), certificates.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } #[doc(hidden)] @@ -2156,19 +1752,17 @@ impl ::windows_core::RuntimeType for CmsAttachedSignature { } unsafe impl ::windows_core::Interface for CmsAttachedSignature { type Vtable = ICmsAttachedSignature_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CmsAttachedSignature { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CmsAttachedSignature { const NAME: &'static str = "Windows.Security.Cryptography.Certificates.CmsAttachedSignature"; } -::windows_core::imp::interface_hierarchy!(CmsAttachedSignature, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CmsAttachedSignature {} unsafe impl ::core::marker::Sync for CmsAttachedSignature {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CmsDetachedSignature(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CmsDetachedSignature, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CmsDetachedSignature { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -2192,36 +1786,36 @@ impl CmsDetachedSignature { #[cfg(feature = "Storage_Streams")] pub fn VerifySignatureAsync(&self, data: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).VerifySignatureAsync)(::windows_core::Interface::as_raw(this), data.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).VerifySignatureAsync)(::windows_core::Interface::as_raw(this), data.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn CreateCmsDetachedSignature(inputblob: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::ICmsDetachedSignatureFactory(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateCmsDetachedSignature)(::windows_core::Interface::as_raw(this), inputblob.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateCmsDetachedSignature)(::windows_core::Interface::as_raw(this), inputblob.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Storage_Streams\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] pub fn GenerateSignatureAsync(data: P0, signers: P1, certificates: P2) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam>, - P2: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam>, + P2: ::windows_core::IntoParam>, { Self::ICmsDetachedSignatureStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).GenerateSignatureAsync)(::windows_core::Interface::as_raw(this), data.try_into_param()?.abi(), signers.try_into_param()?.abi(), certificates.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } #[doc(hidden)] @@ -2240,19 +1834,17 @@ impl ::windows_core::RuntimeType for CmsDetachedSignature { } unsafe impl ::windows_core::Interface for CmsDetachedSignature { type Vtable = ICmsDetachedSignature_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CmsDetachedSignature { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CmsDetachedSignature { const NAME: &'static str = "Windows.Security.Cryptography.Certificates.CmsDetachedSignature"; } -::windows_core::imp::interface_hierarchy!(CmsDetachedSignature, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CmsDetachedSignature {} unsafe impl ::core::marker::Sync for CmsDetachedSignature {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CmsSignerInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CmsSignerInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CmsSignerInfo { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2299,19 +1891,17 @@ impl ::windows_core::RuntimeType for CmsSignerInfo { } unsafe impl ::windows_core::Interface for CmsSignerInfo { type Vtable = ICmsSignerInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CmsSignerInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CmsSignerInfo { const NAME: &'static str = "Windows.Security.Cryptography.Certificates.CmsSignerInfo"; } -::windows_core::imp::interface_hierarchy!(CmsSignerInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CmsSignerInfo {} unsafe impl ::core::marker::Sync for CmsSignerInfo {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CmsTimestampInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CmsTimestampInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CmsTimestampInfo { pub fn SigningCertificate(&self) -> ::windows_core::Result { let this = self; @@ -2342,14 +1932,11 @@ impl ::windows_core::RuntimeType for CmsTimestampInfo { } unsafe impl ::windows_core::Interface for CmsTimestampInfo { type Vtable = ICmsTimestampInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CmsTimestampInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CmsTimestampInfo { const NAME: &'static str = "Windows.Security.Cryptography.Certificates.CmsTimestampInfo"; } -::windows_core::imp::interface_hierarchy!(CmsTimestampInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CmsTimestampInfo {} unsafe impl ::core::marker::Sync for CmsTimestampInfo {} pub struct KeyAlgorithmNames; @@ -2505,6 +2092,7 @@ impl ::windows_core::RuntimeName for KeyStorageProviderNames { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PfxImportParameters(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PfxImportParameters, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PfxImportParameters { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2596,14 +2184,11 @@ impl ::windows_core::RuntimeType for PfxImportParameters { } unsafe impl ::windows_core::Interface for PfxImportParameters { type Vtable = IPfxImportParameters_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PfxImportParameters { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PfxImportParameters { const NAME: &'static str = "Windows.Security.Cryptography.Certificates.PfxImportParameters"; } -::windows_core::imp::interface_hierarchy!(PfxImportParameters, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PfxImportParameters {} unsafe impl ::core::marker::Sync for PfxImportParameters {} pub struct StandardCertificateStoreNames; @@ -2638,6 +2223,7 @@ impl ::windows_core::RuntimeName for StandardCertificateStoreNames { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SubjectAlternativeNameInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SubjectAlternativeNameInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SubjectAlternativeNameInfo { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2703,7 +2289,7 @@ impl SubjectAlternativeNameInfo { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn EmailNames(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).EmailNames)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2712,7 +2298,7 @@ impl SubjectAlternativeNameInfo { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn IPAddresses(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IPAddresses)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2721,7 +2307,7 @@ impl SubjectAlternativeNameInfo { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Urls(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Urls)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2730,7 +2316,7 @@ impl SubjectAlternativeNameInfo { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn DnsNames(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DnsNames)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2739,7 +2325,7 @@ impl SubjectAlternativeNameInfo { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn DistinguishedNames(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DistinguishedNames)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2748,14 +2334,14 @@ impl SubjectAlternativeNameInfo { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn PrincipalNames(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PrincipalNames)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Extension(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Extension)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2767,19 +2353,17 @@ impl ::windows_core::RuntimeType for SubjectAlternativeNameInfo { } unsafe impl ::windows_core::Interface for SubjectAlternativeNameInfo { type Vtable = ISubjectAlternativeNameInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SubjectAlternativeNameInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SubjectAlternativeNameInfo { const NAME: &'static str = "Windows.Security.Cryptography.Certificates.SubjectAlternativeNameInfo"; } -::windows_core::imp::interface_hierarchy!(SubjectAlternativeNameInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SubjectAlternativeNameInfo {} unsafe impl ::core::marker::Sync for SubjectAlternativeNameInfo {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UserCertificateEnrollmentManager(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UserCertificateEnrollmentManager, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UserCertificateEnrollmentManager { pub fn CreateRequestAsync(&self, request: P0) -> ::windows_core::Result> where @@ -2816,7 +2400,7 @@ impl UserCertificateEnrollmentManager { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -2828,19 +2412,17 @@ impl ::windows_core::RuntimeType for UserCertificateEnrollmentManager { } unsafe impl ::windows_core::Interface for UserCertificateEnrollmentManager { type Vtable = IUserCertificateEnrollmentManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UserCertificateEnrollmentManager { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UserCertificateEnrollmentManager { const NAME: &'static str = "Windows.Security.Cryptography.Certificates.UserCertificateEnrollmentManager"; } -::windows_core::imp::interface_hierarchy!(UserCertificateEnrollmentManager, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UserCertificateEnrollmentManager {} unsafe impl ::core::marker::Sync for UserCertificateEnrollmentManager {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UserCertificateStore(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UserCertificateStore, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UserCertificateStore { pub fn RequestAddAsync(&self, certificate: P0) -> ::windows_core::Result> where @@ -2875,14 +2457,11 @@ impl ::windows_core::RuntimeType for UserCertificateStore { } unsafe impl ::windows_core::Interface for UserCertificateStore { type Vtable = IUserCertificateStore_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UserCertificateStore { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UserCertificateStore { const NAME: &'static str = "Windows.Security.Cryptography.Certificates.UserCertificateStore"; } -::windows_core::imp::interface_hierarchy!(UserCertificateStore, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UserCertificateStore {} unsafe impl ::core::marker::Sync for UserCertificateStore {} #[repr(transparent)] 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 073544bf48..a698288e9a 100644 --- a/crates/libs/windows/src/Windows/Security/Cryptography/Core/mod.rs +++ b/crates/libs/windows/src/Windows/Security/Cryptography/Core/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAsymmetricAlgorithmNamesStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAsymmetricAlgorithmNamesStatics { - type Vtable = IAsymmetricAlgorithmNamesStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAsymmetricAlgorithmNamesStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcaf6fce4_67c0_46aa_84f9_752e77449f9b); -} +::windows_core::imp::com_interface!(IAsymmetricAlgorithmNamesStatics, IAsymmetricAlgorithmNamesStatics_Vtbl, 0xcaf6fce4_67c0_46aa_84f9_752e77449f9b); #[repr(C)] #[doc(hidden)] pub struct IAsymmetricAlgorithmNamesStatics_Vtbl { @@ -31,16 +22,7 @@ pub struct IAsymmetricAlgorithmNamesStatics_Vtbl { pub RsaSignPssSha384: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub RsaSignPssSha512: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAsymmetricAlgorithmNamesStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAsymmetricAlgorithmNamesStatics2 { - type Vtable = IAsymmetricAlgorithmNamesStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAsymmetricAlgorithmNamesStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf141c0d6_4bff_4f23_ba66_6045b137d5df); -} +::windows_core::imp::com_interface!(IAsymmetricAlgorithmNamesStatics2, IAsymmetricAlgorithmNamesStatics2_Vtbl, 0xf141c0d6_4bff_4f23_ba66_6045b137d5df); #[repr(C)] #[doc(hidden)] pub struct IAsymmetricAlgorithmNamesStatics2_Vtbl { @@ -49,16 +31,7 @@ pub struct IAsymmetricAlgorithmNamesStatics2_Vtbl { pub EcdsaSha384: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub EcdsaSha512: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAsymmetricKeyAlgorithmProvider(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAsymmetricKeyAlgorithmProvider { - type Vtable = IAsymmetricKeyAlgorithmProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAsymmetricKeyAlgorithmProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe8d2ff37_6259_4e88_b7e0_94191fde699e); -} +::windows_core::imp::com_interface!(IAsymmetricKeyAlgorithmProvider, IAsymmetricKeyAlgorithmProvider_Vtbl, 0xe8d2ff37_6259_4e88_b7e0_94191fde699e); #[repr(C)] #[doc(hidden)] pub struct IAsymmetricKeyAlgorithmProvider_Vtbl { @@ -82,16 +55,7 @@ pub struct IAsymmetricKeyAlgorithmProvider_Vtbl { #[cfg(not(feature = "Storage_Streams"))] ImportPublicKeyWithBlobType: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAsymmetricKeyAlgorithmProvider2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAsymmetricKeyAlgorithmProvider2 { - type Vtable = IAsymmetricKeyAlgorithmProvider2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAsymmetricKeyAlgorithmProvider2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4e322a7e_7c4d_4997_ac4f_1b848b36306e); -} +::windows_core::imp::com_interface!(IAsymmetricKeyAlgorithmProvider2, IAsymmetricKeyAlgorithmProvider2_Vtbl, 0x4e322a7e_7c4d_4997_ac4f_1b848b36306e); #[repr(C)] #[doc(hidden)] pub struct IAsymmetricKeyAlgorithmProvider2_Vtbl { @@ -99,32 +63,14 @@ pub struct IAsymmetricKeyAlgorithmProvider2_Vtbl { pub CreateKeyPairWithCurveName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, curvename: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateKeyPairWithCurveParameters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, parameters_array_size: u32, parameters: *const u8, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAsymmetricKeyAlgorithmProviderStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAsymmetricKeyAlgorithmProviderStatics { - type Vtable = IAsymmetricKeyAlgorithmProviderStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAsymmetricKeyAlgorithmProviderStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x425bde18_a7f3_47a6_a8d2_c48d6033a65c); -} +::windows_core::imp::com_interface!(IAsymmetricKeyAlgorithmProviderStatics, IAsymmetricKeyAlgorithmProviderStatics_Vtbl, 0x425bde18_a7f3_47a6_a8d2_c48d6033a65c); #[repr(C)] #[doc(hidden)] pub struct IAsymmetricKeyAlgorithmProviderStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub OpenAlgorithm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, algorithm: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICryptographicEngineStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICryptographicEngineStatics { - type Vtable = ICryptographicEngineStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICryptographicEngineStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9fea0639_6ff7_4c85_a095_95eb31715eb9); -} +::windows_core::imp::com_interface!(ICryptographicEngineStatics, ICryptographicEngineStatics_Vtbl, 0x9fea0639_6ff7_4c85_a095_95eb31715eb9); #[repr(C)] #[doc(hidden)] pub struct ICryptographicEngineStatics_Vtbl { @@ -158,16 +104,7 @@ pub struct ICryptographicEngineStatics_Vtbl { #[cfg(not(feature = "Storage_Streams"))] DeriveKeyMaterial: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICryptographicEngineStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICryptographicEngineStatics2 { - type Vtable = ICryptographicEngineStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICryptographicEngineStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x675948fe_df9f_4191_92c7_6ce6f58420e0); -} +::windows_core::imp::com_interface!(ICryptographicEngineStatics2, ICryptographicEngineStatics2_Vtbl, 0x675948fe_df9f_4191_92c7_6ce6f58420e0); #[repr(C)] #[doc(hidden)] pub struct ICryptographicEngineStatics2_Vtbl { @@ -193,16 +130,7 @@ pub struct ICryptographicEngineStatics2_Vtbl { #[cfg(not(feature = "Storage_Streams"))] SignHashedDataAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICryptographicKey(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICryptographicKey { - type Vtable = ICryptographicKey_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICryptographicKey { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xed2a3b70_8e7b_4009_8401_ffd1a62eeb27); -} +::windows_core::imp::com_interface!(ICryptographicKey, ICryptographicKey_Vtbl, 0xed2a3b70_8e7b_4009_8401_ffd1a62eeb27); #[repr(C)] #[doc(hidden)] pub struct ICryptographicKey_Vtbl { @@ -225,16 +153,7 @@ pub struct ICryptographicKey_Vtbl { #[cfg(not(feature = "Storage_Streams"))] ExportPublicKeyWithBlobType: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEccCurveNamesStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEccCurveNamesStatics { - type Vtable = IEccCurveNamesStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEccCurveNamesStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb3ff930c_aeeb_409e_b7d4_9b95295aaecf); -} +::windows_core::imp::com_interface!(IEccCurveNamesStatics, IEccCurveNamesStatics_Vtbl, 0xb3ff930c_aeeb_409e_b7d4_9b95295aaecf); #[repr(C)] #[doc(hidden)] pub struct IEccCurveNamesStatics_Vtbl { @@ -289,16 +208,7 @@ pub struct IEccCurveNamesStatics_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] AllEccCurveNames: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEncryptedAndAuthenticatedData(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEncryptedAndAuthenticatedData { - type Vtable = IEncryptedAndAuthenticatedData_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEncryptedAndAuthenticatedData { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6fa42fe7_1ecb_4b00_bea5_60b83f862f17); -} +::windows_core::imp::com_interface!(IEncryptedAndAuthenticatedData, IEncryptedAndAuthenticatedData_Vtbl, 0x6fa42fe7_1ecb_4b00_bea5_60b83f862f17); #[repr(C)] #[doc(hidden)] pub struct IEncryptedAndAuthenticatedData_Vtbl { @@ -312,16 +222,7 @@ pub struct IEncryptedAndAuthenticatedData_Vtbl { #[cfg(not(feature = "Storage_Streams"))] AuthenticationTag: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHashAlgorithmNamesStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHashAlgorithmNamesStatics { - type Vtable = IHashAlgorithmNamesStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHashAlgorithmNamesStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6b5e0516_de96_4f0a_8d57_dcc9dae36c76); -} +::windows_core::imp::com_interface!(IHashAlgorithmNamesStatics, IHashAlgorithmNamesStatics_Vtbl, 0x6b5e0516_de96_4f0a_8d57_dcc9dae36c76); #[repr(C)] #[doc(hidden)] pub struct IHashAlgorithmNamesStatics_Vtbl { @@ -332,16 +233,7 @@ pub struct IHashAlgorithmNamesStatics_Vtbl { pub Sha384: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Sha512: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHashAlgorithmProvider(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHashAlgorithmProvider { - type Vtable = IHashAlgorithmProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHashAlgorithmProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbe9b3080_b2c3_422b_bce1_ec90efb5d7b5); -} +::windows_core::imp::com_interface!(IHashAlgorithmProvider, IHashAlgorithmProvider_Vtbl, 0xbe9b3080_b2c3_422b_bce1_ec90efb5d7b5); #[repr(C)] #[doc(hidden)] pub struct IHashAlgorithmProvider_Vtbl { @@ -354,32 +246,14 @@ pub struct IHashAlgorithmProvider_Vtbl { HashData: usize, pub CreateHash: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHashAlgorithmProviderStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHashAlgorithmProviderStatics { - type Vtable = IHashAlgorithmProviderStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHashAlgorithmProviderStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9fac9741_5cc4_4336_ae38_6212b75a915a); -} +::windows_core::imp::com_interface!(IHashAlgorithmProviderStatics, IHashAlgorithmProviderStatics_Vtbl, 0x9fac9741_5cc4_4336_ae38_6212b75a915a); #[repr(C)] #[doc(hidden)] pub struct IHashAlgorithmProviderStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub OpenAlgorithm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, algorithm: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHashComputation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHashComputation { - type Vtable = IHashComputation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHashComputation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5904d1b6_ad31_4603_a3a4_b1bda98e2562); -} +::windows_core::imp::com_interface!(IHashComputation, IHashComputation_Vtbl, 0x5904d1b6_ad31_4603_a3a4_b1bda98e2562); #[repr(C)] #[doc(hidden)] pub struct IHashComputation_Vtbl { @@ -393,16 +267,7 @@ pub struct IHashComputation_Vtbl { #[cfg(not(feature = "Storage_Streams"))] GetValueAndReset: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKeyDerivationAlgorithmNamesStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKeyDerivationAlgorithmNamesStatics { - type Vtable = IKeyDerivationAlgorithmNamesStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKeyDerivationAlgorithmNamesStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7b6e363e_94d2_4739_a57b_022e0c3a402a); -} +::windows_core::imp::com_interface!(IKeyDerivationAlgorithmNamesStatics, IKeyDerivationAlgorithmNamesStatics_Vtbl, 0x7b6e363e_94d2_4739_a57b_022e0c3a402a); #[repr(C)] #[doc(hidden)] pub struct IKeyDerivationAlgorithmNamesStatics_Vtbl { @@ -423,16 +288,7 @@ pub struct IKeyDerivationAlgorithmNamesStatics_Vtbl { pub Sp80056aConcatSha384: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Sp80056aConcatSha512: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKeyDerivationAlgorithmNamesStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKeyDerivationAlgorithmNamesStatics2 { - type Vtable = IKeyDerivationAlgorithmNamesStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKeyDerivationAlgorithmNamesStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x57953fab_6044_466f_97f4_337b7808384d); -} +::windows_core::imp::com_interface!(IKeyDerivationAlgorithmNamesStatics2, IKeyDerivationAlgorithmNamesStatics2_Vtbl, 0x57953fab_6044_466f_97f4_337b7808384d); #[repr(C)] #[doc(hidden)] pub struct IKeyDerivationAlgorithmNamesStatics2_Vtbl { @@ -443,16 +299,7 @@ pub struct IKeyDerivationAlgorithmNamesStatics2_Vtbl { pub CapiKdfSha384: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub CapiKdfSha512: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKeyDerivationAlgorithmProvider(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKeyDerivationAlgorithmProvider { - type Vtable = IKeyDerivationAlgorithmProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKeyDerivationAlgorithmProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe1fba83b_4671_43b7_9158_763aaa98b6bf); -} +::windows_core::imp::com_interface!(IKeyDerivationAlgorithmProvider, IKeyDerivationAlgorithmProvider_Vtbl, 0xe1fba83b_4671_43b7_9158_763aaa98b6bf); #[repr(C)] #[doc(hidden)] pub struct IKeyDerivationAlgorithmProvider_Vtbl { @@ -463,32 +310,14 @@ pub struct IKeyDerivationAlgorithmProvider_Vtbl { #[cfg(not(feature = "Storage_Streams"))] CreateKey: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKeyDerivationAlgorithmProviderStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKeyDerivationAlgorithmProviderStatics { - type Vtable = IKeyDerivationAlgorithmProviderStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKeyDerivationAlgorithmProviderStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0a22097a_0a1c_443b_9418_b9498aeb1603); -} +::windows_core::imp::com_interface!(IKeyDerivationAlgorithmProviderStatics, IKeyDerivationAlgorithmProviderStatics_Vtbl, 0x0a22097a_0a1c_443b_9418_b9498aeb1603); #[repr(C)] #[doc(hidden)] pub struct IKeyDerivationAlgorithmProviderStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub OpenAlgorithm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, algorithm: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKeyDerivationParameters(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKeyDerivationParameters { - type Vtable = IKeyDerivationParameters_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKeyDerivationParameters { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7bf05967_047b_4a8c_964a_469ffd5522e2); -} +::windows_core::imp::com_interface!(IKeyDerivationParameters, IKeyDerivationParameters_Vtbl, 0x7bf05967_047b_4a8c_964a_469ffd5522e2); #[repr(C)] #[doc(hidden)] pub struct IKeyDerivationParameters_Vtbl { @@ -503,16 +332,7 @@ pub struct IKeyDerivationParameters_Vtbl { SetKdfGenericBinary: usize, pub IterationCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKeyDerivationParameters2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKeyDerivationParameters2 { - type Vtable = IKeyDerivationParameters2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKeyDerivationParameters2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcd4166d1_417e_4f4c_b666_c0d879f3f8e0); -} +::windows_core::imp::com_interface!(IKeyDerivationParameters2, IKeyDerivationParameters2_Vtbl, 0xcd4166d1_417e_4f4c_b666_c0d879f3f8e0); #[repr(C)] #[doc(hidden)] pub struct IKeyDerivationParameters2_Vtbl { @@ -520,16 +340,7 @@ pub struct IKeyDerivationParameters2_Vtbl { pub Capi1KdfTargetAlgorithm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut Capi1KdfTargetAlgorithm) -> ::windows_core::HRESULT, pub SetCapi1KdfTargetAlgorithm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: Capi1KdfTargetAlgorithm) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKeyDerivationParametersStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKeyDerivationParametersStatics { - type Vtable = IKeyDerivationParametersStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKeyDerivationParametersStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xea961fbe_f37f_4146_9dfe_a456f1735f4b); -} +::windows_core::imp::com_interface!(IKeyDerivationParametersStatics, IKeyDerivationParametersStatics_Vtbl, 0xea961fbe_f37f_4146_9dfe_a456f1735f4b); #[repr(C)] #[doc(hidden)] pub struct IKeyDerivationParametersStatics_Vtbl { @@ -547,32 +358,14 @@ pub struct IKeyDerivationParametersStatics_Vtbl { #[cfg(not(feature = "Storage_Streams"))] BuildForSP80056a: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKeyDerivationParametersStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKeyDerivationParametersStatics2 { - type Vtable = IKeyDerivationParametersStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKeyDerivationParametersStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa5783dd5_58e3_4efb_b283_a1653126e1be); -} +::windows_core::imp::com_interface!(IKeyDerivationParametersStatics2, IKeyDerivationParametersStatics2_Vtbl, 0xa5783dd5_58e3_4efb_b283_a1653126e1be); #[repr(C)] #[doc(hidden)] pub struct IKeyDerivationParametersStatics2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub BuildForCapi1Kdf: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, capi1kdftargetalgorithm: Capi1KdfTargetAlgorithm, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMacAlgorithmNamesStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMacAlgorithmNamesStatics { - type Vtable = IMacAlgorithmNamesStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMacAlgorithmNamesStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x41412678_fb1e_43a4_895e_a9026e4390a3); -} +::windows_core::imp::com_interface!(IMacAlgorithmNamesStatics, IMacAlgorithmNamesStatics_Vtbl, 0x41412678_fb1e_43a4_895e_a9026e4390a3); #[repr(C)] #[doc(hidden)] pub struct IMacAlgorithmNamesStatics_Vtbl { @@ -584,16 +377,7 @@ pub struct IMacAlgorithmNamesStatics_Vtbl { pub HmacSha512: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub AesCmac: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMacAlgorithmProvider(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMacAlgorithmProvider { - type Vtable = IMacAlgorithmProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMacAlgorithmProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4a3fc5c3_1cbd_41ce_a092_aa0bc5d2d2f5); -} +::windows_core::imp::com_interface!(IMacAlgorithmProvider, IMacAlgorithmProvider_Vtbl, 0x4a3fc5c3_1cbd_41ce_a092_aa0bc5d2d2f5); #[repr(C)] #[doc(hidden)] pub struct IMacAlgorithmProvider_Vtbl { @@ -605,16 +389,7 @@ pub struct IMacAlgorithmProvider_Vtbl { #[cfg(not(feature = "Storage_Streams"))] CreateKey: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMacAlgorithmProvider2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMacAlgorithmProvider2 { - type Vtable = IMacAlgorithmProvider2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMacAlgorithmProvider2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6da32a15_d931_42ed_8e7e_c301caee119c); -} +::windows_core::imp::com_interface!(IMacAlgorithmProvider2, IMacAlgorithmProvider2_Vtbl, 0x6da32a15_d931_42ed_8e7e_c301caee119c); #[repr(C)] #[doc(hidden)] pub struct IMacAlgorithmProvider2_Vtbl { @@ -624,32 +399,14 @@ pub struct IMacAlgorithmProvider2_Vtbl { #[cfg(not(feature = "Storage_Streams"))] CreateHash: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMacAlgorithmProviderStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMacAlgorithmProviderStatics { - type Vtable = IMacAlgorithmProviderStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMacAlgorithmProviderStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc9bdc147_cc77_4df0_9e4e_b921e080644c); -} +::windows_core::imp::com_interface!(IMacAlgorithmProviderStatics, IMacAlgorithmProviderStatics_Vtbl, 0xc9bdc147_cc77_4df0_9e4e_b921e080644c); #[repr(C)] #[doc(hidden)] pub struct IMacAlgorithmProviderStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub OpenAlgorithm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, algorithm: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPersistedKeyProviderStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPersistedKeyProviderStatics { - type Vtable = IPersistedKeyProviderStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPersistedKeyProviderStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x77274814_d9d4_4cf5_b668_e0457df30894); -} +::windows_core::imp::com_interface!(IPersistedKeyProviderStatics, IPersistedKeyProviderStatics_Vtbl, 0x77274814_d9d4_4cf5_b668_e0457df30894); #[repr(C)] #[doc(hidden)] pub struct IPersistedKeyProviderStatics_Vtbl { @@ -663,16 +420,7 @@ pub struct IPersistedKeyProviderStatics_Vtbl { #[cfg(not(feature = "Security_Cryptography_Certificates"))] OpenPublicKeyFromCertificate: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISymmetricAlgorithmNamesStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISymmetricAlgorithmNamesStatics { - type Vtable = ISymmetricAlgorithmNamesStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISymmetricAlgorithmNamesStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6870727b_c996_4eae_84d7_79b2aeb73b9c); -} +::windows_core::imp::com_interface!(ISymmetricAlgorithmNamesStatics, ISymmetricAlgorithmNamesStatics_Vtbl, 0x6870727b_c996_4eae_84d7_79b2aeb73b9c); #[repr(C)] #[doc(hidden)] pub struct ISymmetricAlgorithmNamesStatics_Vtbl { @@ -697,16 +445,7 @@ pub struct ISymmetricAlgorithmNamesStatics_Vtbl { pub Rc2EcbPkcs7: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Rc4: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISymmetricKeyAlgorithmProvider(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISymmetricKeyAlgorithmProvider { - type Vtable = ISymmetricKeyAlgorithmProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISymmetricKeyAlgorithmProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3d7e4a33_3bd0_4902_8ac8_470d50d21376); -} +::windows_core::imp::com_interface!(ISymmetricKeyAlgorithmProvider, ISymmetricKeyAlgorithmProvider_Vtbl, 0x3d7e4a33_3bd0_4902_8ac8_470d50d21376); #[repr(C)] #[doc(hidden)] pub struct ISymmetricKeyAlgorithmProvider_Vtbl { @@ -718,16 +457,7 @@ pub struct ISymmetricKeyAlgorithmProvider_Vtbl { #[cfg(not(feature = "Storage_Streams"))] CreateSymmetricKey: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISymmetricKeyAlgorithmProviderStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISymmetricKeyAlgorithmProviderStatics { - type Vtable = ISymmetricKeyAlgorithmProviderStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISymmetricKeyAlgorithmProviderStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8d3b2326_1f37_491f_b60e_f5431b26b483); -} +::windows_core::imp::com_interface!(ISymmetricKeyAlgorithmProviderStatics, ISymmetricKeyAlgorithmProviderStatics_Vtbl, 0x8d3b2326_1f37_491f_b60e_f5431b26b483); #[repr(C)] #[doc(hidden)] pub struct ISymmetricKeyAlgorithmProviderStatics_Vtbl { @@ -879,6 +609,7 @@ impl ::windows_core::RuntimeName for AsymmetricAlgorithmNames { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AsymmetricKeyAlgorithmProvider(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AsymmetricKeyAlgorithmProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AsymmetricKeyAlgorithmProvider { pub fn AlgorithmName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -898,59 +629,59 @@ impl AsymmetricKeyAlgorithmProvider { #[cfg(feature = "Storage_Streams")] pub fn ImportDefaultPrivateKeyBlob(&self, keyblob: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).ImportDefaultPrivateKeyBlob)(::windows_core::Interface::as_raw(this), keyblob.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ImportDefaultPrivateKeyBlob)(::windows_core::Interface::as_raw(this), keyblob.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn ImportKeyPairWithBlobType(&self, keyblob: P0, blobtype: CryptographicPrivateKeyBlobType) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).ImportKeyPairWithBlobType)(::windows_core::Interface::as_raw(this), keyblob.try_into_param()?.abi(), blobtype, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ImportKeyPairWithBlobType)(::windows_core::Interface::as_raw(this), keyblob.into_param().abi(), blobtype, &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn ImportDefaultPublicKeyBlob(&self, keyblob: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).ImportDefaultPublicKeyBlob)(::windows_core::Interface::as_raw(this), keyblob.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ImportDefaultPublicKeyBlob)(::windows_core::Interface::as_raw(this), keyblob.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn ImportPublicKeyWithBlobType(&self, keyblob: P0, blobtype: CryptographicPublicKeyBlobType) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).ImportPublicKeyWithBlobType)(::windows_core::Interface::as_raw(this), keyblob.try_into_param()?.abi(), blobtype, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ImportPublicKeyWithBlobType)(::windows_core::Interface::as_raw(this), keyblob.into_param().abi(), blobtype, &mut result__).from_abi(result__) } } pub fn CreateKeyPairWithCurveName(&self, curvename: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateKeyPairWithCurveName)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(curvename), &mut result__).from_abi(result__) } } pub fn CreateKeyPairWithCurveParameters(&self, parameters: &[u8]) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateKeyPairWithCurveParameters)(::windows_core::Interface::as_raw(this), parameters.len().try_into().unwrap(), parameters.as_ptr(), &mut result__).from_abi(result__) @@ -973,14 +704,11 @@ impl ::windows_core::RuntimeType for AsymmetricKeyAlgorithmProvider { } unsafe impl ::windows_core::Interface for AsymmetricKeyAlgorithmProvider { type Vtable = IAsymmetricKeyAlgorithmProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AsymmetricKeyAlgorithmProvider { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AsymmetricKeyAlgorithmProvider { const NAME: &'static str = "Windows.Security.Cryptography.Core.AsymmetricKeyAlgorithmProvider"; } -::windows_core::imp::interface_hierarchy!(AsymmetricKeyAlgorithmProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AsymmetricKeyAlgorithmProvider {} unsafe impl ::core::marker::Sync for AsymmetricKeyAlgorithmProvider {} pub struct CryptographicEngine; @@ -990,12 +718,12 @@ impl CryptographicEngine { pub fn Encrypt(key: P0, data: P1, iv: P2) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam, - P2: ::windows_core::TryIntoParam, + P1: ::windows_core::IntoParam, + P2: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), iv.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } #[doc = "Required features: `\"Storage_Streams\"`"] @@ -1003,12 +731,12 @@ impl CryptographicEngine { pub fn Decrypt(key: P0, data: P1, iv: P2) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam, - P2: ::windows_core::TryIntoParam, + P1: ::windows_core::IntoParam, + P2: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), iv.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } #[doc = "Required features: `\"Storage_Streams\"`"] @@ -1016,13 +744,13 @@ impl CryptographicEngine { pub fn EncryptAndAuthenticate(key: P0, data: P1, nonce: P2, authenticateddata: P3) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam, - P2: ::windows_core::TryIntoParam, - P3: ::windows_core::TryIntoParam, + P1: ::windows_core::IntoParam, + P2: ::windows_core::IntoParam, + P3: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), nonce.try_into_param()?.abi(), authenticateddata.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } #[doc = "Required features: `\"Storage_Streams\"`"] @@ -1030,14 +758,14 @@ impl CryptographicEngine { pub fn DecryptAndAuthenticate(key: P0, data: P1, nonce: P2, authenticationtag: P3, authenticateddata: P4) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam, - P2: ::windows_core::TryIntoParam, - P3: ::windows_core::TryIntoParam, - P4: ::windows_core::TryIntoParam, + P1: ::windows_core::IntoParam, + P2: ::windows_core::IntoParam, + P3: ::windows_core::IntoParam, + P4: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), nonce.try_into_param()?.abi(), authenticationtag.try_into_param()?.abi(), authenticateddata.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } #[doc = "Required features: `\"Storage_Streams\"`"] @@ -1045,11 +773,11 @@ impl CryptographicEngine { pub fn Sign(key: P0, data: P1) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam, + P1: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).Sign)(::windows_core::Interface::as_raw(this), key.into_param().abi(), data.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Storage_Streams\"`"] @@ -1057,12 +785,12 @@ impl CryptographicEngine { pub fn VerifySignature(key: P0, data: P1, signature: P2) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam, - P2: ::windows_core::TryIntoParam, + P1: ::windows_core::IntoParam, + P2: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), signature.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } #[doc = "Required features: `\"Storage_Streams\"`"] @@ -1082,11 +810,11 @@ impl CryptographicEngine { pub fn SignHashedData(key: P0, data: P1) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam, + P1: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SignHashedData)(::windows_core::Interface::as_raw(this), key.into_param().abi(), data.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Storage_Streams\"`"] @@ -1094,12 +822,12 @@ impl CryptographicEngine { pub fn VerifySignatureWithHashInput(key: P0, data: P1, signature: P2) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam, - P2: ::windows_core::TryIntoParam, + P1: ::windows_core::IntoParam, + P2: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), signature.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } #[doc = "Required features: `\"Storage_Streams\"`"] @@ -1107,12 +835,12 @@ impl CryptographicEngine { pub fn DecryptAsync(key: P0, data: P1, iv: P2) -> ::windows_core::Result> where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam, - P2: ::windows_core::TryIntoParam, + P1: ::windows_core::IntoParam, + P2: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), iv.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } #[doc = "Required features: `\"Storage_Streams\"`"] @@ -1120,11 +848,11 @@ impl CryptographicEngine { pub fn SignAsync(key: P0, data: P1) -> ::windows_core::Result> where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam, + P1: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SignAsync)(::windows_core::Interface::as_raw(this), key.into_param().abi(), data.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Storage_Streams\"`"] @@ -1132,11 +860,11 @@ impl CryptographicEngine { pub fn SignHashedDataAsync(key: P0, data: P1) -> ::windows_core::Result> where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam, + P1: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SignHashedDataAsync)(::windows_core::Interface::as_raw(this), key.into_param().abi(), data.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -1156,15 +884,16 @@ impl ::windows_core::RuntimeName for CryptographicEngine { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CryptographicHash(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CryptographicHash, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CryptographicHash { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn Append(&self, data: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).Append)(::windows_core::Interface::as_raw(this), data.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).Append)(::windows_core::Interface::as_raw(this), data.into_param().abi()).ok() } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] @@ -1181,19 +910,17 @@ impl ::windows_core::RuntimeType for CryptographicHash { } unsafe impl ::windows_core::Interface for CryptographicHash { type Vtable = IHashComputation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CryptographicHash { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CryptographicHash { const NAME: &'static str = "Windows.Security.Cryptography.Core.CryptographicHash"; } -::windows_core::imp::interface_hierarchy!(CryptographicHash, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CryptographicHash {} unsafe impl ::core::marker::Sync for CryptographicHash {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CryptographicKey(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CryptographicKey, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CryptographicKey { pub fn KeySize(&self) -> ::windows_core::Result { let this = self; @@ -1244,14 +971,11 @@ impl ::windows_core::RuntimeType for CryptographicKey { } unsafe impl ::windows_core::Interface for CryptographicKey { type Vtable = ICryptographicKey_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CryptographicKey { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CryptographicKey { const NAME: &'static str = "Windows.Security.Cryptography.Core.CryptographicKey"; } -::windows_core::imp::interface_hierarchy!(CryptographicKey, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CryptographicKey {} unsafe impl ::core::marker::Sync for CryptographicKey {} pub struct EccCurveNames; @@ -1546,6 +1270,7 @@ impl ::windows_core::RuntimeName for EccCurveNames { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EncryptedAndAuthenticatedData(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EncryptedAndAuthenticatedData, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EncryptedAndAuthenticatedData { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] @@ -1571,14 +1296,11 @@ impl ::windows_core::RuntimeType for EncryptedAndAuthenticatedData { } unsafe impl ::windows_core::Interface for EncryptedAndAuthenticatedData { type Vtable = IEncryptedAndAuthenticatedData_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EncryptedAndAuthenticatedData { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EncryptedAndAuthenticatedData { const NAME: &'static str = "Windows.Security.Cryptography.Core.EncryptedAndAuthenticatedData"; } -::windows_core::imp::interface_hierarchy!(EncryptedAndAuthenticatedData, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EncryptedAndAuthenticatedData {} unsafe impl ::core::marker::Sync for EncryptedAndAuthenticatedData {} pub struct HashAlgorithmNames; @@ -1625,6 +1347,7 @@ impl ::windows_core::RuntimeName for HashAlgorithmNames { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HashAlgorithmProvider(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HashAlgorithmProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); impl HashAlgorithmProvider { pub fn AlgorithmName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1644,12 +1367,12 @@ impl HashAlgorithmProvider { #[cfg(feature = "Storage_Streams")] pub fn HashData(&self, data: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).HashData)(::windows_core::Interface::as_raw(this), data.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).HashData)(::windows_core::Interface::as_raw(this), data.into_param().abi(), &mut result__).from_abi(result__) } } pub fn CreateHash(&self) -> ::windows_core::Result { @@ -1676,14 +1399,11 @@ impl ::windows_core::RuntimeType for HashAlgorithmProvider { } unsafe impl ::windows_core::Interface for HashAlgorithmProvider { type Vtable = IHashAlgorithmProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HashAlgorithmProvider { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HashAlgorithmProvider { const NAME: &'static str = "Windows.Security.Cryptography.Core.HashAlgorithmProvider"; } -::windows_core::imp::interface_hierarchy!(HashAlgorithmProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for HashAlgorithmProvider {} unsafe impl ::core::marker::Sync for HashAlgorithmProvider {} pub struct KeyDerivationAlgorithmNames; @@ -1825,6 +1545,7 @@ impl ::windows_core::RuntimeName for KeyDerivationAlgorithmNames { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct KeyDerivationAlgorithmProvider(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(KeyDerivationAlgorithmProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); impl KeyDerivationAlgorithmProvider { pub fn AlgorithmName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1837,12 +1558,12 @@ impl KeyDerivationAlgorithmProvider { #[cfg(feature = "Storage_Streams")] pub fn CreateKey(&self, keymaterial: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateKey)(::windows_core::Interface::as_raw(this), keymaterial.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateKey)(::windows_core::Interface::as_raw(this), keymaterial.into_param().abi(), &mut result__).from_abi(result__) } } pub fn OpenAlgorithm(algorithm: &::windows_core::HSTRING) -> ::windows_core::Result { @@ -1862,19 +1583,17 @@ impl ::windows_core::RuntimeType for KeyDerivationAlgorithmProvider { } unsafe impl ::windows_core::Interface for KeyDerivationAlgorithmProvider { type Vtable = IKeyDerivationAlgorithmProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for KeyDerivationAlgorithmProvider { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for KeyDerivationAlgorithmProvider { const NAME: &'static str = "Windows.Security.Cryptography.Core.KeyDerivationAlgorithmProvider"; } -::windows_core::imp::interface_hierarchy!(KeyDerivationAlgorithmProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for KeyDerivationAlgorithmProvider {} unsafe impl ::core::marker::Sync for KeyDerivationAlgorithmProvider {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct KeyDerivationParameters(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(KeyDerivationParameters, ::windows_core::IUnknown, ::windows_core::IInspectable); impl KeyDerivationParameters { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] @@ -1889,10 +1608,10 @@ impl KeyDerivationParameters { #[cfg(feature = "Storage_Streams")] pub fn SetKdfGenericBinary(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetKdfGenericBinary)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetKdfGenericBinary)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn IterationCount(&self) -> ::windows_core::Result { let this = self; @@ -1902,52 +1621,52 @@ impl KeyDerivationParameters { } } pub fn Capi1KdfTargetAlgorithm(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Capi1KdfTargetAlgorithm)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetCapi1KdfTargetAlgorithm(&self, value: Capi1KdfTargetAlgorithm) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCapi1KdfTargetAlgorithm)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn BuildForPbkdf2(pbkdf2salt: P0, iterationcount: u32) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IKeyDerivationParametersStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).BuildForPbkdf2)(::windows_core::Interface::as_raw(this), pbkdf2salt.try_into_param()?.abi(), iterationcount, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).BuildForPbkdf2)(::windows_core::Interface::as_raw(this), pbkdf2salt.into_param().abi(), iterationcount, &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn BuildForSP800108(label: P0, context: P1) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { Self::IKeyDerivationParametersStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).BuildForSP800108)(::windows_core::Interface::as_raw(this), label.try_into_param()?.abi(), context.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).BuildForSP800108)(::windows_core::Interface::as_raw(this), label.into_param().abi(), context.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn BuildForSP80056a(algorithmid: P0, partyuinfo: P1, partyvinfo: P2, supppubinfo: P3, suppprivinfo: P4) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam, - P2: ::windows_core::TryIntoParam, - P3: ::windows_core::TryIntoParam, - P4: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, + P2: ::windows_core::IntoParam, + P3: ::windows_core::IntoParam, + P4: ::windows_core::IntoParam, { Self::IKeyDerivationParametersStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).BuildForSP80056a)(::windows_core::Interface::as_raw(this), algorithmid.try_into_param()?.abi(), partyuinfo.try_into_param()?.abi(), partyvinfo.try_into_param()?.abi(), supppubinfo.try_into_param()?.abi(), suppprivinfo.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } pub fn BuildForCapi1Kdf(capi1kdftargetalgorithm: Capi1KdfTargetAlgorithm) -> ::windows_core::Result { @@ -1972,14 +1691,11 @@ impl ::windows_core::RuntimeType for KeyDerivationParameters { } unsafe impl ::windows_core::Interface for KeyDerivationParameters { type Vtable = IKeyDerivationParameters_Vtbl; -} -unsafe impl ::windows_core::ComInterface for KeyDerivationParameters { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for KeyDerivationParameters { const NAME: &'static str = "Windows.Security.Cryptography.Core.KeyDerivationParameters"; } -::windows_core::imp::interface_hierarchy!(KeyDerivationParameters, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for KeyDerivationParameters {} unsafe impl ::core::marker::Sync for KeyDerivationParameters {} pub struct MacAlgorithmNames; @@ -2032,6 +1748,7 @@ impl ::windows_core::RuntimeName for MacAlgorithmNames { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MacAlgorithmProvider(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MacAlgorithmProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MacAlgorithmProvider { pub fn AlgorithmName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -2051,24 +1768,24 @@ impl MacAlgorithmProvider { #[cfg(feature = "Storage_Streams")] pub fn CreateKey(&self, keymaterial: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateKey)(::windows_core::Interface::as_raw(this), keymaterial.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateKey)(::windows_core::Interface::as_raw(this), keymaterial.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn CreateHash(&self, keymaterial: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateHash)(::windows_core::Interface::as_raw(this), keymaterial.into_param().abi(), &mut result__).from_abi(result__) } } pub fn OpenAlgorithm(algorithm: &::windows_core::HSTRING) -> ::windows_core::Result { @@ -2088,14 +1805,11 @@ impl ::windows_core::RuntimeType for MacAlgorithmProvider { } unsafe impl ::windows_core::Interface for MacAlgorithmProvider { type Vtable = IMacAlgorithmProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MacAlgorithmProvider { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MacAlgorithmProvider { const NAME: &'static str = "Windows.Security.Cryptography.Core.MacAlgorithmProvider"; } -::windows_core::imp::interface_hierarchy!(MacAlgorithmProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MacAlgorithmProvider {} unsafe impl ::core::marker::Sync for MacAlgorithmProvider {} pub struct PersistedKeyProvider; @@ -2259,6 +1973,7 @@ impl ::windows_core::RuntimeName for SymmetricAlgorithmNames { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SymmetricKeyAlgorithmProvider(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SymmetricKeyAlgorithmProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SymmetricKeyAlgorithmProvider { pub fn AlgorithmName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -2278,12 +1993,12 @@ impl SymmetricKeyAlgorithmProvider { #[cfg(feature = "Storage_Streams")] pub fn CreateSymmetricKey(&self, keymaterial: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateSymmetricKey)(::windows_core::Interface::as_raw(this), keymaterial.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateSymmetricKey)(::windows_core::Interface::as_raw(this), keymaterial.into_param().abi(), &mut result__).from_abi(result__) } } pub fn OpenAlgorithm(algorithm: &::windows_core::HSTRING) -> ::windows_core::Result { @@ -2303,14 +2018,11 @@ impl ::windows_core::RuntimeType for SymmetricKeyAlgorithmProvider { } unsafe impl ::windows_core::Interface for SymmetricKeyAlgorithmProvider { type Vtable = ISymmetricKeyAlgorithmProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SymmetricKeyAlgorithmProvider { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SymmetricKeyAlgorithmProvider { const NAME: &'static str = "Windows.Security.Cryptography.Core.SymmetricKeyAlgorithmProvider"; } -::windows_core::imp::interface_hierarchy!(SymmetricKeyAlgorithmProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SymmetricKeyAlgorithmProvider {} unsafe impl ::core::marker::Sync for SymmetricKeyAlgorithmProvider {} #[repr(transparent)] 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 badb150ca4..241cb2988c 100644 --- a/crates/libs/windows/src/Windows/Security/Cryptography/DataProtection/mod.rs +++ b/crates/libs/windows/src/Windows/Security/Cryptography/DataProtection/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataProtectionProvider(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDataProtectionProvider { - type Vtable = IDataProtectionProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDataProtectionProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x09639948_ed22_4270_bd1c_6d72c00f8787); -} +::windows_core::imp::com_interface!(IDataProtectionProvider, IDataProtectionProvider_Vtbl, 0x09639948_ed22_4270_bd1c_6d72c00f8787); #[repr(C)] #[doc(hidden)] pub struct IDataProtectionProvider_Vtbl { @@ -29,16 +20,7 @@ pub struct IDataProtectionProvider_Vtbl { #[cfg(not(feature = "Storage_Streams"))] UnprotectStreamAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataProtectionProviderFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDataProtectionProviderFactory { - type Vtable = IDataProtectionProviderFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDataProtectionProviderFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xadf33dac_4932_4cdf_ac41_7214333514ca); -} +::windows_core::imp::com_interface!(IDataProtectionProviderFactory, IDataProtectionProviderFactory_Vtbl, 0xadf33dac_4932_4cdf_ac41_7214333514ca); #[repr(C)] #[doc(hidden)] pub struct IDataProtectionProviderFactory_Vtbl { @@ -48,6 +30,7 @@ pub struct IDataProtectionProviderFactory_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DataProtectionProvider(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DataProtectionProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DataProtectionProvider { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -60,50 +43,50 @@ impl DataProtectionProvider { #[cfg(feature = "Storage_Streams")] pub fn ProtectAsync(&self, data: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).ProtectAsync)(::windows_core::Interface::as_raw(this), data.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ProtectAsync)(::windows_core::Interface::as_raw(this), data.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn UnprotectAsync(&self, data: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).UnprotectAsync)(::windows_core::Interface::as_raw(this), data.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).UnprotectAsync)(::windows_core::Interface::as_raw(this), data.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn ProtectStreamAsync(&self, src: P0, dest: P1) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).ProtectStreamAsync)(::windows_core::Interface::as_raw(this), src.try_into_param()?.abi(), dest.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ProtectStreamAsync)(::windows_core::Interface::as_raw(this), src.into_param().abi(), dest.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn UnprotectStreamAsync(&self, src: P0, dest: P1) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).UnprotectStreamAsync)(::windows_core::Interface::as_raw(this), src.try_into_param()?.abi(), dest.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).UnprotectStreamAsync)(::windows_core::Interface::as_raw(this), src.into_param().abi(), dest.into_param().abi(), &mut result__).from_abi(result__) } } pub fn CreateOverloadExplicit(protectiondescriptor: &::windows_core::HSTRING) -> ::windows_core::Result { @@ -123,13 +106,10 @@ impl ::windows_core::RuntimeType for DataProtectionProvider { } unsafe impl ::windows_core::Interface for DataProtectionProvider { type Vtable = IDataProtectionProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DataProtectionProvider { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DataProtectionProvider { const NAME: &'static str = "Windows.Security.Cryptography.DataProtection.DataProtectionProvider"; } -::windows_core::imp::interface_hierarchy!(DataProtectionProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DataProtectionProvider {} unsafe impl ::core::marker::Sync for DataProtectionProvider {} diff --git a/crates/libs/windows/src/Windows/Security/Cryptography/mod.rs b/crates/libs/windows/src/Windows/Security/Cryptography/mod.rs index 5d532e1479..c4dbaa9a08 100644 --- a/crates/libs/windows/src/Windows/Security/Cryptography/mod.rs +++ b/crates/libs/windows/src/Windows/Security/Cryptography/mod.rs @@ -7,16 +7,7 @@ pub mod Core; #[cfg(feature = "Security_Cryptography_DataProtection")] #[doc = "Required features: `\"Security_Cryptography_DataProtection\"`"] pub mod DataProtection; -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICryptographicBufferStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICryptographicBufferStatics { - type Vtable = ICryptographicBufferStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICryptographicBufferStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x320b7e22_3cb0_4cdf_8663_1d28910065eb); -} +::windows_core::imp::com_interface!(ICryptographicBufferStatics, ICryptographicBufferStatics_Vtbl, 0x320b7e22_3cb0_4cdf_8663_1d28910065eb); #[repr(C)] #[doc(hidden)] pub struct ICryptographicBufferStatics_Vtbl { @@ -69,12 +60,12 @@ impl CryptographicBuffer { #[cfg(feature = "Storage_Streams")] pub fn Compare(object1: P0, object2: P1) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { Self::ICryptographicBufferStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).Compare)(::windows_core::Interface::as_raw(this), object1.try_into_param()?.abi(), object2.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).Compare)(::windows_core::Interface::as_raw(this), object1.into_param().abi(), object2.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Storage_Streams\"`"] @@ -103,9 +94,9 @@ impl CryptographicBuffer { #[cfg(feature = "Storage_Streams")] pub fn CopyToByteArray(buffer: P0, value: &mut ::windows_core::Array) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - Self::ICryptographicBufferStatics(|this| unsafe { (::windows_core::Interface::vtable(this).CopyToByteArray)(::windows_core::Interface::as_raw(this), buffer.try_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.into_param().abi(), value.set_abi_len(), value as *mut _ as _).ok() }) } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] @@ -119,11 +110,11 @@ impl CryptographicBuffer { #[cfg(feature = "Storage_Streams")] pub fn EncodeToHexString(buffer: P0) -> ::windows_core::Result<::windows_core::HSTRING> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::ICryptographicBufferStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).EncodeToHexString)(::windows_core::Interface::as_raw(this), buffer.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).EncodeToHexString)(::windows_core::Interface::as_raw(this), buffer.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Storage_Streams\"`"] @@ -138,11 +129,11 @@ impl CryptographicBuffer { #[cfg(feature = "Storage_Streams")] pub fn EncodeToBase64String(buffer: P0) -> ::windows_core::Result<::windows_core::HSTRING> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::ICryptographicBufferStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).EncodeToBase64String)(::windows_core::Interface::as_raw(this), buffer.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).EncodeToBase64String)(::windows_core::Interface::as_raw(this), buffer.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Storage_Streams\"`"] @@ -157,11 +148,11 @@ impl CryptographicBuffer { #[cfg(feature = "Storage_Streams")] pub fn ConvertBinaryToString(encoding: BinaryStringEncoding, buffer: P0) -> ::windows_core::Result<::windows_core::HSTRING> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::ICryptographicBufferStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).ConvertBinaryToString)(::windows_core::Interface::as_raw(this), encoding, buffer.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ConvertBinaryToString)(::windows_core::Interface::as_raw(this), encoding, buffer.into_param().abi(), &mut result__).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 4e7df09795..b67e3e9ad9 100644 --- a/crates/libs/windows/src/Windows/Security/DataProtection/mod.rs +++ b/crates/libs/windows/src/Windows/Security/DataProtection/mod.rs @@ -1,29 +1,11 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserDataAvailabilityStateChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserDataAvailabilityStateChangedEventArgs { - type Vtable = IUserDataAvailabilityStateChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserDataAvailabilityStateChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa76582c9_06a2_4273_a803_834c9f87fbeb); -} +::windows_core::imp::com_interface!(IUserDataAvailabilityStateChangedEventArgs, IUserDataAvailabilityStateChangedEventArgs_Vtbl, 0xa76582c9_06a2_4273_a803_834c9f87fbeb); #[repr(C)] #[doc(hidden)] pub struct IUserDataAvailabilityStateChangedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserDataBufferUnprotectResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserDataBufferUnprotectResult { - type Vtable = IUserDataBufferUnprotectResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserDataBufferUnprotectResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8efd0e90_fa9a_46a4_a377_01cebf1e74d8); -} +::windows_core::imp::com_interface!(IUserDataBufferUnprotectResult, IUserDataBufferUnprotectResult_Vtbl, 0x8efd0e90_fa9a_46a4_a377_01cebf1e74d8); #[repr(C)] #[doc(hidden)] pub struct IUserDataBufferUnprotectResult_Vtbl { @@ -34,16 +16,7 @@ pub struct IUserDataBufferUnprotectResult_Vtbl { #[cfg(not(feature = "Storage_Streams"))] UnprotectedBuffer: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserDataProtectionManager(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserDataProtectionManager { - type Vtable = IUserDataProtectionManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserDataProtectionManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1f13237d_b42e_4a88_9480_0f240924c876); -} +::windows_core::imp::com_interface!(IUserDataProtectionManager, IUserDataProtectionManager_Vtbl, 0x1f13237d_b42e_4a88_9480_0f240924c876); #[repr(C)] #[doc(hidden)] pub struct IUserDataProtectionManager_Vtbl { @@ -68,16 +41,7 @@ pub struct IUserDataProtectionManager_Vtbl { pub DataAvailabilityStateChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveDataAvailabilityStateChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserDataProtectionManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserDataProtectionManagerStatics { - type Vtable = IUserDataProtectionManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserDataProtectionManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x977780e8_6dce_4fae_af85_782ac2cf4572); -} +::windows_core::imp::com_interface!(IUserDataProtectionManagerStatics, IUserDataProtectionManagerStatics_Vtbl, 0x977780e8_6dce_4fae_af85_782ac2cf4572); #[repr(C)] #[doc(hidden)] pub struct IUserDataProtectionManagerStatics_Vtbl { @@ -88,16 +52,7 @@ pub struct IUserDataProtectionManagerStatics_Vtbl { #[cfg(not(feature = "System"))] TryGetForUser: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserDataStorageItemProtectionInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserDataStorageItemProtectionInfo { - type Vtable = IUserDataStorageItemProtectionInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserDataStorageItemProtectionInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5b6680f6_e87f_40a1_b19d_a6187a0c662f); -} +::windows_core::imp::com_interface!(IUserDataStorageItemProtectionInfo, IUserDataStorageItemProtectionInfo_Vtbl, 0x5b6680f6_e87f_40a1_b19d_a6187a0c662f); #[repr(C)] #[doc(hidden)] pub struct IUserDataStorageItemProtectionInfo_Vtbl { @@ -107,6 +62,7 @@ pub struct IUserDataStorageItemProtectionInfo_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UserDataAvailabilityStateChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UserDataAvailabilityStateChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UserDataAvailabilityStateChangedEventArgs { pub fn GetDeferral(&self) -> ::windows_core::Result { let this = self; @@ -121,19 +77,17 @@ impl ::windows_core::RuntimeType for UserDataAvailabilityStateChangedEventArgs { } unsafe impl ::windows_core::Interface for UserDataAvailabilityStateChangedEventArgs { type Vtable = IUserDataAvailabilityStateChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UserDataAvailabilityStateChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UserDataAvailabilityStateChangedEventArgs { const NAME: &'static str = "Windows.Security.DataProtection.UserDataAvailabilityStateChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(UserDataAvailabilityStateChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UserDataAvailabilityStateChangedEventArgs {} unsafe impl ::core::marker::Sync for UserDataAvailabilityStateChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UserDataBufferUnprotectResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UserDataBufferUnprotectResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UserDataBufferUnprotectResult { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -157,66 +111,64 @@ impl ::windows_core::RuntimeType for UserDataBufferUnprotectResult { } unsafe impl ::windows_core::Interface for UserDataBufferUnprotectResult { type Vtable = IUserDataBufferUnprotectResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UserDataBufferUnprotectResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UserDataBufferUnprotectResult { const NAME: &'static str = "Windows.Security.DataProtection.UserDataBufferUnprotectResult"; } -::windows_core::imp::interface_hierarchy!(UserDataBufferUnprotectResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UserDataBufferUnprotectResult {} unsafe impl ::core::marker::Sync for UserDataBufferUnprotectResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UserDataProtectionManager(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UserDataProtectionManager, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UserDataProtectionManager { #[doc = "Required features: `\"Storage\"`"] #[cfg(feature = "Storage")] pub fn ProtectStorageItemAsync(&self, storageitem: P0, availability: UserDataAvailability) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).ProtectStorageItemAsync)(::windows_core::Interface::as_raw(this), storageitem.try_into_param()?.abi(), availability, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ProtectStorageItemAsync)(::windows_core::Interface::as_raw(this), storageitem.into_param().abi(), availability, &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Storage\"`"] #[cfg(feature = "Storage")] pub fn GetStorageItemProtectionInfoAsync(&self, storageitem: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).GetStorageItemProtectionInfoAsync)(::windows_core::Interface::as_raw(this), storageitem.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).GetStorageItemProtectionInfoAsync)(::windows_core::Interface::as_raw(this), storageitem.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn ProtectBufferAsync(&self, unprotectedbuffer: P0, availability: UserDataAvailability) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).ProtectBufferAsync)(::windows_core::Interface::as_raw(this), unprotectedbuffer.try_into_param()?.abi(), availability, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ProtectBufferAsync)(::windows_core::Interface::as_raw(this), unprotectedbuffer.into_param().abi(), availability, &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn UnprotectBufferAsync(&self, protectedbuffer: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).UnprotectBufferAsync)(::windows_core::Interface::as_raw(this), protectedbuffer.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).UnprotectBufferAsync)(::windows_core::Interface::as_raw(this), protectedbuffer.into_param().abi(), &mut result__).from_abi(result__) } } pub fn IsContinuedDataAvailabilityExpected(&self, availability: UserDataAvailability) -> ::windows_core::Result { @@ -268,19 +220,17 @@ impl ::windows_core::RuntimeType for UserDataProtectionManager { } unsafe impl ::windows_core::Interface for UserDataProtectionManager { type Vtable = IUserDataProtectionManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UserDataProtectionManager { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UserDataProtectionManager { const NAME: &'static str = "Windows.Security.DataProtection.UserDataProtectionManager"; } -::windows_core::imp::interface_hierarchy!(UserDataProtectionManager, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UserDataProtectionManager {} unsafe impl ::core::marker::Sync for UserDataProtectionManager {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UserDataStorageItemProtectionInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UserDataStorageItemProtectionInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UserDataStorageItemProtectionInfo { pub fn Availability(&self) -> ::windows_core::Result { let this = self; @@ -295,14 +245,11 @@ impl ::windows_core::RuntimeType for UserDataStorageItemProtectionInfo { } unsafe impl ::windows_core::Interface for UserDataStorageItemProtectionInfo { type Vtable = IUserDataStorageItemProtectionInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UserDataStorageItemProtectionInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UserDataStorageItemProtectionInfo { const NAME: &'static str = "Windows.Security.DataProtection.UserDataStorageItemProtectionInfo"; } -::windows_core::imp::interface_hierarchy!(UserDataStorageItemProtectionInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UserDataStorageItemProtectionInfo {} unsafe impl ::core::marker::Sync for UserDataStorageItemProtectionInfo {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Security/EnterpriseData/mod.rs b/crates/libs/windows/src/Windows/Security/EnterpriseData/mod.rs index e97cd0ef2a..cc7fd16127 100644 --- a/crates/libs/windows/src/Windows/Security/EnterpriseData/mod.rs +++ b/crates/libs/windows/src/Windows/Security/EnterpriseData/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBufferProtectUnprotectResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBufferProtectUnprotectResult { - type Vtable = IBufferProtectUnprotectResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBufferProtectUnprotectResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x47995edc_6cec_4e3a_b251_9e7485d79e7a); -} +::windows_core::imp::com_interface!(IBufferProtectUnprotectResult, IBufferProtectUnprotectResult_Vtbl, 0x47995edc_6cec_4e3a_b251_9e7485d79e7a); #[repr(C)] #[doc(hidden)] pub struct IBufferProtectUnprotectResult_Vtbl { @@ -18,16 +9,7 @@ pub struct IBufferProtectUnprotectResult_Vtbl { Buffer: usize, pub ProtectionInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataProtectionInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDataProtectionInfo { - type Vtable = IDataProtectionInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDataProtectionInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8420b0c1_5e31_4405_9540_3f943af0cb26); -} +::windows_core::imp::com_interface!(IDataProtectionInfo, IDataProtectionInfo_Vtbl, 0x8420b0c1_5e31_4405_9540_3f943af0cb26); #[repr(C)] #[doc(hidden)] pub struct IDataProtectionInfo_Vtbl { @@ -35,16 +17,7 @@ pub struct IDataProtectionInfo_Vtbl { pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut DataProtectionStatus) -> ::windows_core::HRESULT, pub Identity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataProtectionManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDataProtectionManagerStatics { - type Vtable = IDataProtectionManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDataProtectionManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb6149b74_9144_4ee4_8a8a_30b5f361430e); -} +::windows_core::imp::com_interface!(IDataProtectionManagerStatics, IDataProtectionManagerStatics_Vtbl, 0xb6149b74_9144_4ee4_8a8a_30b5f361430e); #[repr(C)] #[doc(hidden)] pub struct IDataProtectionManagerStatics_Vtbl { @@ -74,16 +47,7 @@ pub struct IDataProtectionManagerStatics_Vtbl { #[cfg(not(feature = "Storage_Streams"))] GetStreamProtectionInfoAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFileProtectionInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFileProtectionInfo { - type Vtable = IFileProtectionInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFileProtectionInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4ee96486_147e_4dd0_8faf_5253ed91ad0c); -} +::windows_core::imp::com_interface!(IFileProtectionInfo, IFileProtectionInfo_Vtbl, 0x4ee96486_147e_4dd0_8faf_5253ed91ad0c); #[repr(C)] #[doc(hidden)] pub struct IFileProtectionInfo_Vtbl { @@ -92,32 +56,14 @@ pub struct IFileProtectionInfo_Vtbl { pub IsRoamable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub Identity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFileProtectionInfo2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFileProtectionInfo2 { - type Vtable = IFileProtectionInfo2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFileProtectionInfo2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x82123a4c_557a_498d_8e94_944cd5836432); -} +::windows_core::imp::com_interface!(IFileProtectionInfo2, IFileProtectionInfo2_Vtbl, 0x82123a4c_557a_498d_8e94_944cd5836432); #[repr(C)] #[doc(hidden)] pub struct IFileProtectionInfo2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub IsProtectWhileOpenSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFileProtectionManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFileProtectionManagerStatics { - type Vtable = IFileProtectionManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFileProtectionManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5846fc9b_e613_426b_bb38_88cba1dc9adb); -} +::windows_core::imp::com_interface!(IFileProtectionManagerStatics, IFileProtectionManagerStatics_Vtbl, 0x5846fc9b_e613_426b_bb38_88cba1dc9adb); #[repr(C)] #[doc(hidden)] pub struct IFileProtectionManagerStatics_Vtbl { @@ -151,16 +97,7 @@ pub struct IFileProtectionManagerStatics_Vtbl { #[cfg(not(feature = "Storage"))] CreateProtectedAndOpenAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFileProtectionManagerStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFileProtectionManagerStatics2 { - type Vtable = IFileProtectionManagerStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFileProtectionManagerStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x83d2a745_0483_41ab_b2d5_bc7f23d74ebb); -} +::windows_core::imp::com_interface!(IFileProtectionManagerStatics2, IFileProtectionManagerStatics2_Vtbl, 0x83d2a745_0483_41ab_b2d5_bc7f23d74ebb); #[repr(C)] #[doc(hidden)] pub struct IFileProtectionManagerStatics2_Vtbl { @@ -178,16 +115,7 @@ pub struct IFileProtectionManagerStatics2_Vtbl { #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage")))] SaveFileAsContainerWithSharingAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFileProtectionManagerStatics3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFileProtectionManagerStatics3 { - type Vtable = IFileProtectionManagerStatics3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFileProtectionManagerStatics3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6918849a_624f_46d6_b241_e9cd5fdf3e3f); -} +::windows_core::imp::com_interface!(IFileProtectionManagerStatics3, IFileProtectionManagerStatics3_Vtbl, 0x6918849a_624f_46d6_b241_e9cd5fdf3e3f); #[repr(C)] #[doc(hidden)] pub struct IFileProtectionManagerStatics3_Vtbl { @@ -201,19 +129,13 @@ pub struct IFileProtectionManagerStatics3_Vtbl { #[cfg(not(feature = "Storage"))] UnprotectWithOptionsAsync: usize, } -#[doc(hidden)] -#[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFileRevocationManagerStatics(::windows_core::IUnknown); #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for IFileRevocationManagerStatics { - type Vtable = IFileRevocationManagerStatics_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for IFileRevocationManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x256bbc3d_1c5d_4260_8c75_9144cfb78ba9); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + IFileRevocationManagerStatics, + IFileRevocationManagerStatics_Vtbl, + 0x256bbc3d_1c5d_4260_8c75_9144cfb78ba9 +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -236,16 +158,7 @@ pub struct IFileRevocationManagerStatics_Vtbl { #[cfg(not(all(feature = "Storage", feature = "deprecated")))] GetStatusAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFileUnprotectOptions(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFileUnprotectOptions { - type Vtable = IFileUnprotectOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFileUnprotectOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7d1312f1_3b0d_4dd8_a1f8_1ec53822e2f3); -} +::windows_core::imp::com_interface!(IFileUnprotectOptions, IFileUnprotectOptions_Vtbl, 0x7d1312f1_3b0d_4dd8_a1f8_1ec53822e2f3); #[repr(C)] #[doc(hidden)] pub struct IFileUnprotectOptions_Vtbl { @@ -253,32 +166,14 @@ pub struct IFileUnprotectOptions_Vtbl { pub SetAudit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, pub Audit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFileUnprotectOptionsFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFileUnprotectOptionsFactory { - type Vtable = IFileUnprotectOptionsFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFileUnprotectOptionsFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51aeb39c_da8c_4c3f_9bfb_cb73a7cce0dd); -} +::windows_core::imp::com_interface!(IFileUnprotectOptionsFactory, IFileUnprotectOptionsFactory_Vtbl, 0x51aeb39c_da8c_4c3f_9bfb_cb73a7cce0dd); #[repr(C)] #[doc(hidden)] pub struct IFileUnprotectOptionsFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, audit: bool, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProtectedAccessResumedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProtectedAccessResumedEventArgs { - type Vtable = IProtectedAccessResumedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProtectedAccessResumedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xac4dca59_5d80_4e95_8c5f_8539450eebe0); -} +::windows_core::imp::com_interface!(IProtectedAccessResumedEventArgs, IProtectedAccessResumedEventArgs_Vtbl, 0xac4dca59_5d80_4e95_8c5f_8539450eebe0); #[repr(C)] #[doc(hidden)] pub struct IProtectedAccessResumedEventArgs_Vtbl { @@ -288,16 +183,7 @@ pub struct IProtectedAccessResumedEventArgs_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Identities: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProtectedAccessSuspendingEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProtectedAccessSuspendingEventArgs { - type Vtable = IProtectedAccessSuspendingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProtectedAccessSuspendingEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x75a193e0_a344_429f_b975_04fc1f88c185); -} +::windows_core::imp::com_interface!(IProtectedAccessSuspendingEventArgs, IProtectedAccessSuspendingEventArgs_Vtbl, 0x75a193e0_a344_429f_b975_04fc1f88c185); #[repr(C)] #[doc(hidden)] pub struct IProtectedAccessSuspendingEventArgs_Vtbl { @@ -309,16 +195,7 @@ pub struct IProtectedAccessSuspendingEventArgs_Vtbl { pub Deadline: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::DateTime) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProtectedContainerExportResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProtectedContainerExportResult { - type Vtable = IProtectedContainerExportResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProtectedContainerExportResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3948ef95_f7fb_4b42_afb0_df70b41543c1); -} +::windows_core::imp::com_interface!(IProtectedContainerExportResult, IProtectedContainerExportResult_Vtbl, 0x3948ef95_f7fb_4b42_afb0_df70b41543c1); #[repr(C)] #[doc(hidden)] pub struct IProtectedContainerExportResult_Vtbl { @@ -329,16 +206,7 @@ pub struct IProtectedContainerExportResult_Vtbl { #[cfg(not(feature = "Storage"))] File: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProtectedContainerImportResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProtectedContainerImportResult { - type Vtable = IProtectedContainerImportResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProtectedContainerImportResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcdb780d1_e7bb_4d1a_9339_34dc41149f9b); -} +::windows_core::imp::com_interface!(IProtectedContainerImportResult, IProtectedContainerImportResult_Vtbl, 0xcdb780d1_e7bb_4d1a_9339_34dc41149f9b); #[repr(C)] #[doc(hidden)] pub struct IProtectedContainerImportResult_Vtbl { @@ -349,16 +217,7 @@ pub struct IProtectedContainerImportResult_Vtbl { #[cfg(not(feature = "Storage"))] File: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProtectedContentRevokedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProtectedContentRevokedEventArgs { - type Vtable = IProtectedContentRevokedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProtectedContentRevokedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x63686821_58b9_47ee_93d9_f0f741cf43f0); -} +::windows_core::imp::com_interface!(IProtectedContentRevokedEventArgs, IProtectedContentRevokedEventArgs_Vtbl, 0x63686821_58b9_47ee_93d9_f0f741cf43f0); #[repr(C)] #[doc(hidden)] pub struct IProtectedContentRevokedEventArgs_Vtbl { @@ -368,16 +227,7 @@ pub struct IProtectedContentRevokedEventArgs_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Identities: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProtectedFileCreateResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProtectedFileCreateResult { - type Vtable = IProtectedFileCreateResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProtectedFileCreateResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x28e3ed6a_e9e7_4a03_9f53_bdb16172699b); -} +::windows_core::imp::com_interface!(IProtectedFileCreateResult, IProtectedFileCreateResult_Vtbl, 0x28e3ed6a_e9e7_4a03_9f53_bdb16172699b); #[repr(C)] #[doc(hidden)] pub struct IProtectedFileCreateResult_Vtbl { @@ -392,16 +242,7 @@ pub struct IProtectedFileCreateResult_Vtbl { Stream: usize, pub ProtectionInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProtectionPolicyAuditInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProtectionPolicyAuditInfo { - type Vtable = IProtectionPolicyAuditInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProtectionPolicyAuditInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x425ab7e4_feb7_44fc_b3bb_c3c4d7ecbebb); -} +::windows_core::imp::com_interface!(IProtectionPolicyAuditInfo, IProtectionPolicyAuditInfo_Vtbl, 0x425ab7e4_feb7_44fc_b3bb_c3c4d7ecbebb); #[repr(C)] #[doc(hidden)] pub struct IProtectionPolicyAuditInfo_Vtbl { @@ -415,16 +256,7 @@ pub struct IProtectionPolicyAuditInfo_Vtbl { pub SetTargetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub TargetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProtectionPolicyAuditInfoFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProtectionPolicyAuditInfoFactory { - type Vtable = IProtectionPolicyAuditInfoFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProtectionPolicyAuditInfoFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7ed4180b_92e8_42d5_83d4_25440b423549); -} +::windows_core::imp::com_interface!(IProtectionPolicyAuditInfoFactory, IProtectionPolicyAuditInfoFactory_Vtbl, 0x7ed4180b_92e8_42d5_83d4_25440b423549); #[repr(C)] #[doc(hidden)] pub struct IProtectionPolicyAuditInfoFactory_Vtbl { @@ -432,16 +264,7 @@ pub struct IProtectionPolicyAuditInfoFactory_Vtbl { pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, action: ProtectionPolicyAuditAction, datadescription: ::std::mem::MaybeUninit<::windows_core::HSTRING>, sourcedescription: ::std::mem::MaybeUninit<::windows_core::HSTRING>, targetdescription: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateWithActionAndDataDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, action: ProtectionPolicyAuditAction, datadescription: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProtectionPolicyManager(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProtectionPolicyManager { - type Vtable = IProtectionPolicyManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProtectionPolicyManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd5703e18_a08d_47e6_a240_9934d7165eb5); -} +::windows_core::imp::com_interface!(IProtectionPolicyManager, IProtectionPolicyManager_Vtbl, 0xd5703e18_a08d_47e6_a240_9934d7165eb5); #[repr(C)] #[doc(hidden)] pub struct IProtectionPolicyManager_Vtbl { @@ -449,16 +272,7 @@ pub struct IProtectionPolicyManager_Vtbl { pub SetIdentity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Identity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProtectionPolicyManager2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProtectionPolicyManager2 { - type Vtable = IProtectionPolicyManager2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProtectionPolicyManager2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xabf7527a_8435_417f_99b6_51beaf365888); -} +::windows_core::imp::com_interface!(IProtectionPolicyManager2, IProtectionPolicyManager2_Vtbl, 0xabf7527a_8435_417f_99b6_51beaf365888); #[repr(C)] #[doc(hidden)] pub struct IProtectionPolicyManager2_Vtbl { @@ -466,16 +280,7 @@ pub struct IProtectionPolicyManager2_Vtbl { pub SetShowEnterpriseIndicator: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, pub ShowEnterpriseIndicator: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProtectionPolicyManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProtectionPolicyManagerStatics { - type Vtable = IProtectionPolicyManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProtectionPolicyManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc0bffc66_8c3d_4d56_8804_c68f0ad32ec5); -} +::windows_core::imp::com_interface!(IProtectionPolicyManagerStatics, IProtectionPolicyManagerStatics_Vtbl, 0xc0bffc66_8c3d_4d56_8804_c68f0ad32ec5); #[repr(C)] #[doc(hidden)] pub struct IProtectionPolicyManagerStatics_Vtbl { @@ -499,16 +304,7 @@ pub struct IProtectionPolicyManagerStatics_Vtbl { pub CheckAccess: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sourceidentity: ::std::mem::MaybeUninit<::windows_core::HSTRING>, targetidentity: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut ProtectionPolicyEvaluationResult) -> ::windows_core::HRESULT, pub RequestAccessAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sourceidentity: ::std::mem::MaybeUninit<::windows_core::HSTRING>, targetidentity: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProtectionPolicyManagerStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProtectionPolicyManagerStatics2 { - type Vtable = IProtectionPolicyManagerStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProtectionPolicyManagerStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb68f9a8c_39e0_4649_b2e4_070ab8a579b3); -} +::windows_core::imp::com_interface!(IProtectionPolicyManagerStatics2, IProtectionPolicyManagerStatics2_Vtbl, 0xb68f9a8c_39e0_4649_b2e4_070ab8a579b3); #[repr(C)] #[doc(hidden)] pub struct IProtectionPolicyManagerStatics2_Vtbl { @@ -523,16 +319,7 @@ pub struct IProtectionPolicyManagerStatics2_Vtbl { pub RemovePolicyChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub IsProtectionEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProtectionPolicyManagerStatics3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProtectionPolicyManagerStatics3 { - type Vtable = IProtectionPolicyManagerStatics3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProtectionPolicyManagerStatics3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x48ff9e8c_6a6f_4d9f_bced_18ab537aa015); -} +::windows_core::imp::com_interface!(IProtectionPolicyManagerStatics3, IProtectionPolicyManagerStatics3_Vtbl, 0x48ff9e8c_6a6f_4d9f_bced_18ab537aa015); #[repr(C)] #[doc(hidden)] pub struct IProtectionPolicyManagerStatics3_Vtbl { @@ -543,16 +330,7 @@ pub struct IProtectionPolicyManagerStatics3_Vtbl { pub RequestAccessForAppWithMessageAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sourceidentity: ::std::mem::MaybeUninit<::windows_core::HSTRING>, apppackagefamilyname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, auditinfo: *mut ::core::ffi::c_void, messagefromapp: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub LogAuditEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sourceidentity: ::std::mem::MaybeUninit<::windows_core::HSTRING>, targetidentity: ::std::mem::MaybeUninit<::windows_core::HSTRING>, auditinfo: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProtectionPolicyManagerStatics4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProtectionPolicyManagerStatics4 { - type Vtable = IProtectionPolicyManagerStatics4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProtectionPolicyManagerStatics4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x20b794db_ccbd_490f_8c83_49ccb77aea6c); -} +::windows_core::imp::com_interface!(IProtectionPolicyManagerStatics4, IProtectionPolicyManagerStatics4_Vtbl, 0x20b794db_ccbd_490f_8c83_49ccb77aea6c); #[repr(C)] #[doc(hidden)] pub struct IProtectionPolicyManagerStatics4_Vtbl { @@ -587,16 +365,7 @@ pub struct IProtectionPolicyManagerStatics4_Vtbl { pub PrimaryManagedIdentity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub GetPrimaryManagedIdentityForIdentity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, identity: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IThreadNetworkContext(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IThreadNetworkContext { - type Vtable = IThreadNetworkContext_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IThreadNetworkContext { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfa4ea8e9_ef13_405a_b12c_d7348c6f41fc); -} +::windows_core::imp::com_interface!(IThreadNetworkContext, IThreadNetworkContext_Vtbl, 0xfa4ea8e9_ef13_405a_b12c_d7348c6f41fc); #[repr(C)] #[doc(hidden)] pub struct IThreadNetworkContext_Vtbl { @@ -605,6 +374,7 @@ pub struct IThreadNetworkContext_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BufferProtectUnprotectResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BufferProtectUnprotectResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BufferProtectUnprotectResult { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] @@ -628,19 +398,17 @@ impl ::windows_core::RuntimeType for BufferProtectUnprotectResult { } unsafe impl ::windows_core::Interface for BufferProtectUnprotectResult { type Vtable = IBufferProtectUnprotectResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BufferProtectUnprotectResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BufferProtectUnprotectResult { const NAME: &'static str = "Windows.Security.EnterpriseData.BufferProtectUnprotectResult"; } -::windows_core::imp::interface_hierarchy!(BufferProtectUnprotectResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BufferProtectUnprotectResult {} unsafe impl ::core::marker::Sync for BufferProtectUnprotectResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DataProtectionInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DataProtectionInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DataProtectionInfo { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -662,14 +430,11 @@ impl ::windows_core::RuntimeType for DataProtectionInfo { } unsafe impl ::windows_core::Interface for DataProtectionInfo { type Vtable = IDataProtectionInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DataProtectionInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DataProtectionInfo { const NAME: &'static str = "Windows.Security.EnterpriseData.DataProtectionInfo"; } -::windows_core::imp::interface_hierarchy!(DataProtectionInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DataProtectionInfo {} unsafe impl ::core::marker::Sync for DataProtectionInfo {} pub struct DataProtectionManager; @@ -678,68 +443,68 @@ impl DataProtectionManager { #[cfg(feature = "Storage_Streams")] pub fn ProtectAsync(data: P0, identity: &::windows_core::HSTRING) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IDataProtectionManagerStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).ProtectAsync)(::windows_core::Interface::as_raw(this), data.try_into_param()?.abi(), ::core::mem::transmute_copy(identity), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ProtectAsync)(::windows_core::Interface::as_raw(this), data.into_param().abi(), ::core::mem::transmute_copy(identity), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn UnprotectAsync(data: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IDataProtectionManagerStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).UnprotectAsync)(::windows_core::Interface::as_raw(this), data.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).UnprotectAsync)(::windows_core::Interface::as_raw(this), data.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn ProtectStreamAsync(unprotectedstream: P0, identity: &::windows_core::HSTRING, protectedstream: P1) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { Self::IDataProtectionManagerStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).ProtectStreamAsync)(::windows_core::Interface::as_raw(this), unprotectedstream.try_into_param()?.abi(), ::core::mem::transmute_copy(identity), protectedstream.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn UnprotectStreamAsync(protectedstream: P0, unprotectedstream: P1) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { Self::IDataProtectionManagerStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).UnprotectStreamAsync)(::windows_core::Interface::as_raw(this), protectedstream.try_into_param()?.abi(), unprotectedstream.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).UnprotectStreamAsync)(::windows_core::Interface::as_raw(this), protectedstream.into_param().abi(), unprotectedstream.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn GetProtectionInfoAsync(protecteddata: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IDataProtectionManagerStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).GetProtectionInfoAsync)(::windows_core::Interface::as_raw(this), protecteddata.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).GetProtectionInfoAsync)(::windows_core::Interface::as_raw(this), protecteddata.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn GetStreamProtectionInfoAsync(protectedstream: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IDataProtectionManagerStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).GetStreamProtectionInfoAsync)(::windows_core::Interface::as_raw(this), protectedstream.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).GetStreamProtectionInfoAsync)(::windows_core::Interface::as_raw(this), protectedstream.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -754,6 +519,7 @@ impl ::windows_core::RuntimeName for DataProtectionManager { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct FileProtectionInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(FileProtectionInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl FileProtectionInfo { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -777,7 +543,7 @@ impl FileProtectionInfo { } } pub fn IsProtectWhileOpenSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsProtectWhileOpenSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -789,14 +555,11 @@ impl ::windows_core::RuntimeType for FileProtectionInfo { } unsafe impl ::windows_core::Interface for FileProtectionInfo { type Vtable = IFileProtectionInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for FileProtectionInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for FileProtectionInfo { const NAME: &'static str = "Windows.Security.EnterpriseData.FileProtectionInfo"; } -::windows_core::imp::interface_hierarchy!(FileProtectionInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for FileProtectionInfo {} unsafe impl ::core::marker::Sync for FileProtectionInfo {} pub struct FileProtectionManager; @@ -805,137 +568,137 @@ impl FileProtectionManager { #[cfg(feature = "Storage")] pub fn ProtectAsync(target: P0, identity: &::windows_core::HSTRING) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IFileProtectionManagerStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).ProtectAsync)(::windows_core::Interface::as_raw(this), target.try_into_param()?.abi(), ::core::mem::transmute_copy(identity), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ProtectAsync)(::windows_core::Interface::as_raw(this), target.into_param().abi(), ::core::mem::transmute_copy(identity), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Storage\"`"] #[cfg(feature = "Storage")] pub fn CopyProtectionAsync(source: P0, target: P1) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { Self::IFileProtectionManagerStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CopyProtectionAsync)(::windows_core::Interface::as_raw(this), source.try_into_param()?.abi(), target.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CopyProtectionAsync)(::windows_core::Interface::as_raw(this), source.into_param().abi(), target.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Storage\"`"] #[cfg(feature = "Storage")] pub fn GetProtectionInfoAsync(source: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IFileProtectionManagerStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).GetProtectionInfoAsync)(::windows_core::Interface::as_raw(this), source.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).GetProtectionInfoAsync)(::windows_core::Interface::as_raw(this), source.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Storage\"`"] #[cfg(feature = "Storage")] pub fn SaveFileAsContainerAsync(protectedfile: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IFileProtectionManagerStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).SaveFileAsContainerAsync)(::windows_core::Interface::as_raw(this), protectedfile.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SaveFileAsContainerAsync)(::windows_core::Interface::as_raw(this), protectedfile.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Storage\"`"] #[cfg(feature = "Storage")] pub fn LoadFileFromContainerAsync(containerfile: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IFileProtectionManagerStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).LoadFileFromContainerAsync)(::windows_core::Interface::as_raw(this), containerfile.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).LoadFileFromContainerAsync)(::windows_core::Interface::as_raw(this), containerfile.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Storage\"`"] #[cfg(feature = "Storage")] pub fn LoadFileFromContainerWithTargetAsync(containerfile: P0, target: P1) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { Self::IFileProtectionManagerStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).LoadFileFromContainerWithTargetAsync)(::windows_core::Interface::as_raw(this), containerfile.try_into_param()?.abi(), target.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).LoadFileFromContainerWithTargetAsync)(::windows_core::Interface::as_raw(this), containerfile.into_param().abi(), target.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Storage\"`"] #[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::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IFileProtectionManagerStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateProtectedAndOpenAsync)(::windows_core::Interface::as_raw(this), parentfolder.try_into_param()?.abi(), ::core::mem::transmute_copy(desiredname), ::core::mem::transmute_copy(identity), collisionoption, &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } #[doc = "Required features: `\"Storage\"`"] #[cfg(feature = "Storage")] pub fn IsContainerAsync(file: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IFileProtectionManagerStatics2(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).IsContainerAsync)(::windows_core::Interface::as_raw(this), file.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).IsContainerAsync)(::windows_core::Interface::as_raw(this), file.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Storage\"`"] #[cfg(feature = "Storage")] pub fn LoadFileFromContainerWithTargetAndNameCollisionOptionAsync(containerfile: P0, target: P1, collisionoption: super::super::Storage::NameCollisionOption) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { Self::IFileProtectionManagerStatics2(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).LoadFileFromContainerWithTargetAndNameCollisionOptionAsync)(::windows_core::Interface::as_raw(this), containerfile.try_into_param()?.abi(), target.try_into_param()?.abi(), collisionoption, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).LoadFileFromContainerWithTargetAndNameCollisionOptionAsync)(::windows_core::Interface::as_raw(this), containerfile.into_param().abi(), target.into_param().abi(), collisionoption, &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Storage\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Storage"))] pub fn SaveFileAsContainerWithSharingAsync(protectedfile: P0, sharedwithidentities: P1) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam>, { Self::IFileProtectionManagerStatics2(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).SaveFileAsContainerWithSharingAsync)(::windows_core::Interface::as_raw(this), protectedfile.try_into_param()?.abi(), sharedwithidentities.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SaveFileAsContainerWithSharingAsync)(::windows_core::Interface::as_raw(this), protectedfile.into_param().abi(), sharedwithidentities.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Storage\"`"] #[cfg(feature = "Storage")] pub fn UnprotectAsync(target: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IFileProtectionManagerStatics3(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).UnprotectAsync)(::windows_core::Interface::as_raw(this), target.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).UnprotectAsync)(::windows_core::Interface::as_raw(this), target.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Storage\"`"] #[cfg(feature = "Storage")] pub fn UnprotectWithOptionsAsync(target: P0, options: P1) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { Self::IFileProtectionManagerStatics3(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).UnprotectWithOptionsAsync)(::windows_core::Interface::as_raw(this), target.try_into_param()?.abi(), options.into_param().abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).UnprotectWithOptionsAsync)(::windows_core::Interface::as_raw(this), target.into_param().abi(), options.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -966,23 +729,23 @@ impl FileRevocationManager { #[cfg(all(feature = "Storage", feature = "deprecated"))] pub fn ProtectAsync(storageitem: P0, enterpriseidentity: &::windows_core::HSTRING) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IFileRevocationManagerStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).ProtectAsync)(::windows_core::Interface::as_raw(this), storageitem.try_into_param()?.abi(), ::core::mem::transmute_copy(enterpriseidentity), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ProtectAsync)(::windows_core::Interface::as_raw(this), storageitem.into_param().abi(), ::core::mem::transmute_copy(enterpriseidentity), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Storage\"`, `\"deprecated\"`"] #[cfg(all(feature = "Storage", feature = "deprecated"))] pub fn CopyProtectionAsync(sourcestorageitem: P0, targetstorageitem: P1) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { Self::IFileRevocationManagerStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CopyProtectionAsync)(::windows_core::Interface::as_raw(this), sourcestorageitem.try_into_param()?.abi(), targetstorageitem.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CopyProtectionAsync)(::windows_core::Interface::as_raw(this), sourcestorageitem.into_param().abi(), targetstorageitem.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"deprecated\"`"] @@ -994,11 +757,11 @@ impl FileRevocationManager { #[cfg(all(feature = "Storage", feature = "deprecated"))] pub fn GetStatusAsync(storageitem: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IFileRevocationManagerStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).GetStatusAsync)(::windows_core::Interface::as_raw(this), storageitem.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).GetStatusAsync)(::windows_core::Interface::as_raw(this), storageitem.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -1015,6 +778,7 @@ impl ::windows_core::RuntimeName for FileRevocationManager { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct FileUnprotectOptions(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(FileUnprotectOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); impl FileUnprotectOptions { pub fn SetAudit(&self, value: bool) -> ::windows_core::Result<()> { let this = self; @@ -1044,19 +808,17 @@ impl ::windows_core::RuntimeType for FileUnprotectOptions { } unsafe impl ::windows_core::Interface for FileUnprotectOptions { type Vtable = IFileUnprotectOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for FileUnprotectOptions { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for FileUnprotectOptions { const NAME: &'static str = "Windows.Security.EnterpriseData.FileUnprotectOptions"; } -::windows_core::imp::interface_hierarchy!(FileUnprotectOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for FileUnprotectOptions {} unsafe impl ::core::marker::Sync for FileUnprotectOptions {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ProtectedAccessResumedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ProtectedAccessResumedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ProtectedAccessResumedEventArgs { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -1073,19 +835,17 @@ impl ::windows_core::RuntimeType for ProtectedAccessResumedEventArgs { } unsafe impl ::windows_core::Interface for ProtectedAccessResumedEventArgs { type Vtable = IProtectedAccessResumedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ProtectedAccessResumedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ProtectedAccessResumedEventArgs { const NAME: &'static str = "Windows.Security.EnterpriseData.ProtectedAccessResumedEventArgs"; } -::windows_core::imp::interface_hierarchy!(ProtectedAccessResumedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ProtectedAccessResumedEventArgs {} unsafe impl ::core::marker::Sync for ProtectedAccessResumedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ProtectedAccessSuspendingEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ProtectedAccessSuspendingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ProtectedAccessSuspendingEventArgs { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -1116,19 +876,17 @@ impl ::windows_core::RuntimeType for ProtectedAccessSuspendingEventArgs { } unsafe impl ::windows_core::Interface for ProtectedAccessSuspendingEventArgs { type Vtable = IProtectedAccessSuspendingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ProtectedAccessSuspendingEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ProtectedAccessSuspendingEventArgs { const NAME: &'static str = "Windows.Security.EnterpriseData.ProtectedAccessSuspendingEventArgs"; } -::windows_core::imp::interface_hierarchy!(ProtectedAccessSuspendingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ProtectedAccessSuspendingEventArgs {} unsafe impl ::core::marker::Sync for ProtectedAccessSuspendingEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ProtectedContainerExportResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ProtectedContainerExportResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ProtectedContainerExportResult { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -1152,19 +910,17 @@ impl ::windows_core::RuntimeType for ProtectedContainerExportResult { } unsafe impl ::windows_core::Interface for ProtectedContainerExportResult { type Vtable = IProtectedContainerExportResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ProtectedContainerExportResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ProtectedContainerExportResult { const NAME: &'static str = "Windows.Security.EnterpriseData.ProtectedContainerExportResult"; } -::windows_core::imp::interface_hierarchy!(ProtectedContainerExportResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ProtectedContainerExportResult {} unsafe impl ::core::marker::Sync for ProtectedContainerExportResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ProtectedContainerImportResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ProtectedContainerImportResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ProtectedContainerImportResult { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -1188,19 +944,17 @@ impl ::windows_core::RuntimeType for ProtectedContainerImportResult { } unsafe impl ::windows_core::Interface for ProtectedContainerImportResult { type Vtable = IProtectedContainerImportResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ProtectedContainerImportResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ProtectedContainerImportResult { const NAME: &'static str = "Windows.Security.EnterpriseData.ProtectedContainerImportResult"; } -::windows_core::imp::interface_hierarchy!(ProtectedContainerImportResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ProtectedContainerImportResult {} unsafe impl ::core::marker::Sync for ProtectedContainerImportResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ProtectedContentRevokedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ProtectedContentRevokedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ProtectedContentRevokedEventArgs { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -1217,19 +971,17 @@ impl ::windows_core::RuntimeType for ProtectedContentRevokedEventArgs { } unsafe impl ::windows_core::Interface for ProtectedContentRevokedEventArgs { type Vtable = IProtectedContentRevokedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ProtectedContentRevokedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ProtectedContentRevokedEventArgs { const NAME: &'static str = "Windows.Security.EnterpriseData.ProtectedContentRevokedEventArgs"; } -::windows_core::imp::interface_hierarchy!(ProtectedContentRevokedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ProtectedContentRevokedEventArgs {} unsafe impl ::core::marker::Sync for ProtectedContentRevokedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ProtectedFileCreateResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ProtectedFileCreateResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ProtectedFileCreateResult { #[doc = "Required features: `\"Storage\"`"] #[cfg(feature = "Storage")] @@ -1262,19 +1014,17 @@ impl ::windows_core::RuntimeType for ProtectedFileCreateResult { } unsafe impl ::windows_core::Interface for ProtectedFileCreateResult { type Vtable = IProtectedFileCreateResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ProtectedFileCreateResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ProtectedFileCreateResult { const NAME: &'static str = "Windows.Security.EnterpriseData.ProtectedFileCreateResult"; } -::windows_core::imp::interface_hierarchy!(ProtectedFileCreateResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ProtectedFileCreateResult {} unsafe impl ::core::marker::Sync for ProtectedFileCreateResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ProtectionPolicyAuditInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ProtectionPolicyAuditInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ProtectionPolicyAuditInfo { pub fn SetAction(&self, value: ProtectionPolicyAuditAction) -> ::windows_core::Result<()> { let this = self; @@ -1343,19 +1093,17 @@ impl ::windows_core::RuntimeType for ProtectionPolicyAuditInfo { } unsafe impl ::windows_core::Interface for ProtectionPolicyAuditInfo { type Vtable = IProtectionPolicyAuditInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ProtectionPolicyAuditInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ProtectionPolicyAuditInfo { const NAME: &'static str = "Windows.Security.EnterpriseData.ProtectionPolicyAuditInfo"; } -::windows_core::imp::interface_hierarchy!(ProtectionPolicyAuditInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ProtectionPolicyAuditInfo {} unsafe impl ::core::marker::Sync for ProtectionPolicyAuditInfo {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ProtectionPolicyManager(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ProtectionPolicyManager, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ProtectionPolicyManager { pub fn SetIdentity(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { let this = self; @@ -1369,11 +1117,11 @@ impl ProtectionPolicyManager { } } pub fn SetShowEnterpriseIndicator(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetShowEnterpriseIndicator)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn ShowEnterpriseIndicator(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ShowEnterpriseIndicator)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1592,70 +1340,70 @@ impl ProtectionPolicyManager { #[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::TryIntoParam>, + P0: ::windows_core::IntoParam>, P1: ::windows_core::IntoParam, { Self::IProtectionPolicyManagerStatics4(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).RequestAccessToFilesForAppAsync)(::windows_core::Interface::as_raw(this), sourceitemlist.try_into_param()?.abi(), ::core::mem::transmute_copy(apppackagefamilyname), auditinfo.into_param().abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Storage\"`"] #[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::TryIntoParam>, + P0: ::windows_core::IntoParam>, P1: ::windows_core::IntoParam, { Self::IProtectionPolicyManagerStatics4(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).RequestAccessToFilesForAppWithMessageAndBehaviorAsync)(::windows_core::Interface::as_raw(this), sourceitemlist.try_into_param()?.abi(), ::core::mem::transmute_copy(apppackagefamilyname), auditinfo.into_param().abi(), ::core::mem::transmute_copy(messagefromapp), behavior, &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Storage\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Storage"))] pub fn RequestAccessToFilesForProcessAsync(sourceitemlist: P0, processid: u32, auditinfo: P1) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, P1: ::windows_core::IntoParam, { Self::IProtectionPolicyManagerStatics4(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).RequestAccessToFilesForProcessAsync)(::windows_core::Interface::as_raw(this), sourceitemlist.try_into_param()?.abi(), processid, auditinfo.into_param().abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).RequestAccessToFilesForProcessAsync)(::windows_core::Interface::as_raw(this), sourceitemlist.into_param().abi(), processid, auditinfo.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Storage\"`"] #[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::TryIntoParam>, + P0: ::windows_core::IntoParam>, P1: ::windows_core::IntoParam, { Self::IProtectionPolicyManagerStatics4(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).RequestAccessToFilesForProcessWithMessageAndBehaviorAsync)(::windows_core::Interface::as_raw(this), sourceitemlist.try_into_param()?.abi(), processid, auditinfo.into_param().abi(), ::core::mem::transmute_copy(messagefromapp), behavior, &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } #[doc = "Required features: `\"Storage\"`"] #[cfg(feature = "Storage")] pub fn IsFileProtectionRequiredAsync(target: P0, identity: &::windows_core::HSTRING) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IProtectionPolicyManagerStatics4(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).IsFileProtectionRequiredAsync)(::windows_core::Interface::as_raw(this), target.try_into_param()?.abi(), ::core::mem::transmute_copy(identity), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).IsFileProtectionRequiredAsync)(::windows_core::Interface::as_raw(this), target.into_param().abi(), ::core::mem::transmute_copy(identity), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Storage\"`"] #[cfg(feature = "Storage")] pub fn IsFileProtectionRequiredForNewFileAsync(parentfolder: P0, identity: &::windows_core::HSTRING, desiredname: &::windows_core::HSTRING) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IProtectionPolicyManagerStatics4(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).IsFileProtectionRequiredForNewFileAsync)(::windows_core::Interface::as_raw(this), parentfolder.try_into_param()?.abi(), ::core::mem::transmute_copy(identity), ::core::mem::transmute_copy(desiredname), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } pub fn PrimaryManagedIdentity() -> ::windows_core::Result<::windows_core::HSTRING> { @@ -1696,22 +1444,21 @@ impl ::windows_core::RuntimeType for ProtectionPolicyManager { } unsafe impl ::windows_core::Interface for ProtectionPolicyManager { type Vtable = IProtectionPolicyManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ProtectionPolicyManager { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ProtectionPolicyManager { const NAME: &'static str = "Windows.Security.EnterpriseData.ProtectionPolicyManager"; } -::windows_core::imp::interface_hierarchy!(ProtectionPolicyManager, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ProtectionPolicyManager {} unsafe impl ::core::marker::Sync for ProtectionPolicyManager {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ThreadNetworkContext(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ThreadNetworkContext, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ThreadNetworkContext, super::super::Foundation::IClosable); impl ThreadNetworkContext { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } } @@ -1720,15 +1467,11 @@ impl ::windows_core::RuntimeType for ThreadNetworkContext { } unsafe impl ::windows_core::Interface for ThreadNetworkContext { type Vtable = IThreadNetworkContext_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ThreadNetworkContext { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ThreadNetworkContext { const NAME: &'static str = "Windows.Security.EnterpriseData.ThreadNetworkContext"; } -::windows_core::imp::interface_hierarchy!(ThreadNetworkContext, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ThreadNetworkContext {} unsafe impl ::core::marker::Send for ThreadNetworkContext {} unsafe impl ::core::marker::Sync for ThreadNetworkContext {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Security/ExchangeActiveSyncProvisioning/mod.rs b/crates/libs/windows/src/Windows/Security/ExchangeActiveSyncProvisioning/mod.rs index 4c48dc4f54..6fec6387dd 100644 --- a/crates/libs/windows/src/Windows/Security/ExchangeActiveSyncProvisioning/mod.rs +++ b/crates/libs/windows/src/Windows/Security/ExchangeActiveSyncProvisioning/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEasClientDeviceInformation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEasClientDeviceInformation { - type Vtable = IEasClientDeviceInformation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEasClientDeviceInformation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x54dfd981_1968_4ca3_b958_e595d16505eb); -} +::windows_core::imp::com_interface!(IEasClientDeviceInformation, IEasClientDeviceInformation_Vtbl, 0x54dfd981_1968_4ca3_b958_e595d16505eb); #[repr(C)] #[doc(hidden)] pub struct IEasClientDeviceInformation_Vtbl { @@ -19,16 +10,7 @@ pub struct IEasClientDeviceInformation_Vtbl { pub SystemProductName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SystemSku: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEasClientDeviceInformation2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEasClientDeviceInformation2 { - type Vtable = IEasClientDeviceInformation2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEasClientDeviceInformation2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xffb35923_bb26_4d6a_81bc_165aee0ad754); -} +::windows_core::imp::com_interface!(IEasClientDeviceInformation2, IEasClientDeviceInformation2_Vtbl, 0xffb35923_bb26_4d6a_81bc_165aee0ad754); #[repr(C)] #[doc(hidden)] pub struct IEasClientDeviceInformation2_Vtbl { @@ -36,16 +18,7 @@ pub struct IEasClientDeviceInformation2_Vtbl { pub SystemHardwareVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SystemFirmwareVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEasClientSecurityPolicy(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEasClientSecurityPolicy { - type Vtable = IEasClientSecurityPolicy_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEasClientSecurityPolicy { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x45b72362_dfba_4a9b_aced_6fe2adcb6420); -} +::windows_core::imp::com_interface!(IEasClientSecurityPolicy, IEasClientSecurityPolicy_Vtbl, 0x45b72362_dfba_4a9b_aced_6fe2adcb6420); #[repr(C)] #[doc(hidden)] pub struct IEasClientSecurityPolicy_Vtbl { @@ -69,16 +42,7 @@ pub struct IEasClientSecurityPolicy_Vtbl { pub CheckCompliance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ApplyAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEasComplianceResults(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEasComplianceResults { - type Vtable = IEasComplianceResults_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEasComplianceResults { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x463c299c_7f19_4c66_b403_cb45dd57a2b3); -} +::windows_core::imp::com_interface!(IEasComplianceResults, IEasComplianceResults_Vtbl, 0x463c299c_7f19_4c66_b403_cb45dd57a2b3); #[repr(C)] #[doc(hidden)] pub struct IEasComplianceResults_Vtbl { @@ -93,16 +57,7 @@ pub struct IEasComplianceResults_Vtbl { pub MaxPasswordFailedAttemptsResult: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut EasMaxPasswordFailedAttemptsResult) -> ::windows_core::HRESULT, pub MaxInactivityTimeLockResult: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut EasMaxInactivityTimeLockResult) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEasComplianceResults2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEasComplianceResults2 { - type Vtable = IEasComplianceResults2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEasComplianceResults2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2fbe60c9_1aa8_47f5_88bb_cb3ef0bffb15); -} +::windows_core::imp::com_interface!(IEasComplianceResults2, IEasComplianceResults2_Vtbl, 0x2fbe60c9_1aa8_47f5_88bb_cb3ef0bffb15); #[repr(C)] #[doc(hidden)] pub struct IEasComplianceResults2_Vtbl { @@ -112,6 +67,7 @@ pub struct IEasComplianceResults2_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EasClientDeviceInformation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EasClientDeviceInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EasClientDeviceInformation { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -163,14 +119,14 @@ impl EasClientDeviceInformation { } } pub fn SystemHardwareVersion(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SystemHardwareVersion)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SystemFirmwareVersion(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SystemFirmwareVersion)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -182,17 +138,15 @@ impl ::windows_core::RuntimeType for EasClientDeviceInformation { } unsafe impl ::windows_core::Interface for EasClientDeviceInformation { type Vtable = IEasClientDeviceInformation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EasClientDeviceInformation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EasClientDeviceInformation { const NAME: &'static str = "Windows.Security.ExchangeActiveSyncProvisioning.EasClientDeviceInformation"; } -::windows_core::imp::interface_hierarchy!(EasClientDeviceInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EasClientSecurityPolicy(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EasClientSecurityPolicy, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EasClientSecurityPolicy { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -309,17 +263,15 @@ impl ::windows_core::RuntimeType for EasClientSecurityPolicy { } unsafe impl ::windows_core::Interface for EasClientSecurityPolicy { type Vtable = IEasClientSecurityPolicy_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EasClientSecurityPolicy { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EasClientSecurityPolicy { const NAME: &'static str = "Windows.Security.ExchangeActiveSyncProvisioning.EasClientSecurityPolicy"; } -::windows_core::imp::interface_hierarchy!(EasClientSecurityPolicy, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EasComplianceResults(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EasComplianceResults, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EasComplianceResults { pub fn Compliant(&self) -> ::windows_core::Result { let this = self; @@ -385,7 +337,7 @@ impl EasComplianceResults { } } pub fn EncryptionProviderType(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).EncryptionProviderType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -397,14 +349,11 @@ impl ::windows_core::RuntimeType for EasComplianceResults { } unsafe impl ::windows_core::Interface for EasComplianceResults { type Vtable = IEasComplianceResults_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EasComplianceResults { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EasComplianceResults { const NAME: &'static str = "Windows.Security.ExchangeActiveSyncProvisioning.EasComplianceResults"; } -::windows_core::imp::interface_hierarchy!(EasComplianceResults, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::marker::Copy, ::core::clone::Clone, ::core::default::Default)] pub struct EasDisallowConvenienceLogonResult(pub i32); diff --git a/crates/libs/windows/src/Windows/Security/Isolation/mod.rs b/crates/libs/windows/src/Windows/Security/Isolation/mod.rs index 82d0a5627e..48ca282ce9 100644 --- a/crates/libs/windows/src/Windows/Security/Isolation/mod.rs +++ b/crates/libs/windows/src/Windows/Security/Isolation/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIsolatedWindowsEnvironment(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIsolatedWindowsEnvironment { - type Vtable = IIsolatedWindowsEnvironment_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIsolatedWindowsEnvironment { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x41d24597_c328_4467_b37f_4dfc6f60b6bc); -} +::windows_core::imp::com_interface!(IIsolatedWindowsEnvironment, IIsolatedWindowsEnvironment_Vtbl, 0x41d24597_c328_4467_b37f_4dfc6f60b6bc); #[repr(C)] #[doc(hidden)] pub struct IIsolatedWindowsEnvironment_Vtbl { @@ -27,16 +18,7 @@ pub struct IIsolatedWindowsEnvironment_Vtbl { RegisterMessageReceiver: usize, pub UnregisterMessageReceiver: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, receiverid: ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIsolatedWindowsEnvironment2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIsolatedWindowsEnvironment2 { - type Vtable = IIsolatedWindowsEnvironment2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIsolatedWindowsEnvironment2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2d365f39_88bd_4ab4_93cf_7e2bcef337c0); -} +::windows_core::imp::com_interface!(IIsolatedWindowsEnvironment2, IIsolatedWindowsEnvironment2_Vtbl, 0x2d365f39_88bd_4ab4_93cf_7e2bcef337c0); #[repr(C)] #[doc(hidden)] pub struct IIsolatedWindowsEnvironment2_Vtbl { @@ -50,16 +32,7 @@ pub struct IIsolatedWindowsEnvironment2_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] PostMessageToReceiverWithTelemetryAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIsolatedWindowsEnvironment3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIsolatedWindowsEnvironment3 { - type Vtable = IIsolatedWindowsEnvironment3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIsolatedWindowsEnvironment3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcb7fc7d2_d06e_4c26_8ada_dacdaaad03f5); -} +::windows_core::imp::com_interface!(IIsolatedWindowsEnvironment3, IIsolatedWindowsEnvironment3_Vtbl, 0xcb7fc7d2_d06e_4c26_8ada_dacdaaad03f5); #[repr(C)] #[doc(hidden)] pub struct IIsolatedWindowsEnvironment3_Vtbl { @@ -68,32 +41,14 @@ pub struct IIsolatedWindowsEnvironment3_Vtbl { pub ShareFileAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filepath: ::std::mem::MaybeUninit<::windows_core::HSTRING>, options: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ShareFileWithTelemetryAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filepath: ::std::mem::MaybeUninit<::windows_core::HSTRING>, options: *mut ::core::ffi::c_void, telemetryparameters: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIsolatedWindowsEnvironment4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIsolatedWindowsEnvironment4 { - type Vtable = IIsolatedWindowsEnvironment4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIsolatedWindowsEnvironment4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x11e3701a_dd9e_4f1b_812c_4020f307f93c); -} +::windows_core::imp::com_interface!(IIsolatedWindowsEnvironment4, IIsolatedWindowsEnvironment4_Vtbl, 0x11e3701a_dd9e_4f1b_812c_4020f307f93c); #[repr(C)] #[doc(hidden)] pub struct IIsolatedWindowsEnvironment4_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ChangePriority: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, priority: IsolatedWindowsEnvironmentCreationPriority) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIsolatedWindowsEnvironmentCreateResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIsolatedWindowsEnvironmentCreateResult { - type Vtable = IIsolatedWindowsEnvironmentCreateResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIsolatedWindowsEnvironmentCreateResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xef9a5e58_dcd7_45c2_9c85_ab642a715e8e); -} +::windows_core::imp::com_interface!(IIsolatedWindowsEnvironmentCreateResult, IIsolatedWindowsEnvironmentCreateResult_Vtbl, 0xef9a5e58_dcd7_45c2_9c85_ab642a715e8e); #[repr(C)] #[doc(hidden)] pub struct IIsolatedWindowsEnvironmentCreateResult_Vtbl { @@ -102,32 +57,14 @@ pub struct IIsolatedWindowsEnvironmentCreateResult_Vtbl { pub ExtendedError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, pub Environment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIsolatedWindowsEnvironmentCreateResult2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIsolatedWindowsEnvironmentCreateResult2 { - type Vtable = IIsolatedWindowsEnvironmentCreateResult2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIsolatedWindowsEnvironmentCreateResult2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa547dbc7_61d4_4fb8_ab5c_edefa3d388ad); -} +::windows_core::imp::com_interface!(IIsolatedWindowsEnvironmentCreateResult2, IIsolatedWindowsEnvironmentCreateResult2_Vtbl, 0xa547dbc7_61d4_4fb8_ab5c_edefa3d388ad); #[repr(C)] #[doc(hidden)] pub struct IIsolatedWindowsEnvironmentCreateResult2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ChangeCreationPriority: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, priority: IsolatedWindowsEnvironmentCreationPriority) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIsolatedWindowsEnvironmentFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIsolatedWindowsEnvironmentFactory { - type Vtable = IIsolatedWindowsEnvironmentFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIsolatedWindowsEnvironmentFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1aca93e7_e804_454d_8466_f9897c20b0f6); -} +::windows_core::imp::com_interface!(IIsolatedWindowsEnvironmentFactory, IIsolatedWindowsEnvironmentFactory_Vtbl, 0x1aca93e7_e804_454d_8466_f9897c20b0f6); #[repr(C)] #[doc(hidden)] pub struct IIsolatedWindowsEnvironmentFactory_Vtbl { @@ -140,16 +77,7 @@ pub struct IIsolatedWindowsEnvironmentFactory_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] FindByOwnerId: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIsolatedWindowsEnvironmentFile(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIsolatedWindowsEnvironmentFile { - type Vtable = IIsolatedWindowsEnvironmentFile_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIsolatedWindowsEnvironmentFile { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4d5ae1ef_029f_4101_8c35_fe91bf9cd5f0); -} +::windows_core::imp::com_interface!(IIsolatedWindowsEnvironmentFile, IIsolatedWindowsEnvironmentFile_Vtbl, 0x4d5ae1ef_029f_4101_8c35_fe91bf9cd5f0); #[repr(C)] #[doc(hidden)] pub struct IIsolatedWindowsEnvironmentFile_Vtbl { @@ -158,16 +86,7 @@ pub struct IIsolatedWindowsEnvironmentFile_Vtbl { pub HostPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Close: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIsolatedWindowsEnvironmentFile2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIsolatedWindowsEnvironmentFile2 { - type Vtable = IIsolatedWindowsEnvironmentFile2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIsolatedWindowsEnvironmentFile2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4eeb8dec_ad5d_4b0a_b754_f36c3d46d684); -} +::windows_core::imp::com_interface!(IIsolatedWindowsEnvironmentFile2, IIsolatedWindowsEnvironmentFile2_Vtbl, 0x4eeb8dec_ad5d_4b0a_b754_f36c3d46d684); #[repr(C)] #[doc(hidden)] pub struct IIsolatedWindowsEnvironmentFile2_Vtbl { @@ -175,16 +94,7 @@ pub struct IIsolatedWindowsEnvironmentFile2_Vtbl { pub GuestPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub IsReadOnly: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIsolatedWindowsEnvironmentHostStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIsolatedWindowsEnvironmentHostStatics { - type Vtable = IIsolatedWindowsEnvironmentHostStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIsolatedWindowsEnvironmentHostStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2c0e22c7_05a0_517a_b81c_6ee8790c381f); -} +::windows_core::imp::com_interface!(IIsolatedWindowsEnvironmentHostStatics, IIsolatedWindowsEnvironmentHostStatics_Vtbl, 0x2c0e22c7_05a0_517a_b81c_6ee8790c381f); #[repr(C)] #[doc(hidden)] pub struct IIsolatedWindowsEnvironmentHostStatics_Vtbl { @@ -195,16 +105,7 @@ pub struct IIsolatedWindowsEnvironmentHostStatics_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] HostErrors: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIsolatedWindowsEnvironmentLaunchFileResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIsolatedWindowsEnvironmentLaunchFileResult { - type Vtable = IIsolatedWindowsEnvironmentLaunchFileResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIsolatedWindowsEnvironmentLaunchFileResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x685d4176_f6e0_4569_b1aa_215c0ff5b257); -} +::windows_core::imp::com_interface!(IIsolatedWindowsEnvironmentLaunchFileResult, IIsolatedWindowsEnvironmentLaunchFileResult_Vtbl, 0x685d4176_f6e0_4569_b1aa_215c0ff5b257); #[repr(C)] #[doc(hidden)] pub struct IIsolatedWindowsEnvironmentLaunchFileResult_Vtbl { @@ -213,16 +114,7 @@ pub struct IIsolatedWindowsEnvironmentLaunchFileResult_Vtbl { pub ExtendedError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, pub File: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIsolatedWindowsEnvironmentOptions(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIsolatedWindowsEnvironmentOptions { - type Vtable = IIsolatedWindowsEnvironmentOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIsolatedWindowsEnvironmentOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb71d98f7_61f0_4008_b207_0bf9eb2d76f2); -} +::windows_core::imp::com_interface!(IIsolatedWindowsEnvironmentOptions, IIsolatedWindowsEnvironmentOptions_Vtbl, 0xb71d98f7_61f0_4008_b207_0bf9eb2d76f2); #[repr(C)] #[doc(hidden)] pub struct IIsolatedWindowsEnvironmentOptions_Vtbl { @@ -245,16 +137,7 @@ pub struct IIsolatedWindowsEnvironmentOptions_Vtbl { pub AllowCameraAndMicrophoneAccess: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetAllowCameraAndMicrophoneAccess: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIsolatedWindowsEnvironmentOptions2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIsolatedWindowsEnvironmentOptions2 { - type Vtable = IIsolatedWindowsEnvironmentOptions2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIsolatedWindowsEnvironmentOptions2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x10d7cc31_8b8f_4b9d_b22c_617103b55b08); -} +::windows_core::imp::com_interface!(IIsolatedWindowsEnvironmentOptions2, IIsolatedWindowsEnvironmentOptions2_Vtbl, 0x10d7cc31_8b8f_4b9d_b22c_617103b55b08); #[repr(C)] #[doc(hidden)] pub struct IIsolatedWindowsEnvironmentOptions2_Vtbl { @@ -262,16 +145,7 @@ pub struct IIsolatedWindowsEnvironmentOptions2_Vtbl { pub WindowAnnotationOverride: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetWindowAnnotationOverride: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIsolatedWindowsEnvironmentOptions3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIsolatedWindowsEnvironmentOptions3 { - type Vtable = IIsolatedWindowsEnvironmentOptions3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIsolatedWindowsEnvironmentOptions3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x98d5aa23_161f_4cd9_8a9c_269b30122b0d); -} +::windows_core::imp::com_interface!(IIsolatedWindowsEnvironmentOptions3, IIsolatedWindowsEnvironmentOptions3_Vtbl, 0x98d5aa23_161f_4cd9_8a9c_269b30122b0d); #[repr(C)] #[doc(hidden)] pub struct IIsolatedWindowsEnvironmentOptions3_Vtbl { @@ -283,16 +157,7 @@ pub struct IIsolatedWindowsEnvironmentOptions3_Vtbl { pub CreationPriority: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut IsolatedWindowsEnvironmentCreationPriority) -> ::windows_core::HRESULT, pub SetCreationPriority: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: IsolatedWindowsEnvironmentCreationPriority) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIsolatedWindowsEnvironmentOwnerRegistrationData(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIsolatedWindowsEnvironmentOwnerRegistrationData { - type Vtable = IIsolatedWindowsEnvironmentOwnerRegistrationData_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIsolatedWindowsEnvironmentOwnerRegistrationData { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf888ec22_e8cf_56c0_b1df_90af4ad80e84); -} +::windows_core::imp::com_interface!(IIsolatedWindowsEnvironmentOwnerRegistrationData, IIsolatedWindowsEnvironmentOwnerRegistrationData_Vtbl, 0xf888ec22_e8cf_56c0_b1df_90af4ad80e84); #[repr(C)] #[doc(hidden)] pub struct IIsolatedWindowsEnvironmentOwnerRegistrationData_Vtbl { @@ -314,16 +179,7 @@ pub struct IIsolatedWindowsEnvironmentOwnerRegistrationData_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] ActivationFileExtensions: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIsolatedWindowsEnvironmentOwnerRegistrationResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIsolatedWindowsEnvironmentOwnerRegistrationResult { - type Vtable = IIsolatedWindowsEnvironmentOwnerRegistrationResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIsolatedWindowsEnvironmentOwnerRegistrationResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6dab9451_6169_55df_8f51_790e99d7277d); -} +::windows_core::imp::com_interface!(IIsolatedWindowsEnvironmentOwnerRegistrationResult, IIsolatedWindowsEnvironmentOwnerRegistrationResult_Vtbl, 0x6dab9451_6169_55df_8f51_790e99d7277d); #[repr(C)] #[doc(hidden)] pub struct IIsolatedWindowsEnvironmentOwnerRegistrationResult_Vtbl { @@ -331,16 +187,7 @@ pub struct IIsolatedWindowsEnvironmentOwnerRegistrationResult_Vtbl { pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut IsolatedWindowsEnvironmentOwnerRegistrationStatus) -> ::windows_core::HRESULT, pub ExtendedError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIsolatedWindowsEnvironmentOwnerRegistrationStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIsolatedWindowsEnvironmentOwnerRegistrationStatics { - type Vtable = IIsolatedWindowsEnvironmentOwnerRegistrationStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIsolatedWindowsEnvironmentOwnerRegistrationStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x10951754_204b_5ec9_9de3_df792d074a61); -} +::windows_core::imp::com_interface!(IIsolatedWindowsEnvironmentOwnerRegistrationStatics, IIsolatedWindowsEnvironmentOwnerRegistrationStatics_Vtbl, 0x10951754_204b_5ec9_9de3_df792d074a61); #[repr(C)] #[doc(hidden)] pub struct IIsolatedWindowsEnvironmentOwnerRegistrationStatics_Vtbl { @@ -348,16 +195,7 @@ pub struct IIsolatedWindowsEnvironmentOwnerRegistrationStatics_Vtbl { pub Register: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ownername: ::std::mem::MaybeUninit<::windows_core::HSTRING>, ownerregistrationdata: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Unregister: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ownername: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIsolatedWindowsEnvironmentPostMessageResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIsolatedWindowsEnvironmentPostMessageResult { - type Vtable = IIsolatedWindowsEnvironmentPostMessageResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIsolatedWindowsEnvironmentPostMessageResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0dfa28fa_2ef0_4d8f_b341_3171b2df93b1); -} +::windows_core::imp::com_interface!(IIsolatedWindowsEnvironmentPostMessageResult, IIsolatedWindowsEnvironmentPostMessageResult_Vtbl, 0x0dfa28fa_2ef0_4d8f_b341_3171b2df93b1); #[repr(C)] #[doc(hidden)] pub struct IIsolatedWindowsEnvironmentPostMessageResult_Vtbl { @@ -365,16 +203,7 @@ pub struct IIsolatedWindowsEnvironmentPostMessageResult_Vtbl { pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut IsolatedWindowsEnvironmentPostMessageStatus) -> ::windows_core::HRESULT, pub ExtendedError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIsolatedWindowsEnvironmentProcess(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIsolatedWindowsEnvironmentProcess { - type Vtable = IIsolatedWindowsEnvironmentProcess_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIsolatedWindowsEnvironmentProcess { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa858c3ef_8172_4f10_af93_cbe60af88d09); -} +::windows_core::imp::com_interface!(IIsolatedWindowsEnvironmentProcess, IIsolatedWindowsEnvironmentProcess_Vtbl, 0xa858c3ef_8172_4f10_af93_cbe60af88d09); #[repr(C)] #[doc(hidden)] pub struct IIsolatedWindowsEnvironmentProcess_Vtbl { @@ -385,16 +214,7 @@ pub struct IIsolatedWindowsEnvironmentProcess_Vtbl { pub WaitForExitWithTimeout: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, timeoutmilliseconds: u32) -> ::windows_core::HRESULT, pub WaitForExitAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIsolatedWindowsEnvironmentShareFileRequestOptions(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIsolatedWindowsEnvironmentShareFileRequestOptions { - type Vtable = IIsolatedWindowsEnvironmentShareFileRequestOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIsolatedWindowsEnvironmentShareFileRequestOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc9190ed8_0fd0_4946_bb88_117a60737b61); -} +::windows_core::imp::com_interface!(IIsolatedWindowsEnvironmentShareFileRequestOptions, IIsolatedWindowsEnvironmentShareFileRequestOptions_Vtbl, 0xc9190ed8_0fd0_4946_bb88_117a60737b61); #[repr(C)] #[doc(hidden)] pub struct IIsolatedWindowsEnvironmentShareFileRequestOptions_Vtbl { @@ -402,16 +222,7 @@ pub struct IIsolatedWindowsEnvironmentShareFileRequestOptions_Vtbl { pub AllowWrite: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetAllowWrite: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIsolatedWindowsEnvironmentShareFileResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIsolatedWindowsEnvironmentShareFileResult { - type Vtable = IIsolatedWindowsEnvironmentShareFileResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIsolatedWindowsEnvironmentShareFileResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaec7caa7_9ac6_4bf5_8b91_5c1adf0d7d00); -} +::windows_core::imp::com_interface!(IIsolatedWindowsEnvironmentShareFileResult, IIsolatedWindowsEnvironmentShareFileResult_Vtbl, 0xaec7caa7_9ac6_4bf5_8b91_5c1adf0d7d00); #[repr(C)] #[doc(hidden)] pub struct IIsolatedWindowsEnvironmentShareFileResult_Vtbl { @@ -420,16 +231,7 @@ pub struct IIsolatedWindowsEnvironmentShareFileResult_Vtbl { pub ExtendedError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, pub File: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIsolatedWindowsEnvironmentShareFolderRequestOptions(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIsolatedWindowsEnvironmentShareFolderRequestOptions { - type Vtable = IIsolatedWindowsEnvironmentShareFolderRequestOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIsolatedWindowsEnvironmentShareFolderRequestOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc405eb7d_7053_4f6a_9b87_746846ed19b2); -} +::windows_core::imp::com_interface!(IIsolatedWindowsEnvironmentShareFolderRequestOptions, IIsolatedWindowsEnvironmentShareFolderRequestOptions_Vtbl, 0xc405eb7d_7053_4f6a_9b87_746846ed19b2); #[repr(C)] #[doc(hidden)] pub struct IIsolatedWindowsEnvironmentShareFolderRequestOptions_Vtbl { @@ -437,16 +239,7 @@ pub struct IIsolatedWindowsEnvironmentShareFolderRequestOptions_Vtbl { pub AllowWrite: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetAllowWrite: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIsolatedWindowsEnvironmentShareFolderResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIsolatedWindowsEnvironmentShareFolderResult { - type Vtable = IIsolatedWindowsEnvironmentShareFolderResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIsolatedWindowsEnvironmentShareFolderResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x556ba72e_ca9d_4211_b143_1cedc86eb2fe); -} +::windows_core::imp::com_interface!(IIsolatedWindowsEnvironmentShareFolderResult, IIsolatedWindowsEnvironmentShareFolderResult_Vtbl, 0x556ba72e_ca9d_4211_b143_1cedc86eb2fe); #[repr(C)] #[doc(hidden)] pub struct IIsolatedWindowsEnvironmentShareFolderResult_Vtbl { @@ -454,16 +247,7 @@ pub struct IIsolatedWindowsEnvironmentShareFolderResult_Vtbl { pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut IsolatedWindowsEnvironmentShareFolderStatus) -> ::windows_core::HRESULT, pub ExtendedError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIsolatedWindowsEnvironmentStartProcessResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIsolatedWindowsEnvironmentStartProcessResult { - type Vtable = IIsolatedWindowsEnvironmentStartProcessResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIsolatedWindowsEnvironmentStartProcessResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8fa1dc2f_57da_4bb5_9c06_fa072d2032e2); -} +::windows_core::imp::com_interface!(IIsolatedWindowsEnvironmentStartProcessResult, IIsolatedWindowsEnvironmentStartProcessResult_Vtbl, 0x8fa1dc2f_57da_4bb5_9c06_fa072d2032e2); #[repr(C)] #[doc(hidden)] pub struct IIsolatedWindowsEnvironmentStartProcessResult_Vtbl { @@ -472,16 +256,7 @@ pub struct IIsolatedWindowsEnvironmentStartProcessResult_Vtbl { pub ExtendedError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, pub Process: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIsolatedWindowsEnvironmentTelemetryParameters(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIsolatedWindowsEnvironmentTelemetryParameters { - type Vtable = IIsolatedWindowsEnvironmentTelemetryParameters_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIsolatedWindowsEnvironmentTelemetryParameters { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xebdb3cab_7a3a_4524_a0f4_f96e284d33cd); -} +::windows_core::imp::com_interface!(IIsolatedWindowsEnvironmentTelemetryParameters, IIsolatedWindowsEnvironmentTelemetryParameters_Vtbl, 0xebdb3cab_7a3a_4524_a0f4_f96e284d33cd); #[repr(C)] #[doc(hidden)] pub struct IIsolatedWindowsEnvironmentTelemetryParameters_Vtbl { @@ -489,16 +264,7 @@ pub struct IIsolatedWindowsEnvironmentTelemetryParameters_Vtbl { pub CorrelationId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, pub SetCorrelationId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIsolatedWindowsEnvironmentUserInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIsolatedWindowsEnvironmentUserInfo { - type Vtable = IIsolatedWindowsEnvironmentUserInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIsolatedWindowsEnvironmentUserInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8a9c75ae_69ba_4001_96fc_19a02703b340); -} +::windows_core::imp::com_interface!(IIsolatedWindowsEnvironmentUserInfo, IIsolatedWindowsEnvironmentUserInfo_Vtbl, 0x8a9c75ae_69ba_4001_96fc_19a02703b340); #[repr(C)] #[doc(hidden)] pub struct IIsolatedWindowsEnvironmentUserInfo_Vtbl { @@ -507,32 +273,14 @@ pub struct IIsolatedWindowsEnvironmentUserInfo_Vtbl { pub EnvironmentUserName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub TryWaitForSignInAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIsolatedWindowsEnvironmentUserInfo2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIsolatedWindowsEnvironmentUserInfo2 { - type Vtable = IIsolatedWindowsEnvironmentUserInfo2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIsolatedWindowsEnvironmentUserInfo2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb0bdd5dd_91d7_481e_94f2_2a5a6bdf9383); -} +::windows_core::imp::com_interface!(IIsolatedWindowsEnvironmentUserInfo2, IIsolatedWindowsEnvironmentUserInfo2_Vtbl, 0xb0bdd5dd_91d7_481e_94f2_2a5a6bdf9383); #[repr(C)] #[doc(hidden)] pub struct IIsolatedWindowsEnvironmentUserInfo2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub TryWaitForSignInWithProgressAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIsolatedWindowsHostMessengerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIsolatedWindowsHostMessengerStatics { - type Vtable = IIsolatedWindowsHostMessengerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIsolatedWindowsHostMessengerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x06e444bb_53c0_4889_8fa3_53592e37cf21); -} +::windows_core::imp::com_interface!(IIsolatedWindowsHostMessengerStatics, IIsolatedWindowsHostMessengerStatics_Vtbl, 0x06e444bb_53c0_4889_8fa3_53592e37cf21); #[repr(C)] #[doc(hidden)] pub struct IIsolatedWindowsHostMessengerStatics_Vtbl { @@ -543,16 +291,7 @@ pub struct IIsolatedWindowsHostMessengerStatics_Vtbl { PostMessageToReceiver: usize, pub GetFileId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filepath: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIsolatedWindowsHostMessengerStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIsolatedWindowsHostMessengerStatics2 { - type Vtable = IIsolatedWindowsHostMessengerStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIsolatedWindowsHostMessengerStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x55ef9ebc_0444_42ad_832d_1b89c089d1ca); -} +::windows_core::imp::com_interface!(IIsolatedWindowsHostMessengerStatics2, IIsolatedWindowsHostMessengerStatics2_Vtbl, 0x55ef9ebc_0444_42ad_832d_1b89c089d1ca); #[repr(C)] #[doc(hidden)] pub struct IIsolatedWindowsHostMessengerStatics2_Vtbl { @@ -566,6 +305,7 @@ pub struct IIsolatedWindowsHostMessengerStatics2_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct IsolatedWindowsEnvironment(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(IsolatedWindowsEnvironment, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IsolatedWindowsEnvironment { pub fn Id(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -663,29 +403,29 @@ impl IsolatedWindowsEnvironment { #[cfg(feature = "Foundation_Collections")] pub fn PostMessageToReceiverAsync(&self, receiverid: ::windows_core::GUID, message: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).PostMessageToReceiverAsync)(::windows_core::Interface::as_raw(this), receiverid, message.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn PostMessageToReceiverWithTelemetryAsync(&self, receiverid: ::windows_core::GUID, message: P0, telemetryparameters: P1) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), telemetryparameters.into_param().abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).PostMessageToReceiverWithTelemetryAsync)(::windows_core::Interface::as_raw(this), receiverid, message.into_param().abi(), telemetryparameters.into_param().abi(), &mut result__).from_abi(result__) } } pub fn GetUserInfo(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetUserInfo)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -695,7 +435,7 @@ impl IsolatedWindowsEnvironment { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -706,14 +446,14 @@ impl IsolatedWindowsEnvironment { P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn ChangePriority(&self, priority: IsolatedWindowsEnvironmentCreationPriority) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ChangePriority)(::windows_core::Interface::as_raw(this), priority).ok() } } pub fn CreateAsync(options: P0) -> ::windows_core::Result> @@ -760,19 +500,17 @@ impl ::windows_core::RuntimeType for IsolatedWindowsEnvironment { } unsafe impl ::windows_core::Interface for IsolatedWindowsEnvironment { type Vtable = IIsolatedWindowsEnvironment_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IsolatedWindowsEnvironment { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for IsolatedWindowsEnvironment { const NAME: &'static str = "Windows.Security.Isolation.IsolatedWindowsEnvironment"; } -::windows_core::imp::interface_hierarchy!(IsolatedWindowsEnvironment, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for IsolatedWindowsEnvironment {} unsafe impl ::core::marker::Sync for IsolatedWindowsEnvironment {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct IsolatedWindowsEnvironmentCreateResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(IsolatedWindowsEnvironmentCreateResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IsolatedWindowsEnvironmentCreateResult { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -796,7 +534,7 @@ impl IsolatedWindowsEnvironmentCreateResult { } } pub fn ChangeCreationPriority(&self, priority: IsolatedWindowsEnvironmentCreationPriority) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ChangeCreationPriority)(::windows_core::Interface::as_raw(this), priority).ok() } } } @@ -805,19 +543,17 @@ impl ::windows_core::RuntimeType for IsolatedWindowsEnvironmentCreateResult { } unsafe impl ::windows_core::Interface for IsolatedWindowsEnvironmentCreateResult { type Vtable = IIsolatedWindowsEnvironmentCreateResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IsolatedWindowsEnvironmentCreateResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for IsolatedWindowsEnvironmentCreateResult { const NAME: &'static str = "Windows.Security.Isolation.IsolatedWindowsEnvironmentCreateResult"; } -::windows_core::imp::interface_hierarchy!(IsolatedWindowsEnvironmentCreateResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for IsolatedWindowsEnvironmentCreateResult {} unsafe impl ::core::marker::Sync for IsolatedWindowsEnvironmentCreateResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct IsolatedWindowsEnvironmentFile(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(IsolatedWindowsEnvironmentFile, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IsolatedWindowsEnvironmentFile { pub fn Id(&self) -> ::windows_core::Result<::windows_core::GUID> { let this = self; @@ -838,14 +574,14 @@ impl IsolatedWindowsEnvironmentFile { unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn GuestPath(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GuestPath)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsReadOnly(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsReadOnly)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -857,14 +593,11 @@ impl ::windows_core::RuntimeType for IsolatedWindowsEnvironmentFile { } unsafe impl ::windows_core::Interface for IsolatedWindowsEnvironmentFile { type Vtable = IIsolatedWindowsEnvironmentFile_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IsolatedWindowsEnvironmentFile { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for IsolatedWindowsEnvironmentFile { const NAME: &'static str = "Windows.Security.Isolation.IsolatedWindowsEnvironmentFile"; } -::windows_core::imp::interface_hierarchy!(IsolatedWindowsEnvironmentFile, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for IsolatedWindowsEnvironmentFile {} unsafe impl ::core::marker::Sync for IsolatedWindowsEnvironmentFile {} pub struct IsolatedWindowsEnvironmentHost; @@ -895,6 +628,7 @@ impl ::windows_core::RuntimeName for IsolatedWindowsEnvironmentHost { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct IsolatedWindowsEnvironmentLaunchFileResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(IsolatedWindowsEnvironmentLaunchFileResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IsolatedWindowsEnvironmentLaunchFileResult { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -923,19 +657,17 @@ impl ::windows_core::RuntimeType for IsolatedWindowsEnvironmentLaunchFileResult } unsafe impl ::windows_core::Interface for IsolatedWindowsEnvironmentLaunchFileResult { type Vtable = IIsolatedWindowsEnvironmentLaunchFileResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IsolatedWindowsEnvironmentLaunchFileResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for IsolatedWindowsEnvironmentLaunchFileResult { const NAME: &'static str = "Windows.Security.Isolation.IsolatedWindowsEnvironmentLaunchFileResult"; } -::windows_core::imp::interface_hierarchy!(IsolatedWindowsEnvironmentLaunchFileResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for IsolatedWindowsEnvironmentLaunchFileResult {} unsafe impl ::core::marker::Sync for IsolatedWindowsEnvironmentLaunchFileResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct IsolatedWindowsEnvironmentOptions(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(IsolatedWindowsEnvironmentOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IsolatedWindowsEnvironmentOptions { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1040,47 +772,47 @@ impl IsolatedWindowsEnvironmentOptions { unsafe { (::windows_core::Interface::vtable(this).SetAllowCameraAndMicrophoneAccess)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn WindowAnnotationOverride(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).WindowAnnotationOverride)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetWindowAnnotationOverride(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetWindowAnnotationOverride)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn AllowedClipboardFormatsToEnvironment(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AllowedClipboardFormatsToEnvironment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetAllowedClipboardFormatsToEnvironment(&self, value: IsolatedWindowsEnvironmentAllowedClipboardFormats) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetAllowedClipboardFormatsToEnvironment)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn AllowedClipboardFormatsToHost(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AllowedClipboardFormatsToHost)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetAllowedClipboardFormatsToHost(&self, value: IsolatedWindowsEnvironmentAllowedClipboardFormats) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetAllowedClipboardFormatsToHost)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn CreationPriority(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreationPriority)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetCreationPriority(&self, value: IsolatedWindowsEnvironmentCreationPriority) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCreationPriority)(::windows_core::Interface::as_raw(this), value).ok() } } } @@ -1089,14 +821,11 @@ impl ::windows_core::RuntimeType for IsolatedWindowsEnvironmentOptions { } unsafe impl ::windows_core::Interface for IsolatedWindowsEnvironmentOptions { type Vtable = IIsolatedWindowsEnvironmentOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IsolatedWindowsEnvironmentOptions { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for IsolatedWindowsEnvironmentOptions { const NAME: &'static str = "Windows.Security.Isolation.IsolatedWindowsEnvironmentOptions"; } -::windows_core::imp::interface_hierarchy!(IsolatedWindowsEnvironmentOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for IsolatedWindowsEnvironmentOptions {} unsafe impl ::core::marker::Sync for IsolatedWindowsEnvironmentOptions {} pub struct IsolatedWindowsEnvironmentOwnerRegistration; @@ -1125,6 +854,7 @@ impl ::windows_core::RuntimeName for IsolatedWindowsEnvironmentOwnerRegistration #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct IsolatedWindowsEnvironmentOwnerRegistrationData(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(IsolatedWindowsEnvironmentOwnerRegistrationData, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IsolatedWindowsEnvironmentOwnerRegistrationData { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1175,19 +905,17 @@ impl ::windows_core::RuntimeType for IsolatedWindowsEnvironmentOwnerRegistration } unsafe impl ::windows_core::Interface for IsolatedWindowsEnvironmentOwnerRegistrationData { type Vtable = IIsolatedWindowsEnvironmentOwnerRegistrationData_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IsolatedWindowsEnvironmentOwnerRegistrationData { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for IsolatedWindowsEnvironmentOwnerRegistrationData { const NAME: &'static str = "Windows.Security.Isolation.IsolatedWindowsEnvironmentOwnerRegistrationData"; } -::windows_core::imp::interface_hierarchy!(IsolatedWindowsEnvironmentOwnerRegistrationData, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for IsolatedWindowsEnvironmentOwnerRegistrationData {} unsafe impl ::core::marker::Sync for IsolatedWindowsEnvironmentOwnerRegistrationData {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct IsolatedWindowsEnvironmentOwnerRegistrationResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(IsolatedWindowsEnvironmentOwnerRegistrationResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IsolatedWindowsEnvironmentOwnerRegistrationResult { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -1209,19 +937,17 @@ impl ::windows_core::RuntimeType for IsolatedWindowsEnvironmentOwnerRegistration } unsafe impl ::windows_core::Interface for IsolatedWindowsEnvironmentOwnerRegistrationResult { type Vtable = IIsolatedWindowsEnvironmentOwnerRegistrationResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IsolatedWindowsEnvironmentOwnerRegistrationResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for IsolatedWindowsEnvironmentOwnerRegistrationResult { const NAME: &'static str = "Windows.Security.Isolation.IsolatedWindowsEnvironmentOwnerRegistrationResult"; } -::windows_core::imp::interface_hierarchy!(IsolatedWindowsEnvironmentOwnerRegistrationResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for IsolatedWindowsEnvironmentOwnerRegistrationResult {} unsafe impl ::core::marker::Sync for IsolatedWindowsEnvironmentOwnerRegistrationResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct IsolatedWindowsEnvironmentPostMessageResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(IsolatedWindowsEnvironmentPostMessageResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IsolatedWindowsEnvironmentPostMessageResult { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -1243,19 +969,17 @@ impl ::windows_core::RuntimeType for IsolatedWindowsEnvironmentPostMessageResult } unsafe impl ::windows_core::Interface for IsolatedWindowsEnvironmentPostMessageResult { type Vtable = IIsolatedWindowsEnvironmentPostMessageResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IsolatedWindowsEnvironmentPostMessageResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for IsolatedWindowsEnvironmentPostMessageResult { const NAME: &'static str = "Windows.Security.Isolation.IsolatedWindowsEnvironmentPostMessageResult"; } -::windows_core::imp::interface_hierarchy!(IsolatedWindowsEnvironmentPostMessageResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for IsolatedWindowsEnvironmentPostMessageResult {} unsafe impl ::core::marker::Sync for IsolatedWindowsEnvironmentPostMessageResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct IsolatedWindowsEnvironmentProcess(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(IsolatedWindowsEnvironmentProcess, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IsolatedWindowsEnvironmentProcess { pub fn State(&self) -> ::windows_core::Result { let this = self; @@ -1292,19 +1016,17 @@ impl ::windows_core::RuntimeType for IsolatedWindowsEnvironmentProcess { } unsafe impl ::windows_core::Interface for IsolatedWindowsEnvironmentProcess { type Vtable = IIsolatedWindowsEnvironmentProcess_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IsolatedWindowsEnvironmentProcess { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for IsolatedWindowsEnvironmentProcess { const NAME: &'static str = "Windows.Security.Isolation.IsolatedWindowsEnvironmentProcess"; } -::windows_core::imp::interface_hierarchy!(IsolatedWindowsEnvironmentProcess, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for IsolatedWindowsEnvironmentProcess {} unsafe impl ::core::marker::Sync for IsolatedWindowsEnvironmentProcess {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct IsolatedWindowsEnvironmentShareFileRequestOptions(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(IsolatedWindowsEnvironmentShareFileRequestOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IsolatedWindowsEnvironmentShareFileRequestOptions { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1330,19 +1052,17 @@ impl ::windows_core::RuntimeType for IsolatedWindowsEnvironmentShareFileRequestO } unsafe impl ::windows_core::Interface for IsolatedWindowsEnvironmentShareFileRequestOptions { type Vtable = IIsolatedWindowsEnvironmentShareFileRequestOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IsolatedWindowsEnvironmentShareFileRequestOptions { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for IsolatedWindowsEnvironmentShareFileRequestOptions { const NAME: &'static str = "Windows.Security.Isolation.IsolatedWindowsEnvironmentShareFileRequestOptions"; } -::windows_core::imp::interface_hierarchy!(IsolatedWindowsEnvironmentShareFileRequestOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for IsolatedWindowsEnvironmentShareFileRequestOptions {} unsafe impl ::core::marker::Sync for IsolatedWindowsEnvironmentShareFileRequestOptions {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct IsolatedWindowsEnvironmentShareFileResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(IsolatedWindowsEnvironmentShareFileResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IsolatedWindowsEnvironmentShareFileResult { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -1371,19 +1091,17 @@ impl ::windows_core::RuntimeType for IsolatedWindowsEnvironmentShareFileResult { } unsafe impl ::windows_core::Interface for IsolatedWindowsEnvironmentShareFileResult { type Vtable = IIsolatedWindowsEnvironmentShareFileResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IsolatedWindowsEnvironmentShareFileResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for IsolatedWindowsEnvironmentShareFileResult { const NAME: &'static str = "Windows.Security.Isolation.IsolatedWindowsEnvironmentShareFileResult"; } -::windows_core::imp::interface_hierarchy!(IsolatedWindowsEnvironmentShareFileResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for IsolatedWindowsEnvironmentShareFileResult {} unsafe impl ::core::marker::Sync for IsolatedWindowsEnvironmentShareFileResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct IsolatedWindowsEnvironmentShareFolderRequestOptions(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(IsolatedWindowsEnvironmentShareFolderRequestOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IsolatedWindowsEnvironmentShareFolderRequestOptions { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1409,19 +1127,17 @@ impl ::windows_core::RuntimeType for IsolatedWindowsEnvironmentShareFolderReques } unsafe impl ::windows_core::Interface for IsolatedWindowsEnvironmentShareFolderRequestOptions { type Vtable = IIsolatedWindowsEnvironmentShareFolderRequestOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IsolatedWindowsEnvironmentShareFolderRequestOptions { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for IsolatedWindowsEnvironmentShareFolderRequestOptions { const NAME: &'static str = "Windows.Security.Isolation.IsolatedWindowsEnvironmentShareFolderRequestOptions"; } -::windows_core::imp::interface_hierarchy!(IsolatedWindowsEnvironmentShareFolderRequestOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for IsolatedWindowsEnvironmentShareFolderRequestOptions {} unsafe impl ::core::marker::Sync for IsolatedWindowsEnvironmentShareFolderRequestOptions {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct IsolatedWindowsEnvironmentShareFolderResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(IsolatedWindowsEnvironmentShareFolderResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IsolatedWindowsEnvironmentShareFolderResult { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -1443,19 +1159,17 @@ impl ::windows_core::RuntimeType for IsolatedWindowsEnvironmentShareFolderResult } unsafe impl ::windows_core::Interface for IsolatedWindowsEnvironmentShareFolderResult { type Vtable = IIsolatedWindowsEnvironmentShareFolderResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IsolatedWindowsEnvironmentShareFolderResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for IsolatedWindowsEnvironmentShareFolderResult { const NAME: &'static str = "Windows.Security.Isolation.IsolatedWindowsEnvironmentShareFolderResult"; } -::windows_core::imp::interface_hierarchy!(IsolatedWindowsEnvironmentShareFolderResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for IsolatedWindowsEnvironmentShareFolderResult {} unsafe impl ::core::marker::Sync for IsolatedWindowsEnvironmentShareFolderResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct IsolatedWindowsEnvironmentStartProcessResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(IsolatedWindowsEnvironmentStartProcessResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IsolatedWindowsEnvironmentStartProcessResult { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -1484,19 +1198,17 @@ impl ::windows_core::RuntimeType for IsolatedWindowsEnvironmentStartProcessResul } unsafe impl ::windows_core::Interface for IsolatedWindowsEnvironmentStartProcessResult { type Vtable = IIsolatedWindowsEnvironmentStartProcessResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IsolatedWindowsEnvironmentStartProcessResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for IsolatedWindowsEnvironmentStartProcessResult { const NAME: &'static str = "Windows.Security.Isolation.IsolatedWindowsEnvironmentStartProcessResult"; } -::windows_core::imp::interface_hierarchy!(IsolatedWindowsEnvironmentStartProcessResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for IsolatedWindowsEnvironmentStartProcessResult {} unsafe impl ::core::marker::Sync for IsolatedWindowsEnvironmentStartProcessResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct IsolatedWindowsEnvironmentTelemetryParameters(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(IsolatedWindowsEnvironmentTelemetryParameters, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IsolatedWindowsEnvironmentTelemetryParameters { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1522,19 +1234,17 @@ impl ::windows_core::RuntimeType for IsolatedWindowsEnvironmentTelemetryParamete } unsafe impl ::windows_core::Interface for IsolatedWindowsEnvironmentTelemetryParameters { type Vtable = IIsolatedWindowsEnvironmentTelemetryParameters_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IsolatedWindowsEnvironmentTelemetryParameters { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for IsolatedWindowsEnvironmentTelemetryParameters { const NAME: &'static str = "Windows.Security.Isolation.IsolatedWindowsEnvironmentTelemetryParameters"; } -::windows_core::imp::interface_hierarchy!(IsolatedWindowsEnvironmentTelemetryParameters, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for IsolatedWindowsEnvironmentTelemetryParameters {} unsafe impl ::core::marker::Sync for IsolatedWindowsEnvironmentTelemetryParameters {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct IsolatedWindowsEnvironmentUserInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(IsolatedWindowsEnvironmentUserInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IsolatedWindowsEnvironmentUserInfo { pub fn EnvironmentUserSid(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1558,7 +1268,7 @@ impl IsolatedWindowsEnvironmentUserInfo { } } pub fn TryWaitForSignInWithProgressAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryWaitForSignInWithProgressAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1570,14 +1280,11 @@ impl ::windows_core::RuntimeType for IsolatedWindowsEnvironmentUserInfo { } unsafe impl ::windows_core::Interface for IsolatedWindowsEnvironmentUserInfo { type Vtable = IIsolatedWindowsEnvironmentUserInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IsolatedWindowsEnvironmentUserInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for IsolatedWindowsEnvironmentUserInfo { const NAME: &'static str = "Windows.Security.Isolation.IsolatedWindowsEnvironmentUserInfo"; } -::windows_core::imp::interface_hierarchy!(IsolatedWindowsEnvironmentUserInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for IsolatedWindowsEnvironmentUserInfo {} unsafe impl ::core::marker::Sync for IsolatedWindowsEnvironmentUserInfo {} pub struct IsolatedWindowsHostMessenger; @@ -1586,9 +1293,9 @@ impl IsolatedWindowsHostMessenger { #[cfg(feature = "Foundation_Collections")] pub fn PostMessageToReceiver(receiverid: ::windows_core::GUID, message: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - Self::IIsolatedWindowsHostMessengerStatics(|this| unsafe { (::windows_core::Interface::vtable(this).PostMessageToReceiver)(::windows_core::Interface::as_raw(this), receiverid, message.try_into_param()?.abi()).ok() }) + Self::IIsolatedWindowsHostMessengerStatics(|this| unsafe { (::windows_core::Interface::vtable(this).PostMessageToReceiver)(::windows_core::Interface::as_raw(this), receiverid, message.into_param().abi()).ok() }) } pub fn GetFileId(filepath: &::windows_core::HSTRING) -> ::windows_core::Result<::windows_core::GUID> { Self::IIsolatedWindowsHostMessengerStatics(|this| unsafe { @@ -2079,11 +1786,8 @@ impl ::core::default::Default for IsolatedWindowsEnvironmentCreateProgress { unsafe { ::core::mem::zeroed() } } } -#[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct HostMessageReceivedCallback(pub ::windows_core::IUnknown); +::windows_core::imp::com_interface!(HostMessageReceivedCallback, HostMessageReceivedCallback_Vtbl, 0xfaf26ffa_8ce1_4cc1_b278_322d31a5e4a3); #[cfg(feature = "Foundation_Collections")] impl HostMessageReceivedCallback { pub fn new>) -> ::windows_core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { @@ -2094,10 +1798,10 @@ impl HostMessageReceivedCallback { #[cfg(feature = "Foundation_Collections")] pub fn Invoke(&self, receiverid: ::windows_core::GUID, message: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).Invoke)(::windows_core::Interface::as_raw(this), receiverid, message.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).Invoke)(::windows_core::Interface::as_raw(this), receiverid, message.into_param().abi()).ok() } } } #[cfg(feature = "Foundation_Collections")] @@ -2118,7 +1822,7 @@ impl::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; + *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::Interface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::Interface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; if (*interface).is_null() { ::windows_core::HRESULT(-2147467262) } else { @@ -2144,14 +1848,6 @@ impl(); } @@ -2165,11 +1861,8 @@ pub struct HostMessageReceivedCallback_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Invoke: usize, } -#[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct MessageReceivedCallback(pub ::windows_core::IUnknown); +::windows_core::imp::com_interface!(MessageReceivedCallback, MessageReceivedCallback_Vtbl, 0xf5b4c8ff_1d9d_4995_9fea_4d15257c0757); #[cfg(feature = "Foundation_Collections")] impl MessageReceivedCallback { pub fn new>) -> ::windows_core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { @@ -2180,10 +1873,10 @@ impl MessageReceivedCallback { #[cfg(feature = "Foundation_Collections")] pub fn Invoke(&self, receiverid: ::windows_core::GUID, message: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).Invoke)(::windows_core::Interface::as_raw(this), receiverid, message.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).Invoke)(::windows_core::Interface::as_raw(this), receiverid, message.into_param().abi()).ok() } } } #[cfg(feature = "Foundation_Collections")] @@ -2204,7 +1897,7 @@ impl::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; + *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::Interface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::Interface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; if (*interface).is_null() { ::windows_core::HRESULT(-2147467262) } else { @@ -2230,14 +1923,6 @@ impl(); } 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 0eb96df751..c58e8a20a5 100644 --- a/crates/libs/windows/src/Windows/Services/Maps/Guidance/mod.rs +++ b/crates/libs/windows/src/Windows/Services/Maps/Guidance/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGuidanceAudioNotificationRequestedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGuidanceAudioNotificationRequestedEventArgs { - type Vtable = IGuidanceAudioNotificationRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGuidanceAudioNotificationRequestedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xca2aa24a_c7c2_4d4c_9d7c_499576bceddb); -} +::windows_core::imp::com_interface!(IGuidanceAudioNotificationRequestedEventArgs, IGuidanceAudioNotificationRequestedEventArgs_Vtbl, 0xca2aa24a_c7c2_4d4c_9d7c_499576bceddb); #[repr(C)] #[doc(hidden)] pub struct IGuidanceAudioNotificationRequestedEventArgs_Vtbl { @@ -19,16 +10,7 @@ pub struct IGuidanceAudioNotificationRequestedEventArgs_Vtbl { AudioFilePaths: usize, pub AudioText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGuidanceLaneInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGuidanceLaneInfo { - type Vtable = IGuidanceLaneInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGuidanceLaneInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8404d114_6581_43b7_ac15_c9079bf90df1); -} +::windows_core::imp::com_interface!(IGuidanceLaneInfo, IGuidanceLaneInfo_Vtbl, 0x8404d114_6581_43b7_ac15_c9079bf90df1); #[repr(C)] #[doc(hidden)] pub struct IGuidanceLaneInfo_Vtbl { @@ -36,16 +18,7 @@ pub struct IGuidanceLaneInfo_Vtbl { pub LaneMarkers: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut GuidanceLaneMarkers) -> ::windows_core::HRESULT, pub IsOnRoute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGuidanceManeuver(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGuidanceManeuver { - type Vtable = IGuidanceManeuver_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGuidanceManeuver { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfc09326c_ecc9_4928_a2a1_7232b99b94a1); -} +::windows_core::imp::com_interface!(IGuidanceManeuver, IGuidanceManeuver_Vtbl, 0xfc09326c_ecc9_4928_a2a1_7232b99b94a1); #[repr(C)] #[doc(hidden)] pub struct IGuidanceManeuver_Vtbl { @@ -66,16 +39,7 @@ pub struct IGuidanceManeuver_Vtbl { pub RoadSignpost: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub InstructionText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGuidanceMapMatchedCoordinate(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGuidanceMapMatchedCoordinate { - type Vtable = IGuidanceMapMatchedCoordinate_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGuidanceMapMatchedCoordinate { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb7acb168_2912_4a99_aff1_798609b981fe); -} +::windows_core::imp::com_interface!(IGuidanceMapMatchedCoordinate, IGuidanceMapMatchedCoordinate_Vtbl, 0xb7acb168_2912_4a99_aff1_798609b981fe); #[repr(C)] #[doc(hidden)] pub struct IGuidanceMapMatchedCoordinate_Vtbl { @@ -89,16 +53,7 @@ pub struct IGuidanceMapMatchedCoordinate_Vtbl { pub IsOnStreet: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub Road: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGuidanceNavigator(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGuidanceNavigator { - type Vtable = IGuidanceNavigator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGuidanceNavigator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x08f17ef7_8e3f_4d9a_be8a_108f9a012c67); -} +::windows_core::imp::com_interface!(IGuidanceNavigator, IGuidanceNavigator_Vtbl, 0x08f17ef7_8e3f_4d9a_be8a_108f9a012c67); #[repr(C)] #[doc(hidden)] pub struct IGuidanceNavigator_Vtbl { @@ -138,16 +93,7 @@ pub struct IGuidanceNavigator_Vtbl { #[cfg(not(feature = "Devices_Geolocation"))] UpdateUserLocationWithPositionOverride: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGuidanceNavigator2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGuidanceNavigator2 { - type Vtable = IGuidanceNavigator2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGuidanceNavigator2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6cdc50d1_041c_4bf3_b633_a101fc2f6b57); -} +::windows_core::imp::com_interface!(IGuidanceNavigator2, IGuidanceNavigator2_Vtbl, 0x6cdc50d1_041c_4bf3_b633_a101fc2f6b57); #[repr(C)] #[doc(hidden)] pub struct IGuidanceNavigator2_Vtbl { @@ -157,64 +103,28 @@ pub struct IGuidanceNavigator2_Vtbl { pub IsGuidanceAudioMuted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetIsGuidanceAudioMuted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGuidanceNavigatorStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGuidanceNavigatorStatics { - type Vtable = IGuidanceNavigatorStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGuidanceNavigatorStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00fd9513_4456_4e66_a143_3add6be08426); -} +::windows_core::imp::com_interface!(IGuidanceNavigatorStatics, IGuidanceNavigatorStatics_Vtbl, 0x00fd9513_4456_4e66_a143_3add6be08426); #[repr(C)] #[doc(hidden)] pub struct IGuidanceNavigatorStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetCurrent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGuidanceNavigatorStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGuidanceNavigatorStatics2 { - type Vtable = IGuidanceNavigatorStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGuidanceNavigatorStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x54c5c3e2_7784_4c85_8c95_d0c6efb43965); -} +::windows_core::imp::com_interface!(IGuidanceNavigatorStatics2, IGuidanceNavigatorStatics2_Vtbl, 0x54c5c3e2_7784_4c85_8c95_d0c6efb43965); #[repr(C)] #[doc(hidden)] pub struct IGuidanceNavigatorStatics2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub UseAppProvidedVoice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGuidanceReroutedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGuidanceReroutedEventArgs { - type Vtable = IGuidanceReroutedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGuidanceReroutedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x115d4008_d528_454e_bb94_a50341d2c9f1); -} +::windows_core::imp::com_interface!(IGuidanceReroutedEventArgs, IGuidanceReroutedEventArgs_Vtbl, 0x115d4008_d528_454e_bb94_a50341d2c9f1); #[repr(C)] #[doc(hidden)] pub struct IGuidanceReroutedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Route: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGuidanceRoadSegment(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGuidanceRoadSegment { - type Vtable = IGuidanceRoadSegment_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGuidanceRoadSegment { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb32758a6_be78_4c63_afe7_6c2957479b3e); -} +::windows_core::imp::com_interface!(IGuidanceRoadSegment, IGuidanceRoadSegment_Vtbl, 0xb32758a6_be78_4c63_afe7_6c2957479b3e); #[repr(C)] #[doc(hidden)] pub struct IGuidanceRoadSegment_Vtbl { @@ -232,32 +142,14 @@ pub struct IGuidanceRoadSegment_Vtbl { pub IsTunnel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub IsTollRoad: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGuidanceRoadSegment2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGuidanceRoadSegment2 { - type Vtable = IGuidanceRoadSegment2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGuidanceRoadSegment2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2474a61d_1723_49f1_895b_47a2c4aa9c55); -} +::windows_core::imp::com_interface!(IGuidanceRoadSegment2, IGuidanceRoadSegment2_Vtbl, 0x2474a61d_1723_49f1_895b_47a2c4aa9c55); #[repr(C)] #[doc(hidden)] pub struct IGuidanceRoadSegment2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub IsScenic: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGuidanceRoadSignpost(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGuidanceRoadSignpost { - type Vtable = IGuidanceRoadSignpost_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGuidanceRoadSignpost { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf1a728b6_f77a_4742_8312_53300f9845f0); -} +::windows_core::imp::com_interface!(IGuidanceRoadSignpost, IGuidanceRoadSignpost_Vtbl, 0xf1a728b6_f77a_4742_8312_53300f9845f0); #[repr(C)] #[doc(hidden)] pub struct IGuidanceRoadSignpost_Vtbl { @@ -277,16 +169,7 @@ pub struct IGuidanceRoadSignpost_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] ExitDirections: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGuidanceRoute(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGuidanceRoute { - type Vtable = IGuidanceRoute_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGuidanceRoute { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3a14545d_801a_40bd_a286_afb2010cce6c); -} +::windows_core::imp::com_interface!(IGuidanceRoute, IGuidanceRoute_Vtbl, 0x3a14545d_801a_40bd_a286_afb2010cce6c); #[repr(C)] #[doc(hidden)] pub struct IGuidanceRoute_Vtbl { @@ -311,16 +194,7 @@ pub struct IGuidanceRoute_Vtbl { RoadSegments: usize, pub ConvertToMapRoute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGuidanceRouteStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGuidanceRouteStatics { - type Vtable = IGuidanceRouteStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGuidanceRouteStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf56d926a_55ed_49c1_b09c_4b8223b50db3); -} +::windows_core::imp::com_interface!(IGuidanceRouteStatics, IGuidanceRouteStatics_Vtbl, 0xf56d926a_55ed_49c1_b09c_4b8223b50db3); #[repr(C)] #[doc(hidden)] pub struct IGuidanceRouteStatics_Vtbl { @@ -328,16 +202,7 @@ pub struct IGuidanceRouteStatics_Vtbl { pub CanCreateFromMapRoute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, maproute: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub TryCreateFromMapRoute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, maproute: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGuidanceTelemetryCollector(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGuidanceTelemetryCollector { - type Vtable = IGuidanceTelemetryCollector_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGuidanceTelemetryCollector { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdb1f8da5_b878_4d92_98dd_347d23d38262); -} +::windows_core::imp::com_interface!(IGuidanceTelemetryCollector, IGuidanceTelemetryCollector_Vtbl, 0xdb1f8da5_b878_4d92_98dd_347d23d38262); #[repr(C)] #[doc(hidden)] pub struct IGuidanceTelemetryCollector_Vtbl { @@ -350,32 +215,14 @@ pub struct IGuidanceTelemetryCollector_Vtbl { pub UploadFrequency: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows_core::HRESULT, pub SetUploadFrequency: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGuidanceTelemetryCollectorStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGuidanceTelemetryCollectorStatics { - type Vtable = IGuidanceTelemetryCollectorStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGuidanceTelemetryCollectorStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x36532047_f160_44fb_b578_94577ca05990); -} +::windows_core::imp::com_interface!(IGuidanceTelemetryCollectorStatics, IGuidanceTelemetryCollectorStatics_Vtbl, 0x36532047_f160_44fb_b578_94577ca05990); #[repr(C)] #[doc(hidden)] pub struct IGuidanceTelemetryCollectorStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetCurrent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGuidanceUpdatedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGuidanceUpdatedEventArgs { - type Vtable = IGuidanceUpdatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGuidanceUpdatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfdac160b_9e8d_4de3_a9fa_b06321d18db9); -} +::windows_core::imp::com_interface!(IGuidanceUpdatedEventArgs, IGuidanceUpdatedEventArgs_Vtbl, 0xfdac160b_9e8d_4de3_a9fa_b06321d18db9); #[repr(C)] #[doc(hidden)] pub struct IGuidanceUpdatedEventArgs_Vtbl { @@ -401,6 +248,7 @@ pub struct IGuidanceUpdatedEventArgs_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GuidanceAudioNotificationRequestedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GuidanceAudioNotificationRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GuidanceAudioNotificationRequestedEventArgs { pub fn AudioNotification(&self) -> ::windows_core::Result { let this = self; @@ -431,19 +279,17 @@ impl ::windows_core::RuntimeType for GuidanceAudioNotificationRequestedEventArgs } unsafe impl ::windows_core::Interface for GuidanceAudioNotificationRequestedEventArgs { type Vtable = IGuidanceAudioNotificationRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GuidanceAudioNotificationRequestedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GuidanceAudioNotificationRequestedEventArgs { const NAME: &'static str = "Windows.Services.Maps.Guidance.GuidanceAudioNotificationRequestedEventArgs"; } -::windows_core::imp::interface_hierarchy!(GuidanceAudioNotificationRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GuidanceAudioNotificationRequestedEventArgs {} unsafe impl ::core::marker::Sync for GuidanceAudioNotificationRequestedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GuidanceLaneInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GuidanceLaneInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GuidanceLaneInfo { pub fn LaneMarkers(&self) -> ::windows_core::Result { let this = self; @@ -465,19 +311,17 @@ impl ::windows_core::RuntimeType for GuidanceLaneInfo { } unsafe impl ::windows_core::Interface for GuidanceLaneInfo { type Vtable = IGuidanceLaneInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GuidanceLaneInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GuidanceLaneInfo { const NAME: &'static str = "Windows.Services.Maps.Guidance.GuidanceLaneInfo"; } -::windows_core::imp::interface_hierarchy!(GuidanceLaneInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GuidanceLaneInfo {} unsafe impl ::core::marker::Sync for GuidanceLaneInfo {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GuidanceManeuver(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GuidanceManeuver, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GuidanceManeuver { #[doc = "Required features: `\"Devices_Geolocation\"`"] #[cfg(feature = "Devices_Geolocation")] @@ -571,19 +415,17 @@ impl ::windows_core::RuntimeType for GuidanceManeuver { } unsafe impl ::windows_core::Interface for GuidanceManeuver { type Vtable = IGuidanceManeuver_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GuidanceManeuver { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GuidanceManeuver { const NAME: &'static str = "Windows.Services.Maps.Guidance.GuidanceManeuver"; } -::windows_core::imp::interface_hierarchy!(GuidanceManeuver, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GuidanceManeuver {} unsafe impl ::core::marker::Sync for GuidanceManeuver {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GuidanceMapMatchedCoordinate(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GuidanceMapMatchedCoordinate, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GuidanceMapMatchedCoordinate { #[doc = "Required features: `\"Devices_Geolocation\"`"] #[cfg(feature = "Devices_Geolocation")] @@ -628,19 +470,17 @@ impl ::windows_core::RuntimeType for GuidanceMapMatchedCoordinate { } unsafe impl ::windows_core::Interface for GuidanceMapMatchedCoordinate { type Vtable = IGuidanceMapMatchedCoordinate_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GuidanceMapMatchedCoordinate { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GuidanceMapMatchedCoordinate { const NAME: &'static str = "Windows.Services.Maps.Guidance.GuidanceMapMatchedCoordinate"; } -::windows_core::imp::interface_hierarchy!(GuidanceMapMatchedCoordinate, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GuidanceMapMatchedCoordinate {} unsafe impl ::core::marker::Sync for GuidanceMapMatchedCoordinate {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GuidanceNavigator(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GuidanceNavigator, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GuidanceNavigator { pub fn StartNavigating(&self, route: P0) -> ::windows_core::Result<()> where @@ -822,25 +662,25 @@ impl GuidanceNavigator { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveAudioNotificationRequested(&self, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveAudioNotificationRequested)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn IsGuidanceAudioMuted(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsGuidanceAudioMuted)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsGuidanceAudioMuted(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsGuidanceAudioMuted)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn GetCurrent() -> ::windows_core::Result { @@ -871,19 +711,17 @@ impl ::windows_core::RuntimeType for GuidanceNavigator { } unsafe impl ::windows_core::Interface for GuidanceNavigator { type Vtable = IGuidanceNavigator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GuidanceNavigator { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GuidanceNavigator { const NAME: &'static str = "Windows.Services.Maps.Guidance.GuidanceNavigator"; } -::windows_core::imp::interface_hierarchy!(GuidanceNavigator, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GuidanceNavigator {} unsafe impl ::core::marker::Sync for GuidanceNavigator {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GuidanceReroutedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GuidanceReroutedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GuidanceReroutedEventArgs { pub fn Route(&self) -> ::windows_core::Result { let this = self; @@ -898,19 +736,17 @@ impl ::windows_core::RuntimeType for GuidanceReroutedEventArgs { } unsafe impl ::windows_core::Interface for GuidanceReroutedEventArgs { type Vtable = IGuidanceReroutedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GuidanceReroutedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GuidanceReroutedEventArgs { const NAME: &'static str = "Windows.Services.Maps.Guidance.GuidanceReroutedEventArgs"; } -::windows_core::imp::interface_hierarchy!(GuidanceReroutedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GuidanceReroutedEventArgs {} unsafe impl ::core::marker::Sync for GuidanceReroutedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GuidanceRoadSegment(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GuidanceRoadSegment, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GuidanceRoadSegment { pub fn RoadName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -978,7 +814,7 @@ impl GuidanceRoadSegment { } } pub fn IsScenic(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsScenic)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -990,19 +826,17 @@ impl ::windows_core::RuntimeType for GuidanceRoadSegment { } unsafe impl ::windows_core::Interface for GuidanceRoadSegment { type Vtable = IGuidanceRoadSegment_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GuidanceRoadSegment { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GuidanceRoadSegment { const NAME: &'static str = "Windows.Services.Maps.Guidance.GuidanceRoadSegment"; } -::windows_core::imp::interface_hierarchy!(GuidanceRoadSegment, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GuidanceRoadSegment {} unsafe impl ::core::marker::Sync for GuidanceRoadSegment {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GuidanceRoadSignpost(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GuidanceRoadSignpost, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GuidanceRoadSignpost { pub fn ExitNumber(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1051,19 +885,17 @@ impl ::windows_core::RuntimeType for GuidanceRoadSignpost { } unsafe impl ::windows_core::Interface for GuidanceRoadSignpost { type Vtable = IGuidanceRoadSignpost_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GuidanceRoadSignpost { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GuidanceRoadSignpost { const NAME: &'static str = "Windows.Services.Maps.Guidance.GuidanceRoadSignpost"; } -::windows_core::imp::interface_hierarchy!(GuidanceRoadSignpost, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GuidanceRoadSignpost {} unsafe impl ::core::marker::Sync for GuidanceRoadSignpost {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GuidanceRoute(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GuidanceRoute, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GuidanceRoute { pub fn Duration(&self) -> ::windows_core::Result { let this = self; @@ -1151,19 +983,17 @@ impl ::windows_core::RuntimeType for GuidanceRoute { } unsafe impl ::windows_core::Interface for GuidanceRoute { type Vtable = IGuidanceRoute_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GuidanceRoute { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GuidanceRoute { const NAME: &'static str = "Windows.Services.Maps.Guidance.GuidanceRoute"; } -::windows_core::imp::interface_hierarchy!(GuidanceRoute, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GuidanceRoute {} unsafe impl ::core::marker::Sync for GuidanceRoute {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GuidanceTelemetryCollector(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GuidanceTelemetryCollector, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GuidanceTelemetryCollector { pub fn Enabled(&self) -> ::windows_core::Result { let this = self; @@ -1219,19 +1049,17 @@ impl ::windows_core::RuntimeType for GuidanceTelemetryCollector { } unsafe impl ::windows_core::Interface for GuidanceTelemetryCollector { type Vtable = IGuidanceTelemetryCollector_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GuidanceTelemetryCollector { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GuidanceTelemetryCollector { const NAME: &'static str = "Windows.Services.Maps.Guidance.GuidanceTelemetryCollector"; } -::windows_core::imp::interface_hierarchy!(GuidanceTelemetryCollector, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GuidanceTelemetryCollector {} unsafe impl ::core::marker::Sync for GuidanceTelemetryCollector {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GuidanceUpdatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GuidanceUpdatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GuidanceUpdatedEventArgs { pub fn Mode(&self) -> ::windows_core::Result { let this = self; @@ -1339,14 +1167,11 @@ impl ::windows_core::RuntimeType for GuidanceUpdatedEventArgs { } unsafe impl ::windows_core::Interface for GuidanceUpdatedEventArgs { type Vtable = IGuidanceUpdatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GuidanceUpdatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GuidanceUpdatedEventArgs { const NAME: &'static str = "Windows.Services.Maps.Guidance.GuidanceUpdatedEventArgs"; } -::windows_core::imp::interface_hierarchy!(GuidanceUpdatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GuidanceUpdatedEventArgs {} unsafe impl ::core::marker::Sync for GuidanceUpdatedEventArgs {} #[repr(transparent)] 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 0bc8299996..89e193a23a 100644 --- a/crates/libs/windows/src/Windows/Services/Maps/LocalSearch/mod.rs +++ b/crates/libs/windows/src/Windows/Services/Maps/LocalSearch/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILocalCategoriesStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILocalCategoriesStatics { - type Vtable = ILocalCategoriesStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILocalCategoriesStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf49399f5_8261_4321_9974_ef92d49a8dca); -} +::windows_core::imp::com_interface!(ILocalCategoriesStatics, ILocalCategoriesStatics_Vtbl, 0xf49399f5_8261_4321_9974_ef92d49a8dca); #[repr(C)] #[doc(hidden)] pub struct ILocalCategoriesStatics_Vtbl { @@ -21,16 +12,7 @@ pub struct ILocalCategoriesStatics_Vtbl { pub SeeDo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Shop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILocalLocation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILocalLocation { - type Vtable = ILocalLocation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILocalLocation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbb0fe9ab_4502_4f2c_94a9_0d60de0e2163); -} +::windows_core::imp::com_interface!(ILocalLocation, ILocalLocation_Vtbl, 0xbb0fe9ab_4502_4f2c_94a9_0d60de0e2163); #[repr(C)] #[doc(hidden)] pub struct ILocalLocation_Vtbl { @@ -46,16 +28,7 @@ pub struct ILocalLocation_Vtbl { pub PhoneNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub DataAttribution: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILocalLocation2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILocalLocation2 { - type Vtable = ILocalLocation2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILocalLocation2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6e9e307c_ecb5_4ffc_bb8c_ba50ba8c2dc6); -} +::windows_core::imp::com_interface!(ILocalLocation2, ILocalLocation2_Vtbl, 0x6e9e307c_ecb5_4ffc_bb8c_ba50ba8c2dc6); #[repr(C)] #[doc(hidden)] pub struct ILocalLocation2_Vtbl { @@ -67,16 +40,7 @@ pub struct ILocalLocation2_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] HoursOfOperation: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILocalLocationFinderResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILocalLocationFinderResult { - type Vtable = ILocalLocationFinderResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILocalLocationFinderResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd09b6cc6_f338_4191_9fd8_5440b9a68f52); -} +::windows_core::imp::com_interface!(ILocalLocationFinderResult, ILocalLocationFinderResult_Vtbl, 0xd09b6cc6_f338_4191_9fd8_5440b9a68f52); #[repr(C)] #[doc(hidden)] pub struct ILocalLocationFinderResult_Vtbl { @@ -87,16 +51,7 @@ pub struct ILocalLocationFinderResult_Vtbl { LocalLocations: usize, pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut LocalLocationFinderStatus) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILocalLocationFinderStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILocalLocationFinderStatics { - type Vtable = ILocalLocationFinderStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILocalLocationFinderStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd2ef7344_a0de_48ca_81a8_07c7dcfd37ab); -} +::windows_core::imp::com_interface!(ILocalLocationFinderStatics, ILocalLocationFinderStatics_Vtbl, 0xd2ef7344_a0de_48ca_81a8_07c7dcfd37ab); #[repr(C)] #[doc(hidden)] pub struct ILocalLocationFinderStatics_Vtbl { @@ -106,16 +61,7 @@ pub struct ILocalLocationFinderStatics_Vtbl { #[cfg(not(feature = "Devices_Geolocation"))] FindLocalLocationsAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILocalLocationHoursOfOperationItem(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILocalLocationHoursOfOperationItem { - type Vtable = ILocalLocationHoursOfOperationItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILocalLocationHoursOfOperationItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x23548c72_a1c7_43f1_a4f0_1091c39ec640); -} +::windows_core::imp::com_interface!(ILocalLocationHoursOfOperationItem, ILocalLocationHoursOfOperationItem_Vtbl, 0x23548c72_a1c7_43f1_a4f0_1091c39ec640); #[repr(C)] #[doc(hidden)] pub struct ILocalLocationHoursOfOperationItem_Vtbl { @@ -127,16 +73,7 @@ pub struct ILocalLocationHoursOfOperationItem_Vtbl { pub Start: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::TimeSpan) -> ::windows_core::HRESULT, pub Span: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::TimeSpan) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILocalLocationRatingInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILocalLocationRatingInfo { - type Vtable = ILocalLocationRatingInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILocalLocationRatingInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcb1dab56_3354_4311_8bc0_a2d4d5eb806e); -} +::windows_core::imp::com_interface!(ILocalLocationRatingInfo, ILocalLocationRatingInfo_Vtbl, 0xcb1dab56_3354_4311_8bc0_a2d4d5eb806e); #[repr(C)] #[doc(hidden)] pub struct ILocalLocationRatingInfo_Vtbl { @@ -145,16 +82,7 @@ pub struct ILocalLocationRatingInfo_Vtbl { pub RatingCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ProviderIdentifier: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlaceInfoHelperStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPlaceInfoHelperStatics { - type Vtable = IPlaceInfoHelperStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPlaceInfoHelperStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdd1ca9a7_a9c6_491b_bc09_e80fcea48ee6); -} +::windows_core::imp::com_interface!(IPlaceInfoHelperStatics, IPlaceInfoHelperStatics_Vtbl, 0xdd1ca9a7_a9c6_491b_bc09_e80fcea48ee6); #[repr(C)] #[doc(hidden)] pub struct IPlaceInfoHelperStatics_Vtbl { @@ -223,6 +151,7 @@ impl ::windows_core::RuntimeName for LocalCategories { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LocalLocation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LocalLocation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl LocalLocation { pub fn Address(&self) -> ::windows_core::Result { let this = self; @@ -276,14 +205,14 @@ impl LocalLocation { } } pub fn Category(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Category)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn RatingInfo(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RatingInfo)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -292,7 +221,7 @@ impl LocalLocation { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn HoursOfOperation(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).HoursOfOperation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -304,14 +233,11 @@ impl ::windows_core::RuntimeType for LocalLocation { } unsafe impl ::windows_core::Interface for LocalLocation { type Vtable = ILocalLocation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LocalLocation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LocalLocation { const NAME: &'static str = "Windows.Services.Maps.LocalSearch.LocalLocation"; } -::windows_core::imp::interface_hierarchy!(LocalLocation, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for LocalLocation {} unsafe impl ::core::marker::Sync for LocalLocation {} pub struct LocalLocationFinder; @@ -339,6 +265,7 @@ impl ::windows_core::RuntimeName for LocalLocationFinder { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LocalLocationFinderResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LocalLocationFinderResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl LocalLocationFinderResult { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -362,19 +289,17 @@ impl ::windows_core::RuntimeType for LocalLocationFinderResult { } unsafe impl ::windows_core::Interface for LocalLocationFinderResult { type Vtable = ILocalLocationFinderResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LocalLocationFinderResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LocalLocationFinderResult { const NAME: &'static str = "Windows.Services.Maps.LocalSearch.LocalLocationFinderResult"; } -::windows_core::imp::interface_hierarchy!(LocalLocationFinderResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for LocalLocationFinderResult {} unsafe impl ::core::marker::Sync for LocalLocationFinderResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LocalLocationHoursOfOperationItem(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LocalLocationHoursOfOperationItem, ::windows_core::IUnknown, ::windows_core::IInspectable); impl LocalLocationHoursOfOperationItem { #[doc = "Required features: `\"Globalization\"`"] #[cfg(feature = "Globalization")] @@ -405,19 +330,17 @@ impl ::windows_core::RuntimeType for LocalLocationHoursOfOperationItem { } unsafe impl ::windows_core::Interface for LocalLocationHoursOfOperationItem { type Vtable = ILocalLocationHoursOfOperationItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LocalLocationHoursOfOperationItem { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LocalLocationHoursOfOperationItem { const NAME: &'static str = "Windows.Services.Maps.LocalSearch.LocalLocationHoursOfOperationItem"; } -::windows_core::imp::interface_hierarchy!(LocalLocationHoursOfOperationItem, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for LocalLocationHoursOfOperationItem {} unsafe impl ::core::marker::Sync for LocalLocationHoursOfOperationItem {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LocalLocationRatingInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LocalLocationRatingInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl LocalLocationRatingInfo { pub fn AggregateRating(&self) -> ::windows_core::Result> { let this = self; @@ -446,14 +369,11 @@ impl ::windows_core::RuntimeType for LocalLocationRatingInfo { } unsafe impl ::windows_core::Interface for LocalLocationRatingInfo { type Vtable = ILocalLocationRatingInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LocalLocationRatingInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LocalLocationRatingInfo { const NAME: &'static str = "Windows.Services.Maps.LocalSearch.LocalLocationRatingInfo"; } -::windows_core::imp::interface_hierarchy!(LocalLocationRatingInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for LocalLocationRatingInfo {} unsafe impl ::core::marker::Sync for LocalLocationRatingInfo {} pub struct PlaceInfoHelper; 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 5207c46190..003b445cf5 100644 --- a/crates/libs/windows/src/Windows/Services/Maps/OfflineMaps/mod.rs +++ b/crates/libs/windows/src/Windows/Services/Maps/OfflineMaps/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOfflineMapPackage(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOfflineMapPackage { - type Vtable = IOfflineMapPackage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOfflineMapPackage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa797673b_a5b5_4144_b525_e68c8862664b); -} +::windows_core::imp::com_interface!(IOfflineMapPackage, IOfflineMapPackage_Vtbl, 0xa797673b_a5b5_4144_b525_e68c8862664b); #[repr(C)] #[doc(hidden)] pub struct IOfflineMapPackage_Vtbl { @@ -20,16 +11,7 @@ pub struct IOfflineMapPackage_Vtbl { pub StatusChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RequestStartDownloadAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOfflineMapPackageQueryResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOfflineMapPackageQueryResult { - type Vtable = IOfflineMapPackageQueryResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOfflineMapPackageQueryResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x55585411_39e1_4e41_a4e1_5f4872bee199); -} +::windows_core::imp::com_interface!(IOfflineMapPackageQueryResult, IOfflineMapPackageQueryResult_Vtbl, 0x55585411_39e1_4e41_a4e1_5f4872bee199); #[repr(C)] #[doc(hidden)] pub struct IOfflineMapPackageQueryResult_Vtbl { @@ -40,32 +22,14 @@ pub struct IOfflineMapPackageQueryResult_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Packages: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOfflineMapPackageStartDownloadResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOfflineMapPackageStartDownloadResult { - type Vtable = IOfflineMapPackageStartDownloadResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOfflineMapPackageStartDownloadResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd965b918_d4d6_4afe_9378_3ec71ef11c3d); -} +::windows_core::imp::com_interface!(IOfflineMapPackageStartDownloadResult, IOfflineMapPackageStartDownloadResult_Vtbl, 0xd965b918_d4d6_4afe_9378_3ec71ef11c3d); #[repr(C)] #[doc(hidden)] pub struct IOfflineMapPackageStartDownloadResult_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut OfflineMapPackageStartDownloadStatus) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOfflineMapPackageStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOfflineMapPackageStatics { - type Vtable = IOfflineMapPackageStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOfflineMapPackageStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x185e7922_a831_4ab0_941f_6998fa929285); -} +::windows_core::imp::com_interface!(IOfflineMapPackageStatics, IOfflineMapPackageStatics_Vtbl, 0x185e7922_a831_4ab0_941f_6998fa929285); #[repr(C)] #[doc(hidden)] pub struct IOfflineMapPackageStatics_Vtbl { @@ -86,6 +50,7 @@ pub struct IOfflineMapPackageStatics_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct OfflineMapPackage(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(OfflineMapPackage, ::windows_core::IUnknown, ::windows_core::IInspectable); impl OfflineMapPackage { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -180,19 +145,17 @@ impl ::windows_core::RuntimeType for OfflineMapPackage { } unsafe impl ::windows_core::Interface for OfflineMapPackage { type Vtable = IOfflineMapPackage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for OfflineMapPackage { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for OfflineMapPackage { const NAME: &'static str = "Windows.Services.Maps.OfflineMaps.OfflineMapPackage"; } -::windows_core::imp::interface_hierarchy!(OfflineMapPackage, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for OfflineMapPackage {} unsafe impl ::core::marker::Sync for OfflineMapPackage {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct OfflineMapPackageQueryResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(OfflineMapPackageQueryResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl OfflineMapPackageQueryResult { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -216,19 +179,17 @@ impl ::windows_core::RuntimeType for OfflineMapPackageQueryResult { } unsafe impl ::windows_core::Interface for OfflineMapPackageQueryResult { type Vtable = IOfflineMapPackageQueryResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for OfflineMapPackageQueryResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for OfflineMapPackageQueryResult { const NAME: &'static str = "Windows.Services.Maps.OfflineMaps.OfflineMapPackageQueryResult"; } -::windows_core::imp::interface_hierarchy!(OfflineMapPackageQueryResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for OfflineMapPackageQueryResult {} unsafe impl ::core::marker::Sync for OfflineMapPackageQueryResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct OfflineMapPackageStartDownloadResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(OfflineMapPackageStartDownloadResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl OfflineMapPackageStartDownloadResult { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -243,14 +204,11 @@ impl ::windows_core::RuntimeType for OfflineMapPackageStartDownloadResult { } unsafe impl ::windows_core::Interface for OfflineMapPackageStartDownloadResult { type Vtable = IOfflineMapPackageStartDownloadResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for OfflineMapPackageStartDownloadResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for OfflineMapPackageStartDownloadResult { const NAME: &'static str = "Windows.Services.Maps.OfflineMaps.OfflineMapPackageStartDownloadResult"; } -::windows_core::imp::interface_hierarchy!(OfflineMapPackageStartDownloadResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for OfflineMapPackageStartDownloadResult {} unsafe impl ::core::marker::Sync for OfflineMapPackageStartDownloadResult {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Services/Maps/mod.rs b/crates/libs/windows/src/Windows/Services/Maps/mod.rs index 934c201c46..f70e7946cb 100644 --- a/crates/libs/windows/src/Windows/Services/Maps/mod.rs +++ b/crates/libs/windows/src/Windows/Services/Maps/mod.rs @@ -7,16 +7,7 @@ pub mod LocalSearch; #[cfg(feature = "Services_Maps_OfflineMaps")] #[doc = "Required features: `\"Services_Maps_OfflineMaps\"`"] pub mod OfflineMaps; -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnhancedWaypoint(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnhancedWaypoint { - type Vtable = IEnhancedWaypoint_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnhancedWaypoint { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xed268c74_5913_11e6_8b77_86f30ca893d3); -} +::windows_core::imp::com_interface!(IEnhancedWaypoint, IEnhancedWaypoint_Vtbl, 0xed268c74_5913_11e6_8b77_86f30ca893d3); #[repr(C)] #[doc(hidden)] pub struct IEnhancedWaypoint_Vtbl { @@ -27,16 +18,7 @@ pub struct IEnhancedWaypoint_Vtbl { Point: usize, pub Kind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut WaypointKind) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnhancedWaypointFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnhancedWaypointFactory { - type Vtable = IEnhancedWaypointFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnhancedWaypointFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaf868477_a2aa_46dd_b645_23b31b8aa6c7); -} +::windows_core::imp::com_interface!(IEnhancedWaypointFactory, IEnhancedWaypointFactory_Vtbl, 0xaf868477_a2aa_46dd_b645_23b31b8aa6c7); #[repr(C)] #[doc(hidden)] pub struct IEnhancedWaypointFactory_Vtbl { @@ -46,16 +28,7 @@ pub struct IEnhancedWaypointFactory_Vtbl { #[cfg(not(feature = "Devices_Geolocation"))] Create: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IManeuverWarning(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IManeuverWarning { - type Vtable = IManeuverWarning_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IManeuverWarning { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc1a36d8a_2630_4378_9e4a_6e44253dceba); -} +::windows_core::imp::com_interface!(IManeuverWarning, IManeuverWarning_Vtbl, 0xc1a36d8a_2630_4378_9e4a_6e44253dceba); #[repr(C)] #[doc(hidden)] pub struct IManeuverWarning_Vtbl { @@ -63,16 +36,7 @@ pub struct IManeuverWarning_Vtbl { pub Kind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ManeuverWarningKind) -> ::windows_core::HRESULT, pub Severity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ManeuverWarningSeverity) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMapAddress(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMapAddress { - type Vtable = IMapAddress_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMapAddress { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcfa7a973_a3b4_4494_b3ff_cba94db69699); -} +::windows_core::imp::com_interface!(IMapAddress, IMapAddress_Vtbl, 0xcfa7a973_a3b4_4494_b3ff_cba94db69699); #[repr(C)] #[doc(hidden)] pub struct IMapAddress_Vtbl { @@ -93,32 +57,14 @@ pub struct IMapAddress_Vtbl { pub PostCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Continent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMapAddress2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMapAddress2 { - type Vtable = IMapAddress2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMapAddress2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x75cd6df1_e5ad_45a9_bf40_6cf256c1dd13); -} +::windows_core::imp::com_interface!(IMapAddress2, IMapAddress2_Vtbl, 0x75cd6df1_e5ad_45a9_bf40_6cf256c1dd13); #[repr(C)] #[doc(hidden)] pub struct IMapAddress2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub FormattedAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMapLocation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMapLocation { - type Vtable = IMapLocation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMapLocation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3c073f57_0da4_42e8_9ee2_a96fcf2371dc); -} +::windows_core::imp::com_interface!(IMapLocation, IMapLocation_Vtbl, 0x3c073f57_0da4_42e8_9ee2_a96fcf2371dc); #[repr(C)] #[doc(hidden)] pub struct IMapLocation_Vtbl { @@ -131,16 +77,7 @@ pub struct IMapLocation_Vtbl { pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Address: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMapLocationFinderResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMapLocationFinderResult { - type Vtable = IMapLocationFinderResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMapLocationFinderResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x43f1f179_e8cc_45f6_bed2_54ccbf965d9a); -} +::windows_core::imp::com_interface!(IMapLocationFinderResult, IMapLocationFinderResult_Vtbl, 0x43f1f179_e8cc_45f6_bed2_54ccbf965d9a); #[repr(C)] #[doc(hidden)] pub struct IMapLocationFinderResult_Vtbl { @@ -151,16 +88,7 @@ pub struct IMapLocationFinderResult_Vtbl { Locations: usize, pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut MapLocationFinderStatus) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMapLocationFinderStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMapLocationFinderStatics { - type Vtable = IMapLocationFinderStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMapLocationFinderStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x318adb5d_1c5d_4f35_a2df_aaca94959517); -} +::windows_core::imp::com_interface!(IMapLocationFinderStatics, IMapLocationFinderStatics_Vtbl, 0x318adb5d_1c5d_4f35_a2df_aaca94959517); #[repr(C)] #[doc(hidden)] pub struct IMapLocationFinderStatics_Vtbl { @@ -178,16 +106,7 @@ pub struct IMapLocationFinderStatics_Vtbl { #[cfg(not(feature = "Devices_Geolocation"))] FindLocationsWithMaxCountAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMapLocationFinderStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMapLocationFinderStatics2 { - type Vtable = IMapLocationFinderStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMapLocationFinderStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x959a8b96_6485_4dfd_851a_33ac317e3af6); -} +::windows_core::imp::com_interface!(IMapLocationFinderStatics2, IMapLocationFinderStatics2_Vtbl, 0x959a8b96_6485_4dfd_851a_33ac317e3af6); #[repr(C)] #[doc(hidden)] pub struct IMapLocationFinderStatics2_Vtbl { @@ -197,16 +116,7 @@ pub struct IMapLocationFinderStatics2_Vtbl { #[cfg(not(feature = "Devices_Geolocation"))] FindLocationsAtWithAccuracyAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMapManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMapManagerStatics { - type Vtable = IMapManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMapManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x37e3e515_82b4_4d54_8fd9_af2624b3011c); -} +::windows_core::imp::com_interface!(IMapManagerStatics, IMapManagerStatics_Vtbl, 0x37e3e515_82b4_4d54_8fd9_af2624b3011c); #[repr(C)] #[doc(hidden)] pub struct IMapManagerStatics_Vtbl { @@ -214,16 +124,7 @@ pub struct IMapManagerStatics_Vtbl { pub ShowDownloadedMapsUI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ShowMapsUpdateUI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMapRoute(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMapRoute { - type Vtable = IMapRoute_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMapRoute { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfb07b732_584d_4583_9c60_641fea274349); -} +::windows_core::imp::com_interface!(IMapRoute, IMapRoute_Vtbl, 0xfb07b732_584d_4583_9c60_641fea274349); #[repr(C)] #[doc(hidden)] pub struct IMapRoute_Vtbl { @@ -244,16 +145,7 @@ pub struct IMapRoute_Vtbl { Legs: usize, pub IsTrafficBased: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMapRoute2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMapRoute2 { - type Vtable = IMapRoute2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMapRoute2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd1c5d40c_2213_4ab0_a260_46b38169beac); -} +::windows_core::imp::com_interface!(IMapRoute2, IMapRoute2_Vtbl, 0xd1c5d40c_2213_4ab0_a260_46b38169beac); #[repr(C)] #[doc(hidden)] pub struct IMapRoute2_Vtbl { @@ -261,16 +153,7 @@ pub struct IMapRoute2_Vtbl { pub ViolatedRestrictions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut MapRouteRestrictions) -> ::windows_core::HRESULT, pub HasBlockedRoads: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMapRoute3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMapRoute3 { - type Vtable = IMapRoute3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMapRoute3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x858d1eae_f2ad_429f_bb37_cd21094ffc92); -} +::windows_core::imp::com_interface!(IMapRoute3, IMapRoute3_Vtbl, 0x858d1eae_f2ad_429f_bb37_cd21094ffc92); #[repr(C)] #[doc(hidden)] pub struct IMapRoute3_Vtbl { @@ -278,32 +161,14 @@ pub struct IMapRoute3_Vtbl { pub DurationWithoutTraffic: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::TimeSpan) -> ::windows_core::HRESULT, pub TrafficCongestion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut TrafficCongestion) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMapRoute4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMapRoute4 { - type Vtable = IMapRoute4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMapRoute4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x366c8ca5_3053_4fa1_80ff_d475f3ed1e6e); -} +::windows_core::imp::com_interface!(IMapRoute4, IMapRoute4_Vtbl, 0x366c8ca5_3053_4fa1_80ff_d475f3ed1e6e); #[repr(C)] #[doc(hidden)] pub struct IMapRoute4_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub IsScenic: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMapRouteDrivingOptions(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMapRouteDrivingOptions { - type Vtable = IMapRouteDrivingOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMapRouteDrivingOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6815364d_c6dc_4697_a452_b18f8f0b67a1); -} +::windows_core::imp::com_interface!(IMapRouteDrivingOptions, IMapRouteDrivingOptions_Vtbl, 0x6815364d_c6dc_4697_a452_b18f8f0b67a1); #[repr(C)] #[doc(hidden)] pub struct IMapRouteDrivingOptions_Vtbl { @@ -317,16 +182,7 @@ pub struct IMapRouteDrivingOptions_Vtbl { pub RouteRestrictions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut MapRouteRestrictions) -> ::windows_core::HRESULT, pub SetRouteRestrictions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: MapRouteRestrictions) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMapRouteDrivingOptions2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMapRouteDrivingOptions2 { - type Vtable = IMapRouteDrivingOptions2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMapRouteDrivingOptions2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x35dc8670_c298_48d0_b5ad_825460645603); -} +::windows_core::imp::com_interface!(IMapRouteDrivingOptions2, IMapRouteDrivingOptions2_Vtbl, 0x35dc8670_c298_48d0_b5ad_825460645603); #[repr(C)] #[doc(hidden)] pub struct IMapRouteDrivingOptions2_Vtbl { @@ -334,16 +190,7 @@ pub struct IMapRouteDrivingOptions2_Vtbl { pub DepartureTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetDepartureTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMapRouteFinderResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMapRouteFinderResult { - type Vtable = IMapRouteFinderResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMapRouteFinderResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa868a31a_9422_46ac_8ca1_b1614d4bfbe2); -} +::windows_core::imp::com_interface!(IMapRouteFinderResult, IMapRouteFinderResult_Vtbl, 0xa868a31a_9422_46ac_8ca1_b1614d4bfbe2); #[repr(C)] #[doc(hidden)] pub struct IMapRouteFinderResult_Vtbl { @@ -351,16 +198,7 @@ pub struct IMapRouteFinderResult_Vtbl { pub Route: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut MapRouteFinderStatus) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMapRouteFinderResult2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMapRouteFinderResult2 { - type Vtable = IMapRouteFinderResult2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMapRouteFinderResult2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x20709c6d_d90c_46c8_91c6_7d4be4efb215); -} +::windows_core::imp::com_interface!(IMapRouteFinderResult2, IMapRouteFinderResult2_Vtbl, 0x20709c6d_d90c_46c8_91c6_7d4be4efb215); #[repr(C)] #[doc(hidden)] pub struct IMapRouteFinderResult2_Vtbl { @@ -370,16 +208,7 @@ pub struct IMapRouteFinderResult2_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] AlternateRoutes: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMapRouteFinderStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMapRouteFinderStatics { - type Vtable = IMapRouteFinderStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMapRouteFinderStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb8a5c50f_1c64_4c3a_81eb_1f7c152afbbb); -} +::windows_core::imp::com_interface!(IMapRouteFinderStatics, IMapRouteFinderStatics_Vtbl, 0xb8a5c50f_1c64_4c3a_81eb_1f7c152afbbb); #[repr(C)] #[doc(hidden)] pub struct IMapRouteFinderStatics_Vtbl { @@ -425,16 +254,7 @@ pub struct IMapRouteFinderStatics_Vtbl { #[cfg(not(all(feature = "Devices_Geolocation", feature = "Foundation_Collections")))] GetWalkingRouteFromWaypointsAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMapRouteFinderStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMapRouteFinderStatics2 { - type Vtable = IMapRouteFinderStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMapRouteFinderStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xafcc2c73_7760_49af_b3bd_baf135b703e1); -} +::windows_core::imp::com_interface!(IMapRouteFinderStatics2, IMapRouteFinderStatics2_Vtbl, 0xafcc2c73_7760_49af_b3bd_baf135b703e1); #[repr(C)] #[doc(hidden)] pub struct IMapRouteFinderStatics2_Vtbl { @@ -444,16 +264,7 @@ pub struct IMapRouteFinderStatics2_Vtbl { #[cfg(not(feature = "Devices_Geolocation"))] GetDrivingRouteWithOptionsAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMapRouteFinderStatics3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMapRouteFinderStatics3 { - type Vtable = IMapRouteFinderStatics3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMapRouteFinderStatics3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf6098134_5913_11e6_8b77_86f30ca893d3); -} +::windows_core::imp::com_interface!(IMapRouteFinderStatics3, IMapRouteFinderStatics3_Vtbl, 0xf6098134_5913_11e6_8b77_86f30ca893d3); #[repr(C)] #[doc(hidden)] pub struct IMapRouteFinderStatics3_Vtbl { @@ -467,16 +278,7 @@ pub struct IMapRouteFinderStatics3_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetDrivingRouteFromEnhancedWaypointsWithOptionsAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMapRouteLeg(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMapRouteLeg { - type Vtable = IMapRouteLeg_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMapRouteLeg { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x96f8b2f6_5bba_4d17_9db6_1a263fec7471); -} +::windows_core::imp::com_interface!(IMapRouteLeg, IMapRouteLeg_Vtbl, 0x96f8b2f6_5bba_4d17_9db6_1a263fec7471); #[repr(C)] #[doc(hidden)] pub struct IMapRouteLeg_Vtbl { @@ -496,16 +298,7 @@ pub struct IMapRouteLeg_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Maneuvers: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMapRouteLeg2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMapRouteLeg2 { - type Vtable = IMapRouteLeg2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMapRouteLeg2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x02e2062d_c9c6_45b8_8e54_1a10b57a17e8); -} +::windows_core::imp::com_interface!(IMapRouteLeg2, IMapRouteLeg2_Vtbl, 0x02e2062d_c9c6_45b8_8e54_1a10b57a17e8); #[repr(C)] #[doc(hidden)] pub struct IMapRouteLeg2_Vtbl { @@ -513,16 +306,7 @@ pub struct IMapRouteLeg2_Vtbl { pub DurationWithoutTraffic: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::TimeSpan) -> ::windows_core::HRESULT, pub TrafficCongestion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut TrafficCongestion) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMapRouteManeuver(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMapRouteManeuver { - type Vtable = IMapRouteManeuver_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMapRouteManeuver { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xed5c17f0_a6ab_4d65_a086_fa8a7e340df2); -} +::windows_core::imp::com_interface!(IMapRouteManeuver, IMapRouteManeuver_Vtbl, 0xed5c17f0_a6ab_4d65_a086_fa8a7e340df2); #[repr(C)] #[doc(hidden)] pub struct IMapRouteManeuver_Vtbl { @@ -537,16 +321,7 @@ pub struct IMapRouteManeuver_Vtbl { pub ExitNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub ManeuverNotices: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut MapManeuverNotices) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMapRouteManeuver2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMapRouteManeuver2 { - type Vtable = IMapRouteManeuver2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMapRouteManeuver2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5d7bcd9c_7c9b_41df_838b_eae21e4b05a9); -} +::windows_core::imp::com_interface!(IMapRouteManeuver2, IMapRouteManeuver2_Vtbl, 0x5d7bcd9c_7c9b_41df_838b_eae21e4b05a9); #[repr(C)] #[doc(hidden)] pub struct IMapRouteManeuver2_Vtbl { @@ -555,16 +330,7 @@ pub struct IMapRouteManeuver2_Vtbl { pub EndHeading: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows_core::HRESULT, pub StreetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMapRouteManeuver3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMapRouteManeuver3 { - type Vtable = IMapRouteManeuver3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMapRouteManeuver3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa6a138df_0483_4166_85be_b99336c11875); -} +::windows_core::imp::com_interface!(IMapRouteManeuver3, IMapRouteManeuver3_Vtbl, 0xa6a138df_0483_4166_85be_b99336c11875); #[repr(C)] #[doc(hidden)] pub struct IMapRouteManeuver3_Vtbl { @@ -574,16 +340,7 @@ pub struct IMapRouteManeuver3_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Warnings: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMapServiceStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMapServiceStatics { - type Vtable = IMapServiceStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMapServiceStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0144ad85_c04c_4cdd_871a_a0726d097cd4); -} +::windows_core::imp::com_interface!(IMapServiceStatics, IMapServiceStatics_Vtbl, 0x0144ad85_c04c_4cdd_871a_a0726d097cd4); #[repr(C)] #[doc(hidden)] pub struct IMapServiceStatics_Vtbl { @@ -591,48 +348,21 @@ pub struct IMapServiceStatics_Vtbl { pub SetServiceToken: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub ServiceToken: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMapServiceStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMapServiceStatics2 { - type Vtable = IMapServiceStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMapServiceStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf8193eed_9c85_40a9_8896_0fc3fd2b7c2a); -} +::windows_core::imp::com_interface!(IMapServiceStatics2, IMapServiceStatics2_Vtbl, 0xf8193eed_9c85_40a9_8896_0fc3fd2b7c2a); #[repr(C)] #[doc(hidden)] pub struct IMapServiceStatics2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub WorldViewRegionCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMapServiceStatics3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMapServiceStatics3 { - type Vtable = IMapServiceStatics3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMapServiceStatics3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0a11ce20_63a7_4854_b355_d6dcda223d1b); -} +::windows_core::imp::com_interface!(IMapServiceStatics3, IMapServiceStatics3_Vtbl, 0x0a11ce20_63a7_4854_b355_d6dcda223d1b); #[repr(C)] #[doc(hidden)] pub struct IMapServiceStatics3_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub DataAttributions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMapServiceStatics4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMapServiceStatics4 { - type Vtable = IMapServiceStatics4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMapServiceStatics4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x088a2862_6abc_420e_945f_4cfd89c67356); -} +::windows_core::imp::com_interface!(IMapServiceStatics4, IMapServiceStatics4_Vtbl, 0x088a2862_6abc_420e_945f_4cfd89c67356); #[repr(C)] #[doc(hidden)] pub struct IMapServiceStatics4_Vtbl { @@ -640,16 +370,7 @@ pub struct IMapServiceStatics4_Vtbl { pub SetDataUsagePreference: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: MapServiceDataUsagePreference) -> ::windows_core::HRESULT, pub DataUsagePreference: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut MapServiceDataUsagePreference) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlaceInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPlaceInfo { - type Vtable = IPlaceInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPlaceInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9a0810b6_31c8_4f6a_9f18_950b4c38951a); -} +::windows_core::imp::com_interface!(IPlaceInfo, IPlaceInfo_Vtbl, 0x9a0810b6_31c8_4f6a_9f18_950b4c38951a); #[repr(C)] #[doc(hidden)] pub struct IPlaceInfo_Vtbl { @@ -667,16 +388,7 @@ pub struct IPlaceInfo_Vtbl { #[cfg(not(feature = "Devices_Geolocation"))] Geoshape: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlaceInfoCreateOptions(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPlaceInfoCreateOptions { - type Vtable = IPlaceInfoCreateOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPlaceInfoCreateOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcd33c125_67f1_4bb3_9907_ecce939b0399); -} +::windows_core::imp::com_interface!(IPlaceInfoCreateOptions, IPlaceInfoCreateOptions_Vtbl, 0xcd33c125_67f1_4bb3_9907_ecce939b0399); #[repr(C)] #[doc(hidden)] pub struct IPlaceInfoCreateOptions_Vtbl { @@ -686,16 +398,7 @@ pub struct IPlaceInfoCreateOptions_Vtbl { pub SetDisplayAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub DisplayAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlaceInfoStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPlaceInfoStatics { - type Vtable = IPlaceInfoStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPlaceInfoStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x82b9ff71_6cd0_48a4_afd9_5ed82097936b); -} +::windows_core::imp::com_interface!(IPlaceInfoStatics, IPlaceInfoStatics_Vtbl, 0x82b9ff71_6cd0_48a4_afd9_5ed82097936b); #[repr(C)] #[doc(hidden)] pub struct IPlaceInfoStatics_Vtbl { @@ -716,16 +419,7 @@ pub struct IPlaceInfoStatics_Vtbl { pub CreateFromMapLocation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, location: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub IsShowSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlaceInfoStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPlaceInfoStatics2 { - type Vtable = IPlaceInfoStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPlaceInfoStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x730f0249_4047_44a3_8f81_2550a5216370); -} +::windows_core::imp::com_interface!(IPlaceInfoStatics2, IPlaceInfoStatics2_Vtbl, 0x730f0249_4047_44a3_8f81_2550a5216370); #[repr(C)] #[doc(hidden)] pub struct IPlaceInfoStatics2_Vtbl { @@ -736,6 +430,7 @@ pub struct IPlaceInfoStatics2_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EnhancedWaypoint(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EnhancedWaypoint, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EnhancedWaypoint { #[doc = "Required features: `\"Devices_Geolocation\"`"] #[cfg(feature = "Devices_Geolocation")] @@ -775,19 +470,17 @@ impl ::windows_core::RuntimeType for EnhancedWaypoint { } unsafe impl ::windows_core::Interface for EnhancedWaypoint { type Vtable = IEnhancedWaypoint_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EnhancedWaypoint { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EnhancedWaypoint { const NAME: &'static str = "Windows.Services.Maps.EnhancedWaypoint"; } -::windows_core::imp::interface_hierarchy!(EnhancedWaypoint, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for EnhancedWaypoint {} unsafe impl ::core::marker::Sync for EnhancedWaypoint {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ManeuverWarning(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ManeuverWarning, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ManeuverWarning { pub fn Kind(&self) -> ::windows_core::Result { let this = self; @@ -809,19 +502,17 @@ impl ::windows_core::RuntimeType for ManeuverWarning { } unsafe impl ::windows_core::Interface for ManeuverWarning { type Vtable = IManeuverWarning_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ManeuverWarning { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ManeuverWarning { const NAME: &'static str = "Windows.Services.Maps.ManeuverWarning"; } -::windows_core::imp::interface_hierarchy!(ManeuverWarning, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ManeuverWarning {} unsafe impl ::core::marker::Sync for ManeuverWarning {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MapAddress(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MapAddress, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MapAddress { pub fn BuildingName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -929,7 +620,7 @@ impl MapAddress { } } pub fn FormattedAddress(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FormattedAddress)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -941,19 +632,17 @@ impl ::windows_core::RuntimeType for MapAddress { } unsafe impl ::windows_core::Interface for MapAddress { type Vtable = IMapAddress_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MapAddress { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MapAddress { const NAME: &'static str = "Windows.Services.Maps.MapAddress"; } -::windows_core::imp::interface_hierarchy!(MapAddress, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MapAddress {} unsafe impl ::core::marker::Sync for MapAddress {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MapLocation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MapLocation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MapLocation { #[doc = "Required features: `\"Devices_Geolocation\"`"] #[cfg(feature = "Devices_Geolocation")] @@ -991,14 +680,11 @@ impl ::windows_core::RuntimeType for MapLocation { } unsafe impl ::windows_core::Interface for MapLocation { type Vtable = IMapLocation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MapLocation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MapLocation { const NAME: &'static str = "Windows.Services.Maps.MapLocation"; } -::windows_core::imp::interface_hierarchy!(MapLocation, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MapLocation {} unsafe impl ::core::marker::Sync for MapLocation {} pub struct MapLocationFinder; @@ -1064,6 +750,7 @@ impl ::windows_core::RuntimeName for MapLocationFinder { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MapLocationFinderResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MapLocationFinderResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MapLocationFinderResult { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -1087,14 +774,11 @@ impl ::windows_core::RuntimeType for MapLocationFinderResult { } unsafe impl ::windows_core::Interface for MapLocationFinderResult { type Vtable = IMapLocationFinderResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MapLocationFinderResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MapLocationFinderResult { const NAME: &'static str = "Windows.Services.Maps.MapLocationFinderResult"; } -::windows_core::imp::interface_hierarchy!(MapLocationFinderResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MapLocationFinderResult {} unsafe impl ::core::marker::Sync for MapLocationFinderResult {} pub struct MapManager; @@ -1117,6 +801,7 @@ impl ::windows_core::RuntimeName for MapManager { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MapRoute(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MapRoute, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MapRoute { #[doc = "Required features: `\"Devices_Geolocation\"`"] #[cfg(feature = "Devices_Geolocation")] @@ -1167,35 +852,35 @@ impl MapRoute { } } pub fn ViolatedRestrictions(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ViolatedRestrictions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn HasBlockedRoads(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).HasBlockedRoads)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn DurationWithoutTraffic(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DurationWithoutTraffic)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TrafficCongestion(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TrafficCongestion)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsScenic(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsScenic)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1207,19 +892,17 @@ impl ::windows_core::RuntimeType for MapRoute { } unsafe impl ::windows_core::Interface for MapRoute { type Vtable = IMapRoute_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MapRoute { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MapRoute { const NAME: &'static str = "Windows.Services.Maps.MapRoute"; } -::windows_core::imp::interface_hierarchy!(MapRoute, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MapRoute {} unsafe impl ::core::marker::Sync for MapRoute {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MapRouteDrivingOptions(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MapRouteDrivingOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MapRouteDrivingOptions { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1248,10 +931,10 @@ impl MapRouteDrivingOptions { } pub fn SetInitialHeading(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetInitialHeading)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetInitialHeading)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn RouteOptimization(&self) -> ::windows_core::Result { let this = self; @@ -1276,7 +959,7 @@ impl MapRouteDrivingOptions { unsafe { (::windows_core::Interface::vtable(this).SetRouteRestrictions)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn DepartureTime(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DepartureTime)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1284,10 +967,10 @@ impl MapRouteDrivingOptions { } pub fn SetDepartureTime(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetDepartureTime)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } } impl ::windows_core::RuntimeType for MapRouteDrivingOptions { @@ -1295,14 +978,11 @@ impl ::windows_core::RuntimeType for MapRouteDrivingOptions { } unsafe impl ::windows_core::Interface for MapRouteDrivingOptions { type Vtable = IMapRouteDrivingOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MapRouteDrivingOptions { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MapRouteDrivingOptions { const NAME: &'static str = "Windows.Services.Maps.MapRouteDrivingOptions"; } -::windows_core::imp::interface_hierarchy!(MapRouteDrivingOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MapRouteDrivingOptions {} unsafe impl ::core::marker::Sync for MapRouteDrivingOptions {} pub struct MapRouteFinder; @@ -1359,44 +1039,44 @@ impl MapRouteFinder { #[cfg(all(feature = "Devices_Geolocation", feature = "Foundation_Collections"))] pub fn GetDrivingRouteFromWaypointsAsync(waypoints: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::IMapRouteFinderStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).GetDrivingRouteFromWaypointsAsync)(::windows_core::Interface::as_raw(this), waypoints.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).GetDrivingRouteFromWaypointsAsync)(::windows_core::Interface::as_raw(this), waypoints.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Devices_Geolocation\"`, `\"Foundation_Collections\"`"] #[cfg(all(feature = "Devices_Geolocation", feature = "Foundation_Collections"))] pub fn GetDrivingRouteFromWaypointsAndOptimizationAsync(waypoints: P0, optimization: MapRouteOptimization) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::IMapRouteFinderStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).GetDrivingRouteFromWaypointsAndOptimizationAsync)(::windows_core::Interface::as_raw(this), waypoints.try_into_param()?.abi(), optimization, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).GetDrivingRouteFromWaypointsAndOptimizationAsync)(::windows_core::Interface::as_raw(this), waypoints.into_param().abi(), optimization, &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Devices_Geolocation\"`, `\"Foundation_Collections\"`"] #[cfg(all(feature = "Devices_Geolocation", feature = "Foundation_Collections"))] pub fn GetDrivingRouteFromWaypointsOptimizationAndRestrictionsAsync(waypoints: P0, optimization: MapRouteOptimization, restrictions: MapRouteRestrictions) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::IMapRouteFinderStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).GetDrivingRouteFromWaypointsOptimizationAndRestrictionsAsync)(::windows_core::Interface::as_raw(this), waypoints.try_into_param()?.abi(), optimization, restrictions, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).GetDrivingRouteFromWaypointsOptimizationAndRestrictionsAsync)(::windows_core::Interface::as_raw(this), waypoints.into_param().abi(), optimization, restrictions, &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Devices_Geolocation\"`, `\"Foundation_Collections\"`"] #[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::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::IMapRouteFinderStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).GetDrivingRouteFromWaypointsOptimizationRestrictionsAndHeadingAsync)(::windows_core::Interface::as_raw(this), waypoints.try_into_param()?.abi(), optimization, restrictions, headingindegrees, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).GetDrivingRouteFromWaypointsOptimizationRestrictionsAndHeadingAsync)(::windows_core::Interface::as_raw(this), waypoints.into_param().abi(), optimization, restrictions, headingindegrees, &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Devices_Geolocation\"`"] @@ -1415,11 +1095,11 @@ impl MapRouteFinder { #[cfg(all(feature = "Devices_Geolocation", feature = "Foundation_Collections"))] pub fn GetWalkingRouteFromWaypointsAsync(waypoints: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::IMapRouteFinderStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).GetWalkingRouteFromWaypointsAsync)(::windows_core::Interface::as_raw(this), waypoints.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).GetWalkingRouteFromWaypointsAsync)(::windows_core::Interface::as_raw(this), waypoints.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Devices_Geolocation\"`"] @@ -1439,23 +1119,23 @@ impl MapRouteFinder { #[cfg(feature = "Foundation_Collections")] pub fn GetDrivingRouteFromEnhancedWaypointsAsync(waypoints: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::IMapRouteFinderStatics3(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).GetDrivingRouteFromEnhancedWaypointsAsync)(::windows_core::Interface::as_raw(this), waypoints.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).GetDrivingRouteFromEnhancedWaypointsAsync)(::windows_core::Interface::as_raw(this), waypoints.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetDrivingRouteFromEnhancedWaypointsWithOptionsAsync(waypoints: P0, options: P1) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, P1: ::windows_core::IntoParam, { Self::IMapRouteFinderStatics3(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).GetDrivingRouteFromEnhancedWaypointsWithOptionsAsync)(::windows_core::Interface::as_raw(this), waypoints.try_into_param()?.abi(), options.into_param().abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).GetDrivingRouteFromEnhancedWaypointsWithOptionsAsync)(::windows_core::Interface::as_raw(this), waypoints.into_param().abi(), options.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -1480,6 +1160,7 @@ impl ::windows_core::RuntimeName for MapRouteFinder { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MapRouteFinderResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MapRouteFinderResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MapRouteFinderResult { pub fn Route(&self) -> ::windows_core::Result { let this = self; @@ -1498,7 +1179,7 @@ impl MapRouteFinderResult { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn AlternateRoutes(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AlternateRoutes)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1510,19 +1191,17 @@ impl ::windows_core::RuntimeType for MapRouteFinderResult { } unsafe impl ::windows_core::Interface for MapRouteFinderResult { type Vtable = IMapRouteFinderResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MapRouteFinderResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MapRouteFinderResult { const NAME: &'static str = "Windows.Services.Maps.MapRouteFinderResult"; } -::windows_core::imp::interface_hierarchy!(MapRouteFinderResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MapRouteFinderResult {} unsafe impl ::core::marker::Sync for MapRouteFinderResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MapRouteLeg(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MapRouteLeg, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MapRouteLeg { #[doc = "Required features: `\"Devices_Geolocation\"`"] #[cfg(feature = "Devices_Geolocation")] @@ -1566,14 +1245,14 @@ impl MapRouteLeg { } } pub fn DurationWithoutTraffic(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DurationWithoutTraffic)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TrafficCongestion(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TrafficCongestion)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1585,19 +1264,17 @@ impl ::windows_core::RuntimeType for MapRouteLeg { } unsafe impl ::windows_core::Interface for MapRouteLeg { type Vtable = IMapRouteLeg_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MapRouteLeg { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MapRouteLeg { const NAME: &'static str = "Windows.Services.Maps.MapRouteLeg"; } -::windows_core::imp::interface_hierarchy!(MapRouteLeg, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MapRouteLeg {} unsafe impl ::core::marker::Sync for MapRouteLeg {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MapRouteManeuver(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MapRouteManeuver, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MapRouteManeuver { #[doc = "Required features: `\"Devices_Geolocation\"`"] #[cfg(feature = "Devices_Geolocation")] @@ -1644,21 +1321,21 @@ impl MapRouteManeuver { } } pub fn StartHeading(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).StartHeading)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn EndHeading(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).EndHeading)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn StreetName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).StreetName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1667,7 +1344,7 @@ impl MapRouteManeuver { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Warnings(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Warnings)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1679,14 +1356,11 @@ impl ::windows_core::RuntimeType for MapRouteManeuver { } unsafe impl ::windows_core::Interface for MapRouteManeuver { type Vtable = IMapRouteManeuver_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MapRouteManeuver { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MapRouteManeuver { const NAME: &'static str = "Windows.Services.Maps.MapRouteManeuver"; } -::windows_core::imp::interface_hierarchy!(MapRouteManeuver, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for MapRouteManeuver {} unsafe impl ::core::marker::Sync for MapRouteManeuver {} pub struct MapService; @@ -1748,6 +1422,7 @@ impl ::windows_core::RuntimeName for MapService { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PlaceInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PlaceInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PlaceInfo { pub fn Show(&self, selection: super::super::Foundation::Rect) -> ::windows_core::Result<()> { let this = self; @@ -1873,19 +1548,17 @@ impl ::windows_core::RuntimeType for PlaceInfo { } unsafe impl ::windows_core::Interface for PlaceInfo { type Vtable = IPlaceInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PlaceInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PlaceInfo { const NAME: &'static str = "Windows.Services.Maps.PlaceInfo"; } -::windows_core::imp::interface_hierarchy!(PlaceInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PlaceInfo {} unsafe impl ::core::marker::Sync for PlaceInfo {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PlaceInfoCreateOptions(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PlaceInfoCreateOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PlaceInfoCreateOptions { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1922,14 +1595,11 @@ impl ::windows_core::RuntimeType for PlaceInfoCreateOptions { } unsafe impl ::windows_core::Interface for PlaceInfoCreateOptions { type Vtable = IPlaceInfoCreateOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PlaceInfoCreateOptions { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PlaceInfoCreateOptions { const NAME: &'static str = "Windows.Services.Maps.PlaceInfoCreateOptions"; } -::windows_core::imp::interface_hierarchy!(PlaceInfoCreateOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PlaceInfoCreateOptions {} unsafe impl ::core::marker::Sync for PlaceInfoCreateOptions {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Services/Store/mod.rs b/crates/libs/windows/src/Windows/Services/Store/mod.rs index ac6a1e2c1a..086811bb84 100644 --- a/crates/libs/windows/src/Windows/Services/Store/mod.rs +++ b/crates/libs/windows/src/Windows/Services/Store/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStoreAcquireLicenseResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStoreAcquireLicenseResult { - type Vtable = IStoreAcquireLicenseResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStoreAcquireLicenseResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfbd7946d_f040_4cb3_9a39_29bcecdbe22d); -} +::windows_core::imp::com_interface!(IStoreAcquireLicenseResult, IStoreAcquireLicenseResult_Vtbl, 0xfbd7946d_f040_4cb3_9a39_29bcecdbe22d); #[repr(C)] #[doc(hidden)] pub struct IStoreAcquireLicenseResult_Vtbl { @@ -15,16 +6,7 @@ pub struct IStoreAcquireLicenseResult_Vtbl { pub StorePackageLicense: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ExtendedError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStoreAppLicense(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStoreAppLicense { - type Vtable = IStoreAppLicense_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStoreAppLicense { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf389f9de_73c0_45ce_9bab_b2fe3e5eafd3); -} +::windows_core::imp::com_interface!(IStoreAppLicense, IStoreAppLicense_Vtbl, 0xf389f9de_73c0_45ce_9bab_b2fe3e5eafd3); #[repr(C)] #[doc(hidden)] pub struct IStoreAppLicense_Vtbl { @@ -42,32 +24,14 @@ pub struct IStoreAppLicense_Vtbl { pub IsTrialOwnedByThisUser: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub TrialUniqueId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStoreAppLicense2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStoreAppLicense2 { - type Vtable = IStoreAppLicense2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStoreAppLicense2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb4666e91_4443_40b3_993f_28904435bdc6); -} +::windows_core::imp::com_interface!(IStoreAppLicense2, IStoreAppLicense2_Vtbl, 0xb4666e91_4443_40b3_993f_28904435bdc6); #[repr(C)] #[doc(hidden)] pub struct IStoreAppLicense2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub IsDiscLicense: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStoreAvailability(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStoreAvailability { - type Vtable = IStoreAvailability_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStoreAvailability { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfa060325_0ffd_4493_ad43_f1f9918f69fa); -} +::windows_core::imp::com_interface!(IStoreAvailability, IStoreAvailability_Vtbl, 0xfa060325_0ffd_4493_ad43_f1f9918f69fa); #[repr(C)] #[doc(hidden)] pub struct IStoreAvailability_Vtbl { @@ -79,16 +43,7 @@ pub struct IStoreAvailability_Vtbl { pub RequestPurchaseAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RequestPurchaseWithPurchasePropertiesAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, storepurchaseproperties: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStoreCanAcquireLicenseResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStoreCanAcquireLicenseResult { - type Vtable = IStoreCanAcquireLicenseResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStoreCanAcquireLicenseResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3a693db3_0088_482f_86d5_bd46522663ad); -} +::windows_core::imp::com_interface!(IStoreCanAcquireLicenseResult, IStoreCanAcquireLicenseResult_Vtbl, 0x3a693db3_0088_482f_86d5_bd46522663ad); #[repr(C)] #[doc(hidden)] pub struct IStoreCanAcquireLicenseResult_Vtbl { @@ -97,16 +52,7 @@ pub struct IStoreCanAcquireLicenseResult_Vtbl { pub LicensableSku: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut StoreCanLicenseStatus) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStoreCollectionData(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStoreCollectionData { - type Vtable = IStoreCollectionData_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStoreCollectionData { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8aa4c3b3_5bb3_441a_2ab4_4dab73d5ce67); -} +::windows_core::imp::com_interface!(IStoreCollectionData, IStoreCollectionData_Vtbl, 0x8aa4c3b3_5bb3_441a_2ab4_4dab73d5ce67); #[repr(C)] #[doc(hidden)] pub struct IStoreCollectionData_Vtbl { @@ -120,16 +66,7 @@ pub struct IStoreCollectionData_Vtbl { pub TrialTimeRemaining: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::TimeSpan) -> ::windows_core::HRESULT, pub ExtendedJsonData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStoreConsumableResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStoreConsumableResult { - type Vtable = IStoreConsumableResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStoreConsumableResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xea5dab72_6a00_4052_be5b_bfdab4433352); -} +::windows_core::imp::com_interface!(IStoreConsumableResult, IStoreConsumableResult_Vtbl, 0xea5dab72_6a00_4052_be5b_bfdab4433352); #[repr(C)] #[doc(hidden)] pub struct IStoreConsumableResult_Vtbl { @@ -139,16 +76,7 @@ pub struct IStoreConsumableResult_Vtbl { pub BalanceRemaining: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, pub ExtendedError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStoreContext(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStoreContext { - type Vtable = IStoreContext_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStoreContext { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xac98b6be_f4fd_4912_babd_5035e5e8bcab); -} +::windows_core::imp::com_interface!(IStoreContext, IStoreContext_Vtbl, 0xac98b6be_f4fd_4912_babd_5035e5e8bcab); #[repr(C)] #[doc(hidden)] pub struct IStoreContext_Vtbl { @@ -208,16 +136,7 @@ pub struct IStoreContext_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] RequestDownloadAndInstallStorePackagesAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStoreContext2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStoreContext2 { - type Vtable = IStoreContext2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStoreContext2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x18bc54da_7bd9_452c_9116_3bbd06ffc63a); -} +::windows_core::imp::com_interface!(IStoreContext2, IStoreContext2_Vtbl, 0x18bc54da_7bd9_452c_9116_3bbd06ffc63a); #[repr(C)] #[doc(hidden)] pub struct IStoreContext2_Vtbl { @@ -227,16 +146,7 @@ pub struct IStoreContext2_Vtbl { #[cfg(not(all(feature = "ApplicationModel", feature = "Foundation_Collections")))] FindStoreProductForPackageAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStoreContext3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStoreContext3 { - type Vtable = IStoreContext3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStoreContext3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe26226ca_1a01_4730_85a6_ecc896e4ae38); -} +::windows_core::imp::com_interface!(IStoreContext3, IStoreContext3_Vtbl, 0xe26226ca_1a01_4730_85a6_ecc896e4ae38); #[repr(C)] #[doc(hidden)] pub struct IStoreContext3_Vtbl { @@ -286,16 +196,7 @@ pub struct IStoreContext3_Vtbl { UninstallStorePackageAsync: usize, pub UninstallStorePackageByStoreIdAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, storeid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStoreContext4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStoreContext4 { - type Vtable = IStoreContext4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStoreContext4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaf9c6f69_bea1_4bf4_8e74_ae03e206c6b0); -} +::windows_core::imp::com_interface!(IStoreContext4, IStoreContext4_Vtbl, 0xaf9c6f69_bea1_4bf4_8e74_ae03e206c6b0); #[repr(C)] #[doc(hidden)] pub struct IStoreContext4_Vtbl { @@ -306,16 +207,7 @@ pub struct IStoreContext4_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] SetInstallOrderForAssociatedStoreQueueItemsAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStoreContext5(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStoreContext5 { - type Vtable = IStoreContext5_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStoreContext5 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6de6c52b_c43a_5953_b39a_71643c57d96e); -} +::windows_core::imp::com_interface!(IStoreContext5, IStoreContext5_Vtbl, 0x6de6c52b_c43a_5953_b39a_71643c57d96e); #[repr(C)] #[doc(hidden)] pub struct IStoreContext5_Vtbl { @@ -330,16 +222,7 @@ pub struct IStoreContext5_Vtbl { GetAssociatedStoreProductsByInAppOfferTokenAsync: usize, pub RequestPurchaseByInAppOfferTokenAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, inappoffertoken: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStoreContextStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStoreContextStatics { - type Vtable = IStoreContextStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStoreContextStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9c06ee5f_15c0_4e72_9330_d6191cebd19c); -} +::windows_core::imp::com_interface!(IStoreContextStatics, IStoreContextStatics_Vtbl, 0x9c06ee5f_15c0_4e72_9330_d6191cebd19c); #[repr(C)] #[doc(hidden)] pub struct IStoreContextStatics_Vtbl { @@ -350,16 +233,7 @@ pub struct IStoreContextStatics_Vtbl { #[cfg(not(feature = "System"))] GetForUser: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStoreImage(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStoreImage { - type Vtable = IStoreImage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStoreImage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x081fd248_adb4_4b64_a993_784789926ed5); -} +::windows_core::imp::com_interface!(IStoreImage, IStoreImage_Vtbl, 0x081fd248_adb4_4b64_a993_784789926ed5); #[repr(C)] #[doc(hidden)] pub struct IStoreImage_Vtbl { @@ -370,16 +244,7 @@ pub struct IStoreImage_Vtbl { pub Height: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, pub Caption: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStoreLicense(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStoreLicense { - type Vtable = IStoreLicense_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStoreLicense { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x26dc9579_4c4f_4f30_bc89_649f60e36055); -} +::windows_core::imp::com_interface!(IStoreLicense, IStoreLicense_Vtbl, 0x26dc9579_4c4f_4f30_bc89_649f60e36055); #[repr(C)] #[doc(hidden)] pub struct IStoreLicense_Vtbl { @@ -390,16 +255,7 @@ pub struct IStoreLicense_Vtbl { pub ExtendedJsonData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub InAppOfferToken: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorePackageInstallOptions(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorePackageInstallOptions { - type Vtable = IStorePackageInstallOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorePackageInstallOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1d3d630c_0ccd_44dd_8c59_80810a729973); -} +::windows_core::imp::com_interface!(IStorePackageInstallOptions, IStorePackageInstallOptions_Vtbl, 0x1d3d630c_0ccd_44dd_8c59_80810a729973); #[repr(C)] #[doc(hidden)] pub struct IStorePackageInstallOptions_Vtbl { @@ -407,16 +263,7 @@ pub struct IStorePackageInstallOptions_Vtbl { pub AllowForcedAppRestart: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetAllowForcedAppRestart: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorePackageLicense(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorePackageLicense { - type Vtable = IStorePackageLicense_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorePackageLicense { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c465714_14e1_4973_bd14_f77724271e99); -} +::windows_core::imp::com_interface!(IStorePackageLicense, IStorePackageLicense_Vtbl, 0x0c465714_14e1_4973_bd14_f77724271e99); #[repr(C)] #[doc(hidden)] pub struct IStorePackageLicense_Vtbl { @@ -430,16 +277,7 @@ pub struct IStorePackageLicense_Vtbl { pub IsValid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub ReleaseLicense: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorePackageUpdate(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorePackageUpdate { - type Vtable = IStorePackageUpdate_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorePackageUpdate { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x140fa150_3cbf_4a35_b91f_48271c31b072); -} +::windows_core::imp::com_interface!(IStorePackageUpdate, IStorePackageUpdate_Vtbl, 0x140fa150_3cbf_4a35_b91f_48271c31b072); #[repr(C)] #[doc(hidden)] pub struct IStorePackageUpdate_Vtbl { @@ -450,16 +288,7 @@ pub struct IStorePackageUpdate_Vtbl { Package: usize, pub Mandatory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorePackageUpdateResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorePackageUpdateResult { - type Vtable = IStorePackageUpdateResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorePackageUpdateResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe79142ed_61f9_4893_b4fe_cf191603af7b); -} +::windows_core::imp::com_interface!(IStorePackageUpdateResult, IStorePackageUpdateResult_Vtbl, 0xe79142ed_61f9_4893_b4fe_cf191603af7b); #[repr(C)] #[doc(hidden)] pub struct IStorePackageUpdateResult_Vtbl { @@ -470,16 +299,7 @@ pub struct IStorePackageUpdateResult_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] StorePackageUpdateStatuses: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorePackageUpdateResult2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorePackageUpdateResult2 { - type Vtable = IStorePackageUpdateResult2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorePackageUpdateResult2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x071d012e_bc62_4f2e_87ea_99d801aeaf98); -} +::windows_core::imp::com_interface!(IStorePackageUpdateResult2, IStorePackageUpdateResult2_Vtbl, 0x071d012e_bc62_4f2e_87ea_99d801aeaf98); #[repr(C)] #[doc(hidden)] pub struct IStorePackageUpdateResult2_Vtbl { @@ -489,16 +309,7 @@ pub struct IStorePackageUpdateResult2_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] StoreQueueItems: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorePrice(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorePrice { - type Vtable = IStorePrice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorePrice { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x55ba94c4_15f1_407c_8f06_006380f4df0b); -} +::windows_core::imp::com_interface!(IStorePrice, IStorePrice_Vtbl, 0x55ba94c4_15f1_407c_8f06_006380f4df0b); #[repr(C)] #[doc(hidden)] pub struct IStorePrice_Vtbl { @@ -510,16 +321,7 @@ pub struct IStorePrice_Vtbl { pub CurrencyCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub FormattedRecurrencePrice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorePrice2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorePrice2 { - type Vtable = IStorePrice2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorePrice2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf711573c_40e6_5641_b063_f1df42b2b12a); -} +::windows_core::imp::com_interface!(IStorePrice2, IStorePrice2_Vtbl, 0xf711573c_40e6_5641_b063_f1df42b2b12a); #[repr(C)] #[doc(hidden)] pub struct IStorePrice2_Vtbl { @@ -528,16 +330,7 @@ pub struct IStorePrice2_Vtbl { pub UnformattedPrice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub UnformattedRecurrencePrice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStoreProduct(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStoreProduct { - type Vtable = IStoreProduct_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStoreProduct { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x320e2c52_d760_450a_a42b_67d1e901ac90); -} +::windows_core::imp::com_interface!(IStoreProduct, IStoreProduct_Vtbl, 0x320e2c52_d760_450a_a42b_67d1e901ac90); #[repr(C)] #[doc(hidden)] pub struct IStoreProduct_Vtbl { @@ -573,16 +366,7 @@ pub struct IStoreProduct_Vtbl { pub RequestPurchaseWithPurchasePropertiesAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, storepurchaseproperties: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub InAppOfferToken: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStoreProductOptions(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStoreProductOptions { - type Vtable = IStoreProductOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStoreProductOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5b34a0f9_a113_4811_8326_16199c927f31); -} +::windows_core::imp::com_interface!(IStoreProductOptions, IStoreProductOptions_Vtbl, 0x5b34a0f9_a113_4811_8326_16199c927f31); #[repr(C)] #[doc(hidden)] pub struct IStoreProductOptions_Vtbl { @@ -592,16 +376,7 @@ pub struct IStoreProductOptions_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] ActionFilters: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStoreProductPagedQueryResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStoreProductPagedQueryResult { - type Vtable = IStoreProductPagedQueryResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStoreProductPagedQueryResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc92718c5_4dd5_4869_a462_ecc6872e43c5); -} +::windows_core::imp::com_interface!(IStoreProductPagedQueryResult, IStoreProductPagedQueryResult_Vtbl, 0xc92718c5_4dd5_4869_a462_ecc6872e43c5); #[repr(C)] #[doc(hidden)] pub struct IStoreProductPagedQueryResult_Vtbl { @@ -614,16 +389,7 @@ pub struct IStoreProductPagedQueryResult_Vtbl { pub ExtendedError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, pub GetNextAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStoreProductQueryResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStoreProductQueryResult { - type Vtable = IStoreProductQueryResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStoreProductQueryResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd805e6c5_d456_4ff6_8049_9076d5165f73); -} +::windows_core::imp::com_interface!(IStoreProductQueryResult, IStoreProductQueryResult_Vtbl, 0xd805e6c5_d456_4ff6_8049_9076d5165f73); #[repr(C)] #[doc(hidden)] pub struct IStoreProductQueryResult_Vtbl { @@ -634,16 +400,7 @@ pub struct IStoreProductQueryResult_Vtbl { Products: usize, pub ExtendedError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStoreProductResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStoreProductResult { - type Vtable = IStoreProductResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStoreProductResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb7674f73_3c87_4ee1_8201_f428359bd3af); -} +::windows_core::imp::com_interface!(IStoreProductResult, IStoreProductResult_Vtbl, 0xb7674f73_3c87_4ee1_8201_f428359bd3af); #[repr(C)] #[doc(hidden)] pub struct IStoreProductResult_Vtbl { @@ -651,16 +408,7 @@ pub struct IStoreProductResult_Vtbl { pub Product: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ExtendedError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorePurchaseProperties(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorePurchaseProperties { - type Vtable = IStorePurchaseProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorePurchaseProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x836278f3_ff87_4364_a5b4_fd2153ebe43b); -} +::windows_core::imp::com_interface!(IStorePurchaseProperties, IStorePurchaseProperties_Vtbl, 0x836278f3_ff87_4364_a5b4_fd2153ebe43b); #[repr(C)] #[doc(hidden)] pub struct IStorePurchaseProperties_Vtbl { @@ -670,32 +418,14 @@ pub struct IStorePurchaseProperties_Vtbl { pub ExtendedJsonData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetExtendedJsonData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorePurchasePropertiesFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorePurchasePropertiesFactory { - type Vtable = IStorePurchasePropertiesFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorePurchasePropertiesFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa768f59e_fefd_489f_9a17_22a593e68b9d); -} +::windows_core::imp::com_interface!(IStorePurchasePropertiesFactory, IStorePurchasePropertiesFactory_Vtbl, 0xa768f59e_fefd_489f_9a17_22a593e68b9d); #[repr(C)] #[doc(hidden)] pub struct IStorePurchasePropertiesFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorePurchaseResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorePurchaseResult { - type Vtable = IStorePurchaseResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorePurchaseResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xadd28552_f96a_463d_a7bb_c20b4fca6952); -} +::windows_core::imp::com_interface!(IStorePurchaseResult, IStorePurchaseResult_Vtbl, 0xadd28552_f96a_463d_a7bb_c20b4fca6952); #[repr(C)] #[doc(hidden)] pub struct IStorePurchaseResult_Vtbl { @@ -703,16 +433,7 @@ pub struct IStorePurchaseResult_Vtbl { pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut StorePurchaseStatus) -> ::windows_core::HRESULT, pub ExtendedError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStoreQueueItem(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStoreQueueItem { - type Vtable = IStoreQueueItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStoreQueueItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x56d5c32b_f830_4293_9188_cad2dcde7357); -} +::windows_core::imp::com_interface!(IStoreQueueItem, IStoreQueueItem_Vtbl, 0x56d5c32b_f830_4293_9188_cad2dcde7357); #[repr(C)] #[doc(hidden)] pub struct IStoreQueueItem_Vtbl { @@ -726,16 +447,7 @@ pub struct IStoreQueueItem_Vtbl { pub StatusChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveStatusChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStoreQueueItem2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStoreQueueItem2 { - type Vtable = IStoreQueueItem2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStoreQueueItem2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x69491ca8_1ad4_447c_ad8c_a95035f64d82); -} +::windows_core::imp::com_interface!(IStoreQueueItem2, IStoreQueueItem2_Vtbl, 0x69491ca8_1ad4_447c_ad8c_a95035f64d82); #[repr(C)] #[doc(hidden)] pub struct IStoreQueueItem2_Vtbl { @@ -744,32 +456,14 @@ pub struct IStoreQueueItem2_Vtbl { pub PauseInstallAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ResumeInstallAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStoreQueueItemCompletedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStoreQueueItemCompletedEventArgs { - type Vtable = IStoreQueueItemCompletedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStoreQueueItemCompletedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1247df6c_b44a_439b_bb07_1d3003d005c2); -} +::windows_core::imp::com_interface!(IStoreQueueItemCompletedEventArgs, IStoreQueueItemCompletedEventArgs_Vtbl, 0x1247df6c_b44a_439b_bb07_1d3003d005c2); #[repr(C)] #[doc(hidden)] pub struct IStoreQueueItemCompletedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStoreQueueItemStatus(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStoreQueueItemStatus { - type Vtable = IStoreQueueItemStatus_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStoreQueueItemStatus { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9bd6796f_9cc3_4ec3_b2ef_7be433b30174); -} +::windows_core::imp::com_interface!(IStoreQueueItemStatus, IStoreQueueItemStatus_Vtbl, 0x9bd6796f_9cc3_4ec3_b2ef_7be433b30174); #[repr(C)] #[doc(hidden)] pub struct IStoreQueueItemStatus_Vtbl { @@ -779,16 +473,7 @@ pub struct IStoreQueueItemStatus_Vtbl { pub UpdateStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit) -> ::windows_core::HRESULT, pub ExtendedError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStoreRateAndReviewResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStoreRateAndReviewResult { - type Vtable = IStoreRateAndReviewResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStoreRateAndReviewResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9d209d56_a6b5_4121_9b61_ee6d0fbdbdbb); -} +::windows_core::imp::com_interface!(IStoreRateAndReviewResult, IStoreRateAndReviewResult_Vtbl, 0x9d209d56_a6b5_4121_9b61_ee6d0fbdbdbb); #[repr(C)] #[doc(hidden)] pub struct IStoreRateAndReviewResult_Vtbl { @@ -798,32 +483,14 @@ pub struct IStoreRateAndReviewResult_Vtbl { pub WasUpdated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut StoreRateAndReviewStatus) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStoreRequestHelperStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStoreRequestHelperStatics { - type Vtable = IStoreRequestHelperStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStoreRequestHelperStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6ce5e5f9_a0c9_4b2c_96a6_a171c630038d); -} +::windows_core::imp::com_interface!(IStoreRequestHelperStatics, IStoreRequestHelperStatics_Vtbl, 0x6ce5e5f9_a0c9_4b2c_96a6_a171c630038d); #[repr(C)] #[doc(hidden)] pub struct IStoreRequestHelperStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub SendRequestAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, requestkind: u32, parametersasjson: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStoreSendRequestResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStoreSendRequestResult { - type Vtable = IStoreSendRequestResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStoreSendRequestResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc73abe60_8272_4502_8a69_6e75153a4299); -} +::windows_core::imp::com_interface!(IStoreSendRequestResult, IStoreSendRequestResult_Vtbl, 0xc73abe60_8272_4502_8a69_6e75153a4299); #[repr(C)] #[doc(hidden)] pub struct IStoreSendRequestResult_Vtbl { @@ -831,16 +498,7 @@ pub struct IStoreSendRequestResult_Vtbl { pub Response: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub ExtendedError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStoreSendRequestResult2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStoreSendRequestResult2 { - type Vtable = IStoreSendRequestResult2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStoreSendRequestResult2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2901296f_c0b0_49d0_8e8d_aa940af9c10b); -} +::windows_core::imp::com_interface!(IStoreSendRequestResult2, IStoreSendRequestResult2_Vtbl, 0x2901296f_c0b0_49d0_8e8d_aa940af9c10b); #[repr(C)] #[doc(hidden)] pub struct IStoreSendRequestResult2_Vtbl { @@ -850,16 +508,7 @@ pub struct IStoreSendRequestResult2_Vtbl { #[cfg(not(feature = "Web_Http"))] HttpStatusCode: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStoreSku(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStoreSku { - type Vtable = IStoreSku_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStoreSku { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x397e6f55_4440_4f03_863c_91f3fec83d79); -} +::windows_core::imp::com_interface!(IStoreSku, IStoreSku_Vtbl, 0x397e6f55_4440_4f03_863c_91f3fec83d79); #[repr(C)] #[doc(hidden)] pub struct IStoreSku_Vtbl { @@ -896,16 +545,7 @@ pub struct IStoreSku_Vtbl { pub IsSubscription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SubscriptionInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStoreSubscriptionInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStoreSubscriptionInfo { - type Vtable = IStoreSubscriptionInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStoreSubscriptionInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4189776a_0559_43ac_a9c6_3ab0011fb8eb); -} +::windows_core::imp::com_interface!(IStoreSubscriptionInfo, IStoreSubscriptionInfo_Vtbl, 0x4189776a_0559_43ac_a9c6_3ab0011fb8eb); #[repr(C)] #[doc(hidden)] pub struct IStoreSubscriptionInfo_Vtbl { @@ -916,16 +556,7 @@ pub struct IStoreSubscriptionInfo_Vtbl { pub TrialPeriod: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, pub TrialPeriodUnit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut StoreDurationUnit) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStoreUninstallStorePackageResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStoreUninstallStorePackageResult { - type Vtable = IStoreUninstallStorePackageResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStoreUninstallStorePackageResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9fca39fd_126f_4cda_b801_1346b8d0a260); -} +::windows_core::imp::com_interface!(IStoreUninstallStorePackageResult, IStoreUninstallStorePackageResult_Vtbl, 0x9fca39fd_126f_4cda_b801_1346b8d0a260); #[repr(C)] #[doc(hidden)] pub struct IStoreUninstallStorePackageResult_Vtbl { @@ -933,16 +564,7 @@ pub struct IStoreUninstallStorePackageResult_Vtbl { pub ExtendedError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut StoreUninstallStorePackageStatus) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStoreVideo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStoreVideo { - type Vtable = IStoreVideo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStoreVideo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf26cb184_6f5e_4dc2_886c_3c63083c2f94); -} +::windows_core::imp::com_interface!(IStoreVideo, IStoreVideo_Vtbl, 0xf26cb184_6f5e_4dc2_886c_3c63083c2f94); #[repr(C)] #[doc(hidden)] pub struct IStoreVideo_Vtbl { @@ -957,6 +579,7 @@ pub struct IStoreVideo_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StoreAcquireLicenseResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StoreAcquireLicenseResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl StoreAcquireLicenseResult { pub fn StorePackageLicense(&self) -> ::windows_core::Result { let this = self; @@ -978,19 +601,17 @@ impl ::windows_core::RuntimeType for StoreAcquireLicenseResult { } unsafe impl ::windows_core::Interface for StoreAcquireLicenseResult { type Vtable = IStoreAcquireLicenseResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StoreAcquireLicenseResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StoreAcquireLicenseResult { const NAME: &'static str = "Windows.Services.Store.StoreAcquireLicenseResult"; } -::windows_core::imp::interface_hierarchy!(StoreAcquireLicenseResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for StoreAcquireLicenseResult {} unsafe impl ::core::marker::Sync for StoreAcquireLicenseResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StoreAppLicense(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StoreAppLicense, ::windows_core::IUnknown, ::windows_core::IInspectable); impl StoreAppLicense { pub fn SkuStoreId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1058,7 +679,7 @@ impl StoreAppLicense { } } pub fn IsDiscLicense(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsDiscLicense)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1070,19 +691,17 @@ impl ::windows_core::RuntimeType for StoreAppLicense { } unsafe impl ::windows_core::Interface for StoreAppLicense { type Vtable = IStoreAppLicense_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StoreAppLicense { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StoreAppLicense { const NAME: &'static str = "Windows.Services.Store.StoreAppLicense"; } -::windows_core::imp::interface_hierarchy!(StoreAppLicense, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for StoreAppLicense {} unsafe impl ::core::marker::Sync for StoreAppLicense {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StoreAvailability(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StoreAvailability, ::windows_core::IUnknown, ::windows_core::IInspectable); impl StoreAvailability { pub fn StoreId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1135,19 +754,17 @@ impl ::windows_core::RuntimeType for StoreAvailability { } unsafe impl ::windows_core::Interface for StoreAvailability { type Vtable = IStoreAvailability_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StoreAvailability { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StoreAvailability { const NAME: &'static str = "Windows.Services.Store.StoreAvailability"; } -::windows_core::imp::interface_hierarchy!(StoreAvailability, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for StoreAvailability {} unsafe impl ::core::marker::Sync for StoreAvailability {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StoreCanAcquireLicenseResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StoreCanAcquireLicenseResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl StoreCanAcquireLicenseResult { pub fn ExtendedError(&self) -> ::windows_core::Result<::windows_core::HRESULT> { let this = self; @@ -1176,19 +793,17 @@ impl ::windows_core::RuntimeType for StoreCanAcquireLicenseResult { } unsafe impl ::windows_core::Interface for StoreCanAcquireLicenseResult { type Vtable = IStoreCanAcquireLicenseResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StoreCanAcquireLicenseResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StoreCanAcquireLicenseResult { const NAME: &'static str = "Windows.Services.Store.StoreCanAcquireLicenseResult"; } -::windows_core::imp::interface_hierarchy!(StoreCanAcquireLicenseResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for StoreCanAcquireLicenseResult {} unsafe impl ::core::marker::Sync for StoreCanAcquireLicenseResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StoreCollectionData(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StoreCollectionData, ::windows_core::IUnknown, ::windows_core::IInspectable); impl StoreCollectionData { pub fn IsTrial(&self) -> ::windows_core::Result { let this = self; @@ -1252,19 +867,17 @@ impl ::windows_core::RuntimeType for StoreCollectionData { } unsafe impl ::windows_core::Interface for StoreCollectionData { type Vtable = IStoreCollectionData_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StoreCollectionData { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StoreCollectionData { const NAME: &'static str = "Windows.Services.Store.StoreCollectionData"; } -::windows_core::imp::interface_hierarchy!(StoreCollectionData, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for StoreCollectionData {} unsafe impl ::core::marker::Sync for StoreCollectionData {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StoreConsumableResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StoreConsumableResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl StoreConsumableResult { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -1300,19 +913,17 @@ impl ::windows_core::RuntimeType for StoreConsumableResult { } unsafe impl ::windows_core::Interface for StoreConsumableResult { type Vtable = IStoreConsumableResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StoreConsumableResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StoreConsumableResult { const NAME: &'static str = "Windows.Services.Store.StoreConsumableResult"; } -::windows_core::imp::interface_hierarchy!(StoreConsumableResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for StoreConsumableResult {} unsafe impl ::core::marker::Sync for StoreConsumableResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StoreContext(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StoreContext, ::windows_core::IUnknown, ::windows_core::IInspectable); impl StoreContext { #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] @@ -1369,61 +980,61 @@ impl StoreContext { #[cfg(feature = "Foundation_Collections")] pub fn GetStoreProductsAsync(&self, productkinds: P0, storeids: P1) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, - P1: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, + P1: ::windows_core::IntoParam>, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).GetStoreProductsAsync)(::windows_core::Interface::as_raw(this), productkinds.try_into_param()?.abi(), storeids.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).GetStoreProductsAsync)(::windows_core::Interface::as_raw(this), productkinds.into_param().abi(), storeids.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetAssociatedStoreProductsAsync(&self, productkinds: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).GetAssociatedStoreProductsAsync)(::windows_core::Interface::as_raw(this), productkinds.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).GetAssociatedStoreProductsAsync)(::windows_core::Interface::as_raw(this), productkinds.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetAssociatedStoreProductsWithPagingAsync(&self, productkinds: P0, maxitemstoretrieveperpage: u32) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).GetAssociatedStoreProductsWithPagingAsync)(::windows_core::Interface::as_raw(this), productkinds.try_into_param()?.abi(), maxitemstoretrieveperpage, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).GetAssociatedStoreProductsWithPagingAsync)(::windows_core::Interface::as_raw(this), productkinds.into_param().abi(), maxitemstoretrieveperpage, &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetUserCollectionAsync(&self, productkinds: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).GetUserCollectionAsync)(::windows_core::Interface::as_raw(this), productkinds.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).GetUserCollectionAsync)(::windows_core::Interface::as_raw(this), productkinds.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetUserCollectionWithPagingAsync(&self, productkinds: P0, maxitemstoretrieveperpage: u32) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).GetUserCollectionWithPagingAsync)(::windows_core::Interface::as_raw(this), productkinds.try_into_param()?.abi(), maxitemstoretrieveperpage, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).GetUserCollectionWithPagingAsync)(::windows_core::Interface::as_raw(this), productkinds.into_param().abi(), maxitemstoretrieveperpage, &mut result__).from_abi(result__) } } pub fn ReportConsumableFulfillmentAsync(&self, productstoreid: &::windows_core::HSTRING, quantity: u32, trackingid: ::windows_core::GUID) -> ::windows_core::Result> { @@ -1482,53 +1093,53 @@ impl StoreContext { #[cfg(feature = "Foundation_Collections")] pub fn RequestDownloadStorePackageUpdatesAsync(&self, storepackageupdates: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).RequestDownloadStorePackageUpdatesAsync)(::windows_core::Interface::as_raw(this), storepackageupdates.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).RequestDownloadStorePackageUpdatesAsync)(::windows_core::Interface::as_raw(this), storepackageupdates.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn RequestDownloadAndInstallStorePackageUpdatesAsync(&self, storepackageupdates: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).RequestDownloadAndInstallStorePackageUpdatesAsync)(::windows_core::Interface::as_raw(this), storepackageupdates.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).RequestDownloadAndInstallStorePackageUpdatesAsync)(::windows_core::Interface::as_raw(this), storepackageupdates.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn RequestDownloadAndInstallStorePackagesAsync(&self, storeids: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).RequestDownloadAndInstallStorePackagesAsync)(::windows_core::Interface::as_raw(this), storeids.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).RequestDownloadAndInstallStorePackagesAsync)(::windows_core::Interface::as_raw(this), storeids.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"ApplicationModel\"`, `\"Foundation_Collections\"`"] #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] pub fn FindStoreProductForPackageAsync(&self, productkinds: P0, package: P1) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), package.into_param().abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).FindStoreProductForPackageAsync)(::windows_core::Interface::as_raw(this), productkinds.into_param().abi(), package.into_param().abi(), &mut result__).from_abi(result__) } } pub fn CanSilentlyDownloadStorePackageUpdates(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CanSilentlyDownloadStorePackageUpdates)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1538,24 +1149,24 @@ impl StoreContext { #[cfg(feature = "Foundation_Collections")] pub fn TrySilentDownloadStorePackageUpdatesAsync(&self, storepackageupdates: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).TrySilentDownloadStorePackageUpdatesAsync)(::windows_core::Interface::as_raw(this), storepackageupdates.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn TrySilentDownloadAndInstallStorePackageUpdatesAsync(&self, storepackageupdates: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).TrySilentDownloadAndInstallStorePackageUpdatesAsync)(::windows_core::Interface::as_raw(this), storepackageupdates.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"ApplicationModel\"`"] @@ -1564,14 +1175,14 @@ impl StoreContext { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn CanAcquireStoreLicenseAsync(&self, productstoreid: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CanAcquireStoreLicenseAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(productstoreid), &mut result__).from_abi(result__) @@ -1581,20 +1192,20 @@ impl StoreContext { #[cfg(feature = "Foundation_Collections")] pub fn GetStoreProductsWithOptionsAsync(&self, productkinds: P0, storeids: P1, storeproductoptions: P2) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, - P1: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, + P1: ::windows_core::IntoParam>, P2: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), storeids.try_into_param()?.abi(), storeproductoptions.into_param().abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetAssociatedStoreQueueItemsAsync(&self) -> ::windows_core::Result>> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetAssociatedStoreQueueItemsAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1604,37 +1215,37 @@ impl StoreContext { #[cfg(feature = "Foundation_Collections")] pub fn GetStoreQueueItemsAsync(&self, storeids: P0) -> ::windows_core::Result>> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).GetStoreQueueItemsAsync)(::windows_core::Interface::as_raw(this), storeids.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn RequestDownloadAndInstallStorePackagesWithInstallOptionsAsync(&self, storeids: P0, storepackageinstalloptions: P1) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), storepackageinstalloptions.into_param().abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).RequestDownloadAndInstallStorePackagesWithInstallOptionsAsync)(::windows_core::Interface::as_raw(this), storeids.into_param().abi(), storepackageinstalloptions.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn DownloadAndInstallStorePackagesAsync(&self, storeids: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).DownloadAndInstallStorePackagesAsync)(::windows_core::Interface::as_raw(this), storeids.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"ApplicationModel\"`"] @@ -1643,14 +1254,14 @@ impl StoreContext { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RequestUninstallStorePackageByStoreIdAsync(&self, storeid: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RequestUninstallStorePackageByStoreIdAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(storeid), &mut result__).from_abi(result__) @@ -1662,21 +1273,21 @@ impl StoreContext { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn UninstallStorePackageByStoreIdAsync(&self, storeid: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).UninstallStorePackageByStoreIdAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(storeid), &mut result__).from_abi(result__) } } pub fn RequestRateAndReviewAppAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RequestRateAndReviewAppAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1686,40 +1297,40 @@ impl StoreContext { #[cfg(feature = "Foundation_Collections")] pub fn SetInstallOrderForAssociatedStoreQueueItemsAsync(&self, items: P0) -> ::windows_core::Result>> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SetInstallOrderForAssociatedStoreQueueItemsAsync)(::windows_core::Interface::as_raw(this), items.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetUserPurchaseHistoryAsync(&self, productkinds: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).GetUserPurchaseHistoryAsync)(::windows_core::Interface::as_raw(this), productkinds.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetAssociatedStoreProductsByInAppOfferTokenAsync(&self, inappoffertokens: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).GetAssociatedStoreProductsByInAppOfferTokenAsync)(::windows_core::Interface::as_raw(this), inappoffertokens.into_param().abi(), &mut result__).from_abi(result__) } } pub fn RequestPurchaseByInAppOfferTokenAsync(&self, inappoffertoken: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RequestPurchaseByInAppOfferTokenAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(inappoffertoken), &mut result__).from_abi(result__) @@ -1753,19 +1364,17 @@ impl ::windows_core::RuntimeType for StoreContext { } unsafe impl ::windows_core::Interface for StoreContext { type Vtable = IStoreContext_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StoreContext { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StoreContext { const NAME: &'static str = "Windows.Services.Store.StoreContext"; } -::windows_core::imp::interface_hierarchy!(StoreContext, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for StoreContext {} unsafe impl ::core::marker::Sync for StoreContext {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StoreImage(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StoreImage, ::windows_core::IUnknown, ::windows_core::IInspectable); impl StoreImage { pub fn Uri(&self) -> ::windows_core::Result { let this = self; @@ -1808,19 +1417,17 @@ impl ::windows_core::RuntimeType for StoreImage { } unsafe impl ::windows_core::Interface for StoreImage { type Vtable = IStoreImage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StoreImage { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StoreImage { const NAME: &'static str = "Windows.Services.Store.StoreImage"; } -::windows_core::imp::interface_hierarchy!(StoreImage, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for StoreImage {} unsafe impl ::core::marker::Sync for StoreImage {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StoreLicense(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StoreLicense, ::windows_core::IUnknown, ::windows_core::IInspectable); impl StoreLicense { pub fn SkuStoreId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1863,19 +1470,17 @@ impl ::windows_core::RuntimeType for StoreLicense { } unsafe impl ::windows_core::Interface for StoreLicense { type Vtable = IStoreLicense_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StoreLicense { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StoreLicense { const NAME: &'static str = "Windows.Services.Store.StoreLicense"; } -::windows_core::imp::interface_hierarchy!(StoreLicense, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for StoreLicense {} unsafe impl ::core::marker::Sync for StoreLicense {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StorePackageInstallOptions(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StorePackageInstallOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); impl StorePackageInstallOptions { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1901,22 +1506,21 @@ impl ::windows_core::RuntimeType for StorePackageInstallOptions { } unsafe impl ::windows_core::Interface for StorePackageInstallOptions { type Vtable = IStorePackageInstallOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StorePackageInstallOptions { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StorePackageInstallOptions { const NAME: &'static str = "Windows.Services.Store.StorePackageInstallOptions"; } -::windows_core::imp::interface_hierarchy!(StorePackageInstallOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for StorePackageInstallOptions {} unsafe impl ::core::marker::Sync for StorePackageInstallOptions {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StorePackageLicense(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StorePackageLicense, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(StorePackageLicense, super::super::Foundation::IClosable); impl StorePackageLicense { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn LicenseLost(&self, handler: P0) -> ::windows_core::Result @@ -1959,20 +1563,17 @@ impl ::windows_core::RuntimeType for StorePackageLicense { } unsafe impl ::windows_core::Interface for StorePackageLicense { type Vtable = IStorePackageLicense_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StorePackageLicense { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StorePackageLicense { const NAME: &'static str = "Windows.Services.Store.StorePackageLicense"; } -::windows_core::imp::interface_hierarchy!(StorePackageLicense, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for StorePackageLicense {} unsafe impl ::core::marker::Send for StorePackageLicense {} unsafe impl ::core::marker::Sync for StorePackageLicense {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StorePackageUpdate(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StorePackageUpdate, ::windows_core::IUnknown, ::windows_core::IInspectable); impl StorePackageUpdate { #[doc = "Required features: `\"ApplicationModel\"`"] #[cfg(feature = "ApplicationModel")] @@ -1996,19 +1597,17 @@ impl ::windows_core::RuntimeType for StorePackageUpdate { } unsafe impl ::windows_core::Interface for StorePackageUpdate { type Vtable = IStorePackageUpdate_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StorePackageUpdate { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StorePackageUpdate { const NAME: &'static str = "Windows.Services.Store.StorePackageUpdate"; } -::windows_core::imp::interface_hierarchy!(StorePackageUpdate, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for StorePackageUpdate {} unsafe impl ::core::marker::Sync for StorePackageUpdate {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StorePackageUpdateResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StorePackageUpdateResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl StorePackageUpdateResult { pub fn OverallState(&self) -> ::windows_core::Result { let this = self; @@ -2029,7 +1628,7 @@ impl StorePackageUpdateResult { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn StoreQueueItems(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).StoreQueueItems)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2041,19 +1640,17 @@ impl ::windows_core::RuntimeType for StorePackageUpdateResult { } unsafe impl ::windows_core::Interface for StorePackageUpdateResult { type Vtable = IStorePackageUpdateResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StorePackageUpdateResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StorePackageUpdateResult { const NAME: &'static str = "Windows.Services.Store.StorePackageUpdateResult"; } -::windows_core::imp::interface_hierarchy!(StorePackageUpdateResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for StorePackageUpdateResult {} unsafe impl ::core::marker::Sync for StorePackageUpdateResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StorePrice(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StorePrice, ::windows_core::IUnknown, ::windows_core::IInspectable); impl StorePrice { pub fn FormattedBasePrice(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -2098,21 +1695,21 @@ impl StorePrice { } } pub fn UnformattedBasePrice(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).UnformattedBasePrice)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn UnformattedPrice(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).UnformattedPrice)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn UnformattedRecurrencePrice(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).UnformattedRecurrencePrice)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2124,19 +1721,17 @@ impl ::windows_core::RuntimeType for StorePrice { } unsafe impl ::windows_core::Interface for StorePrice { type Vtable = IStorePrice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StorePrice { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StorePrice { const NAME: &'static str = "Windows.Services.Store.StorePrice"; } -::windows_core::imp::interface_hierarchy!(StorePrice, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for StorePrice {} unsafe impl ::core::marker::Sync for StorePrice {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StoreProduct(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StoreProduct, ::windows_core::IUnknown, ::windows_core::IInspectable); impl StoreProduct { pub fn StoreId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -2281,19 +1876,17 @@ impl ::windows_core::RuntimeType for StoreProduct { } unsafe impl ::windows_core::Interface for StoreProduct { type Vtable = IStoreProduct_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StoreProduct { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StoreProduct { const NAME: &'static str = "Windows.Services.Store.StoreProduct"; } -::windows_core::imp::interface_hierarchy!(StoreProduct, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for StoreProduct {} unsafe impl ::core::marker::Sync for StoreProduct {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StoreProductOptions(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StoreProductOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); impl StoreProductOptions { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2317,19 +1910,17 @@ impl ::windows_core::RuntimeType for StoreProductOptions { } unsafe impl ::windows_core::Interface for StoreProductOptions { type Vtable = IStoreProductOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StoreProductOptions { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StoreProductOptions { const NAME: &'static str = "Windows.Services.Store.StoreProductOptions"; } -::windows_core::imp::interface_hierarchy!(StoreProductOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for StoreProductOptions {} unsafe impl ::core::marker::Sync for StoreProductOptions {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StoreProductPagedQueryResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StoreProductPagedQueryResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl StoreProductPagedQueryResult { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -2367,19 +1958,17 @@ impl ::windows_core::RuntimeType for StoreProductPagedQueryResult { } unsafe impl ::windows_core::Interface for StoreProductPagedQueryResult { type Vtable = IStoreProductPagedQueryResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StoreProductPagedQueryResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StoreProductPagedQueryResult { const NAME: &'static str = "Windows.Services.Store.StoreProductPagedQueryResult"; } -::windows_core::imp::interface_hierarchy!(StoreProductPagedQueryResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for StoreProductPagedQueryResult {} unsafe impl ::core::marker::Sync for StoreProductPagedQueryResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StoreProductQueryResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StoreProductQueryResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl StoreProductQueryResult { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -2403,19 +1992,17 @@ impl ::windows_core::RuntimeType for StoreProductQueryResult { } unsafe impl ::windows_core::Interface for StoreProductQueryResult { type Vtable = IStoreProductQueryResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StoreProductQueryResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StoreProductQueryResult { const NAME: &'static str = "Windows.Services.Store.StoreProductQueryResult"; } -::windows_core::imp::interface_hierarchy!(StoreProductQueryResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for StoreProductQueryResult {} unsafe impl ::core::marker::Sync for StoreProductQueryResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StoreProductResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StoreProductResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl StoreProductResult { pub fn Product(&self) -> ::windows_core::Result { let this = self; @@ -2437,19 +2024,17 @@ impl ::windows_core::RuntimeType for StoreProductResult { } unsafe impl ::windows_core::Interface for StoreProductResult { type Vtable = IStoreProductResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StoreProductResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StoreProductResult { const NAME: &'static str = "Windows.Services.Store.StoreProductResult"; } -::windows_core::imp::interface_hierarchy!(StoreProductResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for StoreProductResult {} unsafe impl ::core::marker::Sync for StoreProductResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StorePurchaseProperties(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StorePurchaseProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); impl StorePurchaseProperties { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2497,19 +2082,17 @@ impl ::windows_core::RuntimeType for StorePurchaseProperties { } unsafe impl ::windows_core::Interface for StorePurchaseProperties { type Vtable = IStorePurchaseProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StorePurchaseProperties { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StorePurchaseProperties { const NAME: &'static str = "Windows.Services.Store.StorePurchaseProperties"; } -::windows_core::imp::interface_hierarchy!(StorePurchaseProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for StorePurchaseProperties {} unsafe impl ::core::marker::Sync for StorePurchaseProperties {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StorePurchaseResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StorePurchaseResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl StorePurchaseResult { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -2531,19 +2114,17 @@ impl ::windows_core::RuntimeType for StorePurchaseResult { } unsafe impl ::windows_core::Interface for StorePurchaseResult { type Vtable = IStorePurchaseResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StorePurchaseResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StorePurchaseResult { const NAME: &'static str = "Windows.Services.Store.StorePurchaseResult"; } -::windows_core::imp::interface_hierarchy!(StorePurchaseResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for StorePurchaseResult {} unsafe impl ::core::marker::Sync for StorePurchaseResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StoreQueueItem(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StoreQueueItem, ::windows_core::IUnknown, ::windows_core::IInspectable); impl StoreQueueItem { pub fn ProductId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -2602,21 +2183,21 @@ impl StoreQueueItem { unsafe { (::windows_core::Interface::vtable(this).RemoveStatusChanged)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn CancelInstallAsync(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CancelInstallAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PauseInstallAsync(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PauseInstallAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ResumeInstallAsync(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ResumeInstallAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2628,19 +2209,17 @@ impl ::windows_core::RuntimeType for StoreQueueItem { } unsafe impl ::windows_core::Interface for StoreQueueItem { type Vtable = IStoreQueueItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StoreQueueItem { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StoreQueueItem { const NAME: &'static str = "Windows.Services.Store.StoreQueueItem"; } -::windows_core::imp::interface_hierarchy!(StoreQueueItem, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for StoreQueueItem {} unsafe impl ::core::marker::Sync for StoreQueueItem {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StoreQueueItemCompletedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StoreQueueItemCompletedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl StoreQueueItemCompletedEventArgs { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -2655,19 +2234,17 @@ impl ::windows_core::RuntimeType for StoreQueueItemCompletedEventArgs { } unsafe impl ::windows_core::Interface for StoreQueueItemCompletedEventArgs { type Vtable = IStoreQueueItemCompletedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StoreQueueItemCompletedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StoreQueueItemCompletedEventArgs { const NAME: &'static str = "Windows.Services.Store.StoreQueueItemCompletedEventArgs"; } -::windows_core::imp::interface_hierarchy!(StoreQueueItemCompletedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for StoreQueueItemCompletedEventArgs {} unsafe impl ::core::marker::Sync for StoreQueueItemCompletedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StoreQueueItemStatus(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StoreQueueItemStatus, ::windows_core::IUnknown, ::windows_core::IInspectable); impl StoreQueueItemStatus { pub fn PackageInstallState(&self) -> ::windows_core::Result { let this = self; @@ -2703,19 +2280,17 @@ impl ::windows_core::RuntimeType for StoreQueueItemStatus { } unsafe impl ::windows_core::Interface for StoreQueueItemStatus { type Vtable = IStoreQueueItemStatus_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StoreQueueItemStatus { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StoreQueueItemStatus { const NAME: &'static str = "Windows.Services.Store.StoreQueueItemStatus"; } -::windows_core::imp::interface_hierarchy!(StoreQueueItemStatus, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for StoreQueueItemStatus {} unsafe impl ::core::marker::Sync for StoreQueueItemStatus {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StoreRateAndReviewResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StoreRateAndReviewResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl StoreRateAndReviewResult { pub fn ExtendedError(&self) -> ::windows_core::Result<::windows_core::HRESULT> { let this = self; @@ -2751,14 +2326,11 @@ impl ::windows_core::RuntimeType for StoreRateAndReviewResult { } unsafe impl ::windows_core::Interface for StoreRateAndReviewResult { type Vtable = IStoreRateAndReviewResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StoreRateAndReviewResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StoreRateAndReviewResult { const NAME: &'static str = "Windows.Services.Store.StoreRateAndReviewResult"; } -::windows_core::imp::interface_hierarchy!(StoreRateAndReviewResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for StoreRateAndReviewResult {} unsafe impl ::core::marker::Sync for StoreRateAndReviewResult {} pub struct StoreRequestHelper; @@ -2784,6 +2356,7 @@ impl ::windows_core::RuntimeName for StoreRequestHelper { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StoreSendRequestResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StoreSendRequestResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl StoreSendRequestResult { pub fn Response(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -2802,7 +2375,7 @@ impl StoreSendRequestResult { #[doc = "Required features: `\"Web_Http\"`"] #[cfg(feature = "Web_Http")] pub fn HttpStatusCode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).HttpStatusCode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2814,19 +2387,17 @@ impl ::windows_core::RuntimeType for StoreSendRequestResult { } unsafe impl ::windows_core::Interface for StoreSendRequestResult { type Vtable = IStoreSendRequestResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StoreSendRequestResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StoreSendRequestResult { const NAME: &'static str = "Windows.Services.Store.StoreSendRequestResult"; } -::windows_core::imp::interface_hierarchy!(StoreSendRequestResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for StoreSendRequestResult {} unsafe impl ::core::marker::Sync for StoreSendRequestResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StoreSku(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StoreSku, ::windows_core::IUnknown, ::windows_core::IInspectable); impl StoreSku { pub fn StoreId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -2978,19 +2549,17 @@ impl ::windows_core::RuntimeType for StoreSku { } unsafe impl ::windows_core::Interface for StoreSku { type Vtable = IStoreSku_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StoreSku { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StoreSku { const NAME: &'static str = "Windows.Services.Store.StoreSku"; } -::windows_core::imp::interface_hierarchy!(StoreSku, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for StoreSku {} unsafe impl ::core::marker::Sync for StoreSku {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StoreSubscriptionInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StoreSubscriptionInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl StoreSubscriptionInfo { pub fn BillingPeriod(&self) -> ::windows_core::Result { let this = self; @@ -3033,19 +2602,17 @@ impl ::windows_core::RuntimeType for StoreSubscriptionInfo { } unsafe impl ::windows_core::Interface for StoreSubscriptionInfo { type Vtable = IStoreSubscriptionInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StoreSubscriptionInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StoreSubscriptionInfo { const NAME: &'static str = "Windows.Services.Store.StoreSubscriptionInfo"; } -::windows_core::imp::interface_hierarchy!(StoreSubscriptionInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for StoreSubscriptionInfo {} unsafe impl ::core::marker::Sync for StoreSubscriptionInfo {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StoreUninstallStorePackageResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StoreUninstallStorePackageResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl StoreUninstallStorePackageResult { pub fn ExtendedError(&self) -> ::windows_core::Result<::windows_core::HRESULT> { let this = self; @@ -3067,19 +2634,17 @@ impl ::windows_core::RuntimeType for StoreUninstallStorePackageResult { } unsafe impl ::windows_core::Interface for StoreUninstallStorePackageResult { type Vtable = IStoreUninstallStorePackageResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StoreUninstallStorePackageResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StoreUninstallStorePackageResult { const NAME: &'static str = "Windows.Services.Store.StoreUninstallStorePackageResult"; } -::windows_core::imp::interface_hierarchy!(StoreUninstallStorePackageResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for StoreUninstallStorePackageResult {} unsafe impl ::core::marker::Sync for StoreUninstallStorePackageResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StoreVideo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StoreVideo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl StoreVideo { pub fn Uri(&self) -> ::windows_core::Result { let this = self; @@ -3129,14 +2694,11 @@ impl ::windows_core::RuntimeType for StoreVideo { } unsafe impl ::windows_core::Interface for StoreVideo { type Vtable = IStoreVideo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StoreVideo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StoreVideo { const NAME: &'static str = "Windows.Services.Store.StoreVideo"; } -::windows_core::imp::interface_hierarchy!(StoreVideo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for StoreVideo {} unsafe impl ::core::marker::Sync for StoreVideo {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Services/TargetedContent/mod.rs b/crates/libs/windows/src/Windows/Services/TargetedContent/mod.rs index 956d1a4ce8..db4db9d06e 100644 --- a/crates/libs/windows/src/Windows/Services/TargetedContent/mod.rs +++ b/crates/libs/windows/src/Windows/Services/TargetedContent/mod.rs @@ -1,45 +1,18 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITargetedContentAction(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITargetedContentAction { - type Vtable = ITargetedContentAction_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITargetedContentAction { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd75b691e_6cd6_4ca0_9d8f_4728b0b7e6b6); -} +::windows_core::imp::com_interface!(ITargetedContentAction, ITargetedContentAction_Vtbl, 0xd75b691e_6cd6_4ca0_9d8f_4728b0b7e6b6); #[repr(C)] #[doc(hidden)] pub struct ITargetedContentAction_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub InvokeAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITargetedContentAvailabilityChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITargetedContentAvailabilityChangedEventArgs { - type Vtable = ITargetedContentAvailabilityChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITargetedContentAvailabilityChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe0f59d26_5927_4450_965c_1ceb7becde65); -} +::windows_core::imp::com_interface!(ITargetedContentAvailabilityChangedEventArgs, ITargetedContentAvailabilityChangedEventArgs_Vtbl, 0xe0f59d26_5927_4450_965c_1ceb7becde65); #[repr(C)] #[doc(hidden)] pub struct ITargetedContentAvailabilityChangedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITargetedContentChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITargetedContentChangedEventArgs { - type Vtable = ITargetedContentChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITargetedContentChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x99d488c9_587e_4586_8ef7_b54ca9453a16); -} +::windows_core::imp::com_interface!(ITargetedContentChangedEventArgs, ITargetedContentChangedEventArgs_Vtbl, 0x99d488c9_587e_4586_8ef7_b54ca9453a16); #[repr(C)] #[doc(hidden)] pub struct ITargetedContentChangedEventArgs_Vtbl { @@ -47,16 +20,7 @@ pub struct ITargetedContentChangedEventArgs_Vtbl { pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub HasPreviousContentExpired: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITargetedContentCollection(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITargetedContentCollection { - type Vtable = ITargetedContentCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITargetedContentCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2d4b66c5_f163_44ba_9f6e_e1a4c2bb559d); -} +::windows_core::imp::com_interface!(ITargetedContentCollection, ITargetedContentCollection_Vtbl, 0x2d4b66c5_f163_44ba_9f6e_e1a4c2bb559d); #[repr(C)] #[doc(hidden)] pub struct ITargetedContentCollection_Vtbl { @@ -78,16 +42,7 @@ pub struct ITargetedContentCollection_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Items: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITargetedContentContainer(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITargetedContentContainer { - type Vtable = ITargetedContentContainer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITargetedContentContainer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbc2494c9_8837_47c2_850f_d79d64595926); -} +::windows_core::imp::com_interface!(ITargetedContentContainer, ITargetedContentContainer_Vtbl, 0xbc2494c9_8837_47c2_850f_d79d64595926); #[repr(C)] #[doc(hidden)] pub struct ITargetedContentContainer_Vtbl { @@ -98,32 +53,14 @@ pub struct ITargetedContentContainer_Vtbl { pub Content: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SelectSingleObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITargetedContentContainerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITargetedContentContainerStatics { - type Vtable = ITargetedContentContainerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITargetedContentContainerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5b47e7fb_2140_4c1f_a736_c59583f227d8); -} +::windows_core::imp::com_interface!(ITargetedContentContainerStatics, ITargetedContentContainerStatics_Vtbl, 0x5b47e7fb_2140_4c1f_a736_c59583f227d8); #[repr(C)] #[doc(hidden)] pub struct ITargetedContentContainerStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, contentid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITargetedContentImage(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITargetedContentImage { - type Vtable = ITargetedContentImage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITargetedContentImage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa7a585d9_779f_4b1e_bbb1_8eaf53fbeab2); -} +::windows_core::imp::com_interface!(ITargetedContentImage, ITargetedContentImage_Vtbl, 0xa7a585d9_779f_4b1e_bbb1_8eaf53fbeab2); #[repr(C)] #[doc(hidden)] pub struct ITargetedContentImage_Vtbl { @@ -131,16 +68,7 @@ pub struct ITargetedContentImage_Vtbl { pub Height: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, pub Width: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITargetedContentItem(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITargetedContentItem { - type Vtable = ITargetedContentItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITargetedContentItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x38168dc4_276c_4c32_96ba_565c6e406e74); -} +::windows_core::imp::com_interface!(ITargetedContentItem, ITargetedContentItem_Vtbl, 0x38168dc4_276c_4c32_96ba_565c6e406e74); #[repr(C)] #[doc(hidden)] pub struct ITargetedContentItem_Vtbl { @@ -158,16 +86,7 @@ pub struct ITargetedContentItem_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Collections: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITargetedContentItemState(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITargetedContentItemState { - type Vtable = ITargetedContentItemState_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITargetedContentItemState { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x73935454_4c65_4b47_a441_472de53c79b6); -} +::windows_core::imp::com_interface!(ITargetedContentItemState, ITargetedContentItemState_Vtbl, 0x73935454_4c65_4b47_a441_472de53c79b6); #[repr(C)] #[doc(hidden)] pub struct ITargetedContentItemState_Vtbl { @@ -175,16 +94,7 @@ pub struct ITargetedContentItemState_Vtbl { pub ShouldDisplay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub AppInstallationState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut TargetedContentAppInstallationState) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITargetedContentObject(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITargetedContentObject { - type Vtable = ITargetedContentObject_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITargetedContentObject { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x041d7969_2212_42d1_9dfa_88a8e3033aa3); -} +::windows_core::imp::com_interface!(ITargetedContentObject, ITargetedContentObject_Vtbl, 0x041d7969_2212_42d1_9dfa_88a8e3033aa3); #[repr(C)] #[doc(hidden)] pub struct ITargetedContentObject_Vtbl { @@ -194,32 +104,14 @@ pub struct ITargetedContentObject_Vtbl { pub Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITargetedContentStateChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITargetedContentStateChangedEventArgs { - type Vtable = ITargetedContentStateChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITargetedContentStateChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9a1cef3d_8073_4416_8df2_546835a6414f); -} +::windows_core::imp::com_interface!(ITargetedContentStateChangedEventArgs, ITargetedContentStateChangedEventArgs_Vtbl, 0x9a1cef3d_8073_4416_8df2_546835a6414f); #[repr(C)] #[doc(hidden)] pub struct ITargetedContentStateChangedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITargetedContentSubscription(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITargetedContentSubscription { - type Vtable = ITargetedContentSubscription_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITargetedContentSubscription { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x882c2c49_c652_4c7a_acad_1f7fa2986c73); -} +::windows_core::imp::com_interface!(ITargetedContentSubscription, ITargetedContentSubscription_Vtbl, 0x882c2c49_c652_4c7a_acad_1f7fa2986c73); #[repr(C)] #[doc(hidden)] pub struct ITargetedContentSubscription_Vtbl { @@ -233,16 +125,7 @@ pub struct ITargetedContentSubscription_Vtbl { pub StateChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveStateChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITargetedContentSubscriptionOptions(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITargetedContentSubscriptionOptions { - type Vtable = ITargetedContentSubscriptionOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITargetedContentSubscriptionOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x61ee6ad0_2c83_421b_8467_413eaf1aeb97); -} +::windows_core::imp::com_interface!(ITargetedContentSubscriptionOptions, ITargetedContentSubscriptionOptions_Vtbl, 0x61ee6ad0_2c83_421b_8467_413eaf1aeb97); #[repr(C)] #[doc(hidden)] pub struct ITargetedContentSubscriptionOptions_Vtbl { @@ -260,16 +143,7 @@ pub struct ITargetedContentSubscriptionOptions_Vtbl { LocalFilters: usize, pub Update: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITargetedContentSubscriptionStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITargetedContentSubscriptionStatics { - type Vtable = ITargetedContentSubscriptionStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITargetedContentSubscriptionStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfaddfe80_360d_4916_b53c_7ea27090d02a); -} +::windows_core::imp::com_interface!(ITargetedContentSubscriptionStatics, ITargetedContentSubscriptionStatics_Vtbl, 0xfaddfe80_360d_4916_b53c_7ea27090d02a); #[repr(C)] #[doc(hidden)] pub struct ITargetedContentSubscriptionStatics_Vtbl { @@ -277,16 +151,7 @@ pub struct ITargetedContentSubscriptionStatics_Vtbl { pub GetAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, subscriptionid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetOptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, subscriptionid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITargetedContentValue(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITargetedContentValue { - type Vtable = ITargetedContentValue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITargetedContentValue { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaafde4b3_4215_4bf8_867f_43f04865f9bf); -} +::windows_core::imp::com_interface!(ITargetedContentValue, ITargetedContentValue_Vtbl, 0xaafde4b3_4215_4bf8_867f_43f04865f9bf); #[repr(C)] #[doc(hidden)] pub struct ITargetedContentValue_Vtbl { @@ -335,6 +200,7 @@ pub struct ITargetedContentValue_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct TargetedContentAction(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(TargetedContentAction, ::windows_core::IUnknown, ::windows_core::IInspectable); impl TargetedContentAction { pub fn InvokeAsync(&self) -> ::windows_core::Result { let this = self; @@ -349,19 +215,17 @@ impl ::windows_core::RuntimeType for TargetedContentAction { } unsafe impl ::windows_core::Interface for TargetedContentAction { type Vtable = ITargetedContentAction_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TargetedContentAction { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for TargetedContentAction { const NAME: &'static str = "Windows.Services.TargetedContent.TargetedContentAction"; } -::windows_core::imp::interface_hierarchy!(TargetedContentAction, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for TargetedContentAction {} unsafe impl ::core::marker::Sync for TargetedContentAction {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct TargetedContentAvailabilityChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(TargetedContentAvailabilityChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl TargetedContentAvailabilityChangedEventArgs { pub fn GetDeferral(&self) -> ::windows_core::Result { let this = self; @@ -376,19 +240,17 @@ impl ::windows_core::RuntimeType for TargetedContentAvailabilityChangedEventArgs } unsafe impl ::windows_core::Interface for TargetedContentAvailabilityChangedEventArgs { type Vtable = ITargetedContentAvailabilityChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TargetedContentAvailabilityChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for TargetedContentAvailabilityChangedEventArgs { const NAME: &'static str = "Windows.Services.TargetedContent.TargetedContentAvailabilityChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(TargetedContentAvailabilityChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for TargetedContentAvailabilityChangedEventArgs {} unsafe impl ::core::marker::Sync for TargetedContentAvailabilityChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct TargetedContentChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(TargetedContentChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl TargetedContentChangedEventArgs { pub fn GetDeferral(&self) -> ::windows_core::Result { let this = self; @@ -410,19 +272,17 @@ impl ::windows_core::RuntimeType for TargetedContentChangedEventArgs { } unsafe impl ::windows_core::Interface for TargetedContentChangedEventArgs { type Vtable = ITargetedContentChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TargetedContentChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for TargetedContentChangedEventArgs { const NAME: &'static str = "Windows.Services.TargetedContent.TargetedContentChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(TargetedContentChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for TargetedContentChangedEventArgs {} unsafe impl ::core::marker::Sync for TargetedContentChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct TargetedContentCollection(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(TargetedContentCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); impl TargetedContentCollection { pub fn Id(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -479,19 +339,17 @@ impl ::windows_core::RuntimeType for TargetedContentCollection { } unsafe impl ::windows_core::Interface for TargetedContentCollection { type Vtable = ITargetedContentCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TargetedContentCollection { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for TargetedContentCollection { const NAME: &'static str = "Windows.Services.TargetedContent.TargetedContentCollection"; } -::windows_core::imp::interface_hierarchy!(TargetedContentCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for TargetedContentCollection {} unsafe impl ::core::marker::Sync for TargetedContentCollection {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct TargetedContentContainer(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(TargetedContentContainer, ::windows_core::IUnknown, ::windows_core::IInspectable); impl TargetedContentContainer { pub fn Id(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -545,14 +403,11 @@ impl ::windows_core::RuntimeType for TargetedContentContainer { } unsafe impl ::windows_core::Interface for TargetedContentContainer { type Vtable = ITargetedContentContainer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TargetedContentContainer { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for TargetedContentContainer { const NAME: &'static str = "Windows.Services.TargetedContent.TargetedContentContainer"; } -::windows_core::imp::interface_hierarchy!(TargetedContentContainer, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for TargetedContentContainer {} unsafe impl ::core::marker::Sync for TargetedContentContainer {} #[doc = "Required features: `\"Storage_Streams\"`"] @@ -561,6 +416,10 @@ unsafe impl ::core::marker::Sync for TargetedContentContainer {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct TargetedContentFile(::windows_core::IUnknown); #[cfg(feature = "Storage_Streams")] +::windows_core::imp::interface_hierarchy!(TargetedContentFile, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Storage_Streams")] +::windows_core::imp::required_hierarchy!(TargetedContentFile, super::super::Storage::Streams::IRandomAccessStreamReference); +#[cfg(feature = "Storage_Streams")] impl TargetedContentFile { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] @@ -579,31 +438,27 @@ impl ::windows_core::RuntimeType for TargetedContentFile { #[cfg(feature = "Storage_Streams")] unsafe impl ::windows_core::Interface for TargetedContentFile { type Vtable = super::super::Storage::Streams::IRandomAccessStreamReference_Vtbl; -} -#[cfg(feature = "Storage_Streams")] -unsafe impl ::windows_core::ComInterface for TargetedContentFile { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "Storage_Streams")] impl ::windows_core::RuntimeName for TargetedContentFile { const NAME: &'static str = "Windows.Services.TargetedContent.TargetedContentFile"; } #[cfg(feature = "Storage_Streams")] -::windows_core::imp::interface_hierarchy!(TargetedContentFile, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Storage_Streams")] -impl ::windows_core::CanTryInto for TargetedContentFile {} -#[cfg(feature = "Storage_Streams")] unsafe impl ::core::marker::Send for TargetedContentFile {} #[cfg(feature = "Storage_Streams")] unsafe impl ::core::marker::Sync for TargetedContentFile {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct TargetedContentImage(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(TargetedContentImage, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Storage_Streams")] +::windows_core::imp::required_hierarchy!(TargetedContentImage, super::super::Storage::Streams::IRandomAccessStreamReference); impl TargetedContentImage { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn OpenReadAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OpenReadAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -629,21 +484,17 @@ impl ::windows_core::RuntimeType for TargetedContentImage { } unsafe impl ::windows_core::Interface for TargetedContentImage { type Vtable = ITargetedContentImage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TargetedContentImage { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for TargetedContentImage { const NAME: &'static str = "Windows.Services.TargetedContent.TargetedContentImage"; } -::windows_core::imp::interface_hierarchy!(TargetedContentImage, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Storage_Streams")] -impl ::windows_core::CanTryInto for TargetedContentImage {} unsafe impl ::core::marker::Send for TargetedContentImage {} unsafe impl ::core::marker::Sync for TargetedContentImage {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct TargetedContentItem(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(TargetedContentItem, ::windows_core::IUnknown, ::windows_core::IInspectable); impl TargetedContentItem { pub fn Path(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -691,19 +542,17 @@ impl ::windows_core::RuntimeType for TargetedContentItem { } unsafe impl ::windows_core::Interface for TargetedContentItem { type Vtable = ITargetedContentItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TargetedContentItem { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for TargetedContentItem { const NAME: &'static str = "Windows.Services.TargetedContent.TargetedContentItem"; } -::windows_core::imp::interface_hierarchy!(TargetedContentItem, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for TargetedContentItem {} unsafe impl ::core::marker::Sync for TargetedContentItem {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct TargetedContentItemState(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(TargetedContentItemState, ::windows_core::IUnknown, ::windows_core::IInspectable); impl TargetedContentItemState { pub fn ShouldDisplay(&self) -> ::windows_core::Result { let this = self; @@ -725,19 +574,17 @@ impl ::windows_core::RuntimeType for TargetedContentItemState { } unsafe impl ::windows_core::Interface for TargetedContentItemState { type Vtable = ITargetedContentItemState_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TargetedContentItemState { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for TargetedContentItemState { const NAME: &'static str = "Windows.Services.TargetedContent.TargetedContentItemState"; } -::windows_core::imp::interface_hierarchy!(TargetedContentItemState, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for TargetedContentItemState {} unsafe impl ::core::marker::Sync for TargetedContentItemState {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct TargetedContentObject(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(TargetedContentObject, ::windows_core::IUnknown, ::windows_core::IInspectable); impl TargetedContentObject { pub fn ObjectKind(&self) -> ::windows_core::Result { let this = self; @@ -773,19 +620,17 @@ impl ::windows_core::RuntimeType for TargetedContentObject { } unsafe impl ::windows_core::Interface for TargetedContentObject { type Vtable = ITargetedContentObject_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TargetedContentObject { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for TargetedContentObject { const NAME: &'static str = "Windows.Services.TargetedContent.TargetedContentObject"; } -::windows_core::imp::interface_hierarchy!(TargetedContentObject, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for TargetedContentObject {} unsafe impl ::core::marker::Sync for TargetedContentObject {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct TargetedContentStateChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(TargetedContentStateChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl TargetedContentStateChangedEventArgs { pub fn GetDeferral(&self) -> ::windows_core::Result { let this = self; @@ -800,19 +645,17 @@ impl ::windows_core::RuntimeType for TargetedContentStateChangedEventArgs { } unsafe impl ::windows_core::Interface for TargetedContentStateChangedEventArgs { type Vtable = ITargetedContentStateChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TargetedContentStateChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for TargetedContentStateChangedEventArgs { const NAME: &'static str = "Windows.Services.TargetedContent.TargetedContentStateChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(TargetedContentStateChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for TargetedContentStateChangedEventArgs {} unsafe impl ::core::marker::Sync for TargetedContentStateChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct TargetedContentSubscription(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(TargetedContentSubscription, ::windows_core::IUnknown, ::windows_core::IInspectable); impl TargetedContentSubscription { pub fn Id(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -893,19 +736,17 @@ impl ::windows_core::RuntimeType for TargetedContentSubscription { } unsafe impl ::windows_core::Interface for TargetedContentSubscription { type Vtable = ITargetedContentSubscription_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TargetedContentSubscription { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for TargetedContentSubscription { const NAME: &'static str = "Windows.Services.TargetedContent.TargetedContentSubscription"; } -::windows_core::imp::interface_hierarchy!(TargetedContentSubscription, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for TargetedContentSubscription {} unsafe impl ::core::marker::Sync for TargetedContentSubscription {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct TargetedContentSubscriptionOptions(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(TargetedContentSubscriptionOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); impl TargetedContentSubscriptionOptions { pub fn SubscriptionId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -953,19 +794,17 @@ impl ::windows_core::RuntimeType for TargetedContentSubscriptionOptions { } unsafe impl ::windows_core::Interface for TargetedContentSubscriptionOptions { type Vtable = ITargetedContentSubscriptionOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TargetedContentSubscriptionOptions { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for TargetedContentSubscriptionOptions { const NAME: &'static str = "Windows.Services.TargetedContent.TargetedContentSubscriptionOptions"; } -::windows_core::imp::interface_hierarchy!(TargetedContentSubscriptionOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for TargetedContentSubscriptionOptions {} unsafe impl ::core::marker::Sync for TargetedContentSubscriptionOptions {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct TargetedContentValue(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(TargetedContentValue, ::windows_core::IUnknown, ::windows_core::IInspectable); impl TargetedContentValue { pub fn ValueKind(&self) -> ::windows_core::Result { let this = self; @@ -1101,14 +940,11 @@ impl ::windows_core::RuntimeType for TargetedContentValue { } unsafe impl ::windows_core::Interface for TargetedContentValue { type Vtable = ITargetedContentValue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TargetedContentValue { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for TargetedContentValue { const NAME: &'static str = "Windows.Services.TargetedContent.TargetedContentValue"; } -::windows_core::imp::interface_hierarchy!(TargetedContentValue, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for TargetedContentValue {} unsafe impl ::core::marker::Sync for TargetedContentValue {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Storage/AccessCache/impl.rs b/crates/libs/windows/src/Windows/Storage/AccessCache/impl.rs index d83c986dc8..7e357e5cc2 100644 --- a/crates/libs/windows/src/Windows/Storage/AccessCache/impl.rs +++ b/crates/libs/windows/src/Windows/Storage/AccessCache/impl.rs @@ -207,6 +207,6 @@ impl IStorageItemAccessList_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/Storage/AccessCache/mod.rs b/crates/libs/windows/src/Windows/Storage/AccessCache/mod.rs index c9ae1a2ff7..e875e66da9 100644 --- a/crates/libs/windows/src/Windows/Storage/AccessCache/mod.rs +++ b/crates/libs/windows/src/Windows/Storage/AccessCache/mod.rs @@ -1,29 +1,11 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IItemRemovedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IItemRemovedEventArgs { - type Vtable = IItemRemovedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IItemRemovedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x59677e5c_55be_4c66_ba66_5eaea79d2631); -} +::windows_core::imp::com_interface!(IItemRemovedEventArgs, IItemRemovedEventArgs_Vtbl, 0x59677e5c_55be_4c66_ba66_5eaea79d2631); #[repr(C)] #[doc(hidden)] pub struct IItemRemovedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub RemovedEntry: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageApplicationPermissionsStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorageApplicationPermissionsStatics { - type Vtable = IStorageApplicationPermissionsStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageApplicationPermissionsStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4391dfaa_d033_48f9_8060_3ec847d2e3f1); -} +::windows_core::imp::com_interface!(IStorageApplicationPermissionsStatics, IStorageApplicationPermissionsStatics_Vtbl, 0x4391dfaa_d033_48f9_8060_3ec847d2e3f1); #[repr(C)] #[doc(hidden)] pub struct IStorageApplicationPermissionsStatics_Vtbl { @@ -31,16 +13,7 @@ pub struct IStorageApplicationPermissionsStatics_Vtbl { pub FutureAccessList: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub MostRecentlyUsedList: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageApplicationPermissionsStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorageApplicationPermissionsStatics2 { - type Vtable = IStorageApplicationPermissionsStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageApplicationPermissionsStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x072716ec_aa05_4294_9a11_1a3d04519ad0); -} +::windows_core::imp::com_interface!(IStorageApplicationPermissionsStatics2, IStorageApplicationPermissionsStatics2_Vtbl, 0x072716ec_aa05_4294_9a11_1a3d04519ad0); #[repr(C)] #[doc(hidden)] pub struct IStorageApplicationPermissionsStatics2_Vtbl { @@ -54,43 +27,42 @@ pub struct IStorageApplicationPermissionsStatics2_Vtbl { #[cfg(not(feature = "System"))] GetMostRecentlyUsedListForUser: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageItemAccessList(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IStorageItemAccessList, IStorageItemAccessList_Vtbl, 0x2caff6ad_de90_47f5_b2c3_dd36c9fdd453); +::windows_core::imp::interface_hierarchy!(IStorageItemAccessList, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IStorageItemAccessList { pub fn AddOverloadDefaultMetadata(&self, file: P0) -> ::windows_core::Result<::windows_core::HSTRING> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).AddOverloadDefaultMetadata)(::windows_core::Interface::as_raw(this), file.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).AddOverloadDefaultMetadata)(::windows_core::Interface::as_raw(this), file.into_param().abi(), &mut result__).from_abi(result__) } } pub fn Add(&self, file: P0, metadata: &::windows_core::HSTRING) -> ::windows_core::Result<::windows_core::HSTRING> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).Add)(::windows_core::Interface::as_raw(this), file.try_into_param()?.abi(), ::core::mem::transmute_copy(metadata), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).Add)(::windows_core::Interface::as_raw(this), file.into_param().abi(), ::core::mem::transmute_copy(metadata), &mut result__).from_abi(result__) } } pub fn AddOrReplaceOverloadDefaultMetadata(&self, token: &::windows_core::HSTRING, file: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).AddOrReplaceOverloadDefaultMetadata)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(token), file.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).AddOrReplaceOverloadDefaultMetadata)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(token), file.into_param().abi()).ok() } } pub fn AddOrReplace(&self, token: &::windows_core::HSTRING, file: P0, metadata: &::windows_core::HSTRING) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).AddOrReplace)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(token), file.try_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.into_param().abi(), ::core::mem::transmute_copy(metadata)).ok() } } pub fn GetItemAsync(&self, token: &::windows_core::HSTRING) -> ::windows_core::Result> { let this = self; @@ -151,12 +123,12 @@ impl IStorageItemAccessList { } pub fn CheckAccess(&self, file: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CheckAccess)(::windows_core::Interface::as_raw(this), file.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CheckAccess)(::windows_core::Interface::as_raw(this), file.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -176,16 +148,9 @@ impl IStorageItemAccessList { } } } -::windows_core::imp::interface_hierarchy!(IStorageItemAccessList, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IStorageItemAccessList { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IStorageItemAccessList { - type Vtable = IStorageItemAccessList_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageItemAccessList { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2caff6ad_de90_47f5_b2c3_dd36c9fdd453); -} #[repr(C)] #[doc(hidden)] pub struct IStorageItemAccessList_Vtbl { @@ -210,16 +175,7 @@ pub struct IStorageItemAccessList_Vtbl { Entries: usize, pub MaximumItemsAllowed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageItemMostRecentlyUsedList(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorageItemMostRecentlyUsedList { - type Vtable = IStorageItemMostRecentlyUsedList_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageItemMostRecentlyUsedList { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x016239d5_510d_411e_8cf1_c3d1effa4c33); -} +::windows_core::imp::com_interface!(IStorageItemMostRecentlyUsedList, IStorageItemMostRecentlyUsedList_Vtbl, 0x016239d5_510d_411e_8cf1_c3d1effa4c33); #[repr(C)] #[doc(hidden)] pub struct IStorageItemMostRecentlyUsedList_Vtbl { @@ -227,16 +183,7 @@ pub struct IStorageItemMostRecentlyUsedList_Vtbl { pub ItemRemoved: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveItemRemoved: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventcookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageItemMostRecentlyUsedList2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorageItemMostRecentlyUsedList2 { - type Vtable = IStorageItemMostRecentlyUsedList2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageItemMostRecentlyUsedList2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xda481ea0_ed8d_4731_a1db_e44ee2204093); -} +::windows_core::imp::com_interface!(IStorageItemMostRecentlyUsedList2, IStorageItemMostRecentlyUsedList2_Vtbl, 0xda481ea0_ed8d_4731_a1db_e44ee2204093); #[repr(C)] #[doc(hidden)] pub struct IStorageItemMostRecentlyUsedList2_Vtbl { @@ -250,11 +197,15 @@ pub struct IStorageItemMostRecentlyUsedList2_Vtbl { #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AccessListEntryView(::windows_core::IUnknown); #[cfg(feature = "Foundation_Collections")] +::windows_core::imp::interface_hierarchy!(AccessListEntryView, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(AccessListEntryView, super::super::Foundation::Collections::IIterable::, super::super::Foundation::Collections::IVectorView::); +#[cfg(feature = "Foundation_Collections")] impl AccessListEntryView { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -307,10 +258,7 @@ impl ::windows_core::RuntimeType for AccessListEntryView { #[cfg(feature = "Foundation_Collections")] unsafe impl ::windows_core::Interface for AccessListEntryView { type Vtable = super::super::Foundation::Collections::IVectorView_Vtbl; -} -#[cfg(feature = "Foundation_Collections")] -unsafe impl ::windows_core::ComInterface for AccessListEntryView { - const IID: ::windows_core::GUID = as ::windows_core::ComInterface>::IID; + const IID: ::windows_core::GUID = as ::windows_core::Interface>::IID; } #[cfg(feature = "Foundation_Collections")] impl ::windows_core::RuntimeName for AccessListEntryView { @@ -329,18 +277,13 @@ impl ::core::iter::IntoIterator for &AccessListEntryView { type Item = AccessListEntry; type IntoIter = super::super::Foundation::Collections::VectorViewIterator; fn into_iter(self) -> Self::IntoIter { - super::super::Foundation::Collections::VectorViewIterator::new(::windows_core::ComInterface::cast(self).ok()) + super::super::Foundation::Collections::VectorViewIterator::new(::windows_core::Interface::cast(self).ok()) } } -#[cfg(feature = "Foundation_Collections")] -::windows_core::imp::interface_hierarchy!(AccessListEntryView, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for AccessListEntryView {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for AccessListEntryView {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ItemRemovedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ItemRemovedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ItemRemovedEventArgs { pub fn RemovedEntry(&self) -> ::windows_core::Result { let this = self; @@ -355,14 +298,11 @@ impl ::windows_core::RuntimeType for ItemRemovedEventArgs { } unsafe impl ::windows_core::Interface for ItemRemovedEventArgs { type Vtable = IItemRemovedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ItemRemovedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ItemRemovedEventArgs { const NAME: &'static str = "Windows.Storage.AccessCache.ItemRemovedEventArgs"; } -::windows_core::imp::interface_hierarchy!(ItemRemovedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); pub struct StorageApplicationPermissions; impl StorageApplicationPermissions { pub fn FutureAccessList() -> ::windows_core::Result { @@ -416,40 +356,42 @@ impl ::windows_core::RuntimeName for StorageApplicationPermissions { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StorageItemAccessList(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StorageItemAccessList, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(StorageItemAccessList, IStorageItemAccessList); impl StorageItemAccessList { pub fn AddOverloadDefaultMetadata(&self, file: P0) -> ::windows_core::Result<::windows_core::HSTRING> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).AddOverloadDefaultMetadata)(::windows_core::Interface::as_raw(this), file.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).AddOverloadDefaultMetadata)(::windows_core::Interface::as_raw(this), file.into_param().abi(), &mut result__).from_abi(result__) } } pub fn Add(&self, file: P0, metadata: &::windows_core::HSTRING) -> ::windows_core::Result<::windows_core::HSTRING> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).Add)(::windows_core::Interface::as_raw(this), file.try_into_param()?.abi(), ::core::mem::transmute_copy(metadata), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).Add)(::windows_core::Interface::as_raw(this), file.into_param().abi(), ::core::mem::transmute_copy(metadata), &mut result__).from_abi(result__) } } pub fn AddOrReplaceOverloadDefaultMetadata(&self, token: &::windows_core::HSTRING, file: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).AddOrReplaceOverloadDefaultMetadata)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(token), file.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).AddOrReplaceOverloadDefaultMetadata)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(token), file.into_param().abi()).ok() } } pub fn AddOrReplace(&self, token: &::windows_core::HSTRING, file: P0, metadata: &::windows_core::HSTRING) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).AddOrReplace)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(token), file.try_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.into_param().abi(), ::core::mem::transmute_copy(metadata)).ok() } } pub fn GetItemAsync(&self, token: &::windows_core::HSTRING) -> ::windows_core::Result> { let this = self; @@ -510,12 +452,12 @@ impl StorageItemAccessList { } pub fn CheckAccess(&self, file: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CheckAccess)(::windows_core::Interface::as_raw(this), file.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CheckAccess)(::windows_core::Interface::as_raw(this), file.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -540,131 +482,129 @@ impl ::windows_core::RuntimeType for StorageItemAccessList { } unsafe impl ::windows_core::Interface for StorageItemAccessList { type Vtable = IStorageItemAccessList_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StorageItemAccessList { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StorageItemAccessList { const NAME: &'static str = "Windows.Storage.AccessCache.StorageItemAccessList"; } -::windows_core::imp::interface_hierarchy!(StorageItemAccessList, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for StorageItemAccessList {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StorageItemMostRecentlyUsedList(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StorageItemMostRecentlyUsedList, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(StorageItemMostRecentlyUsedList, IStorageItemAccessList); impl StorageItemMostRecentlyUsedList { pub fn AddOverloadDefaultMetadata(&self, file: P0) -> ::windows_core::Result<::windows_core::HSTRING> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).AddOverloadDefaultMetadata)(::windows_core::Interface::as_raw(this), file.into_param().abi(), &mut result__).from_abi(result__) } } pub fn Add(&self, file: P0, metadata: &::windows_core::HSTRING) -> ::windows_core::Result<::windows_core::HSTRING> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), ::core::mem::transmute_copy(metadata), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).Add)(::windows_core::Interface::as_raw(this), file.into_param().abi(), ::core::mem::transmute_copy(metadata), &mut result__).from_abi(result__) } } pub fn AddOrReplaceOverloadDefaultMetadata(&self, token: &::windows_core::HSTRING, file: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).AddOrReplaceOverloadDefaultMetadata)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(token), file.try_into_param()?.abi()).ok() } + 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() } } pub fn AddOrReplace(&self, token: &::windows_core::HSTRING, file: P0, metadata: &::windows_core::HSTRING) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).AddOrReplace)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(token), file.try_into_param()?.abi(), ::core::mem::transmute_copy(metadata)).ok() } + 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() } } pub fn GetItemAsync(&self, token: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetItemAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(token), &mut result__).from_abi(result__) } } pub fn GetFileAsync(&self, token: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetFileAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(token), &mut result__).from_abi(result__) } } pub fn GetFolderAsync(&self, token: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetFolderAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(token), &mut result__).from_abi(result__) } } pub fn GetItemWithOptionsAsync(&self, token: &::windows_core::HSTRING, options: AccessCacheOptions) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetItemWithOptionsAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(token), options, &mut result__).from_abi(result__) } } pub fn GetFileWithOptionsAsync(&self, token: &::windows_core::HSTRING, options: AccessCacheOptions) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetFileWithOptionsAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(token), options, &mut result__).from_abi(result__) } } pub fn GetFolderWithOptionsAsync(&self, token: &::windows_core::HSTRING, options: AccessCacheOptions) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetFolderWithOptionsAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(token), options, &mut result__).from_abi(result__) } } pub fn Remove(&self, token: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Remove)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(token)).ok() } } pub fn ContainsItem(&self, token: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ContainsItem)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(token), &mut result__).from_abi(result__) } } pub fn Clear(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Clear)(::windows_core::Interface::as_raw(this)).ok() } } pub fn CheckAccess(&self, file: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CheckAccess)(::windows_core::Interface::as_raw(this), file.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Entries(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Entries)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn MaximumItemsAllowed(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MaximumItemsAllowed)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -686,20 +626,20 @@ impl StorageItemMostRecentlyUsedList { } pub fn AddWithMetadataAndVisibility(&self, file: P0, metadata: &::windows_core::HSTRING, visibility: RecentStorageItemVisibility) -> ::windows_core::Result<::windows_core::HSTRING> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), ::core::mem::transmute_copy(metadata), visibility, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).AddWithMetadataAndVisibility)(::windows_core::Interface::as_raw(this), file.into_param().abi(), ::core::mem::transmute_copy(metadata), visibility, &mut result__).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::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).AddOrReplaceWithMetadataAndVisibility)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(token), file.try_into_param()?.abi(), ::core::mem::transmute_copy(metadata), visibility).ok() } + 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() } } } impl ::windows_core::RuntimeType for StorageItemMostRecentlyUsedList { @@ -707,15 +647,11 @@ impl ::windows_core::RuntimeType for StorageItemMostRecentlyUsedList { } unsafe impl ::windows_core::Interface for StorageItemMostRecentlyUsedList { type Vtable = IStorageItemMostRecentlyUsedList_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StorageItemMostRecentlyUsedList { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StorageItemMostRecentlyUsedList { const NAME: &'static str = "Windows.Storage.AccessCache.StorageItemMostRecentlyUsedList"; } -::windows_core::imp::interface_hierarchy!(StorageItemMostRecentlyUsedList, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for StorageItemMostRecentlyUsedList {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::marker::Copy, ::core::clone::Clone, ::core::default::Default)] pub struct AccessCacheOptions(pub u32); diff --git a/crates/libs/windows/src/Windows/Storage/BulkAccess/impl.rs b/crates/libs/windows/src/Windows/Storage/BulkAccess/impl.rs index d966d61b82..5a0ae3de63 100644 --- a/crates/libs/windows/src/Windows/Storage/BulkAccess/impl.rs +++ b/crates/libs/windows/src/Windows/Storage/BulkAccess/impl.rs @@ -138,6 +138,6 @@ impl IStorageItemInformation_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs b/crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs index 7fb1f4d0b2..8e92afabea 100644 --- a/crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs +++ b/crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFileInformationFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFileInformationFactory { - type Vtable = IFileInformationFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFileInformationFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x401d88be_960f_4d6d_a7d0_1a3861e76c83); -} +::windows_core::imp::com_interface!(IFileInformationFactory, IFileInformationFactory_Vtbl, 0x401d88be_960f_4d6d_a7d0_1a3861e76c83); #[repr(C)] #[doc(hidden)] pub struct IFileInformationFactory_Vtbl { @@ -40,16 +31,7 @@ pub struct IFileInformationFactory_Vtbl { pub GetVirtualizedFilesVector: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetVirtualizedFoldersVector: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFileInformationFactoryFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFileInformationFactoryFactory { - type Vtable = IFileInformationFactoryFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFileInformationFactoryFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x84ea0e7d_e4a2_4f00_8afa_af5e0f826bd5); -} +::windows_core::imp::com_interface!(IFileInformationFactoryFactory, IFileInformationFactoryFactory_Vtbl, 0x84ea0e7d_e4a2_4f00_8afa_af5e0f826bd5); #[repr(C)] #[doc(hidden)] pub struct IFileInformationFactoryFactory_Vtbl { @@ -71,9 +53,8 @@ pub struct IFileInformationFactoryFactory_Vtbl { #[cfg(not(all(feature = "Storage_FileProperties", feature = "Storage_Search")))] CreateWithModeAndSizeAndOptionsAndFlags: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageItemInformation(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IStorageItemInformation, IStorageItemInformation_Vtbl, 0x87a5cb8b_8972_4f40_8de0_d86fb179d8fa); +::windows_core::imp::interface_hierarchy!(IStorageItemInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IStorageItemInformation { #[doc = "Required features: `\"Storage_FileProperties\"`"] #[cfg(feature = "Storage_FileProperties")] @@ -158,16 +139,9 @@ impl IStorageItemInformation { unsafe { (::windows_core::Interface::vtable(this).RemovePropertiesUpdated)(::windows_core::Interface::as_raw(this), eventcookie).ok() } } } -::windows_core::imp::interface_hierarchy!(IStorageItemInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IStorageItemInformation { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IStorageItemInformation { - type Vtable = IStorageItemInformation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageItemInformation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x87a5cb8b_8972_4f40_8de0_d86fb179d8fa); -} #[repr(C)] #[doc(hidden)] pub struct IStorageItemInformation_Vtbl { @@ -204,11 +178,14 @@ pub struct IStorageItemInformation_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct FileInformation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(FileInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Storage_Streams")] +::windows_core::imp::required_hierarchy!(FileInformation, super::Streams::IInputStreamReference, super::Streams::IRandomAccessStreamReference, super::IStorageFile, super::IStorageFile2, super::IStorageFilePropertiesWithAvailability, super::IStorageItem, super::IStorageItem2, IStorageItemInformation, super::IStorageItemProperties, super::IStorageItemPropertiesWithProvider); impl FileInformation { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn OpenSequentialReadAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OpenSequentialReadAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -217,21 +194,21 @@ impl FileInformation { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn OpenReadAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OpenReadAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn FileType(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FileType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ContentType(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ContentType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -240,14 +217,14 @@ impl FileInformation { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn OpenAsync(&self, accessmode: super::FileAccessMode) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OpenAsync)(::windows_core::Interface::as_raw(this), accessmode, &mut result__).from_abi(result__) } } pub fn OpenTransactedWriteAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OpenTransactedWriteAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -255,130 +232,130 @@ impl FileInformation { } pub fn CopyOverloadDefaultNameAndOptions(&self, destinationfolder: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CopyOverloadDefaultNameAndOptions)(::windows_core::Interface::as_raw(this), destinationfolder.into_param().abi(), &mut result__).from_abi(result__) } } pub fn CopyOverloadDefaultOptions(&self, destinationfolder: P0, desirednewname: &::windows_core::HSTRING) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), ::core::mem::transmute_copy(desirednewname), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CopyOverloadDefaultOptions)(::windows_core::Interface::as_raw(this), destinationfolder.into_param().abi(), ::core::mem::transmute_copy(desirednewname), &mut result__).from_abi(result__) } } pub fn CopyOverload(&self, destinationfolder: P0, desirednewname: &::windows_core::HSTRING, option: super::NameCollisionOption) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), ::core::mem::transmute_copy(desirednewname), option, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CopyOverload)(::windows_core::Interface::as_raw(this), destinationfolder.into_param().abi(), ::core::mem::transmute_copy(desirednewname), option, &mut result__).from_abi(result__) } } pub fn CopyAndReplaceAsync(&self, filetoreplace: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CopyAndReplaceAsync)(::windows_core::Interface::as_raw(this), filetoreplace.into_param().abi(), &mut result__).from_abi(result__) } } pub fn MoveOverloadDefaultNameAndOptions(&self, destinationfolder: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).MoveOverloadDefaultNameAndOptions)(::windows_core::Interface::as_raw(this), destinationfolder.into_param().abi(), &mut result__).from_abi(result__) } } pub fn MoveOverloadDefaultOptions(&self, destinationfolder: P0, desirednewname: &::windows_core::HSTRING) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), ::core::mem::transmute_copy(desirednewname), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).MoveOverloadDefaultOptions)(::windows_core::Interface::as_raw(this), destinationfolder.into_param().abi(), ::core::mem::transmute_copy(desirednewname), &mut result__).from_abi(result__) } } pub fn MoveOverload(&self, destinationfolder: P0, desirednewname: &::windows_core::HSTRING, option: super::NameCollisionOption) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), ::core::mem::transmute_copy(desirednewname), option, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).MoveOverload)(::windows_core::Interface::as_raw(this), destinationfolder.into_param().abi(), ::core::mem::transmute_copy(desirednewname), option, &mut result__).from_abi(result__) } } pub fn MoveAndReplaceAsync(&self, filetoreplace: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).MoveAndReplaceAsync)(::windows_core::Interface::as_raw(this), filetoreplace.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn OpenWithOptionsAsync(&self, accessmode: super::FileAccessMode, options: super::StorageOpenOptions) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OpenWithOptionsAsync)(::windows_core::Interface::as_raw(this), accessmode, options, &mut result__).from_abi(result__) } } pub fn OpenTransactedWriteWithOptionsAsync(&self, options: super::StorageOpenOptions) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OpenTransactedWriteWithOptionsAsync)(::windows_core::Interface::as_raw(this), options, &mut result__).from_abi(result__) } } pub fn IsAvailable(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsAvailable)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn RenameAsyncOverloadDefaultOptions(&self, desiredname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RenameAsyncOverloadDefaultOptions)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(desiredname), &mut result__).from_abi(result__) } } pub fn RenameAsync(&self, desiredname: &::windows_core::HSTRING, option: super::NameCollisionOption) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RenameAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(desiredname), option, &mut result__).from_abi(result__) } } pub fn DeleteAsyncOverloadDefaultOptions(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DeleteAsyncOverloadDefaultOptions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn DeleteAsync(&self, option: super::StorageDeleteOption) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DeleteAsync)(::windows_core::Interface::as_raw(this), option, &mut result__).from_abi(result__) @@ -387,49 +364,49 @@ impl FileInformation { #[doc = "Required features: `\"Storage_FileProperties\"`"] #[cfg(feature = "Storage_FileProperties")] pub fn GetBasicPropertiesAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetBasicPropertiesAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Name(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Name)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Path(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Path)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Attributes(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Attributes)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn DateCreated(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DateCreated)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsOfType(&self, r#type: super::StorageItemTypes) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsOfType)(::windows_core::Interface::as_raw(this), r#type, &mut result__).from_abi(result__) } } pub fn GetParentAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetParentAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -437,12 +414,12 @@ impl FileInformation { } pub fn IsEqual(&self, item: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).IsEqual)(::windows_core::Interface::as_raw(this), item.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Storage_FileProperties\"`"] @@ -530,7 +507,7 @@ impl FileInformation { #[doc = "Required features: `\"Storage_FileProperties\"`, `\"Storage_Streams\"`"] #[cfg(all(feature = "Storage_FileProperties", feature = "Storage_Streams"))] pub fn GetThumbnailAsyncOverloadDefaultSizeDefaultOptions(&self, mode: super::FileProperties::ThumbnailMode) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetThumbnailAsyncOverloadDefaultSizeDefaultOptions)(::windows_core::Interface::as_raw(this), mode, &mut result__).from_abi(result__) @@ -539,7 +516,7 @@ impl FileInformation { #[doc = "Required features: `\"Storage_FileProperties\"`, `\"Storage_Streams\"`"] #[cfg(all(feature = "Storage_FileProperties", feature = "Storage_Streams"))] pub fn GetThumbnailAsyncOverloadDefaultOptions(&self, mode: super::FileProperties::ThumbnailMode, requestedsize: u32) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetThumbnailAsyncOverloadDefaultOptions)(::windows_core::Interface::as_raw(this), mode, requestedsize, &mut result__).from_abi(result__) @@ -548,28 +525,28 @@ impl FileInformation { #[doc = "Required features: `\"Storage_FileProperties\"`, `\"Storage_Streams\"`"] #[cfg(all(feature = "Storage_FileProperties", feature = "Storage_Streams"))] pub fn GetThumbnailAsync(&self, mode: super::FileProperties::ThumbnailMode, requestedsize: u32, options: super::FileProperties::ThumbnailOptions) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetThumbnailAsync)(::windows_core::Interface::as_raw(this), mode, requestedsize, options, &mut result__).from_abi(result__) } } pub fn DisplayName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DisplayName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn DisplayType(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DisplayType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn FolderRelativeId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FolderRelativeId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -578,14 +555,14 @@ impl FileInformation { #[doc = "Required features: `\"Storage_FileProperties\"`"] #[cfg(feature = "Storage_FileProperties")] pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Provider(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Provider)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -597,29 +574,15 @@ impl ::windows_core::RuntimeType for FileInformation { } unsafe impl ::windows_core::Interface for FileInformation { type Vtable = IStorageItemInformation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for FileInformation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for FileInformation { const NAME: &'static str = "Windows.Storage.BulkAccess.FileInformation"; } -::windows_core::imp::interface_hierarchy!(FileInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Storage_Streams")] -impl ::windows_core::CanTryInto for FileInformation {} -#[cfg(feature = "Storage_Streams")] -impl ::windows_core::CanTryInto for FileInformation {} -impl ::windows_core::CanTryInto for FileInformation {} -impl ::windows_core::CanTryInto for FileInformation {} -impl ::windows_core::CanTryInto for FileInformation {} -impl ::windows_core::CanTryInto for FileInformation {} -impl ::windows_core::CanTryInto for FileInformation {} -impl ::windows_core::CanTryInto for FileInformation {} -impl ::windows_core::CanTryInto for FileInformation {} -impl ::windows_core::CanTryInto for FileInformation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct FileInformationFactory(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(FileInformationFactory, ::windows_core::IUnknown, ::windows_core::IInspectable); impl FileInformationFactory { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -700,44 +663,44 @@ 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::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IFileInformationFactoryFactory(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateWithMode)(::windows_core::Interface::as_raw(this), queryresult.try_into_param()?.abi(), mode, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateWithMode)(::windows_core::Interface::as_raw(this), queryresult.into_param().abi(), mode, &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Storage_FileProperties\"`, `\"Storage_Search\"`"] #[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::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IFileInformationFactoryFactory(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateWithModeAndSize)(::windows_core::Interface::as_raw(this), queryresult.try_into_param()?.abi(), mode, requestedthumbnailsize, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateWithModeAndSize)(::windows_core::Interface::as_raw(this), queryresult.into_param().abi(), mode, requestedthumbnailsize, &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Storage_FileProperties\"`, `\"Storage_Search\"`"] #[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::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IFileInformationFactoryFactory(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateWithModeAndSizeAndOptions)(::windows_core::Interface::as_raw(this), queryresult.try_into_param()?.abi(), mode, requestedthumbnailsize, thumbnailoptions, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateWithModeAndSizeAndOptions)(::windows_core::Interface::as_raw(this), queryresult.into_param().abi(), mode, requestedthumbnailsize, thumbnailoptions, &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Storage_FileProperties\"`, `\"Storage_Search\"`"] #[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::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IFileInformationFactoryFactory(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateWithModeAndSizeAndOptionsAndFlags)(::windows_core::Interface::as_raw(this), queryresult.try_into_param()?.abi(), mode, requestedthumbnailsize, thumbnailoptions, delayload, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateWithModeAndSizeAndOptionsAndFlags)(::windows_core::Interface::as_raw(this), queryresult.into_param().abi(), mode, requestedthumbnailsize, thumbnailoptions, delayload, &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -751,64 +714,64 @@ impl ::windows_core::RuntimeType for FileInformationFactory { } unsafe impl ::windows_core::Interface for FileInformationFactory { type Vtable = IFileInformationFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for FileInformationFactory { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for FileInformationFactory { const NAME: &'static str = "Windows.Storage.BulkAccess.FileInformationFactory"; } -::windows_core::imp::interface_hierarchy!(FileInformationFactory, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for FileInformationFactory {} unsafe impl ::core::marker::Sync for FileInformationFactory {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct FolderInformation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(FolderInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Storage_Search")] +::windows_core::imp::required_hierarchy!(FolderInformation, super::IStorageFolder, super::IStorageFolder2, super::Search::IStorageFolderQueryOperations, super::IStorageItem, super::IStorageItem2, IStorageItemInformation, super::IStorageItemProperties, super::IStorageItemPropertiesWithProvider); impl FolderInformation { pub fn CreateFileAsyncOverloadDefaultOptions(&self, desiredname: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateFileAsyncOverloadDefaultOptions)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(desiredname), &mut result__).from_abi(result__) } } pub fn CreateFileAsync(&self, desiredname: &::windows_core::HSTRING, options: super::CreationCollisionOption) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateFileAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(desiredname), options, &mut result__).from_abi(result__) } } pub fn CreateFolderAsyncOverloadDefaultOptions(&self, desiredname: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateFolderAsyncOverloadDefaultOptions)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(desiredname), &mut result__).from_abi(result__) } } pub fn CreateFolderAsync(&self, desiredname: &::windows_core::HSTRING, options: super::CreationCollisionOption) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateFolderAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(desiredname), options, &mut result__).from_abi(result__) } } pub fn GetFileAsync(&self, name: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetFileAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(name), &mut result__).from_abi(result__) } } pub fn GetFolderAsync(&self, name: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetFolderAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(name), &mut result__).from_abi(result__) } } pub fn GetItemAsync(&self, name: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetItemAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(name), &mut result__).from_abi(result__) @@ -817,7 +780,7 @@ impl FolderInformation { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetFilesAsyncOverloadDefaultOptionsStartAndCount(&self) -> ::windows_core::Result>> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetFilesAsyncOverloadDefaultOptionsStartAndCount)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -826,7 +789,7 @@ impl FolderInformation { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetFoldersAsyncOverloadDefaultOptionsStartAndCount(&self) -> ::windows_core::Result>> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetFoldersAsyncOverloadDefaultOptionsStartAndCount)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -835,14 +798,14 @@ impl FolderInformation { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetItemsAsyncOverloadDefaultStartAndCount(&self) -> ::windows_core::Result>> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetItemsAsyncOverloadDefaultStartAndCount)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetItemAsync(&self, name: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetItemAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(name), &mut result__).from_abi(result__) @@ -851,7 +814,7 @@ impl FolderInformation { #[doc = "Required features: `\"Storage_Search\"`"] #[cfg(feature = "Storage_Search")] pub fn GetIndexedStateAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetIndexedStateAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -860,7 +823,7 @@ impl FolderInformation { #[doc = "Required features: `\"Storage_Search\"`"] #[cfg(feature = "Storage_Search")] pub fn CreateFileQueryOverloadDefault(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateFileQueryOverloadDefault)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -869,7 +832,7 @@ impl FolderInformation { #[doc = "Required features: `\"Storage_Search\"`"] #[cfg(feature = "Storage_Search")] pub fn CreateFileQuery(&self, query: super::Search::CommonFileQuery) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateFileQuery)(::windows_core::Interface::as_raw(this), query, &mut result__).from_abi(result__) @@ -881,7 +844,7 @@ impl FolderInformation { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -890,7 +853,7 @@ impl FolderInformation { #[doc = "Required features: `\"Storage_Search\"`"] #[cfg(feature = "Storage_Search")] pub fn CreateFolderQueryOverloadDefault(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateFolderQueryOverloadDefault)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -899,7 +862,7 @@ impl FolderInformation { #[doc = "Required features: `\"Storage_Search\"`"] #[cfg(feature = "Storage_Search")] pub fn CreateFolderQuery(&self, query: super::Search::CommonFolderQuery) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateFolderQuery)(::windows_core::Interface::as_raw(this), query, &mut result__).from_abi(result__) @@ -911,7 +874,7 @@ impl FolderInformation { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -920,7 +883,7 @@ impl FolderInformation { #[doc = "Required features: `\"Storage_Search\"`"] #[cfg(feature = "Storage_Search")] pub fn CreateItemQuery(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateItemQuery)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -932,7 +895,7 @@ impl FolderInformation { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -941,7 +904,7 @@ impl FolderInformation { #[doc = "Required features: `\"Foundation_Collections\"`, `\"Storage_Search\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Search"))] pub fn GetFilesAsync(&self, query: super::Search::CommonFileQuery, startindex: u32, maxitemstoretrieve: u32) -> ::windows_core::Result>> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetFilesAsync)(::windows_core::Interface::as_raw(this), query, startindex, maxitemstoretrieve, &mut result__).from_abi(result__) @@ -950,7 +913,7 @@ impl FolderInformation { #[doc = "Required features: `\"Foundation_Collections\"`, `\"Storage_Search\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Search"))] pub fn GetFilesAsyncOverloadDefaultStartAndCount(&self, query: super::Search::CommonFileQuery) -> ::windows_core::Result>> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetFilesAsyncOverloadDefaultStartAndCount)(::windows_core::Interface::as_raw(this), query, &mut result__).from_abi(result__) @@ -959,7 +922,7 @@ impl FolderInformation { #[doc = "Required features: `\"Foundation_Collections\"`, `\"Storage_Search\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Search"))] pub fn GetFoldersAsync(&self, query: super::Search::CommonFolderQuery, startindex: u32, maxitemstoretrieve: u32) -> ::windows_core::Result>> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetFoldersAsync)(::windows_core::Interface::as_raw(this), query, startindex, maxitemstoretrieve, &mut result__).from_abi(result__) @@ -968,7 +931,7 @@ impl FolderInformation { #[doc = "Required features: `\"Foundation_Collections\"`, `\"Storage_Search\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Search"))] pub fn GetFoldersAsyncOverloadDefaultStartAndCount(&self, query: super::Search::CommonFolderQuery) -> ::windows_core::Result>> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetFoldersAsyncOverloadDefaultStartAndCount)(::windows_core::Interface::as_raw(this), query, &mut result__).from_abi(result__) @@ -977,7 +940,7 @@ impl FolderInformation { #[doc = "Required features: `\"Foundation_Collections\"`, `\"Storage_Search\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Search"))] pub fn GetItemsAsync(&self, startindex: u32, maxitemstoretrieve: u32) -> ::windows_core::Result>> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetItemsAsync)(::windows_core::Interface::as_raw(this), startindex, maxitemstoretrieve, &mut result__).from_abi(result__) @@ -989,7 +952,7 @@ impl FolderInformation { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -998,7 +961,7 @@ impl FolderInformation { #[doc = "Required features: `\"Storage_Search\"`"] #[cfg(feature = "Storage_Search")] pub fn IsCommonFolderQuerySupported(&self, query: super::Search::CommonFolderQuery) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsCommonFolderQuerySupported)(::windows_core::Interface::as_raw(this), query, &mut result__).from_abi(result__) @@ -1007,35 +970,35 @@ impl FolderInformation { #[doc = "Required features: `\"Storage_Search\"`"] #[cfg(feature = "Storage_Search")] pub fn IsCommonFileQuerySupported(&self, query: super::Search::CommonFileQuery) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsCommonFileQuerySupported)(::windows_core::Interface::as_raw(this), query, &mut result__).from_abi(result__) } } pub fn RenameAsyncOverloadDefaultOptions(&self, desiredname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RenameAsyncOverloadDefaultOptions)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(desiredname), &mut result__).from_abi(result__) } } pub fn RenameAsync(&self, desiredname: &::windows_core::HSTRING, option: super::NameCollisionOption) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RenameAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(desiredname), option, &mut result__).from_abi(result__) } } pub fn DeleteAsyncOverloadDefaultOptions(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DeleteAsyncOverloadDefaultOptions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn DeleteAsync(&self, option: super::StorageDeleteOption) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DeleteAsync)(::windows_core::Interface::as_raw(this), option, &mut result__).from_abi(result__) @@ -1044,49 +1007,49 @@ impl FolderInformation { #[doc = "Required features: `\"Storage_FileProperties\"`"] #[cfg(feature = "Storage_FileProperties")] pub fn GetBasicPropertiesAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetBasicPropertiesAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Name(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Name)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Path(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Path)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Attributes(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Attributes)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn DateCreated(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DateCreated)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsOfType(&self, r#type: super::StorageItemTypes) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsOfType)(::windows_core::Interface::as_raw(this), r#type, &mut result__).from_abi(result__) } } pub fn GetParentAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetParentAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1094,12 +1057,12 @@ impl FolderInformation { } pub fn IsEqual(&self, item: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).IsEqual)(::windows_core::Interface::as_raw(this), item.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Storage_FileProperties\"`"] @@ -1187,7 +1150,7 @@ impl FolderInformation { #[doc = "Required features: `\"Storage_FileProperties\"`, `\"Storage_Streams\"`"] #[cfg(all(feature = "Storage_FileProperties", feature = "Storage_Streams"))] pub fn GetThumbnailAsyncOverloadDefaultSizeDefaultOptions(&self, mode: super::FileProperties::ThumbnailMode) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetThumbnailAsyncOverloadDefaultSizeDefaultOptions)(::windows_core::Interface::as_raw(this), mode, &mut result__).from_abi(result__) @@ -1196,7 +1159,7 @@ impl FolderInformation { #[doc = "Required features: `\"Storage_FileProperties\"`, `\"Storage_Streams\"`"] #[cfg(all(feature = "Storage_FileProperties", feature = "Storage_Streams"))] pub fn GetThumbnailAsyncOverloadDefaultOptions(&self, mode: super::FileProperties::ThumbnailMode, requestedsize: u32) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetThumbnailAsyncOverloadDefaultOptions)(::windows_core::Interface::as_raw(this), mode, requestedsize, &mut result__).from_abi(result__) @@ -1205,28 +1168,28 @@ impl FolderInformation { #[doc = "Required features: `\"Storage_FileProperties\"`, `\"Storage_Streams\"`"] #[cfg(all(feature = "Storage_FileProperties", feature = "Storage_Streams"))] pub fn GetThumbnailAsync(&self, mode: super::FileProperties::ThumbnailMode, requestedsize: u32, options: super::FileProperties::ThumbnailOptions) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetThumbnailAsync)(::windows_core::Interface::as_raw(this), mode, requestedsize, options, &mut result__).from_abi(result__) } } pub fn DisplayName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DisplayName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn DisplayType(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DisplayType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn FolderRelativeId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FolderRelativeId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1235,14 +1198,14 @@ impl FolderInformation { #[doc = "Required features: `\"Storage_FileProperties\"`"] #[cfg(feature = "Storage_FileProperties")] pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Provider(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Provider)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1254,22 +1217,10 @@ impl ::windows_core::RuntimeType for FolderInformation { } unsafe impl ::windows_core::Interface for FolderInformation { type Vtable = IStorageItemInformation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for FolderInformation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for FolderInformation { const NAME: &'static str = "Windows.Storage.BulkAccess.FolderInformation"; } -::windows_core::imp::interface_hierarchy!(FolderInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for FolderInformation {} -impl ::windows_core::CanTryInto for FolderInformation {} -#[cfg(feature = "Storage_Search")] -impl ::windows_core::CanTryInto for FolderInformation {} -impl ::windows_core::CanTryInto for FolderInformation {} -impl ::windows_core::CanTryInto for FolderInformation {} -impl ::windows_core::CanTryInto for FolderInformation {} -impl ::windows_core::CanTryInto for FolderInformation {} -impl ::windows_core::CanTryInto for FolderInformation {} #[cfg(feature = "implement")] ::core::include!("impl.rs"); diff --git a/crates/libs/windows/src/Windows/Storage/Compression/mod.rs b/crates/libs/windows/src/Windows/Storage/Compression/mod.rs index 8e251e720c..0e71e0f3c4 100644 --- a/crates/libs/windows/src/Windows/Storage/Compression/mod.rs +++ b/crates/libs/windows/src/Windows/Storage/Compression/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompressor(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompressor { - type Vtable = ICompressor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompressor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0ac3645a_57ac_4ee1_b702_84d39d5424e0); -} +::windows_core::imp::com_interface!(ICompressor, ICompressor_Vtbl, 0x0ac3645a_57ac_4ee1_b702_84d39d5424e0); #[repr(C)] #[doc(hidden)] pub struct ICompressor_Vtbl { @@ -18,16 +9,7 @@ pub struct ICompressor_Vtbl { #[cfg(not(feature = "Storage_Streams"))] DetachStream: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompressorFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompressorFactory { - type Vtable = ICompressorFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompressorFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5f3d96a4_2cfb_442c_a8ba_d7d11b039da0); -} +::windows_core::imp::com_interface!(ICompressorFactory, ICompressorFactory_Vtbl, 0x5f3d96a4_2cfb_442c_a8ba_d7d11b039da0); #[repr(C)] #[doc(hidden)] pub struct ICompressorFactory_Vtbl { @@ -41,16 +23,7 @@ pub struct ICompressorFactory_Vtbl { #[cfg(not(feature = "Storage_Streams"))] CreateCompressorEx: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDecompressor(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDecompressor { - type Vtable = IDecompressor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDecompressor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb883fe46_d68a_4c8b_ada0_4ee813fc5283); -} +::windows_core::imp::com_interface!(IDecompressor, IDecompressor_Vtbl, 0xb883fe46_d68a_4c8b_ada0_4ee813fc5283); #[repr(C)] #[doc(hidden)] pub struct IDecompressor_Vtbl { @@ -60,16 +33,7 @@ pub struct IDecompressor_Vtbl { #[cfg(not(feature = "Storage_Streams"))] DetachStream: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDecompressorFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDecompressorFactory { - type Vtable = IDecompressorFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDecompressorFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5337e252_1da2_42e1_8834_0379d28d742f); -} +::windows_core::imp::com_interface!(IDecompressorFactory, IDecompressorFactory_Vtbl, 0x5337e252_1da2_42e1_8834_0379d28d742f); #[repr(C)] #[doc(hidden)] pub struct IDecompressorFactory_Vtbl { @@ -82,9 +46,12 @@ pub struct IDecompressorFactory_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Compressor(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Compressor, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Storage_Streams")] +::windows_core::imp::required_hierarchy!(Compressor, super::super::Foundation::IClosable, super::Streams::IOutputStream); impl Compressor { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn FinishAsync(&self) -> ::windows_core::Result> { @@ -107,40 +74,40 @@ impl Compressor { #[cfg(feature = "Storage_Streams")] pub fn CreateCompressor(underlyingstream: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::ICompressorFactory(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateCompressor)(::windows_core::Interface::as_raw(this), underlyingstream.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateCompressor)(::windows_core::Interface::as_raw(this), underlyingstream.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn CreateCompressorEx(underlyingstream: P0, algorithm: CompressAlgorithm, blocksize: u32) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::ICompressorFactory(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateCompressorEx)(::windows_core::Interface::as_raw(this), underlyingstream.try_into_param()?.abi(), algorithm, blocksize, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateCompressorEx)(::windows_core::Interface::as_raw(this), underlyingstream.into_param().abi(), algorithm, blocksize, &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn WriteAsync(&self, buffer: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).WriteAsync)(::windows_core::Interface::as_raw(this), buffer.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn FlushAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FlushAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -157,25 +124,22 @@ impl ::windows_core::RuntimeType for Compressor { } unsafe impl ::windows_core::Interface for Compressor { type Vtable = ICompressor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Compressor { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Compressor { const NAME: &'static str = "Windows.Storage.Compression.Compressor"; } -::windows_core::imp::interface_hierarchy!(Compressor, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for Compressor {} -#[cfg(feature = "Storage_Streams")] -impl ::windows_core::CanTryInto for Compressor {} unsafe impl ::core::marker::Send for Compressor {} unsafe impl ::core::marker::Sync for Compressor {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Decompressor(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Decompressor, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Storage_Streams")] +::windows_core::imp::required_hierarchy!(Decompressor, super::super::Foundation::IClosable, super::Streams::IInputStream); impl Decompressor { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Storage_Streams\"`"] @@ -191,23 +155,23 @@ impl Decompressor { #[cfg(feature = "Storage_Streams")] pub fn CreateDecompressor(underlyingstream: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IDecompressorFactory(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateDecompressor)(::windows_core::Interface::as_raw(this), underlyingstream.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateDecompressor)(::windows_core::Interface::as_raw(this), underlyingstream.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn ReadAsync(&self, buffer: P0, count: u32, options: super::Streams::InputStreamOptions) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), count, options, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ReadAsync)(::windows_core::Interface::as_raw(this), buffer.into_param().abi(), count, options, &mut result__).from_abi(result__) } } #[doc(hidden)] @@ -221,17 +185,11 @@ impl ::windows_core::RuntimeType for Decompressor { } unsafe impl ::windows_core::Interface for Decompressor { type Vtable = IDecompressor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Decompressor { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Decompressor { const NAME: &'static str = "Windows.Storage.Compression.Decompressor"; } -::windows_core::imp::interface_hierarchy!(Decompressor, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for Decompressor {} -#[cfg(feature = "Storage_Streams")] -impl ::windows_core::CanTryInto for Decompressor {} unsafe impl ::core::marker::Send for Decompressor {} unsafe impl ::core::marker::Sync for Decompressor {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Storage/FileProperties/impl.rs b/crates/libs/windows/src/Windows/Storage/FileProperties/impl.rs index 12d859a214..56bd591c5f 100644 --- a/crates/libs/windows/src/Windows/Storage/FileProperties/impl.rs +++ b/crates/libs/windows/src/Windows/Storage/FileProperties/impl.rs @@ -56,6 +56,6 @@ impl IStorageItemExtraProperties_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/Storage/FileProperties/mod.rs b/crates/libs/windows/src/Windows/Storage/FileProperties/mod.rs index 89aa2ec61b..76c256072e 100644 --- a/crates/libs/windows/src/Windows/Storage/FileProperties/mod.rs +++ b/crates/libs/windows/src/Windows/Storage/FileProperties/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBasicProperties(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBasicProperties { - type Vtable = IBasicProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBasicProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd05d55db_785e_4a66_be02_9beec58aea81); -} +::windows_core::imp::com_interface!(IBasicProperties, IBasicProperties_Vtbl, 0xd05d55db_785e_4a66_be02_9beec58aea81); #[repr(C)] #[doc(hidden)] pub struct IBasicProperties_Vtbl { @@ -16,16 +7,7 @@ pub struct IBasicProperties_Vtbl { pub DateModified: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::DateTime) -> ::windows_core::HRESULT, pub ItemDate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::DateTime) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDocumentProperties(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDocumentProperties { - type Vtable = IDocumentProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDocumentProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7eab19bc_1821_4923_b4a9_0aea404d0070); -} +::windows_core::imp::com_interface!(IDocumentProperties, IDocumentProperties_Vtbl, 0x7eab19bc_1821_4923_b4a9_0aea404d0070); #[repr(C)] #[doc(hidden)] pub struct IDocumentProperties_Vtbl { @@ -43,16 +25,7 @@ pub struct IDocumentProperties_Vtbl { pub Comment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetComment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGeotagHelperStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGeotagHelperStatics { - type Vtable = IGeotagHelperStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGeotagHelperStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x41493244_2524_4655_86a6_ed16f5fc716b); -} +::windows_core::imp::com_interface!(IGeotagHelperStatics, IGeotagHelperStatics_Vtbl, 0x41493244_2524_4655_86a6_ed16f5fc716b); #[repr(C)] #[doc(hidden)] pub struct IGeotagHelperStatics_Vtbl { @@ -70,16 +43,7 @@ pub struct IGeotagHelperStatics_Vtbl { #[cfg(not(feature = "Devices_Geolocation"))] SetGeotagAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IImageProperties(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IImageProperties { - type Vtable = IImageProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IImageProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x523c9424_fcff_4275_afee_ecdb9ab47973); -} +::windows_core::imp::com_interface!(IImageProperties, IImageProperties_Vtbl, 0x523c9424_fcff_4275_afee_ecdb9ab47973); #[repr(C)] #[doc(hidden)] pub struct IImageProperties_Vtbl { @@ -108,16 +72,7 @@ pub struct IImageProperties_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] PeopleNames: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMusicProperties(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMusicProperties { - type Vtable = IMusicProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMusicProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbc8aab62_66ec_419a_bc5d_ca65a4cb46da); -} +::windows_core::imp::com_interface!(IMusicProperties, IMusicProperties_Vtbl, 0xbc8aab62_66ec_419a_bc5d_ca65a4cb46da); #[repr(C)] #[doc(hidden)] pub struct IMusicProperties_Vtbl { @@ -163,16 +118,7 @@ pub struct IMusicProperties_Vtbl { pub Year: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, pub SetYear: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageItemContentProperties(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorageItemContentProperties { - type Vtable = IStorageItemContentProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageItemContentProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x05294bad_bc38_48bf_85d7_770e0e2ae0ba); -} +::windows_core::imp::com_interface!(IStorageItemContentProperties, IStorageItemContentProperties_Vtbl, 0x05294bad_bc38_48bf_85d7_770e0e2ae0ba); #[repr(C)] #[doc(hidden)] pub struct IStorageItemContentProperties_Vtbl { @@ -182,32 +128,31 @@ pub struct IStorageItemContentProperties_Vtbl { pub GetImagePropertiesAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDocumentPropertiesAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageItemExtraProperties(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IStorageItemExtraProperties, IStorageItemExtraProperties_Vtbl, 0xc54361b2_54cd_432b_bdbc_4b19c4b470d7); +::windows_core::imp::interface_hierarchy!(IStorageItemExtraProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IStorageItemExtraProperties { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn RetrievePropertiesAsync(&self, propertiestoretrieve: P0) -> ::windows_core::Result>> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).RetrievePropertiesAsync)(::windows_core::Interface::as_raw(this), propertiestoretrieve.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).RetrievePropertiesAsync)(::windows_core::Interface::as_raw(this), propertiestoretrieve.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn SavePropertiesAsync(&self, propertiestosave: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>>, + P0: ::windows_core::IntoParam>>, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).SavePropertiesAsync)(::windows_core::Interface::as_raw(this), propertiestosave.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SavePropertiesAsync)(::windows_core::Interface::as_raw(this), propertiestosave.into_param().abi(), &mut result__).from_abi(result__) } } pub fn SavePropertiesAsyncOverloadDefault(&self) -> ::windows_core::Result { @@ -218,16 +163,9 @@ impl IStorageItemExtraProperties { } } } -::windows_core::imp::interface_hierarchy!(IStorageItemExtraProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IStorageItemExtraProperties { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IStorageItemExtraProperties { - type Vtable = IStorageItemExtraProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageItemExtraProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc54361b2_54cd_432b_bdbc_4b19c4b470d7); -} #[repr(C)] #[doc(hidden)] pub struct IStorageItemExtraProperties_Vtbl { @@ -242,16 +180,7 @@ pub struct IStorageItemExtraProperties_Vtbl { SavePropertiesAsync: usize, pub SavePropertiesAsyncOverloadDefault: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IThumbnailProperties(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IThumbnailProperties { - type Vtable = IThumbnailProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IThumbnailProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x693dd42f_dbe7_49b5_b3b3_2893ac5d3423); -} +::windows_core::imp::com_interface!(IThumbnailProperties, IThumbnailProperties_Vtbl, 0x693dd42f_dbe7_49b5_b3b3_2893ac5d3423); #[repr(C)] #[doc(hidden)] pub struct IThumbnailProperties_Vtbl { @@ -261,16 +190,7 @@ pub struct IThumbnailProperties_Vtbl { pub ReturnedSmallerCachedSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub Type: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ThumbnailType) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVideoProperties(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVideoProperties { - type Vtable = IVideoProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVideoProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x719ae507_68de_4db8_97de_49998c059f2f); -} +::windows_core::imp::com_interface!(IVideoProperties, IVideoProperties_Vtbl, 0x719ae507_68de_4db8_97de_49998c059f2f); #[repr(C)] #[doc(hidden)] pub struct IVideoProperties_Vtbl { @@ -312,6 +232,8 @@ pub struct IVideoProperties_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BasicProperties(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BasicProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(BasicProperties, IStorageItemExtraProperties); impl BasicProperties { pub fn Size(&self) -> ::windows_core::Result { let this = self; @@ -338,28 +260,28 @@ impl BasicProperties { #[cfg(feature = "Foundation_Collections")] pub fn RetrievePropertiesAsync(&self, propertiestoretrieve: P0) -> ::windows_core::Result>> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).RetrievePropertiesAsync)(::windows_core::Interface::as_raw(this), propertiestoretrieve.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn SavePropertiesAsync(&self, propertiestosave: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>>, + P0: ::windows_core::IntoParam>>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SavePropertiesAsync)(::windows_core::Interface::as_raw(this), propertiestosave.into_param().abi(), &mut result__).from_abi(result__) } } pub fn SavePropertiesAsyncOverloadDefault(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SavePropertiesAsyncOverloadDefault)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -371,18 +293,16 @@ impl ::windows_core::RuntimeType for BasicProperties { } unsafe impl ::windows_core::Interface for BasicProperties { type Vtable = IBasicProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BasicProperties { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BasicProperties { const NAME: &'static str = "Windows.Storage.FileProperties.BasicProperties"; } -::windows_core::imp::interface_hierarchy!(BasicProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for BasicProperties {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DocumentProperties(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DocumentProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(DocumentProperties, IStorageItemExtraProperties); impl DocumentProperties { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -428,28 +348,28 @@ impl DocumentProperties { #[cfg(feature = "Foundation_Collections")] pub fn RetrievePropertiesAsync(&self, propertiestoretrieve: P0) -> ::windows_core::Result>> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).RetrievePropertiesAsync)(::windows_core::Interface::as_raw(this), propertiestoretrieve.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn SavePropertiesAsync(&self, propertiestosave: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>>, + P0: ::windows_core::IntoParam>>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SavePropertiesAsync)(::windows_core::Interface::as_raw(this), propertiestosave.into_param().abi(), &mut result__).from_abi(result__) } } pub fn SavePropertiesAsyncOverloadDefault(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SavePropertiesAsyncOverloadDefault)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -461,50 +381,46 @@ impl ::windows_core::RuntimeType for DocumentProperties { } unsafe impl ::windows_core::Interface for DocumentProperties { type Vtable = IDocumentProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DocumentProperties { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DocumentProperties { const NAME: &'static str = "Windows.Storage.FileProperties.DocumentProperties"; } -::windows_core::imp::interface_hierarchy!(DocumentProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for DocumentProperties {} pub struct GeotagHelper; impl GeotagHelper { #[doc = "Required features: `\"Devices_Geolocation\"`"] #[cfg(feature = "Devices_Geolocation")] pub fn GetGeotagAsync(file: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IGeotagHelperStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).GetGeotagAsync)(::windows_core::Interface::as_raw(this), file.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).GetGeotagAsync)(::windows_core::Interface::as_raw(this), file.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Devices_Geolocation\"`"] #[cfg(feature = "Devices_Geolocation")] pub fn SetGeotagFromGeolocatorAsync(file: P0, geolocator: P1) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { Self::IGeotagHelperStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).SetGeotagFromGeolocatorAsync)(::windows_core::Interface::as_raw(this), file.try_into_param()?.abi(), geolocator.into_param().abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SetGeotagFromGeolocatorAsync)(::windows_core::Interface::as_raw(this), file.into_param().abi(), geolocator.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Devices_Geolocation\"`"] #[cfg(feature = "Devices_Geolocation")] pub fn SetGeotagAsync(file: P0, geopoint: P1) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { Self::IGeotagHelperStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).SetGeotagAsync)(::windows_core::Interface::as_raw(this), file.try_into_param()?.abi(), geopoint.into_param().abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SetGeotagAsync)(::windows_core::Interface::as_raw(this), file.into_param().abi(), geopoint.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -519,6 +435,8 @@ impl ::windows_core::RuntimeName for GeotagHelper { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ImageProperties(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ImageProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ImageProperties, IStorageItemExtraProperties); impl ImageProperties { pub fn Rating(&self) -> ::windows_core::Result { let this = self; @@ -632,28 +550,28 @@ impl ImageProperties { #[cfg(feature = "Foundation_Collections")] pub fn RetrievePropertiesAsync(&self, propertiestoretrieve: P0) -> ::windows_core::Result>> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).RetrievePropertiesAsync)(::windows_core::Interface::as_raw(this), propertiestoretrieve.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn SavePropertiesAsync(&self, propertiestosave: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>>, + P0: ::windows_core::IntoParam>>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SavePropertiesAsync)(::windows_core::Interface::as_raw(this), propertiestosave.into_param().abi(), &mut result__).from_abi(result__) } } pub fn SavePropertiesAsyncOverloadDefault(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SavePropertiesAsyncOverloadDefault)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -665,18 +583,16 @@ impl ::windows_core::RuntimeType for ImageProperties { } unsafe impl ::windows_core::Interface for ImageProperties { type Vtable = IImageProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ImageProperties { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ImageProperties { const NAME: &'static str = "Windows.Storage.FileProperties.ImageProperties"; } -::windows_core::imp::interface_hierarchy!(ImageProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ImageProperties {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MusicProperties(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MusicProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(MusicProperties, IStorageItemExtraProperties); impl MusicProperties { pub fn Album(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -840,28 +756,28 @@ impl MusicProperties { #[cfg(feature = "Foundation_Collections")] pub fn RetrievePropertiesAsync(&self, propertiestoretrieve: P0) -> ::windows_core::Result>> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).RetrievePropertiesAsync)(::windows_core::Interface::as_raw(this), propertiestoretrieve.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn SavePropertiesAsync(&self, propertiestosave: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>>, + P0: ::windows_core::IntoParam>>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SavePropertiesAsync)(::windows_core::Interface::as_raw(this), propertiestosave.into_param().abi(), &mut result__).from_abi(result__) } } pub fn SavePropertiesAsyncOverloadDefault(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SavePropertiesAsyncOverloadDefault)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -873,18 +789,16 @@ impl ::windows_core::RuntimeType for MusicProperties { } unsafe impl ::windows_core::Interface for MusicProperties { type Vtable = IMusicProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MusicProperties { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MusicProperties { const NAME: &'static str = "Windows.Storage.FileProperties.MusicProperties"; } -::windows_core::imp::interface_hierarchy!(MusicProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for MusicProperties {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StorageItemContentProperties(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StorageItemContentProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(StorageItemContentProperties, IStorageItemExtraProperties); impl StorageItemContentProperties { pub fn GetMusicPropertiesAsync(&self) -> ::windows_core::Result> { let this = self; @@ -918,28 +832,28 @@ impl StorageItemContentProperties { #[cfg(feature = "Foundation_Collections")] pub fn RetrievePropertiesAsync(&self, propertiestoretrieve: P0) -> ::windows_core::Result>> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).RetrievePropertiesAsync)(::windows_core::Interface::as_raw(this), propertiestoretrieve.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn SavePropertiesAsync(&self, propertiestosave: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>>, + P0: ::windows_core::IntoParam>>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SavePropertiesAsync)(::windows_core::Interface::as_raw(this), propertiestosave.into_param().abi(), &mut result__).from_abi(result__) } } pub fn SavePropertiesAsyncOverloadDefault(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SavePropertiesAsyncOverloadDefault)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -951,30 +865,30 @@ impl ::windows_core::RuntimeType for StorageItemContentProperties { } unsafe impl ::windows_core::Interface for StorageItemContentProperties { type Vtable = IStorageItemContentProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StorageItemContentProperties { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StorageItemContentProperties { const NAME: &'static str = "Windows.Storage.FileProperties.StorageItemContentProperties"; } -::windows_core::imp::interface_hierarchy!(StorageItemContentProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for StorageItemContentProperties {} #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StorageItemThumbnail(::windows_core::IUnknown); #[cfg(feature = "Storage_Streams")] +::windows_core::imp::interface_hierarchy!(StorageItemThumbnail, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Storage_Streams")] +::windows_core::imp::required_hierarchy!(StorageItemThumbnail, super::super::Foundation::IClosable, super::Streams::IContentTypeProvider, super::Streams::IInputStream, super::Streams::IOutputStream, super::Streams::IRandomAccessStream, super::Streams::IRandomAccessStreamWithContentType); +#[cfg(feature = "Storage_Streams")] impl StorageItemThumbnail { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn ContentType(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ContentType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -984,30 +898,30 @@ 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::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), count, options, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ReadAsync)(::windows_core::Interface::as_raw(this), buffer.into_param().abi(), count, options, &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn WriteAsync(&self, buffer: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).WriteAsync)(::windows_core::Interface::as_raw(this), buffer.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn FlushAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FlushAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1016,7 +930,7 @@ impl StorageItemThumbnail { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn Size(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Size)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1025,13 +939,13 @@ impl StorageItemThumbnail { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn SetSize(&self, value: u64) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetSize)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn GetInputStreamAt(&self, position: u64) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetInputStreamAt)(::windows_core::Interface::as_raw(this), position, &mut result__).from_abi(result__) @@ -1040,7 +954,7 @@ impl StorageItemThumbnail { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn GetOutputStreamAt(&self, position: u64) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetOutputStreamAt)(::windows_core::Interface::as_raw(this), position, &mut result__).from_abi(result__) @@ -1049,7 +963,7 @@ impl StorageItemThumbnail { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn Position(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Position)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1058,13 +972,13 @@ impl StorageItemThumbnail { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn Seek(&self, position: u64) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Seek)(::windows_core::Interface::as_raw(this), position).ok() } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn CloneStream(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CloneStream)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1073,7 +987,7 @@ impl StorageItemThumbnail { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn CanRead(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CanRead)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1082,35 +996,35 @@ impl StorageItemThumbnail { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn CanWrite(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CanWrite)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn OriginalWidth(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OriginalWidth)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn OriginalHeight(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OriginalHeight)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ReturnedSmallerCachedSize(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ReturnedSmallerCachedSize)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Type(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Type)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1124,59 +1038,44 @@ impl ::windows_core::RuntimeType for StorageItemThumbnail { #[cfg(feature = "Storage_Streams")] unsafe impl ::windows_core::Interface for StorageItemThumbnail { type Vtable = super::Streams::IRandomAccessStreamWithContentType_Vtbl; -} -#[cfg(feature = "Storage_Streams")] -unsafe impl ::windows_core::ComInterface for StorageItemThumbnail { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "Storage_Streams")] impl ::windows_core::RuntimeName for StorageItemThumbnail { const NAME: &'static str = "Windows.Storage.FileProperties.StorageItemThumbnail"; } -#[cfg(feature = "Storage_Streams")] -::windows_core::imp::interface_hierarchy!(StorageItemThumbnail, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Storage_Streams")] -impl ::windows_core::CanTryInto for StorageItemThumbnail {} -#[cfg(feature = "Storage_Streams")] -impl ::windows_core::CanTryInto for StorageItemThumbnail {} -#[cfg(feature = "Storage_Streams")] -impl ::windows_core::CanTryInto for StorageItemThumbnail {} -#[cfg(feature = "Storage_Streams")] -impl ::windows_core::CanTryInto for StorageItemThumbnail {} -#[cfg(feature = "Storage_Streams")] -impl ::windows_core::CanTryInto for StorageItemThumbnail {} -#[cfg(feature = "Storage_Streams")] -impl ::windows_core::CanTryInto for StorageItemThumbnail {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VideoProperties(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VideoProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(VideoProperties, IStorageItemExtraProperties); impl VideoProperties { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn RetrievePropertiesAsync(&self, propertiestoretrieve: P0) -> ::windows_core::Result>> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).RetrievePropertiesAsync)(::windows_core::Interface::as_raw(this), propertiestoretrieve.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn SavePropertiesAsync(&self, propertiestosave: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>>, + P0: ::windows_core::IntoParam>>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SavePropertiesAsync)(::windows_core::Interface::as_raw(this), propertiestosave.into_param().abi(), &mut result__).from_abi(result__) } } pub fn SavePropertiesAsyncOverloadDefault(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SavePropertiesAsyncOverloadDefault)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1328,15 +1227,11 @@ impl ::windows_core::RuntimeType for VideoProperties { } unsafe impl ::windows_core::Interface for VideoProperties { type Vtable = IVideoProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VideoProperties { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VideoProperties { const NAME: &'static str = "Windows.Storage.FileProperties.VideoProperties"; } -::windows_core::imp::interface_hierarchy!(VideoProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for VideoProperties {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::marker::Copy, ::core::clone::Clone, ::core::default::Default)] pub struct PhotoOrientation(pub i32); 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 5cacce14f8..9ce1e74bf4 100644 --- a/crates/libs/windows/src/Windows/Storage/Pickers/Provider/mod.rs +++ b/crates/libs/windows/src/Windows/Storage/Pickers/Provider/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFileOpenPickerUI(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFileOpenPickerUI { - type Vtable = IFileOpenPickerUI_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFileOpenPickerUI { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdda45a10_f9d4_40c4_8af5_c5b6b5a61d1d); -} +::windows_core::imp::com_interface!(IFileOpenPickerUI, IFileOpenPickerUI_Vtbl, 0xdda45a10_f9d4_40c4_8af5_c5b6b5a61d1d); #[repr(C)] #[doc(hidden)] pub struct IFileOpenPickerUI_Vtbl { @@ -35,19 +26,13 @@ pub struct IFileOpenPickerUI_Vtbl { pub Closing: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveClosing: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFileRemovedEventArgs(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for IFileRemovedEventArgs { - type Vtable = IFileRemovedEventArgs_Vtbl; -} #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for IFileRemovedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x13043da7_7fca_4c2b_9eca_6890f9f00185); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + IFileRemovedEventArgs, + IFileRemovedEventArgs_Vtbl, + 0x13043da7_7fca_4c2b_9eca_6890f9f00185 +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -58,16 +43,7 @@ pub struct IFileRemovedEventArgs_Vtbl { #[cfg(not(feature = "deprecated"))] Id: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFileSavePickerUI(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFileSavePickerUI { - type Vtable = IFileSavePickerUI_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFileSavePickerUI { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9656c1e7_3e56_43cc_8a39_33c73d9d542b); -} +::windows_core::imp::com_interface!(IFileSavePickerUI, IFileSavePickerUI_Vtbl, 0x9656c1e7_3e56_43cc_8a39_33c73d9d542b); #[repr(C)] #[doc(hidden)] pub struct IFileSavePickerUI_Vtbl { @@ -86,32 +62,14 @@ pub struct IFileSavePickerUI_Vtbl { pub TargetFileRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveTargetFileRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPickerClosingDeferral(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPickerClosingDeferral { - type Vtable = IPickerClosingDeferral_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPickerClosingDeferral { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7af7f71e_1a67_4a31_ae80_e907708a619b); -} +::windows_core::imp::com_interface!(IPickerClosingDeferral, IPickerClosingDeferral_Vtbl, 0x7af7f71e_1a67_4a31_ae80_e907708a619b); #[repr(C)] #[doc(hidden)] pub struct IPickerClosingDeferral_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Complete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPickerClosingEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPickerClosingEventArgs { - type Vtable = IPickerClosingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPickerClosingEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7e59f224_b332_4f12_8b9f_a8c2f06b32cd); -} +::windows_core::imp::com_interface!(IPickerClosingEventArgs, IPickerClosingEventArgs_Vtbl, 0x7e59f224_b332_4f12_8b9f_a8c2f06b32cd); #[repr(C)] #[doc(hidden)] pub struct IPickerClosingEventArgs_Vtbl { @@ -119,16 +77,7 @@ pub struct IPickerClosingEventArgs_Vtbl { pub ClosingOperation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub IsCanceled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPickerClosingOperation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPickerClosingOperation { - type Vtable = IPickerClosingOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPickerClosingOperation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4ce9fb84_beee_4e39_a773_fc5f0eae328d); -} +::windows_core::imp::com_interface!(IPickerClosingOperation, IPickerClosingOperation_Vtbl, 0x4ce9fb84_beee_4e39_a773_fc5f0eae328d); #[repr(C)] #[doc(hidden)] pub struct IPickerClosingOperation_Vtbl { @@ -136,16 +85,7 @@ pub struct IPickerClosingOperation_Vtbl { pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Deadline: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::DateTime) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITargetFileRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITargetFileRequest { - type Vtable = ITargetFileRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITargetFileRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x42bd3355_7f88_478b_8e81_690b20340678); -} +::windows_core::imp::com_interface!(ITargetFileRequest, ITargetFileRequest_Vtbl, 0x42bd3355_7f88_478b_8e81_690b20340678); #[repr(C)] #[doc(hidden)] pub struct ITargetFileRequest_Vtbl { @@ -154,32 +94,14 @@ pub struct ITargetFileRequest_Vtbl { pub SetTargetFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITargetFileRequestDeferral(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITargetFileRequestDeferral { - type Vtable = ITargetFileRequestDeferral_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITargetFileRequestDeferral { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4aee9d91_bf15_4da9_95f6_f6b7d558225b); -} +::windows_core::imp::com_interface!(ITargetFileRequestDeferral, ITargetFileRequestDeferral_Vtbl, 0x4aee9d91_bf15_4da9_95f6_f6b7d558225b); #[repr(C)] #[doc(hidden)] pub struct ITargetFileRequestDeferral_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Complete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITargetFileRequestedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITargetFileRequestedEventArgs { - type Vtable = ITargetFileRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITargetFileRequestedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb163dbc1_1b51_4c89_a591_0fd40b3c57c9); -} +::windows_core::imp::com_interface!(ITargetFileRequestedEventArgs, ITargetFileRequestedEventArgs_Vtbl, 0xb163dbc1_1b51_4c89_a591_0fd40b3c57c9); #[repr(C)] #[doc(hidden)] pub struct ITargetFileRequestedEventArgs_Vtbl { @@ -189,15 +111,16 @@ pub struct ITargetFileRequestedEventArgs_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct FileOpenPickerUI(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(FileOpenPickerUI, ::windows_core::IUnknown, ::windows_core::IInspectable); impl FileOpenPickerUI { pub fn AddFile(&self, id: &::windows_core::HSTRING, file: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).AddFile)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(id), file.into_param().abi(), &mut result__).from_abi(result__) } } pub fn RemoveFile(&self, id: &::windows_core::HSTRING) -> ::windows_core::Result<()> { @@ -213,12 +136,12 @@ impl FileOpenPickerUI { } pub fn CanAddFile(&self, file: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CanAddFile)(::windows_core::Interface::as_raw(this), file.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CanAddFile)(::windows_core::Interface::as_raw(this), file.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -293,20 +216,19 @@ impl ::windows_core::RuntimeType for FileOpenPickerUI { } unsafe impl ::windows_core::Interface for FileOpenPickerUI { type Vtable = IFileOpenPickerUI_Vtbl; -} -unsafe impl ::windows_core::ComInterface for FileOpenPickerUI { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for FileOpenPickerUI { const NAME: &'static str = "Windows.Storage.Pickers.Provider.FileOpenPickerUI"; } -::windows_core::imp::interface_hierarchy!(FileOpenPickerUI, ::windows_core::IUnknown, ::windows_core::IInspectable); #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct FileRemovedEventArgs(::windows_core::IUnknown); #[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(FileRemovedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "deprecated")] impl FileRemovedEventArgs { #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] @@ -325,20 +247,16 @@ impl ::windows_core::RuntimeType for FileRemovedEventArgs { #[cfg(feature = "deprecated")] unsafe impl ::windows_core::Interface for FileRemovedEventArgs { type Vtable = IFileRemovedEventArgs_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for FileRemovedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "deprecated")] impl ::windows_core::RuntimeName for FileRemovedEventArgs { const NAME: &'static str = "Windows.Storage.Pickers.Provider.FileRemovedEventArgs"; } -#[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(FileRemovedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct FileSavePickerUI(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(FileSavePickerUI, ::windows_core::IUnknown, ::windows_core::IInspectable); impl FileSavePickerUI { pub fn Title(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -415,17 +333,15 @@ impl ::windows_core::RuntimeType for FileSavePickerUI { } unsafe impl ::windows_core::Interface for FileSavePickerUI { type Vtable = IFileSavePickerUI_Vtbl; -} -unsafe impl ::windows_core::ComInterface for FileSavePickerUI { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for FileSavePickerUI { const NAME: &'static str = "Windows.Storage.Pickers.Provider.FileSavePickerUI"; } -::windows_core::imp::interface_hierarchy!(FileSavePickerUI, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PickerClosingDeferral(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PickerClosingDeferral, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PickerClosingDeferral { pub fn Complete(&self) -> ::windows_core::Result<()> { let this = self; @@ -437,17 +353,15 @@ impl ::windows_core::RuntimeType for PickerClosingDeferral { } unsafe impl ::windows_core::Interface for PickerClosingDeferral { type Vtable = IPickerClosingDeferral_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PickerClosingDeferral { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PickerClosingDeferral { const NAME: &'static str = "Windows.Storage.Pickers.Provider.PickerClosingDeferral"; } -::windows_core::imp::interface_hierarchy!(PickerClosingDeferral, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PickerClosingEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PickerClosingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PickerClosingEventArgs { pub fn ClosingOperation(&self) -> ::windows_core::Result { let this = self; @@ -469,17 +383,15 @@ impl ::windows_core::RuntimeType for PickerClosingEventArgs { } unsafe impl ::windows_core::Interface for PickerClosingEventArgs { type Vtable = IPickerClosingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PickerClosingEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PickerClosingEventArgs { const NAME: &'static str = "Windows.Storage.Pickers.Provider.PickerClosingEventArgs"; } -::windows_core::imp::interface_hierarchy!(PickerClosingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PickerClosingOperation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PickerClosingOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PickerClosingOperation { pub fn GetDeferral(&self) -> ::windows_core::Result { let this = self; @@ -501,17 +413,15 @@ impl ::windows_core::RuntimeType for PickerClosingOperation { } unsafe impl ::windows_core::Interface for PickerClosingOperation { type Vtable = IPickerClosingOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PickerClosingOperation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PickerClosingOperation { const NAME: &'static str = "Windows.Storage.Pickers.Provider.PickerClosingOperation"; } -::windows_core::imp::interface_hierarchy!(PickerClosingOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct TargetFileRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(TargetFileRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl TargetFileRequest { pub fn TargetFile(&self) -> ::windows_core::Result { let this = self; @@ -522,10 +432,10 @@ impl TargetFileRequest { } pub fn SetTargetFile(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetTargetFile)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetTargetFile)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn GetDeferral(&self) -> ::windows_core::Result { let this = self; @@ -540,17 +450,15 @@ impl ::windows_core::RuntimeType for TargetFileRequest { } unsafe impl ::windows_core::Interface for TargetFileRequest { type Vtable = ITargetFileRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TargetFileRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for TargetFileRequest { const NAME: &'static str = "Windows.Storage.Pickers.Provider.TargetFileRequest"; } -::windows_core::imp::interface_hierarchy!(TargetFileRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct TargetFileRequestDeferral(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(TargetFileRequestDeferral, ::windows_core::IUnknown, ::windows_core::IInspectable); impl TargetFileRequestDeferral { pub fn Complete(&self) -> ::windows_core::Result<()> { let this = self; @@ -562,17 +470,15 @@ impl ::windows_core::RuntimeType for TargetFileRequestDeferral { } unsafe impl ::windows_core::Interface for TargetFileRequestDeferral { type Vtable = ITargetFileRequestDeferral_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TargetFileRequestDeferral { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for TargetFileRequestDeferral { const NAME: &'static str = "Windows.Storage.Pickers.Provider.TargetFileRequestDeferral"; } -::windows_core::imp::interface_hierarchy!(TargetFileRequestDeferral, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct TargetFileRequestedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(TargetFileRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl TargetFileRequestedEventArgs { pub fn Request(&self) -> ::windows_core::Result { let this = self; @@ -587,14 +493,11 @@ impl ::windows_core::RuntimeType for TargetFileRequestedEventArgs { } unsafe impl ::windows_core::Interface for TargetFileRequestedEventArgs { type Vtable = ITargetFileRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TargetFileRequestedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for TargetFileRequestedEventArgs { const NAME: &'static str = "Windows.Storage.Pickers.Provider.TargetFileRequestedEventArgs"; } -::windows_core::imp::interface_hierarchy!(TargetFileRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::marker::Copy, ::core::clone::Clone, ::core::default::Default)] pub struct AddFileResult(pub i32); diff --git a/crates/libs/windows/src/Windows/Storage/Pickers/mod.rs b/crates/libs/windows/src/Windows/Storage/Pickers/mod.rs index 7db4fc4491..24cb9abc39 100644 --- a/crates/libs/windows/src/Windows/Storage/Pickers/mod.rs +++ b/crates/libs/windows/src/Windows/Storage/Pickers/mod.rs @@ -1,16 +1,7 @@ #[cfg(feature = "Storage_Pickers_Provider")] #[doc = "Required features: `\"Storage_Pickers_Provider\"`"] pub mod Provider; -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFileOpenPicker(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFileOpenPicker { - type Vtable = IFileOpenPicker_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFileOpenPicker { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2ca8278a_12c5_4c5f_8977_94547793c241); -} +::windows_core::imp::com_interface!(IFileOpenPicker, IFileOpenPicker_Vtbl, 0x2ca8278a_12c5_4c5f_8977_94547793c241); #[repr(C)] #[doc(hidden)] pub struct IFileOpenPicker_Vtbl { @@ -33,16 +24,7 @@ pub struct IFileOpenPicker_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] PickMultipleFilesAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFileOpenPicker2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFileOpenPicker2 { - type Vtable = IFileOpenPicker2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFileOpenPicker2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8ceb6cd2_b446_46f7_b265_90f8e55ad650); -} +::windows_core::imp::com_interface!(IFileOpenPicker2, IFileOpenPicker2_Vtbl, 0x8ceb6cd2_b446_46f7_b265_90f8e55ad650); #[repr(C)] #[doc(hidden)] pub struct IFileOpenPicker2_Vtbl { @@ -60,16 +42,7 @@ pub struct IFileOpenPicker2_Vtbl { #[cfg(not(feature = "deprecated"))] PickMultipleFilesAndContinue: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFileOpenPicker3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFileOpenPicker3 { - type Vtable = IFileOpenPicker3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFileOpenPicker3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd9a5c5b3_c5dc_5b98_bd80_a8d0ca0584d8); -} +::windows_core::imp::com_interface!(IFileOpenPicker3, IFileOpenPicker3_Vtbl, 0xd9a5c5b3_c5dc_5b98_bd80_a8d0ca0584d8); #[repr(C)] #[doc(hidden)] pub struct IFileOpenPicker3_Vtbl { @@ -79,16 +52,7 @@ pub struct IFileOpenPicker3_Vtbl { #[cfg(not(feature = "System"))] User: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFileOpenPickerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFileOpenPickerStatics { - type Vtable = IFileOpenPickerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFileOpenPickerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6821573b_2f02_4833_96d4_abbfad72b67b); -} +::windows_core::imp::com_interface!(IFileOpenPickerStatics, IFileOpenPickerStatics_Vtbl, 0x6821573b_2f02_4833_96d4_abbfad72b67b); #[repr(C)] #[doc(hidden)] pub struct IFileOpenPickerStatics_Vtbl { @@ -98,16 +62,7 @@ pub struct IFileOpenPickerStatics_Vtbl { #[cfg(not(feature = "deprecated"))] ResumePickSingleFileAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFileOpenPickerStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFileOpenPickerStatics2 { - type Vtable = IFileOpenPickerStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFileOpenPickerStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe8917415_eddd_5c98_b6f3_366fdfcad392); -} +::windows_core::imp::com_interface!(IFileOpenPickerStatics2, IFileOpenPickerStatics2_Vtbl, 0xe8917415_eddd_5c98_b6f3_366fdfcad392); #[repr(C)] #[doc(hidden)] pub struct IFileOpenPickerStatics2_Vtbl { @@ -117,32 +72,14 @@ pub struct IFileOpenPickerStatics2_Vtbl { #[cfg(not(feature = "System"))] CreateForUser: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFileOpenPickerWithOperationId(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFileOpenPickerWithOperationId { - type Vtable = IFileOpenPickerWithOperationId_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFileOpenPickerWithOperationId { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3f57b569_2522_4ca5_aa73_a15509f1fcbf); -} +::windows_core::imp::com_interface!(IFileOpenPickerWithOperationId, IFileOpenPickerWithOperationId_Vtbl, 0x3f57b569_2522_4ca5_aa73_a15509f1fcbf); #[repr(C)] #[doc(hidden)] pub struct IFileOpenPickerWithOperationId_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub PickSingleFileAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pickeroperationid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFileSavePicker(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFileSavePicker { - type Vtable = IFileSavePicker_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFileSavePicker { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3286ffcb_617f_4cc5_af6a_b3fdf29ad145); -} +::windows_core::imp::com_interface!(IFileSavePicker, IFileSavePicker_Vtbl, 0x3286ffcb_617f_4cc5_af6a_b3fdf29ad145); #[repr(C)] #[doc(hidden)] pub struct IFileSavePicker_Vtbl { @@ -165,16 +102,7 @@ pub struct IFileSavePicker_Vtbl { pub SetSuggestedFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub PickSaveFileAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFileSavePicker2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFileSavePicker2 { - type Vtable = IFileSavePicker2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFileSavePicker2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0ec313a2_d24b_449a_8197_e89104fd42cc); -} +::windows_core::imp::com_interface!(IFileSavePicker2, IFileSavePicker2_Vtbl, 0x0ec313a2_d24b_449a_8197_e89104fd42cc); #[repr(C)] #[doc(hidden)] pub struct IFileSavePicker2_Vtbl { @@ -188,16 +116,7 @@ pub struct IFileSavePicker2_Vtbl { #[cfg(not(feature = "deprecated"))] PickSaveFileAndContinue: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFileSavePicker3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFileSavePicker3 { - type Vtable = IFileSavePicker3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFileSavePicker3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x698aec69_ba3c_4e51_bd90_4abcbbf4cfaf); -} +::windows_core::imp::com_interface!(IFileSavePicker3, IFileSavePicker3_Vtbl, 0x698aec69_ba3c_4e51_bd90_4abcbbf4cfaf); #[repr(C)] #[doc(hidden)] pub struct IFileSavePicker3_Vtbl { @@ -205,16 +124,7 @@ pub struct IFileSavePicker3_Vtbl { pub EnterpriseId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetEnterpriseId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFileSavePicker4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFileSavePicker4 { - type Vtable = IFileSavePicker4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFileSavePicker4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe7d83a5a_ddfa_5de0_8b70_c842c21988ec); -} +::windows_core::imp::com_interface!(IFileSavePicker4, IFileSavePicker4_Vtbl, 0xe7d83a5a_ddfa_5de0_8b70_c842c21988ec); #[repr(C)] #[doc(hidden)] pub struct IFileSavePicker4_Vtbl { @@ -224,16 +134,7 @@ pub struct IFileSavePicker4_Vtbl { #[cfg(not(feature = "System"))] User: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFileSavePickerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFileSavePickerStatics { - type Vtable = IFileSavePickerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFileSavePickerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x28e3cf9e_961c_5e2c_aed7_e64737f4ce37); -} +::windows_core::imp::com_interface!(IFileSavePickerStatics, IFileSavePickerStatics_Vtbl, 0x28e3cf9e_961c_5e2c_aed7_e64737f4ce37); #[repr(C)] #[doc(hidden)] pub struct IFileSavePickerStatics_Vtbl { @@ -243,16 +144,7 @@ pub struct IFileSavePickerStatics_Vtbl { #[cfg(not(feature = "System"))] CreateForUser: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFolderPicker(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFolderPicker { - type Vtable = IFolderPicker_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFolderPicker { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x084f7799_f3fb_400a_99b1_7b4a772fd60d); -} +::windows_core::imp::com_interface!(IFolderPicker, IFolderPicker_Vtbl, 0x084f7799_f3fb_400a_99b1_7b4a772fd60d); #[repr(C)] #[doc(hidden)] pub struct IFolderPicker_Vtbl { @@ -271,16 +163,7 @@ pub struct IFolderPicker_Vtbl { FileTypeFilter: usize, pub PickSingleFolderAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFolderPicker2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFolderPicker2 { - type Vtable = IFolderPicker2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFolderPicker2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8eb3ba97_dc85_4616_be94_9660881f2f5d); -} +::windows_core::imp::com_interface!(IFolderPicker2, IFolderPicker2_Vtbl, 0x8eb3ba97_dc85_4616_be94_9660881f2f5d); #[repr(C)] #[doc(hidden)] pub struct IFolderPicker2_Vtbl { @@ -294,16 +177,7 @@ pub struct IFolderPicker2_Vtbl { #[cfg(not(feature = "deprecated"))] PickFolderAndContinue: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFolderPicker3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFolderPicker3 { - type Vtable = IFolderPicker3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFolderPicker3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x673b1e29_d326_53c0_bd24_a25c714cee36); -} +::windows_core::imp::com_interface!(IFolderPicker3, IFolderPicker3_Vtbl, 0x673b1e29_d326_53c0_bd24_a25c714cee36); #[repr(C)] #[doc(hidden)] pub struct IFolderPicker3_Vtbl { @@ -313,16 +187,7 @@ pub struct IFolderPicker3_Vtbl { #[cfg(not(feature = "System"))] User: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFolderPickerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFolderPickerStatics { - type Vtable = IFolderPickerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFolderPickerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9be34740_7ca1_5942_a3c8_46f2551ecff3); -} +::windows_core::imp::com_interface!(IFolderPickerStatics, IFolderPickerStatics_Vtbl, 0x9be34740_7ca1_5942_a3c8_46f2551ecff3); #[repr(C)] #[doc(hidden)] pub struct IFolderPickerStatics_Vtbl { @@ -338,11 +203,15 @@ pub struct IFolderPickerStatics_Vtbl { #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct FileExtensionVector(::windows_core::IUnknown); #[cfg(feature = "Foundation_Collections")] +::windows_core::imp::interface_hierarchy!(FileExtensionVector, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(FileExtensionVector, super::super::Foundation::Collections::IIterable::<::windows_core::HSTRING>, super::super::Foundation::Collections::IVector::<::windows_core::HSTRING>); +#[cfg(feature = "Foundation_Collections")] impl FileExtensionVector { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -443,10 +312,7 @@ impl ::windows_core::RuntimeType for FileExtensionVector { #[cfg(feature = "Foundation_Collections")] unsafe impl ::windows_core::Interface for FileExtensionVector { type Vtable = super::super::Foundation::Collections::IVector_Vtbl<::windows_core::HSTRING>; -} -#[cfg(feature = "Foundation_Collections")] -unsafe impl ::windows_core::ComInterface for FileExtensionVector { - const IID: ::windows_core::GUID = as ::windows_core::ComInterface>::IID; + const IID: ::windows_core::GUID = as ::windows_core::Interface>::IID; } #[cfg(feature = "Foundation_Collections")] impl ::windows_core::RuntimeName for FileExtensionVector { @@ -465,22 +331,17 @@ impl ::core::iter::IntoIterator for &FileExtensionVector { type Item = ::windows_core::HSTRING; type IntoIter = super::super::Foundation::Collections::VectorIterator; fn into_iter(self) -> Self::IntoIter { - super::super::Foundation::Collections::VectorIterator::new(::windows_core::ComInterface::cast(self).ok()) + super::super::Foundation::Collections::VectorIterator::new(::windows_core::Interface::cast(self).ok()) } } #[cfg(feature = "Foundation_Collections")] -::windows_core::imp::interface_hierarchy!(FileExtensionVector, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for FileExtensionVector {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for FileExtensionVector {} -#[cfg(feature = "Foundation_Collections")] unsafe impl ::core::marker::Send for FileExtensionVector {} #[cfg(feature = "Foundation_Collections")] unsafe impl ::core::marker::Sync for FileExtensionVector {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct FileOpenPicker(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(FileOpenPicker, ::windows_core::IUnknown, ::windows_core::IInspectable); impl FileOpenPicker { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -561,7 +422,7 @@ impl FileOpenPicker { #[doc = "Required features: `\"Foundation_Collections\"`, `\"deprecated\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] pub fn ContinuationData(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ContinuationData)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -570,19 +431,19 @@ impl FileOpenPicker { #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] pub fn PickSingleFileAndContinue(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).PickSingleFileAndContinue)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] pub fn PickMultipleFilesAndContinue(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).PickMultipleFilesAndContinue)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -608,7 +469,7 @@ impl FileOpenPicker { }) } pub fn PickSingleFileAsync2(&self, pickeroperationid: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PickSingleFileAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(pickeroperationid), &mut result__).from_abi(result__) @@ -630,14 +491,11 @@ impl ::windows_core::RuntimeType for FileOpenPicker { } unsafe impl ::windows_core::Interface for FileOpenPicker { type Vtable = IFileOpenPicker_Vtbl; -} -unsafe impl ::windows_core::ComInterface for FileOpenPicker { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for FileOpenPicker { const NAME: &'static str = "Windows.Storage.Pickers.FileOpenPicker"; } -::windows_core::imp::interface_hierarchy!(FileOpenPicker, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for FileOpenPicker {} unsafe impl ::core::marker::Sync for FileOpenPicker {} #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -646,11 +504,15 @@ unsafe impl ::core::marker::Sync for FileOpenPicker {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct FilePickerFileTypesOrderedMap(::windows_core::IUnknown); #[cfg(feature = "Foundation_Collections")] +::windows_core::imp::interface_hierarchy!(FilePickerFileTypesOrderedMap, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(FilePickerFileTypesOrderedMap, super::super::Foundation::Collections::IIterable::>>, super::super::Foundation::Collections::IMap::<::windows_core::HSTRING, super::super::Foundation::Collections::IVector::<::windows_core::HSTRING>>); +#[cfg(feature = "Foundation_Collections")] impl FilePickerFileTypesOrderedMap { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> ::windows_core::Result>>> { - let this = &::windows_core::ComInterface::cast::>>>(self)?; + let this = &::windows_core::Interface::cast::>>>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -696,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::TryIntoParam>, + P0: ::windows_core::IntoParam>, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).Insert)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -724,10 +586,7 @@ impl ::windows_core::RuntimeType for FilePickerFileTypesOrderedMap { #[cfg(feature = "Foundation_Collections")] unsafe impl ::windows_core::Interface for FilePickerFileTypesOrderedMap { type Vtable = super::super::Foundation::Collections::IMap_Vtbl<::windows_core::HSTRING, super::super::Foundation::Collections::IVector<::windows_core::HSTRING>>; -} -#[cfg(feature = "Foundation_Collections")] -unsafe impl ::windows_core::ComInterface for FilePickerFileTypesOrderedMap { - const IID: ::windows_core::GUID = > as ::windows_core::ComInterface>::IID; + const IID: ::windows_core::GUID = > as ::windows_core::Interface>::IID; } #[cfg(feature = "Foundation_Collections")] impl ::windows_core::RuntimeName for FilePickerFileTypesOrderedMap { @@ -750,12 +609,6 @@ impl ::core::iter::IntoIterator for &FilePickerFileTypesOrderedMap { } } #[cfg(feature = "Foundation_Collections")] -::windows_core::imp::interface_hierarchy!(FilePickerFileTypesOrderedMap, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto>>> for FilePickerFileTypesOrderedMap {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto>> for FilePickerFileTypesOrderedMap {} -#[cfg(feature = "Foundation_Collections")] unsafe impl ::core::marker::Send for FilePickerFileTypesOrderedMap {} #[cfg(feature = "Foundation_Collections")] unsafe impl ::core::marker::Sync for FilePickerFileTypesOrderedMap {} @@ -765,11 +618,15 @@ unsafe impl ::core::marker::Sync for FilePickerFileTypesOrderedMap {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct FilePickerSelectedFilesArray(::windows_core::IUnknown); #[cfg(feature = "Foundation_Collections")] +::windows_core::imp::interface_hierarchy!(FilePickerSelectedFilesArray, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(FilePickerSelectedFilesArray, super::super::Foundation::Collections::IIterable::, super::super::Foundation::Collections::IVectorView::); +#[cfg(feature = "Foundation_Collections")] impl FilePickerSelectedFilesArray { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -822,10 +679,7 @@ impl ::windows_core::RuntimeType for FilePickerSelectedFilesArray { #[cfg(feature = "Foundation_Collections")] unsafe impl ::windows_core::Interface for FilePickerSelectedFilesArray { type Vtable = super::super::Foundation::Collections::IVectorView_Vtbl; -} -#[cfg(feature = "Foundation_Collections")] -unsafe impl ::windows_core::ComInterface for FilePickerSelectedFilesArray { - const IID: ::windows_core::GUID = as ::windows_core::ComInterface>::IID; + const IID: ::windows_core::GUID = as ::windows_core::Interface>::IID; } #[cfg(feature = "Foundation_Collections")] impl ::windows_core::RuntimeName for FilePickerSelectedFilesArray { @@ -844,22 +698,17 @@ impl ::core::iter::IntoIterator for &FilePickerSelectedFilesArray { type Item = super::StorageFile; type IntoIter = super::super::Foundation::Collections::VectorViewIterator; fn into_iter(self) -> Self::IntoIter { - super::super::Foundation::Collections::VectorViewIterator::new(::windows_core::ComInterface::cast(self).ok()) + super::super::Foundation::Collections::VectorViewIterator::new(::windows_core::Interface::cast(self).ok()) } } #[cfg(feature = "Foundation_Collections")] -::windows_core::imp::interface_hierarchy!(FilePickerSelectedFilesArray, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for FilePickerSelectedFilesArray {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for FilePickerSelectedFilesArray {} -#[cfg(feature = "Foundation_Collections")] unsafe impl ::core::marker::Send for FilePickerSelectedFilesArray {} #[cfg(feature = "Foundation_Collections")] unsafe impl ::core::marker::Sync for FilePickerSelectedFilesArray {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct FileSavePicker(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(FileSavePicker, ::windows_core::IUnknown, ::windows_core::IInspectable); impl FileSavePicker { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -956,7 +805,7 @@ impl FileSavePicker { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn ContinuationData(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ContinuationData)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -965,24 +814,24 @@ impl FileSavePicker { #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] pub fn PickSaveFileAndContinue(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).PickSaveFileAndContinue)(::windows_core::Interface::as_raw(this)).ok() } } pub fn EnterpriseId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).EnterpriseId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetEnterpriseId(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetEnterpriseId)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1010,19 +859,17 @@ impl ::windows_core::RuntimeType for FileSavePicker { } unsafe impl ::windows_core::Interface for FileSavePicker { type Vtable = IFileSavePicker_Vtbl; -} -unsafe impl ::windows_core::ComInterface for FileSavePicker { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for FileSavePicker { const NAME: &'static str = "Windows.Storage.Pickers.FileSavePicker"; } -::windows_core::imp::interface_hierarchy!(FileSavePicker, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for FileSavePicker {} unsafe impl ::core::marker::Sync for FileSavePicker {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct FolderPicker(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(FolderPicker, ::windows_core::IUnknown, ::windows_core::IInspectable); impl FolderPicker { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1094,7 +941,7 @@ impl FolderPicker { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn ContinuationData(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ContinuationData)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1103,13 +950,13 @@ impl FolderPicker { #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] pub fn PickFolderAndContinue(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).PickFolderAndContinue)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1137,14 +984,11 @@ impl ::windows_core::RuntimeType for FolderPicker { } unsafe impl ::windows_core::Interface for FolderPicker { type Vtable = IFolderPicker_Vtbl; -} -unsafe impl ::windows_core::ComInterface for FolderPicker { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for FolderPicker { const NAME: &'static str = "Windows.Storage.Pickers.FolderPicker"; } -::windows_core::imp::interface_hierarchy!(FolderPicker, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for FolderPicker {} unsafe impl ::core::marker::Sync for FolderPicker {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Storage/Provider/impl.rs b/crates/libs/windows/src/Windows/Storage/Provider/impl.rs index 9131fad63d..4931ccd39b 100644 --- a/crates/libs/windows/src/Windows/Storage/Provider/impl.rs +++ b/crates/libs/windows/src/Windows/Storage/Provider/impl.rs @@ -28,7 +28,7 @@ impl IStorageProviderItemPropertySource_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IStorageProviderKnownFolderSyncInfoSource_Impl: Sized { @@ -77,7 +77,7 @@ impl IStorageProviderKnownFolderSyncInfoSource_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IStorageProviderKnownFolderSyncInfoSourceFactory_Impl: Sized { @@ -106,7 +106,7 @@ impl IStorageProviderKnownFolderSyncInfoSourceFactory_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IStorageProviderPropertyCapabilities_Impl: Sized { @@ -134,7 +134,7 @@ impl IStorageProviderPropertyCapabilities_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IStorageProviderStatusUISource_Impl: Sized { @@ -183,7 +183,7 @@ impl IStorageProviderStatusUISource_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IStorageProviderStatusUISourceFactory_Impl: Sized { @@ -212,7 +212,7 @@ impl IStorageProviderStatusUISourceFactory_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IStorageProviderUICommand_Impl: Sized { @@ -289,7 +289,7 @@ impl IStorageProviderUICommand_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IStorageProviderUriSource_Impl: Sized { @@ -318,6 +318,6 @@ impl IStorageProviderUriSource_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/Storage/Provider/mod.rs b/crates/libs/windows/src/Windows/Storage/Provider/mod.rs index f4dfd0af04..062274e4b7 100644 --- a/crates/libs/windows/src/Windows/Storage/Provider/mod.rs +++ b/crates/libs/windows/src/Windows/Storage/Provider/mod.rs @@ -1,29 +1,11 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICachedFileUpdaterStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICachedFileUpdaterStatics { - type Vtable = ICachedFileUpdaterStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICachedFileUpdaterStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9fc90920_7bcf_4888_a81e_102d7034d7ce); -} +::windows_core::imp::com_interface!(ICachedFileUpdaterStatics, ICachedFileUpdaterStatics_Vtbl, 0x9fc90920_7bcf_4888_a81e_102d7034d7ce); #[repr(C)] #[doc(hidden)] pub struct ICachedFileUpdaterStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub SetUpdateInformation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, file: *mut ::core::ffi::c_void, contentid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, readmode: ReadActivationMode, writemode: WriteActivationMode, options: CachedFileOptions) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICachedFileUpdaterUI(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICachedFileUpdaterUI { - type Vtable = ICachedFileUpdaterUI_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICachedFileUpdaterUI { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9e6f41e6_baf2_4a97_b600_9333f5df80fd); -} +::windows_core::imp::com_interface!(ICachedFileUpdaterUI, ICachedFileUpdaterUI_Vtbl, 0x9e6f41e6_baf2_4a97_b600_9333f5df80fd); #[repr(C)] #[doc(hidden)] pub struct ICachedFileUpdaterUI_Vtbl { @@ -37,16 +19,7 @@ pub struct ICachedFileUpdaterUI_Vtbl { pub RemoveUIRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub UIStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut UIStatus) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICachedFileUpdaterUI2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICachedFileUpdaterUI2 { - type Vtable = ICachedFileUpdaterUI2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICachedFileUpdaterUI2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8856a21c_8699_4340_9f49_f7cad7fe8991); -} +::windows_core::imp::com_interface!(ICachedFileUpdaterUI2, ICachedFileUpdaterUI2_Vtbl, 0x8856a21c_8699_4340_9f49_f7cad7fe8991); #[repr(C)] #[doc(hidden)] pub struct ICachedFileUpdaterUI2_Vtbl { @@ -54,16 +27,7 @@ pub struct ICachedFileUpdaterUI2_Vtbl { pub UpdateRequest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFileUpdateRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFileUpdateRequest { - type Vtable = IFileUpdateRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFileUpdateRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x40c82536_c1fe_4d93_a792_1e736bc70837); -} +::windows_core::imp::com_interface!(IFileUpdateRequest, IFileUpdateRequest_Vtbl, 0x40c82536_c1fe_4d93_a792_1e736bc70837); #[repr(C)] #[doc(hidden)] pub struct IFileUpdateRequest_Vtbl { @@ -75,16 +39,7 @@ pub struct IFileUpdateRequest_Vtbl { pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub UpdateLocalFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFileUpdateRequest2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFileUpdateRequest2 { - type Vtable = IFileUpdateRequest2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFileUpdateRequest2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x82484648_bdbe_447b_a2ee_7afe6a032a94); -} +::windows_core::imp::com_interface!(IFileUpdateRequest2, IFileUpdateRequest2_Vtbl, 0x82484648_bdbe_447b_a2ee_7afe6a032a94); #[repr(C)] #[doc(hidden)] pub struct IFileUpdateRequest2_Vtbl { @@ -92,48 +47,21 @@ pub struct IFileUpdateRequest2_Vtbl { pub UserInputNeededMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetUserInputNeededMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFileUpdateRequestDeferral(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFileUpdateRequestDeferral { - type Vtable = IFileUpdateRequestDeferral_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFileUpdateRequestDeferral { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xffcedb2b_8ade_44a5_bb00_164c4e72f13a); -} +::windows_core::imp::com_interface!(IFileUpdateRequestDeferral, IFileUpdateRequestDeferral_Vtbl, 0xffcedb2b_8ade_44a5_bb00_164c4e72f13a); #[repr(C)] #[doc(hidden)] pub struct IFileUpdateRequestDeferral_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Complete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFileUpdateRequestedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFileUpdateRequestedEventArgs { - type Vtable = IFileUpdateRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFileUpdateRequestedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7b0a9342_3905_438d_aaef_78ae265f8dd2); -} +::windows_core::imp::com_interface!(IFileUpdateRequestedEventArgs, IFileUpdateRequestedEventArgs_Vtbl, 0x7b0a9342_3905_438d_aaef_78ae265f8dd2); #[repr(C)] #[doc(hidden)] pub struct IFileUpdateRequestedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Request: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageProviderFileTypeInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorageProviderFileTypeInfo { - type Vtable = IStorageProviderFileTypeInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageProviderFileTypeInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1955b9c1_0184_5a88_87df_4544f464365d); -} +::windows_core::imp::com_interface!(IStorageProviderFileTypeInfo, IStorageProviderFileTypeInfo_Vtbl, 0x1955b9c1_0184_5a88_87df_4544f464365d); #[repr(C)] #[doc(hidden)] pub struct IStorageProviderFileTypeInfo_Vtbl { @@ -141,32 +69,14 @@ pub struct IStorageProviderFileTypeInfo_Vtbl { pub FileExtension: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub IconResource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageProviderFileTypeInfoFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorageProviderFileTypeInfoFactory { - type Vtable = IStorageProviderFileTypeInfoFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageProviderFileTypeInfoFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3fa12c6f_cce6_5d5d_80b1_389e7cf92dbf); -} +::windows_core::imp::com_interface!(IStorageProviderFileTypeInfoFactory, IStorageProviderFileTypeInfoFactory_Vtbl, 0x3fa12c6f_cce6_5d5d_80b1_389e7cf92dbf); #[repr(C)] #[doc(hidden)] pub struct IStorageProviderFileTypeInfoFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fileextension: ::std::mem::MaybeUninit<::windows_core::HSTRING>, iconresource: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageProviderGetContentInfoForPathResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorageProviderGetContentInfoForPathResult { - type Vtable = IStorageProviderGetContentInfoForPathResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageProviderGetContentInfoForPathResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2564711d_aa89_4d12_82e3_f72a92e33966); -} +::windows_core::imp::com_interface!(IStorageProviderGetContentInfoForPathResult, IStorageProviderGetContentInfoForPathResult_Vtbl, 0x2564711d_aa89_4d12_82e3_f72a92e33966); #[repr(C)] #[doc(hidden)] pub struct IStorageProviderGetContentInfoForPathResult_Vtbl { @@ -178,16 +88,7 @@ pub struct IStorageProviderGetContentInfoForPathResult_Vtbl { pub ContentId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetContentId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageProviderGetPathForContentUriResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorageProviderGetPathForContentUriResult { - type Vtable = IStorageProviderGetPathForContentUriResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageProviderGetPathForContentUriResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x63711a9d_4118_45a6_acb6_22c49d019f40); -} +::windows_core::imp::com_interface!(IStorageProviderGetPathForContentUriResult, IStorageProviderGetPathForContentUriResult_Vtbl, 0x63711a9d_4118_45a6_acb6_22c49d019f40); #[repr(C)] #[doc(hidden)] pub struct IStorageProviderGetPathForContentUriResult_Vtbl { @@ -197,16 +98,7 @@ pub struct IStorageProviderGetPathForContentUriResult_Vtbl { pub Path: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageProviderItemPropertiesStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorageProviderItemPropertiesStatics { - type Vtable = IStorageProviderItemPropertiesStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageProviderItemPropertiesStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2d2c1c97_2704_4729_8fa9_7e6b8e158c2f); -} +::windows_core::imp::com_interface!(IStorageProviderItemPropertiesStatics, IStorageProviderItemPropertiesStatics_Vtbl, 0x2d2c1c97_2704_4729_8fa9_7e6b8e158c2f); #[repr(C)] #[doc(hidden)] pub struct IStorageProviderItemPropertiesStatics_Vtbl { @@ -216,16 +108,7 @@ pub struct IStorageProviderItemPropertiesStatics_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] SetAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageProviderItemProperty(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorageProviderItemProperty { - type Vtable = IStorageProviderItemProperty_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageProviderItemProperty { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x476cb558_730b_4188_b7b5_63b716ed476d); -} +::windows_core::imp::com_interface!(IStorageProviderItemProperty, IStorageProviderItemProperty_Vtbl, 0x476cb558_730b_4188_b7b5_63b716ed476d); #[repr(C)] #[doc(hidden)] pub struct IStorageProviderItemProperty_Vtbl { @@ -237,16 +120,7 @@ pub struct IStorageProviderItemProperty_Vtbl { pub SetIconResource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub IconResource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageProviderItemPropertyDefinition(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorageProviderItemPropertyDefinition { - type Vtable = IStorageProviderItemPropertyDefinition_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageProviderItemPropertyDefinition { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc5b383bb_ff1f_4298_831e_ff1c08089690); -} +::windows_core::imp::com_interface!(IStorageProviderItemPropertyDefinition, IStorageProviderItemPropertyDefinition_Vtbl, 0xc5b383bb_ff1f_4298_831e_ff1c08089690); #[repr(C)] #[doc(hidden)] pub struct IStorageProviderItemPropertyDefinition_Vtbl { @@ -256,9 +130,8 @@ pub struct IStorageProviderItemPropertyDefinition_Vtbl { pub DisplayNameResource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetDisplayNameResource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageProviderItemPropertySource(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IStorageProviderItemPropertySource, IStorageProviderItemPropertySource_Vtbl, 0x8f6f9c3e_f632_4a9b_8d99_d2d7a11df56a); +::windows_core::imp::interface_hierarchy!(IStorageProviderItemPropertySource, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IStorageProviderItemPropertySource { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -270,16 +143,9 @@ impl IStorageProviderItemPropertySource { } } } -::windows_core::imp::interface_hierarchy!(IStorageProviderItemPropertySource, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IStorageProviderItemPropertySource { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IStorageProviderItemPropertySource { - type Vtable = IStorageProviderItemPropertySource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageProviderItemPropertySource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8f6f9c3e_f632_4a9b_8d99_d2d7a11df56a); -} #[repr(C)] #[doc(hidden)] pub struct IStorageProviderItemPropertySource_Vtbl { @@ -289,16 +155,7 @@ pub struct IStorageProviderItemPropertySource_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetItemProperties: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageProviderKnownFolderEntry(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorageProviderKnownFolderEntry { - type Vtable = IStorageProviderKnownFolderEntry_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageProviderKnownFolderEntry { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeffa7db0_1d44_596b_8464_928800c5e2d8); -} +::windows_core::imp::com_interface!(IStorageProviderKnownFolderEntry, IStorageProviderKnownFolderEntry_Vtbl, 0xeffa7db0_1d44_596b_8464_928800c5e2d8); #[repr(C)] #[doc(hidden)] pub struct IStorageProviderKnownFolderEntry_Vtbl { @@ -308,16 +165,7 @@ pub struct IStorageProviderKnownFolderEntry_Vtbl { pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut StorageProviderKnownFolderSyncStatus) -> ::windows_core::HRESULT, pub SetStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: StorageProviderKnownFolderSyncStatus) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageProviderKnownFolderSyncInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorageProviderKnownFolderSyncInfo { - type Vtable = IStorageProviderKnownFolderSyncInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageProviderKnownFolderSyncInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x98b017ce_ffc1_5b11_ae77_cc17afec1049); -} +::windows_core::imp::com_interface!(IStorageProviderKnownFolderSyncInfo, IStorageProviderKnownFolderSyncInfo_Vtbl, 0x98b017ce_ffc1_5b11_ae77_cc17afec1049); #[repr(C)] #[doc(hidden)] pub struct IStorageProviderKnownFolderSyncInfo_Vtbl { @@ -331,9 +179,8 @@ pub struct IStorageProviderKnownFolderSyncInfo_Vtbl { pub SyncRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetSyncRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageProviderKnownFolderSyncInfoSource(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IStorageProviderKnownFolderSyncInfoSource, IStorageProviderKnownFolderSyncInfoSource_Vtbl, 0x51359342_f7c0_53d0_bbb6_1cdc098ebda9); +::windows_core::imp::interface_hierarchy!(IStorageProviderKnownFolderSyncInfoSource, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IStorageProviderKnownFolderSyncInfoSource { pub fn GetKnownFolderSyncInfo(&self) -> ::windows_core::Result { let this = self; @@ -357,16 +204,9 @@ impl IStorageProviderKnownFolderSyncInfoSource { unsafe { (::windows_core::Interface::vtable(this).RemoveKnownFolderSyncInfoChanged)(::windows_core::Interface::as_raw(this), token).ok() } } } -::windows_core::imp::interface_hierarchy!(IStorageProviderKnownFolderSyncInfoSource, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IStorageProviderKnownFolderSyncInfoSource { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IStorageProviderKnownFolderSyncInfoSource { - type Vtable = IStorageProviderKnownFolderSyncInfoSource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageProviderKnownFolderSyncInfoSource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51359342_f7c0_53d0_bbb6_1cdc098ebda9); -} #[repr(C)] #[doc(hidden)] pub struct IStorageProviderKnownFolderSyncInfoSource_Vtbl { @@ -375,9 +215,8 @@ pub struct IStorageProviderKnownFolderSyncInfoSource_Vtbl { pub KnownFolderSyncInfoChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveKnownFolderSyncInfoChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageProviderKnownFolderSyncInfoSourceFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IStorageProviderKnownFolderSyncInfoSourceFactory, IStorageProviderKnownFolderSyncInfoSourceFactory_Vtbl, 0xaaee03a7_a7f6_50be_a9b0_8e82d0c81082); +::windows_core::imp::interface_hierarchy!(IStorageProviderKnownFolderSyncInfoSourceFactory, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IStorageProviderKnownFolderSyncInfoSourceFactory { pub fn GetKnownFolderSyncInfoSource(&self) -> ::windows_core::Result { let this = self; @@ -387,32 +226,16 @@ impl IStorageProviderKnownFolderSyncInfoSourceFactory { } } } -::windows_core::imp::interface_hierarchy!(IStorageProviderKnownFolderSyncInfoSourceFactory, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IStorageProviderKnownFolderSyncInfoSourceFactory { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IStorageProviderKnownFolderSyncInfoSourceFactory { - type Vtable = IStorageProviderKnownFolderSyncInfoSourceFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageProviderKnownFolderSyncInfoSourceFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaaee03a7_a7f6_50be_a9b0_8e82d0c81082); -} #[repr(C)] #[doc(hidden)] pub struct IStorageProviderKnownFolderSyncInfoSourceFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetKnownFolderSyncInfoSource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageProviderKnownFolderSyncRequestArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorageProviderKnownFolderSyncRequestArgs { - type Vtable = IStorageProviderKnownFolderSyncRequestArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageProviderKnownFolderSyncRequestArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeda6d569_b4e8_542f_ab8d_f3613f250a4a); -} +::windows_core::imp::com_interface!(IStorageProviderKnownFolderSyncRequestArgs, IStorageProviderKnownFolderSyncRequestArgs_Vtbl, 0xeda6d569_b4e8_542f_ab8d_f3613f250a4a); #[repr(C)] #[doc(hidden)] pub struct IStorageProviderKnownFolderSyncRequestArgs_Vtbl { @@ -423,16 +246,7 @@ pub struct IStorageProviderKnownFolderSyncRequestArgs_Vtbl { KnownFolders: usize, pub Source: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageProviderMoreInfoUI(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorageProviderMoreInfoUI { - type Vtable = IStorageProviderMoreInfoUI_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageProviderMoreInfoUI { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xef38e591_a7cb_5e7d_9b5e_22749842697c); -} +::windows_core::imp::com_interface!(IStorageProviderMoreInfoUI, IStorageProviderMoreInfoUI_Vtbl, 0xef38e591_a7cb_5e7d_9b5e_22749842697c); #[repr(C)] #[doc(hidden)] pub struct IStorageProviderMoreInfoUI_Vtbl { @@ -442,9 +256,8 @@ pub struct IStorageProviderMoreInfoUI_Vtbl { pub Command: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetCommand: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageProviderPropertyCapabilities(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IStorageProviderPropertyCapabilities, IStorageProviderPropertyCapabilities_Vtbl, 0x658d2f0e_63b7_4567_acf9_51abe301dda5); +::windows_core::imp::interface_hierarchy!(IStorageProviderPropertyCapabilities, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IStorageProviderPropertyCapabilities { pub fn IsPropertySupported(&self, propertycanonicalname: &::windows_core::HSTRING) -> ::windows_core::Result { let this = self; @@ -454,32 +267,16 @@ impl IStorageProviderPropertyCapabilities { } } } -::windows_core::imp::interface_hierarchy!(IStorageProviderPropertyCapabilities, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IStorageProviderPropertyCapabilities { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IStorageProviderPropertyCapabilities { - type Vtable = IStorageProviderPropertyCapabilities_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageProviderPropertyCapabilities { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x658d2f0e_63b7_4567_acf9_51abe301dda5); -} #[repr(C)] #[doc(hidden)] pub struct IStorageProviderPropertyCapabilities_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub IsPropertySupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertycanonicalname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageProviderQuotaUI(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorageProviderQuotaUI { - type Vtable = IStorageProviderQuotaUI_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageProviderQuotaUI { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xba6295c3_312e_544f_9fd5_1f81b21f3649); -} +::windows_core::imp::com_interface!(IStorageProviderQuotaUI, IStorageProviderQuotaUI_Vtbl, 0xba6295c3_312e_544f_9fd5_1f81b21f3649); #[repr(C)] #[doc(hidden)] pub struct IStorageProviderQuotaUI_Vtbl { @@ -499,16 +296,7 @@ pub struct IStorageProviderQuotaUI_Vtbl { #[cfg(not(feature = "UI"))] SetQuotaUsedColor: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageProviderStatusUI(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorageProviderStatusUI { - type Vtable = IStorageProviderStatusUI_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageProviderStatusUI { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd6b6a758_198d_5b80_977f_5ff73da33118); -} +::windows_core::imp::com_interface!(IStorageProviderStatusUI, IStorageProviderStatusUI_Vtbl, 0xd6b6a758_198d_5b80_977f_5ff73da33118); #[repr(C)] #[doc(hidden)] pub struct IStorageProviderStatusUI_Vtbl { @@ -536,9 +324,8 @@ pub struct IStorageProviderStatusUI_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] SetProviderSecondaryCommands: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageProviderStatusUISource(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IStorageProviderStatusUISource, IStorageProviderStatusUISource_Vtbl, 0xa306c249_3d66_5e70_9007_e43df96051ff); +::windows_core::imp::interface_hierarchy!(IStorageProviderStatusUISource, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IStorageProviderStatusUISource { pub fn GetStatusUI(&self) -> ::windows_core::Result { let this = self; @@ -562,16 +349,9 @@ impl IStorageProviderStatusUISource { unsafe { (::windows_core::Interface::vtable(this).RemoveStatusUIChanged)(::windows_core::Interface::as_raw(this), token).ok() } } } -::windows_core::imp::interface_hierarchy!(IStorageProviderStatusUISource, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IStorageProviderStatusUISource { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IStorageProviderStatusUISource { - type Vtable = IStorageProviderStatusUISource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageProviderStatusUISource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa306c249_3d66_5e70_9007_e43df96051ff); -} #[repr(C)] #[doc(hidden)] pub struct IStorageProviderStatusUISource_Vtbl { @@ -580,9 +360,8 @@ pub struct IStorageProviderStatusUISource_Vtbl { pub StatusUIChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveStatusUIChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageProviderStatusUISourceFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IStorageProviderStatusUISourceFactory, IStorageProviderStatusUISourceFactory_Vtbl, 0x12e46b74_4e5a_58d1_a62f_0376e8ee7dd8); +::windows_core::imp::interface_hierarchy!(IStorageProviderStatusUISourceFactory, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IStorageProviderStatusUISourceFactory { pub fn GetStatusUISource(&self, syncrootid: &::windows_core::HSTRING) -> ::windows_core::Result { let this = self; @@ -592,32 +371,16 @@ impl IStorageProviderStatusUISourceFactory { } } } -::windows_core::imp::interface_hierarchy!(IStorageProviderStatusUISourceFactory, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IStorageProviderStatusUISourceFactory { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IStorageProviderStatusUISourceFactory { - type Vtable = IStorageProviderStatusUISourceFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageProviderStatusUISourceFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x12e46b74_4e5a_58d1_a62f_0376e8ee7dd8); -} #[repr(C)] #[doc(hidden)] pub struct IStorageProviderStatusUISourceFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetStatusUISource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, syncrootid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageProviderSyncRootInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorageProviderSyncRootInfo { - type Vtable = IStorageProviderSyncRootInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageProviderSyncRootInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7c1305c4_99f9_41ac_8904_ab055d654926); -} +::windows_core::imp::com_interface!(IStorageProviderSyncRootInfo, IStorageProviderSyncRootInfo_Vtbl, 0x7c1305c4_99f9_41ac_8904_ab055d654926); #[repr(C)] #[doc(hidden)] pub struct IStorageProviderSyncRootInfo_Vtbl { @@ -663,16 +426,7 @@ pub struct IStorageProviderSyncRootInfo_Vtbl { pub RecycleBinUri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetRecycleBinUri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageProviderSyncRootInfo2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorageProviderSyncRootInfo2 { - type Vtable = IStorageProviderSyncRootInfo2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageProviderSyncRootInfo2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcf51b023_7cf1_5166_bdba_efd95f529e31); -} +::windows_core::imp::com_interface!(IStorageProviderSyncRootInfo2, IStorageProviderSyncRootInfo2_Vtbl, 0xcf51b023_7cf1_5166_bdba_efd95f529e31); #[repr(C)] #[doc(hidden)] pub struct IStorageProviderSyncRootInfo2_Vtbl { @@ -680,16 +434,7 @@ pub struct IStorageProviderSyncRootInfo2_Vtbl { pub ProviderId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, pub SetProviderId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageProviderSyncRootInfo3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorageProviderSyncRootInfo3 { - type Vtable = IStorageProviderSyncRootInfo3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageProviderSyncRootInfo3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x507a6617_bef6_56fd_855e_75ace2e45cf5); -} +::windows_core::imp::com_interface!(IStorageProviderSyncRootInfo3, IStorageProviderSyncRootInfo3_Vtbl, 0x507a6617_bef6_56fd_855e_75ace2e45cf5); #[repr(C)] #[doc(hidden)] pub struct IStorageProviderSyncRootInfo3_Vtbl { @@ -699,16 +444,7 @@ pub struct IStorageProviderSyncRootInfo3_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] FallbackFileTypeInfo: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageProviderSyncRootManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorageProviderSyncRootManagerStatics { - type Vtable = IStorageProviderSyncRootManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageProviderSyncRootManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3e99fbbf_8fe3_4b40_abc7_f6fc3d74c98e); -} +::windows_core::imp::com_interface!(IStorageProviderSyncRootManagerStatics, IStorageProviderSyncRootManagerStatics_Vtbl, 0x3e99fbbf_8fe3_4b40_abc7_f6fc3d74c98e); #[repr(C)] #[doc(hidden)] pub struct IStorageProviderSyncRootManagerStatics_Vtbl { @@ -722,25 +458,15 @@ pub struct IStorageProviderSyncRootManagerStatics_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetCurrentSyncRoots: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageProviderSyncRootManagerStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorageProviderSyncRootManagerStatics2 { - type Vtable = IStorageProviderSyncRootManagerStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageProviderSyncRootManagerStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xefb6cfee_1374_544e_9df1_5598d2e9cfdd); -} +::windows_core::imp::com_interface!(IStorageProviderSyncRootManagerStatics2, IStorageProviderSyncRootManagerStatics2_Vtbl, 0xefb6cfee_1374_544e_9df1_5598d2e9cfdd); #[repr(C)] #[doc(hidden)] pub struct IStorageProviderSyncRootManagerStatics2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub IsSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageProviderUICommand(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IStorageProviderUICommand, IStorageProviderUICommand_Vtbl, 0x0c3e0760_d846_568f_9484_105cc57b502b); +::windows_core::imp::interface_hierarchy!(IStorageProviderUICommand, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IStorageProviderUICommand { pub fn Label(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -775,16 +501,9 @@ impl IStorageProviderUICommand { unsafe { (::windows_core::Interface::vtable(this).Invoke)(::windows_core::Interface::as_raw(this)).ok() } } } -::windows_core::imp::interface_hierarchy!(IStorageProviderUICommand, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IStorageProviderUICommand { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IStorageProviderUICommand { - type Vtable = IStorageProviderUICommand_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageProviderUICommand { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c3e0760_d846_568f_9484_105cc57b502b); -} #[repr(C)] #[doc(hidden)] pub struct IStorageProviderUICommand_Vtbl { @@ -795,9 +514,8 @@ pub struct IStorageProviderUICommand_Vtbl { pub State: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut StorageProviderUICommandState) -> ::windows_core::HRESULT, pub Invoke: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageProviderUriSource(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IStorageProviderUriSource, IStorageProviderUriSource_Vtbl, 0xb29806d1_8be0_4962_8bb6_0d4c2e14d47a); +::windows_core::imp::interface_hierarchy!(IStorageProviderUriSource, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IStorageProviderUriSource { pub fn GetPathForContentUri(&self, contenturi: &::windows_core::HSTRING, result: P0) -> ::windows_core::Result<()> where @@ -814,16 +532,9 @@ impl IStorageProviderUriSource { unsafe { (::windows_core::Interface::vtable(this).GetContentInfoForPath)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(path), result.into_param().abi()).ok() } } } -::windows_core::imp::interface_hierarchy!(IStorageProviderUriSource, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IStorageProviderUriSource { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IStorageProviderUriSource { - type Vtable = IStorageProviderUriSource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageProviderUriSource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb29806d1_8be0_4962_8bb6_0d4c2e14d47a); -} #[repr(C)] #[doc(hidden)] pub struct IStorageProviderUriSource_Vtbl { @@ -835,9 +546,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::TryIntoParam, + P0: ::windows_core::IntoParam, { - Self::ICachedFileUpdaterStatics(|this| unsafe { (::windows_core::Interface::vtable(this).SetUpdateInformation)(::windows_core::Interface::as_raw(this), file.try_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.into_param().abi(), ::core::mem::transmute_copy(contentid), readmode, writemode, options).ok() }) } #[doc(hidden)] pub fn ICachedFileUpdaterStatics ::windows_core::Result>(callback: F) -> ::windows_core::Result { @@ -851,6 +562,7 @@ impl ::windows_core::RuntimeName for CachedFileUpdater { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CachedFileUpdaterUI(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CachedFileUpdaterUI, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CachedFileUpdaterUI { pub fn Title(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -906,14 +618,14 @@ impl CachedFileUpdaterUI { } } pub fn UpdateRequest(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).UpdateRequest)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetDeferral(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetDeferral)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -925,17 +637,15 @@ impl ::windows_core::RuntimeType for CachedFileUpdaterUI { } unsafe impl ::windows_core::Interface for CachedFileUpdaterUI { type Vtable = ICachedFileUpdaterUI_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CachedFileUpdaterUI { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CachedFileUpdaterUI { const NAME: &'static str = "Windows.Storage.Provider.CachedFileUpdaterUI"; } -::windows_core::imp::interface_hierarchy!(CachedFileUpdaterUI, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct FileUpdateRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(FileUpdateRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl FileUpdateRequest { pub fn ContentId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -971,20 +681,20 @@ impl FileUpdateRequest { } pub fn UpdateLocalFile(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).UpdateLocalFile)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).UpdateLocalFile)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn UserInputNeededMessage(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).UserInputNeededMessage)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetUserInputNeededMessage(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetUserInputNeededMessage)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } } @@ -993,17 +703,15 @@ impl ::windows_core::RuntimeType for FileUpdateRequest { } unsafe impl ::windows_core::Interface for FileUpdateRequest { type Vtable = IFileUpdateRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for FileUpdateRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for FileUpdateRequest { const NAME: &'static str = "Windows.Storage.Provider.FileUpdateRequest"; } -::windows_core::imp::interface_hierarchy!(FileUpdateRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct FileUpdateRequestDeferral(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(FileUpdateRequestDeferral, ::windows_core::IUnknown, ::windows_core::IInspectable); impl FileUpdateRequestDeferral { pub fn Complete(&self) -> ::windows_core::Result<()> { let this = self; @@ -1015,17 +723,15 @@ impl ::windows_core::RuntimeType for FileUpdateRequestDeferral { } unsafe impl ::windows_core::Interface for FileUpdateRequestDeferral { type Vtable = IFileUpdateRequestDeferral_Vtbl; -} -unsafe impl ::windows_core::ComInterface for FileUpdateRequestDeferral { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for FileUpdateRequestDeferral { const NAME: &'static str = "Windows.Storage.Provider.FileUpdateRequestDeferral"; } -::windows_core::imp::interface_hierarchy!(FileUpdateRequestDeferral, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct FileUpdateRequestedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(FileUpdateRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl FileUpdateRequestedEventArgs { pub fn Request(&self) -> ::windows_core::Result { let this = self; @@ -1040,17 +746,15 @@ impl ::windows_core::RuntimeType for FileUpdateRequestedEventArgs { } unsafe impl ::windows_core::Interface for FileUpdateRequestedEventArgs { type Vtable = IFileUpdateRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for FileUpdateRequestedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for FileUpdateRequestedEventArgs { const NAME: &'static str = "Windows.Storage.Provider.FileUpdateRequestedEventArgs"; } -::windows_core::imp::interface_hierarchy!(FileUpdateRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StorageProviderFileTypeInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StorageProviderFileTypeInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl StorageProviderFileTypeInfo { pub fn FileExtension(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1083,19 +787,17 @@ impl ::windows_core::RuntimeType for StorageProviderFileTypeInfo { } unsafe impl ::windows_core::Interface for StorageProviderFileTypeInfo { type Vtable = IStorageProviderFileTypeInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StorageProviderFileTypeInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StorageProviderFileTypeInfo { const NAME: &'static str = "Windows.Storage.Provider.StorageProviderFileTypeInfo"; } -::windows_core::imp::interface_hierarchy!(StorageProviderFileTypeInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for StorageProviderFileTypeInfo {} unsafe impl ::core::marker::Sync for StorageProviderFileTypeInfo {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StorageProviderGetContentInfoForPathResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StorageProviderGetContentInfoForPathResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl StorageProviderGetContentInfoForPathResult { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1143,19 +845,17 @@ impl ::windows_core::RuntimeType for StorageProviderGetContentInfoForPathResult } unsafe impl ::windows_core::Interface for StorageProviderGetContentInfoForPathResult { type Vtable = IStorageProviderGetContentInfoForPathResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StorageProviderGetContentInfoForPathResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StorageProviderGetContentInfoForPathResult { const NAME: &'static str = "Windows.Storage.Provider.StorageProviderGetContentInfoForPathResult"; } -::windows_core::imp::interface_hierarchy!(StorageProviderGetContentInfoForPathResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for StorageProviderGetContentInfoForPathResult {} unsafe impl ::core::marker::Sync for StorageProviderGetContentInfoForPathResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StorageProviderGetPathForContentUriResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StorageProviderGetPathForContentUriResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl StorageProviderGetPathForContentUriResult { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1192,14 +892,11 @@ impl ::windows_core::RuntimeType for StorageProviderGetPathForContentUriResult { } unsafe impl ::windows_core::Interface for StorageProviderGetPathForContentUriResult { type Vtable = IStorageProviderGetPathForContentUriResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StorageProviderGetPathForContentUriResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StorageProviderGetPathForContentUriResult { const NAME: &'static str = "Windows.Storage.Provider.StorageProviderGetPathForContentUriResult"; } -::windows_core::imp::interface_hierarchy!(StorageProviderGetPathForContentUriResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for StorageProviderGetPathForContentUriResult {} unsafe impl ::core::marker::Sync for StorageProviderGetPathForContentUriResult {} pub struct StorageProviderItemProperties; @@ -1208,12 +905,12 @@ impl StorageProviderItemProperties { #[cfg(feature = "Foundation_Collections")] pub fn SetAsync(item: P0, itemproperties: P1) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam>, { Self::IStorageProviderItemPropertiesStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).SetAsync)(::windows_core::Interface::as_raw(this), item.try_into_param()?.abi(), itemproperties.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SetAsync)(::windows_core::Interface::as_raw(this), item.into_param().abi(), itemproperties.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -1228,6 +925,7 @@ impl ::windows_core::RuntimeName for StorageProviderItemProperties { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StorageProviderItemProperty(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StorageProviderItemProperty, ::windows_core::IUnknown, ::windows_core::IInspectable); impl StorageProviderItemProperty { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1275,19 +973,17 @@ impl ::windows_core::RuntimeType for StorageProviderItemProperty { } unsafe impl ::windows_core::Interface for StorageProviderItemProperty { type Vtable = IStorageProviderItemProperty_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StorageProviderItemProperty { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StorageProviderItemProperty { const NAME: &'static str = "Windows.Storage.Provider.StorageProviderItemProperty"; } -::windows_core::imp::interface_hierarchy!(StorageProviderItemProperty, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for StorageProviderItemProperty {} unsafe impl ::core::marker::Sync for StorageProviderItemProperty {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StorageProviderItemPropertyDefinition(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StorageProviderItemPropertyDefinition, ::windows_core::IUnknown, ::windows_core::IInspectable); impl StorageProviderItemPropertyDefinition { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1324,19 +1020,17 @@ impl ::windows_core::RuntimeType for StorageProviderItemPropertyDefinition { } unsafe impl ::windows_core::Interface for StorageProviderItemPropertyDefinition { type Vtable = IStorageProviderItemPropertyDefinition_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StorageProviderItemPropertyDefinition { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StorageProviderItemPropertyDefinition { const NAME: &'static str = "Windows.Storage.Provider.StorageProviderItemPropertyDefinition"; } -::windows_core::imp::interface_hierarchy!(StorageProviderItemPropertyDefinition, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for StorageProviderItemPropertyDefinition {} unsafe impl ::core::marker::Sync for StorageProviderItemPropertyDefinition {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StorageProviderKnownFolderEntry(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StorageProviderKnownFolderEntry, ::windows_core::IUnknown, ::windows_core::IInspectable); impl StorageProviderKnownFolderEntry { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1373,19 +1067,17 @@ impl ::windows_core::RuntimeType for StorageProviderKnownFolderEntry { } unsafe impl ::windows_core::Interface for StorageProviderKnownFolderEntry { type Vtable = IStorageProviderKnownFolderEntry_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StorageProviderKnownFolderEntry { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StorageProviderKnownFolderEntry { const NAME: &'static str = "Windows.Storage.Provider.StorageProviderKnownFolderEntry"; } -::windows_core::imp::interface_hierarchy!(StorageProviderKnownFolderEntry, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for StorageProviderKnownFolderEntry {} unsafe impl ::core::marker::Sync for StorageProviderKnownFolderEntry {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StorageProviderKnownFolderSyncInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StorageProviderKnownFolderSyncInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl StorageProviderKnownFolderSyncInfo { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1434,19 +1126,17 @@ impl ::windows_core::RuntimeType for StorageProviderKnownFolderSyncInfo { } unsafe impl ::windows_core::Interface for StorageProviderKnownFolderSyncInfo { type Vtable = IStorageProviderKnownFolderSyncInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StorageProviderKnownFolderSyncInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StorageProviderKnownFolderSyncInfo { const NAME: &'static str = "Windows.Storage.Provider.StorageProviderKnownFolderSyncInfo"; } -::windows_core::imp::interface_hierarchy!(StorageProviderKnownFolderSyncInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for StorageProviderKnownFolderSyncInfo {} unsafe impl ::core::marker::Sync for StorageProviderKnownFolderSyncInfo {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StorageProviderKnownFolderSyncRequestArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StorageProviderKnownFolderSyncRequestArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl StorageProviderKnownFolderSyncRequestArgs { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -1470,19 +1160,17 @@ impl ::windows_core::RuntimeType for StorageProviderKnownFolderSyncRequestArgs { } unsafe impl ::windows_core::Interface for StorageProviderKnownFolderSyncRequestArgs { type Vtable = IStorageProviderKnownFolderSyncRequestArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StorageProviderKnownFolderSyncRequestArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StorageProviderKnownFolderSyncRequestArgs { const NAME: &'static str = "Windows.Storage.Provider.StorageProviderKnownFolderSyncRequestArgs"; } -::windows_core::imp::interface_hierarchy!(StorageProviderKnownFolderSyncRequestArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for StorageProviderKnownFolderSyncRequestArgs {} unsafe impl ::core::marker::Sync for StorageProviderKnownFolderSyncRequestArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StorageProviderMoreInfoUI(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StorageProviderMoreInfoUI, ::windows_core::IUnknown, ::windows_core::IInspectable); impl StorageProviderMoreInfoUI { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1511,10 +1199,10 @@ impl StorageProviderMoreInfoUI { } pub fn SetCommand(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetCommand)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetCommand)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } } impl ::windows_core::RuntimeType for StorageProviderMoreInfoUI { @@ -1522,19 +1210,17 @@ impl ::windows_core::RuntimeType for StorageProviderMoreInfoUI { } unsafe impl ::windows_core::Interface for StorageProviderMoreInfoUI { type Vtable = IStorageProviderMoreInfoUI_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StorageProviderMoreInfoUI { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StorageProviderMoreInfoUI { const NAME: &'static str = "Windows.Storage.Provider.StorageProviderMoreInfoUI"; } -::windows_core::imp::interface_hierarchy!(StorageProviderMoreInfoUI, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for StorageProviderMoreInfoUI {} unsafe impl ::core::marker::Sync for StorageProviderMoreInfoUI {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StorageProviderQuotaUI(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StorageProviderQuotaUI, ::windows_core::IUnknown, ::windows_core::IInspectable); impl StorageProviderQuotaUI { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1589,10 +1275,10 @@ impl StorageProviderQuotaUI { #[cfg(feature = "UI")] pub fn SetQuotaUsedColor(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetQuotaUsedColor)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetQuotaUsedColor)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } } impl ::windows_core::RuntimeType for StorageProviderQuotaUI { @@ -1600,19 +1286,17 @@ impl ::windows_core::RuntimeType for StorageProviderQuotaUI { } unsafe impl ::windows_core::Interface for StorageProviderQuotaUI { type Vtable = IStorageProviderQuotaUI_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StorageProviderQuotaUI { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StorageProviderQuotaUI { const NAME: &'static str = "Windows.Storage.Provider.StorageProviderQuotaUI"; } -::windows_core::imp::interface_hierarchy!(StorageProviderQuotaUI, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for StorageProviderQuotaUI {} unsafe impl ::core::marker::Sync for StorageProviderQuotaUI {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StorageProviderStatusUI(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StorageProviderStatusUI, ::windows_core::IUnknown, ::windows_core::IInspectable); impl StorageProviderStatusUI { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1666,10 +1350,10 @@ impl StorageProviderStatusUI { } pub fn SetSyncStatusCommand(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetSyncStatusCommand)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetSyncStatusCommand)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn QuotaUI(&self) -> ::windows_core::Result { let this = self; @@ -1708,10 +1392,10 @@ impl StorageProviderStatusUI { } pub fn SetProviderPrimaryCommand(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetProviderPrimaryCommand)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetProviderPrimaryCommand)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -1726,10 +1410,10 @@ impl StorageProviderStatusUI { #[cfg(feature = "Foundation_Collections")] pub fn SetProviderSecondaryCommands(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetProviderSecondaryCommands)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetProviderSecondaryCommands)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } } impl ::windows_core::RuntimeType for StorageProviderStatusUI { @@ -1737,19 +1421,17 @@ impl ::windows_core::RuntimeType for StorageProviderStatusUI { } unsafe impl ::windows_core::Interface for StorageProviderStatusUI { type Vtable = IStorageProviderStatusUI_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StorageProviderStatusUI { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StorageProviderStatusUI { const NAME: &'static str = "Windows.Storage.Provider.StorageProviderStatusUI"; } -::windows_core::imp::interface_hierarchy!(StorageProviderStatusUI, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for StorageProviderStatusUI {} unsafe impl ::core::marker::Sync for StorageProviderStatusUI {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StorageProviderSyncRootInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StorageProviderSyncRootInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl StorageProviderSyncRootInfo { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1782,10 +1464,10 @@ impl StorageProviderSyncRootInfo { #[cfg(feature = "Storage_Streams")] pub fn SetContext(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetContext)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetContext)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn Path(&self) -> ::windows_core::Result { let this = self; @@ -1796,10 +1478,10 @@ impl StorageProviderSyncRootInfo { } pub fn SetPath(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetPath)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetPath)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn DisplayNameResource(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1946,20 +1628,20 @@ impl StorageProviderSyncRootInfo { unsafe { (::windows_core::Interface::vtable(this).SetRecycleBinUri)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn ProviderId(&self) -> ::windows_core::Result<::windows_core::GUID> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ProviderId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetProviderId(&self, value: ::windows_core::GUID) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetProviderId)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn FallbackFileTypeInfo(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FallbackFileTypeInfo)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1971,14 +1653,11 @@ impl ::windows_core::RuntimeType for StorageProviderSyncRootInfo { } unsafe impl ::windows_core::Interface for StorageProviderSyncRootInfo { type Vtable = IStorageProviderSyncRootInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StorageProviderSyncRootInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StorageProviderSyncRootInfo { const NAME: &'static str = "Windows.Storage.Provider.StorageProviderSyncRootInfo"; } -::windows_core::imp::interface_hierarchy!(StorageProviderSyncRootInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for StorageProviderSyncRootInfo {} unsafe impl ::core::marker::Sync for StorageProviderSyncRootInfo {} pub struct StorageProviderSyncRootManager; @@ -1994,11 +1673,11 @@ impl StorageProviderSyncRootManager { } pub fn GetSyncRootInformationForFolder(folder: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IStorageProviderSyncRootManagerStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).GetSyncRootInformationForFolder)(::windows_core::Interface::as_raw(this), folder.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).GetSyncRootInformationForFolder)(::windows_core::Interface::as_raw(this), folder.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn GetSyncRootInformationForId(id: &::windows_core::HSTRING) -> ::windows_core::Result { @@ -2486,9 +2165,7 @@ impl ::core::fmt::Debug for WriteActivationMode { impl ::windows_core::RuntimeType for WriteActivationMode { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::from_slice(b"enum(Windows.Storage.Provider.WriteActivationMode;i4)"); } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct StorageProviderKnownFolderSyncRequestedHandler(pub ::windows_core::IUnknown); +::windows_core::imp::com_interface!(StorageProviderKnownFolderSyncRequestedHandler, StorageProviderKnownFolderSyncRequestedHandler_Vtbl, 0xc4cbb4f5_13dd_5c8e_8b96_336fc30c629b); impl StorageProviderKnownFolderSyncRequestedHandler { pub fn new) -> ::windows_core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = StorageProviderKnownFolderSyncRequestedHandlerBox:: { vtable: &StorageProviderKnownFolderSyncRequestedHandlerBox::::VTABLE, count: ::windows_core::imp::RefCount::new(1), invoke }; @@ -2518,7 +2195,7 @@ impl if iid.is_null() || interface.is_null() { return ::windows_core::HRESULT(-2147467261); } - *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; + *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::Interface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::Interface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; if (*interface).is_null() { ::windows_core::HRESULT(-2147467262) } else { @@ -2543,12 +2220,6 @@ impl ((*this).invoke)(::windows_core::from_raw_borrowed(&args)).into() } } -unsafe impl ::windows_core::Interface for StorageProviderKnownFolderSyncRequestedHandler { - type Vtable = StorageProviderKnownFolderSyncRequestedHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StorageProviderKnownFolderSyncRequestedHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc4cbb4f5_13dd_5c8e_8b96_336fc30c629b); -} impl ::windows_core::RuntimeType for StorageProviderKnownFolderSyncRequestedHandler { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } diff --git a/crates/libs/windows/src/Windows/Storage/Search/impl.rs b/crates/libs/windows/src/Windows/Storage/Search/impl.rs index 374ec57329..74c9bd6e45 100644 --- a/crates/libs/windows/src/Windows/Storage/Search/impl.rs +++ b/crates/libs/windows/src/Windows/Storage/Search/impl.rs @@ -91,7 +91,7 @@ impl IIndexableContent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -345,7 +345,7 @@ impl IStorageFolderQueryOperations_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IStorageQueryResultBase_Impl: Sized { @@ -463,6 +463,6 @@ impl IStorageQueryResultBase_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/Storage/Search/mod.rs b/crates/libs/windows/src/Windows/Storage/Search/mod.rs index cd23283d7e..8db8bd9c35 100644 --- a/crates/libs/windows/src/Windows/Storage/Search/mod.rs +++ b/crates/libs/windows/src/Windows/Storage/Search/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContentIndexer(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContentIndexer { - type Vtable = IContentIndexer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContentIndexer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb1767f8d_f698_4982_b05f_3a6e8cab01a2); -} +::windows_core::imp::com_interface!(IContentIndexer, IContentIndexer_Vtbl, 0xb1767f8d_f698_4982_b05f_3a6e8cab01a2); #[repr(C)] #[doc(hidden)] pub struct IContentIndexer_Vtbl { @@ -26,16 +17,7 @@ pub struct IContentIndexer_Vtbl { RetrievePropertiesAsync: usize, pub Revision: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u64) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContentIndexerQuery(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContentIndexerQuery { - type Vtable = IContentIndexerQuery_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContentIndexerQuery { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x70e3b0f8_4bfc_428a_8889_cc51da9a7b9d); -} +::windows_core::imp::com_interface!(IContentIndexerQuery, IContentIndexerQuery_Vtbl, 0x70e3b0f8_4bfc_428a_8889_cc51da9a7b9d); #[repr(C)] #[doc(hidden)] pub struct IContentIndexerQuery_Vtbl { @@ -59,16 +41,7 @@ pub struct IContentIndexerQuery_Vtbl { GetRangeAsync: usize, pub QueryFolder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContentIndexerQueryOperations(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContentIndexerQueryOperations { - type Vtable = IContentIndexerQueryOperations_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContentIndexerQueryOperations { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x28823e10_4786_42f1_9730_792b3566b150); -} +::windows_core::imp::com_interface!(IContentIndexerQueryOperations, IContentIndexerQueryOperations_Vtbl, 0x28823e10_4786_42f1_9730_792b3566b150); #[repr(C)] #[doc(hidden)] pub struct IContentIndexerQueryOperations_Vtbl { @@ -86,16 +59,7 @@ pub struct IContentIndexerQueryOperations_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] CreateQuery: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContentIndexerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContentIndexerStatics { - type Vtable = IContentIndexerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContentIndexerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8c488375_b37e_4c60_9ba8_b760fda3e59d); -} +::windows_core::imp::com_interface!(IContentIndexerStatics, IContentIndexerStatics_Vtbl, 0x8c488375_b37e_4c60_9ba8_b760fda3e59d); #[repr(C)] #[doc(hidden)] pub struct IContentIndexerStatics_Vtbl { @@ -103,9 +67,8 @@ pub struct IContentIndexerStatics_Vtbl { pub GetIndexerWithName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, indexname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetIndexer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIndexableContent(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IIndexableContent, IIndexableContent_Vtbl, 0xccf1a05f_d4b5_483a_b06e_e0db1ec420e4); +::windows_core::imp::interface_hierarchy!(IIndexableContent, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IIndexableContent { pub fn Id(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -140,10 +103,10 @@ impl IIndexableContent { #[cfg(feature = "Storage_Streams")] pub fn SetStream(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetStream)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetStream)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn StreamContentType(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -157,16 +120,9 @@ impl IIndexableContent { unsafe { (::windows_core::Interface::vtable(this).SetStreamContentType)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } } -::windows_core::imp::interface_hierarchy!(IIndexableContent, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IIndexableContent { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IIndexableContent { - type Vtable = IIndexableContent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIndexableContent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xccf1a05f_d4b5_483a_b06e_e0db1ec420e4); -} #[repr(C)] #[doc(hidden)] pub struct IIndexableContent_Vtbl { @@ -188,16 +144,7 @@ pub struct IIndexableContent_Vtbl { pub StreamContentType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetStreamContentType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IQueryOptions(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IQueryOptions { - type Vtable = IQueryOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IQueryOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1e5e46ee_0f45_4838_a8e9_d0479d446c30); -} +::windows_core::imp::com_interface!(IQueryOptions, IQueryOptions_Vtbl, 0x1e5e46ee_0f45_4838_a8e9_d0479d446c30); #[repr(C)] #[doc(hidden)] pub struct IQueryOptions_Vtbl { @@ -233,16 +180,7 @@ pub struct IQueryOptions_Vtbl { #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage_FileProperties")))] SetPropertyPrefetch: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IQueryOptionsFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IQueryOptionsFactory { - type Vtable = IQueryOptionsFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IQueryOptionsFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x032e1f8c_a9c1_4e71_8011_0dee9d4811a3); -} +::windows_core::imp::com_interface!(IQueryOptionsFactory, IQueryOptionsFactory_Vtbl, 0x032e1f8c_a9c1_4e71_8011_0dee9d4811a3); #[repr(C)] #[doc(hidden)] pub struct IQueryOptionsFactory_Vtbl { @@ -253,16 +191,7 @@ pub struct IQueryOptionsFactory_Vtbl { CreateCommonFileQuery: usize, pub CreateCommonFolderQuery: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, query: CommonFolderQuery, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IQueryOptionsWithProviderFilter(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IQueryOptionsWithProviderFilter { - type Vtable = IQueryOptionsWithProviderFilter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IQueryOptionsWithProviderFilter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5b9d1026_15c4_44dd_b89a_47a59b7d7c4f); -} +::windows_core::imp::com_interface!(IQueryOptionsWithProviderFilter, IQueryOptionsWithProviderFilter_Vtbl, 0x5b9d1026_15c4_44dd_b89a_47a59b7d7c4f); #[repr(C)] #[doc(hidden)] pub struct IQueryOptionsWithProviderFilter_Vtbl { @@ -272,16 +201,7 @@ pub struct IQueryOptionsWithProviderFilter_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] StorageProviderIdFilter: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageFileQueryResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorageFileQueryResult { - type Vtable = IStorageFileQueryResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageFileQueryResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x52fda447_2baa_412c_b29f_d4b1778efa1e); -} +::windows_core::imp::com_interface!(IStorageFileQueryResult, IStorageFileQueryResult_Vtbl, 0x52fda447_2baa_412c_b29f_d4b1778efa1e); #[repr(C)] #[doc(hidden)] pub struct IStorageFileQueryResult_Vtbl { @@ -295,16 +215,7 @@ pub struct IStorageFileQueryResult_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetFilesAsyncDefaultStartAndCount: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageFileQueryResult2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorageFileQueryResult2 { - type Vtable = IStorageFileQueryResult2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageFileQueryResult2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4e5db9dd_7141_46c4_8be3_e9dc9e27275c); -} +::windows_core::imp::com_interface!(IStorageFileQueryResult2, IStorageFileQueryResult2_Vtbl, 0x4e5db9dd_7141_46c4_8be3_e9dc9e27275c); #[repr(C)] #[doc(hidden)] pub struct IStorageFileQueryResult2_Vtbl { @@ -314,9 +225,8 @@ pub struct IStorageFileQueryResult2_Vtbl { #[cfg(not(all(feature = "Data_Text", feature = "Foundation_Collections")))] GetMatchingPropertiesWithRanges: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageFolderQueryOperations(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IStorageFolderQueryOperations, IStorageFolderQueryOperations_Vtbl, 0xcb43ccc9_446b_4a4f_be97_757771be5203); +::windows_core::imp::interface_hierarchy!(IStorageFolderQueryOperations, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IStorageFolderQueryOperations { pub fn GetIndexedStateAsync(&self) -> ::windows_core::Result> { let this = self; @@ -460,16 +370,9 @@ impl IStorageFolderQueryOperations { } } } -::windows_core::imp::interface_hierarchy!(IStorageFolderQueryOperations, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IStorageFolderQueryOperations { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IStorageFolderQueryOperations { - type Vtable = IStorageFolderQueryOperations_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageFolderQueryOperations { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcb43ccc9_446b_4a4f_be97_757771be5203); -} #[repr(C)] #[doc(hidden)] pub struct IStorageFolderQueryOperations_Vtbl { @@ -507,16 +410,7 @@ pub struct IStorageFolderQueryOperations_Vtbl { pub IsCommonFolderQuerySupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, query: CommonFolderQuery, result__: *mut bool) -> ::windows_core::HRESULT, pub IsCommonFileQuerySupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, query: CommonFileQuery, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageFolderQueryResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorageFolderQueryResult { - type Vtable = IStorageFolderQueryResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageFolderQueryResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6654c911_7d66_46fa_aecf_e4a4baa93ab8); -} +::windows_core::imp::com_interface!(IStorageFolderQueryResult, IStorageFolderQueryResult_Vtbl, 0x6654c911_7d66_46fa_aecf_e4a4baa93ab8); #[repr(C)] #[doc(hidden)] pub struct IStorageFolderQueryResult_Vtbl { @@ -530,16 +424,7 @@ pub struct IStorageFolderQueryResult_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetFoldersAsyncDefaultStartAndCount: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageItemQueryResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorageItemQueryResult { - type Vtable = IStorageItemQueryResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageItemQueryResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe8948079_9d58_47b8_b2b2_41b07f4795f9); -} +::windows_core::imp::com_interface!(IStorageItemQueryResult, IStorageItemQueryResult_Vtbl, 0xe8948079_9d58_47b8_b2b2_41b07f4795f9); #[repr(C)] #[doc(hidden)] pub struct IStorageItemQueryResult_Vtbl { @@ -553,16 +438,7 @@ pub struct IStorageItemQueryResult_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetItemsAsyncDefaultStartAndCount: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageLibraryChangeTrackerTriggerDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorageLibraryChangeTrackerTriggerDetails { - type Vtable = IStorageLibraryChangeTrackerTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageLibraryChangeTrackerTriggerDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1dc7a369_b7a3_4df2_9d61_eba85a0343d2); -} +::windows_core::imp::com_interface!(IStorageLibraryChangeTrackerTriggerDetails, IStorageLibraryChangeTrackerTriggerDetails_Vtbl, 0x1dc7a369_b7a3_4df2_9d61_eba85a0343d2); #[repr(C)] #[doc(hidden)] pub struct IStorageLibraryChangeTrackerTriggerDetails_Vtbl { @@ -570,16 +446,7 @@ pub struct IStorageLibraryChangeTrackerTriggerDetails_Vtbl { pub Folder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ChangeTracker: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageLibraryContentChangedTriggerDetails(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorageLibraryContentChangedTriggerDetails { - type Vtable = IStorageLibraryContentChangedTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageLibraryContentChangedTriggerDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2a371977_abbf_4e1d_8aa5_6385d8884799); -} +::windows_core::imp::com_interface!(IStorageLibraryContentChangedTriggerDetails, IStorageLibraryContentChangedTriggerDetails_Vtbl, 0x2a371977_abbf_4e1d_8aa5_6385d8884799); #[repr(C)] #[doc(hidden)] pub struct IStorageLibraryContentChangedTriggerDetails_Vtbl { @@ -587,9 +454,8 @@ pub struct IStorageLibraryContentChangedTriggerDetails_Vtbl { pub Folder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateModifiedSinceQuery: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lastquerytime: super::super::Foundation::DateTime, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageQueryResultBase(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IStorageQueryResultBase, IStorageQueryResultBase_Vtbl, 0xc297d70d_7353_47ab_ba58_8c61425dc54b); +::windows_core::imp::interface_hierarchy!(IStorageQueryResultBase, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IStorageQueryResultBase { pub fn GetItemCountAsync(&self) -> ::windows_core::Result> { let this = self; @@ -658,16 +524,9 @@ impl IStorageQueryResultBase { unsafe { (::windows_core::Interface::vtable(this).ApplyNewQueryOptions)(::windows_core::Interface::as_raw(this), newqueryoptions.into_param().abi()).ok() } } } -::windows_core::imp::interface_hierarchy!(IStorageQueryResultBase, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IStorageQueryResultBase { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IStorageQueryResultBase { - type Vtable = IStorageQueryResultBase_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageQueryResultBase { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc297d70d_7353_47ab_ba58_8c61425dc54b); -} #[repr(C)] #[doc(hidden)] pub struct IStorageQueryResultBase_Vtbl { @@ -682,16 +541,7 @@ pub struct IStorageQueryResultBase_Vtbl { pub GetCurrentQueryOptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ApplyNewQueryOptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newqueryoptions: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IValueAndLanguage(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IValueAndLanguage { - type Vtable = IValueAndLanguage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IValueAndLanguage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb9914881_a1ee_4bc4_92a5_466968e30436); -} +::windows_core::imp::com_interface!(IValueAndLanguage, IValueAndLanguage_Vtbl, 0xb9914881_a1ee_4bc4_92a5_466968e30436); #[repr(C)] #[doc(hidden)] pub struct IValueAndLanguage_Vtbl { @@ -704,25 +554,26 @@ pub struct IValueAndLanguage_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContentIndexer(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContentIndexer, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ContentIndexer { pub fn AddAsync(&self, indexablecontent: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).AddAsync)(::windows_core::Interface::as_raw(this), indexablecontent.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).AddAsync)(::windows_core::Interface::as_raw(this), indexablecontent.into_param().abi(), &mut result__).from_abi(result__) } } pub fn UpdateAsync(&self, indexablecontent: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).UpdateAsync)(::windows_core::Interface::as_raw(this), indexablecontent.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).UpdateAsync)(::windows_core::Interface::as_raw(this), indexablecontent.into_param().abi(), &mut result__).from_abi(result__) } } pub fn DeleteAsync(&self, contentid: &::windows_core::HSTRING) -> ::windows_core::Result { @@ -736,12 +587,12 @@ impl ContentIndexer { #[cfg(feature = "Foundation_Collections")] pub fn DeleteMultipleAsync(&self, contentids: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).DeleteMultipleAsync)(::windows_core::Interface::as_raw(this), contentids.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).DeleteMultipleAsync)(::windows_core::Interface::as_raw(this), contentids.into_param().abi(), &mut result__).from_abi(result__) } } pub fn DeleteAllAsync(&self) -> ::windows_core::Result { @@ -755,12 +606,12 @@ impl ContentIndexer { #[cfg(feature = "Foundation_Collections")] pub fn RetrievePropertiesAsync(&self, contentid: &::windows_core::HSTRING, propertiestoretrieve: P0) -> ::windows_core::Result>> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).RetrievePropertiesAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(contentid), propertiestoretrieve.into_param().abi(), &mut result__).from_abi(result__) } } pub fn Revision(&self) -> ::windows_core::Result { @@ -774,38 +625,38 @@ 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::TryIntoParam>, - P1: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, + P1: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), sortorder.try_into_param()?.abi(), ::core::mem::transmute_copy(searchfilterlanguage), &mut result__).from_abi(result__) + (::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__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn CreateQueryWithSortOrder(&self, searchfilter: &::windows_core::HSTRING, propertiestoretrieve: P0, sortorder: P1) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, - P1: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, + P1: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), sortorder.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn CreateQuery(&self, searchfilter: &::windows_core::HSTRING, propertiestoretrieve: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateQuery)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(searchfilter), propertiestoretrieve.into_param().abi(), &mut result__).from_abi(result__) } } pub fn GetIndexerWithName(indexname: &::windows_core::HSTRING) -> ::windows_core::Result { @@ -831,19 +682,17 @@ impl ::windows_core::RuntimeType for ContentIndexer { } unsafe impl ::windows_core::Interface for ContentIndexer { type Vtable = IContentIndexer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContentIndexer { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContentIndexer { const NAME: &'static str = "Windows.Storage.Search.ContentIndexer"; } -::windows_core::imp::interface_hierarchy!(ContentIndexer, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ContentIndexer {} unsafe impl ::core::marker::Sync for ContentIndexer {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContentIndexerQuery(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContentIndexerQuery, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ContentIndexerQuery { pub fn GetCountAsync(&self) -> ::windows_core::Result> { let this = self; @@ -901,19 +750,18 @@ impl ::windows_core::RuntimeType for ContentIndexerQuery { } unsafe impl ::windows_core::Interface for ContentIndexerQuery { type Vtable = IContentIndexerQuery_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContentIndexerQuery { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContentIndexerQuery { const NAME: &'static str = "Windows.Storage.Search.ContentIndexerQuery"; } -::windows_core::imp::interface_hierarchy!(ContentIndexerQuery, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ContentIndexerQuery {} unsafe impl ::core::marker::Sync for ContentIndexerQuery {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct IndexableContent(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(IndexableContent, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IndexableContent, IIndexableContent); impl IndexableContent { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -955,10 +803,10 @@ impl IndexableContent { #[cfg(feature = "Storage_Streams")] pub fn SetStream(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetStream)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetStream)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn StreamContentType(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -977,20 +825,17 @@ impl ::windows_core::RuntimeType for IndexableContent { } unsafe impl ::windows_core::Interface for IndexableContent { type Vtable = IIndexableContent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IndexableContent { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for IndexableContent { const NAME: &'static str = "Windows.Storage.Search.IndexableContent"; } -::windows_core::imp::interface_hierarchy!(IndexableContent, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IndexableContent {} unsafe impl ::core::marker::Send for IndexableContent {} unsafe impl ::core::marker::Sync for IndexableContent {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct QueryOptions(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(QueryOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); impl QueryOptions { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1107,20 +952,20 @@ 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::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetPropertyPrefetch)(::windows_core::Interface::as_raw(this), options, propertiestoretrieve.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetPropertyPrefetch)(::windows_core::Interface::as_raw(this), options, propertiestoretrieve.into_param().abi()).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn CreateCommonFileQuery(query: CommonFileQuery, filetypefilter: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::IQueryOptionsFactory(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateCommonFileQuery)(::windows_core::Interface::as_raw(this), query, filetypefilter.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateCommonFileQuery)(::windows_core::Interface::as_raw(this), query, filetypefilter.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn CreateCommonFolderQuery(query: CommonFolderQuery) -> ::windows_core::Result { @@ -1132,7 +977,7 @@ impl QueryOptions { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn StorageProviderIdFilter(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).StorageProviderIdFilter)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1149,14 +994,11 @@ impl ::windows_core::RuntimeType for QueryOptions { } unsafe impl ::windows_core::Interface for QueryOptions { type Vtable = IQueryOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for QueryOptions { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for QueryOptions { const NAME: &'static str = "Windows.Storage.Search.QueryOptions"; } -::windows_core::imp::interface_hierarchy!(QueryOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for QueryOptions {} unsafe impl ::core::marker::Sync for QueryOptions {} #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -1165,11 +1007,15 @@ unsafe impl ::core::marker::Sync for QueryOptions {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SortEntryVector(::windows_core::IUnknown); #[cfg(feature = "Foundation_Collections")] +::windows_core::imp::interface_hierarchy!(SortEntryVector, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(SortEntryVector, super::super::Foundation::Collections::IIterable::, super::super::Foundation::Collections::IVector::); +#[cfg(feature = "Foundation_Collections")] impl SortEntryVector { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1282,10 +1128,7 @@ impl ::windows_core::RuntimeType for SortEntryVector { #[cfg(feature = "Foundation_Collections")] unsafe impl ::windows_core::Interface for SortEntryVector { type Vtable = super::super::Foundation::Collections::IVector_Vtbl; -} -#[cfg(feature = "Foundation_Collections")] -unsafe impl ::windows_core::ComInterface for SortEntryVector { - const IID: ::windows_core::GUID = as ::windows_core::ComInterface>::IID; + const IID: ::windows_core::GUID = as ::windows_core::Interface>::IID; } #[cfg(feature = "Foundation_Collections")] impl ::windows_core::RuntimeName for SortEntryVector { @@ -1304,18 +1147,14 @@ impl ::core::iter::IntoIterator for &SortEntryVector { type Item = SortEntry; type IntoIter = super::super::Foundation::Collections::VectorIterator; fn into_iter(self) -> Self::IntoIter { - super::super::Foundation::Collections::VectorIterator::new(::windows_core::ComInterface::cast(self).ok()) + super::super::Foundation::Collections::VectorIterator::new(::windows_core::Interface::cast(self).ok()) } } -#[cfg(feature = "Foundation_Collections")] -::windows_core::imp::interface_hierarchy!(SortEntryVector, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for SortEntryVector {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for SortEntryVector {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StorageFileQueryResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StorageFileQueryResult, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(StorageFileQueryResult, IStorageQueryResultBase); impl StorageFileQueryResult { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -1341,21 +1180,21 @@ impl StorageFileQueryResult { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn GetItemCountAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetItemCountAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Folder(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Folder)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1365,42 +1204,42 @@ impl StorageFileQueryResult { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveContentsChanged(&self, eventcookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveContentsChanged)(::windows_core::Interface::as_raw(this), eventcookie).ok() } } pub fn OptionsChanged(&self, changedhandler: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveOptionsChanged(&self, eventcookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveOptionsChanged)(::windows_core::Interface::as_raw(this), eventcookie).ok() } } pub fn FindStartIndexAsync(&self, value: P0) -> ::windows_core::Result> where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn GetCurrentQueryOptions(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetCurrentQueryOptions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1410,7 +1249,7 @@ impl StorageFileQueryResult { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } } @@ -1419,18 +1258,16 @@ impl ::windows_core::RuntimeType for StorageFileQueryResult { } unsafe impl ::windows_core::Interface for StorageFileQueryResult { type Vtable = IStorageFileQueryResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StorageFileQueryResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StorageFileQueryResult { const NAME: &'static str = "Windows.Storage.Search.StorageFileQueryResult"; } -::windows_core::imp::interface_hierarchy!(StorageFileQueryResult, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for StorageFileQueryResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StorageFolderQueryResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StorageFolderQueryResult, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(StorageFolderQueryResult, IStorageQueryResultBase); impl StorageFolderQueryResult { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -1451,14 +1288,14 @@ impl StorageFolderQueryResult { } } pub fn GetItemCountAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetItemCountAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Folder(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Folder)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1468,42 +1305,42 @@ impl StorageFolderQueryResult { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveContentsChanged(&self, eventcookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveContentsChanged)(::windows_core::Interface::as_raw(this), eventcookie).ok() } } pub fn OptionsChanged(&self, changedhandler: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveOptionsChanged(&self, eventcookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveOptionsChanged)(::windows_core::Interface::as_raw(this), eventcookie).ok() } } pub fn FindStartIndexAsync(&self, value: P0) -> ::windows_core::Result> where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn GetCurrentQueryOptions(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetCurrentQueryOptions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1513,7 +1350,7 @@ impl StorageFolderQueryResult { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } } @@ -1522,18 +1359,16 @@ impl ::windows_core::RuntimeType for StorageFolderQueryResult { } unsafe impl ::windows_core::Interface for StorageFolderQueryResult { type Vtable = IStorageFolderQueryResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StorageFolderQueryResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StorageFolderQueryResult { const NAME: &'static str = "Windows.Storage.Search.StorageFolderQueryResult"; } -::windows_core::imp::interface_hierarchy!(StorageFolderQueryResult, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for StorageFolderQueryResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StorageItemQueryResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StorageItemQueryResult, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(StorageItemQueryResult, IStorageQueryResultBase); impl StorageItemQueryResult { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -1554,14 +1389,14 @@ impl StorageItemQueryResult { } } pub fn GetItemCountAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetItemCountAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Folder(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Folder)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1571,42 +1406,42 @@ impl StorageItemQueryResult { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveContentsChanged(&self, eventcookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveContentsChanged)(::windows_core::Interface::as_raw(this), eventcookie).ok() } } pub fn OptionsChanged(&self, changedhandler: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveOptionsChanged(&self, eventcookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveOptionsChanged)(::windows_core::Interface::as_raw(this), eventcookie).ok() } } pub fn FindStartIndexAsync(&self, value: P0) -> ::windows_core::Result> where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn GetCurrentQueryOptions(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetCurrentQueryOptions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1616,7 +1451,7 @@ impl StorageItemQueryResult { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } } @@ -1625,18 +1460,15 @@ impl ::windows_core::RuntimeType for StorageItemQueryResult { } unsafe impl ::windows_core::Interface for StorageItemQueryResult { type Vtable = IStorageItemQueryResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StorageItemQueryResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StorageItemQueryResult { const NAME: &'static str = "Windows.Storage.Search.StorageItemQueryResult"; } -::windows_core::imp::interface_hierarchy!(StorageItemQueryResult, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for StorageItemQueryResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StorageLibraryChangeTrackerTriggerDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StorageLibraryChangeTrackerTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl StorageLibraryChangeTrackerTriggerDetails { pub fn Folder(&self) -> ::windows_core::Result { let this = self; @@ -1658,17 +1490,15 @@ impl ::windows_core::RuntimeType for StorageLibraryChangeTrackerTriggerDetails { } unsafe impl ::windows_core::Interface for StorageLibraryChangeTrackerTriggerDetails { type Vtable = IStorageLibraryChangeTrackerTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StorageLibraryChangeTrackerTriggerDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StorageLibraryChangeTrackerTriggerDetails { const NAME: &'static str = "Windows.Storage.Search.StorageLibraryChangeTrackerTriggerDetails"; } -::windows_core::imp::interface_hierarchy!(StorageLibraryChangeTrackerTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StorageLibraryContentChangedTriggerDetails(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StorageLibraryContentChangedTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); impl StorageLibraryContentChangedTriggerDetails { pub fn Folder(&self) -> ::windows_core::Result { let this = self; @@ -1690,17 +1520,15 @@ impl ::windows_core::RuntimeType for StorageLibraryContentChangedTriggerDetails } unsafe impl ::windows_core::Interface for StorageLibraryContentChangedTriggerDetails { type Vtable = IStorageLibraryContentChangedTriggerDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StorageLibraryContentChangedTriggerDetails { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StorageLibraryContentChangedTriggerDetails { const NAME: &'static str = "Windows.Storage.Search.StorageLibraryContentChangedTriggerDetails"; } -::windows_core::imp::interface_hierarchy!(StorageLibraryContentChangedTriggerDetails, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ValueAndLanguage(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ValueAndLanguage, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ValueAndLanguage { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1740,14 +1568,11 @@ impl ::windows_core::RuntimeType for ValueAndLanguage { } unsafe impl ::windows_core::Interface for ValueAndLanguage { type Vtable = IValueAndLanguage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ValueAndLanguage { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ValueAndLanguage { const NAME: &'static str = "Windows.Storage.Search.ValueAndLanguage"; } -::windows_core::imp::interface_hierarchy!(ValueAndLanguage, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ValueAndLanguage {} unsafe impl ::core::marker::Sync for ValueAndLanguage {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Storage/Streams/impl.rs b/crates/libs/windows/src/Windows/Storage/Streams/impl.rs index 4ffc345db8..093fecc459 100644 --- a/crates/libs/windows/src/Windows/Storage/Streams/impl.rs +++ b/crates/libs/windows/src/Windows/Storage/Streams/impl.rs @@ -43,7 +43,7 @@ impl IBuffer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IContentTypeProvider_Impl: Sized { @@ -69,7 +69,7 @@ impl IContentTypeProvider_Vtbl { Self { base__: ::windows_core::IInspectable_Vtbl::new::(), ContentType: ContentType:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDataReader_Impl: Sized { @@ -403,7 +403,7 @@ impl IDataReader_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDataWriter_Impl: Sized { @@ -665,7 +665,7 @@ impl IDataWriter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IInputStream_Impl: Sized + super::super::Foundation::IClosable_Impl { @@ -691,7 +691,7 @@ impl IInputStream_Vtbl { Self { base__: ::windows_core::IInspectable_Vtbl::new::(), ReadAsync: ReadAsync:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IInputStreamReference_Impl: Sized { @@ -720,7 +720,7 @@ impl IInputStreamReference_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IOutputStream_Impl: Sized + super::super::Foundation::IClosable_Impl { @@ -763,7 +763,7 @@ impl IOutputStream_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -803,7 +803,7 @@ impl IPropertySetSerializer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRandomAccessStream_Impl: Sized + super::super::Foundation::IClosable_Impl + IInputStream_Impl + IOutputStream_Impl { @@ -926,7 +926,7 @@ impl IRandomAccessStream_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRandomAccessStreamReference_Impl: Sized { @@ -955,7 +955,7 @@ impl IRandomAccessStreamReference_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRandomAccessStreamWithContentType_Impl: Sized + super::super::Foundation::IClosable_Impl + IContentTypeProvider_Impl + IInputStream_Impl + IOutputStream_Impl + IRandomAccessStream_Impl {} @@ -967,6 +967,6 @@ impl IRandomAccessStreamWithContentType_Vtbl { Self { base__: ::windows_core::IInspectable_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/Storage/Streams/mod.rs b/crates/libs/windows/src/Windows/Storage/Streams/mod.rs index d72d93eac9..bccb125896 100644 --- a/crates/libs/windows/src/Windows/Storage/Streams/mod.rs +++ b/crates/libs/windows/src/Windows/Storage/Streams/mod.rs @@ -1,6 +1,5 @@ -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBuffer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBuffer, IBuffer_Vtbl, 0x905a0fe0_bc53_11df_8c49_001e4fc686da); +::windows_core::imp::interface_hierarchy!(IBuffer, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IBuffer { pub fn Capacity(&self) -> ::windows_core::Result { let this = self; @@ -21,16 +20,9 @@ impl IBuffer { unsafe { (::windows_core::Interface::vtable(this).SetLength)(::windows_core::Interface::as_raw(this), value).ok() } } } -::windows_core::imp::interface_hierarchy!(IBuffer, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IBuffer { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IBuffer { - type Vtable = IBuffer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBuffer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x905a0fe0_bc53_11df_8c49_001e4fc686da); -} #[repr(C)] #[doc(hidden)] pub struct IBuffer_Vtbl { @@ -39,32 +31,14 @@ pub struct IBuffer_Vtbl { pub Length: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, pub SetLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBufferFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBufferFactory { - type Vtable = IBufferFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBufferFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x71af914d_c10f_484b_bc50_14bc623b3a27); -} +::windows_core::imp::com_interface!(IBufferFactory, IBufferFactory_Vtbl, 0x71af914d_c10f_484b_bc50_14bc623b3a27); #[repr(C)] #[doc(hidden)] pub struct IBufferFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, capacity: u32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBufferStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBufferStatics { - type Vtable = IBufferStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBufferStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe901e65b_d716_475a_a90a_af7229b1e741); -} +::windows_core::imp::com_interface!(IBufferStatics, IBufferStatics_Vtbl, 0xe901e65b_d716_475a_a90a_af7229b1e741); #[repr(C)] #[doc(hidden)] pub struct IBufferStatics_Vtbl { @@ -72,9 +46,8 @@ pub struct IBufferStatics_Vtbl { pub CreateCopyFromMemoryBuffer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateMemoryBufferOverIBuffer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContentTypeProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IContentTypeProvider, IContentTypeProvider_Vtbl, 0x97d098a5_3b99_4de9_88a5_e11d2f50c795); +::windows_core::imp::interface_hierarchy!(IContentTypeProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IContentTypeProvider { pub fn ContentType(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -84,25 +57,17 @@ impl IContentTypeProvider { } } } -::windows_core::imp::interface_hierarchy!(IContentTypeProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IContentTypeProvider { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IContentTypeProvider { - type Vtable = IContentTypeProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContentTypeProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x97d098a5_3b99_4de9_88a5_e11d2f50c795); -} #[repr(C)] #[doc(hidden)] pub struct IContentTypeProvider_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ContentType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataReader(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDataReader, IDataReader_Vtbl, 0xe2b50029_b4c1_4314_a4b8_fb813a2f275e); +::windows_core::imp::interface_hierarchy!(IDataReader, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IDataReader { pub fn UnconsumedBufferLength(&self) -> ::windows_core::Result { let this = self; @@ -275,16 +240,9 @@ impl IDataReader { } } } -::windows_core::imp::interface_hierarchy!(IDataReader, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IDataReader { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IDataReader { - type Vtable = IDataReader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDataReader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe2b50029_b4c1_4314_a4b8_fb813a2f275e); -} #[repr(C)] #[doc(hidden)] pub struct IDataReader_Vtbl { @@ -316,41 +274,22 @@ pub struct IDataReader_Vtbl { pub DetachBuffer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub DetachStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataReaderFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDataReaderFactory { - type Vtable = IDataReaderFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDataReaderFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd7527847_57da_4e15_914c_06806699a098); -} +::windows_core::imp::com_interface!(IDataReaderFactory, IDataReaderFactory_Vtbl, 0xd7527847_57da_4e15_914c_06806699a098); #[repr(C)] #[doc(hidden)] pub struct IDataReaderFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateDataReader: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, inputstream: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataReaderStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDataReaderStatics { - type Vtable = IDataReaderStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDataReaderStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x11fcbfc8_f93a_471b_b121_f379e349313c); -} +::windows_core::imp::com_interface!(IDataReaderStatics, IDataReaderStatics_Vtbl, 0x11fcbfc8_f93a_471b_b121_f379e349313c); #[repr(C)] #[doc(hidden)] pub struct IDataReaderStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub FromBuffer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, buffer: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataWriter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDataWriter, IDataWriter_Vtbl, 0x64b89265_d341_4922_b38a_dd4af8808c4e); +::windows_core::imp::interface_hierarchy!(IDataWriter, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IDataWriter { pub fn UnstoredBufferLength(&self) -> ::windows_core::Result { let this = self; @@ -391,17 +330,17 @@ impl IDataWriter { } pub fn WriteBuffer(&self, buffer: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).WriteBuffer)(::windows_core::Interface::as_raw(this), buffer.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).WriteBuffer)(::windows_core::Interface::as_raw(this), buffer.into_param().abi()).ok() } } pub fn WriteBufferRange(&self, buffer: P0, start: u32, count: u32) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).WriteBufferRange)(::windows_core::Interface::as_raw(this), buffer.try_into_param()?.abi(), start, count).ok() } + unsafe { (::windows_core::Interface::vtable(this).WriteBufferRange)(::windows_core::Interface::as_raw(this), buffer.into_param().abi(), start, count).ok() } } pub fn WriteBoolean(&self, value: bool) -> ::windows_core::Result<()> { let this = self; @@ -494,16 +433,9 @@ impl IDataWriter { } } } -::windows_core::imp::interface_hierarchy!(IDataWriter, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IDataWriter { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IDataWriter { - type Vtable = IDataWriter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDataWriter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x64b89265_d341_4922_b38a_dd4af8808c4e); -} #[repr(C)] #[doc(hidden)] pub struct IDataWriter_Vtbl { @@ -536,32 +468,14 @@ pub struct IDataWriter_Vtbl { pub DetachBuffer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub DetachStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataWriterFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDataWriterFactory { - type Vtable = IDataWriterFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDataWriterFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x338c67c2_8b84_4c2b_9c50_7b8767847a1f); -} +::windows_core::imp::com_interface!(IDataWriterFactory, IDataWriterFactory_Vtbl, 0x338c67c2_8b84_4c2b_9c50_7b8767847a1f); #[repr(C)] #[doc(hidden)] pub struct IDataWriterFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateDataWriter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, outputstream: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFileRandomAccessStreamStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFileRandomAccessStreamStatics { - type Vtable = IFileRandomAccessStreamStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFileRandomAccessStreamStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x73550107_3b57_4b5d_8345_554d2fc621f0); -} +::windows_core::imp::com_interface!(IFileRandomAccessStreamStatics, IFileRandomAccessStreamStatics_Vtbl, 0x73550107_3b57_4b5d_8345_554d2fc621f0); #[repr(C)] #[doc(hidden)] pub struct IFileRandomAccessStreamStatics_Vtbl { @@ -587,45 +501,36 @@ pub struct IFileRandomAccessStreamStatics_Vtbl { #[cfg(not(feature = "System"))] OpenTransactedWriteForUserWithOptionsAsync: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInputStream(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IInputStream, IInputStream_Vtbl, 0x905a0fe2_bc53_11df_8c49_001e4fc686da); +::windows_core::imp::interface_hierarchy!(IInputStream, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IInputStream, super::super::Foundation::IClosable); impl IInputStream { pub fn ReadAsync(&self, buffer: P0, count: u32, options: InputStreamOptions) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).ReadAsync)(::windows_core::Interface::as_raw(this), buffer.try_into_param()?.abi(), count, options, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ReadAsync)(::windows_core::Interface::as_raw(this), buffer.into_param().abi(), count, options, &mut result__).from_abi(result__) } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } } -::windows_core::imp::interface_hierarchy!(IInputStream, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IInputStream {} impl ::windows_core::RuntimeType for IInputStream { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IInputStream { - type Vtable = IInputStream_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInputStream { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x905a0fe2_bc53_11df_8c49_001e4fc686da); -} #[repr(C)] #[doc(hidden)] pub struct IInputStream_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ReadAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, buffer: *mut ::core::ffi::c_void, count: u32, options: InputStreamOptions, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInputStreamReference(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IInputStreamReference, IInputStreamReference_Vtbl, 0x43929d18_5ec9_4b5a_919c_4205b0c804b6); +::windows_core::imp::interface_hierarchy!(IInputStreamReference, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IInputStreamReference { pub fn OpenSequentialReadAsync(&self) -> ::windows_core::Result> { let this = self; @@ -635,34 +540,27 @@ impl IInputStreamReference { } } } -::windows_core::imp::interface_hierarchy!(IInputStreamReference, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IInputStreamReference { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IInputStreamReference { - type Vtable = IInputStreamReference_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInputStreamReference { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x43929d18_5ec9_4b5a_919c_4205b0c804b6); -} #[repr(C)] #[doc(hidden)] pub struct IInputStreamReference_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub OpenSequentialReadAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOutputStream(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOutputStream, IOutputStream_Vtbl, 0x905a0fe6_bc53_11df_8c49_001e4fc686da); +::windows_core::imp::interface_hierarchy!(IOutputStream, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IOutputStream, super::super::Foundation::IClosable); impl IOutputStream { pub fn WriteAsync(&self, buffer: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).WriteAsync)(::windows_core::Interface::as_raw(this), buffer.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).WriteAsync)(::windows_core::Interface::as_raw(this), buffer.into_param().abi(), &mut result__).from_abi(result__) } } pub fn FlushAsync(&self) -> ::windows_core::Result> { @@ -673,21 +571,13 @@ impl IOutputStream { } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } } -::windows_core::imp::interface_hierarchy!(IOutputStream, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IOutputStream {} impl ::windows_core::RuntimeType for IOutputStream { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IOutputStream { - type Vtable = IOutputStream_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOutputStream { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x905a0fe6_bc53_11df_8c49_001e4fc686da); -} #[repr(C)] #[doc(hidden)] pub struct IOutputStream_Vtbl { @@ -695,43 +585,35 @@ pub struct IOutputStream_Vtbl { pub WriteAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, buffer: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub FlushAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPropertySetSerializer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPropertySetSerializer, IPropertySetSerializer_Vtbl, 0x6e8ebf1c_ef3d_4376_b20e_5be638aeac77); +::windows_core::imp::interface_hierarchy!(IPropertySetSerializer, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IPropertySetSerializer { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Serialize(&self, propertyset: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).Serialize)(::windows_core::Interface::as_raw(this), propertyset.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).Serialize)(::windows_core::Interface::as_raw(this), propertyset.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Deserialize(&self, propertyset: P0, buffer: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).Deserialize)(::windows_core::Interface::as_raw(this), propertyset.try_into_param()?.abi(), buffer.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).Deserialize)(::windows_core::Interface::as_raw(this), propertyset.into_param().abi(), buffer.into_param().abi()).ok() } } } -::windows_core::imp::interface_hierarchy!(IPropertySetSerializer, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IPropertySetSerializer { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IPropertySetSerializer { - type Vtable = IPropertySetSerializer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPropertySetSerializer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6e8ebf1c_ef3d_4376_b20e_5be638aeac77); -} #[repr(C)] #[doc(hidden)] pub struct IPropertySetSerializer_Vtbl { @@ -745,9 +627,9 @@ pub struct IPropertySetSerializer_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Deserialize: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRandomAccessStream(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRandomAccessStream, IRandomAccessStream_Vtbl, 0x905a0fe1_bc53_11df_8c49_001e4fc686da); +::windows_core::imp::interface_hierarchy!(IRandomAccessStream, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IRandomAccessStream, super::super::Foundation::IClosable, IInputStream, IOutputStream); impl IRandomAccessStream { pub fn Size(&self) -> ::windows_core::Result { let this = self; @@ -807,50 +689,40 @@ impl IRandomAccessStream { } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn ReadAsync(&self, buffer: P0, count: u32, options: InputStreamOptions) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), count, options, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ReadAsync)(::windows_core::Interface::as_raw(this), buffer.into_param().abi(), count, options, &mut result__).from_abi(result__) } } pub fn WriteAsync(&self, buffer: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).WriteAsync)(::windows_core::Interface::as_raw(this), buffer.into_param().abi(), &mut result__).from_abi(result__) } } pub fn FlushAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FlushAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(IRandomAccessStream, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IRandomAccessStream {} -impl ::windows_core::CanTryInto for IRandomAccessStream {} -impl ::windows_core::CanTryInto for IRandomAccessStream {} impl ::windows_core::RuntimeType for IRandomAccessStream { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IRandomAccessStream { - type Vtable = IRandomAccessStream_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRandomAccessStream { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x905a0fe1_bc53_11df_8c49_001e4fc686da); -} #[repr(C)] #[doc(hidden)] pub struct IRandomAccessStream_Vtbl { @@ -865,9 +737,8 @@ pub struct IRandomAccessStream_Vtbl { pub CanRead: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub CanWrite: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRandomAccessStreamReference(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRandomAccessStreamReference, IRandomAccessStreamReference_Vtbl, 0x33ee3134_1dd6_4e3a_8067_d1c162e8642b); +::windows_core::imp::interface_hierarchy!(IRandomAccessStreamReference, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IRandomAccessStreamReference { pub fn OpenReadAsync(&self) -> ::windows_core::Result> { let this = self; @@ -877,32 +748,16 @@ impl IRandomAccessStreamReference { } } } -::windows_core::imp::interface_hierarchy!(IRandomAccessStreamReference, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IRandomAccessStreamReference { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IRandomAccessStreamReference { - type Vtable = IRandomAccessStreamReference_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRandomAccessStreamReference { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x33ee3134_1dd6_4e3a_8067_d1c162e8642b); -} #[repr(C)] #[doc(hidden)] pub struct IRandomAccessStreamReference_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub OpenReadAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRandomAccessStreamReferenceStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRandomAccessStreamReferenceStatics { - type Vtable = IRandomAccessStreamReferenceStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRandomAccessStreamReferenceStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x857309dc_3fbf_4e7d_986f_ef3b1a07a964); -} +::windows_core::imp::com_interface!(IRandomAccessStreamReferenceStatics, IRandomAccessStreamReferenceStatics_Vtbl, 0x857309dc_3fbf_4e7d_986f_ef3b1a07a964); #[repr(C)] #[doc(hidden)] pub struct IRandomAccessStreamReferenceStatics_Vtbl { @@ -911,16 +766,7 @@ pub struct IRandomAccessStreamReferenceStatics_Vtbl { pub CreateFromUri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uri: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateFromStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, stream: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRandomAccessStreamStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRandomAccessStreamStatics { - type Vtable = IRandomAccessStreamStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRandomAccessStreamStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x524cedcf_6e29_4ce5_9573_6b753db66c3a); -} +::windows_core::imp::com_interface!(IRandomAccessStreamStatics, IRandomAccessStreamStatics_Vtbl, 0x524cedcf_6e29_4ce5_9573_6b753db66c3a); #[repr(C)] #[doc(hidden)] pub struct IRandomAccessStreamStatics_Vtbl { @@ -929,16 +775,16 @@ pub struct IRandomAccessStreamStatics_Vtbl { pub CopySizeAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, source: *mut ::core::ffi::c_void, destination: *mut ::core::ffi::c_void, bytestocopy: u64, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CopyAndCloseAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, source: *mut ::core::ffi::c_void, destination: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRandomAccessStreamWithContentType(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRandomAccessStreamWithContentType, IRandomAccessStreamWithContentType_Vtbl, 0xcc254827_4b3d_438f_9232_10c76bc7e038); +::windows_core::imp::interface_hierarchy!(IRandomAccessStreamWithContentType, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IRandomAccessStreamWithContentType, super::super::Foundation::IClosable, IContentTypeProvider, IInputStream, IOutputStream, IRandomAccessStream); impl IRandomAccessStreamWithContentType { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn ContentType(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ContentType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -946,104 +792,92 @@ impl IRandomAccessStreamWithContentType { } pub fn ReadAsync(&self, buffer: P0, count: u32, options: InputStreamOptions) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), count, options, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ReadAsync)(::windows_core::Interface::as_raw(this), buffer.into_param().abi(), count, options, &mut result__).from_abi(result__) } } pub fn WriteAsync(&self, buffer: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).WriteAsync)(::windows_core::Interface::as_raw(this), buffer.into_param().abi(), &mut result__).from_abi(result__) } } pub fn FlushAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FlushAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Size(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Size)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetSize(&self, value: u64) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetSize)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn GetInputStreamAt(&self, position: u64) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetInputStreamAt)(::windows_core::Interface::as_raw(this), position, &mut result__).from_abi(result__) } } pub fn GetOutputStreamAt(&self, position: u64) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetOutputStreamAt)(::windows_core::Interface::as_raw(this), position, &mut result__).from_abi(result__) } } pub fn Position(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Position)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Seek(&self, position: u64) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Seek)(::windows_core::Interface::as_raw(this), position).ok() } } pub fn CloneStream(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CloneStream)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CanRead(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CanRead)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CanWrite(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CanWrite)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(IRandomAccessStreamWithContentType, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IRandomAccessStreamWithContentType {} -impl ::windows_core::CanTryInto for IRandomAccessStreamWithContentType {} -impl ::windows_core::CanTryInto for IRandomAccessStreamWithContentType {} -impl ::windows_core::CanTryInto for IRandomAccessStreamWithContentType {} -impl ::windows_core::CanTryInto for IRandomAccessStreamWithContentType {} impl ::windows_core::RuntimeType for IRandomAccessStreamWithContentType { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IRandomAccessStreamWithContentType { - type Vtable = IRandomAccessStreamWithContentType_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRandomAccessStreamWithContentType { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcc254827_4b3d_438f_9232_10c76bc7e038); -} #[repr(C)] #[doc(hidden)] pub struct IRandomAccessStreamWithContentType_Vtbl { @@ -1052,6 +886,8 @@ pub struct IRandomAccessStreamWithContentType_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Buffer(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Buffer, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(Buffer, IBuffer); impl Buffer { pub fn Capacity(&self) -> ::windows_core::Result { let this = self; @@ -1079,20 +915,20 @@ impl Buffer { } pub fn CreateCopyFromMemoryBuffer(input: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IBufferStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateCopyFromMemoryBuffer)(::windows_core::Interface::as_raw(this), input.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateCopyFromMemoryBuffer)(::windows_core::Interface::as_raw(this), input.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn CreateMemoryBufferOverIBuffer(input: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IBufferStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateMemoryBufferOverIBuffer)(::windows_core::Interface::as_raw(this), input.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateMemoryBufferOverIBuffer)(::windows_core::Interface::as_raw(this), input.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -1111,23 +947,21 @@ impl ::windows_core::RuntimeType for Buffer { } unsafe impl ::windows_core::Interface for Buffer { type Vtable = IBuffer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Buffer { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Buffer { const NAME: &'static str = "Windows.Storage.Streams.Buffer"; } -::windows_core::imp::interface_hierarchy!(Buffer, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for Buffer {} unsafe impl ::core::marker::Send for Buffer {} unsafe impl ::core::marker::Sync for Buffer {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DataReader(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DataReader, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(DataReader, super::super::Foundation::IClosable, IDataReader); impl DataReader { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn UnconsumedBufferLength(&self) -> ::windows_core::Result { @@ -1302,20 +1136,20 @@ impl DataReader { } pub fn CreateDataReader(inputstream: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IDataReaderFactory(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateDataReader)(::windows_core::Interface::as_raw(this), inputstream.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateDataReader)(::windows_core::Interface::as_raw(this), inputstream.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn FromBuffer(buffer: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IDataReaderStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).FromBuffer)(::windows_core::Interface::as_raw(this), buffer.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).FromBuffer)(::windows_core::Interface::as_raw(this), buffer.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -1334,49 +1168,46 @@ impl ::windows_core::RuntimeType for DataReader { } unsafe impl ::windows_core::Interface for DataReader { type Vtable = IDataReader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DataReader { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DataReader { const NAME: &'static str = "Windows.Storage.Streams.DataReader"; } -::windows_core::imp::interface_hierarchy!(DataReader, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for DataReader {} -impl ::windows_core::CanTryInto for DataReader {} unsafe impl ::core::marker::Send for DataReader {} unsafe impl ::core::marker::Sync for DataReader {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DataReaderLoadOperation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DataReaderLoadOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(DataReaderLoadOperation, super::super::Foundation::IAsyncInfo, super::super::Foundation::IAsyncOperation::); impl DataReaderLoadOperation { pub fn Id(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Id)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Status(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Status)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ErrorCode(&self) -> ::windows_core::Result<::windows_core::HRESULT> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ErrorCode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Cancel(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Cancel)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn SetCompleted(&self, handler: P0) -> ::windows_core::Result<()> @@ -1406,9 +1237,7 @@ impl ::windows_core::RuntimeType for DataReaderLoadOperation { } unsafe impl ::windows_core::Interface for DataReaderLoadOperation { type Vtable = super::super::Foundation::IAsyncOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DataReaderLoadOperation { - const IID: ::windows_core::GUID = as ::windows_core::ComInterface>::IID; + const IID: ::windows_core::GUID = as ::windows_core::Interface>::IID; } impl ::windows_core::RuntimeName for DataReaderLoadOperation { const NAME: &'static str = "Windows.Storage.Streams.DataReaderLoadOperation"; @@ -1442,14 +1271,13 @@ impl ::std::future::Future for DataReaderLoadOperation { } } } -::windows_core::imp::interface_hierarchy!(DataReaderLoadOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for DataReaderLoadOperation {} -impl ::windows_core::CanTryInto> for DataReaderLoadOperation {} unsafe impl ::core::marker::Send for DataReaderLoadOperation {} unsafe impl ::core::marker::Sync for DataReaderLoadOperation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DataWriter(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DataWriter, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(DataWriter, super::super::Foundation::IClosable, IDataWriter); impl DataWriter { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1459,7 +1287,7 @@ impl DataWriter { SHARED.call(callback) } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn UnstoredBufferLength(&self) -> ::windows_core::Result { @@ -1501,17 +1329,17 @@ impl DataWriter { } pub fn WriteBuffer(&self, buffer: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).WriteBuffer)(::windows_core::Interface::as_raw(this), buffer.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).WriteBuffer)(::windows_core::Interface::as_raw(this), buffer.into_param().abi()).ok() } } pub fn WriteBufferRange(&self, buffer: P0, start: u32, count: u32) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).WriteBufferRange)(::windows_core::Interface::as_raw(this), buffer.try_into_param()?.abi(), start, count).ok() } + unsafe { (::windows_core::Interface::vtable(this).WriteBufferRange)(::windows_core::Interface::as_raw(this), buffer.into_param().abi(), start, count).ok() } } pub fn WriteBoolean(&self, value: bool) -> ::windows_core::Result<()> { let this = self; @@ -1605,11 +1433,11 @@ impl DataWriter { } pub fn CreateDataWriter(outputstream: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IDataWriterFactory(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateDataWriter)(::windows_core::Interface::as_raw(this), outputstream.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateDataWriter)(::windows_core::Interface::as_raw(this), outputstream.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -1623,49 +1451,46 @@ impl ::windows_core::RuntimeType for DataWriter { } unsafe impl ::windows_core::Interface for DataWriter { type Vtable = IDataWriter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DataWriter { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DataWriter { const NAME: &'static str = "Windows.Storage.Streams.DataWriter"; } -::windows_core::imp::interface_hierarchy!(DataWriter, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for DataWriter {} -impl ::windows_core::CanTryInto for DataWriter {} unsafe impl ::core::marker::Send for DataWriter {} unsafe impl ::core::marker::Sync for DataWriter {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DataWriterStoreOperation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DataWriterStoreOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(DataWriterStoreOperation, super::super::Foundation::IAsyncInfo, super::super::Foundation::IAsyncOperation::); impl DataWriterStoreOperation { pub fn Id(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Id)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Status(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Status)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ErrorCode(&self) -> ::windows_core::Result<::windows_core::HRESULT> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ErrorCode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Cancel(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Cancel)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn SetCompleted(&self, handler: P0) -> ::windows_core::Result<()> @@ -1695,9 +1520,7 @@ impl ::windows_core::RuntimeType for DataWriterStoreOperation { } unsafe impl ::windows_core::Interface for DataWriterStoreOperation { type Vtable = super::super::Foundation::IAsyncOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DataWriterStoreOperation { - const IID: ::windows_core::GUID = as ::windows_core::ComInterface>::IID; + const IID: ::windows_core::GUID = as ::windows_core::Interface>::IID; } impl ::windows_core::RuntimeName for DataWriterStoreOperation { const NAME: &'static str = "Windows.Storage.Streams.DataWriterStoreOperation"; @@ -1731,27 +1554,26 @@ impl ::std::future::Future for DataWriterStoreOperation { } } } -::windows_core::imp::interface_hierarchy!(DataWriterStoreOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for DataWriterStoreOperation {} -impl ::windows_core::CanTryInto> for DataWriterStoreOperation {} unsafe impl ::core::marker::Send for DataWriterStoreOperation {} unsafe impl ::core::marker::Sync for DataWriterStoreOperation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct FileInputStream(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(FileInputStream, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(FileInputStream, super::super::Foundation::IClosable, IInputStream); impl FileInputStream { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn ReadAsync(&self, buffer: P0, count: u32, options: InputStreamOptions) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).ReadAsync)(::windows_core::Interface::as_raw(this), buffer.try_into_param()?.abi(), count, options, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ReadAsync)(::windows_core::Interface::as_raw(this), buffer.into_param().abi(), count, options, &mut result__).from_abi(result__) } } } @@ -1760,34 +1582,31 @@ impl ::windows_core::RuntimeType for FileInputStream { } unsafe impl ::windows_core::Interface for FileInputStream { type Vtable = IInputStream_Vtbl; -} -unsafe impl ::windows_core::ComInterface for FileInputStream { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for FileInputStream { const NAME: &'static str = "Windows.Storage.Streams.FileInputStream"; } -::windows_core::imp::interface_hierarchy!(FileInputStream, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for FileInputStream {} -impl ::windows_core::CanTryInto for FileInputStream {} unsafe impl ::core::marker::Send for FileInputStream {} unsafe impl ::core::marker::Sync for FileInputStream {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct FileOutputStream(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(FileOutputStream, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(FileOutputStream, super::super::Foundation::IClosable, IOutputStream); impl FileOutputStream { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn WriteAsync(&self, buffer: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).WriteAsync)(::windows_core::Interface::as_raw(this), buffer.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).WriteAsync)(::windows_core::Interface::as_raw(this), buffer.into_param().abi(), &mut result__).from_abi(result__) } } pub fn FlushAsync(&self) -> ::windows_core::Result> { @@ -1803,24 +1622,21 @@ impl ::windows_core::RuntimeType for FileOutputStream { } unsafe impl ::windows_core::Interface for FileOutputStream { type Vtable = IOutputStream_Vtbl; -} -unsafe impl ::windows_core::ComInterface for FileOutputStream { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for FileOutputStream { const NAME: &'static str = "Windows.Storage.Streams.FileOutputStream"; } -::windows_core::imp::interface_hierarchy!(FileOutputStream, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for FileOutputStream {} -impl ::windows_core::CanTryInto for FileOutputStream {} unsafe impl ::core::marker::Send for FileOutputStream {} unsafe impl ::core::marker::Sync for FileOutputStream {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct FileRandomAccessStream(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(FileRandomAccessStream, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(FileRandomAccessStream, super::super::Foundation::IClosable, IInputStream, IOutputStream, IRandomAccessStream); impl FileRandomAccessStream { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn OpenAsync(filepath: &::windows_core::HSTRING, accessmode: super::FileAccessMode) -> ::windows_core::Result> { @@ -1893,26 +1709,26 @@ impl FileRandomAccessStream { } pub fn ReadAsync(&self, buffer: P0, count: u32, options: InputStreamOptions) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), count, options, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ReadAsync)(::windows_core::Interface::as_raw(this), buffer.into_param().abi(), count, options, &mut result__).from_abi(result__) } } pub fn WriteAsync(&self, buffer: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).WriteAsync)(::windows_core::Interface::as_raw(this), buffer.into_param().abi(), &mut result__).from_abi(result__) } } pub fn FlushAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FlushAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1986,23 +1802,18 @@ impl ::windows_core::RuntimeType for FileRandomAccessStream { } unsafe impl ::windows_core::Interface for FileRandomAccessStream { type Vtable = IRandomAccessStream_Vtbl; -} -unsafe impl ::windows_core::ComInterface for FileRandomAccessStream { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for FileRandomAccessStream { const NAME: &'static str = "Windows.Storage.Streams.FileRandomAccessStream"; } -::windows_core::imp::interface_hierarchy!(FileRandomAccessStream, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for FileRandomAccessStream {} -impl ::windows_core::CanTryInto for FileRandomAccessStream {} -impl ::windows_core::CanTryInto for FileRandomAccessStream {} -impl ::windows_core::CanTryInto for FileRandomAccessStream {} unsafe impl ::core::marker::Send for FileRandomAccessStream {} unsafe impl ::core::marker::Sync for FileRandomAccessStream {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct InMemoryRandomAccessStream(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(InMemoryRandomAccessStream, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(InMemoryRandomAccessStream, super::super::Foundation::IClosable, IInputStream, IOutputStream, IRandomAccessStream); impl InMemoryRandomAccessStream { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2012,31 +1823,31 @@ impl InMemoryRandomAccessStream { SHARED.call(callback) } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn ReadAsync(&self, buffer: P0, count: u32, options: InputStreamOptions) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), count, options, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ReadAsync)(::windows_core::Interface::as_raw(this), buffer.into_param().abi(), count, options, &mut result__).from_abi(result__) } } pub fn WriteAsync(&self, buffer: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).WriteAsync)(::windows_core::Interface::as_raw(this), buffer.into_param().abi(), &mut result__).from_abi(result__) } } pub fn FlushAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FlushAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2105,36 +1916,31 @@ impl ::windows_core::RuntimeType for InMemoryRandomAccessStream { } unsafe impl ::windows_core::Interface for InMemoryRandomAccessStream { type Vtable = IRandomAccessStream_Vtbl; -} -unsafe impl ::windows_core::ComInterface for InMemoryRandomAccessStream { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for InMemoryRandomAccessStream { const NAME: &'static str = "Windows.Storage.Streams.InMemoryRandomAccessStream"; } -::windows_core::imp::interface_hierarchy!(InMemoryRandomAccessStream, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for InMemoryRandomAccessStream {} -impl ::windows_core::CanTryInto for InMemoryRandomAccessStream {} -impl ::windows_core::CanTryInto for InMemoryRandomAccessStream {} -impl ::windows_core::CanTryInto for InMemoryRandomAccessStream {} unsafe impl ::core::marker::Send for InMemoryRandomAccessStream {} unsafe impl ::core::marker::Sync for InMemoryRandomAccessStream {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct InputStreamOverStream(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(InputStreamOverStream, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(InputStreamOverStream, super::super::Foundation::IClosable, IInputStream); impl InputStreamOverStream { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn ReadAsync(&self, buffer: P0, count: u32, options: InputStreamOptions) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).ReadAsync)(::windows_core::Interface::as_raw(this), buffer.try_into_param()?.abi(), count, options, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ReadAsync)(::windows_core::Interface::as_raw(this), buffer.into_param().abi(), count, options, &mut result__).from_abi(result__) } } } @@ -2143,34 +1949,31 @@ impl ::windows_core::RuntimeType for InputStreamOverStream { } unsafe impl ::windows_core::Interface for InputStreamOverStream { type Vtable = IInputStream_Vtbl; -} -unsafe impl ::windows_core::ComInterface for InputStreamOverStream { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for InputStreamOverStream { const NAME: &'static str = "Windows.Storage.Streams.InputStreamOverStream"; } -::windows_core::imp::interface_hierarchy!(InputStreamOverStream, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for InputStreamOverStream {} -impl ::windows_core::CanTryInto for InputStreamOverStream {} unsafe impl ::core::marker::Send for InputStreamOverStream {} unsafe impl ::core::marker::Sync for InputStreamOverStream {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct OutputStreamOverStream(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(OutputStreamOverStream, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(OutputStreamOverStream, super::super::Foundation::IClosable, IOutputStream); impl OutputStreamOverStream { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn WriteAsync(&self, buffer: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).WriteAsync)(::windows_core::Interface::as_raw(this), buffer.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).WriteAsync)(::windows_core::Interface::as_raw(this), buffer.into_param().abi(), &mut result__).from_abi(result__) } } pub fn FlushAsync(&self) -> ::windows_core::Result> { @@ -2186,48 +1989,43 @@ impl ::windows_core::RuntimeType for OutputStreamOverStream { } unsafe impl ::windows_core::Interface for OutputStreamOverStream { type Vtable = IOutputStream_Vtbl; -} -unsafe impl ::windows_core::ComInterface for OutputStreamOverStream { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for OutputStreamOverStream { const NAME: &'static str = "Windows.Storage.Streams.OutputStreamOverStream"; } -::windows_core::imp::interface_hierarchy!(OutputStreamOverStream, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for OutputStreamOverStream {} -impl ::windows_core::CanTryInto for OutputStreamOverStream {} unsafe impl ::core::marker::Send for OutputStreamOverStream {} unsafe impl ::core::marker::Sync for OutputStreamOverStream {} pub struct RandomAccessStream; impl RandomAccessStream { pub fn CopyAsync(source: P0, destination: P1) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { Self::IRandomAccessStreamStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CopyAsync)(::windows_core::Interface::as_raw(this), source.try_into_param()?.abi(), destination.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CopyAsync)(::windows_core::Interface::as_raw(this), source.into_param().abi(), destination.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn CopySizeAsync(source: P0, destination: P1, bytestocopy: u64) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { Self::IRandomAccessStreamStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CopySizeAsync)(::windows_core::Interface::as_raw(this), source.try_into_param()?.abi(), destination.try_into_param()?.abi(), bytestocopy, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CopySizeAsync)(::windows_core::Interface::as_raw(this), source.into_param().abi(), destination.into_param().abi(), bytestocopy, &mut result__).from_abi(result__) }) } pub fn CopyAndCloseAsync(source: P0, destination: P1) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { Self::IRandomAccessStreamStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CopyAndCloseAsync)(::windows_core::Interface::as_raw(this), source.try_into_param()?.abi(), destination.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CopyAndCloseAsync)(::windows_core::Interface::as_raw(this), source.into_param().abi(), destination.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -2242,33 +2040,35 @@ impl ::windows_core::RuntimeName for RandomAccessStream { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RandomAccessStreamOverStream(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RandomAccessStreamOverStream, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(RandomAccessStreamOverStream, super::super::Foundation::IClosable, IInputStream, IOutputStream, IRandomAccessStream); impl RandomAccessStreamOverStream { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn ReadAsync(&self, buffer: P0, count: u32, options: InputStreamOptions) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), count, options, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ReadAsync)(::windows_core::Interface::as_raw(this), buffer.into_param().abi(), count, options, &mut result__).from_abi(result__) } } pub fn WriteAsync(&self, buffer: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).WriteAsync)(::windows_core::Interface::as_raw(this), buffer.into_param().abi(), &mut result__).from_abi(result__) } } pub fn FlushAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FlushAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2337,23 +2137,18 @@ impl ::windows_core::RuntimeType for RandomAccessStreamOverStream { } unsafe impl ::windows_core::Interface for RandomAccessStreamOverStream { type Vtable = IRandomAccessStream_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RandomAccessStreamOverStream { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RandomAccessStreamOverStream { const NAME: &'static str = "Windows.Storage.Streams.RandomAccessStreamOverStream"; } -::windows_core::imp::interface_hierarchy!(RandomAccessStreamOverStream, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for RandomAccessStreamOverStream {} -impl ::windows_core::CanTryInto for RandomAccessStreamOverStream {} -impl ::windows_core::CanTryInto for RandomAccessStreamOverStream {} -impl ::windows_core::CanTryInto for RandomAccessStreamOverStream {} unsafe impl ::core::marker::Send for RandomAccessStreamOverStream {} unsafe impl ::core::marker::Sync for RandomAccessStreamOverStream {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RandomAccessStreamReference(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RandomAccessStreamReference, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(RandomAccessStreamReference, IRandomAccessStreamReference); impl RandomAccessStreamReference { pub fn OpenReadAsync(&self) -> ::windows_core::Result> { let this = self; @@ -2364,11 +2159,11 @@ impl RandomAccessStreamReference { } pub fn CreateFromFile(file: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IRandomAccessStreamReferenceStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateFromFile)(::windows_core::Interface::as_raw(this), file.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateFromFile)(::windows_core::Interface::as_raw(this), file.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn CreateFromUri(uri: P0) -> ::windows_core::Result @@ -2382,11 +2177,11 @@ impl RandomAccessStreamReference { } pub fn CreateFromStream(stream: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IRandomAccessStreamReferenceStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateFromStream)(::windows_core::Interface::as_raw(this), stream.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateFromStream)(::windows_core::Interface::as_raw(this), stream.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -2400,15 +2195,11 @@ impl ::windows_core::RuntimeType for RandomAccessStreamReference { } unsafe impl ::windows_core::Interface for RandomAccessStreamReference { type Vtable = IRandomAccessStreamReference_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RandomAccessStreamReference { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RandomAccessStreamReference { const NAME: &'static str = "Windows.Storage.Streams.RandomAccessStreamReference"; } -::windows_core::imp::interface_hierarchy!(RandomAccessStreamReference, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for RandomAccessStreamReference {} unsafe impl ::core::marker::Send for RandomAccessStreamReference {} unsafe impl ::core::marker::Sync for RandomAccessStreamReference {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Storage/impl.rs b/crates/libs/windows/src/Windows/Storage/impl.rs index 58390961d7..7b507d2360 100644 --- a/crates/libs/windows/src/Windows/Storage/impl.rs +++ b/crates/libs/windows/src/Windows/Storage/impl.rs @@ -182,7 +182,7 @@ impl IStorageFile_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Storage_Streams\"`"] @@ -229,7 +229,7 @@ impl IStorageFile2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IStorageFilePropertiesWithAvailability_Impl: Sized { @@ -257,7 +257,7 @@ impl IStorageFilePropertiesWithAvailability_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Storage_FileProperties\"`"] @@ -416,7 +416,7 @@ impl IStorageFolder_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IStorageFolder2_Impl: Sized { @@ -445,7 +445,7 @@ impl IStorageFolder2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Storage_FileProperties\"`"] @@ -601,7 +601,7 @@ impl IStorageItem_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Storage_FileProperties\"`"] @@ -647,7 +647,7 @@ impl IStorageItem2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Storage_FileProperties\"`, `\"Storage_Streams\"`"] @@ -764,7 +764,7 @@ impl IStorageItemProperties_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Storage_FileProperties\"`, `\"Storage_Streams\"`"] @@ -825,7 +825,7 @@ impl IStorageItemProperties2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Storage_FileProperties\"`, `\"Storage_Streams\"`"] @@ -858,7 +858,7 @@ impl IStorageItemPropertiesWithProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IStreamedFileDataRequest_Impl: Sized { @@ -880,6 +880,6 @@ impl IStreamedFileDataRequest_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/Storage/mod.rs b/crates/libs/windows/src/Windows/Storage/mod.rs index f03e73d4dc..991adab595 100644 --- a/crates/libs/windows/src/Windows/Storage/mod.rs +++ b/crates/libs/windows/src/Windows/Storage/mod.rs @@ -22,16 +22,7 @@ pub mod Search; #[cfg(feature = "Storage_Streams")] #[doc = "Required features: `\"Storage_Streams\"`"] pub mod Streams; -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppDataPaths(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppDataPaths { - type Vtable = IAppDataPaths_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppDataPaths { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7301d60a_79a2_48c9_9ec0_3fda092f79e1); -} +::windows_core::imp::com_interface!(IAppDataPaths, IAppDataPaths_Vtbl, 0x7301d60a_79a2_48c9_9ec0_3fda092f79e1); #[repr(C)] #[doc(hidden)] pub struct IAppDataPaths_Vtbl { @@ -46,16 +37,7 @@ pub struct IAppDataPaths_Vtbl { pub ProgramData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub RoamingAppData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppDataPathsStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppDataPathsStatics { - type Vtable = IAppDataPathsStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppDataPathsStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd8eb2afe_a9d9_4b14_b999_e3921379d903); -} +::windows_core::imp::com_interface!(IAppDataPathsStatics, IAppDataPathsStatics_Vtbl, 0xd8eb2afe_a9d9_4b14_b999_e3921379d903); #[repr(C)] #[doc(hidden)] pub struct IAppDataPathsStatics_Vtbl { @@ -66,16 +48,7 @@ pub struct IAppDataPathsStatics_Vtbl { GetForUser: usize, pub GetDefault: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IApplicationData(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IApplicationData { - type Vtable = IApplicationData_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IApplicationData { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc3da6fb7_b744_4b45_b0b8_223a0938d0dc); -} +::windows_core::imp::com_interface!(IApplicationData, IApplicationData_Vtbl, 0xc3da6fb7_b744_4b45_b0b8_223a0938d0dc); #[repr(C)] #[doc(hidden)] pub struct IApplicationData_Vtbl { @@ -94,32 +67,14 @@ pub struct IApplicationData_Vtbl { pub SignalDataChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RoamingStorageQuota: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u64) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IApplicationData2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IApplicationData2 { - type Vtable = IApplicationData2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IApplicationData2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9e65cd69_0ba3_4e32_be29_b02de6607638); -} +::windows_core::imp::com_interface!(IApplicationData2, IApplicationData2_Vtbl, 0x9e65cd69_0ba3_4e32_be29_b02de6607638); #[repr(C)] #[doc(hidden)] pub struct IApplicationData2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub LocalCacheFolder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IApplicationData3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IApplicationData3 { - type Vtable = IApplicationData3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IApplicationData3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdc222cf4_2772_4c1d_aa2c_c9f743ade8d1); -} +::windows_core::imp::com_interface!(IApplicationData3, IApplicationData3_Vtbl, 0xdc222cf4_2772_4c1d_aa2c_c9f743ade8d1); #[repr(C)] #[doc(hidden)] pub struct IApplicationData3_Vtbl { @@ -128,16 +83,7 @@ pub struct IApplicationData3_Vtbl { pub ClearPublisherCacheFolderAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, foldername: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SharedLocalFolder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IApplicationDataContainer(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IApplicationDataContainer { - type Vtable = IApplicationDataContainer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IApplicationDataContainer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc5aefd1e_f467_40ba_8566_ab640a441e1d); -} +::windows_core::imp::com_interface!(IApplicationDataContainer, IApplicationDataContainer_Vtbl, 0xc5aefd1e_f467_40ba_8566_ab640a441e1d); #[repr(C)] #[doc(hidden)] pub struct IApplicationDataContainer_Vtbl { @@ -155,32 +101,14 @@ pub struct IApplicationDataContainer_Vtbl { pub CreateContainer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows_core::HSTRING>, disposition: ApplicationDataCreateDisposition, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub DeleteContainer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IApplicationDataStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IApplicationDataStatics { - type Vtable = IApplicationDataStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IApplicationDataStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5612147b_e843_45e3_94d8_06169e3c8e17); -} +::windows_core::imp::com_interface!(IApplicationDataStatics, IApplicationDataStatics_Vtbl, 0x5612147b_e843_45e3_94d8_06169e3c8e17); #[repr(C)] #[doc(hidden)] pub struct IApplicationDataStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Current: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IApplicationDataStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IApplicationDataStatics2 { - type Vtable = IApplicationDataStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IApplicationDataStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcd606211_cf49_40a4_a47c_c7f0dbba8107); -} +::windows_core::imp::com_interface!(IApplicationDataStatics2, IApplicationDataStatics2_Vtbl, 0xcd606211_cf49_40a4_a47c_c7f0dbba8107); #[repr(C)] #[doc(hidden)] pub struct IApplicationDataStatics2_Vtbl { @@ -190,16 +118,7 @@ pub struct IApplicationDataStatics2_Vtbl { #[cfg(not(feature = "System"))] GetForUserAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICachedFileManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICachedFileManagerStatics { - type Vtable = ICachedFileManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICachedFileManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8ffc224a_e782_495d_b614_654c4f0b2370); -} +::windows_core::imp::com_interface!(ICachedFileManagerStatics, ICachedFileManagerStatics_Vtbl, 0x8ffc224a_e782_495d_b614_654c4f0b2370); #[repr(C)] #[doc(hidden)] pub struct ICachedFileManagerStatics_Vtbl { @@ -210,16 +129,7 @@ pub struct ICachedFileManagerStatics_Vtbl { #[cfg(not(feature = "Storage_Provider"))] CompleteUpdatesAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDownloadsFolderStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDownloadsFolderStatics { - type Vtable = IDownloadsFolderStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDownloadsFolderStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x27862ed0_404e_47df_a1e2_e37308be7b37); -} +::windows_core::imp::com_interface!(IDownloadsFolderStatics, IDownloadsFolderStatics_Vtbl, 0x27862ed0_404e_47df_a1e2_e37308be7b37); #[repr(C)] #[doc(hidden)] pub struct IDownloadsFolderStatics_Vtbl { @@ -229,16 +139,7 @@ pub struct IDownloadsFolderStatics_Vtbl { pub CreateFileWithCollisionOptionAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, desiredname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, option: CreationCollisionOption, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateFolderWithCollisionOptionAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, desiredname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, option: CreationCollisionOption, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDownloadsFolderStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDownloadsFolderStatics2 { - type Vtable = IDownloadsFolderStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDownloadsFolderStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe93045bd_8ef8_4f8e_8d15_ac0e265f390d); -} +::windows_core::imp::com_interface!(IDownloadsFolderStatics2, IDownloadsFolderStatics2_Vtbl, 0xe93045bd_8ef8_4f8e_8d15_ac0e265f390d); #[repr(C)] #[doc(hidden)] pub struct IDownloadsFolderStatics2_Vtbl { @@ -260,16 +161,7 @@ pub struct IDownloadsFolderStatics2_Vtbl { #[cfg(not(feature = "System"))] CreateFolderForUserWithCollisionOptionAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFileIOStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFileIOStatics { - type Vtable = IFileIOStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFileIOStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x887411eb_7f54_4732_a5f0_5e43e3b8c2f5); -} +::windows_core::imp::com_interface!(IFileIOStatics, IFileIOStatics_Vtbl, 0x887411eb_7f54_4732_a5f0_5e43e3b8c2f5); #[repr(C)] #[doc(hidden)] pub struct IFileIOStatics_Vtbl { @@ -323,64 +215,28 @@ pub struct IFileIOStatics_Vtbl { WriteBufferAsync: usize, pub WriteBytesAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, file: *mut ::core::ffi::c_void, buffer_array_size: u32, buffer: *const u8, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKnownFoldersCameraRollStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKnownFoldersCameraRollStatics { - type Vtable = IKnownFoldersCameraRollStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKnownFoldersCameraRollStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5d115e66_27e8_492f_b8e5_2f90896cd4cd); -} +::windows_core::imp::com_interface!(IKnownFoldersCameraRollStatics, IKnownFoldersCameraRollStatics_Vtbl, 0x5d115e66_27e8_492f_b8e5_2f90896cd4cd); #[repr(C)] #[doc(hidden)] pub struct IKnownFoldersCameraRollStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CameraRoll: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKnownFoldersPlaylistsStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKnownFoldersPlaylistsStatics { - type Vtable = IKnownFoldersPlaylistsStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKnownFoldersPlaylistsStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdad5ecd6_306f_4d6a_b496_46ba8eb106ce); -} +::windows_core::imp::com_interface!(IKnownFoldersPlaylistsStatics, IKnownFoldersPlaylistsStatics_Vtbl, 0xdad5ecd6_306f_4d6a_b496_46ba8eb106ce); #[repr(C)] #[doc(hidden)] pub struct IKnownFoldersPlaylistsStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Playlists: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKnownFoldersSavedPicturesStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKnownFoldersSavedPicturesStatics { - type Vtable = IKnownFoldersSavedPicturesStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKnownFoldersSavedPicturesStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x055c93ea_253d_467c_b6ca_a97da1e9a18d); -} +::windows_core::imp::com_interface!(IKnownFoldersSavedPicturesStatics, IKnownFoldersSavedPicturesStatics_Vtbl, 0x055c93ea_253d_467c_b6ca_a97da1e9a18d); #[repr(C)] #[doc(hidden)] pub struct IKnownFoldersSavedPicturesStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub SavedPictures: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKnownFoldersStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKnownFoldersStatics { - type Vtable = IKnownFoldersStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKnownFoldersStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5a2a7520_4802_452d_9ad9_4351ada7ec35); -} +::windows_core::imp::com_interface!(IKnownFoldersStatics, IKnownFoldersStatics_Vtbl, 0x5a2a7520_4802_452d_9ad9_4351ada7ec35); #[repr(C)] #[doc(hidden)] pub struct IKnownFoldersStatics_Vtbl { @@ -393,16 +249,7 @@ pub struct IKnownFoldersStatics_Vtbl { pub RemovableDevices: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub MediaServerDevices: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKnownFoldersStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKnownFoldersStatics2 { - type Vtable = IKnownFoldersStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKnownFoldersStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x194bd0cd_cf6e_4d07_9d53_e9163a2536e9); -} +::windows_core::imp::com_interface!(IKnownFoldersStatics2, IKnownFoldersStatics2_Vtbl, 0x194bd0cd_cf6e_4d07_9d53_e9163a2536e9); #[repr(C)] #[doc(hidden)] pub struct IKnownFoldersStatics2_Vtbl { @@ -411,16 +258,7 @@ pub struct IKnownFoldersStatics2_Vtbl { pub AppCaptures: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RecordedCalls: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKnownFoldersStatics3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKnownFoldersStatics3 { - type Vtable = IKnownFoldersStatics3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKnownFoldersStatics3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc5194341_9742_4ed5_823d_fc1401148764); -} +::windows_core::imp::com_interface!(IKnownFoldersStatics3, IKnownFoldersStatics3_Vtbl, 0xc5194341_9742_4ed5_823d_fc1401148764); #[repr(C)] #[doc(hidden)] pub struct IKnownFoldersStatics3_Vtbl { @@ -430,16 +268,7 @@ pub struct IKnownFoldersStatics3_Vtbl { #[cfg(not(feature = "System"))] GetFolderForUserAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKnownFoldersStatics4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKnownFoldersStatics4 { - type Vtable = IKnownFoldersStatics4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKnownFoldersStatics4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1722e6bf_9ff9_4b21_bed5_90ecb13a192e); -} +::windows_core::imp::com_interface!(IKnownFoldersStatics4, IKnownFoldersStatics4_Vtbl, 0x1722e6bf_9ff9_4b21_bed5_90ecb13a192e); #[repr(C)] #[doc(hidden)] pub struct IKnownFoldersStatics4_Vtbl { @@ -451,16 +280,7 @@ pub struct IKnownFoldersStatics4_Vtbl { RequestAccessForUserAsync: usize, pub GetFolderAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, folderid: KnownFolderId, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPathIOStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPathIOStatics { - type Vtable = IPathIOStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPathIOStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0f2f3758_8ec7_4381_922b_8f6c07d288f3); -} +::windows_core::imp::com_interface!(IPathIOStatics, IPathIOStatics_Vtbl, 0x0f2f3758_8ec7_4381_922b_8f6c07d288f3); #[repr(C)] #[doc(hidden)] pub struct IPathIOStatics_Vtbl { @@ -514,32 +334,14 @@ pub struct IPathIOStatics_Vtbl { WriteBufferAsync: usize, pub WriteBytesAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, absolutepath: ::std::mem::MaybeUninit<::windows_core::HSTRING>, buffer_array_size: u32, buffer: *const u8, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISetVersionDeferral(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISetVersionDeferral { - type Vtable = ISetVersionDeferral_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISetVersionDeferral { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x033508a2_781a_437a_b078_3f32badcfe47); -} +::windows_core::imp::com_interface!(ISetVersionDeferral, ISetVersionDeferral_Vtbl, 0x033508a2_781a_437a_b078_3f32badcfe47); #[repr(C)] #[doc(hidden)] pub struct ISetVersionDeferral_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Complete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISetVersionRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISetVersionRequest { - type Vtable = ISetVersionRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISetVersionRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb9c76b9b_1056_4e69_8330_162619956f9b); -} +::windows_core::imp::com_interface!(ISetVersionRequest, ISetVersionRequest_Vtbl, 0xb9c76b9b_1056_4e69_8330_162619956f9b); #[repr(C)] #[doc(hidden)] pub struct ISetVersionRequest_Vtbl { @@ -548,9 +350,10 @@ pub struct ISetVersionRequest_Vtbl { pub DesiredVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageFile(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IStorageFile, IStorageFile_Vtbl, 0xfa3f6186_4214_428c_a64c_14c9ac7315ea); +::windows_core::imp::interface_hierarchy!(IStorageFile, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Storage_Streams")] +::windows_core::imp::required_hierarchy!(IStorageFile, Streams::IInputStreamReference, Streams::IRandomAccessStreamReference, IStorageItem); impl IStorageFile { pub fn FileType(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -584,88 +387,88 @@ impl IStorageFile { } pub fn CopyOverloadDefaultNameAndOptions(&self, destinationfolder: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CopyOverloadDefaultNameAndOptions)(::windows_core::Interface::as_raw(this), destinationfolder.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CopyOverloadDefaultNameAndOptions)(::windows_core::Interface::as_raw(this), destinationfolder.into_param().abi(), &mut result__).from_abi(result__) } } pub fn CopyOverloadDefaultOptions(&self, destinationfolder: P0, desirednewname: &::windows_core::HSTRING) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CopyOverloadDefaultOptions)(::windows_core::Interface::as_raw(this), destinationfolder.try_into_param()?.abi(), ::core::mem::transmute_copy(desirednewname), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CopyOverloadDefaultOptions)(::windows_core::Interface::as_raw(this), destinationfolder.into_param().abi(), ::core::mem::transmute_copy(desirednewname), &mut result__).from_abi(result__) } } pub fn CopyOverload(&self, destinationfolder: P0, desirednewname: &::windows_core::HSTRING, option: NameCollisionOption) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CopyOverload)(::windows_core::Interface::as_raw(this), destinationfolder.try_into_param()?.abi(), ::core::mem::transmute_copy(desirednewname), option, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CopyOverload)(::windows_core::Interface::as_raw(this), destinationfolder.into_param().abi(), ::core::mem::transmute_copy(desirednewname), option, &mut result__).from_abi(result__) } } pub fn CopyAndReplaceAsync(&self, filetoreplace: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CopyAndReplaceAsync)(::windows_core::Interface::as_raw(this), filetoreplace.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CopyAndReplaceAsync)(::windows_core::Interface::as_raw(this), filetoreplace.into_param().abi(), &mut result__).from_abi(result__) } } pub fn MoveOverloadDefaultNameAndOptions(&self, destinationfolder: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).MoveOverloadDefaultNameAndOptions)(::windows_core::Interface::as_raw(this), destinationfolder.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).MoveOverloadDefaultNameAndOptions)(::windows_core::Interface::as_raw(this), destinationfolder.into_param().abi(), &mut result__).from_abi(result__) } } pub fn MoveOverloadDefaultOptions(&self, destinationfolder: P0, desirednewname: &::windows_core::HSTRING) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).MoveOverloadDefaultOptions)(::windows_core::Interface::as_raw(this), destinationfolder.try_into_param()?.abi(), ::core::mem::transmute_copy(desirednewname), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).MoveOverloadDefaultOptions)(::windows_core::Interface::as_raw(this), destinationfolder.into_param().abi(), ::core::mem::transmute_copy(desirednewname), &mut result__).from_abi(result__) } } pub fn MoveOverload(&self, destinationfolder: P0, desirednewname: &::windows_core::HSTRING, option: NameCollisionOption) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).MoveOverload)(::windows_core::Interface::as_raw(this), destinationfolder.try_into_param()?.abi(), ::core::mem::transmute_copy(desirednewname), option, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).MoveOverload)(::windows_core::Interface::as_raw(this), destinationfolder.into_param().abi(), ::core::mem::transmute_copy(desirednewname), option, &mut result__).from_abi(result__) } } pub fn MoveAndReplaceAsync(&self, filetoreplace: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).MoveAndReplaceAsync)(::windows_core::Interface::as_raw(this), filetoreplace.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).MoveAndReplaceAsync)(::windows_core::Interface::as_raw(this), filetoreplace.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn OpenSequentialReadAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OpenSequentialReadAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -674,35 +477,35 @@ impl IStorageFile { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn OpenReadAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OpenReadAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn RenameAsyncOverloadDefaultOptions(&self, desiredname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RenameAsyncOverloadDefaultOptions)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(desiredname), &mut result__).from_abi(result__) } } pub fn RenameAsync(&self, desiredname: &::windows_core::HSTRING, option: NameCollisionOption) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RenameAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(desiredname), option, &mut result__).from_abi(result__) } } pub fn DeleteAsyncOverloadDefaultOptions(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DeleteAsyncOverloadDefaultOptions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn DeleteAsync(&self, option: StorageDeleteOption) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DeleteAsync)(::windows_core::Interface::as_raw(this), option, &mut result__).from_abi(result__) @@ -711,63 +514,51 @@ impl IStorageFile { #[doc = "Required features: `\"Storage_FileProperties\"`"] #[cfg(feature = "Storage_FileProperties")] pub fn GetBasicPropertiesAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetBasicPropertiesAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Name(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Name)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Path(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Path)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Attributes(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Attributes)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn DateCreated(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DateCreated)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsOfType(&self, r#type: StorageItemTypes) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsOfType)(::windows_core::Interface::as_raw(this), r#type, &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(IStorageFile, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Storage_Streams")] -impl ::windows_core::CanTryInto for IStorageFile {} -#[cfg(feature = "Storage_Streams")] -impl ::windows_core::CanTryInto for IStorageFile {} -impl ::windows_core::CanTryInto for IStorageFile {} impl ::windows_core::RuntimeType for IStorageFile { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IStorageFile { - type Vtable = IStorageFile_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageFile { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfa3f6186_4214_428c_a64c_14c9ac7315ea); -} #[repr(C)] #[doc(hidden)] pub struct IStorageFile_Vtbl { @@ -788,9 +579,8 @@ pub struct IStorageFile_Vtbl { pub MoveOverload: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, destinationfolder: *mut ::core::ffi::c_void, desirednewname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, option: NameCollisionOption, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub MoveAndReplaceAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filetoreplace: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageFile2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IStorageFile2, IStorageFile2_Vtbl, 0x954e4bcf_0a77_42fb_b777_c2ed58a52e44); +::windows_core::imp::interface_hierarchy!(IStorageFile2, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IStorageFile2 { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] @@ -809,16 +599,9 @@ impl IStorageFile2 { } } } -::windows_core::imp::interface_hierarchy!(IStorageFile2, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IStorageFile2 { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IStorageFile2 { - type Vtable = IStorageFile2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageFile2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x954e4bcf_0a77_42fb_b777_c2ed58a52e44); -} #[repr(C)] #[doc(hidden)] pub struct IStorageFile2_Vtbl { @@ -829,9 +612,8 @@ pub struct IStorageFile2_Vtbl { OpenWithOptionsAsync: usize, pub OpenTransactedWriteWithOptionsAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, options: StorageOpenOptions, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageFilePropertiesWithAvailability(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IStorageFilePropertiesWithAvailability, IStorageFilePropertiesWithAvailability_Vtbl, 0xafcbbe9b_582b_4133_9648_e44ca46ee491); +::windows_core::imp::interface_hierarchy!(IStorageFilePropertiesWithAvailability, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IStorageFilePropertiesWithAvailability { pub fn IsAvailable(&self) -> ::windows_core::Result { let this = self; @@ -841,32 +623,16 @@ impl IStorageFilePropertiesWithAvailability { } } } -::windows_core::imp::interface_hierarchy!(IStorageFilePropertiesWithAvailability, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IStorageFilePropertiesWithAvailability { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IStorageFilePropertiesWithAvailability { - type Vtable = IStorageFilePropertiesWithAvailability_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageFilePropertiesWithAvailability { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xafcbbe9b_582b_4133_9648_e44ca46ee491); -} #[repr(C)] #[doc(hidden)] pub struct IStorageFilePropertiesWithAvailability_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub IsAvailable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageFileStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorageFileStatics { - type Vtable = IStorageFileStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageFileStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5984c710_daf2_43c8_8bb4_a4d3eacfd03f); -} +::windows_core::imp::com_interface!(IStorageFileStatics, IStorageFileStatics_Vtbl, 0x5984c710_daf2_43c8_8bb4_a4d3eacfd03f); #[repr(C)] #[doc(hidden)] pub struct IStorageFileStatics_Vtbl { @@ -890,16 +656,7 @@ pub struct IStorageFileStatics_Vtbl { #[cfg(not(feature = "Storage_Streams"))] ReplaceWithStreamedFileFromUriAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageFileStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorageFileStatics2 { - type Vtable = IStorageFileStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageFileStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5c76a781_212e_4af9_8f04_740cae108974); -} +::windows_core::imp::com_interface!(IStorageFileStatics2, IStorageFileStatics2_Vtbl, 0x5c76a781_212e_4af9_8f04_740cae108974); #[repr(C)] #[doc(hidden)] pub struct IStorageFileStatics2_Vtbl { @@ -909,9 +666,9 @@ pub struct IStorageFileStatics2_Vtbl { #[cfg(not(feature = "System"))] GetFileFromPathForUserAsync: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageFolder(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IStorageFolder, IStorageFolder_Vtbl, 0x72d1cb78_b3ef_4f75_a80b_6fd9dae2944b); +::windows_core::imp::interface_hierarchy!(IStorageFolder, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IStorageFolder, IStorageItem); impl IStorageFolder { pub fn CreateFileAsyncOverloadDefaultOptions(&self, desiredname: &::windows_core::HSTRING) -> ::windows_core::Result> { let this = self; @@ -990,28 +747,28 @@ impl IStorageFolder { } } pub fn RenameAsyncOverloadDefaultOptions(&self, desiredname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RenameAsyncOverloadDefaultOptions)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(desiredname), &mut result__).from_abi(result__) } } pub fn RenameAsync(&self, desiredname: &::windows_core::HSTRING, option: NameCollisionOption) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RenameAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(desiredname), option, &mut result__).from_abi(result__) } } pub fn DeleteAsyncOverloadDefaultOptions(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DeleteAsyncOverloadDefaultOptions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn DeleteAsync(&self, option: StorageDeleteOption) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DeleteAsync)(::windows_core::Interface::as_raw(this), option, &mut result__).from_abi(result__) @@ -1020,59 +777,51 @@ impl IStorageFolder { #[doc = "Required features: `\"Storage_FileProperties\"`"] #[cfg(feature = "Storage_FileProperties")] pub fn GetBasicPropertiesAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetBasicPropertiesAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Name(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Name)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Path(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Path)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Attributes(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Attributes)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn DateCreated(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DateCreated)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsOfType(&self, r#type: StorageItemTypes) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsOfType)(::windows_core::Interface::as_raw(this), r#type, &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(IStorageFolder, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IStorageFolder {} impl ::windows_core::RuntimeType for IStorageFolder { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IStorageFolder { - type Vtable = IStorageFolder_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageFolder { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x72d1cb78_b3ef_4f75_a80b_6fd9dae2944b); -} #[repr(C)] #[doc(hidden)] pub struct IStorageFolder_Vtbl { @@ -1097,9 +846,8 @@ pub struct IStorageFolder_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetItemsAsyncOverloadDefaultStartAndCount: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageFolder2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IStorageFolder2, IStorageFolder2_Vtbl, 0xe827e8b9_08d9_4a8e_a0ac_fe5ed3cbbbd3); +::windows_core::imp::interface_hierarchy!(IStorageFolder2, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IStorageFolder2 { pub fn TryGetItemAsync(&self, name: &::windows_core::HSTRING) -> ::windows_core::Result> { let this = self; @@ -1109,64 +857,30 @@ impl IStorageFolder2 { } } } -::windows_core::imp::interface_hierarchy!(IStorageFolder2, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IStorageFolder2 { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IStorageFolder2 { - type Vtable = IStorageFolder2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageFolder2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe827e8b9_08d9_4a8e_a0ac_fe5ed3cbbbd3); -} #[repr(C)] #[doc(hidden)] pub struct IStorageFolder2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub TryGetItemAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageFolder3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorageFolder3 { - type Vtable = IStorageFolder3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageFolder3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9f617899_bde1_4124_aeb3_b06ad96f98d4); -} +::windows_core::imp::com_interface!(IStorageFolder3, IStorageFolder3_Vtbl, 0x9f617899_bde1_4124_aeb3_b06ad96f98d4); #[repr(C)] #[doc(hidden)] pub struct IStorageFolder3_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub TryGetChangeTracker: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageFolderStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorageFolderStatics { - type Vtable = IStorageFolderStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageFolderStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x08f327ff_85d5_48b9_aee9_28511e339f9f); -} +::windows_core::imp::com_interface!(IStorageFolderStatics, IStorageFolderStatics_Vtbl, 0x08f327ff_85d5_48b9_aee9_28511e339f9f); #[repr(C)] #[doc(hidden)] pub struct IStorageFolderStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetFolderFromPathAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageFolderStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorageFolderStatics2 { - type Vtable = IStorageFolderStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageFolderStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb4656dc3_71d2_467d_8b29_371f0f62bf6f); -} +::windows_core::imp::com_interface!(IStorageFolderStatics2, IStorageFolderStatics2_Vtbl, 0xb4656dc3_71d2_467d_8b29_371f0f62bf6f); #[repr(C)] #[doc(hidden)] pub struct IStorageFolderStatics2_Vtbl { @@ -1176,9 +890,8 @@ pub struct IStorageFolderStatics2_Vtbl { #[cfg(not(feature = "System"))] GetFolderFromPathForUserAsync: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageItem(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IStorageItem, IStorageItem_Vtbl, 0x4207a996_ca2f_42f7_bde8_8b10457a7f30); +::windows_core::imp::interface_hierarchy!(IStorageItem, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IStorageItem { pub fn RenameAsyncOverloadDefaultOptions(&self, desiredname: &::windows_core::HSTRING) -> ::windows_core::Result { let this = self; @@ -1253,16 +966,9 @@ impl IStorageItem { } } } -::windows_core::imp::interface_hierarchy!(IStorageItem, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IStorageItem { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IStorageItem { - type Vtable = IStorageItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4207a996_ca2f_42f7_bde8_8b10457a7f30); -} #[repr(C)] #[doc(hidden)] pub struct IStorageItem_Vtbl { @@ -1281,9 +987,9 @@ pub struct IStorageItem_Vtbl { pub DateCreated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::Foundation::DateTime) -> ::windows_core::HRESULT, pub IsOfType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: StorageItemTypes, result__: *mut bool) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageItem2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IStorageItem2, IStorageItem2_Vtbl, 0x53f926d2_083c_4283_b45b_81c007237e44); +::windows_core::imp::interface_hierarchy!(IStorageItem2, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IStorageItem2, IStorageItem); impl IStorageItem2 { pub fn GetParentAsync(&self) -> ::windows_core::Result> { let this = self; @@ -1294,37 +1000,37 @@ impl IStorageItem2 { } pub fn IsEqual(&self, item: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).IsEqual)(::windows_core::Interface::as_raw(this), item.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).IsEqual)(::windows_core::Interface::as_raw(this), item.into_param().abi(), &mut result__).from_abi(result__) } } pub fn RenameAsyncOverloadDefaultOptions(&self, desiredname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RenameAsyncOverloadDefaultOptions)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(desiredname), &mut result__).from_abi(result__) } } pub fn RenameAsync(&self, desiredname: &::windows_core::HSTRING, option: NameCollisionOption) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RenameAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(desiredname), option, &mut result__).from_abi(result__) } } pub fn DeleteAsyncOverloadDefaultOptions(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DeleteAsyncOverloadDefaultOptions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn DeleteAsync(&self, option: StorageDeleteOption) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DeleteAsync)(::windows_core::Interface::as_raw(this), option, &mut result__).from_abi(result__) @@ -1333,59 +1039,51 @@ impl IStorageItem2 { #[doc = "Required features: `\"Storage_FileProperties\"`"] #[cfg(feature = "Storage_FileProperties")] pub fn GetBasicPropertiesAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetBasicPropertiesAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Name(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Name)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Path(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Path)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Attributes(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Attributes)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn DateCreated(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DateCreated)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsOfType(&self, r#type: StorageItemTypes) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsOfType)(::windows_core::Interface::as_raw(this), r#type, &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(IStorageItem2, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IStorageItem2 {} impl ::windows_core::RuntimeType for IStorageItem2 { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IStorageItem2 { - type Vtable = IStorageItem2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageItem2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x53f926d2_083c_4283_b45b_81c007237e44); -} #[repr(C)] #[doc(hidden)] pub struct IStorageItem2_Vtbl { @@ -1393,9 +1091,8 @@ pub struct IStorageItem2_Vtbl { pub GetParentAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub IsEqual: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, item: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageItemProperties(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IStorageItemProperties, IStorageItemProperties_Vtbl, 0x86664478_8029_46fe_a789_1c2f3e2ffb5c); +::windows_core::imp::interface_hierarchy!(IStorageItemProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IStorageItemProperties { #[doc = "Required features: `\"Storage_FileProperties\"`, `\"Storage_Streams\"`"] #[cfg(all(feature = "Storage_FileProperties", feature = "Storage_Streams"))] @@ -1455,16 +1152,9 @@ impl IStorageItemProperties { } } } -::windows_core::imp::interface_hierarchy!(IStorageItemProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IStorageItemProperties { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IStorageItemProperties { - type Vtable = IStorageItemProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageItemProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x86664478_8029_46fe_a789_1c2f3e2ffb5c); -} #[repr(C)] #[doc(hidden)] pub struct IStorageItemProperties_Vtbl { @@ -1489,9 +1179,9 @@ pub struct IStorageItemProperties_Vtbl { #[cfg(not(feature = "Storage_FileProperties"))] Properties: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageItemProperties2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IStorageItemProperties2, IStorageItemProperties2_Vtbl, 0x8e86a951_04b9_4bd2_929d_fef3f71621d0); +::windows_core::imp::interface_hierarchy!(IStorageItemProperties2, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IStorageItemProperties2, IStorageItemProperties); impl IStorageItemProperties2 { #[doc = "Required features: `\"Storage_FileProperties\"`, `\"Storage_Streams\"`"] #[cfg(all(feature = "Storage_FileProperties", feature = "Storage_Streams"))] @@ -1523,7 +1213,7 @@ impl IStorageItemProperties2 { #[doc = "Required features: `\"Storage_FileProperties\"`, `\"Storage_Streams\"`"] #[cfg(all(feature = "Storage_FileProperties", feature = "Storage_Streams"))] pub fn GetThumbnailAsyncOverloadDefaultSizeDefaultOptions(&self, mode: FileProperties::ThumbnailMode) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetThumbnailAsyncOverloadDefaultSizeDefaultOptions)(::windows_core::Interface::as_raw(this), mode, &mut result__).from_abi(result__) @@ -1532,7 +1222,7 @@ impl IStorageItemProperties2 { #[doc = "Required features: `\"Storage_FileProperties\"`, `\"Storage_Streams\"`"] #[cfg(all(feature = "Storage_FileProperties", feature = "Storage_Streams"))] pub fn GetThumbnailAsyncOverloadDefaultOptions(&self, mode: FileProperties::ThumbnailMode, requestedsize: u32) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetThumbnailAsyncOverloadDefaultOptions)(::windows_core::Interface::as_raw(this), mode, requestedsize, &mut result__).from_abi(result__) @@ -1541,28 +1231,28 @@ impl IStorageItemProperties2 { #[doc = "Required features: `\"Storage_FileProperties\"`, `\"Storage_Streams\"`"] #[cfg(all(feature = "Storage_FileProperties", feature = "Storage_Streams"))] pub fn GetThumbnailAsync(&self, mode: FileProperties::ThumbnailMode, requestedsize: u32, options: FileProperties::ThumbnailOptions) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetThumbnailAsync)(::windows_core::Interface::as_raw(this), mode, requestedsize, options, &mut result__).from_abi(result__) } } pub fn DisplayName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DisplayName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn DisplayType(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DisplayType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn FolderRelativeId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FolderRelativeId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1571,24 +1261,16 @@ impl IStorageItemProperties2 { #[doc = "Required features: `\"Storage_FileProperties\"`"] #[cfg(feature = "Storage_FileProperties")] pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(IStorageItemProperties2, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IStorageItemProperties2 {} impl ::windows_core::RuntimeType for IStorageItemProperties2 { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IStorageItemProperties2 { - type Vtable = IStorageItemProperties2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageItemProperties2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8e86a951_04b9_4bd2_929d_fef3f71621d0); -} #[repr(C)] #[doc(hidden)] pub struct IStorageItemProperties2_Vtbl { @@ -1606,9 +1288,9 @@ pub struct IStorageItemProperties2_Vtbl { #[cfg(not(all(feature = "Storage_FileProperties", feature = "Storage_Streams")))] GetScaledImageAsThumbnailAsync: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageItemPropertiesWithProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IStorageItemPropertiesWithProvider, IStorageItemPropertiesWithProvider_Vtbl, 0x861bf39b_6368_4dee_b40e_74684a5ce714); +::windows_core::imp::interface_hierarchy!(IStorageItemPropertiesWithProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IStorageItemPropertiesWithProvider, IStorageItemProperties); impl IStorageItemPropertiesWithProvider { pub fn Provider(&self) -> ::windows_core::Result { let this = self; @@ -1620,7 +1302,7 @@ impl IStorageItemPropertiesWithProvider { #[doc = "Required features: `\"Storage_FileProperties\"`, `\"Storage_Streams\"`"] #[cfg(all(feature = "Storage_FileProperties", feature = "Storage_Streams"))] pub fn GetThumbnailAsyncOverloadDefaultSizeDefaultOptions(&self, mode: FileProperties::ThumbnailMode) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetThumbnailAsyncOverloadDefaultSizeDefaultOptions)(::windows_core::Interface::as_raw(this), mode, &mut result__).from_abi(result__) @@ -1629,7 +1311,7 @@ impl IStorageItemPropertiesWithProvider { #[doc = "Required features: `\"Storage_FileProperties\"`, `\"Storage_Streams\"`"] #[cfg(all(feature = "Storage_FileProperties", feature = "Storage_Streams"))] pub fn GetThumbnailAsyncOverloadDefaultOptions(&self, mode: FileProperties::ThumbnailMode, requestedsize: u32) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetThumbnailAsyncOverloadDefaultOptions)(::windows_core::Interface::as_raw(this), mode, requestedsize, &mut result__).from_abi(result__) @@ -1638,28 +1320,28 @@ impl IStorageItemPropertiesWithProvider { #[doc = "Required features: `\"Storage_FileProperties\"`, `\"Storage_Streams\"`"] #[cfg(all(feature = "Storage_FileProperties", feature = "Storage_Streams"))] pub fn GetThumbnailAsync(&self, mode: FileProperties::ThumbnailMode, requestedsize: u32, options: FileProperties::ThumbnailOptions) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetThumbnailAsync)(::windows_core::Interface::as_raw(this), mode, requestedsize, options, &mut result__).from_abi(result__) } } pub fn DisplayName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DisplayName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn DisplayType(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DisplayType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn FolderRelativeId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FolderRelativeId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1668,40 +1350,23 @@ impl IStorageItemPropertiesWithProvider { #[doc = "Required features: `\"Storage_FileProperties\"`"] #[cfg(feature = "Storage_FileProperties")] pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(IStorageItemPropertiesWithProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IStorageItemPropertiesWithProvider {} impl ::windows_core::RuntimeType for IStorageItemPropertiesWithProvider { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IStorageItemPropertiesWithProvider { - type Vtable = IStorageItemPropertiesWithProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageItemPropertiesWithProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x861bf39b_6368_4dee_b40e_74684a5ce714); -} #[repr(C)] #[doc(hidden)] pub struct IStorageItemPropertiesWithProvider_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Provider: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageLibrary(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorageLibrary { - type Vtable = IStorageLibrary_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageLibrary { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1edd7103_0e5e_4d6c_b5e8_9318983d6a03); -} +::windows_core::imp::com_interface!(IStorageLibrary, IStorageLibrary_Vtbl, 0x1edd7103_0e5e_4d6c_b5e8_9318983d6a03); #[repr(C)] #[doc(hidden)] pub struct IStorageLibrary_Vtbl { @@ -1716,48 +1381,21 @@ pub struct IStorageLibrary_Vtbl { pub DefinitionChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveDefinitionChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventcookie: super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageLibrary2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorageLibrary2 { - type Vtable = IStorageLibrary2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageLibrary2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5b0ce348_fcb3_4031_afb0_a68d7bd44534); -} +::windows_core::imp::com_interface!(IStorageLibrary2, IStorageLibrary2_Vtbl, 0x5b0ce348_fcb3_4031_afb0_a68d7bd44534); #[repr(C)] #[doc(hidden)] pub struct IStorageLibrary2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ChangeTracker: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageLibrary3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorageLibrary3 { - type Vtable = IStorageLibrary3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageLibrary3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8a281291_2154_4201_8113_d2c05ce1ad23); -} +::windows_core::imp::com_interface!(IStorageLibrary3, IStorageLibrary3_Vtbl, 0x8a281291_2154_4201_8113_d2c05ce1ad23); #[repr(C)] #[doc(hidden)] pub struct IStorageLibrary3_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub AreFolderSuggestionsAvailableAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageLibraryChange(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorageLibraryChange { - type Vtable = IStorageLibraryChange_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageLibraryChange { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00980b23_2be2_4909_aa48_159f5203a51e); -} +::windows_core::imp::com_interface!(IStorageLibraryChange, IStorageLibraryChange_Vtbl, 0x00980b23_2be2_4909_aa48_159f5203a51e); #[repr(C)] #[doc(hidden)] pub struct IStorageLibraryChange_Vtbl { @@ -1768,16 +1406,7 @@ pub struct IStorageLibraryChange_Vtbl { pub IsOfType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: StorageItemTypes, result__: *mut bool) -> ::windows_core::HRESULT, pub GetStorageItemAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageLibraryChangeReader(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorageLibraryChangeReader { - type Vtable = IStorageLibraryChangeReader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageLibraryChangeReader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf205bc83_fca2_41f9_8954_ee2e991eb96f); -} +::windows_core::imp::com_interface!(IStorageLibraryChangeReader, IStorageLibraryChangeReader_Vtbl, 0xf205bc83_fca2_41f9_8954_ee2e991eb96f); #[repr(C)] #[doc(hidden)] pub struct IStorageLibraryChangeReader_Vtbl { @@ -1788,32 +1417,14 @@ pub struct IStorageLibraryChangeReader_Vtbl { ReadBatchAsync: usize, pub AcceptChangesAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageLibraryChangeReader2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorageLibraryChangeReader2 { - type Vtable = IStorageLibraryChangeReader2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageLibraryChangeReader2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xabf4868b_fbcc_4a4f_999e_e7ab7c646dbe); -} +::windows_core::imp::com_interface!(IStorageLibraryChangeReader2, IStorageLibraryChangeReader2_Vtbl, 0xabf4868b_fbcc_4a4f_999e_e7ab7c646dbe); #[repr(C)] #[doc(hidden)] pub struct IStorageLibraryChangeReader2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetLastChangeId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u64) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageLibraryChangeTracker(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorageLibraryChangeTracker { - type Vtable = IStorageLibraryChangeTracker_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageLibraryChangeTracker { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9e157316_6073_44f6_9681_7492d1286c90); -} +::windows_core::imp::com_interface!(IStorageLibraryChangeTracker, IStorageLibraryChangeTracker_Vtbl, 0x9e157316_6073_44f6_9681_7492d1286c90); #[repr(C)] #[doc(hidden)] pub struct IStorageLibraryChangeTracker_Vtbl { @@ -1822,16 +1433,7 @@ pub struct IStorageLibraryChangeTracker_Vtbl { pub Enable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageLibraryChangeTracker2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorageLibraryChangeTracker2 { - type Vtable = IStorageLibraryChangeTracker2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageLibraryChangeTracker2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcd051c3b_0f9f_42f9_8fb3_158d82e13821); -} +::windows_core::imp::com_interface!(IStorageLibraryChangeTracker2, IStorageLibraryChangeTracker2_Vtbl, 0xcd051c3b_0f9f_42f9_8fb3_158d82e13821); #[repr(C)] #[doc(hidden)] pub struct IStorageLibraryChangeTracker2_Vtbl { @@ -1839,16 +1441,7 @@ pub struct IStorageLibraryChangeTracker2_Vtbl { pub EnableWithOptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, options: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Disable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageLibraryChangeTrackerOptions(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorageLibraryChangeTrackerOptions { - type Vtable = IStorageLibraryChangeTrackerOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageLibraryChangeTrackerOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbb52bcd4_1a6d_59c0_ad2a_823a20532483); -} +::windows_core::imp::com_interface!(IStorageLibraryChangeTrackerOptions, IStorageLibraryChangeTrackerOptions_Vtbl, 0xbb52bcd4_1a6d_59c0_ad2a_823a20532483); #[repr(C)] #[doc(hidden)] pub struct IStorageLibraryChangeTrackerOptions_Vtbl { @@ -1856,63 +1449,27 @@ pub struct IStorageLibraryChangeTrackerOptions_Vtbl { pub TrackChangeDetails: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetTrackChangeDetails: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageLibraryLastChangeId(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorageLibraryLastChangeId { - type Vtable = IStorageLibraryLastChangeId_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageLibraryLastChangeId { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5281826a_bbe1_53bc_82ca_81cc7f039329); -} +::windows_core::imp::com_interface!(IStorageLibraryLastChangeId, IStorageLibraryLastChangeId_Vtbl, 0x5281826a_bbe1_53bc_82ca_81cc7f039329); #[repr(C)] #[doc(hidden)] pub struct IStorageLibraryLastChangeId_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageLibraryLastChangeIdStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorageLibraryLastChangeIdStatics { - type Vtable = IStorageLibraryLastChangeIdStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageLibraryLastChangeIdStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x81a49128_2ca3_5309_b0d1_cf0788e40762); -} +::windows_core::imp::com_interface!(IStorageLibraryLastChangeIdStatics, IStorageLibraryLastChangeIdStatics_Vtbl, 0x81a49128_2ca3_5309_b0d1_cf0788e40762); #[repr(C)] #[doc(hidden)] pub struct IStorageLibraryLastChangeIdStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Unknown: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u64) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageLibraryStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorageLibraryStatics { - type Vtable = IStorageLibraryStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageLibraryStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4208a6db_684a_49c6_9e59_90121ee050d6); -} +::windows_core::imp::com_interface!(IStorageLibraryStatics, IStorageLibraryStatics_Vtbl, 0x4208a6db_684a_49c6_9e59_90121ee050d6); #[repr(C)] #[doc(hidden)] pub struct IStorageLibraryStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetLibraryAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, libraryid: KnownLibraryId, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageLibraryStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorageLibraryStatics2 { - type Vtable = IStorageLibraryStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageLibraryStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xffb08ddc_fa75_4695_b9d1_7f81f97832e3); -} +::windows_core::imp::com_interface!(IStorageLibraryStatics2, IStorageLibraryStatics2_Vtbl, 0xffb08ddc_fa75_4695_b9d1_7f81f97832e3); #[repr(C)] #[doc(hidden)] pub struct IStorageLibraryStatics2_Vtbl { @@ -1922,16 +1479,7 @@ pub struct IStorageLibraryStatics2_Vtbl { #[cfg(not(feature = "System"))] GetLibraryForUserAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageProvider(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorageProvider { - type Vtable = IStorageProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe705eed4_d478_47d6_ba46_1a8ebe114a20); -} +::windows_core::imp::com_interface!(IStorageProvider, IStorageProvider_Vtbl, 0xe705eed4_d478_47d6_ba46_1a8ebe114a20); #[repr(C)] #[doc(hidden)] pub struct IStorageProvider_Vtbl { @@ -1939,32 +1487,14 @@ pub struct IStorageProvider_Vtbl { pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub DisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageProvider2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorageProvider2 { - type Vtable = IStorageProvider2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageProvider2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x010d1917_3404_414b_9fd7_cd44472eaa39); -} +::windows_core::imp::com_interface!(IStorageProvider2, IStorageProvider2_Vtbl, 0x010d1917_3404_414b_9fd7_cd44472eaa39); #[repr(C)] #[doc(hidden)] pub struct IStorageProvider2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub IsPropertySupportedForPartialFileAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertycanonicalname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageStreamTransaction(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorageStreamTransaction { - type Vtable = IStorageStreamTransaction_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageStreamTransaction { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf67cf363_a53d_4d94_ae2c_67232d93acdd); -} +::windows_core::imp::com_interface!(IStorageStreamTransaction, IStorageStreamTransaction_Vtbl, 0xf67cf363_a53d_4d94_ae2c_67232d93acdd); #[repr(C)] #[doc(hidden)] pub struct IStorageStreamTransaction_Vtbl { @@ -1975,57 +1505,31 @@ pub struct IStorageStreamTransaction_Vtbl { Stream: usize, pub CommitAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStreamedFileDataRequest(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IStreamedFileDataRequest, IStreamedFileDataRequest_Vtbl, 0x1673fcce_dabd_4d50_beee_180b8a8191b6); +::windows_core::imp::interface_hierarchy!(IStreamedFileDataRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IStreamedFileDataRequest { pub fn FailAndClose(&self, failuremode: StreamedFileFailureMode) -> ::windows_core::Result<()> { let this = self; unsafe { (::windows_core::Interface::vtable(this).FailAndClose)(::windows_core::Interface::as_raw(this), failuremode).ok() } } } -::windows_core::imp::interface_hierarchy!(IStreamedFileDataRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IStreamedFileDataRequest { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IStreamedFileDataRequest { - type Vtable = IStreamedFileDataRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStreamedFileDataRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1673fcce_dabd_4d50_beee_180b8a8191b6); -} #[repr(C)] #[doc(hidden)] pub struct IStreamedFileDataRequest_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub FailAndClose: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, failuremode: StreamedFileFailureMode) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISystemAudioProperties(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISystemAudioProperties { - type Vtable = ISystemAudioProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISystemAudioProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3f8f38b7_308c_47e1_924d_8645348e5db7); -} +::windows_core::imp::com_interface!(ISystemAudioProperties, ISystemAudioProperties_Vtbl, 0x3f8f38b7_308c_47e1_924d_8645348e5db7); #[repr(C)] #[doc(hidden)] pub struct ISystemAudioProperties_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub EncodingBitrate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISystemDataPaths(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISystemDataPaths { - type Vtable = ISystemDataPaths_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISystemDataPaths { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe32abf70_d8fa_45ec_a942_d2e26fb60ba5); -} +::windows_core::imp::com_interface!(ISystemDataPaths, ISystemDataPaths_Vtbl, 0xe32abf70_d8fa_45ec_a942_d2e26fb60ba5); #[repr(C)] #[doc(hidden)] pub struct ISystemDataPaths_Vtbl { @@ -2047,32 +1551,14 @@ pub struct ISystemDataPaths_Vtbl { pub UserProfiles: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Windows: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISystemDataPathsStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISystemDataPathsStatics { - type Vtable = ISystemDataPathsStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISystemDataPathsStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe0f96fd0_9920_4bca_b379_f96fdf7caad8); -} +::windows_core::imp::com_interface!(ISystemDataPathsStatics, ISystemDataPathsStatics_Vtbl, 0xe0f96fd0_9920_4bca_b379_f96fdf7caad8); #[repr(C)] #[doc(hidden)] pub struct ISystemDataPathsStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetDefault: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISystemGPSProperties(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISystemGPSProperties { - type Vtable = ISystemGPSProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISystemGPSProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc0f46eb4_c174_481a_bc25_921986f6a6f3); -} +::windows_core::imp::com_interface!(ISystemGPSProperties, ISystemGPSProperties_Vtbl, 0xc0f46eb4_c174_481a_bc25_921986f6a6f3); #[repr(C)] #[doc(hidden)] pub struct ISystemGPSProperties_Vtbl { @@ -2080,16 +1566,7 @@ pub struct ISystemGPSProperties_Vtbl { pub LatitudeDecimal: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub LongitudeDecimal: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISystemImageProperties(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISystemImageProperties { - type Vtable = ISystemImageProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISystemImageProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x011b2e30_8b39_4308_bea1_e8aa61e47826); -} +::windows_core::imp::com_interface!(ISystemImageProperties, ISystemImageProperties_Vtbl, 0x011b2e30_8b39_4308_bea1_e8aa61e47826); #[repr(C)] #[doc(hidden)] pub struct ISystemImageProperties_Vtbl { @@ -2097,16 +1574,7 @@ pub struct ISystemImageProperties_Vtbl { pub HorizontalSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub VerticalSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISystemMediaProperties(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISystemMediaProperties { - type Vtable = ISystemMediaProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISystemMediaProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa42b3316_8415_40dc_8c44_98361d235430); -} +::windows_core::imp::com_interface!(ISystemMediaProperties, ISystemMediaProperties_Vtbl, 0xa42b3316_8415_40dc_8c44_98361d235430); #[repr(C)] #[doc(hidden)] pub struct ISystemMediaProperties_Vtbl { @@ -2118,16 +1586,7 @@ pub struct ISystemMediaProperties_Vtbl { pub Writer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Year: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISystemMusicProperties(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISystemMusicProperties { - type Vtable = ISystemMusicProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISystemMusicProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb47988d5_67af_4bc3_8d39_5b89022026a1); -} +::windows_core::imp::com_interface!(ISystemMusicProperties, ISystemMusicProperties_Vtbl, 0xb47988d5_67af_4bc3_8d39_5b89022026a1); #[repr(C)] #[doc(hidden)] pub struct ISystemMusicProperties_Vtbl { @@ -2141,16 +1600,7 @@ pub struct ISystemMusicProperties_Vtbl { pub Genre: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub TrackNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISystemPhotoProperties(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISystemPhotoProperties { - type Vtable = ISystemPhotoProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISystemPhotoProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4734fc3d_ab21_4424_b735_f4353a56c8fc); -} +::windows_core::imp::com_interface!(ISystemPhotoProperties, ISystemPhotoProperties_Vtbl, 0x4734fc3d_ab21_4424_b735_f4353a56c8fc); #[repr(C)] #[doc(hidden)] pub struct ISystemPhotoProperties_Vtbl { @@ -2161,16 +1611,7 @@ pub struct ISystemPhotoProperties_Vtbl { pub Orientation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub PeopleNames: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISystemProperties(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISystemProperties { - type Vtable = ISystemProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISystemProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x917a71c1_85f3_4dd1_b001_a50bfd21c8d2); -} +::windows_core::imp::com_interface!(ISystemProperties, ISystemProperties_Vtbl, 0x917a71c1_85f3_4dd1_b001_a50bfd21c8d2); #[repr(C)] #[doc(hidden)] pub struct ISystemProperties_Vtbl { @@ -2189,16 +1630,7 @@ pub struct ISystemProperties_Vtbl { pub Video: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Image: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISystemVideoProperties(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISystemVideoProperties { - type Vtable = ISystemVideoProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISystemVideoProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2040f715_67f8_4322_9b80_4fa9fefb83e8); -} +::windows_core::imp::com_interface!(ISystemVideoProperties, ISystemVideoProperties_Vtbl, 0x2040f715_67f8_4322_9b80_4fa9fefb83e8); #[repr(C)] #[doc(hidden)] pub struct ISystemVideoProperties_Vtbl { @@ -2209,16 +1641,7 @@ pub struct ISystemVideoProperties_Vtbl { pub Orientation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub TotalBitrate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserDataPaths(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserDataPaths { - type Vtable = IUserDataPaths_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserDataPaths { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf9c53912_abc4_46ff_8a2b_dc9d7fa6e52f); -} +::windows_core::imp::com_interface!(IUserDataPaths, IUserDataPaths_Vtbl, 0xf9c53912_abc4_46ff_8a2b_dc9d7fa6e52f); #[repr(C)] #[doc(hidden)] pub struct IUserDataPaths_Vtbl { @@ -2243,16 +1666,7 @@ pub struct IUserDataPaths_Vtbl { pub Templates: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Videos: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserDataPathsStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserDataPathsStatics { - type Vtable = IUserDataPathsStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserDataPathsStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x01b29def_e062_48a1_8b0c_f2c7a9ca56c0); -} +::windows_core::imp::com_interface!(IUserDataPathsStatics, IUserDataPathsStatics_Vtbl, 0x01b29def_e062_48a1_8b0c_f2c7a9ca56c0); #[repr(C)] #[doc(hidden)] pub struct IUserDataPathsStatics_Vtbl { @@ -2266,6 +1680,7 @@ pub struct IUserDataPathsStatics_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppDataPaths(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppDataPaths, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppDataPaths { pub fn Cookies(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -2358,19 +1773,18 @@ impl ::windows_core::RuntimeType for AppDataPaths { } unsafe impl ::windows_core::Interface for AppDataPaths { type Vtable = IAppDataPaths_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppDataPaths { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppDataPaths { const NAME: &'static str = "Windows.Storage.AppDataPaths"; } -::windows_core::imp::interface_hierarchy!(AppDataPaths, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppDataPaths {} unsafe impl ::core::marker::Sync for AppDataPaths {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ApplicationData(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ApplicationData, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ApplicationData, super::Foundation::IClosable); impl ApplicationData { pub fn Version(&self) -> ::windows_core::Result { let this = self; @@ -2464,28 +1878,28 @@ impl ApplicationData { } } pub fn LocalCacheFolder(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).LocalCacheFolder)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetPublisherCacheFolder(&self, foldername: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetPublisherCacheFolder)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(foldername), &mut result__).from_abi(result__) } } pub fn ClearPublisherCacheFolderAsync(&self, foldername: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ClearPublisherCacheFolderAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(foldername), &mut result__).from_abi(result__) } } pub fn SharedLocalFolder(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SharedLocalFolder)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2509,7 +1923,7 @@ impl ApplicationData { }) } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } #[doc(hidden)] @@ -2528,15 +1942,11 @@ impl ::windows_core::RuntimeType for ApplicationData { } unsafe impl ::windows_core::Interface for ApplicationData { type Vtable = IApplicationData_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ApplicationData { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ApplicationData { const NAME: &'static str = "Windows.Storage.ApplicationData"; } -::windows_core::imp::interface_hierarchy!(ApplicationData, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ApplicationData {} unsafe impl ::core::marker::Send for ApplicationData {} unsafe impl ::core::marker::Sync for ApplicationData {} #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -2545,6 +1955,10 @@ unsafe impl ::core::marker::Sync for ApplicationData {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ApplicationDataCompositeValue(::windows_core::IUnknown); #[cfg(feature = "Foundation_Collections")] +::windows_core::imp::interface_hierarchy!(ApplicationDataCompositeValue, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(ApplicationDataCompositeValue, super::Foundation::Collections::IIterable::>, super::Foundation::Collections::IMap::<::windows_core::HSTRING, ::windows_core::IInspectable>, super::Foundation::Collections::IObservableMap::<::windows_core::HSTRING, ::windows_core::IInspectable>, super::Foundation::Collections::IPropertySet); +#[cfg(feature = "Foundation_Collections")] impl ApplicationDataCompositeValue { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2556,7 +1970,7 @@ impl ApplicationDataCompositeValue { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> ::windows_core::Result>> { - let this = &::windows_core::ComInterface::cast::>>(self)?; + let this = &::windows_core::Interface::cast::>>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2565,7 +1979,7 @@ impl ApplicationDataCompositeValue { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Lookup(&self, key: &::windows_core::HSTRING) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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), ::core::mem::transmute_copy(key), &mut result__).from_abi(result__) @@ -2574,7 +1988,7 @@ impl ApplicationDataCompositeValue { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Size(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Size)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2583,7 +1997,7 @@ impl ApplicationDataCompositeValue { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn HasKey(&self, key: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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), ::core::mem::transmute_copy(key), &mut result__).from_abi(result__) @@ -2592,7 +2006,7 @@ impl ApplicationDataCompositeValue { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetView(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetView)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2604,7 +2018,7 @@ impl ApplicationDataCompositeValue { where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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__).from_abi(result__) @@ -2613,13 +2027,13 @@ impl ApplicationDataCompositeValue { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Remove(&self, key: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).Remove)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Clear(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).Clear)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -2628,7 +2042,7 @@ impl ApplicationDataCompositeValue { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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__).from_abi(result__) @@ -2637,7 +2051,7 @@ impl ApplicationDataCompositeValue { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn RemoveMapChanged(&self, token: super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveMapChanged)(::windows_core::Interface::as_raw(this), token).ok() } } } @@ -2648,10 +2062,7 @@ impl ::windows_core::RuntimeType for ApplicationDataCompositeValue { #[cfg(feature = "Foundation_Collections")] unsafe impl ::windows_core::Interface for ApplicationDataCompositeValue { type Vtable = super::Foundation::Collections::IPropertySet_Vtbl; -} -#[cfg(feature = "Foundation_Collections")] -unsafe impl ::windows_core::ComInterface for ApplicationDataCompositeValue { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "Foundation_Collections")] impl ::windows_core::RuntimeName for ApplicationDataCompositeValue { @@ -2674,22 +2085,14 @@ impl ::core::iter::IntoIterator for &ApplicationDataCompositeValue { } } #[cfg(feature = "Foundation_Collections")] -::windows_core::imp::interface_hierarchy!(ApplicationDataCompositeValue, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto>> for ApplicationDataCompositeValue {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for ApplicationDataCompositeValue {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for ApplicationDataCompositeValue {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto for ApplicationDataCompositeValue {} -#[cfg(feature = "Foundation_Collections")] unsafe impl ::core::marker::Send for ApplicationDataCompositeValue {} #[cfg(feature = "Foundation_Collections")] unsafe impl ::core::marker::Sync for ApplicationDataCompositeValue {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ApplicationDataContainer(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ApplicationDataContainer, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ApplicationDataContainer, super::Foundation::IClosable); impl ApplicationDataContainer { pub fn Name(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -2735,7 +2138,7 @@ impl ApplicationDataContainer { unsafe { (::windows_core::Interface::vtable(this).DeleteContainer)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(name)).ok() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } } @@ -2744,15 +2147,11 @@ impl ::windows_core::RuntimeType for ApplicationDataContainer { } unsafe impl ::windows_core::Interface for ApplicationDataContainer { type Vtable = IApplicationDataContainer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ApplicationDataContainer { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ApplicationDataContainer { const NAME: &'static str = "Windows.Storage.ApplicationDataContainer"; } -::windows_core::imp::interface_hierarchy!(ApplicationDataContainer, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ApplicationDataContainer {} unsafe impl ::core::marker::Send for ApplicationDataContainer {} unsafe impl ::core::marker::Sync for ApplicationDataContainer {} #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -2761,11 +2160,15 @@ unsafe impl ::core::marker::Sync for ApplicationDataContainer {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ApplicationDataContainerSettings(::windows_core::IUnknown); #[cfg(feature = "Foundation_Collections")] +::windows_core::imp::interface_hierarchy!(ApplicationDataContainerSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(ApplicationDataContainerSettings, super::Foundation::Collections::IIterable::>, super::Foundation::Collections::IMap::<::windows_core::HSTRING, ::windows_core::IInspectable>, super::Foundation::Collections::IObservableMap::<::windows_core::HSTRING, ::windows_core::IInspectable>, super::Foundation::Collections::IPropertySet); +#[cfg(feature = "Foundation_Collections")] impl ApplicationDataContainerSettings { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> ::windows_core::Result>> { - let this = &::windows_core::ComInterface::cast::>>(self)?; + let this = &::windows_core::Interface::cast::>>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2774,7 +2177,7 @@ impl ApplicationDataContainerSettings { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Lookup(&self, key: &::windows_core::HSTRING) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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), ::core::mem::transmute_copy(key), &mut result__).from_abi(result__) @@ -2783,7 +2186,7 @@ impl ApplicationDataContainerSettings { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Size(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Size)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2792,7 +2195,7 @@ impl ApplicationDataContainerSettings { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn HasKey(&self, key: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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), ::core::mem::transmute_copy(key), &mut result__).from_abi(result__) @@ -2801,7 +2204,7 @@ impl ApplicationDataContainerSettings { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetView(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetView)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2813,7 +2216,7 @@ impl ApplicationDataContainerSettings { where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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__).from_abi(result__) @@ -2822,13 +2225,13 @@ impl ApplicationDataContainerSettings { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Remove(&self, key: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).Remove)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Clear(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).Clear)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -2837,7 +2240,7 @@ impl ApplicationDataContainerSettings { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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__).from_abi(result__) @@ -2846,7 +2249,7 @@ impl ApplicationDataContainerSettings { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn RemoveMapChanged(&self, token: super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveMapChanged)(::windows_core::Interface::as_raw(this), token).ok() } } } @@ -2857,10 +2260,7 @@ impl ::windows_core::RuntimeType for ApplicationDataContainerSettings { #[cfg(feature = "Foundation_Collections")] unsafe impl ::windows_core::Interface for ApplicationDataContainerSettings { type Vtable = super::Foundation::Collections::IPropertySet_Vtbl; -} -#[cfg(feature = "Foundation_Collections")] -unsafe impl ::windows_core::ComInterface for ApplicationDataContainerSettings { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "Foundation_Collections")] impl ::windows_core::RuntimeName for ApplicationDataContainerSettings { @@ -2883,16 +2283,6 @@ impl ::core::iter::IntoIterator for &ApplicationDataContainerSettings { } } #[cfg(feature = "Foundation_Collections")] -::windows_core::imp::interface_hierarchy!(ApplicationDataContainerSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto>> for ApplicationDataContainerSettings {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for ApplicationDataContainerSettings {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for ApplicationDataContainerSettings {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto for ApplicationDataContainerSettings {} -#[cfg(feature = "Foundation_Collections")] unsafe impl ::core::marker::Send for ApplicationDataContainerSettings {} #[cfg(feature = "Foundation_Collections")] unsafe impl ::core::marker::Sync for ApplicationDataContainerSettings {} @@ -2900,19 +2290,19 @@ pub struct CachedFileManager; impl CachedFileManager { pub fn DeferUpdates(file: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - Self::ICachedFileManagerStatics(|this| unsafe { (::windows_core::Interface::vtable(this).DeferUpdates)(::windows_core::Interface::as_raw(this), file.try_into_param()?.abi()).ok() }) + Self::ICachedFileManagerStatics(|this| unsafe { (::windows_core::Interface::vtable(this).DeferUpdates)(::windows_core::Interface::as_raw(this), file.into_param().abi()).ok() }) } #[doc = "Required features: `\"Storage_Provider\"`"] #[cfg(feature = "Storage_Provider")] pub fn CompleteUpdatesAsync(file: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::ICachedFileManagerStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CompleteUpdatesAsync)(::windows_core::Interface::as_raw(this), file.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CompleteUpdatesAsync)(::windows_core::Interface::as_raw(this), file.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -3012,164 +2402,164 @@ pub struct FileIO; impl FileIO { pub fn ReadTextAsync(file: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IFileIOStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).ReadTextAsync)(::windows_core::Interface::as_raw(this), file.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ReadTextAsync)(::windows_core::Interface::as_raw(this), file.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn ReadTextWithEncodingAsync(file: P0, encoding: Streams::UnicodeEncoding) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IFileIOStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).ReadTextWithEncodingAsync)(::windows_core::Interface::as_raw(this), file.try_into_param()?.abi(), encoding, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ReadTextWithEncodingAsync)(::windows_core::Interface::as_raw(this), file.into_param().abi(), encoding, &mut result__).from_abi(result__) }) } pub fn WriteTextAsync(file: P0, contents: &::windows_core::HSTRING) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IFileIOStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).WriteTextAsync)(::windows_core::Interface::as_raw(this), file.try_into_param()?.abi(), ::core::mem::transmute_copy(contents), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).WriteTextAsync)(::windows_core::Interface::as_raw(this), file.into_param().abi(), ::core::mem::transmute_copy(contents), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn WriteTextWithEncodingAsync(file: P0, contents: &::windows_core::HSTRING, encoding: Streams::UnicodeEncoding) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IFileIOStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).WriteTextWithEncodingAsync)(::windows_core::Interface::as_raw(this), file.try_into_param()?.abi(), ::core::mem::transmute_copy(contents), encoding, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).WriteTextWithEncodingAsync)(::windows_core::Interface::as_raw(this), file.into_param().abi(), ::core::mem::transmute_copy(contents), encoding, &mut result__).from_abi(result__) }) } pub fn AppendTextAsync(file: P0, contents: &::windows_core::HSTRING) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IFileIOStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).AppendTextAsync)(::windows_core::Interface::as_raw(this), file.try_into_param()?.abi(), ::core::mem::transmute_copy(contents), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).AppendTextAsync)(::windows_core::Interface::as_raw(this), file.into_param().abi(), ::core::mem::transmute_copy(contents), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn AppendTextWithEncodingAsync(file: P0, contents: &::windows_core::HSTRING, encoding: Streams::UnicodeEncoding) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IFileIOStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).AppendTextWithEncodingAsync)(::windows_core::Interface::as_raw(this), file.try_into_param()?.abi(), ::core::mem::transmute_copy(contents), encoding, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).AppendTextWithEncodingAsync)(::windows_core::Interface::as_raw(this), file.into_param().abi(), ::core::mem::transmute_copy(contents), encoding, &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn ReadLinesAsync(file: P0) -> ::windows_core::Result>> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IFileIOStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).ReadLinesAsync)(::windows_core::Interface::as_raw(this), file.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ReadLinesAsync)(::windows_core::Interface::as_raw(this), file.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Storage_Streams\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] pub fn ReadLinesWithEncodingAsync(file: P0, encoding: Streams::UnicodeEncoding) -> ::windows_core::Result>> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IFileIOStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).ReadLinesWithEncodingAsync)(::windows_core::Interface::as_raw(this), file.try_into_param()?.abi(), encoding, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ReadLinesWithEncodingAsync)(::windows_core::Interface::as_raw(this), file.into_param().abi(), encoding, &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn WriteLinesAsync(file: P0, lines: P1) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam>, { Self::IFileIOStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).WriteLinesAsync)(::windows_core::Interface::as_raw(this), file.try_into_param()?.abi(), lines.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).WriteLinesAsync)(::windows_core::Interface::as_raw(this), file.into_param().abi(), lines.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Storage_Streams\"`"] #[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::TryIntoParam, - P1: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam>, { Self::IFileIOStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).WriteLinesWithEncodingAsync)(::windows_core::Interface::as_raw(this), file.try_into_param()?.abi(), lines.try_into_param()?.abi(), encoding, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).WriteLinesWithEncodingAsync)(::windows_core::Interface::as_raw(this), file.into_param().abi(), lines.into_param().abi(), encoding, &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn AppendLinesAsync(file: P0, lines: P1) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam>, { Self::IFileIOStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).AppendLinesAsync)(::windows_core::Interface::as_raw(this), file.try_into_param()?.abi(), lines.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).AppendLinesAsync)(::windows_core::Interface::as_raw(this), file.into_param().abi(), lines.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Storage_Streams\"`"] #[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::TryIntoParam, - P1: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam>, { Self::IFileIOStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).AppendLinesWithEncodingAsync)(::windows_core::Interface::as_raw(this), file.try_into_param()?.abi(), lines.try_into_param()?.abi(), encoding, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).AppendLinesWithEncodingAsync)(::windows_core::Interface::as_raw(this), file.into_param().abi(), lines.into_param().abi(), encoding, &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn ReadBufferAsync(file: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IFileIOStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).ReadBufferAsync)(::windows_core::Interface::as_raw(this), file.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).ReadBufferAsync)(::windows_core::Interface::as_raw(this), file.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn WriteBufferAsync(file: P0, buffer: P1) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { Self::IFileIOStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).WriteBufferAsync)(::windows_core::Interface::as_raw(this), file.try_into_param()?.abi(), buffer.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).WriteBufferAsync)(::windows_core::Interface::as_raw(this), file.into_param().abi(), buffer.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn WriteBytesAsync(file: P0, buffer: &[u8]) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IFileIOStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).WriteBytesAsync)(::windows_core::Interface::as_raw(this), file.try_into_param()?.abi(), buffer.len().try_into().unwrap(), buffer.as_ptr(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } #[doc(hidden)] @@ -3398,44 +2788,44 @@ impl PathIO { #[cfg(feature = "Foundation_Collections")] pub fn WriteLinesAsync(absolutepath: &::windows_core::HSTRING, lines: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).WriteLinesAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(absolutepath), lines.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Storage_Streams\"`"] #[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::TryIntoParam>, + P0: ::windows_core::IntoParam>, { 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.try_into_param()?.abi(), encoding, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).WriteLinesWithEncodingAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(absolutepath), lines.into_param().abi(), encoding, &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn AppendLinesAsync(absolutepath: &::windows_core::HSTRING, lines: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).AppendLinesAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(absolutepath), lines.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Storage_Streams\"`"] #[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::TryIntoParam>, + P0: ::windows_core::IntoParam>, { 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.try_into_param()?.abi(), encoding, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).AppendLinesWithEncodingAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(absolutepath), lines.into_param().abi(), encoding, &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Storage_Streams\"`"] @@ -3450,11 +2840,11 @@ impl PathIO { #[cfg(feature = "Storage_Streams")] pub fn WriteBufferAsync(absolutepath: &::windows_core::HSTRING, buffer: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).WriteBufferAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(absolutepath), buffer.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn WriteBytesAsync(absolutepath: &::windows_core::HSTRING, buffer: &[u8]) -> ::windows_core::Result { @@ -3475,6 +2865,7 @@ impl ::windows_core::RuntimeName for PathIO { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SetVersionDeferral(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SetVersionDeferral, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SetVersionDeferral { pub fn Complete(&self) -> ::windows_core::Result<()> { let this = self; @@ -3486,19 +2877,17 @@ impl ::windows_core::RuntimeType for SetVersionDeferral { } unsafe impl ::windows_core::Interface for SetVersionDeferral { type Vtable = ISetVersionDeferral_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SetVersionDeferral { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SetVersionDeferral { const NAME: &'static str = "Windows.Storage.SetVersionDeferral"; } -::windows_core::imp::interface_hierarchy!(SetVersionDeferral, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SetVersionDeferral {} unsafe impl ::core::marker::Sync for SetVersionDeferral {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SetVersionRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SetVersionRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SetVersionRequest { pub fn CurrentVersion(&self) -> ::windows_core::Result { let this = self; @@ -3527,24 +2916,24 @@ impl ::windows_core::RuntimeType for SetVersionRequest { } unsafe impl ::windows_core::Interface for SetVersionRequest { type Vtable = ISetVersionRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SetVersionRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SetVersionRequest { const NAME: &'static str = "Windows.Storage.SetVersionRequest"; } -::windows_core::imp::interface_hierarchy!(SetVersionRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SetVersionRequest {} unsafe impl ::core::marker::Sync for SetVersionRequest {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StorageFile(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StorageFile, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Storage_Streams")] +::windows_core::imp::required_hierarchy!(StorageFile, Streams::IInputStreamReference, Streams::IRandomAccessStreamReference, IStorageFile, IStorageFile2, IStorageFilePropertiesWithAvailability, IStorageItem, IStorageItem2, IStorageItemProperties, IStorageItemProperties2, IStorageItemPropertiesWithProvider); impl StorageFile { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn OpenSequentialReadAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OpenSequentialReadAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3553,7 +2942,7 @@ impl StorageFile { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn OpenReadAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OpenReadAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3591,102 +2980,102 @@ impl StorageFile { } pub fn CopyOverloadDefaultNameAndOptions(&self, destinationfolder: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CopyOverloadDefaultNameAndOptions)(::windows_core::Interface::as_raw(this), destinationfolder.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CopyOverloadDefaultNameAndOptions)(::windows_core::Interface::as_raw(this), destinationfolder.into_param().abi(), &mut result__).from_abi(result__) } } pub fn CopyOverloadDefaultOptions(&self, destinationfolder: P0, desirednewname: &::windows_core::HSTRING) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CopyOverloadDefaultOptions)(::windows_core::Interface::as_raw(this), destinationfolder.try_into_param()?.abi(), ::core::mem::transmute_copy(desirednewname), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CopyOverloadDefaultOptions)(::windows_core::Interface::as_raw(this), destinationfolder.into_param().abi(), ::core::mem::transmute_copy(desirednewname), &mut result__).from_abi(result__) } } pub fn CopyOverload(&self, destinationfolder: P0, desirednewname: &::windows_core::HSTRING, option: NameCollisionOption) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CopyOverload)(::windows_core::Interface::as_raw(this), destinationfolder.try_into_param()?.abi(), ::core::mem::transmute_copy(desirednewname), option, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CopyOverload)(::windows_core::Interface::as_raw(this), destinationfolder.into_param().abi(), ::core::mem::transmute_copy(desirednewname), option, &mut result__).from_abi(result__) } } pub fn CopyAndReplaceAsync(&self, filetoreplace: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CopyAndReplaceAsync)(::windows_core::Interface::as_raw(this), filetoreplace.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CopyAndReplaceAsync)(::windows_core::Interface::as_raw(this), filetoreplace.into_param().abi(), &mut result__).from_abi(result__) } } pub fn MoveOverloadDefaultNameAndOptions(&self, destinationfolder: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).MoveOverloadDefaultNameAndOptions)(::windows_core::Interface::as_raw(this), destinationfolder.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).MoveOverloadDefaultNameAndOptions)(::windows_core::Interface::as_raw(this), destinationfolder.into_param().abi(), &mut result__).from_abi(result__) } } pub fn MoveOverloadDefaultOptions(&self, destinationfolder: P0, desirednewname: &::windows_core::HSTRING) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).MoveOverloadDefaultOptions)(::windows_core::Interface::as_raw(this), destinationfolder.try_into_param()?.abi(), ::core::mem::transmute_copy(desirednewname), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).MoveOverloadDefaultOptions)(::windows_core::Interface::as_raw(this), destinationfolder.into_param().abi(), ::core::mem::transmute_copy(desirednewname), &mut result__).from_abi(result__) } } pub fn MoveOverload(&self, destinationfolder: P0, desirednewname: &::windows_core::HSTRING, option: NameCollisionOption) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).MoveOverload)(::windows_core::Interface::as_raw(this), destinationfolder.try_into_param()?.abi(), ::core::mem::transmute_copy(desirednewname), option, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).MoveOverload)(::windows_core::Interface::as_raw(this), destinationfolder.into_param().abi(), ::core::mem::transmute_copy(desirednewname), option, &mut result__).from_abi(result__) } } pub fn MoveAndReplaceAsync(&self, filetoreplace: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).MoveAndReplaceAsync)(::windows_core::Interface::as_raw(this), filetoreplace.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).MoveAndReplaceAsync)(::windows_core::Interface::as_raw(this), filetoreplace.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn OpenWithOptionsAsync(&self, accessmode: FileAccessMode, options: StorageOpenOptions) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OpenWithOptionsAsync)(::windows_core::Interface::as_raw(this), accessmode, options, &mut result__).from_abi(result__) } } pub fn OpenTransactedWriteWithOptionsAsync(&self, options: StorageOpenOptions) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OpenTransactedWriteWithOptionsAsync)(::windows_core::Interface::as_raw(this), options, &mut result__).from_abi(result__) } } pub fn IsAvailable(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsAvailable)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3712,24 +3101,24 @@ impl StorageFile { pub fn CreateStreamedFileAsync(displaynamewithextension: &::windows_core::HSTRING, datarequested: P0, thumbnail: P1) -> ::windows_core::Result> where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam, + P1: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn ReplaceWithStreamedFileAsync(filetoreplace: P0, datarequested: P1, thumbnail: P2) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, - P2: ::windows_core::TryIntoParam, + P2: ::windows_core::IntoParam, { Self::IStorageFileStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).ReplaceWithStreamedFileAsync)(::windows_core::Interface::as_raw(this), filetoreplace.try_into_param()?.abi(), datarequested.into_param().abi(), thumbnail.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } #[doc = "Required features: `\"Storage_Streams\"`"] @@ -3737,24 +3126,24 @@ impl StorageFile { pub fn CreateStreamedFileFromUriAsync(displaynamewithextension: &::windows_core::HSTRING, uri: P0, thumbnail: P1) -> ::windows_core::Result> where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam, + P1: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn ReplaceWithStreamedFileFromUriAsync(filetoreplace: P0, uri: P1, thumbnail: P2) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, - P2: ::windows_core::TryIntoParam, + P2: ::windows_core::IntoParam, { Self::IStorageFileStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).ReplaceWithStreamedFileFromUriAsync)(::windows_core::Interface::as_raw(this), filetoreplace.try_into_param()?.abi(), uri.into_param().abi(), thumbnail.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } #[doc = "Required features: `\"System\"`"] @@ -3769,28 +3158,28 @@ impl StorageFile { }) } pub fn RenameAsyncOverloadDefaultOptions(&self, desiredname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RenameAsyncOverloadDefaultOptions)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(desiredname), &mut result__).from_abi(result__) } } pub fn RenameAsync(&self, desiredname: &::windows_core::HSTRING, option: NameCollisionOption) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RenameAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(desiredname), option, &mut result__).from_abi(result__) } } pub fn DeleteAsyncOverloadDefaultOptions(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DeleteAsyncOverloadDefaultOptions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn DeleteAsync(&self, option: StorageDeleteOption) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DeleteAsync)(::windows_core::Interface::as_raw(this), option, &mut result__).from_abi(result__) @@ -3799,49 +3188,49 @@ impl StorageFile { #[doc = "Required features: `\"Storage_FileProperties\"`"] #[cfg(feature = "Storage_FileProperties")] pub fn GetBasicPropertiesAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetBasicPropertiesAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Name(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Name)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Path(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Path)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Attributes(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Attributes)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn DateCreated(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DateCreated)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsOfType(&self, r#type: StorageItemTypes) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsOfType)(::windows_core::Interface::as_raw(this), r#type, &mut result__).from_abi(result__) } } pub fn GetParentAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetParentAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3849,18 +3238,18 @@ impl StorageFile { } pub fn IsEqual(&self, item: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).IsEqual)(::windows_core::Interface::as_raw(this), item.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Storage_FileProperties\"`, `\"Storage_Streams\"`"] #[cfg(all(feature = "Storage_FileProperties", feature = "Storage_Streams"))] pub fn GetThumbnailAsyncOverloadDefaultSizeDefaultOptions(&self, mode: FileProperties::ThumbnailMode) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetThumbnailAsyncOverloadDefaultSizeDefaultOptions)(::windows_core::Interface::as_raw(this), mode, &mut result__).from_abi(result__) @@ -3869,7 +3258,7 @@ impl StorageFile { #[doc = "Required features: `\"Storage_FileProperties\"`, `\"Storage_Streams\"`"] #[cfg(all(feature = "Storage_FileProperties", feature = "Storage_Streams"))] pub fn GetThumbnailAsyncOverloadDefaultOptions(&self, mode: FileProperties::ThumbnailMode, requestedsize: u32) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetThumbnailAsyncOverloadDefaultOptions)(::windows_core::Interface::as_raw(this), mode, requestedsize, &mut result__).from_abi(result__) @@ -3878,28 +3267,28 @@ impl StorageFile { #[doc = "Required features: `\"Storage_FileProperties\"`, `\"Storage_Streams\"`"] #[cfg(all(feature = "Storage_FileProperties", feature = "Storage_Streams"))] pub fn GetThumbnailAsync(&self, mode: FileProperties::ThumbnailMode, requestedsize: u32, options: FileProperties::ThumbnailOptions) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetThumbnailAsync)(::windows_core::Interface::as_raw(this), mode, requestedsize, options, &mut result__).from_abi(result__) } } pub fn DisplayName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DisplayName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn DisplayType(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DisplayType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn FolderRelativeId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FolderRelativeId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3908,7 +3297,7 @@ impl StorageFile { #[doc = "Required features: `\"Storage_FileProperties\"`"] #[cfg(feature = "Storage_FileProperties")] pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3917,7 +3306,7 @@ impl StorageFile { #[doc = "Required features: `\"Storage_FileProperties\"`, `\"Storage_Streams\"`"] #[cfg(all(feature = "Storage_FileProperties", feature = "Storage_Streams"))] pub fn GetScaledImageAsThumbnailAsyncOverloadDefaultSizeDefaultOptions(&self, mode: FileProperties::ThumbnailMode) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetScaledImageAsThumbnailAsyncOverloadDefaultSizeDefaultOptions)(::windows_core::Interface::as_raw(this), mode, &mut result__).from_abi(result__) @@ -3926,7 +3315,7 @@ impl StorageFile { #[doc = "Required features: `\"Storage_FileProperties\"`, `\"Storage_Streams\"`"] #[cfg(all(feature = "Storage_FileProperties", feature = "Storage_Streams"))] pub fn GetScaledImageAsThumbnailAsyncOverloadDefaultOptions(&self, mode: FileProperties::ThumbnailMode, requestedsize: u32) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetScaledImageAsThumbnailAsyncOverloadDefaultOptions)(::windows_core::Interface::as_raw(this), mode, requestedsize, &mut result__).from_abi(result__) @@ -3935,14 +3324,14 @@ impl StorageFile { #[doc = "Required features: `\"Storage_FileProperties\"`, `\"Storage_Streams\"`"] #[cfg(all(feature = "Storage_FileProperties", feature = "Storage_Streams"))] pub fn GetScaledImageAsThumbnailAsync(&self, mode: FileProperties::ThumbnailMode, requestedsize: u32, options: FileProperties::ThumbnailOptions) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetScaledImageAsThumbnailAsync)(::windows_core::Interface::as_raw(this), mode, requestedsize, options, &mut result__).from_abi(result__) } } pub fn Provider(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Provider)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3964,29 +3353,17 @@ impl ::windows_core::RuntimeType for StorageFile { } unsafe impl ::windows_core::Interface for StorageFile { type Vtable = IStorageFile_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StorageFile { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StorageFile { const NAME: &'static str = "Windows.Storage.StorageFile"; } -::windows_core::imp::interface_hierarchy!(StorageFile, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Storage_Streams")] -impl ::windows_core::CanTryInto for StorageFile {} -#[cfg(feature = "Storage_Streams")] -impl ::windows_core::CanTryInto for StorageFile {} -impl ::windows_core::CanTryInto for StorageFile {} -impl ::windows_core::CanTryInto for StorageFile {} -impl ::windows_core::CanTryInto for StorageFile {} -impl ::windows_core::CanTryInto for StorageFile {} -impl ::windows_core::CanTryInto for StorageFile {} -impl ::windows_core::CanTryInto for StorageFile {} -impl ::windows_core::CanTryInto for StorageFile {} -impl ::windows_core::CanTryInto for StorageFile {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StorageFolder(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StorageFolder, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Storage_Search")] +::windows_core::imp::required_hierarchy!(StorageFolder, IStorageFolder, IStorageFolder2, Search::IStorageFolderQueryOperations, IStorageItem, IStorageItem2, IStorageItemProperties, IStorageItemProperties2, IStorageItemPropertiesWithProvider); impl StorageFolder { pub fn CreateFileAsyncOverloadDefaultOptions(&self, desiredname: &::windows_core::HSTRING) -> ::windows_core::Result> { let this = self; @@ -4065,14 +3442,14 @@ impl StorageFolder { } } pub fn TryGetItemAsync(&self, name: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetItemAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(name), &mut result__).from_abi(result__) } } pub fn TryGetChangeTracker(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetChangeTracker)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4081,7 +3458,7 @@ impl StorageFolder { #[doc = "Required features: `\"Storage_Search\"`"] #[cfg(feature = "Storage_Search")] pub fn GetIndexedStateAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetIndexedStateAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4090,7 +3467,7 @@ impl StorageFolder { #[doc = "Required features: `\"Storage_Search\"`"] #[cfg(feature = "Storage_Search")] pub fn CreateFileQueryOverloadDefault(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateFileQueryOverloadDefault)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4099,7 +3476,7 @@ impl StorageFolder { #[doc = "Required features: `\"Storage_Search\"`"] #[cfg(feature = "Storage_Search")] pub fn CreateFileQuery(&self, query: Search::CommonFileQuery) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateFileQuery)(::windows_core::Interface::as_raw(this), query, &mut result__).from_abi(result__) @@ -4111,7 +3488,7 @@ impl StorageFolder { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -4120,7 +3497,7 @@ impl StorageFolder { #[doc = "Required features: `\"Storage_Search\"`"] #[cfg(feature = "Storage_Search")] pub fn CreateFolderQueryOverloadDefault(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateFolderQueryOverloadDefault)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4129,7 +3506,7 @@ impl StorageFolder { #[doc = "Required features: `\"Storage_Search\"`"] #[cfg(feature = "Storage_Search")] pub fn CreateFolderQuery(&self, query: Search::CommonFolderQuery) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateFolderQuery)(::windows_core::Interface::as_raw(this), query, &mut result__).from_abi(result__) @@ -4141,7 +3518,7 @@ impl StorageFolder { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -4150,7 +3527,7 @@ impl StorageFolder { #[doc = "Required features: `\"Storage_Search\"`"] #[cfg(feature = "Storage_Search")] pub fn CreateItemQuery(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateItemQuery)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4162,7 +3539,7 @@ impl StorageFolder { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -4171,7 +3548,7 @@ impl StorageFolder { #[doc = "Required features: `\"Foundation_Collections\"`, `\"Storage_Search\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Search"))] pub fn GetFilesAsync(&self, query: Search::CommonFileQuery, startindex: u32, maxitemstoretrieve: u32) -> ::windows_core::Result>> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetFilesAsync)(::windows_core::Interface::as_raw(this), query, startindex, maxitemstoretrieve, &mut result__).from_abi(result__) @@ -4180,7 +3557,7 @@ impl StorageFolder { #[doc = "Required features: `\"Foundation_Collections\"`, `\"Storage_Search\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Search"))] pub fn GetFilesAsyncOverloadDefaultStartAndCount(&self, query: Search::CommonFileQuery) -> ::windows_core::Result>> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetFilesAsyncOverloadDefaultStartAndCount)(::windows_core::Interface::as_raw(this), query, &mut result__).from_abi(result__) @@ -4189,7 +3566,7 @@ impl StorageFolder { #[doc = "Required features: `\"Foundation_Collections\"`, `\"Storage_Search\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Search"))] pub fn GetFoldersAsync(&self, query: Search::CommonFolderQuery, startindex: u32, maxitemstoretrieve: u32) -> ::windows_core::Result>> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetFoldersAsync)(::windows_core::Interface::as_raw(this), query, startindex, maxitemstoretrieve, &mut result__).from_abi(result__) @@ -4198,7 +3575,7 @@ impl StorageFolder { #[doc = "Required features: `\"Foundation_Collections\"`, `\"Storage_Search\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Search"))] pub fn GetFoldersAsyncOverloadDefaultStartAndCount(&self, query: Search::CommonFolderQuery) -> ::windows_core::Result>> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetFoldersAsyncOverloadDefaultStartAndCount)(::windows_core::Interface::as_raw(this), query, &mut result__).from_abi(result__) @@ -4207,7 +3584,7 @@ impl StorageFolder { #[doc = "Required features: `\"Foundation_Collections\"`, `\"Storage_Search\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Search"))] pub fn GetItemsAsync(&self, startindex: u32, maxitemstoretrieve: u32) -> ::windows_core::Result>> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetItemsAsync)(::windows_core::Interface::as_raw(this), startindex, maxitemstoretrieve, &mut result__).from_abi(result__) @@ -4219,7 +3596,7 @@ impl StorageFolder { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -4228,7 +3605,7 @@ impl StorageFolder { #[doc = "Required features: `\"Storage_Search\"`"] #[cfg(feature = "Storage_Search")] pub fn IsCommonFolderQuerySupported(&self, query: Search::CommonFolderQuery) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsCommonFolderQuerySupported)(::windows_core::Interface::as_raw(this), query, &mut result__).from_abi(result__) @@ -4237,7 +3614,7 @@ impl StorageFolder { #[doc = "Required features: `\"Storage_Search\"`"] #[cfg(feature = "Storage_Search")] pub fn IsCommonFileQuerySupported(&self, query: Search::CommonFileQuery) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsCommonFileQuerySupported)(::windows_core::Interface::as_raw(this), query, &mut result__).from_abi(result__) @@ -4261,28 +3638,28 @@ impl StorageFolder { }) } pub fn RenameAsyncOverloadDefaultOptions(&self, desiredname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RenameAsyncOverloadDefaultOptions)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(desiredname), &mut result__).from_abi(result__) } } pub fn RenameAsync(&self, desiredname: &::windows_core::HSTRING, option: NameCollisionOption) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RenameAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(desiredname), option, &mut result__).from_abi(result__) } } pub fn DeleteAsyncOverloadDefaultOptions(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DeleteAsyncOverloadDefaultOptions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn DeleteAsync(&self, option: StorageDeleteOption) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DeleteAsync)(::windows_core::Interface::as_raw(this), option, &mut result__).from_abi(result__) @@ -4291,49 +3668,49 @@ impl StorageFolder { #[doc = "Required features: `\"Storage_FileProperties\"`"] #[cfg(feature = "Storage_FileProperties")] pub fn GetBasicPropertiesAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetBasicPropertiesAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Name(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Name)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Path(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Path)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Attributes(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Attributes)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn DateCreated(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DateCreated)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsOfType(&self, r#type: StorageItemTypes) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsOfType)(::windows_core::Interface::as_raw(this), r#type, &mut result__).from_abi(result__) } } pub fn GetParentAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetParentAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4341,18 +3718,18 @@ impl StorageFolder { } pub fn IsEqual(&self, item: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).IsEqual)(::windows_core::Interface::as_raw(this), item.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Storage_FileProperties\"`, `\"Storage_Streams\"`"] #[cfg(all(feature = "Storage_FileProperties", feature = "Storage_Streams"))] pub fn GetThumbnailAsyncOverloadDefaultSizeDefaultOptions(&self, mode: FileProperties::ThumbnailMode) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetThumbnailAsyncOverloadDefaultSizeDefaultOptions)(::windows_core::Interface::as_raw(this), mode, &mut result__).from_abi(result__) @@ -4361,7 +3738,7 @@ impl StorageFolder { #[doc = "Required features: `\"Storage_FileProperties\"`, `\"Storage_Streams\"`"] #[cfg(all(feature = "Storage_FileProperties", feature = "Storage_Streams"))] pub fn GetThumbnailAsyncOverloadDefaultOptions(&self, mode: FileProperties::ThumbnailMode, requestedsize: u32) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetThumbnailAsyncOverloadDefaultOptions)(::windows_core::Interface::as_raw(this), mode, requestedsize, &mut result__).from_abi(result__) @@ -4370,28 +3747,28 @@ impl StorageFolder { #[doc = "Required features: `\"Storage_FileProperties\"`, `\"Storage_Streams\"`"] #[cfg(all(feature = "Storage_FileProperties", feature = "Storage_Streams"))] pub fn GetThumbnailAsync(&self, mode: FileProperties::ThumbnailMode, requestedsize: u32, options: FileProperties::ThumbnailOptions) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetThumbnailAsync)(::windows_core::Interface::as_raw(this), mode, requestedsize, options, &mut result__).from_abi(result__) } } pub fn DisplayName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DisplayName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn DisplayType(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DisplayType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn FolderRelativeId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FolderRelativeId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4400,7 +3777,7 @@ impl StorageFolder { #[doc = "Required features: `\"Storage_FileProperties\"`"] #[cfg(feature = "Storage_FileProperties")] pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4409,7 +3786,7 @@ impl StorageFolder { #[doc = "Required features: `\"Storage_FileProperties\"`, `\"Storage_Streams\"`"] #[cfg(all(feature = "Storage_FileProperties", feature = "Storage_Streams"))] pub fn GetScaledImageAsThumbnailAsyncOverloadDefaultSizeDefaultOptions(&self, mode: FileProperties::ThumbnailMode) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetScaledImageAsThumbnailAsyncOverloadDefaultSizeDefaultOptions)(::windows_core::Interface::as_raw(this), mode, &mut result__).from_abi(result__) @@ -4418,7 +3795,7 @@ impl StorageFolder { #[doc = "Required features: `\"Storage_FileProperties\"`, `\"Storage_Streams\"`"] #[cfg(all(feature = "Storage_FileProperties", feature = "Storage_Streams"))] pub fn GetScaledImageAsThumbnailAsyncOverloadDefaultOptions(&self, mode: FileProperties::ThumbnailMode, requestedsize: u32) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetScaledImageAsThumbnailAsyncOverloadDefaultOptions)(::windows_core::Interface::as_raw(this), mode, requestedsize, &mut result__).from_abi(result__) @@ -4427,14 +3804,14 @@ impl StorageFolder { #[doc = "Required features: `\"Storage_FileProperties\"`, `\"Storage_Streams\"`"] #[cfg(all(feature = "Storage_FileProperties", feature = "Storage_Streams"))] pub fn GetScaledImageAsThumbnailAsync(&self, mode: FileProperties::ThumbnailMode, requestedsize: u32, options: FileProperties::ThumbnailOptions) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetScaledImageAsThumbnailAsync)(::windows_core::Interface::as_raw(this), mode, requestedsize, options, &mut result__).from_abi(result__) } } pub fn Provider(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Provider)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4456,26 +3833,15 @@ impl ::windows_core::RuntimeType for StorageFolder { } unsafe impl ::windows_core::Interface for StorageFolder { type Vtable = IStorageFolder_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StorageFolder { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StorageFolder { const NAME: &'static str = "Windows.Storage.StorageFolder"; } -::windows_core::imp::interface_hierarchy!(StorageFolder, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for StorageFolder {} -impl ::windows_core::CanTryInto for StorageFolder {} -#[cfg(feature = "Storage_Search")] -impl ::windows_core::CanTryInto for StorageFolder {} -impl ::windows_core::CanTryInto for StorageFolder {} -impl ::windows_core::CanTryInto for StorageFolder {} -impl ::windows_core::CanTryInto for StorageFolder {} -impl ::windows_core::CanTryInto for StorageFolder {} -impl ::windows_core::CanTryInto for StorageFolder {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StorageLibrary(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StorageLibrary, ::windows_core::IUnknown, ::windows_core::IInspectable); impl StorageLibrary { pub fn RequestAddFolderAsync(&self) -> ::windows_core::Result> { let this = self; @@ -4525,14 +3891,14 @@ impl StorageLibrary { unsafe { (::windows_core::Interface::vtable(this).RemoveDefinitionChanged)(::windows_core::Interface::as_raw(this), eventcookie).ok() } } pub fn ChangeTracker(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ChangeTracker)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn AreFolderSuggestionsAvailableAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AreFolderSuggestionsAvailableAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4571,17 +3937,15 @@ impl ::windows_core::RuntimeType for StorageLibrary { } unsafe impl ::windows_core::Interface for StorageLibrary { type Vtable = IStorageLibrary_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StorageLibrary { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StorageLibrary { const NAME: &'static str = "Windows.Storage.StorageLibrary"; } -::windows_core::imp::interface_hierarchy!(StorageLibrary, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StorageLibraryChange(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StorageLibraryChange, ::windows_core::IUnknown, ::windows_core::IInspectable); impl StorageLibraryChange { pub fn ChangeType(&self) -> ::windows_core::Result { let this = self; @@ -4624,19 +3988,17 @@ impl ::windows_core::RuntimeType for StorageLibraryChange { } unsafe impl ::windows_core::Interface for StorageLibraryChange { type Vtable = IStorageLibraryChange_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StorageLibraryChange { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StorageLibraryChange { const NAME: &'static str = "Windows.Storage.StorageLibraryChange"; } -::windows_core::imp::interface_hierarchy!(StorageLibraryChange, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for StorageLibraryChange {} unsafe impl ::core::marker::Sync for StorageLibraryChange {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StorageLibraryChangeReader(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StorageLibraryChangeReader, ::windows_core::IUnknown, ::windows_core::IInspectable); impl StorageLibraryChangeReader { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -4655,7 +4017,7 @@ impl StorageLibraryChangeReader { } } pub fn GetLastChangeId(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetLastChangeId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4667,19 +4029,17 @@ impl ::windows_core::RuntimeType for StorageLibraryChangeReader { } unsafe impl ::windows_core::Interface for StorageLibraryChangeReader { type Vtable = IStorageLibraryChangeReader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StorageLibraryChangeReader { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StorageLibraryChangeReader { const NAME: &'static str = "Windows.Storage.StorageLibraryChangeReader"; } -::windows_core::imp::interface_hierarchy!(StorageLibraryChangeReader, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for StorageLibraryChangeReader {} unsafe impl ::core::marker::Sync for StorageLibraryChangeReader {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StorageLibraryChangeTracker(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StorageLibraryChangeTracker, ::windows_core::IUnknown, ::windows_core::IInspectable); impl StorageLibraryChangeTracker { pub fn GetChangeReader(&self) -> ::windows_core::Result { let this = self; @@ -4700,11 +4060,11 @@ impl StorageLibraryChangeTracker { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Disable(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Disable)(::windows_core::Interface::as_raw(this)).ok() } } } @@ -4713,19 +4073,17 @@ impl ::windows_core::RuntimeType for StorageLibraryChangeTracker { } unsafe impl ::windows_core::Interface for StorageLibraryChangeTracker { type Vtable = IStorageLibraryChangeTracker_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StorageLibraryChangeTracker { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StorageLibraryChangeTracker { const NAME: &'static str = "Windows.Storage.StorageLibraryChangeTracker"; } -::windows_core::imp::interface_hierarchy!(StorageLibraryChangeTracker, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for StorageLibraryChangeTracker {} unsafe impl ::core::marker::Sync for StorageLibraryChangeTracker {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StorageLibraryChangeTrackerOptions(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StorageLibraryChangeTrackerOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); impl StorageLibraryChangeTrackerOptions { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -4751,19 +4109,17 @@ impl ::windows_core::RuntimeType for StorageLibraryChangeTrackerOptions { } unsafe impl ::windows_core::Interface for StorageLibraryChangeTrackerOptions { type Vtable = IStorageLibraryChangeTrackerOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StorageLibraryChangeTrackerOptions { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StorageLibraryChangeTrackerOptions { const NAME: &'static str = "Windows.Storage.StorageLibraryChangeTrackerOptions"; } -::windows_core::imp::interface_hierarchy!(StorageLibraryChangeTrackerOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for StorageLibraryChangeTrackerOptions {} unsafe impl ::core::marker::Sync for StorageLibraryChangeTrackerOptions {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StorageLibraryLastChangeId(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StorageLibraryLastChangeId, ::windows_core::IUnknown, ::windows_core::IInspectable); impl StorageLibraryLastChangeId { pub fn Unknown() -> ::windows_core::Result { Self::IStorageLibraryLastChangeIdStatics(|this| unsafe { @@ -4782,19 +4138,17 @@ impl ::windows_core::RuntimeType for StorageLibraryLastChangeId { } unsafe impl ::windows_core::Interface for StorageLibraryLastChangeId { type Vtable = IStorageLibraryLastChangeId_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StorageLibraryLastChangeId { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StorageLibraryLastChangeId { const NAME: &'static str = "Windows.Storage.StorageLibraryLastChangeId"; } -::windows_core::imp::interface_hierarchy!(StorageLibraryLastChangeId, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for StorageLibraryLastChangeId {} unsafe impl ::core::marker::Sync for StorageLibraryLastChangeId {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StorageProvider(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StorageProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); impl StorageProvider { pub fn Id(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -4811,7 +4165,7 @@ impl StorageProvider { } } pub fn IsPropertySupportedForPartialFileAsync(&self, propertycanonicalname: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsPropertySupportedForPartialFileAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertycanonicalname), &mut result__).from_abi(result__) @@ -4823,20 +4177,19 @@ impl ::windows_core::RuntimeType for StorageProvider { } unsafe impl ::windows_core::Interface for StorageProvider { type Vtable = IStorageProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StorageProvider { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StorageProvider { const NAME: &'static str = "Windows.Storage.StorageProvider"; } -::windows_core::imp::interface_hierarchy!(StorageProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StorageStreamTransaction(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StorageStreamTransaction, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(StorageStreamTransaction, super::Foundation::IClosable); impl StorageStreamTransaction { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Storage_Streams\"`"] @@ -4861,36 +4214,36 @@ impl ::windows_core::RuntimeType for StorageStreamTransaction { } unsafe impl ::windows_core::Interface for StorageStreamTransaction { type Vtable = IStorageStreamTransaction_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StorageStreamTransaction { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StorageStreamTransaction { const NAME: &'static str = "Windows.Storage.StorageStreamTransaction"; } -::windows_core::imp::interface_hierarchy!(StorageStreamTransaction, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for StorageStreamTransaction {} #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StreamedFileDataRequest(::windows_core::IUnknown); #[cfg(feature = "Storage_Streams")] +::windows_core::imp::interface_hierarchy!(StreamedFileDataRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Storage_Streams")] +::windows_core::imp::required_hierarchy!(StreamedFileDataRequest, super::Foundation::IClosable, Streams::IOutputStream, IStreamedFileDataRequest); +#[cfg(feature = "Storage_Streams")] impl StreamedFileDataRequest { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn WriteAsync(&self, buffer: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).WriteAsync)(::windows_core::Interface::as_raw(this), buffer.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).WriteAsync)(::windows_core::Interface::as_raw(this), buffer.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Storage_Streams\"`"] @@ -4903,7 +4256,7 @@ impl StreamedFileDataRequest { } } pub fn FailAndClose(&self, failuremode: StreamedFileFailureMode) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).FailAndClose)(::windows_core::Interface::as_raw(this), failuremode).ok() } } } @@ -4914,26 +4267,16 @@ impl ::windows_core::RuntimeType for StreamedFileDataRequest { #[cfg(feature = "Storage_Streams")] unsafe impl ::windows_core::Interface for StreamedFileDataRequest { type Vtable = Streams::IOutputStream_Vtbl; -} -#[cfg(feature = "Storage_Streams")] -unsafe impl ::windows_core::ComInterface for StreamedFileDataRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "Storage_Streams")] impl ::windows_core::RuntimeName for StreamedFileDataRequest { const NAME: &'static str = "Windows.Storage.StreamedFileDataRequest"; } -#[cfg(feature = "Storage_Streams")] -::windows_core::imp::interface_hierarchy!(StreamedFileDataRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Storage_Streams")] -impl ::windows_core::CanTryInto for StreamedFileDataRequest {} -#[cfg(feature = "Storage_Streams")] -impl ::windows_core::CanTryInto for StreamedFileDataRequest {} -#[cfg(feature = "Storage_Streams")] -impl ::windows_core::CanTryInto for StreamedFileDataRequest {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SystemAudioProperties(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SystemAudioProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SystemAudioProperties { pub fn EncodingBitrate(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -4948,19 +4291,17 @@ impl ::windows_core::RuntimeType for SystemAudioProperties { } unsafe impl ::windows_core::Interface for SystemAudioProperties { type Vtable = ISystemAudioProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SystemAudioProperties { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SystemAudioProperties { const NAME: &'static str = "Windows.Storage.SystemAudioProperties"; } -::windows_core::imp::interface_hierarchy!(SystemAudioProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SystemAudioProperties {} unsafe impl ::core::marker::Sync for SystemAudioProperties {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SystemDataPaths(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SystemDataPaths, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SystemDataPaths { pub fn Fonts(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -5091,19 +4432,17 @@ impl ::windows_core::RuntimeType for SystemDataPaths { } unsafe impl ::windows_core::Interface for SystemDataPaths { type Vtable = ISystemDataPaths_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SystemDataPaths { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SystemDataPaths { const NAME: &'static str = "Windows.Storage.SystemDataPaths"; } -::windows_core::imp::interface_hierarchy!(SystemDataPaths, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SystemDataPaths {} unsafe impl ::core::marker::Sync for SystemDataPaths {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SystemGPSProperties(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SystemGPSProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SystemGPSProperties { pub fn LatitudeDecimal(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -5125,19 +4464,17 @@ impl ::windows_core::RuntimeType for SystemGPSProperties { } unsafe impl ::windows_core::Interface for SystemGPSProperties { type Vtable = ISystemGPSProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SystemGPSProperties { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SystemGPSProperties { const NAME: &'static str = "Windows.Storage.SystemGPSProperties"; } -::windows_core::imp::interface_hierarchy!(SystemGPSProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SystemGPSProperties {} unsafe impl ::core::marker::Sync for SystemGPSProperties {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SystemImageProperties(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SystemImageProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SystemImageProperties { pub fn HorizontalSize(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -5159,19 +4496,17 @@ impl ::windows_core::RuntimeType for SystemImageProperties { } unsafe impl ::windows_core::Interface for SystemImageProperties { type Vtable = ISystemImageProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SystemImageProperties { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SystemImageProperties { const NAME: &'static str = "Windows.Storage.SystemImageProperties"; } -::windows_core::imp::interface_hierarchy!(SystemImageProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SystemImageProperties {} unsafe impl ::core::marker::Sync for SystemImageProperties {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SystemMediaProperties(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SystemMediaProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SystemMediaProperties { pub fn Duration(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -5221,19 +4556,17 @@ impl ::windows_core::RuntimeType for SystemMediaProperties { } unsafe impl ::windows_core::Interface for SystemMediaProperties { type Vtable = ISystemMediaProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SystemMediaProperties { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SystemMediaProperties { const NAME: &'static str = "Windows.Storage.SystemMediaProperties"; } -::windows_core::imp::interface_hierarchy!(SystemMediaProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SystemMediaProperties {} unsafe impl ::core::marker::Sync for SystemMediaProperties {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SystemMusicProperties(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SystemMusicProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SystemMusicProperties { pub fn AlbumArtist(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -5297,19 +4630,17 @@ impl ::windows_core::RuntimeType for SystemMusicProperties { } unsafe impl ::windows_core::Interface for SystemMusicProperties { type Vtable = ISystemMusicProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SystemMusicProperties { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SystemMusicProperties { const NAME: &'static str = "Windows.Storage.SystemMusicProperties"; } -::windows_core::imp::interface_hierarchy!(SystemMusicProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SystemMusicProperties {} unsafe impl ::core::marker::Sync for SystemMusicProperties {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SystemPhotoProperties(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SystemPhotoProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SystemPhotoProperties { pub fn CameraManufacturer(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -5352,14 +4683,11 @@ impl ::windows_core::RuntimeType for SystemPhotoProperties { } unsafe impl ::windows_core::Interface for SystemPhotoProperties { type Vtable = ISystemPhotoProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SystemPhotoProperties { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SystemPhotoProperties { const NAME: &'static str = "Windows.Storage.SystemPhotoProperties"; } -::windows_core::imp::interface_hierarchy!(SystemPhotoProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SystemPhotoProperties {} unsafe impl ::core::marker::Sync for SystemPhotoProperties {} pub struct SystemProperties; @@ -5454,6 +4782,7 @@ impl ::windows_core::RuntimeName for SystemProperties { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SystemVideoProperties(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SystemVideoProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SystemVideoProperties { pub fn Director(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -5496,19 +4825,17 @@ impl ::windows_core::RuntimeType for SystemVideoProperties { } unsafe impl ::windows_core::Interface for SystemVideoProperties { type Vtable = ISystemVideoProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SystemVideoProperties { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SystemVideoProperties { const NAME: &'static str = "Windows.Storage.SystemVideoProperties"; } -::windows_core::imp::interface_hierarchy!(SystemVideoProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SystemVideoProperties {} unsafe impl ::core::marker::Sync for SystemVideoProperties {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UserDataPaths(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UserDataPaths, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UserDataPaths { pub fn CameraRoll(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -5671,14 +4998,11 @@ impl ::windows_core::RuntimeType for UserDataPaths { } unsafe impl ::windows_core::Interface for UserDataPaths { type Vtable = IUserDataPaths_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UserDataPaths { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UserDataPaths { const NAME: &'static str = "Windows.Storage.UserDataPaths"; } -::windows_core::imp::interface_hierarchy!(UserDataPaths, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UserDataPaths {} unsafe impl ::core::marker::Sync for UserDataPaths {} #[repr(transparent)] @@ -6074,9 +5398,7 @@ impl ::core::fmt::Debug for StreamedFileFailureMode { impl ::windows_core::RuntimeType for StreamedFileFailureMode { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::from_slice(b"enum(Windows.Storage.StreamedFileFailureMode;i4)"); } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ApplicationDataSetVersionHandler(pub ::windows_core::IUnknown); +::windows_core::imp::com_interface!(ApplicationDataSetVersionHandler, ApplicationDataSetVersionHandler_Vtbl, 0xa05791e6_cc9f_4687_acab_a364fd785463); impl ApplicationDataSetVersionHandler { pub fn new) -> ::windows_core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = ApplicationDataSetVersionHandlerBox:: { vtable: &ApplicationDataSetVersionHandlerBox::::VTABLE, count: ::windows_core::imp::RefCount::new(1), invoke }; @@ -6106,7 +5428,7 @@ impl) -> ::windows_core::Res if iid.is_null() || interface.is_null() { return ::windows_core::HRESULT(-2147467261); } - *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; + *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::Interface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::Interface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; if (*interface).is_null() { ::windows_core::HRESULT(-2147467262) } else { @@ -6131,12 +5453,6 @@ impl) -> ::windows_core::Res ((*this).invoke)(::windows_core::from_raw_borrowed(&setversionrequest)).into() } } -unsafe impl ::windows_core::Interface for ApplicationDataSetVersionHandler { - type Vtable = ApplicationDataSetVersionHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ApplicationDataSetVersionHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa05791e6_cc9f_4687_acab_a364fd785463); -} impl ::windows_core::RuntimeType for ApplicationDataSetVersionHandler { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } @@ -6146,11 +5462,8 @@ pub struct ApplicationDataSetVersionHandler_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Invoke: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, setversionrequest: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct StreamedFileDataRequestedHandler(pub ::windows_core::IUnknown); +::windows_core::imp::com_interface!(StreamedFileDataRequestedHandler, StreamedFileDataRequestedHandler_Vtbl, 0xfef6a824_2fe1_4d07_a35b_b77c50b5f4cc); #[cfg(feature = "Storage_Streams")] impl StreamedFileDataRequestedHandler { pub fn new) -> ::windows_core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { @@ -6185,7 +5498,7 @@ impl) -> ::windows_cor if iid.is_null() || interface.is_null() { return ::windows_core::HRESULT(-2147467261); } - *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; + *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::Interface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::Interface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; if (*interface).is_null() { ::windows_core::HRESULT(-2147467262) } else { @@ -6211,14 +5524,6 @@ impl) -> ::windows_cor } } #[cfg(feature = "Storage_Streams")] -unsafe impl ::windows_core::Interface for StreamedFileDataRequestedHandler { - type Vtable = StreamedFileDataRequestedHandler_Vtbl; -} -#[cfg(feature = "Storage_Streams")] -unsafe impl ::windows_core::ComInterface for StreamedFileDataRequestedHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfef6a824_2fe1_4d07_a35b_b77c50b5f4cc); -} -#[cfg(feature = "Storage_Streams")] impl ::windows_core::RuntimeType for StreamedFileDataRequestedHandler { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } 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 c69c4fd626..e55001aad7 100644 --- a/crates/libs/windows/src/Windows/System/Diagnostics/DevicePortal/mod.rs +++ b/crates/libs/windows/src/Windows/System/Diagnostics/DevicePortal/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDevicePortalConnection(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDevicePortalConnection { - type Vtable = IDevicePortalConnection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDevicePortalConnection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0f447f51_1198_4da1_8d54_bdef393e09b6); -} +::windows_core::imp::com_interface!(IDevicePortalConnection, IDevicePortalConnection_Vtbl, 0x0f447f51_1198_4da1_8d54_bdef393e09b6); #[repr(C)] #[doc(hidden)] pub struct IDevicePortalConnection_Vtbl { @@ -17,32 +8,14 @@ pub struct IDevicePortalConnection_Vtbl { pub RequestReceived: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveRequestReceived: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDevicePortalConnectionClosedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDevicePortalConnectionClosedEventArgs { - type Vtable = IDevicePortalConnectionClosedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDevicePortalConnectionClosedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfcf70e38_7032_428c_9f50_945c15a9f0cb); -} +::windows_core::imp::com_interface!(IDevicePortalConnectionClosedEventArgs, IDevicePortalConnectionClosedEventArgs_Vtbl, 0xfcf70e38_7032_428c_9f50_945c15a9f0cb); #[repr(C)] #[doc(hidden)] pub struct IDevicePortalConnectionClosedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Reason: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut DevicePortalConnectionClosedReason) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDevicePortalConnectionRequestReceivedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDevicePortalConnectionRequestReceivedEventArgs { - type Vtable = IDevicePortalConnectionRequestReceivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDevicePortalConnectionRequestReceivedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x64dae045_6fda_4459_9ebd_ecce22e38559); -} +::windows_core::imp::com_interface!(IDevicePortalConnectionRequestReceivedEventArgs, IDevicePortalConnectionRequestReceivedEventArgs_Vtbl, 0x64dae045_6fda_4459_9ebd_ecce22e38559); #[repr(C)] #[doc(hidden)] pub struct IDevicePortalConnectionRequestReceivedEventArgs_Vtbl { @@ -56,16 +29,7 @@ pub struct IDevicePortalConnectionRequestReceivedEventArgs_Vtbl { #[cfg(not(feature = "Web_Http"))] ResponseMessage: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDevicePortalConnectionStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDevicePortalConnectionStatics { - type Vtable = IDevicePortalConnectionStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDevicePortalConnectionStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4bbe31e7_e9b9_4645_8fed_a53eea0edbd6); -} +::windows_core::imp::com_interface!(IDevicePortalConnectionStatics, IDevicePortalConnectionStatics_Vtbl, 0x4bbe31e7_e9b9_4645_8fed_a53eea0edbd6); #[repr(C)] #[doc(hidden)] pub struct IDevicePortalConnectionStatics_Vtbl { @@ -75,16 +39,7 @@ pub struct IDevicePortalConnectionStatics_Vtbl { #[cfg(not(feature = "ApplicationModel_AppService"))] GetForAppServiceConnection: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDevicePortalWebSocketConnection(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDevicePortalWebSocketConnection { - type Vtable = IDevicePortalWebSocketConnection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDevicePortalWebSocketConnection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x67657920_d65a_42f0_aef4_787808098b7b); -} +::windows_core::imp::com_interface!(IDevicePortalWebSocketConnection, IDevicePortalWebSocketConnection_Vtbl, 0x67657920_d65a_42f0_aef4_787808098b7b); #[repr(C)] #[doc(hidden)] pub struct IDevicePortalWebSocketConnection_Vtbl { @@ -110,16 +65,7 @@ pub struct IDevicePortalWebSocketConnection_Vtbl { #[cfg(not(all(feature = "Networking_Sockets", feature = "Web_Http")))] GetServerStreamWebSocketForRequest2: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDevicePortalWebSocketConnectionRequestReceivedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDevicePortalWebSocketConnectionRequestReceivedEventArgs { - type Vtable = IDevicePortalWebSocketConnectionRequestReceivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDevicePortalWebSocketConnectionRequestReceivedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x79fdcaba_175c_4739_9f74_dda797c35b3f); -} +::windows_core::imp::com_interface!(IDevicePortalWebSocketConnectionRequestReceivedEventArgs, IDevicePortalWebSocketConnectionRequestReceivedEventArgs_Vtbl, 0x79fdcaba_175c_4739_9f74_dda797c35b3f); #[repr(C)] #[doc(hidden)] pub struct IDevicePortalWebSocketConnectionRequestReceivedEventArgs_Vtbl { @@ -134,6 +80,7 @@ pub struct IDevicePortalWebSocketConnectionRequestReceivedEventArgs_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DevicePortalConnection(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DevicePortalConnection, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DevicePortalConnection { pub fn Closed(&self, handler: P0) -> ::windows_core::Result where @@ -180,7 +127,7 @@ impl DevicePortalConnection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -192,7 +139,7 @@ impl DevicePortalConnection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -204,7 +151,7 @@ impl DevicePortalConnection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -216,7 +163,7 @@ impl DevicePortalConnection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -228,7 +175,7 @@ impl DevicePortalConnection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -245,19 +192,17 @@ impl ::windows_core::RuntimeType for DevicePortalConnection { } unsafe impl ::windows_core::Interface for DevicePortalConnection { type Vtable = IDevicePortalConnection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DevicePortalConnection { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DevicePortalConnection { const NAME: &'static str = "Windows.System.Diagnostics.DevicePortal.DevicePortalConnection"; } -::windows_core::imp::interface_hierarchy!(DevicePortalConnection, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DevicePortalConnection {} unsafe impl ::core::marker::Sync for DevicePortalConnection {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DevicePortalConnectionClosedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DevicePortalConnectionClosedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DevicePortalConnectionClosedEventArgs { pub fn Reason(&self) -> ::windows_core::Result { let this = self; @@ -272,19 +217,17 @@ impl ::windows_core::RuntimeType for DevicePortalConnectionClosedEventArgs { } unsafe impl ::windows_core::Interface for DevicePortalConnectionClosedEventArgs { type Vtable = IDevicePortalConnectionClosedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DevicePortalConnectionClosedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DevicePortalConnectionClosedEventArgs { const NAME: &'static str = "Windows.System.Diagnostics.DevicePortal.DevicePortalConnectionClosedEventArgs"; } -::windows_core::imp::interface_hierarchy!(DevicePortalConnectionClosedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DevicePortalConnectionClosedEventArgs {} unsafe impl ::core::marker::Sync for DevicePortalConnectionClosedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DevicePortalConnectionRequestReceivedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DevicePortalConnectionRequestReceivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DevicePortalConnectionRequestReceivedEventArgs { #[doc = "Required features: `\"Web_Http\"`"] #[cfg(feature = "Web_Http")] @@ -305,7 +248,7 @@ impl DevicePortalConnectionRequestReceivedEventArgs { } } pub fn IsWebSocketUpgradeRequest(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsWebSocketUpgradeRequest)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -314,14 +257,14 @@ impl DevicePortalConnectionRequestReceivedEventArgs { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn WebSocketProtocolsRequested(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).WebSocketProtocolsRequested)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetDeferral(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetDeferral)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -333,14 +276,11 @@ impl ::windows_core::RuntimeType for DevicePortalConnectionRequestReceivedEventA } unsafe impl ::windows_core::Interface for DevicePortalConnectionRequestReceivedEventArgs { type Vtable = IDevicePortalConnectionRequestReceivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DevicePortalConnectionRequestReceivedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DevicePortalConnectionRequestReceivedEventArgs { const NAME: &'static str = "Windows.System.Diagnostics.DevicePortal.DevicePortalConnectionRequestReceivedEventArgs"; } -::windows_core::imp::interface_hierarchy!(DevicePortalConnectionRequestReceivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DevicePortalConnectionRequestReceivedEventArgs {} unsafe impl ::core::marker::Sync for DevicePortalConnectionRequestReceivedEventArgs {} #[repr(transparent)] 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 d3ffa5d361..76a428738b 100644 --- a/crates/libs/windows/src/Windows/System/Diagnostics/Telemetry/mod.rs +++ b/crates/libs/windows/src/Windows/System/Diagnostics/Telemetry/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlatformTelemetryClientStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPlatformTelemetryClientStatics { - type Vtable = IPlatformTelemetryClientStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPlatformTelemetryClientStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9bf3f25d_d5c3_4eea_8dbe_9c8dbb0d9d8f); -} +::windows_core::imp::com_interface!(IPlatformTelemetryClientStatics, IPlatformTelemetryClientStatics_Vtbl, 0x9bf3f25d_d5c3_4eea_8dbe_9c8dbb0d9d8f); #[repr(C)] #[doc(hidden)] pub struct IPlatformTelemetryClientStatics_Vtbl { @@ -15,32 +6,14 @@ pub struct IPlatformTelemetryClientStatics_Vtbl { pub Register: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RegisterWithSettings: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: ::std::mem::MaybeUninit<::windows_core::HSTRING>, settings: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlatformTelemetryRegistrationResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPlatformTelemetryRegistrationResult { - type Vtable = IPlatformTelemetryRegistrationResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPlatformTelemetryRegistrationResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4d8518ab_2292_49bd_a15a_3d71d2145112); -} +::windows_core::imp::com_interface!(IPlatformTelemetryRegistrationResult, IPlatformTelemetryRegistrationResult_Vtbl, 0x4d8518ab_2292_49bd_a15a_3d71d2145112); #[repr(C)] #[doc(hidden)] pub struct IPlatformTelemetryRegistrationResult_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut PlatformTelemetryRegistrationStatus) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlatformTelemetryRegistrationSettings(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPlatformTelemetryRegistrationSettings { - type Vtable = IPlatformTelemetryRegistrationSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPlatformTelemetryRegistrationSettings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x819a8582_ca19_415e_bb79_9c224bfa3a73); -} +::windows_core::imp::com_interface!(IPlatformTelemetryRegistrationSettings, IPlatformTelemetryRegistrationSettings_Vtbl, 0x819a8582_ca19_415e_bb79_9c224bfa3a73); #[repr(C)] #[doc(hidden)] pub struct IPlatformTelemetryRegistrationSettings_Vtbl { @@ -79,6 +52,7 @@ impl ::windows_core::RuntimeName for PlatformTelemetryClient { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PlatformTelemetryRegistrationResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PlatformTelemetryRegistrationResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PlatformTelemetryRegistrationResult { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -93,19 +67,17 @@ impl ::windows_core::RuntimeType for PlatformTelemetryRegistrationResult { } unsafe impl ::windows_core::Interface for PlatformTelemetryRegistrationResult { type Vtable = IPlatformTelemetryRegistrationResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PlatformTelemetryRegistrationResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PlatformTelemetryRegistrationResult { const NAME: &'static str = "Windows.System.Diagnostics.Telemetry.PlatformTelemetryRegistrationResult"; } -::windows_core::imp::interface_hierarchy!(PlatformTelemetryRegistrationResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PlatformTelemetryRegistrationResult {} unsafe impl ::core::marker::Sync for PlatformTelemetryRegistrationResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PlatformTelemetryRegistrationSettings(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PlatformTelemetryRegistrationSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PlatformTelemetryRegistrationSettings { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -142,14 +114,11 @@ impl ::windows_core::RuntimeType for PlatformTelemetryRegistrationSettings { } unsafe impl ::windows_core::Interface for PlatformTelemetryRegistrationSettings { type Vtable = IPlatformTelemetryRegistrationSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PlatformTelemetryRegistrationSettings { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PlatformTelemetryRegistrationSettings { const NAME: &'static str = "Windows.System.Diagnostics.Telemetry.PlatformTelemetryRegistrationSettings"; } -::windows_core::imp::interface_hierarchy!(PlatformTelemetryRegistrationSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PlatformTelemetryRegistrationSettings {} unsafe impl ::core::marker::Sync for PlatformTelemetryRegistrationSettings {} #[repr(transparent)] 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 4c00f5a28a..eb887d71eb 100644 --- a/crates/libs/windows/src/Windows/System/Diagnostics/TraceReporting/mod.rs +++ b/crates/libs/windows/src/Windows/System/Diagnostics/TraceReporting/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlatformDiagnosticActionsStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPlatformDiagnosticActionsStatics { - type Vtable = IPlatformDiagnosticActionsStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPlatformDiagnosticActionsStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc1145cfa_9292_4267_890a_9ea3ed072312); -} +::windows_core::imp::com_interface!(IPlatformDiagnosticActionsStatics, IPlatformDiagnosticActionsStatics_Vtbl, 0xc1145cfa_9292_4267_890a_9ea3ed072312); #[repr(C)] #[doc(hidden)] pub struct IPlatformDiagnosticActionsStatics_Vtbl { @@ -30,16 +21,7 @@ pub struct IPlatformDiagnosticActionsStatics_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetKnownTraceList: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlatformDiagnosticTraceInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPlatformDiagnosticTraceInfo { - type Vtable = IPlatformDiagnosticTraceInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPlatformDiagnosticTraceInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf870ed97_d597_4bf7_88dc_cf5c7dc2a1d2); -} +::windows_core::imp::com_interface!(IPlatformDiagnosticTraceInfo, IPlatformDiagnosticTraceInfo_Vtbl, 0xf870ed97_d597_4bf7_88dc_cf5c7dc2a1d2); #[repr(C)] #[doc(hidden)] pub struct IPlatformDiagnosticTraceInfo_Vtbl { @@ -51,16 +33,7 @@ pub struct IPlatformDiagnosticTraceInfo_Vtbl { pub MaxTraceDurationFileTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i64) -> ::windows_core::HRESULT, pub Priority: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut PlatformDiagnosticTracePriority) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlatformDiagnosticTraceRuntimeInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPlatformDiagnosticTraceRuntimeInfo { - type Vtable = IPlatformDiagnosticTraceRuntimeInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPlatformDiagnosticTraceRuntimeInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3d4d5e2d_01d8_4768_8554_1eb1ca610986); -} +::windows_core::imp::com_interface!(IPlatformDiagnosticTraceRuntimeInfo, IPlatformDiagnosticTraceRuntimeInfo_Vtbl, 0x3d4d5e2d_01d8_4768_8554_1eb1ca610986); #[repr(C)] #[doc(hidden)] pub struct IPlatformDiagnosticTraceRuntimeInfo_Vtbl { @@ -80,11 +53,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::TryIntoParam>, + P0: ::windows_core::IntoParam>, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } pub fn DownloadLatestSettingsForNamespace(partner: &::windows_core::HSTRING, feature: &::windows_core::HSTRING, isscenarionamespace: bool, downloadovercostednetwork: bool, downloadoverbattery: bool) -> ::windows_core::Result { @@ -139,6 +112,7 @@ impl ::windows_core::RuntimeName for PlatformDiagnosticActions { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PlatformDiagnosticTraceInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PlatformDiagnosticTraceInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PlatformDiagnosticTraceInfo { pub fn ScenarioId(&self) -> ::windows_core::Result<::windows_core::GUID> { let this = self; @@ -188,19 +162,17 @@ impl ::windows_core::RuntimeType for PlatformDiagnosticTraceInfo { } unsafe impl ::windows_core::Interface for PlatformDiagnosticTraceInfo { type Vtable = IPlatformDiagnosticTraceInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PlatformDiagnosticTraceInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PlatformDiagnosticTraceInfo { const NAME: &'static str = "Windows.System.Diagnostics.TraceReporting.PlatformDiagnosticTraceInfo"; } -::windows_core::imp::interface_hierarchy!(PlatformDiagnosticTraceInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PlatformDiagnosticTraceInfo {} unsafe impl ::core::marker::Sync for PlatformDiagnosticTraceInfo {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PlatformDiagnosticTraceRuntimeInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PlatformDiagnosticTraceRuntimeInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PlatformDiagnosticTraceRuntimeInfo { pub fn RuntimeFileTime(&self) -> ::windows_core::Result { let this = self; @@ -222,14 +194,11 @@ impl ::windows_core::RuntimeType for PlatformDiagnosticTraceRuntimeInfo { } unsafe impl ::windows_core::Interface for PlatformDiagnosticTraceRuntimeInfo { type Vtable = IPlatformDiagnosticTraceRuntimeInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PlatformDiagnosticTraceRuntimeInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PlatformDiagnosticTraceRuntimeInfo { const NAME: &'static str = "Windows.System.Diagnostics.TraceReporting.PlatformDiagnosticTraceRuntimeInfo"; } -::windows_core::imp::interface_hierarchy!(PlatformDiagnosticTraceRuntimeInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PlatformDiagnosticTraceRuntimeInfo {} unsafe impl ::core::marker::Sync for PlatformDiagnosticTraceRuntimeInfo {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/System/Diagnostics/mod.rs b/crates/libs/windows/src/Windows/System/Diagnostics/mod.rs index 619745a1f5..f7350b928c 100644 --- a/crates/libs/windows/src/Windows/System/Diagnostics/mod.rs +++ b/crates/libs/windows/src/Windows/System/Diagnostics/mod.rs @@ -7,16 +7,7 @@ pub mod Telemetry; #[cfg(feature = "System_Diagnostics_TraceReporting")] #[doc = "Required features: `\"System_Diagnostics_TraceReporting\"`"] pub mod TraceReporting; -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDiagnosticActionResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDiagnosticActionResult { - type Vtable = IDiagnosticActionResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDiagnosticActionResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc265a296_e73b_4097_b28f_3442f03dd831); -} +::windows_core::imp::com_interface!(IDiagnosticActionResult, IDiagnosticActionResult_Vtbl, 0xc265a296_e73b_4097_b28f_3442f03dd831); #[repr(C)] #[doc(hidden)] pub struct IDiagnosticActionResult_Vtbl { @@ -27,16 +18,7 @@ pub struct IDiagnosticActionResult_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Results: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDiagnosticInvoker(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDiagnosticInvoker { - type Vtable = IDiagnosticInvoker_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDiagnosticInvoker { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x187b270a_02e3_4f86_84fc_fdd892b5940f); -} +::windows_core::imp::com_interface!(IDiagnosticInvoker, IDiagnosticInvoker_Vtbl, 0x187b270a_02e3_4f86_84fc_fdd892b5940f); #[repr(C)] #[doc(hidden)] pub struct IDiagnosticInvoker_Vtbl { @@ -46,32 +28,14 @@ pub struct IDiagnosticInvoker_Vtbl { #[cfg(not(feature = "Data_Json"))] RunDiagnosticActionAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDiagnosticInvoker2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDiagnosticInvoker2 { - type Vtable = IDiagnosticInvoker2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDiagnosticInvoker2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe3bf945c_155a_4b52_a8ec_070c44f95000); -} +::windows_core::imp::com_interface!(IDiagnosticInvoker2, IDiagnosticInvoker2_Vtbl, 0xe3bf945c_155a_4b52_a8ec_070c44f95000); #[repr(C)] #[doc(hidden)] pub struct IDiagnosticInvoker2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub RunDiagnosticActionFromStringAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDiagnosticInvokerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDiagnosticInvokerStatics { - type Vtable = IDiagnosticInvokerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDiagnosticInvokerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5cfad8de_f15c_4554_a813_c113c3881b09); -} +::windows_core::imp::com_interface!(IDiagnosticInvokerStatics, IDiagnosticInvokerStatics_Vtbl, 0x5cfad8de_f15c_4554_a813_c113c3881b09); #[repr(C)] #[doc(hidden)] pub struct IDiagnosticInvokerStatics_Vtbl { @@ -80,32 +44,14 @@ pub struct IDiagnosticInvokerStatics_Vtbl { pub GetForUser: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, user: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub IsSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProcessCpuUsage(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProcessCpuUsage { - type Vtable = IProcessCpuUsage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProcessCpuUsage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0bbb2472_c8bf_423a_a810_b559ae4354e2); -} +::windows_core::imp::com_interface!(IProcessCpuUsage, IProcessCpuUsage_Vtbl, 0x0bbb2472_c8bf_423a_a810_b559ae4354e2); #[repr(C)] #[doc(hidden)] pub struct IProcessCpuUsage_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetReport: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProcessCpuUsageReport(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProcessCpuUsageReport { - type Vtable = IProcessCpuUsageReport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProcessCpuUsageReport { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8a6d9cac_3987_4e2f_a119_6b5fa214f1b4); -} +::windows_core::imp::com_interface!(IProcessCpuUsageReport, IProcessCpuUsageReport_Vtbl, 0x8a6d9cac_3987_4e2f_a119_6b5fa214f1b4); #[repr(C)] #[doc(hidden)] pub struct IProcessCpuUsageReport_Vtbl { @@ -113,16 +59,7 @@ pub struct IProcessCpuUsageReport_Vtbl { pub KernelTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::TimeSpan) -> ::windows_core::HRESULT, pub UserTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::TimeSpan) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProcessDiagnosticInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProcessDiagnosticInfo { - type Vtable = IProcessDiagnosticInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProcessDiagnosticInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe830b04b_300e_4ee6_a0ab_5b5f5231b434); -} +::windows_core::imp::com_interface!(IProcessDiagnosticInfo, IProcessDiagnosticInfo_Vtbl, 0xe830b04b_300e_4ee6_a0ab_5b5f5231b434); #[repr(C)] #[doc(hidden)] pub struct IProcessDiagnosticInfo_Vtbl { @@ -135,16 +72,7 @@ pub struct IProcessDiagnosticInfo_Vtbl { pub MemoryUsage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CpuUsage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProcessDiagnosticInfo2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProcessDiagnosticInfo2 { - type Vtable = IProcessDiagnosticInfo2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProcessDiagnosticInfo2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9558cb1a_3d0b_49ec_ab70_4f7a112805de); -} +::windows_core::imp::com_interface!(IProcessDiagnosticInfo2, IProcessDiagnosticInfo2_Vtbl, 0x9558cb1a_3d0b_49ec_ab70_4f7a112805de); #[repr(C)] #[doc(hidden)] pub struct IProcessDiagnosticInfo2_Vtbl { @@ -155,16 +83,7 @@ pub struct IProcessDiagnosticInfo2_Vtbl { GetAppDiagnosticInfos: usize, pub IsPackaged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProcessDiagnosticInfoStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProcessDiagnosticInfoStatics { - type Vtable = IProcessDiagnosticInfoStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProcessDiagnosticInfoStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2f41b260_b49f_428c_aa0e_84744f49ca95); -} +::windows_core::imp::com_interface!(IProcessDiagnosticInfoStatics, IProcessDiagnosticInfoStatics_Vtbl, 0x2f41b260_b49f_428c_aa0e_84744f49ca95); #[repr(C)] #[doc(hidden)] pub struct IProcessDiagnosticInfoStatics_Vtbl { @@ -175,48 +94,21 @@ pub struct IProcessDiagnosticInfoStatics_Vtbl { GetForProcesses: usize, pub GetForCurrentProcess: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProcessDiagnosticInfoStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProcessDiagnosticInfoStatics2 { - type Vtable = IProcessDiagnosticInfoStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProcessDiagnosticInfoStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4a869897_9899_4a44_a29b_091663be09b6); -} +::windows_core::imp::com_interface!(IProcessDiagnosticInfoStatics2, IProcessDiagnosticInfoStatics2_Vtbl, 0x4a869897_9899_4a44_a29b_091663be09b6); #[repr(C)] #[doc(hidden)] pub struct IProcessDiagnosticInfoStatics2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub TryGetForProcessId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, processid: u32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProcessDiskUsage(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProcessDiskUsage { - type Vtable = IProcessDiskUsage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProcessDiskUsage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5ad78bfd_7e51_4e53_bfaa_5a6ee1aabbf8); -} +::windows_core::imp::com_interface!(IProcessDiskUsage, IProcessDiskUsage_Vtbl, 0x5ad78bfd_7e51_4e53_bfaa_5a6ee1aabbf8); #[repr(C)] #[doc(hidden)] pub struct IProcessDiskUsage_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetReport: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProcessDiskUsageReport(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProcessDiskUsageReport { - type Vtable = IProcessDiskUsageReport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProcessDiskUsageReport { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x401627fd_535d_4c1f_81b8_da54e1be635e); -} +::windows_core::imp::com_interface!(IProcessDiskUsageReport, IProcessDiskUsageReport_Vtbl, 0x401627fd_535d_4c1f_81b8_da54e1be635e); #[repr(C)] #[doc(hidden)] pub struct IProcessDiskUsageReport_Vtbl { @@ -228,32 +120,14 @@ pub struct IProcessDiskUsageReport_Vtbl { pub BytesWrittenCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i64) -> ::windows_core::HRESULT, pub OtherBytesCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i64) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProcessMemoryUsage(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProcessMemoryUsage { - type Vtable = IProcessMemoryUsage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProcessMemoryUsage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf50b229b_827c_42b7_b07c_0e32627e6b3e); -} +::windows_core::imp::com_interface!(IProcessMemoryUsage, IProcessMemoryUsage_Vtbl, 0xf50b229b_827c_42b7_b07c_0e32627e6b3e); #[repr(C)] #[doc(hidden)] pub struct IProcessMemoryUsage_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetReport: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProcessMemoryUsageReport(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProcessMemoryUsageReport { - type Vtable = IProcessMemoryUsageReport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProcessMemoryUsageReport { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc2c77cba_1951_4685_8532_7e749ecf8eeb); -} +::windows_core::imp::com_interface!(IProcessMemoryUsageReport, IProcessMemoryUsageReport_Vtbl, 0xc2c77cba_1951_4685_8532_7e749ecf8eeb); #[repr(C)] #[doc(hidden)] pub struct IProcessMemoryUsageReport_Vtbl { @@ -271,32 +145,14 @@ pub struct IProcessMemoryUsageReport_Vtbl { pub VirtualMemorySizeInBytes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u64) -> ::windows_core::HRESULT, pub WorkingSetSizeInBytes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u64) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISystemCpuUsage(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISystemCpuUsage { - type Vtable = ISystemCpuUsage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISystemCpuUsage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6037b3ac_02d6_4234_8362_7fe3adc81f5f); -} +::windows_core::imp::com_interface!(ISystemCpuUsage, ISystemCpuUsage_Vtbl, 0x6037b3ac_02d6_4234_8362_7fe3adc81f5f); #[repr(C)] #[doc(hidden)] pub struct ISystemCpuUsage_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetReport: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISystemCpuUsageReport(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISystemCpuUsageReport { - type Vtable = ISystemCpuUsageReport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISystemCpuUsageReport { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2c26d0b2_9483_4f62_ab57_82b29d9719b8); -} +::windows_core::imp::com_interface!(ISystemCpuUsageReport, ISystemCpuUsageReport_Vtbl, 0x2c26d0b2_9483_4f62_ab57_82b29d9719b8); #[repr(C)] #[doc(hidden)] pub struct ISystemCpuUsageReport_Vtbl { @@ -305,16 +161,7 @@ pub struct ISystemCpuUsageReport_Vtbl { pub UserTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::TimeSpan) -> ::windows_core::HRESULT, pub IdleTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::TimeSpan) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISystemDiagnosticInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISystemDiagnosticInfo { - type Vtable = ISystemDiagnosticInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISystemDiagnosticInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa290fe05_dff3_407f_9a1b_0b2b317ca800); -} +::windows_core::imp::com_interface!(ISystemDiagnosticInfo, ISystemDiagnosticInfo_Vtbl, 0xa290fe05_dff3_407f_9a1b_0b2b317ca800); #[repr(C)] #[doc(hidden)] pub struct ISystemDiagnosticInfo_Vtbl { @@ -322,32 +169,14 @@ pub struct ISystemDiagnosticInfo_Vtbl { pub MemoryUsage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CpuUsage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISystemDiagnosticInfoStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISystemDiagnosticInfoStatics { - type Vtable = ISystemDiagnosticInfoStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISystemDiagnosticInfoStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd404ac21_fc7d_45f0_9a3f_39203aed9f7e); -} +::windows_core::imp::com_interface!(ISystemDiagnosticInfoStatics, ISystemDiagnosticInfoStatics_Vtbl, 0xd404ac21_fc7d_45f0_9a3f_39203aed9f7e); #[repr(C)] #[doc(hidden)] pub struct ISystemDiagnosticInfoStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetForCurrentSystem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISystemDiagnosticInfoStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISystemDiagnosticInfoStatics2 { - type Vtable = ISystemDiagnosticInfoStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISystemDiagnosticInfoStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x79ded189_6af9_4da9_a422_15f73255b3eb); -} +::windows_core::imp::com_interface!(ISystemDiagnosticInfoStatics2, ISystemDiagnosticInfoStatics2_Vtbl, 0x79ded189_6af9_4da9_a422_15f73255b3eb); #[repr(C)] #[doc(hidden)] pub struct ISystemDiagnosticInfoStatics2_Vtbl { @@ -355,32 +184,14 @@ pub struct ISystemDiagnosticInfoStatics2_Vtbl { pub IsArchitectureSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: super::ProcessorArchitecture, result__: *mut bool) -> ::windows_core::HRESULT, pub PreferredArchitecture: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::ProcessorArchitecture) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISystemMemoryUsage(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISystemMemoryUsage { - type Vtable = ISystemMemoryUsage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISystemMemoryUsage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x17ffc595_1702_49cf_aa27_2f0a32591404); -} +::windows_core::imp::com_interface!(ISystemMemoryUsage, ISystemMemoryUsage_Vtbl, 0x17ffc595_1702_49cf_aa27_2f0a32591404); #[repr(C)] #[doc(hidden)] pub struct ISystemMemoryUsage_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetReport: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISystemMemoryUsageReport(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISystemMemoryUsageReport { - type Vtable = ISystemMemoryUsageReport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISystemMemoryUsageReport { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x38663c87_2a9f_403a_bd19_2cf3e8169500); -} +::windows_core::imp::com_interface!(ISystemMemoryUsageReport, ISystemMemoryUsageReport_Vtbl, 0x38663c87_2a9f_403a_bd19_2cf3e8169500); #[repr(C)] #[doc(hidden)] pub struct ISystemMemoryUsageReport_Vtbl { @@ -392,6 +203,7 @@ pub struct ISystemMemoryUsageReport_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DiagnosticActionResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DiagnosticActionResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DiagnosticActionResult { pub fn ExtendedError(&self) -> ::windows_core::Result<::windows_core::HRESULT> { let this = self; @@ -415,19 +227,17 @@ impl ::windows_core::RuntimeType for DiagnosticActionResult { } unsafe impl ::windows_core::Interface for DiagnosticActionResult { type Vtable = IDiagnosticActionResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DiagnosticActionResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DiagnosticActionResult { const NAME: &'static str = "Windows.System.Diagnostics.DiagnosticActionResult"; } -::windows_core::imp::interface_hierarchy!(DiagnosticActionResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DiagnosticActionResult {} unsafe impl ::core::marker::Sync for DiagnosticActionResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DiagnosticInvoker(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DiagnosticInvoker, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DiagnosticInvoker { #[doc = "Required features: `\"Data_Json\"`"] #[cfg(feature = "Data_Json")] @@ -442,7 +252,7 @@ impl DiagnosticInvoker { } } pub fn RunDiagnosticActionFromStringAsync(&self, context: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RunDiagnosticActionFromStringAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(context), &mut result__).from_abi(result__) @@ -480,19 +290,17 @@ impl ::windows_core::RuntimeType for DiagnosticInvoker { } unsafe impl ::windows_core::Interface for DiagnosticInvoker { type Vtable = IDiagnosticInvoker_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DiagnosticInvoker { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DiagnosticInvoker { const NAME: &'static str = "Windows.System.Diagnostics.DiagnosticInvoker"; } -::windows_core::imp::interface_hierarchy!(DiagnosticInvoker, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DiagnosticInvoker {} unsafe impl ::core::marker::Sync for DiagnosticInvoker {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ProcessCpuUsage(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ProcessCpuUsage, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ProcessCpuUsage { pub fn GetReport(&self) -> ::windows_core::Result { let this = self; @@ -507,19 +315,17 @@ impl ::windows_core::RuntimeType for ProcessCpuUsage { } unsafe impl ::windows_core::Interface for ProcessCpuUsage { type Vtable = IProcessCpuUsage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ProcessCpuUsage { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ProcessCpuUsage { const NAME: &'static str = "Windows.System.Diagnostics.ProcessCpuUsage"; } -::windows_core::imp::interface_hierarchy!(ProcessCpuUsage, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ProcessCpuUsage {} unsafe impl ::core::marker::Sync for ProcessCpuUsage {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ProcessCpuUsageReport(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ProcessCpuUsageReport, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ProcessCpuUsageReport { pub fn KernelTime(&self) -> ::windows_core::Result { let this = self; @@ -541,19 +347,17 @@ impl ::windows_core::RuntimeType for ProcessCpuUsageReport { } unsafe impl ::windows_core::Interface for ProcessCpuUsageReport { type Vtable = IProcessCpuUsageReport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ProcessCpuUsageReport { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ProcessCpuUsageReport { const NAME: &'static str = "Windows.System.Diagnostics.ProcessCpuUsageReport"; } -::windows_core::imp::interface_hierarchy!(ProcessCpuUsageReport, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ProcessCpuUsageReport {} unsafe impl ::core::marker::Sync for ProcessCpuUsageReport {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ProcessDiagnosticInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ProcessDiagnosticInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ProcessDiagnosticInfo { pub fn ProcessId(&self) -> ::windows_core::Result { let this = self; @@ -607,14 +411,14 @@ impl ProcessDiagnosticInfo { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetAppDiagnosticInfos(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetAppDiagnosticInfos)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsPackaged(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsPackaged)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -656,19 +460,17 @@ impl ::windows_core::RuntimeType for ProcessDiagnosticInfo { } unsafe impl ::windows_core::Interface for ProcessDiagnosticInfo { type Vtable = IProcessDiagnosticInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ProcessDiagnosticInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ProcessDiagnosticInfo { const NAME: &'static str = "Windows.System.Diagnostics.ProcessDiagnosticInfo"; } -::windows_core::imp::interface_hierarchy!(ProcessDiagnosticInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ProcessDiagnosticInfo {} unsafe impl ::core::marker::Sync for ProcessDiagnosticInfo {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ProcessDiskUsage(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ProcessDiskUsage, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ProcessDiskUsage { pub fn GetReport(&self) -> ::windows_core::Result { let this = self; @@ -683,19 +485,17 @@ impl ::windows_core::RuntimeType for ProcessDiskUsage { } unsafe impl ::windows_core::Interface for ProcessDiskUsage { type Vtable = IProcessDiskUsage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ProcessDiskUsage { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ProcessDiskUsage { const NAME: &'static str = "Windows.System.Diagnostics.ProcessDiskUsage"; } -::windows_core::imp::interface_hierarchy!(ProcessDiskUsage, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ProcessDiskUsage {} unsafe impl ::core::marker::Sync for ProcessDiskUsage {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ProcessDiskUsageReport(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ProcessDiskUsageReport, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ProcessDiskUsageReport { pub fn ReadOperationCount(&self) -> ::windows_core::Result { let this = self; @@ -745,19 +545,17 @@ impl ::windows_core::RuntimeType for ProcessDiskUsageReport { } unsafe impl ::windows_core::Interface for ProcessDiskUsageReport { type Vtable = IProcessDiskUsageReport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ProcessDiskUsageReport { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ProcessDiskUsageReport { const NAME: &'static str = "Windows.System.Diagnostics.ProcessDiskUsageReport"; } -::windows_core::imp::interface_hierarchy!(ProcessDiskUsageReport, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ProcessDiskUsageReport {} unsafe impl ::core::marker::Sync for ProcessDiskUsageReport {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ProcessMemoryUsage(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ProcessMemoryUsage, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ProcessMemoryUsage { pub fn GetReport(&self) -> ::windows_core::Result { let this = self; @@ -772,19 +570,17 @@ impl ::windows_core::RuntimeType for ProcessMemoryUsage { } unsafe impl ::windows_core::Interface for ProcessMemoryUsage { type Vtable = IProcessMemoryUsage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ProcessMemoryUsage { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ProcessMemoryUsage { const NAME: &'static str = "Windows.System.Diagnostics.ProcessMemoryUsage"; } -::windows_core::imp::interface_hierarchy!(ProcessMemoryUsage, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ProcessMemoryUsage {} unsafe impl ::core::marker::Sync for ProcessMemoryUsage {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ProcessMemoryUsageReport(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ProcessMemoryUsageReport, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ProcessMemoryUsageReport { pub fn NonPagedPoolSizeInBytes(&self) -> ::windows_core::Result { let this = self; @@ -876,19 +672,17 @@ impl ::windows_core::RuntimeType for ProcessMemoryUsageReport { } unsafe impl ::windows_core::Interface for ProcessMemoryUsageReport { type Vtable = IProcessMemoryUsageReport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ProcessMemoryUsageReport { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ProcessMemoryUsageReport { const NAME: &'static str = "Windows.System.Diagnostics.ProcessMemoryUsageReport"; } -::windows_core::imp::interface_hierarchy!(ProcessMemoryUsageReport, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ProcessMemoryUsageReport {} unsafe impl ::core::marker::Sync for ProcessMemoryUsageReport {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SystemCpuUsage(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SystemCpuUsage, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SystemCpuUsage { pub fn GetReport(&self) -> ::windows_core::Result { let this = self; @@ -903,19 +697,17 @@ impl ::windows_core::RuntimeType for SystemCpuUsage { } unsafe impl ::windows_core::Interface for SystemCpuUsage { type Vtable = ISystemCpuUsage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SystemCpuUsage { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SystemCpuUsage { const NAME: &'static str = "Windows.System.Diagnostics.SystemCpuUsage"; } -::windows_core::imp::interface_hierarchy!(SystemCpuUsage, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SystemCpuUsage {} unsafe impl ::core::marker::Sync for SystemCpuUsage {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SystemCpuUsageReport(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SystemCpuUsageReport, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SystemCpuUsageReport { pub fn KernelTime(&self) -> ::windows_core::Result { let this = self; @@ -944,19 +736,17 @@ impl ::windows_core::RuntimeType for SystemCpuUsageReport { } unsafe impl ::windows_core::Interface for SystemCpuUsageReport { type Vtable = ISystemCpuUsageReport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SystemCpuUsageReport { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SystemCpuUsageReport { const NAME: &'static str = "Windows.System.Diagnostics.SystemCpuUsageReport"; } -::windows_core::imp::interface_hierarchy!(SystemCpuUsageReport, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SystemCpuUsageReport {} unsafe impl ::core::marker::Sync for SystemCpuUsageReport {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SystemDiagnosticInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SystemDiagnosticInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SystemDiagnosticInfo { pub fn MemoryUsage(&self) -> ::windows_core::Result { let this = self; @@ -1006,19 +796,17 @@ impl ::windows_core::RuntimeType for SystemDiagnosticInfo { } unsafe impl ::windows_core::Interface for SystemDiagnosticInfo { type Vtable = ISystemDiagnosticInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SystemDiagnosticInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SystemDiagnosticInfo { const NAME: &'static str = "Windows.System.Diagnostics.SystemDiagnosticInfo"; } -::windows_core::imp::interface_hierarchy!(SystemDiagnosticInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SystemDiagnosticInfo {} unsafe impl ::core::marker::Sync for SystemDiagnosticInfo {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SystemMemoryUsage(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SystemMemoryUsage, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SystemMemoryUsage { pub fn GetReport(&self) -> ::windows_core::Result { let this = self; @@ -1033,19 +821,17 @@ impl ::windows_core::RuntimeType for SystemMemoryUsage { } unsafe impl ::windows_core::Interface for SystemMemoryUsage { type Vtable = ISystemMemoryUsage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SystemMemoryUsage { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SystemMemoryUsage { const NAME: &'static str = "Windows.System.Diagnostics.SystemMemoryUsage"; } -::windows_core::imp::interface_hierarchy!(SystemMemoryUsage, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SystemMemoryUsage {} unsafe impl ::core::marker::Sync for SystemMemoryUsage {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SystemMemoryUsageReport(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SystemMemoryUsageReport, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SystemMemoryUsageReport { pub fn TotalPhysicalSizeInBytes(&self) -> ::windows_core::Result { let this = self; @@ -1074,14 +860,11 @@ impl ::windows_core::RuntimeType for SystemMemoryUsageReport { } unsafe impl ::windows_core::Interface for SystemMemoryUsageReport { type Vtable = ISystemMemoryUsageReport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SystemMemoryUsageReport { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SystemMemoryUsageReport { const NAME: &'static str = "Windows.System.Diagnostics.SystemMemoryUsageReport"; } -::windows_core::imp::interface_hierarchy!(SystemMemoryUsageReport, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SystemMemoryUsageReport {} unsafe impl ::core::marker::Sync for SystemMemoryUsageReport {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/System/Display/mod.rs b/crates/libs/windows/src/Windows/System/Display/mod.rs index 3c8fd90a4b..3e9913eef0 100644 --- a/crates/libs/windows/src/Windows/System/Display/mod.rs +++ b/crates/libs/windows/src/Windows/System/Display/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDisplayRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDisplayRequest { - type Vtable = IDisplayRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDisplayRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe5732044_f49f_4b60_8dd4_5e7e3a632ac0); -} +::windows_core::imp::com_interface!(IDisplayRequest, IDisplayRequest_Vtbl, 0xe5732044_f49f_4b60_8dd4_5e7e3a632ac0); #[repr(C)] #[doc(hidden)] pub struct IDisplayRequest_Vtbl { @@ -18,6 +9,7 @@ pub struct IDisplayRequest_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DisplayRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DisplayRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DisplayRequest { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -40,11 +32,8 @@ impl ::windows_core::RuntimeType for DisplayRequest { } unsafe impl ::windows_core::Interface for DisplayRequest { type Vtable = IDisplayRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DisplayRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DisplayRequest { const NAME: &'static str = "Windows.System.Display.DisplayRequest"; } -::windows_core::imp::interface_hierarchy!(DisplayRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); diff --git a/crates/libs/windows/src/Windows/System/Implementation/FileExplorer/impl.rs b/crates/libs/windows/src/Windows/System/Implementation/FileExplorer/impl.rs index d782b5e748..5d9e0e7a0a 100644 --- a/crates/libs/windows/src/Windows/System/Implementation/FileExplorer/impl.rs +++ b/crates/libs/windows/src/Windows/System/Implementation/FileExplorer/impl.rs @@ -30,7 +30,7 @@ impl ISysStorageProviderEventSource_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISysStorageProviderHandlerFactory_Impl: Sized { @@ -73,7 +73,7 @@ impl ISysStorageProviderHandlerFactory_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Web_Http\"`"] @@ -106,6 +106,6 @@ impl ISysStorageProviderHttpRequestProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 feadf2bf87..ea827ec17a 100644 --- a/crates/libs/windows/src/Windows/System/Implementation/FileExplorer/mod.rs +++ b/crates/libs/windows/src/Windows/System/Implementation/FileExplorer/mod.rs @@ -1,38 +1,19 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISysStorageProviderEventReceivedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISysStorageProviderEventReceivedEventArgs { - type Vtable = ISysStorageProviderEventReceivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISysStorageProviderEventReceivedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe132d1b9_7b9d_5820_9728_4262b5289142); -} +::windows_core::imp::com_interface!(ISysStorageProviderEventReceivedEventArgs, ISysStorageProviderEventReceivedEventArgs_Vtbl, 0xe132d1b9_7b9d_5820_9728_4262b5289142); #[repr(C)] #[doc(hidden)] pub struct ISysStorageProviderEventReceivedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Json: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISysStorageProviderEventReceivedEventArgsFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISysStorageProviderEventReceivedEventArgsFactory { - type Vtable = ISysStorageProviderEventReceivedEventArgsFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISysStorageProviderEventReceivedEventArgsFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xde1a780e_e975_5f68_bcc6_fb46281c6a61); -} +::windows_core::imp::com_interface!(ISysStorageProviderEventReceivedEventArgsFactory, ISysStorageProviderEventReceivedEventArgsFactory_Vtbl, 0xde1a780e_e975_5f68_bcc6_fb46281c6a61); #[repr(C)] #[doc(hidden)] pub struct ISysStorageProviderEventReceivedEventArgsFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, json: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISysStorageProviderEventSource(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISysStorageProviderEventSource, ISysStorageProviderEventSource_Vtbl, 0x1f36c476_9546_536a_8381_2f9a2c08cedd); +::windows_core::imp::interface_hierarchy!(ISysStorageProviderEventSource, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ISysStorageProviderEventSource { pub fn EventReceived(&self, handler: P0) -> ::windows_core::Result where @@ -49,16 +30,9 @@ impl ISysStorageProviderEventSource { unsafe { (::windows_core::Interface::vtable(this).RemoveEventReceived)(::windows_core::Interface::as_raw(this), token).ok() } } } -::windows_core::imp::interface_hierarchy!(ISysStorageProviderEventSource, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for ISysStorageProviderEventSource { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for ISysStorageProviderEventSource { - type Vtable = ISysStorageProviderEventSource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISysStorageProviderEventSource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1f36c476_9546_536a_8381_2f9a2c08cedd); -} #[repr(C)] #[doc(hidden)] pub struct ISysStorageProviderEventSource_Vtbl { @@ -66,9 +40,8 @@ pub struct ISysStorageProviderEventSource_Vtbl { pub EventReceived: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveEventReceived: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISysStorageProviderHandlerFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISysStorageProviderHandlerFactory, ISysStorageProviderHandlerFactory_Vtbl, 0xee798431_8213_5e89_a623_14d8c72b8a61); +::windows_core::imp::interface_hierarchy!(ISysStorageProviderHandlerFactory, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ISysStorageProviderHandlerFactory { pub fn GetHttpRequestProvider(&self, syncrootid: &::windows_core::HSTRING) -> ::windows_core::Result { let this = self; @@ -85,16 +58,9 @@ impl ISysStorageProviderHandlerFactory { } } } -::windows_core::imp::interface_hierarchy!(ISysStorageProviderHandlerFactory, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for ISysStorageProviderHandlerFactory { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for ISysStorageProviderHandlerFactory { - type Vtable = ISysStorageProviderHandlerFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISysStorageProviderHandlerFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xee798431_8213_5e89_a623_14d8c72b8a61); -} #[repr(C)] #[doc(hidden)] pub struct ISysStorageProviderHandlerFactory_Vtbl { @@ -102,9 +68,8 @@ pub struct ISysStorageProviderHandlerFactory_Vtbl { pub GetHttpRequestProvider: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, syncrootid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetEventSource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, syncrootid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, eventname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISysStorageProviderHttpRequestProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISysStorageProviderHttpRequestProvider, ISysStorageProviderHttpRequestProvider_Vtbl, 0xcb6fefb6_e76a_5c25_a33e_3e78a6e0e0ce); +::windows_core::imp::interface_hierarchy!(ISysStorageProviderHttpRequestProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ISysStorageProviderHttpRequestProvider { #[doc = "Required features: `\"Web_Http\"`"] #[cfg(feature = "Web_Http")] @@ -119,16 +84,9 @@ impl ISysStorageProviderHttpRequestProvider { } } } -::windows_core::imp::interface_hierarchy!(ISysStorageProviderHttpRequestProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for ISysStorageProviderHttpRequestProvider { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for ISysStorageProviderHttpRequestProvider { - type Vtable = ISysStorageProviderHttpRequestProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISysStorageProviderHttpRequestProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcb6fefb6_e76a_5c25_a33e_3e78a6e0e0ce); -} #[repr(C)] #[doc(hidden)] pub struct ISysStorageProviderHttpRequestProvider_Vtbl { @@ -141,6 +99,7 @@ pub struct ISysStorageProviderHttpRequestProvider_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SysStorageProviderEventReceivedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SysStorageProviderEventReceivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SysStorageProviderEventReceivedEventArgs { pub fn Json(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -166,14 +125,11 @@ impl ::windows_core::RuntimeType for SysStorageProviderEventReceivedEventArgs { } unsafe impl ::windows_core::Interface for SysStorageProviderEventReceivedEventArgs { type Vtable = ISysStorageProviderEventReceivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SysStorageProviderEventReceivedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SysStorageProviderEventReceivedEventArgs { const NAME: &'static str = "Windows.System.Implementation.FileExplorer.SysStorageProviderEventReceivedEventArgs"; } -::windows_core::imp::interface_hierarchy!(SysStorageProviderEventReceivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SysStorageProviderEventReceivedEventArgs {} unsafe impl ::core::marker::Sync for SysStorageProviderEventReceivedEventArgs {} #[cfg(feature = "implement")] diff --git a/crates/libs/windows/src/Windows/System/Inventory/mod.rs b/crates/libs/windows/src/Windows/System/Inventory/mod.rs index 45fd6f4329..cd669c87a3 100644 --- a/crates/libs/windows/src/Windows/System/Inventory/mod.rs +++ b/crates/libs/windows/src/Windows/System/Inventory/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInstalledDesktopApp(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInstalledDesktopApp { - type Vtable = IInstalledDesktopApp_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInstalledDesktopApp { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x75eab8ed_c0bc_5364_4c28_166e0545167a); -} +::windows_core::imp::com_interface!(IInstalledDesktopApp, IInstalledDesktopApp_Vtbl, 0x75eab8ed_c0bc_5364_4c28_166e0545167a); #[repr(C)] #[doc(hidden)] pub struct IInstalledDesktopApp_Vtbl { @@ -17,16 +8,7 @@ pub struct IInstalledDesktopApp_Vtbl { pub Publisher: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub DisplayVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInstalledDesktopAppStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInstalledDesktopAppStatics { - type Vtable = IInstalledDesktopAppStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInstalledDesktopAppStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x264cf74e_21cd_5f9b_6056_7866ad72489a); -} +::windows_core::imp::com_interface!(IInstalledDesktopAppStatics, IInstalledDesktopAppStatics_Vtbl, 0x264cf74e_21cd_5f9b_6056_7866ad72489a); #[repr(C)] #[doc(hidden)] pub struct IInstalledDesktopAppStatics_Vtbl { @@ -39,6 +21,8 @@ pub struct IInstalledDesktopAppStatics_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct InstalledDesktopApp(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(InstalledDesktopApp, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(InstalledDesktopApp, super::super::Foundation::IStringable); impl InstalledDesktopApp { pub fn Id(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -77,7 +61,7 @@ impl InstalledDesktopApp { }) } pub fn ToString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ToString)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -94,14 +78,10 @@ impl ::windows_core::RuntimeType for InstalledDesktopApp { } unsafe impl ::windows_core::Interface for InstalledDesktopApp { type Vtable = IInstalledDesktopApp_Vtbl; -} -unsafe impl ::windows_core::ComInterface for InstalledDesktopApp { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for InstalledDesktopApp { const NAME: &'static str = "Windows.System.Inventory.InstalledDesktopApp"; } -::windows_core::imp::interface_hierarchy!(InstalledDesktopApp, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for InstalledDesktopApp {} unsafe impl ::core::marker::Send for InstalledDesktopApp {} unsafe impl ::core::marker::Sync for InstalledDesktopApp {} diff --git a/crates/libs/windows/src/Windows/System/Power/mod.rs b/crates/libs/windows/src/Windows/System/Power/mod.rs index 184dc4e7d4..65d4ee9cc7 100644 --- a/crates/libs/windows/src/Windows/System/Power/mod.rs +++ b/crates/libs/windows/src/Windows/System/Power/mod.rs @@ -1,16 +1,10 @@ -#[doc(hidden)] -#[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundEnergyManagerStatics(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for IBackgroundEnergyManagerStatics { - type Vtable = IBackgroundEnergyManagerStatics_Vtbl; -} #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for IBackgroundEnergyManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb3161d95_1180_4376_96e1_4095568147ce); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + IBackgroundEnergyManagerStatics, + IBackgroundEnergyManagerStatics_Vtbl, + 0xb3161d95_1180_4376_96e1_4095568147ce +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -65,19 +59,13 @@ pub struct IBackgroundEnergyManagerStatics_Vtbl { #[cfg(not(feature = "deprecated"))] RemoveRecentEnergyUsageReturnedToLow: usize, } -#[doc(hidden)] -#[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IForegroundEnergyManagerStatics(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for IForegroundEnergyManagerStatics { - type Vtable = IForegroundEnergyManagerStatics_Vtbl; -} #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for IForegroundEnergyManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9ff86872_e677_4814_9a20_5337ca732b98); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + IForegroundEnergyManagerStatics, + IForegroundEnergyManagerStatics_Vtbl, + 0x9ff86872_e677_4814_9a20_5337ca732b98 +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -124,16 +112,7 @@ pub struct IForegroundEnergyManagerStatics_Vtbl { #[cfg(not(feature = "deprecated"))] RemoveRecentEnergyUsageReturnedToLow: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPowerManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPowerManagerStatics { - type Vtable = IPowerManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPowerManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1394825d_62ce_4364_98d5_aa28c7fbd15b); -} +::windows_core::imp::com_interface!(IPowerManagerStatics, IPowerManagerStatics_Vtbl, 0x1394825d_62ce_4364_98d5_aa28c7fbd15b); #[repr(C)] #[doc(hidden)] pub struct IPowerManagerStatics_Vtbl { diff --git a/crates/libs/windows/src/Windows/System/Profile/SystemManufacturers/mod.rs b/crates/libs/windows/src/Windows/System/Profile/SystemManufacturers/mod.rs index b033a26f0d..6143604aa2 100644 --- a/crates/libs/windows/src/Windows/System/Profile/SystemManufacturers/mod.rs +++ b/crates/libs/windows/src/Windows/System/Profile/SystemManufacturers/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOemSupportInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOemSupportInfo { - type Vtable = IOemSupportInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOemSupportInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8d2eae55_87ef_4266_86d0_c4afbeb29bb9); -} +::windows_core::imp::com_interface!(IOemSupportInfo, IOemSupportInfo_Vtbl, 0x8d2eae55_87ef_4266_86d0_c4afbeb29bb9); #[repr(C)] #[doc(hidden)] pub struct IOemSupportInfo_Vtbl { @@ -16,32 +7,14 @@ pub struct IOemSupportInfo_Vtbl { pub SupportAppLink: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SupportProvider: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmbiosInformationStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISmbiosInformationStatics { - type Vtable = ISmbiosInformationStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmbiosInformationStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x080cca7c_637c_48c4_b728_f9273812db8e); -} +::windows_core::imp::com_interface!(ISmbiosInformationStatics, ISmbiosInformationStatics_Vtbl, 0x080cca7c_637c_48c4_b728_f9273812db8e); #[repr(C)] #[doc(hidden)] pub struct ISmbiosInformationStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub SerialNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISystemSupportDeviceInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISystemSupportDeviceInfo { - type Vtable = ISystemSupportDeviceInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISystemSupportDeviceInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x05880b99_8247_441b_a996_a1784bab79a8); -} +::windows_core::imp::com_interface!(ISystemSupportDeviceInfo, ISystemSupportDeviceInfo_Vtbl, 0x05880b99_8247_441b_a996_a1784bab79a8); #[repr(C)] #[doc(hidden)] pub struct ISystemSupportDeviceInfo_Vtbl { @@ -54,16 +27,7 @@ pub struct ISystemSupportDeviceInfo_Vtbl { pub SystemHardwareVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SystemFirmwareVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISystemSupportInfoStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISystemSupportInfoStatics { - type Vtable = ISystemSupportInfoStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISystemSupportInfoStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xef750974_c422_45d7_a44d_5c1c0043a2b3); -} +::windows_core::imp::com_interface!(ISystemSupportInfoStatics, ISystemSupportInfoStatics_Vtbl, 0xef750974_c422_45d7_a44d_5c1c0043a2b3); #[repr(C)] #[doc(hidden)] pub struct ISystemSupportInfoStatics_Vtbl { @@ -71,16 +35,7 @@ pub struct ISystemSupportInfoStatics_Vtbl { pub LocalSystemEdition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub OemSupportInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISystemSupportInfoStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISystemSupportInfoStatics2 { - type Vtable = ISystemSupportInfoStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISystemSupportInfoStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x33f349a4_3fa1_4986_aa4b_057420455e6d); -} +::windows_core::imp::com_interface!(ISystemSupportInfoStatics2, ISystemSupportInfoStatics2_Vtbl, 0x33f349a4_3fa1_4986_aa4b_057420455e6d); #[repr(C)] #[doc(hidden)] pub struct ISystemSupportInfoStatics2_Vtbl { @@ -90,6 +45,7 @@ pub struct ISystemSupportInfoStatics2_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct OemSupportInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(OemSupportInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl OemSupportInfo { pub fn SupportLink(&self) -> ::windows_core::Result { let this = self; @@ -118,14 +74,11 @@ impl ::windows_core::RuntimeType for OemSupportInfo { } unsafe impl ::windows_core::Interface for OemSupportInfo { type Vtable = IOemSupportInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for OemSupportInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for OemSupportInfo { const NAME: &'static str = "Windows.System.Profile.SystemManufacturers.OemSupportInfo"; } -::windows_core::imp::interface_hierarchy!(OemSupportInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for OemSupportInfo {} unsafe impl ::core::marker::Sync for OemSupportInfo {} pub struct SmbiosInformation; @@ -148,6 +101,7 @@ impl ::windows_core::RuntimeName for SmbiosInformation { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SystemSupportDeviceInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SystemSupportDeviceInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SystemSupportDeviceInfo { pub fn OperatingSystem(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -204,14 +158,11 @@ impl ::windows_core::RuntimeType for SystemSupportDeviceInfo { } unsafe impl ::windows_core::Interface for SystemSupportDeviceInfo { type Vtable = ISystemSupportDeviceInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SystemSupportDeviceInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SystemSupportDeviceInfo { const NAME: &'static str = "Windows.System.Profile.SystemManufacturers.SystemSupportDeviceInfo"; } -::windows_core::imp::interface_hierarchy!(SystemSupportDeviceInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SystemSupportDeviceInfo {} unsafe impl ::core::marker::Sync for SystemSupportDeviceInfo {} pub struct SystemSupportInfo; diff --git a/crates/libs/windows/src/Windows/System/Profile/mod.rs b/crates/libs/windows/src/Windows/System/Profile/mod.rs index 59df12f503..bc032fab1a 100644 --- a/crates/libs/windows/src/Windows/System/Profile/mod.rs +++ b/crates/libs/windows/src/Windows/System/Profile/mod.rs @@ -1,16 +1,7 @@ #[cfg(feature = "System_Profile_SystemManufacturers")] #[doc = "Required features: `\"System_Profile_SystemManufacturers\"`"] pub mod SystemManufacturers; -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAnalyticsInfoStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAnalyticsInfoStatics { - type Vtable = IAnalyticsInfoStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAnalyticsInfoStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1d5ee066_188d_5ba9_4387_acaeb0e7e305); -} +::windows_core::imp::com_interface!(IAnalyticsInfoStatics, IAnalyticsInfoStatics_Vtbl, 0x1d5ee066_188d_5ba9_4387_acaeb0e7e305); #[repr(C)] #[doc(hidden)] pub struct IAnalyticsInfoStatics_Vtbl { @@ -18,16 +9,7 @@ pub struct IAnalyticsInfoStatics_Vtbl { pub VersionInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub DeviceForm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAnalyticsInfoStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAnalyticsInfoStatics2 { - type Vtable = IAnalyticsInfoStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAnalyticsInfoStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x101704ea_a7f9_46d2_ab94_016865afdb25); -} +::windows_core::imp::com_interface!(IAnalyticsInfoStatics2, IAnalyticsInfoStatics2_Vtbl, 0x101704ea_a7f9_46d2_ab94_016865afdb25); #[repr(C)] #[doc(hidden)] pub struct IAnalyticsInfoStatics2_Vtbl { @@ -37,16 +19,7 @@ pub struct IAnalyticsInfoStatics2_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetSystemPropertiesAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAnalyticsVersionInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAnalyticsVersionInfo { - type Vtable = IAnalyticsVersionInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAnalyticsVersionInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x926130b8_9955_4c74_bdc1_7cd0decf9b03); -} +::windows_core::imp::com_interface!(IAnalyticsVersionInfo, IAnalyticsVersionInfo_Vtbl, 0x926130b8_9955_4c74_bdc1_7cd0decf9b03); #[repr(C)] #[doc(hidden)] pub struct IAnalyticsVersionInfo_Vtbl { @@ -54,32 +27,14 @@ pub struct IAnalyticsVersionInfo_Vtbl { pub DeviceFamily: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub DeviceFamilyVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAnalyticsVersionInfo2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAnalyticsVersionInfo2 { - type Vtable = IAnalyticsVersionInfo2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAnalyticsVersionInfo2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x76e915b1_ff36_407c_9f57_160d3e540747); -} +::windows_core::imp::com_interface!(IAnalyticsVersionInfo2, IAnalyticsVersionInfo2_Vtbl, 0x76e915b1_ff36_407c_9f57_160d3e540747); #[repr(C)] #[doc(hidden)] pub struct IAnalyticsVersionInfo2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ProductName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppApplicabilityStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppApplicabilityStatics { - type Vtable = IAppApplicabilityStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppApplicabilityStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1664a082_0f38_5c99_83e4_48995970861c); -} +::windows_core::imp::com_interface!(IAppApplicabilityStatics, IAppApplicabilityStatics_Vtbl, 0x1664a082_0f38_5c99_83e4_48995970861c); #[repr(C)] #[doc(hidden)] pub struct IAppApplicabilityStatics_Vtbl { @@ -89,32 +44,14 @@ pub struct IAppApplicabilityStatics_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetUnsupportedAppRequirements: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEducationSettingsStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEducationSettingsStatics { - type Vtable = IEducationSettingsStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEducationSettingsStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfc53f0ef_4d3e_4e13_9b23_505f4d091e92); -} +::windows_core::imp::com_interface!(IEducationSettingsStatics, IEducationSettingsStatics_Vtbl, 0xfc53f0ef_4d3e_4e13_9b23_505f4d091e92); #[repr(C)] #[doc(hidden)] pub struct IEducationSettingsStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub IsEducationEnvironment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHardwareIdentificationStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHardwareIdentificationStatics { - type Vtable = IHardwareIdentificationStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHardwareIdentificationStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x971260e0_f170_4a42_bd55_a900b212dae2); -} +::windows_core::imp::com_interface!(IHardwareIdentificationStatics, IHardwareIdentificationStatics_Vtbl, 0x971260e0_f170_4a42_bd55_a900b212dae2); #[repr(C)] #[doc(hidden)] pub struct IHardwareIdentificationStatics_Vtbl { @@ -124,16 +61,7 @@ pub struct IHardwareIdentificationStatics_Vtbl { #[cfg(not(feature = "Storage_Streams"))] GetPackageSpecificToken: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHardwareToken(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHardwareToken { - type Vtable = IHardwareToken_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHardwareToken { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x28f6d4c0_fb12_40a4_8167_7f4e03d2724c); -} +::windows_core::imp::com_interface!(IHardwareToken, IHardwareToken_Vtbl, 0x28f6d4c0_fb12_40a4_8167_7f4e03d2724c); #[repr(C)] #[doc(hidden)] pub struct IHardwareToken_Vtbl { @@ -151,16 +79,7 @@ pub struct IHardwareToken_Vtbl { #[cfg(not(feature = "Storage_Streams"))] Certificate: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKnownRetailInfoPropertiesStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKnownRetailInfoPropertiesStatics { - type Vtable = IKnownRetailInfoPropertiesStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKnownRetailInfoPropertiesStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x99571178_500f_487e_8e75_29e551728712); -} +::windows_core::imp::com_interface!(IKnownRetailInfoPropertiesStatics, IKnownRetailInfoPropertiesStatics_Vtbl, 0x99571178_500f_487e_8e75_29e551728712); #[repr(C)] #[doc(hidden)] pub struct IKnownRetailInfoPropertiesStatics_Vtbl { @@ -188,16 +107,7 @@ pub struct IKnownRetailInfoPropertiesStatics_Vtbl { pub IsOfficeInstalled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub WindowsEdition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlatformDiagnosticsAndUsageDataSettingsStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPlatformDiagnosticsAndUsageDataSettingsStatics { - type Vtable = IPlatformDiagnosticsAndUsageDataSettingsStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPlatformDiagnosticsAndUsageDataSettingsStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb6e24c1b_7b1c_4b32_8c62_a66597ce723a); -} +::windows_core::imp::com_interface!(IPlatformDiagnosticsAndUsageDataSettingsStatics, IPlatformDiagnosticsAndUsageDataSettingsStatics_Vtbl, 0xb6e24c1b_7b1c_4b32_8c62_a66597ce723a); #[repr(C)] #[doc(hidden)] pub struct IPlatformDiagnosticsAndUsageDataSettingsStatics_Vtbl { @@ -207,16 +117,7 @@ pub struct IPlatformDiagnosticsAndUsageDataSettingsStatics_Vtbl { pub RemoveCollectionLevelChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub CanCollectDiagnostics: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, level: PlatformDataCollectionLevel, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRetailInfoStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRetailInfoStatics { - type Vtable = IRetailInfoStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRetailInfoStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0712c6b8_8b92_4f2a_8499_031f1798d6ef); -} +::windows_core::imp::com_interface!(IRetailInfoStatics, IRetailInfoStatics_Vtbl, 0x0712c6b8_8b92_4f2a_8499_031f1798d6ef); #[repr(C)] #[doc(hidden)] pub struct IRetailInfoStatics_Vtbl { @@ -227,48 +128,21 @@ pub struct IRetailInfoStatics_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Properties: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISharedModeSettingsStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISharedModeSettingsStatics { - type Vtable = ISharedModeSettingsStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISharedModeSettingsStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x893df40e_cad6_4d50_8c49_6fcfc03edb29); -} +::windows_core::imp::com_interface!(ISharedModeSettingsStatics, ISharedModeSettingsStatics_Vtbl, 0x893df40e_cad6_4d50_8c49_6fcfc03edb29); #[repr(C)] #[doc(hidden)] pub struct ISharedModeSettingsStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub IsEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISharedModeSettingsStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISharedModeSettingsStatics2 { - type Vtable = ISharedModeSettingsStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISharedModeSettingsStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x608988a4_ccf1_4ee8_a5e2_fd6a1d0cfac8); -} +::windows_core::imp::com_interface!(ISharedModeSettingsStatics2, ISharedModeSettingsStatics2_Vtbl, 0x608988a4_ccf1_4ee8_a5e2_fd6a1d0cfac8); #[repr(C)] #[doc(hidden)] pub struct ISharedModeSettingsStatics2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ShouldAvoidLocalStorage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmartAppControlPolicyStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISmartAppControlPolicyStatics { - type Vtable = ISmartAppControlPolicyStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISmartAppControlPolicyStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5ff8c75b_073e_5015_8d98_5ff224180a0b); -} +::windows_core::imp::com_interface!(ISmartAppControlPolicyStatics, ISmartAppControlPolicyStatics_Vtbl, 0x5ff8c75b_073e_5015_8d98_5ff224180a0b); #[repr(C)] #[doc(hidden)] pub struct ISmartAppControlPolicyStatics_Vtbl { @@ -277,16 +151,7 @@ pub struct ISmartAppControlPolicyStatics_Vtbl { pub Changed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISystemIdentificationInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISystemIdentificationInfo { - type Vtable = ISystemIdentificationInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISystemIdentificationInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c659e7d_c3c2_4d33_a2df_21bc41916eb3); -} +::windows_core::imp::com_interface!(ISystemIdentificationInfo, ISystemIdentificationInfo_Vtbl, 0x0c659e7d_c3c2_4d33_a2df_21bc41916eb3); #[repr(C)] #[doc(hidden)] pub struct ISystemIdentificationInfo_Vtbl { @@ -297,16 +162,7 @@ pub struct ISystemIdentificationInfo_Vtbl { Id: usize, pub Source: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut SystemIdentificationSource) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISystemIdentificationStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISystemIdentificationStatics { - type Vtable = ISystemIdentificationStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISystemIdentificationStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5581f42a_d3df_4d93_a37d_c41a616c6d01); -} +::windows_core::imp::com_interface!(ISystemIdentificationStatics, ISystemIdentificationStatics_Vtbl, 0x5581f42a_d3df_4d93_a37d_c41a616c6d01); #[repr(C)] #[doc(hidden)] pub struct ISystemIdentificationStatics_Vtbl { @@ -314,16 +170,7 @@ pub struct ISystemIdentificationStatics_Vtbl { pub GetSystemIdForPublisher: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetSystemIdForUser: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, user: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISystemSetupInfoStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISystemSetupInfoStatics { - type Vtable = ISystemSetupInfoStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISystemSetupInfoStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb8366a4b_fb6a_4571_be0a_9a0f67954123); -} +::windows_core::imp::com_interface!(ISystemSetupInfoStatics, ISystemSetupInfoStatics_Vtbl, 0xb8366a4b_fb6a_4571_be0a_9a0f67954123); #[repr(C)] #[doc(hidden)] pub struct ISystemSetupInfoStatics_Vtbl { @@ -332,16 +179,7 @@ pub struct ISystemSetupInfoStatics_Vtbl { pub OutOfBoxExperienceStateChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveOutOfBoxExperienceStateChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUnsupportedAppRequirement(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUnsupportedAppRequirement { - type Vtable = IUnsupportedAppRequirement_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUnsupportedAppRequirement { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6182445c_894b_5cbc_8976_a98e0a9b998d); -} +::windows_core::imp::com_interface!(IUnsupportedAppRequirement, IUnsupportedAppRequirement_Vtbl, 0x6182445c_894b_5cbc_8976_a98e0a9b998d); #[repr(C)] #[doc(hidden)] pub struct IUnsupportedAppRequirement_Vtbl { @@ -349,16 +187,7 @@ pub struct IUnsupportedAppRequirement_Vtbl { pub Requirement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Reasons: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut UnsupportedAppRequirementReasons) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWindowsIntegrityPolicyStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWindowsIntegrityPolicyStatics { - type Vtable = IWindowsIntegrityPolicyStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWindowsIntegrityPolicyStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7d1d81db_8d63_4789_9ea5_ddcf65a94f3c); -} +::windows_core::imp::com_interface!(IWindowsIntegrityPolicyStatics, IWindowsIntegrityPolicyStatics_Vtbl, 0x7d1d81db_8d63_4789_9ea5_ddcf65a94f3c); #[repr(C)] #[doc(hidden)] pub struct IWindowsIntegrityPolicyStatics_Vtbl { @@ -388,11 +217,11 @@ impl AnalyticsInfo { #[cfg(feature = "Foundation_Collections")] pub fn GetSystemPropertiesAsync(attributenames: P0) -> ::windows_core::Result>> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::IAnalyticsInfoStatics2(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).GetSystemPropertiesAsync)(::windows_core::Interface::as_raw(this), attributenames.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).GetSystemPropertiesAsync)(::windows_core::Interface::as_raw(this), attributenames.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -412,6 +241,7 @@ impl ::windows_core::RuntimeName for AnalyticsInfo { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AnalyticsVersionInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AnalyticsVersionInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AnalyticsVersionInfo { pub fn DeviceFamily(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -428,7 +258,7 @@ impl AnalyticsVersionInfo { } } pub fn ProductName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ProductName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -440,14 +270,11 @@ impl ::windows_core::RuntimeType for AnalyticsVersionInfo { } unsafe impl ::windows_core::Interface for AnalyticsVersionInfo { type Vtable = IAnalyticsVersionInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AnalyticsVersionInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AnalyticsVersionInfo { const NAME: &'static str = "Windows.System.Profile.AnalyticsVersionInfo"; } -::windows_core::imp::interface_hierarchy!(AnalyticsVersionInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AnalyticsVersionInfo {} unsafe impl ::core::marker::Sync for AnalyticsVersionInfo {} pub struct AppApplicability; @@ -456,11 +283,11 @@ impl AppApplicability { #[cfg(feature = "Foundation_Collections")] pub fn GetUnsupportedAppRequirements(capabilities: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::IAppApplicabilityStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).GetUnsupportedAppRequirements)(::windows_core::Interface::as_raw(this), capabilities.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).GetUnsupportedAppRequirements)(::windows_core::Interface::as_raw(this), capabilities.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -495,11 +322,11 @@ impl HardwareIdentification { #[cfg(feature = "Storage_Streams")] pub fn GetPackageSpecificToken(nonce: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IHardwareIdentificationStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).GetPackageSpecificToken)(::windows_core::Interface::as_raw(this), nonce.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).GetPackageSpecificToken)(::windows_core::Interface::as_raw(this), nonce.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -514,6 +341,7 @@ impl ::windows_core::RuntimeName for HardwareIdentification { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HardwareToken(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HardwareToken, ::windows_core::IUnknown, ::windows_core::IInspectable); impl HardwareToken { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] @@ -548,14 +376,11 @@ impl ::windows_core::RuntimeType for HardwareToken { } unsafe impl ::windows_core::Interface for HardwareToken { type Vtable = IHardwareToken_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HardwareToken { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HardwareToken { const NAME: &'static str = "Windows.System.Profile.HardwareToken"; } -::windows_core::imp::interface_hierarchy!(HardwareToken, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for HardwareToken {} unsafe impl ::core::marker::Sync for HardwareToken {} pub struct KnownRetailInfoProperties; @@ -847,6 +672,7 @@ impl ::windows_core::RuntimeName for SystemIdentification { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SystemIdentificationInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SystemIdentificationInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SystemIdentificationInfo { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] @@ -870,14 +696,11 @@ impl ::windows_core::RuntimeType for SystemIdentificationInfo { } unsafe impl ::windows_core::Interface for SystemIdentificationInfo { type Vtable = ISystemIdentificationInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SystemIdentificationInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SystemIdentificationInfo { const NAME: &'static str = "Windows.System.Profile.SystemIdentificationInfo"; } -::windows_core::imp::interface_hierarchy!(SystemIdentificationInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SystemIdentificationInfo {} unsafe impl ::core::marker::Sync for SystemIdentificationInfo {} pub struct SystemSetupInfo; @@ -912,6 +735,7 @@ impl ::windows_core::RuntimeName for SystemSetupInfo { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UnsupportedAppRequirement(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UnsupportedAppRequirement, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UnsupportedAppRequirement { pub fn Requirement(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -933,14 +757,11 @@ impl ::windows_core::RuntimeType for UnsupportedAppRequirement { } unsafe impl ::windows_core::Interface for UnsupportedAppRequirement { type Vtable = IUnsupportedAppRequirement_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UnsupportedAppRequirement { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UnsupportedAppRequirement { const NAME: &'static str = "Windows.System.Profile.UnsupportedAppRequirement"; } -::windows_core::imp::interface_hierarchy!(UnsupportedAppRequirement, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UnsupportedAppRequirement {} unsafe impl ::core::marker::Sync for UnsupportedAppRequirement {} pub struct WindowsIntegrityPolicy; 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 964c4a2a94..d6529d56fb 100644 --- a/crates/libs/windows/src/Windows/System/RemoteDesktop/Input/mod.rs +++ b/crates/libs/windows/src/Windows/System/RemoteDesktop/Input/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteTextConnection(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteTextConnection { - type Vtable = IRemoteTextConnection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteTextConnection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4e7bb02a_183e_5e66_b5e4_3e6e5c570cf1); -} +::windows_core::imp::com_interface!(IRemoteTextConnection, IRemoteTextConnection_Vtbl, 0x4e7bb02a_183e_5e66_b5e4_3e6e5c570cf1); #[repr(C)] #[doc(hidden)] pub struct IRemoteTextConnection_Vtbl { @@ -18,16 +9,7 @@ pub struct IRemoteTextConnection_Vtbl { pub UnregisterThread: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, threadid: u32) -> ::windows_core::HRESULT, pub ReportDataReceived: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pduData_array_size: u32, pdudata: *const u8) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteTextConnectionFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteTextConnectionFactory { - type Vtable = IRemoteTextConnectionFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteTextConnectionFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x88e075c2_0cae_596c_850f_78d345cd728b); -} +::windows_core::imp::com_interface!(IRemoteTextConnectionFactory, IRemoteTextConnectionFactory_Vtbl, 0x88e075c2_0cae_596c_850f_78d345cd728b); #[repr(C)] #[doc(hidden)] pub struct IRemoteTextConnectionFactory_Vtbl { @@ -37,9 +19,11 @@ pub struct IRemoteTextConnectionFactory_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RemoteTextConnection(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RemoteTextConnection, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(RemoteTextConnection, super::super::super::Foundation::IClosable); impl RemoteTextConnection { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn IsEnabled(&self) -> ::windows_core::Result { @@ -85,20 +69,14 @@ impl ::windows_core::RuntimeType for RemoteTextConnection { } unsafe impl ::windows_core::Interface for RemoteTextConnection { type Vtable = IRemoteTextConnection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RemoteTextConnection { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RemoteTextConnection { const NAME: &'static str = "Windows.System.RemoteDesktop.Input.RemoteTextConnection"; } -::windows_core::imp::interface_hierarchy!(RemoteTextConnection, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for RemoteTextConnection {} unsafe impl ::core::marker::Send for RemoteTextConnection {} unsafe impl ::core::marker::Sync for RemoteTextConnection {} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct RemoteTextConnectionDataHandler(pub ::windows_core::IUnknown); +::windows_core::imp::com_interface!(RemoteTextConnectionDataHandler, RemoteTextConnectionDataHandler_Vtbl, 0x099ffbc8_8bcb_41b5_b056_57e77021bf1b); impl RemoteTextConnectionDataHandler { pub fn new ::windows_core::Result + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = RemoteTextConnectionDataHandlerBox:: { vtable: &RemoteTextConnectionDataHandlerBox::::VTABLE, count: ::windows_core::imp::RefCount::new(1), invoke }; @@ -128,7 +106,7 @@ impl ::windows_core::Result + ::core::marker::Send + 's if iid.is_null() || interface.is_null() { return ::windows_core::HRESULT(-2147467261); } - *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; + *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::Interface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::Interface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; if (*interface).is_null() { ::windows_core::HRESULT(-2147467262) } else { @@ -159,12 +137,6 @@ impl ::windows_core::Result + ::core::marker::Send + 's } } } -unsafe impl ::windows_core::Interface for RemoteTextConnectionDataHandler { - type Vtable = RemoteTextConnectionDataHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RemoteTextConnectionDataHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x099ffbc8_8bcb_41b5_b056_57e77021bf1b); -} impl ::windows_core::RuntimeType for RemoteTextConnectionDataHandler { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } 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 5d5b828ef2..2321f808ec 100644 --- a/crates/libs/windows/src/Windows/System/RemoteDesktop/Provider/mod.rs +++ b/crates/libs/windows/src/Windows/System/RemoteDesktop/Provider/mod.rs @@ -1,29 +1,11 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPerformLocalActionRequestedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPerformLocalActionRequestedEventArgs { - type Vtable = IPerformLocalActionRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPerformLocalActionRequestedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x59359f4f_0862_53a3_a3b3_c932fb718cdc); -} +::windows_core::imp::com_interface!(IPerformLocalActionRequestedEventArgs, IPerformLocalActionRequestedEventArgs_Vtbl, 0x59359f4f_0862_53a3_a3b3_c932fb718cdc); #[repr(C)] #[doc(hidden)] pub struct IPerformLocalActionRequestedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Action: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut RemoteDesktopLocalAction) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteDesktopConnectionInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteDesktopConnectionInfo { - type Vtable = IRemoteDesktopConnectionInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteDesktopConnectionInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x68bd69d6_6dea_543b_b737_f347919f5093); -} +::windows_core::imp::com_interface!(IRemoteDesktopConnectionInfo, IRemoteDesktopConnectionInfo_Vtbl, 0x68bd69d6_6dea_543b_b737_f347919f5093); #[repr(C)] #[doc(hidden)] pub struct IRemoteDesktopConnectionInfo_Vtbl { @@ -31,16 +13,7 @@ pub struct IRemoteDesktopConnectionInfo_Vtbl { pub SetConnectionStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: RemoteDesktopConnectionStatus) -> ::windows_core::HRESULT, pub SwitchToLocalSession: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteDesktopConnectionInfoStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteDesktopConnectionInfoStatics { - type Vtable = IRemoteDesktopConnectionInfoStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteDesktopConnectionInfoStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4a7dc5a1_3368_5a75_bb78_807df7ebc439); -} +::windows_core::imp::com_interface!(IRemoteDesktopConnectionInfoStatics, IRemoteDesktopConnectionInfoStatics_Vtbl, 0x4a7dc5a1_3368_5a75_bb78_807df7ebc439); #[repr(C)] #[doc(hidden)] pub struct IRemoteDesktopConnectionInfoStatics_Vtbl { @@ -50,16 +23,7 @@ pub struct IRemoteDesktopConnectionInfoStatics_Vtbl { #[cfg(not(feature = "UI"))] GetForLaunchUri: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteDesktopConnectionRemoteInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteDesktopConnectionRemoteInfo { - type Vtable = IRemoteDesktopConnectionRemoteInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteDesktopConnectionRemoteInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2a3dfa7e_a7ab_547e_9a6a_4c565bbb8d71); -} +::windows_core::imp::com_interface!(IRemoteDesktopConnectionRemoteInfo, IRemoteDesktopConnectionRemoteInfo_Vtbl, 0x2a3dfa7e_a7ab_547e_9a6a_4c565bbb8d71); #[repr(C)] #[doc(hidden)] pub struct IRemoteDesktopConnectionRemoteInfo_Vtbl { @@ -70,16 +34,7 @@ pub struct IRemoteDesktopConnectionRemoteInfo_Vtbl { pub PerformLocalActionRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemovePerformLocalActionRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteDesktopConnectionRemoteInfoStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteDesktopConnectionRemoteInfoStatics { - type Vtable = IRemoteDesktopConnectionRemoteInfoStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteDesktopConnectionRemoteInfoStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb590e64a_e4c9_53e8_b83d_a0db3676246a); -} +::windows_core::imp::com_interface!(IRemoteDesktopConnectionRemoteInfoStatics, IRemoteDesktopConnectionRemoteInfoStatics_Vtbl, 0xb590e64a_e4c9_53e8_b83d_a0db3676246a); #[repr(C)] #[doc(hidden)] pub struct IRemoteDesktopConnectionRemoteInfoStatics_Vtbl { @@ -87,16 +42,7 @@ pub struct IRemoteDesktopConnectionRemoteInfoStatics_Vtbl { pub IsSwitchSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub GetForLaunchUri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, launchuri: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteDesktopInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteDesktopInfo { - type Vtable = IRemoteDesktopInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteDesktopInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd185bb25_2f1e_5098_b9e0_f46d6358c5c4); -} +::windows_core::imp::com_interface!(IRemoteDesktopInfo, IRemoteDesktopInfo_Vtbl, 0xd185bb25_2f1e_5098_b9e0_f46d6358c5c4); #[repr(C)] #[doc(hidden)] pub struct IRemoteDesktopInfo_Vtbl { @@ -104,32 +50,14 @@ pub struct IRemoteDesktopInfo_Vtbl { pub DisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteDesktopInfoFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteDesktopInfoFactory { - type Vtable = IRemoteDesktopInfoFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteDesktopInfoFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xad0e8d58_b56f_5a8b_b419_8002ee0c5ee9); -} +::windows_core::imp::com_interface!(IRemoteDesktopInfoFactory, IRemoteDesktopInfoFactory_Vtbl, 0xad0e8d58_b56f_5a8b_b419_8002ee0c5ee9); #[repr(C)] #[doc(hidden)] pub struct IRemoteDesktopInfoFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: ::std::mem::MaybeUninit<::windows_core::HSTRING>, displayname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteDesktopRegistrarStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteDesktopRegistrarStatics { - type Vtable = IRemoteDesktopRegistrarStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteDesktopRegistrarStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x687c2750_46d9_5de3_8dc3_84a9202cecfb); -} +::windows_core::imp::com_interface!(IRemoteDesktopRegistrarStatics, IRemoteDesktopRegistrarStatics_Vtbl, 0x687c2750_46d9_5de3_8dc3_84a9202cecfb); #[repr(C)] #[doc(hidden)] pub struct IRemoteDesktopRegistrarStatics_Vtbl { @@ -143,6 +71,7 @@ pub struct IRemoteDesktopRegistrarStatics_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PerformLocalActionRequestedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PerformLocalActionRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PerformLocalActionRequestedEventArgs { pub fn Action(&self) -> ::windows_core::Result { let this = self; @@ -157,19 +86,17 @@ impl ::windows_core::RuntimeType for PerformLocalActionRequestedEventArgs { } unsafe impl ::windows_core::Interface for PerformLocalActionRequestedEventArgs { type Vtable = IPerformLocalActionRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PerformLocalActionRequestedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PerformLocalActionRequestedEventArgs { const NAME: &'static str = "Windows.System.RemoteDesktop.Provider.PerformLocalActionRequestedEventArgs"; } -::windows_core::imp::interface_hierarchy!(PerformLocalActionRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PerformLocalActionRequestedEventArgs {} unsafe impl ::core::marker::Sync for PerformLocalActionRequestedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RemoteDesktopConnectionInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RemoteDesktopConnectionInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RemoteDesktopConnectionInfo { pub fn SetConnectionStatus(&self, value: RemoteDesktopConnectionStatus) -> ::windows_core::Result<()> { let this = self; @@ -201,22 +128,21 @@ impl ::windows_core::RuntimeType for RemoteDesktopConnectionInfo { } unsafe impl ::windows_core::Interface for RemoteDesktopConnectionInfo { type Vtable = IRemoteDesktopConnectionInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RemoteDesktopConnectionInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RemoteDesktopConnectionInfo { const NAME: &'static str = "Windows.System.RemoteDesktop.Provider.RemoteDesktopConnectionInfo"; } -::windows_core::imp::interface_hierarchy!(RemoteDesktopConnectionInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RemoteDesktopConnectionInfo {} unsafe impl ::core::marker::Sync for RemoteDesktopConnectionInfo {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RemoteDesktopConnectionRemoteInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RemoteDesktopConnectionRemoteInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(RemoteDesktopConnectionRemoteInfo, super::super::super::Foundation::IClosable); impl RemoteDesktopConnectionRemoteInfo { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn ReportSwitched(&self) -> ::windows_core::Result<()> { @@ -277,20 +203,17 @@ impl ::windows_core::RuntimeType for RemoteDesktopConnectionRemoteInfo { } unsafe impl ::windows_core::Interface for RemoteDesktopConnectionRemoteInfo { type Vtable = IRemoteDesktopConnectionRemoteInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RemoteDesktopConnectionRemoteInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RemoteDesktopConnectionRemoteInfo { const NAME: &'static str = "Windows.System.RemoteDesktop.Provider.RemoteDesktopConnectionRemoteInfo"; } -::windows_core::imp::interface_hierarchy!(RemoteDesktopConnectionRemoteInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for RemoteDesktopConnectionRemoteInfo {} unsafe impl ::core::marker::Send for RemoteDesktopConnectionRemoteInfo {} unsafe impl ::core::marker::Sync for RemoteDesktopConnectionRemoteInfo {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RemoteDesktopInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RemoteDesktopInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RemoteDesktopInfo { pub fn DisplayName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -323,14 +246,11 @@ impl ::windows_core::RuntimeType for RemoteDesktopInfo { } unsafe impl ::windows_core::Interface for RemoteDesktopInfo { type Vtable = IRemoteDesktopInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RemoteDesktopInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RemoteDesktopInfo { const NAME: &'static str = "Windows.System.RemoteDesktop.Provider.RemoteDesktopInfo"; } -::windows_core::imp::interface_hierarchy!(RemoteDesktopInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RemoteDesktopInfo {} unsafe impl ::core::marker::Sync for RemoteDesktopInfo {} pub struct RemoteDesktopRegistrar; diff --git a/crates/libs/windows/src/Windows/System/RemoteDesktop/mod.rs b/crates/libs/windows/src/Windows/System/RemoteDesktop/mod.rs index edc4aef362..5b24e39fff 100644 --- a/crates/libs/windows/src/Windows/System/RemoteDesktop/mod.rs +++ b/crates/libs/windows/src/Windows/System/RemoteDesktop/mod.rs @@ -4,16 +4,7 @@ pub mod Input; #[cfg(feature = "System_RemoteDesktop_Provider")] #[doc = "Required features: `\"System_RemoteDesktop_Provider\"`"] pub mod Provider; -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInteractiveSessionStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInteractiveSessionStatics { - type Vtable = IInteractiveSessionStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInteractiveSessionStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x60884631_dd3a_4576_9c8d_e8027618bdce); -} +::windows_core::imp::com_interface!(IInteractiveSessionStatics, IInteractiveSessionStatics_Vtbl, 0x60884631_dd3a_4576_9c8d_e8027618bdce); #[repr(C)] #[doc(hidden)] pub struct IInteractiveSessionStatics_Vtbl { diff --git a/crates/libs/windows/src/Windows/System/RemoteSystems/impl.rs b/crates/libs/windows/src/Windows/System/RemoteSystems/impl.rs index cb27b38747..26d45244f0 100644 --- a/crates/libs/windows/src/Windows/System/RemoteSystems/impl.rs +++ b/crates/libs/windows/src/Windows/System/RemoteSystems/impl.rs @@ -7,6 +7,6 @@ impl IRemoteSystemFilter_Vtbl { Self { base__: ::windows_core::IInspectable_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/System/RemoteSystems/mod.rs b/crates/libs/windows/src/Windows/System/RemoteSystems/mod.rs index d0f7703c87..97bb51fa80 100644 --- a/crates/libs/windows/src/Windows/System/RemoteSystems/mod.rs +++ b/crates/libs/windows/src/Windows/System/RemoteSystems/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKnownRemoteSystemCapabilitiesStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKnownRemoteSystemCapabilitiesStatics { - type Vtable = IKnownRemoteSystemCapabilitiesStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKnownRemoteSystemCapabilitiesStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8108e380_7f8a_44e4_92cd_03b6469b94a3); -} +::windows_core::imp::com_interface!(IKnownRemoteSystemCapabilitiesStatics, IKnownRemoteSystemCapabilitiesStatics_Vtbl, 0x8108e380_7f8a_44e4_92cd_03b6469b94a3); #[repr(C)] #[doc(hidden)] pub struct IKnownRemoteSystemCapabilitiesStatics_Vtbl { @@ -17,16 +8,7 @@ pub struct IKnownRemoteSystemCapabilitiesStatics_Vtbl { pub RemoteSession: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SpatialEntity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteSystem(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteSystem { - type Vtable = IRemoteSystem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteSystem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xed5838cd_1e10_4a8c_b4a6_4e5fd6f97721); -} +::windows_core::imp::com_interface!(IRemoteSystem, IRemoteSystem_Vtbl, 0xed5838cd_1e10_4a8c_b4a6_4e5fd6f97721); #[repr(C)] #[doc(hidden)] pub struct IRemoteSystem_Vtbl { @@ -37,16 +19,7 @@ pub struct IRemoteSystem_Vtbl { pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut RemoteSystemStatus) -> ::windows_core::HRESULT, pub IsAvailableByProximity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteSystem2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteSystem2 { - type Vtable = IRemoteSystem2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteSystem2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x09dfe4ec_fb8b_4a08_a758_6876435d769e); -} +::windows_core::imp::com_interface!(IRemoteSystem2, IRemoteSystem2_Vtbl, 0x09dfe4ec_fb8b_4a08_a758_6876435d769e); #[repr(C)] #[doc(hidden)] pub struct IRemoteSystem2_Vtbl { @@ -54,16 +27,7 @@ pub struct IRemoteSystem2_Vtbl { pub IsAvailableBySpatialProximity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub GetCapabilitySupportedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, capabilityname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteSystem3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteSystem3 { - type Vtable = IRemoteSystem3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteSystem3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x72b4b495_b7c6_40be_831b_73562f12ffa8); -} +::windows_core::imp::com_interface!(IRemoteSystem3, IRemoteSystem3_Vtbl, 0x72b4b495_b7c6_40be_831b_73562f12ffa8); #[repr(C)] #[doc(hidden)] pub struct IRemoteSystem3_Vtbl { @@ -71,32 +35,14 @@ pub struct IRemoteSystem3_Vtbl { pub ManufacturerDisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub ModelDisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteSystem4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteSystem4 { - type Vtable = IRemoteSystem4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteSystem4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf164ffe5_b987_4ca5_9926_fa0438be6273); -} +::windows_core::imp::com_interface!(IRemoteSystem4, IRemoteSystem4_Vtbl, 0xf164ffe5_b987_4ca5_9926_fa0438be6273); #[repr(C)] #[doc(hidden)] pub struct IRemoteSystem4_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Platform: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut RemoteSystemPlatform) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteSystem5(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteSystem5 { - type Vtable = IRemoteSystem5_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteSystem5 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeb2ad723_e5e2_4ae2_a7a7_a1097a098e90); -} +::windows_core::imp::com_interface!(IRemoteSystem5, IRemoteSystem5_Vtbl, 0xeb2ad723_e5e2_4ae2_a7a7_a1097a098e90); #[repr(C)] #[doc(hidden)] pub struct IRemoteSystem5_Vtbl { @@ -106,48 +52,21 @@ pub struct IRemoteSystem5_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Apps: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteSystem6(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteSystem6 { - type Vtable = IRemoteSystem6_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteSystem6 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd4cda942_c027_533e_9384_3a19b4f7eef3); -} +::windows_core::imp::com_interface!(IRemoteSystem6, IRemoteSystem6_Vtbl, 0xd4cda942_c027_533e_9384_3a19b4f7eef3); #[repr(C)] #[doc(hidden)] pub struct IRemoteSystem6_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub User: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteSystemAddedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteSystemAddedEventArgs { - type Vtable = IRemoteSystemAddedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteSystemAddedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8f39560f_e534_4697_8836_7abea151516e); -} +::windows_core::imp::com_interface!(IRemoteSystemAddedEventArgs, IRemoteSystemAddedEventArgs_Vtbl, 0x8f39560f_e534_4697_8836_7abea151516e); #[repr(C)] #[doc(hidden)] pub struct IRemoteSystemAddedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub RemoteSystem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteSystemApp(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteSystemApp { - type Vtable = IRemoteSystemApp_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteSystemApp { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x80e5bcbd_d54d_41b1_9b16_6810a871ed4f); -} +::windows_core::imp::com_interface!(IRemoteSystemApp, IRemoteSystemApp_Vtbl, 0x80e5bcbd_d54d_41b1_9b16_6810a871ed4f); #[repr(C)] #[doc(hidden)] pub struct IRemoteSystemApp_Vtbl { @@ -161,16 +80,7 @@ pub struct IRemoteSystemApp_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Attributes: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteSystemApp2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteSystemApp2 { - type Vtable = IRemoteSystemApp2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteSystemApp2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6369bf15_0a96_577a_8ff6_c35904dfa8f3); -} +::windows_core::imp::com_interface!(IRemoteSystemApp2, IRemoteSystemApp2_Vtbl, 0x6369bf15_0a96_577a_8ff6_c35904dfa8f3); #[repr(C)] #[doc(hidden)] pub struct IRemoteSystemApp2_Vtbl { @@ -178,16 +88,7 @@ pub struct IRemoteSystemApp2_Vtbl { pub User: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ConnectionToken: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteSystemAppRegistration(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteSystemAppRegistration { - type Vtable = IRemoteSystemAppRegistration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteSystemAppRegistration { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb47947b5_7035_4a5a_b8df_962d8f8431f4); -} +::windows_core::imp::com_interface!(IRemoteSystemAppRegistration, IRemoteSystemAppRegistration_Vtbl, 0xb47947b5_7035_4a5a_b8df_962d8f8431f4); #[repr(C)] #[doc(hidden)] pub struct IRemoteSystemAppRegistration_Vtbl { @@ -199,16 +100,7 @@ pub struct IRemoteSystemAppRegistration_Vtbl { Attributes: usize, pub SaveAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteSystemAppRegistrationStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteSystemAppRegistrationStatics { - type Vtable = IRemoteSystemAppRegistrationStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteSystemAppRegistrationStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x01b99840_cfd2_453f_ae25_c2539f086afd); -} +::windows_core::imp::com_interface!(IRemoteSystemAppRegistrationStatics, IRemoteSystemAppRegistrationStatics_Vtbl, 0x01b99840_cfd2_453f_ae25_c2539f086afd); #[repr(C)] #[doc(hidden)] pub struct IRemoteSystemAppRegistrationStatics_Vtbl { @@ -216,64 +108,28 @@ pub struct IRemoteSystemAppRegistrationStatics_Vtbl { pub GetDefault: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetForUser: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, user: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteSystemAuthorizationKindFilter(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteSystemAuthorizationKindFilter { - type Vtable = IRemoteSystemAuthorizationKindFilter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteSystemAuthorizationKindFilter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6b0dde8e_04d0_40f4_a27f_c2acbbd6b734); -} +::windows_core::imp::com_interface!(IRemoteSystemAuthorizationKindFilter, IRemoteSystemAuthorizationKindFilter_Vtbl, 0x6b0dde8e_04d0_40f4_a27f_c2acbbd6b734); #[repr(C)] #[doc(hidden)] pub struct IRemoteSystemAuthorizationKindFilter_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub RemoteSystemAuthorizationKind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut RemoteSystemAuthorizationKind) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteSystemAuthorizationKindFilterFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteSystemAuthorizationKindFilterFactory { - type Vtable = IRemoteSystemAuthorizationKindFilterFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteSystemAuthorizationKindFilterFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xad65df4d_b66a_45a4_8177_8caed75d9e5a); -} +::windows_core::imp::com_interface!(IRemoteSystemAuthorizationKindFilterFactory, IRemoteSystemAuthorizationKindFilterFactory_Vtbl, 0xad65df4d_b66a_45a4_8177_8caed75d9e5a); #[repr(C)] #[doc(hidden)] pub struct IRemoteSystemAuthorizationKindFilterFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, remotesystemauthorizationkind: RemoteSystemAuthorizationKind, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteSystemConnectionInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteSystemConnectionInfo { - type Vtable = IRemoteSystemConnectionInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteSystemConnectionInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x23278bc3_0d09_52cb_9c6a_eed2940bee43); -} +::windows_core::imp::com_interface!(IRemoteSystemConnectionInfo, IRemoteSystemConnectionInfo_Vtbl, 0x23278bc3_0d09_52cb_9c6a_eed2940bee43); #[repr(C)] #[doc(hidden)] pub struct IRemoteSystemConnectionInfo_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub IsProximal: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteSystemConnectionInfoStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteSystemConnectionInfoStatics { - type Vtable = IRemoteSystemConnectionInfoStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteSystemConnectionInfoStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xac831e2d_66c5_56d7_a4ce_705d94925ad6); -} +::windows_core::imp::com_interface!(IRemoteSystemConnectionInfoStatics, IRemoteSystemConnectionInfoStatics_Vtbl, 0xac831e2d_66c5_56d7_a4ce_705d94925ad6); #[repr(C)] #[doc(hidden)] pub struct IRemoteSystemConnectionInfoStatics_Vtbl { @@ -283,96 +139,42 @@ pub struct IRemoteSystemConnectionInfoStatics_Vtbl { #[cfg(not(feature = "ApplicationModel_AppService"))] TryCreateFromAppServiceConnection: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteSystemConnectionRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteSystemConnectionRequest { - type Vtable = IRemoteSystemConnectionRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteSystemConnectionRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x84ed4104_8d5e_4d72_8238_7621576c7a67); -} +::windows_core::imp::com_interface!(IRemoteSystemConnectionRequest, IRemoteSystemConnectionRequest_Vtbl, 0x84ed4104_8d5e_4d72_8238_7621576c7a67); #[repr(C)] #[doc(hidden)] pub struct IRemoteSystemConnectionRequest_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub RemoteSystem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteSystemConnectionRequest2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteSystemConnectionRequest2 { - type Vtable = IRemoteSystemConnectionRequest2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteSystemConnectionRequest2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x12df6d6f_bffc_483a_8abe_d34a6c19f92b); -} +::windows_core::imp::com_interface!(IRemoteSystemConnectionRequest2, IRemoteSystemConnectionRequest2_Vtbl, 0x12df6d6f_bffc_483a_8abe_d34a6c19f92b); #[repr(C)] #[doc(hidden)] pub struct IRemoteSystemConnectionRequest2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub RemoteSystemApp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteSystemConnectionRequest3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteSystemConnectionRequest3 { - type Vtable = IRemoteSystemConnectionRequest3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteSystemConnectionRequest3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xde86c3e7_c9cc_5a50_b8d9_ba7b34bb8d0e); -} +::windows_core::imp::com_interface!(IRemoteSystemConnectionRequest3, IRemoteSystemConnectionRequest3_Vtbl, 0xde86c3e7_c9cc_5a50_b8d9_ba7b34bb8d0e); #[repr(C)] #[doc(hidden)] pub struct IRemoteSystemConnectionRequest3_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ConnectionToken: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteSystemConnectionRequestFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteSystemConnectionRequestFactory { - type Vtable = IRemoteSystemConnectionRequestFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteSystemConnectionRequestFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaa0a0a20_baeb_4575_b530_810bb9786334); -} +::windows_core::imp::com_interface!(IRemoteSystemConnectionRequestFactory, IRemoteSystemConnectionRequestFactory_Vtbl, 0xaa0a0a20_baeb_4575_b530_810bb9786334); #[repr(C)] #[doc(hidden)] pub struct IRemoteSystemConnectionRequestFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, remotesystem: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteSystemConnectionRequestStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteSystemConnectionRequestStatics { - type Vtable = IRemoteSystemConnectionRequestStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteSystemConnectionRequestStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x86ca143d_8214_425c_8932_db49032d1306); -} +::windows_core::imp::com_interface!(IRemoteSystemConnectionRequestStatics, IRemoteSystemConnectionRequestStatics_Vtbl, 0x86ca143d_8214_425c_8932_db49032d1306); #[repr(C)] #[doc(hidden)] pub struct IRemoteSystemConnectionRequestStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateForApp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, remotesystemapp: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteSystemConnectionRequestStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteSystemConnectionRequestStatics2 { - type Vtable = IRemoteSystemConnectionRequestStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteSystemConnectionRequestStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x460f1027_64ec_598e_a800_4f2ee58def19); -} +::windows_core::imp::com_interface!(IRemoteSystemConnectionRequestStatics2, IRemoteSystemConnectionRequestStatics2_Vtbl, 0x460f1027_64ec_598e_a800_4f2ee58def19); #[repr(C)] #[doc(hidden)] pub struct IRemoteSystemConnectionRequestStatics2_Vtbl { @@ -380,82 +182,38 @@ pub struct IRemoteSystemConnectionRequestStatics2_Vtbl { pub CreateFromConnectionToken: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, connectiontoken: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateFromConnectionTokenForUser: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, user: *mut ::core::ffi::c_void, connectiontoken: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteSystemDiscoveryTypeFilter(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteSystemDiscoveryTypeFilter { - type Vtable = IRemoteSystemDiscoveryTypeFilter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteSystemDiscoveryTypeFilter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x42d9041f_ee5a_43da_ac6a_6fee25460741); -} +::windows_core::imp::com_interface!(IRemoteSystemDiscoveryTypeFilter, IRemoteSystemDiscoveryTypeFilter_Vtbl, 0x42d9041f_ee5a_43da_ac6a_6fee25460741); #[repr(C)] #[doc(hidden)] pub struct IRemoteSystemDiscoveryTypeFilter_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub RemoteSystemDiscoveryType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut RemoteSystemDiscoveryType) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteSystemDiscoveryTypeFilterFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteSystemDiscoveryTypeFilterFactory { - type Vtable = IRemoteSystemDiscoveryTypeFilterFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteSystemDiscoveryTypeFilterFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9f9eb993_c260_4161_92f2_9c021f23fe5d); -} +::windows_core::imp::com_interface!(IRemoteSystemDiscoveryTypeFilterFactory, IRemoteSystemDiscoveryTypeFilterFactory_Vtbl, 0x9f9eb993_c260_4161_92f2_9c021f23fe5d); #[repr(C)] #[doc(hidden)] pub struct IRemoteSystemDiscoveryTypeFilterFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, discoverytype: RemoteSystemDiscoveryType, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteSystemEnumerationCompletedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteSystemEnumerationCompletedEventArgs { - type Vtable = IRemoteSystemEnumerationCompletedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteSystemEnumerationCompletedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc6e83d5f_4030_4354_a060_14f1b22c545d); -} +::windows_core::imp::com_interface!(IRemoteSystemEnumerationCompletedEventArgs, IRemoteSystemEnumerationCompletedEventArgs_Vtbl, 0xc6e83d5f_4030_4354_a060_14f1b22c545d); #[repr(C)] #[doc(hidden)] pub struct IRemoteSystemEnumerationCompletedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteSystemFilter(::windows_core::IUnknown); -impl IRemoteSystemFilter {} +::windows_core::imp::com_interface!(IRemoteSystemFilter, IRemoteSystemFilter_Vtbl, 0x4a3ba9e4_99eb_45eb_ba16_0367728ff374); ::windows_core::imp::interface_hierarchy!(IRemoteSystemFilter, ::windows_core::IUnknown, ::windows_core::IInspectable); +impl IRemoteSystemFilter {} impl ::windows_core::RuntimeType for IRemoteSystemFilter { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IRemoteSystemFilter { - type Vtable = IRemoteSystemFilter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteSystemFilter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4a3ba9e4_99eb_45eb_ba16_0367728ff374); -} #[repr(C)] #[doc(hidden)] pub struct IRemoteSystemFilter_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteSystemKindFilter(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteSystemKindFilter { - type Vtable = IRemoteSystemKindFilter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteSystemKindFilter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x38e1c9ec_22c3_4ef6_901a_bbb1c7aad4ed); -} +::windows_core::imp::com_interface!(IRemoteSystemKindFilter, IRemoteSystemKindFilter_Vtbl, 0x38e1c9ec_22c3_4ef6_901a_bbb1c7aad4ed); #[repr(C)] #[doc(hidden)] pub struct IRemoteSystemKindFilter_Vtbl { @@ -465,16 +223,7 @@ pub struct IRemoteSystemKindFilter_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] RemoteSystemKinds: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteSystemKindFilterFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteSystemKindFilterFactory { - type Vtable = IRemoteSystemKindFilterFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteSystemKindFilterFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa1fb18ee_99ea_40bc_9a39_c670aa804a28); -} +::windows_core::imp::com_interface!(IRemoteSystemKindFilterFactory, IRemoteSystemKindFilterFactory_Vtbl, 0xa1fb18ee_99ea_40bc_9a39_c670aa804a28); #[repr(C)] #[doc(hidden)] pub struct IRemoteSystemKindFilterFactory_Vtbl { @@ -484,16 +233,7 @@ pub struct IRemoteSystemKindFilterFactory_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Create: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteSystemKindStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteSystemKindStatics { - type Vtable = IRemoteSystemKindStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteSystemKindStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf6317633_ab14_41d0_9553_796aadb882db); -} +::windows_core::imp::com_interface!(IRemoteSystemKindStatics, IRemoteSystemKindStatics_Vtbl, 0xf6317633_ab14_41d0_9553_796aadb882db); #[repr(C)] #[doc(hidden)] pub struct IRemoteSystemKindStatics_Vtbl { @@ -504,16 +244,7 @@ pub struct IRemoteSystemKindStatics_Vtbl { pub Desktop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Xbox: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteSystemKindStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteSystemKindStatics2 { - type Vtable = IRemoteSystemKindStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteSystemKindStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb9e3a3d0_0466_4749_91e8_65f9d19a96a5); -} +::windows_core::imp::com_interface!(IRemoteSystemKindStatics2, IRemoteSystemKindStatics2_Vtbl, 0xb9e3a3d0_0466_4749_91e8_65f9d19a96a5); #[repr(C)] #[doc(hidden)] pub struct IRemoteSystemKindStatics2_Vtbl { @@ -522,32 +253,14 @@ pub struct IRemoteSystemKindStatics2_Vtbl { pub Tablet: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Laptop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteSystemRemovedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteSystemRemovedEventArgs { - type Vtable = IRemoteSystemRemovedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteSystemRemovedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8b3d16bb_7306_49ea_b7df_67d5714cb013); -} +::windows_core::imp::com_interface!(IRemoteSystemRemovedEventArgs, IRemoteSystemRemovedEventArgs_Vtbl, 0x8b3d16bb_7306_49ea_b7df_67d5714cb013); #[repr(C)] #[doc(hidden)] pub struct IRemoteSystemRemovedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub RemoteSystemId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteSystemSession(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteSystemSession { - type Vtable = IRemoteSystemSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteSystemSession { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x69476a01_9ada_490f_9549_d31cb14c9e95); -} +::windows_core::imp::com_interface!(IRemoteSystemSession, IRemoteSystemSession_Vtbl, 0x69476a01_9ada_490f_9549_d31cb14c9e95); #[repr(C)] #[doc(hidden)] pub struct IRemoteSystemSession_Vtbl { @@ -560,32 +273,14 @@ pub struct IRemoteSystemSession_Vtbl { pub CreateParticipantWatcher: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SendInvitationAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, invitee: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteSystemSessionAddedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteSystemSessionAddedEventArgs { - type Vtable = IRemoteSystemSessionAddedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteSystemSessionAddedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd585d754_bc97_4c39_99b4_beca76e04c3f); -} +::windows_core::imp::com_interface!(IRemoteSystemSessionAddedEventArgs, IRemoteSystemSessionAddedEventArgs_Vtbl, 0xd585d754_bc97_4c39_99b4_beca76e04c3f); #[repr(C)] #[doc(hidden)] pub struct IRemoteSystemSessionAddedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub SessionInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteSystemSessionController(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteSystemSessionController { - type Vtable = IRemoteSystemSessionController_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteSystemSessionController { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe48b2dd2_6820_4867_b425_d89c0a3ef7ba); -} +::windows_core::imp::com_interface!(IRemoteSystemSessionController, IRemoteSystemSessionController_Vtbl, 0xe48b2dd2_6820_4867_b425_d89c0a3ef7ba); #[repr(C)] #[doc(hidden)] pub struct IRemoteSystemSessionController_Vtbl { @@ -595,16 +290,7 @@ pub struct IRemoteSystemSessionController_Vtbl { pub RemoveParticipantAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pparticipant: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateSessionAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteSystemSessionControllerFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteSystemSessionControllerFactory { - type Vtable = IRemoteSystemSessionControllerFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteSystemSessionControllerFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbfcc2f6b_ac3d_4199_82cd_6670a773ef2e); -} +::windows_core::imp::com_interface!(IRemoteSystemSessionControllerFactory, IRemoteSystemSessionControllerFactory_Vtbl, 0xbfcc2f6b_ac3d_4199_82cd_6670a773ef2e); #[repr(C)] #[doc(hidden)] pub struct IRemoteSystemSessionControllerFactory_Vtbl { @@ -612,16 +298,7 @@ pub struct IRemoteSystemSessionControllerFactory_Vtbl { pub CreateController: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, displayname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateControllerWithSessionOptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, displayname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, options: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteSystemSessionCreationResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteSystemSessionCreationResult { - type Vtable = IRemoteSystemSessionCreationResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteSystemSessionCreationResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa79812c2_37de_448c_8b83_a30aa3c4ead6); -} +::windows_core::imp::com_interface!(IRemoteSystemSessionCreationResult, IRemoteSystemSessionCreationResult_Vtbl, 0xa79812c2_37de_448c_8b83_a30aa3c4ead6); #[repr(C)] #[doc(hidden)] pub struct IRemoteSystemSessionCreationResult_Vtbl { @@ -629,32 +306,14 @@ pub struct IRemoteSystemSessionCreationResult_Vtbl { pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut RemoteSystemSessionCreationStatus) -> ::windows_core::HRESULT, pub Session: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteSystemSessionDisconnectedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteSystemSessionDisconnectedEventArgs { - type Vtable = IRemoteSystemSessionDisconnectedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteSystemSessionDisconnectedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xde0bc69b_77c5_461c_8209_7c6c5d3111ab); -} +::windows_core::imp::com_interface!(IRemoteSystemSessionDisconnectedEventArgs, IRemoteSystemSessionDisconnectedEventArgs_Vtbl, 0xde0bc69b_77c5_461c_8209_7c6c5d3111ab); #[repr(C)] #[doc(hidden)] pub struct IRemoteSystemSessionDisconnectedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Reason: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut RemoteSystemSessionDisconnectedReason) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteSystemSessionInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteSystemSessionInfo { - type Vtable = IRemoteSystemSessionInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteSystemSessionInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xff4df648_8b0a_4e9a_9905_69e4b841c588); -} +::windows_core::imp::com_interface!(IRemoteSystemSessionInfo, IRemoteSystemSessionInfo_Vtbl, 0xff4df648_8b0a_4e9a_9905_69e4b841c588); #[repr(C)] #[doc(hidden)] pub struct IRemoteSystemSessionInfo_Vtbl { @@ -663,16 +322,7 @@ pub struct IRemoteSystemSessionInfo_Vtbl { pub ControllerDisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub JoinAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteSystemSessionInvitation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteSystemSessionInvitation { - type Vtable = IRemoteSystemSessionInvitation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteSystemSessionInvitation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3e32cc91_51d7_4766_a121_25516c3b8294); -} +::windows_core::imp::com_interface!(IRemoteSystemSessionInvitation, IRemoteSystemSessionInvitation_Vtbl, 0x3e32cc91_51d7_4766_a121_25516c3b8294); #[repr(C)] #[doc(hidden)] pub struct IRemoteSystemSessionInvitation_Vtbl { @@ -680,16 +330,7 @@ pub struct IRemoteSystemSessionInvitation_Vtbl { pub Sender: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SessionInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteSystemSessionInvitationListener(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteSystemSessionInvitationListener { - type Vtable = IRemoteSystemSessionInvitationListener_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteSystemSessionInvitationListener { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x08f4003f_bc71_49e1_874a_31ddff9a27b9); -} +::windows_core::imp::com_interface!(IRemoteSystemSessionInvitationListener, IRemoteSystemSessionInvitationListener_Vtbl, 0x08f4003f_bc71_49e1_874a_31ddff9a27b9); #[repr(C)] #[doc(hidden)] pub struct IRemoteSystemSessionInvitationListener_Vtbl { @@ -697,32 +338,14 @@ pub struct IRemoteSystemSessionInvitationListener_Vtbl { pub InvitationReceived: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveInvitationReceived: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteSystemSessionInvitationReceivedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteSystemSessionInvitationReceivedEventArgs { - type Vtable = IRemoteSystemSessionInvitationReceivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteSystemSessionInvitationReceivedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5e964a2d_a10d_4edb_8dea_54d20ac19543); -} +::windows_core::imp::com_interface!(IRemoteSystemSessionInvitationReceivedEventArgs, IRemoteSystemSessionInvitationReceivedEventArgs_Vtbl, 0x5e964a2d_a10d_4edb_8dea_54d20ac19543); #[repr(C)] #[doc(hidden)] pub struct IRemoteSystemSessionInvitationReceivedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Invitation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteSystemSessionJoinRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteSystemSessionJoinRequest { - type Vtable = IRemoteSystemSessionJoinRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteSystemSessionJoinRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x20600068_7994_4331_86d1_d89d882585ee); -} +::windows_core::imp::com_interface!(IRemoteSystemSessionJoinRequest, IRemoteSystemSessionJoinRequest_Vtbl, 0x20600068_7994_4331_86d1_d89d882585ee); #[repr(C)] #[doc(hidden)] pub struct IRemoteSystemSessionJoinRequest_Vtbl { @@ -730,16 +353,7 @@ pub struct IRemoteSystemSessionJoinRequest_Vtbl { pub Participant: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Accept: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteSystemSessionJoinRequestedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteSystemSessionJoinRequestedEventArgs { - type Vtable = IRemoteSystemSessionJoinRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteSystemSessionJoinRequestedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdbca4fc3_82b9_4816_9c24_e40e61774bd8); -} +::windows_core::imp::com_interface!(IRemoteSystemSessionJoinRequestedEventArgs, IRemoteSystemSessionJoinRequestedEventArgs_Vtbl, 0xdbca4fc3_82b9_4816_9c24_e40e61774bd8); #[repr(C)] #[doc(hidden)] pub struct IRemoteSystemSessionJoinRequestedEventArgs_Vtbl { @@ -747,16 +361,7 @@ pub struct IRemoteSystemSessionJoinRequestedEventArgs_Vtbl { pub JoinRequest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteSystemSessionJoinResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteSystemSessionJoinResult { - type Vtable = IRemoteSystemSessionJoinResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteSystemSessionJoinResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xce7b1f04_a03e_41a4_900b_1e79328c1267); -} +::windows_core::imp::com_interface!(IRemoteSystemSessionJoinResult, IRemoteSystemSessionJoinResult_Vtbl, 0xce7b1f04_a03e_41a4_900b_1e79328c1267); #[repr(C)] #[doc(hidden)] pub struct IRemoteSystemSessionJoinResult_Vtbl { @@ -764,16 +369,7 @@ pub struct IRemoteSystemSessionJoinResult_Vtbl { pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut RemoteSystemSessionJoinStatus) -> ::windows_core::HRESULT, pub Session: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteSystemSessionMessageChannel(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteSystemSessionMessageChannel { - type Vtable = IRemoteSystemSessionMessageChannel_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteSystemSessionMessageChannel { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9524d12a_73d9_4c10_b751_c26784437127); -} +::windows_core::imp::com_interface!(IRemoteSystemSessionMessageChannel, IRemoteSystemSessionMessageChannel_Vtbl, 0x9524d12a_73d9_4c10_b751_c26784437127); #[repr(C)] #[doc(hidden)] pub struct IRemoteSystemSessionMessageChannel_Vtbl { @@ -794,16 +390,7 @@ pub struct IRemoteSystemSessionMessageChannel_Vtbl { pub ValueSetReceived: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveValueSetReceived: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteSystemSessionMessageChannelFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteSystemSessionMessageChannelFactory { - type Vtable = IRemoteSystemSessionMessageChannelFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteSystemSessionMessageChannelFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x295e1c4a_bd16_4298_b7ce_415482b0e11d); -} +::windows_core::imp::com_interface!(IRemoteSystemSessionMessageChannelFactory, IRemoteSystemSessionMessageChannelFactory_Vtbl, 0x295e1c4a_bd16_4298_b7ce_415482b0e11d); #[repr(C)] #[doc(hidden)] pub struct IRemoteSystemSessionMessageChannelFactory_Vtbl { @@ -811,16 +398,7 @@ pub struct IRemoteSystemSessionMessageChannelFactory_Vtbl { pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, session: *mut ::core::ffi::c_void, channelname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateWithReliability: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, session: *mut ::core::ffi::c_void, channelname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, reliability: RemoteSystemSessionMessageChannelReliability, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteSystemSessionOptions(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteSystemSessionOptions { - type Vtable = IRemoteSystemSessionOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteSystemSessionOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x740ed755_8418_4f01_9353_e21c9ecc6cfc); -} +::windows_core::imp::com_interface!(IRemoteSystemSessionOptions, IRemoteSystemSessionOptions_Vtbl, 0x740ed755_8418_4f01_9353_e21c9ecc6cfc); #[repr(C)] #[doc(hidden)] pub struct IRemoteSystemSessionOptions_Vtbl { @@ -828,16 +406,7 @@ pub struct IRemoteSystemSessionOptions_Vtbl { pub IsInviteOnly: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetIsInviteOnly: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteSystemSessionParticipant(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteSystemSessionParticipant { - type Vtable = IRemoteSystemSessionParticipant_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteSystemSessionParticipant { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7e90058c_acf9_4729_8a17_44e7baed5dcc); -} +::windows_core::imp::com_interface!(IRemoteSystemSessionParticipant, IRemoteSystemSessionParticipant_Vtbl, 0x7e90058c_acf9_4729_8a17_44e7baed5dcc); #[repr(C)] #[doc(hidden)] pub struct IRemoteSystemSessionParticipant_Vtbl { @@ -848,48 +417,21 @@ pub struct IRemoteSystemSessionParticipant_Vtbl { #[cfg(not(all(feature = "Foundation_Collections", feature = "Networking")))] GetHostNames: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteSystemSessionParticipantAddedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteSystemSessionParticipantAddedEventArgs { - type Vtable = IRemoteSystemSessionParticipantAddedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteSystemSessionParticipantAddedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd35a57d8_c9a1_4bb7_b6b0_79bb91adf93d); -} +::windows_core::imp::com_interface!(IRemoteSystemSessionParticipantAddedEventArgs, IRemoteSystemSessionParticipantAddedEventArgs_Vtbl, 0xd35a57d8_c9a1_4bb7_b6b0_79bb91adf93d); #[repr(C)] #[doc(hidden)] pub struct IRemoteSystemSessionParticipantAddedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Participant: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteSystemSessionParticipantRemovedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteSystemSessionParticipantRemovedEventArgs { - type Vtable = IRemoteSystemSessionParticipantRemovedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteSystemSessionParticipantRemovedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x866ef088_de68_4abf_88a1_f90d16274192); -} +::windows_core::imp::com_interface!(IRemoteSystemSessionParticipantRemovedEventArgs, IRemoteSystemSessionParticipantRemovedEventArgs_Vtbl, 0x866ef088_de68_4abf_88a1_f90d16274192); #[repr(C)] #[doc(hidden)] pub struct IRemoteSystemSessionParticipantRemovedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Participant: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteSystemSessionParticipantWatcher(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteSystemSessionParticipantWatcher { - type Vtable = IRemoteSystemSessionParticipantWatcher_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteSystemSessionParticipantWatcher { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdcdd02cc_aa87_4d79_b6cc_4459b3e92075); -} +::windows_core::imp::com_interface!(IRemoteSystemSessionParticipantWatcher, IRemoteSystemSessionParticipantWatcher_Vtbl, 0xdcdd02cc_aa87_4d79_b6cc_4459b3e92075); #[repr(C)] #[doc(hidden)] pub struct IRemoteSystemSessionParticipantWatcher_Vtbl { @@ -904,64 +446,28 @@ pub struct IRemoteSystemSessionParticipantWatcher_Vtbl { pub EnumerationCompleted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveEnumerationCompleted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteSystemSessionRemovedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteSystemSessionRemovedEventArgs { - type Vtable = IRemoteSystemSessionRemovedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteSystemSessionRemovedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaf82914e_39a1_4dea_9d63_43798d5bbbd0); -} +::windows_core::imp::com_interface!(IRemoteSystemSessionRemovedEventArgs, IRemoteSystemSessionRemovedEventArgs_Vtbl, 0xaf82914e_39a1_4dea_9d63_43798d5bbbd0); #[repr(C)] #[doc(hidden)] pub struct IRemoteSystemSessionRemovedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub SessionInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteSystemSessionStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteSystemSessionStatics { - type Vtable = IRemoteSystemSessionStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteSystemSessionStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8524899f_fd20_44e3_9565_e75a3b14c66e); -} +::windows_core::imp::com_interface!(IRemoteSystemSessionStatics, IRemoteSystemSessionStatics_Vtbl, 0x8524899f_fd20_44e3_9565_e75a3b14c66e); #[repr(C)] #[doc(hidden)] pub struct IRemoteSystemSessionStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateWatcher: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteSystemSessionUpdatedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteSystemSessionUpdatedEventArgs { - type Vtable = IRemoteSystemSessionUpdatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteSystemSessionUpdatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x16875069_231e_4c91_8ec8_b3a39d9e55a3); -} +::windows_core::imp::com_interface!(IRemoteSystemSessionUpdatedEventArgs, IRemoteSystemSessionUpdatedEventArgs_Vtbl, 0x16875069_231e_4c91_8ec8_b3a39d9e55a3); #[repr(C)] #[doc(hidden)] pub struct IRemoteSystemSessionUpdatedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub SessionInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteSystemSessionValueSetReceivedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteSystemSessionValueSetReceivedEventArgs { - type Vtable = IRemoteSystemSessionValueSetReceivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteSystemSessionValueSetReceivedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x06f31785_2da5_4e58_a78f_9e8d0784ee25); -} +::windows_core::imp::com_interface!(IRemoteSystemSessionValueSetReceivedEventArgs, IRemoteSystemSessionValueSetReceivedEventArgs_Vtbl, 0x06f31785_2da5_4e58_a78f_9e8d0784ee25); #[repr(C)] #[doc(hidden)] pub struct IRemoteSystemSessionValueSetReceivedEventArgs_Vtbl { @@ -972,16 +478,7 @@ pub struct IRemoteSystemSessionValueSetReceivedEventArgs_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Message: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteSystemSessionWatcher(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteSystemSessionWatcher { - type Vtable = IRemoteSystemSessionWatcher_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteSystemSessionWatcher { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8003e340_0c41_4a62_b6d7_bdbe2b19be2d); -} +::windows_core::imp::com_interface!(IRemoteSystemSessionWatcher, IRemoteSystemSessionWatcher_Vtbl, 0x8003e340_0c41_4a62_b6d7_bdbe2b19be2d); #[repr(C)] #[doc(hidden)] pub struct IRemoteSystemSessionWatcher_Vtbl { @@ -996,16 +493,7 @@ pub struct IRemoteSystemSessionWatcher_Vtbl { pub Removed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveRemoved: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteSystemStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteSystemStatics { - type Vtable = IRemoteSystemStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteSystemStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa485b392_ff2b_4b47_be62_743f2f140f30); -} +::windows_core::imp::com_interface!(IRemoteSystemStatics, IRemoteSystemStatics_Vtbl, 0xa485b392_ff2b_4b47_be62_743f2f140f30); #[repr(C)] #[doc(hidden)] pub struct IRemoteSystemStatics_Vtbl { @@ -1021,32 +509,14 @@ pub struct IRemoteSystemStatics_Vtbl { CreateWatcherWithFilters: usize, pub RequestAccessAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteSystemStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteSystemStatics2 { - type Vtable = IRemoteSystemStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteSystemStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c98edca_6f99_4c52_a272_ea4f36471744); -} +::windows_core::imp::com_interface!(IRemoteSystemStatics2, IRemoteSystemStatics2_Vtbl, 0x0c98edca_6f99_4c52_a272_ea4f36471744); #[repr(C)] #[doc(hidden)] pub struct IRemoteSystemStatics2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub IsAuthorizationKindEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, kind: RemoteSystemAuthorizationKind, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteSystemStatics3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteSystemStatics3 { - type Vtable = IRemoteSystemStatics3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteSystemStatics3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9995f16f_0b3c_5ac5_b325_cc73f437dfcd); -} +::windows_core::imp::com_interface!(IRemoteSystemStatics3, IRemoteSystemStatics3_Vtbl, 0x9995f16f_0b3c_5ac5_b325_cc73f437dfcd); #[repr(C)] #[doc(hidden)] pub struct IRemoteSystemStatics3_Vtbl { @@ -1057,64 +527,28 @@ pub struct IRemoteSystemStatics3_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] CreateWatcherWithFiltersForUser: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteSystemStatusTypeFilter(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteSystemStatusTypeFilter { - type Vtable = IRemoteSystemStatusTypeFilter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteSystemStatusTypeFilter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c39514e_cbb6_4777_8534_2e0c521affa2); -} +::windows_core::imp::com_interface!(IRemoteSystemStatusTypeFilter, IRemoteSystemStatusTypeFilter_Vtbl, 0x0c39514e_cbb6_4777_8534_2e0c521affa2); #[repr(C)] #[doc(hidden)] pub struct IRemoteSystemStatusTypeFilter_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub RemoteSystemStatusType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut RemoteSystemStatusType) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteSystemStatusTypeFilterFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteSystemStatusTypeFilterFactory { - type Vtable = IRemoteSystemStatusTypeFilterFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteSystemStatusTypeFilterFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x33cf78fa_d724_4125_ac7a_8d281e44c949); -} +::windows_core::imp::com_interface!(IRemoteSystemStatusTypeFilterFactory, IRemoteSystemStatusTypeFilterFactory_Vtbl, 0x33cf78fa_d724_4125_ac7a_8d281e44c949); #[repr(C)] #[doc(hidden)] pub struct IRemoteSystemStatusTypeFilterFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, remotesystemstatustype: RemoteSystemStatusType, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteSystemUpdatedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteSystemUpdatedEventArgs { - type Vtable = IRemoteSystemUpdatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteSystemUpdatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7502ff0e_dbcb_4155_b4ca_b30a04f27627); -} +::windows_core::imp::com_interface!(IRemoteSystemUpdatedEventArgs, IRemoteSystemUpdatedEventArgs_Vtbl, 0x7502ff0e_dbcb_4155_b4ca_b30a04f27627); #[repr(C)] #[doc(hidden)] pub struct IRemoteSystemUpdatedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub RemoteSystem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteSystemWatcher(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteSystemWatcher { - type Vtable = IRemoteSystemWatcher_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteSystemWatcher { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5d600c7e_2c07_48c5_889c_455d2b099771); -} +::windows_core::imp::com_interface!(IRemoteSystemWatcher, IRemoteSystemWatcher_Vtbl, 0x5d600c7e_2c07_48c5_889c_455d2b099771); #[repr(C)] #[doc(hidden)] pub struct IRemoteSystemWatcher_Vtbl { @@ -1128,16 +562,7 @@ pub struct IRemoteSystemWatcher_Vtbl { pub RemoteSystemRemoved: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveRemoteSystemRemoved: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteSystemWatcher2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteSystemWatcher2 { - type Vtable = IRemoteSystemWatcher2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteSystemWatcher2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x73436700_19ca_48f9_a4cd_780f7ad58c71); -} +::windows_core::imp::com_interface!(IRemoteSystemWatcher2, IRemoteSystemWatcher2_Vtbl, 0x73436700_19ca_48f9_a4cd_780f7ad58c71); #[repr(C)] #[doc(hidden)] pub struct IRemoteSystemWatcher2_Vtbl { @@ -1147,48 +572,21 @@ pub struct IRemoteSystemWatcher2_Vtbl { pub ErrorOccurred: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveErrorOccurred: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteSystemWatcher3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteSystemWatcher3 { - type Vtable = IRemoteSystemWatcher3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteSystemWatcher3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf79c0fcf_a913_55d3_8413_418fcf15ba54); -} +::windows_core::imp::com_interface!(IRemoteSystemWatcher3, IRemoteSystemWatcher3_Vtbl, 0xf79c0fcf_a913_55d3_8413_418fcf15ba54); #[repr(C)] #[doc(hidden)] pub struct IRemoteSystemWatcher3_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub User: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteSystemWatcherErrorOccurredEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteSystemWatcherErrorOccurredEventArgs { - type Vtable = IRemoteSystemWatcherErrorOccurredEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteSystemWatcherErrorOccurredEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x74c5c6af_5114_4426_9216_20d81f8519ae); -} +::windows_core::imp::com_interface!(IRemoteSystemWatcherErrorOccurredEventArgs, IRemoteSystemWatcherErrorOccurredEventArgs_Vtbl, 0x74c5c6af_5114_4426_9216_20d81f8519ae); #[repr(C)] #[doc(hidden)] pub struct IRemoteSystemWatcherErrorOccurredEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Error: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut RemoteSystemWatcherError) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteSystemWebAccountFilter(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteSystemWebAccountFilter { - type Vtable = IRemoteSystemWebAccountFilter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteSystemWebAccountFilter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3fb75873_87c8_5d8f_977e_f69f96d67238); -} +::windows_core::imp::com_interface!(IRemoteSystemWebAccountFilter, IRemoteSystemWebAccountFilter_Vtbl, 0x3fb75873_87c8_5d8f_977e_f69f96d67238); #[repr(C)] #[doc(hidden)] pub struct IRemoteSystemWebAccountFilter_Vtbl { @@ -1198,16 +596,7 @@ pub struct IRemoteSystemWebAccountFilter_Vtbl { #[cfg(not(feature = "Security_Credentials"))] Account: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteSystemWebAccountFilterFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteSystemWebAccountFilterFactory { - type Vtable = IRemoteSystemWebAccountFilterFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteSystemWebAccountFilterFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x348a2709_5f4d_5127_b4a7_bf99d5252b1b); -} +::windows_core::imp::com_interface!(IRemoteSystemWebAccountFilterFactory, IRemoteSystemWebAccountFilterFactory_Vtbl, 0x348a2709_5f4d_5127_b4a7_bf99d5252b1b); #[repr(C)] #[doc(hidden)] pub struct IRemoteSystemWebAccountFilterFactory_Vtbl { @@ -1255,6 +644,7 @@ impl ::windows_core::RuntimeName for KnownRemoteSystemCapabilities { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RemoteSystem(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RemoteSystem, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RemoteSystem { pub fn DisplayName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1292,35 +682,35 @@ impl RemoteSystem { } } pub fn IsAvailableBySpatialProximity(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsAvailableBySpatialProximity)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetCapabilitySupportedAsync(&self, capabilityname: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetCapabilitySupportedAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(capabilityname), &mut result__).from_abi(result__) } } pub fn ManufacturerDisplayName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ManufacturerDisplayName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ModelDisplayName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ModelDisplayName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Platform(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Platform)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1329,14 +719,14 @@ impl RemoteSystem { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Apps(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Apps)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1363,11 +753,11 @@ impl RemoteSystem { #[cfg(feature = "Foundation_Collections")] pub fn CreateWatcherWithFilters(filters: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::IRemoteSystemStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateWatcherWithFilters)(::windows_core::Interface::as_raw(this), filters.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateWatcherWithFilters)(::windows_core::Interface::as_raw(this), filters.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn RequestAccessAsync() -> ::windows_core::Result> { @@ -1396,11 +786,11 @@ impl RemoteSystem { pub fn CreateWatcherWithFiltersForUser(user: P0, filters: P1) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam>, + P1: ::windows_core::IntoParam>, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateWatcherWithFiltersForUser)(::windows_core::Interface::as_raw(this), user.into_param().abi(), filters.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -1424,19 +814,17 @@ impl ::windows_core::RuntimeType for RemoteSystem { } unsafe impl ::windows_core::Interface for RemoteSystem { type Vtable = IRemoteSystem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RemoteSystem { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RemoteSystem { const NAME: &'static str = "Windows.System.RemoteSystems.RemoteSystem"; } -::windows_core::imp::interface_hierarchy!(RemoteSystem, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RemoteSystem {} unsafe impl ::core::marker::Sync for RemoteSystem {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RemoteSystemAddedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RemoteSystemAddedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RemoteSystemAddedEventArgs { pub fn RemoteSystem(&self) -> ::windows_core::Result { let this = self; @@ -1451,19 +839,17 @@ impl ::windows_core::RuntimeType for RemoteSystemAddedEventArgs { } unsafe impl ::windows_core::Interface for RemoteSystemAddedEventArgs { type Vtable = IRemoteSystemAddedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RemoteSystemAddedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RemoteSystemAddedEventArgs { const NAME: &'static str = "Windows.System.RemoteSystems.RemoteSystemAddedEventArgs"; } -::windows_core::imp::interface_hierarchy!(RemoteSystemAddedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RemoteSystemAddedEventArgs {} unsafe impl ::core::marker::Sync for RemoteSystemAddedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RemoteSystemApp(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RemoteSystemApp, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RemoteSystemApp { pub fn Id(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1503,14 +889,14 @@ impl RemoteSystemApp { } } pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ConnectionToken(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ConnectionToken)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1522,19 +908,17 @@ impl ::windows_core::RuntimeType for RemoteSystemApp { } unsafe impl ::windows_core::Interface for RemoteSystemApp { type Vtable = IRemoteSystemApp_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RemoteSystemApp { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RemoteSystemApp { const NAME: &'static str = "Windows.System.RemoteSystems.RemoteSystemApp"; } -::windows_core::imp::interface_hierarchy!(RemoteSystemApp, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RemoteSystemApp {} unsafe impl ::core::marker::Sync for RemoteSystemApp {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RemoteSystemAppRegistration(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RemoteSystemAppRegistration, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RemoteSystemAppRegistration { pub fn User(&self) -> ::windows_core::Result { let this = self; @@ -1585,19 +969,18 @@ impl ::windows_core::RuntimeType for RemoteSystemAppRegistration { } unsafe impl ::windows_core::Interface for RemoteSystemAppRegistration { type Vtable = IRemoteSystemAppRegistration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RemoteSystemAppRegistration { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RemoteSystemAppRegistration { const NAME: &'static str = "Windows.System.RemoteSystems.RemoteSystemAppRegistration"; } -::windows_core::imp::interface_hierarchy!(RemoteSystemAppRegistration, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RemoteSystemAppRegistration {} unsafe impl ::core::marker::Sync for RemoteSystemAppRegistration {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RemoteSystemAuthorizationKindFilter(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RemoteSystemAuthorizationKindFilter, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(RemoteSystemAuthorizationKindFilter, IRemoteSystemFilter); impl RemoteSystemAuthorizationKindFilter { pub fn RemoteSystemAuthorizationKind(&self) -> ::windows_core::Result { let this = self; @@ -1623,20 +1006,17 @@ impl ::windows_core::RuntimeType for RemoteSystemAuthorizationKindFilter { } unsafe impl ::windows_core::Interface for RemoteSystemAuthorizationKindFilter { type Vtable = IRemoteSystemAuthorizationKindFilter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RemoteSystemAuthorizationKindFilter { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RemoteSystemAuthorizationKindFilter { const NAME: &'static str = "Windows.System.RemoteSystems.RemoteSystemAuthorizationKindFilter"; } -::windows_core::imp::interface_hierarchy!(RemoteSystemAuthorizationKindFilter, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for RemoteSystemAuthorizationKindFilter {} unsafe impl ::core::marker::Send for RemoteSystemAuthorizationKindFilter {} unsafe impl ::core::marker::Sync for RemoteSystemAuthorizationKindFilter {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RemoteSystemConnectionInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RemoteSystemConnectionInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RemoteSystemConnectionInfo { pub fn IsProximal(&self) -> ::windows_core::Result { let this = self; @@ -1667,19 +1047,17 @@ impl ::windows_core::RuntimeType for RemoteSystemConnectionInfo { } unsafe impl ::windows_core::Interface for RemoteSystemConnectionInfo { type Vtable = IRemoteSystemConnectionInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RemoteSystemConnectionInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RemoteSystemConnectionInfo { const NAME: &'static str = "Windows.System.RemoteSystems.RemoteSystemConnectionInfo"; } -::windows_core::imp::interface_hierarchy!(RemoteSystemConnectionInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RemoteSystemConnectionInfo {} unsafe impl ::core::marker::Sync for RemoteSystemConnectionInfo {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RemoteSystemConnectionRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RemoteSystemConnectionRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RemoteSystemConnectionRequest { pub fn RemoteSystem(&self) -> ::windows_core::Result { let this = self; @@ -1689,14 +1067,14 @@ impl RemoteSystemConnectionRequest { } } pub fn RemoteSystemApp(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RemoteSystemApp)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ConnectionToken(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ConnectionToken)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1756,19 +1134,18 @@ impl ::windows_core::RuntimeType for RemoteSystemConnectionRequest { } unsafe impl ::windows_core::Interface for RemoteSystemConnectionRequest { type Vtable = IRemoteSystemConnectionRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RemoteSystemConnectionRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RemoteSystemConnectionRequest { const NAME: &'static str = "Windows.System.RemoteSystems.RemoteSystemConnectionRequest"; } -::windows_core::imp::interface_hierarchy!(RemoteSystemConnectionRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RemoteSystemConnectionRequest {} unsafe impl ::core::marker::Sync for RemoteSystemConnectionRequest {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RemoteSystemDiscoveryTypeFilter(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RemoteSystemDiscoveryTypeFilter, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(RemoteSystemDiscoveryTypeFilter, IRemoteSystemFilter); impl RemoteSystemDiscoveryTypeFilter { pub fn RemoteSystemDiscoveryType(&self) -> ::windows_core::Result { let this = self; @@ -1794,39 +1171,35 @@ impl ::windows_core::RuntimeType for RemoteSystemDiscoveryTypeFilter { } unsafe impl ::windows_core::Interface for RemoteSystemDiscoveryTypeFilter { type Vtable = IRemoteSystemDiscoveryTypeFilter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RemoteSystemDiscoveryTypeFilter { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RemoteSystemDiscoveryTypeFilter { const NAME: &'static str = "Windows.System.RemoteSystems.RemoteSystemDiscoveryTypeFilter"; } -::windows_core::imp::interface_hierarchy!(RemoteSystemDiscoveryTypeFilter, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for RemoteSystemDiscoveryTypeFilter {} unsafe impl ::core::marker::Send for RemoteSystemDiscoveryTypeFilter {} unsafe impl ::core::marker::Sync for RemoteSystemDiscoveryTypeFilter {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RemoteSystemEnumerationCompletedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RemoteSystemEnumerationCompletedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RemoteSystemEnumerationCompletedEventArgs {} impl ::windows_core::RuntimeType for RemoteSystemEnumerationCompletedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_class::(); } unsafe impl ::windows_core::Interface for RemoteSystemEnumerationCompletedEventArgs { type Vtable = IRemoteSystemEnumerationCompletedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RemoteSystemEnumerationCompletedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RemoteSystemEnumerationCompletedEventArgs { const NAME: &'static str = "Windows.System.RemoteSystems.RemoteSystemEnumerationCompletedEventArgs"; } -::windows_core::imp::interface_hierarchy!(RemoteSystemEnumerationCompletedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RemoteSystemEnumerationCompletedEventArgs {} unsafe impl ::core::marker::Sync for RemoteSystemEnumerationCompletedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RemoteSystemKindFilter(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RemoteSystemKindFilter, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(RemoteSystemKindFilter, IRemoteSystemFilter); impl RemoteSystemKindFilter { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -1841,11 +1214,11 @@ impl RemoteSystemKindFilter { #[cfg(feature = "Foundation_Collections")] pub fn Create(remotesystemkinds: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::IRemoteSystemKindFilterFactory(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).Create)(::windows_core::Interface::as_raw(this), remotesystemkinds.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).Create)(::windows_core::Interface::as_raw(this), remotesystemkinds.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -1859,15 +1232,11 @@ impl ::windows_core::RuntimeType for RemoteSystemKindFilter { } unsafe impl ::windows_core::Interface for RemoteSystemKindFilter { type Vtable = IRemoteSystemKindFilter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RemoteSystemKindFilter { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RemoteSystemKindFilter { const NAME: &'static str = "Windows.System.RemoteSystems.RemoteSystemKindFilter"; } -::windows_core::imp::interface_hierarchy!(RemoteSystemKindFilter, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for RemoteSystemKindFilter {} unsafe impl ::core::marker::Send for RemoteSystemKindFilter {} unsafe impl ::core::marker::Sync for RemoteSystemKindFilter {} pub struct RemoteSystemKinds; @@ -1937,6 +1306,7 @@ impl ::windows_core::RuntimeName for RemoteSystemKinds { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RemoteSystemRemovedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RemoteSystemRemovedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RemoteSystemRemovedEventArgs { pub fn RemoteSystemId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1951,22 +1321,21 @@ impl ::windows_core::RuntimeType for RemoteSystemRemovedEventArgs { } unsafe impl ::windows_core::Interface for RemoteSystemRemovedEventArgs { type Vtable = IRemoteSystemRemovedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RemoteSystemRemovedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RemoteSystemRemovedEventArgs { const NAME: &'static str = "Windows.System.RemoteSystems.RemoteSystemRemovedEventArgs"; } -::windows_core::imp::interface_hierarchy!(RemoteSystemRemovedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RemoteSystemRemovedEventArgs {} unsafe impl ::core::marker::Sync for RemoteSystemRemovedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RemoteSystemSession(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RemoteSystemSession, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(RemoteSystemSession, super::super::Foundation::IClosable); impl RemoteSystemSession { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Id(&self) -> ::windows_core::Result<::windows_core::HSTRING> { @@ -2038,20 +1407,17 @@ impl ::windows_core::RuntimeType for RemoteSystemSession { } unsafe impl ::windows_core::Interface for RemoteSystemSession { type Vtable = IRemoteSystemSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RemoteSystemSession { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RemoteSystemSession { const NAME: &'static str = "Windows.System.RemoteSystems.RemoteSystemSession"; } -::windows_core::imp::interface_hierarchy!(RemoteSystemSession, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for RemoteSystemSession {} unsafe impl ::core::marker::Send for RemoteSystemSession {} unsafe impl ::core::marker::Sync for RemoteSystemSession {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RemoteSystemSessionAddedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RemoteSystemSessionAddedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RemoteSystemSessionAddedEventArgs { pub fn SessionInfo(&self) -> ::windows_core::Result { let this = self; @@ -2066,19 +1432,17 @@ impl ::windows_core::RuntimeType for RemoteSystemSessionAddedEventArgs { } unsafe impl ::windows_core::Interface for RemoteSystemSessionAddedEventArgs { type Vtable = IRemoteSystemSessionAddedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RemoteSystemSessionAddedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RemoteSystemSessionAddedEventArgs { const NAME: &'static str = "Windows.System.RemoteSystems.RemoteSystemSessionAddedEventArgs"; } -::windows_core::imp::interface_hierarchy!(RemoteSystemSessionAddedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RemoteSystemSessionAddedEventArgs {} unsafe impl ::core::marker::Sync for RemoteSystemSessionAddedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RemoteSystemSessionController(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RemoteSystemSessionController, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RemoteSystemSessionController { pub fn JoinRequested(&self, handler: P0) -> ::windows_core::Result where @@ -2137,19 +1501,17 @@ impl ::windows_core::RuntimeType for RemoteSystemSessionController { } unsafe impl ::windows_core::Interface for RemoteSystemSessionController { type Vtable = IRemoteSystemSessionController_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RemoteSystemSessionController { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RemoteSystemSessionController { const NAME: &'static str = "Windows.System.RemoteSystems.RemoteSystemSessionController"; } -::windows_core::imp::interface_hierarchy!(RemoteSystemSessionController, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RemoteSystemSessionController {} unsafe impl ::core::marker::Sync for RemoteSystemSessionController {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RemoteSystemSessionCreationResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RemoteSystemSessionCreationResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RemoteSystemSessionCreationResult { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -2171,19 +1533,17 @@ impl ::windows_core::RuntimeType for RemoteSystemSessionCreationResult { } unsafe impl ::windows_core::Interface for RemoteSystemSessionCreationResult { type Vtable = IRemoteSystemSessionCreationResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RemoteSystemSessionCreationResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RemoteSystemSessionCreationResult { const NAME: &'static str = "Windows.System.RemoteSystems.RemoteSystemSessionCreationResult"; } -::windows_core::imp::interface_hierarchy!(RemoteSystemSessionCreationResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RemoteSystemSessionCreationResult {} unsafe impl ::core::marker::Sync for RemoteSystemSessionCreationResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RemoteSystemSessionDisconnectedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RemoteSystemSessionDisconnectedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RemoteSystemSessionDisconnectedEventArgs { pub fn Reason(&self) -> ::windows_core::Result { let this = self; @@ -2198,19 +1558,17 @@ impl ::windows_core::RuntimeType for RemoteSystemSessionDisconnectedEventArgs { } unsafe impl ::windows_core::Interface for RemoteSystemSessionDisconnectedEventArgs { type Vtable = IRemoteSystemSessionDisconnectedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RemoteSystemSessionDisconnectedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RemoteSystemSessionDisconnectedEventArgs { const NAME: &'static str = "Windows.System.RemoteSystems.RemoteSystemSessionDisconnectedEventArgs"; } -::windows_core::imp::interface_hierarchy!(RemoteSystemSessionDisconnectedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RemoteSystemSessionDisconnectedEventArgs {} unsafe impl ::core::marker::Sync for RemoteSystemSessionDisconnectedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RemoteSystemSessionInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RemoteSystemSessionInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RemoteSystemSessionInfo { pub fn DisplayName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -2239,19 +1597,17 @@ impl ::windows_core::RuntimeType for RemoteSystemSessionInfo { } unsafe impl ::windows_core::Interface for RemoteSystemSessionInfo { type Vtable = IRemoteSystemSessionInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RemoteSystemSessionInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RemoteSystemSessionInfo { const NAME: &'static str = "Windows.System.RemoteSystems.RemoteSystemSessionInfo"; } -::windows_core::imp::interface_hierarchy!(RemoteSystemSessionInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RemoteSystemSessionInfo {} unsafe impl ::core::marker::Sync for RemoteSystemSessionInfo {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RemoteSystemSessionInvitation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RemoteSystemSessionInvitation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RemoteSystemSessionInvitation { pub fn Sender(&self) -> ::windows_core::Result { let this = self; @@ -2273,19 +1629,17 @@ impl ::windows_core::RuntimeType for RemoteSystemSessionInvitation { } unsafe impl ::windows_core::Interface for RemoteSystemSessionInvitation { type Vtable = IRemoteSystemSessionInvitation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RemoteSystemSessionInvitation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RemoteSystemSessionInvitation { const NAME: &'static str = "Windows.System.RemoteSystems.RemoteSystemSessionInvitation"; } -::windows_core::imp::interface_hierarchy!(RemoteSystemSessionInvitation, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RemoteSystemSessionInvitation {} unsafe impl ::core::marker::Sync for RemoteSystemSessionInvitation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RemoteSystemSessionInvitationListener(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RemoteSystemSessionInvitationListener, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RemoteSystemSessionInvitationListener { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2314,19 +1668,17 @@ impl ::windows_core::RuntimeType for RemoteSystemSessionInvitationListener { } unsafe impl ::windows_core::Interface for RemoteSystemSessionInvitationListener { type Vtable = IRemoteSystemSessionInvitationListener_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RemoteSystemSessionInvitationListener { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RemoteSystemSessionInvitationListener { const NAME: &'static str = "Windows.System.RemoteSystems.RemoteSystemSessionInvitationListener"; } -::windows_core::imp::interface_hierarchy!(RemoteSystemSessionInvitationListener, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RemoteSystemSessionInvitationListener {} unsafe impl ::core::marker::Sync for RemoteSystemSessionInvitationListener {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RemoteSystemSessionInvitationReceivedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RemoteSystemSessionInvitationReceivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RemoteSystemSessionInvitationReceivedEventArgs { pub fn Invitation(&self) -> ::windows_core::Result { let this = self; @@ -2341,19 +1693,17 @@ impl ::windows_core::RuntimeType for RemoteSystemSessionInvitationReceivedEventA } unsafe impl ::windows_core::Interface for RemoteSystemSessionInvitationReceivedEventArgs { type Vtable = IRemoteSystemSessionInvitationReceivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RemoteSystemSessionInvitationReceivedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RemoteSystemSessionInvitationReceivedEventArgs { const NAME: &'static str = "Windows.System.RemoteSystems.RemoteSystemSessionInvitationReceivedEventArgs"; } -::windows_core::imp::interface_hierarchy!(RemoteSystemSessionInvitationReceivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RemoteSystemSessionInvitationReceivedEventArgs {} unsafe impl ::core::marker::Sync for RemoteSystemSessionInvitationReceivedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RemoteSystemSessionJoinRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RemoteSystemSessionJoinRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RemoteSystemSessionJoinRequest { pub fn Participant(&self) -> ::windows_core::Result { let this = self; @@ -2372,19 +1722,17 @@ impl ::windows_core::RuntimeType for RemoteSystemSessionJoinRequest { } unsafe impl ::windows_core::Interface for RemoteSystemSessionJoinRequest { type Vtable = IRemoteSystemSessionJoinRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RemoteSystemSessionJoinRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RemoteSystemSessionJoinRequest { const NAME: &'static str = "Windows.System.RemoteSystems.RemoteSystemSessionJoinRequest"; } -::windows_core::imp::interface_hierarchy!(RemoteSystemSessionJoinRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RemoteSystemSessionJoinRequest {} unsafe impl ::core::marker::Sync for RemoteSystemSessionJoinRequest {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RemoteSystemSessionJoinRequestedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RemoteSystemSessionJoinRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RemoteSystemSessionJoinRequestedEventArgs { pub fn JoinRequest(&self) -> ::windows_core::Result { let this = self; @@ -2406,19 +1754,17 @@ impl ::windows_core::RuntimeType for RemoteSystemSessionJoinRequestedEventArgs { } unsafe impl ::windows_core::Interface for RemoteSystemSessionJoinRequestedEventArgs { type Vtable = IRemoteSystemSessionJoinRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RemoteSystemSessionJoinRequestedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RemoteSystemSessionJoinRequestedEventArgs { const NAME: &'static str = "Windows.System.RemoteSystems.RemoteSystemSessionJoinRequestedEventArgs"; } -::windows_core::imp::interface_hierarchy!(RemoteSystemSessionJoinRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RemoteSystemSessionJoinRequestedEventArgs {} unsafe impl ::core::marker::Sync for RemoteSystemSessionJoinRequestedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RemoteSystemSessionJoinResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RemoteSystemSessionJoinResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RemoteSystemSessionJoinResult { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -2440,19 +1786,17 @@ impl ::windows_core::RuntimeType for RemoteSystemSessionJoinResult { } unsafe impl ::windows_core::Interface for RemoteSystemSessionJoinResult { type Vtable = IRemoteSystemSessionJoinResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RemoteSystemSessionJoinResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RemoteSystemSessionJoinResult { const NAME: &'static str = "Windows.System.RemoteSystems.RemoteSystemSessionJoinResult"; } -::windows_core::imp::interface_hierarchy!(RemoteSystemSessionJoinResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RemoteSystemSessionJoinResult {} unsafe impl ::core::marker::Sync for RemoteSystemSessionJoinResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RemoteSystemSessionMessageChannel(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RemoteSystemSessionMessageChannel, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RemoteSystemSessionMessageChannel { pub fn Session(&self) -> ::windows_core::Result { let this = self; @@ -2491,12 +1835,12 @@ impl RemoteSystemSessionMessageChannel { pub fn SendValueSetToParticipantsAsync(&self, messagedata: P0, participants: P1) -> ::windows_core::Result> where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam>, + P1: ::windows_core::IntoParam>, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SendValueSetToParticipantsAsync)(::windows_core::Interface::as_raw(this), messagedata.into_param().abi(), participants.into_param().abi(), &mut result__).from_abi(result__) } } pub fn ValueSetReceived(&self, handler: P0) -> ::windows_core::Result @@ -2542,19 +1886,17 @@ impl ::windows_core::RuntimeType for RemoteSystemSessionMessageChannel { } unsafe impl ::windows_core::Interface for RemoteSystemSessionMessageChannel { type Vtable = IRemoteSystemSessionMessageChannel_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RemoteSystemSessionMessageChannel { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RemoteSystemSessionMessageChannel { const NAME: &'static str = "Windows.System.RemoteSystems.RemoteSystemSessionMessageChannel"; } -::windows_core::imp::interface_hierarchy!(RemoteSystemSessionMessageChannel, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RemoteSystemSessionMessageChannel {} unsafe impl ::core::marker::Sync for RemoteSystemSessionMessageChannel {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RemoteSystemSessionOptions(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RemoteSystemSessionOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RemoteSystemSessionOptions { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2580,19 +1922,17 @@ impl ::windows_core::RuntimeType for RemoteSystemSessionOptions { } unsafe impl ::windows_core::Interface for RemoteSystemSessionOptions { type Vtable = IRemoteSystemSessionOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RemoteSystemSessionOptions { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RemoteSystemSessionOptions { const NAME: &'static str = "Windows.System.RemoteSystems.RemoteSystemSessionOptions"; } -::windows_core::imp::interface_hierarchy!(RemoteSystemSessionOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RemoteSystemSessionOptions {} unsafe impl ::core::marker::Sync for RemoteSystemSessionOptions {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RemoteSystemSessionParticipant(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RemoteSystemSessionParticipant, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RemoteSystemSessionParticipant { pub fn RemoteSystem(&self) -> ::windows_core::Result { let this = self; @@ -2616,19 +1956,17 @@ impl ::windows_core::RuntimeType for RemoteSystemSessionParticipant { } unsafe impl ::windows_core::Interface for RemoteSystemSessionParticipant { type Vtable = IRemoteSystemSessionParticipant_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RemoteSystemSessionParticipant { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RemoteSystemSessionParticipant { const NAME: &'static str = "Windows.System.RemoteSystems.RemoteSystemSessionParticipant"; } -::windows_core::imp::interface_hierarchy!(RemoteSystemSessionParticipant, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RemoteSystemSessionParticipant {} unsafe impl ::core::marker::Sync for RemoteSystemSessionParticipant {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RemoteSystemSessionParticipantAddedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RemoteSystemSessionParticipantAddedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RemoteSystemSessionParticipantAddedEventArgs { pub fn Participant(&self) -> ::windows_core::Result { let this = self; @@ -2643,19 +1981,17 @@ impl ::windows_core::RuntimeType for RemoteSystemSessionParticipantAddedEventArg } unsafe impl ::windows_core::Interface for RemoteSystemSessionParticipantAddedEventArgs { type Vtable = IRemoteSystemSessionParticipantAddedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RemoteSystemSessionParticipantAddedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RemoteSystemSessionParticipantAddedEventArgs { const NAME: &'static str = "Windows.System.RemoteSystems.RemoteSystemSessionParticipantAddedEventArgs"; } -::windows_core::imp::interface_hierarchy!(RemoteSystemSessionParticipantAddedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RemoteSystemSessionParticipantAddedEventArgs {} unsafe impl ::core::marker::Sync for RemoteSystemSessionParticipantAddedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RemoteSystemSessionParticipantRemovedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RemoteSystemSessionParticipantRemovedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RemoteSystemSessionParticipantRemovedEventArgs { pub fn Participant(&self) -> ::windows_core::Result { let this = self; @@ -2670,19 +2006,17 @@ impl ::windows_core::RuntimeType for RemoteSystemSessionParticipantRemovedEventA } unsafe impl ::windows_core::Interface for RemoteSystemSessionParticipantRemovedEventArgs { type Vtable = IRemoteSystemSessionParticipantRemovedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RemoteSystemSessionParticipantRemovedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RemoteSystemSessionParticipantRemovedEventArgs { const NAME: &'static str = "Windows.System.RemoteSystems.RemoteSystemSessionParticipantRemovedEventArgs"; } -::windows_core::imp::interface_hierarchy!(RemoteSystemSessionParticipantRemovedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RemoteSystemSessionParticipantRemovedEventArgs {} unsafe impl ::core::marker::Sync for RemoteSystemSessionParticipantRemovedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RemoteSystemSessionParticipantWatcher(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RemoteSystemSessionParticipantWatcher, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RemoteSystemSessionParticipantWatcher { pub fn Start(&self) -> ::windows_core::Result<()> { let this = self; @@ -2747,19 +2081,17 @@ impl ::windows_core::RuntimeType for RemoteSystemSessionParticipantWatcher { } unsafe impl ::windows_core::Interface for RemoteSystemSessionParticipantWatcher { type Vtable = IRemoteSystemSessionParticipantWatcher_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RemoteSystemSessionParticipantWatcher { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RemoteSystemSessionParticipantWatcher { const NAME: &'static str = "Windows.System.RemoteSystems.RemoteSystemSessionParticipantWatcher"; } -::windows_core::imp::interface_hierarchy!(RemoteSystemSessionParticipantWatcher, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RemoteSystemSessionParticipantWatcher {} unsafe impl ::core::marker::Sync for RemoteSystemSessionParticipantWatcher {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RemoteSystemSessionRemovedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RemoteSystemSessionRemovedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RemoteSystemSessionRemovedEventArgs { pub fn SessionInfo(&self) -> ::windows_core::Result { let this = self; @@ -2774,19 +2106,17 @@ impl ::windows_core::RuntimeType for RemoteSystemSessionRemovedEventArgs { } unsafe impl ::windows_core::Interface for RemoteSystemSessionRemovedEventArgs { type Vtable = IRemoteSystemSessionRemovedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RemoteSystemSessionRemovedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RemoteSystemSessionRemovedEventArgs { const NAME: &'static str = "Windows.System.RemoteSystems.RemoteSystemSessionRemovedEventArgs"; } -::windows_core::imp::interface_hierarchy!(RemoteSystemSessionRemovedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RemoteSystemSessionRemovedEventArgs {} unsafe impl ::core::marker::Sync for RemoteSystemSessionRemovedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RemoteSystemSessionUpdatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RemoteSystemSessionUpdatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RemoteSystemSessionUpdatedEventArgs { pub fn SessionInfo(&self) -> ::windows_core::Result { let this = self; @@ -2801,19 +2131,17 @@ impl ::windows_core::RuntimeType for RemoteSystemSessionUpdatedEventArgs { } unsafe impl ::windows_core::Interface for RemoteSystemSessionUpdatedEventArgs { type Vtable = IRemoteSystemSessionUpdatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RemoteSystemSessionUpdatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RemoteSystemSessionUpdatedEventArgs { const NAME: &'static str = "Windows.System.RemoteSystems.RemoteSystemSessionUpdatedEventArgs"; } -::windows_core::imp::interface_hierarchy!(RemoteSystemSessionUpdatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RemoteSystemSessionUpdatedEventArgs {} unsafe impl ::core::marker::Sync for RemoteSystemSessionUpdatedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RemoteSystemSessionValueSetReceivedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RemoteSystemSessionValueSetReceivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RemoteSystemSessionValueSetReceivedEventArgs { pub fn Sender(&self) -> ::windows_core::Result { let this = self; @@ -2837,19 +2165,17 @@ impl ::windows_core::RuntimeType for RemoteSystemSessionValueSetReceivedEventArg } unsafe impl ::windows_core::Interface for RemoteSystemSessionValueSetReceivedEventArgs { type Vtable = IRemoteSystemSessionValueSetReceivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RemoteSystemSessionValueSetReceivedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RemoteSystemSessionValueSetReceivedEventArgs { const NAME: &'static str = "Windows.System.RemoteSystems.RemoteSystemSessionValueSetReceivedEventArgs"; } -::windows_core::imp::interface_hierarchy!(RemoteSystemSessionValueSetReceivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RemoteSystemSessionValueSetReceivedEventArgs {} unsafe impl ::core::marker::Sync for RemoteSystemSessionValueSetReceivedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RemoteSystemSessionWatcher(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RemoteSystemSessionWatcher, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RemoteSystemSessionWatcher { pub fn Start(&self) -> ::windows_core::Result<()> { let this = self; @@ -2914,19 +2240,18 @@ impl ::windows_core::RuntimeType for RemoteSystemSessionWatcher { } unsafe impl ::windows_core::Interface for RemoteSystemSessionWatcher { type Vtable = IRemoteSystemSessionWatcher_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RemoteSystemSessionWatcher { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RemoteSystemSessionWatcher { const NAME: &'static str = "Windows.System.RemoteSystems.RemoteSystemSessionWatcher"; } -::windows_core::imp::interface_hierarchy!(RemoteSystemSessionWatcher, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RemoteSystemSessionWatcher {} unsafe impl ::core::marker::Sync for RemoteSystemSessionWatcher {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RemoteSystemStatusTypeFilter(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RemoteSystemStatusTypeFilter, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(RemoteSystemStatusTypeFilter, IRemoteSystemFilter); impl RemoteSystemStatusTypeFilter { pub fn RemoteSystemStatusType(&self) -> ::windows_core::Result { let this = self; @@ -2952,20 +2277,17 @@ impl ::windows_core::RuntimeType for RemoteSystemStatusTypeFilter { } unsafe impl ::windows_core::Interface for RemoteSystemStatusTypeFilter { type Vtable = IRemoteSystemStatusTypeFilter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RemoteSystemStatusTypeFilter { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RemoteSystemStatusTypeFilter { const NAME: &'static str = "Windows.System.RemoteSystems.RemoteSystemStatusTypeFilter"; } -::windows_core::imp::interface_hierarchy!(RemoteSystemStatusTypeFilter, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for RemoteSystemStatusTypeFilter {} unsafe impl ::core::marker::Send for RemoteSystemStatusTypeFilter {} unsafe impl ::core::marker::Sync for RemoteSystemStatusTypeFilter {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RemoteSystemUpdatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RemoteSystemUpdatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RemoteSystemUpdatedEventArgs { pub fn RemoteSystem(&self) -> ::windows_core::Result { let this = self; @@ -2980,19 +2302,17 @@ impl ::windows_core::RuntimeType for RemoteSystemUpdatedEventArgs { } unsafe impl ::windows_core::Interface for RemoteSystemUpdatedEventArgs { type Vtable = IRemoteSystemUpdatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RemoteSystemUpdatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RemoteSystemUpdatedEventArgs { const NAME: &'static str = "Windows.System.RemoteSystems.RemoteSystemUpdatedEventArgs"; } -::windows_core::imp::interface_hierarchy!(RemoteSystemUpdatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RemoteSystemUpdatedEventArgs {} unsafe impl ::core::marker::Sync for RemoteSystemUpdatedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RemoteSystemWatcher(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RemoteSystemWatcher, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RemoteSystemWatcher { pub fn Start(&self) -> ::windows_core::Result<()> { let this = self; @@ -3048,32 +2368,32 @@ impl RemoteSystemWatcher { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveEnumerationCompleted(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveEnumerationCompleted)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn ErrorOccurred(&self, handler: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveErrorOccurred(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveErrorOccurred)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3085,19 +2405,17 @@ impl ::windows_core::RuntimeType for RemoteSystemWatcher { } unsafe impl ::windows_core::Interface for RemoteSystemWatcher { type Vtable = IRemoteSystemWatcher_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RemoteSystemWatcher { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RemoteSystemWatcher { const NAME: &'static str = "Windows.System.RemoteSystems.RemoteSystemWatcher"; } -::windows_core::imp::interface_hierarchy!(RemoteSystemWatcher, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RemoteSystemWatcher {} unsafe impl ::core::marker::Sync for RemoteSystemWatcher {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RemoteSystemWatcherErrorOccurredEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RemoteSystemWatcherErrorOccurredEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RemoteSystemWatcherErrorOccurredEventArgs { pub fn Error(&self) -> ::windows_core::Result { let this = self; @@ -3112,19 +2430,18 @@ impl ::windows_core::RuntimeType for RemoteSystemWatcherErrorOccurredEventArgs { } unsafe impl ::windows_core::Interface for RemoteSystemWatcherErrorOccurredEventArgs { type Vtable = IRemoteSystemWatcherErrorOccurredEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RemoteSystemWatcherErrorOccurredEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RemoteSystemWatcherErrorOccurredEventArgs { const NAME: &'static str = "Windows.System.RemoteSystems.RemoteSystemWatcherErrorOccurredEventArgs"; } -::windows_core::imp::interface_hierarchy!(RemoteSystemWatcherErrorOccurredEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RemoteSystemWatcherErrorOccurredEventArgs {} unsafe impl ::core::marker::Sync for RemoteSystemWatcherErrorOccurredEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RemoteSystemWebAccountFilter(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RemoteSystemWebAccountFilter, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(RemoteSystemWebAccountFilter, IRemoteSystemFilter); impl RemoteSystemWebAccountFilter { #[doc = "Required features: `\"Security_Credentials\"`"] #[cfg(feature = "Security_Credentials")] @@ -3157,15 +2474,11 @@ impl ::windows_core::RuntimeType for RemoteSystemWebAccountFilter { } unsafe impl ::windows_core::Interface for RemoteSystemWebAccountFilter { type Vtable = IRemoteSystemWebAccountFilter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RemoteSystemWebAccountFilter { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RemoteSystemWebAccountFilter { const NAME: &'static str = "Windows.System.RemoteSystems.RemoteSystemWebAccountFilter"; } -::windows_core::imp::interface_hierarchy!(RemoteSystemWebAccountFilter, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for RemoteSystemWebAccountFilter {} unsafe impl ::core::marker::Send for RemoteSystemWebAccountFilter {} unsafe impl ::core::marker::Sync for RemoteSystemWebAccountFilter {} #[repr(transparent)] 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 be21e5e4ca..114688ecbd 100644 --- a/crates/libs/windows/src/Windows/System/Threading/Core/mod.rs +++ b/crates/libs/windows/src/Windows/System/Threading/Core/mod.rs @@ -1,29 +1,11 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPreallocatedWorkItem(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPreallocatedWorkItem { - type Vtable = IPreallocatedWorkItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPreallocatedWorkItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb6daa9fc_bc5b_401a_a8b2_6e754d14daa6); -} +::windows_core::imp::com_interface!(IPreallocatedWorkItem, IPreallocatedWorkItem_Vtbl, 0xb6daa9fc_bc5b_401a_a8b2_6e754d14daa6); #[repr(C)] #[doc(hidden)] pub struct IPreallocatedWorkItem_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub RunAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPreallocatedWorkItemFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPreallocatedWorkItemFactory { - type Vtable = IPreallocatedWorkItemFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPreallocatedWorkItemFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe3d32b45_dfea_469b_82c5_f6e3cefdeafb); -} +::windows_core::imp::com_interface!(IPreallocatedWorkItemFactory, IPreallocatedWorkItemFactory_Vtbl, 0xe3d32b45_dfea_469b_82c5_f6e3cefdeafb); #[repr(C)] #[doc(hidden)] pub struct IPreallocatedWorkItemFactory_Vtbl { @@ -32,16 +14,7 @@ pub struct IPreallocatedWorkItemFactory_Vtbl { pub CreateWorkItemWithPriority: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, priority: super::WorkItemPriority, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateWorkItemWithPriorityAndOptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, priority: super::WorkItemPriority, options: super::WorkItemOptions, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISignalNotifier(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISignalNotifier { - type Vtable = ISignalNotifier_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISignalNotifier { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x14285e06_63a7_4713_b6d9_62f64b56fb8b); -} +::windows_core::imp::com_interface!(ISignalNotifier, ISignalNotifier_Vtbl, 0x14285e06_63a7_4713_b6d9_62f64b56fb8b); #[repr(C)] #[doc(hidden)] pub struct ISignalNotifier_Vtbl { @@ -49,16 +22,7 @@ pub struct ISignalNotifier_Vtbl { pub Enable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Terminate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISignalNotifierStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISignalNotifierStatics { - type Vtable = ISignalNotifierStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISignalNotifierStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1c4e4566_8400_46d3_a115_7d0c0dfc9f62); -} +::windows_core::imp::com_interface!(ISignalNotifierStatics, ISignalNotifierStatics_Vtbl, 0x1c4e4566_8400_46d3_a115_7d0c0dfc9f62); #[repr(C)] #[doc(hidden)] pub struct ISignalNotifierStatics_Vtbl { @@ -71,6 +35,7 @@ pub struct ISignalNotifierStatics_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PreallocatedWorkItem(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PreallocatedWorkItem, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PreallocatedWorkItem { pub fn RunAsync(&self) -> ::windows_core::Result { let this = self; @@ -117,19 +82,17 @@ impl ::windows_core::RuntimeType for PreallocatedWorkItem { } unsafe impl ::windows_core::Interface for PreallocatedWorkItem { type Vtable = IPreallocatedWorkItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PreallocatedWorkItem { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PreallocatedWorkItem { const NAME: &'static str = "Windows.System.Threading.Core.PreallocatedWorkItem"; } -::windows_core::imp::interface_hierarchy!(PreallocatedWorkItem, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PreallocatedWorkItem {} unsafe impl ::core::marker::Sync for PreallocatedWorkItem {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SignalNotifier(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SignalNotifier, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SignalNotifier { pub fn Enable(&self) -> ::windows_core::Result<()> { let this = self; @@ -186,19 +149,14 @@ impl ::windows_core::RuntimeType for SignalNotifier { } unsafe impl ::windows_core::Interface for SignalNotifier { type Vtable = ISignalNotifier_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SignalNotifier { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SignalNotifier { const NAME: &'static str = "Windows.System.Threading.Core.SignalNotifier"; } -::windows_core::imp::interface_hierarchy!(SignalNotifier, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SignalNotifier {} unsafe impl ::core::marker::Sync for SignalNotifier {} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct SignalHandler(pub ::windows_core::IUnknown); +::windows_core::imp::com_interface!(SignalHandler, SignalHandler_Vtbl, 0x923c402e_4721_440e_9dda_55b6f2e07710); impl SignalHandler { pub fn new, bool) -> ::windows_core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = SignalHandlerBox:: { vtable: &SignalHandlerBox::::VTABLE, count: ::windows_core::imp::RefCount::new(1), invoke }; @@ -228,7 +186,7 @@ impl, bool) -> ::windows_core:: if iid.is_null() || interface.is_null() { return ::windows_core::HRESULT(-2147467261); } - *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; + *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::Interface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::Interface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; if (*interface).is_null() { ::windows_core::HRESULT(-2147467262) } else { @@ -253,12 +211,6 @@ impl, bool) -> ::windows_core:: ((*this).invoke)(::windows_core::from_raw_borrowed(&signalnotifier), timedout).into() } } -unsafe impl ::windows_core::Interface for SignalHandler { - type Vtable = SignalHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SignalHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x923c402e_4721_440e_9dda_55b6f2e07710); -} impl ::windows_core::RuntimeType for SignalHandler { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } diff --git a/crates/libs/windows/src/Windows/System/Threading/mod.rs b/crates/libs/windows/src/Windows/System/Threading/mod.rs index 2704483969..6bbac61901 100644 --- a/crates/libs/windows/src/Windows/System/Threading/mod.rs +++ b/crates/libs/windows/src/Windows/System/Threading/mod.rs @@ -1,16 +1,7 @@ #[cfg(feature = "System_Threading_Core")] #[doc = "Required features: `\"System_Threading_Core\"`"] pub mod Core; -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IThreadPoolStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IThreadPoolStatics { - type Vtable = IThreadPoolStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IThreadPoolStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb6bf67dd_84bd_44f8_ac1c_93ebcb9dba91); -} +::windows_core::imp::com_interface!(IThreadPoolStatics, IThreadPoolStatics_Vtbl, 0xb6bf67dd_84bd_44f8_ac1c_93ebcb9dba91); #[repr(C)] #[doc(hidden)] pub struct IThreadPoolStatics_Vtbl { @@ -19,16 +10,7 @@ pub struct IThreadPoolStatics_Vtbl { pub RunWithPriorityAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, priority: WorkItemPriority, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RunWithPriorityAndOptionsAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, priority: WorkItemPriority, options: WorkItemOptions, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IThreadPoolTimer(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IThreadPoolTimer { - type Vtable = IThreadPoolTimer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IThreadPoolTimer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x594ebe78_55ea_4a88_a50d_3402ae1f9cf2); -} +::windows_core::imp::com_interface!(IThreadPoolTimer, IThreadPoolTimer_Vtbl, 0x594ebe78_55ea_4a88_a50d_3402ae1f9cf2); #[repr(C)] #[doc(hidden)] pub struct IThreadPoolTimer_Vtbl { @@ -37,16 +19,7 @@ pub struct IThreadPoolTimer_Vtbl { pub Delay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::TimeSpan) -> ::windows_core::HRESULT, pub Cancel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IThreadPoolTimerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IThreadPoolTimerStatics { - type Vtable = IThreadPoolTimerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IThreadPoolTimerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1a8a9d02_e482_461b_b8c7_8efad1cce590); -} +::windows_core::imp::com_interface!(IThreadPoolTimerStatics, IThreadPoolTimerStatics_Vtbl, 0x1a8a9d02_e482_461b_b8c7_8efad1cce590); #[repr(C)] #[doc(hidden)] pub struct IThreadPoolTimerStatics_Vtbl { @@ -97,6 +70,7 @@ impl ::windows_core::RuntimeName for ThreadPool { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ThreadPoolTimer(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ThreadPoolTimer, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ThreadPoolTimer { pub fn Period(&self) -> ::windows_core::Result { let this = self; @@ -165,14 +139,11 @@ impl ::windows_core::RuntimeType for ThreadPoolTimer { } unsafe impl ::windows_core::Interface for ThreadPoolTimer { type Vtable = IThreadPoolTimer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ThreadPoolTimer { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ThreadPoolTimer { const NAME: &'static str = "Windows.System.Threading.ThreadPoolTimer"; } -::windows_core::imp::interface_hierarchy!(ThreadPoolTimer, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ThreadPoolTimer {} unsafe impl ::core::marker::Sync for ThreadPoolTimer {} #[repr(transparent)] @@ -245,9 +216,7 @@ impl ::core::fmt::Debug for WorkItemPriority { impl ::windows_core::RuntimeType for WorkItemPriority { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::from_slice(b"enum(Windows.System.Threading.WorkItemPriority;i4)"); } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct TimerDestroyedHandler(pub ::windows_core::IUnknown); +::windows_core::imp::com_interface!(TimerDestroyedHandler, TimerDestroyedHandler_Vtbl, 0x34ed19fa_8384_4eb9_8209_fb5094eeec35); impl TimerDestroyedHandler { pub fn new) -> ::windows_core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = TimerDestroyedHandlerBox:: { vtable: &TimerDestroyedHandlerBox::::VTABLE, count: ::windows_core::imp::RefCount::new(1), invoke }; @@ -277,7 +246,7 @@ impl) -> ::windows_core::Resul if iid.is_null() || interface.is_null() { return ::windows_core::HRESULT(-2147467261); } - *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; + *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::Interface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::Interface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; if (*interface).is_null() { ::windows_core::HRESULT(-2147467262) } else { @@ -302,12 +271,6 @@ impl) -> ::windows_core::Resul ((*this).invoke)(::windows_core::from_raw_borrowed(&timer)).into() } } -unsafe impl ::windows_core::Interface for TimerDestroyedHandler { - type Vtable = TimerDestroyedHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TimerDestroyedHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x34ed19fa_8384_4eb9_8209_fb5094eeec35); -} impl ::windows_core::RuntimeType for TimerDestroyedHandler { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } @@ -317,9 +280,7 @@ pub struct TimerDestroyedHandler_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Invoke: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, timer: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct TimerElapsedHandler(pub ::windows_core::IUnknown); +::windows_core::imp::com_interface!(TimerElapsedHandler, TimerElapsedHandler_Vtbl, 0xfaaea667_fbeb_49cb_adb2_71184c556e43); impl TimerElapsedHandler { pub fn new) -> ::windows_core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = TimerElapsedHandlerBox:: { vtable: &TimerElapsedHandlerBox::::VTABLE, count: ::windows_core::imp::RefCount::new(1), invoke }; @@ -349,7 +310,7 @@ impl) -> ::windows_core::Resul if iid.is_null() || interface.is_null() { return ::windows_core::HRESULT(-2147467261); } - *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; + *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::Interface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::Interface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; if (*interface).is_null() { ::windows_core::HRESULT(-2147467262) } else { @@ -374,12 +335,6 @@ impl) -> ::windows_core::Resul ((*this).invoke)(::windows_core::from_raw_borrowed(&timer)).into() } } -unsafe impl ::windows_core::Interface for TimerElapsedHandler { - type Vtable = TimerElapsedHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TimerElapsedHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfaaea667_fbeb_49cb_adb2_71184c556e43); -} impl ::windows_core::RuntimeType for TimerElapsedHandler { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } @@ -389,9 +344,7 @@ pub struct TimerElapsedHandler_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Invoke: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, timer: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct WorkItemHandler(pub ::windows_core::IUnknown); +::windows_core::imp::com_interface!(WorkItemHandler, WorkItemHandler_Vtbl, 0x1d1a8b8b_fa66_414f_9cbd_b65fc99d17fa); impl WorkItemHandler { pub fn new) -> ::windows_core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = WorkItemHandlerBox:: { vtable: &WorkItemHandlerBox::::VTABLE, count: ::windows_core::imp::RefCount::new(1), invoke }; @@ -399,10 +352,10 @@ impl WorkItemHandler { } pub fn Invoke(&self, operation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).Invoke)(::windows_core::Interface::as_raw(this), operation.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).Invoke)(::windows_core::Interface::as_raw(this), operation.into_param().abi()).ok() } } } #[repr(C)] @@ -421,7 +374,7 @@ impl) - if iid.is_null() || interface.is_null() { return ::windows_core::HRESULT(-2147467261); } - *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; + *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::Interface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::Interface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; if (*interface).is_null() { ::windows_core::HRESULT(-2147467262) } else { @@ -446,12 +399,6 @@ impl) - ((*this).invoke)(::windows_core::from_raw_borrowed(&operation)).into() } } -unsafe impl ::windows_core::Interface for WorkItemHandler { - type Vtable = WorkItemHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WorkItemHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1d1a8b8b_fa66_414f_9cbd_b65fc99d17fa); -} impl ::windows_core::RuntimeType for WorkItemHandler { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } diff --git a/crates/libs/windows/src/Windows/System/Update/mod.rs b/crates/libs/windows/src/Windows/System/Update/mod.rs index 44e5c4c44c..c5c26b5b3d 100644 --- a/crates/libs/windows/src/Windows/System/Update/mod.rs +++ b/crates/libs/windows/src/Windows/System/Update/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISystemUpdateItem(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISystemUpdateItem { - type Vtable = ISystemUpdateItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISystemUpdateItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x779740eb_5624_519e_a8e2_09e9173b3fb7); -} +::windows_core::imp::com_interface!(ISystemUpdateItem, ISystemUpdateItem_Vtbl, 0x779740eb_5624_519e_a8e2_09e9173b3fb7); #[repr(C)] #[doc(hidden)] pub struct ISystemUpdateItem_Vtbl { @@ -21,16 +12,7 @@ pub struct ISystemUpdateItem_Vtbl { pub InstallProgress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows_core::HRESULT, pub ExtendedError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISystemUpdateLastErrorInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISystemUpdateLastErrorInfo { - type Vtable = ISystemUpdateLastErrorInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISystemUpdateLastErrorInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7ee887f7_8a44_5b6e_bd07_7aece4116ea9); -} +::windows_core::imp::com_interface!(ISystemUpdateLastErrorInfo, ISystemUpdateLastErrorInfo_Vtbl, 0x7ee887f7_8a44_5b6e_bd07_7aece4116ea9); #[repr(C)] #[doc(hidden)] pub struct ISystemUpdateLastErrorInfo_Vtbl { @@ -39,16 +21,7 @@ pub struct ISystemUpdateLastErrorInfo_Vtbl { pub ExtendedError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, pub IsInteractive: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISystemUpdateManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISystemUpdateManagerStatics { - type Vtable = ISystemUpdateManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISystemUpdateManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb2d3fcef_2971_51be_b41a_8bd703bb701a); -} +::windows_core::imp::com_interface!(ISystemUpdateManagerStatics, ISystemUpdateManagerStatics_Vtbl, 0xb2d3fcef_2971_51be_b41a_8bd703bb701a); #[repr(C)] #[doc(hidden)] pub struct ISystemUpdateManagerStatics_Vtbl { @@ -87,6 +60,7 @@ pub struct ISystemUpdateManagerStatics_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SystemUpdateItem(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SystemUpdateItem, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SystemUpdateItem { pub fn State(&self) -> ::windows_core::Result { let this = self; @@ -150,19 +124,17 @@ impl ::windows_core::RuntimeType for SystemUpdateItem { } unsafe impl ::windows_core::Interface for SystemUpdateItem { type Vtable = ISystemUpdateItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SystemUpdateItem { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SystemUpdateItem { const NAME: &'static str = "Windows.System.Update.SystemUpdateItem"; } -::windows_core::imp::interface_hierarchy!(SystemUpdateItem, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SystemUpdateItem {} unsafe impl ::core::marker::Sync for SystemUpdateItem {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SystemUpdateLastErrorInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SystemUpdateLastErrorInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SystemUpdateLastErrorInfo { pub fn State(&self) -> ::windows_core::Result { let this = self; @@ -191,14 +163,11 @@ impl ::windows_core::RuntimeType for SystemUpdateLastErrorInfo { } unsafe impl ::windows_core::Interface for SystemUpdateLastErrorInfo { type Vtable = ISystemUpdateLastErrorInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SystemUpdateLastErrorInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SystemUpdateLastErrorInfo { const NAME: &'static str = "Windows.System.Update.SystemUpdateLastErrorInfo"; } -::windows_core::imp::interface_hierarchy!(SystemUpdateLastErrorInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SystemUpdateLastErrorInfo {} unsafe impl ::core::marker::Sync for SystemUpdateLastErrorInfo {} pub struct SystemUpdateManager; diff --git a/crates/libs/windows/src/Windows/System/UserProfile/mod.rs b/crates/libs/windows/src/Windows/System/UserProfile/mod.rs index 5a084314d6..64a0543abf 100644 --- a/crates/libs/windows/src/Windows/System/UserProfile/mod.rs +++ b/crates/libs/windows/src/Windows/System/UserProfile/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAdvertisingManagerForUser(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAdvertisingManagerForUser { - type Vtable = IAdvertisingManagerForUser_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAdvertisingManagerForUser { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x928bf3d0_cf7c_4ab0_a7dc_6dc5bcd44252); -} +::windows_core::imp::com_interface!(IAdvertisingManagerForUser, IAdvertisingManagerForUser_Vtbl, 0x928bf3d0_cf7c_4ab0_a7dc_6dc5bcd44252); #[repr(C)] #[doc(hidden)] pub struct IAdvertisingManagerForUser_Vtbl { @@ -15,48 +6,21 @@ pub struct IAdvertisingManagerForUser_Vtbl { pub AdvertisingId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub User: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAdvertisingManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAdvertisingManagerStatics { - type Vtable = IAdvertisingManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAdvertisingManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xadd3468c_a273_48cb_b346_3544522d5581); -} +::windows_core::imp::com_interface!(IAdvertisingManagerStatics, IAdvertisingManagerStatics_Vtbl, 0xadd3468c_a273_48cb_b346_3544522d5581); #[repr(C)] #[doc(hidden)] pub struct IAdvertisingManagerStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub AdvertisingId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAdvertisingManagerStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAdvertisingManagerStatics2 { - type Vtable = IAdvertisingManagerStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAdvertisingManagerStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdd0947af_1a6d_46b0_95bc_f3f9d6beb9fb); -} +::windows_core::imp::com_interface!(IAdvertisingManagerStatics2, IAdvertisingManagerStatics2_Vtbl, 0xdd0947af_1a6d_46b0_95bc_f3f9d6beb9fb); #[repr(C)] #[doc(hidden)] pub struct IAdvertisingManagerStatics2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetForUser: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, user: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAssignedAccessSettings(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAssignedAccessSettings { - type Vtable = IAssignedAccessSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAssignedAccessSettings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1bc57f1c_e971_5757_b8e0_512f8b8c46d2); -} +::windows_core::imp::com_interface!(IAssignedAccessSettings, IAssignedAccessSettings_Vtbl, 0x1bc57f1c_e971_5757_b8e0_512f8b8c46d2); #[repr(C)] #[doc(hidden)] pub struct IAssignedAccessSettings_Vtbl { @@ -65,16 +29,7 @@ pub struct IAssignedAccessSettings_Vtbl { pub IsSingleAppKioskMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub User: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAssignedAccessSettingsStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAssignedAccessSettingsStatics { - type Vtable = IAssignedAccessSettingsStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAssignedAccessSettingsStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x34a81d0d_8a29_5ef3_a7be_618e6ac3bd01); -} +::windows_core::imp::com_interface!(IAssignedAccessSettingsStatics, IAssignedAccessSettingsStatics_Vtbl, 0x34a81d0d_8a29_5ef3_a7be_618e6ac3bd01); #[repr(C)] #[doc(hidden)] pub struct IAssignedAccessSettingsStatics_Vtbl { @@ -82,16 +37,7 @@ pub struct IAssignedAccessSettingsStatics_Vtbl { pub GetDefault: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetForUser: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, user: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDiagnosticsSettings(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDiagnosticsSettings { - type Vtable = IDiagnosticsSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDiagnosticsSettings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe5e9eccd_2711_44e0_973c_491d78048d24); -} +::windows_core::imp::com_interface!(IDiagnosticsSettings, IDiagnosticsSettings_Vtbl, 0xe5e9eccd_2711_44e0_973c_491d78048d24); #[repr(C)] #[doc(hidden)] pub struct IDiagnosticsSettings_Vtbl { @@ -99,16 +45,7 @@ pub struct IDiagnosticsSettings_Vtbl { pub CanUseDiagnosticsToTailorExperiences: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub User: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDiagnosticsSettingsStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDiagnosticsSettingsStatics { - type Vtable = IDiagnosticsSettingsStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDiagnosticsSettingsStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x72d2e80f_5390_4793_990b_3ccc7d6ac9c8); -} +::windows_core::imp::com_interface!(IDiagnosticsSettingsStatics, IDiagnosticsSettingsStatics_Vtbl, 0x72d2e80f_5390_4793_990b_3ccc7d6ac9c8); #[repr(C)] #[doc(hidden)] pub struct IDiagnosticsSettingsStatics_Vtbl { @@ -116,47 +53,20 @@ pub struct IDiagnosticsSettingsStatics_Vtbl { pub GetDefault: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetForUser: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, user: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFirstSignInSettings(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFirstSignInSettings { - type Vtable = IFirstSignInSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFirstSignInSettings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3e945153_3a5e_452e_a601_f5baad2a4870); -} +::windows_core::imp::com_interface!(IFirstSignInSettings, IFirstSignInSettings_Vtbl, 0x3e945153_3a5e_452e_a601_f5baad2a4870); #[repr(C)] #[doc(hidden)] pub struct IFirstSignInSettings_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFirstSignInSettingsStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFirstSignInSettingsStatics { - type Vtable = IFirstSignInSettingsStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFirstSignInSettingsStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1ce18f0f_1c41_4ea0_b7a2_6f0c1c7e8438); -} +::windows_core::imp::com_interface!(IFirstSignInSettingsStatics, IFirstSignInSettingsStatics_Vtbl, 0x1ce18f0f_1c41_4ea0_b7a2_6f0c1c7e8438); #[repr(C)] #[doc(hidden)] pub struct IFirstSignInSettingsStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetDefault: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGlobalizationPreferencesForUser(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGlobalizationPreferencesForUser { - type Vtable = IGlobalizationPreferencesForUser_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGlobalizationPreferencesForUser { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x150f0795_4f6e_40ba_a010_e27d81bda7f5); -} +::windows_core::imp::com_interface!(IGlobalizationPreferencesForUser, IGlobalizationPreferencesForUser_Vtbl, 0x150f0795_4f6e_40ba_a010_e27d81bda7f5); #[repr(C)] #[doc(hidden)] pub struct IGlobalizationPreferencesForUser_Vtbl { @@ -184,16 +94,7 @@ pub struct IGlobalizationPreferencesForUser_Vtbl { #[cfg(not(feature = "Globalization"))] WeekStartsOn: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGlobalizationPreferencesStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGlobalizationPreferencesStatics { - type Vtable = IGlobalizationPreferencesStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGlobalizationPreferencesStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x01bf4326_ed37_4e96_b0e9_c1340d1ea158); -} +::windows_core::imp::com_interface!(IGlobalizationPreferencesStatics, IGlobalizationPreferencesStatics_Vtbl, 0x01bf4326_ed37_4e96_b0e9_c1340d1ea158); #[repr(C)] #[doc(hidden)] pub struct IGlobalizationPreferencesStatics_Vtbl { @@ -220,16 +121,7 @@ pub struct IGlobalizationPreferencesStatics_Vtbl { #[cfg(not(feature = "Globalization"))] WeekStartsOn: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGlobalizationPreferencesStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGlobalizationPreferencesStatics2 { - type Vtable = IGlobalizationPreferencesStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGlobalizationPreferencesStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfcce85f1_4300_4cd0_9cac_1a8e7b7e18f4); -} +::windows_core::imp::com_interface!(IGlobalizationPreferencesStatics2, IGlobalizationPreferencesStatics2_Vtbl, 0xfcce85f1_4300_4cd0_9cac_1a8e7b7e18f4); #[repr(C)] #[doc(hidden)] pub struct IGlobalizationPreferencesStatics2_Vtbl { @@ -240,32 +132,14 @@ pub struct IGlobalizationPreferencesStatics2_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] TrySetLanguages: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGlobalizationPreferencesStatics3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGlobalizationPreferencesStatics3 { - type Vtable = IGlobalizationPreferencesStatics3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGlobalizationPreferencesStatics3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1e059733_35f5_40d8_b9e8_aef3ef856fce); -} +::windows_core::imp::com_interface!(IGlobalizationPreferencesStatics3, IGlobalizationPreferencesStatics3_Vtbl, 0x1e059733_35f5_40d8_b9e8_aef3ef856fce); #[repr(C)] #[doc(hidden)] pub struct IGlobalizationPreferencesStatics3_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetForUser: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, user: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILockScreenImageFeedStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILockScreenImageFeedStatics { - type Vtable = ILockScreenImageFeedStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILockScreenImageFeedStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2c0d73f6_03a9_41a6_9b01_495251ff51d5); -} +::windows_core::imp::com_interface!(ILockScreenImageFeedStatics, ILockScreenImageFeedStatics_Vtbl, 0x2c0d73f6_03a9_41a6_9b01_495251ff51d5); #[repr(C)] #[doc(hidden)] pub struct ILockScreenImageFeedStatics_Vtbl { @@ -273,16 +147,7 @@ pub struct ILockScreenImageFeedStatics_Vtbl { pub RequestSetImageFeedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, syndicationfeeduri: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub TryRemoveImageFeed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILockScreenStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILockScreenStatics { - type Vtable = ILockScreenStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILockScreenStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3ee9d3ad_b607_40ae_b426_7631d9821269); -} +::windows_core::imp::com_interface!(ILockScreenStatics, ILockScreenStatics_Vtbl, 0x3ee9d3ad_b607_40ae_b426_7631d9821269); #[repr(C)] #[doc(hidden)] pub struct ILockScreenStatics_Vtbl { @@ -301,19 +166,13 @@ pub struct ILockScreenStatics_Vtbl { #[cfg(not(feature = "Storage_Streams"))] SetImageStreamAsync: usize, } -#[doc(hidden)] #[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserInformationStatics(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for IUserInformationStatics { - type Vtable = IUserInformationStatics_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for IUserInformationStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x77f3a910_48fa_489c_934e_2ae85ba8f772); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + IUserInformationStatics, + IUserInformationStatics_Vtbl, + 0x77f3a910_48fa_489c_934e_2ae85ba8f772 +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -380,16 +239,7 @@ pub struct IUserInformationStatics_Vtbl { #[cfg(not(feature = "deprecated"))] GetDomainNameAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserProfilePersonalizationSettings(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserProfilePersonalizationSettings { - type Vtable = IUserProfilePersonalizationSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserProfilePersonalizationSettings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8ceddab4_7998_46d5_8dd3_184f1c5f9ab9); -} +::windows_core::imp::com_interface!(IUserProfilePersonalizationSettings, IUserProfilePersonalizationSettings_Vtbl, 0x8ceddab4_7998_46d5_8dd3_184f1c5f9ab9); #[repr(C)] #[doc(hidden)] pub struct IUserProfilePersonalizationSettings_Vtbl { @@ -403,16 +253,7 @@ pub struct IUserProfilePersonalizationSettings_Vtbl { #[cfg(not(feature = "Storage"))] TrySetWallpaperImageAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserProfilePersonalizationSettingsStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserProfilePersonalizationSettingsStatics { - type Vtable = IUserProfilePersonalizationSettingsStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserProfilePersonalizationSettingsStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x91acb841_5037_454b_9883_bb772d08dd16); -} +::windows_core::imp::com_interface!(IUserProfilePersonalizationSettingsStatics, IUserProfilePersonalizationSettingsStatics_Vtbl, 0x91acb841_5037_454b_9883_bb772d08dd16); #[repr(C)] #[doc(hidden)] pub struct IUserProfilePersonalizationSettingsStatics_Vtbl { @@ -454,6 +295,7 @@ impl ::windows_core::RuntimeName for AdvertisingManager { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AdvertisingManagerForUser(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AdvertisingManagerForUser, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AdvertisingManagerForUser { pub fn AdvertisingId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -475,19 +317,17 @@ impl ::windows_core::RuntimeType for AdvertisingManagerForUser { } unsafe impl ::windows_core::Interface for AdvertisingManagerForUser { type Vtable = IAdvertisingManagerForUser_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AdvertisingManagerForUser { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AdvertisingManagerForUser { const NAME: &'static str = "Windows.System.UserProfile.AdvertisingManagerForUser"; } -::windows_core::imp::interface_hierarchy!(AdvertisingManagerForUser, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AdvertisingManagerForUser {} unsafe impl ::core::marker::Sync for AdvertisingManagerForUser {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AssignedAccessSettings(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AssignedAccessSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AssignedAccessSettings { pub fn IsEnabled(&self) -> ::windows_core::Result { let this = self; @@ -536,19 +376,17 @@ impl ::windows_core::RuntimeType for AssignedAccessSettings { } unsafe impl ::windows_core::Interface for AssignedAccessSettings { type Vtable = IAssignedAccessSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AssignedAccessSettings { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AssignedAccessSettings { const NAME: &'static str = "Windows.System.UserProfile.AssignedAccessSettings"; } -::windows_core::imp::interface_hierarchy!(AssignedAccessSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AssignedAccessSettings {} unsafe impl ::core::marker::Sync for AssignedAccessSettings {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DiagnosticsSettings(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DiagnosticsSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DiagnosticsSettings { pub fn CanUseDiagnosticsToTailorExperiences(&self) -> ::windows_core::Result { let this = self; @@ -590,19 +428,19 @@ impl ::windows_core::RuntimeType for DiagnosticsSettings { } unsafe impl ::windows_core::Interface for DiagnosticsSettings { type Vtable = IDiagnosticsSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DiagnosticsSettings { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DiagnosticsSettings { const NAME: &'static str = "Windows.System.UserProfile.DiagnosticsSettings"; } -::windows_core::imp::interface_hierarchy!(DiagnosticsSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DiagnosticsSettings {} unsafe impl ::core::marker::Sync for DiagnosticsSettings {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct FirstSignInSettings(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(FirstSignInSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(FirstSignInSettings, super::super::Foundation::Collections::IIterable::>, super::super::Foundation::Collections::IMapView::<::windows_core::HSTRING, ::windows_core::IInspectable>); impl FirstSignInSettings { pub fn GetDefault() -> ::windows_core::Result { Self::IFirstSignInSettingsStatics(|this| unsafe { @@ -613,7 +451,7 @@ impl FirstSignInSettings { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> ::windows_core::Result>> { - let this = &::windows_core::ComInterface::cast::>>(self)?; + let this = &::windows_core::Interface::cast::>>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -622,7 +460,7 @@ impl FirstSignInSettings { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Lookup(&self, key: &::windows_core::HSTRING) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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), ::core::mem::transmute_copy(key), &mut result__).from_abi(result__) @@ -631,7 +469,7 @@ impl FirstSignInSettings { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Size(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Size)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -640,7 +478,7 @@ impl FirstSignInSettings { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn HasKey(&self, key: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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), ::core::mem::transmute_copy(key), &mut result__).from_abi(result__) @@ -649,7 +487,7 @@ impl FirstSignInSettings { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Split(&self, first: &mut ::core::option::Option>, second: &mut ::core::option::Option>) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).Split)(::windows_core::Interface::as_raw(this), first as *mut _ as _, second as *mut _ as _).ok() } } #[doc(hidden)] @@ -663,9 +501,7 @@ impl ::windows_core::RuntimeType for FirstSignInSettings { } unsafe impl ::windows_core::Interface for FirstSignInSettings { type Vtable = IFirstSignInSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for FirstSignInSettings { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for FirstSignInSettings { const NAME: &'static str = "Windows.System.UserProfile.FirstSignInSettings"; @@ -686,11 +522,6 @@ impl ::core::iter::IntoIterator for &FirstSignInSettings { self.First().unwrap() } } -::windows_core::imp::interface_hierarchy!(FirstSignInSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto>> for FirstSignInSettings {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for FirstSignInSettings {} unsafe impl ::core::marker::Send for FirstSignInSettings {} unsafe impl ::core::marker::Sync for FirstSignInSettings {} pub struct GlobalizationPreferences; @@ -751,11 +582,11 @@ impl GlobalizationPreferences { #[cfg(feature = "Foundation_Collections")] pub fn TrySetLanguages(languagetags: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::IGlobalizationPreferencesStatics2(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).TrySetLanguages)(::windows_core::Interface::as_raw(this), languagetags.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).TrySetLanguages)(::windows_core::Interface::as_raw(this), languagetags.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn GetForUser(user: P0) -> ::windows_core::Result @@ -789,6 +620,7 @@ impl ::windows_core::RuntimeName for GlobalizationPreferences { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GlobalizationPreferencesForUser(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GlobalizationPreferencesForUser, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GlobalizationPreferencesForUser { pub fn User(&self) -> ::windows_core::Result { let this = self; @@ -855,14 +687,11 @@ impl ::windows_core::RuntimeType for GlobalizationPreferencesForUser { } unsafe impl ::windows_core::Interface for GlobalizationPreferencesForUser { type Vtable = IGlobalizationPreferencesForUser_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GlobalizationPreferencesForUser { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GlobalizationPreferencesForUser { const NAME: &'static str = "Windows.System.UserProfile.GlobalizationPreferencesForUser"; } -::windows_core::imp::interface_hierarchy!(GlobalizationPreferencesForUser, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for GlobalizationPreferencesForUser {} unsafe impl ::core::marker::Sync for GlobalizationPreferencesForUser {} pub struct LockScreen; @@ -900,22 +729,22 @@ impl LockScreen { #[cfg(feature = "Storage")] pub fn SetImageFileAsync(value: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::ILockScreenStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).SetImageFileAsync)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SetImageFileAsync)(::windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn SetImageStreamAsync(value: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::ILockScreenStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).SetImageStreamAsync)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SetImageStreamAsync)(::windows_core::Interface::as_raw(this), value.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -965,48 +794,48 @@ impl UserInformation { #[cfg(all(feature = "Storage", feature = "deprecated"))] pub fn SetAccountPictureAsync(image: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IUserInformationStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).SetAccountPictureAsync)(::windows_core::Interface::as_raw(this), image.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SetAccountPictureAsync)(::windows_core::Interface::as_raw(this), image.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Storage\"`, `\"deprecated\"`"] #[cfg(all(feature = "Storage", feature = "deprecated"))] pub fn SetAccountPicturesAsync(smallimage: P0, largeimage: P1, video: P2) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam, - P2: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, + P2: ::windows_core::IntoParam, { Self::IUserInformationStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).SetAccountPicturesAsync)(::windows_core::Interface::as_raw(this), smallimage.try_into_param()?.abi(), largeimage.try_into_param()?.abi(), video.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } #[doc = "Required features: `\"Storage_Streams\"`, `\"deprecated\"`"] #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] pub fn SetAccountPictureFromStreamAsync(image: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IUserInformationStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).SetAccountPictureFromStreamAsync)(::windows_core::Interface::as_raw(this), image.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SetAccountPictureFromStreamAsync)(::windows_core::Interface::as_raw(this), image.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Storage_Streams\"`, `\"deprecated\"`"] #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] pub fn SetAccountPicturesFromStreamsAsync(smallimage: P0, largeimage: P1, video: P2) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam, - P2: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, + P2: ::windows_core::IntoParam, { Self::IUserInformationStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).SetAccountPicturesFromStreamsAsync)(::windows_core::Interface::as_raw(this), smallimage.try_into_param()?.abi(), largeimage.try_into_param()?.abi(), video.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) }) } #[doc = "Required features: `\"deprecated\"`"] @@ -1087,6 +916,7 @@ impl ::windows_core::RuntimeName for UserInformation { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UserProfilePersonalizationSettings(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UserProfilePersonalizationSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UserProfilePersonalizationSettings { #[doc = "Required features: `\"Storage\"`"] #[cfg(feature = "Storage")] @@ -1135,14 +965,11 @@ impl ::windows_core::RuntimeType for UserProfilePersonalizationSettings { } unsafe impl ::windows_core::Interface for UserProfilePersonalizationSettings { type Vtable = IUserProfilePersonalizationSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UserProfilePersonalizationSettings { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UserProfilePersonalizationSettings { const NAME: &'static str = "Windows.System.UserProfile.UserProfilePersonalizationSettings"; } -::windows_core::imp::interface_hierarchy!(UserProfilePersonalizationSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UserProfilePersonalizationSettings {} unsafe impl ::core::marker::Sync for UserProfilePersonalizationSettings {} #[doc = "Required features: `\"deprecated\"`"] diff --git a/crates/libs/windows/src/Windows/System/impl.rs b/crates/libs/windows/src/Windows/System/impl.rs index c2d886385d..9e67974f30 100644 --- a/crates/libs/windows/src/Windows/System/impl.rs +++ b/crates/libs/windows/src/Windows/System/impl.rs @@ -34,6 +34,6 @@ impl ILauncherViewOptions_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/System/mod.rs b/crates/libs/windows/src/Windows/System/mod.rs index 2154eadd1c..db51c7bc2e 100644 --- a/crates/libs/windows/src/Windows/System/mod.rs +++ b/crates/libs/windows/src/Windows/System/mod.rs @@ -31,16 +31,7 @@ pub mod Update; #[cfg(feature = "System_UserProfile")] #[doc = "Required features: `\"System_UserProfile\"`"] pub mod UserProfile; -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppActivationResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppActivationResult { - type Vtable = IAppActivationResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppActivationResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6b528900_f46e_4eb0_aa6c_38af557cf9ed); -} +::windows_core::imp::com_interface!(IAppActivationResult, IAppActivationResult_Vtbl, 0x6b528900_f46e_4eb0_aa6c_38af557cf9ed); #[repr(C)] #[doc(hidden)] pub struct IAppActivationResult_Vtbl { @@ -48,16 +39,7 @@ pub struct IAppActivationResult_Vtbl { pub ExtendedError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, pub AppResourceGroupInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppDiagnosticInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppDiagnosticInfo { - type Vtable = IAppDiagnosticInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppDiagnosticInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe348a69a_8889_4ca3_be07_d5ffff5f0804); -} +::windows_core::imp::com_interface!(IAppDiagnosticInfo, IAppDiagnosticInfo_Vtbl, 0xe348a69a_8889_4ca3_be07_d5ffff5f0804); #[repr(C)] #[doc(hidden)] pub struct IAppDiagnosticInfo_Vtbl { @@ -67,16 +49,7 @@ pub struct IAppDiagnosticInfo_Vtbl { #[cfg(not(feature = "ApplicationModel"))] AppInfo: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppDiagnosticInfo2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppDiagnosticInfo2 { - type Vtable = IAppDiagnosticInfo2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppDiagnosticInfo2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdf46fbd7_191a_446c_9473_8fbc2374a354); -} +::windows_core::imp::com_interface!(IAppDiagnosticInfo2, IAppDiagnosticInfo2_Vtbl, 0xdf46fbd7_191a_446c_9473_8fbc2374a354); #[repr(C)] #[doc(hidden)] pub struct IAppDiagnosticInfo2_Vtbl { @@ -87,32 +60,14 @@ pub struct IAppDiagnosticInfo2_Vtbl { GetResourceGroups: usize, pub CreateResourceGroupWatcher: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppDiagnosticInfo3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppDiagnosticInfo3 { - type Vtable = IAppDiagnosticInfo3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppDiagnosticInfo3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc895c63d_dd61_4c65_babd_81a10b4f9815); -} +::windows_core::imp::com_interface!(IAppDiagnosticInfo3, IAppDiagnosticInfo3_Vtbl, 0xc895c63d_dd61_4c65_babd_81a10b4f9815); #[repr(C)] #[doc(hidden)] pub struct IAppDiagnosticInfo3_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub LaunchAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppDiagnosticInfoStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppDiagnosticInfoStatics { - type Vtable = IAppDiagnosticInfoStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppDiagnosticInfoStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xce6925bf_10ca_40c8_a9ca_c5c96501866e); -} +::windows_core::imp::com_interface!(IAppDiagnosticInfoStatics, IAppDiagnosticInfoStatics_Vtbl, 0xce6925bf_10ca_40c8_a9ca_c5c96501866e); #[repr(C)] #[doc(hidden)] pub struct IAppDiagnosticInfoStatics_Vtbl { @@ -122,16 +77,7 @@ pub struct IAppDiagnosticInfoStatics_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] RequestInfoAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppDiagnosticInfoStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppDiagnosticInfoStatics2 { - type Vtable = IAppDiagnosticInfoStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppDiagnosticInfoStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x05b24b86_1000_4c90_bb9f_7235071c50fe); -} +::windows_core::imp::com_interface!(IAppDiagnosticInfoStatics2, IAppDiagnosticInfoStatics2_Vtbl, 0x05b24b86_1000_4c90_bb9f_7235071c50fe); #[repr(C)] #[doc(hidden)] pub struct IAppDiagnosticInfoStatics2_Vtbl { @@ -151,16 +97,7 @@ pub struct IAppDiagnosticInfoStatics2_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] RequestInfoForAppUserModelId: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppDiagnosticInfoWatcher(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppDiagnosticInfoWatcher { - type Vtable = IAppDiagnosticInfoWatcher_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppDiagnosticInfoWatcher { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x75575070_01d3_489a_9325_52f9cc6ede0a); -} +::windows_core::imp::com_interface!(IAppDiagnosticInfoWatcher, IAppDiagnosticInfoWatcher_Vtbl, 0x75575070_01d3_489a_9325_52f9cc6ede0a); #[repr(C)] #[doc(hidden)] pub struct IAppDiagnosticInfoWatcher_Vtbl { @@ -177,48 +114,21 @@ pub struct IAppDiagnosticInfoWatcher_Vtbl { pub Start: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Stop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppDiagnosticInfoWatcherEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppDiagnosticInfoWatcherEventArgs { - type Vtable = IAppDiagnosticInfoWatcherEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppDiagnosticInfoWatcherEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7017c716_e1da_4c65_99df_046dff5be71a); -} +::windows_core::imp::com_interface!(IAppDiagnosticInfoWatcherEventArgs, IAppDiagnosticInfoWatcherEventArgs_Vtbl, 0x7017c716_e1da_4c65_99df_046dff5be71a); #[repr(C)] #[doc(hidden)] pub struct IAppDiagnosticInfoWatcherEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub AppDiagnosticInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppExecutionStateChangeResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppExecutionStateChangeResult { - type Vtable = IAppExecutionStateChangeResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppExecutionStateChangeResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6f039bf0_f91b_4df8_ae77_3033ccb69114); -} +::windows_core::imp::com_interface!(IAppExecutionStateChangeResult, IAppExecutionStateChangeResult_Vtbl, 0x6f039bf0_f91b_4df8_ae77_3033ccb69114); #[repr(C)] #[doc(hidden)] pub struct IAppExecutionStateChangeResult_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ExtendedError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppMemoryReport(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppMemoryReport { - type Vtable = IAppMemoryReport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppMemoryReport { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6d65339b_4d6f_45bc_9c5e_e49b3ff2758d); -} +::windows_core::imp::com_interface!(IAppMemoryReport, IAppMemoryReport_Vtbl, 0x6d65339b_4d6f_45bc_9c5e_e49b3ff2758d); #[repr(C)] #[doc(hidden)] pub struct IAppMemoryReport_Vtbl { @@ -228,32 +138,14 @@ pub struct IAppMemoryReport_Vtbl { pub TotalCommitUsage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u64) -> ::windows_core::HRESULT, pub TotalCommitLimit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u64) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppMemoryReport2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppMemoryReport2 { - type Vtable = IAppMemoryReport2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppMemoryReport2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5f7f3738_51b7_42dc_b7ed_79ba46d28857); -} +::windows_core::imp::com_interface!(IAppMemoryReport2, IAppMemoryReport2_Vtbl, 0x5f7f3738_51b7_42dc_b7ed_79ba46d28857); #[repr(C)] #[doc(hidden)] pub struct IAppMemoryReport2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ExpectedTotalCommitLimit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u64) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppMemoryUsageLimitChangingEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppMemoryUsageLimitChangingEventArgs { - type Vtable = IAppMemoryUsageLimitChangingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppMemoryUsageLimitChangingEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x79f86664_feca_4da5_9e40_2bc63efdc979); -} +::windows_core::imp::com_interface!(IAppMemoryUsageLimitChangingEventArgs, IAppMemoryUsageLimitChangingEventArgs_Vtbl, 0x79f86664_feca_4da5_9e40_2bc63efdc979); #[repr(C)] #[doc(hidden)] pub struct IAppMemoryUsageLimitChangingEventArgs_Vtbl { @@ -261,16 +153,7 @@ pub struct IAppMemoryUsageLimitChangingEventArgs_Vtbl { pub OldLimit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u64) -> ::windows_core::HRESULT, pub NewLimit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u64) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppResourceGroupBackgroundTaskReport(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppResourceGroupBackgroundTaskReport { - type Vtable = IAppResourceGroupBackgroundTaskReport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppResourceGroupBackgroundTaskReport { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2566e74e_b05d_40c2_9dc1_1a4f039ea120); -} +::windows_core::imp::com_interface!(IAppResourceGroupBackgroundTaskReport, IAppResourceGroupBackgroundTaskReport_Vtbl, 0x2566e74e_b05d_40c2_9dc1_1a4f039ea120); #[repr(C)] #[doc(hidden)] pub struct IAppResourceGroupBackgroundTaskReport_Vtbl { @@ -280,16 +163,7 @@ pub struct IAppResourceGroupBackgroundTaskReport_Vtbl { pub Trigger: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub EntryPoint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppResourceGroupInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppResourceGroupInfo { - type Vtable = IAppResourceGroupInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppResourceGroupInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb913f77a_e807_49f4_845e_7b8bdcfe8ee7); -} +::windows_core::imp::com_interface!(IAppResourceGroupInfo, IAppResourceGroupInfo_Vtbl, 0xb913f77a_e807_49f4_845e_7b8bdcfe8ee7); #[repr(C)] #[doc(hidden)] pub struct IAppResourceGroupInfo_Vtbl { @@ -307,16 +181,7 @@ pub struct IAppResourceGroupInfo_Vtbl { GetProcessDiagnosticInfos: usize, pub GetStateReport: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppResourceGroupInfo2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppResourceGroupInfo2 { - type Vtable = IAppResourceGroupInfo2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppResourceGroupInfo2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xee9b236d_d305_4d6b_92f7_6afdad72dedc); -} +::windows_core::imp::com_interface!(IAppResourceGroupInfo2, IAppResourceGroupInfo2_Vtbl, 0xee9b236d_d305_4d6b_92f7_6afdad72dedc); #[repr(C)] #[doc(hidden)] pub struct IAppResourceGroupInfo2_Vtbl { @@ -325,16 +190,7 @@ pub struct IAppResourceGroupInfo2_Vtbl { pub StartResumeAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub StartTerminateAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppResourceGroupInfoWatcher(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppResourceGroupInfoWatcher { - type Vtable = IAppResourceGroupInfoWatcher_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppResourceGroupInfoWatcher { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd9b0a0fd_6e5a_4c72_8b17_09fec4a212bd); -} +::windows_core::imp::com_interface!(IAppResourceGroupInfoWatcher, IAppResourceGroupInfoWatcher_Vtbl, 0xd9b0a0fd_6e5a_4c72_8b17_09fec4a212bd); #[repr(C)] #[doc(hidden)] pub struct IAppResourceGroupInfoWatcher_Vtbl { @@ -353,16 +209,7 @@ pub struct IAppResourceGroupInfoWatcher_Vtbl { pub Start: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Stop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppResourceGroupInfoWatcherEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppResourceGroupInfoWatcherEventArgs { - type Vtable = IAppResourceGroupInfoWatcherEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppResourceGroupInfoWatcherEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7a787637_6302_4d2f_bf89_1c12d0b2a6b9); -} +::windows_core::imp::com_interface!(IAppResourceGroupInfoWatcherEventArgs, IAppResourceGroupInfoWatcherEventArgs_Vtbl, 0x7a787637_6302_4d2f_bf89_1c12d0b2a6b9); #[repr(C)] #[doc(hidden)] pub struct IAppResourceGroupInfoWatcherEventArgs_Vtbl { @@ -373,16 +220,7 @@ pub struct IAppResourceGroupInfoWatcherEventArgs_Vtbl { AppDiagnosticInfos: usize, pub AppResourceGroupInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppResourceGroupInfoWatcherExecutionStateChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppResourceGroupInfoWatcherExecutionStateChangedEventArgs { - type Vtable = IAppResourceGroupInfoWatcherExecutionStateChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppResourceGroupInfoWatcherExecutionStateChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1bdbedd7_fee6_4fd4_98dd_e92a2cc299f3); -} +::windows_core::imp::com_interface!(IAppResourceGroupInfoWatcherExecutionStateChangedEventArgs, IAppResourceGroupInfoWatcherExecutionStateChangedEventArgs_Vtbl, 0x1bdbedd7_fee6_4fd4_98dd_e92a2cc299f3); #[repr(C)] #[doc(hidden)] pub struct IAppResourceGroupInfoWatcherExecutionStateChangedEventArgs_Vtbl { @@ -393,16 +231,7 @@ pub struct IAppResourceGroupInfoWatcherExecutionStateChangedEventArgs_Vtbl { AppDiagnosticInfos: usize, pub AppResourceGroupInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppResourceGroupMemoryReport(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppResourceGroupMemoryReport { - type Vtable = IAppResourceGroupMemoryReport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppResourceGroupMemoryReport { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2c8c06b1_7db1_4c51_a225_7fae2d49e431); -} +::windows_core::imp::com_interface!(IAppResourceGroupMemoryReport, IAppResourceGroupMemoryReport_Vtbl, 0x2c8c06b1_7db1_4c51_a225_7fae2d49e431); #[repr(C)] #[doc(hidden)] pub struct IAppResourceGroupMemoryReport_Vtbl { @@ -412,16 +241,7 @@ pub struct IAppResourceGroupMemoryReport_Vtbl { pub PrivateCommitUsage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u64) -> ::windows_core::HRESULT, pub TotalCommitUsage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u64) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppResourceGroupStateReport(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppResourceGroupStateReport { - type Vtable = IAppResourceGroupStateReport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppResourceGroupStateReport { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x52849f18_2f70_4236_ab40_d04db0c7b931); -} +::windows_core::imp::com_interface!(IAppResourceGroupStateReport, IAppResourceGroupStateReport_Vtbl, 0x52849f18_2f70_4236_ab40_d04db0c7b931); #[repr(C)] #[doc(hidden)] pub struct IAppResourceGroupStateReport_Vtbl { @@ -429,16 +249,7 @@ pub struct IAppResourceGroupStateReport_Vtbl { pub ExecutionState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut AppResourceGroupExecutionState) -> ::windows_core::HRESULT, pub EnergyQuotaState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut AppResourceGroupEnergyQuotaState) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppUriHandlerHost(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppUriHandlerHost { - type Vtable = IAppUriHandlerHost_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppUriHandlerHost { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5d50cac5_92d2_5409_b56f_7f73e10ea4c3); -} +::windows_core::imp::com_interface!(IAppUriHandlerHost, IAppUriHandlerHost_Vtbl, 0x5d50cac5_92d2_5409_b56f_7f73e10ea4c3); #[repr(C)] #[doc(hidden)] pub struct IAppUriHandlerHost_Vtbl { @@ -446,16 +257,7 @@ pub struct IAppUriHandlerHost_Vtbl { pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppUriHandlerHost2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppUriHandlerHost2 { - type Vtable = IAppUriHandlerHost2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppUriHandlerHost2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3a0bee95_29e4_51bf_8095_a3c068e3c72a); -} +::windows_core::imp::com_interface!(IAppUriHandlerHost2, IAppUriHandlerHost2_Vtbl, 0x3a0bee95_29e4_51bf_8095_a3c068e3c72a); #[repr(C)] #[doc(hidden)] pub struct IAppUriHandlerHost2_Vtbl { @@ -463,32 +265,14 @@ pub struct IAppUriHandlerHost2_Vtbl { pub IsEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetIsEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppUriHandlerHostFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppUriHandlerHostFactory { - type Vtable = IAppUriHandlerHostFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppUriHandlerHostFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x257c3c96_ce04_5f98_96bb_3ebd3e9275bb); -} +::windows_core::imp::com_interface!(IAppUriHandlerHostFactory, IAppUriHandlerHostFactory_Vtbl, 0x257c3c96_ce04_5f98_96bb_3ebd3e9275bb); #[repr(C)] #[doc(hidden)] pub struct IAppUriHandlerHostFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppUriHandlerRegistration(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppUriHandlerRegistration { - type Vtable = IAppUriHandlerRegistration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppUriHandlerRegistration { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6f73aeb1_4569_5c3f_9ba0_99123eea32c3); -} +::windows_core::imp::com_interface!(IAppUriHandlerRegistration, IAppUriHandlerRegistration_Vtbl, 0x6f73aeb1_4569_5c3f_9ba0_99123eea32c3); #[repr(C)] #[doc(hidden)] pub struct IAppUriHandlerRegistration_Vtbl { @@ -504,16 +288,7 @@ pub struct IAppUriHandlerRegistration_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] SetAppAddedHostsAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppUriHandlerRegistration2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppUriHandlerRegistration2 { - type Vtable = IAppUriHandlerRegistration2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppUriHandlerRegistration2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd54dac97_cb39_5f1f_883e_01853730bd6d); -} +::windows_core::imp::com_interface!(IAppUriHandlerRegistration2, IAppUriHandlerRegistration2_Vtbl, 0xd54dac97_cb39_5f1f_883e_01853730bd6d); #[repr(C)] #[doc(hidden)] pub struct IAppUriHandlerRegistration2_Vtbl { @@ -528,16 +303,7 @@ pub struct IAppUriHandlerRegistration2_Vtbl { UpdateHosts: usize, pub PackageFamilyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppUriHandlerRegistrationManager(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppUriHandlerRegistrationManager { - type Vtable = IAppUriHandlerRegistrationManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppUriHandlerRegistrationManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe62c9a52_ac94_5750_ac1b_6cfb6f250263); -} +::windows_core::imp::com_interface!(IAppUriHandlerRegistrationManager, IAppUriHandlerRegistrationManager_Vtbl, 0xe62c9a52_ac94_5750_ac1b_6cfb6f250263); #[repr(C)] #[doc(hidden)] pub struct IAppUriHandlerRegistrationManager_Vtbl { @@ -545,32 +311,14 @@ pub struct IAppUriHandlerRegistrationManager_Vtbl { pub User: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub TryGetRegistration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppUriHandlerRegistrationManager2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppUriHandlerRegistrationManager2 { - type Vtable = IAppUriHandlerRegistrationManager2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppUriHandlerRegistrationManager2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbddfcaf1_b51a_5e69_aefd_7088d9f2b123); -} +::windows_core::imp::com_interface!(IAppUriHandlerRegistrationManager2, IAppUriHandlerRegistrationManager2_Vtbl, 0xbddfcaf1_b51a_5e69_aefd_7088d9f2b123); #[repr(C)] #[doc(hidden)] pub struct IAppUriHandlerRegistrationManager2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub PackageFamilyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppUriHandlerRegistrationManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppUriHandlerRegistrationManagerStatics { - type Vtable = IAppUriHandlerRegistrationManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppUriHandlerRegistrationManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd5cedd9f_5729_5b76_a1d4_0285f295c124); -} +::windows_core::imp::com_interface!(IAppUriHandlerRegistrationManagerStatics, IAppUriHandlerRegistrationManagerStatics_Vtbl, 0xd5cedd9f_5729_5b76_a1d4_0285f295c124); #[repr(C)] #[doc(hidden)] pub struct IAppUriHandlerRegistrationManagerStatics_Vtbl { @@ -578,16 +326,7 @@ pub struct IAppUriHandlerRegistrationManagerStatics_Vtbl { pub GetDefault: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetForUser: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, user: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppUriHandlerRegistrationManagerStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppUriHandlerRegistrationManagerStatics2 { - type Vtable = IAppUriHandlerRegistrationManagerStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppUriHandlerRegistrationManagerStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x14f78379_6890_5080_90a7_98824a7f079e); -} +::windows_core::imp::com_interface!(IAppUriHandlerRegistrationManagerStatics2, IAppUriHandlerRegistrationManagerStatics2_Vtbl, 0x14f78379_6890_5080_90a7_98824a7f079e); #[repr(C)] #[doc(hidden)] pub struct IAppUriHandlerRegistrationManagerStatics2_Vtbl { @@ -595,32 +334,14 @@ pub struct IAppUriHandlerRegistrationManagerStatics2_Vtbl { pub GetForPackage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, packagefamilyname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetForPackageForUser: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, packagefamilyname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, user: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDateTimeSettingsStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDateTimeSettingsStatics { - type Vtable = IDateTimeSettingsStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDateTimeSettingsStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5d2150d1_47ee_48ab_a52b_9f1954278d82); -} +::windows_core::imp::com_interface!(IDateTimeSettingsStatics, IDateTimeSettingsStatics_Vtbl, 0x5d2150d1_47ee_48ab_a52b_9f1954278d82); #[repr(C)] #[doc(hidden)] pub struct IDateTimeSettingsStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub SetSystemDateTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, utcdatetime: super::Foundation::DateTime) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDispatcherQueue(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDispatcherQueue { - type Vtable = IDispatcherQueue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDispatcherQueue { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x603e88e4_a338_4ffe_a457_a5cfb9ceb899); -} +::windows_core::imp::com_interface!(IDispatcherQueue, IDispatcherQueue_Vtbl, 0x603e88e4_a338_4ffe_a457_a5cfb9ceb899); #[repr(C)] #[doc(hidden)] pub struct IDispatcherQueue_Vtbl { @@ -633,32 +354,14 @@ pub struct IDispatcherQueue_Vtbl { pub ShutdownCompleted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveShutdownCompleted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDispatcherQueue2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDispatcherQueue2 { - type Vtable = IDispatcherQueue2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDispatcherQueue2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc822c647_30ef_506e_bd1e_a647ae6675ff); -} +::windows_core::imp::com_interface!(IDispatcherQueue2, IDispatcherQueue2_Vtbl, 0xc822c647_30ef_506e_bd1e_a647ae6675ff); #[repr(C)] #[doc(hidden)] pub struct IDispatcherQueue2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub HasThreadAccess: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDispatcherQueueController(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDispatcherQueueController { - type Vtable = IDispatcherQueueController_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDispatcherQueueController { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x22f34e66_50db_4e36_a98d_61c01b384d20); -} +::windows_core::imp::com_interface!(IDispatcherQueueController, IDispatcherQueueController_Vtbl, 0x22f34e66_50db_4e36_a98d_61c01b384d20); #[repr(C)] #[doc(hidden)] pub struct IDispatcherQueueController_Vtbl { @@ -666,64 +369,28 @@ pub struct IDispatcherQueueController_Vtbl { pub DispatcherQueue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ShutdownQueueAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDispatcherQueueControllerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDispatcherQueueControllerStatics { - type Vtable = IDispatcherQueueControllerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDispatcherQueueControllerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0a6c98e0_5198_49a2_a313_3f70d1f13c27); -} +::windows_core::imp::com_interface!(IDispatcherQueueControllerStatics, IDispatcherQueueControllerStatics_Vtbl, 0x0a6c98e0_5198_49a2_a313_3f70d1f13c27); #[repr(C)] #[doc(hidden)] pub struct IDispatcherQueueControllerStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateOnDedicatedThread: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDispatcherQueueShutdownStartingEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDispatcherQueueShutdownStartingEventArgs { - type Vtable = IDispatcherQueueShutdownStartingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDispatcherQueueShutdownStartingEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc4724c4c_ff97_40c0_a226_cc0aaa545e89); -} +::windows_core::imp::com_interface!(IDispatcherQueueShutdownStartingEventArgs, IDispatcherQueueShutdownStartingEventArgs_Vtbl, 0xc4724c4c_ff97_40c0_a226_cc0aaa545e89); #[repr(C)] #[doc(hidden)] pub struct IDispatcherQueueShutdownStartingEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDispatcherQueueStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDispatcherQueueStatics { - type Vtable = IDispatcherQueueStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDispatcherQueueStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa96d83d7_9371_4517_9245_d0824ac12c74); -} +::windows_core::imp::com_interface!(IDispatcherQueueStatics, IDispatcherQueueStatics_Vtbl, 0xa96d83d7_9371_4517_9245_d0824ac12c74); #[repr(C)] #[doc(hidden)] pub struct IDispatcherQueueStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetForCurrentThread: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDispatcherQueueTimer(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDispatcherQueueTimer { - type Vtable = IDispatcherQueueTimer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDispatcherQueueTimer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5feabb1d_a31c_4727_b1ac_37454649d56a); -} +::windows_core::imp::com_interface!(IDispatcherQueueTimer, IDispatcherQueueTimer_Vtbl, 0x5feabb1d_a31c_4727_b1ac_37454649d56a); #[repr(C)] #[doc(hidden)] pub struct IDispatcherQueueTimer_Vtbl { @@ -738,16 +405,7 @@ pub struct IDispatcherQueueTimer_Vtbl { pub Tick: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveTick: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFolderLauncherOptions(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFolderLauncherOptions { - type Vtable = IFolderLauncherOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFolderLauncherOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbb91c27d_6b87_432a_bd04_776c6f5fb2ab); -} +::windows_core::imp::com_interface!(IFolderLauncherOptions, IFolderLauncherOptions_Vtbl, 0xbb91c27d_6b87_432a_bd04_776c6f5fb2ab); #[repr(C)] #[doc(hidden)] pub struct IFolderLauncherOptions_Vtbl { @@ -757,16 +415,7 @@ pub struct IFolderLauncherOptions_Vtbl { #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage")))] ItemsToSelect: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKnownUserPropertiesStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKnownUserPropertiesStatics { - type Vtable = IKnownUserPropertiesStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKnownUserPropertiesStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7755911a_70c5_48e5_b637_5ba3441e4ee4); -} +::windows_core::imp::com_interface!(IKnownUserPropertiesStatics, IKnownUserPropertiesStatics_Vtbl, 0x7755911a_70c5_48e5_b637_5ba3441e4ee4); #[repr(C)] #[doc(hidden)] pub struct IKnownUserPropertiesStatics_Vtbl { @@ -781,32 +430,14 @@ pub struct IKnownUserPropertiesStatics_Vtbl { pub DomainName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SessionInitiationProtocolUri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKnownUserPropertiesStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKnownUserPropertiesStatics2 { - type Vtable = IKnownUserPropertiesStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKnownUserPropertiesStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5b450782_f620_577e_b1b3_dd56644d79b1); -} +::windows_core::imp::com_interface!(IKnownUserPropertiesStatics2, IKnownUserPropertiesStatics2_Vtbl, 0x5b450782_f620_577e_b1b3_dd56644d79b1); #[repr(C)] #[doc(hidden)] pub struct IKnownUserPropertiesStatics2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub AgeEnforcementRegion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILaunchUriResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILaunchUriResult { - type Vtable = ILaunchUriResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILaunchUriResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xec27a8df_f6d5_45ca_913a_70a40c5c8221); -} +::windows_core::imp::com_interface!(ILaunchUriResult, ILaunchUriResult_Vtbl, 0xec27a8df_f6d5_45ca_913a_70a40c5c8221); #[repr(C)] #[doc(hidden)] pub struct ILaunchUriResult_Vtbl { @@ -817,16 +448,7 @@ pub struct ILaunchUriResult_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Result: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILauncherOptions(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILauncherOptions { - type Vtable = ILauncherOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILauncherOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbafa21d8_b071_4cd8_853e_341203e557d3); -} +::windows_core::imp::com_interface!(ILauncherOptions, ILauncherOptions_Vtbl, 0xbafa21d8_b071_4cd8_853e_341203e557d3); #[repr(C)] #[doc(hidden)] pub struct ILauncherOptions_Vtbl { @@ -845,16 +467,7 @@ pub struct ILauncherOptions_Vtbl { pub ContentType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetContentType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILauncherOptions2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILauncherOptions2 { - type Vtable = ILauncherOptions2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILauncherOptions2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3ba08eb4_6e40_4dce_a1a3_2f53950afb49); -} +::windows_core::imp::com_interface!(ILauncherOptions2, ILauncherOptions2_Vtbl, 0x3ba08eb4_6e40_4dce_a1a3_2f53950afb49); #[repr(C)] #[doc(hidden)] pub struct ILauncherOptions2_Vtbl { @@ -870,16 +483,7 @@ pub struct ILauncherOptions2_Vtbl { #[cfg(not(feature = "Storage_Search"))] SetNeighboringFilesQuery: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILauncherOptions3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILauncherOptions3 { - type Vtable = ILauncherOptions3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILauncherOptions3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf0770655_4b63_4e3a_9107_4e687841923a); -} +::windows_core::imp::com_interface!(ILauncherOptions3, ILauncherOptions3_Vtbl, 0xf0770655_4b63_4e3a_9107_4e687841923a); #[repr(C)] #[doc(hidden)] pub struct ILauncherOptions3_Vtbl { @@ -887,16 +491,7 @@ pub struct ILauncherOptions3_Vtbl { pub IgnoreAppUriHandlers: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetIgnoreAppUriHandlers: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILauncherOptions4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILauncherOptions4 { - type Vtable = ILauncherOptions4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILauncherOptions4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xef6fd10e_e6fb_4814_a44e_57e8b9d9a01b); -} +::windows_core::imp::com_interface!(ILauncherOptions4, ILauncherOptions4_Vtbl, 0xef6fd10e_e6fb_4814_a44e_57e8b9d9a01b); #[repr(C)] #[doc(hidden)] pub struct ILauncherOptions4_Vtbl { @@ -904,16 +499,7 @@ pub struct ILauncherOptions4_Vtbl { pub LimitPickerToCurrentAppAndAppUriHandlers: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetLimitPickerToCurrentAppAndAppUriHandlers: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILauncherStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILauncherStatics { - type Vtable = ILauncherStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILauncherStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x277151c3_9e3e_42f6_91a4_5dfdeb232451); -} +::windows_core::imp::com_interface!(ILauncherStatics, ILauncherStatics_Vtbl, 0x277151c3_9e3e_42f6_91a4_5dfdeb232451); #[repr(C)] #[doc(hidden)] pub struct ILauncherStatics_Vtbl { @@ -929,16 +515,7 @@ pub struct ILauncherStatics_Vtbl { pub LaunchUriAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uri: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub LaunchUriWithOptionsAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uri: *mut ::core::ffi::c_void, options: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILauncherStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILauncherStatics2 { - type Vtable = ILauncherStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILauncherStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x59ba2fbb_24cb_4c02_a4c4_8294569d54f1); -} +::windows_core::imp::com_interface!(ILauncherStatics2, ILauncherStatics2_Vtbl, 0x59ba2fbb_24cb_4c02_a4c4_8294569d54f1); #[repr(C)] #[doc(hidden)] pub struct ILauncherStatics2_Vtbl { @@ -975,16 +552,7 @@ pub struct ILauncherStatics2_Vtbl { #[cfg(not(all(feature = "ApplicationModel", feature = "Foundation_Collections")))] FindFileHandlersAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILauncherStatics3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILauncherStatics3 { - type Vtable = ILauncherStatics3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILauncherStatics3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x234261a8_9db3_4683_aa42_dc6f51d33847); -} +::windows_core::imp::com_interface!(ILauncherStatics3, ILauncherStatics3_Vtbl, 0x234261a8_9db3_4683_aa42_dc6f51d33847); #[repr(C)] #[doc(hidden)] pub struct ILauncherStatics3_Vtbl { @@ -998,16 +566,7 @@ pub struct ILauncherStatics3_Vtbl { #[cfg(not(feature = "Storage"))] LaunchFolderWithOptionsAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILauncherStatics4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILauncherStatics4 { - type Vtable = ILauncherStatics4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILauncherStatics4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb9ec819f_b5a5_41c6_b3b3_dd1b3178bcf2); -} +::windows_core::imp::com_interface!(ILauncherStatics4, ILauncherStatics4_Vtbl, 0xb9ec819f_b5a5_41c6_b3b3_dd1b3178bcf2); #[repr(C)] #[doc(hidden)] pub struct ILauncherStatics4_Vtbl { @@ -1030,16 +589,7 @@ pub struct ILauncherStatics4_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] LaunchUriForResultsWithDataForUserAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILauncherStatics5(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILauncherStatics5 { - type Vtable = ILauncherStatics5_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILauncherStatics5 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5b24ef84_d895_5fea_9153_1ac49aed9ba9); -} +::windows_core::imp::com_interface!(ILauncherStatics5, ILauncherStatics5_Vtbl, 0x5b24ef84_d895_5fea_9153_1ac49aed9ba9); #[repr(C)] #[doc(hidden)] pub struct ILauncherStatics5_Vtbl { @@ -1049,16 +599,7 @@ pub struct ILauncherStatics5_Vtbl { pub LaunchFolderPathForUserAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, user: *mut ::core::ffi::c_void, path: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub LaunchFolderPathWithOptionsForUserAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, user: *mut ::core::ffi::c_void, path: ::std::mem::MaybeUninit<::windows_core::HSTRING>, options: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILauncherUIOptions(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILauncherUIOptions { - type Vtable = ILauncherUIOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILauncherUIOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1b25da6e_8aa6_41e9_8251_4165f5985f49); -} +::windows_core::imp::com_interface!(ILauncherUIOptions, ILauncherUIOptions_Vtbl, 0x1b25da6e_8aa6_41e9_8251_4165f5985f49); #[repr(C)] #[doc(hidden)] pub struct ILauncherUIOptions_Vtbl { @@ -1076,9 +617,8 @@ pub struct ILauncherUIOptions_Vtbl { #[cfg(not(feature = "UI_Popups"))] SetPreferredPlacement: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILauncherViewOptions(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ILauncherViewOptions, ILauncherViewOptions_Vtbl, 0x8a9b29f1_7ca7_49de_9bd3_3c5b7184f616); +::windows_core::imp::interface_hierarchy!(ILauncherViewOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ILauncherViewOptions { #[doc = "Required features: `\"UI_ViewManagement\"`"] #[cfg(feature = "UI_ViewManagement")] @@ -1096,16 +636,9 @@ impl ILauncherViewOptions { unsafe { (::windows_core::Interface::vtable(this).SetDesiredRemainingView)(::windows_core::Interface::as_raw(this), value).ok() } } } -::windows_core::imp::interface_hierarchy!(ILauncherViewOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for ILauncherViewOptions { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for ILauncherViewOptions { - type Vtable = ILauncherViewOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILauncherViewOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8a9b29f1_7ca7_49de_9bd3_3c5b7184f616); -} #[repr(C)] #[doc(hidden)] pub struct ILauncherViewOptions_Vtbl { @@ -1119,16 +652,7 @@ pub struct ILauncherViewOptions_Vtbl { #[cfg(not(feature = "UI_ViewManagement"))] SetDesiredRemainingView: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMemoryManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMemoryManagerStatics { - type Vtable = IMemoryManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMemoryManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5c6c279c_d7ca_4779_9188_4057219ce64c); -} +::windows_core::imp::com_interface!(IMemoryManagerStatics, IMemoryManagerStatics_Vtbl, 0x5c6c279c_d7ca_4779_9188_4057219ce64c); #[repr(C)] #[doc(hidden)] pub struct IMemoryManagerStatics_Vtbl { @@ -1143,65 +667,29 @@ pub struct IMemoryManagerStatics_Vtbl { pub AppMemoryUsageLimitChanging: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveAppMemoryUsageLimitChanging: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMemoryManagerStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMemoryManagerStatics2 { - type Vtable = IMemoryManagerStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMemoryManagerStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6eee351f_6d62_423f_9479_b01f9c9f7669); -} +::windows_core::imp::com_interface!(IMemoryManagerStatics2, IMemoryManagerStatics2_Vtbl, 0x6eee351f_6d62_423f_9479_b01f9c9f7669); #[repr(C)] #[doc(hidden)] -pub struct IMemoryManagerStatics2_Vtbl { - pub base__: ::windows_core::IInspectable_Vtbl, - pub GetAppMemoryReport: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, - pub GetProcessMemoryReport: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMemoryManagerStatics3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMemoryManagerStatics3 { - type Vtable = IMemoryManagerStatics3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMemoryManagerStatics3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x149b59ce_92ad_4e35_89eb_50dfb4c0d91c); +pub struct IMemoryManagerStatics2_Vtbl { + pub base__: ::windows_core::IInspectable_Vtbl, + pub GetAppMemoryReport: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, + pub GetProcessMemoryReport: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } +::windows_core::imp::com_interface!(IMemoryManagerStatics3, IMemoryManagerStatics3_Vtbl, 0x149b59ce_92ad_4e35_89eb_50dfb4c0d91c); #[repr(C)] #[doc(hidden)] pub struct IMemoryManagerStatics3_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub TrySetAppMemoryUsageLimit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: u64, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMemoryManagerStatics4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMemoryManagerStatics4 { - type Vtable = IMemoryManagerStatics4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMemoryManagerStatics4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc5a94828_e84e_4886_8a0d_44b3190e3b72); -} +::windows_core::imp::com_interface!(IMemoryManagerStatics4, IMemoryManagerStatics4_Vtbl, 0xc5a94828_e84e_4886_8a0d_44b3190e3b72); #[repr(C)] #[doc(hidden)] pub struct IMemoryManagerStatics4_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ExpectedAppMemoryUsageLimit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u64) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProcessLauncherOptions(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProcessLauncherOptions { - type Vtable = IProcessLauncherOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProcessLauncherOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3080b9cf_f444_4a83_beaf_a549a0f3229c); -} +::windows_core::imp::com_interface!(IProcessLauncherOptions, IProcessLauncherOptions_Vtbl, 0x3080b9cf_f444_4a83_beaf_a549a0f3229c); #[repr(C)] #[doc(hidden)] pub struct IProcessLauncherOptions_Vtbl { @@ -1233,32 +721,14 @@ pub struct IProcessLauncherOptions_Vtbl { pub WorkingDirectory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetWorkingDirectory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProcessLauncherResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProcessLauncherResult { - type Vtable = IProcessLauncherResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProcessLauncherResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x544c8934_86d8_4991_8e75_ece8a43b6b6d); -} +::windows_core::imp::com_interface!(IProcessLauncherResult, IProcessLauncherResult_Vtbl, 0x544c8934_86d8_4991_8e75_ece8a43b6b6d); #[repr(C)] #[doc(hidden)] pub struct IProcessLauncherResult_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ExitCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProcessLauncherStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProcessLauncherStatics { - type Vtable = IProcessLauncherStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProcessLauncherStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x33ab66e7_2d0e_448b_a6a0_c13c3836d09c); -} +::windows_core::imp::com_interface!(IProcessLauncherStatics, IProcessLauncherStatics_Vtbl, 0x33ab66e7_2d0e_448b_a6a0_c13c3836d09c); #[repr(C)] #[doc(hidden)] pub struct IProcessLauncherStatics_Vtbl { @@ -1266,16 +736,7 @@ pub struct IProcessLauncherStatics_Vtbl { pub RunToCompletionAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filename: ::std::mem::MaybeUninit<::windows_core::HSTRING>, args: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RunToCompletionAsyncWithOptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filename: ::std::mem::MaybeUninit<::windows_core::HSTRING>, args: ::std::mem::MaybeUninit<::windows_core::HSTRING>, options: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProcessMemoryReport(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProcessMemoryReport { - type Vtable = IProcessMemoryReport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProcessMemoryReport { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x087305a8_9b70_4782_8741_3a982b6ce5e4); -} +::windows_core::imp::com_interface!(IProcessMemoryReport, IProcessMemoryReport_Vtbl, 0x087305a8_9b70_4782_8741_3a982b6ce5e4); #[repr(C)] #[doc(hidden)] pub struct IProcessMemoryReport_Vtbl { @@ -1283,16 +744,7 @@ pub struct IProcessMemoryReport_Vtbl { pub PrivateWorkingSetUsage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u64) -> ::windows_core::HRESULT, pub TotalWorkingSetUsage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u64) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProtocolForResultsOperation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProtocolForResultsOperation { - type Vtable = IProtocolForResultsOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProtocolForResultsOperation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd581293a_6de9_4d28_9378_f86782e182bb); -} +::windows_core::imp::com_interface!(IProtocolForResultsOperation, IProtocolForResultsOperation_Vtbl, 0xd581293a_6de9_4d28_9378_f86782e182bb); #[repr(C)] #[doc(hidden)] pub struct IProtocolForResultsOperation_Vtbl { @@ -1302,16 +754,7 @@ pub struct IProtocolForResultsOperation_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] ReportCompleted: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteLauncherOptions(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteLauncherOptions { - type Vtable = IRemoteLauncherOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteLauncherOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9e3a2788_2891_4cdf_a2d6_9dff7d02e693); -} +::windows_core::imp::com_interface!(IRemoteLauncherOptions, IRemoteLauncherOptions_Vtbl, 0x9e3a2788_2891_4cdf_a2d6_9dff7d02e693); #[repr(C)] #[doc(hidden)] pub struct IRemoteLauncherOptions_Vtbl { @@ -1323,16 +766,7 @@ pub struct IRemoteLauncherOptions_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] PreferredAppIds: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteLauncherStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteLauncherStatics { - type Vtable = IRemoteLauncherStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteLauncherStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd7db7a93_a30c_48b7_9f21_051026a4e517); -} +::windows_core::imp::com_interface!(IRemoteLauncherStatics, IRemoteLauncherStatics_Vtbl, 0xd7db7a93_a30c_48b7_9f21_051026a4e517); #[repr(C)] #[doc(hidden)] pub struct IRemoteLauncherStatics_Vtbl { @@ -1350,16 +784,7 @@ pub struct IRemoteLauncherStatics_Vtbl { #[cfg(not(all(feature = "Foundation_Collections", feature = "System_RemoteSystems")))] LaunchUriWithDataAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShutdownManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IShutdownManagerStatics { - type Vtable = IShutdownManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IShutdownManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x72e247ed_dd5b_4d6c_b1d0_c57a7bbb5f94); -} +::windows_core::imp::com_interface!(IShutdownManagerStatics, IShutdownManagerStatics_Vtbl, 0x72e247ed_dd5b_4d6c_b1d0_c57a7bbb5f94); #[repr(C)] #[doc(hidden)] pub struct IShutdownManagerStatics_Vtbl { @@ -1367,16 +792,7 @@ pub struct IShutdownManagerStatics_Vtbl { pub BeginShutdown: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, shutdownkind: ShutdownKind, timeout: super::Foundation::TimeSpan) -> ::windows_core::HRESULT, pub CancelShutdown: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShutdownManagerStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IShutdownManagerStatics2 { - type Vtable = IShutdownManagerStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IShutdownManagerStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0f69a02f_9c34_43c7_a8c3_70b30a7f7504); -} +::windows_core::imp::com_interface!(IShutdownManagerStatics2, IShutdownManagerStatics2_Vtbl, 0x0f69a02f_9c34_43c7_a8c3_70b30a7f7504); #[repr(C)] #[doc(hidden)] pub struct IShutdownManagerStatics2_Vtbl { @@ -1385,16 +801,7 @@ pub struct IShutdownManagerStatics2_Vtbl { pub EnterPowerState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, powerstate: PowerState) -> ::windows_core::HRESULT, pub EnterPowerStateWithTimeSpan: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, powerstate: PowerState, wakeupafter: super::Foundation::TimeSpan) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITimeZoneSettingsStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITimeZoneSettingsStatics { - type Vtable = ITimeZoneSettingsStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITimeZoneSettingsStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9b3b2bea_a101_41ae_9fbd_028728bab73d); -} +::windows_core::imp::com_interface!(ITimeZoneSettingsStatics, ITimeZoneSettingsStatics_Vtbl, 0x9b3b2bea_a101_41ae_9fbd_028728bab73d); #[repr(C)] #[doc(hidden)] pub struct ITimeZoneSettingsStatics_Vtbl { @@ -1407,32 +814,14 @@ pub struct ITimeZoneSettingsStatics_Vtbl { pub CanChangeTimeZone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub ChangeTimeZoneByDisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, timezonedisplayname: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITimeZoneSettingsStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITimeZoneSettingsStatics2 { - type Vtable = ITimeZoneSettingsStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITimeZoneSettingsStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x555c0db8_39a8_49fa_b4f6_a2c7fc2842ec); -} +::windows_core::imp::com_interface!(ITimeZoneSettingsStatics2, ITimeZoneSettingsStatics2_Vtbl, 0x555c0db8_39a8_49fa_b4f6_a2c7fc2842ec); #[repr(C)] #[doc(hidden)] pub struct ITimeZoneSettingsStatics2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub AutoUpdateTimeZoneAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, timeout: super::Foundation::TimeSpan, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUser(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUser { - type Vtable = IUser_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUser { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdf9a26c6_e746_4bcd_b5d4_120103c4209b); -} +::windows_core::imp::com_interface!(IUser, IUser_Vtbl, 0xdf9a26c6_e746_4bcd_b5d4_120103c4209b); #[repr(C)] #[doc(hidden)] pub struct IUser_Vtbl { @@ -1450,48 +839,21 @@ pub struct IUser_Vtbl { #[cfg(not(feature = "Storage_Streams"))] GetPictureAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUser2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUser2 { - type Vtable = IUser2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUser2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x98ba5628_a6e3_518e_89d9_d3b2b1991a10); -} +::windows_core::imp::com_interface!(IUser2, IUser2_Vtbl, 0x98ba5628_a6e3_518e_89d9_d3b2b1991a10); #[repr(C)] #[doc(hidden)] pub struct IUser2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CheckUserAgeConsentGroupAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, consentgroup: UserAgeConsentGroup, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserAuthenticationStatusChangeDeferral(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserAuthenticationStatusChangeDeferral { - type Vtable = IUserAuthenticationStatusChangeDeferral_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserAuthenticationStatusChangeDeferral { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x88b59568_bb30_42fb_a270_e9902e40efa7); -} +::windows_core::imp::com_interface!(IUserAuthenticationStatusChangeDeferral, IUserAuthenticationStatusChangeDeferral_Vtbl, 0x88b59568_bb30_42fb_a270_e9902e40efa7); #[repr(C)] #[doc(hidden)] pub struct IUserAuthenticationStatusChangeDeferral_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Complete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserAuthenticationStatusChangingEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserAuthenticationStatusChangingEventArgs { - type Vtable = IUserAuthenticationStatusChangingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserAuthenticationStatusChangingEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8c030f28_a711_4c1e_ab48_04179c15938f); -} +::windows_core::imp::com_interface!(IUserAuthenticationStatusChangingEventArgs, IUserAuthenticationStatusChangingEventArgs_Vtbl, 0x8c030f28_a711_4c1e_ab48_04179c15938f); #[repr(C)] #[doc(hidden)] pub struct IUserAuthenticationStatusChangingEventArgs_Vtbl { @@ -1501,32 +863,14 @@ pub struct IUserAuthenticationStatusChangingEventArgs_Vtbl { pub NewStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut UserAuthenticationStatus) -> ::windows_core::HRESULT, pub CurrentStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut UserAuthenticationStatus) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserChangedEventArgs { - type Vtable = IUserChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x086459dc_18c6_48db_bc99_724fb9203ccc); -} +::windows_core::imp::com_interface!(IUserChangedEventArgs, IUserChangedEventArgs_Vtbl, 0x086459dc_18c6_48db_bc99_724fb9203ccc); #[repr(C)] #[doc(hidden)] pub struct IUserChangedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub User: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserChangedEventArgs2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserChangedEventArgs2 { - type Vtable = IUserChangedEventArgs2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserChangedEventArgs2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6b2ccb44_6f01_560c_97ad_fc7f32ec581f); -} +::windows_core::imp::com_interface!(IUserChangedEventArgs2, IUserChangedEventArgs2_Vtbl, 0x6b2ccb44_6f01_560c_97ad_fc7f32ec581f); #[repr(C)] #[doc(hidden)] pub struct IUserChangedEventArgs2_Vtbl { @@ -1536,16 +880,7 @@ pub struct IUserChangedEventArgs2_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] ChangedPropertyKinds: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserDeviceAssociationChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserDeviceAssociationChangedEventArgs { - type Vtable = IUserDeviceAssociationChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserDeviceAssociationChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbd1f6f6c_bb5d_4d7b_a5f0_c8cd11a38d42); -} +::windows_core::imp::com_interface!(IUserDeviceAssociationChangedEventArgs, IUserDeviceAssociationChangedEventArgs_Vtbl, 0xbd1f6f6c_bb5d_4d7b_a5f0_c8cd11a38d42); #[repr(C)] #[doc(hidden)] pub struct IUserDeviceAssociationChangedEventArgs_Vtbl { @@ -1554,16 +889,7 @@ pub struct IUserDeviceAssociationChangedEventArgs_Vtbl { pub NewUser: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub OldUser: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserDeviceAssociationStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserDeviceAssociationStatics { - type Vtable = IUserDeviceAssociationStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserDeviceAssociationStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7e491e14_f85a_4c07_8da9_7fe3d0542343); -} +::windows_core::imp::com_interface!(IUserDeviceAssociationStatics, IUserDeviceAssociationStatics_Vtbl, 0x7e491e14_f85a_4c07_8da9_7fe3d0542343); #[repr(C)] #[doc(hidden)] pub struct IUserDeviceAssociationStatics_Vtbl { @@ -1572,16 +898,7 @@ pub struct IUserDeviceAssociationStatics_Vtbl { pub UserDeviceAssociationChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveUserDeviceAssociationChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserPicker(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserPicker { - type Vtable = IUserPicker_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserPicker { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7d548008_f1e3_4a6c_8ddc_a9bb0f488aed); -} +::windows_core::imp::com_interface!(IUserPicker, IUserPicker_Vtbl, 0x7d548008_f1e3_4a6c_8ddc_a9bb0f488aed); #[repr(C)] #[doc(hidden)] pub struct IUserPicker_Vtbl { @@ -1592,32 +909,14 @@ pub struct IUserPicker_Vtbl { pub SetSuggestedSelectedUser: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub PickSingleUserAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserPickerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserPickerStatics { - type Vtable = IUserPickerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserPickerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xde3290dc_7e73_4df6_a1ae_4d7eca82b40d); -} +::windows_core::imp::com_interface!(IUserPickerStatics, IUserPickerStatics_Vtbl, 0xde3290dc_7e73_4df6_a1ae_4d7eca82b40d); #[repr(C)] #[doc(hidden)] pub struct IUserPickerStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub IsSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserStatics { - type Vtable = IUserStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x155eb23b_242a_45e0_a2e9_3171fc6a7fdd); -} +::windows_core::imp::com_interface!(IUserStatics, IUserStatics_Vtbl, 0x155eb23b_242a_45e0_a2e9_3171fc6a7fdd); #[repr(C)] #[doc(hidden)] pub struct IUserStatics_Vtbl { @@ -1637,32 +936,14 @@ pub struct IUserStatics_Vtbl { FindAllAsyncByTypeAndStatus: usize, pub GetFromId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nonroamableid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserStatics2 { - type Vtable = IUserStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x74a37e11_2eb5_4487_b0d5_2c6790e013e9); -} +::windows_core::imp::com_interface!(IUserStatics2, IUserStatics2_Vtbl, 0x74a37e11_2eb5_4487_b0d5_2c6790e013e9); #[repr(C)] #[doc(hidden)] pub struct IUserStatics2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetDefault: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserWatcher(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserWatcher { - type Vtable = IUserWatcher_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserWatcher { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x155eb23b_242a_45e0_a2e9_3171fc6a7fbb); -} +::windows_core::imp::com_interface!(IUserWatcher, IUserWatcher_Vtbl, 0x155eb23b_242a_45e0_a2e9_3171fc6a7fbb); #[repr(C)] #[doc(hidden)] pub struct IUserWatcher_Vtbl { @@ -1688,6 +969,7 @@ pub struct IUserWatcher_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppActivationResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppActivationResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppActivationResult { pub fn ExtendedError(&self) -> ::windows_core::Result<::windows_core::HRESULT> { let this = self; @@ -1709,19 +991,17 @@ impl ::windows_core::RuntimeType for AppActivationResult { } unsafe impl ::windows_core::Interface for AppActivationResult { type Vtable = IAppActivationResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppActivationResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppActivationResult { const NAME: &'static str = "Windows.System.AppActivationResult"; } -::windows_core::imp::interface_hierarchy!(AppActivationResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppActivationResult {} unsafe impl ::core::marker::Sync for AppActivationResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppDiagnosticInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppDiagnosticInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppDiagnosticInfo { #[doc = "Required features: `\"ApplicationModel\"`"] #[cfg(feature = "ApplicationModel")] @@ -1735,21 +1015,21 @@ impl AppDiagnosticInfo { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetResourceGroups(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetResourceGroups)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CreateResourceGroupWatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateResourceGroupWatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn LaunchAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).LaunchAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1815,19 +1095,17 @@ impl ::windows_core::RuntimeType for AppDiagnosticInfo { } unsafe impl ::windows_core::Interface for AppDiagnosticInfo { type Vtable = IAppDiagnosticInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppDiagnosticInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppDiagnosticInfo { const NAME: &'static str = "Windows.System.AppDiagnosticInfo"; } -::windows_core::imp::interface_hierarchy!(AppDiagnosticInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppDiagnosticInfo {} unsafe impl ::core::marker::Sync for AppDiagnosticInfo {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppDiagnosticInfoWatcher(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppDiagnosticInfoWatcher, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppDiagnosticInfoWatcher { pub fn Added(&self, handler: P0) -> ::windows_core::Result where @@ -1906,19 +1184,17 @@ impl ::windows_core::RuntimeType for AppDiagnosticInfoWatcher { } unsafe impl ::windows_core::Interface for AppDiagnosticInfoWatcher { type Vtable = IAppDiagnosticInfoWatcher_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppDiagnosticInfoWatcher { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppDiagnosticInfoWatcher { const NAME: &'static str = "Windows.System.AppDiagnosticInfoWatcher"; } -::windows_core::imp::interface_hierarchy!(AppDiagnosticInfoWatcher, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppDiagnosticInfoWatcher {} unsafe impl ::core::marker::Sync for AppDiagnosticInfoWatcher {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppDiagnosticInfoWatcherEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppDiagnosticInfoWatcherEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppDiagnosticInfoWatcherEventArgs { pub fn AppDiagnosticInfo(&self) -> ::windows_core::Result { let this = self; @@ -1933,19 +1209,17 @@ impl ::windows_core::RuntimeType for AppDiagnosticInfoWatcherEventArgs { } unsafe impl ::windows_core::Interface for AppDiagnosticInfoWatcherEventArgs { type Vtable = IAppDiagnosticInfoWatcherEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppDiagnosticInfoWatcherEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppDiagnosticInfoWatcherEventArgs { const NAME: &'static str = "Windows.System.AppDiagnosticInfoWatcherEventArgs"; } -::windows_core::imp::interface_hierarchy!(AppDiagnosticInfoWatcherEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppDiagnosticInfoWatcherEventArgs {} unsafe impl ::core::marker::Sync for AppDiagnosticInfoWatcherEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppExecutionStateChangeResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppExecutionStateChangeResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppExecutionStateChangeResult { pub fn ExtendedError(&self) -> ::windows_core::Result<::windows_core::HRESULT> { let this = self; @@ -1960,19 +1234,17 @@ impl ::windows_core::RuntimeType for AppExecutionStateChangeResult { } unsafe impl ::windows_core::Interface for AppExecutionStateChangeResult { type Vtable = IAppExecutionStateChangeResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppExecutionStateChangeResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppExecutionStateChangeResult { const NAME: &'static str = "Windows.System.AppExecutionStateChangeResult"; } -::windows_core::imp::interface_hierarchy!(AppExecutionStateChangeResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppExecutionStateChangeResult {} unsafe impl ::core::marker::Sync for AppExecutionStateChangeResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppMemoryReport(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppMemoryReport, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppMemoryReport { pub fn PrivateCommitUsage(&self) -> ::windows_core::Result { let this = self; @@ -2003,7 +1275,7 @@ impl AppMemoryReport { } } pub fn ExpectedTotalCommitLimit(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ExpectedTotalCommitLimit)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2015,19 +1287,17 @@ impl ::windows_core::RuntimeType for AppMemoryReport { } unsafe impl ::windows_core::Interface for AppMemoryReport { type Vtable = IAppMemoryReport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppMemoryReport { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppMemoryReport { const NAME: &'static str = "Windows.System.AppMemoryReport"; } -::windows_core::imp::interface_hierarchy!(AppMemoryReport, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppMemoryReport {} unsafe impl ::core::marker::Sync for AppMemoryReport {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppMemoryUsageLimitChangingEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppMemoryUsageLimitChangingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppMemoryUsageLimitChangingEventArgs { pub fn OldLimit(&self) -> ::windows_core::Result { let this = self; @@ -2049,19 +1319,17 @@ impl ::windows_core::RuntimeType for AppMemoryUsageLimitChangingEventArgs { } unsafe impl ::windows_core::Interface for AppMemoryUsageLimitChangingEventArgs { type Vtable = IAppMemoryUsageLimitChangingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppMemoryUsageLimitChangingEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppMemoryUsageLimitChangingEventArgs { const NAME: &'static str = "Windows.System.AppMemoryUsageLimitChangingEventArgs"; } -::windows_core::imp::interface_hierarchy!(AppMemoryUsageLimitChangingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppMemoryUsageLimitChangingEventArgs {} unsafe impl ::core::marker::Sync for AppMemoryUsageLimitChangingEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppResourceGroupBackgroundTaskReport(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppResourceGroupBackgroundTaskReport, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppResourceGroupBackgroundTaskReport { pub fn TaskId(&self) -> ::windows_core::Result<::windows_core::GUID> { let this = self; @@ -2097,19 +1365,17 @@ impl ::windows_core::RuntimeType for AppResourceGroupBackgroundTaskReport { } unsafe impl ::windows_core::Interface for AppResourceGroupBackgroundTaskReport { type Vtable = IAppResourceGroupBackgroundTaskReport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppResourceGroupBackgroundTaskReport { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppResourceGroupBackgroundTaskReport { const NAME: &'static str = "Windows.System.AppResourceGroupBackgroundTaskReport"; } -::windows_core::imp::interface_hierarchy!(AppResourceGroupBackgroundTaskReport, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppResourceGroupBackgroundTaskReport {} unsafe impl ::core::marker::Sync for AppResourceGroupBackgroundTaskReport {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppResourceGroupInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppResourceGroupInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppResourceGroupInfo { pub fn InstanceId(&self) -> ::windows_core::Result<::windows_core::GUID> { let this = self; @@ -2158,21 +1424,21 @@ impl AppResourceGroupInfo { } } pub fn StartSuspendAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).StartSuspendAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn StartResumeAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).StartResumeAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn StartTerminateAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).StartTerminateAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2184,19 +1450,17 @@ impl ::windows_core::RuntimeType for AppResourceGroupInfo { } unsafe impl ::windows_core::Interface for AppResourceGroupInfo { type Vtable = IAppResourceGroupInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppResourceGroupInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppResourceGroupInfo { const NAME: &'static str = "Windows.System.AppResourceGroupInfo"; } -::windows_core::imp::interface_hierarchy!(AppResourceGroupInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppResourceGroupInfo {} unsafe impl ::core::marker::Sync for AppResourceGroupInfo {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppResourceGroupInfoWatcher(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppResourceGroupInfoWatcher, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppResourceGroupInfoWatcher { pub fn Added(&self, handler: P0) -> ::windows_core::Result where @@ -2289,19 +1553,17 @@ impl ::windows_core::RuntimeType for AppResourceGroupInfoWatcher { } unsafe impl ::windows_core::Interface for AppResourceGroupInfoWatcher { type Vtable = IAppResourceGroupInfoWatcher_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppResourceGroupInfoWatcher { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppResourceGroupInfoWatcher { const NAME: &'static str = "Windows.System.AppResourceGroupInfoWatcher"; } -::windows_core::imp::interface_hierarchy!(AppResourceGroupInfoWatcher, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppResourceGroupInfoWatcher {} unsafe impl ::core::marker::Sync for AppResourceGroupInfoWatcher {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppResourceGroupInfoWatcherEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppResourceGroupInfoWatcherEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppResourceGroupInfoWatcherEventArgs { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -2325,19 +1587,17 @@ impl ::windows_core::RuntimeType for AppResourceGroupInfoWatcherEventArgs { } unsafe impl ::windows_core::Interface for AppResourceGroupInfoWatcherEventArgs { type Vtable = IAppResourceGroupInfoWatcherEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppResourceGroupInfoWatcherEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppResourceGroupInfoWatcherEventArgs { const NAME: &'static str = "Windows.System.AppResourceGroupInfoWatcherEventArgs"; } -::windows_core::imp::interface_hierarchy!(AppResourceGroupInfoWatcherEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppResourceGroupInfoWatcherEventArgs {} unsafe impl ::core::marker::Sync for AppResourceGroupInfoWatcherEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppResourceGroupInfoWatcherExecutionStateChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppResourceGroupInfoWatcherExecutionStateChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppResourceGroupInfoWatcherExecutionStateChangedEventArgs { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -2361,19 +1621,17 @@ impl ::windows_core::RuntimeType for AppResourceGroupInfoWatcherExecutionStateCh } unsafe impl ::windows_core::Interface for AppResourceGroupInfoWatcherExecutionStateChangedEventArgs { type Vtable = IAppResourceGroupInfoWatcherExecutionStateChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppResourceGroupInfoWatcherExecutionStateChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppResourceGroupInfoWatcherExecutionStateChangedEventArgs { const NAME: &'static str = "Windows.System.AppResourceGroupInfoWatcherExecutionStateChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(AppResourceGroupInfoWatcherExecutionStateChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppResourceGroupInfoWatcherExecutionStateChangedEventArgs {} unsafe impl ::core::marker::Sync for AppResourceGroupInfoWatcherExecutionStateChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppResourceGroupMemoryReport(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppResourceGroupMemoryReport, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppResourceGroupMemoryReport { pub fn CommitUsageLimit(&self) -> ::windows_core::Result { let this = self; @@ -2409,19 +1667,17 @@ impl ::windows_core::RuntimeType for AppResourceGroupMemoryReport { } unsafe impl ::windows_core::Interface for AppResourceGroupMemoryReport { type Vtable = IAppResourceGroupMemoryReport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppResourceGroupMemoryReport { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppResourceGroupMemoryReport { const NAME: &'static str = "Windows.System.AppResourceGroupMemoryReport"; } -::windows_core::imp::interface_hierarchy!(AppResourceGroupMemoryReport, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppResourceGroupMemoryReport {} unsafe impl ::core::marker::Sync for AppResourceGroupMemoryReport {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppResourceGroupStateReport(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppResourceGroupStateReport, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppResourceGroupStateReport { pub fn ExecutionState(&self) -> ::windows_core::Result { let this = self; @@ -2443,19 +1699,17 @@ impl ::windows_core::RuntimeType for AppResourceGroupStateReport { } unsafe impl ::windows_core::Interface for AppResourceGroupStateReport { type Vtable = IAppResourceGroupStateReport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppResourceGroupStateReport { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppResourceGroupStateReport { const NAME: &'static str = "Windows.System.AppResourceGroupStateReport"; } -::windows_core::imp::interface_hierarchy!(AppResourceGroupStateReport, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppResourceGroupStateReport {} unsafe impl ::core::marker::Sync for AppResourceGroupStateReport {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppUriHandlerHost(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppUriHandlerHost, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppUriHandlerHost { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2476,14 +1730,14 @@ impl AppUriHandlerHost { unsafe { (::windows_core::Interface::vtable(this).SetName)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn IsEnabled(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsEnabled)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsEnabled(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsEnabled)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn CreateInstance(name: &::windows_core::HSTRING) -> ::windows_core::Result { @@ -2503,19 +1757,17 @@ impl ::windows_core::RuntimeType for AppUriHandlerHost { } unsafe impl ::windows_core::Interface for AppUriHandlerHost { type Vtable = IAppUriHandlerHost_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppUriHandlerHost { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppUriHandlerHost { const NAME: &'static str = "Windows.System.AppUriHandlerHost"; } -::windows_core::imp::interface_hierarchy!(AppUriHandlerHost, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppUriHandlerHost {} unsafe impl ::core::marker::Sync for AppUriHandlerHost {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppUriHandlerRegistration(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppUriHandlerRegistration, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppUriHandlerRegistration { pub fn Name(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -2544,18 +1796,18 @@ impl AppUriHandlerRegistration { #[cfg(feature = "Foundation_Collections")] pub fn SetAppAddedHostsAsync(&self, hosts: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).SetAppAddedHostsAsync)(::windows_core::Interface::as_raw(this), hosts.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SetAppAddedHostsAsync)(::windows_core::Interface::as_raw(this), hosts.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetAllHosts(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetAllHosts)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2565,13 +1817,13 @@ impl AppUriHandlerRegistration { #[cfg(feature = "Foundation_Collections")] pub fn UpdateHosts(&self, hosts: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).UpdateHosts)(::windows_core::Interface::as_raw(this), hosts.try_into_param()?.abi()).ok() } + 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() } } pub fn PackageFamilyName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PackageFamilyName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2583,19 +1835,17 @@ impl ::windows_core::RuntimeType for AppUriHandlerRegistration { } unsafe impl ::windows_core::Interface for AppUriHandlerRegistration { type Vtable = IAppUriHandlerRegistration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppUriHandlerRegistration { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppUriHandlerRegistration { const NAME: &'static str = "Windows.System.AppUriHandlerRegistration"; } -::windows_core::imp::interface_hierarchy!(AppUriHandlerRegistration, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppUriHandlerRegistration {} unsafe impl ::core::marker::Sync for AppUriHandlerRegistration {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppUriHandlerRegistrationManager(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppUriHandlerRegistrationManager, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppUriHandlerRegistrationManager { pub fn User(&self) -> ::windows_core::Result { let this = self; @@ -2612,7 +1862,7 @@ impl AppUriHandlerRegistrationManager { } } pub fn PackageFamilyName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PackageFamilyName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2664,14 +1914,11 @@ impl ::windows_core::RuntimeType for AppUriHandlerRegistrationManager { } unsafe impl ::windows_core::Interface for AppUriHandlerRegistrationManager { type Vtable = IAppUriHandlerRegistrationManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppUriHandlerRegistrationManager { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppUriHandlerRegistrationManager { const NAME: &'static str = "Windows.System.AppUriHandlerRegistrationManager"; } -::windows_core::imp::interface_hierarchy!(AppUriHandlerRegistrationManager, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppUriHandlerRegistrationManager {} unsafe impl ::core::marker::Sync for AppUriHandlerRegistrationManager {} pub struct DateTimeSettings; @@ -2691,6 +1938,7 @@ impl ::windows_core::RuntimeName for DateTimeSettings { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DispatcherQueue(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DispatcherQueue, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DispatcherQueue { pub fn CreateTimer(&self) -> ::windows_core::Result { let this = self; @@ -2748,7 +1996,7 @@ impl DispatcherQueue { unsafe { (::windows_core::Interface::vtable(this).RemoveShutdownCompleted)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn HasThreadAccess(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).HasThreadAccess)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2771,19 +2019,17 @@ impl ::windows_core::RuntimeType for DispatcherQueue { } unsafe impl ::windows_core::Interface for DispatcherQueue { type Vtable = IDispatcherQueue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DispatcherQueue { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DispatcherQueue { const NAME: &'static str = "Windows.System.DispatcherQueue"; } -::windows_core::imp::interface_hierarchy!(DispatcherQueue, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DispatcherQueue {} unsafe impl ::core::marker::Sync for DispatcherQueue {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DispatcherQueueController(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DispatcherQueueController, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DispatcherQueueController { pub fn DispatcherQueue(&self) -> ::windows_core::Result { let this = self; @@ -2816,19 +2062,17 @@ impl ::windows_core::RuntimeType for DispatcherQueueController { } unsafe impl ::windows_core::Interface for DispatcherQueueController { type Vtable = IDispatcherQueueController_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DispatcherQueueController { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DispatcherQueueController { const NAME: &'static str = "Windows.System.DispatcherQueueController"; } -::windows_core::imp::interface_hierarchy!(DispatcherQueueController, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DispatcherQueueController {} unsafe impl ::core::marker::Sync for DispatcherQueueController {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DispatcherQueueShutdownStartingEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DispatcherQueueShutdownStartingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DispatcherQueueShutdownStartingEventArgs { pub fn GetDeferral(&self) -> ::windows_core::Result { let this = self; @@ -2843,19 +2087,17 @@ impl ::windows_core::RuntimeType for DispatcherQueueShutdownStartingEventArgs { } unsafe impl ::windows_core::Interface for DispatcherQueueShutdownStartingEventArgs { type Vtable = IDispatcherQueueShutdownStartingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DispatcherQueueShutdownStartingEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DispatcherQueueShutdownStartingEventArgs { const NAME: &'static str = "Windows.System.DispatcherQueueShutdownStartingEventArgs"; } -::windows_core::imp::interface_hierarchy!(DispatcherQueueShutdownStartingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DispatcherQueueShutdownStartingEventArgs {} unsafe impl ::core::marker::Sync for DispatcherQueueShutdownStartingEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DispatcherQueueTimer(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DispatcherQueueTimer, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DispatcherQueueTimer { pub fn Interval(&self) -> ::windows_core::Result { let this = self; @@ -2914,19 +2156,18 @@ impl ::windows_core::RuntimeType for DispatcherQueueTimer { } unsafe impl ::windows_core::Interface for DispatcherQueueTimer { type Vtable = IDispatcherQueueTimer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DispatcherQueueTimer { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DispatcherQueueTimer { const NAME: &'static str = "Windows.System.DispatcherQueueTimer"; } -::windows_core::imp::interface_hierarchy!(DispatcherQueueTimer, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DispatcherQueueTimer {} unsafe impl ::core::marker::Sync for DispatcherQueueTimer {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct FolderLauncherOptions(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(FolderLauncherOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(FolderLauncherOptions, ILauncherViewOptions); impl FolderLauncherOptions { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2947,7 +2188,7 @@ impl FolderLauncherOptions { #[doc = "Required features: `\"UI_ViewManagement\"`"] #[cfg(feature = "UI_ViewManagement")] pub fn DesiredRemainingView(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DesiredRemainingView)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2956,7 +2197,7 @@ impl FolderLauncherOptions { #[doc = "Required features: `\"UI_ViewManagement\"`"] #[cfg(feature = "UI_ViewManagement")] pub fn SetDesiredRemainingView(&self, value: super::UI::ViewManagement::ViewSizePreference) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDesiredRemainingView)(::windows_core::Interface::as_raw(this), value).ok() } } } @@ -2965,15 +2206,11 @@ impl ::windows_core::RuntimeType for FolderLauncherOptions { } unsafe impl ::windows_core::Interface for FolderLauncherOptions { type Vtable = IFolderLauncherOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for FolderLauncherOptions { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for FolderLauncherOptions { const NAME: &'static str = "Windows.System.FolderLauncherOptions"; } -::windows_core::imp::interface_hierarchy!(FolderLauncherOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for FolderLauncherOptions {} unsafe impl ::core::marker::Send for FolderLauncherOptions {} unsafe impl ::core::marker::Sync for FolderLauncherOptions {} pub struct KnownUserProperties; @@ -3055,6 +2292,7 @@ impl ::windows_core::RuntimeName for KnownUserProperties { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LaunchUriResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LaunchUriResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl LaunchUriResult { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -3078,14 +2316,11 @@ impl ::windows_core::RuntimeType for LaunchUriResult { } unsafe impl ::windows_core::Interface for LaunchUriResult { type Vtable = ILaunchUriResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LaunchUriResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LaunchUriResult { const NAME: &'static str = "Windows.System.LaunchUriResult"; } -::windows_core::imp::interface_hierarchy!(LaunchUriResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for LaunchUriResult {} unsafe impl ::core::marker::Sync for LaunchUriResult {} pub struct Launcher; @@ -3094,23 +2329,23 @@ impl Launcher { #[cfg(feature = "Storage")] pub fn LaunchFileAsync(file: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::ILauncherStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).LaunchFileAsync)(::windows_core::Interface::as_raw(this), file.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).LaunchFileAsync)(::windows_core::Interface::as_raw(this), file.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Storage\"`"] #[cfg(feature = "Storage")] pub fn LaunchFileWithOptionsAsync(file: P0, options: P1) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { Self::ILauncherStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).LaunchFileWithOptionsAsync)(::windows_core::Interface::as_raw(this), file.try_into_param()?.abi(), options.into_param().abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).LaunchFileWithOptionsAsync)(::windows_core::Interface::as_raw(this), file.into_param().abi(), options.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn LaunchUriAsync(uri: P0) -> ::windows_core::Result> @@ -3236,23 +2471,23 @@ impl Launcher { #[cfg(feature = "Storage")] pub fn LaunchFolderAsync(folder: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::ILauncherStatics3(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).LaunchFolderAsync)(::windows_core::Interface::as_raw(this), folder.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).LaunchFolderAsync)(::windows_core::Interface::as_raw(this), folder.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Storage\"`"] #[cfg(feature = "Storage")] pub fn LaunchFolderWithOptionsAsync(folder: P0, options: P1) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { Self::ILauncherStatics3(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).LaunchFolderWithOptionsAsync)(::windows_core::Interface::as_raw(this), folder.try_into_param()?.abi(), options.into_param().abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).LaunchFolderWithOptionsAsync)(::windows_core::Interface::as_raw(this), folder.into_param().abi(), options.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn QueryAppUriSupportAsync(uri: P0) -> ::windows_core::Result> @@ -3410,6 +2645,8 @@ impl ::windows_core::RuntimeName for Launcher { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LauncherOptions(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LauncherOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(LauncherOptions, ILauncherViewOptions); impl LauncherOptions { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -3495,20 +2732,20 @@ impl LauncherOptions { unsafe { (::windows_core::Interface::vtable(this).SetContentType)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn TargetApplicationPackageFamilyName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TargetApplicationPackageFamilyName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetTargetApplicationPackageFamilyName(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetTargetApplicationPackageFamilyName)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } #[doc = "Required features: `\"Storage_Search\"`"] #[cfg(feature = "Storage_Search")] pub fn NeighboringFilesQuery(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NeighboringFilesQuery)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3520,35 +2757,35 @@ impl LauncherOptions { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn IgnoreAppUriHandlers(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IgnoreAppUriHandlers)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIgnoreAppUriHandlers(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIgnoreAppUriHandlers)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn LimitPickerToCurrentAppAndAppUriHandlers(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).LimitPickerToCurrentAppAndAppUriHandlers)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetLimitPickerToCurrentAppAndAppUriHandlers(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetLimitPickerToCurrentAppAndAppUriHandlers)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"UI_ViewManagement\"`"] #[cfg(feature = "UI_ViewManagement")] pub fn DesiredRemainingView(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DesiredRemainingView)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3557,7 +2794,7 @@ impl LauncherOptions { #[doc = "Required features: `\"UI_ViewManagement\"`"] #[cfg(feature = "UI_ViewManagement")] pub fn SetDesiredRemainingView(&self, value: super::UI::ViewManagement::ViewSizePreference) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDesiredRemainingView)(::windows_core::Interface::as_raw(this), value).ok() } } } @@ -3566,20 +2803,17 @@ impl ::windows_core::RuntimeType for LauncherOptions { } unsafe impl ::windows_core::Interface for LauncherOptions { type Vtable = ILauncherOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LauncherOptions { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LauncherOptions { const NAME: &'static str = "Windows.System.LauncherOptions"; } -::windows_core::imp::interface_hierarchy!(LauncherOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for LauncherOptions {} unsafe impl ::core::marker::Send for LauncherOptions {} unsafe impl ::core::marker::Sync for LauncherOptions {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LauncherUIOptions(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LauncherUIOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); impl LauncherUIOptions { pub fn InvocationPoint(&self) -> ::windows_core::Result> { let this = self; @@ -3590,10 +2824,10 @@ impl LauncherUIOptions { } pub fn SetInvocationPoint(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetInvocationPoint)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetInvocationPoint)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn SelectionRect(&self) -> ::windows_core::Result> { let this = self; @@ -3604,10 +2838,10 @@ impl LauncherUIOptions { } pub fn SetSelectionRect(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetSelectionRect)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetSelectionRect)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } #[doc = "Required features: `\"UI_Popups\"`"] #[cfg(feature = "UI_Popups")] @@ -3630,14 +2864,11 @@ impl ::windows_core::RuntimeType for LauncherUIOptions { } unsafe impl ::windows_core::Interface for LauncherUIOptions { type Vtable = ILauncherUIOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LauncherUIOptions { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LauncherUIOptions { const NAME: &'static str = "Windows.System.LauncherUIOptions"; } -::windows_core::imp::interface_hierarchy!(LauncherUIOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for LauncherUIOptions {} unsafe impl ::core::marker::Sync for LauncherUIOptions {} pub struct MemoryManager; @@ -3773,6 +3004,7 @@ impl ::windows_core::RuntimeName for ProcessLauncher { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ProcessLauncherOptions(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ProcessLauncherOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ProcessLauncherOptions { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -3794,10 +3026,10 @@ impl ProcessLauncherOptions { #[cfg(feature = "Storage_Streams")] pub fn SetStandardInput(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetStandardInput)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetStandardInput)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] @@ -3812,10 +3044,10 @@ impl ProcessLauncherOptions { #[cfg(feature = "Storage_Streams")] pub fn SetStandardOutput(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetStandardOutput)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetStandardOutput)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] @@ -3830,10 +3062,10 @@ impl ProcessLauncherOptions { #[cfg(feature = "Storage_Streams")] pub fn SetStandardError(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetStandardError)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetStandardError)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn WorkingDirectory(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -3852,19 +3084,17 @@ impl ::windows_core::RuntimeType for ProcessLauncherOptions { } unsafe impl ::windows_core::Interface for ProcessLauncherOptions { type Vtable = IProcessLauncherOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ProcessLauncherOptions { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ProcessLauncherOptions { const NAME: &'static str = "Windows.System.ProcessLauncherOptions"; } -::windows_core::imp::interface_hierarchy!(ProcessLauncherOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ProcessLauncherOptions {} unsafe impl ::core::marker::Sync for ProcessLauncherOptions {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ProcessLauncherResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ProcessLauncherResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ProcessLauncherResult { pub fn ExitCode(&self) -> ::windows_core::Result { let this = self; @@ -3879,19 +3109,17 @@ impl ::windows_core::RuntimeType for ProcessLauncherResult { } unsafe impl ::windows_core::Interface for ProcessLauncherResult { type Vtable = IProcessLauncherResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ProcessLauncherResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ProcessLauncherResult { const NAME: &'static str = "Windows.System.ProcessLauncherResult"; } -::windows_core::imp::interface_hierarchy!(ProcessLauncherResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ProcessLauncherResult {} unsafe impl ::core::marker::Sync for ProcessLauncherResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ProcessMemoryReport(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ProcessMemoryReport, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ProcessMemoryReport { pub fn PrivateWorkingSetUsage(&self) -> ::windows_core::Result { let this = self; @@ -3913,19 +3141,17 @@ impl ::windows_core::RuntimeType for ProcessMemoryReport { } unsafe impl ::windows_core::Interface for ProcessMemoryReport { type Vtable = IProcessMemoryReport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ProcessMemoryReport { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ProcessMemoryReport { const NAME: &'static str = "Windows.System.ProcessMemoryReport"; } -::windows_core::imp::interface_hierarchy!(ProcessMemoryReport, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ProcessMemoryReport {} unsafe impl ::core::marker::Sync for ProcessMemoryReport {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ProtocolForResultsOperation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ProtocolForResultsOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ProtocolForResultsOperation { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -3942,14 +3168,11 @@ impl ::windows_core::RuntimeType for ProtocolForResultsOperation { } unsafe impl ::windows_core::Interface for ProtocolForResultsOperation { type Vtable = IProtocolForResultsOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ProtocolForResultsOperation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ProtocolForResultsOperation { const NAME: &'static str = "Windows.System.ProtocolForResultsOperation"; } -::windows_core::imp::interface_hierarchy!(ProtocolForResultsOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ProtocolForResultsOperation {} unsafe impl ::core::marker::Sync for ProtocolForResultsOperation {} pub struct RemoteLauncher; @@ -4005,6 +3228,7 @@ impl ::windows_core::RuntimeName for RemoteLauncher { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RemoteLauncherOptions(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RemoteLauncherOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RemoteLauncherOptions { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -4042,14 +3266,11 @@ impl ::windows_core::RuntimeType for RemoteLauncherOptions { } unsafe impl ::windows_core::Interface for RemoteLauncherOptions { type Vtable = IRemoteLauncherOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RemoteLauncherOptions { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RemoteLauncherOptions { const NAME: &'static str = "Windows.System.RemoteLauncherOptions"; } -::windows_core::imp::interface_hierarchy!(RemoteLauncherOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RemoteLauncherOptions {} unsafe impl ::core::marker::Sync for RemoteLauncherOptions {} pub struct ShutdownManager; @@ -4134,6 +3355,7 @@ impl ::windows_core::RuntimeName for TimeZoneSettings { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct User(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(User, ::windows_core::IUnknown, ::windows_core::IInspectable); impl User { pub fn NonRoamableId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -4167,12 +3389,12 @@ impl User { #[cfg(feature = "Foundation_Collections")] pub fn GetPropertiesAsync(&self, values: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).GetPropertiesAsync)(::windows_core::Interface::as_raw(this), values.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).GetPropertiesAsync)(::windows_core::Interface::as_raw(this), values.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Storage_Streams\"`"] @@ -4185,7 +3407,7 @@ impl User { } } pub fn CheckUserAgeConsentGroupAsync(&self, consentgroup: UserAgeConsentGroup) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CheckUserAgeConsentGroupAsync)(::windows_core::Interface::as_raw(this), consentgroup, &mut result__).from_abi(result__) @@ -4249,19 +3471,17 @@ impl ::windows_core::RuntimeType for User { } unsafe impl ::windows_core::Interface for User { type Vtable = IUser_Vtbl; -} -unsafe impl ::windows_core::ComInterface for User { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for User { const NAME: &'static str = "Windows.System.User"; } -::windows_core::imp::interface_hierarchy!(User, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for User {} unsafe impl ::core::marker::Sync for User {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UserAuthenticationStatusChangeDeferral(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UserAuthenticationStatusChangeDeferral, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UserAuthenticationStatusChangeDeferral { pub fn Complete(&self) -> ::windows_core::Result<()> { let this = self; @@ -4273,19 +3493,17 @@ impl ::windows_core::RuntimeType for UserAuthenticationStatusChangeDeferral { } unsafe impl ::windows_core::Interface for UserAuthenticationStatusChangeDeferral { type Vtable = IUserAuthenticationStatusChangeDeferral_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UserAuthenticationStatusChangeDeferral { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UserAuthenticationStatusChangeDeferral { const NAME: &'static str = "Windows.System.UserAuthenticationStatusChangeDeferral"; } -::windows_core::imp::interface_hierarchy!(UserAuthenticationStatusChangeDeferral, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UserAuthenticationStatusChangeDeferral {} unsafe impl ::core::marker::Sync for UserAuthenticationStatusChangeDeferral {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UserAuthenticationStatusChangingEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UserAuthenticationStatusChangingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UserAuthenticationStatusChangingEventArgs { pub fn GetDeferral(&self) -> ::windows_core::Result { let this = self; @@ -4321,19 +3539,17 @@ impl ::windows_core::RuntimeType for UserAuthenticationStatusChangingEventArgs { } unsafe impl ::windows_core::Interface for UserAuthenticationStatusChangingEventArgs { type Vtable = IUserAuthenticationStatusChangingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UserAuthenticationStatusChangingEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UserAuthenticationStatusChangingEventArgs { const NAME: &'static str = "Windows.System.UserAuthenticationStatusChangingEventArgs"; } -::windows_core::imp::interface_hierarchy!(UserAuthenticationStatusChangingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UserAuthenticationStatusChangingEventArgs {} unsafe impl ::core::marker::Sync for UserAuthenticationStatusChangingEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UserChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UserChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UserChangedEventArgs { pub fn User(&self) -> ::windows_core::Result { let this = self; @@ -4345,7 +3561,7 @@ impl UserChangedEventArgs { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn ChangedPropertyKinds(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ChangedPropertyKinds)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4357,14 +3573,11 @@ impl ::windows_core::RuntimeType for UserChangedEventArgs { } unsafe impl ::windows_core::Interface for UserChangedEventArgs { type Vtable = IUserChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UserChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UserChangedEventArgs { const NAME: &'static str = "Windows.System.UserChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(UserChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UserChangedEventArgs {} unsafe impl ::core::marker::Sync for UserChangedEventArgs {} pub struct UserDeviceAssociation; @@ -4399,6 +3612,7 @@ impl ::windows_core::RuntimeName for UserDeviceAssociation { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UserDeviceAssociationChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UserDeviceAssociationChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UserDeviceAssociationChangedEventArgs { pub fn DeviceId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -4427,19 +3641,17 @@ impl ::windows_core::RuntimeType for UserDeviceAssociationChangedEventArgs { } unsafe impl ::windows_core::Interface for UserDeviceAssociationChangedEventArgs { type Vtable = IUserDeviceAssociationChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UserDeviceAssociationChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UserDeviceAssociationChangedEventArgs { const NAME: &'static str = "Windows.System.UserDeviceAssociationChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(UserDeviceAssociationChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UserDeviceAssociationChangedEventArgs {} unsafe impl ::core::marker::Sync for UserDeviceAssociationChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UserPicker(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UserPicker, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UserPicker { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -4497,19 +3709,17 @@ impl ::windows_core::RuntimeType for UserPicker { } unsafe impl ::windows_core::Interface for UserPicker { type Vtable = IUserPicker_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UserPicker { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UserPicker { const NAME: &'static str = "Windows.System.UserPicker"; } -::windows_core::imp::interface_hierarchy!(UserPicker, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UserPicker {} unsafe impl ::core::marker::Sync for UserPicker {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UserWatcher(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UserWatcher, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UserWatcher { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -4630,14 +3840,11 @@ impl ::windows_core::RuntimeType for UserWatcher { } unsafe impl ::windows_core::Interface for UserWatcher { type Vtable = IUserWatcher_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UserWatcher { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UserWatcher { const NAME: &'static str = "Windows.System.UserWatcher"; } -::windows_core::imp::interface_hierarchy!(UserWatcher, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UserWatcher {} unsafe impl ::core::marker::Sync for UserWatcher {} #[repr(transparent)] @@ -5347,9 +4554,7 @@ impl ::core::ops::Not for VirtualKeyModifiers { impl ::windows_core::RuntimeType for VirtualKeyModifiers { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::from_slice(b"enum(Windows.System.VirtualKeyModifiers;u4)"); } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct DispatcherQueueHandler(pub ::windows_core::IUnknown); +::windows_core::imp::com_interface!(DispatcherQueueHandler, DispatcherQueueHandler_Vtbl, 0xdfa2dc9c_1a2d_4917_98f2_939af1d6e0c8); impl DispatcherQueueHandler { pub fn new ::windows_core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = DispatcherQueueHandlerBox:: { vtable: &DispatcherQueueHandlerBox::::VTABLE, count: ::windows_core::imp::RefCount::new(1), invoke }; @@ -5376,7 +4581,7 @@ impl ::windows_core::Result<()> + ::core::marker::Send + 'static> if iid.is_null() || interface.is_null() { return ::windows_core::HRESULT(-2147467261); } - *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; + *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::Interface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::Interface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; if (*interface).is_null() { ::windows_core::HRESULT(-2147467262) } else { @@ -5401,12 +4606,6 @@ impl ::windows_core::Result<()> + ::core::marker::Send + 'static> ((*this).invoke)().into() } } -unsafe impl ::windows_core::Interface for DispatcherQueueHandler { - type Vtable = DispatcherQueueHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DispatcherQueueHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdfa2dc9c_1a2d_4917_98f2_939af1d6e0c8); -} impl ::windows_core::RuntimeType for DispatcherQueueHandler { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } diff --git a/crates/libs/windows/src/Windows/UI/Accessibility/mod.rs b/crates/libs/windows/src/Windows/UI/Accessibility/mod.rs index 79d24f63a0..eefae874d5 100644 --- a/crates/libs/windows/src/Windows/UI/Accessibility/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Accessibility/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IScreenReaderPositionChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IScreenReaderPositionChangedEventArgs { - type Vtable = IScreenReaderPositionChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IScreenReaderPositionChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x557eb5e5_54d0_5ccd_9fc5_ed33357f8a9f); -} +::windows_core::imp::com_interface!(IScreenReaderPositionChangedEventArgs, IScreenReaderPositionChangedEventArgs_Vtbl, 0x557eb5e5_54d0_5ccd_9fc5_ed33357f8a9f); #[repr(C)] #[doc(hidden)] pub struct IScreenReaderPositionChangedEventArgs_Vtbl { @@ -15,16 +6,7 @@ pub struct IScreenReaderPositionChangedEventArgs_Vtbl { pub ScreenPositionInRawPixels: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::Rect) -> ::windows_core::HRESULT, pub IsReadingText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IScreenReaderService(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IScreenReaderService { - type Vtable = IScreenReaderService_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IScreenReaderService { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x19475427_eac0_50d3_bdd9_9b487a226256); -} +::windows_core::imp::com_interface!(IScreenReaderService, IScreenReaderService_Vtbl, 0x19475427_eac0_50d3_bdd9_9b487a226256); #[repr(C)] #[doc(hidden)] pub struct IScreenReaderService_Vtbl { @@ -36,6 +18,7 @@ pub struct IScreenReaderService_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ScreenReaderPositionChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ScreenReaderPositionChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ScreenReaderPositionChangedEventArgs { pub fn ScreenPositionInRawPixels(&self) -> ::windows_core::Result { let this = self; @@ -57,19 +40,17 @@ impl ::windows_core::RuntimeType for ScreenReaderPositionChangedEventArgs { } unsafe impl ::windows_core::Interface for ScreenReaderPositionChangedEventArgs { type Vtable = IScreenReaderPositionChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ScreenReaderPositionChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ScreenReaderPositionChangedEventArgs { const NAME: &'static str = "Windows.UI.Accessibility.ScreenReaderPositionChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(ScreenReaderPositionChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ScreenReaderPositionChangedEventArgs {} unsafe impl ::core::marker::Sync for ScreenReaderPositionChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ScreenReaderService(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ScreenReaderService, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ScreenReaderService { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -105,13 +86,10 @@ impl ::windows_core::RuntimeType for ScreenReaderService { } unsafe impl ::windows_core::Interface for ScreenReaderService { type Vtable = IScreenReaderService_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ScreenReaderService { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ScreenReaderService { const NAME: &'static str = "Windows.UI.Accessibility.ScreenReaderService"; } -::windows_core::imp::interface_hierarchy!(ScreenReaderService, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ScreenReaderService {} unsafe impl ::core::marker::Sync for ScreenReaderService {} diff --git a/crates/libs/windows/src/Windows/UI/ApplicationSettings/mod.rs b/crates/libs/windows/src/Windows/UI/ApplicationSettings/mod.rs index 861acd5b84..b37c024ee8 100644 --- a/crates/libs/windows/src/Windows/UI/ApplicationSettings/mod.rs +++ b/crates/libs/windows/src/Windows/UI/ApplicationSettings/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAccountsSettingsPane(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAccountsSettingsPane { - type Vtable = IAccountsSettingsPane_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAccountsSettingsPane { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x81ea942c_4f09_4406_a538_838d9b14b7e6); -} +::windows_core::imp::com_interface!(IAccountsSettingsPane, IAccountsSettingsPane_Vtbl, 0x81ea942c_4f09_4406_a538_838d9b14b7e6); #[repr(C)] #[doc(hidden)] pub struct IAccountsSettingsPane_Vtbl { @@ -15,16 +6,7 @@ pub struct IAccountsSettingsPane_Vtbl { pub AccountCommandsRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveAccountCommandsRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAccountsSettingsPaneCommandsRequestedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAccountsSettingsPaneCommandsRequestedEventArgs { - type Vtable = IAccountsSettingsPaneCommandsRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAccountsSettingsPaneCommandsRequestedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3b68c099_db19_45d0_9abf_95d3773c9330); -} +::windows_core::imp::com_interface!(IAccountsSettingsPaneCommandsRequestedEventArgs, IAccountsSettingsPaneCommandsRequestedEventArgs_Vtbl, 0x3b68c099_db19_45d0_9abf_95d3773c9330); #[repr(C)] #[doc(hidden)] pub struct IAccountsSettingsPaneCommandsRequestedEventArgs_Vtbl { @@ -49,16 +31,7 @@ pub struct IAccountsSettingsPaneCommandsRequestedEventArgs_Vtbl { pub SetHeaderText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAccountsSettingsPaneCommandsRequestedEventArgs2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAccountsSettingsPaneCommandsRequestedEventArgs2 { - type Vtable = IAccountsSettingsPaneCommandsRequestedEventArgs2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAccountsSettingsPaneCommandsRequestedEventArgs2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x362f7bad_4e37_4967_8c40_e78ee7a1e5bb); -} +::windows_core::imp::com_interface!(IAccountsSettingsPaneCommandsRequestedEventArgs2, IAccountsSettingsPaneCommandsRequestedEventArgs2_Vtbl, 0x362f7bad_4e37_4967_8c40_e78ee7a1e5bb); #[repr(C)] #[doc(hidden)] pub struct IAccountsSettingsPaneCommandsRequestedEventArgs2_Vtbl { @@ -68,32 +41,14 @@ pub struct IAccountsSettingsPaneCommandsRequestedEventArgs2_Vtbl { #[cfg(not(feature = "System"))] User: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAccountsSettingsPaneEventDeferral(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAccountsSettingsPaneEventDeferral { - type Vtable = IAccountsSettingsPaneEventDeferral_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAccountsSettingsPaneEventDeferral { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcbf25d3f_e5ba_40ef_93da_65e096e5fb04); -} +::windows_core::imp::com_interface!(IAccountsSettingsPaneEventDeferral, IAccountsSettingsPaneEventDeferral_Vtbl, 0xcbf25d3f_e5ba_40ef_93da_65e096e5fb04); #[repr(C)] #[doc(hidden)] pub struct IAccountsSettingsPaneEventDeferral_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Complete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAccountsSettingsPaneStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAccountsSettingsPaneStatics { - type Vtable = IAccountsSettingsPaneStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAccountsSettingsPaneStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x561f8b60_b0ec_4150_a8dc_208ee44b068a); -} +::windows_core::imp::com_interface!(IAccountsSettingsPaneStatics, IAccountsSettingsPaneStatics_Vtbl, 0x561f8b60_b0ec_4150_a8dc_208ee44b068a); #[repr(C)] #[doc(hidden)] pub struct IAccountsSettingsPaneStatics_Vtbl { @@ -101,16 +56,7 @@ pub struct IAccountsSettingsPaneStatics_Vtbl { pub GetForCurrentView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Show: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAccountsSettingsPaneStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAccountsSettingsPaneStatics2 { - type Vtable = IAccountsSettingsPaneStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAccountsSettingsPaneStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd21df7c2_ce0d_484f_b8e8_e823c215765e); -} +::windows_core::imp::com_interface!(IAccountsSettingsPaneStatics2, IAccountsSettingsPaneStatics2_Vtbl, 0xd21df7c2_ce0d_484f_b8e8_e823c215765e); #[repr(C)] #[doc(hidden)] pub struct IAccountsSettingsPaneStatics2_Vtbl { @@ -118,16 +64,7 @@ pub struct IAccountsSettingsPaneStatics2_Vtbl { pub ShowManageAccountsAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ShowAddAccountAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAccountsSettingsPaneStatics3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAccountsSettingsPaneStatics3 { - type Vtable = IAccountsSettingsPaneStatics3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAccountsSettingsPaneStatics3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x08410458_a2ba_4c6f_b4ac_48f514331216); -} +::windows_core::imp::com_interface!(IAccountsSettingsPaneStatics3, IAccountsSettingsPaneStatics3_Vtbl, 0x08410458_a2ba_4c6f_b4ac_48f514331216); #[repr(C)] #[doc(hidden)] pub struct IAccountsSettingsPaneStatics3_Vtbl { @@ -141,16 +78,7 @@ pub struct IAccountsSettingsPaneStatics3_Vtbl { #[cfg(not(feature = "System"))] ShowAddAccountForUserAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICredentialCommand(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICredentialCommand { - type Vtable = ICredentialCommand_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICredentialCommand { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa5f665e6_6143_4a7a_a971_b017ba978ce2); -} +::windows_core::imp::com_interface!(ICredentialCommand, ICredentialCommand_Vtbl, 0xa5f665e6_6143_4a7a_a971_b017ba978ce2); #[repr(C)] #[doc(hidden)] pub struct ICredentialCommand_Vtbl { @@ -161,16 +89,7 @@ pub struct ICredentialCommand_Vtbl { PasswordCredential: usize, pub CredentialDeleted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICredentialCommandFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICredentialCommandFactory { - type Vtable = ICredentialCommandFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICredentialCommandFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x27e88c17_bc3e_4b80_9495_4ed720e48a91); -} +::windows_core::imp::com_interface!(ICredentialCommandFactory, ICredentialCommandFactory_Vtbl, 0x27e88c17_bc3e_4b80_9495_4ed720e48a91); #[repr(C)] #[doc(hidden)] pub struct ICredentialCommandFactory_Vtbl { @@ -184,16 +103,7 @@ pub struct ICredentialCommandFactory_Vtbl { #[cfg(not(feature = "Security_Credentials"))] CreateCredentialCommandWithHandler: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISettingsCommandFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISettingsCommandFactory { - type Vtable = ISettingsCommandFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISettingsCommandFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x68e15b33_1c83_433a_aa5a_ceeea5bd4764); -} +::windows_core::imp::com_interface!(ISettingsCommandFactory, ISettingsCommandFactory_Vtbl, 0x68e15b33_1c83_433a_aa5a_ceeea5bd4764); #[repr(C)] #[doc(hidden)] pub struct ISettingsCommandFactory_Vtbl { @@ -203,16 +113,7 @@ pub struct ISettingsCommandFactory_Vtbl { #[cfg(not(feature = "UI_Popups"))] CreateSettingsCommand: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISettingsCommandStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISettingsCommandStatics { - type Vtable = ISettingsCommandStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISettingsCommandStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x749ae954_2f69_4b17_8aba_d05ce5778e46); -} +::windows_core::imp::com_interface!(ISettingsCommandStatics, ISettingsCommandStatics_Vtbl, 0x749ae954_2f69_4b17_8aba_d05ce5778e46); #[repr(C)] #[doc(hidden)] pub struct ISettingsCommandStatics_Vtbl { @@ -222,19 +123,13 @@ pub struct ISettingsCommandStatics_Vtbl { #[cfg(not(feature = "UI_Popups"))] AccountsCommand: usize, } -#[doc(hidden)] -#[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISettingsPane(::windows_core::IUnknown); #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for ISettingsPane { - type Vtable = ISettingsPane_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for ISettingsPane { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb1cd0932_4570_4c69_8d38_89446561ace0); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + ISettingsPane, + ISettingsPane_Vtbl, + 0xb1cd0932_4570_4c69_8d38_89446561ace0 +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -249,19 +144,13 @@ pub struct ISettingsPane_Vtbl { #[cfg(not(feature = "deprecated"))] RemoveCommandsRequested: usize, } -#[doc(hidden)] #[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISettingsPaneCommandsRequest(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for ISettingsPaneCommandsRequest { - type Vtable = ISettingsPaneCommandsRequest_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for ISettingsPaneCommandsRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x44df23ae_5d6e_4068_a168_f47643182114); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + ISettingsPaneCommandsRequest, + ISettingsPaneCommandsRequest_Vtbl, + 0x44df23ae_5d6e_4068_a168_f47643182114 +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -272,19 +161,13 @@ pub struct ISettingsPaneCommandsRequest_Vtbl { #[cfg(not(all(feature = "Foundation_Collections", feature = "UI_Popups", feature = "deprecated")))] ApplicationCommands: usize, } -#[doc(hidden)] -#[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISettingsPaneCommandsRequestedEventArgs(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for ISettingsPaneCommandsRequestedEventArgs { - type Vtable = ISettingsPaneCommandsRequestedEventArgs_Vtbl; -} #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for ISettingsPaneCommandsRequestedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x205f5d24_1b48_4629_a6ca_2fdfedafb75d); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + ISettingsPaneCommandsRequestedEventArgs, + ISettingsPaneCommandsRequestedEventArgs_Vtbl, + 0x205f5d24_1b48_4629_a6ca_2fdfedafb75d +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -295,19 +178,13 @@ pub struct ISettingsPaneCommandsRequestedEventArgs_Vtbl { #[cfg(not(feature = "deprecated"))] Request: usize, } -#[doc(hidden)] #[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISettingsPaneStatics(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for ISettingsPaneStatics { - type Vtable = ISettingsPaneStatics_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for ISettingsPaneStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1c6a52c5_ff19_471b_ba6b_f8f35694ad9a); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + ISettingsPaneStatics, + ISettingsPaneStatics_Vtbl, + 0x1c6a52c5_ff19_471b_ba6b_f8f35694ad9a +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -326,16 +203,7 @@ pub struct ISettingsPaneStatics_Vtbl { #[cfg(not(feature = "deprecated"))] Edge: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebAccountCommand(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebAccountCommand { - type Vtable = IWebAccountCommand_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebAccountCommand { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcaa39398_9cfa_4246_b0c4_a913a3896541); -} +::windows_core::imp::com_interface!(IWebAccountCommand, IWebAccountCommand_Vtbl, 0xcaa39398_9cfa_4246_b0c4_a913a3896541); #[repr(C)] #[doc(hidden)] pub struct IWebAccountCommand_Vtbl { @@ -347,16 +215,7 @@ pub struct IWebAccountCommand_Vtbl { pub Invoked: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Actions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut SupportedWebAccountActions) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebAccountCommandFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebAccountCommandFactory { - type Vtable = IWebAccountCommandFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebAccountCommandFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbfa6cdff_2f2d_42f5_81de_1d56bafc496d); -} +::windows_core::imp::com_interface!(IWebAccountCommandFactory, IWebAccountCommandFactory_Vtbl, 0xbfa6cdff_2f2d_42f5_81de_1d56bafc496d); #[repr(C)] #[doc(hidden)] pub struct IWebAccountCommandFactory_Vtbl { @@ -366,32 +225,14 @@ pub struct IWebAccountCommandFactory_Vtbl { #[cfg(not(feature = "Security_Credentials"))] CreateWebAccountCommand: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebAccountInvokedArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebAccountInvokedArgs { - type Vtable = IWebAccountInvokedArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebAccountInvokedArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe7abcc40_a1d8_4c5d_9a7f_1d34b2f90ad2); -} +::windows_core::imp::com_interface!(IWebAccountInvokedArgs, IWebAccountInvokedArgs_Vtbl, 0xe7abcc40_a1d8_4c5d_9a7f_1d34b2f90ad2); #[repr(C)] #[doc(hidden)] pub struct IWebAccountInvokedArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Action: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut WebAccountAction) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebAccountProviderCommand(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebAccountProviderCommand { - type Vtable = IWebAccountProviderCommand_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebAccountProviderCommand { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd69bdd9a_a0a6_4e9b_88dc_c71e757a3501); -} +::windows_core::imp::com_interface!(IWebAccountProviderCommand, IWebAccountProviderCommand_Vtbl, 0xd69bdd9a_a0a6_4e9b_88dc_c71e757a3501); #[repr(C)] #[doc(hidden)] pub struct IWebAccountProviderCommand_Vtbl { @@ -402,16 +243,7 @@ pub struct IWebAccountProviderCommand_Vtbl { WebAccountProvider: usize, pub Invoked: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebAccountProviderCommandFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebAccountProviderCommandFactory { - type Vtable = IWebAccountProviderCommandFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebAccountProviderCommandFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd5658a1b_b176_4776_8469_a9d3ff0b3f59); -} +::windows_core::imp::com_interface!(IWebAccountProviderCommandFactory, IWebAccountProviderCommandFactory_Vtbl, 0xd5658a1b_b176_4776_8469_a9d3ff0b3f59); #[repr(C)] #[doc(hidden)] pub struct IWebAccountProviderCommandFactory_Vtbl { @@ -424,6 +256,7 @@ pub struct IWebAccountProviderCommandFactory_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AccountsSettingsPane(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AccountsSettingsPane, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AccountsSettingsPane { pub fn AccountCommandsRequested(&self, handler: P0) -> ::windows_core::Result where @@ -503,17 +336,15 @@ impl ::windows_core::RuntimeType for AccountsSettingsPane { } unsafe impl ::windows_core::Interface for AccountsSettingsPane { type Vtable = IAccountsSettingsPane_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AccountsSettingsPane { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AccountsSettingsPane { const NAME: &'static str = "Windows.UI.ApplicationSettings.AccountsSettingsPane"; } -::windows_core::imp::interface_hierarchy!(AccountsSettingsPane, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AccountsSettingsPaneCommandsRequestedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AccountsSettingsPaneCommandsRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AccountsSettingsPaneCommandsRequestedEventArgs { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -572,7 +403,7 @@ impl AccountsSettingsPaneCommandsRequestedEventArgs { #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -584,17 +415,15 @@ impl ::windows_core::RuntimeType for AccountsSettingsPaneCommandsRequestedEventA } unsafe impl ::windows_core::Interface for AccountsSettingsPaneCommandsRequestedEventArgs { type Vtable = IAccountsSettingsPaneCommandsRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AccountsSettingsPaneCommandsRequestedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AccountsSettingsPaneCommandsRequestedEventArgs { const NAME: &'static str = "Windows.UI.ApplicationSettings.AccountsSettingsPaneCommandsRequestedEventArgs"; } -::windows_core::imp::interface_hierarchy!(AccountsSettingsPaneCommandsRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AccountsSettingsPaneEventDeferral(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AccountsSettingsPaneEventDeferral, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AccountsSettingsPaneEventDeferral { pub fn Complete(&self) -> ::windows_core::Result<()> { let this = self; @@ -606,17 +435,15 @@ impl ::windows_core::RuntimeType for AccountsSettingsPaneEventDeferral { } unsafe impl ::windows_core::Interface for AccountsSettingsPaneEventDeferral { type Vtable = IAccountsSettingsPaneEventDeferral_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AccountsSettingsPaneEventDeferral { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AccountsSettingsPaneEventDeferral { const NAME: &'static str = "Windows.UI.ApplicationSettings.AccountsSettingsPaneEventDeferral"; } -::windows_core::imp::interface_hierarchy!(AccountsSettingsPaneEventDeferral, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CredentialCommand(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CredentialCommand, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CredentialCommand { #[doc = "Required features: `\"Security_Credentials\"`"] #[cfg(feature = "Security_Credentials")] @@ -668,20 +495,21 @@ impl ::windows_core::RuntimeType for CredentialCommand { } unsafe impl ::windows_core::Interface for CredentialCommand { type Vtable = ICredentialCommand_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CredentialCommand { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CredentialCommand { const NAME: &'static str = "Windows.UI.ApplicationSettings.CredentialCommand"; } -::windows_core::imp::interface_hierarchy!(CredentialCommand, ::windows_core::IUnknown, ::windows_core::IInspectable); #[doc = "Required features: `\"UI_Popups\"`"] #[cfg(feature = "UI_Popups")] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SettingsCommand(::windows_core::IUnknown); #[cfg(feature = "UI_Popups")] +::windows_core::imp::interface_hierarchy!(SettingsCommand, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "UI_Popups")] +::windows_core::imp::required_hierarchy!(SettingsCommand, super::Popups::IUICommand); +#[cfg(feature = "UI_Popups")] impl SettingsCommand { #[doc = "Required features: `\"UI_Popups\"`"] #[cfg(feature = "UI_Popups")] @@ -772,25 +600,20 @@ impl ::windows_core::RuntimeType for SettingsCommand { #[cfg(feature = "UI_Popups")] unsafe impl ::windows_core::Interface for SettingsCommand { type Vtable = super::Popups::IUICommand_Vtbl; -} -#[cfg(feature = "UI_Popups")] -unsafe impl ::windows_core::ComInterface for SettingsCommand { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "UI_Popups")] impl ::windows_core::RuntimeName for SettingsCommand { const NAME: &'static str = "Windows.UI.ApplicationSettings.SettingsCommand"; } -#[cfg(feature = "UI_Popups")] -::windows_core::imp::interface_hierarchy!(SettingsCommand, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "UI_Popups")] -impl ::windows_core::CanTryInto for SettingsCommand {} #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SettingsPane(::windows_core::IUnknown); #[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(SettingsPane, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "deprecated")] impl SettingsPane { #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] @@ -845,23 +668,20 @@ impl ::windows_core::RuntimeType for SettingsPane { #[cfg(feature = "deprecated")] unsafe impl ::windows_core::Interface for SettingsPane { type Vtable = ISettingsPane_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for SettingsPane { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "deprecated")] impl ::windows_core::RuntimeName for SettingsPane { const NAME: &'static str = "Windows.UI.ApplicationSettings.SettingsPane"; } -#[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(SettingsPane, ::windows_core::IUnknown, ::windows_core::IInspectable); #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SettingsPaneCommandsRequest(::windows_core::IUnknown); #[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(SettingsPaneCommandsRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "deprecated")] impl SettingsPaneCommandsRequest { #[doc = "Required features: `\"Foundation_Collections\"`, `\"UI_Popups\"`, `\"deprecated\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "UI_Popups", feature = "deprecated"))] @@ -880,23 +700,20 @@ impl ::windows_core::RuntimeType for SettingsPaneCommandsRequest { #[cfg(feature = "deprecated")] unsafe impl ::windows_core::Interface for SettingsPaneCommandsRequest { type Vtable = ISettingsPaneCommandsRequest_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for SettingsPaneCommandsRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "deprecated")] impl ::windows_core::RuntimeName for SettingsPaneCommandsRequest { const NAME: &'static str = "Windows.UI.ApplicationSettings.SettingsPaneCommandsRequest"; } -#[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(SettingsPaneCommandsRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SettingsPaneCommandsRequestedEventArgs(::windows_core::IUnknown); #[cfg(feature = "deprecated")] +::windows_core::imp::interface_hierarchy!(SettingsPaneCommandsRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "deprecated")] impl SettingsPaneCommandsRequestedEventArgs { #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] @@ -915,20 +732,16 @@ impl ::windows_core::RuntimeType for SettingsPaneCommandsRequestedEventArgs { #[cfg(feature = "deprecated")] unsafe impl ::windows_core::Interface for SettingsPaneCommandsRequestedEventArgs { type Vtable = ISettingsPaneCommandsRequestedEventArgs_Vtbl; -} -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for SettingsPaneCommandsRequestedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "deprecated")] impl ::windows_core::RuntimeName for SettingsPaneCommandsRequestedEventArgs { const NAME: &'static str = "Windows.UI.ApplicationSettings.SettingsPaneCommandsRequestedEventArgs"; } -#[cfg(feature = "deprecated")] -::windows_core::imp::interface_hierarchy!(SettingsPaneCommandsRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebAccountCommand(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WebAccountCommand, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WebAccountCommand { #[doc = "Required features: `\"Security_Credentials\"`"] #[cfg(feature = "Security_Credentials")] @@ -976,17 +789,15 @@ impl ::windows_core::RuntimeType for WebAccountCommand { } unsafe impl ::windows_core::Interface for WebAccountCommand { type Vtable = IWebAccountCommand_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WebAccountCommand { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WebAccountCommand { const NAME: &'static str = "Windows.UI.ApplicationSettings.WebAccountCommand"; } -::windows_core::imp::interface_hierarchy!(WebAccountCommand, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebAccountInvokedArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WebAccountInvokedArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WebAccountInvokedArgs { pub fn Action(&self) -> ::windows_core::Result { let this = self; @@ -1001,17 +812,15 @@ impl ::windows_core::RuntimeType for WebAccountInvokedArgs { } unsafe impl ::windows_core::Interface for WebAccountInvokedArgs { type Vtable = IWebAccountInvokedArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WebAccountInvokedArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WebAccountInvokedArgs { const NAME: &'static str = "Windows.UI.ApplicationSettings.WebAccountInvokedArgs"; } -::windows_core::imp::interface_hierarchy!(WebAccountInvokedArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebAccountProviderCommand(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WebAccountProviderCommand, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WebAccountProviderCommand { #[doc = "Required features: `\"Security_Credentials\"`"] #[cfg(feature = "Security_Credentials")] @@ -1052,14 +861,11 @@ impl ::windows_core::RuntimeType for WebAccountProviderCommand { } unsafe impl ::windows_core::Interface for WebAccountProviderCommand { type Vtable = IWebAccountProviderCommand_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WebAccountProviderCommand { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WebAccountProviderCommand { const NAME: &'static str = "Windows.UI.ApplicationSettings.WebAccountProviderCommand"; } -::windows_core::imp::interface_hierarchy!(WebAccountProviderCommand, ::windows_core::IUnknown, ::windows_core::IInspectable); #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] #[repr(transparent)] @@ -1160,9 +966,7 @@ impl ::core::fmt::Debug for WebAccountAction { impl ::windows_core::RuntimeType for WebAccountAction { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::from_slice(b"enum(Windows.UI.ApplicationSettings.WebAccountAction;i4)"); } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct CredentialCommandCredentialDeletedHandler(pub ::windows_core::IUnknown); +::windows_core::imp::com_interface!(CredentialCommandCredentialDeletedHandler, CredentialCommandCredentialDeletedHandler_Vtbl, 0x61c0e185_0977_4678_b4e2_98727afbeed9); impl CredentialCommandCredentialDeletedHandler { pub fn new) -> ::windows_core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = CredentialCommandCredentialDeletedHandlerBox:: { vtable: &CredentialCommandCredentialDeletedHandlerBox::::VTABLE, count: ::windows_core::imp::RefCount::new(1), invoke }; @@ -1192,7 +996,7 @@ impl) -> ::windows_core::Res if iid.is_null() || interface.is_null() { return ::windows_core::HRESULT(-2147467261); } - *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; + *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::Interface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::Interface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; if (*interface).is_null() { ::windows_core::HRESULT(-2147467262) } else { @@ -1217,12 +1021,6 @@ impl) -> ::windows_core::Res ((*this).invoke)(::windows_core::from_raw_borrowed(&command)).into() } } -unsafe impl ::windows_core::Interface for CredentialCommandCredentialDeletedHandler { - type Vtable = CredentialCommandCredentialDeletedHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CredentialCommandCredentialDeletedHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x61c0e185_0977_4678_b4e2_98727afbeed9); -} impl ::windows_core::RuntimeType for CredentialCommandCredentialDeletedHandler { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } @@ -1232,9 +1030,7 @@ pub struct CredentialCommandCredentialDeletedHandler_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Invoke: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, command: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct WebAccountCommandInvokedHandler(pub ::windows_core::IUnknown); +::windows_core::imp::com_interface!(WebAccountCommandInvokedHandler, WebAccountCommandInvokedHandler_Vtbl, 0x1ee6e459_1705_4a9a_b599_a0c3d6921973); impl WebAccountCommandInvokedHandler { pub fn new, ::core::option::Option<&WebAccountInvokedArgs>) -> ::windows_core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = WebAccountCommandInvokedHandlerBox:: { vtable: &WebAccountCommandInvokedHandlerBox::::VTABLE, count: ::windows_core::imp::RefCount::new(1), invoke }; @@ -1265,7 +1061,7 @@ impl, ::core::option::Option if iid.is_null() || interface.is_null() { return ::windows_core::HRESULT(-2147467261); } - *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; + *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::Interface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::Interface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; if (*interface).is_null() { ::windows_core::HRESULT(-2147467262) } else { @@ -1290,12 +1086,6 @@ impl, ::core::option::Option ((*this).invoke)(::windows_core::from_raw_borrowed(&command), ::windows_core::from_raw_borrowed(&args)).into() } } -unsafe impl ::windows_core::Interface for WebAccountCommandInvokedHandler { - type Vtable = WebAccountCommandInvokedHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WebAccountCommandInvokedHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1ee6e459_1705_4a9a_b599_a0c3d6921973); -} impl ::windows_core::RuntimeType for WebAccountCommandInvokedHandler { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } @@ -1305,9 +1095,7 @@ pub struct WebAccountCommandInvokedHandler_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Invoke: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, command: *mut ::core::ffi::c_void, args: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct WebAccountProviderCommandInvokedHandler(pub ::windows_core::IUnknown); +::windows_core::imp::com_interface!(WebAccountProviderCommandInvokedHandler, WebAccountProviderCommandInvokedHandler_Vtbl, 0xb7de5527_4c8f_42dd_84da_5ec493abdb9a); impl WebAccountProviderCommandInvokedHandler { pub fn new) -> ::windows_core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = WebAccountProviderCommandInvokedHandlerBox:: { vtable: &WebAccountProviderCommandInvokedHandlerBox::::VTABLE, count: ::windows_core::imp::RefCount::new(1), invoke }; @@ -1337,7 +1125,7 @@ impl) -> ::windows_c if iid.is_null() || interface.is_null() { return ::windows_core::HRESULT(-2147467261); } - *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; + *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::Interface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::Interface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; if (*interface).is_null() { ::windows_core::HRESULT(-2147467262) } else { @@ -1362,12 +1150,6 @@ impl) -> ::windows_c ((*this).invoke)(::windows_core::from_raw_borrowed(&command)).into() } } -unsafe impl ::windows_core::Interface for WebAccountProviderCommandInvokedHandler { - type Vtable = WebAccountProviderCommandInvokedHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WebAccountProviderCommandInvokedHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb7de5527_4c8f_42dd_84da_5ec493abdb9a); -} impl ::windows_core::RuntimeType for WebAccountProviderCommandInvokedHandler { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } 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 a2e6625e9a..346ea39f1c 100644 --- a/crates/libs/windows/src/Windows/UI/Composition/Core/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Composition/Core/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositorController(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositorController { - type Vtable = ICompositorController_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositorController { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2d75f35a_70a7_4395_ba2d_cef0b18399f9); -} +::windows_core::imp::com_interface!(ICompositorController, ICompositorController_Vtbl, 0x2d75f35a_70a7_4395_ba2d_cef0b18399f9); #[repr(C)] #[doc(hidden)] pub struct ICompositorController_Vtbl { @@ -21,6 +12,8 @@ pub struct ICompositorController_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CompositorController(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CompositorController, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(CompositorController, super::super::super::Foundation::IClosable); impl CompositorController { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -30,7 +23,7 @@ impl CompositorController { SHARED.call(callback) } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { @@ -71,14 +64,10 @@ impl ::windows_core::RuntimeType for CompositorController { } unsafe impl ::windows_core::Interface for CompositorController { type Vtable = ICompositorController_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CompositorController { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CompositorController { const NAME: &'static str = "Windows.UI.Composition.Core.CompositorController"; } -::windows_core::imp::interface_hierarchy!(CompositorController, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CompositorController {} unsafe impl ::core::marker::Send for CompositorController {} unsafe impl ::core::marker::Sync for CompositorController {} 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 4b948c00b3..fe390114b5 100644 --- a/crates/libs/windows/src/Windows/UI/Composition/Desktop/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Composition/Desktop/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDesktopWindowTarget(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDesktopWindowTarget { - type Vtable = IDesktopWindowTarget_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDesktopWindowTarget { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6329d6ca_3366_490e_9db3_25312929ac51); -} +::windows_core::imp::com_interface!(IDesktopWindowTarget, IDesktopWindowTarget_Vtbl, 0x6329d6ca_3366_490e_9db3_25312929ac51); #[repr(C)] #[doc(hidden)] pub struct IDesktopWindowTarget_Vtbl { @@ -17,20 +8,22 @@ pub struct IDesktopWindowTarget_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DesktopWindowTarget(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DesktopWindowTarget, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(DesktopWindowTarget, super::IAnimationObject, super::super::super::Foundation::IClosable, super::CompositionTarget, super::CompositionObject); impl DesktopWindowTarget { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -39,14 +32,14 @@ impl DesktopWindowTarget { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -54,28 +47,28 @@ impl DesktopWindowTarget { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -85,34 +78,34 @@ impl DesktopWindowTarget { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -120,14 +113,14 @@ impl DesktopWindowTarget { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } pub fn Root(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Root)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -135,10 +128,10 @@ impl DesktopWindowTarget { } pub fn SetRoot(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetRoot)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn IsTopmost(&self) -> ::windows_core::Result { let this = self; @@ -153,17 +146,10 @@ impl ::windows_core::RuntimeType for DesktopWindowTarget { } unsafe impl ::windows_core::Interface for DesktopWindowTarget { type Vtable = IDesktopWindowTarget_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DesktopWindowTarget { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DesktopWindowTarget { const NAME: &'static str = "Windows.UI.Composition.Desktop.DesktopWindowTarget"; } -::windows_core::imp::interface_hierarchy!(DesktopWindowTarget, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for DesktopWindowTarget {} -impl ::windows_core::CanTryInto for DesktopWindowTarget {} -impl ::windows_core::CanTryInto for DesktopWindowTarget {} -impl ::windows_core::CanTryInto for DesktopWindowTarget {} unsafe impl ::core::marker::Send for DesktopWindowTarget {} unsafe impl ::core::marker::Sync for DesktopWindowTarget {} 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 1acada7429..fb97b5387c 100644 --- a/crates/libs/windows/src/Windows/UI/Composition/Diagnostics/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Composition/Diagnostics/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionDebugHeatMaps(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionDebugHeatMaps { - type Vtable = ICompositionDebugHeatMaps_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionDebugHeatMaps { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe49c90ac_2ff3_5805_718c_b725ee07650f); -} +::windows_core::imp::com_interface!(ICompositionDebugHeatMaps, ICompositionDebugHeatMaps_Vtbl, 0xe49c90ac_2ff3_5805_718c_b725ee07650f); #[repr(C)] #[doc(hidden)] pub struct ICompositionDebugHeatMaps_Vtbl { @@ -17,32 +8,14 @@ pub struct ICompositionDebugHeatMaps_Vtbl { pub ShowOverdraw: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, subtree: *mut ::core::ffi::c_void, contentkinds: CompositionDebugOverdrawContentKinds) -> ::windows_core::HRESULT, pub ShowRedraw: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, subtree: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionDebugSettings(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionDebugSettings { - type Vtable = ICompositionDebugSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionDebugSettings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2831987e_1d82_4d38_b7b7_efd11c7bc3d1); -} +::windows_core::imp::com_interface!(ICompositionDebugSettings, ICompositionDebugSettings_Vtbl, 0x2831987e_1d82_4d38_b7b7_efd11c7bc3d1); #[repr(C)] #[doc(hidden)] pub struct ICompositionDebugSettings_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub HeatMaps: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionDebugSettingsStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionDebugSettingsStatics { - type Vtable = ICompositionDebugSettingsStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionDebugSettingsStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x64ec1f1e_6af8_4af8_b814_c870fd5a9505); -} +::windows_core::imp::com_interface!(ICompositionDebugSettingsStatics, ICompositionDebugSettingsStatics_Vtbl, 0x64ec1f1e_6af8_4af8_b814_c870fd5a9505); #[repr(C)] #[doc(hidden)] pub struct ICompositionDebugSettingsStatics_Vtbl { @@ -52,34 +25,35 @@ pub struct ICompositionDebugSettingsStatics_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CompositionDebugHeatMaps(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CompositionDebugHeatMaps, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CompositionDebugHeatMaps { pub fn Hide(&self, subtree: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).Hide)(::windows_core::Interface::as_raw(this), subtree.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).Hide)(::windows_core::Interface::as_raw(this), subtree.into_param().abi()).ok() } } pub fn ShowMemoryUsage(&self, subtree: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).ShowMemoryUsage)(::windows_core::Interface::as_raw(this), subtree.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).ShowMemoryUsage)(::windows_core::Interface::as_raw(this), subtree.into_param().abi()).ok() } } pub fn ShowOverdraw(&self, subtree: P0, contentkinds: CompositionDebugOverdrawContentKinds) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).ShowOverdraw)(::windows_core::Interface::as_raw(this), subtree.try_into_param()?.abi(), contentkinds).ok() } + unsafe { (::windows_core::Interface::vtable(this).ShowOverdraw)(::windows_core::Interface::as_raw(this), subtree.into_param().abi(), contentkinds).ok() } } pub fn ShowRedraw(&self, subtree: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).ShowRedraw)(::windows_core::Interface::as_raw(this), subtree.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).ShowRedraw)(::windows_core::Interface::as_raw(this), subtree.into_param().abi()).ok() } } } impl ::windows_core::RuntimeType for CompositionDebugHeatMaps { @@ -87,19 +61,17 @@ impl ::windows_core::RuntimeType for CompositionDebugHeatMaps { } unsafe impl ::windows_core::Interface for CompositionDebugHeatMaps { type Vtable = ICompositionDebugHeatMaps_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CompositionDebugHeatMaps { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CompositionDebugHeatMaps { const NAME: &'static str = "Windows.UI.Composition.Diagnostics.CompositionDebugHeatMaps"; } -::windows_core::imp::interface_hierarchy!(CompositionDebugHeatMaps, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CompositionDebugHeatMaps {} unsafe impl ::core::marker::Sync for CompositionDebugHeatMaps {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CompositionDebugSettings(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CompositionDebugSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CompositionDebugSettings { pub fn HeatMaps(&self) -> ::windows_core::Result { let this = self; @@ -128,14 +100,11 @@ impl ::windows_core::RuntimeType for CompositionDebugSettings { } unsafe impl ::windows_core::Interface for CompositionDebugSettings { type Vtable = ICompositionDebugSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CompositionDebugSettings { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CompositionDebugSettings { const NAME: &'static str = "Windows.UI.Composition.Diagnostics.CompositionDebugSettings"; } -::windows_core::imp::interface_hierarchy!(CompositionDebugSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CompositionDebugSettings {} unsafe impl ::core::marker::Sync for CompositionDebugSettings {} #[repr(transparent)] 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 ee16f1b405..59de1fe8d1 100644 --- a/crates/libs/windows/src/Windows/UI/Composition/Effects/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Composition/Effects/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISceneLightingEffect(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISceneLightingEffect { - type Vtable = ISceneLightingEffect_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISceneLightingEffect { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x91bb5e52_95d1_4f8b_9a5a_6408b24b8c6a); -} +::windows_core::imp::com_interface!(ISceneLightingEffect, ISceneLightingEffect_Vtbl, 0x91bb5e52_95d1_4f8b_9a5a_6408b24b8c6a); #[repr(C)] #[doc(hidden)] pub struct ISceneLightingEffect_Vtbl { @@ -29,16 +20,7 @@ pub struct ISceneLightingEffect_Vtbl { pub SpecularShine: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows_core::HRESULT, pub SetSpecularShine: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISceneLightingEffect2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISceneLightingEffect2 { - type Vtable = ISceneLightingEffect2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISceneLightingEffect2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9e270e81_72f0_4c5c_95f8_8a6e0024f409); -} +::windows_core::imp::com_interface!(ISceneLightingEffect2, ISceneLightingEffect2_Vtbl, 0x9e270e81_72f0_4c5c_95f8_8a6e0024f409); #[repr(C)] #[doc(hidden)] pub struct ISceneLightingEffect2_Vtbl { @@ -49,6 +31,9 @@ pub struct ISceneLightingEffect2_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SceneLightingEffect(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SceneLightingEffect, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Graphics_Effects")] +::windows_core::imp::required_hierarchy!(SceneLightingEffect, super::super::super::Graphics::Effects::IGraphicsEffect, super::super::super::Graphics::Effects::IGraphicsEffectSource); impl SceneLightingEffect { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -60,7 +45,7 @@ impl SceneLightingEffect { #[doc = "Required features: `\"Graphics_Effects\"`"] #[cfg(feature = "Graphics_Effects")] pub fn Name(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Name)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -69,7 +54,7 @@ impl SceneLightingEffect { #[doc = "Required features: `\"Graphics_Effects\"`"] #[cfg(feature = "Graphics_Effects")] pub fn SetName(&self, name: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetName)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(name)).ok() } } pub fn AmbientAmount(&self) -> ::windows_core::Result { @@ -107,10 +92,10 @@ impl SceneLightingEffect { #[cfg(feature = "Graphics_Effects")] pub fn SetNormalMapSource(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetNormalMapSource)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetNormalMapSource)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn SpecularAmount(&self) -> ::windows_core::Result { let this = self; @@ -135,14 +120,14 @@ impl SceneLightingEffect { unsafe { (::windows_core::Interface::vtable(this).SetSpecularShine)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn ReflectanceModel(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ReflectanceModel)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetReflectanceModel(&self, value: SceneLightingEffectReflectanceModel) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetReflectanceModel)(::windows_core::Interface::as_raw(this), value).ok() } } } @@ -151,18 +136,11 @@ impl ::windows_core::RuntimeType for SceneLightingEffect { } unsafe impl ::windows_core::Interface for SceneLightingEffect { type Vtable = ISceneLightingEffect_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SceneLightingEffect { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SceneLightingEffect { const NAME: &'static str = "Windows.UI.Composition.Effects.SceneLightingEffect"; } -::windows_core::imp::interface_hierarchy!(SceneLightingEffect, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Graphics_Effects")] -impl ::windows_core::CanTryInto for SceneLightingEffect {} -#[cfg(feature = "Graphics_Effects")] -impl ::windows_core::CanTryInto for SceneLightingEffect {} unsafe impl ::core::marker::Send for SceneLightingEffect {} unsafe impl ::core::marker::Sync for SceneLightingEffect {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/UI/Composition/Interactions/impl.rs b/crates/libs/windows/src/Windows/UI/Composition/Interactions/impl.rs index b17ace10dc..63114d520c 100644 --- a/crates/libs/windows/src/Windows/UI/Composition/Interactions/impl.rs +++ b/crates/libs/windows/src/Windows/UI/Composition/Interactions/impl.rs @@ -7,7 +7,7 @@ impl ICompositionInteractionSource_Vtbl { Self { base__: ::windows_core::IInspectable_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IInteractionTrackerOwner_Impl: Sized { @@ -64,6 +64,6 @@ impl IInteractionTrackerOwner_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 5a1150e7cc..1a4c17b505 100644 --- a/crates/libs/windows/src/Windows/UI/Composition/Interactions/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Composition/Interactions/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionConditionalValue(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionConditionalValue { - type Vtable = ICompositionConditionalValue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionConditionalValue { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x43250538_eb73_4561_a71d_1a43eaeb7a9b); -} +::windows_core::imp::com_interface!(ICompositionConditionalValue, ICompositionConditionalValue_Vtbl, 0x43250538_eb73_4561_a71d_1a43eaeb7a9b); #[repr(C)] #[doc(hidden)] pub struct ICompositionConditionalValue_Vtbl { @@ -17,51 +8,25 @@ pub struct ICompositionConditionalValue_Vtbl { pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionConditionalValueStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionConditionalValueStatics { - type Vtable = ICompositionConditionalValueStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionConditionalValueStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x090c4b72_8467_4d0a_9065_ac46b80a5522); -} +::windows_core::imp::com_interface!(ICompositionConditionalValueStatics, ICompositionConditionalValueStatics_Vtbl, 0x090c4b72_8467_4d0a_9065_ac46b80a5522); #[repr(C)] #[doc(hidden)] pub struct ICompositionConditionalValueStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, compositor: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionInteractionSource(::windows_core::IUnknown); -impl ICompositionInteractionSource {} +::windows_core::imp::com_interface!(ICompositionInteractionSource, ICompositionInteractionSource_Vtbl, 0x043b2431_06e3_495a_ba54_409f0017fac0); ::windows_core::imp::interface_hierarchy!(ICompositionInteractionSource, ::windows_core::IUnknown, ::windows_core::IInspectable); +impl ICompositionInteractionSource {} impl ::windows_core::RuntimeType for ICompositionInteractionSource { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for ICompositionInteractionSource { - type Vtable = ICompositionInteractionSource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionInteractionSource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x043b2431_06e3_495a_ba54_409f0017fac0); -} #[repr(C)] #[doc(hidden)] pub struct ICompositionInteractionSource_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionInteractionSourceCollection(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionInteractionSourceCollection { - type Vtable = ICompositionInteractionSourceCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionInteractionSourceCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1b468e4b_a5bf_47d8_a547_3894155a158c); -} +::windows_core::imp::com_interface!(ICompositionInteractionSourceCollection, ICompositionInteractionSourceCollection_Vtbl, 0x1b468e4b_a5bf_47d8_a547_3894155a158c); #[repr(C)] #[doc(hidden)] pub struct ICompositionInteractionSourceCollection_Vtbl { @@ -71,16 +36,7 @@ pub struct ICompositionInteractionSourceCollection_Vtbl { pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RemoveAll: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInteractionSourceConfiguration(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInteractionSourceConfiguration { - type Vtable = IInteractionSourceConfiguration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInteractionSourceConfiguration { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa78347e5_a9d1_4d02_985e_b930cd0b9da4); -} +::windows_core::imp::com_interface!(IInteractionSourceConfiguration, IInteractionSourceConfiguration_Vtbl, 0xa78347e5_a9d1_4d02_985e_b930cd0b9da4); #[repr(C)] #[doc(hidden)] pub struct IInteractionSourceConfiguration_Vtbl { @@ -92,16 +48,7 @@ pub struct IInteractionSourceConfiguration_Vtbl { pub ScaleSourceMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut InteractionSourceRedirectionMode) -> ::windows_core::HRESULT, pub SetScaleSourceMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: InteractionSourceRedirectionMode) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInteractionTracker(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInteractionTracker { - type Vtable = IInteractionTracker_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInteractionTracker { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2a8e8cb1_1000_4416_8363_cc27fb877308); -} +::windows_core::imp::com_interface!(IInteractionTracker, IInteractionTracker_Vtbl, 0x2a8e8cb1_1000_4416_8363_cc27fb877308); #[repr(C)] #[doc(hidden)] pub struct IInteractionTracker_Vtbl { @@ -194,16 +141,7 @@ pub struct IInteractionTracker_Vtbl { #[cfg(not(feature = "Foundation_Numerics"))] TryUpdateScaleWithAdditionalVelocity: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInteractionTracker2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInteractionTracker2 { - type Vtable = IInteractionTracker2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInteractionTracker2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x25769a3e_ce6d_448c_8386_92620d240756); -} +::windows_core::imp::com_interface!(IInteractionTracker2, IInteractionTracker2_Vtbl, 0x25769a3e_ce6d_448c_8386_92620d240756); #[repr(C)] #[doc(hidden)] pub struct IInteractionTracker2_Vtbl { @@ -217,16 +155,7 @@ pub struct IInteractionTracker2_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] ConfigureCenterPointYInertiaModifiers: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInteractionTracker3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInteractionTracker3 { - type Vtable = IInteractionTracker3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInteractionTracker3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe6c5d7a2_5c4b_42c6_84b7_f69441b18091); -} +::windows_core::imp::com_interface!(IInteractionTracker3, IInteractionTracker3_Vtbl, 0xe6c5d7a2_5c4b_42c6_84b7_f69441b18091); #[repr(C)] #[doc(hidden)] pub struct IInteractionTracker3_Vtbl { @@ -236,16 +165,7 @@ pub struct IInteractionTracker3_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] ConfigureVector2PositionInertiaModifiers: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInteractionTracker4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInteractionTracker4 { - type Vtable = IInteractionTracker4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInteractionTracker4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xebd222bc_04af_4ac7_847d_06ea36e80a16); -} +::windows_core::imp::com_interface!(IInteractionTracker4, IInteractionTracker4_Vtbl, 0xebd222bc_04af_4ac7_847d_06ea36e80a16); #[repr(C)] #[doc(hidden)] pub struct IInteractionTracker4_Vtbl { @@ -260,16 +180,7 @@ pub struct IInteractionTracker4_Vtbl { TryUpdatePositionByWithOption: usize, pub IsInertiaFromImpulse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInteractionTracker5(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInteractionTracker5 { - type Vtable = IInteractionTracker5_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInteractionTracker5 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd3ef5da2_a254_40e4_88d5_44e4e16b5809); -} +::windows_core::imp::com_interface!(IInteractionTracker5, IInteractionTracker5_Vtbl, 0xd3ef5da2_a254_40e4_88d5_44e4e16b5809); #[repr(C)] #[doc(hidden)] pub struct IInteractionTracker5_Vtbl { @@ -279,110 +190,47 @@ pub struct IInteractionTracker5_Vtbl { #[cfg(not(feature = "Foundation_Numerics"))] TryUpdatePositionWithOption: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInteractionTrackerCustomAnimationStateEnteredArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInteractionTrackerCustomAnimationStateEnteredArgs { - type Vtable = IInteractionTrackerCustomAnimationStateEnteredArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInteractionTrackerCustomAnimationStateEnteredArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8d1c8cf1_d7b0_434c_a5d2_2d7611864834); -} +::windows_core::imp::com_interface!(IInteractionTrackerCustomAnimationStateEnteredArgs, IInteractionTrackerCustomAnimationStateEnteredArgs_Vtbl, 0x8d1c8cf1_d7b0_434c_a5d2_2d7611864834); #[repr(C)] #[doc(hidden)] pub struct IInteractionTrackerCustomAnimationStateEnteredArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub RequestId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInteractionTrackerCustomAnimationStateEnteredArgs2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInteractionTrackerCustomAnimationStateEnteredArgs2 { - type Vtable = IInteractionTrackerCustomAnimationStateEnteredArgs2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInteractionTrackerCustomAnimationStateEnteredArgs2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x47d579b7_0985_5e99_b024_2f32c380c1a4); -} +::windows_core::imp::com_interface!(IInteractionTrackerCustomAnimationStateEnteredArgs2, IInteractionTrackerCustomAnimationStateEnteredArgs2_Vtbl, 0x47d579b7_0985_5e99_b024_2f32c380c1a4); #[repr(C)] #[doc(hidden)] pub struct IInteractionTrackerCustomAnimationStateEnteredArgs2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub IsFromBinding: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInteractionTrackerIdleStateEnteredArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInteractionTrackerIdleStateEnteredArgs { - type Vtable = IInteractionTrackerIdleStateEnteredArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInteractionTrackerIdleStateEnteredArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x50012faa_1510_4142_a1a5_019b09f8857b); -} +::windows_core::imp::com_interface!(IInteractionTrackerIdleStateEnteredArgs, IInteractionTrackerIdleStateEnteredArgs_Vtbl, 0x50012faa_1510_4142_a1a5_019b09f8857b); #[repr(C)] #[doc(hidden)] pub struct IInteractionTrackerIdleStateEnteredArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub RequestId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInteractionTrackerIdleStateEnteredArgs2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInteractionTrackerIdleStateEnteredArgs2 { - type Vtable = IInteractionTrackerIdleStateEnteredArgs2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInteractionTrackerIdleStateEnteredArgs2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf2e771ed_b803_5137_9435_1c96e48721e9); -} +::windows_core::imp::com_interface!(IInteractionTrackerIdleStateEnteredArgs2, IInteractionTrackerIdleStateEnteredArgs2_Vtbl, 0xf2e771ed_b803_5137_9435_1c96e48721e9); #[repr(C)] #[doc(hidden)] pub struct IInteractionTrackerIdleStateEnteredArgs2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub IsFromBinding: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInteractionTrackerInertiaModifier(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInteractionTrackerInertiaModifier { - type Vtable = IInteractionTrackerInertiaModifier_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInteractionTrackerInertiaModifier { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa0e2c920_26b4_4da2_8b61_5e683979bbe2); -} +::windows_core::imp::com_interface!(IInteractionTrackerInertiaModifier, IInteractionTrackerInertiaModifier_Vtbl, 0xa0e2c920_26b4_4da2_8b61_5e683979bbe2); #[repr(C)] #[doc(hidden)] pub struct IInteractionTrackerInertiaModifier_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInteractionTrackerInertiaModifierFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInteractionTrackerInertiaModifierFactory { - type Vtable = IInteractionTrackerInertiaModifierFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInteractionTrackerInertiaModifierFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x993818fe_c94e_4b86_87f3_922665ba46b9); -} +::windows_core::imp::com_interface!(IInteractionTrackerInertiaModifierFactory, IInteractionTrackerInertiaModifierFactory_Vtbl, 0x993818fe_c94e_4b86_87f3_922665ba46b9); #[repr(C)] #[doc(hidden)] pub struct IInteractionTrackerInertiaModifierFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInteractionTrackerInertiaMotion(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInteractionTrackerInertiaMotion { - type Vtable = IInteractionTrackerInertiaMotion_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInteractionTrackerInertiaMotion { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x04922fdc_f154_4cb8_bf33_cc1ba611e6db); -} +::windows_core::imp::com_interface!(IInteractionTrackerInertiaMotion, IInteractionTrackerInertiaMotion_Vtbl, 0x04922fdc_f154_4cb8_bf33_cc1ba611e6db); #[repr(C)] #[doc(hidden)] pub struct IInteractionTrackerInertiaMotion_Vtbl { @@ -392,32 +240,14 @@ pub struct IInteractionTrackerInertiaMotion_Vtbl { pub Motion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetMotion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInteractionTrackerInertiaMotionStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInteractionTrackerInertiaMotionStatics { - type Vtable = IInteractionTrackerInertiaMotionStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInteractionTrackerInertiaMotionStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8cc83dd6_ba7b_431a_844b_6eac9130f99a); -} +::windows_core::imp::com_interface!(IInteractionTrackerInertiaMotionStatics, IInteractionTrackerInertiaMotionStatics_Vtbl, 0x8cc83dd6_ba7b_431a_844b_6eac9130f99a); #[repr(C)] #[doc(hidden)] pub struct IInteractionTrackerInertiaMotionStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, compositor: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInteractionTrackerInertiaNaturalMotion(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInteractionTrackerInertiaNaturalMotion { - type Vtable = IInteractionTrackerInertiaNaturalMotion_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInteractionTrackerInertiaNaturalMotion { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x70acdaae_27dc_48ed_a3c3_6d61c9a029d2); -} +::windows_core::imp::com_interface!(IInteractionTrackerInertiaNaturalMotion, IInteractionTrackerInertiaNaturalMotion_Vtbl, 0x70acdaae_27dc_48ed_a3c3_6d61c9a029d2); #[repr(C)] #[doc(hidden)] pub struct IInteractionTrackerInertiaNaturalMotion_Vtbl { @@ -427,32 +257,14 @@ pub struct IInteractionTrackerInertiaNaturalMotion_Vtbl { pub NaturalMotion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetNaturalMotion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInteractionTrackerInertiaNaturalMotionStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInteractionTrackerInertiaNaturalMotionStatics { - type Vtable = IInteractionTrackerInertiaNaturalMotionStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInteractionTrackerInertiaNaturalMotionStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcfda55b0_5e3e_4289_932d_ee5f50e74283); -} +::windows_core::imp::com_interface!(IInteractionTrackerInertiaNaturalMotionStatics, IInteractionTrackerInertiaNaturalMotionStatics_Vtbl, 0xcfda55b0_5e3e_4289_932d_ee5f50e74283); #[repr(C)] #[doc(hidden)] pub struct IInteractionTrackerInertiaNaturalMotionStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, compositor: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInteractionTrackerInertiaRestingValue(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInteractionTrackerInertiaRestingValue { - type Vtable = IInteractionTrackerInertiaRestingValue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInteractionTrackerInertiaRestingValue { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x86f7ec09_5096_4170_9cc8_df2fe101bb93); -} +::windows_core::imp::com_interface!(IInteractionTrackerInertiaRestingValue, IInteractionTrackerInertiaRestingValue_Vtbl, 0x86f7ec09_5096_4170_9cc8_df2fe101bb93); #[repr(C)] #[doc(hidden)] pub struct IInteractionTrackerInertiaRestingValue_Vtbl { @@ -462,32 +274,14 @@ pub struct IInteractionTrackerInertiaRestingValue_Vtbl { pub RestingValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetRestingValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInteractionTrackerInertiaRestingValueStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInteractionTrackerInertiaRestingValueStatics { - type Vtable = IInteractionTrackerInertiaRestingValueStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInteractionTrackerInertiaRestingValueStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x18ed4699_0745_4096_bcab_3a4e99569bcf); -} +::windows_core::imp::com_interface!(IInteractionTrackerInertiaRestingValueStatics, IInteractionTrackerInertiaRestingValueStatics_Vtbl, 0x18ed4699_0745_4096_bcab_3a4e99569bcf); #[repr(C)] #[doc(hidden)] pub struct IInteractionTrackerInertiaRestingValueStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, compositor: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInteractionTrackerInertiaStateEnteredArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInteractionTrackerInertiaStateEnteredArgs { - type Vtable = IInteractionTrackerInertiaStateEnteredArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInteractionTrackerInertiaStateEnteredArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x87108cf2_e7ff_4f7d_9ffd_d72f1e409b63); -} +::windows_core::imp::com_interface!(IInteractionTrackerInertiaStateEnteredArgs, IInteractionTrackerInertiaStateEnteredArgs_Vtbl, 0x87108cf2_e7ff_4f7d_9ffd_d72f1e409b63); #[repr(C)] #[doc(hidden)] pub struct IInteractionTrackerInertiaStateEnteredArgs_Vtbl { @@ -509,73 +303,36 @@ pub struct IInteractionTrackerInertiaStateEnteredArgs_Vtbl { pub RequestId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows_core::HRESULT, pub ScaleVelocityInPercentPerSecond: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInteractionTrackerInertiaStateEnteredArgs2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInteractionTrackerInertiaStateEnteredArgs2 { - type Vtable = IInteractionTrackerInertiaStateEnteredArgs2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInteractionTrackerInertiaStateEnteredArgs2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb1eb32f6_c26c_41f6_a189_fabc22b323cc); -} +::windows_core::imp::com_interface!(IInteractionTrackerInertiaStateEnteredArgs2, IInteractionTrackerInertiaStateEnteredArgs2_Vtbl, 0xb1eb32f6_c26c_41f6_a189_fabc22b323cc); #[repr(C)] #[doc(hidden)] pub struct IInteractionTrackerInertiaStateEnteredArgs2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub IsInertiaFromImpulse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInteractionTrackerInertiaStateEnteredArgs3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInteractionTrackerInertiaStateEnteredArgs3 { - type Vtable = IInteractionTrackerInertiaStateEnteredArgs3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInteractionTrackerInertiaStateEnteredArgs3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x48ac1c2f_47bd_59af_a58c_79bd2eb9ef71); -} +::windows_core::imp::com_interface!(IInteractionTrackerInertiaStateEnteredArgs3, IInteractionTrackerInertiaStateEnteredArgs3_Vtbl, 0x48ac1c2f_47bd_59af_a58c_79bd2eb9ef71); #[repr(C)] #[doc(hidden)] pub struct IInteractionTrackerInertiaStateEnteredArgs3_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub IsFromBinding: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInteractionTrackerInteractingStateEnteredArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInteractionTrackerInteractingStateEnteredArgs { - type Vtable = IInteractionTrackerInteractingStateEnteredArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInteractionTrackerInteractingStateEnteredArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa7263939_a17b_4011_99fd_b5c24f143748); -} +::windows_core::imp::com_interface!(IInteractionTrackerInteractingStateEnteredArgs, IInteractionTrackerInteractingStateEnteredArgs_Vtbl, 0xa7263939_a17b_4011_99fd_b5c24f143748); #[repr(C)] #[doc(hidden)] pub struct IInteractionTrackerInteractingStateEnteredArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub RequestId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInteractionTrackerInteractingStateEnteredArgs2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInteractionTrackerInteractingStateEnteredArgs2 { - type Vtable = IInteractionTrackerInteractingStateEnteredArgs2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInteractionTrackerInteractingStateEnteredArgs2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x509652d6_d488_59cd_819f_f52310295b11); -} +::windows_core::imp::com_interface!(IInteractionTrackerInteractingStateEnteredArgs2, IInteractionTrackerInteractingStateEnteredArgs2_Vtbl, 0x509652d6_d488_59cd_819f_f52310295b11); #[repr(C)] #[doc(hidden)] pub struct IInteractionTrackerInteractingStateEnteredArgs2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub IsFromBinding: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInteractionTrackerOwner(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IInteractionTrackerOwner, IInteractionTrackerOwner_Vtbl, 0xdb2e8af3_4deb_4e53_b29c_b06c9f96d651); +::windows_core::imp::interface_hierarchy!(IInteractionTrackerOwner, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IInteractionTrackerOwner { pub fn CustomAnimationStateEntered(&self, sender: P0, args: P1) -> ::windows_core::Result<()> where @@ -626,16 +383,9 @@ impl IInteractionTrackerOwner { unsafe { (::windows_core::Interface::vtable(this).ValuesChanged)(::windows_core::Interface::as_raw(this), sender.into_param().abi(), args.into_param().abi()).ok() } } } -::windows_core::imp::interface_hierarchy!(IInteractionTrackerOwner, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IInteractionTrackerOwner { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IInteractionTrackerOwner { - type Vtable = IInteractionTrackerOwner_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInteractionTrackerOwner { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdb2e8af3_4deb_4e53_b29c_b06c9f96d651); -} #[repr(C)] #[doc(hidden)] pub struct IInteractionTrackerOwner_Vtbl { @@ -647,32 +397,14 @@ pub struct IInteractionTrackerOwner_Vtbl { pub RequestIgnored: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sender: *mut ::core::ffi::c_void, args: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ValuesChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sender: *mut ::core::ffi::c_void, args: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInteractionTrackerRequestIgnoredArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInteractionTrackerRequestIgnoredArgs { - type Vtable = IInteractionTrackerRequestIgnoredArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInteractionTrackerRequestIgnoredArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x80dd82f1_ce25_488f_91dd_cb6455ccff2e); -} +::windows_core::imp::com_interface!(IInteractionTrackerRequestIgnoredArgs, IInteractionTrackerRequestIgnoredArgs_Vtbl, 0x80dd82f1_ce25_488f_91dd_cb6455ccff2e); #[repr(C)] #[doc(hidden)] pub struct IInteractionTrackerRequestIgnoredArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub RequestId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInteractionTrackerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInteractionTrackerStatics { - type Vtable = IInteractionTrackerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInteractionTrackerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbba5d7b7_6590_4498_8d6c_eb62b514c92a); -} +::windows_core::imp::com_interface!(IInteractionTrackerStatics, IInteractionTrackerStatics_Vtbl, 0xbba5d7b7_6590_4498_8d6c_eb62b514c92a); #[repr(C)] #[doc(hidden)] pub struct IInteractionTrackerStatics_Vtbl { @@ -680,16 +412,7 @@ pub struct IInteractionTrackerStatics_Vtbl { pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, compositor: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateWithOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, compositor: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInteractionTrackerStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInteractionTrackerStatics2 { - type Vtable = IInteractionTrackerStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInteractionTrackerStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x35e53720_46b7_5cb0_b505_f3d6884a6163); -} +::windows_core::imp::com_interface!(IInteractionTrackerStatics2, IInteractionTrackerStatics2_Vtbl, 0x35e53720_46b7_5cb0_b505_f3d6884a6163); #[repr(C)] #[doc(hidden)] pub struct IInteractionTrackerStatics2_Vtbl { @@ -697,16 +420,7 @@ pub struct IInteractionTrackerStatics2_Vtbl { pub SetBindingMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, boundtracker1: *mut ::core::ffi::c_void, boundtracker2: *mut ::core::ffi::c_void, axismode: InteractionBindingAxisModes) -> ::windows_core::HRESULT, pub GetBindingMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, boundtracker1: *mut ::core::ffi::c_void, boundtracker2: *mut ::core::ffi::c_void, result__: *mut InteractionBindingAxisModes) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInteractionTrackerValuesChangedArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInteractionTrackerValuesChangedArgs { - type Vtable = IInteractionTrackerValuesChangedArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInteractionTrackerValuesChangedArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcf1578ef_d3df_4501_b9e6_f02fb22f73d0); -} +::windows_core::imp::com_interface!(IInteractionTrackerValuesChangedArgs, IInteractionTrackerValuesChangedArgs_Vtbl, 0xcf1578ef_d3df_4501_b9e6_f02fb22f73d0); #[repr(C)] #[doc(hidden)] pub struct IInteractionTrackerValuesChangedArgs_Vtbl { @@ -718,46 +432,19 @@ pub struct IInteractionTrackerValuesChangedArgs_Vtbl { pub RequestId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows_core::HRESULT, pub Scale: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInteractionTrackerVector2InertiaModifier(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInteractionTrackerVector2InertiaModifier { - type Vtable = IInteractionTrackerVector2InertiaModifier_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInteractionTrackerVector2InertiaModifier { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x87e08ab0_3086_4853_a4b7_77882ad5d7e3); -} +::windows_core::imp::com_interface!(IInteractionTrackerVector2InertiaModifier, IInteractionTrackerVector2InertiaModifier_Vtbl, 0x87e08ab0_3086_4853_a4b7_77882ad5d7e3); #[repr(C)] #[doc(hidden)] pub struct IInteractionTrackerVector2InertiaModifier_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInteractionTrackerVector2InertiaModifierFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInteractionTrackerVector2InertiaModifierFactory { - type Vtable = IInteractionTrackerVector2InertiaModifierFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInteractionTrackerVector2InertiaModifierFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7401d6c4_6c6d_48df_bc3e_171e227e7d7f); -} +::windows_core::imp::com_interface!(IInteractionTrackerVector2InertiaModifierFactory, IInteractionTrackerVector2InertiaModifierFactory_Vtbl, 0x7401d6c4_6c6d_48df_bc3e_171e227e7d7f); #[repr(C)] #[doc(hidden)] pub struct IInteractionTrackerVector2InertiaModifierFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInteractionTrackerVector2InertiaNaturalMotion(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInteractionTrackerVector2InertiaNaturalMotion { - type Vtable = IInteractionTrackerVector2InertiaNaturalMotion_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInteractionTrackerVector2InertiaNaturalMotion { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5f17695c_162d_4c07_9400_c282b28276ca); -} +::windows_core::imp::com_interface!(IInteractionTrackerVector2InertiaNaturalMotion, IInteractionTrackerVector2InertiaNaturalMotion_Vtbl, 0x5f17695c_162d_4c07_9400_c282b28276ca); #[repr(C)] #[doc(hidden)] pub struct IInteractionTrackerVector2InertiaNaturalMotion_Vtbl { @@ -767,32 +454,14 @@ pub struct IInteractionTrackerVector2InertiaNaturalMotion_Vtbl { pub NaturalMotion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetNaturalMotion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInteractionTrackerVector2InertiaNaturalMotionStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInteractionTrackerVector2InertiaNaturalMotionStatics { - type Vtable = IInteractionTrackerVector2InertiaNaturalMotionStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInteractionTrackerVector2InertiaNaturalMotionStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x82001a48_09c0_434f_8189_141c66df362f); -} +::windows_core::imp::com_interface!(IInteractionTrackerVector2InertiaNaturalMotionStatics, IInteractionTrackerVector2InertiaNaturalMotionStatics_Vtbl, 0x82001a48_09c0_434f_8189_141c66df362f); #[repr(C)] #[doc(hidden)] pub struct IInteractionTrackerVector2InertiaNaturalMotionStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, compositor: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVisualInteractionSource(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVisualInteractionSource { - type Vtable = IVisualInteractionSource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVisualInteractionSource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xca0e8a86_d8d6_4111_b088_70347bd2b0ed); -} +::windows_core::imp::com_interface!(IVisualInteractionSource, IVisualInteractionSource_Vtbl, 0xca0e8a86_d8d6_4111_b088_70347bd2b0ed); #[repr(C)] #[doc(hidden)] pub struct IVisualInteractionSource_Vtbl { @@ -821,16 +490,7 @@ pub struct IVisualInteractionSource_Vtbl { #[cfg(not(feature = "UI_Input"))] TryRedirectForManipulation: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVisualInteractionSource2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVisualInteractionSource2 { - type Vtable = IVisualInteractionSource2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVisualInteractionSource2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaa914893_a73c_414d_80d0_249bad2fbd93); -} +::windows_core::imp::com_interface!(IVisualInteractionSource2, IVisualInteractionSource2_Vtbl, 0xaa914893_a73c_414d_80d0_249bad2fbd93); #[repr(C)] #[doc(hidden)] pub struct IVisualInteractionSource2_Vtbl { @@ -871,63 +531,27 @@ pub struct IVisualInteractionSource2_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] ConfigureDeltaScaleModifiers: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVisualInteractionSource3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVisualInteractionSource3 { - type Vtable = IVisualInteractionSource3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVisualInteractionSource3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd941ef2a_0d5c_4057_92d7_c9711533204f); -} +::windows_core::imp::com_interface!(IVisualInteractionSource3, IVisualInteractionSource3_Vtbl, 0xd941ef2a_0d5c_4057_92d7_c9711533204f); #[repr(C)] #[doc(hidden)] pub struct IVisualInteractionSource3_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub PointerWheelConfig: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVisualInteractionSourceObjectFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVisualInteractionSourceObjectFactory { - type Vtable = IVisualInteractionSourceObjectFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVisualInteractionSourceObjectFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb2ca917c_e98a_41f2_b3c9_891c9266c8f6); -} +::windows_core::imp::com_interface!(IVisualInteractionSourceObjectFactory, IVisualInteractionSourceObjectFactory_Vtbl, 0xb2ca917c_e98a_41f2_b3c9_891c9266c8f6); #[repr(C)] #[doc(hidden)] pub struct IVisualInteractionSourceObjectFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVisualInteractionSourceStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVisualInteractionSourceStatics { - type Vtable = IVisualInteractionSourceStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVisualInteractionSourceStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x369965e1_8645_4f75_ba00_6479cd10c8e6); -} +::windows_core::imp::com_interface!(IVisualInteractionSourceStatics, IVisualInteractionSourceStatics_Vtbl, 0x369965e1_8645_4f75_ba00_6479cd10c8e6); #[repr(C)] #[doc(hidden)] pub struct IVisualInteractionSourceStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, source: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVisualInteractionSourceStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVisualInteractionSourceStatics2 { - type Vtable = IVisualInteractionSourceStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVisualInteractionSourceStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa979c032_5764_55e0_bc1f_0778786dcfde); -} +::windows_core::imp::com_interface!(IVisualInteractionSourceStatics2, IVisualInteractionSourceStatics2_Vtbl, 0xa979c032_5764_55e0_bc1f_0778786dcfde); #[repr(C)] #[doc(hidden)] pub struct IVisualInteractionSourceStatics2_Vtbl { @@ -937,16 +561,18 @@ pub struct IVisualInteractionSourceStatics2_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CompositionConditionalValue(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CompositionConditionalValue, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(CompositionConditionalValue, super::IAnimationObject, super::super::super::Foundation::IClosable, super::CompositionObject); impl CompositionConditionalValue { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Condition(&self) -> ::windows_core::Result { @@ -987,7 +613,7 @@ impl CompositionConditionalValue { }) } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -996,14 +622,14 @@ impl CompositionConditionalValue { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1011,28 +637,28 @@ impl CompositionConditionalValue { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1042,34 +668,34 @@ impl CompositionConditionalValue { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -1077,11 +703,11 @@ impl CompositionConditionalValue { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } #[doc(hidden)] pub fn ICompositionConditionalValueStatics ::windows_core::Result>(callback: F) -> ::windows_core::Result { @@ -1094,32 +720,29 @@ impl ::windows_core::RuntimeType for CompositionConditionalValue { } unsafe impl ::windows_core::Interface for CompositionConditionalValue { type Vtable = ICompositionConditionalValue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CompositionConditionalValue { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CompositionConditionalValue { const NAME: &'static str = "Windows.UI.Composition.Interactions.CompositionConditionalValue"; } -::windows_core::imp::interface_hierarchy!(CompositionConditionalValue, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CompositionConditionalValue {} -impl ::windows_core::CanTryInto for CompositionConditionalValue {} -impl ::windows_core::CanTryInto for CompositionConditionalValue {} unsafe impl ::core::marker::Send for CompositionConditionalValue {} unsafe impl ::core::marker::Sync for CompositionConditionalValue {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CompositionInteractionSourceCollection(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CompositionInteractionSourceCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(CompositionInteractionSourceCollection, super::IAnimationObject, super::super::super::Foundation::IClosable, super::super::super::Foundation::Collections::IIterable::, super::CompositionObject); impl CompositionInteractionSourceCollection { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Count(&self) -> ::windows_core::Result { @@ -1131,24 +754,24 @@ impl CompositionInteractionSourceCollection { } pub fn Add(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).Add)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).Add)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn Remove(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).Remove)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).Remove)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn RemoveAll(&self) -> ::windows_core::Result<()> { let this = self; unsafe { (::windows_core::Interface::vtable(this).RemoveAll)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1157,14 +780,14 @@ impl CompositionInteractionSourceCollection { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1172,28 +795,28 @@ impl CompositionInteractionSourceCollection { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1203,34 +826,34 @@ impl CompositionInteractionSourceCollection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -1238,16 +861,16 @@ impl CompositionInteractionSourceCollection { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1259,9 +882,7 @@ impl ::windows_core::RuntimeType for CompositionInteractionSourceCollection { } unsafe impl ::windows_core::Interface for CompositionInteractionSourceCollection { type Vtable = ICompositionInteractionSourceCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CompositionInteractionSourceCollection { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CompositionInteractionSourceCollection { const NAME: &'static str = "Windows.UI.Composition.Interactions.CompositionInteractionSourceCollection"; @@ -1282,31 +903,27 @@ impl ::core::iter::IntoIterator for &CompositionInteractionSourceCollection { self.First().unwrap() } } -::windows_core::imp::interface_hierarchy!(CompositionInteractionSourceCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CompositionInteractionSourceCollection {} -impl ::windows_core::CanTryInto for CompositionInteractionSourceCollection {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for CompositionInteractionSourceCollection {} -impl ::windows_core::CanTryInto for CompositionInteractionSourceCollection {} unsafe impl ::core::marker::Send for CompositionInteractionSourceCollection {} unsafe impl ::core::marker::Sync for CompositionInteractionSourceCollection {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct InteractionSourceConfiguration(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(InteractionSourceConfiguration, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(InteractionSourceConfiguration, super::IAnimationObject, super::super::super::Foundation::IClosable, super::CompositionObject); impl InteractionSourceConfiguration { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1315,14 +932,14 @@ impl InteractionSourceConfiguration { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1330,28 +947,28 @@ impl InteractionSourceConfiguration { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1361,34 +978,34 @@ impl InteractionSourceConfiguration { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -1396,11 +1013,11 @@ impl InteractionSourceConfiguration { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } pub fn PositionXSourceMode(&self) -> ::windows_core::Result { let this = self; @@ -1441,36 +1058,32 @@ impl ::windows_core::RuntimeType for InteractionSourceConfiguration { } unsafe impl ::windows_core::Interface for InteractionSourceConfiguration { type Vtable = IInteractionSourceConfiguration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for InteractionSourceConfiguration { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for InteractionSourceConfiguration { const NAME: &'static str = "Windows.UI.Composition.Interactions.InteractionSourceConfiguration"; } -::windows_core::imp::interface_hierarchy!(InteractionSourceConfiguration, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for InteractionSourceConfiguration {} -impl ::windows_core::CanTryInto for InteractionSourceConfiguration {} -impl ::windows_core::CanTryInto for InteractionSourceConfiguration {} unsafe impl ::core::marker::Send for InteractionSourceConfiguration {} unsafe impl ::core::marker::Sync for InteractionSourceConfiguration {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct InteractionTracker(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(InteractionTracker, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(InteractionTracker, super::IAnimationObject, super::super::super::Foundation::IClosable, super::CompositionObject); impl InteractionTracker { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1479,14 +1092,14 @@ impl InteractionTracker { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1494,28 +1107,28 @@ impl InteractionTracker { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1525,34 +1138,34 @@ impl InteractionTracker { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -1560,11 +1173,11 @@ impl InteractionTracker { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } pub fn InteractionSources(&self) -> ::windows_core::Result { let this = self; @@ -1677,10 +1290,10 @@ impl InteractionTracker { #[cfg(feature = "Foundation_Numerics")] pub fn SetPositionInertiaDecayRate(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetPositionInertiaDecayRate)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetPositionInertiaDecayRate)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] @@ -1707,10 +1320,10 @@ impl InteractionTracker { } pub fn SetScaleInertiaDecayRate(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetScaleInertiaDecayRate)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetScaleInertiaDecayRate)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn ScaleVelocityInPercentPerSecond(&self) -> ::windows_core::Result { let this = self; @@ -1731,28 +1344,28 @@ impl InteractionTracker { #[cfg(feature = "Foundation_Collections")] pub fn ConfigurePositionXInertiaModifiers(&self, modifiers: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).ConfigurePositionXInertiaModifiers)(::windows_core::Interface::as_raw(this), modifiers.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).ConfigurePositionXInertiaModifiers)(::windows_core::Interface::as_raw(this), modifiers.into_param().abi()).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn ConfigurePositionYInertiaModifiers(&self, modifiers: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).ConfigurePositionYInertiaModifiers)(::windows_core::Interface::as_raw(this), modifiers.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).ConfigurePositionYInertiaModifiers)(::windows_core::Interface::as_raw(this), modifiers.into_param().abi()).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn ConfigureScaleInertiaModifiers(&self, modifiers: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).ConfigureScaleInertiaModifiers)(::windows_core::Interface::as_raw(this), modifiers.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).ConfigureScaleInertiaModifiers)(::windows_core::Interface::as_raw(this), modifiers.into_param().abi()).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] @@ -1774,12 +1387,12 @@ impl InteractionTracker { } pub fn TryUpdatePositionWithAnimation(&self, animation: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).TryUpdatePositionWithAnimation)(::windows_core::Interface::as_raw(this), animation.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).TryUpdatePositionWithAnimation)(::windows_core::Interface::as_raw(this), animation.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Numerics\"`"] @@ -1804,12 +1417,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::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).TryUpdateScaleWithAnimation)(::windows_core::Interface::as_raw(this), animation.try_into_param()?.abi(), centerpoint, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).TryUpdateScaleWithAnimation)(::windows_core::Interface::as_raw(this), animation.into_param().abi(), centerpoint, &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Numerics\"`"] @@ -1825,33 +1438,33 @@ impl InteractionTracker { #[cfg(feature = "Foundation_Collections")] pub fn ConfigureCenterPointXInertiaModifiers(&self, conditionalvalues: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).ConfigureCenterPointXInertiaModifiers)(::windows_core::Interface::as_raw(this), conditionalvalues.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn ConfigureCenterPointYInertiaModifiers(&self, conditionalvalues: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).ConfigureCenterPointYInertiaModifiers)(::windows_core::Interface::as_raw(this), conditionalvalues.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn ConfigureVector2PositionInertiaModifiers(&self, modifiers: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).ConfigureVector2PositionInertiaModifiers)(::windows_core::Interface::as_raw(this), modifiers.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn TryUpdatePositionWithOption(&self, value: super::super::super::Foundation::Numerics::Vector3, option: InteractionTrackerClampingOption) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryUpdatePositionWithOption)(::windows_core::Interface::as_raw(this), value, option, &mut result__).from_abi(result__) @@ -1860,14 +1473,14 @@ impl InteractionTracker { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn TryUpdatePositionByWithOption(&self, amount: super::super::super::Foundation::Numerics::Vector3, option: InteractionTrackerClampingOption) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryUpdatePositionByWithOption)(::windows_core::Interface::as_raw(this), amount, option, &mut result__).from_abi(result__) } } pub fn IsInertiaFromImpulse(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsInertiaFromImpulse)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1876,7 +1489,7 @@ impl InteractionTracker { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn TryUpdatePositionWithOption2(&self, value: super::super::super::Foundation::Numerics::Vector3, option: InteractionTrackerClampingOption, posupdateoption: InteractionTrackerPositionUpdateOption) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryUpdatePositionWithOption)(::windows_core::Interface::as_raw(this), value, option, posupdateoption, &mut result__).from_abi(result__) @@ -1894,11 +1507,11 @@ impl InteractionTracker { pub fn CreateWithOwner(compositor: P0, owner: P1) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam, + P1: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateWithOwner)(::windows_core::Interface::as_raw(this), compositor.into_param().abi(), owner.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn SetBindingMode(boundtracker1: P0, boundtracker2: P1, axismode: InteractionBindingAxisModes) -> ::windows_core::Result<()> @@ -1934,22 +1547,17 @@ impl ::windows_core::RuntimeType for InteractionTracker { } unsafe impl ::windows_core::Interface for InteractionTracker { type Vtable = IInteractionTracker_Vtbl; -} -unsafe impl ::windows_core::ComInterface for InteractionTracker { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for InteractionTracker { const NAME: &'static str = "Windows.UI.Composition.Interactions.InteractionTracker"; } -::windows_core::imp::interface_hierarchy!(InteractionTracker, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for InteractionTracker {} -impl ::windows_core::CanTryInto for InteractionTracker {} -impl ::windows_core::CanTryInto for InteractionTracker {} unsafe impl ::core::marker::Send for InteractionTracker {} unsafe impl ::core::marker::Sync for InteractionTracker {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct InteractionTrackerCustomAnimationStateEnteredArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(InteractionTrackerCustomAnimationStateEnteredArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl InteractionTrackerCustomAnimationStateEnteredArgs { pub fn RequestId(&self) -> ::windows_core::Result { let this = self; @@ -1959,7 +1567,7 @@ impl InteractionTrackerCustomAnimationStateEnteredArgs { } } pub fn IsFromBinding(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsFromBinding)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1971,19 +1579,17 @@ impl ::windows_core::RuntimeType for InteractionTrackerCustomAnimationStateEnter } unsafe impl ::windows_core::Interface for InteractionTrackerCustomAnimationStateEnteredArgs { type Vtable = IInteractionTrackerCustomAnimationStateEnteredArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for InteractionTrackerCustomAnimationStateEnteredArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for InteractionTrackerCustomAnimationStateEnteredArgs { const NAME: &'static str = "Windows.UI.Composition.Interactions.InteractionTrackerCustomAnimationStateEnteredArgs"; } -::windows_core::imp::interface_hierarchy!(InteractionTrackerCustomAnimationStateEnteredArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for InteractionTrackerCustomAnimationStateEnteredArgs {} unsafe impl ::core::marker::Sync for InteractionTrackerCustomAnimationStateEnteredArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct InteractionTrackerIdleStateEnteredArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(InteractionTrackerIdleStateEnteredArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl InteractionTrackerIdleStateEnteredArgs { pub fn RequestId(&self) -> ::windows_core::Result { let this = self; @@ -1993,7 +1599,7 @@ impl InteractionTrackerIdleStateEnteredArgs { } } pub fn IsFromBinding(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsFromBinding)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2005,33 +1611,32 @@ impl ::windows_core::RuntimeType for InteractionTrackerIdleStateEnteredArgs { } unsafe impl ::windows_core::Interface for InteractionTrackerIdleStateEnteredArgs { type Vtable = IInteractionTrackerIdleStateEnteredArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for InteractionTrackerIdleStateEnteredArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for InteractionTrackerIdleStateEnteredArgs { const NAME: &'static str = "Windows.UI.Composition.Interactions.InteractionTrackerIdleStateEnteredArgs"; } -::windows_core::imp::interface_hierarchy!(InteractionTrackerIdleStateEnteredArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for InteractionTrackerIdleStateEnteredArgs {} unsafe impl ::core::marker::Sync for InteractionTrackerIdleStateEnteredArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct InteractionTrackerInertiaModifier(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(InteractionTrackerInertiaModifier, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(InteractionTrackerInertiaModifier, super::IAnimationObject, super::super::super::Foundation::IClosable, super::CompositionObject); impl InteractionTrackerInertiaModifier { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2040,14 +1645,14 @@ impl InteractionTrackerInertiaModifier { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2055,28 +1660,28 @@ impl InteractionTrackerInertiaModifier { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2086,34 +1691,34 @@ impl InteractionTrackerInertiaModifier { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -2121,11 +1726,11 @@ impl InteractionTrackerInertiaModifier { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } } impl ::windows_core::RuntimeType for InteractionTrackerInertiaModifier { @@ -2133,36 +1738,32 @@ impl ::windows_core::RuntimeType for InteractionTrackerInertiaModifier { } unsafe impl ::windows_core::Interface for InteractionTrackerInertiaModifier { type Vtable = IInteractionTrackerInertiaModifier_Vtbl; -} -unsafe impl ::windows_core::ComInterface for InteractionTrackerInertiaModifier { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for InteractionTrackerInertiaModifier { const NAME: &'static str = "Windows.UI.Composition.Interactions.InteractionTrackerInertiaModifier"; } -::windows_core::imp::interface_hierarchy!(InteractionTrackerInertiaModifier, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for InteractionTrackerInertiaModifier {} -impl ::windows_core::CanTryInto for InteractionTrackerInertiaModifier {} -impl ::windows_core::CanTryInto for InteractionTrackerInertiaModifier {} unsafe impl ::core::marker::Send for InteractionTrackerInertiaModifier {} unsafe impl ::core::marker::Sync for InteractionTrackerInertiaModifier {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct InteractionTrackerInertiaMotion(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(InteractionTrackerInertiaMotion, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(InteractionTrackerInertiaMotion, super::IAnimationObject, super::super::super::Foundation::IClosable, InteractionTrackerInertiaModifier, super::CompositionObject); impl InteractionTrackerInertiaMotion { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2171,14 +1772,14 @@ impl InteractionTrackerInertiaMotion { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2186,28 +1787,28 @@ impl InteractionTrackerInertiaMotion { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2217,34 +1818,34 @@ impl InteractionTrackerInertiaMotion { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -2252,11 +1853,11 @@ impl InteractionTrackerInertiaMotion { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } pub fn Condition(&self) -> ::windows_core::Result { let this = self; @@ -2306,37 +1907,32 @@ impl ::windows_core::RuntimeType for InteractionTrackerInertiaMotion { } unsafe impl ::windows_core::Interface for InteractionTrackerInertiaMotion { type Vtable = IInteractionTrackerInertiaMotion_Vtbl; -} -unsafe impl ::windows_core::ComInterface for InteractionTrackerInertiaMotion { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for InteractionTrackerInertiaMotion { const NAME: &'static str = "Windows.UI.Composition.Interactions.InteractionTrackerInertiaMotion"; } -::windows_core::imp::interface_hierarchy!(InteractionTrackerInertiaMotion, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for InteractionTrackerInertiaMotion {} -impl ::windows_core::CanTryInto for InteractionTrackerInertiaMotion {} -impl ::windows_core::CanTryInto for InteractionTrackerInertiaMotion {} -impl ::windows_core::CanTryInto for InteractionTrackerInertiaMotion {} unsafe impl ::core::marker::Send for InteractionTrackerInertiaMotion {} unsafe impl ::core::marker::Sync for InteractionTrackerInertiaMotion {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct InteractionTrackerInertiaNaturalMotion(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(InteractionTrackerInertiaNaturalMotion, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(InteractionTrackerInertiaNaturalMotion, super::IAnimationObject, super::super::super::Foundation::IClosable, InteractionTrackerInertiaModifier, super::CompositionObject); impl InteractionTrackerInertiaNaturalMotion { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2345,14 +1941,14 @@ impl InteractionTrackerInertiaNaturalMotion { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2360,28 +1956,28 @@ impl InteractionTrackerInertiaNaturalMotion { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2391,34 +1987,34 @@ impl InteractionTrackerInertiaNaturalMotion { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -2426,11 +2022,11 @@ impl InteractionTrackerInertiaNaturalMotion { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } pub fn Condition(&self) -> ::windows_core::Result { let this = self; @@ -2455,10 +2051,10 @@ impl InteractionTrackerInertiaNaturalMotion { } pub fn SetNaturalMotion(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetNaturalMotion)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetNaturalMotion)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn Create(compositor: P0) -> ::windows_core::Result where @@ -2480,37 +2076,32 @@ impl ::windows_core::RuntimeType for InteractionTrackerInertiaNaturalMotion { } unsafe impl ::windows_core::Interface for InteractionTrackerInertiaNaturalMotion { type Vtable = IInteractionTrackerInertiaNaturalMotion_Vtbl; -} -unsafe impl ::windows_core::ComInterface for InteractionTrackerInertiaNaturalMotion { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for InteractionTrackerInertiaNaturalMotion { const NAME: &'static str = "Windows.UI.Composition.Interactions.InteractionTrackerInertiaNaturalMotion"; } -::windows_core::imp::interface_hierarchy!(InteractionTrackerInertiaNaturalMotion, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for InteractionTrackerInertiaNaturalMotion {} -impl ::windows_core::CanTryInto for InteractionTrackerInertiaNaturalMotion {} -impl ::windows_core::CanTryInto for InteractionTrackerInertiaNaturalMotion {} -impl ::windows_core::CanTryInto for InteractionTrackerInertiaNaturalMotion {} unsafe impl ::core::marker::Send for InteractionTrackerInertiaNaturalMotion {} unsafe impl ::core::marker::Sync for InteractionTrackerInertiaNaturalMotion {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct InteractionTrackerInertiaRestingValue(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(InteractionTrackerInertiaRestingValue, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(InteractionTrackerInertiaRestingValue, super::IAnimationObject, super::super::super::Foundation::IClosable, InteractionTrackerInertiaModifier, super::CompositionObject); impl InteractionTrackerInertiaRestingValue { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2519,14 +2110,14 @@ impl InteractionTrackerInertiaRestingValue { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2534,28 +2125,28 @@ impl InteractionTrackerInertiaRestingValue { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2565,34 +2156,34 @@ impl InteractionTrackerInertiaRestingValue { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -2600,11 +2191,11 @@ impl InteractionTrackerInertiaRestingValue { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } pub fn Condition(&self) -> ::windows_core::Result { let this = self; @@ -2654,23 +2245,17 @@ impl ::windows_core::RuntimeType for InteractionTrackerInertiaRestingValue { } unsafe impl ::windows_core::Interface for InteractionTrackerInertiaRestingValue { type Vtable = IInteractionTrackerInertiaRestingValue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for InteractionTrackerInertiaRestingValue { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for InteractionTrackerInertiaRestingValue { const NAME: &'static str = "Windows.UI.Composition.Interactions.InteractionTrackerInertiaRestingValue"; } -::windows_core::imp::interface_hierarchy!(InteractionTrackerInertiaRestingValue, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for InteractionTrackerInertiaRestingValue {} -impl ::windows_core::CanTryInto for InteractionTrackerInertiaRestingValue {} -impl ::windows_core::CanTryInto for InteractionTrackerInertiaRestingValue {} -impl ::windows_core::CanTryInto for InteractionTrackerInertiaRestingValue {} unsafe impl ::core::marker::Send for InteractionTrackerInertiaRestingValue {} unsafe impl ::core::marker::Sync for InteractionTrackerInertiaRestingValue {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct InteractionTrackerInertiaStateEnteredArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(InteractionTrackerInertiaStateEnteredArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl InteractionTrackerInertiaStateEnteredArgs { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] @@ -2728,14 +2313,14 @@ impl InteractionTrackerInertiaStateEnteredArgs { } } pub fn IsInertiaFromImpulse(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsInertiaFromImpulse)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsFromBinding(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsFromBinding)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2747,19 +2332,17 @@ impl ::windows_core::RuntimeType for InteractionTrackerInertiaStateEnteredArgs { } unsafe impl ::windows_core::Interface for InteractionTrackerInertiaStateEnteredArgs { type Vtable = IInteractionTrackerInertiaStateEnteredArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for InteractionTrackerInertiaStateEnteredArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for InteractionTrackerInertiaStateEnteredArgs { const NAME: &'static str = "Windows.UI.Composition.Interactions.InteractionTrackerInertiaStateEnteredArgs"; } -::windows_core::imp::interface_hierarchy!(InteractionTrackerInertiaStateEnteredArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for InteractionTrackerInertiaStateEnteredArgs {} unsafe impl ::core::marker::Sync for InteractionTrackerInertiaStateEnteredArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct InteractionTrackerInteractingStateEnteredArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(InteractionTrackerInteractingStateEnteredArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl InteractionTrackerInteractingStateEnteredArgs { pub fn RequestId(&self) -> ::windows_core::Result { let this = self; @@ -2769,7 +2352,7 @@ impl InteractionTrackerInteractingStateEnteredArgs { } } pub fn IsFromBinding(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsFromBinding)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2781,19 +2364,17 @@ impl ::windows_core::RuntimeType for InteractionTrackerInteractingStateEnteredAr } unsafe impl ::windows_core::Interface for InteractionTrackerInteractingStateEnteredArgs { type Vtable = IInteractionTrackerInteractingStateEnteredArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for InteractionTrackerInteractingStateEnteredArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for InteractionTrackerInteractingStateEnteredArgs { const NAME: &'static str = "Windows.UI.Composition.Interactions.InteractionTrackerInteractingStateEnteredArgs"; } -::windows_core::imp::interface_hierarchy!(InteractionTrackerInteractingStateEnteredArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for InteractionTrackerInteractingStateEnteredArgs {} unsafe impl ::core::marker::Sync for InteractionTrackerInteractingStateEnteredArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct InteractionTrackerRequestIgnoredArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(InteractionTrackerRequestIgnoredArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl InteractionTrackerRequestIgnoredArgs { pub fn RequestId(&self) -> ::windows_core::Result { let this = self; @@ -2808,19 +2389,17 @@ impl ::windows_core::RuntimeType for InteractionTrackerRequestIgnoredArgs { } unsafe impl ::windows_core::Interface for InteractionTrackerRequestIgnoredArgs { type Vtable = IInteractionTrackerRequestIgnoredArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for InteractionTrackerRequestIgnoredArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for InteractionTrackerRequestIgnoredArgs { const NAME: &'static str = "Windows.UI.Composition.Interactions.InteractionTrackerRequestIgnoredArgs"; } -::windows_core::imp::interface_hierarchy!(InteractionTrackerRequestIgnoredArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for InteractionTrackerRequestIgnoredArgs {} unsafe impl ::core::marker::Sync for InteractionTrackerRequestIgnoredArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct InteractionTrackerValuesChangedArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(InteractionTrackerValuesChangedArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl InteractionTrackerValuesChangedArgs { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] @@ -2851,33 +2430,32 @@ impl ::windows_core::RuntimeType for InteractionTrackerValuesChangedArgs { } unsafe impl ::windows_core::Interface for InteractionTrackerValuesChangedArgs { type Vtable = IInteractionTrackerValuesChangedArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for InteractionTrackerValuesChangedArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for InteractionTrackerValuesChangedArgs { const NAME: &'static str = "Windows.UI.Composition.Interactions.InteractionTrackerValuesChangedArgs"; } -::windows_core::imp::interface_hierarchy!(InteractionTrackerValuesChangedArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for InteractionTrackerValuesChangedArgs {} unsafe impl ::core::marker::Sync for InteractionTrackerValuesChangedArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct InteractionTrackerVector2InertiaModifier(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(InteractionTrackerVector2InertiaModifier, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(InteractionTrackerVector2InertiaModifier, super::IAnimationObject, super::super::super::Foundation::IClosable, super::CompositionObject); impl InteractionTrackerVector2InertiaModifier { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2886,14 +2464,14 @@ impl InteractionTrackerVector2InertiaModifier { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2901,28 +2479,28 @@ impl InteractionTrackerVector2InertiaModifier { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2932,34 +2510,34 @@ impl InteractionTrackerVector2InertiaModifier { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -2967,11 +2545,11 @@ impl InteractionTrackerVector2InertiaModifier { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } } impl ::windows_core::RuntimeType for InteractionTrackerVector2InertiaModifier { @@ -2979,36 +2557,32 @@ impl ::windows_core::RuntimeType for InteractionTrackerVector2InertiaModifier { } unsafe impl ::windows_core::Interface for InteractionTrackerVector2InertiaModifier { type Vtable = IInteractionTrackerVector2InertiaModifier_Vtbl; -} -unsafe impl ::windows_core::ComInterface for InteractionTrackerVector2InertiaModifier { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for InteractionTrackerVector2InertiaModifier { const NAME: &'static str = "Windows.UI.Composition.Interactions.InteractionTrackerVector2InertiaModifier"; } -::windows_core::imp::interface_hierarchy!(InteractionTrackerVector2InertiaModifier, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for InteractionTrackerVector2InertiaModifier {} -impl ::windows_core::CanTryInto for InteractionTrackerVector2InertiaModifier {} -impl ::windows_core::CanTryInto for InteractionTrackerVector2InertiaModifier {} unsafe impl ::core::marker::Send for InteractionTrackerVector2InertiaModifier {} unsafe impl ::core::marker::Sync for InteractionTrackerVector2InertiaModifier {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct InteractionTrackerVector2InertiaNaturalMotion(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(InteractionTrackerVector2InertiaNaturalMotion, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(InteractionTrackerVector2InertiaNaturalMotion, super::IAnimationObject, super::super::super::Foundation::IClosable, InteractionTrackerVector2InertiaModifier, super::CompositionObject); impl InteractionTrackerVector2InertiaNaturalMotion { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3017,14 +2591,14 @@ impl InteractionTrackerVector2InertiaNaturalMotion { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3032,28 +2606,28 @@ impl InteractionTrackerVector2InertiaNaturalMotion { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3063,34 +2637,34 @@ impl InteractionTrackerVector2InertiaNaturalMotion { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -3098,11 +2672,11 @@ impl InteractionTrackerVector2InertiaNaturalMotion { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } pub fn Condition(&self) -> ::windows_core::Result { let this = self; @@ -3127,10 +2701,10 @@ impl InteractionTrackerVector2InertiaNaturalMotion { } pub fn SetNaturalMotion(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetNaturalMotion)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetNaturalMotion)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn Create(compositor: P0) -> ::windows_core::Result where @@ -3152,37 +2726,32 @@ impl ::windows_core::RuntimeType for InteractionTrackerVector2InertiaNaturalMoti } unsafe impl ::windows_core::Interface for InteractionTrackerVector2InertiaNaturalMotion { type Vtable = IInteractionTrackerVector2InertiaNaturalMotion_Vtbl; -} -unsafe impl ::windows_core::ComInterface for InteractionTrackerVector2InertiaNaturalMotion { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for InteractionTrackerVector2InertiaNaturalMotion { const NAME: &'static str = "Windows.UI.Composition.Interactions.InteractionTrackerVector2InertiaNaturalMotion"; } -::windows_core::imp::interface_hierarchy!(InteractionTrackerVector2InertiaNaturalMotion, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for InteractionTrackerVector2InertiaNaturalMotion {} -impl ::windows_core::CanTryInto for InteractionTrackerVector2InertiaNaturalMotion {} -impl ::windows_core::CanTryInto for InteractionTrackerVector2InertiaNaturalMotion {} -impl ::windows_core::CanTryInto for InteractionTrackerVector2InertiaNaturalMotion {} unsafe impl ::core::marker::Send for InteractionTrackerVector2InertiaNaturalMotion {} unsafe impl ::core::marker::Sync for InteractionTrackerVector2InertiaNaturalMotion {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VisualInteractionSource(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VisualInteractionSource, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(VisualInteractionSource, super::IAnimationObject, super::super::super::Foundation::IClosable, ICompositionInteractionSource, super::CompositionObject); impl VisualInteractionSource { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3191,14 +2760,14 @@ impl VisualInteractionSource { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3206,28 +2775,28 @@ impl VisualInteractionSource { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3237,34 +2806,34 @@ impl VisualInteractionSource { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -3272,11 +2841,11 @@ impl VisualInteractionSource { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } pub fn IsPositionXRailsEnabled(&self) -> ::windows_core::Result { let this = self; @@ -3396,14 +2965,14 @@ impl VisualInteractionSource { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn DeltaPosition(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DeltaPosition)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn DeltaScale(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DeltaScale)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3412,7 +2981,7 @@ impl VisualInteractionSource { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn Position(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Position)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3421,21 +2990,21 @@ impl VisualInteractionSource { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn PositionVelocity(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PositionVelocity)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Scale(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Scale)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ScaleVelocity(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ScaleVelocity)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3445,49 +3014,49 @@ impl VisualInteractionSource { #[cfg(feature = "Foundation_Collections")] pub fn ConfigureCenterPointXModifiers(&self, conditionalvalues: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).ConfigureCenterPointXModifiers)(::windows_core::Interface::as_raw(this), conditionalvalues.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn ConfigureCenterPointYModifiers(&self, conditionalvalues: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).ConfigureCenterPointYModifiers)(::windows_core::Interface::as_raw(this), conditionalvalues.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn ConfigureDeltaPositionXModifiers(&self, conditionalvalues: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).ConfigureDeltaPositionXModifiers)(::windows_core::Interface::as_raw(this), conditionalvalues.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn ConfigureDeltaPositionYModifiers(&self, conditionalvalues: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).ConfigureDeltaPositionYModifiers)(::windows_core::Interface::as_raw(this), conditionalvalues.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn ConfigureDeltaScaleModifiers(&self, conditionalvalues: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).ConfigureDeltaScaleModifiers)(::windows_core::Interface::as_raw(this), conditionalvalues.try_into_param()?.abi()).ok() } + 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() } } pub fn PointerWheelConfig(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PointerWheelConfig)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3495,20 +3064,20 @@ impl VisualInteractionSource { } pub fn Create(source: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IVisualInteractionSourceStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).Create)(::windows_core::Interface::as_raw(this), source.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).Create)(::windows_core::Interface::as_raw(this), source.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn CreateFromIVisualElement(source: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IVisualInteractionSourceStatics2(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateFromIVisualElement)(::windows_core::Interface::as_raw(this), source.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateFromIVisualElement)(::windows_core::Interface::as_raw(this), source.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -3527,18 +3096,11 @@ impl ::windows_core::RuntimeType for VisualInteractionSource { } unsafe impl ::windows_core::Interface for VisualInteractionSource { type Vtable = IVisualInteractionSource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VisualInteractionSource { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VisualInteractionSource { const NAME: &'static str = "Windows.UI.Composition.Interactions.VisualInteractionSource"; } -::windows_core::imp::interface_hierarchy!(VisualInteractionSource, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for VisualInteractionSource {} -impl ::windows_core::CanTryInto for VisualInteractionSource {} -impl ::windows_core::CanTryInto for VisualInteractionSource {} -impl ::windows_core::CanTryInto for VisualInteractionSource {} unsafe impl ::core::marker::Send for VisualInteractionSource {} unsafe impl ::core::marker::Sync for VisualInteractionSource {} #[repr(transparent)] 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 38300dd1f3..df4996e1e3 100644 --- a/crates/libs/windows/src/Windows/UI/Composition/Scenes/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Composition/Scenes/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISceneBoundingBox(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISceneBoundingBox { - type Vtable = ISceneBoundingBox_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISceneBoundingBox { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5d8ffc70_c618_4083_8251_9962593114aa); -} +::windows_core::imp::com_interface!(ISceneBoundingBox, ISceneBoundingBox_Vtbl, 0x5d8ffc70_c618_4083_8251_9962593114aa); #[repr(C)] #[doc(hidden)] pub struct ISceneBoundingBox_Vtbl { @@ -33,122 +24,50 @@ pub struct ISceneBoundingBox_Vtbl { #[cfg(not(feature = "Foundation_Numerics"))] Size: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISceneComponent(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISceneComponent { - type Vtable = ISceneComponent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISceneComponent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xae20fc96_226c_44bd_95cb_dd5ed9ebe9a5); -} +::windows_core::imp::com_interface!(ISceneComponent, ISceneComponent_Vtbl, 0xae20fc96_226c_44bd_95cb_dd5ed9ebe9a5); #[repr(C)] #[doc(hidden)] pub struct ISceneComponent_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ComponentType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut SceneComponentType) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISceneComponentCollection(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISceneComponentCollection { - type Vtable = ISceneComponentCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISceneComponentCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc483791c_5f46_45e4_b666_a3d2259f9b2e); -} +::windows_core::imp::com_interface!(ISceneComponentCollection, ISceneComponentCollection_Vtbl, 0xc483791c_5f46_45e4_b666_a3d2259f9b2e); #[repr(C)] #[doc(hidden)] pub struct ISceneComponentCollection_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISceneComponentFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISceneComponentFactory { - type Vtable = ISceneComponentFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISceneComponentFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5fbc5574_ddd8_5889_ab5b_d8fa716e7c9e); -} +::windows_core::imp::com_interface!(ISceneComponentFactory, ISceneComponentFactory_Vtbl, 0x5fbc5574_ddd8_5889_ab5b_d8fa716e7c9e); #[repr(C)] #[doc(hidden)] pub struct ISceneComponentFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISceneMaterial(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISceneMaterial { - type Vtable = ISceneMaterial_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISceneMaterial { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8ca74b7c_30df_4e07_9490_37875af1a123); -} +::windows_core::imp::com_interface!(ISceneMaterial, ISceneMaterial_Vtbl, 0x8ca74b7c_30df_4e07_9490_37875af1a123); #[repr(C)] #[doc(hidden)] pub struct ISceneMaterial_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISceneMaterialFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISceneMaterialFactory { - type Vtable = ISceneMaterialFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISceneMaterialFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x67536c19_a707_5254_a495_7fdc799893b9); -} +::windows_core::imp::com_interface!(ISceneMaterialFactory, ISceneMaterialFactory_Vtbl, 0x67536c19_a707_5254_a495_7fdc799893b9); #[repr(C)] #[doc(hidden)] pub struct ISceneMaterialFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISceneMaterialInput(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISceneMaterialInput { - type Vtable = ISceneMaterialInput_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISceneMaterialInput { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x422a1642_1ef1_485c_97e9_ae6f95ad812f); -} +::windows_core::imp::com_interface!(ISceneMaterialInput, ISceneMaterialInput_Vtbl, 0x422a1642_1ef1_485c_97e9_ae6f95ad812f); #[repr(C)] #[doc(hidden)] pub struct ISceneMaterialInput_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISceneMaterialInputFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISceneMaterialInputFactory { - type Vtable = ISceneMaterialInputFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISceneMaterialInputFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa88feb74_7d0a_5e4c_a748_1015af9ca74f); -} +::windows_core::imp::com_interface!(ISceneMaterialInputFactory, ISceneMaterialInputFactory_Vtbl, 0xa88feb74_7d0a_5e4c_a748_1015af9ca74f); #[repr(C)] #[doc(hidden)] pub struct ISceneMaterialInputFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISceneMesh(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISceneMesh { - type Vtable = ISceneMesh_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISceneMesh { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xee9a1530_1155_4c0c_92bd_40020cf78347); -} +::windows_core::imp::com_interface!(ISceneMesh, ISceneMesh_Vtbl, 0xee9a1530_1155_4c0c_92bd_40020cf78347); #[repr(C)] #[doc(hidden)] pub struct ISceneMesh_Vtbl { @@ -167,31 +86,13 @@ pub struct ISceneMesh_Vtbl { #[cfg(not(feature = "Graphics_DirectX"))] FillMeshAttribute: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISceneMeshMaterialAttributeMap(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISceneMeshMaterialAttributeMap { - type Vtable = ISceneMeshMaterialAttributeMap_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISceneMeshMaterialAttributeMap { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xce843171_3d43_4855_aa69_31ff988d049d); -} +::windows_core::imp::com_interface!(ISceneMeshMaterialAttributeMap, ISceneMeshMaterialAttributeMap_Vtbl, 0xce843171_3d43_4855_aa69_31ff988d049d); #[repr(C)] #[doc(hidden)] pub struct ISceneMeshMaterialAttributeMap_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISceneMeshRendererComponent(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISceneMeshRendererComponent { - type Vtable = ISceneMeshRendererComponent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISceneMeshRendererComponent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9929f7e3_6364_477e_98fe_74ed9fd4c2de); -} +::windows_core::imp::com_interface!(ISceneMeshRendererComponent, ISceneMeshRendererComponent_Vtbl, 0x9929f7e3_6364_477e_98fe_74ed9fd4c2de); #[repr(C)] #[doc(hidden)] pub struct ISceneMeshRendererComponent_Vtbl { @@ -202,48 +103,21 @@ pub struct ISceneMeshRendererComponent_Vtbl { pub SetMesh: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub UVMappings: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISceneMeshRendererComponentStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISceneMeshRendererComponentStatics { - type Vtable = ISceneMeshRendererComponentStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISceneMeshRendererComponentStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4954f37a_4459_4521_bd6e_2b38b8d711ea); -} +::windows_core::imp::com_interface!(ISceneMeshRendererComponentStatics, ISceneMeshRendererComponentStatics_Vtbl, 0x4954f37a_4459_4521_bd6e_2b38b8d711ea); #[repr(C)] #[doc(hidden)] pub struct ISceneMeshRendererComponentStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, compositor: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISceneMeshStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISceneMeshStatics { - type Vtable = ISceneMeshStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISceneMeshStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8412316c_7b57_473f_966b_81dc277b1751); -} +::windows_core::imp::com_interface!(ISceneMeshStatics, ISceneMeshStatics_Vtbl, 0x8412316c_7b57_473f_966b_81dc277b1751); #[repr(C)] #[doc(hidden)] pub struct ISceneMeshStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, compositor: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISceneMetallicRoughnessMaterial(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISceneMetallicRoughnessMaterial { - type Vtable = ISceneMetallicRoughnessMaterial_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISceneMetallicRoughnessMaterial { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc1d91446_799c_429e_a4e4_5da645f18e61); -} +::windows_core::imp::com_interface!(ISceneMetallicRoughnessMaterial, ISceneMetallicRoughnessMaterial_Vtbl, 0xc1d91446_799c_429e_a4e4_5da645f18e61); #[repr(C)] #[doc(hidden)] pub struct ISceneMetallicRoughnessMaterial_Vtbl { @@ -265,32 +139,14 @@ pub struct ISceneMetallicRoughnessMaterial_Vtbl { pub RoughnessFactor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows_core::HRESULT, pub SetRoughnessFactor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISceneMetallicRoughnessMaterialStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISceneMetallicRoughnessMaterialStatics { - type Vtable = ISceneMetallicRoughnessMaterialStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISceneMetallicRoughnessMaterialStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3bddca50_6d9d_4531_8dc4_b27e3e49b7ab); -} +::windows_core::imp::com_interface!(ISceneMetallicRoughnessMaterialStatics, ISceneMetallicRoughnessMaterialStatics_Vtbl, 0x3bddca50_6d9d_4531_8dc4_b27e3e49b7ab); #[repr(C)] #[doc(hidden)] pub struct ISceneMetallicRoughnessMaterialStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, compositor: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISceneModelTransform(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISceneModelTransform { - type Vtable = ISceneModelTransform_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISceneModelTransform { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc05576c2_32b1_4269_980d_b98537100ae4); -} +::windows_core::imp::com_interface!(ISceneModelTransform, ISceneModelTransform_Vtbl, 0xc05576c2_32b1_4269_980d_b98537100ae4); #[repr(C)] #[doc(hidden)] pub struct ISceneModelTransform_Vtbl { @@ -332,16 +188,7 @@ pub struct ISceneModelTransform_Vtbl { #[cfg(not(feature = "Foundation_Numerics"))] SetTranslation: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISceneNode(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISceneNode { - type Vtable = ISceneNode_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISceneNode { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xacf2c247_f307_4581_9c41_af2e29c3b016); -} +::windows_core::imp::com_interface!(ISceneNode, ISceneNode_Vtbl, 0xacf2c247_f307_4581_9c41_af2e29c3b016); #[repr(C)] #[doc(hidden)] pub struct ISceneNode_Vtbl { @@ -358,77 +205,32 @@ pub struct ISceneNode_Vtbl { pub Transform: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub FindFirstComponentOfType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: SceneComponentType, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISceneNodeCollection(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISceneNodeCollection { - type Vtable = ISceneNodeCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISceneNodeCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x29ada101_2dd9_4332_be63_60d2cf4269f2); -} +::windows_core::imp::com_interface!(ISceneNodeCollection, ISceneNodeCollection_Vtbl, 0x29ada101_2dd9_4332_be63_60d2cf4269f2); #[repr(C)] #[doc(hidden)] pub struct ISceneNodeCollection_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISceneNodeStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISceneNodeStatics { - type Vtable = ISceneNodeStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISceneNodeStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x579a0faa_be9d_4210_908c_93d15feed0b7); -} +::windows_core::imp::com_interface!(ISceneNodeStatics, ISceneNodeStatics_Vtbl, 0x579a0faa_be9d_4210_908c_93d15feed0b7); #[repr(C)] #[doc(hidden)] pub struct ISceneNodeStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, compositor: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISceneObject(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISceneObject { - type Vtable = ISceneObject_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISceneObject { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1e94249b_0f1b_49eb_a819_877d8450005b); -} +::windows_core::imp::com_interface!(ISceneObject, ISceneObject_Vtbl, 0x1e94249b_0f1b_49eb_a819_877d8450005b); #[repr(C)] #[doc(hidden)] pub struct ISceneObject_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISceneObjectFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISceneObjectFactory { - type Vtable = ISceneObjectFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISceneObjectFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x14fe799a_33e4_52ef_956c_44229d21f2c1); -} +::windows_core::imp::com_interface!(ISceneObjectFactory, ISceneObjectFactory_Vtbl, 0x14fe799a_33e4_52ef_956c_44229d21f2c1); #[repr(C)] #[doc(hidden)] pub struct ISceneObjectFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IScenePbrMaterial(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IScenePbrMaterial { - type Vtable = IScenePbrMaterial_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IScenePbrMaterial { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaab6ebbe_d680_46df_8294_b6800a9f95e7); -} +::windows_core::imp::com_interface!(IScenePbrMaterial, IScenePbrMaterial_Vtbl, 0xaab6ebbe_d680_46df_8294_b6800a9f95e7); #[repr(C)] #[doc(hidden)] pub struct IScenePbrMaterial_Vtbl { @@ -458,61 +260,25 @@ pub struct IScenePbrMaterial_Vtbl { pub OcclusionStrength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows_core::HRESULT, pub SetOcclusionStrength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IScenePbrMaterialFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IScenePbrMaterialFactory { - type Vtable = IScenePbrMaterialFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IScenePbrMaterialFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2e3f3dfe_0b85_5727_b5be_b7d3cbac37fa); -} +::windows_core::imp::com_interface!(IScenePbrMaterialFactory, IScenePbrMaterialFactory_Vtbl, 0x2e3f3dfe_0b85_5727_b5be_b7d3cbac37fa); #[repr(C)] #[doc(hidden)] pub struct IScenePbrMaterialFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISceneRendererComponent(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISceneRendererComponent { - type Vtable = ISceneRendererComponent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISceneRendererComponent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf1acb857_cf4f_4025_9b25_a2d1944cf507); -} +::windows_core::imp::com_interface!(ISceneRendererComponent, ISceneRendererComponent_Vtbl, 0xf1acb857_cf4f_4025_9b25_a2d1944cf507); #[repr(C)] #[doc(hidden)] pub struct ISceneRendererComponent_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISceneRendererComponentFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISceneRendererComponentFactory { - type Vtable = ISceneRendererComponentFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISceneRendererComponentFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1db6ed6c_aa2c_5967_9035_56352dc69658); -} +::windows_core::imp::com_interface!(ISceneRendererComponentFactory, ISceneRendererComponentFactory_Vtbl, 0x1db6ed6c_aa2c_5967_9035_56352dc69658); #[repr(C)] #[doc(hidden)] pub struct ISceneRendererComponentFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISceneSurfaceMaterialInput(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISceneSurfaceMaterialInput { - type Vtable = ISceneSurfaceMaterialInput_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISceneSurfaceMaterialInput { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9937da5c_a9ca_4cfc_b3aa_088356518742); -} +::windows_core::imp::com_interface!(ISceneSurfaceMaterialInput, ISceneSurfaceMaterialInput_Vtbl, 0x9937da5c_a9ca_4cfc_b3aa_088356518742); #[repr(C)] #[doc(hidden)] pub struct ISceneSurfaceMaterialInput_Vtbl { @@ -526,32 +292,14 @@ pub struct ISceneSurfaceMaterialInput_Vtbl { pub WrappingVMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut SceneWrappingMode) -> ::windows_core::HRESULT, pub SetWrappingVMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: SceneWrappingMode) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISceneSurfaceMaterialInputStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISceneSurfaceMaterialInputStatics { - type Vtable = ISceneSurfaceMaterialInputStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISceneSurfaceMaterialInputStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5a2394d3_6429_4589_bbcf_b84f4f3cfbfe); -} +::windows_core::imp::com_interface!(ISceneSurfaceMaterialInputStatics, ISceneSurfaceMaterialInputStatics_Vtbl, 0x5a2394d3_6429_4589_bbcf_b84f4f3cfbfe); #[repr(C)] #[doc(hidden)] pub struct ISceneSurfaceMaterialInputStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, compositor: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISceneVisual(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISceneVisual { - type Vtable = ISceneVisual_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISceneVisual { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8e672c1e_d734_47b1_be14_3d694ffa4301); -} +::windows_core::imp::com_interface!(ISceneVisual, ISceneVisual_Vtbl, 0x8e672c1e_d734_47b1_be14_3d694ffa4301); #[repr(C)] #[doc(hidden)] pub struct ISceneVisual_Vtbl { @@ -559,16 +307,7 @@ pub struct ISceneVisual_Vtbl { pub Root: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetRoot: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISceneVisualStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISceneVisualStatics { - type Vtable = ISceneVisualStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISceneVisualStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb8347e9a_50aa_4527_8d34_de4cb8ea88b4); -} +::windows_core::imp::com_interface!(ISceneVisualStatics, ISceneVisualStatics_Vtbl, 0xb8347e9a_50aa_4527_8d34_de4cb8ea88b4); #[repr(C)] #[doc(hidden)] pub struct ISceneVisualStatics_Vtbl { @@ -578,20 +317,22 @@ pub struct ISceneVisualStatics_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SceneBoundingBox(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SceneBoundingBox, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(SceneBoundingBox, super::IAnimationObject, super::super::super::Foundation::IClosable, SceneObject, super::CompositionObject); impl SceneBoundingBox { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -600,14 +341,14 @@ impl SceneBoundingBox { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -615,28 +356,28 @@ impl SceneBoundingBox { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -646,34 +387,34 @@ impl SceneBoundingBox { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -681,11 +422,11 @@ impl SceneBoundingBox { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] @@ -738,37 +479,32 @@ impl ::windows_core::RuntimeType for SceneBoundingBox { } unsafe impl ::windows_core::Interface for SceneBoundingBox { type Vtable = ISceneBoundingBox_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SceneBoundingBox { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SceneBoundingBox { const NAME: &'static str = "Windows.UI.Composition.Scenes.SceneBoundingBox"; } -::windows_core::imp::interface_hierarchy!(SceneBoundingBox, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for SceneBoundingBox {} -impl ::windows_core::CanTryInto for SceneBoundingBox {} -impl ::windows_core::CanTryInto for SceneBoundingBox {} -impl ::windows_core::CanTryInto for SceneBoundingBox {} unsafe impl ::core::marker::Send for SceneBoundingBox {} unsafe impl ::core::marker::Sync for SceneBoundingBox {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SceneComponent(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SceneComponent, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(SceneComponent, super::IAnimationObject, super::super::super::Foundation::IClosable, SceneObject, super::CompositionObject); impl SceneComponent { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -777,14 +513,14 @@ impl SceneComponent { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -792,28 +528,28 @@ impl SceneComponent { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -823,34 +559,34 @@ impl SceneComponent { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -858,11 +594,11 @@ impl SceneComponent { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } pub fn ComponentType(&self) -> ::windows_core::Result { let this = self; @@ -877,18 +613,11 @@ impl ::windows_core::RuntimeType for SceneComponent { } unsafe impl ::windows_core::Interface for SceneComponent { type Vtable = ISceneComponent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SceneComponent { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SceneComponent { const NAME: &'static str = "Windows.UI.Composition.Scenes.SceneComponent"; } -::windows_core::imp::interface_hierarchy!(SceneComponent, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for SceneComponent {} -impl ::windows_core::CanTryInto for SceneComponent {} -impl ::windows_core::CanTryInto for SceneComponent {} -impl ::windows_core::CanTryInto for SceneComponent {} unsafe impl ::core::marker::Send for SceneComponent {} unsafe impl ::core::marker::Sync for SceneComponent {} #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -897,20 +626,24 @@ unsafe impl ::core::marker::Sync for SceneComponent {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SceneComponentCollection(::windows_core::IUnknown); #[cfg(feature = "Foundation_Collections")] +::windows_core::imp::interface_hierarchy!(SceneComponentCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(SceneComponentCollection, super::IAnimationObject, super::super::super::Foundation::IClosable, super::super::super::Foundation::Collections::IIterable::, super::super::super::Foundation::Collections::IVector::, SceneObject, super::CompositionObject); +#[cfg(feature = "Foundation_Collections")] impl SceneComponentCollection { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -919,14 +652,14 @@ impl SceneComponentCollection { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -934,28 +667,28 @@ impl SceneComponentCollection { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -965,34 +698,34 @@ impl SceneComponentCollection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -1000,16 +733,16 @@ impl SceneComponentCollection { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1046,31 +779,31 @@ impl SceneComponentCollection { #[cfg(feature = "Foundation_Collections")] pub fn IndexOf(&self, value: P0, index: &mut u32) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).IndexOf)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi(), index, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).IndexOf)(::windows_core::Interface::as_raw(this), value.into_param().abi(), index, &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn SetAt(&self, index: u32, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetAt)(::windows_core::Interface::as_raw(this), index, value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetAt)(::windows_core::Interface::as_raw(this), index, value.into_param().abi()).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn InsertAt(&self, index: u32, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).InsertAt)(::windows_core::Interface::as_raw(this), index, value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).InsertAt)(::windows_core::Interface::as_raw(this), index, value.into_param().abi()).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -1082,10 +815,10 @@ impl SceneComponentCollection { #[cfg(feature = "Foundation_Collections")] pub fn Append(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).Append)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).Append)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -1122,10 +855,7 @@ impl ::windows_core::RuntimeType for SceneComponentCollection { #[cfg(feature = "Foundation_Collections")] unsafe impl ::windows_core::Interface for SceneComponentCollection { type Vtable = super::super::super::Foundation::Collections::IVector_Vtbl; -} -#[cfg(feature = "Foundation_Collections")] -unsafe impl ::windows_core::ComInterface for SceneComponentCollection { - const IID: ::windows_core::GUID = as ::windows_core::ComInterface>::IID; + const IID: ::windows_core::GUID = as ::windows_core::Interface>::IID; } #[cfg(feature = "Foundation_Collections")] impl ::windows_core::RuntimeName for SceneComponentCollection { @@ -1144,44 +874,32 @@ impl ::core::iter::IntoIterator for &SceneComponentCollection { type Item = SceneComponent; type IntoIter = super::super::super::Foundation::Collections::VectorIterator; fn into_iter(self) -> Self::IntoIter { - super::super::super::Foundation::Collections::VectorIterator::new(::windows_core::ComInterface::cast(self).ok()) + super::super::super::Foundation::Collections::VectorIterator::new(::windows_core::Interface::cast(self).ok()) } } #[cfg(feature = "Foundation_Collections")] -::windows_core::imp::interface_hierarchy!(SceneComponentCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto for SceneComponentCollection {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto for SceneComponentCollection {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for SceneComponentCollection {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for SceneComponentCollection {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto for SceneComponentCollection {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto for SceneComponentCollection {} -#[cfg(feature = "Foundation_Collections")] unsafe impl ::core::marker::Send for SceneComponentCollection {} #[cfg(feature = "Foundation_Collections")] unsafe impl ::core::marker::Sync for SceneComponentCollection {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SceneMaterial(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SceneMaterial, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(SceneMaterial, super::IAnimationObject, super::super::super::Foundation::IClosable, SceneObject, super::CompositionObject); impl SceneMaterial { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1190,14 +908,14 @@ impl SceneMaterial { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1205,28 +923,28 @@ impl SceneMaterial { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1236,34 +954,34 @@ impl SceneMaterial { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -1271,11 +989,11 @@ impl SceneMaterial { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } } impl ::windows_core::RuntimeType for SceneMaterial { @@ -1283,37 +1001,32 @@ impl ::windows_core::RuntimeType for SceneMaterial { } unsafe impl ::windows_core::Interface for SceneMaterial { type Vtable = ISceneMaterial_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SceneMaterial { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SceneMaterial { const NAME: &'static str = "Windows.UI.Composition.Scenes.SceneMaterial"; } -::windows_core::imp::interface_hierarchy!(SceneMaterial, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for SceneMaterial {} -impl ::windows_core::CanTryInto for SceneMaterial {} -impl ::windows_core::CanTryInto for SceneMaterial {} -impl ::windows_core::CanTryInto for SceneMaterial {} unsafe impl ::core::marker::Send for SceneMaterial {} unsafe impl ::core::marker::Sync for SceneMaterial {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SceneMaterialInput(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SceneMaterialInput, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(SceneMaterialInput, super::IAnimationObject, super::super::super::Foundation::IClosable, SceneObject, super::CompositionObject); impl SceneMaterialInput { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1322,14 +1035,14 @@ impl SceneMaterialInput { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1337,28 +1050,28 @@ impl SceneMaterialInput { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1368,34 +1081,34 @@ impl SceneMaterialInput { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -1403,11 +1116,11 @@ impl SceneMaterialInput { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } } impl ::windows_core::RuntimeType for SceneMaterialInput { @@ -1415,37 +1128,32 @@ impl ::windows_core::RuntimeType for SceneMaterialInput { } unsafe impl ::windows_core::Interface for SceneMaterialInput { type Vtable = ISceneMaterialInput_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SceneMaterialInput { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SceneMaterialInput { const NAME: &'static str = "Windows.UI.Composition.Scenes.SceneMaterialInput"; } -::windows_core::imp::interface_hierarchy!(SceneMaterialInput, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for SceneMaterialInput {} -impl ::windows_core::CanTryInto for SceneMaterialInput {} -impl ::windows_core::CanTryInto for SceneMaterialInput {} -impl ::windows_core::CanTryInto for SceneMaterialInput {} unsafe impl ::core::marker::Send for SceneMaterialInput {} unsafe impl ::core::marker::Sync for SceneMaterialInput {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SceneMesh(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SceneMesh, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(SceneMesh, super::IAnimationObject, super::super::super::Foundation::IClosable, SceneObject, super::CompositionObject); impl SceneMesh { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1454,14 +1162,14 @@ impl SceneMesh { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1469,28 +1177,28 @@ impl SceneMesh { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1500,34 +1208,34 @@ impl SceneMesh { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -1535,11 +1243,11 @@ impl SceneMesh { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } pub fn Bounds(&self) -> ::windows_core::Result { let this = self; @@ -1592,37 +1300,33 @@ impl ::windows_core::RuntimeType for SceneMesh { } unsafe impl ::windows_core::Interface for SceneMesh { type Vtable = ISceneMesh_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SceneMesh { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SceneMesh { const NAME: &'static str = "Windows.UI.Composition.Scenes.SceneMesh"; } -::windows_core::imp::interface_hierarchy!(SceneMesh, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for SceneMesh {} -impl ::windows_core::CanTryInto for SceneMesh {} -impl ::windows_core::CanTryInto for SceneMesh {} -impl ::windows_core::CanTryInto for SceneMesh {} unsafe impl ::core::marker::Send for SceneMesh {} unsafe impl ::core::marker::Sync for SceneMesh {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SceneMeshMaterialAttributeMap(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SceneMeshMaterialAttributeMap, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(SceneMeshMaterialAttributeMap, super::IAnimationObject, super::super::super::Foundation::IClosable, super::super::super::Foundation::Collections::IIterable::>, super::super::super::Foundation::Collections::IMap::<::windows_core::HSTRING, SceneAttributeSemantic>, SceneObject, super::CompositionObject); impl SceneMeshMaterialAttributeMap { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1631,14 +1335,14 @@ impl SceneMeshMaterialAttributeMap { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1646,28 +1350,28 @@ impl SceneMeshMaterialAttributeMap { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1677,34 +1381,34 @@ impl SceneMeshMaterialAttributeMap { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -1712,16 +1416,16 @@ impl SceneMeshMaterialAttributeMap { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> ::windows_core::Result>> { - let this = &::windows_core::ComInterface::cast::>>(self)?; + let this = &::windows_core::Interface::cast::>>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1730,7 +1434,7 @@ impl SceneMeshMaterialAttributeMap { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Lookup(&self, key: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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), ::core::mem::transmute_copy(key), &mut result__).from_abi(result__) @@ -1739,7 +1443,7 @@ impl SceneMeshMaterialAttributeMap { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Size(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Size)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1748,7 +1452,7 @@ impl SceneMeshMaterialAttributeMap { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn HasKey(&self, key: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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), ::core::mem::transmute_copy(key), &mut result__).from_abi(result__) @@ -1757,7 +1461,7 @@ impl SceneMeshMaterialAttributeMap { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetView(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetView)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1766,7 +1470,7 @@ impl SceneMeshMaterialAttributeMap { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Insert(&self, key: &::windows_core::HSTRING, value: SceneAttributeSemantic) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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, &mut result__).from_abi(result__) @@ -1775,13 +1479,13 @@ impl SceneMeshMaterialAttributeMap { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Remove(&self, key: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).Remove)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Clear(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).Clear)(::windows_core::Interface::as_raw(this)).ok() } } } @@ -1790,9 +1494,7 @@ impl ::windows_core::RuntimeType for SceneMeshMaterialAttributeMap { } unsafe impl ::windows_core::Interface for SceneMeshMaterialAttributeMap { type Vtable = ISceneMeshMaterialAttributeMap_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SceneMeshMaterialAttributeMap { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SceneMeshMaterialAttributeMap { const NAME: &'static str = "Windows.UI.Composition.Scenes.SceneMeshMaterialAttributeMap"; @@ -1813,34 +1515,27 @@ impl ::core::iter::IntoIterator for &SceneMeshMaterialAttributeMap { self.First().unwrap() } } -::windows_core::imp::interface_hierarchy!(SceneMeshMaterialAttributeMap, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for SceneMeshMaterialAttributeMap {} -impl ::windows_core::CanTryInto for SceneMeshMaterialAttributeMap {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto>> for SceneMeshMaterialAttributeMap {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for SceneMeshMaterialAttributeMap {} -impl ::windows_core::CanTryInto for SceneMeshMaterialAttributeMap {} -impl ::windows_core::CanTryInto for SceneMeshMaterialAttributeMap {} unsafe impl ::core::marker::Send for SceneMeshMaterialAttributeMap {} unsafe impl ::core::marker::Sync for SceneMeshMaterialAttributeMap {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SceneMeshRendererComponent(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SceneMeshRendererComponent, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(SceneMeshRendererComponent, super::IAnimationObject, super::super::super::Foundation::IClosable, SceneRendererComponent, SceneComponent, SceneObject, super::CompositionObject); impl SceneMeshRendererComponent { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1849,14 +1544,14 @@ impl SceneMeshRendererComponent { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1864,28 +1559,28 @@ impl SceneMeshRendererComponent { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1895,34 +1590,34 @@ impl SceneMeshRendererComponent { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -1930,14 +1625,14 @@ impl SceneMeshRendererComponent { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } pub fn ComponentType(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ComponentType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1952,10 +1647,10 @@ impl SceneMeshRendererComponent { } pub fn SetMaterial(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetMaterial)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetMaterial)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn Mesh(&self) -> ::windows_core::Result { let this = self; @@ -1998,39 +1693,32 @@ impl ::windows_core::RuntimeType for SceneMeshRendererComponent { } unsafe impl ::windows_core::Interface for SceneMeshRendererComponent { type Vtable = ISceneMeshRendererComponent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SceneMeshRendererComponent { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SceneMeshRendererComponent { const NAME: &'static str = "Windows.UI.Composition.Scenes.SceneMeshRendererComponent"; } -::windows_core::imp::interface_hierarchy!(SceneMeshRendererComponent, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for SceneMeshRendererComponent {} -impl ::windows_core::CanTryInto for SceneMeshRendererComponent {} -impl ::windows_core::CanTryInto for SceneMeshRendererComponent {} -impl ::windows_core::CanTryInto for SceneMeshRendererComponent {} -impl ::windows_core::CanTryInto for SceneMeshRendererComponent {} -impl ::windows_core::CanTryInto for SceneMeshRendererComponent {} unsafe impl ::core::marker::Send for SceneMeshRendererComponent {} unsafe impl ::core::marker::Sync for SceneMeshRendererComponent {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SceneMetallicRoughnessMaterial(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SceneMetallicRoughnessMaterial, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(SceneMetallicRoughnessMaterial, super::IAnimationObject, super::super::super::Foundation::IClosable, ScenePbrMaterial, SceneMaterial, SceneObject, super::CompositionObject); impl SceneMetallicRoughnessMaterial { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2039,14 +1727,14 @@ impl SceneMetallicRoughnessMaterial { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2054,28 +1742,28 @@ impl SceneMetallicRoughnessMaterial { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2085,34 +1773,34 @@ impl SceneMetallicRoughnessMaterial { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -2120,11 +1808,11 @@ impl SceneMetallicRoughnessMaterial { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } pub fn BaseColorInput(&self) -> ::windows_core::Result { let this = self; @@ -2135,10 +1823,10 @@ impl SceneMetallicRoughnessMaterial { } pub fn SetBaseColorInput(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetBaseColorInput)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetBaseColorInput)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] @@ -2175,10 +1863,10 @@ impl SceneMetallicRoughnessMaterial { } pub fn SetMetallicRoughnessInput(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetMetallicRoughnessInput)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetMetallicRoughnessInput)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn RoughnessFactor(&self) -> ::windows_core::Result { let this = self; @@ -2201,29 +1889,29 @@ impl SceneMetallicRoughnessMaterial { }) } pub fn AlphaCutoff(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AlphaCutoff)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetAlphaCutoff(&self, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetAlphaCutoff)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn AlphaMode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AlphaMode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetAlphaMode(&self, value: SceneAlphaMode) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetAlphaMode)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn EmissiveInput(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).EmissiveInput)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2231,15 +1919,15 @@ impl SceneMetallicRoughnessMaterial { } pub fn SetEmissiveInput(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetEmissiveInput)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn EmissiveFactor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).EmissiveFactor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2248,22 +1936,22 @@ impl SceneMetallicRoughnessMaterial { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetEmissiveFactor(&self, value: super::super::super::Foundation::Numerics::Vector3) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetEmissiveFactor)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsDoubleSided(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsDoubleSided)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsDoubleSided(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsDoubleSided)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn NormalInput(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NormalInput)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2271,24 +1959,24 @@ impl SceneMetallicRoughnessMaterial { } pub fn SetNormalInput(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetNormalInput)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn NormalScale(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NormalScale)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetNormalScale(&self, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetNormalScale)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn OcclusionInput(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OcclusionInput)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2296,20 +1984,20 @@ impl SceneMetallicRoughnessMaterial { } pub fn SetOcclusionInput(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetOcclusionInput)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn OcclusionStrength(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OcclusionStrength)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetOcclusionStrength(&self, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetOcclusionStrength)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc(hidden)] @@ -2323,39 +2011,32 @@ impl ::windows_core::RuntimeType for SceneMetallicRoughnessMaterial { } unsafe impl ::windows_core::Interface for SceneMetallicRoughnessMaterial { type Vtable = ISceneMetallicRoughnessMaterial_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SceneMetallicRoughnessMaterial { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SceneMetallicRoughnessMaterial { const NAME: &'static str = "Windows.UI.Composition.Scenes.SceneMetallicRoughnessMaterial"; } -::windows_core::imp::interface_hierarchy!(SceneMetallicRoughnessMaterial, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for SceneMetallicRoughnessMaterial {} -impl ::windows_core::CanTryInto for SceneMetallicRoughnessMaterial {} -impl ::windows_core::CanTryInto for SceneMetallicRoughnessMaterial {} -impl ::windows_core::CanTryInto for SceneMetallicRoughnessMaterial {} -impl ::windows_core::CanTryInto for SceneMetallicRoughnessMaterial {} -impl ::windows_core::CanTryInto for SceneMetallicRoughnessMaterial {} unsafe impl ::core::marker::Send for SceneMetallicRoughnessMaterial {} unsafe impl ::core::marker::Sync for SceneMetallicRoughnessMaterial {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SceneModelTransform(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SceneModelTransform, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(SceneModelTransform, super::IAnimationObject, super::super::super::Foundation::IClosable, super::CompositionTransform, super::CompositionObject); impl SceneModelTransform { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2364,14 +2045,14 @@ impl SceneModelTransform { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2379,28 +2060,28 @@ impl SceneModelTransform { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2410,34 +2091,34 @@ impl SceneModelTransform { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -2445,11 +2126,11 @@ impl SceneModelTransform { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] @@ -2539,37 +2220,32 @@ impl ::windows_core::RuntimeType for SceneModelTransform { } unsafe impl ::windows_core::Interface for SceneModelTransform { type Vtable = ISceneModelTransform_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SceneModelTransform { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SceneModelTransform { const NAME: &'static str = "Windows.UI.Composition.Scenes.SceneModelTransform"; } -::windows_core::imp::interface_hierarchy!(SceneModelTransform, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for SceneModelTransform {} -impl ::windows_core::CanTryInto for SceneModelTransform {} -impl ::windows_core::CanTryInto for SceneModelTransform {} -impl ::windows_core::CanTryInto for SceneModelTransform {} unsafe impl ::core::marker::Send for SceneModelTransform {} unsafe impl ::core::marker::Sync for SceneModelTransform {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SceneNode(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SceneNode, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(SceneNode, super::IAnimationObject, super::super::super::Foundation::IClosable, SceneObject, super::CompositionObject); impl SceneNode { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2578,14 +2254,14 @@ impl SceneNode { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2593,28 +2269,28 @@ impl SceneNode { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2624,34 +2300,34 @@ impl SceneNode { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -2659,11 +2335,11 @@ impl SceneNode { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -2724,18 +2400,11 @@ impl ::windows_core::RuntimeType for SceneNode { } unsafe impl ::windows_core::Interface for SceneNode { type Vtable = ISceneNode_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SceneNode { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SceneNode { const NAME: &'static str = "Windows.UI.Composition.Scenes.SceneNode"; } -::windows_core::imp::interface_hierarchy!(SceneNode, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for SceneNode {} -impl ::windows_core::CanTryInto for SceneNode {} -impl ::windows_core::CanTryInto for SceneNode {} -impl ::windows_core::CanTryInto for SceneNode {} unsafe impl ::core::marker::Send for SceneNode {} unsafe impl ::core::marker::Sync for SceneNode {} #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -2744,20 +2413,24 @@ unsafe impl ::core::marker::Sync for SceneNode {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SceneNodeCollection(::windows_core::IUnknown); #[cfg(feature = "Foundation_Collections")] +::windows_core::imp::interface_hierarchy!(SceneNodeCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(SceneNodeCollection, super::IAnimationObject, super::super::super::Foundation::IClosable, super::super::super::Foundation::Collections::IIterable::, super::super::super::Foundation::Collections::IVector::, SceneObject, super::CompositionObject); +#[cfg(feature = "Foundation_Collections")] impl SceneNodeCollection { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2766,14 +2439,14 @@ impl SceneNodeCollection { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2781,28 +2454,28 @@ impl SceneNodeCollection { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2812,34 +2485,34 @@ impl SceneNodeCollection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -2847,16 +2520,16 @@ impl SceneNodeCollection { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2969,10 +2642,7 @@ impl ::windows_core::RuntimeType for SceneNodeCollection { #[cfg(feature = "Foundation_Collections")] unsafe impl ::windows_core::Interface for SceneNodeCollection { type Vtable = super::super::super::Foundation::Collections::IVector_Vtbl; -} -#[cfg(feature = "Foundation_Collections")] -unsafe impl ::windows_core::ComInterface for SceneNodeCollection { - const IID: ::windows_core::GUID = as ::windows_core::ComInterface>::IID; + const IID: ::windows_core::GUID = as ::windows_core::Interface>::IID; } #[cfg(feature = "Foundation_Collections")] impl ::windows_core::RuntimeName for SceneNodeCollection { @@ -2991,44 +2661,32 @@ impl ::core::iter::IntoIterator for &SceneNodeCollection { type Item = SceneNode; type IntoIter = super::super::super::Foundation::Collections::VectorIterator; fn into_iter(self) -> Self::IntoIter { - super::super::super::Foundation::Collections::VectorIterator::new(::windows_core::ComInterface::cast(self).ok()) + super::super::super::Foundation::Collections::VectorIterator::new(::windows_core::Interface::cast(self).ok()) } } #[cfg(feature = "Foundation_Collections")] -::windows_core::imp::interface_hierarchy!(SceneNodeCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto for SceneNodeCollection {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto for SceneNodeCollection {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for SceneNodeCollection {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for SceneNodeCollection {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto for SceneNodeCollection {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto for SceneNodeCollection {} -#[cfg(feature = "Foundation_Collections")] unsafe impl ::core::marker::Send for SceneNodeCollection {} #[cfg(feature = "Foundation_Collections")] unsafe impl ::core::marker::Sync for SceneNodeCollection {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SceneObject(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SceneObject, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(SceneObject, super::IAnimationObject, super::super::super::Foundation::IClosable, super::CompositionObject); impl SceneObject { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3037,14 +2695,14 @@ impl SceneObject { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3052,28 +2710,28 @@ impl SceneObject { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3083,34 +2741,34 @@ impl SceneObject { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -3118,11 +2776,11 @@ impl SceneObject { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } } impl ::windows_core::RuntimeType for SceneObject { @@ -3130,36 +2788,32 @@ impl ::windows_core::RuntimeType for SceneObject { } unsafe impl ::windows_core::Interface for SceneObject { type Vtable = ISceneObject_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SceneObject { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SceneObject { const NAME: &'static str = "Windows.UI.Composition.Scenes.SceneObject"; } -::windows_core::imp::interface_hierarchy!(SceneObject, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for SceneObject {} -impl ::windows_core::CanTryInto for SceneObject {} -impl ::windows_core::CanTryInto for SceneObject {} unsafe impl ::core::marker::Send for SceneObject {} unsafe impl ::core::marker::Sync for SceneObject {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ScenePbrMaterial(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ScenePbrMaterial, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ScenePbrMaterial, super::IAnimationObject, super::super::super::Foundation::IClosable, SceneMaterial, SceneObject, super::CompositionObject); impl ScenePbrMaterial { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3168,14 +2822,14 @@ impl ScenePbrMaterial { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3183,28 +2837,28 @@ impl ScenePbrMaterial { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3214,34 +2868,34 @@ impl ScenePbrMaterial { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -3249,11 +2903,11 @@ impl ScenePbrMaterial { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } pub fn AlphaCutoff(&self) -> ::windows_core::Result { let this = self; @@ -3286,10 +2940,10 @@ impl ScenePbrMaterial { } pub fn SetEmissiveInput(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetEmissiveInput)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetEmissiveInput)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] @@ -3326,10 +2980,10 @@ impl ScenePbrMaterial { } pub fn SetNormalInput(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetNormalInput)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetNormalInput)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn NormalScale(&self) -> ::windows_core::Result { let this = self; @@ -3351,10 +3005,10 @@ impl ScenePbrMaterial { } pub fn SetOcclusionInput(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetOcclusionInput)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetOcclusionInput)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn OcclusionStrength(&self) -> ::windows_core::Result { let this = self; @@ -3373,38 +3027,32 @@ impl ::windows_core::RuntimeType for ScenePbrMaterial { } unsafe impl ::windows_core::Interface for ScenePbrMaterial { type Vtable = IScenePbrMaterial_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ScenePbrMaterial { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ScenePbrMaterial { const NAME: &'static str = "Windows.UI.Composition.Scenes.ScenePbrMaterial"; } -::windows_core::imp::interface_hierarchy!(ScenePbrMaterial, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ScenePbrMaterial {} -impl ::windows_core::CanTryInto for ScenePbrMaterial {} -impl ::windows_core::CanTryInto for ScenePbrMaterial {} -impl ::windows_core::CanTryInto for ScenePbrMaterial {} -impl ::windows_core::CanTryInto for ScenePbrMaterial {} unsafe impl ::core::marker::Send for ScenePbrMaterial {} unsafe impl ::core::marker::Sync for ScenePbrMaterial {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SceneRendererComponent(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SceneRendererComponent, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(SceneRendererComponent, super::IAnimationObject, super::super::super::Foundation::IClosable, SceneComponent, SceneObject, super::CompositionObject); impl SceneRendererComponent { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3413,14 +3061,14 @@ impl SceneRendererComponent { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3428,28 +3076,28 @@ impl SceneRendererComponent { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3459,34 +3107,34 @@ impl SceneRendererComponent { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -3494,14 +3142,14 @@ impl SceneRendererComponent { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } pub fn ComponentType(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ComponentType)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3513,38 +3161,32 @@ impl ::windows_core::RuntimeType for SceneRendererComponent { } unsafe impl ::windows_core::Interface for SceneRendererComponent { type Vtable = ISceneRendererComponent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SceneRendererComponent { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SceneRendererComponent { const NAME: &'static str = "Windows.UI.Composition.Scenes.SceneRendererComponent"; } -::windows_core::imp::interface_hierarchy!(SceneRendererComponent, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for SceneRendererComponent {} -impl ::windows_core::CanTryInto for SceneRendererComponent {} -impl ::windows_core::CanTryInto for SceneRendererComponent {} -impl ::windows_core::CanTryInto for SceneRendererComponent {} -impl ::windows_core::CanTryInto for SceneRendererComponent {} unsafe impl ::core::marker::Send for SceneRendererComponent {} unsafe impl ::core::marker::Sync for SceneRendererComponent {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SceneSurfaceMaterialInput(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SceneSurfaceMaterialInput, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(SceneSurfaceMaterialInput, super::IAnimationObject, super::super::super::Foundation::IClosable, SceneMaterialInput, SceneObject, super::CompositionObject); impl SceneSurfaceMaterialInput { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3553,14 +3195,14 @@ impl SceneSurfaceMaterialInput { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3568,28 +3210,28 @@ impl SceneSurfaceMaterialInput { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3599,34 +3241,34 @@ impl SceneSurfaceMaterialInput { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -3634,11 +3276,11 @@ impl SceneSurfaceMaterialInput { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } pub fn BitmapInterpolationMode(&self) -> ::windows_core::Result { let this = self; @@ -3660,10 +3302,10 @@ impl SceneSurfaceMaterialInput { } pub fn SetSurface(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetSurface)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetSurface)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn WrappingUMode(&self) -> ::windows_core::Result { let this = self; @@ -3707,38 +3349,32 @@ impl ::windows_core::RuntimeType for SceneSurfaceMaterialInput { } unsafe impl ::windows_core::Interface for SceneSurfaceMaterialInput { type Vtable = ISceneSurfaceMaterialInput_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SceneSurfaceMaterialInput { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SceneSurfaceMaterialInput { const NAME: &'static str = "Windows.UI.Composition.Scenes.SceneSurfaceMaterialInput"; } -::windows_core::imp::interface_hierarchy!(SceneSurfaceMaterialInput, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for SceneSurfaceMaterialInput {} -impl ::windows_core::CanTryInto for SceneSurfaceMaterialInput {} -impl ::windows_core::CanTryInto for SceneSurfaceMaterialInput {} -impl ::windows_core::CanTryInto for SceneSurfaceMaterialInput {} -impl ::windows_core::CanTryInto for SceneSurfaceMaterialInput {} unsafe impl ::core::marker::Send for SceneSurfaceMaterialInput {} unsafe impl ::core::marker::Sync for SceneSurfaceMaterialInput {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SceneVisual(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SceneVisual, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(SceneVisual, super::IAnimationObject, super::super::super::Foundation::IClosable, super::ContainerVisual, super::Visual, super::CompositionObject); impl SceneVisual { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3747,14 +3383,14 @@ impl SceneVisual { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3762,28 +3398,28 @@ impl SceneVisual { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3793,34 +3429,34 @@ impl SceneVisual { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -3828,14 +3464,14 @@ impl SceneVisual { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } pub fn Children(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Children)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3867,7 +3503,7 @@ impl SceneVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn AnchorPoint(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AnchorPoint)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3876,35 +3512,35 @@ impl SceneVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetAnchorPoint(&self, value: super::super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetAnchorPoint)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn BackfaceVisibility(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).BackfaceVisibility)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetBackfaceVisibility(&self, value: super::CompositionBackfaceVisibility) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetBackfaceVisibility)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn BorderMode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).BorderMode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetBorderMode(&self, value: super::CompositionBorderMode) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetBorderMode)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn CenterPoint(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CenterPoint)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3913,11 +3549,11 @@ impl SceneVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetCenterPoint(&self, value: super::super::super::Foundation::Numerics::Vector3) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCenterPoint)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Clip(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Clip)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3925,37 +3561,37 @@ impl SceneVisual { } pub fn SetClip(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetClip)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn CompositeMode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CompositeMode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetCompositeMode(&self, value: super::CompositionCompositeMode) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCompositeMode)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsVisible(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsVisible)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsVisible(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsVisible)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn Offset(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Offset)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3964,24 +3600,24 @@ impl SceneVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetOffset(&self, value: super::super::super::Foundation::Numerics::Vector3) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetOffset)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Opacity(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Opacity)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetOpacity(&self, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetOpacity)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn Orientation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Orientation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3990,42 +3626,42 @@ impl SceneVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetOrientation(&self, value: super::super::super::Foundation::Numerics::Quaternion) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetOrientation)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Parent(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Parent)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn RotationAngle(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RotationAngle)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetRotationAngle(&self, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRotationAngle)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn RotationAngleInDegrees(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RotationAngleInDegrees)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetRotationAngleInDegrees(&self, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRotationAngleInDegrees)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn RotationAxis(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RotationAxis)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4034,13 +3670,13 @@ impl SceneVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetRotationAxis(&self, value: super::super::super::Foundation::Numerics::Vector3) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRotationAxis)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn Scale(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Scale)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4049,13 +3685,13 @@ impl SceneVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetScale(&self, value: super::super::super::Foundation::Numerics::Vector3) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetScale)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn Size(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Size)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4064,13 +3700,13 @@ impl SceneVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetSize(&self, value: super::super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetSize)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn TransformMatrix(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TransformMatrix)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4079,11 +3715,11 @@ impl SceneVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetTransformMatrix(&self, value: super::super::super::Foundation::Numerics::Matrix4x4) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetTransformMatrix)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn ParentForTransform(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ParentForTransform)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4091,15 +3727,15 @@ impl SceneVisual { } pub fn SetParentForTransform(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetParentForTransform)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn RelativeOffsetAdjustment(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RelativeOffsetAdjustment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4108,13 +3744,13 @@ impl SceneVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetRelativeOffsetAdjustment(&self, value: super::super::super::Foundation::Numerics::Vector3) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRelativeOffsetAdjustment)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn RelativeSizeAdjustment(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RelativeSizeAdjustment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4123,29 +3759,29 @@ impl SceneVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetRelativeSizeAdjustment(&self, value: super::super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRelativeSizeAdjustment)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsHitTestVisible(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsHitTestVisible)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsHitTestVisible(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsHitTestVisible)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsPixelSnappingEnabled(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsPixelSnappingEnabled)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsPixelSnappingEnabled(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsPixelSnappingEnabled)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc(hidden)] @@ -4159,19 +3795,11 @@ impl ::windows_core::RuntimeType for SceneVisual { } unsafe impl ::windows_core::Interface for SceneVisual { type Vtable = ISceneVisual_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SceneVisual { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SceneVisual { const NAME: &'static str = "Windows.UI.Composition.Scenes.SceneVisual"; } -::windows_core::imp::interface_hierarchy!(SceneVisual, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for SceneVisual {} -impl ::windows_core::CanTryInto for SceneVisual {} -impl ::windows_core::CanTryInto for SceneVisual {} -impl ::windows_core::CanTryInto for SceneVisual {} -impl ::windows_core::CanTryInto for SceneVisual {} unsafe impl ::core::marker::Send for SceneVisual {} unsafe impl ::core::marker::Sync for SceneVisual {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/UI/Composition/impl.rs b/crates/libs/windows/src/Windows/UI/Composition/impl.rs index a516c939c3..545af3de06 100644 --- a/crates/libs/windows/src/Windows/UI/Composition/impl.rs +++ b/crates/libs/windows/src/Windows/UI/Composition/impl.rs @@ -17,7 +17,7 @@ impl IAnimationObject_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICompositionAnimationBase_Impl: Sized {} @@ -29,7 +29,7 @@ impl ICompositionAnimationBase_Vtbl { Self { base__: ::windows_core::IInspectable_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICompositionSupportsSystemBackdrop_Impl: Sized { @@ -65,7 +65,7 @@ impl ICompositionSupportsSystemBackdrop_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICompositionSurface_Impl: Sized {} @@ -77,7 +77,7 @@ impl ICompositionSurface_Vtbl { Self { base__: ::windows_core::IInspectable_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICompositionSurfaceFacade_Impl: Sized { @@ -106,7 +106,7 @@ impl ICompositionSurfaceFacade_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVisualElement_Impl: Sized {} @@ -118,7 +118,7 @@ impl IVisualElement_Vtbl { Self { base__: ::windows_core::IInspectable_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVisualElement2_Impl: Sized { @@ -147,6 +147,6 @@ impl IVisualElement2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/UI/Composition/mod.rs b/crates/libs/windows/src/Windows/UI/Composition/mod.rs index de68196259..7f385139c3 100644 --- a/crates/libs/windows/src/Windows/UI/Composition/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Composition/mod.rs @@ -16,16 +16,7 @@ pub mod Interactions; #[cfg(feature = "UI_Composition_Scenes")] #[doc = "Required features: `\"UI_Composition_Scenes\"`"] pub mod Scenes; -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAmbientLight(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAmbientLight { - type Vtable = IAmbientLight_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAmbientLight { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa48130a1_b7c4_46f7_b9bf_daf43a44e6ee); -} +::windows_core::imp::com_interface!(IAmbientLight, IAmbientLight_Vtbl, 0xa48130a1_b7c4_46f7_b9bf_daf43a44e6ee); #[repr(C)] #[doc(hidden)] pub struct IAmbientLight_Vtbl { @@ -33,16 +24,7 @@ pub struct IAmbientLight_Vtbl { pub Color: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::Color) -> ::windows_core::HRESULT, pub SetColor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::Color) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAmbientLight2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAmbientLight2 { - type Vtable = IAmbientLight2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAmbientLight2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3b64a6bf_5f97_4c94_86e5_042dd386b27d); -} +::windows_core::imp::com_interface!(IAmbientLight2, IAmbientLight2_Vtbl, 0x3b64a6bf_5f97_4c94_86e5_042dd386b27d); #[repr(C)] #[doc(hidden)] pub struct IAmbientLight2_Vtbl { @@ -50,16 +32,7 @@ pub struct IAmbientLight2_Vtbl { pub Intensity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows_core::HRESULT, pub SetIntensity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAnimationController(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAnimationController { - type Vtable = IAnimationController_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAnimationController { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc934efd2_0722_4f5f_a4e2_9510f3d43bf7); -} +::windows_core::imp::com_interface!(IAnimationController, IAnimationController_Vtbl, 0xc934efd2_0722_4f5f_a4e2_9510f3d43bf7); #[repr(C)] #[doc(hidden)] pub struct IAnimationController_Vtbl { @@ -73,16 +46,7 @@ pub struct IAnimationController_Vtbl { pub Pause: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Resume: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAnimationControllerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAnimationControllerStatics { - type Vtable = IAnimationControllerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAnimationControllerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe71164df_651b_4800_b9e5_6a3bcfed3365); -} +::windows_core::imp::com_interface!(IAnimationControllerStatics, IAnimationControllerStatics_Vtbl, 0xe71164df_651b_4800_b9e5_6a3bcfed3365); #[repr(C)] #[doc(hidden)] pub struct IAnimationControllerStatics_Vtbl { @@ -90,9 +54,8 @@ pub struct IAnimationControllerStatics_Vtbl { pub MaxPlaybackRate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows_core::HRESULT, pub MinPlaybackRate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAnimationObject(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAnimationObject, IAnimationObject_Vtbl, 0xe7141e0a_04b8_4fc5_a4dc_195392e57807); +::windows_core::imp::interface_hierarchy!(IAnimationObject, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IAnimationObject { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where @@ -102,32 +65,16 @@ impl IAnimationObject { unsafe { (::windows_core::Interface::vtable(this).PopulatePropertyInfo)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), propertyinfo.into_param().abi()).ok() } } } -::windows_core::imp::interface_hierarchy!(IAnimationObject, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IAnimationObject { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IAnimationObject { - type Vtable = IAnimationObject_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAnimationObject { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe7141e0a_04b8_4fc5_a4dc_195392e57807); -} #[repr(C)] #[doc(hidden)] pub struct IAnimationObject_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub PopulatePropertyInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertyname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, propertyinfo: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAnimationPropertyInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAnimationPropertyInfo { - type Vtable = IAnimationPropertyInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAnimationPropertyInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf4716f05_ed77_4e3c_b328_5c3985b3738f); -} +::windows_core::imp::com_interface!(IAnimationPropertyInfo, IAnimationPropertyInfo_Vtbl, 0xf4716f05_ed77_4e3c_b328_5c3985b3738f); #[repr(C)] #[doc(hidden)] pub struct IAnimationPropertyInfo_Vtbl { @@ -135,16 +82,7 @@ pub struct IAnimationPropertyInfo_Vtbl { pub AccessMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut AnimationPropertyAccessMode) -> ::windows_core::HRESULT, pub SetAccessMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: AnimationPropertyAccessMode) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAnimationPropertyInfo2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAnimationPropertyInfo2 { - type Vtable = IAnimationPropertyInfo2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAnimationPropertyInfo2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x591720b4_7472_5218_8b39_dffe615ae6da); -} +::windows_core::imp::com_interface!(IAnimationPropertyInfo2, IAnimationPropertyInfo2_Vtbl, 0x591720b4_7472_5218_8b39_dffe615ae6da); #[repr(C)] #[doc(hidden)] pub struct IAnimationPropertyInfo2_Vtbl { @@ -152,16 +90,7 @@ pub struct IAnimationPropertyInfo2_Vtbl { pub GetResolvedCompositionObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetResolvedCompositionObjectProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackEasingFunction(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBackEasingFunction { - type Vtable = IBackEasingFunction_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackEasingFunction { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb8560da4_5e3c_545d_b263_7987a2bd27cb); -} +::windows_core::imp::com_interface!(IBackEasingFunction, IBackEasingFunction_Vtbl, 0xb8560da4_5e3c_545d_b263_7987a2bd27cb); #[repr(C)] #[doc(hidden)] pub struct IBackEasingFunction_Vtbl { @@ -169,32 +98,14 @@ pub struct IBackEasingFunction_Vtbl { pub Mode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut CompositionEasingFunctionMode) -> ::windows_core::HRESULT, pub Amplitude: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBooleanKeyFrameAnimation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBooleanKeyFrameAnimation { - type Vtable = IBooleanKeyFrameAnimation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBooleanKeyFrameAnimation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x95e23a08_d1f4_4972_9770_3efe68d82e14); -} +::windows_core::imp::com_interface!(IBooleanKeyFrameAnimation, IBooleanKeyFrameAnimation_Vtbl, 0x95e23a08_d1f4_4972_9770_3efe68d82e14); #[repr(C)] #[doc(hidden)] pub struct IBooleanKeyFrameAnimation_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub InsertKeyFrame: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, normalizedprogresskey: f32, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBounceEasingFunction(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBounceEasingFunction { - type Vtable = IBounceEasingFunction_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBounceEasingFunction { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe7fdb44b_aad5_5174_9421_eef8b75a6a43); -} +::windows_core::imp::com_interface!(IBounceEasingFunction, IBounceEasingFunction_Vtbl, 0xe7fdb44b_aad5_5174_9421_eef8b75a6a43); #[repr(C)] #[doc(hidden)] pub struct IBounceEasingFunction_Vtbl { @@ -203,16 +114,7 @@ pub struct IBounceEasingFunction_Vtbl { pub Bounces: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows_core::HRESULT, pub Bounciness: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBounceScalarNaturalMotionAnimation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBounceScalarNaturalMotionAnimation { - type Vtable = IBounceScalarNaturalMotionAnimation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBounceScalarNaturalMotionAnimation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbaa30dcc_a633_4618_9b06_7f7c72c87cff); -} +::windows_core::imp::com_interface!(IBounceScalarNaturalMotionAnimation, IBounceScalarNaturalMotionAnimation_Vtbl, 0xbaa30dcc_a633_4618_9b06_7f7c72c87cff); #[repr(C)] #[doc(hidden)] pub struct IBounceScalarNaturalMotionAnimation_Vtbl { @@ -222,16 +124,7 @@ pub struct IBounceScalarNaturalMotionAnimation_Vtbl { pub Restitution: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows_core::HRESULT, pub SetRestitution: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBounceVector2NaturalMotionAnimation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBounceVector2NaturalMotionAnimation { - type Vtable = IBounceVector2NaturalMotionAnimation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBounceVector2NaturalMotionAnimation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xda344196_2154_4b3c_88aa_47361204eccd); -} +::windows_core::imp::com_interface!(IBounceVector2NaturalMotionAnimation, IBounceVector2NaturalMotionAnimation_Vtbl, 0xda344196_2154_4b3c_88aa_47361204eccd); #[repr(C)] #[doc(hidden)] pub struct IBounceVector2NaturalMotionAnimation_Vtbl { @@ -241,16 +134,7 @@ pub struct IBounceVector2NaturalMotionAnimation_Vtbl { pub Restitution: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows_core::HRESULT, pub SetRestitution: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBounceVector3NaturalMotionAnimation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBounceVector3NaturalMotionAnimation { - type Vtable = IBounceVector3NaturalMotionAnimation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBounceVector3NaturalMotionAnimation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x47dabc31_10d3_4518_86f1_09caf742d113); -} +::windows_core::imp::com_interface!(IBounceVector3NaturalMotionAnimation, IBounceVector3NaturalMotionAnimation_Vtbl, 0x47dabc31_10d3_4518_86f1_09caf742d113); #[repr(C)] #[doc(hidden)] pub struct IBounceVector3NaturalMotionAnimation_Vtbl { @@ -260,32 +144,14 @@ pub struct IBounceVector3NaturalMotionAnimation_Vtbl { pub Restitution: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows_core::HRESULT, pub SetRestitution: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICircleEasingFunction(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICircleEasingFunction { - type Vtable = ICircleEasingFunction_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICircleEasingFunction { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1e07222a_6f82_5a28_8748_2e92fc46ee2b); -} +::windows_core::imp::com_interface!(ICircleEasingFunction, ICircleEasingFunction_Vtbl, 0x1e07222a_6f82_5a28_8748_2e92fc46ee2b); #[repr(C)] #[doc(hidden)] pub struct ICircleEasingFunction_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Mode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut CompositionEasingFunctionMode) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IColorKeyFrameAnimation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IColorKeyFrameAnimation { - type Vtable = IColorKeyFrameAnimation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IColorKeyFrameAnimation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x93adb5e9_8e05_4593_84a3_dca152781e56); -} +::windows_core::imp::com_interface!(IColorKeyFrameAnimation, IColorKeyFrameAnimation_Vtbl, 0x93adb5e9_8e05_4593_84a3_dca152781e56); #[repr(C)] #[doc(hidden)] pub struct IColorKeyFrameAnimation_Vtbl { @@ -295,16 +161,7 @@ pub struct IColorKeyFrameAnimation_Vtbl { pub InsertKeyFrame: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, normalizedprogresskey: f32, value: super::Color) -> ::windows_core::HRESULT, pub InsertKeyFrameWithEasingFunction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, normalizedprogresskey: f32, value: super::Color, easingfunction: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionAnimation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionAnimation { - type Vtable = ICompositionAnimation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionAnimation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x464c4c2c_1caa_4061_9b40_e13fde1503ca); -} +::windows_core::imp::com_interface!(ICompositionAnimation, ICompositionAnimation_Vtbl, 0x464c4c2c_1caa_4061_9b40_e13fde1503ca); #[repr(C)] #[doc(hidden)] pub struct ICompositionAnimation_Vtbl { @@ -339,16 +196,7 @@ pub struct ICompositionAnimation_Vtbl { #[cfg(not(feature = "Foundation_Numerics"))] SetVector4Parameter: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionAnimation2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionAnimation2 { - type Vtable = ICompositionAnimation2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionAnimation2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x369b603e_a80f_4948_93e3_ed23fb38c6cb); -} +::windows_core::imp::com_interface!(ICompositionAnimation2, ICompositionAnimation2_Vtbl, 0x369b603e_a80f_4948_93e3_ed23fb38c6cb); #[repr(C)] #[doc(hidden)] pub struct ICompositionAnimation2_Vtbl { @@ -357,16 +205,7 @@ pub struct ICompositionAnimation2_Vtbl { pub Target: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetTarget: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionAnimation3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionAnimation3 { - type Vtable = ICompositionAnimation3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionAnimation3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd51e030d_7da4_4bd7_bc2d_f4517529f43a); -} +::windows_core::imp::com_interface!(ICompositionAnimation3, ICompositionAnimation3_Vtbl, 0xd51e030d_7da4_4bd7_bc2d_f4517529f43a); #[repr(C)] #[doc(hidden)] pub struct ICompositionAnimation3_Vtbl { @@ -376,66 +215,31 @@ pub struct ICompositionAnimation3_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] InitialValueExpressions: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionAnimation4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionAnimation4 { - type Vtable = ICompositionAnimation4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionAnimation4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x770137be_76bc_4e23_bfed_fe9cc20f6ec9); -} +::windows_core::imp::com_interface!(ICompositionAnimation4, ICompositionAnimation4_Vtbl, 0x770137be_76bc_4e23_bfed_fe9cc20f6ec9); #[repr(C)] #[doc(hidden)] pub struct ICompositionAnimation4_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub SetExpressionReferenceParameter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, parametername: ::std::mem::MaybeUninit<::windows_core::HSTRING>, source: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionAnimationBase(::windows_core::IUnknown); -impl ICompositionAnimationBase {} +::windows_core::imp::com_interface!(ICompositionAnimationBase, ICompositionAnimationBase_Vtbl, 0x1c2c2999_e818_48d3_a6dd_d78c82f8ace9); ::windows_core::imp::interface_hierarchy!(ICompositionAnimationBase, ::windows_core::IUnknown, ::windows_core::IInspectable); +impl ICompositionAnimationBase {} impl ::windows_core::RuntimeType for ICompositionAnimationBase { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for ICompositionAnimationBase { - type Vtable = ICompositionAnimationBase_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionAnimationBase { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1c2c2999_e818_48d3_a6dd_d78c82f8ace9); -} #[repr(C)] #[doc(hidden)] pub struct ICompositionAnimationBase_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionAnimationFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionAnimationFactory { - type Vtable = ICompositionAnimationFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionAnimationFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x10f6c4fb_6e51_4c25_bbd3_586a9bec3ef4); -} +::windows_core::imp::com_interface!(ICompositionAnimationFactory, ICompositionAnimationFactory_Vtbl, 0x10f6c4fb_6e51_4c25_bbd3_586a9bec3ef4); #[repr(C)] #[doc(hidden)] pub struct ICompositionAnimationFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionAnimationGroup(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionAnimationGroup { - type Vtable = ICompositionAnimationGroup_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionAnimationGroup { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5e7cc90c_cd14_4e07_8a55_c72527aabdac); -} +::windows_core::imp::com_interface!(ICompositionAnimationGroup, ICompositionAnimationGroup_Vtbl, 0x5e7cc90c_cd14_4e07_8a55_c72527aabdac); #[repr(C)] #[doc(hidden)] pub struct ICompositionAnimationGroup_Vtbl { @@ -445,76 +249,31 @@ pub struct ICompositionAnimationGroup_Vtbl { pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RemoveAll: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionBackdropBrush(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionBackdropBrush { - type Vtable = ICompositionBackdropBrush_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionBackdropBrush { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc5acae58_3898_499e_8d7f_224e91286a5d); -} +::windows_core::imp::com_interface!(ICompositionBackdropBrush, ICompositionBackdropBrush_Vtbl, 0xc5acae58_3898_499e_8d7f_224e91286a5d); #[repr(C)] #[doc(hidden)] pub struct ICompositionBackdropBrush_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionBatchCompletedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionBatchCompletedEventArgs { - type Vtable = ICompositionBatchCompletedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionBatchCompletedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0d00dad0_9464_450a_a562_2e2698b0a812); -} +::windows_core::imp::com_interface!(ICompositionBatchCompletedEventArgs, ICompositionBatchCompletedEventArgs_Vtbl, 0x0d00dad0_9464_450a_a562_2e2698b0a812); #[repr(C)] #[doc(hidden)] pub struct ICompositionBatchCompletedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionBrush(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionBrush { - type Vtable = ICompositionBrush_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionBrush { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xab0d7608_30c0_40e9_b568_b60a6bd1fb46); -} +::windows_core::imp::com_interface!(ICompositionBrush, ICompositionBrush_Vtbl, 0xab0d7608_30c0_40e9_b568_b60a6bd1fb46); #[repr(C)] #[doc(hidden)] pub struct ICompositionBrush_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionBrushFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionBrushFactory { - type Vtable = ICompositionBrushFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionBrushFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xda53fb4c_4650_47c4_ad76_765379607ed6); -} +::windows_core::imp::com_interface!(ICompositionBrushFactory, ICompositionBrushFactory_Vtbl, 0xda53fb4c_4650_47c4_ad76_765379607ed6); #[repr(C)] #[doc(hidden)] pub struct ICompositionBrushFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionCapabilities(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionCapabilities { - type Vtable = ICompositionCapabilities_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionCapabilities { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8253353e_b517_48bc_b1e8_4b3561a2e181); -} +::windows_core::imp::com_interface!(ICompositionCapabilities, ICompositionCapabilities_Vtbl, 0x8253353e_b517_48bc_b1e8_4b3561a2e181); #[repr(C)] #[doc(hidden)] pub struct ICompositionCapabilities_Vtbl { @@ -524,47 +283,20 @@ pub struct ICompositionCapabilities_Vtbl { pub Changed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionCapabilitiesStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionCapabilitiesStatics { - type Vtable = ICompositionCapabilitiesStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionCapabilitiesStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf7b7a86e_6416_49e5_8ddf_afe949e20562); -} +::windows_core::imp::com_interface!(ICompositionCapabilitiesStatics, ICompositionCapabilitiesStatics_Vtbl, 0xf7b7a86e_6416_49e5_8ddf_afe949e20562); #[repr(C)] #[doc(hidden)] pub struct ICompositionCapabilitiesStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetForCurrentView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionClip(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionClip { - type Vtable = ICompositionClip_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionClip { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1ccd2a52_cfc7_4ace_9983_146bb8eb6a3c); -} +::windows_core::imp::com_interface!(ICompositionClip, ICompositionClip_Vtbl, 0x1ccd2a52_cfc7_4ace_9983_146bb8eb6a3c); #[repr(C)] #[doc(hidden)] pub struct ICompositionClip_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionClip2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionClip2 { - type Vtable = ICompositionClip2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionClip2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5893e069_3516_40e1_89e0_5ba924927235); -} +::windows_core::imp::com_interface!(ICompositionClip2, ICompositionClip2_Vtbl, 0x5893e069_3516_40e1_89e0_5ba924927235); #[repr(C)] #[doc(hidden)] pub struct ICompositionClip2_Vtbl { @@ -614,31 +346,13 @@ pub struct ICompositionClip2_Vtbl { #[cfg(not(feature = "Foundation_Numerics"))] SetTransformMatrix: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionClipFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionClipFactory { - type Vtable = ICompositionClipFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionClipFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb9484caf_20c7_4aed_ac4a_9c78ba1302cf); -} +::windows_core::imp::com_interface!(ICompositionClipFactory, ICompositionClipFactory_Vtbl, 0xb9484caf_20c7_4aed_ac4a_9c78ba1302cf); #[repr(C)] #[doc(hidden)] pub struct ICompositionClipFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionColorBrush(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionColorBrush { - type Vtable = ICompositionColorBrush_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionColorBrush { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2b264c5e_bf35_4831_8642_cf70c20fff2f); -} +::windows_core::imp::com_interface!(ICompositionColorBrush, ICompositionColorBrush_Vtbl, 0x2b264c5e_bf35_4831_8642_cf70c20fff2f); #[repr(C)] #[doc(hidden)] pub struct ICompositionColorBrush_Vtbl { @@ -646,16 +360,7 @@ pub struct ICompositionColorBrush_Vtbl { pub Color: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::Color) -> ::windows_core::HRESULT, pub SetColor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::Color) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionColorGradientStop(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionColorGradientStop { - type Vtable = ICompositionColorGradientStop_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionColorGradientStop { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6f00ca92_c801_4e41_9a8f_a53e20f57778); -} +::windows_core::imp::com_interface!(ICompositionColorGradientStop, ICompositionColorGradientStop_Vtbl, 0x6f00ca92_c801_4e41_9a8f_a53e20f57778); #[repr(C)] #[doc(hidden)] pub struct ICompositionColorGradientStop_Vtbl { @@ -665,31 +370,13 @@ pub struct ICompositionColorGradientStop_Vtbl { pub Offset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows_core::HRESULT, pub SetOffset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionColorGradientStopCollection(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionColorGradientStopCollection { - type Vtable = ICompositionColorGradientStopCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionColorGradientStopCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9f1d20ec_7b04_4b1d_90bc_9fa32c0cfd26); -} +::windows_core::imp::com_interface!(ICompositionColorGradientStopCollection, ICompositionColorGradientStopCollection_Vtbl, 0x9f1d20ec_7b04_4b1d_90bc_9fa32c0cfd26); #[repr(C)] #[doc(hidden)] pub struct ICompositionColorGradientStopCollection_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionCommitBatch(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionCommitBatch { - type Vtable = ICompositionCommitBatch_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionCommitBatch { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0d00dad0_ca07_4400_8c8e_cb5db08559cc); -} +::windows_core::imp::com_interface!(ICompositionCommitBatch, ICompositionCommitBatch_Vtbl, 0x0d00dad0_ca07_4400_8c8e_cb5db08559cc); #[repr(C)] #[doc(hidden)] pub struct ICompositionCommitBatch_Vtbl { @@ -699,16 +386,7 @@ pub struct ICompositionCommitBatch_Vtbl { pub Completed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveCompleted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionContainerShape(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionContainerShape { - type Vtable = ICompositionContainerShape_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionContainerShape { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4f5e859b_2e5b_44a8_982c_aa0f69c16059); -} +::windows_core::imp::com_interface!(ICompositionContainerShape, ICompositionContainerShape_Vtbl, 0x4f5e859b_2e5b_44a8_982c_aa0f69c16059); #[repr(C)] #[doc(hidden)] pub struct ICompositionContainerShape_Vtbl { @@ -718,16 +396,7 @@ pub struct ICompositionContainerShape_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Shapes: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionDrawingSurface(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionDrawingSurface { - type Vtable = ICompositionDrawingSurface_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionDrawingSurface { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa166c300_fad0_4d11_9e67_e433162ff49e); -} +::windows_core::imp::com_interface!(ICompositionDrawingSurface, ICompositionDrawingSurface_Vtbl, 0xa166c300_fad0_4d11_9e67_e433162ff49e); #[repr(C)] #[doc(hidden)] pub struct ICompositionDrawingSurface_Vtbl { @@ -742,16 +411,7 @@ pub struct ICompositionDrawingSurface_Vtbl { PixelFormat: usize, pub Size: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::Size) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionDrawingSurface2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionDrawingSurface2 { - type Vtable = ICompositionDrawingSurface2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionDrawingSurface2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfad0e88b_e354_44e8_8e3d_c4880d5a213f); -} +::windows_core::imp::com_interface!(ICompositionDrawingSurface2, ICompositionDrawingSurface2_Vtbl, 0xfad0e88b_e354_44e8_8e3d_c4880d5a213f); #[repr(C)] #[doc(hidden)] pub struct ICompositionDrawingSurface2_Vtbl { @@ -781,61 +441,25 @@ pub struct ICompositionDrawingSurface2_Vtbl { #[cfg(not(feature = "Graphics"))] ScrollRectWithClip: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionDrawingSurfaceFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionDrawingSurfaceFactory { - type Vtable = ICompositionDrawingSurfaceFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionDrawingSurfaceFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9497b00a_312d_46b9_9db3_412fd79464c8); -} +::windows_core::imp::com_interface!(ICompositionDrawingSurfaceFactory, ICompositionDrawingSurfaceFactory_Vtbl, 0x9497b00a_312d_46b9_9db3_412fd79464c8); #[repr(C)] #[doc(hidden)] pub struct ICompositionDrawingSurfaceFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionEasingFunction(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionEasingFunction { - type Vtable = ICompositionEasingFunction_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionEasingFunction { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5145e356_bf79_4ea8_8cc2_6b5b472e6c9a); -} +::windows_core::imp::com_interface!(ICompositionEasingFunction, ICompositionEasingFunction_Vtbl, 0x5145e356_bf79_4ea8_8cc2_6b5b472e6c9a); #[repr(C)] #[doc(hidden)] pub struct ICompositionEasingFunction_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionEasingFunctionFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionEasingFunctionFactory { - type Vtable = ICompositionEasingFunctionFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionEasingFunctionFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x60840774_3da0_4949_8200_7206c00190a0); -} +::windows_core::imp::com_interface!(ICompositionEasingFunctionFactory, ICompositionEasingFunctionFactory_Vtbl, 0x60840774_3da0_4949_8200_7206c00190a0); #[repr(C)] #[doc(hidden)] pub struct ICompositionEasingFunctionFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionEasingFunctionStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionEasingFunctionStatics { - type Vtable = ICompositionEasingFunctionStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionEasingFunctionStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x17a766b6_2936_53ea_b5af_c642f4a61083); -} +::windows_core::imp::com_interface!(ICompositionEasingFunctionStatics, ICompositionEasingFunctionStatics_Vtbl, 0x17a766b6_2936_53ea_b5af_c642f4a61083); #[repr(C)] #[doc(hidden)] pub struct ICompositionEasingFunctionStatics_Vtbl { @@ -855,16 +479,7 @@ pub struct ICompositionEasingFunctionStatics_Vtbl { pub CreatePowerEasingFunction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, mode: CompositionEasingFunctionMode, power: f32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateSineEasingFunction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, mode: CompositionEasingFunctionMode, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionEffectBrush(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionEffectBrush { - type Vtable = ICompositionEffectBrush_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionEffectBrush { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbf7f795e_83cc_44bf_a447_3e3c071789ec); -} +::windows_core::imp::com_interface!(ICompositionEffectBrush, ICompositionEffectBrush_Vtbl, 0xbf7f795e_83cc_44bf_a447_3e3c071789ec); #[repr(C)] #[doc(hidden)] pub struct ICompositionEffectBrush_Vtbl { @@ -872,16 +487,7 @@ pub struct ICompositionEffectBrush_Vtbl { pub GetSourceParameter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetSourceParameter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows_core::HSTRING>, source: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionEffectFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionEffectFactory { - type Vtable = ICompositionEffectFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionEffectFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbe5624af_ba7e_4510_9850_41c0b4ff74df); -} +::windows_core::imp::com_interface!(ICompositionEffectFactory, ICompositionEffectFactory_Vtbl, 0xbe5624af_ba7e_4510_9850_41c0b4ff74df); #[repr(C)] #[doc(hidden)] pub struct ICompositionEffectFactory_Vtbl { @@ -890,48 +496,21 @@ pub struct ICompositionEffectFactory_Vtbl { pub ExtendedError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, pub LoadStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut CompositionEffectFactoryLoadStatus) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionEffectSourceParameter(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionEffectSourceParameter { - type Vtable = ICompositionEffectSourceParameter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionEffectSourceParameter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x858ab13a_3292_4e4e_b3bb_2b6c6544a6ee); -} +::windows_core::imp::com_interface!(ICompositionEffectSourceParameter, ICompositionEffectSourceParameter_Vtbl, 0x858ab13a_3292_4e4e_b3bb_2b6c6544a6ee); #[repr(C)] #[doc(hidden)] pub struct ICompositionEffectSourceParameter_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionEffectSourceParameterFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionEffectSourceParameterFactory { - type Vtable = ICompositionEffectSourceParameterFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionEffectSourceParameterFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb3d9f276_aba3_4724_acf3_d0397464db1c); -} +::windows_core::imp::com_interface!(ICompositionEffectSourceParameterFactory, ICompositionEffectSourceParameterFactory_Vtbl, 0xb3d9f276_aba3_4724_acf3_d0397464db1c); #[repr(C)] #[doc(hidden)] pub struct ICompositionEffectSourceParameterFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionEllipseGeometry(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionEllipseGeometry { - type Vtable = ICompositionEllipseGeometry_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionEllipseGeometry { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4801f884_f6ad_4b93_afa9_897b64e57b1f); -} +::windows_core::imp::com_interface!(ICompositionEllipseGeometry, ICompositionEllipseGeometry_Vtbl, 0x4801f884_f6ad_4b93_afa9_897b64e57b1f); #[repr(C)] #[doc(hidden)] pub struct ICompositionEllipseGeometry_Vtbl { @@ -953,16 +532,7 @@ pub struct ICompositionEllipseGeometry_Vtbl { #[cfg(not(feature = "Foundation_Numerics"))] SetRadius: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionGeometricClip(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionGeometricClip { - type Vtable = ICompositionGeometricClip_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionGeometricClip { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc840b581_81c9_4444_a2c1_ccaece3a50e5); -} +::windows_core::imp::com_interface!(ICompositionGeometricClip, ICompositionGeometricClip_Vtbl, 0xc840b581_81c9_4444_a2c1_ccaece3a50e5); #[repr(C)] #[doc(hidden)] pub struct ICompositionGeometricClip_Vtbl { @@ -972,16 +542,7 @@ pub struct ICompositionGeometricClip_Vtbl { pub ViewBox: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetViewBox: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionGeometry(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionGeometry { - type Vtable = ICompositionGeometry_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionGeometry { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe985217c_6a17_4207_abd8_5fd3dd612a9d); -} +::windows_core::imp::com_interface!(ICompositionGeometry, ICompositionGeometry_Vtbl, 0xe985217c_6a17_4207_abd8_5fd3dd612a9d); #[repr(C)] #[doc(hidden)] pub struct ICompositionGeometry_Vtbl { @@ -993,31 +554,13 @@ pub struct ICompositionGeometry_Vtbl { pub TrimStart: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows_core::HRESULT, pub SetTrimStart: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionGeometryFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionGeometryFactory { - type Vtable = ICompositionGeometryFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionGeometryFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbffebfe1_8c25_480b_9f56_fed6b288055d); -} +::windows_core::imp::com_interface!(ICompositionGeometryFactory, ICompositionGeometryFactory_Vtbl, 0xbffebfe1_8c25_480b_9f56_fed6b288055d); #[repr(C)] #[doc(hidden)] pub struct ICompositionGeometryFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionGradientBrush(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionGradientBrush { - type Vtable = ICompositionGradientBrush_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionGradientBrush { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1d9709e0_ffc6_4c0e_a9ab_34144d4c9098); -} +::windows_core::imp::com_interface!(ICompositionGradientBrush, ICompositionGradientBrush_Vtbl, 0x1d9709e0_ffc6_4c0e_a9ab_34144d4c9098); #[repr(C)] #[doc(hidden)] pub struct ICompositionGradientBrush_Vtbl { @@ -1072,16 +615,7 @@ pub struct ICompositionGradientBrush_Vtbl { #[cfg(not(feature = "Foundation_Numerics"))] SetTransformMatrix: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionGradientBrush2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionGradientBrush2 { - type Vtable = ICompositionGradientBrush2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionGradientBrush2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x899dd5a1_b4c7_4b33_a1b6_264addc26d10); -} +::windows_core::imp::com_interface!(ICompositionGradientBrush2, ICompositionGradientBrush2_Vtbl, 0x899dd5a1_b4c7_4b33_a1b6_264addc26d10); #[repr(C)] #[doc(hidden)] pub struct ICompositionGradientBrush2_Vtbl { @@ -1089,31 +623,13 @@ pub struct ICompositionGradientBrush2_Vtbl { pub MappingMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut CompositionMappingMode) -> ::windows_core::HRESULT, pub SetMappingMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: CompositionMappingMode) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionGradientBrushFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionGradientBrushFactory { - type Vtable = ICompositionGradientBrushFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionGradientBrushFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x56d765d7_f189_48c9_9c8d_94daf1bec010); -} +::windows_core::imp::com_interface!(ICompositionGradientBrushFactory, ICompositionGradientBrushFactory_Vtbl, 0x56d765d7_f189_48c9_9c8d_94daf1bec010); #[repr(C)] #[doc(hidden)] pub struct ICompositionGradientBrushFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionGraphicsDevice(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionGraphicsDevice { - type Vtable = ICompositionGraphicsDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionGraphicsDevice { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfb22c6e1_80a2_4667_9936_dbeaf6eefe95); -} +::windows_core::imp::com_interface!(ICompositionGraphicsDevice, ICompositionGraphicsDevice_Vtbl, 0xfb22c6e1_80a2_4667_9936_dbeaf6eefe95); #[repr(C)] #[doc(hidden)] pub struct ICompositionGraphicsDevice_Vtbl { @@ -1125,16 +641,7 @@ pub struct ICompositionGraphicsDevice_Vtbl { pub RenderingDeviceReplaced: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveRenderingDeviceReplaced: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionGraphicsDevice2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionGraphicsDevice2 { - type Vtable = ICompositionGraphicsDevice2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionGraphicsDevice2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0fb8bdf6_c0f0_4bcc_9fb8_084982490d7d); -} +::windows_core::imp::com_interface!(ICompositionGraphicsDevice2, ICompositionGraphicsDevice2_Vtbl, 0x0fb8bdf6_c0f0_4bcc_9fb8_084982490d7d); #[repr(C)] #[doc(hidden)] pub struct ICompositionGraphicsDevice2_Vtbl { @@ -1148,16 +655,7 @@ pub struct ICompositionGraphicsDevice2_Vtbl { #[cfg(not(feature = "Graphics_DirectX"))] CreateVirtualDrawingSurface: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionGraphicsDevice3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionGraphicsDevice3 { - type Vtable = ICompositionGraphicsDevice3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionGraphicsDevice3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x37f67514_d3ef_49d1_b69d_0d8eabeb3626); -} +::windows_core::imp::com_interface!(ICompositionGraphicsDevice3, ICompositionGraphicsDevice3_Vtbl, 0x37f67514_d3ef_49d1_b69d_0d8eabeb3626); #[repr(C)] #[doc(hidden)] pub struct ICompositionGraphicsDevice3_Vtbl { @@ -1168,16 +666,7 @@ pub struct ICompositionGraphicsDevice3_Vtbl { CreateMipmapSurface: usize, pub Trim: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionGraphicsDevice4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionGraphicsDevice4 { - type Vtable = ICompositionGraphicsDevice4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionGraphicsDevice4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5a73bff9_a97f_4cf5_ba46_98ef358e71b1); -} +::windows_core::imp::com_interface!(ICompositionGraphicsDevice4, ICompositionGraphicsDevice4_Vtbl, 0x5a73bff9_a97f_4cf5_ba46_98ef358e71b1); #[repr(C)] #[doc(hidden)] pub struct ICompositionGraphicsDevice4_Vtbl { @@ -1187,48 +676,21 @@ pub struct ICompositionGraphicsDevice4_Vtbl { #[cfg(not(feature = "Graphics_DirectX"))] CaptureAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionLight(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionLight { - type Vtable = ICompositionLight_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionLight { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x41a6d7c2_2e5d_4bc1_b09e_8f0a03e3d8d3); -} +::windows_core::imp::com_interface!(ICompositionLight, ICompositionLight_Vtbl, 0x41a6d7c2_2e5d_4bc1_b09e_8f0a03e3d8d3); #[repr(C)] #[doc(hidden)] pub struct ICompositionLight_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Targets: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionLight2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionLight2 { - type Vtable = ICompositionLight2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionLight2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa7bcda72_f35d_425d_9b98_23f4205f6669); -} +::windows_core::imp::com_interface!(ICompositionLight2, ICompositionLight2_Vtbl, 0xa7bcda72_f35d_425d_9b98_23f4205f6669); #[repr(C)] #[doc(hidden)] pub struct ICompositionLight2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ExclusionsFromTargets: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionLight3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionLight3 { - type Vtable = ICompositionLight3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionLight3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4b0b00e4_df07_4959_b7a4_4f7e4233f838); -} +::windows_core::imp::com_interface!(ICompositionLight3, ICompositionLight3_Vtbl, 0x4b0b00e4_df07_4959_b7a4_4f7e4233f838); #[repr(C)] #[doc(hidden)] pub struct ICompositionLight3_Vtbl { @@ -1236,31 +698,13 @@ pub struct ICompositionLight3_Vtbl { pub IsEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetIsEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionLightFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionLightFactory { - type Vtable = ICompositionLightFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionLightFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x069cf306_da3c_4b44_838a_5e03d51ace55); -} +::windows_core::imp::com_interface!(ICompositionLightFactory, ICompositionLightFactory_Vtbl, 0x069cf306_da3c_4b44_838a_5e03d51ace55); #[repr(C)] #[doc(hidden)] pub struct ICompositionLightFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionLineGeometry(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionLineGeometry { - type Vtable = ICompositionLineGeometry_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionLineGeometry { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdd7615a4_0c9a_4b67_8dce_440a5bf9cdec); -} +::windows_core::imp::com_interface!(ICompositionLineGeometry, ICompositionLineGeometry_Vtbl, 0xdd7615a4_0c9a_4b67_8dce_440a5bf9cdec); #[repr(C)] #[doc(hidden)] pub struct ICompositionLineGeometry_Vtbl { @@ -1282,16 +726,7 @@ pub struct ICompositionLineGeometry_Vtbl { #[cfg(not(feature = "Foundation_Numerics"))] SetEnd: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionLinearGradientBrush(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionLinearGradientBrush { - type Vtable = ICompositionLinearGradientBrush_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionLinearGradientBrush { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x983bc519_a9db_413c_a2d8_2a9056fc525e); -} +::windows_core::imp::com_interface!(ICompositionLinearGradientBrush, ICompositionLinearGradientBrush_Vtbl, 0x983bc519_a9db_413c_a2d8_2a9056fc525e); #[repr(C)] #[doc(hidden)] pub struct ICompositionLinearGradientBrush_Vtbl { @@ -1313,16 +748,7 @@ pub struct ICompositionLinearGradientBrush_Vtbl { #[cfg(not(feature = "Foundation_Numerics"))] SetStartPoint: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionMaskBrush(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionMaskBrush { - type Vtable = ICompositionMaskBrush_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionMaskBrush { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x522cf09e_be6b_4f41_be49_f9226d471b4a); -} +::windows_core::imp::com_interface!(ICompositionMaskBrush, ICompositionMaskBrush_Vtbl, 0x522cf09e_be6b_4f41_be49_f9226d471b4a); #[repr(C)] #[doc(hidden)] pub struct ICompositionMaskBrush_Vtbl { @@ -1332,16 +758,7 @@ pub struct ICompositionMaskBrush_Vtbl { pub Source: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetSource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionMipmapSurface(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionMipmapSurface { - type Vtable = ICompositionMipmapSurface_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionMipmapSurface { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4863675c_cf4a_4b1c_9ece_c5ec0c2b2fe6); -} +::windows_core::imp::com_interface!(ICompositionMipmapSurface, ICompositionMipmapSurface_Vtbl, 0x4863675c_cf4a_4b1c_9ece_c5ec0c2b2fe6); #[repr(C)] #[doc(hidden)] pub struct ICompositionMipmapSurface_Vtbl { @@ -1361,16 +778,7 @@ pub struct ICompositionMipmapSurface_Vtbl { SizeInt32: usize, pub GetDrawingSurfaceForLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, level: u32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionNineGridBrush(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionNineGridBrush { - type Vtable = ICompositionNineGridBrush_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionNineGridBrush { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf25154e4_bc8c_4be7_b80f_8685b83c0186); -} +::windows_core::imp::com_interface!(ICompositionNineGridBrush, ICompositionNineGridBrush_Vtbl, 0xf25154e4_bc8c_4be7_b80f_8685b83c0186); #[repr(C)] #[doc(hidden)] pub struct ICompositionNineGridBrush_Vtbl { @@ -1400,16 +808,7 @@ pub struct ICompositionNineGridBrush_Vtbl { pub SetInsetScales: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, scale: f32) -> ::windows_core::HRESULT, pub SetInsetScalesWithValues: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, left: f32, top: f32, right: f32, bottom: f32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionObject(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionObject { - type Vtable = ICompositionObject_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionObject { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbcb4ad45_7609_4550_934f_16002a68fded); -} +::windows_core::imp::com_interface!(ICompositionObject, ICompositionObject_Vtbl, 0xbcb4ad45_7609_4550_934f_16002a68fded); #[repr(C)] #[doc(hidden)] pub struct ICompositionObject_Vtbl { @@ -1423,16 +822,7 @@ pub struct ICompositionObject_Vtbl { pub StartAnimation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertyname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, animation: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub StopAnimation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertyname: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionObject2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionObject2 { - type Vtable = ICompositionObject2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionObject2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xef874ea1_5cff_4b68_9e30_a1519d08ba03); -} +::windows_core::imp::com_interface!(ICompositionObject2, ICompositionObject2_Vtbl, 0xef874ea1_5cff_4b68_9e30_a1519d08ba03); #[repr(C)] #[doc(hidden)] pub struct ICompositionObject2_Vtbl { @@ -1441,19 +831,10 @@ pub struct ICompositionObject2_Vtbl { pub SetComment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub ImplicitAnimations: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetImplicitAnimations: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, - pub StartAnimationGroup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, - pub StopAnimationGroup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionObject3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionObject3 { - type Vtable = ICompositionObject3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionObject3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4bc27925_dacd_4cf2_98b1_986b76e7ebe6); + pub StartAnimationGroup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, + pub StopAnimationGroup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } +::windows_core::imp::com_interface!(ICompositionObject3, ICompositionObject3_Vtbl, 0x4bc27925_dacd_4cf2_98b1_986b76e7ebe6); #[repr(C)] #[doc(hidden)] pub struct ICompositionObject3_Vtbl { @@ -1463,63 +844,27 @@ pub struct ICompositionObject3_Vtbl { #[cfg(not(feature = "System"))] DispatcherQueue: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionObject4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionObject4 { - type Vtable = ICompositionObject4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionObject4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0bb3784c_346b_4a7c_966b_7310966553d5); -} +::windows_core::imp::com_interface!(ICompositionObject4, ICompositionObject4_Vtbl, 0x0bb3784c_346b_4a7c_966b_7310966553d5); #[repr(C)] #[doc(hidden)] pub struct ICompositionObject4_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub TryGetAnimationController: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertyname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionObject5(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionObject5 { - type Vtable = ICompositionObject5_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionObject5 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1d7f391b_a130_5265_a62b_60b8e668965a); -} +::windows_core::imp::com_interface!(ICompositionObject5, ICompositionObject5_Vtbl, 0x1d7f391b_a130_5265_a62b_60b8e668965a); #[repr(C)] #[doc(hidden)] pub struct ICompositionObject5_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub StartAnimationWithController: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertyname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, animation: *mut ::core::ffi::c_void, animationcontroller: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionObjectFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionObjectFactory { - type Vtable = ICompositionObjectFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionObjectFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51205c5e_558a_4f2a_8d39_37bfe1e20ddd); -} +::windows_core::imp::com_interface!(ICompositionObjectFactory, ICompositionObjectFactory_Vtbl, 0x51205c5e_558a_4f2a_8d39_37bfe1e20ddd); #[repr(C)] #[doc(hidden)] pub struct ICompositionObjectFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionObjectStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionObjectStatics { - type Vtable = ICompositionObjectStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionObjectStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc1ed052f_1ba2_44ba_a904_6a882a0a5adb); -} +::windows_core::imp::com_interface!(ICompositionObjectStatics, ICompositionObjectStatics_Vtbl, 0xc1ed052f_1ba2_44ba_a904_6a882a0a5adb); #[repr(C)] #[doc(hidden)] pub struct ICompositionObjectStatics_Vtbl { @@ -1527,31 +872,13 @@ pub struct ICompositionObjectStatics_Vtbl { pub StartAnimationWithIAnimationObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, target: *mut ::core::ffi::c_void, propertyname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, animation: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub StartAnimationGroupWithIAnimationObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, target: *mut ::core::ffi::c_void, animation: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionPath(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionPath { - type Vtable = ICompositionPath_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionPath { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x66da1d5f_2e10_4f22_8a06_0a8151919e60); -} +::windows_core::imp::com_interface!(ICompositionPath, ICompositionPath_Vtbl, 0x66da1d5f_2e10_4f22_8a06_0a8151919e60); #[repr(C)] #[doc(hidden)] pub struct ICompositionPath_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionPathFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionPathFactory { - type Vtable = ICompositionPathFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionPathFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9c1e8c6a_0f33_4751_9437_eb3fb9d3ab07); -} +::windows_core::imp::com_interface!(ICompositionPathFactory, ICompositionPathFactory_Vtbl, 0x9c1e8c6a_0f33_4751_9437_eb3fb9d3ab07); #[repr(C)] #[doc(hidden)] pub struct ICompositionPathFactory_Vtbl { @@ -1561,16 +888,7 @@ pub struct ICompositionPathFactory_Vtbl { #[cfg(not(feature = "Graphics"))] Create: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionPathGeometry(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionPathGeometry { - type Vtable = ICompositionPathGeometry_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionPathGeometry { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0b6a417e_2c77_4c23_af5e_6304c147bb61); -} +::windows_core::imp::com_interface!(ICompositionPathGeometry, ICompositionPathGeometry_Vtbl, 0x0b6a417e_2c77_4c23_af5e_6304c147bb61); #[repr(C)] #[doc(hidden)] pub struct ICompositionPathGeometry_Vtbl { @@ -1578,16 +896,7 @@ pub struct ICompositionPathGeometry_Vtbl { pub Path: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionProjectedShadow(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionProjectedShadow { - type Vtable = ICompositionProjectedShadow_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionProjectedShadow { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x285b8e72_4328_523f_bcf2_5557c52c3b25); -} +::windows_core::imp::com_interface!(ICompositionProjectedShadow, ICompositionProjectedShadow_Vtbl, 0x285b8e72_4328_523f_bcf2_5557c52c3b25); #[repr(C)] #[doc(hidden)] pub struct ICompositionProjectedShadow_Vtbl { @@ -1603,16 +912,7 @@ pub struct ICompositionProjectedShadow_Vtbl { pub SetMinBlurRadius: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f32) -> ::windows_core::HRESULT, pub Receivers: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionProjectedShadowCaster(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionProjectedShadowCaster { - type Vtable = ICompositionProjectedShadowCaster_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionProjectedShadowCaster { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb1d7d426_1e36_5a62_be56_a16112fdd148); -} +::windows_core::imp::com_interface!(ICompositionProjectedShadowCaster, ICompositionProjectedShadowCaster_Vtbl, 0xb1d7d426_1e36_5a62_be56_a16112fdd148); #[repr(C)] #[doc(hidden)] pub struct ICompositionProjectedShadowCaster_Vtbl { @@ -1622,16 +922,7 @@ pub struct ICompositionProjectedShadowCaster_Vtbl { pub CastingVisual: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetCastingVisual: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionProjectedShadowCasterCollection(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionProjectedShadowCasterCollection { - type Vtable = ICompositionProjectedShadowCasterCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionProjectedShadowCasterCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd2525c0c_e07f_58a3_ac91_37f73ee91740); -} +::windows_core::imp::com_interface!(ICompositionProjectedShadowCasterCollection, ICompositionProjectedShadowCasterCollection_Vtbl, 0xd2525c0c_e07f_58a3_ac91_37f73ee91740); #[repr(C)] #[doc(hidden)] pub struct ICompositionProjectedShadowCasterCollection_Vtbl { @@ -1644,32 +935,14 @@ pub struct ICompositionProjectedShadowCasterCollection_Vtbl { pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, caster: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RemoveAll: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionProjectedShadowCasterCollectionStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionProjectedShadowCasterCollectionStatics { - type Vtable = ICompositionProjectedShadowCasterCollectionStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionProjectedShadowCasterCollectionStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x56fbb136_e94f_5299_ab5b_6e15e38bd899); -} +::windows_core::imp::com_interface!(ICompositionProjectedShadowCasterCollectionStatics, ICompositionProjectedShadowCasterCollectionStatics_Vtbl, 0x56fbb136_e94f_5299_ab5b_6e15e38bd899); #[repr(C)] #[doc(hidden)] pub struct ICompositionProjectedShadowCasterCollectionStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub MaxRespectedCasters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionProjectedShadowReceiver(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionProjectedShadowReceiver { - type Vtable = ICompositionProjectedShadowReceiver_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionProjectedShadowReceiver { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1377985a_6a49_536a_9be4_a96a8e5298a9); -} +::windows_core::imp::com_interface!(ICompositionProjectedShadowReceiver, ICompositionProjectedShadowReceiver_Vtbl, 0x1377985a_6a49_536a_9be4_a96a8e5298a9); #[repr(C)] #[doc(hidden)] pub struct ICompositionProjectedShadowReceiver_Vtbl { @@ -1677,16 +950,7 @@ pub struct ICompositionProjectedShadowReceiver_Vtbl { pub ReceivingVisual: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetReceivingVisual: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionProjectedShadowReceiverUnorderedCollection(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionProjectedShadowReceiverUnorderedCollection { - type Vtable = ICompositionProjectedShadowReceiverUnorderedCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionProjectedShadowReceiverUnorderedCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x02b3e3b7_27d2_599f_ac4b_ab787cdde6fd); -} +::windows_core::imp::com_interface!(ICompositionProjectedShadowReceiverUnorderedCollection, ICompositionProjectedShadowReceiverUnorderedCollection_Vtbl, 0x02b3e3b7_27d2_599f_ac4b_ab787cdde6fd); #[repr(C)] #[doc(hidden)] pub struct ICompositionProjectedShadowReceiverUnorderedCollection_Vtbl { @@ -1696,16 +960,7 @@ pub struct ICompositionProjectedShadowReceiverUnorderedCollection_Vtbl { pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RemoveAll: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionPropertySet(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionPropertySet { - type Vtable = ICompositionPropertySet_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionPropertySet { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc9d6d202_5f67_4453_9117_9eadd430d3c2); -} +::windows_core::imp::com_interface!(ICompositionPropertySet, ICompositionPropertySet_Vtbl, 0xc9d6d202_5f67_4453_9117_9eadd430d3c2); #[repr(C)] #[doc(hidden)] pub struct ICompositionPropertySet_Vtbl { @@ -1763,16 +1018,7 @@ pub struct ICompositionPropertySet_Vtbl { #[cfg(not(feature = "Foundation_Numerics"))] TryGetVector4: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionPropertySet2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionPropertySet2 { - type Vtable = ICompositionPropertySet2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionPropertySet2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xde80731e_a211_4455_8880_7d0f3f6a44fd); -} +::windows_core::imp::com_interface!(ICompositionPropertySet2, ICompositionPropertySet2_Vtbl, 0xde80731e_a211_4455_8880_7d0f3f6a44fd); #[repr(C)] #[doc(hidden)] pub struct ICompositionPropertySet2_Vtbl { @@ -1780,16 +1026,7 @@ pub struct ICompositionPropertySet2_Vtbl { pub InsertBoolean: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertyname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, value: bool) -> ::windows_core::HRESULT, pub TryGetBoolean: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertyname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, value: *mut bool, result__: *mut CompositionGetValueStatus) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionRadialGradientBrush(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionRadialGradientBrush { - type Vtable = ICompositionRadialGradientBrush_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionRadialGradientBrush { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3d3b50c5_e3fa_4ce2_b9fc_3ee12561788f); -} +::windows_core::imp::com_interface!(ICompositionRadialGradientBrush, ICompositionRadialGradientBrush_Vtbl, 0x3d3b50c5_e3fa_4ce2_b9fc_3ee12561788f); #[repr(C)] #[doc(hidden)] pub struct ICompositionRadialGradientBrush_Vtbl { @@ -1819,16 +1056,7 @@ pub struct ICompositionRadialGradientBrush_Vtbl { #[cfg(not(feature = "Foundation_Numerics"))] SetGradientOriginOffset: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionRectangleGeometry(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionRectangleGeometry { - type Vtable = ICompositionRectangleGeometry_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionRectangleGeometry { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0cd51428_5356_4246_aecf_7a0b76975400); -} +::windows_core::imp::com_interface!(ICompositionRectangleGeometry, ICompositionRectangleGeometry_Vtbl, 0x0cd51428_5356_4246_aecf_7a0b76975400); #[repr(C)] #[doc(hidden)] pub struct ICompositionRectangleGeometry_Vtbl { @@ -1850,16 +1078,7 @@ pub struct ICompositionRectangleGeometry_Vtbl { #[cfg(not(feature = "Foundation_Numerics"))] SetSize: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionRoundedRectangleGeometry(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionRoundedRectangleGeometry { - type Vtable = ICompositionRoundedRectangleGeometry_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionRoundedRectangleGeometry { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8770c822_1d50_4b8b_b013_7c9a0e46935f); -} +::windows_core::imp::com_interface!(ICompositionRoundedRectangleGeometry, ICompositionRoundedRectangleGeometry_Vtbl, 0x8770c822_1d50_4b8b_b013_7c9a0e46935f); #[repr(C)] #[doc(hidden)] pub struct ICompositionRoundedRectangleGeometry_Vtbl { @@ -1889,16 +1108,7 @@ pub struct ICompositionRoundedRectangleGeometry_Vtbl { #[cfg(not(feature = "Foundation_Numerics"))] SetSize: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionScopedBatch(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionScopedBatch { - type Vtable = ICompositionScopedBatch_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionScopedBatch { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0d00dad0_fb07_46fd_8c72_6280d1a3d1dd); -} +::windows_core::imp::com_interface!(ICompositionScopedBatch, ICompositionScopedBatch_Vtbl, 0x0d00dad0_fb07_46fd_8c72_6280d1a3d1dd); #[repr(C)] #[doc(hidden)] pub struct ICompositionScopedBatch_Vtbl { @@ -1911,46 +1121,19 @@ pub struct ICompositionScopedBatch_Vtbl { pub Completed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveCompleted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionShadow(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionShadow { - type Vtable = ICompositionShadow_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionShadow { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x329e52e2_4335_49cc_b14a_37782d10f0c4); -} +::windows_core::imp::com_interface!(ICompositionShadow, ICompositionShadow_Vtbl, 0x329e52e2_4335_49cc_b14a_37782d10f0c4); #[repr(C)] #[doc(hidden)] pub struct ICompositionShadow_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionShadowFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionShadowFactory { - type Vtable = ICompositionShadowFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionShadowFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x221f492f_dcba_4b91_999e_1dc217a01530); -} +::windows_core::imp::com_interface!(ICompositionShadowFactory, ICompositionShadowFactory_Vtbl, 0x221f492f_dcba_4b91_999e_1dc217a01530); #[repr(C)] #[doc(hidden)] pub struct ICompositionShadowFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionShape(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionShape { - type Vtable = ICompositionShape_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionShape { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb47ce2f7_9a88_42c4_9e87_2e500ca8688c); -} +::windows_core::imp::com_interface!(ICompositionShape, ICompositionShape_Vtbl, 0xb47ce2f7_9a88_42c4_9e87_2e500ca8688c); #[repr(C)] #[doc(hidden)] pub struct ICompositionShape_Vtbl { @@ -1992,31 +1175,13 @@ pub struct ICompositionShape_Vtbl { #[cfg(not(feature = "Foundation_Numerics"))] SetTransformMatrix: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionShapeFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionShapeFactory { - type Vtable = ICompositionShapeFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionShapeFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1dfc36d0_b05a_44ef_82b0_12118bcd4cd0); -} +::windows_core::imp::com_interface!(ICompositionShapeFactory, ICompositionShapeFactory_Vtbl, 0x1dfc36d0_b05a_44ef_82b0_12118bcd4cd0); #[repr(C)] #[doc(hidden)] pub struct ICompositionShapeFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionSpriteShape(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionSpriteShape { - type Vtable = ICompositionSpriteShape_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionSpriteShape { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x401b61bb_0007_4363_b1f3_6bcc003fb83e); -} +::windows_core::imp::com_interface!(ICompositionSpriteShape, ICompositionSpriteShape_Vtbl, 0x401b61bb_0007_4363_b1f3_6bcc003fb83e); #[repr(C)] #[doc(hidden)] pub struct ICompositionSpriteShape_Vtbl { @@ -2048,9 +1213,8 @@ pub struct ICompositionSpriteShape_Vtbl { pub StrokeThickness: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows_core::HRESULT, pub SetStrokeThickness: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionSupportsSystemBackdrop(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICompositionSupportsSystemBackdrop, ICompositionSupportsSystemBackdrop_Vtbl, 0x397dafe4_b6c2_5bb9_951d_f5707de8b7bc); +::windows_core::imp::interface_hierarchy!(ICompositionSupportsSystemBackdrop, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ICompositionSupportsSystemBackdrop { pub fn SystemBackdrop(&self) -> ::windows_core::Result { let this = self; @@ -2061,22 +1225,15 @@ impl ICompositionSupportsSystemBackdrop { } pub fn SetSystemBackdrop(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetSystemBackdrop)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetSystemBackdrop)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } } -::windows_core::imp::interface_hierarchy!(ICompositionSupportsSystemBackdrop, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for ICompositionSupportsSystemBackdrop { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for ICompositionSupportsSystemBackdrop { - type Vtable = ICompositionSupportsSystemBackdrop_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionSupportsSystemBackdrop { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x397dafe4_b6c2_5bb9_951d_f5707de8b7bc); -} #[repr(C)] #[doc(hidden)] pub struct ICompositionSupportsSystemBackdrop_Vtbl { @@ -2084,35 +1241,18 @@ pub struct ICompositionSupportsSystemBackdrop_Vtbl { pub SystemBackdrop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetSystemBackdrop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionSurface(::windows_core::IUnknown); -impl ICompositionSurface {} +::windows_core::imp::com_interface!(ICompositionSurface, ICompositionSurface_Vtbl, 0x1527540d_42c7_47a6_a408_668f79a90dfb); ::windows_core::imp::interface_hierarchy!(ICompositionSurface, ::windows_core::IUnknown, ::windows_core::IInspectable); +impl ICompositionSurface {} impl ::windows_core::RuntimeType for ICompositionSurface { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for ICompositionSurface { - type Vtable = ICompositionSurface_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionSurface { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1527540d_42c7_47a6_a408_668f79a90dfb); -} #[repr(C)] #[doc(hidden)] pub struct ICompositionSurface_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionSurfaceBrush(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionSurfaceBrush { - type Vtable = ICompositionSurfaceBrush_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionSurfaceBrush { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xad016d79_1e4c_4c0d_9c29_83338c87c162); -} +::windows_core::imp::com_interface!(ICompositionSurfaceBrush, ICompositionSurfaceBrush_Vtbl, 0xad016d79_1e4c_4c0d_9c29_83338c87c162); #[repr(C)] #[doc(hidden)] pub struct ICompositionSurfaceBrush_Vtbl { @@ -2128,16 +1268,7 @@ pub struct ICompositionSurfaceBrush_Vtbl { pub VerticalAlignmentRatio: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows_core::HRESULT, pub SetVerticalAlignmentRatio: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionSurfaceBrush2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionSurfaceBrush2 { - type Vtable = ICompositionSurfaceBrush2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionSurfaceBrush2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd27174d5_64f5_4692_9dc7_71b61d7e5880); -} +::windows_core::imp::com_interface!(ICompositionSurfaceBrush2, ICompositionSurfaceBrush2_Vtbl, 0xd27174d5_64f5_4692_9dc7_71b61d7e5880); #[repr(C)] #[doc(hidden)] pub struct ICompositionSurfaceBrush2_Vtbl { @@ -2187,16 +1318,7 @@ pub struct ICompositionSurfaceBrush2_Vtbl { #[cfg(not(feature = "Foundation_Numerics"))] SetTransformMatrix: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionSurfaceBrush3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionSurfaceBrush3 { - type Vtable = ICompositionSurfaceBrush3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionSurfaceBrush3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x550bb289_1fe0_42e5_8195_1eefa87ff08e); -} +::windows_core::imp::com_interface!(ICompositionSurfaceBrush3, ICompositionSurfaceBrush3_Vtbl, 0x550bb289_1fe0_42e5_8195_1eefa87ff08e); #[repr(C)] #[doc(hidden)] pub struct ICompositionSurfaceBrush3_Vtbl { @@ -2204,9 +1326,8 @@ pub struct ICompositionSurfaceBrush3_Vtbl { pub SnapToPixels: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetSnapToPixels: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionSurfaceFacade(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICompositionSurfaceFacade, ICompositionSurfaceFacade_Vtbl, 0xe01622c8_2332_55c7_8868_a7312c5c229d); +::windows_core::imp::interface_hierarchy!(ICompositionSurfaceFacade, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ICompositionSurfaceFacade { pub fn GetRealSurface(&self) -> ::windows_core::Result { let this = self; @@ -2216,32 +1337,16 @@ impl ICompositionSurfaceFacade { } } } -::windows_core::imp::interface_hierarchy!(ICompositionSurfaceFacade, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for ICompositionSurfaceFacade { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for ICompositionSurfaceFacade { - type Vtable = ICompositionSurfaceFacade_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionSurfaceFacade { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe01622c8_2332_55c7_8868_a7312c5c229d); -} #[repr(C)] #[doc(hidden)] pub struct ICompositionSurfaceFacade_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetRealSurface: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionTarget(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionTarget { - type Vtable = ICompositionTarget_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionTarget { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa1bea8ba_d726_4663_8129_6b5e7927ffa6); -} +::windows_core::imp::com_interface!(ICompositionTarget, ICompositionTarget_Vtbl, 0xa1bea8ba_d726_4663_8129_6b5e7927ffa6); #[repr(C)] #[doc(hidden)] pub struct ICompositionTarget_Vtbl { @@ -2249,31 +1354,13 @@ pub struct ICompositionTarget_Vtbl { pub Root: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetRoot: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionTargetFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionTargetFactory { - type Vtable = ICompositionTargetFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionTargetFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x93cd9d2b_8516_4b14_a8ce_f49e2119ec42); -} +::windows_core::imp::com_interface!(ICompositionTargetFactory, ICompositionTargetFactory_Vtbl, 0x93cd9d2b_8516_4b14_a8ce_f49e2119ec42); #[repr(C)] #[doc(hidden)] pub struct ICompositionTargetFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionTexture(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionTexture { - type Vtable = ICompositionTexture_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionTexture { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x347d03a0_1c0a_4c0b_b232_8570b2b1a4ea); -} +::windows_core::imp::com_interface!(ICompositionTexture, ICompositionTexture_Vtbl, 0x347d03a0_1c0a_4c0b_b232_8570b2b1a4ea); #[repr(C)] #[doc(hidden)] pub struct ICompositionTexture_Vtbl { @@ -2303,61 +1390,25 @@ pub struct ICompositionTexture_Vtbl { #[cfg(not(feature = "Graphics_DirectX"))] SetColorSpace: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionTextureFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionTextureFactory { - type Vtable = ICompositionTextureFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionTextureFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x09d9523d_471c_5ab5_b053_b568ee46ebfb); -} +::windows_core::imp::com_interface!(ICompositionTextureFactory, ICompositionTextureFactory_Vtbl, 0x09d9523d_471c_5ab5_b053_b568ee46ebfb); #[repr(C)] #[doc(hidden)] pub struct ICompositionTextureFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionTransform(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionTransform { - type Vtable = ICompositionTransform_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionTransform { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7cd54529_fbed_4112_abc5_185906dd927c); -} +::windows_core::imp::com_interface!(ICompositionTransform, ICompositionTransform_Vtbl, 0x7cd54529_fbed_4112_abc5_185906dd927c); #[repr(C)] #[doc(hidden)] pub struct ICompositionTransform_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionTransformFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionTransformFactory { - type Vtable = ICompositionTransformFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionTransformFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaaaeca26_c149_517a_8f72_6bff7a65ce08); -} +::windows_core::imp::com_interface!(ICompositionTransformFactory, ICompositionTransformFactory_Vtbl, 0xaaaeca26_c149_517a_8f72_6bff7a65ce08); #[repr(C)] #[doc(hidden)] pub struct ICompositionTransformFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionViewBox(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionViewBox { - type Vtable = ICompositionViewBox_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionViewBox { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb440bf07_068f_4537_84c6_4ecbe019e1f4); -} +::windows_core::imp::com_interface!(ICompositionViewBox, ICompositionViewBox_Vtbl, 0xb440bf07_068f_4537_84c6_4ecbe019e1f4); #[repr(C)] #[doc(hidden)] pub struct ICompositionViewBox_Vtbl { @@ -2385,16 +1436,7 @@ pub struct ICompositionViewBox_Vtbl { pub VerticalAlignmentRatio: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows_core::HRESULT, pub SetVerticalAlignmentRatio: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionVirtualDrawingSurface(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionVirtualDrawingSurface { - type Vtable = ICompositionVirtualDrawingSurface_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionVirtualDrawingSurface { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa9c384db_8740_4f94_8b9d_b68521e7863d); -} +::windows_core::imp::com_interface!(ICompositionVirtualDrawingSurface, ICompositionVirtualDrawingSurface_Vtbl, 0xa9c384db_8740_4f94_8b9d_b68521e7863d); #[repr(C)] #[doc(hidden)] pub struct ICompositionVirtualDrawingSurface_Vtbl { @@ -2404,31 +1446,13 @@ pub struct ICompositionVirtualDrawingSurface_Vtbl { #[cfg(not(feature = "Graphics"))] Trim: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionVirtualDrawingSurfaceFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionVirtualDrawingSurfaceFactory { - type Vtable = ICompositionVirtualDrawingSurfaceFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionVirtualDrawingSurfaceFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6766106c_d56b_4a49_b1df_5076a0620768); -} +::windows_core::imp::com_interface!(ICompositionVirtualDrawingSurfaceFactory, ICompositionVirtualDrawingSurfaceFactory_Vtbl, 0x6766106c_d56b_4a49_b1df_5076a0620768); #[repr(C)] #[doc(hidden)] pub struct ICompositionVirtualDrawingSurfaceFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionVisualSurface(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionVisualSurface { - type Vtable = ICompositionVisualSurface_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionVisualSurface { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb224d803_4f6e_4a3f_8cae_3dc1cda74fc6); -} +::windows_core::imp::com_interface!(ICompositionVisualSurface, ICompositionVisualSurface_Vtbl, 0xb224d803_4f6e_4a3f_8cae_3dc1cda74fc6); #[repr(C)] #[doc(hidden)] pub struct ICompositionVisualSurface_Vtbl { @@ -2452,16 +1476,7 @@ pub struct ICompositionVisualSurface_Vtbl { #[cfg(not(feature = "Foundation_Numerics"))] SetSourceSize: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositor(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositor { - type Vtable = ICompositor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb403ca50_7f8c_4e83_985f_cc45060036d8); -} +::windows_core::imp::com_interface!(ICompositor, ICompositor_Vtbl, 0xb403ca50_7f8c_4e83_985f_cc45060036d8); #[repr(C)] #[doc(hidden)] pub struct ICompositor_Vtbl { @@ -2500,16 +1515,7 @@ pub struct ICompositor_Vtbl { pub CreateVector4KeyFrameAnimation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetCommitBatch: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, batchtype: CompositionBatchTypes, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositor2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositor2 { - type Vtable = ICompositor2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositor2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x735081dc_5e24_45da_a38f_e32cc349a9a0); -} +::windows_core::imp::com_interface!(ICompositor2, ICompositor2_Vtbl, 0x735081dc_5e24_45da_a38f_e32cc349a9a0); #[repr(C)] #[doc(hidden)] pub struct ICompositor2_Vtbl { @@ -2528,32 +1534,14 @@ pub struct ICompositor2_Vtbl { pub CreateStepEasingFunction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateStepEasingFunctionWithStepCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, stepcount: i32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositor3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositor3 { - type Vtable = ICompositor3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositor3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc9dd8ef0_6eb1_4e3c_a658_675d9c64d4ab); -} +::windows_core::imp::com_interface!(ICompositor3, ICompositor3_Vtbl, 0xc9dd8ef0_6eb1_4e3c_a658_675d9c64d4ab); #[repr(C)] #[doc(hidden)] pub struct ICompositor3_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateHostBackdropBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositor4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositor4 { - type Vtable = ICompositor4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositor4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xae47e78a_7910_4425_a482_a05b758adce9); -} +::windows_core::imp::com_interface!(ICompositor4, ICompositor4_Vtbl, 0xae47e78a_7910_4425_a482_a05b758adce9); #[repr(C)] #[doc(hidden)] pub struct ICompositor4_Vtbl { @@ -2561,20 +1549,11 @@ pub struct ICompositor4_Vtbl { pub CreateColorGradientStop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateColorGradientStopWithOffsetAndColor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, offset: f32, color: super::Color, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateLinearGradientBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, - pub CreateSpringScalarAnimation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, - pub CreateSpringVector2Animation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, - pub CreateSpringVector3Animation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositor5(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositor5 { - type Vtable = ICompositor5_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositor5 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x48ea31ad_7fcd_4076_a79c_90cc4b852c9b); + pub CreateSpringScalarAnimation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, + pub CreateSpringVector2Animation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, + pub CreateSpringVector3Animation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } +::windows_core::imp::com_interface!(ICompositor5, ICompositor5_Vtbl, 0x48ea31ad_7fcd_4076_a79c_90cc4b852c9b); #[repr(C)] #[doc(hidden)] pub struct ICompositor5_Vtbl { @@ -2600,16 +1579,7 @@ pub struct ICompositor5_Vtbl { pub CreateViewBox: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RequestCommitAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositor6(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositor6 { - type Vtable = ICompositor6_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositor6 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7a38b2bd_cec8_4eeb_830f_d8d07aedebc3); -} +::windows_core::imp::com_interface!(ICompositor6, ICompositor6_Vtbl, 0x7a38b2bd_cec8_4eeb_830f_d8d07aedebc3); #[repr(C)] #[doc(hidden)] pub struct ICompositor6_Vtbl { @@ -2620,16 +1590,7 @@ pub struct ICompositor6_Vtbl { pub CreateRedirectVisualWithSourceVisual: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, source: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateBooleanKeyFrameAnimation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositor7(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositor7 { - type Vtable = ICompositor7_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositor7 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd3483fad_9a12_53ba_bfc8_88b7ff7977c6); -} +::windows_core::imp::com_interface!(ICompositor7, ICompositor7_Vtbl, 0xd3483fad_9a12_53ba_bfc8_88b7ff7977c6); #[repr(C)] #[doc(hidden)] pub struct ICompositor7_Vtbl { @@ -2646,32 +1607,14 @@ pub struct ICompositor7_Vtbl { #[cfg(not(feature = "Foundation_Numerics"))] CreateRectangleClipWithSidesAndRadius: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositor8(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositor8 { - type Vtable = ICompositor8_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositor8 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9a0bdee2_fe7b_5f62_a366_9cf8effe2112); -} +::windows_core::imp::com_interface!(ICompositor8, ICompositor8_Vtbl, 0x9a0bdee2_fe7b_5f62_a366_9cf8effe2112); #[repr(C)] #[doc(hidden)] pub struct ICompositor8_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateAnimationController: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositorStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositorStatics { - type Vtable = ICompositorStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositorStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x080db93e_121e_4d97_8b74_1dfcf91987ea); -} +::windows_core::imp::com_interface!(ICompositorStatics, ICompositorStatics_Vtbl, 0x080db93e_121e_4d97_8b74_1dfcf91987ea); #[repr(C)] #[doc(hidden)] pub struct ICompositorStatics_Vtbl { @@ -2679,32 +1622,14 @@ pub struct ICompositorStatics_Vtbl { pub MaxGlobalPlaybackRate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows_core::HRESULT, pub MinGlobalPlaybackRate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositorWithBlurredWallpaperBackdropBrush(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositorWithBlurredWallpaperBackdropBrush { - type Vtable = ICompositorWithBlurredWallpaperBackdropBrush_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositorWithBlurredWallpaperBackdropBrush { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0d8fb190_f122_5b8d_9fdd_543b0d8eb7f3); -} +::windows_core::imp::com_interface!(ICompositorWithBlurredWallpaperBackdropBrush, ICompositorWithBlurredWallpaperBackdropBrush_Vtbl, 0x0d8fb190_f122_5b8d_9fdd_543b0d8eb7f3); #[repr(C)] #[doc(hidden)] pub struct ICompositorWithBlurredWallpaperBackdropBrush_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub TryCreateBlurredWallpaperBackdropBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositorWithProjectedShadow(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositorWithProjectedShadow { - type Vtable = ICompositorWithProjectedShadow_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositorWithProjectedShadow { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa2e6330e_8a60_5a38_bb85_b44ea901677c); -} +::windows_core::imp::com_interface!(ICompositorWithProjectedShadow, ICompositorWithProjectedShadow_Vtbl, 0xa2e6330e_8a60_5a38_bb85_b44ea901677c); #[repr(C)] #[doc(hidden)] pub struct ICompositorWithProjectedShadow_Vtbl { @@ -2713,79 +1638,34 @@ pub struct ICompositorWithProjectedShadow_Vtbl { pub CreateProjectedShadow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateProjectedShadowReceiver: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositorWithRadialGradient(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositorWithRadialGradient { - type Vtable = ICompositorWithRadialGradient_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositorWithRadialGradient { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x98b9c1a7_8e71_4b53_b4a8_69ba5d19dc5b); -} +::windows_core::imp::com_interface!(ICompositorWithRadialGradient, ICompositorWithRadialGradient_Vtbl, 0x98b9c1a7_8e71_4b53_b4a8_69ba5d19dc5b); #[repr(C)] #[doc(hidden)] pub struct ICompositorWithRadialGradient_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateRadialGradientBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositorWithVisualSurface(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositorWithVisualSurface { - type Vtable = ICompositorWithVisualSurface_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositorWithVisualSurface { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcfa1658b_0123_4551_8891_89bdcc40322b); -} +::windows_core::imp::com_interface!(ICompositorWithVisualSurface, ICompositorWithVisualSurface_Vtbl, 0xcfa1658b_0123_4551_8891_89bdcc40322b); #[repr(C)] #[doc(hidden)] pub struct ICompositorWithVisualSurface_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateVisualSurface: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContainerVisual(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContainerVisual { - type Vtable = IContainerVisual_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContainerVisual { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x02f6bc74_ed20_4773_afe6_d49b4a93db32); -} +::windows_core::imp::com_interface!(IContainerVisual, IContainerVisual_Vtbl, 0x02f6bc74_ed20_4773_afe6_d49b4a93db32); #[repr(C)] #[doc(hidden)] pub struct IContainerVisual_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Children: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContainerVisualFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContainerVisualFactory { - type Vtable = IContainerVisualFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContainerVisualFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0363a65b_c7da_4d9a_95f4_69b5c8df670b); -} +::windows_core::imp::com_interface!(IContainerVisualFactory, IContainerVisualFactory_Vtbl, 0x0363a65b_c7da_4d9a_95f4_69b5c8df670b); #[repr(C)] #[doc(hidden)] pub struct IContainerVisualFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICubicBezierEasingFunction(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICubicBezierEasingFunction { - type Vtable = ICubicBezierEasingFunction_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICubicBezierEasingFunction { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x32350666_c1e8_44f9_96b8_c98acf0ae698); -} +::windows_core::imp::com_interface!(ICubicBezierEasingFunction, ICubicBezierEasingFunction_Vtbl, 0x32350666_c1e8_44f9_96b8_c98acf0ae698); #[repr(C)] #[doc(hidden)] pub struct ICubicBezierEasingFunction_Vtbl { @@ -2799,16 +1679,7 @@ pub struct ICubicBezierEasingFunction_Vtbl { #[cfg(not(feature = "Foundation_Numerics"))] ControlPoint2: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDelegatedInkTrailVisual(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDelegatedInkTrailVisual { - type Vtable = IDelegatedInkTrailVisual_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDelegatedInkTrailVisual { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x856e60b1_e1ab_5b23_8e3d_d513f221c998); -} +::windows_core::imp::com_interface!(IDelegatedInkTrailVisual, IDelegatedInkTrailVisual_Vtbl, 0x856e60b1_e1ab_5b23_8e3d_d513f221c998); #[repr(C)] #[doc(hidden)] pub struct IDelegatedInkTrailVisual_Vtbl { @@ -2818,16 +1689,7 @@ pub struct IDelegatedInkTrailVisual_Vtbl { pub RemoveTrailPoints: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, generationid: u32) -> ::windows_core::HRESULT, pub StartNewTrail: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, color: super::Color) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDelegatedInkTrailVisualStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDelegatedInkTrailVisualStatics { - type Vtable = IDelegatedInkTrailVisualStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDelegatedInkTrailVisualStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0daf6bd5_42c6_555c_9267_e0ac663af836); -} +::windows_core::imp::com_interface!(IDelegatedInkTrailVisualStatics, IDelegatedInkTrailVisualStatics_Vtbl, 0x0daf6bd5_42c6_555c_9267_e0ac663af836); #[repr(C)] #[doc(hidden)] pub struct IDelegatedInkTrailVisualStatics_Vtbl { @@ -2835,16 +1697,7 @@ pub struct IDelegatedInkTrailVisualStatics_Vtbl { pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, compositor: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateForSwapChain: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, compositor: *mut ::core::ffi::c_void, swapchain: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDistantLight(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDistantLight { - type Vtable = IDistantLight_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDistantLight { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x318cfafc_5ce3_4b55_ab5d_07a00353ac99); -} +::windows_core::imp::com_interface!(IDistantLight, IDistantLight_Vtbl, 0x318cfafc_5ce3_4b55_ab5d_07a00353ac99); #[repr(C)] #[doc(hidden)] pub struct IDistantLight_Vtbl { @@ -2862,16 +1715,7 @@ pub struct IDistantLight_Vtbl { #[cfg(not(feature = "Foundation_Numerics"))] SetDirection: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDistantLight2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDistantLight2 { - type Vtable = IDistantLight2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDistantLight2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdbcdaa1c_294b_48d7_b60e_76df64aa392b); -} +::windows_core::imp::com_interface!(IDistantLight2, IDistantLight2_Vtbl, 0xdbcdaa1c_294b_48d7_b60e_76df64aa392b); #[repr(C)] #[doc(hidden)] pub struct IDistantLight2_Vtbl { @@ -2879,16 +1723,7 @@ pub struct IDistantLight2_Vtbl { pub Intensity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows_core::HRESULT, pub SetIntensity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDropShadow(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDropShadow { - type Vtable = IDropShadow_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDropShadow { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcb977c07_a154_4851_85e7_a8924c84fad8); -} +::windows_core::imp::com_interface!(IDropShadow, IDropShadow_Vtbl, 0xcb977c07_a154_4851_85e7_a8924c84fad8); #[repr(C)] #[doc(hidden)] pub struct IDropShadow_Vtbl { @@ -2910,16 +1745,7 @@ pub struct IDropShadow_Vtbl { pub Opacity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows_core::HRESULT, pub SetOpacity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDropShadow2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDropShadow2 { - type Vtable = IDropShadow2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDropShadow2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6c4218bc_15b9_4c2d_8d4a_0767df11977a); -} +::windows_core::imp::com_interface!(IDropShadow2, IDropShadow2_Vtbl, 0x6c4218bc_15b9_4c2d_8d4a_0767df11977a); #[repr(C)] #[doc(hidden)] pub struct IDropShadow2_Vtbl { @@ -2927,16 +1753,7 @@ pub struct IDropShadow2_Vtbl { pub SourcePolicy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut CompositionDropShadowSourcePolicy) -> ::windows_core::HRESULT, pub SetSourcePolicy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: CompositionDropShadowSourcePolicy) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IElasticEasingFunction(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IElasticEasingFunction { - type Vtable = IElasticEasingFunction_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IElasticEasingFunction { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x66de6285_054e_5594_8475_c22cb51f1bd5); -} +::windows_core::imp::com_interface!(IElasticEasingFunction, IElasticEasingFunction_Vtbl, 0x66de6285_054e_5594_8475_c22cb51f1bd5); #[repr(C)] #[doc(hidden)] pub struct IElasticEasingFunction_Vtbl { @@ -2945,16 +1762,7 @@ pub struct IElasticEasingFunction_Vtbl { pub Oscillations: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows_core::HRESULT, pub Springiness: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IExponentialEasingFunction(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IExponentialEasingFunction { - type Vtable = IExponentialEasingFunction_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IExponentialEasingFunction { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6f7d1a51_98d2_5638_a34a_00486554c750); -} +::windows_core::imp::com_interface!(IExponentialEasingFunction, IExponentialEasingFunction_Vtbl, 0x6f7d1a51_98d2_5638_a34a_00486554c750); #[repr(C)] #[doc(hidden)] pub struct IExponentialEasingFunction_Vtbl { @@ -2962,16 +1770,7 @@ pub struct IExponentialEasingFunction_Vtbl { pub Mode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut CompositionEasingFunctionMode) -> ::windows_core::HRESULT, pub Exponent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IExpressionAnimation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IExpressionAnimation { - type Vtable = IExpressionAnimation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IExpressionAnimation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6acc5431_7d3d_4bf3_abb6_f44bdc4888c1); -} +::windows_core::imp::com_interface!(IExpressionAnimation, IExpressionAnimation_Vtbl, 0x6acc5431_7d3d_4bf3_abb6_f44bdc4888c1); #[repr(C)] #[doc(hidden)] pub struct IExpressionAnimation_Vtbl { @@ -2979,31 +1778,13 @@ pub struct IExpressionAnimation_Vtbl { pub Expression: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetExpression: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IImplicitAnimationCollection(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IImplicitAnimationCollection { - type Vtable = IImplicitAnimationCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IImplicitAnimationCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0598a3ff_0a92_4c9d_a427_b25519250dbf); -} +::windows_core::imp::com_interface!(IImplicitAnimationCollection, IImplicitAnimationCollection_Vtbl, 0x0598a3ff_0a92_4c9d_a427_b25519250dbf); #[repr(C)] #[doc(hidden)] pub struct IImplicitAnimationCollection_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInsetClip(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInsetClip { - type Vtable = IInsetClip_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInsetClip { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1e73e647_84c7_477a_b474_5880e0442e15); -} +::windows_core::imp::com_interface!(IInsetClip, IInsetClip_Vtbl, 0x1e73e647_84c7_477a_b474_5880e0442e15); #[repr(C)] #[doc(hidden)] pub struct IInsetClip_Vtbl { @@ -3017,16 +1798,7 @@ pub struct IInsetClip_Vtbl { pub TopInset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows_core::HRESULT, pub SetTopInset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKeyFrameAnimation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKeyFrameAnimation { - type Vtable = IKeyFrameAnimation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKeyFrameAnimation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x126e7f22_3ae9_4540_9a8a_deae8a4a4a84); -} +::windows_core::imp::com_interface!(IKeyFrameAnimation, IKeyFrameAnimation_Vtbl, 0x126e7f22_3ae9_4540_9a8a_deae8a4a4a84); #[repr(C)] #[doc(hidden)] pub struct IKeyFrameAnimation_Vtbl { @@ -3045,16 +1817,7 @@ pub struct IKeyFrameAnimation_Vtbl { pub InsertExpressionKeyFrame: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, normalizedprogresskey: f32, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub InsertExpressionKeyFrameWithEasingFunction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, normalizedprogresskey: f32, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>, easingfunction: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKeyFrameAnimation2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKeyFrameAnimation2 { - type Vtable = IKeyFrameAnimation2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKeyFrameAnimation2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf4b488bb_2940_4ec0_a41a_eb6d801a2f18); -} +::windows_core::imp::com_interface!(IKeyFrameAnimation2, IKeyFrameAnimation2_Vtbl, 0xf4b488bb_2940_4ec0_a41a_eb6d801a2f18); #[repr(C)] #[doc(hidden)] pub struct IKeyFrameAnimation2_Vtbl { @@ -3062,16 +1825,7 @@ pub struct IKeyFrameAnimation2_Vtbl { pub Direction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut AnimationDirection) -> ::windows_core::HRESULT, pub SetDirection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: AnimationDirection) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKeyFrameAnimation3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKeyFrameAnimation3 { - type Vtable = IKeyFrameAnimation3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKeyFrameAnimation3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x845bf0b4_d8de_462f_8753_c80d43c6ff5a); -} +::windows_core::imp::com_interface!(IKeyFrameAnimation3, IKeyFrameAnimation3_Vtbl, 0x845bf0b4_d8de_462f_8753_c80d43c6ff5a); #[repr(C)] #[doc(hidden)] pub struct IKeyFrameAnimation3_Vtbl { @@ -3079,31 +1833,13 @@ pub struct IKeyFrameAnimation3_Vtbl { pub DelayBehavior: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut AnimationDelayBehavior) -> ::windows_core::HRESULT, pub SetDelayBehavior: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: AnimationDelayBehavior) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKeyFrameAnimationFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKeyFrameAnimationFactory { - type Vtable = IKeyFrameAnimationFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKeyFrameAnimationFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbf0803f8_712a_4fc1_8c87_970859ed8d2e); -} +::windows_core::imp::com_interface!(IKeyFrameAnimationFactory, IKeyFrameAnimationFactory_Vtbl, 0xbf0803f8_712a_4fc1_8c87_970859ed8d2e); #[repr(C)] #[doc(hidden)] pub struct IKeyFrameAnimationFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILayerVisual(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILayerVisual { - type Vtable = ILayerVisual_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILayerVisual { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaf843985_0444_4887_8e83_b40b253f822c); -} +::windows_core::imp::com_interface!(ILayerVisual, ILayerVisual_Vtbl, 0xaf843985_0444_4887_8e83_b40b253f822c); #[repr(C)] #[doc(hidden)] pub struct ILayerVisual_Vtbl { @@ -3111,16 +1847,7 @@ pub struct ILayerVisual_Vtbl { pub Effect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetEffect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILayerVisual2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILayerVisual2 { - type Vtable = ILayerVisual2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILayerVisual2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x98f9aeeb_6f23_49f1_90b1_1f59a14fbce3); -} +::windows_core::imp::com_interface!(ILayerVisual2, ILayerVisual2_Vtbl, 0x98f9aeeb_6f23_49f1_90b1_1f59a14fbce3); #[repr(C)] #[doc(hidden)] pub struct ILayerVisual2_Vtbl { @@ -3128,31 +1855,13 @@ pub struct ILayerVisual2_Vtbl { pub Shadow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetShadow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILinearEasingFunction(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILinearEasingFunction { - type Vtable = ILinearEasingFunction_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILinearEasingFunction { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9400975a_c7a6_46b3_acf7_1a268a0a117d); -} +::windows_core::imp::com_interface!(ILinearEasingFunction, ILinearEasingFunction_Vtbl, 0x9400975a_c7a6_46b3_acf7_1a268a0a117d); #[repr(C)] #[doc(hidden)] pub struct ILinearEasingFunction_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INaturalMotionAnimation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INaturalMotionAnimation { - type Vtable = INaturalMotionAnimation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INaturalMotionAnimation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x438de12d_769b_4821_a949_284a6547e873); -} +::windows_core::imp::com_interface!(INaturalMotionAnimation, INaturalMotionAnimation_Vtbl, 0x438de12d_769b_4821_a949_284a6547e873); #[repr(C)] #[doc(hidden)] pub struct INaturalMotionAnimation_Vtbl { @@ -3164,31 +1873,13 @@ pub struct INaturalMotionAnimation_Vtbl { pub StopBehavior: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut AnimationStopBehavior) -> ::windows_core::HRESULT, pub SetStopBehavior: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: AnimationStopBehavior) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INaturalMotionAnimationFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INaturalMotionAnimationFactory { - type Vtable = INaturalMotionAnimationFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INaturalMotionAnimationFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf53acb06_cf6a_4387_a3fe_5221f3e7e0e0); -} +::windows_core::imp::com_interface!(INaturalMotionAnimationFactory, INaturalMotionAnimationFactory_Vtbl, 0xf53acb06_cf6a_4387_a3fe_5221f3e7e0e0); #[repr(C)] #[doc(hidden)] pub struct INaturalMotionAnimationFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPathKeyFrameAnimation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPathKeyFrameAnimation { - type Vtable = IPathKeyFrameAnimation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPathKeyFrameAnimation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9d0d18c9_1576_4b3f_be60_1d5031f5e71b); -} +::windows_core::imp::com_interface!(IPathKeyFrameAnimation, IPathKeyFrameAnimation_Vtbl, 0x9d0d18c9_1576_4b3f_be60_1d5031f5e71b); #[repr(C)] #[doc(hidden)] pub struct IPathKeyFrameAnimation_Vtbl { @@ -3196,16 +1887,7 @@ pub struct IPathKeyFrameAnimation_Vtbl { pub InsertKeyFrame: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, normalizedprogresskey: f32, path: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub InsertKeyFrameWithEasingFunction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, normalizedprogresskey: f32, path: *mut ::core::ffi::c_void, easingfunction: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPointLight(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPointLight { - type Vtable = IPointLight_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPointLight { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb18545b3_0c5a_4ab0_bedc_4f3546948272); -} +::windows_core::imp::com_interface!(IPointLight, IPointLight_Vtbl, 0xb18545b3_0c5a_4ab0_bedc_4f3546948272); #[repr(C)] #[doc(hidden)] pub struct IPointLight_Vtbl { @@ -3229,16 +1911,7 @@ pub struct IPointLight_Vtbl { pub QuadraticAttenuation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows_core::HRESULT, pub SetQuadraticAttenuation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPointLight2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPointLight2 { - type Vtable = IPointLight2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPointLight2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xefe98f2c_0678_4f69_b164_a810d995bcb7); -} +::windows_core::imp::com_interface!(IPointLight2, IPointLight2_Vtbl, 0xefe98f2c_0678_4f69_b164_a810d995bcb7); #[repr(C)] #[doc(hidden)] pub struct IPointLight2_Vtbl { @@ -3246,16 +1919,7 @@ pub struct IPointLight2_Vtbl { pub Intensity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows_core::HRESULT, pub SetIntensity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPointLight3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPointLight3 { - type Vtable = IPointLight3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPointLight3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4c0a8367_d4e9_468a_87ae_7ba43ab29485); -} +::windows_core::imp::com_interface!(IPointLight3, IPointLight3_Vtbl, 0x4c0a8367_d4e9_468a_87ae_7ba43ab29485); #[repr(C)] #[doc(hidden)] pub struct IPointLight3_Vtbl { @@ -3265,16 +1929,7 @@ pub struct IPointLight3_Vtbl { pub MaxAttenuationCutoff: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows_core::HRESULT, pub SetMaxAttenuationCutoff: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPowerEasingFunction(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPowerEasingFunction { - type Vtable = IPowerEasingFunction_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPowerEasingFunction { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc3ff53d6_138b_5815_891a_b7f615ccc563); -} +::windows_core::imp::com_interface!(IPowerEasingFunction, IPowerEasingFunction_Vtbl, 0xc3ff53d6_138b_5815_891a_b7f615ccc563); #[repr(C)] #[doc(hidden)] pub struct IPowerEasingFunction_Vtbl { @@ -3282,16 +1937,7 @@ pub struct IPowerEasingFunction_Vtbl { pub Mode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut CompositionEasingFunctionMode) -> ::windows_core::HRESULT, pub Power: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IQuaternionKeyFrameAnimation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IQuaternionKeyFrameAnimation { - type Vtable = IQuaternionKeyFrameAnimation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IQuaternionKeyFrameAnimation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x404e5835_ecf6_4240_8520_671279cf36bc); -} +::windows_core::imp::com_interface!(IQuaternionKeyFrameAnimation, IQuaternionKeyFrameAnimation_Vtbl, 0x404e5835_ecf6_4240_8520_671279cf36bc); #[repr(C)] #[doc(hidden)] pub struct IQuaternionKeyFrameAnimation_Vtbl { @@ -3305,16 +1951,7 @@ pub struct IQuaternionKeyFrameAnimation_Vtbl { #[cfg(not(feature = "Foundation_Numerics"))] InsertKeyFrameWithEasingFunction: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRectangleClip(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRectangleClip { - type Vtable = IRectangleClip_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRectangleClip { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb3e7549e_00b4_5b53_8be8_353f6c433101); -} +::windows_core::imp::com_interface!(IRectangleClip, IRectangleClip_Vtbl, 0xb3e7549e_00b4_5b53_8be8_353f6c433101); #[repr(C)] #[doc(hidden)] pub struct IRectangleClip_Vtbl { @@ -3360,16 +1997,7 @@ pub struct IRectangleClip_Vtbl { #[cfg(not(feature = "Foundation_Numerics"))] SetTopRightRadius: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRedirectVisual(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRedirectVisual { - type Vtable = IRedirectVisual_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRedirectVisual { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8cc6e340_8b75_5422_b06f_09ffe9f8617e); -} +::windows_core::imp::com_interface!(IRedirectVisual, IRedirectVisual_Vtbl, 0x8cc6e340_8b75_5422_b06f_09ffe9f8617e); #[repr(C)] #[doc(hidden)] pub struct IRedirectVisual_Vtbl { @@ -3377,32 +2005,14 @@ pub struct IRedirectVisual_Vtbl { pub Source: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetSource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRenderingDeviceReplacedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRenderingDeviceReplacedEventArgs { - type Vtable = IRenderingDeviceReplacedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRenderingDeviceReplacedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3a31ac7d_28bf_4e7a_8524_71679d480f38); -} +::windows_core::imp::com_interface!(IRenderingDeviceReplacedEventArgs, IRenderingDeviceReplacedEventArgs_Vtbl, 0x3a31ac7d_28bf_4e7a_8524_71679d480f38); #[repr(C)] #[doc(hidden)] pub struct IRenderingDeviceReplacedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GraphicsDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IScalarKeyFrameAnimation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IScalarKeyFrameAnimation { - type Vtable = IScalarKeyFrameAnimation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IScalarKeyFrameAnimation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xae288fa9_252c_4b95_a725_bf85e38000a1); -} +::windows_core::imp::com_interface!(IScalarKeyFrameAnimation, IScalarKeyFrameAnimation_Vtbl, 0xae288fa9_252c_4b95_a725_bf85e38000a1); #[repr(C)] #[doc(hidden)] pub struct IScalarKeyFrameAnimation_Vtbl { @@ -3410,16 +2020,7 @@ pub struct IScalarKeyFrameAnimation_Vtbl { pub InsertKeyFrame: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, normalizedprogresskey: f32, value: f32) -> ::windows_core::HRESULT, pub InsertKeyFrameWithEasingFunction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, normalizedprogresskey: f32, value: f32, easingfunction: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IScalarNaturalMotionAnimation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IScalarNaturalMotionAnimation { - type Vtable = IScalarNaturalMotionAnimation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IScalarNaturalMotionAnimation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x94a94581_bf92_495b_b5bd_d2c659430737); -} +::windows_core::imp::com_interface!(IScalarNaturalMotionAnimation, IScalarNaturalMotionAnimation_Vtbl, 0x94a94581_bf92_495b_b5bd_d2c659430737); #[repr(C)] #[doc(hidden)] pub struct IScalarNaturalMotionAnimation_Vtbl { @@ -3431,31 +2032,13 @@ pub struct IScalarNaturalMotionAnimation_Vtbl { pub InitialVelocity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows_core::HRESULT, pub SetInitialVelocity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IScalarNaturalMotionAnimationFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IScalarNaturalMotionAnimationFactory { - type Vtable = IScalarNaturalMotionAnimationFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IScalarNaturalMotionAnimationFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x835aa4fc_671c_41dd_af48_ae8def8b1529); -} +::windows_core::imp::com_interface!(IScalarNaturalMotionAnimationFactory, IScalarNaturalMotionAnimationFactory_Vtbl, 0x835aa4fc_671c_41dd_af48_ae8def8b1529); #[repr(C)] #[doc(hidden)] pub struct IScalarNaturalMotionAnimationFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShapeVisual(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IShapeVisual { - type Vtable = IShapeVisual_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IShapeVisual { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf2bd13c3_ba7e_4b0f_9126_ffb7536b8176); -} +::windows_core::imp::com_interface!(IShapeVisual, IShapeVisual_Vtbl, 0xf2bd13c3_ba7e_4b0f_9126_ffb7536b8176); #[repr(C)] #[doc(hidden)] pub struct IShapeVisual_Vtbl { @@ -3463,36 +2046,18 @@ pub struct IShapeVisual_Vtbl { #[cfg(feature = "Foundation_Collections")] pub Shapes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, #[cfg(not(feature = "Foundation_Collections"))] - Shapes: usize, - pub ViewBox: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, - pub SetViewBox: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISineEasingFunction(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISineEasingFunction { - type Vtable = ISineEasingFunction_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISineEasingFunction { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf1b518bf_9563_5474_bd13_44b2df4b1d58); + Shapes: usize, + pub ViewBox: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, + pub SetViewBox: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } +::windows_core::imp::com_interface!(ISineEasingFunction, ISineEasingFunction_Vtbl, 0xf1b518bf_9563_5474_bd13_44b2df4b1d58); #[repr(C)] #[doc(hidden)] pub struct ISineEasingFunction_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Mode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut CompositionEasingFunctionMode) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpotLight(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpotLight { - type Vtable = ISpotLight_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpotLight { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5a9fe273_44a1_4f95_a422_8fa5116bdb44); -} +::windows_core::imp::com_interface!(ISpotLight, ISpotLight_Vtbl, 0x5a9fe273_44a1_4f95_a422_8fa5116bdb44); #[repr(C)] #[doc(hidden)] pub struct ISpotLight_Vtbl { @@ -3534,16 +2099,7 @@ pub struct ISpotLight_Vtbl { pub QuadraticAttenuation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows_core::HRESULT, pub SetQuadraticAttenuation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpotLight2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpotLight2 { - type Vtable = ISpotLight2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpotLight2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x64ee615e_0686_4dea_a9e8_bc3a8c701459); -} +::windows_core::imp::com_interface!(ISpotLight2, ISpotLight2_Vtbl, 0x64ee615e_0686_4dea_a9e8_bc3a8c701459); #[repr(C)] #[doc(hidden)] pub struct ISpotLight2_Vtbl { @@ -3553,16 +2109,7 @@ pub struct ISpotLight2_Vtbl { pub OuterConeIntensity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows_core::HRESULT, pub SetOuterConeIntensity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpotLight3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpotLight3 { - type Vtable = ISpotLight3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpotLight3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe4d03eea_131f_480e_859e_b82705b74360); -} +::windows_core::imp::com_interface!(ISpotLight3, ISpotLight3_Vtbl, 0xe4d03eea_131f_480e_859e_b82705b74360); #[repr(C)] #[doc(hidden)] pub struct ISpotLight3_Vtbl { @@ -3572,16 +2119,7 @@ pub struct ISpotLight3_Vtbl { pub MaxAttenuationCutoff: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows_core::HRESULT, pub SetMaxAttenuationCutoff: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpringScalarNaturalMotionAnimation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpringScalarNaturalMotionAnimation { - type Vtable = ISpringScalarNaturalMotionAnimation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpringScalarNaturalMotionAnimation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0572a95f_37f9_4fbe_b87b_5cd03a89501c); -} +::windows_core::imp::com_interface!(ISpringScalarNaturalMotionAnimation, ISpringScalarNaturalMotionAnimation_Vtbl, 0x0572a95f_37f9_4fbe_b87b_5cd03a89501c); #[repr(C)] #[doc(hidden)] pub struct ISpringScalarNaturalMotionAnimation_Vtbl { @@ -3591,16 +2129,7 @@ pub struct ISpringScalarNaturalMotionAnimation_Vtbl { pub Period: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::TimeSpan) -> ::windows_core::HRESULT, pub SetPeriod: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::Foundation::TimeSpan) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpringVector2NaturalMotionAnimation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpringVector2NaturalMotionAnimation { - type Vtable = ISpringVector2NaturalMotionAnimation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpringVector2NaturalMotionAnimation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x23f494b5_ee73_4f0f_a423_402b946df4b3); -} +::windows_core::imp::com_interface!(ISpringVector2NaturalMotionAnimation, ISpringVector2NaturalMotionAnimation_Vtbl, 0x23f494b5_ee73_4f0f_a423_402b946df4b3); #[repr(C)] #[doc(hidden)] pub struct ISpringVector2NaturalMotionAnimation_Vtbl { @@ -3610,16 +2139,7 @@ pub struct ISpringVector2NaturalMotionAnimation_Vtbl { pub Period: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::TimeSpan) -> ::windows_core::HRESULT, pub SetPeriod: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::Foundation::TimeSpan) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpringVector3NaturalMotionAnimation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpringVector3NaturalMotionAnimation { - type Vtable = ISpringVector3NaturalMotionAnimation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpringVector3NaturalMotionAnimation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6c8749df_d57b_4794_8e2d_cecb11e194e5); -} +::windows_core::imp::com_interface!(ISpringVector3NaturalMotionAnimation, ISpringVector3NaturalMotionAnimation_Vtbl, 0x6c8749df_d57b_4794_8e2d_cecb11e194e5); #[repr(C)] #[doc(hidden)] pub struct ISpringVector3NaturalMotionAnimation_Vtbl { @@ -3629,16 +2149,7 @@ pub struct ISpringVector3NaturalMotionAnimation_Vtbl { pub Period: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::TimeSpan) -> ::windows_core::HRESULT, pub SetPeriod: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::Foundation::TimeSpan) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpriteVisual(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpriteVisual { - type Vtable = ISpriteVisual_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpriteVisual { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x08e05581_1ad1_4f97_9757_402d76e4233b); -} +::windows_core::imp::com_interface!(ISpriteVisual, ISpriteVisual_Vtbl, 0x08e05581_1ad1_4f97_9757_402d76e4233b); #[repr(C)] #[doc(hidden)] pub struct ISpriteVisual_Vtbl { @@ -3646,16 +2157,7 @@ pub struct ISpriteVisual_Vtbl { pub Brush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpriteVisual2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpriteVisual2 { - type Vtable = ISpriteVisual2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpriteVisual2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x588c9664_997a_4850_91fe_53cb58f81ce9); -} +::windows_core::imp::com_interface!(ISpriteVisual2, ISpriteVisual2_Vtbl, 0x588c9664_997a_4850_91fe_53cb58f81ce9); #[repr(C)] #[doc(hidden)] pub struct ISpriteVisual2_Vtbl { @@ -3663,16 +2165,7 @@ pub struct ISpriteVisual2_Vtbl { pub Shadow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetShadow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStepEasingFunction(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStepEasingFunction { - type Vtable = IStepEasingFunction_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStepEasingFunction { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd0caa74b_560c_4a0b_a5f6_206ca8c3ecd6); -} +::windows_core::imp::com_interface!(IStepEasingFunction, IStepEasingFunction_Vtbl, 0xd0caa74b_560c_4a0b_a5f6_206ca8c3ecd6); #[repr(C)] #[doc(hidden)] pub struct IStepEasingFunction_Vtbl { @@ -3688,16 +2181,7 @@ pub struct IStepEasingFunction_Vtbl { pub StepCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows_core::HRESULT, pub SetStepCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVector2KeyFrameAnimation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVector2KeyFrameAnimation { - type Vtable = IVector2KeyFrameAnimation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVector2KeyFrameAnimation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdf414515_4e29_4f11_b55e_bf2a6eb36294); -} +::windows_core::imp::com_interface!(IVector2KeyFrameAnimation, IVector2KeyFrameAnimation_Vtbl, 0xdf414515_4e29_4f11_b55e_bf2a6eb36294); #[repr(C)] #[doc(hidden)] pub struct IVector2KeyFrameAnimation_Vtbl { @@ -3711,16 +2195,7 @@ pub struct IVector2KeyFrameAnimation_Vtbl { #[cfg(not(feature = "Foundation_Numerics"))] InsertKeyFrameWithEasingFunction: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVector2NaturalMotionAnimation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVector2NaturalMotionAnimation { - type Vtable = IVector2NaturalMotionAnimation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVector2NaturalMotionAnimation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0f3e0b7d_e512_479d_a00c_77c93a30a395); -} +::windows_core::imp::com_interface!(IVector2NaturalMotionAnimation, IVector2NaturalMotionAnimation_Vtbl, 0x0f3e0b7d_e512_479d_a00c_77c93a30a395); #[repr(C)] #[doc(hidden)] pub struct IVector2NaturalMotionAnimation_Vtbl { @@ -3750,31 +2225,13 @@ pub struct IVector2NaturalMotionAnimation_Vtbl { #[cfg(not(feature = "Foundation_Numerics"))] SetInitialVelocity: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVector2NaturalMotionAnimationFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVector2NaturalMotionAnimationFactory { - type Vtable = IVector2NaturalMotionAnimationFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVector2NaturalMotionAnimationFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8c74ff61_0761_48a2_bddb_6afcc52b89d8); -} +::windows_core::imp::com_interface!(IVector2NaturalMotionAnimationFactory, IVector2NaturalMotionAnimationFactory_Vtbl, 0x8c74ff61_0761_48a2_bddb_6afcc52b89d8); #[repr(C)] #[doc(hidden)] pub struct IVector2NaturalMotionAnimationFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVector3KeyFrameAnimation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVector3KeyFrameAnimation { - type Vtable = IVector3KeyFrameAnimation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVector3KeyFrameAnimation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc8039daa_a281_43c2_a73d_b68e3c533c40); -} +::windows_core::imp::com_interface!(IVector3KeyFrameAnimation, IVector3KeyFrameAnimation_Vtbl, 0xc8039daa_a281_43c2_a73d_b68e3c533c40); #[repr(C)] #[doc(hidden)] pub struct IVector3KeyFrameAnimation_Vtbl { @@ -3788,16 +2245,7 @@ pub struct IVector3KeyFrameAnimation_Vtbl { #[cfg(not(feature = "Foundation_Numerics"))] InsertKeyFrameWithEasingFunction: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVector3NaturalMotionAnimation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVector3NaturalMotionAnimation { - type Vtable = IVector3NaturalMotionAnimation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVector3NaturalMotionAnimation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9c17042c_e2ca_45ad_969e_4e78b7b9ad41); -} +::windows_core::imp::com_interface!(IVector3NaturalMotionAnimation, IVector3NaturalMotionAnimation_Vtbl, 0x9c17042c_e2ca_45ad_969e_4e78b7b9ad41); #[repr(C)] #[doc(hidden)] pub struct IVector3NaturalMotionAnimation_Vtbl { @@ -3827,31 +2275,13 @@ pub struct IVector3NaturalMotionAnimation_Vtbl { #[cfg(not(feature = "Foundation_Numerics"))] SetInitialVelocity: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVector3NaturalMotionAnimationFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVector3NaturalMotionAnimationFactory { - type Vtable = IVector3NaturalMotionAnimationFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVector3NaturalMotionAnimationFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x21a81d2f_0880_457b_ac87_b609018c876d); -} +::windows_core::imp::com_interface!(IVector3NaturalMotionAnimationFactory, IVector3NaturalMotionAnimationFactory_Vtbl, 0x21a81d2f_0880_457b_ac87_b609018c876d); #[repr(C)] #[doc(hidden)] pub struct IVector3NaturalMotionAnimationFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVector4KeyFrameAnimation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVector4KeyFrameAnimation { - type Vtable = IVector4KeyFrameAnimation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVector4KeyFrameAnimation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2457945b_addd_4385_9606_b6a3d5e4e1b9); -} +::windows_core::imp::com_interface!(IVector4KeyFrameAnimation, IVector4KeyFrameAnimation_Vtbl, 0x2457945b_addd_4385_9606_b6a3d5e4e1b9); #[repr(C)] #[doc(hidden)] pub struct IVector4KeyFrameAnimation_Vtbl { @@ -3865,16 +2295,7 @@ pub struct IVector4KeyFrameAnimation_Vtbl { #[cfg(not(feature = "Foundation_Numerics"))] InsertKeyFrameWithEasingFunction: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVisual(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVisual { - type Vtable = IVisual_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVisual { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x117e202d_a859_4c89_873b_c2aa566788e3); -} +::windows_core::imp::com_interface!(IVisual, IVisual_Vtbl, 0x117e202d_a859_4c89_873b_c2aa566788e3); #[repr(C)] #[doc(hidden)] pub struct IVisual_Vtbl { @@ -3961,16 +2382,7 @@ pub struct IVisual_Vtbl { #[cfg(not(feature = "Foundation_Numerics"))] SetTransformMatrix: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVisual2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVisual2 { - type Vtable = IVisual2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVisual2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3052b611_56c3_4c3e_8bf3_f6e1ad473f06); -} +::windows_core::imp::com_interface!(IVisual2, IVisual2_Vtbl, 0x3052b611_56c3_4c3e_8bf3_f6e1ad473f06); #[repr(C)] #[doc(hidden)] pub struct IVisual2_Vtbl { @@ -3994,16 +2406,7 @@ pub struct IVisual2_Vtbl { #[cfg(not(feature = "Foundation_Numerics"))] SetRelativeSizeAdjustment: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVisual3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVisual3 { - type Vtable = IVisual3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVisual3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x30be580d_f4b6_4ab7_80dd_3738cbac9f2c); -} +::windows_core::imp::com_interface!(IVisual3, IVisual3_Vtbl, 0x30be580d_f4b6_4ab7_80dd_3738cbac9f2c); #[repr(C)] #[doc(hidden)] pub struct IVisual3_Vtbl { @@ -4011,16 +2414,7 @@ pub struct IVisual3_Vtbl { pub IsHitTestVisible: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetIsHitTestVisible: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVisual4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVisual4 { - type Vtable = IVisual4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVisual4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9476bf11_e24b_5bf9_9ebe_6274109b2711); -} +::windows_core::imp::com_interface!(IVisual4, IVisual4_Vtbl, 0x9476bf11_e24b_5bf9_9ebe_6274109b2711); #[repr(C)] #[doc(hidden)] pub struct IVisual4_Vtbl { @@ -4028,16 +2422,7 @@ pub struct IVisual4_Vtbl { pub IsPixelSnappingEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetIsPixelSnappingEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVisualCollection(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVisualCollection { - type Vtable = IVisualCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVisualCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8b745505_fd3e_4a98_84a8_e949468c6bcb); -} +::windows_core::imp::com_interface!(IVisualCollection, IVisualCollection_Vtbl, 0x8b745505_fd3e_4a98_84a8_e949468c6bcb); #[repr(C)] #[doc(hidden)] pub struct IVisualCollection_Vtbl { @@ -4050,28 +2435,19 @@ pub struct IVisualCollection_Vtbl { pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, child: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RemoveAll: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVisualElement(::windows_core::IUnknown); -impl IVisualElement {} +::windows_core::imp::com_interface!(IVisualElement, IVisualElement_Vtbl, 0x01e64612_1d82_42f4_8e3f_a722ded33fc7); ::windows_core::imp::interface_hierarchy!(IVisualElement, ::windows_core::IUnknown, ::windows_core::IInspectable); +impl IVisualElement {} impl ::windows_core::RuntimeType for IVisualElement { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IVisualElement { - type Vtable = IVisualElement_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVisualElement { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x01e64612_1d82_42f4_8e3f_a722ded33fc7); -} #[repr(C)] #[doc(hidden)] pub struct IVisualElement_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVisualElement2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVisualElement2, IVisualElement2_Vtbl, 0x993ae8a0_6057_5e40_918c_e06e0b7e7c64); +::windows_core::imp::interface_hierarchy!(IVisualElement2, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IVisualElement2 { pub fn GetVisualInternal(&self) -> ::windows_core::Result { let this = self; @@ -4081,47 +2457,22 @@ impl IVisualElement2 { } } } -::windows_core::imp::interface_hierarchy!(IVisualElement2, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IVisualElement2 { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IVisualElement2 { - type Vtable = IVisualElement2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVisualElement2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x993ae8a0_6057_5e40_918c_e06e0b7e7c64); -} #[repr(C)] #[doc(hidden)] pub struct IVisualElement2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetVisualInternal: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVisualFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVisualFactory { - type Vtable = IVisualFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVisualFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xad0ff93e_b502_4eb5_87b4_9a38a71d0137); -} +::windows_core::imp::com_interface!(IVisualFactory, IVisualFactory_Vtbl, 0xad0ff93e_b502_4eb5_87b4_9a38a71d0137); #[repr(C)] #[doc(hidden)] pub struct IVisualFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVisualUnorderedCollection(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVisualUnorderedCollection { - type Vtable = IVisualUnorderedCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVisualUnorderedCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x338faa70_54c8_40a7_8029_c9ceeb0aa250); -} +::windows_core::imp::com_interface!(IVisualUnorderedCollection, IVisualUnorderedCollection_Vtbl, 0x338faa70_54c8_40a7_8029_c9ceeb0aa250); #[repr(C)] #[doc(hidden)] pub struct IVisualUnorderedCollection_Vtbl { @@ -4134,6 +2485,8 @@ pub struct IVisualUnorderedCollection_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AmbientLight(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AmbientLight, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(AmbientLight, IAnimationObject, super::super::Foundation::IClosable, CompositionLight, CompositionObject); impl AmbientLight { pub fn Color(&self) -> ::windows_core::Result { let this = self; @@ -4147,54 +2500,54 @@ impl AmbientLight { unsafe { (::windows_core::Interface::vtable(this).SetColor)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Intensity(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Intensity)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIntensity(&self, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIntensity)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Targets(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Targets)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ExclusionsFromTargets(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ExclusionsFromTargets)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsEnabled(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsEnabled)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsEnabled(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsEnabled)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4203,14 +2556,14 @@ impl AmbientLight { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4218,28 +2571,28 @@ impl AmbientLight { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4249,34 +2602,34 @@ impl AmbientLight { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -4284,11 +2637,11 @@ impl AmbientLight { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } } impl ::windows_core::RuntimeType for AmbientLight { @@ -4296,23 +2649,18 @@ impl ::windows_core::RuntimeType for AmbientLight { } unsafe impl ::windows_core::Interface for AmbientLight { type Vtable = IAmbientLight_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AmbientLight { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AmbientLight { const NAME: &'static str = "Windows.UI.Composition.AmbientLight"; } -::windows_core::imp::interface_hierarchy!(AmbientLight, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for AmbientLight {} -impl ::windows_core::CanTryInto for AmbientLight {} -impl ::windows_core::CanTryInto for AmbientLight {} -impl ::windows_core::CanTryInto for AmbientLight {} unsafe impl ::core::marker::Send for AmbientLight {} unsafe impl ::core::marker::Sync for AmbientLight {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AnimationController(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AnimationController, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(AnimationController, IAnimationObject, super::super::Foundation::IClosable, CompositionObject); impl AnimationController { pub fn PlaybackRate(&self) -> ::windows_core::Result { let this = self; @@ -4371,15 +2719,15 @@ impl AnimationController { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4388,14 +2736,14 @@ impl AnimationController { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4403,28 +2751,28 @@ impl AnimationController { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4434,34 +2782,34 @@ impl AnimationController { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -4469,11 +2817,11 @@ impl AnimationController { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } #[doc(hidden)] pub fn IAnimationControllerStatics ::windows_core::Result>(callback: F) -> ::windows_core::Result { @@ -4486,28 +2834,24 @@ impl ::windows_core::RuntimeType for AnimationController { } unsafe impl ::windows_core::Interface for AnimationController { type Vtable = IAnimationController_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AnimationController { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AnimationController { const NAME: &'static str = "Windows.UI.Composition.AnimationController"; } -::windows_core::imp::interface_hierarchy!(AnimationController, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for AnimationController {} -impl ::windows_core::CanTryInto for AnimationController {} -impl ::windows_core::CanTryInto for AnimationController {} unsafe impl ::core::marker::Send for AnimationController {} unsafe impl ::core::marker::Sync for AnimationController {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AnimationPropertyInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AnimationPropertyInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(AnimationPropertyInfo, IAnimationObject, super::super::Foundation::IClosable, CompositionObject); impl AnimationPropertyInfo { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn AccessMode(&self) -> ::windows_core::Result { @@ -4522,25 +2866,25 @@ impl AnimationPropertyInfo { unsafe { (::windows_core::Interface::vtable(this).SetAccessMode)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn GetResolvedCompositionObject(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetResolvedCompositionObject)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetResolvedCompositionObjectProperty(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetResolvedCompositionObjectProperty)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4549,14 +2893,14 @@ impl AnimationPropertyInfo { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4564,28 +2908,28 @@ impl AnimationPropertyInfo { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4595,34 +2939,34 @@ impl AnimationPropertyInfo { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -4630,11 +2974,11 @@ impl AnimationPropertyInfo { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } } impl ::windows_core::RuntimeType for AnimationPropertyInfo { @@ -4642,28 +2986,24 @@ impl ::windows_core::RuntimeType for AnimationPropertyInfo { } unsafe impl ::windows_core::Interface for AnimationPropertyInfo { type Vtable = IAnimationPropertyInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AnimationPropertyInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AnimationPropertyInfo { const NAME: &'static str = "Windows.UI.Composition.AnimationPropertyInfo"; } -::windows_core::imp::interface_hierarchy!(AnimationPropertyInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for AnimationPropertyInfo {} -impl ::windows_core::CanTryInto for AnimationPropertyInfo {} -impl ::windows_core::CanTryInto for AnimationPropertyInfo {} unsafe impl ::core::marker::Send for AnimationPropertyInfo {} unsafe impl ::core::marker::Sync for AnimationPropertyInfo {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BackEasingFunction(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BackEasingFunction, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(BackEasingFunction, IAnimationObject, super::super::Foundation::IClosable, CompositionEasingFunction, CompositionObject); impl BackEasingFunction { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Mode(&self) -> ::windows_core::Result { @@ -4681,11 +3021,11 @@ impl BackEasingFunction { } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4694,14 +3034,14 @@ impl BackEasingFunction { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4709,28 +3049,28 @@ impl BackEasingFunction { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4740,34 +3080,34 @@ impl BackEasingFunction { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -4775,11 +3115,11 @@ impl BackEasingFunction { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } } impl ::windows_core::RuntimeType for BackEasingFunction { @@ -4787,29 +3127,24 @@ impl ::windows_core::RuntimeType for BackEasingFunction { } unsafe impl ::windows_core::Interface for BackEasingFunction { type Vtable = IBackEasingFunction_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BackEasingFunction { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BackEasingFunction { const NAME: &'static str = "Windows.UI.Composition.BackEasingFunction"; } -::windows_core::imp::interface_hierarchy!(BackEasingFunction, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for BackEasingFunction {} -impl ::windows_core::CanTryInto for BackEasingFunction {} -impl ::windows_core::CanTryInto for BackEasingFunction {} -impl ::windows_core::CanTryInto for BackEasingFunction {} unsafe impl ::core::marker::Send for BackEasingFunction {} unsafe impl ::core::marker::Sync for BackEasingFunction {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BooleanKeyFrameAnimation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BooleanKeyFrameAnimation, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(BooleanKeyFrameAnimation, IAnimationObject, super::super::Foundation::IClosable, ICompositionAnimationBase, KeyFrameAnimation, CompositionAnimation, CompositionObject); impl BooleanKeyFrameAnimation { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn InsertKeyFrame(&self, normalizedprogresskey: f32, value: bool) -> ::windows_core::Result<()> { @@ -4817,87 +3152,87 @@ impl BooleanKeyFrameAnimation { unsafe { (::windows_core::Interface::vtable(this).InsertKeyFrame)(::windows_core::Interface::as_raw(this), normalizedprogresskey, value).ok() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn ClearAllParameters(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ClearAllParameters)(::windows_core::Interface::as_raw(this)).ok() } } pub fn ClearParameter(&self, key: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ClearParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key)).ok() } } pub fn SetColorParameter(&self, key: &::windows_core::HSTRING, value: super::Color) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetColorParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetMatrix3x2Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix3x2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMatrix3x2Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetMatrix4x4Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix4x4) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMatrix4x4Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetQuaternionParameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Quaternion) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetQuaternionParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } pub fn SetReferenceParameter(&self, key: &::windows_core::HSTRING, compositionobject: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetReferenceParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), compositionobject.try_into_param()?.abi()).ok() } + 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() } } pub fn SetScalarParameter(&self, key: &::windows_core::HSTRING, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetScalarParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetVector2Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetVector2Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetVector3Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector3) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetVector3Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetVector4Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector4) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetVector4Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } pub fn SetBooleanParameter(&self, key: &::windows_core::HSTRING, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetBooleanParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } pub fn Target(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Target)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetTarget(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetTarget)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn InitialValueExpressions(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).InitialValueExpressions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4905,13 +3240,13 @@ impl BooleanKeyFrameAnimation { } pub fn SetExpressionReferenceParameter(&self, parametername: &::windows_core::HSTRING, source: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetExpressionReferenceParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(parametername), source.try_into_param()?.abi()).ok() } + 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() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4920,14 +3255,14 @@ impl BooleanKeyFrameAnimation { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4935,28 +3270,28 @@ impl BooleanKeyFrameAnimation { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4966,34 +3301,34 @@ impl BooleanKeyFrameAnimation { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -5001,105 +3336,105 @@ impl BooleanKeyFrameAnimation { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } pub fn DelayTime(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DelayTime)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDelayTime(&self, value: super::super::Foundation::TimeSpan) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDelayTime)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Duration(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Duration)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDuration(&self, value: super::super::Foundation::TimeSpan) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDuration)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IterationBehavior(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IterationBehavior)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIterationBehavior(&self, value: AnimationIterationBehavior) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIterationBehavior)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IterationCount(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IterationCount)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIterationCount(&self, value: i32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIterationCount)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn KeyFrameCount(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).KeyFrameCount)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn StopBehavior(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).StopBehavior)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetStopBehavior(&self, value: AnimationStopBehavior) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetStopBehavior)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn InsertExpressionKeyFrame(&self, normalizedprogresskey: f32, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).InsertExpressionKeyFrame)(::windows_core::Interface::as_raw(this), normalizedprogresskey, ::core::mem::transmute_copy(value)).ok() } } pub fn InsertExpressionKeyFrameWithEasingFunction(&self, normalizedprogresskey: f32, value: &::windows_core::HSTRING, easingfunction: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).InsertExpressionKeyFrameWithEasingFunction)(::windows_core::Interface::as_raw(this), normalizedprogresskey, ::core::mem::transmute_copy(value), easingfunction.try_into_param()?.abi()).ok() } + 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() } } pub fn Direction(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Direction)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDirection(&self, value: AnimationDirection) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDirection)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn DelayBehavior(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DelayBehavior)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDelayBehavior(&self, value: AnimationDelayBehavior) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDelayBehavior)(::windows_core::Interface::as_raw(this), value).ok() } } } @@ -5108,31 +3443,24 @@ impl ::windows_core::RuntimeType for BooleanKeyFrameAnimation { } unsafe impl ::windows_core::Interface for BooleanKeyFrameAnimation { type Vtable = IBooleanKeyFrameAnimation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BooleanKeyFrameAnimation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BooleanKeyFrameAnimation { const NAME: &'static str = "Windows.UI.Composition.BooleanKeyFrameAnimation"; } -::windows_core::imp::interface_hierarchy!(BooleanKeyFrameAnimation, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for BooleanKeyFrameAnimation {} -impl ::windows_core::CanTryInto for BooleanKeyFrameAnimation {} -impl ::windows_core::CanTryInto for BooleanKeyFrameAnimation {} -impl ::windows_core::CanTryInto for BooleanKeyFrameAnimation {} -impl ::windows_core::CanTryInto for BooleanKeyFrameAnimation {} -impl ::windows_core::CanTryInto for BooleanKeyFrameAnimation {} unsafe impl ::core::marker::Send for BooleanKeyFrameAnimation {} unsafe impl ::core::marker::Sync for BooleanKeyFrameAnimation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BounceEasingFunction(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BounceEasingFunction, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(BounceEasingFunction, IAnimationObject, super::super::Foundation::IClosable, CompositionEasingFunction, CompositionObject); impl BounceEasingFunction { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Mode(&self) -> ::windows_core::Result { @@ -5157,11 +3485,11 @@ impl BounceEasingFunction { } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5170,14 +3498,14 @@ impl BounceEasingFunction { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5185,28 +3513,28 @@ impl BounceEasingFunction { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5216,34 +3544,34 @@ impl BounceEasingFunction { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -5251,11 +3579,11 @@ impl BounceEasingFunction { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } } impl ::windows_core::RuntimeType for BounceEasingFunction { @@ -5263,29 +3591,24 @@ impl ::windows_core::RuntimeType for BounceEasingFunction { } unsafe impl ::windows_core::Interface for BounceEasingFunction { type Vtable = IBounceEasingFunction_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BounceEasingFunction { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BounceEasingFunction { const NAME: &'static str = "Windows.UI.Composition.BounceEasingFunction"; } -::windows_core::imp::interface_hierarchy!(BounceEasingFunction, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for BounceEasingFunction {} -impl ::windows_core::CanTryInto for BounceEasingFunction {} -impl ::windows_core::CanTryInto for BounceEasingFunction {} -impl ::windows_core::CanTryInto for BounceEasingFunction {} unsafe impl ::core::marker::Send for BounceEasingFunction {} unsafe impl ::core::marker::Sync for BounceEasingFunction {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BounceScalarNaturalMotionAnimation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BounceScalarNaturalMotionAnimation, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(BounceScalarNaturalMotionAnimation, IAnimationObject, super::super::Foundation::IClosable, ICompositionAnimationBase, ScalarNaturalMotionAnimation, NaturalMotionAnimation, CompositionAnimation, CompositionObject); impl BounceScalarNaturalMotionAnimation { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Acceleration(&self) -> ::windows_core::Result { @@ -5311,87 +3634,87 @@ impl BounceScalarNaturalMotionAnimation { unsafe { (::windows_core::Interface::vtable(this).SetRestitution)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn ClearAllParameters(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ClearAllParameters)(::windows_core::Interface::as_raw(this)).ok() } } pub fn ClearParameter(&self, key: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ClearParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key)).ok() } } pub fn SetColorParameter(&self, key: &::windows_core::HSTRING, value: super::Color) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetColorParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetMatrix3x2Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix3x2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMatrix3x2Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetMatrix4x4Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix4x4) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMatrix4x4Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetQuaternionParameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Quaternion) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetQuaternionParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } pub fn SetReferenceParameter(&self, key: &::windows_core::HSTRING, compositionobject: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetReferenceParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), compositionobject.try_into_param()?.abi()).ok() } + 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() } } pub fn SetScalarParameter(&self, key: &::windows_core::HSTRING, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetScalarParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetVector2Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetVector2Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetVector3Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector3) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetVector3Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetVector4Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector4) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetVector4Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } pub fn SetBooleanParameter(&self, key: &::windows_core::HSTRING, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetBooleanParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } pub fn Target(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Target)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetTarget(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetTarget)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn InitialValueExpressions(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).InitialValueExpressions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5399,13 +3722,13 @@ impl BounceScalarNaturalMotionAnimation { } pub fn SetExpressionReferenceParameter(&self, parametername: &::windows_core::HSTRING, source: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetExpressionReferenceParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(parametername), source.try_into_param()?.abi()).ok() } + 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() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5414,14 +3737,14 @@ impl BounceScalarNaturalMotionAnimation { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5429,28 +3752,28 @@ impl BounceScalarNaturalMotionAnimation { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5460,34 +3783,34 @@ impl BounceScalarNaturalMotionAnimation { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -5495,47 +3818,47 @@ impl BounceScalarNaturalMotionAnimation { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } pub fn DelayBehavior(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DelayBehavior)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDelayBehavior(&self, value: AnimationDelayBehavior) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDelayBehavior)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn DelayTime(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DelayTime)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDelayTime(&self, value: super::super::Foundation::TimeSpan) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDelayTime)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn StopBehavior(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).StopBehavior)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetStopBehavior(&self, value: AnimationStopBehavior) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetStopBehavior)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn FinalValue(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FinalValue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5543,13 +3866,13 @@ impl BounceScalarNaturalMotionAnimation { } pub fn SetFinalValue(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetFinalValue)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn InitialValue(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).InitialValue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5557,20 +3880,20 @@ impl BounceScalarNaturalMotionAnimation { } pub fn SetInitialValue(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetInitialValue)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn InitialVelocity(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).InitialVelocity)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetInitialVelocity(&self, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetInitialVelocity)(::windows_core::Interface::as_raw(this), value).ok() } } } @@ -5579,32 +3902,24 @@ impl ::windows_core::RuntimeType for BounceScalarNaturalMotionAnimation { } unsafe impl ::windows_core::Interface for BounceScalarNaturalMotionAnimation { type Vtable = IBounceScalarNaturalMotionAnimation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BounceScalarNaturalMotionAnimation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BounceScalarNaturalMotionAnimation { const NAME: &'static str = "Windows.UI.Composition.BounceScalarNaturalMotionAnimation"; } -::windows_core::imp::interface_hierarchy!(BounceScalarNaturalMotionAnimation, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for BounceScalarNaturalMotionAnimation {} -impl ::windows_core::CanTryInto for BounceScalarNaturalMotionAnimation {} -impl ::windows_core::CanTryInto for BounceScalarNaturalMotionAnimation {} -impl ::windows_core::CanTryInto for BounceScalarNaturalMotionAnimation {} -impl ::windows_core::CanTryInto for BounceScalarNaturalMotionAnimation {} -impl ::windows_core::CanTryInto for BounceScalarNaturalMotionAnimation {} -impl ::windows_core::CanTryInto for BounceScalarNaturalMotionAnimation {} unsafe impl ::core::marker::Send for BounceScalarNaturalMotionAnimation {} unsafe impl ::core::marker::Sync for BounceScalarNaturalMotionAnimation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BounceVector2NaturalMotionAnimation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BounceVector2NaturalMotionAnimation, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(BounceVector2NaturalMotionAnimation, IAnimationObject, super::super::Foundation::IClosable, ICompositionAnimationBase, Vector2NaturalMotionAnimation, NaturalMotionAnimation, CompositionAnimation, CompositionObject); impl BounceVector2NaturalMotionAnimation { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Acceleration(&self) -> ::windows_core::Result { @@ -5630,87 +3945,87 @@ impl BounceVector2NaturalMotionAnimation { unsafe { (::windows_core::Interface::vtable(this).SetRestitution)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn ClearAllParameters(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ClearAllParameters)(::windows_core::Interface::as_raw(this)).ok() } } pub fn ClearParameter(&self, key: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ClearParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key)).ok() } } pub fn SetColorParameter(&self, key: &::windows_core::HSTRING, value: super::Color) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetColorParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetMatrix3x2Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix3x2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMatrix3x2Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetMatrix4x4Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix4x4) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMatrix4x4Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetQuaternionParameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Quaternion) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetQuaternionParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } pub fn SetReferenceParameter(&self, key: &::windows_core::HSTRING, compositionobject: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetReferenceParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), compositionobject.try_into_param()?.abi()).ok() } + 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() } } pub fn SetScalarParameter(&self, key: &::windows_core::HSTRING, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetScalarParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetVector2Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetVector2Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetVector3Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector3) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetVector3Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetVector4Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector4) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetVector4Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } pub fn SetBooleanParameter(&self, key: &::windows_core::HSTRING, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetBooleanParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } pub fn Target(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Target)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetTarget(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetTarget)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn InitialValueExpressions(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).InitialValueExpressions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5718,13 +4033,13 @@ impl BounceVector2NaturalMotionAnimation { } pub fn SetExpressionReferenceParameter(&self, parametername: &::windows_core::HSTRING, source: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetExpressionReferenceParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(parametername), source.try_into_param()?.abi()).ok() } + 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() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5733,14 +4048,14 @@ impl BounceVector2NaturalMotionAnimation { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5748,28 +4063,28 @@ impl BounceVector2NaturalMotionAnimation { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5779,34 +4094,34 @@ impl BounceVector2NaturalMotionAnimation { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -5814,49 +4129,49 @@ impl BounceVector2NaturalMotionAnimation { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } pub fn DelayBehavior(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DelayBehavior)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDelayBehavior(&self, value: AnimationDelayBehavior) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDelayBehavior)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn DelayTime(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DelayTime)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDelayTime(&self, value: super::super::Foundation::TimeSpan) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDelayTime)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn StopBehavior(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).StopBehavior)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetStopBehavior(&self, value: AnimationStopBehavior) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetStopBehavior)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn FinalValue(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FinalValue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5866,15 +4181,15 @@ impl BounceVector2NaturalMotionAnimation { #[cfg(feature = "Foundation_Numerics")] pub fn SetFinalValue(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetFinalValue)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn InitialValue(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).InitialValue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5884,15 +4199,15 @@ impl BounceVector2NaturalMotionAnimation { #[cfg(feature = "Foundation_Numerics")] pub fn SetInitialValue(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetInitialValue)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn InitialVelocity(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).InitialVelocity)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5901,7 +4216,7 @@ impl BounceVector2NaturalMotionAnimation { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetInitialVelocity(&self, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetInitialVelocity)(::windows_core::Interface::as_raw(this), value).ok() } } } @@ -5910,32 +4225,24 @@ impl ::windows_core::RuntimeType for BounceVector2NaturalMotionAnimation { } unsafe impl ::windows_core::Interface for BounceVector2NaturalMotionAnimation { type Vtable = IBounceVector2NaturalMotionAnimation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BounceVector2NaturalMotionAnimation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BounceVector2NaturalMotionAnimation { const NAME: &'static str = "Windows.UI.Composition.BounceVector2NaturalMotionAnimation"; } -::windows_core::imp::interface_hierarchy!(BounceVector2NaturalMotionAnimation, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for BounceVector2NaturalMotionAnimation {} -impl ::windows_core::CanTryInto for BounceVector2NaturalMotionAnimation {} -impl ::windows_core::CanTryInto for BounceVector2NaturalMotionAnimation {} -impl ::windows_core::CanTryInto for BounceVector2NaturalMotionAnimation {} -impl ::windows_core::CanTryInto for BounceVector2NaturalMotionAnimation {} -impl ::windows_core::CanTryInto for BounceVector2NaturalMotionAnimation {} -impl ::windows_core::CanTryInto for BounceVector2NaturalMotionAnimation {} unsafe impl ::core::marker::Send for BounceVector2NaturalMotionAnimation {} unsafe impl ::core::marker::Sync for BounceVector2NaturalMotionAnimation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BounceVector3NaturalMotionAnimation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BounceVector3NaturalMotionAnimation, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(BounceVector3NaturalMotionAnimation, IAnimationObject, super::super::Foundation::IClosable, ICompositionAnimationBase, Vector3NaturalMotionAnimation, NaturalMotionAnimation, CompositionAnimation, CompositionObject); impl BounceVector3NaturalMotionAnimation { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Acceleration(&self) -> ::windows_core::Result { @@ -5961,87 +4268,87 @@ impl BounceVector3NaturalMotionAnimation { unsafe { (::windows_core::Interface::vtable(this).SetRestitution)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn ClearAllParameters(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ClearAllParameters)(::windows_core::Interface::as_raw(this)).ok() } } pub fn ClearParameter(&self, key: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ClearParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key)).ok() } } pub fn SetColorParameter(&self, key: &::windows_core::HSTRING, value: super::Color) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetColorParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetMatrix3x2Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix3x2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMatrix3x2Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetMatrix4x4Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix4x4) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMatrix4x4Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetQuaternionParameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Quaternion) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetQuaternionParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } pub fn SetReferenceParameter(&self, key: &::windows_core::HSTRING, compositionobject: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetReferenceParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), compositionobject.try_into_param()?.abi()).ok() } + 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() } } pub fn SetScalarParameter(&self, key: &::windows_core::HSTRING, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetScalarParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetVector2Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetVector2Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetVector3Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector3) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetVector3Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetVector4Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector4) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetVector4Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } pub fn SetBooleanParameter(&self, key: &::windows_core::HSTRING, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetBooleanParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } pub fn Target(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Target)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetTarget(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetTarget)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn InitialValueExpressions(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).InitialValueExpressions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6049,13 +4356,13 @@ impl BounceVector3NaturalMotionAnimation { } pub fn SetExpressionReferenceParameter(&self, parametername: &::windows_core::HSTRING, source: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetExpressionReferenceParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(parametername), source.try_into_param()?.abi()).ok() } + 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() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6064,14 +4371,14 @@ impl BounceVector3NaturalMotionAnimation { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6079,28 +4386,28 @@ impl BounceVector3NaturalMotionAnimation { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6110,34 +4417,34 @@ impl BounceVector3NaturalMotionAnimation { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -6145,49 +4452,49 @@ impl BounceVector3NaturalMotionAnimation { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } pub fn DelayBehavior(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DelayBehavior)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDelayBehavior(&self, value: AnimationDelayBehavior) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDelayBehavior)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn DelayTime(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DelayTime)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDelayTime(&self, value: super::super::Foundation::TimeSpan) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDelayTime)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn StopBehavior(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).StopBehavior)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetStopBehavior(&self, value: AnimationStopBehavior) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetStopBehavior)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn FinalValue(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FinalValue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6197,15 +4504,15 @@ impl BounceVector3NaturalMotionAnimation { #[cfg(feature = "Foundation_Numerics")] pub fn SetFinalValue(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetFinalValue)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn InitialValue(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).InitialValue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6215,15 +4522,15 @@ impl BounceVector3NaturalMotionAnimation { #[cfg(feature = "Foundation_Numerics")] pub fn SetInitialValue(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetInitialValue)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn InitialVelocity(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).InitialVelocity)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6232,7 +4539,7 @@ impl BounceVector3NaturalMotionAnimation { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetInitialVelocity(&self, value: super::super::Foundation::Numerics::Vector3) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetInitialVelocity)(::windows_core::Interface::as_raw(this), value).ok() } } } @@ -6241,32 +4548,24 @@ impl ::windows_core::RuntimeType for BounceVector3NaturalMotionAnimation { } unsafe impl ::windows_core::Interface for BounceVector3NaturalMotionAnimation { type Vtable = IBounceVector3NaturalMotionAnimation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BounceVector3NaturalMotionAnimation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BounceVector3NaturalMotionAnimation { const NAME: &'static str = "Windows.UI.Composition.BounceVector3NaturalMotionAnimation"; } -::windows_core::imp::interface_hierarchy!(BounceVector3NaturalMotionAnimation, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for BounceVector3NaturalMotionAnimation {} -impl ::windows_core::CanTryInto for BounceVector3NaturalMotionAnimation {} -impl ::windows_core::CanTryInto for BounceVector3NaturalMotionAnimation {} -impl ::windows_core::CanTryInto for BounceVector3NaturalMotionAnimation {} -impl ::windows_core::CanTryInto for BounceVector3NaturalMotionAnimation {} -impl ::windows_core::CanTryInto for BounceVector3NaturalMotionAnimation {} -impl ::windows_core::CanTryInto for BounceVector3NaturalMotionAnimation {} unsafe impl ::core::marker::Send for BounceVector3NaturalMotionAnimation {} unsafe impl ::core::marker::Sync for BounceVector3NaturalMotionAnimation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CircleEasingFunction(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CircleEasingFunction, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(CircleEasingFunction, IAnimationObject, super::super::Foundation::IClosable, CompositionEasingFunction, CompositionObject); impl CircleEasingFunction { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Mode(&self) -> ::windows_core::Result { @@ -6277,11 +4576,11 @@ impl CircleEasingFunction { } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6290,14 +4589,14 @@ impl CircleEasingFunction { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6305,28 +4604,28 @@ impl CircleEasingFunction { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6336,34 +4635,34 @@ impl CircleEasingFunction { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -6371,11 +4670,11 @@ impl CircleEasingFunction { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } } impl ::windows_core::RuntimeType for CircleEasingFunction { @@ -6383,33 +4682,28 @@ impl ::windows_core::RuntimeType for CircleEasingFunction { } unsafe impl ::windows_core::Interface for CircleEasingFunction { type Vtable = ICircleEasingFunction_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CircleEasingFunction { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CircleEasingFunction { const NAME: &'static str = "Windows.UI.Composition.CircleEasingFunction"; } -::windows_core::imp::interface_hierarchy!(CircleEasingFunction, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CircleEasingFunction {} -impl ::windows_core::CanTryInto for CircleEasingFunction {} -impl ::windows_core::CanTryInto for CircleEasingFunction {} -impl ::windows_core::CanTryInto for CircleEasingFunction {} unsafe impl ::core::marker::Send for CircleEasingFunction {} unsafe impl ::core::marker::Sync for CircleEasingFunction {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ColorKeyFrameAnimation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ColorKeyFrameAnimation, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ColorKeyFrameAnimation, IAnimationObject, super::super::Foundation::IClosable, ICompositionAnimationBase, KeyFrameAnimation, CompositionAnimation, CompositionObject); impl ColorKeyFrameAnimation { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn InterpolationColorSpace(&self) -> ::windows_core::Result { @@ -6429,89 +4723,89 @@ impl ColorKeyFrameAnimation { } pub fn InsertKeyFrameWithEasingFunction(&self, normalizedprogresskey: f32, value: super::Color, easingfunction: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).InsertKeyFrameWithEasingFunction)(::windows_core::Interface::as_raw(this), normalizedprogresskey, value, easingfunction.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).InsertKeyFrameWithEasingFunction)(::windows_core::Interface::as_raw(this), normalizedprogresskey, value, easingfunction.into_param().abi()).ok() } } pub fn ClearAllParameters(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ClearAllParameters)(::windows_core::Interface::as_raw(this)).ok() } } pub fn ClearParameter(&self, key: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ClearParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key)).ok() } } pub fn SetColorParameter(&self, key: &::windows_core::HSTRING, value: super::Color) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetColorParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetMatrix3x2Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix3x2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMatrix3x2Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetMatrix4x4Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix4x4) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMatrix4x4Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetQuaternionParameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Quaternion) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetQuaternionParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } pub fn SetReferenceParameter(&self, key: &::windows_core::HSTRING, compositionobject: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetReferenceParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), compositionobject.try_into_param()?.abi()).ok() } + 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() } } pub fn SetScalarParameter(&self, key: &::windows_core::HSTRING, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetScalarParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetVector2Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetVector2Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetVector3Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector3) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetVector3Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetVector4Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector4) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetVector4Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } pub fn SetBooleanParameter(&self, key: &::windows_core::HSTRING, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetBooleanParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } pub fn Target(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Target)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetTarget(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetTarget)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn InitialValueExpressions(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).InitialValueExpressions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6519,13 +4813,13 @@ impl ColorKeyFrameAnimation { } pub fn SetExpressionReferenceParameter(&self, parametername: &::windows_core::HSTRING, source: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetExpressionReferenceParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(parametername), source.try_into_param()?.abi()).ok() } + 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() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6534,14 +4828,14 @@ impl ColorKeyFrameAnimation { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6549,28 +4843,28 @@ impl ColorKeyFrameAnimation { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6580,34 +4874,34 @@ impl ColorKeyFrameAnimation { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -6615,105 +4909,105 @@ impl ColorKeyFrameAnimation { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } pub fn DelayTime(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DelayTime)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDelayTime(&self, value: super::super::Foundation::TimeSpan) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDelayTime)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Duration(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Duration)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDuration(&self, value: super::super::Foundation::TimeSpan) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDuration)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IterationBehavior(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IterationBehavior)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIterationBehavior(&self, value: AnimationIterationBehavior) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIterationBehavior)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IterationCount(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IterationCount)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIterationCount(&self, value: i32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIterationCount)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn KeyFrameCount(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).KeyFrameCount)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn StopBehavior(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).StopBehavior)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetStopBehavior(&self, value: AnimationStopBehavior) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetStopBehavior)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn InsertExpressionKeyFrame(&self, normalizedprogresskey: f32, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).InsertExpressionKeyFrame)(::windows_core::Interface::as_raw(this), normalizedprogresskey, ::core::mem::transmute_copy(value)).ok() } } pub fn InsertExpressionKeyFrameWithEasingFunction(&self, normalizedprogresskey: f32, value: &::windows_core::HSTRING, easingfunction: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).InsertExpressionKeyFrameWithEasingFunction)(::windows_core::Interface::as_raw(this), normalizedprogresskey, ::core::mem::transmute_copy(value), easingfunction.try_into_param()?.abi()).ok() } + 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() } } pub fn Direction(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Direction)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDirection(&self, value: AnimationDirection) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDirection)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn DelayBehavior(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DelayBehavior)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDelayBehavior(&self, value: AnimationDelayBehavior) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDelayBehavior)(::windows_core::Interface::as_raw(this), value).ok() } } } @@ -6722,35 +5016,28 @@ impl ::windows_core::RuntimeType for ColorKeyFrameAnimation { } unsafe impl ::windows_core::Interface for ColorKeyFrameAnimation { type Vtable = IColorKeyFrameAnimation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ColorKeyFrameAnimation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ColorKeyFrameAnimation { const NAME: &'static str = "Windows.UI.Composition.ColorKeyFrameAnimation"; } -::windows_core::imp::interface_hierarchy!(ColorKeyFrameAnimation, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ColorKeyFrameAnimation {} -impl ::windows_core::CanTryInto for ColorKeyFrameAnimation {} -impl ::windows_core::CanTryInto for ColorKeyFrameAnimation {} -impl ::windows_core::CanTryInto for ColorKeyFrameAnimation {} -impl ::windows_core::CanTryInto for ColorKeyFrameAnimation {} -impl ::windows_core::CanTryInto for ColorKeyFrameAnimation {} unsafe impl ::core::marker::Send for ColorKeyFrameAnimation {} unsafe impl ::core::marker::Sync for ColorKeyFrameAnimation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CompositionAnimation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CompositionAnimation, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(CompositionAnimation, IAnimationObject, super::super::Foundation::IClosable, ICompositionAnimationBase, CompositionObject); impl CompositionAnimation { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn ClearAllParameters(&self) -> ::windows_core::Result<()> { @@ -6785,10 +5072,10 @@ impl CompositionAnimation { } pub fn SetReferenceParameter(&self, key: &::windows_core::HSTRING, compositionobject: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetReferenceParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), compositionobject.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetReferenceParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), compositionobject.into_param().abi()).ok() } } pub fn SetScalarParameter(&self, key: &::windows_core::HSTRING, value: f32) -> ::windows_core::Result<()> { let this = self; @@ -6813,24 +5100,24 @@ impl CompositionAnimation { unsafe { (::windows_core::Interface::vtable(this).SetVector4Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } pub fn SetBooleanParameter(&self, key: &::windows_core::HSTRING, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetBooleanParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } pub fn Target(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Target)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetTarget(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetTarget)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn InitialValueExpressions(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).InitialValueExpressions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6838,13 +5125,13 @@ impl CompositionAnimation { } pub fn SetExpressionReferenceParameter(&self, parametername: &::windows_core::HSTRING, source: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetExpressionReferenceParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(parametername), source.try_into_param()?.abi()).ok() } + 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() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6853,14 +5140,14 @@ impl CompositionAnimation { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6868,28 +5155,28 @@ impl CompositionAnimation { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6899,34 +5186,34 @@ impl CompositionAnimation { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -6934,11 +5221,11 @@ impl CompositionAnimation { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } } impl ::windows_core::RuntimeType for CompositionAnimation { @@ -6946,33 +5233,29 @@ impl ::windows_core::RuntimeType for CompositionAnimation { } unsafe impl ::windows_core::Interface for CompositionAnimation { type Vtable = ICompositionAnimation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CompositionAnimation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CompositionAnimation { const NAME: &'static str = "Windows.UI.Composition.CompositionAnimation"; } -::windows_core::imp::interface_hierarchy!(CompositionAnimation, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CompositionAnimation {} -impl ::windows_core::CanTryInto for CompositionAnimation {} -impl ::windows_core::CanTryInto for CompositionAnimation {} -impl ::windows_core::CanTryInto for CompositionAnimation {} unsafe impl ::core::marker::Send for CompositionAnimation {} unsafe impl ::core::marker::Sync for CompositionAnimation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CompositionAnimationGroup(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CompositionAnimationGroup, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(CompositionAnimationGroup, IAnimationObject, super::super::Foundation::IClosable, ICompositionAnimationBase, super::super::Foundation::Collections::IIterable::, CompositionObject); impl CompositionAnimationGroup { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Count(&self) -> ::windows_core::Result { @@ -6984,24 +5267,24 @@ impl CompositionAnimationGroup { } pub fn Add(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).Add)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).Add)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn Remove(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).Remove)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).Remove)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn RemoveAll(&self) -> ::windows_core::Result<()> { let this = self; unsafe { (::windows_core::Interface::vtable(this).RemoveAll)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -7010,14 +5293,14 @@ impl CompositionAnimationGroup { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -7025,28 +5308,28 @@ impl CompositionAnimationGroup { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -7056,34 +5339,34 @@ impl CompositionAnimationGroup { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -7091,16 +5374,16 @@ impl CompositionAnimationGroup { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -7112,9 +5395,7 @@ impl ::windows_core::RuntimeType for CompositionAnimationGroup { } unsafe impl ::windows_core::Interface for CompositionAnimationGroup { type Vtable = ICompositionAnimationGroup_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CompositionAnimationGroup { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CompositionAnimationGroup { const NAME: &'static str = "Windows.UI.Composition.CompositionAnimationGroup"; @@ -7135,32 +5416,27 @@ impl ::core::iter::IntoIterator for &CompositionAnimationGroup { self.First().unwrap() } } -::windows_core::imp::interface_hierarchy!(CompositionAnimationGroup, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CompositionAnimationGroup {} -impl ::windows_core::CanTryInto for CompositionAnimationGroup {} -impl ::windows_core::CanTryInto for CompositionAnimationGroup {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for CompositionAnimationGroup {} -impl ::windows_core::CanTryInto for CompositionAnimationGroup {} unsafe impl ::core::marker::Send for CompositionAnimationGroup {} unsafe impl ::core::marker::Sync for CompositionAnimationGroup {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CompositionBackdropBrush(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CompositionBackdropBrush, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(CompositionBackdropBrush, IAnimationObject, super::super::Foundation::IClosable, CompositionBrush, CompositionObject); impl CompositionBackdropBrush { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -7169,14 +5445,14 @@ impl CompositionBackdropBrush { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -7184,28 +5460,28 @@ impl CompositionBackdropBrush { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -7215,34 +5491,34 @@ impl CompositionBackdropBrush { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -7250,11 +5526,11 @@ impl CompositionBackdropBrush { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } } impl ::windows_core::RuntimeType for CompositionBackdropBrush { @@ -7262,37 +5538,32 @@ impl ::windows_core::RuntimeType for CompositionBackdropBrush { } unsafe impl ::windows_core::Interface for CompositionBackdropBrush { type Vtable = ICompositionBackdropBrush_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CompositionBackdropBrush { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CompositionBackdropBrush { const NAME: &'static str = "Windows.UI.Composition.CompositionBackdropBrush"; } -::windows_core::imp::interface_hierarchy!(CompositionBackdropBrush, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CompositionBackdropBrush {} -impl ::windows_core::CanTryInto for CompositionBackdropBrush {} -impl ::windows_core::CanTryInto for CompositionBackdropBrush {} -impl ::windows_core::CanTryInto for CompositionBackdropBrush {} unsafe impl ::core::marker::Send for CompositionBackdropBrush {} unsafe impl ::core::marker::Sync for CompositionBackdropBrush {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CompositionBatchCompletedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CompositionBatchCompletedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(CompositionBatchCompletedEventArgs, IAnimationObject, super::super::Foundation::IClosable, CompositionObject); impl CompositionBatchCompletedEventArgs { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -7301,14 +5572,14 @@ impl CompositionBatchCompletedEventArgs { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -7316,28 +5587,28 @@ impl CompositionBatchCompletedEventArgs { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -7347,34 +5618,34 @@ impl CompositionBatchCompletedEventArgs { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -7382,11 +5653,11 @@ impl CompositionBatchCompletedEventArgs { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } } impl ::windows_core::RuntimeType for CompositionBatchCompletedEventArgs { @@ -7394,36 +5665,32 @@ impl ::windows_core::RuntimeType for CompositionBatchCompletedEventArgs { } unsafe impl ::windows_core::Interface for CompositionBatchCompletedEventArgs { type Vtable = ICompositionBatchCompletedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CompositionBatchCompletedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CompositionBatchCompletedEventArgs { const NAME: &'static str = "Windows.UI.Composition.CompositionBatchCompletedEventArgs"; } -::windows_core::imp::interface_hierarchy!(CompositionBatchCompletedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CompositionBatchCompletedEventArgs {} -impl ::windows_core::CanTryInto for CompositionBatchCompletedEventArgs {} -impl ::windows_core::CanTryInto for CompositionBatchCompletedEventArgs {} unsafe impl ::core::marker::Send for CompositionBatchCompletedEventArgs {} unsafe impl ::core::marker::Sync for CompositionBatchCompletedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CompositionBrush(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CompositionBrush, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(CompositionBrush, IAnimationObject, super::super::Foundation::IClosable, CompositionObject); impl CompositionBrush { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -7432,14 +5699,14 @@ impl CompositionBrush { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -7447,28 +5714,28 @@ impl CompositionBrush { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -7478,34 +5745,34 @@ impl CompositionBrush { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -7513,11 +5780,11 @@ impl CompositionBrush { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } } impl ::windows_core::RuntimeType for CompositionBrush { @@ -7525,22 +5792,17 @@ impl ::windows_core::RuntimeType for CompositionBrush { } unsafe impl ::windows_core::Interface for CompositionBrush { type Vtable = ICompositionBrush_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CompositionBrush { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CompositionBrush { const NAME: &'static str = "Windows.UI.Composition.CompositionBrush"; } -::windows_core::imp::interface_hierarchy!(CompositionBrush, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CompositionBrush {} -impl ::windows_core::CanTryInto for CompositionBrush {} -impl ::windows_core::CanTryInto for CompositionBrush {} unsafe impl ::core::marker::Send for CompositionBrush {} unsafe impl ::core::marker::Sync for CompositionBrush {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CompositionCapabilities(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CompositionCapabilities, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CompositionCapabilities { pub fn AreEffectsSupported(&self) -> ::windows_core::Result { let this = self; @@ -7587,35 +5849,34 @@ impl ::windows_core::RuntimeType for CompositionCapabilities { } unsafe impl ::windows_core::Interface for CompositionCapabilities { type Vtable = ICompositionCapabilities_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CompositionCapabilities { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CompositionCapabilities { const NAME: &'static str = "Windows.UI.Composition.CompositionCapabilities"; } -::windows_core::imp::interface_hierarchy!(CompositionCapabilities, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CompositionCapabilities {} unsafe impl ::core::marker::Sync for CompositionCapabilities {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CompositionClip(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CompositionClip, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(CompositionClip, IAnimationObject, super::super::Foundation::IClosable, CompositionObject); impl CompositionClip { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn AnchorPoint(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AnchorPoint)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -7624,13 +5885,13 @@ impl CompositionClip { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetAnchorPoint(&self, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetAnchorPoint)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn CenterPoint(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CenterPoint)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -7639,13 +5900,13 @@ impl CompositionClip { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetCenterPoint(&self, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCenterPoint)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn Offset(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Offset)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -7654,35 +5915,35 @@ impl CompositionClip { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetOffset(&self, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetOffset)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn RotationAngle(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RotationAngle)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetRotationAngle(&self, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRotationAngle)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn RotationAngleInDegrees(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RotationAngleInDegrees)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetRotationAngleInDegrees(&self, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRotationAngleInDegrees)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn Scale(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Scale)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -7691,13 +5952,13 @@ impl CompositionClip { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetScale(&self, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetScale)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn TransformMatrix(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TransformMatrix)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -7706,11 +5967,11 @@ impl CompositionClip { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetTransformMatrix(&self, value: super::super::Foundation::Numerics::Matrix3x2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetTransformMatrix)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -7719,14 +5980,14 @@ impl CompositionClip { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -7734,28 +5995,28 @@ impl CompositionClip { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -7765,34 +6026,34 @@ impl CompositionClip { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -7800,11 +6061,11 @@ impl CompositionClip { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } } impl ::windows_core::RuntimeType for CompositionClip { @@ -7812,32 +6073,28 @@ impl ::windows_core::RuntimeType for CompositionClip { } unsafe impl ::windows_core::Interface for CompositionClip { type Vtable = ICompositionClip_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CompositionClip { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CompositionClip { const NAME: &'static str = "Windows.UI.Composition.CompositionClip"; } -::windows_core::imp::interface_hierarchy!(CompositionClip, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CompositionClip {} -impl ::windows_core::CanTryInto for CompositionClip {} -impl ::windows_core::CanTryInto for CompositionClip {} unsafe impl ::core::marker::Send for CompositionClip {} unsafe impl ::core::marker::Sync for CompositionClip {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CompositionColorBrush(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CompositionColorBrush, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(CompositionColorBrush, IAnimationObject, super::super::Foundation::IClosable, CompositionBrush, CompositionObject); impl CompositionColorBrush { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Color(&self) -> ::windows_core::Result { @@ -7852,7 +6109,7 @@ impl CompositionColorBrush { unsafe { (::windows_core::Interface::vtable(this).SetColor)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -7861,14 +6118,14 @@ impl CompositionColorBrush { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -7876,28 +6133,28 @@ impl CompositionColorBrush { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -7907,34 +6164,34 @@ impl CompositionColorBrush { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -7942,11 +6199,11 @@ impl CompositionColorBrush { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } } impl ::windows_core::RuntimeType for CompositionColorBrush { @@ -7954,33 +6211,28 @@ impl ::windows_core::RuntimeType for CompositionColorBrush { } unsafe impl ::windows_core::Interface for CompositionColorBrush { type Vtable = ICompositionColorBrush_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CompositionColorBrush { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CompositionColorBrush { const NAME: &'static str = "Windows.UI.Composition.CompositionColorBrush"; } -::windows_core::imp::interface_hierarchy!(CompositionColorBrush, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CompositionColorBrush {} -impl ::windows_core::CanTryInto for CompositionColorBrush {} -impl ::windows_core::CanTryInto for CompositionColorBrush {} -impl ::windows_core::CanTryInto for CompositionColorBrush {} unsafe impl ::core::marker::Send for CompositionColorBrush {} unsafe impl ::core::marker::Sync for CompositionColorBrush {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CompositionColorGradientStop(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CompositionColorGradientStop, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(CompositionColorGradientStop, IAnimationObject, super::super::Foundation::IClosable, CompositionObject); impl CompositionColorGradientStop { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Color(&self) -> ::windows_core::Result { @@ -8006,7 +6258,7 @@ impl CompositionColorGradientStop { unsafe { (::windows_core::Interface::vtable(this).SetOffset)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -8015,14 +6267,14 @@ impl CompositionColorGradientStop { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -8030,28 +6282,28 @@ impl CompositionColorGradientStop { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -8061,34 +6313,34 @@ impl CompositionColorGradientStop { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -8096,11 +6348,11 @@ impl CompositionColorGradientStop { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } } impl ::windows_core::RuntimeType for CompositionColorGradientStop { @@ -8108,27 +6360,24 @@ impl ::windows_core::RuntimeType for CompositionColorGradientStop { } unsafe impl ::windows_core::Interface for CompositionColorGradientStop { type Vtable = ICompositionColorGradientStop_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CompositionColorGradientStop { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CompositionColorGradientStop { const NAME: &'static str = "Windows.UI.Composition.CompositionColorGradientStop"; } -::windows_core::imp::interface_hierarchy!(CompositionColorGradientStop, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CompositionColorGradientStop {} -impl ::windows_core::CanTryInto for CompositionColorGradientStop {} -impl ::windows_core::CanTryInto for CompositionColorGradientStop {} unsafe impl ::core::marker::Send for CompositionColorGradientStop {} unsafe impl ::core::marker::Sync for CompositionColorGradientStop {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CompositionColorGradientStopCollection(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CompositionColorGradientStopCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(CompositionColorGradientStopCollection, super::super::Foundation::Collections::IIterable::, super::super::Foundation::Collections::IVector::); impl CompositionColorGradientStopCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -8137,7 +6386,7 @@ impl CompositionColorGradientStopCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetAt(&self, index: u32) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetAt)(::windows_core::Interface::as_raw(this), index, &mut result__).from_abi(result__) @@ -8146,7 +6395,7 @@ impl CompositionColorGradientStopCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Size(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Size)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -8155,7 +6404,7 @@ impl CompositionColorGradientStopCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetView(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetView)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -8167,7 +6416,7 @@ impl CompositionColorGradientStopCollection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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__).from_abi(result__) @@ -8179,7 +6428,7 @@ impl CompositionColorGradientStopCollection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -8188,13 +6437,13 @@ impl CompositionColorGradientStopCollection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn RemoveAt(&self, index: u32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveAt)(::windows_core::Interface::as_raw(this), index).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -8203,25 +6452,25 @@ impl CompositionColorGradientStopCollection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn RemoveAtEnd(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveAtEnd)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Clear(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).Clear)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetMany(&self, startindex: u32, items: &mut [::core::option::Option]) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetMany)(::windows_core::Interface::as_raw(this), startindex, items.len().try_into().unwrap(), ::core::mem::transmute_copy(&items), &mut result__).from_abi(result__) @@ -8230,7 +6479,7 @@ impl CompositionColorGradientStopCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn ReplaceAll(&self, items: &[::core::option::Option]) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).ReplaceAll)(::windows_core::Interface::as_raw(this), items.len().try_into().unwrap(), ::core::mem::transmute(items.as_ptr())).ok() } } } @@ -8239,9 +6488,7 @@ impl ::windows_core::RuntimeType for CompositionColorGradientStopCollection { } unsafe impl ::windows_core::Interface for CompositionColorGradientStopCollection { type Vtable = ICompositionColorGradientStopCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CompositionColorGradientStopCollection { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CompositionColorGradientStopCollection { const NAME: &'static str = "Windows.UI.Composition.CompositionColorGradientStopCollection"; @@ -8259,29 +6506,26 @@ impl ::core::iter::IntoIterator for &CompositionColorGradientStopCollection { type Item = CompositionColorGradientStop; type IntoIter = super::super::Foundation::Collections::VectorIterator; fn into_iter(self) -> Self::IntoIter { - super::super::Foundation::Collections::VectorIterator::new(::windows_core::ComInterface::cast(self).ok()) + super::super::Foundation::Collections::VectorIterator::new(::windows_core::Interface::cast(self).ok()) } } -::windows_core::imp::interface_hierarchy!(CompositionColorGradientStopCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for CompositionColorGradientStopCollection {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for CompositionColorGradientStopCollection {} unsafe impl ::core::marker::Send for CompositionColorGradientStopCollection {} unsafe impl ::core::marker::Sync for CompositionColorGradientStopCollection {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CompositionCommitBatch(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CompositionCommitBatch, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(CompositionCommitBatch, IAnimationObject, super::super::Foundation::IClosable, CompositionObject); impl CompositionCommitBatch { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn IsActive(&self) -> ::windows_core::Result { @@ -8313,7 +6557,7 @@ impl CompositionCommitBatch { unsafe { (::windows_core::Interface::vtable(this).RemoveCompleted)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -8322,14 +6566,14 @@ impl CompositionCommitBatch { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -8337,28 +6581,28 @@ impl CompositionCommitBatch { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -8368,34 +6612,34 @@ impl CompositionCommitBatch { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -8403,11 +6647,11 @@ impl CompositionCommitBatch { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } } impl ::windows_core::RuntimeType for CompositionCommitBatch { @@ -8415,32 +6659,28 @@ impl ::windows_core::RuntimeType for CompositionCommitBatch { } unsafe impl ::windows_core::Interface for CompositionCommitBatch { type Vtable = ICompositionCommitBatch_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CompositionCommitBatch { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CompositionCommitBatch { const NAME: &'static str = "Windows.UI.Composition.CompositionCommitBatch"; } -::windows_core::imp::interface_hierarchy!(CompositionCommitBatch, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CompositionCommitBatch {} -impl ::windows_core::CanTryInto for CompositionCommitBatch {} -impl ::windows_core::CanTryInto for CompositionCommitBatch {} unsafe impl ::core::marker::Send for CompositionCommitBatch {} unsafe impl ::core::marker::Sync for CompositionCommitBatch {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CompositionContainerShape(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CompositionContainerShape, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(CompositionContainerShape, IAnimationObject, super::super::Foundation::IClosable, CompositionShape, CompositionObject); impl CompositionContainerShape { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -8453,7 +6693,7 @@ impl CompositionContainerShape { } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -8462,14 +6702,14 @@ impl CompositionContainerShape { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -8477,28 +6717,28 @@ impl CompositionContainerShape { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -8508,34 +6748,34 @@ impl CompositionContainerShape { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -8543,16 +6783,16 @@ impl CompositionContainerShape { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn CenterPoint(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CenterPoint)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -8561,13 +6801,13 @@ impl CompositionContainerShape { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetCenterPoint(&self, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCenterPoint)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn Offset(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Offset)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -8576,35 +6816,35 @@ impl CompositionContainerShape { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetOffset(&self, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetOffset)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn RotationAngle(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RotationAngle)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetRotationAngle(&self, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRotationAngle)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn RotationAngleInDegrees(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RotationAngleInDegrees)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetRotationAngleInDegrees(&self, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRotationAngleInDegrees)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn Scale(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Scale)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -8613,13 +6853,13 @@ impl CompositionContainerShape { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetScale(&self, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetScale)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn TransformMatrix(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TransformMatrix)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -8628,7 +6868,7 @@ impl CompositionContainerShape { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetTransformMatrix(&self, value: super::super::Foundation::Numerics::Matrix3x2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetTransformMatrix)(::windows_core::Interface::as_raw(this), value).ok() } } } @@ -8637,33 +6877,28 @@ impl ::windows_core::RuntimeType for CompositionContainerShape { } unsafe impl ::windows_core::Interface for CompositionContainerShape { type Vtable = ICompositionContainerShape_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CompositionContainerShape { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CompositionContainerShape { const NAME: &'static str = "Windows.UI.Composition.CompositionContainerShape"; } -::windows_core::imp::interface_hierarchy!(CompositionContainerShape, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CompositionContainerShape {} -impl ::windows_core::CanTryInto for CompositionContainerShape {} -impl ::windows_core::CanTryInto for CompositionContainerShape {} -impl ::windows_core::CanTryInto for CompositionContainerShape {} unsafe impl ::core::marker::Send for CompositionContainerShape {} unsafe impl ::core::marker::Sync for CompositionContainerShape {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CompositionDrawingSurface(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CompositionDrawingSurface, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(CompositionDrawingSurface, IAnimationObject, super::super::Foundation::IClosable, ICompositionSurface, CompositionObject); impl CompositionDrawingSurface { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Graphics_DirectX\"`"] @@ -8694,7 +6929,7 @@ impl CompositionDrawingSurface { #[doc = "Required features: `\"Graphics\"`"] #[cfg(feature = "Graphics")] pub fn SizeInt32(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SizeInt32)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -8703,35 +6938,35 @@ impl CompositionDrawingSurface { #[doc = "Required features: `\"Graphics\"`"] #[cfg(feature = "Graphics")] pub fn Resize(&self, sizepixels: super::super::Graphics::SizeInt32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Resize)(::windows_core::Interface::as_raw(this), sizepixels).ok() } } #[doc = "Required features: `\"Graphics\"`"] #[cfg(feature = "Graphics")] pub fn Scroll(&self, offset: super::super::Graphics::PointInt32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Scroll)(::windows_core::Interface::as_raw(this), offset).ok() } } #[doc = "Required features: `\"Graphics\"`"] #[cfg(feature = "Graphics")] pub fn ScrollRect(&self, offset: super::super::Graphics::PointInt32, scrollrect: super::super::Graphics::RectInt32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ScrollRect)(::windows_core::Interface::as_raw(this), offset, scrollrect).ok() } } #[doc = "Required features: `\"Graphics\"`"] #[cfg(feature = "Graphics")] pub fn ScrollWithClip(&self, offset: super::super::Graphics::PointInt32, cliprect: super::super::Graphics::RectInt32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ScrollWithClip)(::windows_core::Interface::as_raw(this), offset, cliprect).ok() } } #[doc = "Required features: `\"Graphics\"`"] #[cfg(feature = "Graphics")] pub fn ScrollRectWithClip(&self, offset: super::super::Graphics::PointInt32, cliprect: super::super::Graphics::RectInt32, scrollrect: super::super::Graphics::RectInt32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ScrollRectWithClip)(::windows_core::Interface::as_raw(this), offset, cliprect, scrollrect).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -8740,14 +6975,14 @@ impl CompositionDrawingSurface { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -8755,28 +6990,28 @@ impl CompositionDrawingSurface { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -8786,34 +7021,34 @@ impl CompositionDrawingSurface { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -8821,11 +7056,11 @@ impl CompositionDrawingSurface { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } } impl ::windows_core::RuntimeType for CompositionDrawingSurface { @@ -8833,33 +7068,28 @@ impl ::windows_core::RuntimeType for CompositionDrawingSurface { } unsafe impl ::windows_core::Interface for CompositionDrawingSurface { type Vtable = ICompositionDrawingSurface_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CompositionDrawingSurface { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CompositionDrawingSurface { const NAME: &'static str = "Windows.UI.Composition.CompositionDrawingSurface"; } -::windows_core::imp::interface_hierarchy!(CompositionDrawingSurface, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CompositionDrawingSurface {} -impl ::windows_core::CanTryInto for CompositionDrawingSurface {} -impl ::windows_core::CanTryInto for CompositionDrawingSurface {} -impl ::windows_core::CanTryInto for CompositionDrawingSurface {} unsafe impl ::core::marker::Send for CompositionDrawingSurface {} unsafe impl ::core::marker::Sync for CompositionDrawingSurface {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CompositionEasingFunction(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CompositionEasingFunction, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(CompositionEasingFunction, IAnimationObject, super::super::Foundation::IClosable, CompositionObject); impl CompositionEasingFunction { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] @@ -8964,7 +7194,7 @@ impl CompositionEasingFunction { }) } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -8973,14 +7203,14 @@ impl CompositionEasingFunction { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -8988,28 +7218,28 @@ impl CompositionEasingFunction { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -9019,34 +7249,34 @@ impl CompositionEasingFunction { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -9054,11 +7284,11 @@ impl CompositionEasingFunction { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } #[doc(hidden)] pub fn ICompositionEasingFunctionStatics ::windows_core::Result>(callback: F) -> ::windows_core::Result { @@ -9071,32 +7301,28 @@ impl ::windows_core::RuntimeType for CompositionEasingFunction { } unsafe impl ::windows_core::Interface for CompositionEasingFunction { type Vtable = ICompositionEasingFunction_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CompositionEasingFunction { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CompositionEasingFunction { const NAME: &'static str = "Windows.UI.Composition.CompositionEasingFunction"; } -::windows_core::imp::interface_hierarchy!(CompositionEasingFunction, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CompositionEasingFunction {} -impl ::windows_core::CanTryInto for CompositionEasingFunction {} -impl ::windows_core::CanTryInto for CompositionEasingFunction {} unsafe impl ::core::marker::Send for CompositionEasingFunction {} unsafe impl ::core::marker::Sync for CompositionEasingFunction {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CompositionEffectBrush(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CompositionEffectBrush, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(CompositionEffectBrush, IAnimationObject, super::super::Foundation::IClosable, CompositionBrush, CompositionObject); impl CompositionEffectBrush { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn GetSourceParameter(&self, name: &::windows_core::HSTRING) -> ::windows_core::Result { @@ -9108,13 +7334,13 @@ impl CompositionEffectBrush { } pub fn SetSourceParameter(&self, name: &::windows_core::HSTRING, source: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetSourceParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(name), source.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetSourceParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(name), source.into_param().abi()).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -9123,14 +7349,14 @@ impl CompositionEffectBrush { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -9138,28 +7364,28 @@ impl CompositionEffectBrush { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -9169,34 +7395,34 @@ impl CompositionEffectBrush { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -9204,11 +7430,11 @@ impl CompositionEffectBrush { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } } impl ::windows_core::RuntimeType for CompositionEffectBrush { @@ -9216,33 +7442,28 @@ impl ::windows_core::RuntimeType for CompositionEffectBrush { } unsafe impl ::windows_core::Interface for CompositionEffectBrush { type Vtable = ICompositionEffectBrush_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CompositionEffectBrush { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CompositionEffectBrush { const NAME: &'static str = "Windows.UI.Composition.CompositionEffectBrush"; } -::windows_core::imp::interface_hierarchy!(CompositionEffectBrush, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CompositionEffectBrush {} -impl ::windows_core::CanTryInto for CompositionEffectBrush {} -impl ::windows_core::CanTryInto for CompositionEffectBrush {} -impl ::windows_core::CanTryInto for CompositionEffectBrush {} unsafe impl ::core::marker::Send for CompositionEffectBrush {} unsafe impl ::core::marker::Sync for CompositionEffectBrush {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CompositionEffectFactory(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CompositionEffectFactory, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(CompositionEffectFactory, IAnimationObject, super::super::Foundation::IClosable, CompositionObject); impl CompositionEffectFactory { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn CreateBrush(&self) -> ::windows_core::Result { @@ -9267,7 +7488,7 @@ impl CompositionEffectFactory { } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -9276,14 +7497,14 @@ impl CompositionEffectFactory { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -9291,28 +7512,28 @@ impl CompositionEffectFactory { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -9322,34 +7543,34 @@ impl CompositionEffectFactory { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -9357,11 +7578,11 @@ impl CompositionEffectFactory { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } } impl ::windows_core::RuntimeType for CompositionEffectFactory { @@ -9369,22 +7590,19 @@ impl ::windows_core::RuntimeType for CompositionEffectFactory { } unsafe impl ::windows_core::Interface for CompositionEffectFactory { type Vtable = ICompositionEffectFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CompositionEffectFactory { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CompositionEffectFactory { const NAME: &'static str = "Windows.UI.Composition.CompositionEffectFactory"; } -::windows_core::imp::interface_hierarchy!(CompositionEffectFactory, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CompositionEffectFactory {} -impl ::windows_core::CanTryInto for CompositionEffectFactory {} -impl ::windows_core::CanTryInto for CompositionEffectFactory {} unsafe impl ::core::marker::Send for CompositionEffectFactory {} unsafe impl ::core::marker::Sync for CompositionEffectFactory {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CompositionEffectSourceParameter(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CompositionEffectSourceParameter, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Graphics_Effects")] +::windows_core::imp::required_hierarchy!(CompositionEffectSourceParameter, super::super::Graphics::Effects::IGraphicsEffectSource); impl CompositionEffectSourceParameter { pub fn Name(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -9410,31 +7628,28 @@ impl ::windows_core::RuntimeType for CompositionEffectSourceParameter { } unsafe impl ::windows_core::Interface for CompositionEffectSourceParameter { type Vtable = ICompositionEffectSourceParameter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CompositionEffectSourceParameter { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CompositionEffectSourceParameter { const NAME: &'static str = "Windows.UI.Composition.CompositionEffectSourceParameter"; } -::windows_core::imp::interface_hierarchy!(CompositionEffectSourceParameter, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Graphics_Effects")] -impl ::windows_core::CanTryInto for CompositionEffectSourceParameter {} unsafe impl ::core::marker::Send for CompositionEffectSourceParameter {} unsafe impl ::core::marker::Sync for CompositionEffectSourceParameter {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CompositionEllipseGeometry(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CompositionEllipseGeometry, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(CompositionEllipseGeometry, IAnimationObject, super::super::Foundation::IClosable, CompositionGeometry, CompositionObject); impl CompositionEllipseGeometry { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] @@ -9468,40 +7683,40 @@ impl CompositionEllipseGeometry { unsafe { (::windows_core::Interface::vtable(this).SetRadius)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn TrimEnd(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TrimEnd)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetTrimEnd(&self, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetTrimEnd)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn TrimOffset(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TrimOffset)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetTrimOffset(&self, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetTrimOffset)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn TrimStart(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TrimStart)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetTrimStart(&self, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetTrimStart)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -9510,14 +7725,14 @@ impl CompositionEllipseGeometry { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -9525,28 +7740,28 @@ impl CompositionEllipseGeometry { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -9556,34 +7771,34 @@ impl CompositionEllipseGeometry { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -9591,11 +7806,11 @@ impl CompositionEllipseGeometry { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } } impl ::windows_core::RuntimeType for CompositionEllipseGeometry { @@ -9603,39 +7818,34 @@ impl ::windows_core::RuntimeType for CompositionEllipseGeometry { } unsafe impl ::windows_core::Interface for CompositionEllipseGeometry { type Vtable = ICompositionEllipseGeometry_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CompositionEllipseGeometry { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CompositionEllipseGeometry { const NAME: &'static str = "Windows.UI.Composition.CompositionEllipseGeometry"; } -::windows_core::imp::interface_hierarchy!(CompositionEllipseGeometry, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CompositionEllipseGeometry {} -impl ::windows_core::CanTryInto for CompositionEllipseGeometry {} -impl ::windows_core::CanTryInto for CompositionEllipseGeometry {} -impl ::windows_core::CanTryInto for CompositionEllipseGeometry {} unsafe impl ::core::marker::Send for CompositionEllipseGeometry {} unsafe impl ::core::marker::Sync for CompositionEllipseGeometry {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CompositionGeometricClip(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CompositionGeometricClip, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(CompositionGeometricClip, IAnimationObject, super::super::Foundation::IClosable, CompositionClip, CompositionObject); impl CompositionGeometricClip { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn AnchorPoint(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AnchorPoint)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -9644,13 +7854,13 @@ impl CompositionGeometricClip { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetAnchorPoint(&self, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetAnchorPoint)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn CenterPoint(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CenterPoint)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -9659,13 +7869,13 @@ impl CompositionGeometricClip { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetCenterPoint(&self, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCenterPoint)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn Offset(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Offset)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -9674,35 +7884,35 @@ impl CompositionGeometricClip { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetOffset(&self, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetOffset)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn RotationAngle(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RotationAngle)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetRotationAngle(&self, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRotationAngle)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn RotationAngleInDegrees(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RotationAngleInDegrees)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetRotationAngleInDegrees(&self, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRotationAngleInDegrees)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn Scale(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Scale)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -9711,13 +7921,13 @@ impl CompositionGeometricClip { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetScale(&self, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetScale)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn TransformMatrix(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TransformMatrix)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -9726,7 +7936,7 @@ impl CompositionGeometricClip { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetTransformMatrix(&self, value: super::super::Foundation::Numerics::Matrix3x2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetTransformMatrix)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Geometry(&self) -> ::windows_core::Result { @@ -9738,10 +7948,10 @@ impl CompositionGeometricClip { } pub fn SetGeometry(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetGeometry)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetGeometry)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn ViewBox(&self) -> ::windows_core::Result { let this = self; @@ -9758,7 +7968,7 @@ impl CompositionGeometricClip { unsafe { (::windows_core::Interface::vtable(this).SetViewBox)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -9767,14 +7977,14 @@ impl CompositionGeometricClip { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -9782,28 +7992,28 @@ impl CompositionGeometricClip { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -9813,34 +8023,34 @@ impl CompositionGeometricClip { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -9848,11 +8058,11 @@ impl CompositionGeometricClip { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } } impl ::windows_core::RuntimeType for CompositionGeometricClip { @@ -9860,33 +8070,28 @@ impl ::windows_core::RuntimeType for CompositionGeometricClip { } unsafe impl ::windows_core::Interface for CompositionGeometricClip { type Vtable = ICompositionGeometricClip_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CompositionGeometricClip { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CompositionGeometricClip { const NAME: &'static str = "Windows.UI.Composition.CompositionGeometricClip"; } -::windows_core::imp::interface_hierarchy!(CompositionGeometricClip, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CompositionGeometricClip {} -impl ::windows_core::CanTryInto for CompositionGeometricClip {} -impl ::windows_core::CanTryInto for CompositionGeometricClip {} -impl ::windows_core::CanTryInto for CompositionGeometricClip {} unsafe impl ::core::marker::Send for CompositionGeometricClip {} unsafe impl ::core::marker::Sync for CompositionGeometricClip {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CompositionGeometry(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CompositionGeometry, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(CompositionGeometry, IAnimationObject, super::super::Foundation::IClosable, CompositionObject); impl CompositionGeometry { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn TrimEnd(&self) -> ::windows_core::Result { @@ -9923,7 +8128,7 @@ impl CompositionGeometry { unsafe { (::windows_core::Interface::vtable(this).SetTrimStart)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -9932,14 +8137,14 @@ impl CompositionGeometry { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -9947,28 +8152,28 @@ impl CompositionGeometry { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -9978,34 +8183,34 @@ impl CompositionGeometry { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -10013,11 +8218,11 @@ impl CompositionGeometry { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } } impl ::windows_core::RuntimeType for CompositionGeometry { @@ -10025,32 +8230,28 @@ impl ::windows_core::RuntimeType for CompositionGeometry { } unsafe impl ::windows_core::Interface for CompositionGeometry { type Vtable = ICompositionGeometry_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CompositionGeometry { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CompositionGeometry { const NAME: &'static str = "Windows.UI.Composition.CompositionGeometry"; } -::windows_core::imp::interface_hierarchy!(CompositionGeometry, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CompositionGeometry {} -impl ::windows_core::CanTryInto for CompositionGeometry {} -impl ::windows_core::CanTryInto for CompositionGeometry {} unsafe impl ::core::marker::Send for CompositionGeometry {} unsafe impl ::core::marker::Sync for CompositionGeometry {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CompositionGradientBrush(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CompositionGradientBrush, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(CompositionGradientBrush, IAnimationObject, super::super::Foundation::IClosable, CompositionBrush, CompositionObject); impl CompositionGradientBrush { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] @@ -10180,18 +8381,18 @@ impl CompositionGradientBrush { unsafe { (::windows_core::Interface::vtable(this).SetTransformMatrix)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn MappingMode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MappingMode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetMappingMode(&self, value: CompositionMappingMode) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMappingMode)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -10200,14 +8401,14 @@ impl CompositionGradientBrush { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -10215,28 +8416,28 @@ impl CompositionGradientBrush { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -10246,34 +8447,34 @@ impl CompositionGradientBrush { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -10281,11 +8482,11 @@ impl CompositionGradientBrush { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } } impl ::windows_core::RuntimeType for CompositionGradientBrush { @@ -10293,33 +8494,28 @@ impl ::windows_core::RuntimeType for CompositionGradientBrush { } unsafe impl ::windows_core::Interface for CompositionGradientBrush { type Vtable = ICompositionGradientBrush_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CompositionGradientBrush { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CompositionGradientBrush { const NAME: &'static str = "Windows.UI.Composition.CompositionGradientBrush"; } -::windows_core::imp::interface_hierarchy!(CompositionGradientBrush, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CompositionGradientBrush {} -impl ::windows_core::CanTryInto for CompositionGradientBrush {} -impl ::windows_core::CanTryInto for CompositionGradientBrush {} -impl ::windows_core::CanTryInto for CompositionGradientBrush {} unsafe impl ::core::marker::Send for CompositionGradientBrush {} unsafe impl ::core::marker::Sync for CompositionGradientBrush {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CompositionGraphicsDevice(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CompositionGraphicsDevice, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(CompositionGraphicsDevice, IAnimationObject, super::super::Foundation::IClosable, CompositionObject); impl CompositionGraphicsDevice { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Graphics_DirectX\"`"] @@ -10348,7 +8544,7 @@ impl CompositionGraphicsDevice { #[doc = "Required features: `\"Graphics_DirectX\"`"] #[cfg(feature = "Graphics_DirectX")] pub fn CreateDrawingSurface2(&self, sizepixels: super::super::Graphics::SizeInt32, pixelformat: super::super::Graphics::DirectX::DirectXPixelFormat, alphamode: super::super::Graphics::DirectX::DirectXAlphaMode) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateDrawingSurface2)(::windows_core::Interface::as_raw(this), sizepixels, pixelformat, alphamode, &mut result__).from_abi(result__) @@ -10357,7 +8553,7 @@ impl CompositionGraphicsDevice { #[doc = "Required features: `\"Graphics_DirectX\"`"] #[cfg(feature = "Graphics_DirectX")] pub fn CreateVirtualDrawingSurface(&self, sizepixels: super::super::Graphics::SizeInt32, pixelformat: super::super::Graphics::DirectX::DirectXPixelFormat, alphamode: super::super::Graphics::DirectX::DirectXAlphaMode) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateVirtualDrawingSurface)(::windows_core::Interface::as_raw(this), sizepixels, pixelformat, alphamode, &mut result__).from_abi(result__) @@ -10366,30 +8562,30 @@ impl CompositionGraphicsDevice { #[doc = "Required features: `\"Graphics_DirectX\"`"] #[cfg(feature = "Graphics_DirectX")] pub fn CreateMipmapSurface(&self, sizepixels: super::super::Graphics::SizeInt32, pixelformat: super::super::Graphics::DirectX::DirectXPixelFormat, alphamode: super::super::Graphics::DirectX::DirectXAlphaMode) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateMipmapSurface)(::windows_core::Interface::as_raw(this), sizepixels, pixelformat, alphamode, &mut result__).from_abi(result__) } } pub fn Trim(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Trim)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Graphics_DirectX\"`"] #[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::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), size, pixelformat, alphamode, sdrboost, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CaptureAsync)(::windows_core::Interface::as_raw(this), capturevisual.into_param().abi(), size, pixelformat, alphamode, sdrboost, &mut result__).from_abi(result__) } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -10398,14 +8594,14 @@ impl CompositionGraphicsDevice { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -10413,28 +8609,28 @@ impl CompositionGraphicsDevice { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -10444,34 +8640,34 @@ impl CompositionGraphicsDevice { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -10479,11 +8675,11 @@ impl CompositionGraphicsDevice { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } } impl ::windows_core::RuntimeType for CompositionGraphicsDevice { @@ -10491,32 +8687,28 @@ impl ::windows_core::RuntimeType for CompositionGraphicsDevice { } unsafe impl ::windows_core::Interface for CompositionGraphicsDevice { type Vtable = ICompositionGraphicsDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CompositionGraphicsDevice { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CompositionGraphicsDevice { const NAME: &'static str = "Windows.UI.Composition.CompositionGraphicsDevice"; } -::windows_core::imp::interface_hierarchy!(CompositionGraphicsDevice, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CompositionGraphicsDevice {} -impl ::windows_core::CanTryInto for CompositionGraphicsDevice {} -impl ::windows_core::CanTryInto for CompositionGraphicsDevice {} unsafe impl ::core::marker::Send for CompositionGraphicsDevice {} unsafe impl ::core::marker::Sync for CompositionGraphicsDevice {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CompositionLight(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CompositionLight, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(CompositionLight, IAnimationObject, super::super::Foundation::IClosable, CompositionObject); impl CompositionLight { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Targets(&self) -> ::windows_core::Result { @@ -10527,25 +8719,25 @@ impl CompositionLight { } } pub fn ExclusionsFromTargets(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ExclusionsFromTargets)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsEnabled(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsEnabled)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsEnabled(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsEnabled)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -10554,14 +8746,14 @@ impl CompositionLight { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -10569,28 +8761,28 @@ impl CompositionLight { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -10600,34 +8792,34 @@ impl CompositionLight { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -10635,11 +8827,11 @@ impl CompositionLight { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } } impl ::windows_core::RuntimeType for CompositionLight { @@ -10647,65 +8839,61 @@ impl ::windows_core::RuntimeType for CompositionLight { } unsafe impl ::windows_core::Interface for CompositionLight { type Vtable = ICompositionLight_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CompositionLight { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CompositionLight { const NAME: &'static str = "Windows.UI.Composition.CompositionLight"; } -::windows_core::imp::interface_hierarchy!(CompositionLight, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CompositionLight {} -impl ::windows_core::CanTryInto for CompositionLight {} -impl ::windows_core::CanTryInto for CompositionLight {} unsafe impl ::core::marker::Send for CompositionLight {} unsafe impl ::core::marker::Sync for CompositionLight {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CompositionLineGeometry(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CompositionLineGeometry, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(CompositionLineGeometry, IAnimationObject, super::super::Foundation::IClosable, CompositionGeometry, CompositionObject); impl CompositionLineGeometry { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn TrimEnd(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TrimEnd)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetTrimEnd(&self, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetTrimEnd)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn TrimOffset(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TrimOffset)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetTrimOffset(&self, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetTrimOffset)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn TrimStart(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TrimStart)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetTrimStart(&self, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetTrimStart)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] @@ -10739,7 +8927,7 @@ impl CompositionLineGeometry { unsafe { (::windows_core::Interface::vtable(this).SetEnd)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -10748,14 +8936,14 @@ impl CompositionLineGeometry { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -10763,28 +8951,28 @@ impl CompositionLineGeometry { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -10794,34 +8982,34 @@ impl CompositionLineGeometry { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -10829,11 +9017,11 @@ impl CompositionLineGeometry { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } } impl ::windows_core::RuntimeType for CompositionLineGeometry { @@ -10841,39 +9029,34 @@ impl ::windows_core::RuntimeType for CompositionLineGeometry { } unsafe impl ::windows_core::Interface for CompositionLineGeometry { type Vtable = ICompositionLineGeometry_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CompositionLineGeometry { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CompositionLineGeometry { const NAME: &'static str = "Windows.UI.Composition.CompositionLineGeometry"; } -::windows_core::imp::interface_hierarchy!(CompositionLineGeometry, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CompositionLineGeometry {} -impl ::windows_core::CanTryInto for CompositionLineGeometry {} -impl ::windows_core::CanTryInto for CompositionLineGeometry {} -impl ::windows_core::CanTryInto for CompositionLineGeometry {} unsafe impl ::core::marker::Send for CompositionLineGeometry {} unsafe impl ::core::marker::Sync for CompositionLineGeometry {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CompositionLinearGradientBrush(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CompositionLinearGradientBrush, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(CompositionLinearGradientBrush, IAnimationObject, super::super::Foundation::IClosable, CompositionGradientBrush, CompositionBrush, CompositionObject); impl CompositionLinearGradientBrush { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn AnchorPoint(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AnchorPoint)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -10882,13 +9065,13 @@ impl CompositionLinearGradientBrush { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetAnchorPoint(&self, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetAnchorPoint)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn CenterPoint(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CenterPoint)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -10897,42 +9080,42 @@ impl CompositionLinearGradientBrush { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetCenterPoint(&self, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCenterPoint)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn ColorStops(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ColorStops)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ExtendMode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ExtendMode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetExtendMode(&self, value: CompositionGradientExtendMode) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetExtendMode)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn InterpolationSpace(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).InterpolationSpace)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetInterpolationSpace(&self, value: CompositionColorSpace) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetInterpolationSpace)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn Offset(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Offset)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -10941,35 +9124,35 @@ impl CompositionLinearGradientBrush { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetOffset(&self, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetOffset)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn RotationAngle(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RotationAngle)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetRotationAngle(&self, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRotationAngle)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn RotationAngleInDegrees(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RotationAngleInDegrees)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetRotationAngleInDegrees(&self, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRotationAngleInDegrees)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn Scale(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Scale)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -10978,13 +9161,13 @@ impl CompositionLinearGradientBrush { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetScale(&self, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetScale)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn TransformMatrix(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TransformMatrix)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -10993,18 +9176,18 @@ impl CompositionLinearGradientBrush { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetTransformMatrix(&self, value: super::super::Foundation::Numerics::Matrix3x2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetTransformMatrix)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn MappingMode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MappingMode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetMappingMode(&self, value: CompositionMappingMode) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMappingMode)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] @@ -11038,7 +9221,7 @@ impl CompositionLinearGradientBrush { unsafe { (::windows_core::Interface::vtable(this).SetStartPoint)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -11047,14 +9230,14 @@ impl CompositionLinearGradientBrush { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -11062,28 +9245,28 @@ impl CompositionLinearGradientBrush { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -11093,34 +9276,34 @@ impl CompositionLinearGradientBrush { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -11128,11 +9311,11 @@ impl CompositionLinearGradientBrush { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } } impl ::windows_core::RuntimeType for CompositionLinearGradientBrush { @@ -11140,34 +9323,28 @@ impl ::windows_core::RuntimeType for CompositionLinearGradientBrush { } unsafe impl ::windows_core::Interface for CompositionLinearGradientBrush { type Vtable = ICompositionLinearGradientBrush_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CompositionLinearGradientBrush { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CompositionLinearGradientBrush { const NAME: &'static str = "Windows.UI.Composition.CompositionLinearGradientBrush"; } -::windows_core::imp::interface_hierarchy!(CompositionLinearGradientBrush, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CompositionLinearGradientBrush {} -impl ::windows_core::CanTryInto for CompositionLinearGradientBrush {} -impl ::windows_core::CanTryInto for CompositionLinearGradientBrush {} -impl ::windows_core::CanTryInto for CompositionLinearGradientBrush {} -impl ::windows_core::CanTryInto for CompositionLinearGradientBrush {} unsafe impl ::core::marker::Send for CompositionLinearGradientBrush {} unsafe impl ::core::marker::Sync for CompositionLinearGradientBrush {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CompositionMaskBrush(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CompositionMaskBrush, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(CompositionMaskBrush, IAnimationObject, super::super::Foundation::IClosable, CompositionBrush, CompositionObject); impl CompositionMaskBrush { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Mask(&self) -> ::windows_core::Result { @@ -11179,10 +9356,10 @@ impl CompositionMaskBrush { } pub fn SetMask(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetMask)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetMask)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn Source(&self) -> ::windows_core::Result { let this = self; @@ -11193,13 +9370,13 @@ impl CompositionMaskBrush { } pub fn SetSource(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetSource)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetSource)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -11208,14 +9385,14 @@ impl CompositionMaskBrush { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -11223,28 +9400,28 @@ impl CompositionMaskBrush { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -11254,34 +9431,34 @@ impl CompositionMaskBrush { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -11289,11 +9466,11 @@ impl CompositionMaskBrush { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } } impl ::windows_core::RuntimeType for CompositionMaskBrush { @@ -11301,33 +9478,28 @@ impl ::windows_core::RuntimeType for CompositionMaskBrush { } unsafe impl ::windows_core::Interface for CompositionMaskBrush { type Vtable = ICompositionMaskBrush_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CompositionMaskBrush { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CompositionMaskBrush { const NAME: &'static str = "Windows.UI.Composition.CompositionMaskBrush"; } -::windows_core::imp::interface_hierarchy!(CompositionMaskBrush, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CompositionMaskBrush {} -impl ::windows_core::CanTryInto for CompositionMaskBrush {} -impl ::windows_core::CanTryInto for CompositionMaskBrush {} -impl ::windows_core::CanTryInto for CompositionMaskBrush {} unsafe impl ::core::marker::Send for CompositionMaskBrush {} unsafe impl ::core::marker::Sync for CompositionMaskBrush {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CompositionMipmapSurface(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CompositionMipmapSurface, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(CompositionMipmapSurface, IAnimationObject, super::super::Foundation::IClosable, ICompositionSurface, CompositionObject); impl CompositionMipmapSurface { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn LevelCount(&self) -> ::windows_core::Result { @@ -11372,7 +9544,7 @@ impl CompositionMipmapSurface { } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -11381,14 +9553,14 @@ impl CompositionMipmapSurface { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -11396,28 +9568,28 @@ impl CompositionMipmapSurface { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -11427,34 +9599,34 @@ impl CompositionMipmapSurface { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -11462,11 +9634,11 @@ impl CompositionMipmapSurface { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } } impl ::windows_core::RuntimeType for CompositionMipmapSurface { @@ -11474,33 +9646,28 @@ impl ::windows_core::RuntimeType for CompositionMipmapSurface { } unsafe impl ::windows_core::Interface for CompositionMipmapSurface { type Vtable = ICompositionMipmapSurface_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CompositionMipmapSurface { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CompositionMipmapSurface { const NAME: &'static str = "Windows.UI.Composition.CompositionMipmapSurface"; } -::windows_core::imp::interface_hierarchy!(CompositionMipmapSurface, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CompositionMipmapSurface {} -impl ::windows_core::CanTryInto for CompositionMipmapSurface {} -impl ::windows_core::CanTryInto for CompositionMipmapSurface {} -impl ::windows_core::CanTryInto for CompositionMipmapSurface {} unsafe impl ::core::marker::Send for CompositionMipmapSurface {} unsafe impl ::core::marker::Sync for CompositionMipmapSurface {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CompositionNineGridBrush(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CompositionNineGridBrush, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(CompositionNineGridBrush, IAnimationObject, super::super::Foundation::IClosable, CompositionBrush, CompositionObject); impl CompositionNineGridBrush { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn BottomInset(&self) -> ::windows_core::Result { @@ -11589,10 +9756,10 @@ impl CompositionNineGridBrush { } pub fn SetSource(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetSource)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetSource)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn TopInset(&self) -> ::windows_core::Result { let this = self; @@ -11633,7 +9800,7 @@ impl CompositionNineGridBrush { unsafe { (::windows_core::Interface::vtable(this).SetInsetScalesWithValues)(::windows_core::Interface::as_raw(this), left, top, right, bottom).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -11642,14 +9809,14 @@ impl CompositionNineGridBrush { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -11657,28 +9824,28 @@ impl CompositionNineGridBrush { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -11688,34 +9855,34 @@ impl CompositionNineGridBrush { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -11723,11 +9890,11 @@ impl CompositionNineGridBrush { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } } impl ::windows_core::RuntimeType for CompositionNineGridBrush { @@ -11735,33 +9902,28 @@ impl ::windows_core::RuntimeType for CompositionNineGridBrush { } unsafe impl ::windows_core::Interface for CompositionNineGridBrush { type Vtable = ICompositionNineGridBrush_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CompositionNineGridBrush { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CompositionNineGridBrush { const NAME: &'static str = "Windows.UI.Composition.CompositionNineGridBrush"; } -::windows_core::imp::interface_hierarchy!(CompositionNineGridBrush, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CompositionNineGridBrush {} -impl ::windows_core::CanTryInto for CompositionNineGridBrush {} -impl ::windows_core::CanTryInto for CompositionNineGridBrush {} -impl ::windows_core::CanTryInto for CompositionNineGridBrush {} unsafe impl ::core::marker::Send for CompositionNineGridBrush {} unsafe impl ::core::marker::Sync for CompositionNineGridBrush {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CompositionObject(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CompositionObject, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(CompositionObject, IAnimationObject, super::super::Foundation::IClosable); impl CompositionObject { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { @@ -11789,28 +9951,28 @@ impl CompositionObject { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.into_param().abi()).ok() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { let this = self; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -11820,34 +9982,34 @@ impl CompositionObject { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -11855,25 +10017,25 @@ impl CompositionObject { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } pub fn StartAnimationWithIAnimationObject(target: P0, propertyname: &::windows_core::HSTRING, animation: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - Self::ICompositionObjectStatics(|this| unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithIAnimationObject)(::windows_core::Interface::as_raw(this), target.try_into_param()?.abi(), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() }) + 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() }) } pub fn StartAnimationGroupWithIAnimationObject(target: P0, animation: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - Self::ICompositionObjectStatics(|this| unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroupWithIAnimationObject)(::windows_core::Interface::as_raw(this), target.try_into_param()?.abi(), animation.try_into_param()?.abi()).ok() }) + 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() }) } #[doc(hidden)] pub fn ICompositionObjectStatics ::windows_core::Result>(callback: F) -> ::windows_core::Result { @@ -11886,31 +10048,29 @@ impl ::windows_core::RuntimeType for CompositionObject { } unsafe impl ::windows_core::Interface for CompositionObject { type Vtable = ICompositionObject_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CompositionObject { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CompositionObject { const NAME: &'static str = "Windows.UI.Composition.CompositionObject"; } -::windows_core::imp::interface_hierarchy!(CompositionObject, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CompositionObject {} -impl ::windows_core::CanTryInto for CompositionObject {} unsafe impl ::core::marker::Send for CompositionObject {} unsafe impl ::core::marker::Sync for CompositionObject {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CompositionPath(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CompositionPath, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Graphics")] +::windows_core::imp::required_hierarchy!(CompositionPath, super::super::Graphics::IGeometrySource2D); impl CompositionPath { #[doc = "Required features: `\"Graphics\"`"] #[cfg(feature = "Graphics")] pub fn Create(source: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::ICompositionPathFactory(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).Create)(::windows_core::Interface::as_raw(this), source.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).Create)(::windows_core::Interface::as_raw(this), source.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -11924,68 +10084,65 @@ impl ::windows_core::RuntimeType for CompositionPath { } unsafe impl ::windows_core::Interface for CompositionPath { type Vtable = ICompositionPath_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CompositionPath { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CompositionPath { const NAME: &'static str = "Windows.UI.Composition.CompositionPath"; } -::windows_core::imp::interface_hierarchy!(CompositionPath, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Graphics")] -impl ::windows_core::CanTryInto for CompositionPath {} unsafe impl ::core::marker::Send for CompositionPath {} unsafe impl ::core::marker::Sync for CompositionPath {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CompositionPathGeometry(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CompositionPathGeometry, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(CompositionPathGeometry, IAnimationObject, super::super::Foundation::IClosable, CompositionGeometry, CompositionObject); impl CompositionPathGeometry { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn TrimEnd(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TrimEnd)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetTrimEnd(&self, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetTrimEnd)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn TrimOffset(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TrimOffset)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetTrimOffset(&self, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetTrimOffset)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn TrimStart(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TrimStart)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetTrimStart(&self, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetTrimStart)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -11994,14 +10151,14 @@ impl CompositionPathGeometry { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -12009,28 +10166,28 @@ impl CompositionPathGeometry { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -12040,34 +10197,34 @@ impl CompositionPathGeometry { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -12075,11 +10232,11 @@ impl CompositionPathGeometry { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } pub fn Path(&self) -> ::windows_core::Result { let this = self; @@ -12101,37 +10258,32 @@ impl ::windows_core::RuntimeType for CompositionPathGeometry { } unsafe impl ::windows_core::Interface for CompositionPathGeometry { type Vtable = ICompositionPathGeometry_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CompositionPathGeometry { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CompositionPathGeometry { const NAME: &'static str = "Windows.UI.Composition.CompositionPathGeometry"; } -::windows_core::imp::interface_hierarchy!(CompositionPathGeometry, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CompositionPathGeometry {} -impl ::windows_core::CanTryInto for CompositionPathGeometry {} -impl ::windows_core::CanTryInto for CompositionPathGeometry {} -impl ::windows_core::CanTryInto for CompositionPathGeometry {} unsafe impl ::core::marker::Send for CompositionPathGeometry {} unsafe impl ::core::marker::Sync for CompositionPathGeometry {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CompositionProjectedShadow(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CompositionProjectedShadow, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(CompositionProjectedShadow, IAnimationObject, super::super::Foundation::IClosable, CompositionObject); impl CompositionProjectedShadow { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -12140,14 +10292,14 @@ impl CompositionProjectedShadow { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -12155,28 +10307,28 @@ impl CompositionProjectedShadow { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -12186,34 +10338,34 @@ impl CompositionProjectedShadow { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -12221,11 +10373,11 @@ impl CompositionProjectedShadow { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } pub fn BlurRadiusMultiplier(&self) -> ::windows_core::Result { let this = self; @@ -12254,10 +10406,10 @@ impl CompositionProjectedShadow { } pub fn SetLightSource(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetLightSource)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetLightSource)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn MaxBlurRadius(&self) -> ::windows_core::Result { let this = self; @@ -12294,36 +10446,32 @@ impl ::windows_core::RuntimeType for CompositionProjectedShadow { } unsafe impl ::windows_core::Interface for CompositionProjectedShadow { type Vtable = ICompositionProjectedShadow_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CompositionProjectedShadow { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CompositionProjectedShadow { const NAME: &'static str = "Windows.UI.Composition.CompositionProjectedShadow"; } -::windows_core::imp::interface_hierarchy!(CompositionProjectedShadow, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CompositionProjectedShadow {} -impl ::windows_core::CanTryInto for CompositionProjectedShadow {} -impl ::windows_core::CanTryInto for CompositionProjectedShadow {} unsafe impl ::core::marker::Send for CompositionProjectedShadow {} unsafe impl ::core::marker::Sync for CompositionProjectedShadow {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CompositionProjectedShadowCaster(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CompositionProjectedShadowCaster, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(CompositionProjectedShadowCaster, IAnimationObject, super::super::Foundation::IClosable, CompositionObject); impl CompositionProjectedShadowCaster { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -12332,14 +10480,14 @@ impl CompositionProjectedShadowCaster { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -12347,28 +10495,28 @@ impl CompositionProjectedShadowCaster { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -12378,34 +10526,34 @@ impl CompositionProjectedShadowCaster { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -12413,11 +10561,11 @@ impl CompositionProjectedShadowCaster { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } pub fn Brush(&self) -> ::windows_core::Result { let this = self; @@ -12428,10 +10576,10 @@ impl CompositionProjectedShadowCaster { } pub fn SetBrush(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetBrush)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetBrush)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn CastingVisual(&self) -> ::windows_core::Result { let this = self; @@ -12442,10 +10590,10 @@ impl CompositionProjectedShadowCaster { } pub fn SetCastingVisual(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetCastingVisual)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetCastingVisual)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } } impl ::windows_core::RuntimeType for CompositionProjectedShadowCaster { @@ -12453,36 +10601,33 @@ impl ::windows_core::RuntimeType for CompositionProjectedShadowCaster { } unsafe impl ::windows_core::Interface for CompositionProjectedShadowCaster { type Vtable = ICompositionProjectedShadowCaster_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CompositionProjectedShadowCaster { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CompositionProjectedShadowCaster { const NAME: &'static str = "Windows.UI.Composition.CompositionProjectedShadowCaster"; } -::windows_core::imp::interface_hierarchy!(CompositionProjectedShadowCaster, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CompositionProjectedShadowCaster {} -impl ::windows_core::CanTryInto for CompositionProjectedShadowCaster {} -impl ::windows_core::CanTryInto for CompositionProjectedShadowCaster {} unsafe impl ::core::marker::Send for CompositionProjectedShadowCaster {} unsafe impl ::core::marker::Sync for CompositionProjectedShadowCaster {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CompositionProjectedShadowCasterCollection(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CompositionProjectedShadowCasterCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(CompositionProjectedShadowCasterCollection, IAnimationObject, super::super::Foundation::IClosable, super::super::Foundation::Collections::IIterable::, CompositionObject); impl CompositionProjectedShadowCasterCollection { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -12491,14 +10636,14 @@ impl CompositionProjectedShadowCasterCollection { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -12506,28 +10651,28 @@ impl CompositionProjectedShadowCasterCollection { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -12537,34 +10682,34 @@ impl CompositionProjectedShadowCasterCollection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -12572,11 +10717,11 @@ impl CompositionProjectedShadowCasterCollection { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } pub fn Count(&self) -> ::windows_core::Result { let this = self; @@ -12635,7 +10780,7 @@ impl CompositionProjectedShadowCasterCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -12652,9 +10797,7 @@ impl ::windows_core::RuntimeType for CompositionProjectedShadowCasterCollection } unsafe impl ::windows_core::Interface for CompositionProjectedShadowCasterCollection { type Vtable = ICompositionProjectedShadowCasterCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CompositionProjectedShadowCasterCollection { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CompositionProjectedShadowCasterCollection { const NAME: &'static str = "Windows.UI.Composition.CompositionProjectedShadowCasterCollection"; @@ -12675,31 +10818,27 @@ impl ::core::iter::IntoIterator for &CompositionProjectedShadowCasterCollection self.First().unwrap() } } -::windows_core::imp::interface_hierarchy!(CompositionProjectedShadowCasterCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CompositionProjectedShadowCasterCollection {} -impl ::windows_core::CanTryInto for CompositionProjectedShadowCasterCollection {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for CompositionProjectedShadowCasterCollection {} -impl ::windows_core::CanTryInto for CompositionProjectedShadowCasterCollection {} unsafe impl ::core::marker::Send for CompositionProjectedShadowCasterCollection {} unsafe impl ::core::marker::Sync for CompositionProjectedShadowCasterCollection {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CompositionProjectedShadowReceiver(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CompositionProjectedShadowReceiver, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(CompositionProjectedShadowReceiver, IAnimationObject, super::super::Foundation::IClosable, CompositionObject); impl CompositionProjectedShadowReceiver { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -12708,14 +10847,14 @@ impl CompositionProjectedShadowReceiver { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -12723,28 +10862,28 @@ impl CompositionProjectedShadowReceiver { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -12754,34 +10893,34 @@ impl CompositionProjectedShadowReceiver { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -12789,11 +10928,11 @@ impl CompositionProjectedShadowReceiver { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } pub fn ReceivingVisual(&self) -> ::windows_core::Result { let this = self; @@ -12804,10 +10943,10 @@ impl CompositionProjectedShadowReceiver { } pub fn SetReceivingVisual(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetReceivingVisual)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetReceivingVisual)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } } impl ::windows_core::RuntimeType for CompositionProjectedShadowReceiver { @@ -12815,36 +10954,33 @@ impl ::windows_core::RuntimeType for CompositionProjectedShadowReceiver { } unsafe impl ::windows_core::Interface for CompositionProjectedShadowReceiver { type Vtable = ICompositionProjectedShadowReceiver_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CompositionProjectedShadowReceiver { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CompositionProjectedShadowReceiver { const NAME: &'static str = "Windows.UI.Composition.CompositionProjectedShadowReceiver"; } -::windows_core::imp::interface_hierarchy!(CompositionProjectedShadowReceiver, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CompositionProjectedShadowReceiver {} -impl ::windows_core::CanTryInto for CompositionProjectedShadowReceiver {} -impl ::windows_core::CanTryInto for CompositionProjectedShadowReceiver {} unsafe impl ::core::marker::Send for CompositionProjectedShadowReceiver {} unsafe impl ::core::marker::Sync for CompositionProjectedShadowReceiver {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CompositionProjectedShadowReceiverUnorderedCollection(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CompositionProjectedShadowReceiverUnorderedCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(CompositionProjectedShadowReceiverUnorderedCollection, IAnimationObject, super::super::Foundation::IClosable, super::super::Foundation::Collections::IIterable::, CompositionObject); impl CompositionProjectedShadowReceiverUnorderedCollection { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -12853,14 +10989,14 @@ impl CompositionProjectedShadowReceiverUnorderedCollection { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -12868,28 +11004,28 @@ impl CompositionProjectedShadowReceiverUnorderedCollection { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -12899,34 +11035,34 @@ impl CompositionProjectedShadowReceiverUnorderedCollection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -12934,11 +11070,11 @@ impl CompositionProjectedShadowReceiverUnorderedCollection { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } pub fn Add(&self, value: P0) -> ::windows_core::Result<()> where @@ -12968,7 +11104,7 @@ impl CompositionProjectedShadowReceiverUnorderedCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -12980,9 +11116,7 @@ impl ::windows_core::RuntimeType for CompositionProjectedShadowReceiverUnordered } unsafe impl ::windows_core::Interface for CompositionProjectedShadowReceiverUnorderedCollection { type Vtable = ICompositionProjectedShadowReceiverUnorderedCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CompositionProjectedShadowReceiverUnorderedCollection { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CompositionProjectedShadowReceiverUnorderedCollection { const NAME: &'static str = "Windows.UI.Composition.CompositionProjectedShadowReceiverUnorderedCollection"; @@ -13003,31 +11137,27 @@ impl ::core::iter::IntoIterator for &CompositionProjectedShadowReceiverUnordered self.First().unwrap() } } -::windows_core::imp::interface_hierarchy!(CompositionProjectedShadowReceiverUnorderedCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CompositionProjectedShadowReceiverUnorderedCollection {} -impl ::windows_core::CanTryInto for CompositionProjectedShadowReceiverUnorderedCollection {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for CompositionProjectedShadowReceiverUnorderedCollection {} -impl ::windows_core::CanTryInto for CompositionProjectedShadowReceiverUnorderedCollection {} unsafe impl ::core::marker::Send for CompositionProjectedShadowReceiverUnorderedCollection {} unsafe impl ::core::marker::Sync for CompositionProjectedShadowReceiverUnorderedCollection {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CompositionPropertySet(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CompositionPropertySet, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(CompositionPropertySet, IAnimationObject, super::super::Foundation::IClosable, CompositionObject); impl CompositionPropertySet { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -13036,14 +11166,14 @@ impl CompositionPropertySet { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -13051,28 +11181,28 @@ impl CompositionPropertySet { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -13082,34 +11212,34 @@ impl CompositionPropertySet { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -13117,11 +11247,11 @@ impl CompositionPropertySet { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } pub fn InsertColor(&self, propertyname: &::windows_core::HSTRING, value: super::Color) -> ::windows_core::Result<()> { let this = self; @@ -13236,11 +11366,11 @@ impl CompositionPropertySet { } } pub fn InsertBoolean(&self, propertyname: &::windows_core::HSTRING, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).InsertBoolean)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), value).ok() } } pub fn TryGetBoolean(&self, propertyname: &::windows_core::HSTRING, value: &mut bool) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetBoolean)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), value, &mut result__).from_abi(result__) @@ -13252,38 +11382,34 @@ impl ::windows_core::RuntimeType for CompositionPropertySet { } unsafe impl ::windows_core::Interface for CompositionPropertySet { type Vtable = ICompositionPropertySet_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CompositionPropertySet { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CompositionPropertySet { const NAME: &'static str = "Windows.UI.Composition.CompositionPropertySet"; } -::windows_core::imp::interface_hierarchy!(CompositionPropertySet, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CompositionPropertySet {} -impl ::windows_core::CanTryInto for CompositionPropertySet {} -impl ::windows_core::CanTryInto for CompositionPropertySet {} unsafe impl ::core::marker::Send for CompositionPropertySet {} unsafe impl ::core::marker::Sync for CompositionPropertySet {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CompositionRadialGradientBrush(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CompositionRadialGradientBrush, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(CompositionRadialGradientBrush, IAnimationObject, super::super::Foundation::IClosable, CompositionGradientBrush, CompositionBrush, CompositionObject); impl CompositionRadialGradientBrush { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn AnchorPoint(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AnchorPoint)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -13292,13 +11418,13 @@ impl CompositionRadialGradientBrush { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetAnchorPoint(&self, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetAnchorPoint)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn CenterPoint(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CenterPoint)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -13307,42 +11433,42 @@ impl CompositionRadialGradientBrush { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetCenterPoint(&self, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCenterPoint)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn ColorStops(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ColorStops)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ExtendMode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ExtendMode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetExtendMode(&self, value: CompositionGradientExtendMode) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetExtendMode)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn InterpolationSpace(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).InterpolationSpace)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetInterpolationSpace(&self, value: CompositionColorSpace) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetInterpolationSpace)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn Offset(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Offset)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -13351,35 +11477,35 @@ impl CompositionRadialGradientBrush { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetOffset(&self, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetOffset)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn RotationAngle(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RotationAngle)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetRotationAngle(&self, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRotationAngle)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn RotationAngleInDegrees(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RotationAngleInDegrees)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetRotationAngleInDegrees(&self, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRotationAngleInDegrees)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn Scale(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Scale)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -13388,13 +11514,13 @@ impl CompositionRadialGradientBrush { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetScale(&self, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetScale)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn TransformMatrix(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TransformMatrix)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -13403,22 +11529,22 @@ impl CompositionRadialGradientBrush { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetTransformMatrix(&self, value: super::super::Foundation::Numerics::Matrix3x2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetTransformMatrix)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn MappingMode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MappingMode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetMappingMode(&self, value: CompositionMappingMode) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMappingMode)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -13427,14 +11553,14 @@ impl CompositionRadialGradientBrush { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -13442,28 +11568,28 @@ impl CompositionRadialGradientBrush { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -13473,34 +11599,34 @@ impl CompositionRadialGradientBrush { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -13508,11 +11634,11 @@ impl CompositionRadialGradientBrush { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] @@ -13565,71 +11691,65 @@ impl ::windows_core::RuntimeType for CompositionRadialGradientBrush { } unsafe impl ::windows_core::Interface for CompositionRadialGradientBrush { type Vtable = ICompositionRadialGradientBrush_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CompositionRadialGradientBrush { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CompositionRadialGradientBrush { const NAME: &'static str = "Windows.UI.Composition.CompositionRadialGradientBrush"; } -::windows_core::imp::interface_hierarchy!(CompositionRadialGradientBrush, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CompositionRadialGradientBrush {} -impl ::windows_core::CanTryInto for CompositionRadialGradientBrush {} -impl ::windows_core::CanTryInto for CompositionRadialGradientBrush {} -impl ::windows_core::CanTryInto for CompositionRadialGradientBrush {} -impl ::windows_core::CanTryInto for CompositionRadialGradientBrush {} unsafe impl ::core::marker::Send for CompositionRadialGradientBrush {} unsafe impl ::core::marker::Sync for CompositionRadialGradientBrush {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CompositionRectangleGeometry(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CompositionRectangleGeometry, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(CompositionRectangleGeometry, IAnimationObject, super::super::Foundation::IClosable, CompositionGeometry, CompositionObject); impl CompositionRectangleGeometry { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn TrimEnd(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TrimEnd)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetTrimEnd(&self, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetTrimEnd)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn TrimOffset(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TrimOffset)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetTrimOffset(&self, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetTrimOffset)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn TrimStart(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TrimStart)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetTrimStart(&self, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetTrimStart)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -13638,14 +11758,14 @@ impl CompositionRectangleGeometry { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -13653,28 +11773,28 @@ impl CompositionRectangleGeometry { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -13684,34 +11804,34 @@ impl CompositionRectangleGeometry { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -13719,11 +11839,11 @@ impl CompositionRectangleGeometry { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] @@ -13761,70 +11881,65 @@ impl ::windows_core::RuntimeType for CompositionRectangleGeometry { } unsafe impl ::windows_core::Interface for CompositionRectangleGeometry { type Vtable = ICompositionRectangleGeometry_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CompositionRectangleGeometry { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CompositionRectangleGeometry { const NAME: &'static str = "Windows.UI.Composition.CompositionRectangleGeometry"; } -::windows_core::imp::interface_hierarchy!(CompositionRectangleGeometry, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CompositionRectangleGeometry {} -impl ::windows_core::CanTryInto for CompositionRectangleGeometry {} -impl ::windows_core::CanTryInto for CompositionRectangleGeometry {} -impl ::windows_core::CanTryInto for CompositionRectangleGeometry {} unsafe impl ::core::marker::Send for CompositionRectangleGeometry {} unsafe impl ::core::marker::Sync for CompositionRectangleGeometry {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CompositionRoundedRectangleGeometry(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CompositionRoundedRectangleGeometry, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(CompositionRoundedRectangleGeometry, IAnimationObject, super::super::Foundation::IClosable, CompositionGeometry, CompositionObject); impl CompositionRoundedRectangleGeometry { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn TrimEnd(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TrimEnd)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetTrimEnd(&self, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetTrimEnd)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn TrimOffset(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TrimOffset)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetTrimOffset(&self, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetTrimOffset)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn TrimStart(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TrimStart)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetTrimStart(&self, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetTrimStart)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -13833,14 +11948,14 @@ impl CompositionRoundedRectangleGeometry { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -13848,28 +11963,28 @@ impl CompositionRoundedRectangleGeometry { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -13879,34 +11994,34 @@ impl CompositionRoundedRectangleGeometry { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -13914,11 +12029,11 @@ impl CompositionRoundedRectangleGeometry { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] @@ -13971,37 +12086,32 @@ impl ::windows_core::RuntimeType for CompositionRoundedRectangleGeometry { } unsafe impl ::windows_core::Interface for CompositionRoundedRectangleGeometry { type Vtable = ICompositionRoundedRectangleGeometry_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CompositionRoundedRectangleGeometry { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CompositionRoundedRectangleGeometry { const NAME: &'static str = "Windows.UI.Composition.CompositionRoundedRectangleGeometry"; } -::windows_core::imp::interface_hierarchy!(CompositionRoundedRectangleGeometry, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CompositionRoundedRectangleGeometry {} -impl ::windows_core::CanTryInto for CompositionRoundedRectangleGeometry {} -impl ::windows_core::CanTryInto for CompositionRoundedRectangleGeometry {} -impl ::windows_core::CanTryInto for CompositionRoundedRectangleGeometry {} unsafe impl ::core::marker::Send for CompositionRoundedRectangleGeometry {} unsafe impl ::core::marker::Sync for CompositionRoundedRectangleGeometry {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CompositionScopedBatch(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CompositionScopedBatch, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(CompositionScopedBatch, IAnimationObject, super::super::Foundation::IClosable, CompositionObject); impl CompositionScopedBatch { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -14010,14 +12120,14 @@ impl CompositionScopedBatch { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -14025,28 +12135,28 @@ impl CompositionScopedBatch { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -14056,34 +12166,34 @@ impl CompositionScopedBatch { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -14091,11 +12201,11 @@ impl CompositionScopedBatch { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } pub fn IsActive(&self) -> ::windows_core::Result { let this = self; @@ -14143,36 +12253,32 @@ impl ::windows_core::RuntimeType for CompositionScopedBatch { } unsafe impl ::windows_core::Interface for CompositionScopedBatch { type Vtable = ICompositionScopedBatch_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CompositionScopedBatch { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CompositionScopedBatch { const NAME: &'static str = "Windows.UI.Composition.CompositionScopedBatch"; } -::windows_core::imp::interface_hierarchy!(CompositionScopedBatch, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CompositionScopedBatch {} -impl ::windows_core::CanTryInto for CompositionScopedBatch {} -impl ::windows_core::CanTryInto for CompositionScopedBatch {} unsafe impl ::core::marker::Send for CompositionScopedBatch {} unsafe impl ::core::marker::Sync for CompositionScopedBatch {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CompositionShadow(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CompositionShadow, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(CompositionShadow, IAnimationObject, super::super::Foundation::IClosable, CompositionObject); impl CompositionShadow { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -14181,14 +12287,14 @@ impl CompositionShadow { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -14196,28 +12302,28 @@ impl CompositionShadow { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -14227,34 +12333,34 @@ impl CompositionShadow { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -14262,11 +12368,11 @@ impl CompositionShadow { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } } impl ::windows_core::RuntimeType for CompositionShadow { @@ -14274,36 +12380,32 @@ impl ::windows_core::RuntimeType for CompositionShadow { } unsafe impl ::windows_core::Interface for CompositionShadow { type Vtable = ICompositionShadow_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CompositionShadow { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CompositionShadow { const NAME: &'static str = "Windows.UI.Composition.CompositionShadow"; } -::windows_core::imp::interface_hierarchy!(CompositionShadow, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CompositionShadow {} -impl ::windows_core::CanTryInto for CompositionShadow {} -impl ::windows_core::CanTryInto for CompositionShadow {} unsafe impl ::core::marker::Send for CompositionShadow {} unsafe impl ::core::marker::Sync for CompositionShadow {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CompositionShape(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CompositionShape, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(CompositionShape, IAnimationObject, super::super::Foundation::IClosable, CompositionObject); impl CompositionShape { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -14312,14 +12414,14 @@ impl CompositionShape { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -14327,28 +12429,28 @@ impl CompositionShape { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -14358,34 +12460,34 @@ impl CompositionShape { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -14393,11 +12495,11 @@ impl CompositionShape { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] @@ -14487,17 +12589,11 @@ impl ::windows_core::RuntimeType for CompositionShape { } unsafe impl ::windows_core::Interface for CompositionShape { type Vtable = ICompositionShape_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CompositionShape { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CompositionShape { const NAME: &'static str = "Windows.UI.Composition.CompositionShape"; } -::windows_core::imp::interface_hierarchy!(CompositionShape, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CompositionShape {} -impl ::windows_core::CanTryInto for CompositionShape {} -impl ::windows_core::CanTryInto for CompositionShape {} unsafe impl ::core::marker::Send for CompositionShape {} unsafe impl ::core::marker::Sync for CompositionShape {} #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -14506,20 +12602,24 @@ unsafe impl ::core::marker::Sync for CompositionShape {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CompositionShapeCollection(::windows_core::IUnknown); #[cfg(feature = "Foundation_Collections")] +::windows_core::imp::interface_hierarchy!(CompositionShapeCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(CompositionShapeCollection, IAnimationObject, super::super::Foundation::IClosable, super::super::Foundation::Collections::IIterable::, super::super::Foundation::Collections::IVector::, CompositionObject); +#[cfg(feature = "Foundation_Collections")] impl CompositionShapeCollection { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -14528,14 +12628,14 @@ impl CompositionShapeCollection { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -14543,28 +12643,28 @@ impl CompositionShapeCollection { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -14574,34 +12674,34 @@ impl CompositionShapeCollection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -14609,16 +12709,16 @@ impl CompositionShapeCollection { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -14655,31 +12755,31 @@ impl CompositionShapeCollection { #[cfg(feature = "Foundation_Collections")] pub fn IndexOf(&self, value: P0, index: &mut u32) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).IndexOf)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi(), index, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).IndexOf)(::windows_core::Interface::as_raw(this), value.into_param().abi(), index, &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn SetAt(&self, index: u32, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetAt)(::windows_core::Interface::as_raw(this), index, value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetAt)(::windows_core::Interface::as_raw(this), index, value.into_param().abi()).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn InsertAt(&self, index: u32, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).InsertAt)(::windows_core::Interface::as_raw(this), index, value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).InsertAt)(::windows_core::Interface::as_raw(this), index, value.into_param().abi()).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -14691,10 +12791,10 @@ impl CompositionShapeCollection { #[cfg(feature = "Foundation_Collections")] pub fn Append(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).Append)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).Append)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -14731,10 +12831,7 @@ impl ::windows_core::RuntimeType for CompositionShapeCollection { #[cfg(feature = "Foundation_Collections")] unsafe impl ::windows_core::Interface for CompositionShapeCollection { type Vtable = super::super::Foundation::Collections::IVector_Vtbl; -} -#[cfg(feature = "Foundation_Collections")] -unsafe impl ::windows_core::ComInterface for CompositionShapeCollection { - const IID: ::windows_core::GUID = as ::windows_core::ComInterface>::IID; + const IID: ::windows_core::GUID = as ::windows_core::Interface>::IID; } #[cfg(feature = "Foundation_Collections")] impl ::windows_core::RuntimeName for CompositionShapeCollection { @@ -14753,42 +12850,32 @@ impl ::core::iter::IntoIterator for &CompositionShapeCollection { type Item = CompositionShape; type IntoIter = super::super::Foundation::Collections::VectorIterator; fn into_iter(self) -> Self::IntoIter { - super::super::Foundation::Collections::VectorIterator::new(::windows_core::ComInterface::cast(self).ok()) + super::super::Foundation::Collections::VectorIterator::new(::windows_core::Interface::cast(self).ok()) } } #[cfg(feature = "Foundation_Collections")] -::windows_core::imp::interface_hierarchy!(CompositionShapeCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto for CompositionShapeCollection {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto for CompositionShapeCollection {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for CompositionShapeCollection {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for CompositionShapeCollection {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto for CompositionShapeCollection {} -#[cfg(feature = "Foundation_Collections")] unsafe impl ::core::marker::Send for CompositionShapeCollection {} #[cfg(feature = "Foundation_Collections")] unsafe impl ::core::marker::Sync for CompositionShapeCollection {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CompositionSpriteShape(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CompositionSpriteShape, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(CompositionSpriteShape, IAnimationObject, super::super::Foundation::IClosable, CompositionShape, CompositionObject); impl CompositionSpriteShape { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -14797,14 +12884,14 @@ impl CompositionSpriteShape { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -14812,28 +12899,28 @@ impl CompositionSpriteShape { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -14843,34 +12930,34 @@ impl CompositionSpriteShape { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -14878,16 +12965,16 @@ impl CompositionSpriteShape { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn CenterPoint(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CenterPoint)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -14896,13 +12983,13 @@ impl CompositionSpriteShape { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetCenterPoint(&self, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCenterPoint)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn Offset(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Offset)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -14911,35 +12998,35 @@ impl CompositionSpriteShape { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetOffset(&self, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetOffset)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn RotationAngle(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RotationAngle)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetRotationAngle(&self, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRotationAngle)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn RotationAngleInDegrees(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RotationAngleInDegrees)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetRotationAngleInDegrees(&self, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRotationAngleInDegrees)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn Scale(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Scale)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -14948,13 +13035,13 @@ impl CompositionSpriteShape { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetScale(&self, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetScale)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn TransformMatrix(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TransformMatrix)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -14963,7 +13050,7 @@ impl CompositionSpriteShape { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetTransformMatrix(&self, value: super::super::Foundation::Numerics::Matrix3x2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetTransformMatrix)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn FillBrush(&self) -> ::windows_core::Result { @@ -14975,10 +13062,10 @@ impl CompositionSpriteShape { } pub fn SetFillBrush(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetFillBrush)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetFillBrush)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn Geometry(&self) -> ::windows_core::Result { let this = self; @@ -14989,10 +13076,10 @@ impl CompositionSpriteShape { } pub fn SetGeometry(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetGeometry)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetGeometry)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn IsStrokeNonScaling(&self) -> ::windows_core::Result { let this = self; @@ -15014,10 +13101,10 @@ impl CompositionSpriteShape { } pub fn SetStrokeBrush(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetStrokeBrush)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetStrokeBrush)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -15111,18 +13198,11 @@ impl ::windows_core::RuntimeType for CompositionSpriteShape { } unsafe impl ::windows_core::Interface for CompositionSpriteShape { type Vtable = ICompositionSpriteShape_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CompositionSpriteShape { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CompositionSpriteShape { const NAME: &'static str = "Windows.UI.Composition.CompositionSpriteShape"; } -::windows_core::imp::interface_hierarchy!(CompositionSpriteShape, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CompositionSpriteShape {} -impl ::windows_core::CanTryInto for CompositionSpriteShape {} -impl ::windows_core::CanTryInto for CompositionSpriteShape {} -impl ::windows_core::CanTryInto for CompositionSpriteShape {} unsafe impl ::core::marker::Send for CompositionSpriteShape {} unsafe impl ::core::marker::Sync for CompositionSpriteShape {} #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -15131,20 +13211,24 @@ unsafe impl ::core::marker::Sync for CompositionSpriteShape {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CompositionStrokeDashArray(::windows_core::IUnknown); #[cfg(feature = "Foundation_Collections")] +::windows_core::imp::interface_hierarchy!(CompositionStrokeDashArray, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(CompositionStrokeDashArray, IAnimationObject, super::super::Foundation::IClosable, super::super::Foundation::Collections::IIterable::, super::super::Foundation::Collections::IVector::, CompositionObject); +#[cfg(feature = "Foundation_Collections")] impl CompositionStrokeDashArray { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -15153,14 +13237,14 @@ impl CompositionStrokeDashArray { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -15168,28 +13252,28 @@ impl CompositionStrokeDashArray { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -15199,34 +13283,34 @@ impl CompositionStrokeDashArray { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -15234,16 +13318,16 @@ impl CompositionStrokeDashArray { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -15344,10 +13428,7 @@ impl ::windows_core::RuntimeType for CompositionStrokeDashArray { #[cfg(feature = "Foundation_Collections")] unsafe impl ::windows_core::Interface for CompositionStrokeDashArray { type Vtable = super::super::Foundation::Collections::IVector_Vtbl; -} -#[cfg(feature = "Foundation_Collections")] -unsafe impl ::windows_core::ComInterface for CompositionStrokeDashArray { - const IID: ::windows_core::GUID = as ::windows_core::ComInterface>::IID; + const IID: ::windows_core::GUID = as ::windows_core::Interface>::IID; } #[cfg(feature = "Foundation_Collections")] impl ::windows_core::RuntimeName for CompositionStrokeDashArray { @@ -15366,42 +13447,32 @@ impl ::core::iter::IntoIterator for &CompositionStrokeDashArray { type Item = f32; type IntoIter = super::super::Foundation::Collections::VectorIterator; fn into_iter(self) -> Self::IntoIter { - super::super::Foundation::Collections::VectorIterator::new(::windows_core::ComInterface::cast(self).ok()) + super::super::Foundation::Collections::VectorIterator::new(::windows_core::Interface::cast(self).ok()) } } #[cfg(feature = "Foundation_Collections")] -::windows_core::imp::interface_hierarchy!(CompositionStrokeDashArray, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto for CompositionStrokeDashArray {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto for CompositionStrokeDashArray {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for CompositionStrokeDashArray {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for CompositionStrokeDashArray {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto for CompositionStrokeDashArray {} -#[cfg(feature = "Foundation_Collections")] unsafe impl ::core::marker::Send for CompositionStrokeDashArray {} #[cfg(feature = "Foundation_Collections")] unsafe impl ::core::marker::Sync for CompositionStrokeDashArray {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CompositionSurfaceBrush(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CompositionSurfaceBrush, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(CompositionSurfaceBrush, IAnimationObject, super::super::Foundation::IClosable, CompositionBrush, CompositionObject); impl CompositionSurfaceBrush { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -15410,14 +13481,14 @@ impl CompositionSurfaceBrush { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -15425,28 +13496,28 @@ impl CompositionSurfaceBrush { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -15456,34 +13527,34 @@ impl CompositionSurfaceBrush { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -15491,11 +13562,11 @@ impl CompositionSurfaceBrush { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } pub fn BitmapInterpolationMode(&self) -> ::windows_core::Result { let this = self; @@ -15539,10 +13610,10 @@ impl CompositionSurfaceBrush { } pub fn SetSurface(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetSurface)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetSurface)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn VerticalAlignmentRatio(&self) -> ::windows_core::Result { let this = self; @@ -15558,7 +13629,7 @@ impl CompositionSurfaceBrush { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn AnchorPoint(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AnchorPoint)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -15567,13 +13638,13 @@ impl CompositionSurfaceBrush { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetAnchorPoint(&self, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetAnchorPoint)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn CenterPoint(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CenterPoint)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -15582,13 +13653,13 @@ impl CompositionSurfaceBrush { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetCenterPoint(&self, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCenterPoint)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn Offset(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Offset)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -15597,35 +13668,35 @@ impl CompositionSurfaceBrush { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetOffset(&self, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetOffset)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn RotationAngle(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RotationAngle)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetRotationAngle(&self, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRotationAngle)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn RotationAngleInDegrees(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RotationAngleInDegrees)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetRotationAngleInDegrees(&self, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRotationAngleInDegrees)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn Scale(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Scale)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -15634,13 +13705,13 @@ impl CompositionSurfaceBrush { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetScale(&self, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetScale)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn TransformMatrix(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TransformMatrix)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -15649,18 +13720,18 @@ impl CompositionSurfaceBrush { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetTransformMatrix(&self, value: super::super::Foundation::Numerics::Matrix3x2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetTransformMatrix)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn SnapToPixels(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SnapToPixels)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetSnapToPixels(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetSnapToPixels)(::windows_core::Interface::as_raw(this), value).ok() } } } @@ -15669,37 +13740,32 @@ impl ::windows_core::RuntimeType for CompositionSurfaceBrush { } unsafe impl ::windows_core::Interface for CompositionSurfaceBrush { type Vtable = ICompositionSurfaceBrush_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CompositionSurfaceBrush { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CompositionSurfaceBrush { const NAME: &'static str = "Windows.UI.Composition.CompositionSurfaceBrush"; } -::windows_core::imp::interface_hierarchy!(CompositionSurfaceBrush, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CompositionSurfaceBrush {} -impl ::windows_core::CanTryInto for CompositionSurfaceBrush {} -impl ::windows_core::CanTryInto for CompositionSurfaceBrush {} -impl ::windows_core::CanTryInto for CompositionSurfaceBrush {} unsafe impl ::core::marker::Send for CompositionSurfaceBrush {} unsafe impl ::core::marker::Sync for CompositionSurfaceBrush {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CompositionTarget(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CompositionTarget, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(CompositionTarget, IAnimationObject, super::super::Foundation::IClosable, CompositionObject); impl CompositionTarget { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -15708,14 +13774,14 @@ impl CompositionTarget { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -15723,28 +13789,28 @@ impl CompositionTarget { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -15754,34 +13820,34 @@ impl CompositionTarget { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -15789,11 +13855,11 @@ impl CompositionTarget { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } pub fn Root(&self) -> ::windows_core::Result { let this = self; @@ -15804,10 +13870,10 @@ impl CompositionTarget { } pub fn SetRoot(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetRoot)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetRoot)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } } impl ::windows_core::RuntimeType for CompositionTarget { @@ -15815,36 +13881,32 @@ impl ::windows_core::RuntimeType for CompositionTarget { } unsafe impl ::windows_core::Interface for CompositionTarget { type Vtable = ICompositionTarget_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CompositionTarget { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CompositionTarget { const NAME: &'static str = "Windows.UI.Composition.CompositionTarget"; } -::windows_core::imp::interface_hierarchy!(CompositionTarget, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CompositionTarget {} -impl ::windows_core::CanTryInto for CompositionTarget {} -impl ::windows_core::CanTryInto for CompositionTarget {} unsafe impl ::core::marker::Send for CompositionTarget {} unsafe impl ::core::marker::Sync for CompositionTarget {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CompositionTexture(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CompositionTexture, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(CompositionTexture, IAnimationObject, super::super::Foundation::IClosable, ICompositionSurface, CompositionObject); impl CompositionTexture { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -15853,14 +13915,14 @@ impl CompositionTexture { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -15868,28 +13930,28 @@ impl CompositionTexture { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -15899,34 +13961,34 @@ impl CompositionTexture { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -15934,11 +13996,11 @@ impl CompositionTexture { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } #[doc = "Required features: `\"Graphics\"`"] #[cfg(feature = "Graphics")] @@ -15991,37 +14053,32 @@ impl ::windows_core::RuntimeType for CompositionTexture { } unsafe impl ::windows_core::Interface for CompositionTexture { type Vtable = ICompositionTexture_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CompositionTexture { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CompositionTexture { const NAME: &'static str = "Windows.UI.Composition.CompositionTexture"; } -::windows_core::imp::interface_hierarchy!(CompositionTexture, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CompositionTexture {} -impl ::windows_core::CanTryInto for CompositionTexture {} -impl ::windows_core::CanTryInto for CompositionTexture {} -impl ::windows_core::CanTryInto for CompositionTexture {} unsafe impl ::core::marker::Send for CompositionTexture {} unsafe impl ::core::marker::Sync for CompositionTexture {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CompositionTransform(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CompositionTransform, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(CompositionTransform, IAnimationObject, super::super::Foundation::IClosable, CompositionObject); impl CompositionTransform { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -16030,14 +14087,14 @@ impl CompositionTransform { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -16045,28 +14102,28 @@ impl CompositionTransform { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -16076,34 +14133,34 @@ impl CompositionTransform { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -16111,11 +14168,11 @@ impl CompositionTransform { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } } impl ::windows_core::RuntimeType for CompositionTransform { @@ -16123,36 +14180,32 @@ impl ::windows_core::RuntimeType for CompositionTransform { } unsafe impl ::windows_core::Interface for CompositionTransform { type Vtable = ICompositionTransform_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CompositionTransform { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CompositionTransform { const NAME: &'static str = "Windows.UI.Composition.CompositionTransform"; } -::windows_core::imp::interface_hierarchy!(CompositionTransform, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CompositionTransform {} -impl ::windows_core::CanTryInto for CompositionTransform {} -impl ::windows_core::CanTryInto for CompositionTransform {} unsafe impl ::core::marker::Send for CompositionTransform {} unsafe impl ::core::marker::Sync for CompositionTransform {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CompositionViewBox(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CompositionViewBox, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(CompositionViewBox, IAnimationObject, super::super::Foundation::IClosable, CompositionObject); impl CompositionViewBox { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -16161,14 +14214,14 @@ impl CompositionViewBox { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -16176,28 +14229,28 @@ impl CompositionViewBox { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -16207,34 +14260,34 @@ impl CompositionViewBox { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -16242,11 +14295,11 @@ impl CompositionViewBox { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } pub fn HorizontalAlignmentRatio(&self) -> ::windows_core::Result { let this = self; @@ -16317,38 +14370,34 @@ impl ::windows_core::RuntimeType for CompositionViewBox { } unsafe impl ::windows_core::Interface for CompositionViewBox { type Vtable = ICompositionViewBox_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CompositionViewBox { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CompositionViewBox { const NAME: &'static str = "Windows.UI.Composition.CompositionViewBox"; } -::windows_core::imp::interface_hierarchy!(CompositionViewBox, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CompositionViewBox {} -impl ::windows_core::CanTryInto for CompositionViewBox {} -impl ::windows_core::CanTryInto for CompositionViewBox {} unsafe impl ::core::marker::Send for CompositionViewBox {} unsafe impl ::core::marker::Sync for CompositionViewBox {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CompositionVirtualDrawingSurface(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CompositionVirtualDrawingSurface, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(CompositionVirtualDrawingSurface, IAnimationObject, super::super::Foundation::IClosable, ICompositionSurface, CompositionDrawingSurface, CompositionObject); impl CompositionVirtualDrawingSurface { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Graphics_DirectX\"`"] #[cfg(feature = "Graphics_DirectX")] pub fn AlphaMode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AlphaMode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -16357,14 +14406,14 @@ impl CompositionVirtualDrawingSurface { #[doc = "Required features: `\"Graphics_DirectX\"`"] #[cfg(feature = "Graphics_DirectX")] pub fn PixelFormat(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PixelFormat)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Size(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Size)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -16373,7 +14422,7 @@ impl CompositionVirtualDrawingSurface { #[doc = "Required features: `\"Graphics\"`"] #[cfg(feature = "Graphics")] pub fn SizeInt32(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SizeInt32)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -16382,35 +14431,35 @@ impl CompositionVirtualDrawingSurface { #[doc = "Required features: `\"Graphics\"`"] #[cfg(feature = "Graphics")] pub fn Resize(&self, sizepixels: super::super::Graphics::SizeInt32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Resize)(::windows_core::Interface::as_raw(this), sizepixels).ok() } } #[doc = "Required features: `\"Graphics\"`"] #[cfg(feature = "Graphics")] pub fn Scroll(&self, offset: super::super::Graphics::PointInt32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Scroll)(::windows_core::Interface::as_raw(this), offset).ok() } } #[doc = "Required features: `\"Graphics\"`"] #[cfg(feature = "Graphics")] pub fn ScrollRect(&self, offset: super::super::Graphics::PointInt32, scrollrect: super::super::Graphics::RectInt32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ScrollRect)(::windows_core::Interface::as_raw(this), offset, scrollrect).ok() } } #[doc = "Required features: `\"Graphics\"`"] #[cfg(feature = "Graphics")] pub fn ScrollWithClip(&self, offset: super::super::Graphics::PointInt32, cliprect: super::super::Graphics::RectInt32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ScrollWithClip)(::windows_core::Interface::as_raw(this), offset, cliprect).ok() } } #[doc = "Required features: `\"Graphics\"`"] #[cfg(feature = "Graphics")] pub fn ScrollRectWithClip(&self, offset: super::super::Graphics::PointInt32, cliprect: super::super::Graphics::RectInt32, scrollrect: super::super::Graphics::RectInt32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ScrollRectWithClip)(::windows_core::Interface::as_raw(this), offset, cliprect, scrollrect).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -16419,14 +14468,14 @@ impl CompositionVirtualDrawingSurface { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -16434,28 +14483,28 @@ impl CompositionVirtualDrawingSurface { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -16465,34 +14514,34 @@ impl CompositionVirtualDrawingSurface { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -16500,11 +14549,11 @@ impl CompositionVirtualDrawingSurface { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } #[doc = "Required features: `\"Graphics\"`"] #[cfg(feature = "Graphics")] @@ -16518,38 +14567,32 @@ impl ::windows_core::RuntimeType for CompositionVirtualDrawingSurface { } unsafe impl ::windows_core::Interface for CompositionVirtualDrawingSurface { type Vtable = ICompositionVirtualDrawingSurface_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CompositionVirtualDrawingSurface { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CompositionVirtualDrawingSurface { const NAME: &'static str = "Windows.UI.Composition.CompositionVirtualDrawingSurface"; } -::windows_core::imp::interface_hierarchy!(CompositionVirtualDrawingSurface, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CompositionVirtualDrawingSurface {} -impl ::windows_core::CanTryInto for CompositionVirtualDrawingSurface {} -impl ::windows_core::CanTryInto for CompositionVirtualDrawingSurface {} -impl ::windows_core::CanTryInto for CompositionVirtualDrawingSurface {} -impl ::windows_core::CanTryInto for CompositionVirtualDrawingSurface {} unsafe impl ::core::marker::Send for CompositionVirtualDrawingSurface {} unsafe impl ::core::marker::Sync for CompositionVirtualDrawingSurface {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CompositionVisualSurface(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CompositionVisualSurface, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(CompositionVisualSurface, IAnimationObject, super::super::Foundation::IClosable, ICompositionSurface, CompositionObject); impl CompositionVisualSurface { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -16558,14 +14601,14 @@ impl CompositionVisualSurface { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -16573,28 +14616,28 @@ impl CompositionVisualSurface { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -16604,34 +14647,34 @@ impl CompositionVisualSurface { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -16639,11 +14682,11 @@ impl CompositionVisualSurface { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } pub fn SourceVisual(&self) -> ::windows_core::Result { let this = self; @@ -16654,10 +14697,10 @@ impl CompositionVisualSurface { } pub fn SetSourceVisual(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetSourceVisual)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetSourceVisual)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] @@ -16695,23 +14738,18 @@ impl ::windows_core::RuntimeType for CompositionVisualSurface { } unsafe impl ::windows_core::Interface for CompositionVisualSurface { type Vtable = ICompositionVisualSurface_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CompositionVisualSurface { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CompositionVisualSurface { const NAME: &'static str = "Windows.UI.Composition.CompositionVisualSurface"; } -::windows_core::imp::interface_hierarchy!(CompositionVisualSurface, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CompositionVisualSurface {} -impl ::windows_core::CanTryInto for CompositionVisualSurface {} -impl ::windows_core::CanTryInto for CompositionVisualSurface {} -impl ::windows_core::CanTryInto for CompositionVisualSurface {} unsafe impl ::core::marker::Send for CompositionVisualSurface {} unsafe impl ::core::marker::Sync for CompositionVisualSurface {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Compositor(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Compositor, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(Compositor, super::super::Foundation::IClosable); impl Compositor { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -16721,7 +14759,7 @@ impl Compositor { SHARED.call(callback) } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn CreateColorKeyFrameAnimation(&self) -> ::windows_core::Result { @@ -16765,25 +14803,25 @@ impl Compositor { #[cfg(feature = "Graphics_Effects")] pub fn CreateEffectFactory(&self, graphicseffect: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateEffectFactory)(::windows_core::Interface::as_raw(this), graphicseffect.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateEffectFactory)(::windows_core::Interface::as_raw(this), graphicseffect.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Graphics_Effects\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Graphics_Effects"))] pub fn CreateEffectFactoryWithProperties(&self, graphicseffect: P0, animatableproperties: P1) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam>, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateEffectFactoryWithProperties)(::windows_core::Interface::as_raw(this), graphicseffect.try_into_param()?.abi(), animatableproperties.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateEffectFactoryWithProperties)(::windows_core::Interface::as_raw(this), graphicseffect.into_param().abi(), animatableproperties.into_param().abi(), &mut result__).from_abi(result__) } } pub fn CreateExpressionAnimation(&self) -> ::windows_core::Result { @@ -16865,12 +14903,12 @@ impl Compositor { } pub fn CreateSurfaceBrushWithSurface(&self, surface: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateSurfaceBrushWithSurface)(::windows_core::Interface::as_raw(this), surface.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateSurfaceBrushWithSurface)(::windows_core::Interface::as_raw(this), surface.into_param().abi(), &mut result__).from_abi(result__) } } pub fn CreateTargetForCurrentView(&self) -> ::windows_core::Result { @@ -16909,211 +14947,211 @@ impl Compositor { } } pub fn CreateAmbientLight(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateAmbientLight)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CreateAnimationGroup(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateAnimationGroup)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CreateBackdropBrush(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateBackdropBrush)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CreateDistantLight(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateDistantLight)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CreateDropShadow(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateDropShadow)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CreateImplicitAnimationCollection(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateImplicitAnimationCollection)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CreateLayerVisual(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateLayerVisual)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CreateMaskBrush(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateMaskBrush)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CreateNineGridBrush(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateNineGridBrush)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CreatePointLight(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreatePointLight)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CreateSpotLight(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateSpotLight)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CreateStepEasingFunction(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateStepEasingFunction)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CreateStepEasingFunctionWithStepCount(&self, stepcount: i32) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateStepEasingFunctionWithStepCount)(::windows_core::Interface::as_raw(this), stepcount, &mut result__).from_abi(result__) } } pub fn CreateHostBackdropBrush(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateHostBackdropBrush)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CreateColorGradientStop(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateColorGradientStop)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CreateColorGradientStopWithOffsetAndColor(&self, offset: f32, color: super::Color) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateColorGradientStopWithOffsetAndColor)(::windows_core::Interface::as_raw(this), offset, color, &mut result__).from_abi(result__) } } pub fn CreateLinearGradientBrush(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateLinearGradientBrush)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CreateSpringScalarAnimation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateSpringScalarAnimation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CreateSpringVector2Animation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateSpringVector2Animation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CreateSpringVector3Animation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateSpringVector3Animation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn GlobalPlaybackRate(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GlobalPlaybackRate)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetGlobalPlaybackRate(&self, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetGlobalPlaybackRate)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn CreateBounceScalarAnimation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateBounceScalarAnimation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CreateBounceVector2Animation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateBounceVector2Animation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CreateBounceVector3Animation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateBounceVector3Animation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CreateContainerShape(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateContainerShape)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CreateEllipseGeometry(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateEllipseGeometry)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CreateLineGeometry(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateLineGeometry)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CreatePathGeometry(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreatePathGeometry)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -17123,42 +15161,42 @@ impl Compositor { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn CreatePathKeyFrameAnimation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreatePathKeyFrameAnimation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CreateRectangleGeometry(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateRectangleGeometry)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CreateRoundedRectangleGeometry(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateRoundedRectangleGeometry)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CreateShapeVisual(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateShapeVisual)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CreateSpriteShape(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateSpriteShape)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -17166,30 +15204,30 @@ impl Compositor { } pub fn CreateSpriteShapeWithGeometry(&self, geometry: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateSpriteShapeWithGeometry)(::windows_core::Interface::as_raw(this), geometry.into_param().abi(), &mut result__).from_abi(result__) } } pub fn CreateViewBox(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateViewBox)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn RequestCommitAsync(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RequestCommitAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CreateGeometricClip(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateGeometricClip)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -17197,16 +15235,16 @@ impl Compositor { } pub fn CreateGeometricClipWithGeometry(&self, geometry: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateGeometricClipWithGeometry)(::windows_core::Interface::as_raw(this), geometry.into_param().abi(), &mut result__).from_abi(result__) } } pub fn CreateRedirectVisual(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateRedirectVisual)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -17214,16 +15252,16 @@ impl Compositor { } pub fn CreateRedirectVisualWithSourceVisual(&self, source: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateRedirectVisualWithSourceVisual)(::windows_core::Interface::as_raw(this), source.into_param().abi(), &mut result__).from_abi(result__) } } pub fn CreateBooleanKeyFrameAnimation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateBooleanKeyFrameAnimation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -17232,28 +15270,28 @@ impl Compositor { #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CreateAnimationPropertyInfo(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateAnimationPropertyInfo)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CreateRectangleClip(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateRectangleClip)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CreateRectangleClipWithSides(&self, left: f32, top: f32, right: f32, bottom: f32) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateRectangleClipWithSides)(::windows_core::Interface::as_raw(this), left, top, right, bottom, &mut result__).from_abi(result__) @@ -17262,14 +15300,14 @@ impl Compositor { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn CreateRectangleClipWithSidesAndRadius(&self, left: f32, top: f32, right: f32, bottom: f32, topleftradius: super::super::Foundation::Numerics::Vector2, toprightradius: super::super::Foundation::Numerics::Vector2, bottomrightradius: super::super::Foundation::Numerics::Vector2, bottomleftradius: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateRectangleClipWithSidesAndRadius)(::windows_core::Interface::as_raw(this), left, top, right, bottom, topleftradius, toprightradius, bottomrightradius, bottomleftradius, &mut result__).from_abi(result__) } } pub fn CreateAnimationController(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateAnimationController)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -17288,42 +15326,42 @@ impl Compositor { }) } pub fn TryCreateBlurredWallpaperBackdropBrush(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryCreateBlurredWallpaperBackdropBrush)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CreateProjectedShadowCaster(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateProjectedShadowCaster)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CreateProjectedShadow(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateProjectedShadow)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CreateProjectedShadowReceiver(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateProjectedShadowReceiver)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CreateRadialGradientBrush(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateRadialGradientBrush)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CreateVisualSurface(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateVisualSurface)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -17340,34 +15378,32 @@ impl ::windows_core::RuntimeType for Compositor { } unsafe impl ::windows_core::Interface for Compositor { type Vtable = ICompositor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Compositor { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Compositor { const NAME: &'static str = "Windows.UI.Composition.Compositor"; } -::windows_core::imp::interface_hierarchy!(Compositor, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for Compositor {} unsafe impl ::core::marker::Send for Compositor {} unsafe impl ::core::marker::Sync for Compositor {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContainerVisual(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContainerVisual, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ContainerVisual, IAnimationObject, super::super::Foundation::IClosable, Visual, CompositionObject); impl ContainerVisual { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -17376,14 +15412,14 @@ impl ContainerVisual { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -17391,28 +15427,28 @@ impl ContainerVisual { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -17422,34 +15458,34 @@ impl ContainerVisual { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -17457,11 +15493,11 @@ impl ContainerVisual { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } pub fn Children(&self) -> ::windows_core::Result { let this = self; @@ -17473,7 +15509,7 @@ impl ContainerVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn AnchorPoint(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AnchorPoint)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -17482,35 +15518,35 @@ impl ContainerVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetAnchorPoint(&self, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetAnchorPoint)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn BackfaceVisibility(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).BackfaceVisibility)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetBackfaceVisibility(&self, value: CompositionBackfaceVisibility) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetBackfaceVisibility)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn BorderMode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).BorderMode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetBorderMode(&self, value: CompositionBorderMode) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetBorderMode)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn CenterPoint(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CenterPoint)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -17519,11 +15555,11 @@ impl ContainerVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetCenterPoint(&self, value: super::super::Foundation::Numerics::Vector3) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCenterPoint)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Clip(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Clip)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -17531,37 +15567,37 @@ impl ContainerVisual { } pub fn SetClip(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetClip)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn CompositeMode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CompositeMode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetCompositeMode(&self, value: CompositionCompositeMode) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCompositeMode)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsVisible(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsVisible)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsVisible(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsVisible)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn Offset(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Offset)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -17570,24 +15606,24 @@ impl ContainerVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetOffset(&self, value: super::super::Foundation::Numerics::Vector3) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetOffset)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Opacity(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Opacity)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetOpacity(&self, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetOpacity)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn Orientation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Orientation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -17596,42 +15632,42 @@ impl ContainerVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetOrientation(&self, value: super::super::Foundation::Numerics::Quaternion) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetOrientation)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Parent(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Parent)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn RotationAngle(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RotationAngle)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetRotationAngle(&self, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRotationAngle)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn RotationAngleInDegrees(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RotationAngleInDegrees)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetRotationAngleInDegrees(&self, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRotationAngleInDegrees)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn RotationAxis(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RotationAxis)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -17640,13 +15676,13 @@ impl ContainerVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetRotationAxis(&self, value: super::super::Foundation::Numerics::Vector3) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRotationAxis)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn Scale(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Scale)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -17655,13 +15691,13 @@ impl ContainerVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetScale(&self, value: super::super::Foundation::Numerics::Vector3) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetScale)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn Size(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Size)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -17670,13 +15706,13 @@ impl ContainerVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetSize(&self, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetSize)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn TransformMatrix(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TransformMatrix)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -17685,11 +15721,11 @@ impl ContainerVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetTransformMatrix(&self, value: super::super::Foundation::Numerics::Matrix4x4) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetTransformMatrix)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn ParentForTransform(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ParentForTransform)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -17697,15 +15733,15 @@ impl ContainerVisual { } pub fn SetParentForTransform(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetParentForTransform)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn RelativeOffsetAdjustment(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RelativeOffsetAdjustment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -17714,13 +15750,13 @@ impl ContainerVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetRelativeOffsetAdjustment(&self, value: super::super::Foundation::Numerics::Vector3) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRelativeOffsetAdjustment)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn RelativeSizeAdjustment(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RelativeSizeAdjustment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -17729,29 +15765,29 @@ impl ContainerVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetRelativeSizeAdjustment(&self, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRelativeSizeAdjustment)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsHitTestVisible(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsHitTestVisible)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsHitTestVisible(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsHitTestVisible)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsPixelSnappingEnabled(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsPixelSnappingEnabled)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsPixelSnappingEnabled(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsPixelSnappingEnabled)(::windows_core::Interface::as_raw(this), value).ok() } } } @@ -17760,37 +15796,32 @@ impl ::windows_core::RuntimeType for ContainerVisual { } unsafe impl ::windows_core::Interface for ContainerVisual { type Vtable = IContainerVisual_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContainerVisual { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContainerVisual { const NAME: &'static str = "Windows.UI.Composition.ContainerVisual"; } -::windows_core::imp::interface_hierarchy!(ContainerVisual, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ContainerVisual {} -impl ::windows_core::CanTryInto for ContainerVisual {} -impl ::windows_core::CanTryInto for ContainerVisual {} -impl ::windows_core::CanTryInto for ContainerVisual {} unsafe impl ::core::marker::Send for ContainerVisual {} unsafe impl ::core::marker::Sync for ContainerVisual {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CubicBezierEasingFunction(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CubicBezierEasingFunction, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(CubicBezierEasingFunction, IAnimationObject, super::super::Foundation::IClosable, CompositionEasingFunction, CompositionObject); impl CubicBezierEasingFunction { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -17799,14 +15830,14 @@ impl CubicBezierEasingFunction { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -17814,28 +15845,28 @@ impl CubicBezierEasingFunction { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -17845,34 +15876,34 @@ impl CubicBezierEasingFunction { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -17880,11 +15911,11 @@ impl CubicBezierEasingFunction { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] @@ -17910,37 +15941,32 @@ impl ::windows_core::RuntimeType for CubicBezierEasingFunction { } unsafe impl ::windows_core::Interface for CubicBezierEasingFunction { type Vtable = ICubicBezierEasingFunction_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CubicBezierEasingFunction { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CubicBezierEasingFunction { const NAME: &'static str = "Windows.UI.Composition.CubicBezierEasingFunction"; } -::windows_core::imp::interface_hierarchy!(CubicBezierEasingFunction, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CubicBezierEasingFunction {} -impl ::windows_core::CanTryInto for CubicBezierEasingFunction {} -impl ::windows_core::CanTryInto for CubicBezierEasingFunction {} -impl ::windows_core::CanTryInto for CubicBezierEasingFunction {} unsafe impl ::core::marker::Send for CubicBezierEasingFunction {} unsafe impl ::core::marker::Sync for CubicBezierEasingFunction {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DelegatedInkTrailVisual(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DelegatedInkTrailVisual, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(DelegatedInkTrailVisual, IAnimationObject, super::super::Foundation::IClosable, Visual, CompositionObject); impl DelegatedInkTrailVisual { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -17949,14 +15975,14 @@ impl DelegatedInkTrailVisual { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -17964,28 +15990,28 @@ impl DelegatedInkTrailVisual { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -17995,34 +16021,34 @@ impl DelegatedInkTrailVisual { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -18030,11 +16056,11 @@ impl DelegatedInkTrailVisual { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } pub fn AddTrailPoints(&self, inkpoints: &[InkTrailPoint]) -> ::windows_core::Result { let this = self; @@ -18070,17 +16096,17 @@ impl DelegatedInkTrailVisual { pub fn CreateForSwapChain(compositor: P0, swapchain: P1) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam, + P1: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateForSwapChain)(::windows_core::Interface::as_raw(this), compositor.into_param().abi(), swapchain.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn AnchorPoint(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AnchorPoint)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -18089,35 +16115,35 @@ impl DelegatedInkTrailVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetAnchorPoint(&self, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetAnchorPoint)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn BackfaceVisibility(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).BackfaceVisibility)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetBackfaceVisibility(&self, value: CompositionBackfaceVisibility) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetBackfaceVisibility)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn BorderMode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).BorderMode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetBorderMode(&self, value: CompositionBorderMode) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetBorderMode)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn CenterPoint(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CenterPoint)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -18126,11 +16152,11 @@ impl DelegatedInkTrailVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetCenterPoint(&self, value: super::super::Foundation::Numerics::Vector3) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCenterPoint)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Clip(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Clip)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -18138,37 +16164,37 @@ impl DelegatedInkTrailVisual { } pub fn SetClip(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetClip)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn CompositeMode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CompositeMode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetCompositeMode(&self, value: CompositionCompositeMode) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCompositeMode)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsVisible(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsVisible)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsVisible(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsVisible)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn Offset(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Offset)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -18177,24 +16203,24 @@ impl DelegatedInkTrailVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetOffset(&self, value: super::super::Foundation::Numerics::Vector3) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetOffset)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Opacity(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Opacity)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetOpacity(&self, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetOpacity)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn Orientation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Orientation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -18203,42 +16229,42 @@ impl DelegatedInkTrailVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetOrientation(&self, value: super::super::Foundation::Numerics::Quaternion) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetOrientation)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Parent(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Parent)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn RotationAngle(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RotationAngle)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetRotationAngle(&self, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRotationAngle)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn RotationAngleInDegrees(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RotationAngleInDegrees)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetRotationAngleInDegrees(&self, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRotationAngleInDegrees)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn RotationAxis(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RotationAxis)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -18247,13 +16273,13 @@ impl DelegatedInkTrailVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetRotationAxis(&self, value: super::super::Foundation::Numerics::Vector3) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRotationAxis)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn Scale(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Scale)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -18262,13 +16288,13 @@ impl DelegatedInkTrailVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetScale(&self, value: super::super::Foundation::Numerics::Vector3) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetScale)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn Size(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Size)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -18277,13 +16303,13 @@ impl DelegatedInkTrailVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetSize(&self, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetSize)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn TransformMatrix(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TransformMatrix)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -18292,11 +16318,11 @@ impl DelegatedInkTrailVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetTransformMatrix(&self, value: super::super::Foundation::Numerics::Matrix4x4) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetTransformMatrix)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn ParentForTransform(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ParentForTransform)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -18304,15 +16330,15 @@ impl DelegatedInkTrailVisual { } pub fn SetParentForTransform(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetParentForTransform)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn RelativeOffsetAdjustment(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RelativeOffsetAdjustment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -18321,13 +16347,13 @@ impl DelegatedInkTrailVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetRelativeOffsetAdjustment(&self, value: super::super::Foundation::Numerics::Vector3) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRelativeOffsetAdjustment)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn RelativeSizeAdjustment(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RelativeSizeAdjustment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -18336,29 +16362,29 @@ impl DelegatedInkTrailVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetRelativeSizeAdjustment(&self, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRelativeSizeAdjustment)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsHitTestVisible(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsHitTestVisible)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsHitTestVisible(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsHitTestVisible)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsPixelSnappingEnabled(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsPixelSnappingEnabled)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsPixelSnappingEnabled(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsPixelSnappingEnabled)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc(hidden)] @@ -18372,62 +16398,57 @@ impl ::windows_core::RuntimeType for DelegatedInkTrailVisual { } unsafe impl ::windows_core::Interface for DelegatedInkTrailVisual { type Vtable = IDelegatedInkTrailVisual_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DelegatedInkTrailVisual { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DelegatedInkTrailVisual { const NAME: &'static str = "Windows.UI.Composition.DelegatedInkTrailVisual"; } -::windows_core::imp::interface_hierarchy!(DelegatedInkTrailVisual, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for DelegatedInkTrailVisual {} -impl ::windows_core::CanTryInto for DelegatedInkTrailVisual {} -impl ::windows_core::CanTryInto for DelegatedInkTrailVisual {} -impl ::windows_core::CanTryInto for DelegatedInkTrailVisual {} unsafe impl ::core::marker::Send for DelegatedInkTrailVisual {} unsafe impl ::core::marker::Sync for DelegatedInkTrailVisual {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DistantLight(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DistantLight, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(DistantLight, IAnimationObject, super::super::Foundation::IClosable, CompositionLight, CompositionObject); impl DistantLight { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Targets(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Targets)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ExclusionsFromTargets(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ExclusionsFromTargets)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsEnabled(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsEnabled)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsEnabled(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsEnabled)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -18436,14 +16457,14 @@ impl DistantLight { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -18451,28 +16472,28 @@ impl DistantLight { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -18482,34 +16503,34 @@ impl DistantLight { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -18517,11 +16538,11 @@ impl DistantLight { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } pub fn Color(&self) -> ::windows_core::Result { let this = self; @@ -18543,10 +16564,10 @@ impl DistantLight { } pub fn SetCoordinateSpace(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetCoordinateSpace)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetCoordinateSpace)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] @@ -18564,14 +16585,14 @@ impl DistantLight { unsafe { (::windows_core::Interface::vtable(this).SetDirection)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Intensity(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Intensity)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIntensity(&self, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIntensity)(::windows_core::Interface::as_raw(this), value).ok() } } } @@ -18580,37 +16601,32 @@ impl ::windows_core::RuntimeType for DistantLight { } unsafe impl ::windows_core::Interface for DistantLight { type Vtable = IDistantLight_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DistantLight { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DistantLight { const NAME: &'static str = "Windows.UI.Composition.DistantLight"; } -::windows_core::imp::interface_hierarchy!(DistantLight, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for DistantLight {} -impl ::windows_core::CanTryInto for DistantLight {} -impl ::windows_core::CanTryInto for DistantLight {} -impl ::windows_core::CanTryInto for DistantLight {} unsafe impl ::core::marker::Send for DistantLight {} unsafe impl ::core::marker::Sync for DistantLight {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DropShadow(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DropShadow, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(DropShadow, IAnimationObject, super::super::Foundation::IClosable, CompositionShadow, CompositionObject); impl DropShadow { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -18619,14 +16635,14 @@ impl DropShadow { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -18634,28 +16650,28 @@ impl DropShadow { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -18665,34 +16681,34 @@ impl DropShadow { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -18700,11 +16716,11 @@ impl DropShadow { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } pub fn BlurRadius(&self) -> ::windows_core::Result { let this = self; @@ -18737,10 +16753,10 @@ impl DropShadow { } pub fn SetMask(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetMask)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetMask)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] @@ -18769,14 +16785,14 @@ impl DropShadow { unsafe { (::windows_core::Interface::vtable(this).SetOpacity)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn SourcePolicy(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SourcePolicy)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetSourcePolicy(&self, value: CompositionDropShadowSourcePolicy) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetSourcePolicy)(::windows_core::Interface::as_raw(this), value).ok() } } } @@ -18785,37 +16801,32 @@ impl ::windows_core::RuntimeType for DropShadow { } unsafe impl ::windows_core::Interface for DropShadow { type Vtable = IDropShadow_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DropShadow { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DropShadow { const NAME: &'static str = "Windows.UI.Composition.DropShadow"; } -::windows_core::imp::interface_hierarchy!(DropShadow, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for DropShadow {} -impl ::windows_core::CanTryInto for DropShadow {} -impl ::windows_core::CanTryInto for DropShadow {} -impl ::windows_core::CanTryInto for DropShadow {} unsafe impl ::core::marker::Send for DropShadow {} unsafe impl ::core::marker::Sync for DropShadow {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ElasticEasingFunction(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ElasticEasingFunction, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ElasticEasingFunction, IAnimationObject, super::super::Foundation::IClosable, CompositionEasingFunction, CompositionObject); impl ElasticEasingFunction { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -18824,14 +16835,14 @@ impl ElasticEasingFunction { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -18839,28 +16850,28 @@ impl ElasticEasingFunction { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -18870,34 +16881,34 @@ impl ElasticEasingFunction { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -18905,11 +16916,11 @@ impl ElasticEasingFunction { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } pub fn Mode(&self) -> ::windows_core::Result { let this = self; @@ -18938,37 +16949,32 @@ impl ::windows_core::RuntimeType for ElasticEasingFunction { } unsafe impl ::windows_core::Interface for ElasticEasingFunction { type Vtable = IElasticEasingFunction_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ElasticEasingFunction { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ElasticEasingFunction { const NAME: &'static str = "Windows.UI.Composition.ElasticEasingFunction"; } -::windows_core::imp::interface_hierarchy!(ElasticEasingFunction, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ElasticEasingFunction {} -impl ::windows_core::CanTryInto for ElasticEasingFunction {} -impl ::windows_core::CanTryInto for ElasticEasingFunction {} -impl ::windows_core::CanTryInto for ElasticEasingFunction {} unsafe impl ::core::marker::Send for ElasticEasingFunction {} unsafe impl ::core::marker::Sync for ElasticEasingFunction {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ExponentialEasingFunction(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ExponentialEasingFunction, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ExponentialEasingFunction, IAnimationObject, super::super::Foundation::IClosable, CompositionEasingFunction, CompositionObject); impl ExponentialEasingFunction { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -18977,14 +16983,14 @@ impl ExponentialEasingFunction { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -18992,28 +16998,28 @@ impl ExponentialEasingFunction { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -19023,34 +17029,34 @@ impl ExponentialEasingFunction { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -19058,11 +17064,11 @@ impl ExponentialEasingFunction { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } pub fn Mode(&self) -> ::windows_core::Result { let this = self; @@ -19084,113 +17090,108 @@ impl ::windows_core::RuntimeType for ExponentialEasingFunction { } unsafe impl ::windows_core::Interface for ExponentialEasingFunction { type Vtable = IExponentialEasingFunction_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ExponentialEasingFunction { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ExponentialEasingFunction { const NAME: &'static str = "Windows.UI.Composition.ExponentialEasingFunction"; } -::windows_core::imp::interface_hierarchy!(ExponentialEasingFunction, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ExponentialEasingFunction {} -impl ::windows_core::CanTryInto for ExponentialEasingFunction {} -impl ::windows_core::CanTryInto for ExponentialEasingFunction {} -impl ::windows_core::CanTryInto for ExponentialEasingFunction {} unsafe impl ::core::marker::Send for ExponentialEasingFunction {} unsafe impl ::core::marker::Sync for ExponentialEasingFunction {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ExpressionAnimation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ExpressionAnimation, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ExpressionAnimation, IAnimationObject, super::super::Foundation::IClosable, ICompositionAnimationBase, CompositionAnimation, CompositionObject); impl ExpressionAnimation { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn ClearAllParameters(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ClearAllParameters)(::windows_core::Interface::as_raw(this)).ok() } } pub fn ClearParameter(&self, key: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ClearParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key)).ok() } } pub fn SetColorParameter(&self, key: &::windows_core::HSTRING, value: super::Color) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetColorParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetMatrix3x2Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix3x2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMatrix3x2Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetMatrix4x4Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix4x4) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMatrix4x4Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetQuaternionParameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Quaternion) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetQuaternionParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } pub fn SetReferenceParameter(&self, key: &::windows_core::HSTRING, compositionobject: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetReferenceParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), compositionobject.try_into_param()?.abi()).ok() } + 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() } } pub fn SetScalarParameter(&self, key: &::windows_core::HSTRING, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetScalarParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetVector2Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetVector2Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetVector3Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector3) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetVector3Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetVector4Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector4) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetVector4Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } pub fn SetBooleanParameter(&self, key: &::windows_core::HSTRING, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetBooleanParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } pub fn Target(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Target)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetTarget(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetTarget)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn InitialValueExpressions(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).InitialValueExpressions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -19198,13 +17199,13 @@ impl ExpressionAnimation { } pub fn SetExpressionReferenceParameter(&self, parametername: &::windows_core::HSTRING, source: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetExpressionReferenceParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(parametername), source.try_into_param()?.abi()).ok() } + 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() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -19213,14 +17214,14 @@ impl ExpressionAnimation { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -19228,28 +17229,28 @@ impl ExpressionAnimation { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -19259,34 +17260,34 @@ impl ExpressionAnimation { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -19294,11 +17295,11 @@ impl ExpressionAnimation { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } pub fn Expression(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -19317,38 +17318,33 @@ impl ::windows_core::RuntimeType for ExpressionAnimation { } unsafe impl ::windows_core::Interface for ExpressionAnimation { type Vtable = IExpressionAnimation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ExpressionAnimation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ExpressionAnimation { const NAME: &'static str = "Windows.UI.Composition.ExpressionAnimation"; } -::windows_core::imp::interface_hierarchy!(ExpressionAnimation, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ExpressionAnimation {} -impl ::windows_core::CanTryInto for ExpressionAnimation {} -impl ::windows_core::CanTryInto for ExpressionAnimation {} -impl ::windows_core::CanTryInto for ExpressionAnimation {} -impl ::windows_core::CanTryInto for ExpressionAnimation {} unsafe impl ::core::marker::Send for ExpressionAnimation {} unsafe impl ::core::marker::Sync for ExpressionAnimation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ImplicitAnimationCollection(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ImplicitAnimationCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(ImplicitAnimationCollection, IAnimationObject, super::super::Foundation::IClosable, super::super::Foundation::Collections::IIterable::>, super::super::Foundation::Collections::IMap::<::windows_core::HSTRING, ICompositionAnimationBase>, CompositionObject); impl ImplicitAnimationCollection { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -19357,14 +17353,14 @@ impl ImplicitAnimationCollection { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -19372,28 +17368,28 @@ impl ImplicitAnimationCollection { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -19403,34 +17399,34 @@ impl ImplicitAnimationCollection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -19438,16 +17434,16 @@ impl ImplicitAnimationCollection { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> ::windows_core::Result>> { - let this = &::windows_core::ComInterface::cast::>>(self)?; + let this = &::windows_core::Interface::cast::>>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -19456,7 +17452,7 @@ impl ImplicitAnimationCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Lookup(&self, key: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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), ::core::mem::transmute_copy(key), &mut result__).from_abi(result__) @@ -19465,7 +17461,7 @@ impl ImplicitAnimationCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Size(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Size)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -19474,7 +17470,7 @@ impl ImplicitAnimationCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn HasKey(&self, key: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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), ::core::mem::transmute_copy(key), &mut result__).from_abi(result__) @@ -19483,7 +17479,7 @@ impl ImplicitAnimationCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetView(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetView)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -19493,24 +17489,24 @@ impl ImplicitAnimationCollection { #[cfg(feature = "Foundation_Collections")] pub fn Insert(&self, key: &::windows_core::HSTRING, value: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).Insert)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Remove(&self, key: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).Remove)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Clear(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).Clear)(::windows_core::Interface::as_raw(this)).ok() } } } @@ -19519,9 +17515,7 @@ impl ::windows_core::RuntimeType for ImplicitAnimationCollection { } unsafe impl ::windows_core::Interface for ImplicitAnimationCollection { type Vtable = IImplicitAnimationCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ImplicitAnimationCollection { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ImplicitAnimationCollection { const NAME: &'static str = "Windows.UI.Composition.ImplicitAnimationCollection"; @@ -19542,14 +17536,6 @@ impl ::core::iter::IntoIterator for &ImplicitAnimationCollection { self.First().unwrap() } } -::windows_core::imp::interface_hierarchy!(ImplicitAnimationCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ImplicitAnimationCollection {} -impl ::windows_core::CanTryInto for ImplicitAnimationCollection {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto>> for ImplicitAnimationCollection {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for ImplicitAnimationCollection {} -impl ::windows_core::CanTryInto for ImplicitAnimationCollection {} unsafe impl ::core::marker::Send for ImplicitAnimationCollection {} unsafe impl ::core::marker::Sync for ImplicitAnimationCollection {} #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -19558,20 +17544,24 @@ unsafe impl ::core::marker::Sync for ImplicitAnimationCollection {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct InitialValueExpressionCollection(::windows_core::IUnknown); #[cfg(feature = "Foundation_Collections")] +::windows_core::imp::interface_hierarchy!(InitialValueExpressionCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(InitialValueExpressionCollection, IAnimationObject, super::super::Foundation::IClosable, super::super::Foundation::Collections::IIterable::>, super::super::Foundation::Collections::IMap::<::windows_core::HSTRING, ::windows_core::HSTRING>, CompositionObject); +#[cfg(feature = "Foundation_Collections")] impl InitialValueExpressionCollection { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -19580,14 +17570,14 @@ impl InitialValueExpressionCollection { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -19595,28 +17585,28 @@ impl InitialValueExpressionCollection { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -19626,34 +17616,34 @@ impl InitialValueExpressionCollection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -19661,16 +17651,16 @@ impl InitialValueExpressionCollection { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> ::windows_core::Result>> { - let this = &::windows_core::ComInterface::cast::>>(self)?; + let this = &::windows_core::Interface::cast::>>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -19741,10 +17731,7 @@ impl ::windows_core::RuntimeType for InitialValueExpressionCollection { #[cfg(feature = "Foundation_Collections")] unsafe impl ::windows_core::Interface for InitialValueExpressionCollection { type Vtable = super::super::Foundation::Collections::IMap_Vtbl<::windows_core::HSTRING, ::windows_core::HSTRING>; -} -#[cfg(feature = "Foundation_Collections")] -unsafe impl ::windows_core::ComInterface for InitialValueExpressionCollection { - const IID: ::windows_core::GUID = as ::windows_core::ComInterface>::IID; + const IID: ::windows_core::GUID = as ::windows_core::Interface>::IID; } #[cfg(feature = "Foundation_Collections")] impl ::windows_core::RuntimeName for InitialValueExpressionCollection { @@ -19767,40 +17754,30 @@ impl ::core::iter::IntoIterator for &InitialValueExpressionCollection { } } #[cfg(feature = "Foundation_Collections")] -::windows_core::imp::interface_hierarchy!(InitialValueExpressionCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto for InitialValueExpressionCollection {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto for InitialValueExpressionCollection {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto>> for InitialValueExpressionCollection {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for InitialValueExpressionCollection {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto for InitialValueExpressionCollection {} -#[cfg(feature = "Foundation_Collections")] unsafe impl ::core::marker::Send for InitialValueExpressionCollection {} #[cfg(feature = "Foundation_Collections")] unsafe impl ::core::marker::Sync for InitialValueExpressionCollection {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct InsetClip(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(InsetClip, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(InsetClip, IAnimationObject, super::super::Foundation::IClosable, CompositionClip, CompositionObject); impl InsetClip { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn AnchorPoint(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AnchorPoint)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -19809,13 +17786,13 @@ impl InsetClip { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetAnchorPoint(&self, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetAnchorPoint)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn CenterPoint(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CenterPoint)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -19824,13 +17801,13 @@ impl InsetClip { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetCenterPoint(&self, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCenterPoint)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn Offset(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Offset)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -19839,35 +17816,35 @@ impl InsetClip { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetOffset(&self, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetOffset)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn RotationAngle(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RotationAngle)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetRotationAngle(&self, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRotationAngle)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn RotationAngleInDegrees(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RotationAngleInDegrees)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetRotationAngleInDegrees(&self, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRotationAngleInDegrees)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn Scale(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Scale)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -19876,13 +17853,13 @@ impl InsetClip { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetScale(&self, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetScale)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn TransformMatrix(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TransformMatrix)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -19891,11 +17868,11 @@ impl InsetClip { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetTransformMatrix(&self, value: super::super::Foundation::Numerics::Matrix3x2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetTransformMatrix)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -19904,14 +17881,14 @@ impl InsetClip { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -19919,28 +17896,28 @@ impl InsetClip { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -19950,34 +17927,34 @@ impl InsetClip { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -19985,11 +17962,11 @@ impl InsetClip { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } pub fn BottomInset(&self) -> ::windows_core::Result { let this = self; @@ -20041,113 +18018,108 @@ impl ::windows_core::RuntimeType for InsetClip { } unsafe impl ::windows_core::Interface for InsetClip { type Vtable = IInsetClip_Vtbl; -} -unsafe impl ::windows_core::ComInterface for InsetClip { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for InsetClip { const NAME: &'static str = "Windows.UI.Composition.InsetClip"; } -::windows_core::imp::interface_hierarchy!(InsetClip, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for InsetClip {} -impl ::windows_core::CanTryInto for InsetClip {} -impl ::windows_core::CanTryInto for InsetClip {} -impl ::windows_core::CanTryInto for InsetClip {} unsafe impl ::core::marker::Send for InsetClip {} unsafe impl ::core::marker::Sync for InsetClip {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct KeyFrameAnimation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(KeyFrameAnimation, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(KeyFrameAnimation, IAnimationObject, super::super::Foundation::IClosable, ICompositionAnimationBase, CompositionAnimation, CompositionObject); impl KeyFrameAnimation { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn ClearAllParameters(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ClearAllParameters)(::windows_core::Interface::as_raw(this)).ok() } } pub fn ClearParameter(&self, key: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ClearParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key)).ok() } } pub fn SetColorParameter(&self, key: &::windows_core::HSTRING, value: super::Color) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetColorParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetMatrix3x2Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix3x2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMatrix3x2Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetMatrix4x4Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix4x4) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMatrix4x4Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetQuaternionParameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Quaternion) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetQuaternionParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } pub fn SetReferenceParameter(&self, key: &::windows_core::HSTRING, compositionobject: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetReferenceParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), compositionobject.try_into_param()?.abi()).ok() } + 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() } } pub fn SetScalarParameter(&self, key: &::windows_core::HSTRING, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetScalarParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetVector2Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetVector2Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetVector3Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector3) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetVector3Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetVector4Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector4) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetVector4Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } pub fn SetBooleanParameter(&self, key: &::windows_core::HSTRING, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetBooleanParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } pub fn Target(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Target)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetTarget(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetTarget)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn InitialValueExpressions(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).InitialValueExpressions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -20155,13 +18127,13 @@ impl KeyFrameAnimation { } pub fn SetExpressionReferenceParameter(&self, parametername: &::windows_core::HSTRING, source: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetExpressionReferenceParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(parametername), source.try_into_param()?.abi()).ok() } + 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() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -20170,14 +18142,14 @@ impl KeyFrameAnimation { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -20185,28 +18157,28 @@ impl KeyFrameAnimation { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -20216,34 +18188,34 @@ impl KeyFrameAnimation { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -20251,11 +18223,11 @@ impl KeyFrameAnimation { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } pub fn DelayTime(&self) -> ::windows_core::Result { let this = self; @@ -20325,31 +18297,31 @@ impl KeyFrameAnimation { } pub fn InsertExpressionKeyFrameWithEasingFunction(&self, normalizedprogresskey: f32, value: &::windows_core::HSTRING, easingfunction: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).InsertExpressionKeyFrameWithEasingFunction)(::windows_core::Interface::as_raw(this), normalizedprogresskey, ::core::mem::transmute_copy(value), easingfunction.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).InsertExpressionKeyFrameWithEasingFunction)(::windows_core::Interface::as_raw(this), normalizedprogresskey, ::core::mem::transmute_copy(value), easingfunction.into_param().abi()).ok() } } pub fn Direction(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Direction)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDirection(&self, value: AnimationDirection) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDirection)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn DelayBehavior(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DelayBehavior)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDelayBehavior(&self, value: AnimationDelayBehavior) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDelayBehavior)(::windows_core::Interface::as_raw(this), value).ok() } } } @@ -20358,38 +18330,32 @@ impl ::windows_core::RuntimeType for KeyFrameAnimation { } unsafe impl ::windows_core::Interface for KeyFrameAnimation { type Vtable = IKeyFrameAnimation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for KeyFrameAnimation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for KeyFrameAnimation { const NAME: &'static str = "Windows.UI.Composition.KeyFrameAnimation"; } -::windows_core::imp::interface_hierarchy!(KeyFrameAnimation, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for KeyFrameAnimation {} -impl ::windows_core::CanTryInto for KeyFrameAnimation {} -impl ::windows_core::CanTryInto for KeyFrameAnimation {} -impl ::windows_core::CanTryInto for KeyFrameAnimation {} -impl ::windows_core::CanTryInto for KeyFrameAnimation {} unsafe impl ::core::marker::Send for KeyFrameAnimation {} unsafe impl ::core::marker::Sync for KeyFrameAnimation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LayerVisual(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LayerVisual, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(LayerVisual, IAnimationObject, super::super::Foundation::IClosable, ContainerVisual, Visual, CompositionObject); impl LayerVisual { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -20398,14 +18364,14 @@ impl LayerVisual { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -20413,28 +18379,28 @@ impl LayerVisual { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -20444,34 +18410,34 @@ impl LayerVisual { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -20479,14 +18445,14 @@ impl LayerVisual { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } pub fn Children(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Children)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -20507,7 +18473,7 @@ impl LayerVisual { unsafe { (::windows_core::Interface::vtable(this).SetEffect)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn Shadow(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Shadow)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -20515,15 +18481,15 @@ impl LayerVisual { } pub fn SetShadow(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetShadow)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn AnchorPoint(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AnchorPoint)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -20532,35 +18498,35 @@ impl LayerVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetAnchorPoint(&self, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetAnchorPoint)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn BackfaceVisibility(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).BackfaceVisibility)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetBackfaceVisibility(&self, value: CompositionBackfaceVisibility) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetBackfaceVisibility)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn BorderMode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).BorderMode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetBorderMode(&self, value: CompositionBorderMode) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetBorderMode)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn CenterPoint(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CenterPoint)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -20569,11 +18535,11 @@ impl LayerVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetCenterPoint(&self, value: super::super::Foundation::Numerics::Vector3) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCenterPoint)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Clip(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Clip)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -20581,37 +18547,37 @@ impl LayerVisual { } pub fn SetClip(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetClip)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn CompositeMode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CompositeMode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetCompositeMode(&self, value: CompositionCompositeMode) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCompositeMode)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsVisible(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsVisible)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsVisible(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsVisible)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn Offset(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Offset)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -20620,24 +18586,24 @@ impl LayerVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetOffset(&self, value: super::super::Foundation::Numerics::Vector3) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetOffset)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Opacity(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Opacity)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetOpacity(&self, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetOpacity)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn Orientation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Orientation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -20646,42 +18612,42 @@ impl LayerVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetOrientation(&self, value: super::super::Foundation::Numerics::Quaternion) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetOrientation)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Parent(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Parent)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn RotationAngle(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RotationAngle)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetRotationAngle(&self, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRotationAngle)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn RotationAngleInDegrees(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RotationAngleInDegrees)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetRotationAngleInDegrees(&self, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRotationAngleInDegrees)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn RotationAxis(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RotationAxis)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -20690,13 +18656,13 @@ impl LayerVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetRotationAxis(&self, value: super::super::Foundation::Numerics::Vector3) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRotationAxis)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn Scale(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Scale)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -20705,13 +18671,13 @@ impl LayerVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetScale(&self, value: super::super::Foundation::Numerics::Vector3) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetScale)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn Size(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Size)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -20720,13 +18686,13 @@ impl LayerVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetSize(&self, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetSize)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn TransformMatrix(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TransformMatrix)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -20735,11 +18701,11 @@ impl LayerVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetTransformMatrix(&self, value: super::super::Foundation::Numerics::Matrix4x4) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetTransformMatrix)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn ParentForTransform(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ParentForTransform)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -20747,15 +18713,15 @@ impl LayerVisual { } pub fn SetParentForTransform(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetParentForTransform)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn RelativeOffsetAdjustment(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RelativeOffsetAdjustment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -20764,13 +18730,13 @@ impl LayerVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetRelativeOffsetAdjustment(&self, value: super::super::Foundation::Numerics::Vector3) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRelativeOffsetAdjustment)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn RelativeSizeAdjustment(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RelativeSizeAdjustment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -20779,29 +18745,29 @@ impl LayerVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetRelativeSizeAdjustment(&self, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRelativeSizeAdjustment)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsHitTestVisible(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsHitTestVisible)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsHitTestVisible(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsHitTestVisible)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsPixelSnappingEnabled(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsPixelSnappingEnabled)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsPixelSnappingEnabled(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsPixelSnappingEnabled)(::windows_core::Interface::as_raw(this), value).ok() } } } @@ -20810,38 +18776,32 @@ impl ::windows_core::RuntimeType for LayerVisual { } unsafe impl ::windows_core::Interface for LayerVisual { type Vtable = ILayerVisual_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LayerVisual { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LayerVisual { const NAME: &'static str = "Windows.UI.Composition.LayerVisual"; } -::windows_core::imp::interface_hierarchy!(LayerVisual, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for LayerVisual {} -impl ::windows_core::CanTryInto for LayerVisual {} -impl ::windows_core::CanTryInto for LayerVisual {} -impl ::windows_core::CanTryInto for LayerVisual {} -impl ::windows_core::CanTryInto for LayerVisual {} unsafe impl ::core::marker::Send for LayerVisual {} unsafe impl ::core::marker::Sync for LayerVisual {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LinearEasingFunction(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(LinearEasingFunction, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(LinearEasingFunction, IAnimationObject, super::super::Foundation::IClosable, CompositionEasingFunction, CompositionObject); impl LinearEasingFunction { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -20850,14 +18810,14 @@ impl LinearEasingFunction { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -20865,28 +18825,28 @@ impl LinearEasingFunction { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -20896,34 +18856,34 @@ impl LinearEasingFunction { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -20931,11 +18891,11 @@ impl LinearEasingFunction { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } } impl ::windows_core::RuntimeType for LinearEasingFunction { @@ -20943,113 +18903,108 @@ impl ::windows_core::RuntimeType for LinearEasingFunction { } unsafe impl ::windows_core::Interface for LinearEasingFunction { type Vtable = ILinearEasingFunction_Vtbl; -} -unsafe impl ::windows_core::ComInterface for LinearEasingFunction { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for LinearEasingFunction { const NAME: &'static str = "Windows.UI.Composition.LinearEasingFunction"; } -::windows_core::imp::interface_hierarchy!(LinearEasingFunction, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for LinearEasingFunction {} -impl ::windows_core::CanTryInto for LinearEasingFunction {} -impl ::windows_core::CanTryInto for LinearEasingFunction {} -impl ::windows_core::CanTryInto for LinearEasingFunction {} unsafe impl ::core::marker::Send for LinearEasingFunction {} unsafe impl ::core::marker::Sync for LinearEasingFunction {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct NaturalMotionAnimation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(NaturalMotionAnimation, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(NaturalMotionAnimation, IAnimationObject, super::super::Foundation::IClosable, ICompositionAnimationBase, CompositionAnimation, CompositionObject); impl NaturalMotionAnimation { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn ClearAllParameters(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ClearAllParameters)(::windows_core::Interface::as_raw(this)).ok() } } pub fn ClearParameter(&self, key: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ClearParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key)).ok() } } pub fn SetColorParameter(&self, key: &::windows_core::HSTRING, value: super::Color) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetColorParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetMatrix3x2Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix3x2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMatrix3x2Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetMatrix4x4Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix4x4) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMatrix4x4Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetQuaternionParameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Quaternion) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetQuaternionParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } pub fn SetReferenceParameter(&self, key: &::windows_core::HSTRING, compositionobject: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetReferenceParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), compositionobject.try_into_param()?.abi()).ok() } + 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() } } pub fn SetScalarParameter(&self, key: &::windows_core::HSTRING, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetScalarParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetVector2Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetVector2Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetVector3Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector3) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetVector3Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetVector4Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector4) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetVector4Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } pub fn SetBooleanParameter(&self, key: &::windows_core::HSTRING, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetBooleanParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } pub fn Target(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Target)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetTarget(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetTarget)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn InitialValueExpressions(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).InitialValueExpressions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -21057,13 +19012,13 @@ impl NaturalMotionAnimation { } pub fn SetExpressionReferenceParameter(&self, parametername: &::windows_core::HSTRING, source: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetExpressionReferenceParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(parametername), source.try_into_param()?.abi()).ok() } + 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() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -21072,14 +19027,14 @@ impl NaturalMotionAnimation { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -21087,28 +19042,28 @@ impl NaturalMotionAnimation { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -21118,34 +19073,34 @@ impl NaturalMotionAnimation { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -21153,11 +19108,11 @@ impl NaturalMotionAnimation { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } pub fn DelayBehavior(&self) -> ::windows_core::Result { let this = self; @@ -21198,114 +19153,108 @@ impl ::windows_core::RuntimeType for NaturalMotionAnimation { } unsafe impl ::windows_core::Interface for NaturalMotionAnimation { type Vtable = INaturalMotionAnimation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for NaturalMotionAnimation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for NaturalMotionAnimation { const NAME: &'static str = "Windows.UI.Composition.NaturalMotionAnimation"; } -::windows_core::imp::interface_hierarchy!(NaturalMotionAnimation, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for NaturalMotionAnimation {} -impl ::windows_core::CanTryInto for NaturalMotionAnimation {} -impl ::windows_core::CanTryInto for NaturalMotionAnimation {} -impl ::windows_core::CanTryInto for NaturalMotionAnimation {} -impl ::windows_core::CanTryInto for NaturalMotionAnimation {} unsafe impl ::core::marker::Send for NaturalMotionAnimation {} unsafe impl ::core::marker::Sync for NaturalMotionAnimation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PathKeyFrameAnimation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PathKeyFrameAnimation, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(PathKeyFrameAnimation, IAnimationObject, super::super::Foundation::IClosable, ICompositionAnimationBase, KeyFrameAnimation, CompositionAnimation, CompositionObject); impl PathKeyFrameAnimation { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn ClearAllParameters(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ClearAllParameters)(::windows_core::Interface::as_raw(this)).ok() } } pub fn ClearParameter(&self, key: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ClearParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key)).ok() } } pub fn SetColorParameter(&self, key: &::windows_core::HSTRING, value: super::Color) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetColorParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetMatrix3x2Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix3x2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMatrix3x2Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetMatrix4x4Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix4x4) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMatrix4x4Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetQuaternionParameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Quaternion) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetQuaternionParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } pub fn SetReferenceParameter(&self, key: &::windows_core::HSTRING, compositionobject: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetReferenceParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), compositionobject.try_into_param()?.abi()).ok() } + 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() } } pub fn SetScalarParameter(&self, key: &::windows_core::HSTRING, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetScalarParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetVector2Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetVector2Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetVector3Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector3) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetVector3Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetVector4Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector4) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetVector4Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } pub fn SetBooleanParameter(&self, key: &::windows_core::HSTRING, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetBooleanParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } pub fn Target(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Target)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetTarget(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetTarget)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn InitialValueExpressions(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).InitialValueExpressions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -21313,13 +19262,13 @@ impl PathKeyFrameAnimation { } pub fn SetExpressionReferenceParameter(&self, parametername: &::windows_core::HSTRING, source: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetExpressionReferenceParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(parametername), source.try_into_param()?.abi()).ok() } + 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() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -21328,14 +19277,14 @@ impl PathKeyFrameAnimation { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -21343,28 +19292,28 @@ impl PathKeyFrameAnimation { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -21374,34 +19323,34 @@ impl PathKeyFrameAnimation { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -21409,105 +19358,105 @@ impl PathKeyFrameAnimation { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } pub fn DelayTime(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DelayTime)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDelayTime(&self, value: super::super::Foundation::TimeSpan) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDelayTime)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Duration(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Duration)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDuration(&self, value: super::super::Foundation::TimeSpan) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDuration)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IterationBehavior(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IterationBehavior)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIterationBehavior(&self, value: AnimationIterationBehavior) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIterationBehavior)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IterationCount(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IterationCount)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIterationCount(&self, value: i32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIterationCount)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn KeyFrameCount(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).KeyFrameCount)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn StopBehavior(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).StopBehavior)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetStopBehavior(&self, value: AnimationStopBehavior) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetStopBehavior)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn InsertExpressionKeyFrame(&self, normalizedprogresskey: f32, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).InsertExpressionKeyFrame)(::windows_core::Interface::as_raw(this), normalizedprogresskey, ::core::mem::transmute_copy(value)).ok() } } pub fn InsertExpressionKeyFrameWithEasingFunction(&self, normalizedprogresskey: f32, value: &::windows_core::HSTRING, easingfunction: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).InsertExpressionKeyFrameWithEasingFunction)(::windows_core::Interface::as_raw(this), normalizedprogresskey, ::core::mem::transmute_copy(value), easingfunction.try_into_param()?.abi()).ok() } + 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() } } pub fn Direction(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Direction)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDirection(&self, value: AnimationDirection) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDirection)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn DelayBehavior(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DelayBehavior)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDelayBehavior(&self, value: AnimationDelayBehavior) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDelayBehavior)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn InsertKeyFrame(&self, normalizedprogresskey: f32, path: P0) -> ::windows_core::Result<()> @@ -21520,10 +19469,10 @@ impl PathKeyFrameAnimation { pub fn InsertKeyFrameWithEasingFunction(&self, normalizedprogresskey: f32, path: P0, easingfunction: P1) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam, + P1: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).InsertKeyFrameWithEasingFunction)(::windows_core::Interface::as_raw(this), normalizedprogresskey, path.into_param().abi(), easingfunction.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).InsertKeyFrameWithEasingFunction)(::windows_core::Interface::as_raw(this), normalizedprogresskey, path.into_param().abi(), easingfunction.into_param().abi()).ok() } } } impl ::windows_core::RuntimeType for PathKeyFrameAnimation { @@ -21531,64 +19480,57 @@ impl ::windows_core::RuntimeType for PathKeyFrameAnimation { } unsafe impl ::windows_core::Interface for PathKeyFrameAnimation { type Vtable = IPathKeyFrameAnimation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PathKeyFrameAnimation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PathKeyFrameAnimation { const NAME: &'static str = "Windows.UI.Composition.PathKeyFrameAnimation"; } -::windows_core::imp::interface_hierarchy!(PathKeyFrameAnimation, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for PathKeyFrameAnimation {} -impl ::windows_core::CanTryInto for PathKeyFrameAnimation {} -impl ::windows_core::CanTryInto for PathKeyFrameAnimation {} -impl ::windows_core::CanTryInto for PathKeyFrameAnimation {} -impl ::windows_core::CanTryInto for PathKeyFrameAnimation {} -impl ::windows_core::CanTryInto for PathKeyFrameAnimation {} unsafe impl ::core::marker::Send for PathKeyFrameAnimation {} unsafe impl ::core::marker::Sync for PathKeyFrameAnimation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PointLight(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PointLight, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(PointLight, IAnimationObject, super::super::Foundation::IClosable, CompositionLight, CompositionObject); impl PointLight { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Targets(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Targets)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ExclusionsFromTargets(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ExclusionsFromTargets)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsEnabled(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsEnabled)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsEnabled(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsEnabled)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -21597,14 +19539,14 @@ impl PointLight { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -21612,28 +19554,28 @@ impl PointLight { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -21643,34 +19585,34 @@ impl PointLight { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -21678,11 +19620,11 @@ impl PointLight { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } pub fn Color(&self) -> ::windows_core::Result { let this = self; @@ -21715,10 +19657,10 @@ impl PointLight { } pub fn SetCoordinateSpace(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetCoordinateSpace)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetCoordinateSpace)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn LinearAttenuation(&self) -> ::windows_core::Result { let this = self; @@ -21758,36 +19700,36 @@ impl PointLight { unsafe { (::windows_core::Interface::vtable(this).SetQuadraticAttenuation)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Intensity(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Intensity)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIntensity(&self, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIntensity)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn MinAttenuationCutoff(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MinAttenuationCutoff)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetMinAttenuationCutoff(&self, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMinAttenuationCutoff)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn MaxAttenuationCutoff(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MaxAttenuationCutoff)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetMaxAttenuationCutoff(&self, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMaxAttenuationCutoff)(::windows_core::Interface::as_raw(this), value).ok() } } } @@ -21796,37 +19738,32 @@ impl ::windows_core::RuntimeType for PointLight { } unsafe impl ::windows_core::Interface for PointLight { type Vtable = IPointLight_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PointLight { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PointLight { const NAME: &'static str = "Windows.UI.Composition.PointLight"; } -::windows_core::imp::interface_hierarchy!(PointLight, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for PointLight {} -impl ::windows_core::CanTryInto for PointLight {} -impl ::windows_core::CanTryInto for PointLight {} -impl ::windows_core::CanTryInto for PointLight {} unsafe impl ::core::marker::Send for PointLight {} unsafe impl ::core::marker::Sync for PointLight {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PowerEasingFunction(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PowerEasingFunction, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(PowerEasingFunction, IAnimationObject, super::super::Foundation::IClosable, CompositionEasingFunction, CompositionObject); impl PowerEasingFunction { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -21835,14 +19772,14 @@ impl PowerEasingFunction { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -21850,28 +19787,28 @@ impl PowerEasingFunction { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -21881,34 +19818,34 @@ impl PowerEasingFunction { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -21916,11 +19853,11 @@ impl PowerEasingFunction { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } pub fn Mode(&self) -> ::windows_core::Result { let this = self; @@ -21942,113 +19879,108 @@ impl ::windows_core::RuntimeType for PowerEasingFunction { } unsafe impl ::windows_core::Interface for PowerEasingFunction { type Vtable = IPowerEasingFunction_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PowerEasingFunction { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PowerEasingFunction { const NAME: &'static str = "Windows.UI.Composition.PowerEasingFunction"; } -::windows_core::imp::interface_hierarchy!(PowerEasingFunction, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for PowerEasingFunction {} -impl ::windows_core::CanTryInto for PowerEasingFunction {} -impl ::windows_core::CanTryInto for PowerEasingFunction {} -impl ::windows_core::CanTryInto for PowerEasingFunction {} unsafe impl ::core::marker::Send for PowerEasingFunction {} unsafe impl ::core::marker::Sync for PowerEasingFunction {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct QuaternionKeyFrameAnimation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(QuaternionKeyFrameAnimation, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(QuaternionKeyFrameAnimation, IAnimationObject, super::super::Foundation::IClosable, ICompositionAnimationBase, KeyFrameAnimation, CompositionAnimation, CompositionObject); impl QuaternionKeyFrameAnimation { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn ClearAllParameters(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ClearAllParameters)(::windows_core::Interface::as_raw(this)).ok() } } pub fn ClearParameter(&self, key: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ClearParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key)).ok() } } pub fn SetColorParameter(&self, key: &::windows_core::HSTRING, value: super::Color) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetColorParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetMatrix3x2Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix3x2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMatrix3x2Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetMatrix4x4Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix4x4) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMatrix4x4Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetQuaternionParameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Quaternion) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetQuaternionParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } pub fn SetReferenceParameter(&self, key: &::windows_core::HSTRING, compositionobject: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetReferenceParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), compositionobject.try_into_param()?.abi()).ok() } + 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() } } pub fn SetScalarParameter(&self, key: &::windows_core::HSTRING, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetScalarParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetVector2Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetVector2Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetVector3Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector3) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetVector3Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetVector4Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector4) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetVector4Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } pub fn SetBooleanParameter(&self, key: &::windows_core::HSTRING, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetBooleanParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } pub fn Target(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Target)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetTarget(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetTarget)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn InitialValueExpressions(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).InitialValueExpressions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -22056,13 +19988,13 @@ impl QuaternionKeyFrameAnimation { } pub fn SetExpressionReferenceParameter(&self, parametername: &::windows_core::HSTRING, source: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetExpressionReferenceParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(parametername), source.try_into_param()?.abi()).ok() } + 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() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -22071,14 +20003,14 @@ impl QuaternionKeyFrameAnimation { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -22086,28 +20018,28 @@ impl QuaternionKeyFrameAnimation { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -22117,34 +20049,34 @@ impl QuaternionKeyFrameAnimation { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -22152,105 +20084,105 @@ impl QuaternionKeyFrameAnimation { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } pub fn DelayTime(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DelayTime)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDelayTime(&self, value: super::super::Foundation::TimeSpan) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDelayTime)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Duration(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Duration)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDuration(&self, value: super::super::Foundation::TimeSpan) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDuration)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IterationBehavior(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IterationBehavior)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIterationBehavior(&self, value: AnimationIterationBehavior) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIterationBehavior)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IterationCount(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IterationCount)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIterationCount(&self, value: i32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIterationCount)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn KeyFrameCount(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).KeyFrameCount)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn StopBehavior(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).StopBehavior)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetStopBehavior(&self, value: AnimationStopBehavior) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetStopBehavior)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn InsertExpressionKeyFrame(&self, normalizedprogresskey: f32, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).InsertExpressionKeyFrame)(::windows_core::Interface::as_raw(this), normalizedprogresskey, ::core::mem::transmute_copy(value)).ok() } } pub fn InsertExpressionKeyFrameWithEasingFunction(&self, normalizedprogresskey: f32, value: &::windows_core::HSTRING, easingfunction: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).InsertExpressionKeyFrameWithEasingFunction)(::windows_core::Interface::as_raw(this), normalizedprogresskey, ::core::mem::transmute_copy(value), easingfunction.try_into_param()?.abi()).ok() } + 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() } } pub fn Direction(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Direction)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDirection(&self, value: AnimationDirection) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDirection)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn DelayBehavior(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DelayBehavior)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDelayBehavior(&self, value: AnimationDelayBehavior) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDelayBehavior)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] @@ -22263,10 +20195,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::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).InsertKeyFrameWithEasingFunction)(::windows_core::Interface::as_raw(this), normalizedprogresskey, value, easingfunction.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).InsertKeyFrameWithEasingFunction)(::windows_core::Interface::as_raw(this), normalizedprogresskey, value, easingfunction.into_param().abi()).ok() } } } impl ::windows_core::RuntimeType for QuaternionKeyFrameAnimation { @@ -22274,41 +20206,34 @@ impl ::windows_core::RuntimeType for QuaternionKeyFrameAnimation { } unsafe impl ::windows_core::Interface for QuaternionKeyFrameAnimation { type Vtable = IQuaternionKeyFrameAnimation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for QuaternionKeyFrameAnimation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for QuaternionKeyFrameAnimation { const NAME: &'static str = "Windows.UI.Composition.QuaternionKeyFrameAnimation"; } -::windows_core::imp::interface_hierarchy!(QuaternionKeyFrameAnimation, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for QuaternionKeyFrameAnimation {} -impl ::windows_core::CanTryInto for QuaternionKeyFrameAnimation {} -impl ::windows_core::CanTryInto for QuaternionKeyFrameAnimation {} -impl ::windows_core::CanTryInto for QuaternionKeyFrameAnimation {} -impl ::windows_core::CanTryInto for QuaternionKeyFrameAnimation {} -impl ::windows_core::CanTryInto for QuaternionKeyFrameAnimation {} unsafe impl ::core::marker::Send for QuaternionKeyFrameAnimation {} unsafe impl ::core::marker::Sync for QuaternionKeyFrameAnimation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RectangleClip(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RectangleClip, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(RectangleClip, IAnimationObject, super::super::Foundation::IClosable, CompositionClip, CompositionObject); impl RectangleClip { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn AnchorPoint(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AnchorPoint)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -22317,13 +20242,13 @@ impl RectangleClip { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetAnchorPoint(&self, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetAnchorPoint)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn CenterPoint(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CenterPoint)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -22332,13 +20257,13 @@ impl RectangleClip { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetCenterPoint(&self, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCenterPoint)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn Offset(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Offset)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -22347,35 +20272,35 @@ impl RectangleClip { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetOffset(&self, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetOffset)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn RotationAngle(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RotationAngle)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetRotationAngle(&self, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRotationAngle)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn RotationAngleInDegrees(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RotationAngleInDegrees)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetRotationAngleInDegrees(&self, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRotationAngleInDegrees)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn Scale(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Scale)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -22384,13 +20309,13 @@ impl RectangleClip { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetScale(&self, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetScale)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn TransformMatrix(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TransformMatrix)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -22399,11 +20324,11 @@ impl RectangleClip { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetTransformMatrix(&self, value: super::super::Foundation::Numerics::Matrix3x2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetTransformMatrix)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -22412,14 +20337,14 @@ impl RectangleClip { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -22427,28 +20352,28 @@ impl RectangleClip { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -22458,34 +20383,34 @@ impl RectangleClip { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -22493,11 +20418,11 @@ impl RectangleClip { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } pub fn Bottom(&self) -> ::windows_core::Result { let this = self; @@ -22609,37 +20534,32 @@ impl ::windows_core::RuntimeType for RectangleClip { } unsafe impl ::windows_core::Interface for RectangleClip { type Vtable = IRectangleClip_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RectangleClip { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RectangleClip { const NAME: &'static str = "Windows.UI.Composition.RectangleClip"; } -::windows_core::imp::interface_hierarchy!(RectangleClip, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for RectangleClip {} -impl ::windows_core::CanTryInto for RectangleClip {} -impl ::windows_core::CanTryInto for RectangleClip {} -impl ::windows_core::CanTryInto for RectangleClip {} unsafe impl ::core::marker::Send for RectangleClip {} unsafe impl ::core::marker::Sync for RectangleClip {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RedirectVisual(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RedirectVisual, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(RedirectVisual, IAnimationObject, super::super::Foundation::IClosable, ContainerVisual, Visual, CompositionObject); impl RedirectVisual { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -22648,14 +20568,14 @@ impl RedirectVisual { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -22663,28 +20583,28 @@ impl RedirectVisual { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -22694,34 +20614,34 @@ impl RedirectVisual { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -22729,14 +20649,14 @@ impl RedirectVisual { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } pub fn Children(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Children)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -22751,15 +20671,15 @@ impl RedirectVisual { } pub fn SetSource(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetSource)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetSource)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn AnchorPoint(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AnchorPoint)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -22768,35 +20688,35 @@ impl RedirectVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetAnchorPoint(&self, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetAnchorPoint)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn BackfaceVisibility(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).BackfaceVisibility)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetBackfaceVisibility(&self, value: CompositionBackfaceVisibility) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetBackfaceVisibility)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn BorderMode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).BorderMode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetBorderMode(&self, value: CompositionBorderMode) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetBorderMode)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn CenterPoint(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CenterPoint)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -22805,11 +20725,11 @@ impl RedirectVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetCenterPoint(&self, value: super::super::Foundation::Numerics::Vector3) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCenterPoint)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Clip(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Clip)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -22817,37 +20737,37 @@ impl RedirectVisual { } pub fn SetClip(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetClip)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn CompositeMode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CompositeMode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetCompositeMode(&self, value: CompositionCompositeMode) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCompositeMode)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsVisible(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsVisible)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsVisible(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsVisible)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn Offset(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Offset)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -22856,24 +20776,24 @@ impl RedirectVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetOffset(&self, value: super::super::Foundation::Numerics::Vector3) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetOffset)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Opacity(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Opacity)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetOpacity(&self, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetOpacity)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn Orientation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Orientation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -22882,42 +20802,42 @@ impl RedirectVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetOrientation(&self, value: super::super::Foundation::Numerics::Quaternion) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetOrientation)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Parent(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Parent)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn RotationAngle(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RotationAngle)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetRotationAngle(&self, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRotationAngle)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn RotationAngleInDegrees(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RotationAngleInDegrees)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetRotationAngleInDegrees(&self, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRotationAngleInDegrees)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn RotationAxis(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RotationAxis)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -22926,13 +20846,13 @@ impl RedirectVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetRotationAxis(&self, value: super::super::Foundation::Numerics::Vector3) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRotationAxis)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn Scale(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Scale)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -22941,13 +20861,13 @@ impl RedirectVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetScale(&self, value: super::super::Foundation::Numerics::Vector3) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetScale)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn Size(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Size)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -22956,13 +20876,13 @@ impl RedirectVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetSize(&self, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetSize)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn TransformMatrix(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TransformMatrix)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -22971,11 +20891,11 @@ impl RedirectVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetTransformMatrix(&self, value: super::super::Foundation::Numerics::Matrix4x4) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetTransformMatrix)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn ParentForTransform(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ParentForTransform)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -22983,15 +20903,15 @@ impl RedirectVisual { } pub fn SetParentForTransform(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetParentForTransform)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn RelativeOffsetAdjustment(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RelativeOffsetAdjustment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -23000,13 +20920,13 @@ impl RedirectVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetRelativeOffsetAdjustment(&self, value: super::super::Foundation::Numerics::Vector3) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRelativeOffsetAdjustment)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn RelativeSizeAdjustment(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RelativeSizeAdjustment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -23015,29 +20935,29 @@ impl RedirectVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetRelativeSizeAdjustment(&self, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRelativeSizeAdjustment)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsHitTestVisible(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsHitTestVisible)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsHitTestVisible(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsHitTestVisible)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsPixelSnappingEnabled(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsPixelSnappingEnabled)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsPixelSnappingEnabled(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsPixelSnappingEnabled)(::windows_core::Interface::as_raw(this), value).ok() } } } @@ -23046,38 +20966,32 @@ impl ::windows_core::RuntimeType for RedirectVisual { } unsafe impl ::windows_core::Interface for RedirectVisual { type Vtable = IRedirectVisual_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RedirectVisual { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RedirectVisual { const NAME: &'static str = "Windows.UI.Composition.RedirectVisual"; } -::windows_core::imp::interface_hierarchy!(RedirectVisual, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for RedirectVisual {} -impl ::windows_core::CanTryInto for RedirectVisual {} -impl ::windows_core::CanTryInto for RedirectVisual {} -impl ::windows_core::CanTryInto for RedirectVisual {} -impl ::windows_core::CanTryInto for RedirectVisual {} unsafe impl ::core::marker::Send for RedirectVisual {} unsafe impl ::core::marker::Sync for RedirectVisual {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RenderingDeviceReplacedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RenderingDeviceReplacedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(RenderingDeviceReplacedEventArgs, IAnimationObject, super::super::Foundation::IClosable, CompositionObject); impl RenderingDeviceReplacedEventArgs { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -23086,14 +21000,14 @@ impl RenderingDeviceReplacedEventArgs { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -23101,28 +21015,28 @@ impl RenderingDeviceReplacedEventArgs { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -23132,34 +21046,34 @@ impl RenderingDeviceReplacedEventArgs { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -23167,11 +21081,11 @@ impl RenderingDeviceReplacedEventArgs { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } pub fn GraphicsDevice(&self) -> ::windows_core::Result { let this = self; @@ -23186,112 +21100,108 @@ impl ::windows_core::RuntimeType for RenderingDeviceReplacedEventArgs { } unsafe impl ::windows_core::Interface for RenderingDeviceReplacedEventArgs { type Vtable = IRenderingDeviceReplacedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RenderingDeviceReplacedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RenderingDeviceReplacedEventArgs { const NAME: &'static str = "Windows.UI.Composition.RenderingDeviceReplacedEventArgs"; } -::windows_core::imp::interface_hierarchy!(RenderingDeviceReplacedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for RenderingDeviceReplacedEventArgs {} -impl ::windows_core::CanTryInto for RenderingDeviceReplacedEventArgs {} -impl ::windows_core::CanTryInto for RenderingDeviceReplacedEventArgs {} unsafe impl ::core::marker::Send for RenderingDeviceReplacedEventArgs {} unsafe impl ::core::marker::Sync for RenderingDeviceReplacedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ScalarKeyFrameAnimation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ScalarKeyFrameAnimation, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ScalarKeyFrameAnimation, IAnimationObject, super::super::Foundation::IClosable, ICompositionAnimationBase, KeyFrameAnimation, CompositionAnimation, CompositionObject); impl ScalarKeyFrameAnimation { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn ClearAllParameters(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ClearAllParameters)(::windows_core::Interface::as_raw(this)).ok() } } pub fn ClearParameter(&self, key: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ClearParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key)).ok() } } pub fn SetColorParameter(&self, key: &::windows_core::HSTRING, value: super::Color) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetColorParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetMatrix3x2Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix3x2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMatrix3x2Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetMatrix4x4Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix4x4) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMatrix4x4Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetQuaternionParameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Quaternion) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetQuaternionParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } pub fn SetReferenceParameter(&self, key: &::windows_core::HSTRING, compositionobject: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetReferenceParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), compositionobject.try_into_param()?.abi()).ok() } + 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() } } pub fn SetScalarParameter(&self, key: &::windows_core::HSTRING, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetScalarParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetVector2Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetVector2Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetVector3Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector3) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetVector3Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetVector4Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector4) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetVector4Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } pub fn SetBooleanParameter(&self, key: &::windows_core::HSTRING, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetBooleanParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } pub fn Target(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Target)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetTarget(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetTarget)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn InitialValueExpressions(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).InitialValueExpressions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -23299,13 +21209,13 @@ impl ScalarKeyFrameAnimation { } pub fn SetExpressionReferenceParameter(&self, parametername: &::windows_core::HSTRING, source: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetExpressionReferenceParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(parametername), source.try_into_param()?.abi()).ok() } + 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() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -23314,14 +21224,14 @@ impl ScalarKeyFrameAnimation { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -23329,28 +21239,28 @@ impl ScalarKeyFrameAnimation { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -23360,34 +21270,34 @@ impl ScalarKeyFrameAnimation { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -23395,105 +21305,105 @@ impl ScalarKeyFrameAnimation { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } pub fn DelayTime(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DelayTime)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDelayTime(&self, value: super::super::Foundation::TimeSpan) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDelayTime)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Duration(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Duration)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDuration(&self, value: super::super::Foundation::TimeSpan) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDuration)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IterationBehavior(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IterationBehavior)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIterationBehavior(&self, value: AnimationIterationBehavior) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIterationBehavior)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IterationCount(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IterationCount)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIterationCount(&self, value: i32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIterationCount)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn KeyFrameCount(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).KeyFrameCount)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn StopBehavior(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).StopBehavior)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetStopBehavior(&self, value: AnimationStopBehavior) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetStopBehavior)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn InsertExpressionKeyFrame(&self, normalizedprogresskey: f32, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).InsertExpressionKeyFrame)(::windows_core::Interface::as_raw(this), normalizedprogresskey, ::core::mem::transmute_copy(value)).ok() } } pub fn InsertExpressionKeyFrameWithEasingFunction(&self, normalizedprogresskey: f32, value: &::windows_core::HSTRING, easingfunction: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).InsertExpressionKeyFrameWithEasingFunction)(::windows_core::Interface::as_raw(this), normalizedprogresskey, ::core::mem::transmute_copy(value), easingfunction.try_into_param()?.abi()).ok() } + 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() } } pub fn Direction(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Direction)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDirection(&self, value: AnimationDirection) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDirection)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn DelayBehavior(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DelayBehavior)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDelayBehavior(&self, value: AnimationDelayBehavior) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDelayBehavior)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn InsertKeyFrame(&self, normalizedprogresskey: f32, value: f32) -> ::windows_core::Result<()> { @@ -23502,10 +21412,10 @@ impl ScalarKeyFrameAnimation { } pub fn InsertKeyFrameWithEasingFunction(&self, normalizedprogresskey: f32, value: f32, easingfunction: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).InsertKeyFrameWithEasingFunction)(::windows_core::Interface::as_raw(this), normalizedprogresskey, value, easingfunction.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).InsertKeyFrameWithEasingFunction)(::windows_core::Interface::as_raw(this), normalizedprogresskey, value, easingfunction.into_param().abi()).ok() } } } impl ::windows_core::RuntimeType for ScalarKeyFrameAnimation { @@ -23513,115 +21423,108 @@ impl ::windows_core::RuntimeType for ScalarKeyFrameAnimation { } unsafe impl ::windows_core::Interface for ScalarKeyFrameAnimation { type Vtable = IScalarKeyFrameAnimation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ScalarKeyFrameAnimation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ScalarKeyFrameAnimation { const NAME: &'static str = "Windows.UI.Composition.ScalarKeyFrameAnimation"; } -::windows_core::imp::interface_hierarchy!(ScalarKeyFrameAnimation, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ScalarKeyFrameAnimation {} -impl ::windows_core::CanTryInto for ScalarKeyFrameAnimation {} -impl ::windows_core::CanTryInto for ScalarKeyFrameAnimation {} -impl ::windows_core::CanTryInto for ScalarKeyFrameAnimation {} -impl ::windows_core::CanTryInto for ScalarKeyFrameAnimation {} -impl ::windows_core::CanTryInto for ScalarKeyFrameAnimation {} unsafe impl ::core::marker::Send for ScalarKeyFrameAnimation {} unsafe impl ::core::marker::Sync for ScalarKeyFrameAnimation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ScalarNaturalMotionAnimation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ScalarNaturalMotionAnimation, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ScalarNaturalMotionAnimation, IAnimationObject, super::super::Foundation::IClosable, ICompositionAnimationBase, NaturalMotionAnimation, CompositionAnimation, CompositionObject); impl ScalarNaturalMotionAnimation { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn ClearAllParameters(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ClearAllParameters)(::windows_core::Interface::as_raw(this)).ok() } } pub fn ClearParameter(&self, key: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ClearParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key)).ok() } } pub fn SetColorParameter(&self, key: &::windows_core::HSTRING, value: super::Color) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetColorParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetMatrix3x2Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix3x2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMatrix3x2Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetMatrix4x4Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix4x4) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMatrix4x4Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetQuaternionParameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Quaternion) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetQuaternionParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } pub fn SetReferenceParameter(&self, key: &::windows_core::HSTRING, compositionobject: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetReferenceParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), compositionobject.try_into_param()?.abi()).ok() } + 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() } } pub fn SetScalarParameter(&self, key: &::windows_core::HSTRING, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetScalarParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetVector2Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetVector2Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetVector3Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector3) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetVector3Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetVector4Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector4) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetVector4Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } pub fn SetBooleanParameter(&self, key: &::windows_core::HSTRING, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetBooleanParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } pub fn Target(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Target)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetTarget(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetTarget)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn InitialValueExpressions(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).InitialValueExpressions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -23629,13 +21532,13 @@ impl ScalarNaturalMotionAnimation { } pub fn SetExpressionReferenceParameter(&self, parametername: &::windows_core::HSTRING, source: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetExpressionReferenceParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(parametername), source.try_into_param()?.abi()).ok() } + 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() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -23644,14 +21547,14 @@ impl ScalarNaturalMotionAnimation { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -23659,28 +21562,28 @@ impl ScalarNaturalMotionAnimation { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -23690,34 +21593,34 @@ impl ScalarNaturalMotionAnimation { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -23725,43 +21628,43 @@ impl ScalarNaturalMotionAnimation { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } pub fn DelayBehavior(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DelayBehavior)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDelayBehavior(&self, value: AnimationDelayBehavior) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDelayBehavior)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn DelayTime(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DelayTime)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDelayTime(&self, value: super::super::Foundation::TimeSpan) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDelayTime)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn StopBehavior(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).StopBehavior)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetStopBehavior(&self, value: AnimationStopBehavior) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetStopBehavior)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn FinalValue(&self) -> ::windows_core::Result> { @@ -23773,10 +21676,10 @@ impl ScalarNaturalMotionAnimation { } pub fn SetFinalValue(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetFinalValue)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetFinalValue)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn InitialValue(&self) -> ::windows_core::Result> { let this = self; @@ -23787,10 +21690,10 @@ impl ScalarNaturalMotionAnimation { } pub fn SetInitialValue(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetInitialValue)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetInitialValue)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn InitialVelocity(&self) -> ::windows_core::Result { let this = self; @@ -23809,39 +21712,32 @@ impl ::windows_core::RuntimeType for ScalarNaturalMotionAnimation { } unsafe impl ::windows_core::Interface for ScalarNaturalMotionAnimation { type Vtable = IScalarNaturalMotionAnimation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ScalarNaturalMotionAnimation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ScalarNaturalMotionAnimation { const NAME: &'static str = "Windows.UI.Composition.ScalarNaturalMotionAnimation"; } -::windows_core::imp::interface_hierarchy!(ScalarNaturalMotionAnimation, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ScalarNaturalMotionAnimation {} -impl ::windows_core::CanTryInto for ScalarNaturalMotionAnimation {} -impl ::windows_core::CanTryInto for ScalarNaturalMotionAnimation {} -impl ::windows_core::CanTryInto for ScalarNaturalMotionAnimation {} -impl ::windows_core::CanTryInto for ScalarNaturalMotionAnimation {} -impl ::windows_core::CanTryInto for ScalarNaturalMotionAnimation {} unsafe impl ::core::marker::Send for ScalarNaturalMotionAnimation {} unsafe impl ::core::marker::Sync for ScalarNaturalMotionAnimation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ShapeVisual(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ShapeVisual, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ShapeVisual, IAnimationObject, super::super::Foundation::IClosable, ContainerVisual, Visual, CompositionObject); impl ShapeVisual { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -23850,14 +21746,14 @@ impl ShapeVisual { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -23865,28 +21761,28 @@ impl ShapeVisual { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -23896,34 +21792,34 @@ impl ShapeVisual { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -23931,14 +21827,14 @@ impl ShapeVisual { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } pub fn Children(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Children)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -23970,7 +21866,7 @@ impl ShapeVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn AnchorPoint(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AnchorPoint)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -23979,35 +21875,35 @@ impl ShapeVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetAnchorPoint(&self, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetAnchorPoint)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn BackfaceVisibility(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).BackfaceVisibility)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetBackfaceVisibility(&self, value: CompositionBackfaceVisibility) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetBackfaceVisibility)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn BorderMode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).BorderMode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetBorderMode(&self, value: CompositionBorderMode) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetBorderMode)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn CenterPoint(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CenterPoint)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -24016,11 +21912,11 @@ impl ShapeVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetCenterPoint(&self, value: super::super::Foundation::Numerics::Vector3) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCenterPoint)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Clip(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Clip)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -24028,37 +21924,37 @@ impl ShapeVisual { } pub fn SetClip(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetClip)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn CompositeMode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CompositeMode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetCompositeMode(&self, value: CompositionCompositeMode) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCompositeMode)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsVisible(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsVisible)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsVisible(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsVisible)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn Offset(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Offset)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -24067,24 +21963,24 @@ impl ShapeVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetOffset(&self, value: super::super::Foundation::Numerics::Vector3) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetOffset)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Opacity(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Opacity)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetOpacity(&self, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetOpacity)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn Orientation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Orientation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -24093,42 +21989,42 @@ impl ShapeVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetOrientation(&self, value: super::super::Foundation::Numerics::Quaternion) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetOrientation)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Parent(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Parent)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn RotationAngle(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RotationAngle)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetRotationAngle(&self, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRotationAngle)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn RotationAngleInDegrees(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RotationAngleInDegrees)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetRotationAngleInDegrees(&self, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRotationAngleInDegrees)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn RotationAxis(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RotationAxis)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -24137,13 +22033,13 @@ impl ShapeVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetRotationAxis(&self, value: super::super::Foundation::Numerics::Vector3) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRotationAxis)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn Scale(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Scale)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -24152,13 +22048,13 @@ impl ShapeVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetScale(&self, value: super::super::Foundation::Numerics::Vector3) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetScale)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn Size(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Size)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -24167,13 +22063,13 @@ impl ShapeVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetSize(&self, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetSize)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn TransformMatrix(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TransformMatrix)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -24182,11 +22078,11 @@ impl ShapeVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetTransformMatrix(&self, value: super::super::Foundation::Numerics::Matrix4x4) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetTransformMatrix)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn ParentForTransform(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ParentForTransform)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -24194,15 +22090,15 @@ impl ShapeVisual { } pub fn SetParentForTransform(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetParentForTransform)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn RelativeOffsetAdjustment(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RelativeOffsetAdjustment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -24211,13 +22107,13 @@ impl ShapeVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetRelativeOffsetAdjustment(&self, value: super::super::Foundation::Numerics::Vector3) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRelativeOffsetAdjustment)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn RelativeSizeAdjustment(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RelativeSizeAdjustment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -24226,29 +22122,29 @@ impl ShapeVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetRelativeSizeAdjustment(&self, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRelativeSizeAdjustment)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsHitTestVisible(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsHitTestVisible)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsHitTestVisible(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsHitTestVisible)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsPixelSnappingEnabled(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsPixelSnappingEnabled)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsPixelSnappingEnabled(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsPixelSnappingEnabled)(::windows_core::Interface::as_raw(this), value).ok() } } } @@ -24257,38 +22153,32 @@ impl ::windows_core::RuntimeType for ShapeVisual { } unsafe impl ::windows_core::Interface for ShapeVisual { type Vtable = IShapeVisual_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ShapeVisual { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ShapeVisual { const NAME: &'static str = "Windows.UI.Composition.ShapeVisual"; } -::windows_core::imp::interface_hierarchy!(ShapeVisual, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ShapeVisual {} -impl ::windows_core::CanTryInto for ShapeVisual {} -impl ::windows_core::CanTryInto for ShapeVisual {} -impl ::windows_core::CanTryInto for ShapeVisual {} -impl ::windows_core::CanTryInto for ShapeVisual {} unsafe impl ::core::marker::Send for ShapeVisual {} unsafe impl ::core::marker::Sync for ShapeVisual {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SineEasingFunction(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SineEasingFunction, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(SineEasingFunction, IAnimationObject, super::super::Foundation::IClosable, CompositionEasingFunction, CompositionObject); impl SineEasingFunction { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -24297,14 +22187,14 @@ impl SineEasingFunction { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -24312,28 +22202,28 @@ impl SineEasingFunction { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -24343,34 +22233,34 @@ impl SineEasingFunction { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -24378,11 +22268,11 @@ impl SineEasingFunction { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } pub fn Mode(&self) -> ::windows_core::Result { let this = self; @@ -24397,62 +22287,57 @@ impl ::windows_core::RuntimeType for SineEasingFunction { } unsafe impl ::windows_core::Interface for SineEasingFunction { type Vtable = ISineEasingFunction_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SineEasingFunction { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SineEasingFunction { const NAME: &'static str = "Windows.UI.Composition.SineEasingFunction"; } -::windows_core::imp::interface_hierarchy!(SineEasingFunction, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for SineEasingFunction {} -impl ::windows_core::CanTryInto for SineEasingFunction {} -impl ::windows_core::CanTryInto for SineEasingFunction {} -impl ::windows_core::CanTryInto for SineEasingFunction {} unsafe impl ::core::marker::Send for SineEasingFunction {} unsafe impl ::core::marker::Sync for SineEasingFunction {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpotLight(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpotLight, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(SpotLight, IAnimationObject, super::super::Foundation::IClosable, CompositionLight, CompositionObject); impl SpotLight { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Targets(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Targets)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ExclusionsFromTargets(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ExclusionsFromTargets)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsEnabled(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsEnabled)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsEnabled(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsEnabled)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -24461,14 +22346,14 @@ impl SpotLight { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -24476,28 +22361,28 @@ impl SpotLight { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -24507,34 +22392,34 @@ impl SpotLight { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -24542,11 +22427,11 @@ impl SpotLight { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } pub fn ConstantAttenuation(&self) -> ::windows_core::Result { let this = self; @@ -24568,10 +22453,10 @@ impl SpotLight { } pub fn SetCoordinateSpace(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetCoordinateSpace)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetCoordinateSpace)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] @@ -24692,47 +22577,47 @@ impl SpotLight { unsafe { (::windows_core::Interface::vtable(this).SetQuadraticAttenuation)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn InnerConeIntensity(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).InnerConeIntensity)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetInnerConeIntensity(&self, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetInnerConeIntensity)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn OuterConeIntensity(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).OuterConeIntensity)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetOuterConeIntensity(&self, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetOuterConeIntensity)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn MinAttenuationCutoff(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MinAttenuationCutoff)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetMinAttenuationCutoff(&self, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMinAttenuationCutoff)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn MaxAttenuationCutoff(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MaxAttenuationCutoff)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetMaxAttenuationCutoff(&self, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMaxAttenuationCutoff)(::windows_core::Interface::as_raw(this), value).ok() } } } @@ -24741,113 +22626,108 @@ impl ::windows_core::RuntimeType for SpotLight { } unsafe impl ::windows_core::Interface for SpotLight { type Vtable = ISpotLight_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpotLight { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpotLight { const NAME: &'static str = "Windows.UI.Composition.SpotLight"; } -::windows_core::imp::interface_hierarchy!(SpotLight, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for SpotLight {} -impl ::windows_core::CanTryInto for SpotLight {} -impl ::windows_core::CanTryInto for SpotLight {} -impl ::windows_core::CanTryInto for SpotLight {} unsafe impl ::core::marker::Send for SpotLight {} unsafe impl ::core::marker::Sync for SpotLight {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpringScalarNaturalMotionAnimation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpringScalarNaturalMotionAnimation, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(SpringScalarNaturalMotionAnimation, IAnimationObject, super::super::Foundation::IClosable, ICompositionAnimationBase, ScalarNaturalMotionAnimation, NaturalMotionAnimation, CompositionAnimation, CompositionObject); impl SpringScalarNaturalMotionAnimation { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn ClearAllParameters(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ClearAllParameters)(::windows_core::Interface::as_raw(this)).ok() } } pub fn ClearParameter(&self, key: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ClearParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key)).ok() } } pub fn SetColorParameter(&self, key: &::windows_core::HSTRING, value: super::Color) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetColorParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetMatrix3x2Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix3x2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMatrix3x2Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetMatrix4x4Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix4x4) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMatrix4x4Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetQuaternionParameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Quaternion) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetQuaternionParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } pub fn SetReferenceParameter(&self, key: &::windows_core::HSTRING, compositionobject: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetReferenceParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), compositionobject.try_into_param()?.abi()).ok() } + 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() } } pub fn SetScalarParameter(&self, key: &::windows_core::HSTRING, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetScalarParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetVector2Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetVector2Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetVector3Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector3) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetVector3Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetVector4Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector4) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetVector4Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } pub fn SetBooleanParameter(&self, key: &::windows_core::HSTRING, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetBooleanParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } pub fn Target(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Target)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetTarget(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetTarget)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn InitialValueExpressions(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).InitialValueExpressions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -24855,13 +22735,13 @@ impl SpringScalarNaturalMotionAnimation { } pub fn SetExpressionReferenceParameter(&self, parametername: &::windows_core::HSTRING, source: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetExpressionReferenceParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(parametername), source.try_into_param()?.abi()).ok() } + 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() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -24870,14 +22750,14 @@ impl SpringScalarNaturalMotionAnimation { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -24885,28 +22765,28 @@ impl SpringScalarNaturalMotionAnimation { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -24916,34 +22796,34 @@ impl SpringScalarNaturalMotionAnimation { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -24951,47 +22831,47 @@ impl SpringScalarNaturalMotionAnimation { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } pub fn DelayBehavior(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DelayBehavior)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDelayBehavior(&self, value: AnimationDelayBehavior) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDelayBehavior)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn DelayTime(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DelayTime)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDelayTime(&self, value: super::super::Foundation::TimeSpan) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDelayTime)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn StopBehavior(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).StopBehavior)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetStopBehavior(&self, value: AnimationStopBehavior) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetStopBehavior)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn FinalValue(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FinalValue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -24999,13 +22879,13 @@ impl SpringScalarNaturalMotionAnimation { } pub fn SetFinalValue(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetFinalValue)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn InitialValue(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).InitialValue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -25013,20 +22893,20 @@ impl SpringScalarNaturalMotionAnimation { } pub fn SetInitialValue(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetInitialValue)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn InitialVelocity(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).InitialVelocity)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetInitialVelocity(&self, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetInitialVelocity)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn DampingRatio(&self) -> ::windows_core::Result { @@ -25057,116 +22937,108 @@ impl ::windows_core::RuntimeType for SpringScalarNaturalMotionAnimation { } unsafe impl ::windows_core::Interface for SpringScalarNaturalMotionAnimation { type Vtable = ISpringScalarNaturalMotionAnimation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpringScalarNaturalMotionAnimation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpringScalarNaturalMotionAnimation { const NAME: &'static str = "Windows.UI.Composition.SpringScalarNaturalMotionAnimation"; } -::windows_core::imp::interface_hierarchy!(SpringScalarNaturalMotionAnimation, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for SpringScalarNaturalMotionAnimation {} -impl ::windows_core::CanTryInto for SpringScalarNaturalMotionAnimation {} -impl ::windows_core::CanTryInto for SpringScalarNaturalMotionAnimation {} -impl ::windows_core::CanTryInto for SpringScalarNaturalMotionAnimation {} -impl ::windows_core::CanTryInto for SpringScalarNaturalMotionAnimation {} -impl ::windows_core::CanTryInto for SpringScalarNaturalMotionAnimation {} -impl ::windows_core::CanTryInto for SpringScalarNaturalMotionAnimation {} unsafe impl ::core::marker::Send for SpringScalarNaturalMotionAnimation {} unsafe impl ::core::marker::Sync for SpringScalarNaturalMotionAnimation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpringVector2NaturalMotionAnimation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpringVector2NaturalMotionAnimation, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(SpringVector2NaturalMotionAnimation, IAnimationObject, super::super::Foundation::IClosable, ICompositionAnimationBase, Vector2NaturalMotionAnimation, NaturalMotionAnimation, CompositionAnimation, CompositionObject); impl SpringVector2NaturalMotionAnimation { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn ClearAllParameters(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ClearAllParameters)(::windows_core::Interface::as_raw(this)).ok() } } pub fn ClearParameter(&self, key: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ClearParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key)).ok() } } pub fn SetColorParameter(&self, key: &::windows_core::HSTRING, value: super::Color) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetColorParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetMatrix3x2Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix3x2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMatrix3x2Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetMatrix4x4Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix4x4) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMatrix4x4Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetQuaternionParameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Quaternion) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetQuaternionParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } pub fn SetReferenceParameter(&self, key: &::windows_core::HSTRING, compositionobject: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetReferenceParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), compositionobject.try_into_param()?.abi()).ok() } + 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() } } pub fn SetScalarParameter(&self, key: &::windows_core::HSTRING, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetScalarParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetVector2Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetVector2Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetVector3Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector3) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetVector3Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetVector4Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector4) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetVector4Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } pub fn SetBooleanParameter(&self, key: &::windows_core::HSTRING, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetBooleanParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } pub fn Target(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Target)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetTarget(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetTarget)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn InitialValueExpressions(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).InitialValueExpressions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -25174,13 +23046,13 @@ impl SpringVector2NaturalMotionAnimation { } pub fn SetExpressionReferenceParameter(&self, parametername: &::windows_core::HSTRING, source: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetExpressionReferenceParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(parametername), source.try_into_param()?.abi()).ok() } + 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() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -25189,14 +23061,14 @@ impl SpringVector2NaturalMotionAnimation { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -25204,28 +23076,28 @@ impl SpringVector2NaturalMotionAnimation { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -25235,34 +23107,34 @@ impl SpringVector2NaturalMotionAnimation { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -25270,43 +23142,43 @@ impl SpringVector2NaturalMotionAnimation { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } pub fn DelayBehavior(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DelayBehavior)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDelayBehavior(&self, value: AnimationDelayBehavior) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDelayBehavior)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn DelayTime(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DelayTime)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDelayTime(&self, value: super::super::Foundation::TimeSpan) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDelayTime)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn StopBehavior(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).StopBehavior)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetStopBehavior(&self, value: AnimationStopBehavior) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetStopBehavior)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn DampingRatio(&self) -> ::windows_core::Result { @@ -25334,7 +23206,7 @@ impl SpringVector2NaturalMotionAnimation { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn FinalValue(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FinalValue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -25344,15 +23216,15 @@ impl SpringVector2NaturalMotionAnimation { #[cfg(feature = "Foundation_Numerics")] pub fn SetFinalValue(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetFinalValue)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn InitialValue(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).InitialValue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -25362,15 +23234,15 @@ impl SpringVector2NaturalMotionAnimation { #[cfg(feature = "Foundation_Numerics")] pub fn SetInitialValue(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetInitialValue)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn InitialVelocity(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).InitialVelocity)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -25379,7 +23251,7 @@ impl SpringVector2NaturalMotionAnimation { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetInitialVelocity(&self, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetInitialVelocity)(::windows_core::Interface::as_raw(this), value).ok() } } } @@ -25388,116 +23260,108 @@ impl ::windows_core::RuntimeType for SpringVector2NaturalMotionAnimation { } unsafe impl ::windows_core::Interface for SpringVector2NaturalMotionAnimation { type Vtable = ISpringVector2NaturalMotionAnimation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpringVector2NaturalMotionAnimation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpringVector2NaturalMotionAnimation { const NAME: &'static str = "Windows.UI.Composition.SpringVector2NaturalMotionAnimation"; } -::windows_core::imp::interface_hierarchy!(SpringVector2NaturalMotionAnimation, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for SpringVector2NaturalMotionAnimation {} -impl ::windows_core::CanTryInto for SpringVector2NaturalMotionAnimation {} -impl ::windows_core::CanTryInto for SpringVector2NaturalMotionAnimation {} -impl ::windows_core::CanTryInto for SpringVector2NaturalMotionAnimation {} -impl ::windows_core::CanTryInto for SpringVector2NaturalMotionAnimation {} -impl ::windows_core::CanTryInto for SpringVector2NaturalMotionAnimation {} -impl ::windows_core::CanTryInto for SpringVector2NaturalMotionAnimation {} unsafe impl ::core::marker::Send for SpringVector2NaturalMotionAnimation {} unsafe impl ::core::marker::Sync for SpringVector2NaturalMotionAnimation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpringVector3NaturalMotionAnimation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpringVector3NaturalMotionAnimation, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(SpringVector3NaturalMotionAnimation, IAnimationObject, super::super::Foundation::IClosable, ICompositionAnimationBase, Vector3NaturalMotionAnimation, NaturalMotionAnimation, CompositionAnimation, CompositionObject); impl SpringVector3NaturalMotionAnimation { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn ClearAllParameters(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ClearAllParameters)(::windows_core::Interface::as_raw(this)).ok() } } pub fn ClearParameter(&self, key: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ClearParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key)).ok() } } pub fn SetColorParameter(&self, key: &::windows_core::HSTRING, value: super::Color) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetColorParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetMatrix3x2Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix3x2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMatrix3x2Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetMatrix4x4Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix4x4) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMatrix4x4Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetQuaternionParameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Quaternion) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetQuaternionParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } pub fn SetReferenceParameter(&self, key: &::windows_core::HSTRING, compositionobject: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetReferenceParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), compositionobject.try_into_param()?.abi()).ok() } + 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() } } pub fn SetScalarParameter(&self, key: &::windows_core::HSTRING, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetScalarParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetVector2Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetVector2Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetVector3Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector3) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetVector3Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetVector4Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector4) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetVector4Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } pub fn SetBooleanParameter(&self, key: &::windows_core::HSTRING, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetBooleanParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } pub fn Target(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Target)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetTarget(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetTarget)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn InitialValueExpressions(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).InitialValueExpressions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -25505,13 +23369,13 @@ impl SpringVector3NaturalMotionAnimation { } pub fn SetExpressionReferenceParameter(&self, parametername: &::windows_core::HSTRING, source: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetExpressionReferenceParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(parametername), source.try_into_param()?.abi()).ok() } + 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() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -25520,14 +23384,14 @@ impl SpringVector3NaturalMotionAnimation { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -25535,28 +23399,28 @@ impl SpringVector3NaturalMotionAnimation { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -25566,34 +23430,34 @@ impl SpringVector3NaturalMotionAnimation { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -25601,43 +23465,43 @@ impl SpringVector3NaturalMotionAnimation { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } pub fn DelayBehavior(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DelayBehavior)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDelayBehavior(&self, value: AnimationDelayBehavior) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDelayBehavior)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn DelayTime(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DelayTime)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDelayTime(&self, value: super::super::Foundation::TimeSpan) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDelayTime)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn StopBehavior(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).StopBehavior)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetStopBehavior(&self, value: AnimationStopBehavior) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetStopBehavior)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn DampingRatio(&self) -> ::windows_core::Result { @@ -25665,7 +23529,7 @@ impl SpringVector3NaturalMotionAnimation { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn FinalValue(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FinalValue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -25675,15 +23539,15 @@ impl SpringVector3NaturalMotionAnimation { #[cfg(feature = "Foundation_Numerics")] pub fn SetFinalValue(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetFinalValue)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn InitialValue(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).InitialValue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -25693,15 +23557,15 @@ impl SpringVector3NaturalMotionAnimation { #[cfg(feature = "Foundation_Numerics")] pub fn SetInitialValue(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetInitialValue)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn InitialVelocity(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).InitialVelocity)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -25710,7 +23574,7 @@ impl SpringVector3NaturalMotionAnimation { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetInitialVelocity(&self, value: super::super::Foundation::Numerics::Vector3) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetInitialVelocity)(::windows_core::Interface::as_raw(this), value).ok() } } } @@ -25719,40 +23583,32 @@ impl ::windows_core::RuntimeType for SpringVector3NaturalMotionAnimation { } unsafe impl ::windows_core::Interface for SpringVector3NaturalMotionAnimation { type Vtable = ISpringVector3NaturalMotionAnimation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpringVector3NaturalMotionAnimation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpringVector3NaturalMotionAnimation { const NAME: &'static str = "Windows.UI.Composition.SpringVector3NaturalMotionAnimation"; } -::windows_core::imp::interface_hierarchy!(SpringVector3NaturalMotionAnimation, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for SpringVector3NaturalMotionAnimation {} -impl ::windows_core::CanTryInto for SpringVector3NaturalMotionAnimation {} -impl ::windows_core::CanTryInto for SpringVector3NaturalMotionAnimation {} -impl ::windows_core::CanTryInto for SpringVector3NaturalMotionAnimation {} -impl ::windows_core::CanTryInto for SpringVector3NaturalMotionAnimation {} -impl ::windows_core::CanTryInto for SpringVector3NaturalMotionAnimation {} -impl ::windows_core::CanTryInto for SpringVector3NaturalMotionAnimation {} unsafe impl ::core::marker::Send for SpringVector3NaturalMotionAnimation {} unsafe impl ::core::marker::Sync for SpringVector3NaturalMotionAnimation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpriteVisual(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpriteVisual, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(SpriteVisual, IAnimationObject, super::super::Foundation::IClosable, ContainerVisual, Visual, CompositionObject); impl SpriteVisual { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -25761,14 +23617,14 @@ impl SpriteVisual { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -25776,28 +23632,28 @@ impl SpriteVisual { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -25807,34 +23663,34 @@ impl SpriteVisual { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -25842,14 +23698,14 @@ impl SpriteVisual { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } pub fn Children(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Children)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -25864,13 +23720,13 @@ impl SpriteVisual { } pub fn SetBrush(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetBrush)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetBrush)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn Shadow(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Shadow)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -25878,15 +23734,15 @@ impl SpriteVisual { } pub fn SetShadow(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetShadow)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn AnchorPoint(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AnchorPoint)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -25895,35 +23751,35 @@ impl SpriteVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetAnchorPoint(&self, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetAnchorPoint)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn BackfaceVisibility(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).BackfaceVisibility)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetBackfaceVisibility(&self, value: CompositionBackfaceVisibility) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetBackfaceVisibility)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn BorderMode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).BorderMode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetBorderMode(&self, value: CompositionBorderMode) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetBorderMode)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn CenterPoint(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CenterPoint)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -25932,11 +23788,11 @@ impl SpriteVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetCenterPoint(&self, value: super::super::Foundation::Numerics::Vector3) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCenterPoint)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Clip(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Clip)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -25944,37 +23800,37 @@ impl SpriteVisual { } pub fn SetClip(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetClip)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn CompositeMode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CompositeMode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetCompositeMode(&self, value: CompositionCompositeMode) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCompositeMode)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsVisible(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsVisible)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsVisible(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsVisible)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn Offset(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Offset)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -25983,24 +23839,24 @@ impl SpriteVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetOffset(&self, value: super::super::Foundation::Numerics::Vector3) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetOffset)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Opacity(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Opacity)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetOpacity(&self, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetOpacity)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn Orientation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Orientation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -26009,42 +23865,42 @@ impl SpriteVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetOrientation(&self, value: super::super::Foundation::Numerics::Quaternion) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetOrientation)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Parent(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Parent)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn RotationAngle(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RotationAngle)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetRotationAngle(&self, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRotationAngle)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn RotationAngleInDegrees(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RotationAngleInDegrees)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetRotationAngleInDegrees(&self, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRotationAngleInDegrees)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn RotationAxis(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RotationAxis)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -26053,13 +23909,13 @@ impl SpriteVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetRotationAxis(&self, value: super::super::Foundation::Numerics::Vector3) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRotationAxis)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn Scale(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Scale)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -26068,13 +23924,13 @@ impl SpriteVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetScale(&self, value: super::super::Foundation::Numerics::Vector3) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetScale)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn Size(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Size)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -26083,13 +23939,13 @@ impl SpriteVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetSize(&self, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetSize)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn TransformMatrix(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TransformMatrix)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -26098,11 +23954,11 @@ impl SpriteVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetTransformMatrix(&self, value: super::super::Foundation::Numerics::Matrix4x4) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetTransformMatrix)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn ParentForTransform(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ParentForTransform)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -26110,15 +23966,15 @@ impl SpriteVisual { } pub fn SetParentForTransform(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetParentForTransform)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn RelativeOffsetAdjustment(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RelativeOffsetAdjustment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -26127,13 +23983,13 @@ impl SpriteVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetRelativeOffsetAdjustment(&self, value: super::super::Foundation::Numerics::Vector3) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRelativeOffsetAdjustment)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn RelativeSizeAdjustment(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RelativeSizeAdjustment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -26142,29 +23998,29 @@ impl SpriteVisual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetRelativeSizeAdjustment(&self, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRelativeSizeAdjustment)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsHitTestVisible(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsHitTestVisible)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsHitTestVisible(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsHitTestVisible)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsPixelSnappingEnabled(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsPixelSnappingEnabled)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsPixelSnappingEnabled(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsPixelSnappingEnabled)(::windows_core::Interface::as_raw(this), value).ok() } } } @@ -26173,38 +24029,32 @@ impl ::windows_core::RuntimeType for SpriteVisual { } unsafe impl ::windows_core::Interface for SpriteVisual { type Vtable = ISpriteVisual_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpriteVisual { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpriteVisual { const NAME: &'static str = "Windows.UI.Composition.SpriteVisual"; } -::windows_core::imp::interface_hierarchy!(SpriteVisual, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for SpriteVisual {} -impl ::windows_core::CanTryInto for SpriteVisual {} -impl ::windows_core::CanTryInto for SpriteVisual {} -impl ::windows_core::CanTryInto for SpriteVisual {} -impl ::windows_core::CanTryInto for SpriteVisual {} unsafe impl ::core::marker::Send for SpriteVisual {} unsafe impl ::core::marker::Sync for SpriteVisual {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StepEasingFunction(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StepEasingFunction, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(StepEasingFunction, IAnimationObject, super::super::Foundation::IClosable, CompositionEasingFunction, CompositionObject); impl StepEasingFunction { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -26213,14 +24063,14 @@ impl StepEasingFunction { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -26228,28 +24078,28 @@ impl StepEasingFunction { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -26259,34 +24109,34 @@ impl StepEasingFunction { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -26294,11 +24144,11 @@ impl StepEasingFunction { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } pub fn FinalStep(&self) -> ::windows_core::Result { let this = self; @@ -26361,113 +24211,108 @@ impl ::windows_core::RuntimeType for StepEasingFunction { } unsafe impl ::windows_core::Interface for StepEasingFunction { type Vtable = IStepEasingFunction_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StepEasingFunction { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StepEasingFunction { const NAME: &'static str = "Windows.UI.Composition.StepEasingFunction"; } -::windows_core::imp::interface_hierarchy!(StepEasingFunction, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for StepEasingFunction {} -impl ::windows_core::CanTryInto for StepEasingFunction {} -impl ::windows_core::CanTryInto for StepEasingFunction {} -impl ::windows_core::CanTryInto for StepEasingFunction {} unsafe impl ::core::marker::Send for StepEasingFunction {} unsafe impl ::core::marker::Sync for StepEasingFunction {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Vector2KeyFrameAnimation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Vector2KeyFrameAnimation, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(Vector2KeyFrameAnimation, IAnimationObject, super::super::Foundation::IClosable, ICompositionAnimationBase, KeyFrameAnimation, CompositionAnimation, CompositionObject); impl Vector2KeyFrameAnimation { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn ClearAllParameters(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ClearAllParameters)(::windows_core::Interface::as_raw(this)).ok() } } pub fn ClearParameter(&self, key: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ClearParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key)).ok() } } pub fn SetColorParameter(&self, key: &::windows_core::HSTRING, value: super::Color) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetColorParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetMatrix3x2Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix3x2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMatrix3x2Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetMatrix4x4Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix4x4) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMatrix4x4Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetQuaternionParameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Quaternion) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetQuaternionParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } pub fn SetReferenceParameter(&self, key: &::windows_core::HSTRING, compositionobject: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetReferenceParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), compositionobject.try_into_param()?.abi()).ok() } + 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() } } pub fn SetScalarParameter(&self, key: &::windows_core::HSTRING, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetScalarParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetVector2Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetVector2Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetVector3Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector3) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetVector3Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetVector4Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector4) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetVector4Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } pub fn SetBooleanParameter(&self, key: &::windows_core::HSTRING, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetBooleanParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } pub fn Target(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Target)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetTarget(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetTarget)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn InitialValueExpressions(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).InitialValueExpressions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -26475,13 +24320,13 @@ impl Vector2KeyFrameAnimation { } pub fn SetExpressionReferenceParameter(&self, parametername: &::windows_core::HSTRING, source: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetExpressionReferenceParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(parametername), source.try_into_param()?.abi()).ok() } + 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() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -26490,14 +24335,14 @@ impl Vector2KeyFrameAnimation { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -26505,28 +24350,28 @@ impl Vector2KeyFrameAnimation { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -26536,34 +24381,34 @@ impl Vector2KeyFrameAnimation { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -26571,105 +24416,105 @@ impl Vector2KeyFrameAnimation { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } pub fn DelayTime(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DelayTime)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDelayTime(&self, value: super::super::Foundation::TimeSpan) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDelayTime)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Duration(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Duration)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDuration(&self, value: super::super::Foundation::TimeSpan) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDuration)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IterationBehavior(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IterationBehavior)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIterationBehavior(&self, value: AnimationIterationBehavior) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIterationBehavior)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IterationCount(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IterationCount)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIterationCount(&self, value: i32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIterationCount)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn KeyFrameCount(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).KeyFrameCount)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn StopBehavior(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).StopBehavior)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetStopBehavior(&self, value: AnimationStopBehavior) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetStopBehavior)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn InsertExpressionKeyFrame(&self, normalizedprogresskey: f32, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).InsertExpressionKeyFrame)(::windows_core::Interface::as_raw(this), normalizedprogresskey, ::core::mem::transmute_copy(value)).ok() } } pub fn InsertExpressionKeyFrameWithEasingFunction(&self, normalizedprogresskey: f32, value: &::windows_core::HSTRING, easingfunction: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).InsertExpressionKeyFrameWithEasingFunction)(::windows_core::Interface::as_raw(this), normalizedprogresskey, ::core::mem::transmute_copy(value), easingfunction.try_into_param()?.abi()).ok() } + 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() } } pub fn Direction(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Direction)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDirection(&self, value: AnimationDirection) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDirection)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn DelayBehavior(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DelayBehavior)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDelayBehavior(&self, value: AnimationDelayBehavior) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDelayBehavior)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] @@ -26682,10 +24527,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::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).InsertKeyFrameWithEasingFunction)(::windows_core::Interface::as_raw(this), normalizedprogresskey, value, easingfunction.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).InsertKeyFrameWithEasingFunction)(::windows_core::Interface::as_raw(this), normalizedprogresskey, value, easingfunction.into_param().abi()).ok() } } } impl ::windows_core::RuntimeType for Vector2KeyFrameAnimation { @@ -26693,115 +24538,108 @@ impl ::windows_core::RuntimeType for Vector2KeyFrameAnimation { } unsafe impl ::windows_core::Interface for Vector2KeyFrameAnimation { type Vtable = IVector2KeyFrameAnimation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Vector2KeyFrameAnimation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Vector2KeyFrameAnimation { const NAME: &'static str = "Windows.UI.Composition.Vector2KeyFrameAnimation"; } -::windows_core::imp::interface_hierarchy!(Vector2KeyFrameAnimation, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for Vector2KeyFrameAnimation {} -impl ::windows_core::CanTryInto for Vector2KeyFrameAnimation {} -impl ::windows_core::CanTryInto for Vector2KeyFrameAnimation {} -impl ::windows_core::CanTryInto for Vector2KeyFrameAnimation {} -impl ::windows_core::CanTryInto for Vector2KeyFrameAnimation {} -impl ::windows_core::CanTryInto for Vector2KeyFrameAnimation {} unsafe impl ::core::marker::Send for Vector2KeyFrameAnimation {} unsafe impl ::core::marker::Sync for Vector2KeyFrameAnimation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Vector2NaturalMotionAnimation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Vector2NaturalMotionAnimation, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(Vector2NaturalMotionAnimation, IAnimationObject, super::super::Foundation::IClosable, ICompositionAnimationBase, NaturalMotionAnimation, CompositionAnimation, CompositionObject); impl Vector2NaturalMotionAnimation { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn ClearAllParameters(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ClearAllParameters)(::windows_core::Interface::as_raw(this)).ok() } } pub fn ClearParameter(&self, key: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ClearParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key)).ok() } } pub fn SetColorParameter(&self, key: &::windows_core::HSTRING, value: super::Color) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetColorParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetMatrix3x2Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix3x2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMatrix3x2Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetMatrix4x4Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix4x4) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMatrix4x4Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetQuaternionParameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Quaternion) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetQuaternionParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } pub fn SetReferenceParameter(&self, key: &::windows_core::HSTRING, compositionobject: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetReferenceParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), compositionobject.try_into_param()?.abi()).ok() } + 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() } } pub fn SetScalarParameter(&self, key: &::windows_core::HSTRING, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetScalarParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetVector2Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetVector2Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetVector3Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector3) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetVector3Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetVector4Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector4) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetVector4Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } pub fn SetBooleanParameter(&self, key: &::windows_core::HSTRING, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetBooleanParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } pub fn Target(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Target)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetTarget(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetTarget)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn InitialValueExpressions(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).InitialValueExpressions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -26809,13 +24647,13 @@ impl Vector2NaturalMotionAnimation { } pub fn SetExpressionReferenceParameter(&self, parametername: &::windows_core::HSTRING, source: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetExpressionReferenceParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(parametername), source.try_into_param()?.abi()).ok() } + 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() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -26824,14 +24662,14 @@ impl Vector2NaturalMotionAnimation { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -26839,28 +24677,28 @@ impl Vector2NaturalMotionAnimation { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -26870,34 +24708,34 @@ impl Vector2NaturalMotionAnimation { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -26905,43 +24743,43 @@ impl Vector2NaturalMotionAnimation { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } pub fn DelayBehavior(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DelayBehavior)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDelayBehavior(&self, value: AnimationDelayBehavior) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDelayBehavior)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn DelayTime(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DelayTime)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDelayTime(&self, value: super::super::Foundation::TimeSpan) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDelayTime)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn StopBehavior(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).StopBehavior)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetStopBehavior(&self, value: AnimationStopBehavior) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetStopBehavior)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] @@ -26957,10 +24795,10 @@ impl Vector2NaturalMotionAnimation { #[cfg(feature = "Foundation_Numerics")] pub fn SetFinalValue(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetFinalValue)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetFinalValue)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] @@ -26975,10 +24813,10 @@ impl Vector2NaturalMotionAnimation { #[cfg(feature = "Foundation_Numerics")] pub fn SetInitialValue(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetInitialValue)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetInitialValue)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] @@ -27001,115 +24839,108 @@ impl ::windows_core::RuntimeType for Vector2NaturalMotionAnimation { } unsafe impl ::windows_core::Interface for Vector2NaturalMotionAnimation { type Vtable = IVector2NaturalMotionAnimation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Vector2NaturalMotionAnimation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Vector2NaturalMotionAnimation { const NAME: &'static str = "Windows.UI.Composition.Vector2NaturalMotionAnimation"; } -::windows_core::imp::interface_hierarchy!(Vector2NaturalMotionAnimation, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for Vector2NaturalMotionAnimation {} -impl ::windows_core::CanTryInto for Vector2NaturalMotionAnimation {} -impl ::windows_core::CanTryInto for Vector2NaturalMotionAnimation {} -impl ::windows_core::CanTryInto for Vector2NaturalMotionAnimation {} -impl ::windows_core::CanTryInto for Vector2NaturalMotionAnimation {} -impl ::windows_core::CanTryInto for Vector2NaturalMotionAnimation {} unsafe impl ::core::marker::Send for Vector2NaturalMotionAnimation {} unsafe impl ::core::marker::Sync for Vector2NaturalMotionAnimation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Vector3KeyFrameAnimation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Vector3KeyFrameAnimation, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(Vector3KeyFrameAnimation, IAnimationObject, super::super::Foundation::IClosable, ICompositionAnimationBase, KeyFrameAnimation, CompositionAnimation, CompositionObject); impl Vector3KeyFrameAnimation { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn ClearAllParameters(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ClearAllParameters)(::windows_core::Interface::as_raw(this)).ok() } } pub fn ClearParameter(&self, key: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ClearParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key)).ok() } } pub fn SetColorParameter(&self, key: &::windows_core::HSTRING, value: super::Color) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetColorParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetMatrix3x2Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix3x2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMatrix3x2Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetMatrix4x4Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix4x4) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMatrix4x4Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetQuaternionParameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Quaternion) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetQuaternionParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } pub fn SetReferenceParameter(&self, key: &::windows_core::HSTRING, compositionobject: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetReferenceParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), compositionobject.try_into_param()?.abi()).ok() } + 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() } } pub fn SetScalarParameter(&self, key: &::windows_core::HSTRING, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetScalarParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetVector2Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetVector2Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetVector3Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector3) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetVector3Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetVector4Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector4) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetVector4Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } pub fn SetBooleanParameter(&self, key: &::windows_core::HSTRING, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetBooleanParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } pub fn Target(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Target)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetTarget(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetTarget)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn InitialValueExpressions(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).InitialValueExpressions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -27117,13 +24948,13 @@ impl Vector3KeyFrameAnimation { } pub fn SetExpressionReferenceParameter(&self, parametername: &::windows_core::HSTRING, source: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetExpressionReferenceParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(parametername), source.try_into_param()?.abi()).ok() } + 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() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -27132,14 +24963,14 @@ impl Vector3KeyFrameAnimation { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -27147,28 +24978,28 @@ impl Vector3KeyFrameAnimation { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -27178,34 +25009,34 @@ impl Vector3KeyFrameAnimation { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -27213,105 +25044,105 @@ impl Vector3KeyFrameAnimation { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } pub fn DelayTime(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DelayTime)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDelayTime(&self, value: super::super::Foundation::TimeSpan) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDelayTime)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Duration(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Duration)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDuration(&self, value: super::super::Foundation::TimeSpan) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDuration)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IterationBehavior(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IterationBehavior)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIterationBehavior(&self, value: AnimationIterationBehavior) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIterationBehavior)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IterationCount(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IterationCount)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIterationCount(&self, value: i32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIterationCount)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn KeyFrameCount(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).KeyFrameCount)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn StopBehavior(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).StopBehavior)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetStopBehavior(&self, value: AnimationStopBehavior) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetStopBehavior)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn InsertExpressionKeyFrame(&self, normalizedprogresskey: f32, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).InsertExpressionKeyFrame)(::windows_core::Interface::as_raw(this), normalizedprogresskey, ::core::mem::transmute_copy(value)).ok() } } pub fn InsertExpressionKeyFrameWithEasingFunction(&self, normalizedprogresskey: f32, value: &::windows_core::HSTRING, easingfunction: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).InsertExpressionKeyFrameWithEasingFunction)(::windows_core::Interface::as_raw(this), normalizedprogresskey, ::core::mem::transmute_copy(value), easingfunction.try_into_param()?.abi()).ok() } + 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() } } pub fn Direction(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Direction)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDirection(&self, value: AnimationDirection) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDirection)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn DelayBehavior(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DelayBehavior)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDelayBehavior(&self, value: AnimationDelayBehavior) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDelayBehavior)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] @@ -27324,10 +25155,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::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).InsertKeyFrameWithEasingFunction)(::windows_core::Interface::as_raw(this), normalizedprogresskey, value, easingfunction.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).InsertKeyFrameWithEasingFunction)(::windows_core::Interface::as_raw(this), normalizedprogresskey, value, easingfunction.into_param().abi()).ok() } } } impl ::windows_core::RuntimeType for Vector3KeyFrameAnimation { @@ -27335,115 +25166,108 @@ impl ::windows_core::RuntimeType for Vector3KeyFrameAnimation { } unsafe impl ::windows_core::Interface for Vector3KeyFrameAnimation { type Vtable = IVector3KeyFrameAnimation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Vector3KeyFrameAnimation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Vector3KeyFrameAnimation { const NAME: &'static str = "Windows.UI.Composition.Vector3KeyFrameAnimation"; } -::windows_core::imp::interface_hierarchy!(Vector3KeyFrameAnimation, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for Vector3KeyFrameAnimation {} -impl ::windows_core::CanTryInto for Vector3KeyFrameAnimation {} -impl ::windows_core::CanTryInto for Vector3KeyFrameAnimation {} -impl ::windows_core::CanTryInto for Vector3KeyFrameAnimation {} -impl ::windows_core::CanTryInto for Vector3KeyFrameAnimation {} -impl ::windows_core::CanTryInto for Vector3KeyFrameAnimation {} unsafe impl ::core::marker::Send for Vector3KeyFrameAnimation {} unsafe impl ::core::marker::Sync for Vector3KeyFrameAnimation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Vector3NaturalMotionAnimation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Vector3NaturalMotionAnimation, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(Vector3NaturalMotionAnimation, IAnimationObject, super::super::Foundation::IClosable, ICompositionAnimationBase, NaturalMotionAnimation, CompositionAnimation, CompositionObject); impl Vector3NaturalMotionAnimation { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn ClearAllParameters(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ClearAllParameters)(::windows_core::Interface::as_raw(this)).ok() } } pub fn ClearParameter(&self, key: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ClearParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key)).ok() } } pub fn SetColorParameter(&self, key: &::windows_core::HSTRING, value: super::Color) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetColorParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetMatrix3x2Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix3x2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMatrix3x2Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetMatrix4x4Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix4x4) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMatrix4x4Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetQuaternionParameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Quaternion) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetQuaternionParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } pub fn SetReferenceParameter(&self, key: &::windows_core::HSTRING, compositionobject: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetReferenceParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), compositionobject.try_into_param()?.abi()).ok() } + 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() } } pub fn SetScalarParameter(&self, key: &::windows_core::HSTRING, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetScalarParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetVector2Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetVector2Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetVector3Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector3) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetVector3Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetVector4Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector4) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetVector4Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } pub fn SetBooleanParameter(&self, key: &::windows_core::HSTRING, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetBooleanParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } pub fn Target(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Target)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetTarget(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetTarget)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn InitialValueExpressions(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).InitialValueExpressions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -27451,13 +25275,13 @@ impl Vector3NaturalMotionAnimation { } pub fn SetExpressionReferenceParameter(&self, parametername: &::windows_core::HSTRING, source: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetExpressionReferenceParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(parametername), source.try_into_param()?.abi()).ok() } + 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() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -27466,14 +25290,14 @@ impl Vector3NaturalMotionAnimation { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -27481,28 +25305,28 @@ impl Vector3NaturalMotionAnimation { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -27512,34 +25336,34 @@ impl Vector3NaturalMotionAnimation { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -27547,43 +25371,43 @@ impl Vector3NaturalMotionAnimation { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } pub fn DelayBehavior(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DelayBehavior)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDelayBehavior(&self, value: AnimationDelayBehavior) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDelayBehavior)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn DelayTime(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DelayTime)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDelayTime(&self, value: super::super::Foundation::TimeSpan) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDelayTime)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn StopBehavior(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).StopBehavior)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetStopBehavior(&self, value: AnimationStopBehavior) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetStopBehavior)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] @@ -27599,10 +25423,10 @@ impl Vector3NaturalMotionAnimation { #[cfg(feature = "Foundation_Numerics")] pub fn SetFinalValue(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetFinalValue)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetFinalValue)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] @@ -27617,10 +25441,10 @@ impl Vector3NaturalMotionAnimation { #[cfg(feature = "Foundation_Numerics")] pub fn SetInitialValue(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetInitialValue)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetInitialValue)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] @@ -27643,115 +25467,108 @@ impl ::windows_core::RuntimeType for Vector3NaturalMotionAnimation { } unsafe impl ::windows_core::Interface for Vector3NaturalMotionAnimation { type Vtable = IVector3NaturalMotionAnimation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Vector3NaturalMotionAnimation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Vector3NaturalMotionAnimation { const NAME: &'static str = "Windows.UI.Composition.Vector3NaturalMotionAnimation"; } -::windows_core::imp::interface_hierarchy!(Vector3NaturalMotionAnimation, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for Vector3NaturalMotionAnimation {} -impl ::windows_core::CanTryInto for Vector3NaturalMotionAnimation {} -impl ::windows_core::CanTryInto for Vector3NaturalMotionAnimation {} -impl ::windows_core::CanTryInto for Vector3NaturalMotionAnimation {} -impl ::windows_core::CanTryInto for Vector3NaturalMotionAnimation {} -impl ::windows_core::CanTryInto for Vector3NaturalMotionAnimation {} unsafe impl ::core::marker::Send for Vector3NaturalMotionAnimation {} unsafe impl ::core::marker::Sync for Vector3NaturalMotionAnimation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Vector4KeyFrameAnimation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Vector4KeyFrameAnimation, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(Vector4KeyFrameAnimation, IAnimationObject, super::super::Foundation::IClosable, ICompositionAnimationBase, KeyFrameAnimation, CompositionAnimation, CompositionObject); impl Vector4KeyFrameAnimation { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn ClearAllParameters(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ClearAllParameters)(::windows_core::Interface::as_raw(this)).ok() } } pub fn ClearParameter(&self, key: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ClearParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key)).ok() } } pub fn SetColorParameter(&self, key: &::windows_core::HSTRING, value: super::Color) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetColorParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetMatrix3x2Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix3x2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMatrix3x2Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetMatrix4x4Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Matrix4x4) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMatrix4x4Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetQuaternionParameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Quaternion) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetQuaternionParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } pub fn SetReferenceParameter(&self, key: &::windows_core::HSTRING, compositionobject: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetReferenceParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), compositionobject.try_into_param()?.abi()).ok() } + 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() } } pub fn SetScalarParameter(&self, key: &::windows_core::HSTRING, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetScalarParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetVector2Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetVector2Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetVector3Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector3) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetVector3Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetVector4Parameter(&self, key: &::windows_core::HSTRING, value: super::super::Foundation::Numerics::Vector4) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetVector4Parameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } pub fn SetBooleanParameter(&self, key: &::windows_core::HSTRING, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetBooleanParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key), value).ok() } } pub fn Target(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Target)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetTarget(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetTarget)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn InitialValueExpressions(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).InitialValueExpressions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -27759,13 +25576,13 @@ impl Vector4KeyFrameAnimation { } pub fn SetExpressionReferenceParameter(&self, parametername: &::windows_core::HSTRING, source: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetExpressionReferenceParameter)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(parametername), source.try_into_param()?.abi()).ok() } + 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() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -27774,14 +25591,14 @@ impl Vector4KeyFrameAnimation { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -27789,28 +25606,28 @@ impl Vector4KeyFrameAnimation { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -27820,34 +25637,34 @@ impl Vector4KeyFrameAnimation { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -27855,105 +25672,105 @@ impl Vector4KeyFrameAnimation { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } pub fn DelayTime(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DelayTime)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDelayTime(&self, value: super::super::Foundation::TimeSpan) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDelayTime)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Duration(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Duration)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDuration(&self, value: super::super::Foundation::TimeSpan) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDuration)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IterationBehavior(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IterationBehavior)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIterationBehavior(&self, value: AnimationIterationBehavior) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIterationBehavior)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IterationCount(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IterationCount)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIterationCount(&self, value: i32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIterationCount)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn KeyFrameCount(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).KeyFrameCount)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn StopBehavior(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).StopBehavior)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetStopBehavior(&self, value: AnimationStopBehavior) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetStopBehavior)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn InsertExpressionKeyFrame(&self, normalizedprogresskey: f32, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).InsertExpressionKeyFrame)(::windows_core::Interface::as_raw(this), normalizedprogresskey, ::core::mem::transmute_copy(value)).ok() } } pub fn InsertExpressionKeyFrameWithEasingFunction(&self, normalizedprogresskey: f32, value: &::windows_core::HSTRING, easingfunction: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).InsertExpressionKeyFrameWithEasingFunction)(::windows_core::Interface::as_raw(this), normalizedprogresskey, ::core::mem::transmute_copy(value), easingfunction.try_into_param()?.abi()).ok() } + 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() } } pub fn Direction(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Direction)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDirection(&self, value: AnimationDirection) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDirection)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn DelayBehavior(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DelayBehavior)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDelayBehavior(&self, value: AnimationDelayBehavior) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDelayBehavior)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] @@ -27966,10 +25783,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::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).InsertKeyFrameWithEasingFunction)(::windows_core::Interface::as_raw(this), normalizedprogresskey, value, easingfunction.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).InsertKeyFrameWithEasingFunction)(::windows_core::Interface::as_raw(this), normalizedprogresskey, value, easingfunction.into_param().abi()).ok() } } } impl ::windows_core::RuntimeType for Vector4KeyFrameAnimation { @@ -27977,39 +25794,32 @@ impl ::windows_core::RuntimeType for Vector4KeyFrameAnimation { } unsafe impl ::windows_core::Interface for Vector4KeyFrameAnimation { type Vtable = IVector4KeyFrameAnimation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Vector4KeyFrameAnimation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Vector4KeyFrameAnimation { const NAME: &'static str = "Windows.UI.Composition.Vector4KeyFrameAnimation"; } -::windows_core::imp::interface_hierarchy!(Vector4KeyFrameAnimation, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for Vector4KeyFrameAnimation {} -impl ::windows_core::CanTryInto for Vector4KeyFrameAnimation {} -impl ::windows_core::CanTryInto for Vector4KeyFrameAnimation {} -impl ::windows_core::CanTryInto for Vector4KeyFrameAnimation {} -impl ::windows_core::CanTryInto for Vector4KeyFrameAnimation {} -impl ::windows_core::CanTryInto for Vector4KeyFrameAnimation {} unsafe impl ::core::marker::Send for Vector4KeyFrameAnimation {} unsafe impl ::core::marker::Sync for Vector4KeyFrameAnimation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Visual(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Visual, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(Visual, IAnimationObject, super::super::Foundation::IClosable, CompositionObject); impl Visual { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -28018,14 +25828,14 @@ impl Visual { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -28033,28 +25843,28 @@ impl Visual { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -28064,34 +25874,34 @@ impl Visual { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -28099,11 +25909,11 @@ impl Visual { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] @@ -28166,10 +25976,10 @@ impl Visual { } pub fn SetClip(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetClip)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetClip)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn CompositeMode(&self) -> ::windows_core::Result { let this = self; @@ -28324,7 +26134,7 @@ impl Visual { unsafe { (::windows_core::Interface::vtable(this).SetTransformMatrix)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn ParentForTransform(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ParentForTransform)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -28332,15 +26142,15 @@ impl Visual { } pub fn SetParentForTransform(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetParentForTransform)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn RelativeOffsetAdjustment(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RelativeOffsetAdjustment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -28349,13 +26159,13 @@ impl Visual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetRelativeOffsetAdjustment(&self, value: super::super::Foundation::Numerics::Vector3) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRelativeOffsetAdjustment)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn RelativeSizeAdjustment(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RelativeSizeAdjustment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -28364,29 +26174,29 @@ impl Visual { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetRelativeSizeAdjustment(&self, value: super::super::Foundation::Numerics::Vector2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRelativeSizeAdjustment)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsHitTestVisible(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsHitTestVisible)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsHitTestVisible(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsHitTestVisible)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsPixelSnappingEnabled(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsPixelSnappingEnabled)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsPixelSnappingEnabled(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsPixelSnappingEnabled)(::windows_core::Interface::as_raw(this), value).ok() } } } @@ -28395,36 +26205,33 @@ impl ::windows_core::RuntimeType for Visual { } unsafe impl ::windows_core::Interface for Visual { type Vtable = IVisual_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Visual { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Visual { const NAME: &'static str = "Windows.UI.Composition.Visual"; } -::windows_core::imp::interface_hierarchy!(Visual, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for Visual {} -impl ::windows_core::CanTryInto for Visual {} -impl ::windows_core::CanTryInto for Visual {} unsafe impl ::core::marker::Send for Visual {} unsafe impl ::core::marker::Sync for Visual {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VisualCollection(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VisualCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(VisualCollection, IAnimationObject, super::super::Foundation::IClosable, super::super::Foundation::Collections::IIterable::, CompositionObject); impl VisualCollection { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -28433,14 +26240,14 @@ impl VisualCollection { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -28448,28 +26255,28 @@ impl VisualCollection { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -28479,34 +26286,34 @@ impl VisualCollection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -28514,16 +26321,16 @@ impl VisualCollection { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -28538,40 +26345,40 @@ impl VisualCollection { } pub fn InsertAbove(&self, newchild: P0, sibling: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).InsertAbove)(::windows_core::Interface::as_raw(this), newchild.try_into_param()?.abi(), sibling.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).InsertAbove)(::windows_core::Interface::as_raw(this), newchild.into_param().abi(), sibling.into_param().abi()).ok() } } pub fn InsertAtBottom(&self, newchild: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).InsertAtBottom)(::windows_core::Interface::as_raw(this), newchild.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).InsertAtBottom)(::windows_core::Interface::as_raw(this), newchild.into_param().abi()).ok() } } pub fn InsertAtTop(&self, newchild: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).InsertAtTop)(::windows_core::Interface::as_raw(this), newchild.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).InsertAtTop)(::windows_core::Interface::as_raw(this), newchild.into_param().abi()).ok() } } pub fn InsertBelow(&self, newchild: P0, sibling: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, - P1: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).InsertBelow)(::windows_core::Interface::as_raw(this), newchild.try_into_param()?.abi(), sibling.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).InsertBelow)(::windows_core::Interface::as_raw(this), newchild.into_param().abi(), sibling.into_param().abi()).ok() } } pub fn Remove(&self, child: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).Remove)(::windows_core::Interface::as_raw(this), child.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).Remove)(::windows_core::Interface::as_raw(this), child.into_param().abi()).ok() } } pub fn RemoveAll(&self) -> ::windows_core::Result<()> { let this = self; @@ -28583,9 +26390,7 @@ impl ::windows_core::RuntimeType for VisualCollection { } unsafe impl ::windows_core::Interface for VisualCollection { type Vtable = IVisualCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VisualCollection { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VisualCollection { const NAME: &'static str = "Windows.UI.Composition.VisualCollection"; @@ -28606,31 +26411,28 @@ impl ::core::iter::IntoIterator for &VisualCollection { self.First().unwrap() } } -::windows_core::imp::interface_hierarchy!(VisualCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for VisualCollection {} -impl ::windows_core::CanTryInto for VisualCollection {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for VisualCollection {} -impl ::windows_core::CanTryInto for VisualCollection {} unsafe impl ::core::marker::Send for VisualCollection {} unsafe impl ::core::marker::Sync for VisualCollection {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VisualUnorderedCollection(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VisualUnorderedCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(VisualUnorderedCollection, IAnimationObject, super::super::Foundation::IClosable, super::super::Foundation::Collections::IIterable::, CompositionObject); impl VisualUnorderedCollection { pub fn PopulatePropertyInfo(&self, propertyname: &::windows_core::HSTRING, propertyinfo: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Compositor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Compositor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -28639,14 +26441,14 @@ impl VisualUnorderedCollection { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn Dispatcher(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Dispatcher)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Properties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Properties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -28654,28 +26456,28 @@ impl VisualUnorderedCollection { } pub fn StartAnimation(&self, propertyname: &::windows_core::HSTRING, animation: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimation(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopAnimation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname)).ok() } } pub fn Comment(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Comment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetComment(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetComment)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ImplicitAnimations(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ImplicitAnimations)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -28685,34 +26487,34 @@ impl VisualUnorderedCollection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn StartAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StopAnimationGroup(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StopAnimationGroup)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryGetAnimationController(&self, propertyname: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetAnimationController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), &mut result__).from_abi(result__) @@ -28720,16 +26522,16 @@ impl VisualUnorderedCollection { } pub fn StartAnimationWithController(&self, propertyname: &::windows_core::HSTRING, animation: P0, animationcontroller: P1) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).StartAnimationWithController)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(propertyname), animation.try_into_param()?.abi(), animationcontroller.into_param().abi()).ok() } + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -28744,17 +26546,17 @@ impl VisualUnorderedCollection { } pub fn Add(&self, newvisual: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).Add)(::windows_core::Interface::as_raw(this), newvisual.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).Add)(::windows_core::Interface::as_raw(this), newvisual.into_param().abi()).ok() } } pub fn Remove(&self, visual: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).Remove)(::windows_core::Interface::as_raw(this), visual.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).Remove)(::windows_core::Interface::as_raw(this), visual.into_param().abi()).ok() } } pub fn RemoveAll(&self) -> ::windows_core::Result<()> { let this = self; @@ -28766,9 +26568,7 @@ impl ::windows_core::RuntimeType for VisualUnorderedCollection { } unsafe impl ::windows_core::Interface for VisualUnorderedCollection { type Vtable = IVisualUnorderedCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VisualUnorderedCollection { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VisualUnorderedCollection { const NAME: &'static str = "Windows.UI.Composition.VisualUnorderedCollection"; @@ -28789,12 +26589,6 @@ impl ::core::iter::IntoIterator for &VisualUnorderedCollection { self.First().unwrap() } } -::windows_core::imp::interface_hierarchy!(VisualUnorderedCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for VisualUnorderedCollection {} -impl ::windows_core::CanTryInto for VisualUnorderedCollection {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for VisualUnorderedCollection {} -impl ::windows_core::CanTryInto for VisualUnorderedCollection {} unsafe impl ::core::marker::Send for VisualUnorderedCollection {} unsafe impl ::core::marker::Sync for VisualUnorderedCollection {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/UI/Core/AnimationMetrics/impl.rs b/crates/libs/windows/src/Windows/UI/Core/AnimationMetrics/impl.rs index 04a4908e26..b904d4c8b3 100644 --- a/crates/libs/windows/src/Windows/UI/Core/AnimationMetrics/impl.rs +++ b/crates/libs/windows/src/Windows/UI/Core/AnimationMetrics/impl.rs @@ -75,6 +75,6 @@ impl IPropertyAnimation_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/UI/Core/AnimationMetrics/mod.rs b/crates/libs/windows/src/Windows/UI/Core/AnimationMetrics/mod.rs index 822b874775..e8b4aa0141 100644 --- a/crates/libs/windows/src/Windows/UI/Core/AnimationMetrics/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Core/AnimationMetrics/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAnimationDescription(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAnimationDescription { - type Vtable = IAnimationDescription_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAnimationDescription { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7d11a549_be3d_41de_b081_05c149962f9b); -} +::windows_core::imp::com_interface!(IAnimationDescription, IAnimationDescription_Vtbl, 0x7d11a549_be3d_41de_b081_05c149962f9b); #[repr(C)] #[doc(hidden)] pub struct IAnimationDescription_Vtbl { @@ -21,32 +12,14 @@ pub struct IAnimationDescription_Vtbl { pub DelayLimit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::TimeSpan) -> ::windows_core::HRESULT, pub ZOrder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAnimationDescriptionFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAnimationDescriptionFactory { - type Vtable = IAnimationDescriptionFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAnimationDescriptionFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc6e27abe_c1fb_48b5_9271_ecc70ac86ef0); -} +::windows_core::imp::com_interface!(IAnimationDescriptionFactory, IAnimationDescriptionFactory_Vtbl, 0xc6e27abe_c1fb_48b5_9271_ecc70ac86ef0); #[repr(C)] #[doc(hidden)] pub struct IAnimationDescriptionFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, effect: AnimationEffect, target: AnimationEffectTarget, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOpacityAnimation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOpacityAnimation { - type Vtable = IOpacityAnimation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOpacityAnimation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x803aabe5_ee7e_455f_84e9_2506afb8d2b4); -} +::windows_core::imp::com_interface!(IOpacityAnimation, IOpacityAnimation_Vtbl, 0x803aabe5_ee7e_455f_84e9_2506afb8d2b4); #[repr(C)] #[doc(hidden)] pub struct IOpacityAnimation_Vtbl { @@ -54,9 +27,8 @@ pub struct IOpacityAnimation_Vtbl { pub InitialOpacity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub FinalOpacity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPropertyAnimation(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPropertyAnimation, IPropertyAnimation_Vtbl, 0x3a01b4da_4d8c_411e_b615_1ade683a9903); +::windows_core::imp::interface_hierarchy!(IPropertyAnimation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IPropertyAnimation { pub fn Type(&self) -> ::windows_core::Result { let this = self; @@ -94,16 +66,9 @@ impl IPropertyAnimation { } } } -::windows_core::imp::interface_hierarchy!(IPropertyAnimation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IPropertyAnimation { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IPropertyAnimation { - type Vtable = IPropertyAnimation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPropertyAnimation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3a01b4da_4d8c_411e_b615_1ade683a9903); -} #[repr(C)] #[doc(hidden)] pub struct IPropertyAnimation_Vtbl { @@ -114,16 +79,7 @@ pub struct IPropertyAnimation_Vtbl { pub Control1: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::Point) -> ::windows_core::HRESULT, pub Control2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::Point) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IScaleAnimation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IScaleAnimation { - type Vtable = IScaleAnimation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IScaleAnimation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x023552c7_71ab_428c_9c9f_d31780964995); -} +::windows_core::imp::com_interface!(IScaleAnimation, IScaleAnimation_Vtbl, 0x023552c7_71ab_428c_9c9f_d31780964995); #[repr(C)] #[doc(hidden)] pub struct IScaleAnimation_Vtbl { @@ -137,6 +93,7 @@ pub struct IScaleAnimation_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AnimationDescription(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AnimationDescription, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AnimationDescription { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -192,19 +149,18 @@ impl ::windows_core::RuntimeType for AnimationDescription { } unsafe impl ::windows_core::Interface for AnimationDescription { type Vtable = IAnimationDescription_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AnimationDescription { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AnimationDescription { const NAME: &'static str = "Windows.UI.Core.AnimationMetrics.AnimationDescription"; } -::windows_core::imp::interface_hierarchy!(AnimationDescription, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AnimationDescription {} unsafe impl ::core::marker::Sync for AnimationDescription {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct OpacityAnimation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(OpacityAnimation, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(OpacityAnimation, IPropertyAnimation); impl OpacityAnimation { pub fn InitialOpacity(&self) -> ::windows_core::Result> { let this = self; @@ -221,35 +177,35 @@ impl OpacityAnimation { } } pub fn Type(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Type)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Delay(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Delay)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Duration(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Duration)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Control1(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Control1)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Control2(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Control2)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -261,20 +217,18 @@ impl ::windows_core::RuntimeType for OpacityAnimation { } unsafe impl ::windows_core::Interface for OpacityAnimation { type Vtable = IOpacityAnimation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for OpacityAnimation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for OpacityAnimation { const NAME: &'static str = "Windows.UI.Core.AnimationMetrics.OpacityAnimation"; } -::windows_core::imp::interface_hierarchy!(OpacityAnimation, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for OpacityAnimation {} unsafe impl ::core::marker::Send for OpacityAnimation {} unsafe impl ::core::marker::Sync for OpacityAnimation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PropertyAnimation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PropertyAnimation, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(PropertyAnimation, IPropertyAnimation); impl PropertyAnimation { pub fn Type(&self) -> ::windows_core::Result { let this = self; @@ -317,51 +271,49 @@ impl ::windows_core::RuntimeType for PropertyAnimation { } unsafe impl ::windows_core::Interface for PropertyAnimation { type Vtable = IPropertyAnimation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PropertyAnimation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PropertyAnimation { const NAME: &'static str = "Windows.UI.Core.AnimationMetrics.PropertyAnimation"; } -::windows_core::imp::interface_hierarchy!(PropertyAnimation, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for PropertyAnimation {} unsafe impl ::core::marker::Send for PropertyAnimation {} unsafe impl ::core::marker::Sync for PropertyAnimation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ScaleAnimation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ScaleAnimation, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ScaleAnimation, IPropertyAnimation); impl ScaleAnimation { pub fn Type(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Type)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Delay(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Delay)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Duration(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Duration)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Control1(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Control1)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Control2(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Control2)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -408,20 +360,18 @@ impl ::windows_core::RuntimeType for ScaleAnimation { } unsafe impl ::windows_core::Interface for ScaleAnimation { type Vtable = IScaleAnimation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ScaleAnimation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ScaleAnimation { const NAME: &'static str = "Windows.UI.Core.AnimationMetrics.ScaleAnimation"; } -::windows_core::imp::interface_hierarchy!(ScaleAnimation, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ScaleAnimation {} unsafe impl ::core::marker::Send for ScaleAnimation {} unsafe impl ::core::marker::Sync for ScaleAnimation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct TranslationAnimation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(TranslationAnimation, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(TranslationAnimation, IPropertyAnimation); impl TranslationAnimation { pub fn Type(&self) -> ::windows_core::Result { let this = self; @@ -464,15 +414,11 @@ impl ::windows_core::RuntimeType for TranslationAnimation { } unsafe impl ::windows_core::Interface for TranslationAnimation { type Vtable = IPropertyAnimation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TranslationAnimation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for TranslationAnimation { const NAME: &'static str = "Windows.UI.Core.AnimationMetrics.TranslationAnimation"; } -::windows_core::imp::interface_hierarchy!(TranslationAnimation, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for TranslationAnimation {} unsafe impl ::core::marker::Send for TranslationAnimation {} unsafe impl ::core::marker::Sync for TranslationAnimation {} #[repr(transparent)] 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 9e42b7d540..4a8b6307e3 100644 --- a/crates/libs/windows/src/Windows/UI/Core/Preview/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Core/Preview/mod.rs @@ -1,28 +1,10 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreAppWindowPreview(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreAppWindowPreview { - type Vtable = ICoreAppWindowPreview_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreAppWindowPreview { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa4f6e665_365e_5fde_87a5_9543c3a15aa8); -} +::windows_core::imp::com_interface!(ICoreAppWindowPreview, ICoreAppWindowPreview_Vtbl, 0xa4f6e665_365e_5fde_87a5_9543c3a15aa8); #[repr(C)] #[doc(hidden)] pub struct ICoreAppWindowPreview_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreAppWindowPreviewStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreAppWindowPreviewStatics { - type Vtable = ICoreAppWindowPreviewStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreAppWindowPreviewStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x33ac21be_423b_5db6_8a8e_4dc87353b75b); -} +::windows_core::imp::com_interface!(ICoreAppWindowPreviewStatics, ICoreAppWindowPreviewStatics_Vtbl, 0x33ac21be_423b_5db6_8a8e_4dc87353b75b); #[repr(C)] #[doc(hidden)] pub struct ICoreAppWindowPreviewStatics_Vtbl { @@ -32,16 +14,7 @@ pub struct ICoreAppWindowPreviewStatics_Vtbl { #[cfg(not(feature = "UI_WindowManagement"))] GetIdFromWindow: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISystemNavigationCloseRequestedPreviewEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISystemNavigationCloseRequestedPreviewEventArgs { - type Vtable = ISystemNavigationCloseRequestedPreviewEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISystemNavigationCloseRequestedPreviewEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x83d00de1_cbe5_4f31_8414_361da046518f); -} +::windows_core::imp::com_interface!(ISystemNavigationCloseRequestedPreviewEventArgs, ISystemNavigationCloseRequestedPreviewEventArgs_Vtbl, 0x83d00de1_cbe5_4f31_8414_361da046518f); #[repr(C)] #[doc(hidden)] pub struct ISystemNavigationCloseRequestedPreviewEventArgs_Vtbl { @@ -50,16 +23,7 @@ pub struct ISystemNavigationCloseRequestedPreviewEventArgs_Vtbl { pub SetHandled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISystemNavigationManagerPreview(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISystemNavigationManagerPreview { - type Vtable = ISystemNavigationManagerPreview_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISystemNavigationManagerPreview { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xec5f0488_6425_4777_a536_cb5634427f0d); -} +::windows_core::imp::com_interface!(ISystemNavigationManagerPreview, ISystemNavigationManagerPreview_Vtbl, 0xec5f0488_6425_4777_a536_cb5634427f0d); #[repr(C)] #[doc(hidden)] pub struct ISystemNavigationManagerPreview_Vtbl { @@ -67,16 +31,7 @@ pub struct ISystemNavigationManagerPreview_Vtbl { pub CloseRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveCloseRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISystemNavigationManagerPreviewStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISystemNavigationManagerPreviewStatics { - type Vtable = ISystemNavigationManagerPreviewStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISystemNavigationManagerPreviewStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0e971360_df74_4bce_84cb_bd1181ac0a71); -} +::windows_core::imp::com_interface!(ISystemNavigationManagerPreviewStatics, ISystemNavigationManagerPreviewStatics_Vtbl, 0x0e971360_df74_4bce_84cb_bd1181ac0a71); #[repr(C)] #[doc(hidden)] pub struct ISystemNavigationManagerPreviewStatics_Vtbl { @@ -86,6 +41,7 @@ pub struct ISystemNavigationManagerPreviewStatics_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CoreAppWindowPreview(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CoreAppWindowPreview, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CoreAppWindowPreview { #[doc = "Required features: `\"UI_WindowManagement\"`"] #[cfg(feature = "UI_WindowManagement")] @@ -109,19 +65,17 @@ impl ::windows_core::RuntimeType for CoreAppWindowPreview { } unsafe impl ::windows_core::Interface for CoreAppWindowPreview { type Vtable = ICoreAppWindowPreview_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CoreAppWindowPreview { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CoreAppWindowPreview { const NAME: &'static str = "Windows.UI.Core.Preview.CoreAppWindowPreview"; } -::windows_core::imp::interface_hierarchy!(CoreAppWindowPreview, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CoreAppWindowPreview {} unsafe impl ::core::marker::Sync for CoreAppWindowPreview {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SystemNavigationCloseRequestedPreviewEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SystemNavigationCloseRequestedPreviewEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SystemNavigationCloseRequestedPreviewEventArgs { pub fn Handled(&self) -> ::windows_core::Result { let this = self; @@ -147,19 +101,17 @@ impl ::windows_core::RuntimeType for SystemNavigationCloseRequestedPreviewEventA } unsafe impl ::windows_core::Interface for SystemNavigationCloseRequestedPreviewEventArgs { type Vtable = ISystemNavigationCloseRequestedPreviewEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SystemNavigationCloseRequestedPreviewEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SystemNavigationCloseRequestedPreviewEventArgs { const NAME: &'static str = "Windows.UI.Core.Preview.SystemNavigationCloseRequestedPreviewEventArgs"; } -::windows_core::imp::interface_hierarchy!(SystemNavigationCloseRequestedPreviewEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SystemNavigationCloseRequestedPreviewEventArgs {} unsafe impl ::core::marker::Sync for SystemNavigationCloseRequestedPreviewEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SystemNavigationManagerPreview(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SystemNavigationManagerPreview, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SystemNavigationManagerPreview { pub fn CloseRequested(&self, handler: P0) -> ::windows_core::Result where @@ -192,13 +144,10 @@ impl ::windows_core::RuntimeType for SystemNavigationManagerPreview { } unsafe impl ::windows_core::Interface for SystemNavigationManagerPreview { type Vtable = ISystemNavigationManagerPreview_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SystemNavigationManagerPreview { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SystemNavigationManagerPreview { const NAME: &'static str = "Windows.UI.Core.Preview.SystemNavigationManagerPreview"; } -::windows_core::imp::interface_hierarchy!(SystemNavigationManagerPreview, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SystemNavigationManagerPreview {} unsafe impl ::core::marker::Sync for SystemNavigationManagerPreview {} diff --git a/crates/libs/windows/src/Windows/UI/Core/impl.rs b/crates/libs/windows/src/Windows/UI/Core/impl.rs index 7a65011443..196d263541 100644 --- a/crates/libs/windows/src/Windows/UI/Core/impl.rs +++ b/crates/libs/windows/src/Windows/UI/Core/impl.rs @@ -30,7 +30,7 @@ impl ICoreAcceleratorKeys_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICoreInputSourceBase_Impl: Sized { @@ -99,7 +99,7 @@ impl ICoreInputSourceBase_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICorePointerInputSource_Impl: Sized { @@ -315,7 +315,7 @@ impl ICorePointerInputSource_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"System\"`"] @@ -348,7 +348,7 @@ impl ICorePointerInputSource2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICorePointerRedirector_Impl: Sized { @@ -423,7 +423,7 @@ impl ICorePointerRedirector_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Foundation_Collections\"`, `\"System\"`"] @@ -978,7 +978,7 @@ impl ICoreWindow_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICoreWindowEventArgs_Impl: Sized { @@ -1013,7 +1013,7 @@ impl ICoreWindowEventArgs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IInitializeWithCoreWindow_Impl: Sized { @@ -1035,6 +1035,6 @@ impl IInitializeWithCoreWindow_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/UI/Core/mod.rs b/crates/libs/windows/src/Windows/UI/Core/mod.rs index ffabb6ed5e..3c19227a89 100644 --- a/crates/libs/windows/src/Windows/UI/Core/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Core/mod.rs @@ -4,16 +4,7 @@ pub mod AnimationMetrics; #[cfg(feature = "UI_Core_Preview")] #[doc = "Required features: `\"UI_Core_Preview\"`"] pub mod Preview; -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAcceleratorKeyEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAcceleratorKeyEventArgs { - type Vtable = IAcceleratorKeyEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAcceleratorKeyEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xff1c4c4a_9287_470b_836e_9086e3126ade); -} +::windows_core::imp::com_interface!(IAcceleratorKeyEventArgs, IAcceleratorKeyEventArgs_Vtbl, 0xff1c4c4a_9287_470b_836e_9086e3126ade); #[repr(C)] #[doc(hidden)] pub struct IAcceleratorKeyEventArgs_Vtbl { @@ -25,32 +16,14 @@ pub struct IAcceleratorKeyEventArgs_Vtbl { VirtualKey: usize, pub KeyStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut CorePhysicalKeyStatus) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAcceleratorKeyEventArgs2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAcceleratorKeyEventArgs2 { - type Vtable = IAcceleratorKeyEventArgs2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAcceleratorKeyEventArgs2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd300a9f6_2f7e_4873_a555_166e596ee1c5); -} +::windows_core::imp::com_interface!(IAcceleratorKeyEventArgs2, IAcceleratorKeyEventArgs2_Vtbl, 0xd300a9f6_2f7e_4873_a555_166e596ee1c5); #[repr(C)] #[doc(hidden)] pub struct IAcceleratorKeyEventArgs2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub DeviceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAutomationProviderRequestedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAutomationProviderRequestedEventArgs { - type Vtable = IAutomationProviderRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAutomationProviderRequestedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x961ff258_21bf_4b42_a298_fa479d4c52e2); -} +::windows_core::imp::com_interface!(IAutomationProviderRequestedEventArgs, IAutomationProviderRequestedEventArgs_Vtbl, 0x961ff258_21bf_4b42_a298_fa479d4c52e2); #[repr(C)] #[doc(hidden)] pub struct IAutomationProviderRequestedEventArgs_Vtbl { @@ -58,16 +31,7 @@ pub struct IAutomationProviderRequestedEventArgs_Vtbl { pub AutomationProvider: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetAutomationProvider: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackRequestedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBackRequestedEventArgs { - type Vtable = IBackRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackRequestedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd603d28a_e411_4a4e_ba41_6a327a8675bc); -} +::windows_core::imp::com_interface!(IBackRequestedEventArgs, IBackRequestedEventArgs_Vtbl, 0xd603d28a_e411_4a4e_ba41_6a327a8675bc); #[repr(C)] #[doc(hidden)] pub struct IBackRequestedEventArgs_Vtbl { @@ -75,16 +39,7 @@ pub struct IBackRequestedEventArgs_Vtbl { pub Handled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetHandled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICharacterReceivedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICharacterReceivedEventArgs { - type Vtable = ICharacterReceivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICharacterReceivedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc584659f_99b2_4bcc_bd33_04e63f42902e); -} +::windows_core::imp::com_interface!(ICharacterReceivedEventArgs, ICharacterReceivedEventArgs_Vtbl, 0xc584659f_99b2_4bcc_bd33_04e63f42902e); #[repr(C)] #[doc(hidden)] pub struct ICharacterReceivedEventArgs_Vtbl { @@ -92,16 +47,7 @@ pub struct ICharacterReceivedEventArgs_Vtbl { pub KeyCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, pub KeyStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut CorePhysicalKeyStatus) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IClosestInteractiveBoundsRequestedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IClosestInteractiveBoundsRequestedEventArgs { - type Vtable = IClosestInteractiveBoundsRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IClosestInteractiveBoundsRequestedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x347c11d7_f6f8_40e3_b29f_ae50d3e86486); -} +::windows_core::imp::com_interface!(IClosestInteractiveBoundsRequestedEventArgs, IClosestInteractiveBoundsRequestedEventArgs_Vtbl, 0x347c11d7_f6f8_40e3_b29f_ae50d3e86486); #[repr(C)] #[doc(hidden)] pub struct IClosestInteractiveBoundsRequestedEventArgs_Vtbl { @@ -111,9 +57,8 @@ pub struct IClosestInteractiveBoundsRequestedEventArgs_Vtbl { pub ClosestInteractiveBounds: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::Rect) -> ::windows_core::HRESULT, pub SetClosestInteractiveBounds: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::Foundation::Rect) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreAcceleratorKeys(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICoreAcceleratorKeys, ICoreAcceleratorKeys_Vtbl, 0x9ffdf7f5_b8c9_4ef0_b7d2_1de626561fc8); +::windows_core::imp::interface_hierarchy!(ICoreAcceleratorKeys, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ICoreAcceleratorKeys { pub fn AcceleratorKeyActivated(&self, handler: P0) -> ::windows_core::Result where @@ -130,16 +75,9 @@ impl ICoreAcceleratorKeys { unsafe { (::windows_core::Interface::vtable(this).RemoveAcceleratorKeyActivated)(::windows_core::Interface::as_raw(this), cookie).ok() } } } -::windows_core::imp::interface_hierarchy!(ICoreAcceleratorKeys, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for ICoreAcceleratorKeys { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for ICoreAcceleratorKeys { - type Vtable = ICoreAcceleratorKeys_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreAcceleratorKeys { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9ffdf7f5_b8c9_4ef0_b7d2_1de626561fc8); -} #[repr(C)] #[doc(hidden)] pub struct ICoreAcceleratorKeys_Vtbl { @@ -147,16 +85,7 @@ pub struct ICoreAcceleratorKeys_Vtbl { pub AcceleratorKeyActivated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveAcceleratorKeyActivated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreClosestInteractiveBoundsRequested(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreClosestInteractiveBoundsRequested { - type Vtable = ICoreClosestInteractiveBoundsRequested_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreClosestInteractiveBoundsRequested { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf303043a_e8bf_4e8e_ae69_c9dadd57a114); -} +::windows_core::imp::com_interface!(ICoreClosestInteractiveBoundsRequested, ICoreClosestInteractiveBoundsRequested_Vtbl, 0xf303043a_e8bf_4e8e_ae69_c9dadd57a114); #[repr(C)] #[doc(hidden)] pub struct ICoreClosestInteractiveBoundsRequested_Vtbl { @@ -164,16 +93,7 @@ pub struct ICoreClosestInteractiveBoundsRequested_Vtbl { pub ClosestInteractiveBoundsRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveClosestInteractiveBoundsRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreComponentFocusable(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreComponentFocusable { - type Vtable = ICoreComponentFocusable_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreComponentFocusable { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x52f96fa3_8742_4411_ae69_79a85f29ac8b); -} +::windows_core::imp::com_interface!(ICoreComponentFocusable, ICoreComponentFocusable_Vtbl, 0x52f96fa3_8742_4411_ae69_79a85f29ac8b); #[repr(C)] #[doc(hidden)] pub struct ICoreComponentFocusable_Vtbl { @@ -184,16 +104,7 @@ pub struct ICoreComponentFocusable_Vtbl { pub LostFocus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveLostFocus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreCursor(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreCursor { - type Vtable = ICoreCursor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreCursor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x96893acf_111d_442c_8a77_b87992f8e2d6); -} +::windows_core::imp::com_interface!(ICoreCursor, ICoreCursor_Vtbl, 0x96893acf_111d_442c_8a77_b87992f8e2d6); #[repr(C)] #[doc(hidden)] pub struct ICoreCursor_Vtbl { @@ -201,32 +112,14 @@ pub struct ICoreCursor_Vtbl { pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, pub Type: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut CoreCursorType) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreCursorFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreCursorFactory { - type Vtable = ICoreCursorFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreCursorFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf6359621_a79d_4ed3_8c32_a9ef9d6b76a4); -} +::windows_core::imp::com_interface!(ICoreCursorFactory, ICoreCursorFactory_Vtbl, 0xf6359621_a79d_4ed3_8c32_a9ef9d6b76a4); #[repr(C)] #[doc(hidden)] pub struct ICoreCursorFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateCursor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: CoreCursorType, id: u32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreDispatcher(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreDispatcher { - type Vtable = ICoreDispatcher_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreDispatcher { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x60db2fa8_b705_4fde_a7d6_ebbb1891d39e); -} +::windows_core::imp::com_interface!(ICoreDispatcher, ICoreDispatcher_Vtbl, 0x60db2fa8_b705_4fde_a7d6_ebbb1891d39e); #[repr(C)] #[doc(hidden)] pub struct ICoreDispatcher_Vtbl { @@ -236,16 +129,7 @@ pub struct ICoreDispatcher_Vtbl { pub RunAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, priority: CoreDispatcherPriority, agilecallback: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RunIdleAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, agilecallback: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreDispatcher2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreDispatcher2 { - type Vtable = ICoreDispatcher2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreDispatcher2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6f5e63c7_e3aa_4eae_b0e0_dcf321ca4b2f); -} +::windows_core::imp::com_interface!(ICoreDispatcher2, ICoreDispatcher2_Vtbl, 0x6f5e63c7_e3aa_4eae_b0e0_dcf321ca4b2f); #[repr(C)] #[doc(hidden)] pub struct ICoreDispatcher2_Vtbl { @@ -253,16 +137,7 @@ pub struct ICoreDispatcher2_Vtbl { pub TryRunAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, priority: CoreDispatcherPriority, agilecallback: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub TryRunIdleAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, agilecallback: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreDispatcherWithTaskPriority(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreDispatcherWithTaskPriority { - type Vtable = ICoreDispatcherWithTaskPriority_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreDispatcherWithTaskPriority { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbafaecad_484d_41be_ba80_1d58c65263ea); -} +::windows_core::imp::com_interface!(ICoreDispatcherWithTaskPriority, ICoreDispatcherWithTaskPriority_Vtbl, 0xbafaecad_484d_41be_ba80_1d58c65263ea); #[repr(C)] #[doc(hidden)] pub struct ICoreDispatcherWithTaskPriority_Vtbl { @@ -273,16 +148,7 @@ pub struct ICoreDispatcherWithTaskPriority_Vtbl { pub ShouldYieldToPriority: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, priority: CoreDispatcherPriority, result__: *mut bool) -> ::windows_core::HRESULT, pub StopProcessEvents: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreIndependentInputSourceController(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreIndependentInputSourceController { - type Vtable = ICoreIndependentInputSourceController_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreIndependentInputSourceController { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0963261c_84fe_578a_83ca_6425309ccde4); -} +::windows_core::imp::com_interface!(ICoreIndependentInputSourceController, ICoreIndependentInputSourceController_Vtbl, 0x0963261c_84fe_578a_83ca_6425309ccde4); #[repr(C)] #[doc(hidden)] pub struct ICoreIndependentInputSourceController_Vtbl { @@ -295,16 +161,7 @@ pub struct ICoreIndependentInputSourceController_Vtbl { pub SetControlledInput: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, inputtypes: CoreInputDeviceTypes) -> ::windows_core::HRESULT, pub SetControlledInputWithFilters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, inputtypes: CoreInputDeviceTypes, required: CoreIndependentInputFilters, excluded: CoreIndependentInputFilters) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreIndependentInputSourceControllerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreIndependentInputSourceControllerStatics { - type Vtable = ICoreIndependentInputSourceControllerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreIndependentInputSourceControllerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3edc4e20_9a8a_5691_8586_fca4cb57526d); -} +::windows_core::imp::com_interface!(ICoreIndependentInputSourceControllerStatics, ICoreIndependentInputSourceControllerStatics_Vtbl, 0x3edc4e20_9a8a_5691_8586_fca4cb57526d); #[repr(C)] #[doc(hidden)] pub struct ICoreIndependentInputSourceControllerStatics_Vtbl { @@ -318,9 +175,8 @@ pub struct ICoreIndependentInputSourceControllerStatics_Vtbl { #[cfg(not(feature = "UI_Composition"))] CreateForIVisualElement: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreInputSourceBase(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICoreInputSourceBase, ICoreInputSourceBase_Vtbl, 0x9f488807_4580_4be8_be68_92a9311713bb); +::windows_core::imp::interface_hierarchy!(ICoreInputSourceBase, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ICoreInputSourceBase { pub fn Dispatcher(&self) -> ::windows_core::Result { let this = self; @@ -355,16 +211,9 @@ impl ICoreInputSourceBase { unsafe { (::windows_core::Interface::vtable(this).RemoveInputEnabled)(::windows_core::Interface::as_raw(this), cookie).ok() } } } -::windows_core::imp::interface_hierarchy!(ICoreInputSourceBase, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for ICoreInputSourceBase { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for ICoreInputSourceBase { - type Vtable = ICoreInputSourceBase_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreInputSourceBase { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9f488807_4580_4be8_be68_92a9311713bb); -} #[repr(C)] #[doc(hidden)] pub struct ICoreInputSourceBase_Vtbl { @@ -375,16 +224,7 @@ pub struct ICoreInputSourceBase_Vtbl { pub InputEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveInputEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreKeyboardInputSource(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreKeyboardInputSource { - type Vtable = ICoreKeyboardInputSource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreKeyboardInputSource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x231c9088_e469_4df1_b208_6e490d71cb90); -} +::windows_core::imp::com_interface!(ICoreKeyboardInputSource, ICoreKeyboardInputSource_Vtbl, 0x231c9088_e469_4df1_b208_6e490d71cb90); #[repr(C)] #[doc(hidden)] pub struct ICoreKeyboardInputSource_Vtbl { @@ -400,25 +240,15 @@ pub struct ICoreKeyboardInputSource_Vtbl { pub KeyUp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveKeyUp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreKeyboardInputSource2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreKeyboardInputSource2 { - type Vtable = ICoreKeyboardInputSource2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreKeyboardInputSource2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfa24cb94_f963_47a5_8778_207c482b0afd); -} +::windows_core::imp::com_interface!(ICoreKeyboardInputSource2, ICoreKeyboardInputSource2_Vtbl, 0xfa24cb94_f963_47a5_8778_207c482b0afd); #[repr(C)] #[doc(hidden)] pub struct ICoreKeyboardInputSource2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetCurrentKeyEventDeviceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICorePointerInputSource(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICorePointerInputSource, ICorePointerInputSource_Vtbl, 0xbbf1bb18_e47a_48eb_8807_f8f8d3ea4551); +::windows_core::imp::interface_hierarchy!(ICorePointerInputSource, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ICorePointerInputSource { pub fn ReleasePointerCapture(&self) -> ::windows_core::Result<()> { let this = self; @@ -555,16 +385,9 @@ impl ICorePointerInputSource { unsafe { (::windows_core::Interface::vtable(this).RemovePointerWheelChanged)(::windows_core::Interface::as_raw(this), cookie).ok() } } } -::windows_core::imp::interface_hierarchy!(ICorePointerInputSource, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for ICorePointerInputSource { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for ICorePointerInputSource { - type Vtable = ICorePointerInputSource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICorePointerInputSource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbbf1bb18_e47a_48eb_8807_f8f8d3ea4551); -} #[repr(C)] #[doc(hidden)] pub struct ICorePointerInputSource_Vtbl { @@ -590,9 +413,9 @@ pub struct ICorePointerInputSource_Vtbl { pub PointerWheelChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemovePointerWheelChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICorePointerInputSource2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICorePointerInputSource2, ICorePointerInputSource2_Vtbl, 0xd703708a_4516_4786_b1e5_2751d563f997); +::windows_core::imp::interface_hierarchy!(ICorePointerInputSource2, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ICorePointerInputSource2, ICorePointerInputSource); impl ICorePointerInputSource2 { #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] @@ -604,29 +427,29 @@ impl ICorePointerInputSource2 { } } pub fn ReleasePointerCapture(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ReleasePointerCapture)(::windows_core::Interface::as_raw(this)).ok() } } pub fn SetPointerCapture(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetPointerCapture)(::windows_core::Interface::as_raw(this)).ok() } } pub fn HasCapture(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).HasCapture)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PointerPosition(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PointerPosition)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PointerCursor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PointerCursor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -636,119 +459,111 @@ impl ICorePointerInputSource2 { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn PointerCaptureLost(&self, handler: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemovePointerCaptureLost(&self, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemovePointerCaptureLost)(::windows_core::Interface::as_raw(this), cookie).ok() } } pub fn PointerEntered(&self, handler: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemovePointerEntered(&self, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemovePointerEntered)(::windows_core::Interface::as_raw(this), cookie).ok() } } pub fn PointerExited(&self, handler: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemovePointerExited(&self, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemovePointerExited)(::windows_core::Interface::as_raw(this), cookie).ok() } } pub fn PointerMoved(&self, handler: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemovePointerMoved(&self, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemovePointerMoved)(::windows_core::Interface::as_raw(this), cookie).ok() } } pub fn PointerPressed(&self, handler: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemovePointerPressed(&self, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemovePointerPressed)(::windows_core::Interface::as_raw(this), cookie).ok() } } pub fn PointerReleased(&self, handler: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemovePointerReleased(&self, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemovePointerReleased)(::windows_core::Interface::as_raw(this), cookie).ok() } } pub fn PointerWheelChanged(&self, handler: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemovePointerWheelChanged(&self, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemovePointerWheelChanged)(::windows_core::Interface::as_raw(this), cookie).ok() } } } -::windows_core::imp::interface_hierarchy!(ICorePointerInputSource2, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ICorePointerInputSource2 {} impl ::windows_core::RuntimeType for ICorePointerInputSource2 { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for ICorePointerInputSource2 { - type Vtable = ICorePointerInputSource2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICorePointerInputSource2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd703708a_4516_4786_b1e5_2751d563f997); -} #[repr(C)] #[doc(hidden)] pub struct ICorePointerInputSource2_Vtbl { @@ -758,9 +573,8 @@ pub struct ICorePointerInputSource2_Vtbl { #[cfg(not(feature = "System"))] DispatcherQueue: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICorePointerRedirector(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICorePointerRedirector, ICorePointerRedirector_Vtbl, 0x8f9d0c94_5688_4b0c_a9f1_f931f7fa3dc3); +::windows_core::imp::interface_hierarchy!(ICorePointerRedirector, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ICorePointerRedirector { pub fn PointerRoutedAway(&self, handler: P0) -> ::windows_core::Result where @@ -805,16 +619,9 @@ impl ICorePointerRedirector { unsafe { (::windows_core::Interface::vtable(this).RemovePointerRoutedReleased)(::windows_core::Interface::as_raw(this), cookie).ok() } } } -::windows_core::imp::interface_hierarchy!(ICorePointerRedirector, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for ICorePointerRedirector { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for ICorePointerRedirector { - type Vtable = ICorePointerRedirector_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICorePointerRedirector { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8f9d0c94_5688_4b0c_a9f1_f931f7fa3dc3); -} #[repr(C)] #[doc(hidden)] pub struct ICorePointerRedirector_Vtbl { @@ -826,16 +633,7 @@ pub struct ICorePointerRedirector_Vtbl { pub PointerRoutedReleased: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemovePointerRoutedReleased: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreTouchHitTesting(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreTouchHitTesting { - type Vtable = ICoreTouchHitTesting_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreTouchHitTesting { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb1d8a289_3acf_4124_9fa3_ea8aba353c21); -} +::windows_core::imp::com_interface!(ICoreTouchHitTesting, ICoreTouchHitTesting_Vtbl, 0xb1d8a289_3acf_4124_9fa3_ea8aba353c21); #[repr(C)] #[doc(hidden)] pub struct ICoreTouchHitTesting_Vtbl { @@ -843,9 +641,8 @@ pub struct ICoreTouchHitTesting_Vtbl { pub TouchHitTesting: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveTouchHitTesting: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreWindow(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICoreWindow, ICoreWindow_Vtbl, 0x79b9d5f2_879e_4b89_b798_79e47598030c); +::windows_core::imp::interface_hierarchy!(ICoreWindow, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ICoreWindow { pub fn AutomationHostProvider(&self) -> ::windows_core::Result<::windows_core::IInspectable> { let this = self; @@ -1200,16 +997,9 @@ impl ICoreWindow { unsafe { (::windows_core::Interface::vtable(this).RemoveVisibilityChanged)(::windows_core::Interface::as_raw(this), cookie).ok() } } } -::windows_core::imp::interface_hierarchy!(ICoreWindow, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for ICoreWindow { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for ICoreWindow { - type Vtable = ICoreWindow_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreWindow { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x79b9d5f2_879e_4b89_b798_79e47598030c); -} #[repr(C)] #[doc(hidden)] pub struct ICoreWindow_Vtbl { @@ -1276,32 +1066,14 @@ pub struct ICoreWindow_Vtbl { pub VisibilityChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveVisibilityChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreWindow2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreWindow2 { - type Vtable = ICoreWindow2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreWindow2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7c2b1b85_6917_4361_9c02_0d9e3a420b95); -} +::windows_core::imp::com_interface!(ICoreWindow2, ICoreWindow2_Vtbl, 0x7c2b1b85_6917_4361_9c02_0d9e3a420b95); #[repr(C)] #[doc(hidden)] pub struct ICoreWindow2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub SetPointerPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::Foundation::Point) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreWindow3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreWindow3 { - type Vtable = ICoreWindow3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreWindow3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x32c20dd8_faef_4375_a2ab_32640e4815c7); -} +::windows_core::imp::com_interface!(ICoreWindow3, ICoreWindow3_Vtbl, 0x32c20dd8_faef_4375_a2ab_32640e4815c7); #[repr(C)] #[doc(hidden)] pub struct ICoreWindow3_Vtbl { @@ -1310,16 +1082,7 @@ pub struct ICoreWindow3_Vtbl { pub RemoveClosestInteractiveBoundsRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub GetCurrentKeyEventDeviceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreWindow4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreWindow4 { - type Vtable = ICoreWindow4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreWindow4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x35caf0d0_47f0_436c_af97_0dd88f6f5f02); -} +::windows_core::imp::com_interface!(ICoreWindow4, ICoreWindow4_Vtbl, 0x35caf0d0_47f0_436c_af97_0dd88f6f5f02); #[repr(C)] #[doc(hidden)] pub struct ICoreWindow4_Vtbl { @@ -1329,16 +1092,7 @@ pub struct ICoreWindow4_Vtbl { pub ResizeCompleted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveResizeCompleted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreWindow5(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreWindow5 { - type Vtable = ICoreWindow5_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreWindow5 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4b4ae1e1_2e6d_4eaa_bda1_1c5cc1bee141); -} +::windows_core::imp::com_interface!(ICoreWindow5, ICoreWindow5_Vtbl, 0x4b4ae1e1_2e6d_4eaa_bda1_1c5cc1bee141); #[repr(C)] #[doc(hidden)] pub struct ICoreWindow5_Vtbl { @@ -1349,16 +1103,7 @@ pub struct ICoreWindow5_Vtbl { DispatcherQueue: usize, pub ActivationMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut CoreWindowActivationMode) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreWindowDialog(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreWindowDialog { - type Vtable = ICoreWindowDialog_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreWindowDialog { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe7392ce0_c78d_427e_8b2c_01ff420c69d5); -} +::windows_core::imp::com_interface!(ICoreWindowDialog, ICoreWindowDialog_Vtbl, 0xe7392ce0_c78d_427e_8b2c_01ff420c69d5); #[repr(C)] #[doc(hidden)] pub struct ICoreWindowDialog_Vtbl { @@ -1392,25 +1137,15 @@ pub struct ICoreWindowDialog_Vtbl { #[cfg(not(feature = "UI_Popups"))] ShowAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreWindowDialogFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreWindowDialogFactory { - type Vtable = ICoreWindowDialogFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreWindowDialogFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcfb2a855_1c59_4b13_b1e5_16e29805f7c4); -} +::windows_core::imp::com_interface!(ICoreWindowDialogFactory, ICoreWindowDialogFactory_Vtbl, 0xcfb2a855_1c59_4b13_b1e5_16e29805f7c4); #[repr(C)] #[doc(hidden)] pub struct ICoreWindowDialogFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateWithTitle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, title: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreWindowEventArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICoreWindowEventArgs, ICoreWindowEventArgs_Vtbl, 0x272b1ef3_c633_4da5_a26c_c6d0f56b29da); +::windows_core::imp::interface_hierarchy!(ICoreWindowEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ICoreWindowEventArgs { pub fn Handled(&self) -> ::windows_core::Result { let this = self; @@ -1424,16 +1159,9 @@ impl ICoreWindowEventArgs { unsafe { (::windows_core::Interface::vtable(this).SetHandled)(::windows_core::Interface::as_raw(this), value).ok() } } } -::windows_core::imp::interface_hierarchy!(ICoreWindowEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for ICoreWindowEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for ICoreWindowEventArgs { - type Vtable = ICoreWindowEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreWindowEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x272b1ef3_c633_4da5_a26c_c6d0f56b29da); -} #[repr(C)] #[doc(hidden)] pub struct ICoreWindowEventArgs_Vtbl { @@ -1441,16 +1169,7 @@ pub struct ICoreWindowEventArgs_Vtbl { pub Handled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetHandled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreWindowFlyout(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreWindowFlyout { - type Vtable = ICoreWindowFlyout_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreWindowFlyout { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe89d854d_2050_40bb_b344_f6f355eeb314); -} +::windows_core::imp::com_interface!(ICoreWindowFlyout, ICoreWindowFlyout_Vtbl, 0xe89d854d_2050_40bb_b344_f6f355eeb314); #[repr(C)] #[doc(hidden)] pub struct ICoreWindowFlyout_Vtbl { @@ -1482,16 +1201,7 @@ pub struct ICoreWindowFlyout_Vtbl { #[cfg(not(feature = "UI_Popups"))] ShowAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreWindowFlyoutFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreWindowFlyoutFactory { - type Vtable = ICoreWindowFlyoutFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreWindowFlyoutFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdec4c6c4_93e8_4f7c_be27_cefaa1af68a7); -} +::windows_core::imp::com_interface!(ICoreWindowFlyoutFactory, ICoreWindowFlyoutFactory_Vtbl, 0xdec4c6c4_93e8_4f7c_be27_cefaa1af68a7); #[repr(C)] #[doc(hidden)] pub struct ICoreWindowFlyoutFactory_Vtbl { @@ -1499,48 +1209,21 @@ pub struct ICoreWindowFlyoutFactory_Vtbl { pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, position: super::super::Foundation::Point, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateWithTitle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, position: super::super::Foundation::Point, title: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreWindowPopupShowingEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreWindowPopupShowingEventArgs { - type Vtable = ICoreWindowPopupShowingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreWindowPopupShowingEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x26155fa2_5ba5_4ea4_a3b4_2dc7d63c8e26); -} +::windows_core::imp::com_interface!(ICoreWindowPopupShowingEventArgs, ICoreWindowPopupShowingEventArgs_Vtbl, 0x26155fa2_5ba5_4ea4_a3b4_2dc7d63c8e26); #[repr(C)] #[doc(hidden)] pub struct ICoreWindowPopupShowingEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub SetDesiredSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::Foundation::Size) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreWindowResizeManager(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreWindowResizeManager { - type Vtable = ICoreWindowResizeManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreWindowResizeManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb8f0b925_b350_48b3_a198_5c1a84700243); -} +::windows_core::imp::com_interface!(ICoreWindowResizeManager, ICoreWindowResizeManager_Vtbl, 0xb8f0b925_b350_48b3_a198_5c1a84700243); #[repr(C)] #[doc(hidden)] pub struct ICoreWindowResizeManager_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub NotifyLayoutCompleted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreWindowResizeManagerLayoutCapability(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreWindowResizeManagerLayoutCapability { - type Vtable = ICoreWindowResizeManagerLayoutCapability_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreWindowResizeManagerLayoutCapability { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbb74f27b_a544_4301_80e6_0ae033ef4536); -} +::windows_core::imp::com_interface!(ICoreWindowResizeManagerLayoutCapability, ICoreWindowResizeManagerLayoutCapability_Vtbl, 0xbb74f27b_a544_4301_80e6_0ae033ef4536); #[repr(C)] #[doc(hidden)] pub struct ICoreWindowResizeManagerLayoutCapability_Vtbl { @@ -1548,73 +1231,36 @@ pub struct ICoreWindowResizeManagerLayoutCapability_Vtbl { pub SetShouldWaitForLayoutCompletion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, pub ShouldWaitForLayoutCompletion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreWindowResizeManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreWindowResizeManagerStatics { - type Vtable = ICoreWindowResizeManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreWindowResizeManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xae4a9045_6d70_49db_8e68_46ffbd17d38d); -} +::windows_core::imp::com_interface!(ICoreWindowResizeManagerStatics, ICoreWindowResizeManagerStatics_Vtbl, 0xae4a9045_6d70_49db_8e68_46ffbd17d38d); #[repr(C)] #[doc(hidden)] pub struct ICoreWindowResizeManagerStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetForCurrentView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreWindowStatic(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreWindowStatic { - type Vtable = ICoreWindowStatic_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreWindowStatic { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4d239005_3c2a_41b1_9022_536bb9cf93b1); -} +::windows_core::imp::com_interface!(ICoreWindowStatic, ICoreWindowStatic_Vtbl, 0x4d239005_3c2a_41b1_9022_536bb9cf93b1); #[repr(C)] #[doc(hidden)] pub struct ICoreWindowStatic_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetForCurrentThread: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreWindowWithContext(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreWindowWithContext { - type Vtable = ICoreWindowWithContext_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreWindowWithContext { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9ac40241_3575_4c3b_af66_e8c529d4d06c); -} +::windows_core::imp::com_interface!(ICoreWindowWithContext, ICoreWindowWithContext_Vtbl, 0x9ac40241_3575_4c3b_af66_e8c529d4d06c); #[repr(C)] #[doc(hidden)] pub struct ICoreWindowWithContext_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub UIContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIdleDispatchedHandlerArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIdleDispatchedHandlerArgs { - type Vtable = IIdleDispatchedHandlerArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIdleDispatchedHandlerArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x98bb6a24_dc1c_43cb_b4ed_d1c0eb2391f3); -} +::windows_core::imp::com_interface!(IIdleDispatchedHandlerArgs, IIdleDispatchedHandlerArgs_Vtbl, 0x98bb6a24_dc1c_43cb_b4ed_d1c0eb2391f3); #[repr(C)] #[doc(hidden)] pub struct IIdleDispatchedHandlerArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub IsDispatcherIdle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInitializeWithCoreWindow(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IInitializeWithCoreWindow, IInitializeWithCoreWindow_Vtbl, 0x188f20d6_9873_464a_ace5_57e010f465e6); +::windows_core::imp::interface_hierarchy!(IInitializeWithCoreWindow, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IInitializeWithCoreWindow { pub fn Initialize(&self, window: P0) -> ::windows_core::Result<()> where @@ -1624,48 +1270,23 @@ impl IInitializeWithCoreWindow { unsafe { (::windows_core::Interface::vtable(this).Initialize)(::windows_core::Interface::as_raw(this), window.into_param().abi()).ok() } } } -::windows_core::imp::interface_hierarchy!(IInitializeWithCoreWindow, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IInitializeWithCoreWindow { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IInitializeWithCoreWindow { - type Vtable = IInitializeWithCoreWindow_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInitializeWithCoreWindow { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x188f20d6_9873_464a_ace5_57e010f465e6); -} #[repr(C)] #[doc(hidden)] pub struct IInitializeWithCoreWindow_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, window: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInputEnabledEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInputEnabledEventArgs { - type Vtable = IInputEnabledEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInputEnabledEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x80371d4f_2fd8_4c24_aa86_3163a87b4e5a); -} +::windows_core::imp::com_interface!(IInputEnabledEventArgs, IInputEnabledEventArgs_Vtbl, 0x80371d4f_2fd8_4c24_aa86_3163a87b4e5a); #[repr(C)] #[doc(hidden)] pub struct IInputEnabledEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub InputEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKeyEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKeyEventArgs { - type Vtable = IKeyEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKeyEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5ff5e930_2544_4a17_bd78_1f2fdebb106b); -} +::windows_core::imp::com_interface!(IKeyEventArgs, IKeyEventArgs_Vtbl, 0x5ff5e930_2544_4a17_bd78_1f2fdebb106b); #[repr(C)] #[doc(hidden)] pub struct IKeyEventArgs_Vtbl { @@ -1676,32 +1297,14 @@ pub struct IKeyEventArgs_Vtbl { VirtualKey: usize, pub KeyStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut CorePhysicalKeyStatus) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKeyEventArgs2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKeyEventArgs2 { - type Vtable = IKeyEventArgs2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKeyEventArgs2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x583add98_0790_4571_9b12_645ef9d79e42); -} +::windows_core::imp::com_interface!(IKeyEventArgs2, IKeyEventArgs2_Vtbl, 0x583add98_0790_4571_9b12_645ef9d79e42); #[repr(C)] #[doc(hidden)] pub struct IKeyEventArgs2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub DeviceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPointerEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPointerEventArgs { - type Vtable = IPointerEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPointerEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x920d9cb1_a5fc_4a21_8c09_49dfe6ffe25f); -} +::windows_core::imp::com_interface!(IPointerEventArgs, IPointerEventArgs_Vtbl, 0x920d9cb1_a5fc_4a21_8c09_49dfe6ffe25f); #[repr(C)] #[doc(hidden)] pub struct IPointerEventArgs_Vtbl { @@ -1719,16 +1322,7 @@ pub struct IPointerEventArgs_Vtbl { #[cfg(not(all(feature = "Foundation_Collections", feature = "UI_Input")))] GetIntermediatePoints: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISystemNavigationManager(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISystemNavigationManager { - type Vtable = ISystemNavigationManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISystemNavigationManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x93023118_cf50_42a6_9706_69107fa122e1); -} +::windows_core::imp::com_interface!(ISystemNavigationManager, ISystemNavigationManager_Vtbl, 0x93023118_cf50_42a6_9706_69107fa122e1); #[repr(C)] #[doc(hidden)] pub struct ISystemNavigationManager_Vtbl { @@ -1736,16 +1330,7 @@ pub struct ISystemNavigationManager_Vtbl { pub BackRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveBackRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISystemNavigationManager2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISystemNavigationManager2 { - type Vtable = ISystemNavigationManager2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISystemNavigationManager2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8c510401_67be_49ae_9509_671c1e54a389); -} +::windows_core::imp::com_interface!(ISystemNavigationManager2, ISystemNavigationManager2_Vtbl, 0x8c510401_67be_49ae_9509_671c1e54a389); #[repr(C)] #[doc(hidden)] pub struct ISystemNavigationManager2_Vtbl { @@ -1753,32 +1338,14 @@ pub struct ISystemNavigationManager2_Vtbl { pub AppViewBackButtonVisibility: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut AppViewBackButtonVisibility) -> ::windows_core::HRESULT, pub SetAppViewBackButtonVisibility: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: AppViewBackButtonVisibility) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISystemNavigationManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISystemNavigationManagerStatics { - type Vtable = ISystemNavigationManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISystemNavigationManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdc52b5ce_bee0_4305_8c54_68228ed683b5); -} +::windows_core::imp::com_interface!(ISystemNavigationManagerStatics, ISystemNavigationManagerStatics_Vtbl, 0xdc52b5ce_bee0_4305_8c54_68228ed683b5); #[repr(C)] #[doc(hidden)] pub struct ISystemNavigationManagerStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetForCurrentView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITouchHitTestingEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITouchHitTestingEventArgs { - type Vtable = ITouchHitTestingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITouchHitTestingEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x22f3b823_0b7c_424e_9df7_33d4f962931b); -} +::windows_core::imp::com_interface!(ITouchHitTestingEventArgs, ITouchHitTestingEventArgs_Vtbl, 0x22f3b823_0b7c_424e_9df7_33d4f962931b); #[repr(C)] #[doc(hidden)] pub struct ITouchHitTestingEventArgs_Vtbl { @@ -1790,48 +1357,21 @@ pub struct ITouchHitTestingEventArgs_Vtbl { pub EvaluateProximityToRect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, controlboundingbox: super::super::Foundation::Rect, result__: *mut CoreProximityEvaluation) -> ::windows_core::HRESULT, pub EvaluateProximityToPolygon: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, controlVertices_array_size: u32, controlvertices: *const super::super::Foundation::Point, result__: *mut CoreProximityEvaluation) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVisibilityChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVisibilityChangedEventArgs { - type Vtable = IVisibilityChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVisibilityChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbf9918ea_d801_4564_a495_b1e84f8ad085); -} +::windows_core::imp::com_interface!(IVisibilityChangedEventArgs, IVisibilityChangedEventArgs_Vtbl, 0xbf9918ea_d801_4564_a495_b1e84f8ad085); #[repr(C)] #[doc(hidden)] pub struct IVisibilityChangedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Visible: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWindowActivatedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWindowActivatedEventArgs { - type Vtable = IWindowActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWindowActivatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x179d65e7_4658_4cb6_aa13_41d094ea255e); -} +::windows_core::imp::com_interface!(IWindowActivatedEventArgs, IWindowActivatedEventArgs_Vtbl, 0x179d65e7_4658_4cb6_aa13_41d094ea255e); #[repr(C)] #[doc(hidden)] pub struct IWindowActivatedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub WindowActivationState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut CoreWindowActivationState) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWindowSizeChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWindowSizeChangedEventArgs { - type Vtable = IWindowSizeChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWindowSizeChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5a200ec7_0426_47dc_b86c_6f475915e451); -} +::windows_core::imp::com_interface!(IWindowSizeChangedEventArgs, IWindowSizeChangedEventArgs_Vtbl, 0x5a200ec7_0426_47dc_b86c_6f475915e451); #[repr(C)] #[doc(hidden)] pub struct IWindowSizeChangedEventArgs_Vtbl { @@ -1841,6 +1381,8 @@ pub struct IWindowSizeChangedEventArgs_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AcceleratorKeyEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AcceleratorKeyEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(AcceleratorKeyEventArgs, ICoreWindowEventArgs); impl AcceleratorKeyEventArgs { pub fn EventType(&self) -> ::windows_core::Result { let this = self; @@ -1866,21 +1408,21 @@ impl AcceleratorKeyEventArgs { } } pub fn DeviceId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DeviceId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Handled(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Handled)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetHandled(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetHandled)(::windows_core::Interface::as_raw(this), value).ok() } } } @@ -1889,20 +1431,18 @@ impl ::windows_core::RuntimeType for AcceleratorKeyEventArgs { } unsafe impl ::windows_core::Interface for AcceleratorKeyEventArgs { type Vtable = IAcceleratorKeyEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AcceleratorKeyEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AcceleratorKeyEventArgs { const NAME: &'static str = "Windows.UI.Core.AcceleratorKeyEventArgs"; } -::windows_core::imp::interface_hierarchy!(AcceleratorKeyEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for AcceleratorKeyEventArgs {} unsafe impl ::core::marker::Send for AcceleratorKeyEventArgs {} unsafe impl ::core::marker::Sync for AcceleratorKeyEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AutomationProviderRequestedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AutomationProviderRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(AutomationProviderRequestedEventArgs, ICoreWindowEventArgs); impl AutomationProviderRequestedEventArgs { pub fn AutomationProvider(&self) -> ::windows_core::Result<::windows_core::IInspectable> { let this = self; @@ -1919,14 +1459,14 @@ impl AutomationProviderRequestedEventArgs { unsafe { (::windows_core::Interface::vtable(this).SetAutomationProvider)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn Handled(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Handled)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetHandled(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetHandled)(::windows_core::Interface::as_raw(this), value).ok() } } } @@ -1935,18 +1475,15 @@ impl ::windows_core::RuntimeType for AutomationProviderRequestedEventArgs { } unsafe impl ::windows_core::Interface for AutomationProviderRequestedEventArgs { type Vtable = IAutomationProviderRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AutomationProviderRequestedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AutomationProviderRequestedEventArgs { const NAME: &'static str = "Windows.UI.Core.AutomationProviderRequestedEventArgs"; } -::windows_core::imp::interface_hierarchy!(AutomationProviderRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for AutomationProviderRequestedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BackRequestedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BackRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BackRequestedEventArgs { pub fn Handled(&self) -> ::windows_core::Result { let this = self; @@ -1965,19 +1502,18 @@ impl ::windows_core::RuntimeType for BackRequestedEventArgs { } unsafe impl ::windows_core::Interface for BackRequestedEventArgs { type Vtable = IBackRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BackRequestedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BackRequestedEventArgs { const NAME: &'static str = "Windows.UI.Core.BackRequestedEventArgs"; } -::windows_core::imp::interface_hierarchy!(BackRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BackRequestedEventArgs {} unsafe impl ::core::marker::Sync for BackRequestedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CharacterReceivedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CharacterReceivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(CharacterReceivedEventArgs, ICoreWindowEventArgs); impl CharacterReceivedEventArgs { pub fn KeyCode(&self) -> ::windows_core::Result { let this = self; @@ -1994,14 +1530,14 @@ impl CharacterReceivedEventArgs { } } pub fn Handled(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Handled)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetHandled(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetHandled)(::windows_core::Interface::as_raw(this), value).ok() } } } @@ -2010,18 +1546,15 @@ impl ::windows_core::RuntimeType for CharacterReceivedEventArgs { } unsafe impl ::windows_core::Interface for CharacterReceivedEventArgs { type Vtable = ICharacterReceivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CharacterReceivedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CharacterReceivedEventArgs { const NAME: &'static str = "Windows.UI.Core.CharacterReceivedEventArgs"; } -::windows_core::imp::interface_hierarchy!(CharacterReceivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CharacterReceivedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ClosestInteractiveBoundsRequestedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ClosestInteractiveBoundsRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ClosestInteractiveBoundsRequestedEventArgs { pub fn PointerPosition(&self) -> ::windows_core::Result { let this = self; @@ -2054,17 +1587,16 @@ impl ::windows_core::RuntimeType for ClosestInteractiveBoundsRequestedEventArgs } unsafe impl ::windows_core::Interface for ClosestInteractiveBoundsRequestedEventArgs { type Vtable = IClosestInteractiveBoundsRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ClosestInteractiveBoundsRequestedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ClosestInteractiveBoundsRequestedEventArgs { const NAME: &'static str = "Windows.UI.Core.ClosestInteractiveBoundsRequestedEventArgs"; } -::windows_core::imp::interface_hierarchy!(ClosestInteractiveBoundsRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CoreAcceleratorKeys(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CoreAcceleratorKeys, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(CoreAcceleratorKeys, ICoreAcceleratorKeys); impl CoreAcceleratorKeys { pub fn AcceleratorKeyActivated(&self, handler: P0) -> ::windows_core::Result where @@ -2086,37 +1618,35 @@ impl ::windows_core::RuntimeType for CoreAcceleratorKeys { } unsafe impl ::windows_core::Interface for CoreAcceleratorKeys { type Vtable = ICoreAcceleratorKeys_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CoreAcceleratorKeys { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CoreAcceleratorKeys { const NAME: &'static str = "Windows.UI.Core.CoreAcceleratorKeys"; } -::windows_core::imp::interface_hierarchy!(CoreAcceleratorKeys, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CoreAcceleratorKeys {} unsafe impl ::core::marker::Send for CoreAcceleratorKeys {} unsafe impl ::core::marker::Sync for CoreAcceleratorKeys {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CoreComponentInputSource(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CoreComponentInputSource, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(CoreComponentInputSource, ICoreInputSourceBase, ICorePointerInputSource, ICorePointerInputSource2); impl CoreComponentInputSource { pub fn ClosestInteractiveBoundsRequested(&self, handler: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveClosestInteractiveBoundsRequested(&self, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveClosestInteractiveBoundsRequested)(::windows_core::Interface::as_raw(this), cookie).ok() } } pub fn HasFocus(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).HasFocus)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2126,28 +1656,28 @@ impl CoreComponentInputSource { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveGotFocus(&self, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveGotFocus)(::windows_core::Interface::as_raw(this), cookie).ok() } } pub fn LostFocus(&self, handler: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveLostFocus(&self, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveLostFocus)(::windows_core::Interface::as_raw(this), cookie).ok() } } pub fn Dispatcher(&self) -> ::windows_core::Result { @@ -2185,7 +1715,7 @@ impl CoreComponentInputSource { #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn GetCurrentKeyState(&self, virtualkey: super::super::System::VirtualKey) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetCurrentKeyState)(::windows_core::Interface::as_raw(this), virtualkey, &mut result__).from_abi(result__) @@ -2195,75 +1725,75 @@ impl CoreComponentInputSource { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveCharacterReceived(&self, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveCharacterReceived)(::windows_core::Interface::as_raw(this), cookie).ok() } } pub fn KeyDown(&self, handler: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveKeyDown(&self, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveKeyDown)(::windows_core::Interface::as_raw(this), cookie).ok() } } pub fn KeyUp(&self, handler: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveKeyUp(&self, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveKeyUp)(::windows_core::Interface::as_raw(this), cookie).ok() } } pub fn GetCurrentKeyEventDeviceId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetCurrentKeyEventDeviceId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ReleasePointerCapture(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ReleasePointerCapture)(::windows_core::Interface::as_raw(this)).ok() } } pub fn SetPointerCapture(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetPointerCapture)(::windows_core::Interface::as_raw(this)).ok() } } pub fn HasCapture(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).HasCapture)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PointerPosition(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PointerPosition)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PointerCursor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PointerCursor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2273,111 +1803,111 @@ impl CoreComponentInputSource { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn PointerCaptureLost(&self, handler: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemovePointerCaptureLost(&self, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemovePointerCaptureLost)(::windows_core::Interface::as_raw(this), cookie).ok() } } pub fn PointerEntered(&self, handler: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemovePointerEntered(&self, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemovePointerEntered)(::windows_core::Interface::as_raw(this), cookie).ok() } } pub fn PointerExited(&self, handler: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemovePointerExited(&self, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemovePointerExited)(::windows_core::Interface::as_raw(this), cookie).ok() } } pub fn PointerMoved(&self, handler: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemovePointerMoved(&self, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemovePointerMoved)(::windows_core::Interface::as_raw(this), cookie).ok() } } pub fn PointerPressed(&self, handler: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemovePointerPressed(&self, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemovePointerPressed)(::windows_core::Interface::as_raw(this), cookie).ok() } } pub fn PointerReleased(&self, handler: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemovePointerReleased(&self, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemovePointerReleased)(::windows_core::Interface::as_raw(this), cookie).ok() } } pub fn PointerWheelChanged(&self, handler: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemovePointerWheelChanged(&self, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemovePointerWheelChanged)(::windows_core::Interface::as_raw(this), cookie).ok() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2387,14 +1917,14 @@ impl CoreComponentInputSource { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveTouchHitTesting(&self, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveTouchHitTesting)(::windows_core::Interface::as_raw(this), cookie).ok() } } } @@ -2403,22 +1933,17 @@ impl ::windows_core::RuntimeType for CoreComponentInputSource { } unsafe impl ::windows_core::Interface for CoreComponentInputSource { type Vtable = ICoreInputSourceBase_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CoreComponentInputSource { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CoreComponentInputSource { const NAME: &'static str = "Windows.UI.Core.CoreComponentInputSource"; } -::windows_core::imp::interface_hierarchy!(CoreComponentInputSource, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CoreComponentInputSource {} -impl ::windows_core::CanTryInto for CoreComponentInputSource {} -impl ::windows_core::CanTryInto for CoreComponentInputSource {} unsafe impl ::core::marker::Send for CoreComponentInputSource {} unsafe impl ::core::marker::Sync for CoreComponentInputSource {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CoreCursor(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CoreCursor, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CoreCursor { pub fn Id(&self) -> ::windows_core::Result { let this = self; @@ -2451,32 +1976,31 @@ impl ::windows_core::RuntimeType for CoreCursor { } unsafe impl ::windows_core::Interface for CoreCursor { type Vtable = ICoreCursor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CoreCursor { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CoreCursor { const NAME: &'static str = "Windows.UI.Core.CoreCursor"; } -::windows_core::imp::interface_hierarchy!(CoreCursor, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CoreCursor {} unsafe impl ::core::marker::Sync for CoreCursor {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CoreDispatcher(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CoreDispatcher, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(CoreDispatcher, ICoreAcceleratorKeys); impl CoreDispatcher { pub fn AcceleratorKeyActivated(&self, handler: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveAcceleratorKeyActivated(&self, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveAcceleratorKeyActivated)(::windows_core::Interface::as_raw(this), cookie).ok() } } pub fn HasThreadAccess(&self) -> ::windows_core::Result { @@ -2514,7 +2038,7 @@ impl CoreDispatcher { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -2524,39 +2048,39 @@ impl CoreDispatcher { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn CurrentPriority(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CurrentPriority)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetCurrentPriority(&self, value: CoreDispatcherPriority) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCurrentPriority)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn ShouldYield(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ShouldYield)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ShouldYieldToPriority(&self, priority: CoreDispatcherPriority) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ShouldYieldToPriority)(::windows_core::Interface::as_raw(this), priority, &mut result__).from_abi(result__) } } pub fn StopProcessEvents(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).StopProcessEvents)(::windows_core::Interface::as_raw(this)).ok() } } } @@ -2565,20 +2089,18 @@ impl ::windows_core::RuntimeType for CoreDispatcher { } unsafe impl ::windows_core::Interface for CoreDispatcher { type Vtable = ICoreDispatcher_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CoreDispatcher { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CoreDispatcher { const NAME: &'static str = "Windows.UI.Core.CoreDispatcher"; } -::windows_core::imp::interface_hierarchy!(CoreDispatcher, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CoreDispatcher {} unsafe impl ::core::marker::Send for CoreDispatcher {} unsafe impl ::core::marker::Sync for CoreDispatcher {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CoreIndependentInputSource(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CoreIndependentInputSource, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(CoreIndependentInputSource, ICoreInputSourceBase, ICorePointerInputSource, ICorePointerInputSource2, ICorePointerRedirector); impl CoreIndependentInputSource { pub fn Dispatcher(&self) -> ::windows_core::Result { let this = self; @@ -2613,29 +2135,29 @@ impl CoreIndependentInputSource { unsafe { (::windows_core::Interface::vtable(this).RemoveInputEnabled)(::windows_core::Interface::as_raw(this), cookie).ok() } } pub fn ReleasePointerCapture(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ReleasePointerCapture)(::windows_core::Interface::as_raw(this)).ok() } } pub fn SetPointerCapture(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetPointerCapture)(::windows_core::Interface::as_raw(this)).ok() } } pub fn HasCapture(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).HasCapture)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PointerPosition(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PointerPosition)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PointerCursor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PointerCursor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2645,111 +2167,111 @@ impl CoreIndependentInputSource { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn PointerCaptureLost(&self, handler: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemovePointerCaptureLost(&self, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemovePointerCaptureLost)(::windows_core::Interface::as_raw(this), cookie).ok() } } pub fn PointerEntered(&self, handler: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemovePointerEntered(&self, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemovePointerEntered)(::windows_core::Interface::as_raw(this), cookie).ok() } } pub fn PointerExited(&self, handler: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemovePointerExited(&self, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemovePointerExited)(::windows_core::Interface::as_raw(this), cookie).ok() } } pub fn PointerMoved(&self, handler: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemovePointerMoved(&self, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemovePointerMoved)(::windows_core::Interface::as_raw(this), cookie).ok() } } pub fn PointerPressed(&self, handler: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemovePointerPressed(&self, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemovePointerPressed)(::windows_core::Interface::as_raw(this), cookie).ok() } } pub fn PointerReleased(&self, handler: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemovePointerReleased(&self, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemovePointerReleased)(::windows_core::Interface::as_raw(this), cookie).ok() } } pub fn PointerWheelChanged(&self, handler: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemovePointerWheelChanged(&self, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemovePointerWheelChanged)(::windows_core::Interface::as_raw(this), cookie).ok() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2759,42 +2281,42 @@ impl CoreIndependentInputSource { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemovePointerRoutedAway(&self, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemovePointerRoutedAway)(::windows_core::Interface::as_raw(this), cookie).ok() } } pub fn PointerRoutedTo(&self, handler: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemovePointerRoutedTo(&self, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemovePointerRoutedTo)(::windows_core::Interface::as_raw(this), cookie).ok() } } pub fn PointerRoutedReleased(&self, handler: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemovePointerRoutedReleased(&self, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemovePointerRoutedReleased)(::windows_core::Interface::as_raw(this), cookie).ok() } } } @@ -2803,26 +2325,21 @@ impl ::windows_core::RuntimeType for CoreIndependentInputSource { } unsafe impl ::windows_core::Interface for CoreIndependentInputSource { type Vtable = ICoreInputSourceBase_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CoreIndependentInputSource { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CoreIndependentInputSource { const NAME: &'static str = "Windows.UI.Core.CoreIndependentInputSource"; } -::windows_core::imp::interface_hierarchy!(CoreIndependentInputSource, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CoreIndependentInputSource {} -impl ::windows_core::CanTryInto for CoreIndependentInputSource {} -impl ::windows_core::CanTryInto for CoreIndependentInputSource {} -impl ::windows_core::CanTryInto for CoreIndependentInputSource {} unsafe impl ::core::marker::Send for CoreIndependentInputSource {} unsafe impl ::core::marker::Sync for CoreIndependentInputSource {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CoreIndependentInputSourceController(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CoreIndependentInputSourceController, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(CoreIndependentInputSourceController, super::super::Foundation::IClosable); impl CoreIndependentInputSourceController { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn IsTransparentForUncontrolledInput(&self) -> ::windows_core::Result { @@ -2866,22 +2383,22 @@ impl CoreIndependentInputSourceController { #[cfg(feature = "UI_Composition")] pub fn CreateForVisual(visual: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::ICoreIndependentInputSourceControllerStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateForVisual)(::windows_core::Interface::as_raw(this), visual.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateForVisual)(::windows_core::Interface::as_raw(this), visual.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"UI_Composition\"`"] #[cfg(feature = "UI_Composition")] pub fn CreateForIVisualElement(visualelement: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::ICoreIndependentInputSourceControllerStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateForIVisualElement)(::windows_core::Interface::as_raw(this), visualelement.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateForIVisualElement)(::windows_core::Interface::as_raw(this), visualelement.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -2895,61 +2412,59 @@ impl ::windows_core::RuntimeType for CoreIndependentInputSourceController { } unsafe impl ::windows_core::Interface for CoreIndependentInputSourceController { type Vtable = ICoreIndependentInputSourceController_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CoreIndependentInputSourceController { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CoreIndependentInputSourceController { const NAME: &'static str = "Windows.UI.Core.CoreIndependentInputSourceController"; } -::windows_core::imp::interface_hierarchy!(CoreIndependentInputSourceController, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CoreIndependentInputSourceController {} unsafe impl ::core::marker::Send for CoreIndependentInputSourceController {} unsafe impl ::core::marker::Sync for CoreIndependentInputSourceController {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CoreWindow(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CoreWindow, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(CoreWindow, ICorePointerRedirector, ICoreWindow); impl CoreWindow { pub fn PointerRoutedAway(&self, handler: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemovePointerRoutedAway(&self, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemovePointerRoutedAway)(::windows_core::Interface::as_raw(this), cookie).ok() } } pub fn PointerRoutedTo(&self, handler: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemovePointerRoutedTo(&self, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemovePointerRoutedTo)(::windows_core::Interface::as_raw(this), cookie).ok() } } pub fn PointerRoutedReleased(&self, handler: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemovePointerRoutedReleased(&self, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemovePointerRoutedReleased)(::windows_core::Interface::as_raw(this), cookie).ok() } } pub fn AutomationHostProvider(&self) -> ::windows_core::Result<::windows_core::IInspectable> { @@ -3305,25 +2820,25 @@ impl CoreWindow { unsafe { (::windows_core::Interface::vtable(this).RemoveVisibilityChanged)(::windows_core::Interface::as_raw(this), cookie).ok() } } pub fn SetPointerPosition(&self, value: super::super::Foundation::Point) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetPointerPosition)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn ClosestInteractiveBoundsRequested(&self, handler: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveClosestInteractiveBoundsRequested(&self, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveClosestInteractiveBoundsRequested)(::windows_core::Interface::as_raw(this), cookie).ok() } } pub fn GetCurrentKeyEventDeviceId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetCurrentKeyEventDeviceId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3333,41 +2848,41 @@ impl CoreWindow { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveResizeStarted(&self, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveResizeStarted)(::windows_core::Interface::as_raw(this), cookie).ok() } } pub fn ResizeCompleted(&self, handler: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveResizeCompleted(&self, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveResizeCompleted)(::windows_core::Interface::as_raw(this), cookie).ok() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ActivationMode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ActivationMode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3380,7 +2895,7 @@ impl CoreWindow { }) } pub fn UIContext(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).UIContext)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3397,19 +2912,15 @@ impl ::windows_core::RuntimeType for CoreWindow { } unsafe impl ::windows_core::Interface for CoreWindow { type Vtable = ICoreWindow_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CoreWindow { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CoreWindow { const NAME: &'static str = "Windows.UI.Core.CoreWindow"; } -::windows_core::imp::interface_hierarchy!(CoreWindow, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CoreWindow {} -impl ::windows_core::CanTryInto for CoreWindow {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CoreWindowDialog(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CoreWindowDialog, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CoreWindowDialog { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -3543,17 +3054,16 @@ impl ::windows_core::RuntimeType for CoreWindowDialog { } unsafe impl ::windows_core::Interface for CoreWindowDialog { type Vtable = ICoreWindowDialog_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CoreWindowDialog { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CoreWindowDialog { const NAME: &'static str = "Windows.UI.Core.CoreWindowDialog"; } -::windows_core::imp::interface_hierarchy!(CoreWindowDialog, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CoreWindowEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CoreWindowEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(CoreWindowEventArgs, ICoreWindowEventArgs); impl CoreWindowEventArgs { pub fn Handled(&self) -> ::windows_core::Result { let this = self; @@ -3572,18 +3082,15 @@ impl ::windows_core::RuntimeType for CoreWindowEventArgs { } unsafe impl ::windows_core::Interface for CoreWindowEventArgs { type Vtable = ICoreWindowEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CoreWindowEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CoreWindowEventArgs { const NAME: &'static str = "Windows.UI.Core.CoreWindowEventArgs"; } -::windows_core::imp::interface_hierarchy!(CoreWindowEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CoreWindowEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CoreWindowFlyout(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CoreWindowFlyout, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CoreWindowFlyout { pub fn Showing(&self, handler: P0) -> ::windows_core::Result where @@ -3705,17 +3212,15 @@ impl ::windows_core::RuntimeType for CoreWindowFlyout { } unsafe impl ::windows_core::Interface for CoreWindowFlyout { type Vtable = ICoreWindowFlyout_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CoreWindowFlyout { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CoreWindowFlyout { const NAME: &'static str = "Windows.UI.Core.CoreWindowFlyout"; } -::windows_core::imp::interface_hierarchy!(CoreWindowFlyout, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CoreWindowPopupShowingEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CoreWindowPopupShowingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CoreWindowPopupShowingEventArgs { pub fn SetDesiredSize(&self, value: super::super::Foundation::Size) -> ::windows_core::Result<()> { let this = self; @@ -3727,28 +3232,26 @@ impl ::windows_core::RuntimeType for CoreWindowPopupShowingEventArgs { } unsafe impl ::windows_core::Interface for CoreWindowPopupShowingEventArgs { type Vtable = ICoreWindowPopupShowingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CoreWindowPopupShowingEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CoreWindowPopupShowingEventArgs { const NAME: &'static str = "Windows.UI.Core.CoreWindowPopupShowingEventArgs"; } -::windows_core::imp::interface_hierarchy!(CoreWindowPopupShowingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CoreWindowResizeManager(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CoreWindowResizeManager, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CoreWindowResizeManager { pub fn NotifyLayoutCompleted(&self) -> ::windows_core::Result<()> { let this = self; unsafe { (::windows_core::Interface::vtable(this).NotifyLayoutCompleted)(::windows_core::Interface::as_raw(this)).ok() } } pub fn SetShouldWaitForLayoutCompletion(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetShouldWaitForLayoutCompletion)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn ShouldWaitForLayoutCompletion(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ShouldWaitForLayoutCompletion)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3771,19 +3274,17 @@ impl ::windows_core::RuntimeType for CoreWindowResizeManager { } unsafe impl ::windows_core::Interface for CoreWindowResizeManager { type Vtable = ICoreWindowResizeManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CoreWindowResizeManager { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CoreWindowResizeManager { const NAME: &'static str = "Windows.UI.Core.CoreWindowResizeManager"; } -::windows_core::imp::interface_hierarchy!(CoreWindowResizeManager, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CoreWindowResizeManager {} unsafe impl ::core::marker::Sync for CoreWindowResizeManager {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct IdleDispatchedHandlerArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(IdleDispatchedHandlerArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IdleDispatchedHandlerArgs { pub fn IsDispatcherIdle(&self) -> ::windows_core::Result { let this = self; @@ -3798,27 +3299,26 @@ impl ::windows_core::RuntimeType for IdleDispatchedHandlerArgs { } unsafe impl ::windows_core::Interface for IdleDispatchedHandlerArgs { type Vtable = IIdleDispatchedHandlerArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IdleDispatchedHandlerArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for IdleDispatchedHandlerArgs { const NAME: &'static str = "Windows.UI.Core.IdleDispatchedHandlerArgs"; } -::windows_core::imp::interface_hierarchy!(IdleDispatchedHandlerArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct InputEnabledEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(InputEnabledEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(InputEnabledEventArgs, ICoreWindowEventArgs); impl InputEnabledEventArgs { pub fn Handled(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Handled)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetHandled(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetHandled)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn InputEnabled(&self) -> ::windows_core::Result { @@ -3834,28 +3334,26 @@ impl ::windows_core::RuntimeType for InputEnabledEventArgs { } unsafe impl ::windows_core::Interface for InputEnabledEventArgs { type Vtable = IInputEnabledEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for InputEnabledEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for InputEnabledEventArgs { const NAME: &'static str = "Windows.UI.Core.InputEnabledEventArgs"; } -::windows_core::imp::interface_hierarchy!(InputEnabledEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for InputEnabledEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct KeyEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(KeyEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(KeyEventArgs, ICoreWindowEventArgs); impl KeyEventArgs { pub fn Handled(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Handled)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetHandled(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetHandled)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"System\"`"] @@ -3875,7 +3373,7 @@ impl KeyEventArgs { } } pub fn DeviceId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DeviceId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3887,28 +3385,26 @@ impl ::windows_core::RuntimeType for KeyEventArgs { } unsafe impl ::windows_core::Interface for KeyEventArgs { type Vtable = IKeyEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for KeyEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for KeyEventArgs { const NAME: &'static str = "Windows.UI.Core.KeyEventArgs"; } -::windows_core::imp::interface_hierarchy!(KeyEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for KeyEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PointerEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PointerEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(PointerEventArgs, ICoreWindowEventArgs); impl PointerEventArgs { pub fn Handled(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Handled)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetHandled(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetHandled)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"UI_Input\"`"] @@ -3944,18 +3440,15 @@ impl ::windows_core::RuntimeType for PointerEventArgs { } unsafe impl ::windows_core::Interface for PointerEventArgs { type Vtable = IPointerEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PointerEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PointerEventArgs { const NAME: &'static str = "Windows.UI.Core.PointerEventArgs"; } -::windows_core::imp::interface_hierarchy!(PointerEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for PointerEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SystemNavigationManager(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SystemNavigationManager, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SystemNavigationManager { pub fn BackRequested(&self, handler: P0) -> ::windows_core::Result where @@ -3972,14 +3465,14 @@ impl SystemNavigationManager { unsafe { (::windows_core::Interface::vtable(this).RemoveBackRequested)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn AppViewBackButtonVisibility(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AppViewBackButtonVisibility)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetAppViewBackButtonVisibility(&self, value: AppViewBackButtonVisibility) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetAppViewBackButtonVisibility)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn GetForCurrentView() -> ::windows_core::Result { @@ -3999,29 +3492,28 @@ impl ::windows_core::RuntimeType for SystemNavigationManager { } unsafe impl ::windows_core::Interface for SystemNavigationManager { type Vtable = ISystemNavigationManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SystemNavigationManager { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SystemNavigationManager { const NAME: &'static str = "Windows.UI.Core.SystemNavigationManager"; } -::windows_core::imp::interface_hierarchy!(SystemNavigationManager, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SystemNavigationManager {} unsafe impl ::core::marker::Sync for SystemNavigationManager {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct TouchHitTestingEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(TouchHitTestingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(TouchHitTestingEventArgs, ICoreWindowEventArgs); impl TouchHitTestingEventArgs { pub fn Handled(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Handled)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetHandled(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetHandled)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn ProximityEvaluation(&self) -> ::windows_core::Result { @@ -4069,28 +3561,26 @@ impl ::windows_core::RuntimeType for TouchHitTestingEventArgs { } unsafe impl ::windows_core::Interface for TouchHitTestingEventArgs { type Vtable = ITouchHitTestingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TouchHitTestingEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for TouchHitTestingEventArgs { const NAME: &'static str = "Windows.UI.Core.TouchHitTestingEventArgs"; } -::windows_core::imp::interface_hierarchy!(TouchHitTestingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for TouchHitTestingEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VisibilityChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VisibilityChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(VisibilityChangedEventArgs, ICoreWindowEventArgs); impl VisibilityChangedEventArgs { pub fn Handled(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Handled)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetHandled(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetHandled)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Visible(&self) -> ::windows_core::Result { @@ -4106,28 +3596,26 @@ impl ::windows_core::RuntimeType for VisibilityChangedEventArgs { } unsafe impl ::windows_core::Interface for VisibilityChangedEventArgs { type Vtable = IVisibilityChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VisibilityChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VisibilityChangedEventArgs { const NAME: &'static str = "Windows.UI.Core.VisibilityChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(VisibilityChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for VisibilityChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WindowActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WindowActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(WindowActivatedEventArgs, ICoreWindowEventArgs); impl WindowActivatedEventArgs { pub fn Handled(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Handled)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetHandled(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetHandled)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn WindowActivationState(&self) -> ::windows_core::Result { @@ -4143,28 +3631,26 @@ impl ::windows_core::RuntimeType for WindowActivatedEventArgs { } unsafe impl ::windows_core::Interface for WindowActivatedEventArgs { type Vtable = IWindowActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WindowActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WindowActivatedEventArgs { const NAME: &'static str = "Windows.UI.Core.WindowActivatedEventArgs"; } -::windows_core::imp::interface_hierarchy!(WindowActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for WindowActivatedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WindowSizeChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WindowSizeChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(WindowSizeChangedEventArgs, ICoreWindowEventArgs); impl WindowSizeChangedEventArgs { pub fn Handled(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Handled)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetHandled(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetHandled)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Size(&self) -> ::windows_core::Result { @@ -4180,15 +3666,11 @@ impl ::windows_core::RuntimeType for WindowSizeChangedEventArgs { } unsafe impl ::windows_core::Interface for WindowSizeChangedEventArgs { type Vtable = IWindowSizeChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WindowSizeChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WindowSizeChangedEventArgs { const NAME: &'static str = "Windows.UI.Core.WindowSizeChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(WindowSizeChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for WindowSizeChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::marker::Copy, ::core::clone::Clone, ::core::default::Default)] pub struct AppViewBackButtonVisibility(pub i32); @@ -4610,9 +4092,7 @@ impl ::core::default::Default for CoreProximityEvaluation { unsafe { ::core::mem::zeroed() } } } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct DispatchedHandler(pub ::windows_core::IUnknown); +::windows_core::imp::com_interface!(DispatchedHandler, DispatchedHandler_Vtbl, 0xd1f276c4_98d8_4636_bf49_eb79507548e9); impl DispatchedHandler { pub fn new ::windows_core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = DispatchedHandlerBox:: { vtable: &DispatchedHandlerBox::::VTABLE, count: ::windows_core::imp::RefCount::new(1), invoke }; @@ -4639,7 +4119,7 @@ impl ::windows_core::Result<()> + ::core::marker::Send + 'static> if iid.is_null() || interface.is_null() { return ::windows_core::HRESULT(-2147467261); } - *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; + *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::Interface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::Interface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; if (*interface).is_null() { ::windows_core::HRESULT(-2147467262) } else { @@ -4664,12 +4144,6 @@ impl ::windows_core::Result<()> + ::core::marker::Send + 'static> ((*this).invoke)().into() } } -unsafe impl ::windows_core::Interface for DispatchedHandler { - type Vtable = DispatchedHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DispatchedHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd1f276c4_98d8_4636_bf49_eb79507548e9); -} impl ::windows_core::RuntimeType for DispatchedHandler { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } @@ -4679,9 +4153,7 @@ pub struct DispatchedHandler_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Invoke: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IdleDispatchedHandler(pub ::windows_core::IUnknown); +::windows_core::imp::com_interface!(IdleDispatchedHandler, IdleDispatchedHandler_Vtbl, 0xa42b0c24_7f21_4abc_99c1_8f01007f0880); impl IdleDispatchedHandler { pub fn new) -> ::windows_core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = IdleDispatchedHandlerBox:: { vtable: &IdleDispatchedHandlerBox::::VTABLE, count: ::windows_core::imp::RefCount::new(1), invoke }; @@ -4711,7 +4183,7 @@ impl) -> ::windows_c if iid.is_null() || interface.is_null() { return ::windows_core::HRESULT(-2147467261); } - *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; + *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::Interface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::Interface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; if (*interface).is_null() { ::windows_core::HRESULT(-2147467262) } else { @@ -4736,12 +4208,6 @@ impl) -> ::windows_c ((*this).invoke)(::windows_core::from_raw_borrowed(&e)).into() } } -unsafe impl ::windows_core::Interface for IdleDispatchedHandler { - type Vtable = IdleDispatchedHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IdleDispatchedHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa42b0c24_7f21_4abc_99c1_8f01007f0880); -} impl ::windows_core::RuntimeType for IdleDispatchedHandler { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } 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 88557265e2..63812d8c64 100644 --- a/crates/libs/windows/src/Windows/UI/Input/Core/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Input/Core/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRadialControllerIndependentInputSource(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRadialControllerIndependentInputSource { - type Vtable = IRadialControllerIndependentInputSource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRadialControllerIndependentInputSource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3d577ef6_4cee_11e6_b535_001bdc06ab3b); -} +::windows_core::imp::com_interface!(IRadialControllerIndependentInputSource, IRadialControllerIndependentInputSource_Vtbl, 0x3d577ef6_4cee_11e6_b535_001bdc06ab3b); #[repr(C)] #[doc(hidden)] pub struct IRadialControllerIndependentInputSource_Vtbl { @@ -18,16 +9,7 @@ pub struct IRadialControllerIndependentInputSource_Vtbl { #[cfg(not(feature = "UI_Core"))] Dispatcher: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRadialControllerIndependentInputSource2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRadialControllerIndependentInputSource2 { - type Vtable = IRadialControllerIndependentInputSource2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRadialControllerIndependentInputSource2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7073aad8_35f3_4eeb_8751_be4d0a66faf4); -} +::windows_core::imp::com_interface!(IRadialControllerIndependentInputSource2, IRadialControllerIndependentInputSource2_Vtbl, 0x7073aad8_35f3_4eeb_8751_be4d0a66faf4); #[repr(C)] #[doc(hidden)] pub struct IRadialControllerIndependentInputSource2_Vtbl { @@ -37,16 +19,7 @@ pub struct IRadialControllerIndependentInputSource2_Vtbl { #[cfg(not(feature = "System"))] DispatcherQueue: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRadialControllerIndependentInputSourceStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRadialControllerIndependentInputSourceStatics { - type Vtable = IRadialControllerIndependentInputSourceStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRadialControllerIndependentInputSourceStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3d577ef5_4cee_11e6_b535_001bdc06ab3b); -} +::windows_core::imp::com_interface!(IRadialControllerIndependentInputSourceStatics, IRadialControllerIndependentInputSourceStatics_Vtbl, 0x3d577ef5_4cee_11e6_b535_001bdc06ab3b); #[repr(C)] #[doc(hidden)] pub struct IRadialControllerIndependentInputSourceStatics_Vtbl { @@ -59,6 +32,7 @@ pub struct IRadialControllerIndependentInputSourceStatics_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RadialControllerIndependentInputSource(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RadialControllerIndependentInputSource, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RadialControllerIndependentInputSource { pub fn Controller(&self) -> ::windows_core::Result { let this = self; @@ -79,7 +53,7 @@ impl RadialControllerIndependentInputSource { #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn DispatcherQueue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DispatcherQueue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -107,13 +81,10 @@ impl ::windows_core::RuntimeType for RadialControllerIndependentInputSource { } unsafe impl ::windows_core::Interface for RadialControllerIndependentInputSource { type Vtable = IRadialControllerIndependentInputSource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RadialControllerIndependentInputSource { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RadialControllerIndependentInputSource { const NAME: &'static str = "Windows.UI.Input.Core.RadialControllerIndependentInputSource"; } -::windows_core::imp::interface_hierarchy!(RadialControllerIndependentInputSource, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RadialControllerIndependentInputSource {} unsafe impl ::core::marker::Sync for RadialControllerIndependentInputSource {} diff --git a/crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/impl.rs b/crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/impl.rs index 6cf9f860f3..ed719fbe36 100644 --- a/crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/impl.rs +++ b/crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/impl.rs @@ -109,7 +109,7 @@ impl IInkAnalysisNode_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IInkAnalyzerFactory_Impl: Sized { @@ -138,6 +138,6 @@ impl IInkAnalyzerFactory_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 ad10c13a9d..934fb2e17e 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 @@ -1,29 +1,11 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkAnalysisInkBullet(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInkAnalysisInkBullet { - type Vtable = IInkAnalysisInkBullet_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInkAnalysisInkBullet { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xee049368_6110_4136_95f9_ee809fc20030); -} +::windows_core::imp::com_interface!(IInkAnalysisInkBullet, IInkAnalysisInkBullet_Vtbl, 0xee049368_6110_4136_95f9_ee809fc20030); #[repr(C)] #[doc(hidden)] pub struct IInkAnalysisInkBullet_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub RecognizedText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkAnalysisInkDrawing(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInkAnalysisInkDrawing { - type Vtable = IInkAnalysisInkDrawing_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInkAnalysisInkDrawing { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6a85ed1f_1fe4_4e15_898c_8e112377e021); -} +::windows_core::imp::com_interface!(IInkAnalysisInkDrawing, IInkAnalysisInkDrawing_Vtbl, 0x6a85ed1f_1fe4_4e15_898c_8e112377e021); #[repr(C)] #[doc(hidden)] pub struct IInkAnalysisInkDrawing_Vtbl { @@ -35,16 +17,7 @@ pub struct IInkAnalysisInkDrawing_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Points: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkAnalysisInkWord(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInkAnalysisInkWord { - type Vtable = IInkAnalysisInkWord_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInkAnalysisInkWord { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4bd228ad_83af_4034_8f3b_f8687dfff436); -} +::windows_core::imp::com_interface!(IInkAnalysisInkWord, IInkAnalysisInkWord_Vtbl, 0x4bd228ad_83af_4034_8f3b_f8687dfff436); #[repr(C)] #[doc(hidden)] pub struct IInkAnalysisInkWord_Vtbl { @@ -55,16 +28,7 @@ pub struct IInkAnalysisInkWord_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] TextAlternates: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkAnalysisLine(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInkAnalysisLine { - type Vtable = IInkAnalysisLine_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInkAnalysisLine { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa06d048d_2b8d_4754_ad5a_d0871193a956); -} +::windows_core::imp::com_interface!(IInkAnalysisLine, IInkAnalysisLine_Vtbl, 0xa06d048d_2b8d_4754_ad5a_d0871193a956); #[repr(C)] #[doc(hidden)] pub struct IInkAnalysisLine_Vtbl { @@ -72,25 +36,15 @@ pub struct IInkAnalysisLine_Vtbl { pub RecognizedText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub IndentLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkAnalysisListItem(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInkAnalysisListItem { - type Vtable = IInkAnalysisListItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInkAnalysisListItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb4e3c23f_c4c3_4c3a_a1a6_9d85547ee586); -} +::windows_core::imp::com_interface!(IInkAnalysisListItem, IInkAnalysisListItem_Vtbl, 0xb4e3c23f_c4c3_4c3a_a1a6_9d85547ee586); #[repr(C)] #[doc(hidden)] pub struct IInkAnalysisListItem_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub RecognizedText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkAnalysisNode(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IInkAnalysisNode, IInkAnalysisNode_Vtbl, 0x30831f05_5f64_4a2c_ba37_4f4887879574); +::windows_core::imp::interface_hierarchy!(IInkAnalysisNode, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IInkAnalysisNode { pub fn Id(&self) -> ::windows_core::Result { let this = self; @@ -148,16 +102,9 @@ impl IInkAnalysisNode { } } } -::windows_core::imp::interface_hierarchy!(IInkAnalysisNode, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IInkAnalysisNode { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IInkAnalysisNode { - type Vtable = IInkAnalysisNode_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInkAnalysisNode { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x30831f05_5f64_4a2c_ba37_4f4887879574); -} #[repr(C)] #[doc(hidden)] pub struct IInkAnalysisNode_Vtbl { @@ -179,48 +126,21 @@ pub struct IInkAnalysisNode_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetStrokeIds: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkAnalysisParagraph(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInkAnalysisParagraph { - type Vtable = IInkAnalysisParagraph_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInkAnalysisParagraph { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd9ad045c_0cd1_4dd4_a68b_eb1f12b3d727); -} +::windows_core::imp::com_interface!(IInkAnalysisParagraph, IInkAnalysisParagraph_Vtbl, 0xd9ad045c_0cd1_4dd4_a68b_eb1f12b3d727); #[repr(C)] #[doc(hidden)] pub struct IInkAnalysisParagraph_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub RecognizedText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkAnalysisResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInkAnalysisResult { - type Vtable = IInkAnalysisResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInkAnalysisResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8948ba79_a243_4aa3_a294_1f98bd0ff580); -} +::windows_core::imp::com_interface!(IInkAnalysisResult, IInkAnalysisResult_Vtbl, 0x8948ba79_a243_4aa3_a294_1f98bd0ff580); #[repr(C)] #[doc(hidden)] pub struct IInkAnalysisResult_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut InkAnalysisStatus) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkAnalysisRoot(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInkAnalysisRoot { - type Vtable = IInkAnalysisRoot_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInkAnalysisRoot { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3fb6a3c4_2fde_4061_8502_a90f32545b84); -} +::windows_core::imp::com_interface!(IInkAnalysisRoot, IInkAnalysisRoot_Vtbl, 0x3fb6a3c4_2fde_4061_8502_a90f32545b84); #[repr(C)] #[doc(hidden)] pub struct IInkAnalysisRoot_Vtbl { @@ -231,32 +151,14 @@ pub struct IInkAnalysisRoot_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] FindNodes: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkAnalysisWritingRegion(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInkAnalysisWritingRegion { - type Vtable = IInkAnalysisWritingRegion_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInkAnalysisWritingRegion { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdd6d6231_bd16_4663_b5ae_941d3043ef5b); -} +::windows_core::imp::com_interface!(IInkAnalysisWritingRegion, IInkAnalysisWritingRegion_Vtbl, 0xdd6d6231_bd16_4663_b5ae_941d3043ef5b); #[repr(C)] #[doc(hidden)] pub struct IInkAnalysisWritingRegion_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub RecognizedText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkAnalyzer(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInkAnalyzer { - type Vtable = IInkAnalyzer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInkAnalyzer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf12b8f95_0866_4dc5_8c77_f88614dfe38c); -} +::windows_core::imp::com_interface!(IInkAnalyzer, IInkAnalyzer_Vtbl, 0xf12b8f95_0866_4dc5_8c77_f88614dfe38c); #[repr(C)] #[doc(hidden)] pub struct IInkAnalyzer_Vtbl { @@ -278,9 +180,8 @@ pub struct IInkAnalyzer_Vtbl { pub SetStrokeDataKind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strokeid: u32, strokekind: InkAnalysisStrokeKind) -> ::windows_core::HRESULT, pub AnalyzeAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkAnalyzerFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IInkAnalyzerFactory, IInkAnalyzerFactory_Vtbl, 0x29138686_1963_49d8_9589_e14384c769e3); +::windows_core::imp::interface_hierarchy!(IInkAnalyzerFactory, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IInkAnalyzerFactory { pub fn CreateAnalyzer(&self) -> ::windows_core::Result { let this = self; @@ -290,16 +191,9 @@ impl IInkAnalyzerFactory { } } } -::windows_core::imp::interface_hierarchy!(IInkAnalyzerFactory, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IInkAnalyzerFactory { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IInkAnalyzerFactory { - type Vtable = IInkAnalyzerFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInkAnalyzerFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x29138686_1963_49d8_9589_e14384c769e3); -} #[repr(C)] #[doc(hidden)] pub struct IInkAnalyzerFactory_Vtbl { @@ -309,6 +203,8 @@ pub struct IInkAnalyzerFactory_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct InkAnalysisInkBullet(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(InkAnalysisInkBullet, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(InkAnalysisInkBullet, IInkAnalysisNode); impl InkAnalysisInkBullet { pub fn RecognizedText(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -318,21 +214,21 @@ impl InkAnalysisInkBullet { } } pub fn Id(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Id)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn BoundingRect(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).BoundingRect)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -341,7 +237,7 @@ impl InkAnalysisInkBullet { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn RotatedBoundingRect(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RotatedBoundingRect)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -350,14 +246,14 @@ impl InkAnalysisInkBullet { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Children(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Children)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Parent(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Parent)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -366,7 +262,7 @@ impl InkAnalysisInkBullet { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetStrokeIds(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetStrokeIds)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -378,20 +274,18 @@ impl ::windows_core::RuntimeType for InkAnalysisInkBullet { } unsafe impl ::windows_core::Interface for InkAnalysisInkBullet { type Vtable = IInkAnalysisInkBullet_Vtbl; -} -unsafe impl ::windows_core::ComInterface for InkAnalysisInkBullet { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for InkAnalysisInkBullet { const NAME: &'static str = "Windows.UI.Input.Inking.Analysis.InkAnalysisInkBullet"; } -::windows_core::imp::interface_hierarchy!(InkAnalysisInkBullet, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for InkAnalysisInkBullet {} unsafe impl ::core::marker::Send for InkAnalysisInkBullet {} unsafe impl ::core::marker::Sync for InkAnalysisInkBullet {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct InkAnalysisInkDrawing(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(InkAnalysisInkDrawing, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(InkAnalysisInkDrawing, IInkAnalysisNode); impl InkAnalysisInkDrawing { pub fn DrawingKind(&self) -> ::windows_core::Result { let this = self; @@ -417,21 +311,21 @@ impl InkAnalysisInkDrawing { } } pub fn Id(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Id)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn BoundingRect(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).BoundingRect)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -440,7 +334,7 @@ impl InkAnalysisInkDrawing { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn RotatedBoundingRect(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RotatedBoundingRect)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -449,14 +343,14 @@ impl InkAnalysisInkDrawing { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Children(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Children)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Parent(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Parent)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -465,7 +359,7 @@ impl InkAnalysisInkDrawing { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetStrokeIds(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetStrokeIds)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -477,20 +371,18 @@ impl ::windows_core::RuntimeType for InkAnalysisInkDrawing { } unsafe impl ::windows_core::Interface for InkAnalysisInkDrawing { type Vtable = IInkAnalysisInkDrawing_Vtbl; -} -unsafe impl ::windows_core::ComInterface for InkAnalysisInkDrawing { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for InkAnalysisInkDrawing { const NAME: &'static str = "Windows.UI.Input.Inking.Analysis.InkAnalysisInkDrawing"; } -::windows_core::imp::interface_hierarchy!(InkAnalysisInkDrawing, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for InkAnalysisInkDrawing {} unsafe impl ::core::marker::Send for InkAnalysisInkDrawing {} unsafe impl ::core::marker::Sync for InkAnalysisInkDrawing {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct InkAnalysisInkWord(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(InkAnalysisInkWord, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(InkAnalysisInkWord, IInkAnalysisNode); impl InkAnalysisInkWord { pub fn RecognizedText(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -509,21 +401,21 @@ impl InkAnalysisInkWord { } } pub fn Id(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Id)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn BoundingRect(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).BoundingRect)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -532,7 +424,7 @@ impl InkAnalysisInkWord { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn RotatedBoundingRect(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RotatedBoundingRect)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -541,14 +433,14 @@ impl InkAnalysisInkWord { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Children(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Children)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Parent(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Parent)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -557,7 +449,7 @@ impl InkAnalysisInkWord { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetStrokeIds(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetStrokeIds)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -569,20 +461,18 @@ impl ::windows_core::RuntimeType for InkAnalysisInkWord { } unsafe impl ::windows_core::Interface for InkAnalysisInkWord { type Vtable = IInkAnalysisInkWord_Vtbl; -} -unsafe impl ::windows_core::ComInterface for InkAnalysisInkWord { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for InkAnalysisInkWord { const NAME: &'static str = "Windows.UI.Input.Inking.Analysis.InkAnalysisInkWord"; } -::windows_core::imp::interface_hierarchy!(InkAnalysisInkWord, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for InkAnalysisInkWord {} unsafe impl ::core::marker::Send for InkAnalysisInkWord {} unsafe impl ::core::marker::Sync for InkAnalysisInkWord {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct InkAnalysisLine(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(InkAnalysisLine, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(InkAnalysisLine, IInkAnalysisNode); impl InkAnalysisLine { pub fn RecognizedText(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -599,21 +489,21 @@ impl InkAnalysisLine { } } pub fn Id(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Id)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn BoundingRect(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).BoundingRect)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -622,7 +512,7 @@ impl InkAnalysisLine { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn RotatedBoundingRect(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RotatedBoundingRect)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -631,14 +521,14 @@ impl InkAnalysisLine { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Children(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Children)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Parent(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Parent)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -647,7 +537,7 @@ impl InkAnalysisLine { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetStrokeIds(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetStrokeIds)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -659,20 +549,18 @@ impl ::windows_core::RuntimeType for InkAnalysisLine { } unsafe impl ::windows_core::Interface for InkAnalysisLine { type Vtable = IInkAnalysisLine_Vtbl; -} -unsafe impl ::windows_core::ComInterface for InkAnalysisLine { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for InkAnalysisLine { const NAME: &'static str = "Windows.UI.Input.Inking.Analysis.InkAnalysisLine"; } -::windows_core::imp::interface_hierarchy!(InkAnalysisLine, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for InkAnalysisLine {} unsafe impl ::core::marker::Send for InkAnalysisLine {} unsafe impl ::core::marker::Sync for InkAnalysisLine {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct InkAnalysisListItem(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(InkAnalysisListItem, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(InkAnalysisListItem, IInkAnalysisNode); impl InkAnalysisListItem { pub fn RecognizedText(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -682,21 +570,21 @@ impl InkAnalysisListItem { } } pub fn Id(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Id)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn BoundingRect(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).BoundingRect)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -705,7 +593,7 @@ impl InkAnalysisListItem { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn RotatedBoundingRect(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RotatedBoundingRect)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -714,14 +602,14 @@ impl InkAnalysisListItem { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Children(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Children)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Parent(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Parent)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -730,7 +618,7 @@ impl InkAnalysisListItem { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetStrokeIds(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetStrokeIds)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -742,20 +630,18 @@ impl ::windows_core::RuntimeType for InkAnalysisListItem { } unsafe impl ::windows_core::Interface for InkAnalysisListItem { type Vtable = IInkAnalysisListItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for InkAnalysisListItem { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for InkAnalysisListItem { const NAME: &'static str = "Windows.UI.Input.Inking.Analysis.InkAnalysisListItem"; } -::windows_core::imp::interface_hierarchy!(InkAnalysisListItem, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for InkAnalysisListItem {} unsafe impl ::core::marker::Send for InkAnalysisListItem {} unsafe impl ::core::marker::Sync for InkAnalysisListItem {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct InkAnalysisNode(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(InkAnalysisNode, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(InkAnalysisNode, IInkAnalysisNode); impl InkAnalysisNode { pub fn Id(&self) -> ::windows_core::Result { let this = self; @@ -818,37 +704,35 @@ impl ::windows_core::RuntimeType for InkAnalysisNode { } unsafe impl ::windows_core::Interface for InkAnalysisNode { type Vtable = IInkAnalysisNode_Vtbl; -} -unsafe impl ::windows_core::ComInterface for InkAnalysisNode { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for InkAnalysisNode { const NAME: &'static str = "Windows.UI.Input.Inking.Analysis.InkAnalysisNode"; } -::windows_core::imp::interface_hierarchy!(InkAnalysisNode, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for InkAnalysisNode {} unsafe impl ::core::marker::Send for InkAnalysisNode {} unsafe impl ::core::marker::Sync for InkAnalysisNode {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct InkAnalysisParagraph(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(InkAnalysisParagraph, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(InkAnalysisParagraph, IInkAnalysisNode); impl InkAnalysisParagraph { pub fn Id(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Id)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn BoundingRect(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).BoundingRect)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -857,7 +741,7 @@ impl InkAnalysisParagraph { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn RotatedBoundingRect(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RotatedBoundingRect)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -866,14 +750,14 @@ impl InkAnalysisParagraph { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Children(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Children)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Parent(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Parent)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -882,7 +766,7 @@ impl InkAnalysisParagraph { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetStrokeIds(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetStrokeIds)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -901,20 +785,17 @@ impl ::windows_core::RuntimeType for InkAnalysisParagraph { } unsafe impl ::windows_core::Interface for InkAnalysisParagraph { type Vtable = IInkAnalysisParagraph_Vtbl; -} -unsafe impl ::windows_core::ComInterface for InkAnalysisParagraph { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for InkAnalysisParagraph { const NAME: &'static str = "Windows.UI.Input.Inking.Analysis.InkAnalysisParagraph"; } -::windows_core::imp::interface_hierarchy!(InkAnalysisParagraph, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for InkAnalysisParagraph {} unsafe impl ::core::marker::Send for InkAnalysisParagraph {} unsafe impl ::core::marker::Sync for InkAnalysisParagraph {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct InkAnalysisResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(InkAnalysisResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl InkAnalysisResult { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -929,36 +810,35 @@ impl ::windows_core::RuntimeType for InkAnalysisResult { } unsafe impl ::windows_core::Interface for InkAnalysisResult { type Vtable = IInkAnalysisResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for InkAnalysisResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for InkAnalysisResult { const NAME: &'static str = "Windows.UI.Input.Inking.Analysis.InkAnalysisResult"; } -::windows_core::imp::interface_hierarchy!(InkAnalysisResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for InkAnalysisResult {} unsafe impl ::core::marker::Sync for InkAnalysisResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct InkAnalysisRoot(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(InkAnalysisRoot, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(InkAnalysisRoot, IInkAnalysisNode); impl InkAnalysisRoot { pub fn Id(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Id)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn BoundingRect(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).BoundingRect)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -967,7 +847,7 @@ impl InkAnalysisRoot { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn RotatedBoundingRect(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RotatedBoundingRect)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -976,14 +856,14 @@ impl InkAnalysisRoot { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Children(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Children)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Parent(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Parent)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -992,7 +872,7 @@ impl InkAnalysisRoot { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetStrokeIds(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetStrokeIds)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1020,37 +900,35 @@ impl ::windows_core::RuntimeType for InkAnalysisRoot { } unsafe impl ::windows_core::Interface for InkAnalysisRoot { type Vtable = IInkAnalysisRoot_Vtbl; -} -unsafe impl ::windows_core::ComInterface for InkAnalysisRoot { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for InkAnalysisRoot { const NAME: &'static str = "Windows.UI.Input.Inking.Analysis.InkAnalysisRoot"; } -::windows_core::imp::interface_hierarchy!(InkAnalysisRoot, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for InkAnalysisRoot {} unsafe impl ::core::marker::Send for InkAnalysisRoot {} unsafe impl ::core::marker::Sync for InkAnalysisRoot {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct InkAnalysisWritingRegion(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(InkAnalysisWritingRegion, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(InkAnalysisWritingRegion, IInkAnalysisNode); impl InkAnalysisWritingRegion { pub fn Id(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Id)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn BoundingRect(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).BoundingRect)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1059,7 +937,7 @@ impl InkAnalysisWritingRegion { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn RotatedBoundingRect(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RotatedBoundingRect)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1068,14 +946,14 @@ impl InkAnalysisWritingRegion { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Children(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Children)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Parent(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Parent)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1084,7 +962,7 @@ impl InkAnalysisWritingRegion { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetStrokeIds(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetStrokeIds)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1103,20 +981,17 @@ impl ::windows_core::RuntimeType for InkAnalysisWritingRegion { } unsafe impl ::windows_core::Interface for InkAnalysisWritingRegion { type Vtable = IInkAnalysisWritingRegion_Vtbl; -} -unsafe impl ::windows_core::ComInterface for InkAnalysisWritingRegion { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for InkAnalysisWritingRegion { const NAME: &'static str = "Windows.UI.Input.Inking.Analysis.InkAnalysisWritingRegion"; } -::windows_core::imp::interface_hierarchy!(InkAnalysisWritingRegion, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for InkAnalysisWritingRegion {} unsafe impl ::core::marker::Send for InkAnalysisWritingRegion {} unsafe impl ::core::marker::Sync for InkAnalysisWritingRegion {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct InkAnalyzer(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(InkAnalyzer, ::windows_core::IUnknown, ::windows_core::IInspectable); impl InkAnalyzer { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1150,10 +1025,10 @@ impl InkAnalyzer { #[cfg(feature = "Foundation_Collections")] pub fn AddDataForStrokes(&self, strokes: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).AddDataForStrokes)(::windows_core::Interface::as_raw(this), strokes.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).AddDataForStrokes)(::windows_core::Interface::as_raw(this), strokes.into_param().abi()).ok() } } pub fn ClearDataForAllStrokes(&self) -> ::windows_core::Result<()> { let this = self; @@ -1167,10 +1042,10 @@ impl InkAnalyzer { #[cfg(feature = "Foundation_Collections")] pub fn RemoveDataForStrokes(&self, strokeids: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).RemoveDataForStrokes)(::windows_core::Interface::as_raw(this), strokeids.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).RemoveDataForStrokes)(::windows_core::Interface::as_raw(this), strokeids.into_param().abi()).ok() } } pub fn ReplaceDataForStroke(&self, stroke: P0) -> ::windows_core::Result<()> where @@ -1196,14 +1071,11 @@ impl ::windows_core::RuntimeType for InkAnalyzer { } unsafe impl ::windows_core::Interface for InkAnalyzer { type Vtable = IInkAnalyzer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for InkAnalyzer { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for InkAnalyzer { const NAME: &'static str = "Windows.UI.Input.Inking.Analysis.InkAnalyzer"; } -::windows_core::imp::interface_hierarchy!(InkAnalyzer, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for InkAnalyzer {} unsafe impl ::core::marker::Sync for InkAnalyzer {} #[repr(transparent)] 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 3e7679a723..8d600f867d 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 @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreIncrementalInkStroke(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreIncrementalInkStroke { - type Vtable = ICoreIncrementalInkStroke_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreIncrementalInkStroke { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfda015d3_9d66_4f7d_a57f_cc70b9cfaa76); -} +::windows_core::imp::com_interface!(ICoreIncrementalInkStroke, ICoreIncrementalInkStroke_Vtbl, 0xfda015d3_9d66_4f7d_a57f_cc70b9cfaa76); #[repr(C)] #[doc(hidden)] pub struct ICoreIncrementalInkStroke_Vtbl { @@ -24,16 +15,7 @@ pub struct ICoreIncrementalInkStroke_Vtbl { PointTransform: usize, pub BoundingRect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::Rect) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreIncrementalInkStrokeFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreIncrementalInkStrokeFactory { - type Vtable = ICoreIncrementalInkStrokeFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreIncrementalInkStrokeFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd7c59f46_8da8_4f70_9751_e53bb6df4596); -} +::windows_core::imp::com_interface!(ICoreIncrementalInkStrokeFactory, ICoreIncrementalInkStrokeFactory_Vtbl, 0xd7c59f46_8da8_4f70_9751_e53bb6df4596); #[repr(C)] #[doc(hidden)] pub struct ICoreIncrementalInkStrokeFactory_Vtbl { @@ -43,16 +25,7 @@ pub struct ICoreIncrementalInkStrokeFactory_Vtbl { #[cfg(not(feature = "Foundation_Numerics"))] Create: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreInkIndependentInputSource(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreInkIndependentInputSource { - type Vtable = ICoreInkIndependentInputSource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreInkIndependentInputSource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x39b38da9_7639_4499_a5b5_191d00e35b16); -} +::windows_core::imp::com_interface!(ICoreInkIndependentInputSource, ICoreInkIndependentInputSource_Vtbl, 0x39b38da9_7639_4499_a5b5_191d00e35b16); #[repr(C)] #[doc(hidden)] pub struct ICoreInkIndependentInputSource_Vtbl { @@ -94,16 +67,7 @@ pub struct ICoreInkIndependentInputSource_Vtbl { pub RemovePointerLost: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cookie: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub InkPresenter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreInkIndependentInputSource2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreInkIndependentInputSource2 { - type Vtable = ICoreInkIndependentInputSource2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreInkIndependentInputSource2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2846b012_0b59_5bb9_a3c5_becb7cf03a33); -} +::windows_core::imp::com_interface!(ICoreInkIndependentInputSource2, ICoreInkIndependentInputSource2_Vtbl, 0x2846b012_0b59_5bb9_a3c5_becb7cf03a33); #[repr(C)] #[doc(hidden)] pub struct ICoreInkIndependentInputSource2_Vtbl { @@ -117,32 +81,14 @@ pub struct ICoreInkIndependentInputSource2_Vtbl { #[cfg(not(feature = "UI_Core"))] SetPointerCursor: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreInkIndependentInputSourceStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreInkIndependentInputSourceStatics { - type Vtable = ICoreInkIndependentInputSourceStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreInkIndependentInputSourceStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x73e6011b_80c0_4dfb_9b66_10ba7f3f9c84); -} +::windows_core::imp::com_interface!(ICoreInkIndependentInputSourceStatics, ICoreInkIndependentInputSourceStatics_Vtbl, 0x73e6011b_80c0_4dfb_9b66_10ba7f3f9c84); #[repr(C)] #[doc(hidden)] pub struct ICoreInkIndependentInputSourceStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, inkpresenter: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreInkPresenterHost(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreInkPresenterHost { - type Vtable = ICoreInkPresenterHost_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreInkPresenterHost { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x396e89e6_7d55_4617_9e58_68c70c9169b9); -} +::windows_core::imp::com_interface!(ICoreInkPresenterHost, ICoreInkPresenterHost_Vtbl, 0x396e89e6_7d55_4617_9e58_68c70c9169b9); #[repr(C)] #[doc(hidden)] pub struct ICoreInkPresenterHost_Vtbl { @@ -157,16 +103,7 @@ pub struct ICoreInkPresenterHost_Vtbl { #[cfg(not(feature = "UI_Composition"))] SetRootVisual: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreWetStrokeUpdateEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreWetStrokeUpdateEventArgs { - type Vtable = ICoreWetStrokeUpdateEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreWetStrokeUpdateEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfb07d14c_3380_457a_a987_991357896c1b); -} +::windows_core::imp::com_interface!(ICoreWetStrokeUpdateEventArgs, ICoreWetStrokeUpdateEventArgs_Vtbl, 0xfb07d14c_3380_457a_a987_991357896c1b); #[repr(C)] #[doc(hidden)] pub struct ICoreWetStrokeUpdateEventArgs_Vtbl { @@ -179,16 +116,7 @@ pub struct ICoreWetStrokeUpdateEventArgs_Vtbl { pub Disposition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut CoreWetStrokeDisposition) -> ::windows_core::HRESULT, pub SetDisposition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: CoreWetStrokeDisposition) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreWetStrokeUpdateSource(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreWetStrokeUpdateSource { - type Vtable = ICoreWetStrokeUpdateSource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreWetStrokeUpdateSource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1f718e22_ee52_4e00_8209_4c3e5b21a3cc); -} +::windows_core::imp::com_interface!(ICoreWetStrokeUpdateSource, ICoreWetStrokeUpdateSource_Vtbl, 0x1f718e22_ee52_4e00_8209_4c3e5b21a3cc); #[repr(C)] #[doc(hidden)] pub struct ICoreWetStrokeUpdateSource_Vtbl { @@ -205,16 +133,7 @@ pub struct ICoreWetStrokeUpdateSource_Vtbl { pub RemoveWetStrokeCanceled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cookie: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub InkPresenter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreWetStrokeUpdateSourceStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreWetStrokeUpdateSourceStatics { - type Vtable = ICoreWetStrokeUpdateSourceStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreWetStrokeUpdateSourceStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3dad9cba_1d3d_46ae_ab9d_8647486c6f90); -} +::windows_core::imp::com_interface!(ICoreWetStrokeUpdateSourceStatics, ICoreWetStrokeUpdateSourceStatics_Vtbl, 0x3dad9cba_1d3d_46ae_ab9d_8647486c6f90); #[repr(C)] #[doc(hidden)] pub struct ICoreWetStrokeUpdateSourceStatics_Vtbl { @@ -224,17 +143,18 @@ pub struct ICoreWetStrokeUpdateSourceStatics_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CoreIncrementalInkStroke(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CoreIncrementalInkStroke, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CoreIncrementalInkStroke { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn AppendInkPoints(&self, inkpoints: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).AppendInkPoints)(::windows_core::Interface::as_raw(this), inkpoints.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).AppendInkPoints)(::windows_core::Interface::as_raw(this), inkpoints.into_param().abi(), &mut result__).from_abi(result__) } } pub fn CreateInkStroke(&self) -> ::windows_core::Result { @@ -289,19 +209,17 @@ impl ::windows_core::RuntimeType for CoreIncrementalInkStroke { } unsafe impl ::windows_core::Interface for CoreIncrementalInkStroke { type Vtable = ICoreIncrementalInkStroke_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CoreIncrementalInkStroke { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CoreIncrementalInkStroke { const NAME: &'static str = "Windows.UI.Input.Inking.Core.CoreIncrementalInkStroke"; } -::windows_core::imp::interface_hierarchy!(CoreIncrementalInkStroke, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CoreIncrementalInkStroke {} unsafe impl ::core::marker::Sync for CoreIncrementalInkStroke {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CoreInkIndependentInputSource(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CoreInkIndependentInputSource, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CoreInkIndependentInputSource { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] @@ -425,7 +343,7 @@ impl CoreInkIndependentInputSource { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] pub fn PointerCursor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PointerCursor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -437,7 +355,7 @@ impl CoreInkIndependentInputSource { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Create(inkpresenter: P0) -> ::windows_core::Result @@ -460,19 +378,17 @@ impl ::windows_core::RuntimeType for CoreInkIndependentInputSource { } unsafe impl ::windows_core::Interface for CoreInkIndependentInputSource { type Vtable = ICoreInkIndependentInputSource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CoreInkIndependentInputSource { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CoreInkIndependentInputSource { const NAME: &'static str = "Windows.UI.Input.Inking.Core.CoreInkIndependentInputSource"; } -::windows_core::imp::interface_hierarchy!(CoreInkIndependentInputSource, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CoreInkIndependentInputSource {} unsafe impl ::core::marker::Sync for CoreInkIndependentInputSource {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CoreInkPresenterHost(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CoreInkPresenterHost, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CoreInkPresenterHost { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -501,10 +417,10 @@ impl CoreInkPresenterHost { #[cfg(feature = "UI_Composition")] pub fn SetRootVisual(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetRootVisual)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetRootVisual)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } } impl ::windows_core::RuntimeType for CoreInkPresenterHost { @@ -512,19 +428,17 @@ impl ::windows_core::RuntimeType for CoreInkPresenterHost { } unsafe impl ::windows_core::Interface for CoreInkPresenterHost { type Vtable = ICoreInkPresenterHost_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CoreInkPresenterHost { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CoreInkPresenterHost { const NAME: &'static str = "Windows.UI.Input.Inking.Core.CoreInkPresenterHost"; } -::windows_core::imp::interface_hierarchy!(CoreInkPresenterHost, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CoreInkPresenterHost {} unsafe impl ::core::marker::Sync for CoreInkPresenterHost {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CoreWetStrokeUpdateEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CoreWetStrokeUpdateEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CoreWetStrokeUpdateEventArgs { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -559,19 +473,17 @@ impl ::windows_core::RuntimeType for CoreWetStrokeUpdateEventArgs { } unsafe impl ::windows_core::Interface for CoreWetStrokeUpdateEventArgs { type Vtable = ICoreWetStrokeUpdateEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CoreWetStrokeUpdateEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CoreWetStrokeUpdateEventArgs { const NAME: &'static str = "Windows.UI.Input.Inking.Core.CoreWetStrokeUpdateEventArgs"; } -::windows_core::imp::interface_hierarchy!(CoreWetStrokeUpdateEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CoreWetStrokeUpdateEventArgs {} unsafe impl ::core::marker::Sync for CoreWetStrokeUpdateEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CoreWetStrokeUpdateSource(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CoreWetStrokeUpdateSource, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CoreWetStrokeUpdateSource { pub fn WetStrokeStarting(&self, handler: P0) -> ::windows_core::Result where @@ -670,14 +582,11 @@ impl ::windows_core::RuntimeType for CoreWetStrokeUpdateSource { } unsafe impl ::windows_core::Interface for CoreWetStrokeUpdateSource { type Vtable = ICoreWetStrokeUpdateSource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CoreWetStrokeUpdateSource { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CoreWetStrokeUpdateSource { const NAME: &'static str = "Windows.UI.Input.Inking.Core.CoreWetStrokeUpdateSource"; } -::windows_core::imp::interface_hierarchy!(CoreWetStrokeUpdateSource, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CoreWetStrokeUpdateSource {} unsafe impl ::core::marker::Sync for CoreWetStrokeUpdateSource {} #[repr(transparent)] 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 4e0626470b..98d06e91f3 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 @@ -1,28 +1,10 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPalmRejectionDelayZonePreview(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPalmRejectionDelayZonePreview { - type Vtable = IPalmRejectionDelayZonePreview_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPalmRejectionDelayZonePreview { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x62b496cb_539d_5343_a65f_41f5300ec70c); -} +::windows_core::imp::com_interface!(IPalmRejectionDelayZonePreview, IPalmRejectionDelayZonePreview_Vtbl, 0x62b496cb_539d_5343_a65f_41f5300ec70c); #[repr(C)] #[doc(hidden)] pub struct IPalmRejectionDelayZonePreview_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPalmRejectionDelayZonePreviewStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPalmRejectionDelayZonePreviewStatics { - type Vtable = IPalmRejectionDelayZonePreviewStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPalmRejectionDelayZonePreviewStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcdef5ee0_93d0_53a9_8f0e_9a379f8f7530); -} +::windows_core::imp::com_interface!(IPalmRejectionDelayZonePreviewStatics, IPalmRejectionDelayZonePreviewStatics_Vtbl, 0xcdef5ee0_93d0_53a9_8f0e_9a379f8f7530); #[repr(C)] #[doc(hidden)] pub struct IPalmRejectionDelayZonePreviewStatics_Vtbl { @@ -39,32 +21,34 @@ pub struct IPalmRejectionDelayZonePreviewStatics_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PalmRejectionDelayZonePreview(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PalmRejectionDelayZonePreview, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(PalmRejectionDelayZonePreview, super::super::super::super::Foundation::IClosable); impl PalmRejectionDelayZonePreview { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"UI_Composition\"`"] #[cfg(feature = "UI_Composition")] pub fn CreateForVisual(inputpanelvisual: P0, inputpanelrect: super::super::super::super::Foundation::Rect) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IPalmRejectionDelayZonePreviewStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateForVisual)(::windows_core::Interface::as_raw(this), inputpanelvisual.try_into_param()?.abi(), inputpanelrect, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateForVisual)(::windows_core::Interface::as_raw(this), inputpanelvisual.into_param().abi(), inputpanelrect, &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"UI_Composition\"`"] #[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::TryIntoParam, - P1: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { Self::IPalmRejectionDelayZonePreviewStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateForVisualWithViewportClip)(::windows_core::Interface::as_raw(this), inputpanelvisual.try_into_param()?.abi(), inputpanelrect, viewportvisual.try_into_param()?.abi(), viewportrect, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateForVisualWithViewportClip)(::windows_core::Interface::as_raw(this), inputpanelvisual.into_param().abi(), inputpanelrect, viewportvisual.into_param().abi(), viewportrect, &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -78,14 +62,10 @@ impl ::windows_core::RuntimeType for PalmRejectionDelayZonePreview { } unsafe impl ::windows_core::Interface for PalmRejectionDelayZonePreview { type Vtable = IPalmRejectionDelayZonePreview_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PalmRejectionDelayZonePreview { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PalmRejectionDelayZonePreview { const NAME: &'static str = "Windows.UI.Input.Inking.Preview.PalmRejectionDelayZonePreview"; } -::windows_core::imp::interface_hierarchy!(PalmRejectionDelayZonePreview, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for PalmRejectionDelayZonePreview {} unsafe impl ::core::marker::Send for PalmRejectionDelayZonePreview {} unsafe impl ::core::marker::Sync for PalmRejectionDelayZonePreview {} diff --git a/crates/libs/windows/src/Windows/UI/Input/Inking/impl.rs b/crates/libs/windows/src/Windows/UI/Input/Inking/impl.rs index 21b6eaeddd..915199d657 100644 --- a/crates/libs/windows/src/Windows/UI/Input/Inking/impl.rs +++ b/crates/libs/windows/src/Windows/UI/Input/Inking/impl.rs @@ -21,7 +21,7 @@ impl IInkPointFactory_Vtbl { Self { base__: ::windows_core::IInspectable_Vtbl::new::(), CreateInkPoint: CreateInkPoint:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IInkPresenterRulerFactory_Impl: Sized { @@ -47,7 +47,7 @@ impl IInkPresenterRulerFactory_Vtbl { Self { base__: ::windows_core::IInspectable_Vtbl::new::(), Create: Create:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Foundation_Numerics\"`"] @@ -159,7 +159,7 @@ impl IInkPresenterStencil_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -213,7 +213,7 @@ impl IInkRecognizerContainer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Storage_Streams\"`"] @@ -400,6 +400,6 @@ impl IInkStrokeContainer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 ab48ad280d..383dd5cd7a 100644 --- a/crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs @@ -7,16 +7,7 @@ pub mod Core; #[cfg(feature = "UI_Input_Inking_Preview")] #[doc = "Required features: `\"UI_Input_Inking_Preview\"`"] pub mod Preview; -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkDrawingAttributes(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInkDrawingAttributes { - type Vtable = IInkDrawingAttributes_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInkDrawingAttributes { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x97a2176c_6774_48ad_84f0_48f5a9be74f9); -} +::windows_core::imp::com_interface!(IInkDrawingAttributes, IInkDrawingAttributes_Vtbl, 0x97a2176c_6774_48ad_84f0_48f5a9be74f9); #[repr(C)] #[doc(hidden)] pub struct IInkDrawingAttributes_Vtbl { @@ -32,16 +23,7 @@ pub struct IInkDrawingAttributes_Vtbl { pub FitToCurve: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetFitToCurve: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkDrawingAttributes2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInkDrawingAttributes2 { - type Vtable = IInkDrawingAttributes2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInkDrawingAttributes2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7cab6508_8ec4_42fd_a5a5_e4b7d1d5316d); -} +::windows_core::imp::com_interface!(IInkDrawingAttributes2, IInkDrawingAttributes2_Vtbl, 0x7cab6508_8ec4_42fd_a5a5_e4b7d1d5316d); #[repr(C)] #[doc(hidden)] pub struct IInkDrawingAttributes2_Vtbl { @@ -57,16 +39,7 @@ pub struct IInkDrawingAttributes2_Vtbl { pub DrawAsHighlighter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetDrawAsHighlighter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkDrawingAttributes3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInkDrawingAttributes3 { - type Vtable = IInkDrawingAttributes3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInkDrawingAttributes3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x72020002_7d5b_4690_8af4_e664cbe2b74f); -} +::windows_core::imp::com_interface!(IInkDrawingAttributes3, IInkDrawingAttributes3_Vtbl, 0x72020002_7d5b_4690_8af4_e664cbe2b74f); #[repr(C)] #[doc(hidden)] pub struct IInkDrawingAttributes3_Vtbl { @@ -74,16 +47,7 @@ pub struct IInkDrawingAttributes3_Vtbl { pub Kind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut InkDrawingAttributesKind) -> ::windows_core::HRESULT, pub PencilProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkDrawingAttributes4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInkDrawingAttributes4 { - type Vtable = IInkDrawingAttributes4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInkDrawingAttributes4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xef65dc25_9f19_456d_91a3_bc3a3d91c5fb); -} +::windows_core::imp::com_interface!(IInkDrawingAttributes4, IInkDrawingAttributes4_Vtbl, 0xef65dc25_9f19_456d_91a3_bc3a3d91c5fb); #[repr(C)] #[doc(hidden)] pub struct IInkDrawingAttributes4_Vtbl { @@ -91,32 +55,14 @@ pub struct IInkDrawingAttributes4_Vtbl { pub IgnoreTilt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetIgnoreTilt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkDrawingAttributes5(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInkDrawingAttributes5 { - type Vtable = IInkDrawingAttributes5_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInkDrawingAttributes5 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd11aa0bb_0775_4852_ae64_41143a7ae6c9); -} +::windows_core::imp::com_interface!(IInkDrawingAttributes5, IInkDrawingAttributes5_Vtbl, 0xd11aa0bb_0775_4852_ae64_41143a7ae6c9); #[repr(C)] #[doc(hidden)] pub struct IInkDrawingAttributes5_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ModelerAttributes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkDrawingAttributesPencilProperties(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInkDrawingAttributesPencilProperties { - type Vtable = IInkDrawingAttributesPencilProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInkDrawingAttributesPencilProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4f2534cb_2d86_41bb_b0e8_e4c2a0253c52); -} +::windows_core::imp::com_interface!(IInkDrawingAttributesPencilProperties, IInkDrawingAttributesPencilProperties_Vtbl, 0x4f2534cb_2d86_41bb_b0e8_e4c2a0253c52); #[repr(C)] #[doc(hidden)] pub struct IInkDrawingAttributesPencilProperties_Vtbl { @@ -124,32 +70,14 @@ pub struct IInkDrawingAttributesPencilProperties_Vtbl { pub Opacity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows_core::HRESULT, pub SetOpacity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f64) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkDrawingAttributesStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInkDrawingAttributesStatics { - type Vtable = IInkDrawingAttributesStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInkDrawingAttributesStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf731e03f_1a65_4862_96cb_6e1665e17f6d); -} +::windows_core::imp::com_interface!(IInkDrawingAttributesStatics, IInkDrawingAttributesStatics_Vtbl, 0xf731e03f_1a65_4862_96cb_6e1665e17f6d); #[repr(C)] #[doc(hidden)] pub struct IInkDrawingAttributesStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateForPencil: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkInputConfiguration(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInkInputConfiguration { - type Vtable = IInkInputConfiguration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInkInputConfiguration { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x93a68dc4_0b7b_49d7_b34f_9901e524dcf2); -} +::windows_core::imp::com_interface!(IInkInputConfiguration, IInkInputConfiguration_Vtbl, 0x93a68dc4_0b7b_49d7_b34f_9901e524dcf2); #[repr(C)] #[doc(hidden)] pub struct IInkInputConfiguration_Vtbl { @@ -159,16 +87,7 @@ pub struct IInkInputConfiguration_Vtbl { pub IsEraserInputEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetIsEraserInputEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkInputConfiguration2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInkInputConfiguration2 { - type Vtable = IInkInputConfiguration2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInkInputConfiguration2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6ac2272e_81b4_5cc4_a36d_d057c387dfda); -} +::windows_core::imp::com_interface!(IInkInputConfiguration2, IInkInputConfiguration2_Vtbl, 0x6ac2272e_81b4_5cc4_a36d_d057c387dfda); #[repr(C)] #[doc(hidden)] pub struct IInkInputConfiguration2_Vtbl { @@ -176,16 +95,7 @@ pub struct IInkInputConfiguration2_Vtbl { pub IsPenHapticFeedbackEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetIsPenHapticFeedbackEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkInputProcessingConfiguration(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInkInputProcessingConfiguration { - type Vtable = IInkInputProcessingConfiguration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInkInputProcessingConfiguration { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2778d85e_33ca_4b06_a6d3_ac3945116d37); -} +::windows_core::imp::com_interface!(IInkInputProcessingConfiguration, IInkInputProcessingConfiguration_Vtbl, 0x2778d85e_33ca_4b06_a6d3_ac3945116d37); #[repr(C)] #[doc(hidden)] pub struct IInkInputProcessingConfiguration_Vtbl { @@ -195,16 +105,7 @@ pub struct IInkInputProcessingConfiguration_Vtbl { pub RightDragAction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut InkInputRightDragAction) -> ::windows_core::HRESULT, pub SetRightDragAction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: InkInputRightDragAction) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkManager(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInkManager { - type Vtable = IInkManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInkManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4744737d_671b_4163_9c95_4e8d7a035fe1); -} +::windows_core::imp::com_interface!(IInkManager, IInkManager_Vtbl, 0x4744737d_671b_4163_9c95_4e8d7a035fe1); #[repr(C)] #[doc(hidden)] pub struct IInkManager_Vtbl { @@ -220,16 +121,7 @@ pub struct IInkManager_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] RecognizeAsync2: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkModelerAttributes(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInkModelerAttributes { - type Vtable = IInkModelerAttributes_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInkModelerAttributes { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbad31f27_0cd9_4bfd_b6f3_9e03ba8d7454); -} +::windows_core::imp::com_interface!(IInkModelerAttributes, IInkModelerAttributes_Vtbl, 0xbad31f27_0cd9_4bfd_b6f3_9e03ba8d7454); #[repr(C)] #[doc(hidden)] pub struct IInkModelerAttributes_Vtbl { @@ -239,16 +131,7 @@ pub struct IInkModelerAttributes_Vtbl { pub ScalingFactor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows_core::HRESULT, pub SetScalingFactor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkModelerAttributes2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInkModelerAttributes2 { - type Vtable = IInkModelerAttributes2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInkModelerAttributes2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x86d1d09a_4ef8_5e25_b7bc_b65424f16bb3); -} +::windows_core::imp::com_interface!(IInkModelerAttributes2, IInkModelerAttributes2_Vtbl, 0x86d1d09a_4ef8_5e25_b7bc_b65424f16bb3); #[repr(C)] #[doc(hidden)] pub struct IInkModelerAttributes2_Vtbl { @@ -256,16 +139,7 @@ pub struct IInkModelerAttributes2_Vtbl { pub UseVelocityBasedPressure: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetUseVelocityBasedPressure: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkPoint(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInkPoint { - type Vtable = IInkPoint_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInkPoint { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9f87272b_858c_46a5_9b41_d195970459fd); -} +::windows_core::imp::com_interface!(IInkPoint, IInkPoint_Vtbl, 0x9f87272b_858c_46a5_9b41_d195970459fd); #[repr(C)] #[doc(hidden)] pub struct IInkPoint_Vtbl { @@ -273,16 +147,7 @@ pub struct IInkPoint_Vtbl { pub Position: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::Point) -> ::windows_core::HRESULT, pub Pressure: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkPoint2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInkPoint2 { - type Vtable = IInkPoint2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInkPoint2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfba9c3f7_ae56_4d5c_bd2f_0ac45f5e4af9); -} +::windows_core::imp::com_interface!(IInkPoint2, IInkPoint2_Vtbl, 0xfba9c3f7_ae56_4d5c_bd2f_0ac45f5e4af9); #[repr(C)] #[doc(hidden)] pub struct IInkPoint2_Vtbl { @@ -291,9 +156,8 @@ pub struct IInkPoint2_Vtbl { pub TiltY: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows_core::HRESULT, pub Timestamp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkPointFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IInkPointFactory, IInkPointFactory_Vtbl, 0x29e5d51c_c98f_405d_9f3b_e53e31068d4d); +::windows_core::imp::interface_hierarchy!(IInkPointFactory, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IInkPointFactory { pub fn CreateInkPoint(&self, position: super::super::super::Foundation::Point, pressure: f32) -> ::windows_core::Result { let this = self; @@ -303,48 +167,23 @@ impl IInkPointFactory { } } } -::windows_core::imp::interface_hierarchy!(IInkPointFactory, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IInkPointFactory { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IInkPointFactory { - type Vtable = IInkPointFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInkPointFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x29e5d51c_c98f_405d_9f3b_e53e31068d4d); -} #[repr(C)] #[doc(hidden)] pub struct IInkPointFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateInkPoint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, position: super::super::super::Foundation::Point, pressure: f32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkPointFactory2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInkPointFactory2 { - type Vtable = IInkPointFactory2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInkPointFactory2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe0145e85_daff_45f2_ad69_050d8256a209); -} +::windows_core::imp::com_interface!(IInkPointFactory2, IInkPointFactory2_Vtbl, 0xe0145e85_daff_45f2_ad69_050d8256a209); #[repr(C)] #[doc(hidden)] pub struct IInkPointFactory2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateInkPointWithTiltAndTimestamp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, position: super::super::super::Foundation::Point, pressure: f32, tiltx: f32, tilty: f32, timestamp: u64, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkPresenter(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInkPresenter { - type Vtable = IInkPresenter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInkPresenter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa69b70e2_887b_458f_b173_4fe4438930a3); -} +::windows_core::imp::com_interface!(IInkPresenter, IInkPresenter_Vtbl, 0xa69b70e2_887b_458f_b173_4fe4438930a3); #[repr(C)] #[doc(hidden)] pub struct IInkPresenter_Vtbl { @@ -373,16 +212,7 @@ pub struct IInkPresenter_Vtbl { pub StrokesErased: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveStrokesErased: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cookie: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkPresenter2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInkPresenter2 { - type Vtable = IInkPresenter2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInkPresenter2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcf53e612_9a34_11e6_9f33_a24fc0d9649c); -} +::windows_core::imp::com_interface!(IInkPresenter2, IInkPresenter2_Vtbl, 0xcf53e612_9a34_11e6_9f33_a24fc0d9649c); #[repr(C)] #[doc(hidden)] pub struct IInkPresenter2_Vtbl { @@ -390,32 +220,14 @@ pub struct IInkPresenter2_Vtbl { pub HighContrastAdjustment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut InkHighContrastAdjustment) -> ::windows_core::HRESULT, pub SetHighContrastAdjustment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: InkHighContrastAdjustment) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkPresenter3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInkPresenter3 { - type Vtable = IInkPresenter3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInkPresenter3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51e1ce89_d37d_4a90_83fc_7f5e9dfbf217); -} +::windows_core::imp::com_interface!(IInkPresenter3, IInkPresenter3_Vtbl, 0x51e1ce89_d37d_4a90_83fc_7f5e9dfbf217); #[repr(C)] #[doc(hidden)] pub struct IInkPresenter3_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub InputConfiguration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkPresenterProtractor(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInkPresenterProtractor { - type Vtable = IInkPresenterProtractor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInkPresenterProtractor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7de3f2aa_ef6c_4e91_a73b_5b70d56fbd17); -} +::windows_core::imp::com_interface!(IInkPresenterProtractor, IInkPresenterProtractor_Vtbl, 0x7de3f2aa_ef6c_4e91_a73b_5b70d56fbd17); #[repr(C)] #[doc(hidden)] pub struct IInkPresenterProtractor_Vtbl { @@ -435,32 +247,14 @@ pub struct IInkPresenterProtractor_Vtbl { pub AccentColor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Color) -> ::windows_core::HRESULT, pub SetAccentColor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::Color) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkPresenterProtractorFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInkPresenterProtractorFactory { - type Vtable = IInkPresenterProtractorFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInkPresenterProtractorFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x320103c9_68fa_47e9_8127_8370711fc46c); -} +::windows_core::imp::com_interface!(IInkPresenterProtractorFactory, IInkPresenterProtractorFactory_Vtbl, 0x320103c9_68fa_47e9_8127_8370711fc46c); #[repr(C)] #[doc(hidden)] pub struct IInkPresenterProtractorFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, inkpresenter: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkPresenterRuler(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInkPresenterRuler { - type Vtable = IInkPresenterRuler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInkPresenterRuler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6cda7d5a_dec7_4dd7_877a_2133f183d48a); -} +::windows_core::imp::com_interface!(IInkPresenterRuler, IInkPresenterRuler_Vtbl, 0x6cda7d5a_dec7_4dd7_877a_2133f183d48a); #[repr(C)] #[doc(hidden)] pub struct IInkPresenterRuler_Vtbl { @@ -470,16 +264,7 @@ pub struct IInkPresenterRuler_Vtbl { pub Width: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows_core::HRESULT, pub SetWidth: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f64) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkPresenterRuler2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInkPresenterRuler2 { - type Vtable = IInkPresenterRuler2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInkPresenterRuler2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x45130dc1_bc61_44d4_a423_54712ae671c4); -} +::windows_core::imp::com_interface!(IInkPresenterRuler2, IInkPresenterRuler2_Vtbl, 0x45130dc1_bc61_44d4_a423_54712ae671c4); #[repr(C)] #[doc(hidden)] pub struct IInkPresenterRuler2_Vtbl { @@ -489,9 +274,8 @@ pub struct IInkPresenterRuler2_Vtbl { pub IsCompassVisible: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetIsCompassVisible: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkPresenterRulerFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IInkPresenterRulerFactory, IInkPresenterRulerFactory_Vtbl, 0x34361beb_9001_4a4b_a690_69dbaf63e501); +::windows_core::imp::interface_hierarchy!(IInkPresenterRulerFactory, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IInkPresenterRulerFactory { pub fn Create(&self, inkpresenter: P0) -> ::windows_core::Result where @@ -504,25 +288,17 @@ impl IInkPresenterRulerFactory { } } } -::windows_core::imp::interface_hierarchy!(IInkPresenterRulerFactory, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IInkPresenterRulerFactory { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IInkPresenterRulerFactory { - type Vtable = IInkPresenterRulerFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInkPresenterRulerFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x34361beb_9001_4a4b_a690_69dbaf63e501); -} #[repr(C)] #[doc(hidden)] pub struct IInkPresenterRulerFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, inkpresenter: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkPresenterStencil(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IInkPresenterStencil, IInkPresenterStencil_Vtbl, 0x30d12d6d_3e06_4d02_b116_277fb5d8addc); +::windows_core::imp::interface_hierarchy!(IInkPresenterStencil, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IInkPresenterStencil { pub fn Kind(&self) -> ::windows_core::Result { let this = self; @@ -580,16 +356,9 @@ impl IInkPresenterStencil { unsafe { (::windows_core::Interface::vtable(this).SetTransform)(::windows_core::Interface::as_raw(this), value).ok() } } } -::windows_core::imp::interface_hierarchy!(IInkPresenterStencil, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IInkPresenterStencil { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IInkPresenterStencil { - type Vtable = IInkPresenterStencil_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInkPresenterStencil { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x30d12d6d_3e06_4d02_b116_277fb5d8addc); -} #[repr(C)] #[doc(hidden)] pub struct IInkPresenterStencil_Vtbl { @@ -610,16 +379,7 @@ pub struct IInkPresenterStencil_Vtbl { #[cfg(not(feature = "Foundation_Numerics"))] SetTransform: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkRecognitionResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInkRecognitionResult { - type Vtable = IInkRecognitionResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInkRecognitionResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x36461a94_5068_40ef_8a05_2c2fb60908a2); -} +::windows_core::imp::com_interface!(IInkRecognitionResult, IInkRecognitionResult_Vtbl, 0x36461a94_5068_40ef_8a05_2c2fb60908a2); #[repr(C)] #[doc(hidden)] pub struct IInkRecognitionResult_Vtbl { @@ -634,25 +394,15 @@ pub struct IInkRecognitionResult_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetStrokes: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkRecognizer(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInkRecognizer { - type Vtable = IInkRecognizer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInkRecognizer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x077ccea3_904d_442a_b151_aaca3631c43b); -} +::windows_core::imp::com_interface!(IInkRecognizer, IInkRecognizer_Vtbl, 0x077ccea3_904d_442a_b151_aaca3631c43b); #[repr(C)] #[doc(hidden)] pub struct IInkRecognizer_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkRecognizerContainer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IInkRecognizerContainer, IInkRecognizerContainer_Vtbl, 0xa74d9a31_8047_4698_a912_f82a5085012f); +::windows_core::imp::interface_hierarchy!(IInkRecognizerContainer, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IInkRecognizerContainer { pub fn SetDefaultRecognizer(&self, recognizer: P0) -> ::windows_core::Result<()> where @@ -683,16 +433,9 @@ impl IInkRecognizerContainer { } } } -::windows_core::imp::interface_hierarchy!(IInkRecognizerContainer, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IInkRecognizerContainer { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IInkRecognizerContainer { - type Vtable = IInkRecognizerContainer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInkRecognizerContainer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa74d9a31_8047_4698_a912_f82a5085012f); -} #[repr(C)] #[doc(hidden)] pub struct IInkRecognizerContainer_Vtbl { @@ -707,16 +450,7 @@ pub struct IInkRecognizerContainer_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetRecognizers: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkStroke(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInkStroke { - type Vtable = IInkStroke_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInkStroke { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x15144d60_cce3_4fcf_9d52_11518ab6afd4); -} +::windows_core::imp::com_interface!(IInkStroke, IInkStroke_Vtbl, 0x15144d60_cce3_4fcf_9d52_11518ab6afd4); #[repr(C)] #[doc(hidden)] pub struct IInkStroke_Vtbl { @@ -733,16 +467,7 @@ pub struct IInkStroke_Vtbl { GetRenderingSegments: usize, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkStroke2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInkStroke2 { - type Vtable = IInkStroke2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInkStroke2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5db9e4f4_bafa_4de1_89d3_201b1ed7d89b); -} +::windows_core::imp::com_interface!(IInkStroke2, IInkStroke2_Vtbl, 0x5db9e4f4_bafa_4de1_89d3_201b1ed7d89b); #[repr(C)] #[doc(hidden)] pub struct IInkStroke2_Vtbl { @@ -760,16 +485,7 @@ pub struct IInkStroke2_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetInkPoints: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkStroke3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInkStroke3 { - type Vtable = IInkStroke3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInkStroke3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4a807374_9499_411d_a1c4_68855d03d65f); -} +::windows_core::imp::com_interface!(IInkStroke3, IInkStroke3_Vtbl, 0x4a807374_9499_411d_a1c4_68855d03d65f); #[repr(C)] #[doc(hidden)] pub struct IInkStroke3_Vtbl { @@ -780,32 +496,14 @@ pub struct IInkStroke3_Vtbl { pub StrokeDuration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetStrokeDuration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkStroke4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInkStroke4 { - type Vtable = IInkStroke4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInkStroke4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcd5b62e5_b6e9_5b91_a577_1921d2348690); -} +::windows_core::imp::com_interface!(IInkStroke4, IInkStroke4_Vtbl, 0xcd5b62e5_b6e9_5b91_a577_1921d2348690); #[repr(C)] #[doc(hidden)] pub struct IInkStroke4_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub PointerId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkStrokeBuilder(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInkStrokeBuilder { - type Vtable = IInkStrokeBuilder_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInkStrokeBuilder { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x82bbd1dc_1c63_41dc_9e07_4b4a70ced801); -} +::windows_core::imp::com_interface!(IInkStrokeBuilder, IInkStrokeBuilder_Vtbl, 0x82bbd1dc_1c63_41dc_9e07_4b4a70ced801); #[repr(C)] #[doc(hidden)] pub struct IInkStrokeBuilder_Vtbl { @@ -819,16 +517,7 @@ pub struct IInkStrokeBuilder_Vtbl { CreateStroke: usize, pub SetDefaultDrawingAttributes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, drawingattributes: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkStrokeBuilder2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInkStrokeBuilder2 { - type Vtable = IInkStrokeBuilder2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInkStrokeBuilder2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbd82bc27_731f_4cbc_bbbf_6d468044f1e5); -} +::windows_core::imp::com_interface!(IInkStrokeBuilder2, IInkStrokeBuilder2_Vtbl, 0xbd82bc27_731f_4cbc_bbbf_6d468044f1e5); #[repr(C)] #[doc(hidden)] pub struct IInkStrokeBuilder2_Vtbl { @@ -838,16 +527,7 @@ pub struct IInkStrokeBuilder2_Vtbl { #[cfg(not(all(feature = "Foundation_Collections", feature = "Foundation_Numerics")))] CreateStrokeFromInkPoints: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkStrokeBuilder3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInkStrokeBuilder3 { - type Vtable = IInkStrokeBuilder3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInkStrokeBuilder3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb2c71fcd_5472_46b1_a81d_c37a3d169441); -} +::windows_core::imp::com_interface!(IInkStrokeBuilder3, IInkStrokeBuilder3_Vtbl, 0xb2c71fcd_5472_46b1_a81d_c37a3d169441); #[repr(C)] #[doc(hidden)] pub struct IInkStrokeBuilder3_Vtbl { @@ -857,9 +537,8 @@ pub struct IInkStrokeBuilder3_Vtbl { #[cfg(not(all(feature = "Foundation_Collections", feature = "Foundation_Numerics")))] CreateStrokeFromInkPoints: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkStrokeContainer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IInkStrokeContainer, IInkStrokeContainer_Vtbl, 0x22accbc6_faa9_4f14_b68c_f6cee670ae16); +::windows_core::imp::interface_hierarchy!(IInkStrokeContainer, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IInkStrokeContainer { pub fn BoundingRect(&self) -> ::windows_core::Result { let this = self; @@ -893,12 +572,12 @@ impl IInkStrokeContainer { #[cfg(feature = "Foundation_Collections")] pub fn SelectWithPolyLine(&self, polyline: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).SelectWithPolyLine)(::windows_core::Interface::as_raw(this), polyline.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SelectWithPolyLine)(::windows_core::Interface::as_raw(this), polyline.into_param().abi(), &mut result__).from_abi(result__) } } pub fn SelectWithLine(&self, from: super::super::super::Foundation::Point, to: super::super::super::Foundation::Point) -> ::windows_core::Result { @@ -930,34 +609,34 @@ impl IInkStrokeContainer { #[cfg(feature = "Storage_Streams")] pub fn LoadAsync(&self, inputstream: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).LoadAsync)(::windows_core::Interface::as_raw(this), inputstream.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).LoadAsync)(::windows_core::Interface::as_raw(this), inputstream.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn SaveAsync(&self, outputstream: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).SaveAsync)(::windows_core::Interface::as_raw(this), outputstream.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SaveAsync)(::windows_core::Interface::as_raw(this), outputstream.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn UpdateRecognitionResults(&self, recognitionresults: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).UpdateRecognitionResults)(::windows_core::Interface::as_raw(this), recognitionresults.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).UpdateRecognitionResults)(::windows_core::Interface::as_raw(this), recognitionresults.into_param().abi()).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -978,16 +657,9 @@ impl IInkStrokeContainer { } } } -::windows_core::imp::interface_hierarchy!(IInkStrokeContainer, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IInkStrokeContainer { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IInkStrokeContainer { - type Vtable = IInkStrokeContainer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInkStrokeContainer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x22accbc6_faa9_4f14_b68c_f6cee670ae16); -} #[repr(C)] #[doc(hidden)] pub struct IInkStrokeContainer_Vtbl { @@ -1025,16 +697,7 @@ pub struct IInkStrokeContainer_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetRecognitionResults: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkStrokeContainer2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInkStrokeContainer2 { - type Vtable = IInkStrokeContainer2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInkStrokeContainer2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8901d364_da36_4bcf_9e5c_d195825995b4); -} +::windows_core::imp::com_interface!(IInkStrokeContainer2, IInkStrokeContainer2_Vtbl, 0x8901d364_da36_4bcf_9e5c_d195825995b4); #[repr(C)] #[doc(hidden)] pub struct IInkStrokeContainer2_Vtbl { @@ -1045,16 +708,7 @@ pub struct IInkStrokeContainer2_Vtbl { AddStrokes: usize, pub Clear: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkStrokeContainer3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInkStrokeContainer3 { - type Vtable = IInkStrokeContainer3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInkStrokeContainer3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3d07bea5_baea_4c82_a719_7b83da1067d2); -} +::windows_core::imp::com_interface!(IInkStrokeContainer3, IInkStrokeContainer3_Vtbl, 0x3d07bea5_baea_4c82_a719_7b83da1067d2); #[repr(C)] #[doc(hidden)] pub struct IInkStrokeContainer3_Vtbl { @@ -1065,16 +719,7 @@ pub struct IInkStrokeContainer3_Vtbl { SaveWithFormatAsync: usize, pub GetStrokeById: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: u32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkStrokeInput(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInkStrokeInput { - type Vtable = IInkStrokeInput_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInkStrokeInput { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcf2ffe7b_5e10_43c6_a080_88f26e1dc67d); -} +::windows_core::imp::com_interface!(IInkStrokeInput, IInkStrokeInput_Vtbl, 0xcf2ffe7b_5e10_43c6_a080_88f26e1dc67d); #[repr(C)] #[doc(hidden)] pub struct IInkStrokeInput_Vtbl { @@ -1101,16 +746,7 @@ pub struct IInkStrokeInput_Vtbl { pub RemoveStrokeCanceled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cookie: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub InkPresenter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkStrokeRenderingSegment(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInkStrokeRenderingSegment { - type Vtable = IInkStrokeRenderingSegment_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInkStrokeRenderingSegment { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x68510f1f_88e3_477a_a2fa_569f5f1f9bd5); -} +::windows_core::imp::com_interface!(IInkStrokeRenderingSegment, IInkStrokeRenderingSegment_Vtbl, 0x68510f1f_88e3_477a_a2fa_569f5f1f9bd5); #[repr(C)] #[doc(hidden)] pub struct IInkStrokeRenderingSegment_Vtbl { @@ -1123,16 +759,7 @@ pub struct IInkStrokeRenderingSegment_Vtbl { pub TiltY: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows_core::HRESULT, pub Twist: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkStrokesCollectedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInkStrokesCollectedEventArgs { - type Vtable = IInkStrokesCollectedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInkStrokesCollectedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc4f3f229_1938_495c_b4d9_6de4b08d4811); -} +::windows_core::imp::com_interface!(IInkStrokesCollectedEventArgs, IInkStrokesCollectedEventArgs_Vtbl, 0xc4f3f229_1938_495c_b4d9_6de4b08d4811); #[repr(C)] #[doc(hidden)] pub struct IInkStrokesCollectedEventArgs_Vtbl { @@ -1142,16 +769,7 @@ pub struct IInkStrokesCollectedEventArgs_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Strokes: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkStrokesErasedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInkStrokesErasedEventArgs { - type Vtable = IInkStrokesErasedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInkStrokesErasedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa4216a22_1503_4ebf_8ff5_2de84584a8aa); -} +::windows_core::imp::com_interface!(IInkStrokesErasedEventArgs, IInkStrokesErasedEventArgs_Vtbl, 0xa4216a22_1503_4ebf_8ff5_2de84584a8aa); #[repr(C)] #[doc(hidden)] pub struct IInkStrokesErasedEventArgs_Vtbl { @@ -1161,16 +779,7 @@ pub struct IInkStrokesErasedEventArgs_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Strokes: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkSynchronizer(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInkSynchronizer { - type Vtable = IInkSynchronizer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInkSynchronizer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9b9ea160_ae9b_45f9_8407_4b493b163661); -} +::windows_core::imp::com_interface!(IInkSynchronizer, IInkSynchronizer_Vtbl, 0x9b9ea160_ae9b_45f9_8407_4b493b163661); #[repr(C)] #[doc(hidden)] pub struct IInkSynchronizer_Vtbl { @@ -1181,16 +790,7 @@ pub struct IInkSynchronizer_Vtbl { BeginDry: usize, pub EndDry: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkUnprocessedInput(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInkUnprocessedInput { - type Vtable = IInkUnprocessedInput_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInkUnprocessedInput { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdb4445e0_8398_4921_ac3b_ab978c5ba256); -} +::windows_core::imp::com_interface!(IInkUnprocessedInput, IInkUnprocessedInput_Vtbl, 0xdb4445e0_8398_4921_ac3b_ab978c5ba256); #[repr(C)] #[doc(hidden)] pub struct IInkUnprocessedInput_Vtbl { @@ -1232,16 +832,7 @@ pub struct IInkUnprocessedInput_Vtbl { pub RemovePointerLost: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cookie: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub InkPresenter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPenAndInkSettings(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPenAndInkSettings { - type Vtable = IPenAndInkSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPenAndInkSettings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbc2ceb8f_0066_44a8_bb7a_b839b3deb8f5); -} +::windows_core::imp::com_interface!(IPenAndInkSettings, IPenAndInkSettings_Vtbl, 0xbc2ceb8f_0066_44a8_bb7a_b839b3deb8f5); #[repr(C)] #[doc(hidden)] pub struct IPenAndInkSettings_Vtbl { @@ -1253,32 +844,14 @@ pub struct IPenAndInkSettings_Vtbl { pub UserConsentsToHandwritingTelemetryCollection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub IsTouchHandwritingEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPenAndInkSettings2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPenAndInkSettings2 { - type Vtable = IPenAndInkSettings2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPenAndInkSettings2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3262da53_1f44_55e2_9929_ebf77e5481b8); -} +::windows_core::imp::com_interface!(IPenAndInkSettings2, IPenAndInkSettings2_Vtbl, 0x3262da53_1f44_55e2_9929_ebf77e5481b8); #[repr(C)] #[doc(hidden)] pub struct IPenAndInkSettings2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub SetPenHandedness: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: PenHandedness) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPenAndInkSettingsStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPenAndInkSettingsStatics { - type Vtable = IPenAndInkSettingsStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPenAndInkSettingsStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xed6dd036_5708_5c3c_96db_f2f552eab641); -} +::windows_core::imp::com_interface!(IPenAndInkSettingsStatics, IPenAndInkSettingsStatics_Vtbl, 0xed6dd036_5708_5c3c_96db_f2f552eab641); #[repr(C)] #[doc(hidden)] pub struct IPenAndInkSettingsStatics_Vtbl { @@ -1288,6 +861,7 @@ pub struct IPenAndInkSettingsStatics_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct InkDrawingAttributes(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(InkDrawingAttributes, ::windows_core::IUnknown, ::windows_core::IInspectable); impl InkDrawingAttributes { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1354,7 +928,7 @@ impl InkDrawingAttributes { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn PenTipTransform(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PenTipTransform)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1363,47 +937,47 @@ impl InkDrawingAttributes { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetPenTipTransform(&self, value: super::super::super::Foundation::Numerics::Matrix3x2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetPenTipTransform)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn DrawAsHighlighter(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DrawAsHighlighter)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDrawAsHighlighter(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDrawAsHighlighter)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PencilProperties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PencilProperties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IgnoreTilt(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IgnoreTilt)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIgnoreTilt(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIgnoreTilt)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn ModelerAttributes(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ModelerAttributes)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1426,19 +1000,17 @@ impl ::windows_core::RuntimeType for InkDrawingAttributes { } unsafe impl ::windows_core::Interface for InkDrawingAttributes { type Vtable = IInkDrawingAttributes_Vtbl; -} -unsafe impl ::windows_core::ComInterface for InkDrawingAttributes { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for InkDrawingAttributes { const NAME: &'static str = "Windows.UI.Input.Inking.InkDrawingAttributes"; } -::windows_core::imp::interface_hierarchy!(InkDrawingAttributes, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for InkDrawingAttributes {} unsafe impl ::core::marker::Sync for InkDrawingAttributes {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct InkDrawingAttributesPencilProperties(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(InkDrawingAttributesPencilProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); impl InkDrawingAttributesPencilProperties { pub fn Opacity(&self) -> ::windows_core::Result { let this = self; @@ -1457,19 +1029,17 @@ impl ::windows_core::RuntimeType for InkDrawingAttributesPencilProperties { } unsafe impl ::windows_core::Interface for InkDrawingAttributesPencilProperties { type Vtable = IInkDrawingAttributesPencilProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for InkDrawingAttributesPencilProperties { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for InkDrawingAttributesPencilProperties { const NAME: &'static str = "Windows.UI.Input.Inking.InkDrawingAttributesPencilProperties"; } -::windows_core::imp::interface_hierarchy!(InkDrawingAttributesPencilProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for InkDrawingAttributesPencilProperties {} unsafe impl ::core::marker::Sync for InkDrawingAttributesPencilProperties {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct InkInputConfiguration(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(InkInputConfiguration, ::windows_core::IUnknown, ::windows_core::IInspectable); impl InkInputConfiguration { pub fn IsPrimaryBarrelButtonInputEnabled(&self) -> ::windows_core::Result { let this = self; @@ -1494,14 +1064,14 @@ impl InkInputConfiguration { unsafe { (::windows_core::Interface::vtable(this).SetIsEraserInputEnabled)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsPenHapticFeedbackEnabled(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsPenHapticFeedbackEnabled)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsPenHapticFeedbackEnabled(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsPenHapticFeedbackEnabled)(::windows_core::Interface::as_raw(this), value).ok() } } } @@ -1510,19 +1080,17 @@ impl ::windows_core::RuntimeType for InkInputConfiguration { } unsafe impl ::windows_core::Interface for InkInputConfiguration { type Vtable = IInkInputConfiguration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for InkInputConfiguration { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for InkInputConfiguration { const NAME: &'static str = "Windows.UI.Input.Inking.InkInputConfiguration"; } -::windows_core::imp::interface_hierarchy!(InkInputConfiguration, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for InkInputConfiguration {} unsafe impl ::core::marker::Sync for InkInputConfiguration {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct InkInputProcessingConfiguration(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(InkInputProcessingConfiguration, ::windows_core::IUnknown, ::windows_core::IInspectable); impl InkInputProcessingConfiguration { pub fn Mode(&self) -> ::windows_core::Result { let this = self; @@ -1552,19 +1120,18 @@ impl ::windows_core::RuntimeType for InkInputProcessingConfiguration { } unsafe impl ::windows_core::Interface for InkInputProcessingConfiguration { type Vtable = IInkInputProcessingConfiguration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for InkInputProcessingConfiguration { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for InkInputProcessingConfiguration { const NAME: &'static str = "Windows.UI.Input.Inking.InkInputProcessingConfiguration"; } -::windows_core::imp::interface_hierarchy!(InkInputProcessingConfiguration, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for InkInputProcessingConfiguration {} unsafe impl ::core::marker::Sync for InkInputProcessingConfiguration {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct InkManager(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(InkManager, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(InkManager, IInkRecognizerContainer, IInkStrokeContainer); impl InkManager { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1631,7 +1198,7 @@ impl InkManager { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -1640,7 +1207,7 @@ impl InkManager { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -1649,14 +1216,14 @@ impl InkManager { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetRecognizers(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetRecognizers)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn BoundingRect(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).BoundingRect)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1666,18 +1233,18 @@ impl InkManager { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn DeleteSelected(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DeleteSelected)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn MoveSelected(&self, translation: super::super::super::Foundation::Point) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MoveSelected)(::windows_core::Interface::as_raw(this), translation, &mut result__).from_abi(result__) @@ -1687,34 +1254,34 @@ impl InkManager { #[cfg(feature = "Foundation_Collections")] pub fn SelectWithPolyLine(&self, polyline: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SelectWithPolyLine)(::windows_core::Interface::as_raw(this), polyline.into_param().abi(), &mut result__).from_abi(result__) } } pub fn SelectWithLine(&self, from: super::super::super::Foundation::Point, to: super::super::super::Foundation::Point) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SelectWithLine)(::windows_core::Interface::as_raw(this), from, to, &mut result__).from_abi(result__) } } pub fn CopySelectedToClipboard(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).CopySelectedToClipboard)(::windows_core::Interface::as_raw(this)).ok() } } pub fn PasteFromClipboard(&self, position: super::super::super::Foundation::Point) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PasteFromClipboard)(::windows_core::Interface::as_raw(this), position, &mut result__).from_abi(result__) } } pub fn CanPasteFromClipboard(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CanPasteFromClipboard)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1724,39 +1291,39 @@ impl InkManager { #[cfg(feature = "Storage_Streams")] pub fn LoadAsync(&self, inputstream: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).LoadAsync)(::windows_core::Interface::as_raw(this), inputstream.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn SaveAsync(&self, outputstream: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SaveAsync)(::windows_core::Interface::as_raw(this), outputstream.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn UpdateRecognitionResults(&self, recognitionresults: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).UpdateRecognitionResults)(::windows_core::Interface::as_raw(this), recognitionresults.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetStrokes(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetStrokes)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1765,7 +1332,7 @@ impl InkManager { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetRecognitionResults(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetRecognitionResults)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1777,19 +1344,15 @@ impl ::windows_core::RuntimeType for InkManager { } unsafe impl ::windows_core::Interface for InkManager { type Vtable = IInkManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for InkManager { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for InkManager { const NAME: &'static str = "Windows.UI.Input.Inking.InkManager"; } -::windows_core::imp::interface_hierarchy!(InkManager, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for InkManager {} -impl ::windows_core::CanTryInto for InkManager {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct InkModelerAttributes(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(InkModelerAttributes, ::windows_core::IUnknown, ::windows_core::IInspectable); impl InkModelerAttributes { pub fn PredictionTime(&self) -> ::windows_core::Result { let this = self; @@ -1814,14 +1377,14 @@ impl InkModelerAttributes { unsafe { (::windows_core::Interface::vtable(this).SetScalingFactor)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn UseVelocityBasedPressure(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).UseVelocityBasedPressure)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetUseVelocityBasedPressure(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetUseVelocityBasedPressure)(::windows_core::Interface::as_raw(this), value).ok() } } } @@ -1830,19 +1393,17 @@ impl ::windows_core::RuntimeType for InkModelerAttributes { } unsafe impl ::windows_core::Interface for InkModelerAttributes { type Vtable = IInkModelerAttributes_Vtbl; -} -unsafe impl ::windows_core::ComInterface for InkModelerAttributes { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for InkModelerAttributes { const NAME: &'static str = "Windows.UI.Input.Inking.InkModelerAttributes"; } -::windows_core::imp::interface_hierarchy!(InkModelerAttributes, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for InkModelerAttributes {} unsafe impl ::core::marker::Sync for InkModelerAttributes {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct InkPoint(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(InkPoint, ::windows_core::IUnknown, ::windows_core::IInspectable); impl InkPoint { pub fn Position(&self) -> ::windows_core::Result { let this = self; @@ -1859,21 +1420,21 @@ impl InkPoint { } } pub fn TiltX(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TiltX)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TiltY(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TiltY)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Timestamp(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Timestamp)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1907,19 +1468,17 @@ impl ::windows_core::RuntimeType for InkPoint { } unsafe impl ::windows_core::Interface for InkPoint { type Vtable = IInkPoint_Vtbl; -} -unsafe impl ::windows_core::ComInterface for InkPoint { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for InkPoint { const NAME: &'static str = "Windows.UI.Input.Inking.InkPoint"; } -::windows_core::imp::interface_hierarchy!(InkPoint, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for InkPoint {} unsafe impl ::core::marker::Sync for InkPoint {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct InkPresenter(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(InkPresenter, ::windows_core::IUnknown, ::windows_core::IInspectable); impl InkPresenter { pub fn IsInputEnabled(&self) -> ::windows_core::Result { let this = self; @@ -2036,18 +1595,18 @@ impl InkPresenter { unsafe { (::windows_core::Interface::vtable(this).RemoveStrokesErased)(::windows_core::Interface::as_raw(this), cookie).ok() } } pub fn HighContrastAdjustment(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).HighContrastAdjustment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetHighContrastAdjustment(&self, value: InkHighContrastAdjustment) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetHighContrastAdjustment)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn InputConfiguration(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).InputConfiguration)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2059,19 +1618,18 @@ impl ::windows_core::RuntimeType for InkPresenter { } unsafe impl ::windows_core::Interface for InkPresenter { type Vtable = IInkPresenter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for InkPresenter { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for InkPresenter { const NAME: &'static str = "Windows.UI.Input.Inking.InkPresenter"; } -::windows_core::imp::interface_hierarchy!(InkPresenter, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for InkPresenter {} unsafe impl ::core::marker::Sync for InkPresenter {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct InkPresenterProtractor(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(InkPresenterProtractor, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(InkPresenterProtractor, IInkPresenterStencil); impl InkPresenterProtractor { pub fn AreTickMarksVisible(&self) -> ::windows_core::Result { let this = self; @@ -2160,49 +1718,49 @@ impl InkPresenterProtractor { }) } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsVisible(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsVisible)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsVisible(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsVisible)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn BackgroundColor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).BackgroundColor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetBackgroundColor(&self, value: super::super::Color) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetBackgroundColor)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn ForegroundColor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ForegroundColor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetForegroundColor(&self, value: super::super::Color) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetForegroundColor)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn Transform(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Transform)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2211,7 +1769,7 @@ impl InkPresenterProtractor { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetTransform(&self, value: super::super::super::Foundation::Numerics::Matrix3x2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetTransform)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc(hidden)] @@ -2225,20 +1783,18 @@ impl ::windows_core::RuntimeType for InkPresenterProtractor { } unsafe impl ::windows_core::Interface for InkPresenterProtractor { type Vtable = IInkPresenterProtractor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for InkPresenterProtractor { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for InkPresenterProtractor { const NAME: &'static str = "Windows.UI.Input.Inking.InkPresenterProtractor"; } -::windows_core::imp::interface_hierarchy!(InkPresenterProtractor, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for InkPresenterProtractor {} unsafe impl ::core::marker::Send for InkPresenterProtractor {} unsafe impl ::core::marker::Sync for InkPresenterProtractor {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct InkPresenterRuler(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(InkPresenterRuler, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(InkPresenterRuler, IInkPresenterStencil); impl InkPresenterRuler { pub fn Length(&self) -> ::windows_core::Result { let this = self; @@ -2263,25 +1819,25 @@ impl InkPresenterRuler { unsafe { (::windows_core::Interface::vtable(this).SetWidth)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn AreTickMarksVisible(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AreTickMarksVisible)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetAreTickMarksVisible(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetAreTickMarksVisible)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsCompassVisible(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsCompassVisible)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsCompassVisible(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsCompassVisible)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Create(inkpresenter: P0) -> ::windows_core::Result @@ -2294,49 +1850,49 @@ impl InkPresenterRuler { }) } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsVisible(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsVisible)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsVisible(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsVisible)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn BackgroundColor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).BackgroundColor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetBackgroundColor(&self, value: super::super::Color) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetBackgroundColor)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn ForegroundColor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ForegroundColor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetForegroundColor(&self, value: super::super::Color) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetForegroundColor)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn Transform(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Transform)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2345,7 +1901,7 @@ impl InkPresenterRuler { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetTransform(&self, value: super::super::super::Foundation::Numerics::Matrix3x2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetTransform)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc(hidden)] @@ -2359,20 +1915,17 @@ impl ::windows_core::RuntimeType for InkPresenterRuler { } unsafe impl ::windows_core::Interface for InkPresenterRuler { type Vtable = IInkPresenterRuler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for InkPresenterRuler { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for InkPresenterRuler { const NAME: &'static str = "Windows.UI.Input.Inking.InkPresenterRuler"; } -::windows_core::imp::interface_hierarchy!(InkPresenterRuler, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for InkPresenterRuler {} unsafe impl ::core::marker::Send for InkPresenterRuler {} unsafe impl ::core::marker::Sync for InkPresenterRuler {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct InkRecognitionResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(InkRecognitionResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl InkRecognitionResult { pub fn BoundingRect(&self) -> ::windows_core::Result { let this = self; @@ -2405,19 +1958,17 @@ impl ::windows_core::RuntimeType for InkRecognitionResult { } unsafe impl ::windows_core::Interface for InkRecognitionResult { type Vtable = IInkRecognitionResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for InkRecognitionResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for InkRecognitionResult { const NAME: &'static str = "Windows.UI.Input.Inking.InkRecognitionResult"; } -::windows_core::imp::interface_hierarchy!(InkRecognitionResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for InkRecognitionResult {} unsafe impl ::core::marker::Sync for InkRecognitionResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct InkRecognizer(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(InkRecognizer, ::windows_core::IUnknown, ::windows_core::IInspectable); impl InkRecognizer { pub fn Name(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -2432,17 +1983,16 @@ impl ::windows_core::RuntimeType for InkRecognizer { } unsafe impl ::windows_core::Interface for InkRecognizer { type Vtable = IInkRecognizer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for InkRecognizer { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for InkRecognizer { const NAME: &'static str = "Windows.UI.Input.Inking.InkRecognizer"; } -::windows_core::imp::interface_hierarchy!(InkRecognizer, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct InkRecognizerContainer(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(InkRecognizerContainer, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(InkRecognizerContainer, IInkRecognizerContainer); impl InkRecognizerContainer { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2485,18 +2035,15 @@ impl ::windows_core::RuntimeType for InkRecognizerContainer { } unsafe impl ::windows_core::Interface for InkRecognizerContainer { type Vtable = IInkRecognizerContainer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for InkRecognizerContainer { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for InkRecognizerContainer { const NAME: &'static str = "Windows.UI.Input.Inking.InkRecognizerContainer"; } -::windows_core::imp::interface_hierarchy!(InkRecognizerContainer, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for InkRecognizerContainer {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct InkStroke(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(InkStroke, ::windows_core::IUnknown, ::windows_core::IInspectable); impl InkStroke { pub fn DrawingAttributes(&self) -> ::windows_core::Result { let this = self; @@ -2556,7 +2103,7 @@ impl InkStroke { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn PointTransform(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PointTransform)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2565,27 +2112,27 @@ impl InkStroke { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn SetPointTransform(&self, value: super::super::super::Foundation::Numerics::Matrix3x2) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetPointTransform)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetInkPoints(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetInkPoints)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Id(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Id)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn StrokeStartedTime(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).StrokeStartedTime)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2593,13 +2140,13 @@ impl InkStroke { } pub fn SetStrokeStartedTime(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetStrokeStartedTime)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StrokeDuration(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).StrokeDuration)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2607,13 +2154,13 @@ impl InkStroke { } pub fn SetStrokeDuration(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetStrokeDuration)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn PointerId(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PointerId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2625,19 +2172,17 @@ impl ::windows_core::RuntimeType for InkStroke { } unsafe impl ::windows_core::Interface for InkStroke { type Vtable = IInkStroke_Vtbl; -} -unsafe impl ::windows_core::ComInterface for InkStroke { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for InkStroke { const NAME: &'static str = "Windows.UI.Input.Inking.InkStroke"; } -::windows_core::imp::interface_hierarchy!(InkStroke, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for InkStroke {} unsafe impl ::core::marker::Sync for InkStroke {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct InkStrokeBuilder(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(InkStrokeBuilder, ::windows_core::IUnknown, ::windows_core::IInspectable); impl InkStrokeBuilder { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2677,12 +2222,12 @@ impl InkStrokeBuilder { #[cfg(feature = "Foundation_Collections")] pub fn CreateStroke(&self, points: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateStroke)(::windows_core::Interface::as_raw(this), points.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateStroke)(::windows_core::Interface::as_raw(this), points.into_param().abi(), &mut result__).from_abi(result__) } } pub fn SetDefaultDrawingAttributes(&self, drawingattributes: P0) -> ::windows_core::Result<()> @@ -2696,26 +2241,26 @@ impl InkStrokeBuilder { #[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::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), transform, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateStrokeFromInkPoints)(::windows_core::Interface::as_raw(this), inkpoints.into_param().abi(), transform, &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Foundation_Numerics\"`"] #[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::TryIntoParam>, - P1: ::windows_core::TryIntoParam>, - P2: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, + P1: ::windows_core::IntoParam>, + P2: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), transform, strokestartedtime.try_into_param()?.abi(), strokeduration.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) } } } @@ -2724,17 +2269,16 @@ impl ::windows_core::RuntimeType for InkStrokeBuilder { } unsafe impl ::windows_core::Interface for InkStrokeBuilder { type Vtable = IInkStrokeBuilder_Vtbl; -} -unsafe impl ::windows_core::ComInterface for InkStrokeBuilder { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for InkStrokeBuilder { const NAME: &'static str = "Windows.UI.Input.Inking.InkStrokeBuilder"; } -::windows_core::imp::interface_hierarchy!(InkStrokeBuilder, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct InkStrokeContainer(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(InkStrokeContainer, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(InkStrokeContainer, IInkStrokeContainer); impl InkStrokeContainer { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2775,12 +2319,12 @@ impl InkStrokeContainer { #[cfg(feature = "Foundation_Collections")] pub fn SelectWithPolyLine(&self, polyline: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).SelectWithPolyLine)(::windows_core::Interface::as_raw(this), polyline.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SelectWithPolyLine)(::windows_core::Interface::as_raw(this), polyline.into_param().abi(), &mut result__).from_abi(result__) } } pub fn SelectWithLine(&self, from: super::super::super::Foundation::Point, to: super::super::super::Foundation::Point) -> ::windows_core::Result { @@ -2812,34 +2356,34 @@ impl InkStrokeContainer { #[cfg(feature = "Storage_Streams")] pub fn LoadAsync(&self, inputstream: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).LoadAsync)(::windows_core::Interface::as_raw(this), inputstream.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).LoadAsync)(::windows_core::Interface::as_raw(this), inputstream.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn SaveAsync(&self, outputstream: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).SaveAsync)(::windows_core::Interface::as_raw(this), outputstream.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SaveAsync)(::windows_core::Interface::as_raw(this), outputstream.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn UpdateRecognitionResults(&self, recognitionresults: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).UpdateRecognitionResults)(::windows_core::Interface::as_raw(this), recognitionresults.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).UpdateRecognitionResults)(::windows_core::Interface::as_raw(this), recognitionresults.into_param().abi()).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -2863,29 +2407,29 @@ impl InkStrokeContainer { #[cfg(feature = "Foundation_Collections")] pub fn AddStrokes(&self, strokes: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).AddStrokes)(::windows_core::Interface::as_raw(this), strokes.try_into_param()?.abi()).ok() } + 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() } } pub fn Clear(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Clear)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn SaveWithFormatAsync(&self, outputstream: P0, inkpersistenceformat: InkPersistenceFormat) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), inkpersistenceformat, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).SaveWithFormatAsync)(::windows_core::Interface::as_raw(this), outputstream.into_param().abi(), inkpersistenceformat, &mut result__).from_abi(result__) } } pub fn GetStrokeById(&self, id: u32) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetStrokeById)(::windows_core::Interface::as_raw(this), id, &mut result__).from_abi(result__) @@ -2897,18 +2441,15 @@ impl ::windows_core::RuntimeType for InkStrokeContainer { } unsafe impl ::windows_core::Interface for InkStrokeContainer { type Vtable = IInkStrokeContainer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for InkStrokeContainer { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for InkStrokeContainer { const NAME: &'static str = "Windows.UI.Input.Inking.InkStrokeContainer"; } -::windows_core::imp::interface_hierarchy!(InkStrokeContainer, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for InkStrokeContainer {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct InkStrokeInput(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(InkStrokeInput, ::windows_core::IUnknown, ::windows_core::IInspectable); impl InkStrokeInput { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] @@ -2987,19 +2528,17 @@ impl ::windows_core::RuntimeType for InkStrokeInput { } unsafe impl ::windows_core::Interface for InkStrokeInput { type Vtable = IInkStrokeInput_Vtbl; -} -unsafe impl ::windows_core::ComInterface for InkStrokeInput { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for InkStrokeInput { const NAME: &'static str = "Windows.UI.Input.Inking.InkStrokeInput"; } -::windows_core::imp::interface_hierarchy!(InkStrokeInput, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for InkStrokeInput {} unsafe impl ::core::marker::Sync for InkStrokeInput {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct InkStrokeRenderingSegment(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(InkStrokeRenderingSegment, ::windows_core::IUnknown, ::windows_core::IInspectable); impl InkStrokeRenderingSegment { pub fn Position(&self) -> ::windows_core::Result { let this = self; @@ -3056,19 +2595,17 @@ impl ::windows_core::RuntimeType for InkStrokeRenderingSegment { } unsafe impl ::windows_core::Interface for InkStrokeRenderingSegment { type Vtable = IInkStrokeRenderingSegment_Vtbl; -} -unsafe impl ::windows_core::ComInterface for InkStrokeRenderingSegment { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for InkStrokeRenderingSegment { const NAME: &'static str = "Windows.UI.Input.Inking.InkStrokeRenderingSegment"; } -::windows_core::imp::interface_hierarchy!(InkStrokeRenderingSegment, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for InkStrokeRenderingSegment {} unsafe impl ::core::marker::Sync for InkStrokeRenderingSegment {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct InkStrokesCollectedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(InkStrokesCollectedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl InkStrokesCollectedEventArgs { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -3085,17 +2622,15 @@ impl ::windows_core::RuntimeType for InkStrokesCollectedEventArgs { } unsafe impl ::windows_core::Interface for InkStrokesCollectedEventArgs { type Vtable = IInkStrokesCollectedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for InkStrokesCollectedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for InkStrokesCollectedEventArgs { const NAME: &'static str = "Windows.UI.Input.Inking.InkStrokesCollectedEventArgs"; } -::windows_core::imp::interface_hierarchy!(InkStrokesCollectedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct InkStrokesErasedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(InkStrokesErasedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl InkStrokesErasedEventArgs { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -3112,17 +2647,15 @@ impl ::windows_core::RuntimeType for InkStrokesErasedEventArgs { } unsafe impl ::windows_core::Interface for InkStrokesErasedEventArgs { type Vtable = IInkStrokesErasedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for InkStrokesErasedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for InkStrokesErasedEventArgs { const NAME: &'static str = "Windows.UI.Input.Inking.InkStrokesErasedEventArgs"; } -::windows_core::imp::interface_hierarchy!(InkStrokesErasedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct InkSynchronizer(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(InkSynchronizer, ::windows_core::IUnknown, ::windows_core::IInspectable); impl InkSynchronizer { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -3143,17 +2676,15 @@ impl ::windows_core::RuntimeType for InkSynchronizer { } unsafe impl ::windows_core::Interface for InkSynchronizer { type Vtable = IInkSynchronizer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for InkSynchronizer { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for InkSynchronizer { const NAME: &'static str = "Windows.UI.Input.Inking.InkSynchronizer"; } -::windows_core::imp::interface_hierarchy!(InkSynchronizer, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct InkUnprocessedInput(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(InkUnprocessedInput, ::windows_core::IUnknown, ::windows_core::IInspectable); impl InkUnprocessedInput { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] @@ -3280,19 +2811,17 @@ impl ::windows_core::RuntimeType for InkUnprocessedInput { } unsafe impl ::windows_core::Interface for InkUnprocessedInput { type Vtable = IInkUnprocessedInput_Vtbl; -} -unsafe impl ::windows_core::ComInterface for InkUnprocessedInput { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for InkUnprocessedInput { const NAME: &'static str = "Windows.UI.Input.Inking.InkUnprocessedInput"; } -::windows_core::imp::interface_hierarchy!(InkUnprocessedInput, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for InkUnprocessedInput {} unsafe impl ::core::marker::Sync for InkUnprocessedInput {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PenAndInkSettings(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PenAndInkSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PenAndInkSettings { pub fn IsHandwritingDirectlyIntoTextFieldEnabled(&self) -> ::windows_core::Result { let this = self; @@ -3337,7 +2866,7 @@ impl PenAndInkSettings { } } pub fn SetPenHandedness(&self, value: PenHandedness) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetPenHandedness)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn GetDefault() -> ::windows_core::Result { @@ -3357,14 +2886,11 @@ impl ::windows_core::RuntimeType for PenAndInkSettings { } unsafe impl ::windows_core::Interface for PenAndInkSettings { type Vtable = IPenAndInkSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PenAndInkSettings { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PenAndInkSettings { const NAME: &'static str = "Windows.UI.Input.Inking.PenAndInkSettings"; } -::windows_core::imp::interface_hierarchy!(PenAndInkSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PenAndInkSettings {} unsafe impl ::core::marker::Sync for PenAndInkSettings {} #[repr(transparent)] 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 b5722f77cf..34a840b146 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 @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInjectedInputGamepadInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInjectedInputGamepadInfo { - type Vtable = IInjectedInputGamepadInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInjectedInputGamepadInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x20ae9a3f_df11_4572_a9ab_d75b8a5e48ad); -} +::windows_core::imp::com_interface!(IInjectedInputGamepadInfo, IInjectedInputGamepadInfo_Vtbl, 0x20ae9a3f_df11_4572_a9ab_d75b8a5e48ad); #[repr(C)] #[doc(hidden)] pub struct IInjectedInputGamepadInfo_Vtbl { @@ -33,16 +24,7 @@ pub struct IInjectedInputGamepadInfo_Vtbl { pub RightTrigger: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows_core::HRESULT, pub SetRightTrigger: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f64) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInjectedInputGamepadInfoFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInjectedInputGamepadInfoFactory { - type Vtable = IInjectedInputGamepadInfoFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInjectedInputGamepadInfoFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x59596876_6c39_4ec4_8b2a_29ef7de18aca); -} +::windows_core::imp::com_interface!(IInjectedInputGamepadInfoFactory, IInjectedInputGamepadInfoFactory_Vtbl, 0x59596876_6c39_4ec4_8b2a_29ef7de18aca); #[repr(C)] #[doc(hidden)] pub struct IInjectedInputGamepadInfoFactory_Vtbl { @@ -52,16 +34,7 @@ pub struct IInjectedInputGamepadInfoFactory_Vtbl { #[cfg(not(feature = "Gaming_Input"))] CreateInstanceFromGamepadReading: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInjectedInputKeyboardInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInjectedInputKeyboardInfo { - type Vtable = IInjectedInputKeyboardInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInjectedInputKeyboardInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4b46d140_2b6a_5ffa_7eae_bd077b052acd); -} +::windows_core::imp::com_interface!(IInjectedInputKeyboardInfo, IInjectedInputKeyboardInfo_Vtbl, 0x4b46d140_2b6a_5ffa_7eae_bd077b052acd); #[repr(C)] #[doc(hidden)] pub struct IInjectedInputKeyboardInfo_Vtbl { @@ -73,16 +46,7 @@ pub struct IInjectedInputKeyboardInfo_Vtbl { pub VirtualKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u16) -> ::windows_core::HRESULT, pub SetVirtualKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: u16) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInjectedInputMouseInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInjectedInputMouseInfo { - type Vtable = IInjectedInputMouseInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInjectedInputMouseInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x96f56e6b_e47a_5cf4_418d_8a5fb9670c7d); -} +::windows_core::imp::com_interface!(IInjectedInputMouseInfo, IInjectedInputMouseInfo_Vtbl, 0x96f56e6b_e47a_5cf4_418d_8a5fb9670c7d); #[repr(C)] #[doc(hidden)] pub struct IInjectedInputMouseInfo_Vtbl { @@ -98,16 +62,7 @@ pub struct IInjectedInputMouseInfo_Vtbl { pub TimeOffsetInMilliseconds: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, pub SetTimeOffsetInMilliseconds: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInjectedInputPenInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInjectedInputPenInfo { - type Vtable = IInjectedInputPenInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInjectedInputPenInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6b40ad03_ca1e_5527_7e02_2828540bb1d4); -} +::windows_core::imp::com_interface!(IInjectedInputPenInfo, IInjectedInputPenInfo_Vtbl, 0x6b40ad03_ca1e_5527_7e02_2828540bb1d4); #[repr(C)] #[doc(hidden)] pub struct IInjectedInputPenInfo_Vtbl { @@ -127,16 +82,7 @@ pub struct IInjectedInputPenInfo_Vtbl { pub TiltY: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows_core::HRESULT, pub SetTiltY: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInjectedInputTouchInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInjectedInputTouchInfo { - type Vtable = IInjectedInputTouchInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInjectedInputTouchInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x224fd1df_43e8_5ef5_510a_69ca8c9b4c28); -} +::windows_core::imp::com_interface!(IInjectedInputTouchInfo, IInjectedInputTouchInfo_Vtbl, 0x224fd1df_43e8_5ef5_510a_69ca8c9b4c28); #[repr(C)] #[doc(hidden)] pub struct IInjectedInputTouchInfo_Vtbl { @@ -152,16 +98,7 @@ pub struct IInjectedInputTouchInfo_Vtbl { pub TouchParameters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut InjectedInputTouchParameters) -> ::windows_core::HRESULT, pub SetTouchParameters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: InjectedInputTouchParameters) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInputInjector(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInputInjector { - type Vtable = IInputInjector_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInputInjector { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8ec26f84_0b02_4bd2_ad7a_3d4658be3e18); -} +::windows_core::imp::com_interface!(IInputInjector, IInputInjector_Vtbl, 0x8ec26f84_0b02_4bd2_ad7a_3d4658be3e18); #[repr(C)] #[doc(hidden)] pub struct IInputInjector_Vtbl { @@ -185,16 +122,7 @@ pub struct IInputInjector_Vtbl { pub UninitializePenInjection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub InjectShortcut: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, shortcut: InjectedInputShortcut) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInputInjector2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInputInjector2 { - type Vtable = IInputInjector2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInputInjector2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8e7a905d_1453_43a7_9bcb_06d6d7b305f7); -} +::windows_core::imp::com_interface!(IInputInjector2, IInputInjector2_Vtbl, 0x8e7a905d_1453_43a7_9bcb_06d6d7b305f7); #[repr(C)] #[doc(hidden)] pub struct IInputInjector2_Vtbl { @@ -203,32 +131,14 @@ pub struct IInputInjector2_Vtbl { pub InjectGamepadInput: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub UninitializeGamepadInjection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInputInjectorStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInputInjectorStatics { - type Vtable = IInputInjectorStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInputInjectorStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdeae6943_7402_4141_a5c6_0c01aa57b16a); -} +::windows_core::imp::com_interface!(IInputInjectorStatics, IInputInjectorStatics_Vtbl, 0xdeae6943_7402_4141_a5c6_0c01aa57b16a); #[repr(C)] #[doc(hidden)] pub struct IInputInjectorStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub TryCreate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInputInjectorStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInputInjectorStatics2 { - type Vtable = IInputInjectorStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInputInjectorStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa4db38fb_dd8c_414f_95ea_f87ef4c0ae6c); -} +::windows_core::imp::com_interface!(IInputInjectorStatics2, IInputInjectorStatics2_Vtbl, 0xa4db38fb_dd8c_414f_95ea_f87ef4c0ae6c); #[repr(C)] #[doc(hidden)] pub struct IInputInjectorStatics2_Vtbl { @@ -238,6 +148,7 @@ pub struct IInputInjectorStatics2_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct InjectedInputGamepadInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(InjectedInputGamepadInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl InjectedInputGamepadInfo { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -346,17 +257,15 @@ impl ::windows_core::RuntimeType for InjectedInputGamepadInfo { } unsafe impl ::windows_core::Interface for InjectedInputGamepadInfo { type Vtable = IInjectedInputGamepadInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for InjectedInputGamepadInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for InjectedInputGamepadInfo { const NAME: &'static str = "Windows.UI.Input.Preview.Injection.InjectedInputGamepadInfo"; } -::windows_core::imp::interface_hierarchy!(InjectedInputGamepadInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct InjectedInputKeyboardInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(InjectedInputKeyboardInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl InjectedInputKeyboardInfo { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -404,17 +313,15 @@ impl ::windows_core::RuntimeType for InjectedInputKeyboardInfo { } unsafe impl ::windows_core::Interface for InjectedInputKeyboardInfo { type Vtable = IInjectedInputKeyboardInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for InjectedInputKeyboardInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for InjectedInputKeyboardInfo { const NAME: &'static str = "Windows.UI.Input.Preview.Injection.InjectedInputKeyboardInfo"; } -::windows_core::imp::interface_hierarchy!(InjectedInputKeyboardInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct InjectedInputMouseInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(InjectedInputMouseInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl InjectedInputMouseInfo { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -484,17 +391,15 @@ impl ::windows_core::RuntimeType for InjectedInputMouseInfo { } unsafe impl ::windows_core::Interface for InjectedInputMouseInfo { type Vtable = IInjectedInputMouseInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for InjectedInputMouseInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for InjectedInputMouseInfo { const NAME: &'static str = "Windows.UI.Input.Preview.Injection.InjectedInputMouseInfo"; } -::windows_core::imp::interface_hierarchy!(InjectedInputMouseInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct InjectedInputPenInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(InjectedInputPenInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl InjectedInputPenInfo { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -586,17 +491,15 @@ impl ::windows_core::RuntimeType for InjectedInputPenInfo { } unsafe impl ::windows_core::Interface for InjectedInputPenInfo { type Vtable = IInjectedInputPenInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for InjectedInputPenInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for InjectedInputPenInfo { const NAME: &'static str = "Windows.UI.Input.Preview.Injection.InjectedInputPenInfo"; } -::windows_core::imp::interface_hierarchy!(InjectedInputPenInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct InjectedInputTouchInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(InjectedInputTouchInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl InjectedInputTouchInfo { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -666,35 +569,33 @@ impl ::windows_core::RuntimeType for InjectedInputTouchInfo { } unsafe impl ::windows_core::Interface for InjectedInputTouchInfo { type Vtable = IInjectedInputTouchInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for InjectedInputTouchInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for InjectedInputTouchInfo { const NAME: &'static str = "Windows.UI.Input.Preview.Injection.InjectedInputTouchInfo"; } -::windows_core::imp::interface_hierarchy!(InjectedInputTouchInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct InputInjector(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(InputInjector, ::windows_core::IUnknown, ::windows_core::IInspectable); impl InputInjector { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn InjectKeyboardInput(&self, input: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).InjectKeyboardInput)(::windows_core::Interface::as_raw(this), input.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).InjectKeyboardInput)(::windows_core::Interface::as_raw(this), input.into_param().abi()).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn InjectMouseInput(&self, input: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).InjectMouseInput)(::windows_core::Interface::as_raw(this), input.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).InjectMouseInput)(::windows_core::Interface::as_raw(this), input.into_param().abi()).ok() } } pub fn InitializeTouchInjection(&self, visualmode: InjectedInputVisualizationMode) -> ::windows_core::Result<()> { let this = self; @@ -704,10 +605,10 @@ impl InputInjector { #[cfg(feature = "Foundation_Collections")] pub fn InjectTouchInput(&self, input: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).InjectTouchInput)(::windows_core::Interface::as_raw(this), input.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).InjectTouchInput)(::windows_core::Interface::as_raw(this), input.into_param().abi()).ok() } } pub fn UninitializeTouchInjection(&self) -> ::windows_core::Result<()> { let this = self; @@ -733,18 +634,18 @@ impl InputInjector { unsafe { (::windows_core::Interface::vtable(this).InjectShortcut)(::windows_core::Interface::as_raw(this), shortcut).ok() } } pub fn InitializeGamepadInjection(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).InitializeGamepadInjection)(::windows_core::Interface::as_raw(this)).ok() } } pub fn InjectGamepadInput(&self, input: P0) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn UninitializeGamepadInjection(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).UninitializeGamepadInjection)(::windows_core::Interface::as_raw(this)).ok() } } pub fn TryCreate() -> ::windows_core::Result { @@ -775,14 +676,11 @@ impl ::windows_core::RuntimeType for InputInjector { } unsafe impl ::windows_core::Interface for InputInjector { type Vtable = IInputInjector_Vtbl; -} -unsafe impl ::windows_core::ComInterface for InputInjector { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for InputInjector { const NAME: &'static str = "Windows.UI.Input.Preview.Injection.InputInjector"; } -::windows_core::imp::interface_hierarchy!(InputInjector, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::marker::Copy, ::core::clone::Clone, ::core::default::Default)] pub struct InjectedInputButtonChangeKind(pub i32); 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 2cf806fb3e..84de7f3f01 100644 --- a/crates/libs/windows/src/Windows/UI/Input/Preview/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Input/Preview/mod.rs @@ -1,16 +1,7 @@ #[cfg(feature = "UI_Input_Preview_Injection")] #[doc = "Required features: `\"UI_Input_Preview_Injection\"`"] pub mod Injection; -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInputActivationListenerPreviewStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInputActivationListenerPreviewStatics { - type Vtable = IInputActivationListenerPreviewStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInputActivationListenerPreviewStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf0551ce5_0de6_5be0_a589_f737201a4582); -} +::windows_core::imp::com_interface!(IInputActivationListenerPreviewStatics, IInputActivationListenerPreviewStatics_Vtbl, 0xf0551ce5_0de6_5be0_a589_f737201a4582); #[repr(C)] #[doc(hidden)] pub struct IInputActivationListenerPreviewStatics_Vtbl { 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 c84b4e3066..f6855c44fe 100644 --- a/crates/libs/windows/src/Windows/UI/Input/Spatial/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Input/Spatial/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialGestureRecognizer(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialGestureRecognizer { - type Vtable = ISpatialGestureRecognizer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialGestureRecognizer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x71605bcc_0c35_4673_adbd_cc04caa6ef45); -} +::windows_core::imp::com_interface!(ISpatialGestureRecognizer, ISpatialGestureRecognizer_Vtbl, 0x71605bcc_0c35_4673_adbd_cc04caa6ef45); #[repr(C)] #[doc(hidden)] pub struct ISpatialGestureRecognizer_Vtbl { @@ -45,64 +36,28 @@ pub struct ISpatialGestureRecognizer_Vtbl { pub TrySetGestureSettings: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, settings: SpatialGestureSettings, result__: *mut bool) -> ::windows_core::HRESULT, pub GestureSettings: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut SpatialGestureSettings) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialGestureRecognizerFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialGestureRecognizerFactory { - type Vtable = ISpatialGestureRecognizerFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialGestureRecognizerFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x77214186_57b9_3150_8382_698b24e264d0); -} +::windows_core::imp::com_interface!(ISpatialGestureRecognizerFactory, ISpatialGestureRecognizerFactory_Vtbl, 0x77214186_57b9_3150_8382_698b24e264d0); #[repr(C)] #[doc(hidden)] pub struct ISpatialGestureRecognizerFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, settings: SpatialGestureSettings, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialHoldCanceledEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialHoldCanceledEventArgs { - type Vtable = ISpatialHoldCanceledEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialHoldCanceledEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5dfcb667_4caa_4093_8c35_b601a839f31b); -} +::windows_core::imp::com_interface!(ISpatialHoldCanceledEventArgs, ISpatialHoldCanceledEventArgs_Vtbl, 0x5dfcb667_4caa_4093_8c35_b601a839f31b); #[repr(C)] #[doc(hidden)] pub struct ISpatialHoldCanceledEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub InteractionSourceKind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut SpatialInteractionSourceKind) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialHoldCompletedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialHoldCompletedEventArgs { - type Vtable = ISpatialHoldCompletedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialHoldCompletedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3f64470b_4cfd_43da_8dc4_e64552173971); -} +::windows_core::imp::com_interface!(ISpatialHoldCompletedEventArgs, ISpatialHoldCompletedEventArgs_Vtbl, 0x3f64470b_4cfd_43da_8dc4_e64552173971); #[repr(C)] #[doc(hidden)] pub struct ISpatialHoldCompletedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub InteractionSourceKind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut SpatialInteractionSourceKind) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialHoldStartedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialHoldStartedEventArgs { - type Vtable = ISpatialHoldStartedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialHoldStartedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8e343d79_acb6_4144_8615_2cfba8a3cb3f); -} +::windows_core::imp::com_interface!(ISpatialHoldStartedEventArgs, ISpatialHoldStartedEventArgs_Vtbl, 0x8e343d79_acb6_4144_8615_2cfba8a3cb3f); #[repr(C)] #[doc(hidden)] pub struct ISpatialHoldStartedEventArgs_Vtbl { @@ -113,32 +68,14 @@ pub struct ISpatialHoldStartedEventArgs_Vtbl { #[cfg(not(feature = "Perception_Spatial"))] TryGetPointerPose: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialInteraction(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialInteraction { - type Vtable = ISpatialInteraction_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialInteraction { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfc967639_88e6_4646_9112_4344aaec9dfa); -} +::windows_core::imp::com_interface!(ISpatialInteraction, ISpatialInteraction_Vtbl, 0xfc967639_88e6_4646_9112_4344aaec9dfa); #[repr(C)] #[doc(hidden)] pub struct ISpatialInteraction_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub SourceState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialInteractionController(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialInteractionController { - type Vtable = ISpatialInteractionController_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialInteractionController { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5f0e5ba3_0954_4e97_86c5_e7f30b114dfd); -} +::windows_core::imp::com_interface!(ISpatialInteractionController, ISpatialInteractionController_Vtbl, 0x5f0e5ba3_0954_4e97_86c5_e7f30b114dfd); #[repr(C)] #[doc(hidden)] pub struct ISpatialInteractionController_Vtbl { @@ -153,16 +90,7 @@ pub struct ISpatialInteractionController_Vtbl { pub ProductId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u16) -> ::windows_core::HRESULT, pub Version: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u16) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialInteractionController2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialInteractionController2 { - type Vtable = ISpatialInteractionController2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialInteractionController2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x35b6d924_c7a2_49b7_b72e_5436b2fb8f9c); -} +::windows_core::imp::com_interface!(ISpatialInteractionController2, ISpatialInteractionController2_Vtbl, 0x35b6d924_c7a2_49b7_b72e_5436b2fb8f9c); #[repr(C)] #[doc(hidden)] pub struct ISpatialInteractionController2_Vtbl { @@ -172,16 +100,7 @@ pub struct ISpatialInteractionController2_Vtbl { #[cfg(not(feature = "Storage_Streams"))] TryGetRenderableModelAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialInteractionController3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialInteractionController3 { - type Vtable = ISpatialInteractionController3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialInteractionController3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x628466a0_9d91_4a0b_888d_165e670a8cd5); -} +::windows_core::imp::com_interface!(ISpatialInteractionController3, ISpatialInteractionController3_Vtbl, 0x628466a0_9d91_4a0b_888d_165e670a8cd5); #[repr(C)] #[doc(hidden)] pub struct ISpatialInteractionController3_Vtbl { @@ -191,16 +110,7 @@ pub struct ISpatialInteractionController3_Vtbl { #[cfg(not(feature = "Devices_Power"))] TryGetBatteryReport: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialInteractionControllerProperties(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialInteractionControllerProperties { - type Vtable = ISpatialInteractionControllerProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialInteractionControllerProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x61056fb1_7ba9_4e35_b93f_9272cba9b28b); -} +::windows_core::imp::com_interface!(ISpatialInteractionControllerProperties, ISpatialInteractionControllerProperties_Vtbl, 0x61056fb1_7ba9_4e35_b93f_9272cba9b28b); #[repr(C)] #[doc(hidden)] pub struct ISpatialInteractionControllerProperties_Vtbl { @@ -213,16 +123,7 @@ pub struct ISpatialInteractionControllerProperties_Vtbl { pub TouchpadX: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows_core::HRESULT, pub TouchpadY: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialInteractionDetectedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialInteractionDetectedEventArgs { - type Vtable = ISpatialInteractionDetectedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialInteractionDetectedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x075878e4_5961_3b41_9dfb_cea5d89cc38a); -} +::windows_core::imp::com_interface!(ISpatialInteractionDetectedEventArgs, ISpatialInteractionDetectedEventArgs_Vtbl, 0x075878e4_5961_3b41_9dfb_cea5d89cc38a); #[repr(C)] #[doc(hidden)] pub struct ISpatialInteractionDetectedEventArgs_Vtbl { @@ -234,32 +135,14 @@ pub struct ISpatialInteractionDetectedEventArgs_Vtbl { TryGetPointerPose: usize, pub Interaction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialInteractionDetectedEventArgs2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialInteractionDetectedEventArgs2 { - type Vtable = ISpatialInteractionDetectedEventArgs2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialInteractionDetectedEventArgs2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7b263e93_5f13_419c_97d5_834678266aa6); -} +::windows_core::imp::com_interface!(ISpatialInteractionDetectedEventArgs2, ISpatialInteractionDetectedEventArgs2_Vtbl, 0x7b263e93_5f13_419c_97d5_834678266aa6); #[repr(C)] #[doc(hidden)] pub struct ISpatialInteractionDetectedEventArgs2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub InteractionSource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialInteractionManager(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialInteractionManager { - type Vtable = ISpatialInteractionManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialInteractionManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x32a64ea8_a15a_3995_b8bd_80513cb5adef); -} +::windows_core::imp::com_interface!(ISpatialInteractionManager, ISpatialInteractionManager_Vtbl, 0x32a64ea8_a15a_3995_b8bd_80513cb5adef); #[repr(C)] #[doc(hidden)] pub struct ISpatialInteractionManager_Vtbl { @@ -281,48 +164,21 @@ pub struct ISpatialInteractionManager_Vtbl { #[cfg(not(all(feature = "Foundation_Collections", feature = "Perception")))] GetDetectedSourcesAtTimestamp: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialInteractionManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialInteractionManagerStatics { - type Vtable = ISpatialInteractionManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialInteractionManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00e31fa6_8ca2_30bf_91fe_d9cb4a008990); -} +::windows_core::imp::com_interface!(ISpatialInteractionManagerStatics, ISpatialInteractionManagerStatics_Vtbl, 0x00e31fa6_8ca2_30bf_91fe_d9cb4a008990); #[repr(C)] #[doc(hidden)] pub struct ISpatialInteractionManagerStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetForCurrentView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialInteractionManagerStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialInteractionManagerStatics2 { - type Vtable = ISpatialInteractionManagerStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialInteractionManagerStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x93f16c52_b88a_5929_8d7c_48cb948b081c); -} +::windows_core::imp::com_interface!(ISpatialInteractionManagerStatics2, ISpatialInteractionManagerStatics2_Vtbl, 0x93f16c52_b88a_5929_8d7c_48cb948b081c); #[repr(C)] #[doc(hidden)] pub struct ISpatialInteractionManagerStatics2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub IsSourceKindSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, kind: SpatialInteractionSourceKind, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialInteractionSource(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialInteractionSource { - type Vtable = ISpatialInteractionSource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialInteractionSource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfb5433ba_b0b3_3148_9f3b_e9f5de568f5d); -} +::windows_core::imp::com_interface!(ISpatialInteractionSource, ISpatialInteractionSource_Vtbl, 0xfb5433ba_b0b3_3148_9f3b_e9f5de568f5d); #[repr(C)] #[doc(hidden)] pub struct ISpatialInteractionSource_Vtbl { @@ -330,16 +186,7 @@ pub struct ISpatialInteractionSource_Vtbl { pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, pub Kind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut SpatialInteractionSourceKind) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialInteractionSource2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialInteractionSource2 { - type Vtable = ISpatialInteractionSource2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialInteractionSource2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe4c5b70c_0470_4028_88c0_a0eb44d34efe); -} +::windows_core::imp::com_interface!(ISpatialInteractionSource2, ISpatialInteractionSource2_Vtbl, 0xe4c5b70c_0470_4028_88c0_a0eb44d34efe); #[repr(C)] #[doc(hidden)] pub struct ISpatialInteractionSource2_Vtbl { @@ -353,32 +200,14 @@ pub struct ISpatialInteractionSource2_Vtbl { #[cfg(not(feature = "Perception"))] TryGetStateAtTimestamp: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialInteractionSource3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialInteractionSource3 { - type Vtable = ISpatialInteractionSource3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialInteractionSource3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0406d9f9_9afd_44f9_85dc_700023a962e3); -} +::windows_core::imp::com_interface!(ISpatialInteractionSource3, ISpatialInteractionSource3_Vtbl, 0x0406d9f9_9afd_44f9_85dc_700023a962e3); #[repr(C)] #[doc(hidden)] pub struct ISpatialInteractionSource3_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Handedness: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut SpatialInteractionSourceHandedness) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialInteractionSource4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialInteractionSource4 { - type Vtable = ISpatialInteractionSource4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialInteractionSource4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0073bc4d_df66_5a91_a2ba_cea3e5c58a19); -} +::windows_core::imp::com_interface!(ISpatialInteractionSource4, ISpatialInteractionSource4_Vtbl, 0x0073bc4d_df66_5a91_a2ba_cea3e5c58a19); #[repr(C)] #[doc(hidden)] pub struct ISpatialInteractionSource4_Vtbl { @@ -392,48 +221,21 @@ pub struct ISpatialInteractionSource4_Vtbl { #[cfg(not(feature = "Perception_People"))] TryCreateHandMeshObserverAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialInteractionSourceEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialInteractionSourceEventArgs { - type Vtable = ISpatialInteractionSourceEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialInteractionSourceEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x23b786cf_ec23_3979_b27c_eb0e12feb7c7); -} +::windows_core::imp::com_interface!(ISpatialInteractionSourceEventArgs, ISpatialInteractionSourceEventArgs_Vtbl, 0x23b786cf_ec23_3979_b27c_eb0e12feb7c7); #[repr(C)] #[doc(hidden)] pub struct ISpatialInteractionSourceEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub State: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialInteractionSourceEventArgs2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialInteractionSourceEventArgs2 { - type Vtable = ISpatialInteractionSourceEventArgs2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialInteractionSourceEventArgs2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd8b4b467_e648_4d52_ab49_e0d227199f63); -} +::windows_core::imp::com_interface!(ISpatialInteractionSourceEventArgs2, ISpatialInteractionSourceEventArgs2_Vtbl, 0xd8b4b467_e648_4d52_ab49_e0d227199f63); #[repr(C)] #[doc(hidden)] pub struct ISpatialInteractionSourceEventArgs2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub PressKind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut SpatialInteractionPressKind) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialInteractionSourceLocation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialInteractionSourceLocation { - type Vtable = ISpatialInteractionSourceLocation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialInteractionSourceLocation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xea4696c4_7e8b_30ca_bcc5_c77189cea30a); -} +::windows_core::imp::com_interface!(ISpatialInteractionSourceLocation, ISpatialInteractionSourceLocation_Vtbl, 0xea4696c4_7e8b_30ca_bcc5_c77189cea30a); #[repr(C)] #[doc(hidden)] pub struct ISpatialInteractionSourceLocation_Vtbl { @@ -447,16 +249,7 @@ pub struct ISpatialInteractionSourceLocation_Vtbl { #[cfg(not(feature = "Foundation_Numerics"))] Velocity: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialInteractionSourceLocation2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialInteractionSourceLocation2 { - type Vtable = ISpatialInteractionSourceLocation2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialInteractionSourceLocation2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4c671045_3917_40fc_a9ac_31c9cf5ff91b); -} +::windows_core::imp::com_interface!(ISpatialInteractionSourceLocation2, ISpatialInteractionSourceLocation2_Vtbl, 0x4c671045_3917_40fc_a9ac_31c9cf5ff91b); #[repr(C)] #[doc(hidden)] pub struct ISpatialInteractionSourceLocation2_Vtbl { @@ -466,16 +259,7 @@ pub struct ISpatialInteractionSourceLocation2_Vtbl { #[cfg(not(feature = "Foundation_Numerics"))] Orientation: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialInteractionSourceLocation3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialInteractionSourceLocation3 { - type Vtable = ISpatialInteractionSourceLocation3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialInteractionSourceLocation3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6702e65e_e915_4cfb_9c1b_0538efc86687); -} +::windows_core::imp::com_interface!(ISpatialInteractionSourceLocation3, ISpatialInteractionSourceLocation3_Vtbl, 0x6702e65e_e915_4cfb_9c1b_0538efc86687); #[repr(C)] #[doc(hidden)] pub struct ISpatialInteractionSourceLocation3_Vtbl { @@ -487,16 +271,7 @@ pub struct ISpatialInteractionSourceLocation3_Vtbl { AngularVelocity: usize, pub SourcePointerPose: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialInteractionSourceProperties(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialInteractionSourceProperties { - type Vtable = ISpatialInteractionSourceProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialInteractionSourceProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x05604542_3ef7_3222_9f53_63c9cb7e3bc7); -} +::windows_core::imp::com_interface!(ISpatialInteractionSourceProperties, ISpatialInteractionSourceProperties_Vtbl, 0x05604542_3ef7_3222_9f53_63c9cb7e3bc7); #[repr(C)] #[doc(hidden)] pub struct ISpatialInteractionSourceProperties_Vtbl { @@ -511,16 +286,7 @@ pub struct ISpatialInteractionSourceProperties_Vtbl { #[cfg(not(feature = "Perception_Spatial"))] TryGetLocation: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialInteractionSourceState(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialInteractionSourceState { - type Vtable = ISpatialInteractionSourceState_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialInteractionSourceState { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd5c475ef_4b63_37ec_98b9_9fc652b9d2f2); -} +::windows_core::imp::com_interface!(ISpatialInteractionSourceState, ISpatialInteractionSourceState_Vtbl, 0xd5c475ef_4b63_37ec_98b9_9fc652b9d2f2); #[repr(C)] #[doc(hidden)] pub struct ISpatialInteractionSourceState_Vtbl { @@ -537,16 +303,7 @@ pub struct ISpatialInteractionSourceState_Vtbl { #[cfg(not(feature = "Perception_Spatial"))] TryGetPointerPose: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialInteractionSourceState2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialInteractionSourceState2 { - type Vtable = ISpatialInteractionSourceState2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialInteractionSourceState2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x45f6d0bd_1773_492e_9ba3_8ac1cbe77c08); -} +::windows_core::imp::com_interface!(ISpatialInteractionSourceState2, ISpatialInteractionSourceState2_Vtbl, 0x45f6d0bd_1773_492e_9ba3_8ac1cbe77c08); #[repr(C)] #[doc(hidden)] pub struct ISpatialInteractionSourceState2_Vtbl { @@ -557,16 +314,7 @@ pub struct ISpatialInteractionSourceState2_Vtbl { pub SelectPressedValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows_core::HRESULT, pub ControllerProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialInteractionSourceState3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialInteractionSourceState3 { - type Vtable = ISpatialInteractionSourceState3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialInteractionSourceState3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf2f00bc2_bd2b_4a01_a8fb_323e0158527c); -} +::windows_core::imp::com_interface!(ISpatialInteractionSourceState3, ISpatialInteractionSourceState3_Vtbl, 0xf2f00bc2_bd2b_4a01_a8fb_323e0158527c); #[repr(C)] #[doc(hidden)] pub struct ISpatialInteractionSourceState3_Vtbl { @@ -576,32 +324,14 @@ pub struct ISpatialInteractionSourceState3_Vtbl { #[cfg(not(feature = "Perception_People"))] TryGetHandPose: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialManipulationCanceledEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialManipulationCanceledEventArgs { - type Vtable = ISpatialManipulationCanceledEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialManipulationCanceledEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2d40d1cb_e7da_4220_b0bf_819301674780); -} +::windows_core::imp::com_interface!(ISpatialManipulationCanceledEventArgs, ISpatialManipulationCanceledEventArgs_Vtbl, 0x2d40d1cb_e7da_4220_b0bf_819301674780); #[repr(C)] #[doc(hidden)] pub struct ISpatialManipulationCanceledEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub InteractionSourceKind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut SpatialInteractionSourceKind) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialManipulationCompletedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialManipulationCompletedEventArgs { - type Vtable = ISpatialManipulationCompletedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialManipulationCompletedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x05086802_f301_4343_9250_2fbaa5f87a37); -} +::windows_core::imp::com_interface!(ISpatialManipulationCompletedEventArgs, ISpatialManipulationCompletedEventArgs_Vtbl, 0x05086802_f301_4343_9250_2fbaa5f87a37); #[repr(C)] #[doc(hidden)] pub struct ISpatialManipulationCompletedEventArgs_Vtbl { @@ -612,16 +342,7 @@ pub struct ISpatialManipulationCompletedEventArgs_Vtbl { #[cfg(not(feature = "Perception_Spatial"))] TryGetCumulativeDelta: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialManipulationDelta(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialManipulationDelta { - type Vtable = ISpatialManipulationDelta_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialManipulationDelta { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa7ec967a_d123_3a81_a15b_992923dcbe91); -} +::windows_core::imp::com_interface!(ISpatialManipulationDelta, ISpatialManipulationDelta_Vtbl, 0xa7ec967a_d123_3a81_a15b_992923dcbe91); #[repr(C)] #[doc(hidden)] pub struct ISpatialManipulationDelta_Vtbl { @@ -631,16 +352,7 @@ pub struct ISpatialManipulationDelta_Vtbl { #[cfg(not(feature = "Foundation_Numerics"))] Translation: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialManipulationStartedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialManipulationStartedEventArgs { - type Vtable = ISpatialManipulationStartedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialManipulationStartedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa1d6bbce_42a5_377b_ada6_d28e3d384737); -} +::windows_core::imp::com_interface!(ISpatialManipulationStartedEventArgs, ISpatialManipulationStartedEventArgs_Vtbl, 0xa1d6bbce_42a5_377b_ada6_d28e3d384737); #[repr(C)] #[doc(hidden)] pub struct ISpatialManipulationStartedEventArgs_Vtbl { @@ -651,16 +363,7 @@ pub struct ISpatialManipulationStartedEventArgs_Vtbl { #[cfg(not(feature = "Perception_Spatial"))] TryGetPointerPose: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialManipulationUpdatedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialManipulationUpdatedEventArgs { - type Vtable = ISpatialManipulationUpdatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialManipulationUpdatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5f230b9b_60c6_4dc6_bdc9_9f4a6f15fe49); -} +::windows_core::imp::com_interface!(ISpatialManipulationUpdatedEventArgs, ISpatialManipulationUpdatedEventArgs_Vtbl, 0x5f230b9b_60c6_4dc6_bdc9_9f4a6f15fe49); #[repr(C)] #[doc(hidden)] pub struct ISpatialManipulationUpdatedEventArgs_Vtbl { @@ -671,32 +374,14 @@ pub struct ISpatialManipulationUpdatedEventArgs_Vtbl { #[cfg(not(feature = "Perception_Spatial"))] TryGetCumulativeDelta: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialNavigationCanceledEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialNavigationCanceledEventArgs { - type Vtable = ISpatialNavigationCanceledEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialNavigationCanceledEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xce503edc_e8a5_46f0_92d4_3c122b35112a); -} +::windows_core::imp::com_interface!(ISpatialNavigationCanceledEventArgs, ISpatialNavigationCanceledEventArgs_Vtbl, 0xce503edc_e8a5_46f0_92d4_3c122b35112a); #[repr(C)] #[doc(hidden)] pub struct ISpatialNavigationCanceledEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub InteractionSourceKind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut SpatialInteractionSourceKind) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialNavigationCompletedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialNavigationCompletedEventArgs { - type Vtable = ISpatialNavigationCompletedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialNavigationCompletedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x012e80b7_af3b_42c2_9e41_baaa0e721f3a); -} +::windows_core::imp::com_interface!(ISpatialNavigationCompletedEventArgs, ISpatialNavigationCompletedEventArgs_Vtbl, 0x012e80b7_af3b_42c2_9e41_baaa0e721f3a); #[repr(C)] #[doc(hidden)] pub struct ISpatialNavigationCompletedEventArgs_Vtbl { @@ -707,16 +392,7 @@ pub struct ISpatialNavigationCompletedEventArgs_Vtbl { #[cfg(not(feature = "Foundation_Numerics"))] NormalizedOffset: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialNavigationStartedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialNavigationStartedEventArgs { - type Vtable = ISpatialNavigationStartedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialNavigationStartedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x754a348a_fb64_4656_8ebd_9deecaafe475); -} +::windows_core::imp::com_interface!(ISpatialNavigationStartedEventArgs, ISpatialNavigationStartedEventArgs_Vtbl, 0x754a348a_fb64_4656_8ebd_9deecaafe475); #[repr(C)] #[doc(hidden)] pub struct ISpatialNavigationStartedEventArgs_Vtbl { @@ -730,16 +406,7 @@ pub struct ISpatialNavigationStartedEventArgs_Vtbl { pub IsNavigatingY: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub IsNavigatingZ: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialNavigationUpdatedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialNavigationUpdatedEventArgs { - type Vtable = ISpatialNavigationUpdatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialNavigationUpdatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9b713fd7_839d_4a74_8732_45466fc044b5); -} +::windows_core::imp::com_interface!(ISpatialNavigationUpdatedEventArgs, ISpatialNavigationUpdatedEventArgs_Vtbl, 0x9b713fd7_839d_4a74_8732_45466fc044b5); #[repr(C)] #[doc(hidden)] pub struct ISpatialNavigationUpdatedEventArgs_Vtbl { @@ -750,16 +417,7 @@ pub struct ISpatialNavigationUpdatedEventArgs_Vtbl { #[cfg(not(feature = "Foundation_Numerics"))] NormalizedOffset: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialPointerInteractionSourcePose(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialPointerInteractionSourcePose { - type Vtable = ISpatialPointerInteractionSourcePose_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialPointerInteractionSourcePose { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa7104307_2c2b_4d3a_92a7_80ced7c4a0d0); -} +::windows_core::imp::com_interface!(ISpatialPointerInteractionSourcePose, ISpatialPointerInteractionSourcePose_Vtbl, 0xa7104307_2c2b_4d3a_92a7_80ced7c4a0d0); #[repr(C)] #[doc(hidden)] pub struct ISpatialPointerInteractionSourcePose_Vtbl { @@ -777,16 +435,7 @@ pub struct ISpatialPointerInteractionSourcePose_Vtbl { #[cfg(not(feature = "Foundation_Numerics"))] UpDirection: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialPointerInteractionSourcePose2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialPointerInteractionSourcePose2 { - type Vtable = ISpatialPointerInteractionSourcePose2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialPointerInteractionSourcePose2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeccd86b8_52db_469f_9e3f_80c47f74bce9); -} +::windows_core::imp::com_interface!(ISpatialPointerInteractionSourcePose2, ISpatialPointerInteractionSourcePose2_Vtbl, 0xeccd86b8_52db_469f_9e3f_80c47f74bce9); #[repr(C)] #[doc(hidden)] pub struct ISpatialPointerInteractionSourcePose2_Vtbl { @@ -797,16 +446,7 @@ pub struct ISpatialPointerInteractionSourcePose2_Vtbl { Orientation: usize, pub PositionAccuracy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut SpatialInteractionSourcePositionAccuracy) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialPointerPose(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialPointerPose { - type Vtable = ISpatialPointerPose_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialPointerPose { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6953a42e_c17e_357d_97a1_7269d0ed2d10); -} +::windows_core::imp::com_interface!(ISpatialPointerPose, ISpatialPointerPose_Vtbl, 0x6953a42e_c17e_357d_97a1_7269d0ed2d10); #[repr(C)] #[doc(hidden)] pub struct ISpatialPointerPose_Vtbl { @@ -820,32 +460,14 @@ pub struct ISpatialPointerPose_Vtbl { #[cfg(not(feature = "Perception_People"))] Head: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialPointerPose2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialPointerPose2 { - type Vtable = ISpatialPointerPose2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialPointerPose2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9d202b17_954e_4e0c_96d1_b6790b6fc2fd); -} +::windows_core::imp::com_interface!(ISpatialPointerPose2, ISpatialPointerPose2_Vtbl, 0x9d202b17_954e_4e0c_96d1_b6790b6fc2fd); #[repr(C)] #[doc(hidden)] pub struct ISpatialPointerPose2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub TryGetInteractionSourcePose: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, source: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialPointerPose3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialPointerPose3 { - type Vtable = ISpatialPointerPose3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialPointerPose3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6342f3f0_ec49_5b4b_b8d1_d16cbb16be84); -} +::windows_core::imp::com_interface!(ISpatialPointerPose3, ISpatialPointerPose3_Vtbl, 0x6342f3f0_ec49_5b4b_b8d1_d16cbb16be84); #[repr(C)] #[doc(hidden)] pub struct ISpatialPointerPose3_Vtbl { @@ -856,16 +478,7 @@ pub struct ISpatialPointerPose3_Vtbl { Eyes: usize, pub IsHeadCapturedBySystem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialPointerPoseStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialPointerPoseStatics { - type Vtable = ISpatialPointerPoseStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialPointerPoseStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa25591a9_aca1_3ee0_9816_785cfb2e3fb8); -} +::windows_core::imp::com_interface!(ISpatialPointerPoseStatics, ISpatialPointerPoseStatics_Vtbl, 0xa25591a9_aca1_3ee0_9816_785cfb2e3fb8); #[repr(C)] #[doc(hidden)] pub struct ISpatialPointerPoseStatics_Vtbl { @@ -875,32 +488,14 @@ pub struct ISpatialPointerPoseStatics_Vtbl { #[cfg(not(feature = "Perception_Spatial"))] TryGetAtTimestamp: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialRecognitionEndedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialRecognitionEndedEventArgs { - type Vtable = ISpatialRecognitionEndedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialRecognitionEndedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0e35f5cb_3f75_43f3_ac81_d1dc2df9b1fb); -} +::windows_core::imp::com_interface!(ISpatialRecognitionEndedEventArgs, ISpatialRecognitionEndedEventArgs_Vtbl, 0x0e35f5cb_3f75_43f3_ac81_d1dc2df9b1fb); #[repr(C)] #[doc(hidden)] pub struct ISpatialRecognitionEndedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub InteractionSourceKind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut SpatialInteractionSourceKind) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialRecognitionStartedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialRecognitionStartedEventArgs { - type Vtable = ISpatialRecognitionStartedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialRecognitionStartedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x24da128f_0008_4a6d_aa50_2a76f9cfb264); -} +::windows_core::imp::com_interface!(ISpatialRecognitionStartedEventArgs, ISpatialRecognitionStartedEventArgs_Vtbl, 0x24da128f_0008_4a6d_aa50_2a76f9cfb264); #[repr(C)] #[doc(hidden)] pub struct ISpatialRecognitionStartedEventArgs_Vtbl { @@ -912,16 +507,7 @@ pub struct ISpatialRecognitionStartedEventArgs_Vtbl { TryGetPointerPose: usize, pub IsGesturePossible: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, gesture: SpatialGestureSettings, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialTappedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialTappedEventArgs { - type Vtable = ISpatialTappedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialTappedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x296d83de_f444_4aa1_b2bf_9dc88d567da6); -} +::windows_core::imp::com_interface!(ISpatialTappedEventArgs, ISpatialTappedEventArgs_Vtbl, 0x296d83de_f444_4aa1_b2bf_9dc88d567da6); #[repr(C)] #[doc(hidden)] pub struct ISpatialTappedEventArgs_Vtbl { @@ -936,6 +522,7 @@ pub struct ISpatialTappedEventArgs_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpatialGestureRecognizer(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpatialGestureRecognizer, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SpatialGestureRecognizer { pub fn RecognitionStarted(&self, handler: P0) -> ::windows_core::Result where @@ -1175,19 +762,17 @@ impl ::windows_core::RuntimeType for SpatialGestureRecognizer { } unsafe impl ::windows_core::Interface for SpatialGestureRecognizer { type Vtable = ISpatialGestureRecognizer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpatialGestureRecognizer { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpatialGestureRecognizer { const NAME: &'static str = "Windows.UI.Input.Spatial.SpatialGestureRecognizer"; } -::windows_core::imp::interface_hierarchy!(SpatialGestureRecognizer, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SpatialGestureRecognizer {} unsafe impl ::core::marker::Sync for SpatialGestureRecognizer {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpatialHoldCanceledEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpatialHoldCanceledEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SpatialHoldCanceledEventArgs { pub fn InteractionSourceKind(&self) -> ::windows_core::Result { let this = self; @@ -1202,19 +787,17 @@ impl ::windows_core::RuntimeType for SpatialHoldCanceledEventArgs { } unsafe impl ::windows_core::Interface for SpatialHoldCanceledEventArgs { type Vtable = ISpatialHoldCanceledEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpatialHoldCanceledEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpatialHoldCanceledEventArgs { const NAME: &'static str = "Windows.UI.Input.Spatial.SpatialHoldCanceledEventArgs"; } -::windows_core::imp::interface_hierarchy!(SpatialHoldCanceledEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SpatialHoldCanceledEventArgs {} unsafe impl ::core::marker::Sync for SpatialHoldCanceledEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpatialHoldCompletedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpatialHoldCompletedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SpatialHoldCompletedEventArgs { pub fn InteractionSourceKind(&self) -> ::windows_core::Result { let this = self; @@ -1229,19 +812,17 @@ impl ::windows_core::RuntimeType for SpatialHoldCompletedEventArgs { } unsafe impl ::windows_core::Interface for SpatialHoldCompletedEventArgs { type Vtable = ISpatialHoldCompletedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpatialHoldCompletedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpatialHoldCompletedEventArgs { const NAME: &'static str = "Windows.UI.Input.Spatial.SpatialHoldCompletedEventArgs"; } -::windows_core::imp::interface_hierarchy!(SpatialHoldCompletedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SpatialHoldCompletedEventArgs {} unsafe impl ::core::marker::Sync for SpatialHoldCompletedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpatialHoldStartedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpatialHoldStartedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SpatialHoldStartedEventArgs { pub fn InteractionSourceKind(&self) -> ::windows_core::Result { let this = self; @@ -1268,19 +849,17 @@ impl ::windows_core::RuntimeType for SpatialHoldStartedEventArgs { } unsafe impl ::windows_core::Interface for SpatialHoldStartedEventArgs { type Vtable = ISpatialHoldStartedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpatialHoldStartedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpatialHoldStartedEventArgs { const NAME: &'static str = "Windows.UI.Input.Spatial.SpatialHoldStartedEventArgs"; } -::windows_core::imp::interface_hierarchy!(SpatialHoldStartedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SpatialHoldStartedEventArgs {} unsafe impl ::core::marker::Sync for SpatialHoldStartedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpatialInteraction(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpatialInteraction, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SpatialInteraction { pub fn SourceState(&self) -> ::windows_core::Result { let this = self; @@ -1295,19 +874,17 @@ impl ::windows_core::RuntimeType for SpatialInteraction { } unsafe impl ::windows_core::Interface for SpatialInteraction { type Vtable = ISpatialInteraction_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpatialInteraction { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpatialInteraction { const NAME: &'static str = "Windows.UI.Input.Spatial.SpatialInteraction"; } -::windows_core::imp::interface_hierarchy!(SpatialInteraction, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SpatialInteraction {} unsafe impl ::core::marker::Sync for SpatialInteraction {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpatialInteractionController(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpatialInteractionController, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SpatialInteractionController { pub fn HasTouchpad(&self) -> ::windows_core::Result { let this = self; @@ -1356,7 +933,7 @@ impl SpatialInteractionController { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn TryGetRenderableModelAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetRenderableModelAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1365,7 +942,7 @@ impl SpatialInteractionController { #[doc = "Required features: `\"Devices_Power\"`"] #[cfg(feature = "Devices_Power")] pub fn TryGetBatteryReport(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetBatteryReport)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1377,19 +954,17 @@ impl ::windows_core::RuntimeType for SpatialInteractionController { } unsafe impl ::windows_core::Interface for SpatialInteractionController { type Vtable = ISpatialInteractionController_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpatialInteractionController { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpatialInteractionController { const NAME: &'static str = "Windows.UI.Input.Spatial.SpatialInteractionController"; } -::windows_core::imp::interface_hierarchy!(SpatialInteractionController, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SpatialInteractionController {} unsafe impl ::core::marker::Sync for SpatialInteractionController {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpatialInteractionControllerProperties(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpatialInteractionControllerProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SpatialInteractionControllerProperties { pub fn IsTouchpadTouched(&self) -> ::windows_core::Result { let this = self; @@ -1446,19 +1021,17 @@ impl ::windows_core::RuntimeType for SpatialInteractionControllerProperties { } unsafe impl ::windows_core::Interface for SpatialInteractionControllerProperties { type Vtable = ISpatialInteractionControllerProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpatialInteractionControllerProperties { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpatialInteractionControllerProperties { const NAME: &'static str = "Windows.UI.Input.Spatial.SpatialInteractionControllerProperties"; } -::windows_core::imp::interface_hierarchy!(SpatialInteractionControllerProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SpatialInteractionControllerProperties {} unsafe impl ::core::marker::Sync for SpatialInteractionControllerProperties {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpatialInteractionDetectedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpatialInteractionDetectedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SpatialInteractionDetectedEventArgs { pub fn InteractionSourceKind(&self) -> ::windows_core::Result { let this = self; @@ -1487,7 +1060,7 @@ impl SpatialInteractionDetectedEventArgs { } } pub fn InteractionSource(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).InteractionSource)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1499,19 +1072,17 @@ impl ::windows_core::RuntimeType for SpatialInteractionDetectedEventArgs { } unsafe impl ::windows_core::Interface for SpatialInteractionDetectedEventArgs { type Vtable = ISpatialInteractionDetectedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpatialInteractionDetectedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpatialInteractionDetectedEventArgs { const NAME: &'static str = "Windows.UI.Input.Spatial.SpatialInteractionDetectedEventArgs"; } -::windows_core::imp::interface_hierarchy!(SpatialInteractionDetectedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SpatialInteractionDetectedEventArgs {} unsafe impl ::core::marker::Sync for SpatialInteractionDetectedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpatialInteractionManager(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpatialInteractionManager, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SpatialInteractionManager { pub fn SourceDetected(&self, handler: P0) -> ::windows_core::Result where @@ -1637,19 +1208,17 @@ impl ::windows_core::RuntimeType for SpatialInteractionManager { } unsafe impl ::windows_core::Interface for SpatialInteractionManager { type Vtable = ISpatialInteractionManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpatialInteractionManager { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpatialInteractionManager { const NAME: &'static str = "Windows.UI.Input.Spatial.SpatialInteractionManager"; } -::windows_core::imp::interface_hierarchy!(SpatialInteractionManager, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SpatialInteractionManager {} unsafe impl ::core::marker::Sync for SpatialInteractionManager {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpatialInteractionSource(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpatialInteractionSource, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SpatialInteractionSource { pub fn Id(&self) -> ::windows_core::Result { let this = self; @@ -1666,28 +1235,28 @@ impl SpatialInteractionSource { } } pub fn IsPointingSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsPointingSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsMenuSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsMenuSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsGraspSupported(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsGraspSupported)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Controller(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Controller)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1699,14 +1268,14 @@ impl SpatialInteractionSource { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn Handedness(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Handedness)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1715,7 +1284,7 @@ impl SpatialInteractionSource { #[doc = "Required features: `\"Perception_People\"`"] #[cfg(feature = "Perception_People")] pub fn TryCreateHandMeshObserver(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryCreateHandMeshObserver)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1724,7 +1293,7 @@ impl SpatialInteractionSource { #[doc = "Required features: `\"Perception_People\"`"] #[cfg(feature = "Perception_People")] pub fn TryCreateHandMeshObserverAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryCreateHandMeshObserverAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1736,19 +1305,17 @@ impl ::windows_core::RuntimeType for SpatialInteractionSource { } unsafe impl ::windows_core::Interface for SpatialInteractionSource { type Vtable = ISpatialInteractionSource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpatialInteractionSource { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpatialInteractionSource { const NAME: &'static str = "Windows.UI.Input.Spatial.SpatialInteractionSource"; } -::windows_core::imp::interface_hierarchy!(SpatialInteractionSource, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SpatialInteractionSource {} unsafe impl ::core::marker::Sync for SpatialInteractionSource {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpatialInteractionSourceEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpatialInteractionSourceEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SpatialInteractionSourceEventArgs { pub fn State(&self) -> ::windows_core::Result { let this = self; @@ -1758,7 +1325,7 @@ impl SpatialInteractionSourceEventArgs { } } pub fn PressKind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PressKind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1770,19 +1337,17 @@ impl ::windows_core::RuntimeType for SpatialInteractionSourceEventArgs { } unsafe impl ::windows_core::Interface for SpatialInteractionSourceEventArgs { type Vtable = ISpatialInteractionSourceEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpatialInteractionSourceEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpatialInteractionSourceEventArgs { const NAME: &'static str = "Windows.UI.Input.Spatial.SpatialInteractionSourceEventArgs"; } -::windows_core::imp::interface_hierarchy!(SpatialInteractionSourceEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SpatialInteractionSourceEventArgs {} unsafe impl ::core::marker::Sync for SpatialInteractionSourceEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpatialInteractionSourceLocation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpatialInteractionSourceLocation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SpatialInteractionSourceLocation { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] @@ -1805,14 +1370,14 @@ impl SpatialInteractionSourceLocation { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn Orientation(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Orientation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PositionAccuracy(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PositionAccuracy)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1821,14 +1386,14 @@ impl SpatialInteractionSourceLocation { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn AngularVelocity(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AngularVelocity)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SourcePointerPose(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SourcePointerPose)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1840,19 +1405,17 @@ impl ::windows_core::RuntimeType for SpatialInteractionSourceLocation { } unsafe impl ::windows_core::Interface for SpatialInteractionSourceLocation { type Vtable = ISpatialInteractionSourceLocation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpatialInteractionSourceLocation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpatialInteractionSourceLocation { const NAME: &'static str = "Windows.UI.Input.Spatial.SpatialInteractionSourceLocation"; } -::windows_core::imp::interface_hierarchy!(SpatialInteractionSourceLocation, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SpatialInteractionSourceLocation {} unsafe impl ::core::marker::Sync for SpatialInteractionSourceLocation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpatialInteractionSourceProperties(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpatialInteractionSourceProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SpatialInteractionSourceProperties { #[doc = "Required features: `\"Foundation_Numerics\"`, `\"Perception_Spatial\"`"] #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial"))] @@ -1891,19 +1454,17 @@ impl ::windows_core::RuntimeType for SpatialInteractionSourceProperties { } unsafe impl ::windows_core::Interface for SpatialInteractionSourceProperties { type Vtable = ISpatialInteractionSourceProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpatialInteractionSourceProperties { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpatialInteractionSourceProperties { const NAME: &'static str = "Windows.UI.Input.Spatial.SpatialInteractionSourceProperties"; } -::windows_core::imp::interface_hierarchy!(SpatialInteractionSourceProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SpatialInteractionSourceProperties {} unsafe impl ::core::marker::Sync for SpatialInteractionSourceProperties {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpatialInteractionSourceState(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpatialInteractionSourceState, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SpatialInteractionSourceState { pub fn Source(&self) -> ::windows_core::Result { let this = self; @@ -1948,35 +1509,35 @@ impl SpatialInteractionSourceState { } } pub fn IsSelectPressed(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsSelectPressed)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsMenuPressed(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsMenuPressed)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsGrasped(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsGrasped)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SelectPressedValue(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SelectPressedValue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ControllerProperties(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ControllerProperties)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1985,7 +1546,7 @@ impl SpatialInteractionSourceState { #[doc = "Required features: `\"Perception_People\"`"] #[cfg(feature = "Perception_People")] pub fn TryGetHandPose(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryGetHandPose)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1997,19 +1558,17 @@ impl ::windows_core::RuntimeType for SpatialInteractionSourceState { } unsafe impl ::windows_core::Interface for SpatialInteractionSourceState { type Vtable = ISpatialInteractionSourceState_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpatialInteractionSourceState { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpatialInteractionSourceState { const NAME: &'static str = "Windows.UI.Input.Spatial.SpatialInteractionSourceState"; } -::windows_core::imp::interface_hierarchy!(SpatialInteractionSourceState, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SpatialInteractionSourceState {} unsafe impl ::core::marker::Sync for SpatialInteractionSourceState {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpatialManipulationCanceledEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpatialManipulationCanceledEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SpatialManipulationCanceledEventArgs { pub fn InteractionSourceKind(&self) -> ::windows_core::Result { let this = self; @@ -2024,19 +1583,17 @@ impl ::windows_core::RuntimeType for SpatialManipulationCanceledEventArgs { } unsafe impl ::windows_core::Interface for SpatialManipulationCanceledEventArgs { type Vtable = ISpatialManipulationCanceledEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpatialManipulationCanceledEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpatialManipulationCanceledEventArgs { const NAME: &'static str = "Windows.UI.Input.Spatial.SpatialManipulationCanceledEventArgs"; } -::windows_core::imp::interface_hierarchy!(SpatialManipulationCanceledEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SpatialManipulationCanceledEventArgs {} unsafe impl ::core::marker::Sync for SpatialManipulationCanceledEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpatialManipulationCompletedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpatialManipulationCompletedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SpatialManipulationCompletedEventArgs { pub fn InteractionSourceKind(&self) -> ::windows_core::Result { let this = self; @@ -2063,19 +1620,17 @@ impl ::windows_core::RuntimeType for SpatialManipulationCompletedEventArgs { } unsafe impl ::windows_core::Interface for SpatialManipulationCompletedEventArgs { type Vtable = ISpatialManipulationCompletedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpatialManipulationCompletedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpatialManipulationCompletedEventArgs { const NAME: &'static str = "Windows.UI.Input.Spatial.SpatialManipulationCompletedEventArgs"; } -::windows_core::imp::interface_hierarchy!(SpatialManipulationCompletedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SpatialManipulationCompletedEventArgs {} unsafe impl ::core::marker::Sync for SpatialManipulationCompletedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpatialManipulationDelta(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpatialManipulationDelta, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SpatialManipulationDelta { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] @@ -2092,19 +1647,17 @@ impl ::windows_core::RuntimeType for SpatialManipulationDelta { } unsafe impl ::windows_core::Interface for SpatialManipulationDelta { type Vtable = ISpatialManipulationDelta_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpatialManipulationDelta { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpatialManipulationDelta { const NAME: &'static str = "Windows.UI.Input.Spatial.SpatialManipulationDelta"; } -::windows_core::imp::interface_hierarchy!(SpatialManipulationDelta, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SpatialManipulationDelta {} unsafe impl ::core::marker::Sync for SpatialManipulationDelta {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpatialManipulationStartedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpatialManipulationStartedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SpatialManipulationStartedEventArgs { pub fn InteractionSourceKind(&self) -> ::windows_core::Result { let this = self; @@ -2131,19 +1684,17 @@ impl ::windows_core::RuntimeType for SpatialManipulationStartedEventArgs { } unsafe impl ::windows_core::Interface for SpatialManipulationStartedEventArgs { type Vtable = ISpatialManipulationStartedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpatialManipulationStartedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpatialManipulationStartedEventArgs { const NAME: &'static str = "Windows.UI.Input.Spatial.SpatialManipulationStartedEventArgs"; } -::windows_core::imp::interface_hierarchy!(SpatialManipulationStartedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SpatialManipulationStartedEventArgs {} unsafe impl ::core::marker::Sync for SpatialManipulationStartedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpatialManipulationUpdatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpatialManipulationUpdatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SpatialManipulationUpdatedEventArgs { pub fn InteractionSourceKind(&self) -> ::windows_core::Result { let this = self; @@ -2170,19 +1721,17 @@ impl ::windows_core::RuntimeType for SpatialManipulationUpdatedEventArgs { } unsafe impl ::windows_core::Interface for SpatialManipulationUpdatedEventArgs { type Vtable = ISpatialManipulationUpdatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpatialManipulationUpdatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpatialManipulationUpdatedEventArgs { const NAME: &'static str = "Windows.UI.Input.Spatial.SpatialManipulationUpdatedEventArgs"; } -::windows_core::imp::interface_hierarchy!(SpatialManipulationUpdatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SpatialManipulationUpdatedEventArgs {} unsafe impl ::core::marker::Sync for SpatialManipulationUpdatedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpatialNavigationCanceledEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpatialNavigationCanceledEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SpatialNavigationCanceledEventArgs { pub fn InteractionSourceKind(&self) -> ::windows_core::Result { let this = self; @@ -2197,19 +1746,17 @@ impl ::windows_core::RuntimeType for SpatialNavigationCanceledEventArgs { } unsafe impl ::windows_core::Interface for SpatialNavigationCanceledEventArgs { type Vtable = ISpatialNavigationCanceledEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpatialNavigationCanceledEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpatialNavigationCanceledEventArgs { const NAME: &'static str = "Windows.UI.Input.Spatial.SpatialNavigationCanceledEventArgs"; } -::windows_core::imp::interface_hierarchy!(SpatialNavigationCanceledEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SpatialNavigationCanceledEventArgs {} unsafe impl ::core::marker::Sync for SpatialNavigationCanceledEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpatialNavigationCompletedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpatialNavigationCompletedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SpatialNavigationCompletedEventArgs { pub fn InteractionSourceKind(&self) -> ::windows_core::Result { let this = self; @@ -2233,19 +1780,17 @@ impl ::windows_core::RuntimeType for SpatialNavigationCompletedEventArgs { } unsafe impl ::windows_core::Interface for SpatialNavigationCompletedEventArgs { type Vtable = ISpatialNavigationCompletedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpatialNavigationCompletedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpatialNavigationCompletedEventArgs { const NAME: &'static str = "Windows.UI.Input.Spatial.SpatialNavigationCompletedEventArgs"; } -::windows_core::imp::interface_hierarchy!(SpatialNavigationCompletedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SpatialNavigationCompletedEventArgs {} unsafe impl ::core::marker::Sync for SpatialNavigationCompletedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpatialNavigationStartedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpatialNavigationStartedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SpatialNavigationStartedEventArgs { pub fn InteractionSourceKind(&self) -> ::windows_core::Result { let this = self; @@ -2293,19 +1838,17 @@ impl ::windows_core::RuntimeType for SpatialNavigationStartedEventArgs { } unsafe impl ::windows_core::Interface for SpatialNavigationStartedEventArgs { type Vtable = ISpatialNavigationStartedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpatialNavigationStartedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpatialNavigationStartedEventArgs { const NAME: &'static str = "Windows.UI.Input.Spatial.SpatialNavigationStartedEventArgs"; } -::windows_core::imp::interface_hierarchy!(SpatialNavigationStartedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SpatialNavigationStartedEventArgs {} unsafe impl ::core::marker::Sync for SpatialNavigationStartedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpatialNavigationUpdatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpatialNavigationUpdatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SpatialNavigationUpdatedEventArgs { pub fn InteractionSourceKind(&self) -> ::windows_core::Result { let this = self; @@ -2329,19 +1872,17 @@ impl ::windows_core::RuntimeType for SpatialNavigationUpdatedEventArgs { } unsafe impl ::windows_core::Interface for SpatialNavigationUpdatedEventArgs { type Vtable = ISpatialNavigationUpdatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpatialNavigationUpdatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpatialNavigationUpdatedEventArgs { const NAME: &'static str = "Windows.UI.Input.Spatial.SpatialNavigationUpdatedEventArgs"; } -::windows_core::imp::interface_hierarchy!(SpatialNavigationUpdatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SpatialNavigationUpdatedEventArgs {} unsafe impl ::core::marker::Sync for SpatialNavigationUpdatedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpatialPointerInteractionSourcePose(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpatialPointerInteractionSourcePose, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SpatialPointerInteractionSourcePose { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] @@ -2373,14 +1914,14 @@ impl SpatialPointerInteractionSourcePose { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] pub fn Orientation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Orientation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PositionAccuracy(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PositionAccuracy)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2392,19 +1933,17 @@ impl ::windows_core::RuntimeType for SpatialPointerInteractionSourcePose { } unsafe impl ::windows_core::Interface for SpatialPointerInteractionSourcePose { type Vtable = ISpatialPointerInteractionSourcePose_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpatialPointerInteractionSourcePose { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpatialPointerInteractionSourcePose { const NAME: &'static str = "Windows.UI.Input.Spatial.SpatialPointerInteractionSourcePose"; } -::windows_core::imp::interface_hierarchy!(SpatialPointerInteractionSourcePose, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SpatialPointerInteractionSourcePose {} unsafe impl ::core::marker::Sync for SpatialPointerInteractionSourcePose {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpatialPointerPose(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpatialPointerPose, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SpatialPointerPose { #[doc = "Required features: `\"Perception\"`"] #[cfg(feature = "Perception")] @@ -2428,7 +1967,7 @@ impl SpatialPointerPose { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -2437,14 +1976,14 @@ impl SpatialPointerPose { #[doc = "Required features: `\"Perception_People\"`"] #[cfg(feature = "Perception_People")] pub fn Eyes(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Eyes)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsHeadCapturedBySystem(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsHeadCapturedBySystem)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2473,19 +2012,17 @@ impl ::windows_core::RuntimeType for SpatialPointerPose { } unsafe impl ::windows_core::Interface for SpatialPointerPose { type Vtable = ISpatialPointerPose_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpatialPointerPose { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpatialPointerPose { const NAME: &'static str = "Windows.UI.Input.Spatial.SpatialPointerPose"; } -::windows_core::imp::interface_hierarchy!(SpatialPointerPose, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SpatialPointerPose {} unsafe impl ::core::marker::Sync for SpatialPointerPose {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpatialRecognitionEndedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpatialRecognitionEndedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SpatialRecognitionEndedEventArgs { pub fn InteractionSourceKind(&self) -> ::windows_core::Result { let this = self; @@ -2500,19 +2037,17 @@ impl ::windows_core::RuntimeType for SpatialRecognitionEndedEventArgs { } unsafe impl ::windows_core::Interface for SpatialRecognitionEndedEventArgs { type Vtable = ISpatialRecognitionEndedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpatialRecognitionEndedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpatialRecognitionEndedEventArgs { const NAME: &'static str = "Windows.UI.Input.Spatial.SpatialRecognitionEndedEventArgs"; } -::windows_core::imp::interface_hierarchy!(SpatialRecognitionEndedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SpatialRecognitionEndedEventArgs {} unsafe impl ::core::marker::Sync for SpatialRecognitionEndedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpatialRecognitionStartedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpatialRecognitionStartedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SpatialRecognitionStartedEventArgs { pub fn InteractionSourceKind(&self) -> ::windows_core::Result { let this = self; @@ -2546,19 +2081,17 @@ impl ::windows_core::RuntimeType for SpatialRecognitionStartedEventArgs { } unsafe impl ::windows_core::Interface for SpatialRecognitionStartedEventArgs { type Vtable = ISpatialRecognitionStartedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpatialRecognitionStartedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpatialRecognitionStartedEventArgs { const NAME: &'static str = "Windows.UI.Input.Spatial.SpatialRecognitionStartedEventArgs"; } -::windows_core::imp::interface_hierarchy!(SpatialRecognitionStartedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SpatialRecognitionStartedEventArgs {} unsafe impl ::core::marker::Sync for SpatialRecognitionStartedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SpatialTappedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SpatialTappedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SpatialTappedEventArgs { pub fn InteractionSourceKind(&self) -> ::windows_core::Result { let this = self; @@ -2592,14 +2125,11 @@ impl ::windows_core::RuntimeType for SpatialTappedEventArgs { } unsafe impl ::windows_core::Interface for SpatialTappedEventArgs { type Vtable = ISpatialTappedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SpatialTappedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SpatialTappedEventArgs { const NAME: &'static str = "Windows.UI.Input.Spatial.SpatialTappedEventArgs"; } -::windows_core::imp::interface_hierarchy!(SpatialTappedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SpatialTappedEventArgs {} unsafe impl ::core::marker::Sync for SpatialTappedEventArgs {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/UI/Input/impl.rs b/crates/libs/windows/src/Windows/UI/Input/impl.rs index 33d14e09d7..ecb01de3bc 100644 --- a/crates/libs/windows/src/Windows/UI/Input/impl.rs +++ b/crates/libs/windows/src/Windows/UI/Input/impl.rs @@ -50,6 +50,6 @@ impl IPointerPointTransform_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/UI/Input/mod.rs b/crates/libs/windows/src/Windows/UI/Input/mod.rs index aeced0bf8c..58ddc61594 100644 --- a/crates/libs/windows/src/Windows/UI/Input/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Input/mod.rs @@ -10,46 +10,19 @@ pub mod Preview; #[cfg(feature = "UI_Input_Spatial")] #[doc = "Required features: `\"UI_Input_Spatial\"`"] pub mod Spatial; -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAttachableInputObject(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAttachableInputObject { - type Vtable = IAttachableInputObject_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAttachableInputObject { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9b822734_a3c1_542a_b2f4_0e32b773fb07); -} +::windows_core::imp::com_interface!(IAttachableInputObject, IAttachableInputObject_Vtbl, 0x9b822734_a3c1_542a_b2f4_0e32b773fb07); #[repr(C)] #[doc(hidden)] pub struct IAttachableInputObject_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAttachableInputObjectFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAttachableInputObjectFactory { - type Vtable = IAttachableInputObjectFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAttachableInputObjectFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa4c54c4e_42bc_58fa_a640_ea1516f4c06b); -} +::windows_core::imp::com_interface!(IAttachableInputObjectFactory, IAttachableInputObjectFactory_Vtbl, 0xa4c54c4e_42bc_58fa_a640_ea1516f4c06b); #[repr(C)] #[doc(hidden)] pub struct IAttachableInputObjectFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICrossSlidingEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICrossSlidingEventArgs { - type Vtable = ICrossSlidingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICrossSlidingEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe9374738_6f88_41d9_8720_78e08e398349); -} +::windows_core::imp::com_interface!(ICrossSlidingEventArgs, ICrossSlidingEventArgs_Vtbl, 0xe9374738_6f88_41d9_8720_78e08e398349); #[repr(C)] #[doc(hidden)] pub struct ICrossSlidingEventArgs_Vtbl { @@ -61,32 +34,14 @@ pub struct ICrossSlidingEventArgs_Vtbl { pub Position: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::Point) -> ::windows_core::HRESULT, pub CrossSlidingState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut CrossSlidingState) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICrossSlidingEventArgs2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICrossSlidingEventArgs2 { - type Vtable = ICrossSlidingEventArgs2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICrossSlidingEventArgs2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeefb7d48_c070_59f3_8dab_bcaf621d8687); -} +::windows_core::imp::com_interface!(ICrossSlidingEventArgs2, ICrossSlidingEventArgs2_Vtbl, 0xeefb7d48_c070_59f3_8dab_bcaf621d8687); #[repr(C)] #[doc(hidden)] pub struct ICrossSlidingEventArgs2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ContactCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDraggingEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDraggingEventArgs { - type Vtable = IDraggingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDraggingEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1c905384_083c_4bd3_b559_179cddeb33ec); -} +::windows_core::imp::com_interface!(IDraggingEventArgs, IDraggingEventArgs_Vtbl, 0x1c905384_083c_4bd3_b559_179cddeb33ec); #[repr(C)] #[doc(hidden)] pub struct IDraggingEventArgs_Vtbl { @@ -98,32 +53,14 @@ pub struct IDraggingEventArgs_Vtbl { pub Position: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::Point) -> ::windows_core::HRESULT, pub DraggingState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut DraggingState) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDraggingEventArgs2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDraggingEventArgs2 { - type Vtable = IDraggingEventArgs2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDraggingEventArgs2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x71efdbf9_382a_55ca_b4b9_008123c1bf1a); -} +::windows_core::imp::com_interface!(IDraggingEventArgs2, IDraggingEventArgs2_Vtbl, 0x71efdbf9_382a_55ca_b4b9_008123c1bf1a); #[repr(C)] #[doc(hidden)] pub struct IDraggingEventArgs2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ContactCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEdgeGesture(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEdgeGesture { - type Vtable = IEdgeGesture_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEdgeGesture { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x580d5292_2ab1_49aa_a7f0_33bd3f8df9f1); -} +::windows_core::imp::com_interface!(IEdgeGesture, IEdgeGesture_Vtbl, 0x580d5292_2ab1_49aa_a7f0_33bd3f8df9f1); #[repr(C)] #[doc(hidden)] pub struct IEdgeGesture_Vtbl { @@ -135,48 +72,21 @@ pub struct IEdgeGesture_Vtbl { pub Canceled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveCanceled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEdgeGestureEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEdgeGestureEventArgs { - type Vtable = IEdgeGestureEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEdgeGestureEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x44fa4a24_2d09_42e1_8b5e_368208796a4c); -} +::windows_core::imp::com_interface!(IEdgeGestureEventArgs, IEdgeGestureEventArgs_Vtbl, 0x44fa4a24_2d09_42e1_8b5e_368208796a4c); #[repr(C)] #[doc(hidden)] pub struct IEdgeGestureEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Kind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut EdgeGestureKind) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEdgeGestureStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEdgeGestureStatics { - type Vtable = IEdgeGestureStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEdgeGestureStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbc6a8519_18ee_4043_9839_4fc584d60a14); -} +::windows_core::imp::com_interface!(IEdgeGestureStatics, IEdgeGestureStatics_Vtbl, 0xbc6a8519_18ee_4043_9839_4fc584d60a14); #[repr(C)] #[doc(hidden)] pub struct IEdgeGestureStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetForCurrentView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGestureRecognizer(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGestureRecognizer { - type Vtable = IGestureRecognizer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGestureRecognizer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb47a37bf_3d6b_4f88_83e8_6dcb4012ffb0); -} +::windows_core::imp::com_interface!(IGestureRecognizer, IGestureRecognizer_Vtbl, 0xb47a37bf_3d6b_4f88_83e8_6dcb4012ffb0); #[repr(C)] #[doc(hidden)] pub struct IGestureRecognizer_Vtbl { @@ -243,16 +153,7 @@ pub struct IGestureRecognizer_Vtbl { pub CrossSliding: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveCrossSliding: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGestureRecognizer2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGestureRecognizer2 { - type Vtable = IGestureRecognizer2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGestureRecognizer2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd646097f_6ef7_5746_8ba8_8ff2206e6f3b); -} +::windows_core::imp::com_interface!(IGestureRecognizer2, IGestureRecognizer2_Vtbl, 0xd646097f_6ef7_5746_8ba8_8ff2206e6f3b); #[repr(C)] #[doc(hidden)] pub struct IGestureRecognizer2_Vtbl { @@ -274,16 +175,7 @@ pub struct IGestureRecognizer2_Vtbl { pub TranslationMaxContactCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, pub SetTranslationMaxContactCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHoldingEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHoldingEventArgs { - type Vtable = IHoldingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHoldingEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2bf755c5_e799_41b4_bb40_242f40959b71); -} +::windows_core::imp::com_interface!(IHoldingEventArgs, IHoldingEventArgs_Vtbl, 0x2bf755c5_e799_41b4_bb40_242f40959b71); #[repr(C)] #[doc(hidden)] pub struct IHoldingEventArgs_Vtbl { @@ -295,16 +187,7 @@ pub struct IHoldingEventArgs_Vtbl { pub Position: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::Point) -> ::windows_core::HRESULT, pub HoldingState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut HoldingState) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHoldingEventArgs2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHoldingEventArgs2 { - type Vtable = IHoldingEventArgs2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHoldingEventArgs2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x141da9ea_4c79_5674_afea_493fdeb91f19); -} +::windows_core::imp::com_interface!(IHoldingEventArgs2, IHoldingEventArgs2_Vtbl, 0x141da9ea_4c79_5674_afea_493fdeb91f19); #[repr(C)] #[doc(hidden)] pub struct IHoldingEventArgs2_Vtbl { @@ -312,16 +195,7 @@ pub struct IHoldingEventArgs2_Vtbl { pub ContactCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, pub CurrentContactCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInputActivationListener(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInputActivationListener { - type Vtable = IInputActivationListener_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInputActivationListener { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5d6d4ed2_28c7_5ae3_aa74_c918a9f243ca); -} +::windows_core::imp::com_interface!(IInputActivationListener, IInputActivationListener_Vtbl, 0x5d6d4ed2_28c7_5ae3_aa74_c918a9f243ca); #[repr(C)] #[doc(hidden)] pub struct IInputActivationListener_Vtbl { @@ -330,32 +204,14 @@ pub struct IInputActivationListener_Vtbl { pub InputActivationChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveInputActivationChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInputActivationListenerActivationChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInputActivationListenerActivationChangedEventArgs { - type Vtable = IInputActivationListenerActivationChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInputActivationListenerActivationChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7699b465_1dcf_5791_b4b9_6cafbeed2056); -} +::windows_core::imp::com_interface!(IInputActivationListenerActivationChangedEventArgs, IInputActivationListenerActivationChangedEventArgs_Vtbl, 0x7699b465_1dcf_5791_b4b9_6cafbeed2056); #[repr(C)] #[doc(hidden)] pub struct IInputActivationListenerActivationChangedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub State: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut InputActivationState) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKeyboardDeliveryInterceptor(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKeyboardDeliveryInterceptor { - type Vtable = IKeyboardDeliveryInterceptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKeyboardDeliveryInterceptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb4baf068_8f49_446c_8db5_8c0ffe85cc9e); -} +::windows_core::imp::com_interface!(IKeyboardDeliveryInterceptor, IKeyboardDeliveryInterceptor_Vtbl, 0xb4baf068_8f49_446c_8db5_8c0ffe85cc9e); #[repr(C)] #[doc(hidden)] pub struct IKeyboardDeliveryInterceptor_Vtbl { @@ -373,32 +229,14 @@ pub struct IKeyboardDeliveryInterceptor_Vtbl { KeyUp: usize, pub RemoveKeyUp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKeyboardDeliveryInterceptorStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKeyboardDeliveryInterceptorStatics { - type Vtable = IKeyboardDeliveryInterceptorStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKeyboardDeliveryInterceptorStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf9f63ba2_ceba_4755_8a7e_14c0ffecd239); -} +::windows_core::imp::com_interface!(IKeyboardDeliveryInterceptorStatics, IKeyboardDeliveryInterceptorStatics_Vtbl, 0xf9f63ba2_ceba_4755_8a7e_14c0ffecd239); #[repr(C)] #[doc(hidden)] pub struct IKeyboardDeliveryInterceptorStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetForCurrentView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IManipulationCompletedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IManipulationCompletedEventArgs { - type Vtable = IManipulationCompletedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IManipulationCompletedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb34ab22b_d19b_46ff_9f38_dec7754bb9e7); -} +::windows_core::imp::com_interface!(IManipulationCompletedEventArgs, IManipulationCompletedEventArgs_Vtbl, 0xb34ab22b_d19b_46ff_9f38_dec7754bb9e7); #[repr(C)] #[doc(hidden)] pub struct IManipulationCompletedEventArgs_Vtbl { @@ -411,16 +249,7 @@ pub struct IManipulationCompletedEventArgs_Vtbl { pub Cumulative: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ManipulationDelta) -> ::windows_core::HRESULT, pub Velocities: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ManipulationVelocities) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IManipulationCompletedEventArgs2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IManipulationCompletedEventArgs2 { - type Vtable = IManipulationCompletedEventArgs2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IManipulationCompletedEventArgs2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf0c0dce7_30a9_5b96_886f_6560a85e4757); -} +::windows_core::imp::com_interface!(IManipulationCompletedEventArgs2, IManipulationCompletedEventArgs2_Vtbl, 0xf0c0dce7_30a9_5b96_886f_6560a85e4757); #[repr(C)] #[doc(hidden)] pub struct IManipulationCompletedEventArgs2_Vtbl { @@ -428,16 +257,7 @@ pub struct IManipulationCompletedEventArgs2_Vtbl { pub ContactCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, pub CurrentContactCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IManipulationInertiaStartingEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IManipulationInertiaStartingEventArgs { - type Vtable = IManipulationInertiaStartingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IManipulationInertiaStartingEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdd37a898_26bf_467a_9ce5_ccf3fb11371e); -} +::windows_core::imp::com_interface!(IManipulationInertiaStartingEventArgs, IManipulationInertiaStartingEventArgs_Vtbl, 0xdd37a898_26bf_467a_9ce5_ccf3fb11371e); #[repr(C)] #[doc(hidden)] pub struct IManipulationInertiaStartingEventArgs_Vtbl { @@ -451,32 +271,14 @@ pub struct IManipulationInertiaStartingEventArgs_Vtbl { pub Cumulative: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ManipulationDelta) -> ::windows_core::HRESULT, pub Velocities: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ManipulationVelocities) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IManipulationInertiaStartingEventArgs2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IManipulationInertiaStartingEventArgs2 { - type Vtable = IManipulationInertiaStartingEventArgs2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IManipulationInertiaStartingEventArgs2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc25409b8_f9fa_5a45_bd97_dcbbb2201860); -} +::windows_core::imp::com_interface!(IManipulationInertiaStartingEventArgs2, IManipulationInertiaStartingEventArgs2_Vtbl, 0xc25409b8_f9fa_5a45_bd97_dcbbb2201860); #[repr(C)] #[doc(hidden)] pub struct IManipulationInertiaStartingEventArgs2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ContactCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IManipulationStartedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IManipulationStartedEventArgs { - type Vtable = IManipulationStartedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IManipulationStartedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xddec873e_cfce_4932_8c1d_3c3d011a34c0); -} +::windows_core::imp::com_interface!(IManipulationStartedEventArgs, IManipulationStartedEventArgs_Vtbl, 0xddec873e_cfce_4932_8c1d_3c3d011a34c0); #[repr(C)] #[doc(hidden)] pub struct IManipulationStartedEventArgs_Vtbl { @@ -488,32 +290,14 @@ pub struct IManipulationStartedEventArgs_Vtbl { pub Position: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::Point) -> ::windows_core::HRESULT, pub Cumulative: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ManipulationDelta) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IManipulationStartedEventArgs2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IManipulationStartedEventArgs2 { - type Vtable = IManipulationStartedEventArgs2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IManipulationStartedEventArgs2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2da3db4e_e583_5055_afaa_16fd986531a6); -} +::windows_core::imp::com_interface!(IManipulationStartedEventArgs2, IManipulationStartedEventArgs2_Vtbl, 0x2da3db4e_e583_5055_afaa_16fd986531a6); #[repr(C)] #[doc(hidden)] pub struct IManipulationStartedEventArgs2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ContactCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IManipulationUpdatedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IManipulationUpdatedEventArgs { - type Vtable = IManipulationUpdatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IManipulationUpdatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcb354ce5_abb8_4f9f_b3ce_8181aa61ad82); -} +::windows_core::imp::com_interface!(IManipulationUpdatedEventArgs, IManipulationUpdatedEventArgs_Vtbl, 0xcb354ce5_abb8_4f9f_b3ce_8181aa61ad82); #[repr(C)] #[doc(hidden)] pub struct IManipulationUpdatedEventArgs_Vtbl { @@ -527,16 +311,7 @@ pub struct IManipulationUpdatedEventArgs_Vtbl { pub Cumulative: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ManipulationDelta) -> ::windows_core::HRESULT, pub Velocities: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ManipulationVelocities) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IManipulationUpdatedEventArgs2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IManipulationUpdatedEventArgs2 { - type Vtable = IManipulationUpdatedEventArgs2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IManipulationUpdatedEventArgs2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf3dfb96a_3306_5903_a1c5_ff9757a8689e); -} +::windows_core::imp::com_interface!(IManipulationUpdatedEventArgs2, IManipulationUpdatedEventArgs2_Vtbl, 0xf3dfb96a_3306_5903_a1c5_ff9757a8689e); #[repr(C)] #[doc(hidden)] pub struct IManipulationUpdatedEventArgs2_Vtbl { @@ -544,16 +319,7 @@ pub struct IManipulationUpdatedEventArgs2_Vtbl { pub ContactCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, pub CurrentContactCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMouseWheelParameters(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMouseWheelParameters { - type Vtable = IMouseWheelParameters_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMouseWheelParameters { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xead0ca44_9ded_4037_8149_5e4cc2564468); -} +::windows_core::imp::com_interface!(IMouseWheelParameters, IMouseWheelParameters_Vtbl, 0xead0ca44_9ded_4037_8149_5e4cc2564468); #[repr(C)] #[doc(hidden)] pub struct IMouseWheelParameters_Vtbl { @@ -567,16 +333,7 @@ pub struct IMouseWheelParameters_Vtbl { pub PageTranslation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::Point) -> ::windows_core::HRESULT, pub SetPageTranslation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::Foundation::Point) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPointerPoint(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPointerPoint { - type Vtable = IPointerPoint_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPointerPoint { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe995317d_7296_42d9_8233_c5be73b74a4a); -} +::windows_core::imp::com_interface!(IPointerPoint, IPointerPoint_Vtbl, 0xe995317d_7296_42d9_8233_c5be73b74a4a); #[repr(C)] #[doc(hidden)] pub struct IPointerPoint_Vtbl { @@ -593,16 +350,7 @@ pub struct IPointerPoint_Vtbl { pub IsInContact: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub Properties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPointerPointProperties(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPointerPointProperties { - type Vtable = IPointerPointProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPointerPointProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc79d8a4b_c163_4ee7_803f_67ce79f9972d); -} +::windows_core::imp::com_interface!(IPointerPointProperties, IPointerPointProperties_Vtbl, 0xc79d8a4b_c163_4ee7_803f_67ce79f9972d); #[repr(C)] #[doc(hidden)] pub struct IPointerPointProperties_Vtbl { @@ -632,32 +380,14 @@ pub struct IPointerPointProperties_Vtbl { pub HasUsage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, usagepage: u32, usageid: u32, result__: *mut bool) -> ::windows_core::HRESULT, pub GetUsageValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, usagepage: u32, usageid: u32, result__: *mut i32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPointerPointProperties2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPointerPointProperties2 { - type Vtable = IPointerPointProperties2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPointerPointProperties2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x22c3433a_c83b_41c0_a296_5e232d64d6af); -} +::windows_core::imp::com_interface!(IPointerPointProperties2, IPointerPointProperties2_Vtbl, 0x22c3433a_c83b_41c0_a296_5e232d64d6af); #[repr(C)] #[doc(hidden)] pub struct IPointerPointProperties2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ZDistance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPointerPointStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPointerPointStatics { - type Vtable = IPointerPointStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPointerPointStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa506638d_2a1a_413e_bc75_9f38381cc069); -} +::windows_core::imp::com_interface!(IPointerPointStatics, IPointerPointStatics_Vtbl, 0xa506638d_2a1a_413e_bc75_9f38381cc069); #[repr(C)] #[doc(hidden)] pub struct IPointerPointStatics_Vtbl { @@ -673,9 +403,8 @@ pub struct IPointerPointStatics_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetIntermediatePointsTransformed: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPointerPointTransform(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPointerPointTransform, IPointerPointTransform_Vtbl, 0x4d5fe14f_b87c_4028_bc9c_59e9947fb056); +::windows_core::imp::interface_hierarchy!(IPointerPointTransform, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IPointerPointTransform { pub fn Inverse(&self) -> ::windows_core::Result { let this = self; @@ -699,16 +428,9 @@ impl IPointerPointTransform { } } } -::windows_core::imp::interface_hierarchy!(IPointerPointTransform, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IPointerPointTransform { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IPointerPointTransform { - type Vtable = IPointerPointTransform_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPointerPointTransform { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4d5fe14f_b87c_4028_bc9c_59e9947fb056); -} #[repr(C)] #[doc(hidden)] pub struct IPointerPointTransform_Vtbl { @@ -717,16 +439,7 @@ pub struct IPointerPointTransform_Vtbl { pub TryTransform: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, inpoint: super::super::Foundation::Point, outpoint: *mut super::super::Foundation::Point, result__: *mut bool) -> ::windows_core::HRESULT, pub TransformBounds: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rect: super::super::Foundation::Rect, result__: *mut super::super::Foundation::Rect) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPointerVisualizationSettings(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPointerVisualizationSettings { - type Vtable = IPointerVisualizationSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPointerVisualizationSettings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4d1e6461_84f7_499d_bd91_2a36e2b7aaa2); -} +::windows_core::imp::com_interface!(IPointerVisualizationSettings, IPointerVisualizationSettings_Vtbl, 0x4d1e6461_84f7_499d_bd91_2a36e2b7aaa2); #[repr(C)] #[doc(hidden)] pub struct IPointerVisualizationSettings_Vtbl { @@ -736,32 +449,14 @@ pub struct IPointerVisualizationSettings_Vtbl { pub SetIsBarrelButtonFeedbackEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, pub IsBarrelButtonFeedbackEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPointerVisualizationSettingsStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPointerVisualizationSettingsStatics { - type Vtable = IPointerVisualizationSettingsStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPointerVisualizationSettingsStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x68870edb_165b_4214_b4f3_584eca8c8a69); -} +::windows_core::imp::com_interface!(IPointerVisualizationSettingsStatics, IPointerVisualizationSettingsStatics_Vtbl, 0x68870edb_165b_4214_b4f3_584eca8c8a69); #[repr(C)] #[doc(hidden)] pub struct IPointerVisualizationSettingsStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetForCurrentView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRadialController(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRadialController { - type Vtable = IRadialController_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRadialController { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3055d1c8_df51_43d4_b23b_0e1037467a09); -} +::windows_core::imp::com_interface!(IRadialController, IRadialController_Vtbl, 0x3055d1c8_df51_43d4_b23b_0e1037467a09); #[repr(C)] #[doc(hidden)] pub struct IRadialController_Vtbl { @@ -786,16 +481,7 @@ pub struct IRadialController_Vtbl { pub ControlAcquired: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveControlAcquired: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRadialController2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRadialController2 { - type Vtable = IRadialController2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRadialController2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3d577eff_4cee_11e6_b535_001bdc06ab3b); -} +::windows_core::imp::com_interface!(IRadialController2, IRadialController2_Vtbl, 0x3d577eff_4cee_11e6_b535_001bdc06ab3b); #[repr(C)] #[doc(hidden)] pub struct IRadialController2_Vtbl { @@ -807,32 +493,14 @@ pub struct IRadialController2_Vtbl { pub ButtonReleased: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveButtonReleased: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRadialControllerButtonClickedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRadialControllerButtonClickedEventArgs { - type Vtable = IRadialControllerButtonClickedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRadialControllerButtonClickedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x206aa438_e651_11e5_bf62_2c27d7404e85); -} +::windows_core::imp::com_interface!(IRadialControllerButtonClickedEventArgs, IRadialControllerButtonClickedEventArgs_Vtbl, 0x206aa438_e651_11e5_bf62_2c27d7404e85); #[repr(C)] #[doc(hidden)] pub struct IRadialControllerButtonClickedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Contact: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRadialControllerButtonClickedEventArgs2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRadialControllerButtonClickedEventArgs2 { - type Vtable = IRadialControllerButtonClickedEventArgs2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRadialControllerButtonClickedEventArgs2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3d577ef3_3cee_11e6_b535_001bdc06ab3b); -} +::windows_core::imp::com_interface!(IRadialControllerButtonClickedEventArgs2, IRadialControllerButtonClickedEventArgs2_Vtbl, 0x3d577ef3_3cee_11e6_b535_001bdc06ab3b); #[repr(C)] #[doc(hidden)] pub struct IRadialControllerButtonClickedEventArgs2_Vtbl { @@ -842,16 +510,7 @@ pub struct IRadialControllerButtonClickedEventArgs2_Vtbl { #[cfg(not(feature = "Devices_Haptics"))] SimpleHapticsController: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRadialControllerButtonHoldingEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRadialControllerButtonHoldingEventArgs { - type Vtable = IRadialControllerButtonHoldingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRadialControllerButtonHoldingEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3d577eee_3cee_11e6_b535_001bdc06ab3b); -} +::windows_core::imp::com_interface!(IRadialControllerButtonHoldingEventArgs, IRadialControllerButtonHoldingEventArgs_Vtbl, 0x3d577eee_3cee_11e6_b535_001bdc06ab3b); #[repr(C)] #[doc(hidden)] pub struct IRadialControllerButtonHoldingEventArgs_Vtbl { @@ -862,16 +521,7 @@ pub struct IRadialControllerButtonHoldingEventArgs_Vtbl { #[cfg(not(feature = "Devices_Haptics"))] SimpleHapticsController: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRadialControllerButtonPressedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRadialControllerButtonPressedEventArgs { - type Vtable = IRadialControllerButtonPressedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRadialControllerButtonPressedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3d577eed_4cee_11e6_b535_001bdc06ab3b); -} +::windows_core::imp::com_interface!(IRadialControllerButtonPressedEventArgs, IRadialControllerButtonPressedEventArgs_Vtbl, 0x3d577eed_4cee_11e6_b535_001bdc06ab3b); #[repr(C)] #[doc(hidden)] pub struct IRadialControllerButtonPressedEventArgs_Vtbl { @@ -882,16 +532,7 @@ pub struct IRadialControllerButtonPressedEventArgs_Vtbl { #[cfg(not(feature = "Devices_Haptics"))] SimpleHapticsController: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRadialControllerButtonReleasedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRadialControllerButtonReleasedEventArgs { - type Vtable = IRadialControllerButtonReleasedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRadialControllerButtonReleasedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3d577eef_3cee_11e6_b535_001bdc06ab3b); -} +::windows_core::imp::com_interface!(IRadialControllerButtonReleasedEventArgs, IRadialControllerButtonReleasedEventArgs_Vtbl, 0x3d577eef_3cee_11e6_b535_001bdc06ab3b); #[repr(C)] #[doc(hidden)] pub struct IRadialControllerButtonReleasedEventArgs_Vtbl { @@ -902,16 +543,7 @@ pub struct IRadialControllerButtonReleasedEventArgs_Vtbl { #[cfg(not(feature = "Devices_Haptics"))] SimpleHapticsController: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRadialControllerConfiguration(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRadialControllerConfiguration { - type Vtable = IRadialControllerConfiguration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRadialControllerConfiguration { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa6b79ecb_6a52_4430_910c_56370a9d6b42); -} +::windows_core::imp::com_interface!(IRadialControllerConfiguration, IRadialControllerConfiguration_Vtbl, 0xa6b79ecb_6a52_4430_910c_56370a9d6b42); #[repr(C)] #[doc(hidden)] pub struct IRadialControllerConfiguration_Vtbl { @@ -923,16 +555,7 @@ pub struct IRadialControllerConfiguration_Vtbl { pub ResetToDefaultMenuItems: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub TrySelectDefaultMenuItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: RadialControllerSystemMenuItemKind, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRadialControllerConfiguration2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRadialControllerConfiguration2 { - type Vtable = IRadialControllerConfiguration2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRadialControllerConfiguration2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3d577ef7_3cee_11e6_b535_001bdc06ab3b); -} +::windows_core::imp::com_interface!(IRadialControllerConfiguration2, IRadialControllerConfiguration2_Vtbl, 0x3d577ef7_3cee_11e6_b535_001bdc06ab3b); #[repr(C)] #[doc(hidden)] pub struct IRadialControllerConfiguration2_Vtbl { @@ -942,32 +565,14 @@ pub struct IRadialControllerConfiguration2_Vtbl { pub SetIsMenuSuppressed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, pub IsMenuSuppressed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRadialControllerConfigurationStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRadialControllerConfigurationStatics { - type Vtable = IRadialControllerConfigurationStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRadialControllerConfigurationStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x79b6b0e5_069a_4486_a99d_8db772b9642f); -} +::windows_core::imp::com_interface!(IRadialControllerConfigurationStatics, IRadialControllerConfigurationStatics_Vtbl, 0x79b6b0e5_069a_4486_a99d_8db772b9642f); #[repr(C)] #[doc(hidden)] pub struct IRadialControllerConfigurationStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetForCurrentView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRadialControllerConfigurationStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRadialControllerConfigurationStatics2 { - type Vtable = IRadialControllerConfigurationStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRadialControllerConfigurationStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x53e08b17_e205_48d3_9caf_80ff47c4d7c7); -} +::windows_core::imp::com_interface!(IRadialControllerConfigurationStatics2, IRadialControllerConfigurationStatics2_Vtbl, 0x53e08b17_e205_48d3_9caf_80ff47c4d7c7); #[repr(C)] #[doc(hidden)] pub struct IRadialControllerConfigurationStatics2_Vtbl { @@ -977,32 +582,14 @@ pub struct IRadialControllerConfigurationStatics2_Vtbl { pub SetIsAppControllerEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, pub IsAppControllerEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRadialControllerControlAcquiredEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRadialControllerControlAcquiredEventArgs { - type Vtable = IRadialControllerControlAcquiredEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRadialControllerControlAcquiredEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x206aa439_e651_11e5_bf62_2c27d7404e85); -} +::windows_core::imp::com_interface!(IRadialControllerControlAcquiredEventArgs, IRadialControllerControlAcquiredEventArgs_Vtbl, 0x206aa439_e651_11e5_bf62_2c27d7404e85); #[repr(C)] #[doc(hidden)] pub struct IRadialControllerControlAcquiredEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Contact: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRadialControllerControlAcquiredEventArgs2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRadialControllerControlAcquiredEventArgs2 { - type Vtable = IRadialControllerControlAcquiredEventArgs2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRadialControllerControlAcquiredEventArgs2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3d577ef4_3cee_11e6_b535_001bdc06ab3b); -} +::windows_core::imp::com_interface!(IRadialControllerControlAcquiredEventArgs2, IRadialControllerControlAcquiredEventArgs2_Vtbl, 0x3d577ef4_3cee_11e6_b535_001bdc06ab3b); #[repr(C)] #[doc(hidden)] pub struct IRadialControllerControlAcquiredEventArgs2_Vtbl { @@ -1013,16 +600,7 @@ pub struct IRadialControllerControlAcquiredEventArgs2_Vtbl { #[cfg(not(feature = "Devices_Haptics"))] SimpleHapticsController: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRadialControllerMenu(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRadialControllerMenu { - type Vtable = IRadialControllerMenu_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRadialControllerMenu { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8506b35d_f640_4412_aba0_bad077e5ea8a); -} +::windows_core::imp::com_interface!(IRadialControllerMenu, IRadialControllerMenu_Vtbl, 0x8506b35d_f640_4412_aba0_bad077e5ea8a); #[repr(C)] #[doc(hidden)] pub struct IRadialControllerMenu_Vtbl { @@ -1037,16 +615,7 @@ pub struct IRadialControllerMenu_Vtbl { pub SelectMenuItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, menuitem: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub TrySelectPreviouslySelectedMenuItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRadialControllerMenuItem(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRadialControllerMenuItem { - type Vtable = IRadialControllerMenuItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRadialControllerMenuItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc80fc98d_ad0b_4c9c_8f2f_136a2373a6ba); -} +::windows_core::imp::com_interface!(IRadialControllerMenuItem, IRadialControllerMenuItem_Vtbl, 0xc80fc98d_ad0b_4c9c_8f2f_136a2373a6ba); #[repr(C)] #[doc(hidden)] pub struct IRadialControllerMenuItem_Vtbl { @@ -1057,16 +626,7 @@ pub struct IRadialControllerMenuItem_Vtbl { pub Invoked: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveInvoked: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRadialControllerMenuItemStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRadialControllerMenuItemStatics { - type Vtable = IRadialControllerMenuItemStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRadialControllerMenuItemStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x249e0887_d842_4524_9df8_e0d647edc887); -} +::windows_core::imp::com_interface!(IRadialControllerMenuItemStatics, IRadialControllerMenuItemStatics_Vtbl, 0x249e0887_d842_4524_9df8_e0d647edc887); #[repr(C)] #[doc(hidden)] pub struct IRadialControllerMenuItemStatics_Vtbl { @@ -1077,16 +637,7 @@ pub struct IRadialControllerMenuItemStatics_Vtbl { CreateFromIcon: usize, pub CreateFromKnownIcon: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, displaytext: ::std::mem::MaybeUninit<::windows_core::HSTRING>, value: RadialControllerMenuKnownIcon, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRadialControllerMenuItemStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRadialControllerMenuItemStatics2 { - type Vtable = IRadialControllerMenuItemStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRadialControllerMenuItemStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0cbb70be_7e3e_48bd_be04_2c7fcaa9c1ff); -} +::windows_core::imp::com_interface!(IRadialControllerMenuItemStatics2, IRadialControllerMenuItemStatics2_Vtbl, 0x0cbb70be_7e3e_48bd_be04_2c7fcaa9c1ff); #[repr(C)] #[doc(hidden)] pub struct IRadialControllerMenuItemStatics2_Vtbl { @@ -1094,16 +645,7 @@ pub struct IRadialControllerMenuItemStatics2_Vtbl { pub CreateFromFontGlyph: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, displaytext: ::std::mem::MaybeUninit<::windows_core::HSTRING>, glyph: ::std::mem::MaybeUninit<::windows_core::HSTRING>, fontfamily: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateFromFontGlyphWithUri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, displaytext: ::std::mem::MaybeUninit<::windows_core::HSTRING>, glyph: ::std::mem::MaybeUninit<::windows_core::HSTRING>, fontfamily: ::std::mem::MaybeUninit<::windows_core::HSTRING>, fonturi: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRadialControllerRotationChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRadialControllerRotationChangedEventArgs { - type Vtable = IRadialControllerRotationChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRadialControllerRotationChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x206aa435_e651_11e5_bf62_2c27d7404e85); -} +::windows_core::imp::com_interface!(IRadialControllerRotationChangedEventArgs, IRadialControllerRotationChangedEventArgs_Vtbl, 0x206aa435_e651_11e5_bf62_2c27d7404e85); #[repr(C)] #[doc(hidden)] pub struct IRadialControllerRotationChangedEventArgs_Vtbl { @@ -1111,16 +653,7 @@ pub struct IRadialControllerRotationChangedEventArgs_Vtbl { pub RotationDeltaInDegrees: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows_core::HRESULT, pub Contact: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRadialControllerRotationChangedEventArgs2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRadialControllerRotationChangedEventArgs2 { - type Vtable = IRadialControllerRotationChangedEventArgs2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRadialControllerRotationChangedEventArgs2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3d577eec_4cee_11e6_b535_001bdc06ab3b); -} +::windows_core::imp::com_interface!(IRadialControllerRotationChangedEventArgs2, IRadialControllerRotationChangedEventArgs2_Vtbl, 0x3d577eec_4cee_11e6_b535_001bdc06ab3b); #[repr(C)] #[doc(hidden)] pub struct IRadialControllerRotationChangedEventArgs2_Vtbl { @@ -1131,16 +664,7 @@ pub struct IRadialControllerRotationChangedEventArgs2_Vtbl { #[cfg(not(feature = "Devices_Haptics"))] SimpleHapticsController: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRadialControllerScreenContact(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRadialControllerScreenContact { - type Vtable = IRadialControllerScreenContact_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRadialControllerScreenContact { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x206aa434_e651_11e5_bf62_2c27d7404e85); -} +::windows_core::imp::com_interface!(IRadialControllerScreenContact, IRadialControllerScreenContact_Vtbl, 0x206aa434_e651_11e5_bf62_2c27d7404e85); #[repr(C)] #[doc(hidden)] pub struct IRadialControllerScreenContact_Vtbl { @@ -1148,32 +672,14 @@ pub struct IRadialControllerScreenContact_Vtbl { pub Bounds: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::Rect) -> ::windows_core::HRESULT, pub Position: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::Point) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRadialControllerScreenContactContinuedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRadialControllerScreenContactContinuedEventArgs { - type Vtable = IRadialControllerScreenContactContinuedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRadialControllerScreenContactContinuedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x206aa437_e651_11e5_bf62_2c27d7404e85); -} +::windows_core::imp::com_interface!(IRadialControllerScreenContactContinuedEventArgs, IRadialControllerScreenContactContinuedEventArgs_Vtbl, 0x206aa437_e651_11e5_bf62_2c27d7404e85); #[repr(C)] #[doc(hidden)] pub struct IRadialControllerScreenContactContinuedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Contact: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRadialControllerScreenContactContinuedEventArgs2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRadialControllerScreenContactContinuedEventArgs2 { - type Vtable = IRadialControllerScreenContactContinuedEventArgs2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRadialControllerScreenContactContinuedEventArgs2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3d577ef1_3cee_11e6_b535_001bdc06ab3b); -} +::windows_core::imp::com_interface!(IRadialControllerScreenContactContinuedEventArgs2, IRadialControllerScreenContactContinuedEventArgs2_Vtbl, 0x3d577ef1_3cee_11e6_b535_001bdc06ab3b); #[repr(C)] #[doc(hidden)] pub struct IRadialControllerScreenContactContinuedEventArgs2_Vtbl { @@ -1184,16 +690,7 @@ pub struct IRadialControllerScreenContactContinuedEventArgs2_Vtbl { #[cfg(not(feature = "Devices_Haptics"))] SimpleHapticsController: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRadialControllerScreenContactEndedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRadialControllerScreenContactEndedEventArgs { - type Vtable = IRadialControllerScreenContactEndedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRadialControllerScreenContactEndedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3d577ef2_3cee_11e6_b535_001bdc06ab3b); -} +::windows_core::imp::com_interface!(IRadialControllerScreenContactEndedEventArgs, IRadialControllerScreenContactEndedEventArgs_Vtbl, 0x3d577ef2_3cee_11e6_b535_001bdc06ab3b); #[repr(C)] #[doc(hidden)] pub struct IRadialControllerScreenContactEndedEventArgs_Vtbl { @@ -1204,32 +701,14 @@ pub struct IRadialControllerScreenContactEndedEventArgs_Vtbl { #[cfg(not(feature = "Devices_Haptics"))] SimpleHapticsController: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRadialControllerScreenContactStartedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRadialControllerScreenContactStartedEventArgs { - type Vtable = IRadialControllerScreenContactStartedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRadialControllerScreenContactStartedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x206aa436_e651_11e5_bf62_2c27d7404e85); -} +::windows_core::imp::com_interface!(IRadialControllerScreenContactStartedEventArgs, IRadialControllerScreenContactStartedEventArgs_Vtbl, 0x206aa436_e651_11e5_bf62_2c27d7404e85); #[repr(C)] #[doc(hidden)] pub struct IRadialControllerScreenContactStartedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Contact: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRadialControllerScreenContactStartedEventArgs2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRadialControllerScreenContactStartedEventArgs2 { - type Vtable = IRadialControllerScreenContactStartedEventArgs2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRadialControllerScreenContactStartedEventArgs2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3d577ef0_3cee_11e6_b535_001bdc06ab3b); -} +::windows_core::imp::com_interface!(IRadialControllerScreenContactStartedEventArgs2, IRadialControllerScreenContactStartedEventArgs2_Vtbl, 0x3d577ef0_3cee_11e6_b535_001bdc06ab3b); #[repr(C)] #[doc(hidden)] pub struct IRadialControllerScreenContactStartedEventArgs2_Vtbl { @@ -1240,16 +719,7 @@ pub struct IRadialControllerScreenContactStartedEventArgs2_Vtbl { #[cfg(not(feature = "Devices_Haptics"))] SimpleHapticsController: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRadialControllerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRadialControllerStatics { - type Vtable = IRadialControllerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRadialControllerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfaded0b7_b84c_4894_87aa_8f25aa5f288b); -} +::windows_core::imp::com_interface!(IRadialControllerStatics, IRadialControllerStatics_Vtbl, 0xfaded0b7_b84c_4894_87aa_8f25aa5f288b); #[repr(C)] #[doc(hidden)] pub struct IRadialControllerStatics_Vtbl { @@ -1257,16 +727,7 @@ pub struct IRadialControllerStatics_Vtbl { pub IsSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub CreateForCurrentView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRightTappedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRightTappedEventArgs { - type Vtable = IRightTappedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRightTappedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4cbf40bd_af7a_4a36_9476_b1dce141709a); -} +::windows_core::imp::com_interface!(IRightTappedEventArgs, IRightTappedEventArgs_Vtbl, 0x4cbf40bd_af7a_4a36_9476_b1dce141709a); #[repr(C)] #[doc(hidden)] pub struct IRightTappedEventArgs_Vtbl { @@ -1277,32 +738,14 @@ pub struct IRightTappedEventArgs_Vtbl { PointerDeviceType: usize, pub Position: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::Point) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRightTappedEventArgs2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRightTappedEventArgs2 { - type Vtable = IRightTappedEventArgs2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRightTappedEventArgs2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x61c7b7bb_9f57_5857_a33c_c58c3dfa959e); -} +::windows_core::imp::com_interface!(IRightTappedEventArgs2, IRightTappedEventArgs2_Vtbl, 0x61c7b7bb_9f57_5857_a33c_c58c3dfa959e); #[repr(C)] #[doc(hidden)] pub struct IRightTappedEventArgs2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ContactCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISystemButtonEventController(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISystemButtonEventController { - type Vtable = ISystemButtonEventController_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISystemButtonEventController { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x59b893a9_73bc_52b5_ba41_82511b2cb46c); -} +::windows_core::imp::com_interface!(ISystemButtonEventController, ISystemButtonEventController_Vtbl, 0x59b893a9_73bc_52b5_ba41_82511b2cb46c); #[repr(C)] #[doc(hidden)] pub struct ISystemButtonEventController_Vtbl { @@ -1316,16 +759,7 @@ pub struct ISystemButtonEventController_Vtbl { pub SystemFunctionLockIndicatorChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveSystemFunctionLockIndicatorChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISystemButtonEventControllerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISystemButtonEventControllerStatics { - type Vtable = ISystemButtonEventControllerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISystemButtonEventControllerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x632fb07b_20bd_5e15_af4a_00dbf2064ffa); -} +::windows_core::imp::com_interface!(ISystemButtonEventControllerStatics, ISystemButtonEventControllerStatics_Vtbl, 0x632fb07b_20bd_5e15_af4a_00dbf2064ffa); #[repr(C)] #[doc(hidden)] pub struct ISystemButtonEventControllerStatics_Vtbl { @@ -1335,16 +769,7 @@ pub struct ISystemButtonEventControllerStatics_Vtbl { #[cfg(not(feature = "System"))] CreateForDispatcherQueue: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISystemFunctionButtonEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISystemFunctionButtonEventArgs { - type Vtable = ISystemFunctionButtonEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISystemFunctionButtonEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4833896f_80d1_5dd6_92a7_62a508ffef5a); -} +::windows_core::imp::com_interface!(ISystemFunctionButtonEventArgs, ISystemFunctionButtonEventArgs_Vtbl, 0x4833896f_80d1_5dd6_92a7_62a508ffef5a); #[repr(C)] #[doc(hidden)] pub struct ISystemFunctionButtonEventArgs_Vtbl { @@ -1353,16 +778,7 @@ pub struct ISystemFunctionButtonEventArgs_Vtbl { pub Handled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetHandled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISystemFunctionLockChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISystemFunctionLockChangedEventArgs { - type Vtable = ISystemFunctionLockChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISystemFunctionLockChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcd040608_fcf9_585c_beab_f1d2eaf364ab); -} +::windows_core::imp::com_interface!(ISystemFunctionLockChangedEventArgs, ISystemFunctionLockChangedEventArgs_Vtbl, 0xcd040608_fcf9_585c_beab_f1d2eaf364ab); #[repr(C)] #[doc(hidden)] pub struct ISystemFunctionLockChangedEventArgs_Vtbl { @@ -1372,16 +788,7 @@ pub struct ISystemFunctionLockChangedEventArgs_Vtbl { pub Handled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetHandled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISystemFunctionLockIndicatorChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISystemFunctionLockIndicatorChangedEventArgs { - type Vtable = ISystemFunctionLockIndicatorChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISystemFunctionLockIndicatorChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb212b94e_7a6f_58ae_b304_bae61d0371b9); -} +::windows_core::imp::com_interface!(ISystemFunctionLockIndicatorChangedEventArgs, ISystemFunctionLockIndicatorChangedEventArgs_Vtbl, 0xb212b94e_7a6f_58ae_b304_bae61d0371b9); #[repr(C)] #[doc(hidden)] pub struct ISystemFunctionLockIndicatorChangedEventArgs_Vtbl { @@ -1391,16 +798,7 @@ pub struct ISystemFunctionLockIndicatorChangedEventArgs_Vtbl { pub Handled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetHandled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITappedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITappedEventArgs { - type Vtable = ITappedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITappedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcfa126e4_253a_4c3c_953b_395c37aed309); -} +::windows_core::imp::com_interface!(ITappedEventArgs, ITappedEventArgs_Vtbl, 0xcfa126e4_253a_4c3c_953b_395c37aed309); #[repr(C)] #[doc(hidden)] pub struct ITappedEventArgs_Vtbl { @@ -1412,16 +810,7 @@ pub struct ITappedEventArgs_Vtbl { pub Position: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::Point) -> ::windows_core::HRESULT, pub TapCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITappedEventArgs2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITappedEventArgs2 { - type Vtable = ITappedEventArgs2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITappedEventArgs2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x294388f2_177e_51d5_be56_ee0866fa968c); -} +::windows_core::imp::com_interface!(ITappedEventArgs2, ITappedEventArgs2_Vtbl, 0x294388f2_177e_51d5_be56_ee0866fa968c); #[repr(C)] #[doc(hidden)] pub struct ITappedEventArgs2_Vtbl { @@ -1431,9 +820,11 @@ pub struct ITappedEventArgs2_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AttachableInputObject(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AttachableInputObject, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(AttachableInputObject, super::super::Foundation::IClosable); impl AttachableInputObject { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } } @@ -1442,20 +833,17 @@ impl ::windows_core::RuntimeType for AttachableInputObject { } unsafe impl ::windows_core::Interface for AttachableInputObject { type Vtable = IAttachableInputObject_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AttachableInputObject { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AttachableInputObject { const NAME: &'static str = "Windows.UI.Input.AttachableInputObject"; } -::windows_core::imp::interface_hierarchy!(AttachableInputObject, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for AttachableInputObject {} unsafe impl ::core::marker::Send for AttachableInputObject {} unsafe impl ::core::marker::Sync for AttachableInputObject {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CrossSlidingEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CrossSlidingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CrossSlidingEventArgs { #[doc = "Required features: `\"Devices_Input\"`"] #[cfg(feature = "Devices_Input")] @@ -1481,7 +869,7 @@ impl CrossSlidingEventArgs { } } pub fn ContactCount(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ContactCount)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1493,17 +881,15 @@ impl ::windows_core::RuntimeType for CrossSlidingEventArgs { } unsafe impl ::windows_core::Interface for CrossSlidingEventArgs { type Vtable = ICrossSlidingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CrossSlidingEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CrossSlidingEventArgs { const NAME: &'static str = "Windows.UI.Input.CrossSlidingEventArgs"; } -::windows_core::imp::interface_hierarchy!(CrossSlidingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DraggingEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DraggingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DraggingEventArgs { #[doc = "Required features: `\"Devices_Input\"`"] #[cfg(feature = "Devices_Input")] @@ -1529,7 +915,7 @@ impl DraggingEventArgs { } } pub fn ContactCount(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ContactCount)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1541,17 +927,15 @@ impl ::windows_core::RuntimeType for DraggingEventArgs { } unsafe impl ::windows_core::Interface for DraggingEventArgs { type Vtable = IDraggingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DraggingEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DraggingEventArgs { const NAME: &'static str = "Windows.UI.Input.DraggingEventArgs"; } -::windows_core::imp::interface_hierarchy!(DraggingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EdgeGesture(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EdgeGesture, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EdgeGesture { pub fn Starting(&self, handler: P0) -> ::windows_core::Result where @@ -1612,17 +996,15 @@ impl ::windows_core::RuntimeType for EdgeGesture { } unsafe impl ::windows_core::Interface for EdgeGesture { type Vtable = IEdgeGesture_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EdgeGesture { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EdgeGesture { const NAME: &'static str = "Windows.UI.Input.EdgeGesture"; } -::windows_core::imp::interface_hierarchy!(EdgeGesture, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EdgeGestureEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(EdgeGestureEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl EdgeGestureEventArgs { pub fn Kind(&self) -> ::windows_core::Result { let this = self; @@ -1637,17 +1019,15 @@ impl ::windows_core::RuntimeType for EdgeGestureEventArgs { } unsafe impl ::windows_core::Interface for EdgeGestureEventArgs { type Vtable = IEdgeGestureEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for EdgeGestureEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for EdgeGestureEventArgs { const NAME: &'static str = "Windows.UI.Input.EdgeGestureEventArgs"; } -::windows_core::imp::interface_hierarchy!(EdgeGestureEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct GestureRecognizer(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(GestureRecognizer, ::windows_core::IUnknown, ::windows_core::IInspectable); impl GestureRecognizer { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1863,10 +1243,10 @@ impl GestureRecognizer { #[cfg(feature = "Foundation_Collections")] pub fn ProcessMoveEvents(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).ProcessMoveEvents)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).ProcessMoveEvents)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn ProcessUpEvent(&self, value: P0) -> ::windows_core::Result<()> where @@ -2017,91 +1397,91 @@ impl GestureRecognizer { unsafe { (::windows_core::Interface::vtable(this).RemoveCrossSliding)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn TapMinContactCount(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TapMinContactCount)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetTapMinContactCount(&self, value: u32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetTapMinContactCount)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn TapMaxContactCount(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TapMaxContactCount)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetTapMaxContactCount(&self, value: u32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetTapMaxContactCount)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn HoldMinContactCount(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).HoldMinContactCount)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetHoldMinContactCount(&self, value: u32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetHoldMinContactCount)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn HoldMaxContactCount(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).HoldMaxContactCount)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetHoldMaxContactCount(&self, value: u32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetHoldMaxContactCount)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn HoldRadius(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).HoldRadius)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetHoldRadius(&self, value: f32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetHoldRadius)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn HoldStartDelay(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).HoldStartDelay)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetHoldStartDelay(&self, value: super::super::Foundation::TimeSpan) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetHoldStartDelay)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn TranslationMinContactCount(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TranslationMinContactCount)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetTranslationMinContactCount(&self, value: u32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetTranslationMinContactCount)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn TranslationMaxContactCount(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TranslationMaxContactCount)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetTranslationMaxContactCount(&self, value: u32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetTranslationMaxContactCount)(::windows_core::Interface::as_raw(this), value).ok() } } } @@ -2110,17 +1490,15 @@ impl ::windows_core::RuntimeType for GestureRecognizer { } unsafe impl ::windows_core::Interface for GestureRecognizer { type Vtable = IGestureRecognizer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for GestureRecognizer { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for GestureRecognizer { const NAME: &'static str = "Windows.UI.Input.GestureRecognizer"; } -::windows_core::imp::interface_hierarchy!(GestureRecognizer, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HoldingEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HoldingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl HoldingEventArgs { #[doc = "Required features: `\"Devices_Input\"`"] #[cfg(feature = "Devices_Input")] @@ -2146,14 +1524,14 @@ impl HoldingEventArgs { } } pub fn ContactCount(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ContactCount)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CurrentContactCount(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CurrentContactCount)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2165,20 +1543,19 @@ impl ::windows_core::RuntimeType for HoldingEventArgs { } unsafe impl ::windows_core::Interface for HoldingEventArgs { type Vtable = IHoldingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HoldingEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HoldingEventArgs { const NAME: &'static str = "Windows.UI.Input.HoldingEventArgs"; } -::windows_core::imp::interface_hierarchy!(HoldingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct InputActivationListener(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(InputActivationListener, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(InputActivationListener, super::super::Foundation::IClosable, AttachableInputObject); impl InputActivationListener { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn State(&self) -> ::windows_core::Result { @@ -2208,21 +1585,17 @@ impl ::windows_core::RuntimeType for InputActivationListener { } unsafe impl ::windows_core::Interface for InputActivationListener { type Vtable = IInputActivationListener_Vtbl; -} -unsafe impl ::windows_core::ComInterface for InputActivationListener { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for InputActivationListener { const NAME: &'static str = "Windows.UI.Input.InputActivationListener"; } -::windows_core::imp::interface_hierarchy!(InputActivationListener, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for InputActivationListener {} -impl ::windows_core::CanTryInto for InputActivationListener {} unsafe impl ::core::marker::Send for InputActivationListener {} unsafe impl ::core::marker::Sync for InputActivationListener {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct InputActivationListenerActivationChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(InputActivationListenerActivationChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl InputActivationListenerActivationChangedEventArgs { pub fn State(&self) -> ::windows_core::Result { let this = self; @@ -2237,19 +1610,17 @@ impl ::windows_core::RuntimeType for InputActivationListenerActivationChangedEve } unsafe impl ::windows_core::Interface for InputActivationListenerActivationChangedEventArgs { type Vtable = IInputActivationListenerActivationChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for InputActivationListenerActivationChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for InputActivationListenerActivationChangedEventArgs { const NAME: &'static str = "Windows.UI.Input.InputActivationListenerActivationChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(InputActivationListenerActivationChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for InputActivationListenerActivationChangedEventArgs {} unsafe impl ::core::marker::Sync for InputActivationListenerActivationChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct KeyboardDeliveryInterceptor(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(KeyboardDeliveryInterceptor, ::windows_core::IUnknown, ::windows_core::IInspectable); impl KeyboardDeliveryInterceptor { pub fn IsInterceptionEnabledWhenInForeground(&self) -> ::windows_core::Result { let this = self; @@ -2311,19 +1682,17 @@ impl ::windows_core::RuntimeType for KeyboardDeliveryInterceptor { } unsafe impl ::windows_core::Interface for KeyboardDeliveryInterceptor { type Vtable = IKeyboardDeliveryInterceptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for KeyboardDeliveryInterceptor { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for KeyboardDeliveryInterceptor { const NAME: &'static str = "Windows.UI.Input.KeyboardDeliveryInterceptor"; } -::windows_core::imp::interface_hierarchy!(KeyboardDeliveryInterceptor, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for KeyboardDeliveryInterceptor {} unsafe impl ::core::marker::Sync for KeyboardDeliveryInterceptor {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ManipulationCompletedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ManipulationCompletedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ManipulationCompletedEventArgs { #[doc = "Required features: `\"Devices_Input\"`"] #[cfg(feature = "Devices_Input")] @@ -2356,14 +1725,14 @@ impl ManipulationCompletedEventArgs { } } pub fn ContactCount(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ContactCount)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CurrentContactCount(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CurrentContactCount)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2375,17 +1744,15 @@ impl ::windows_core::RuntimeType for ManipulationCompletedEventArgs { } unsafe impl ::windows_core::Interface for ManipulationCompletedEventArgs { type Vtable = IManipulationCompletedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ManipulationCompletedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ManipulationCompletedEventArgs { const NAME: &'static str = "Windows.UI.Input.ManipulationCompletedEventArgs"; } -::windows_core::imp::interface_hierarchy!(ManipulationCompletedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ManipulationInertiaStartingEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ManipulationInertiaStartingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ManipulationInertiaStartingEventArgs { #[doc = "Required features: `\"Devices_Input\"`"] #[cfg(feature = "Devices_Input")] @@ -2425,7 +1792,7 @@ impl ManipulationInertiaStartingEventArgs { } } pub fn ContactCount(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ContactCount)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2437,17 +1804,15 @@ impl ::windows_core::RuntimeType for ManipulationInertiaStartingEventArgs { } unsafe impl ::windows_core::Interface for ManipulationInertiaStartingEventArgs { type Vtable = IManipulationInertiaStartingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ManipulationInertiaStartingEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ManipulationInertiaStartingEventArgs { const NAME: &'static str = "Windows.UI.Input.ManipulationInertiaStartingEventArgs"; } -::windows_core::imp::interface_hierarchy!(ManipulationInertiaStartingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ManipulationStartedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ManipulationStartedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ManipulationStartedEventArgs { #[doc = "Required features: `\"Devices_Input\"`"] #[cfg(feature = "Devices_Input")] @@ -2473,7 +1838,7 @@ impl ManipulationStartedEventArgs { } } pub fn ContactCount(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ContactCount)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2485,17 +1850,15 @@ impl ::windows_core::RuntimeType for ManipulationStartedEventArgs { } unsafe impl ::windows_core::Interface for ManipulationStartedEventArgs { type Vtable = IManipulationStartedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ManipulationStartedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ManipulationStartedEventArgs { const NAME: &'static str = "Windows.UI.Input.ManipulationStartedEventArgs"; } -::windows_core::imp::interface_hierarchy!(ManipulationStartedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ManipulationUpdatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ManipulationUpdatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ManipulationUpdatedEventArgs { #[doc = "Required features: `\"Devices_Input\"`"] #[cfg(feature = "Devices_Input")] @@ -2535,14 +1898,14 @@ impl ManipulationUpdatedEventArgs { } } pub fn ContactCount(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ContactCount)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn CurrentContactCount(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CurrentContactCount)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2554,17 +1917,15 @@ impl ::windows_core::RuntimeType for ManipulationUpdatedEventArgs { } unsafe impl ::windows_core::Interface for ManipulationUpdatedEventArgs { type Vtable = IManipulationUpdatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ManipulationUpdatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ManipulationUpdatedEventArgs { const NAME: &'static str = "Windows.UI.Input.ManipulationUpdatedEventArgs"; } -::windows_core::imp::interface_hierarchy!(ManipulationUpdatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MouseWheelParameters(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MouseWheelParameters, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MouseWheelParameters { pub fn CharTranslation(&self) -> ::windows_core::Result { let this = self; @@ -2616,17 +1977,15 @@ impl ::windows_core::RuntimeType for MouseWheelParameters { } unsafe impl ::windows_core::Interface for MouseWheelParameters { type Vtable = IMouseWheelParameters_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MouseWheelParameters { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MouseWheelParameters { const NAME: &'static str = "Windows.UI.Input.MouseWheelParameters"; } -::windows_core::imp::interface_hierarchy!(MouseWheelParameters, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PointerPoint(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PointerPoint, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PointerPoint { #[doc = "Required features: `\"Devices_Input\"`"] #[cfg(feature = "Devices_Input")] @@ -2702,22 +2061,22 @@ impl PointerPoint { } pub fn GetCurrentPointTransformed(pointerid: u32, transform: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IPointerPointStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).GetCurrentPointTransformed)(::windows_core::Interface::as_raw(this), pointerid, transform.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).GetCurrentPointTransformed)(::windows_core::Interface::as_raw(this), pointerid, transform.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetIntermediatePointsTransformed(pointerid: u32, transform: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IPointerPointStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).GetIntermediatePointsTransformed)(::windows_core::Interface::as_raw(this), pointerid, transform.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).GetIntermediatePointsTransformed)(::windows_core::Interface::as_raw(this), pointerid, transform.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -2731,17 +2090,15 @@ impl ::windows_core::RuntimeType for PointerPoint { } unsafe impl ::windows_core::Interface for PointerPoint { type Vtable = IPointerPoint_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PointerPoint { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PointerPoint { const NAME: &'static str = "Windows.UI.Input.PointerPoint"; } -::windows_core::imp::interface_hierarchy!(PointerPoint, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PointerPointProperties(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PointerPointProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PointerPointProperties { pub fn Pressure(&self) -> ::windows_core::Result { let this = self; @@ -2912,7 +2269,7 @@ impl PointerPointProperties { } } pub fn ZDistance(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ZDistance)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2924,17 +2281,15 @@ impl ::windows_core::RuntimeType for PointerPointProperties { } unsafe impl ::windows_core::Interface for PointerPointProperties { type Vtable = IPointerPointProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PointerPointProperties { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PointerPointProperties { const NAME: &'static str = "Windows.UI.Input.PointerPointProperties"; } -::windows_core::imp::interface_hierarchy!(PointerPointProperties, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PointerVisualizationSettings(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PointerVisualizationSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PointerVisualizationSettings { pub fn SetIsContactFeedbackEnabled(&self, value: bool) -> ::windows_core::Result<()> { let this = self; @@ -2975,19 +2330,17 @@ impl ::windows_core::RuntimeType for PointerVisualizationSettings { } unsafe impl ::windows_core::Interface for PointerVisualizationSettings { type Vtable = IPointerVisualizationSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PointerVisualizationSettings { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PointerVisualizationSettings { const NAME: &'static str = "Windows.UI.Input.PointerVisualizationSettings"; } -::windows_core::imp::interface_hierarchy!(PointerVisualizationSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for PointerVisualizationSettings {} unsafe impl ::core::marker::Sync for PointerVisualizationSettings {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RadialController(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RadialController, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RadialController { pub fn Menu(&self) -> ::windows_core::Result { let this = self; @@ -3120,42 +2473,42 @@ impl RadialController { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveButtonPressed(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveButtonPressed)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn ButtonHolding(&self, handler: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveButtonHolding(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveButtonHolding)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn ButtonReleased(&self, handler: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveButtonReleased(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveButtonReleased)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn IsSupported() -> ::windows_core::Result { @@ -3181,19 +2534,17 @@ impl ::windows_core::RuntimeType for RadialController { } unsafe impl ::windows_core::Interface for RadialController { type Vtable = IRadialController_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RadialController { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RadialController { const NAME: &'static str = "Windows.UI.Input.RadialController"; } -::windows_core::imp::interface_hierarchy!(RadialController, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RadialController {} unsafe impl ::core::marker::Sync for RadialController {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RadialControllerButtonClickedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RadialControllerButtonClickedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RadialControllerButtonClickedEventArgs { pub fn Contact(&self) -> ::windows_core::Result { let this = self; @@ -3205,7 +2556,7 @@ impl RadialControllerButtonClickedEventArgs { #[doc = "Required features: `\"Devices_Haptics\"`"] #[cfg(feature = "Devices_Haptics")] pub fn SimpleHapticsController(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SimpleHapticsController)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3217,19 +2568,17 @@ impl ::windows_core::RuntimeType for RadialControllerButtonClickedEventArgs { } unsafe impl ::windows_core::Interface for RadialControllerButtonClickedEventArgs { type Vtable = IRadialControllerButtonClickedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RadialControllerButtonClickedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RadialControllerButtonClickedEventArgs { const NAME: &'static str = "Windows.UI.Input.RadialControllerButtonClickedEventArgs"; } -::windows_core::imp::interface_hierarchy!(RadialControllerButtonClickedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RadialControllerButtonClickedEventArgs {} unsafe impl ::core::marker::Sync for RadialControllerButtonClickedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RadialControllerButtonHoldingEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RadialControllerButtonHoldingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RadialControllerButtonHoldingEventArgs { pub fn Contact(&self) -> ::windows_core::Result { let this = self; @@ -3253,19 +2602,17 @@ impl ::windows_core::RuntimeType for RadialControllerButtonHoldingEventArgs { } unsafe impl ::windows_core::Interface for RadialControllerButtonHoldingEventArgs { type Vtable = IRadialControllerButtonHoldingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RadialControllerButtonHoldingEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RadialControllerButtonHoldingEventArgs { const NAME: &'static str = "Windows.UI.Input.RadialControllerButtonHoldingEventArgs"; } -::windows_core::imp::interface_hierarchy!(RadialControllerButtonHoldingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RadialControllerButtonHoldingEventArgs {} unsafe impl ::core::marker::Sync for RadialControllerButtonHoldingEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RadialControllerButtonPressedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RadialControllerButtonPressedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RadialControllerButtonPressedEventArgs { pub fn Contact(&self) -> ::windows_core::Result { let this = self; @@ -3289,19 +2636,17 @@ impl ::windows_core::RuntimeType for RadialControllerButtonPressedEventArgs { } unsafe impl ::windows_core::Interface for RadialControllerButtonPressedEventArgs { type Vtable = IRadialControllerButtonPressedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RadialControllerButtonPressedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RadialControllerButtonPressedEventArgs { const NAME: &'static str = "Windows.UI.Input.RadialControllerButtonPressedEventArgs"; } -::windows_core::imp::interface_hierarchy!(RadialControllerButtonPressedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RadialControllerButtonPressedEventArgs {} unsafe impl ::core::marker::Sync for RadialControllerButtonPressedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RadialControllerButtonReleasedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RadialControllerButtonReleasedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RadialControllerButtonReleasedEventArgs { pub fn Contact(&self) -> ::windows_core::Result { let this = self; @@ -3325,28 +2670,26 @@ impl ::windows_core::RuntimeType for RadialControllerButtonReleasedEventArgs { } unsafe impl ::windows_core::Interface for RadialControllerButtonReleasedEventArgs { type Vtable = IRadialControllerButtonReleasedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RadialControllerButtonReleasedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RadialControllerButtonReleasedEventArgs { const NAME: &'static str = "Windows.UI.Input.RadialControllerButtonReleasedEventArgs"; } -::windows_core::imp::interface_hierarchy!(RadialControllerButtonReleasedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RadialControllerButtonReleasedEventArgs {} unsafe impl ::core::marker::Sync for RadialControllerButtonReleasedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RadialControllerConfiguration(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RadialControllerConfiguration, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RadialControllerConfiguration { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn SetDefaultMenuItems(&self, buttons: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetDefaultMenuItems)(::windows_core::Interface::as_raw(this), buttons.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetDefaultMenuItems)(::windows_core::Interface::as_raw(this), buttons.into_param().abi()).ok() } } pub fn ResetToDefaultMenuItems(&self) -> ::windows_core::Result<()> { let this = self; @@ -3363,22 +2706,22 @@ impl RadialControllerConfiguration { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn ActiveControllerWhenMenuIsSuppressed(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ActiveControllerWhenMenuIsSuppressed)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsMenuSuppressed(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsMenuSuppressed)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsMenuSuppressed(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsMenuSuppressed)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3427,19 +2770,17 @@ impl ::windows_core::RuntimeType for RadialControllerConfiguration { } unsafe impl ::windows_core::Interface for RadialControllerConfiguration { type Vtable = IRadialControllerConfiguration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RadialControllerConfiguration { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RadialControllerConfiguration { const NAME: &'static str = "Windows.UI.Input.RadialControllerConfiguration"; } -::windows_core::imp::interface_hierarchy!(RadialControllerConfiguration, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RadialControllerConfiguration {} unsafe impl ::core::marker::Sync for RadialControllerConfiguration {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RadialControllerControlAcquiredEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RadialControllerControlAcquiredEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RadialControllerControlAcquiredEventArgs { pub fn Contact(&self) -> ::windows_core::Result { let this = self; @@ -3449,7 +2790,7 @@ impl RadialControllerControlAcquiredEventArgs { } } pub fn IsButtonPressed(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsButtonPressed)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3458,7 +2799,7 @@ impl RadialControllerControlAcquiredEventArgs { #[doc = "Required features: `\"Devices_Haptics\"`"] #[cfg(feature = "Devices_Haptics")] pub fn SimpleHapticsController(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SimpleHapticsController)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3470,19 +2811,17 @@ impl ::windows_core::RuntimeType for RadialControllerControlAcquiredEventArgs { } unsafe impl ::windows_core::Interface for RadialControllerControlAcquiredEventArgs { type Vtable = IRadialControllerControlAcquiredEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RadialControllerControlAcquiredEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RadialControllerControlAcquiredEventArgs { const NAME: &'static str = "Windows.UI.Input.RadialControllerControlAcquiredEventArgs"; } -::windows_core::imp::interface_hierarchy!(RadialControllerControlAcquiredEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RadialControllerControlAcquiredEventArgs {} unsafe impl ::core::marker::Sync for RadialControllerControlAcquiredEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RadialControllerMenu(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RadialControllerMenu, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RadialControllerMenu { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -3531,19 +2870,17 @@ impl ::windows_core::RuntimeType for RadialControllerMenu { } unsafe impl ::windows_core::Interface for RadialControllerMenu { type Vtable = IRadialControllerMenu_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RadialControllerMenu { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RadialControllerMenu { const NAME: &'static str = "Windows.UI.Input.RadialControllerMenu"; } -::windows_core::imp::interface_hierarchy!(RadialControllerMenu, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RadialControllerMenu {} unsafe impl ::core::marker::Sync for RadialControllerMenu {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RadialControllerMenuItem(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RadialControllerMenuItem, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RadialControllerMenuItem { pub fn DisplayText(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -3628,19 +2965,17 @@ impl ::windows_core::RuntimeType for RadialControllerMenuItem { } unsafe impl ::windows_core::Interface for RadialControllerMenuItem { type Vtable = IRadialControllerMenuItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RadialControllerMenuItem { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RadialControllerMenuItem { const NAME: &'static str = "Windows.UI.Input.RadialControllerMenuItem"; } -::windows_core::imp::interface_hierarchy!(RadialControllerMenuItem, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RadialControllerMenuItem {} unsafe impl ::core::marker::Sync for RadialControllerMenuItem {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RadialControllerRotationChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RadialControllerRotationChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RadialControllerRotationChangedEventArgs { pub fn RotationDeltaInDegrees(&self) -> ::windows_core::Result { let this = self; @@ -3657,7 +2992,7 @@ impl RadialControllerRotationChangedEventArgs { } } pub fn IsButtonPressed(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsButtonPressed)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3666,7 +3001,7 @@ impl RadialControllerRotationChangedEventArgs { #[doc = "Required features: `\"Devices_Haptics\"`"] #[cfg(feature = "Devices_Haptics")] pub fn SimpleHapticsController(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SimpleHapticsController)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3678,19 +3013,17 @@ impl ::windows_core::RuntimeType for RadialControllerRotationChangedEventArgs { } unsafe impl ::windows_core::Interface for RadialControllerRotationChangedEventArgs { type Vtable = IRadialControllerRotationChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RadialControllerRotationChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RadialControllerRotationChangedEventArgs { const NAME: &'static str = "Windows.UI.Input.RadialControllerRotationChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(RadialControllerRotationChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RadialControllerRotationChangedEventArgs {} unsafe impl ::core::marker::Sync for RadialControllerRotationChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RadialControllerScreenContact(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RadialControllerScreenContact, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RadialControllerScreenContact { pub fn Bounds(&self) -> ::windows_core::Result { let this = self; @@ -3712,19 +3045,17 @@ impl ::windows_core::RuntimeType for RadialControllerScreenContact { } unsafe impl ::windows_core::Interface for RadialControllerScreenContact { type Vtable = IRadialControllerScreenContact_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RadialControllerScreenContact { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RadialControllerScreenContact { const NAME: &'static str = "Windows.UI.Input.RadialControllerScreenContact"; } -::windows_core::imp::interface_hierarchy!(RadialControllerScreenContact, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RadialControllerScreenContact {} unsafe impl ::core::marker::Sync for RadialControllerScreenContact {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RadialControllerScreenContactContinuedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RadialControllerScreenContactContinuedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RadialControllerScreenContactContinuedEventArgs { pub fn Contact(&self) -> ::windows_core::Result { let this = self; @@ -3734,7 +3065,7 @@ impl RadialControllerScreenContactContinuedEventArgs { } } pub fn IsButtonPressed(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsButtonPressed)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3743,7 +3074,7 @@ impl RadialControllerScreenContactContinuedEventArgs { #[doc = "Required features: `\"Devices_Haptics\"`"] #[cfg(feature = "Devices_Haptics")] pub fn SimpleHapticsController(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SimpleHapticsController)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3755,19 +3086,17 @@ impl ::windows_core::RuntimeType for RadialControllerScreenContactContinuedEvent } unsafe impl ::windows_core::Interface for RadialControllerScreenContactContinuedEventArgs { type Vtable = IRadialControllerScreenContactContinuedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RadialControllerScreenContactContinuedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RadialControllerScreenContactContinuedEventArgs { const NAME: &'static str = "Windows.UI.Input.RadialControllerScreenContactContinuedEventArgs"; } -::windows_core::imp::interface_hierarchy!(RadialControllerScreenContactContinuedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RadialControllerScreenContactContinuedEventArgs {} unsafe impl ::core::marker::Sync for RadialControllerScreenContactContinuedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RadialControllerScreenContactEndedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RadialControllerScreenContactEndedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RadialControllerScreenContactEndedEventArgs { pub fn IsButtonPressed(&self) -> ::windows_core::Result { let this = self; @@ -3791,19 +3120,17 @@ impl ::windows_core::RuntimeType for RadialControllerScreenContactEndedEventArgs } unsafe impl ::windows_core::Interface for RadialControllerScreenContactEndedEventArgs { type Vtable = IRadialControllerScreenContactEndedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RadialControllerScreenContactEndedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RadialControllerScreenContactEndedEventArgs { const NAME: &'static str = "Windows.UI.Input.RadialControllerScreenContactEndedEventArgs"; } -::windows_core::imp::interface_hierarchy!(RadialControllerScreenContactEndedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RadialControllerScreenContactEndedEventArgs {} unsafe impl ::core::marker::Sync for RadialControllerScreenContactEndedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RadialControllerScreenContactStartedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RadialControllerScreenContactStartedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RadialControllerScreenContactStartedEventArgs { pub fn Contact(&self) -> ::windows_core::Result { let this = self; @@ -3813,7 +3140,7 @@ impl RadialControllerScreenContactStartedEventArgs { } } pub fn IsButtonPressed(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsButtonPressed)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3822,7 +3149,7 @@ impl RadialControllerScreenContactStartedEventArgs { #[doc = "Required features: `\"Devices_Haptics\"`"] #[cfg(feature = "Devices_Haptics")] pub fn SimpleHapticsController(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SimpleHapticsController)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3834,19 +3161,17 @@ impl ::windows_core::RuntimeType for RadialControllerScreenContactStartedEventAr } unsafe impl ::windows_core::Interface for RadialControllerScreenContactStartedEventArgs { type Vtable = IRadialControllerScreenContactStartedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RadialControllerScreenContactStartedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RadialControllerScreenContactStartedEventArgs { const NAME: &'static str = "Windows.UI.Input.RadialControllerScreenContactStartedEventArgs"; } -::windows_core::imp::interface_hierarchy!(RadialControllerScreenContactStartedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RadialControllerScreenContactStartedEventArgs {} unsafe impl ::core::marker::Sync for RadialControllerScreenContactStartedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RightTappedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RightTappedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RightTappedEventArgs { #[doc = "Required features: `\"Devices_Input\"`"] #[cfg(feature = "Devices_Input")] @@ -3865,7 +3190,7 @@ impl RightTappedEventArgs { } } pub fn ContactCount(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ContactCount)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3877,20 +3202,19 @@ impl ::windows_core::RuntimeType for RightTappedEventArgs { } unsafe impl ::windows_core::Interface for RightTappedEventArgs { type Vtable = IRightTappedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RightTappedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RightTappedEventArgs { const NAME: &'static str = "Windows.UI.Input.RightTappedEventArgs"; } -::windows_core::imp::interface_hierarchy!(RightTappedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SystemButtonEventController(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SystemButtonEventController, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(SystemButtonEventController, super::super::Foundation::IClosable, AttachableInputObject); impl SystemButtonEventController { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn SystemFunctionButtonPressed(&self, handler: P0) -> ::windows_core::Result @@ -3971,21 +3295,17 @@ impl ::windows_core::RuntimeType for SystemButtonEventController { } unsafe impl ::windows_core::Interface for SystemButtonEventController { type Vtable = ISystemButtonEventController_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SystemButtonEventController { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SystemButtonEventController { const NAME: &'static str = "Windows.UI.Input.SystemButtonEventController"; } -::windows_core::imp::interface_hierarchy!(SystemButtonEventController, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for SystemButtonEventController {} -impl ::windows_core::CanTryInto for SystemButtonEventController {} unsafe impl ::core::marker::Send for SystemButtonEventController {} unsafe impl ::core::marker::Sync for SystemButtonEventController {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SystemFunctionButtonEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SystemFunctionButtonEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SystemFunctionButtonEventArgs { pub fn Timestamp(&self) -> ::windows_core::Result { let this = self; @@ -4011,19 +3331,17 @@ impl ::windows_core::RuntimeType for SystemFunctionButtonEventArgs { } unsafe impl ::windows_core::Interface for SystemFunctionButtonEventArgs { type Vtable = ISystemFunctionButtonEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SystemFunctionButtonEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SystemFunctionButtonEventArgs { const NAME: &'static str = "Windows.UI.Input.SystemFunctionButtonEventArgs"; } -::windows_core::imp::interface_hierarchy!(SystemFunctionButtonEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SystemFunctionButtonEventArgs {} unsafe impl ::core::marker::Sync for SystemFunctionButtonEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SystemFunctionLockChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SystemFunctionLockChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SystemFunctionLockChangedEventArgs { pub fn Timestamp(&self) -> ::windows_core::Result { let this = self; @@ -4056,19 +3374,17 @@ impl ::windows_core::RuntimeType for SystemFunctionLockChangedEventArgs { } unsafe impl ::windows_core::Interface for SystemFunctionLockChangedEventArgs { type Vtable = ISystemFunctionLockChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SystemFunctionLockChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SystemFunctionLockChangedEventArgs { const NAME: &'static str = "Windows.UI.Input.SystemFunctionLockChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(SystemFunctionLockChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SystemFunctionLockChangedEventArgs {} unsafe impl ::core::marker::Sync for SystemFunctionLockChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SystemFunctionLockIndicatorChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SystemFunctionLockIndicatorChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SystemFunctionLockIndicatorChangedEventArgs { pub fn Timestamp(&self) -> ::windows_core::Result { let this = self; @@ -4101,19 +3417,17 @@ impl ::windows_core::RuntimeType for SystemFunctionLockIndicatorChangedEventArgs } unsafe impl ::windows_core::Interface for SystemFunctionLockIndicatorChangedEventArgs { type Vtable = ISystemFunctionLockIndicatorChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SystemFunctionLockIndicatorChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SystemFunctionLockIndicatorChangedEventArgs { const NAME: &'static str = "Windows.UI.Input.SystemFunctionLockIndicatorChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(SystemFunctionLockIndicatorChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SystemFunctionLockIndicatorChangedEventArgs {} unsafe impl ::core::marker::Sync for SystemFunctionLockIndicatorChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct TappedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(TappedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl TappedEventArgs { #[doc = "Required features: `\"Devices_Input\"`"] #[cfg(feature = "Devices_Input")] @@ -4139,7 +3453,7 @@ impl TappedEventArgs { } } pub fn ContactCount(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ContactCount)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4151,14 +3465,11 @@ impl ::windows_core::RuntimeType for TappedEventArgs { } unsafe impl ::windows_core::Interface for TappedEventArgs { type Vtable = ITappedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TappedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for TappedEventArgs { const NAME: &'static str = "Windows.UI.Input.TappedEventArgs"; } -::windows_core::imp::interface_hierarchy!(TappedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::marker::Copy, ::core::clone::Clone, ::core::default::Default)] pub struct CrossSlidingState(pub i32); 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 54609984e0..08d879ad73 100644 --- a/crates/libs/windows/src/Windows/UI/Notifications/Management/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Notifications/Management/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserNotificationListener(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserNotificationListener { - type Vtable = IUserNotificationListener_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserNotificationListener { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x62553e41_8a06_4cef_8215_6033a5be4b03); -} +::windows_core::imp::com_interface!(IUserNotificationListener, IUserNotificationListener_Vtbl, 0x62553e41_8a06_4cef_8215_6033a5be4b03); #[repr(C)] #[doc(hidden)] pub struct IUserNotificationListener_Vtbl { @@ -24,16 +15,7 @@ pub struct IUserNotificationListener_Vtbl { pub ClearNotifications: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RemoveNotification: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, notificationid: u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserNotificationListenerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserNotificationListenerStatics { - type Vtable = IUserNotificationListenerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserNotificationListenerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xff6123cf_4386_4aa3_b73d_b804e5b63b23); -} +::windows_core::imp::com_interface!(IUserNotificationListenerStatics, IUserNotificationListenerStatics_Vtbl, 0xff6123cf_4386_4aa3_b73d_b804e5b63b23); #[repr(C)] #[doc(hidden)] pub struct IUserNotificationListenerStatics_Vtbl { @@ -43,6 +25,7 @@ pub struct IUserNotificationListenerStatics_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UserNotificationListener(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UserNotificationListener, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UserNotificationListener { pub fn RequestAccessAsync(&self) -> ::windows_core::Result> { let this = self; @@ -113,14 +96,11 @@ impl ::windows_core::RuntimeType for UserNotificationListener { } unsafe impl ::windows_core::Interface for UserNotificationListener { type Vtable = IUserNotificationListener_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UserNotificationListener { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UserNotificationListener { const NAME: &'static str = "Windows.UI.Notifications.Management.UserNotificationListener"; } -::windows_core::imp::interface_hierarchy!(UserNotificationListener, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UserNotificationListener {} unsafe impl ::core::marker::Sync for UserNotificationListener {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/UI/Notifications/Preview/mod.rs b/crates/libs/windows/src/Windows/UI/Notifications/Preview/mod.rs index a3e8a75239..e227177729 100644 --- a/crates/libs/windows/src/Windows/UI/Notifications/Preview/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Notifications/Preview/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IToastOcclusionManagerPreviewStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IToastOcclusionManagerPreviewStatics { - type Vtable = IToastOcclusionManagerPreviewStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IToastOcclusionManagerPreviewStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x507e5c83_50f9_5412_8953_b65c18cfab12); -} +::windows_core::imp::com_interface!(IToastOcclusionManagerPreviewStatics, IToastOcclusionManagerPreviewStatics_Vtbl, 0x507e5c83_50f9_5412_8953_b65c18cfab12); #[repr(C)] #[doc(hidden)] pub struct IToastOcclusionManagerPreviewStatics_Vtbl { diff --git a/crates/libs/windows/src/Windows/UI/Notifications/impl.rs b/crates/libs/windows/src/Windows/UI/Notifications/impl.rs index a5b3bb60fb..83871a6a99 100644 --- a/crates/libs/windows/src/Windows/UI/Notifications/impl.rs +++ b/crates/libs/windows/src/Windows/UI/Notifications/impl.rs @@ -41,6 +41,6 @@ impl IAdaptiveNotificationContent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/UI/Notifications/mod.rs b/crates/libs/windows/src/Windows/UI/Notifications/mod.rs index 08a12bb312..c519f26f09 100644 --- a/crates/libs/windows/src/Windows/UI/Notifications/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Notifications/mod.rs @@ -4,9 +4,8 @@ pub mod Management; #[cfg(feature = "UI_Notifications_Preview")] #[doc = "Required features: `\"UI_Notifications_Preview\"`"] pub mod Preview; -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAdaptiveNotificationContent(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAdaptiveNotificationContent, IAdaptiveNotificationContent_Vtbl, 0xeb0dbe66_7448_448d_9db8_d78acd2abba9); +::windows_core::imp::interface_hierarchy!(IAdaptiveNotificationContent, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IAdaptiveNotificationContent { pub fn Kind(&self) -> ::windows_core::Result { let this = self; @@ -25,16 +24,9 @@ impl IAdaptiveNotificationContent { } } } -::windows_core::imp::interface_hierarchy!(IAdaptiveNotificationContent, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IAdaptiveNotificationContent { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IAdaptiveNotificationContent { - type Vtable = IAdaptiveNotificationContent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAdaptiveNotificationContent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeb0dbe66_7448_448d_9db8_d78acd2abba9); -} #[repr(C)] #[doc(hidden)] pub struct IAdaptiveNotificationContent_Vtbl { @@ -45,16 +37,7 @@ pub struct IAdaptiveNotificationContent_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Hints: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAdaptiveNotificationText(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAdaptiveNotificationText { - type Vtable = IAdaptiveNotificationText_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAdaptiveNotificationText { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x46d4a3be_609a_4326_a40b_bfde872034a3); -} +::windows_core::imp::com_interface!(IAdaptiveNotificationText, IAdaptiveNotificationText_Vtbl, 0x46d4a3be_609a_4326_a40b_bfde872034a3); #[repr(C)] #[doc(hidden)] pub struct IAdaptiveNotificationText_Vtbl { @@ -64,16 +47,7 @@ pub struct IAdaptiveNotificationText_Vtbl { pub Language: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetLanguage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBadgeNotification(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBadgeNotification { - type Vtable = IBadgeNotification_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBadgeNotification { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x075cb4ca_d08a_4e2f_9233_7e289c1f7722); -} +::windows_core::imp::com_interface!(IBadgeNotification, IBadgeNotification_Vtbl, 0x075cb4ca_d08a_4e2f_9233_7e289c1f7722); #[repr(C)] #[doc(hidden)] pub struct IBadgeNotification_Vtbl { @@ -85,16 +59,7 @@ pub struct IBadgeNotification_Vtbl { pub SetExpirationTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ExpirationTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBadgeNotificationFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBadgeNotificationFactory { - type Vtable = IBadgeNotificationFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBadgeNotificationFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xedf255ce_0618_4d59_948a_5a61040c52f9); -} +::windows_core::imp::com_interface!(IBadgeNotificationFactory, IBadgeNotificationFactory_Vtbl, 0xedf255ce_0618_4d59_948a_5a61040c52f9); #[repr(C)] #[doc(hidden)] pub struct IBadgeNotificationFactory_Vtbl { @@ -104,16 +69,7 @@ pub struct IBadgeNotificationFactory_Vtbl { #[cfg(not(feature = "Data_Xml_Dom"))] CreateBadgeNotification: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBadgeUpdateManagerForUser(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBadgeUpdateManagerForUser { - type Vtable = IBadgeUpdateManagerForUser_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBadgeUpdateManagerForUser { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x996b21bc_0386_44e5_ba8d_0c1077a62e92); -} +::windows_core::imp::com_interface!(IBadgeUpdateManagerForUser, IBadgeUpdateManagerForUser_Vtbl, 0x996b21bc_0386_44e5_ba8d_0c1077a62e92); #[repr(C)] #[doc(hidden)] pub struct IBadgeUpdateManagerForUser_Vtbl { @@ -126,16 +82,7 @@ pub struct IBadgeUpdateManagerForUser_Vtbl { #[cfg(not(feature = "System"))] User: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBadgeUpdateManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBadgeUpdateManagerStatics { - type Vtable = IBadgeUpdateManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBadgeUpdateManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x33400faa_6dd5_4105_aebc_9b50fca492da); -} +::windows_core::imp::com_interface!(IBadgeUpdateManagerStatics, IBadgeUpdateManagerStatics_Vtbl, 0x33400faa_6dd5_4105_aebc_9b50fca492da); #[repr(C)] #[doc(hidden)] pub struct IBadgeUpdateManagerStatics_Vtbl { @@ -148,16 +95,7 @@ pub struct IBadgeUpdateManagerStatics_Vtbl { #[cfg(not(feature = "Data_Xml_Dom"))] GetTemplateContent: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBadgeUpdateManagerStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBadgeUpdateManagerStatics2 { - type Vtable = IBadgeUpdateManagerStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBadgeUpdateManagerStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x979a35ce_f940_48bf_94e8_ca244d400b41); -} +::windows_core::imp::com_interface!(IBadgeUpdateManagerStatics2, IBadgeUpdateManagerStatics2_Vtbl, 0x979a35ce_f940_48bf_94e8_ca244d400b41); #[repr(C)] #[doc(hidden)] pub struct IBadgeUpdateManagerStatics2_Vtbl { @@ -167,16 +105,7 @@ pub struct IBadgeUpdateManagerStatics2_Vtbl { #[cfg(not(feature = "System"))] GetForUser: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBadgeUpdater(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBadgeUpdater { - type Vtable = IBadgeUpdater_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBadgeUpdater { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb5fa1fd4_7562_4f6c_bfa3_1b6ed2e57f2f); -} +::windows_core::imp::com_interface!(IBadgeUpdater, IBadgeUpdater_Vtbl, 0xb5fa1fd4_7562_4f6c_bfa3_1b6ed2e57f2f); #[repr(C)] #[doc(hidden)] pub struct IBadgeUpdater_Vtbl { @@ -187,16 +116,7 @@ pub struct IBadgeUpdater_Vtbl { pub StartPeriodicUpdateAtTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, badgecontent: *mut ::core::ffi::c_void, starttime: super::super::Foundation::DateTime, requestedinterval: PeriodicUpdateRecurrence) -> ::windows_core::HRESULT, pub StopPeriodicUpdate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKnownAdaptiveNotificationHintsStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKnownAdaptiveNotificationHintsStatics { - type Vtable = IKnownAdaptiveNotificationHintsStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKnownAdaptiveNotificationHintsStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x06206598_d496_497d_8692_4f7d7c2770df); -} +::windows_core::imp::com_interface!(IKnownAdaptiveNotificationHintsStatics, IKnownAdaptiveNotificationHintsStatics_Vtbl, 0x06206598_d496_497d_8692_4f7d7c2770df); #[repr(C)] #[doc(hidden)] pub struct IKnownAdaptiveNotificationHintsStatics_Vtbl { @@ -208,16 +128,7 @@ pub struct IKnownAdaptiveNotificationHintsStatics_Vtbl { pub TextStacking: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Align: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKnownAdaptiveNotificationTextStylesStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKnownAdaptiveNotificationTextStylesStatics { - type Vtable = IKnownAdaptiveNotificationTextStylesStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKnownAdaptiveNotificationTextStylesStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x202192d7_8996_45aa_8ba1_d461d72c2a1b); -} +::windows_core::imp::com_interface!(IKnownAdaptiveNotificationTextStylesStatics, IKnownAdaptiveNotificationTextStylesStatics_Vtbl, 0x202192d7_8996_45aa_8ba1_d461d72c2a1b); #[repr(C)] #[doc(hidden)] pub struct IKnownAdaptiveNotificationTextStylesStatics_Vtbl { @@ -242,32 +153,14 @@ pub struct IKnownAdaptiveNotificationTextStylesStatics_Vtbl { pub HeaderSubtle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub HeaderNumeralSubtle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKnownNotificationBindingsStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKnownNotificationBindingsStatics { - type Vtable = IKnownNotificationBindingsStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKnownNotificationBindingsStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x79427bae_a8b7_4d58_89ea_76a7b7bccded); -} +::windows_core::imp::com_interface!(IKnownNotificationBindingsStatics, IKnownNotificationBindingsStatics_Vtbl, 0x79427bae_a8b7_4d58_89ea_76a7b7bccded); #[repr(C)] #[doc(hidden)] pub struct IKnownNotificationBindingsStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ToastGeneric: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INotification(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INotification { - type Vtable = INotification_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INotification { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x108037fe_eb76_4f82_97bc_da07530a2e20); -} +::windows_core::imp::com_interface!(INotification, INotification_Vtbl, 0x108037fe_eb76_4f82_97bc_da07530a2e20); #[repr(C)] #[doc(hidden)] pub struct INotification_Vtbl { @@ -277,16 +170,7 @@ pub struct INotification_Vtbl { pub Visual: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetVisual: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INotificationBinding(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INotificationBinding { - type Vtable = INotificationBinding_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INotificationBinding { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf29e4b85_0370_4ad3_b4ea_da9e35e7eabf); -} +::windows_core::imp::com_interface!(INotificationBinding, INotificationBinding_Vtbl, 0xf29e4b85_0370_4ad3_b4ea_da9e35e7eabf); #[repr(C)] #[doc(hidden)] pub struct INotificationBinding_Vtbl { @@ -304,16 +188,7 @@ pub struct INotificationBinding_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetTextElements: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INotificationData(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INotificationData { - type Vtable = INotificationData_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INotificationData { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9ffd2312_9d6a_4aaf_b6ac_ff17f0c1f280); -} +::windows_core::imp::com_interface!(INotificationData, INotificationData_Vtbl, 0x9ffd2312_9d6a_4aaf_b6ac_ff17f0c1f280); #[repr(C)] #[doc(hidden)] pub struct INotificationData_Vtbl { @@ -325,16 +200,7 @@ pub struct INotificationData_Vtbl { pub SequenceNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, pub SetSequenceNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INotificationDataFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INotificationDataFactory { - type Vtable = INotificationDataFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INotificationDataFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x23c1e33a_1c10_46fb_8040_dec384621cf8); -} +::windows_core::imp::com_interface!(INotificationDataFactory, INotificationDataFactory_Vtbl, 0x23c1e33a_1c10_46fb_8040_dec384621cf8); #[repr(C)] #[doc(hidden)] pub struct INotificationDataFactory_Vtbl { @@ -348,16 +214,7 @@ pub struct INotificationDataFactory_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] CreateNotificationDataWithValues: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INotificationVisual(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INotificationVisual { - type Vtable = INotificationVisual_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INotificationVisual { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x68835b8e_aa56_4e11_86d3_5f9a6957bc5b); -} +::windows_core::imp::com_interface!(INotificationVisual, INotificationVisual_Vtbl, 0x68835b8e_aa56_4e11_86d3_5f9a6957bc5b); #[repr(C)] #[doc(hidden)] pub struct INotificationVisual_Vtbl { @@ -370,16 +227,7 @@ pub struct INotificationVisual_Vtbl { Bindings: usize, pub GetBinding: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, templatename: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IScheduledTileNotification(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IScheduledTileNotification { - type Vtable = IScheduledTileNotification_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IScheduledTileNotification { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0abca6d5_99dc_4c78_a11c_c9e7f86d7ef7); -} +::windows_core::imp::com_interface!(IScheduledTileNotification, IScheduledTileNotification_Vtbl, 0x0abca6d5_99dc_4c78_a11c_c9e7f86d7ef7); #[repr(C)] #[doc(hidden)] pub struct IScheduledTileNotification_Vtbl { @@ -396,16 +244,7 @@ pub struct IScheduledTileNotification_Vtbl { pub SetId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IScheduledTileNotificationFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IScheduledTileNotificationFactory { - type Vtable = IScheduledTileNotificationFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IScheduledTileNotificationFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3383138a_98c0_4c3b_bbd6_4a633c7cfc29); -} +::windows_core::imp::com_interface!(IScheduledTileNotificationFactory, IScheduledTileNotificationFactory_Vtbl, 0x3383138a_98c0_4c3b_bbd6_4a633c7cfc29); #[repr(C)] #[doc(hidden)] pub struct IScheduledTileNotificationFactory_Vtbl { @@ -415,16 +254,7 @@ pub struct IScheduledTileNotificationFactory_Vtbl { #[cfg(not(feature = "Data_Xml_Dom"))] CreateScheduledTileNotification: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IScheduledToastNotification(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IScheduledToastNotification { - type Vtable = IScheduledToastNotification_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IScheduledToastNotification { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x79f577f8_0de7_48cd_9740_9b370490c838); -} +::windows_core::imp::com_interface!(IScheduledToastNotification, IScheduledToastNotification_Vtbl, 0x79f577f8_0de7_48cd_9740_9b370490c838); #[repr(C)] #[doc(hidden)] pub struct IScheduledToastNotification_Vtbl { @@ -439,16 +269,7 @@ pub struct IScheduledToastNotification_Vtbl { pub SetId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IScheduledToastNotification2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IScheduledToastNotification2 { - type Vtable = IScheduledToastNotification2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IScheduledToastNotification2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa66ea09c_31b4_43b0_b5dd_7a40e85363b1); -} +::windows_core::imp::com_interface!(IScheduledToastNotification2, IScheduledToastNotification2_Vtbl, 0xa66ea09c_31b4_43b0_b5dd_7a40e85363b1); #[repr(C)] #[doc(hidden)] pub struct IScheduledToastNotification2_Vtbl { @@ -460,16 +281,7 @@ pub struct IScheduledToastNotification2_Vtbl { pub SetSuppressPopup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, pub SuppressPopup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IScheduledToastNotification3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IScheduledToastNotification3 { - type Vtable = IScheduledToastNotification3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IScheduledToastNotification3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x98429e8b_bd32_4a3b_9d15_22aea49462a1); -} +::windows_core::imp::com_interface!(IScheduledToastNotification3, IScheduledToastNotification3_Vtbl, 0x98429e8b_bd32_4a3b_9d15_22aea49462a1); #[repr(C)] #[doc(hidden)] pub struct IScheduledToastNotification3_Vtbl { @@ -479,16 +291,7 @@ pub struct IScheduledToastNotification3_Vtbl { pub RemoteId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetRemoteId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IScheduledToastNotification4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IScheduledToastNotification4 { - type Vtable = IScheduledToastNotification4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IScheduledToastNotification4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1d4761fd_bdef_4e4a_96be_0101369b58d2); -} +::windows_core::imp::com_interface!(IScheduledToastNotification4, IScheduledToastNotification4_Vtbl, 0x1d4761fd_bdef_4e4a_96be_0101369b58d2); #[repr(C)] #[doc(hidden)] pub struct IScheduledToastNotification4_Vtbl { @@ -496,16 +299,7 @@ pub struct IScheduledToastNotification4_Vtbl { pub ExpirationTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetExpirationTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IScheduledToastNotificationFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IScheduledToastNotificationFactory { - type Vtable = IScheduledToastNotificationFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IScheduledToastNotificationFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe7bed191_0bb9_4189_8394_31761b476fd7); -} +::windows_core::imp::com_interface!(IScheduledToastNotificationFactory, IScheduledToastNotificationFactory_Vtbl, 0xe7bed191_0bb9_4189_8394_31761b476fd7); #[repr(C)] #[doc(hidden)] pub struct IScheduledToastNotificationFactory_Vtbl { @@ -519,16 +313,7 @@ pub struct IScheduledToastNotificationFactory_Vtbl { #[cfg(not(feature = "Data_Xml_Dom"))] CreateScheduledToastNotificationRecurring: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IScheduledToastNotificationShowingEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IScheduledToastNotificationShowingEventArgs { - type Vtable = IScheduledToastNotificationShowingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IScheduledToastNotificationShowingEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6173f6b4_412a_5e2c_a6ed_a0209aef9a09); -} +::windows_core::imp::com_interface!(IScheduledToastNotificationShowingEventArgs, IScheduledToastNotificationShowingEventArgs_Vtbl, 0x6173f6b4_412a_5e2c_a6ed_a0209aef9a09); #[repr(C)] #[doc(hidden)] pub struct IScheduledToastNotificationShowingEventArgs_Vtbl { @@ -538,32 +323,14 @@ pub struct IScheduledToastNotificationShowingEventArgs_Vtbl { pub ScheduledToastNotification: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShownTileNotification(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IShownTileNotification { - type Vtable = IShownTileNotification_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IShownTileNotification { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x342d8988_5af2_481a_a6a3_f2fdc78de88e); -} +::windows_core::imp::com_interface!(IShownTileNotification, IShownTileNotification_Vtbl, 0x342d8988_5af2_481a_a6a3_f2fdc78de88e); #[repr(C)] #[doc(hidden)] pub struct IShownTileNotification_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Arguments: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITileFlyoutNotification(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITileFlyoutNotification { - type Vtable = ITileFlyoutNotification_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITileFlyoutNotification { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9a53b261_c70c_42be_b2f3_f42aa97d34e5); -} +::windows_core::imp::com_interface!(ITileFlyoutNotification, ITileFlyoutNotification_Vtbl, 0x9a53b261_c70c_42be_b2f3_f42aa97d34e5); #[repr(C)] #[doc(hidden)] pub struct ITileFlyoutNotification_Vtbl { @@ -575,16 +342,7 @@ pub struct ITileFlyoutNotification_Vtbl { pub SetExpirationTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ExpirationTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITileFlyoutNotificationFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITileFlyoutNotificationFactory { - type Vtable = ITileFlyoutNotificationFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITileFlyoutNotificationFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xef556ff5_5226_4f2b_b278_88a35dfe569f); -} +::windows_core::imp::com_interface!(ITileFlyoutNotificationFactory, ITileFlyoutNotificationFactory_Vtbl, 0xef556ff5_5226_4f2b_b278_88a35dfe569f); #[repr(C)] #[doc(hidden)] pub struct ITileFlyoutNotificationFactory_Vtbl { @@ -594,16 +352,7 @@ pub struct ITileFlyoutNotificationFactory_Vtbl { #[cfg(not(feature = "Data_Xml_Dom"))] CreateTileFlyoutNotification: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITileFlyoutUpdateManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITileFlyoutUpdateManagerStatics { - type Vtable = ITileFlyoutUpdateManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITileFlyoutUpdateManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x04363b0b_1ac0_4b99_88e7_ada83e953d48); -} +::windows_core::imp::com_interface!(ITileFlyoutUpdateManagerStatics, ITileFlyoutUpdateManagerStatics_Vtbl, 0x04363b0b_1ac0_4b99_88e7_ada83e953d48); #[repr(C)] #[doc(hidden)] pub struct ITileFlyoutUpdateManagerStatics_Vtbl { @@ -616,16 +365,7 @@ pub struct ITileFlyoutUpdateManagerStatics_Vtbl { #[cfg(not(feature = "Data_Xml_Dom"))] GetTemplateContent: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITileFlyoutUpdater(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITileFlyoutUpdater { - type Vtable = ITileFlyoutUpdater_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITileFlyoutUpdater { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8d40c76a_c465_4052_a740_5c2654c1a089); -} +::windows_core::imp::com_interface!(ITileFlyoutUpdater, ITileFlyoutUpdater_Vtbl, 0x8d40c76a_c465_4052_a740_5c2654c1a089); #[repr(C)] #[doc(hidden)] pub struct ITileFlyoutUpdater_Vtbl { @@ -637,16 +377,7 @@ pub struct ITileFlyoutUpdater_Vtbl { pub StopPeriodicUpdate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Setting: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut NotificationSetting) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITileNotification(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITileNotification { - type Vtable = ITileNotification_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITileNotification { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xebaec8fa_50ec_4c18_b4d0_3af02e5540ab); -} +::windows_core::imp::com_interface!(ITileNotification, ITileNotification_Vtbl, 0xebaec8fa_50ec_4c18_b4d0_3af02e5540ab); #[repr(C)] #[doc(hidden)] pub struct ITileNotification_Vtbl { @@ -660,16 +391,7 @@ pub struct ITileNotification_Vtbl { pub SetTag: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Tag: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITileNotificationFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITileNotificationFactory { - type Vtable = ITileNotificationFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITileNotificationFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc6abdd6e_4928_46c8_bdbf_81a047dea0d4); -} +::windows_core::imp::com_interface!(ITileNotificationFactory, ITileNotificationFactory_Vtbl, 0xc6abdd6e_4928_46c8_bdbf_81a047dea0d4); #[repr(C)] #[doc(hidden)] pub struct ITileNotificationFactory_Vtbl { @@ -679,16 +401,7 @@ pub struct ITileNotificationFactory_Vtbl { #[cfg(not(feature = "Data_Xml_Dom"))] CreateTileNotification: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITileUpdateManagerForUser(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITileUpdateManagerForUser { - type Vtable = ITileUpdateManagerForUser_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITileUpdateManagerForUser { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x55141348_2ee2_4e2d_9cc1_216a20decc9f); -} +::windows_core::imp::com_interface!(ITileUpdateManagerForUser, ITileUpdateManagerForUser_Vtbl, 0x55141348_2ee2_4e2d_9cc1_216a20decc9f); #[repr(C)] #[doc(hidden)] pub struct ITileUpdateManagerForUser_Vtbl { @@ -701,16 +414,7 @@ pub struct ITileUpdateManagerForUser_Vtbl { #[cfg(not(feature = "System"))] User: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITileUpdateManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITileUpdateManagerStatics { - type Vtable = ITileUpdateManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITileUpdateManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xda159e5d_3ea9_4986_8d84_b09d5e12276d); -} +::windows_core::imp::com_interface!(ITileUpdateManagerStatics, ITileUpdateManagerStatics_Vtbl, 0xda159e5d_3ea9_4986_8d84_b09d5e12276d); #[repr(C)] #[doc(hidden)] pub struct ITileUpdateManagerStatics_Vtbl { @@ -723,16 +427,7 @@ pub struct ITileUpdateManagerStatics_Vtbl { #[cfg(not(feature = "Data_Xml_Dom"))] GetTemplateContent: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITileUpdateManagerStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITileUpdateManagerStatics2 { - type Vtable = ITileUpdateManagerStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITileUpdateManagerStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x731c1ddc_8e14_4b7c_a34b_9d22de76c84d); -} +::windows_core::imp::com_interface!(ITileUpdateManagerStatics2, ITileUpdateManagerStatics2_Vtbl, 0x731c1ddc_8e14_4b7c_a34b_9d22de76c84d); #[repr(C)] #[doc(hidden)] pub struct ITileUpdateManagerStatics2_Vtbl { @@ -742,16 +437,7 @@ pub struct ITileUpdateManagerStatics2_Vtbl { #[cfg(not(feature = "System"))] GetForUser: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITileUpdater(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITileUpdater { - type Vtable = ITileUpdater_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITileUpdater { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0942a48b_1d91_44ec_9243_c1e821c29a20); -} +::windows_core::imp::com_interface!(ITileUpdater, ITileUpdater_Vtbl, 0x0942a48b_1d91_44ec_9243_c1e821c29a20); #[repr(C)] #[doc(hidden)] pub struct ITileUpdater_Vtbl { @@ -778,16 +464,7 @@ pub struct ITileUpdater_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] StartPeriodicUpdateBatchAtTime: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITileUpdater2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITileUpdater2 { - type Vtable = ITileUpdater2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITileUpdater2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa2266e12_15ee_43ed_83f5_65b352bb1a84); -} +::windows_core::imp::com_interface!(ITileUpdater2, ITileUpdater2_Vtbl, 0xa2266e12_15ee_43ed_83f5_65b352bb1a84); #[repr(C)] #[doc(hidden)] pub struct ITileUpdater2_Vtbl { @@ -796,32 +473,14 @@ pub struct ITileUpdater2_Vtbl { pub EnableNotificationQueueForWide310x150: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enable: bool) -> ::windows_core::HRESULT, pub EnableNotificationQueueForSquare310x310: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enable: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IToastActivatedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IToastActivatedEventArgs { - type Vtable = IToastActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IToastActivatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe3bf92f3_c197_436f_8265_0625824f8dac); -} +::windows_core::imp::com_interface!(IToastActivatedEventArgs, IToastActivatedEventArgs_Vtbl, 0xe3bf92f3_c197_436f_8265_0625824f8dac); #[repr(C)] #[doc(hidden)] pub struct IToastActivatedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Arguments: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IToastActivatedEventArgs2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IToastActivatedEventArgs2 { - type Vtable = IToastActivatedEventArgs2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IToastActivatedEventArgs2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xab7da512_cc61_568e_81be_304ac31038fa); -} +::windows_core::imp::com_interface!(IToastActivatedEventArgs2, IToastActivatedEventArgs2_Vtbl, 0xab7da512_cc61_568e_81be_304ac31038fa); #[repr(C)] #[doc(hidden)] pub struct IToastActivatedEventArgs2_Vtbl { @@ -831,16 +490,7 @@ pub struct IToastActivatedEventArgs2_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] UserInput: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IToastCollection(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IToastCollection { - type Vtable = IToastCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IToastCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0a8bc3b0_e0be_4858_bc2a_89dfe0b32863); -} +::windows_core::imp::com_interface!(IToastCollection, IToastCollection_Vtbl, 0x0a8bc3b0_e0be_4858_bc2a_89dfe0b32863); #[repr(C)] #[doc(hidden)] pub struct IToastCollection_Vtbl { @@ -853,32 +503,14 @@ pub struct IToastCollection_Vtbl { pub Icon: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetIcon: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IToastCollectionFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IToastCollectionFactory { - type Vtable = IToastCollectionFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IToastCollectionFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x164dd3d7_73c4_44f7_b4ff_fb6d4bf1f4c6); -} +::windows_core::imp::com_interface!(IToastCollectionFactory, IToastCollectionFactory_Vtbl, 0x164dd3d7_73c4_44f7_b4ff_fb6d4bf1f4c6); #[repr(C)] #[doc(hidden)] pub struct IToastCollectionFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, collectionid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, displayname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, launchargs: ::std::mem::MaybeUninit<::windows_core::HSTRING>, iconuri: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IToastCollectionManager(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IToastCollectionManager { - type Vtable = IToastCollectionManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IToastCollectionManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2a1821fe_179d_49bc_b79d_a527920d3665); -} +::windows_core::imp::com_interface!(IToastCollectionManager, IToastCollectionManager_Vtbl, 0x2a1821fe_179d_49bc_b79d_a527920d3665); #[repr(C)] #[doc(hidden)] pub struct IToastCollectionManager_Vtbl { @@ -897,48 +529,21 @@ pub struct IToastCollectionManager_Vtbl { User: usize, pub AppId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IToastDismissedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IToastDismissedEventArgs { - type Vtable = IToastDismissedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IToastDismissedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3f89d935_d9cb_4538_a0f0_ffe7659938f8); -} +::windows_core::imp::com_interface!(IToastDismissedEventArgs, IToastDismissedEventArgs_Vtbl, 0x3f89d935_d9cb_4538_a0f0_ffe7659938f8); #[repr(C)] #[doc(hidden)] pub struct IToastDismissedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Reason: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ToastDismissalReason) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IToastFailedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IToastFailedEventArgs { - type Vtable = IToastFailedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IToastFailedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x35176862_cfd4_44f8_ad64_f500fd896c3b); -} +::windows_core::imp::com_interface!(IToastFailedEventArgs, IToastFailedEventArgs_Vtbl, 0x35176862_cfd4_44f8_ad64_f500fd896c3b); #[repr(C)] #[doc(hidden)] pub struct IToastFailedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ErrorCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IToastNotification(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IToastNotification { - type Vtable = IToastNotification_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IToastNotification { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x997e2675_059e_4e60_8b06_1760917c8b80); -} +::windows_core::imp::com_interface!(IToastNotification, IToastNotification_Vtbl, 0x997e2675_059e_4e60_8b06_1760917c8b80); #[repr(C)] #[doc(hidden)] pub struct IToastNotification_Vtbl { @@ -956,16 +561,7 @@ pub struct IToastNotification_Vtbl { pub Failed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveFailed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IToastNotification2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IToastNotification2 { - type Vtable = IToastNotification2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IToastNotification2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9dfb9fd1_143a_490e_90bf_b9fba7132de7); -} +::windows_core::imp::com_interface!(IToastNotification2, IToastNotification2_Vtbl, 0x9dfb9fd1_143a_490e_90bf_b9fba7132de7); #[repr(C)] #[doc(hidden)] pub struct IToastNotification2_Vtbl { @@ -977,16 +573,7 @@ pub struct IToastNotification2_Vtbl { pub SetSuppressPopup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, pub SuppressPopup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IToastNotification3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IToastNotification3 { - type Vtable = IToastNotification3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IToastNotification3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x31e8aed8_8141_4f99_bc0a_c4ed21297d77); -} +::windows_core::imp::com_interface!(IToastNotification3, IToastNotification3_Vtbl, 0x31e8aed8_8141_4f99_bc0a_c4ed21297d77); #[repr(C)] #[doc(hidden)] pub struct IToastNotification3_Vtbl { @@ -996,16 +583,7 @@ pub struct IToastNotification3_Vtbl { pub RemoteId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetRemoteId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IToastNotification4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IToastNotification4 { - type Vtable = IToastNotification4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IToastNotification4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x15154935_28ea_4727_88e9_c58680e2d118); -} +::windows_core::imp::com_interface!(IToastNotification4, IToastNotification4_Vtbl, 0x15154935_28ea_4727_88e9_c58680e2d118); #[repr(C)] #[doc(hidden)] pub struct IToastNotification4_Vtbl { @@ -1015,16 +593,7 @@ pub struct IToastNotification4_Vtbl { pub Priority: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ToastNotificationPriority) -> ::windows_core::HRESULT, pub SetPriority: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ToastNotificationPriority) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IToastNotification6(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IToastNotification6 { - type Vtable = IToastNotification6_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IToastNotification6 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x43ebfe53_89ae_5c1e_a279_3aecfe9b6f54); -} +::windows_core::imp::com_interface!(IToastNotification6, IToastNotification6_Vtbl, 0x43ebfe53_89ae_5c1e_a279_3aecfe9b6f54); #[repr(C)] #[doc(hidden)] pub struct IToastNotification6_Vtbl { @@ -1032,16 +601,7 @@ pub struct IToastNotification6_Vtbl { pub ExpiresOnReboot: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetExpiresOnReboot: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IToastNotificationActionTriggerDetail(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IToastNotificationActionTriggerDetail { - type Vtable = IToastNotificationActionTriggerDetail_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IToastNotificationActionTriggerDetail { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9445135a_38f3_42f6_96aa_7955b0f03da2); -} +::windows_core::imp::com_interface!(IToastNotificationActionTriggerDetail, IToastNotificationActionTriggerDetail_Vtbl, 0x9445135a_38f3_42f6_96aa_7955b0f03da2); #[repr(C)] #[doc(hidden)] pub struct IToastNotificationActionTriggerDetail_Vtbl { @@ -1052,16 +612,7 @@ pub struct IToastNotificationActionTriggerDetail_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] UserInput: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IToastNotificationFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IToastNotificationFactory { - type Vtable = IToastNotificationFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IToastNotificationFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x04124b20_82c6_4229_b109_fd9ed4662b53); -} +::windows_core::imp::com_interface!(IToastNotificationFactory, IToastNotificationFactory_Vtbl, 0x04124b20_82c6_4229_b109_fd9ed4662b53); #[repr(C)] #[doc(hidden)] pub struct IToastNotificationFactory_Vtbl { @@ -1071,16 +622,7 @@ pub struct IToastNotificationFactory_Vtbl { #[cfg(not(feature = "Data_Xml_Dom"))] CreateToastNotification: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IToastNotificationHistory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IToastNotificationHistory { - type Vtable = IToastNotificationHistory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IToastNotificationHistory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5caddc63_01d3_4c97_986f_0533483fee14); -} +::windows_core::imp::com_interface!(IToastNotificationHistory, IToastNotificationHistory_Vtbl, 0x5caddc63_01d3_4c97_986f_0533483fee14); #[repr(C)] #[doc(hidden)] pub struct IToastNotificationHistory_Vtbl { @@ -1093,16 +635,7 @@ pub struct IToastNotificationHistory_Vtbl { pub Clear: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ClearWithId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, applicationid: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IToastNotificationHistory2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IToastNotificationHistory2 { - type Vtable = IToastNotificationHistory2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IToastNotificationHistory2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3bc3d253_2f31_4092_9129_8ad5abf067da); -} +::windows_core::imp::com_interface!(IToastNotificationHistory2, IToastNotificationHistory2_Vtbl, 0x3bc3d253_2f31_4092_9129_8ad5abf067da); #[repr(C)] #[doc(hidden)] pub struct IToastNotificationHistory2_Vtbl { @@ -1116,48 +649,21 @@ pub struct IToastNotificationHistory2_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetHistoryWithId: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IToastNotificationHistoryChangedTriggerDetail(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IToastNotificationHistoryChangedTriggerDetail { - type Vtable = IToastNotificationHistoryChangedTriggerDetail_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IToastNotificationHistoryChangedTriggerDetail { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdb037ffa_0068_412c_9c83_267c37f65670); -} +::windows_core::imp::com_interface!(IToastNotificationHistoryChangedTriggerDetail, IToastNotificationHistoryChangedTriggerDetail_Vtbl, 0xdb037ffa_0068_412c_9c83_267c37f65670); #[repr(C)] #[doc(hidden)] pub struct IToastNotificationHistoryChangedTriggerDetail_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ChangeType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ToastHistoryChangedType) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IToastNotificationHistoryChangedTriggerDetail2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IToastNotificationHistoryChangedTriggerDetail2 { - type Vtable = IToastNotificationHistoryChangedTriggerDetail2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IToastNotificationHistoryChangedTriggerDetail2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0b36e982_c871_49fb_babb_25bdbc4cc45b); -} +::windows_core::imp::com_interface!(IToastNotificationHistoryChangedTriggerDetail2, IToastNotificationHistoryChangedTriggerDetail2_Vtbl, 0x0b36e982_c871_49fb_babb_25bdbc4cc45b); #[repr(C)] #[doc(hidden)] pub struct IToastNotificationHistoryChangedTriggerDetail2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CollectionId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IToastNotificationManagerForUser(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IToastNotificationManagerForUser { - type Vtable = IToastNotificationManagerForUser_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IToastNotificationManagerForUser { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x79ab57f6_43fe_487b_8a7f_99567200ae94); -} +::windows_core::imp::com_interface!(IToastNotificationManagerForUser, IToastNotificationManagerForUser_Vtbl, 0x79ab57f6_43fe_487b_8a7f_99567200ae94); #[repr(C)] #[doc(hidden)] pub struct IToastNotificationManagerForUser_Vtbl { @@ -1170,16 +676,7 @@ pub struct IToastNotificationManagerForUser_Vtbl { #[cfg(not(feature = "System"))] User: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IToastNotificationManagerForUser2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IToastNotificationManagerForUser2 { - type Vtable = IToastNotificationManagerForUser2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IToastNotificationManagerForUser2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x679c64b7_81ab_42c2_8819_c958767753f4); -} +::windows_core::imp::com_interface!(IToastNotificationManagerForUser2, IToastNotificationManagerForUser2_Vtbl, 0x679c64b7_81ab_42c2_8819_c958767753f4); #[repr(C)] #[doc(hidden)] pub struct IToastNotificationManagerForUser2_Vtbl { @@ -1189,16 +686,7 @@ pub struct IToastNotificationManagerForUser2_Vtbl { pub GetToastCollectionManager: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetToastCollectionManagerWithAppId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, appid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IToastNotificationManagerForUser3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IToastNotificationManagerForUser3 { - type Vtable = IToastNotificationManagerForUser3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IToastNotificationManagerForUser3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3efcb176_6cc1_56dc_973b_251f7aacb1c5); -} +::windows_core::imp::com_interface!(IToastNotificationManagerForUser3, IToastNotificationManagerForUser3_Vtbl, 0x3efcb176_6cc1_56dc_973b_251f7aacb1c5); #[repr(C)] #[doc(hidden)] pub struct IToastNotificationManagerForUser3_Vtbl { @@ -1207,16 +695,7 @@ pub struct IToastNotificationManagerForUser3_Vtbl { pub NotificationModeChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveNotificationModeChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IToastNotificationManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IToastNotificationManagerStatics { - type Vtable = IToastNotificationManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IToastNotificationManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x50ac103f_d235_4598_bbef_98fe4d1a3ad4); -} +::windows_core::imp::com_interface!(IToastNotificationManagerStatics, IToastNotificationManagerStatics_Vtbl, 0x50ac103f_d235_4598_bbef_98fe4d1a3ad4); #[repr(C)] #[doc(hidden)] pub struct IToastNotificationManagerStatics_Vtbl { @@ -1228,32 +707,14 @@ pub struct IToastNotificationManagerStatics_Vtbl { #[cfg(not(feature = "Data_Xml_Dom"))] GetTemplateContent: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IToastNotificationManagerStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IToastNotificationManagerStatics2 { - type Vtable = IToastNotificationManagerStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IToastNotificationManagerStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7ab93c52_0e48_4750_ba9d_1a4113981847); -} +::windows_core::imp::com_interface!(IToastNotificationManagerStatics2, IToastNotificationManagerStatics2_Vtbl, 0x7ab93c52_0e48_4750_ba9d_1a4113981847); #[repr(C)] #[doc(hidden)] pub struct IToastNotificationManagerStatics2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub History: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IToastNotificationManagerStatics4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IToastNotificationManagerStatics4 { - type Vtable = IToastNotificationManagerStatics4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IToastNotificationManagerStatics4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8f993fd3_e516_45fb_8130_398e93fa52c3); -} +::windows_core::imp::com_interface!(IToastNotificationManagerStatics4, IToastNotificationManagerStatics4_Vtbl, 0x8f993fd3_e516_45fb_8130_398e93fa52c3); #[repr(C)] #[doc(hidden)] pub struct IToastNotificationManagerStatics4_Vtbl { @@ -1264,32 +725,14 @@ pub struct IToastNotificationManagerStatics4_Vtbl { GetForUser: usize, pub ConfigureNotificationMirroring: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: NotificationMirroring) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IToastNotificationManagerStatics5(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IToastNotificationManagerStatics5 { - type Vtable = IToastNotificationManagerStatics5_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IToastNotificationManagerStatics5 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd6f5f569_d40d_407c_8989_88cab42cfd14); -} +::windows_core::imp::com_interface!(IToastNotificationManagerStatics5, IToastNotificationManagerStatics5_Vtbl, 0xd6f5f569_d40d_407c_8989_88cab42cfd14); #[repr(C)] #[doc(hidden)] pub struct IToastNotificationManagerStatics5_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetDefault: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IToastNotifier(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IToastNotifier { - type Vtable = IToastNotifier_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IToastNotifier { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x75927b93_03f3_41ec_91d3_6e5bac1b38e7); -} +::windows_core::imp::com_interface!(IToastNotifier, IToastNotifier_Vtbl, 0x75927b93_03f3_41ec_91d3_6e5bac1b38e7); #[repr(C)] #[doc(hidden)] pub struct IToastNotifier_Vtbl { @@ -1304,16 +747,7 @@ pub struct IToastNotifier_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetScheduledToastNotifications: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IToastNotifier2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IToastNotifier2 { - type Vtable = IToastNotifier2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IToastNotifier2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x354389c6_7c01_4bd5_9c20_604340cd2b74); -} +::windows_core::imp::com_interface!(IToastNotifier2, IToastNotifier2_Vtbl, 0x354389c6_7c01_4bd5_9c20_604340cd2b74); #[repr(C)] #[doc(hidden)] pub struct IToastNotifier2_Vtbl { @@ -1321,16 +755,7 @@ pub struct IToastNotifier2_Vtbl { pub UpdateWithTagAndGroup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, data: *mut ::core::ffi::c_void, tag: ::std::mem::MaybeUninit<::windows_core::HSTRING>, group: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut NotificationUpdateResult) -> ::windows_core::HRESULT, pub UpdateWithTag: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, data: *mut ::core::ffi::c_void, tag: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut NotificationUpdateResult) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IToastNotifier3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IToastNotifier3 { - type Vtable = IToastNotifier3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IToastNotifier3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xae75a04a_3b0c_51ad_b7e8_b08ab6052549); -} +::windows_core::imp::com_interface!(IToastNotifier3, IToastNotifier3_Vtbl, 0xae75a04a_3b0c_51ad_b7e8_b08ab6052549); #[repr(C)] #[doc(hidden)] pub struct IToastNotifier3_Vtbl { @@ -1338,16 +763,7 @@ pub struct IToastNotifier3_Vtbl { pub ScheduledToastNotificationShowing: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveScheduledToastNotificationShowing: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserNotification(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserNotification { - type Vtable = IUserNotification_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserNotification { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xadf7e52f_4e53_42d5_9c33_eb5ea515b23e); -} +::windows_core::imp::com_interface!(IUserNotification, IUserNotification_Vtbl, 0xadf7e52f_4e53_42d5_9c33_eb5ea515b23e); #[repr(C)] #[doc(hidden)] pub struct IUserNotification_Vtbl { @@ -1360,16 +776,7 @@ pub struct IUserNotification_Vtbl { pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, pub CreationTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::DateTime) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserNotificationChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserNotificationChangedEventArgs { - type Vtable = IUserNotificationChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserNotificationChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb6bd6839_79cf_4b25_82c0_0ce1eef81f8c); -} +::windows_core::imp::com_interface!(IUserNotificationChangedEventArgs, IUserNotificationChangedEventArgs_Vtbl, 0xb6bd6839_79cf_4b25_82c0_0ce1eef81f8c); #[repr(C)] #[doc(hidden)] pub struct IUserNotificationChangedEventArgs_Vtbl { @@ -1380,6 +787,8 @@ pub struct IUserNotificationChangedEventArgs_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AdaptiveNotificationText(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AdaptiveNotificationText, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(AdaptiveNotificationText, IAdaptiveNotificationContent); impl AdaptiveNotificationText { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1389,7 +798,7 @@ impl AdaptiveNotificationText { SHARED.call(callback) } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1398,7 +807,7 @@ impl AdaptiveNotificationText { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Hints(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Hints)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1432,20 +841,17 @@ impl ::windows_core::RuntimeType for AdaptiveNotificationText { } unsafe impl ::windows_core::Interface for AdaptiveNotificationText { type Vtable = IAdaptiveNotificationText_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AdaptiveNotificationText { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AdaptiveNotificationText { const NAME: &'static str = "Windows.UI.Notifications.AdaptiveNotificationText"; } -::windows_core::imp::interface_hierarchy!(AdaptiveNotificationText, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for AdaptiveNotificationText {} unsafe impl ::core::marker::Send for AdaptiveNotificationText {} unsafe impl ::core::marker::Sync for AdaptiveNotificationText {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BadgeNotification(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BadgeNotification, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BadgeNotification { #[doc = "Required features: `\"Data_Xml_Dom\"`"] #[cfg(feature = "Data_Xml_Dom")] @@ -1458,10 +864,10 @@ impl BadgeNotification { } pub fn SetExpirationTime(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetExpirationTime)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetExpirationTime)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn ExpirationTime(&self) -> ::windows_core::Result> { let this = self; @@ -1492,14 +898,11 @@ impl ::windows_core::RuntimeType for BadgeNotification { } unsafe impl ::windows_core::Interface for BadgeNotification { type Vtable = IBadgeNotification_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BadgeNotification { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BadgeNotification { const NAME: &'static str = "Windows.UI.Notifications.BadgeNotification"; } -::windows_core::imp::interface_hierarchy!(BadgeNotification, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BadgeNotification {} unsafe impl ::core::marker::Sync for BadgeNotification {} pub struct BadgeUpdateManager; @@ -1558,6 +961,7 @@ impl ::windows_core::RuntimeName for BadgeUpdateManager { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BadgeUpdateManagerForUser(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BadgeUpdateManagerForUser, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BadgeUpdateManagerForUser { pub fn CreateBadgeUpdaterForApplication(&self) -> ::windows_core::Result { let this = self; @@ -1595,19 +999,17 @@ impl ::windows_core::RuntimeType for BadgeUpdateManagerForUser { } unsafe impl ::windows_core::Interface for BadgeUpdateManagerForUser { type Vtable = IBadgeUpdateManagerForUser_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BadgeUpdateManagerForUser { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BadgeUpdateManagerForUser { const NAME: &'static str = "Windows.UI.Notifications.BadgeUpdateManagerForUser"; } -::windows_core::imp::interface_hierarchy!(BadgeUpdateManagerForUser, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BadgeUpdateManagerForUser {} unsafe impl ::core::marker::Sync for BadgeUpdateManagerForUser {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BadgeUpdater(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(BadgeUpdater, ::windows_core::IUnknown, ::windows_core::IInspectable); impl BadgeUpdater { pub fn Update(&self, notification: P0) -> ::windows_core::Result<()> where @@ -1644,14 +1046,11 @@ impl ::windows_core::RuntimeType for BadgeUpdater { } unsafe impl ::windows_core::Interface for BadgeUpdater { type Vtable = IBadgeUpdater_Vtbl; -} -unsafe impl ::windows_core::ComInterface for BadgeUpdater { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for BadgeUpdater { const NAME: &'static str = "Windows.UI.Notifications.BadgeUpdater"; } -::windows_core::imp::interface_hierarchy!(BadgeUpdater, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for BadgeUpdater {} unsafe impl ::core::marker::Sync for BadgeUpdater {} pub struct KnownAdaptiveNotificationHints; @@ -1846,6 +1245,7 @@ impl ::windows_core::RuntimeName for KnownNotificationBindings { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Notification(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Notification, ::windows_core::IUnknown, ::windows_core::IInspectable); impl Notification { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1863,10 +1263,10 @@ impl Notification { } pub fn SetExpirationTime(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetExpirationTime)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetExpirationTime)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn Visual(&self) -> ::windows_core::Result { let this = self; @@ -1888,19 +1288,17 @@ impl ::windows_core::RuntimeType for Notification { } unsafe impl ::windows_core::Interface for Notification { type Vtable = INotification_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Notification { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Notification { const NAME: &'static str = "Windows.UI.Notifications.Notification"; } -::windows_core::imp::interface_hierarchy!(Notification, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for Notification {} unsafe impl ::core::marker::Sync for Notification {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct NotificationBinding(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(NotificationBinding, ::windows_core::IUnknown, ::windows_core::IInspectable); impl NotificationBinding { pub fn Template(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1948,19 +1346,17 @@ impl ::windows_core::RuntimeType for NotificationBinding { } unsafe impl ::windows_core::Interface for NotificationBinding { type Vtable = INotificationBinding_Vtbl; -} -unsafe impl ::windows_core::ComInterface for NotificationBinding { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for NotificationBinding { const NAME: &'static str = "Windows.UI.Notifications.NotificationBinding"; } -::windows_core::imp::interface_hierarchy!(NotificationBinding, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for NotificationBinding {} unsafe impl ::core::marker::Sync for NotificationBinding {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct NotificationData(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(NotificationData, ::windows_core::IUnknown, ::windows_core::IInspectable); impl NotificationData { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1993,22 +1389,22 @@ impl NotificationData { #[cfg(feature = "Foundation_Collections")] pub fn CreateNotificationDataWithValuesAndSequenceNumber(initialvalues: P0, sequencenumber: u32) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>>, + P0: ::windows_core::IntoParam>>, { Self::INotificationDataFactory(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateNotificationDataWithValuesAndSequenceNumber)(::windows_core::Interface::as_raw(this), initialvalues.try_into_param()?.abi(), sequencenumber, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateNotificationDataWithValuesAndSequenceNumber)(::windows_core::Interface::as_raw(this), initialvalues.into_param().abi(), sequencenumber, &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn CreateNotificationDataWithValues(initialvalues: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>>, + P0: ::windows_core::IntoParam>>, { Self::INotificationDataFactory(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateNotificationDataWithValues)(::windows_core::Interface::as_raw(this), initialvalues.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateNotificationDataWithValues)(::windows_core::Interface::as_raw(this), initialvalues.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -2022,19 +1418,17 @@ impl ::windows_core::RuntimeType for NotificationData { } unsafe impl ::windows_core::Interface for NotificationData { type Vtable = INotificationData_Vtbl; -} -unsafe impl ::windows_core::ComInterface for NotificationData { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for NotificationData { const NAME: &'static str = "Windows.UI.Notifications.NotificationData"; } -::windows_core::imp::interface_hierarchy!(NotificationData, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for NotificationData {} unsafe impl ::core::marker::Sync for NotificationData {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct NotificationVisual(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(NotificationVisual, ::windows_core::IUnknown, ::windows_core::IInspectable); impl NotificationVisual { pub fn Language(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -2069,19 +1463,17 @@ impl ::windows_core::RuntimeType for NotificationVisual { } unsafe impl ::windows_core::Interface for NotificationVisual { type Vtable = INotificationVisual_Vtbl; -} -unsafe impl ::windows_core::ComInterface for NotificationVisual { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for NotificationVisual { const NAME: &'static str = "Windows.UI.Notifications.NotificationVisual"; } -::windows_core::imp::interface_hierarchy!(NotificationVisual, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for NotificationVisual {} unsafe impl ::core::marker::Sync for NotificationVisual {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ScheduledTileNotification(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ScheduledTileNotification, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ScheduledTileNotification { #[doc = "Required features: `\"Data_Xml_Dom\"`"] #[cfg(feature = "Data_Xml_Dom")] @@ -2101,10 +1493,10 @@ impl ScheduledTileNotification { } pub fn SetExpirationTime(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetExpirationTime)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetExpirationTime)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn ExpirationTime(&self) -> ::windows_core::Result> { let this = self; @@ -2157,19 +1549,17 @@ impl ::windows_core::RuntimeType for ScheduledTileNotification { } unsafe impl ::windows_core::Interface for ScheduledTileNotification { type Vtable = IScheduledTileNotification_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ScheduledTileNotification { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ScheduledTileNotification { const NAME: &'static str = "Windows.UI.Notifications.ScheduledTileNotification"; } -::windows_core::imp::interface_hierarchy!(ScheduledTileNotification, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ScheduledTileNotification {} unsafe impl ::core::marker::Sync for ScheduledTileNotification {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ScheduledToastNotification(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ScheduledToastNotification, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ScheduledToastNotification { #[doc = "Required features: `\"Data_Xml_Dom\"`"] #[cfg(feature = "Data_Xml_Dom")] @@ -2213,62 +1603,62 @@ impl ScheduledToastNotification { } } pub fn SetTag(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetTag)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn Tag(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Tag)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetGroup(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetGroup)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn Group(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Group)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetSuppressPopup(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetSuppressPopup)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn SuppressPopup(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SuppressPopup)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn NotificationMirroring(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NotificationMirroring)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetNotificationMirroring(&self, value: NotificationMirroring) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetNotificationMirroring)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn RemoteId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RemoteId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetRemoteId(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRemoteId)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ExpirationTime(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ExpirationTime)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2276,10 +1666,10 @@ impl ScheduledToastNotification { } pub fn SetExpirationTime(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetExpirationTime)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"Data_Xml_Dom\"`"] #[cfg(feature = "Data_Xml_Dom")] @@ -2314,19 +1704,17 @@ impl ::windows_core::RuntimeType for ScheduledToastNotification { } unsafe impl ::windows_core::Interface for ScheduledToastNotification { type Vtable = IScheduledToastNotification_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ScheduledToastNotification { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ScheduledToastNotification { const NAME: &'static str = "Windows.UI.Notifications.ScheduledToastNotification"; } -::windows_core::imp::interface_hierarchy!(ScheduledToastNotification, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ScheduledToastNotification {} unsafe impl ::core::marker::Sync for ScheduledToastNotification {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ScheduledToastNotificationShowingEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ScheduledToastNotificationShowingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ScheduledToastNotificationShowingEventArgs { pub fn Cancel(&self) -> ::windows_core::Result { let this = self; @@ -2359,19 +1747,17 @@ impl ::windows_core::RuntimeType for ScheduledToastNotificationShowingEventArgs } unsafe impl ::windows_core::Interface for ScheduledToastNotificationShowingEventArgs { type Vtable = IScheduledToastNotificationShowingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ScheduledToastNotificationShowingEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ScheduledToastNotificationShowingEventArgs { const NAME: &'static str = "Windows.UI.Notifications.ScheduledToastNotificationShowingEventArgs"; } -::windows_core::imp::interface_hierarchy!(ScheduledToastNotificationShowingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ScheduledToastNotificationShowingEventArgs {} unsafe impl ::core::marker::Sync for ScheduledToastNotificationShowingEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ShownTileNotification(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ShownTileNotification, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ShownTileNotification { pub fn Arguments(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -2386,19 +1772,17 @@ impl ::windows_core::RuntimeType for ShownTileNotification { } unsafe impl ::windows_core::Interface for ShownTileNotification { type Vtable = IShownTileNotification_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ShownTileNotification { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ShownTileNotification { const NAME: &'static str = "Windows.UI.Notifications.ShownTileNotification"; } -::windows_core::imp::interface_hierarchy!(ShownTileNotification, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ShownTileNotification {} unsafe impl ::core::marker::Sync for ShownTileNotification {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct TileFlyoutNotification(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(TileFlyoutNotification, ::windows_core::IUnknown, ::windows_core::IInspectable); impl TileFlyoutNotification { #[doc = "Required features: `\"Data_Xml_Dom\"`"] #[cfg(feature = "Data_Xml_Dom")] @@ -2411,10 +1795,10 @@ impl TileFlyoutNotification { } pub fn SetExpirationTime(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetExpirationTime)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetExpirationTime)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn ExpirationTime(&self) -> ::windows_core::Result> { let this = self; @@ -2445,14 +1829,11 @@ impl ::windows_core::RuntimeType for TileFlyoutNotification { } unsafe impl ::windows_core::Interface for TileFlyoutNotification { type Vtable = ITileFlyoutNotification_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TileFlyoutNotification { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for TileFlyoutNotification { const NAME: &'static str = "Windows.UI.Notifications.TileFlyoutNotification"; } -::windows_core::imp::interface_hierarchy!(TileFlyoutNotification, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for TileFlyoutNotification {} unsafe impl ::core::marker::Sync for TileFlyoutNotification {} pub struct TileFlyoutUpdateManager; @@ -2495,6 +1876,7 @@ impl ::windows_core::RuntimeName for TileFlyoutUpdateManager { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct TileFlyoutUpdater(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(TileFlyoutUpdater, ::windows_core::IUnknown, ::windows_core::IInspectable); impl TileFlyoutUpdater { pub fn Update(&self, notification: P0) -> ::windows_core::Result<()> where @@ -2538,17 +1920,15 @@ impl ::windows_core::RuntimeType for TileFlyoutUpdater { } unsafe impl ::windows_core::Interface for TileFlyoutUpdater { type Vtable = ITileFlyoutUpdater_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TileFlyoutUpdater { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for TileFlyoutUpdater { const NAME: &'static str = "Windows.UI.Notifications.TileFlyoutUpdater"; } -::windows_core::imp::interface_hierarchy!(TileFlyoutUpdater, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct TileNotification(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(TileNotification, ::windows_core::IUnknown, ::windows_core::IInspectable); impl TileNotification { #[doc = "Required features: `\"Data_Xml_Dom\"`"] #[cfg(feature = "Data_Xml_Dom")] @@ -2561,10 +1941,10 @@ impl TileNotification { } pub fn SetExpirationTime(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetExpirationTime)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetExpirationTime)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn ExpirationTime(&self) -> ::windows_core::Result> { let this = self; @@ -2606,14 +1986,11 @@ impl ::windows_core::RuntimeType for TileNotification { } unsafe impl ::windows_core::Interface for TileNotification { type Vtable = ITileNotification_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TileNotification { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for TileNotification { const NAME: &'static str = "Windows.UI.Notifications.TileNotification"; } -::windows_core::imp::interface_hierarchy!(TileNotification, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for TileNotification {} unsafe impl ::core::marker::Sync for TileNotification {} pub struct TileUpdateManager; @@ -2672,6 +2049,7 @@ impl ::windows_core::RuntimeName for TileUpdateManager { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct TileUpdateManagerForUser(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(TileUpdateManagerForUser, ::windows_core::IUnknown, ::windows_core::IInspectable); impl TileUpdateManagerForUser { pub fn CreateTileUpdaterForApplication(&self) -> ::windows_core::Result { let this = self; @@ -2709,19 +2087,17 @@ impl ::windows_core::RuntimeType for TileUpdateManagerForUser { } unsafe impl ::windows_core::Interface for TileUpdateManagerForUser { type Vtable = ITileUpdateManagerForUser_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TileUpdateManagerForUser { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for TileUpdateManagerForUser { const NAME: &'static str = "Windows.UI.Notifications.TileUpdateManagerForUser"; } -::windows_core::imp::interface_hierarchy!(TileUpdateManagerForUser, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for TileUpdateManagerForUser {} unsafe impl ::core::marker::Sync for TileUpdateManagerForUser {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct TileUpdater(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(TileUpdater, ::windows_core::IUnknown, ::windows_core::IInspectable); impl TileUpdater { pub fn Update(&self, notification: P0) -> ::windows_core::Result<()> where @@ -2790,30 +2166,30 @@ impl TileUpdater { #[cfg(feature = "Foundation_Collections")] pub fn StartPeriodicUpdateBatch(&self, tilecontents: P0, requestedinterval: PeriodicUpdateRecurrence) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).StartPeriodicUpdateBatch)(::windows_core::Interface::as_raw(this), tilecontents.try_into_param()?.abi(), requestedinterval).ok() } + unsafe { (::windows_core::Interface::vtable(this).StartPeriodicUpdateBatch)(::windows_core::Interface::as_raw(this), tilecontents.into_param().abi(), requestedinterval).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn StartPeriodicUpdateBatchAtTime(&self, tilecontents: P0, starttime: super::super::Foundation::DateTime, requestedinterval: PeriodicUpdateRecurrence) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).StartPeriodicUpdateBatchAtTime)(::windows_core::Interface::as_raw(this), tilecontents.try_into_param()?.abi(), starttime, requestedinterval).ok() } + unsafe { (::windows_core::Interface::vtable(this).StartPeriodicUpdateBatchAtTime)(::windows_core::Interface::as_raw(this), tilecontents.into_param().abi(), starttime, requestedinterval).ok() } } pub fn EnableNotificationQueueForSquare150x150(&self, enable: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).EnableNotificationQueueForSquare150x150)(::windows_core::Interface::as_raw(this), enable).ok() } } pub fn EnableNotificationQueueForWide310x150(&self, enable: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).EnableNotificationQueueForWide310x150)(::windows_core::Interface::as_raw(this), enable).ok() } } pub fn EnableNotificationQueueForSquare310x310(&self, enable: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).EnableNotificationQueueForSquare310x310)(::windows_core::Interface::as_raw(this), enable).ok() } } } @@ -2822,19 +2198,17 @@ impl ::windows_core::RuntimeType for TileUpdater { } unsafe impl ::windows_core::Interface for TileUpdater { type Vtable = ITileUpdater_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TileUpdater { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for TileUpdater { const NAME: &'static str = "Windows.UI.Notifications.TileUpdater"; } -::windows_core::imp::interface_hierarchy!(TileUpdater, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for TileUpdater {} unsafe impl ::core::marker::Sync for TileUpdater {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ToastActivatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ToastActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ToastActivatedEventArgs { pub fn Arguments(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -2846,7 +2220,7 @@ impl ToastActivatedEventArgs { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn UserInput(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).UserInput)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2858,17 +2232,15 @@ impl ::windows_core::RuntimeType for ToastActivatedEventArgs { } unsafe impl ::windows_core::Interface for ToastActivatedEventArgs { type Vtable = IToastActivatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ToastActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ToastActivatedEventArgs { const NAME: &'static str = "Windows.UI.Notifications.ToastActivatedEventArgs"; } -::windows_core::imp::interface_hierarchy!(ToastActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ToastCollection(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ToastCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ToastCollection { pub fn Id(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -2933,19 +2305,17 @@ impl ::windows_core::RuntimeType for ToastCollection { } unsafe impl ::windows_core::Interface for ToastCollection { type Vtable = IToastCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ToastCollection { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ToastCollection { const NAME: &'static str = "Windows.UI.Notifications.ToastCollection"; } -::windows_core::imp::interface_hierarchy!(ToastCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ToastCollection {} unsafe impl ::core::marker::Sync for ToastCollection {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ToastCollectionManager(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ToastCollectionManager, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ToastCollectionManager { pub fn SaveToastCollectionAsync(&self, collection: P0) -> ::windows_core::Result where @@ -3009,19 +2379,17 @@ impl ::windows_core::RuntimeType for ToastCollectionManager { } unsafe impl ::windows_core::Interface for ToastCollectionManager { type Vtable = IToastCollectionManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ToastCollectionManager { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ToastCollectionManager { const NAME: &'static str = "Windows.UI.Notifications.ToastCollectionManager"; } -::windows_core::imp::interface_hierarchy!(ToastCollectionManager, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ToastCollectionManager {} unsafe impl ::core::marker::Sync for ToastCollectionManager {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ToastDismissedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ToastDismissedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ToastDismissedEventArgs { pub fn Reason(&self) -> ::windows_core::Result { let this = self; @@ -3036,19 +2404,17 @@ impl ::windows_core::RuntimeType for ToastDismissedEventArgs { } unsafe impl ::windows_core::Interface for ToastDismissedEventArgs { type Vtable = IToastDismissedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ToastDismissedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ToastDismissedEventArgs { const NAME: &'static str = "Windows.UI.Notifications.ToastDismissedEventArgs"; } -::windows_core::imp::interface_hierarchy!(ToastDismissedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ToastDismissedEventArgs {} unsafe impl ::core::marker::Sync for ToastDismissedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ToastFailedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ToastFailedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ToastFailedEventArgs { pub fn ErrorCode(&self) -> ::windows_core::Result<::windows_core::HRESULT> { let this = self; @@ -3063,19 +2429,17 @@ impl ::windows_core::RuntimeType for ToastFailedEventArgs { } unsafe impl ::windows_core::Interface for ToastFailedEventArgs { type Vtable = IToastFailedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ToastFailedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ToastFailedEventArgs { const NAME: &'static str = "Windows.UI.Notifications.ToastFailedEventArgs"; } -::windows_core::imp::interface_hierarchy!(ToastFailedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ToastFailedEventArgs {} unsafe impl ::core::marker::Sync for ToastFailedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ToastNotification(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ToastNotification, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ToastNotification { #[doc = "Required features: `\"Data_Xml_Dom\"`"] #[cfg(feature = "Data_Xml_Dom")] @@ -3088,10 +2452,10 @@ impl ToastNotification { } pub fn SetExpirationTime(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetExpirationTime)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetExpirationTime)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn ExpirationTime(&self) -> ::windows_core::Result> { let this = self; @@ -3143,62 +2507,62 @@ impl ToastNotification { unsafe { (::windows_core::Interface::vtable(this).RemoveFailed)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn SetTag(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetTag)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn Tag(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Tag)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetGroup(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetGroup)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn Group(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Group)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetSuppressPopup(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetSuppressPopup)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn SuppressPopup(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SuppressPopup)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn NotificationMirroring(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NotificationMirroring)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetNotificationMirroring(&self, value: NotificationMirroring) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetNotificationMirroring)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn RemoteId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RemoteId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetRemoteId(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRemoteId)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn Data(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Data)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3208,29 +2572,29 @@ impl ToastNotification { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Priority(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Priority)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetPriority(&self, value: ToastNotificationPriority) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetPriority)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn ExpiresOnReboot(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ExpiresOnReboot)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetExpiresOnReboot(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetExpiresOnReboot)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Data_Xml_Dom\"`"] @@ -3255,19 +2619,17 @@ impl ::windows_core::RuntimeType for ToastNotification { } unsafe impl ::windows_core::Interface for ToastNotification { type Vtable = IToastNotification_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ToastNotification { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ToastNotification { const NAME: &'static str = "Windows.UI.Notifications.ToastNotification"; } -::windows_core::imp::interface_hierarchy!(ToastNotification, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ToastNotification {} unsafe impl ::core::marker::Sync for ToastNotification {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ToastNotificationActionTriggerDetail(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ToastNotificationActionTriggerDetail, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ToastNotificationActionTriggerDetail { pub fn Argument(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -3291,17 +2653,15 @@ impl ::windows_core::RuntimeType for ToastNotificationActionTriggerDetail { } unsafe impl ::windows_core::Interface for ToastNotificationActionTriggerDetail { type Vtable = IToastNotificationActionTriggerDetail_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ToastNotificationActionTriggerDetail { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ToastNotificationActionTriggerDetail { const NAME: &'static str = "Windows.UI.Notifications.ToastNotificationActionTriggerDetail"; } -::windows_core::imp::interface_hierarchy!(ToastNotificationActionTriggerDetail, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ToastNotificationHistory(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ToastNotificationHistory, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ToastNotificationHistory { pub fn RemoveGroup(&self, group: &::windows_core::HSTRING) -> ::windows_core::Result<()> { let this = self; @@ -3334,7 +2694,7 @@ impl ToastNotificationHistory { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetHistory(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetHistory)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3343,7 +2703,7 @@ impl ToastNotificationHistory { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetHistoryWithId(&self, applicationid: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetHistoryWithId)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(applicationid), &mut result__).from_abi(result__) @@ -3355,17 +2715,15 @@ impl ::windows_core::RuntimeType for ToastNotificationHistory { } unsafe impl ::windows_core::Interface for ToastNotificationHistory { type Vtable = IToastNotificationHistory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ToastNotificationHistory { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ToastNotificationHistory { const NAME: &'static str = "Windows.UI.Notifications.ToastNotificationHistory"; } -::windows_core::imp::interface_hierarchy!(ToastNotificationHistory, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ToastNotificationHistoryChangedTriggerDetail(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ToastNotificationHistoryChangedTriggerDetail, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ToastNotificationHistoryChangedTriggerDetail { pub fn ChangeType(&self) -> ::windows_core::Result { let this = self; @@ -3375,7 +2733,7 @@ impl ToastNotificationHistoryChangedTriggerDetail { } } pub fn CollectionId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CollectionId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3387,14 +2745,11 @@ impl ::windows_core::RuntimeType for ToastNotificationHistoryChangedTriggerDetai } unsafe impl ::windows_core::Interface for ToastNotificationHistoryChangedTriggerDetail { type Vtable = IToastNotificationHistoryChangedTriggerDetail_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ToastNotificationHistoryChangedTriggerDetail { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ToastNotificationHistoryChangedTriggerDetail { const NAME: &'static str = "Windows.UI.Notifications.ToastNotificationHistoryChangedTriggerDetail"; } -::windows_core::imp::interface_hierarchy!(ToastNotificationHistoryChangedTriggerDetail, ::windows_core::IUnknown, ::windows_core::IInspectable); pub struct ToastNotificationManager; impl ToastNotificationManager { pub fn CreateToastNotifier() -> ::windows_core::Result { @@ -3470,6 +2825,7 @@ impl ::windows_core::RuntimeName for ToastNotificationManager { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ToastNotificationManagerForUser(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ToastNotificationManagerForUser, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ToastNotificationManagerForUser { pub fn CreateToastNotifier(&self) -> ::windows_core::Result { let this = self; @@ -3502,35 +2858,35 @@ impl ToastNotificationManagerForUser { } } pub fn GetToastNotifierForToastCollectionIdAsync(&self, collectionid: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetToastNotifierForToastCollectionIdAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(collectionid), &mut result__).from_abi(result__) } } pub fn GetHistoryForToastCollectionIdAsync(&self, collectionid: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetHistoryForToastCollectionIdAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(collectionid), &mut result__).from_abi(result__) } } pub fn GetToastCollectionManager(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetToastCollectionManager)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetToastCollectionManagerWithAppId(&self, appid: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetToastCollectionManagerWithAppId)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(appid), &mut result__).from_abi(result__) } } pub fn NotificationMode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NotificationMode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3540,14 +2896,14 @@ impl ToastNotificationManagerForUser { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveNotificationModeChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveNotificationModeChanged)(::windows_core::Interface::as_raw(this), token).ok() } } } @@ -3556,19 +2912,17 @@ impl ::windows_core::RuntimeType for ToastNotificationManagerForUser { } unsafe impl ::windows_core::Interface for ToastNotificationManagerForUser { type Vtable = IToastNotificationManagerForUser_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ToastNotificationManagerForUser { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ToastNotificationManagerForUser { const NAME: &'static str = "Windows.UI.Notifications.ToastNotificationManagerForUser"; } -::windows_core::imp::interface_hierarchy!(ToastNotificationManagerForUser, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ToastNotificationManagerForUser {} unsafe impl ::core::marker::Sync for ToastNotificationManagerForUser {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ToastNotifier(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ToastNotifier, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ToastNotifier { pub fn Show(&self, notification: P0) -> ::windows_core::Result<()> where @@ -3618,7 +2972,7 @@ impl ToastNotifier { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -3628,7 +2982,7 @@ impl ToastNotifier { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -3638,14 +2992,14 @@ impl ToastNotifier { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveScheduledToastNotificationShowing(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveScheduledToastNotificationShowing)(::windows_core::Interface::as_raw(this), token).ok() } } } @@ -3654,19 +3008,17 @@ impl ::windows_core::RuntimeType for ToastNotifier { } unsafe impl ::windows_core::Interface for ToastNotifier { type Vtable = IToastNotifier_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ToastNotifier { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ToastNotifier { const NAME: &'static str = "Windows.UI.Notifications.ToastNotifier"; } -::windows_core::imp::interface_hierarchy!(ToastNotifier, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ToastNotifier {} unsafe impl ::core::marker::Sync for ToastNotifier {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UserNotification(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UserNotification, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UserNotification { pub fn Notification(&self) -> ::windows_core::Result { let this = self; @@ -3704,19 +3056,17 @@ impl ::windows_core::RuntimeType for UserNotification { } unsafe impl ::windows_core::Interface for UserNotification { type Vtable = IUserNotification_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UserNotification { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UserNotification { const NAME: &'static str = "Windows.UI.Notifications.UserNotification"; } -::windows_core::imp::interface_hierarchy!(UserNotification, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UserNotification {} unsafe impl ::core::marker::Sync for UserNotification {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UserNotificationChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UserNotificationChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UserNotificationChangedEventArgs { pub fn ChangeKind(&self) -> ::windows_core::Result { let this = self; @@ -3738,14 +3088,11 @@ impl ::windows_core::RuntimeType for UserNotificationChangedEventArgs { } unsafe impl ::windows_core::Interface for UserNotificationChangedEventArgs { type Vtable = IUserNotificationChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UserNotificationChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UserNotificationChangedEventArgs { const NAME: &'static str = "Windows.UI.Notifications.UserNotificationChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(UserNotificationChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UserNotificationChangedEventArgs {} unsafe impl ::core::marker::Sync for UserNotificationChangedEventArgs {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/UI/Popups/impl.rs b/crates/libs/windows/src/Windows/UI/Popups/impl.rs index 233c3a8bb1..f6c5fa4799 100644 --- a/crates/libs/windows/src/Windows/UI/Popups/impl.rs +++ b/crates/libs/windows/src/Windows/UI/Popups/impl.rs @@ -73,6 +73,6 @@ impl IUICommand_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/UI/Popups/mod.rs b/crates/libs/windows/src/Windows/UI/Popups/mod.rs index c6546d4930..358721e301 100644 --- a/crates/libs/windows/src/Windows/UI/Popups/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Popups/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMessageDialog(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMessageDialog { - type Vtable = IMessageDialog_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMessageDialog { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x33f59b01_5325_43ab_9ab3_bdae440e4121); -} +::windows_core::imp::com_interface!(IMessageDialog, IMessageDialog_Vtbl, 0x33f59b01_5325_43ab_9ab3_bdae440e4121); #[repr(C)] #[doc(hidden)] pub struct IMessageDialog_Vtbl { @@ -28,16 +19,7 @@ pub struct IMessageDialog_Vtbl { pub Options: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut MessageDialogOptions) -> ::windows_core::HRESULT, pub SetOptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: MessageDialogOptions) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMessageDialogFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMessageDialogFactory { - type Vtable = IMessageDialogFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMessageDialogFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2d161777_a66f_4ea5_bb87_793ffa4941f2); -} +::windows_core::imp::com_interface!(IMessageDialogFactory, IMessageDialogFactory_Vtbl, 0x2d161777_a66f_4ea5_bb87_793ffa4941f2); #[repr(C)] #[doc(hidden)] pub struct IMessageDialogFactory_Vtbl { @@ -45,16 +27,7 @@ pub struct IMessageDialogFactory_Vtbl { pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, content: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateWithTitle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, content: ::std::mem::MaybeUninit<::windows_core::HSTRING>, title: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPopupMenu(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPopupMenu { - type Vtable = IPopupMenu_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPopupMenu { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4e9bc6dc_880d_47fc_a0a1_72b639e62559); -} +::windows_core::imp::com_interface!(IPopupMenu, IPopupMenu_Vtbl, 0x4e9bc6dc_880d_47fc_a0a1_72b639e62559); #[repr(C)] #[doc(hidden)] pub struct IPopupMenu_Vtbl { @@ -67,9 +40,8 @@ pub struct IPopupMenu_Vtbl { pub ShowAsyncWithRect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, selection: super::super::Foundation::Rect, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ShowAsyncWithRectAndPlacement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, selection: super::super::Foundation::Rect, preferredplacement: Placement, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUICommand(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUICommand, IUICommand_Vtbl, 0x4ff93a75_4145_47ff_ac7f_dff1c1fa5b0f); +::windows_core::imp::interface_hierarchy!(IUICommand, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IUICommand { pub fn Label(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -111,16 +83,9 @@ impl IUICommand { unsafe { (::windows_core::Interface::vtable(this).SetId)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } } -::windows_core::imp::interface_hierarchy!(IUICommand, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IUICommand { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IUICommand { - type Vtable = IUICommand_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUICommand { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4ff93a75_4145_47ff_ac7f_dff1c1fa5b0f); -} #[repr(C)] #[doc(hidden)] pub struct IUICommand_Vtbl { @@ -132,16 +97,7 @@ pub struct IUICommand_Vtbl { pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUICommandFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUICommandFactory { - type Vtable = IUICommandFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUICommandFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa21a8189_26b0_4676_ae94_54041bc125e8); -} +::windows_core::imp::com_interface!(IUICommandFactory, IUICommandFactory_Vtbl, 0xa21a8189_26b0_4676_ae94_54041bc125e8); #[repr(C)] #[doc(hidden)] pub struct IUICommandFactory_Vtbl { @@ -153,6 +109,7 @@ pub struct IUICommandFactory_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct MessageDialog(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(MessageDialog, ::windows_core::IUnknown, ::windows_core::IInspectable); impl MessageDialog { pub fn Title(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -248,17 +205,15 @@ impl ::windows_core::RuntimeType for MessageDialog { } unsafe impl ::windows_core::Interface for MessageDialog { type Vtable = IMessageDialog_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MessageDialog { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for MessageDialog { const NAME: &'static str = "Windows.UI.Popups.MessageDialog"; } -::windows_core::imp::interface_hierarchy!(MessageDialog, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct PopupMenu(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(PopupMenu, ::windows_core::IUnknown, ::windows_core::IInspectable); impl PopupMenu { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -303,17 +258,16 @@ impl ::windows_core::RuntimeType for PopupMenu { } unsafe impl ::windows_core::Interface for PopupMenu { type Vtable = IPopupMenu_Vtbl; -} -unsafe impl ::windows_core::ComInterface for PopupMenu { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for PopupMenu { const NAME: &'static str = "Windows.UI.Popups.PopupMenu"; } -::windows_core::imp::interface_hierarchy!(PopupMenu, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UICommand(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UICommand, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(UICommand, IUICommand); impl UICommand { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -397,20 +351,18 @@ impl ::windows_core::RuntimeType for UICommand { } unsafe impl ::windows_core::Interface for UICommand { type Vtable = IUICommand_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UICommand { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UICommand { const NAME: &'static str = "Windows.UI.Popups.UICommand"; } -::windows_core::imp::interface_hierarchy!(UICommand, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for UICommand {} unsafe impl ::core::marker::Send for UICommand {} unsafe impl ::core::marker::Sync for UICommand {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UICommandSeparator(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UICommandSeparator, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(UICommandSeparator, IUICommand); impl UICommandSeparator { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -464,15 +416,11 @@ impl ::windows_core::RuntimeType for UICommandSeparator { } unsafe impl ::windows_core::Interface for UICommandSeparator { type Vtable = IUICommand_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UICommandSeparator { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UICommandSeparator { const NAME: &'static str = "Windows.UI.Popups.UICommandSeparator"; } -::windows_core::imp::interface_hierarchy!(UICommandSeparator, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for UICommandSeparator {} unsafe impl ::core::marker::Send for UICommandSeparator {} unsafe impl ::core::marker::Sync for UICommandSeparator {} #[repr(transparent)] @@ -547,9 +495,7 @@ impl ::core::fmt::Debug for Placement { impl ::windows_core::RuntimeType for Placement { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::from_slice(b"enum(Windows.UI.Popups.Placement;i4)"); } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct UICommandInvokedHandler(pub ::windows_core::IUnknown); +::windows_core::imp::com_interface!(UICommandInvokedHandler, UICommandInvokedHandler_Vtbl, 0xdaf77a4f_c27a_4298_9ac6_2922c45e7da6); impl UICommandInvokedHandler { pub fn new) -> ::windows_core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = UICommandInvokedHandlerBox:: { vtable: &UICommandInvokedHandlerBox::::VTABLE, count: ::windows_core::imp::RefCount::new(1), invoke }; @@ -557,10 +503,10 @@ impl UICommandInvokedHandler { } pub fn Invoke(&self, command: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).Invoke)(::windows_core::Interface::as_raw(this), command.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).Invoke)(::windows_core::Interface::as_raw(this), command.into_param().abi()).ok() } } } #[repr(C)] @@ -579,7 +525,7 @@ impl) -> ::windows_core::Result<()> if iid.is_null() || interface.is_null() { return ::windows_core::HRESULT(-2147467261); } - *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; + *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::Interface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::Interface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; if (*interface).is_null() { ::windows_core::HRESULT(-2147467262) } else { @@ -604,12 +550,6 @@ impl) -> ::windows_core::Result<()> ((*this).invoke)(::windows_core::from_raw_borrowed(&command)).into() } } -unsafe impl ::windows_core::Interface for UICommandInvokedHandler { - type Vtable = UICommandInvokedHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UICommandInvokedHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdaf77a4f_c27a_4298_9ac6_2922c45e7da6); -} impl ::windows_core::RuntimeType for UICommandInvokedHandler { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } diff --git a/crates/libs/windows/src/Windows/UI/Shell/impl.rs b/crates/libs/windows/src/Windows/UI/Shell/impl.rs index 0b2e17264e..da5df836f7 100644 --- a/crates/libs/windows/src/Windows/UI/Shell/impl.rs +++ b/crates/libs/windows/src/Windows/UI/Shell/impl.rs @@ -21,7 +21,7 @@ impl IAdaptiveCard_Vtbl { Self { base__: ::windows_core::IInspectable_Vtbl::new::(), ToJson: ToJson:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAdaptiveCardBuilderStatics_Impl: Sized { @@ -50,6 +50,6 @@ impl IAdaptiveCardBuilderStatics_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/UI/Shell/mod.rs b/crates/libs/windows/src/Windows/UI/Shell/mod.rs index 07a2f81e76..ed7a4c5e9b 100644 --- a/crates/libs/windows/src/Windows/UI/Shell/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Shell/mod.rs @@ -1,6 +1,5 @@ -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAdaptiveCard(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAdaptiveCard, IAdaptiveCard_Vtbl, 0x72d0568c_a274_41cd_82a8_989d40b9b05e); +::windows_core::imp::interface_hierarchy!(IAdaptiveCard, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IAdaptiveCard { pub fn ToJson(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -10,25 +9,17 @@ impl IAdaptiveCard { } } } -::windows_core::imp::interface_hierarchy!(IAdaptiveCard, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IAdaptiveCard { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IAdaptiveCard { - type Vtable = IAdaptiveCard_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAdaptiveCard { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x72d0568c_a274_41cd_82a8_989d40b9b05e); -} #[repr(C)] #[doc(hidden)] pub struct IAdaptiveCard_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ToJson: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAdaptiveCardBuilderStatics(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAdaptiveCardBuilderStatics, IAdaptiveCardBuilderStatics_Vtbl, 0x766d8f08_d3fe_4347_a0bc_b9ea9a6dc28e); +::windows_core::imp::interface_hierarchy!(IAdaptiveCardBuilderStatics, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IAdaptiveCardBuilderStatics { pub fn CreateAdaptiveCardFromJson(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result { let this = self; @@ -38,32 +29,16 @@ impl IAdaptiveCardBuilderStatics { } } } -::windows_core::imp::interface_hierarchy!(IAdaptiveCardBuilderStatics, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IAdaptiveCardBuilderStatics { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IAdaptiveCardBuilderStatics { - type Vtable = IAdaptiveCardBuilderStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAdaptiveCardBuilderStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x766d8f08_d3fe_4347_a0bc_b9ea9a6dc28e); -} #[repr(C)] #[doc(hidden)] pub struct IAdaptiveCardBuilderStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateAdaptiveCardFromJson: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFocusSession(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFocusSession { - type Vtable = IFocusSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFocusSession { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x069fbab8_0e84_5f2f_8614_9b6544326277); -} +::windows_core::imp::com_interface!(IFocusSession, IFocusSession_Vtbl, 0x069fbab8_0e84_5f2f_8614_9b6544326277); #[repr(C)] #[doc(hidden)] pub struct IFocusSession_Vtbl { @@ -71,16 +46,7 @@ pub struct IFocusSession_Vtbl { pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub End: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFocusSessionManager(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFocusSessionManager { - type Vtable = IFocusSessionManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFocusSessionManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe7ffbaa9_d8be_5dbf_bac6_49364842e37e); -} +::windows_core::imp::com_interface!(IFocusSessionManager, IFocusSessionManager_Vtbl, 0xe7ffbaa9_d8be_5dbf_bac6_49364842e37e); #[repr(C)] #[doc(hidden)] pub struct IFocusSessionManager_Vtbl { @@ -93,16 +59,7 @@ pub struct IFocusSessionManager_Vtbl { pub IsFocusActiveChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveIsFocusActiveChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFocusSessionManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFocusSessionManagerStatics { - type Vtable = IFocusSessionManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFocusSessionManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x834df764_cb9a_5d0a_aa9f_73df4f249395); -} +::windows_core::imp::com_interface!(IFocusSessionManagerStatics, IFocusSessionManagerStatics_Vtbl, 0x834df764_cb9a_5d0a_aa9f_73df4f249395); #[repr(C)] #[doc(hidden)] pub struct IFocusSessionManagerStatics_Vtbl { @@ -110,16 +67,7 @@ pub struct IFocusSessionManagerStatics_Vtbl { pub GetDefault: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub IsSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISecurityAppManager(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISecurityAppManager { - type Vtable = ISecurityAppManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISecurityAppManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x96ac500c_aed4_561d_bde8_953520343a2d); -} +::windows_core::imp::com_interface!(ISecurityAppManager, ISecurityAppManager_Vtbl, 0x96ac500c_aed4_561d_bde8_953520343a2d); #[repr(C)] #[doc(hidden)] pub struct ISecurityAppManager_Vtbl { @@ -128,16 +76,7 @@ pub struct ISecurityAppManager_Vtbl { pub Unregister: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, kind: SecurityAppKind, guidregistration: ::windows_core::GUID) -> ::windows_core::HRESULT, pub UpdateState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, kind: SecurityAppKind, guidregistration: ::windows_core::GUID, state: SecurityAppState, substatus: SecurityAppSubstatus, detailsuri: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShareWindowCommandEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IShareWindowCommandEventArgs { - type Vtable = IShareWindowCommandEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IShareWindowCommandEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4578dc09_a523_5756_a995_e4feb991fff0); -} +::windows_core::imp::com_interface!(IShareWindowCommandEventArgs, IShareWindowCommandEventArgs_Vtbl, 0x4578dc09_a523_5756_a995_e4feb991fff0); #[repr(C)] #[doc(hidden)] pub struct IShareWindowCommandEventArgs_Vtbl { @@ -146,16 +85,7 @@ pub struct IShareWindowCommandEventArgs_Vtbl { pub Command: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ShareWindowCommand) -> ::windows_core::HRESULT, pub SetCommand: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ShareWindowCommand) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShareWindowCommandSource(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IShareWindowCommandSource { - type Vtable = IShareWindowCommandSource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IShareWindowCommandSource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcb3b7ae3_6b9c_561e_bccc_61e68e0abfef); -} +::windows_core::imp::com_interface!(IShareWindowCommandSource, IShareWindowCommandSource_Vtbl, 0xcb3b7ae3_6b9c_561e_bccc_61e68e0abfef); #[repr(C)] #[doc(hidden)] pub struct IShareWindowCommandSource_Vtbl { @@ -168,32 +98,14 @@ pub struct IShareWindowCommandSource_Vtbl { pub CommandInvoked: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveCommandInvoked: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShareWindowCommandSourceStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IShareWindowCommandSourceStatics { - type Vtable = IShareWindowCommandSourceStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IShareWindowCommandSourceStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb0eb6656_9cac_517c_b6c7_8ef715084295); -} +::windows_core::imp::com_interface!(IShareWindowCommandSourceStatics, IShareWindowCommandSourceStatics_Vtbl, 0xb0eb6656_9cac_517c_b6c7_8ef715084295); #[repr(C)] #[doc(hidden)] pub struct IShareWindowCommandSourceStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetForCurrentView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITaskbarManager(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITaskbarManager { - type Vtable = ITaskbarManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITaskbarManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x87490a19_1ad9_49f4_b2e8_86738dc5ac40); -} +::windows_core::imp::com_interface!(ITaskbarManager, ITaskbarManager_Vtbl, 0x87490a19_1ad9_49f4_b2e8_86738dc5ac40); #[repr(C)] #[doc(hidden)] pub struct ITaskbarManager_Vtbl { @@ -211,16 +123,7 @@ pub struct ITaskbarManager_Vtbl { #[cfg(not(feature = "ApplicationModel_Core"))] RequestPinAppListEntryAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITaskbarManager2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITaskbarManager2 { - type Vtable = ITaskbarManager2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITaskbarManager2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x79f0a06e_7b02_4911_918c_dee0bbd20ba4); -} +::windows_core::imp::com_interface!(ITaskbarManager2, ITaskbarManager2_Vtbl, 0x79f0a06e_7b02_4911_918c_dee0bbd20ba4); #[repr(C)] #[doc(hidden)] pub struct ITaskbarManager2_Vtbl { @@ -232,47 +135,20 @@ pub struct ITaskbarManager2_Vtbl { RequestPinSecondaryTileAsync: usize, pub TryUnpinSecondaryTileAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, tileid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITaskbarManagerDesktopAppSupportStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITaskbarManagerDesktopAppSupportStatics { - type Vtable = ITaskbarManagerDesktopAppSupportStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITaskbarManagerDesktopAppSupportStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcdfefd63_e879_4134_b9a7_8283f05f9480); -} +::windows_core::imp::com_interface!(ITaskbarManagerDesktopAppSupportStatics, ITaskbarManagerDesktopAppSupportStatics_Vtbl, 0xcdfefd63_e879_4134_b9a7_8283f05f9480); #[repr(C)] #[doc(hidden)] pub struct ITaskbarManagerDesktopAppSupportStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITaskbarManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITaskbarManagerStatics { - type Vtable = ITaskbarManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITaskbarManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdb32ab74_de52_4fe6_b7b6_95ff9f8395df); -} +::windows_core::imp::com_interface!(ITaskbarManagerStatics, ITaskbarManagerStatics_Vtbl, 0xdb32ab74_de52_4fe6_b7b6_95ff9f8395df); #[repr(C)] #[doc(hidden)] pub struct ITaskbarManagerStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetDefault: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWindowTab(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWindowTab { - type Vtable = IWindowTab_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWindowTab { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x551e776a_7928_4d60_bdd9_672b5a5758eb); -} +::windows_core::imp::com_interface!(IWindowTab, IWindowTab_Vtbl, 0x551e776a_7928_4d60_bdd9_672b5a5758eb); #[repr(C)] #[doc(hidden)] pub struct IWindowTab_Vtbl { @@ -289,48 +165,21 @@ pub struct IWindowTab_Vtbl { pub SetGroup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ReportThumbnailAvailable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWindowTabCloseRequestedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWindowTabCloseRequestedEventArgs { - type Vtable = IWindowTabCloseRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWindowTabCloseRequestedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x477282e9_eec4_5882_9889_2dd64d0f9fb6); -} +::windows_core::imp::com_interface!(IWindowTabCloseRequestedEventArgs, IWindowTabCloseRequestedEventArgs_Vtbl, 0x477282e9_eec4_5882_9889_2dd64d0f9fb6); #[repr(C)] #[doc(hidden)] pub struct IWindowTabCloseRequestedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Tab: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWindowTabCollection(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWindowTabCollection { - type Vtable = IWindowTabCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWindowTabCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaccd0d6c_ed07_519a_8c33_17e02e7e9b0f); -} +::windows_core::imp::com_interface!(IWindowTabCollection, IWindowTabCollection_Vtbl, 0xaccd0d6c_ed07_519a_8c33_17e02e7e9b0f); #[repr(C)] #[doc(hidden)] pub struct IWindowTabCollection_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub MoveTab: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, tab: *mut ::core::ffi::c_void, index: u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWindowTabGroup(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWindowTabGroup { - type Vtable = IWindowTabGroup_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWindowTabGroup { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa9c2c4fe_6cfe_449c_8b57_5756771abe56); -} +::windows_core::imp::com_interface!(IWindowTabGroup, IWindowTabGroup_Vtbl, 0xa9c2c4fe_6cfe_449c_8b57_5756771abe56); #[repr(C)] #[doc(hidden)] pub struct IWindowTabGroup_Vtbl { @@ -340,31 +189,13 @@ pub struct IWindowTabGroup_Vtbl { pub Icon: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetIcon: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWindowTabIcon(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWindowTabIcon { - type Vtable = IWindowTabIcon_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWindowTabIcon { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf92f398f_3669_4d0c_a183_14ddae6f6538); -} +::windows_core::imp::com_interface!(IWindowTabIcon, IWindowTabIcon_Vtbl, 0xf92f398f_3669_4d0c_a183_14ddae6f6538); #[repr(C)] #[doc(hidden)] pub struct IWindowTabIcon_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWindowTabIconStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWindowTabIconStatics { - type Vtable = IWindowTabIconStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWindowTabIconStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2e18d95e_2cbb_4084_af0c_36ee1c2d54b1); -} +::windows_core::imp::com_interface!(IWindowTabIconStatics, IWindowTabIconStatics_Vtbl, 0x2e18d95e_2cbb_4084_af0c_36ee1c2d54b1); #[repr(C)] #[doc(hidden)] pub struct IWindowTabIconStatics_Vtbl { @@ -376,16 +207,7 @@ pub struct IWindowTabIconStatics_Vtbl { #[cfg(not(feature = "Storage_Streams"))] CreateFromImage: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWindowTabManager(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWindowTabManager { - type Vtable = IWindowTabManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWindowTabManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x97b3c697_f43a_43e7_b3a2_e889a9835599); -} +::windows_core::imp::com_interface!(IWindowTabManager, IWindowTabManager_Vtbl, 0x97b3c697_f43a_43e7_b3a2_e889a9835599); #[repr(C)] #[doc(hidden)] pub struct IWindowTabManager_Vtbl { @@ -401,16 +223,7 @@ pub struct IWindowTabManager_Vtbl { pub TabThumbnailRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveTabThumbnailRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWindowTabManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWindowTabManagerStatics { - type Vtable = IWindowTabManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWindowTabManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x76755668_45f0_4e0b_8172_4e6d9d0f87bd); -} +::windows_core::imp::com_interface!(IWindowTabManagerStatics, IWindowTabManagerStatics_Vtbl, 0x76755668_45f0_4e0b_8172_4e6d9d0f87bd); #[repr(C)] #[doc(hidden)] pub struct IWindowTabManagerStatics_Vtbl { @@ -419,32 +232,14 @@ pub struct IWindowTabManagerStatics_Vtbl { pub IsSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub IsTabTearOutSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWindowTabSwitchRequestedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWindowTabSwitchRequestedEventArgs { - type Vtable = IWindowTabSwitchRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWindowTabSwitchRequestedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7cbc421a_58a4_568b_a351_f8a947a5aad8); -} +::windows_core::imp::com_interface!(IWindowTabSwitchRequestedEventArgs, IWindowTabSwitchRequestedEventArgs_Vtbl, 0x7cbc421a_58a4_568b_a351_f8a947a5aad8); #[repr(C)] #[doc(hidden)] pub struct IWindowTabSwitchRequestedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Tab: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWindowTabTearOutRequestedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWindowTabTearOutRequestedEventArgs { - type Vtable = IWindowTabTearOutRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWindowTabTearOutRequestedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x17d66659_5005_5ece_99af_566306e73642); -} +::windows_core::imp::com_interface!(IWindowTabTearOutRequestedEventArgs, IWindowTabTearOutRequestedEventArgs_Vtbl, 0x17d66659_5005_5ece_99af_566306e73642); #[repr(C)] #[doc(hidden)] pub struct IWindowTabTearOutRequestedEventArgs_Vtbl { @@ -454,16 +249,7 @@ pub struct IWindowTabTearOutRequestedEventArgs_Vtbl { pub SetWindowId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: u64) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWindowTabThumbnailRequestedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWindowTabThumbnailRequestedEventArgs { - type Vtable = IWindowTabThumbnailRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWindowTabThumbnailRequestedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2d558e54_9c4e_5abc_ab72_3350fb4937a0); -} +::windows_core::imp::com_interface!(IWindowTabThumbnailRequestedEventArgs, IWindowTabThumbnailRequestedEventArgs_Vtbl, 0x2d558e54_9c4e_5abc_ab72_3350fb4937a0); #[repr(C)] #[doc(hidden)] pub struct IWindowTabThumbnailRequestedEventArgs_Vtbl { @@ -504,6 +290,7 @@ impl ::windows_core::RuntimeName for AdaptiveCardBuilder { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct FocusSession(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(FocusSession, ::windows_core::IUnknown, ::windows_core::IInspectable); impl FocusSession { pub fn Id(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -522,19 +309,17 @@ impl ::windows_core::RuntimeType for FocusSession { } unsafe impl ::windows_core::Interface for FocusSession { type Vtable = IFocusSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for FocusSession { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for FocusSession { const NAME: &'static str = "Windows.UI.Shell.FocusSession"; } -::windows_core::imp::interface_hierarchy!(FocusSession, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for FocusSession {} unsafe impl ::core::marker::Sync for FocusSession {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct FocusSessionManager(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(FocusSessionManager, ::windows_core::IUnknown, ::windows_core::IInspectable); impl FocusSessionManager { pub fn IsFocusActive(&self) -> ::windows_core::Result { let this = self; @@ -605,19 +390,17 @@ impl ::windows_core::RuntimeType for FocusSessionManager { } unsafe impl ::windows_core::Interface for FocusSessionManager { type Vtable = IFocusSessionManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for FocusSessionManager { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for FocusSessionManager { const NAME: &'static str = "Windows.UI.Shell.FocusSessionManager"; } -::windows_core::imp::interface_hierarchy!(FocusSessionManager, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for FocusSessionManager {} unsafe impl ::core::marker::Sync for FocusSessionManager {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SecurityAppManager(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SecurityAppManager, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SecurityAppManager { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -653,19 +436,17 @@ impl ::windows_core::RuntimeType for SecurityAppManager { } unsafe impl ::windows_core::Interface for SecurityAppManager { type Vtable = ISecurityAppManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SecurityAppManager { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SecurityAppManager { const NAME: &'static str = "Windows.UI.Shell.SecurityAppManager"; } -::windows_core::imp::interface_hierarchy!(SecurityAppManager, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SecurityAppManager {} unsafe impl ::core::marker::Sync for SecurityAppManager {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ShareWindowCommandEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ShareWindowCommandEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ShareWindowCommandEventArgs { pub fn WindowId(&self) -> ::windows_core::Result { let this = self; @@ -691,19 +472,17 @@ impl ::windows_core::RuntimeType for ShareWindowCommandEventArgs { } unsafe impl ::windows_core::Interface for ShareWindowCommandEventArgs { type Vtable = IShareWindowCommandEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ShareWindowCommandEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ShareWindowCommandEventArgs { const NAME: &'static str = "Windows.UI.Shell.ShareWindowCommandEventArgs"; } -::windows_core::imp::interface_hierarchy!(ShareWindowCommandEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ShareWindowCommandEventArgs {} unsafe impl ::core::marker::Sync for ShareWindowCommandEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ShareWindowCommandSource(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ShareWindowCommandSource, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ShareWindowCommandSource { pub fn Start(&self) -> ::windows_core::Result<()> { let this = self; @@ -762,19 +541,17 @@ impl ::windows_core::RuntimeType for ShareWindowCommandSource { } unsafe impl ::windows_core::Interface for ShareWindowCommandSource { type Vtable = IShareWindowCommandSource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ShareWindowCommandSource { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ShareWindowCommandSource { const NAME: &'static str = "Windows.UI.Shell.ShareWindowCommandSource"; } -::windows_core::imp::interface_hierarchy!(ShareWindowCommandSource, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ShareWindowCommandSource {} unsafe impl ::core::marker::Sync for ShareWindowCommandSource {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct TaskbarManager(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(TaskbarManager, ::windows_core::IUnknown, ::windows_core::IInspectable); impl TaskbarManager { pub fn IsSupported(&self) -> ::windows_core::Result { let this = self; @@ -829,7 +606,7 @@ impl TaskbarManager { } } pub fn IsSecondaryTilePinnedAsync(&self, tileid: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsSecondaryTilePinnedAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(tileid), &mut result__).from_abi(result__) @@ -841,14 +618,14 @@ impl TaskbarManager { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn TryUnpinSecondaryTileAsync(&self, tileid: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryUnpinSecondaryTileAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(tileid), &mut result__).from_abi(result__) @@ -871,19 +648,17 @@ impl ::windows_core::RuntimeType for TaskbarManager { } unsafe impl ::windows_core::Interface for TaskbarManager { type Vtable = ITaskbarManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TaskbarManager { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for TaskbarManager { const NAME: &'static str = "Windows.UI.Shell.TaskbarManager"; } -::windows_core::imp::interface_hierarchy!(TaskbarManager, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for TaskbarManager {} unsafe impl ::core::marker::Sync for TaskbarManager {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WindowTab(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WindowTab, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WindowTab { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -966,19 +741,17 @@ impl ::windows_core::RuntimeType for WindowTab { } unsafe impl ::windows_core::Interface for WindowTab { type Vtable = IWindowTab_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WindowTab { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WindowTab { const NAME: &'static str = "Windows.UI.Shell.WindowTab"; } -::windows_core::imp::interface_hierarchy!(WindowTab, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for WindowTab {} unsafe impl ::core::marker::Sync for WindowTab {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WindowTabCloseRequestedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WindowTabCloseRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WindowTabCloseRequestedEventArgs { pub fn Tab(&self) -> ::windows_core::Result { let this = self; @@ -993,24 +766,24 @@ impl ::windows_core::RuntimeType for WindowTabCloseRequestedEventArgs { } unsafe impl ::windows_core::Interface for WindowTabCloseRequestedEventArgs { type Vtable = IWindowTabCloseRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WindowTabCloseRequestedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WindowTabCloseRequestedEventArgs { const NAME: &'static str = "Windows.UI.Shell.WindowTabCloseRequestedEventArgs"; } -::windows_core::imp::interface_hierarchy!(WindowTabCloseRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for WindowTabCloseRequestedEventArgs {} unsafe impl ::core::marker::Sync for WindowTabCloseRequestedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WindowTabCollection(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WindowTabCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(WindowTabCollection, super::super::Foundation::Collections::IIterable::, super::super::Foundation::Collections::IVector::); impl WindowTabCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1019,7 +792,7 @@ impl WindowTabCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetAt(&self, index: u32) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetAt)(::windows_core::Interface::as_raw(this), index, &mut result__).from_abi(result__) @@ -1028,7 +801,7 @@ impl WindowTabCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Size(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Size)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1037,7 +810,7 @@ impl WindowTabCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetView(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetView)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1049,7 +822,7 @@ impl WindowTabCollection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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__).from_abi(result__) @@ -1061,7 +834,7 @@ impl WindowTabCollection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -1070,13 +843,13 @@ impl WindowTabCollection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn RemoveAt(&self, index: u32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveAt)(::windows_core::Interface::as_raw(this), index).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -1085,25 +858,25 @@ impl WindowTabCollection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn RemoveAtEnd(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveAtEnd)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Clear(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).Clear)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetMany(&self, startindex: u32, items: &mut [::core::option::Option]) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetMany)(::windows_core::Interface::as_raw(this), startindex, items.len().try_into().unwrap(), ::core::mem::transmute_copy(&items), &mut result__).from_abi(result__) @@ -1112,7 +885,7 @@ impl WindowTabCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn ReplaceAll(&self, items: &[::core::option::Option]) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).ReplaceAll)(::windows_core::Interface::as_raw(this), items.len().try_into().unwrap(), ::core::mem::transmute(items.as_ptr())).ok() } } pub fn MoveTab(&self, tab: P0, index: u32) -> ::windows_core::Result<()> @@ -1128,9 +901,7 @@ impl ::windows_core::RuntimeType for WindowTabCollection { } unsafe impl ::windows_core::Interface for WindowTabCollection { type Vtable = IWindowTabCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WindowTabCollection { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WindowTabCollection { const NAME: &'static str = "Windows.UI.Shell.WindowTabCollection"; @@ -1148,19 +919,15 @@ impl ::core::iter::IntoIterator for &WindowTabCollection { type Item = WindowTab; type IntoIter = super::super::Foundation::Collections::VectorIterator; fn into_iter(self) -> Self::IntoIter { - super::super::Foundation::Collections::VectorIterator::new(::windows_core::ComInterface::cast(self).ok()) + super::super::Foundation::Collections::VectorIterator::new(::windows_core::Interface::cast(self).ok()) } } -::windows_core::imp::interface_hierarchy!(WindowTabCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for WindowTabCollection {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for WindowTabCollection {} unsafe impl ::core::marker::Send for WindowTabCollection {} unsafe impl ::core::marker::Sync for WindowTabCollection {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WindowTabGroup(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WindowTabGroup, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WindowTabGroup { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1200,19 +967,17 @@ impl ::windows_core::RuntimeType for WindowTabGroup { } unsafe impl ::windows_core::Interface for WindowTabGroup { type Vtable = IWindowTabGroup_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WindowTabGroup { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WindowTabGroup { const NAME: &'static str = "Windows.UI.Shell.WindowTabGroup"; } -::windows_core::imp::interface_hierarchy!(WindowTabGroup, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for WindowTabGroup {} unsafe impl ::core::marker::Sync for WindowTabGroup {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WindowTabIcon(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WindowTabIcon, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WindowTabIcon { pub fn CreateFromFontGlyph(glyph: &::windows_core::HSTRING, fontfamily: &::windows_core::HSTRING) -> ::windows_core::Result { Self::IWindowTabIconStatics(|this| unsafe { @@ -1233,11 +998,11 @@ impl WindowTabIcon { #[cfg(feature = "Storage_Streams")] pub fn CreateFromImage(image: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IWindowTabIconStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateFromImage)(::windows_core::Interface::as_raw(this), image.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateFromImage)(::windows_core::Interface::as_raw(this), image.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc(hidden)] @@ -1251,19 +1016,17 @@ impl ::windows_core::RuntimeType for WindowTabIcon { } unsafe impl ::windows_core::Interface for WindowTabIcon { type Vtable = IWindowTabIcon_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WindowTabIcon { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WindowTabIcon { const NAME: &'static str = "Windows.UI.Shell.WindowTabIcon"; } -::windows_core::imp::interface_hierarchy!(WindowTabIcon, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for WindowTabIcon {} unsafe impl ::core::marker::Sync for WindowTabIcon {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WindowTabManager(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WindowTabManager, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WindowTabManager { pub fn Tabs(&self) -> ::windows_core::Result { let this = self; @@ -1364,19 +1127,17 @@ impl ::windows_core::RuntimeType for WindowTabManager { } unsafe impl ::windows_core::Interface for WindowTabManager { type Vtable = IWindowTabManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WindowTabManager { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WindowTabManager { const NAME: &'static str = "Windows.UI.Shell.WindowTabManager"; } -::windows_core::imp::interface_hierarchy!(WindowTabManager, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for WindowTabManager {} unsafe impl ::core::marker::Sync for WindowTabManager {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WindowTabSwitchRequestedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WindowTabSwitchRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WindowTabSwitchRequestedEventArgs { pub fn Tab(&self) -> ::windows_core::Result { let this = self; @@ -1391,19 +1152,17 @@ impl ::windows_core::RuntimeType for WindowTabSwitchRequestedEventArgs { } unsafe impl ::windows_core::Interface for WindowTabSwitchRequestedEventArgs { type Vtable = IWindowTabSwitchRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WindowTabSwitchRequestedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WindowTabSwitchRequestedEventArgs { const NAME: &'static str = "Windows.UI.Shell.WindowTabSwitchRequestedEventArgs"; } -::windows_core::imp::interface_hierarchy!(WindowTabSwitchRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for WindowTabSwitchRequestedEventArgs {} unsafe impl ::core::marker::Sync for WindowTabSwitchRequestedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WindowTabTearOutRequestedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WindowTabTearOutRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WindowTabTearOutRequestedEventArgs { pub fn Tab(&self) -> ::windows_core::Result { let this = self; @@ -1436,19 +1195,17 @@ impl ::windows_core::RuntimeType for WindowTabTearOutRequestedEventArgs { } unsafe impl ::windows_core::Interface for WindowTabTearOutRequestedEventArgs { type Vtable = IWindowTabTearOutRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WindowTabTearOutRequestedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WindowTabTearOutRequestedEventArgs { const NAME: &'static str = "Windows.UI.Shell.WindowTabTearOutRequestedEventArgs"; } -::windows_core::imp::interface_hierarchy!(WindowTabTearOutRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for WindowTabTearOutRequestedEventArgs {} unsafe impl ::core::marker::Sync for WindowTabTearOutRequestedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WindowTabThumbnailRequestedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WindowTabThumbnailRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WindowTabThumbnailRequestedEventArgs { pub fn Tab(&self) -> ::windows_core::Result { let this = self; @@ -1479,10 +1236,10 @@ impl WindowTabThumbnailRequestedEventArgs { #[cfg(feature = "Storage_Streams")] pub fn SetImage(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetImage)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetImage)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn GetDeferral(&self) -> ::windows_core::Result { let this = self; @@ -1504,14 +1261,11 @@ impl ::windows_core::RuntimeType for WindowTabThumbnailRequestedEventArgs { } unsafe impl ::windows_core::Interface for WindowTabThumbnailRequestedEventArgs { type Vtable = IWindowTabThumbnailRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WindowTabThumbnailRequestedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WindowTabThumbnailRequestedEventArgs { const NAME: &'static str = "Windows.UI.Shell.WindowTabThumbnailRequestedEventArgs"; } -::windows_core::imp::interface_hierarchy!(WindowTabThumbnailRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for WindowTabThumbnailRequestedEventArgs {} unsafe impl ::core::marker::Sync for WindowTabThumbnailRequestedEventArgs {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/UI/StartScreen/mod.rs b/crates/libs/windows/src/Windows/UI/StartScreen/mod.rs index a6dc659945..29624e55bd 100644 --- a/crates/libs/windows/src/Windows/UI/StartScreen/mod.rs +++ b/crates/libs/windows/src/Windows/UI/StartScreen/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IJumpList(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IJumpList { - type Vtable = IJumpList_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IJumpList { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb0234c3e_cd6f_4cb6_a611_61fd505f3ed1); -} +::windows_core::imp::com_interface!(IJumpList, IJumpList_Vtbl, 0xb0234c3e_cd6f_4cb6_a611_61fd505f3ed1); #[repr(C)] #[doc(hidden)] pub struct IJumpList_Vtbl { @@ -20,16 +11,7 @@ pub struct IJumpList_Vtbl { pub SetSystemGroupKind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: JumpListSystemGroupKind) -> ::windows_core::HRESULT, pub SaveAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IJumpListItem(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IJumpListItem { - type Vtable = IJumpListItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IJumpListItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7adb6717_8b5d_4820_995b_9b418dbe48b0); -} +::windows_core::imp::com_interface!(IJumpListItem, IJumpListItem_Vtbl, 0x7adb6717_8b5d_4820_995b_9b418dbe48b0); #[repr(C)] #[doc(hidden)] pub struct IJumpListItem_Vtbl { @@ -46,16 +28,7 @@ pub struct IJumpListItem_Vtbl { pub Logo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetLogo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IJumpListItemStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IJumpListItemStatics { - type Vtable = IJumpListItemStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IJumpListItemStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf1bfc4e8_c7aa_49cb_8dde_ecfccd7ad7e4); -} +::windows_core::imp::com_interface!(IJumpListItemStatics, IJumpListItemStatics_Vtbl, 0xf1bfc4e8_c7aa_49cb_8dde_ecfccd7ad7e4); #[repr(C)] #[doc(hidden)] pub struct IJumpListItemStatics_Vtbl { @@ -63,16 +36,7 @@ pub struct IJumpListItemStatics_Vtbl { pub CreateWithArguments: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, arguments: ::std::mem::MaybeUninit<::windows_core::HSTRING>, displayname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateSeparator: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IJumpListStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IJumpListStatics { - type Vtable = IJumpListStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IJumpListStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa7e0c681_e67e_4b74_8250_3f322c4d92c3); -} +::windows_core::imp::com_interface!(IJumpListStatics, IJumpListStatics_Vtbl, 0xa7e0c681_e67e_4b74_8250_3f322c4d92c3); #[repr(C)] #[doc(hidden)] pub struct IJumpListStatics_Vtbl { @@ -80,16 +44,7 @@ pub struct IJumpListStatics_Vtbl { pub LoadCurrentAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub IsSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISecondaryTile(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISecondaryTile { - type Vtable = ISecondaryTile_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISecondaryTile { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9e9e51e0_2bb5_4bc0_bb8d_42b23abcc88d); -} +::windows_core::imp::com_interface!(ISecondaryTile, ISecondaryTile_Vtbl, 0x9e9e51e0_2bb5_4bc0_bb8d_42b23abcc88d); #[repr(C)] #[doc(hidden)] pub struct ISecondaryTile_Vtbl { @@ -176,16 +131,7 @@ pub struct ISecondaryTile_Vtbl { RequestDeleteAsyncWithRectAndPlacement: usize, pub UpdateAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISecondaryTile2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISecondaryTile2 { - type Vtable = ISecondaryTile2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISecondaryTile2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb2f6cc35_3250_4990_923c_294ab4b694dd); -} +::windows_core::imp::com_interface!(ISecondaryTile2, ISecondaryTile2_Vtbl, 0xb2f6cc35_3250_4990_923c_294ab4b694dd); #[repr(C)] #[doc(hidden)] pub struct ISecondaryTile2_Vtbl { @@ -198,16 +144,7 @@ pub struct ISecondaryTile2_Vtbl { pub VisualElementsRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveVisualElementsRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISecondaryTileFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISecondaryTileFactory { - type Vtable = ISecondaryTileFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISecondaryTileFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x57f52ca0_51bc_4abf_8ebf_627a0398b05a); -} +::windows_core::imp::com_interface!(ISecondaryTileFactory, ISecondaryTileFactory_Vtbl, 0x57f52ca0_51bc_4abf_8ebf_627a0398b05a); #[repr(C)] #[doc(hidden)] pub struct ISecondaryTileFactory_Vtbl { @@ -222,32 +159,14 @@ pub struct ISecondaryTileFactory_Vtbl { CreateWideTile: usize, pub CreateWithId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, tileid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISecondaryTileFactory2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISecondaryTileFactory2 { - type Vtable = ISecondaryTileFactory2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISecondaryTileFactory2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x274b8a3b_522d_448e_9eb2_d0672ab345c8); -} +::windows_core::imp::com_interface!(ISecondaryTileFactory2, ISecondaryTileFactory2_Vtbl, 0x274b8a3b_522d_448e_9eb2_d0672ab345c8); #[repr(C)] #[doc(hidden)] pub struct ISecondaryTileFactory2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateMinimalTile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, tileid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, displayname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, arguments: ::std::mem::MaybeUninit<::windows_core::HSTRING>, square150x150logo: *mut ::core::ffi::c_void, desiredsize: TileSize, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISecondaryTileStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISecondaryTileStatics { - type Vtable = ISecondaryTileStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISecondaryTileStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x99908dae_d051_4676_87fe_9ec242d83c74); -} +::windows_core::imp::com_interface!(ISecondaryTileStatics, ISecondaryTileStatics_Vtbl, 0x99908dae_d051_4676_87fe_9ec242d83c74); #[repr(C)] #[doc(hidden)] pub struct ISecondaryTileStatics_Vtbl { @@ -266,16 +185,7 @@ pub struct ISecondaryTileStatics_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] FindAllForPackageAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISecondaryTileVisualElements(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISecondaryTileVisualElements { - type Vtable = ISecondaryTileVisualElements_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISecondaryTileVisualElements { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1d8df333_815e_413f_9f50_a81da70a96b2); -} +::windows_core::imp::com_interface!(ISecondaryTileVisualElements, ISecondaryTileVisualElements_Vtbl, 0x1d8df333_815e_413f_9f50_a81da70a96b2); #[repr(C)] #[doc(hidden)] pub struct ISecondaryTileVisualElements_Vtbl { @@ -313,16 +223,7 @@ pub struct ISecondaryTileVisualElements_Vtbl { pub SetShowNameOnSquare310x310Logo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, pub ShowNameOnSquare310x310Logo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISecondaryTileVisualElements2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISecondaryTileVisualElements2 { - type Vtable = ISecondaryTileVisualElements2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISecondaryTileVisualElements2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfd2e31d0_57dc_4794_8ecf_5682f5f3e6ef); -} +::windows_core::imp::com_interface!(ISecondaryTileVisualElements2, ISecondaryTileVisualElements2_Vtbl, 0xfd2e31d0_57dc_4794_8ecf_5682f5f3e6ef); #[repr(C)] #[doc(hidden)] pub struct ISecondaryTileVisualElements2_Vtbl { @@ -330,16 +231,7 @@ pub struct ISecondaryTileVisualElements2_Vtbl { pub SetSquare71x71Logo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Square71x71Logo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISecondaryTileVisualElements3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISecondaryTileVisualElements3 { - type Vtable = ISecondaryTileVisualElements3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISecondaryTileVisualElements3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x56b55ad6_d15c_40f4_81e7_57ffd8f8a4e9); -} +::windows_core::imp::com_interface!(ISecondaryTileVisualElements3, ISecondaryTileVisualElements3_Vtbl, 0x56b55ad6_d15c_40f4_81e7_57ffd8f8a4e9); #[repr(C)] #[doc(hidden)] pub struct ISecondaryTileVisualElements3_Vtbl { @@ -347,32 +239,14 @@ pub struct ISecondaryTileVisualElements3_Vtbl { pub SetSquare44x44Logo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Square44x44Logo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISecondaryTileVisualElements4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISecondaryTileVisualElements4 { - type Vtable = ISecondaryTileVisualElements4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISecondaryTileVisualElements4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x66566117_b544_40d2_8d12_74d4ec24d04c); -} +::windows_core::imp::com_interface!(ISecondaryTileVisualElements4, ISecondaryTileVisualElements4_Vtbl, 0x66566117_b544_40d2_8d12_74d4ec24d04c); #[repr(C)] #[doc(hidden)] pub struct ISecondaryTileVisualElements4_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub MixedRealityModel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStartScreenManager(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStartScreenManager { - type Vtable = IStartScreenManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStartScreenManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4a1dcbcb_26e9_4eb4_8933_859eb6ecdb29); -} +::windows_core::imp::com_interface!(IStartScreenManager, IStartScreenManager_Vtbl, 0x4a1dcbcb_26e9_4eb4_8933_859eb6ecdb29); #[repr(C)] #[doc(hidden)] pub struct IStartScreenManager_Vtbl { @@ -394,16 +268,7 @@ pub struct IStartScreenManager_Vtbl { #[cfg(not(feature = "ApplicationModel_Core"))] RequestAddAppListEntryAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStartScreenManager2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStartScreenManager2 { - type Vtable = IStartScreenManager2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStartScreenManager2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x08a716b6_316b_4ad9_acb8_fe9cf00bd608); -} +::windows_core::imp::com_interface!(IStartScreenManager2, IStartScreenManager2_Vtbl, 0x08a716b6_316b_4ad9_acb8_fe9cf00bd608); #[repr(C)] #[doc(hidden)] pub struct IStartScreenManager2_Vtbl { @@ -411,16 +276,7 @@ pub struct IStartScreenManager2_Vtbl { pub ContainsSecondaryTileAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, tileid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub TryRemoveSecondaryTileAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, tileid: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStartScreenManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStartScreenManagerStatics { - type Vtable = IStartScreenManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStartScreenManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7865ef0f_b585_464e_8993_34e8f8738d48); -} +::windows_core::imp::com_interface!(IStartScreenManagerStatics, IStartScreenManagerStatics_Vtbl, 0x7865ef0f_b585_464e_8993_34e8f8738d48); #[repr(C)] #[doc(hidden)] pub struct IStartScreenManagerStatics_Vtbl { @@ -431,16 +287,7 @@ pub struct IStartScreenManagerStatics_Vtbl { #[cfg(not(feature = "System"))] GetForUser: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITileMixedRealityModel(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITileMixedRealityModel { - type Vtable = ITileMixedRealityModel_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITileMixedRealityModel { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb0764e5b_887d_4242_9a19_3d0a4ea78031); -} +::windows_core::imp::com_interface!(ITileMixedRealityModel, ITileMixedRealityModel_Vtbl, 0xb0764e5b_887d_4242_9a19_3d0a4ea78031); #[repr(C)] #[doc(hidden)] pub struct ITileMixedRealityModel_Vtbl { @@ -456,16 +303,7 @@ pub struct ITileMixedRealityModel_Vtbl { #[cfg(not(all(feature = "Foundation_Numerics", feature = "Perception_Spatial")))] BoundingBox: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITileMixedRealityModel2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITileMixedRealityModel2 { - type Vtable = ITileMixedRealityModel2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITileMixedRealityModel2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x439470b2_d7c5_410b_8319_9486a27b6c67); -} +::windows_core::imp::com_interface!(ITileMixedRealityModel2, ITileMixedRealityModel2_Vtbl, 0x439470b2_d7c5_410b_8319_9486a27b6c67); #[repr(C)] #[doc(hidden)] pub struct ITileMixedRealityModel2_Vtbl { @@ -473,16 +311,7 @@ pub struct ITileMixedRealityModel2_Vtbl { pub SetActivationBehavior: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: TileMixedRealityModelActivationBehavior) -> ::windows_core::HRESULT, pub ActivationBehavior: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut TileMixedRealityModelActivationBehavior) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVisualElementsRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVisualElementsRequest { - type Vtable = IVisualElementsRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVisualElementsRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc138333a_9308_4072_88cc_d068db347c68); -} +::windows_core::imp::com_interface!(IVisualElementsRequest, IVisualElementsRequest_Vtbl, 0xc138333a_9308_4072_88cc_d068db347c68); #[repr(C)] #[doc(hidden)] pub struct IVisualElementsRequest_Vtbl { @@ -495,32 +324,14 @@ pub struct IVisualElementsRequest_Vtbl { pub Deadline: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::DateTime) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVisualElementsRequestDeferral(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVisualElementsRequestDeferral { - type Vtable = IVisualElementsRequestDeferral_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVisualElementsRequestDeferral { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa1656eb0_0126_4357_8204_bd82bb2a046d); -} +::windows_core::imp::com_interface!(IVisualElementsRequestDeferral, IVisualElementsRequestDeferral_Vtbl, 0xa1656eb0_0126_4357_8204_bd82bb2a046d); #[repr(C)] #[doc(hidden)] pub struct IVisualElementsRequestDeferral_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Complete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVisualElementsRequestedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVisualElementsRequestedEventArgs { - type Vtable = IVisualElementsRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVisualElementsRequestedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7b6fc982_3a0d_4ece_af96_cd17e1b00b2d); -} +::windows_core::imp::com_interface!(IVisualElementsRequestedEventArgs, IVisualElementsRequestedEventArgs_Vtbl, 0x7b6fc982_3a0d_4ece_af96_cd17e1b00b2d); #[repr(C)] #[doc(hidden)] pub struct IVisualElementsRequestedEventArgs_Vtbl { @@ -530,6 +341,7 @@ pub struct IVisualElementsRequestedEventArgs_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct JumpList(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(JumpList, ::windows_core::IUnknown, ::windows_core::IInspectable); impl JumpList { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -581,19 +393,17 @@ impl ::windows_core::RuntimeType for JumpList { } unsafe impl ::windows_core::Interface for JumpList { type Vtable = IJumpList_Vtbl; -} -unsafe impl ::windows_core::ComInterface for JumpList { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for JumpList { const NAME: &'static str = "Windows.UI.StartScreen.JumpList"; } -::windows_core::imp::interface_hierarchy!(JumpList, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for JumpList {} unsafe impl ::core::marker::Sync for JumpList {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct JumpListItem(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(JumpListItem, ::windows_core::IUnknown, ::windows_core::IInspectable); impl JumpListItem { pub fn Kind(&self) -> ::windows_core::Result { let this = self; @@ -686,19 +496,17 @@ impl ::windows_core::RuntimeType for JumpListItem { } unsafe impl ::windows_core::Interface for JumpListItem { type Vtable = IJumpListItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for JumpListItem { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for JumpListItem { const NAME: &'static str = "Windows.UI.StartScreen.JumpListItem"; } -::windows_core::imp::interface_hierarchy!(JumpListItem, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for JumpListItem {} unsafe impl ::core::marker::Sync for JumpListItem {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SecondaryTile(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SecondaryTile, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SecondaryTile { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -947,29 +755,29 @@ impl SecondaryTile { } } pub fn SetPhoneticName(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetPhoneticName)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn PhoneticName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PhoneticName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn VisualElements(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).VisualElements)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetRoamingEnabled(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRoamingEnabled)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn RoamingEnabled(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).RoamingEnabled)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -979,14 +787,14 @@ impl SecondaryTile { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveVisualElementsRequested(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveVisualElementsRequested)(::windows_core::Interface::as_raw(this), token).ok() } } #[doc = "Required features: `\"deprecated\"`"] @@ -1078,19 +886,17 @@ impl ::windows_core::RuntimeType for SecondaryTile { } unsafe impl ::windows_core::Interface for SecondaryTile { type Vtable = ISecondaryTile_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SecondaryTile { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SecondaryTile { const NAME: &'static str = "Windows.UI.StartScreen.SecondaryTile"; } -::windows_core::imp::interface_hierarchy!(SecondaryTile, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SecondaryTile {} unsafe impl ::core::marker::Sync for SecondaryTile {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SecondaryTileVisualElements(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SecondaryTileVisualElements, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SecondaryTileVisualElements { #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] @@ -1229,11 +1035,11 @@ impl SecondaryTileVisualElements { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Square71x71Logo(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Square71x71Logo)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1243,18 +1049,18 @@ impl SecondaryTileVisualElements { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Square44x44Logo(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Square44x44Logo)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn MixedRealityModel(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MixedRealityModel)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1266,19 +1072,17 @@ impl ::windows_core::RuntimeType for SecondaryTileVisualElements { } unsafe impl ::windows_core::Interface for SecondaryTileVisualElements { type Vtable = ISecondaryTileVisualElements_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SecondaryTileVisualElements { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SecondaryTileVisualElements { const NAME: &'static str = "Windows.UI.StartScreen.SecondaryTileVisualElements"; } -::windows_core::imp::interface_hierarchy!(SecondaryTileVisualElements, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SecondaryTileVisualElements {} unsafe impl ::core::marker::Sync for SecondaryTileVisualElements {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StartScreenManager(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StartScreenManager, ::windows_core::IUnknown, ::windows_core::IInspectable); impl StartScreenManager { #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] @@ -1326,14 +1130,14 @@ impl StartScreenManager { } } pub fn ContainsSecondaryTileAsync(&self, tileid: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ContainsSecondaryTileAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(tileid), &mut result__).from_abi(result__) } } pub fn TryRemoveSecondaryTileAsync(&self, tileid: &::windows_core::HSTRING) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryRemoveSecondaryTileAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(tileid), &mut result__).from_abi(result__) @@ -1367,19 +1171,17 @@ impl ::windows_core::RuntimeType for StartScreenManager { } unsafe impl ::windows_core::Interface for StartScreenManager { type Vtable = IStartScreenManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StartScreenManager { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StartScreenManager { const NAME: &'static str = "Windows.UI.StartScreen.StartScreenManager"; } -::windows_core::imp::interface_hierarchy!(StartScreenManager, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for StartScreenManager {} unsafe impl ::core::marker::Sync for StartScreenManager {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct TileMixedRealityModel(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(TileMixedRealityModel, ::windows_core::IUnknown, ::windows_core::IInspectable); impl TileMixedRealityModel { pub fn SetUri(&self, value: P0) -> ::windows_core::Result<()> where @@ -1399,10 +1201,10 @@ impl TileMixedRealityModel { #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial"))] pub fn SetBoundingBox(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetBoundingBox)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetBoundingBox)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } #[doc = "Required features: `\"Foundation_Numerics\"`, `\"Perception_Spatial\"`"] #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial"))] @@ -1414,11 +1216,11 @@ impl TileMixedRealityModel { } } pub fn SetActivationBehavior(&self, value: TileMixedRealityModelActivationBehavior) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetActivationBehavior)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn ActivationBehavior(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ActivationBehavior)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1430,19 +1232,17 @@ impl ::windows_core::RuntimeType for TileMixedRealityModel { } unsafe impl ::windows_core::Interface for TileMixedRealityModel { type Vtable = ITileMixedRealityModel_Vtbl; -} -unsafe impl ::windows_core::ComInterface for TileMixedRealityModel { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for TileMixedRealityModel { const NAME: &'static str = "Windows.UI.StartScreen.TileMixedRealityModel"; } -::windows_core::imp::interface_hierarchy!(TileMixedRealityModel, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for TileMixedRealityModel {} unsafe impl ::core::marker::Sync for TileMixedRealityModel {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VisualElementsRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VisualElementsRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl VisualElementsRequest { pub fn VisualElements(&self) -> ::windows_core::Result { let this = self; @@ -1480,19 +1280,17 @@ impl ::windows_core::RuntimeType for VisualElementsRequest { } unsafe impl ::windows_core::Interface for VisualElementsRequest { type Vtable = IVisualElementsRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VisualElementsRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VisualElementsRequest { const NAME: &'static str = "Windows.UI.StartScreen.VisualElementsRequest"; } -::windows_core::imp::interface_hierarchy!(VisualElementsRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for VisualElementsRequest {} unsafe impl ::core::marker::Sync for VisualElementsRequest {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VisualElementsRequestDeferral(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VisualElementsRequestDeferral, ::windows_core::IUnknown, ::windows_core::IInspectable); impl VisualElementsRequestDeferral { pub fn Complete(&self) -> ::windows_core::Result<()> { let this = self; @@ -1504,19 +1302,17 @@ impl ::windows_core::RuntimeType for VisualElementsRequestDeferral { } unsafe impl ::windows_core::Interface for VisualElementsRequestDeferral { type Vtable = IVisualElementsRequestDeferral_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VisualElementsRequestDeferral { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VisualElementsRequestDeferral { const NAME: &'static str = "Windows.UI.StartScreen.VisualElementsRequestDeferral"; } -::windows_core::imp::interface_hierarchy!(VisualElementsRequestDeferral, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for VisualElementsRequestDeferral {} unsafe impl ::core::marker::Sync for VisualElementsRequestDeferral {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct VisualElementsRequestedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(VisualElementsRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl VisualElementsRequestedEventArgs { pub fn Request(&self) -> ::windows_core::Result { let this = self; @@ -1531,14 +1327,11 @@ impl ::windows_core::RuntimeType for VisualElementsRequestedEventArgs { } unsafe impl ::windows_core::Interface for VisualElementsRequestedEventArgs { type Vtable = IVisualElementsRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for VisualElementsRequestedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for VisualElementsRequestedEventArgs { const NAME: &'static str = "Windows.UI.StartScreen.VisualElementsRequestedEventArgs"; } -::windows_core::imp::interface_hierarchy!(VisualElementsRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for VisualElementsRequestedEventArgs {} unsafe impl ::core::marker::Sync for VisualElementsRequestedEventArgs {} #[repr(transparent)] 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 c11f452d1a..74b5d7786d 100644 --- a/crates/libs/windows/src/Windows/UI/Text/Core/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Text/Core/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreTextCompositionCompletedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreTextCompositionCompletedEventArgs { - type Vtable = ICoreTextCompositionCompletedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreTextCompositionCompletedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1f34ebb6_b79f_4121_a5e7_fda9b8616e30); -} +::windows_core::imp::com_interface!(ICoreTextCompositionCompletedEventArgs, ICoreTextCompositionCompletedEventArgs_Vtbl, 0x1f34ebb6_b79f_4121_a5e7_fda9b8616e30); #[repr(C)] #[doc(hidden)] pub struct ICoreTextCompositionCompletedEventArgs_Vtbl { @@ -19,16 +10,7 @@ pub struct ICoreTextCompositionCompletedEventArgs_Vtbl { CompositionSegments: usize, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreTextCompositionSegment(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreTextCompositionSegment { - type Vtable = ICoreTextCompositionSegment_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreTextCompositionSegment { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x776c6bd9_4ead_4da7_8f47_3a88b523cc34); -} +::windows_core::imp::com_interface!(ICoreTextCompositionSegment, ICoreTextCompositionSegment_Vtbl, 0x776c6bd9_4ead_4da7_8f47_3a88b523cc34); #[repr(C)] #[doc(hidden)] pub struct ICoreTextCompositionSegment_Vtbl { @@ -36,16 +18,7 @@ pub struct ICoreTextCompositionSegment_Vtbl { pub PreconversionString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Range: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut CoreTextRange) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreTextCompositionStartedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreTextCompositionStartedEventArgs { - type Vtable = ICoreTextCompositionStartedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreTextCompositionStartedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x276b16a9_64e7_4ab0_bc4b_a02d73835bfb); -} +::windows_core::imp::com_interface!(ICoreTextCompositionStartedEventArgs, ICoreTextCompositionStartedEventArgs_Vtbl, 0x276b16a9_64e7_4ab0_bc4b_a02d73835bfb); #[repr(C)] #[doc(hidden)] pub struct ICoreTextCompositionStartedEventArgs_Vtbl { @@ -53,16 +26,7 @@ pub struct ICoreTextCompositionStartedEventArgs_Vtbl { pub IsCanceled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreTextEditContext(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreTextEditContext { - type Vtable = ICoreTextEditContext_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreTextEditContext { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbf6608af_4041_47c3_b263_a918eb5eaef2); -} +::windows_core::imp::com_interface!(ICoreTextEditContext, ICoreTextEditContext_Vtbl, 0xbf6608af_4041_47c3_b263_a918eb5eaef2); #[repr(C)] #[doc(hidden)] pub struct ICoreTextEditContext_Vtbl { @@ -99,16 +63,7 @@ pub struct ICoreTextEditContext_Vtbl { pub NotifySelectionChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, selection: CoreTextRange) -> ::windows_core::HRESULT, pub NotifyLayoutChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreTextEditContext2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreTextEditContext2 { - type Vtable = ICoreTextEditContext2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreTextEditContext2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb1867dbb_083b_49e1_b281_2b35d62bf466); -} +::windows_core::imp::com_interface!(ICoreTextEditContext2, ICoreTextEditContext2_Vtbl, 0xb1867dbb_083b_49e1_b281_2b35d62bf466); #[repr(C)] #[doc(hidden)] pub struct ICoreTextEditContext2_Vtbl { @@ -116,16 +71,7 @@ pub struct ICoreTextEditContext2_Vtbl { pub NotifyFocusLeaveCompleted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveNotifyFocusLeaveCompleted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cookie: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreTextFormatUpdatingEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreTextFormatUpdatingEventArgs { - type Vtable = ICoreTextFormatUpdatingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreTextFormatUpdatingEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7310bd33_b4a8_43b1_b37b_0724d4aca7ab); -} +::windows_core::imp::com_interface!(ICoreTextFormatUpdatingEventArgs, ICoreTextFormatUpdatingEventArgs_Vtbl, 0x7310bd33_b4a8_43b1_b37b_0724d4aca7ab); #[repr(C)] #[doc(hidden)] pub struct ICoreTextFormatUpdatingEventArgs_Vtbl { @@ -150,16 +96,7 @@ pub struct ICoreTextFormatUpdatingEventArgs_Vtbl { pub IsCanceled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreTextLayoutBounds(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreTextLayoutBounds { - type Vtable = ICoreTextLayoutBounds_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreTextLayoutBounds { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe972c974_4436_4917_80d0_a525e4ca6780); -} +::windows_core::imp::com_interface!(ICoreTextLayoutBounds, ICoreTextLayoutBounds_Vtbl, 0xe972c974_4436_4917_80d0_a525e4ca6780); #[repr(C)] #[doc(hidden)] pub struct ICoreTextLayoutBounds_Vtbl { @@ -169,16 +106,7 @@ pub struct ICoreTextLayoutBounds_Vtbl { pub ControlBounds: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::Rect) -> ::windows_core::HRESULT, pub SetControlBounds: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::super::Foundation::Rect) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreTextLayoutRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreTextLayoutRequest { - type Vtable = ICoreTextLayoutRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreTextLayoutRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2555a8cc_51fd_4f03_98bf_ac78174d68e0); -} +::windows_core::imp::com_interface!(ICoreTextLayoutRequest, ICoreTextLayoutRequest_Vtbl, 0x2555a8cc_51fd_4f03_98bf_ac78174d68e0); #[repr(C)] #[doc(hidden)] pub struct ICoreTextLayoutRequest_Vtbl { @@ -188,48 +116,21 @@ pub struct ICoreTextLayoutRequest_Vtbl { pub IsCanceled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreTextLayoutRequest2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreTextLayoutRequest2 { - type Vtable = ICoreTextLayoutRequest2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreTextLayoutRequest2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x676de624_cd3d_4bcd_bf01_7f7110954511); -} +::windows_core::imp::com_interface!(ICoreTextLayoutRequest2, ICoreTextLayoutRequest2_Vtbl, 0x676de624_cd3d_4bcd_bf01_7f7110954511); #[repr(C)] #[doc(hidden)] pub struct ICoreTextLayoutRequest2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub LayoutBoundsVisualPixels: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreTextLayoutRequestedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreTextLayoutRequestedEventArgs { - type Vtable = ICoreTextLayoutRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreTextLayoutRequestedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb1dc6ae0_9a7b_4e9e_a566_4a6b5f8ad676); -} +::windows_core::imp::com_interface!(ICoreTextLayoutRequestedEventArgs, ICoreTextLayoutRequestedEventArgs_Vtbl, 0xb1dc6ae0_9a7b_4e9e_a566_4a6b5f8ad676); #[repr(C)] #[doc(hidden)] pub struct ICoreTextLayoutRequestedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Request: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreTextSelectionRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreTextSelectionRequest { - type Vtable = ICoreTextSelectionRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreTextSelectionRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf0a70403_208b_4301_883c_74ca7485fd8d); -} +::windows_core::imp::com_interface!(ICoreTextSelectionRequest, ICoreTextSelectionRequest_Vtbl, 0xf0a70403_208b_4301_883c_74ca7485fd8d); #[repr(C)] #[doc(hidden)] pub struct ICoreTextSelectionRequest_Vtbl { @@ -239,32 +140,14 @@ pub struct ICoreTextSelectionRequest_Vtbl { pub IsCanceled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreTextSelectionRequestedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreTextSelectionRequestedEventArgs { - type Vtable = ICoreTextSelectionRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreTextSelectionRequestedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x13c6682b_f614_421a_8f4b_9ec8a5a37fcd); -} +::windows_core::imp::com_interface!(ICoreTextSelectionRequestedEventArgs, ICoreTextSelectionRequestedEventArgs_Vtbl, 0x13c6682b_f614_421a_8f4b_9ec8a5a37fcd); #[repr(C)] #[doc(hidden)] pub struct ICoreTextSelectionRequestedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Request: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreTextSelectionUpdatingEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreTextSelectionUpdatingEventArgs { - type Vtable = ICoreTextSelectionUpdatingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreTextSelectionUpdatingEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd445839f_fe7f_4bd5_8a26_0922c1b3e639); -} +::windows_core::imp::com_interface!(ICoreTextSelectionUpdatingEventArgs, ICoreTextSelectionUpdatingEventArgs_Vtbl, 0xd445839f_fe7f_4bd5_8a26_0922c1b3e639); #[repr(C)] #[doc(hidden)] pub struct ICoreTextSelectionUpdatingEventArgs_Vtbl { @@ -275,16 +158,7 @@ pub struct ICoreTextSelectionUpdatingEventArgs_Vtbl { pub IsCanceled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreTextServicesManager(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreTextServicesManager { - type Vtable = ICoreTextServicesManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreTextServicesManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc2507d83_6e0a_4a8a_bdf8_1948874854ba); -} +::windows_core::imp::com_interface!(ICoreTextServicesManager, ICoreTextServicesManager_Vtbl, 0xc2507d83_6e0a_4a8a_bdf8_1948874854ba); #[repr(C)] #[doc(hidden)] pub struct ICoreTextServicesManager_Vtbl { @@ -297,48 +171,21 @@ pub struct ICoreTextServicesManager_Vtbl { pub RemoveInputLanguageChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cookie: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub CreateEditContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreTextServicesManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreTextServicesManagerStatics { - type Vtable = ICoreTextServicesManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreTextServicesManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1520a388_e2cf_4d65_aeb9_b32d86fe39b9); -} +::windows_core::imp::com_interface!(ICoreTextServicesManagerStatics, ICoreTextServicesManagerStatics_Vtbl, 0x1520a388_e2cf_4d65_aeb9_b32d86fe39b9); #[repr(C)] #[doc(hidden)] pub struct ICoreTextServicesManagerStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetForCurrentView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreTextServicesStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreTextServicesStatics { - type Vtable = ICoreTextServicesStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreTextServicesStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x91859a46_eccf_47a4_8ae7_098a9c6fbb15); -} +::windows_core::imp::com_interface!(ICoreTextServicesStatics, ICoreTextServicesStatics_Vtbl, 0x91859a46_eccf_47a4_8ae7_098a9c6fbb15); #[repr(C)] #[doc(hidden)] pub struct ICoreTextServicesStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub HiddenCharacter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u16) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreTextTextRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreTextTextRequest { - type Vtable = ICoreTextTextRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreTextTextRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x50d950a9_f51e_4cc1_8ca1_e6346d1a61be); -} +::windows_core::imp::com_interface!(ICoreTextTextRequest, ICoreTextTextRequest_Vtbl, 0x50d950a9_f51e_4cc1_8ca1_e6346d1a61be); #[repr(C)] #[doc(hidden)] pub struct ICoreTextTextRequest_Vtbl { @@ -349,32 +196,14 @@ pub struct ICoreTextTextRequest_Vtbl { pub IsCanceled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreTextTextRequestedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreTextTextRequestedEventArgs { - type Vtable = ICoreTextTextRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreTextTextRequestedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf096a2d0_41c6_4c02_8b1a_d953b00cabb3); -} +::windows_core::imp::com_interface!(ICoreTextTextRequestedEventArgs, ICoreTextTextRequestedEventArgs_Vtbl, 0xf096a2d0_41c6_4c02_8b1a_d953b00cabb3); #[repr(C)] #[doc(hidden)] pub struct ICoreTextTextRequestedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Request: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreTextTextUpdatingEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreTextTextUpdatingEventArgs { - type Vtable = ICoreTextTextUpdatingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreTextTextUpdatingEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeea7918d_cc2b_4f03_8ff6_02fd217db450); -} +::windows_core::imp::com_interface!(ICoreTextTextUpdatingEventArgs, ICoreTextTextUpdatingEventArgs_Vtbl, 0xeea7918d_cc2b_4f03_8ff6_02fd217db450); #[repr(C)] #[doc(hidden)] pub struct ICoreTextTextUpdatingEventArgs_Vtbl { @@ -394,6 +223,7 @@ pub struct ICoreTextTextUpdatingEventArgs_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CoreTextCompositionCompletedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CoreTextCompositionCompletedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CoreTextCompositionCompletedEventArgs { pub fn IsCanceled(&self) -> ::windows_core::Result { let this = self; @@ -424,19 +254,17 @@ impl ::windows_core::RuntimeType for CoreTextCompositionCompletedEventArgs { } unsafe impl ::windows_core::Interface for CoreTextCompositionCompletedEventArgs { type Vtable = ICoreTextCompositionCompletedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CoreTextCompositionCompletedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CoreTextCompositionCompletedEventArgs { const NAME: &'static str = "Windows.UI.Text.Core.CoreTextCompositionCompletedEventArgs"; } -::windows_core::imp::interface_hierarchy!(CoreTextCompositionCompletedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CoreTextCompositionCompletedEventArgs {} unsafe impl ::core::marker::Sync for CoreTextCompositionCompletedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CoreTextCompositionSegment(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CoreTextCompositionSegment, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CoreTextCompositionSegment { pub fn PreconversionString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -458,19 +286,17 @@ impl ::windows_core::RuntimeType for CoreTextCompositionSegment { } unsafe impl ::windows_core::Interface for CoreTextCompositionSegment { type Vtable = ICoreTextCompositionSegment_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CoreTextCompositionSegment { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CoreTextCompositionSegment { const NAME: &'static str = "Windows.UI.Text.Core.CoreTextCompositionSegment"; } -::windows_core::imp::interface_hierarchy!(CoreTextCompositionSegment, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CoreTextCompositionSegment {} unsafe impl ::core::marker::Sync for CoreTextCompositionSegment {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CoreTextCompositionStartedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CoreTextCompositionStartedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CoreTextCompositionStartedEventArgs { pub fn IsCanceled(&self) -> ::windows_core::Result { let this = self; @@ -492,19 +318,17 @@ impl ::windows_core::RuntimeType for CoreTextCompositionStartedEventArgs { } unsafe impl ::windows_core::Interface for CoreTextCompositionStartedEventArgs { type Vtable = ICoreTextCompositionStartedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CoreTextCompositionStartedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CoreTextCompositionStartedEventArgs { const NAME: &'static str = "Windows.UI.Text.Core.CoreTextCompositionStartedEventArgs"; } -::windows_core::imp::interface_hierarchy!(CoreTextCompositionStartedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CoreTextCompositionStartedEventArgs {} unsafe impl ::core::marker::Sync for CoreTextCompositionStartedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CoreTextEditContext(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CoreTextEditContext, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CoreTextEditContext { pub fn Name(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -700,14 +524,14 @@ impl CoreTextEditContext { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveNotifyFocusLeaveCompleted(&self, cookie: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveNotifyFocusLeaveCompleted)(::windows_core::Interface::as_raw(this), cookie).ok() } } } @@ -716,19 +540,17 @@ impl ::windows_core::RuntimeType for CoreTextEditContext { } unsafe impl ::windows_core::Interface for CoreTextEditContext { type Vtable = ICoreTextEditContext_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CoreTextEditContext { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CoreTextEditContext { const NAME: &'static str = "Windows.UI.Text.Core.CoreTextEditContext"; } -::windows_core::imp::interface_hierarchy!(CoreTextEditContext, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CoreTextEditContext {} unsafe impl ::core::marker::Sync for CoreTextEditContext {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CoreTextFormatUpdatingEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CoreTextFormatUpdatingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CoreTextFormatUpdatingEventArgs { pub fn Range(&self) -> ::windows_core::Result { let this = self; @@ -809,19 +631,17 @@ impl ::windows_core::RuntimeType for CoreTextFormatUpdatingEventArgs { } unsafe impl ::windows_core::Interface for CoreTextFormatUpdatingEventArgs { type Vtable = ICoreTextFormatUpdatingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CoreTextFormatUpdatingEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CoreTextFormatUpdatingEventArgs { const NAME: &'static str = "Windows.UI.Text.Core.CoreTextFormatUpdatingEventArgs"; } -::windows_core::imp::interface_hierarchy!(CoreTextFormatUpdatingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CoreTextFormatUpdatingEventArgs {} unsafe impl ::core::marker::Sync for CoreTextFormatUpdatingEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CoreTextLayoutBounds(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CoreTextLayoutBounds, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CoreTextLayoutBounds { pub fn TextBounds(&self) -> ::windows_core::Result { let this = self; @@ -851,19 +671,17 @@ impl ::windows_core::RuntimeType for CoreTextLayoutBounds { } unsafe impl ::windows_core::Interface for CoreTextLayoutBounds { type Vtable = ICoreTextLayoutBounds_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CoreTextLayoutBounds { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CoreTextLayoutBounds { const NAME: &'static str = "Windows.UI.Text.Core.CoreTextLayoutBounds"; } -::windows_core::imp::interface_hierarchy!(CoreTextLayoutBounds, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CoreTextLayoutBounds {} unsafe impl ::core::marker::Sync for CoreTextLayoutBounds {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CoreTextLayoutRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CoreTextLayoutRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CoreTextLayoutRequest { pub fn Range(&self) -> ::windows_core::Result { let this = self; @@ -894,7 +712,7 @@ impl CoreTextLayoutRequest { } } pub fn LayoutBoundsVisualPixels(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).LayoutBoundsVisualPixels)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -906,19 +724,17 @@ impl ::windows_core::RuntimeType for CoreTextLayoutRequest { } unsafe impl ::windows_core::Interface for CoreTextLayoutRequest { type Vtable = ICoreTextLayoutRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CoreTextLayoutRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CoreTextLayoutRequest { const NAME: &'static str = "Windows.UI.Text.Core.CoreTextLayoutRequest"; } -::windows_core::imp::interface_hierarchy!(CoreTextLayoutRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CoreTextLayoutRequest {} unsafe impl ::core::marker::Sync for CoreTextLayoutRequest {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CoreTextLayoutRequestedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CoreTextLayoutRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CoreTextLayoutRequestedEventArgs { pub fn Request(&self) -> ::windows_core::Result { let this = self; @@ -933,19 +749,17 @@ impl ::windows_core::RuntimeType for CoreTextLayoutRequestedEventArgs { } unsafe impl ::windows_core::Interface for CoreTextLayoutRequestedEventArgs { type Vtable = ICoreTextLayoutRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CoreTextLayoutRequestedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CoreTextLayoutRequestedEventArgs { const NAME: &'static str = "Windows.UI.Text.Core.CoreTextLayoutRequestedEventArgs"; } -::windows_core::imp::interface_hierarchy!(CoreTextLayoutRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CoreTextLayoutRequestedEventArgs {} unsafe impl ::core::marker::Sync for CoreTextLayoutRequestedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CoreTextSelectionRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CoreTextSelectionRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CoreTextSelectionRequest { pub fn Selection(&self) -> ::windows_core::Result { let this = self; @@ -978,19 +792,17 @@ impl ::windows_core::RuntimeType for CoreTextSelectionRequest { } unsafe impl ::windows_core::Interface for CoreTextSelectionRequest { type Vtable = ICoreTextSelectionRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CoreTextSelectionRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CoreTextSelectionRequest { const NAME: &'static str = "Windows.UI.Text.Core.CoreTextSelectionRequest"; } -::windows_core::imp::interface_hierarchy!(CoreTextSelectionRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CoreTextSelectionRequest {} unsafe impl ::core::marker::Sync for CoreTextSelectionRequest {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CoreTextSelectionRequestedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CoreTextSelectionRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CoreTextSelectionRequestedEventArgs { pub fn Request(&self) -> ::windows_core::Result { let this = self; @@ -1005,19 +817,17 @@ impl ::windows_core::RuntimeType for CoreTextSelectionRequestedEventArgs { } unsafe impl ::windows_core::Interface for CoreTextSelectionRequestedEventArgs { type Vtable = ICoreTextSelectionRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CoreTextSelectionRequestedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CoreTextSelectionRequestedEventArgs { const NAME: &'static str = "Windows.UI.Text.Core.CoreTextSelectionRequestedEventArgs"; } -::windows_core::imp::interface_hierarchy!(CoreTextSelectionRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CoreTextSelectionRequestedEventArgs {} unsafe impl ::core::marker::Sync for CoreTextSelectionRequestedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CoreTextSelectionUpdatingEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CoreTextSelectionUpdatingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CoreTextSelectionUpdatingEventArgs { pub fn Selection(&self) -> ::windows_core::Result { let this = self; @@ -1057,14 +867,11 @@ impl ::windows_core::RuntimeType for CoreTextSelectionUpdatingEventArgs { } unsafe impl ::windows_core::Interface for CoreTextSelectionUpdatingEventArgs { type Vtable = ICoreTextSelectionUpdatingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CoreTextSelectionUpdatingEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CoreTextSelectionUpdatingEventArgs { const NAME: &'static str = "Windows.UI.Text.Core.CoreTextSelectionUpdatingEventArgs"; } -::windows_core::imp::interface_hierarchy!(CoreTextSelectionUpdatingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CoreTextSelectionUpdatingEventArgs {} unsafe impl ::core::marker::Sync for CoreTextSelectionUpdatingEventArgs {} pub struct CoreTextServicesConstants; @@ -1087,6 +894,7 @@ impl ::windows_core::RuntimeName for CoreTextServicesConstants { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CoreTextServicesManager(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CoreTextServicesManager, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CoreTextServicesManager { #[doc = "Required features: `\"Globalization\"`"] #[cfg(feature = "Globalization")] @@ -1135,19 +943,17 @@ impl ::windows_core::RuntimeType for CoreTextServicesManager { } unsafe impl ::windows_core::Interface for CoreTextServicesManager { type Vtable = ICoreTextServicesManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CoreTextServicesManager { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CoreTextServicesManager { const NAME: &'static str = "Windows.UI.Text.Core.CoreTextServicesManager"; } -::windows_core::imp::interface_hierarchy!(CoreTextServicesManager, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CoreTextServicesManager {} unsafe impl ::core::marker::Sync for CoreTextServicesManager {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CoreTextTextRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CoreTextTextRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CoreTextTextRequest { pub fn Range(&self) -> ::windows_core::Result { let this = self; @@ -1187,19 +993,17 @@ impl ::windows_core::RuntimeType for CoreTextTextRequest { } unsafe impl ::windows_core::Interface for CoreTextTextRequest { type Vtable = ICoreTextTextRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CoreTextTextRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CoreTextTextRequest { const NAME: &'static str = "Windows.UI.Text.Core.CoreTextTextRequest"; } -::windows_core::imp::interface_hierarchy!(CoreTextTextRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CoreTextTextRequest {} unsafe impl ::core::marker::Sync for CoreTextTextRequest {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CoreTextTextRequestedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CoreTextTextRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CoreTextTextRequestedEventArgs { pub fn Request(&self) -> ::windows_core::Result { let this = self; @@ -1214,19 +1018,17 @@ impl ::windows_core::RuntimeType for CoreTextTextRequestedEventArgs { } unsafe impl ::windows_core::Interface for CoreTextTextRequestedEventArgs { type Vtable = ICoreTextTextRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CoreTextTextRequestedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CoreTextTextRequestedEventArgs { const NAME: &'static str = "Windows.UI.Text.Core.CoreTextTextRequestedEventArgs"; } -::windows_core::imp::interface_hierarchy!(CoreTextTextRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CoreTextTextRequestedEventArgs {} unsafe impl ::core::marker::Sync for CoreTextTextRequestedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CoreTextTextUpdatingEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CoreTextTextUpdatingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CoreTextTextUpdatingEventArgs { pub fn Range(&self) -> ::windows_core::Result { let this = self; @@ -1289,14 +1091,11 @@ impl ::windows_core::RuntimeType for CoreTextTextUpdatingEventArgs { } unsafe impl ::windows_core::Interface for CoreTextTextUpdatingEventArgs { type Vtable = ICoreTextTextUpdatingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CoreTextTextUpdatingEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CoreTextTextUpdatingEventArgs { const NAME: &'static str = "Windows.UI.Text.Core.CoreTextTextUpdatingEventArgs"; } -::windows_core::imp::interface_hierarchy!(CoreTextTextUpdatingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CoreTextTextUpdatingEventArgs {} unsafe impl ::core::marker::Sync for CoreTextTextUpdatingEventArgs {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/UI/Text/impl.rs b/crates/libs/windows/src/Windows/UI/Text/impl.rs index ae8bb44a82..d349d2af29 100644 --- a/crates/libs/windows/src/Windows/UI/Text/impl.rs +++ b/crates/libs/windows/src/Windows/UI/Text/impl.rs @@ -519,7 +519,7 @@ impl ITextCharacterFormat_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Storage_Streams\"`"] @@ -816,7 +816,7 @@ impl ITextDocument_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITextParagraphFormat_Impl: Sized { @@ -1312,7 +1312,7 @@ impl ITextParagraphFormat_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Storage_Streams\"`"] @@ -1851,7 +1851,7 @@ impl ITextRange_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Storage_Streams\"`"] @@ -1988,6 +1988,6 @@ impl ITextSelection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/UI/Text/mod.rs b/crates/libs/windows/src/Windows/UI/Text/mod.rs index fad478e91c..a4bf2dd837 100644 --- a/crates/libs/windows/src/Windows/UI/Text/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Text/mod.rs @@ -1,16 +1,7 @@ #[cfg(feature = "UI_Text_Core")] #[doc = "Required features: `\"UI_Text_Core\"`"] pub mod Core; -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContentLinkInfo(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContentLinkInfo { - type Vtable = IContentLinkInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContentLinkInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1ed52525_1c5f_48cb_b335_78b50a2ee642); -} +::windows_core::imp::com_interface!(IContentLinkInfo, IContentLinkInfo_Vtbl, 0x1ed52525_1c5f_48cb_b335_78b50a2ee642); #[repr(C)] #[doc(hidden)] pub struct IContentLinkInfo_Vtbl { @@ -26,31 +17,13 @@ pub struct IContentLinkInfo_Vtbl { pub LinkContentKind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetLinkContentKind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFontWeights(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFontWeights { - type Vtable = IFontWeights_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFontWeights { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7880a444_01ab_4997_8517_df822a0c45f1); -} +::windows_core::imp::com_interface!(IFontWeights, IFontWeights_Vtbl, 0x7880a444_01ab_4997_8517_df822a0c45f1); #[repr(C)] #[doc(hidden)] pub struct IFontWeights_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFontWeightsStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFontWeightsStatics { - type Vtable = IFontWeightsStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFontWeightsStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb3b579d5_1ba9_48eb_9dad_c095e8c23ba3); -} +::windows_core::imp::com_interface!(IFontWeightsStatics, IFontWeightsStatics_Vtbl, 0xb3b579d5_1ba9_48eb_9dad_c095e8c23ba3); #[repr(C)] #[doc(hidden)] pub struct IFontWeightsStatics_Vtbl { @@ -67,16 +40,7 @@ pub struct IFontWeightsStatics_Vtbl { pub SemiLight: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut FontWeight) -> ::windows_core::HRESULT, pub Thin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut FontWeight) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRichEditTextRange(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRichEditTextRange { - type Vtable = IRichEditTextRange_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRichEditTextRange { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x374e3515_ba8a_4a6e_8c59_0dde3d0cf5cd); -} +::windows_core::imp::com_interface!(IRichEditTextRange, IRichEditTextRange_Vtbl, 0x374e3515_ba8a_4a6e_8c59_0dde3d0cf5cd); #[repr(C)] #[doc(hidden)] pub struct IRichEditTextRange_Vtbl { @@ -84,9 +48,8 @@ pub struct IRichEditTextRange_Vtbl { pub ContentLinkInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetContentLinkInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITextCharacterFormat(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITextCharacterFormat, ITextCharacterFormat_Vtbl, 0x5adef3db_05fb_442d_8065_642afea02ced); +::windows_core::imp::interface_hierarchy!(ITextCharacterFormat, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ITextCharacterFormat { pub fn AllCaps(&self) -> ::windows_core::Result { let this = self; @@ -350,10 +313,10 @@ impl ITextCharacterFormat { } pub fn SetClone(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetClone)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetClone)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn GetClone(&self) -> ::windows_core::Result { let this = self; @@ -364,25 +327,18 @@ impl ITextCharacterFormat { } pub fn IsEqual(&self, format: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).IsEqual)(::windows_core::Interface::as_raw(this), format.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).IsEqual)(::windows_core::Interface::as_raw(this), format.into_param().abi(), &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(ITextCharacterFormat, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for ITextCharacterFormat { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for ITextCharacterFormat { - type Vtable = ITextCharacterFormat_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITextCharacterFormat { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5adef3db_05fb_442d_8065_642afea02ced); -} #[repr(C)] #[doc(hidden)] pub struct ITextCharacterFormat_Vtbl { @@ -438,16 +394,7 @@ pub struct ITextCharacterFormat_Vtbl { pub GetClone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub IsEqual: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, format: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITextConstantsStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITextConstantsStatics { - type Vtable = ITextConstantsStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITextConstantsStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x779e7c33_189d_4bfa_97c8_10db135d976e); -} +::windows_core::imp::com_interface!(ITextConstantsStatics, ITextConstantsStatics_Vtbl, 0x779e7c33_189d_4bfa_97c8_10db135d976e); #[repr(C)] #[doc(hidden)] pub struct ITextConstantsStatics_Vtbl { @@ -461,9 +408,8 @@ pub struct ITextConstantsStatics_Vtbl { pub UndefinedFontStretch: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut FontStretch) -> ::windows_core::HRESULT, pub UndefinedFontStyle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut FontStyle) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITextDocument(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITextDocument, ITextDocument_Vtbl, 0xbeee4ddb_90b2_408c_a2f6_0a0ac31e33e4); +::windows_core::imp::interface_hierarchy!(ITextDocument, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ITextDocument { pub fn CaretType(&self) -> ::windows_core::Result { let this = self; @@ -591,10 +537,10 @@ impl ITextDocument { #[cfg(feature = "Storage_Streams")] pub fn LoadFromStream(&self, options: TextSetOptions, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).LoadFromStream)(::windows_core::Interface::as_raw(this), options, value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).LoadFromStream)(::windows_core::Interface::as_raw(this), options, value.into_param().abi()).ok() } } pub fn Redo(&self) -> ::windows_core::Result<()> { let this = self; @@ -604,24 +550,24 @@ impl ITextDocument { #[cfg(feature = "Storage_Streams")] pub fn SaveToStream(&self, options: TextGetOptions, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SaveToStream)(::windows_core::Interface::as_raw(this), options, value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SaveToStream)(::windows_core::Interface::as_raw(this), options, value.into_param().abi()).ok() } } pub fn SetDefaultCharacterFormat(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetDefaultCharacterFormat)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetDefaultCharacterFormat)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn SetDefaultParagraphFormat(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetDefaultParagraphFormat)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetDefaultParagraphFormat)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn SetText(&self, options: TextSetOptions, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { let this = self; @@ -632,16 +578,9 @@ impl ITextDocument { unsafe { (::windows_core::Interface::vtable(this).Undo)(::windows_core::Interface::as_raw(this)).ok() } } } -::windows_core::imp::interface_hierarchy!(ITextDocument, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for ITextDocument { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for ITextDocument { - type Vtable = ITextDocument_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITextDocument { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbeee4ddb_90b2_408c_a2f6_0a0ac31e33e4); -} #[repr(C)] #[doc(hidden)] pub struct ITextDocument_Vtbl { @@ -680,16 +619,7 @@ pub struct ITextDocument_Vtbl { pub SetText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, options: TextSetOptions, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Undo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITextDocument2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITextDocument2 { - type Vtable = ITextDocument2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITextDocument2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf2311112_8c89_49c9_9118_f057cbb814ee); -} +::windows_core::imp::com_interface!(ITextDocument2, ITextDocument2_Vtbl, 0xf2311112_8c89_49c9_9118_f057cbb814ee); #[repr(C)] #[doc(hidden)] pub struct ITextDocument2_Vtbl { @@ -699,32 +629,14 @@ pub struct ITextDocument2_Vtbl { pub IgnoreTrailingCharacterSpacing: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetIgnoreTrailingCharacterSpacing: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITextDocument3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITextDocument3 { - type Vtable = ITextDocument3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITextDocument3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x75ab03a1_a6f8_441d_aa18_0a851d6e5e3c); -} +::windows_core::imp::com_interface!(ITextDocument3, ITextDocument3_Vtbl, 0x75ab03a1_a6f8_441d_aa18_0a851d6e5e3c); #[repr(C)] #[doc(hidden)] pub struct ITextDocument3_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ClearUndoRedoHistory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITextDocument4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITextDocument4 { - type Vtable = ITextDocument4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITextDocument4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x619c20f2_cb3b_4521_981f_2865b1b93f04); -} +::windows_core::imp::com_interface!(ITextDocument4, ITextDocument4_Vtbl, 0x619c20f2_cb3b_4521_981f_2865b1b93f04); #[repr(C)] #[doc(hidden)] pub struct ITextDocument4_Vtbl { @@ -733,9 +645,8 @@ pub struct ITextDocument4_Vtbl { pub GetMath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetMathMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mode: RichEditMathMode) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITextParagraphFormat(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITextParagraphFormat, ITextParagraphFormat_Vtbl, 0x2cf8cfa6_4676_498a_93f5_bbdbfc0bd883); +::windows_core::imp::interface_hierarchy!(ITextParagraphFormat, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ITextParagraphFormat { pub fn Alignment(&self) -> ::windows_core::Result { let this = self; @@ -984,20 +895,20 @@ impl ITextParagraphFormat { } pub fn IsEqual(&self, format: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).IsEqual)(::windows_core::Interface::as_raw(this), format.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).IsEqual)(::windows_core::Interface::as_raw(this), format.into_param().abi(), &mut result__).from_abi(result__) } } pub fn SetClone(&self, format: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetClone)(::windows_core::Interface::as_raw(this), format.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetClone)(::windows_core::Interface::as_raw(this), format.into_param().abi()).ok() } } pub fn SetIndents(&self, start: f32, left: f32, right: f32) -> ::windows_core::Result<()> { let this = self; @@ -1008,16 +919,9 @@ impl ITextParagraphFormat { unsafe { (::windows_core::Interface::vtable(this).SetLineSpacing)(::windows_core::Interface::as_raw(this), rule, spacing).ok() } } } -::windows_core::imp::interface_hierarchy!(ITextParagraphFormat, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for ITextParagraphFormat { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for ITextParagraphFormat { - type Vtable = ITextParagraphFormat_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITextParagraphFormat { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2cf8cfa6_4676_498a_93f5_bbdbfc0bd883); -} #[repr(C)] #[doc(hidden)] pub struct ITextParagraphFormat_Vtbl { @@ -1071,9 +975,8 @@ pub struct ITextParagraphFormat_Vtbl { pub SetIndents: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, start: f32, left: f32, right: f32) -> ::windows_core::HRESULT, pub SetLineSpacing: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rule: LineSpacingRule, spacing: f32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITextRange(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITextRange, ITextRange_Vtbl, 0x5b9e4e57_c072_42a0_8945_af503ee54768); +::windows_core::imp::interface_hierarchy!(ITextRange, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ITextRange { pub fn Character(&self) -> ::windows_core::Result { let this = self; @@ -1095,10 +998,10 @@ impl ITextRange { } pub fn SetCharacterFormat(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetCharacterFormat)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetCharacterFormat)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn FormattedText(&self) -> ::windows_core::Result { let this = self; @@ -1109,10 +1012,10 @@ impl ITextRange { } pub fn SetFormattedText(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetFormattedText)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetFormattedText)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn EndPosition(&self) -> ::windows_core::Result { let this = self; @@ -1163,10 +1066,10 @@ impl ITextRange { } pub fn SetParagraphFormat(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetParagraphFormat)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetParagraphFormat)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn StartPosition(&self) -> ::windows_core::Result { let this = self; @@ -1282,48 +1185,48 @@ impl ITextRange { #[cfg(feature = "Storage_Streams")] pub fn GetTextViaStream(&self, options: TextGetOptions, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).GetTextViaStream)(::windows_core::Interface::as_raw(this), options, value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).GetTextViaStream)(::windows_core::Interface::as_raw(this), options, value.into_param().abi()).ok() } } pub fn InRange(&self, range: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).InRange)(::windows_core::Interface::as_raw(this), range.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).InRange)(::windows_core::Interface::as_raw(this), range.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Storage_Streams\"`"] #[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::TryIntoParam, + P0: ::windows_core::IntoParam, { 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.try_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.into_param().abi()).ok() } } pub fn InStory(&self, range: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).InStory)(::windows_core::Interface::as_raw(this), range.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).InStory)(::windows_core::Interface::as_raw(this), range.into_param().abi(), &mut result__).from_abi(result__) } } pub fn IsEqual(&self, range: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).IsEqual)(::windows_core::Interface::as_raw(this), range.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).IsEqual)(::windows_core::Interface::as_raw(this), range.into_param().abi(), &mut result__).from_abi(result__) } } pub fn Move(&self, unit: TextRangeUnit, count: i32) -> ::windows_core::Result { @@ -1379,10 +1282,10 @@ impl ITextRange { #[cfg(feature = "Storage_Streams")] pub fn SetTextViaStream(&self, options: TextSetOptions, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetTextViaStream)(::windows_core::Interface::as_raw(this), options, value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetTextViaStream)(::windows_core::Interface::as_raw(this), options, value.into_param().abi()).ok() } } pub fn StartOf(&self, unit: TextRangeUnit, extend: bool) -> ::windows_core::Result { let this = self; @@ -1392,16 +1295,9 @@ impl ITextRange { } } } -::windows_core::imp::interface_hierarchy!(ITextRange, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for ITextRange { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for ITextRange { - type Vtable = ITextRange_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITextRange { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5b9e4e57_c072_42a0_8945_af503ee54768); -} #[repr(C)] #[doc(hidden)] pub struct ITextRange_Vtbl { @@ -1468,9 +1364,9 @@ pub struct ITextRange_Vtbl { SetTextViaStream: usize, pub StartOf: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, unit: TextRangeUnit, extend: bool, result__: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITextSelection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITextSelection, ITextSelection_Vtbl, 0xa6d36724_f28f_430a_b2cf_c343671ec0e9); +::windows_core::imp::interface_hierarchy!(ITextSelection, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ITextSelection, ITextRange); impl ITextSelection { pub fn Options(&self) -> ::windows_core::Result { let this = self; @@ -1537,18 +1433,18 @@ impl ITextSelection { unsafe { (::windows_core::Interface::vtable(this).TypeText)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn Character(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Character)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetCharacter(&self, value: u16) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCharacter)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn CharacterFormat(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CharacterFormat)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1556,13 +1452,13 @@ impl ITextSelection { } pub fn SetCharacterFormat(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetCharacterFormat)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn FormattedText(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FormattedText)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1570,53 +1466,53 @@ impl ITextSelection { } pub fn SetFormattedText(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetFormattedText)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn EndPosition(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).EndPosition)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetEndPosition(&self, value: i32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetEndPosition)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Gravity(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Gravity)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetGravity(&self, value: RangeGravity) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetGravity)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Length(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Length)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Link(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Link)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetLink(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetLink)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn ParagraphFormat(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ParagraphFormat)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1624,246 +1520,238 @@ impl ITextSelection { } pub fn SetParagraphFormat(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetParagraphFormat)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn StartPosition(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).StartPosition)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetStartPosition(&self, value: i32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetStartPosition)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn StoryLength(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).StoryLength)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Text(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Text)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetText(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetText)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn CanPaste(&self, format: i32) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CanPaste)(::windows_core::Interface::as_raw(this), format, &mut result__).from_abi(result__) } } pub fn ChangeCase(&self, value: LetterCase) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ChangeCase)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Collapse(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Collapse)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Copy(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Copy)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Cut(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Cut)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Delete(&self, unit: TextRangeUnit, count: i32) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Delete)(::windows_core::Interface::as_raw(this), unit, count, &mut result__).from_abi(result__) } } pub fn EndOf(&self, unit: TextRangeUnit, extend: bool) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).EndOf)(::windows_core::Interface::as_raw(this), unit, extend, &mut result__).from_abi(result__) } } pub fn Expand(&self, unit: TextRangeUnit) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Expand)(::windows_core::Interface::as_raw(this), unit, &mut result__).from_abi(result__) } } pub fn FindText(&self, value: &::windows_core::HSTRING, scanlength: i32, options: FindOptions) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FindText)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value), scanlength, options, &mut result__).from_abi(result__) } } pub fn GetCharacterUtf32(&self, value: &mut u32, offset: i32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).GetCharacterUtf32)(::windows_core::Interface::as_raw(this), value, offset).ok() } } pub fn GetClone(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetClone)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetIndex(&self, unit: TextRangeUnit) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetIndex)(::windows_core::Interface::as_raw(this), unit, &mut result__).from_abi(result__) } } pub fn GetPoint(&self, horizontalalign: HorizontalCharacterAlignment, verticalalign: VerticalCharacterAlignment, options: PointOptions, point: &mut super::super::Foundation::Point) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).GetPoint)(::windows_core::Interface::as_raw(this), horizontalalign, verticalalign, options, point).ok() } } pub fn GetRect(&self, options: PointOptions, rect: &mut super::super::Foundation::Rect, hit: &mut i32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).GetRect)(::windows_core::Interface::as_raw(this), options, rect, hit).ok() } } pub fn GetText(&self, options: TextGetOptions, value: &mut ::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).GetText)(::windows_core::Interface::as_raw(this), options, value as *mut _ as _).ok() } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn GetTextViaStream(&self, options: TextGetOptions, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).GetTextViaStream)(::windows_core::Interface::as_raw(this), options, value.try_into_param()?.abi()).ok() } + 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() } } pub fn InRange(&self, range: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).InRange)(::windows_core::Interface::as_raw(this), range.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Storage_Streams\"`"] #[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::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::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.try_into_param()?.abi()).ok() } + 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() } } pub fn InStory(&self, range: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).InStory)(::windows_core::Interface::as_raw(this), range.into_param().abi(), &mut result__).from_abi(result__) } } pub fn IsEqual(&self, range: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).IsEqual)(::windows_core::Interface::as_raw(this), range.into_param().abi(), &mut result__).from_abi(result__) } } pub fn Move(&self, unit: TextRangeUnit, count: i32) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Move)(::windows_core::Interface::as_raw(this), unit, count, &mut result__).from_abi(result__) } } pub fn MoveEnd(&self, unit: TextRangeUnit, count: i32) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MoveEnd)(::windows_core::Interface::as_raw(this), unit, count, &mut result__).from_abi(result__) } } pub fn MoveStart(&self, unit: TextRangeUnit, count: i32) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MoveStart)(::windows_core::Interface::as_raw(this), unit, count, &mut result__).from_abi(result__) } } pub fn Paste(&self, format: i32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Paste)(::windows_core::Interface::as_raw(this), format).ok() } } pub fn ScrollIntoView(&self, value: PointOptions) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ScrollIntoView)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn MatchSelection(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).MatchSelection)(::windows_core::Interface::as_raw(this)).ok() } } pub fn SetIndex(&self, unit: TextRangeUnit, index: i32, extend: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIndex)(::windows_core::Interface::as_raw(this), unit, index, extend).ok() } } pub fn SetPoint(&self, point: super::super::Foundation::Point, options: PointOptions, extend: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetPoint)(::windows_core::Interface::as_raw(this), point, options, extend).ok() } } pub fn SetRange(&self, startposition: i32, endposition: i32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRange)(::windows_core::Interface::as_raw(this), startposition, endposition).ok() } } pub fn SetText2(&self, options: TextSetOptions, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetText2)(::windows_core::Interface::as_raw(this), options, ::core::mem::transmute_copy(value)).ok() } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn SetTextViaStream(&self, options: TextSetOptions, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetTextViaStream)(::windows_core::Interface::as_raw(this), options, value.try_into_param()?.abi()).ok() } + 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() } } pub fn StartOf(&self, unit: TextRangeUnit, extend: bool) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).StartOf)(::windows_core::Interface::as_raw(this), unit, extend, &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(ITextSelection, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ITextSelection {} impl ::windows_core::RuntimeType for ITextSelection { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for ITextSelection { - type Vtable = ITextSelection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITextSelection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa6d36724_f28f_430a_b2cf_c343671ec0e9); -} #[repr(C)] #[doc(hidden)] pub struct ITextSelection_Vtbl { @@ -1882,6 +1770,7 @@ pub struct ITextSelection_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ContentLinkInfo(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ContentLinkInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ContentLinkInfo { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1954,19 +1843,17 @@ impl ::windows_core::RuntimeType for ContentLinkInfo { } unsafe impl ::windows_core::Interface for ContentLinkInfo { type Vtable = IContentLinkInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ContentLinkInfo { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ContentLinkInfo { const NAME: &'static str = "Windows.UI.Text.ContentLinkInfo"; } -::windows_core::imp::interface_hierarchy!(ContentLinkInfo, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ContentLinkInfo {} unsafe impl ::core::marker::Sync for ContentLinkInfo {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct FontWeights(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(FontWeights, ::windows_core::IUnknown, ::windows_core::IInspectable); impl FontWeights { pub fn Black() -> ::windows_core::Result { Self::IFontWeightsStatics(|this| unsafe { @@ -2045,19 +1932,18 @@ impl ::windows_core::RuntimeType for FontWeights { } unsafe impl ::windows_core::Interface for FontWeights { type Vtable = IFontWeights_Vtbl; -} -unsafe impl ::windows_core::ComInterface for FontWeights { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for FontWeights { const NAME: &'static str = "Windows.UI.Text.FontWeights"; } -::windows_core::imp::interface_hierarchy!(FontWeights, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for FontWeights {} unsafe impl ::core::marker::Sync for FontWeights {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RichEditTextDocument(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RichEditTextDocument, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(RichEditTextDocument, ITextDocument); impl RichEditTextDocument { pub fn CaretType(&self) -> ::windows_core::Result { let this = self; @@ -2185,10 +2071,10 @@ impl RichEditTextDocument { #[cfg(feature = "Storage_Streams")] pub fn LoadFromStream(&self, options: TextSetOptions, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).LoadFromStream)(::windows_core::Interface::as_raw(this), options, value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).LoadFromStream)(::windows_core::Interface::as_raw(this), options, value.into_param().abi()).ok() } } pub fn Redo(&self) -> ::windows_core::Result<()> { let this = self; @@ -2198,24 +2084,24 @@ impl RichEditTextDocument { #[cfg(feature = "Storage_Streams")] pub fn SaveToStream(&self, options: TextGetOptions, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SaveToStream)(::windows_core::Interface::as_raw(this), options, value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SaveToStream)(::windows_core::Interface::as_raw(this), options, value.into_param().abi()).ok() } } pub fn SetDefaultCharacterFormat(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetDefaultCharacterFormat)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetDefaultCharacterFormat)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn SetDefaultParagraphFormat(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetDefaultParagraphFormat)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetDefaultParagraphFormat)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn SetText(&self, options: TextSetOptions, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { let this = self; @@ -2226,41 +2112,41 @@ impl RichEditTextDocument { unsafe { (::windows_core::Interface::vtable(this).Undo)(::windows_core::Interface::as_raw(this)).ok() } } pub fn AlignmentIncludesTrailingWhitespace(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AlignmentIncludesTrailingWhitespace)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetAlignmentIncludesTrailingWhitespace(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetAlignmentIncludesTrailingWhitespace)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IgnoreTrailingCharacterSpacing(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IgnoreTrailingCharacterSpacing)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIgnoreTrailingCharacterSpacing(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIgnoreTrailingCharacterSpacing)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn ClearUndoRedoHistory(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ClearUndoRedoHistory)(::windows_core::Interface::as_raw(this)).ok() } } pub fn SetMath(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMath)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn GetMath(&self, value: &mut ::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).GetMath)(::windows_core::Interface::as_raw(this), value as *mut _ as _).ok() } } pub fn SetMathMode(&self, mode: RichEditMathMode) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMathMode)(::windows_core::Interface::as_raw(this), mode).ok() } } } @@ -2269,23 +2155,21 @@ impl ::windows_core::RuntimeType for RichEditTextDocument { } unsafe impl ::windows_core::Interface for RichEditTextDocument { type Vtable = ITextDocument_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RichEditTextDocument { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RichEditTextDocument { const NAME: &'static str = "Windows.UI.Text.RichEditTextDocument"; } -::windows_core::imp::interface_hierarchy!(RichEditTextDocument, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for RichEditTextDocument {} unsafe impl ::core::marker::Send for RichEditTextDocument {} unsafe impl ::core::marker::Sync for RichEditTextDocument {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RichEditTextRange(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RichEditTextRange, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(RichEditTextRange, ITextRange); impl RichEditTextRange { pub fn ContentLinkInfo(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ContentLinkInfo)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2295,7 +2179,7 @@ impl RichEditTextRange { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } pub fn Character(&self) -> ::windows_core::Result { @@ -2318,10 +2202,10 @@ impl RichEditTextRange { } pub fn SetCharacterFormat(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetCharacterFormat)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetCharacterFormat)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn FormattedText(&self) -> ::windows_core::Result { let this = self; @@ -2332,10 +2216,10 @@ impl RichEditTextRange { } pub fn SetFormattedText(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetFormattedText)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetFormattedText)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn EndPosition(&self) -> ::windows_core::Result { let this = self; @@ -2386,10 +2270,10 @@ impl RichEditTextRange { } pub fn SetParagraphFormat(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetParagraphFormat)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetParagraphFormat)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn StartPosition(&self) -> ::windows_core::Result { let this = self; @@ -2505,48 +2389,48 @@ impl RichEditTextRange { #[cfg(feature = "Storage_Streams")] pub fn GetTextViaStream(&self, options: TextGetOptions, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).GetTextViaStream)(::windows_core::Interface::as_raw(this), options, value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).GetTextViaStream)(::windows_core::Interface::as_raw(this), options, value.into_param().abi()).ok() } } pub fn InRange(&self, range: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).InRange)(::windows_core::Interface::as_raw(this), range.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).InRange)(::windows_core::Interface::as_raw(this), range.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Storage_Streams\"`"] #[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::TryIntoParam, + P0: ::windows_core::IntoParam, { 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.try_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.into_param().abi()).ok() } } pub fn InStory(&self, range: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).InStory)(::windows_core::Interface::as_raw(this), range.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).InStory)(::windows_core::Interface::as_raw(this), range.into_param().abi(), &mut result__).from_abi(result__) } } pub fn IsEqual(&self, range: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).IsEqual)(::windows_core::Interface::as_raw(this), range.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).IsEqual)(::windows_core::Interface::as_raw(this), range.into_param().abi(), &mut result__).from_abi(result__) } } pub fn Move(&self, unit: TextRangeUnit, count: i32) -> ::windows_core::Result { @@ -2602,10 +2486,10 @@ impl RichEditTextRange { #[cfg(feature = "Storage_Streams")] pub fn SetTextViaStream(&self, options: TextSetOptions, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetTextViaStream)(::windows_core::Interface::as_raw(this), options, value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetTextViaStream)(::windows_core::Interface::as_raw(this), options, value.into_param().abi()).ok() } } pub fn StartOf(&self, unit: TextRangeUnit, extend: bool) -> ::windows_core::Result { let this = self; @@ -2620,15 +2504,11 @@ impl ::windows_core::RuntimeType for RichEditTextRange { } unsafe impl ::windows_core::Interface for RichEditTextRange { type Vtable = ITextRange_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RichEditTextRange { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RichEditTextRange { const NAME: &'static str = "Windows.UI.Text.RichEditTextRange"; } -::windows_core::imp::interface_hierarchy!(RichEditTextRange, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for RichEditTextRange {} unsafe impl ::core::marker::Send for RichEditTextRange {} unsafe impl ::core::marker::Sync for RichEditTextRange {} pub struct TextConstants; diff --git a/crates/libs/windows/src/Windows/UI/UIAutomation/Core/impl.rs b/crates/libs/windows/src/Windows/UI/UIAutomation/Core/impl.rs index 8d9931bf5c..4cdab3d16b 100644 --- a/crates/libs/windows/src/Windows/UI/UIAutomation/Core/impl.rs +++ b/crates/libs/windows/src/Windows/UI/UIAutomation/Core/impl.rs @@ -23,7 +23,7 @@ impl ICoreAutomationConnectionBoundObjectProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICoreAutomationRemoteOperationExtensionProvider_Impl: Sized { @@ -58,6 +58,6 @@ impl ICoreAutomationRemoteOperationExtensionProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 6b3cff69f4..c81a0eb027 100644 --- a/crates/libs/windows/src/Windows/UI/UIAutomation/Core/mod.rs +++ b/crates/libs/windows/src/Windows/UI/UIAutomation/Core/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAutomationRemoteOperationResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAutomationRemoteOperationResult { - type Vtable = IAutomationRemoteOperationResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAutomationRemoteOperationResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe0f80c42_4a67_5534_bf5a_09e8a99b36b1); -} +::windows_core::imp::com_interface!(IAutomationRemoteOperationResult, IAutomationRemoteOperationResult_Vtbl, 0xe0f80c42_4a67_5534_bf5a_09e8a99b36b1); #[repr(C)] #[doc(hidden)] pub struct IAutomationRemoteOperationResult_Vtbl { @@ -18,9 +9,8 @@ pub struct IAutomationRemoteOperationResult_Vtbl { pub HasOperand: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, operandid: AutomationRemoteOperationOperandId, result__: *mut bool) -> ::windows_core::HRESULT, pub GetOperand: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, operandid: AutomationRemoteOperationOperandId, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreAutomationConnectionBoundObjectProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICoreAutomationConnectionBoundObjectProvider, ICoreAutomationConnectionBoundObjectProvider_Vtbl, 0x0620bb64_9616_5593_be3a_eb8e6daeb3fa); +::windows_core::imp::interface_hierarchy!(ICoreAutomationConnectionBoundObjectProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ICoreAutomationConnectionBoundObjectProvider { pub fn IsComThreadingRequired(&self) -> ::windows_core::Result { let this = self; @@ -30,32 +20,16 @@ impl ICoreAutomationConnectionBoundObjectProvider { } } } -::windows_core::imp::interface_hierarchy!(ICoreAutomationConnectionBoundObjectProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for ICoreAutomationConnectionBoundObjectProvider { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for ICoreAutomationConnectionBoundObjectProvider { - type Vtable = ICoreAutomationConnectionBoundObjectProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreAutomationConnectionBoundObjectProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0620bb64_9616_5593_be3a_eb8e6daeb3fa); -} #[repr(C)] #[doc(hidden)] pub struct ICoreAutomationConnectionBoundObjectProvider_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub IsComThreadingRequired: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreAutomationRegistrarStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreAutomationRegistrarStatics { - type Vtable = ICoreAutomationRegistrarStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreAutomationRegistrarStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3e50129b_d6dc_5680_b580_ffff78300304); -} +::windows_core::imp::com_interface!(ICoreAutomationRegistrarStatics, ICoreAutomationRegistrarStatics_Vtbl, 0x3e50129b_d6dc_5680_b580_ffff78300304); #[repr(C)] #[doc(hidden)] pub struct ICoreAutomationRegistrarStatics_Vtbl { @@ -63,16 +37,7 @@ pub struct ICoreAutomationRegistrarStatics_Vtbl { pub RegisterAnnotationType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guid: ::windows_core::GUID, result__: *mut AutomationAnnotationTypeRegistration) -> ::windows_core::HRESULT, pub UnregisterAnnotationType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, registration: AutomationAnnotationTypeRegistration) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreAutomationRemoteOperation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreAutomationRemoteOperation { - type Vtable = ICoreAutomationRemoteOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreAutomationRemoteOperation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3ac656f4_e2bc_5c6e_b8e7_b224fb74b060); -} +::windows_core::imp::com_interface!(ICoreAutomationRemoteOperation, ICoreAutomationRemoteOperation_Vtbl, 0x3ac656f4_e2bc_5c6e_b8e7_b224fb74b060); #[repr(C)] #[doc(hidden)] pub struct ICoreAutomationRemoteOperation_Vtbl { @@ -83,32 +48,14 @@ pub struct ICoreAutomationRemoteOperation_Vtbl { pub AddToResults: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, operandid: AutomationRemoteOperationOperandId) -> ::windows_core::HRESULT, pub Execute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bytecodeBuffer_array_size: u32, bytecodebuffer: *const u8, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreAutomationRemoteOperation2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreAutomationRemoteOperation2 { - type Vtable = ICoreAutomationRemoteOperation2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreAutomationRemoteOperation2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeefaf86f_e953_5099_8ce9_dca813482ba0); -} +::windows_core::imp::com_interface!(ICoreAutomationRemoteOperation2, ICoreAutomationRemoteOperation2_Vtbl, 0xeefaf86f_e953_5099_8ce9_dca813482ba0); #[repr(C)] #[doc(hidden)] pub struct ICoreAutomationRemoteOperation2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ImportConnectionBoundObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, operandid: AutomationRemoteOperationOperandId, connectionboundobject: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreAutomationRemoteOperationContext(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreAutomationRemoteOperationContext { - type Vtable = ICoreAutomationRemoteOperationContext_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreAutomationRemoteOperationContext { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb9af9cbb_3d3e_5918_a16b_7861626a3aeb); -} +::windows_core::imp::com_interface!(ICoreAutomationRemoteOperationContext, ICoreAutomationRemoteOperationContext_Vtbl, 0xb9af9cbb_3d3e_5918_a16b_7861626a3aeb); #[repr(C)] #[doc(hidden)] pub struct ICoreAutomationRemoteOperationContext_Vtbl { @@ -117,9 +64,8 @@ pub struct ICoreAutomationRemoteOperationContext_Vtbl { pub SetOperand: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: AutomationRemoteOperationOperandId, operand: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetOperand2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: AutomationRemoteOperationOperandId, operand: *mut ::core::ffi::c_void, operandinterfaceid: ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreAutomationRemoteOperationExtensionProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICoreAutomationRemoteOperationExtensionProvider, ICoreAutomationRemoteOperationExtensionProvider_Vtbl, 0x88f53e67_dc69_553b_a0aa_70477e724da8); +::windows_core::imp::interface_hierarchy!(ICoreAutomationRemoteOperationExtensionProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ICoreAutomationRemoteOperationExtensionProvider { pub fn CallExtension(&self, extensionid: ::windows_core::GUID, context: P0, operandids: &[AutomationRemoteOperationOperandId]) -> ::windows_core::Result<()> where @@ -136,16 +82,9 @@ impl ICoreAutomationRemoteOperationExtensionProvider { } } } -::windows_core::imp::interface_hierarchy!(ICoreAutomationRemoteOperationExtensionProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for ICoreAutomationRemoteOperationExtensionProvider { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for ICoreAutomationRemoteOperationExtensionProvider { - type Vtable = ICoreAutomationRemoteOperationExtensionProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreAutomationRemoteOperationExtensionProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x88f53e67_dc69_553b_a0aa_70477e724da8); -} #[repr(C)] #[doc(hidden)] pub struct ICoreAutomationRemoteOperationExtensionProvider_Vtbl { @@ -153,16 +92,7 @@ pub struct ICoreAutomationRemoteOperationExtensionProvider_Vtbl { pub CallExtension: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, extensionid: ::windows_core::GUID, context: *mut ::core::ffi::c_void, operandIds_array_size: u32, operandids: *const AutomationRemoteOperationOperandId) -> ::windows_core::HRESULT, pub IsExtensionSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, extensionid: ::windows_core::GUID, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteAutomationClientSession(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteAutomationClientSession { - type Vtable = IRemoteAutomationClientSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteAutomationClientSession { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5c8a091d_94cc_5b33_afdb_678cded2bd54); -} +::windows_core::imp::com_interface!(IRemoteAutomationClientSession, IRemoteAutomationClientSession_Vtbl, 0x5c8a091d_94cc_5b33_afdb_678cded2bd54); #[repr(C)] #[doc(hidden)] pub struct IRemoteAutomationClientSession_Vtbl { @@ -176,16 +106,7 @@ pub struct IRemoteAutomationClientSession_Vtbl { pub Disconnected: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveDisconnected: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteAutomationClientSessionFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteAutomationClientSessionFactory { - type Vtable = IRemoteAutomationClientSessionFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteAutomationClientSessionFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf250263d_6057_5373_a5a5_ed7265fe0376); -} +::windows_core::imp::com_interface!(IRemoteAutomationClientSessionFactory, IRemoteAutomationClientSessionFactory_Vtbl, 0xf250263d_6057_5373_a5a5_ed7265fe0376); #[repr(C)] #[doc(hidden)] pub struct IRemoteAutomationClientSessionFactory_Vtbl { @@ -193,16 +114,7 @@ pub struct IRemoteAutomationClientSessionFactory_Vtbl { pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateInstance2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows_core::HSTRING>, sessionid: ::windows_core::GUID, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteAutomationConnectionRequestedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteAutomationConnectionRequestedEventArgs { - type Vtable = IRemoteAutomationConnectionRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteAutomationConnectionRequestedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xea3319a8_e3a8_5dc6_adf8_044e46b14af5); -} +::windows_core::imp::com_interface!(IRemoteAutomationConnectionRequestedEventArgs, IRemoteAutomationConnectionRequestedEventArgs_Vtbl, 0xea3319a8_e3a8_5dc6_adf8_044e46b14af5); #[repr(C)] #[doc(hidden)] pub struct IRemoteAutomationConnectionRequestedEventArgs_Vtbl { @@ -210,48 +122,21 @@ pub struct IRemoteAutomationConnectionRequestedEventArgs_Vtbl { pub LocalPipeName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub RemoteProcessId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteAutomationDisconnectedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteAutomationDisconnectedEventArgs { - type Vtable = IRemoteAutomationDisconnectedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteAutomationDisconnectedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbbb33a3d_5d90_5c38_9eb2_dd9dcc1b2e3f); -} +::windows_core::imp::com_interface!(IRemoteAutomationDisconnectedEventArgs, IRemoteAutomationDisconnectedEventArgs_Vtbl, 0xbbb33a3d_5d90_5c38_9eb2_dd9dcc1b2e3f); #[repr(C)] #[doc(hidden)] pub struct IRemoteAutomationDisconnectedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub LocalPipeName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteAutomationServerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteAutomationServerStatics { - type Vtable = IRemoteAutomationServerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteAutomationServerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe6e8945e_0c11_5028_9ae3_c2771288b6b7); -} +::windows_core::imp::com_interface!(IRemoteAutomationServerStatics, IRemoteAutomationServerStatics_Vtbl, 0xe6e8945e_0c11_5028_9ae3_c2771288b6b7); #[repr(C)] #[doc(hidden)] pub struct IRemoteAutomationServerStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ReportSession: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sessionid: ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteAutomationWindow(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteAutomationWindow { - type Vtable = IRemoteAutomationWindow_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteAutomationWindow { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7c607689_496d_512a_9bd5_c050cfaf1428); -} +::windows_core::imp::com_interface!(IRemoteAutomationWindow, IRemoteAutomationWindow_Vtbl, 0x7c607689_496d_512a_9bd5_c050cfaf1428); #[repr(C)] #[doc(hidden)] pub struct IRemoteAutomationWindow_Vtbl { @@ -262,6 +147,7 @@ pub struct IRemoteAutomationWindow_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AutomationRemoteOperationResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AutomationRemoteOperationResult, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AutomationRemoteOperationResult { pub fn Status(&self) -> ::windows_core::Result { let this = self; @@ -304,14 +190,11 @@ impl ::windows_core::RuntimeType for AutomationRemoteOperationResult { } unsafe impl ::windows_core::Interface for AutomationRemoteOperationResult { type Vtable = IAutomationRemoteOperationResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AutomationRemoteOperationResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AutomationRemoteOperationResult { const NAME: &'static str = "Windows.UI.UIAutomation.Core.AutomationRemoteOperationResult"; } -::windows_core::imp::interface_hierarchy!(AutomationRemoteOperationResult, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AutomationRemoteOperationResult {} unsafe impl ::core::marker::Sync for AutomationRemoteOperationResult {} pub struct CoreAutomationRegistrar; @@ -337,6 +220,7 @@ impl ::windows_core::RuntimeName for CoreAutomationRegistrar { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CoreAutomationRemoteOperation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CoreAutomationRemoteOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CoreAutomationRemoteOperation { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -381,7 +265,7 @@ impl CoreAutomationRemoteOperation { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } } @@ -390,19 +274,17 @@ impl ::windows_core::RuntimeType for CoreAutomationRemoteOperation { } unsafe impl ::windows_core::Interface for CoreAutomationRemoteOperation { type Vtable = ICoreAutomationRemoteOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CoreAutomationRemoteOperation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CoreAutomationRemoteOperation { const NAME: &'static str = "Windows.UI.UIAutomation.Core.CoreAutomationRemoteOperation"; } -::windows_core::imp::interface_hierarchy!(CoreAutomationRemoteOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CoreAutomationRemoteOperation {} unsafe impl ::core::marker::Sync for CoreAutomationRemoteOperation {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CoreAutomationRemoteOperationContext(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CoreAutomationRemoteOperationContext, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CoreAutomationRemoteOperationContext { pub fn GetOperand(&self, id: AutomationRemoteOperationOperandId) -> ::windows_core::Result<::windows_core::IInspectable> { let this = self; @@ -431,19 +313,17 @@ impl ::windows_core::RuntimeType for CoreAutomationRemoteOperationContext { } unsafe impl ::windows_core::Interface for CoreAutomationRemoteOperationContext { type Vtable = ICoreAutomationRemoteOperationContext_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CoreAutomationRemoteOperationContext { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CoreAutomationRemoteOperationContext { const NAME: &'static str = "Windows.UI.UIAutomation.Core.CoreAutomationRemoteOperationContext"; } -::windows_core::imp::interface_hierarchy!(CoreAutomationRemoteOperationContext, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CoreAutomationRemoteOperationContext {} unsafe impl ::core::marker::Sync for CoreAutomationRemoteOperationContext {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RemoteAutomationClientSession(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RemoteAutomationClientSession, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RemoteAutomationClientSession { pub fn Start(&self) -> ::windows_core::Result<()> { let this = self; @@ -521,19 +401,17 @@ impl ::windows_core::RuntimeType for RemoteAutomationClientSession { } unsafe impl ::windows_core::Interface for RemoteAutomationClientSession { type Vtable = IRemoteAutomationClientSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RemoteAutomationClientSession { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RemoteAutomationClientSession { const NAME: &'static str = "Windows.UI.UIAutomation.Core.RemoteAutomationClientSession"; } -::windows_core::imp::interface_hierarchy!(RemoteAutomationClientSession, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RemoteAutomationClientSession {} unsafe impl ::core::marker::Sync for RemoteAutomationClientSession {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RemoteAutomationConnectionRequestedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RemoteAutomationConnectionRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RemoteAutomationConnectionRequestedEventArgs { pub fn LocalPipeName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -555,19 +433,17 @@ impl ::windows_core::RuntimeType for RemoteAutomationConnectionRequestedEventArg } unsafe impl ::windows_core::Interface for RemoteAutomationConnectionRequestedEventArgs { type Vtable = IRemoteAutomationConnectionRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RemoteAutomationConnectionRequestedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RemoteAutomationConnectionRequestedEventArgs { const NAME: &'static str = "Windows.UI.UIAutomation.Core.RemoteAutomationConnectionRequestedEventArgs"; } -::windows_core::imp::interface_hierarchy!(RemoteAutomationConnectionRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RemoteAutomationConnectionRequestedEventArgs {} unsafe impl ::core::marker::Sync for RemoteAutomationConnectionRequestedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RemoteAutomationDisconnectedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RemoteAutomationDisconnectedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RemoteAutomationDisconnectedEventArgs { pub fn LocalPipeName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -582,14 +458,11 @@ impl ::windows_core::RuntimeType for RemoteAutomationDisconnectedEventArgs { } unsafe impl ::windows_core::Interface for RemoteAutomationDisconnectedEventArgs { type Vtable = IRemoteAutomationDisconnectedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RemoteAutomationDisconnectedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RemoteAutomationDisconnectedEventArgs { const NAME: &'static str = "Windows.UI.UIAutomation.Core.RemoteAutomationDisconnectedEventArgs"; } -::windows_core::imp::interface_hierarchy!(RemoteAutomationDisconnectedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RemoteAutomationDisconnectedEventArgs {} unsafe impl ::core::marker::Sync for RemoteAutomationDisconnectedEventArgs {} pub struct RemoteAutomationServer; @@ -609,6 +482,7 @@ impl ::windows_core::RuntimeName for RemoteAutomationServer { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct RemoteAutomationWindow(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(RemoteAutomationWindow, ::windows_core::IUnknown, ::windows_core::IInspectable); impl RemoteAutomationWindow { pub fn AutomationProvider(&self) -> ::windows_core::Result<::windows_core::IInspectable> { let this = self; @@ -630,14 +504,11 @@ impl ::windows_core::RuntimeType for RemoteAutomationWindow { } unsafe impl ::windows_core::Interface for RemoteAutomationWindow { type Vtable = IRemoteAutomationWindow_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RemoteAutomationWindow { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for RemoteAutomationWindow { const NAME: &'static str = "Windows.UI.UIAutomation.Core.RemoteAutomationWindow"; } -::windows_core::imp::interface_hierarchy!(RemoteAutomationWindow, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for RemoteAutomationWindow {} unsafe impl ::core::marker::Sync for RemoteAutomationWindow {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/UI/UIAutomation/mod.rs b/crates/libs/windows/src/Windows/UI/UIAutomation/mod.rs index 6abe215dfb..12d836c409 100644 --- a/crates/libs/windows/src/Windows/UI/UIAutomation/mod.rs +++ b/crates/libs/windows/src/Windows/UI/UIAutomation/mod.rs @@ -1,16 +1,7 @@ #[cfg(feature = "UI_UIAutomation_Core")] #[doc = "Required features: `\"UI_UIAutomation_Core\"`"] pub mod Core; -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAutomationConnection(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAutomationConnection { - type Vtable = IAutomationConnection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAutomationConnection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaad262ed_0ef4_5d43_97be_a834e27b65b9); -} +::windows_core::imp::com_interface!(IAutomationConnection, IAutomationConnection_Vtbl, 0xaad262ed_0ef4_5d43_97be_a834e27b65b9); #[repr(C)] #[doc(hidden)] pub struct IAutomationConnection_Vtbl { @@ -19,32 +10,14 @@ pub struct IAutomationConnection_Vtbl { pub AppUserModelId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub ExecutableFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAutomationConnectionBoundObject(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAutomationConnectionBoundObject { - type Vtable = IAutomationConnectionBoundObject_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAutomationConnectionBoundObject { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5e8558fb_ca52_5b65_9830_dd2905816093); -} +::windows_core::imp::com_interface!(IAutomationConnectionBoundObject, IAutomationConnectionBoundObject_Vtbl, 0x5e8558fb_ca52_5b65_9830_dd2905816093); #[repr(C)] #[doc(hidden)] pub struct IAutomationConnectionBoundObject_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Connection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAutomationElement(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAutomationElement { - type Vtable = IAutomationElement_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAutomationElement { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa1898370_2c07_56fd_993f_61a72a08058c); -} +::windows_core::imp::com_interface!(IAutomationElement, IAutomationElement_Vtbl, 0xa1898370_2c07_56fd_993f_61a72a08058c); #[repr(C)] #[doc(hidden)] pub struct IAutomationElement_Vtbl { @@ -53,16 +26,7 @@ pub struct IAutomationElement_Vtbl { pub AppUserModelId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub ExecutableFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAutomationTextRange(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAutomationTextRange { - type Vtable = IAutomationTextRange_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAutomationTextRange { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7e101b65_40d3_5994_85a9_0a0cb9a4ec98); -} +::windows_core::imp::com_interface!(IAutomationTextRange, IAutomationTextRange_Vtbl, 0x7e101b65_40d3_5994_85a9_0a0cb9a4ec98); #[repr(C)] #[doc(hidden)] pub struct IAutomationTextRange_Vtbl { @@ -71,6 +35,7 @@ pub struct IAutomationTextRange_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AutomationConnection(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AutomationConnection, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AutomationConnection { pub fn IsRemoteSystem(&self) -> ::windows_core::Result { let this = self; @@ -99,19 +64,17 @@ impl ::windows_core::RuntimeType for AutomationConnection { } unsafe impl ::windows_core::Interface for AutomationConnection { type Vtable = IAutomationConnection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AutomationConnection { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AutomationConnection { const NAME: &'static str = "Windows.UI.UIAutomation.AutomationConnection"; } -::windows_core::imp::interface_hierarchy!(AutomationConnection, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AutomationConnection {} unsafe impl ::core::marker::Sync for AutomationConnection {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AutomationConnectionBoundObject(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AutomationConnectionBoundObject, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AutomationConnectionBoundObject { pub fn Connection(&self) -> ::windows_core::Result { let this = self; @@ -126,19 +89,17 @@ impl ::windows_core::RuntimeType for AutomationConnectionBoundObject { } unsafe impl ::windows_core::Interface for AutomationConnectionBoundObject { type Vtable = IAutomationConnectionBoundObject_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AutomationConnectionBoundObject { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AutomationConnectionBoundObject { const NAME: &'static str = "Windows.UI.UIAutomation.AutomationConnectionBoundObject"; } -::windows_core::imp::interface_hierarchy!(AutomationConnectionBoundObject, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AutomationConnectionBoundObject {} unsafe impl ::core::marker::Sync for AutomationConnectionBoundObject {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AutomationElement(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AutomationElement, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AutomationElement { pub fn IsRemoteSystem(&self) -> ::windows_core::Result { let this = self; @@ -167,32 +128,27 @@ impl ::windows_core::RuntimeType for AutomationElement { } unsafe impl ::windows_core::Interface for AutomationElement { type Vtable = IAutomationElement_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AutomationElement { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AutomationElement { const NAME: &'static str = "Windows.UI.UIAutomation.AutomationElement"; } -::windows_core::imp::interface_hierarchy!(AutomationElement, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AutomationElement {} unsafe impl ::core::marker::Sync for AutomationElement {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AutomationTextRange(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AutomationTextRange, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AutomationTextRange {} impl ::windows_core::RuntimeType for AutomationTextRange { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_class::(); } unsafe impl ::windows_core::Interface for AutomationTextRange { type Vtable = IAutomationTextRange_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AutomationTextRange { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AutomationTextRange { const NAME: &'static str = "Windows.UI.UIAutomation.AutomationTextRange"; } -::windows_core::imp::interface_hierarchy!(AutomationTextRange, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AutomationTextRange {} unsafe impl ::core::marker::Sync for AutomationTextRange {} 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 48f20fe1ca..46913dcac6 100644 --- a/crates/libs/windows/src/Windows/UI/ViewManagement/Core/mod.rs +++ b/crates/libs/windows/src/Windows/UI/ViewManagement/Core/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreFrameworkInputView(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreFrameworkInputView { - type Vtable = ICoreFrameworkInputView_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreFrameworkInputView { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd77c94ae_46b8_5d4a_9489_8ddec3d639a6); -} +::windows_core::imp::com_interface!(ICoreFrameworkInputView, ICoreFrameworkInputView_Vtbl, 0xd77c94ae_46b8_5d4a_9489_8ddec3d639a6); #[repr(C)] #[doc(hidden)] pub struct ICoreFrameworkInputView_Vtbl { @@ -17,16 +8,7 @@ pub struct ICoreFrameworkInputView_Vtbl { pub OcclusionsChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveOcclusionsChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreFrameworkInputViewAnimationStartingEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreFrameworkInputViewAnimationStartingEventArgs { - type Vtable = ICoreFrameworkInputViewAnimationStartingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreFrameworkInputViewAnimationStartingEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc0ec901c_bba4_501b_ae8b_65c9e756a719); -} +::windows_core::imp::com_interface!(ICoreFrameworkInputViewAnimationStartingEventArgs, ICoreFrameworkInputViewAnimationStartingEventArgs_Vtbl, 0xc0ec901c_bba4_501b_ae8b_65c9e756a719); #[repr(C)] #[doc(hidden)] pub struct ICoreFrameworkInputViewAnimationStartingEventArgs_Vtbl { @@ -38,16 +20,7 @@ pub struct ICoreFrameworkInputViewAnimationStartingEventArgs_Vtbl { pub FrameworkAnimationRecommended: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub AnimationDuration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::TimeSpan) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreFrameworkInputViewOcclusionsChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreFrameworkInputViewOcclusionsChangedEventArgs { - type Vtable = ICoreFrameworkInputViewOcclusionsChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreFrameworkInputViewOcclusionsChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf36f4949_c82c_53d1_a75d_2b2baf0d9b0d); -} +::windows_core::imp::com_interface!(ICoreFrameworkInputViewOcclusionsChangedEventArgs, ICoreFrameworkInputViewOcclusionsChangedEventArgs_Vtbl, 0xf36f4949_c82c_53d1_a75d_2b2baf0d9b0d); #[repr(C)] #[doc(hidden)] pub struct ICoreFrameworkInputViewOcclusionsChangedEventArgs_Vtbl { @@ -58,16 +31,7 @@ pub struct ICoreFrameworkInputViewOcclusionsChangedEventArgs_Vtbl { Occlusions: usize, pub Handled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreFrameworkInputViewStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreFrameworkInputViewStatics { - type Vtable = ICoreFrameworkInputViewStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreFrameworkInputViewStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6eebd9b6_eac2_5f8b_975f_772ee3e42eeb); -} +::windows_core::imp::com_interface!(ICoreFrameworkInputViewStatics, ICoreFrameworkInputViewStatics_Vtbl, 0x6eebd9b6_eac2_5f8b_975f_772ee3e42eeb); #[repr(C)] #[doc(hidden)] pub struct ICoreFrameworkInputViewStatics_Vtbl { @@ -75,16 +39,7 @@ pub struct ICoreFrameworkInputViewStatics_Vtbl { pub GetForUIContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetForCurrentView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreInputView(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreInputView { - type Vtable = ICoreInputView_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreInputView { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc770cd7a_7001_4c32_bf94_25c1f554cbf1); -} +::windows_core::imp::com_interface!(ICoreInputView, ICoreInputView_Vtbl, 0xc770cd7a_7001_4c32_bf94_25c1f554cbf1); #[repr(C)] #[doc(hidden)] pub struct ICoreInputView_Vtbl { @@ -98,16 +53,7 @@ pub struct ICoreInputView_Vtbl { pub TryShowPrimaryView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub TryHidePrimaryView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreInputView2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreInputView2 { - type Vtable = ICoreInputView2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreInputView2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0ed726c1_e09a_4ae8_aedf_dfa4857d1a01); -} +::windows_core::imp::com_interface!(ICoreInputView2, ICoreInputView2_Vtbl, 0x0ed726c1_e09a_4ae8_aedf_dfa4857d1a01); #[repr(C)] #[doc(hidden)] pub struct ICoreInputView2_Vtbl { @@ -118,16 +64,7 @@ pub struct ICoreInputView2_Vtbl { pub RemoveXYFocusTransferredToPrimaryView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub TryTransferXYFocusToPrimaryView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, origin: super::super::super::Foundation::Rect, direction: CoreInputViewXYFocusTransferDirection, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreInputView3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreInputView3 { - type Vtable = ICoreInputView3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreInputView3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbc941653_3ab9_4849_8f58_46e7f0353cfc); -} +::windows_core::imp::com_interface!(ICoreInputView3, ICoreInputView3_Vtbl, 0xbc941653_3ab9_4849_8f58_46e7f0353cfc); #[repr(C)] #[doc(hidden)] pub struct ICoreInputView3_Vtbl { @@ -136,16 +73,7 @@ pub struct ICoreInputView3_Vtbl { pub TryShowWithKind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: CoreInputViewKind, result__: *mut bool) -> ::windows_core::HRESULT, pub TryHide: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreInputView4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreInputView4 { - type Vtable = ICoreInputView4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreInputView4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x002863d6_d9ef_57eb_8cef_77f6ce1b7ee7); -} +::windows_core::imp::com_interface!(ICoreInputView4, ICoreInputView4_Vtbl, 0x002863d6_d9ef_57eb_8cef_77f6ce1b7ee7); #[repr(C)] #[doc(hidden)] pub struct ICoreInputView4_Vtbl { @@ -155,16 +83,7 @@ pub struct ICoreInputView4_Vtbl { pub PrimaryViewHiding: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemovePrimaryViewHiding: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreInputView5(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreInputView5 { - type Vtable = ICoreInputView5_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreInputView5 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x136316e0_c6d5_5c57_811e_1ad8a99ba6ab); -} +::windows_core::imp::com_interface!(ICoreInputView5, ICoreInputView5_Vtbl, 0x136316e0_c6d5_5c57_811e_1ad8a99ba6ab); #[repr(C)] #[doc(hidden)] pub struct ICoreInputView5_Vtbl { @@ -175,16 +94,7 @@ pub struct ICoreInputView5_Vtbl { pub PrimaryViewAnimationStarting: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemovePrimaryViewAnimationStarting: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreInputViewAnimationStartingEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreInputViewAnimationStartingEventArgs { - type Vtable = ICoreInputViewAnimationStartingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreInputViewAnimationStartingEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa9144af2_b55c_5ea1_b8ab_5340f3e94897); -} +::windows_core::imp::com_interface!(ICoreInputViewAnimationStartingEventArgs, ICoreInputViewAnimationStartingEventArgs_Vtbl, 0xa9144af2_b55c_5ea1_b8ab_5340f3e94897); #[repr(C)] #[doc(hidden)] pub struct ICoreInputViewAnimationStartingEventArgs_Vtbl { @@ -197,32 +107,14 @@ pub struct ICoreInputViewAnimationStartingEventArgs_Vtbl { pub SetHandled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, pub AnimationDuration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::TimeSpan) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreInputViewHidingEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreInputViewHidingEventArgs { - type Vtable = ICoreInputViewHidingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreInputViewHidingEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeada47bd_bac5_5336_848d_41083584daad); -} +::windows_core::imp::com_interface!(ICoreInputViewHidingEventArgs, ICoreInputViewHidingEventArgs_Vtbl, 0xeada47bd_bac5_5336_848d_41083584daad); #[repr(C)] #[doc(hidden)] pub struct ICoreInputViewHidingEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub TryCancel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreInputViewOcclusion(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreInputViewOcclusion { - type Vtable = ICoreInputViewOcclusion_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreInputViewOcclusion { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcc36ce06_3865_4177_b5f5_8b65e0b9ce84); -} +::windows_core::imp::com_interface!(ICoreInputViewOcclusion, ICoreInputViewOcclusion_Vtbl, 0xcc36ce06_3865_4177_b5f5_8b65e0b9ce84); #[repr(C)] #[doc(hidden)] pub struct ICoreInputViewOcclusion_Vtbl { @@ -230,16 +122,7 @@ pub struct ICoreInputViewOcclusion_Vtbl { pub OccludingRect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::Rect) -> ::windows_core::HRESULT, pub OcclusionKind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut CoreInputViewOcclusionKind) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreInputViewOcclusionsChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreInputViewOcclusionsChangedEventArgs { - type Vtable = ICoreInputViewOcclusionsChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreInputViewOcclusionsChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbe1027e8_b3ee_4df7_9554_89cdc66082c2); -} +::windows_core::imp::com_interface!(ICoreInputViewOcclusionsChangedEventArgs, ICoreInputViewOcclusionsChangedEventArgs_Vtbl, 0xbe1027e8_b3ee_4df7_9554_89cdc66082c2); #[repr(C)] #[doc(hidden)] pub struct ICoreInputViewOcclusionsChangedEventArgs_Vtbl { @@ -251,64 +134,28 @@ pub struct ICoreInputViewOcclusionsChangedEventArgs_Vtbl { pub Handled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetHandled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreInputViewShowingEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreInputViewShowingEventArgs { - type Vtable = ICoreInputViewShowingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreInputViewShowingEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xca52261b_fb9e_5daf_a98c_262b8b76af50); -} +::windows_core::imp::com_interface!(ICoreInputViewShowingEventArgs, ICoreInputViewShowingEventArgs_Vtbl, 0xca52261b_fb9e_5daf_a98c_262b8b76af50); #[repr(C)] #[doc(hidden)] pub struct ICoreInputViewShowingEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub TryCancel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreInputViewStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreInputViewStatics { - type Vtable = ICoreInputViewStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreInputViewStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7d9b97cd_edbe_49cf_a54f_337de052907f); -} +::windows_core::imp::com_interface!(ICoreInputViewStatics, ICoreInputViewStatics_Vtbl, 0x7d9b97cd_edbe_49cf_a54f_337de052907f); #[repr(C)] #[doc(hidden)] pub struct ICoreInputViewStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetForCurrentView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreInputViewStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreInputViewStatics2 { - type Vtable = ICoreInputViewStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreInputViewStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7ebc0862_d049_4e52_87b0_1e90e98c49ed); -} +::windows_core::imp::com_interface!(ICoreInputViewStatics2, ICoreInputViewStatics2_Vtbl, 0x7ebc0862_d049_4e52_87b0_1e90e98c49ed); #[repr(C)] #[doc(hidden)] pub struct ICoreInputViewStatics2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetForUIContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreInputViewTransferringXYFocusEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreInputViewTransferringXYFocusEventArgs { - type Vtable = ICoreInputViewTransferringXYFocusEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreInputViewTransferringXYFocusEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x04de169f_ba02_4850_8b55_d82d03ba6d7f); -} +::windows_core::imp::com_interface!(ICoreInputViewTransferringXYFocusEventArgs, ICoreInputViewTransferringXYFocusEventArgs_Vtbl, 0x04de169f_ba02_4850_8b55_d82d03ba6d7f); #[repr(C)] #[doc(hidden)] pub struct ICoreInputViewTransferringXYFocusEventArgs_Vtbl { @@ -320,16 +167,7 @@ pub struct ICoreInputViewTransferringXYFocusEventArgs_Vtbl { pub SetKeepPrimaryViewVisible: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, pub KeepPrimaryViewVisible: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUISettingsController(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUISettingsController { - type Vtable = IUISettingsController_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUISettingsController { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x78a51ac4_15c0_5a1b_a75b_acbf9cb8bb9e); -} +::windows_core::imp::com_interface!(IUISettingsController, IUISettingsController_Vtbl, 0x78a51ac4_15c0_5a1b_a75b_acbf9cb8bb9e); #[repr(C)] #[doc(hidden)] pub struct IUISettingsController_Vtbl { @@ -340,16 +178,7 @@ pub struct IUISettingsController_Vtbl { pub SetMessageDuration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: u32) -> ::windows_core::HRESULT, pub SetTextScaleFactor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f64) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUISettingsControllerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUISettingsControllerStatics { - type Vtable = IUISettingsControllerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUISettingsControllerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeb3c68cc_c220_578c_8119_7db324ed26a6); -} +::windows_core::imp::com_interface!(IUISettingsControllerStatics, IUISettingsControllerStatics_Vtbl, 0xeb3c68cc_c220_578c_8119_7db324ed26a6); #[repr(C)] #[doc(hidden)] pub struct IUISettingsControllerStatics_Vtbl { @@ -359,6 +188,7 @@ pub struct IUISettingsControllerStatics_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CoreFrameworkInputView(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CoreFrameworkInputView, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CoreFrameworkInputView { pub fn PrimaryViewAnimationStarting(&self, handler: P0) -> ::windows_core::Result where @@ -414,19 +244,17 @@ impl ::windows_core::RuntimeType for CoreFrameworkInputView { } unsafe impl ::windows_core::Interface for CoreFrameworkInputView { type Vtable = ICoreFrameworkInputView_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CoreFrameworkInputView { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CoreFrameworkInputView { const NAME: &'static str = "Windows.UI.ViewManagement.Core.CoreFrameworkInputView"; } -::windows_core::imp::interface_hierarchy!(CoreFrameworkInputView, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CoreFrameworkInputView {} unsafe impl ::core::marker::Sync for CoreFrameworkInputView {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CoreFrameworkInputViewAnimationStartingEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CoreFrameworkInputViewAnimationStartingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CoreFrameworkInputViewAnimationStartingEventArgs { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -457,19 +285,17 @@ impl ::windows_core::RuntimeType for CoreFrameworkInputViewAnimationStartingEven } unsafe impl ::windows_core::Interface for CoreFrameworkInputViewAnimationStartingEventArgs { type Vtable = ICoreFrameworkInputViewAnimationStartingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CoreFrameworkInputViewAnimationStartingEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CoreFrameworkInputViewAnimationStartingEventArgs { const NAME: &'static str = "Windows.UI.ViewManagement.Core.CoreFrameworkInputViewAnimationStartingEventArgs"; } -::windows_core::imp::interface_hierarchy!(CoreFrameworkInputViewAnimationStartingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CoreFrameworkInputViewAnimationStartingEventArgs {} unsafe impl ::core::marker::Sync for CoreFrameworkInputViewAnimationStartingEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CoreFrameworkInputViewOcclusionsChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CoreFrameworkInputViewOcclusionsChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CoreFrameworkInputViewOcclusionsChangedEventArgs { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -493,19 +319,17 @@ impl ::windows_core::RuntimeType for CoreFrameworkInputViewOcclusionsChangedEven } unsafe impl ::windows_core::Interface for CoreFrameworkInputViewOcclusionsChangedEventArgs { type Vtable = ICoreFrameworkInputViewOcclusionsChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CoreFrameworkInputViewOcclusionsChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CoreFrameworkInputViewOcclusionsChangedEventArgs { const NAME: &'static str = "Windows.UI.ViewManagement.Core.CoreFrameworkInputViewOcclusionsChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(CoreFrameworkInputViewOcclusionsChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CoreFrameworkInputViewOcclusionsChangedEventArgs {} unsafe impl ::core::marker::Sync for CoreFrameworkInputViewOcclusionsChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CoreInputView(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CoreInputView, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CoreInputView { pub fn OcclusionsChanged(&self, handler: P0) -> ::windows_core::Result where @@ -548,53 +372,53 @@ impl CoreInputView { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveXYFocusTransferringFromPrimaryView(&self, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveXYFocusTransferringFromPrimaryView)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn XYFocusTransferredToPrimaryView(&self, handler: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveXYFocusTransferredToPrimaryView(&self, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveXYFocusTransferredToPrimaryView)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn TryTransferXYFocusToPrimaryView(&self, origin: super::super::super::Foundation::Rect, direction: CoreInputViewXYFocusTransferDirection) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryTransferXYFocusToPrimaryView)(::windows_core::Interface::as_raw(this), origin, direction, &mut result__).from_abi(result__) } } pub fn TryShow(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryShow)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryShowWithKind(&self, r#type: CoreInputViewKind) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryShowWithKind)(::windows_core::Interface::as_raw(this), r#type, &mut result__).from_abi(result__) } } pub fn TryHide(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryHide)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -604,32 +428,32 @@ impl CoreInputView { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemovePrimaryViewShowing(&self, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemovePrimaryViewShowing)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn PrimaryViewHiding(&self, handler: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemovePrimaryViewHiding(&self, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemovePrimaryViewHiding)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn IsKindSupported(&self, r#type: CoreInputViewKind) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsKindSupported)(::windows_core::Interface::as_raw(this), r#type, &mut result__).from_abi(result__) @@ -639,28 +463,28 @@ impl CoreInputView { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveSupportedKindsChanged(&self, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveSupportedKindsChanged)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn PrimaryViewAnimationStarting(&self, handler: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemovePrimaryViewAnimationStarting(&self, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemovePrimaryViewAnimationStarting)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn GetForCurrentView() -> ::windows_core::Result { @@ -694,19 +518,17 @@ impl ::windows_core::RuntimeType for CoreInputView { } unsafe impl ::windows_core::Interface for CoreInputView { type Vtable = ICoreInputView_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CoreInputView { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CoreInputView { const NAME: &'static str = "Windows.UI.ViewManagement.Core.CoreInputView"; } -::windows_core::imp::interface_hierarchy!(CoreInputView, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CoreInputView {} unsafe impl ::core::marker::Sync for CoreInputView {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CoreInputViewAnimationStartingEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CoreInputViewAnimationStartingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CoreInputViewAnimationStartingEventArgs { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -741,19 +563,17 @@ impl ::windows_core::RuntimeType for CoreInputViewAnimationStartingEventArgs { } unsafe impl ::windows_core::Interface for CoreInputViewAnimationStartingEventArgs { type Vtable = ICoreInputViewAnimationStartingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CoreInputViewAnimationStartingEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CoreInputViewAnimationStartingEventArgs { const NAME: &'static str = "Windows.UI.ViewManagement.Core.CoreInputViewAnimationStartingEventArgs"; } -::windows_core::imp::interface_hierarchy!(CoreInputViewAnimationStartingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CoreInputViewAnimationStartingEventArgs {} unsafe impl ::core::marker::Sync for CoreInputViewAnimationStartingEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CoreInputViewHidingEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CoreInputViewHidingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CoreInputViewHidingEventArgs { pub fn TryCancel(&self) -> ::windows_core::Result { let this = self; @@ -768,19 +588,17 @@ impl ::windows_core::RuntimeType for CoreInputViewHidingEventArgs { } unsafe impl ::windows_core::Interface for CoreInputViewHidingEventArgs { type Vtable = ICoreInputViewHidingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CoreInputViewHidingEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CoreInputViewHidingEventArgs { const NAME: &'static str = "Windows.UI.ViewManagement.Core.CoreInputViewHidingEventArgs"; } -::windows_core::imp::interface_hierarchy!(CoreInputViewHidingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CoreInputViewHidingEventArgs {} unsafe impl ::core::marker::Sync for CoreInputViewHidingEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CoreInputViewOcclusion(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CoreInputViewOcclusion, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CoreInputViewOcclusion { pub fn OccludingRect(&self) -> ::windows_core::Result { let this = self; @@ -802,19 +620,17 @@ impl ::windows_core::RuntimeType for CoreInputViewOcclusion { } unsafe impl ::windows_core::Interface for CoreInputViewOcclusion { type Vtable = ICoreInputViewOcclusion_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CoreInputViewOcclusion { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CoreInputViewOcclusion { const NAME: &'static str = "Windows.UI.ViewManagement.Core.CoreInputViewOcclusion"; } -::windows_core::imp::interface_hierarchy!(CoreInputViewOcclusion, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CoreInputViewOcclusion {} unsafe impl ::core::marker::Sync for CoreInputViewOcclusion {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CoreInputViewOcclusionsChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CoreInputViewOcclusionsChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CoreInputViewOcclusionsChangedEventArgs { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -842,19 +658,17 @@ impl ::windows_core::RuntimeType for CoreInputViewOcclusionsChangedEventArgs { } unsafe impl ::windows_core::Interface for CoreInputViewOcclusionsChangedEventArgs { type Vtable = ICoreInputViewOcclusionsChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CoreInputViewOcclusionsChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CoreInputViewOcclusionsChangedEventArgs { const NAME: &'static str = "Windows.UI.ViewManagement.Core.CoreInputViewOcclusionsChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(CoreInputViewOcclusionsChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CoreInputViewOcclusionsChangedEventArgs {} unsafe impl ::core::marker::Sync for CoreInputViewOcclusionsChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CoreInputViewShowingEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CoreInputViewShowingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CoreInputViewShowingEventArgs { pub fn TryCancel(&self) -> ::windows_core::Result { let this = self; @@ -869,19 +683,17 @@ impl ::windows_core::RuntimeType for CoreInputViewShowingEventArgs { } unsafe impl ::windows_core::Interface for CoreInputViewShowingEventArgs { type Vtable = ICoreInputViewShowingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CoreInputViewShowingEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CoreInputViewShowingEventArgs { const NAME: &'static str = "Windows.UI.ViewManagement.Core.CoreInputViewShowingEventArgs"; } -::windows_core::imp::interface_hierarchy!(CoreInputViewShowingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CoreInputViewShowingEventArgs {} unsafe impl ::core::marker::Sync for CoreInputViewShowingEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CoreInputViewTransferringXYFocusEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CoreInputViewTransferringXYFocusEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl CoreInputViewTransferringXYFocusEventArgs { pub fn Origin(&self) -> ::windows_core::Result { let this = self; @@ -925,19 +737,17 @@ impl ::windows_core::RuntimeType for CoreInputViewTransferringXYFocusEventArgs { } unsafe impl ::windows_core::Interface for CoreInputViewTransferringXYFocusEventArgs { type Vtable = ICoreInputViewTransferringXYFocusEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CoreInputViewTransferringXYFocusEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CoreInputViewTransferringXYFocusEventArgs { const NAME: &'static str = "Windows.UI.ViewManagement.Core.CoreInputViewTransferringXYFocusEventArgs"; } -::windows_core::imp::interface_hierarchy!(CoreInputViewTransferringXYFocusEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for CoreInputViewTransferringXYFocusEventArgs {} unsafe impl ::core::marker::Sync for CoreInputViewTransferringXYFocusEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UISettingsController(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UISettingsController, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UISettingsController { pub fn SetAdvancedEffectsEnabled(&self, value: bool) -> ::windows_core::Result<()> { let this = self; @@ -976,14 +786,11 @@ impl ::windows_core::RuntimeType for UISettingsController { } unsafe impl ::windows_core::Interface for UISettingsController { type Vtable = IUISettingsController_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UISettingsController { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UISettingsController { const NAME: &'static str = "Windows.UI.ViewManagement.Core.UISettingsController"; } -::windows_core::imp::interface_hierarchy!(UISettingsController, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UISettingsController {} unsafe impl ::core::marker::Sync for UISettingsController {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/UI/ViewManagement/mod.rs b/crates/libs/windows/src/Windows/UI/ViewManagement/mod.rs index 445a873fa6..9d42ebf383 100644 --- a/crates/libs/windows/src/Windows/UI/ViewManagement/mod.rs +++ b/crates/libs/windows/src/Windows/UI/ViewManagement/mod.rs @@ -1,16 +1,7 @@ #[cfg(feature = "UI_ViewManagement_Core")] #[doc = "Required features: `\"UI_ViewManagement_Core\"`"] pub mod Core; -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAccessibilitySettings(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAccessibilitySettings { - type Vtable = IAccessibilitySettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAccessibilitySettings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfe0e8147_c4c0_4562_b962_1327b52ad5b9); -} +::windows_core::imp::com_interface!(IAccessibilitySettings, IAccessibilitySettings_Vtbl, 0xfe0e8147_c4c0_4562_b962_1327b52ad5b9); #[repr(C)] #[doc(hidden)] pub struct IAccessibilitySettings_Vtbl { @@ -20,16 +11,7 @@ pub struct IAccessibilitySettings_Vtbl { pub HighContrastChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveHighContrastChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActivationViewSwitcher(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IActivationViewSwitcher { - type Vtable = IActivationViewSwitcher_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActivationViewSwitcher { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdca71bb6_7350_492b_aac7_c8a13d7224ad); -} +::windows_core::imp::com_interface!(IActivationViewSwitcher, IActivationViewSwitcher_Vtbl, 0xdca71bb6_7350_492b_aac7_c8a13d7224ad); #[repr(C)] #[doc(hidden)] pub struct IActivationViewSwitcher_Vtbl { @@ -38,16 +20,7 @@ pub struct IActivationViewSwitcher_Vtbl { pub ShowAsStandaloneWithSizePreferenceAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, viewid: i32, sizepreference: ViewSizePreference, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub IsViewPresentedOnActivationVirtualDesktop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, viewid: i32, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IApplicationView(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IApplicationView { - type Vtable = IApplicationView_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IApplicationView { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd222d519_4361_451e_96c4_60f4f9742db0); -} +::windows_core::imp::com_interface!(IApplicationView, IApplicationView_Vtbl, 0xd222d519_4361_451e_96c4_60f4f9742db0); #[repr(C)] #[doc(hidden)] pub struct IApplicationView_Vtbl { @@ -68,16 +41,7 @@ pub struct IApplicationView_Vtbl { pub Consolidated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveConsolidated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IApplicationView2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IApplicationView2 { - type Vtable = IApplicationView2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IApplicationView2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe876b196_a545_40dc_b594_450cba68cc00); -} +::windows_core::imp::com_interface!(IApplicationView2, IApplicationView2_Vtbl, 0xe876b196_a545_40dc_b594_450cba68cc00); #[repr(C)] #[doc(hidden)] pub struct IApplicationView2_Vtbl { @@ -96,16 +60,7 @@ pub struct IApplicationView2_Vtbl { pub SetDesiredBoundsMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, boundsmode: ApplicationViewBoundsMode, result__: *mut bool) -> ::windows_core::HRESULT, pub DesiredBoundsMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ApplicationViewBoundsMode) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IApplicationView3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IApplicationView3 { - type Vtable = IApplicationView3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IApplicationView3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x903c9ce5_793a_4fdf_a2b2_af1ac21e3108); -} +::windows_core::imp::com_interface!(IApplicationView3, IApplicationView3_Vtbl, 0x903c9ce5_793a_4fdf_a2b2_af1ac21e3108); #[repr(C)] #[doc(hidden)] pub struct IApplicationView3_Vtbl { @@ -120,16 +75,7 @@ pub struct IApplicationView3_Vtbl { pub TryResizeView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::Foundation::Size, result__: *mut bool) -> ::windows_core::HRESULT, pub SetPreferredMinSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, minsize: super::super::Foundation::Size) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IApplicationView4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IApplicationView4 { - type Vtable = IApplicationView4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IApplicationView4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x15e5cbec_9e0f_46b5_bc3f_9bf653e74b5e); -} +::windows_core::imp::com_interface!(IApplicationView4, IApplicationView4_Vtbl, 0x15e5cbec_9e0f_46b5_bc3f_9bf653e74b5e); #[repr(C)] #[doc(hidden)] pub struct IApplicationView4_Vtbl { @@ -140,16 +86,7 @@ pub struct IApplicationView4_Vtbl { pub TryEnterViewModeWithPreferencesAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, viewmode: ApplicationViewMode, viewmodepreferences: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub TryConsolidateAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IApplicationView7(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IApplicationView7 { - type Vtable = IApplicationView7_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IApplicationView7 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa0369647_5faf_5aa6_9c38_befbb12a071e); -} +::windows_core::imp::com_interface!(IApplicationView7, IApplicationView7_Vtbl, 0xa0369647_5faf_5aa6_9c38_befbb12a071e); #[repr(C)] #[doc(hidden)] pub struct IApplicationView7_Vtbl { @@ -157,16 +94,7 @@ pub struct IApplicationView7_Vtbl { pub PersistedStateId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetPersistedStateId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IApplicationView9(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IApplicationView9 { - type Vtable = IApplicationView9_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IApplicationView9 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9c6516f9_021a_5f01_93e5_9bdad2647574); -} +::windows_core::imp::com_interface!(IApplicationView9, IApplicationView9_Vtbl, 0x9c6516f9_021a_5f01_93e5_9bdad2647574); #[repr(C)] #[doc(hidden)] pub struct IApplicationView9_Vtbl { @@ -180,51 +108,27 @@ pub struct IApplicationView9_Vtbl { #[cfg(not(all(feature = "Foundation_Collections", feature = "UI_WindowManagement")))] GetDisplayRegions: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IApplicationViewConsolidatedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IApplicationViewConsolidatedEventArgs { - type Vtable = IApplicationViewConsolidatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IApplicationViewConsolidatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x514449ec_7ea2_4de7_a6a6_7dfbaaebb6fb); -} +::windows_core::imp::com_interface!(IApplicationViewConsolidatedEventArgs, IApplicationViewConsolidatedEventArgs_Vtbl, 0x514449ec_7ea2_4de7_a6a6_7dfbaaebb6fb); #[repr(C)] #[doc(hidden)] pub struct IApplicationViewConsolidatedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub IsUserInitiated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IApplicationViewConsolidatedEventArgs2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IApplicationViewConsolidatedEventArgs2 { - type Vtable = IApplicationViewConsolidatedEventArgs2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IApplicationViewConsolidatedEventArgs2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1c199ecc_6dc1_40f4_afee_07d9ea296430); -} +::windows_core::imp::com_interface!(IApplicationViewConsolidatedEventArgs2, IApplicationViewConsolidatedEventArgs2_Vtbl, 0x1c199ecc_6dc1_40f4_afee_07d9ea296430); #[repr(C)] #[doc(hidden)] pub struct IApplicationViewConsolidatedEventArgs2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub IsAppInitiated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IApplicationViewFullscreenStatics(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for IApplicationViewFullscreenStatics { - type Vtable = IApplicationViewFullscreenStatics_Vtbl; -} #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for IApplicationViewFullscreenStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbc792ebd_64fe_4b65_a0c0_901ce2b68636); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + IApplicationViewFullscreenStatics, + IApplicationViewFullscreenStatics_Vtbl, + 0xbc792ebd_64fe_4b65_a0c0_901ce2b68636 +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -235,16 +139,7 @@ pub struct IApplicationViewFullscreenStatics_Vtbl { #[cfg(not(feature = "deprecated"))] TryUnsnapToFullscreen: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IApplicationViewInteropStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IApplicationViewInteropStatics { - type Vtable = IApplicationViewInteropStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IApplicationViewInteropStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc446fb5d_4793_4896_a8e2_be57a8bb0f50); -} +::windows_core::imp::com_interface!(IApplicationViewInteropStatics, IApplicationViewInteropStatics_Vtbl, 0xc446fb5d_4793_4896_a8e2_be57a8bb0f50); #[repr(C)] #[doc(hidden)] pub struct IApplicationViewInteropStatics_Vtbl { @@ -254,31 +149,13 @@ pub struct IApplicationViewInteropStatics_Vtbl { #[cfg(not(feature = "UI_Core"))] GetApplicationViewIdForWindow: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IApplicationViewScaling(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IApplicationViewScaling { - type Vtable = IApplicationViewScaling_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IApplicationViewScaling { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1d0ddc23_23f3_4b2d_84fe_74bf37b48b66); -} +::windows_core::imp::com_interface!(IApplicationViewScaling, IApplicationViewScaling_Vtbl, 0x1d0ddc23_23f3_4b2d_84fe_74bf37b48b66); #[repr(C)] #[doc(hidden)] pub struct IApplicationViewScaling_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IApplicationViewScalingStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IApplicationViewScalingStatics { - type Vtable = IApplicationViewScalingStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IApplicationViewScalingStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb08fecf0_b946_45c8_a5e3_71f5aa78f861); -} +::windows_core::imp::com_interface!(IApplicationViewScalingStatics, IApplicationViewScalingStatics_Vtbl, 0xb08fecf0_b946_45c8_a5e3_71f5aa78f861); #[repr(C)] #[doc(hidden)] pub struct IApplicationViewScalingStatics_Vtbl { @@ -286,19 +163,13 @@ pub struct IApplicationViewScalingStatics_Vtbl { pub DisableLayoutScaling: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub TrySetDisableLayoutScaling: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, disablelayoutscaling: bool, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[cfg(feature = "deprecated")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IApplicationViewStatics(::windows_core::IUnknown); -#[cfg(feature = "deprecated")] -unsafe impl ::windows_core::Interface for IApplicationViewStatics { - type Vtable = IApplicationViewStatics_Vtbl; -} #[cfg(feature = "deprecated")] -unsafe impl ::windows_core::ComInterface for IApplicationViewStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x010a6306_c433_44e5_a9f2_bd84d4030a95); -} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + IApplicationViewStatics, + IApplicationViewStatics_Vtbl, + 0x010a6306_c433_44e5_a9f2_bd84d4030a95 +); #[cfg(feature = "deprecated")] #[repr(C)] #[doc(hidden)] @@ -313,16 +184,7 @@ pub struct IApplicationViewStatics_Vtbl { #[cfg(not(feature = "deprecated"))] TryUnsnap: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IApplicationViewStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IApplicationViewStatics2 { - type Vtable = IApplicationViewStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IApplicationViewStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaf338ae5_cf64_423c_85e5_f3e72448fb23); -} +::windows_core::imp::com_interface!(IApplicationViewStatics2, IApplicationViewStatics2_Vtbl, 0xaf338ae5_cf64_423c_85e5_f3e72448fb23); #[repr(C)] #[doc(hidden)] pub struct IApplicationViewStatics2_Vtbl { @@ -331,16 +193,7 @@ pub struct IApplicationViewStatics2_Vtbl { pub TerminateAppOnFinalViewClose: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetTerminateAppOnFinalViewClose: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IApplicationViewStatics3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IApplicationViewStatics3 { - type Vtable = IApplicationViewStatics3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IApplicationViewStatics3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa28d7594_8c41_4e13_9719_5164796fe4c7); -} +::windows_core::imp::com_interface!(IApplicationViewStatics3, IApplicationViewStatics3_Vtbl, 0xa28d7594_8c41_4e13_9719_5164796fe4c7); #[repr(C)] #[doc(hidden)] pub struct IApplicationViewStatics3_Vtbl { @@ -350,16 +203,7 @@ pub struct IApplicationViewStatics3_Vtbl { pub PreferredLaunchViewSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::Size) -> ::windows_core::HRESULT, pub SetPreferredLaunchViewSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::Foundation::Size) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IApplicationViewStatics4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IApplicationViewStatics4 { - type Vtable = IApplicationViewStatics4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IApplicationViewStatics4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x08fd8d33_2611_5336_a315_d98e6366c9db); -} +::windows_core::imp::com_interface!(IApplicationViewStatics4, IApplicationViewStatics4_Vtbl, 0x08fd8d33_2611_5336_a315_d98e6366c9db); #[repr(C)] #[doc(hidden)] pub struct IApplicationViewStatics4_Vtbl { @@ -367,16 +211,7 @@ pub struct IApplicationViewStatics4_Vtbl { pub ClearAllPersistedState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ClearPersistedState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, key: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IApplicationViewSwitcherStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IApplicationViewSwitcherStatics { - type Vtable = IApplicationViewSwitcherStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IApplicationViewSwitcherStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x975f2f1e_e656_4c5e_a0a1_717c6ffa7d64); -} +::windows_core::imp::com_interface!(IApplicationViewSwitcherStatics, IApplicationViewSwitcherStatics_Vtbl, 0x975f2f1e_e656_4c5e_a0a1_717c6ffa7d64); #[repr(C)] #[doc(hidden)] pub struct IApplicationViewSwitcherStatics_Vtbl { @@ -390,32 +225,14 @@ pub struct IApplicationViewSwitcherStatics_Vtbl { pub SwitchFromViewWithOptionsAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, toviewid: i32, fromviewid: i32, options: ApplicationViewSwitchingOptions, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub PrepareForCustomAnimatedSwitchAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, toviewid: i32, fromviewid: i32, options: ApplicationViewSwitchingOptions, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IApplicationViewSwitcherStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IApplicationViewSwitcherStatics2 { - type Vtable = IApplicationViewSwitcherStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IApplicationViewSwitcherStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x60e995cd_4fc2_48c4_b8e3_395f2b9f0fc1); -} +::windows_core::imp::com_interface!(IApplicationViewSwitcherStatics2, IApplicationViewSwitcherStatics2_Vtbl, 0x60e995cd_4fc2_48c4_b8e3_395f2b9f0fc1); #[repr(C)] #[doc(hidden)] pub struct IApplicationViewSwitcherStatics2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub DisableSystemViewActivationPolicy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IApplicationViewSwitcherStatics3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IApplicationViewSwitcherStatics3 { - type Vtable = IApplicationViewSwitcherStatics3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IApplicationViewSwitcherStatics3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x92059420_80a7_486d_b21f_c7a4a242a383); -} +::windows_core::imp::com_interface!(IApplicationViewSwitcherStatics3, IApplicationViewSwitcherStatics3_Vtbl, 0x92059420_80a7_486d_b21f_c7a4a242a383); #[repr(C)] #[doc(hidden)] pub struct IApplicationViewSwitcherStatics3_Vtbl { @@ -423,16 +240,7 @@ pub struct IApplicationViewSwitcherStatics3_Vtbl { pub TryShowAsViewModeAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, viewid: i32, viewmode: ApplicationViewMode, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub TryShowAsViewModeWithPreferencesAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, viewid: i32, viewmode: ApplicationViewMode, viewmodepreferences: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IApplicationViewTitleBar(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IApplicationViewTitleBar { - type Vtable = IApplicationViewTitleBar_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IApplicationViewTitleBar { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00924ac0_932b_4a6b_9c4b_dc38c82478ce); -} +::windows_core::imp::com_interface!(IApplicationViewTitleBar, IApplicationViewTitleBar_Vtbl, 0x00924ac0_932b_4a6b_9c4b_dc38c82478ce); #[repr(C)] #[doc(hidden)] pub struct IApplicationViewTitleBar_Vtbl { @@ -462,16 +270,7 @@ pub struct IApplicationViewTitleBar_Vtbl { pub SetButtonInactiveBackgroundColor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ButtonInactiveBackgroundColor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IApplicationViewTransferContext(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IApplicationViewTransferContext { - type Vtable = IApplicationViewTransferContext_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IApplicationViewTransferContext { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8574bc63_3c17_408e_9408_8a1a9ea81bfa); -} +::windows_core::imp::com_interface!(IApplicationViewTransferContext, IApplicationViewTransferContext_Vtbl, 0x8574bc63_3c17_408e_9408_8a1a9ea81bfa); #[repr(C)] #[doc(hidden)] pub struct IApplicationViewTransferContext_Vtbl { @@ -479,48 +278,21 @@ pub struct IApplicationViewTransferContext_Vtbl { pub ViewId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows_core::HRESULT, pub SetViewId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i32) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IApplicationViewTransferContextStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IApplicationViewTransferContextStatics { - type Vtable = IApplicationViewTransferContextStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IApplicationViewTransferContextStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x15a89d92_dd79_4b0b_bc47_d5f195f14661); -} +::windows_core::imp::com_interface!(IApplicationViewTransferContextStatics, IApplicationViewTransferContextStatics_Vtbl, 0x15a89d92_dd79_4b0b_bc47_d5f195f14661); #[repr(C)] #[doc(hidden)] pub struct IApplicationViewTransferContextStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub DataPackageFormatId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IApplicationViewWithContext(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IApplicationViewWithContext { - type Vtable = IApplicationViewWithContext_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IApplicationViewWithContext { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbd55d512_9dc1_44fc_8501_666625df60dc); -} +::windows_core::imp::com_interface!(IApplicationViewWithContext, IApplicationViewWithContext_Vtbl, 0xbd55d512_9dc1_44fc_8501_666625df60dc); #[repr(C)] #[doc(hidden)] pub struct IApplicationViewWithContext_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub UIContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInputPane(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInputPane { - type Vtable = IInputPane_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInputPane { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x640ada70_06f3_4c87_a678_9829c9127c28); -} +::windows_core::imp::com_interface!(IInputPane, IInputPane_Vtbl, 0x640ada70_06f3_4c87_a678_9829c9127c28); #[repr(C)] #[doc(hidden)] pub struct IInputPane_Vtbl { @@ -531,16 +303,7 @@ pub struct IInputPane_Vtbl { pub RemoveHiding: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub OccludedRect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::Rect) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInputPane2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInputPane2 { - type Vtable = IInputPane2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInputPane2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8a6b3f26_7090_4793_944c_c3f2cde26276); -} +::windows_core::imp::com_interface!(IInputPane2, IInputPane2_Vtbl, 0x8a6b3f26_7090_4793_944c_c3f2cde26276); #[repr(C)] #[doc(hidden)] pub struct IInputPane2_Vtbl { @@ -548,16 +311,7 @@ pub struct IInputPane2_Vtbl { pub TryShow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub TryHide: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInputPaneControl(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInputPaneControl { - type Vtable = IInputPaneControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInputPaneControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x088bb24f_962f_489d_aa6e_c6be1a0a6e52); -} +::windows_core::imp::com_interface!(IInputPaneControl, IInputPaneControl_Vtbl, 0x088bb24f_962f_489d_aa6e_c6be1a0a6e52); #[repr(C)] #[doc(hidden)] pub struct IInputPaneControl_Vtbl { @@ -565,48 +319,21 @@ pub struct IInputPaneControl_Vtbl { pub Visible: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetVisible: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInputPaneStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInputPaneStatics { - type Vtable = IInputPaneStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInputPaneStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x95f4af3a_ef47_424a_9741_fd2815eba2bd); -} +::windows_core::imp::com_interface!(IInputPaneStatics, IInputPaneStatics_Vtbl, 0x95f4af3a_ef47_424a_9741_fd2815eba2bd); #[repr(C)] #[doc(hidden)] pub struct IInputPaneStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetForCurrentView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInputPaneStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInputPaneStatics2 { - type Vtable = IInputPaneStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInputPaneStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1b63529b_d9ec_4531_8445_71bab9fb828e); -} +::windows_core::imp::com_interface!(IInputPaneStatics2, IInputPaneStatics2_Vtbl, 0x1b63529b_d9ec_4531_8445_71bab9fb828e); #[repr(C)] #[doc(hidden)] pub struct IInputPaneStatics2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetForUIContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInputPaneVisibilityEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInputPaneVisibilityEventArgs { - type Vtable = IInputPaneVisibilityEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInputPaneVisibilityEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd243e016_d907_4fcc_bb8d_f77baa5028f1); -} +::windows_core::imp::com_interface!(IInputPaneVisibilityEventArgs, IInputPaneVisibilityEventArgs_Vtbl, 0xd243e016_d907_4fcc_bb8d_f77baa5028f1); #[repr(C)] #[doc(hidden)] pub struct IInputPaneVisibilityEventArgs_Vtbl { @@ -615,16 +342,7 @@ pub struct IInputPaneVisibilityEventArgs_Vtbl { pub SetEnsuredFocusedElementInView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, pub EnsuredFocusedElementInView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProjectionManagerStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProjectionManagerStatics { - type Vtable = IProjectionManagerStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProjectionManagerStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb65f913d_e2f0_4ffd_ba95_34241647e45c); -} +::windows_core::imp::com_interface!(IProjectionManagerStatics, IProjectionManagerStatics_Vtbl, 0xb65f913d_e2f0_4ffd_ba95_34241647e45c); #[repr(C)] #[doc(hidden)] pub struct IProjectionManagerStatics_Vtbl { @@ -636,16 +354,7 @@ pub struct IProjectionManagerStatics_Vtbl { pub ProjectionDisplayAvailableChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveProjectionDisplayAvailableChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProjectionManagerStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProjectionManagerStatics2 { - type Vtable = IProjectionManagerStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProjectionManagerStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf33d2f43_2749_4cde_b977_c0c41e7415d1); -} +::windows_core::imp::com_interface!(IProjectionManagerStatics2, IProjectionManagerStatics2_Vtbl, 0xf33d2f43_2749_4cde_b977_c0c41e7415d1); #[repr(C)] #[doc(hidden)] pub struct IProjectionManagerStatics2_Vtbl { @@ -661,16 +370,7 @@ pub struct IProjectionManagerStatics2_Vtbl { RequestStartProjectingWithPlacementAsync: usize, pub GetDeviceSelector: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStatusBar(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStatusBar { - type Vtable = IStatusBar_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStatusBar { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0ffcc5bf_98d0_4864_b1e8_b3f4020be8b4); -} +::windows_core::imp::com_interface!(IStatusBar, IStatusBar_Vtbl, 0x0ffcc5bf_98d0_4864_b1e8_b3f4020be8b4); #[repr(C)] #[doc(hidden)] pub struct IStatusBar_Vtbl { @@ -690,16 +390,7 @@ pub struct IStatusBar_Vtbl { pub Hiding: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventhandler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveHiding: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStatusBarProgressIndicator(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStatusBarProgressIndicator { - type Vtable = IStatusBarProgressIndicator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStatusBarProgressIndicator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x76cb2670_a3d7_49cf_8200_4f3eedca27bb); -} +::windows_core::imp::com_interface!(IStatusBarProgressIndicator, IStatusBarProgressIndicator_Vtbl, 0x76cb2670_a3d7_49cf_8200_4f3eedca27bb); #[repr(C)] #[doc(hidden)] pub struct IStatusBarProgressIndicator_Vtbl { @@ -711,32 +402,14 @@ pub struct IStatusBarProgressIndicator_Vtbl { pub ProgressValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetProgressValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStatusBarStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStatusBarStatics { - type Vtable = IStatusBarStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStatusBarStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8b463fdf_422f_4561_8806_fb1289cadfb7); -} +::windows_core::imp::com_interface!(IStatusBarStatics, IStatusBarStatics_Vtbl, 0x8b463fdf_422f_4561_8806_fb1289cadfb7); #[repr(C)] #[doc(hidden)] pub struct IStatusBarStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetForCurrentView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUISettings(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUISettings { - type Vtable = IUISettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUISettings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x85361600_1c63_4627_bcb1_3a89e0bc9c55); -} +::windows_core::imp::com_interface!(IUISettings, IUISettings_Vtbl, 0x85361600_1c63_4627_bcb1_3a89e0bc9c55); #[repr(C)] #[doc(hidden)] pub struct IUISettings_Vtbl { @@ -755,16 +428,7 @@ pub struct IUISettings_Vtbl { pub MouseHoverTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows_core::HRESULT, pub UIElementColor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, desiredelement: UIElementType, result__: *mut super::Color) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUISettings2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUISettings2 { - type Vtable = IUISettings2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUISettings2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbad82401_2721_44f9_bb91_2bb228be442f); -} +::windows_core::imp::com_interface!(IUISettings2, IUISettings2_Vtbl, 0xbad82401_2721_44f9_bb91_2bb228be442f); #[repr(C)] #[doc(hidden)] pub struct IUISettings2_Vtbl { @@ -773,16 +437,7 @@ pub struct IUISettings2_Vtbl { pub TextScaleFactorChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveTextScaleFactorChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUISettings3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUISettings3 { - type Vtable = IUISettings3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUISettings3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x03021be4_5254_4781_8194_5168f7d06d7b); -} +::windows_core::imp::com_interface!(IUISettings3, IUISettings3_Vtbl, 0x03021be4_5254_4781_8194_5168f7d06d7b); #[repr(C)] #[doc(hidden)] pub struct IUISettings3_Vtbl { @@ -791,16 +446,7 @@ pub struct IUISettings3_Vtbl { pub ColorValuesChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveColorValuesChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUISettings4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUISettings4 { - type Vtable = IUISettings4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUISettings4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x52bb3002_919b_4d6b_9b78_8dd66ff4b93b); -} +::windows_core::imp::com_interface!(IUISettings4, IUISettings4_Vtbl, 0x52bb3002_919b_4d6b_9b78_8dd66ff4b93b); #[repr(C)] #[doc(hidden)] pub struct IUISettings4_Vtbl { @@ -809,16 +455,7 @@ pub struct IUISettings4_Vtbl { pub AdvancedEffectsEnabledChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveAdvancedEffectsEnabledChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUISettings5(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUISettings5 { - type Vtable = IUISettings5_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUISettings5 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5349d588_0cb5_5f05_bd34_706b3231f0bd); -} +::windows_core::imp::com_interface!(IUISettings5, IUISettings5_Vtbl, 0x5349d588_0cb5_5f05_bd34_706b3231f0bd); #[repr(C)] #[doc(hidden)] pub struct IUISettings5_Vtbl { @@ -827,16 +464,7 @@ pub struct IUISettings5_Vtbl { pub AutoHideScrollBarsChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveAutoHideScrollBarsChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUISettings6(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUISettings6 { - type Vtable = IUISettings6_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUISettings6 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaef19bd7_fe31_5a04_ada4_469aaec6dfa9); -} +::windows_core::imp::com_interface!(IUISettings6, IUISettings6_Vtbl, 0xaef19bd7_fe31_5a04_ada4_469aaec6dfa9); #[repr(C)] #[doc(hidden)] pub struct IUISettings6_Vtbl { @@ -846,93 +474,39 @@ pub struct IUISettings6_Vtbl { pub MessageDurationChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveMessageDurationChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUISettingsAnimationsEnabledChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUISettingsAnimationsEnabledChangedEventArgs { - type Vtable = IUISettingsAnimationsEnabledChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUISettingsAnimationsEnabledChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c7b4b3d_2ea1_533e_894d_415bc5243c29); -} +::windows_core::imp::com_interface!(IUISettingsAnimationsEnabledChangedEventArgs, IUISettingsAnimationsEnabledChangedEventArgs_Vtbl, 0x0c7b4b3d_2ea1_533e_894d_415bc5243c29); #[repr(C)] #[doc(hidden)] pub struct IUISettingsAnimationsEnabledChangedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUISettingsAutoHideScrollBarsChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUISettingsAutoHideScrollBarsChangedEventArgs { - type Vtable = IUISettingsAutoHideScrollBarsChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUISettingsAutoHideScrollBarsChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x87afd4b2_9146_5f02_8f6b_06d454174c0f); -} +::windows_core::imp::com_interface!(IUISettingsAutoHideScrollBarsChangedEventArgs, IUISettingsAutoHideScrollBarsChangedEventArgs_Vtbl, 0x87afd4b2_9146_5f02_8f6b_06d454174c0f); #[repr(C)] #[doc(hidden)] pub struct IUISettingsAutoHideScrollBarsChangedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUISettingsMessageDurationChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUISettingsMessageDurationChangedEventArgs { - type Vtable = IUISettingsMessageDurationChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUISettingsMessageDurationChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x338aad52_4a5d_5b59_8002_d930f608fd6e); -} +::windows_core::imp::com_interface!(IUISettingsMessageDurationChangedEventArgs, IUISettingsMessageDurationChangedEventArgs_Vtbl, 0x338aad52_4a5d_5b59_8002_d930f608fd6e); #[repr(C)] #[doc(hidden)] pub struct IUISettingsMessageDurationChangedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIViewSettings(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIViewSettings { - type Vtable = IUIViewSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIViewSettings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc63657f6_8850_470d_88f8_455e16ea2c26); -} +::windows_core::imp::com_interface!(IUIViewSettings, IUIViewSettings_Vtbl, 0xc63657f6_8850_470d_88f8_455e16ea2c26); #[repr(C)] #[doc(hidden)] pub struct IUIViewSettings_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub UserInteractionMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut UserInteractionMode) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIViewSettingsStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIViewSettingsStatics { - type Vtable = IUIViewSettingsStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIViewSettingsStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x595c97a5_f8f6_41cf_b0fb_aacdb81fd5f6); -} +::windows_core::imp::com_interface!(IUIViewSettingsStatics, IUIViewSettingsStatics_Vtbl, 0x595c97a5_f8f6_41cf_b0fb_aacdb81fd5f6); #[repr(C)] #[doc(hidden)] pub struct IUIViewSettingsStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetForCurrentView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IViewModePreferences(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IViewModePreferences { - type Vtable = IViewModePreferences_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IViewModePreferences { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x878fcd3a_0b99_42c9_84d0_d3f1d403554b); -} +::windows_core::imp::com_interface!(IViewModePreferences, IViewModePreferences_Vtbl, 0x878fcd3a_0b99_42c9_84d0_d3f1d403554b); #[repr(C)] #[doc(hidden)] pub struct IViewModePreferences_Vtbl { @@ -942,16 +516,7 @@ pub struct IViewModePreferences_Vtbl { pub CustomSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::Size) -> ::windows_core::HRESULT, pub SetCustomSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::Foundation::Size) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IViewModePreferencesStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IViewModePreferencesStatics { - type Vtable = IViewModePreferencesStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IViewModePreferencesStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x69b60a65_5de5_40d8_8306_3833df7a2274); -} +::windows_core::imp::com_interface!(IViewModePreferencesStatics, IViewModePreferencesStatics_Vtbl, 0x69b60a65_5de5_40d8_8306_3833df7a2274); #[repr(C)] #[doc(hidden)] pub struct IViewModePreferencesStatics_Vtbl { @@ -961,6 +526,7 @@ pub struct IViewModePreferencesStatics_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AccessibilitySettings(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AccessibilitySettings, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AccessibilitySettings { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1003,19 +569,17 @@ impl ::windows_core::RuntimeType for AccessibilitySettings { } unsafe impl ::windows_core::Interface for AccessibilitySettings { type Vtable = IAccessibilitySettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AccessibilitySettings { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AccessibilitySettings { const NAME: &'static str = "Windows.UI.ViewManagement.AccessibilitySettings"; } -::windows_core::imp::interface_hierarchy!(AccessibilitySettings, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AccessibilitySettings {} unsafe impl ::core::marker::Sync for AccessibilitySettings {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ActivationViewSwitcher(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ActivationViewSwitcher, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ActivationViewSwitcher { pub fn ShowAsStandaloneAsync(&self, viewid: i32) -> ::windows_core::Result { let this = self; @@ -1044,19 +608,17 @@ impl ::windows_core::RuntimeType for ActivationViewSwitcher { } unsafe impl ::windows_core::Interface for ActivationViewSwitcher { type Vtable = IActivationViewSwitcher_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ActivationViewSwitcher { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ActivationViewSwitcher { const NAME: &'static str = "Windows.UI.ViewManagement.ActivationViewSwitcher"; } -::windows_core::imp::interface_hierarchy!(ActivationViewSwitcher, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ActivationViewSwitcher {} unsafe impl ::core::marker::Sync for ActivationViewSwitcher {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ApplicationView(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ApplicationView, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ApplicationView { pub fn Orientation(&self) -> ::windows_core::Result { let this = self; @@ -1141,7 +703,7 @@ impl ApplicationView { #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] pub fn SuppressSystemOverlays(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SuppressSystemOverlays)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1150,11 +712,11 @@ impl ApplicationView { #[doc = "Required features: `\"deprecated\"`"] #[cfg(feature = "deprecated")] pub fn SetSuppressSystemOverlays(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetSuppressSystemOverlays)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn VisibleBounds(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).VisibleBounds)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1164,97 +726,97 @@ impl ApplicationView { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveVisibleBoundsChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveVisibleBoundsChanged)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn SetDesiredBoundsMode(&self, boundsmode: ApplicationViewBoundsMode) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SetDesiredBoundsMode)(::windows_core::Interface::as_raw(this), boundsmode, &mut result__).from_abi(result__) } } pub fn DesiredBoundsMode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DesiredBoundsMode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TitleBar(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TitleBar)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn FullScreenSystemOverlayMode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).FullScreenSystemOverlayMode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetFullScreenSystemOverlayMode(&self, value: FullScreenSystemOverlayMode) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetFullScreenSystemOverlayMode)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsFullScreenMode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsFullScreenMode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryEnterFullScreenMode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryEnterFullScreenMode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ExitFullScreenMode(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ExitFullScreenMode)(::windows_core::Interface::as_raw(this)).ok() } } pub fn ShowStandardSystemOverlays(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ShowStandardSystemOverlays)(::windows_core::Interface::as_raw(this)).ok() } } pub fn TryResizeView(&self, value: super::super::Foundation::Size) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryResizeView)(::windows_core::Interface::as_raw(this), value, &mut result__).from_abi(result__) } } pub fn SetPreferredMinSize(&self, minsize: super::super::Foundation::Size) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetPreferredMinSize)(::windows_core::Interface::as_raw(this), minsize).ok() } } pub fn ViewMode(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ViewMode)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsViewModeSupported(&self, viewmode: ApplicationViewMode) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsViewModeSupported)(::windows_core::Interface::as_raw(this), viewmode, &mut result__).from_abi(result__) } } pub fn TryEnterViewModeAsync(&self, viewmode: ApplicationViewMode) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryEnterViewModeAsync)(::windows_core::Interface::as_raw(this), viewmode, &mut result__).from_abi(result__) @@ -1264,34 +826,34 @@ impl ApplicationView { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn TryConsolidateAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryConsolidateAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn PersistedStateId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PersistedStateId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetPersistedStateId(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetPersistedStateId)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } #[doc = "Required features: `\"UI_WindowManagement\"`"] #[cfg(feature = "UI_WindowManagement")] pub fn WindowingEnvironment(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).WindowingEnvironment)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1300,7 +862,7 @@ impl ApplicationView { #[doc = "Required features: `\"Foundation_Collections\"`, `\"UI_WindowManagement\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "UI_WindowManagement"))] pub fn GetDisplayRegions(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetDisplayRegions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1318,11 +880,11 @@ impl ApplicationView { #[cfg(feature = "UI_Core")] pub fn GetApplicationViewIdForWindow(window: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IApplicationViewInteropStatics(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).GetApplicationViewIdForWindow)(::windows_core::Interface::as_raw(this), window.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).GetApplicationViewIdForWindow)(::windows_core::Interface::as_raw(this), window.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"deprecated\"`"] @@ -1381,7 +943,7 @@ impl ApplicationView { Self::IApplicationViewStatics4(|this| unsafe { (::windows_core::Interface::vtable(this).ClearPersistedState)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key)).ok() }) } pub fn UIContext(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).UIContext)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1425,19 +987,17 @@ impl ::windows_core::RuntimeType for ApplicationView { } unsafe impl ::windows_core::Interface for ApplicationView { type Vtable = IApplicationView_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ApplicationView { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ApplicationView { const NAME: &'static str = "Windows.UI.ViewManagement.ApplicationView"; } -::windows_core::imp::interface_hierarchy!(ApplicationView, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ApplicationView {} unsafe impl ::core::marker::Sync for ApplicationView {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ApplicationViewConsolidatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ApplicationViewConsolidatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ApplicationViewConsolidatedEventArgs { pub fn IsUserInitiated(&self) -> ::windows_core::Result { let this = self; @@ -1447,7 +1007,7 @@ impl ApplicationViewConsolidatedEventArgs { } } pub fn IsAppInitiated(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsAppInitiated)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1459,19 +1019,17 @@ impl ::windows_core::RuntimeType for ApplicationViewConsolidatedEventArgs { } unsafe impl ::windows_core::Interface for ApplicationViewConsolidatedEventArgs { type Vtable = IApplicationViewConsolidatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ApplicationViewConsolidatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ApplicationViewConsolidatedEventArgs { const NAME: &'static str = "Windows.UI.ViewManagement.ApplicationViewConsolidatedEventArgs"; } -::windows_core::imp::interface_hierarchy!(ApplicationViewConsolidatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ApplicationViewConsolidatedEventArgs {} unsafe impl ::core::marker::Sync for ApplicationViewConsolidatedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ApplicationViewScaling(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ApplicationViewScaling, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ApplicationViewScaling { pub fn DisableLayoutScaling() -> ::windows_core::Result { Self::IApplicationViewScalingStatics(|this| unsafe { @@ -1496,14 +1054,11 @@ impl ::windows_core::RuntimeType for ApplicationViewScaling { } unsafe impl ::windows_core::Interface for ApplicationViewScaling { type Vtable = IApplicationViewScaling_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ApplicationViewScaling { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ApplicationViewScaling { const NAME: &'static str = "Windows.UI.ViewManagement.ApplicationViewScaling"; } -::windows_core::imp::interface_hierarchy!(ApplicationViewScaling, ::windows_core::IUnknown, ::windows_core::IInspectable); pub struct ApplicationViewSwitcher; impl ApplicationViewSwitcher { pub fn DisableShowingMainViewOnActivation() -> ::windows_core::Result<()> { @@ -1591,13 +1146,14 @@ impl ::windows_core::RuntimeName for ApplicationViewSwitcher { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ApplicationViewTitleBar(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ApplicationViewTitleBar, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ApplicationViewTitleBar { pub fn SetForegroundColor(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetForegroundColor)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetForegroundColor)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn ForegroundColor(&self) -> ::windows_core::Result> { let this = self; @@ -1608,10 +1164,10 @@ impl ApplicationViewTitleBar { } pub fn SetBackgroundColor(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetBackgroundColor)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetBackgroundColor)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn BackgroundColor(&self) -> ::windows_core::Result> { let this = self; @@ -1622,10 +1178,10 @@ impl ApplicationViewTitleBar { } pub fn SetButtonForegroundColor(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetButtonForegroundColor)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetButtonForegroundColor)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn ButtonForegroundColor(&self) -> ::windows_core::Result> { let this = self; @@ -1636,10 +1192,10 @@ impl ApplicationViewTitleBar { } pub fn SetButtonBackgroundColor(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetButtonBackgroundColor)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetButtonBackgroundColor)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn ButtonBackgroundColor(&self) -> ::windows_core::Result> { let this = self; @@ -1650,10 +1206,10 @@ impl ApplicationViewTitleBar { } pub fn SetButtonHoverForegroundColor(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetButtonHoverForegroundColor)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetButtonHoverForegroundColor)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn ButtonHoverForegroundColor(&self) -> ::windows_core::Result> { let this = self; @@ -1664,10 +1220,10 @@ impl ApplicationViewTitleBar { } pub fn SetButtonHoverBackgroundColor(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetButtonHoverBackgroundColor)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetButtonHoverBackgroundColor)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn ButtonHoverBackgroundColor(&self) -> ::windows_core::Result> { let this = self; @@ -1678,10 +1234,10 @@ impl ApplicationViewTitleBar { } pub fn SetButtonPressedForegroundColor(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetButtonPressedForegroundColor)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetButtonPressedForegroundColor)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn ButtonPressedForegroundColor(&self) -> ::windows_core::Result> { let this = self; @@ -1692,10 +1248,10 @@ impl ApplicationViewTitleBar { } pub fn SetButtonPressedBackgroundColor(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetButtonPressedBackgroundColor)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetButtonPressedBackgroundColor)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn ButtonPressedBackgroundColor(&self) -> ::windows_core::Result> { let this = self; @@ -1706,10 +1262,10 @@ impl ApplicationViewTitleBar { } pub fn SetInactiveForegroundColor(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetInactiveForegroundColor)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetInactiveForegroundColor)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn InactiveForegroundColor(&self) -> ::windows_core::Result> { let this = self; @@ -1720,10 +1276,10 @@ impl ApplicationViewTitleBar { } pub fn SetInactiveBackgroundColor(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetInactiveBackgroundColor)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetInactiveBackgroundColor)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn InactiveBackgroundColor(&self) -> ::windows_core::Result> { let this = self; @@ -1734,10 +1290,10 @@ impl ApplicationViewTitleBar { } pub fn SetButtonInactiveForegroundColor(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetButtonInactiveForegroundColor)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetButtonInactiveForegroundColor)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn ButtonInactiveForegroundColor(&self) -> ::windows_core::Result> { let this = self; @@ -1748,10 +1304,10 @@ impl ApplicationViewTitleBar { } pub fn SetButtonInactiveBackgroundColor(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetButtonInactiveBackgroundColor)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetButtonInactiveBackgroundColor)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn ButtonInactiveBackgroundColor(&self) -> ::windows_core::Result> { let this = self; @@ -1766,19 +1322,17 @@ impl ::windows_core::RuntimeType for ApplicationViewTitleBar { } unsafe impl ::windows_core::Interface for ApplicationViewTitleBar { type Vtable = IApplicationViewTitleBar_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ApplicationViewTitleBar { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ApplicationViewTitleBar { const NAME: &'static str = "Windows.UI.ViewManagement.ApplicationViewTitleBar"; } -::windows_core::imp::interface_hierarchy!(ApplicationViewTitleBar, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ApplicationViewTitleBar {} unsafe impl ::core::marker::Sync for ApplicationViewTitleBar {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ApplicationViewTransferContext(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ApplicationViewTransferContext, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ApplicationViewTransferContext { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1815,17 +1369,15 @@ impl ::windows_core::RuntimeType for ApplicationViewTransferContext { } unsafe impl ::windows_core::Interface for ApplicationViewTransferContext { type Vtable = IApplicationViewTransferContext_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ApplicationViewTransferContext { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ApplicationViewTransferContext { const NAME: &'static str = "Windows.UI.ViewManagement.ApplicationViewTransferContext"; } -::windows_core::imp::interface_hierarchy!(ApplicationViewTransferContext, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct InputPane(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(InputPane, ::windows_core::IUnknown, ::windows_core::IInspectable); impl InputPane { pub fn Showing(&self, handler: P0) -> ::windows_core::Result where @@ -1863,28 +1415,28 @@ impl InputPane { } } pub fn TryShow(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryShow)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn TryHide(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TryHide)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Visible(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Visible)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetVisible(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetVisible)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn GetForCurrentView() -> ::windows_core::Result { @@ -1918,17 +1470,15 @@ impl ::windows_core::RuntimeType for InputPane { } unsafe impl ::windows_core::Interface for InputPane { type Vtable = IInputPane_Vtbl; -} -unsafe impl ::windows_core::ComInterface for InputPane { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for InputPane { const NAME: &'static str = "Windows.UI.ViewManagement.InputPane"; } -::windows_core::imp::interface_hierarchy!(InputPane, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct InputPaneVisibilityEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(InputPaneVisibilityEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl InputPaneVisibilityEventArgs { pub fn OccludedRect(&self) -> ::windows_core::Result { let this = self; @@ -1954,14 +1504,11 @@ impl ::windows_core::RuntimeType for InputPaneVisibilityEventArgs { } unsafe impl ::windows_core::Interface for InputPaneVisibilityEventArgs { type Vtable = IInputPaneVisibilityEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for InputPaneVisibilityEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for InputPaneVisibilityEventArgs { const NAME: &'static str = "Windows.UI.ViewManagement.InputPaneVisibilityEventArgs"; } -::windows_core::imp::interface_hierarchy!(InputPaneVisibilityEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); pub struct ProjectionManager; impl ProjectionManager { pub fn StartProjectingAsync(projectionviewid: i32, anchorviewid: i32) -> ::windows_core::Result { @@ -2048,6 +1595,7 @@ impl ::windows_core::RuntimeName for ProjectionManager { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StatusBar(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StatusBar, ::windows_core::IUnknown, ::windows_core::IInspectable); impl StatusBar { pub fn ShowAsync(&self) -> ::windows_core::Result { let this = self; @@ -2083,10 +1631,10 @@ impl StatusBar { } pub fn SetForegroundColor(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetForegroundColor)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetForegroundColor)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn BackgroundColor(&self) -> ::windows_core::Result> { let this = self; @@ -2097,10 +1645,10 @@ impl StatusBar { } pub fn SetBackgroundColor(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetBackgroundColor)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetBackgroundColor)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn ProgressIndicator(&self) -> ::windows_core::Result { let this = self; @@ -2161,19 +1709,17 @@ impl ::windows_core::RuntimeType for StatusBar { } unsafe impl ::windows_core::Interface for StatusBar { type Vtable = IStatusBar_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StatusBar { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StatusBar { const NAME: &'static str = "Windows.UI.ViewManagement.StatusBar"; } -::windows_core::imp::interface_hierarchy!(StatusBar, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for StatusBar {} unsafe impl ::core::marker::Sync for StatusBar {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct StatusBarProgressIndicator(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(StatusBarProgressIndicator, ::windows_core::IUnknown, ::windows_core::IInspectable); impl StatusBarProgressIndicator { pub fn ShowAsync(&self) -> ::windows_core::Result { let this = self; @@ -2209,10 +1755,10 @@ impl StatusBarProgressIndicator { } pub fn SetProgressValue(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetProgressValue)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetProgressValue)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } } impl ::windows_core::RuntimeType for StatusBarProgressIndicator { @@ -2220,19 +1766,17 @@ impl ::windows_core::RuntimeType for StatusBarProgressIndicator { } unsafe impl ::windows_core::Interface for StatusBarProgressIndicator { type Vtable = IStatusBarProgressIndicator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for StatusBarProgressIndicator { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for StatusBarProgressIndicator { const NAME: &'static str = "Windows.UI.ViewManagement.StatusBarProgressIndicator"; } -::windows_core::imp::interface_hierarchy!(StatusBarProgressIndicator, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for StatusBarProgressIndicator {} unsafe impl ::core::marker::Sync for StatusBarProgressIndicator {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UISettings(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UISettings, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UISettings { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2333,7 +1877,7 @@ impl UISettings { } } pub fn TextScaleFactor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TextScaleFactor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2343,18 +1887,18 @@ impl UISettings { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveTextScaleFactorChanged(&self, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveTextScaleFactorChanged)(::windows_core::Interface::as_raw(this), cookie).ok() } } pub fn GetColorValue(&self, desiredcolor: UIColorType) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetColorValue)(::windows_core::Interface::as_raw(this), desiredcolor, &mut result__).from_abi(result__) @@ -2364,18 +1908,18 @@ impl UISettings { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveColorValuesChanged(&self, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveColorValuesChanged)(::windows_core::Interface::as_raw(this), cookie).ok() } } pub fn AdvancedEffectsEnabled(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AdvancedEffectsEnabled)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2385,18 +1929,18 @@ impl UISettings { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveAdvancedEffectsEnabledChanged(&self, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveAdvancedEffectsEnabledChanged)(::windows_core::Interface::as_raw(this), cookie).ok() } } pub fn AutoHideScrollBars(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AutoHideScrollBars)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2406,42 +1950,42 @@ impl UISettings { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveAutoHideScrollBarsChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveAutoHideScrollBarsChanged)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn AnimationsEnabledChanged(&self, handler: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveAnimationsEnabledChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveAnimationsEnabledChanged)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn MessageDurationChanged(&self, handler: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveMessageDurationChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveMessageDurationChanged)(::windows_core::Interface::as_raw(this), token).ok() } } } @@ -2450,76 +1994,68 @@ impl ::windows_core::RuntimeType for UISettings { } unsafe impl ::windows_core::Interface for UISettings { type Vtable = IUISettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UISettings { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UISettings { const NAME: &'static str = "Windows.UI.ViewManagement.UISettings"; } -::windows_core::imp::interface_hierarchy!(UISettings, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UISettings {} unsafe impl ::core::marker::Sync for UISettings {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UISettingsAnimationsEnabledChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UISettingsAnimationsEnabledChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UISettingsAnimationsEnabledChangedEventArgs {} impl ::windows_core::RuntimeType for UISettingsAnimationsEnabledChangedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_class::(); } unsafe impl ::windows_core::Interface for UISettingsAnimationsEnabledChangedEventArgs { type Vtable = IUISettingsAnimationsEnabledChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UISettingsAnimationsEnabledChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UISettingsAnimationsEnabledChangedEventArgs { const NAME: &'static str = "Windows.UI.ViewManagement.UISettingsAnimationsEnabledChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(UISettingsAnimationsEnabledChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UISettingsAnimationsEnabledChangedEventArgs {} unsafe impl ::core::marker::Sync for UISettingsAnimationsEnabledChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UISettingsAutoHideScrollBarsChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UISettingsAutoHideScrollBarsChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UISettingsAutoHideScrollBarsChangedEventArgs {} impl ::windows_core::RuntimeType for UISettingsAutoHideScrollBarsChangedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_class::(); } unsafe impl ::windows_core::Interface for UISettingsAutoHideScrollBarsChangedEventArgs { type Vtable = IUISettingsAutoHideScrollBarsChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UISettingsAutoHideScrollBarsChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UISettingsAutoHideScrollBarsChangedEventArgs { const NAME: &'static str = "Windows.UI.ViewManagement.UISettingsAutoHideScrollBarsChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(UISettingsAutoHideScrollBarsChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UISettingsAutoHideScrollBarsChangedEventArgs {} unsafe impl ::core::marker::Sync for UISettingsAutoHideScrollBarsChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UISettingsMessageDurationChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UISettingsMessageDurationChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UISettingsMessageDurationChangedEventArgs {} impl ::windows_core::RuntimeType for UISettingsMessageDurationChangedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_class::(); } unsafe impl ::windows_core::Interface for UISettingsMessageDurationChangedEventArgs { type Vtable = IUISettingsMessageDurationChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UISettingsMessageDurationChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UISettingsMessageDurationChangedEventArgs { const NAME: &'static str = "Windows.UI.ViewManagement.UISettingsMessageDurationChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(UISettingsMessageDurationChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UISettingsMessageDurationChangedEventArgs {} unsafe impl ::core::marker::Sync for UISettingsMessageDurationChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UIViewSettings(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UIViewSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UIViewSettings { pub fn UserInteractionMode(&self) -> ::windows_core::Result { let this = self; @@ -2545,19 +2081,17 @@ impl ::windows_core::RuntimeType for UIViewSettings { } unsafe impl ::windows_core::Interface for UIViewSettings { type Vtable = IUIViewSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UIViewSettings { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UIViewSettings { const NAME: &'static str = "Windows.UI.ViewManagement.UIViewSettings"; } -::windows_core::imp::interface_hierarchy!(UIViewSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UIViewSettings {} unsafe impl ::core::marker::Sync for UIViewSettings {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ViewModePreferences(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ViewModePreferences, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ViewModePreferences { pub fn ViewSizePreference(&self) -> ::windows_core::Result { let this = self; @@ -2598,14 +2132,11 @@ impl ::windows_core::RuntimeType for ViewModePreferences { } unsafe impl ::windows_core::Interface for ViewModePreferences { type Vtable = IViewModePreferences_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ViewModePreferences { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ViewModePreferences { const NAME: &'static str = "Windows.UI.ViewManagement.ViewModePreferences"; } -::windows_core::imp::interface_hierarchy!(ViewModePreferences, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::marker::Copy, ::core::clone::Clone, ::core::default::Default)] pub struct ApplicationViewBoundsMode(pub i32); diff --git a/crates/libs/windows/src/Windows/UI/WebUI/Core/impl.rs b/crates/libs/windows/src/Windows/UI/WebUI/Core/impl.rs index 6db4db1db5..3b5f14dceb 100644 --- a/crates/libs/windows/src/Windows/UI/WebUI/Core/impl.rs +++ b/crates/libs/windows/src/Windows/UI/WebUI/Core/impl.rs @@ -7,7 +7,7 @@ impl IWebUICommandBarElement_Vtbl { Self { base__: ::windows_core::IInspectable_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWebUICommandBarIcon_Impl: Sized {} @@ -19,6 +19,6 @@ impl IWebUICommandBarIcon_Vtbl { Self { base__: ::windows_core::IInspectable_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 5fc63d75b0..342bc5c120 100644 --- a/crates/libs/windows/src/Windows/UI/WebUI/Core/mod.rs +++ b/crates/libs/windows/src/Windows/UI/WebUI/Core/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebUICommandBar(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebUICommandBar { - type Vtable = IWebUICommandBar_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebUICommandBar { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa4fc0016_dbe5_41ad_8d7b_14698bd6911d); -} +::windows_core::imp::com_interface!(IWebUICommandBar, IWebUICommandBar_Vtbl, 0xa4fc0016_dbe5_41ad_8d7b_14698bd6911d); #[repr(C)] #[doc(hidden)] pub struct IWebUICommandBar_Vtbl { @@ -40,16 +31,7 @@ pub struct IWebUICommandBar_Vtbl { pub SizeChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveSizeChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebUICommandBarBitmapIcon(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebUICommandBarBitmapIcon { - type Vtable = IWebUICommandBarBitmapIcon_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebUICommandBarBitmapIcon { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x858f4f45_08d8_4a46_81ec_00015b0b1c6c); -} +::windows_core::imp::com_interface!(IWebUICommandBarBitmapIcon, IWebUICommandBarBitmapIcon_Vtbl, 0x858f4f45_08d8_4a46_81ec_00015b0b1c6c); #[repr(C)] #[doc(hidden)] pub struct IWebUICommandBarBitmapIcon_Vtbl { @@ -57,32 +39,14 @@ pub struct IWebUICommandBarBitmapIcon_Vtbl { pub Uri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetUri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebUICommandBarBitmapIconFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebUICommandBarBitmapIconFactory { - type Vtable = IWebUICommandBarBitmapIconFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebUICommandBarBitmapIconFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf3f7d78a_7673_444a_be62_ac12d31c2231); -} +::windows_core::imp::com_interface!(IWebUICommandBarBitmapIconFactory, IWebUICommandBarBitmapIconFactory_Vtbl, 0xf3f7d78a_7673_444a_be62_ac12d31c2231); #[repr(C)] #[doc(hidden)] pub struct IWebUICommandBarBitmapIconFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uri: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebUICommandBarConfirmationButton(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebUICommandBarConfirmationButton { - type Vtable = IWebUICommandBarConfirmationButton_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebUICommandBarConfirmationButton { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x86e7824a_e3d5_4eb6_b2ff_8f018a172105); -} +::windows_core::imp::com_interface!(IWebUICommandBarConfirmationButton, IWebUICommandBarConfirmationButton_Vtbl, 0x86e7824a_e3d5_4eb6_b2ff_8f018a172105); #[repr(C)] #[doc(hidden)] pub struct IWebUICommandBarConfirmationButton_Vtbl { @@ -92,54 +56,29 @@ pub struct IWebUICommandBarConfirmationButton_Vtbl { pub ItemInvoked: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveItemInvoked: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebUICommandBarElement(::windows_core::IUnknown); -impl IWebUICommandBarElement {} +::windows_core::imp::com_interface!(IWebUICommandBarElement, IWebUICommandBarElement_Vtbl, 0xc9069ec2_284a_4633_8aad_637a27e282c3); ::windows_core::imp::interface_hierarchy!(IWebUICommandBarElement, ::windows_core::IUnknown, ::windows_core::IInspectable); +impl IWebUICommandBarElement {} impl ::windows_core::RuntimeType for IWebUICommandBarElement { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IWebUICommandBarElement { - type Vtable = IWebUICommandBarElement_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebUICommandBarElement { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc9069ec2_284a_4633_8aad_637a27e282c3); -} #[repr(C)] #[doc(hidden)] pub struct IWebUICommandBarElement_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebUICommandBarIcon(::windows_core::IUnknown); -impl IWebUICommandBarIcon {} +::windows_core::imp::com_interface!(IWebUICommandBarIcon, IWebUICommandBarIcon_Vtbl, 0xd587655d_2014_42be_969a_7d14ca6c8a49); ::windows_core::imp::interface_hierarchy!(IWebUICommandBarIcon, ::windows_core::IUnknown, ::windows_core::IInspectable); +impl IWebUICommandBarIcon {} impl ::windows_core::RuntimeType for IWebUICommandBarIcon { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IWebUICommandBarIcon { - type Vtable = IWebUICommandBarIcon_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebUICommandBarIcon { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd587655d_2014_42be_969a_7d14ca6c8a49); -} #[repr(C)] #[doc(hidden)] pub struct IWebUICommandBarIcon_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebUICommandBarIconButton(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebUICommandBarIconButton { - type Vtable = IWebUICommandBarIconButton_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebUICommandBarIconButton { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8f1bc93a_3a7c_4842_a0cf_aff6ea308586); -} +::windows_core::imp::com_interface!(IWebUICommandBarIconButton, IWebUICommandBarIconButton_Vtbl, 0x8f1bc93a_3a7c_4842_a0cf_aff6ea308586); #[repr(C)] #[doc(hidden)] pub struct IWebUICommandBarIconButton_Vtbl { @@ -157,64 +96,28 @@ pub struct IWebUICommandBarIconButton_Vtbl { pub ItemInvoked: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveItemInvoked: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebUICommandBarItemInvokedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebUICommandBarItemInvokedEventArgs { - type Vtable = IWebUICommandBarItemInvokedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebUICommandBarItemInvokedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x304edbdd_e741_41ef_bdc4_a45cea2a4f70); -} +::windows_core::imp::com_interface!(IWebUICommandBarItemInvokedEventArgs, IWebUICommandBarItemInvokedEventArgs_Vtbl, 0x304edbdd_e741_41ef_bdc4_a45cea2a4f70); #[repr(C)] #[doc(hidden)] pub struct IWebUICommandBarItemInvokedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub IsPrimaryCommand: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebUICommandBarSizeChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebUICommandBarSizeChangedEventArgs { - type Vtable = IWebUICommandBarSizeChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebUICommandBarSizeChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfbf1e2f6_3029_4719_8378_92f82b87af1e); -} +::windows_core::imp::com_interface!(IWebUICommandBarSizeChangedEventArgs, IWebUICommandBarSizeChangedEventArgs_Vtbl, 0xfbf1e2f6_3029_4719_8378_92f82b87af1e); #[repr(C)] #[doc(hidden)] pub struct IWebUICommandBarSizeChangedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Size: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::Size) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebUICommandBarStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebUICommandBarStatics { - type Vtable = IWebUICommandBarStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebUICommandBarStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1449cdb9_a506_45be_8f42_b2837e2fe0c9); -} +::windows_core::imp::com_interface!(IWebUICommandBarStatics, IWebUICommandBarStatics_Vtbl, 0x1449cdb9_a506_45be_8f42_b2837e2fe0c9); #[repr(C)] #[doc(hidden)] pub struct IWebUICommandBarStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetForCurrentView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebUICommandBarSymbolIcon(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebUICommandBarSymbolIcon { - type Vtable = IWebUICommandBarSymbolIcon_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebUICommandBarSymbolIcon { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd4935477_fd26_46ed_8658_1a3f4400e7b3); -} +::windows_core::imp::com_interface!(IWebUICommandBarSymbolIcon, IWebUICommandBarSymbolIcon_Vtbl, 0xd4935477_fd26_46ed_8658_1a3f4400e7b3); #[repr(C)] #[doc(hidden)] pub struct IWebUICommandBarSymbolIcon_Vtbl { @@ -222,16 +125,7 @@ pub struct IWebUICommandBarSymbolIcon_Vtbl { pub Symbol: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetSymbol: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebUICommandBarSymbolIconFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebUICommandBarSymbolIconFactory { - type Vtable = IWebUICommandBarSymbolIconFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebUICommandBarSymbolIconFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51be1a1f_3730_429e_b622_14e2b7bf6a07); -} +::windows_core::imp::com_interface!(IWebUICommandBarSymbolIconFactory, IWebUICommandBarSymbolIconFactory_Vtbl, 0x51be1a1f_3730_429e_b622_14e2b7bf6a07); #[repr(C)] #[doc(hidden)] pub struct IWebUICommandBarSymbolIconFactory_Vtbl { @@ -241,6 +135,7 @@ pub struct IWebUICommandBarSymbolIconFactory_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebUICommandBar(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WebUICommandBar, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WebUICommandBar { pub fn Visible(&self) -> ::windows_core::Result { let this = self; @@ -392,19 +287,18 @@ impl ::windows_core::RuntimeType for WebUICommandBar { } unsafe impl ::windows_core::Interface for WebUICommandBar { type Vtable = IWebUICommandBar_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WebUICommandBar { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WebUICommandBar { const NAME: &'static str = "Windows.UI.WebUI.Core.WebUICommandBar"; } -::windows_core::imp::interface_hierarchy!(WebUICommandBar, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for WebUICommandBar {} unsafe impl ::core::marker::Sync for WebUICommandBar {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebUICommandBarBitmapIcon(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WebUICommandBarBitmapIcon, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(WebUICommandBarBitmapIcon, IWebUICommandBarIcon); impl WebUICommandBarBitmapIcon { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -447,20 +341,18 @@ impl ::windows_core::RuntimeType for WebUICommandBarBitmapIcon { } unsafe impl ::windows_core::Interface for WebUICommandBarBitmapIcon { type Vtable = IWebUICommandBarBitmapIcon_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WebUICommandBarBitmapIcon { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WebUICommandBarBitmapIcon { const NAME: &'static str = "Windows.UI.WebUI.Core.WebUICommandBarBitmapIcon"; } -::windows_core::imp::interface_hierarchy!(WebUICommandBarBitmapIcon, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for WebUICommandBarBitmapIcon {} unsafe impl ::core::marker::Send for WebUICommandBarBitmapIcon {} unsafe impl ::core::marker::Sync for WebUICommandBarBitmapIcon {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebUICommandBarConfirmationButton(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WebUICommandBarConfirmationButton, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(WebUICommandBarConfirmationButton, IWebUICommandBarElement); impl WebUICommandBarConfirmationButton { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -500,20 +392,18 @@ impl ::windows_core::RuntimeType for WebUICommandBarConfirmationButton { } unsafe impl ::windows_core::Interface for WebUICommandBarConfirmationButton { type Vtable = IWebUICommandBarConfirmationButton_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WebUICommandBarConfirmationButton { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WebUICommandBarConfirmationButton { const NAME: &'static str = "Windows.UI.WebUI.Core.WebUICommandBarConfirmationButton"; } -::windows_core::imp::interface_hierarchy!(WebUICommandBarConfirmationButton, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for WebUICommandBarConfirmationButton {} unsafe impl ::core::marker::Send for WebUICommandBarConfirmationButton {} unsafe impl ::core::marker::Sync for WebUICommandBarConfirmationButton {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebUICommandBarIconButton(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WebUICommandBarIconButton, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(WebUICommandBarIconButton, IWebUICommandBarElement); impl WebUICommandBarIconButton { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -575,10 +465,10 @@ impl WebUICommandBarIconButton { } pub fn SetIcon(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetIcon)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetIcon)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn ItemInvoked(&self, handler: P0) -> ::windows_core::Result where @@ -600,20 +490,17 @@ impl ::windows_core::RuntimeType for WebUICommandBarIconButton { } unsafe impl ::windows_core::Interface for WebUICommandBarIconButton { type Vtable = IWebUICommandBarIconButton_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WebUICommandBarIconButton { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WebUICommandBarIconButton { const NAME: &'static str = "Windows.UI.WebUI.Core.WebUICommandBarIconButton"; } -::windows_core::imp::interface_hierarchy!(WebUICommandBarIconButton, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for WebUICommandBarIconButton {} unsafe impl ::core::marker::Send for WebUICommandBarIconButton {} unsafe impl ::core::marker::Sync for WebUICommandBarIconButton {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebUICommandBarItemInvokedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WebUICommandBarItemInvokedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WebUICommandBarItemInvokedEventArgs { pub fn IsPrimaryCommand(&self) -> ::windows_core::Result { let this = self; @@ -628,19 +515,17 @@ impl ::windows_core::RuntimeType for WebUICommandBarItemInvokedEventArgs { } unsafe impl ::windows_core::Interface for WebUICommandBarItemInvokedEventArgs { type Vtable = IWebUICommandBarItemInvokedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WebUICommandBarItemInvokedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WebUICommandBarItemInvokedEventArgs { const NAME: &'static str = "Windows.UI.WebUI.Core.WebUICommandBarItemInvokedEventArgs"; } -::windows_core::imp::interface_hierarchy!(WebUICommandBarItemInvokedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for WebUICommandBarItemInvokedEventArgs {} unsafe impl ::core::marker::Sync for WebUICommandBarItemInvokedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebUICommandBarSizeChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WebUICommandBarSizeChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WebUICommandBarSizeChangedEventArgs { pub fn Size(&self) -> ::windows_core::Result { let this = self; @@ -655,19 +540,18 @@ impl ::windows_core::RuntimeType for WebUICommandBarSizeChangedEventArgs { } unsafe impl ::windows_core::Interface for WebUICommandBarSizeChangedEventArgs { type Vtable = IWebUICommandBarSizeChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WebUICommandBarSizeChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WebUICommandBarSizeChangedEventArgs { const NAME: &'static str = "Windows.UI.WebUI.Core.WebUICommandBarSizeChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(WebUICommandBarSizeChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for WebUICommandBarSizeChangedEventArgs {} unsafe impl ::core::marker::Sync for WebUICommandBarSizeChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebUICommandBarSymbolIcon(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WebUICommandBarSymbolIcon, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(WebUICommandBarSymbolIcon, IWebUICommandBarIcon); impl WebUICommandBarSymbolIcon { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -704,15 +588,11 @@ impl ::windows_core::RuntimeType for WebUICommandBarSymbolIcon { } unsafe impl ::windows_core::Interface for WebUICommandBarSymbolIcon { type Vtable = IWebUICommandBarSymbolIcon_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WebUICommandBarSymbolIcon { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WebUICommandBarSymbolIcon { const NAME: &'static str = "Windows.UI.WebUI.Core.WebUICommandBarSymbolIcon"; } -::windows_core::imp::interface_hierarchy!(WebUICommandBarSymbolIcon, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for WebUICommandBarSymbolIcon {} unsafe impl ::core::marker::Send for WebUICommandBarSymbolIcon {} unsafe impl ::core::marker::Sync for WebUICommandBarSymbolIcon {} #[repr(transparent)] @@ -734,9 +614,7 @@ impl ::core::fmt::Debug for WebUICommandBarClosedDisplayMode { impl ::windows_core::RuntimeType for WebUICommandBarClosedDisplayMode { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::from_slice(b"enum(Windows.UI.WebUI.Core.WebUICommandBarClosedDisplayMode;i4)"); } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct MenuClosedEventHandler(pub ::windows_core::IUnknown); +::windows_core::imp::com_interface!(MenuClosedEventHandler, MenuClosedEventHandler_Vtbl, 0x435387c8_4dd0_4c52_9489_d390ce7721d2); impl MenuClosedEventHandler { pub fn new ::windows_core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = MenuClosedEventHandlerBox:: { vtable: &MenuClosedEventHandlerBox::::VTABLE, count: ::windows_core::imp::RefCount::new(1), invoke }; @@ -763,7 +641,7 @@ impl ::windows_core::Result<()> + ::core::marker::Send + 'static> if iid.is_null() || interface.is_null() { return ::windows_core::HRESULT(-2147467261); } - *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; + *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::Interface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::Interface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; if (*interface).is_null() { ::windows_core::HRESULT(-2147467262) } else { @@ -788,12 +666,6 @@ impl ::windows_core::Result<()> + ::core::marker::Send + 'static> ((*this).invoke)().into() } } -unsafe impl ::windows_core::Interface for MenuClosedEventHandler { - type Vtable = MenuClosedEventHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MenuClosedEventHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x435387c8_4dd0_4c52_9489_d390ce7721d2); -} impl ::windows_core::RuntimeType for MenuClosedEventHandler { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } @@ -803,9 +675,7 @@ pub struct MenuClosedEventHandler_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Invoke: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct MenuOpenedEventHandler(pub ::windows_core::IUnknown); +::windows_core::imp::com_interface!(MenuOpenedEventHandler, MenuOpenedEventHandler_Vtbl, 0x18dc0ad3_678f_4c19_8963_cc1c49a5ef9e); impl MenuOpenedEventHandler { pub fn new ::windows_core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = MenuOpenedEventHandlerBox:: { vtable: &MenuOpenedEventHandlerBox::::VTABLE, count: ::windows_core::imp::RefCount::new(1), invoke }; @@ -832,7 +702,7 @@ impl ::windows_core::Result<()> + ::core::marker::Send + 'static> if iid.is_null() || interface.is_null() { return ::windows_core::HRESULT(-2147467261); } - *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; + *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::Interface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::Interface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; if (*interface).is_null() { ::windows_core::HRESULT(-2147467262) } else { @@ -857,12 +727,6 @@ impl ::windows_core::Result<()> + ::core::marker::Send + 'static> ((*this).invoke)().into() } } -unsafe impl ::windows_core::Interface for MenuOpenedEventHandler { - type Vtable = MenuOpenedEventHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MenuOpenedEventHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x18dc0ad3_678f_4c19_8963_cc1c49a5ef9e); -} impl ::windows_core::RuntimeType for MenuOpenedEventHandler { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } @@ -872,9 +736,7 @@ pub struct MenuOpenedEventHandler_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Invoke: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct SizeChangedEventHandler(pub ::windows_core::IUnknown); +::windows_core::imp::com_interface!(SizeChangedEventHandler, SizeChangedEventHandler_Vtbl, 0xd49cfe3c_dd2e_4c28_b627_303a7f911af5); impl SizeChangedEventHandler { pub fn new) -> ::windows_core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = SizeChangedEventHandlerBox:: { vtable: &SizeChangedEventHandlerBox::::VTABLE, count: ::windows_core::imp::RefCount::new(1), invoke }; @@ -904,7 +766,7 @@ impl) -> : if iid.is_null() || interface.is_null() { return ::windows_core::HRESULT(-2147467261); } - *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; + *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::Interface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::Interface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; if (*interface).is_null() { ::windows_core::HRESULT(-2147467262) } else { @@ -929,12 +791,6 @@ impl) -> : ((*this).invoke)(::windows_core::from_raw_borrowed(&eventargs)).into() } } -unsafe impl ::windows_core::Interface for SizeChangedEventHandler { - type Vtable = SizeChangedEventHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SizeChangedEventHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd49cfe3c_dd2e_4c28_b627_303a7f911af5); -} impl ::windows_core::RuntimeType for SizeChangedEventHandler { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } diff --git a/crates/libs/windows/src/Windows/UI/WebUI/impl.rs b/crates/libs/windows/src/Windows/UI/WebUI/impl.rs index 48fd913c32..1b7b239f78 100644 --- a/crates/libs/windows/src/Windows/UI/WebUI/impl.rs +++ b/crates/libs/windows/src/Windows/UI/WebUI/impl.rs @@ -24,7 +24,7 @@ impl IActivatedEventArgsDeferral_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWebUIBackgroundTaskInstance_Impl: Sized { @@ -59,7 +59,7 @@ impl IWebUIBackgroundTaskInstance_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWebUINavigatedEventArgs_Impl: Sized { @@ -88,6 +88,6 @@ impl IWebUINavigatedEventArgs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/UI/WebUI/mod.rs b/crates/libs/windows/src/Windows/UI/WebUI/mod.rs index 1415fe2fee..539903b46c 100644 --- a/crates/libs/windows/src/Windows/UI/WebUI/mod.rs +++ b/crates/libs/windows/src/Windows/UI/WebUI/mod.rs @@ -1,25 +1,15 @@ #[cfg(feature = "UI_WebUI_Core")] #[doc = "Required features: `\"UI_WebUI_Core\"`"] pub mod Core; -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActivatedDeferral(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IActivatedDeferral { - type Vtable = IActivatedDeferral_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActivatedDeferral { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc3bd1978_a431_49d8_a76a_395a4e03dcf3); -} +::windows_core::imp::com_interface!(IActivatedDeferral, IActivatedDeferral_Vtbl, 0xc3bd1978_a431_49d8_a76a_395a4e03dcf3); #[repr(C)] #[doc(hidden)] pub struct IActivatedDeferral_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Complete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActivatedEventArgsDeferral(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IActivatedEventArgsDeferral, IActivatedEventArgsDeferral_Vtbl, 0xca6d5f74_63c2_44a6_b97b_d9a03c20bc9b); +::windows_core::imp::interface_hierarchy!(IActivatedEventArgsDeferral, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IActivatedEventArgsDeferral { pub fn ActivatedOperation(&self) -> ::windows_core::Result { let this = self; @@ -29,48 +19,23 @@ impl IActivatedEventArgsDeferral { } } } -::windows_core::imp::interface_hierarchy!(IActivatedEventArgsDeferral, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IActivatedEventArgsDeferral { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IActivatedEventArgsDeferral { - type Vtable = IActivatedEventArgsDeferral_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActivatedEventArgsDeferral { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xca6d5f74_63c2_44a6_b97b_d9a03c20bc9b); -} #[repr(C)] #[doc(hidden)] pub struct IActivatedEventArgsDeferral_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ActivatedOperation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActivatedOperation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IActivatedOperation { - type Vtable = IActivatedOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActivatedOperation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb6a0b4bc_c6ca_42fd_9818_71904e45fed7); -} +::windows_core::imp::com_interface!(IActivatedOperation, IActivatedOperation_Vtbl, 0xb6a0b4bc_c6ca_42fd_9818_71904e45fed7); #[repr(C)] #[doc(hidden)] pub struct IActivatedOperation_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHtmlPrintDocumentSource(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHtmlPrintDocumentSource { - type Vtable = IHtmlPrintDocumentSource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHtmlPrintDocumentSource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcea6469a_0e05_467a_abc9_36ec1d4cdcb6); -} +::windows_core::imp::com_interface!(IHtmlPrintDocumentSource, IHtmlPrintDocumentSource_Vtbl, 0xcea6469a_0e05_467a_abc9_36ec1d4cdcb6); #[repr(C)] #[doc(hidden)] pub struct IHtmlPrintDocumentSource_Vtbl { @@ -94,16 +59,7 @@ pub struct IHtmlPrintDocumentSource_Vtbl { pub PageRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub TrySetPageRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strpagerange: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INewWebUIViewCreatedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INewWebUIViewCreatedEventArgs { - type Vtable = INewWebUIViewCreatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INewWebUIViewCreatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe8e1b216_be2b_4c9e_85e7_083143ec4be7); -} +::windows_core::imp::com_interface!(INewWebUIViewCreatedEventArgs, INewWebUIViewCreatedEventArgs_Vtbl, 0xe8e1b216_be2b_4c9e_85e7_083143ec4be7); #[repr(C)] #[doc(hidden)] pub struct INewWebUIViewCreatedEventArgs_Vtbl { @@ -116,16 +72,7 @@ pub struct INewWebUIViewCreatedEventArgs_Vtbl { pub HasPendingNavigate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebUIActivationStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebUIActivationStatics { - type Vtable = IWebUIActivationStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebUIActivationStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x351b86bd_43b3_482b_85db_35d87b517ad9); -} +::windows_core::imp::com_interface!(IWebUIActivationStatics, IWebUIActivationStatics_Vtbl, 0x351b86bd_43b3_482b_85db_35d87b517ad9); #[repr(C)] #[doc(hidden)] pub struct IWebUIActivationStatics_Vtbl { @@ -145,16 +92,7 @@ pub struct IWebUIActivationStatics_Vtbl { pub Navigated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveNavigated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebUIActivationStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebUIActivationStatics2 { - type Vtable = IWebUIActivationStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebUIActivationStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc8e88696_4d78_4aa4_8f06_2a9eadc6c40a); -} +::windows_core::imp::com_interface!(IWebUIActivationStatics2, IWebUIActivationStatics2_Vtbl, 0xc8e88696_4d78_4aa4_8f06_2a9eadc6c40a); #[repr(C)] #[doc(hidden)] pub struct IWebUIActivationStatics2_Vtbl { @@ -171,16 +109,7 @@ pub struct IWebUIActivationStatics2_Vtbl { pub RemoveEnteredBackground: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub EnablePrelaunch: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebUIActivationStatics3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebUIActivationStatics3 { - type Vtable = IWebUIActivationStatics3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebUIActivationStatics3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x91abb686_1af5_4445_b49f_9459f40fc8de); -} +::windows_core::imp::com_interface!(IWebUIActivationStatics3, IWebUIActivationStatics3_Vtbl, 0x91abb686_1af5_4445_b49f_9459f40fc8de); #[repr(C)] #[doc(hidden)] pub struct IWebUIActivationStatics3_Vtbl { @@ -194,16 +123,7 @@ pub struct IWebUIActivationStatics3_Vtbl { #[cfg(not(all(feature = "ApplicationModel_Core", feature = "System")))] RequestRestartForUserAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebUIActivationStatics4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebUIActivationStatics4 { - type Vtable = IWebUIActivationStatics4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebUIActivationStatics4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5e391429_183f_478d_8a25_67f80d03935b); -} +::windows_core::imp::com_interface!(IWebUIActivationStatics4, IWebUIActivationStatics4_Vtbl, 0x5e391429_183f_478d_8a25_67f80d03935b); #[repr(C)] #[doc(hidden)] pub struct IWebUIActivationStatics4_Vtbl { @@ -216,9 +136,8 @@ pub struct IWebUIActivationStatics4_Vtbl { BackgroundActivated: usize, pub RemoveBackgroundActivated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebUIBackgroundTaskInstance(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWebUIBackgroundTaskInstance, IWebUIBackgroundTaskInstance_Vtbl, 0x23f12c25_e2f7_4741_bc9c_394595de24dc); +::windows_core::imp::interface_hierarchy!(IWebUIBackgroundTaskInstance, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IWebUIBackgroundTaskInstance { pub fn Succeeded(&self) -> ::windows_core::Result { let this = self; @@ -232,16 +151,9 @@ impl IWebUIBackgroundTaskInstance { unsafe { (::windows_core::Interface::vtable(this).SetSucceeded)(::windows_core::Interface::as_raw(this), succeeded).ok() } } } -::windows_core::imp::interface_hierarchy!(IWebUIBackgroundTaskInstance, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IWebUIBackgroundTaskInstance { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IWebUIBackgroundTaskInstance { - type Vtable = IWebUIBackgroundTaskInstance_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebUIBackgroundTaskInstance { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x23f12c25_e2f7_4741_bc9c_394595de24dc); -} #[repr(C)] #[doc(hidden)] pub struct IWebUIBackgroundTaskInstance_Vtbl { @@ -249,41 +161,22 @@ pub struct IWebUIBackgroundTaskInstance_Vtbl { pub Succeeded: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetSucceeded: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, succeeded: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebUIBackgroundTaskInstanceStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebUIBackgroundTaskInstanceStatics { - type Vtable = IWebUIBackgroundTaskInstanceStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebUIBackgroundTaskInstanceStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9c7a5291_19ae_4ca3_b94b_fe4ec744a740); -} +::windows_core::imp::com_interface!(IWebUIBackgroundTaskInstanceStatics, IWebUIBackgroundTaskInstanceStatics_Vtbl, 0x9c7a5291_19ae_4ca3_b94b_fe4ec744a740); #[repr(C)] #[doc(hidden)] pub struct IWebUIBackgroundTaskInstanceStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Current: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebUINavigatedDeferral(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebUINavigatedDeferral { - type Vtable = IWebUINavigatedDeferral_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebUINavigatedDeferral { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd804204d_831f_46e2_b432_3afce211f962); -} +::windows_core::imp::com_interface!(IWebUINavigatedDeferral, IWebUINavigatedDeferral_Vtbl, 0xd804204d_831f_46e2_b432_3afce211f962); #[repr(C)] #[doc(hidden)] pub struct IWebUINavigatedDeferral_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Complete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebUINavigatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWebUINavigatedEventArgs, IWebUINavigatedEventArgs_Vtbl, 0xa75841b8_2499_4030_a69d_15d2d9cfe524); +::windows_core::imp::interface_hierarchy!(IWebUINavigatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IWebUINavigatedEventArgs { pub fn NavigatedOperation(&self) -> ::windows_core::Result { let this = self; @@ -293,48 +186,23 @@ impl IWebUINavigatedEventArgs { } } } -::windows_core::imp::interface_hierarchy!(IWebUINavigatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IWebUINavigatedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IWebUINavigatedEventArgs { - type Vtable = IWebUINavigatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebUINavigatedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa75841b8_2499_4030_a69d_15d2d9cfe524); -} #[repr(C)] #[doc(hidden)] pub struct IWebUINavigatedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub NavigatedOperation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebUINavigatedOperation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebUINavigatedOperation { - type Vtable = IWebUINavigatedOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebUINavigatedOperation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7a965f08_8182_4a89_ab67_8492e8750d4b); -} +::windows_core::imp::com_interface!(IWebUINavigatedOperation, IWebUINavigatedOperation_Vtbl, 0x7a965f08_8182_4a89_ab67_8492e8750d4b); #[repr(C)] #[doc(hidden)] pub struct IWebUINavigatedOperation_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebUIView(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebUIView { - type Vtable = IWebUIView_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebUIView { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6783f64f_52da_4fd7_be69_8ef6284b423c); -} +::windows_core::imp::com_interface!(IWebUIView, IWebUIView_Vtbl, 0x6783f64f_52da_4fd7_be69_8ef6284b423c); #[repr(C)] #[doc(hidden)] pub struct IWebUIView_Vtbl { @@ -350,16 +218,7 @@ pub struct IWebUIView_Vtbl { pub IgnoreApplicationContentUriRulesNavigationRestrictions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetIgnoreApplicationContentUriRulesNavigationRestrictions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebUIViewStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebUIViewStatics { - type Vtable = IWebUIViewStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebUIViewStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb591e668_8e59_44f9_8803_1b24c9149d30); -} +::windows_core::imp::com_interface!(IWebUIViewStatics, IWebUIViewStatics_Vtbl, 0xb591e668_8e59_44f9_8803_1b24c9149d30); #[repr(C)] #[doc(hidden)] pub struct IWebUIViewStatics_Vtbl { @@ -370,6 +229,7 @@ pub struct IWebUIViewStatics_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ActivatedDeferral(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ActivatedDeferral, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ActivatedDeferral { pub fn Complete(&self) -> ::windows_core::Result<()> { let this = self; @@ -381,17 +241,15 @@ impl ::windows_core::RuntimeType for ActivatedDeferral { } unsafe impl ::windows_core::Interface for ActivatedDeferral { type Vtable = IActivatedDeferral_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ActivatedDeferral { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ActivatedDeferral { const NAME: &'static str = "Windows.UI.WebUI.ActivatedDeferral"; } -::windows_core::imp::interface_hierarchy!(ActivatedDeferral, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ActivatedOperation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ActivatedOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ActivatedOperation { pub fn GetDeferral(&self) -> ::windows_core::Result { let this = self; @@ -406,20 +264,21 @@ impl ::windows_core::RuntimeType for ActivatedOperation { } unsafe impl ::windows_core::Interface for ActivatedOperation { type Vtable = IActivatedOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ActivatedOperation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ActivatedOperation { const NAME: &'static str = "Windows.UI.WebUI.ActivatedOperation"; } -::windows_core::imp::interface_hierarchy!(ActivatedOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct BackgroundActivatedEventArgs(::windows_core::IUnknown); #[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::interface_hierarchy!(BackgroundActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::required_hierarchy!(BackgroundActivatedEventArgs, super::super::ApplicationModel::Activation::IBackgroundActivatedEventArgs); +#[cfg(feature = "ApplicationModel_Activation")] impl BackgroundActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`, `\"ApplicationModel_Background\"`"] #[cfg(all(feature = "ApplicationModel_Activation", feature = "ApplicationModel_Background"))] @@ -438,20 +297,13 @@ impl ::windows_core::RuntimeType for BackgroundActivatedEventArgs { #[cfg(feature = "ApplicationModel_Activation")] unsafe impl ::windows_core::Interface for BackgroundActivatedEventArgs { type Vtable = super::super::ApplicationModel::Activation::IBackgroundActivatedEventArgs_Vtbl; -} -#[cfg(feature = "ApplicationModel_Activation")] -unsafe impl ::windows_core::ComInterface for BackgroundActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "ApplicationModel_Activation")] impl ::windows_core::RuntimeName for BackgroundActivatedEventArgs { const NAME: &'static str = "Windows.UI.WebUI.BackgroundActivatedEventArgs"; } #[cfg(feature = "ApplicationModel_Activation")] -::windows_core::imp::interface_hierarchy!(BackgroundActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for BackgroundActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] unsafe impl ::core::marker::Send for BackgroundActivatedEventArgs {} #[cfg(feature = "ApplicationModel_Activation")] unsafe impl ::core::marker::Sync for BackgroundActivatedEventArgs {} @@ -461,6 +313,10 @@ unsafe impl ::core::marker::Sync for BackgroundActivatedEventArgs {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct EnteredBackgroundEventArgs(::windows_core::IUnknown); #[cfg(feature = "ApplicationModel")] +::windows_core::imp::interface_hierarchy!(EnteredBackgroundEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "ApplicationModel")] +::windows_core::imp::required_hierarchy!(EnteredBackgroundEventArgs, super::super::ApplicationModel::IEnteredBackgroundEventArgs); +#[cfg(feature = "ApplicationModel")] impl EnteredBackgroundEventArgs { #[doc = "Required features: `\"ApplicationModel\"`"] #[cfg(feature = "ApplicationModel")] @@ -479,29 +335,25 @@ impl ::windows_core::RuntimeType for EnteredBackgroundEventArgs { #[cfg(feature = "ApplicationModel")] unsafe impl ::windows_core::Interface for EnteredBackgroundEventArgs { type Vtable = super::super::ApplicationModel::IEnteredBackgroundEventArgs_Vtbl; -} -#[cfg(feature = "ApplicationModel")] -unsafe impl ::windows_core::ComInterface for EnteredBackgroundEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "ApplicationModel")] impl ::windows_core::RuntimeName for EnteredBackgroundEventArgs { const NAME: &'static str = "Windows.UI.WebUI.EnteredBackgroundEventArgs"; } #[cfg(feature = "ApplicationModel")] -::windows_core::imp::interface_hierarchy!(EnteredBackgroundEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "ApplicationModel")] -impl ::windows_core::CanTryInto for EnteredBackgroundEventArgs {} -#[cfg(feature = "ApplicationModel")] unsafe impl ::core::marker::Send for EnteredBackgroundEventArgs {} #[cfg(feature = "ApplicationModel")] unsafe impl ::core::marker::Sync for EnteredBackgroundEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HtmlPrintDocumentSource(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HtmlPrintDocumentSource, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Graphics_Printing")] +::windows_core::imp::required_hierarchy!(HtmlPrintDocumentSource, super::super::Foundation::IClosable, super::super::Graphics::Printing::IPrintDocumentSource); impl HtmlPrintDocumentSource { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Content(&self) -> ::windows_core::Result { @@ -612,17 +464,11 @@ impl ::windows_core::RuntimeType for HtmlPrintDocumentSource { } unsafe impl ::windows_core::Interface for HtmlPrintDocumentSource { type Vtable = IHtmlPrintDocumentSource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HtmlPrintDocumentSource { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HtmlPrintDocumentSource { const NAME: &'static str = "Windows.UI.WebUI.HtmlPrintDocumentSource"; } -::windows_core::imp::interface_hierarchy!(HtmlPrintDocumentSource, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for HtmlPrintDocumentSource {} -#[cfg(feature = "Graphics_Printing")] -impl ::windows_core::CanTryInto for HtmlPrintDocumentSource {} unsafe impl ::core::marker::Send for HtmlPrintDocumentSource {} unsafe impl ::core::marker::Sync for HtmlPrintDocumentSource {} #[doc = "Required features: `\"ApplicationModel\"`"] @@ -631,6 +477,10 @@ unsafe impl ::core::marker::Sync for HtmlPrintDocumentSource {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct LeavingBackgroundEventArgs(::windows_core::IUnknown); #[cfg(feature = "ApplicationModel")] +::windows_core::imp::interface_hierarchy!(LeavingBackgroundEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "ApplicationModel")] +::windows_core::imp::required_hierarchy!(LeavingBackgroundEventArgs, super::super::ApplicationModel::ILeavingBackgroundEventArgs); +#[cfg(feature = "ApplicationModel")] impl LeavingBackgroundEventArgs { #[doc = "Required features: `\"ApplicationModel\"`"] #[cfg(feature = "ApplicationModel")] @@ -649,26 +499,20 @@ impl ::windows_core::RuntimeType for LeavingBackgroundEventArgs { #[cfg(feature = "ApplicationModel")] unsafe impl ::windows_core::Interface for LeavingBackgroundEventArgs { type Vtable = super::super::ApplicationModel::ILeavingBackgroundEventArgs_Vtbl; -} -#[cfg(feature = "ApplicationModel")] -unsafe impl ::windows_core::ComInterface for LeavingBackgroundEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "ApplicationModel")] impl ::windows_core::RuntimeName for LeavingBackgroundEventArgs { const NAME: &'static str = "Windows.UI.WebUI.LeavingBackgroundEventArgs"; } #[cfg(feature = "ApplicationModel")] -::windows_core::imp::interface_hierarchy!(LeavingBackgroundEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "ApplicationModel")] -impl ::windows_core::CanTryInto for LeavingBackgroundEventArgs {} -#[cfg(feature = "ApplicationModel")] unsafe impl ::core::marker::Send for LeavingBackgroundEventArgs {} #[cfg(feature = "ApplicationModel")] unsafe impl ::core::marker::Sync for LeavingBackgroundEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct NewWebUIViewCreatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(NewWebUIViewCreatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl NewWebUIViewCreatedEventArgs { pub fn WebUIView(&self) -> ::windows_core::Result { let this = self; @@ -706,20 +550,21 @@ impl ::windows_core::RuntimeType for NewWebUIViewCreatedEventArgs { } unsafe impl ::windows_core::Interface for NewWebUIViewCreatedEventArgs { type Vtable = INewWebUIViewCreatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for NewWebUIViewCreatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for NewWebUIViewCreatedEventArgs { const NAME: &'static str = "Windows.UI.WebUI.NewWebUIViewCreatedEventArgs"; } -::windows_core::imp::interface_hierarchy!(NewWebUIViewCreatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); #[doc = "Required features: `\"ApplicationModel\"`"] #[cfg(feature = "ApplicationModel")] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SuspendingDeferral(::windows_core::IUnknown); #[cfg(feature = "ApplicationModel")] +::windows_core::imp::interface_hierarchy!(SuspendingDeferral, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "ApplicationModel")] +::windows_core::imp::required_hierarchy!(SuspendingDeferral, super::super::ApplicationModel::ISuspendingDeferral); +#[cfg(feature = "ApplicationModel")] impl SuspendingDeferral { #[doc = "Required features: `\"ApplicationModel\"`"] #[cfg(feature = "ApplicationModel")] @@ -735,25 +580,22 @@ impl ::windows_core::RuntimeType for SuspendingDeferral { #[cfg(feature = "ApplicationModel")] unsafe impl ::windows_core::Interface for SuspendingDeferral { type Vtable = super::super::ApplicationModel::ISuspendingDeferral_Vtbl; -} -#[cfg(feature = "ApplicationModel")] -unsafe impl ::windows_core::ComInterface for SuspendingDeferral { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "ApplicationModel")] impl ::windows_core::RuntimeName for SuspendingDeferral { const NAME: &'static str = "Windows.UI.WebUI.SuspendingDeferral"; } -#[cfg(feature = "ApplicationModel")] -::windows_core::imp::interface_hierarchy!(SuspendingDeferral, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "ApplicationModel")] -impl ::windows_core::CanTryInto for SuspendingDeferral {} #[doc = "Required features: `\"ApplicationModel\"`"] #[cfg(feature = "ApplicationModel")] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SuspendingEventArgs(::windows_core::IUnknown); #[cfg(feature = "ApplicationModel")] +::windows_core::imp::interface_hierarchy!(SuspendingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "ApplicationModel")] +::windows_core::imp::required_hierarchy!(SuspendingEventArgs, super::super::ApplicationModel::ISuspendingEventArgs); +#[cfg(feature = "ApplicationModel")] impl SuspendingEventArgs { #[doc = "Required features: `\"ApplicationModel\"`"] #[cfg(feature = "ApplicationModel")] @@ -772,25 +614,22 @@ impl ::windows_core::RuntimeType for SuspendingEventArgs { #[cfg(feature = "ApplicationModel")] unsafe impl ::windows_core::Interface for SuspendingEventArgs { type Vtable = super::super::ApplicationModel::ISuspendingEventArgs_Vtbl; -} -#[cfg(feature = "ApplicationModel")] -unsafe impl ::windows_core::ComInterface for SuspendingEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "ApplicationModel")] impl ::windows_core::RuntimeName for SuspendingEventArgs { const NAME: &'static str = "Windows.UI.WebUI.SuspendingEventArgs"; } -#[cfg(feature = "ApplicationModel")] -::windows_core::imp::interface_hierarchy!(SuspendingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "ApplicationModel")] -impl ::windows_core::CanTryInto for SuspendingEventArgs {} #[doc = "Required features: `\"ApplicationModel\"`"] #[cfg(feature = "ApplicationModel")] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SuspendingOperation(::windows_core::IUnknown); #[cfg(feature = "ApplicationModel")] +::windows_core::imp::interface_hierarchy!(SuspendingOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "ApplicationModel")] +::windows_core::imp::required_hierarchy!(SuspendingOperation, super::super::ApplicationModel::ISuspendingOperation); +#[cfg(feature = "ApplicationModel")] impl SuspendingOperation { #[doc = "Required features: `\"ApplicationModel\"`"] #[cfg(feature = "ApplicationModel")] @@ -818,19 +657,12 @@ impl ::windows_core::RuntimeType for SuspendingOperation { #[cfg(feature = "ApplicationModel")] unsafe impl ::windows_core::Interface for SuspendingOperation { type Vtable = super::super::ApplicationModel::ISuspendingOperation_Vtbl; -} -#[cfg(feature = "ApplicationModel")] -unsafe impl ::windows_core::ComInterface for SuspendingOperation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "ApplicationModel")] impl ::windows_core::RuntimeName for SuspendingOperation { const NAME: &'static str = "Windows.UI.WebUI.SuspendingOperation"; } -#[cfg(feature = "ApplicationModel")] -::windows_core::imp::interface_hierarchy!(SuspendingOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "ApplicationModel")] -impl ::windows_core::CanTryInto for SuspendingOperation {} pub struct WebUIApplication; impl WebUIApplication { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] @@ -991,11 +823,15 @@ impl ::windows_core::RuntimeName for WebUIApplication { #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebUIAppointmentsProviderAddAppointmentActivatedEventArgs(::windows_core::IUnknown); #[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::interface_hierarchy!(WebUIAppointmentsProviderAddAppointmentActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::required_hierarchy!(WebUIAppointmentsProviderAddAppointmentActivatedEventArgs, super::super::ApplicationModel::Activation::IActivatedEventArgs, IActivatedEventArgsDeferral, super::super::ApplicationModel::Activation::IActivatedEventArgsWithUser, super::super::ApplicationModel::Activation::IAppointmentsProviderActivatedEventArgs, super::super::ApplicationModel::Activation::IAppointmentsProviderAddAppointmentActivatedEventArgs); +#[cfg(feature = "ApplicationModel_Activation")] impl WebUIAppointmentsProviderAddAppointmentActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1004,7 +840,7 @@ impl WebUIAppointmentsProviderAddAppointmentActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1013,14 +849,14 @@ impl WebUIAppointmentsProviderAddAppointmentActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ActivatedOperation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ActivatedOperation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1029,7 +865,7 @@ impl WebUIAppointmentsProviderAddAppointmentActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`, `\"System\"`"] #[cfg(all(feature = "ApplicationModel_Activation", feature = "System"))] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1038,7 +874,7 @@ impl WebUIAppointmentsProviderAddAppointmentActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn Verb(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Verb)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1061,38 +897,27 @@ impl ::windows_core::RuntimeType for WebUIAppointmentsProviderAddAppointmentActi #[cfg(feature = "ApplicationModel_Activation")] unsafe impl ::windows_core::Interface for WebUIAppointmentsProviderAddAppointmentActivatedEventArgs { type Vtable = super::super::ApplicationModel::Activation::IAppointmentsProviderAddAppointmentActivatedEventArgs_Vtbl; -} -#[cfg(feature = "ApplicationModel_Activation")] -unsafe impl ::windows_core::ComInterface for WebUIAppointmentsProviderAddAppointmentActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "ApplicationModel_Activation")] impl ::windows_core::RuntimeName for WebUIAppointmentsProviderAddAppointmentActivatedEventArgs { const NAME: &'static str = "Windows.UI.WebUI.WebUIAppointmentsProviderAddAppointmentActivatedEventArgs"; } -#[cfg(feature = "ApplicationModel_Activation")] -::windows_core::imp::interface_hierarchy!(WebUIAppointmentsProviderAddAppointmentActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIAppointmentsProviderAddAppointmentActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIAppointmentsProviderAddAppointmentActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIAppointmentsProviderAddAppointmentActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIAppointmentsProviderAddAppointmentActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIAppointmentsProviderAddAppointmentActivatedEventArgs {} #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebUIAppointmentsProviderRemoveAppointmentActivatedEventArgs(::windows_core::IUnknown); #[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::interface_hierarchy!(WebUIAppointmentsProviderRemoveAppointmentActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::required_hierarchy!(WebUIAppointmentsProviderRemoveAppointmentActivatedEventArgs, super::super::ApplicationModel::Activation::IActivatedEventArgs, IActivatedEventArgsDeferral, super::super::ApplicationModel::Activation::IActivatedEventArgsWithUser, super::super::ApplicationModel::Activation::IAppointmentsProviderActivatedEventArgs, super::super::ApplicationModel::Activation::IAppointmentsProviderRemoveAppointmentActivatedEventArgs); +#[cfg(feature = "ApplicationModel_Activation")] impl WebUIAppointmentsProviderRemoveAppointmentActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1101,7 +926,7 @@ impl WebUIAppointmentsProviderRemoveAppointmentActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1110,14 +935,14 @@ impl WebUIAppointmentsProviderRemoveAppointmentActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ActivatedOperation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ActivatedOperation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1126,7 +951,7 @@ impl WebUIAppointmentsProviderRemoveAppointmentActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`, `\"System\"`"] #[cfg(all(feature = "ApplicationModel_Activation", feature = "System"))] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1135,7 +960,7 @@ impl WebUIAppointmentsProviderRemoveAppointmentActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn Verb(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Verb)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1158,38 +983,27 @@ impl ::windows_core::RuntimeType for WebUIAppointmentsProviderRemoveAppointmentA #[cfg(feature = "ApplicationModel_Activation")] unsafe impl ::windows_core::Interface for WebUIAppointmentsProviderRemoveAppointmentActivatedEventArgs { type Vtable = super::super::ApplicationModel::Activation::IAppointmentsProviderRemoveAppointmentActivatedEventArgs_Vtbl; -} -#[cfg(feature = "ApplicationModel_Activation")] -unsafe impl ::windows_core::ComInterface for WebUIAppointmentsProviderRemoveAppointmentActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "ApplicationModel_Activation")] impl ::windows_core::RuntimeName for WebUIAppointmentsProviderRemoveAppointmentActivatedEventArgs { const NAME: &'static str = "Windows.UI.WebUI.WebUIAppointmentsProviderRemoveAppointmentActivatedEventArgs"; } -#[cfg(feature = "ApplicationModel_Activation")] -::windows_core::imp::interface_hierarchy!(WebUIAppointmentsProviderRemoveAppointmentActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIAppointmentsProviderRemoveAppointmentActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIAppointmentsProviderRemoveAppointmentActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIAppointmentsProviderRemoveAppointmentActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIAppointmentsProviderRemoveAppointmentActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIAppointmentsProviderRemoveAppointmentActivatedEventArgs {} #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebUIAppointmentsProviderReplaceAppointmentActivatedEventArgs(::windows_core::IUnknown); #[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::interface_hierarchy!(WebUIAppointmentsProviderReplaceAppointmentActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::required_hierarchy!(WebUIAppointmentsProviderReplaceAppointmentActivatedEventArgs, super::super::ApplicationModel::Activation::IActivatedEventArgs, IActivatedEventArgsDeferral, super::super::ApplicationModel::Activation::IActivatedEventArgsWithUser, super::super::ApplicationModel::Activation::IAppointmentsProviderActivatedEventArgs, super::super::ApplicationModel::Activation::IAppointmentsProviderReplaceAppointmentActivatedEventArgs); +#[cfg(feature = "ApplicationModel_Activation")] impl WebUIAppointmentsProviderReplaceAppointmentActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1198,7 +1012,7 @@ impl WebUIAppointmentsProviderReplaceAppointmentActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1207,14 +1021,14 @@ impl WebUIAppointmentsProviderReplaceAppointmentActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ActivatedOperation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ActivatedOperation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1223,7 +1037,7 @@ impl WebUIAppointmentsProviderReplaceAppointmentActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`, `\"System\"`"] #[cfg(all(feature = "ApplicationModel_Activation", feature = "System"))] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1232,7 +1046,7 @@ impl WebUIAppointmentsProviderReplaceAppointmentActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn Verb(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Verb)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1255,38 +1069,27 @@ impl ::windows_core::RuntimeType for WebUIAppointmentsProviderReplaceAppointment #[cfg(feature = "ApplicationModel_Activation")] unsafe impl ::windows_core::Interface for WebUIAppointmentsProviderReplaceAppointmentActivatedEventArgs { type Vtable = super::super::ApplicationModel::Activation::IAppointmentsProviderReplaceAppointmentActivatedEventArgs_Vtbl; -} -#[cfg(feature = "ApplicationModel_Activation")] -unsafe impl ::windows_core::ComInterface for WebUIAppointmentsProviderReplaceAppointmentActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "ApplicationModel_Activation")] impl ::windows_core::RuntimeName for WebUIAppointmentsProviderReplaceAppointmentActivatedEventArgs { const NAME: &'static str = "Windows.UI.WebUI.WebUIAppointmentsProviderReplaceAppointmentActivatedEventArgs"; } -#[cfg(feature = "ApplicationModel_Activation")] -::windows_core::imp::interface_hierarchy!(WebUIAppointmentsProviderReplaceAppointmentActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIAppointmentsProviderReplaceAppointmentActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIAppointmentsProviderReplaceAppointmentActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIAppointmentsProviderReplaceAppointmentActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIAppointmentsProviderReplaceAppointmentActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIAppointmentsProviderReplaceAppointmentActivatedEventArgs {} #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebUIAppointmentsProviderShowAppointmentDetailsActivatedEventArgs(::windows_core::IUnknown); #[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::interface_hierarchy!(WebUIAppointmentsProviderShowAppointmentDetailsActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::required_hierarchy!(WebUIAppointmentsProviderShowAppointmentDetailsActivatedEventArgs, super::super::ApplicationModel::Activation::IActivatedEventArgs, IActivatedEventArgsDeferral, super::super::ApplicationModel::Activation::IActivatedEventArgsWithUser, super::super::ApplicationModel::Activation::IAppointmentsProviderActivatedEventArgs, super::super::ApplicationModel::Activation::IAppointmentsProviderShowAppointmentDetailsActivatedEventArgs); +#[cfg(feature = "ApplicationModel_Activation")] impl WebUIAppointmentsProviderShowAppointmentDetailsActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1295,7 +1098,7 @@ impl WebUIAppointmentsProviderShowAppointmentDetailsActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1304,14 +1107,14 @@ impl WebUIAppointmentsProviderShowAppointmentDetailsActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ActivatedOperation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ActivatedOperation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1320,7 +1123,7 @@ impl WebUIAppointmentsProviderShowAppointmentDetailsActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`, `\"System\"`"] #[cfg(all(feature = "ApplicationModel_Activation", feature = "System"))] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1329,7 +1132,7 @@ impl WebUIAppointmentsProviderShowAppointmentDetailsActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn Verb(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Verb)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1370,38 +1173,27 @@ impl ::windows_core::RuntimeType for WebUIAppointmentsProviderShowAppointmentDet #[cfg(feature = "ApplicationModel_Activation")] unsafe impl ::windows_core::Interface for WebUIAppointmentsProviderShowAppointmentDetailsActivatedEventArgs { type Vtable = super::super::ApplicationModel::Activation::IAppointmentsProviderShowAppointmentDetailsActivatedEventArgs_Vtbl; -} -#[cfg(feature = "ApplicationModel_Activation")] -unsafe impl ::windows_core::ComInterface for WebUIAppointmentsProviderShowAppointmentDetailsActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "ApplicationModel_Activation")] impl ::windows_core::RuntimeName for WebUIAppointmentsProviderShowAppointmentDetailsActivatedEventArgs { const NAME: &'static str = "Windows.UI.WebUI.WebUIAppointmentsProviderShowAppointmentDetailsActivatedEventArgs"; } -#[cfg(feature = "ApplicationModel_Activation")] -::windows_core::imp::interface_hierarchy!(WebUIAppointmentsProviderShowAppointmentDetailsActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIAppointmentsProviderShowAppointmentDetailsActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIAppointmentsProviderShowAppointmentDetailsActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIAppointmentsProviderShowAppointmentDetailsActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIAppointmentsProviderShowAppointmentDetailsActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIAppointmentsProviderShowAppointmentDetailsActivatedEventArgs {} #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebUIAppointmentsProviderShowTimeFrameActivatedEventArgs(::windows_core::IUnknown); #[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::interface_hierarchy!(WebUIAppointmentsProviderShowTimeFrameActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::required_hierarchy!(WebUIAppointmentsProviderShowTimeFrameActivatedEventArgs, super::super::ApplicationModel::Activation::IActivatedEventArgs, IActivatedEventArgsDeferral, super::super::ApplicationModel::Activation::IActivatedEventArgsWithUser, super::super::ApplicationModel::Activation::IAppointmentsProviderActivatedEventArgs, super::super::ApplicationModel::Activation::IAppointmentsProviderShowTimeFrameActivatedEventArgs); +#[cfg(feature = "ApplicationModel_Activation")] impl WebUIAppointmentsProviderShowTimeFrameActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1410,7 +1202,7 @@ impl WebUIAppointmentsProviderShowTimeFrameActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1419,14 +1211,14 @@ impl WebUIAppointmentsProviderShowTimeFrameActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ActivatedOperation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ActivatedOperation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1435,7 +1227,7 @@ impl WebUIAppointmentsProviderShowTimeFrameActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`, `\"System\"`"] #[cfg(all(feature = "ApplicationModel_Activation", feature = "System"))] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1444,7 +1236,7 @@ impl WebUIAppointmentsProviderShowTimeFrameActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn Verb(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Verb)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1476,27 +1268,12 @@ impl ::windows_core::RuntimeType for WebUIAppointmentsProviderShowTimeFrameActiv #[cfg(feature = "ApplicationModel_Activation")] unsafe impl ::windows_core::Interface for WebUIAppointmentsProviderShowTimeFrameActivatedEventArgs { type Vtable = super::super::ApplicationModel::Activation::IAppointmentsProviderShowTimeFrameActivatedEventArgs_Vtbl; -} -#[cfg(feature = "ApplicationModel_Activation")] -unsafe impl ::windows_core::ComInterface for WebUIAppointmentsProviderShowTimeFrameActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "ApplicationModel_Activation")] impl ::windows_core::RuntimeName for WebUIAppointmentsProviderShowTimeFrameActivatedEventArgs { const NAME: &'static str = "Windows.UI.WebUI.WebUIAppointmentsProviderShowTimeFrameActivatedEventArgs"; } -#[cfg(feature = "ApplicationModel_Activation")] -::windows_core::imp::interface_hierarchy!(WebUIAppointmentsProviderShowTimeFrameActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIAppointmentsProviderShowTimeFrameActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIAppointmentsProviderShowTimeFrameActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIAppointmentsProviderShowTimeFrameActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIAppointmentsProviderShowTimeFrameActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIAppointmentsProviderShowTimeFrameActivatedEventArgs {} pub struct WebUIBackgroundTaskInstance; impl WebUIBackgroundTaskInstance { pub fn Current() -> ::windows_core::Result { @@ -1517,11 +1294,14 @@ impl ::windows_core::RuntimeName for WebUIBackgroundTaskInstance { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebUIBackgroundTaskInstanceRuntimeClass(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WebUIBackgroundTaskInstanceRuntimeClass, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "ApplicationModel_Background")] +::windows_core::imp::required_hierarchy!(WebUIBackgroundTaskInstanceRuntimeClass, super::super::ApplicationModel::Background::IBackgroundTaskInstance, IWebUIBackgroundTaskInstance); impl WebUIBackgroundTaskInstanceRuntimeClass { #[doc = "Required features: `\"ApplicationModel_Background\"`"] #[cfg(feature = "ApplicationModel_Background")] pub fn InstanceId(&self) -> ::windows_core::Result<::windows_core::GUID> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).InstanceId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1530,7 +1310,7 @@ impl WebUIBackgroundTaskInstanceRuntimeClass { #[doc = "Required features: `\"ApplicationModel_Background\"`"] #[cfg(feature = "ApplicationModel_Background")] pub fn Task(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Task)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1539,7 +1319,7 @@ impl WebUIBackgroundTaskInstanceRuntimeClass { #[doc = "Required features: `\"ApplicationModel_Background\"`"] #[cfg(feature = "ApplicationModel_Background")] pub fn Progress(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + 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), &mut result__).from_abi(result__) @@ -1548,13 +1328,13 @@ impl WebUIBackgroundTaskInstanceRuntimeClass { #[doc = "Required features: `\"ApplicationModel_Background\"`"] #[cfg(feature = "ApplicationModel_Background")] pub fn SetProgress(&self, value: u32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetProgress)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"ApplicationModel_Background\"`"] #[cfg(feature = "ApplicationModel_Background")] pub fn TriggerDetails(&self) -> ::windows_core::Result<::windows_core::IInspectable> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TriggerDetails)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1566,7 +1346,7 @@ impl WebUIBackgroundTaskInstanceRuntimeClass { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -1575,13 +1355,13 @@ impl WebUIBackgroundTaskInstanceRuntimeClass { #[doc = "Required features: `\"ApplicationModel_Background\"`"] #[cfg(feature = "ApplicationModel_Background")] pub fn RemoveCanceled(&self, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveCanceled)(::windows_core::Interface::as_raw(this), cookie).ok() } } #[doc = "Required features: `\"ApplicationModel_Background\"`"] #[cfg(feature = "ApplicationModel_Background")] pub fn SuspendedCount(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SuspendedCount)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1590,7 +1370,7 @@ impl WebUIBackgroundTaskInstanceRuntimeClass { #[doc = "Required features: `\"ApplicationModel_Background\"`"] #[cfg(feature = "ApplicationModel_Background")] pub fn GetDeferral(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetDeferral)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1613,28 +1393,26 @@ impl ::windows_core::RuntimeType for WebUIBackgroundTaskInstanceRuntimeClass { } unsafe impl ::windows_core::Interface for WebUIBackgroundTaskInstanceRuntimeClass { type Vtable = IWebUIBackgroundTaskInstance_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WebUIBackgroundTaskInstanceRuntimeClass { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WebUIBackgroundTaskInstanceRuntimeClass { const NAME: &'static str = "Windows.UI.WebUI.WebUIBackgroundTaskInstanceRuntimeClass"; } -::windows_core::imp::interface_hierarchy!(WebUIBackgroundTaskInstanceRuntimeClass, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "ApplicationModel_Background")] -impl ::windows_core::CanTryInto for WebUIBackgroundTaskInstanceRuntimeClass {} -impl ::windows_core::CanTryInto for WebUIBackgroundTaskInstanceRuntimeClass {} #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebUIBarcodeScannerPreviewActivatedEventArgs(::windows_core::IUnknown); #[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::interface_hierarchy!(WebUIBarcodeScannerPreviewActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::required_hierarchy!(WebUIBarcodeScannerPreviewActivatedEventArgs, super::super::ApplicationModel::Activation::IActivatedEventArgs, IActivatedEventArgsDeferral, super::super::ApplicationModel::Activation::IActivatedEventArgsWithUser, super::super::ApplicationModel::Activation::IBarcodeScannerPreviewActivatedEventArgs); +#[cfg(feature = "ApplicationModel_Activation")] impl WebUIBarcodeScannerPreviewActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1643,7 +1421,7 @@ impl WebUIBarcodeScannerPreviewActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1652,14 +1430,14 @@ impl WebUIBarcodeScannerPreviewActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ActivatedOperation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ActivatedOperation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1668,7 +1446,7 @@ impl WebUIBarcodeScannerPreviewActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`, `\"System\"`"] #[cfg(all(feature = "ApplicationModel_Activation", feature = "System"))] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1691,26 +1469,13 @@ impl ::windows_core::RuntimeType for WebUIBarcodeScannerPreviewActivatedEventArg #[cfg(feature = "ApplicationModel_Activation")] unsafe impl ::windows_core::Interface for WebUIBarcodeScannerPreviewActivatedEventArgs { type Vtable = super::super::ApplicationModel::Activation::IBarcodeScannerPreviewActivatedEventArgs_Vtbl; -} -#[cfg(feature = "ApplicationModel_Activation")] -unsafe impl ::windows_core::ComInterface for WebUIBarcodeScannerPreviewActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "ApplicationModel_Activation")] impl ::windows_core::RuntimeName for WebUIBarcodeScannerPreviewActivatedEventArgs { const NAME: &'static str = "Windows.UI.WebUI.WebUIBarcodeScannerPreviewActivatedEventArgs"; } #[cfg(feature = "ApplicationModel_Activation")] -::windows_core::imp::interface_hierarchy!(WebUIBarcodeScannerPreviewActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIBarcodeScannerPreviewActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIBarcodeScannerPreviewActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIBarcodeScannerPreviewActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIBarcodeScannerPreviewActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] unsafe impl ::core::marker::Send for WebUIBarcodeScannerPreviewActivatedEventArgs {} #[cfg(feature = "ApplicationModel_Activation")] unsafe impl ::core::marker::Sync for WebUIBarcodeScannerPreviewActivatedEventArgs {} @@ -1720,11 +1485,15 @@ unsafe impl ::core::marker::Sync for WebUIBarcodeScannerPreviewActivatedEventArg #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebUICachedFileUpdaterActivatedEventArgs(::windows_core::IUnknown); #[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::interface_hierarchy!(WebUICachedFileUpdaterActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::required_hierarchy!(WebUICachedFileUpdaterActivatedEventArgs, super::super::ApplicationModel::Activation::IActivatedEventArgs, IActivatedEventArgsDeferral, super::super::ApplicationModel::Activation::IActivatedEventArgsWithUser, super::super::ApplicationModel::Activation::ICachedFileUpdaterActivatedEventArgs); +#[cfg(feature = "ApplicationModel_Activation")] impl WebUICachedFileUpdaterActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1733,7 +1502,7 @@ impl WebUICachedFileUpdaterActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1742,14 +1511,14 @@ impl WebUICachedFileUpdaterActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ActivatedOperation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ActivatedOperation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1758,7 +1527,7 @@ impl WebUICachedFileUpdaterActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`, `\"System\"`"] #[cfg(all(feature = "ApplicationModel_Activation", feature = "System"))] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1781,36 +1550,27 @@ impl ::windows_core::RuntimeType for WebUICachedFileUpdaterActivatedEventArgs { #[cfg(feature = "ApplicationModel_Activation")] unsafe impl ::windows_core::Interface for WebUICachedFileUpdaterActivatedEventArgs { type Vtable = super::super::ApplicationModel::Activation::ICachedFileUpdaterActivatedEventArgs_Vtbl; -} -#[cfg(feature = "ApplicationModel_Activation")] -unsafe impl ::windows_core::ComInterface for WebUICachedFileUpdaterActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "ApplicationModel_Activation")] impl ::windows_core::RuntimeName for WebUICachedFileUpdaterActivatedEventArgs { const NAME: &'static str = "Windows.UI.WebUI.WebUICachedFileUpdaterActivatedEventArgs"; } -#[cfg(feature = "ApplicationModel_Activation")] -::windows_core::imp::interface_hierarchy!(WebUICachedFileUpdaterActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUICachedFileUpdaterActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUICachedFileUpdaterActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUICachedFileUpdaterActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUICachedFileUpdaterActivatedEventArgs {} #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebUICameraSettingsActivatedEventArgs(::windows_core::IUnknown); #[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::interface_hierarchy!(WebUICameraSettingsActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::required_hierarchy!(WebUICameraSettingsActivatedEventArgs, super::super::ApplicationModel::Activation::IActivatedEventArgs, IActivatedEventArgsDeferral, super::super::ApplicationModel::Activation::ICameraSettingsActivatedEventArgs); +#[cfg(feature = "ApplicationModel_Activation")] impl WebUICameraSettingsActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1819,7 +1579,7 @@ impl WebUICameraSettingsActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1828,14 +1588,14 @@ impl WebUICameraSettingsActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ActivatedOperation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ActivatedOperation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1867,34 +1627,27 @@ impl ::windows_core::RuntimeType for WebUICameraSettingsActivatedEventArgs { #[cfg(feature = "ApplicationModel_Activation")] unsafe impl ::windows_core::Interface for WebUICameraSettingsActivatedEventArgs { type Vtable = super::super::ApplicationModel::Activation::ICameraSettingsActivatedEventArgs_Vtbl; -} -#[cfg(feature = "ApplicationModel_Activation")] -unsafe impl ::windows_core::ComInterface for WebUICameraSettingsActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "ApplicationModel_Activation")] impl ::windows_core::RuntimeName for WebUICameraSettingsActivatedEventArgs { const NAME: &'static str = "Windows.UI.WebUI.WebUICameraSettingsActivatedEventArgs"; } -#[cfg(feature = "ApplicationModel_Activation")] -::windows_core::imp::interface_hierarchy!(WebUICameraSettingsActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUICameraSettingsActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUICameraSettingsActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUICameraSettingsActivatedEventArgs {} #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebUICommandLineActivatedEventArgs(::windows_core::IUnknown); #[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::interface_hierarchy!(WebUICommandLineActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::required_hierarchy!(WebUICommandLineActivatedEventArgs, super::super::ApplicationModel::Activation::IActivatedEventArgs, IActivatedEventArgsDeferral, super::super::ApplicationModel::Activation::IActivatedEventArgsWithUser, super::super::ApplicationModel::Activation::ICommandLineActivatedEventArgs); +#[cfg(feature = "ApplicationModel_Activation")] impl WebUICommandLineActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1903,7 +1656,7 @@ impl WebUICommandLineActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1912,14 +1665,14 @@ impl WebUICommandLineActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ActivatedOperation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ActivatedOperation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1928,7 +1681,7 @@ impl WebUICommandLineActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`, `\"System\"`"] #[cfg(all(feature = "ApplicationModel_Activation", feature = "System"))] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1951,26 +1704,13 @@ impl ::windows_core::RuntimeType for WebUICommandLineActivatedEventArgs { #[cfg(feature = "ApplicationModel_Activation")] unsafe impl ::windows_core::Interface for WebUICommandLineActivatedEventArgs { type Vtable = super::super::ApplicationModel::Activation::ICommandLineActivatedEventArgs_Vtbl; -} -#[cfg(feature = "ApplicationModel_Activation")] -unsafe impl ::windows_core::ComInterface for WebUICommandLineActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "ApplicationModel_Activation")] impl ::windows_core::RuntimeName for WebUICommandLineActivatedEventArgs { const NAME: &'static str = "Windows.UI.WebUI.WebUICommandLineActivatedEventArgs"; } #[cfg(feature = "ApplicationModel_Activation")] -::windows_core::imp::interface_hierarchy!(WebUICommandLineActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUICommandLineActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUICommandLineActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUICommandLineActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUICommandLineActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] unsafe impl ::core::marker::Send for WebUICommandLineActivatedEventArgs {} #[cfg(feature = "ApplicationModel_Activation")] unsafe impl ::core::marker::Sync for WebUICommandLineActivatedEventArgs {} @@ -1980,11 +1720,15 @@ unsafe impl ::core::marker::Sync for WebUICommandLineActivatedEventArgs {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebUIContactCallActivatedEventArgs(::windows_core::IUnknown); #[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::interface_hierarchy!(WebUIContactCallActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::required_hierarchy!(WebUIContactCallActivatedEventArgs, super::super::ApplicationModel::Activation::IActivatedEventArgs, IActivatedEventArgsDeferral, super::super::ApplicationModel::Activation::IContactActivatedEventArgs, super::super::ApplicationModel::Activation::IContactCallActivatedEventArgs); +#[cfg(feature = "ApplicationModel_Activation")] impl WebUIContactCallActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1993,7 +1737,7 @@ impl WebUIContactCallActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2002,14 +1746,14 @@ impl WebUIContactCallActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ActivatedOperation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ActivatedOperation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2018,7 +1762,7 @@ impl WebUIContactCallActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn Verb(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Verb)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2059,36 +1803,27 @@ impl ::windows_core::RuntimeType for WebUIContactCallActivatedEventArgs { #[cfg(feature = "ApplicationModel_Activation")] unsafe impl ::windows_core::Interface for WebUIContactCallActivatedEventArgs { type Vtable = super::super::ApplicationModel::Activation::IContactCallActivatedEventArgs_Vtbl; -} -#[cfg(feature = "ApplicationModel_Activation")] -unsafe impl ::windows_core::ComInterface for WebUIContactCallActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "ApplicationModel_Activation")] impl ::windows_core::RuntimeName for WebUIContactCallActivatedEventArgs { const NAME: &'static str = "Windows.UI.WebUI.WebUIContactCallActivatedEventArgs"; } -#[cfg(feature = "ApplicationModel_Activation")] -::windows_core::imp::interface_hierarchy!(WebUIContactCallActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIContactCallActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIContactCallActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIContactCallActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIContactCallActivatedEventArgs {} #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebUIContactMapActivatedEventArgs(::windows_core::IUnknown); #[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::interface_hierarchy!(WebUIContactMapActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::required_hierarchy!(WebUIContactMapActivatedEventArgs, super::super::ApplicationModel::Activation::IActivatedEventArgs, IActivatedEventArgsDeferral, super::super::ApplicationModel::Activation::IContactActivatedEventArgs, super::super::ApplicationModel::Activation::IContactMapActivatedEventArgs); +#[cfg(feature = "ApplicationModel_Activation")] impl WebUIContactMapActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2097,7 +1832,7 @@ impl WebUIContactMapActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2106,14 +1841,14 @@ impl WebUIContactMapActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ActivatedOperation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ActivatedOperation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2122,7 +1857,7 @@ impl WebUIContactMapActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn Verb(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Verb)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2154,36 +1889,27 @@ impl ::windows_core::RuntimeType for WebUIContactMapActivatedEventArgs { #[cfg(feature = "ApplicationModel_Activation")] unsafe impl ::windows_core::Interface for WebUIContactMapActivatedEventArgs { type Vtable = super::super::ApplicationModel::Activation::IContactMapActivatedEventArgs_Vtbl; -} -#[cfg(feature = "ApplicationModel_Activation")] -unsafe impl ::windows_core::ComInterface for WebUIContactMapActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "ApplicationModel_Activation")] impl ::windows_core::RuntimeName for WebUIContactMapActivatedEventArgs { const NAME: &'static str = "Windows.UI.WebUI.WebUIContactMapActivatedEventArgs"; } -#[cfg(feature = "ApplicationModel_Activation")] -::windows_core::imp::interface_hierarchy!(WebUIContactMapActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIContactMapActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIContactMapActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIContactMapActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIContactMapActivatedEventArgs {} #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebUIContactMessageActivatedEventArgs(::windows_core::IUnknown); #[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::interface_hierarchy!(WebUIContactMessageActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::required_hierarchy!(WebUIContactMessageActivatedEventArgs, super::super::ApplicationModel::Activation::IActivatedEventArgs, IActivatedEventArgsDeferral, super::super::ApplicationModel::Activation::IContactActivatedEventArgs, super::super::ApplicationModel::Activation::IContactMessageActivatedEventArgs); +#[cfg(feature = "ApplicationModel_Activation")] impl WebUIContactMessageActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2192,7 +1918,7 @@ impl WebUIContactMessageActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2201,14 +1927,14 @@ impl WebUIContactMessageActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ActivatedOperation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ActivatedOperation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2217,7 +1943,7 @@ impl WebUIContactMessageActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn Verb(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Verb)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2258,36 +1984,27 @@ impl ::windows_core::RuntimeType for WebUIContactMessageActivatedEventArgs { #[cfg(feature = "ApplicationModel_Activation")] unsafe impl ::windows_core::Interface for WebUIContactMessageActivatedEventArgs { type Vtable = super::super::ApplicationModel::Activation::IContactMessageActivatedEventArgs_Vtbl; -} -#[cfg(feature = "ApplicationModel_Activation")] -unsafe impl ::windows_core::ComInterface for WebUIContactMessageActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "ApplicationModel_Activation")] impl ::windows_core::RuntimeName for WebUIContactMessageActivatedEventArgs { const NAME: &'static str = "Windows.UI.WebUI.WebUIContactMessageActivatedEventArgs"; } -#[cfg(feature = "ApplicationModel_Activation")] -::windows_core::imp::interface_hierarchy!(WebUIContactMessageActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIContactMessageActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIContactMessageActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIContactMessageActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIContactMessageActivatedEventArgs {} #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebUIContactPanelActivatedEventArgs(::windows_core::IUnknown); #[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::interface_hierarchy!(WebUIContactPanelActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::required_hierarchy!(WebUIContactPanelActivatedEventArgs, super::super::ApplicationModel::Activation::IActivatedEventArgs, IActivatedEventArgsDeferral, super::super::ApplicationModel::Activation::IActivatedEventArgsWithUser, super::super::ApplicationModel::Activation::IContactPanelActivatedEventArgs); +#[cfg(feature = "ApplicationModel_Activation")] impl WebUIContactPanelActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2296,7 +2013,7 @@ impl WebUIContactPanelActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2305,14 +2022,14 @@ impl WebUIContactPanelActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ActivatedOperation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ActivatedOperation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2321,7 +2038,7 @@ impl WebUIContactPanelActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`, `\"System\"`"] #[cfg(all(feature = "ApplicationModel_Activation", feature = "System"))] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2353,26 +2070,13 @@ impl ::windows_core::RuntimeType for WebUIContactPanelActivatedEventArgs { #[cfg(feature = "ApplicationModel_Activation")] unsafe impl ::windows_core::Interface for WebUIContactPanelActivatedEventArgs { type Vtable = super::super::ApplicationModel::Activation::IContactPanelActivatedEventArgs_Vtbl; -} -#[cfg(feature = "ApplicationModel_Activation")] -unsafe impl ::windows_core::ComInterface for WebUIContactPanelActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "ApplicationModel_Activation")] impl ::windows_core::RuntimeName for WebUIContactPanelActivatedEventArgs { const NAME: &'static str = "Windows.UI.WebUI.WebUIContactPanelActivatedEventArgs"; } #[cfg(feature = "ApplicationModel_Activation")] -::windows_core::imp::interface_hierarchy!(WebUIContactPanelActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIContactPanelActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIContactPanelActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIContactPanelActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIContactPanelActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] unsafe impl ::core::marker::Send for WebUIContactPanelActivatedEventArgs {} #[cfg(feature = "ApplicationModel_Activation")] unsafe impl ::core::marker::Sync for WebUIContactPanelActivatedEventArgs {} @@ -2382,11 +2086,15 @@ unsafe impl ::core::marker::Sync for WebUIContactPanelActivatedEventArgs {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebUIContactPickerActivatedEventArgs(::windows_core::IUnknown); #[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::interface_hierarchy!(WebUIContactPickerActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::required_hierarchy!(WebUIContactPickerActivatedEventArgs, super::super::ApplicationModel::Activation::IActivatedEventArgs, IActivatedEventArgsDeferral, super::super::ApplicationModel::Activation::IContactPickerActivatedEventArgs); +#[cfg(feature = "ApplicationModel_Activation")] impl WebUIContactPickerActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2395,7 +2103,7 @@ impl WebUIContactPickerActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2404,14 +2112,14 @@ impl WebUIContactPickerActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ActivatedOperation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ActivatedOperation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2434,34 +2142,27 @@ impl ::windows_core::RuntimeType for WebUIContactPickerActivatedEventArgs { #[cfg(feature = "ApplicationModel_Activation")] unsafe impl ::windows_core::Interface for WebUIContactPickerActivatedEventArgs { type Vtable = super::super::ApplicationModel::Activation::IContactPickerActivatedEventArgs_Vtbl; -} -#[cfg(feature = "ApplicationModel_Activation")] -unsafe impl ::windows_core::ComInterface for WebUIContactPickerActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "ApplicationModel_Activation")] impl ::windows_core::RuntimeName for WebUIContactPickerActivatedEventArgs { const NAME: &'static str = "Windows.UI.WebUI.WebUIContactPickerActivatedEventArgs"; } -#[cfg(feature = "ApplicationModel_Activation")] -::windows_core::imp::interface_hierarchy!(WebUIContactPickerActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIContactPickerActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIContactPickerActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIContactPickerActivatedEventArgs {} #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebUIContactPostActivatedEventArgs(::windows_core::IUnknown); #[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::interface_hierarchy!(WebUIContactPostActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::required_hierarchy!(WebUIContactPostActivatedEventArgs, super::super::ApplicationModel::Activation::IActivatedEventArgs, IActivatedEventArgsDeferral, super::super::ApplicationModel::Activation::IContactActivatedEventArgs, super::super::ApplicationModel::Activation::IContactPostActivatedEventArgs); +#[cfg(feature = "ApplicationModel_Activation")] impl WebUIContactPostActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2470,7 +2171,7 @@ impl WebUIContactPostActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2479,14 +2180,14 @@ impl WebUIContactPostActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ActivatedOperation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ActivatedOperation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2495,7 +2196,7 @@ impl WebUIContactPostActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn Verb(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Verb)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2536,36 +2237,27 @@ impl ::windows_core::RuntimeType for WebUIContactPostActivatedEventArgs { #[cfg(feature = "ApplicationModel_Activation")] unsafe impl ::windows_core::Interface for WebUIContactPostActivatedEventArgs { type Vtable = super::super::ApplicationModel::Activation::IContactPostActivatedEventArgs_Vtbl; -} -#[cfg(feature = "ApplicationModel_Activation")] -unsafe impl ::windows_core::ComInterface for WebUIContactPostActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "ApplicationModel_Activation")] impl ::windows_core::RuntimeName for WebUIContactPostActivatedEventArgs { const NAME: &'static str = "Windows.UI.WebUI.WebUIContactPostActivatedEventArgs"; } -#[cfg(feature = "ApplicationModel_Activation")] -::windows_core::imp::interface_hierarchy!(WebUIContactPostActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIContactPostActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIContactPostActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIContactPostActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIContactPostActivatedEventArgs {} #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebUIContactVideoCallActivatedEventArgs(::windows_core::IUnknown); #[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::interface_hierarchy!(WebUIContactVideoCallActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::required_hierarchy!(WebUIContactVideoCallActivatedEventArgs, super::super::ApplicationModel::Activation::IActivatedEventArgs, IActivatedEventArgsDeferral, super::super::ApplicationModel::Activation::IContactActivatedEventArgs, super::super::ApplicationModel::Activation::IContactVideoCallActivatedEventArgs); +#[cfg(feature = "ApplicationModel_Activation")] impl WebUIContactVideoCallActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2574,7 +2266,7 @@ impl WebUIContactVideoCallActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2583,14 +2275,14 @@ impl WebUIContactVideoCallActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ActivatedOperation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ActivatedOperation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2599,7 +2291,7 @@ impl WebUIContactVideoCallActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn Verb(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Verb)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2640,36 +2332,27 @@ impl ::windows_core::RuntimeType for WebUIContactVideoCallActivatedEventArgs { #[cfg(feature = "ApplicationModel_Activation")] unsafe impl ::windows_core::Interface for WebUIContactVideoCallActivatedEventArgs { type Vtable = super::super::ApplicationModel::Activation::IContactVideoCallActivatedEventArgs_Vtbl; -} -#[cfg(feature = "ApplicationModel_Activation")] -unsafe impl ::windows_core::ComInterface for WebUIContactVideoCallActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "ApplicationModel_Activation")] impl ::windows_core::RuntimeName for WebUIContactVideoCallActivatedEventArgs { const NAME: &'static str = "Windows.UI.WebUI.WebUIContactVideoCallActivatedEventArgs"; } -#[cfg(feature = "ApplicationModel_Activation")] -::windows_core::imp::interface_hierarchy!(WebUIContactVideoCallActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIContactVideoCallActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIContactVideoCallActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIContactVideoCallActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIContactVideoCallActivatedEventArgs {} #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebUIDeviceActivatedEventArgs(::windows_core::IUnknown); #[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::interface_hierarchy!(WebUIDeviceActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::required_hierarchy!(WebUIDeviceActivatedEventArgs, super::super::ApplicationModel::Activation::IActivatedEventArgs, IActivatedEventArgsDeferral, super::super::ApplicationModel::Activation::IActivatedEventArgsWithUser, super::super::ApplicationModel::Activation::IApplicationViewActivatedEventArgs, super::super::ApplicationModel::Activation::IDeviceActivatedEventArgs); +#[cfg(feature = "ApplicationModel_Activation")] impl WebUIDeviceActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2678,7 +2361,7 @@ impl WebUIDeviceActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2687,14 +2370,14 @@ impl WebUIDeviceActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ActivatedOperation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ActivatedOperation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2703,7 +2386,7 @@ impl WebUIDeviceActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`, `\"System\"`"] #[cfg(all(feature = "ApplicationModel_Activation", feature = "System"))] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2712,7 +2395,7 @@ impl WebUIDeviceActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn CurrentlyShownApplicationViewId(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CurrentlyShownApplicationViewId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2744,38 +2427,27 @@ impl ::windows_core::RuntimeType for WebUIDeviceActivatedEventArgs { #[cfg(feature = "ApplicationModel_Activation")] unsafe impl ::windows_core::Interface for WebUIDeviceActivatedEventArgs { type Vtable = super::super::ApplicationModel::Activation::IDeviceActivatedEventArgs_Vtbl; -} -#[cfg(feature = "ApplicationModel_Activation")] -unsafe impl ::windows_core::ComInterface for WebUIDeviceActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "ApplicationModel_Activation")] impl ::windows_core::RuntimeName for WebUIDeviceActivatedEventArgs { const NAME: &'static str = "Windows.UI.WebUI.WebUIDeviceActivatedEventArgs"; } -#[cfg(feature = "ApplicationModel_Activation")] -::windows_core::imp::interface_hierarchy!(WebUIDeviceActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIDeviceActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIDeviceActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIDeviceActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIDeviceActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIDeviceActivatedEventArgs {} #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebUIDevicePairingActivatedEventArgs(::windows_core::IUnknown); #[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::interface_hierarchy!(WebUIDevicePairingActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::required_hierarchy!(WebUIDevicePairingActivatedEventArgs, super::super::ApplicationModel::Activation::IActivatedEventArgs, IActivatedEventArgsDeferral, super::super::ApplicationModel::Activation::IActivatedEventArgsWithUser, super::super::ApplicationModel::Activation::IDevicePairingActivatedEventArgs); +#[cfg(feature = "ApplicationModel_Activation")] impl WebUIDevicePairingActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2784,7 +2456,7 @@ impl WebUIDevicePairingActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2793,14 +2465,14 @@ impl WebUIDevicePairingActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ActivatedOperation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ActivatedOperation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2809,7 +2481,7 @@ impl WebUIDevicePairingActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`, `\"System\"`"] #[cfg(all(feature = "ApplicationModel_Activation", feature = "System"))] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2832,36 +2504,27 @@ impl ::windows_core::RuntimeType for WebUIDevicePairingActivatedEventArgs { #[cfg(feature = "ApplicationModel_Activation")] unsafe impl ::windows_core::Interface for WebUIDevicePairingActivatedEventArgs { type Vtable = super::super::ApplicationModel::Activation::IDevicePairingActivatedEventArgs_Vtbl; -} -#[cfg(feature = "ApplicationModel_Activation")] -unsafe impl ::windows_core::ComInterface for WebUIDevicePairingActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "ApplicationModel_Activation")] impl ::windows_core::RuntimeName for WebUIDevicePairingActivatedEventArgs { const NAME: &'static str = "Windows.UI.WebUI.WebUIDevicePairingActivatedEventArgs"; } -#[cfg(feature = "ApplicationModel_Activation")] -::windows_core::imp::interface_hierarchy!(WebUIDevicePairingActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIDevicePairingActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIDevicePairingActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIDevicePairingActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIDevicePairingActivatedEventArgs {} #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebUIDialReceiverActivatedEventArgs(::windows_core::IUnknown); #[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::interface_hierarchy!(WebUIDialReceiverActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::required_hierarchy!(WebUIDialReceiverActivatedEventArgs, super::super::ApplicationModel::Activation::IActivatedEventArgs, IActivatedEventArgsDeferral, super::super::ApplicationModel::Activation::IActivatedEventArgsWithUser, super::super::ApplicationModel::Activation::IApplicationViewActivatedEventArgs, super::super::ApplicationModel::Activation::IDialReceiverActivatedEventArgs, super::super::ApplicationModel::Activation::ILaunchActivatedEventArgs); +#[cfg(feature = "ApplicationModel_Activation")] impl WebUIDialReceiverActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2870,7 +2533,7 @@ impl WebUIDialReceiverActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2879,14 +2542,14 @@ impl WebUIDialReceiverActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ActivatedOperation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ActivatedOperation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2895,7 +2558,7 @@ impl WebUIDialReceiverActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`, `\"System\"`"] #[cfg(all(feature = "ApplicationModel_Activation", feature = "System"))] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2904,7 +2567,7 @@ impl WebUIDialReceiverActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn CurrentlyShownApplicationViewId(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CurrentlyShownApplicationViewId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2922,7 +2585,7 @@ impl WebUIDialReceiverActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn Arguments(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Arguments)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2931,7 +2594,7 @@ impl WebUIDialReceiverActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn TileId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TileId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2945,40 +2608,27 @@ impl ::windows_core::RuntimeType for WebUIDialReceiverActivatedEventArgs { #[cfg(feature = "ApplicationModel_Activation")] unsafe impl ::windows_core::Interface for WebUIDialReceiverActivatedEventArgs { type Vtable = super::super::ApplicationModel::Activation::IDialReceiverActivatedEventArgs_Vtbl; -} -#[cfg(feature = "ApplicationModel_Activation")] -unsafe impl ::windows_core::ComInterface for WebUIDialReceiverActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "ApplicationModel_Activation")] impl ::windows_core::RuntimeName for WebUIDialReceiverActivatedEventArgs { const NAME: &'static str = "Windows.UI.WebUI.WebUIDialReceiverActivatedEventArgs"; } -#[cfg(feature = "ApplicationModel_Activation")] -::windows_core::imp::interface_hierarchy!(WebUIDialReceiverActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIDialReceiverActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIDialReceiverActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIDialReceiverActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIDialReceiverActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIDialReceiverActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIDialReceiverActivatedEventArgs {} #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebUIFileActivatedEventArgs(::windows_core::IUnknown); #[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::interface_hierarchy!(WebUIFileActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::required_hierarchy!(WebUIFileActivatedEventArgs, super::super::ApplicationModel::Activation::IActivatedEventArgs, IActivatedEventArgsDeferral, super::super::ApplicationModel::Activation::IActivatedEventArgsWithUser, super::super::ApplicationModel::Activation::IApplicationViewActivatedEventArgs, super::super::ApplicationModel::Activation::IFileActivatedEventArgs, super::super::ApplicationModel::Activation::IFileActivatedEventArgsWithNeighboringFiles); +#[cfg(feature = "ApplicationModel_Activation")] impl WebUIFileActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2987,7 +2637,7 @@ impl WebUIFileActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2996,14 +2646,14 @@ impl WebUIFileActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ActivatedOperation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ActivatedOperation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3012,7 +2662,7 @@ impl WebUIFileActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`, `\"System\"`"] #[cfg(all(feature = "ApplicationModel_Activation", feature = "System"))] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3021,7 +2671,7 @@ impl WebUIFileActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn CurrentlyShownApplicationViewId(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CurrentlyShownApplicationViewId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3048,7 +2698,7 @@ impl WebUIFileActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`, `\"Storage_Search\"`"] #[cfg(all(feature = "ApplicationModel_Activation", feature = "Storage_Search"))] pub fn NeighboringFilesQuery(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NeighboringFilesQuery)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3062,40 +2712,27 @@ impl ::windows_core::RuntimeType for WebUIFileActivatedEventArgs { #[cfg(feature = "ApplicationModel_Activation")] unsafe impl ::windows_core::Interface for WebUIFileActivatedEventArgs { type Vtable = super::super::ApplicationModel::Activation::IFileActivatedEventArgs_Vtbl; -} -#[cfg(feature = "ApplicationModel_Activation")] -unsafe impl ::windows_core::ComInterface for WebUIFileActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "ApplicationModel_Activation")] impl ::windows_core::RuntimeName for WebUIFileActivatedEventArgs { const NAME: &'static str = "Windows.UI.WebUI.WebUIFileActivatedEventArgs"; } -#[cfg(feature = "ApplicationModel_Activation")] -::windows_core::imp::interface_hierarchy!(WebUIFileActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIFileActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIFileActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIFileActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIFileActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIFileActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIFileActivatedEventArgs {} #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebUIFileOpenPickerActivatedEventArgs(::windows_core::IUnknown); #[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::interface_hierarchy!(WebUIFileOpenPickerActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::required_hierarchy!(WebUIFileOpenPickerActivatedEventArgs, super::super::ApplicationModel::Activation::IActivatedEventArgs, IActivatedEventArgsDeferral, super::super::ApplicationModel::Activation::IActivatedEventArgsWithUser, super::super::ApplicationModel::Activation::IFileOpenPickerActivatedEventArgs, super::super::ApplicationModel::Activation::IFileOpenPickerActivatedEventArgs2); +#[cfg(feature = "ApplicationModel_Activation")] impl WebUIFileOpenPickerActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3104,7 +2741,7 @@ impl WebUIFileOpenPickerActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3113,14 +2750,14 @@ impl WebUIFileOpenPickerActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ActivatedOperation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ActivatedOperation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3129,7 +2766,7 @@ impl WebUIFileOpenPickerActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`, `\"System\"`"] #[cfg(all(feature = "ApplicationModel_Activation", feature = "System"))] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3147,7 +2784,7 @@ impl WebUIFileOpenPickerActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn CallerPackageFamilyName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CallerPackageFamilyName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3161,38 +2798,27 @@ impl ::windows_core::RuntimeType for WebUIFileOpenPickerActivatedEventArgs { #[cfg(feature = "ApplicationModel_Activation")] unsafe impl ::windows_core::Interface for WebUIFileOpenPickerActivatedEventArgs { type Vtable = super::super::ApplicationModel::Activation::IFileOpenPickerActivatedEventArgs_Vtbl; -} -#[cfg(feature = "ApplicationModel_Activation")] -unsafe impl ::windows_core::ComInterface for WebUIFileOpenPickerActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "ApplicationModel_Activation")] impl ::windows_core::RuntimeName for WebUIFileOpenPickerActivatedEventArgs { const NAME: &'static str = "Windows.UI.WebUI.WebUIFileOpenPickerActivatedEventArgs"; } -#[cfg(feature = "ApplicationModel_Activation")] -::windows_core::imp::interface_hierarchy!(WebUIFileOpenPickerActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIFileOpenPickerActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIFileOpenPickerActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIFileOpenPickerActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIFileOpenPickerActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIFileOpenPickerActivatedEventArgs {} #[doc = "Required features: `\"ApplicationModel_Activation\"`, `\"deprecated\"`"] #[cfg(all(feature = "ApplicationModel_Activation", feature = "deprecated"))] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebUIFileOpenPickerContinuationEventArgs(::windows_core::IUnknown); #[cfg(all(feature = "ApplicationModel_Activation", feature = "deprecated"))] +::windows_core::imp::interface_hierarchy!(WebUIFileOpenPickerContinuationEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(all(feature = "ApplicationModel_Activation", feature = "deprecated"))] +::windows_core::imp::required_hierarchy!(WebUIFileOpenPickerContinuationEventArgs, super::super::ApplicationModel::Activation::IActivatedEventArgs, IActivatedEventArgsDeferral, super::super::ApplicationModel::Activation::IActivatedEventArgsWithUser, super::super::ApplicationModel::Activation::IContinuationActivatedEventArgs, super::super::ApplicationModel::Activation::IFileOpenPickerContinuationEventArgs); +#[cfg(all(feature = "ApplicationModel_Activation", feature = "deprecated"))] impl WebUIFileOpenPickerContinuationEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3201,7 +2827,7 @@ impl WebUIFileOpenPickerContinuationEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3210,14 +2836,14 @@ impl WebUIFileOpenPickerContinuationEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ActivatedOperation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ActivatedOperation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3226,7 +2852,7 @@ impl WebUIFileOpenPickerContinuationEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`, `\"System\"`"] #[cfg(all(feature = "ApplicationModel_Activation", feature = "System"))] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3235,7 +2861,7 @@ impl WebUIFileOpenPickerContinuationEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`, `\"Foundation_Collections\"`"] #[cfg(all(feature = "ApplicationModel_Activation", feature = "Foundation_Collections"))] pub fn ContinuationData(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ContinuationData)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3258,38 +2884,27 @@ impl ::windows_core::RuntimeType for WebUIFileOpenPickerContinuationEventArgs { #[cfg(all(feature = "ApplicationModel_Activation", feature = "deprecated"))] unsafe impl ::windows_core::Interface for WebUIFileOpenPickerContinuationEventArgs { type Vtable = super::super::ApplicationModel::Activation::IFileOpenPickerContinuationEventArgs_Vtbl; -} -#[cfg(all(feature = "ApplicationModel_Activation", feature = "deprecated"))] -unsafe impl ::windows_core::ComInterface for WebUIFileOpenPickerContinuationEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(all(feature = "ApplicationModel_Activation", feature = "deprecated"))] impl ::windows_core::RuntimeName for WebUIFileOpenPickerContinuationEventArgs { const NAME: &'static str = "Windows.UI.WebUI.WebUIFileOpenPickerContinuationEventArgs"; } -#[cfg(all(feature = "ApplicationModel_Activation", feature = "deprecated"))] -::windows_core::imp::interface_hierarchy!(WebUIFileOpenPickerContinuationEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(all(feature = "ApplicationModel_Activation", feature = "deprecated"))] -impl ::windows_core::CanTryInto for WebUIFileOpenPickerContinuationEventArgs {} -#[cfg(all(feature = "ApplicationModel_Activation", feature = "deprecated"))] -impl ::windows_core::CanTryInto for WebUIFileOpenPickerContinuationEventArgs {} -#[cfg(all(feature = "ApplicationModel_Activation", feature = "deprecated"))] -impl ::windows_core::CanTryInto for WebUIFileOpenPickerContinuationEventArgs {} -#[cfg(all(feature = "ApplicationModel_Activation", feature = "deprecated"))] -impl ::windows_core::CanTryInto for WebUIFileOpenPickerContinuationEventArgs {} -#[cfg(all(feature = "ApplicationModel_Activation", feature = "deprecated"))] -impl ::windows_core::CanTryInto for WebUIFileOpenPickerContinuationEventArgs {} #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebUIFileSavePickerActivatedEventArgs(::windows_core::IUnknown); #[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::interface_hierarchy!(WebUIFileSavePickerActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::required_hierarchy!(WebUIFileSavePickerActivatedEventArgs, super::super::ApplicationModel::Activation::IActivatedEventArgs, IActivatedEventArgsDeferral, super::super::ApplicationModel::Activation::IActivatedEventArgsWithUser, super::super::ApplicationModel::Activation::IFileSavePickerActivatedEventArgs, super::super::ApplicationModel::Activation::IFileSavePickerActivatedEventArgs2); +#[cfg(feature = "ApplicationModel_Activation")] impl WebUIFileSavePickerActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3298,7 +2913,7 @@ impl WebUIFileSavePickerActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3307,14 +2922,14 @@ impl WebUIFileSavePickerActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ActivatedOperation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ActivatedOperation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3323,7 +2938,7 @@ impl WebUIFileSavePickerActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`, `\"System\"`"] #[cfg(all(feature = "ApplicationModel_Activation", feature = "System"))] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3341,7 +2956,7 @@ impl WebUIFileSavePickerActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn CallerPackageFamilyName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CallerPackageFamilyName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3350,7 +2965,7 @@ impl WebUIFileSavePickerActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn EnterpriseId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).EnterpriseId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3364,38 +2979,27 @@ impl ::windows_core::RuntimeType for WebUIFileSavePickerActivatedEventArgs { #[cfg(feature = "ApplicationModel_Activation")] unsafe impl ::windows_core::Interface for WebUIFileSavePickerActivatedEventArgs { type Vtable = super::super::ApplicationModel::Activation::IFileSavePickerActivatedEventArgs_Vtbl; -} -#[cfg(feature = "ApplicationModel_Activation")] -unsafe impl ::windows_core::ComInterface for WebUIFileSavePickerActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "ApplicationModel_Activation")] impl ::windows_core::RuntimeName for WebUIFileSavePickerActivatedEventArgs { const NAME: &'static str = "Windows.UI.WebUI.WebUIFileSavePickerActivatedEventArgs"; } -#[cfg(feature = "ApplicationModel_Activation")] -::windows_core::imp::interface_hierarchy!(WebUIFileSavePickerActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIFileSavePickerActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIFileSavePickerActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIFileSavePickerActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIFileSavePickerActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIFileSavePickerActivatedEventArgs {} #[doc = "Required features: `\"ApplicationModel_Activation\"`, `\"deprecated\"`"] #[cfg(all(feature = "ApplicationModel_Activation", feature = "deprecated"))] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebUIFileSavePickerContinuationEventArgs(::windows_core::IUnknown); #[cfg(all(feature = "ApplicationModel_Activation", feature = "deprecated"))] +::windows_core::imp::interface_hierarchy!(WebUIFileSavePickerContinuationEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(all(feature = "ApplicationModel_Activation", feature = "deprecated"))] +::windows_core::imp::required_hierarchy!(WebUIFileSavePickerContinuationEventArgs, super::super::ApplicationModel::Activation::IActivatedEventArgs, IActivatedEventArgsDeferral, super::super::ApplicationModel::Activation::IActivatedEventArgsWithUser, super::super::ApplicationModel::Activation::IContinuationActivatedEventArgs, super::super::ApplicationModel::Activation::IFileSavePickerContinuationEventArgs); +#[cfg(all(feature = "ApplicationModel_Activation", feature = "deprecated"))] impl WebUIFileSavePickerContinuationEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3404,7 +3008,7 @@ impl WebUIFileSavePickerContinuationEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3413,14 +3017,14 @@ impl WebUIFileSavePickerContinuationEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ActivatedOperation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ActivatedOperation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3429,7 +3033,7 @@ impl WebUIFileSavePickerContinuationEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`, `\"System\"`"] #[cfg(all(feature = "ApplicationModel_Activation", feature = "System"))] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3438,7 +3042,7 @@ impl WebUIFileSavePickerContinuationEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`, `\"Foundation_Collections\"`"] #[cfg(all(feature = "ApplicationModel_Activation", feature = "Foundation_Collections"))] pub fn ContinuationData(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ContinuationData)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3461,38 +3065,27 @@ impl ::windows_core::RuntimeType for WebUIFileSavePickerContinuationEventArgs { #[cfg(all(feature = "ApplicationModel_Activation", feature = "deprecated"))] unsafe impl ::windows_core::Interface for WebUIFileSavePickerContinuationEventArgs { type Vtable = super::super::ApplicationModel::Activation::IFileSavePickerContinuationEventArgs_Vtbl; -} -#[cfg(all(feature = "ApplicationModel_Activation", feature = "deprecated"))] -unsafe impl ::windows_core::ComInterface for WebUIFileSavePickerContinuationEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(all(feature = "ApplicationModel_Activation", feature = "deprecated"))] impl ::windows_core::RuntimeName for WebUIFileSavePickerContinuationEventArgs { const NAME: &'static str = "Windows.UI.WebUI.WebUIFileSavePickerContinuationEventArgs"; } -#[cfg(all(feature = "ApplicationModel_Activation", feature = "deprecated"))] -::windows_core::imp::interface_hierarchy!(WebUIFileSavePickerContinuationEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(all(feature = "ApplicationModel_Activation", feature = "deprecated"))] -impl ::windows_core::CanTryInto for WebUIFileSavePickerContinuationEventArgs {} -#[cfg(all(feature = "ApplicationModel_Activation", feature = "deprecated"))] -impl ::windows_core::CanTryInto for WebUIFileSavePickerContinuationEventArgs {} -#[cfg(all(feature = "ApplicationModel_Activation", feature = "deprecated"))] -impl ::windows_core::CanTryInto for WebUIFileSavePickerContinuationEventArgs {} -#[cfg(all(feature = "ApplicationModel_Activation", feature = "deprecated"))] -impl ::windows_core::CanTryInto for WebUIFileSavePickerContinuationEventArgs {} -#[cfg(all(feature = "ApplicationModel_Activation", feature = "deprecated"))] -impl ::windows_core::CanTryInto for WebUIFileSavePickerContinuationEventArgs {} #[doc = "Required features: `\"ApplicationModel_Activation\"`, `\"deprecated\"`"] #[cfg(all(feature = "ApplicationModel_Activation", feature = "deprecated"))] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebUIFolderPickerContinuationEventArgs(::windows_core::IUnknown); #[cfg(all(feature = "ApplicationModel_Activation", feature = "deprecated"))] +::windows_core::imp::interface_hierarchy!(WebUIFolderPickerContinuationEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(all(feature = "ApplicationModel_Activation", feature = "deprecated"))] +::windows_core::imp::required_hierarchy!(WebUIFolderPickerContinuationEventArgs, super::super::ApplicationModel::Activation::IActivatedEventArgs, IActivatedEventArgsDeferral, super::super::ApplicationModel::Activation::IActivatedEventArgsWithUser, super::super::ApplicationModel::Activation::IContinuationActivatedEventArgs, super::super::ApplicationModel::Activation::IFolderPickerContinuationEventArgs); +#[cfg(all(feature = "ApplicationModel_Activation", feature = "deprecated"))] impl WebUIFolderPickerContinuationEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3501,7 +3094,7 @@ impl WebUIFolderPickerContinuationEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3510,14 +3103,14 @@ impl WebUIFolderPickerContinuationEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ActivatedOperation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ActivatedOperation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3526,7 +3119,7 @@ impl WebUIFolderPickerContinuationEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`, `\"System\"`"] #[cfg(all(feature = "ApplicationModel_Activation", feature = "System"))] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3535,7 +3128,7 @@ impl WebUIFolderPickerContinuationEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`, `\"Foundation_Collections\"`"] #[cfg(all(feature = "ApplicationModel_Activation", feature = "Foundation_Collections"))] pub fn ContinuationData(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ContinuationData)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3558,38 +3151,36 @@ impl ::windows_core::RuntimeType for WebUIFolderPickerContinuationEventArgs { #[cfg(all(feature = "ApplicationModel_Activation", feature = "deprecated"))] unsafe impl ::windows_core::Interface for WebUIFolderPickerContinuationEventArgs { type Vtable = super::super::ApplicationModel::Activation::IFolderPickerContinuationEventArgs_Vtbl; -} -#[cfg(all(feature = "ApplicationModel_Activation", feature = "deprecated"))] -unsafe impl ::windows_core::ComInterface for WebUIFolderPickerContinuationEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(all(feature = "ApplicationModel_Activation", feature = "deprecated"))] impl ::windows_core::RuntimeName for WebUIFolderPickerContinuationEventArgs { const NAME: &'static str = "Windows.UI.WebUI.WebUIFolderPickerContinuationEventArgs"; } -#[cfg(all(feature = "ApplicationModel_Activation", feature = "deprecated"))] -::windows_core::imp::interface_hierarchy!(WebUIFolderPickerContinuationEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(all(feature = "ApplicationModel_Activation", feature = "deprecated"))] -impl ::windows_core::CanTryInto for WebUIFolderPickerContinuationEventArgs {} -#[cfg(all(feature = "ApplicationModel_Activation", feature = "deprecated"))] -impl ::windows_core::CanTryInto for WebUIFolderPickerContinuationEventArgs {} -#[cfg(all(feature = "ApplicationModel_Activation", feature = "deprecated"))] -impl ::windows_core::CanTryInto for WebUIFolderPickerContinuationEventArgs {} -#[cfg(all(feature = "ApplicationModel_Activation", feature = "deprecated"))] -impl ::windows_core::CanTryInto for WebUIFolderPickerContinuationEventArgs {} -#[cfg(all(feature = "ApplicationModel_Activation", feature = "deprecated"))] -impl ::windows_core::CanTryInto for WebUIFolderPickerContinuationEventArgs {} #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebUILaunchActivatedEventArgs(::windows_core::IUnknown); #[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::interface_hierarchy!(WebUILaunchActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::required_hierarchy!( + WebUILaunchActivatedEventArgs, + super::super::ApplicationModel::Activation::IActivatedEventArgs, + IActivatedEventArgsDeferral, + super::super::ApplicationModel::Activation::IActivatedEventArgsWithUser, + super::super::ApplicationModel::Activation::IApplicationViewActivatedEventArgs, + super::super::ApplicationModel::Activation::ILaunchActivatedEventArgs, + super::super::ApplicationModel::Activation::ILaunchActivatedEventArgs2, + super::super::ApplicationModel::Activation::IPrelaunchActivatedEventArgs +); +#[cfg(feature = "ApplicationModel_Activation")] impl WebUILaunchActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3598,7 +3189,7 @@ impl WebUILaunchActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3607,14 +3198,14 @@ impl WebUILaunchActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ActivatedOperation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ActivatedOperation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3623,7 +3214,7 @@ impl WebUILaunchActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`, `\"System\"`"] #[cfg(all(feature = "ApplicationModel_Activation", feature = "System"))] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3632,7 +3223,7 @@ impl WebUILaunchActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn CurrentlyShownApplicationViewId(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CurrentlyShownApplicationViewId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3659,7 +3250,7 @@ impl WebUILaunchActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn TileActivatedInfo(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TileActivatedInfo)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3668,7 +3259,7 @@ impl WebUILaunchActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn PrelaunchActivated(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PrelaunchActivated)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3682,42 +3273,27 @@ impl ::windows_core::RuntimeType for WebUILaunchActivatedEventArgs { #[cfg(feature = "ApplicationModel_Activation")] unsafe impl ::windows_core::Interface for WebUILaunchActivatedEventArgs { type Vtable = super::super::ApplicationModel::Activation::ILaunchActivatedEventArgs_Vtbl; -} -#[cfg(feature = "ApplicationModel_Activation")] -unsafe impl ::windows_core::ComInterface for WebUILaunchActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "ApplicationModel_Activation")] impl ::windows_core::RuntimeName for WebUILaunchActivatedEventArgs { const NAME: &'static str = "Windows.UI.WebUI.WebUILaunchActivatedEventArgs"; } -#[cfg(feature = "ApplicationModel_Activation")] -::windows_core::imp::interface_hierarchy!(WebUILaunchActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUILaunchActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUILaunchActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUILaunchActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUILaunchActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUILaunchActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUILaunchActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUILaunchActivatedEventArgs {} #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebUILockScreenActivatedEventArgs(::windows_core::IUnknown); #[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::interface_hierarchy!(WebUILockScreenActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::required_hierarchy!(WebUILockScreenActivatedEventArgs, super::super::ApplicationModel::Activation::IActivatedEventArgs, IActivatedEventArgsDeferral, super::super::ApplicationModel::Activation::IActivatedEventArgsWithUser, super::super::ApplicationModel::Activation::IApplicationViewActivatedEventArgs, super::super::ApplicationModel::Activation::ILockScreenActivatedEventArgs); +#[cfg(feature = "ApplicationModel_Activation")] impl WebUILockScreenActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3726,7 +3302,7 @@ impl WebUILockScreenActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3735,14 +3311,14 @@ impl WebUILockScreenActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ActivatedOperation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ActivatedOperation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3751,7 +3327,7 @@ impl WebUILockScreenActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`, `\"System\"`"] #[cfg(all(feature = "ApplicationModel_Activation", feature = "System"))] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3760,7 +3336,7 @@ impl WebUILockScreenActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn CurrentlyShownApplicationViewId(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CurrentlyShownApplicationViewId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3783,38 +3359,27 @@ impl ::windows_core::RuntimeType for WebUILockScreenActivatedEventArgs { #[cfg(feature = "ApplicationModel_Activation")] unsafe impl ::windows_core::Interface for WebUILockScreenActivatedEventArgs { type Vtable = super::super::ApplicationModel::Activation::ILockScreenActivatedEventArgs_Vtbl; -} -#[cfg(feature = "ApplicationModel_Activation")] -unsafe impl ::windows_core::ComInterface for WebUILockScreenActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "ApplicationModel_Activation")] impl ::windows_core::RuntimeName for WebUILockScreenActivatedEventArgs { const NAME: &'static str = "Windows.UI.WebUI.WebUILockScreenActivatedEventArgs"; -} -#[cfg(feature = "ApplicationModel_Activation")] -::windows_core::imp::interface_hierarchy!(WebUILockScreenActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUILockScreenActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUILockScreenActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUILockScreenActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUILockScreenActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUILockScreenActivatedEventArgs {} +} #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebUILockScreenCallActivatedEventArgs(::windows_core::IUnknown); #[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::interface_hierarchy!(WebUILockScreenCallActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::required_hierarchy!(WebUILockScreenCallActivatedEventArgs, super::super::ApplicationModel::Activation::IActivatedEventArgs, IActivatedEventArgsDeferral, super::super::ApplicationModel::Activation::IApplicationViewActivatedEventArgs, super::super::ApplicationModel::Activation::ILaunchActivatedEventArgs, super::super::ApplicationModel::Activation::ILockScreenCallActivatedEventArgs); +#[cfg(feature = "ApplicationModel_Activation")] impl WebUILockScreenCallActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3823,7 +3388,7 @@ impl WebUILockScreenCallActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3832,14 +3397,14 @@ impl WebUILockScreenCallActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ActivatedOperation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ActivatedOperation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3848,7 +3413,7 @@ impl WebUILockScreenCallActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn CurrentlyShownApplicationViewId(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CurrentlyShownApplicationViewId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3857,7 +3422,7 @@ impl WebUILockScreenCallActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn Arguments(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Arguments)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3866,7 +3431,7 @@ impl WebUILockScreenCallActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn TileId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TileId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3889,33 +3454,22 @@ impl ::windows_core::RuntimeType for WebUILockScreenCallActivatedEventArgs { #[cfg(feature = "ApplicationModel_Activation")] unsafe impl ::windows_core::Interface for WebUILockScreenCallActivatedEventArgs { type Vtable = super::super::ApplicationModel::Activation::ILockScreenCallActivatedEventArgs_Vtbl; -} -#[cfg(feature = "ApplicationModel_Activation")] -unsafe impl ::windows_core::ComInterface for WebUILockScreenCallActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "ApplicationModel_Activation")] impl ::windows_core::RuntimeName for WebUILockScreenCallActivatedEventArgs { const NAME: &'static str = "Windows.UI.WebUI.WebUILockScreenCallActivatedEventArgs"; } -#[cfg(feature = "ApplicationModel_Activation")] -::windows_core::imp::interface_hierarchy!(WebUILockScreenCallActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUILockScreenCallActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUILockScreenCallActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUILockScreenCallActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUILockScreenCallActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUILockScreenCallActivatedEventArgs {} #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebUILockScreenComponentActivatedEventArgs(::windows_core::IUnknown); #[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::interface_hierarchy!(WebUILockScreenComponentActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::required_hierarchy!(WebUILockScreenComponentActivatedEventArgs, super::super::ApplicationModel::Activation::IActivatedEventArgs, IActivatedEventArgsDeferral); +#[cfg(feature = "ApplicationModel_Activation")] impl WebUILockScreenComponentActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] @@ -3945,7 +3499,7 @@ impl WebUILockScreenComponentActivatedEventArgs { } } pub fn ActivatedOperation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ActivatedOperation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3959,24 +3513,16 @@ impl ::windows_core::RuntimeType for WebUILockScreenComponentActivatedEventArgs #[cfg(feature = "ApplicationModel_Activation")] unsafe impl ::windows_core::Interface for WebUILockScreenComponentActivatedEventArgs { type Vtable = super::super::ApplicationModel::Activation::IActivatedEventArgs_Vtbl; -} -#[cfg(feature = "ApplicationModel_Activation")] -unsafe impl ::windows_core::ComInterface for WebUILockScreenComponentActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "ApplicationModel_Activation")] impl ::windows_core::RuntimeName for WebUILockScreenComponentActivatedEventArgs { const NAME: &'static str = "Windows.UI.WebUI.WebUILockScreenComponentActivatedEventArgs"; } -#[cfg(feature = "ApplicationModel_Activation")] -::windows_core::imp::interface_hierarchy!(WebUILockScreenComponentActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUILockScreenComponentActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUILockScreenComponentActivatedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebUINavigatedDeferral(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WebUINavigatedDeferral, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WebUINavigatedDeferral { pub fn Complete(&self) -> ::windows_core::Result<()> { let this = self; @@ -3988,17 +3534,16 @@ impl ::windows_core::RuntimeType for WebUINavigatedDeferral { } unsafe impl ::windows_core::Interface for WebUINavigatedDeferral { type Vtable = IWebUINavigatedDeferral_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WebUINavigatedDeferral { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WebUINavigatedDeferral { const NAME: &'static str = "Windows.UI.WebUI.WebUINavigatedDeferral"; } -::windows_core::imp::interface_hierarchy!(WebUINavigatedDeferral, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebUINavigatedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WebUINavigatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(WebUINavigatedEventArgs, IWebUINavigatedEventArgs); impl WebUINavigatedEventArgs { pub fn NavigatedOperation(&self) -> ::windows_core::Result { let this = self; @@ -4013,18 +3558,15 @@ impl ::windows_core::RuntimeType for WebUINavigatedEventArgs { } unsafe impl ::windows_core::Interface for WebUINavigatedEventArgs { type Vtable = IWebUINavigatedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WebUINavigatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WebUINavigatedEventArgs { const NAME: &'static str = "Windows.UI.WebUI.WebUINavigatedEventArgs"; } -::windows_core::imp::interface_hierarchy!(WebUINavigatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for WebUINavigatedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebUINavigatedOperation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WebUINavigatedOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WebUINavigatedOperation { pub fn GetDeferral(&self) -> ::windows_core::Result { let this = self; @@ -4039,25 +3581,26 @@ impl ::windows_core::RuntimeType for WebUINavigatedOperation { } unsafe impl ::windows_core::Interface for WebUINavigatedOperation { type Vtable = IWebUINavigatedOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WebUINavigatedOperation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WebUINavigatedOperation { const NAME: &'static str = "Windows.UI.WebUI.WebUINavigatedOperation"; } -::windows_core::imp::interface_hierarchy!(WebUINavigatedOperation, ::windows_core::IUnknown, ::windows_core::IInspectable); #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebUIPhoneCallActivatedEventArgs(::windows_core::IUnknown); #[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::interface_hierarchy!(WebUIPhoneCallActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::required_hierarchy!(WebUIPhoneCallActivatedEventArgs, super::super::ApplicationModel::Activation::IActivatedEventArgs, IActivatedEventArgsDeferral, super::super::ApplicationModel::Activation::IActivatedEventArgsWithUser, super::super::ApplicationModel::Activation::IPhoneCallActivatedEventArgs); +#[cfg(feature = "ApplicationModel_Activation")] impl WebUIPhoneCallActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4066,7 +3609,7 @@ impl WebUIPhoneCallActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4075,14 +3618,14 @@ impl WebUIPhoneCallActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ActivatedOperation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ActivatedOperation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4091,7 +3634,7 @@ impl WebUIPhoneCallActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`, `\"System\"`"] #[cfg(all(feature = "ApplicationModel_Activation", feature = "System"))] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4114,26 +3657,13 @@ impl ::windows_core::RuntimeType for WebUIPhoneCallActivatedEventArgs { #[cfg(feature = "ApplicationModel_Activation")] unsafe impl ::windows_core::Interface for WebUIPhoneCallActivatedEventArgs { type Vtable = super::super::ApplicationModel::Activation::IPhoneCallActivatedEventArgs_Vtbl; -} -#[cfg(feature = "ApplicationModel_Activation")] -unsafe impl ::windows_core::ComInterface for WebUIPhoneCallActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "ApplicationModel_Activation")] impl ::windows_core::RuntimeName for WebUIPhoneCallActivatedEventArgs { const NAME: &'static str = "Windows.UI.WebUI.WebUIPhoneCallActivatedEventArgs"; } #[cfg(feature = "ApplicationModel_Activation")] -::windows_core::imp::interface_hierarchy!(WebUIPhoneCallActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIPhoneCallActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIPhoneCallActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIPhoneCallActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIPhoneCallActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] unsafe impl ::core::marker::Send for WebUIPhoneCallActivatedEventArgs {} #[cfg(feature = "ApplicationModel_Activation")] unsafe impl ::core::marker::Sync for WebUIPhoneCallActivatedEventArgs {} @@ -4143,11 +3673,15 @@ unsafe impl ::core::marker::Sync for WebUIPhoneCallActivatedEventArgs {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebUIPrint3DWorkflowActivatedEventArgs(::windows_core::IUnknown); #[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::interface_hierarchy!(WebUIPrint3DWorkflowActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::required_hierarchy!(WebUIPrint3DWorkflowActivatedEventArgs, super::super::ApplicationModel::Activation::IActivatedEventArgs, IActivatedEventArgsDeferral, super::super::ApplicationModel::Activation::IPrint3DWorkflowActivatedEventArgs); +#[cfg(feature = "ApplicationModel_Activation")] impl WebUIPrint3DWorkflowActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4156,7 +3690,7 @@ impl WebUIPrint3DWorkflowActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4165,14 +3699,14 @@ impl WebUIPrint3DWorkflowActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ActivatedOperation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ActivatedOperation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4195,34 +3729,27 @@ impl ::windows_core::RuntimeType for WebUIPrint3DWorkflowActivatedEventArgs { #[cfg(feature = "ApplicationModel_Activation")] unsafe impl ::windows_core::Interface for WebUIPrint3DWorkflowActivatedEventArgs { type Vtable = super::super::ApplicationModel::Activation::IPrint3DWorkflowActivatedEventArgs_Vtbl; -} -#[cfg(feature = "ApplicationModel_Activation")] -unsafe impl ::windows_core::ComInterface for WebUIPrint3DWorkflowActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "ApplicationModel_Activation")] impl ::windows_core::RuntimeName for WebUIPrint3DWorkflowActivatedEventArgs { const NAME: &'static str = "Windows.UI.WebUI.WebUIPrint3DWorkflowActivatedEventArgs"; } -#[cfg(feature = "ApplicationModel_Activation")] -::windows_core::imp::interface_hierarchy!(WebUIPrint3DWorkflowActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIPrint3DWorkflowActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIPrint3DWorkflowActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIPrint3DWorkflowActivatedEventArgs {} #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebUIPrintTaskSettingsActivatedEventArgs(::windows_core::IUnknown); #[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::interface_hierarchy!(WebUIPrintTaskSettingsActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::required_hierarchy!(WebUIPrintTaskSettingsActivatedEventArgs, super::super::ApplicationModel::Activation::IActivatedEventArgs, IActivatedEventArgsDeferral, super::super::ApplicationModel::Activation::IPrintTaskSettingsActivatedEventArgs); +#[cfg(feature = "ApplicationModel_Activation")] impl WebUIPrintTaskSettingsActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4231,7 +3758,7 @@ impl WebUIPrintTaskSettingsActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4240,14 +3767,14 @@ impl WebUIPrintTaskSettingsActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ActivatedOperation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ActivatedOperation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4270,29 +3797,22 @@ impl ::windows_core::RuntimeType for WebUIPrintTaskSettingsActivatedEventArgs { #[cfg(feature = "ApplicationModel_Activation")] unsafe impl ::windows_core::Interface for WebUIPrintTaskSettingsActivatedEventArgs { type Vtable = super::super::ApplicationModel::Activation::IPrintTaskSettingsActivatedEventArgs_Vtbl; -} -#[cfg(feature = "ApplicationModel_Activation")] -unsafe impl ::windows_core::ComInterface for WebUIPrintTaskSettingsActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "ApplicationModel_Activation")] impl ::windows_core::RuntimeName for WebUIPrintTaskSettingsActivatedEventArgs { const NAME: &'static str = "Windows.UI.WebUI.WebUIPrintTaskSettingsActivatedEventArgs"; } -#[cfg(feature = "ApplicationModel_Activation")] -::windows_core::imp::interface_hierarchy!(WebUIPrintTaskSettingsActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIPrintTaskSettingsActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIPrintTaskSettingsActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIPrintTaskSettingsActivatedEventArgs {} #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebUIPrintWorkflowForegroundTaskActivatedEventArgs(::windows_core::IUnknown); #[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::interface_hierarchy!(WebUIPrintWorkflowForegroundTaskActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::required_hierarchy!(WebUIPrintWorkflowForegroundTaskActivatedEventArgs, super::super::ApplicationModel::Activation::IActivatedEventArgs, IActivatedEventArgsDeferral); +#[cfg(feature = "ApplicationModel_Activation")] impl WebUIPrintWorkflowForegroundTaskActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] @@ -4322,7 +3842,7 @@ impl WebUIPrintWorkflowForegroundTaskActivatedEventArgs { } } pub fn ActivatedOperation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ActivatedOperation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4336,32 +3856,27 @@ impl ::windows_core::RuntimeType for WebUIPrintWorkflowForegroundTaskActivatedEv #[cfg(feature = "ApplicationModel_Activation")] unsafe impl ::windows_core::Interface for WebUIPrintWorkflowForegroundTaskActivatedEventArgs { type Vtable = super::super::ApplicationModel::Activation::IActivatedEventArgs_Vtbl; -} -#[cfg(feature = "ApplicationModel_Activation")] -unsafe impl ::windows_core::ComInterface for WebUIPrintWorkflowForegroundTaskActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "ApplicationModel_Activation")] impl ::windows_core::RuntimeName for WebUIPrintWorkflowForegroundTaskActivatedEventArgs { const NAME: &'static str = "Windows.UI.WebUI.WebUIPrintWorkflowForegroundTaskActivatedEventArgs"; } -#[cfg(feature = "ApplicationModel_Activation")] -::windows_core::imp::interface_hierarchy!(WebUIPrintWorkflowForegroundTaskActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIPrintWorkflowForegroundTaskActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIPrintWorkflowForegroundTaskActivatedEventArgs {} #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebUIProtocolActivatedEventArgs(::windows_core::IUnknown); #[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::interface_hierarchy!(WebUIProtocolActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::required_hierarchy!(WebUIProtocolActivatedEventArgs, super::super::ApplicationModel::Activation::IActivatedEventArgs, IActivatedEventArgsDeferral, super::super::ApplicationModel::Activation::IActivatedEventArgsWithUser, super::super::ApplicationModel::Activation::IApplicationViewActivatedEventArgs, super::super::ApplicationModel::Activation::IProtocolActivatedEventArgs, super::super::ApplicationModel::Activation::IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData); +#[cfg(feature = "ApplicationModel_Activation")] impl WebUIProtocolActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4370,7 +3885,7 @@ impl WebUIProtocolActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4379,14 +3894,14 @@ impl WebUIProtocolActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ActivatedOperation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ActivatedOperation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4395,7 +3910,7 @@ impl WebUIProtocolActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`, `\"System\"`"] #[cfg(all(feature = "ApplicationModel_Activation", feature = "System"))] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4404,7 +3919,7 @@ impl WebUIProtocolActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn CurrentlyShownApplicationViewId(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CurrentlyShownApplicationViewId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4422,7 +3937,7 @@ impl WebUIProtocolActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn CallerPackageFamilyName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CallerPackageFamilyName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4431,7 +3946,7 @@ impl WebUIProtocolActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`, `\"Foundation_Collections\"`"] #[cfg(all(feature = "ApplicationModel_Activation", feature = "Foundation_Collections"))] pub fn Data(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Data)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4445,40 +3960,36 @@ impl ::windows_core::RuntimeType for WebUIProtocolActivatedEventArgs { #[cfg(feature = "ApplicationModel_Activation")] unsafe impl ::windows_core::Interface for WebUIProtocolActivatedEventArgs { type Vtable = super::super::ApplicationModel::Activation::IProtocolActivatedEventArgs_Vtbl; -} -#[cfg(feature = "ApplicationModel_Activation")] -unsafe impl ::windows_core::ComInterface for WebUIProtocolActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "ApplicationModel_Activation")] impl ::windows_core::RuntimeName for WebUIProtocolActivatedEventArgs { const NAME: &'static str = "Windows.UI.WebUI.WebUIProtocolActivatedEventArgs"; } -#[cfg(feature = "ApplicationModel_Activation")] -::windows_core::imp::interface_hierarchy!(WebUIProtocolActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIProtocolActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIProtocolActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIProtocolActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIProtocolActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIProtocolActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIProtocolActivatedEventArgs {} #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebUIProtocolForResultsActivatedEventArgs(::windows_core::IUnknown); #[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::interface_hierarchy!(WebUIProtocolForResultsActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::required_hierarchy!( + WebUIProtocolForResultsActivatedEventArgs, + super::super::ApplicationModel::Activation::IActivatedEventArgs, + IActivatedEventArgsDeferral, + super::super::ApplicationModel::Activation::IActivatedEventArgsWithUser, + super::super::ApplicationModel::Activation::IApplicationViewActivatedEventArgs, + super::super::ApplicationModel::Activation::IProtocolActivatedEventArgs, + super::super::ApplicationModel::Activation::IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData, + super::super::ApplicationModel::Activation::IProtocolForResultsActivatedEventArgs +); +#[cfg(feature = "ApplicationModel_Activation")] impl WebUIProtocolForResultsActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4487,7 +3998,7 @@ impl WebUIProtocolForResultsActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4496,14 +4007,14 @@ impl WebUIProtocolForResultsActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ActivatedOperation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ActivatedOperation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4512,7 +4023,7 @@ impl WebUIProtocolForResultsActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`, `\"System\"`"] #[cfg(all(feature = "ApplicationModel_Activation", feature = "System"))] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4521,7 +4032,7 @@ impl WebUIProtocolForResultsActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn CurrentlyShownApplicationViewId(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CurrentlyShownApplicationViewId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4530,7 +4041,7 @@ impl WebUIProtocolForResultsActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn Uri(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Uri)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4539,7 +4050,7 @@ impl WebUIProtocolForResultsActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn CallerPackageFamilyName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CallerPackageFamilyName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4548,7 +4059,7 @@ impl WebUIProtocolForResultsActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`, `\"Foundation_Collections\"`"] #[cfg(all(feature = "ApplicationModel_Activation", feature = "Foundation_Collections"))] pub fn Data(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Data)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4571,42 +4082,27 @@ impl ::windows_core::RuntimeType for WebUIProtocolForResultsActivatedEventArgs { #[cfg(feature = "ApplicationModel_Activation")] unsafe impl ::windows_core::Interface for WebUIProtocolForResultsActivatedEventArgs { type Vtable = super::super::ApplicationModel::Activation::IProtocolForResultsActivatedEventArgs_Vtbl; -} -#[cfg(feature = "ApplicationModel_Activation")] -unsafe impl ::windows_core::ComInterface for WebUIProtocolForResultsActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "ApplicationModel_Activation")] impl ::windows_core::RuntimeName for WebUIProtocolForResultsActivatedEventArgs { const NAME: &'static str = "Windows.UI.WebUI.WebUIProtocolForResultsActivatedEventArgs"; } -#[cfg(feature = "ApplicationModel_Activation")] -::windows_core::imp::interface_hierarchy!(WebUIProtocolForResultsActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIProtocolForResultsActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIProtocolForResultsActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIProtocolForResultsActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIProtocolForResultsActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIProtocolForResultsActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIProtocolForResultsActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIProtocolForResultsActivatedEventArgs {} #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebUIRestrictedLaunchActivatedEventArgs(::windows_core::IUnknown); #[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::interface_hierarchy!(WebUIRestrictedLaunchActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::required_hierarchy!(WebUIRestrictedLaunchActivatedEventArgs, super::super::ApplicationModel::Activation::IActivatedEventArgs, IActivatedEventArgsDeferral, super::super::ApplicationModel::Activation::IActivatedEventArgsWithUser, super::super::ApplicationModel::Activation::IRestrictedLaunchActivatedEventArgs); +#[cfg(feature = "ApplicationModel_Activation")] impl WebUIRestrictedLaunchActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4615,7 +4111,7 @@ impl WebUIRestrictedLaunchActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4624,14 +4120,14 @@ impl WebUIRestrictedLaunchActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ActivatedOperation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ActivatedOperation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4640,7 +4136,7 @@ impl WebUIRestrictedLaunchActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`, `\"System\"`"] #[cfg(all(feature = "ApplicationModel_Activation", feature = "System"))] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4663,36 +4159,27 @@ impl ::windows_core::RuntimeType for WebUIRestrictedLaunchActivatedEventArgs { #[cfg(feature = "ApplicationModel_Activation")] unsafe impl ::windows_core::Interface for WebUIRestrictedLaunchActivatedEventArgs { type Vtable = super::super::ApplicationModel::Activation::IRestrictedLaunchActivatedEventArgs_Vtbl; -} -#[cfg(feature = "ApplicationModel_Activation")] -unsafe impl ::windows_core::ComInterface for WebUIRestrictedLaunchActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "ApplicationModel_Activation")] impl ::windows_core::RuntimeName for WebUIRestrictedLaunchActivatedEventArgs { const NAME: &'static str = "Windows.UI.WebUI.WebUIRestrictedLaunchActivatedEventArgs"; } -#[cfg(feature = "ApplicationModel_Activation")] -::windows_core::imp::interface_hierarchy!(WebUIRestrictedLaunchActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIRestrictedLaunchActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIRestrictedLaunchActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIRestrictedLaunchActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIRestrictedLaunchActivatedEventArgs {} #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebUISearchActivatedEventArgs(::windows_core::IUnknown); #[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::interface_hierarchy!(WebUISearchActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::required_hierarchy!(WebUISearchActivatedEventArgs, super::super::ApplicationModel::Activation::IActivatedEventArgs, IActivatedEventArgsDeferral, super::super::ApplicationModel::Activation::IApplicationViewActivatedEventArgs, super::super::ApplicationModel::Activation::ISearchActivatedEventArgs, super::super::ApplicationModel::Activation::ISearchActivatedEventArgsWithLinguisticDetails); +#[cfg(feature = "ApplicationModel_Activation")] impl WebUISearchActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4701,7 +4188,7 @@ impl WebUISearchActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4710,14 +4197,14 @@ impl WebUISearchActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ActivatedOperation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ActivatedOperation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4726,7 +4213,7 @@ impl WebUISearchActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn CurrentlyShownApplicationViewId(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CurrentlyShownApplicationViewId)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4753,7 +4240,7 @@ impl WebUISearchActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`, `\"ApplicationModel_Search\"`"] #[cfg(all(feature = "ApplicationModel_Activation", feature = "ApplicationModel_Search"))] pub fn LinguisticDetails(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).LinguisticDetails)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4767,38 +4254,27 @@ impl ::windows_core::RuntimeType for WebUISearchActivatedEventArgs { #[cfg(feature = "ApplicationModel_Activation")] unsafe impl ::windows_core::Interface for WebUISearchActivatedEventArgs { type Vtable = super::super::ApplicationModel::Activation::ISearchActivatedEventArgs_Vtbl; -} -#[cfg(feature = "ApplicationModel_Activation")] -unsafe impl ::windows_core::ComInterface for WebUISearchActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "ApplicationModel_Activation")] impl ::windows_core::RuntimeName for WebUISearchActivatedEventArgs { const NAME: &'static str = "Windows.UI.WebUI.WebUISearchActivatedEventArgs"; } -#[cfg(feature = "ApplicationModel_Activation")] -::windows_core::imp::interface_hierarchy!(WebUISearchActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUISearchActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUISearchActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUISearchActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUISearchActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUISearchActivatedEventArgs {} #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebUIShareTargetActivatedEventArgs(::windows_core::IUnknown); #[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::interface_hierarchy!(WebUIShareTargetActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::required_hierarchy!(WebUIShareTargetActivatedEventArgs, super::super::ApplicationModel::Activation::IActivatedEventArgs, IActivatedEventArgsDeferral, super::super::ApplicationModel::Activation::IActivatedEventArgsWithUser, super::super::ApplicationModel::Activation::IShareTargetActivatedEventArgs); +#[cfg(feature = "ApplicationModel_Activation")] impl WebUIShareTargetActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4807,7 +4283,7 @@ impl WebUIShareTargetActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4816,14 +4292,14 @@ impl WebUIShareTargetActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ActivatedOperation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ActivatedOperation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4832,7 +4308,7 @@ impl WebUIShareTargetActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`, `\"System\"`"] #[cfg(all(feature = "ApplicationModel_Activation", feature = "System"))] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4855,36 +4331,27 @@ impl ::windows_core::RuntimeType for WebUIShareTargetActivatedEventArgs { #[cfg(feature = "ApplicationModel_Activation")] unsafe impl ::windows_core::Interface for WebUIShareTargetActivatedEventArgs { type Vtable = super::super::ApplicationModel::Activation::IShareTargetActivatedEventArgs_Vtbl; -} -#[cfg(feature = "ApplicationModel_Activation")] -unsafe impl ::windows_core::ComInterface for WebUIShareTargetActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "ApplicationModel_Activation")] impl ::windows_core::RuntimeName for WebUIShareTargetActivatedEventArgs { const NAME: &'static str = "Windows.UI.WebUI.WebUIShareTargetActivatedEventArgs"; } -#[cfg(feature = "ApplicationModel_Activation")] -::windows_core::imp::interface_hierarchy!(WebUIShareTargetActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIShareTargetActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIShareTargetActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIShareTargetActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIShareTargetActivatedEventArgs {} #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebUIStartupTaskActivatedEventArgs(::windows_core::IUnknown); #[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::interface_hierarchy!(WebUIStartupTaskActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::required_hierarchy!(WebUIStartupTaskActivatedEventArgs, super::super::ApplicationModel::Activation::IActivatedEventArgs, IActivatedEventArgsDeferral, super::super::ApplicationModel::Activation::IActivatedEventArgsWithUser, super::super::ApplicationModel::Activation::IStartupTaskActivatedEventArgs); +#[cfg(feature = "ApplicationModel_Activation")] impl WebUIStartupTaskActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4893,7 +4360,7 @@ impl WebUIStartupTaskActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4902,14 +4369,14 @@ impl WebUIStartupTaskActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ActivatedOperation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ActivatedOperation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4918,7 +4385,7 @@ impl WebUIStartupTaskActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`, `\"System\"`"] #[cfg(all(feature = "ApplicationModel_Activation", feature = "System"))] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4941,26 +4408,13 @@ impl ::windows_core::RuntimeType for WebUIStartupTaskActivatedEventArgs { #[cfg(feature = "ApplicationModel_Activation")] unsafe impl ::windows_core::Interface for WebUIStartupTaskActivatedEventArgs { type Vtable = super::super::ApplicationModel::Activation::IStartupTaskActivatedEventArgs_Vtbl; -} -#[cfg(feature = "ApplicationModel_Activation")] -unsafe impl ::windows_core::ComInterface for WebUIStartupTaskActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "ApplicationModel_Activation")] impl ::windows_core::RuntimeName for WebUIStartupTaskActivatedEventArgs { const NAME: &'static str = "Windows.UI.WebUI.WebUIStartupTaskActivatedEventArgs"; } #[cfg(feature = "ApplicationModel_Activation")] -::windows_core::imp::interface_hierarchy!(WebUIStartupTaskActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIStartupTaskActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIStartupTaskActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIStartupTaskActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIStartupTaskActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] unsafe impl ::core::marker::Send for WebUIStartupTaskActivatedEventArgs {} #[cfg(feature = "ApplicationModel_Activation")] unsafe impl ::core::marker::Sync for WebUIStartupTaskActivatedEventArgs {} @@ -4970,11 +4424,15 @@ unsafe impl ::core::marker::Sync for WebUIStartupTaskActivatedEventArgs {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebUIToastNotificationActivatedEventArgs(::windows_core::IUnknown); #[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::interface_hierarchy!(WebUIToastNotificationActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::required_hierarchy!(WebUIToastNotificationActivatedEventArgs, super::super::ApplicationModel::Activation::IActivatedEventArgs, IActivatedEventArgsDeferral, super::super::ApplicationModel::Activation::IActivatedEventArgsWithUser, super::super::ApplicationModel::Activation::IToastNotificationActivatedEventArgs); +#[cfg(feature = "ApplicationModel_Activation")] impl WebUIToastNotificationActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4983,7 +4441,7 @@ impl WebUIToastNotificationActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4992,14 +4450,14 @@ impl WebUIToastNotificationActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ActivatedOperation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ActivatedOperation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5008,7 +4466,7 @@ impl WebUIToastNotificationActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`, `\"System\"`"] #[cfg(all(feature = "ApplicationModel_Activation", feature = "System"))] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5040,36 +4498,27 @@ impl ::windows_core::RuntimeType for WebUIToastNotificationActivatedEventArgs { #[cfg(feature = "ApplicationModel_Activation")] unsafe impl ::windows_core::Interface for WebUIToastNotificationActivatedEventArgs { type Vtable = super::super::ApplicationModel::Activation::IToastNotificationActivatedEventArgs_Vtbl; -} -#[cfg(feature = "ApplicationModel_Activation")] -unsafe impl ::windows_core::ComInterface for WebUIToastNotificationActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "ApplicationModel_Activation")] impl ::windows_core::RuntimeName for WebUIToastNotificationActivatedEventArgs { const NAME: &'static str = "Windows.UI.WebUI.WebUIToastNotificationActivatedEventArgs"; } -#[cfg(feature = "ApplicationModel_Activation")] -::windows_core::imp::interface_hierarchy!(WebUIToastNotificationActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIToastNotificationActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIToastNotificationActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIToastNotificationActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIToastNotificationActivatedEventArgs {} #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebUIUserDataAccountProviderActivatedEventArgs(::windows_core::IUnknown); #[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::interface_hierarchy!(WebUIUserDataAccountProviderActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::required_hierarchy!(WebUIUserDataAccountProviderActivatedEventArgs, super::super::ApplicationModel::Activation::IActivatedEventArgs, IActivatedEventArgsDeferral, super::super::ApplicationModel::Activation::IUserDataAccountProviderActivatedEventArgs); +#[cfg(feature = "ApplicationModel_Activation")] impl WebUIUserDataAccountProviderActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5078,7 +4527,7 @@ impl WebUIUserDataAccountProviderActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5087,14 +4536,14 @@ impl WebUIUserDataAccountProviderActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ActivatedOperation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ActivatedOperation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5117,26 +4566,18 @@ impl ::windows_core::RuntimeType for WebUIUserDataAccountProviderActivatedEventA #[cfg(feature = "ApplicationModel_Activation")] unsafe impl ::windows_core::Interface for WebUIUserDataAccountProviderActivatedEventArgs { type Vtable = super::super::ApplicationModel::Activation::IUserDataAccountProviderActivatedEventArgs_Vtbl; -} -#[cfg(feature = "ApplicationModel_Activation")] -unsafe impl ::windows_core::ComInterface for WebUIUserDataAccountProviderActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "ApplicationModel_Activation")] impl ::windows_core::RuntimeName for WebUIUserDataAccountProviderActivatedEventArgs { const NAME: &'static str = "Windows.UI.WebUI.WebUIUserDataAccountProviderActivatedEventArgs"; } -#[cfg(feature = "ApplicationModel_Activation")] -::windows_core::imp::interface_hierarchy!(WebUIUserDataAccountProviderActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIUserDataAccountProviderActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIUserDataAccountProviderActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIUserDataAccountProviderActivatedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebUIView(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WebUIView, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Web_UI")] +::windows_core::imp::required_hierarchy!(WebUIView, super::super::Web::UI::IWebViewControl, super::super::Web::UI::IWebViewControl2); impl WebUIView { pub fn ApplicationViewId(&self) -> ::windows_core::Result { let this = self; @@ -5204,7 +4645,7 @@ impl WebUIView { #[doc = "Required features: `\"Web_UI\"`"] #[cfg(feature = "Web_UI")] pub fn Source(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Source)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5216,13 +4657,13 @@ impl WebUIView { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } #[doc = "Required features: `\"Web_UI\"`"] #[cfg(feature = "Web_UI")] pub fn DocumentTitle(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DocumentTitle)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5231,7 +4672,7 @@ impl WebUIView { #[doc = "Required features: `\"Web_UI\"`"] #[cfg(feature = "Web_UI")] pub fn CanGoBack(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CanGoBack)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5240,7 +4681,7 @@ impl WebUIView { #[doc = "Required features: `\"Web_UI\"`"] #[cfg(feature = "Web_UI")] pub fn CanGoForward(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CanGoForward)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5249,13 +4690,13 @@ impl WebUIView { #[doc = "Required features: `\"Web_UI\"`"] #[cfg(feature = "Web_UI")] pub fn SetDefaultBackgroundColor(&self, value: super::Color) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDefaultBackgroundColor)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Web_UI\"`"] #[cfg(feature = "Web_UI")] pub fn DefaultBackgroundColor(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DefaultBackgroundColor)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5264,7 +4705,7 @@ impl WebUIView { #[doc = "Required features: `\"Web_UI\"`"] #[cfg(feature = "Web_UI")] pub fn ContainsFullScreenElement(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ContainsFullScreenElement)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5273,7 +4714,7 @@ impl WebUIView { #[doc = "Required features: `\"Web_UI\"`"] #[cfg(feature = "Web_UI")] pub fn Settings(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Settings)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5282,7 +4723,7 @@ impl WebUIView { #[doc = "Required features: `\"Foundation_Collections\"`, `\"Web_UI\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Web_UI"))] pub fn DeferredPermissionRequests(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DeferredPermissionRequests)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5291,25 +4732,25 @@ impl WebUIView { #[doc = "Required features: `\"Web_UI\"`"] #[cfg(feature = "Web_UI")] pub fn GoForward(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).GoForward)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Web_UI\"`"] #[cfg(feature = "Web_UI")] pub fn GoBack(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).GoBack)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Web_UI\"`"] #[cfg(feature = "Web_UI")] pub fn Refresh(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Refresh)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Web_UI\"`"] #[cfg(feature = "Web_UI")] pub fn Stop(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Stop)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Web_UI\"`"] @@ -5318,13 +4759,13 @@ impl WebUIView { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } #[doc = "Required features: `\"Web_UI\"`"] #[cfg(feature = "Web_UI")] pub fn NavigateToString(&self, text: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).NavigateToString)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(text)).ok() } } #[doc = "Required features: `\"Web_UI\"`"] @@ -5332,10 +4773,10 @@ impl WebUIView { pub fn NavigateToLocalStreamUri(&self, source: P0, streamresolver: P1) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam, + P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).NavigateToLocalStreamUri)(::windows_core::Interface::as_raw(this), source.into_param().abi(), streamresolver.try_into_param()?.abi()).ok() } + 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() } } #[doc = "Required features: `\"Web_Http\"`, `\"Web_UI\"`"] #[cfg(all(feature = "Web_Http", feature = "Web_UI"))] @@ -5343,37 +4784,37 @@ impl WebUIView { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Web_UI\"`"] #[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::TryIntoParam>, + P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).InvokeScriptAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(scriptname), arguments.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Storage_Streams\"`, `\"Web_UI\"`"] #[cfg(all(feature = "Storage_Streams", feature = "Web_UI"))] pub fn CapturePreviewToStreamAsync(&self, stream: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CapturePreviewToStreamAsync)(::windows_core::Interface::as_raw(this), stream.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"ApplicationModel_DataTransfer\"`, `\"Web_UI\"`"] #[cfg(all(feature = "ApplicationModel_DataTransfer", feature = "Web_UI"))] pub fn CaptureSelectedContentToDataPackageAsync(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CaptureSelectedContentToDataPackageAsync)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5382,7 +4823,7 @@ impl WebUIView { #[doc = "Required features: `\"Web_UI\"`"] #[cfg(feature = "Web_UI")] pub fn BuildLocalStreamUri(&self, contentidentifier: &::windows_core::HSTRING, relativepath: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).BuildLocalStreamUri)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(contentidentifier), ::core::mem::transmute_copy(relativepath), &mut result__).from_abi(result__) @@ -5391,7 +4832,7 @@ impl WebUIView { #[doc = "Required features: `\"Web_UI\"`"] #[cfg(feature = "Web_UI")] pub fn GetDeferredPermissionRequestById(&self, id: u32, result: &mut ::core::option::Option) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).GetDeferredPermissionRequestById)(::windows_core::Interface::as_raw(this), id, result as *mut _ as _).ok() } } #[doc = "Required features: `\"Web_UI\"`"] @@ -5400,7 +4841,7 @@ impl WebUIView { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -5409,7 +4850,7 @@ impl WebUIView { #[doc = "Required features: `\"Web_UI\"`"] #[cfg(feature = "Web_UI")] pub fn RemoveNavigationStarting(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveNavigationStarting)(::windows_core::Interface::as_raw(this), token).ok() } } #[doc = "Required features: `\"Web_UI\"`"] @@ -5418,7 +4859,7 @@ impl WebUIView { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -5427,7 +4868,7 @@ impl WebUIView { #[doc = "Required features: `\"Web_UI\"`"] #[cfg(feature = "Web_UI")] pub fn RemoveContentLoading(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveContentLoading)(::windows_core::Interface::as_raw(this), token).ok() } } #[doc = "Required features: `\"Web_UI\"`"] @@ -5436,7 +4877,7 @@ impl WebUIView { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -5445,7 +4886,7 @@ impl WebUIView { #[doc = "Required features: `\"Web_UI\"`"] #[cfg(feature = "Web_UI")] pub fn RemoveDOMContentLoaded(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveDOMContentLoaded)(::windows_core::Interface::as_raw(this), token).ok() } } #[doc = "Required features: `\"Web_UI\"`"] @@ -5454,7 +4895,7 @@ impl WebUIView { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -5463,7 +4904,7 @@ impl WebUIView { #[doc = "Required features: `\"Web_UI\"`"] #[cfg(feature = "Web_UI")] pub fn RemoveNavigationCompleted(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveNavigationCompleted)(::windows_core::Interface::as_raw(this), token).ok() } } #[doc = "Required features: `\"Web_UI\"`"] @@ -5472,7 +4913,7 @@ impl WebUIView { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -5481,7 +4922,7 @@ impl WebUIView { #[doc = "Required features: `\"Web_UI\"`"] #[cfg(feature = "Web_UI")] pub fn RemoveFrameNavigationStarting(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveFrameNavigationStarting)(::windows_core::Interface::as_raw(this), token).ok() } } #[doc = "Required features: `\"Web_UI\"`"] @@ -5490,7 +4931,7 @@ impl WebUIView { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -5499,7 +4940,7 @@ impl WebUIView { #[doc = "Required features: `\"Web_UI\"`"] #[cfg(feature = "Web_UI")] pub fn RemoveFrameContentLoading(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveFrameContentLoading)(::windows_core::Interface::as_raw(this), token).ok() } } #[doc = "Required features: `\"Web_UI\"`"] @@ -5508,7 +4949,7 @@ impl WebUIView { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -5517,7 +4958,7 @@ impl WebUIView { #[doc = "Required features: `\"Web_UI\"`"] #[cfg(feature = "Web_UI")] pub fn RemoveFrameDOMContentLoaded(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveFrameDOMContentLoaded)(::windows_core::Interface::as_raw(this), token).ok() } } #[doc = "Required features: `\"Web_UI\"`"] @@ -5526,7 +4967,7 @@ impl WebUIView { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -5535,7 +4976,7 @@ impl WebUIView { #[doc = "Required features: `\"Web_UI\"`"] #[cfg(feature = "Web_UI")] pub fn RemoveFrameNavigationCompleted(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveFrameNavigationCompleted)(::windows_core::Interface::as_raw(this), token).ok() } } #[doc = "Required features: `\"Web_UI\"`"] @@ -5544,7 +4985,7 @@ impl WebUIView { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -5553,7 +4994,7 @@ impl WebUIView { #[doc = "Required features: `\"Web_UI\"`"] #[cfg(feature = "Web_UI")] pub fn RemoveScriptNotify(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveScriptNotify)(::windows_core::Interface::as_raw(this), token).ok() } } #[doc = "Required features: `\"Web_UI\"`"] @@ -5562,7 +5003,7 @@ impl WebUIView { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -5571,7 +5012,7 @@ impl WebUIView { #[doc = "Required features: `\"Web_UI\"`"] #[cfg(feature = "Web_UI")] pub fn RemoveLongRunningScriptDetected(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveLongRunningScriptDetected)(::windows_core::Interface::as_raw(this), token).ok() } } #[doc = "Required features: `\"Web_UI\"`"] @@ -5580,7 +5021,7 @@ impl WebUIView { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -5589,7 +5030,7 @@ impl WebUIView { #[doc = "Required features: `\"Web_UI\"`"] #[cfg(feature = "Web_UI")] pub fn RemoveUnsafeContentWarningDisplaying(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveUnsafeContentWarningDisplaying)(::windows_core::Interface::as_raw(this), token).ok() } } #[doc = "Required features: `\"Web_UI\"`"] @@ -5598,7 +5039,7 @@ impl WebUIView { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -5607,7 +5048,7 @@ impl WebUIView { #[doc = "Required features: `\"Web_UI\"`"] #[cfg(feature = "Web_UI")] pub fn RemoveUnviewableContentIdentified(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveUnviewableContentIdentified)(::windows_core::Interface::as_raw(this), token).ok() } } #[doc = "Required features: `\"Web_UI\"`"] @@ -5616,7 +5057,7 @@ impl WebUIView { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -5625,7 +5066,7 @@ impl WebUIView { #[doc = "Required features: `\"Web_UI\"`"] #[cfg(feature = "Web_UI")] pub fn RemovePermissionRequested(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemovePermissionRequested)(::windows_core::Interface::as_raw(this), token).ok() } } #[doc = "Required features: `\"Web_UI\"`"] @@ -5634,7 +5075,7 @@ impl WebUIView { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -5643,7 +5084,7 @@ impl WebUIView { #[doc = "Required features: `\"Web_UI\"`"] #[cfg(feature = "Web_UI")] pub fn RemoveUnsupportedUriSchemeIdentified(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveUnsupportedUriSchemeIdentified)(::windows_core::Interface::as_raw(this), token).ok() } } #[doc = "Required features: `\"Web_UI\"`"] @@ -5652,7 +5093,7 @@ impl WebUIView { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -5661,7 +5102,7 @@ impl WebUIView { #[doc = "Required features: `\"Web_UI\"`"] #[cfg(feature = "Web_UI")] pub fn RemoveNewWindowRequested(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveNewWindowRequested)(::windows_core::Interface::as_raw(this), token).ok() } } #[doc = "Required features: `\"Web_UI\"`"] @@ -5670,7 +5111,7 @@ impl WebUIView { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -5679,7 +5120,7 @@ impl WebUIView { #[doc = "Required features: `\"Web_UI\"`"] #[cfg(feature = "Web_UI")] pub fn RemoveContainsFullScreenElementChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveContainsFullScreenElementChanged)(::windows_core::Interface::as_raw(this), token).ok() } } #[doc = "Required features: `\"Web_UI\"`"] @@ -5688,7 +5129,7 @@ impl WebUIView { where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -5697,13 +5138,13 @@ impl WebUIView { #[doc = "Required features: `\"Web_UI\"`"] #[cfg(feature = "Web_UI")] pub fn RemoveWebResourceRequested(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveWebResourceRequested)(::windows_core::Interface::as_raw(this), token).ok() } } #[doc = "Required features: `\"Web_UI\"`"] #[cfg(feature = "Web_UI")] pub fn AddInitializeScript(&self, script: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).AddInitializeScript)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(script)).ok() } } #[doc(hidden)] @@ -5717,29 +5158,26 @@ impl ::windows_core::RuntimeType for WebUIView { } unsafe impl ::windows_core::Interface for WebUIView { type Vtable = IWebUIView_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WebUIView { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WebUIView { const NAME: &'static str = "Windows.UI.WebUI.WebUIView"; } -::windows_core::imp::interface_hierarchy!(WebUIView, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Web_UI")] -impl ::windows_core::CanTryInto for WebUIView {} -#[cfg(feature = "Web_UI")] -impl ::windows_core::CanTryInto for WebUIView {} #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebUIVoiceCommandActivatedEventArgs(::windows_core::IUnknown); #[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::interface_hierarchy!(WebUIVoiceCommandActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::required_hierarchy!(WebUIVoiceCommandActivatedEventArgs, super::super::ApplicationModel::Activation::IActivatedEventArgs, IActivatedEventArgsDeferral, super::super::ApplicationModel::Activation::IActivatedEventArgsWithUser, super::super::ApplicationModel::Activation::IVoiceCommandActivatedEventArgs); +#[cfg(feature = "ApplicationModel_Activation")] impl WebUIVoiceCommandActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5748,7 +5186,7 @@ impl WebUIVoiceCommandActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5757,14 +5195,14 @@ impl WebUIVoiceCommandActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ActivatedOperation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ActivatedOperation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5773,7 +5211,7 @@ impl WebUIVoiceCommandActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`, `\"System\"`"] #[cfg(all(feature = "ApplicationModel_Activation", feature = "System"))] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5796,36 +5234,27 @@ impl ::windows_core::RuntimeType for WebUIVoiceCommandActivatedEventArgs { #[cfg(feature = "ApplicationModel_Activation")] unsafe impl ::windows_core::Interface for WebUIVoiceCommandActivatedEventArgs { type Vtable = super::super::ApplicationModel::Activation::IVoiceCommandActivatedEventArgs_Vtbl; -} -#[cfg(feature = "ApplicationModel_Activation")] -unsafe impl ::windows_core::ComInterface for WebUIVoiceCommandActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "ApplicationModel_Activation")] impl ::windows_core::RuntimeName for WebUIVoiceCommandActivatedEventArgs { const NAME: &'static str = "Windows.UI.WebUI.WebUIVoiceCommandActivatedEventArgs"; } -#[cfg(feature = "ApplicationModel_Activation")] -::windows_core::imp::interface_hierarchy!(WebUIVoiceCommandActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIVoiceCommandActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIVoiceCommandActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIVoiceCommandActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIVoiceCommandActivatedEventArgs {} #[doc = "Required features: `\"ApplicationModel_Activation\"`, `\"deprecated\"`"] #[cfg(all(feature = "ApplicationModel_Activation", feature = "deprecated"))] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebUIWalletActionActivatedEventArgs(::windows_core::IUnknown); #[cfg(all(feature = "ApplicationModel_Activation", feature = "deprecated"))] +::windows_core::imp::interface_hierarchy!(WebUIWalletActionActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(all(feature = "ApplicationModel_Activation", feature = "deprecated"))] +::windows_core::imp::required_hierarchy!(WebUIWalletActionActivatedEventArgs, super::super::ApplicationModel::Activation::IActivatedEventArgs, IActivatedEventArgsDeferral, super::super::ApplicationModel::Activation::IWalletActionActivatedEventArgs); +#[cfg(all(feature = "ApplicationModel_Activation", feature = "deprecated"))] impl WebUIWalletActionActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5834,7 +5263,7 @@ impl WebUIWalletActionActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5843,14 +5272,14 @@ impl WebUIWalletActionActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ActivatedOperation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ActivatedOperation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5891,34 +5320,27 @@ impl ::windows_core::RuntimeType for WebUIWalletActionActivatedEventArgs { #[cfg(all(feature = "ApplicationModel_Activation", feature = "deprecated"))] unsafe impl ::windows_core::Interface for WebUIWalletActionActivatedEventArgs { type Vtable = super::super::ApplicationModel::Activation::IWalletActionActivatedEventArgs_Vtbl; -} -#[cfg(all(feature = "ApplicationModel_Activation", feature = "deprecated"))] -unsafe impl ::windows_core::ComInterface for WebUIWalletActionActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(all(feature = "ApplicationModel_Activation", feature = "deprecated"))] impl ::windows_core::RuntimeName for WebUIWalletActionActivatedEventArgs { const NAME: &'static str = "Windows.UI.WebUI.WebUIWalletActionActivatedEventArgs"; } -#[cfg(all(feature = "ApplicationModel_Activation", feature = "deprecated"))] -::windows_core::imp::interface_hierarchy!(WebUIWalletActionActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(all(feature = "ApplicationModel_Activation", feature = "deprecated"))] -impl ::windows_core::CanTryInto for WebUIWalletActionActivatedEventArgs {} -#[cfg(all(feature = "ApplicationModel_Activation", feature = "deprecated"))] -impl ::windows_core::CanTryInto for WebUIWalletActionActivatedEventArgs {} -#[cfg(all(feature = "ApplicationModel_Activation", feature = "deprecated"))] -impl ::windows_core::CanTryInto for WebUIWalletActionActivatedEventArgs {} #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebUIWebAccountProviderActivatedEventArgs(::windows_core::IUnknown); #[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::interface_hierarchy!(WebUIWebAccountProviderActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::required_hierarchy!(WebUIWebAccountProviderActivatedEventArgs, super::super::ApplicationModel::Activation::IActivatedEventArgs, IActivatedEventArgsDeferral, super::super::ApplicationModel::Activation::IActivatedEventArgsWithUser, super::super::ApplicationModel::Activation::IWebAccountProviderActivatedEventArgs); +#[cfg(feature = "ApplicationModel_Activation")] impl WebUIWebAccountProviderActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5927,7 +5349,7 @@ impl WebUIWebAccountProviderActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5936,14 +5358,14 @@ impl WebUIWebAccountProviderActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ActivatedOperation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ActivatedOperation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5952,7 +5374,7 @@ impl WebUIWebAccountProviderActivatedEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`, `\"System\"`"] #[cfg(all(feature = "ApplicationModel_Activation", feature = "System"))] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5975,36 +5397,27 @@ impl ::windows_core::RuntimeType for WebUIWebAccountProviderActivatedEventArgs { #[cfg(feature = "ApplicationModel_Activation")] unsafe impl ::windows_core::Interface for WebUIWebAccountProviderActivatedEventArgs { type Vtable = super::super::ApplicationModel::Activation::IWebAccountProviderActivatedEventArgs_Vtbl; -} -#[cfg(feature = "ApplicationModel_Activation")] -unsafe impl ::windows_core::ComInterface for WebUIWebAccountProviderActivatedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "ApplicationModel_Activation")] impl ::windows_core::RuntimeName for WebUIWebAccountProviderActivatedEventArgs { const NAME: &'static str = "Windows.UI.WebUI.WebUIWebAccountProviderActivatedEventArgs"; } -#[cfg(feature = "ApplicationModel_Activation")] -::windows_core::imp::interface_hierarchy!(WebUIWebAccountProviderActivatedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIWebAccountProviderActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIWebAccountProviderActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIWebAccountProviderActivatedEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIWebAccountProviderActivatedEventArgs {} #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebUIWebAuthenticationBrokerContinuationEventArgs(::windows_core::IUnknown); #[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::interface_hierarchy!(WebUIWebAuthenticationBrokerContinuationEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "ApplicationModel_Activation")] +::windows_core::imp::required_hierarchy!(WebUIWebAuthenticationBrokerContinuationEventArgs, super::super::ApplicationModel::Activation::IActivatedEventArgs, IActivatedEventArgsDeferral, super::super::ApplicationModel::Activation::IContinuationActivatedEventArgs, super::super::ApplicationModel::Activation::IWebAuthenticationBrokerContinuationEventArgs); +#[cfg(feature = "ApplicationModel_Activation")] impl WebUIWebAuthenticationBrokerContinuationEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6013,7 +5426,7 @@ impl WebUIWebAuthenticationBrokerContinuationEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn PreviousExecutionState(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PreviousExecutionState)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6022,14 +5435,14 @@ impl WebUIWebAuthenticationBrokerContinuationEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] pub fn SplashScreen(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).SplashScreen)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ActivatedOperation(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ActivatedOperation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6038,7 +5451,7 @@ impl WebUIWebAuthenticationBrokerContinuationEventArgs { #[doc = "Required features: `\"ApplicationModel_Activation\"`, `\"Foundation_Collections\"`"] #[cfg(all(feature = "ApplicationModel_Activation", feature = "Foundation_Collections"))] pub fn ContinuationData(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ContinuationData)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -6061,25 +5474,12 @@ impl ::windows_core::RuntimeType for WebUIWebAuthenticationBrokerContinuationEve #[cfg(feature = "ApplicationModel_Activation")] unsafe impl ::windows_core::Interface for WebUIWebAuthenticationBrokerContinuationEventArgs { type Vtable = super::super::ApplicationModel::Activation::IWebAuthenticationBrokerContinuationEventArgs_Vtbl; -} -#[cfg(feature = "ApplicationModel_Activation")] -unsafe impl ::windows_core::ComInterface for WebUIWebAuthenticationBrokerContinuationEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } #[cfg(feature = "ApplicationModel_Activation")] impl ::windows_core::RuntimeName for WebUIWebAuthenticationBrokerContinuationEventArgs { const NAME: &'static str = "Windows.UI.WebUI.WebUIWebAuthenticationBrokerContinuationEventArgs"; } -#[cfg(feature = "ApplicationModel_Activation")] -::windows_core::imp::interface_hierarchy!(WebUIWebAuthenticationBrokerContinuationEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIWebAuthenticationBrokerContinuationEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIWebAuthenticationBrokerContinuationEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIWebAuthenticationBrokerContinuationEventArgs {} -#[cfg(feature = "ApplicationModel_Activation")] -impl ::windows_core::CanTryInto for WebUIWebAuthenticationBrokerContinuationEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::marker::Copy, ::core::clone::Clone, ::core::default::Default)] pub struct PrintContent(pub i32); @@ -6100,11 +5500,8 @@ impl ::core::fmt::Debug for PrintContent { impl ::windows_core::RuntimeType for PrintContent { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::from_slice(b"enum(Windows.UI.WebUI.PrintContent;i4)"); } -#[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ActivatedEventHandler(pub ::windows_core::IUnknown); +::windows_core::imp::com_interface!(ActivatedEventHandler, ActivatedEventHandler_Vtbl, 0x50f1e730_c5d1_4b6b_9adb_8a11756be29c); #[cfg(feature = "ApplicationModel_Activation")] impl ActivatedEventHandler { pub fn new, ::core::option::Option<&super::super::ApplicationModel::Activation::IActivatedEventArgs>) -> ::windows_core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { @@ -6116,10 +5513,10 @@ impl ActivatedEventHandler { pub fn Invoke(&self, sender: P0, eventargs: P1) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, - P1: ::windows_core::TryIntoParam, + P1: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).Invoke)(::windows_core::Interface::as_raw(this), sender.into_param().abi(), eventargs.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).Invoke)(::windows_core::Interface::as_raw(this), sender.into_param().abi(), eventargs.into_param().abi()).ok() } } } #[cfg(feature = "ApplicationModel_Activation")] @@ -6140,7 +5537,7 @@ impl, ::core::opt if iid.is_null() || interface.is_null() { return ::windows_core::HRESULT(-2147467261); } - *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; + *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::Interface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::Interface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; if (*interface).is_null() { ::windows_core::HRESULT(-2147467262) } else { @@ -6166,14 +5563,6 @@ impl, ::core::opt } } #[cfg(feature = "ApplicationModel_Activation")] -unsafe impl ::windows_core::Interface for ActivatedEventHandler { - type Vtable = ActivatedEventHandler_Vtbl; -} -#[cfg(feature = "ApplicationModel_Activation")] -unsafe impl ::windows_core::ComInterface for ActivatedEventHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x50f1e730_c5d1_4b6b_9adb_8a11756be29c); -} -#[cfg(feature = "ApplicationModel_Activation")] impl ::windows_core::RuntimeType for ActivatedEventHandler { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } @@ -6187,11 +5576,8 @@ pub struct ActivatedEventHandler_Vtbl { #[cfg(not(feature = "ApplicationModel_Activation"))] Invoke: usize, } -#[doc = "Required features: `\"ApplicationModel_Activation\"`"] #[cfg(feature = "ApplicationModel_Activation")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct BackgroundActivatedEventHandler(pub ::windows_core::IUnknown); +::windows_core::imp::com_interface!(BackgroundActivatedEventHandler, BackgroundActivatedEventHandler_Vtbl, 0xedb19fbb_0761_47cc_9a77_24d7072965ca); #[cfg(feature = "ApplicationModel_Activation")] impl BackgroundActivatedEventHandler { pub fn new, ::core::option::Option<&super::super::ApplicationModel::Activation::IBackgroundActivatedEventArgs>) -> ::windows_core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { @@ -6203,10 +5589,10 @@ impl BackgroundActivatedEventHandler { pub fn Invoke(&self, sender: P0, eventargs: P1) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, - P1: ::windows_core::TryIntoParam, + P1: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).Invoke)(::windows_core::Interface::as_raw(this), sender.into_param().abi(), eventargs.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).Invoke)(::windows_core::Interface::as_raw(this), sender.into_param().abi(), eventargs.into_param().abi()).ok() } } } #[cfg(feature = "ApplicationModel_Activation")] @@ -6227,7 +5613,7 @@ impl, ::core::opt if iid.is_null() || interface.is_null() { return ::windows_core::HRESULT(-2147467261); } - *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; + *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::Interface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::Interface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; if (*interface).is_null() { ::windows_core::HRESULT(-2147467262) } else { @@ -6253,14 +5639,6 @@ impl, ::core::opt } } #[cfg(feature = "ApplicationModel_Activation")] -unsafe impl ::windows_core::Interface for BackgroundActivatedEventHandler { - type Vtable = BackgroundActivatedEventHandler_Vtbl; -} -#[cfg(feature = "ApplicationModel_Activation")] -unsafe impl ::windows_core::ComInterface for BackgroundActivatedEventHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xedb19fbb_0761_47cc_9a77_24d7072965ca); -} -#[cfg(feature = "ApplicationModel_Activation")] impl ::windows_core::RuntimeType for BackgroundActivatedEventHandler { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } @@ -6274,11 +5652,8 @@ pub struct BackgroundActivatedEventHandler_Vtbl { #[cfg(not(feature = "ApplicationModel_Activation"))] Invoke: usize, } -#[doc = "Required features: `\"ApplicationModel\"`"] #[cfg(feature = "ApplicationModel")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct EnteredBackgroundEventHandler(pub ::windows_core::IUnknown); +::windows_core::imp::com_interface!(EnteredBackgroundEventHandler, EnteredBackgroundEventHandler_Vtbl, 0x2b09a173_b68e_4def_88c1_8de84e5aab2f); #[cfg(feature = "ApplicationModel")] impl EnteredBackgroundEventHandler { pub fn new, ::core::option::Option<&super::super::ApplicationModel::IEnteredBackgroundEventArgs>) -> ::windows_core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { @@ -6290,10 +5665,10 @@ impl EnteredBackgroundEventHandler { pub fn Invoke(&self, sender: P0, e: P1) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, - P1: ::windows_core::TryIntoParam, + P1: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).Invoke)(::windows_core::Interface::as_raw(this), sender.into_param().abi(), e.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).Invoke)(::windows_core::Interface::as_raw(this), sender.into_param().abi(), e.into_param().abi()).ok() } } } #[cfg(feature = "ApplicationModel")] @@ -6314,7 +5689,7 @@ impl, ::core::opt if iid.is_null() || interface.is_null() { return ::windows_core::HRESULT(-2147467261); } - *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; + *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::Interface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::Interface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; if (*interface).is_null() { ::windows_core::HRESULT(-2147467262) } else { @@ -6340,14 +5715,6 @@ impl, ::core::opt } } #[cfg(feature = "ApplicationModel")] -unsafe impl ::windows_core::Interface for EnteredBackgroundEventHandler { - type Vtable = EnteredBackgroundEventHandler_Vtbl; -} -#[cfg(feature = "ApplicationModel")] -unsafe impl ::windows_core::ComInterface for EnteredBackgroundEventHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2b09a173_b68e_4def_88c1_8de84e5aab2f); -} -#[cfg(feature = "ApplicationModel")] impl ::windows_core::RuntimeType for EnteredBackgroundEventHandler { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } @@ -6361,11 +5728,8 @@ pub struct EnteredBackgroundEventHandler_Vtbl { #[cfg(not(feature = "ApplicationModel"))] Invoke: usize, } -#[doc = "Required features: `\"ApplicationModel\"`"] #[cfg(feature = "ApplicationModel")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct LeavingBackgroundEventHandler(pub ::windows_core::IUnknown); +::windows_core::imp::com_interface!(LeavingBackgroundEventHandler, LeavingBackgroundEventHandler_Vtbl, 0x00b4ccd9_7a9c_4b6b_9ac4_13474f268bc4); #[cfg(feature = "ApplicationModel")] impl LeavingBackgroundEventHandler { pub fn new, ::core::option::Option<&super::super::ApplicationModel::ILeavingBackgroundEventArgs>) -> ::windows_core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { @@ -6377,10 +5741,10 @@ impl LeavingBackgroundEventHandler { pub fn Invoke(&self, sender: P0, e: P1) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, - P1: ::windows_core::TryIntoParam, + P1: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).Invoke)(::windows_core::Interface::as_raw(this), sender.into_param().abi(), e.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).Invoke)(::windows_core::Interface::as_raw(this), sender.into_param().abi(), e.into_param().abi()).ok() } } } #[cfg(feature = "ApplicationModel")] @@ -6401,7 +5765,7 @@ impl, ::core::opt if iid.is_null() || interface.is_null() { return ::windows_core::HRESULT(-2147467261); } - *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; + *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::Interface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::Interface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; if (*interface).is_null() { ::windows_core::HRESULT(-2147467262) } else { @@ -6427,14 +5791,6 @@ impl, ::core::opt } } #[cfg(feature = "ApplicationModel")] -unsafe impl ::windows_core::Interface for LeavingBackgroundEventHandler { - type Vtable = LeavingBackgroundEventHandler_Vtbl; -} -#[cfg(feature = "ApplicationModel")] -unsafe impl ::windows_core::ComInterface for LeavingBackgroundEventHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00b4ccd9_7a9c_4b6b_9ac4_13474f268bc4); -} -#[cfg(feature = "ApplicationModel")] impl ::windows_core::RuntimeType for LeavingBackgroundEventHandler { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } @@ -6448,9 +5804,7 @@ pub struct LeavingBackgroundEventHandler_Vtbl { #[cfg(not(feature = "ApplicationModel"))] Invoke: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct NavigatedEventHandler(pub ::windows_core::IUnknown); +::windows_core::imp::com_interface!(NavigatedEventHandler, NavigatedEventHandler_Vtbl, 0x7af46fe6_40ca_4e49_a7d6_dbdb330cd1a3); impl NavigatedEventHandler { pub fn new, ::core::option::Option<&IWebUINavigatedEventArgs>) -> ::windows_core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = NavigatedEventHandlerBox:: { vtable: &NavigatedEventHandlerBox::::VTABLE, count: ::windows_core::imp::RefCount::new(1), invoke }; @@ -6459,10 +5813,10 @@ impl NavigatedEventHandler { pub fn Invoke(&self, sender: P0, e: P1) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, - P1: ::windows_core::TryIntoParam, + P1: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).Invoke)(::windows_core::Interface::as_raw(this), sender.into_param().abi(), e.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).Invoke)(::windows_core::Interface::as_raw(this), sender.into_param().abi(), e.into_param().abi()).ok() } } } #[repr(C)] @@ -6481,7 +5835,7 @@ impl, ::core::opt if iid.is_null() || interface.is_null() { return ::windows_core::HRESULT(-2147467261); } - *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; + *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::Interface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::Interface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; if (*interface).is_null() { ::windows_core::HRESULT(-2147467262) } else { @@ -6506,12 +5860,6 @@ impl, ::core::opt ((*this).invoke)(::windows_core::from_raw_borrowed(&sender), ::windows_core::from_raw_borrowed(&e)).into() } } -unsafe impl ::windows_core::Interface for NavigatedEventHandler { - type Vtable = NavigatedEventHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for NavigatedEventHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7af46fe6_40ca_4e49_a7d6_dbdb330cd1a3); -} impl ::windows_core::RuntimeType for NavigatedEventHandler { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } @@ -6521,9 +5869,7 @@ pub struct NavigatedEventHandler_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Invoke: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sender: *mut ::core::ffi::c_void, e: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ResumingEventHandler(pub ::windows_core::IUnknown); +::windows_core::imp::com_interface!(ResumingEventHandler, ResumingEventHandler_Vtbl, 0x26599ba9_a22d_4806_a728_acadc1d075fa); impl ResumingEventHandler { pub fn new) -> ::windows_core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { let com = ResumingEventHandlerBox:: { vtable: &ResumingEventHandlerBox::::VTABLE, count: ::windows_core::imp::RefCount::new(1), invoke }; @@ -6553,7 +5899,7 @@ impl) -> ::window if iid.is_null() || interface.is_null() { return ::windows_core::HRESULT(-2147467261); } - *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; + *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::Interface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::Interface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; if (*interface).is_null() { ::windows_core::HRESULT(-2147467262) } else { @@ -6578,12 +5924,6 @@ impl) -> ::window ((*this).invoke)(::windows_core::from_raw_borrowed(&sender)).into() } } -unsafe impl ::windows_core::Interface for ResumingEventHandler { - type Vtable = ResumingEventHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ResumingEventHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x26599ba9_a22d_4806_a728_acadc1d075fa); -} impl ::windows_core::RuntimeType for ResumingEventHandler { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } @@ -6593,11 +5933,8 @@ pub struct ResumingEventHandler_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Invoke: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sender: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"ApplicationModel\"`"] #[cfg(feature = "ApplicationModel")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct SuspendingEventHandler(pub ::windows_core::IUnknown); +::windows_core::imp::com_interface!(SuspendingEventHandler, SuspendingEventHandler_Vtbl, 0x509c429c_78e2_4883_abc8_8960dcde1b5c); #[cfg(feature = "ApplicationModel")] impl SuspendingEventHandler { pub fn new, ::core::option::Option<&super::super::ApplicationModel::ISuspendingEventArgs>) -> ::windows_core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { @@ -6609,10 +5946,10 @@ impl SuspendingEventHandler { pub fn Invoke(&self, sender: P0, e: P1) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, - P1: ::windows_core::TryIntoParam, + P1: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).Invoke)(::windows_core::Interface::as_raw(this), sender.into_param().abi(), e.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).Invoke)(::windows_core::Interface::as_raw(this), sender.into_param().abi(), e.into_param().abi()).ok() } } } #[cfg(feature = "ApplicationModel")] @@ -6633,7 +5970,7 @@ impl, ::core::opt if iid.is_null() || interface.is_null() { return ::windows_core::HRESULT(-2147467261); } - *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; + *interface = if *iid == ::IID || *iid == <::windows_core::IUnknown as ::windows_core::Interface>::IID || *iid == <::windows_core::imp::IAgileObject as ::windows_core::Interface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() }; if (*interface).is_null() { ::windows_core::HRESULT(-2147467262) } else { @@ -6659,14 +5996,6 @@ impl, ::core::opt } } #[cfg(feature = "ApplicationModel")] -unsafe impl ::windows_core::Interface for SuspendingEventHandler { - type Vtable = SuspendingEventHandler_Vtbl; -} -#[cfg(feature = "ApplicationModel")] -unsafe impl ::windows_core::ComInterface for SuspendingEventHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x509c429c_78e2_4883_abc8_8960dcde1b5c); -} -#[cfg(feature = "ApplicationModel")] impl ::windows_core::RuntimeType for SuspendingEventHandler { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } 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 bafcfe2f9c..dd5b6319d1 100644 --- a/crates/libs/windows/src/Windows/UI/WindowManagement/Preview/mod.rs +++ b/crates/libs/windows/src/Windows/UI/WindowManagement/Preview/mod.rs @@ -1,28 +1,10 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWindowManagementPreview(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWindowManagementPreview { - type Vtable = IWindowManagementPreview_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWindowManagementPreview { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4ef55b0d_561d_513c_a67c_2c02b69cef41); -} +::windows_core::imp::com_interface!(IWindowManagementPreview, IWindowManagementPreview_Vtbl, 0x4ef55b0d_561d_513c_a67c_2c02b69cef41); #[repr(C)] #[doc(hidden)] pub struct IWindowManagementPreview_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWindowManagementPreviewStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWindowManagementPreviewStatics { - type Vtable = IWindowManagementPreviewStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWindowManagementPreviewStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0f9725c6_c004_5a23_8fd2_8d092ce2704a); -} +::windows_core::imp::com_interface!(IWindowManagementPreviewStatics, IWindowManagementPreviewStatics_Vtbl, 0x0f9725c6_c004_5a23_8fd2_8d092ce2704a); #[repr(C)] #[doc(hidden)] pub struct IWindowManagementPreviewStatics_Vtbl { @@ -32,6 +14,7 @@ pub struct IWindowManagementPreviewStatics_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WindowManagementPreview(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WindowManagementPreview, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WindowManagementPreview { pub fn SetPreferredMinSize(window: P0, preferredframeminsize: super::super::super::Foundation::Size) -> ::windows_core::Result<()> where @@ -50,13 +33,10 @@ impl ::windows_core::RuntimeType for WindowManagementPreview { } unsafe impl ::windows_core::Interface for WindowManagementPreview { type Vtable = IWindowManagementPreview_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WindowManagementPreview { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WindowManagementPreview { const NAME: &'static str = "Windows.UI.WindowManagement.Preview.WindowManagementPreview"; } -::windows_core::imp::interface_hierarchy!(WindowManagementPreview, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for WindowManagementPreview {} unsafe impl ::core::marker::Sync for WindowManagementPreview {} diff --git a/crates/libs/windows/src/Windows/UI/WindowManagement/mod.rs b/crates/libs/windows/src/Windows/UI/WindowManagement/mod.rs index eb47bdb27e..de07e36702 100644 --- a/crates/libs/windows/src/Windows/UI/WindowManagement/mod.rs +++ b/crates/libs/windows/src/Windows/UI/WindowManagement/mod.rs @@ -1,16 +1,7 @@ #[cfg(feature = "UI_WindowManagement_Preview")] #[doc = "Required features: `\"UI_WindowManagement_Preview\"`"] pub mod Preview; -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppWindow(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppWindow { - type Vtable = IAppWindow_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppWindow { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x663014a6_b75e_5dbd_995c_f0117fa3fb61); -} +::windows_core::imp::com_interface!(IAppWindow, IAppWindow_Vtbl, 0x663014a6_b75e_5dbd_995c_f0117fa3fb61); #[repr(C)] #[doc(hidden)] pub struct IAppWindow_Vtbl { @@ -51,16 +42,7 @@ pub struct IAppWindow_Vtbl { pub CloseRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveCloseRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppWindowChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppWindowChangedEventArgs { - type Vtable = IAppWindowChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppWindowChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1de1f3be_a655_55ad_b2b6_eb240f880356); -} +::windows_core::imp::com_interface!(IAppWindowChangedEventArgs, IAppWindowChangedEventArgs_Vtbl, 0x1de1f3be_a655_55ad_b2b6_eb240f880356); #[repr(C)] #[doc(hidden)] pub struct IAppWindowChangedEventArgs_Vtbl { @@ -74,16 +56,7 @@ pub struct IAppWindowChangedEventArgs_Vtbl { pub DidWindowingEnvironmentChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub DidWindowPresentationChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppWindowCloseRequestedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppWindowCloseRequestedEventArgs { - type Vtable = IAppWindowCloseRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppWindowCloseRequestedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe9ff01da_e7a2_57a8_8b5e_39c4003afdbb); -} +::windows_core::imp::com_interface!(IAppWindowCloseRequestedEventArgs, IAppWindowCloseRequestedEventArgs_Vtbl, 0xe9ff01da_e7a2_57a8_8b5e_39c4003afdbb); #[repr(C)] #[doc(hidden)] pub struct IAppWindowCloseRequestedEventArgs_Vtbl { @@ -92,32 +65,14 @@ pub struct IAppWindowCloseRequestedEventArgs_Vtbl { pub SetCancel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppWindowClosedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppWindowClosedEventArgs { - type Vtable = IAppWindowClosedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppWindowClosedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcc7df816_9520_5a06_821e_456ad8b358aa); -} +::windows_core::imp::com_interface!(IAppWindowClosedEventArgs, IAppWindowClosedEventArgs_Vtbl, 0xcc7df816_9520_5a06_821e_456ad8b358aa); #[repr(C)] #[doc(hidden)] pub struct IAppWindowClosedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Reason: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut AppWindowClosedReason) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppWindowFrame(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppWindowFrame { - type Vtable = IAppWindowFrame_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppWindowFrame { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9ee22601_7e5d_52af_846b_01dc6c296567); -} +::windows_core::imp::com_interface!(IAppWindowFrame, IAppWindowFrame_Vtbl, 0x9ee22601_7e5d_52af_846b_01dc6c296567); #[repr(C)] #[doc(hidden)] pub struct IAppWindowFrame_Vtbl { @@ -127,16 +82,7 @@ pub struct IAppWindowFrame_Vtbl { #[cfg(not(all(feature = "Foundation_Collections", feature = "UI_Composition")))] DragRegionVisuals: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppWindowFrameStyle(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppWindowFrameStyle { - type Vtable = IAppWindowFrameStyle_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppWindowFrameStyle { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xac412946_e1ac_5230_944a_c60873dcf4a9); -} +::windows_core::imp::com_interface!(IAppWindowFrameStyle, IAppWindowFrameStyle_Vtbl, 0xac412946_e1ac_5230_944a_c60873dcf4a9); #[repr(C)] #[doc(hidden)] pub struct IAppWindowFrameStyle_Vtbl { @@ -144,16 +90,7 @@ pub struct IAppWindowFrameStyle_Vtbl { pub GetFrameStyle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut AppWindowFrameStyle) -> ::windows_core::HRESULT, pub SetFrameStyle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, framestyle: AppWindowFrameStyle) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppWindowPlacement(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppWindowPlacement { - type Vtable = IAppWindowPlacement_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppWindowPlacement { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x03dc815e_e7a9_5857_9c03_7d670594410e); -} +::windows_core::imp::com_interface!(IAppWindowPlacement, IAppWindowPlacement_Vtbl, 0x03dc815e_e7a9_5857_9c03_7d670594410e); #[repr(C)] #[doc(hidden)] pub struct IAppWindowPlacement_Vtbl { @@ -162,47 +99,20 @@ pub struct IAppWindowPlacement_Vtbl { pub Offset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::Point) -> ::windows_core::HRESULT, pub Size: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::Size) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppWindowPresentationConfiguration(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppWindowPresentationConfiguration { - type Vtable = IAppWindowPresentationConfiguration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppWindowPresentationConfiguration { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb5a43ee3_df33_5e67_bd31_1072457300df); -} +::windows_core::imp::com_interface!(IAppWindowPresentationConfiguration, IAppWindowPresentationConfiguration_Vtbl, 0xb5a43ee3_df33_5e67_bd31_1072457300df); #[repr(C)] #[doc(hidden)] pub struct IAppWindowPresentationConfiguration_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Kind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut AppWindowPresentationKind) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppWindowPresentationConfigurationFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppWindowPresentationConfigurationFactory { - type Vtable = IAppWindowPresentationConfigurationFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppWindowPresentationConfigurationFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfd3606a6_7875_5de8_84ff_6351ee13dd0d); -} +::windows_core::imp::com_interface!(IAppWindowPresentationConfigurationFactory, IAppWindowPresentationConfigurationFactory_Vtbl, 0xfd3606a6_7875_5de8_84ff_6351ee13dd0d); #[repr(C)] #[doc(hidden)] pub struct IAppWindowPresentationConfigurationFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppWindowPresenter(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppWindowPresenter { - type Vtable = IAppWindowPresenter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppWindowPresenter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5ae9ed73_e1fd_5317_ad78_5a3ed271bbde); -} +::windows_core::imp::com_interface!(IAppWindowPresenter, IAppWindowPresenter_Vtbl, 0x5ae9ed73_e1fd_5317_ad78_5a3ed271bbde); #[repr(C)] #[doc(hidden)] pub struct IAppWindowPresenter_Vtbl { @@ -212,16 +122,7 @@ pub struct IAppWindowPresenter_Vtbl { pub RequestPresentation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, configuration: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub RequestPresentationByKind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, presentationkind: AppWindowPresentationKind, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppWindowStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppWindowStatics { - type Vtable = IAppWindowStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppWindowStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xff1f3ea3_b769_50ef_9873_108cd0e89746); -} +::windows_core::imp::com_interface!(IAppWindowStatics, IAppWindowStatics_Vtbl, 0xff1f3ea3_b769_50ef_9873_108cd0e89746); #[repr(C)] #[doc(hidden)] pub struct IAppWindowStatics_Vtbl { @@ -230,16 +131,7 @@ pub struct IAppWindowStatics_Vtbl { pub ClearAllPersistedState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ClearPersistedState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, key: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppWindowTitleBar(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppWindowTitleBar { - type Vtable = IAppWindowTitleBar_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppWindowTitleBar { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6e932c84_f644_541d_a2d7_0c262437842d); -} +::windows_core::imp::com_interface!(IAppWindowTitleBar, IAppWindowTitleBar_Vtbl, 0x6e932c84_f644_541d_a2d7_0c262437842d); #[repr(C)] #[doc(hidden)] pub struct IAppWindowTitleBar_Vtbl { @@ -276,32 +168,14 @@ pub struct IAppWindowTitleBar_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetTitleBarOcclusions: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppWindowTitleBarOcclusion(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppWindowTitleBarOcclusion { - type Vtable = IAppWindowTitleBarOcclusion_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppWindowTitleBarOcclusion { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfea3cffd_2ccf_5fc3_aeae_f843876bf37e); -} +::windows_core::imp::com_interface!(IAppWindowTitleBarOcclusion, IAppWindowTitleBarOcclusion_Vtbl, 0xfea3cffd_2ccf_5fc3_aeae_f843876bf37e); #[repr(C)] #[doc(hidden)] pub struct IAppWindowTitleBarOcclusion_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub OccludingRect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::Rect) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppWindowTitleBarVisibility(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppWindowTitleBarVisibility { - type Vtable = IAppWindowTitleBarVisibility_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppWindowTitleBarVisibility { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa215a4e3_6e7e_5651_8c3b_624819528154); -} +::windows_core::imp::com_interface!(IAppWindowTitleBarVisibility, IAppWindowTitleBarVisibility_Vtbl, 0xa215a4e3_6e7e_5651_8c3b_624819528154); #[repr(C)] #[doc(hidden)] pub struct IAppWindowTitleBarVisibility_Vtbl { @@ -309,46 +183,19 @@ pub struct IAppWindowTitleBarVisibility_Vtbl { pub GetPreferredVisibility: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut AppWindowTitleBarVisibility) -> ::windows_core::HRESULT, pub SetPreferredVisibility: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, visibilitymode: AppWindowTitleBarVisibility) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompactOverlayPresentationConfiguration(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompactOverlayPresentationConfiguration { - type Vtable = ICompactOverlayPresentationConfiguration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompactOverlayPresentationConfiguration { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa7e5750f_5730_56c6_8e1f_d63ff4d7980d); -} +::windows_core::imp::com_interface!(ICompactOverlayPresentationConfiguration, ICompactOverlayPresentationConfiguration_Vtbl, 0xa7e5750f_5730_56c6_8e1f_d63ff4d7980d); #[repr(C)] #[doc(hidden)] pub struct ICompactOverlayPresentationConfiguration_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDefaultPresentationConfiguration(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDefaultPresentationConfiguration { - type Vtable = IDefaultPresentationConfiguration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDefaultPresentationConfiguration { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd8c2b53b_2168_5703_a853_d525589fe2b9); -} +::windows_core::imp::com_interface!(IDefaultPresentationConfiguration, IDefaultPresentationConfiguration_Vtbl, 0xd8c2b53b_2168_5703_a853_d525589fe2b9); #[repr(C)] #[doc(hidden)] pub struct IDefaultPresentationConfiguration_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDisplayRegion(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDisplayRegion { - type Vtable = IDisplayRegion_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDisplayRegion { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdb50c3a2_4094_5f47_8cb1_ea01ddafaa94); -} +::windows_core::imp::com_interface!(IDisplayRegion, IDisplayRegion_Vtbl, 0xdb50c3a2_4094_5f47_8cb1_ea01ddafaa94); #[repr(C)] #[doc(hidden)] pub struct IDisplayRegion_Vtbl { @@ -361,16 +208,7 @@ pub struct IDisplayRegion_Vtbl { pub Changed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFullScreenPresentationConfiguration(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFullScreenPresentationConfiguration { - type Vtable = IFullScreenPresentationConfiguration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFullScreenPresentationConfiguration { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x43d3dcd8_d2a8_503d_a626_15533d6d5f62); -} +::windows_core::imp::com_interface!(IFullScreenPresentationConfiguration, IFullScreenPresentationConfiguration_Vtbl, 0x43d3dcd8_d2a8_503d_a626_15533d6d5f62); #[repr(C)] #[doc(hidden)] pub struct IFullScreenPresentationConfiguration_Vtbl { @@ -378,16 +216,7 @@ pub struct IFullScreenPresentationConfiguration_Vtbl { pub IsExclusive: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetIsExclusive: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWindowServicesStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWindowServicesStatics { - type Vtable = IWindowServicesStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWindowServicesStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcff4d519_50a6_5c64_97f6_c2d96add7f42); -} +::windows_core::imp::com_interface!(IWindowServicesStatics, IWindowServicesStatics_Vtbl, 0xcff4d519_50a6_5c64_97f6_c2d96add7f42); #[repr(C)] #[doc(hidden)] pub struct IWindowServicesStatics_Vtbl { @@ -397,16 +226,7 @@ pub struct IWindowServicesStatics_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] FindAllTopLevelWindowIds: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWindowingEnvironment(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWindowingEnvironment { - type Vtable = IWindowingEnvironment_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWindowingEnvironment { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x264363c0_2a49_5417_b3ae_48a71c63a3bd); -} +::windows_core::imp::com_interface!(IWindowingEnvironment, IWindowingEnvironment_Vtbl, 0x264363c0_2a49_5417_b3ae_48a71c63a3bd); #[repr(C)] #[doc(hidden)] pub struct IWindowingEnvironment_Vtbl { @@ -420,63 +240,27 @@ pub struct IWindowingEnvironment_Vtbl { pub Changed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWindowingEnvironmentAddedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWindowingEnvironmentAddedEventArgs { - type Vtable = IWindowingEnvironmentAddedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWindowingEnvironmentAddedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xff2a5b7f_f183_5c66_99b2_429082069299); -} +::windows_core::imp::com_interface!(IWindowingEnvironmentAddedEventArgs, IWindowingEnvironmentAddedEventArgs_Vtbl, 0xff2a5b7f_f183_5c66_99b2_429082069299); #[repr(C)] #[doc(hidden)] pub struct IWindowingEnvironmentAddedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub WindowingEnvironment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWindowingEnvironmentChangedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWindowingEnvironmentChangedEventArgs { - type Vtable = IWindowingEnvironmentChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWindowingEnvironmentChangedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4160cfc6_023d_5e9a_b431_350e67dc978a); -} +::windows_core::imp::com_interface!(IWindowingEnvironmentChangedEventArgs, IWindowingEnvironmentChangedEventArgs_Vtbl, 0x4160cfc6_023d_5e9a_b431_350e67dc978a); #[repr(C)] #[doc(hidden)] pub struct IWindowingEnvironmentChangedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWindowingEnvironmentRemovedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWindowingEnvironmentRemovedEventArgs { - type Vtable = IWindowingEnvironmentRemovedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWindowingEnvironmentRemovedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2e5b5473_beff_5e53_9316_7e775fe568b3); -} +::windows_core::imp::com_interface!(IWindowingEnvironmentRemovedEventArgs, IWindowingEnvironmentRemovedEventArgs_Vtbl, 0x2e5b5473_beff_5e53_9316_7e775fe568b3); #[repr(C)] #[doc(hidden)] pub struct IWindowingEnvironmentRemovedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub WindowingEnvironment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWindowingEnvironmentStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWindowingEnvironmentStatics { - type Vtable = IWindowingEnvironmentStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWindowingEnvironmentStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x874e9fb7_c642_55ab_8aa2_162f734a9a72); -} +::windows_core::imp::com_interface!(IWindowingEnvironmentStatics, IWindowingEnvironmentStatics_Vtbl, 0x874e9fb7_c642_55ab_8aa2_162f734a9a72); #[repr(C)] #[doc(hidden)] pub struct IWindowingEnvironmentStatics_Vtbl { @@ -493,6 +277,7 @@ pub struct IWindowingEnvironmentStatics_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppWindow(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppWindow, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppWindow { pub fn Content(&self) -> ::windows_core::Result { let this = self; @@ -709,19 +494,17 @@ impl ::windows_core::RuntimeType for AppWindow { } unsafe impl ::windows_core::Interface for AppWindow { type Vtable = IAppWindow_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppWindow { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppWindow { const NAME: &'static str = "Windows.UI.WindowManagement.AppWindow"; } -::windows_core::imp::interface_hierarchy!(AppWindow, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppWindow {} unsafe impl ::core::marker::Sync for AppWindow {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppWindowChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppWindowChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppWindowChangedEventArgs { pub fn DidAvailableWindowPresentationsChange(&self) -> ::windows_core::Result { let this = self; @@ -785,19 +568,17 @@ impl ::windows_core::RuntimeType for AppWindowChangedEventArgs { } unsafe impl ::windows_core::Interface for AppWindowChangedEventArgs { type Vtable = IAppWindowChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppWindowChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppWindowChangedEventArgs { const NAME: &'static str = "Windows.UI.WindowManagement.AppWindowChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(AppWindowChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppWindowChangedEventArgs {} unsafe impl ::core::marker::Sync for AppWindowChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppWindowCloseRequestedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppWindowCloseRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppWindowCloseRequestedEventArgs { pub fn Cancel(&self) -> ::windows_core::Result { let this = self; @@ -823,19 +604,17 @@ impl ::windows_core::RuntimeType for AppWindowCloseRequestedEventArgs { } unsafe impl ::windows_core::Interface for AppWindowCloseRequestedEventArgs { type Vtable = IAppWindowCloseRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppWindowCloseRequestedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppWindowCloseRequestedEventArgs { const NAME: &'static str = "Windows.UI.WindowManagement.AppWindowCloseRequestedEventArgs"; } -::windows_core::imp::interface_hierarchy!(AppWindowCloseRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppWindowCloseRequestedEventArgs {} unsafe impl ::core::marker::Sync for AppWindowCloseRequestedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppWindowClosedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppWindowClosedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppWindowClosedEventArgs { pub fn Reason(&self) -> ::windows_core::Result { let this = self; @@ -850,19 +629,17 @@ impl ::windows_core::RuntimeType for AppWindowClosedEventArgs { } unsafe impl ::windows_core::Interface for AppWindowClosedEventArgs { type Vtable = IAppWindowClosedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppWindowClosedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppWindowClosedEventArgs { const NAME: &'static str = "Windows.UI.WindowManagement.AppWindowClosedEventArgs"; } -::windows_core::imp::interface_hierarchy!(AppWindowClosedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppWindowClosedEventArgs {} unsafe impl ::core::marker::Sync for AppWindowClosedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppWindowFrame(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppWindowFrame, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppWindowFrame { #[doc = "Required features: `\"Foundation_Collections\"`, `\"UI_Composition\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "UI_Composition"))] @@ -874,14 +651,14 @@ impl AppWindowFrame { } } pub fn GetFrameStyle(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetFrameStyle)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetFrameStyle(&self, framestyle: AppWindowFrameStyle) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetFrameStyle)(::windows_core::Interface::as_raw(this), framestyle).ok() } } } @@ -890,19 +667,17 @@ impl ::windows_core::RuntimeType for AppWindowFrame { } unsafe impl ::windows_core::Interface for AppWindowFrame { type Vtable = IAppWindowFrame_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppWindowFrame { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppWindowFrame { const NAME: &'static str = "Windows.UI.WindowManagement.AppWindowFrame"; } -::windows_core::imp::interface_hierarchy!(AppWindowFrame, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppWindowFrame {} unsafe impl ::core::marker::Sync for AppWindowFrame {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppWindowPlacement(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppWindowPlacement, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppWindowPlacement { pub fn DisplayRegion(&self) -> ::windows_core::Result { let this = self; @@ -931,19 +706,17 @@ impl ::windows_core::RuntimeType for AppWindowPlacement { } unsafe impl ::windows_core::Interface for AppWindowPlacement { type Vtable = IAppWindowPlacement_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppWindowPlacement { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppWindowPlacement { const NAME: &'static str = "Windows.UI.WindowManagement.AppWindowPlacement"; } -::windows_core::imp::interface_hierarchy!(AppWindowPlacement, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppWindowPlacement {} unsafe impl ::core::marker::Sync for AppWindowPlacement {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppWindowPresentationConfiguration(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppWindowPresentationConfiguration, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppWindowPresentationConfiguration { pub fn Kind(&self) -> ::windows_core::Result { let this = self; @@ -958,19 +731,17 @@ impl ::windows_core::RuntimeType for AppWindowPresentationConfiguration { } unsafe impl ::windows_core::Interface for AppWindowPresentationConfiguration { type Vtable = IAppWindowPresentationConfiguration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppWindowPresentationConfiguration { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppWindowPresentationConfiguration { const NAME: &'static str = "Windows.UI.WindowManagement.AppWindowPresentationConfiguration"; } -::windows_core::imp::interface_hierarchy!(AppWindowPresentationConfiguration, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppWindowPresentationConfiguration {} unsafe impl ::core::marker::Sync for AppWindowPresentationConfiguration {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppWindowPresenter(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppWindowPresenter, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppWindowPresenter { pub fn GetConfiguration(&self) -> ::windows_core::Result { let this = self; @@ -988,12 +759,12 @@ impl AppWindowPresenter { } pub fn RequestPresentation(&self, configuration: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).RequestPresentation)(::windows_core::Interface::as_raw(this), configuration.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).RequestPresentation)(::windows_core::Interface::as_raw(this), configuration.into_param().abi(), &mut result__).from_abi(result__) } } pub fn RequestPresentationByKind(&self, presentationkind: AppWindowPresentationKind) -> ::windows_core::Result { @@ -1009,19 +780,17 @@ impl ::windows_core::RuntimeType for AppWindowPresenter { } unsafe impl ::windows_core::Interface for AppWindowPresenter { type Vtable = IAppWindowPresenter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppWindowPresenter { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppWindowPresenter { const NAME: &'static str = "Windows.UI.WindowManagement.AppWindowPresenter"; } -::windows_core::imp::interface_hierarchy!(AppWindowPresenter, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppWindowPresenter {} unsafe impl ::core::marker::Sync for AppWindowPresenter {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppWindowTitleBar(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppWindowTitleBar, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppWindowTitleBar { pub fn BackgroundColor(&self) -> ::windows_core::Result> { let this = self; @@ -1032,10 +801,10 @@ impl AppWindowTitleBar { } pub fn SetBackgroundColor(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetBackgroundColor)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetBackgroundColor)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn ButtonBackgroundColor(&self) -> ::windows_core::Result> { let this = self; @@ -1046,10 +815,10 @@ impl AppWindowTitleBar { } pub fn SetButtonBackgroundColor(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetButtonBackgroundColor)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetButtonBackgroundColor)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn ButtonForegroundColor(&self) -> ::windows_core::Result> { let this = self; @@ -1060,10 +829,10 @@ impl AppWindowTitleBar { } pub fn SetButtonForegroundColor(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetButtonForegroundColor)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetButtonForegroundColor)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn ButtonHoverBackgroundColor(&self) -> ::windows_core::Result> { let this = self; @@ -1074,10 +843,10 @@ impl AppWindowTitleBar { } pub fn SetButtonHoverBackgroundColor(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetButtonHoverBackgroundColor)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetButtonHoverBackgroundColor)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn ButtonHoverForegroundColor(&self) -> ::windows_core::Result> { let this = self; @@ -1088,10 +857,10 @@ impl AppWindowTitleBar { } pub fn SetButtonHoverForegroundColor(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetButtonHoverForegroundColor)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetButtonHoverForegroundColor)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn ButtonInactiveBackgroundColor(&self) -> ::windows_core::Result> { let this = self; @@ -1102,10 +871,10 @@ impl AppWindowTitleBar { } pub fn SetButtonInactiveBackgroundColor(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetButtonInactiveBackgroundColor)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetButtonInactiveBackgroundColor)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn ButtonInactiveForegroundColor(&self) -> ::windows_core::Result> { let this = self; @@ -1116,10 +885,10 @@ impl AppWindowTitleBar { } pub fn SetButtonInactiveForegroundColor(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetButtonInactiveForegroundColor)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetButtonInactiveForegroundColor)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn ButtonPressedBackgroundColor(&self) -> ::windows_core::Result> { let this = self; @@ -1130,10 +899,10 @@ impl AppWindowTitleBar { } pub fn SetButtonPressedBackgroundColor(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetButtonPressedBackgroundColor)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetButtonPressedBackgroundColor)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn ButtonPressedForegroundColor(&self) -> ::windows_core::Result> { let this = self; @@ -1144,10 +913,10 @@ impl AppWindowTitleBar { } pub fn SetButtonPressedForegroundColor(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetButtonPressedForegroundColor)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetButtonPressedForegroundColor)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn ExtendsContentIntoTitleBar(&self) -> ::windows_core::Result { let this = self; @@ -1169,10 +938,10 @@ impl AppWindowTitleBar { } pub fn SetForegroundColor(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetForegroundColor)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetForegroundColor)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn InactiveBackgroundColor(&self) -> ::windows_core::Result> { let this = self; @@ -1183,10 +952,10 @@ impl AppWindowTitleBar { } pub fn SetInactiveBackgroundColor(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetInactiveBackgroundColor)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetInactiveBackgroundColor)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn InactiveForegroundColor(&self) -> ::windows_core::Result> { let this = self; @@ -1197,10 +966,10 @@ impl AppWindowTitleBar { } pub fn SetInactiveForegroundColor(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetInactiveForegroundColor)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetInactiveForegroundColor)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn IsVisible(&self) -> ::windows_core::Result { let this = self; @@ -1219,14 +988,14 @@ impl AppWindowTitleBar { } } pub fn GetPreferredVisibility(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetPreferredVisibility)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetPreferredVisibility(&self, visibilitymode: AppWindowTitleBarVisibility) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetPreferredVisibility)(::windows_core::Interface::as_raw(this), visibilitymode).ok() } } } @@ -1235,19 +1004,17 @@ impl ::windows_core::RuntimeType for AppWindowTitleBar { } unsafe impl ::windows_core::Interface for AppWindowTitleBar { type Vtable = IAppWindowTitleBar_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppWindowTitleBar { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppWindowTitleBar { const NAME: &'static str = "Windows.UI.WindowManagement.AppWindowTitleBar"; } -::windows_core::imp::interface_hierarchy!(AppWindowTitleBar, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppWindowTitleBar {} unsafe impl ::core::marker::Sync for AppWindowTitleBar {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AppWindowTitleBarOcclusion(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AppWindowTitleBarOcclusion, ::windows_core::IUnknown, ::windows_core::IInspectable); impl AppWindowTitleBarOcclusion { pub fn OccludingRect(&self) -> ::windows_core::Result { let this = self; @@ -1262,19 +1029,18 @@ impl ::windows_core::RuntimeType for AppWindowTitleBarOcclusion { } unsafe impl ::windows_core::Interface for AppWindowTitleBarOcclusion { type Vtable = IAppWindowTitleBarOcclusion_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AppWindowTitleBarOcclusion { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AppWindowTitleBarOcclusion { const NAME: &'static str = "Windows.UI.WindowManagement.AppWindowTitleBarOcclusion"; } -::windows_core::imp::interface_hierarchy!(AppWindowTitleBarOcclusion, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for AppWindowTitleBarOcclusion {} unsafe impl ::core::marker::Sync for AppWindowTitleBarOcclusion {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct CompactOverlayPresentationConfiguration(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(CompactOverlayPresentationConfiguration, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(CompactOverlayPresentationConfiguration, AppWindowPresentationConfiguration); impl CompactOverlayPresentationConfiguration { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1284,7 +1050,7 @@ impl CompactOverlayPresentationConfiguration { SHARED.call(callback) } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1296,20 +1062,18 @@ impl ::windows_core::RuntimeType for CompactOverlayPresentationConfiguration { } unsafe impl ::windows_core::Interface for CompactOverlayPresentationConfiguration { type Vtable = ICompactOverlayPresentationConfiguration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for CompactOverlayPresentationConfiguration { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for CompactOverlayPresentationConfiguration { const NAME: &'static str = "Windows.UI.WindowManagement.CompactOverlayPresentationConfiguration"; } -::windows_core::imp::interface_hierarchy!(CompactOverlayPresentationConfiguration, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for CompactOverlayPresentationConfiguration {} unsafe impl ::core::marker::Send for CompactOverlayPresentationConfiguration {} unsafe impl ::core::marker::Sync for CompactOverlayPresentationConfiguration {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DefaultPresentationConfiguration(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DefaultPresentationConfiguration, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(DefaultPresentationConfiguration, AppWindowPresentationConfiguration); impl DefaultPresentationConfiguration { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1319,7 +1083,7 @@ impl DefaultPresentationConfiguration { SHARED.call(callback) } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1331,20 +1095,17 @@ impl ::windows_core::RuntimeType for DefaultPresentationConfiguration { } unsafe impl ::windows_core::Interface for DefaultPresentationConfiguration { type Vtable = IDefaultPresentationConfiguration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DefaultPresentationConfiguration { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DefaultPresentationConfiguration { const NAME: &'static str = "Windows.UI.WindowManagement.DefaultPresentationConfiguration"; } -::windows_core::imp::interface_hierarchy!(DefaultPresentationConfiguration, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for DefaultPresentationConfiguration {} unsafe impl ::core::marker::Send for DefaultPresentationConfiguration {} unsafe impl ::core::marker::Sync for DefaultPresentationConfiguration {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct DisplayRegion(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(DisplayRegion, ::windows_core::IUnknown, ::windows_core::IInspectable); impl DisplayRegion { pub fn DisplayMonitorDeviceId(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1401,19 +1162,18 @@ impl ::windows_core::RuntimeType for DisplayRegion { } unsafe impl ::windows_core::Interface for DisplayRegion { type Vtable = IDisplayRegion_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DisplayRegion { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for DisplayRegion { const NAME: &'static str = "Windows.UI.WindowManagement.DisplayRegion"; } -::windows_core::imp::interface_hierarchy!(DisplayRegion, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for DisplayRegion {} unsafe impl ::core::marker::Sync for DisplayRegion {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct FullScreenPresentationConfiguration(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(FullScreenPresentationConfiguration, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(FullScreenPresentationConfiguration, AppWindowPresentationConfiguration); impl FullScreenPresentationConfiguration { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1423,7 +1183,7 @@ impl FullScreenPresentationConfiguration { SHARED.call(callback) } pub fn Kind(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Kind)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1446,15 +1206,11 @@ impl ::windows_core::RuntimeType for FullScreenPresentationConfiguration { } unsafe impl ::windows_core::Interface for FullScreenPresentationConfiguration { type Vtable = IFullScreenPresentationConfiguration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for FullScreenPresentationConfiguration { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for FullScreenPresentationConfiguration { const NAME: &'static str = "Windows.UI.WindowManagement.FullScreenPresentationConfiguration"; } -::windows_core::imp::interface_hierarchy!(FullScreenPresentationConfiguration, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for FullScreenPresentationConfiguration {} unsafe impl ::core::marker::Send for FullScreenPresentationConfiguration {} unsafe impl ::core::marker::Sync for FullScreenPresentationConfiguration {} pub struct WindowServices; @@ -1479,6 +1235,7 @@ impl ::windows_core::RuntimeName for WindowServices { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WindowingEnvironment(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WindowingEnvironment, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WindowingEnvironment { pub fn IsEnabled(&self) -> ::windows_core::Result { let this = self; @@ -1544,19 +1301,17 @@ impl ::windows_core::RuntimeType for WindowingEnvironment { } unsafe impl ::windows_core::Interface for WindowingEnvironment { type Vtable = IWindowingEnvironment_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WindowingEnvironment { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WindowingEnvironment { const NAME: &'static str = "Windows.UI.WindowManagement.WindowingEnvironment"; } -::windows_core::imp::interface_hierarchy!(WindowingEnvironment, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for WindowingEnvironment {} unsafe impl ::core::marker::Sync for WindowingEnvironment {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WindowingEnvironmentAddedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WindowingEnvironmentAddedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WindowingEnvironmentAddedEventArgs { pub fn WindowingEnvironment(&self) -> ::windows_core::Result { let this = self; @@ -1571,38 +1326,34 @@ impl ::windows_core::RuntimeType for WindowingEnvironmentAddedEventArgs { } unsafe impl ::windows_core::Interface for WindowingEnvironmentAddedEventArgs { type Vtable = IWindowingEnvironmentAddedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WindowingEnvironmentAddedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WindowingEnvironmentAddedEventArgs { const NAME: &'static str = "Windows.UI.WindowManagement.WindowingEnvironmentAddedEventArgs"; } -::windows_core::imp::interface_hierarchy!(WindowingEnvironmentAddedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for WindowingEnvironmentAddedEventArgs {} unsafe impl ::core::marker::Sync for WindowingEnvironmentAddedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WindowingEnvironmentChangedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WindowingEnvironmentChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WindowingEnvironmentChangedEventArgs {} impl ::windows_core::RuntimeType for WindowingEnvironmentChangedEventArgs { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_class::(); } unsafe impl ::windows_core::Interface for WindowingEnvironmentChangedEventArgs { type Vtable = IWindowingEnvironmentChangedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WindowingEnvironmentChangedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WindowingEnvironmentChangedEventArgs { const NAME: &'static str = "Windows.UI.WindowManagement.WindowingEnvironmentChangedEventArgs"; } -::windows_core::imp::interface_hierarchy!(WindowingEnvironmentChangedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for WindowingEnvironmentChangedEventArgs {} unsafe impl ::core::marker::Sync for WindowingEnvironmentChangedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WindowingEnvironmentRemovedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WindowingEnvironmentRemovedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WindowingEnvironmentRemovedEventArgs { pub fn WindowingEnvironment(&self) -> ::windows_core::Result { let this = self; @@ -1617,14 +1368,11 @@ impl ::windows_core::RuntimeType for WindowingEnvironmentRemovedEventArgs { } unsafe impl ::windows_core::Interface for WindowingEnvironmentRemovedEventArgs { type Vtable = IWindowingEnvironmentRemovedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WindowingEnvironmentRemovedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WindowingEnvironmentRemovedEventArgs { const NAME: &'static str = "Windows.UI.WindowManagement.WindowingEnvironmentRemovedEventArgs"; } -::windows_core::imp::interface_hierarchy!(WindowingEnvironmentRemovedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for WindowingEnvironmentRemovedEventArgs {} unsafe impl ::core::marker::Sync for WindowingEnvironmentRemovedEventArgs {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/UI/mod.rs b/crates/libs/windows/src/Windows/UI/mod.rs index f2ffde7f03..38fc578fc3 100644 --- a/crates/libs/windows/src/Windows/UI/mod.rs +++ b/crates/libs/windows/src/Windows/UI/mod.rs @@ -40,78 +40,33 @@ pub mod WebUI; #[cfg(feature = "UI_WindowManagement")] #[doc = "Required features: `\"UI_WindowManagement\"`"] pub mod WindowManagement; -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IColorHelper(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IColorHelper { - type Vtable = IColorHelper_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IColorHelper { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x193cfbe7_65c7_4540_ad08_6283ba76879a); -} +::windows_core::imp::com_interface!(IColorHelper, IColorHelper_Vtbl, 0x193cfbe7_65c7_4540_ad08_6283ba76879a); #[repr(C)] #[doc(hidden)] pub struct IColorHelper_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IColorHelperStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IColorHelperStatics { - type Vtable = IColorHelperStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IColorHelperStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8504dbea_fb6a_4144_a6c2_33499c9284f5); -} +::windows_core::imp::com_interface!(IColorHelperStatics, IColorHelperStatics_Vtbl, 0x8504dbea_fb6a_4144_a6c2_33499c9284f5); #[repr(C)] #[doc(hidden)] pub struct IColorHelperStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub FromArgb: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, a: u8, r: u8, g: u8, b: u8, result__: *mut Color) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IColorHelperStatics2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IColorHelperStatics2 { - type Vtable = IColorHelperStatics2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IColorHelperStatics2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x24d9af02_6eb0_4b94_855c_fcf0818d9a16); -} +::windows_core::imp::com_interface!(IColorHelperStatics2, IColorHelperStatics2_Vtbl, 0x24d9af02_6eb0_4b94_855c_fcf0818d9a16); #[repr(C)] #[doc(hidden)] pub struct IColorHelperStatics2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ToDisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, color: Color, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IColors(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IColors { - type Vtable = IColors_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IColors { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9b8c9326_4ca6_4ce5_8994_9eff65cabdcc); -} +::windows_core::imp::com_interface!(IColors, IColors_Vtbl, 0x9b8c9326_4ca6_4ce5_8994_9eff65cabdcc); #[repr(C)] #[doc(hidden)] pub struct IColors_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IColorsStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IColorsStatics { - type Vtable = IColorsStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IColorsStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcff52e04_cca6_4614_a17e_754910c84a99); -} +::windows_core::imp::com_interface!(IColorsStatics, IColorsStatics_Vtbl, 0xcff52e04_cca6_4614_a17e_754910c84a99); #[repr(C)] #[doc(hidden)] pub struct IColorsStatics_Vtbl { @@ -258,32 +213,14 @@ pub struct IColorsStatics_Vtbl { pub Yellow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut Color) -> ::windows_core::HRESULT, pub YellowGreen: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut Color) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIContentRoot(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIContentRoot { - type Vtable = IUIContentRoot_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIContentRoot { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1dfcbac6_b36b_5cb9_9bc5_2b7a0eddc378); -} +::windows_core::imp::com_interface!(IUIContentRoot, IUIContentRoot_Vtbl, 0x1dfcbac6_b36b_5cb9_9bc5_2b7a0eddc378); #[repr(C)] #[doc(hidden)] pub struct IUIContentRoot_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub UIContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIContext(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIContext { - type Vtable = IUIContext_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIContext { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbb5cfacd_5bd8_59d0_a59e_1c17a4d6d243); -} +::windows_core::imp::com_interface!(IUIContext, IUIContext_Vtbl, 0xbb5cfacd_5bd8_59d0_a59e_1c17a4d6d243); #[repr(C)] #[doc(hidden)] pub struct IUIContext_Vtbl { @@ -292,6 +229,7 @@ pub struct IUIContext_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ColorHelper(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ColorHelper, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ColorHelper { pub fn FromArgb(a: u8, r: u8, g: u8, b: u8) -> ::windows_core::Result { Self::IColorHelperStatics(|this| unsafe { @@ -321,19 +259,17 @@ impl ::windows_core::RuntimeType for ColorHelper { } unsafe impl ::windows_core::Interface for ColorHelper { type Vtable = IColorHelper_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ColorHelper { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ColorHelper { const NAME: &'static str = "Windows.UI.ColorHelper"; } -::windows_core::imp::interface_hierarchy!(ColorHelper, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for ColorHelper {} unsafe impl ::core::marker::Sync for ColorHelper {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Colors(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Colors, ::windows_core::IUnknown, ::windows_core::IInspectable); impl Colors { pub fn AliceBlue() -> ::windows_core::Result { Self::IColorsStatics(|this| unsafe { @@ -1192,19 +1128,17 @@ impl ::windows_core::RuntimeType for Colors { } unsafe impl ::windows_core::Interface for Colors { type Vtable = IColors_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Colors { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Colors { const NAME: &'static str = "Windows.UI.Colors"; } -::windows_core::imp::interface_hierarchy!(Colors, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for Colors {} unsafe impl ::core::marker::Sync for Colors {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UIContentRoot(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UIContentRoot, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UIContentRoot { pub fn UIContext(&self) -> ::windows_core::Result { let this = self; @@ -1219,33 +1153,28 @@ impl ::windows_core::RuntimeType for UIContentRoot { } unsafe impl ::windows_core::Interface for UIContentRoot { type Vtable = IUIContentRoot_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UIContentRoot { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UIContentRoot { const NAME: &'static str = "Windows.UI.UIContentRoot"; } -::windows_core::imp::interface_hierarchy!(UIContentRoot, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UIContentRoot {} unsafe impl ::core::marker::Sync for UIContentRoot {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct UIContext(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(UIContext, ::windows_core::IUnknown, ::windows_core::IInspectable); impl UIContext {} impl ::windows_core::RuntimeType for UIContext { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_class::(); } unsafe impl ::windows_core::Interface for UIContext { type Vtable = IUIContext_Vtbl; -} -unsafe impl ::windows_core::ComInterface for UIContext { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for UIContext { const NAME: &'static str = "Windows.UI.UIContext"; } -::windows_core::imp::interface_hierarchy!(UIContext, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for UIContext {} unsafe impl ::core::marker::Sync for UIContext {} #[repr(C)] diff --git a/crates/libs/windows/src/Windows/Web/AtomPub/mod.rs b/crates/libs/windows/src/Windows/Web/AtomPub/mod.rs index bee0eb675e..6b1cf422a7 100644 --- a/crates/libs/windows/src/Windows/Web/AtomPub/mod.rs +++ b/crates/libs/windows/src/Windows/Web/AtomPub/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAtomPubClient(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAtomPubClient { - type Vtable = IAtomPubClient_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAtomPubClient { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x35392c38_cded_4d4c_9637_05f15c1c9406); -} +::windows_core::imp::com_interface!(IAtomPubClient, IAtomPubClient_Vtbl, 0x35392c38_cded_4d4c_9637_05f15c1c9406); #[repr(C)] #[doc(hidden)] pub struct IAtomPubClient_Vtbl { @@ -54,16 +45,7 @@ pub struct IAtomPubClient_Vtbl { DeleteResourceItemAsync: usize, pub CancelAsyncOperations: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAtomPubClientFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAtomPubClientFactory { - type Vtable = IAtomPubClientFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAtomPubClientFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x49d55012_57cb_4bde_ab9f_2610b172777b); -} +::windows_core::imp::com_interface!(IAtomPubClientFactory, IAtomPubClientFactory_Vtbl, 0x49d55012_57cb_4bde_ab9f_2610b172777b); #[repr(C)] #[doc(hidden)] pub struct IAtomPubClientFactory_Vtbl { @@ -73,16 +55,7 @@ pub struct IAtomPubClientFactory_Vtbl { #[cfg(not(feature = "Security_Credentials"))] CreateAtomPubClientWithCredentials: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IResourceCollection(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IResourceCollection { - type Vtable = IResourceCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IResourceCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7f5fd609_bc88_41d4_88fa_3de6704d428e); -} +::windows_core::imp::com_interface!(IResourceCollection, IResourceCollection_Vtbl, 0x7f5fd609_bc88_41d4_88fa_3de6704d428e); #[repr(C)] #[doc(hidden)] pub struct IResourceCollection_Vtbl { @@ -101,16 +74,7 @@ pub struct IResourceCollection_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Accepts: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IServiceDocument(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IServiceDocument { - type Vtable = IServiceDocument_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IServiceDocument { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8b7ec771_2ab3_4dbe_8bcc_778f92b75e51); -} +::windows_core::imp::com_interface!(IServiceDocument, IServiceDocument_Vtbl, 0x8b7ec771_2ab3_4dbe_8bcc_778f92b75e51); #[repr(C)] #[doc(hidden)] pub struct IServiceDocument_Vtbl { @@ -120,16 +84,7 @@ pub struct IServiceDocument_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Workspaces: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWorkspace(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWorkspace { - type Vtable = IWorkspace_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWorkspace { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb41da63b_a4b8_4036_89c5_83c31266ba49); -} +::windows_core::imp::com_interface!(IWorkspace, IWorkspace_Vtbl, 0xb41da63b_a4b8_4036_89c5_83c31266ba49); #[repr(C)] #[doc(hidden)] pub struct IWorkspace_Vtbl { @@ -146,6 +101,9 @@ pub struct IWorkspace_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct AtomPubClient(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(AtomPubClient, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Web_Syndication")] +::windows_core::imp::required_hierarchy!(AtomPubClient, super::Syndication::ISyndicationClient); impl AtomPubClient { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -208,12 +166,12 @@ impl AtomPubClient { 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::TryIntoParam, + P1: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) } } #[doc = "Required features: `\"Storage_Streams\"`, `\"Web_Syndication\"`"] @@ -221,12 +179,12 @@ impl AtomPubClient { pub fn UpdateMediaResourceAsync(&self, uri: P0, mediatype: &::windows_core::HSTRING, mediastream: P1) -> ::windows_core::Result> where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam, + P1: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::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__).from_abi(result__) } } #[doc = "Required features: `\"Web_Syndication\"`"] @@ -296,7 +254,7 @@ impl AtomPubClient { #[doc = "Required features: `\"Security_Credentials\"`, `\"Web_Syndication\"`"] #[cfg(all(feature = "Security_Credentials", feature = "Web_Syndication"))] pub fn ServerCredential(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ServerCredential)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -308,13 +266,13 @@ impl AtomPubClient { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } #[doc = "Required features: `\"Security_Credentials\"`, `\"Web_Syndication\"`"] #[cfg(all(feature = "Security_Credentials", feature = "Web_Syndication"))] pub fn ProxyCredential(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ProxyCredential)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -326,13 +284,13 @@ impl AtomPubClient { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } #[doc = "Required features: `\"Web_Syndication\"`"] #[cfg(feature = "Web_Syndication")] pub fn MaxResponseBufferSize(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MaxResponseBufferSize)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -341,13 +299,13 @@ impl AtomPubClient { #[doc = "Required features: `\"Web_Syndication\"`"] #[cfg(feature = "Web_Syndication")] pub fn SetMaxResponseBufferSize(&self, value: u32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMaxResponseBufferSize)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Web_Syndication\"`"] #[cfg(feature = "Web_Syndication")] pub fn Timeout(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Timeout)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -356,13 +314,13 @@ impl AtomPubClient { #[doc = "Required features: `\"Web_Syndication\"`"] #[cfg(feature = "Web_Syndication")] pub fn SetTimeout(&self, value: u32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetTimeout)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Web_Syndication\"`"] #[cfg(feature = "Web_Syndication")] pub fn BypassCacheOnRetrieve(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).BypassCacheOnRetrieve)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -371,13 +329,13 @@ impl AtomPubClient { #[doc = "Required features: `\"Web_Syndication\"`"] #[cfg(feature = "Web_Syndication")] pub fn SetBypassCacheOnRetrieve(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetBypassCacheOnRetrieve)(::windows_core::Interface::as_raw(this), value).ok() } } #[doc = "Required features: `\"Web_Syndication\"`"] #[cfg(feature = "Web_Syndication")] pub fn SetRequestHeader(&self, name: &::windows_core::HSTRING, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetRequestHeader)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(name), ::core::mem::transmute_copy(value)).ok() } } #[doc = "Required features: `\"Web_Syndication\"`"] @@ -386,7 +344,7 @@ impl AtomPubClient { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -403,21 +361,19 @@ impl ::windows_core::RuntimeType for AtomPubClient { } unsafe impl ::windows_core::Interface for AtomPubClient { type Vtable = IAtomPubClient_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AtomPubClient { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for AtomPubClient { const NAME: &'static str = "Windows.Web.AtomPub.AtomPubClient"; } -::windows_core::imp::interface_hierarchy!(AtomPubClient, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Web_Syndication")] -impl ::windows_core::CanTryInto for AtomPubClient {} unsafe impl ::core::marker::Send for AtomPubClient {} unsafe impl ::core::marker::Sync for AtomPubClient {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ResourceCollection(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ResourceCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Web_Syndication")] +::windows_core::imp::required_hierarchy!(ResourceCollection, super::Syndication::ISyndicationNode); impl ResourceCollection { #[doc = "Required features: `\"Web_Syndication\"`"] #[cfg(feature = "Web_Syndication")] @@ -456,7 +412,7 @@ impl ResourceCollection { #[doc = "Required features: `\"Web_Syndication\"`"] #[cfg(feature = "Web_Syndication")] pub fn NodeName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -465,13 +421,13 @@ impl ResourceCollection { #[doc = "Required features: `\"Web_Syndication\"`"] #[cfg(feature = "Web_Syndication")] pub fn SetNodeName(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetNodeName)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } #[doc = "Required features: `\"Web_Syndication\"`"] #[cfg(feature = "Web_Syndication")] pub fn NodeNamespace(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeNamespace)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -480,13 +436,13 @@ impl ResourceCollection { #[doc = "Required features: `\"Web_Syndication\"`"] #[cfg(feature = "Web_Syndication")] pub fn SetNodeNamespace(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetNodeNamespace)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } #[doc = "Required features: `\"Web_Syndication\"`"] #[cfg(feature = "Web_Syndication")] pub fn NodeValue(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeValue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -495,13 +451,13 @@ impl ResourceCollection { #[doc = "Required features: `\"Web_Syndication\"`"] #[cfg(feature = "Web_Syndication")] pub fn SetNodeValue(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetNodeValue)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } #[doc = "Required features: `\"Web_Syndication\"`"] #[cfg(feature = "Web_Syndication")] pub fn Language(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Language)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -510,13 +466,13 @@ impl ResourceCollection { #[doc = "Required features: `\"Web_Syndication\"`"] #[cfg(feature = "Web_Syndication")] pub fn SetLanguage(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetLanguage)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } #[doc = "Required features: `\"Web_Syndication\"`"] #[cfg(feature = "Web_Syndication")] pub fn BaseUri(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).BaseUri)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -528,13 +484,13 @@ impl ResourceCollection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Web_Syndication\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Web_Syndication"))] pub fn AttributeExtensions(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AttributeExtensions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -543,7 +499,7 @@ impl ResourceCollection { #[doc = "Required features: `\"Foundation_Collections\"`, `\"Web_Syndication\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Web_Syndication"))] pub fn ElementExtensions(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ElementExtensions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -552,7 +508,7 @@ impl ResourceCollection { #[doc = "Required features: `\"Data_Xml_Dom\"`, `\"Web_Syndication\"`"] #[cfg(all(feature = "Data_Xml_Dom", feature = "Web_Syndication"))] pub fn GetXmlDocument(&self, format: super::Syndication::SyndicationFormat) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetXmlDocument)(::windows_core::Interface::as_raw(this), format, &mut result__).from_abi(result__) @@ -564,21 +520,19 @@ impl ::windows_core::RuntimeType for ResourceCollection { } unsafe impl ::windows_core::Interface for ResourceCollection { type Vtable = IResourceCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ResourceCollection { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ResourceCollection { const NAME: &'static str = "Windows.Web.AtomPub.ResourceCollection"; } -::windows_core::imp::interface_hierarchy!(ResourceCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Web_Syndication")] -impl ::windows_core::CanTryInto for ResourceCollection {} unsafe impl ::core::marker::Send for ResourceCollection {} unsafe impl ::core::marker::Sync for ResourceCollection {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct ServiceDocument(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(ServiceDocument, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Web_Syndication")] +::windows_core::imp::required_hierarchy!(ServiceDocument, super::Syndication::ISyndicationNode); impl ServiceDocument { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -592,7 +546,7 @@ impl ServiceDocument { #[doc = "Required features: `\"Web_Syndication\"`"] #[cfg(feature = "Web_Syndication")] pub fn NodeName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -601,13 +555,13 @@ impl ServiceDocument { #[doc = "Required features: `\"Web_Syndication\"`"] #[cfg(feature = "Web_Syndication")] pub fn SetNodeName(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetNodeName)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } #[doc = "Required features: `\"Web_Syndication\"`"] #[cfg(feature = "Web_Syndication")] pub fn NodeNamespace(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeNamespace)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -616,13 +570,13 @@ impl ServiceDocument { #[doc = "Required features: `\"Web_Syndication\"`"] #[cfg(feature = "Web_Syndication")] pub fn SetNodeNamespace(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetNodeNamespace)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } #[doc = "Required features: `\"Web_Syndication\"`"] #[cfg(feature = "Web_Syndication")] pub fn NodeValue(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeValue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -631,13 +585,13 @@ impl ServiceDocument { #[doc = "Required features: `\"Web_Syndication\"`"] #[cfg(feature = "Web_Syndication")] pub fn SetNodeValue(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetNodeValue)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } #[doc = "Required features: `\"Web_Syndication\"`"] #[cfg(feature = "Web_Syndication")] pub fn Language(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Language)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -646,13 +600,13 @@ impl ServiceDocument { #[doc = "Required features: `\"Web_Syndication\"`"] #[cfg(feature = "Web_Syndication")] pub fn SetLanguage(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetLanguage)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } #[doc = "Required features: `\"Web_Syndication\"`"] #[cfg(feature = "Web_Syndication")] pub fn BaseUri(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).BaseUri)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -664,13 +618,13 @@ impl ServiceDocument { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Web_Syndication\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Web_Syndication"))] pub fn AttributeExtensions(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AttributeExtensions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -679,7 +633,7 @@ impl ServiceDocument { #[doc = "Required features: `\"Foundation_Collections\"`, `\"Web_Syndication\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Web_Syndication"))] pub fn ElementExtensions(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ElementExtensions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -688,7 +642,7 @@ impl ServiceDocument { #[doc = "Required features: `\"Data_Xml_Dom\"`, `\"Web_Syndication\"`"] #[cfg(all(feature = "Data_Xml_Dom", feature = "Web_Syndication"))] pub fn GetXmlDocument(&self, format: super::Syndication::SyndicationFormat) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetXmlDocument)(::windows_core::Interface::as_raw(this), format, &mut result__).from_abi(result__) @@ -700,26 +654,24 @@ impl ::windows_core::RuntimeType for ServiceDocument { } unsafe impl ::windows_core::Interface for ServiceDocument { type Vtable = IServiceDocument_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ServiceDocument { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for ServiceDocument { const NAME: &'static str = "Windows.Web.AtomPub.ServiceDocument"; } -::windows_core::imp::interface_hierarchy!(ServiceDocument, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Web_Syndication")] -impl ::windows_core::CanTryInto for ServiceDocument {} unsafe impl ::core::marker::Send for ServiceDocument {} unsafe impl ::core::marker::Sync for ServiceDocument {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Workspace(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(Workspace, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Web_Syndication")] +::windows_core::imp::required_hierarchy!(Workspace, super::Syndication::ISyndicationNode); impl Workspace { #[doc = "Required features: `\"Web_Syndication\"`"] #[cfg(feature = "Web_Syndication")] pub fn NodeName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -728,13 +680,13 @@ impl Workspace { #[doc = "Required features: `\"Web_Syndication\"`"] #[cfg(feature = "Web_Syndication")] pub fn SetNodeName(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetNodeName)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } #[doc = "Required features: `\"Web_Syndication\"`"] #[cfg(feature = "Web_Syndication")] pub fn NodeNamespace(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeNamespace)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -743,13 +695,13 @@ impl Workspace { #[doc = "Required features: `\"Web_Syndication\"`"] #[cfg(feature = "Web_Syndication")] pub fn SetNodeNamespace(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetNodeNamespace)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } #[doc = "Required features: `\"Web_Syndication\"`"] #[cfg(feature = "Web_Syndication")] pub fn NodeValue(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeValue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -758,13 +710,13 @@ impl Workspace { #[doc = "Required features: `\"Web_Syndication\"`"] #[cfg(feature = "Web_Syndication")] pub fn SetNodeValue(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetNodeValue)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } #[doc = "Required features: `\"Web_Syndication\"`"] #[cfg(feature = "Web_Syndication")] pub fn Language(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Language)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -773,13 +725,13 @@ impl Workspace { #[doc = "Required features: `\"Web_Syndication\"`"] #[cfg(feature = "Web_Syndication")] pub fn SetLanguage(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetLanguage)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } #[doc = "Required features: `\"Web_Syndication\"`"] #[cfg(feature = "Web_Syndication")] pub fn BaseUri(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).BaseUri)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -791,13 +743,13 @@ impl Workspace { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Web_Syndication\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Web_Syndication"))] pub fn AttributeExtensions(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AttributeExtensions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -806,7 +758,7 @@ impl Workspace { #[doc = "Required features: `\"Foundation_Collections\"`, `\"Web_Syndication\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Web_Syndication"))] pub fn ElementExtensions(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ElementExtensions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -815,7 +767,7 @@ impl Workspace { #[doc = "Required features: `\"Data_Xml_Dom\"`, `\"Web_Syndication\"`"] #[cfg(all(feature = "Data_Xml_Dom", feature = "Web_Syndication"))] pub fn GetXmlDocument(&self, format: super::Syndication::SyndicationFormat) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetXmlDocument)(::windows_core::Interface::as_raw(this), format, &mut result__).from_abi(result__) @@ -845,15 +797,10 @@ impl ::windows_core::RuntimeType for Workspace { } unsafe impl ::windows_core::Interface for Workspace { type Vtable = IWorkspace_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Workspace { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Workspace { const NAME: &'static str = "Windows.Web.AtomPub.Workspace"; } -::windows_core::imp::interface_hierarchy!(Workspace, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Web_Syndication")] -impl ::windows_core::CanTryInto for Workspace {} unsafe impl ::core::marker::Send for Workspace {} unsafe impl ::core::marker::Sync for Workspace {} 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 9bdf8ec3ad..f88bd244c2 100644 --- a/crates/libs/windows/src/Windows/Web/Http/Diagnostics/mod.rs +++ b/crates/libs/windows/src/Windows/Web/Http/Diagnostics/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpDiagnosticProvider(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpDiagnosticProvider { - type Vtable = IHttpDiagnosticProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpDiagnosticProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbd811501_a056_4d39_b174_833b7b03b02c); -} +::windows_core::imp::com_interface!(IHttpDiagnosticProvider, IHttpDiagnosticProvider_Vtbl, 0xbd811501_a056_4d39_b174_833b7b03b02c); #[repr(C)] #[doc(hidden)] pub struct IHttpDiagnosticProvider_Vtbl { @@ -21,16 +12,7 @@ pub struct IHttpDiagnosticProvider_Vtbl { pub RequestResponseCompleted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveRequestResponseCompleted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpDiagnosticProviderRequestResponseCompletedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpDiagnosticProviderRequestResponseCompletedEventArgs { - type Vtable = IHttpDiagnosticProviderRequestResponseCompletedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpDiagnosticProviderRequestResponseCompletedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x735f98ee_94f6_4532_b26e_61e1b1e4efd4); -} +::windows_core::imp::com_interface!(IHttpDiagnosticProviderRequestResponseCompletedEventArgs, IHttpDiagnosticProviderRequestResponseCompletedEventArgs_Vtbl, 0x735f98ee_94f6_4532_b26e_61e1b1e4efd4); #[repr(C)] #[doc(hidden)] pub struct IHttpDiagnosticProviderRequestResponseCompletedEventArgs_Vtbl { @@ -46,16 +28,7 @@ pub struct IHttpDiagnosticProviderRequestResponseCompletedEventArgs_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] SourceLocations: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpDiagnosticProviderRequestResponseTimestamps(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpDiagnosticProviderRequestResponseTimestamps { - type Vtable = IHttpDiagnosticProviderRequestResponseTimestamps_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpDiagnosticProviderRequestResponseTimestamps { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe0afde10_55cf_4c01_91d4_a20557d849f0); -} +::windows_core::imp::com_interface!(IHttpDiagnosticProviderRequestResponseTimestamps, IHttpDiagnosticProviderRequestResponseTimestamps_Vtbl, 0xe0afde10_55cf_4c01_91d4_a20557d849f0); #[repr(C)] #[doc(hidden)] pub struct IHttpDiagnosticProviderRequestResponseTimestamps_Vtbl { @@ -70,16 +43,7 @@ pub struct IHttpDiagnosticProviderRequestResponseTimestamps_Vtbl { pub ResponseReceivedTimestamp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ResponseCompletedTimestamp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpDiagnosticProviderRequestSentEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpDiagnosticProviderRequestSentEventArgs { - type Vtable = IHttpDiagnosticProviderRequestSentEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpDiagnosticProviderRequestSentEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3f5196d0_4c1f_4ebe_a57a_06930771c50d); -} +::windows_core::imp::com_interface!(IHttpDiagnosticProviderRequestSentEventArgs, IHttpDiagnosticProviderRequestSentEventArgs_Vtbl, 0x3f5196d0_4c1f_4ebe_a57a_06930771c50d); #[repr(C)] #[doc(hidden)] pub struct IHttpDiagnosticProviderRequestSentEventArgs_Vtbl { @@ -95,16 +59,7 @@ pub struct IHttpDiagnosticProviderRequestSentEventArgs_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] SourceLocations: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpDiagnosticProviderResponseReceivedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpDiagnosticProviderResponseReceivedEventArgs { - type Vtable = IHttpDiagnosticProviderResponseReceivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpDiagnosticProviderResponseReceivedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa0a2566c_ab5f_4d66_bb2d_084cf41635d0); -} +::windows_core::imp::com_interface!(IHttpDiagnosticProviderResponseReceivedEventArgs, IHttpDiagnosticProviderResponseReceivedEventArgs_Vtbl, 0xa0a2566c_ab5f_4d66_bb2d_084cf41635d0); #[repr(C)] #[doc(hidden)] pub struct IHttpDiagnosticProviderResponseReceivedEventArgs_Vtbl { @@ -113,16 +68,7 @@ pub struct IHttpDiagnosticProviderResponseReceivedEventArgs_Vtbl { pub ActivityId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, pub Message: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpDiagnosticProviderStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpDiagnosticProviderStatics { - type Vtable = IHttpDiagnosticProviderStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpDiagnosticProviderStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5b824ec1_6a6c_47cc_afec_1e86bc26053b); -} +::windows_core::imp::com_interface!(IHttpDiagnosticProviderStatics, IHttpDiagnosticProviderStatics_Vtbl, 0x5b824ec1_6a6c_47cc_afec_1e86bc26053b); #[repr(C)] #[doc(hidden)] pub struct IHttpDiagnosticProviderStatics_Vtbl { @@ -132,16 +78,7 @@ pub struct IHttpDiagnosticProviderStatics_Vtbl { #[cfg(not(feature = "System_Diagnostics"))] CreateFromProcessDiagnosticInfo: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpDiagnosticSourceLocation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpDiagnosticSourceLocation { - type Vtable = IHttpDiagnosticSourceLocation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpDiagnosticSourceLocation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x54a9d260_8860_423f_b6fa_d77716f647a7); -} +::windows_core::imp::com_interface!(IHttpDiagnosticSourceLocation, IHttpDiagnosticSourceLocation_Vtbl, 0x54a9d260_8860_423f_b6fa_d77716f647a7); #[repr(C)] #[doc(hidden)] pub struct IHttpDiagnosticSourceLocation_Vtbl { @@ -153,6 +90,7 @@ pub struct IHttpDiagnosticSourceLocation_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HttpDiagnosticProvider(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HttpDiagnosticProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); impl HttpDiagnosticProvider { pub fn Start(&self) -> ::windows_core::Result<()> { let this = self; @@ -226,19 +164,17 @@ impl ::windows_core::RuntimeType for HttpDiagnosticProvider { } unsafe impl ::windows_core::Interface for HttpDiagnosticProvider { type Vtable = IHttpDiagnosticProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HttpDiagnosticProvider { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HttpDiagnosticProvider { const NAME: &'static str = "Windows.Web.Http.Diagnostics.HttpDiagnosticProvider"; } -::windows_core::imp::interface_hierarchy!(HttpDiagnosticProvider, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for HttpDiagnosticProvider {} unsafe impl ::core::marker::Sync for HttpDiagnosticProvider {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HttpDiagnosticProviderRequestResponseCompletedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HttpDiagnosticProviderRequestResponseCompletedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl HttpDiagnosticProviderRequestResponseCompletedEventArgs { pub fn ActivityId(&self) -> ::windows_core::Result<::windows_core::GUID> { let this = self; @@ -297,19 +233,17 @@ impl ::windows_core::RuntimeType for HttpDiagnosticProviderRequestResponseComple } unsafe impl ::windows_core::Interface for HttpDiagnosticProviderRequestResponseCompletedEventArgs { type Vtable = IHttpDiagnosticProviderRequestResponseCompletedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HttpDiagnosticProviderRequestResponseCompletedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HttpDiagnosticProviderRequestResponseCompletedEventArgs { const NAME: &'static str = "Windows.Web.Http.Diagnostics.HttpDiagnosticProviderRequestResponseCompletedEventArgs"; } -::windows_core::imp::interface_hierarchy!(HttpDiagnosticProviderRequestResponseCompletedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for HttpDiagnosticProviderRequestResponseCompletedEventArgs {} unsafe impl ::core::marker::Sync for HttpDiagnosticProviderRequestResponseCompletedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HttpDiagnosticProviderRequestResponseTimestamps(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HttpDiagnosticProviderRequestResponseTimestamps, ::windows_core::IUnknown, ::windows_core::IInspectable); impl HttpDiagnosticProviderRequestResponseTimestamps { pub fn CacheCheckedTimestamp(&self) -> ::windows_core::Result> { let this = self; @@ -380,19 +314,17 @@ impl ::windows_core::RuntimeType for HttpDiagnosticProviderRequestResponseTimest } unsafe impl ::windows_core::Interface for HttpDiagnosticProviderRequestResponseTimestamps { type Vtable = IHttpDiagnosticProviderRequestResponseTimestamps_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HttpDiagnosticProviderRequestResponseTimestamps { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HttpDiagnosticProviderRequestResponseTimestamps { const NAME: &'static str = "Windows.Web.Http.Diagnostics.HttpDiagnosticProviderRequestResponseTimestamps"; } -::windows_core::imp::interface_hierarchy!(HttpDiagnosticProviderRequestResponseTimestamps, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for HttpDiagnosticProviderRequestResponseTimestamps {} unsafe impl ::core::marker::Sync for HttpDiagnosticProviderRequestResponseTimestamps {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HttpDiagnosticProviderRequestSentEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HttpDiagnosticProviderRequestSentEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl HttpDiagnosticProviderRequestSentEventArgs { pub fn Timestamp(&self) -> ::windows_core::Result { let this = self; @@ -451,19 +383,17 @@ impl ::windows_core::RuntimeType for HttpDiagnosticProviderRequestSentEventArgs } unsafe impl ::windows_core::Interface for HttpDiagnosticProviderRequestSentEventArgs { type Vtable = IHttpDiagnosticProviderRequestSentEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HttpDiagnosticProviderRequestSentEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HttpDiagnosticProviderRequestSentEventArgs { const NAME: &'static str = "Windows.Web.Http.Diagnostics.HttpDiagnosticProviderRequestSentEventArgs"; } -::windows_core::imp::interface_hierarchy!(HttpDiagnosticProviderRequestSentEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for HttpDiagnosticProviderRequestSentEventArgs {} unsafe impl ::core::marker::Sync for HttpDiagnosticProviderRequestSentEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HttpDiagnosticProviderResponseReceivedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HttpDiagnosticProviderResponseReceivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl HttpDiagnosticProviderResponseReceivedEventArgs { pub fn Timestamp(&self) -> ::windows_core::Result { let this = self; @@ -492,19 +422,17 @@ impl ::windows_core::RuntimeType for HttpDiagnosticProviderResponseReceivedEvent } unsafe impl ::windows_core::Interface for HttpDiagnosticProviderResponseReceivedEventArgs { type Vtable = IHttpDiagnosticProviderResponseReceivedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HttpDiagnosticProviderResponseReceivedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HttpDiagnosticProviderResponseReceivedEventArgs { const NAME: &'static str = "Windows.Web.Http.Diagnostics.HttpDiagnosticProviderResponseReceivedEventArgs"; } -::windows_core::imp::interface_hierarchy!(HttpDiagnosticProviderResponseReceivedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for HttpDiagnosticProviderResponseReceivedEventArgs {} unsafe impl ::core::marker::Sync for HttpDiagnosticProviderResponseReceivedEventArgs {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HttpDiagnosticSourceLocation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HttpDiagnosticSourceLocation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl HttpDiagnosticSourceLocation { pub fn SourceUri(&self) -> ::windows_core::Result { let this = self; @@ -533,14 +461,11 @@ impl ::windows_core::RuntimeType for HttpDiagnosticSourceLocation { } unsafe impl ::windows_core::Interface for HttpDiagnosticSourceLocation { type Vtable = IHttpDiagnosticSourceLocation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HttpDiagnosticSourceLocation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HttpDiagnosticSourceLocation { const NAME: &'static str = "Windows.Web.Http.Diagnostics.HttpDiagnosticSourceLocation"; } -::windows_core::imp::interface_hierarchy!(HttpDiagnosticSourceLocation, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for HttpDiagnosticSourceLocation {} unsafe impl ::core::marker::Sync for HttpDiagnosticSourceLocation {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Web/Http/Filters/impl.rs b/crates/libs/windows/src/Windows/Web/Http/Filters/impl.rs index 6d5cc0d775..914ed1d1fa 100644 --- a/crates/libs/windows/src/Windows/Web/Http/Filters/impl.rs +++ b/crates/libs/windows/src/Windows/Web/Http/Filters/impl.rs @@ -21,6 +21,6 @@ impl IHttpFilter_Vtbl { Self { base__: ::windows_core::IInspectable_Vtbl::new::(), SendRequestAsync: SendRequestAsync:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 9843ba6731..ddef31c870 100644 --- a/crates/libs/windows/src/Windows/Web/Http/Filters/mod.rs +++ b/crates/libs/windows/src/Windows/Web/Http/Filters/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpBaseProtocolFilter(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpBaseProtocolFilter { - type Vtable = IHttpBaseProtocolFilter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpBaseProtocolFilter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x71c89b09_e131_4b54_a53c_eb43ff37e9bb); -} +::windows_core::imp::com_interface!(IHttpBaseProtocolFilter, IHttpBaseProtocolFilter_Vtbl, 0x71c89b09_e131_4b54_a53c_eb43ff37e9bb); #[repr(C)] #[doc(hidden)] pub struct IHttpBaseProtocolFilter_Vtbl { @@ -53,16 +44,7 @@ pub struct IHttpBaseProtocolFilter_Vtbl { pub UseProxy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetUseProxy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpBaseProtocolFilter2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpBaseProtocolFilter2 { - type Vtable = IHttpBaseProtocolFilter2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpBaseProtocolFilter2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2ec30013_9427_4900_a017_fa7da3b5c9ae); -} +::windows_core::imp::com_interface!(IHttpBaseProtocolFilter2, IHttpBaseProtocolFilter2_Vtbl, 0x2ec30013_9427_4900_a017_fa7da3b5c9ae); #[repr(C)] #[doc(hidden)] pub struct IHttpBaseProtocolFilter2_Vtbl { @@ -70,16 +52,7 @@ pub struct IHttpBaseProtocolFilter2_Vtbl { pub MaxVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::HttpVersion) -> ::windows_core::HRESULT, pub SetMaxVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::HttpVersion) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpBaseProtocolFilter3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpBaseProtocolFilter3 { - type Vtable = IHttpBaseProtocolFilter3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpBaseProtocolFilter3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd43f4d4c_bd42_43ae_8717_ad2c8f4b2937); -} +::windows_core::imp::com_interface!(IHttpBaseProtocolFilter3, IHttpBaseProtocolFilter3_Vtbl, 0xd43f4d4c_bd42_43ae_8717_ad2c8f4b2937); #[repr(C)] #[doc(hidden)] pub struct IHttpBaseProtocolFilter3_Vtbl { @@ -87,16 +60,7 @@ pub struct IHttpBaseProtocolFilter3_Vtbl { pub CookieUsageBehavior: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut HttpCookieUsageBehavior) -> ::windows_core::HRESULT, pub SetCookieUsageBehavior: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: HttpCookieUsageBehavior) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpBaseProtocolFilter4(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpBaseProtocolFilter4 { - type Vtable = IHttpBaseProtocolFilter4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpBaseProtocolFilter4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9fe36ccf_2983_4893_941f_eb518ca8cef9); -} +::windows_core::imp::com_interface!(IHttpBaseProtocolFilter4, IHttpBaseProtocolFilter4_Vtbl, 0x9fe36ccf_2983_4893_941f_eb518ca8cef9); #[repr(C)] #[doc(hidden)] pub struct IHttpBaseProtocolFilter4_Vtbl { @@ -105,16 +69,7 @@ pub struct IHttpBaseProtocolFilter4_Vtbl { pub RemoveServerCustomValidationRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub ClearAuthenticationCache: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpBaseProtocolFilter5(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpBaseProtocolFilter5 { - type Vtable = IHttpBaseProtocolFilter5_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpBaseProtocolFilter5 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x416e4993_31e3_4816_bf09_e018ee8dc1f5); -} +::windows_core::imp::com_interface!(IHttpBaseProtocolFilter5, IHttpBaseProtocolFilter5_Vtbl, 0x416e4993_31e3_4816_bf09_e018ee8dc1f5); #[repr(C)] #[doc(hidden)] pub struct IHttpBaseProtocolFilter5_Vtbl { @@ -124,16 +79,7 @@ pub struct IHttpBaseProtocolFilter5_Vtbl { #[cfg(not(feature = "System"))] User: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpBaseProtocolFilterStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpBaseProtocolFilterStatics { - type Vtable = IHttpBaseProtocolFilterStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpBaseProtocolFilterStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6d4dee0c_e908_494e_b5a3_1263c9b8242a); -} +::windows_core::imp::com_interface!(IHttpBaseProtocolFilterStatics, IHttpBaseProtocolFilterStatics_Vtbl, 0x6d4dee0c_e908_494e_b5a3_1263c9b8242a); #[repr(C)] #[doc(hidden)] pub struct IHttpBaseProtocolFilterStatics_Vtbl { @@ -143,16 +89,7 @@ pub struct IHttpBaseProtocolFilterStatics_Vtbl { #[cfg(not(feature = "System"))] CreateForUser: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpCacheControl(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpCacheControl { - type Vtable = IHttpCacheControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpCacheControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc77e1cb4_3cea_4eb5_ac85_04e186e63ab7); -} +::windows_core::imp::com_interface!(IHttpCacheControl, IHttpCacheControl_Vtbl, 0xc77e1cb4_3cea_4eb5_ac85_04e186e63ab7); #[repr(C)] #[doc(hidden)] pub struct IHttpCacheControl_Vtbl { @@ -162,9 +99,9 @@ pub struct IHttpCacheControl_Vtbl { pub WriteBehavior: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut HttpCacheWriteBehavior) -> ::windows_core::HRESULT, pub SetWriteBehavior: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: HttpCacheWriteBehavior) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpFilter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IHttpFilter, IHttpFilter_Vtbl, 0xa4cb6dd5_0902_439e_bfd7_e12552b165ce); +::windows_core::imp::interface_hierarchy!(IHttpFilter, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IHttpFilter, super::super::super::Foundation::IClosable); impl IHttpFilter { pub fn SendRequestAsync(&self, request: P0) -> ::windows_core::Result> where @@ -177,37 +114,20 @@ impl IHttpFilter { } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } } -::windows_core::imp::interface_hierarchy!(IHttpFilter, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IHttpFilter {} impl ::windows_core::RuntimeType for IHttpFilter { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IHttpFilter { - type Vtable = IHttpFilter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpFilter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa4cb6dd5_0902_439e_bfd7_e12552b165ce); -} #[repr(C)] #[doc(hidden)] pub struct IHttpFilter_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub SendRequestAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, request: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpServerCustomValidationRequestedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpServerCustomValidationRequestedEventArgs { - type Vtable = IHttpServerCustomValidationRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpServerCustomValidationRequestedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3165fe32_e7dd_48b7_a361_939c750e63cc); -} +::windows_core::imp::com_interface!(IHttpServerCustomValidationRequestedEventArgs, IHttpServerCustomValidationRequestedEventArgs_Vtbl, 0x3165fe32_e7dd_48b7_a361_939c750e63cc); #[repr(C)] #[doc(hidden)] pub struct IHttpServerCustomValidationRequestedEventArgs_Vtbl { @@ -235,6 +155,8 @@ pub struct IHttpServerCustomValidationRequestedEventArgs_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HttpBaseProtocolFilter(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HttpBaseProtocolFilter, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(HttpBaseProtocolFilter, super::super::super::Foundation::IClosable, IHttpFilter); impl HttpBaseProtocolFilter { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -244,7 +166,7 @@ impl HttpBaseProtocolFilter { SHARED.call(callback) } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn AllowAutoRedirect(&self) -> ::windows_core::Result { @@ -380,49 +302,49 @@ impl HttpBaseProtocolFilter { unsafe { (::windows_core::Interface::vtable(this).SetUseProxy)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn MaxVersion(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).MaxVersion)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetMaxVersion(&self, value: super::HttpVersion) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetMaxVersion)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn CookieUsageBehavior(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CookieUsageBehavior)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetCookieUsageBehavior(&self, value: HttpCookieUsageBehavior) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetCookieUsageBehavior)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn ServerCustomValidationRequested(&self, handler: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveServerCustomValidationRequested(&self, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveServerCustomValidationRequested)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn ClearAuthenticationCache(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ClearAuthenticationCache)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"System\"`"] #[cfg(feature = "System")] pub fn User(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).User)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -443,7 +365,7 @@ impl HttpBaseProtocolFilter { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -460,21 +382,17 @@ impl ::windows_core::RuntimeType for HttpBaseProtocolFilter { } unsafe impl ::windows_core::Interface for HttpBaseProtocolFilter { type Vtable = IHttpBaseProtocolFilter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HttpBaseProtocolFilter { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HttpBaseProtocolFilter { const NAME: &'static str = "Windows.Web.Http.Filters.HttpBaseProtocolFilter"; } -::windows_core::imp::interface_hierarchy!(HttpBaseProtocolFilter, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for HttpBaseProtocolFilter {} -impl ::windows_core::CanTryInto for HttpBaseProtocolFilter {} unsafe impl ::core::marker::Send for HttpBaseProtocolFilter {} unsafe impl ::core::marker::Sync for HttpBaseProtocolFilter {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HttpCacheControl(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HttpCacheControl, ::windows_core::IUnknown, ::windows_core::IInspectable); impl HttpCacheControl { pub fn ReadBehavior(&self) -> ::windows_core::Result { let this = self; @@ -504,19 +422,17 @@ impl ::windows_core::RuntimeType for HttpCacheControl { } unsafe impl ::windows_core::Interface for HttpCacheControl { type Vtable = IHttpCacheControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HttpCacheControl { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HttpCacheControl { const NAME: &'static str = "Windows.Web.Http.Filters.HttpCacheControl"; } -::windows_core::imp::interface_hierarchy!(HttpCacheControl, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for HttpCacheControl {} unsafe impl ::core::marker::Sync for HttpCacheControl {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HttpServerCustomValidationRequestedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HttpServerCustomValidationRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl HttpServerCustomValidationRequestedEventArgs { pub fn RequestMessage(&self) -> ::windows_core::Result { let this = self; @@ -578,14 +494,11 @@ impl ::windows_core::RuntimeType for HttpServerCustomValidationRequestedEventArg } unsafe impl ::windows_core::Interface for HttpServerCustomValidationRequestedEventArgs { type Vtable = IHttpServerCustomValidationRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HttpServerCustomValidationRequestedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HttpServerCustomValidationRequestedEventArgs { const NAME: &'static str = "Windows.Web.Http.Filters.HttpServerCustomValidationRequestedEventArgs"; } -::windows_core::imp::interface_hierarchy!(HttpServerCustomValidationRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for HttpServerCustomValidationRequestedEventArgs {} unsafe impl ::core::marker::Sync for HttpServerCustomValidationRequestedEventArgs {} #[repr(transparent)] 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 1eb446c12a..4a24c2b61c 100644 --- a/crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs +++ b/crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpCacheDirectiveHeaderValueCollection(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpCacheDirectiveHeaderValueCollection { - type Vtable = IHttpCacheDirectiveHeaderValueCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpCacheDirectiveHeaderValueCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9a586b89_d5d0_4fbe_bd9d_b5b3636811b4); -} +::windows_core::imp::com_interface!(IHttpCacheDirectiveHeaderValueCollection, IHttpCacheDirectiveHeaderValueCollection_Vtbl, 0x9a586b89_d5d0_4fbe_bd9d_b5b3636811b4); #[repr(C)] #[doc(hidden)] pub struct IHttpCacheDirectiveHeaderValueCollection_Vtbl { @@ -23,16 +14,7 @@ pub struct IHttpCacheDirectiveHeaderValueCollection_Vtbl { pub ParseAdd: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub TryParseAdd: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpChallengeHeaderValue(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpChallengeHeaderValue { - type Vtable = IHttpChallengeHeaderValue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpChallengeHeaderValue { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x393361af_0f7d_4820_9fdd_a2b956eeaeab); -} +::windows_core::imp::com_interface!(IHttpChallengeHeaderValue, IHttpChallengeHeaderValue_Vtbl, 0x393361af_0f7d_4820_9fdd_a2b956eeaeab); #[repr(C)] #[doc(hidden)] pub struct IHttpChallengeHeaderValue_Vtbl { @@ -44,16 +26,7 @@ pub struct IHttpChallengeHeaderValue_Vtbl { pub Scheme: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Token: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpChallengeHeaderValueCollection(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpChallengeHeaderValueCollection { - type Vtable = IHttpChallengeHeaderValueCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpChallengeHeaderValueCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xca9e5f81_aee0_4353_a10b_e625babd64c2); -} +::windows_core::imp::com_interface!(IHttpChallengeHeaderValueCollection, IHttpChallengeHeaderValueCollection_Vtbl, 0xca9e5f81_aee0_4353_a10b_e625babd64c2); #[repr(C)] #[doc(hidden)] pub struct IHttpChallengeHeaderValueCollection_Vtbl { @@ -61,16 +34,7 @@ pub struct IHttpChallengeHeaderValueCollection_Vtbl { pub ParseAdd: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub TryParseAdd: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpChallengeHeaderValueFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpChallengeHeaderValueFactory { - type Vtable = IHttpChallengeHeaderValueFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpChallengeHeaderValueFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc452c451_d99c_40aa_9399_90eeb98fc613); -} +::windows_core::imp::com_interface!(IHttpChallengeHeaderValueFactory, IHttpChallengeHeaderValueFactory_Vtbl, 0xc452c451_d99c_40aa_9399_90eeb98fc613); #[repr(C)] #[doc(hidden)] pub struct IHttpChallengeHeaderValueFactory_Vtbl { @@ -78,16 +42,7 @@ pub struct IHttpChallengeHeaderValueFactory_Vtbl { pub CreateFromScheme: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, scheme: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateFromSchemeWithToken: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, scheme: ::std::mem::MaybeUninit<::windows_core::HSTRING>, token: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpChallengeHeaderValueStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpChallengeHeaderValueStatics { - type Vtable = IHttpChallengeHeaderValueStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpChallengeHeaderValueStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf3d38a72_fc01_4d01_a008_fcb7c459d635); -} +::windows_core::imp::com_interface!(IHttpChallengeHeaderValueStatics, IHttpChallengeHeaderValueStatics_Vtbl, 0xf3d38a72_fc01_4d01_a008_fcb7c459d635); #[repr(C)] #[doc(hidden)] pub struct IHttpChallengeHeaderValueStatics_Vtbl { @@ -95,32 +50,14 @@ pub struct IHttpChallengeHeaderValueStatics_Vtbl { pub Parse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub TryParse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: ::std::mem::MaybeUninit<::windows_core::HSTRING>, challengeheadervalue: *mut *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpConnectionOptionHeaderValue(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpConnectionOptionHeaderValue { - type Vtable = IHttpConnectionOptionHeaderValue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpConnectionOptionHeaderValue { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcb4af27a_4e90_45eb_8dcd_fd1408f4c44f); -} +::windows_core::imp::com_interface!(IHttpConnectionOptionHeaderValue, IHttpConnectionOptionHeaderValue_Vtbl, 0xcb4af27a_4e90_45eb_8dcd_fd1408f4c44f); #[repr(C)] #[doc(hidden)] pub struct IHttpConnectionOptionHeaderValue_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Token: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpConnectionOptionHeaderValueCollection(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpConnectionOptionHeaderValueCollection { - type Vtable = IHttpConnectionOptionHeaderValueCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpConnectionOptionHeaderValueCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe4f56c1d_5142_4e00_8e0f_019509337629); -} +::windows_core::imp::com_interface!(IHttpConnectionOptionHeaderValueCollection, IHttpConnectionOptionHeaderValueCollection_Vtbl, 0xe4f56c1d_5142_4e00_8e0f_019509337629); #[repr(C)] #[doc(hidden)] pub struct IHttpConnectionOptionHeaderValueCollection_Vtbl { @@ -128,32 +65,14 @@ pub struct IHttpConnectionOptionHeaderValueCollection_Vtbl { pub ParseAdd: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub TryParseAdd: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpConnectionOptionHeaderValueFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpConnectionOptionHeaderValueFactory { - type Vtable = IHttpConnectionOptionHeaderValueFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpConnectionOptionHeaderValueFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd93ccc1e_0b7d_4c3f_a58d_a2a1bdeabc0a); -} +::windows_core::imp::com_interface!(IHttpConnectionOptionHeaderValueFactory, IHttpConnectionOptionHeaderValueFactory_Vtbl, 0xd93ccc1e_0b7d_4c3f_a58d_a2a1bdeabc0a); #[repr(C)] #[doc(hidden)] pub struct IHttpConnectionOptionHeaderValueFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpConnectionOptionHeaderValueStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpConnectionOptionHeaderValueStatics { - type Vtable = IHttpConnectionOptionHeaderValueStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpConnectionOptionHeaderValueStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaaa75d37_a946_4b1f_85af_48b68b3c50bd); -} +::windows_core::imp::com_interface!(IHttpConnectionOptionHeaderValueStatics, IHttpConnectionOptionHeaderValueStatics_Vtbl, 0xaaa75d37_a946_4b1f_85af_48b68b3c50bd); #[repr(C)] #[doc(hidden)] pub struct IHttpConnectionOptionHeaderValueStatics_Vtbl { @@ -161,32 +80,14 @@ pub struct IHttpConnectionOptionHeaderValueStatics_Vtbl { pub Parse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub TryParse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: ::std::mem::MaybeUninit<::windows_core::HSTRING>, connectionoptionheadervalue: *mut *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpContentCodingHeaderValue(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpContentCodingHeaderValue { - type Vtable = IHttpContentCodingHeaderValue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpContentCodingHeaderValue { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbcf7f92a_9376_4d85_bccc_9f4f9acab434); -} +::windows_core::imp::com_interface!(IHttpContentCodingHeaderValue, IHttpContentCodingHeaderValue_Vtbl, 0xbcf7f92a_9376_4d85_bccc_9f4f9acab434); #[repr(C)] #[doc(hidden)] pub struct IHttpContentCodingHeaderValue_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ContentCoding: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpContentCodingHeaderValueCollection(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpContentCodingHeaderValueCollection { - type Vtable = IHttpContentCodingHeaderValueCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpContentCodingHeaderValueCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7d221721_a6db_436e_8e83_91596192819c); -} +::windows_core::imp::com_interface!(IHttpContentCodingHeaderValueCollection, IHttpContentCodingHeaderValueCollection_Vtbl, 0x7d221721_a6db_436e_8e83_91596192819c); #[repr(C)] #[doc(hidden)] pub struct IHttpContentCodingHeaderValueCollection_Vtbl { @@ -194,32 +95,14 @@ pub struct IHttpContentCodingHeaderValueCollection_Vtbl { pub ParseAdd: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub TryParseAdd: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpContentCodingHeaderValueFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpContentCodingHeaderValueFactory { - type Vtable = IHttpContentCodingHeaderValueFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpContentCodingHeaderValueFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc53d2bd7_332b_4350_8510_2e67a2289a5a); -} +::windows_core::imp::com_interface!(IHttpContentCodingHeaderValueFactory, IHttpContentCodingHeaderValueFactory_Vtbl, 0xc53d2bd7_332b_4350_8510_2e67a2289a5a); #[repr(C)] #[doc(hidden)] pub struct IHttpContentCodingHeaderValueFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, contentcoding: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpContentCodingHeaderValueStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpContentCodingHeaderValueStatics { - type Vtable = IHttpContentCodingHeaderValueStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpContentCodingHeaderValueStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x94d8602e_f9bf_42f7_aa46_ed272a41e212); -} +::windows_core::imp::com_interface!(IHttpContentCodingHeaderValueStatics, IHttpContentCodingHeaderValueStatics_Vtbl, 0x94d8602e_f9bf_42f7_aa46_ed272a41e212); #[repr(C)] #[doc(hidden)] pub struct IHttpContentCodingHeaderValueStatics_Vtbl { @@ -227,16 +110,7 @@ pub struct IHttpContentCodingHeaderValueStatics_Vtbl { pub Parse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub TryParse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: ::std::mem::MaybeUninit<::windows_core::HSTRING>, contentcodingheadervalue: *mut *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpContentCodingWithQualityHeaderValue(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpContentCodingWithQualityHeaderValue { - type Vtable = IHttpContentCodingWithQualityHeaderValue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpContentCodingWithQualityHeaderValue { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x94531cd5_8b13_4d73_8651_f76b38f88495); -} +::windows_core::imp::com_interface!(IHttpContentCodingWithQualityHeaderValue, IHttpContentCodingWithQualityHeaderValue_Vtbl, 0x94531cd5_8b13_4d73_8651_f76b38f88495); #[repr(C)] #[doc(hidden)] pub struct IHttpContentCodingWithQualityHeaderValue_Vtbl { @@ -244,16 +118,7 @@ pub struct IHttpContentCodingWithQualityHeaderValue_Vtbl { pub ContentCoding: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Quality: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpContentCodingWithQualityHeaderValueCollection(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpContentCodingWithQualityHeaderValueCollection { - type Vtable = IHttpContentCodingWithQualityHeaderValueCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpContentCodingWithQualityHeaderValueCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7c0d753e_e899_4378_b5c8_412d820711cc); -} +::windows_core::imp::com_interface!(IHttpContentCodingWithQualityHeaderValueCollection, IHttpContentCodingWithQualityHeaderValueCollection_Vtbl, 0x7c0d753e_e899_4378_b5c8_412d820711cc); #[repr(C)] #[doc(hidden)] pub struct IHttpContentCodingWithQualityHeaderValueCollection_Vtbl { @@ -261,16 +126,7 @@ pub struct IHttpContentCodingWithQualityHeaderValueCollection_Vtbl { pub ParseAdd: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub TryParseAdd: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpContentCodingWithQualityHeaderValueFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpContentCodingWithQualityHeaderValueFactory { - type Vtable = IHttpContentCodingWithQualityHeaderValueFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpContentCodingWithQualityHeaderValueFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc45eee1a_c553_46fc_ade2_d75c1d53df7b); -} +::windows_core::imp::com_interface!(IHttpContentCodingWithQualityHeaderValueFactory, IHttpContentCodingWithQualityHeaderValueFactory_Vtbl, 0xc45eee1a_c553_46fc_ade2_d75c1d53df7b); #[repr(C)] #[doc(hidden)] pub struct IHttpContentCodingWithQualityHeaderValueFactory_Vtbl { @@ -278,16 +134,7 @@ pub struct IHttpContentCodingWithQualityHeaderValueFactory_Vtbl { pub CreateFromValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, contentcoding: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateFromValueWithQuality: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, contentcoding: ::std::mem::MaybeUninit<::windows_core::HSTRING>, quality: f64, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpContentCodingWithQualityHeaderValueStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpContentCodingWithQualityHeaderValueStatics { - type Vtable = IHttpContentCodingWithQualityHeaderValueStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpContentCodingWithQualityHeaderValueStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe8c9357c_8f89_4801_8e75_4c9abfc3de71); -} +::windows_core::imp::com_interface!(IHttpContentCodingWithQualityHeaderValueStatics, IHttpContentCodingWithQualityHeaderValueStatics_Vtbl, 0xe8c9357c_8f89_4801_8e75_4c9abfc3de71); #[repr(C)] #[doc(hidden)] pub struct IHttpContentCodingWithQualityHeaderValueStatics_Vtbl { @@ -295,16 +142,7 @@ pub struct IHttpContentCodingWithQualityHeaderValueStatics_Vtbl { pub Parse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub TryParse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: ::std::mem::MaybeUninit<::windows_core::HSTRING>, contentcodingwithqualityheadervalue: *mut *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpContentDispositionHeaderValue(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpContentDispositionHeaderValue { - type Vtable = IHttpContentDispositionHeaderValue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpContentDispositionHeaderValue { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf2a2eedc_2629_4b49_9908_96a168e9365e); -} +::windows_core::imp::com_interface!(IHttpContentDispositionHeaderValue, IHttpContentDispositionHeaderValue_Vtbl, 0xf2a2eedc_2629_4b49_9908_96a168e9365e); #[repr(C)] #[doc(hidden)] pub struct IHttpContentDispositionHeaderValue_Vtbl { @@ -324,32 +162,14 @@ pub struct IHttpContentDispositionHeaderValue_Vtbl { pub Size: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpContentDispositionHeaderValueFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpContentDispositionHeaderValueFactory { - type Vtable = IHttpContentDispositionHeaderValueFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpContentDispositionHeaderValueFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9915bbc4_456c_4e81_8295_b2ab3cbcf545); -} +::windows_core::imp::com_interface!(IHttpContentDispositionHeaderValueFactory, IHttpContentDispositionHeaderValueFactory_Vtbl, 0x9915bbc4_456c_4e81_8295_b2ab3cbcf545); #[repr(C)] #[doc(hidden)] pub struct IHttpContentDispositionHeaderValueFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dispositiontype: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpContentDispositionHeaderValueStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpContentDispositionHeaderValueStatics { - type Vtable = IHttpContentDispositionHeaderValueStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpContentDispositionHeaderValueStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x29c56067_5a37_46e4_b074_c5177d69ca66); -} +::windows_core::imp::com_interface!(IHttpContentDispositionHeaderValueStatics, IHttpContentDispositionHeaderValueStatics_Vtbl, 0x29c56067_5a37_46e4_b074_c5177d69ca66); #[repr(C)] #[doc(hidden)] pub struct IHttpContentDispositionHeaderValueStatics_Vtbl { @@ -357,16 +177,7 @@ pub struct IHttpContentDispositionHeaderValueStatics_Vtbl { pub Parse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub TryParse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: ::std::mem::MaybeUninit<::windows_core::HSTRING>, contentdispositionheadervalue: *mut *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpContentHeaderCollection(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpContentHeaderCollection { - type Vtable = IHttpContentHeaderCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpContentHeaderCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x40612a44_47ae_4b7e_9124_69628b64aa18); -} +::windows_core::imp::com_interface!(IHttpContentHeaderCollection, IHttpContentHeaderCollection_Vtbl, 0x40612a44_47ae_4b7e_9124_69628b64aa18); #[repr(C)] #[doc(hidden)] pub struct IHttpContentHeaderCollection_Vtbl { @@ -398,16 +209,7 @@ pub struct IHttpContentHeaderCollection_Vtbl { pub Append: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows_core::HSTRING>, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub TryAppendWithoutValidation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows_core::HSTRING>, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpContentRangeHeaderValue(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpContentRangeHeaderValue { - type Vtable = IHttpContentRangeHeaderValue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpContentRangeHeaderValue { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x04d967d3_a4f6_495c_9530_8579fcba8aa9); -} +::windows_core::imp::com_interface!(IHttpContentRangeHeaderValue, IHttpContentRangeHeaderValue_Vtbl, 0x04d967d3_a4f6_495c_9530_8579fcba8aa9); #[repr(C)] #[doc(hidden)] pub struct IHttpContentRangeHeaderValue_Vtbl { @@ -418,16 +220,7 @@ pub struct IHttpContentRangeHeaderValue_Vtbl { pub Unit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetUnit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpContentRangeHeaderValueFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpContentRangeHeaderValueFactory { - type Vtable = IHttpContentRangeHeaderValueFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpContentRangeHeaderValueFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3f5bd691_a03c_4456_9a6f_ef27ecd03cae); -} +::windows_core::imp::com_interface!(IHttpContentRangeHeaderValueFactory, IHttpContentRangeHeaderValueFactory_Vtbl, 0x3f5bd691_a03c_4456_9a6f_ef27ecd03cae); #[repr(C)] #[doc(hidden)] pub struct IHttpContentRangeHeaderValueFactory_Vtbl { @@ -436,16 +229,7 @@ pub struct IHttpContentRangeHeaderValueFactory_Vtbl { pub CreateFromRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, from: u64, to: u64, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateFromRangeWithLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, from: u64, to: u64, length: u64, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpContentRangeHeaderValueStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpContentRangeHeaderValueStatics { - type Vtable = IHttpContentRangeHeaderValueStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpContentRangeHeaderValueStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x80a346ca_174c_4fae_821c_134cd294aa38); -} +::windows_core::imp::com_interface!(IHttpContentRangeHeaderValueStatics, IHttpContentRangeHeaderValueStatics_Vtbl, 0x80a346ca_174c_4fae_821c_134cd294aa38); #[repr(C)] #[doc(hidden)] pub struct IHttpContentRangeHeaderValueStatics_Vtbl { @@ -453,16 +237,7 @@ pub struct IHttpContentRangeHeaderValueStatics_Vtbl { pub Parse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub TryParse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: ::std::mem::MaybeUninit<::windows_core::HSTRING>, contentrangeheadervalue: *mut *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpCookiePairHeaderValue(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpCookiePairHeaderValue { - type Vtable = IHttpCookiePairHeaderValue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpCookiePairHeaderValue { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcbd46217_4b29_412b_bd90_b3d814ab8e1b); -} +::windows_core::imp::com_interface!(IHttpCookiePairHeaderValue, IHttpCookiePairHeaderValue_Vtbl, 0xcbd46217_4b29_412b_bd90_b3d814ab8e1b); #[repr(C)] #[doc(hidden)] pub struct IHttpCookiePairHeaderValue_Vtbl { @@ -471,16 +246,7 @@ pub struct IHttpCookiePairHeaderValue_Vtbl { pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpCookiePairHeaderValueCollection(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpCookiePairHeaderValueCollection { - type Vtable = IHttpCookiePairHeaderValueCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpCookiePairHeaderValueCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf3f44350_581e_4ecc_9f59_e507d04f06e6); -} +::windows_core::imp::com_interface!(IHttpCookiePairHeaderValueCollection, IHttpCookiePairHeaderValueCollection_Vtbl, 0xf3f44350_581e_4ecc_9f59_e507d04f06e6); #[repr(C)] #[doc(hidden)] pub struct IHttpCookiePairHeaderValueCollection_Vtbl { @@ -488,16 +254,7 @@ pub struct IHttpCookiePairHeaderValueCollection_Vtbl { pub ParseAdd: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub TryParseAdd: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpCookiePairHeaderValueFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpCookiePairHeaderValueFactory { - type Vtable = IHttpCookiePairHeaderValueFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpCookiePairHeaderValueFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x635e326f_146f_4f56_aa21_2cb7d6d58b1e); -} +::windows_core::imp::com_interface!(IHttpCookiePairHeaderValueFactory, IHttpCookiePairHeaderValueFactory_Vtbl, 0x635e326f_146f_4f56_aa21_2cb7d6d58b1e); #[repr(C)] #[doc(hidden)] pub struct IHttpCookiePairHeaderValueFactory_Vtbl { @@ -505,16 +262,7 @@ pub struct IHttpCookiePairHeaderValueFactory_Vtbl { pub CreateFromName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateFromNameWithValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows_core::HSTRING>, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpCookiePairHeaderValueStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpCookiePairHeaderValueStatics { - type Vtable = IHttpCookiePairHeaderValueStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpCookiePairHeaderValueStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6e866d48_06af_4462_8158_99388d5dca81); -} +::windows_core::imp::com_interface!(IHttpCookiePairHeaderValueStatics, IHttpCookiePairHeaderValueStatics_Vtbl, 0x6e866d48_06af_4462_8158_99388d5dca81); #[repr(C)] #[doc(hidden)] pub struct IHttpCookiePairHeaderValueStatics_Vtbl { @@ -522,16 +270,7 @@ pub struct IHttpCookiePairHeaderValueStatics_Vtbl { pub Parse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub TryParse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: ::std::mem::MaybeUninit<::windows_core::HSTRING>, cookiepairheadervalue: *mut *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpCredentialsHeaderValue(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpCredentialsHeaderValue { - type Vtable = IHttpCredentialsHeaderValue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpCredentialsHeaderValue { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc34cc3cb_542e_4177_a6c7_b674ce193fbf); -} +::windows_core::imp::com_interface!(IHttpCredentialsHeaderValue, IHttpCredentialsHeaderValue_Vtbl, 0xc34cc3cb_542e_4177_a6c7_b674ce193fbf); #[repr(C)] #[doc(hidden)] pub struct IHttpCredentialsHeaderValue_Vtbl { @@ -543,16 +282,7 @@ pub struct IHttpCredentialsHeaderValue_Vtbl { pub Scheme: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Token: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpCredentialsHeaderValueFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpCredentialsHeaderValueFactory { - type Vtable = IHttpCredentialsHeaderValueFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpCredentialsHeaderValueFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf21d9e91_4d1c_4182_bfd1_34470a62f950); -} +::windows_core::imp::com_interface!(IHttpCredentialsHeaderValueFactory, IHttpCredentialsHeaderValueFactory_Vtbl, 0xf21d9e91_4d1c_4182_bfd1_34470a62f950); #[repr(C)] #[doc(hidden)] pub struct IHttpCredentialsHeaderValueFactory_Vtbl { @@ -560,16 +290,7 @@ pub struct IHttpCredentialsHeaderValueFactory_Vtbl { pub CreateFromScheme: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, scheme: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateFromSchemeWithToken: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, scheme: ::std::mem::MaybeUninit<::windows_core::HSTRING>, token: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpCredentialsHeaderValueStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpCredentialsHeaderValueStatics { - type Vtable = IHttpCredentialsHeaderValueStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpCredentialsHeaderValueStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa69b2be6_ce8c_4443_a35a_1b727b131036); -} +::windows_core::imp::com_interface!(IHttpCredentialsHeaderValueStatics, IHttpCredentialsHeaderValueStatics_Vtbl, 0xa69b2be6_ce8c_4443_a35a_1b727b131036); #[repr(C)] #[doc(hidden)] pub struct IHttpCredentialsHeaderValueStatics_Vtbl { @@ -577,16 +298,7 @@ pub struct IHttpCredentialsHeaderValueStatics_Vtbl { pub Parse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub TryParse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: ::std::mem::MaybeUninit<::windows_core::HSTRING>, credentialsheadervalue: *mut *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpDateOrDeltaHeaderValue(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpDateOrDeltaHeaderValue { - type Vtable = IHttpDateOrDeltaHeaderValue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpDateOrDeltaHeaderValue { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeafcaa6a_c4dc_49e2_a27d_043adf5867a3); -} +::windows_core::imp::com_interface!(IHttpDateOrDeltaHeaderValue, IHttpDateOrDeltaHeaderValue_Vtbl, 0xeafcaa6a_c4dc_49e2_a27d_043adf5867a3); #[repr(C)] #[doc(hidden)] pub struct IHttpDateOrDeltaHeaderValue_Vtbl { @@ -594,16 +306,7 @@ pub struct IHttpDateOrDeltaHeaderValue_Vtbl { pub Date: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Delta: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpDateOrDeltaHeaderValueStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpDateOrDeltaHeaderValueStatics { - type Vtable = IHttpDateOrDeltaHeaderValueStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpDateOrDeltaHeaderValueStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7c2659a8_6672_4e90_9a9a_f39766f7f576); -} +::windows_core::imp::com_interface!(IHttpDateOrDeltaHeaderValueStatics, IHttpDateOrDeltaHeaderValueStatics_Vtbl, 0x7c2659a8_6672_4e90_9a9a_f39766f7f576); #[repr(C)] #[doc(hidden)] pub struct IHttpDateOrDeltaHeaderValueStatics_Vtbl { @@ -611,16 +314,7 @@ pub struct IHttpDateOrDeltaHeaderValueStatics_Vtbl { pub Parse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub TryParse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: ::std::mem::MaybeUninit<::windows_core::HSTRING>, dateordeltaheadervalue: *mut *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpExpectationHeaderValue(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpExpectationHeaderValue { - type Vtable = IHttpExpectationHeaderValue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpExpectationHeaderValue { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4ce585cd_3a99_43af_a2e6_ec232fea9658); -} +::windows_core::imp::com_interface!(IHttpExpectationHeaderValue, IHttpExpectationHeaderValue_Vtbl, 0x4ce585cd_3a99_43af_a2e6_ec232fea9658); #[repr(C)] #[doc(hidden)] pub struct IHttpExpectationHeaderValue_Vtbl { @@ -633,16 +327,7 @@ pub struct IHttpExpectationHeaderValue_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Parameters: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpExpectationHeaderValueCollection(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpExpectationHeaderValueCollection { - type Vtable = IHttpExpectationHeaderValueCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpExpectationHeaderValueCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe78521b3_a0e2_4ac4_9e66_79706cb9fd58); -} +::windows_core::imp::com_interface!(IHttpExpectationHeaderValueCollection, IHttpExpectationHeaderValueCollection_Vtbl, 0xe78521b3_a0e2_4ac4_9e66_79706cb9fd58); #[repr(C)] #[doc(hidden)] pub struct IHttpExpectationHeaderValueCollection_Vtbl { @@ -650,16 +335,7 @@ pub struct IHttpExpectationHeaderValueCollection_Vtbl { pub ParseAdd: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub TryParseAdd: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpExpectationHeaderValueFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpExpectationHeaderValueFactory { - type Vtable = IHttpExpectationHeaderValueFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpExpectationHeaderValueFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4ea275cb_d53e_4868_8856_1e21a5030dc0); -} +::windows_core::imp::com_interface!(IHttpExpectationHeaderValueFactory, IHttpExpectationHeaderValueFactory_Vtbl, 0x4ea275cb_d53e_4868_8856_1e21a5030dc0); #[repr(C)] #[doc(hidden)] pub struct IHttpExpectationHeaderValueFactory_Vtbl { @@ -667,16 +343,7 @@ pub struct IHttpExpectationHeaderValueFactory_Vtbl { pub CreateFromName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateFromNameWithValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows_core::HSTRING>, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpExpectationHeaderValueStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpExpectationHeaderValueStatics { - type Vtable = IHttpExpectationHeaderValueStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpExpectationHeaderValueStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3019abe2_cfe5_473b_a57f_fba5b14eb257); -} +::windows_core::imp::com_interface!(IHttpExpectationHeaderValueStatics, IHttpExpectationHeaderValueStatics_Vtbl, 0x3019abe2_cfe5_473b_a57f_fba5b14eb257); #[repr(C)] #[doc(hidden)] pub struct IHttpExpectationHeaderValueStatics_Vtbl { @@ -684,16 +351,7 @@ pub struct IHttpExpectationHeaderValueStatics_Vtbl { pub Parse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub TryParse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: ::std::mem::MaybeUninit<::windows_core::HSTRING>, expectationheadervalue: *mut *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpLanguageHeaderValueCollection(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpLanguageHeaderValueCollection { - type Vtable = IHttpLanguageHeaderValueCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpLanguageHeaderValueCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9ebd7ca3_8219_44f6_9902_8c56dfd3340c); -} +::windows_core::imp::com_interface!(IHttpLanguageHeaderValueCollection, IHttpLanguageHeaderValueCollection_Vtbl, 0x9ebd7ca3_8219_44f6_9902_8c56dfd3340c); #[repr(C)] #[doc(hidden)] pub struct IHttpLanguageHeaderValueCollection_Vtbl { @@ -701,16 +359,7 @@ pub struct IHttpLanguageHeaderValueCollection_Vtbl { pub ParseAdd: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub TryParseAdd: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpLanguageRangeWithQualityHeaderValue(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpLanguageRangeWithQualityHeaderValue { - type Vtable = IHttpLanguageRangeWithQualityHeaderValue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpLanguageRangeWithQualityHeaderValue { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7256e102_0080_4db4_a083_7de7b2e5ba4c); -} +::windows_core::imp::com_interface!(IHttpLanguageRangeWithQualityHeaderValue, IHttpLanguageRangeWithQualityHeaderValue_Vtbl, 0x7256e102_0080_4db4_a083_7de7b2e5ba4c); #[repr(C)] #[doc(hidden)] pub struct IHttpLanguageRangeWithQualityHeaderValue_Vtbl { @@ -718,16 +367,7 @@ pub struct IHttpLanguageRangeWithQualityHeaderValue_Vtbl { pub LanguageRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Quality: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpLanguageRangeWithQualityHeaderValueCollection(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpLanguageRangeWithQualityHeaderValueCollection { - type Vtable = IHttpLanguageRangeWithQualityHeaderValueCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpLanguageRangeWithQualityHeaderValueCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x885d5abd_4b4f_480a_89ce_8aedcee6e3a0); -} +::windows_core::imp::com_interface!(IHttpLanguageRangeWithQualityHeaderValueCollection, IHttpLanguageRangeWithQualityHeaderValueCollection_Vtbl, 0x885d5abd_4b4f_480a_89ce_8aedcee6e3a0); #[repr(C)] #[doc(hidden)] pub struct IHttpLanguageRangeWithQualityHeaderValueCollection_Vtbl { @@ -735,16 +375,7 @@ pub struct IHttpLanguageRangeWithQualityHeaderValueCollection_Vtbl { pub ParseAdd: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub TryParseAdd: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpLanguageRangeWithQualityHeaderValueFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpLanguageRangeWithQualityHeaderValueFactory { - type Vtable = IHttpLanguageRangeWithQualityHeaderValueFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpLanguageRangeWithQualityHeaderValueFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7bb83970_780f_4c83_9fe4_dc3087f6bd55); -} +::windows_core::imp::com_interface!(IHttpLanguageRangeWithQualityHeaderValueFactory, IHttpLanguageRangeWithQualityHeaderValueFactory_Vtbl, 0x7bb83970_780f_4c83_9fe4_dc3087f6bd55); #[repr(C)] #[doc(hidden)] pub struct IHttpLanguageRangeWithQualityHeaderValueFactory_Vtbl { @@ -752,16 +383,7 @@ pub struct IHttpLanguageRangeWithQualityHeaderValueFactory_Vtbl { pub CreateFromLanguageRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, languagerange: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateFromLanguageRangeWithQuality: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, languagerange: ::std::mem::MaybeUninit<::windows_core::HSTRING>, quality: f64, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpLanguageRangeWithQualityHeaderValueStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpLanguageRangeWithQualityHeaderValueStatics { - type Vtable = IHttpLanguageRangeWithQualityHeaderValueStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpLanguageRangeWithQualityHeaderValueStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2541e146_f308_46f5_b695_42f54024ec68); -} +::windows_core::imp::com_interface!(IHttpLanguageRangeWithQualityHeaderValueStatics, IHttpLanguageRangeWithQualityHeaderValueStatics_Vtbl, 0x2541e146_f308_46f5_b695_42f54024ec68); #[repr(C)] #[doc(hidden)] pub struct IHttpLanguageRangeWithQualityHeaderValueStatics_Vtbl { @@ -769,16 +391,7 @@ pub struct IHttpLanguageRangeWithQualityHeaderValueStatics_Vtbl { pub Parse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub TryParse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: ::std::mem::MaybeUninit<::windows_core::HSTRING>, languagerangewithqualityheadervalue: *mut *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpMediaTypeHeaderValue(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpMediaTypeHeaderValue { - type Vtable = IHttpMediaTypeHeaderValue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpMediaTypeHeaderValue { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x16b28533_e728_4fcb_bdb0_08a431a14844); -} +::windows_core::imp::com_interface!(IHttpMediaTypeHeaderValue, IHttpMediaTypeHeaderValue_Vtbl, 0x16b28533_e728_4fcb_bdb0_08a431a14844); #[repr(C)] #[doc(hidden)] pub struct IHttpMediaTypeHeaderValue_Vtbl { @@ -792,32 +405,14 @@ pub struct IHttpMediaTypeHeaderValue_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Parameters: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpMediaTypeHeaderValueFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpMediaTypeHeaderValueFactory { - type Vtable = IHttpMediaTypeHeaderValueFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpMediaTypeHeaderValueFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbed747a8_cd17_42dd_9367_ab9c5b56dd7d); -} +::windows_core::imp::com_interface!(IHttpMediaTypeHeaderValueFactory, IHttpMediaTypeHeaderValueFactory_Vtbl, 0xbed747a8_cd17_42dd_9367_ab9c5b56dd7d); #[repr(C)] #[doc(hidden)] pub struct IHttpMediaTypeHeaderValueFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mediatype: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpMediaTypeHeaderValueStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpMediaTypeHeaderValueStatics { - type Vtable = IHttpMediaTypeHeaderValueStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpMediaTypeHeaderValueStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe04d83df_1d41_4d8c_a2de_6fd2ed87399b); -} +::windows_core::imp::com_interface!(IHttpMediaTypeHeaderValueStatics, IHttpMediaTypeHeaderValueStatics_Vtbl, 0xe04d83df_1d41_4d8c_a2de_6fd2ed87399b); #[repr(C)] #[doc(hidden)] pub struct IHttpMediaTypeHeaderValueStatics_Vtbl { @@ -825,16 +420,7 @@ pub struct IHttpMediaTypeHeaderValueStatics_Vtbl { pub Parse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub TryParse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: ::std::mem::MaybeUninit<::windows_core::HSTRING>, mediatypeheadervalue: *mut *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpMediaTypeWithQualityHeaderValue(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpMediaTypeWithQualityHeaderValue { - type Vtable = IHttpMediaTypeWithQualityHeaderValue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpMediaTypeWithQualityHeaderValue { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x188d5e32_76be_44a0_b1cd_2074bded2dde); -} +::windows_core::imp::com_interface!(IHttpMediaTypeWithQualityHeaderValue, IHttpMediaTypeWithQualityHeaderValue_Vtbl, 0x188d5e32_76be_44a0_b1cd_2074bded2dde); #[repr(C)] #[doc(hidden)] pub struct IHttpMediaTypeWithQualityHeaderValue_Vtbl { @@ -850,16 +436,7 @@ pub struct IHttpMediaTypeWithQualityHeaderValue_Vtbl { pub Quality: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetQuality: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpMediaTypeWithQualityHeaderValueCollection(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpMediaTypeWithQualityHeaderValueCollection { - type Vtable = IHttpMediaTypeWithQualityHeaderValueCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpMediaTypeWithQualityHeaderValueCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3c0c6b73_1342_4587_a056_18d02ff67165); -} +::windows_core::imp::com_interface!(IHttpMediaTypeWithQualityHeaderValueCollection, IHttpMediaTypeWithQualityHeaderValueCollection_Vtbl, 0x3c0c6b73_1342_4587_a056_18d02ff67165); #[repr(C)] #[doc(hidden)] pub struct IHttpMediaTypeWithQualityHeaderValueCollection_Vtbl { @@ -867,16 +444,7 @@ pub struct IHttpMediaTypeWithQualityHeaderValueCollection_Vtbl { pub ParseAdd: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub TryParseAdd: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpMediaTypeWithQualityHeaderValueFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpMediaTypeWithQualityHeaderValueFactory { - type Vtable = IHttpMediaTypeWithQualityHeaderValueFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpMediaTypeWithQualityHeaderValueFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4c6d20f4_9457_44e6_a323_d122b958780b); -} +::windows_core::imp::com_interface!(IHttpMediaTypeWithQualityHeaderValueFactory, IHttpMediaTypeWithQualityHeaderValueFactory_Vtbl, 0x4c6d20f4_9457_44e6_a323_d122b958780b); #[repr(C)] #[doc(hidden)] pub struct IHttpMediaTypeWithQualityHeaderValueFactory_Vtbl { @@ -884,16 +452,7 @@ pub struct IHttpMediaTypeWithQualityHeaderValueFactory_Vtbl { pub CreateFromMediaType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mediatype: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateFromMediaTypeWithQuality: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mediatype: ::std::mem::MaybeUninit<::windows_core::HSTRING>, quality: f64, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpMediaTypeWithQualityHeaderValueStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpMediaTypeWithQualityHeaderValueStatics { - type Vtable = IHttpMediaTypeWithQualityHeaderValueStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpMediaTypeWithQualityHeaderValueStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5b070cd9_b560_4fc8_9835_7e6c0a657b24); -} +::windows_core::imp::com_interface!(IHttpMediaTypeWithQualityHeaderValueStatics, IHttpMediaTypeWithQualityHeaderValueStatics_Vtbl, 0x5b070cd9_b560_4fc8_9835_7e6c0a657b24); #[repr(C)] #[doc(hidden)] pub struct IHttpMediaTypeWithQualityHeaderValueStatics_Vtbl { @@ -901,16 +460,7 @@ pub struct IHttpMediaTypeWithQualityHeaderValueStatics_Vtbl { pub Parse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub TryParse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: ::std::mem::MaybeUninit<::windows_core::HSTRING>, mediatypewithqualityheadervalue: *mut *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpMethodHeaderValueCollection(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpMethodHeaderValueCollection { - type Vtable = IHttpMethodHeaderValueCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpMethodHeaderValueCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x43bc3ff4_6119_4adf_938c_34bfffcf92ed); -} +::windows_core::imp::com_interface!(IHttpMethodHeaderValueCollection, IHttpMethodHeaderValueCollection_Vtbl, 0x43bc3ff4_6119_4adf_938c_34bfffcf92ed); #[repr(C)] #[doc(hidden)] pub struct IHttpMethodHeaderValueCollection_Vtbl { @@ -918,16 +468,7 @@ pub struct IHttpMethodHeaderValueCollection_Vtbl { pub ParseAdd: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub TryParseAdd: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpNameValueHeaderValue(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpNameValueHeaderValue { - type Vtable = IHttpNameValueHeaderValue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpNameValueHeaderValue { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd8ba7463_5b9a_4d1b_93f9_aa5b44ecfddf); -} +::windows_core::imp::com_interface!(IHttpNameValueHeaderValue, IHttpNameValueHeaderValue_Vtbl, 0xd8ba7463_5b9a_4d1b_93f9_aa5b44ecfddf); #[repr(C)] #[doc(hidden)] pub struct IHttpNameValueHeaderValue_Vtbl { @@ -936,16 +477,7 @@ pub struct IHttpNameValueHeaderValue_Vtbl { pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpNameValueHeaderValueFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpNameValueHeaderValueFactory { - type Vtable = IHttpNameValueHeaderValueFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpNameValueHeaderValueFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x770e2267_cbf8_4736_a925_93fbe10c7ca8); -} +::windows_core::imp::com_interface!(IHttpNameValueHeaderValueFactory, IHttpNameValueHeaderValueFactory_Vtbl, 0x770e2267_cbf8_4736_a925_93fbe10c7ca8); #[repr(C)] #[doc(hidden)] pub struct IHttpNameValueHeaderValueFactory_Vtbl { @@ -953,16 +485,7 @@ pub struct IHttpNameValueHeaderValueFactory_Vtbl { pub CreateFromName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateFromNameWithValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows_core::HSTRING>, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpNameValueHeaderValueStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpNameValueHeaderValueStatics { - type Vtable = IHttpNameValueHeaderValueStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpNameValueHeaderValueStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xffd4030f_1130_4152_8659_256909a9d115); -} +::windows_core::imp::com_interface!(IHttpNameValueHeaderValueStatics, IHttpNameValueHeaderValueStatics_Vtbl, 0xffd4030f_1130_4152_8659_256909a9d115); #[repr(C)] #[doc(hidden)] pub struct IHttpNameValueHeaderValueStatics_Vtbl { @@ -970,16 +493,7 @@ pub struct IHttpNameValueHeaderValueStatics_Vtbl { pub Parse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub TryParse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: ::std::mem::MaybeUninit<::windows_core::HSTRING>, namevalueheadervalue: *mut *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpProductHeaderValue(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpProductHeaderValue { - type Vtable = IHttpProductHeaderValue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpProductHeaderValue { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf4feee03_ebd4_4160_b9ff_807c5183b6e6); -} +::windows_core::imp::com_interface!(IHttpProductHeaderValue, IHttpProductHeaderValue_Vtbl, 0xf4feee03_ebd4_4160_b9ff_807c5183b6e6); #[repr(C)] #[doc(hidden)] pub struct IHttpProductHeaderValue_Vtbl { @@ -987,16 +501,7 @@ pub struct IHttpProductHeaderValue_Vtbl { pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub Version: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpProductHeaderValueFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpProductHeaderValueFactory { - type Vtable = IHttpProductHeaderValueFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpProductHeaderValueFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x611aa4f5_82bc_42fb_977b_dc00536e5e86); -} +::windows_core::imp::com_interface!(IHttpProductHeaderValueFactory, IHttpProductHeaderValueFactory_Vtbl, 0x611aa4f5_82bc_42fb_977b_dc00536e5e86); #[repr(C)] #[doc(hidden)] pub struct IHttpProductHeaderValueFactory_Vtbl { @@ -1004,16 +509,7 @@ pub struct IHttpProductHeaderValueFactory_Vtbl { pub CreateFromName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, productname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateFromNameWithVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, productname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, productversion: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpProductHeaderValueStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpProductHeaderValueStatics { - type Vtable = IHttpProductHeaderValueStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpProductHeaderValueStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x90c33e29_befc_4337_be62_49f097975f53); -} +::windows_core::imp::com_interface!(IHttpProductHeaderValueStatics, IHttpProductHeaderValueStatics_Vtbl, 0x90c33e29_befc_4337_be62_49f097975f53); #[repr(C)] #[doc(hidden)] pub struct IHttpProductHeaderValueStatics_Vtbl { @@ -1021,16 +517,7 @@ pub struct IHttpProductHeaderValueStatics_Vtbl { pub Parse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub TryParse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: ::std::mem::MaybeUninit<::windows_core::HSTRING>, productheadervalue: *mut *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpProductInfoHeaderValue(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpProductInfoHeaderValue { - type Vtable = IHttpProductInfoHeaderValue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpProductInfoHeaderValue { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1b1a8732_4c35_486a_966f_646489198e4d); -} +::windows_core::imp::com_interface!(IHttpProductInfoHeaderValue, IHttpProductInfoHeaderValue_Vtbl, 0x1b1a8732_4c35_486a_966f_646489198e4d); #[repr(C)] #[doc(hidden)] pub struct IHttpProductInfoHeaderValue_Vtbl { @@ -1038,16 +525,7 @@ pub struct IHttpProductInfoHeaderValue_Vtbl { pub Product: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Comment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpProductInfoHeaderValueCollection(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpProductInfoHeaderValueCollection { - type Vtable = IHttpProductInfoHeaderValueCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpProductInfoHeaderValueCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x877df74a_d69b_44f8_ad4f_453af9c42ed0); -} +::windows_core::imp::com_interface!(IHttpProductInfoHeaderValueCollection, IHttpProductInfoHeaderValueCollection_Vtbl, 0x877df74a_d69b_44f8_ad4f_453af9c42ed0); #[repr(C)] #[doc(hidden)] pub struct IHttpProductInfoHeaderValueCollection_Vtbl { @@ -1055,16 +533,7 @@ pub struct IHttpProductInfoHeaderValueCollection_Vtbl { pub ParseAdd: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub TryParseAdd: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpProductInfoHeaderValueFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpProductInfoHeaderValueFactory { - type Vtable = IHttpProductInfoHeaderValueFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpProductInfoHeaderValueFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x24220fbe_eabe_4464_b460_ec010b7c41e2); -} +::windows_core::imp::com_interface!(IHttpProductInfoHeaderValueFactory, IHttpProductInfoHeaderValueFactory_Vtbl, 0x24220fbe_eabe_4464_b460_ec010b7c41e2); #[repr(C)] #[doc(hidden)] pub struct IHttpProductInfoHeaderValueFactory_Vtbl { @@ -1072,16 +541,7 @@ pub struct IHttpProductInfoHeaderValueFactory_Vtbl { pub CreateFromComment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, productcomment: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateFromNameWithVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, productname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, productversion: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpProductInfoHeaderValueStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpProductInfoHeaderValueStatics { - type Vtable = IHttpProductInfoHeaderValueStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpProductInfoHeaderValueStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdb7fd857_327a_4e73_81e5_7059a302b042); -} +::windows_core::imp::com_interface!(IHttpProductInfoHeaderValueStatics, IHttpProductInfoHeaderValueStatics_Vtbl, 0xdb7fd857_327a_4e73_81e5_7059a302b042); #[repr(C)] #[doc(hidden)] pub struct IHttpProductInfoHeaderValueStatics_Vtbl { @@ -1089,16 +549,7 @@ pub struct IHttpProductInfoHeaderValueStatics_Vtbl { pub Parse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub TryParse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: ::std::mem::MaybeUninit<::windows_core::HSTRING>, productinfoheadervalue: *mut *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpRequestHeaderCollection(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpRequestHeaderCollection { - type Vtable = IHttpRequestHeaderCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpRequestHeaderCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaf40329b_b544_469b_86b9_ac3d466fea36); -} +::windows_core::imp::com_interface!(IHttpRequestHeaderCollection, IHttpRequestHeaderCollection_Vtbl, 0xaf40329b_b544_469b_86b9_ac3d466fea36); #[repr(C)] #[doc(hidden)] pub struct IHttpRequestHeaderCollection_Vtbl { @@ -1139,16 +590,7 @@ pub struct IHttpRequestHeaderCollection_Vtbl { pub Append: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows_core::HSTRING>, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub TryAppendWithoutValidation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows_core::HSTRING>, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpResponseHeaderCollection(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpResponseHeaderCollection { - type Vtable = IHttpResponseHeaderCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpResponseHeaderCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7a990969_fa3f_41ed_aac6_bf957975c16b); -} +::windows_core::imp::com_interface!(IHttpResponseHeaderCollection, IHttpResponseHeaderCollection_Vtbl, 0x7a990969_fa3f_41ed_aac6_bf957975c16b); #[repr(C)] #[doc(hidden)] pub struct IHttpResponseHeaderCollection_Vtbl { @@ -1170,16 +612,7 @@ pub struct IHttpResponseHeaderCollection_Vtbl { pub Append: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows_core::HSTRING>, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub TryAppendWithoutValidation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows_core::HSTRING>, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpTransferCodingHeaderValue(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpTransferCodingHeaderValue { - type Vtable = IHttpTransferCodingHeaderValue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpTransferCodingHeaderValue { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x436f32f9_3ded_42bd_b38a_5496a2511ce6); -} +::windows_core::imp::com_interface!(IHttpTransferCodingHeaderValue, IHttpTransferCodingHeaderValue_Vtbl, 0x436f32f9_3ded_42bd_b38a_5496a2511ce6); #[repr(C)] #[doc(hidden)] pub struct IHttpTransferCodingHeaderValue_Vtbl { @@ -1190,16 +623,7 @@ pub struct IHttpTransferCodingHeaderValue_Vtbl { Parameters: usize, pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpTransferCodingHeaderValueCollection(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpTransferCodingHeaderValueCollection { - type Vtable = IHttpTransferCodingHeaderValueCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpTransferCodingHeaderValueCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x202c8c34_2c03_49b8_9665_73e27cb2fc79); -} +::windows_core::imp::com_interface!(IHttpTransferCodingHeaderValueCollection, IHttpTransferCodingHeaderValueCollection_Vtbl, 0x202c8c34_2c03_49b8_9665_73e27cb2fc79); #[repr(C)] #[doc(hidden)] pub struct IHttpTransferCodingHeaderValueCollection_Vtbl { @@ -1207,32 +631,14 @@ pub struct IHttpTransferCodingHeaderValueCollection_Vtbl { pub ParseAdd: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub TryParseAdd: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpTransferCodingHeaderValueFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpTransferCodingHeaderValueFactory { - type Vtable = IHttpTransferCodingHeaderValueFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpTransferCodingHeaderValueFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbb62dffc_e361_4f08_8e4f_c9e723de703b); -} +::windows_core::imp::com_interface!(IHttpTransferCodingHeaderValueFactory, IHttpTransferCodingHeaderValueFactory_Vtbl, 0xbb62dffc_e361_4f08_8e4f_c9e723de703b); #[repr(C)] #[doc(hidden)] pub struct IHttpTransferCodingHeaderValueFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpTransferCodingHeaderValueStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpTransferCodingHeaderValueStatics { - type Vtable = IHttpTransferCodingHeaderValueStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpTransferCodingHeaderValueStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6ab8892a_1a98_4d32_a906_7470a9875ce5); -} +::windows_core::imp::com_interface!(IHttpTransferCodingHeaderValueStatics, IHttpTransferCodingHeaderValueStatics_Vtbl, 0x6ab8892a_1a98_4d32_a906_7470a9875ce5); #[repr(C)] #[doc(hidden)] pub struct IHttpTransferCodingHeaderValueStatics_Vtbl { @@ -1243,6 +649,9 @@ pub struct IHttpTransferCodingHeaderValueStatics_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HttpCacheDirectiveHeaderValueCollection(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HttpCacheDirectiveHeaderValueCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(HttpCacheDirectiveHeaderValueCollection, super::super::super::Foundation::Collections::IIterable::, super::super::super::Foundation::IStringable, super::super::super::Foundation::Collections::IVector::); impl HttpCacheDirectiveHeaderValueCollection { pub fn MaxAge(&self) -> ::windows_core::Result> { let this = self; @@ -1253,10 +662,10 @@ impl HttpCacheDirectiveHeaderValueCollection { } pub fn SetMaxAge(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetMaxAge)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetMaxAge)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn MaxStale(&self) -> ::windows_core::Result> { let this = self; @@ -1267,10 +676,10 @@ impl HttpCacheDirectiveHeaderValueCollection { } pub fn SetMaxStale(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetMaxStale)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetMaxStale)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn MinFresh(&self) -> ::windows_core::Result> { let this = self; @@ -1281,10 +690,10 @@ impl HttpCacheDirectiveHeaderValueCollection { } pub fn SetMinFresh(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetMinFresh)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetMinFresh)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn SharedMaxAge(&self) -> ::windows_core::Result> { let this = self; @@ -1295,10 +704,10 @@ impl HttpCacheDirectiveHeaderValueCollection { } pub fn SetSharedMaxAge(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetSharedMaxAge)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetSharedMaxAge)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn ParseAdd(&self, input: &::windows_core::HSTRING) -> ::windows_core::Result<()> { let this = self; @@ -1314,14 +723,14 @@ impl HttpCacheDirectiveHeaderValueCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ToString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ToString)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1330,7 +739,7 @@ impl HttpCacheDirectiveHeaderValueCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetAt(&self, index: u32) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetAt)(::windows_core::Interface::as_raw(this), index, &mut result__).from_abi(result__) @@ -1339,7 +748,7 @@ impl HttpCacheDirectiveHeaderValueCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Size(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Size)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1348,7 +757,7 @@ impl HttpCacheDirectiveHeaderValueCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetView(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetView)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1360,7 +769,7 @@ impl HttpCacheDirectiveHeaderValueCollection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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__).from_abi(result__) @@ -1372,7 +781,7 @@ impl HttpCacheDirectiveHeaderValueCollection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -1381,13 +790,13 @@ impl HttpCacheDirectiveHeaderValueCollection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn RemoveAt(&self, index: u32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveAt)(::windows_core::Interface::as_raw(this), index).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -1396,25 +805,25 @@ impl HttpCacheDirectiveHeaderValueCollection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn RemoveAtEnd(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveAtEnd)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Clear(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).Clear)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetMany(&self, startindex: u32, items: &mut [::core::option::Option]) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetMany)(::windows_core::Interface::as_raw(this), startindex, items.len().try_into().unwrap(), ::core::mem::transmute_copy(&items), &mut result__).from_abi(result__) @@ -1423,7 +832,7 @@ impl HttpCacheDirectiveHeaderValueCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn ReplaceAll(&self, items: &[::core::option::Option]) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).ReplaceAll)(::windows_core::Interface::as_raw(this), items.len().try_into().unwrap(), ::core::mem::transmute(items.as_ptr())).ok() } } } @@ -1432,9 +841,7 @@ impl ::windows_core::RuntimeType for HttpCacheDirectiveHeaderValueCollection { } unsafe impl ::windows_core::Interface for HttpCacheDirectiveHeaderValueCollection { type Vtable = IHttpCacheDirectiveHeaderValueCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HttpCacheDirectiveHeaderValueCollection { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HttpCacheDirectiveHeaderValueCollection { const NAME: &'static str = "Windows.Web.Http.Headers.HttpCacheDirectiveHeaderValueCollection"; @@ -1452,20 +859,16 @@ impl ::core::iter::IntoIterator for &HttpCacheDirectiveHeaderValueCollection { type Item = HttpNameValueHeaderValue; type IntoIter = super::super::super::Foundation::Collections::VectorIterator; fn into_iter(self) -> Self::IntoIter { - super::super::super::Foundation::Collections::VectorIterator::new(::windows_core::ComInterface::cast(self).ok()) + super::super::super::Foundation::Collections::VectorIterator::new(::windows_core::Interface::cast(self).ok()) } } -::windows_core::imp::interface_hierarchy!(HttpCacheDirectiveHeaderValueCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for HttpCacheDirectiveHeaderValueCollection {} -impl ::windows_core::CanTryInto for HttpCacheDirectiveHeaderValueCollection {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for HttpCacheDirectiveHeaderValueCollection {} unsafe impl ::core::marker::Send for HttpCacheDirectiveHeaderValueCollection {} unsafe impl ::core::marker::Sync for HttpCacheDirectiveHeaderValueCollection {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HttpChallengeHeaderValue(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HttpChallengeHeaderValue, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(HttpChallengeHeaderValue, super::super::super::Foundation::IStringable); impl HttpChallengeHeaderValue { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -1515,7 +918,7 @@ impl HttpChallengeHeaderValue { }) } pub fn ToString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ToString)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1537,20 +940,19 @@ impl ::windows_core::RuntimeType for HttpChallengeHeaderValue { } unsafe impl ::windows_core::Interface for HttpChallengeHeaderValue { type Vtable = IHttpChallengeHeaderValue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HttpChallengeHeaderValue { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HttpChallengeHeaderValue { const NAME: &'static str = "Windows.Web.Http.Headers.HttpChallengeHeaderValue"; } -::windows_core::imp::interface_hierarchy!(HttpChallengeHeaderValue, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for HttpChallengeHeaderValue {} unsafe impl ::core::marker::Send for HttpChallengeHeaderValue {} unsafe impl ::core::marker::Sync for HttpChallengeHeaderValue {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HttpChallengeHeaderValueCollection(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HttpChallengeHeaderValueCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(HttpChallengeHeaderValueCollection, super::super::super::Foundation::Collections::IIterable::, super::super::super::Foundation::IStringable, super::super::super::Foundation::Collections::IVector::); impl HttpChallengeHeaderValueCollection { pub fn ParseAdd(&self, input: &::windows_core::HSTRING) -> ::windows_core::Result<()> { let this = self; @@ -1566,14 +968,14 @@ impl HttpChallengeHeaderValueCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ToString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ToString)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1582,7 +984,7 @@ impl HttpChallengeHeaderValueCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetAt(&self, index: u32) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetAt)(::windows_core::Interface::as_raw(this), index, &mut result__).from_abi(result__) @@ -1591,7 +993,7 @@ impl HttpChallengeHeaderValueCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Size(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Size)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1600,7 +1002,7 @@ impl HttpChallengeHeaderValueCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetView(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetView)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1612,7 +1014,7 @@ impl HttpChallengeHeaderValueCollection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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__).from_abi(result__) @@ -1624,7 +1026,7 @@ impl HttpChallengeHeaderValueCollection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -1633,13 +1035,13 @@ impl HttpChallengeHeaderValueCollection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn RemoveAt(&self, index: u32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveAt)(::windows_core::Interface::as_raw(this), index).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -1648,25 +1050,25 @@ impl HttpChallengeHeaderValueCollection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn RemoveAtEnd(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveAtEnd)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Clear(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).Clear)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetMany(&self, startindex: u32, items: &mut [::core::option::Option]) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetMany)(::windows_core::Interface::as_raw(this), startindex, items.len().try_into().unwrap(), ::core::mem::transmute_copy(&items), &mut result__).from_abi(result__) @@ -1675,7 +1077,7 @@ impl HttpChallengeHeaderValueCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn ReplaceAll(&self, items: &[::core::option::Option]) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).ReplaceAll)(::windows_core::Interface::as_raw(this), items.len().try_into().unwrap(), ::core::mem::transmute(items.as_ptr())).ok() } } } @@ -1684,9 +1086,7 @@ impl ::windows_core::RuntimeType for HttpChallengeHeaderValueCollection { } unsafe impl ::windows_core::Interface for HttpChallengeHeaderValueCollection { type Vtable = IHttpChallengeHeaderValueCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HttpChallengeHeaderValueCollection { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HttpChallengeHeaderValueCollection { const NAME: &'static str = "Windows.Web.Http.Headers.HttpChallengeHeaderValueCollection"; @@ -1704,20 +1104,16 @@ impl ::core::iter::IntoIterator for &HttpChallengeHeaderValueCollection { type Item = HttpChallengeHeaderValue; type IntoIter = super::super::super::Foundation::Collections::VectorIterator; fn into_iter(self) -> Self::IntoIter { - super::super::super::Foundation::Collections::VectorIterator::new(::windows_core::ComInterface::cast(self).ok()) + super::super::super::Foundation::Collections::VectorIterator::new(::windows_core::Interface::cast(self).ok()) } } -::windows_core::imp::interface_hierarchy!(HttpChallengeHeaderValueCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for HttpChallengeHeaderValueCollection {} -impl ::windows_core::CanTryInto for HttpChallengeHeaderValueCollection {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for HttpChallengeHeaderValueCollection {} unsafe impl ::core::marker::Send for HttpChallengeHeaderValueCollection {} unsafe impl ::core::marker::Sync for HttpChallengeHeaderValueCollection {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HttpConnectionOptionHeaderValue(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HttpConnectionOptionHeaderValue, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(HttpConnectionOptionHeaderValue, super::super::super::Foundation::IStringable); impl HttpConnectionOptionHeaderValue { pub fn Token(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1745,7 +1141,7 @@ impl HttpConnectionOptionHeaderValue { }) } pub fn ToString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ToString)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1767,20 +1163,19 @@ impl ::windows_core::RuntimeType for HttpConnectionOptionHeaderValue { } unsafe impl ::windows_core::Interface for HttpConnectionOptionHeaderValue { type Vtable = IHttpConnectionOptionHeaderValue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HttpConnectionOptionHeaderValue { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HttpConnectionOptionHeaderValue { const NAME: &'static str = "Windows.Web.Http.Headers.HttpConnectionOptionHeaderValue"; } -::windows_core::imp::interface_hierarchy!(HttpConnectionOptionHeaderValue, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for HttpConnectionOptionHeaderValue {} unsafe impl ::core::marker::Send for HttpConnectionOptionHeaderValue {} unsafe impl ::core::marker::Sync for HttpConnectionOptionHeaderValue {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HttpConnectionOptionHeaderValueCollection(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HttpConnectionOptionHeaderValueCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(HttpConnectionOptionHeaderValueCollection, super::super::super::Foundation::Collections::IIterable::, super::super::super::Foundation::IStringable, super::super::super::Foundation::Collections::IVector::); impl HttpConnectionOptionHeaderValueCollection { pub fn ParseAdd(&self, input: &::windows_core::HSTRING) -> ::windows_core::Result<()> { let this = self; @@ -1796,14 +1191,14 @@ impl HttpConnectionOptionHeaderValueCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ToString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ToString)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1812,7 +1207,7 @@ impl HttpConnectionOptionHeaderValueCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetAt(&self, index: u32) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetAt)(::windows_core::Interface::as_raw(this), index, &mut result__).from_abi(result__) @@ -1821,7 +1216,7 @@ impl HttpConnectionOptionHeaderValueCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Size(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Size)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1830,7 +1225,7 @@ impl HttpConnectionOptionHeaderValueCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetView(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetView)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1842,7 +1237,7 @@ impl HttpConnectionOptionHeaderValueCollection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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__).from_abi(result__) @@ -1854,7 +1249,7 @@ impl HttpConnectionOptionHeaderValueCollection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -1863,13 +1258,13 @@ impl HttpConnectionOptionHeaderValueCollection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn RemoveAt(&self, index: u32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveAt)(::windows_core::Interface::as_raw(this), index).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -1878,25 +1273,25 @@ impl HttpConnectionOptionHeaderValueCollection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn RemoveAtEnd(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveAtEnd)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Clear(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).Clear)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetMany(&self, startindex: u32, items: &mut [::core::option::Option]) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetMany)(::windows_core::Interface::as_raw(this), startindex, items.len().try_into().unwrap(), ::core::mem::transmute_copy(&items), &mut result__).from_abi(result__) @@ -1905,7 +1300,7 @@ impl HttpConnectionOptionHeaderValueCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn ReplaceAll(&self, items: &[::core::option::Option]) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).ReplaceAll)(::windows_core::Interface::as_raw(this), items.len().try_into().unwrap(), ::core::mem::transmute(items.as_ptr())).ok() } } } @@ -1914,9 +1309,7 @@ impl ::windows_core::RuntimeType for HttpConnectionOptionHeaderValueCollection { } unsafe impl ::windows_core::Interface for HttpConnectionOptionHeaderValueCollection { type Vtable = IHttpConnectionOptionHeaderValueCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HttpConnectionOptionHeaderValueCollection { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HttpConnectionOptionHeaderValueCollection { const NAME: &'static str = "Windows.Web.Http.Headers.HttpConnectionOptionHeaderValueCollection"; @@ -1934,20 +1327,16 @@ impl ::core::iter::IntoIterator for &HttpConnectionOptionHeaderValueCollection { type Item = HttpConnectionOptionHeaderValue; type IntoIter = super::super::super::Foundation::Collections::VectorIterator; fn into_iter(self) -> Self::IntoIter { - super::super::super::Foundation::Collections::VectorIterator::new(::windows_core::ComInterface::cast(self).ok()) + super::super::super::Foundation::Collections::VectorIterator::new(::windows_core::Interface::cast(self).ok()) } } -::windows_core::imp::interface_hierarchy!(HttpConnectionOptionHeaderValueCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for HttpConnectionOptionHeaderValueCollection {} -impl ::windows_core::CanTryInto for HttpConnectionOptionHeaderValueCollection {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for HttpConnectionOptionHeaderValueCollection {} unsafe impl ::core::marker::Send for HttpConnectionOptionHeaderValueCollection {} unsafe impl ::core::marker::Sync for HttpConnectionOptionHeaderValueCollection {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HttpContentCodingHeaderValue(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HttpContentCodingHeaderValue, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(HttpContentCodingHeaderValue, super::super::super::Foundation::IStringable); impl HttpContentCodingHeaderValue { pub fn ContentCoding(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1975,7 +1364,7 @@ impl HttpContentCodingHeaderValue { }) } pub fn ToString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ToString)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1997,20 +1386,19 @@ impl ::windows_core::RuntimeType for HttpContentCodingHeaderValue { } unsafe impl ::windows_core::Interface for HttpContentCodingHeaderValue { type Vtable = IHttpContentCodingHeaderValue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HttpContentCodingHeaderValue { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HttpContentCodingHeaderValue { const NAME: &'static str = "Windows.Web.Http.Headers.HttpContentCodingHeaderValue"; } -::windows_core::imp::interface_hierarchy!(HttpContentCodingHeaderValue, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for HttpContentCodingHeaderValue {} unsafe impl ::core::marker::Send for HttpContentCodingHeaderValue {} unsafe impl ::core::marker::Sync for HttpContentCodingHeaderValue {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HttpContentCodingHeaderValueCollection(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HttpContentCodingHeaderValueCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(HttpContentCodingHeaderValueCollection, super::super::super::Foundation::Collections::IIterable::, super::super::super::Foundation::IStringable, super::super::super::Foundation::Collections::IVector::); impl HttpContentCodingHeaderValueCollection { pub fn ParseAdd(&self, input: &::windows_core::HSTRING) -> ::windows_core::Result<()> { let this = self; @@ -2026,14 +1414,14 @@ impl HttpContentCodingHeaderValueCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ToString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ToString)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2042,7 +1430,7 @@ impl HttpContentCodingHeaderValueCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetAt(&self, index: u32) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetAt)(::windows_core::Interface::as_raw(this), index, &mut result__).from_abi(result__) @@ -2051,7 +1439,7 @@ impl HttpContentCodingHeaderValueCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Size(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Size)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2060,7 +1448,7 @@ impl HttpContentCodingHeaderValueCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetView(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetView)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2072,7 +1460,7 @@ impl HttpContentCodingHeaderValueCollection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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__).from_abi(result__) @@ -2084,7 +1472,7 @@ impl HttpContentCodingHeaderValueCollection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -2093,13 +1481,13 @@ impl HttpContentCodingHeaderValueCollection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn RemoveAt(&self, index: u32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveAt)(::windows_core::Interface::as_raw(this), index).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -2108,25 +1496,25 @@ impl HttpContentCodingHeaderValueCollection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn RemoveAtEnd(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveAtEnd)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Clear(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).Clear)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetMany(&self, startindex: u32, items: &mut [::core::option::Option]) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetMany)(::windows_core::Interface::as_raw(this), startindex, items.len().try_into().unwrap(), ::core::mem::transmute_copy(&items), &mut result__).from_abi(result__) @@ -2135,7 +1523,7 @@ impl HttpContentCodingHeaderValueCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn ReplaceAll(&self, items: &[::core::option::Option]) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).ReplaceAll)(::windows_core::Interface::as_raw(this), items.len().try_into().unwrap(), ::core::mem::transmute(items.as_ptr())).ok() } } } @@ -2144,9 +1532,7 @@ impl ::windows_core::RuntimeType for HttpContentCodingHeaderValueCollection { } unsafe impl ::windows_core::Interface for HttpContentCodingHeaderValueCollection { type Vtable = IHttpContentCodingHeaderValueCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HttpContentCodingHeaderValueCollection { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HttpContentCodingHeaderValueCollection { const NAME: &'static str = "Windows.Web.Http.Headers.HttpContentCodingHeaderValueCollection"; @@ -2164,20 +1550,16 @@ impl ::core::iter::IntoIterator for &HttpContentCodingHeaderValueCollection { type Item = HttpContentCodingHeaderValue; type IntoIter = super::super::super::Foundation::Collections::VectorIterator; fn into_iter(self) -> Self::IntoIter { - super::super::super::Foundation::Collections::VectorIterator::new(::windows_core::ComInterface::cast(self).ok()) + super::super::super::Foundation::Collections::VectorIterator::new(::windows_core::Interface::cast(self).ok()) } } -::windows_core::imp::interface_hierarchy!(HttpContentCodingHeaderValueCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for HttpContentCodingHeaderValueCollection {} -impl ::windows_core::CanTryInto for HttpContentCodingHeaderValueCollection {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for HttpContentCodingHeaderValueCollection {} unsafe impl ::core::marker::Send for HttpContentCodingHeaderValueCollection {} unsafe impl ::core::marker::Sync for HttpContentCodingHeaderValueCollection {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HttpContentCodingWithQualityHeaderValue(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HttpContentCodingWithQualityHeaderValue, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(HttpContentCodingWithQualityHeaderValue, super::super::super::Foundation::IStringable); impl HttpContentCodingWithQualityHeaderValue { pub fn ContentCoding(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -2218,7 +1600,7 @@ impl HttpContentCodingWithQualityHeaderValue { }) } pub fn ToString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ToString)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2240,20 +1622,19 @@ impl ::windows_core::RuntimeType for HttpContentCodingWithQualityHeaderValue { } unsafe impl ::windows_core::Interface for HttpContentCodingWithQualityHeaderValue { type Vtable = IHttpContentCodingWithQualityHeaderValue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HttpContentCodingWithQualityHeaderValue { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HttpContentCodingWithQualityHeaderValue { const NAME: &'static str = "Windows.Web.Http.Headers.HttpContentCodingWithQualityHeaderValue"; } -::windows_core::imp::interface_hierarchy!(HttpContentCodingWithQualityHeaderValue, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for HttpContentCodingWithQualityHeaderValue {} unsafe impl ::core::marker::Send for HttpContentCodingWithQualityHeaderValue {} unsafe impl ::core::marker::Sync for HttpContentCodingWithQualityHeaderValue {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HttpContentCodingWithQualityHeaderValueCollection(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HttpContentCodingWithQualityHeaderValueCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(HttpContentCodingWithQualityHeaderValueCollection, super::super::super::Foundation::Collections::IIterable::, super::super::super::Foundation::IStringable, super::super::super::Foundation::Collections::IVector::); impl HttpContentCodingWithQualityHeaderValueCollection { pub fn ParseAdd(&self, input: &::windows_core::HSTRING) -> ::windows_core::Result<()> { let this = self; @@ -2269,14 +1650,14 @@ impl HttpContentCodingWithQualityHeaderValueCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ToString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ToString)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2285,7 +1666,7 @@ impl HttpContentCodingWithQualityHeaderValueCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetAt(&self, index: u32) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetAt)(::windows_core::Interface::as_raw(this), index, &mut result__).from_abi(result__) @@ -2294,7 +1675,7 @@ impl HttpContentCodingWithQualityHeaderValueCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Size(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Size)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2303,7 +1684,7 @@ impl HttpContentCodingWithQualityHeaderValueCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetView(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetView)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2315,7 +1696,7 @@ impl HttpContentCodingWithQualityHeaderValueCollection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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__).from_abi(result__) @@ -2327,7 +1708,7 @@ impl HttpContentCodingWithQualityHeaderValueCollection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -2336,13 +1717,13 @@ impl HttpContentCodingWithQualityHeaderValueCollection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn RemoveAt(&self, index: u32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveAt)(::windows_core::Interface::as_raw(this), index).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -2351,25 +1732,25 @@ impl HttpContentCodingWithQualityHeaderValueCollection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn RemoveAtEnd(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveAtEnd)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Clear(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).Clear)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetMany(&self, startindex: u32, items: &mut [::core::option::Option]) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetMany)(::windows_core::Interface::as_raw(this), startindex, items.len().try_into().unwrap(), ::core::mem::transmute_copy(&items), &mut result__).from_abi(result__) @@ -2378,7 +1759,7 @@ impl HttpContentCodingWithQualityHeaderValueCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn ReplaceAll(&self, items: &[::core::option::Option]) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).ReplaceAll)(::windows_core::Interface::as_raw(this), items.len().try_into().unwrap(), ::core::mem::transmute(items.as_ptr())).ok() } } } @@ -2387,9 +1768,7 @@ impl ::windows_core::RuntimeType for HttpContentCodingWithQualityHeaderValueColl } unsafe impl ::windows_core::Interface for HttpContentCodingWithQualityHeaderValueCollection { type Vtable = IHttpContentCodingWithQualityHeaderValueCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HttpContentCodingWithQualityHeaderValueCollection { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HttpContentCodingWithQualityHeaderValueCollection { const NAME: &'static str = "Windows.Web.Http.Headers.HttpContentCodingWithQualityHeaderValueCollection"; @@ -2407,20 +1786,16 @@ impl ::core::iter::IntoIterator for &HttpContentCodingWithQualityHeaderValueColl type Item = HttpContentCodingWithQualityHeaderValue; type IntoIter = super::super::super::Foundation::Collections::VectorIterator; fn into_iter(self) -> Self::IntoIter { - super::super::super::Foundation::Collections::VectorIterator::new(::windows_core::ComInterface::cast(self).ok()) + super::super::super::Foundation::Collections::VectorIterator::new(::windows_core::Interface::cast(self).ok()) } } -::windows_core::imp::interface_hierarchy!(HttpContentCodingWithQualityHeaderValueCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for HttpContentCodingWithQualityHeaderValueCollection {} -impl ::windows_core::CanTryInto for HttpContentCodingWithQualityHeaderValueCollection {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for HttpContentCodingWithQualityHeaderValueCollection {} unsafe impl ::core::marker::Send for HttpContentCodingWithQualityHeaderValueCollection {} unsafe impl ::core::marker::Sync for HttpContentCodingWithQualityHeaderValueCollection {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HttpContentDispositionHeaderValue(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HttpContentDispositionHeaderValue, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(HttpContentDispositionHeaderValue, super::super::super::Foundation::IStringable); impl HttpContentDispositionHeaderValue { pub fn DispositionType(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -2484,10 +1859,10 @@ impl HttpContentDispositionHeaderValue { } pub fn SetSize(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetSize)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetSize)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn Create(dispositiontype: &::windows_core::HSTRING) -> ::windows_core::Result { Self::IHttpContentDispositionHeaderValueFactory(|this| unsafe { @@ -2508,7 +1883,7 @@ impl HttpContentDispositionHeaderValue { }) } pub fn ToString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ToString)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2530,20 +1905,19 @@ impl ::windows_core::RuntimeType for HttpContentDispositionHeaderValue { } unsafe impl ::windows_core::Interface for HttpContentDispositionHeaderValue { type Vtable = IHttpContentDispositionHeaderValue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HttpContentDispositionHeaderValue { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HttpContentDispositionHeaderValue { const NAME: &'static str = "Windows.Web.Http.Headers.HttpContentDispositionHeaderValue"; } -::windows_core::imp::interface_hierarchy!(HttpContentDispositionHeaderValue, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for HttpContentDispositionHeaderValue {} unsafe impl ::core::marker::Send for HttpContentDispositionHeaderValue {} unsafe impl ::core::marker::Sync for HttpContentDispositionHeaderValue {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HttpContentHeaderCollection(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HttpContentHeaderCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(HttpContentHeaderCollection, super::super::super::Foundation::Collections::IIterable::>, super::super::super::Foundation::Collections::IMap::<::windows_core::HSTRING, ::windows_core::HSTRING>, super::super::super::Foundation::IStringable); impl HttpContentHeaderCollection { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2589,10 +1963,10 @@ impl HttpContentHeaderCollection { } pub fn SetContentLength(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetContentLength)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetContentLength)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn ContentLocation(&self) -> ::windows_core::Result { let this = self; @@ -2621,10 +1995,10 @@ impl HttpContentHeaderCollection { #[cfg(feature = "Storage_Streams")] pub fn SetContentMD5(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetContentMD5)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetContentMD5)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn ContentRange(&self) -> ::windows_core::Result { let this = self; @@ -2663,10 +2037,10 @@ impl HttpContentHeaderCollection { } pub fn SetExpires(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetExpires)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetExpires)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn LastModified(&self) -> ::windows_core::Result> { let this = self; @@ -2677,10 +2051,10 @@ impl HttpContentHeaderCollection { } pub fn SetLastModified(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetLastModified)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetLastModified)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn Append(&self, name: &::windows_core::HSTRING, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { let this = self; @@ -2696,7 +2070,7 @@ impl HttpContentHeaderCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> ::windows_core::Result>> { - let this = &::windows_core::ComInterface::cast::>>(self)?; + let this = &::windows_core::Interface::cast::>>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2705,7 +2079,7 @@ impl HttpContentHeaderCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Lookup(&self, key: &::windows_core::HSTRING) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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), ::core::mem::transmute_copy(key), &mut result__).from_abi(result__) @@ -2714,7 +2088,7 @@ impl HttpContentHeaderCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Size(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Size)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2723,7 +2097,7 @@ impl HttpContentHeaderCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn HasKey(&self, key: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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), ::core::mem::transmute_copy(key), &mut result__).from_abi(result__) @@ -2732,7 +2106,7 @@ impl HttpContentHeaderCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetView(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetView)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2741,7 +2115,7 @@ impl HttpContentHeaderCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Insert(&self, key: &::windows_core::HSTRING, value: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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), ::core::mem::transmute_copy(value), &mut result__).from_abi(result__) @@ -2750,17 +2124,17 @@ impl HttpContentHeaderCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Remove(&self, key: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).Remove)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Clear(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).Clear)(::windows_core::Interface::as_raw(this)).ok() } } pub fn ToString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ToString)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2772,9 +2146,7 @@ impl ::windows_core::RuntimeType for HttpContentHeaderCollection { } unsafe impl ::windows_core::Interface for HttpContentHeaderCollection { type Vtable = IHttpContentHeaderCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HttpContentHeaderCollection { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HttpContentHeaderCollection { const NAME: &'static str = "Windows.Web.Http.Headers.HttpContentHeaderCollection"; @@ -2795,17 +2167,13 @@ impl ::core::iter::IntoIterator for &HttpContentHeaderCollection { self.First().unwrap() } } -::windows_core::imp::interface_hierarchy!(HttpContentHeaderCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto>> for HttpContentHeaderCollection {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for HttpContentHeaderCollection {} -impl ::windows_core::CanTryInto for HttpContentHeaderCollection {} unsafe impl ::core::marker::Send for HttpContentHeaderCollection {} unsafe impl ::core::marker::Sync for HttpContentHeaderCollection {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HttpContentRangeHeaderValue(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HttpContentRangeHeaderValue, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(HttpContentRangeHeaderValue, super::super::super::Foundation::IStringable); impl HttpContentRangeHeaderValue { pub fn FirstBytePosition(&self) -> ::windows_core::Result> { let this = self; @@ -2870,7 +2238,7 @@ impl HttpContentRangeHeaderValue { }) } pub fn ToString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ToString)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2892,20 +2260,18 @@ impl ::windows_core::RuntimeType for HttpContentRangeHeaderValue { } unsafe impl ::windows_core::Interface for HttpContentRangeHeaderValue { type Vtable = IHttpContentRangeHeaderValue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HttpContentRangeHeaderValue { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HttpContentRangeHeaderValue { const NAME: &'static str = "Windows.Web.Http.Headers.HttpContentRangeHeaderValue"; } -::windows_core::imp::interface_hierarchy!(HttpContentRangeHeaderValue, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for HttpContentRangeHeaderValue {} unsafe impl ::core::marker::Send for HttpContentRangeHeaderValue {} unsafe impl ::core::marker::Sync for HttpContentRangeHeaderValue {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HttpCookiePairHeaderValue(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HttpCookiePairHeaderValue, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(HttpCookiePairHeaderValue, super::super::super::Foundation::IStringable); impl HttpCookiePairHeaderValue { pub fn Name(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -2950,7 +2316,7 @@ impl HttpCookiePairHeaderValue { }) } pub fn ToString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ToString)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2972,20 +2338,19 @@ impl ::windows_core::RuntimeType for HttpCookiePairHeaderValue { } unsafe impl ::windows_core::Interface for HttpCookiePairHeaderValue { type Vtable = IHttpCookiePairHeaderValue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HttpCookiePairHeaderValue { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HttpCookiePairHeaderValue { const NAME: &'static str = "Windows.Web.Http.Headers.HttpCookiePairHeaderValue"; } -::windows_core::imp::interface_hierarchy!(HttpCookiePairHeaderValue, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for HttpCookiePairHeaderValue {} unsafe impl ::core::marker::Send for HttpCookiePairHeaderValue {} unsafe impl ::core::marker::Sync for HttpCookiePairHeaderValue {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HttpCookiePairHeaderValueCollection(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HttpCookiePairHeaderValueCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(HttpCookiePairHeaderValueCollection, super::super::super::Foundation::Collections::IIterable::, super::super::super::Foundation::IStringable, super::super::super::Foundation::Collections::IVector::); impl HttpCookiePairHeaderValueCollection { pub fn ParseAdd(&self, input: &::windows_core::HSTRING) -> ::windows_core::Result<()> { let this = self; @@ -3001,14 +2366,14 @@ impl HttpCookiePairHeaderValueCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ToString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ToString)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3017,7 +2382,7 @@ impl HttpCookiePairHeaderValueCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetAt(&self, index: u32) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetAt)(::windows_core::Interface::as_raw(this), index, &mut result__).from_abi(result__) @@ -3026,7 +2391,7 @@ impl HttpCookiePairHeaderValueCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Size(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Size)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3035,7 +2400,7 @@ impl HttpCookiePairHeaderValueCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetView(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetView)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3047,7 +2412,7 @@ impl HttpCookiePairHeaderValueCollection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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__).from_abi(result__) @@ -3059,7 +2424,7 @@ impl HttpCookiePairHeaderValueCollection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -3068,13 +2433,13 @@ impl HttpCookiePairHeaderValueCollection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn RemoveAt(&self, index: u32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveAt)(::windows_core::Interface::as_raw(this), index).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -3083,25 +2448,25 @@ impl HttpCookiePairHeaderValueCollection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn RemoveAtEnd(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveAtEnd)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Clear(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).Clear)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetMany(&self, startindex: u32, items: &mut [::core::option::Option]) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetMany)(::windows_core::Interface::as_raw(this), startindex, items.len().try_into().unwrap(), ::core::mem::transmute_copy(&items), &mut result__).from_abi(result__) @@ -3110,7 +2475,7 @@ impl HttpCookiePairHeaderValueCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn ReplaceAll(&self, items: &[::core::option::Option]) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).ReplaceAll)(::windows_core::Interface::as_raw(this), items.len().try_into().unwrap(), ::core::mem::transmute(items.as_ptr())).ok() } } } @@ -3119,9 +2484,7 @@ impl ::windows_core::RuntimeType for HttpCookiePairHeaderValueCollection { } unsafe impl ::windows_core::Interface for HttpCookiePairHeaderValueCollection { type Vtable = IHttpCookiePairHeaderValueCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HttpCookiePairHeaderValueCollection { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HttpCookiePairHeaderValueCollection { const NAME: &'static str = "Windows.Web.Http.Headers.HttpCookiePairHeaderValueCollection"; @@ -3139,20 +2502,16 @@ impl ::core::iter::IntoIterator for &HttpCookiePairHeaderValueCollection { type Item = HttpCookiePairHeaderValue; type IntoIter = super::super::super::Foundation::Collections::VectorIterator; fn into_iter(self) -> Self::IntoIter { - super::super::super::Foundation::Collections::VectorIterator::new(::windows_core::ComInterface::cast(self).ok()) + super::super::super::Foundation::Collections::VectorIterator::new(::windows_core::Interface::cast(self).ok()) } } -::windows_core::imp::interface_hierarchy!(HttpCookiePairHeaderValueCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for HttpCookiePairHeaderValueCollection {} -impl ::windows_core::CanTryInto for HttpCookiePairHeaderValueCollection {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for HttpCookiePairHeaderValueCollection {} unsafe impl ::core::marker::Send for HttpCookiePairHeaderValueCollection {} unsafe impl ::core::marker::Sync for HttpCookiePairHeaderValueCollection {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HttpCredentialsHeaderValue(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HttpCredentialsHeaderValue, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(HttpCredentialsHeaderValue, super::super::super::Foundation::IStringable); impl HttpCredentialsHeaderValue { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -3202,7 +2561,7 @@ impl HttpCredentialsHeaderValue { }) } pub fn ToString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ToString)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3224,20 +2583,18 @@ impl ::windows_core::RuntimeType for HttpCredentialsHeaderValue { } unsafe impl ::windows_core::Interface for HttpCredentialsHeaderValue { type Vtable = IHttpCredentialsHeaderValue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HttpCredentialsHeaderValue { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HttpCredentialsHeaderValue { const NAME: &'static str = "Windows.Web.Http.Headers.HttpCredentialsHeaderValue"; } -::windows_core::imp::interface_hierarchy!(HttpCredentialsHeaderValue, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for HttpCredentialsHeaderValue {} unsafe impl ::core::marker::Send for HttpCredentialsHeaderValue {} unsafe impl ::core::marker::Sync for HttpCredentialsHeaderValue {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HttpDateOrDeltaHeaderValue(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HttpDateOrDeltaHeaderValue, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(HttpDateOrDeltaHeaderValue, super::super::super::Foundation::IStringable); impl HttpDateOrDeltaHeaderValue { pub fn Date(&self) -> ::windows_core::Result> { let this = self; @@ -3266,7 +2623,7 @@ impl HttpDateOrDeltaHeaderValue { }) } pub fn ToString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ToString)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3283,20 +2640,18 @@ impl ::windows_core::RuntimeType for HttpDateOrDeltaHeaderValue { } unsafe impl ::windows_core::Interface for HttpDateOrDeltaHeaderValue { type Vtable = IHttpDateOrDeltaHeaderValue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HttpDateOrDeltaHeaderValue { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HttpDateOrDeltaHeaderValue { const NAME: &'static str = "Windows.Web.Http.Headers.HttpDateOrDeltaHeaderValue"; } -::windows_core::imp::interface_hierarchy!(HttpDateOrDeltaHeaderValue, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for HttpDateOrDeltaHeaderValue {} unsafe impl ::core::marker::Send for HttpDateOrDeltaHeaderValue {} unsafe impl ::core::marker::Sync for HttpDateOrDeltaHeaderValue {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HttpExpectationHeaderValue(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HttpExpectationHeaderValue, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(HttpExpectationHeaderValue, super::super::super::Foundation::IStringable); impl HttpExpectationHeaderValue { pub fn Name(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -3350,7 +2705,7 @@ impl HttpExpectationHeaderValue { }) } pub fn ToString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ToString)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3372,20 +2727,19 @@ impl ::windows_core::RuntimeType for HttpExpectationHeaderValue { } unsafe impl ::windows_core::Interface for HttpExpectationHeaderValue { type Vtable = IHttpExpectationHeaderValue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HttpExpectationHeaderValue { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HttpExpectationHeaderValue { const NAME: &'static str = "Windows.Web.Http.Headers.HttpExpectationHeaderValue"; } -::windows_core::imp::interface_hierarchy!(HttpExpectationHeaderValue, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for HttpExpectationHeaderValue {} unsafe impl ::core::marker::Send for HttpExpectationHeaderValue {} unsafe impl ::core::marker::Sync for HttpExpectationHeaderValue {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HttpExpectationHeaderValueCollection(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HttpExpectationHeaderValueCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(HttpExpectationHeaderValueCollection, super::super::super::Foundation::Collections::IIterable::, super::super::super::Foundation::IStringable, super::super::super::Foundation::Collections::IVector::); impl HttpExpectationHeaderValueCollection { pub fn ParseAdd(&self, input: &::windows_core::HSTRING) -> ::windows_core::Result<()> { let this = self; @@ -3401,14 +2755,14 @@ impl HttpExpectationHeaderValueCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ToString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ToString)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3417,7 +2771,7 @@ impl HttpExpectationHeaderValueCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetAt(&self, index: u32) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetAt)(::windows_core::Interface::as_raw(this), index, &mut result__).from_abi(result__) @@ -3426,7 +2780,7 @@ impl HttpExpectationHeaderValueCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Size(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Size)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3435,7 +2789,7 @@ impl HttpExpectationHeaderValueCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetView(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetView)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3447,7 +2801,7 @@ impl HttpExpectationHeaderValueCollection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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__).from_abi(result__) @@ -3459,7 +2813,7 @@ impl HttpExpectationHeaderValueCollection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -3468,13 +2822,13 @@ impl HttpExpectationHeaderValueCollection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn RemoveAt(&self, index: u32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveAt)(::windows_core::Interface::as_raw(this), index).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -3483,25 +2837,25 @@ impl HttpExpectationHeaderValueCollection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn RemoveAtEnd(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveAtEnd)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Clear(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).Clear)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetMany(&self, startindex: u32, items: &mut [::core::option::Option]) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetMany)(::windows_core::Interface::as_raw(this), startindex, items.len().try_into().unwrap(), ::core::mem::transmute_copy(&items), &mut result__).from_abi(result__) @@ -3510,7 +2864,7 @@ impl HttpExpectationHeaderValueCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn ReplaceAll(&self, items: &[::core::option::Option]) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).ReplaceAll)(::windows_core::Interface::as_raw(this), items.len().try_into().unwrap(), ::core::mem::transmute(items.as_ptr())).ok() } } } @@ -3519,9 +2873,7 @@ impl ::windows_core::RuntimeType for HttpExpectationHeaderValueCollection { } unsafe impl ::windows_core::Interface for HttpExpectationHeaderValueCollection { type Vtable = IHttpExpectationHeaderValueCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HttpExpectationHeaderValueCollection { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HttpExpectationHeaderValueCollection { const NAME: &'static str = "Windows.Web.Http.Headers.HttpExpectationHeaderValueCollection"; @@ -3539,20 +2891,17 @@ impl ::core::iter::IntoIterator for &HttpExpectationHeaderValueCollection { type Item = HttpExpectationHeaderValue; type IntoIter = super::super::super::Foundation::Collections::VectorIterator; fn into_iter(self) -> Self::IntoIter { - super::super::super::Foundation::Collections::VectorIterator::new(::windows_core::ComInterface::cast(self).ok()) + super::super::super::Foundation::Collections::VectorIterator::new(::windows_core::Interface::cast(self).ok()) } } -::windows_core::imp::interface_hierarchy!(HttpExpectationHeaderValueCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for HttpExpectationHeaderValueCollection {} -impl ::windows_core::CanTryInto for HttpExpectationHeaderValueCollection {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for HttpExpectationHeaderValueCollection {} unsafe impl ::core::marker::Send for HttpExpectationHeaderValueCollection {} unsafe impl ::core::marker::Sync for HttpExpectationHeaderValueCollection {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HttpLanguageHeaderValueCollection(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HttpLanguageHeaderValueCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(all(feature = "Foundation_Collections", feature = "Globalization"))] +::windows_core::imp::required_hierarchy!(HttpLanguageHeaderValueCollection, super::super::super::Foundation::Collections::IIterable::, super::super::super::Foundation::IStringable, super::super::super::Foundation::Collections::IVector::); impl HttpLanguageHeaderValueCollection { pub fn ParseAdd(&self, input: &::windows_core::HSTRING) -> ::windows_core::Result<()> { let this = self; @@ -3568,14 +2917,14 @@ impl HttpLanguageHeaderValueCollection { #[doc = "Required features: `\"Foundation_Collections\"`, `\"Globalization\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Globalization"))] pub fn First(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ToString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ToString)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3584,7 +2933,7 @@ impl HttpLanguageHeaderValueCollection { #[doc = "Required features: `\"Foundation_Collections\"`, `\"Globalization\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Globalization"))] pub fn GetAt(&self, index: u32) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetAt)(::windows_core::Interface::as_raw(this), index, &mut result__).from_abi(result__) @@ -3593,7 +2942,7 @@ impl HttpLanguageHeaderValueCollection { #[doc = "Required features: `\"Foundation_Collections\"`, `\"Globalization\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Globalization"))] pub fn Size(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Size)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3602,7 +2951,7 @@ impl HttpLanguageHeaderValueCollection { #[doc = "Required features: `\"Foundation_Collections\"`, `\"Globalization\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Globalization"))] pub fn GetView(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetView)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3614,7 +2963,7 @@ impl HttpLanguageHeaderValueCollection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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__).from_abi(result__) @@ -3626,7 +2975,7 @@ impl HttpLanguageHeaderValueCollection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Globalization\"`"] @@ -3635,13 +2984,13 @@ impl HttpLanguageHeaderValueCollection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Globalization\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Globalization"))] pub fn RemoveAt(&self, index: u32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveAt)(::windows_core::Interface::as_raw(this), index).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Globalization\"`"] @@ -3650,25 +2999,25 @@ impl HttpLanguageHeaderValueCollection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Globalization\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Globalization"))] pub fn RemoveAtEnd(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveAtEnd)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Globalization\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Globalization"))] pub fn Clear(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).Clear)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`, `\"Globalization\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Globalization"))] pub fn GetMany(&self, startindex: u32, items: &mut [::core::option::Option]) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetMany)(::windows_core::Interface::as_raw(this), startindex, items.len().try_into().unwrap(), ::core::mem::transmute_copy(&items), &mut result__).from_abi(result__) @@ -3677,7 +3026,7 @@ impl HttpLanguageHeaderValueCollection { #[doc = "Required features: `\"Foundation_Collections\"`, `\"Globalization\"`"] #[cfg(all(feature = "Foundation_Collections", feature = "Globalization"))] pub fn ReplaceAll(&self, items: &[::core::option::Option]) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).ReplaceAll)(::windows_core::Interface::as_raw(this), items.len().try_into().unwrap(), ::core::mem::transmute(items.as_ptr())).ok() } } } @@ -3686,9 +3035,7 @@ impl ::windows_core::RuntimeType for HttpLanguageHeaderValueCollection { } unsafe impl ::windows_core::Interface for HttpLanguageHeaderValueCollection { type Vtable = IHttpLanguageHeaderValueCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HttpLanguageHeaderValueCollection { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HttpLanguageHeaderValueCollection { const NAME: &'static str = "Windows.Web.Http.Headers.HttpLanguageHeaderValueCollection"; @@ -3706,20 +3053,16 @@ impl ::core::iter::IntoIterator for &HttpLanguageHeaderValueCollection { type Item = super::super::super::Globalization::Language; type IntoIter = super::super::super::Foundation::Collections::VectorIterator; fn into_iter(self) -> Self::IntoIter { - super::super::super::Foundation::Collections::VectorIterator::new(::windows_core::ComInterface::cast(self).ok()) + super::super::super::Foundation::Collections::VectorIterator::new(::windows_core::Interface::cast(self).ok()) } } -::windows_core::imp::interface_hierarchy!(HttpLanguageHeaderValueCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(all(feature = "Foundation_Collections", feature = "Globalization"))] -impl ::windows_core::CanTryInto> for HttpLanguageHeaderValueCollection {} -impl ::windows_core::CanTryInto for HttpLanguageHeaderValueCollection {} -#[cfg(all(feature = "Foundation_Collections", feature = "Globalization"))] -impl ::windows_core::CanTryInto> for HttpLanguageHeaderValueCollection {} unsafe impl ::core::marker::Send for HttpLanguageHeaderValueCollection {} unsafe impl ::core::marker::Sync for HttpLanguageHeaderValueCollection {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HttpLanguageRangeWithQualityHeaderValue(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HttpLanguageRangeWithQualityHeaderValue, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(HttpLanguageRangeWithQualityHeaderValue, super::super::super::Foundation::IStringable); impl HttpLanguageRangeWithQualityHeaderValue { pub fn LanguageRange(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -3760,7 +3103,7 @@ impl HttpLanguageRangeWithQualityHeaderValue { }) } pub fn ToString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ToString)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3782,20 +3125,19 @@ impl ::windows_core::RuntimeType for HttpLanguageRangeWithQualityHeaderValue { } unsafe impl ::windows_core::Interface for HttpLanguageRangeWithQualityHeaderValue { type Vtable = IHttpLanguageRangeWithQualityHeaderValue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HttpLanguageRangeWithQualityHeaderValue { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HttpLanguageRangeWithQualityHeaderValue { const NAME: &'static str = "Windows.Web.Http.Headers.HttpLanguageRangeWithQualityHeaderValue"; } -::windows_core::imp::interface_hierarchy!(HttpLanguageRangeWithQualityHeaderValue, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for HttpLanguageRangeWithQualityHeaderValue {} unsafe impl ::core::marker::Send for HttpLanguageRangeWithQualityHeaderValue {} unsafe impl ::core::marker::Sync for HttpLanguageRangeWithQualityHeaderValue {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HttpLanguageRangeWithQualityHeaderValueCollection(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HttpLanguageRangeWithQualityHeaderValueCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(HttpLanguageRangeWithQualityHeaderValueCollection, super::super::super::Foundation::Collections::IIterable::, super::super::super::Foundation::IStringable, super::super::super::Foundation::Collections::IVector::); impl HttpLanguageRangeWithQualityHeaderValueCollection { pub fn ParseAdd(&self, input: &::windows_core::HSTRING) -> ::windows_core::Result<()> { let this = self; @@ -3811,14 +3153,14 @@ impl HttpLanguageRangeWithQualityHeaderValueCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ToString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ToString)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3827,7 +3169,7 @@ impl HttpLanguageRangeWithQualityHeaderValueCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetAt(&self, index: u32) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetAt)(::windows_core::Interface::as_raw(this), index, &mut result__).from_abi(result__) @@ -3836,7 +3178,7 @@ impl HttpLanguageRangeWithQualityHeaderValueCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Size(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Size)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3845,7 +3187,7 @@ impl HttpLanguageRangeWithQualityHeaderValueCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetView(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetView)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -3857,7 +3199,7 @@ impl HttpLanguageRangeWithQualityHeaderValueCollection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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__).from_abi(result__) @@ -3869,7 +3211,7 @@ impl HttpLanguageRangeWithQualityHeaderValueCollection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -3878,13 +3220,13 @@ impl HttpLanguageRangeWithQualityHeaderValueCollection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn RemoveAt(&self, index: u32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveAt)(::windows_core::Interface::as_raw(this), index).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -3893,25 +3235,25 @@ impl HttpLanguageRangeWithQualityHeaderValueCollection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn RemoveAtEnd(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveAtEnd)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Clear(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).Clear)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetMany(&self, startindex: u32, items: &mut [::core::option::Option]) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetMany)(::windows_core::Interface::as_raw(this), startindex, items.len().try_into().unwrap(), ::core::mem::transmute_copy(&items), &mut result__).from_abi(result__) @@ -3920,7 +3262,7 @@ impl HttpLanguageRangeWithQualityHeaderValueCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn ReplaceAll(&self, items: &[::core::option::Option]) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).ReplaceAll)(::windows_core::Interface::as_raw(this), items.len().try_into().unwrap(), ::core::mem::transmute(items.as_ptr())).ok() } } } @@ -3929,9 +3271,7 @@ impl ::windows_core::RuntimeType for HttpLanguageRangeWithQualityHeaderValueColl } unsafe impl ::windows_core::Interface for HttpLanguageRangeWithQualityHeaderValueCollection { type Vtable = IHttpLanguageRangeWithQualityHeaderValueCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HttpLanguageRangeWithQualityHeaderValueCollection { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HttpLanguageRangeWithQualityHeaderValueCollection { const NAME: &'static str = "Windows.Web.Http.Headers.HttpLanguageRangeWithQualityHeaderValueCollection"; @@ -3949,20 +3289,16 @@ impl ::core::iter::IntoIterator for &HttpLanguageRangeWithQualityHeaderValueColl type Item = HttpLanguageRangeWithQualityHeaderValue; type IntoIter = super::super::super::Foundation::Collections::VectorIterator; fn into_iter(self) -> Self::IntoIter { - super::super::super::Foundation::Collections::VectorIterator::new(::windows_core::ComInterface::cast(self).ok()) + super::super::super::Foundation::Collections::VectorIterator::new(::windows_core::Interface::cast(self).ok()) } } -::windows_core::imp::interface_hierarchy!(HttpLanguageRangeWithQualityHeaderValueCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for HttpLanguageRangeWithQualityHeaderValueCollection {} -impl ::windows_core::CanTryInto for HttpLanguageRangeWithQualityHeaderValueCollection {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for HttpLanguageRangeWithQualityHeaderValueCollection {} unsafe impl ::core::marker::Send for HttpLanguageRangeWithQualityHeaderValueCollection {} unsafe impl ::core::marker::Sync for HttpLanguageRangeWithQualityHeaderValueCollection {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HttpMediaTypeHeaderValue(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HttpMediaTypeHeaderValue, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(HttpMediaTypeHeaderValue, super::super::super::Foundation::IStringable); impl HttpMediaTypeHeaderValue { pub fn CharSet(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -4014,7 +3350,7 @@ impl HttpMediaTypeHeaderValue { }) } pub fn ToString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ToString)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4036,20 +3372,18 @@ impl ::windows_core::RuntimeType for HttpMediaTypeHeaderValue { } unsafe impl ::windows_core::Interface for HttpMediaTypeHeaderValue { type Vtable = IHttpMediaTypeHeaderValue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HttpMediaTypeHeaderValue { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HttpMediaTypeHeaderValue { const NAME: &'static str = "Windows.Web.Http.Headers.HttpMediaTypeHeaderValue"; } -::windows_core::imp::interface_hierarchy!(HttpMediaTypeHeaderValue, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for HttpMediaTypeHeaderValue {} unsafe impl ::core::marker::Send for HttpMediaTypeHeaderValue {} unsafe impl ::core::marker::Sync for HttpMediaTypeHeaderValue {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HttpMediaTypeWithQualityHeaderValue(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HttpMediaTypeWithQualityHeaderValue, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(HttpMediaTypeWithQualityHeaderValue, super::super::super::Foundation::IStringable); impl HttpMediaTypeWithQualityHeaderValue { pub fn CharSet(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -4091,10 +3425,10 @@ impl HttpMediaTypeWithQualityHeaderValue { } pub fn SetQuality(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetQuality)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetQuality)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn CreateFromMediaType(mediatype: &::windows_core::HSTRING) -> ::windows_core::Result { Self::IHttpMediaTypeWithQualityHeaderValueFactory(|this| unsafe { @@ -4121,7 +3455,7 @@ impl HttpMediaTypeWithQualityHeaderValue { }) } pub fn ToString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ToString)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4143,20 +3477,19 @@ impl ::windows_core::RuntimeType for HttpMediaTypeWithQualityHeaderValue { } unsafe impl ::windows_core::Interface for HttpMediaTypeWithQualityHeaderValue { type Vtable = IHttpMediaTypeWithQualityHeaderValue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HttpMediaTypeWithQualityHeaderValue { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HttpMediaTypeWithQualityHeaderValue { const NAME: &'static str = "Windows.Web.Http.Headers.HttpMediaTypeWithQualityHeaderValue"; } -::windows_core::imp::interface_hierarchy!(HttpMediaTypeWithQualityHeaderValue, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for HttpMediaTypeWithQualityHeaderValue {} unsafe impl ::core::marker::Send for HttpMediaTypeWithQualityHeaderValue {} unsafe impl ::core::marker::Sync for HttpMediaTypeWithQualityHeaderValue {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HttpMediaTypeWithQualityHeaderValueCollection(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HttpMediaTypeWithQualityHeaderValueCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(HttpMediaTypeWithQualityHeaderValueCollection, super::super::super::Foundation::Collections::IIterable::, super::super::super::Foundation::IStringable, super::super::super::Foundation::Collections::IVector::); impl HttpMediaTypeWithQualityHeaderValueCollection { pub fn ParseAdd(&self, input: &::windows_core::HSTRING) -> ::windows_core::Result<()> { let this = self; @@ -4172,14 +3505,14 @@ impl HttpMediaTypeWithQualityHeaderValueCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ToString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ToString)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4188,7 +3521,7 @@ impl HttpMediaTypeWithQualityHeaderValueCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetAt(&self, index: u32) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetAt)(::windows_core::Interface::as_raw(this), index, &mut result__).from_abi(result__) @@ -4197,7 +3530,7 @@ impl HttpMediaTypeWithQualityHeaderValueCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Size(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Size)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4206,7 +3539,7 @@ impl HttpMediaTypeWithQualityHeaderValueCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetView(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetView)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4218,7 +3551,7 @@ impl HttpMediaTypeWithQualityHeaderValueCollection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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__).from_abi(result__) @@ -4230,7 +3563,7 @@ impl HttpMediaTypeWithQualityHeaderValueCollection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -4239,13 +3572,13 @@ impl HttpMediaTypeWithQualityHeaderValueCollection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn RemoveAt(&self, index: u32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveAt)(::windows_core::Interface::as_raw(this), index).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -4254,25 +3587,25 @@ impl HttpMediaTypeWithQualityHeaderValueCollection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn RemoveAtEnd(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveAtEnd)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Clear(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).Clear)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetMany(&self, startindex: u32, items: &mut [::core::option::Option]) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetMany)(::windows_core::Interface::as_raw(this), startindex, items.len().try_into().unwrap(), ::core::mem::transmute_copy(&items), &mut result__).from_abi(result__) @@ -4281,7 +3614,7 @@ impl HttpMediaTypeWithQualityHeaderValueCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn ReplaceAll(&self, items: &[::core::option::Option]) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).ReplaceAll)(::windows_core::Interface::as_raw(this), items.len().try_into().unwrap(), ::core::mem::transmute(items.as_ptr())).ok() } } } @@ -4290,9 +3623,7 @@ impl ::windows_core::RuntimeType for HttpMediaTypeWithQualityHeaderValueCollecti } unsafe impl ::windows_core::Interface for HttpMediaTypeWithQualityHeaderValueCollection { type Vtable = IHttpMediaTypeWithQualityHeaderValueCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HttpMediaTypeWithQualityHeaderValueCollection { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HttpMediaTypeWithQualityHeaderValueCollection { const NAME: &'static str = "Windows.Web.Http.Headers.HttpMediaTypeWithQualityHeaderValueCollection"; @@ -4310,20 +3641,17 @@ impl ::core::iter::IntoIterator for &HttpMediaTypeWithQualityHeaderValueCollecti type Item = HttpMediaTypeWithQualityHeaderValue; type IntoIter = super::super::super::Foundation::Collections::VectorIterator; fn into_iter(self) -> Self::IntoIter { - super::super::super::Foundation::Collections::VectorIterator::new(::windows_core::ComInterface::cast(self).ok()) + super::super::super::Foundation::Collections::VectorIterator::new(::windows_core::Interface::cast(self).ok()) } } -::windows_core::imp::interface_hierarchy!(HttpMediaTypeWithQualityHeaderValueCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for HttpMediaTypeWithQualityHeaderValueCollection {} -impl ::windows_core::CanTryInto for HttpMediaTypeWithQualityHeaderValueCollection {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for HttpMediaTypeWithQualityHeaderValueCollection {} unsafe impl ::core::marker::Send for HttpMediaTypeWithQualityHeaderValueCollection {} unsafe impl ::core::marker::Sync for HttpMediaTypeWithQualityHeaderValueCollection {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HttpMethodHeaderValueCollection(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HttpMethodHeaderValueCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(HttpMethodHeaderValueCollection, super::super::super::Foundation::Collections::IIterable::, super::super::super::Foundation::IStringable, super::super::super::Foundation::Collections::IVector::); impl HttpMethodHeaderValueCollection { pub fn ParseAdd(&self, input: &::windows_core::HSTRING) -> ::windows_core::Result<()> { let this = self; @@ -4339,14 +3667,14 @@ impl HttpMethodHeaderValueCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ToString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ToString)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4355,7 +3683,7 @@ impl HttpMethodHeaderValueCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetAt(&self, index: u32) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetAt)(::windows_core::Interface::as_raw(this), index, &mut result__).from_abi(result__) @@ -4364,7 +3692,7 @@ impl HttpMethodHeaderValueCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Size(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Size)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4373,7 +3701,7 @@ impl HttpMethodHeaderValueCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetView(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetView)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4385,7 +3713,7 @@ impl HttpMethodHeaderValueCollection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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__).from_abi(result__) @@ -4397,7 +3725,7 @@ impl HttpMethodHeaderValueCollection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -4406,13 +3734,13 @@ impl HttpMethodHeaderValueCollection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn RemoveAt(&self, index: u32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveAt)(::windows_core::Interface::as_raw(this), index).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -4421,25 +3749,25 @@ impl HttpMethodHeaderValueCollection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn RemoveAtEnd(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveAtEnd)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Clear(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).Clear)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetMany(&self, startindex: u32, items: &mut [::core::option::Option]) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetMany)(::windows_core::Interface::as_raw(this), startindex, items.len().try_into().unwrap(), ::core::mem::transmute_copy(&items), &mut result__).from_abi(result__) @@ -4448,7 +3776,7 @@ impl HttpMethodHeaderValueCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn ReplaceAll(&self, items: &[::core::option::Option]) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).ReplaceAll)(::windows_core::Interface::as_raw(this), items.len().try_into().unwrap(), ::core::mem::transmute(items.as_ptr())).ok() } } } @@ -4457,9 +3785,7 @@ impl ::windows_core::RuntimeType for HttpMethodHeaderValueCollection { } unsafe impl ::windows_core::Interface for HttpMethodHeaderValueCollection { type Vtable = IHttpMethodHeaderValueCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HttpMethodHeaderValueCollection { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HttpMethodHeaderValueCollection { const NAME: &'static str = "Windows.Web.Http.Headers.HttpMethodHeaderValueCollection"; @@ -4477,20 +3803,16 @@ impl ::core::iter::IntoIterator for &HttpMethodHeaderValueCollection { type Item = super::HttpMethod; type IntoIter = super::super::super::Foundation::Collections::VectorIterator; fn into_iter(self) -> Self::IntoIter { - super::super::super::Foundation::Collections::VectorIterator::new(::windows_core::ComInterface::cast(self).ok()) + super::super::super::Foundation::Collections::VectorIterator::new(::windows_core::Interface::cast(self).ok()) } } -::windows_core::imp::interface_hierarchy!(HttpMethodHeaderValueCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for HttpMethodHeaderValueCollection {} -impl ::windows_core::CanTryInto for HttpMethodHeaderValueCollection {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for HttpMethodHeaderValueCollection {} unsafe impl ::core::marker::Send for HttpMethodHeaderValueCollection {} unsafe impl ::core::marker::Sync for HttpMethodHeaderValueCollection {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HttpNameValueHeaderValue(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HttpNameValueHeaderValue, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(HttpNameValueHeaderValue, super::super::super::Foundation::IStringable); impl HttpNameValueHeaderValue { pub fn Name(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -4535,7 +3857,7 @@ impl HttpNameValueHeaderValue { }) } pub fn ToString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ToString)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4557,20 +3879,18 @@ impl ::windows_core::RuntimeType for HttpNameValueHeaderValue { } unsafe impl ::windows_core::Interface for HttpNameValueHeaderValue { type Vtable = IHttpNameValueHeaderValue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HttpNameValueHeaderValue { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HttpNameValueHeaderValue { const NAME: &'static str = "Windows.Web.Http.Headers.HttpNameValueHeaderValue"; } -::windows_core::imp::interface_hierarchy!(HttpNameValueHeaderValue, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for HttpNameValueHeaderValue {} unsafe impl ::core::marker::Send for HttpNameValueHeaderValue {} unsafe impl ::core::marker::Sync for HttpNameValueHeaderValue {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HttpProductHeaderValue(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HttpProductHeaderValue, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(HttpProductHeaderValue, super::super::super::Foundation::IStringable); impl HttpProductHeaderValue { pub fn Name(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -4611,7 +3931,7 @@ impl HttpProductHeaderValue { }) } pub fn ToString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ToString)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4633,20 +3953,18 @@ impl ::windows_core::RuntimeType for HttpProductHeaderValue { } unsafe impl ::windows_core::Interface for HttpProductHeaderValue { type Vtable = IHttpProductHeaderValue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HttpProductHeaderValue { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HttpProductHeaderValue { const NAME: &'static str = "Windows.Web.Http.Headers.HttpProductHeaderValue"; } -::windows_core::imp::interface_hierarchy!(HttpProductHeaderValue, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for HttpProductHeaderValue {} unsafe impl ::core::marker::Send for HttpProductHeaderValue {} unsafe impl ::core::marker::Sync for HttpProductHeaderValue {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HttpProductInfoHeaderValue(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HttpProductInfoHeaderValue, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(HttpProductInfoHeaderValue, super::super::super::Foundation::IStringable); impl HttpProductInfoHeaderValue { pub fn Product(&self) -> ::windows_core::Result { let this = self; @@ -4687,7 +4005,7 @@ impl HttpProductInfoHeaderValue { }) } pub fn ToString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ToString)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4709,20 +4027,19 @@ impl ::windows_core::RuntimeType for HttpProductInfoHeaderValue { } unsafe impl ::windows_core::Interface for HttpProductInfoHeaderValue { type Vtable = IHttpProductInfoHeaderValue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HttpProductInfoHeaderValue { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HttpProductInfoHeaderValue { const NAME: &'static str = "Windows.Web.Http.Headers.HttpProductInfoHeaderValue"; } -::windows_core::imp::interface_hierarchy!(HttpProductInfoHeaderValue, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for HttpProductInfoHeaderValue {} unsafe impl ::core::marker::Send for HttpProductInfoHeaderValue {} unsafe impl ::core::marker::Sync for HttpProductInfoHeaderValue {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HttpProductInfoHeaderValueCollection(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HttpProductInfoHeaderValueCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(HttpProductInfoHeaderValueCollection, super::super::super::Foundation::Collections::IIterable::, super::super::super::Foundation::IStringable, super::super::super::Foundation::Collections::IVector::); impl HttpProductInfoHeaderValueCollection { pub fn ParseAdd(&self, input: &::windows_core::HSTRING) -> ::windows_core::Result<()> { let this = self; @@ -4738,14 +4055,14 @@ impl HttpProductInfoHeaderValueCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ToString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ToString)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4754,7 +4071,7 @@ impl HttpProductInfoHeaderValueCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetAt(&self, index: u32) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetAt)(::windows_core::Interface::as_raw(this), index, &mut result__).from_abi(result__) @@ -4763,7 +4080,7 @@ impl HttpProductInfoHeaderValueCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Size(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Size)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4772,7 +4089,7 @@ impl HttpProductInfoHeaderValueCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetView(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetView)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -4784,7 +4101,7 @@ impl HttpProductInfoHeaderValueCollection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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__).from_abi(result__) @@ -4796,7 +4113,7 @@ impl HttpProductInfoHeaderValueCollection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -4805,13 +4122,13 @@ impl HttpProductInfoHeaderValueCollection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn RemoveAt(&self, index: u32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveAt)(::windows_core::Interface::as_raw(this), index).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -4820,25 +4137,25 @@ impl HttpProductInfoHeaderValueCollection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn RemoveAtEnd(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveAtEnd)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Clear(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).Clear)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetMany(&self, startindex: u32, items: &mut [::core::option::Option]) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetMany)(::windows_core::Interface::as_raw(this), startindex, items.len().try_into().unwrap(), ::core::mem::transmute_copy(&items), &mut result__).from_abi(result__) @@ -4847,7 +4164,7 @@ impl HttpProductInfoHeaderValueCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn ReplaceAll(&self, items: &[::core::option::Option]) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).ReplaceAll)(::windows_core::Interface::as_raw(this), items.len().try_into().unwrap(), ::core::mem::transmute(items.as_ptr())).ok() } } } @@ -4856,9 +4173,7 @@ impl ::windows_core::RuntimeType for HttpProductInfoHeaderValueCollection { } unsafe impl ::windows_core::Interface for HttpProductInfoHeaderValueCollection { type Vtable = IHttpProductInfoHeaderValueCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HttpProductInfoHeaderValueCollection { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HttpProductInfoHeaderValueCollection { const NAME: &'static str = "Windows.Web.Http.Headers.HttpProductInfoHeaderValueCollection"; @@ -4876,20 +4191,17 @@ impl ::core::iter::IntoIterator for &HttpProductInfoHeaderValueCollection { type Item = HttpProductInfoHeaderValue; type IntoIter = super::super::super::Foundation::Collections::VectorIterator; fn into_iter(self) -> Self::IntoIter { - super::super::super::Foundation::Collections::VectorIterator::new(::windows_core::ComInterface::cast(self).ok()) + super::super::super::Foundation::Collections::VectorIterator::new(::windows_core::Interface::cast(self).ok()) } } -::windows_core::imp::interface_hierarchy!(HttpProductInfoHeaderValueCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for HttpProductInfoHeaderValueCollection {} -impl ::windows_core::CanTryInto for HttpProductInfoHeaderValueCollection {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for HttpProductInfoHeaderValueCollection {} unsafe impl ::core::marker::Send for HttpProductInfoHeaderValueCollection {} unsafe impl ::core::marker::Sync for HttpProductInfoHeaderValueCollection {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HttpRequestHeaderCollection(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HttpRequestHeaderCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(HttpRequestHeaderCollection, super::super::super::Foundation::Collections::IIterable::>, super::super::super::Foundation::Collections::IMap::<::windows_core::HSTRING, ::windows_core::HSTRING>, super::super::super::Foundation::IStringable); impl HttpRequestHeaderCollection { pub fn Accept(&self) -> ::windows_core::Result { let this = self; @@ -4956,10 +4268,10 @@ impl HttpRequestHeaderCollection { } pub fn SetDate(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetDate)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetDate)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn Expect(&self) -> ::windows_core::Result { let this = self; @@ -5006,10 +4318,10 @@ impl HttpRequestHeaderCollection { } pub fn SetIfModifiedSince(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetIfModifiedSince)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetIfModifiedSince)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn IfUnmodifiedSince(&self) -> ::windows_core::Result> { let this = self; @@ -5020,10 +4332,10 @@ impl HttpRequestHeaderCollection { } pub fn SetIfUnmodifiedSince(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetIfUnmodifiedSince)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetIfUnmodifiedSince)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn MaxForwards(&self) -> ::windows_core::Result> { let this = self; @@ -5034,10 +4346,10 @@ impl HttpRequestHeaderCollection { } pub fn SetMaxForwards(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetMaxForwards)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetMaxForwards)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn ProxyAuthorization(&self) -> ::windows_core::Result { let this = self; @@ -5095,7 +4407,7 @@ impl HttpRequestHeaderCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> ::windows_core::Result>> { - let this = &::windows_core::ComInterface::cast::>>(self)?; + let this = &::windows_core::Interface::cast::>>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5104,7 +4416,7 @@ impl HttpRequestHeaderCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Lookup(&self, key: &::windows_core::HSTRING) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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), ::core::mem::transmute_copy(key), &mut result__).from_abi(result__) @@ -5113,7 +4425,7 @@ impl HttpRequestHeaderCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Size(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Size)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5122,7 +4434,7 @@ impl HttpRequestHeaderCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn HasKey(&self, key: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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), ::core::mem::transmute_copy(key), &mut result__).from_abi(result__) @@ -5131,7 +4443,7 @@ impl HttpRequestHeaderCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetView(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetView)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5140,7 +4452,7 @@ impl HttpRequestHeaderCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Insert(&self, key: &::windows_core::HSTRING, value: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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), ::core::mem::transmute_copy(value), &mut result__).from_abi(result__) @@ -5149,17 +4461,17 @@ impl HttpRequestHeaderCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Remove(&self, key: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).Remove)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Clear(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).Clear)(::windows_core::Interface::as_raw(this)).ok() } } pub fn ToString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ToString)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5171,9 +4483,7 @@ impl ::windows_core::RuntimeType for HttpRequestHeaderCollection { } unsafe impl ::windows_core::Interface for HttpRequestHeaderCollection { type Vtable = IHttpRequestHeaderCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HttpRequestHeaderCollection { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HttpRequestHeaderCollection { const NAME: &'static str = "Windows.Web.Http.Headers.HttpRequestHeaderCollection"; @@ -5194,17 +4504,14 @@ impl ::core::iter::IntoIterator for &HttpRequestHeaderCollection { self.First().unwrap() } } -::windows_core::imp::interface_hierarchy!(HttpRequestHeaderCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto>> for HttpRequestHeaderCollection {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for HttpRequestHeaderCollection {} -impl ::windows_core::CanTryInto for HttpRequestHeaderCollection {} unsafe impl ::core::marker::Send for HttpRequestHeaderCollection {} unsafe impl ::core::marker::Sync for HttpRequestHeaderCollection {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HttpResponseHeaderCollection(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HttpResponseHeaderCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(HttpResponseHeaderCollection, super::super::super::Foundation::Collections::IIterable::>, super::super::super::Foundation::Collections::IMap::<::windows_core::HSTRING, ::windows_core::HSTRING>, super::super::super::Foundation::IStringable); impl HttpResponseHeaderCollection { pub fn Age(&self) -> ::windows_core::Result> { let this = self; @@ -5215,10 +4522,10 @@ impl HttpResponseHeaderCollection { } pub fn SetAge(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetAge)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetAge)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn Allow(&self) -> ::windows_core::Result { let this = self; @@ -5250,10 +4557,10 @@ impl HttpResponseHeaderCollection { } pub fn SetDate(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetDate)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetDate)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn Location(&self) -> ::windows_core::Result { let this = self; @@ -5318,7 +4625,7 @@ impl HttpResponseHeaderCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> ::windows_core::Result>> { - let this = &::windows_core::ComInterface::cast::>>(self)?; + let this = &::windows_core::Interface::cast::>>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5327,7 +4634,7 @@ impl HttpResponseHeaderCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Lookup(&self, key: &::windows_core::HSTRING) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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), ::core::mem::transmute_copy(key), &mut result__).from_abi(result__) @@ -5336,7 +4643,7 @@ impl HttpResponseHeaderCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Size(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Size)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5345,7 +4652,7 @@ impl HttpResponseHeaderCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn HasKey(&self, key: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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), ::core::mem::transmute_copy(key), &mut result__).from_abi(result__) @@ -5354,7 +4661,7 @@ impl HttpResponseHeaderCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetView(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetView)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5363,7 +4670,7 @@ impl HttpResponseHeaderCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Insert(&self, key: &::windows_core::HSTRING, value: &::windows_core::HSTRING) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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), ::core::mem::transmute_copy(value), &mut result__).from_abi(result__) @@ -5372,17 +4679,17 @@ impl HttpResponseHeaderCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Remove(&self, key: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).Remove)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(key)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Clear(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).Clear)(::windows_core::Interface::as_raw(this)).ok() } } pub fn ToString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ToString)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5394,9 +4701,7 @@ impl ::windows_core::RuntimeType for HttpResponseHeaderCollection { } unsafe impl ::windows_core::Interface for HttpResponseHeaderCollection { type Vtable = IHttpResponseHeaderCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HttpResponseHeaderCollection { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HttpResponseHeaderCollection { const NAME: &'static str = "Windows.Web.Http.Headers.HttpResponseHeaderCollection"; @@ -5417,17 +4722,13 @@ impl ::core::iter::IntoIterator for &HttpResponseHeaderCollection { self.First().unwrap() } } -::windows_core::imp::interface_hierarchy!(HttpResponseHeaderCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto>> for HttpResponseHeaderCollection {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for HttpResponseHeaderCollection {} -impl ::windows_core::CanTryInto for HttpResponseHeaderCollection {} unsafe impl ::core::marker::Send for HttpResponseHeaderCollection {} unsafe impl ::core::marker::Sync for HttpResponseHeaderCollection {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HttpTransferCodingHeaderValue(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HttpTransferCodingHeaderValue, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(HttpTransferCodingHeaderValue, super::super::super::Foundation::IStringable); impl HttpTransferCodingHeaderValue { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] @@ -5464,7 +4765,7 @@ impl HttpTransferCodingHeaderValue { }) } pub fn ToString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ToString)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5486,20 +4787,19 @@ impl ::windows_core::RuntimeType for HttpTransferCodingHeaderValue { } unsafe impl ::windows_core::Interface for HttpTransferCodingHeaderValue { type Vtable = IHttpTransferCodingHeaderValue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HttpTransferCodingHeaderValue { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HttpTransferCodingHeaderValue { const NAME: &'static str = "Windows.Web.Http.Headers.HttpTransferCodingHeaderValue"; } -::windows_core::imp::interface_hierarchy!(HttpTransferCodingHeaderValue, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for HttpTransferCodingHeaderValue {} unsafe impl ::core::marker::Send for HttpTransferCodingHeaderValue {} unsafe impl ::core::marker::Sync for HttpTransferCodingHeaderValue {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HttpTransferCodingHeaderValueCollection(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HttpTransferCodingHeaderValueCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(HttpTransferCodingHeaderValueCollection, super::super::super::Foundation::Collections::IIterable::, super::super::super::Foundation::IStringable, super::super::super::Foundation::Collections::IVector::); impl HttpTransferCodingHeaderValueCollection { pub fn ParseAdd(&self, input: &::windows_core::HSTRING) -> ::windows_core::Result<()> { let this = self; @@ -5515,14 +4815,14 @@ impl HttpTransferCodingHeaderValueCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ToString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ToString)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5531,7 +4831,7 @@ impl HttpTransferCodingHeaderValueCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetAt(&self, index: u32) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetAt)(::windows_core::Interface::as_raw(this), index, &mut result__).from_abi(result__) @@ -5540,7 +4840,7 @@ impl HttpTransferCodingHeaderValueCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Size(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Size)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5549,7 +4849,7 @@ impl HttpTransferCodingHeaderValueCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetView(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetView)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -5561,7 +4861,7 @@ impl HttpTransferCodingHeaderValueCollection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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__).from_abi(result__) @@ -5573,7 +4873,7 @@ impl HttpTransferCodingHeaderValueCollection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -5582,13 +4882,13 @@ impl HttpTransferCodingHeaderValueCollection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn RemoveAt(&self, index: u32) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveAt)(::windows_core::Interface::as_raw(this), index).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -5597,25 +4897,25 @@ impl HttpTransferCodingHeaderValueCollection { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::>(self)?; + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn RemoveAtEnd(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveAtEnd)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Clear(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).Clear)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn GetMany(&self, startindex: u32, items: &mut [::core::option::Option]) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetMany)(::windows_core::Interface::as_raw(this), startindex, items.len().try_into().unwrap(), ::core::mem::transmute_copy(&items), &mut result__).from_abi(result__) @@ -5624,7 +4924,7 @@ impl HttpTransferCodingHeaderValueCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn ReplaceAll(&self, items: &[::core::option::Option]) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { (::windows_core::Interface::vtable(this).ReplaceAll)(::windows_core::Interface::as_raw(this), items.len().try_into().unwrap(), ::core::mem::transmute(items.as_ptr())).ok() } } } @@ -5633,9 +4933,7 @@ impl ::windows_core::RuntimeType for HttpTransferCodingHeaderValueCollection { } unsafe impl ::windows_core::Interface for HttpTransferCodingHeaderValueCollection { type Vtable = IHttpTransferCodingHeaderValueCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HttpTransferCodingHeaderValueCollection { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HttpTransferCodingHeaderValueCollection { const NAME: &'static str = "Windows.Web.Http.Headers.HttpTransferCodingHeaderValueCollection"; @@ -5653,14 +4951,8 @@ impl ::core::iter::IntoIterator for &HttpTransferCodingHeaderValueCollection { type Item = HttpTransferCodingHeaderValue; type IntoIter = super::super::super::Foundation::Collections::VectorIterator; fn into_iter(self) -> Self::IntoIter { - super::super::super::Foundation::Collections::VectorIterator::new(::windows_core::ComInterface::cast(self).ok()) + super::super::super::Foundation::Collections::VectorIterator::new(::windows_core::Interface::cast(self).ok()) } } -::windows_core::imp::interface_hierarchy!(HttpTransferCodingHeaderValueCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for HttpTransferCodingHeaderValueCollection {} -impl ::windows_core::CanTryInto for HttpTransferCodingHeaderValueCollection {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for HttpTransferCodingHeaderValueCollection {} unsafe impl ::core::marker::Send for HttpTransferCodingHeaderValueCollection {} unsafe impl ::core::marker::Sync for HttpTransferCodingHeaderValueCollection {} diff --git a/crates/libs/windows/src/Windows/Web/Http/impl.rs b/crates/libs/windows/src/Windows/Web/Http/impl.rs index 386520d3d8..8ad5ade9fa 100644 --- a/crates/libs/windows/src/Windows/Web/Http/impl.rs +++ b/crates/libs/windows/src/Windows/Web/Http/impl.rs @@ -111,6 +111,6 @@ impl IHttpContent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/Web/Http/mod.rs b/crates/libs/windows/src/Windows/Web/Http/mod.rs index 5e0a024ebc..a35c7d01e4 100644 --- a/crates/libs/windows/src/Windows/Web/Http/mod.rs +++ b/crates/libs/windows/src/Windows/Web/Http/mod.rs @@ -7,16 +7,7 @@ pub mod Filters; #[cfg(feature = "Web_Http_Headers")] #[doc = "Required features: `\"Web_Http_Headers\"`"] pub mod Headers; -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpBufferContentFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpBufferContentFactory { - type Vtable = IHttpBufferContentFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpBufferContentFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbc20c193_c41f_4ff7_9123_6435736eadc2); -} +::windows_core::imp::com_interface!(IHttpBufferContentFactory, IHttpBufferContentFactory_Vtbl, 0xbc20c193_c41f_4ff7_9123_6435736eadc2); #[repr(C)] #[doc(hidden)] pub struct IHttpBufferContentFactory_Vtbl { @@ -30,16 +21,7 @@ pub struct IHttpBufferContentFactory_Vtbl { #[cfg(not(feature = "Storage_Streams"))] CreateFromBufferWithOffset: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpClient(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpClient { - type Vtable = IHttpClient_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpClient { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7fda1151_3574_4880_a8ba_e6b1e0061f3d); -} +::windows_core::imp::com_interface!(IHttpClient, IHttpClient_Vtbl, 0x7fda1151_3574_4880_a8ba_e6b1e0061f3d); #[repr(C)] #[doc(hidden)] pub struct IHttpClient_Vtbl { @@ -65,16 +47,7 @@ pub struct IHttpClient_Vtbl { #[cfg(not(feature = "Web_Http_Headers"))] DefaultRequestHeaders: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpClient2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpClient2 { - type Vtable = IHttpClient2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpClient2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcdd83348_e8b7_4cec_b1b0_dc455fe72c92); -} +::windows_core::imp::com_interface!(IHttpClient2, IHttpClient2_Vtbl, 0xcdd83348_e8b7_4cec_b1b0_dc455fe72c92); #[repr(C)] #[doc(hidden)] pub struct IHttpClient2_Vtbl { @@ -90,16 +63,7 @@ pub struct IHttpClient2_Vtbl { pub TrySendRequestAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, request: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub TrySendRequestAsync2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, request: *mut ::core::ffi::c_void, completionoption: HttpCompletionOption, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpClient3(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpClient3 { - type Vtable = IHttpClient3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpClient3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1172fd01_9899_4194_963f_8f9d72a7ec15); -} +::windows_core::imp::com_interface!(IHttpClient3, IHttpClient3_Vtbl, 0x1172fd01_9899_4194_963f_8f9d72a7ec15); #[repr(C)] #[doc(hidden)] pub struct IHttpClient3_Vtbl { @@ -107,16 +71,7 @@ pub struct IHttpClient3_Vtbl { pub DefaultPrivacyAnnotation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetDefaultPrivacyAnnotation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpClientFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpClientFactory { - type Vtable = IHttpClientFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpClientFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc30c4eca_e3fa_4f99_afb4_63cc65009462); -} +::windows_core::imp::com_interface!(IHttpClientFactory, IHttpClientFactory_Vtbl, 0xc30c4eca_e3fa_4f99_afb4_63cc65009462); #[repr(C)] #[doc(hidden)] pub struct IHttpClientFactory_Vtbl { @@ -126,9 +81,9 @@ pub struct IHttpClientFactory_Vtbl { #[cfg(not(feature = "Web_Http_Filters"))] Create: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpContent(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IHttpContent, IHttpContent_Vtbl, 0x6b14a441_fba7_4bd2_af0a_839de7c295da); +::windows_core::imp::interface_hierarchy!(IHttpContent, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(IHttpContent, super::super::Foundation::IClosable); impl IHttpContent { #[doc = "Required features: `\"Web_Http_Headers\"`"] #[cfg(feature = "Web_Http_Headers")] @@ -182,30 +137,22 @@ impl IHttpContent { #[cfg(feature = "Storage_Streams")] pub fn WriteToStreamAsync(&self, outputstream: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).WriteToStreamAsync)(::windows_core::Interface::as_raw(this), outputstream.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).WriteToStreamAsync)(::windows_core::Interface::as_raw(this), outputstream.into_param().abi(), &mut result__).from_abi(result__) } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } } -::windows_core::imp::interface_hierarchy!(IHttpContent, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for IHttpContent {} impl ::windows_core::RuntimeType for IHttpContent { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IHttpContent { - type Vtable = IHttpContent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpContent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6b14a441_fba7_4bd2_af0a_839de7c295da); -} #[repr(C)] #[doc(hidden)] pub struct IHttpContent_Vtbl { @@ -230,16 +177,7 @@ pub struct IHttpContent_Vtbl { #[cfg(not(feature = "Storage_Streams"))] WriteToStreamAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpCookie(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpCookie { - type Vtable = IHttpCookie_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpCookie { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1f5488e2_cc2d_4779_86a7_88f10687d249); -} +::windows_core::imp::com_interface!(IHttpCookie, IHttpCookie_Vtbl, 0x1f5488e2_cc2d_4779_86a7_88f10687d249); #[repr(C)] #[doc(hidden)] pub struct IHttpCookie_Vtbl { @@ -256,32 +194,14 @@ pub struct IHttpCookie_Vtbl { pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpCookieFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpCookieFactory { - type Vtable = IHttpCookieFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpCookieFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6a0585a9_931c_4cd1_a96d_c21701785c5f); -} +::windows_core::imp::com_interface!(IHttpCookieFactory, IHttpCookieFactory_Vtbl, 0x6a0585a9_931c_4cd1_a96d_c21701785c5f); #[repr(C)] #[doc(hidden)] pub struct IHttpCookieFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows_core::HSTRING>, domain: ::std::mem::MaybeUninit<::windows_core::HSTRING>, path: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpCookieManager(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpCookieManager { - type Vtable = IHttpCookieManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpCookieManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7a431780_cd4f_4e57_a84a_5b0a53d6bb96); -} +::windows_core::imp::com_interface!(IHttpCookieManager, IHttpCookieManager_Vtbl, 0x7a431780_cd4f_4e57_a84a_5b0a53d6bb96); #[repr(C)] #[doc(hidden)] pub struct IHttpCookieManager_Vtbl { @@ -294,16 +214,7 @@ pub struct IHttpCookieManager_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] GetCookies: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpFormUrlEncodedContentFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpFormUrlEncodedContentFactory { - type Vtable = IHttpFormUrlEncodedContentFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpFormUrlEncodedContentFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x43f0138c_2f73_4302_b5f3_eae9238a5e01); -} +::windows_core::imp::com_interface!(IHttpFormUrlEncodedContentFactory, IHttpFormUrlEncodedContentFactory_Vtbl, 0x43f0138c_2f73_4302_b5f3_eae9238a5e01); #[repr(C)] #[doc(hidden)] pub struct IHttpFormUrlEncodedContentFactory_Vtbl { @@ -313,16 +224,7 @@ pub struct IHttpFormUrlEncodedContentFactory_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] Create: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpGetBufferResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpGetBufferResult { - type Vtable = IHttpGetBufferResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpGetBufferResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x53d08e7c_e209_404e_9a49_742d8236fd3a); -} +::windows_core::imp::com_interface!(IHttpGetBufferResult, IHttpGetBufferResult_Vtbl, 0x53d08e7c_e209_404e_9a49_742d8236fd3a); #[repr(C)] #[doc(hidden)] pub struct IHttpGetBufferResult_Vtbl { @@ -336,16 +238,7 @@ pub struct IHttpGetBufferResult_Vtbl { #[cfg(not(feature = "Storage_Streams"))] Value: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpGetInputStreamResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpGetInputStreamResult { - type Vtable = IHttpGetInputStreamResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpGetInputStreamResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd5d63463_13aa_4ee0_be95_a0c39fe91203); -} +::windows_core::imp::com_interface!(IHttpGetInputStreamResult, IHttpGetInputStreamResult_Vtbl, 0xd5d63463_13aa_4ee0_be95_a0c39fe91203); #[repr(C)] #[doc(hidden)] pub struct IHttpGetInputStreamResult_Vtbl { @@ -359,16 +252,7 @@ pub struct IHttpGetInputStreamResult_Vtbl { #[cfg(not(feature = "Storage_Streams"))] Value: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpGetStringResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpGetStringResult { - type Vtable = IHttpGetStringResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpGetStringResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9bac466d_8509_4775_b16d_8953f47a7f5f); -} +::windows_core::imp::com_interface!(IHttpGetStringResult, IHttpGetStringResult_Vtbl, 0x9bac466d_8509_4775_b16d_8953f47a7f5f); #[repr(C)] #[doc(hidden)] pub struct IHttpGetStringResult_Vtbl { @@ -379,48 +263,21 @@ pub struct IHttpGetStringResult_Vtbl { pub Succeeded: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpMethod(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpMethod { - type Vtable = IHttpMethod_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpMethod { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728d4022_700d_4fe0_afa5_40299c58dbfd); -} +::windows_core::imp::com_interface!(IHttpMethod, IHttpMethod_Vtbl, 0x728d4022_700d_4fe0_afa5_40299c58dbfd); #[repr(C)] #[doc(hidden)] pub struct IHttpMethod_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Method: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpMethodFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpMethodFactory { - type Vtable = IHttpMethodFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpMethodFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3c51d10d_36d7_40f8_a86d_e759caf2f83f); -} +::windows_core::imp::com_interface!(IHttpMethodFactory, IHttpMethodFactory_Vtbl, 0x3c51d10d_36d7_40f8_a86d_e759caf2f83f); #[repr(C)] #[doc(hidden)] pub struct IHttpMethodFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, method: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpMethodStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpMethodStatics { - type Vtable = IHttpMethodStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpMethodStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x64d171f0_d99a_4153_8dc6_d68cc4cce317); -} +::windows_core::imp::com_interface!(IHttpMethodStatics, IHttpMethodStatics_Vtbl, 0x64d171f0_d99a_4153_8dc6_d68cc4cce317); #[repr(C)] #[doc(hidden)] pub struct IHttpMethodStatics_Vtbl { @@ -433,32 +290,14 @@ pub struct IHttpMethodStatics_Vtbl { pub Post: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Put: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpMultipartContent(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpMultipartContent { - type Vtable = IHttpMultipartContent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpMultipartContent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdf916aff_9926_4ac9_aaf1_e0d04ef09bb9); -} +::windows_core::imp::com_interface!(IHttpMultipartContent, IHttpMultipartContent_Vtbl, 0xdf916aff_9926_4ac9_aaf1_e0d04ef09bb9); #[repr(C)] #[doc(hidden)] pub struct IHttpMultipartContent_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Add: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, content: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpMultipartContentFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpMultipartContentFactory { - type Vtable = IHttpMultipartContentFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpMultipartContentFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7eb42e62_0222_4f20_b372_47d5db5d33b4); -} +::windows_core::imp::com_interface!(IHttpMultipartContentFactory, IHttpMultipartContentFactory_Vtbl, 0x7eb42e62_0222_4f20_b372_47d5db5d33b4); #[repr(C)] #[doc(hidden)] pub struct IHttpMultipartContentFactory_Vtbl { @@ -466,16 +305,7 @@ pub struct IHttpMultipartContentFactory_Vtbl { pub CreateWithSubtype: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, subtype: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateWithSubtypeAndBoundary: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, subtype: ::std::mem::MaybeUninit<::windows_core::HSTRING>, boundary: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpMultipartFormDataContent(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpMultipartFormDataContent { - type Vtable = IHttpMultipartFormDataContent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpMultipartFormDataContent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x64d337e2_e967_4624_b6d1_cf74604a4a42); -} +::windows_core::imp::com_interface!(IHttpMultipartFormDataContent, IHttpMultipartFormDataContent_Vtbl, 0x64d337e2_e967_4624_b6d1_cf74604a4a42); #[repr(C)] #[doc(hidden)] pub struct IHttpMultipartFormDataContent_Vtbl { @@ -484,32 +314,14 @@ pub struct IHttpMultipartFormDataContent_Vtbl { pub AddWithName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, content: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub AddWithNameAndFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, content: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows_core::HSTRING>, filename: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpMultipartFormDataContentFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpMultipartFormDataContentFactory { - type Vtable = IHttpMultipartFormDataContentFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpMultipartFormDataContentFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa04d7311_5017_4622_93a8_49b24a4fcbfc); -} +::windows_core::imp::com_interface!(IHttpMultipartFormDataContentFactory, IHttpMultipartFormDataContentFactory_Vtbl, 0xa04d7311_5017_4622_93a8_49b24a4fcbfc); #[repr(C)] #[doc(hidden)] pub struct IHttpMultipartFormDataContentFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateWithBoundary: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, boundary: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpRequestMessage(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpRequestMessage { - type Vtable = IHttpRequestMessage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpRequestMessage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf5762b3c_74d4_4811_b5dc_9f8b4e2f9abf); -} +::windows_core::imp::com_interface!(IHttpRequestMessage, IHttpRequestMessage_Vtbl, 0xf5762b3c_74d4_4811_b5dc_9f8b4e2f9abf); #[repr(C)] #[doc(hidden)] pub struct IHttpRequestMessage_Vtbl { @@ -530,16 +342,7 @@ pub struct IHttpRequestMessage_Vtbl { pub SetRequestUri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub TransportInformation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpRequestMessage2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpRequestMessage2 { - type Vtable = IHttpRequestMessage2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpRequestMessage2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc3c60489_62c2_4a3f_9554_226e7c60bd96); -} +::windows_core::imp::com_interface!(IHttpRequestMessage2, IHttpRequestMessage2_Vtbl, 0xc3c60489_62c2_4a3f_9554_226e7c60bd96); #[repr(C)] #[doc(hidden)] pub struct IHttpRequestMessage2_Vtbl { @@ -547,32 +350,14 @@ pub struct IHttpRequestMessage2_Vtbl { pub PrivacyAnnotation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetPrivacyAnnotation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpRequestMessageFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpRequestMessageFactory { - type Vtable = IHttpRequestMessageFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpRequestMessageFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5bac994e_3886_412e_aec3_52ec7f25616f); -} +::windows_core::imp::com_interface!(IHttpRequestMessageFactory, IHttpRequestMessageFactory_Vtbl, 0x5bac994e_3886_412e_aec3_52ec7f25616f); #[repr(C)] #[doc(hidden)] pub struct IHttpRequestMessageFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, method: *mut ::core::ffi::c_void, uri: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpRequestResult(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpRequestResult { - type Vtable = IHttpRequestResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpRequestResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6acf4da8_b5eb_4a35_a902_4217fbe820c5); -} +::windows_core::imp::com_interface!(IHttpRequestResult, IHttpRequestResult_Vtbl, 0x6acf4da8_b5eb_4a35_a902_4217fbe820c5); #[repr(C)] #[doc(hidden)] pub struct IHttpRequestResult_Vtbl { @@ -582,16 +367,7 @@ pub struct IHttpRequestResult_Vtbl { pub ResponseMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Succeeded: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpResponseMessage(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpResponseMessage { - type Vtable = IHttpResponseMessage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpResponseMessage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfee200fb_8664_44e0_95d9_42696199bffc); -} +::windows_core::imp::com_interface!(IHttpResponseMessage, IHttpResponseMessage_Vtbl, 0xfee200fb_8664_44e0_95d9_42696199bffc); #[repr(C)] #[doc(hidden)] pub struct IHttpResponseMessage_Vtbl { @@ -615,32 +391,14 @@ pub struct IHttpResponseMessage_Vtbl { pub SetVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: HttpVersion) -> ::windows_core::HRESULT, pub EnsureSuccessStatusCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpResponseMessageFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpResponseMessageFactory { - type Vtable = IHttpResponseMessageFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpResponseMessageFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x52a8af99_f095_43da_b60f_7cfc2bc7ea2f); -} +::windows_core::imp::com_interface!(IHttpResponseMessageFactory, IHttpResponseMessageFactory_Vtbl, 0x52a8af99_f095_43da_b60f_7cfc2bc7ea2f); #[repr(C)] #[doc(hidden)] pub struct IHttpResponseMessageFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, statuscode: HttpStatusCode, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpStreamContentFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpStreamContentFactory { - type Vtable = IHttpStreamContentFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpStreamContentFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf3e64d9d_f725_407e_942f_0eda189809f4); -} +::windows_core::imp::com_interface!(IHttpStreamContentFactory, IHttpStreamContentFactory_Vtbl, 0xf3e64d9d_f725_407e_942f_0eda189809f4); #[repr(C)] #[doc(hidden)] pub struct IHttpStreamContentFactory_Vtbl { @@ -650,16 +408,7 @@ pub struct IHttpStreamContentFactory_Vtbl { #[cfg(not(feature = "Storage_Streams"))] CreateFromInputStream: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpStringContentFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpStringContentFactory { - type Vtable = IHttpStringContentFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpStringContentFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x46649d5b_2e93_48eb_8e61_19677878e57f); -} +::windows_core::imp::com_interface!(IHttpStringContentFactory, IHttpStringContentFactory_Vtbl, 0x46649d5b_2e93_48eb_8e61_19677878e57f); #[repr(C)] #[doc(hidden)] pub struct IHttpStringContentFactory_Vtbl { @@ -674,16 +423,7 @@ pub struct IHttpStringContentFactory_Vtbl { #[cfg(not(feature = "Storage_Streams"))] CreateFromStringWithEncodingAndMediaType: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpTransportInformation(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpTransportInformation { - type Vtable = IHttpTransportInformation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpTransportInformation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x70127198_c6a7_4ed0_833a_83fd8b8f178d); -} +::windows_core::imp::com_interface!(IHttpTransportInformation, IHttpTransportInformation_Vtbl, 0x70127198_c6a7_4ed0_833a_83fd8b8f178d); #[repr(C)] #[doc(hidden)] pub struct IHttpTransportInformation_Vtbl { @@ -708,31 +448,33 @@ pub struct IHttpTransportInformation_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HttpBufferContent(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HttpBufferContent, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(HttpBufferContent, super::super::Foundation::IClosable, IHttpContent, super::super::Foundation::IStringable); impl HttpBufferContent { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn CreateFromBuffer(content: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IHttpBufferContentFactory(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateFromBuffer)(::windows_core::Interface::as_raw(this), content.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateFromBuffer)(::windows_core::Interface::as_raw(this), content.into_param().abi(), &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn CreateFromBufferWithOffset(content: P0, offset: u32, count: u32) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IHttpBufferContentFactory(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateFromBufferWithOffset)(::windows_core::Interface::as_raw(this), content.try_into_param()?.abi(), offset, count, &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateFromBufferWithOffset)(::windows_core::Interface::as_raw(this), content.into_param().abi(), offset, count, &mut result__).from_abi(result__) }) } #[doc = "Required features: `\"Web_Http_Headers\"`"] @@ -787,16 +529,16 @@ impl HttpBufferContent { #[cfg(feature = "Storage_Streams")] pub fn WriteToStreamAsync(&self, outputstream: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).WriteToStreamAsync)(::windows_core::Interface::as_raw(this), outputstream.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).WriteToStreamAsync)(::windows_core::Interface::as_raw(this), outputstream.into_param().abi(), &mut result__).from_abi(result__) } } pub fn ToString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ToString)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -813,22 +555,18 @@ impl ::windows_core::RuntimeType for HttpBufferContent { } unsafe impl ::windows_core::Interface for HttpBufferContent { type Vtable = IHttpContent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HttpBufferContent { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HttpBufferContent { const NAME: &'static str = "Windows.Web.Http.HttpBufferContent"; } -::windows_core::imp::interface_hierarchy!(HttpBufferContent, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for HttpBufferContent {} -impl ::windows_core::CanTryInto for HttpBufferContent {} -impl ::windows_core::CanTryInto for HttpBufferContent {} unsafe impl ::core::marker::Send for HttpBufferContent {} unsafe impl ::core::marker::Sync for HttpBufferContent {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HttpClient(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HttpClient, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(HttpClient, super::super::Foundation::IClosable, super::super::Foundation::IStringable); impl HttpClient { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -838,7 +576,7 @@ impl HttpClient { SHARED.call(callback) } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn DeleteAsync(&self, uri: P0) -> ::windows_core::Result> @@ -908,23 +646,23 @@ impl HttpClient { pub fn PostAsync(&self, uri: P0, content: P1) -> ::windows_core::Result> where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam, + P1: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).PostAsync)(::windows_core::Interface::as_raw(this), uri.into_param().abi(), content.into_param().abi(), &mut result__).from_abi(result__) } } pub fn PutAsync(&self, uri: P0, content: P1) -> ::windows_core::Result> where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam, + P1: ::windows_core::IntoParam, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).PutAsync)(::windows_core::Interface::as_raw(this), uri.into_param().abi(), content.into_param().abi(), &mut result__).from_abi(result__) } } pub fn SendRequestAsync(&self, request: P0) -> ::windows_core::Result> @@ -960,7 +698,7 @@ impl HttpClient { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -970,7 +708,7 @@ impl HttpClient { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -980,7 +718,7 @@ impl HttpClient { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -990,7 +728,7 @@ impl HttpClient { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -1000,7 +738,7 @@ impl HttpClient { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -1010,7 +748,7 @@ impl HttpClient { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -1019,30 +757,30 @@ impl HttpClient { pub fn TryPostAsync(&self, uri: P0, content: P1) -> ::windows_core::Result> where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam, + P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).TryPostAsync)(::windows_core::Interface::as_raw(this), uri.into_param().abi(), content.into_param().abi(), &mut result__).from_abi(result__) } } pub fn TryPutAsync(&self, uri: P0, content: P1) -> ::windows_core::Result> where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam, + P1: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).TryPutAsync)(::windows_core::Interface::as_raw(this), uri.into_param().abi(), content.into_param().abi(), &mut result__).from_abi(result__) } } pub fn TrySendRequestAsync(&self, request: P0) -> ::windows_core::Result> where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) @@ -1052,36 +790,36 @@ impl HttpClient { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn DefaultPrivacyAnnotation(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DefaultPrivacyAnnotation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetDefaultPrivacyAnnotation(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetDefaultPrivacyAnnotation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } #[doc = "Required features: `\"Web_Http_Filters\"`"] #[cfg(feature = "Web_Http_Filters")] pub fn Create(filter: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IHttpClientFactory(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).Create)(::windows_core::Interface::as_raw(this), filter.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).Create)(::windows_core::Interface::as_raw(this), filter.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn ToString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ToString)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1098,21 +836,18 @@ impl ::windows_core::RuntimeType for HttpClient { } unsafe impl ::windows_core::Interface for HttpClient { type Vtable = IHttpClient_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HttpClient { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HttpClient { const NAME: &'static str = "Windows.Web.Http.HttpClient"; } -::windows_core::imp::interface_hierarchy!(HttpClient, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for HttpClient {} -impl ::windows_core::CanTryInto for HttpClient {} unsafe impl ::core::marker::Send for HttpClient {} unsafe impl ::core::marker::Sync for HttpClient {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HttpCookie(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HttpCookie, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(HttpCookie, super::super::Foundation::IStringable); impl HttpCookie { pub fn Name(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1144,10 +879,10 @@ impl HttpCookie { } pub fn SetExpires(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetExpires)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetExpires)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn HttpOnly(&self) -> ::windows_core::Result { let this = self; @@ -1189,7 +924,7 @@ impl HttpCookie { }) } pub fn ToString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ToString)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1206,15 +941,11 @@ impl ::windows_core::RuntimeType for HttpCookie { } unsafe impl ::windows_core::Interface for HttpCookie { type Vtable = IHttpCookie_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HttpCookie { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HttpCookie { const NAME: &'static str = "Windows.Web.Http.HttpCookie"; } -::windows_core::imp::interface_hierarchy!(HttpCookie, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for HttpCookie {} unsafe impl ::core::marker::Send for HttpCookie {} unsafe impl ::core::marker::Sync for HttpCookie {} #[doc = "Required features: `\"Foundation_Collections\"`"] @@ -1223,11 +954,15 @@ unsafe impl ::core::marker::Sync for HttpCookie {} #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HttpCookieCollection(::windows_core::IUnknown); #[cfg(feature = "Foundation_Collections")] +::windows_core::imp::interface_hierarchy!(HttpCookieCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(HttpCookieCollection, super::super::Foundation::Collections::IIterable::, super::super::Foundation::Collections::IVectorView::); +#[cfg(feature = "Foundation_Collections")] impl HttpCookieCollection { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1280,10 +1015,7 @@ impl ::windows_core::RuntimeType for HttpCookieCollection { #[cfg(feature = "Foundation_Collections")] unsafe impl ::windows_core::Interface for HttpCookieCollection { type Vtable = super::super::Foundation::Collections::IVectorView_Vtbl; -} -#[cfg(feature = "Foundation_Collections")] -unsafe impl ::windows_core::ComInterface for HttpCookieCollection { - const IID: ::windows_core::GUID = as ::windows_core::ComInterface>::IID; + const IID: ::windows_core::GUID = as ::windows_core::Interface>::IID; } #[cfg(feature = "Foundation_Collections")] impl ::windows_core::RuntimeName for HttpCookieCollection { @@ -1302,22 +1034,17 @@ impl ::core::iter::IntoIterator for &HttpCookieCollection { type Item = HttpCookie; type IntoIter = super::super::Foundation::Collections::VectorViewIterator; fn into_iter(self) -> Self::IntoIter { - super::super::Foundation::Collections::VectorViewIterator::new(::windows_core::ComInterface::cast(self).ok()) + super::super::Foundation::Collections::VectorViewIterator::new(::windows_core::Interface::cast(self).ok()) } } #[cfg(feature = "Foundation_Collections")] -::windows_core::imp::interface_hierarchy!(HttpCookieCollection, ::windows_core::IUnknown, ::windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for HttpCookieCollection {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for HttpCookieCollection {} -#[cfg(feature = "Foundation_Collections")] unsafe impl ::core::marker::Send for HttpCookieCollection {} #[cfg(feature = "Foundation_Collections")] unsafe impl ::core::marker::Sync for HttpCookieCollection {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HttpCookieManager(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HttpCookieManager, ::windows_core::IUnknown, ::windows_core::IInspectable); impl HttpCookieManager { pub fn SetCookie(&self, cookie: P0) -> ::windows_core::Result where @@ -1364,22 +1091,21 @@ impl ::windows_core::RuntimeType for HttpCookieManager { } unsafe impl ::windows_core::Interface for HttpCookieManager { type Vtable = IHttpCookieManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HttpCookieManager { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HttpCookieManager { const NAME: &'static str = "Windows.Web.Http.HttpCookieManager"; } -::windows_core::imp::interface_hierarchy!(HttpCookieManager, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for HttpCookieManager {} unsafe impl ::core::marker::Sync for HttpCookieManager {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HttpFormUrlEncodedContent(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HttpFormUrlEncodedContent, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(HttpFormUrlEncodedContent, super::super::Foundation::IClosable, IHttpContent, super::super::Foundation::IStringable); impl HttpFormUrlEncodedContent { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Web_Http_Headers\"`"] @@ -1434,27 +1160,27 @@ impl HttpFormUrlEncodedContent { #[cfg(feature = "Storage_Streams")] pub fn WriteToStreamAsync(&self, outputstream: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).WriteToStreamAsync)(::windows_core::Interface::as_raw(this), outputstream.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).WriteToStreamAsync)(::windows_core::Interface::as_raw(this), outputstream.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn Create(content: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>>, + P0: ::windows_core::IntoParam>>, { Self::IHttpFormUrlEncodedContentFactory(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).Create)(::windows_core::Interface::as_raw(this), content.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).Create)(::windows_core::Interface::as_raw(this), content.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn ToString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ToString)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1471,25 +1197,21 @@ impl ::windows_core::RuntimeType for HttpFormUrlEncodedContent { } unsafe impl ::windows_core::Interface for HttpFormUrlEncodedContent { type Vtable = IHttpContent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HttpFormUrlEncodedContent { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HttpFormUrlEncodedContent { const NAME: &'static str = "Windows.Web.Http.HttpFormUrlEncodedContent"; } -::windows_core::imp::interface_hierarchy!(HttpFormUrlEncodedContent, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for HttpFormUrlEncodedContent {} -impl ::windows_core::CanTryInto for HttpFormUrlEncodedContent {} -impl ::windows_core::CanTryInto for HttpFormUrlEncodedContent {} unsafe impl ::core::marker::Send for HttpFormUrlEncodedContent {} unsafe impl ::core::marker::Sync for HttpFormUrlEncodedContent {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HttpGetBufferResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HttpGetBufferResult, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(HttpGetBufferResult, super::super::Foundation::IClosable, super::super::Foundation::IStringable); impl HttpGetBufferResult { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn ExtendedError(&self) -> ::windows_core::Result<::windows_core::HRESULT> { @@ -1530,7 +1252,7 @@ impl HttpGetBufferResult { } } pub fn ToString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ToString)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1542,24 +1264,21 @@ impl ::windows_core::RuntimeType for HttpGetBufferResult { } unsafe impl ::windows_core::Interface for HttpGetBufferResult { type Vtable = IHttpGetBufferResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HttpGetBufferResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HttpGetBufferResult { const NAME: &'static str = "Windows.Web.Http.HttpGetBufferResult"; } -::windows_core::imp::interface_hierarchy!(HttpGetBufferResult, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for HttpGetBufferResult {} -impl ::windows_core::CanTryInto for HttpGetBufferResult {} unsafe impl ::core::marker::Send for HttpGetBufferResult {} unsafe impl ::core::marker::Sync for HttpGetBufferResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HttpGetInputStreamResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HttpGetInputStreamResult, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(HttpGetInputStreamResult, super::super::Foundation::IClosable, super::super::Foundation::IStringable); impl HttpGetInputStreamResult { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn ExtendedError(&self) -> ::windows_core::Result<::windows_core::HRESULT> { @@ -1600,7 +1319,7 @@ impl HttpGetInputStreamResult { } } pub fn ToString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ToString)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1612,24 +1331,21 @@ impl ::windows_core::RuntimeType for HttpGetInputStreamResult { } unsafe impl ::windows_core::Interface for HttpGetInputStreamResult { type Vtable = IHttpGetInputStreamResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HttpGetInputStreamResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HttpGetInputStreamResult { const NAME: &'static str = "Windows.Web.Http.HttpGetInputStreamResult"; } -::windows_core::imp::interface_hierarchy!(HttpGetInputStreamResult, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for HttpGetInputStreamResult {} -impl ::windows_core::CanTryInto for HttpGetInputStreamResult {} unsafe impl ::core::marker::Send for HttpGetInputStreamResult {} unsafe impl ::core::marker::Sync for HttpGetInputStreamResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HttpGetStringResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HttpGetStringResult, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(HttpGetStringResult, super::super::Foundation::IClosable, super::super::Foundation::IStringable); impl HttpGetStringResult { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn ExtendedError(&self) -> ::windows_core::Result<::windows_core::HRESULT> { @@ -1668,7 +1384,7 @@ impl HttpGetStringResult { } } pub fn ToString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ToString)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1680,21 +1396,18 @@ impl ::windows_core::RuntimeType for HttpGetStringResult { } unsafe impl ::windows_core::Interface for HttpGetStringResult { type Vtable = IHttpGetStringResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HttpGetStringResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HttpGetStringResult { const NAME: &'static str = "Windows.Web.Http.HttpGetStringResult"; } -::windows_core::imp::interface_hierarchy!(HttpGetStringResult, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for HttpGetStringResult {} -impl ::windows_core::CanTryInto for HttpGetStringResult {} unsafe impl ::core::marker::Send for HttpGetStringResult {} unsafe impl ::core::marker::Sync for HttpGetStringResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HttpMethod(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HttpMethod, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(HttpMethod, super::super::Foundation::IStringable); impl HttpMethod { pub fn Method(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -1752,7 +1465,7 @@ impl HttpMethod { }) } pub fn ToString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ToString)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1774,20 +1487,19 @@ impl ::windows_core::RuntimeType for HttpMethod { } unsafe impl ::windows_core::Interface for HttpMethod { type Vtable = IHttpMethod_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HttpMethod { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HttpMethod { const NAME: &'static str = "Windows.Web.Http.HttpMethod"; } -::windows_core::imp::interface_hierarchy!(HttpMethod, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for HttpMethod {} unsafe impl ::core::marker::Send for HttpMethod {} unsafe impl ::core::marker::Sync for HttpMethod {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HttpMultipartContent(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HttpMultipartContent, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(HttpMultipartContent, super::super::Foundation::IClosable, IHttpContent, super::super::Foundation::Collections::IIterable::, super::super::Foundation::IStringable); impl HttpMultipartContent { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1797,7 +1509,7 @@ impl HttpMultipartContent { SHARED.call(callback) } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Web_Http_Headers\"`"] @@ -1852,20 +1564,20 @@ impl HttpMultipartContent { #[cfg(feature = "Storage_Streams")] pub fn WriteToStreamAsync(&self, outputstream: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).WriteToStreamAsync)(::windows_core::Interface::as_raw(this), outputstream.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).WriteToStreamAsync)(::windows_core::Interface::as_raw(this), outputstream.into_param().abi(), &mut result__).from_abi(result__) } } pub fn Add(&self, content: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).Add)(::windows_core::Interface::as_raw(this), content.try_into_param()?.abi()).ok() } + 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() } } pub fn CreateWithSubtype(subtype: &::windows_core::HSTRING) -> ::windows_core::Result { Self::IHttpMultipartContentFactory(|this| unsafe { @@ -1882,14 +1594,14 @@ impl HttpMultipartContent { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ToString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ToString)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1906,9 +1618,7 @@ impl ::windows_core::RuntimeType for HttpMultipartContent { } unsafe impl ::windows_core::Interface for HttpMultipartContent { type Vtable = IHttpContent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HttpMultipartContent { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HttpMultipartContent { const NAME: &'static str = "Windows.Web.Http.HttpMultipartContent"; @@ -1929,17 +1639,14 @@ impl ::core::iter::IntoIterator for &HttpMultipartContent { self.First().unwrap() } } -::windows_core::imp::interface_hierarchy!(HttpMultipartContent, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for HttpMultipartContent {} -impl ::windows_core::CanTryInto for HttpMultipartContent {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for HttpMultipartContent {} -impl ::windows_core::CanTryInto for HttpMultipartContent {} unsafe impl ::core::marker::Send for HttpMultipartContent {} unsafe impl ::core::marker::Sync for HttpMultipartContent {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HttpMultipartFormDataContent(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HttpMultipartFormDataContent, ::windows_core::IUnknown, ::windows_core::IInspectable); +#[cfg(feature = "Foundation_Collections")] +::windows_core::imp::required_hierarchy!(HttpMultipartFormDataContent, super::super::Foundation::IClosable, IHttpContent, super::super::Foundation::Collections::IIterable::, super::super::Foundation::IStringable); impl HttpMultipartFormDataContent { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1949,7 +1656,7 @@ impl HttpMultipartFormDataContent { SHARED.call(callback) } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Web_Http_Headers\"`"] @@ -2004,34 +1711,34 @@ impl HttpMultipartFormDataContent { #[cfg(feature = "Storage_Streams")] pub fn WriteToStreamAsync(&self, outputstream: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).WriteToStreamAsync)(::windows_core::Interface::as_raw(this), outputstream.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).WriteToStreamAsync)(::windows_core::Interface::as_raw(this), outputstream.into_param().abi(), &mut result__).from_abi(result__) } } pub fn Add(&self, content: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).Add)(::windows_core::Interface::as_raw(this), content.try_into_param()?.abi()).ok() } + 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() } } pub fn AddWithName(&self, content: P0, name: &::windows_core::HSTRING) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).AddWithName)(::windows_core::Interface::as_raw(this), content.try_into_param()?.abi(), ::core::mem::transmute_copy(name)).ok() } + 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() } } pub fn AddWithNameAndFileName(&self, content: P0, name: &::windows_core::HSTRING, filename: &::windows_core::HSTRING) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).AddWithNameAndFileName)(::windows_core::Interface::as_raw(this), content.try_into_param()?.abi(), ::core::mem::transmute_copy(name), ::core::mem::transmute_copy(filename)).ok() } + 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() } } pub fn CreateWithBoundary(boundary: &::windows_core::HSTRING) -> ::windows_core::Result { Self::IHttpMultipartFormDataContentFactory(|this| unsafe { @@ -2042,14 +1749,14 @@ impl HttpMultipartFormDataContent { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn First(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn ToString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ToString)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2066,9 +1773,7 @@ impl ::windows_core::RuntimeType for HttpMultipartFormDataContent { } unsafe impl ::windows_core::Interface for HttpMultipartFormDataContent { type Vtable = IHttpContent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HttpMultipartFormDataContent { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HttpMultipartFormDataContent { const NAME: &'static str = "Windows.Web.Http.HttpMultipartFormDataContent"; @@ -2089,17 +1794,13 @@ impl ::core::iter::IntoIterator for &HttpMultipartFormDataContent { self.First().unwrap() } } -::windows_core::imp::interface_hierarchy!(HttpMultipartFormDataContent, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for HttpMultipartFormDataContent {} -impl ::windows_core::CanTryInto for HttpMultipartFormDataContent {} -#[cfg(feature = "Foundation_Collections")] -impl ::windows_core::CanTryInto> for HttpMultipartFormDataContent {} -impl ::windows_core::CanTryInto for HttpMultipartFormDataContent {} unsafe impl ::core::marker::Send for HttpMultipartFormDataContent {} unsafe impl ::core::marker::Sync for HttpMultipartFormDataContent {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HttpRequestMessage(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HttpRequestMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(HttpRequestMessage, super::super::Foundation::IClosable, super::super::Foundation::IStringable); impl HttpRequestMessage { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2109,7 +1810,7 @@ impl HttpRequestMessage { SHARED.call(callback) } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Content(&self) -> ::windows_core::Result { @@ -2121,10 +1822,10 @@ impl HttpRequestMessage { } pub fn SetContent(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetContent)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetContent)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } #[doc = "Required features: `\"Web_Http_Headers\"`"] #[cfg(feature = "Web_Http_Headers")] @@ -2180,14 +1881,14 @@ impl HttpRequestMessage { } } pub fn PrivacyAnnotation(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).PrivacyAnnotation)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetPrivacyAnnotation(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetPrivacyAnnotation)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn Create(method: P0, uri: P1) -> ::windows_core::Result @@ -2201,7 +1902,7 @@ impl HttpRequestMessage { }) } pub fn ToString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ToString)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2218,24 +1919,21 @@ impl ::windows_core::RuntimeType for HttpRequestMessage { } unsafe impl ::windows_core::Interface for HttpRequestMessage { type Vtable = IHttpRequestMessage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HttpRequestMessage { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HttpRequestMessage { const NAME: &'static str = "Windows.Web.Http.HttpRequestMessage"; } -::windows_core::imp::interface_hierarchy!(HttpRequestMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for HttpRequestMessage {} -impl ::windows_core::CanTryInto for HttpRequestMessage {} unsafe impl ::core::marker::Send for HttpRequestMessage {} unsafe impl ::core::marker::Sync for HttpRequestMessage {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HttpRequestResult(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HttpRequestResult, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(HttpRequestResult, super::super::Foundation::IClosable, super::super::Foundation::IStringable); impl HttpRequestResult { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn ExtendedError(&self) -> ::windows_core::Result<::windows_core::HRESULT> { @@ -2267,7 +1965,7 @@ impl HttpRequestResult { } } pub fn ToString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ToString)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2279,21 +1977,18 @@ impl ::windows_core::RuntimeType for HttpRequestResult { } unsafe impl ::windows_core::Interface for HttpRequestResult { type Vtable = IHttpRequestResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HttpRequestResult { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HttpRequestResult { const NAME: &'static str = "Windows.Web.Http.HttpRequestResult"; } -::windows_core::imp::interface_hierarchy!(HttpRequestResult, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for HttpRequestResult {} -impl ::windows_core::CanTryInto for HttpRequestResult {} unsafe impl ::core::marker::Send for HttpRequestResult {} unsafe impl ::core::marker::Sync for HttpRequestResult {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HttpResponseMessage(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HttpResponseMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(HttpResponseMessage, super::super::Foundation::IClosable, super::super::Foundation::IStringable); impl HttpResponseMessage { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2303,7 +1998,7 @@ impl HttpResponseMessage { SHARED.call(callback) } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn Content(&self) -> ::windows_core::Result { @@ -2315,10 +2010,10 @@ impl HttpResponseMessage { } pub fn SetContent(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetContent)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetContent)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } #[doc = "Required features: `\"Web_Http_Headers\"`"] #[cfg(feature = "Web_Http_Headers")] @@ -2408,7 +2103,7 @@ impl HttpResponseMessage { }) } pub fn ToString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ToString)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2425,24 +2120,21 @@ impl ::windows_core::RuntimeType for HttpResponseMessage { } unsafe impl ::windows_core::Interface for HttpResponseMessage { type Vtable = IHttpResponseMessage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HttpResponseMessage { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HttpResponseMessage { const NAME: &'static str = "Windows.Web.Http.HttpResponseMessage"; } -::windows_core::imp::interface_hierarchy!(HttpResponseMessage, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for HttpResponseMessage {} -impl ::windows_core::CanTryInto for HttpResponseMessage {} unsafe impl ::core::marker::Send for HttpResponseMessage {} unsafe impl ::core::marker::Sync for HttpResponseMessage {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HttpStreamContent(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HttpStreamContent, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(HttpStreamContent, super::super::Foundation::IClosable, IHttpContent, super::super::Foundation::IStringable); impl HttpStreamContent { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Web_Http_Headers\"`"] @@ -2497,27 +2189,27 @@ impl HttpStreamContent { #[cfg(feature = "Storage_Streams")] pub fn WriteToStreamAsync(&self, outputstream: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).WriteToStreamAsync)(::windows_core::Interface::as_raw(this), outputstream.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).WriteToStreamAsync)(::windows_core::Interface::as_raw(this), outputstream.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn CreateFromInputStream(content: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { Self::IHttpStreamContentFactory(|this| unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CreateFromInputStream)(::windows_core::Interface::as_raw(this), content.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CreateFromInputStream)(::windows_core::Interface::as_raw(this), content.into_param().abi(), &mut result__).from_abi(result__) }) } pub fn ToString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ToString)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2534,25 +2226,21 @@ impl ::windows_core::RuntimeType for HttpStreamContent { } unsafe impl ::windows_core::Interface for HttpStreamContent { type Vtable = IHttpContent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HttpStreamContent { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HttpStreamContent { const NAME: &'static str = "Windows.Web.Http.HttpStreamContent"; } -::windows_core::imp::interface_hierarchy!(HttpStreamContent, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for HttpStreamContent {} -impl ::windows_core::CanTryInto for HttpStreamContent {} -impl ::windows_core::CanTryInto for HttpStreamContent {} unsafe impl ::core::marker::Send for HttpStreamContent {} unsafe impl ::core::marker::Sync for HttpStreamContent {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HttpStringContent(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HttpStringContent, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(HttpStringContent, super::super::Foundation::IClosable, IHttpContent, super::super::Foundation::IStringable); impl HttpStringContent { pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } #[doc = "Required features: `\"Web_Http_Headers\"`"] @@ -2607,12 +2295,12 @@ impl HttpStringContent { #[cfg(feature = "Storage_Streams")] pub fn WriteToStreamAsync(&self, outputstream: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).WriteToStreamAsync)(::windows_core::Interface::as_raw(this), outputstream.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).WriteToStreamAsync)(::windows_core::Interface::as_raw(this), outputstream.into_param().abi(), &mut result__).from_abi(result__) } } pub fn CreateFromString(content: &::windows_core::HSTRING) -> ::windows_core::Result { @@ -2638,7 +2326,7 @@ impl HttpStringContent { }) } pub fn ToString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ToString)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2655,22 +2343,18 @@ impl ::windows_core::RuntimeType for HttpStringContent { } unsafe impl ::windows_core::Interface for HttpStringContent { type Vtable = IHttpContent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HttpStringContent { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HttpStringContent { const NAME: &'static str = "Windows.Web.Http.HttpStringContent"; } -::windows_core::imp::interface_hierarchy!(HttpStringContent, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for HttpStringContent {} -impl ::windows_core::CanTryInto for HttpStringContent {} -impl ::windows_core::CanTryInto for HttpStringContent {} unsafe impl ::core::marker::Send for HttpStringContent {} unsafe impl ::core::marker::Sync for HttpStringContent {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct HttpTransportInformation(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(HttpTransportInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(HttpTransportInformation, super::super::Foundation::IStringable); impl HttpTransportInformation { #[doc = "Required features: `\"Security_Cryptography_Certificates\"`"] #[cfg(feature = "Security_Cryptography_Certificates")] @@ -2709,7 +2393,7 @@ impl HttpTransportInformation { } } pub fn ToString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ToString)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2721,15 +2405,11 @@ impl ::windows_core::RuntimeType for HttpTransportInformation { } unsafe impl ::windows_core::Interface for HttpTransportInformation { type Vtable = IHttpTransportInformation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for HttpTransportInformation { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for HttpTransportInformation { const NAME: &'static str = "Windows.Web.Http.HttpTransportInformation"; } -::windows_core::imp::interface_hierarchy!(HttpTransportInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for HttpTransportInformation {} unsafe impl ::core::marker::Send for HttpTransportInformation {} unsafe impl ::core::marker::Sync for HttpTransportInformation {} #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Web/Syndication/impl.rs b/crates/libs/windows/src/Windows/Web/Syndication/impl.rs index 2a0a9edaf0..bac9931812 100644 --- a/crates/libs/windows/src/Windows/Web/Syndication/impl.rs +++ b/crates/libs/windows/src/Windows/Web/Syndication/impl.rs @@ -137,7 +137,7 @@ impl ISyndicationClient_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Data_Xml_Dom\"`, `\"Foundation_Collections\"`"] @@ -303,7 +303,7 @@ impl ISyndicationNode_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Data_Xml_Dom\"`, `\"Foundation_Collections\"`"] @@ -385,6 +385,6 @@ impl ISyndicationText_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/Web/Syndication/mod.rs b/crates/libs/windows/src/Windows/Web/Syndication/mod.rs index 97b9b5876a..9a96843e02 100644 --- a/crates/libs/windows/src/Windows/Web/Syndication/mod.rs +++ b/crates/libs/windows/src/Windows/Web/Syndication/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyndicationAttribute(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISyndicationAttribute { - type Vtable = ISyndicationAttribute_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyndicationAttribute { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x71e8f969_526e_4001_9a91_e84f83161ab1); -} +::windows_core::imp::com_interface!(ISyndicationAttribute, ISyndicationAttribute_Vtbl, 0x71e8f969_526e_4001_9a91_e84f83161ab1); #[repr(C)] #[doc(hidden)] pub struct ISyndicationAttribute_Vtbl { @@ -19,32 +10,14 @@ pub struct ISyndicationAttribute_Vtbl { pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyndicationAttributeFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISyndicationAttributeFactory { - type Vtable = ISyndicationAttributeFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyndicationAttributeFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x624f1599_ed3e_420f_be86_640414886e4b); -} +::windows_core::imp::com_interface!(ISyndicationAttributeFactory, ISyndicationAttributeFactory_Vtbl, 0x624f1599_ed3e_420f_be86_640414886e4b); #[repr(C)] #[doc(hidden)] pub struct ISyndicationAttributeFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateSyndicationAttribute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, attributename: ::std::mem::MaybeUninit<::windows_core::HSTRING>, attributenamespace: ::std::mem::MaybeUninit<::windows_core::HSTRING>, attributevalue: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyndicationCategory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISyndicationCategory { - type Vtable = ISyndicationCategory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyndicationCategory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8715626f_0cba_4a7f_89ff_ecb5281423b6); -} +::windows_core::imp::com_interface!(ISyndicationCategory, ISyndicationCategory_Vtbl, 0x8715626f_0cba_4a7f_89ff_ecb5281423b6); #[repr(C)] #[doc(hidden)] pub struct ISyndicationCategory_Vtbl { @@ -56,16 +29,7 @@ pub struct ISyndicationCategory_Vtbl { pub Term: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetTerm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyndicationCategoryFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISyndicationCategoryFactory { - type Vtable = ISyndicationCategoryFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyndicationCategoryFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xab42802f_49e0_4525_8ab2_ab45c02528ff); -} +::windows_core::imp::com_interface!(ISyndicationCategoryFactory, ISyndicationCategoryFactory_Vtbl, 0xab42802f_49e0_4525_8ab2_ab45c02528ff); #[repr(C)] #[doc(hidden)] pub struct ISyndicationCategoryFactory_Vtbl { @@ -73,9 +37,8 @@ pub struct ISyndicationCategoryFactory_Vtbl { pub CreateSyndicationCategory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, term: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateSyndicationCategoryEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, term: ::std::mem::MaybeUninit<::windows_core::HSTRING>, scheme: ::std::mem::MaybeUninit<::windows_core::HSTRING>, label: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyndicationClient(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISyndicationClient, ISyndicationClient_Vtbl, 0x9e18a9b7_7249_4b45_b229_7df895a5a1f5); +::windows_core::imp::interface_hierarchy!(ISyndicationClient, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ISyndicationClient { #[doc = "Required features: `\"Security_Credentials\"`"] #[cfg(feature = "Security_Credentials")] @@ -161,16 +124,9 @@ impl ISyndicationClient { } } } -::windows_core::imp::interface_hierarchy!(ISyndicationClient, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for ISyndicationClient { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for ISyndicationClient { - type Vtable = ISyndicationClient_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyndicationClient { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9e18a9b7_7249_4b45_b229_7df895a5a1f5); -} #[repr(C)] #[doc(hidden)] pub struct ISyndicationClient_Vtbl { @@ -200,16 +156,7 @@ pub struct ISyndicationClient_Vtbl { pub SetRequestHeader: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows_core::HSTRING>, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub RetrieveFeedAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uri: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyndicationClientFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISyndicationClientFactory { - type Vtable = ISyndicationClientFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyndicationClientFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2ec4b32c_a79b_4114_b29a_05dffbafb9a4); -} +::windows_core::imp::com_interface!(ISyndicationClientFactory, ISyndicationClientFactory_Vtbl, 0x2ec4b32c_a79b_4114_b29a_05dffbafb9a4); #[repr(C)] #[doc(hidden)] pub struct ISyndicationClientFactory_Vtbl { @@ -219,16 +166,7 @@ pub struct ISyndicationClientFactory_Vtbl { #[cfg(not(feature = "Security_Credentials"))] CreateSyndicationClient: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyndicationContent(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISyndicationContent { - type Vtable = ISyndicationContent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyndicationContent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4641fefe_0e55_40d0_b8d0_6a2ccba9fc7c); -} +::windows_core::imp::com_interface!(ISyndicationContent, ISyndicationContent_Vtbl, 0x4641fefe_0e55_40d0_b8d0_6a2ccba9fc7c); #[repr(C)] #[doc(hidden)] pub struct ISyndicationContent_Vtbl { @@ -236,16 +174,7 @@ pub struct ISyndicationContent_Vtbl { pub SourceUri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetSourceUri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyndicationContentFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISyndicationContentFactory { - type Vtable = ISyndicationContentFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyndicationContentFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3d2fbb93_9520_4173_9388_7e2df324a8a0); -} +::windows_core::imp::com_interface!(ISyndicationContentFactory, ISyndicationContentFactory_Vtbl, 0x3d2fbb93_9520_4173_9388_7e2df324a8a0); #[repr(C)] #[doc(hidden)] pub struct ISyndicationContentFactory_Vtbl { @@ -253,32 +182,14 @@ pub struct ISyndicationContentFactory_Vtbl { pub CreateSyndicationContent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, text: ::std::mem::MaybeUninit<::windows_core::HSTRING>, r#type: SyndicationTextType, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateSyndicationContentWithSourceUri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sourceuri: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyndicationErrorStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISyndicationErrorStatics { - type Vtable = ISyndicationErrorStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyndicationErrorStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1fbb2361_45c7_4833_8aa0_be5f3b58a7f4); -} +::windows_core::imp::com_interface!(ISyndicationErrorStatics, ISyndicationErrorStatics_Vtbl, 0x1fbb2361_45c7_4833_8aa0_be5f3b58a7f4); #[repr(C)] #[doc(hidden)] pub struct ISyndicationErrorStatics_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hresult: i32, result__: *mut SyndicationErrorStatus) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyndicationFeed(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISyndicationFeed { - type Vtable = ISyndicationFeed_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyndicationFeed { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7ffe3cd2_5b66_4d62_8403_1bc10d910d6b); -} +::windows_core::imp::com_interface!(ISyndicationFeed, ISyndicationFeed_Vtbl, 0x7ffe3cd2_5b66_4d62_8403_1bc10d910d6b); #[repr(C)] #[doc(hidden)] pub struct ISyndicationFeed_Vtbl { @@ -330,32 +241,14 @@ pub struct ISyndicationFeed_Vtbl { #[cfg(not(feature = "Data_Xml_Dom"))] LoadFromXml: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyndicationFeedFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISyndicationFeedFactory { - type Vtable = ISyndicationFeedFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyndicationFeedFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x23472232_8be9_48b7_8934_6205131d9357); -} +::windows_core::imp::com_interface!(ISyndicationFeedFactory, ISyndicationFeedFactory_Vtbl, 0x23472232_8be9_48b7_8934_6205131d9357); #[repr(C)] #[doc(hidden)] pub struct ISyndicationFeedFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateSyndicationFeed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, title: ::std::mem::MaybeUninit<::windows_core::HSTRING>, subtitle: ::std::mem::MaybeUninit<::windows_core::HSTRING>, uri: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyndicationGenerator(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISyndicationGenerator { - type Vtable = ISyndicationGenerator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyndicationGenerator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9768b379_fb2b_4f6d_b41c_088a5868825c); -} +::windows_core::imp::com_interface!(ISyndicationGenerator, ISyndicationGenerator_Vtbl, 0x9768b379_fb2b_4f6d_b41c_088a5868825c); #[repr(C)] #[doc(hidden)] pub struct ISyndicationGenerator_Vtbl { @@ -367,32 +260,14 @@ pub struct ISyndicationGenerator_Vtbl { pub Version: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyndicationGeneratorFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISyndicationGeneratorFactory { - type Vtable = ISyndicationGeneratorFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyndicationGeneratorFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa34083e3_1e26_4dbc_ba9d_1ab84beff97b); -} +::windows_core::imp::com_interface!(ISyndicationGeneratorFactory, ISyndicationGeneratorFactory_Vtbl, 0xa34083e3_1e26_4dbc_ba9d_1ab84beff97b); #[repr(C)] #[doc(hidden)] pub struct ISyndicationGeneratorFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateSyndicationGenerator: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, text: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyndicationItem(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISyndicationItem { - type Vtable = ISyndicationItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyndicationItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x548db883_c384_45c1_8ae8_a378c4ec486c); -} +::windows_core::imp::com_interface!(ISyndicationItem, ISyndicationItem_Vtbl, 0x548db883_c384_45c1_8ae8_a378c4ec486c); #[repr(C)] #[doc(hidden)] pub struct ISyndicationItem_Vtbl { @@ -441,32 +316,14 @@ pub struct ISyndicationItem_Vtbl { #[cfg(not(feature = "Data_Xml_Dom"))] LoadFromXml: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyndicationItemFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISyndicationItemFactory { - type Vtable = ISyndicationItemFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyndicationItemFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x251d434f_7db8_487a_85e4_10d191e66ebb); -} +::windows_core::imp::com_interface!(ISyndicationItemFactory, ISyndicationItemFactory_Vtbl, 0x251d434f_7db8_487a_85e4_10d191e66ebb); #[repr(C)] #[doc(hidden)] pub struct ISyndicationItemFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateSyndicationItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, title: ::std::mem::MaybeUninit<::windows_core::HSTRING>, content: *mut ::core::ffi::c_void, uri: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyndicationLink(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISyndicationLink { - type Vtable = ISyndicationLink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyndicationLink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x27553abd_a10e_41b5_86bd_9759086eb0c5); -} +::windows_core::imp::com_interface!(ISyndicationLink, ISyndicationLink_Vtbl, 0x27553abd_a10e_41b5_86bd_9759086eb0c5); #[repr(C)] #[doc(hidden)] pub struct ISyndicationLink_Vtbl { @@ -484,16 +341,7 @@ pub struct ISyndicationLink_Vtbl { pub ResourceLanguage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetResourceLanguage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyndicationLinkFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISyndicationLinkFactory { - type Vtable = ISyndicationLinkFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyndicationLinkFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5ed863d4_5535_48ac_98d4_c190995080b3); -} +::windows_core::imp::com_interface!(ISyndicationLinkFactory, ISyndicationLinkFactory_Vtbl, 0x5ed863d4_5535_48ac_98d4_c190995080b3); #[repr(C)] #[doc(hidden)] pub struct ISyndicationLinkFactory_Vtbl { @@ -501,9 +349,8 @@ pub struct ISyndicationLinkFactory_Vtbl { pub CreateSyndicationLink: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uri: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateSyndicationLinkEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uri: *mut ::core::ffi::c_void, relationship: ::std::mem::MaybeUninit<::windows_core::HSTRING>, title: ::std::mem::MaybeUninit<::windows_core::HSTRING>, mediatype: ::std::mem::MaybeUninit<::windows_core::HSTRING>, length: u32, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyndicationNode(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISyndicationNode, ISyndicationNode_Vtbl, 0x753cef78_51f8_45c0_a9f5_f1719dec3fb2); +::windows_core::imp::interface_hierarchy!(ISyndicationNode, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ISyndicationNode { pub fn NodeName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -591,16 +438,9 @@ impl ISyndicationNode { } } } -::windows_core::imp::interface_hierarchy!(ISyndicationNode, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for ISyndicationNode { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for ISyndicationNode { - type Vtable = ISyndicationNode_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyndicationNode { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x753cef78_51f8_45c0_a9f5_f1719dec3fb2); -} #[repr(C)] #[doc(hidden)] pub struct ISyndicationNode_Vtbl { @@ -628,32 +468,14 @@ pub struct ISyndicationNode_Vtbl { #[cfg(not(feature = "Data_Xml_Dom"))] GetXmlDocument: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyndicationNodeFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISyndicationNodeFactory { - type Vtable = ISyndicationNodeFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyndicationNodeFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x12902188_4acb_49a8_b777_a5eb92e18a79); -} +::windows_core::imp::com_interface!(ISyndicationNodeFactory, ISyndicationNodeFactory_Vtbl, 0x12902188_4acb_49a8_b777_a5eb92e18a79); #[repr(C)] #[doc(hidden)] pub struct ISyndicationNodeFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateSyndicationNode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nodename: ::std::mem::MaybeUninit<::windows_core::HSTRING>, nodenamespace: ::std::mem::MaybeUninit<::windows_core::HSTRING>, nodevalue: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyndicationPerson(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISyndicationPerson { - type Vtable = ISyndicationPerson_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyndicationPerson { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfa1ee5da_a7c6_4517_a096_0143faf29327); -} +::windows_core::imp::com_interface!(ISyndicationPerson, ISyndicationPerson_Vtbl, 0xfa1ee5da_a7c6_4517_a096_0143faf29327); #[repr(C)] #[doc(hidden)] pub struct ISyndicationPerson_Vtbl { @@ -665,16 +487,7 @@ pub struct ISyndicationPerson_Vtbl { pub Uri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetUri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyndicationPersonFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISyndicationPersonFactory { - type Vtable = ISyndicationPersonFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyndicationPersonFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdcf4886d_229d_4b58_a49b_f3d2f0f5c99f); -} +::windows_core::imp::com_interface!(ISyndicationPersonFactory, ISyndicationPersonFactory_Vtbl, 0xdcf4886d_229d_4b58_a49b_f3d2f0f5c99f); #[repr(C)] #[doc(hidden)] pub struct ISyndicationPersonFactory_Vtbl { @@ -682,9 +495,9 @@ pub struct ISyndicationPersonFactory_Vtbl { pub CreateSyndicationPerson: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateSyndicationPersonEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows_core::HSTRING>, email: ::std::mem::MaybeUninit<::windows_core::HSTRING>, uri: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyndicationText(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISyndicationText, ISyndicationText_Vtbl, 0xb9cc5e80_313a_4091_a2a6_243e0ee923f9); +::windows_core::imp::interface_hierarchy!(ISyndicationText, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(ISyndicationText, ISyndicationNode); impl ISyndicationText { pub fn Text(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -727,51 +540,51 @@ impl ISyndicationText { unsafe { (::windows_core::Interface::vtable(this).SetXml)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn NodeName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetNodeName(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetNodeName)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn NodeNamespace(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeNamespace)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetNodeNamespace(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetNodeNamespace)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn NodeValue(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeValue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetNodeValue(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetNodeValue)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn Language(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Language)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetLanguage(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetLanguage)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn BaseUri(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).BaseUri)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -781,13 +594,13 @@ impl ISyndicationText { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn AttributeExtensions(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AttributeExtensions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -796,7 +609,7 @@ impl ISyndicationText { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn ElementExtensions(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ElementExtensions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -805,24 +618,16 @@ impl ISyndicationText { #[doc = "Required features: `\"Data_Xml_Dom\"`"] #[cfg(feature = "Data_Xml_Dom")] pub fn GetXmlDocument(&self, format: SyndicationFormat) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetXmlDocument)(::windows_core::Interface::as_raw(this), format, &mut result__).from_abi(result__) } } } -::windows_core::imp::interface_hierarchy!(ISyndicationText, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for ISyndicationText {} impl ::windows_core::RuntimeType for ISyndicationText { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for ISyndicationText { - type Vtable = ISyndicationText_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyndicationText { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb9cc5e80_313a_4091_a2a6_243e0ee923f9); -} #[repr(C)] #[doc(hidden)] pub struct ISyndicationText_Vtbl { @@ -840,16 +645,7 @@ pub struct ISyndicationText_Vtbl { #[cfg(not(feature = "Data_Xml_Dom"))] SetXml: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyndicationTextFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISyndicationTextFactory { - type Vtable = ISyndicationTextFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyndicationTextFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xee7342f7_11c6_4b25_ab62_e596bd162946); -} +::windows_core::imp::com_interface!(ISyndicationTextFactory, ISyndicationTextFactory_Vtbl, 0xee7342f7_11c6_4b25_ab62_e596bd162946); #[repr(C)] #[doc(hidden)] pub struct ISyndicationTextFactory_Vtbl { @@ -860,6 +656,7 @@ pub struct ISyndicationTextFactory_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SyndicationAttribute(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SyndicationAttribute, ::windows_core::IUnknown, ::windows_core::IInspectable); impl SyndicationAttribute { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -918,19 +715,18 @@ impl ::windows_core::RuntimeType for SyndicationAttribute { } unsafe impl ::windows_core::Interface for SyndicationAttribute { type Vtable = ISyndicationAttribute_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SyndicationAttribute { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SyndicationAttribute { const NAME: &'static str = "Windows.Web.Syndication.SyndicationAttribute"; } -::windows_core::imp::interface_hierarchy!(SyndicationAttribute, ::windows_core::IUnknown, ::windows_core::IInspectable); unsafe impl ::core::marker::Send for SyndicationAttribute {} unsafe impl ::core::marker::Sync for SyndicationAttribute {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SyndicationCategory(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SyndicationCategory, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(SyndicationCategory, ISyndicationNode); impl SyndicationCategory { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -985,51 +781,51 @@ impl SyndicationCategory { }) } pub fn NodeName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetNodeName(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetNodeName)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn NodeNamespace(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeNamespace)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetNodeNamespace(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetNodeNamespace)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn NodeValue(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeValue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetNodeValue(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetNodeValue)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn Language(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Language)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetLanguage(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetLanguage)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn BaseUri(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).BaseUri)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1039,13 +835,13 @@ impl SyndicationCategory { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn AttributeExtensions(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AttributeExtensions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1054,7 +850,7 @@ impl SyndicationCategory { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn ElementExtensions(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ElementExtensions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1063,7 +859,7 @@ impl SyndicationCategory { #[doc = "Required features: `\"Data_Xml_Dom\"`"] #[cfg(feature = "Data_Xml_Dom")] pub fn GetXmlDocument(&self, format: SyndicationFormat) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetXmlDocument)(::windows_core::Interface::as_raw(this), format, &mut result__).from_abi(result__) @@ -1080,20 +876,18 @@ impl ::windows_core::RuntimeType for SyndicationCategory { } unsafe impl ::windows_core::Interface for SyndicationCategory { type Vtable = ISyndicationCategory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SyndicationCategory { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SyndicationCategory { const NAME: &'static str = "Windows.Web.Syndication.SyndicationCategory"; } -::windows_core::imp::interface_hierarchy!(SyndicationCategory, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for SyndicationCategory {} unsafe impl ::core::marker::Send for SyndicationCategory {} unsafe impl ::core::marker::Sync for SyndicationCategory {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SyndicationClient(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SyndicationClient, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(SyndicationClient, ISyndicationClient); impl SyndicationClient { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1207,20 +1001,18 @@ impl ::windows_core::RuntimeType for SyndicationClient { } unsafe impl ::windows_core::Interface for SyndicationClient { type Vtable = ISyndicationClient_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SyndicationClient { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SyndicationClient { const NAME: &'static str = "Windows.Web.Syndication.SyndicationClient"; } -::windows_core::imp::interface_hierarchy!(SyndicationClient, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for SyndicationClient {} unsafe impl ::core::marker::Send for SyndicationClient {} unsafe impl ::core::marker::Sync for SyndicationClient {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SyndicationContent(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SyndicationContent, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(SyndicationContent, ISyndicationNode, ISyndicationText); impl SyndicationContent { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1259,51 +1051,51 @@ impl SyndicationContent { }) } pub fn NodeName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetNodeName(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetNodeName)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn NodeNamespace(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeNamespace)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetNodeNamespace(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetNodeNamespace)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn NodeValue(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeValue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetNodeValue(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetNodeValue)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn Language(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Language)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetLanguage(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetLanguage)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn BaseUri(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).BaseUri)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1313,13 +1105,13 @@ impl SyndicationContent { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn AttributeExtensions(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AttributeExtensions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1328,7 +1120,7 @@ impl SyndicationContent { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn ElementExtensions(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ElementExtensions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1337,38 +1129,38 @@ impl SyndicationContent { #[doc = "Required features: `\"Data_Xml_Dom\"`"] #[cfg(feature = "Data_Xml_Dom")] pub fn GetXmlDocument(&self, format: SyndicationFormat) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetXmlDocument)(::windows_core::Interface::as_raw(this), format, &mut result__).from_abi(result__) } } pub fn Text(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Text)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetText(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetText)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn Type(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Type)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetType(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetType)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } #[doc = "Required features: `\"Data_Xml_Dom\"`"] #[cfg(feature = "Data_Xml_Dom")] pub fn Xml(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Xml)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1380,7 +1172,7 @@ impl SyndicationContent { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } #[doc(hidden)] @@ -1394,16 +1186,11 @@ impl ::windows_core::RuntimeType for SyndicationContent { } unsafe impl ::windows_core::Interface for SyndicationContent { type Vtable = ISyndicationContent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SyndicationContent { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SyndicationContent { const NAME: &'static str = "Windows.Web.Syndication.SyndicationContent"; } -::windows_core::imp::interface_hierarchy!(SyndicationContent, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for SyndicationContent {} -impl ::windows_core::CanTryInto for SyndicationContent {} unsafe impl ::core::marker::Send for SyndicationContent {} unsafe impl ::core::marker::Sync for SyndicationContent {} pub struct SyndicationError; @@ -1426,6 +1213,8 @@ impl ::windows_core::RuntimeName for SyndicationError { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SyndicationFeed(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SyndicationFeed, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(SyndicationFeed, ISyndicationNode); impl SyndicationFeed { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1552,10 +1341,10 @@ impl SyndicationFeed { } pub fn SetRights(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetRights)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetRights)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn Subtitle(&self) -> ::windows_core::Result { let this = self; @@ -1566,10 +1355,10 @@ impl SyndicationFeed { } pub fn SetSubtitle(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetSubtitle)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetSubtitle)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn Title(&self) -> ::windows_core::Result { let this = self; @@ -1580,10 +1369,10 @@ impl SyndicationFeed { } pub fn SetTitle(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetTitle)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetTitle)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn FirstUri(&self) -> ::windows_core::Result { let this = self; @@ -1643,51 +1432,51 @@ impl SyndicationFeed { }) } pub fn NodeName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetNodeName(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetNodeName)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn NodeNamespace(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeNamespace)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetNodeNamespace(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetNodeNamespace)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn NodeValue(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeValue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetNodeValue(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetNodeValue)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn Language(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Language)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetLanguage(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetLanguage)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn BaseUri(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).BaseUri)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1697,13 +1486,13 @@ impl SyndicationFeed { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn AttributeExtensions(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AttributeExtensions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1712,7 +1501,7 @@ impl SyndicationFeed { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn ElementExtensions(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ElementExtensions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1721,7 +1510,7 @@ impl SyndicationFeed { #[doc = "Required features: `\"Data_Xml_Dom\"`"] #[cfg(feature = "Data_Xml_Dom")] pub fn GetXmlDocument(&self, format: SyndicationFormat) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetXmlDocument)(::windows_core::Interface::as_raw(this), format, &mut result__).from_abi(result__) @@ -1738,20 +1527,18 @@ impl ::windows_core::RuntimeType for SyndicationFeed { } unsafe impl ::windows_core::Interface for SyndicationFeed { type Vtable = ISyndicationFeed_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SyndicationFeed { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SyndicationFeed { const NAME: &'static str = "Windows.Web.Syndication.SyndicationFeed"; } -::windows_core::imp::interface_hierarchy!(SyndicationFeed, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for SyndicationFeed {} unsafe impl ::core::marker::Send for SyndicationFeed {} unsafe impl ::core::marker::Sync for SyndicationFeed {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SyndicationGenerator(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SyndicationGenerator, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(SyndicationGenerator, ISyndicationNode); impl SyndicationGenerator { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1803,51 +1590,51 @@ impl SyndicationGenerator { }) } pub fn NodeName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetNodeName(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetNodeName)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn NodeNamespace(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeNamespace)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetNodeNamespace(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetNodeNamespace)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn NodeValue(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeValue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetNodeValue(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetNodeValue)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn Language(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Language)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetLanguage(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetLanguage)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn BaseUri(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).BaseUri)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1857,13 +1644,13 @@ impl SyndicationGenerator { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn AttributeExtensions(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AttributeExtensions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1872,7 +1659,7 @@ impl SyndicationGenerator { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn ElementExtensions(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ElementExtensions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1881,7 +1668,7 @@ impl SyndicationGenerator { #[doc = "Required features: `\"Data_Xml_Dom\"`"] #[cfg(feature = "Data_Xml_Dom")] pub fn GetXmlDocument(&self, format: SyndicationFormat) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetXmlDocument)(::windows_core::Interface::as_raw(this), format, &mut result__).from_abi(result__) @@ -1898,20 +1685,18 @@ impl ::windows_core::RuntimeType for SyndicationGenerator { } unsafe impl ::windows_core::Interface for SyndicationGenerator { type Vtable = ISyndicationGenerator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SyndicationGenerator { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SyndicationGenerator { const NAME: &'static str = "Windows.Web.Syndication.SyndicationGenerator"; } -::windows_core::imp::interface_hierarchy!(SyndicationGenerator, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for SyndicationGenerator {} unsafe impl ::core::marker::Send for SyndicationGenerator {} unsafe impl ::core::marker::Sync for SyndicationGenerator {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SyndicationItem(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SyndicationItem, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(SyndicationItem, ISyndicationNode); impl SyndicationItem { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2012,10 +1797,10 @@ impl SyndicationItem { } pub fn SetRights(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetRights)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetRights)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn Source(&self) -> ::windows_core::Result { let this = self; @@ -2040,10 +1825,10 @@ impl SyndicationItem { } pub fn SetSummary(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetSummary)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetSummary)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn Title(&self) -> ::windows_core::Result { let this = self; @@ -2054,10 +1839,10 @@ impl SyndicationItem { } pub fn SetTitle(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).SetTitle)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).SetTitle)(::windows_core::Interface::as_raw(this), value.into_param().abi()).ok() } } pub fn CommentsUri(&self) -> ::windows_core::Result { let this = self; @@ -2125,51 +1910,51 @@ impl SyndicationItem { }) } pub fn NodeName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetNodeName(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetNodeName)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn NodeNamespace(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeNamespace)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetNodeNamespace(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetNodeNamespace)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn NodeValue(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeValue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetNodeValue(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetNodeValue)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn Language(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Language)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetLanguage(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetLanguage)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn BaseUri(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).BaseUri)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2179,13 +1964,13 @@ impl SyndicationItem { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn AttributeExtensions(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AttributeExtensions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2194,7 +1979,7 @@ impl SyndicationItem { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn ElementExtensions(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ElementExtensions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2203,7 +1988,7 @@ impl SyndicationItem { #[doc = "Required features: `\"Data_Xml_Dom\"`"] #[cfg(feature = "Data_Xml_Dom")] pub fn GetXmlDocument(&self, format: SyndicationFormat) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetXmlDocument)(::windows_core::Interface::as_raw(this), format, &mut result__).from_abi(result__) @@ -2220,20 +2005,18 @@ impl ::windows_core::RuntimeType for SyndicationItem { } unsafe impl ::windows_core::Interface for SyndicationItem { type Vtable = ISyndicationItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SyndicationItem { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SyndicationItem { const NAME: &'static str = "Windows.Web.Syndication.SyndicationItem"; } -::windows_core::imp::interface_hierarchy!(SyndicationItem, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for SyndicationItem {} unsafe impl ::core::marker::Send for SyndicationItem {} unsafe impl ::core::marker::Sync for SyndicationItem {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SyndicationLink(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SyndicationLink, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(SyndicationLink, ISyndicationNode); impl SyndicationLink { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2330,51 +2113,51 @@ impl SyndicationLink { }) } pub fn NodeName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetNodeName(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetNodeName)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn NodeNamespace(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeNamespace)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetNodeNamespace(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetNodeNamespace)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn NodeValue(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeValue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetNodeValue(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetNodeValue)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn Language(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Language)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetLanguage(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetLanguage)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn BaseUri(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).BaseUri)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2384,13 +2167,13 @@ impl SyndicationLink { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn AttributeExtensions(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AttributeExtensions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2399,7 +2182,7 @@ impl SyndicationLink { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn ElementExtensions(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ElementExtensions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2408,7 +2191,7 @@ impl SyndicationLink { #[doc = "Required features: `\"Data_Xml_Dom\"`"] #[cfg(feature = "Data_Xml_Dom")] pub fn GetXmlDocument(&self, format: SyndicationFormat) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetXmlDocument)(::windows_core::Interface::as_raw(this), format, &mut result__).from_abi(result__) @@ -2425,20 +2208,18 @@ impl ::windows_core::RuntimeType for SyndicationLink { } unsafe impl ::windows_core::Interface for SyndicationLink { type Vtable = ISyndicationLink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SyndicationLink { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SyndicationLink { const NAME: &'static str = "Windows.Web.Syndication.SyndicationLink"; } -::windows_core::imp::interface_hierarchy!(SyndicationLink, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for SyndicationLink {} unsafe impl ::core::marker::Send for SyndicationLink {} unsafe impl ::core::marker::Sync for SyndicationLink {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SyndicationNode(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SyndicationNode, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(SyndicationNode, ISyndicationNode); impl SyndicationNode { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2549,20 +2330,18 @@ impl ::windows_core::RuntimeType for SyndicationNode { } unsafe impl ::windows_core::Interface for SyndicationNode { type Vtable = ISyndicationNode_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SyndicationNode { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SyndicationNode { const NAME: &'static str = "Windows.Web.Syndication.SyndicationNode"; } -::windows_core::imp::interface_hierarchy!(SyndicationNode, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for SyndicationNode {} unsafe impl ::core::marker::Send for SyndicationNode {} unsafe impl ::core::marker::Sync for SyndicationNode {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SyndicationPerson(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SyndicationPerson, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(SyndicationPerson, ISyndicationNode); impl SyndicationPerson { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2572,51 +2351,51 @@ impl SyndicationPerson { SHARED.call(callback) } pub fn NodeName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetNodeName(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetNodeName)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn NodeNamespace(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeNamespace)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetNodeNamespace(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetNodeNamespace)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn NodeValue(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeValue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetNodeValue(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetNodeValue)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn Language(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Language)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetLanguage(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetLanguage)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn BaseUri(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).BaseUri)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2626,13 +2405,13 @@ impl SyndicationPerson { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn AttributeExtensions(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AttributeExtensions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2641,7 +2420,7 @@ impl SyndicationPerson { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn ElementExtensions(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ElementExtensions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2650,7 +2429,7 @@ impl SyndicationPerson { #[doc = "Required features: `\"Data_Xml_Dom\"`"] #[cfg(feature = "Data_Xml_Dom")] pub fn GetXmlDocument(&self, format: SyndicationFormat) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetXmlDocument)(::windows_core::Interface::as_raw(this), format, &mut result__).from_abi(result__) @@ -2718,20 +2497,18 @@ impl ::windows_core::RuntimeType for SyndicationPerson { } unsafe impl ::windows_core::Interface for SyndicationPerson { type Vtable = ISyndicationPerson_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SyndicationPerson { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SyndicationPerson { const NAME: &'static str = "Windows.Web.Syndication.SyndicationPerson"; } -::windows_core::imp::interface_hierarchy!(SyndicationPerson, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for SyndicationPerson {} unsafe impl ::core::marker::Send for SyndicationPerson {} unsafe impl ::core::marker::Sync for SyndicationPerson {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct SyndicationText(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(SyndicationText, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(SyndicationText, ISyndicationNode, ISyndicationText); impl SyndicationText { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2741,51 +2518,51 @@ impl SyndicationText { SHARED.call(callback) } pub fn NodeName(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeName)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetNodeName(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetNodeName)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn NodeNamespace(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeNamespace)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetNodeNamespace(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetNodeNamespace)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn NodeValue(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NodeValue)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetNodeValue(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetNodeValue)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn Language(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Language)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetLanguage(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetLanguage)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(value)).ok() } } pub fn BaseUri(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).BaseUri)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2795,13 +2572,13 @@ impl SyndicationText { where P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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() } } #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn AttributeExtensions(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AttributeExtensions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2810,7 +2587,7 @@ impl SyndicationText { #[doc = "Required features: `\"Foundation_Collections\"`"] #[cfg(feature = "Foundation_Collections")] pub fn ElementExtensions(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ElementExtensions)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -2819,7 +2596,7 @@ impl SyndicationText { #[doc = "Required features: `\"Data_Xml_Dom\"`"] #[cfg(feature = "Data_Xml_Dom")] pub fn GetXmlDocument(&self, format: SyndicationFormat) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetXmlDocument)(::windows_core::Interface::as_raw(this), format, &mut result__).from_abi(result__) @@ -2888,16 +2665,11 @@ impl ::windows_core::RuntimeType for SyndicationText { } unsafe impl ::windows_core::Interface for SyndicationText { type Vtable = ISyndicationText_Vtbl; -} -unsafe impl ::windows_core::ComInterface for SyndicationText { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for SyndicationText { const NAME: &'static str = "Windows.Web.Syndication.SyndicationText"; } -::windows_core::imp::interface_hierarchy!(SyndicationText, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for SyndicationText {} -impl ::windows_core::CanTryInto for SyndicationText {} unsafe impl ::core::marker::Send for SyndicationText {} unsafe impl ::core::marker::Sync for SyndicationText {} #[repr(transparent)] 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 8033031f95..00df981517 100644 --- a/crates/libs/windows/src/Windows/Web/UI/Interop/mod.rs +++ b/crates/libs/windows/src/Windows/Web/UI/Interop/mod.rs @@ -1,13 +1,4 @@ -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebViewControlAcceleratorKeyPressedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebViewControlAcceleratorKeyPressedEventArgs { - type Vtable = IWebViewControlAcceleratorKeyPressedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebViewControlAcceleratorKeyPressedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x77a2a53e_7c74_437d_a290_3ac0d8cd5655); -} +::windows_core::imp::com_interface!(IWebViewControlAcceleratorKeyPressedEventArgs, IWebViewControlAcceleratorKeyPressedEventArgs_Vtbl, 0x77a2a53e_7c74_437d_a290_3ac0d8cd5655); #[repr(C)] #[doc(hidden)] pub struct IWebViewControlAcceleratorKeyPressedEventArgs_Vtbl { @@ -28,32 +19,14 @@ pub struct IWebViewControlAcceleratorKeyPressedEventArgs_Vtbl { pub Handled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetHandled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebViewControlMoveFocusRequestedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebViewControlMoveFocusRequestedEventArgs { - type Vtable = IWebViewControlMoveFocusRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebViewControlMoveFocusRequestedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6b2a340d_4bd0_405e_b7c1_1e72a492f446); -} +::windows_core::imp::com_interface!(IWebViewControlMoveFocusRequestedEventArgs, IWebViewControlMoveFocusRequestedEventArgs_Vtbl, 0x6b2a340d_4bd0_405e_b7c1_1e72a492f446); #[repr(C)] #[doc(hidden)] pub struct IWebViewControlMoveFocusRequestedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Reason: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut WebViewControlMoveFocusReason) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebViewControlProcess(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebViewControlProcess { - type Vtable = IWebViewControlProcess_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebViewControlProcess { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x02c723ec_98d6_424a_b63e_c6136c36a0f2); -} +::windows_core::imp::com_interface!(IWebViewControlProcess, IWebViewControlProcess_Vtbl, 0x02c723ec_98d6_424a_b63e_c6136c36a0f2); #[repr(C)] #[doc(hidden)] pub struct IWebViewControlProcess_Vtbl { @@ -70,32 +43,14 @@ pub struct IWebViewControlProcess_Vtbl { pub ProcessExited: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveProcessExited: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebViewControlProcessFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebViewControlProcessFactory { - type Vtable = IWebViewControlProcessFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebViewControlProcessFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x47b65cf9_a2d2_453c_b097_f6779d4b8e02); -} +::windows_core::imp::com_interface!(IWebViewControlProcessFactory, IWebViewControlProcessFactory_Vtbl, 0x47b65cf9_a2d2_453c_b097_f6779d4b8e02); #[repr(C)] #[doc(hidden)] pub struct IWebViewControlProcessFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateWithOptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, processoptions: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebViewControlProcessOptions(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebViewControlProcessOptions { - type Vtable = IWebViewControlProcessOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebViewControlProcessOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1cca72a7_3bd6_4826_8261_6c8189505d89); -} +::windows_core::imp::com_interface!(IWebViewControlProcessOptions, IWebViewControlProcessOptions_Vtbl, 0x1cca72a7_3bd6_4826_8261_6c8189505d89); #[repr(C)] #[doc(hidden)] pub struct IWebViewControlProcessOptions_Vtbl { @@ -105,16 +60,7 @@ pub struct IWebViewControlProcessOptions_Vtbl { pub SetPrivateNetworkClientServerCapability: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: WebViewControlProcessCapabilityState) -> ::windows_core::HRESULT, pub PrivateNetworkClientServerCapability: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut WebViewControlProcessCapabilityState) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebViewControlSite(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebViewControlSite { - type Vtable = IWebViewControlSite_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebViewControlSite { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x133f47c6_12dc_4898_bd47_04967de648ba); -} +::windows_core::imp::com_interface!(IWebViewControlSite, IWebViewControlSite_Vtbl, 0x133f47c6_12dc_4898_bd47_04967de648ba); #[repr(C)] #[doc(hidden)] pub struct IWebViewControlSite_Vtbl { @@ -133,16 +79,7 @@ pub struct IWebViewControlSite_Vtbl { pub AcceleratorKeyPressed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveAcceleratorKeyPressed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebViewControlSite2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebViewControlSite2 { - type Vtable = IWebViewControlSite2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebViewControlSite2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd13b2e3f_48ee_4730_8243_d2ed0c05606a); -} +::windows_core::imp::com_interface!(IWebViewControlSite2, IWebViewControlSite2_Vtbl, 0xd13b2e3f_48ee_4730_8243_d2ed0c05606a); #[repr(C)] #[doc(hidden)] pub struct IWebViewControlSite2_Vtbl { @@ -155,6 +92,8 @@ pub struct IWebViewControlSite2_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebViewControl(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WebViewControl, ::windows_core::IUnknown, ::windows_core::IInspectable); +::windows_core::imp::required_hierarchy!(WebViewControl, super::IWebViewControl, super::IWebViewControl2); impl WebViewControl { pub fn Source(&self) -> ::windows_core::Result { let this = self; @@ -259,10 +198,10 @@ impl WebViewControl { pub fn NavigateToLocalStreamUri(&self, source: P0, streamresolver: P1) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam, + P1: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).NavigateToLocalStreamUri)(::windows_core::Interface::as_raw(this), source.into_param().abi(), streamresolver.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).NavigateToLocalStreamUri)(::windows_core::Interface::as_raw(this), source.into_param().abi(), streamresolver.into_param().abi()).ok() } } #[doc = "Required features: `\"Web_Http\"`"] #[cfg(feature = "Web_Http")] @@ -277,24 +216,24 @@ impl WebViewControl { #[cfg(feature = "Foundation_Collections")] pub fn InvokeScriptAsync(&self, scriptname: &::windows_core::HSTRING, arguments: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).InvokeScriptAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(scriptname), arguments.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn CapturePreviewToStreamAsync(&self, stream: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CapturePreviewToStreamAsync)(::windows_core::Interface::as_raw(this), stream.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CapturePreviewToStreamAsync)(::windows_core::Interface::as_raw(this), stream.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"ApplicationModel_DataTransfer\"`"] @@ -556,111 +495,111 @@ impl WebViewControl { unsafe { (::windows_core::Interface::vtable(this).RemoveWebResourceRequested)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn AddInitializeScript(&self, script: &::windows_core::HSTRING) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).AddInitializeScript)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(script)).ok() } } pub fn Process(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Process)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetScale(&self, value: f64) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetScale)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Scale(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Scale)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetBounds(&self, value: super::super::super::Foundation::Rect) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetBounds)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn Bounds(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Bounds)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn SetIsVisible(&self, value: bool) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).SetIsVisible)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn IsVisible(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsVisible)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn Close(&self) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).Close)(::windows_core::Interface::as_raw(this)).ok() } } pub fn MoveFocus(&self, reason: WebViewControlMoveFocusReason) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).MoveFocus)(::windows_core::Interface::as_raw(this), reason).ok() } } pub fn MoveFocusRequested(&self, handler: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveMoveFocusRequested(&self, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveMoveFocusRequested)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn AcceleratorKeyPressed(&self, handler: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveAcceleratorKeyPressed(&self, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveAcceleratorKeyPressed)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn GotFocus(&self, handler: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveGotFocus(&self, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveGotFocus)(::windows_core::Interface::as_raw(this), token).ok() } } pub fn LostFocus(&self, handler: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam>, { - let this = &::windows_core::ComInterface::cast::(self)?; + 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__).from_abi(result__) } } pub fn RemoveLostFocus(&self, token: super::super::super::Foundation::EventRegistrationToken) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).RemoveLostFocus)(::windows_core::Interface::as_raw(this), token).ok() } } } @@ -669,19 +608,15 @@ impl ::windows_core::RuntimeType for WebViewControl { } unsafe impl ::windows_core::Interface for WebViewControl { type Vtable = super::IWebViewControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WebViewControl { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WebViewControl { const NAME: &'static str = "Windows.Web.UI.Interop.WebViewControl"; } -::windows_core::imp::interface_hierarchy!(WebViewControl, ::windows_core::IUnknown, ::windows_core::IInspectable); -impl ::windows_core::CanTryInto for WebViewControl {} -impl ::windows_core::CanTryInto for WebViewControl {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebViewControlAcceleratorKeyPressedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WebViewControlAcceleratorKeyPressedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WebViewControlAcceleratorKeyPressedEventArgs { #[doc = "Required features: `\"UI_Core\"`"] #[cfg(feature = "UI_Core")] @@ -734,17 +669,15 @@ impl ::windows_core::RuntimeType for WebViewControlAcceleratorKeyPressedEventArg } unsafe impl ::windows_core::Interface for WebViewControlAcceleratorKeyPressedEventArgs { type Vtable = IWebViewControlAcceleratorKeyPressedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WebViewControlAcceleratorKeyPressedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WebViewControlAcceleratorKeyPressedEventArgs { const NAME: &'static str = "Windows.Web.UI.Interop.WebViewControlAcceleratorKeyPressedEventArgs"; } -::windows_core::imp::interface_hierarchy!(WebViewControlAcceleratorKeyPressedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebViewControlMoveFocusRequestedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WebViewControlMoveFocusRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WebViewControlMoveFocusRequestedEventArgs { pub fn Reason(&self) -> ::windows_core::Result { let this = self; @@ -759,17 +692,15 @@ impl ::windows_core::RuntimeType for WebViewControlMoveFocusRequestedEventArgs { } unsafe impl ::windows_core::Interface for WebViewControlMoveFocusRequestedEventArgs { type Vtable = IWebViewControlMoveFocusRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WebViewControlMoveFocusRequestedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WebViewControlMoveFocusRequestedEventArgs { const NAME: &'static str = "Windows.Web.UI.Interop.WebViewControlMoveFocusRequestedEventArgs"; } -::windows_core::imp::interface_hierarchy!(WebViewControlMoveFocusRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebViewControlProcess(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WebViewControlProcess, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WebViewControlProcess { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -853,17 +784,15 @@ impl ::windows_core::RuntimeType for WebViewControlProcess { } unsafe impl ::windows_core::Interface for WebViewControlProcess { type Vtable = IWebViewControlProcess_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WebViewControlProcess { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WebViewControlProcess { const NAME: &'static str = "Windows.Web.UI.Interop.WebViewControlProcess"; } -::windows_core::imp::interface_hierarchy!(WebViewControlProcess, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebViewControlProcessOptions(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WebViewControlProcessOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WebViewControlProcessOptions { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -900,14 +829,11 @@ impl ::windows_core::RuntimeType for WebViewControlProcessOptions { } unsafe impl ::windows_core::Interface for WebViewControlProcessOptions { type Vtable = IWebViewControlProcessOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WebViewControlProcessOptions { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WebViewControlProcessOptions { const NAME: &'static str = "Windows.Web.UI.Interop.WebViewControlProcessOptions"; } -::windows_core::imp::interface_hierarchy!(WebViewControlProcessOptions, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::marker::Copy, ::core::clone::Clone, ::core::default::Default)] pub struct WebViewControlAcceleratorKeyRoutingStage(pub i32); diff --git a/crates/libs/windows/src/Windows/Web/UI/impl.rs b/crates/libs/windows/src/Windows/Web/UI/impl.rs index 6d53d244d0..d3fa50dedc 100644 --- a/crates/libs/windows/src/Windows/Web/UI/impl.rs +++ b/crates/libs/windows/src/Windows/Web/UI/impl.rs @@ -595,7 +595,7 @@ impl IWebViewControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWebViewControl2_Impl: Sized { @@ -617,6 +617,6 @@ impl IWebViewControl2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/Web/UI/mod.rs b/crates/libs/windows/src/Windows/Web/UI/mod.rs index 64b34422aa..c4b258e386 100644 --- a/crates/libs/windows/src/Windows/Web/UI/mod.rs +++ b/crates/libs/windows/src/Windows/Web/UI/mod.rs @@ -1,9 +1,8 @@ #[cfg(feature = "Web_UI_Interop")] #[doc = "Required features: `\"Web_UI_Interop\"`"] pub mod Interop; -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebViewControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWebViewControl, IWebViewControl_Vtbl, 0x3f921316_bc70_4bda_9136_c94370899fab); +::windows_core::imp::interface_hierarchy!(IWebViewControl, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IWebViewControl { pub fn Source(&self) -> ::windows_core::Result { let this = self; @@ -108,10 +107,10 @@ impl IWebViewControl { pub fn NavigateToLocalStreamUri(&self, source: P0, streamresolver: P1) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - P1: ::windows_core::TryIntoParam, + P1: ::windows_core::IntoParam, { let this = self; - unsafe { (::windows_core::Interface::vtable(this).NavigateToLocalStreamUri)(::windows_core::Interface::as_raw(this), source.into_param().abi(), streamresolver.try_into_param()?.abi()).ok() } + unsafe { (::windows_core::Interface::vtable(this).NavigateToLocalStreamUri)(::windows_core::Interface::as_raw(this), source.into_param().abi(), streamresolver.into_param().abi()).ok() } } #[doc = "Required features: `\"Web_Http\"`"] #[cfg(feature = "Web_Http")] @@ -126,24 +125,24 @@ impl IWebViewControl { #[cfg(feature = "Foundation_Collections")] pub fn InvokeScriptAsync(&self, scriptname: &::windows_core::HSTRING, arguments: P0) -> ::windows_core::Result> where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { 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.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).InvokeScriptAsync)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(scriptname), arguments.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] pub fn CapturePreviewToStreamAsync(&self, stream: P0) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { let this = self; unsafe { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(this).CapturePreviewToStreamAsync)(::windows_core::Interface::as_raw(this), stream.try_into_param()?.abi(), &mut result__).from_abi(result__) + (::windows_core::Interface::vtable(this).CapturePreviewToStreamAsync)(::windows_core::Interface::as_raw(this), stream.into_param().abi(), &mut result__).from_abi(result__) } } #[doc = "Required features: `\"ApplicationModel_DataTransfer\"`"] @@ -405,16 +404,9 @@ impl IWebViewControl { unsafe { (::windows_core::Interface::vtable(this).RemoveWebResourceRequested)(::windows_core::Interface::as_raw(this), token).ok() } } } -::windows_core::imp::interface_hierarchy!(IWebViewControl, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IWebViewControl { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IWebViewControl { - type Vtable = IWebViewControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebViewControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3f921316_bc70_4bda_9136_c94370899fab); -} #[repr(C)] #[doc(hidden)] pub struct IWebViewControl_Vtbl { @@ -498,73 +490,38 @@ pub struct IWebViewControl_Vtbl { pub WebResourceRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, pub RemoveWebResourceRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebViewControl2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWebViewControl2, IWebViewControl2_Vtbl, 0x4d3c06f9_c8df_41cc_8bd5_2a947b204503); +::windows_core::imp::interface_hierarchy!(IWebViewControl2, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IWebViewControl2 { pub fn AddInitializeScript(&self, script: &::windows_core::HSTRING) -> ::windows_core::Result<()> { let this = self; unsafe { (::windows_core::Interface::vtable(this).AddInitializeScript)(::windows_core::Interface::as_raw(this), ::core::mem::transmute_copy(script)).ok() } } } -::windows_core::imp::interface_hierarchy!(IWebViewControl2, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IWebViewControl2 { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IWebViewControl2 { - type Vtable = IWebViewControl2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebViewControl2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4d3c06f9_c8df_41cc_8bd5_2a947b204503); -} #[repr(C)] #[doc(hidden)] pub struct IWebViewControl2_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub AddInitializeScript: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, script: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebViewControlContentLoadingEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebViewControlContentLoadingEventArgs { - type Vtable = IWebViewControlContentLoadingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebViewControlContentLoadingEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9a3fccb2_b9bb_404b_a22b_66dccd1250c6); -} +::windows_core::imp::com_interface!(IWebViewControlContentLoadingEventArgs, IWebViewControlContentLoadingEventArgs_Vtbl, 0x9a3fccb2_b9bb_404b_a22b_66dccd1250c6); #[repr(C)] #[doc(hidden)] pub struct IWebViewControlContentLoadingEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Uri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebViewControlDOMContentLoadedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebViewControlDOMContentLoadedEventArgs { - type Vtable = IWebViewControlDOMContentLoadedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebViewControlDOMContentLoadedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbe8bc008_9541_4545_9ff2_2df585b29f7d); -} +::windows_core::imp::com_interface!(IWebViewControlDOMContentLoadedEventArgs, IWebViewControlDOMContentLoadedEventArgs_Vtbl, 0xbe8bc008_9541_4545_9ff2_2df585b29f7d); #[repr(C)] #[doc(hidden)] pub struct IWebViewControlDOMContentLoadedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Uri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebViewControlDeferredPermissionRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebViewControlDeferredPermissionRequest { - type Vtable = IWebViewControlDeferredPermissionRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebViewControlDeferredPermissionRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2ce349e0_d759_445c_9926_8995298f152b); -} +::windows_core::imp::com_interface!(IWebViewControlDeferredPermissionRequest, IWebViewControlDeferredPermissionRequest_Vtbl, 0x2ce349e0_d759_445c_9926_8995298f152b); #[repr(C)] #[doc(hidden)] pub struct IWebViewControlDeferredPermissionRequest_Vtbl { @@ -575,16 +532,7 @@ pub struct IWebViewControlDeferredPermissionRequest_Vtbl { pub Allow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Deny: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebViewControlLongRunningScriptDetectedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebViewControlLongRunningScriptDetectedEventArgs { - type Vtable = IWebViewControlLongRunningScriptDetectedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebViewControlLongRunningScriptDetectedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2a6e5bba_98b4_45bc_bbeb_0f69ce49c599); -} +::windows_core::imp::com_interface!(IWebViewControlLongRunningScriptDetectedEventArgs, IWebViewControlLongRunningScriptDetectedEventArgs_Vtbl, 0x2a6e5bba_98b4_45bc_bbeb_0f69ce49c599); #[repr(C)] #[doc(hidden)] pub struct IWebViewControlLongRunningScriptDetectedEventArgs_Vtbl { @@ -593,16 +541,7 @@ pub struct IWebViewControlLongRunningScriptDetectedEventArgs_Vtbl { pub StopPageScriptExecution: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetStopPageScriptExecution: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebViewControlNavigationCompletedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebViewControlNavigationCompletedEventArgs { - type Vtable = IWebViewControlNavigationCompletedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebViewControlNavigationCompletedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x20409918_4a15_4c46_a55d_f79edb0bde8b); -} +::windows_core::imp::com_interface!(IWebViewControlNavigationCompletedEventArgs, IWebViewControlNavigationCompletedEventArgs_Vtbl, 0x20409918_4a15_4c46_a55d_f79edb0bde8b); #[repr(C)] #[doc(hidden)] pub struct IWebViewControlNavigationCompletedEventArgs_Vtbl { @@ -611,16 +550,7 @@ pub struct IWebViewControlNavigationCompletedEventArgs_Vtbl { pub IsSuccess: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub WebErrorStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::WebErrorStatus) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebViewControlNavigationStartingEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebViewControlNavigationStartingEventArgs { - type Vtable = IWebViewControlNavigationStartingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebViewControlNavigationStartingEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c9057c5_0a08_41c7_863b_71e3a9549137); -} +::windows_core::imp::com_interface!(IWebViewControlNavigationStartingEventArgs, IWebViewControlNavigationStartingEventArgs_Vtbl, 0x0c9057c5_0a08_41c7_863b_71e3a9549137); #[repr(C)] #[doc(hidden)] pub struct IWebViewControlNavigationStartingEventArgs_Vtbl { @@ -629,16 +559,7 @@ pub struct IWebViewControlNavigationStartingEventArgs_Vtbl { pub Cancel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetCancel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebViewControlNewWindowRequestedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebViewControlNewWindowRequestedEventArgs { - type Vtable = IWebViewControlNewWindowRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebViewControlNewWindowRequestedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3df44bbb_a124_46d5_a083_d02cacdff5ad); -} +::windows_core::imp::com_interface!(IWebViewControlNewWindowRequestedEventArgs, IWebViewControlNewWindowRequestedEventArgs_Vtbl, 0x3df44bbb_a124_46d5_a083_d02cacdff5ad); #[repr(C)] #[doc(hidden)] pub struct IWebViewControlNewWindowRequestedEventArgs_Vtbl { @@ -648,16 +569,7 @@ pub struct IWebViewControlNewWindowRequestedEventArgs_Vtbl { pub Handled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetHandled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebViewControlNewWindowRequestedEventArgs2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebViewControlNewWindowRequestedEventArgs2 { - type Vtable = IWebViewControlNewWindowRequestedEventArgs2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebViewControlNewWindowRequestedEventArgs2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb53c5ca6_2aae_4bfc_92b9_c30e92b48098); -} +::windows_core::imp::com_interface!(IWebViewControlNewWindowRequestedEventArgs2, IWebViewControlNewWindowRequestedEventArgs2_Vtbl, 0xb53c5ca6_2aae_4bfc_92b9_c30e92b48098); #[repr(C)] #[doc(hidden)] pub struct IWebViewControlNewWindowRequestedEventArgs2_Vtbl { @@ -666,16 +578,7 @@ pub struct IWebViewControlNewWindowRequestedEventArgs2_Vtbl { pub SetNewWindow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebViewControlPermissionRequest(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebViewControlPermissionRequest { - type Vtable = IWebViewControlPermissionRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebViewControlPermissionRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe5bc836c_f22f_40e2_95b2_7729f840eb7f); -} +::windows_core::imp::com_interface!(IWebViewControlPermissionRequest, IWebViewControlPermissionRequest_Vtbl, 0xe5bc836c_f22f_40e2_95b2_7729f840eb7f); #[repr(C)] #[doc(hidden)] pub struct IWebViewControlPermissionRequest_Vtbl { @@ -688,32 +591,14 @@ pub struct IWebViewControlPermissionRequest_Vtbl { pub Allow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Deny: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebViewControlPermissionRequestedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebViewControlPermissionRequestedEventArgs { - type Vtable = IWebViewControlPermissionRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebViewControlPermissionRequestedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x27204d51_2488_4cc5_968e_0a771e59c147); -} +::windows_core::imp::com_interface!(IWebViewControlPermissionRequestedEventArgs, IWebViewControlPermissionRequestedEventArgs_Vtbl, 0x27204d51_2488_4cc5_968e_0a771e59c147); #[repr(C)] #[doc(hidden)] pub struct IWebViewControlPermissionRequestedEventArgs_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub PermissionRequest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebViewControlScriptNotifyEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebViewControlScriptNotifyEventArgs { - type Vtable = IWebViewControlScriptNotifyEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebViewControlScriptNotifyEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x491de57b_6f49_41bb_b591_51b85b817037); -} +::windows_core::imp::com_interface!(IWebViewControlScriptNotifyEventArgs, IWebViewControlScriptNotifyEventArgs_Vtbl, 0x491de57b_6f49_41bb_b591_51b85b817037); #[repr(C)] #[doc(hidden)] pub struct IWebViewControlScriptNotifyEventArgs_Vtbl { @@ -721,16 +606,7 @@ pub struct IWebViewControlScriptNotifyEventArgs_Vtbl { pub Uri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebViewControlSettings(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebViewControlSettings { - type Vtable = IWebViewControlSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebViewControlSettings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc9967fbf_5e98_4cfd_8cce_27b0911e3de8); -} +::windows_core::imp::com_interface!(IWebViewControlSettings, IWebViewControlSettings_Vtbl, 0xc9967fbf_5e98_4cfd_8cce_27b0911e3de8); #[repr(C)] #[doc(hidden)] pub struct IWebViewControlSettings_Vtbl { @@ -742,16 +618,7 @@ pub struct IWebViewControlSettings_Vtbl { pub SetIsScriptNotifyAllowed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, pub IsScriptNotifyAllowed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebViewControlUnsupportedUriSchemeIdentifiedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebViewControlUnsupportedUriSchemeIdentifiedEventArgs { - type Vtable = IWebViewControlUnsupportedUriSchemeIdentifiedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebViewControlUnsupportedUriSchemeIdentifiedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe3b81944_e4fc_43dc_94ca_f980f30bc51d); -} +::windows_core::imp::com_interface!(IWebViewControlUnsupportedUriSchemeIdentifiedEventArgs, IWebViewControlUnsupportedUriSchemeIdentifiedEventArgs_Vtbl, 0xe3b81944_e4fc_43dc_94ca_f980f30bc51d); #[repr(C)] #[doc(hidden)] pub struct IWebViewControlUnsupportedUriSchemeIdentifiedEventArgs_Vtbl { @@ -760,16 +627,7 @@ pub struct IWebViewControlUnsupportedUriSchemeIdentifiedEventArgs_Vtbl { pub Handled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows_core::HRESULT, pub SetHandled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebViewControlUnviewableContentIdentifiedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebViewControlUnviewableContentIdentifiedEventArgs { - type Vtable = IWebViewControlUnviewableContentIdentifiedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebViewControlUnviewableContentIdentifiedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4a9680db_88f2_4e20_b693_b4e2df4aa581); -} +::windows_core::imp::com_interface!(IWebViewControlUnviewableContentIdentifiedEventArgs, IWebViewControlUnviewableContentIdentifiedEventArgs_Vtbl, 0x4a9680db_88f2_4e20_b693_b4e2df4aa581); #[repr(C)] #[doc(hidden)] pub struct IWebViewControlUnviewableContentIdentifiedEventArgs_Vtbl { @@ -778,16 +636,7 @@ pub struct IWebViewControlUnviewableContentIdentifiedEventArgs_Vtbl { pub Referrer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub MediaType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebViewControlWebResourceRequestedEventArgs(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebViewControlWebResourceRequestedEventArgs { - type Vtable = IWebViewControlWebResourceRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebViewControlWebResourceRequestedEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x44d6524d_55a4_4d8b_891c_931d8e25d42e); -} +::windows_core::imp::com_interface!(IWebViewControlWebResourceRequestedEventArgs, IWebViewControlWebResourceRequestedEventArgs_Vtbl, 0x44d6524d_55a4_4d8b_891c_931d8e25d42e); #[repr(C)] #[doc(hidden)] pub struct IWebViewControlWebResourceRequestedEventArgs_Vtbl { @@ -809,6 +658,7 @@ pub struct IWebViewControlWebResourceRequestedEventArgs_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebViewControlContentLoadingEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WebViewControlContentLoadingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WebViewControlContentLoadingEventArgs { pub fn Uri(&self) -> ::windows_core::Result { let this = self; @@ -823,17 +673,15 @@ impl ::windows_core::RuntimeType for WebViewControlContentLoadingEventArgs { } unsafe impl ::windows_core::Interface for WebViewControlContentLoadingEventArgs { type Vtable = IWebViewControlContentLoadingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WebViewControlContentLoadingEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WebViewControlContentLoadingEventArgs { const NAME: &'static str = "Windows.Web.UI.WebViewControlContentLoadingEventArgs"; } -::windows_core::imp::interface_hierarchy!(WebViewControlContentLoadingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebViewControlDOMContentLoadedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WebViewControlDOMContentLoadedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WebViewControlDOMContentLoadedEventArgs { pub fn Uri(&self) -> ::windows_core::Result { let this = self; @@ -848,17 +696,15 @@ impl ::windows_core::RuntimeType for WebViewControlDOMContentLoadedEventArgs { } unsafe impl ::windows_core::Interface for WebViewControlDOMContentLoadedEventArgs { type Vtable = IWebViewControlDOMContentLoadedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WebViewControlDOMContentLoadedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WebViewControlDOMContentLoadedEventArgs { const NAME: &'static str = "Windows.Web.UI.WebViewControlDOMContentLoadedEventArgs"; } -::windows_core::imp::interface_hierarchy!(WebViewControlDOMContentLoadedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebViewControlDeferredPermissionRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WebViewControlDeferredPermissionRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WebViewControlDeferredPermissionRequest { pub fn Id(&self) -> ::windows_core::Result { let this = self; @@ -895,17 +741,15 @@ impl ::windows_core::RuntimeType for WebViewControlDeferredPermissionRequest { } unsafe impl ::windows_core::Interface for WebViewControlDeferredPermissionRequest { type Vtable = IWebViewControlDeferredPermissionRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WebViewControlDeferredPermissionRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WebViewControlDeferredPermissionRequest { const NAME: &'static str = "Windows.Web.UI.WebViewControlDeferredPermissionRequest"; } -::windows_core::imp::interface_hierarchy!(WebViewControlDeferredPermissionRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebViewControlLongRunningScriptDetectedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WebViewControlLongRunningScriptDetectedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WebViewControlLongRunningScriptDetectedEventArgs { pub fn ExecutionTime(&self) -> ::windows_core::Result { let this = self; @@ -931,17 +775,15 @@ impl ::windows_core::RuntimeType for WebViewControlLongRunningScriptDetectedEven } unsafe impl ::windows_core::Interface for WebViewControlLongRunningScriptDetectedEventArgs { type Vtable = IWebViewControlLongRunningScriptDetectedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WebViewControlLongRunningScriptDetectedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WebViewControlLongRunningScriptDetectedEventArgs { const NAME: &'static str = "Windows.Web.UI.WebViewControlLongRunningScriptDetectedEventArgs"; } -::windows_core::imp::interface_hierarchy!(WebViewControlLongRunningScriptDetectedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebViewControlNavigationCompletedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WebViewControlNavigationCompletedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WebViewControlNavigationCompletedEventArgs { pub fn Uri(&self) -> ::windows_core::Result { let this = self; @@ -970,17 +812,15 @@ impl ::windows_core::RuntimeType for WebViewControlNavigationCompletedEventArgs } unsafe impl ::windows_core::Interface for WebViewControlNavigationCompletedEventArgs { type Vtable = IWebViewControlNavigationCompletedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WebViewControlNavigationCompletedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WebViewControlNavigationCompletedEventArgs { const NAME: &'static str = "Windows.Web.UI.WebViewControlNavigationCompletedEventArgs"; } -::windows_core::imp::interface_hierarchy!(WebViewControlNavigationCompletedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebViewControlNavigationStartingEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WebViewControlNavigationStartingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WebViewControlNavigationStartingEventArgs { pub fn Uri(&self) -> ::windows_core::Result { let this = self; @@ -1006,17 +846,15 @@ impl ::windows_core::RuntimeType for WebViewControlNavigationStartingEventArgs { } unsafe impl ::windows_core::Interface for WebViewControlNavigationStartingEventArgs { type Vtable = IWebViewControlNavigationStartingEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WebViewControlNavigationStartingEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WebViewControlNavigationStartingEventArgs { const NAME: &'static str = "Windows.Web.UI.WebViewControlNavigationStartingEventArgs"; } -::windows_core::imp::interface_hierarchy!(WebViewControlNavigationStartingEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebViewControlNewWindowRequestedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WebViewControlNewWindowRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WebViewControlNewWindowRequestedEventArgs { pub fn Uri(&self) -> ::windows_core::Result { let this = self; @@ -1044,7 +882,7 @@ impl WebViewControlNewWindowRequestedEventArgs { unsafe { (::windows_core::Interface::vtable(this).SetHandled)(::windows_core::Interface::as_raw(this), value).ok() } } pub fn NewWindow(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).NewWindow)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1052,13 +890,13 @@ impl WebViewControlNewWindowRequestedEventArgs { } pub fn SetNewWindow(&self, value: P0) -> ::windows_core::Result<()> where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = &::windows_core::ComInterface::cast::(self)?; - unsafe { (::windows_core::Interface::vtable(this).SetNewWindow)(::windows_core::Interface::as_raw(this), value.try_into_param()?.abi()).ok() } + 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() } } pub fn GetDeferral(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetDeferral)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) @@ -1070,17 +908,15 @@ impl ::windows_core::RuntimeType for WebViewControlNewWindowRequestedEventArgs { } unsafe impl ::windows_core::Interface for WebViewControlNewWindowRequestedEventArgs { type Vtable = IWebViewControlNewWindowRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WebViewControlNewWindowRequestedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WebViewControlNewWindowRequestedEventArgs { const NAME: &'static str = "Windows.Web.UI.WebViewControlNewWindowRequestedEventArgs"; } -::windows_core::imp::interface_hierarchy!(WebViewControlNewWindowRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebViewControlPermissionRequest(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WebViewControlPermissionRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WebViewControlPermissionRequest { pub fn Id(&self) -> ::windows_core::Result { let this = self; @@ -1128,17 +964,15 @@ impl ::windows_core::RuntimeType for WebViewControlPermissionRequest { } unsafe impl ::windows_core::Interface for WebViewControlPermissionRequest { type Vtable = IWebViewControlPermissionRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WebViewControlPermissionRequest { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WebViewControlPermissionRequest { const NAME: &'static str = "Windows.Web.UI.WebViewControlPermissionRequest"; } -::windows_core::imp::interface_hierarchy!(WebViewControlPermissionRequest, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebViewControlPermissionRequestedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WebViewControlPermissionRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WebViewControlPermissionRequestedEventArgs { pub fn PermissionRequest(&self) -> ::windows_core::Result { let this = self; @@ -1153,17 +987,15 @@ impl ::windows_core::RuntimeType for WebViewControlPermissionRequestedEventArgs } unsafe impl ::windows_core::Interface for WebViewControlPermissionRequestedEventArgs { type Vtable = IWebViewControlPermissionRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WebViewControlPermissionRequestedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WebViewControlPermissionRequestedEventArgs { const NAME: &'static str = "Windows.Web.UI.WebViewControlPermissionRequestedEventArgs"; } -::windows_core::imp::interface_hierarchy!(WebViewControlPermissionRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebViewControlScriptNotifyEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WebViewControlScriptNotifyEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WebViewControlScriptNotifyEventArgs { pub fn Uri(&self) -> ::windows_core::Result { let this = self; @@ -1185,17 +1017,15 @@ impl ::windows_core::RuntimeType for WebViewControlScriptNotifyEventArgs { } unsafe impl ::windows_core::Interface for WebViewControlScriptNotifyEventArgs { type Vtable = IWebViewControlScriptNotifyEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WebViewControlScriptNotifyEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WebViewControlScriptNotifyEventArgs { const NAME: &'static str = "Windows.Web.UI.WebViewControlScriptNotifyEventArgs"; } -::windows_core::imp::interface_hierarchy!(WebViewControlScriptNotifyEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebViewControlSettings(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WebViewControlSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WebViewControlSettings { pub fn SetIsJavaScriptEnabled(&self, value: bool) -> ::windows_core::Result<()> { let this = self; @@ -1236,17 +1066,15 @@ impl ::windows_core::RuntimeType for WebViewControlSettings { } unsafe impl ::windows_core::Interface for WebViewControlSettings { type Vtable = IWebViewControlSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WebViewControlSettings { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WebViewControlSettings { const NAME: &'static str = "Windows.Web.UI.WebViewControlSettings"; } -::windows_core::imp::interface_hierarchy!(WebViewControlSettings, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebViewControlUnsupportedUriSchemeIdentifiedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WebViewControlUnsupportedUriSchemeIdentifiedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WebViewControlUnsupportedUriSchemeIdentifiedEventArgs { pub fn Uri(&self) -> ::windows_core::Result { let this = self; @@ -1272,17 +1100,15 @@ impl ::windows_core::RuntimeType for WebViewControlUnsupportedUriSchemeIdentifie } unsafe impl ::windows_core::Interface for WebViewControlUnsupportedUriSchemeIdentifiedEventArgs { type Vtable = IWebViewControlUnsupportedUriSchemeIdentifiedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WebViewControlUnsupportedUriSchemeIdentifiedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WebViewControlUnsupportedUriSchemeIdentifiedEventArgs { const NAME: &'static str = "Windows.Web.UI.WebViewControlUnsupportedUriSchemeIdentifiedEventArgs"; } -::windows_core::imp::interface_hierarchy!(WebViewControlUnsupportedUriSchemeIdentifiedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebViewControlUnviewableContentIdentifiedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WebViewControlUnviewableContentIdentifiedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WebViewControlUnviewableContentIdentifiedEventArgs { pub fn Uri(&self) -> ::windows_core::Result { let this = self; @@ -1311,17 +1137,15 @@ impl ::windows_core::RuntimeType for WebViewControlUnviewableContentIdentifiedEv } unsafe impl ::windows_core::Interface for WebViewControlUnviewableContentIdentifiedEventArgs { type Vtable = IWebViewControlUnviewableContentIdentifiedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WebViewControlUnviewableContentIdentifiedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WebViewControlUnviewableContentIdentifiedEventArgs { const NAME: &'static str = "Windows.Web.UI.WebViewControlUnviewableContentIdentifiedEventArgs"; } -::windows_core::imp::interface_hierarchy!(WebViewControlUnviewableContentIdentifiedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WebViewControlWebResourceRequestedEventArgs(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!(WebViewControlWebResourceRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); impl WebViewControlWebResourceRequestedEventArgs { pub fn GetDeferral(&self) -> ::windows_core::Result { let this = self; @@ -1363,14 +1187,11 @@ impl ::windows_core::RuntimeType for WebViewControlWebResourceRequestedEventArgs } unsafe impl ::windows_core::Interface for WebViewControlWebResourceRequestedEventArgs { type Vtable = IWebViewControlWebResourceRequestedEventArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WebViewControlWebResourceRequestedEventArgs { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for WebViewControlWebResourceRequestedEventArgs { const NAME: &'static str = "Windows.Web.UI.WebViewControlWebResourceRequestedEventArgs"; } -::windows_core::imp::interface_hierarchy!(WebViewControlWebResourceRequestedEventArgs, ::windows_core::IUnknown, ::windows_core::IInspectable); #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::marker::Copy, ::core::clone::Clone, ::core::default::Default)] pub struct WebViewControlPermissionState(pub i32); diff --git a/crates/libs/windows/src/Windows/Web/impl.rs b/crates/libs/windows/src/Windows/Web/impl.rs index 895cf87e8f..f527ca2a7f 100644 --- a/crates/libs/windows/src/Windows/Web/impl.rs +++ b/crates/libs/windows/src/Windows/Web/impl.rs @@ -28,6 +28,6 @@ impl IUriToStreamResolver_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/Web/mod.rs b/crates/libs/windows/src/Windows/Web/mod.rs index 63ea11f3e7..81f577e930 100644 --- a/crates/libs/windows/src/Windows/Web/mod.rs +++ b/crates/libs/windows/src/Windows/Web/mod.rs @@ -10,9 +10,8 @@ pub mod Syndication; #[cfg(feature = "Web_UI")] #[doc = "Required features: `\"Web_UI\"`"] pub mod UI; -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUriToStreamResolver(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUriToStreamResolver, IUriToStreamResolver_Vtbl, 0xb0aba86a_9aeb_4d3a_9590_003e3ca7e290); +::windows_core::imp::interface_hierarchy!(IUriToStreamResolver, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IUriToStreamResolver { #[doc = "Required features: `\"Storage_Streams\"`"] #[cfg(feature = "Storage_Streams")] @@ -27,16 +26,9 @@ impl IUriToStreamResolver { } } } -::windows_core::imp::interface_hierarchy!(IUriToStreamResolver, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IUriToStreamResolver { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IUriToStreamResolver { - type Vtable = IUriToStreamResolver_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUriToStreamResolver { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb0aba86a_9aeb_4d3a_9590_003e3ca7e290); -} #[repr(C)] #[doc(hidden)] pub struct IUriToStreamResolver_Vtbl { @@ -46,16 +38,7 @@ pub struct IUriToStreamResolver_Vtbl { #[cfg(not(feature = "Storage_Streams"))] UriToStreamAsync: usize, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebErrorStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebErrorStatics { - type Vtable = IWebErrorStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebErrorStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfe616766_bf27_4064_87b7_6563bb11ce2e); -} +::windows_core::imp::com_interface!(IWebErrorStatics, IWebErrorStatics_Vtbl, 0xfe616766_bf27_4064_87b7_6563bb11ce2e); #[repr(C)] #[doc(hidden)] pub struct IWebErrorStatics_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/AI/MachineLearning/DirectML/impl.rs b/crates/libs/windows/src/Windows/Win32/AI/MachineLearning/DirectML/impl.rs index 9ec7c071d9..dec5323c7f 100644 --- a/crates/libs/windows/src/Windows/Win32/AI/MachineLearning/DirectML/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/AI/MachineLearning/DirectML/impl.rs @@ -47,7 +47,7 @@ impl IDMLBindingTable_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] @@ -68,7 +68,7 @@ impl IDMLCommandRecorder_Vtbl { Self { base__: IDMLDeviceChild_Vtbl::new::(), RecordDispatch: RecordDispatch:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDMLCompiledOperator_Impl: Sized + IDMLDispatchable_Impl {} @@ -78,7 +78,7 @@ impl IDMLCompiledOperator_Vtbl { Self { base__: IDMLDispatchable_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDMLDebugDevice_Impl: Sized { @@ -95,7 +95,7 @@ impl IDMLDebugDevice_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), SetMuteDebugOutput: SetMuteDebugOutput:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] @@ -182,7 +182,7 @@ impl IDMLDevice_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] @@ -203,7 +203,7 @@ impl IDMLDevice1_Vtbl { Self { base__: IDMLDevice_Vtbl::new::(), CompileGraph: CompileGraph:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDMLDeviceChild_Impl: Sized + IDMLObject_Impl { @@ -220,7 +220,7 @@ impl IDMLDeviceChild_Vtbl { Self { base__: IDMLObject_Vtbl::new::(), GetDevice: GetDevice:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDMLDispatchable_Impl: Sized + IDMLPageable_Impl { @@ -237,7 +237,7 @@ impl IDMLDispatchable_Vtbl { Self { base__: IDMLPageable_Vtbl::new::(), GetBindingProperties: GetBindingProperties:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDMLObject_Impl: Sized { @@ -278,7 +278,7 @@ impl IDMLObject_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDMLOperator_Impl: Sized + IDMLDeviceChild_Impl {} @@ -288,7 +288,7 @@ impl IDMLOperator_Vtbl { Self { base__: IDMLDeviceChild_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDMLOperatorInitializer_Impl: Sized + IDMLDispatchable_Impl { @@ -305,7 +305,7 @@ impl IDMLOperatorInitializer_Vtbl { Self { base__: IDMLDispatchable_Vtbl::new::(), Reset: Reset:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDMLPageable_Impl: Sized + IDMLDeviceChild_Impl {} @@ -315,6 +315,6 @@ impl IDMLPageable_Vtbl { Self { base__: IDMLDeviceChild_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } 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 068faaa698..5fa6f7c20c 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 @@ -4,7 +4,7 @@ pub unsafe fn DMLCreateDevice(d3d12device: P0, flags: DML_CREATE_DEVICE_FLAGS, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() @@ -15,14 +15,13 @@ where pub unsafe fn DMLCreateDevice1(d3d12device: P0, flags: DML_CREATE_DEVICE_FLAGS, minimumfeaturelevel: DML_FEATURE_LEVEL, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDMLBindingTable(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDMLBindingTable, IDMLBindingTable_Vtbl, 0x29c687dc_de74_4e3b_ab00_1168f2fc3cfc); +::windows_core::imp::interface_hierarchy!(IDMLBindingTable, ::windows_core::IUnknown, IDMLObject, IDMLDeviceChild); impl IDMLBindingTable { pub unsafe fn GetPrivateData(&self, guid: *const ::windows_core::GUID, datasize: *mut u32, data: ::core::option::Option<*mut ::core::ffi::c_void>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.GetPrivateData)(::windows_core::Interface::as_raw(self), guid, datasize, ::core::mem::transmute(data.unwrap_or(::std::ptr::null_mut()))).ok() @@ -44,7 +43,7 @@ impl IDMLBindingTable { } pub unsafe fn GetDevice(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -67,13 +66,6 @@ impl IDMLBindingTable { (::windows_core::Interface::vtable(self).Reset)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(desc.unwrap_or(::std::ptr::null()))).ok() } } -::windows_core::imp::interface_hierarchy!(IDMLBindingTable, ::windows_core::IUnknown, IDMLObject, IDMLDeviceChild); -unsafe impl ::windows_core::Interface for IDMLBindingTable { - type Vtable = IDMLBindingTable_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDMLBindingTable { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x29c687dc_de74_4e3b_ab00_1168f2fc3cfc); -} #[repr(C)] #[doc(hidden)] pub struct IDMLBindingTable_Vtbl { @@ -87,9 +79,8 @@ pub struct IDMLBindingTable_Vtbl { #[cfg(not(feature = "Win32_Graphics_Direct3D12"))] Reset: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDMLCommandRecorder(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDMLCommandRecorder, IDMLCommandRecorder_Vtbl, 0xe6857a76_2e3e_4fdd_bff4_5d2ba10fb453); +::windows_core::imp::interface_hierarchy!(IDMLCommandRecorder, ::windows_core::IUnknown, IDMLObject, IDMLDeviceChild); impl IDMLCommandRecorder { pub unsafe fn GetPrivateData(&self, guid: *const ::windows_core::GUID, datasize: *mut u32, data: ::core::option::Option<*mut ::core::ffi::c_void>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.GetPrivateData)(::windows_core::Interface::as_raw(self), guid, datasize, ::core::mem::transmute(data.unwrap_or(::std::ptr::null_mut()))).ok() @@ -111,7 +102,7 @@ impl IDMLCommandRecorder { } pub unsafe fn GetDevice(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -127,13 +118,6 @@ impl IDMLCommandRecorder { (::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::imp::interface_hierarchy!(IDMLCommandRecorder, ::windows_core::IUnknown, IDMLObject, IDMLDeviceChild); -unsafe impl ::windows_core::Interface for IDMLCommandRecorder { - type Vtable = IDMLCommandRecorder_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDMLCommandRecorder { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe6857a76_2e3e_4fdd_bff4_5d2ba10fb453); -} #[repr(C)] #[doc(hidden)] pub struct IDMLCommandRecorder_Vtbl { @@ -143,9 +127,8 @@ pub struct IDMLCommandRecorder_Vtbl { #[cfg(not(feature = "Win32_Graphics_Direct3D12"))] RecordDispatch: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDMLCompiledOperator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDMLCompiledOperator, IDMLCompiledOperator_Vtbl, 0x6b15e56a_bf5c_4902_92d8_da3a650afea4); +::windows_core::imp::interface_hierarchy!(IDMLCompiledOperator, ::windows_core::IUnknown, IDMLObject, IDMLDeviceChild, IDMLPageable, IDMLDispatchable); impl IDMLCompiledOperator { pub unsafe fn GetPrivateData(&self, guid: *const ::windows_core::GUID, datasize: *mut u32, data: ::core::option::Option<*mut ::core::ffi::c_void>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.GetPrivateData)(::windows_core::Interface::as_raw(self), guid, datasize, ::core::mem::transmute(data.unwrap_or(::std::ptr::null_mut()))).ok() @@ -167,7 +150,7 @@ impl IDMLCompiledOperator { } pub unsafe fn GetDevice(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -178,21 +161,13 @@ impl IDMLCompiledOperator { result__ } } -::windows_core::imp::interface_hierarchy!(IDMLCompiledOperator, ::windows_core::IUnknown, IDMLObject, IDMLDeviceChild, IDMLPageable, IDMLDispatchable); -unsafe impl ::windows_core::Interface for IDMLCompiledOperator { - type Vtable = IDMLCompiledOperator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDMLCompiledOperator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6b15e56a_bf5c_4902_92d8_da3a650afea4); -} #[repr(C)] #[doc(hidden)] pub struct IDMLCompiledOperator_Vtbl { pub base__: IDMLDispatchable_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDMLDebugDevice(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDMLDebugDevice, IDMLDebugDevice_Vtbl, 0x7d6f3ac9_394a_4ac3_92a7_390cc57a8217); +::windows_core::imp::interface_hierarchy!(IDMLDebugDevice, ::windows_core::IUnknown); impl IDMLDebugDevice { pub unsafe fn SetMuteDebugOutput(&self, mute: P0) where @@ -201,22 +176,14 @@ impl IDMLDebugDevice { (::windows_core::Interface::vtable(self).SetMuteDebugOutput)(::windows_core::Interface::as_raw(self), mute.into_param().abi()) } } -::windows_core::imp::interface_hierarchy!(IDMLDebugDevice, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDMLDebugDevice { - type Vtable = IDMLDebugDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDMLDebugDevice { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7d6f3ac9_394a_4ac3_92a7_390cc57a8217); -} #[repr(C)] #[doc(hidden)] pub struct IDMLDebugDevice_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub SetMuteDebugOutput: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mute: super::super::super::Foundation::BOOL), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDMLDevice(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDMLDevice, IDMLDevice_Vtbl, 0x6dbd6437_96fd_423f_a98c_ae5e7c2a573f); +::windows_core::imp::interface_hierarchy!(IDMLDevice, ::windows_core::IUnknown, IDMLObject); impl IDMLDevice { pub unsafe fn GetPrivateData(&self, guid: *const ::windows_core::GUID, datasize: *mut u32, data: ::core::option::Option<*mut ::core::ffi::c_void>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.GetPrivateData)(::windows_core::Interface::as_raw(self), guid, datasize, ::core::mem::transmute(data.unwrap_or(::std::ptr::null_mut()))).ok() @@ -241,27 +208,27 @@ impl IDMLDevice { } pub unsafe fn CreateOperator(&self, desc: *const DML_OPERATOR_DESC, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).CreateOperator)(::windows_core::Interface::as_raw(self), desc, &T::IID, result__ as *mut _ as *mut _).ok() } pub unsafe fn CompileOperator(&self, op: P0, flags: DML_EXECUTION_FLAGS, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } pub unsafe fn CreateOperatorInitializer(&self, operators: ::core::option::Option<&[::core::option::Option]>) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).CreateOperatorInitializer)(::windows_core::Interface::as_raw(self), operators.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), ::core::mem::transmute(operators.as_deref().map_or(::core::ptr::null(), |slice| slice.as_ptr())), &T::IID, &mut result__).from_abi(result__) } pub unsafe fn CreateCommandRecorder(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).CreateCommandRecorder)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -270,7 +237,7 @@ impl IDMLDevice { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn CreateBindingTable(&self, desc: ::core::option::Option<*const DML_BINDING_TABLE_DESC>) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).CreateBindingTable)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(desc.unwrap_or(::std::ptr::null())), &T::IID, &mut result__).from_abi(result__) @@ -286,19 +253,12 @@ impl IDMLDevice { } pub unsafe fn GetParentDevice(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetParentDevice)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDMLDevice, ::windows_core::IUnknown, IDMLObject); -unsafe impl ::windows_core::Interface for IDMLDevice { - type Vtable = IDMLDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDMLDevice { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6dbd6437_96fd_423f_a98c_ae5e7c2a573f); -} #[repr(C)] #[doc(hidden)] pub struct IDMLDevice_Vtbl { @@ -317,9 +277,8 @@ pub struct IDMLDevice_Vtbl { pub GetDeviceRemovedReason: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetParentDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDMLDevice1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDMLDevice1, IDMLDevice1_Vtbl, 0xa0884f9a_d2be_4355_aa5d_5901281ad1d2); +::windows_core::imp::interface_hierarchy!(IDMLDevice1, ::windows_core::IUnknown, IDMLObject, IDMLDevice); impl IDMLDevice1 { pub unsafe fn GetPrivateData(&self, guid: *const ::windows_core::GUID, datasize: *mut u32, data: ::core::option::Option<*mut ::core::ffi::c_void>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.GetPrivateData)(::windows_core::Interface::as_raw(self), guid, datasize, ::core::mem::transmute(data.unwrap_or(::std::ptr::null_mut()))).ok() @@ -344,27 +303,27 @@ impl IDMLDevice1 { } pub unsafe fn CreateOperator(&self, desc: *const DML_OPERATOR_DESC, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.CreateOperator)(::windows_core::Interface::as_raw(self), desc, &T::IID, result__ as *mut _ as *mut _).ok() } pub unsafe fn CompileOperator(&self, op: P0, flags: DML_EXECUTION_FLAGS, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } pub unsafe fn CreateOperatorInitializer(&self, operators: ::core::option::Option<&[::core::option::Option]>) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.CreateOperatorInitializer)(::windows_core::Interface::as_raw(self), operators.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), ::core::mem::transmute(operators.as_deref().map_or(::core::ptr::null(), |slice| slice.as_ptr())), &T::IID, &mut result__).from_abi(result__) } pub unsafe fn CreateCommandRecorder(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.CreateCommandRecorder)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -373,7 +332,7 @@ impl IDMLDevice1 { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn CreateBindingTable(&self, desc: ::core::option::Option<*const DML_BINDING_TABLE_DESC>) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.CreateBindingTable)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(desc.unwrap_or(::std::ptr::null())), &T::IID, &mut result__).from_abi(result__) @@ -389,34 +348,26 @@ impl IDMLDevice1 { } pub unsafe fn GetParentDevice(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.GetParentDevice)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) } pub unsafe fn CompileGraph(&self, desc: *const DML_GRAPH_DESC, flags: DML_EXECUTION_FLAGS, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).CompileGraph)(::windows_core::Interface::as_raw(self), desc, flags, &T::IID, result__ as *mut _ as *mut _).ok() } } -::windows_core::imp::interface_hierarchy!(IDMLDevice1, ::windows_core::IUnknown, IDMLObject, IDMLDevice); -unsafe impl ::windows_core::Interface for IDMLDevice1 { - type Vtable = IDMLDevice1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDMLDevice1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa0884f9a_d2be_4355_aa5d_5901281ad1d2); -} #[repr(C)] #[doc(hidden)] pub struct IDMLDevice1_Vtbl { pub base__: IDMLDevice_Vtbl, pub CompileGraph: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, desc: *const DML_GRAPH_DESC, flags: DML_EXECUTION_FLAGS, riid: *const ::windows_core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDMLDeviceChild(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDMLDeviceChild, IDMLDeviceChild_Vtbl, 0x27e83142_8165_49e3_974e_2fd66e4cb69d); +::windows_core::imp::interface_hierarchy!(IDMLDeviceChild, ::windows_core::IUnknown, IDMLObject); impl IDMLDeviceChild { pub unsafe fn GetPrivateData(&self, guid: *const ::windows_core::GUID, datasize: *mut u32, data: ::core::option::Option<*mut ::core::ffi::c_void>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.GetPrivateData)(::windows_core::Interface::as_raw(self), guid, datasize, ::core::mem::transmute(data.unwrap_or(::std::ptr::null_mut()))).ok() @@ -438,28 +389,20 @@ impl IDMLDeviceChild { } pub unsafe fn GetDevice(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDMLDeviceChild, ::windows_core::IUnknown, IDMLObject); -unsafe impl ::windows_core::Interface for IDMLDeviceChild { - type Vtable = IDMLDeviceChild_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDMLDeviceChild { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x27e83142_8165_49e3_974e_2fd66e4cb69d); -} #[repr(C)] #[doc(hidden)] pub struct IDMLDeviceChild_Vtbl { pub base__: IDMLObject_Vtbl, pub GetDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDMLDispatchable(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDMLDispatchable, IDMLDispatchable_Vtbl, 0xdcb821a8_1039_441e_9f1c_b1759c2f3cec); +::windows_core::imp::interface_hierarchy!(IDMLDispatchable, ::windows_core::IUnknown, IDMLObject, IDMLDeviceChild, IDMLPageable); impl IDMLDispatchable { pub unsafe fn GetPrivateData(&self, guid: *const ::windows_core::GUID, datasize: *mut u32, data: ::core::option::Option<*mut ::core::ffi::c_void>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.GetPrivateData)(::windows_core::Interface::as_raw(self), guid, datasize, ::core::mem::transmute(data.unwrap_or(::std::ptr::null_mut()))).ok() @@ -481,7 +424,7 @@ impl IDMLDispatchable { } pub unsafe fn GetDevice(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -492,22 +435,14 @@ impl IDMLDispatchable { result__ } } -::windows_core::imp::interface_hierarchy!(IDMLDispatchable, ::windows_core::IUnknown, IDMLObject, IDMLDeviceChild, IDMLPageable); -unsafe impl ::windows_core::Interface for IDMLDispatchable { - type Vtable = IDMLDispatchable_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDMLDispatchable { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdcb821a8_1039_441e_9f1c_b1759c2f3cec); -} #[repr(C)] #[doc(hidden)] pub struct IDMLDispatchable_Vtbl { pub base__: IDMLPageable_Vtbl, pub GetBindingProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut DML_BINDING_PROPERTIES), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDMLObject(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDMLObject, IDMLObject_Vtbl, 0xc8263aac_9e0c_4a2d_9b8e_007521a3317c); +::windows_core::imp::interface_hierarchy!(IDMLObject, ::windows_core::IUnknown); impl IDMLObject { pub unsafe fn GetPrivateData(&self, guid: *const ::windows_core::GUID, datasize: *mut u32, data: ::core::option::Option<*mut ::core::ffi::c_void>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetPrivateData)(::windows_core::Interface::as_raw(self), guid, datasize, ::core::mem::transmute(data.unwrap_or(::std::ptr::null_mut()))).ok() @@ -528,13 +463,6 @@ impl IDMLObject { (::windows_core::Interface::vtable(self).SetName)(::windows_core::Interface::as_raw(self), name.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IDMLObject, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDMLObject { - type Vtable = IDMLObject_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDMLObject { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc8263aac_9e0c_4a2d_9b8e_007521a3317c); -} #[repr(C)] #[doc(hidden)] pub struct IDMLObject_Vtbl { @@ -544,9 +472,8 @@ pub struct IDMLObject_Vtbl { pub SetPrivateDataInterface: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guid: *const ::windows_core::GUID, data: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDMLOperator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDMLOperator, IDMLOperator_Vtbl, 0x26caae7a_3081_4633_9581_226fbe57695d); +::windows_core::imp::interface_hierarchy!(IDMLOperator, ::windows_core::IUnknown, IDMLObject, IDMLDeviceChild); impl IDMLOperator { pub unsafe fn GetPrivateData(&self, guid: *const ::windows_core::GUID, datasize: *mut u32, data: ::core::option::Option<*mut ::core::ffi::c_void>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.GetPrivateData)(::windows_core::Interface::as_raw(self), guid, datasize, ::core::mem::transmute(data.unwrap_or(::std::ptr::null_mut()))).ok() @@ -568,27 +495,19 @@ impl IDMLOperator { } pub unsafe fn GetDevice(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDMLOperator, ::windows_core::IUnknown, IDMLObject, IDMLDeviceChild); -unsafe impl ::windows_core::Interface for IDMLOperator { - type Vtable = IDMLOperator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDMLOperator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x26caae7a_3081_4633_9581_226fbe57695d); -} #[repr(C)] #[doc(hidden)] pub struct IDMLOperator_Vtbl { pub base__: IDMLDeviceChild_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDMLOperatorInitializer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDMLOperatorInitializer, IDMLOperatorInitializer_Vtbl, 0x427c1113_435c_469c_8676_4d5dd072f813); +::windows_core::imp::interface_hierarchy!(IDMLOperatorInitializer, ::windows_core::IUnknown, IDMLObject, IDMLDeviceChild, IDMLPageable, IDMLDispatchable); impl IDMLOperatorInitializer { pub unsafe fn GetPrivateData(&self, guid: *const ::windows_core::GUID, datasize: *mut u32, data: ::core::option::Option<*mut ::core::ffi::c_void>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.GetPrivateData)(::windows_core::Interface::as_raw(self), guid, datasize, ::core::mem::transmute(data.unwrap_or(::std::ptr::null_mut()))).ok() @@ -610,7 +529,7 @@ impl IDMLOperatorInitializer { } pub unsafe fn GetDevice(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -624,22 +543,14 @@ impl IDMLOperatorInitializer { (::windows_core::Interface::vtable(self).Reset)(::windows_core::Interface::as_raw(self), operators.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), ::core::mem::transmute(operators.as_deref().map_or(::core::ptr::null(), |slice| slice.as_ptr()))).ok() } } -::windows_core::imp::interface_hierarchy!(IDMLOperatorInitializer, ::windows_core::IUnknown, IDMLObject, IDMLDeviceChild, IDMLPageable, IDMLDispatchable); -unsafe impl ::windows_core::Interface for IDMLOperatorInitializer { - type Vtable = IDMLOperatorInitializer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDMLOperatorInitializer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x427c1113_435c_469c_8676_4d5dd072f813); -} #[repr(C)] #[doc(hidden)] pub struct IDMLOperatorInitializer_Vtbl { pub base__: IDMLDispatchable_Vtbl, pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, operatorcount: u32, operators: *const *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDMLPageable(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDMLPageable, IDMLPageable_Vtbl, 0xb1ab0825_4542_4a4b_8617_6dde6e8f6201); +::windows_core::imp::interface_hierarchy!(IDMLPageable, ::windows_core::IUnknown, IDMLObject, IDMLDeviceChild); impl IDMLPageable { pub unsafe fn GetPrivateData(&self, guid: *const ::windows_core::GUID, datasize: *mut u32, data: ::core::option::Option<*mut ::core::ffi::c_void>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.GetPrivateData)(::windows_core::Interface::as_raw(self), guid, datasize, ::core::mem::transmute(data.unwrap_or(::std::ptr::null_mut()))).ok() @@ -661,19 +572,12 @@ impl IDMLPageable { } pub unsafe fn GetDevice(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDMLPageable, ::windows_core::IUnknown, IDMLObject, IDMLDeviceChild); -unsafe impl ::windows_core::Interface for IDMLPageable { - type Vtable = IDMLPageable_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDMLPageable { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb1ab0825_4542_4a4b_8617_6dde6e8f6201); -} #[repr(C)] #[doc(hidden)] pub struct IDMLPageable_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/AI/MachineLearning/WinML/impl.rs b/crates/libs/windows/src/Windows/Win32/AI/MachineLearning/WinML/impl.rs index 7e1294ea6e..bb8e52c8ce 100644 --- a/crates/libs/windows/src/Windows/Win32/AI/MachineLearning/WinML/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/AI/MachineLearning/WinML/impl.rs @@ -48,7 +48,7 @@ impl IMLOperatorAttributes_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMLOperatorKernel_Impl: Sized { @@ -65,7 +65,7 @@ impl IMLOperatorKernel_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Compute: Compute:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMLOperatorKernelContext_Impl: Sized { @@ -137,7 +137,7 @@ impl IMLOperatorKernelContext_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMLOperatorKernelCreationContext_Impl: Sized + IMLOperatorAttributes_Impl { @@ -231,7 +231,7 @@ impl IMLOperatorKernelCreationContext_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IMLOperatorKernelFactory_Impl: Sized { @@ -254,7 +254,7 @@ impl IMLOperatorKernelFactory_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CreateKernel: CreateKernel:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMLOperatorRegistry_Impl: Sized { @@ -281,7 +281,7 @@ impl IMLOperatorRegistry_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMLOperatorShapeInferenceContext_Impl: Sized + IMLOperatorAttributes_Impl { @@ -362,7 +362,7 @@ impl IMLOperatorShapeInferenceContext_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IMLOperatorShapeInferrer_Impl: Sized { @@ -379,7 +379,7 @@ impl IMLOperatorShapeInferrer_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), InferOutputShapes: InferOutputShapes:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMLOperatorTensor_Impl: Sized { @@ -441,7 +441,7 @@ impl IMLOperatorTensor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMLOperatorTensorShapeDescription_Impl: Sized { @@ -501,7 +501,7 @@ impl IMLOperatorTensorShapeDescription_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMLOperatorTypeInferenceContext_Impl: Sized + IMLOperatorAttributes_Impl { @@ -562,7 +562,7 @@ impl IMLOperatorTypeInferenceContext_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IMLOperatorTypeInferrer_Impl: Sized { @@ -579,7 +579,7 @@ impl IMLOperatorTypeInferrer_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), InferOutputTypes: InferOutputTypes:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] @@ -623,7 +623,7 @@ impl IWinMLEvaluationContext_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWinMLModel_Impl: Sized { @@ -682,7 +682,7 @@ impl IWinMLModel_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] @@ -732,7 +732,7 @@ impl IWinMLRuntime_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWinMLRuntimeFactory_Impl: Sized { @@ -755,6 +755,6 @@ impl IWinMLRuntimeFactory_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CreateRuntime: CreateRuntime:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 c555501c71..5a158e0eac 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 @@ -10,9 +10,8 @@ pub unsafe fn WinMLCreateRuntime() -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); WinMLCreateRuntime(&mut result__).from_abi(result__) } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMLOperatorAttributes(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMLOperatorAttributes, IMLOperatorAttributes_Vtbl, 0x4b1b1759_ec40_466c_aab4_beb5347fd24c); +::windows_core::imp::interface_hierarchy!(IMLOperatorAttributes, ::windows_core::IUnknown); impl IMLOperatorAttributes { pub unsafe fn GetAttributeElementCount(&self, name: P0, r#type: MLOperatorAttributeType) -> ::windows_core::Result where @@ -41,13 +40,6 @@ impl IMLOperatorAttributes { (::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::imp::interface_hierarchy!(IMLOperatorAttributes, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMLOperatorAttributes { - type Vtable = IMLOperatorAttributes_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMLOperatorAttributes { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4b1b1759_ec40_466c_aab4_beb5347fd24c); -} #[repr(C)] #[doc(hidden)] pub struct IMLOperatorAttributes_Vtbl { @@ -57,9 +49,8 @@ pub struct IMLOperatorAttributes_Vtbl { pub GetStringAttributeElementLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::windows_core::PCSTR, elementindex: u32, attributeelementbytesize: *mut u32) -> ::windows_core::HRESULT, pub GetStringAttributeElement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::windows_core::PCSTR, elementindex: u32, attributeelementbytesize: u32, attributeelement: ::windows_core::PSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMLOperatorKernel(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMLOperatorKernel, IMLOperatorKernel_Vtbl, 0x11c4b4a0_b467_4eaa_a1a6_b961d8d0ed79); +::windows_core::imp::interface_hierarchy!(IMLOperatorKernel, ::windows_core::IUnknown); impl IMLOperatorKernel { pub unsafe fn Compute(&self, context: P0) -> ::windows_core::Result<()> where @@ -68,22 +59,14 @@ impl IMLOperatorKernel { (::windows_core::Interface::vtable(self).Compute)(::windows_core::Interface::as_raw(self), context.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMLOperatorKernel, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMLOperatorKernel { - type Vtable = IMLOperatorKernel_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMLOperatorKernel { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x11c4b4a0_b467_4eaa_a1a6_b961d8d0ed79); -} #[repr(C)] #[doc(hidden)] pub struct IMLOperatorKernel_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Compute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMLOperatorKernelContext(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMLOperatorKernelContext, IMLOperatorKernelContext_Vtbl, 0x82536a28_f022_4769_9d3f_8b278f84c0c3); +::windows_core::imp::interface_hierarchy!(IMLOperatorKernelContext, ::windows_core::IUnknown); impl IMLOperatorKernelContext { pub unsafe fn GetInputTensor(&self, inputindex: u32) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -107,13 +90,6 @@ impl IMLOperatorKernelContext { ::windows_core::from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMLOperatorKernelContext, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMLOperatorKernelContext { - type Vtable = IMLOperatorKernelContext_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMLOperatorKernelContext { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x82536a28_f022_4769_9d3f_8b278f84c0c3); -} #[repr(C)] #[doc(hidden)] pub struct IMLOperatorKernelContext_Vtbl { @@ -124,9 +100,8 @@ pub struct IMLOperatorKernelContext_Vtbl { pub AllocateTemporaryData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, size: usize, data: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetExecutionInterface: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, executionobject: *mut *mut ::core::ffi::c_void), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMLOperatorKernelCreationContext(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMLOperatorKernelCreationContext, IMLOperatorKernelCreationContext_Vtbl, 0x5459b53d_a0fc_4665_addd_70171ef7e631); +::windows_core::imp::interface_hierarchy!(IMLOperatorKernelCreationContext, ::windows_core::IUnknown, IMLOperatorAttributes); impl IMLOperatorKernelCreationContext { pub unsafe fn GetAttributeElementCount(&self, name: P0, r#type: MLOperatorAttributeType) -> ::windows_core::Result where @@ -187,13 +162,6 @@ impl IMLOperatorKernelCreationContext { ::windows_core::from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMLOperatorKernelCreationContext, ::windows_core::IUnknown, IMLOperatorAttributes); -unsafe impl ::windows_core::Interface for IMLOperatorKernelCreationContext { - type Vtable = IMLOperatorKernelCreationContext_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMLOperatorKernelCreationContext { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5459b53d_a0fc_4665_addd_70171ef7e631); -} #[repr(C)] #[doc(hidden)] pub struct IMLOperatorKernelCreationContext_Vtbl { @@ -208,9 +176,8 @@ pub struct IMLOperatorKernelCreationContext_Vtbl { pub GetTensorShapeDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, shapedescription: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetExecutionInterface: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, executionobject: *mut *mut ::core::ffi::c_void), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMLOperatorKernelFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMLOperatorKernelFactory, IMLOperatorKernelFactory_Vtbl, 0xef15ad6f_0dc9_4908_ab35_a575a30dfbf8); +::windows_core::imp::interface_hierarchy!(IMLOperatorKernelFactory, ::windows_core::IUnknown); impl IMLOperatorKernelFactory { pub unsafe fn CreateKernel(&self, context: P0) -> ::windows_core::Result where @@ -220,22 +187,14 @@ impl IMLOperatorKernelFactory { (::windows_core::Interface::vtable(self).CreateKernel)(::windows_core::Interface::as_raw(self), context.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMLOperatorKernelFactory, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMLOperatorKernelFactory { - type Vtable = IMLOperatorKernelFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMLOperatorKernelFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xef15ad6f_0dc9_4908_ab35_a575a30dfbf8); -} #[repr(C)] #[doc(hidden)] pub struct IMLOperatorKernelFactory_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub CreateKernel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, kernel: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMLOperatorRegistry(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMLOperatorRegistry, IMLOperatorRegistry_Vtbl, 0x2af9dd2d_b516_4672_9ab5_530c208493ad); +::windows_core::imp::interface_hierarchy!(IMLOperatorRegistry, ::windows_core::IUnknown); impl IMLOperatorRegistry { pub unsafe fn RegisterOperatorSetSchema(&self, operatorsetid: *const MLOperatorSetId, baselineversion: i32, schema: ::core::option::Option<&[*const MLOperatorSchemaDescription]>, typeinferrer: P0, shapeinferrer: P1) -> ::windows_core::Result<()> where @@ -252,13 +211,6 @@ impl IMLOperatorRegistry { (::windows_core::Interface::vtable(self).RegisterOperatorKernel)(::windows_core::Interface::as_raw(self), operatorkernel, operatorkernelfactory.into_param().abi(), shapeinferrer.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMLOperatorRegistry, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMLOperatorRegistry { - type Vtable = IMLOperatorRegistry_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMLOperatorRegistry { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2af9dd2d_b516_4672_9ab5_530c208493ad); -} #[repr(C)] #[doc(hidden)] pub struct IMLOperatorRegistry_Vtbl { @@ -266,9 +218,8 @@ pub struct IMLOperatorRegistry_Vtbl { pub RegisterOperatorSetSchema: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, operatorsetid: *const MLOperatorSetId, baselineversion: i32, schema: *const *const MLOperatorSchemaDescription, schemacount: u32, typeinferrer: *mut ::core::ffi::c_void, shapeinferrer: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RegisterOperatorKernel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, operatorkernel: *const MLOperatorKernelDescription, operatorkernelfactory: *mut ::core::ffi::c_void, shapeinferrer: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMLOperatorShapeInferenceContext(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMLOperatorShapeInferenceContext, IMLOperatorShapeInferenceContext_Vtbl, 0x105b6b29_5408_4a68_9959_09b5955a3492); +::windows_core::imp::interface_hierarchy!(IMLOperatorShapeInferenceContext, ::windows_core::IUnknown, IMLOperatorAttributes); impl IMLOperatorShapeInferenceContext { pub unsafe fn GetAttributeElementCount(&self, name: P0, r#type: MLOperatorAttributeType) -> ::windows_core::Result where @@ -323,13 +274,6 @@ impl IMLOperatorShapeInferenceContext { (::windows_core::Interface::vtable(self).SetOutputTensorShape)(::windows_core::Interface::as_raw(self), outputindex, dimensioncount, dimensions).ok() } } -::windows_core::imp::interface_hierarchy!(IMLOperatorShapeInferenceContext, ::windows_core::IUnknown, IMLOperatorAttributes); -unsafe impl ::windows_core::Interface for IMLOperatorShapeInferenceContext { - type Vtable = IMLOperatorShapeInferenceContext_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMLOperatorShapeInferenceContext { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x105b6b29_5408_4a68_9959_09b5955a3492); -} #[repr(C)] #[doc(hidden)] pub struct IMLOperatorShapeInferenceContext_Vtbl { @@ -343,9 +287,8 @@ pub struct IMLOperatorShapeInferenceContext_Vtbl { pub GetInputTensorShape: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, inputindex: u32, dimensioncount: u32, dimensions: *mut u32) -> ::windows_core::HRESULT, pub SetOutputTensorShape: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, outputindex: u32, dimensioncount: u32, dimensions: *const u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMLOperatorShapeInferrer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMLOperatorShapeInferrer, IMLOperatorShapeInferrer_Vtbl, 0x540be5be_a6c9_40ee_83f6_d2b8b40a7798); +::windows_core::imp::interface_hierarchy!(IMLOperatorShapeInferrer, ::windows_core::IUnknown); impl IMLOperatorShapeInferrer { pub unsafe fn InferOutputShapes(&self, context: P0) -> ::windows_core::Result<()> where @@ -354,22 +297,14 @@ impl IMLOperatorShapeInferrer { (::windows_core::Interface::vtable(self).InferOutputShapes)(::windows_core::Interface::as_raw(self), context.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMLOperatorShapeInferrer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMLOperatorShapeInferrer { - type Vtable = IMLOperatorShapeInferrer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMLOperatorShapeInferrer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x540be5be_a6c9_40ee_83f6_d2b8b40a7798); -} #[repr(C)] #[doc(hidden)] pub struct IMLOperatorShapeInferrer_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub InferOutputShapes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMLOperatorTensor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMLOperatorTensor, IMLOperatorTensor_Vtbl, 0x7fe41f41_f430_440e_aece_54416dc8b9db); +::windows_core::imp::interface_hierarchy!(IMLOperatorTensor, ::windows_core::IUnknown); impl IMLOperatorTensor { pub unsafe fn GetDimensionCount(&self) -> u32 { (::windows_core::Interface::vtable(self).GetDimensionCount)(::windows_core::Interface::as_raw(self)) @@ -395,13 +330,6 @@ impl IMLOperatorTensor { ::windows_core::from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMLOperatorTensor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMLOperatorTensor { - type Vtable = IMLOperatorTensor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMLOperatorTensor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7fe41f41_f430_440e_aece_54416dc8b9db); -} #[repr(C)] #[doc(hidden)] pub struct IMLOperatorTensor_Vtbl { @@ -414,9 +342,8 @@ pub struct IMLOperatorTensor_Vtbl { pub GetData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> *mut ::core::ffi::c_void, pub GetDataInterface: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, datainterface: *mut *mut ::core::ffi::c_void), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMLOperatorTensorShapeDescription(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMLOperatorTensorShapeDescription, IMLOperatorTensorShapeDescription_Vtbl, 0xf20e8cbe_3b28_4248_be95_f96fbc6e4643); +::windows_core::imp::interface_hierarchy!(IMLOperatorTensorShapeDescription, ::windows_core::IUnknown); impl IMLOperatorTensorShapeDescription { pub unsafe fn GetInputTensorDimensionCount(&self, inputindex: u32) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -436,13 +363,6 @@ impl IMLOperatorTensorShapeDescription { (::windows_core::Interface::vtable(self).GetOutputTensorShape)(::windows_core::Interface::as_raw(self), outputindex, dimensions.len().try_into().unwrap(), ::core::mem::transmute(dimensions.as_ptr())).ok() } } -::windows_core::imp::interface_hierarchy!(IMLOperatorTensorShapeDescription, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMLOperatorTensorShapeDescription { - type Vtable = IMLOperatorTensorShapeDescription_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMLOperatorTensorShapeDescription { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf20e8cbe_3b28_4248_be95_f96fbc6e4643); -} #[repr(C)] #[doc(hidden)] pub struct IMLOperatorTensorShapeDescription_Vtbl { @@ -453,9 +373,8 @@ pub struct IMLOperatorTensorShapeDescription_Vtbl { pub GetOutputTensorDimensionCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, outputindex: u32, dimensioncount: *mut u32) -> ::windows_core::HRESULT, pub GetOutputTensorShape: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, outputindex: u32, dimensioncount: u32, dimensions: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMLOperatorTypeInferenceContext(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMLOperatorTypeInferenceContext, IMLOperatorTypeInferenceContext_Vtbl, 0xec893bb1_f938_427b_8488_c8dcf775f138); +::windows_core::imp::interface_hierarchy!(IMLOperatorTypeInferenceContext, ::windows_core::IUnknown, IMLOperatorAttributes); impl IMLOperatorTypeInferenceContext { pub unsafe fn GetAttributeElementCount(&self, name: P0, r#type: MLOperatorAttributeType) -> ::windows_core::Result where @@ -503,13 +422,6 @@ impl IMLOperatorTypeInferenceContext { (::windows_core::Interface::vtable(self).SetOutputEdgeDescription)(::windows_core::Interface::as_raw(self), outputindex, edgedescription).ok() } } -::windows_core::imp::interface_hierarchy!(IMLOperatorTypeInferenceContext, ::windows_core::IUnknown, IMLOperatorAttributes); -unsafe impl ::windows_core::Interface for IMLOperatorTypeInferenceContext { - type Vtable = IMLOperatorTypeInferenceContext_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMLOperatorTypeInferenceContext { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xec893bb1_f938_427b_8488_c8dcf775f138); -} #[repr(C)] #[doc(hidden)] pub struct IMLOperatorTypeInferenceContext_Vtbl { @@ -521,9 +433,8 @@ pub struct IMLOperatorTypeInferenceContext_Vtbl { pub GetInputEdgeDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, inputindex: u32, edgedescription: *mut MLOperatorEdgeDescription) -> ::windows_core::HRESULT, pub SetOutputEdgeDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, outputindex: u32, edgedescription: *const MLOperatorEdgeDescription) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMLOperatorTypeInferrer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMLOperatorTypeInferrer, IMLOperatorTypeInferrer_Vtbl, 0x781aeb48_9bcb_4797_bf77_8bf455217beb); +::windows_core::imp::interface_hierarchy!(IMLOperatorTypeInferrer, ::windows_core::IUnknown); impl IMLOperatorTypeInferrer { pub unsafe fn InferOutputTypes(&self, context: P0) -> ::windows_core::Result<()> where @@ -532,22 +443,14 @@ impl IMLOperatorTypeInferrer { (::windows_core::Interface::vtable(self).InferOutputTypes)(::windows_core::Interface::as_raw(self), context.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMLOperatorTypeInferrer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMLOperatorTypeInferrer { - type Vtable = IMLOperatorTypeInferrer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMLOperatorTypeInferrer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x781aeb48_9bcb_4797_bf77_8bf455217beb); -} #[repr(C)] #[doc(hidden)] pub struct IMLOperatorTypeInferrer_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub InferOutputTypes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWinMLEvaluationContext(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWinMLEvaluationContext, IWinMLEvaluationContext_Vtbl, 0x95848f9e_583d_4054_af12_916387cd8426); +::windows_core::imp::interface_hierarchy!(IWinMLEvaluationContext, ::windows_core::IUnknown); impl IWinMLEvaluationContext { #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] #[cfg(feature = "Win32_Graphics_Direct3D12")] @@ -567,13 +470,6 @@ impl IWinMLEvaluationContext { (::windows_core::Interface::vtable(self).Clear)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IWinMLEvaluationContext, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWinMLEvaluationContext { - type Vtable = IWinMLEvaluationContext_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWinMLEvaluationContext { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x95848f9e_583d_4054_af12_916387cd8426); -} #[repr(C)] #[doc(hidden)] pub struct IWinMLEvaluationContext_Vtbl { @@ -588,9 +484,8 @@ pub struct IWinMLEvaluationContext_Vtbl { GetValueByName: usize, pub Clear: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWinMLModel(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWinMLModel, IWinMLModel_Vtbl, 0xe2eeb6a9_f31f_4055_a521_e30b5b33664a); +::windows_core::imp::interface_hierarchy!(IWinMLModel, ::windows_core::IUnknown); impl IWinMLModel { pub unsafe fn GetDescription(&self) -> ::windows_core::Result<*mut WINML_MODEL_DESC> { let mut result__ = ::std::mem::zeroed(); @@ -608,13 +503,6 @@ impl IWinMLModel { (::windows_core::Interface::vtable(self).EnumerateModelOutputs)(::windows_core::Interface::as_raw(self), index, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWinMLModel, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWinMLModel { - type Vtable = IWinMLModel_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWinMLModel { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe2eeb6a9_f31f_4055_a521_e30b5b33664a); -} #[repr(C)] #[doc(hidden)] pub struct IWinMLModel_Vtbl { @@ -624,9 +512,8 @@ pub struct IWinMLModel_Vtbl { pub EnumerateModelInputs: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, ppinputdescriptor: *mut *mut WINML_VARIABLE_DESC) -> ::windows_core::HRESULT, pub EnumerateModelOutputs: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, ppoutputdescriptor: *mut *mut WINML_VARIABLE_DESC) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWinMLRuntime(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWinMLRuntime, IWinMLRuntime_Vtbl, 0xa0425329_40ae_48d9_bce3_829ef7b8a41a); +::windows_core::imp::interface_hierarchy!(IWinMLRuntime, ::windows_core::IUnknown); impl IWinMLRuntime { pub unsafe fn LoadModel(&self, path: P0) -> ::windows_core::Result where @@ -651,13 +538,6 @@ impl IWinMLRuntime { (::windows_core::Interface::vtable(self).EvaluateModel)(::windows_core::Interface::as_raw(self), pcontext.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IWinMLRuntime, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWinMLRuntime { - type Vtable = IWinMLRuntime_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWinMLRuntime { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa0425329_40ae_48d9_bce3_829ef7b8a41a); -} #[repr(C)] #[doc(hidden)] pub struct IWinMLRuntime_Vtbl { @@ -669,22 +549,14 @@ pub struct IWinMLRuntime_Vtbl { CreateEvaluationContext: usize, pub EvaluateModel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcontext: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWinMLRuntimeFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWinMLRuntimeFactory, IWinMLRuntimeFactory_Vtbl, 0xa807b84d_4ae5_4bc0_a76a_941aa246bd41); +::windows_core::imp::interface_hierarchy!(IWinMLRuntimeFactory, ::windows_core::IUnknown); impl IWinMLRuntimeFactory { pub unsafe fn CreateRuntime(&self, runtimetype: WINML_RUNTIME_TYPE) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).CreateRuntime)(::windows_core::Interface::as_raw(self), runtimetype, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWinMLRuntimeFactory, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWinMLRuntimeFactory { - type Vtable = IWinMLRuntimeFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWinMLRuntimeFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa807b84d_4ae5_4bc0_a76a_941aa246bd41); -} #[repr(C)] #[doc(hidden)] pub struct IWinMLRuntimeFactory_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Data/HtmlHelp/impl.rs b/crates/libs/windows/src/Windows/Win32/Data/HtmlHelp/impl.rs index 9d5e7cbec9..18d96263ac 100644 --- a/crates/libs/windows/src/Windows/Win32/Data/HtmlHelp/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Data/HtmlHelp/impl.rs @@ -43,7 +43,7 @@ impl IITDatabase_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -186,7 +186,7 @@ impl IITPropList_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IITResultSet_Impl: Sized { @@ -409,7 +409,7 @@ impl IITResultSet_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IStemSink_Impl: Sized { @@ -436,7 +436,7 @@ impl IStemSink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -488,7 +488,7 @@ impl IStemmerConfig_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Search\"`"] @@ -574,6 +574,6 @@ impl IWordBreakerConfig_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 07ad198851..ce081cf944 100644 --- a/crates/libs/windows/src/Windows/Win32/Data/HtmlHelp/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Data/HtmlHelp/mod.rs @@ -16,9 +16,8 @@ where ::windows_targets::link!("htmlhelp.dll" "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) } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IITDatabase(::windows_core::IUnknown); +::windows_core::imp::com_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 @@ -44,13 +43,6 @@ impl IITDatabase { (::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::imp::interface_hierarchy!(IITDatabase, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IITDatabase { - type Vtable = IITDatabase_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IITDatabase { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8fa0d5a2_dedf_11d0_9a61_00c04fb68bf7); -} #[repr(C)] #[doc(hidden)] pub struct IITDatabase_Vtbl { @@ -61,11 +53,15 @@ pub struct IITDatabase_Vtbl { pub GetObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwobjinstance: u32, riid: *const ::windows_core::GUID, ppvobj: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetObjectPersistence: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpwszobject: ::windows_core::PCWSTR, dwobjinstance: u32, ppvpersistence: *mut *mut ::core::ffi::c_void, fstream: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IITPropList(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IITPropList, + IITPropList_Vtbl, + 0x1f403bb1_9997_11d0_a850_00aa006c7d01 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IITPropList, ::windows_core::IUnknown, super::super::System::Com::IPersist, super::super::System::Com::IPersistStreamInit); #[cfg(feature = "Win32_System_Com")] impl IITPropList { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -177,16 +173,6 @@ impl IITPropList { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IITPropList, ::windows_core::IUnknown, super::super::System::Com::IPersist, super::super::System::Com::IPersistStreamInit); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IITPropList { - type Vtable = IITPropList_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IITPropList { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1f403bb1_9997_11d0_a850_00aa006c7d01); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IITPropList_Vtbl { @@ -213,9 +199,8 @@ pub struct IITPropList_Vtbl { pub LoadFromMem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpvdata: *mut ::core::ffi::c_void, dwbufsize: u32) -> ::windows_core::HRESULT, pub SaveToMem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpvdata: *mut ::core::ffi::c_void, dwbufsize: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IITResultSet(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IITResultSet, IITResultSet_Vtbl, 0x3bb91d41_998b_11d0_a850_00aa006c7d01); +::windows_core::imp::interface_hierarchy!(IITResultSet, ::windows_core::IUnknown); impl IITResultSet { pub unsafe fn SetColumnPriority(&self, lcolumnindex: i32, columnpriority: PRIORITY) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetColumnPriority)(::windows_core::Interface::as_raw(self), lcolumnindex, columnpriority).ok() @@ -323,13 +308,6 @@ impl IITResultSet { (::windows_core::Interface::vtable(self).GetColumnStatus)(::windows_core::Interface::as_raw(self), lpcolstatus).ok() } } -::windows_core::imp::interface_hierarchy!(IITResultSet, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IITResultSet { - type Vtable = IITResultSet_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IITResultSet { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3bb91d41_998b_11d0_a850_00aa006c7d01); -} #[repr(C)] #[doc(hidden)] pub struct IITResultSet_Vtbl { @@ -365,9 +343,8 @@ pub struct IITResultSet_Vtbl { pub GetRowStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lrowfirst: i32, crows: i32, lprowstatus: *mut ROWSTATUS) -> ::windows_core::HRESULT, pub GetColumnStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpcolstatus: *mut COLUMNSTATUS) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStemSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IStemSink, IStemSink_Vtbl, 0xfe77c330_7f42_11ce_be57_00aa0051fe20); +::windows_core::imp::interface_hierarchy!(IStemSink, ::windows_core::IUnknown); impl IStemSink { pub unsafe fn PutAltWord(&self, pwcinbuf: P0, cwc: u32) -> ::windows_core::Result<()> where @@ -382,13 +359,6 @@ impl IStemSink { (::windows_core::Interface::vtable(self).PutWord)(::windows_core::Interface::as_raw(self), pwcinbuf.into_param().abi(), cwc).ok() } } -::windows_core::imp::interface_hierarchy!(IStemSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStemSink { - type Vtable = IStemSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStemSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfe77c330_7f42_11ce_be57_00aa0051fe20); -} #[repr(C)] #[doc(hidden)] pub struct IStemSink_Vtbl { @@ -396,9 +366,8 @@ pub struct IStemSink_Vtbl { pub PutAltWord: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwcinbuf: ::windows_core::PCWSTR, cwc: u32) -> ::windows_core::HRESULT, pub PutWord: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwcinbuf: ::windows_core::PCWSTR, cwc: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStemmerConfig(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IStemmerConfig, IStemmerConfig_Vtbl, 0x8fa0d5a7_dedf_11d0_9a61_00c04fb68bf7); +::windows_core::imp::interface_hierarchy!(IStemmerConfig, ::windows_core::IUnknown); impl IStemmerConfig { pub unsafe fn SetLocaleInfo(&self, dwcodepageid: u32, lcid: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetLocaleInfo)(::windows_core::Interface::as_raw(self), dwcodepageid, lcid).ok() @@ -421,13 +390,6 @@ impl IStemmerConfig { (::windows_core::Interface::vtable(self).LoadExternalStemmerData)(::windows_core::Interface::as_raw(self), pstream.into_param().abi(), dwextdatatype).ok() } } -::windows_core::imp::interface_hierarchy!(IStemmerConfig, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStemmerConfig { - type Vtable = IStemmerConfig_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStemmerConfig { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8fa0d5a7_dedf_11d0_9a61_00c04fb68bf7); -} #[repr(C)] #[doc(hidden)] pub struct IStemmerConfig_Vtbl { @@ -441,9 +403,8 @@ pub struct IStemmerConfig_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] LoadExternalStemmerData: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWordBreakerConfig(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWordBreakerConfig, IWordBreakerConfig_Vtbl, 0x8fa0d5a6_dedf_11d0_9a61_00c04fb68bf7); +::windows_core::imp::interface_hierarchy!(IWordBreakerConfig, ::windows_core::IUnknown); impl IWordBreakerConfig { pub unsafe fn SetLocaleInfo(&self, dwcodepageid: u32, lcid: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetLocaleInfo)(::windows_core::Interface::as_raw(self), dwcodepageid, lcid).ok() @@ -486,13 +447,6 @@ impl IWordBreakerConfig { (::windows_core::Interface::vtable(self).GetWordStemmer)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWordBreakerConfig, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWordBreakerConfig { - type Vtable = IWordBreakerConfig_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWordBreakerConfig { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8fa0d5a6_dedf_11d0_9a61_00c04fb68bf7); -} #[repr(C)] #[doc(hidden)] pub struct IWordBreakerConfig_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Data/Xml/MsXml/impl.rs b/crates/libs/windows/src/Windows/Win32/Data/Xml/MsXml/impl.rs index fd6653217d..c88bbe9efa 100644 --- a/crates/libs/windows/src/Windows/Win32/Data/Xml/MsXml/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Data/Xml/MsXml/impl.rs @@ -89,7 +89,7 @@ impl IMXAttributes_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -182,7 +182,7 @@ impl IMXNamespaceManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -238,7 +238,7 @@ impl IMXNamespacePrefixes_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -276,7 +276,7 @@ impl IMXReaderControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -300,7 +300,7 @@ impl IMXSchemaDeclHandler_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -484,7 +484,7 @@ impl IMXWriter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -621,7 +621,7 @@ impl IMXXMLFilter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ISAXAttributes_Impl: Sized { @@ -743,7 +743,7 @@ impl ISAXAttributes_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISAXContentHandler_Impl: Sized { @@ -833,7 +833,7 @@ impl ISAXContentHandler_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISAXDTDHandler_Impl: Sized { @@ -860,7 +860,7 @@ impl ISAXDTDHandler_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISAXDeclHandler_Impl: Sized { @@ -901,7 +901,7 @@ impl ISAXDeclHandler_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -928,7 +928,7 @@ impl ISAXEntityResolver_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), resolveEntity: resolveEntity:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISAXErrorHandler_Impl: Sized { @@ -962,7 +962,7 @@ impl ISAXErrorHandler_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISAXLexicalHandler_Impl: Sized { @@ -1024,7 +1024,7 @@ impl ISAXLexicalHandler_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISAXLocator_Impl: Sized { @@ -1089,7 +1089,7 @@ impl ISAXLocator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1126,7 +1126,7 @@ impl ISAXXMLFilter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1317,7 +1317,7 @@ impl ISAXXMLReader_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1451,7 +1451,7 @@ impl ISchema_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1494,7 +1494,7 @@ impl ISchemaAny_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1589,7 +1589,7 @@ impl ISchemaAttribute_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1632,7 +1632,7 @@ impl ISchemaAttributeGroup_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1727,7 +1727,7 @@ impl ISchemaComplexType_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1887,7 +1887,7 @@ impl ISchemaElement_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1943,7 +1943,7 @@ impl ISchemaIdentityConstraint_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2051,7 +2051,7 @@ impl ISchemaItem_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2133,7 +2133,7 @@ impl ISchemaItemCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2160,7 +2160,7 @@ impl ISchemaModelGroup_Vtbl { Self { base__: ISchemaParticle_Vtbl::new::(), particles: particles:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2203,7 +2203,7 @@ impl ISchemaNotation_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2246,7 +2246,7 @@ impl ISchemaParticle_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2302,7 +2302,7 @@ impl ISchemaStringCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2540,7 +2540,7 @@ impl ISchemaType_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2597,7 +2597,7 @@ impl IServerXMLHTTPRequest_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2628,7 +2628,7 @@ impl IServerXMLHTTPRequest2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2752,7 +2752,7 @@ impl IVBMXNamespaceManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2925,7 +2925,7 @@ impl IVBSAXAttributes_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3019,7 +3019,7 @@ impl IVBSAXContentHandler_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3050,7 +3050,7 @@ impl IVBSAXDTDHandler_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3095,7 +3095,7 @@ impl IVBSAXDeclHandler_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3119,7 +3119,7 @@ impl IVBSAXEntityResolver_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3157,7 +3157,7 @@ impl IVBSAXErrorHandler_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3223,7 +3223,7 @@ impl IVBSAXLexicalHandler_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3292,7 +3292,7 @@ impl IVBSAXLocator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3329,7 +3329,7 @@ impl IVBSAXXMLFilter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3520,7 +3520,7 @@ impl IVBSAXXMLReader_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3563,7 +3563,7 @@ impl IXMLAttribute_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3613,7 +3613,7 @@ impl IXMLDOMAttribute_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3627,7 +3627,7 @@ impl IXMLDOMCDATASection_Vtbl { Self { base__: IXMLDOMText_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3718,7 +3718,7 @@ impl IXMLDOMCharacterData_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3732,7 +3732,7 @@ impl IXMLDOMComment_Vtbl { Self { base__: IXMLDOMCharacterData_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4118,7 +4118,7 @@ impl IXMLDOMDocument_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4201,7 +4201,7 @@ impl IXMLDOMDocument2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4244,7 +4244,7 @@ impl IXMLDOMDocument3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4258,7 +4258,7 @@ impl IXMLDOMDocumentFragment_Vtbl { Self { base__: IXMLDOMNode_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4314,7 +4314,7 @@ impl IXMLDOMDocumentType_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4430,7 +4430,7 @@ impl IXMLDOMElement_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4486,7 +4486,7 @@ impl IXMLDOMEntity_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4500,7 +4500,7 @@ impl IXMLDOMEntityReference_Vtbl { Self { base__: IXMLDOMNode_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4527,7 +4527,7 @@ impl IXMLDOMImplementation_Vtbl { Self { base__: super::super::super::System::Com::IDispatch_Vtbl::new::(), hasFeature: hasFeature:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4668,7 +4668,7 @@ impl IXMLDOMNamedNodeMap_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5123,7 +5123,7 @@ impl IXMLDOMNode_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5199,7 +5199,7 @@ impl IXMLDOMNodeList_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5242,7 +5242,7 @@ impl IXMLDOMNotation_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5350,7 +5350,7 @@ impl IXMLDOMParseError_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5419,7 +5419,7 @@ impl IXMLDOMParseError2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5495,7 +5495,7 @@ impl IXMLDOMParseErrorCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5545,7 +5545,7 @@ impl IXMLDOMProcessingInstruction_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5635,7 +5635,7 @@ impl IXMLDOMSchemaCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5705,7 +5705,7 @@ impl IXMLDOMSchemaCollection2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5841,7 +5841,7 @@ impl IXMLDOMSelection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5868,7 +5868,7 @@ impl IXMLDOMText_Vtbl { Self { base__: IXMLDOMCharacterData_Vtbl::new::(), splitText: splitText:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5938,7 +5938,7 @@ impl IXMLDSOControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6125,7 +6125,7 @@ impl IXMLDocument_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6332,7 +6332,7 @@ impl IXMLDocument2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6469,7 +6469,7 @@ impl IXMLElement_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6619,7 +6619,7 @@ impl IXMLElement2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6682,7 +6682,7 @@ impl IXMLElementCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IXMLError_Impl: Sized { @@ -6699,7 +6699,7 @@ impl IXMLError_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetErrorInfo: GetErrorInfo:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6868,7 +6868,7 @@ impl IXMLHTTPRequest_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -6973,7 +6973,7 @@ impl IXMLHTTPRequest2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -7025,7 +7025,7 @@ impl IXMLHTTPRequest2Callback_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -7046,7 +7046,7 @@ impl IXMLHTTPRequest3_Vtbl { Self { base__: IXMLHTTPRequest2_Vtbl::new::(), SetClientCertificate: SetClientCertificate:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -7077,7 +7077,7 @@ impl IXMLHTTPRequest3Callback_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -7240,7 +7240,7 @@ impl IXSLProcessor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -7290,7 +7290,7 @@ impl IXSLTemplate_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -7424,7 +7424,7 @@ impl IXTLRuntime_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -7438,6 +7438,6 @@ impl XMLDOMDocumentEvents_Vtbl { Self { base__: super::super::super::System::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } 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 a251b14087..d443502d63 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 @@ -1,8 +1,12 @@ -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMXAttributes(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMXAttributes, + IMXAttributes_Vtbl, + 0xf10d27cc_3ec0_415c_8ed8_77ab1c5e7262 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMXAttributes, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMXAttributes { pub unsafe fn addAttribute(&self, struri: P0, strlocalname: P1, strqname: P2, strtype: P3, strvalue: P4) -> ::windows_core::Result<()> @@ -73,16 +77,6 @@ impl IMXAttributes { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMXAttributes, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMXAttributes { - type Vtable = IMXAttributes_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMXAttributes { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf10d27cc_3ec0_415c_8ed8_77ab1c5e7262); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMXAttributes_Vtbl { @@ -105,9 +99,8 @@ pub struct IMXAttributes_Vtbl { pub setURI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nindex: i32, struri: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub setValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nindex: i32, strvalue: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMXNamespaceManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMXNamespaceManager, IMXNamespaceManager_Vtbl, 0xc90352f6_643c_4fbc_bb23_e996eb2d51fd); +::windows_core::imp::interface_hierarchy!(IMXNamespaceManager, ::windows_core::IUnknown); impl IMXNamespaceManager { pub unsafe fn putAllowOverride(&self, foverride: P0) -> ::windows_core::Result<()> where @@ -163,13 +156,6 @@ impl IMXNamespaceManager { (::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::imp::interface_hierarchy!(IMXNamespaceManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMXNamespaceManager { - type Vtable = IMXNamespaceManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMXNamespaceManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc90352f6_643c_4fbc_bb23_e996eb2d51fd); -} #[repr(C)] #[doc(hidden)] pub struct IMXNamespaceManager_Vtbl { @@ -191,11 +177,15 @@ pub struct IMXNamespaceManager_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] getURI: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMXNamespacePrefixes(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMXNamespacePrefixes, + IMXNamespacePrefixes_Vtbl, + 0xc90352f4_643c_4fbc_bb23_e996eb2d51fd +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMXNamespacePrefixes, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMXNamespacePrefixes { pub unsafe fn get_item(&self, index: i32) -> ::windows_core::Result<::windows_core::BSTR> { @@ -212,16 +202,6 @@ impl IMXNamespacePrefixes { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMXNamespacePrefixes, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMXNamespacePrefixes { - type Vtable = IMXNamespacePrefixes_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMXNamespacePrefixes { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc90352f4_643c_4fbc_bb23_e996eb2d51fd); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMXNamespacePrefixes_Vtbl { @@ -230,11 +210,15 @@ pub struct IMXNamespacePrefixes_Vtbl { pub length: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, length: *mut i32) -> ::windows_core::HRESULT, pub _newEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppunk: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMXReaderControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMXReaderControl, + IMXReaderControl_Vtbl, + 0x808f4e35_8d5a_4fbe_8466_33a41279ed30 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMXReaderControl, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMXReaderControl { pub unsafe fn abort(&self) -> ::windows_core::Result<()> { @@ -248,16 +232,6 @@ impl IMXReaderControl { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMXReaderControl, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMXReaderControl { - type Vtable = IMXReaderControl_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMXReaderControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x808f4e35_8d5a_4fbe_8466_33a41279ed30); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMXReaderControl_Vtbl { @@ -266,11 +240,15 @@ pub struct IMXReaderControl_Vtbl { pub resume: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub suspend: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMXSchemaDeclHandler(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMXSchemaDeclHandler, + IMXSchemaDeclHandler_Vtbl, + 0xfa4bb38c_faf9_4cca_9302_d1dd0fe520db +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMXSchemaDeclHandler, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMXSchemaDeclHandler { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -283,16 +261,6 @@ impl IMXSchemaDeclHandler { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMXSchemaDeclHandler, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMXSchemaDeclHandler { - type Vtable = IMXSchemaDeclHandler_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMXSchemaDeclHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfa4bb38c_faf9_4cca_9302_d1dd0fe520db); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMXSchemaDeclHandler_Vtbl { @@ -302,11 +270,15 @@ pub struct IMXSchemaDeclHandler_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] schemaElementDecl: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMXWriter(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMXWriter, + IMXWriter_Vtbl, + 0x4d7ff4ba_1565_4ea8_94e1_6e724a46f98d +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMXWriter, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMXWriter { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -395,16 +367,6 @@ impl IMXWriter { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMXWriter, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMXWriter { - type Vtable = IMXWriter_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMXWriter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4d7ff4ba_1565_4ea8_94e1_6e724a46f98d); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMXWriter_Vtbl { @@ -433,11 +395,15 @@ pub struct IMXWriter_Vtbl { pub disableOutputEscaping: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub flush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMXXMLFilter(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMXXMLFilter, + IMXXMLFilter_Vtbl, + 0xc90352f7_643c_4fbc_bb23_e996eb2d51fd +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMXXMLFilter, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMXXMLFilter { pub unsafe fn getFeature(&self, strname: P0) -> ::windows_core::Result @@ -513,16 +479,6 @@ impl IMXXMLFilter { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMXXMLFilter, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMXXMLFilter { - type Vtable = IMXXMLFilter_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMXXMLFilter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc90352f7_643c_4fbc_bb23_e996eb2d51fd); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMXXMLFilter_Vtbl { @@ -546,9 +502,8 @@ pub struct IMXXMLFilter_Vtbl { pub errorHandler: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ohandler: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub putref_errorHandler: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ohandler: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISAXAttributes(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISAXAttributes, ISAXAttributes_Vtbl, 0xf078abe1_45d2_4832_91ea_4466ce2f25c9); +::windows_core::imp::interface_hierarchy!(ISAXAttributes, ::windows_core::IUnknown); impl ISAXAttributes { pub unsafe fn getLength(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -614,13 +569,6 @@ impl ISAXAttributes { (::windows_core::Interface::vtable(self).getValueFromQName)(::windows_core::Interface::as_raw(self), pwchqname.into_param().abi(), cchqname, ppwchvalue, pcchvalue).ok() } } -::windows_core::imp::interface_hierarchy!(ISAXAttributes, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISAXAttributes { - type Vtable = ISAXAttributes_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISAXAttributes { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf078abe1_45d2_4832_91ea_4466ce2f25c9); -} #[repr(C)] #[doc(hidden)] pub struct ISAXAttributes_Vtbl { @@ -639,9 +587,8 @@ pub struct ISAXAttributes_Vtbl { pub getValueFromName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwchuri: ::windows_core::PCWSTR, cchuri: i32, pwchlocalname: ::windows_core::PCWSTR, cchlocalname: i32, ppwchvalue: *mut *mut u16, pcchvalue: *mut i32) -> ::windows_core::HRESULT, pub getValueFromQName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwchqname: ::windows_core::PCWSTR, cchqname: i32, ppwchvalue: *mut *mut u16, pcchvalue: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISAXContentHandler(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISAXContentHandler, ISAXContentHandler_Vtbl, 0x1545cdfa_9e4e_4497_a8a4_2bf7d0112c44); +::windows_core::imp::interface_hierarchy!(ISAXContentHandler, ::windows_core::IUnknown); impl ISAXContentHandler { pub unsafe fn putDocumentLocator(&self, plocator: P0) -> ::windows_core::Result<()> where @@ -711,13 +658,6 @@ impl ISAXContentHandler { (::windows_core::Interface::vtable(self).skippedEntity)(::windows_core::Interface::as_raw(self), pwchname.into_param().abi(), cchname).ok() } } -::windows_core::imp::interface_hierarchy!(ISAXContentHandler, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISAXContentHandler { - type Vtable = ISAXContentHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISAXContentHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1545cdfa_9e4e_4497_a8a4_2bf7d0112c44); -} #[repr(C)] #[doc(hidden)] pub struct ISAXContentHandler_Vtbl { @@ -734,9 +674,8 @@ pub struct ISAXContentHandler_Vtbl { pub processingInstruction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwchtarget: ::windows_core::PCWSTR, cchtarget: i32, pwchdata: ::windows_core::PCWSTR, cchdata: i32) -> ::windows_core::HRESULT, pub skippedEntity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwchname: ::windows_core::PCWSTR, cchname: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISAXDTDHandler(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISAXDTDHandler, ISAXDTDHandler_Vtbl, 0xe15c1baf_afb3_4d60_8c36_19a8c45defed); +::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 @@ -756,13 +695,6 @@ impl ISAXDTDHandler { (::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::imp::interface_hierarchy!(ISAXDTDHandler, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISAXDTDHandler { - type Vtable = ISAXDTDHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISAXDTDHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe15c1baf_afb3_4d60_8c36_19a8c45defed); -} #[repr(C)] #[doc(hidden)] pub struct ISAXDTDHandler_Vtbl { @@ -770,9 +702,8 @@ pub struct ISAXDTDHandler_Vtbl { pub notationDecl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwchname: ::windows_core::PCWSTR, cchname: i32, pwchpublicid: ::windows_core::PCWSTR, cchpublicid: i32, pwchsystemid: ::windows_core::PCWSTR, cchsystemid: i32) -> ::windows_core::HRESULT, pub unparsedEntityDecl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwchname: ::windows_core::PCWSTR, cchname: i32, pwchpublicid: ::windows_core::PCWSTR, cchpublicid: i32, pwchsystemid: ::windows_core::PCWSTR, cchsystemid: i32, pwchnotationname: ::windows_core::PCWSTR, cchnotationname: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISAXDeclHandler(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISAXDeclHandler, ISAXDeclHandler_Vtbl, 0x862629ac_771a_47b2_8337_4e6843c1be90); +::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 @@ -807,13 +738,6 @@ impl ISAXDeclHandler { (::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::imp::interface_hierarchy!(ISAXDeclHandler, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISAXDeclHandler { - type Vtable = ISAXDeclHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISAXDeclHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x862629ac_771a_47b2_8337_4e6843c1be90); -} #[repr(C)] #[doc(hidden)] pub struct ISAXDeclHandler_Vtbl { @@ -823,9 +747,8 @@ pub struct ISAXDeclHandler_Vtbl { pub internalEntityDecl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwchname: ::windows_core::PCWSTR, cchname: i32, pwchvalue: ::windows_core::PCWSTR, cchvalue: i32) -> ::windows_core::HRESULT, pub externalEntityDecl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwchname: ::windows_core::PCWSTR, cchname: i32, pwchpublicid: ::windows_core::PCWSTR, cchpublicid: i32, pwchsystemid: ::windows_core::PCWSTR, cchsystemid: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISAXEntityResolver(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISAXEntityResolver, ISAXEntityResolver_Vtbl, 0x99bca7bd_e8c4_4d5f_a0cf_6d907901ff07); +::windows_core::imp::interface_hierarchy!(ISAXEntityResolver, ::windows_core::IUnknown); impl ISAXEntityResolver { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -838,13 +761,6 @@ impl ISAXEntityResolver { (::windows_core::Interface::vtable(self).resolveEntity)(::windows_core::Interface::as_raw(self), pwchpublicid.into_param().abi(), pwchsystemid.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISAXEntityResolver, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISAXEntityResolver { - type Vtable = ISAXEntityResolver_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISAXEntityResolver { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x99bca7bd_e8c4_4d5f_a0cf_6d907901ff07); -} #[repr(C)] #[doc(hidden)] pub struct ISAXEntityResolver_Vtbl { @@ -854,9 +770,8 @@ pub struct ISAXEntityResolver_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] resolveEntity: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISAXErrorHandler(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISAXErrorHandler, ISAXErrorHandler_Vtbl, 0xa60511c4_ccf5_479e_98a3_dc8dc545b7d0); +::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 @@ -880,13 +795,6 @@ impl ISAXErrorHandler { (::windows_core::Interface::vtable(self).ignorableWarning)(::windows_core::Interface::as_raw(self), plocator.into_param().abi(), pwcherrormessage.into_param().abi(), hrerrorcode).ok() } } -::windows_core::imp::interface_hierarchy!(ISAXErrorHandler, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISAXErrorHandler { - type Vtable = ISAXErrorHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISAXErrorHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa60511c4_ccf5_479e_98a3_dc8dc545b7d0); -} #[repr(C)] #[doc(hidden)] pub struct ISAXErrorHandler_Vtbl { @@ -895,9 +803,8 @@ pub struct ISAXErrorHandler_Vtbl { pub fatalError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plocator: *mut ::core::ffi::c_void, pwcherrormessage: ::windows_core::PCWSTR, hrerrorcode: ::windows_core::HRESULT) -> ::windows_core::HRESULT, pub ignorableWarning: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plocator: *mut ::core::ffi::c_void, pwcherrormessage: ::windows_core::PCWSTR, hrerrorcode: ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISAXLexicalHandler(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISAXLexicalHandler, ISAXLexicalHandler_Vtbl, 0x7f85d5f5_47a8_4497_bda5_84ba04819ea6); +::windows_core::imp::interface_hierarchy!(ISAXLexicalHandler, ::windows_core::IUnknown); impl ISAXLexicalHandler { pub unsafe fn startDTD(&self, pwchname: P0, cchname: i32, pwchpublicid: P1, cchpublicid: i32, pwchsystemid: P2, cchsystemid: i32) -> ::windows_core::Result<()> where @@ -935,13 +842,6 @@ impl ISAXLexicalHandler { (::windows_core::Interface::vtable(self).comment)(::windows_core::Interface::as_raw(self), pwchchars.into_param().abi(), cchchars).ok() } } -::windows_core::imp::interface_hierarchy!(ISAXLexicalHandler, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISAXLexicalHandler { - type Vtable = ISAXLexicalHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISAXLexicalHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7f85d5f5_47a8_4497_bda5_84ba04819ea6); -} #[repr(C)] #[doc(hidden)] pub struct ISAXLexicalHandler_Vtbl { @@ -954,9 +854,8 @@ pub struct ISAXLexicalHandler_Vtbl { pub endCDATA: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub comment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwchchars: ::windows_core::PCWSTR, cchchars: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISAXLocator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISAXLocator, ISAXLocator_Vtbl, 0x9b7e472a_0de4_4640_bff3_84d38a051c31); +::windows_core::imp::interface_hierarchy!(ISAXLocator, ::windows_core::IUnknown); impl ISAXLocator { pub unsafe fn getColumnNumber(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -975,13 +874,6 @@ impl ISAXLocator { (::windows_core::Interface::vtable(self).getSystemId)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISAXLocator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISAXLocator { - type Vtable = ISAXLocator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISAXLocator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9b7e472a_0de4_4640_bff3_84d38a051c31); -} #[repr(C)] #[doc(hidden)] pub struct ISAXLocator_Vtbl { @@ -991,9 +883,8 @@ pub struct ISAXLocator_Vtbl { pub getPublicId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppwchpublicid: *mut *mut u16) -> ::windows_core::HRESULT, pub getSystemId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppwchsystemid: *mut *mut u16) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISAXXMLFilter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISAXXMLFilter, ISAXXMLFilter_Vtbl, 0x70409222_ca09_4475_acb8_40312fe8d145); +::windows_core::imp::interface_hierarchy!(ISAXXMLFilter, ::windows_core::IUnknown, ISAXXMLReader); impl ISAXXMLFilter { pub unsafe fn getFeature(&self, pwchname: P0) -> ::windows_core::Result where @@ -1108,13 +999,6 @@ impl ISAXXMLFilter { (::windows_core::Interface::vtable(self).putParent)(::windows_core::Interface::as_raw(self), preader.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ISAXXMLFilter, ::windows_core::IUnknown, ISAXXMLReader); -unsafe impl ::windows_core::Interface for ISAXXMLFilter { - type Vtable = ISAXXMLFilter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISAXXMLFilter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x70409222_ca09_4475_acb8_40312fe8d145); -} #[repr(C)] #[doc(hidden)] pub struct ISAXXMLFilter_Vtbl { @@ -1122,9 +1006,8 @@ pub struct ISAXXMLFilter_Vtbl { pub getParent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppreader: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub putParent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, preader: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISAXXMLReader(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISAXXMLReader, ISAXXMLReader_Vtbl, 0xa4f96ed0_f829_476e_81c0_cdc7bd2a0802); +::windows_core::imp::interface_hierarchy!(ISAXXMLReader, ::windows_core::IUnknown); impl ISAXXMLReader { pub unsafe fn getFeature(&self, pwchname: P0) -> ::windows_core::Result where @@ -1229,13 +1112,6 @@ impl ISAXXMLReader { (::windows_core::Interface::vtable(self).parseURL)(::windows_core::Interface::as_raw(self), pwchurl.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ISAXXMLReader, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISAXXMLReader { - type Vtable = ISAXXMLReader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISAXXMLReader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa4f96ed0_f829_476e_81c0_cdc7bd2a0802); -} #[repr(C)] #[doc(hidden)] pub struct ISAXXMLReader_Vtbl { @@ -1268,11 +1144,15 @@ pub struct ISAXXMLReader_Vtbl { parse: usize, pub parseURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwchurl: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISchema(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISchema, + ISchema_Vtbl, + 0x50ea08b4_dd1b_4664_9a50_c2f40f4bd79a +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISchema, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ISchemaItem); #[cfg(feature = "Win32_System_Com")] impl ISchema { pub unsafe fn name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -1362,16 +1242,6 @@ impl ISchema { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISchema, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ISchemaItem); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISchema { - type Vtable = ISchema_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISchema { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x50ea08b4_dd1b_4664_9a50_c2f40f4bd79a); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISchema_Vtbl { @@ -1407,11 +1277,15 @@ pub struct ISchema_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] schemaLocations: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISchemaAny(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISchemaAny, + ISchemaAny_Vtbl, + 0x50ea08bc_dd1b_4664_9a50_c2f40f4bd79a +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISchemaAny, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ISchemaItem, ISchemaParticle); #[cfg(feature = "Win32_System_Com")] impl ISchemaAny { pub unsafe fn name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -1473,16 +1347,6 @@ impl ISchemaAny { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISchemaAny, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ISchemaItem, ISchemaParticle); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISchemaAny { - type Vtable = ISchemaAny_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISchemaAny { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x50ea08bc_dd1b_4664_9a50_c2f40f4bd79a); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISchemaAny_Vtbl { @@ -1493,11 +1357,15 @@ pub struct ISchemaAny_Vtbl { namespaces: usize, pub processContents: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, processcontents: *mut SCHEMAPROCESSCONTENTS) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISchemaAttribute(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISchemaAttribute, + ISchemaAttribute_Vtbl, + 0x50ea08b6_dd1b_4664_9a50_c2f40f4bd79a +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISchemaAttribute, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ISchemaItem); #[cfg(feature = "Win32_System_Com")] impl ISchemaAttribute { pub unsafe fn name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -1565,16 +1433,6 @@ impl ISchemaAttribute { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISchemaAttribute, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ISchemaItem); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISchemaAttribute { - type Vtable = ISchemaAttribute_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISchemaAttribute { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x50ea08b6_dd1b_4664_9a50_c2f40f4bd79a); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISchemaAttribute_Vtbl { @@ -1592,11 +1450,15 @@ pub struct ISchemaAttribute_Vtbl { pub r#use: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#use: *mut SCHEMAUSE) -> ::windows_core::HRESULT, pub isReference: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, reference: *mut super::super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISchemaAttributeGroup(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISchemaAttributeGroup, + ISchemaAttributeGroup_Vtbl, + 0x50ea08ba_dd1b_4664_9a50_c2f40f4bd79a +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISchemaAttributeGroup, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ISchemaItem); #[cfg(feature = "Win32_System_Com")] impl ISchemaAttributeGroup { pub unsafe fn name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -1648,16 +1510,6 @@ impl ISchemaAttributeGroup { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISchemaAttributeGroup, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ISchemaItem); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISchemaAttributeGroup { - type Vtable = ISchemaAttributeGroup_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISchemaAttributeGroup { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x50ea08ba_dd1b_4664_9a50_c2f40f4bd79a); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISchemaAttributeGroup_Vtbl { @@ -1671,11 +1523,15 @@ pub struct ISchemaAttributeGroup_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] attributes: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISchemaComplexType(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISchemaComplexType, + ISchemaComplexType_Vtbl, + 0x50ea08b9_dd1b_4664_9a50_c2f40f4bd79a +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISchemaComplexType, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ISchemaItem, ISchemaType); #[cfg(feature = "Win32_System_Com")] impl ISchemaComplexType { pub unsafe fn name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -1832,16 +1688,6 @@ impl ISchemaComplexType { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISchemaComplexType, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ISchemaItem, ISchemaType); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISchemaComplexType { - type Vtable = ISchemaComplexType_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISchemaComplexType { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x50ea08b9_dd1b_4664_9a50_c2f40f4bd79a); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISchemaComplexType_Vtbl { @@ -1862,11 +1708,15 @@ pub struct ISchemaComplexType_Vtbl { contentModel: usize, pub prohibitedSubstitutions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prohibited: *mut SCHEMADERIVATIONMETHOD) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISchemaElement(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISchemaElement, + ISchemaElement_Vtbl, + 0x50ea08b7_dd1b_4664_9a50_c2f40f4bd79a +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISchemaElement, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ISchemaItem, ISchemaParticle); #[cfg(feature = "Win32_System_Com")] impl ISchemaElement { pub unsafe fn name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -1970,16 +1820,6 @@ impl ISchemaElement { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISchemaElement, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ISchemaItem, ISchemaParticle); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISchemaElement { - type Vtable = ISchemaElement_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISchemaElement { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x50ea08b7_dd1b_4664_9a50_c2f40f4bd79a); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISchemaElement_Vtbl { @@ -2008,11 +1848,15 @@ pub struct ISchemaElement_Vtbl { pub isAbstract: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#abstract: *mut super::super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub isReference: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, reference: *mut super::super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISchemaIdentityConstraint(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISchemaIdentityConstraint, + ISchemaIdentityConstraint_Vtbl, + 0x50ea08bd_dd1b_4664_9a50_c2f40f4bd79a +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISchemaIdentityConstraint, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ISchemaItem); #[cfg(feature = "Win32_System_Com")] impl ISchemaIdentityConstraint { pub unsafe fn name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -2068,16 +1912,6 @@ impl ISchemaIdentityConstraint { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISchemaIdentityConstraint, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ISchemaItem); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISchemaIdentityConstraint { - type Vtable = ISchemaIdentityConstraint_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISchemaIdentityConstraint { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x50ea08bd_dd1b_4664_9a50_c2f40f4bd79a); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISchemaIdentityConstraint_Vtbl { @@ -2092,11 +1926,15 @@ pub struct ISchemaIdentityConstraint_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] referencedKey: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISchemaItem(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISchemaItem, + ISchemaItem_Vtbl, + 0x50ea08b3_dd1b_4664_9a50_c2f40f4bd79a +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISchemaItem, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISchemaItem { pub unsafe fn name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -2136,16 +1974,6 @@ impl ISchemaItem { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISchemaItem, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISchemaItem { - type Vtable = ISchemaItem_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISchemaItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x50ea08b3_dd1b_4664_9a50_c2f40f4bd79a); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISchemaItem_Vtbl { @@ -2164,11 +1992,15 @@ pub struct ISchemaItem_Vtbl { unhandledAttributes: usize, pub writeAnnotation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, annotationsink: *mut ::core::ffi::c_void, iswritten: *mut super::super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISchemaItemCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISchemaItemCollection, + ISchemaItemCollection_Vtbl, + 0x50ea08b2_dd1b_4664_9a50_c2f40f4bd79a +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISchemaItemCollection, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISchemaItemCollection { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2206,16 +2038,6 @@ impl ISchemaItemCollection { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISchemaItemCollection, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISchemaItemCollection { - type Vtable = ISchemaItemCollection_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISchemaItemCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x50ea08b2_dd1b_4664_9a50_c2f40f4bd79a); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISchemaItemCollection_Vtbl { @@ -2235,11 +2057,15 @@ pub struct ISchemaItemCollection_Vtbl { pub length: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, length: *mut i32) -> ::windows_core::HRESULT, pub _newEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppunk: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISchemaModelGroup(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISchemaModelGroup, + ISchemaModelGroup_Vtbl, + 0x50ea08bb_dd1b_4664_9a50_c2f40f4bd79a +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISchemaModelGroup, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ISchemaItem, ISchemaParticle); #[cfg(feature = "Win32_System_Com")] impl ISchemaModelGroup { pub unsafe fn name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -2297,16 +2123,6 @@ impl ISchemaModelGroup { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISchemaModelGroup, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ISchemaItem, ISchemaParticle); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISchemaModelGroup { - type Vtable = ISchemaModelGroup_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISchemaModelGroup { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x50ea08bb_dd1b_4664_9a50_c2f40f4bd79a); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISchemaModelGroup_Vtbl { @@ -2316,11 +2132,15 @@ pub struct ISchemaModelGroup_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] particles: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISchemaNotation(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISchemaNotation, + ISchemaNotation_Vtbl, + 0x50ea08be_dd1b_4664_9a50_c2f40f4bd79a +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISchemaNotation, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ISchemaItem); #[cfg(feature = "Win32_System_Com")] impl ISchemaNotation { pub unsafe fn name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -2368,16 +2188,6 @@ impl ISchemaNotation { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISchemaNotation, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ISchemaItem); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISchemaNotation { - type Vtable = ISchemaNotation_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISchemaNotation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x50ea08be_dd1b_4664_9a50_c2f40f4bd79a); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISchemaNotation_Vtbl { @@ -2385,11 +2195,15 @@ pub struct ISchemaNotation_Vtbl { pub systemIdentifier: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uri: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub publicIdentifier: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uri: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISchemaParticle(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISchemaParticle, + ISchemaParticle_Vtbl, + 0x50ea08b5_dd1b_4664_9a50_c2f40f4bd79a +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISchemaParticle, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ISchemaItem); #[cfg(feature = "Win32_System_Com")] impl ISchemaParticle { pub unsafe fn name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -2441,16 +2255,6 @@ impl ISchemaParticle { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISchemaParticle, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ISchemaItem); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISchemaParticle { - type Vtable = ISchemaParticle_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISchemaParticle { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x50ea08b5_dd1b_4664_9a50_c2f40f4bd79a); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISchemaParticle_Vtbl { @@ -2464,11 +2268,15 @@ pub struct ISchemaParticle_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] maxOccurs: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISchemaStringCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISchemaStringCollection, + ISchemaStringCollection_Vtbl, + 0x50ea08b1_dd1b_4664_9a50_c2f40f4bd79a +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISchemaStringCollection, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISchemaStringCollection { pub unsafe fn get_item(&self, index: i32) -> ::windows_core::Result<::windows_core::BSTR> { @@ -2485,16 +2293,6 @@ impl ISchemaStringCollection { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISchemaStringCollection, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISchemaStringCollection { - type Vtable = ISchemaStringCollection_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISchemaStringCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x50ea08b1_dd1b_4664_9a50_c2f40f4bd79a); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISchemaStringCollection_Vtbl { @@ -2503,11 +2301,15 @@ pub struct ISchemaStringCollection_Vtbl { pub length: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, length: *mut i32) -> ::windows_core::HRESULT, pub _newEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppunk: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISchemaType(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISchemaType, + ISchemaType_Vtbl, + 0x50ea08b8_dd1b_4664_9a50_c2f40f4bd79a +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISchemaType, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ISchemaItem); #[cfg(feature = "Win32_System_Com")] impl ISchemaType { pub unsafe fn name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -2634,16 +2436,6 @@ impl ISchemaType { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISchemaType, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ISchemaItem); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISchemaType { - type Vtable = ISchemaType_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISchemaType { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x50ea08b8_dd1b_4664_9a50_c2f40f4bd79a); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISchemaType_Vtbl { @@ -2690,11 +2482,15 @@ pub struct ISchemaType_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] patterns: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IServerXMLHTTPRequest(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IServerXMLHTTPRequest, + IServerXMLHTTPRequest_Vtbl, + 0x2e9196bf_13ba_4dd4_91ca_6c571f281495 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IServerXMLHTTPRequest, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IXMLHTTPRequest); #[cfg(feature = "Win32_System_Com")] impl IServerXMLHTTPRequest { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2796,16 +2592,6 @@ impl IServerXMLHTTPRequest { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IServerXMLHTTPRequest, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IXMLHTTPRequest); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IServerXMLHTTPRequest { - type Vtable = IServerXMLHTTPRequest_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IServerXMLHTTPRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2e9196bf_13ba_4dd4_91ca_6c571f281495); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IServerXMLHTTPRequest_Vtbl { @@ -2824,11 +2610,15 @@ pub struct IServerXMLHTTPRequest_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] setOption: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IServerXMLHTTPRequest2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IServerXMLHTTPRequest2, + IServerXMLHTTPRequest2_Vtbl, + 0x2e01311b_c322_4b0a_bd77_b90cfdc8dce7 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IServerXMLHTTPRequest2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IXMLHTTPRequest, IServerXMLHTTPRequest); #[cfg(feature = "Win32_System_Com")] impl IServerXMLHTTPRequest2 { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2937,19 +2727,9 @@ impl IServerXMLHTTPRequest2 { where P0: ::windows_core::IntoParam<::windows_core::BSTR>, P1: ::windows_core::IntoParam<::windows_core::BSTR>, - { - (::windows_core::Interface::vtable(self).setProxyCredentials)(::windows_core::Interface::as_raw(self), bstrusername.into_param().abi(), bstrpassword.into_param().abi()).ok() - } -} -#[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IServerXMLHTTPRequest2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IXMLHTTPRequest, IServerXMLHTTPRequest); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IServerXMLHTTPRequest2 { - type Vtable = IServerXMLHTTPRequest2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IServerXMLHTTPRequest2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2e01311b_c322_4b0a_bd77_b90cfdc8dce7); + { + (::windows_core::Interface::vtable(self).setProxyCredentials)(::windows_core::Interface::as_raw(self), bstrusername.into_param().abi(), bstrpassword.into_param().abi()).ok() + } } #[cfg(feature = "Win32_System_Com")] #[repr(C)] @@ -2962,11 +2742,15 @@ pub struct IServerXMLHTTPRequest2_Vtbl { setProxy: usize, pub setProxyCredentials: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrusername: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstrpassword: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVBMXNamespaceManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IVBMXNamespaceManager, + IVBMXNamespaceManager_Vtbl, + 0xc90352f5_643c_4fbc_bb23_e996eb2d51fd +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IVBMXNamespaceManager, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IVBMXNamespaceManager { pub unsafe fn SetallowOverride(&self, foverride: P0) -> ::windows_core::Result<()> @@ -3040,16 +2824,6 @@ impl IVBMXNamespaceManager { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IVBMXNamespaceManager, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IVBMXNamespaceManager { - type Vtable = IVBMXNamespaceManager_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IVBMXNamespaceManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc90352f5_643c_4fbc_bb23_e996eb2d51fd); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IVBMXNamespaceManager_Vtbl { @@ -3081,11 +2855,15 @@ pub struct IVBMXNamespaceManager_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] getURIFromNode: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVBSAXAttributes(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IVBSAXAttributes, + IVBSAXAttributes_Vtbl, + 0x10dc0586_132b_4cac_8bb3_db00ac8b7ee0 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IVBSAXAttributes, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IVBSAXAttributes { pub unsafe fn length(&self) -> ::windows_core::Result { @@ -3159,16 +2937,6 @@ impl IVBSAXAttributes { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IVBSAXAttributes, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IVBSAXAttributes { - type Vtable = IVBSAXAttributes_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IVBSAXAttributes { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x10dc0586_132b_4cac_8bb3_db00ac8b7ee0); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IVBSAXAttributes_Vtbl { @@ -3186,11 +2954,15 @@ pub struct IVBSAXAttributes_Vtbl { pub getValueFromName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, struri: ::std::mem::MaybeUninit<::windows_core::BSTR>, strlocalname: ::std::mem::MaybeUninit<::windows_core::BSTR>, strvalue: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub getValueFromQName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strqname: ::std::mem::MaybeUninit<::windows_core::BSTR>, strvalue: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVBSAXContentHandler(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IVBSAXContentHandler, + IVBSAXContentHandler_Vtbl, + 0x2ed7290a_4dd5_4b46_bb26_4e4155e77faa +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IVBSAXContentHandler, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IVBSAXContentHandler { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3238,16 +3010,6 @@ impl IVBSAXContentHandler { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IVBSAXContentHandler, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IVBSAXContentHandler { - type Vtable = IVBSAXContentHandler_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IVBSAXContentHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2ed7290a_4dd5_4b46_bb26_4e4155e77faa); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IVBSAXContentHandler_Vtbl { @@ -3270,11 +3032,15 @@ pub struct IVBSAXContentHandler_Vtbl { pub processingInstruction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strtarget: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>, strdata: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub skippedEntity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVBSAXDTDHandler(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IVBSAXDTDHandler, + IVBSAXDTDHandler_Vtbl, + 0x24fb3297_302d_4620_ba39_3a732d850558 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IVBSAXDTDHandler, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IVBSAXDTDHandler { pub unsafe fn notationDecl(&self, strname: *mut ::windows_core::BSTR, strpublicid: *mut ::windows_core::BSTR, strsystemid: *mut ::windows_core::BSTR) -> ::windows_core::Result<()> { @@ -3285,16 +3051,6 @@ impl IVBSAXDTDHandler { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IVBSAXDTDHandler, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IVBSAXDTDHandler { - type Vtable = IVBSAXDTDHandler_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IVBSAXDTDHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x24fb3297_302d_4620_ba39_3a732d850558); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IVBSAXDTDHandler_Vtbl { @@ -3302,11 +3058,15 @@ pub struct IVBSAXDTDHandler_Vtbl { pub notationDecl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>, strpublicid: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>, strsystemid: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub unparsedEntityDecl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>, strpublicid: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>, strsystemid: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>, strnotationname: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVBSAXDeclHandler(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IVBSAXDeclHandler, + IVBSAXDeclHandler_Vtbl, + 0xe8917260_7579_4be1_b5dd_7afbfa6f077b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IVBSAXDeclHandler, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IVBSAXDeclHandler { pub unsafe fn elementDecl(&self, strname: *mut ::windows_core::BSTR, strmodel: *mut ::windows_core::BSTR) -> ::windows_core::Result<()> { @@ -3323,16 +3083,6 @@ impl IVBSAXDeclHandler { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IVBSAXDeclHandler, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IVBSAXDeclHandler { - type Vtable = IVBSAXDeclHandler_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IVBSAXDeclHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe8917260_7579_4be1_b5dd_7afbfa6f077b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IVBSAXDeclHandler_Vtbl { @@ -3342,11 +3092,15 @@ pub struct IVBSAXDeclHandler_Vtbl { pub internalEntityDecl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>, strvalue: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub externalEntityDecl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>, strpublicid: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>, strsystemid: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVBSAXEntityResolver(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IVBSAXEntityResolver, + IVBSAXEntityResolver_Vtbl, + 0x0c05d096_f45b_4aca_ad1a_aa0bc25518dc +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IVBSAXEntityResolver, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IVBSAXEntityResolver { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3356,16 +3110,6 @@ impl IVBSAXEntityResolver { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IVBSAXEntityResolver, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IVBSAXEntityResolver { - type Vtable = IVBSAXEntityResolver_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IVBSAXEntityResolver { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c05d096_f45b_4aca_ad1a_aa0bc25518dc); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IVBSAXEntityResolver_Vtbl { @@ -3375,11 +3119,15 @@ pub struct IVBSAXEntityResolver_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] resolveEntity: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVBSAXErrorHandler(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IVBSAXErrorHandler, + IVBSAXErrorHandler_Vtbl, + 0xd963d3fe_173c_4862_9095_b92f66995f52 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IVBSAXErrorHandler, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IVBSAXErrorHandler { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3408,16 +3156,6 @@ impl IVBSAXErrorHandler { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IVBSAXErrorHandler, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IVBSAXErrorHandler { - type Vtable = IVBSAXErrorHandler_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IVBSAXErrorHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd963d3fe_173c_4862_9095_b92f66995f52); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IVBSAXErrorHandler_Vtbl { @@ -3435,11 +3173,15 @@ pub struct IVBSAXErrorHandler_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] ignorableWarning: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVBSAXLexicalHandler(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IVBSAXLexicalHandler, + IVBSAXLexicalHandler_Vtbl, + 0x032aac35_8c0e_4d9d_979f_e3b702935576 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IVBSAXLexicalHandler, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IVBSAXLexicalHandler { pub unsafe fn startDTD(&self, strname: *mut ::windows_core::BSTR, strpublicid: *mut ::windows_core::BSTR, strsystemid: *mut ::windows_core::BSTR) -> ::windows_core::Result<()> { @@ -3465,16 +3207,6 @@ impl IVBSAXLexicalHandler { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IVBSAXLexicalHandler, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IVBSAXLexicalHandler { - type Vtable = IVBSAXLexicalHandler_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IVBSAXLexicalHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x032aac35_8c0e_4d9d_979f_e3b702935576); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IVBSAXLexicalHandler_Vtbl { @@ -3487,11 +3219,15 @@ pub struct IVBSAXLexicalHandler_Vtbl { pub endCDATA: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub comment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strchars: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVBSAXLocator(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IVBSAXLocator, + IVBSAXLocator_Vtbl, + 0x796e7ac5_5aa2_4eff_acad_3faaf01a3288 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IVBSAXLocator, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IVBSAXLocator { pub unsafe fn columnNumber(&self) -> ::windows_core::Result { @@ -3512,16 +3248,6 @@ impl IVBSAXLocator { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IVBSAXLocator, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IVBSAXLocator { - type Vtable = IVBSAXLocator_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IVBSAXLocator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x796e7ac5_5aa2_4eff_acad_3faaf01a3288); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IVBSAXLocator_Vtbl { @@ -3531,11 +3257,15 @@ pub struct IVBSAXLocator_Vtbl { pub publicId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strpublicid: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub systemId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strsystemid: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVBSAXXMLFilter(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IVBSAXXMLFilter, + IVBSAXXMLFilter_Vtbl, + 0x1299eb1b_5b88_433e_82de_82ca75ad4e04 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IVBSAXXMLFilter, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IVBSAXXMLFilter { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3554,16 +3284,6 @@ impl IVBSAXXMLFilter { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IVBSAXXMLFilter, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IVBSAXXMLFilter { - type Vtable = IVBSAXXMLFilter_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IVBSAXXMLFilter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1299eb1b_5b88_433e_82de_82ca75ad4e04); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IVBSAXXMLFilter_Vtbl { @@ -3577,11 +3297,15 @@ pub struct IVBSAXXMLFilter_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] putref_parent: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVBSAXXMLReader(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IVBSAXXMLReader, + IVBSAXXMLReader_Vtbl, + 0x8c033caa_6cd6_4f73_b728_4531af74945f +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IVBSAXXMLReader, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IVBSAXXMLReader { pub unsafe fn getFeature(&self, strname: P0) -> ::windows_core::Result @@ -3704,16 +3428,6 @@ impl IVBSAXXMLReader { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IVBSAXXMLReader, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IVBSAXXMLReader { - type Vtable = IVBSAXXMLReader_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IVBSAXXMLReader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8c033caa_6cd6_4f73_b728_4531af74945f); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IVBSAXXMLReader_Vtbl { @@ -3770,11 +3484,15 @@ pub struct IVBSAXXMLReader_Vtbl { parse: usize, pub parseURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strurl: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXMLAttribute(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IXMLAttribute, + IXMLAttribute_Vtbl, + 0xd4d4a0fc_3b73_11d1_b2b4_00c04fb92596 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IXMLAttribute, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IXMLAttribute { pub unsafe fn name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -3787,16 +3505,6 @@ impl IXMLAttribute { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IXMLAttribute, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IXMLAttribute { - type Vtable = IXMLAttribute_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IXMLAttribute { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd4d4a0fc_3b73_11d1_b2b4_00c04fb92596); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IXMLAttribute_Vtbl { @@ -3804,11 +3512,15 @@ pub struct IXMLAttribute_Vtbl { pub name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, n: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, v: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXMLDOMAttribute(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IXMLDOMAttribute, + IXMLDOMAttribute_Vtbl, + 0x2933bf85_7b36_11d2_b20e_00c04f983e60 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IXMLDOMAttribute, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IXMLDOMNode); #[cfg(feature = "Win32_System_Com")] impl IXMLDOMAttribute { pub unsafe fn nodeName(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -4047,16 +3759,6 @@ impl IXMLDOMAttribute { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IXMLDOMAttribute, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IXMLDOMNode); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IXMLDOMAttribute { - type Vtable = IXMLDOMAttribute_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IXMLDOMAttribute { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2933bf85_7b36_11d2_b20e_00c04f983e60); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IXMLDOMAttribute_Vtbl { @@ -4071,11 +3773,15 @@ pub struct IXMLDOMAttribute_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] Setvalue: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXMLDOMCDATASection(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IXMLDOMCDATASection, + IXMLDOMCDATASection_Vtbl, + 0x2933bf8a_7b36_11d2_b20e_00c04f983e60 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IXMLDOMCDATASection, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IXMLDOMNode, IXMLDOMCharacterData, IXMLDOMText); #[cfg(feature = "Win32_System_Com")] impl IXMLDOMCDATASection { pub unsafe fn nodeName(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -4344,26 +4050,20 @@ impl IXMLDOMCDATASection { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IXMLDOMCDATASection, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IXMLDOMNode, IXMLDOMCharacterData, IXMLDOMText); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IXMLDOMCDATASection { - type Vtable = IXMLDOMCDATASection_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IXMLDOMCDATASection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2933bf8a_7b36_11d2_b20e_00c04f983e60); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IXMLDOMCDATASection_Vtbl { pub base__: IXMLDOMText_Vtbl, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXMLDOMCharacterData(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IXMLDOMCharacterData, + IXMLDOMCharacterData_Vtbl, + 0x2933bf84_7b36_11d2_b20e_00c04f983e60 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IXMLDOMCharacterData, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IXMLDOMNode); #[cfg(feature = "Win32_System_Com")] impl IXMLDOMCharacterData { pub unsafe fn nodeName(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -4626,16 +4326,6 @@ impl IXMLDOMCharacterData { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IXMLDOMCharacterData, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IXMLDOMNode); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IXMLDOMCharacterData { - type Vtable = IXMLDOMCharacterData_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IXMLDOMCharacterData { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2933bf84_7b36_11d2_b20e_00c04f983e60); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IXMLDOMCharacterData_Vtbl { @@ -4649,11 +4339,15 @@ pub struct IXMLDOMCharacterData_Vtbl { pub deleteData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, offset: i32, count: i32) -> ::windows_core::HRESULT, pub replaceData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, offset: i32, count: i32, data: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXMLDOMComment(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IXMLDOMComment, + IXMLDOMComment_Vtbl, + 0x2933bf88_7b36_11d2_b20e_00c04f983e60 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IXMLDOMComment, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IXMLDOMNode, IXMLDOMCharacterData); #[cfg(feature = "Win32_System_Com")] impl IXMLDOMComment { pub unsafe fn nodeName(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -4916,26 +4610,20 @@ impl IXMLDOMComment { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IXMLDOMComment, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IXMLDOMNode, IXMLDOMCharacterData); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IXMLDOMComment { - type Vtable = IXMLDOMComment_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IXMLDOMComment { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2933bf88_7b36_11d2_b20e_00c04f983e60); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IXMLDOMComment_Vtbl { pub base__: IXMLDOMCharacterData_Vtbl, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXMLDOMDocument(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IXMLDOMDocument, + IXMLDOMDocument_Vtbl, + 0x2933bf81_7b36_11d2_b20e_00c04f983e60 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IXMLDOMDocument, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IXMLDOMNode); #[cfg(feature = "Win32_System_Com")] impl IXMLDOMDocument { pub unsafe fn nodeName(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -5373,16 +5061,6 @@ impl IXMLDOMDocument { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IXMLDOMDocument, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IXMLDOMNode); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IXMLDOMDocument { - type Vtable = IXMLDOMDocument_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IXMLDOMDocument { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2933bf81_7b36_11d2_b20e_00c04f983e60); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IXMLDOMDocument_Vtbl { @@ -5484,11 +5162,15 @@ pub struct IXMLDOMDocument_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] Setontransformnode: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXMLDOMDocument2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IXMLDOMDocument2, + IXMLDOMDocument2_Vtbl, + 0x2933bf95_7b36_11d2_b20e_00c04f983e60 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IXMLDOMDocument2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IXMLDOMNode, IXMLDOMDocument); #[cfg(feature = "Win32_System_Com")] impl IXMLDOMDocument2 { pub unsafe fn nodeName(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -5966,16 +5648,6 @@ impl IXMLDOMDocument2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IXMLDOMDocument2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IXMLDOMNode, IXMLDOMDocument); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IXMLDOMDocument2 { - type Vtable = IXMLDOMDocument2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IXMLDOMDocument2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2933bf95_7b36_11d2_b20e_00c04f983e60); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IXMLDOMDocument2_Vtbl { @@ -6005,11 +5677,15 @@ pub struct IXMLDOMDocument2_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] getProperty: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXMLDOMDocument3(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IXMLDOMDocument3, + IXMLDOMDocument3_Vtbl, + 0x2933bf96_7b36_11d2_b20e_00c04f983e60 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IXMLDOMDocument3, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IXMLDOMNode, IXMLDOMDocument, IXMLDOMDocument2); #[cfg(feature = "Win32_System_Com")] impl IXMLDOMDocument3 { pub unsafe fn nodeName(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -6506,16 +6182,6 @@ impl IXMLDOMDocument3 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IXMLDOMDocument3, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IXMLDOMNode, IXMLDOMDocument, IXMLDOMDocument2); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IXMLDOMDocument3 { - type Vtable = IXMLDOMDocument3_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IXMLDOMDocument3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2933bf96_7b36_11d2_b20e_00c04f983e60); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IXMLDOMDocument3_Vtbl { @@ -6529,11 +6195,15 @@ pub struct IXMLDOMDocument3_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] importNode: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXMLDOMDocumentFragment(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IXMLDOMDocumentFragment, + IXMLDOMDocumentFragment_Vtbl, + 0x3efaa413_272f_11d2_836f_0000f87a7782 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IXMLDOMDocumentFragment, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IXMLDOMNode); #[cfg(feature = "Win32_System_Com")] impl IXMLDOMDocumentFragment { pub unsafe fn nodeName(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -6757,26 +6427,20 @@ impl IXMLDOMDocumentFragment { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IXMLDOMDocumentFragment, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IXMLDOMNode); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IXMLDOMDocumentFragment { - type Vtable = IXMLDOMDocumentFragment_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IXMLDOMDocumentFragment { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3efaa413_272f_11d2_836f_0000f87a7782); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IXMLDOMDocumentFragment_Vtbl { pub base__: IXMLDOMNode_Vtbl, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXMLDOMDocumentType(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IXMLDOMDocumentType, + IXMLDOMDocumentType_Vtbl, + 0x2933bf8b_7b36_11d2_b20e_00c04f983e60 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IXMLDOMDocumentType, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IXMLDOMNode); #[cfg(feature = "Win32_System_Com")] impl IXMLDOMDocumentType { pub unsafe fn nodeName(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -7016,16 +6680,6 @@ impl IXMLDOMDocumentType { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IXMLDOMDocumentType, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IXMLDOMNode); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IXMLDOMDocumentType { - type Vtable = IXMLDOMDocumentType_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IXMLDOMDocumentType { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2933bf8b_7b36_11d2_b20e_00c04f983e60); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IXMLDOMDocumentType_Vtbl { @@ -7040,11 +6694,15 @@ pub struct IXMLDOMDocumentType_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] notations: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXMLDOMElement(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IXMLDOMElement, + IXMLDOMElement_Vtbl, + 0x2933bf86_7b36_11d2_b20e_00c04f983e60 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IXMLDOMElement, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IXMLDOMNode); #[cfg(feature = "Win32_System_Com")] impl IXMLDOMElement { pub unsafe fn nodeName(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -7334,16 +6992,6 @@ impl IXMLDOMElement { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IXMLDOMElement, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IXMLDOMNode); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IXMLDOMElement { - type Vtable = IXMLDOMElement_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IXMLDOMElement { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2933bf86_7b36_11d2_b20e_00c04f983e60); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IXMLDOMElement_Vtbl { @@ -7376,11 +7024,15 @@ pub struct IXMLDOMElement_Vtbl { getElementsByTagName: usize, pub normalize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXMLDOMEntity(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IXMLDOMEntity, + IXMLDOMEntity_Vtbl, + 0x2933bf8d_7b36_11d2_b20e_00c04f983e60 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IXMLDOMEntity, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IXMLDOMNode); #[cfg(feature = "Win32_System_Com")] impl IXMLDOMEntity { pub unsafe fn nodeName(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -7620,16 +7272,6 @@ impl IXMLDOMEntity { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IXMLDOMEntity, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IXMLDOMNode); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IXMLDOMEntity { - type Vtable = IXMLDOMEntity_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IXMLDOMEntity { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2933bf8d_7b36_11d2_b20e_00c04f983e60); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IXMLDOMEntity_Vtbl { @@ -7644,11 +7286,15 @@ pub struct IXMLDOMEntity_Vtbl { systemId: usize, pub notationName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXMLDOMEntityReference(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IXMLDOMEntityReference, + IXMLDOMEntityReference_Vtbl, + 0x2933bf8e_7b36_11d2_b20e_00c04f983e60 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IXMLDOMEntityReference, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IXMLDOMNode); #[cfg(feature = "Win32_System_Com")] impl IXMLDOMEntityReference { pub unsafe fn nodeName(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -7872,26 +7518,20 @@ impl IXMLDOMEntityReference { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IXMLDOMEntityReference, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IXMLDOMNode); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IXMLDOMEntityReference { - type Vtable = IXMLDOMEntityReference_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IXMLDOMEntityReference { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2933bf8e_7b36_11d2_b20e_00c04f983e60); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IXMLDOMEntityReference_Vtbl { pub base__: IXMLDOMNode_Vtbl, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXMLDOMImplementation(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IXMLDOMImplementation, + IXMLDOMImplementation_Vtbl, + 0x2933bf8f_7b36_11d2_b20e_00c04f983e60 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IXMLDOMImplementation, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IXMLDOMImplementation { pub unsafe fn hasFeature(&self, feature: P0, version: P1) -> ::windows_core::Result @@ -7899,19 +7539,9 @@ impl IXMLDOMImplementation { P0: ::windows_core::IntoParam<::windows_core::BSTR>, P1: ::windows_core::IntoParam<::windows_core::BSTR>, { - 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__).from_abi(result__) - } -} -#[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IXMLDOMImplementation, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IXMLDOMImplementation { - type Vtable = IXMLDOMImplementation_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IXMLDOMImplementation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2933bf8f_7b36_11d2_b20e_00c04f983e60); + 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__).from_abi(result__) + } } #[cfg(feature = "Win32_System_Com")] #[repr(C)] @@ -7920,11 +7550,15 @@ pub struct IXMLDOMImplementation_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, pub hasFeature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, feature: ::std::mem::MaybeUninit<::windows_core::BSTR>, version: ::std::mem::MaybeUninit<::windows_core::BSTR>, hasfeature: *mut super::super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXMLDOMNamedNodeMap(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IXMLDOMNamedNodeMap, + IXMLDOMNamedNodeMap_Vtbl, + 0x2933bf83_7b36_11d2_b20e_00c04f983e60 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IXMLDOMNamedNodeMap, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IXMLDOMNamedNodeMap { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -7999,16 +7633,6 @@ impl IXMLDOMNamedNodeMap { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IXMLDOMNamedNodeMap, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IXMLDOMNamedNodeMap { - type Vtable = IXMLDOMNamedNodeMap_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IXMLDOMNamedNodeMap { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2933bf83_7b36_11d2_b20e_00c04f983e60); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IXMLDOMNamedNodeMap_Vtbl { @@ -8045,11 +7669,15 @@ pub struct IXMLDOMNamedNodeMap_Vtbl { pub reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub _newEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppunk: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXMLDOMNode(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IXMLDOMNode, + IXMLDOMNode_Vtbl, + 0x2933bf80_7b36_11d2_b20e_00c04f983e60 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IXMLDOMNode, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IXMLDOMNode { pub unsafe fn nodeName(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -8273,16 +7901,6 @@ impl IXMLDOMNode { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IXMLDOMNode, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IXMLDOMNode { - type Vtable = IXMLDOMNode_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IXMLDOMNode { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2933bf80_7b36_11d2_b20e_00c04f983e60); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IXMLDOMNode_Vtbl { @@ -8393,11 +8011,15 @@ pub struct IXMLDOMNode_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] transformNodeToObject: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXMLDOMNodeList(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IXMLDOMNodeList, + IXMLDOMNodeList_Vtbl, + 0x2933bf82_7b36_11d2_b20e_00c04f983e60 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IXMLDOMNodeList, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IXMLDOMNodeList { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -8425,16 +8047,6 @@ impl IXMLDOMNodeList { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IXMLDOMNodeList, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IXMLDOMNodeList { - type Vtable = IXMLDOMNodeList_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IXMLDOMNodeList { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2933bf82_7b36_11d2_b20e_00c04f983e60); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IXMLDOMNodeList_Vtbl { @@ -8451,11 +8063,15 @@ pub struct IXMLDOMNodeList_Vtbl { pub reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub _newEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppunk: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXMLDOMNotation(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IXMLDOMNotation, + IXMLDOMNotation_Vtbl, + 0x2933bf8c_7b36_11d2_b20e_00c04f983e60 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IXMLDOMNotation, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IXMLDOMNode); #[cfg(feature = "Win32_System_Com")] impl IXMLDOMNotation { pub unsafe fn nodeName(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -8691,16 +8307,6 @@ impl IXMLDOMNotation { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IXMLDOMNotation, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IXMLDOMNode); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IXMLDOMNotation { - type Vtable = IXMLDOMNotation_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IXMLDOMNotation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2933bf8c_7b36_11d2_b20e_00c04f983e60); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IXMLDOMNotation_Vtbl { @@ -8714,11 +8320,15 @@ pub struct IXMLDOMNotation_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] systemId: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXMLDOMParseError(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IXMLDOMParseError, + IXMLDOMParseError_Vtbl, + 0x3efaa426_272f_11d2_836f_0000f87a7782 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IXMLDOMParseError, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IXMLDOMParseError { pub unsafe fn errorCode(&self) -> ::windows_core::Result { @@ -8751,16 +8361,6 @@ impl IXMLDOMParseError { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IXMLDOMParseError, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IXMLDOMParseError { - type Vtable = IXMLDOMParseError_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IXMLDOMParseError { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3efaa426_272f_11d2_836f_0000f87a7782); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IXMLDOMParseError_Vtbl { @@ -8773,11 +8373,15 @@ pub struct IXMLDOMParseError_Vtbl { pub linepos: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lineposition: *mut i32) -> ::windows_core::HRESULT, pub filepos: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fileposition: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXMLDOMParseError2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IXMLDOMParseError2, + IXMLDOMParseError2_Vtbl, + 0x3efaa428_272f_11d2_836f_0000f87a7782 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IXMLDOMParseError2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IXMLDOMParseError); #[cfg(feature = "Win32_System_Com")] impl IXMLDOMParseError2 { pub unsafe fn errorCode(&self) -> ::windows_core::Result { @@ -8828,16 +8432,6 @@ impl IXMLDOMParseError2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IXMLDOMParseError2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IXMLDOMParseError); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IXMLDOMParseError2 { - type Vtable = IXMLDOMParseError2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IXMLDOMParseError2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3efaa428_272f_11d2_836f_0000f87a7782); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IXMLDOMParseError2_Vtbl { @@ -8850,11 +8444,15 @@ pub struct IXMLDOMParseError2_Vtbl { pub errorParameters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32, param1: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub errorParametersCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, count: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXMLDOMParseErrorCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IXMLDOMParseErrorCollection, + IXMLDOMParseErrorCollection_Vtbl, + 0x3efaa429_272f_11d2_836f_0000f87a7782 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IXMLDOMParseErrorCollection, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IXMLDOMParseErrorCollection { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -8882,16 +8480,6 @@ impl IXMLDOMParseErrorCollection { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IXMLDOMParseErrorCollection, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IXMLDOMParseErrorCollection { - type Vtable = IXMLDOMParseErrorCollection_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IXMLDOMParseErrorCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3efaa429_272f_11d2_836f_0000f87a7782); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IXMLDOMParseErrorCollection_Vtbl { @@ -8908,11 +8496,15 @@ pub struct IXMLDOMParseErrorCollection_Vtbl { pub reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub _newEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppunk: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXMLDOMProcessingInstruction(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IXMLDOMProcessingInstruction, + IXMLDOMProcessingInstruction_Vtbl, + 0x2933bf89_7b36_11d2_b20e_00c04f983e60 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IXMLDOMProcessingInstruction, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IXMLDOMNode); #[cfg(feature = "Win32_System_Com")] impl IXMLDOMProcessingInstruction { pub unsafe fn nodeName(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -9150,16 +8742,6 @@ impl IXMLDOMProcessingInstruction { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IXMLDOMProcessingInstruction, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IXMLDOMNode); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IXMLDOMProcessingInstruction { - type Vtable = IXMLDOMProcessingInstruction_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IXMLDOMProcessingInstruction { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2933bf89_7b36_11d2_b20e_00c04f983e60); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IXMLDOMProcessingInstruction_Vtbl { @@ -9168,11 +8750,15 @@ pub struct IXMLDOMProcessingInstruction_Vtbl { pub data: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub Setdata: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXMLDOMSchemaCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IXMLDOMSchemaCollection, + IXMLDOMSchemaCollection_Vtbl, + 0x373984c8_b845_449b_91e7_45ac83036ade +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IXMLDOMSchemaCollection, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IXMLDOMSchemaCollection { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -9220,16 +8806,6 @@ impl IXMLDOMSchemaCollection { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IXMLDOMSchemaCollection, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IXMLDOMSchemaCollection { - type Vtable = IXMLDOMSchemaCollection_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IXMLDOMSchemaCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x373984c8_b845_449b_91e7_45ac83036ade); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IXMLDOMSchemaCollection_Vtbl { @@ -9251,11 +8827,15 @@ pub struct IXMLDOMSchemaCollection_Vtbl { addCollection: usize, pub _newEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppunk: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXMLDOMSchemaCollection2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IXMLDOMSchemaCollection2, + IXMLDOMSchemaCollection2_Vtbl, + 0x50ea08b0_dd1b_4664_9a50_c2f40f4bd79a +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IXMLDOMSchemaCollection2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IXMLDOMSchemaCollection); #[cfg(feature = "Win32_System_Com")] impl IXMLDOMSchemaCollection2 { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -9334,16 +8914,6 @@ impl IXMLDOMSchemaCollection2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IXMLDOMSchemaCollection2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IXMLDOMSchemaCollection); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IXMLDOMSchemaCollection2 { - type Vtable = IXMLDOMSchemaCollection2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IXMLDOMSchemaCollection2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x50ea08b0_dd1b_4664_9a50_c2f40f4bd79a); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IXMLDOMSchemaCollection2_Vtbl { @@ -9360,11 +8930,15 @@ pub struct IXMLDOMSchemaCollection2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] getDeclaration: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXMLDOMSelection(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IXMLDOMSelection, + IXMLDOMSelection_Vtbl, + 0xaa634fc7_5888_44a7_a257_3a47150d3a0e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IXMLDOMSelection, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IXMLDOMNodeList); #[cfg(feature = "Win32_System_Com")] impl IXMLDOMSelection { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -9463,16 +9037,6 @@ impl IXMLDOMSelection { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IXMLDOMSelection, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IXMLDOMNodeList); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IXMLDOMSelection { - type Vtable = IXMLDOMSelection_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IXMLDOMSelection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaa634fc7_5888_44a7_a257_3a47150d3a0e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IXMLDOMSelection_Vtbl { @@ -9513,11 +9077,15 @@ pub struct IXMLDOMSelection_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] setProperty: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXMLDOMText(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IXMLDOMText, + IXMLDOMText_Vtbl, + 0x2933bf87_7b36_11d2_b20e_00c04f983e60 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IXMLDOMText, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IXMLDOMNode, IXMLDOMCharacterData); #[cfg(feature = "Win32_System_Com")] impl IXMLDOMText { pub unsafe fn nodeName(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -9786,16 +9354,6 @@ impl IXMLDOMText { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IXMLDOMText, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IXMLDOMNode, IXMLDOMCharacterData); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IXMLDOMText { - type Vtable = IXMLDOMText_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IXMLDOMText { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2933bf87_7b36_11d2_b20e_00c04f983e60); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IXMLDOMText_Vtbl { @@ -9805,11 +9363,15 @@ pub struct IXMLDOMText_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] splitText: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXMLDSOControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IXMLDSOControl, + IXMLDSOControl_Vtbl, + 0x310afa62_0575_11d2_9ca9_0060b0ec3d39 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IXMLDSOControl, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IXMLDSOControl { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -9842,16 +9404,6 @@ impl IXMLDSOControl { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IXMLDSOControl, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IXMLDSOControl { - type Vtable = IXMLDSOControl_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IXMLDSOControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x310afa62_0575_11d2_9ca9_0060b0ec3d39); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IXMLDSOControl_Vtbl { @@ -9868,11 +9420,15 @@ pub struct IXMLDSOControl_Vtbl { pub SetJavaDSOCompatible: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fjavadsocompatible: super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub readyState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, state: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXMLDocument(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IXMLDocument, + IXMLDocument_Vtbl, + 0xf52e2b61_18a1_11d1_b105_00805f49916b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IXMLDocument, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IXMLDocument { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -9941,16 +9497,6 @@ impl IXMLDocument { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IXMLDocument, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IXMLDocument { - type Vtable = IXMLDocument_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IXMLDocument { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf52e2b61_18a1_11d1_b105_00805f49916b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IXMLDocument_Vtbl { @@ -9976,11 +9522,15 @@ pub struct IXMLDocument_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] createElement: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXMLDocument2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IXMLDocument2, + IXMLDocument2_Vtbl, + 0x2b8de2fe_8d2d_11d1_b2fc_00c04fd915a9 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IXMLDocument2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IXMLDocument2 { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -10059,16 +9609,6 @@ impl IXMLDocument2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IXMLDocument2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IXMLDocument2 { - type Vtable = IXMLDocument2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IXMLDocument2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2b8de2fe_8d2d_11d1_b2fc_00c04fd915a9); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IXMLDocument2_Vtbl { @@ -10096,11 +9636,15 @@ pub struct IXMLDocument2_Vtbl { pub r#async: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pf: *mut super::super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub Setasync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, f: super::super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXMLElement(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IXMLElement, + IXMLElement_Vtbl, + 0x3f7f31ac_e15f_11d0_9c25_00c04fc99c8e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IXMLElement, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IXMLElement { pub unsafe fn tagName(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -10180,16 +9724,6 @@ impl IXMLElement { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IXMLElement, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IXMLElement { - type Vtable = IXMLElement_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IXMLElement { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3f7f31ac_e15f_11d0_9c25_00c04fc99c8e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IXMLElement_Vtbl { @@ -10225,11 +9759,15 @@ pub struct IXMLElement_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] removeChild: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXMLElement2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IXMLElement2, + IXMLElement2_Vtbl, + 0x2b8de2ff_8d2d_11d1_b2fc_00c04fd915a9 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IXMLElement2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IXMLElement2 { pub unsafe fn tagName(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -10315,16 +9853,6 @@ impl IXMLElement2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IXMLElement2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IXMLElement2 { - type Vtable = IXMLElement2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IXMLElement2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2b8de2ff_8d2d_11d1_b2fc_00c04fd915a9); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IXMLElement2_Vtbl { @@ -10364,11 +9892,15 @@ pub struct IXMLElement2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] attributes: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXMLElementCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IXMLElementCollection, + IXMLElementCollection_Vtbl, + 0x65725580_9b5d_11d0_9bfe_00c04fc99c8e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IXMLElementCollection, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IXMLElementCollection { pub unsafe fn Setlength(&self, v: i32) -> ::windows_core::Result<()> { @@ -10390,16 +9922,6 @@ impl IXMLElementCollection { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IXMLElementCollection, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IXMLElementCollection { - type Vtable = IXMLElementCollection_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IXMLElementCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x65725580_9b5d_11d0_9bfe_00c04fc99c8e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IXMLElementCollection_Vtbl { @@ -10412,32 +9934,28 @@ pub struct IXMLElementCollection_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] item: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXMLError(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXMLError, IXMLError_Vtbl, 0x948c5ad3_c58d_11d0_9c0b_00c04fc99c8e); +::windows_core::imp::interface_hierarchy!(IXMLError, ::windows_core::IUnknown); impl IXMLError { pub unsafe fn GetErrorInfo(&self, perrorreturn: *mut XML_ERROR) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetErrorInfo)(::windows_core::Interface::as_raw(self), perrorreturn).ok() } } -::windows_core::imp::interface_hierarchy!(IXMLError, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXMLError { - type Vtable = IXMLError_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXMLError { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x948c5ad3_c58d_11d0_9c0b_00c04fc99c8e); -} #[repr(C)] #[doc(hidden)] pub struct IXMLError_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetErrorInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, perrorreturn: *mut XML_ERROR) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXMLHTTPRequest(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IXMLHTTPRequest, + IXMLHTTPRequest_Vtbl, + 0xed8c108d_4349_11d2_91a4_00c04f7969e8 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IXMLHTTPRequest, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IXMLHTTPRequest { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -10519,16 +10037,6 @@ impl IXMLHTTPRequest { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IXMLHTTPRequest, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IXMLHTTPRequest { - type Vtable = IXMLHTTPRequest_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IXMLHTTPRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xed8c108d_4349_11d2_91a4_00c04f7969e8); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IXMLHTTPRequest_Vtbl { @@ -10566,9 +10074,8 @@ pub struct IXMLHTTPRequest_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Setonreadystatechange: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXMLHTTPRequest2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXMLHTTPRequest2, IXMLHTTPRequest2_Vtbl, 0xe5d37dc0_552a_4d52_9cc0_a14d546fbd04); +::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 @@ -10634,13 +10141,6 @@ impl IXMLHTTPRequest2 { (::windows_core::Interface::vtable(self).GetResponseHeader)(::windows_core::Interface::as_raw(self), pwszheader.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IXMLHTTPRequest2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXMLHTTPRequest2 { - type Vtable = IXMLHTTPRequest2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXMLHTTPRequest2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe5d37dc0_552a_4d52_9cc0_a14d546fbd04); -} #[repr(C)] #[doc(hidden)] pub struct IXMLHTTPRequest2_Vtbl { @@ -10662,9 +10162,8 @@ pub struct IXMLHTTPRequest2_Vtbl { pub GetCookie: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwszurl: ::windows_core::PCWSTR, pwszname: ::windows_core::PCWSTR, dwflags: u32, pccookies: *mut u32, ppcookies: *mut *mut XHR_COOKIE) -> ::windows_core::HRESULT, pub GetResponseHeader: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwszheader: ::windows_core::PCWSTR, ppwszvalue: *mut *mut u16) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXMLHTTPRequest2Callback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXMLHTTPRequest2Callback, IXMLHTTPRequest2Callback_Vtbl, 0xa44a9299_e321_40de_8866_341b41669162); +::windows_core::imp::interface_hierarchy!(IXMLHTTPRequest2Callback, ::windows_core::IUnknown); impl IXMLHTTPRequest2Callback { pub unsafe fn OnRedirect(&self, pxhr: P0, pwszredirecturl: P1) -> ::windows_core::Result<()> where @@ -10705,13 +10204,6 @@ impl IXMLHTTPRequest2Callback { (::windows_core::Interface::vtable(self).OnError)(::windows_core::Interface::as_raw(self), pxhr.into_param().abi(), hrerror).ok() } } -::windows_core::imp::interface_hierarchy!(IXMLHTTPRequest2Callback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXMLHTTPRequest2Callback { - type Vtable = IXMLHTTPRequest2Callback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXMLHTTPRequest2Callback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa44a9299_e321_40de_8866_341b41669162); -} #[repr(C)] #[doc(hidden)] pub struct IXMLHTTPRequest2Callback_Vtbl { @@ -10728,9 +10220,8 @@ pub struct IXMLHTTPRequest2Callback_Vtbl { OnResponseReceived: usize, pub OnError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pxhr: *mut ::core::ffi::c_void, hrerror: ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXMLHTTPRequest3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXMLHTTPRequest3, IXMLHTTPRequest3_Vtbl, 0xa1c9feee_0617_4f23_9d58_8961ea43567c); +::windows_core::imp::interface_hierarchy!(IXMLHTTPRequest3, ::windows_core::IUnknown, IXMLHTTPRequest2); 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 @@ -10802,22 +10293,14 @@ impl IXMLHTTPRequest3 { (::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::imp::interface_hierarchy!(IXMLHTTPRequest3, ::windows_core::IUnknown, IXMLHTTPRequest2); -unsafe impl ::windows_core::Interface for IXMLHTTPRequest3 { - type Vtable = IXMLHTTPRequest3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXMLHTTPRequest3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa1c9feee_0617_4f23_9d58_8961ea43567c); -} #[repr(C)] #[doc(hidden)] pub struct IXMLHTTPRequest3_Vtbl { pub base__: IXMLHTTPRequest2_Vtbl, pub SetClientCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cbclientcertificatehash: u32, pbclientcertificatehash: *const u8, pwszpin: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXMLHTTPRequest3Callback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXMLHTTPRequest3Callback, IXMLHTTPRequest3Callback_Vtbl, 0xb9e57830_8c6c_4a6f_9c13_47772bb047bb); +::windows_core::imp::interface_hierarchy!(IXMLHTTPRequest3Callback, ::windows_core::IUnknown, IXMLHTTPRequest2Callback); impl IXMLHTTPRequest3Callback { pub unsafe fn OnRedirect(&self, pxhr: P0, pwszredirecturl: P1) -> ::windows_core::Result<()> where @@ -10870,13 +10353,6 @@ impl IXMLHTTPRequest3Callback { (::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::imp::interface_hierarchy!(IXMLHTTPRequest3Callback, ::windows_core::IUnknown, IXMLHTTPRequest2Callback); -unsafe impl ::windows_core::Interface for IXMLHTTPRequest3Callback { - type Vtable = IXMLHTTPRequest3Callback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXMLHTTPRequest3Callback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb9e57830_8c6c_4a6f_9c13_47772bb047bb); -} #[repr(C)] #[doc(hidden)] pub struct IXMLHTTPRequest3Callback_Vtbl { @@ -10884,11 +10360,15 @@ pub struct IXMLHTTPRequest3Callback_Vtbl { pub OnServerCertificateReceived: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pxhr: *mut ::core::ffi::c_void, dwcertificateerrors: u32, cservercertificatechain: u32, rgservercertificatechain: *const XHR_CERT) -> ::windows_core::HRESULT, pub OnClientCertificateRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pxhr: *mut ::core::ffi::c_void, cissuerlist: u32, rgpwszissuerlist: *const *const u16) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXSLProcessor(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IXSLProcessor, + IXSLProcessor_Vtbl, + 0x2933bf92_7b36_11d2_b20e_00c04f983e60 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IXSLProcessor, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IXSLProcessor { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -10971,16 +10451,6 @@ impl IXSLProcessor { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IXSLProcessor, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IXSLProcessor { - type Vtable = IXSLProcessor_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IXSLProcessor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2933bf92_7b36_11d2_b20e_00c04f983e60); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IXSLProcessor_Vtbl { @@ -11024,11 +10494,15 @@ pub struct IXSLProcessor_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] stylesheet: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXSLTemplate(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IXSLTemplate, + IXSLTemplate_Vtbl, + 0x2933bf93_7b36_11d2_b20e_00c04f983e60 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IXSLTemplate, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IXSLTemplate { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -11053,16 +10527,6 @@ impl IXSLTemplate { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IXSLTemplate, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IXSLTemplate { - type Vtable = IXSLTemplate_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IXSLTemplate { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2933bf93_7b36_11d2_b20e_00c04f983e60); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IXSLTemplate_Vtbl { @@ -11080,11 +10544,15 @@ pub struct IXSLTemplate_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] createProcessor: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXTLRuntime(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IXTLRuntime, + IXTLRuntime_Vtbl, + 0x3efaa425_272f_11d2_836f_0000f87a7782 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IXTLRuntime, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IXMLDOMNode); #[cfg(feature = "Win32_System_Com")] impl IXTLRuntime { pub unsafe fn nodeName(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -11386,16 +10854,6 @@ impl IXTLRuntime { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IXTLRuntime, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IXMLDOMNode); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IXTLRuntime { - type Vtable = IXTLRuntime_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IXTLRuntime { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3efaa425_272f_11d2_836f_0000f87a7782); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IXTLRuntime_Vtbl { @@ -11431,23 +10889,17 @@ pub struct IXTLRuntime_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] formatTime: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct XMLDOMDocumentEvents(::windows_core::IUnknown); -#[cfg(feature = "Win32_System_Com")] -impl XMLDOMDocumentEvents {} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + XMLDOMDocumentEvents, + XMLDOMDocumentEvents_Vtbl, + 0x3efaa427_272f_11d2_836f_0000f87a7782 +); #[cfg(feature = "Win32_System_Com")] ::windows_core::imp::interface_hierarchy!(XMLDOMDocumentEvents, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for XMLDOMDocumentEvents { - type Vtable = XMLDOMDocumentEvents_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for XMLDOMDocumentEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3efaa427_272f_11d2_836f_0000f87a7782); -} +impl XMLDOMDocumentEvents {} #[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] diff --git a/crates/libs/windows/src/Windows/Win32/Data/Xml/XmlLite/impl.rs b/crates/libs/windows/src/Windows/Win32/Data/Xml/XmlLite/impl.rs index 555b686d4c..c5e6fc878f 100644 --- a/crates/libs/windows/src/Windows/Win32/Data/Xml/XmlLite/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Data/Xml/XmlLite/impl.rs @@ -205,7 +205,7 @@ impl IXmlReader_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IXmlResolver_Impl: Sized { @@ -228,7 +228,7 @@ impl IXmlResolver_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), ResolveUri: ResolveUri:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IXmlWriter_Impl: Sized { @@ -450,7 +450,7 @@ impl IXmlWriter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IXmlWriterLite_Impl: Sized { @@ -665,6 +665,6 @@ impl IXmlWriterLite_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 52b1f30f6e..7db37de628 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 @@ -72,9 +72,8 @@ where let mut result__ = ::std::mem::zeroed(); CreateXmlWriterOutputWithEncodingName(poutputstream.into_param().abi(), pmalloc.into_param().abi(), pwszencodingname.into_param().abi(), &mut result__).from_abi(result__) } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXmlReader(::windows_core::IUnknown); +::windows_core::imp::com_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 @@ -159,13 +158,6 @@ impl IXmlReader { (::windows_core::Interface::vtable(self).IsEOF)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(IXmlReader, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXmlReader { - type Vtable = IXmlReader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXmlReader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7279fc81_709d_4095_b63d_69fe4b0d9030); -} #[repr(C)] #[doc(hidden)] pub struct IXmlReader_Vtbl { @@ -194,9 +186,8 @@ pub struct IXmlReader_Vtbl { pub GetDepth: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pndepth: *mut u32) -> ::windows_core::HRESULT, pub IsEOF: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> super::super::super::Foundation::BOOL, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXmlResolver(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXmlResolver, IXmlResolver_Vtbl, 0x7279fc82_709d_4095_b63d_69fe4b0d9030); +::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<::windows_core::IUnknown> where @@ -208,22 +199,14 @@ impl IXmlResolver { (::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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IXmlResolver, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXmlResolver { - type Vtable = IXmlResolver_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXmlResolver { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7279fc82_709d_4095_b63d_69fe4b0d9030); -} #[repr(C)] #[doc(hidden)] pub struct IXmlResolver_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub ResolveUri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwszbaseuri: ::windows_core::PCWSTR, pwszpublicidentifier: ::windows_core::PCWSTR, pwszsystemidentifier: ::windows_core::PCWSTR, ppresolvedinput: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXmlWriter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXmlWriter, IXmlWriter_Vtbl, 0x7279fc88_709d_4095_b63d_69fe4b0d9030); +::windows_core::imp::interface_hierarchy!(IXmlWriter, ::windows_core::IUnknown); impl IXmlWriter { pub unsafe fn SetOutput(&self, poutput: P0) -> ::windows_core::Result<()> where @@ -384,13 +367,6 @@ impl IXmlWriter { (::windows_core::Interface::vtable(self).Flush)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IXmlWriter, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXmlWriter { - type Vtable = IXmlWriter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXmlWriter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7279fc88_709d_4095_b63d_69fe4b0d9030); -} #[repr(C)] #[doc(hidden)] pub struct IXmlWriter_Vtbl { @@ -425,9 +401,8 @@ pub struct IXmlWriter_Vtbl { pub WriteWhitespace: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwszwhitespace: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub Flush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXmlWriterLite(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXmlWriterLite, IXmlWriterLite_Vtbl, 0x862494c6_1310_4aad_b3cd_2dbeebf670d3); +::windows_core::imp::interface_hierarchy!(IXmlWriterLite, ::windows_core::IUnknown); impl IXmlWriterLite { pub unsafe fn SetOutput(&self, poutput: P0) -> ::windows_core::Result<()> where @@ -567,13 +542,6 @@ impl IXmlWriterLite { (::windows_core::Interface::vtable(self).Flush)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IXmlWriterLite, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXmlWriterLite { - type Vtable = IXmlWriterLite_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXmlWriterLite { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x862494c6_1310_4aad_b3cd_2dbeebf670d3); -} #[repr(C)] #[doc(hidden)] pub struct IXmlWriterLite_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Devices/DeviceAccess/impl.rs b/crates/libs/windows/src/Windows/Win32/Devices/DeviceAccess/impl.rs index dbae84bd7d..b473151f21 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/DeviceAccess/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/DeviceAccess/impl.rs @@ -36,7 +36,7 @@ impl ICreateDeviceAccessAsync_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDeviceIoControl_Impl: Sized { @@ -70,7 +70,7 @@ impl IDeviceIoControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDeviceRequestCompletionCallback_Impl: Sized { @@ -87,6 +87,6 @@ impl IDeviceRequestCompletionCallback_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Invoke: Invoke:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 5021503563..f07b980310 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/DeviceAccess/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/DeviceAccess/mod.rs @@ -7,9 +7,8 @@ where let mut result__ = ::std::mem::zeroed(); CreateDeviceAccessInstance(deviceinterfacepath.into_param().abi(), desiredaccess, &mut result__).from_abi(result__) } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICreateDeviceAccessAsync(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICreateDeviceAccessAsync, ICreateDeviceAccessAsync_Vtbl, 0x3474628f_683d_42d2_abcb_db018c6503bc); +::windows_core::imp::interface_hierarchy!(ICreateDeviceAccessAsync, ::windows_core::IUnknown); impl ICreateDeviceAccessAsync { pub unsafe fn Cancel(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Cancel)(::windows_core::Interface::as_raw(self)).ok() @@ -22,19 +21,12 @@ impl ICreateDeviceAccessAsync { } pub unsafe fn GetResult(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetResult)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ICreateDeviceAccessAsync, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICreateDeviceAccessAsync { - type Vtable = ICreateDeviceAccessAsync_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICreateDeviceAccessAsync { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3474628f_683d_42d2_abcb_db018c6503bc); -} #[repr(C)] #[doc(hidden)] pub struct ICreateDeviceAccessAsync_Vtbl { @@ -44,9 +36,8 @@ pub struct ICreateDeviceAccessAsync_Vtbl { pub Close: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetResult: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, deviceaccess: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDeviceIoControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDeviceIoControl, IDeviceIoControl_Vtbl, 0x9eefe161_23ab_4f18_9b49_991b586ae970); +::windows_core::imp::interface_hierarchy!(IDeviceIoControl, ::windows_core::IUnknown); impl IDeviceIoControl { pub unsafe fn DeviceIoControlSync(&self, iocontrolcode: u32, inputbuffer: ::core::option::Option<&[u8]>, outputbuffer: ::core::option::Option<&mut [u8]>, bytesreturned: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).DeviceIoControlSync)(::windows_core::Interface::as_raw(self), iocontrolcode, ::core::mem::transmute(inputbuffer.as_deref().map_or(::core::ptr::null(), |slice| slice.as_ptr())), inputbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), ::core::mem::transmute(outputbuffer.as_deref().map_or(::core::ptr::null(), |slice| slice.as_ptr())), outputbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), bytesreturned).ok() @@ -71,13 +62,6 @@ impl IDeviceIoControl { (::windows_core::Interface::vtable(self).CancelOperation)(::windows_core::Interface::as_raw(self), cancelcontext).ok() } } -::windows_core::imp::interface_hierarchy!(IDeviceIoControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDeviceIoControl { - type Vtable = IDeviceIoControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDeviceIoControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9eefe161_23ab_4f18_9b49_991b586ae970); -} #[repr(C)] #[doc(hidden)] pub struct IDeviceIoControl_Vtbl { @@ -86,21 +70,13 @@ pub struct IDeviceIoControl_Vtbl { pub DeviceIoControlAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, iocontrolcode: u32, inputbuffer: *const u8, inputbuffersize: u32, outputbuffer: *mut u8, outputbuffersize: u32, requestcompletioncallback: *mut ::core::ffi::c_void, cancelcontext: *mut usize) -> ::windows_core::HRESULT, pub CancelOperation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cancelcontext: usize) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDeviceRequestCompletionCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDeviceRequestCompletionCallback, IDeviceRequestCompletionCallback_Vtbl, 0x999bad24_9acd_45bb_8669_2a2fc0288b04); +::windows_core::imp::interface_hierarchy!(IDeviceRequestCompletionCallback, ::windows_core::IUnknown); impl IDeviceRequestCompletionCallback { pub unsafe fn Invoke(&self, requestresult: ::windows_core::HRESULT, bytesreturned: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Invoke)(::windows_core::Interface::as_raw(self), requestresult, bytesreturned).ok() } } -::windows_core::imp::interface_hierarchy!(IDeviceRequestCompletionCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDeviceRequestCompletionCallback { - type Vtable = IDeviceRequestCompletionCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDeviceRequestCompletionCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x999bad24_9acd_45bb_8669_2a2fc0288b04); -} #[repr(C)] #[doc(hidden)] pub struct IDeviceRequestCompletionCallback_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Devices/Display/impl.rs b/crates/libs/windows/src/Windows/Win32/Devices/Display/impl.rs index cafe8c318d..6e191bdde6 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/Display/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/Display/impl.rs @@ -36,7 +36,7 @@ impl ICloneViewHelper_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -101,6 +101,6 @@ impl IViewHelper_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 714263d637..97ed6daed6 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/Display/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/Display/mod.rs @@ -784,9 +784,8 @@ pub unsafe fn XLATEOBJ_piVector(pxlo: *mut XLATEOBJ) -> *mut u32 { ::windows_targets::link!("gdi32.dll" "system" fn XLATEOBJ_piVector(pxlo : *mut XLATEOBJ) -> *mut u32); XLATEOBJ_piVector(pxlo) } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICloneViewHelper(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICloneViewHelper, ICloneViewHelper_Vtbl, 0xf6a3d4c4_5632_4d83_b0a1_fb88712b1eb7); +::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 @@ -813,13 +812,6 @@ impl ICloneViewHelper { (::windows_core::Interface::vtable(self).Commit)(::windows_core::Interface::as_raw(self), ffinalcall.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ICloneViewHelper, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICloneViewHelper { - type Vtable = ICloneViewHelper_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICloneViewHelper { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf6a3d4c4_5632_4d83_b0a1_fb88712b1eb7); -} #[repr(C)] #[doc(hidden)] pub struct ICloneViewHelper_Vtbl { @@ -829,9 +821,8 @@ pub struct ICloneViewHelper_Vtbl { pub SetActiveTopology: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wszadaptorname: ::windows_core::PCWSTR, ulsourceid: u32, ulcount: u32, pultargetid: *const u32) -> ::windows_core::HRESULT, pub Commit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ffinalcall: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IViewHelper(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IViewHelper, IViewHelper_Vtbl, 0xe85ccef5_aaaa_47f0_b5e3_61f7aecdc4c1); +::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 @@ -867,13 +858,6 @@ impl IViewHelper { (::windows_core::Interface::vtable(self).GetProceedOnNewConfiguration)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IViewHelper, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IViewHelper { - type Vtable = IViewHelper_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IViewHelper { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe85ccef5_aaaa_47f0_b5e3_61f7aecdc4c1); -} #[repr(C)] #[doc(hidden)] pub struct IViewHelper_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Devices/Enumeration/Pnp/impl.rs b/crates/libs/windows/src/Windows/Win32/Devices/Enumeration/Pnp/impl.rs index 38d0f2b339..1833c59800 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/Enumeration/Pnp/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/Enumeration/Pnp/impl.rs @@ -28,7 +28,7 @@ impl IUPnPAddressFamilyControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUPnPAsyncResult_Impl: Sized { @@ -45,7 +45,7 @@ impl IUPnPAsyncResult_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), AsyncOperationComplete: AsyncOperationComplete:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -135,7 +135,7 @@ impl IUPnPDescriptionDocument_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IUPnPDescriptionDocumentCallback_Impl: Sized { @@ -152,7 +152,7 @@ impl IUPnPDescriptionDocumentCallback_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), LoadComplete: LoadComplete:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -416,7 +416,7 @@ impl IUPnPDevice_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -453,7 +453,7 @@ impl IUPnPDeviceControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUPnPDeviceControlHttpHeaders_Impl: Sized { @@ -479,7 +479,7 @@ impl IUPnPDeviceControlHttpHeaders_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUPnPDeviceDocumentAccess_Impl: Sized { @@ -502,7 +502,7 @@ impl IUPnPDeviceDocumentAccess_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetDocumentURL: GetDocumentURL:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUPnPDeviceDocumentAccessEx_Impl: Sized { @@ -525,7 +525,7 @@ impl IUPnPDeviceDocumentAccessEx_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetDocument: GetDocument:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -595,7 +595,7 @@ impl IUPnPDeviceFinder_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -616,7 +616,7 @@ impl IUPnPDeviceFinderAddCallbackWithInterface_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), DeviceAddedWithInterface: DeviceAddedWithInterface:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -654,7 +654,7 @@ impl IUPnPDeviceFinderCallback_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUPnPDeviceProvider_Impl: Sized { @@ -677,7 +677,7 @@ impl IUPnPDeviceProvider_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Start: Start::, Stop: Stop:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -733,7 +733,7 @@ impl IUPnPDevices_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -764,7 +764,7 @@ impl IUPnPEventSink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUPnPEventSource_Impl: Sized { @@ -791,7 +791,7 @@ impl IUPnPEventSource_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUPnPHttpHeaderControl_Impl: Sized { @@ -808,7 +808,7 @@ impl IUPnPHttpHeaderControl_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), AddRequestHeaders: AddRequestHeaders:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUPnPRegistrar_Impl: Sized { @@ -881,7 +881,7 @@ impl IUPnPRegistrar_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUPnPRemoteEndpointInfo_Impl: Sized { @@ -933,7 +933,7 @@ impl IUPnPRemoteEndpointInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUPnPReregistrar_Impl: Sized { @@ -960,7 +960,7 @@ impl IUPnPReregistrar_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1043,7 +1043,7 @@ impl IUPnPService_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1153,7 +1153,7 @@ impl IUPnPServiceAsync_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1184,7 +1184,7 @@ impl IUPnPServiceCallback_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUPnPServiceDocumentAccess_Impl: Sized { @@ -1223,7 +1223,7 @@ impl IUPnPServiceDocumentAccess_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUPnPServiceEnumProperty_Impl: Sized { @@ -1240,7 +1240,7 @@ impl IUPnPServiceEnumProperty_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), SetServiceEnumProperty: SetServiceEnumProperty:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1296,6 +1296,6 @@ impl IUPnPServices_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } 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 da249cfa4e..802ca283be 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 @@ -84,9 +84,8 @@ pub unsafe fn SwMemFree(pmem: *const ::core::ffi::c_void) { ::windows_targets::link!("cfgmgr32.dll" "system" fn SwMemFree(pmem : *const ::core::ffi::c_void)); SwMemFree(pmem) } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUPnPAddressFamilyControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUPnPAddressFamilyControl, IUPnPAddressFamilyControl_Vtbl, 0xe3bf6178_694e_459f_a5a6_191ea0ffa1c7); +::windows_core::imp::interface_hierarchy!(IUPnPAddressFamilyControl, ::windows_core::IUnknown); impl IUPnPAddressFamilyControl { pub unsafe fn SetAddressFamily(&self, dwflags: i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetAddressFamily)(::windows_core::Interface::as_raw(self), dwflags).ok() @@ -96,13 +95,6 @@ impl IUPnPAddressFamilyControl { (::windows_core::Interface::vtable(self).GetAddressFamily)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUPnPAddressFamilyControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUPnPAddressFamilyControl { - type Vtable = IUPnPAddressFamilyControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUPnPAddressFamilyControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe3bf6178_694e_459f_a5a6_191ea0ffa1c7); -} #[repr(C)] #[doc(hidden)] pub struct IUPnPAddressFamilyControl_Vtbl { @@ -110,32 +102,28 @@ pub struct IUPnPAddressFamilyControl_Vtbl { pub SetAddressFamily: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwflags: i32) -> ::windows_core::HRESULT, pub GetAddressFamily: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwflags: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUPnPAsyncResult(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUPnPAsyncResult, IUPnPAsyncResult_Vtbl, 0x4d65fd08_d13e_4274_9c8b_dd8d028c8644); +::windows_core::imp::interface_hierarchy!(IUPnPAsyncResult, ::windows_core::IUnknown); impl IUPnPAsyncResult { pub unsafe fn AsyncOperationComplete(&self, ullrequestid: u64) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).AsyncOperationComplete)(::windows_core::Interface::as_raw(self), ullrequestid).ok() } } -::windows_core::imp::interface_hierarchy!(IUPnPAsyncResult, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUPnPAsyncResult { - type Vtable = IUPnPAsyncResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUPnPAsyncResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4d65fd08_d13e_4274_9c8b_dd8d028c8644); -} #[repr(C)] #[doc(hidden)] pub struct IUPnPAsyncResult_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub AsyncOperationComplete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ullrequestid: u64) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUPnPDescriptionDocument(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IUPnPDescriptionDocument, + IUPnPDescriptionDocument_Vtbl, + 0x11d1c1b2_7daa_4c9e_9595_7f82ed206d1e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IUPnPDescriptionDocument, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IUPnPDescriptionDocument { pub unsafe fn ReadyState(&self) -> ::windows_core::Result { @@ -179,16 +167,6 @@ impl IUPnPDescriptionDocument { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IUPnPDescriptionDocument, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IUPnPDescriptionDocument { - type Vtable = IUPnPDescriptionDocument_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IUPnPDescriptionDocument { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x11d1c1b2_7daa_4c9e_9595_7f82ed206d1e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IUPnPDescriptionDocument_Vtbl { @@ -207,32 +185,28 @@ pub struct IUPnPDescriptionDocument_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] DeviceByUDN: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUPnPDescriptionDocumentCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUPnPDescriptionDocumentCallback, IUPnPDescriptionDocumentCallback_Vtbl, 0x77394c69_5486_40d6_9bc3_4991983e02da); +::windows_core::imp::interface_hierarchy!(IUPnPDescriptionDocumentCallback, ::windows_core::IUnknown); impl IUPnPDescriptionDocumentCallback { pub unsafe fn LoadComplete(&self, hrloadresult: ::windows_core::HRESULT) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).LoadComplete)(::windows_core::Interface::as_raw(self), hrloadresult).ok() } } -::windows_core::imp::interface_hierarchy!(IUPnPDescriptionDocumentCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUPnPDescriptionDocumentCallback { - type Vtable = IUPnPDescriptionDocumentCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUPnPDescriptionDocumentCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x77394c69_5486_40d6_9bc3_4991983e02da); -} #[repr(C)] #[doc(hidden)] pub struct IUPnPDescriptionDocumentCallback_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub LoadComplete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hrloadresult: ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUPnPDevice(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IUPnPDevice, + IUPnPDevice_Vtbl, + 0x3d44d0d1_98c9_4889_acd1_f9d674bf2221 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IUPnPDevice, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IUPnPDevice { pub unsafe fn IsRootDevice(&self) -> ::windows_core::Result { @@ -324,16 +298,6 @@ impl IUPnPDevice { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IUPnPDevice, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IUPnPDevice { - type Vtable = IUPnPDevice_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IUPnPDevice { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3d44d0d1_98c9_4889_acd1_f9d674bf2221); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IUPnPDevice_Vtbl { @@ -370,9 +334,8 @@ pub struct IUPnPDevice_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Services: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUPnPDeviceControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUPnPDeviceControl, IUPnPDeviceControl_Vtbl, 0x204810ba_73b2_11d4_bf42_00b0d0118b56); +::windows_core::imp::interface_hierarchy!(IUPnPDeviceControl, ::windows_core::IUnknown); impl IUPnPDeviceControl { pub unsafe fn Initialize(&self, bstrxmldesc: P0, bstrdeviceidentifier: P1, bstrinitstring: P2) -> ::windows_core::Result<()> where @@ -393,13 +356,6 @@ impl IUPnPDeviceControl { (::windows_core::Interface::vtable(self).GetServiceObject)(::windows_core::Interface::as_raw(self), bstrudn.into_param().abi(), bstrserviceid.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUPnPDeviceControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUPnPDeviceControl { - type Vtable = IUPnPDeviceControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUPnPDeviceControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x204810ba_73b2_11d4_bf42_00b0d0118b56); -} #[repr(C)] #[doc(hidden)] pub struct IUPnPDeviceControl_Vtbl { @@ -410,77 +366,57 @@ pub struct IUPnPDeviceControl_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetServiceObject: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUPnPDeviceControlHttpHeaders(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUPnPDeviceControlHttpHeaders, IUPnPDeviceControlHttpHeaders_Vtbl, 0x204810bb_73b2_11d4_bf42_00b0d0118b56); +::windows_core::imp::interface_hierarchy!(IUPnPDeviceControlHttpHeaders, ::windows_core::IUnknown); impl IUPnPDeviceControlHttpHeaders { pub unsafe fn GetAdditionalResponseHeaders(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetAdditionalResponseHeaders)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUPnPDeviceControlHttpHeaders, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUPnPDeviceControlHttpHeaders { - type Vtable = IUPnPDeviceControlHttpHeaders_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUPnPDeviceControlHttpHeaders { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x204810bb_73b2_11d4_bf42_00b0d0118b56); -} #[repr(C)] #[doc(hidden)] pub struct IUPnPDeviceControlHttpHeaders_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetAdditionalResponseHeaders: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrhttpresponseheaders: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUPnPDeviceDocumentAccess(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUPnPDeviceDocumentAccess, IUPnPDeviceDocumentAccess_Vtbl, 0xe7772804_3287_418e_9072_cf2b47238981); +::windows_core::imp::interface_hierarchy!(IUPnPDeviceDocumentAccess, ::windows_core::IUnknown); impl IUPnPDeviceDocumentAccess { pub unsafe fn GetDocumentURL(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetDocumentURL)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUPnPDeviceDocumentAccess, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUPnPDeviceDocumentAccess { - type Vtable = IUPnPDeviceDocumentAccess_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUPnPDeviceDocumentAccess { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe7772804_3287_418e_9072_cf2b47238981); -} #[repr(C)] #[doc(hidden)] pub struct IUPnPDeviceDocumentAccess_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetDocumentURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdocument: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUPnPDeviceDocumentAccessEx(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUPnPDeviceDocumentAccessEx, IUPnPDeviceDocumentAccessEx_Vtbl, 0xc4bc4050_6178_4bd1_a4b8_6398321f3247); +::windows_core::imp::interface_hierarchy!(IUPnPDeviceDocumentAccessEx, ::windows_core::IUnknown); impl IUPnPDeviceDocumentAccessEx { pub unsafe fn GetDocument(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetDocument)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUPnPDeviceDocumentAccessEx, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUPnPDeviceDocumentAccessEx { - type Vtable = IUPnPDeviceDocumentAccessEx_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUPnPDeviceDocumentAccessEx { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc4bc4050_6178_4bd1_a4b8_6398321f3247); -} #[repr(C)] #[doc(hidden)] pub struct IUPnPDeviceDocumentAccessEx_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetDocument: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdocument: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUPnPDeviceFinder(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IUPnPDeviceFinder, + IUPnPDeviceFinder_Vtbl, + 0xadda3d55_6f72_4319_bff9_18600a539b10 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IUPnPDeviceFinder, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IUPnPDeviceFinder { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -517,16 +453,6 @@ impl IUPnPDeviceFinder { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IUPnPDeviceFinder, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IUPnPDeviceFinder { - type Vtable = IUPnPDeviceFinder_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IUPnPDeviceFinder { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xadda3d55_6f72_4319_bff9_18600a539b10); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IUPnPDeviceFinder_Vtbl { @@ -543,9 +469,8 @@ pub struct IUPnPDeviceFinder_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] FindByUDN: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUPnPDeviceFinderAddCallbackWithInterface(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUPnPDeviceFinderAddCallbackWithInterface, IUPnPDeviceFinderAddCallbackWithInterface_Vtbl, 0x983dfc0b_1796_44df_8975_ca545b620ee5); +::windows_core::imp::interface_hierarchy!(IUPnPDeviceFinderAddCallbackWithInterface, ::windows_core::IUnknown); impl IUPnPDeviceFinderAddCallbackWithInterface { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -556,13 +481,6 @@ impl IUPnPDeviceFinderAddCallbackWithInterface { (::windows_core::Interface::vtable(self).DeviceAddedWithInterface)(::windows_core::Interface::as_raw(self), lfinddata, pdevice.into_param().abi(), pguidinterface).ok() } } -::windows_core::imp::interface_hierarchy!(IUPnPDeviceFinderAddCallbackWithInterface, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUPnPDeviceFinderAddCallbackWithInterface { - type Vtable = IUPnPDeviceFinderAddCallbackWithInterface_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUPnPDeviceFinderAddCallbackWithInterface { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x983dfc0b_1796_44df_8975_ca545b620ee5); -} #[repr(C)] #[doc(hidden)] pub struct IUPnPDeviceFinderAddCallbackWithInterface_Vtbl { @@ -572,9 +490,8 @@ pub struct IUPnPDeviceFinderAddCallbackWithInterface_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] DeviceAddedWithInterface: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUPnPDeviceFinderCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUPnPDeviceFinderCallback, IUPnPDeviceFinderCallback_Vtbl, 0x415a984a_88b3_49f3_92af_0508bedf0d6c); +::windows_core::imp::interface_hierarchy!(IUPnPDeviceFinderCallback, ::windows_core::IUnknown); impl IUPnPDeviceFinderCallback { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -594,13 +511,6 @@ impl IUPnPDeviceFinderCallback { (::windows_core::Interface::vtable(self).SearchComplete)(::windows_core::Interface::as_raw(self), lfinddata).ok() } } -::windows_core::imp::interface_hierarchy!(IUPnPDeviceFinderCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUPnPDeviceFinderCallback { - type Vtable = IUPnPDeviceFinderCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUPnPDeviceFinderCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x415a984a_88b3_49f3_92af_0508bedf0d6c); -} #[repr(C)] #[doc(hidden)] pub struct IUPnPDeviceFinderCallback_Vtbl { @@ -612,9 +522,8 @@ pub struct IUPnPDeviceFinderCallback_Vtbl { pub DeviceRemoved: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lfinddata: i32, bstrudn: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SearchComplete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lfinddata: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUPnPDeviceProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUPnPDeviceProvider, IUPnPDeviceProvider_Vtbl, 0x204810b8_73b2_11d4_bf42_00b0d0118b56); +::windows_core::imp::interface_hierarchy!(IUPnPDeviceProvider, ::windows_core::IUnknown); impl IUPnPDeviceProvider { pub unsafe fn Start(&self, bstrinitstring: P0) -> ::windows_core::Result<()> where @@ -626,13 +535,6 @@ impl IUPnPDeviceProvider { (::windows_core::Interface::vtable(self).Stop)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IUPnPDeviceProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUPnPDeviceProvider { - type Vtable = IUPnPDeviceProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUPnPDeviceProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x204810b8_73b2_11d4_bf42_00b0d0118b56); -} #[repr(C)] #[doc(hidden)] pub struct IUPnPDeviceProvider_Vtbl { @@ -640,11 +542,15 @@ pub struct IUPnPDeviceProvider_Vtbl { pub Start: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrinitstring: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub Stop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUPnPDevices(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IUPnPDevices, + IUPnPDevices_Vtbl, + 0xfdbc0c73_bda3_4c66_ac4f_f2d96fdad68c +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IUPnPDevices, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IUPnPDevices { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -666,16 +572,6 @@ impl IUPnPDevices { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IUPnPDevices, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IUPnPDevices { - type Vtable = IUPnPDevices_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IUPnPDevices { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfdbc0c73_bda3_4c66_ac4f_f2d96fdad68c); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IUPnPDevices_Vtbl { @@ -687,9 +583,8 @@ pub struct IUPnPDevices_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] get_Item: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUPnPEventSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUPnPEventSink, IUPnPEventSink_Vtbl, 0x204810b4_73b2_11d4_bf42_00b0d0118b56); +::windows_core::imp::interface_hierarchy!(IUPnPEventSink, ::windows_core::IUnknown); impl IUPnPEventSink { pub unsafe fn OnStateChanged(&self, rgdispidchanges: &[i32]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnStateChanged)(::windows_core::Interface::as_raw(self), rgdispidchanges.len().try_into().unwrap(), ::core::mem::transmute(rgdispidchanges.as_ptr())).ok() @@ -700,13 +595,6 @@ impl IUPnPEventSink { (::windows_core::Interface::vtable(self).OnStateChangedSafe)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(varsadispidchanges)).ok() } } -::windows_core::imp::interface_hierarchy!(IUPnPEventSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUPnPEventSink { - type Vtable = IUPnPEventSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUPnPEventSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x204810b4_73b2_11d4_bf42_00b0d0118b56); -} #[repr(C)] #[doc(hidden)] pub struct IUPnPEventSink_Vtbl { @@ -717,9 +605,8 @@ pub struct IUPnPEventSink_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] OnStateChangedSafe: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUPnPEventSource(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUPnPEventSource, IUPnPEventSource_Vtbl, 0x204810b5_73b2_11d4_bf42_00b0d0118b56); +::windows_core::imp::interface_hierarchy!(IUPnPEventSource, ::windows_core::IUnknown); impl IUPnPEventSource { pub unsafe fn Advise(&self, pessubscriber: P0) -> ::windows_core::Result<()> where @@ -734,13 +621,6 @@ impl IUPnPEventSource { (::windows_core::Interface::vtable(self).Unadvise)(::windows_core::Interface::as_raw(self), pessubscriber.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IUPnPEventSource, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUPnPEventSource { - type Vtable = IUPnPEventSource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUPnPEventSource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x204810b5_73b2_11d4_bf42_00b0d0118b56); -} #[repr(C)] #[doc(hidden)] pub struct IUPnPEventSource_Vtbl { @@ -748,9 +628,8 @@ pub struct IUPnPEventSource_Vtbl { pub Advise: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pessubscriber: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Unadvise: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pessubscriber: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUPnPHttpHeaderControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUPnPHttpHeaderControl, IUPnPHttpHeaderControl_Vtbl, 0x0405af4f_8b5c_447c_80f2_b75984a31f3c); +::windows_core::imp::interface_hierarchy!(IUPnPHttpHeaderControl, ::windows_core::IUnknown); impl IUPnPHttpHeaderControl { pub unsafe fn AddRequestHeaders(&self, bstrhttpheaders: P0) -> ::windows_core::Result<()> where @@ -759,22 +638,14 @@ impl IUPnPHttpHeaderControl { (::windows_core::Interface::vtable(self).AddRequestHeaders)(::windows_core::Interface::as_raw(self), bstrhttpheaders.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IUPnPHttpHeaderControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUPnPHttpHeaderControl { - type Vtable = IUPnPHttpHeaderControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUPnPHttpHeaderControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0405af4f_8b5c_447c_80f2_b75984a31f3c); -} #[repr(C)] #[doc(hidden)] pub struct IUPnPHttpHeaderControl_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub AddRequestHeaders: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrhttpheaders: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUPnPRegistrar(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUPnPRegistrar, IUPnPRegistrar_Vtbl, 0x204810b6_73b2_11d4_bf42_00b0d0118b56); +::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<::windows_core::BSTR> where @@ -828,13 +699,6 @@ impl IUPnPRegistrar { (::windows_core::Interface::vtable(self).UnregisterDeviceProvider)(::windows_core::Interface::as_raw(self), bstrprovidername.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IUPnPRegistrar, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUPnPRegistrar { - type Vtable = IUPnPRegistrar_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUPnPRegistrar { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x204810b6_73b2_11d4_bf42_00b0d0118b56); -} #[repr(C)] #[doc(hidden)] pub struct IUPnPRegistrar_Vtbl { @@ -846,9 +710,8 @@ pub struct IUPnPRegistrar_Vtbl { pub UnregisterDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdeviceidentifier: ::std::mem::MaybeUninit<::windows_core::BSTR>, fpermanent: super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub UnregisterDeviceProvider: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprovidername: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUPnPRemoteEndpointInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUPnPRemoteEndpointInfo, IUPnPRemoteEndpointInfo_Vtbl, 0xc92eb863_0269_4aff_9c72_75321bba2952); +::windows_core::imp::interface_hierarchy!(IUPnPRemoteEndpointInfo, ::windows_core::IUnknown); impl IUPnPRemoteEndpointInfo { pub unsafe fn GetDwordValue(&self, bstrvaluename: P0) -> ::windows_core::Result where @@ -872,13 +735,6 @@ impl IUPnPRemoteEndpointInfo { (::windows_core::Interface::vtable(self).GetGuidValue)(::windows_core::Interface::as_raw(self), bstrvaluename.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUPnPRemoteEndpointInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUPnPRemoteEndpointInfo { - type Vtable = IUPnPRemoteEndpointInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUPnPRemoteEndpointInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc92eb863_0269_4aff_9c72_75321bba2952); -} #[repr(C)] #[doc(hidden)] pub struct IUPnPRemoteEndpointInfo_Vtbl { @@ -887,9 +743,8 @@ pub struct IUPnPRemoteEndpointInfo_Vtbl { pub GetStringValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrvaluename: ::std::mem::MaybeUninit<::windows_core::BSTR>, pbstrvalue: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub GetGuidValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrvaluename: ::std::mem::MaybeUninit<::windows_core::BSTR>, pguidvalue: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUPnPReregistrar(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUPnPReregistrar, IUPnPReregistrar_Vtbl, 0x204810b7_73b2_11d4_bf42_00b0d0118b56); +::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 @@ -913,13 +768,6 @@ impl IUPnPReregistrar { (::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::imp::interface_hierarchy!(IUPnPReregistrar, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUPnPReregistrar { - type Vtable = IUPnPReregistrar_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUPnPReregistrar { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x204810b7_73b2_11d4_bf42_00b0d0118b56); -} #[repr(C)] #[doc(hidden)] pub struct IUPnPReregistrar_Vtbl { @@ -927,11 +775,15 @@ pub struct IUPnPReregistrar_Vtbl { pub ReregisterDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdeviceidentifier: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstrxmldesc: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstrprogiddevicecontrolclass: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstrinitstring: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstrcontainerid: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstrresourcepath: ::std::mem::MaybeUninit<::windows_core::BSTR>, nlifetime: i32) -> ::windows_core::HRESULT, pub ReregisterRunningDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdeviceidentifier: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstrxmldesc: ::std::mem::MaybeUninit<::windows_core::BSTR>, punkdevicecontrol: *mut ::core::ffi::c_void, bstrinitstring: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstrresourcepath: ::std::mem::MaybeUninit<::windows_core::BSTR>, nlifetime: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUPnPService(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IUPnPService, + IUPnPService_Vtbl, + 0xa295019c_dc65_47dd_90dc_7fe918a1ab44 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IUPnPService, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IUPnPService { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -971,16 +823,6 @@ impl IUPnPService { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IUPnPService, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IUPnPService { - type Vtable = IUPnPService_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IUPnPService { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa295019c_dc65_47dd_90dc_7fe918a1ab44); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IUPnPService_Vtbl { @@ -998,9 +840,8 @@ pub struct IUPnPService_Vtbl { pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrid: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub LastTransportStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plvalue: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUPnPServiceAsync(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUPnPServiceAsync, IUPnPServiceAsync_Vtbl, 0x098bdaf5_5ec1_49e7_a260_b3a11dd8680c); +::windows_core::imp::interface_hierarchy!(IUPnPServiceAsync, ::windows_core::IUnknown); impl IUPnPServiceAsync { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -1056,13 +897,6 @@ impl IUPnPServiceAsync { (::windows_core::Interface::vtable(self).CancelAsyncOperation)(::windows_core::Interface::as_raw(self), ullrequestid).ok() } } -::windows_core::imp::interface_hierarchy!(IUPnPServiceAsync, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUPnPServiceAsync { - type Vtable = IUPnPServiceAsync_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUPnPServiceAsync { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x098bdaf5_5ec1_49e7_a260_b3a11dd8680c); -} #[repr(C)] #[doc(hidden)] pub struct IUPnPServiceAsync_Vtbl { @@ -1086,9 +920,8 @@ pub struct IUPnPServiceAsync_Vtbl { pub EndSCPDDownload: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ullrequestid: u64, pbstrscpddoc: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub CancelAsyncOperation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ullrequestid: u64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUPnPServiceCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUPnPServiceCallback, IUPnPServiceCallback_Vtbl, 0x31fadca9_ab73_464b_b67d_5c1d0f83c8b8); +::windows_core::imp::interface_hierarchy!(IUPnPServiceCallback, ::windows_core::IUnknown); impl IUPnPServiceCallback { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -1108,13 +941,6 @@ impl IUPnPServiceCallback { (::windows_core::Interface::vtable(self).ServiceInstanceDied)(::windows_core::Interface::as_raw(self), pus.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IUPnPServiceCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUPnPServiceCallback { - type Vtable = IUPnPServiceCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUPnPServiceCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x31fadca9_ab73_464b_b67d_5c1d0f83c8b8); -} #[repr(C)] #[doc(hidden)] pub struct IUPnPServiceCallback_Vtbl { @@ -1128,9 +954,8 @@ pub struct IUPnPServiceCallback_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] ServiceInstanceDied: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUPnPServiceDocumentAccess(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUPnPServiceDocumentAccess, IUPnPServiceDocumentAccess_Vtbl, 0x21905529_0a5e_4589_825d_7e6d87ea6998); +::windows_core::imp::interface_hierarchy!(IUPnPServiceDocumentAccess, ::windows_core::IUnknown); impl IUPnPServiceDocumentAccess { pub unsafe fn GetDocumentURL(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -1141,13 +966,6 @@ impl IUPnPServiceDocumentAccess { (::windows_core::Interface::vtable(self).GetDocument)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUPnPServiceDocumentAccess, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUPnPServiceDocumentAccess { - type Vtable = IUPnPServiceDocumentAccess_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUPnPServiceDocumentAccess { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x21905529_0a5e_4589_825d_7e6d87ea6998); -} #[repr(C)] #[doc(hidden)] pub struct IUPnPServiceDocumentAccess_Vtbl { @@ -1155,32 +973,28 @@ pub struct IUPnPServiceDocumentAccess_Vtbl { pub GetDocumentURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdocurl: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub GetDocument: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdoc: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUPnPServiceEnumProperty(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUPnPServiceEnumProperty, IUPnPServiceEnumProperty_Vtbl, 0x38873b37_91bb_49f4_b249_2e8efbb8a816); +::windows_core::imp::interface_hierarchy!(IUPnPServiceEnumProperty, ::windows_core::IUnknown); impl IUPnPServiceEnumProperty { pub unsafe fn SetServiceEnumProperty(&self, dwmask: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetServiceEnumProperty)(::windows_core::Interface::as_raw(self), dwmask).ok() } } -::windows_core::imp::interface_hierarchy!(IUPnPServiceEnumProperty, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUPnPServiceEnumProperty { - type Vtable = IUPnPServiceEnumProperty_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUPnPServiceEnumProperty { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x38873b37_91bb_49f4_b249_2e8efbb8a816); -} #[repr(C)] #[doc(hidden)] pub struct IUPnPServiceEnumProperty_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub SetServiceEnumProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwmask: u32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUPnPServices(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IUPnPServices, + IUPnPServices_Vtbl, + 0x3f8c8e9e_9a7a_4dc8_bc41_ff31fa374956 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IUPnPServices, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IUPnPServices { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -1202,16 +1016,6 @@ impl IUPnPServices { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IUPnPServices, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IUPnPServices { - type Vtable = IUPnPServices_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IUPnPServices { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3f8c8e9e_9a7a_4dc8_bc41_ff31fa374956); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IUPnPServices_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Devices/Fax/impl.rs b/crates/libs/windows/src/Windows/Win32/Devices/Fax/impl.rs index 8440d6975b..30d619bad1 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/Fax/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/Fax/impl.rs @@ -58,7 +58,7 @@ impl IFaxAccount_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -127,7 +127,7 @@ impl IFaxAccountFolders_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -203,7 +203,7 @@ impl IFaxAccountIncomingArchive_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -246,7 +246,7 @@ impl IFaxAccountIncomingQueue_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -340,7 +340,7 @@ impl IFaxAccountNotify_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -416,7 +416,7 @@ impl IFaxAccountOutgoingArchive_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -459,7 +459,7 @@ impl IFaxAccountOutgoingQueue_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -522,7 +522,7 @@ impl IFaxAccountSet_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -578,7 +578,7 @@ impl IFaxAccounts_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -654,7 +654,7 @@ impl IFaxActivity_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -745,7 +745,7 @@ impl IFaxActivityLogging_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1182,7 +1182,7 @@ impl IFaxConfiguration_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1471,7 +1471,7 @@ impl IFaxDevice_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1548,7 +1548,7 @@ impl IFaxDeviceIds_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1721,7 +1721,7 @@ impl IFaxDeviceProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1777,7 +1777,7 @@ impl IFaxDeviceProviders_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1846,7 +1846,7 @@ impl IFaxDevices_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2215,7 +2215,7 @@ impl IFaxDocument_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2279,7 +2279,7 @@ impl IFaxDocument2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2390,7 +2390,7 @@ impl IFaxEventLogging_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2459,7 +2459,7 @@ impl IFaxFolders_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2502,7 +2502,7 @@ impl IFaxInboundRouting_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2662,7 +2662,7 @@ impl IFaxInboundRoutingExtension_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2718,7 +2718,7 @@ impl IFaxInboundRoutingExtensions_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2834,7 +2834,7 @@ impl IFaxInboundRoutingMethod_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2890,7 +2890,7 @@ impl IFaxInboundRoutingMethods_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3093,7 +3093,7 @@ impl IFaxIncomingArchive_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3339,7 +3339,7 @@ impl IFaxIncomingJob_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3395,7 +3395,7 @@ impl IFaxIncomingJobs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3569,7 +3569,7 @@ impl IFaxIncomingMessage_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3740,7 +3740,7 @@ impl IFaxIncomingMessage2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3817,7 +3817,7 @@ impl IFaxIncomingMessageIterator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3894,7 +3894,7 @@ impl IFaxIncomingQueue_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4132,7 +4132,7 @@ impl IFaxJobStatus_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4175,7 +4175,7 @@ impl IFaxLoggingOptions_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4218,7 +4218,7 @@ impl IFaxOutboundRouting_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4274,7 +4274,7 @@ impl IFaxOutboundRoutingGroup_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4350,7 +4350,7 @@ impl IFaxOutboundRoutingGroups_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4480,7 +4480,7 @@ impl IFaxOutboundRoutingRule_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4576,7 +4576,7 @@ impl IFaxOutboundRoutingRules_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4779,7 +4779,7 @@ impl IFaxOutgoingArchive_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5163,7 +5163,7 @@ impl IFaxOutgoingJob_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5219,7 +5219,7 @@ impl IFaxOutgoingJob2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5275,7 +5275,7 @@ impl IFaxOutgoingJobs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5527,7 +5527,7 @@ impl IFaxOutgoingMessage_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5617,7 +5617,7 @@ impl IFaxOutgoingMessage2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5694,7 +5694,7 @@ impl IFaxOutgoingMessageIterator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5951,7 +5951,7 @@ impl IFaxOutgoingQueue_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6142,7 +6142,7 @@ impl IFaxReceiptOptions_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6199,7 +6199,7 @@ impl IFaxRecipient_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6275,7 +6275,7 @@ impl IFaxRecipients_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6359,7 +6359,7 @@ impl IFaxSecurity_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6443,7 +6443,7 @@ impl IFaxSecurity2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6794,7 +6794,7 @@ impl IFaxSender_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -7101,7 +7101,7 @@ impl IFaxServer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -7170,7 +7170,7 @@ impl IFaxServer2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -7184,7 +7184,7 @@ impl IFaxServerNotify_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -7383,7 +7383,7 @@ impl IFaxServerNotify2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_IO\"`"] @@ -7525,7 +7525,7 @@ impl IStiDevice_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_IO\"`"] @@ -7619,7 +7619,7 @@ impl IStiDeviceControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_IO\"`, `\"Win32_System_Registry\"`"] @@ -7760,7 +7760,7 @@ impl IStiUSD_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IStillImageW_Impl: Sized { @@ -7884,6 +7884,6 @@ impl IStillImageW_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 0b1ff505f1..eaf6333e61 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/Fax/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/Fax/mod.rs @@ -481,11 +481,15 @@ where ::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() } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFaxAccount(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFaxAccount, + IFaxAccount_Vtbl, + 0x68535b33_5dc4_4086_be26_b76f9b711006 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFaxAccount, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFaxAccount { pub unsafe fn AccountName(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -507,16 +511,6 @@ impl IFaxAccount { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFaxAccount, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFaxAccount { - type Vtable = IFaxAccount_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFaxAccount { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x68535b33_5dc4_4086_be26_b76f9b711006); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFaxAccount_Vtbl { @@ -529,11 +523,15 @@ pub struct IFaxAccount_Vtbl { pub ListenToAccountEvents: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventtypes: FAX_ACCOUNT_EVENTS_TYPE_ENUM) -> ::windows_core::HRESULT, pub RegisteredEvents: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pregisteredevents: *mut FAX_ACCOUNT_EVENTS_TYPE_ENUM) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFaxAccountFolders(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFaxAccountFolders, + IFaxAccountFolders_Vtbl, + 0x6463f89d_23d8_46a9_8f86_c47b77ca7926 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFaxAccountFolders, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFaxAccountFolders { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -562,16 +560,6 @@ impl IFaxAccountFolders { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFaxAccountFolders, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFaxAccountFolders { - type Vtable = IFaxAccountFolders_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFaxAccountFolders { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6463f89d_23d8_46a9_8f86_c47b77ca7926); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFaxAccountFolders_Vtbl { @@ -593,11 +581,15 @@ pub struct IFaxAccountFolders_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] OutgoingArchive: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFaxAccountIncomingArchive(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFaxAccountIncomingArchive, + IFaxAccountIncomingArchive_Vtbl, + 0xa8a5b6ef_e0d6_4aee_955c_91625bec9db4 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFaxAccountIncomingArchive, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFaxAccountIncomingArchive { pub unsafe fn SizeLow(&self) -> ::windows_core::Result { @@ -628,16 +620,6 @@ impl IFaxAccountIncomingArchive { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFaxAccountIncomingArchive, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFaxAccountIncomingArchive { - type Vtable = IFaxAccountIncomingArchive_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFaxAccountIncomingArchive { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa8a5b6ef_e0d6_4aee_955c_91625bec9db4); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFaxAccountIncomingArchive_Vtbl { @@ -654,11 +636,15 @@ pub struct IFaxAccountIncomingArchive_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetMessage: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFaxAccountIncomingQueue(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFaxAccountIncomingQueue, + IFaxAccountIncomingQueue_Vtbl, + 0xdd142d92_0186_4a95_a090_cbc3eadba6b4 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFaxAccountIncomingQueue, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFaxAccountIncomingQueue { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -678,16 +664,6 @@ impl IFaxAccountIncomingQueue { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFaxAccountIncomingQueue, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFaxAccountIncomingQueue { - type Vtable = IFaxAccountIncomingQueue_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFaxAccountIncomingQueue { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdd142d92_0186_4a95_a090_cbc3eadba6b4); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFaxAccountIncomingQueue_Vtbl { @@ -701,11 +677,15 @@ pub struct IFaxAccountIncomingQueue_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetJob: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFaxAccountNotify(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFaxAccountNotify, + IFaxAccountNotify_Vtbl, + 0xb9b3bc81_ac1b_46f3_b39d_0adc30e1b788 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFaxAccountNotify, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFaxAccountNotify { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -812,16 +792,6 @@ impl IFaxAccountNotify { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFaxAccountNotify, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFaxAccountNotify { - type Vtable = IFaxAccountNotify_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFaxAccountNotify { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb9b3bc81_ac1b_46f3_b39d_0adc30e1b788); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFaxAccountNotify_Vtbl { @@ -871,11 +841,15 @@ pub struct IFaxAccountNotify_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] OnServerShutDown: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFaxAccountOutgoingArchive(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFaxAccountOutgoingArchive, + IFaxAccountOutgoingArchive_Vtbl, + 0x5463076d_ec14_491f_926e_b3ceda5e5662 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFaxAccountOutgoingArchive, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFaxAccountOutgoingArchive { pub unsafe fn SizeLow(&self) -> ::windows_core::Result { @@ -906,16 +880,6 @@ impl IFaxAccountOutgoingArchive { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFaxAccountOutgoingArchive, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFaxAccountOutgoingArchive { - type Vtable = IFaxAccountOutgoingArchive_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFaxAccountOutgoingArchive { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5463076d_ec14_491f_926e_b3ceda5e5662); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFaxAccountOutgoingArchive_Vtbl { @@ -932,11 +896,15 @@ pub struct IFaxAccountOutgoingArchive_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetMessage: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFaxAccountOutgoingQueue(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFaxAccountOutgoingQueue, + IFaxAccountOutgoingQueue_Vtbl, + 0x0f1424e9_f22d_4553_b7a5_0d24bd0d7e46 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFaxAccountOutgoingQueue, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFaxAccountOutgoingQueue { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -956,16 +924,6 @@ impl IFaxAccountOutgoingQueue { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFaxAccountOutgoingQueue, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFaxAccountOutgoingQueue { - type Vtable = IFaxAccountOutgoingQueue_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFaxAccountOutgoingQueue { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0f1424e9_f22d_4553_b7a5_0d24bd0d7e46); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFaxAccountOutgoingQueue_Vtbl { @@ -979,11 +937,15 @@ pub struct IFaxAccountOutgoingQueue_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetJob: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFaxAccountSet(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFaxAccountSet, + IFaxAccountSet_Vtbl, + 0x7428fbae_841e_47b8_86f4_2288946dca1b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFaxAccountSet, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFaxAccountSet { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1018,16 +980,6 @@ impl IFaxAccountSet { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFaxAccountSet, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFaxAccountSet { - type Vtable = IFaxAccountSet_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFaxAccountSet { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7428fbae_841e_47b8_86f4_2288946dca1b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFaxAccountSet_Vtbl { @@ -1046,11 +998,15 @@ pub struct IFaxAccountSet_Vtbl { AddAccount: usize, pub RemoveAccount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstraccountname: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFaxAccounts(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFaxAccounts, + IFaxAccounts_Vtbl, + 0x93ea8162_8be7_42d1_ae7b_ec74e2d989da +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFaxAccounts, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFaxAccounts { pub unsafe fn _NewEnum(&self) -> ::windows_core::Result<::windows_core::IUnknown> { @@ -1069,16 +1025,6 @@ impl IFaxAccounts { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFaxAccounts, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFaxAccounts { - type Vtable = IFaxAccounts_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFaxAccounts { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x93ea8162_8be7_42d1_ae7b_ec74e2d989da); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFaxAccounts_Vtbl { @@ -1090,11 +1036,15 @@ pub struct IFaxAccounts_Vtbl { get_Item: usize, pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plcount: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFaxActivity(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFaxActivity, + IFaxActivity_Vtbl, + 0x4b106f97_3df5_40f2_bc3c_44cb8115ebdf +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFaxActivity, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFaxActivity { pub unsafe fn IncomingMessages(&self) -> ::windows_core::Result { @@ -1118,16 +1068,6 @@ impl IFaxActivity { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFaxActivity, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFaxActivity { - type Vtable = IFaxActivity_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFaxActivity { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4b106f97_3df5_40f2_bc3c_44cb8115ebdf); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFaxActivity_Vtbl { @@ -1138,11 +1078,15 @@ pub struct IFaxActivity_Vtbl { pub QueuedMessages: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plqueuedmessages: *mut i32) -> ::windows_core::HRESULT, pub Refresh: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFaxActivityLogging(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFaxActivityLogging, + IFaxActivityLogging_Vtbl, + 0x1e29078b_5a69_497b_9592_49b7e7faddb5 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFaxActivityLogging, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFaxActivityLogging { pub unsafe fn LogIncoming(&self) -> ::windows_core::Result { @@ -1183,16 +1127,6 @@ impl IFaxActivityLogging { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFaxActivityLogging, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFaxActivityLogging { - type Vtable = IFaxActivityLogging_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFaxActivityLogging { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1e29078b_5a69_497b_9592_49b7e7faddb5); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFaxActivityLogging_Vtbl { @@ -1206,11 +1140,15 @@ pub struct IFaxActivityLogging_Vtbl { pub Refresh: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Save: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFaxConfiguration(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFaxConfiguration, + IFaxConfiguration_Vtbl, + 0x10f4d0f7_0994_4543_ab6e_506949128c40 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFaxConfiguration, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFaxConfiguration { pub unsafe fn UseArchive(&self) -> ::windows_core::Result { @@ -1395,16 +1333,6 @@ impl IFaxConfiguration { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFaxConfiguration, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFaxConfiguration { - type Vtable = IFaxConfiguration_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFaxConfiguration { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x10f4d0f7_0994_4543_ab6e_506949128c40); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFaxConfiguration_Vtbl { @@ -1452,11 +1380,15 @@ pub struct IFaxConfiguration_Vtbl { pub Refresh: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Save: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFaxDevice(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFaxDevice, + IFaxDevice_Vtbl, + 0x49306c59_b52e_4867_9df4_ca5841c956d0 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFaxDevice, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFaxDevice { pub unsafe fn Id(&self) -> ::windows_core::Result { @@ -1582,16 +1514,6 @@ impl IFaxDevice { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFaxDevice, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFaxDevice { - type Vtable = IFaxDevice_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFaxDevice { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x49306c59_b52e_4867_9df4_ca5841c956d0); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFaxDevice_Vtbl { @@ -1632,11 +1554,15 @@ pub struct IFaxDevice_Vtbl { pub RingingNow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbringingnow: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub AnswerCall: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFaxDeviceIds(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFaxDeviceIds, + IFaxDeviceIds_Vtbl, + 0x2f0f813f_4ce9_443e_8ca1_738cfaeee149 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFaxDeviceIds, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFaxDeviceIds { pub unsafe fn _NewEnum(&self) -> ::windows_core::Result<::windows_core::IUnknown> { @@ -1662,16 +1588,6 @@ impl IFaxDeviceIds { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFaxDeviceIds, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFaxDeviceIds { - type Vtable = IFaxDeviceIds_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFaxDeviceIds { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2f0f813f_4ce9_443e_8ca1_738cfaeee149); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFaxDeviceIds_Vtbl { @@ -1683,11 +1599,15 @@ pub struct IFaxDeviceIds_Vtbl { pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lindex: i32) -> ::windows_core::HRESULT, pub SetOrder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ldeviceid: i32, lneworder: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFaxDeviceProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFaxDeviceProvider, + IFaxDeviceProvider_Vtbl, + 0x290eac63_83ec_449c_8417_f148df8c682a +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFaxDeviceProvider, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFaxDeviceProvider { pub unsafe fn FriendlyName(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -1742,16 +1662,6 @@ impl IFaxDeviceProvider { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFaxDeviceProvider, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFaxDeviceProvider { - type Vtable = IFaxDeviceProvider_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFaxDeviceProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x290eac63_83ec_449c_8417_f148df8c682a); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFaxDeviceProvider_Vtbl { @@ -1772,11 +1682,15 @@ pub struct IFaxDeviceProvider_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] DeviceIds: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFaxDeviceProviders(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFaxDeviceProviders, + IFaxDeviceProviders_Vtbl, + 0x9fb76f62_4c7e_43a5_b6fd_502893f7e13e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFaxDeviceProviders, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFaxDeviceProviders { pub unsafe fn _NewEnum(&self) -> ::windows_core::Result<::windows_core::IUnknown> { @@ -1795,16 +1709,6 @@ impl IFaxDeviceProviders { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFaxDeviceProviders, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFaxDeviceProviders { - type Vtable = IFaxDeviceProviders_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFaxDeviceProviders { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9fb76f62_4c7e_43a5_b6fd_502893f7e13e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFaxDeviceProviders_Vtbl { @@ -1816,11 +1720,15 @@ pub struct IFaxDeviceProviders_Vtbl { get_Item: usize, pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plcount: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFaxDevices(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFaxDevices, + IFaxDevices_Vtbl, + 0x9e46783e_f34f_482e_a360_0416becbbd96 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFaxDevices, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFaxDevices { pub unsafe fn _NewEnum(&self) -> ::windows_core::Result<::windows_core::IUnknown> { @@ -1845,16 +1753,6 @@ impl IFaxDevices { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFaxDevices, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFaxDevices { - type Vtable = IFaxDevices_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFaxDevices { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9e46783e_f34f_482e_a360_0416becbbd96); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFaxDevices_Vtbl { @@ -1870,11 +1768,15 @@ pub struct IFaxDevices_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] get_ItemById: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFaxDocument(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFaxDocument, + IFaxDocument_Vtbl, + 0xb207a246_09e3_4a4e_a7dc_fea31d29458f +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFaxDocument, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFaxDocument { pub unsafe fn Body(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -2045,16 +1947,6 @@ impl IFaxDocument { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFaxDocument, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFaxDocument { - type Vtable = IFaxDocument_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFaxDocument { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb207a246_09e3_4a4e_a7dc_fea31d29458f); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFaxDocument_Vtbl { @@ -2112,11 +2004,15 @@ pub struct IFaxDocument_Vtbl { pub AttachFaxToReceipt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbattachfax: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub SetAttachFaxToReceipt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, battachfax: super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFaxDocument2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFaxDocument2, + IFaxDocument2_Vtbl, + 0xe1347661_f9ef_4d6d_b4a5_c0a068b65cff +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFaxDocument2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFaxDocument); #[cfg(feature = "Win32_System_Com")] impl IFaxDocument2 { pub unsafe fn Body(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -2318,16 +2214,6 @@ impl IFaxDocument2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFaxDocument2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFaxDocument); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFaxDocument2 { - type Vtable = IFaxDocument2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFaxDocument2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe1347661_f9ef_4d6d_b4a5_c0a068b65cff); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFaxDocument2_Vtbl { @@ -2350,11 +2236,15 @@ pub struct IFaxDocument2_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] ConnectedSubmit2: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFaxEventLogging(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFaxEventLogging, + IFaxEventLogging_Vtbl, + 0x0880d965_20e8_42e4_8e17_944f192caad4 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFaxEventLogging, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFaxEventLogging { pub unsafe fn InitEventsLevel(&self) -> ::windows_core::Result { @@ -2393,16 +2283,6 @@ impl IFaxEventLogging { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFaxEventLogging, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFaxEventLogging { - type Vtable = IFaxEventLogging_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFaxEventLogging { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0880d965_20e8_42e4_8e17_944f192caad4); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFaxEventLogging_Vtbl { @@ -2418,11 +2298,15 @@ pub struct IFaxEventLogging_Vtbl { pub Refresh: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Save: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFaxFolders(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFaxFolders, + IFaxFolders_Vtbl, + 0xdce3b2a8_a7ab_42bc_9d0a_3149457261a0 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFaxFolders, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFaxFolders { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2451,16 +2335,6 @@ impl IFaxFolders { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFaxFolders, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFaxFolders { - type Vtable = IFaxFolders_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFaxFolders { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdce3b2a8_a7ab_42bc_9d0a_3149457261a0); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFaxFolders_Vtbl { @@ -2482,11 +2356,15 @@ pub struct IFaxFolders_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] OutgoingArchive: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFaxInboundRouting(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFaxInboundRouting, + IFaxInboundRouting_Vtbl, + 0x8148c20f_9d52_45b1_bf96_38fc12713527 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFaxInboundRouting, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFaxInboundRouting { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2503,16 +2381,6 @@ impl IFaxInboundRouting { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFaxInboundRouting, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFaxInboundRouting { - type Vtable = IFaxInboundRouting_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFaxInboundRouting { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8148c20f_9d52_45b1_bf96_38fc12713527); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFaxInboundRouting_Vtbl { @@ -2526,11 +2394,15 @@ pub struct IFaxInboundRouting_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetMethods: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFaxInboundRoutingExtension(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFaxInboundRoutingExtension, + IFaxInboundRoutingExtension_Vtbl, + 0x885b5e08_c26c_4ef9_af83_51580a750be1 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFaxInboundRoutingExtension, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFaxInboundRoutingExtension { pub unsafe fn FriendlyName(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -2581,16 +2453,6 @@ impl IFaxInboundRoutingExtension { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFaxInboundRoutingExtension, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFaxInboundRoutingExtension { - type Vtable = IFaxInboundRoutingExtension_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFaxInboundRoutingExtension { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x885b5e08_c26c_4ef9_af83_51580a750be1); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFaxInboundRoutingExtension_Vtbl { @@ -2610,11 +2472,15 @@ pub struct IFaxInboundRoutingExtension_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] Methods: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFaxInboundRoutingExtensions(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFaxInboundRoutingExtensions, + IFaxInboundRoutingExtensions_Vtbl, + 0x2f6c9673_7b26_42de_8eb0_915dcd2a4f4c +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFaxInboundRoutingExtensions, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFaxInboundRoutingExtensions { pub unsafe fn _NewEnum(&self) -> ::windows_core::Result<::windows_core::IUnknown> { @@ -2633,16 +2499,6 @@ impl IFaxInboundRoutingExtensions { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFaxInboundRoutingExtensions, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFaxInboundRoutingExtensions { - type Vtable = IFaxInboundRoutingExtensions_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFaxInboundRoutingExtensions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2f6c9673_7b26_42de_8eb0_915dcd2a4f4c); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFaxInboundRoutingExtensions_Vtbl { @@ -2654,11 +2510,15 @@ pub struct IFaxInboundRoutingExtensions_Vtbl { get_Item: usize, pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plcount: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFaxInboundRoutingMethod(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFaxInboundRoutingMethod, + IFaxInboundRoutingMethod_Vtbl, + 0x45700061_ad9d_4776_a8c4_64065492cf4b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFaxInboundRoutingMethod, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFaxInboundRoutingMethod { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -2696,16 +2556,6 @@ impl IFaxInboundRoutingMethod { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFaxInboundRoutingMethod, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFaxInboundRoutingMethod { - type Vtable = IFaxInboundRoutingMethod_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFaxInboundRoutingMethod { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x45700061_ad9d_4776_a8c4_64065492cf4b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFaxInboundRoutingMethod_Vtbl { @@ -2720,11 +2570,15 @@ pub struct IFaxInboundRoutingMethod_Vtbl { pub Refresh: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Save: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFaxInboundRoutingMethods(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFaxInboundRoutingMethods, + IFaxInboundRoutingMethods_Vtbl, + 0x783fca10_8908_4473_9d69_f67fbea0c6b9 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFaxInboundRoutingMethods, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFaxInboundRoutingMethods { pub unsafe fn _NewEnum(&self) -> ::windows_core::Result<::windows_core::IUnknown> { @@ -2743,16 +2597,6 @@ impl IFaxInboundRoutingMethods { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFaxInboundRoutingMethods, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFaxInboundRoutingMethods { - type Vtable = IFaxInboundRoutingMethods_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFaxInboundRoutingMethods { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x783fca10_8908_4473_9d69_f67fbea0c6b9); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFaxInboundRoutingMethods_Vtbl { @@ -2764,11 +2608,15 @@ pub struct IFaxInboundRoutingMethods_Vtbl { get_Item: usize, pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plcount: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFaxIncomingArchive(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFaxIncomingArchive, + IFaxIncomingArchive_Vtbl, + 0x76062cc7_f714_4fbd_aa06_ed6e4a4b70f3 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFaxIncomingArchive, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFaxIncomingArchive { pub unsafe fn UseArchive(&self) -> ::windows_core::Result { @@ -2853,16 +2701,6 @@ impl IFaxIncomingArchive { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFaxIncomingArchive, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFaxIncomingArchive { - type Vtable = IFaxIncomingArchive_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFaxIncomingArchive { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x76062cc7_f714_4fbd_aa06_ed6e4a4b70f3); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFaxIncomingArchive_Vtbl { @@ -2892,11 +2730,15 @@ pub struct IFaxIncomingArchive_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetMessage: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFaxIncomingJob(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFaxIncomingJob, + IFaxIncomingJob_Vtbl, + 0x207529e6_654a_4916_9f88_4d232ee8a107 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFaxIncomingJob, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFaxIncomingJob { pub unsafe fn Size(&self) -> ::windows_core::Result { @@ -2977,16 +2819,6 @@ impl IFaxIncomingJob { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFaxIncomingJob, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFaxIncomingJob { - type Vtable = IFaxIncomingJob_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFaxIncomingJob { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x207529e6_654a_4916_9f88_4d232ee8a107); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFaxIncomingJob_Vtbl { @@ -3011,11 +2843,15 @@ pub struct IFaxIncomingJob_Vtbl { pub Refresh: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CopyTiff: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtiffpath: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFaxIncomingJobs(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFaxIncomingJobs, + IFaxIncomingJobs_Vtbl, + 0x011f04e9_4fd6_4c23_9513_b6b66bb26be9 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFaxIncomingJobs, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFaxIncomingJobs { pub unsafe fn _NewEnum(&self) -> ::windows_core::Result<::windows_core::IUnknown> { @@ -3034,16 +2870,6 @@ impl IFaxIncomingJobs { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFaxIncomingJobs, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFaxIncomingJobs { - type Vtable = IFaxIncomingJobs_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFaxIncomingJobs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x011f04e9_4fd6_4c23_9513_b6b66bb26be9); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFaxIncomingJobs_Vtbl { @@ -3055,11 +2881,15 @@ pub struct IFaxIncomingJobs_Vtbl { get_Item: usize, pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plcount: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFaxIncomingMessage(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFaxIncomingMessage, + IFaxIncomingMessage_Vtbl, + 0x7cab88fa_2ef9_4851_b2f3_1d148fed8447 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFaxIncomingMessage, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFaxIncomingMessage { pub unsafe fn Id(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -3117,16 +2947,6 @@ impl IFaxIncomingMessage { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFaxIncomingMessage, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFaxIncomingMessage { - type Vtable = IFaxIncomingMessage_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFaxIncomingMessage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7cab88fa_2ef9_4851_b2f3_1d148fed8447); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFaxIncomingMessage_Vtbl { @@ -3145,11 +2965,15 @@ pub struct IFaxIncomingMessage_Vtbl { pub CopyTiff: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtiffpath: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub Delete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFaxIncomingMessage2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFaxIncomingMessage2, + IFaxIncomingMessage2_Vtbl, + 0xf9208503_e2bc_48f3_9ec0_e6236f9b509a +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFaxIncomingMessage2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFaxIncomingMessage); #[cfg(feature = "Win32_System_Com")] impl IFaxIncomingMessage2 { pub unsafe fn Id(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -3280,16 +3104,6 @@ impl IFaxIncomingMessage2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFaxIncomingMessage2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFaxIncomingMessage); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFaxIncomingMessage2 { - type Vtable = IFaxIncomingMessage2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFaxIncomingMessage2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf9208503_e2bc_48f3_9ec0_e6236f9b509a); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFaxIncomingMessage2_Vtbl { @@ -3311,11 +3125,15 @@ pub struct IFaxIncomingMessage2_Vtbl { pub Save: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Refresh: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFaxIncomingMessageIterator(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFaxIncomingMessageIterator, + IFaxIncomingMessageIterator_Vtbl, + 0xfd73ecc4_6f06_4f52_82a8_f7ba06ae3108 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFaxIncomingMessageIterator, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFaxIncomingMessageIterator { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3343,16 +3161,6 @@ impl IFaxIncomingMessageIterator { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFaxIncomingMessageIterator, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFaxIncomingMessageIterator { - type Vtable = IFaxIncomingMessageIterator_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFaxIncomingMessageIterator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfd73ecc4_6f06_4f52_82a8_f7ba06ae3108); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFaxIncomingMessageIterator_Vtbl { @@ -3367,11 +3175,15 @@ pub struct IFaxIncomingMessageIterator_Vtbl { pub MoveFirst: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub MoveNext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFaxIncomingQueue(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFaxIncomingQueue, + IFaxIncomingQueue_Vtbl, + 0x902e64ef_8fd8_4b75_9725_6014df161545 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFaxIncomingQueue, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFaxIncomingQueue { pub unsafe fn Blocked(&self) -> ::windows_core::Result { @@ -3407,16 +3219,6 @@ impl IFaxIncomingQueue { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFaxIncomingQueue, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFaxIncomingQueue { - type Vtable = IFaxIncomingQueue_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFaxIncomingQueue { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x902e64ef_8fd8_4b75_9725_6014df161545); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFaxIncomingQueue_Vtbl { @@ -3434,11 +3236,15 @@ pub struct IFaxIncomingQueue_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetJob: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFaxJobStatus(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFaxJobStatus, + IFaxJobStatus_Vtbl, + 0x8b86f485_fd7f_4824_886b_40c5caa617cc +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFaxJobStatus, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFaxJobStatus { pub unsafe fn Status(&self) -> ::windows_core::Result { @@ -3511,16 +3317,6 @@ impl IFaxJobStatus { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFaxJobStatus, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFaxJobStatus { - type Vtable = IFaxJobStatus_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFaxJobStatus { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8b86f485_fd7f_4824_886b_40c5caa617cc); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFaxJobStatus_Vtbl { @@ -3543,11 +3339,15 @@ pub struct IFaxJobStatus_Vtbl { pub CallerId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcallerid: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub RoutingInformation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrroutinginformation: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFaxLoggingOptions(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFaxLoggingOptions, + IFaxLoggingOptions_Vtbl, + 0x34e64fb9_6b31_4d32_8b27_d286c0c33606 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFaxLoggingOptions, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFaxLoggingOptions { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3564,16 +3364,6 @@ impl IFaxLoggingOptions { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFaxLoggingOptions, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFaxLoggingOptions { - type Vtable = IFaxLoggingOptions_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFaxLoggingOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x34e64fb9_6b31_4d32_8b27_d286c0c33606); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFaxLoggingOptions_Vtbl { @@ -3587,11 +3377,15 @@ pub struct IFaxLoggingOptions_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] ActivityLogging: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFaxOutboundRouting(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFaxOutboundRouting, + IFaxOutboundRouting_Vtbl, + 0x25dc05a4_9909_41bd_a95b_7e5d1dec1d43 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFaxOutboundRouting, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFaxOutboundRouting { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3608,16 +3402,6 @@ impl IFaxOutboundRouting { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFaxOutboundRouting, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFaxOutboundRouting { - type Vtable = IFaxOutboundRouting_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFaxOutboundRouting { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x25dc05a4_9909_41bd_a95b_7e5d1dec1d43); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFaxOutboundRouting_Vtbl { @@ -3631,11 +3415,15 @@ pub struct IFaxOutboundRouting_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetRules: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFaxOutboundRoutingGroup(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFaxOutboundRoutingGroup, + IFaxOutboundRoutingGroup_Vtbl, + 0xca6289a1_7e25_4f87_9a0b_93365734962c +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFaxOutboundRoutingGroup, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFaxOutboundRoutingGroup { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -3654,16 +3442,6 @@ impl IFaxOutboundRoutingGroup { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFaxOutboundRoutingGroup, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFaxOutboundRoutingGroup { - type Vtable = IFaxOutboundRoutingGroup_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFaxOutboundRoutingGroup { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xca6289a1_7e25_4f87_9a0b_93365734962c); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFaxOutboundRoutingGroup_Vtbl { @@ -3675,11 +3453,15 @@ pub struct IFaxOutboundRoutingGroup_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] DeviceIds: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFaxOutboundRoutingGroups(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFaxOutboundRoutingGroups, + IFaxOutboundRoutingGroups_Vtbl, + 0x235cbef7_c2de_4bfd_b8da_75097c82c87f +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFaxOutboundRoutingGroups, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFaxOutboundRoutingGroups { pub unsafe fn _NewEnum(&self) -> ::windows_core::Result<::windows_core::IUnknown> { @@ -3712,16 +3494,6 @@ impl IFaxOutboundRoutingGroups { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFaxOutboundRoutingGroups, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFaxOutboundRoutingGroups { - type Vtable = IFaxOutboundRoutingGroups_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFaxOutboundRoutingGroups { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x235cbef7_c2de_4bfd_b8da_75097c82c87f); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFaxOutboundRoutingGroups_Vtbl { @@ -3741,11 +3513,15 @@ pub struct IFaxOutboundRoutingGroups_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] Remove: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFaxOutboundRoutingRule(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFaxOutboundRoutingRule, + IFaxOutboundRoutingRule_Vtbl, + 0xe1f795d5_07c2_469f_b027_acacc23219da +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFaxOutboundRoutingRule, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFaxOutboundRoutingRule { pub unsafe fn CountryCode(&self) -> ::windows_core::Result { @@ -3795,16 +3571,6 @@ impl IFaxOutboundRoutingRule { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFaxOutboundRoutingRule, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFaxOutboundRoutingRule { - type Vtable = IFaxOutboundRoutingRule_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFaxOutboundRoutingRule { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe1f795d5_07c2_469f_b027_acacc23219da); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFaxOutboundRoutingRule_Vtbl { @@ -3821,11 +3587,15 @@ pub struct IFaxOutboundRoutingRule_Vtbl { pub Refresh: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Save: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFaxOutboundRoutingRules(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFaxOutboundRoutingRules, + IFaxOutboundRoutingRules_Vtbl, + 0xdcefa1e7_ae7d_4ed6_8521_369edcca5120 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFaxOutboundRoutingRules, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFaxOutboundRoutingRules { pub unsafe fn _NewEnum(&self) -> ::windows_core::Result<::windows_core::IUnknown> { @@ -3866,16 +3636,6 @@ impl IFaxOutboundRoutingRules { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFaxOutboundRoutingRules, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFaxOutboundRoutingRules { - type Vtable = IFaxOutboundRoutingRules_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFaxOutboundRoutingRules { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdcefa1e7_ae7d_4ed6_8521_369edcca5120); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFaxOutboundRoutingRules_Vtbl { @@ -3897,11 +3657,15 @@ pub struct IFaxOutboundRoutingRules_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Add: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFaxOutgoingArchive(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFaxOutgoingArchive, + IFaxOutgoingArchive_Vtbl, + 0xc9c28f40_8d80_4e53_810f_9a79919b49fd +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFaxOutgoingArchive, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFaxOutgoingArchive { pub unsafe fn UseArchive(&self) -> ::windows_core::Result { @@ -3986,16 +3750,6 @@ impl IFaxOutgoingArchive { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFaxOutgoingArchive, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFaxOutgoingArchive { - type Vtable = IFaxOutgoingArchive_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFaxOutgoingArchive { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc9c28f40_8d80_4e53_810f_9a79919b49fd); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFaxOutgoingArchive_Vtbl { @@ -4025,11 +3779,15 @@ pub struct IFaxOutgoingArchive_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetMessage: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFaxOutgoingJob(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFaxOutgoingJob, + IFaxOutgoingJob_Vtbl, + 0x6356daad_6614_4583_bf7a_3ad67bbfc71c +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFaxOutgoingJob, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFaxOutgoingJob { pub unsafe fn Subject(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -4159,16 +3917,6 @@ impl IFaxOutgoingJob { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFaxOutgoingJob, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFaxOutgoingJob { - type Vtable = IFaxOutgoingJob_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFaxOutgoingJob { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6356daad_6614_4583_bf7a_3ad67bbfc71c); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFaxOutgoingJob_Vtbl { @@ -4211,11 +3959,15 @@ pub struct IFaxOutgoingJob_Vtbl { pub Refresh: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Cancel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFaxOutgoingJob2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFaxOutgoingJob2, + IFaxOutgoingJob2_Vtbl, + 0x418a8d96_59a0_4789_b176_edf3dc8fa8f7 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFaxOutgoingJob2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFaxOutgoingJob); #[cfg(feature = "Win32_System_Com")] impl IFaxOutgoingJob2 { pub unsafe fn Subject(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -4357,16 +4109,6 @@ impl IFaxOutgoingJob2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFaxOutgoingJob2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFaxOutgoingJob); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFaxOutgoingJob2 { - type Vtable = IFaxOutgoingJob2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFaxOutgoingJob2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x418a8d96_59a0_4789_b176_edf3dc8fa8f7); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFaxOutgoingJob2_Vtbl { @@ -4375,11 +4117,15 @@ pub struct IFaxOutgoingJob2_Vtbl { pub ReceiptAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrreceiptaddress: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub ScheduleType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pscheduletype: *mut FAX_SCHEDULE_TYPE_ENUM) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFaxOutgoingJobs(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFaxOutgoingJobs, + IFaxOutgoingJobs_Vtbl, + 0x2c56d8e6_8c2f_4573_944c_e505f8f5aeed +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFaxOutgoingJobs, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFaxOutgoingJobs { pub unsafe fn _NewEnum(&self) -> ::windows_core::Result<::windows_core::IUnknown> { @@ -4398,16 +4144,6 @@ impl IFaxOutgoingJobs { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFaxOutgoingJobs, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFaxOutgoingJobs { - type Vtable = IFaxOutgoingJobs_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFaxOutgoingJobs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2c56d8e6_8c2f_4573_944c_e505f8f5aeed); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFaxOutgoingJobs_Vtbl { @@ -4419,11 +4155,15 @@ pub struct IFaxOutgoingJobs_Vtbl { get_Item: usize, pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plcount: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFaxOutgoingMessage(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFaxOutgoingMessage, + IFaxOutgoingMessage_Vtbl, + 0xf0ea35de_caa5_4a7c_82c7_2b60ba5f2be2 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFaxOutgoingMessage, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFaxOutgoingMessage { pub unsafe fn SubmissionId(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -4509,16 +4249,6 @@ impl IFaxOutgoingMessage { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFaxOutgoingMessage, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFaxOutgoingMessage { - type Vtable = IFaxOutgoingMessage_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFaxOutgoingMessage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf0ea35de_caa5_4a7c_82c7_2b60ba5f2be2); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFaxOutgoingMessage_Vtbl { @@ -4549,11 +4279,15 @@ pub struct IFaxOutgoingMessage_Vtbl { pub CopyTiff: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtiffpath: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub Delete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFaxOutgoingMessage2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFaxOutgoingMessage2, + IFaxOutgoingMessage2_Vtbl, + 0xb37df687_bc88_4b46_b3be_b458b3ea9e7f +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFaxOutgoingMessage2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFaxOutgoingMessage); #[cfg(feature = "Win32_System_Com")] impl IFaxOutgoingMessage2 { pub unsafe fn SubmissionId(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -4667,16 +4401,6 @@ impl IFaxOutgoingMessage2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFaxOutgoingMessage2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFaxOutgoingMessage); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFaxOutgoingMessage2 { - type Vtable = IFaxOutgoingMessage2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFaxOutgoingMessage2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb37df687_bc88_4b46_b3be_b458b3ea9e7f); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFaxOutgoingMessage2_Vtbl { @@ -4689,11 +4413,15 @@ pub struct IFaxOutgoingMessage2_Vtbl { pub Save: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Refresh: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFaxOutgoingMessageIterator(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFaxOutgoingMessageIterator, + IFaxOutgoingMessageIterator_Vtbl, + 0xf5ec5d4f_b840_432f_9980_112fe42a9b7a +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFaxOutgoingMessageIterator, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFaxOutgoingMessageIterator { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -4721,16 +4449,6 @@ impl IFaxOutgoingMessageIterator { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFaxOutgoingMessageIterator, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFaxOutgoingMessageIterator { - type Vtable = IFaxOutgoingMessageIterator_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFaxOutgoingMessageIterator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf5ec5d4f_b840_432f_9980_112fe42a9b7a); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFaxOutgoingMessageIterator_Vtbl { @@ -4745,11 +4463,15 @@ pub struct IFaxOutgoingMessageIterator_Vtbl { pub MoveFirst: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub MoveNext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFaxOutgoingQueue(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFaxOutgoingQueue, + IFaxOutgoingQueue_Vtbl, + 0x80b1df24_d9ac_4333_b373_487cedc80ce5 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFaxOutgoingQueue, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFaxOutgoingQueue { pub unsafe fn Blocked(&self) -> ::windows_core::Result { @@ -4860,16 +4582,6 @@ impl IFaxOutgoingQueue { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFaxOutgoingQueue, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFaxOutgoingQueue { - type Vtable = IFaxOutgoingQueue_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFaxOutgoingQueue { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x80b1df24_d9ac_4333_b373_487cedc80ce5); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFaxOutgoingQueue_Vtbl { @@ -4905,11 +4617,15 @@ pub struct IFaxOutgoingQueue_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetJob: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFaxReceiptOptions(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFaxReceiptOptions, + IFaxReceiptOptions_Vtbl, + 0x378efaeb_5fcb_4afb_b2ee_e16e80614487 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFaxReceiptOptions, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFaxReceiptOptions { pub unsafe fn AuthenticationType(&self) -> ::windows_core::Result { @@ -4991,16 +4707,6 @@ impl IFaxReceiptOptions { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFaxReceiptOptions, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFaxReceiptOptions { - type Vtable = IFaxReceiptOptions_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFaxReceiptOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x378efaeb_5fcb_4afb_b2ee_e16e80614487); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFaxReceiptOptions_Vtbl { @@ -5024,11 +4730,15 @@ pub struct IFaxReceiptOptions_Vtbl { pub UseForInboundRouting: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbuseforinboundrouting: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub SetUseForInboundRouting: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, buseforinboundrouting: super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFaxRecipient(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFaxRecipient, + IFaxRecipient_Vtbl, + 0x9a3da3a0_538d_42b6_9444_aaa57d0ce2bc +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFaxRecipient, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFaxRecipient { pub unsafe fn FaxNumber(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -5053,16 +4763,6 @@ impl IFaxRecipient { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFaxRecipient, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFaxRecipient { - type Vtable = IFaxRecipient_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFaxRecipient { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9a3da3a0_538d_42b6_9444_aaa57d0ce2bc); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFaxRecipient_Vtbl { @@ -5072,11 +4772,15 @@ pub struct IFaxRecipient_Vtbl { pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFaxRecipients(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFaxRecipients, + IFaxRecipients_Vtbl, + 0xb9c9de5a_894e_4492_9fa3_08c627c11d5d +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFaxRecipients, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFaxRecipients { pub unsafe fn _NewEnum(&self) -> ::windows_core::Result<::windows_core::IUnknown> { @@ -5108,16 +4812,6 @@ impl IFaxRecipients { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFaxRecipients, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFaxRecipients { - type Vtable = IFaxRecipients_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFaxRecipients { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb9c9de5a_894e_4492_9fa3_08c627c11d5d); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFaxRecipients_Vtbl { @@ -5134,11 +4828,15 @@ pub struct IFaxRecipients_Vtbl { Add: usize, pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lindex: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFaxSecurity(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFaxSecurity, + IFaxSecurity_Vtbl, + 0x77b508c1_09c0_47a2_91eb_fce7fdf2690e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFaxSecurity, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFaxSecurity { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5171,16 +4869,6 @@ impl IFaxSecurity { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFaxSecurity, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFaxSecurity { - type Vtable = IFaxSecurity_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFaxSecurity { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x77b508c1_09c0_47a2_91eb_fce7fdf2690e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFaxSecurity_Vtbl { @@ -5199,11 +4887,15 @@ pub struct IFaxSecurity_Vtbl { pub InformationType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plinformationtype: *mut i32) -> ::windows_core::HRESULT, pub SetInformationType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, linformationtype: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFaxSecurity2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFaxSecurity2, + IFaxSecurity2_Vtbl, + 0x17d851f4_d09b_48fc_99c9_8f24c4db9ab1 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFaxSecurity2, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFaxSecurity2 { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5236,16 +4928,6 @@ impl IFaxSecurity2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFaxSecurity2, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFaxSecurity2 { - type Vtable = IFaxSecurity2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFaxSecurity2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x17d851f4_d09b_48fc_99c9_8f24c4db9ab1); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFaxSecurity2_Vtbl { @@ -5264,11 +4946,15 @@ pub struct IFaxSecurity2_Vtbl { pub InformationType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plinformationtype: *mut i32) -> ::windows_core::HRESULT, pub SetInformationType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, linformationtype: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFaxSender(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFaxSender, + IFaxSender_Vtbl, + 0x0d879d7d_f57a_4cc6_a6f9_3ee5d527b46a +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFaxSender, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFaxSender { pub unsafe fn BillingCode(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -5439,16 +5125,6 @@ impl IFaxSender { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFaxSender, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFaxSender { - type Vtable = IFaxSender_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFaxSender { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0d879d7d_f57a_4cc6_a6f9_3ee5d527b46a); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFaxSender_Vtbl { @@ -5488,11 +5164,15 @@ pub struct IFaxSender_Vtbl { pub LoadDefaultSender: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SaveDefaultSender: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFaxServer(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFaxServer, + IFaxServer_Vtbl, + 0x475b6469_90a5_4878_a577_17a86e8e3462 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFaxServer, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFaxServer { pub unsafe fn Connect(&self, bstrservername: P0) -> ::windows_core::Result<()> @@ -5643,16 +5323,6 @@ impl IFaxServer { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFaxServer, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFaxServer { - type Vtable = IFaxServer_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFaxServer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x475b6469_90a5_4878_a577_17a86e8e3462); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFaxServer_Vtbl { @@ -5720,11 +5390,15 @@ pub struct IFaxServer_Vtbl { pub RegisteredEvents: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, peventtypes: *mut FAX_SERVER_EVENTS_TYPE_ENUM) -> ::windows_core::HRESULT, pub APIVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, papiversion: *mut FAX_SERVER_APIVERSION_ENUM) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFaxServer2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFaxServer2, + IFaxServer2_Vtbl, + 0x571ced0f_5609_4f40_9176_547e3a72ca7c +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFaxServer2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFaxServer); #[cfg(feature = "Win32_System_Com")] impl IFaxServer2 { pub unsafe fn Connect(&self, bstrservername: P0) -> ::windows_core::Result<()> @@ -5899,16 +5573,6 @@ impl IFaxServer2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFaxServer2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFaxServer); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFaxServer2 { - type Vtable = IFaxServer2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFaxServer2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x571ced0f_5609_4f40_9176_547e3a72ca7c); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFaxServer2_Vtbl { @@ -5930,34 +5594,32 @@ pub struct IFaxServer2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Security2: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] -#[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFaxServerNotify(::windows_core::IUnknown); #[cfg(feature = "Win32_System_Com")] -impl IFaxServerNotify {} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFaxServerNotify, + IFaxServerNotify_Vtbl, + 0x2e037b27_cf8a_4abd_b1e0_5704943bea6f +); #[cfg(feature = "Win32_System_Com")] ::windows_core::imp::interface_hierarchy!(IFaxServerNotify, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFaxServerNotify { - type Vtable = IFaxServerNotify_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFaxServerNotify { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2e037b27_cf8a_4abd_b1e0_5704943bea6f); -} +impl IFaxServerNotify {} #[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFaxServerNotify_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFaxServerNotify2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFaxServerNotify2, + IFaxServerNotify2_Vtbl, + 0xec9c69b9_5fe7_4805_9467_82fcd96af903 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFaxServerNotify2, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFaxServerNotify2 { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -6190,16 +5852,6 @@ impl IFaxServerNotify2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFaxServerNotify2, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFaxServerNotify2 { - type Vtable = IFaxServerNotify2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFaxServerNotify2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xec9c69b9_5fe7_4805_9467_82fcd96af903); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFaxServerNotify2_Vtbl { @@ -6309,9 +5961,8 @@ pub struct IFaxServerNotify2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] OnGeneralServerConfigChanged: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStiDevice(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IStiDevice, IStiDevice_Vtbl, 0x6cfa5a80_2dc8_11d0_90ea_00aa0060f86c); +::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 @@ -6378,13 +6029,6 @@ impl IStiDevice { (::windows_core::Interface::vtable(self).GetLastErrorInfo)(::windows_core::Interface::as_raw(self), plasterrorinfo).ok() } } -::windows_core::imp::interface_hierarchy!(IStiDevice, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStiDevice { - type Vtable = IStiDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStiDevice { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6cfa5a80_2dc8_11d0_90ea_00aa0060f86c); -} #[repr(C)] #[doc(hidden)] pub struct IStiDevice_Vtbl { @@ -6419,9 +6063,8 @@ pub struct IStiDevice_Vtbl { pub UnSubscribe: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetLastErrorInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plasterrorinfo: *mut _ERROR_INFOW) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStiDeviceControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IStiDeviceControl, IStiDeviceControl_Vtbl, 0x128a9860_52dc_11d0_9edf_444553540000); +::windows_core::imp::interface_hierarchy!(IStiDeviceControl, ::windows_core::IUnknown); impl IStiDeviceControl { pub unsafe fn Initialize(&self, dwdevicetype: u32, dwmode: u32, pwszportname: P0, dwflags: u32) -> ::windows_core::Result<()> where @@ -6471,13 +6114,6 @@ impl IStiDeviceControl { (::windows_core::Interface::vtable(self).WriteToErrorLog)(::windows_core::Interface::as_raw(self), dwmessagetype, pszmessage.into_param().abi(), dwerrorcode).ok() } } -::windows_core::imp::interface_hierarchy!(IStiDeviceControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStiDeviceControl { - type Vtable = IStiDeviceControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStiDeviceControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x128a9860_52dc_11d0_9edf_444553540000); -} #[repr(C)] #[doc(hidden)] pub struct IStiDeviceControl_Vtbl { @@ -6506,9 +6142,8 @@ pub struct IStiDeviceControl_Vtbl { pub GetMyDeviceOpenMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwopenmode: *mut u32) -> ::windows_core::HRESULT, pub WriteToErrorLog: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwmessagetype: u32, pszmessage: ::windows_core::PCWSTR, dwerrorcode: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStiUSD(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IStiUSD, IStiUSD_Vtbl, 0x0c9bb460_51ac_11d0_90ea_00aa0060f86c); +::windows_core::imp::interface_hierarchy!(IStiUSD, ::windows_core::IUnknown); impl IStiUSD { #[doc = "Required features: `\"Win32_System_Registry\"`"] #[cfg(feature = "Win32_System_Registry")] @@ -6578,13 +6213,6 @@ impl IStiUSD { (::windows_core::Interface::vtable(self).GetLastErrorInfo)(::windows_core::Interface::as_raw(self), plasterrorinfo).ok() } } -::windows_core::imp::interface_hierarchy!(IStiUSD, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStiUSD { - type Vtable = IStiUSD_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStiUSD { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c9bb460_51ac_11d0_90ea_00aa0060f86c); -} #[repr(C)] #[doc(hidden)] pub struct IStiUSD_Vtbl { @@ -6621,9 +6249,8 @@ pub struct IStiUSD_Vtbl { pub GetNotificationData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpnotify: *mut STINOTIFY) -> ::windows_core::HRESULT, pub GetLastErrorInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plasterrorinfo: *mut _ERROR_INFOW) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStillImageW(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IStillImageW, IStillImageW_Vtbl, 0x641bd880_2dc8_11d0_90ea_00aa0060f86c); +::windows_core::imp::interface_hierarchy!(IStillImageW, ::windows_core::IUnknown); impl IStillImageW { pub unsafe fn Initialize(&self, hinst: P0, dwversion: u32) -> ::windows_core::Result<()> where @@ -6714,13 +6341,6 @@ impl IStillImageW { (::windows_core::Interface::vtable(self).WriteToErrorLog)(::windows_core::Interface::as_raw(self), dwmessagetype, pszmessage.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IStillImageW, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStillImageW { - type Vtable = IStillImageW_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStillImageW { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x641bd880_2dc8_11d0_90ea_00aa0060f86c); -} #[repr(C)] #[doc(hidden)] pub struct IStillImageW_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Devices/FunctionDiscovery/impl.rs b/crates/libs/windows/src/Windows/Win32/Devices/FunctionDiscovery/impl.rs index d1865f2142..a919d1767a 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/FunctionDiscovery/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/FunctionDiscovery/impl.rs @@ -72,7 +72,7 @@ impl IFunctionDiscovery_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -110,7 +110,7 @@ impl IFunctionDiscoveryNotification_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -207,7 +207,7 @@ impl IFunctionDiscoveryProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -263,7 +263,7 @@ impl IFunctionDiscoveryProviderFactory_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IFunctionDiscoveryProviderQuery_Impl: Sized { @@ -316,7 +316,7 @@ impl IFunctionDiscoveryProviderQuery_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -337,7 +337,7 @@ impl IFunctionDiscoveryServiceProvider_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Initialize: Initialize:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -400,7 +400,7 @@ impl IFunctionInstance_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -484,7 +484,7 @@ impl IFunctionInstanceCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`, `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -528,7 +528,7 @@ impl IFunctionInstanceCollectionQuery_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -555,7 +555,7 @@ impl IFunctionInstanceQuery_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Execute: Execute:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPNPXAssociation_Impl: Sized { @@ -589,7 +589,7 @@ impl IPNPXAssociation_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPNPXDeviceAssociation_Impl: Sized { @@ -623,7 +623,7 @@ impl IPNPXDeviceAssociation_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -707,7 +707,7 @@ impl IPropertyStoreCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`, `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -764,7 +764,7 @@ impl IProviderProperties_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`, `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -829,7 +829,7 @@ impl IProviderPropertyConstraintCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -866,7 +866,7 @@ impl IProviderPublishing_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IProviderQueryConstraintCollection_Impl: Sized { @@ -933,6 +933,6 @@ impl IProviderQueryConstraintCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 0cd1fa33b2..82ac5b2fc4 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/FunctionDiscovery/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/FunctionDiscovery/mod.rs @@ -1,6 +1,5 @@ -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFunctionDiscovery(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFunctionDiscovery, IFunctionDiscovery_Vtbl, 0x4df99b70_e148_4432_b004_4c9eeb535a5e); +::windows_core::imp::interface_hierarchy!(IFunctionDiscovery, ::windows_core::IUnknown); impl IFunctionDiscovery { pub unsafe fn GetInstanceCollection(&self, pszcategory: P0, pszsubcategory: P1, fincludeallsubcategories: P2) -> ::windows_core::Result where @@ -56,13 +55,6 @@ impl IFunctionDiscovery { (::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::imp::interface_hierarchy!(IFunctionDiscovery, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFunctionDiscovery { - type Vtable = IFunctionDiscovery_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFunctionDiscovery { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4df99b70_e148_4432_b004_4c9eeb535a5e); -} #[repr(C)] #[doc(hidden)] pub struct IFunctionDiscovery_Vtbl { @@ -80,9 +72,8 @@ pub struct IFunctionDiscovery_Vtbl { AddInstance: usize, pub RemoveInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enumsystemvisibility: SystemVisibilityFlags, pszcategory: ::windows_core::PCWSTR, pszsubcategory: ::windows_core::PCWSTR, pszcategoryidentity: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFunctionDiscoveryNotification(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFunctionDiscoveryNotification, IFunctionDiscoveryNotification_Vtbl, 0x5f6c1ba8_5330_422e_a368_572b244d3f87); +::windows_core::imp::interface_hierarchy!(IFunctionDiscoveryNotification, ::windows_core::IUnknown); impl IFunctionDiscoveryNotification { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -105,13 +96,6 @@ impl IFunctionDiscoveryNotification { (::windows_core::Interface::vtable(self).OnEvent)(::windows_core::Interface::as_raw(self), dweventid, fdqcquerycontext, pszprovider.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IFunctionDiscoveryNotification, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFunctionDiscoveryNotification { - type Vtable = IFunctionDiscoveryNotification_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFunctionDiscoveryNotification { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5f6c1ba8_5330_422e_a368_572b244d3f87); -} #[repr(C)] #[doc(hidden)] pub struct IFunctionDiscoveryNotification_Vtbl { @@ -123,9 +107,8 @@ pub struct IFunctionDiscoveryNotification_Vtbl { pub OnError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hr: ::windows_core::HRESULT, fdqcquerycontext: u64, pszprovider: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub OnEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dweventid: u32, fdqcquerycontext: u64, pszprovider: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFunctionDiscoveryProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFunctionDiscoveryProvider, IFunctionDiscoveryProvider_Vtbl, 0xdcde394f_1478_4813_a402_f6fb10657222); +::windows_core::imp::interface_hierarchy!(IFunctionDiscoveryProvider, ::windows_core::IUnknown); impl IFunctionDiscoveryProvider { pub unsafe fn Initialize(&self, pifunctiondiscoveryproviderfactory: P0, pifunctiondiscoverynotification: P1, lciduserdefault: u32) -> ::windows_core::Result where @@ -188,13 +171,6 @@ impl IFunctionDiscoveryProvider { (::windows_core::Interface::vtable(self).InstanceReleased)(::windows_core::Interface::as_raw(self), pifunctioninstance.into_param().abi(), iproviderinstancecontext).ok() } } -::windows_core::imp::interface_hierarchy!(IFunctionDiscoveryProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFunctionDiscoveryProvider { - type Vtable = IFunctionDiscoveryProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFunctionDiscoveryProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdcde394f_1478_4813_a402_f6fb10657222); -} #[repr(C)] #[doc(hidden)] pub struct IFunctionDiscoveryProvider_Vtbl { @@ -223,9 +199,8 @@ pub struct IFunctionDiscoveryProvider_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] InstanceReleased: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFunctionDiscoveryProviderFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFunctionDiscoveryProviderFactory, IFunctionDiscoveryProviderFactory_Vtbl, 0x86443ff0_1ad5_4e68_a45a_40c2c329de3b); +::windows_core::imp::interface_hierarchy!(IFunctionDiscoveryProviderFactory, ::windows_core::IUnknown); impl IFunctionDiscoveryProviderFactory { #[doc = "Required features: `\"Win32_UI_Shell_PropertiesSystem\"`"] #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] @@ -250,13 +225,6 @@ impl IFunctionDiscoveryProviderFactory { (::windows_core::Interface::vtable(self).CreateFunctionInstanceCollection)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IFunctionDiscoveryProviderFactory, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFunctionDiscoveryProviderFactory { - type Vtable = IFunctionDiscoveryProviderFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFunctionDiscoveryProviderFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x86443ff0_1ad5_4e68_a45a_40c2c329de3b); -} #[repr(C)] #[doc(hidden)] pub struct IFunctionDiscoveryProviderFactory_Vtbl { @@ -271,9 +239,8 @@ pub struct IFunctionDiscoveryProviderFactory_Vtbl { CreateInstance: usize, pub CreateFunctionInstanceCollection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppifunctioninstancecollection: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFunctionDiscoveryProviderQuery(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFunctionDiscoveryProviderQuery, IFunctionDiscoveryProviderQuery_Vtbl, 0x6876ea98_baec_46db_bc20_75a76e267a3a); +::windows_core::imp::interface_hierarchy!(IFunctionDiscoveryProviderQuery, ::windows_core::IUnknown); impl IFunctionDiscoveryProviderQuery { pub unsafe fn IsInstanceQuery(&self, pisinstancequery: *mut super::super::Foundation::BOOL, ppszconstraintvalue: *mut *mut u16) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).IsInstanceQuery)(::windows_core::Interface::as_raw(self), pisinstancequery, ppszconstraintvalue).ok() @@ -290,13 +257,6 @@ impl IFunctionDiscoveryProviderQuery { (::windows_core::Interface::vtable(self).GetPropertyConstraints)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IFunctionDiscoveryProviderQuery, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFunctionDiscoveryProviderQuery { - type Vtable = IFunctionDiscoveryProviderQuery_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFunctionDiscoveryProviderQuery { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6876ea98_baec_46db_bc20_75a76e267a3a); -} #[repr(C)] #[doc(hidden)] pub struct IFunctionDiscoveryProviderQuery_Vtbl { @@ -306,28 +266,20 @@ pub struct IFunctionDiscoveryProviderQuery_Vtbl { pub GetQueryConstraints: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppiproviderqueryconstraints: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetPropertyConstraints: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppiproviderpropertyconstraints: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFunctionDiscoveryServiceProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFunctionDiscoveryServiceProvider, IFunctionDiscoveryServiceProvider_Vtbl, 0x4c81ed02_1b04_43f2_a451_69966cbcd1c2); +::windows_core::imp::interface_hierarchy!(IFunctionDiscoveryServiceProvider, ::windows_core::IUnknown); impl IFunctionDiscoveryServiceProvider { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] pub unsafe fn Initialize(&self, pifunctioninstance: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IFunctionDiscoveryServiceProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFunctionDiscoveryServiceProvider { - type Vtable = IFunctionDiscoveryServiceProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFunctionDiscoveryServiceProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4c81ed02_1b04_43f2_a451_69966cbcd1c2); -} #[repr(C)] #[doc(hidden)] pub struct IFunctionDiscoveryServiceProvider_Vtbl { @@ -337,18 +289,22 @@ pub struct IFunctionDiscoveryServiceProvider_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Initialize: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFunctionInstance(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFunctionInstance, + IFunctionInstance_Vtbl, + 0x33591c10_0bed_4f02_b0ab_1530d5533ee9 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFunctionInstance, ::windows_core::IUnknown, super::super::System::Com::IServiceProvider); #[cfg(feature = "Win32_System_Com")] impl IFunctionInstance { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] pub unsafe fn QueryService(&self, guidservice: *const ::windows_core::GUID) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.QueryService)(::windows_core::Interface::as_raw(self), guidservice, &T::IID, &mut result__).from_abi(result__) @@ -372,16 +328,6 @@ impl IFunctionInstance { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFunctionInstance, ::windows_core::IUnknown, super::super::System::Com::IServiceProvider); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFunctionInstance { - type Vtable = IFunctionInstance_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFunctionInstance { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x33591c10_0bed_4f02_b0ab_1530d5533ee9); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFunctionInstance_Vtbl { @@ -394,9 +340,8 @@ pub struct IFunctionInstance_Vtbl { OpenPropertyStore: usize, pub GetCategory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppszcomemcategory: *mut *mut u16, ppszcomemsubcategory: *mut *mut u16) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFunctionInstanceCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFunctionInstanceCollection, IFunctionInstanceCollection_Vtbl, 0xf0a3d895_855c_42a2_948d_2f97d450ecb1); +::windows_core::imp::interface_hierarchy!(IFunctionInstanceCollection, ::windows_core::IUnknown); impl IFunctionInstanceCollection { pub unsafe fn GetCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -437,13 +382,6 @@ impl IFunctionInstanceCollection { (::windows_core::Interface::vtable(self).DeleteAll)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IFunctionInstanceCollection, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFunctionInstanceCollection { - type Vtable = IFunctionInstanceCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFunctionInstanceCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf0a3d895_855c_42a2_948d_2f97d450ecb1); -} #[repr(C)] #[doc(hidden)] pub struct IFunctionInstanceCollection_Vtbl { @@ -468,9 +406,8 @@ pub struct IFunctionInstanceCollection_Vtbl { pub Delete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwindex: u32) -> ::windows_core::HRESULT, pub DeleteAll: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFunctionInstanceCollectionQuery(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFunctionInstanceCollectionQuery, IFunctionInstanceCollectionQuery_Vtbl, 0x57cc6fd2_c09a_4289_bb72_25f04142058e); +::windows_core::imp::interface_hierarchy!(IFunctionInstanceCollectionQuery, ::windows_core::IUnknown); impl IFunctionInstanceCollectionQuery { pub unsafe fn AddQueryConstraint(&self, pszconstraintname: P0, pszconstraintvalue: P1) -> ::windows_core::Result<()> where @@ -489,13 +426,6 @@ impl IFunctionInstanceCollectionQuery { (::windows_core::Interface::vtable(self).Execute)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IFunctionInstanceCollectionQuery, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFunctionInstanceCollectionQuery { - type Vtable = IFunctionInstanceCollectionQuery_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFunctionInstanceCollectionQuery { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x57cc6fd2_c09a_4289_bb72_25f04142058e); -} #[repr(C)] #[doc(hidden)] pub struct IFunctionInstanceCollectionQuery_Vtbl { @@ -507,9 +437,8 @@ pub struct IFunctionInstanceCollectionQuery_Vtbl { AddPropertyConstraint: usize, pub Execute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppifunctioninstancecollection: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFunctionInstanceQuery(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFunctionInstanceQuery, IFunctionInstanceQuery_Vtbl, 0x6242bc6b_90ec_4b37_bb46_e229fd84ed95); +::windows_core::imp::interface_hierarchy!(IFunctionInstanceQuery, ::windows_core::IUnknown); impl IFunctionInstanceQuery { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -518,13 +447,6 @@ impl IFunctionInstanceQuery { (::windows_core::Interface::vtable(self).Execute)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IFunctionInstanceQuery, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFunctionInstanceQuery { - type Vtable = IFunctionInstanceQuery_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFunctionInstanceQuery { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6242bc6b_90ec_4b37_bb46_e229fd84ed95); -} #[repr(C)] #[doc(hidden)] pub struct IFunctionInstanceQuery_Vtbl { @@ -534,9 +456,8 @@ pub struct IFunctionInstanceQuery_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Execute: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPNPXAssociation(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPNPXAssociation, IPNPXAssociation_Vtbl, 0x0bd7e521_4da6_42d5_81ba_1981b6b94075); +::windows_core::imp::interface_hierarchy!(IPNPXAssociation, ::windows_core::IUnknown); impl IPNPXAssociation { pub unsafe fn Associate(&self, pszsubcategory: P0) -> ::windows_core::Result<()> where @@ -557,13 +478,6 @@ impl IPNPXAssociation { (::windows_core::Interface::vtable(self).Delete)(::windows_core::Interface::as_raw(self), pszsubcategory.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IPNPXAssociation, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPNPXAssociation { - type Vtable = IPNPXAssociation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPNPXAssociation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0bd7e521_4da6_42d5_81ba_1981b6b94075); -} #[repr(C)] #[doc(hidden)] pub struct IPNPXAssociation_Vtbl { @@ -572,9 +486,8 @@ pub struct IPNPXAssociation_Vtbl { pub Unassociate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszsubcategory: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub Delete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszsubcategory: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPNPXDeviceAssociation(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPNPXDeviceAssociation, IPNPXDeviceAssociation_Vtbl, 0xeed366d0_35b8_4fc5_8d20_7e5bd31f6ded); +::windows_core::imp::interface_hierarchy!(IPNPXDeviceAssociation, ::windows_core::IUnknown); impl IPNPXDeviceAssociation { pub unsafe fn Associate(&self, pszsubcategory: P0, pifunctiondiscoverynotification: P1) -> ::windows_core::Result<()> where @@ -598,13 +511,6 @@ impl IPNPXDeviceAssociation { (::windows_core::Interface::vtable(self).Delete)(::windows_core::Interface::as_raw(self), pszsubcategory.into_param().abi(), pifunctiondiscoverynotification.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IPNPXDeviceAssociation, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPNPXDeviceAssociation { - type Vtable = IPNPXDeviceAssociation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPNPXDeviceAssociation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeed366d0_35b8_4fc5_8d20_7e5bd31f6ded); -} #[repr(C)] #[doc(hidden)] pub struct IPNPXDeviceAssociation_Vtbl { @@ -613,9 +519,8 @@ pub struct IPNPXDeviceAssociation_Vtbl { pub Unassociate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszsubcategory: ::windows_core::PCWSTR, pifunctiondiscoverynotification: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Delete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszsubcategory: ::windows_core::PCWSTR, pifunctiondiscoverynotification: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPropertyStoreCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPropertyStoreCollection, IPropertyStoreCollection_Vtbl, 0xd14d9c30_12d2_42d8_bce4_c60c2bb226fa); +::windows_core::imp::interface_hierarchy!(IPropertyStoreCollection, ::windows_core::IUnknown); impl IPropertyStoreCollection { pub unsafe fn GetCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -656,13 +561,6 @@ impl IPropertyStoreCollection { (::windows_core::Interface::vtable(self).DeleteAll)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IPropertyStoreCollection, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPropertyStoreCollection { - type Vtable = IPropertyStoreCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPropertyStoreCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd14d9c30_12d2_42d8_bce4_c60c2bb226fa); -} #[repr(C)] #[doc(hidden)] pub struct IPropertyStoreCollection_Vtbl { @@ -687,9 +585,8 @@ pub struct IPropertyStoreCollection_Vtbl { pub Delete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwindex: u32) -> ::windows_core::HRESULT, pub DeleteAll: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProviderProperties(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IProviderProperties, IProviderProperties_Vtbl, 0xcf986ea6_3b5f_4c5f_b88a_2f8b20ceef17); +::windows_core::imp::interface_hierarchy!(IProviderProperties, ::windows_core::IUnknown); impl IProviderProperties { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -726,13 +623,6 @@ impl IProviderProperties { (::windows_core::Interface::vtable(self).SetValue)(::windows_core::Interface::as_raw(self), pifunctioninstance.into_param().abi(), iproviderinstancecontext, key, ppropvar).ok() } } -::windows_core::imp::interface_hierarchy!(IProviderProperties, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProviderProperties { - type Vtable = IProviderProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProviderProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcf986ea6_3b5f_4c5f_b88a_2f8b20ceef17); -} #[repr(C)] #[doc(hidden)] pub struct IProviderProperties_Vtbl { @@ -754,9 +644,8 @@ pub struct IProviderProperties_Vtbl { #[cfg(not(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant", feature = "Win32_UI_Shell_PropertiesSystem")))] SetValue: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProviderPropertyConstraintCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IProviderPropertyConstraintCollection, IProviderPropertyConstraintCollection_Vtbl, 0xf4fae42f_5778_4a13_8540_b5fd8c1398dd); +::windows_core::imp::interface_hierarchy!(IProviderPropertyConstraintCollection, ::windows_core::IUnknown); impl IProviderPropertyConstraintCollection { pub unsafe fn GetCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -784,13 +673,6 @@ impl IProviderPropertyConstraintCollection { (::windows_core::Interface::vtable(self).Reset)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IProviderPropertyConstraintCollection, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProviderPropertyConstraintCollection { - type Vtable = IProviderPropertyConstraintCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProviderPropertyConstraintCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf4fae42f_5778_4a13_8540_b5fd8c1398dd); -} #[repr(C)] #[doc(hidden)] pub struct IProviderPropertyConstraintCollection_Vtbl { @@ -811,9 +693,8 @@ pub struct IProviderPropertyConstraintCollection_Vtbl { pub Skip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProviderPublishing(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IProviderPublishing, IProviderPublishing_Vtbl, 0xcd1b9a04_206c_4a05_a0c8_1635a21a2b7c); +::windows_core::imp::interface_hierarchy!(IProviderPublishing, ::windows_core::IUnknown); impl IProviderPublishing { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -833,13 +714,6 @@ impl IProviderPublishing { (::windows_core::Interface::vtable(self).RemoveInstance)(::windows_core::Interface::as_raw(self), enumvisibilityflags, pszsubcategory.into_param().abi(), pszproviderinstanceidentity.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IProviderPublishing, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProviderPublishing { - type Vtable = IProviderPublishing_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProviderPublishing { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcd1b9a04_206c_4a05_a0c8_1635a21a2b7c); -} #[repr(C)] #[doc(hidden)] pub struct IProviderPublishing_Vtbl { @@ -850,9 +724,8 @@ pub struct IProviderPublishing_Vtbl { CreateInstance: usize, pub RemoveInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enumvisibilityflags: SystemVisibilityFlags, pszsubcategory: ::windows_core::PCWSTR, pszproviderinstanceidentity: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProviderQueryConstraintCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IProviderQueryConstraintCollection, IProviderQueryConstraintCollection_Vtbl, 0x9c243e11_3261_4bcd_b922_84a873d460ae); +::windows_core::imp::interface_hierarchy!(IProviderQueryConstraintCollection, ::windows_core::IUnknown); impl IProviderQueryConstraintCollection { pub unsafe fn GetCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -878,13 +751,6 @@ impl IProviderQueryConstraintCollection { (::windows_core::Interface::vtable(self).Reset)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IProviderQueryConstraintCollection, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProviderQueryConstraintCollection { - type Vtable = IProviderQueryConstraintCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProviderQueryConstraintCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9c243e11_3261_4bcd_b922_84a873d460ae); -} #[repr(C)] #[doc(hidden)] pub struct IProviderQueryConstraintCollection_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Devices/Geolocation/impl.rs b/crates/libs/windows/src/Windows/Win32/Devices/Geolocation/impl.rs index ad200d6caa..3502f8f6fa 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/Geolocation/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/Geolocation/impl.rs @@ -103,7 +103,7 @@ impl ICivicAddressReport_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -130,7 +130,7 @@ impl ICivicAddressReportFactory_Vtbl { Self { base__: ILocationReportFactory_Vtbl::new::(), CivicAddressReport: CivicAddressReport:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDefaultLocation_Impl: Sized { @@ -163,7 +163,7 @@ impl IDefaultLocation_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -284,7 +284,7 @@ impl IDispCivicAddressReport_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -379,7 +379,7 @@ impl IDispLatLongReport_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`, `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -461,7 +461,7 @@ impl ILatLongReport_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -488,7 +488,7 @@ impl ILatLongReportFactory_Vtbl { Self { base__: ILocationReportFactory_Vtbl::new::(), LatLongReport: LatLongReport:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Devices_Sensors\"`"] @@ -592,7 +592,7 @@ impl ILocation_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ILocationEvents_Impl: Sized { @@ -619,7 +619,7 @@ impl ILocationEvents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ILocationPower_Impl: Sized { @@ -646,7 +646,7 @@ impl ILocationPower_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`, `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -702,7 +702,7 @@ impl ILocationReport_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -793,7 +793,7 @@ impl ILocationReportFactory_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -807,7 +807,7 @@ impl _ICivicAddressReportFactoryEvents_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &<_ICivicAddressReportFactoryEvents as ::windows_core::ComInterface>::IID || iid == &::IID + iid == &<_ICivicAddressReportFactoryEvents as ::windows_core::Interface>::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -821,6 +821,6 @@ impl _ILatLongReportFactoryEvents_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &<_ILatLongReportFactoryEvents as ::windows_core::ComInterface>::IID || iid == &::IID + iid == &<_ILatLongReportFactoryEvents as ::windows_core::Interface>::IID || iid == &::IID } } 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 a04d5937a5..3eb76d78ec 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/Geolocation/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/Geolocation/mod.rs @@ -1,6 +1,5 @@ -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICivicAddressReport(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICivicAddressReport, ICivicAddressReport_Vtbl, 0xc0b19f70_4adf_445d_87f2_cad8fd711792); +::windows_core::imp::interface_hierarchy!(ICivicAddressReport, ::windows_core::IUnknown, ILocationReport); impl ICivicAddressReport { pub unsafe fn GetSensorID(&self) -> ::windows_core::Result<::windows_core::GUID> { let mut result__ = ::std::mem::zeroed(); @@ -45,13 +44,6 @@ impl ICivicAddressReport { (::windows_core::Interface::vtable(self).GetDetailLevel)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ICivicAddressReport, ::windows_core::IUnknown, ILocationReport); -unsafe impl ::windows_core::Interface for ICivicAddressReport { - type Vtable = ICivicAddressReport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICivicAddressReport { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc0b19f70_4adf_445d_87f2_cad8fd711792); -} #[repr(C)] #[doc(hidden)] pub struct ICivicAddressReport_Vtbl { @@ -64,11 +56,15 @@ pub struct ICivicAddressReport_Vtbl { pub GetCountryRegion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcountryregion: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub GetDetailLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdetaillevel: *mut u32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICivicAddressReportFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICivicAddressReportFactory, + ICivicAddressReportFactory_Vtbl, + 0xbf773b93_c64f_4bee_beb2_67c0b8df66e0 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICivicAddressReportFactory, ::windows_core::IUnknown, super::super::System::Com::IDispatch, ILocationReportFactory); #[cfg(feature = "Win32_System_Com")] impl ICivicAddressReportFactory { pub unsafe fn ListenForReports(&self, requestedreportinterval: u32) -> ::windows_core::Result<()> { @@ -106,16 +102,6 @@ impl ICivicAddressReportFactory { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICivicAddressReportFactory, ::windows_core::IUnknown, super::super::System::Com::IDispatch, ILocationReportFactory); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICivicAddressReportFactory { - type Vtable = ICivicAddressReportFactory_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICivicAddressReportFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbf773b93_c64f_4bee_beb2_67c0b8df66e0); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICivicAddressReportFactory_Vtbl { @@ -125,9 +111,8 @@ pub struct ICivicAddressReportFactory_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] CivicAddressReport: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDefaultLocation(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDefaultLocation, IDefaultLocation_Vtbl, 0xa65af77e_969a_4a2e_8aca_33bb7cbb1235); +::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 @@ -140,13 +125,6 @@ impl IDefaultLocation { (::windows_core::Interface::vtable(self).GetReport)(::windows_core::Interface::as_raw(self), reporttype, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDefaultLocation, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDefaultLocation { - type Vtable = IDefaultLocation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDefaultLocation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa65af77e_969a_4a2e_8aca_33bb7cbb1235); -} #[repr(C)] #[doc(hidden)] pub struct IDefaultLocation_Vtbl { @@ -154,11 +132,15 @@ pub struct IDefaultLocation_Vtbl { pub SetReport: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, reporttype: *const ::windows_core::GUID, plocationreport: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetReport: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, reporttype: *const ::windows_core::GUID, pplocationreport: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDispCivicAddressReport(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IDispCivicAddressReport, + IDispCivicAddressReport_Vtbl, + 0x16ff1a34_9e30_42c3_b44d_e22513b5767a +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IDispCivicAddressReport, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IDispCivicAddressReport { pub unsafe fn AddressLine1(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -195,16 +177,6 @@ impl IDispCivicAddressReport { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IDispCivicAddressReport, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IDispCivicAddressReport { - type Vtable = IDispCivicAddressReport_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IDispCivicAddressReport { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x16ff1a34_9e30_42c3_b44d_e22513b5767a); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IDispCivicAddressReport_Vtbl { @@ -218,11 +190,15 @@ pub struct IDispCivicAddressReport_Vtbl { pub DetailLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdetaillevel: *mut u32) -> ::windows_core::HRESULT, pub Timestamp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut f64) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDispLatLongReport(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IDispLatLongReport, + IDispLatLongReport_Vtbl, + 0x8ae32723_389b_4a11_9957_5bdd48fc9617 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IDispLatLongReport, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IDispLatLongReport { pub unsafe fn Latitude(&self) -> ::windows_core::Result { @@ -251,16 +227,6 @@ impl IDispLatLongReport { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IDispLatLongReport, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IDispLatLongReport { - type Vtable = IDispLatLongReport_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IDispLatLongReport { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8ae32723_389b_4a11_9957_5bdd48fc9617); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IDispLatLongReport_Vtbl { @@ -272,9 +238,8 @@ pub struct IDispLatLongReport_Vtbl { pub AltitudeError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut f64) -> ::windows_core::HRESULT, pub Timestamp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut f64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILatLongReport(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ILatLongReport, ILatLongReport_Vtbl, 0x7fed806d_0ef8_4f07_80ac_36a0beae3134); +::windows_core::imp::interface_hierarchy!(ILatLongReport, ::windows_core::IUnknown, ILocationReport); impl ILatLongReport { pub unsafe fn GetSensorID(&self) -> ::windows_core::Result<::windows_core::GUID> { let mut result__ = ::std::mem::zeroed(); @@ -311,13 +276,6 @@ impl ILatLongReport { (::windows_core::Interface::vtable(self).GetAltitudeError)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ILatLongReport, ::windows_core::IUnknown, ILocationReport); -unsafe impl ::windows_core::Interface for ILatLongReport { - type Vtable = ILatLongReport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILatLongReport { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7fed806d_0ef8_4f07_80ac_36a0beae3134); -} #[repr(C)] #[doc(hidden)] pub struct ILatLongReport_Vtbl { @@ -328,11 +286,15 @@ pub struct ILatLongReport_Vtbl { pub GetAltitude: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, paltitude: *mut f64) -> ::windows_core::HRESULT, pub GetAltitudeError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, paltitudeerror: *mut f64) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILatLongReportFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ILatLongReportFactory, + ILatLongReportFactory_Vtbl, + 0x3f0804cb_b114_447d_83dd_390174ebb082 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ILatLongReportFactory, ::windows_core::IUnknown, super::super::System::Com::IDispatch, ILocationReportFactory); #[cfg(feature = "Win32_System_Com")] impl ILatLongReportFactory { pub unsafe fn ListenForReports(&self, requestedreportinterval: u32) -> ::windows_core::Result<()> { @@ -370,16 +332,6 @@ impl ILatLongReportFactory { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ILatLongReportFactory, ::windows_core::IUnknown, super::super::System::Com::IDispatch, ILocationReportFactory); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ILatLongReportFactory { - type Vtable = ILatLongReportFactory_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ILatLongReportFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3f0804cb_b114_447d_83dd_390174ebb082); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ILatLongReportFactory_Vtbl { @@ -389,9 +341,8 @@ pub struct ILatLongReportFactory_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] LatLongReport: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILocation(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ILocation, ILocation_Vtbl, 0xab2ece69_56d9_4f28_b525_de1b0ee44237); +::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 @@ -436,13 +387,6 @@ impl ILocation { (::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::imp::interface_hierarchy!(ILocation, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILocation { - type Vtable = ILocation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILocation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xab2ece69_56d9_4f28_b525_de1b0ee44237); -} #[repr(C)] #[doc(hidden)] pub struct ILocation_Vtbl { @@ -463,9 +407,8 @@ pub struct ILocation_Vtbl { SetDesiredAccuracy: usize, pub RequestPermissions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hparent: super::super::Foundation::HWND, preporttypes: *const ::windows_core::GUID, count: u32, fmodal: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILocationEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ILocationEvents, ILocationEvents_Vtbl, 0xcae02bbf_798b_4508_a207_35a7906dc73d); +::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 @@ -477,13 +420,6 @@ impl ILocationEvents { (::windows_core::Interface::vtable(self).OnStatusChanged)(::windows_core::Interface::as_raw(self), reporttype, newstatus).ok() } } -::windows_core::imp::interface_hierarchy!(ILocationEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILocationEvents { - type Vtable = ILocationEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILocationEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcae02bbf_798b_4508_a207_35a7906dc73d); -} #[repr(C)] #[doc(hidden)] pub struct ILocationEvents_Vtbl { @@ -491,9 +427,8 @@ pub struct ILocationEvents_Vtbl { pub OnLocationChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, reporttype: *const ::windows_core::GUID, plocationreport: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub OnStatusChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, reporttype: *const ::windows_core::GUID, newstatus: LOCATION_REPORT_STATUS) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILocationPower(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ILocationPower, ILocationPower_Vtbl, 0x193e7729_ab6b_4b12_8617_7596e1bb191c); +::windows_core::imp::interface_hierarchy!(ILocationPower, ::windows_core::IUnknown); impl ILocationPower { pub unsafe fn Connect(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Connect)(::windows_core::Interface::as_raw(self)).ok() @@ -502,13 +437,6 @@ impl ILocationPower { (::windows_core::Interface::vtable(self).Disconnect)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ILocationPower, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILocationPower { - type Vtable = ILocationPower_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILocationPower { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x193e7729_ab6b_4b12_8617_7596e1bb191c); -} #[repr(C)] #[doc(hidden)] pub struct ILocationPower_Vtbl { @@ -516,9 +444,8 @@ pub struct ILocationPower_Vtbl { pub Connect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Disconnect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILocationReport(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ILocationReport, ILocationReport_Vtbl, 0xc8b7f7ee_75d0_4db9_b62d_7a0f369ca456); +::windows_core::imp::interface_hierarchy!(ILocationReport, ::windows_core::IUnknown); impl ILocationReport { pub unsafe fn GetSensorID(&self) -> ::windows_core::Result<::windows_core::GUID> { let mut result__ = ::std::mem::zeroed(); @@ -535,13 +462,6 @@ impl ILocationReport { (::windows_core::Interface::vtable(self).GetValue)(::windows_core::Interface::as_raw(self), pkey, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ILocationReport, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILocationReport { - type Vtable = ILocationReport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILocationReport { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc8b7f7ee_75d0_4db9_b62d_7a0f369ca456); -} #[repr(C)] #[doc(hidden)] pub struct ILocationReport_Vtbl { @@ -553,11 +473,15 @@ pub struct ILocationReport_Vtbl { #[cfg(not(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant", feature = "Win32_UI_Shell_PropertiesSystem")))] GetValue: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILocationReportFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ILocationReportFactory, + ILocationReportFactory_Vtbl, + 0x2daec322_90b2_47e4_bb08_0da841935a6b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ILocationReportFactory, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ILocationReportFactory { pub unsafe fn ListenForReports(&self, requestedreportinterval: u32) -> ::windows_core::Result<()> { @@ -589,16 +513,6 @@ impl ILocationReportFactory { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ILocationReportFactory, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ILocationReportFactory { - type Vtable = ILocationReportFactory_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ILocationReportFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2daec322_90b2_47e4_bb08_0da841935a6b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ILocationReportFactory_Vtbl { @@ -612,46 +526,34 @@ pub struct ILocationReportFactory_Vtbl { pub SetDesiredAccuracy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, desiredaccuracy: u32) -> ::windows_core::HRESULT, pub RequestPermissions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwnd: *const u32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] -#[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct _ICivicAddressReportFactoryEvents(::windows_core::IUnknown); #[cfg(feature = "Win32_System_Com")] -impl _ICivicAddressReportFactoryEvents {} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + _ICivicAddressReportFactoryEvents, + _ICivicAddressReportFactoryEvents_Vtbl, + 0xc96039ff_72ec_4617_89bd_84d88bedc722 +); #[cfg(feature = "Win32_System_Com")] ::windows_core::imp::interface_hierarchy!(_ICivicAddressReportFactoryEvents, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for _ICivicAddressReportFactoryEvents { - type Vtable = _ICivicAddressReportFactoryEvents_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for _ICivicAddressReportFactoryEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc96039ff_72ec_4617_89bd_84d88bedc722); -} +impl _ICivicAddressReportFactoryEvents {} #[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct _ICivicAddressReportFactoryEvents_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, } -#[doc = "Required features: `\"Win32_System_Com\"`"] -#[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct _ILatLongReportFactoryEvents(::windows_core::IUnknown); #[cfg(feature = "Win32_System_Com")] -impl _ILatLongReportFactoryEvents {} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + _ILatLongReportFactoryEvents, + _ILatLongReportFactoryEvents_Vtbl, + 0x16ee6cb7_ab3c_424b_849f_269be551fcbc +); #[cfg(feature = "Win32_System_Com")] ::windows_core::imp::interface_hierarchy!(_ILatLongReportFactoryEvents, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for _ILatLongReportFactoryEvents { - type Vtable = _ILatLongReportFactoryEvents_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for _ILatLongReportFactoryEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x16ee6cb7_ab3c_424b_849f_269be551fcbc); -} +impl _ILatLongReportFactoryEvents {} #[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] diff --git a/crates/libs/windows/src/Windows/Win32/Devices/HumanInterfaceDevice/impl.rs b/crates/libs/windows/src/Windows/Win32/Devices/HumanInterfaceDevice/impl.rs index 5aa799ba2b..fdef2a67c5 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/HumanInterfaceDevice/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/HumanInterfaceDevice/impl.rs @@ -12,7 +12,7 @@ impl IDirectInput2A_Vtbl { Self { base__: IDirectInputA_Vtbl::new::(), FindDevice: FindDevice:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDirectInput2W_Impl: Sized + IDirectInputW_Impl { @@ -29,7 +29,7 @@ impl IDirectInput2W_Vtbl { Self { base__: IDirectInputW_Vtbl::new::(), FindDevice: FindDevice:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDirectInput7A_Impl: Sized + IDirectInput2A_Impl { @@ -46,7 +46,7 @@ impl IDirectInput7A_Vtbl { Self { base__: IDirectInput2A_Vtbl::new::(), CreateDeviceEx: CreateDeviceEx:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDirectInput7W_Impl: Sized + IDirectInput2W_Impl { @@ -63,7 +63,7 @@ impl IDirectInput7W_Vtbl { Self { base__: IDirectInput2W_Vtbl::new::(), CreateDeviceEx: CreateDeviceEx:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDirectInput8A_Impl: Sized { @@ -132,7 +132,7 @@ impl IDirectInput8A_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDirectInput8W_Impl: Sized { @@ -201,7 +201,7 @@ impl IDirectInput8W_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDirectInputA_Impl: Sized { @@ -249,7 +249,7 @@ impl IDirectInputA_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDirectInputDevice2A_Impl: Sized + IDirectInputDeviceA_Impl { @@ -325,7 +325,7 @@ impl IDirectInputDevice2A_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDirectInputDevice2W_Impl: Sized + IDirectInputDeviceW_Impl { @@ -401,7 +401,7 @@ impl IDirectInputDevice2W_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDirectInputDevice7A_Impl: Sized + IDirectInputDevice2A_Impl { @@ -428,7 +428,7 @@ impl IDirectInputDevice7A_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDirectInputDevice7W_Impl: Sized + IDirectInputDevice2W_Impl { @@ -455,7 +455,7 @@ impl IDirectInputDevice7W_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDirectInputDevice8A_Impl: Sized { @@ -671,7 +671,7 @@ impl IDirectInputDevice8A_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDirectInputDevice8W_Impl: Sized { @@ -887,7 +887,7 @@ impl IDirectInputDevice8W_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDirectInputDeviceA_Impl: Sized { @@ -1005,7 +1005,7 @@ impl IDirectInputDeviceA_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDirectInputDeviceW_Impl: Sized { @@ -1123,7 +1123,7 @@ impl IDirectInputDeviceW_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDirectInputEffect_Impl: Sized { @@ -1206,7 +1206,7 @@ impl IDirectInputEffect_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDirectInputEffectDriver_Impl: Sized { @@ -1296,7 +1296,7 @@ impl IDirectInputEffectDriver_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Registry\"`"] @@ -1425,7 +1425,7 @@ impl IDirectInputJoyConfig_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Registry\"`"] @@ -1554,7 +1554,7 @@ impl IDirectInputJoyConfig8_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDirectInputW_Impl: Sized { @@ -1602,6 +1602,6 @@ impl IDirectInputW_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 75ab1892b5..286a978bfd 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/HumanInterfaceDevice/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/HumanInterfaceDevice/mod.rs @@ -365,9 +365,8 @@ pub unsafe fn joyConfigChanged(dwflags: u32) -> u32 { ::windows_targets::link!("winmm.dll" "system" fn joyConfigChanged(dwflags : u32) -> u32); joyConfigChanged(dwflags) } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectInput2A(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectInput2A, IDirectInput2A_Vtbl, 0x5944e662_aa8a_11cf_bfc7_444553540000); +::windows_core::imp::interface_hierarchy!(IDirectInput2A, ::windows_core::IUnknown, IDirectInputA); impl IDirectInput2A { pub unsafe fn CreateDevice(&self, param0: *const ::windows_core::GUID, param1: *mut ::core::option::Option, param2: P0) -> ::windows_core::Result<()> where @@ -400,22 +399,14 @@ impl IDirectInput2A { (::windows_core::Interface::vtable(self).FindDevice)(::windows_core::Interface::as_raw(self), param0, param1.into_param().abi(), param2).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectInput2A, ::windows_core::IUnknown, IDirectInputA); -unsafe impl ::windows_core::Interface for IDirectInput2A { - type Vtable = IDirectInput2A_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectInput2A { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5944e662_aa8a_11cf_bfc7_444553540000); -} #[repr(C)] #[doc(hidden)] pub struct IDirectInput2A_Vtbl { pub base__: IDirectInputA_Vtbl, pub FindDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: *const ::windows_core::GUID, param1: ::windows_core::PCSTR, param2: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectInput2W(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectInput2W, IDirectInput2W_Vtbl, 0x5944e663_aa8a_11cf_bfc7_444553540000); +::windows_core::imp::interface_hierarchy!(IDirectInput2W, ::windows_core::IUnknown, IDirectInputW); impl IDirectInput2W { pub unsafe fn CreateDevice(&self, param0: *const ::windows_core::GUID, param1: *mut ::core::option::Option, param2: P0) -> ::windows_core::Result<()> where @@ -448,22 +439,14 @@ impl IDirectInput2W { (::windows_core::Interface::vtable(self).FindDevice)(::windows_core::Interface::as_raw(self), param0, param1.into_param().abi(), param2).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectInput2W, ::windows_core::IUnknown, IDirectInputW); -unsafe impl ::windows_core::Interface for IDirectInput2W { - type Vtable = IDirectInput2W_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectInput2W { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5944e663_aa8a_11cf_bfc7_444553540000); -} #[repr(C)] #[doc(hidden)] pub struct IDirectInput2W_Vtbl { pub base__: IDirectInputW_Vtbl, pub FindDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: *const ::windows_core::GUID, param1: ::windows_core::PCWSTR, param2: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectInput7A(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectInput7A, IDirectInput7A_Vtbl, 0x9a4cb684_236d_11d3_8e9d_00c04f6844ae); +::windows_core::imp::interface_hierarchy!(IDirectInput7A, ::windows_core::IUnknown, IDirectInputA, IDirectInput2A); impl IDirectInput7A { pub unsafe fn CreateDevice(&self, param0: *const ::windows_core::GUID, param1: *mut ::core::option::Option, param2: P0) -> ::windows_core::Result<()> where @@ -502,22 +485,14 @@ impl IDirectInput7A { (::windows_core::Interface::vtable(self).CreateDeviceEx)(::windows_core::Interface::as_raw(self), param0, param1, param2, param3.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectInput7A, ::windows_core::IUnknown, IDirectInputA, IDirectInput2A); -unsafe impl ::windows_core::Interface for IDirectInput7A { - type Vtable = IDirectInput7A_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectInput7A { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9a4cb684_236d_11d3_8e9d_00c04f6844ae); -} #[repr(C)] #[doc(hidden)] pub struct IDirectInput7A_Vtbl { pub base__: IDirectInput2A_Vtbl, pub CreateDeviceEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: *const ::windows_core::GUID, param1: *const ::windows_core::GUID, param2: *mut *mut ::core::ffi::c_void, param3: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectInput7W(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectInput7W, IDirectInput7W_Vtbl, 0x9a4cb685_236d_11d3_8e9d_00c04f6844ae); +::windows_core::imp::interface_hierarchy!(IDirectInput7W, ::windows_core::IUnknown, IDirectInputW, IDirectInput2W); impl IDirectInput7W { pub unsafe fn CreateDevice(&self, param0: *const ::windows_core::GUID, param1: *mut ::core::option::Option, param2: P0) -> ::windows_core::Result<()> where @@ -556,22 +531,14 @@ impl IDirectInput7W { (::windows_core::Interface::vtable(self).CreateDeviceEx)(::windows_core::Interface::as_raw(self), param0, param1, param2, param3.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectInput7W, ::windows_core::IUnknown, IDirectInputW, IDirectInput2W); -unsafe impl ::windows_core::Interface for IDirectInput7W { - type Vtable = IDirectInput7W_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectInput7W { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9a4cb685_236d_11d3_8e9d_00c04f6844ae); -} #[repr(C)] #[doc(hidden)] pub struct IDirectInput7W_Vtbl { pub base__: IDirectInput2W_Vtbl, pub CreateDeviceEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: *const ::windows_core::GUID, param1: *const ::windows_core::GUID, param2: *mut *mut ::core::ffi::c_void, param3: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectInput8A(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectInput8A, IDirectInput8A_Vtbl, 0xbf798030_483a_4da2_aa99_5d64ed369700); +::windows_core::imp::interface_hierarchy!(IDirectInput8A, ::windows_core::IUnknown); impl IDirectInput8A { pub unsafe fn CreateDevice(&self, param0: *const ::windows_core::GUID, param1: *mut ::core::option::Option, param2: P0) -> ::windows_core::Result<()> where @@ -613,13 +580,6 @@ impl IDirectInput8A { (::windows_core::Interface::vtable(self).ConfigureDevices)(::windows_core::Interface::as_raw(self), param0, param1, param2, param3).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectInput8A, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectInput8A { - type Vtable = IDirectInput8A_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectInput8A { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbf798030_483a_4da2_aa99_5d64ed369700); -} #[repr(C)] #[doc(hidden)] pub struct IDirectInput8A_Vtbl { @@ -633,9 +593,8 @@ pub struct IDirectInput8A_Vtbl { pub EnumDevicesBySemantics: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: ::windows_core::PCSTR, param1: *mut DIACTIONFORMATA, param2: LPDIENUMDEVICESBYSEMANTICSCBA, param3: *mut ::core::ffi::c_void, param4: u32) -> ::windows_core::HRESULT, pub ConfigureDevices: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: LPDICONFIGUREDEVICESCALLBACK, param1: *mut DICONFIGUREDEVICESPARAMSA, param2: u32, param3: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectInput8W(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectInput8W, IDirectInput8W_Vtbl, 0xbf798031_483a_4da2_aa99_5d64ed369700); +::windows_core::imp::interface_hierarchy!(IDirectInput8W, ::windows_core::IUnknown); impl IDirectInput8W { pub unsafe fn CreateDevice(&self, param0: *const ::windows_core::GUID, param1: *mut ::core::option::Option, param2: P0) -> ::windows_core::Result<()> where @@ -677,13 +636,6 @@ impl IDirectInput8W { (::windows_core::Interface::vtable(self).ConfigureDevices)(::windows_core::Interface::as_raw(self), param0, param1, param2, param3).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectInput8W, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectInput8W { - type Vtable = IDirectInput8W_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectInput8W { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbf798031_483a_4da2_aa99_5d64ed369700); -} #[repr(C)] #[doc(hidden)] pub struct IDirectInput8W_Vtbl { @@ -697,9 +649,8 @@ pub struct IDirectInput8W_Vtbl { pub EnumDevicesBySemantics: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: ::windows_core::PCWSTR, param1: *mut DIACTIONFORMATW, param2: LPDIENUMDEVICESBYSEMANTICSCBW, param3: *mut ::core::ffi::c_void, param4: u32) -> ::windows_core::HRESULT, pub ConfigureDevices: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: LPDICONFIGUREDEVICESCALLBACK, param1: *mut DICONFIGUREDEVICESPARAMSW, param2: u32, param3: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectInputA(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectInputA, IDirectInputA_Vtbl, 0x89521360_aa8a_11cf_bfc7_444553540000); +::windows_core::imp::interface_hierarchy!(IDirectInputA, ::windows_core::IUnknown); impl IDirectInputA { pub unsafe fn CreateDevice(&self, param0: *const ::windows_core::GUID, param1: *mut ::core::option::Option, param2: P0) -> ::windows_core::Result<()> where @@ -726,13 +677,6 @@ impl IDirectInputA { (::windows_core::Interface::vtable(self).Initialize)(::windows_core::Interface::as_raw(self), param0.into_param().abi(), param1).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectInputA, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectInputA { - type Vtable = IDirectInputA_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectInputA { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x89521360_aa8a_11cf_bfc7_444553540000); -} #[repr(C)] #[doc(hidden)] pub struct IDirectInputA_Vtbl { @@ -743,9 +687,8 @@ pub struct IDirectInputA_Vtbl { pub RunControlPanel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: super::super::Foundation::HWND, param1: u32) -> ::windows_core::HRESULT, pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: super::super::Foundation::HINSTANCE, param1: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectInputDevice2A(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectInputDevice2A, IDirectInputDevice2A_Vtbl, 0x5944e682_c92e_11cf_bfc7_444553540000); +::windows_core::imp::interface_hierarchy!(IDirectInputDevice2A, ::windows_core::IUnknown, IDirectInputDeviceA); impl IDirectInputDevice2A { pub unsafe fn GetCapabilities(&self, param0: *mut DIDEVCAPS) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.GetCapabilities)(::windows_core::Interface::as_raw(self), param0).ok() @@ -835,13 +778,6 @@ impl IDirectInputDevice2A { (::windows_core::Interface::vtable(self).SendDeviceData)(::windows_core::Interface::as_raw(self), param0, param1, param2, param3).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectInputDevice2A, ::windows_core::IUnknown, IDirectInputDeviceA); -unsafe impl ::windows_core::Interface for IDirectInputDevice2A { - type Vtable = IDirectInputDevice2A_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectInputDevice2A { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5944e682_c92e_11cf_bfc7_444553540000); -} #[repr(C)] #[doc(hidden)] pub struct IDirectInputDevice2A_Vtbl { @@ -856,9 +792,8 @@ pub struct IDirectInputDevice2A_Vtbl { pub Poll: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SendDeviceData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: u32, param1: *mut DIDEVICEOBJECTDATA, param2: *mut u32, param3: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectInputDevice2W(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectInputDevice2W, IDirectInputDevice2W_Vtbl, 0x5944e683_c92e_11cf_bfc7_444553540000); +::windows_core::imp::interface_hierarchy!(IDirectInputDevice2W, ::windows_core::IUnknown, IDirectInputDeviceW); impl IDirectInputDevice2W { pub unsafe fn GetCapabilities(&self, param0: *mut DIDEVCAPS) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.GetCapabilities)(::windows_core::Interface::as_raw(self), param0).ok() @@ -948,13 +883,6 @@ impl IDirectInputDevice2W { (::windows_core::Interface::vtable(self).SendDeviceData)(::windows_core::Interface::as_raw(self), param0, param1, param2, param3).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectInputDevice2W, ::windows_core::IUnknown, IDirectInputDeviceW); -unsafe impl ::windows_core::Interface for IDirectInputDevice2W { - type Vtable = IDirectInputDevice2W_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectInputDevice2W { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5944e683_c92e_11cf_bfc7_444553540000); -} #[repr(C)] #[doc(hidden)] pub struct IDirectInputDevice2W_Vtbl { @@ -969,9 +897,8 @@ pub struct IDirectInputDevice2W_Vtbl { pub Poll: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SendDeviceData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: u32, param1: *mut DIDEVICEOBJECTDATA, param2: *mut u32, param3: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectInputDevice7A(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectInputDevice7A, IDirectInputDevice7A_Vtbl, 0x57d7c6bc_2356_11d3_8e9d_00c04f6844ae); +::windows_core::imp::interface_hierarchy!(IDirectInputDevice7A, ::windows_core::IUnknown, IDirectInputDeviceA, IDirectInputDevice2A); impl IDirectInputDevice7A { pub unsafe fn GetCapabilities(&self, param0: *mut DIDEVCAPS) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.GetCapabilities)(::windows_core::Interface::as_raw(self), param0).ok() @@ -1073,13 +1000,6 @@ impl IDirectInputDevice7A { (::windows_core::Interface::vtable(self).WriteEffectToFile)(::windows_core::Interface::as_raw(self), param0.into_param().abi(), param1, param2, param3).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectInputDevice7A, ::windows_core::IUnknown, IDirectInputDeviceA, IDirectInputDevice2A); -unsafe impl ::windows_core::Interface for IDirectInputDevice7A { - type Vtable = IDirectInputDevice7A_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectInputDevice7A { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x57d7c6bc_2356_11d3_8e9d_00c04f6844ae); -} #[repr(C)] #[doc(hidden)] pub struct IDirectInputDevice7A_Vtbl { @@ -1087,9 +1007,8 @@ pub struct IDirectInputDevice7A_Vtbl { pub EnumEffectsInFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: ::windows_core::PCSTR, param1: LPDIENUMEFFECTSINFILECALLBACK, param2: *mut ::core::ffi::c_void, param3: u32) -> ::windows_core::HRESULT, pub WriteEffectToFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: ::windows_core::PCSTR, param1: u32, param2: *mut DIFILEEFFECT, param3: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectInputDevice7W(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectInputDevice7W, IDirectInputDevice7W_Vtbl, 0x57d7c6bd_2356_11d3_8e9d_00c04f6844ae); +::windows_core::imp::interface_hierarchy!(IDirectInputDevice7W, ::windows_core::IUnknown, IDirectInputDeviceW, IDirectInputDevice2W); impl IDirectInputDevice7W { pub unsafe fn GetCapabilities(&self, param0: *mut DIDEVCAPS) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.GetCapabilities)(::windows_core::Interface::as_raw(self), param0).ok() @@ -1191,13 +1110,6 @@ impl IDirectInputDevice7W { (::windows_core::Interface::vtable(self).WriteEffectToFile)(::windows_core::Interface::as_raw(self), param0.into_param().abi(), param1, param2, param3).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectInputDevice7W, ::windows_core::IUnknown, IDirectInputDeviceW, IDirectInputDevice2W); -unsafe impl ::windows_core::Interface for IDirectInputDevice7W { - type Vtable = IDirectInputDevice7W_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectInputDevice7W { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x57d7c6bd_2356_11d3_8e9d_00c04f6844ae); -} #[repr(C)] #[doc(hidden)] pub struct IDirectInputDevice7W_Vtbl { @@ -1205,9 +1117,8 @@ pub struct IDirectInputDevice7W_Vtbl { pub EnumEffectsInFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: ::windows_core::PCWSTR, param1: LPDIENUMEFFECTSINFILECALLBACK, param2: *mut ::core::ffi::c_void, param3: u32) -> ::windows_core::HRESULT, pub WriteEffectToFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: ::windows_core::PCWSTR, param1: u32, param2: *mut DIFILEEFFECT, param3: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectInputDevice8A(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectInputDevice8A, IDirectInputDevice8A_Vtbl, 0x54d41080_dc15_4833_a41b_748f73a38179); +::windows_core::imp::interface_hierarchy!(IDirectInputDevice8A, ::windows_core::IUnknown); impl IDirectInputDevice8A { pub unsafe fn GetCapabilities(&self, param0: *mut DIDEVCAPS) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetCapabilities)(::windows_core::Interface::as_raw(self), param0).ok() @@ -1324,13 +1235,6 @@ impl IDirectInputDevice8A { (::windows_core::Interface::vtable(self).GetImageInfo)(::windows_core::Interface::as_raw(self), param0).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectInputDevice8A, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectInputDevice8A { - type Vtable = IDirectInputDevice8A_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectInputDevice8A { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x54d41080_dc15_4833_a41b_748f73a38179); -} #[repr(C)] #[doc(hidden)] pub struct IDirectInputDevice8A_Vtbl { @@ -1365,9 +1269,8 @@ pub struct IDirectInputDevice8A_Vtbl { pub SetActionMap: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: *mut DIACTIONFORMATA, param1: ::windows_core::PCSTR, param2: u32) -> ::windows_core::HRESULT, pub GetImageInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: *mut DIDEVICEIMAGEINFOHEADERA) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectInputDevice8W(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectInputDevice8W, IDirectInputDevice8W_Vtbl, 0x54d41081_dc15_4833_a41b_748f73a38179); +::windows_core::imp::interface_hierarchy!(IDirectInputDevice8W, ::windows_core::IUnknown); impl IDirectInputDevice8W { pub unsafe fn GetCapabilities(&self, param0: *mut DIDEVCAPS) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetCapabilities)(::windows_core::Interface::as_raw(self), param0).ok() @@ -1484,13 +1387,6 @@ impl IDirectInputDevice8W { (::windows_core::Interface::vtable(self).GetImageInfo)(::windows_core::Interface::as_raw(self), param0).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectInputDevice8W, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectInputDevice8W { - type Vtable = IDirectInputDevice8W_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectInputDevice8W { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x54d41081_dc15_4833_a41b_748f73a38179); -} #[repr(C)] #[doc(hidden)] pub struct IDirectInputDevice8W_Vtbl { @@ -1525,9 +1421,8 @@ pub struct IDirectInputDevice8W_Vtbl { pub SetActionMap: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: *mut DIACTIONFORMATW, param1: ::windows_core::PCWSTR, param2: u32) -> ::windows_core::HRESULT, pub GetImageInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: *mut DIDEVICEIMAGEINFOHEADERW) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectInputDeviceA(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectInputDeviceA, IDirectInputDeviceA_Vtbl, 0x5944e680_c92e_11cf_bfc7_444553540000); +::windows_core::imp::interface_hierarchy!(IDirectInputDeviceA, ::windows_core::IUnknown); impl IDirectInputDeviceA { pub unsafe fn GetCapabilities(&self, param0: *mut DIDEVCAPS) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetCapabilities)(::windows_core::Interface::as_raw(self), param0).ok() @@ -1587,13 +1482,6 @@ impl IDirectInputDeviceA { (::windows_core::Interface::vtable(self).Initialize)(::windows_core::Interface::as_raw(self), param0.into_param().abi(), param1, param2).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectInputDeviceA, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectInputDeviceA { - type Vtable = IDirectInputDeviceA_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectInputDeviceA { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5944e680_c92e_11cf_bfc7_444553540000); -} #[repr(C)] #[doc(hidden)] pub struct IDirectInputDeviceA_Vtbl { @@ -1614,9 +1502,8 @@ pub struct IDirectInputDeviceA_Vtbl { pub RunControlPanel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: super::super::Foundation::HWND, param1: u32) -> ::windows_core::HRESULT, pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: super::super::Foundation::HINSTANCE, param1: u32, param2: *const ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectInputDeviceW(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectInputDeviceW, IDirectInputDeviceW_Vtbl, 0x5944e681_c92e_11cf_bfc7_444553540000); +::windows_core::imp::interface_hierarchy!(IDirectInputDeviceW, ::windows_core::IUnknown); impl IDirectInputDeviceW { pub unsafe fn GetCapabilities(&self, param0: *mut DIDEVCAPS) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetCapabilities)(::windows_core::Interface::as_raw(self), param0).ok() @@ -1676,13 +1563,6 @@ impl IDirectInputDeviceW { (::windows_core::Interface::vtable(self).Initialize)(::windows_core::Interface::as_raw(self), param0.into_param().abi(), param1, param2).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectInputDeviceW, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectInputDeviceW { - type Vtable = IDirectInputDeviceW_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectInputDeviceW { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5944e681_c92e_11cf_bfc7_444553540000); -} #[repr(C)] #[doc(hidden)] pub struct IDirectInputDeviceW_Vtbl { @@ -1703,9 +1583,8 @@ pub struct IDirectInputDeviceW_Vtbl { pub RunControlPanel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: super::super::Foundation::HWND, param1: u32) -> ::windows_core::HRESULT, pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: super::super::Foundation::HINSTANCE, param1: u32, param2: *const ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectInputEffect(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectInputEffect, IDirectInputEffect_Vtbl, 0xe7e1f7c0_88d2_11d0_9ad0_00a0c9a06e35); +::windows_core::imp::interface_hierarchy!(IDirectInputEffect, ::windows_core::IUnknown); impl IDirectInputEffect { pub unsafe fn Initialize(&self, param0: P0, param1: u32, param2: *const ::windows_core::GUID) -> ::windows_core::Result<()> where @@ -1741,13 +1620,6 @@ impl IDirectInputEffect { (::windows_core::Interface::vtable(self).Escape)(::windows_core::Interface::as_raw(self), param0).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectInputEffect, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectInputEffect { - type Vtable = IDirectInputEffect_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectInputEffect { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe7e1f7c0_88d2_11d0_9ad0_00a0c9a06e35); -} #[repr(C)] #[doc(hidden)] pub struct IDirectInputEffect_Vtbl { @@ -1763,9 +1635,8 @@ pub struct IDirectInputEffect_Vtbl { pub Unload: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Escape: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: *mut DIEFFESCAPE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectInputEffectDriver(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectInputEffectDriver, IDirectInputEffectDriver_Vtbl, 0x02538130_898f_11d0_9ad0_00a0c9a06e35); +::windows_core::imp::interface_hierarchy!(IDirectInputEffectDriver, ::windows_core::IUnknown); impl IDirectInputEffectDriver { pub unsafe fn DeviceID(&self, param0: u32, param1: u32, param2: u32, param3: u32, param4: *mut ::core::ffi::c_void) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).DeviceID)(::windows_core::Interface::as_raw(self), param0, param1, param2, param3, param4).ok() @@ -1801,13 +1672,6 @@ impl IDirectInputEffectDriver { (::windows_core::Interface::vtable(self).GetEffectStatus)(::windows_core::Interface::as_raw(self), param0, param1, param2).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectInputEffectDriver, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectInputEffectDriver { - type Vtable = IDirectInputEffectDriver_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectInputEffectDriver { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x02538130_898f_11d0_9ad0_00a0c9a06e35); -} #[repr(C)] #[doc(hidden)] pub struct IDirectInputEffectDriver_Vtbl { @@ -1824,9 +1688,8 @@ pub struct IDirectInputEffectDriver_Vtbl { pub StopEffect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: u32, param1: u32) -> ::windows_core::HRESULT, pub GetEffectStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: u32, param1: u32, param2: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectInputJoyConfig(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectInputJoyConfig, IDirectInputJoyConfig_Vtbl, 0x1de12ab1_c9f5_11cf_bfc7_444553540000); +::windows_core::imp::interface_hierarchy!(IDirectInputJoyConfig, ::windows_core::IUnknown); impl IDirectInputJoyConfig { pub unsafe fn Acquire(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Acquire)(::windows_core::Interface::as_raw(self)).ok() @@ -1899,13 +1762,6 @@ impl IDirectInputJoyConfig { (::windows_core::Interface::vtable(self).OpenConfigKey)(::windows_core::Interface::as_raw(self), param0, param1, param2).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectInputJoyConfig, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectInputJoyConfig { - type Vtable = IDirectInputJoyConfig_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectInputJoyConfig { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1de12ab1_c9f5_11cf_bfc7_444553540000); -} #[repr(C)] #[doc(hidden)] pub struct IDirectInputJoyConfig_Vtbl { @@ -1933,9 +1789,8 @@ pub struct IDirectInputJoyConfig_Vtbl { #[cfg(not(feature = "Win32_System_Registry"))] OpenConfigKey: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectInputJoyConfig8(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectInputJoyConfig8, IDirectInputJoyConfig8_Vtbl, 0xeb0d7dfa_1990_4f27_b4d6_edf2eec4a44c); +::windows_core::imp::interface_hierarchy!(IDirectInputJoyConfig8, ::windows_core::IUnknown); impl IDirectInputJoyConfig8 { pub unsafe fn Acquire(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Acquire)(::windows_core::Interface::as_raw(self)).ok() @@ -2009,13 +1864,6 @@ impl IDirectInputJoyConfig8 { (::windows_core::Interface::vtable(self).OpenAppStatusKey)(::windows_core::Interface::as_raw(self), param0).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectInputJoyConfig8, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectInputJoyConfig8 { - type Vtable = IDirectInputJoyConfig8_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectInputJoyConfig8 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeb0d7dfa_1990_4f27_b4d6_edf2eec4a44c); -} #[repr(C)] #[doc(hidden)] pub struct IDirectInputJoyConfig8_Vtbl { @@ -2043,9 +1891,8 @@ pub struct IDirectInputJoyConfig8_Vtbl { #[cfg(not(feature = "Win32_System_Registry"))] OpenAppStatusKey: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectInputW(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectInputW, IDirectInputW_Vtbl, 0x89521361_aa8a_11cf_bfc7_444553540000); +::windows_core::imp::interface_hierarchy!(IDirectInputW, ::windows_core::IUnknown); impl IDirectInputW { pub unsafe fn CreateDevice(&self, param0: *const ::windows_core::GUID, param1: *mut ::core::option::Option, param2: P0) -> ::windows_core::Result<()> where @@ -2072,13 +1919,6 @@ impl IDirectInputW { (::windows_core::Interface::vtable(self).Initialize)(::windows_core::Interface::as_raw(self), param0.into_param().abi(), param1).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectInputW, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectInputW { - type Vtable = IDirectInputW_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectInputW { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x89521361_aa8a_11cf_bfc7_444553540000); -} #[repr(C)] #[doc(hidden)] pub struct IDirectInputW_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Devices/ImageAcquisition/impl.rs b/crates/libs/windows/src/Windows/Win32/Devices/ImageAcquisition/impl.rs index 945fd0054b..6acdd39e82 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/ImageAcquisition/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/ImageAcquisition/impl.rs @@ -55,7 +55,7 @@ impl IEnumWIA_DEV_CAPS_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumWIA_DEV_INFO_Impl: Sized { @@ -115,7 +115,7 @@ impl IEnumWIA_DEV_INFO_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumWIA_FORMAT_INFO_Impl: Sized { @@ -175,7 +175,7 @@ impl IEnumWIA_FORMAT_INFO_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumWiaItem_Impl: Sized { @@ -235,7 +235,7 @@ impl IEnumWiaItem_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumWiaItem2_Impl: Sized { @@ -295,7 +295,7 @@ impl IEnumWiaItem2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWiaAppErrorHandler_Impl: Sized { @@ -328,7 +328,7 @@ impl IWiaAppErrorHandler_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWiaDataCallback_Impl: Sized { @@ -345,7 +345,7 @@ impl IWiaDataCallback_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), BandedDataCallback: BandedDataCallback:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_System_Com_StructuredStorage\"`"] @@ -403,7 +403,7 @@ impl IWiaDataTransfer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWiaDevMgr_Impl: Sized { @@ -497,7 +497,7 @@ impl IWiaDevMgr_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWiaDevMgr2_Impl: Sized { @@ -584,7 +584,7 @@ impl IWiaDevMgr2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWiaDrvItem_Impl: Sized { @@ -748,7 +748,7 @@ impl IWiaDrvItem_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWiaErrorHandler_Impl: Sized { @@ -781,7 +781,7 @@ impl IWiaErrorHandler_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWiaEventCallback_Impl: Sized { @@ -798,7 +798,7 @@ impl IWiaEventCallback_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), ImageEventCallback: ImageEventCallback:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -843,7 +843,7 @@ impl IWiaImageFilter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWiaItem_Impl: Sized { @@ -1021,7 +1021,7 @@ impl IWiaItem_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWiaItem2_Impl: Sized { @@ -1206,7 +1206,7 @@ impl IWiaItem2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWiaItemExtras_Impl: Sized { @@ -1246,7 +1246,7 @@ impl IWiaItemExtras_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWiaLog_Impl: Sized { @@ -1280,7 +1280,7 @@ impl IWiaLog_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWiaLogEx_Impl: Sized { @@ -1328,7 +1328,7 @@ impl IWiaLogEx_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`"] @@ -1523,7 +1523,7 @@ impl IWiaMiniDrv_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWiaMiniDrvCallBack_Impl: Sized { @@ -1540,7 +1540,7 @@ impl IWiaMiniDrvCallBack_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), MiniDrvCallback: MiniDrvCallback:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1577,7 +1577,7 @@ impl IWiaMiniDrvTransferCallback_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWiaNotifyDevMgr_Impl: Sized { @@ -1594,7 +1594,7 @@ impl IWiaNotifyDevMgr_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), NewDeviceArrival: NewDeviceArrival:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWiaPreview_Impl: Sized { @@ -1635,7 +1635,7 @@ impl IWiaPreview_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] @@ -1776,7 +1776,7 @@ impl IWiaPropertyStorage_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1797,7 +1797,7 @@ impl IWiaSegmentationFilter_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), DetectRegions: DetectRegions:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1848,7 +1848,7 @@ impl IWiaTransfer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1885,7 +1885,7 @@ impl IWiaTransferCallback_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_UI_WindowsAndMessaging\"`"] @@ -1923,7 +1923,7 @@ impl IWiaUIExtension_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_WindowsAndMessaging\"`"] @@ -1954,7 +1954,7 @@ impl IWiaUIExtension2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWiaVideo_Impl: Sized { @@ -2082,6 +2082,6 @@ impl IWiaVideo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 1a00b0b798..97d039ef17 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/ImageAcquisition/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/ImageAcquisition/mod.rs @@ -1,6 +1,5 @@ -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumWIA_DEV_CAPS(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumWIA_DEV_CAPS, IEnumWIA_DEV_CAPS_Vtbl, 0x1fcc4287_aca6_11d2_a093_00c04f72dc3c); +::windows_core::imp::interface_hierarchy!(IEnumWIA_DEV_CAPS, ::windows_core::IUnknown); impl IEnumWIA_DEV_CAPS { pub unsafe fn Next(&self, celt: u32, rgelt: *mut WIA_DEV_CAP, pceltfetched: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), celt, rgelt, pceltfetched).ok() @@ -20,13 +19,6 @@ impl IEnumWIA_DEV_CAPS { (::windows_core::Interface::vtable(self).GetCount)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumWIA_DEV_CAPS, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumWIA_DEV_CAPS { - type Vtable = IEnumWIA_DEV_CAPS_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumWIA_DEV_CAPS { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1fcc4287_aca6_11d2_a093_00c04f72dc3c); -} #[repr(C)] #[doc(hidden)] pub struct IEnumWIA_DEV_CAPS_Vtbl { @@ -37,9 +29,8 @@ pub struct IEnumWIA_DEV_CAPS_Vtbl { pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppienum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcelt: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumWIA_DEV_INFO(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumWIA_DEV_INFO, IEnumWIA_DEV_INFO_Vtbl, 0x5e38b83c_8cf1_11d1_bf92_0060081ed811); +::windows_core::imp::interface_hierarchy!(IEnumWIA_DEV_INFO, ::windows_core::IUnknown); impl IEnumWIA_DEV_INFO { pub unsafe fn Next(&self, celt: u32, rgelt: *mut ::core::option::Option, pceltfetched: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), celt, ::core::mem::transmute(rgelt), pceltfetched).ok() @@ -59,13 +50,6 @@ impl IEnumWIA_DEV_INFO { (::windows_core::Interface::vtable(self).GetCount)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumWIA_DEV_INFO, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumWIA_DEV_INFO { - type Vtable = IEnumWIA_DEV_INFO_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumWIA_DEV_INFO { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5e38b83c_8cf1_11d1_bf92_0060081ed811); -} #[repr(C)] #[doc(hidden)] pub struct IEnumWIA_DEV_INFO_Vtbl { @@ -76,9 +60,8 @@ pub struct IEnumWIA_DEV_INFO_Vtbl { pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppienum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, celt: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumWIA_FORMAT_INFO(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumWIA_FORMAT_INFO, IEnumWIA_FORMAT_INFO_Vtbl, 0x81befc5b_656d_44f1_b24c_d41d51b4dc81); +::windows_core::imp::interface_hierarchy!(IEnumWIA_FORMAT_INFO, ::windows_core::IUnknown); impl IEnumWIA_FORMAT_INFO { pub unsafe fn Next(&self, celt: u32, rgelt: *mut WIA_FORMAT_INFO, pceltfetched: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), celt, rgelt, pceltfetched).ok() @@ -98,13 +81,6 @@ impl IEnumWIA_FORMAT_INFO { (::windows_core::Interface::vtable(self).GetCount)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumWIA_FORMAT_INFO, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumWIA_FORMAT_INFO { - type Vtable = IEnumWIA_FORMAT_INFO_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumWIA_FORMAT_INFO { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x81befc5b_656d_44f1_b24c_d41d51b4dc81); -} #[repr(C)] #[doc(hidden)] pub struct IEnumWIA_FORMAT_INFO_Vtbl { @@ -115,9 +91,8 @@ pub struct IEnumWIA_FORMAT_INFO_Vtbl { pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppienum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcelt: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumWiaItem(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumWiaItem, IEnumWiaItem_Vtbl, 0x5e8383fc_3391_11d2_9a33_00c04fa36145); +::windows_core::imp::interface_hierarchy!(IEnumWiaItem, ::windows_core::IUnknown); impl IEnumWiaItem { pub unsafe fn Next(&self, celt: u32, ppiwiaitem: *mut ::core::option::Option, pceltfetched: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), celt, ::core::mem::transmute(ppiwiaitem), pceltfetched).ok() @@ -137,13 +112,6 @@ impl IEnumWiaItem { (::windows_core::Interface::vtable(self).GetCount)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumWiaItem, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumWiaItem { - type Vtable = IEnumWiaItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumWiaItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5e8383fc_3391_11d2_9a33_00c04fa36145); -} #[repr(C)] #[doc(hidden)] pub struct IEnumWiaItem_Vtbl { @@ -154,9 +122,8 @@ pub struct IEnumWiaItem_Vtbl { pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppienum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, celt: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumWiaItem2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumWiaItem2, IEnumWiaItem2_Vtbl, 0x59970af4_cd0d_44d9_ab24_52295630e582); +::windows_core::imp::interface_hierarchy!(IEnumWiaItem2, ::windows_core::IUnknown); impl IEnumWiaItem2 { pub unsafe fn Next(&self, celt: u32, ppiwiaitem2: *mut ::core::option::Option, pceltfetched: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), celt, ::core::mem::transmute(ppiwiaitem2), pceltfetched).ok() @@ -176,13 +143,6 @@ impl IEnumWiaItem2 { (::windows_core::Interface::vtable(self).GetCount)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumWiaItem2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumWiaItem2 { - type Vtable = IEnumWiaItem2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumWiaItem2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x59970af4_cd0d_44d9_ab24_52295630e582); -} #[repr(C)] #[doc(hidden)] pub struct IEnumWiaItem2_Vtbl { @@ -193,9 +153,8 @@ pub struct IEnumWiaItem2_Vtbl { pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppienum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, celt: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWiaAppErrorHandler(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWiaAppErrorHandler, IWiaAppErrorHandler_Vtbl, 0x6c16186c_d0a6_400c_80f4_d26986a0e734); +::windows_core::imp::interface_hierarchy!(IWiaAppErrorHandler, ::windows_core::IUnknown); impl IWiaAppErrorHandler { pub unsafe fn GetWindow(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -208,13 +167,6 @@ impl IWiaAppErrorHandler { (::windows_core::Interface::vtable(self).ReportStatus)(::windows_core::Interface::as_raw(self), lflags, pwiaitem2.into_param().abi(), hrstatus, lpercentcomplete).ok() } } -::windows_core::imp::interface_hierarchy!(IWiaAppErrorHandler, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWiaAppErrorHandler { - type Vtable = IWiaAppErrorHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWiaAppErrorHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6c16186c_d0a6_400c_80f4_d26986a0e734); -} #[repr(C)] #[doc(hidden)] pub struct IWiaAppErrorHandler_Vtbl { @@ -222,30 +174,21 @@ pub struct IWiaAppErrorHandler_Vtbl { pub GetWindow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phwnd: *mut super::super::Foundation::HWND) -> ::windows_core::HRESULT, pub ReportStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, pwiaitem2: *mut ::core::ffi::c_void, hrstatus: ::windows_core::HRESULT, lpercentcomplete: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWiaDataCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWiaDataCallback, IWiaDataCallback_Vtbl, 0xa558a866_a5b0_11d2_a08f_00c04f72dc3c); +::windows_core::imp::interface_hierarchy!(IWiaDataCallback, ::windows_core::IUnknown); impl IWiaDataCallback { pub unsafe fn BandedDataCallback(&self, lmessage: i32, lstatus: i32, lpercentcomplete: i32, loffset: i32, llength: i32, lreserved: i32, lreslength: i32, pbbuffer: *mut u8) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).BandedDataCallback)(::windows_core::Interface::as_raw(self), lmessage, lstatus, lpercentcomplete, loffset, llength, lreserved, lreslength, pbbuffer).ok() } } -::windows_core::imp::interface_hierarchy!(IWiaDataCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWiaDataCallback { - type Vtable = IWiaDataCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWiaDataCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa558a866_a5b0_11d2_a08f_00c04f72dc3c); -} #[repr(C)] #[doc(hidden)] pub struct IWiaDataCallback_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub BandedDataCallback: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lmessage: i32, lstatus: i32, lpercentcomplete: i32, loffset: i32, llength: i32, lreserved: i32, lreslength: i32, pbbuffer: *mut u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWiaDataTransfer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWiaDataTransfer, IWiaDataTransfer_Vtbl, 0xa6cef998_a5b0_11d2_a08f_00c04f72dc3c); +::windows_core::imp::interface_hierarchy!(IWiaDataTransfer, ::windows_core::IUnknown); impl IWiaDataTransfer { #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_System_Com_StructuredStorage\"`"] #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com_StructuredStorage"))] @@ -272,13 +215,6 @@ impl IWiaDataTransfer { (::windows_core::Interface::vtable(self).idtGetExtendedTransferInfo)(::windows_core::Interface::as_raw(self), pextendedtransferinfo).ok() } } -::windows_core::imp::interface_hierarchy!(IWiaDataTransfer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWiaDataTransfer { - type Vtable = IWiaDataTransfer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWiaDataTransfer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa6cef998_a5b0_11d2_a08f_00c04f72dc3c); -} #[repr(C)] #[doc(hidden)] pub struct IWiaDataTransfer_Vtbl { @@ -292,9 +228,8 @@ pub struct IWiaDataTransfer_Vtbl { pub idtEnumWIA_FORMAT_INFO: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub idtGetExtendedTransferInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pextendedtransferinfo: *mut WIA_EXTENDED_TRANSFER_INFO) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWiaDevMgr(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWiaDevMgr, IWiaDevMgr_Vtbl, 0x5eb2502a_8cf1_11d1_bf92_0060081ed811); +::windows_core::imp::interface_hierarchy!(IWiaDevMgr, ::windows_core::IUnknown); impl IWiaDevMgr { pub unsafe fn EnumDeviceInfo(&self, lflag: i32) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -361,13 +296,6 @@ impl IWiaDevMgr { (::windows_core::Interface::vtable(self).AddDeviceDlg)(::windows_core::Interface::as_raw(self), hwndparent.into_param().abi(), lflags).ok() } } -::windows_core::imp::interface_hierarchy!(IWiaDevMgr, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWiaDevMgr { - type Vtable = IWiaDevMgr_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWiaDevMgr { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5eb2502a_8cf1_11d1_bf92_0060081ed811); -} #[repr(C)] #[doc(hidden)] pub struct IWiaDevMgr_Vtbl { @@ -382,9 +310,8 @@ pub struct IWiaDevMgr_Vtbl { pub RegisterEventCallbackCLSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, bstrdeviceid: ::std::mem::MaybeUninit<::windows_core::BSTR>, peventguid: *const ::windows_core::GUID, pclsid: *const ::windows_core::GUID, bstrname: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstrdescription: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstricon: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub AddDeviceDlg: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwndparent: super::super::Foundation::HWND, lflags: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWiaDevMgr2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWiaDevMgr2, IWiaDevMgr2_Vtbl, 0x79c07cf1_cbdd_41ee_8ec3_f00080cada7a); +::windows_core::imp::interface_hierarchy!(IWiaDevMgr2, ::windows_core::IUnknown); impl IWiaDevMgr2 { pub unsafe fn EnumDeviceInfo(&self, lflags: i32) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -447,13 +374,6 @@ impl IWiaDevMgr2 { (::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::imp::interface_hierarchy!(IWiaDevMgr2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWiaDevMgr2 { - type Vtable = IWiaDevMgr2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWiaDevMgr2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x79c07cf1_cbdd_41ee_8ec3_f00080cada7a); -} #[repr(C)] #[doc(hidden)] pub struct IWiaDevMgr2_Vtbl { @@ -467,9 +387,8 @@ pub struct IWiaDevMgr2_Vtbl { pub RegisterEventCallbackCLSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, bstrdeviceid: ::std::mem::MaybeUninit<::windows_core::BSTR>, peventguid: *const ::windows_core::GUID, pclsid: *const ::windows_core::GUID, bstrname: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstrdescription: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstricon: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub GetImageDlg: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, bstrdeviceid: ::std::mem::MaybeUninit<::windows_core::BSTR>, hwndparent: super::super::Foundation::HWND, bstrfoldername: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstrfilename: ::std::mem::MaybeUninit<::windows_core::BSTR>, plnumfiles: *mut i32, ppbstrfilepaths: *mut *mut ::windows_core::BSTR, ppitem: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWiaDrvItem(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWiaDrvItem, IWiaDrvItem_Vtbl, 0x1f02b5c5_b00c_11d2_a094_00c04f72dc3c); +::windows_core::imp::interface_hierarchy!(IWiaDrvItem, ::windows_core::IUnknown); impl IWiaDrvItem { pub unsafe fn GetItemFlags(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -530,13 +449,6 @@ impl IWiaDrvItem { (::windows_core::Interface::vtable(self).DumpItemData)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWiaDrvItem, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWiaDrvItem { - type Vtable = IWiaDrvItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWiaDrvItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1f02b5c5_b00c_11d2_a094_00c04f72dc3c); -} #[repr(C)] #[doc(hidden)] pub struct IWiaDrvItem_Vtbl { @@ -555,9 +467,8 @@ pub struct IWiaDrvItem_Vtbl { pub GetNextSiblingItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, __midl__iwiadrvitem0014: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub DumpItemData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, __midl__iwiadrvitem0015: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWiaErrorHandler(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWiaErrorHandler, IWiaErrorHandler_Vtbl, 0x0e4a51b1_bc1f_443d_a835_72e890759ef3); +::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 @@ -574,13 +485,6 @@ impl IWiaErrorHandler { (::windows_core::Interface::vtable(self).GetStatusDescription)(::windows_core::Interface::as_raw(self), lflags, pwiaitem2.into_param().abi(), hrstatus, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWiaErrorHandler, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWiaErrorHandler { - type Vtable = IWiaErrorHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWiaErrorHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0e4a51b1_bc1f_443d_a835_72e890759ef3); -} #[repr(C)] #[doc(hidden)] pub struct IWiaErrorHandler_Vtbl { @@ -588,9 +492,8 @@ pub struct IWiaErrorHandler_Vtbl { pub ReportStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, hwndparent: super::super::Foundation::HWND, pwiaitem2: *mut ::core::ffi::c_void, hrstatus: ::windows_core::HRESULT, lpercentcomplete: i32) -> ::windows_core::HRESULT, pub GetStatusDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, pwiaitem2: *mut ::core::ffi::c_void, hrstatus: ::windows_core::HRESULT, pbstrdescription: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWiaEventCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWiaEventCallback, IWiaEventCallback_Vtbl, 0xae6287b0_0084_11d2_973b_00a0c9068f2e); +::windows_core::imp::interface_hierarchy!(IWiaEventCallback, ::windows_core::IUnknown); 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 @@ -602,22 +505,14 @@ impl IWiaEventCallback { (::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::imp::interface_hierarchy!(IWiaEventCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWiaEventCallback { - type Vtable = IWiaEventCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWiaEventCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xae6287b0_0084_11d2_973b_00a0c9068f2e); -} #[repr(C)] #[doc(hidden)] pub struct IWiaEventCallback_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub ImageEventCallback: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, peventguid: *const ::windows_core::GUID, bstreventdescription: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstrdeviceid: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstrdevicedescription: ::std::mem::MaybeUninit<::windows_core::BSTR>, dwdevicetype: u32, bstrfullitemname: ::std::mem::MaybeUninit<::windows_core::BSTR>, puleventtype: *mut u32, ulreserved: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWiaImageFilter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWiaImageFilter, IWiaImageFilter_Vtbl, 0xa8a79ffa_450b_41f1_8f87_849ccd94ebf6); +::windows_core::imp::interface_hierarchy!(IWiaImageFilter, ::windows_core::IUnknown); impl IWiaImageFilter { pub unsafe fn InitializeFilter(&self, pwiaitem2: P0, pwiatransfercallback: P1) -> ::windows_core::Result<()> where @@ -648,13 +543,6 @@ impl IWiaImageFilter { (::windows_core::Interface::vtable(self).ApplyProperties)(::windows_core::Interface::as_raw(self), pwiapropertystorage.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IWiaImageFilter, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWiaImageFilter { - type Vtable = IWiaImageFilter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWiaImageFilter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa8a79ffa_450b_41f1_8f87_849ccd94ebf6); -} #[repr(C)] #[doc(hidden)] pub struct IWiaImageFilter_Vtbl { @@ -667,9 +555,8 @@ pub struct IWiaImageFilter_Vtbl { FilterPreviewImage: usize, pub ApplyProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwiapropertystorage: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWiaItem(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWiaItem, IWiaItem_Vtbl, 0x4db1ad10_3391_11d2_9a33_00c04fa36145); +::windows_core::imp::interface_hierarchy!(IWiaItem, ::windows_core::IUnknown); impl IWiaItem { pub unsafe fn GetItemType(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -737,13 +624,6 @@ impl IWiaItem { (::windows_core::Interface::vtable(self).Diagnostic)(::windows_core::Interface::as_raw(self), pbuffer.len().try_into().unwrap(), ::core::mem::transmute(pbuffer.as_ptr())).ok() } } -::windows_core::imp::interface_hierarchy!(IWiaItem, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWiaItem { - type Vtable = IWiaItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWiaItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4db1ad10_3391_11d2_9a33_00c04fa36145); -} #[repr(C)] #[doc(hidden)] pub struct IWiaItem_Vtbl { @@ -764,9 +644,8 @@ pub struct IWiaItem_Vtbl { pub DumpTreeItemData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdata: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub Diagnostic: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulsize: u32, pbuffer: *const u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWiaItem2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWiaItem2, IWiaItem2_Vtbl, 0x6cba0075_1287_407d_9b77_cf0e030435cc); +::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 @@ -844,13 +723,6 @@ impl IWiaItem2 { (::windows_core::Interface::vtable(self).Diagnostic)(::windows_core::Interface::as_raw(self), pbuffer.len().try_into().unwrap(), ::core::mem::transmute(pbuffer.as_ptr())).ok() } } -::windows_core::imp::interface_hierarchy!(IWiaItem2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWiaItem2 { - type Vtable = IWiaItem2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWiaItem2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6cba0075_1287_407d_9b77_cf0e030435cc); -} #[repr(C)] #[doc(hidden)] pub struct IWiaItem2_Vtbl { @@ -872,9 +744,8 @@ pub struct IWiaItem2_Vtbl { pub EnumRegisterEventInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, peventguid: *const ::windows_core::GUID, ppienum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Diagnostic: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulsize: u32, pbuffer: *const u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWiaItemExtras(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWiaItemExtras, IWiaItemExtras_Vtbl, 0x6291ef2c_36ef_4532_876a_8e132593778d); +::windows_core::imp::interface_hierarchy!(IWiaItemExtras, ::windows_core::IUnknown); impl IWiaItemExtras { pub unsafe fn GetExtendedErrorInfo(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -887,13 +758,6 @@ impl IWiaItemExtras { (::windows_core::Interface::vtable(self).CancelPendingIO)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IWiaItemExtras, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWiaItemExtras { - type Vtable = IWiaItemExtras_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWiaItemExtras { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6291ef2c_36ef_4532_876a_8e132593778d); -} #[repr(C)] #[doc(hidden)] pub struct IWiaItemExtras_Vtbl { @@ -902,9 +766,8 @@ pub struct IWiaItemExtras_Vtbl { pub Escape: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwescapecode: u32, lpindata: *const u8, cbindatasize: u32, poutdata: *mut u8, dwoutdatasize: u32, pdwactualdatasize: *mut u32) -> ::windows_core::HRESULT, pub CancelPendingIO: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWiaLog(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWiaLog, IWiaLog_Vtbl, 0xa00c10b6_82a1_452f_8b6c_86062aad6890); +::windows_core::imp::interface_hierarchy!(IWiaLog, ::windows_core::IUnknown); impl IWiaLog { pub unsafe fn InitializeLog(&self, hinstance: i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).InitializeLog)(::windows_core::Interface::as_raw(self), hinstance).ok() @@ -919,13 +782,6 @@ impl IWiaLog { (::windows_core::Interface::vtable(self).Log)(::windows_core::Interface::as_raw(self), lflags, lresid, ldetail, bstrtext.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IWiaLog, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWiaLog { - type Vtable = IWiaLog_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWiaLog { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa00c10b6_82a1_452f_8b6c_86062aad6890); -} #[repr(C)] #[doc(hidden)] pub struct IWiaLog_Vtbl { @@ -934,9 +790,8 @@ pub struct IWiaLog_Vtbl { pub hResult: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hresult: ::windows_core::HRESULT) -> ::windows_core::HRESULT, pub Log: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, lresid: i32, ldetail: i32, bstrtext: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWiaLogEx(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWiaLogEx, IWiaLogEx_Vtbl, 0xaf1f22ac_7a40_4787_b421_aeb47a1fbd0b); +::windows_core::imp::interface_hierarchy!(IWiaLogEx, ::windows_core::IUnknown); impl IWiaLogEx { pub unsafe fn InitializeLogEx(&self, hinstance: *const u8) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).InitializeLogEx)(::windows_core::Interface::as_raw(self), hinstance).ok() @@ -960,13 +815,6 @@ impl IWiaLogEx { (::windows_core::Interface::vtable(self).LogEx)(::windows_core::Interface::as_raw(self), lmethodid, lflags, lresid, ldetail, bstrtext.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IWiaLogEx, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWiaLogEx { - type Vtable = IWiaLogEx_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWiaLogEx { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaf1f22ac_7a40_4787_b421_aeb47a1fbd0b); -} #[repr(C)] #[doc(hidden)] pub struct IWiaLogEx_Vtbl { @@ -977,9 +825,8 @@ pub struct IWiaLogEx_Vtbl { pub hResultEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lmethodid: i32, hresult: ::windows_core::HRESULT) -> ::windows_core::HRESULT, pub LogEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lmethodid: i32, lflags: i32, lresid: i32, ldetail: i32, bstrtext: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWiaMiniDrv(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWiaMiniDrv, IWiaMiniDrv_Vtbl, 0xd8cdee14_3c6c_11d2_9a35_00c04fa36145); +::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 ::core::option::Option, __midl__iwiaminidrv0007: *mut ::core::option::Option<::windows_core::IUnknown>, __midl__iwiaminidrv0008: *mut i32) -> ::windows_core::Result<()> where @@ -1054,13 +901,6 @@ impl IWiaMiniDrv { (::windows_core::Interface::vtable(self).drvUnInitializeWia)(::windows_core::Interface::as_raw(self), __midl__iwiaminidrv0064).ok() } } -::windows_core::imp::interface_hierarchy!(IWiaMiniDrv, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWiaMiniDrv { - type Vtable = IWiaMiniDrv_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWiaMiniDrv { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd8cdee14_3c6c_11d2_9a35_00c04fa36145); -} #[repr(C)] #[doc(hidden)] pub struct IWiaMiniDrv_Vtbl { @@ -1089,30 +929,21 @@ pub struct IWiaMiniDrv_Vtbl { pub drvNotifyPnpEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, peventguid: *const ::windows_core::GUID, bstrdeviceid: ::std::mem::MaybeUninit<::windows_core::BSTR>, ulreserved: u32) -> ::windows_core::HRESULT, pub drvUnInitializeWia: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, __midl__iwiaminidrv0064: *const u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWiaMiniDrvCallBack(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWiaMiniDrvCallBack, IWiaMiniDrvCallBack_Vtbl, 0x33a57d5a_3de8_11d2_9a36_00c04fa36145); +::windows_core::imp::interface_hierarchy!(IWiaMiniDrvCallBack, ::windows_core::IUnknown); impl IWiaMiniDrvCallBack { pub unsafe fn MiniDrvCallback(&self, lreason: i32, lstatus: i32, lpercentcomplete: i32, loffset: i32, llength: i32, ptranctx: *const MINIDRV_TRANSFER_CONTEXT, lreserved: i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).MiniDrvCallback)(::windows_core::Interface::as_raw(self), lreason, lstatus, lpercentcomplete, loffset, llength, ptranctx, lreserved).ok() } } -::windows_core::imp::interface_hierarchy!(IWiaMiniDrvCallBack, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWiaMiniDrvCallBack { - type Vtable = IWiaMiniDrvCallBack_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWiaMiniDrvCallBack { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x33a57d5a_3de8_11d2_9a36_00c04fa36145); -} #[repr(C)] #[doc(hidden)] pub struct IWiaMiniDrvCallBack_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub MiniDrvCallback: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lreason: i32, lstatus: i32, lpercentcomplete: i32, loffset: i32, llength: i32, ptranctx: *const MINIDRV_TRANSFER_CONTEXT, lreserved: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWiaMiniDrvTransferCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWiaMiniDrvTransferCallback, IWiaMiniDrvTransferCallback_Vtbl, 0xa9d2ee89_2ce5_4ff0_8adb_c961d1d774ca); +::windows_core::imp::interface_hierarchy!(IWiaMiniDrvTransferCallback, ::windows_core::IUnknown); impl IWiaMiniDrvTransferCallback { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -1128,13 +959,6 @@ impl IWiaMiniDrvTransferCallback { (::windows_core::Interface::vtable(self).SendMessage)(::windows_core::Interface::as_raw(self), lflags, pwiatransferparams).ok() } } -::windows_core::imp::interface_hierarchy!(IWiaMiniDrvTransferCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWiaMiniDrvTransferCallback { - type Vtable = IWiaMiniDrvTransferCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWiaMiniDrvTransferCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa9d2ee89_2ce5_4ff0_8adb_c961d1d774ca); -} #[repr(C)] #[doc(hidden)] pub struct IWiaMiniDrvTransferCallback_Vtbl { @@ -1145,30 +969,21 @@ pub struct IWiaMiniDrvTransferCallback_Vtbl { GetNextStream: usize, pub SendMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, pwiatransferparams: *const WiaTransferParams) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWiaNotifyDevMgr(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWiaNotifyDevMgr, IWiaNotifyDevMgr_Vtbl, 0x70681ea0_e7bf_4291_9fb1_4e8813a3f78e); +::windows_core::imp::interface_hierarchy!(IWiaNotifyDevMgr, ::windows_core::IUnknown); impl IWiaNotifyDevMgr { pub unsafe fn NewDeviceArrival(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).NewDeviceArrival)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IWiaNotifyDevMgr, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWiaNotifyDevMgr { - type Vtable = IWiaNotifyDevMgr_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWiaNotifyDevMgr { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x70681ea0_e7bf_4291_9fb1_4e8813a3f78e); -} #[repr(C)] #[doc(hidden)] pub struct IWiaNotifyDevMgr_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub NewDeviceArrival: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWiaPreview(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWiaPreview, IWiaPreview_Vtbl, 0x95c2b4fd_33f2_4d86_ad40_9431f0df08f7); +::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 @@ -1191,13 +1006,6 @@ impl IWiaPreview { (::windows_core::Interface::vtable(self).Clear)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IWiaPreview, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWiaPreview { - type Vtable = IWiaPreview_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWiaPreview { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x95c2b4fd_33f2_4d86_ad40_9431f0df08f7); -} #[repr(C)] #[doc(hidden)] pub struct IWiaPreview_Vtbl { @@ -1207,9 +1015,8 @@ pub struct IWiaPreview_Vtbl { pub DetectRegions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32) -> ::windows_core::HRESULT, pub Clear: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWiaPropertyStorage(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWiaPropertyStorage, IWiaPropertyStorage_Vtbl, 0x98b5e8a0_29cc_491a_aac0_e6db4fdcceb6); +::windows_core::imp::interface_hierarchy!(IWiaPropertyStorage, ::windows_core::IUnknown); impl IWiaPropertyStorage { #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] @@ -1281,13 +1088,6 @@ impl IWiaPropertyStorage { (::windows_core::Interface::vtable(self).SetPropertyStream)(::windows_core::Interface::as_raw(self), pcompatibilityid, pistream.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IWiaPropertyStorage, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWiaPropertyStorage { - type Vtable = IWiaPropertyStorage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWiaPropertyStorage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x98b5e8a0_29cc_491a_aac0_e6db4fdcceb6); -} #[repr(C)] #[doc(hidden)] pub struct IWiaPropertyStorage_Vtbl { @@ -1333,9 +1133,8 @@ pub struct IWiaPropertyStorage_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] SetPropertyStream: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWiaSegmentationFilter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWiaSegmentationFilter, IWiaSegmentationFilter_Vtbl, 0xec46a697_ac04_4447_8f65_ff63d5154b21); +::windows_core::imp::interface_hierarchy!(IWiaSegmentationFilter, ::windows_core::IUnknown); impl IWiaSegmentationFilter { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -1347,13 +1146,6 @@ impl IWiaSegmentationFilter { (::windows_core::Interface::vtable(self).DetectRegions)(::windows_core::Interface::as_raw(self), lflags, pinputstream.into_param().abi(), pwiaitem2.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IWiaSegmentationFilter, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWiaSegmentationFilter { - type Vtable = IWiaSegmentationFilter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWiaSegmentationFilter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xec46a697_ac04_4447_8f65_ff63d5154b21); -} #[repr(C)] #[doc(hidden)] pub struct IWiaSegmentationFilter_Vtbl { @@ -1363,9 +1155,8 @@ pub struct IWiaSegmentationFilter_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] DetectRegions: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWiaTransfer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWiaTransfer, IWiaTransfer_Vtbl, 0xc39d6942_2f4e_4d04_92fe_4ef4d3a1de5a); +::windows_core::imp::interface_hierarchy!(IWiaTransfer, ::windows_core::IUnknown); impl IWiaTransfer { pub unsafe fn Download(&self, lflags: i32, piwiatransfercallback: P0) -> ::windows_core::Result<()> where @@ -1390,13 +1181,6 @@ impl IWiaTransfer { (::windows_core::Interface::vtable(self).EnumWIA_FORMAT_INFO)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWiaTransfer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWiaTransfer { - type Vtable = IWiaTransfer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWiaTransfer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc39d6942_2f4e_4d04_92fe_4ef4d3a1de5a); -} #[repr(C)] #[doc(hidden)] pub struct IWiaTransfer_Vtbl { @@ -1409,9 +1193,8 @@ pub struct IWiaTransfer_Vtbl { pub Cancel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub EnumWIA_FORMAT_INFO: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWiaTransferCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWiaTransferCallback, IWiaTransferCallback_Vtbl, 0x27d4eaaf_28a6_4ca5_9aab_e678168b9527); +::windows_core::imp::interface_hierarchy!(IWiaTransferCallback, ::windows_core::IUnknown); impl IWiaTransferCallback { pub unsafe fn TransferCallback(&self, lflags: i32, pwiatransferparams: *const WiaTransferParams) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).TransferCallback)(::windows_core::Interface::as_raw(self), lflags, pwiatransferparams).ok() @@ -1427,13 +1210,6 @@ impl IWiaTransferCallback { (::windows_core::Interface::vtable(self).GetNextStream)(::windows_core::Interface::as_raw(self), lflags, bstritemname.into_param().abi(), bstrfullitemname.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWiaTransferCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWiaTransferCallback { - type Vtable = IWiaTransferCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWiaTransferCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x27d4eaaf_28a6_4ca5_9aab_e678168b9527); -} #[repr(C)] #[doc(hidden)] pub struct IWiaTransferCallback_Vtbl { @@ -1444,9 +1220,8 @@ pub struct IWiaTransferCallback_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetNextStream: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWiaUIExtension(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWiaUIExtension, IWiaUIExtension_Vtbl, 0xda319113_50ee_4c80_b460_57d005d44a2c); +::windows_core::imp::interface_hierarchy!(IWiaUIExtension, ::windows_core::IUnknown); impl IWiaUIExtension { pub unsafe fn DeviceDialog(&self, pdevicedialogdata: *const DEVICEDIALOGDATA) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).DeviceDialog)(::windows_core::Interface::as_raw(self), pdevicedialogdata).ok() @@ -1468,13 +1243,6 @@ impl IWiaUIExtension { (::windows_core::Interface::vtable(self).GetDeviceBitmapLogo)(::windows_core::Interface::as_raw(self), bstrdeviceid.into_param().abi(), phbitmap, nmaxwidth, nmaxheight).ok() } } -::windows_core::imp::interface_hierarchy!(IWiaUIExtension, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWiaUIExtension { - type Vtable = IWiaUIExtension_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWiaUIExtension { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xda319113_50ee_4c80_b460_57d005d44a2c); -} #[repr(C)] #[doc(hidden)] pub struct IWiaUIExtension_Vtbl { @@ -1489,9 +1257,8 @@ pub struct IWiaUIExtension_Vtbl { #[cfg(not(feature = "Win32_Graphics_Gdi"))] GetDeviceBitmapLogo: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWiaUIExtension2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWiaUIExtension2, IWiaUIExtension2_Vtbl, 0x305600d7_5088_46d7_9a15_b77b09cdba7a); +::windows_core::imp::interface_hierarchy!(IWiaUIExtension2, ::windows_core::IUnknown); impl IWiaUIExtension2 { pub unsafe fn DeviceDialog(&self, pdevicedialogdata: *const DEVICEDIALOGDATA2) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).DeviceDialog)(::windows_core::Interface::as_raw(self), pdevicedialogdata).ok() @@ -1505,13 +1272,6 @@ impl IWiaUIExtension2 { (::windows_core::Interface::vtable(self).GetDeviceIcon)(::windows_core::Interface::as_raw(self), bstrdeviceid.into_param().abi(), phicon, nsize).ok() } } -::windows_core::imp::interface_hierarchy!(IWiaUIExtension2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWiaUIExtension2 { - type Vtable = IWiaUIExtension2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWiaUIExtension2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x305600d7_5088_46d7_9a15_b77b09cdba7a); -} #[repr(C)] #[doc(hidden)] pub struct IWiaUIExtension2_Vtbl { @@ -1522,9 +1282,8 @@ pub struct IWiaUIExtension2_Vtbl { #[cfg(not(feature = "Win32_UI_WindowsAndMessaging"))] GetDeviceIcon: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWiaVideo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWiaVideo, IWiaVideo_Vtbl, 0xd52920aa_db88_41f0_946c_e00dc0a19cfa); +::windows_core::imp::interface_hierarchy!(IWiaVideo, ::windows_core::IUnknown); impl IWiaVideo { pub unsafe fn PreviewVisible(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1596,13 +1355,6 @@ impl IWiaVideo { (::windows_core::Interface::vtable(self).GetCurrentState)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWiaVideo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWiaVideo { - type Vtable = IWiaVideo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWiaVideo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd52920aa_db88_41f0_946c_e00dc0a19cfa); -} #[repr(C)] #[doc(hidden)] pub struct IWiaVideo_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Devices/PortableDevices/impl.rs b/crates/libs/windows/src/Windows/Win32/Devices/PortableDevices/impl.rs index 694b53eade..c4172c4af9 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/PortableDevices/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/PortableDevices/impl.rs @@ -12,7 +12,7 @@ impl IConnectionRequestCallback_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnComplete: OnComplete:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumPortableDeviceConnectors_Impl: Sized { @@ -59,7 +59,7 @@ impl IEnumPortableDeviceConnectors_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumPortableDeviceObjectIDs_Impl: Sized { @@ -113,7 +113,7 @@ impl IEnumPortableDeviceObjectIDs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMediaRadioManager_Impl: Sized { @@ -146,7 +146,7 @@ impl IMediaRadioManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMediaRadioManagerNotifySink_Impl: Sized { @@ -180,7 +180,7 @@ impl IMediaRadioManagerNotifySink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPortableDevice_Impl: Sized { @@ -286,7 +286,7 @@ impl IPortableDevice_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -440,7 +440,7 @@ impl IPortableDeviceCapabilities_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Devices_Properties\"`"] @@ -505,7 +505,7 @@ impl IPortableDeviceConnector_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -616,7 +616,7 @@ impl IPortableDeviceContent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -640,7 +640,7 @@ impl IPortableDeviceContent2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -677,7 +677,7 @@ impl IPortableDeviceDataStream_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -704,7 +704,7 @@ impl IPortableDeviceDispatchFactory_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetDeviceDispatch: GetDeviceDispatch:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPortableDeviceEventCallback_Impl: Sized { @@ -721,7 +721,7 @@ impl IPortableDeviceEventCallback_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnEvent: OnEvent:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -773,7 +773,7 @@ impl IPortableDeviceKeyCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPortableDeviceManager_Impl: Sized { @@ -835,7 +835,7 @@ impl IPortableDeviceManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] @@ -907,7 +907,7 @@ impl IPortableDevicePropVariantCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -990,7 +990,7 @@ impl IPortableDeviceProperties_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPortableDevicePropertiesBulk_Impl: Sized { @@ -1056,7 +1056,7 @@ impl IPortableDevicePropertiesBulk_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPortableDevicePropertiesBulkCallback_Impl: Sized { @@ -1090,7 +1090,7 @@ impl IPortableDevicePropertiesBulkCallback_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -1161,7 +1161,7 @@ impl IPortableDeviceResources_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPortableDeviceService_Impl: Sized { @@ -1293,7 +1293,7 @@ impl IPortableDeviceService_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPortableDeviceServiceActivation_Impl: Sized { @@ -1320,7 +1320,7 @@ impl IPortableDeviceServiceActivation_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -1539,7 +1539,7 @@ impl IPortableDeviceServiceCapabilities_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPortableDeviceServiceManager_Impl: Sized { @@ -1572,7 +1572,7 @@ impl IPortableDeviceServiceManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPortableDeviceServiceMethodCallback_Impl: Sized { @@ -1589,7 +1589,7 @@ impl IPortableDeviceServiceMethodCallback_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnComplete: OnComplete:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPortableDeviceServiceMethods_Impl: Sized { @@ -1623,7 +1623,7 @@ impl IPortableDeviceServiceMethods_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPortableDeviceServiceOpenCallback_Impl: Sized { @@ -1640,7 +1640,7 @@ impl IPortableDeviceServiceOpenCallback_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnComplete: OnComplete:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPortableDeviceUnitsStream_Impl: Sized { @@ -1667,7 +1667,7 @@ impl IPortableDeviceUnitsStream_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`, `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -2054,7 +2054,7 @@ impl IPortableDeviceValues_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPortableDeviceValuesCollection_Impl: Sized { @@ -2108,7 +2108,7 @@ impl IPortableDeviceValuesCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2145,7 +2145,7 @@ impl IPortableDeviceWebControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IRadioInstance_Impl: Sized { @@ -2231,7 +2231,7 @@ impl IRadioInstance_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRadioInstanceCollection_Impl: Sized { @@ -2270,7 +2270,7 @@ impl IRadioInstanceCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWpdSerializer_Impl: Sized { @@ -2323,6 +2323,6 @@ impl IWpdSerializer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 ec009648c6..715cbb2b84 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/PortableDevices/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/PortableDevices/mod.rs @@ -7,30 +7,21 @@ where let mut result__ = ::std::mem::zeroed(); DMProcessConfigXMLFiltered(pszxmlin.into_param().abi(), ::core::mem::transmute(rgszallowedcspnodes.as_ptr()), rgszallowedcspnodes.len().try_into().unwrap(), &mut result__).from_abi(result__) } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IConnectionRequestCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IConnectionRequestCallback, IConnectionRequestCallback_Vtbl, 0x272c9ae0_7161_4ae0_91bd_9f448ee9c427); +::windows_core::imp::interface_hierarchy!(IConnectionRequestCallback, ::windows_core::IUnknown); impl IConnectionRequestCallback { pub unsafe fn OnComplete(&self, hrstatus: ::windows_core::HRESULT) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnComplete)(::windows_core::Interface::as_raw(self), hrstatus).ok() } } -::windows_core::imp::interface_hierarchy!(IConnectionRequestCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IConnectionRequestCallback { - type Vtable = IConnectionRequestCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IConnectionRequestCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x272c9ae0_7161_4ae0_91bd_9f448ee9c427); -} #[repr(C)] #[doc(hidden)] pub struct IConnectionRequestCallback_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnComplete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hrstatus: ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumPortableDeviceConnectors(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumPortableDeviceConnectors, IEnumPortableDeviceConnectors_Vtbl, 0xbfdef549_9247_454f_bd82_06fe80853faa); +::windows_core::imp::interface_hierarchy!(IEnumPortableDeviceConnectors, ::windows_core::IUnknown); impl IEnumPortableDeviceConnectors { pub unsafe fn Next(&self, pconnectors: &mut [::core::option::Option], pcfetched: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), pconnectors.len().try_into().unwrap(), ::core::mem::transmute(pconnectors.as_ptr()), pcfetched).ok() @@ -46,13 +37,6 @@ impl IEnumPortableDeviceConnectors { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumPortableDeviceConnectors, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumPortableDeviceConnectors { - type Vtable = IEnumPortableDeviceConnectors_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumPortableDeviceConnectors { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbfdef549_9247_454f_bd82_06fe80853faa); -} #[repr(C)] #[doc(hidden)] pub struct IEnumPortableDeviceConnectors_Vtbl { @@ -62,9 +46,8 @@ pub struct IEnumPortableDeviceConnectors_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumPortableDeviceObjectIDs(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumPortableDeviceObjectIDs, IEnumPortableDeviceObjectIDs_Vtbl, 0x10ece955_cf41_4728_bfa0_41eedf1bbf19); +::windows_core::imp::interface_hierarchy!(IEnumPortableDeviceObjectIDs, ::windows_core::IUnknown); impl IEnumPortableDeviceObjectIDs { pub unsafe fn Next(&self, pobjids: &mut [::windows_core::PWSTR], pcfetched: *mut u32) -> ::windows_core::HRESULT { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), pobjids.len().try_into().unwrap(), ::core::mem::transmute(pobjids.as_ptr()), pcfetched) @@ -83,13 +66,6 @@ impl IEnumPortableDeviceObjectIDs { (::windows_core::Interface::vtable(self).Cancel)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IEnumPortableDeviceObjectIDs, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumPortableDeviceObjectIDs { - type Vtable = IEnumPortableDeviceObjectIDs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumPortableDeviceObjectIDs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x10ece955_cf41_4728_bfa0_41eedf1bbf19); -} #[repr(C)] #[doc(hidden)] pub struct IEnumPortableDeviceObjectIDs_Vtbl { @@ -100,9 +76,8 @@ pub struct IEnumPortableDeviceObjectIDs_Vtbl { pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Cancel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaRadioManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMediaRadioManager, IMediaRadioManager_Vtbl, 0x6cfdcab5_fc47_42a5_9241_074b58830e73); +::windows_core::imp::interface_hierarchy!(IMediaRadioManager, ::windows_core::IUnknown); impl IMediaRadioManager { pub unsafe fn GetRadioInstances(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -112,13 +87,6 @@ impl IMediaRadioManager { (::windows_core::Interface::vtable(self).OnSystemRadioStateChange)(::windows_core::Interface::as_raw(self), sysradiostate, utimeoutsec).ok() } } -::windows_core::imp::interface_hierarchy!(IMediaRadioManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaRadioManager { - type Vtable = IMediaRadioManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaRadioManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6cfdcab5_fc47_42a5_9241_074b58830e73); -} #[repr(C)] #[doc(hidden)] pub struct IMediaRadioManager_Vtbl { @@ -126,9 +94,8 @@ pub struct IMediaRadioManager_Vtbl { pub GetRadioInstances: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppcollection: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub OnSystemRadioStateChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sysradiostate: SYSTEM_RADIO_STATE, utimeoutsec: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaRadioManagerNotifySink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMediaRadioManagerNotifySink, IMediaRadioManagerNotifySink_Vtbl, 0x89d81f5f_c147_49ed_a11c_77b20c31e7c9); +::windows_core::imp::interface_hierarchy!(IMediaRadioManagerNotifySink, ::windows_core::IUnknown); impl IMediaRadioManagerNotifySink { pub unsafe fn OnInstanceAdd(&self, pradioinstance: P0) -> ::windows_core::Result<()> where @@ -149,13 +116,6 @@ impl IMediaRadioManagerNotifySink { (::windows_core::Interface::vtable(self).OnInstanceRadioChange)(::windows_core::Interface::as_raw(self), bstrradioinstanceid.into_param().abi(), radiostate).ok() } } -::windows_core::imp::interface_hierarchy!(IMediaRadioManagerNotifySink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaRadioManagerNotifySink { - type Vtable = IMediaRadioManagerNotifySink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaRadioManagerNotifySink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x89d81f5f_c147_49ed_a11c_77b20c31e7c9); -} #[repr(C)] #[doc(hidden)] pub struct IMediaRadioManagerNotifySink_Vtbl { @@ -164,9 +124,8 @@ pub struct IMediaRadioManagerNotifySink_Vtbl { pub OnInstanceRemove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrradioinstanceid: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub OnInstanceRadioChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrradioinstanceid: ::std::mem::MaybeUninit<::windows_core::BSTR>, radiostate: DEVICE_RADIO_STATE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPortableDevice(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPortableDevice, IPortableDevice_Vtbl, 0x625e2df8_6392_4cf0_9ad1_3cfa5f17775c); +::windows_core::imp::interface_hierarchy!(IPortableDevice, ::windows_core::IUnknown); impl IPortableDevice { pub unsafe fn Open(&self, pszpnpdeviceid: P0, pclientinfo: P1) -> ::windows_core::Result<()> where @@ -215,13 +174,6 @@ impl IPortableDevice { (::windows_core::Interface::vtable(self).GetPnPDeviceID)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IPortableDevice, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPortableDevice { - type Vtable = IPortableDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPortableDevice { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x625e2df8_6392_4cf0_9ad1_3cfa5f17775c); -} #[repr(C)] #[doc(hidden)] pub struct IPortableDevice_Vtbl { @@ -236,9 +188,8 @@ pub struct IPortableDevice_Vtbl { pub Unadvise: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszcookie: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub GetPnPDeviceID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppszpnpdeviceid: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPortableDeviceCapabilities(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPortableDeviceCapabilities, IPortableDeviceCapabilities_Vtbl, 0x2c8c6dbf_e3dc_4061_becc_8542e810d126); +::windows_core::imp::interface_hierarchy!(IPortableDeviceCapabilities, ::windows_core::IUnknown); impl IPortableDeviceCapabilities { pub unsafe fn GetSupportedCommands(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -288,13 +239,6 @@ impl IPortableDeviceCapabilities { (::windows_core::Interface::vtable(self).GetEventOptions)(::windows_core::Interface::as_raw(self), event, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IPortableDeviceCapabilities, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPortableDeviceCapabilities { - type Vtable = IPortableDeviceCapabilities_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPortableDeviceCapabilities { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2c8c6dbf_e3dc_4061_becc_8542e810d126); -} #[repr(C)] #[doc(hidden)] pub struct IPortableDeviceCapabilities_Vtbl { @@ -317,9 +261,8 @@ pub struct IPortableDeviceCapabilities_Vtbl { pub GetSupportedEvents: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppevents: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetEventOptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, event: *const ::windows_core::GUID, ppoptions: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPortableDeviceConnector(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPortableDeviceConnector, IPortableDeviceConnector_Vtbl, 0x625e2df8_6392_4cf0_9ad1_3cfa5f17775c); +::windows_core::imp::interface_hierarchy!(IPortableDeviceConnector, ::windows_core::IUnknown); impl IPortableDeviceConnector { pub unsafe fn Connect(&self, pcallback: P0) -> ::windows_core::Result<()> where @@ -354,13 +297,6 @@ impl IPortableDeviceConnector { (::windows_core::Interface::vtable(self).GetPnPID)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IPortableDeviceConnector, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPortableDeviceConnector { - type Vtable = IPortableDeviceConnector_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPortableDeviceConnector { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x625e2df8_6392_4cf0_9ad1_3cfa5f17775c); -} #[repr(C)] #[doc(hidden)] pub struct IPortableDeviceConnector_Vtbl { @@ -378,9 +314,8 @@ pub struct IPortableDeviceConnector_Vtbl { SetProperty: usize, pub GetPnPID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppwszpnpid: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPortableDeviceContent(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPortableDeviceContent, IPortableDeviceContent_Vtbl, 0x6a96ed84_7c73_4480_9938_bf5af477d426); +::windows_core::imp::interface_hierarchy!(IPortableDeviceContent, ::windows_core::IUnknown); impl IPortableDeviceContent { pub unsafe fn EnumObjects(&self, dwflags: u32, pszparentobjectid: P0, pfilter: P1) -> ::windows_core::Result where @@ -443,13 +378,6 @@ impl IPortableDeviceContent { (::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::imp::interface_hierarchy!(IPortableDeviceContent, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPortableDeviceContent { - type Vtable = IPortableDeviceContent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPortableDeviceContent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6a96ed84_7c73_4480_9938_bf5af477d426); -} #[repr(C)] #[doc(hidden)] pub struct IPortableDeviceContent_Vtbl { @@ -468,9 +396,8 @@ pub struct IPortableDeviceContent_Vtbl { pub Move: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pobjectids: *mut ::core::ffi::c_void, pszdestinationfolderobjectid: ::windows_core::PCWSTR, ppresults: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Copy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pobjectids: *mut ::core::ffi::c_void, pszdestinationfolderobjectid: ::windows_core::PCWSTR, ppresults: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPortableDeviceContent2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPortableDeviceContent2, IPortableDeviceContent2_Vtbl, 0x9b4add96_f6bf_4034_8708_eca72bf10554); +::windows_core::imp::interface_hierarchy!(IPortableDeviceContent2, ::windows_core::IUnknown, IPortableDeviceContent); impl IPortableDeviceContent2 { pub unsafe fn EnumObjects(&self, dwflags: u32, pszparentobjectid: P0, pfilter: P1) -> ::windows_core::Result where @@ -542,13 +469,6 @@ impl IPortableDeviceContent2 { (::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::imp::interface_hierarchy!(IPortableDeviceContent2, ::windows_core::IUnknown, IPortableDeviceContent); -unsafe impl ::windows_core::Interface for IPortableDeviceContent2 { - type Vtable = IPortableDeviceContent2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPortableDeviceContent2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9b4add96_f6bf_4034_8708_eca72bf10554); -} #[repr(C)] #[doc(hidden)] pub struct IPortableDeviceContent2_Vtbl { @@ -558,11 +478,15 @@ pub struct IPortableDeviceContent2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] UpdateObjectWithPropertiesAndData: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPortableDeviceDataStream(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IPortableDeviceDataStream, + IPortableDeviceDataStream_Vtbl, + 0x88e04db3_1012_4d64_9996_f703a950d3f4 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IPortableDeviceDataStream, ::windows_core::IUnknown, super::super::System::Com::ISequentialStream, super::super::System::Com::IStream); #[cfg(feature = "Win32_System_Com")] impl IPortableDeviceDataStream { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -633,16 +557,6 @@ impl IPortableDeviceDataStream { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IPortableDeviceDataStream, ::windows_core::IUnknown, super::super::System::Com::ISequentialStream, super::super::System::Com::IStream); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IPortableDeviceDataStream { - type Vtable = IPortableDeviceDataStream_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IPortableDeviceDataStream { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x88e04db3_1012_4d64_9996_f703a950d3f4); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IPortableDeviceDataStream_Vtbl { @@ -650,9 +564,8 @@ pub struct IPortableDeviceDataStream_Vtbl { pub GetObjectID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppszobjectid: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, pub Cancel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPortableDeviceDispatchFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPortableDeviceDispatchFactory, IPortableDeviceDispatchFactory_Vtbl, 0x5e1eafc3_e3d7_4132_96fa_759c0f9d1e0f); +::windows_core::imp::interface_hierarchy!(IPortableDeviceDispatchFactory, ::windows_core::IUnknown); impl IPortableDeviceDispatchFactory { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -664,13 +577,6 @@ impl IPortableDeviceDispatchFactory { (::windows_core::Interface::vtable(self).GetDeviceDispatch)(::windows_core::Interface::as_raw(self), pszpnpdeviceid.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IPortableDeviceDispatchFactory, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPortableDeviceDispatchFactory { - type Vtable = IPortableDeviceDispatchFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPortableDeviceDispatchFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5e1eafc3_e3d7_4132_96fa_759c0f9d1e0f); -} #[repr(C)] #[doc(hidden)] pub struct IPortableDeviceDispatchFactory_Vtbl { @@ -680,9 +586,8 @@ pub struct IPortableDeviceDispatchFactory_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetDeviceDispatch: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPortableDeviceEventCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPortableDeviceEventCallback, IPortableDeviceEventCallback_Vtbl, 0xa8792a31_f385_493c_a893_40f64eb45f6e); +::windows_core::imp::interface_hierarchy!(IPortableDeviceEventCallback, ::windows_core::IUnknown); impl IPortableDeviceEventCallback { pub unsafe fn OnEvent(&self, peventparameters: P0) -> ::windows_core::Result<()> where @@ -691,22 +596,14 @@ impl IPortableDeviceEventCallback { (::windows_core::Interface::vtable(self).OnEvent)(::windows_core::Interface::as_raw(self), peventparameters.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IPortableDeviceEventCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPortableDeviceEventCallback { - type Vtable = IPortableDeviceEventCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPortableDeviceEventCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa8792a31_f385_493c_a893_40f64eb45f6e); -} #[repr(C)] #[doc(hidden)] pub struct IPortableDeviceEventCallback_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, peventparameters: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPortableDeviceKeyCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPortableDeviceKeyCollection, IPortableDeviceKeyCollection_Vtbl, 0xdada2357_e0ad_492e_98db_dd61c53ba353); +::windows_core::imp::interface_hierarchy!(IPortableDeviceKeyCollection, ::windows_core::IUnknown); impl IPortableDeviceKeyCollection { pub unsafe fn GetCount(&self, pcelems: *const u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetCount)(::windows_core::Interface::as_raw(self), pcelems).ok() @@ -728,13 +625,6 @@ impl IPortableDeviceKeyCollection { (::windows_core::Interface::vtable(self).RemoveAt)(::windows_core::Interface::as_raw(self), dwindex).ok() } } -::windows_core::imp::interface_hierarchy!(IPortableDeviceKeyCollection, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPortableDeviceKeyCollection { - type Vtable = IPortableDeviceKeyCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPortableDeviceKeyCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdada2357_e0ad_492e_98db_dd61c53ba353); -} #[repr(C)] #[doc(hidden)] pub struct IPortableDeviceKeyCollection_Vtbl { @@ -751,9 +641,8 @@ pub struct IPortableDeviceKeyCollection_Vtbl { pub Clear: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RemoveAt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwindex: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPortableDeviceManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPortableDeviceManager, IPortableDeviceManager_Vtbl, 0xa1567595_4c2f_4574_a6fa_ecef917b9a40); +::windows_core::imp::interface_hierarchy!(IPortableDeviceManager, ::windows_core::IUnknown); impl IPortableDeviceManager { pub unsafe fn GetDevices(&self, ppnpdeviceids: *mut ::windows_core::PWSTR, pcpnpdeviceids: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetDevices)(::windows_core::Interface::as_raw(self), ppnpdeviceids, pcpnpdeviceids).ok() @@ -790,13 +679,6 @@ impl IPortableDeviceManager { (::windows_core::Interface::vtable(self).GetPrivateDevices)(::windows_core::Interface::as_raw(self), ppnpdeviceids, pcpnpdeviceids).ok() } } -::windows_core::imp::interface_hierarchy!(IPortableDeviceManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPortableDeviceManager { - type Vtable = IPortableDeviceManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPortableDeviceManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa1567595_4c2f_4574_a6fa_ecef917b9a40); -} #[repr(C)] #[doc(hidden)] pub struct IPortableDeviceManager_Vtbl { @@ -809,9 +691,8 @@ pub struct IPortableDeviceManager_Vtbl { pub GetDeviceProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszpnpdeviceid: ::windows_core::PCWSTR, pszdevicepropertyname: ::windows_core::PCWSTR, pdata: *mut u8, pcbdata: *mut u32, pdwtype: *mut u32) -> ::windows_core::HRESULT, pub GetPrivateDevices: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppnpdeviceids: *mut ::windows_core::PWSTR, pcpnpdeviceids: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPortableDevicePropVariantCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPortableDevicePropVariantCollection, IPortableDevicePropVariantCollection_Vtbl, 0x89b2e422_4f1b_4316_bcef_a44afea83eb3); +::windows_core::imp::interface_hierarchy!(IPortableDevicePropVariantCollection, ::windows_core::IUnknown); impl IPortableDevicePropVariantCollection { pub unsafe fn GetCount(&self, pcelems: *const u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetCount)(::windows_core::Interface::as_raw(self), pcelems).ok() @@ -840,13 +721,6 @@ impl IPortableDevicePropVariantCollection { (::windows_core::Interface::vtable(self).RemoveAt)(::windows_core::Interface::as_raw(self), dwindex).ok() } } -::windows_core::imp::interface_hierarchy!(IPortableDevicePropVariantCollection, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPortableDevicePropVariantCollection { - type Vtable = IPortableDevicePropVariantCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPortableDevicePropVariantCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x89b2e422_4f1b_4316_bcef_a44afea83eb3); -} #[repr(C)] #[doc(hidden)] pub struct IPortableDevicePropVariantCollection_Vtbl { @@ -865,9 +739,8 @@ pub struct IPortableDevicePropVariantCollection_Vtbl { pub Clear: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RemoveAt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwindex: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPortableDeviceProperties(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPortableDeviceProperties, IPortableDeviceProperties_Vtbl, 0x7f6d695c_03df_4439_a809_59266beee3a6); +::windows_core::imp::interface_hierarchy!(IPortableDeviceProperties, ::windows_core::IUnknown); impl IPortableDeviceProperties { pub unsafe fn GetSupportedProperties(&self, pszobjectid: P0) -> ::windows_core::Result where @@ -912,13 +785,6 @@ impl IPortableDeviceProperties { (::windows_core::Interface::vtable(self).Cancel)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IPortableDeviceProperties, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPortableDeviceProperties { - type Vtable = IPortableDeviceProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPortableDeviceProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7f6d695c_03df_4439_a809_59266beee3a6); -} #[repr(C)] #[doc(hidden)] pub struct IPortableDeviceProperties_Vtbl { @@ -933,9 +799,8 @@ pub struct IPortableDeviceProperties_Vtbl { pub Delete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszobjectid: ::windows_core::PCWSTR, pkeys: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Cancel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPortableDevicePropertiesBulk(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPortableDevicePropertiesBulk, IPortableDevicePropertiesBulk_Vtbl, 0x482b05c0_4056_44ed_9e0f_5e23b009da93); +::windows_core::imp::interface_hierarchy!(IPortableDevicePropertiesBulk, ::windows_core::IUnknown); impl IPortableDevicePropertiesBulk { pub unsafe fn QueueGetValuesByObjectList(&self, pobjectids: P0, pkeys: P1, pcallback: P2) -> ::windows_core::Result<::windows_core::GUID> where @@ -970,13 +835,6 @@ impl IPortableDevicePropertiesBulk { (::windows_core::Interface::vtable(self).Cancel)(::windows_core::Interface::as_raw(self), pcontext).ok() } } -::windows_core::imp::interface_hierarchy!(IPortableDevicePropertiesBulk, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPortableDevicePropertiesBulk { - type Vtable = IPortableDevicePropertiesBulk_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPortableDevicePropertiesBulk { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x482b05c0_4056_44ed_9e0f_5e23b009da93); -} #[repr(C)] #[doc(hidden)] pub struct IPortableDevicePropertiesBulk_Vtbl { @@ -987,9 +845,8 @@ pub struct IPortableDevicePropertiesBulk_Vtbl { pub Start: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcontext: *const ::windows_core::GUID) -> ::windows_core::HRESULT, pub Cancel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcontext: *const ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPortableDevicePropertiesBulkCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPortableDevicePropertiesBulkCallback, IPortableDevicePropertiesBulkCallback_Vtbl, 0x9deacb80_11e8_40e3_a9f3_f557986a7845); +::windows_core::imp::interface_hierarchy!(IPortableDevicePropertiesBulkCallback, ::windows_core::IUnknown); impl IPortableDevicePropertiesBulkCallback { pub unsafe fn OnStart(&self, pcontext: *const ::windows_core::GUID) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnStart)(::windows_core::Interface::as_raw(self), pcontext).ok() @@ -1004,13 +861,6 @@ impl IPortableDevicePropertiesBulkCallback { (::windows_core::Interface::vtable(self).OnEnd)(::windows_core::Interface::as_raw(self), pcontext, hrstatus).ok() } } -::windows_core::imp::interface_hierarchy!(IPortableDevicePropertiesBulkCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPortableDevicePropertiesBulkCallback { - type Vtable = IPortableDevicePropertiesBulkCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPortableDevicePropertiesBulkCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9deacb80_11e8_40e3_a9f3_f557986a7845); -} #[repr(C)] #[doc(hidden)] pub struct IPortableDevicePropertiesBulkCallback_Vtbl { @@ -1019,9 +869,8 @@ pub struct IPortableDevicePropertiesBulkCallback_Vtbl { pub OnProgress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcontext: *const ::windows_core::GUID, presults: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub OnEnd: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcontext: *const ::windows_core::GUID, hrstatus: ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPortableDeviceResources(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPortableDeviceResources, IPortableDeviceResources_Vtbl, 0xfd8878ac_d841_4d17_891c_e6829cdb6934); +::windows_core::imp::interface_hierarchy!(IPortableDeviceResources, ::windows_core::IUnknown); impl IPortableDeviceResources { pub unsafe fn GetSupportedResources(&self, pszobjectid: P0) -> ::windows_core::Result where @@ -1066,13 +915,6 @@ impl IPortableDeviceResources { (::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::imp::interface_hierarchy!(IPortableDeviceResources, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPortableDeviceResources { - type Vtable = IPortableDeviceResources_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPortableDeviceResources { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfd8878ac_d841_4d17_891c_e6829cdb6934); -} #[repr(C)] #[doc(hidden)] pub struct IPortableDeviceResources_Vtbl { @@ -1093,9 +935,8 @@ pub struct IPortableDeviceResources_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] CreateResource: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPortableDeviceService(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPortableDeviceService, IPortableDeviceService_Vtbl, 0xd3bd3a44_d7b5_40a9_98b7_2fa4d01dec08); +::windows_core::imp::interface_hierarchy!(IPortableDeviceService, ::windows_core::IUnknown); impl IPortableDeviceService { pub unsafe fn Open(&self, pszpnpserviceid: P0, pclientinfo: P1) -> ::windows_core::Result<()> where @@ -1152,13 +993,6 @@ impl IPortableDeviceService { (::windows_core::Interface::vtable(self).SendCommand)(::windows_core::Interface::as_raw(self), dwflags, pparameters.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IPortableDeviceService, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPortableDeviceService { - type Vtable = IPortableDeviceService_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPortableDeviceService { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd3bd3a44_d7b5_40a9_98b7_2fa4d01dec08); -} #[repr(C)] #[doc(hidden)] pub struct IPortableDeviceService_Vtbl { @@ -1175,9 +1009,8 @@ pub struct IPortableDeviceService_Vtbl { pub Unadvise: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszcookie: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub SendCommand: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwflags: u32, pparameters: *mut ::core::ffi::c_void, ppresults: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPortableDeviceServiceActivation(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPortableDeviceServiceActivation, IPortableDeviceServiceActivation_Vtbl, 0xe56b0534_d9b9_425c_9b99_75f97cb3d7c8); +::windows_core::imp::interface_hierarchy!(IPortableDeviceServiceActivation, ::windows_core::IUnknown); impl IPortableDeviceServiceActivation { pub unsafe fn OpenAsync(&self, pszpnpserviceid: P0, pclientinfo: P1, pcallback: P2) -> ::windows_core::Result<()> where @@ -1191,13 +1024,6 @@ impl IPortableDeviceServiceActivation { (::windows_core::Interface::vtable(self).CancelOpenAsync)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IPortableDeviceServiceActivation, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPortableDeviceServiceActivation { - type Vtable = IPortableDeviceServiceActivation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPortableDeviceServiceActivation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe56b0534_d9b9_425c_9b99_75f97cb3d7c8); -} #[repr(C)] #[doc(hidden)] pub struct IPortableDeviceServiceActivation_Vtbl { @@ -1205,9 +1031,8 @@ pub struct IPortableDeviceServiceActivation_Vtbl { pub OpenAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszpnpserviceid: ::windows_core::PCWSTR, pclientinfo: *mut ::core::ffi::c_void, pcallback: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CancelOpenAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPortableDeviceServiceCapabilities(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPortableDeviceServiceCapabilities, IPortableDeviceServiceCapabilities_Vtbl, 0x24dbd89d_413e_43e0_bd5b_197f3c56c886); +::windows_core::imp::interface_hierarchy!(IPortableDeviceServiceCapabilities, ::windows_core::IUnknown); impl IPortableDeviceServiceCapabilities { pub unsafe fn GetSupportedMethods(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1281,13 +1106,6 @@ impl IPortableDeviceServiceCapabilities { (::windows_core::Interface::vtable(self).Cancel)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IPortableDeviceServiceCapabilities, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPortableDeviceServiceCapabilities { - type Vtable = IPortableDeviceServiceCapabilities_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPortableDeviceServiceCapabilities { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x24dbd89d_413e_43e0_bd5b_197f3c56c886); -} #[repr(C)] #[doc(hidden)] pub struct IPortableDeviceServiceCapabilities_Vtbl { @@ -1321,9 +1139,8 @@ pub struct IPortableDeviceServiceCapabilities_Vtbl { GetCommandOptions: usize, pub Cancel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPortableDeviceServiceManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPortableDeviceServiceManager, IPortableDeviceServiceManager_Vtbl, 0xa8abc4e9_a84a_47a9_80b3_c5d9b172a961); +::windows_core::imp::interface_hierarchy!(IPortableDeviceServiceManager, ::windows_core::IUnknown); 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 @@ -1339,13 +1156,6 @@ impl IPortableDeviceServiceManager { (::windows_core::Interface::vtable(self).GetDeviceForService)(::windows_core::Interface::as_raw(self), pszpnpserviceid.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IPortableDeviceServiceManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPortableDeviceServiceManager { - type Vtable = IPortableDeviceServiceManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPortableDeviceServiceManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa8abc4e9_a84a_47a9_80b3_c5d9b172a961); -} #[repr(C)] #[doc(hidden)] pub struct IPortableDeviceServiceManager_Vtbl { @@ -1353,9 +1163,8 @@ pub struct IPortableDeviceServiceManager_Vtbl { pub GetDeviceServices: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszpnpdeviceid: ::windows_core::PCWSTR, guidservicecategory: *const ::windows_core::GUID, pservices: *mut ::windows_core::PWSTR, pcservices: *mut u32) -> ::windows_core::HRESULT, pub GetDeviceForService: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszpnpserviceid: ::windows_core::PCWSTR, ppszpnpdeviceid: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPortableDeviceServiceMethodCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPortableDeviceServiceMethodCallback, IPortableDeviceServiceMethodCallback_Vtbl, 0xc424233c_afce_4828_a756_7ed7a2350083); +::windows_core::imp::interface_hierarchy!(IPortableDeviceServiceMethodCallback, ::windows_core::IUnknown); impl IPortableDeviceServiceMethodCallback { pub unsafe fn OnComplete(&self, hrstatus: ::windows_core::HRESULT, presults: P0) -> ::windows_core::Result<()> where @@ -1364,22 +1173,14 @@ impl IPortableDeviceServiceMethodCallback { (::windows_core::Interface::vtable(self).OnComplete)(::windows_core::Interface::as_raw(self), hrstatus, presults.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IPortableDeviceServiceMethodCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPortableDeviceServiceMethodCallback { - type Vtable = IPortableDeviceServiceMethodCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPortableDeviceServiceMethodCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc424233c_afce_4828_a756_7ed7a2350083); -} #[repr(C)] #[doc(hidden)] pub struct IPortableDeviceServiceMethodCallback_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnComplete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hrstatus: ::windows_core::HRESULT, presults: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPortableDeviceServiceMethods(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPortableDeviceServiceMethods, IPortableDeviceServiceMethods_Vtbl, 0xe20333c9_fd34_412d_a381_cc6f2d820df7); +::windows_core::imp::interface_hierarchy!(IPortableDeviceServiceMethods, ::windows_core::IUnknown); impl IPortableDeviceServiceMethods { pub unsafe fn Invoke(&self, method: *const ::windows_core::GUID, pparameters: P0, ppresults: *mut ::core::option::Option) -> ::windows_core::Result<()> where @@ -1401,13 +1202,6 @@ impl IPortableDeviceServiceMethods { (::windows_core::Interface::vtable(self).Cancel)(::windows_core::Interface::as_raw(self), pcallback.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IPortableDeviceServiceMethods, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPortableDeviceServiceMethods { - type Vtable = IPortableDeviceServiceMethods_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPortableDeviceServiceMethods { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe20333c9_fd34_412d_a381_cc6f2d820df7); -} #[repr(C)] #[doc(hidden)] pub struct IPortableDeviceServiceMethods_Vtbl { @@ -1416,30 +1210,21 @@ pub struct IPortableDeviceServiceMethods_Vtbl { pub InvokeAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, method: *const ::windows_core::GUID, pparameters: *mut ::core::ffi::c_void, pcallback: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Cancel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcallback: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPortableDeviceServiceOpenCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPortableDeviceServiceOpenCallback, IPortableDeviceServiceOpenCallback_Vtbl, 0xbced49c8_8efe_41ed_960b_61313abd47a9); +::windows_core::imp::interface_hierarchy!(IPortableDeviceServiceOpenCallback, ::windows_core::IUnknown); impl IPortableDeviceServiceOpenCallback { pub unsafe fn OnComplete(&self, hrstatus: ::windows_core::HRESULT) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnComplete)(::windows_core::Interface::as_raw(self), hrstatus).ok() } } -::windows_core::imp::interface_hierarchy!(IPortableDeviceServiceOpenCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPortableDeviceServiceOpenCallback { - type Vtable = IPortableDeviceServiceOpenCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPortableDeviceServiceOpenCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbced49c8_8efe_41ed_960b_61313abd47a9); -} #[repr(C)] #[doc(hidden)] pub struct IPortableDeviceServiceOpenCallback_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnComplete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hrstatus: ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPortableDeviceUnitsStream(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPortableDeviceUnitsStream, IPortableDeviceUnitsStream_Vtbl, 0x5e98025f_bfc4_47a2_9a5f_bc900a507c67); +::windows_core::imp::interface_hierarchy!(IPortableDeviceUnitsStream, ::windows_core::IUnknown); impl IPortableDeviceUnitsStream { pub unsafe fn SeekInUnits(&self, dlibmove: i64, units: WPD_STREAM_UNITS, dworigin: u32, plibnewposition: ::core::option::Option<*mut u64>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SeekInUnits)(::windows_core::Interface::as_raw(self), dlibmove, units, dworigin, ::core::mem::transmute(plibnewposition.unwrap_or(::std::ptr::null_mut()))).ok() @@ -1448,13 +1233,6 @@ impl IPortableDeviceUnitsStream { (::windows_core::Interface::vtable(self).Cancel)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IPortableDeviceUnitsStream, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPortableDeviceUnitsStream { - type Vtable = IPortableDeviceUnitsStream_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPortableDeviceUnitsStream { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5e98025f_bfc4_47a2_9a5f_bc900a507c67); -} #[repr(C)] #[doc(hidden)] pub struct IPortableDeviceUnitsStream_Vtbl { @@ -1462,9 +1240,8 @@ pub struct IPortableDeviceUnitsStream_Vtbl { pub SeekInUnits: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dlibmove: i64, units: WPD_STREAM_UNITS, dworigin: u32, plibnewposition: *mut u64) -> ::windows_core::HRESULT, pub Cancel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPortableDeviceValues(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPortableDeviceValues, IPortableDeviceValues_Vtbl, 0x6848f6f2_3155_4f86_b6f5_263eeeab3143); +::windows_core::imp::interface_hierarchy!(IPortableDeviceValues, ::windows_core::IUnknown); impl IPortableDeviceValues { pub unsafe fn GetCount(&self, pcelt: *const u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetCount)(::windows_core::Interface::as_raw(self), pcelt).ok() @@ -1705,13 +1482,6 @@ impl IPortableDeviceValues { (::windows_core::Interface::vtable(self).Clear)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IPortableDeviceValues, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPortableDeviceValues { - type Vtable = IPortableDeviceValues_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPortableDeviceValues { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6848f6f2_3155_4f86_b6f5_263eeeab3143); -} #[repr(C)] #[doc(hidden)] pub struct IPortableDeviceValues_Vtbl { @@ -1871,9 +1641,8 @@ pub struct IPortableDeviceValues_Vtbl { CopyValuesToPropertyStore: usize, pub Clear: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPortableDeviceValuesCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPortableDeviceValuesCollection, IPortableDeviceValuesCollection_Vtbl, 0x6e3f2d79_4e07_48c4_8208_d8c2e5af4a99); +::windows_core::imp::interface_hierarchy!(IPortableDeviceValuesCollection, ::windows_core::IUnknown); impl IPortableDeviceValuesCollection { pub unsafe fn GetCount(&self, pcelems: *const u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetCount)(::windows_core::Interface::as_raw(self), pcelems).ok() @@ -1895,13 +1664,6 @@ impl IPortableDeviceValuesCollection { (::windows_core::Interface::vtable(self).RemoveAt)(::windows_core::Interface::as_raw(self), dwindex).ok() } } -::windows_core::imp::interface_hierarchy!(IPortableDeviceValuesCollection, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPortableDeviceValuesCollection { - type Vtable = IPortableDeviceValuesCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPortableDeviceValuesCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6e3f2d79_4e07_48c4_8208_d8c2e5af4a99); -} #[repr(C)] #[doc(hidden)] pub struct IPortableDeviceValuesCollection_Vtbl { @@ -1912,11 +1674,15 @@ pub struct IPortableDeviceValuesCollection_Vtbl { pub Clear: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RemoveAt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwindex: u32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPortableDeviceWebControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IPortableDeviceWebControl, + IPortableDeviceWebControl_Vtbl, + 0x94fc7953_5ca1_483a_8aee_df52e7747d00 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IPortableDeviceWebControl, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IPortableDeviceWebControl { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1940,16 +1706,6 @@ impl IPortableDeviceWebControl { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IPortableDeviceWebControl, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IPortableDeviceWebControl { - type Vtable = IPortableDeviceWebControl_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IPortableDeviceWebControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x94fc7953_5ca1_483a_8aee_df52e7747d00); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IPortableDeviceWebControl_Vtbl { @@ -1963,9 +1719,8 @@ pub struct IPortableDeviceWebControl_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetDeviceFromIdAsync: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRadioInstance(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRadioInstance, IRadioInstance_Vtbl, 0x70aa1c9e_f2b4_4c61_86d3_6b9fb75fd1a2); +::windows_core::imp::interface_hierarchy!(IRadioInstance, ::windows_core::IUnknown); impl IRadioInstance { pub unsafe fn GetRadioManagerSignature(&self) -> ::windows_core::Result<::windows_core::GUID> { let mut result__ = ::std::mem::zeroed(); @@ -1993,13 +1748,6 @@ impl IRadioInstance { (::windows_core::Interface::vtable(self).IsAssociatingDevice)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(IRadioInstance, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRadioInstance { - type Vtable = IRadioInstance_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRadioInstance { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x70aa1c9e_f2b4_4c61_86d3_6b9fb75fd1a2); -} #[repr(C)] #[doc(hidden)] pub struct IRadioInstance_Vtbl { @@ -2012,9 +1760,8 @@ pub struct IRadioInstance_Vtbl { pub IsMultiComm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL, pub IsAssociatingDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRadioInstanceCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRadioInstanceCollection, IRadioInstanceCollection_Vtbl, 0xe5791fae_5665_4e0c_95be_5fde31644185); +::windows_core::imp::interface_hierarchy!(IRadioInstanceCollection, ::windows_core::IUnknown); impl IRadioInstanceCollection { pub unsafe fn GetCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2025,13 +1772,6 @@ impl IRadioInstanceCollection { (::windows_core::Interface::vtable(self).GetAt)(::windows_core::Interface::as_raw(self), uindex, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IRadioInstanceCollection, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRadioInstanceCollection { - type Vtable = IRadioInstanceCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRadioInstanceCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe5791fae_5665_4e0c_95be_5fde31644185); -} #[repr(C)] #[doc(hidden)] pub struct IRadioInstanceCollection_Vtbl { @@ -2039,9 +1779,8 @@ pub struct IRadioInstanceCollection_Vtbl { pub GetCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcinstance: *mut u32) -> ::windows_core::HRESULT, pub GetAt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uindex: u32, ppradioinstance: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWpdSerializer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWpdSerializer, IWpdSerializer_Vtbl, 0xb32f4002_bb27_45ff_af4f_06631c1e8dad); +::windows_core::imp::interface_hierarchy!(IWpdSerializer, ::windows_core::IUnknown); impl IWpdSerializer { pub unsafe fn GetIPortableDeviceValuesFromBuffer(&self, pbuffer: &[u8]) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2067,13 +1806,6 @@ impl IWpdSerializer { (::windows_core::Interface::vtable(self).GetSerializedSize)(::windows_core::Interface::as_raw(self), psource.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWpdSerializer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWpdSerializer { - type Vtable = IWpdSerializer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWpdSerializer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb32f4002_bb27_45ff_af4f_06631c1e8dad); -} #[repr(C)] #[doc(hidden)] pub struct IWpdSerializer_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Devices/Sensors/impl.rs b/crates/libs/windows/src/Windows/Win32/Devices/Sensors/impl.rs index 8216bc6055..e2d79c6608 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/Sensors/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/Sensors/impl.rs @@ -28,7 +28,7 @@ impl ILocationPermissions_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Devices_PortableDevices\"`, `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`, `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -222,7 +222,7 @@ impl ISensor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISensorCollection_Impl: Sized { @@ -289,7 +289,7 @@ impl ISensorCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Devices_PortableDevices\"`, `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`, `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -345,7 +345,7 @@ impl ISensorDataReport_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Devices_PortableDevices\"`"] @@ -390,7 +390,7 @@ impl ISensorEvents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISensorManager_Impl: Sized { @@ -456,7 +456,7 @@ impl ISensorManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISensorManagerEvents_Impl: Sized { @@ -473,6 +473,6 @@ impl ISensorManagerEvents_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnSensorEnter: OnSensorEnter:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 354662d3a3..684272143f 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/Sensors/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/Sensors/mod.rs @@ -274,9 +274,8 @@ pub unsafe fn SerializationBufferFree(buffer: ::core::option::Option<*const u8>) ::windows_targets::link!("sensorsutilsv2.dll" "system" fn SerializationBufferFree(buffer : *const u8)); SerializationBufferFree(::core::mem::transmute(buffer.unwrap_or(::std::ptr::null()))) } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILocationPermissions(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ILocationPermissions, ILocationPermissions_Vtbl, 0xd5fb0a7f_e74e_44f5_8e02_4806863a274f); +::windows_core::imp::interface_hierarchy!(ILocationPermissions, ::windows_core::IUnknown); impl ILocationPermissions { pub unsafe fn GetGlobalLocationPermission(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -286,13 +285,6 @@ impl ILocationPermissions { (::windows_core::Interface::vtable(self).CheckLocationCapability)(::windows_core::Interface::as_raw(self), dwclientthreadid).ok() } } -::windows_core::imp::interface_hierarchy!(ILocationPermissions, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILocationPermissions { - type Vtable = ILocationPermissions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILocationPermissions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd5fb0a7f_e74e_44f5_8e02_4806863a274f); -} #[repr(C)] #[doc(hidden)] pub struct ILocationPermissions_Vtbl { @@ -300,9 +292,8 @@ pub struct ILocationPermissions_Vtbl { pub GetGlobalLocationPermission: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfenabled: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub CheckLocationCapability: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwclientthreadid: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISensor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISensor, ISensor_Vtbl, 0x5fa08f80_2657_458e_af75_46f73fa6ac5c); +::windows_core::imp::interface_hierarchy!(ISensor, ::windows_core::IUnknown); impl ISensor { pub unsafe fn GetID(&self) -> ::windows_core::Result<::windows_core::GUID> { let mut result__ = ::std::mem::zeroed(); @@ -381,13 +372,6 @@ impl ISensor { (::windows_core::Interface::vtable(self).SetEventSink)(::windows_core::Interface::as_raw(self), pevents.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ISensor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISensor { - type Vtable = ISensor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISensor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5fa08f80_2657_458e_af75_46f73fa6ac5c); -} #[repr(C)] #[doc(hidden)] pub struct ISensor_Vtbl { @@ -423,9 +407,8 @@ pub struct ISensor_Vtbl { pub SetEventInterest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalues: *const ::windows_core::GUID, count: u32) -> ::windows_core::HRESULT, pub SetEventSink: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pevents: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISensorCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISensorCollection, ISensorCollection_Vtbl, 0x23571e11_e545_4dd8_a337_b89bf44b10df); +::windows_core::imp::interface_hierarchy!(ISensorCollection, ::windows_core::IUnknown); impl ISensorCollection { pub unsafe fn GetAt(&self, ulindex: u32) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -454,13 +437,6 @@ impl ISensorCollection { (::windows_core::Interface::vtable(self).Clear)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ISensorCollection, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISensorCollection { - type Vtable = ISensorCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISensorCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x23571e11_e545_4dd8_a337_b89bf44b10df); -} #[repr(C)] #[doc(hidden)] pub struct ISensorCollection_Vtbl { @@ -472,9 +448,8 @@ pub struct ISensorCollection_Vtbl { pub RemoveByID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sensorid: *const ::windows_core::GUID) -> ::windows_core::HRESULT, pub Clear: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISensorDataReport(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISensorDataReport, ISensorDataReport_Vtbl, 0x0ab9df9b_c4b5_4796_8898_0470706a2e1d); +::windows_core::imp::interface_hierarchy!(ISensorDataReport, ::windows_core::IUnknown); impl ISensorDataReport { pub unsafe fn GetTimestamp(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -496,13 +471,6 @@ impl ISensorDataReport { (::windows_core::Interface::vtable(self).GetSensorValues)(::windows_core::Interface::as_raw(self), pkeys.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISensorDataReport, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISensorDataReport { - type Vtable = ISensorDataReport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISensorDataReport { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0ab9df9b_c4b5_4796_8898_0470706a2e1d); -} #[repr(C)] #[doc(hidden)] pub struct ISensorDataReport_Vtbl { @@ -517,9 +485,8 @@ pub struct ISensorDataReport_Vtbl { #[cfg(not(feature = "Win32_Devices_PortableDevices"))] GetSensorValues: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISensorEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISensorEvents, ISensorEvents_Vtbl, 0x5d8dcc91_4641_47e7_b7c3_b74f48a6c391); +::windows_core::imp::interface_hierarchy!(ISensorEvents, ::windows_core::IUnknown); impl ISensorEvents { pub unsafe fn OnStateChanged(&self, psensor: P0, state: SensorState) -> ::windows_core::Result<()> where @@ -547,13 +514,6 @@ impl ISensorEvents { (::windows_core::Interface::vtable(self).OnLeave)(::windows_core::Interface::as_raw(self), id).ok() } } -::windows_core::imp::interface_hierarchy!(ISensorEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISensorEvents { - type Vtable = ISensorEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISensorEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5d8dcc91_4641_47e7_b7c3_b74f48a6c391); -} #[repr(C)] #[doc(hidden)] pub struct ISensorEvents_Vtbl { @@ -566,9 +526,8 @@ pub struct ISensorEvents_Vtbl { OnEvent: usize, pub OnLeave: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: *const ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISensorManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISensorManager, ISensorManager_Vtbl, 0xbd77db67_45a8_42dc_8d00_6dcf15f8377a); +::windows_core::imp::interface_hierarchy!(ISensorManager, ::windows_core::IUnknown); impl ISensorManager { pub unsafe fn GetSensorsByCategory(&self, sensorcategory: *const ::windows_core::GUID) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -597,13 +556,6 @@ impl ISensorManager { (::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::imp::interface_hierarchy!(ISensorManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISensorManager { - type Vtable = ISensorManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISensorManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbd77db67_45a8_42dc_8d00_6dcf15f8377a); -} #[repr(C)] #[doc(hidden)] pub struct ISensorManager_Vtbl { @@ -614,9 +566,8 @@ pub struct ISensorManager_Vtbl { pub SetEventSink: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pevents: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RequestPermissions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hparent: super::super::Foundation::HWND, psensors: *mut ::core::ffi::c_void, fmodal: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISensorManagerEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISensorManagerEvents, ISensorManagerEvents_Vtbl, 0x9b3b0b86_266a_4aad_b21f_fde5501001b7); +::windows_core::imp::interface_hierarchy!(ISensorManagerEvents, ::windows_core::IUnknown); impl ISensorManagerEvents { pub unsafe fn OnSensorEnter(&self, psensor: P0, state: SensorState) -> ::windows_core::Result<()> where @@ -625,13 +576,6 @@ impl ISensorManagerEvents { (::windows_core::Interface::vtable(self).OnSensorEnter)(::windows_core::Interface::as_raw(self), psensor.into_param().abi(), state).ok() } } -::windows_core::imp::interface_hierarchy!(ISensorManagerEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISensorManagerEvents { - type Vtable = ISensorManagerEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISensorManagerEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9b3b0b86_266a_4aad_b21f_fde5501001b7); -} #[repr(C)] #[doc(hidden)] pub struct ISensorManagerEvents_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Devices/Tapi/impl.rs b/crates/libs/windows/src/Windows/Win32/Devices/Tapi/impl.rs index 4d8a6a7b5a..c7f6ebc380 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/Tapi/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/Tapi/impl.rs @@ -46,7 +46,7 @@ impl IEnumACDGroup_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -97,7 +97,7 @@ impl IEnumAddress_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -148,7 +148,7 @@ impl IEnumAgent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -199,7 +199,7 @@ impl IEnumAgentHandler_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -250,7 +250,7 @@ impl IEnumAgentSession_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumBstr_Impl: Sized { @@ -297,7 +297,7 @@ impl IEnumBstr_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -348,7 +348,7 @@ impl IEnumCall_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -399,7 +399,7 @@ impl IEnumCallHub_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -450,7 +450,7 @@ impl IEnumCallingCard_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumDialableAddrs_Impl: Sized { @@ -497,7 +497,7 @@ impl IEnumDialableAddrs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -548,7 +548,7 @@ impl IEnumDirectory_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -599,7 +599,7 @@ impl IEnumDirectoryObject_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -650,7 +650,7 @@ impl IEnumLocation_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -701,7 +701,7 @@ impl IEnumMcastScope_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -752,7 +752,7 @@ impl IEnumPhone_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -803,7 +803,7 @@ impl IEnumPluggableSuperclassInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -854,7 +854,7 @@ impl IEnumPluggableTerminalClassInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -905,7 +905,7 @@ impl IEnumQueue_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -956,7 +956,7 @@ impl IEnumStream_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1007,7 +1007,7 @@ impl IEnumSubStream_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1058,7 +1058,7 @@ impl IEnumTerminal_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumTerminalClass_Impl: Sized { @@ -1105,7 +1105,7 @@ impl IEnumTerminalClass_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1207,7 +1207,7 @@ impl IMcastAddressAllocation_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1342,7 +1342,7 @@ impl IMcastLeaseInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1424,7 +1424,7 @@ impl IMcastScope_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1480,7 +1480,7 @@ impl ITACDGroup_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1523,7 +1523,7 @@ impl ITACDGroupEvent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Media_MediaFoundation\"`"] @@ -1560,7 +1560,7 @@ impl ITAMMediaFormat_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1616,7 +1616,7 @@ impl ITASRTerminalEvent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1810,7 +1810,7 @@ impl ITAddress_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1939,7 +1939,7 @@ impl ITAddress2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2060,7 +2060,7 @@ impl ITAddressCapabilities_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2142,7 +2142,7 @@ impl ITAddressDeviceSpecificEvent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2198,7 +2198,7 @@ impl ITAddressEvent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2287,7 +2287,7 @@ impl ITAddressTranslation_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2369,7 +2369,7 @@ impl ITAddressTranslationInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2595,7 +2595,7 @@ impl ITAgent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2638,7 +2638,7 @@ impl ITAgentEvent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2746,7 +2746,7 @@ impl ITAgentHandler_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2789,7 +2789,7 @@ impl ITAgentHandlerEvent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3021,7 +3021,7 @@ impl ITAgentSession_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3064,7 +3064,7 @@ impl ITAgentSessionEvent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Media_DirectShow\"`"] @@ -3141,7 +3141,7 @@ impl ITAllocatorProperties_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3472,7 +3472,7 @@ impl ITAutomatedPhoneControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3529,7 +3529,7 @@ impl ITBasicAudioTerminal_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3678,7 +3678,7 @@ impl ITBasicCallControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3722,7 +3722,7 @@ impl ITBasicCallControl2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3798,7 +3798,7 @@ impl ITCallHub_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3854,7 +3854,7 @@ impl ITCallHubEvent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4004,7 +4004,7 @@ impl ITCallInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4041,7 +4041,7 @@ impl ITCallInfo2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4097,7 +4097,7 @@ impl ITCallInfoChangeEvent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4192,7 +4192,7 @@ impl ITCallMediaEvent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4248,7 +4248,7 @@ impl ITCallNotificationEvent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4317,7 +4317,7 @@ impl ITCallStateEvent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4425,7 +4425,7 @@ impl ITCallingCard_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4481,7 +4481,7 @@ impl ITCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4508,7 +4508,7 @@ impl ITCollection2_Vtbl { Self { base__: ITCollection_Vtbl::new::(), Add: Add::, Remove: Remove:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4605,7 +4605,7 @@ impl ITCustomTone_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4682,7 +4682,7 @@ impl ITDetectTone_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4764,7 +4764,7 @@ impl ITDigitDetectionEvent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4833,7 +4833,7 @@ impl ITDigitGenerationEvent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4915,7 +4915,7 @@ impl ITDigitsGatheredEvent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5066,7 +5066,7 @@ impl ITDirectory_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5162,7 +5162,7 @@ impl ITDirectoryObject_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5332,7 +5332,7 @@ impl ITDirectoryObjectConference_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5369,7 +5369,7 @@ impl ITDirectoryObjectUser_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5399,7 +5399,7 @@ impl ITDispatchMapper_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5494,7 +5494,7 @@ impl ITFileTerminalEvent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Media_MediaFoundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5577,7 +5577,7 @@ impl ITFileTrack_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5661,7 +5661,7 @@ impl ITForwardInformation_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5718,7 +5718,7 @@ impl ITForwardInformation2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5755,7 +5755,7 @@ impl ITILSConfig_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ITLegacyAddressMediaControl_Impl: Sized { @@ -5789,7 +5789,7 @@ impl ITLegacyAddressMediaControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITLegacyAddressMediaControl2_Impl: Sized + ITLegacyAddressMediaControl_Impl { @@ -5816,7 +5816,7 @@ impl ITLegacyAddressMediaControl2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5868,7 +5868,7 @@ impl ITLegacyCallMediaControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5973,7 +5973,7 @@ impl ITLegacyCallMediaControl2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6000,7 +6000,7 @@ impl ITLegacyWaveSupport_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::(), IsFullDuplex: IsFullDuplex:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6160,7 +6160,7 @@ impl ITLocationInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ITMSPAddress_Impl: Sized { @@ -6221,7 +6221,7 @@ impl ITMSPAddress_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6272,7 +6272,7 @@ impl ITMediaControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6309,7 +6309,7 @@ impl ITMediaPlayback_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6346,7 +6346,7 @@ impl ITMediaRecord_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6389,7 +6389,7 @@ impl ITMediaSupport_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6478,7 +6478,7 @@ impl ITMultiTrackTerminal_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6846,7 +6846,7 @@ impl ITPhone_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6915,7 +6915,7 @@ impl ITPhoneDeviceSpecificEvent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -7049,7 +7049,7 @@ impl ITPhoneEvent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -7157,7 +7157,7 @@ impl ITPluggableTerminalClassInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -7178,7 +7178,7 @@ impl ITPluggableTerminalEventSink_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), FireEvent: FireEvent:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITPluggableTerminalEventSinkRegistration_Impl: Sized { @@ -7205,7 +7205,7 @@ impl ITPluggableTerminalEventSinkRegistration_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -7248,7 +7248,7 @@ impl ITPluggableTerminalSuperclassInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -7330,7 +7330,7 @@ impl ITPrivateEvent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -7386,7 +7386,7 @@ impl ITQOSEvent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -7553,7 +7553,7 @@ impl ITQueue_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -7596,7 +7596,7 @@ impl ITQueueEvent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -7665,7 +7665,7 @@ impl ITRendezvous_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -7686,7 +7686,7 @@ impl ITRequest_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::(), MakeCall: MakeCall:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -7781,7 +7781,7 @@ impl ITRequestEvent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -7918,7 +7918,7 @@ impl ITScriptableAudioFormat_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -7945,7 +7945,7 @@ impl ITStaticAudioTerminal_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::(), WaveId: WaveId:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -8062,7 +8062,7 @@ impl ITStream_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -8125,7 +8125,7 @@ impl ITStreamControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -8216,7 +8216,7 @@ impl ITSubStream_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -8279,7 +8279,7 @@ impl ITSubStreamControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -8456,7 +8456,7 @@ impl ITTAPI_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -8512,7 +8512,7 @@ impl ITTAPI2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -8555,7 +8555,7 @@ impl ITTAPICallCenter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -8569,7 +8569,7 @@ impl ITTAPIDispatchEventNotification_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -8590,7 +8590,7 @@ impl ITTAPIEventNotification_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Event: Event:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -8659,7 +8659,7 @@ impl ITTAPIObjectEvent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -8686,7 +8686,7 @@ impl ITTAPIObjectEvent2_Vtbl { Self { base__: ITTAPIObjectEvent_Vtbl::new::(), Phone: Phone:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -8742,7 +8742,7 @@ impl ITTTSTerminalEvent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -8837,7 +8837,7 @@ impl ITTerminal_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -8932,7 +8932,7 @@ impl ITTerminalSupport_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -9001,7 +9001,7 @@ impl ITTerminalSupport2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -9070,7 +9070,7 @@ impl ITToneDetectionEvent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -9126,7 +9126,7 @@ impl ITToneTerminalEvent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_AddressBook\"`, `\"Win32_System_Com\"`"] @@ -9198,6 +9198,6 @@ impl ITnef_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 20bde7d91e..bca0dd0e41 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/Tapi/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/Tapi/mod.rs @@ -1660,9 +1660,8 @@ where ::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()) } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumACDGroup(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumACDGroup, IEnumACDGroup_Vtbl, 0x5afc3157_4bcc_11d1_bf80_00805fc147d3); +::windows_core::imp::interface_hierarchy!(IEnumACDGroup, ::windows_core::IUnknown); impl IEnumACDGroup { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -1680,13 +1679,6 @@ impl IEnumACDGroup { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumACDGroup, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumACDGroup { - type Vtable = IEnumACDGroup_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumACDGroup { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5afc3157_4bcc_11d1_bf80_00805fc147d3); -} #[repr(C)] #[doc(hidden)] pub struct IEnumACDGroup_Vtbl { @@ -1699,9 +1691,8 @@ pub struct IEnumACDGroup_Vtbl { pub Skip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, celt: u32) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumAddress(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumAddress, IEnumAddress_Vtbl, 0x1666fca1_9363_11d0_835c_00aa003ccabd); +::windows_core::imp::interface_hierarchy!(IEnumAddress, ::windows_core::IUnknown); impl IEnumAddress { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -1719,13 +1710,6 @@ impl IEnumAddress { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumAddress, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumAddress { - type Vtable = IEnumAddress_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumAddress { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1666fca1_9363_11d0_835c_00aa003ccabd); -} #[repr(C)] #[doc(hidden)] pub struct IEnumAddress_Vtbl { @@ -1738,9 +1722,8 @@ pub struct IEnumAddress_Vtbl { pub Skip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, celt: u32) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumAgent(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumAgent, IEnumAgent_Vtbl, 0x5afc314d_4bcc_11d1_bf80_00805fc147d3); +::windows_core::imp::interface_hierarchy!(IEnumAgent, ::windows_core::IUnknown); impl IEnumAgent { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -1758,13 +1741,6 @@ impl IEnumAgent { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumAgent, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumAgent { - type Vtable = IEnumAgent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumAgent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5afc314d_4bcc_11d1_bf80_00805fc147d3); -} #[repr(C)] #[doc(hidden)] pub struct IEnumAgent_Vtbl { @@ -1777,9 +1753,8 @@ pub struct IEnumAgent_Vtbl { pub Skip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, celt: u32) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumAgentHandler(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumAgentHandler, IEnumAgentHandler_Vtbl, 0x587e8c28_9802_11d1_a0a4_00805fc147d3); +::windows_core::imp::interface_hierarchy!(IEnumAgentHandler, ::windows_core::IUnknown); impl IEnumAgentHandler { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -1797,13 +1772,6 @@ impl IEnumAgentHandler { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumAgentHandler, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumAgentHandler { - type Vtable = IEnumAgentHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumAgentHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x587e8c28_9802_11d1_a0a4_00805fc147d3); -} #[repr(C)] #[doc(hidden)] pub struct IEnumAgentHandler_Vtbl { @@ -1816,9 +1784,8 @@ pub struct IEnumAgentHandler_Vtbl { pub Skip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, celt: u32) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumAgentSession(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumAgentSession, IEnumAgentSession_Vtbl, 0x5afc314e_4bcc_11d1_bf80_00805fc147d3); +::windows_core::imp::interface_hierarchy!(IEnumAgentSession, ::windows_core::IUnknown); impl IEnumAgentSession { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -1836,13 +1803,6 @@ impl IEnumAgentSession { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumAgentSession, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumAgentSession { - type Vtable = IEnumAgentSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumAgentSession { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5afc314e_4bcc_11d1_bf80_00805fc147d3); -} #[repr(C)] #[doc(hidden)] pub struct IEnumAgentSession_Vtbl { @@ -1855,9 +1815,8 @@ pub struct IEnumAgentSession_Vtbl { pub Skip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, celt: u32) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumBstr(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumBstr, IEnumBstr_Vtbl, 0x35372049_0bc6_11d2_a033_00c04fb6809f); +::windows_core::imp::interface_hierarchy!(IEnumBstr, ::windows_core::IUnknown); impl IEnumBstr { pub unsafe fn Next(&self, ppstrings: &mut [::windows_core::BSTR], pceltfetched: ::core::option::Option<*mut u32>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), ppstrings.len().try_into().unwrap(), ::core::mem::transmute(ppstrings.as_ptr()), ::core::mem::transmute(pceltfetched.unwrap_or(::std::ptr::null_mut()))).ok() @@ -1873,13 +1832,6 @@ impl IEnumBstr { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumBstr, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumBstr { - type Vtable = IEnumBstr_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumBstr { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x35372049_0bc6_11d2_a033_00c04fb6809f); -} #[repr(C)] #[doc(hidden)] pub struct IEnumBstr_Vtbl { @@ -1889,9 +1841,8 @@ pub struct IEnumBstr_Vtbl { pub Skip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, celt: u32) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumCall(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumCall, IEnumCall_Vtbl, 0xae269cf6_935e_11d0_835c_00aa003ccabd); +::windows_core::imp::interface_hierarchy!(IEnumCall, ::windows_core::IUnknown); impl IEnumCall { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -1909,13 +1860,6 @@ impl IEnumCall { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumCall, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumCall { - type Vtable = IEnumCall_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumCall { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xae269cf6_935e_11d0_835c_00aa003ccabd); -} #[repr(C)] #[doc(hidden)] pub struct IEnumCall_Vtbl { @@ -1928,9 +1872,8 @@ pub struct IEnumCall_Vtbl { pub Skip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, celt: u32) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumCallHub(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumCallHub, IEnumCallHub_Vtbl, 0xa3c15450_5b92_11d1_8f4e_00c04fb6809f); +::windows_core::imp::interface_hierarchy!(IEnumCallHub, ::windows_core::IUnknown); impl IEnumCallHub { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -1948,13 +1891,6 @@ impl IEnumCallHub { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumCallHub, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumCallHub { - type Vtable = IEnumCallHub_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumCallHub { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa3c15450_5b92_11d1_8f4e_00c04fb6809f); -} #[repr(C)] #[doc(hidden)] pub struct IEnumCallHub_Vtbl { @@ -1967,9 +1903,8 @@ pub struct IEnumCallHub_Vtbl { pub Skip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, celt: u32) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumCallingCard(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumCallingCard, IEnumCallingCard_Vtbl, 0x0c4d8f02_8ddb_11d1_a09e_00805fc147d3); +::windows_core::imp::interface_hierarchy!(IEnumCallingCard, ::windows_core::IUnknown); impl IEnumCallingCard { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -1987,13 +1922,6 @@ impl IEnumCallingCard { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumCallingCard, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumCallingCard { - type Vtable = IEnumCallingCard_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumCallingCard { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c4d8f02_8ddb_11d1_a09e_00805fc147d3); -} #[repr(C)] #[doc(hidden)] pub struct IEnumCallingCard_Vtbl { @@ -2006,9 +1934,8 @@ pub struct IEnumCallingCard_Vtbl { pub Skip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, celt: u32) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumDialableAddrs(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumDialableAddrs, IEnumDialableAddrs_Vtbl, 0x34621d70_6cff_11d1_aff7_00c04fc31fee); +::windows_core::imp::interface_hierarchy!(IEnumDialableAddrs, ::windows_core::IUnknown); impl IEnumDialableAddrs { pub unsafe fn Next(&self, ppelements: &mut [::windows_core::BSTR], pcfetched: ::core::option::Option<*mut u32>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), ppelements.len().try_into().unwrap(), ::core::mem::transmute(ppelements.as_ptr()), ::core::mem::transmute(pcfetched.unwrap_or(::std::ptr::null_mut()))).ok() @@ -2024,13 +1951,6 @@ impl IEnumDialableAddrs { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumDialableAddrs, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumDialableAddrs { - type Vtable = IEnumDialableAddrs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumDialableAddrs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x34621d70_6cff_11d1_aff7_00c04fc31fee); -} #[repr(C)] #[doc(hidden)] pub struct IEnumDialableAddrs_Vtbl { @@ -2040,9 +1960,8 @@ pub struct IEnumDialableAddrs_Vtbl { pub Skip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, celt: u32) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumDirectory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumDirectory, IEnumDirectory_Vtbl, 0x34621d6d_6cff_11d1_aff7_00c04fc31fee); +::windows_core::imp::interface_hierarchy!(IEnumDirectory, ::windows_core::IUnknown); impl IEnumDirectory { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -2060,13 +1979,6 @@ impl IEnumDirectory { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumDirectory, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumDirectory { - type Vtable = IEnumDirectory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumDirectory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x34621d6d_6cff_11d1_aff7_00c04fc31fee); -} #[repr(C)] #[doc(hidden)] pub struct IEnumDirectory_Vtbl { @@ -2079,9 +1991,8 @@ pub struct IEnumDirectory_Vtbl { pub Skip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, celt: u32) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumDirectoryObject(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumDirectoryObject, IEnumDirectoryObject_Vtbl, 0x06c9b64a_306d_11d1_9774_00c04fd91ac0); +::windows_core::imp::interface_hierarchy!(IEnumDirectoryObject, ::windows_core::IUnknown); impl IEnumDirectoryObject { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -2099,13 +2010,6 @@ impl IEnumDirectoryObject { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumDirectoryObject, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumDirectoryObject { - type Vtable = IEnumDirectoryObject_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumDirectoryObject { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x06c9b64a_306d_11d1_9774_00c04fd91ac0); -} #[repr(C)] #[doc(hidden)] pub struct IEnumDirectoryObject_Vtbl { @@ -2118,9 +2022,8 @@ pub struct IEnumDirectoryObject_Vtbl { pub Skip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, celt: u32) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumLocation(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumLocation, IEnumLocation_Vtbl, 0x0c4d8f01_8ddb_11d1_a09e_00805fc147d3); +::windows_core::imp::interface_hierarchy!(IEnumLocation, ::windows_core::IUnknown); impl IEnumLocation { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -2138,13 +2041,6 @@ impl IEnumLocation { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumLocation, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumLocation { - type Vtable = IEnumLocation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumLocation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c4d8f01_8ddb_11d1_a09e_00805fc147d3); -} #[repr(C)] #[doc(hidden)] pub struct IEnumLocation_Vtbl { @@ -2157,9 +2053,8 @@ pub struct IEnumLocation_Vtbl { pub Skip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, celt: u32) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumMcastScope(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumMcastScope, IEnumMcastScope_Vtbl, 0xdf0daf09_a289_11d1_8697_006008b0e5d2); +::windows_core::imp::interface_hierarchy!(IEnumMcastScope, ::windows_core::IUnknown); impl IEnumMcastScope { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -2177,13 +2072,6 @@ impl IEnumMcastScope { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumMcastScope, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumMcastScope { - type Vtable = IEnumMcastScope_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumMcastScope { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdf0daf09_a289_11d1_8697_006008b0e5d2); -} #[repr(C)] #[doc(hidden)] pub struct IEnumMcastScope_Vtbl { @@ -2196,9 +2084,8 @@ pub struct IEnumMcastScope_Vtbl { pub Skip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, celt: u32) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumPhone(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumPhone, IEnumPhone_Vtbl, 0xf15b7669_4780_4595_8c89_fb369c8cf7aa); +::windows_core::imp::interface_hierarchy!(IEnumPhone, ::windows_core::IUnknown); impl IEnumPhone { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -2216,13 +2103,6 @@ impl IEnumPhone { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumPhone, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumPhone { - type Vtable = IEnumPhone_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumPhone { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf15b7669_4780_4595_8c89_fb369c8cf7aa); -} #[repr(C)] #[doc(hidden)] pub struct IEnumPhone_Vtbl { @@ -2235,9 +2115,8 @@ pub struct IEnumPhone_Vtbl { pub Skip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, celt: u32) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumPluggableSuperclassInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumPluggableSuperclassInfo, IEnumPluggableSuperclassInfo_Vtbl, 0xe9586a80_89e6_4cff_931d_478d5751f4c0); +::windows_core::imp::interface_hierarchy!(IEnumPluggableSuperclassInfo, ::windows_core::IUnknown); impl IEnumPluggableSuperclassInfo { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -2255,13 +2134,6 @@ impl IEnumPluggableSuperclassInfo { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumPluggableSuperclassInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumPluggableSuperclassInfo { - type Vtable = IEnumPluggableSuperclassInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumPluggableSuperclassInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe9586a80_89e6_4cff_931d_478d5751f4c0); -} #[repr(C)] #[doc(hidden)] pub struct IEnumPluggableSuperclassInfo_Vtbl { @@ -2274,9 +2146,8 @@ pub struct IEnumPluggableSuperclassInfo_Vtbl { pub Skip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, celt: u32) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumPluggableTerminalClassInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumPluggableTerminalClassInfo, IEnumPluggableTerminalClassInfo_Vtbl, 0x4567450c_dbee_4e3f_aaf5_37bf9ebf5e29); +::windows_core::imp::interface_hierarchy!(IEnumPluggableTerminalClassInfo, ::windows_core::IUnknown); impl IEnumPluggableTerminalClassInfo { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -2294,13 +2165,6 @@ impl IEnumPluggableTerminalClassInfo { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumPluggableTerminalClassInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumPluggableTerminalClassInfo { - type Vtable = IEnumPluggableTerminalClassInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumPluggableTerminalClassInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4567450c_dbee_4e3f_aaf5_37bf9ebf5e29); -} #[repr(C)] #[doc(hidden)] pub struct IEnumPluggableTerminalClassInfo_Vtbl { @@ -2313,9 +2177,8 @@ pub struct IEnumPluggableTerminalClassInfo_Vtbl { pub Skip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, celt: u32) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumQueue(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumQueue, IEnumQueue_Vtbl, 0x5afc3158_4bcc_11d1_bf80_00805fc147d3); +::windows_core::imp::interface_hierarchy!(IEnumQueue, ::windows_core::IUnknown); impl IEnumQueue { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -2333,13 +2196,6 @@ impl IEnumQueue { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumQueue, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumQueue { - type Vtable = IEnumQueue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumQueue { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5afc3158_4bcc_11d1_bf80_00805fc147d3); -} #[repr(C)] #[doc(hidden)] pub struct IEnumQueue_Vtbl { @@ -2352,9 +2208,8 @@ pub struct IEnumQueue_Vtbl { pub Skip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, celt: u32) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumStream(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumStream, IEnumStream_Vtbl, 0xee3bd606_3868_11d2_a045_00c04fb6809f); +::windows_core::imp::interface_hierarchy!(IEnumStream, ::windows_core::IUnknown); impl IEnumStream { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -2372,13 +2227,6 @@ impl IEnumStream { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumStream, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumStream { - type Vtable = IEnumStream_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumStream { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xee3bd606_3868_11d2_a045_00c04fb6809f); -} #[repr(C)] #[doc(hidden)] pub struct IEnumStream_Vtbl { @@ -2391,9 +2239,8 @@ pub struct IEnumStream_Vtbl { pub Skip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, celt: u32) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumSubStream(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumSubStream, IEnumSubStream_Vtbl, 0xee3bd609_3868_11d2_a045_00c04fb6809f); +::windows_core::imp::interface_hierarchy!(IEnumSubStream, ::windows_core::IUnknown); impl IEnumSubStream { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -2411,13 +2258,6 @@ impl IEnumSubStream { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumSubStream, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumSubStream { - type Vtable = IEnumSubStream_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumSubStream { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xee3bd609_3868_11d2_a045_00c04fb6809f); -} #[repr(C)] #[doc(hidden)] pub struct IEnumSubStream_Vtbl { @@ -2430,9 +2270,8 @@ pub struct IEnumSubStream_Vtbl { pub Skip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, celt: u32) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumTerminal(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumTerminal, IEnumTerminal_Vtbl, 0xae269cf4_935e_11d0_835c_00aa003ccabd); +::windows_core::imp::interface_hierarchy!(IEnumTerminal, ::windows_core::IUnknown); impl IEnumTerminal { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -2450,13 +2289,6 @@ impl IEnumTerminal { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumTerminal, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumTerminal { - type Vtable = IEnumTerminal_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumTerminal { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xae269cf4_935e_11d0_835c_00aa003ccabd); -} #[repr(C)] #[doc(hidden)] pub struct IEnumTerminal_Vtbl { @@ -2469,9 +2301,8 @@ pub struct IEnumTerminal_Vtbl { pub Skip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, celt: u32) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumTerminalClass(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumTerminalClass, IEnumTerminalClass_Vtbl, 0xae269cf5_935e_11d0_835c_00aa003ccabd); +::windows_core::imp::interface_hierarchy!(IEnumTerminalClass, ::windows_core::IUnknown); impl IEnumTerminalClass { pub unsafe fn Next(&self, pelements: &mut [::windows_core::GUID], pceltfetched: ::core::option::Option<*mut u32>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), pelements.len().try_into().unwrap(), ::core::mem::transmute(pelements.as_ptr()), ::core::mem::transmute(pceltfetched.unwrap_or(::std::ptr::null_mut()))).ok() @@ -2487,13 +2318,6 @@ impl IEnumTerminalClass { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumTerminalClass, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumTerminalClass { - type Vtable = IEnumTerminalClass_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumTerminalClass { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xae269cf5_935e_11d0_835c_00aa003ccabd); -} #[repr(C)] #[doc(hidden)] pub struct IEnumTerminalClass_Vtbl { @@ -2503,11 +2327,15 @@ pub struct IEnumTerminalClass_Vtbl { pub Skip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, celt: u32) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMcastAddressAllocation(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMcastAddressAllocation, + IMcastAddressAllocation_Vtbl, + 0xdf0daef1_a289_11d1_8697_006008b0e5d2 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMcastAddressAllocation, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMcastAddressAllocation { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2568,16 +2396,6 @@ impl IMcastAddressAllocation { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMcastAddressAllocation, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMcastAddressAllocation { - type Vtable = IMcastAddressAllocation_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMcastAddressAllocation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdf0daef1_a289_11d1_8697_006008b0e5d2); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMcastAddressAllocation_Vtbl { @@ -2608,11 +2426,15 @@ pub struct IMcastAddressAllocation_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] CreateLeaseInfoFromVariant: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMcastLeaseInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMcastLeaseInfo, + IMcastLeaseInfo_Vtbl, + 0xdf0daefd_a289_11d1_8697_006008b0e5d2 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMcastLeaseInfo, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMcastLeaseInfo { pub unsafe fn RequestID(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -2657,16 +2479,6 @@ impl IMcastLeaseInfo { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMcastLeaseInfo, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMcastLeaseInfo { - type Vtable = IMcastLeaseInfo_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMcastLeaseInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdf0daefd_a289_11d1_8697_006008b0e5d2); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMcastLeaseInfo_Vtbl { @@ -2685,11 +2497,15 @@ pub struct IMcastLeaseInfo_Vtbl { Addresses: usize, pub EnumerateAddresses: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenumaddresses: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMcastScope(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMcastScope, + IMcastScope_Vtbl, + 0xdf0daef4_a289_11d1_8697_006008b0e5d2 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMcastScope, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMcastScope { pub unsafe fn ScopeID(&self) -> ::windows_core::Result { @@ -2714,16 +2530,6 @@ impl IMcastScope { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMcastScope, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMcastScope { - type Vtable = IMcastScope_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMcastScope { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdf0daef4_a289_11d1_8697_006008b0e5d2); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMcastScope_Vtbl { @@ -2734,11 +2540,15 @@ pub struct IMcastScope_Vtbl { pub ScopeDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppdescription: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub TTL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pttl: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITACDGroup(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITACDGroup, + ITACDGroup_Vtbl, + 0x5afc3148_4bcc_11d1_bf80_00805fc147d3 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITACDGroup, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITACDGroup { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -2757,16 +2567,6 @@ impl ITACDGroup { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITACDGroup, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITACDGroup { - type Vtable = ITACDGroup_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITACDGroup { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5afc3148_4bcc_11d1_bf80_00805fc147d3); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITACDGroup_Vtbl { @@ -2778,11 +2578,15 @@ pub struct ITACDGroup_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] Queues: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITACDGroupEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITACDGroupEvent, + ITACDGroupEvent_Vtbl, + 0x297f3032_bd11_11d1_a0a7_00805fc147d3 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITACDGroupEvent, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITACDGroupEvent { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2797,16 +2601,6 @@ impl ITACDGroupEvent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITACDGroupEvent, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITACDGroupEvent { - type Vtable = ITACDGroupEvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITACDGroupEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x297f3032_bd11_11d1_a0a7_00805fc147d3); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITACDGroupEvent_Vtbl { @@ -2817,9 +2611,8 @@ pub struct ITACDGroupEvent_Vtbl { Group: usize, pub Event: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pevent: *mut ACDGROUP_EVENT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITAMMediaFormat(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITAMMediaFormat, ITAMMediaFormat_Vtbl, 0x0364eb00_4a77_11d1_a671_006097c9a2e8); +::windows_core::imp::interface_hierarchy!(ITAMMediaFormat, ::windows_core::IUnknown); impl ITAMMediaFormat { #[doc = "Required features: `\"Win32_Media_MediaFoundation\"`"] #[cfg(feature = "Win32_Media_MediaFoundation")] @@ -2833,13 +2626,6 @@ impl ITAMMediaFormat { (::windows_core::Interface::vtable(self).SetMediaFormat)(::windows_core::Interface::as_raw(self), pmt).ok() } } -::windows_core::imp::interface_hierarchy!(ITAMMediaFormat, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITAMMediaFormat { - type Vtable = ITAMMediaFormat_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITAMMediaFormat { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0364eb00_4a77_11d1_a671_006097c9a2e8); -} #[repr(C)] #[doc(hidden)] pub struct ITAMMediaFormat_Vtbl { @@ -2853,11 +2639,15 @@ pub struct ITAMMediaFormat_Vtbl { #[cfg(not(feature = "Win32_Media_MediaFoundation"))] SetMediaFormat: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITASRTerminalEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITASRTerminalEvent, + ITASRTerminalEvent_Vtbl, + 0xee016a02_4fa9_467c_933f_5a15b12377d7 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITASRTerminalEvent, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITASRTerminalEvent { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2878,16 +2668,6 @@ impl ITASRTerminalEvent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITASRTerminalEvent, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITASRTerminalEvent { - type Vtable = ITASRTerminalEvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITASRTerminalEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xee016a02_4fa9_467c_933f_5a15b12377d7); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITASRTerminalEvent_Vtbl { @@ -2902,11 +2682,15 @@ pub struct ITASRTerminalEvent_Vtbl { Call: usize, pub Error: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phrerrorcode: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITAddress(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITAddress, + ITAddress_Vtbl, + 0xb1efc386_9355_11d0_835c_00aa003ccabd +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITAddress, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITAddress { pub unsafe fn State(&self) -> ::windows_core::Result { @@ -2993,16 +2777,6 @@ impl ITAddress { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITAddress, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITAddress { - type Vtable = ITAddress_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITAddress { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb1efc386_9355_11d0_835c_00aa003ccabd); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITAddress_Vtbl { @@ -3041,11 +2815,15 @@ pub struct ITAddress_Vtbl { pub SetDoNotDisturb: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fdonotdisturb: super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub DoNotDisturb: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfdonotdisturb: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITAddress2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITAddress2, + ITAddress2_Vtbl, + 0xb0ae5d9b_be51_46c9_b0f7_dfa8a22a8bc4 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITAddress2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, ITAddress); #[cfg(feature = "Win32_System_Com")] impl ITAddress2 { pub unsafe fn State(&self) -> ::windows_core::Result { @@ -3191,16 +2969,6 @@ impl ITAddress2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITAddress2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, ITAddress); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITAddress2 { - type Vtable = ITAddress2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITAddress2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb0ae5d9b_be51_46c9_b0f7_dfa8a22a8bc4); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITAddress2_Vtbl { @@ -3231,11 +2999,15 @@ pub struct ITAddress2_Vtbl { DeviceSpecificVariant: usize, pub NegotiateExtVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, llowversion: i32, lhighversion: i32, plextversion: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITAddressCapabilities(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITAddressCapabilities, + ITAddressCapabilities_Vtbl, + 0x8df232f5_821b_11d1_bb5c_00c04fb6809f +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITAddressCapabilities, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITAddressCapabilities { pub unsafe fn get_AddressCapability(&self, addresscap: ADDRESS_CAPABILITY) -> ::windows_core::Result { @@ -3278,16 +3050,6 @@ impl ITAddressCapabilities { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITAddressCapabilities, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITAddressCapabilities { - type Vtable = ITAddressCapabilities_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITAddressCapabilities { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8df232f5_821b_11d1_bb5c_00c04fb6809f); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITAddressCapabilities_Vtbl { @@ -3310,11 +3072,15 @@ pub struct ITAddressCapabilities_Vtbl { DeviceClasses: usize, pub EnumerateDeviceClasses: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenumdeviceclass: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITAddressDeviceSpecificEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITAddressDeviceSpecificEvent, + ITAddressDeviceSpecificEvent_Vtbl, + 0x3acb216b_40bd_487a_8672_5ce77bd7e3a3 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITAddressDeviceSpecificEvent, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITAddressDeviceSpecificEvent { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3343,16 +3109,6 @@ impl ITAddressDeviceSpecificEvent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITAddressDeviceSpecificEvent, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITAddressDeviceSpecificEvent { - type Vtable = ITAddressDeviceSpecificEvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITAddressDeviceSpecificEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3acb216b_40bd_487a_8672_5ce77bd7e3a3); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITAddressDeviceSpecificEvent_Vtbl { @@ -3369,11 +3125,15 @@ pub struct ITAddressDeviceSpecificEvent_Vtbl { pub lParam2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pparam2: *mut i32) -> ::windows_core::HRESULT, pub lParam3: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pparam3: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITAddressEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITAddressEvent, + ITAddressEvent_Vtbl, + 0x831ce2d1_83b5_11d1_bb5c_00c04fb6809f +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITAddressEvent, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITAddressEvent { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3394,16 +3154,6 @@ impl ITAddressEvent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITAddressEvent, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITAddressEvent { - type Vtable = ITAddressEvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITAddressEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x831ce2d1_83b5_11d1_bb5c_00c04fb6809f); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITAddressEvent_Vtbl { @@ -3418,11 +3168,15 @@ pub struct ITAddressEvent_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Terminal: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITAddressTranslation(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITAddressTranslation, + ITAddressTranslation_Vtbl, + 0x0c4d8f03_8ddb_11d1_a09e_00805fc147d3 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITAddressTranslation, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITAddressTranslation { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3462,16 +3216,6 @@ impl ITAddressTranslation { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITAddressTranslation, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITAddressTranslation { - type Vtable = ITAddressTranslation_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITAddressTranslation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c4d8f03_8ddb_11d1_a09e_00805fc147d3); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITAddressTranslation_Vtbl { @@ -3492,11 +3236,15 @@ pub struct ITAddressTranslation_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] CallingCards: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITAddressTranslationInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITAddressTranslationInfo, + ITAddressTranslationInfo_Vtbl, + 0xafc15945_8d40_11d1_a09e_00805fc147d3 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITAddressTranslationInfo, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITAddressTranslationInfo { pub unsafe fn DialableString(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -3521,16 +3269,6 @@ impl ITAddressTranslationInfo { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITAddressTranslationInfo, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITAddressTranslationInfo { - type Vtable = ITAddressTranslationInfo_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITAddressTranslationInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xafc15945_8d40_11d1_a09e_00805fc147d3); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITAddressTranslationInfo_Vtbl { @@ -3541,11 +3279,15 @@ pub struct ITAddressTranslationInfo_Vtbl { pub DestinationCountryCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, countrycode: *mut i32) -> ::windows_core::HRESULT, pub TranslationResults: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plresults: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITAgent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITAgent, + ITAgent_Vtbl, + 0x5770ece5_4b27_11d1_bf80_00805fc147d3 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITAgent, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITAgent { pub unsafe fn EnumerateAgentSessions(&self) -> ::windows_core::Result { @@ -3633,16 +3375,6 @@ impl ITAgent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITAgent, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITAgent { - type Vtable = ITAgent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITAgent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5770ece5_4b27_11d1_bf80_00805fc147d3); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITAgent_Vtbl { @@ -3677,11 +3409,15 @@ pub struct ITAgent_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] AgentSessions: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITAgentEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITAgentEvent, + ITAgentEvent_Vtbl, + 0x5afc314a_4bcc_11d1_bf80_00805fc147d3 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITAgentEvent, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITAgentEvent { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3696,16 +3432,6 @@ impl ITAgentEvent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITAgentEvent, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITAgentEvent { - type Vtable = ITAgentEvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITAgentEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5afc314a_4bcc_11d1_bf80_00805fc147d3); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITAgentEvent_Vtbl { @@ -3716,11 +3442,15 @@ pub struct ITAgentEvent_Vtbl { Agent: usize, pub Event: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pevent: *mut AGENT_EVENT) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITAgentHandler(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITAgentHandler, + ITAgentHandler_Vtbl, + 0x587e8c22_9802_11d1_a0a4_00805fc147d3 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITAgentHandler, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITAgentHandler { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -3765,16 +3495,6 @@ impl ITAgentHandler { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITAgentHandler, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITAgentHandler { - type Vtable = ITAgentHandler_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITAgentHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x587e8c22_9802_11d1_a0a4_00805fc147d3); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITAgentHandler_Vtbl { @@ -3799,11 +3519,15 @@ pub struct ITAgentHandler_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] UsableAddresses: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITAgentHandlerEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITAgentHandlerEvent, + ITAgentHandlerEvent_Vtbl, + 0x297f3034_bd11_11d1_a0a7_00805fc147d3 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITAgentHandlerEvent, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITAgentHandlerEvent { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3818,16 +3542,6 @@ impl ITAgentHandlerEvent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITAgentHandlerEvent, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITAgentHandlerEvent { - type Vtable = ITAgentHandlerEvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITAgentHandlerEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x297f3034_bd11_11d1_a0a7_00805fc147d3); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITAgentHandlerEvent_Vtbl { @@ -3838,11 +3552,15 @@ pub struct ITAgentHandlerEvent_Vtbl { AgentHandler: usize, pub Event: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pevent: *mut AGENTHANDLER_EVENT) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITAgentSession(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITAgentSession, + ITAgentSession_Vtbl, + 0x5afc3147_4bcc_11d1_bf80_00805fc147d3 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITAgentSession, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITAgentSession { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3922,16 +3640,6 @@ impl ITAgentSession { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITAgentSession, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITAgentSession { - type Vtable = ITAgentSession_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITAgentSession { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5afc3147_4bcc_11d1_bf80_00805fc147d3); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITAgentSession_Vtbl { @@ -3966,11 +3674,15 @@ pub struct ITAgentSession_Vtbl { pub LongestTimeToAnswer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, planswertime: *mut i32) -> ::windows_core::HRESULT, pub AverageTimeToAnswer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, planswertime: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITAgentSessionEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITAgentSessionEvent, + ITAgentSessionEvent_Vtbl, + 0x5afc314b_4bcc_11d1_bf80_00805fc147d3 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITAgentSessionEvent, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITAgentSessionEvent { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3985,16 +3697,6 @@ impl ITAgentSessionEvent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITAgentSessionEvent, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITAgentSessionEvent { - type Vtable = ITAgentSessionEvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITAgentSessionEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5afc314b_4bcc_11d1_bf80_00805fc147d3); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITAgentSessionEvent_Vtbl { @@ -4005,9 +3707,8 @@ pub struct ITAgentSessionEvent_Vtbl { Session: usize, pub Event: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pevent: *mut AGENT_SESSION_EVENT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITAllocatorProperties(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITAllocatorProperties, ITAllocatorProperties_Vtbl, 0xc1bc3c90_bcfe_11d1_9745_00c04fd91ac0); +::windows_core::imp::interface_hierarchy!(ITAllocatorProperties, ::windows_core::IUnknown); impl ITAllocatorProperties { #[doc = "Required features: `\"Win32_Media_DirectShow\"`"] #[cfg(feature = "Win32_Media_DirectShow")] @@ -4038,13 +3739,6 @@ impl ITAllocatorProperties { (::windows_core::Interface::vtable(self).GetBufferSize)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITAllocatorProperties, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITAllocatorProperties { - type Vtable = ITAllocatorProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITAllocatorProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc1bc3c90_bcfe_11d1_9745_00c04fd91ac0); -} #[repr(C)] #[doc(hidden)] pub struct ITAllocatorProperties_Vtbl { @@ -4062,11 +3756,15 @@ pub struct ITAllocatorProperties_Vtbl { pub SetBufferSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, buffersize: u32) -> ::windows_core::HRESULT, pub GetBufferSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbuffersize: *mut u32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITAutomatedPhoneControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITAutomatedPhoneControl, + ITAutomatedPhoneControl_Vtbl, + 0x1ee1af0e_6159_4a61_b79b_6a4ba3fc9dfc +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITAutomatedPhoneControl, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITAutomatedPhoneControl { pub unsafe fn StartTone(&self, tone: PHONE_TONE, lduration: i32) -> ::windows_core::Result<()> { @@ -4213,16 +3911,6 @@ impl ITAutomatedPhoneControl { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITAutomatedPhoneControl, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITAutomatedPhoneControl { - type Vtable = ITAutomatedPhoneControl_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITAutomatedPhoneControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1ee1af0e_6159_4a61_b79b_6a4ba3fc9dfc); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITAutomatedPhoneControl_Vtbl { @@ -4269,11 +3957,15 @@ pub struct ITAutomatedPhoneControl_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] SelectedCalls: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITBasicAudioTerminal(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITBasicAudioTerminal, + ITBasicAudioTerminal_Vtbl, + 0xb1efc38d_9355_11d0_835c_00aa003ccabd +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITBasicAudioTerminal, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITBasicAudioTerminal { pub unsafe fn SetVolume(&self, lvolume: i32) -> ::windows_core::Result<()> { @@ -4292,16 +3984,6 @@ impl ITBasicAudioTerminal { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITBasicAudioTerminal, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITBasicAudioTerminal { - type Vtable = ITBasicAudioTerminal_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITBasicAudioTerminal { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb1efc38d_9355_11d0_835c_00aa003ccabd); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITBasicAudioTerminal_Vtbl { @@ -4311,11 +3993,15 @@ pub struct ITBasicAudioTerminal_Vtbl { pub SetBalance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lbalance: i32) -> ::windows_core::HRESULT, pub Balance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plbalance: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITBasicCallControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITBasicCallControl, + ITBasicCallControl_Vtbl, + 0xb1efc389_9355_11d0_835c_00aa003ccabd +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITBasicCallControl, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITBasicCallControl { pub unsafe fn Connect(&self, fsync: P0) -> ::windows_core::Result<()> @@ -4413,16 +4099,6 @@ impl ITBasicCallControl { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITBasicCallControl, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITBasicCallControl { - type Vtable = ITBasicCallControl_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITBasicCallControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb1efc389_9355_11d0_835c_00aa003ccabd); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITBasicCallControl_Vtbl { @@ -4455,11 +4131,15 @@ pub struct ITBasicCallControl_Vtbl { pub Finish: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, finishmode: FINISH_MODE) -> ::windows_core::HRESULT, pub RemoveFromConference: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITBasicCallControl2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITBasicCallControl2, + ITBasicCallControl2_Vtbl, + 0x161a4a56_1e99_4b3f_a46a_168f38a5ee4c +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITBasicCallControl2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, ITBasicCallControl); #[cfg(feature = "Win32_System_Com")] impl ITBasicCallControl2 { pub unsafe fn Connect(&self, fsync: P0) -> ::windows_core::Result<()> @@ -4582,16 +4262,6 @@ impl ITBasicCallControl2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITBasicCallControl2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, ITBasicCallControl); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITBasicCallControl2 { - type Vtable = ITBasicCallControl2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITBasicCallControl2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x161a4a56_1e99_4b3f_a46a_168f38a5ee4c); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITBasicCallControl2_Vtbl { @@ -4609,11 +4279,15 @@ pub struct ITBasicCallControl2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] UnselectTerminalOnCall: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITCallHub(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITCallHub, + ITCallHub_Vtbl, + 0xa3c1544e_5b92_11d1_8f4e_00c04fb6809f +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITCallHub, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITCallHub { pub unsafe fn Clear(&self) -> ::windows_core::Result<()> { @@ -4639,16 +4313,6 @@ impl ITCallHub { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITCallHub, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITCallHub { - type Vtable = ITCallHub_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITCallHub { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa3c1544e_5b92_11d1_8f4e_00c04fb6809f); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITCallHub_Vtbl { @@ -4662,11 +4326,15 @@ pub struct ITCallHub_Vtbl { pub NumCalls: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plcalls: *mut i32) -> ::windows_core::HRESULT, pub State: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstate: *mut CALLHUB_STATE) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITCallHubEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITCallHubEvent, + ITCallHubEvent_Vtbl, + 0xa3c15451_5b92_11d1_8f4e_00c04fb6809f +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITCallHubEvent, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITCallHubEvent { pub unsafe fn Event(&self) -> ::windows_core::Result { @@ -4687,16 +4355,6 @@ impl ITCallHubEvent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITCallHubEvent, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITCallHubEvent { - type Vtable = ITCallHubEvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITCallHubEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa3c15451_5b92_11d1_8f4e_00c04fb6809f); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITCallHubEvent_Vtbl { @@ -4711,11 +4369,15 @@ pub struct ITCallHubEvent_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Call: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITCallInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITCallInfo, + ITCallInfo_Vtbl, + 0x350f85d1_1227_11d3_83d4_00c04fb6809f +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITCallInfo, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITCallInfo { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -4777,16 +4439,6 @@ impl ITCallInfo { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITCallInfo, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITCallInfo { - type Vtable = ITCallInfo_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITCallInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x350f85d1_1227_11d3_83d4_00c04fb6809f); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITCallInfo_Vtbl { @@ -4817,11 +4469,15 @@ pub struct ITCallInfo_Vtbl { pub SetCallInfoBuffer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, callinfobuffer: CALLINFO_BUFFER, dwsize: u32, pcallinfobuffer: *const u8) -> ::windows_core::HRESULT, pub ReleaseUserUserInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITCallInfo2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITCallInfo2, + ITCallInfo2_Vtbl, + 0x94d70ca6_7ab0_4daa_81ca_b8f8643faec1 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITCallInfo2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, ITCallInfo); #[cfg(feature = "Win32_System_Com")] impl ITCallInfo2 { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -4893,16 +4549,6 @@ impl ITCallInfo2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITCallInfo2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, ITCallInfo); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITCallInfo2 { - type Vtable = ITCallInfo2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITCallInfo2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x94d70ca6_7ab0_4daa_81ca_b8f8643faec1); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITCallInfo2_Vtbl { @@ -4910,11 +4556,15 @@ pub struct ITCallInfo2_Vtbl { pub get_EventFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, tapievent: TAPI_EVENT, lsubevent: i32, penable: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub put_EventFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, tapievent: TAPI_EVENT, lsubevent: i32, benable: super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITCallInfoChangeEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITCallInfoChangeEvent, + ITCallInfoChangeEvent_Vtbl, + 0x5d4b65f9_e51c_11d1_a02f_00c04fb6809f +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITCallInfoChangeEvent, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITCallInfoChangeEvent { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -4933,16 +4583,6 @@ impl ITCallInfoChangeEvent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITCallInfoChangeEvent, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITCallInfoChangeEvent { - type Vtable = ITCallInfoChangeEvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITCallInfoChangeEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5d4b65f9_e51c_11d1_a02f_00c04fb6809f); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITCallInfoChangeEvent_Vtbl { @@ -4954,11 +4594,15 @@ pub struct ITCallInfoChangeEvent_Vtbl { pub Cause: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcic: *mut CALLINFOCHANGE_CAUSE) -> ::windows_core::HRESULT, pub CallbackInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plcallbackinstance: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITCallMediaEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITCallMediaEvent, + ITCallMediaEvent_Vtbl, + 0xff36b87f_ec3a_11d0_8ee4_00c04fb6809f +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITCallMediaEvent, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITCallMediaEvent { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -4993,16 +4637,6 @@ impl ITCallMediaEvent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITCallMediaEvent, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITCallMediaEvent { - type Vtable = ITCallMediaEvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITCallMediaEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xff36b87f_ec3a_11d0_8ee4_00c04fb6809f); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITCallMediaEvent_Vtbl { @@ -5023,11 +4657,15 @@ pub struct ITCallMediaEvent_Vtbl { Stream: usize, pub Cause: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcause: *mut CALL_MEDIA_EVENT_CAUSE) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITCallNotificationEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITCallNotificationEvent, + ITCallNotificationEvent_Vtbl, + 0x895801df_3dd6_11d1_8f30_00c04fb6809f +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITCallNotificationEvent, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITCallNotificationEvent { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -5046,16 +4684,6 @@ impl ITCallNotificationEvent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITCallNotificationEvent, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITCallNotificationEvent { - type Vtable = ITCallNotificationEvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITCallNotificationEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x895801df_3dd6_11d1_8f30_00c04fb6809f); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITCallNotificationEvent_Vtbl { @@ -5067,11 +4695,15 @@ pub struct ITCallNotificationEvent_Vtbl { pub Event: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcallnotificationevent: *mut CALL_NOTIFICATION_EVENT) -> ::windows_core::HRESULT, pub CallbackInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plcallbackinstance: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITCallStateEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITCallStateEvent, + ITCallStateEvent_Vtbl, + 0x62f47097_95c9_11d0_835d_00aa003ccabd +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITCallStateEvent, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITCallStateEvent { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -5094,16 +4726,6 @@ impl ITCallStateEvent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITCallStateEvent, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITCallStateEvent { - type Vtable = ITCallStateEvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITCallStateEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x62f47097_95c9_11d0_835d_00aa003ccabd); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITCallStateEvent_Vtbl { @@ -5116,11 +4738,15 @@ pub struct ITCallStateEvent_Vtbl { pub Cause: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcec: *mut CALL_STATE_EVENT_CAUSE) -> ::windows_core::HRESULT, pub CallbackInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plcallbackinstance: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITCallingCard(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITCallingCard, + ITCallingCard_Vtbl, + 0x0c4d8f00_8ddb_11d1_a09e_00805fc147d3 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITCallingCard, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITCallingCard { pub unsafe fn PermanentCardID(&self) -> ::windows_core::Result { @@ -5153,16 +4779,6 @@ impl ITCallingCard { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITCallingCard, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITCallingCard { - type Vtable = ITCallingCard_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITCallingCard { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c4d8f00_8ddb_11d1_a09e_00805fc147d3); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITCallingCard_Vtbl { @@ -5175,11 +4791,15 @@ pub struct ITCallingCard_Vtbl { pub LongDistanceDialingRule: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pprule: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub InternationalDialingRule: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pprule: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITCollection, + ITCollection_Vtbl, + 0x5ec5acf2_9c02_11d0_8362_00aa003ccabd +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITCollection, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITCollection { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -5198,16 +4818,6 @@ impl ITCollection { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITCollection, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITCollection { - type Vtable = ITCollection_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5ec5acf2_9c02_11d0_8362_00aa003ccabd); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITCollection_Vtbl { @@ -5219,11 +4829,15 @@ pub struct ITCollection_Vtbl { get_Item: usize, pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppnewenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITCollection2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITCollection2, + ITCollection2_Vtbl, + 0xe6dddda5_a6d3_48ff_8737_d32fc4d95477 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITCollection2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, ITCollection); #[cfg(feature = "Win32_System_Com")] impl ITCollection2 { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -5250,16 +4864,6 @@ impl ITCollection2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITCollection2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, ITCollection); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITCollection2 { - type Vtable = ITCollection2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITCollection2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe6dddda5_a6d3_48ff_8737_d32fc4d95477); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITCollection2_Vtbl { @@ -5270,11 +4874,15 @@ pub struct ITCollection2_Vtbl { Add: usize, pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITCustomTone(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITCustomTone, + ITCustomTone_Vtbl, + 0x357ad764_b3c6_4b2a_8fa5_0722827a9254 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITCustomTone, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITCustomTone { pub unsafe fn Frequency(&self) -> ::windows_core::Result { @@ -5307,16 +4915,6 @@ impl ITCustomTone { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITCustomTone, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITCustomTone { - type Vtable = ITCustomTone_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITCustomTone { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x357ad764_b3c6_4b2a_8fa5_0722827a9254); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITCustomTone_Vtbl { @@ -5330,11 +4928,15 @@ pub struct ITCustomTone_Vtbl { pub Volume: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plvolume: *mut i32) -> ::windows_core::HRESULT, pub SetVolume: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lvolume: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITDetectTone(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITDetectTone, + ITDetectTone_Vtbl, + 0x961f79bd_3097_49df_a1d6_909b77e89ca0 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITDetectTone, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITDetectTone { pub unsafe fn AppSpecific(&self) -> ::windows_core::Result { @@ -5360,16 +4962,6 @@ impl ITDetectTone { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITDetectTone, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITDetectTone { - type Vtable = ITDetectTone_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITDetectTone { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x961f79bd_3097_49df_a1d6_909b77e89ca0); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITDetectTone_Vtbl { @@ -5381,11 +4973,15 @@ pub struct ITDetectTone_Vtbl { pub get_Frequency: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32, plfrequency: *mut i32) -> ::windows_core::HRESULT, pub put_Frequency: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32, lfrequency: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITDigitDetectionEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITDigitDetectionEvent, + ITDigitDetectionEvent_Vtbl, + 0x80d3bfac_57d9_11d2_a04a_00c04fb6809f +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITDigitDetectionEvent, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITDigitDetectionEvent { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -5412,16 +5008,6 @@ impl ITDigitDetectionEvent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITDigitDetectionEvent, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITDigitDetectionEvent { - type Vtable = ITDigitDetectionEvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITDigitDetectionEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x80d3bfac_57d9_11d2_a04a_00c04fb6809f); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITDigitDetectionEvent_Vtbl { @@ -5435,11 +5021,15 @@ pub struct ITDigitDetectionEvent_Vtbl { pub TickCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pltickcount: *mut i32) -> ::windows_core::HRESULT, pub CallbackInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plcallbackinstance: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITDigitGenerationEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITDigitGenerationEvent, + ITDigitGenerationEvent_Vtbl, + 0x80d3bfad_57d9_11d2_a04a_00c04fb6809f +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITDigitGenerationEvent, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITDigitGenerationEvent { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -5462,16 +5052,6 @@ impl ITDigitGenerationEvent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITDigitGenerationEvent, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITDigitGenerationEvent { - type Vtable = ITDigitGenerationEvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITDigitGenerationEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x80d3bfad_57d9_11d2_a04a_00c04fb6809f); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITDigitGenerationEvent_Vtbl { @@ -5484,11 +5064,15 @@ pub struct ITDigitGenerationEvent_Vtbl { pub TickCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pltickcount: *mut i32) -> ::windows_core::HRESULT, pub CallbackInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plcallbackinstance: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITDigitsGatheredEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITDigitsGatheredEvent, + ITDigitsGatheredEvent_Vtbl, + 0xe52ec4c1_cba3_441a_9e6a_93cb909e9724 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITDigitsGatheredEvent, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITDigitsGatheredEvent { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -5515,16 +5099,6 @@ impl ITDigitsGatheredEvent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITDigitsGatheredEvent, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITDigitsGatheredEvent { - type Vtable = ITDigitsGatheredEvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITDigitsGatheredEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe52ec4c1_cba3_441a_9e6a_93cb909e9724); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITDigitsGatheredEvent_Vtbl { @@ -5538,11 +5112,15 @@ pub struct ITDigitsGatheredEvent_Vtbl { pub TickCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pltickcount: *mut i32) -> ::windows_core::HRESULT, pub CallbackInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plcallbackinstance: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITDirectory(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITDirectory, + ITDirectory_Vtbl, + 0x34621d6c_6cff_11d1_aff7_00c04fc31fee +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITDirectory, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITDirectory { pub unsafe fn DirectoryType(&self) -> ::windows_core::Result { @@ -5634,16 +5212,6 @@ impl ITDirectory { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITDirectory, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITDirectory { - type Vtable = ITDirectory_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITDirectory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x34621d6c_6cff_11d1_aff7_00c04fc31fee); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITDirectory_Vtbl { @@ -5678,11 +5246,15 @@ pub struct ITDirectory_Vtbl { get_DirectoryObjects: usize, pub EnumerateDirectoryObjects: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, directoryobjecttype: DIRECTORY_OBJECT_TYPE, pname: ::std::mem::MaybeUninit<::windows_core::BSTR>, ppenumobject: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITDirectoryObject(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITDirectoryObject, + ITDirectoryObject_Vtbl, + 0x34621d6e_6cff_11d1_aff7_00c04fc31fee +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITDirectoryObject, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITDirectoryObject { pub unsafe fn ObjectType(&self) -> ::windows_core::Result { @@ -5725,16 +5297,6 @@ impl ITDirectoryObject { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITDirectoryObject, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITDirectoryObject { - type Vtable = ITDirectoryObject_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITDirectoryObject { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x34621d6e_6cff_11d1_aff7_00c04fc31fee); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITDirectoryObject_Vtbl { @@ -5756,11 +5318,15 @@ pub struct ITDirectoryObject_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] SetSecurityDescriptor: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITDirectoryObjectConference(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITDirectoryObjectConference, + ITDirectoryObjectConference_Vtbl, + 0xf1029e5d_cb5b_11d0_8d59_00c04fd91ac0 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITDirectoryObjectConference, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITDirectoryObjectConference { pub unsafe fn Protocol(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -5830,16 +5396,6 @@ impl ITDirectoryObjectConference { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITDirectoryObjectConference, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITDirectoryObjectConference { - type Vtable = ITDirectoryObjectConference_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITDirectoryObjectConference { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf1029e5d_cb5b_11d0_8d59_00c04fd91ac0); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITDirectoryObjectConference_Vtbl { @@ -5860,11 +5416,15 @@ pub struct ITDirectoryObjectConference_Vtbl { pub StopTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdate: *mut f64) -> ::windows_core::HRESULT, pub SetStopTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, date: f64) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITDirectoryObjectUser(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITDirectoryObjectUser, + ITDirectoryObjectUser_Vtbl, + 0x34621d6f_6cff_11d1_aff7_00c04fc31fee +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITDirectoryObjectUser, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITDirectoryObjectUser { pub unsafe fn IPPhonePrimary(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -5879,16 +5439,6 @@ impl ITDirectoryObjectUser { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITDirectoryObjectUser, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITDirectoryObjectUser { - type Vtable = ITDirectoryObjectUser_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITDirectoryObjectUser { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x34621d6f_6cff_11d1_aff7_00c04fc31fee); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITDirectoryObjectUser_Vtbl { @@ -5896,11 +5446,15 @@ pub struct ITDirectoryObjectUser_Vtbl { pub IPPhonePrimary: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppname: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SetIPPhonePrimary: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pname: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITDispatchMapper(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITDispatchMapper, + ITDispatchMapper_Vtbl, + 0xe9225295_c759_11d1_a02b_00c04fb6809f +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITDispatchMapper, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITDispatchMapper { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -5915,16 +5469,6 @@ impl ITDispatchMapper { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITDispatchMapper, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITDispatchMapper { - type Vtable = ITDispatchMapper_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITDispatchMapper { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe9225295_c759_11d1_a02b_00c04fb6809f); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITDispatchMapper_Vtbl { @@ -5934,11 +5478,15 @@ pub struct ITDispatchMapper_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] QueryDispatchInterface: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITFileTerminalEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITFileTerminalEvent, + ITFileTerminalEvent_Vtbl, + 0xe4a7fbac_8c17_4427_9f55_9f589ac8af00 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITFileTerminalEvent, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITFileTerminalEvent { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -5973,16 +5521,6 @@ impl ITFileTerminalEvent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITFileTerminalEvent, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITFileTerminalEvent { - type Vtable = ITFileTerminalEvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITFileTerminalEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe4a7fbac_8c17_4427_9f55_9f589ac8af00); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITFileTerminalEvent_Vtbl { @@ -6003,11 +5541,15 @@ pub struct ITFileTerminalEvent_Vtbl { pub Cause: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcause: *mut FT_STATE_EVENT_CAUSE) -> ::windows_core::HRESULT, pub Error: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phrerrorcode: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITFileTrack(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITFileTrack, + ITFileTrack_Vtbl, + 0x31ca6ea9_c08a_4bea_8811_8e9c1ba3ea3a +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITFileTrack, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITFileTrack { #[doc = "Required features: `\"Win32_Media_MediaFoundation\"`"] @@ -6049,16 +5591,6 @@ impl ITFileTrack { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITFileTrack, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITFileTrack { - type Vtable = ITFileTrack_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITFileTrack { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x31ca6ea9_c08a_4bea_8811_8e9c1ba3ea3a); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITFileTrack_Vtbl { @@ -6088,11 +5620,15 @@ pub struct ITFileTrack_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] EmptyAudioFormatForScripting: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITForwardInformation(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITForwardInformation, + ITForwardInformation_Vtbl, + 0x449f659e_88a3_11d1_bb5d_00c04fb6809f +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITForwardInformation, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITForwardInformation { pub unsafe fn SetNumRingsNoAnswer(&self, lnumrings: i32) -> ::windows_core::Result<()> { @@ -6125,16 +5661,6 @@ impl ITForwardInformation { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITForwardInformation, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITForwardInformation { - type Vtable = ITForwardInformation_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITForwardInformation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x449f659e_88a3_11d1_bb5d_00c04fb6809f); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITForwardInformation_Vtbl { @@ -6147,11 +5673,15 @@ pub struct ITForwardInformation_Vtbl { pub GetForwardType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, forwardtype: i32, ppdestinationaddress: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>, ppcalleraddress: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub Clear: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITForwardInformation2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITForwardInformation2, + ITForwardInformation2_Vtbl, + 0x5229b4ed_b260_4382_8e1a_5df3a8a4ccc0 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITForwardInformation2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, ITForwardInformation); #[cfg(feature = "Win32_System_Com")] impl ITForwardInformation2 { pub unsafe fn SetNumRingsNoAnswer(&self, lnumrings: i32) -> ::windows_core::Result<()> { @@ -6202,16 +5732,6 @@ impl ITForwardInformation2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITForwardInformation2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, ITForwardInformation); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITForwardInformation2 { - type Vtable = ITForwardInformation2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITForwardInformation2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5229b4ed_b260_4382_8e1a_5df3a8a4ccc0); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITForwardInformation2_Vtbl { @@ -6221,11 +5741,15 @@ pub struct ITForwardInformation2_Vtbl { pub get_ForwardTypeDestinationAddressType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, forwardtype: i32, pdestaddresstype: *mut i32) -> ::windows_core::HRESULT, pub get_ForwardTypeCallerAddressType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, forwardtype: i32, pcalleraddresstype: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITILSConfig(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITILSConfig, + ITILSConfig_Vtbl, + 0x34621d72_6cff_11d1_aff7_00c04fc31fee +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITILSConfig, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITILSConfig { pub unsafe fn Port(&self) -> ::windows_core::Result { @@ -6237,16 +5761,6 @@ impl ITILSConfig { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITILSConfig, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITILSConfig { - type Vtable = ITILSConfig_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITILSConfig { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x34621d72_6cff_11d1_aff7_00c04fc31fee); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITILSConfig_Vtbl { @@ -6254,9 +5768,8 @@ pub struct ITILSConfig_Vtbl { pub Port: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pport: *mut i32) -> ::windows_core::HRESULT, pub SetPort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, port: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITLegacyAddressMediaControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITLegacyAddressMediaControl, ITLegacyAddressMediaControl_Vtbl, 0xab493640_4c0b_11d2_a046_00c04fb6809f); +::windows_core::imp::interface_hierarchy!(ITLegacyAddressMediaControl, ::windows_core::IUnknown); impl ITLegacyAddressMediaControl { pub unsafe fn GetID(&self, pdeviceclass: P0, pdwsize: *mut u32, ppdeviceid: *mut *mut u8) -> ::windows_core::Result<()> where @@ -6277,13 +5790,6 @@ impl ITLegacyAddressMediaControl { (::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::imp::interface_hierarchy!(ITLegacyAddressMediaControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITLegacyAddressMediaControl { - type Vtable = ITLegacyAddressMediaControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITLegacyAddressMediaControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xab493640_4c0b_11d2_a046_00c04fb6809f); -} #[repr(C)] #[doc(hidden)] pub struct ITLegacyAddressMediaControl_Vtbl { @@ -6292,9 +5798,8 @@ pub struct ITLegacyAddressMediaControl_Vtbl { pub GetDevConfig: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdeviceclass: ::std::mem::MaybeUninit<::windows_core::BSTR>, pdwsize: *mut u32, ppdeviceconfig: *mut *mut u8) -> ::windows_core::HRESULT, pub SetDevConfig: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdeviceclass: ::std::mem::MaybeUninit<::windows_core::BSTR>, dwsize: u32, pdeviceconfig: *const u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITLegacyAddressMediaControl2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITLegacyAddressMediaControl2, ITLegacyAddressMediaControl2_Vtbl, 0xb0ee512b_a531_409e_9dd9_4099fe86c738); +::windows_core::imp::interface_hierarchy!(ITLegacyAddressMediaControl2, ::windows_core::IUnknown, ITLegacyAddressMediaControl); impl ITLegacyAddressMediaControl2 { pub unsafe fn GetID(&self, pdeviceclass: P0, pdwsize: *mut u32, ppdeviceid: *mut *mut u8) -> ::windows_core::Result<()> where @@ -6329,13 +5834,6 @@ impl ITLegacyAddressMediaControl2 { (::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::imp::interface_hierarchy!(ITLegacyAddressMediaControl2, ::windows_core::IUnknown, ITLegacyAddressMediaControl); -unsafe impl ::windows_core::Interface for ITLegacyAddressMediaControl2 { - type Vtable = ITLegacyAddressMediaControl2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITLegacyAddressMediaControl2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb0ee512b_a531_409e_9dd9_4099fe86c738); -} #[repr(C)] #[doc(hidden)] pub struct ITLegacyAddressMediaControl2_Vtbl { @@ -6343,11 +5841,15 @@ pub struct ITLegacyAddressMediaControl2_Vtbl { pub ConfigDialog: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwndowner: super::super::Foundation::HWND, pdeviceclass: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub ConfigDialogEdit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwndowner: super::super::Foundation::HWND, pdeviceclass: ::std::mem::MaybeUninit<::windows_core::BSTR>, dwsizein: u32, pdeviceconfigin: *const u8, pdwsizeout: *mut u32, ppdeviceconfigout: *mut *mut u8) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITLegacyCallMediaControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITLegacyCallMediaControl, + ITLegacyCallMediaControl_Vtbl, + 0xd624582f_cc23_4436_b8a5_47c625c8045d +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITLegacyCallMediaControl, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITLegacyCallMediaControl { pub unsafe fn DetectDigits(&self, digitmode: i32) -> ::windows_core::Result<()> { @@ -6373,16 +5875,6 @@ impl ITLegacyCallMediaControl { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITLegacyCallMediaControl, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITLegacyCallMediaControl { - type Vtable = ITLegacyCallMediaControl_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITLegacyCallMediaControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd624582f_cc23_4436_b8a5_47c625c8045d); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITLegacyCallMediaControl_Vtbl { @@ -6393,11 +5885,15 @@ pub struct ITLegacyCallMediaControl_Vtbl { pub SetMediaType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lmediatype: i32) -> ::windows_core::HRESULT, pub MonitorMedia: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lmediatype: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITLegacyCallMediaControl2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITLegacyCallMediaControl2, + ITLegacyCallMediaControl2_Vtbl, + 0x57ca332d_7bc2_44f1_a60c_936fe8d7ce73 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITLegacyCallMediaControl2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, ITLegacyCallMediaControl); #[cfg(feature = "Win32_System_Com")] impl ITLegacyCallMediaControl2 { pub unsafe fn DetectDigits(&self, digitmode: i32) -> ::windows_core::Result<()> { @@ -6481,16 +5977,6 @@ impl ITLegacyCallMediaControl2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITLegacyCallMediaControl2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, ITLegacyCallMediaControl); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITLegacyCallMediaControl2 { - type Vtable = ITLegacyCallMediaControl2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITLegacyCallMediaControl2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x57ca332d_7bc2_44f1_a60c_936fe8d7ce73); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITLegacyCallMediaControl2_Vtbl { @@ -6521,11 +6007,15 @@ pub struct ITLegacyCallMediaControl2_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] GetIDAsVariant: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITLegacyWaveSupport(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITLegacyWaveSupport, + ITLegacyWaveSupport_Vtbl, + 0x207823ea_e252_11d2_b77e_0080c7135381 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITLegacyWaveSupport, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITLegacyWaveSupport { pub unsafe fn IsFullDuplex(&self) -> ::windows_core::Result { @@ -6534,27 +6024,21 @@ impl ITLegacyWaveSupport { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITLegacyWaveSupport, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITLegacyWaveSupport { - type Vtable = ITLegacyWaveSupport_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITLegacyWaveSupport { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x207823ea_e252_11d2_b77e_0080c7135381); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITLegacyWaveSupport_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, pub IsFullDuplex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psupport: *mut FULLDUPLEX_SUPPORT) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITLocationInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITLocationInfo, + ITLocationInfo_Vtbl, + 0x0c4d8eff_8ddb_11d1_a09e_00805fc147d3 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITLocationInfo, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITLocationInfo { pub unsafe fn PermanentLocationID(&self) -> ::windows_core::Result { @@ -6603,16 +6087,6 @@ impl ITLocationInfo { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITLocationInfo, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITLocationInfo { - type Vtable = ITLocationInfo_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITLocationInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c4d8eff_8ddb_11d1_a09e_00805fc147d3); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITLocationInfo_Vtbl { @@ -6629,9 +6103,8 @@ pub struct ITLocationInfo_Vtbl { pub TollPrefixList: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pptolllist: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub CancelCallWaitingCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppcode: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITMSPAddress(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITMSPAddress, ITMSPAddress_Vtbl, 0xee3bd600_3868_11d2_a045_00c04fb6809f); +::windows_core::imp::interface_hierarchy!(ITMSPAddress, ::windows_core::IUnknown); impl ITMSPAddress { pub unsafe fn Initialize(&self, hevent: *const i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Initialize)(::windows_core::Interface::as_raw(self), hevent).ok() @@ -6662,13 +6135,6 @@ impl ITMSPAddress { (::windows_core::Interface::vtable(self).GetEvent)(::windows_core::Interface::as_raw(self), pdwsize, peventbuffer).ok() } } -::windows_core::imp::interface_hierarchy!(ITMSPAddress, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITMSPAddress { - type Vtable = ITMSPAddress_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITMSPAddress { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xee3bd600_3868_11d2_a045_00c04fb6809f); -} #[repr(C)] #[doc(hidden)] pub struct ITMSPAddress_Vtbl { @@ -6680,11 +6146,15 @@ pub struct ITMSPAddress_Vtbl { pub ReceiveTSPData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pmspcall: *mut ::core::ffi::c_void, pbuffer: *const u8, dwsize: u32) -> ::windows_core::HRESULT, pub GetEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwsize: *mut u32, peventbuffer: *mut u8) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITMediaControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITMediaControl, + ITMediaControl_Vtbl, + 0xc445dde8_5199_4bc7_9807_5ffb92e42e09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITMediaControl, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITMediaControl { pub unsafe fn Start(&self) -> ::windows_core::Result<()> { @@ -6702,16 +6172,6 @@ impl ITMediaControl { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITMediaControl, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITMediaControl { - type Vtable = ITMediaControl_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITMediaControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc445dde8_5199_4bc7_9807_5ffb92e42e09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITMediaControl_Vtbl { @@ -6721,11 +6181,15 @@ pub struct ITMediaControl_Vtbl { pub Pause: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub MediaState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pterminalmediastate: *mut TERMINAL_MEDIA_STATE) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITMediaPlayback(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITMediaPlayback, + ITMediaPlayback_Vtbl, + 0x627e8ae6_ae4c_4a69_bb63_2ad625404b77 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITMediaPlayback, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITMediaPlayback { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6741,16 +6205,6 @@ impl ITMediaPlayback { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITMediaPlayback, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITMediaPlayback { - type Vtable = ITMediaPlayback_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITMediaPlayback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x627e8ae6_ae4c_4a69_bb63_2ad625404b77); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITMediaPlayback_Vtbl { @@ -6764,11 +6218,15 @@ pub struct ITMediaPlayback_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] PlayList: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITMediaRecord(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITMediaRecord, + ITMediaRecord_Vtbl, + 0xf5dd4592_5476_4cc1_9d4d_fad3eefe7db2 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITMediaRecord, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITMediaRecord { pub unsafe fn SetFileName(&self, bstrfilename: P0) -> ::windows_core::Result<()> @@ -6783,16 +6241,6 @@ impl ITMediaRecord { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITMediaRecord, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITMediaRecord { - type Vtable = ITMediaRecord_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITMediaRecord { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf5dd4592_5476_4cc1_9d4d_fad3eefe7db2); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITMediaRecord_Vtbl { @@ -6800,11 +6248,15 @@ pub struct ITMediaRecord_Vtbl { pub SetFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrfilename: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub FileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrfilename: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITMediaSupport(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITMediaSupport, + ITMediaSupport_Vtbl, + 0xb1efc384_9355_11d0_835c_00aa003ccabd +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITMediaSupport, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITMediaSupport { pub unsafe fn MediaTypes(&self) -> ::windows_core::Result { @@ -6817,16 +6269,6 @@ impl ITMediaSupport { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITMediaSupport, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITMediaSupport { - type Vtable = ITMediaSupport_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITMediaSupport { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb1efc384_9355_11d0_835c_00aa003ccabd); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITMediaSupport_Vtbl { @@ -6834,11 +6276,15 @@ pub struct ITMediaSupport_Vtbl { pub MediaTypes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plmediatypes: *mut i32) -> ::windows_core::HRESULT, pub QueryMediaType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lmediatype: i32, pfsupport: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITMultiTrackTerminal(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITMultiTrackTerminal, + ITMultiTrackTerminal_Vtbl, + 0xfe040091_ade8_4072_95c9_bf7de8c54b44 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITMultiTrackTerminal, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITMultiTrackTerminal { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6875,16 +6321,6 @@ impl ITMultiTrackTerminal { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITMultiTrackTerminal, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITMultiTrackTerminal { - type Vtable = ITMultiTrackTerminal_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITMultiTrackTerminal { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfe040091_ade8_4072_95c9_bf7de8c54b44); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITMultiTrackTerminal_Vtbl { @@ -6905,11 +6341,15 @@ pub struct ITMultiTrackTerminal_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] RemoveTrackTerminal: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITPhone(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITPhone, + ITPhone_Vtbl, + 0x09d48db4_10cc_4388_9de7_a8465618975a +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITPhone, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITPhone { pub unsafe fn Open(&self, privilege: PHONE_PRIVILEGE) -> ::windows_core::Result<()> { @@ -7057,16 +6497,6 @@ impl ITPhone { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITPhone, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITPhone { - type Vtable = ITPhone_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITPhone { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x09d48db4_10cc_4388_9de7_a8465618975a); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITPhone_Vtbl { @@ -7123,11 +6553,15 @@ pub struct ITPhone_Vtbl { DeviceSpecificVariant: usize, pub NegotiateExtVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, llowversion: i32, lhighversion: i32, plextversion: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITPhoneDeviceSpecificEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITPhoneDeviceSpecificEvent, + ITPhoneDeviceSpecificEvent_Vtbl, + 0x63ffb2a6_872b_4cd3_a501_326e8fb40af7 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITPhoneDeviceSpecificEvent, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITPhoneDeviceSpecificEvent { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -7150,16 +6584,6 @@ impl ITPhoneDeviceSpecificEvent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITPhoneDeviceSpecificEvent, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITPhoneDeviceSpecificEvent { - type Vtable = ITPhoneDeviceSpecificEvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITPhoneDeviceSpecificEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x63ffb2a6_872b_4cd3_a501_326e8fb40af7); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITPhoneDeviceSpecificEvent_Vtbl { @@ -7172,11 +6596,15 @@ pub struct ITPhoneDeviceSpecificEvent_Vtbl { pub lParam2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pparam2: *mut i32) -> ::windows_core::HRESULT, pub lParam3: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pparam3: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITPhoneEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITPhoneEvent, + ITPhoneEvent_Vtbl, + 0x8f942dd8_64ed_4aaf_a77d_b23db0837ead +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITPhoneEvent, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITPhoneEvent { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -7221,16 +6649,6 @@ impl ITPhoneEvent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITPhoneEvent, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITPhoneEvent { - type Vtable = ITPhoneEvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITPhoneEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8f942dd8_64ed_4aaf_a77d_b23db0837ead); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITPhoneEvent_Vtbl { @@ -7251,11 +6669,15 @@ pub struct ITPhoneEvent_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Call: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITPluggableTerminalClassInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITPluggableTerminalClassInfo, + ITPluggableTerminalClassInfo_Vtbl, + 0x41757f4a_cf09_4b34_bc96_0a79d2390076 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITPluggableTerminalClassInfo, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITPluggableTerminalClassInfo { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -7288,16 +6710,6 @@ impl ITPluggableTerminalClassInfo { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITPluggableTerminalClassInfo, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITPluggableTerminalClassInfo { - type Vtable = ITPluggableTerminalClassInfo_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITPluggableTerminalClassInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x41757f4a_cf09_4b34_bc96_0a79d2390076); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITPluggableTerminalClassInfo_Vtbl { @@ -7310,9 +6722,8 @@ pub struct ITPluggableTerminalClassInfo_Vtbl { pub Direction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdirection: *mut TERMINAL_DIRECTION) -> ::windows_core::HRESULT, pub MediaTypes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pmediatypes: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITPluggableTerminalEventSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITPluggableTerminalEventSink, ITPluggableTerminalEventSink_Vtbl, 0x6e0887be_ba1a_492e_bd10_4020ec5e33e0); +::windows_core::imp::interface_hierarchy!(ITPluggableTerminalEventSink, ::windows_core::IUnknown); impl ITPluggableTerminalEventSink { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -7320,13 +6731,6 @@ impl ITPluggableTerminalEventSink { (::windows_core::Interface::vtable(self).FireEvent)(::windows_core::Interface::as_raw(self), pmspeventinfo).ok() } } -::windows_core::imp::interface_hierarchy!(ITPluggableTerminalEventSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITPluggableTerminalEventSink { - type Vtable = ITPluggableTerminalEventSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITPluggableTerminalEventSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6e0887be_ba1a_492e_bd10_4020ec5e33e0); -} #[repr(C)] #[doc(hidden)] pub struct ITPluggableTerminalEventSink_Vtbl { @@ -7336,9 +6740,8 @@ pub struct ITPluggableTerminalEventSink_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] FireEvent: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITPluggableTerminalEventSinkRegistration(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITPluggableTerminalEventSinkRegistration, ITPluggableTerminalEventSinkRegistration_Vtbl, 0xf7115709_a216_4957_a759_060ab32a90d1); +::windows_core::imp::interface_hierarchy!(ITPluggableTerminalEventSinkRegistration, ::windows_core::IUnknown); impl ITPluggableTerminalEventSinkRegistration { pub unsafe fn RegisterSink(&self, peventsink: P0) -> ::windows_core::Result<()> where @@ -7350,13 +6753,6 @@ impl ITPluggableTerminalEventSinkRegistration { (::windows_core::Interface::vtable(self).UnregisterSink)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ITPluggableTerminalEventSinkRegistration, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITPluggableTerminalEventSinkRegistration { - type Vtable = ITPluggableTerminalEventSinkRegistration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITPluggableTerminalEventSinkRegistration { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf7115709_a216_4957_a759_060ab32a90d1); -} #[repr(C)] #[doc(hidden)] pub struct ITPluggableTerminalEventSinkRegistration_Vtbl { @@ -7364,11 +6760,15 @@ pub struct ITPluggableTerminalEventSinkRegistration_Vtbl { pub RegisterSink: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, peventsink: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub UnregisterSink: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITPluggableTerminalSuperclassInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITPluggableTerminalSuperclassInfo, + ITPluggableTerminalSuperclassInfo_Vtbl, + 0x6d54e42c_4625_4359_a6f7_631999107e05 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITPluggableTerminalSuperclassInfo, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITPluggableTerminalSuperclassInfo { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -7381,16 +6781,6 @@ impl ITPluggableTerminalSuperclassInfo { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITPluggableTerminalSuperclassInfo, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITPluggableTerminalSuperclassInfo { - type Vtable = ITPluggableTerminalSuperclassInfo_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITPluggableTerminalSuperclassInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6d54e42c_4625_4359_a6f7_631999107e05); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITPluggableTerminalSuperclassInfo_Vtbl { @@ -7398,11 +6788,15 @@ pub struct ITPluggableTerminalSuperclassInfo_Vtbl { pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pname: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub CLSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pclsid: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITPrivateEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITPrivateEvent, + ITPrivateEvent_Vtbl, + 0x0e269cd0_10d4_4121_9c22_9c85d625650d +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITPrivateEvent, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITPrivateEvent { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -7435,16 +6829,6 @@ impl ITPrivateEvent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITPrivateEvent, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITPrivateEvent { - type Vtable = ITPrivateEvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITPrivateEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0e269cd0_10d4_4121_9c22_9c85d625650d); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITPrivateEvent_Vtbl { @@ -7467,11 +6851,15 @@ pub struct ITPrivateEvent_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] EventInterface: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITQOSEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITQOSEvent, + ITQOSEvent_Vtbl, + 0xcfa3357c_ad77_11d1_bb68_00c04fb6809f +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITQOSEvent, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITQOSEvent { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -7490,16 +6878,6 @@ impl ITQOSEvent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITQOSEvent, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITQOSEvent { - type Vtable = ITQOSEvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITQOSEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcfa3357c_ad77_11d1_bb68_00c04fb6809f); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITQOSEvent_Vtbl { @@ -7511,11 +6889,15 @@ pub struct ITQOSEvent_Vtbl { pub Event: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pqosevent: *mut QOS_EVENT) -> ::windows_core::HRESULT, pub MediaType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plmediatype: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITQueue(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITQueue, + ITQueue_Vtbl, + 0x5afc3149_4bcc_11d1_bf80_00805fc147d3 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITQueue, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITQueue { pub unsafe fn SetMeasurementPeriod(&self, lperiod: i32) -> ::windows_core::Result<()> { @@ -7567,16 +6949,6 @@ impl ITQueue { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITQueue, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITQueue { - type Vtable = ITQueue_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITQueue { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5afc3149_4bcc_11d1_bf80_00805fc147d3); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITQueue_Vtbl { @@ -7594,11 +6966,15 @@ pub struct ITQueue_Vtbl { pub FinalDisposition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plcalls: *mut i32) -> ::windows_core::HRESULT, pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppname: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITQueueEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITQueueEvent, + ITQueueEvent_Vtbl, + 0x297f3033_bd11_11d1_a0a7_00805fc147d3 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITQueueEvent, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITQueueEvent { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -7613,16 +6989,6 @@ impl ITQueueEvent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITQueueEvent, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITQueueEvent { - type Vtable = ITQueueEvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITQueueEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x297f3033_bd11_11d1_a0a7_00805fc147d3); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITQueueEvent_Vtbl { @@ -7633,11 +6999,15 @@ pub struct ITQueueEvent_Vtbl { Queue: usize, pub Event: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pevent: *mut ACDQUEUE_EVENT) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITRendezvous(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITRendezvous, + ITRendezvous_Vtbl, + 0x34621d6b_6cff_11d1_aff7_00c04fc31fee +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITRendezvous, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITRendezvous { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -7670,16 +7040,6 @@ impl ITRendezvous { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITRendezvous, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITRendezvous { - type Vtable = ITRendezvous_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITRendezvous { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x34621d6b_6cff_11d1_aff7_00c04fc31fee); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITRendezvous_Vtbl { @@ -7698,11 +7058,15 @@ pub struct ITRendezvous_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] CreateDirectoryObject: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITRequest(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITRequest, + ITRequest_Vtbl, + 0xac48ffdf_f8c4_11d1_a030_00c04fb6809f +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITRequest, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITRequest { pub unsafe fn MakeCall(&self, pdestaddress: P0, pappname: P1, pcalledparty: P2, pcomment: P3) -> ::windows_core::Result<()> @@ -7716,27 +7080,21 @@ impl ITRequest { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITRequest, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITRequest { - type Vtable = ITRequest_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xac48ffdf_f8c4_11d1_a030_00c04fb6809f); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITRequest_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, pub MakeCall: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdestaddress: ::std::mem::MaybeUninit<::windows_core::BSTR>, pappname: ::std::mem::MaybeUninit<::windows_core::BSTR>, pcalledparty: ::std::mem::MaybeUninit<::windows_core::BSTR>, pcomment: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITRequestEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITRequestEvent, + ITRequestEvent_Vtbl, + 0xac48ffde_f8c4_11d1_a030_00c04fb6809f +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITRequestEvent, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITRequestEvent { pub unsafe fn RegistrationInstance(&self) -> ::windows_core::Result { @@ -7765,16 +7123,6 @@ impl ITRequestEvent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITRequestEvent, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITRequestEvent { - type Vtable = ITRequestEvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITRequestEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xac48ffde_f8c4_11d1_a030_00c04fb6809f); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITRequestEvent_Vtbl { @@ -7786,11 +7134,15 @@ pub struct ITRequestEvent_Vtbl { pub CalledParty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppcalledparty: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub Comment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppcomment: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITScriptableAudioFormat(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITScriptableAudioFormat, + ITScriptableAudioFormat_Vtbl, + 0xb87658bd_3c59_4f64_be74_aede3e86a81e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITScriptableAudioFormat, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITScriptableAudioFormat { pub unsafe fn Channels(&self) -> ::windows_core::Result { @@ -7837,16 +7189,6 @@ impl ITScriptableAudioFormat { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITScriptableAudioFormat, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITScriptableAudioFormat { - type Vtable = ITScriptableAudioFormat_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITScriptableAudioFormat { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb87658bd_3c59_4f64_be74_aede3e86a81e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITScriptableAudioFormat_Vtbl { @@ -7864,11 +7206,15 @@ pub struct ITScriptableAudioFormat_Vtbl { pub FormatTag: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut i32) -> ::windows_core::HRESULT, pub SetFormatTag: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nnewval: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITStaticAudioTerminal(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITStaticAudioTerminal, + ITStaticAudioTerminal_Vtbl, + 0xa86b7871_d14c_48e6_922e_a8d15f984800 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITStaticAudioTerminal, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITStaticAudioTerminal { pub unsafe fn WaveId(&self) -> ::windows_core::Result { @@ -7877,27 +7223,21 @@ impl ITStaticAudioTerminal { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITStaticAudioTerminal, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITStaticAudioTerminal { - type Vtable = ITStaticAudioTerminal_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITStaticAudioTerminal { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa86b7871_d14c_48e6_922e_a8d15f984800); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITStaticAudioTerminal_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, pub WaveId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plwaveid: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITStream(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITStream, + ITStream_Vtbl, + 0xee3bd605_3868_11d2_a045_00c04fb6809f +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITStream, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITStream { pub unsafe fn MediaType(&self) -> ::windows_core::Result { @@ -7949,16 +7289,6 @@ impl ITStream { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITStream, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITStream { - type Vtable = ITStream_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITStream { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xee3bd605_3868_11d2_a045_00c04fb6809f); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITStream_Vtbl { @@ -7983,11 +7313,15 @@ pub struct ITStream_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] Terminals: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITStreamControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITStreamControl, + ITStreamControl_Vtbl, + 0xee3bd604_3868_11d2_a045_00c04fb6809f +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITStreamControl, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITStreamControl { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -8016,16 +7350,6 @@ impl ITStreamControl { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITStreamControl, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITStreamControl { - type Vtable = ITStreamControl_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITStreamControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xee3bd604_3868_11d2_a045_00c04fb6809f); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITStreamControl_Vtbl { @@ -8044,11 +7368,15 @@ pub struct ITStreamControl_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] Streams: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITSubStream(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITSubStream, + ITSubStream_Vtbl, + 0xee3bd608_3868_11d2_a045_00c04fb6809f +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITSubStream, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITSubStream { pub unsafe fn StartSubStream(&self) -> ::windows_core::Result<()> { @@ -8094,16 +7422,6 @@ impl ITSubStream { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITSubStream, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITSubStream { - type Vtable = ITSubStream_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITSubStream { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xee3bd608_3868_11d2_a045_00c04fb6809f); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITSubStream_Vtbl { @@ -8129,11 +7447,15 @@ pub struct ITSubStream_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Stream: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITSubStreamControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITSubStreamControl, + ITSubStreamControl_Vtbl, + 0xee3bd607_3868_11d2_a045_00c04fb6809f +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITSubStreamControl, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITSubStreamControl { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -8162,16 +7484,6 @@ impl ITSubStreamControl { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITSubStreamControl, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITSubStreamControl { - type Vtable = ITSubStreamControl_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITSubStreamControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xee3bd607_3868_11d2_a045_00c04fb6809f); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITSubStreamControl_Vtbl { @@ -8190,11 +7502,15 @@ pub struct ITSubStreamControl_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] SubStreams: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITTAPI(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITTAPI, + ITTAPI_Vtbl, + 0xb1efc382_9355_11d0_835c_00aa003ccabd +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITTAPI, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITTAPI { pub unsafe fn Initialize(&self) -> ::windows_core::Result<()> { @@ -8286,16 +7602,6 @@ impl ITTAPI { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITTAPI, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITTAPI { - type Vtable = ITTAPI_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITTAPI { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb1efc382_9355_11d0_835c_00aa003ccabd); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITTAPI_Vtbl { @@ -8335,11 +7641,15 @@ pub struct ITTAPI_Vtbl { pub SetEventFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lfiltermask: i32) -> ::windows_core::HRESULT, pub EventFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plfiltermask: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITTAPI2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITTAPI2, + ITTAPI2_Vtbl, + 0x54fbdc8c_d90f_4dad_9695_b373097f094b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITTAPI2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, ITTAPI); #[cfg(feature = "Win32_System_Com")] impl ITTAPI2 { pub unsafe fn Initialize(&self) -> ::windows_core::Result<()> { @@ -8447,16 +7757,6 @@ impl ITTAPI2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITTAPI2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, ITTAPI); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITTAPI2 { - type Vtable = ITTAPI2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITTAPI2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x54fbdc8c_d90f_4dad_9695_b373097f094b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITTAPI2_Vtbl { @@ -8471,11 +7771,15 @@ pub struct ITTAPI2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] CreateEmptyCollectionObject: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITTAPICallCenter(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITTAPICallCenter, + ITTAPICallCenter_Vtbl, + 0x5afc3154_4bcc_11d1_bf80_00805fc147d3 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITTAPICallCenter, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITTAPICallCenter { pub unsafe fn EnumerateAgentHandlers(&self) -> ::windows_core::Result { @@ -8490,16 +7794,6 @@ impl ITTAPICallCenter { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITTAPICallCenter, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITTAPICallCenter { - type Vtable = ITTAPICallCenter_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITTAPICallCenter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5afc3154_4bcc_11d1_bf80_00805fc147d3); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITTAPICallCenter_Vtbl { @@ -8510,32 +7804,25 @@ pub struct ITTAPICallCenter_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] AgentHandlers: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] -#[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITTAPIDispatchEventNotification(::windows_core::IUnknown); #[cfg(feature = "Win32_System_Com")] -impl ITTAPIDispatchEventNotification {} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITTAPIDispatchEventNotification, + ITTAPIDispatchEventNotification_Vtbl, + 0x9f34325b_7e62_11d2_9457_00c04f8ec888 +); #[cfg(feature = "Win32_System_Com")] ::windows_core::imp::interface_hierarchy!(ITTAPIDispatchEventNotification, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITTAPIDispatchEventNotification { - type Vtable = ITTAPIDispatchEventNotification_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITTAPIDispatchEventNotification { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9f34325b_7e62_11d2_9457_00c04f8ec888); -} +impl ITTAPIDispatchEventNotification {} #[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITTAPIDispatchEventNotification_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITTAPIEventNotification(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITTAPIEventNotification, ITTAPIEventNotification_Vtbl, 0xeddb9426_3b91_11d1_8f30_00c04fb6809f); +::windows_core::imp::interface_hierarchy!(ITTAPIEventNotification, ::windows_core::IUnknown); impl ITTAPIEventNotification { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -8546,13 +7833,6 @@ impl ITTAPIEventNotification { (::windows_core::Interface::vtable(self).Event)(::windows_core::Interface::as_raw(self), tapievent, pevent.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ITTAPIEventNotification, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITTAPIEventNotification { - type Vtable = ITTAPIEventNotification_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITTAPIEventNotification { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeddb9426_3b91_11d1_8f30_00c04fb6809f); -} #[repr(C)] #[doc(hidden)] pub struct ITTAPIEventNotification_Vtbl { @@ -8562,11 +7842,15 @@ pub struct ITTAPIEventNotification_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Event: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITTAPIObjectEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITTAPIObjectEvent, + ITTAPIObjectEvent_Vtbl, + 0xf4854d48_937a_11d1_bb58_00c04fb6809f +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITTAPIObjectEvent, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITTAPIObjectEvent { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -8591,16 +7875,6 @@ impl ITTAPIObjectEvent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITTAPIObjectEvent, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITTAPIObjectEvent { - type Vtable = ITTAPIObjectEvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITTAPIObjectEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf4854d48_937a_11d1_bb58_00c04fb6809f); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITTAPIObjectEvent_Vtbl { @@ -8616,11 +7890,15 @@ pub struct ITTAPIObjectEvent_Vtbl { Address: usize, pub CallbackInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plcallbackinstance: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITTAPIObjectEvent2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITTAPIObjectEvent2, + ITTAPIObjectEvent2_Vtbl, + 0x359dda6e_68ce_4383_bf0b_169133c41b46 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITTAPIObjectEvent2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, ITTAPIObjectEvent); #[cfg(feature = "Win32_System_Com")] impl ITTAPIObjectEvent2 { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -8651,16 +7929,6 @@ impl ITTAPIObjectEvent2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITTAPIObjectEvent2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, ITTAPIObjectEvent); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITTAPIObjectEvent2 { - type Vtable = ITTAPIObjectEvent2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITTAPIObjectEvent2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x359dda6e_68ce_4383_bf0b_169133c41b46); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITTAPIObjectEvent2_Vtbl { @@ -8670,11 +7938,15 @@ pub struct ITTAPIObjectEvent2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Phone: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITTTSTerminalEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITTTSTerminalEvent, + ITTTSTerminalEvent_Vtbl, + 0xd964788f_95a5_461d_ab0c_b9900a6c2713 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITTTSTerminalEvent, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITTTSTerminalEvent { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -8695,16 +7967,6 @@ impl ITTTSTerminalEvent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITTTSTerminalEvent, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITTTSTerminalEvent { - type Vtable = ITTTSTerminalEvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITTTSTerminalEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd964788f_95a5_461d_ab0c_b9900a6c2713); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITTTSTerminalEvent_Vtbl { @@ -8719,11 +7981,15 @@ pub struct ITTTSTerminalEvent_Vtbl { Call: usize, pub Error: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phrerrorcode: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITTerminal(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITTerminal, + ITTerminal_Vtbl, + 0xb1efc38a_9355_11d0_835c_00aa003ccabd +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITTerminal, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITTerminal { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -8752,16 +8018,6 @@ impl ITTerminal { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITTerminal, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITTerminal { - type Vtable = ITTerminal_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITTerminal { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb1efc38a_9355_11d0_835c_00aa003ccabd); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITTerminal_Vtbl { @@ -8773,11 +8029,15 @@ pub struct ITTerminal_Vtbl { pub MediaType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plmediatype: *mut i32) -> ::windows_core::HRESULT, pub Direction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdirection: *mut TERMINAL_DIRECTION) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITTerminalSupport(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITTerminalSupport, + ITTerminalSupport_Vtbl, + 0xb1efc385_9355_11d0_835c_00aa003ccabd +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITTerminalSupport, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITTerminalSupport { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -8817,16 +8077,6 @@ impl ITTerminalSupport { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITTerminalSupport, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITTerminalSupport { - type Vtable = ITTerminalSupport_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITTerminalSupport { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb1efc385_9355_11d0_835c_00aa003ccabd); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITTerminalSupport_Vtbl { @@ -8850,11 +8100,15 @@ pub struct ITTerminalSupport_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetDefaultStaticTerminal: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITTerminalSupport2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITTerminalSupport2, + ITTerminalSupport2_Vtbl, + 0xf3eb39bc_1b1f_4e99_a0c0_56305c4dd591 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITTerminalSupport2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, ITTerminalSupport); #[cfg(feature = "Win32_System_Com")] impl ITTerminalSupport2 { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -8917,16 +8171,6 @@ impl ITTerminalSupport2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITTerminalSupport2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, ITTerminalSupport); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITTerminalSupport2 { - type Vtable = ITTerminalSupport2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITTerminalSupport2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf3eb39bc_1b1f_4e99_a0c0_56305c4dd591); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITTerminalSupport2_Vtbl { @@ -8942,11 +8186,15 @@ pub struct ITTerminalSupport2_Vtbl { get_PluggableTerminalClasses: usize, pub EnumeratePluggableTerminalClasses: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, iidterminalsuperclass: ::windows_core::GUID, lmediatype: i32, ppclassenumerator: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITToneDetectionEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITToneDetectionEvent, + ITToneDetectionEvent_Vtbl, + 0x407e0faf_d047_4753_b0c6_8e060373fecd +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITToneDetectionEvent, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITToneDetectionEvent { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -8969,16 +8217,6 @@ impl ITToneDetectionEvent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITToneDetectionEvent, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITToneDetectionEvent { - type Vtable = ITToneDetectionEvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITToneDetectionEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x407e0faf_d047_4753_b0c6_8e060373fecd); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITToneDetectionEvent_Vtbl { @@ -8991,11 +8229,15 @@ pub struct ITToneDetectionEvent_Vtbl { pub TickCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pltickcount: *mut i32) -> ::windows_core::HRESULT, pub CallbackInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plcallbackinstance: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITToneTerminalEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITToneTerminalEvent, + ITToneTerminalEvent_Vtbl, + 0xe6f56009_611f_4945_bbd2_2d0ce5612056 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITToneTerminalEvent, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITToneTerminalEvent { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -9016,16 +8258,6 @@ impl ITToneTerminalEvent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITToneTerminalEvent, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITToneTerminalEvent { - type Vtable = ITToneTerminalEvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITToneTerminalEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe6f56009_611f_4945_bbd2_2d0ce5612056); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITToneTerminalEvent_Vtbl { @@ -9040,9 +8272,8 @@ pub struct ITToneTerminalEvent_Vtbl { Call: usize, pub Error: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phrerrorcode: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITnef(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITnef, ITnef_Vtbl, 0); +::windows_core::imp::interface_hierarchy!(ITnef, ::windows_core::IUnknown); impl ITnef { #[doc = "Required features: `\"Win32_System_AddressBook\"`"] #[cfg(feature = "Win32_System_AddressBook")] @@ -9085,13 +8316,6 @@ impl ITnef { (::windows_core::Interface::vtable(self).FinishComponent)(::windows_core::Interface::as_raw(self), ulflags, ulcomponentid, lpcustomproplist, lpcustomprops, lpproplist, lpproblems).ok() } } -::windows_core::imp::interface_hierarchy!(ITnef, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITnef { - type Vtable = ITnef_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITnef { - const IID: ::windows_core::GUID = ::windows_core::GUID::zeroed(); -} #[repr(C)] #[doc(hidden)] pub struct ITnef_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Devices/WebServicesOnDevices/impl.rs b/crates/libs/windows/src/Windows/Win32/Devices/WebServicesOnDevices/impl.rs index 10f2fafd88..958bdc1f15 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/WebServicesOnDevices/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/WebServicesOnDevices/impl.rs @@ -22,7 +22,7 @@ impl IWSDAddress_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWSDAsyncCallback_Impl: Sized { @@ -39,7 +39,7 @@ impl IWSDAsyncCallback_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), AsyncOperationComplete: AsyncOperationComplete:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWSDAsyncResult_Impl: Sized { @@ -113,7 +113,7 @@ impl IWSDAsyncResult_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWSDAttachment_Impl: Sized {} @@ -123,7 +123,7 @@ impl IWSDAttachment_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWSDDeviceHost_Impl: Sized { @@ -220,7 +220,7 @@ impl IWSDDeviceHost_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWSDDeviceHostNotify_Impl: Sized { @@ -243,7 +243,7 @@ impl IWSDDeviceHostNotify_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetService: GetService:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWSDDeviceProxy_Impl: Sized { @@ -374,7 +374,7 @@ impl IWSDDeviceProxy_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWSDEndpointProxy_Impl: Sized { @@ -454,7 +454,7 @@ impl IWSDEndpointProxy_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWSDEventingStatus_Impl: Sized { @@ -488,7 +488,7 @@ impl IWSDEventingStatus_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWSDHttpAddress_Impl: Sized + IWSDTransportAddress_Impl { @@ -535,7 +535,7 @@ impl IWSDHttpAddress_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IWSDHttpAuthParameters_Impl: Sized { @@ -574,7 +574,7 @@ impl IWSDHttpAuthParameters_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWSDHttpMessageParameters_Impl: Sized + IWSDMessageParameters_Impl { @@ -674,7 +674,7 @@ impl IWSDHttpMessageParameters_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IWSDInboundAttachment_Impl: Sized + IWSDAttachment_Impl { @@ -697,7 +697,7 @@ impl IWSDInboundAttachment_Vtbl { Self { base__: IWSDAttachment_Vtbl::new::(), Read: Read::, Close: Close:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IWSDMessageParameters_Impl: Sized { @@ -763,7 +763,7 @@ impl IWSDMessageParameters_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWSDMetadataExchange_Impl: Sized { @@ -786,7 +786,7 @@ impl IWSDMetadataExchange_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetMetadata: GetMetadata:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWSDOutboundAttachment_Impl: Sized + IWSDAttachment_Impl { @@ -826,7 +826,7 @@ impl IWSDOutboundAttachment_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Security_Cryptography\"`"] @@ -869,7 +869,7 @@ impl IWSDSSLClientCertificate_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWSDScopeMatchingRule_Impl: Sized { @@ -908,7 +908,7 @@ impl IWSDScopeMatchingRule_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWSDServiceMessaging_Impl: Sized { @@ -935,7 +935,7 @@ impl IWSDServiceMessaging_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWSDServiceProxy_Impl: Sized + IWSDMetadataExchange_Impl { @@ -1021,7 +1021,7 @@ impl IWSDServiceProxy_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IWSDServiceProxyEventing_Impl: Sized + IWSDServiceProxy_Impl { @@ -1142,7 +1142,7 @@ impl IWSDServiceProxyEventing_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IWSDSignatureProperty_Impl: Sized { @@ -1202,7 +1202,7 @@ impl IWSDSignatureProperty_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWSDTransportAddress_Impl: Sized + IWSDAddress_Impl { @@ -1268,7 +1268,7 @@ impl IWSDTransportAddress_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Networking_WinSock\"`"] @@ -1373,7 +1373,7 @@ impl IWSDUdpAddress_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IWSDUdpMessageParameters_Impl: Sized + IWSDMessageParameters_Impl { @@ -1400,7 +1400,7 @@ impl IWSDUdpMessageParameters_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IWSDXMLContext_Impl: Sized { @@ -1441,7 +1441,7 @@ impl IWSDXMLContext_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWSDiscoveredService_Impl: Sized { @@ -1591,7 +1591,7 @@ impl IWSDiscoveredService_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWSDiscoveryProvider_Impl: Sized { @@ -1659,7 +1659,7 @@ impl IWSDiscoveryProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWSDiscoveryProviderNotify_Impl: Sized { @@ -1700,7 +1700,7 @@ impl IWSDiscoveryProviderNotify_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWSDiscoveryPublisher_Impl: Sized { @@ -1859,7 +1859,7 @@ impl IWSDiscoveryPublisher_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWSDiscoveryPublisherNotify_Impl: Sized { @@ -1886,6 +1886,6 @@ impl IWSDiscoveryPublisherNotify_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 152414eeb2..6036d2692a 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/WebServicesOnDevices/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/WebServicesOnDevices/mod.rs @@ -238,9 +238,8 @@ where ::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() } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWSDAddress(::windows_core::IUnknown); +::windows_core::imp::com_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 @@ -255,13 +254,6 @@ impl IWSDAddress { (::windows_core::Interface::vtable(self).Deserialize)(::windows_core::Interface::as_raw(self), pszbuffer.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IWSDAddress, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWSDAddress { - type Vtable = IWSDAddress_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWSDAddress { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb9574c6c_12a6_4f74_93a1_3318ff605759); -} #[repr(C)] #[doc(hidden)] pub struct IWSDAddress_Vtbl { @@ -269,9 +261,8 @@ pub struct IWSDAddress_Vtbl { pub Serialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszbuffer: ::windows_core::PWSTR, cchlength: u32, fsafe: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub Deserialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszbuffer: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWSDAsyncCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWSDAsyncCallback, IWSDAsyncCallback_Vtbl, 0xa63e109d_ce72_49e2_ba98_e845f5ee1666); +::windows_core::imp::interface_hierarchy!(IWSDAsyncCallback, ::windows_core::IUnknown); impl IWSDAsyncCallback { pub unsafe fn AsyncOperationComplete(&self, pasyncresult: P0, pasyncstate: P1) -> ::windows_core::Result<()> where @@ -281,22 +272,14 @@ impl IWSDAsyncCallback { (::windows_core::Interface::vtable(self).AsyncOperationComplete)(::windows_core::Interface::as_raw(self), pasyncresult.into_param().abi(), pasyncstate.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IWSDAsyncCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWSDAsyncCallback { - type Vtable = IWSDAsyncCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWSDAsyncCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa63e109d_ce72_49e2_ba98_e845f5ee1666); -} #[repr(C)] #[doc(hidden)] pub struct IWSDAsyncCallback_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub AsyncOperationComplete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pasyncresult: *mut ::core::ffi::c_void, pasyncstate: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWSDAsyncResult(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWSDAsyncResult, IWSDAsyncResult_Vtbl, 0x11a9852a_8dd8_423e_b537_9356db4fbfb8); +::windows_core::imp::interface_hierarchy!(IWSDAsyncResult, ::windows_core::IUnknown); impl IWSDAsyncResult { pub unsafe fn SetCallback(&self, pcallback: P0, pasyncstate: P1) -> ::windows_core::Result<()> where @@ -329,13 +312,6 @@ impl IWSDAsyncResult { (::windows_core::Interface::vtable(self).GetEndpointProxy)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWSDAsyncResult, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWSDAsyncResult { - type Vtable = IWSDAsyncResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWSDAsyncResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x11a9852a_8dd8_423e_b537_9356db4fbfb8); -} #[repr(C)] #[doc(hidden)] pub struct IWSDAsyncResult_Vtbl { @@ -348,25 +324,16 @@ pub struct IWSDAsyncResult_Vtbl { pub GetEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pevent: *mut WSD_EVENT) -> ::windows_core::HRESULT, pub GetEndpointProxy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppendpoint: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWSDAttachment(::windows_core::IUnknown); -impl IWSDAttachment {} +::windows_core::imp::com_interface!(IWSDAttachment, IWSDAttachment_Vtbl, 0x5d55a616_9df8_4b09_b156_9ba351a48b76); ::windows_core::imp::interface_hierarchy!(IWSDAttachment, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWSDAttachment { - type Vtable = IWSDAttachment_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWSDAttachment { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5d55a616_9df8_4b09_b156_9ba351a48b76); -} +impl IWSDAttachment {} #[repr(C)] #[doc(hidden)] pub struct IWSDAttachment_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWSDDeviceHost(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWSDDeviceHost, IWSDDeviceHost_Vtbl, 0x917fe891_3d13_4138_9809_934c8abeb12c); +::windows_core::imp::interface_hierarchy!(IWSDDeviceHost, ::windows_core::IUnknown); impl IWSDDeviceHost { pub unsafe fn Init(&self, pszlocalid: P0, pcontext: P1, pphostaddresses: ::core::option::Option<&[::core::option::Option]>) -> ::windows_core::Result<()> where @@ -434,13 +401,6 @@ impl IWSDDeviceHost { (::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::imp::interface_hierarchy!(IWSDDeviceHost, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWSDDeviceHost { - type Vtable = IWSDDeviceHost_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWSDDeviceHost { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x917fe891_3d13_4138_9809_934c8abeb12c); -} #[repr(C)] #[doc(hidden)] pub struct IWSDDeviceHost_Vtbl { @@ -458,9 +418,8 @@ pub struct IWSDDeviceHost_Vtbl { pub SetServiceDiscoverable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszserviceid: ::windows_core::PCWSTR, fdiscoverable: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub SignalEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszserviceid: ::windows_core::PCWSTR, pbody: *const ::core::ffi::c_void, poperation: *const WSD_OPERATION) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWSDDeviceHostNotify(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWSDDeviceHostNotify, IWSDDeviceHostNotify_Vtbl, 0xb5bee9f9_eeda_41fe_96f7_f45e14990fb0); +::windows_core::imp::interface_hierarchy!(IWSDDeviceHostNotify, ::windows_core::IUnknown); impl IWSDDeviceHostNotify { pub unsafe fn GetService(&self, pszserviceid: P0) -> ::windows_core::Result<::windows_core::IUnknown> where @@ -470,22 +429,14 @@ impl IWSDDeviceHostNotify { (::windows_core::Interface::vtable(self).GetService)(::windows_core::Interface::as_raw(self), pszserviceid.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWSDDeviceHostNotify, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWSDDeviceHostNotify { - type Vtable = IWSDDeviceHostNotify_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWSDDeviceHostNotify { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb5bee9f9_eeda_41fe_96f7_f45e14990fb0); -} #[repr(C)] #[doc(hidden)] pub struct IWSDDeviceHostNotify_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetService: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszserviceid: ::windows_core::PCWSTR, ppservice: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWSDDeviceProxy(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWSDDeviceProxy, IWSDDeviceProxy_Vtbl, 0xeee0c031_c578_4c0e_9a3b_973c35f409db); +::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 @@ -539,13 +490,6 @@ impl IWSDDeviceProxy { (::windows_core::Interface::vtable(self).GetEndpointProxy)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWSDDeviceProxy, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWSDDeviceProxy { - type Vtable = IWSDDeviceProxy_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWSDDeviceProxy { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeee0c031_c578_4c0e_9a3b_973c35f409db); -} #[repr(C)] #[doc(hidden)] pub struct IWSDDeviceProxy_Vtbl { @@ -561,9 +505,8 @@ pub struct IWSDDeviceProxy_Vtbl { pub GetServiceProxyByType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptype: *const WSDXML_NAME, ppserviceproxy: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetEndpointProxy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppproxy: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWSDEndpointProxy(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWSDEndpointProxy, IWSDEndpointProxy_Vtbl, 0x1860d430_b24c_4975_9f90_dbb39baa24ec); +::windows_core::imp::interface_hierarchy!(IWSDEndpointProxy, ::windows_core::IUnknown); impl IWSDEndpointProxy { pub unsafe fn SendOneWayRequest(&self, pbody: *const ::core::ffi::c_void, poperation: *const WSD_OPERATION) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SendOneWayRequest)(::windows_core::Interface::as_raw(self), pbody, poperation).ok() @@ -597,13 +540,6 @@ impl IWSDEndpointProxy { (::windows_core::Interface::vtable(self).GetFaultInfo)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWSDEndpointProxy, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWSDEndpointProxy { - type Vtable = IWSDEndpointProxy_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWSDEndpointProxy { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1860d430_b24c_4975_9f90_dbb39baa24ec); -} #[repr(C)] #[doc(hidden)] pub struct IWSDEndpointProxy_Vtbl { @@ -616,9 +552,8 @@ pub struct IWSDEndpointProxy_Vtbl { pub GetErrorInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppszerrorinfo: *mut ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub GetFaultInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppfault: *mut *mut WSD_SOAP_FAULT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWSDEventingStatus(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWSDEventingStatus, IWSDEventingStatus_Vtbl, 0x49b17f52_637a_407a_ae99_fbe82a4d38c0); +::windows_core::imp::interface_hierarchy!(IWSDEventingStatus, ::windows_core::IUnknown); impl IWSDEventingStatus { pub unsafe fn SubscriptionRenewed(&self, pszsubscriptionaction: P0) where @@ -639,13 +574,6 @@ impl IWSDEventingStatus { (::windows_core::Interface::vtable(self).SubscriptionEnded)(::windows_core::Interface::as_raw(self), pszsubscriptionaction.into_param().abi()) } } -::windows_core::imp::interface_hierarchy!(IWSDEventingStatus, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWSDEventingStatus { - type Vtable = IWSDEventingStatus_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWSDEventingStatus { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x49b17f52_637a_407a_ae99_fbe82a4d38c0); -} #[repr(C)] #[doc(hidden)] pub struct IWSDEventingStatus_Vtbl { @@ -654,9 +582,8 @@ pub struct IWSDEventingStatus_Vtbl { pub SubscriptionRenewalFailed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszsubscriptionaction: ::windows_core::PCWSTR, hr: ::windows_core::HRESULT), pub SubscriptionEnded: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszsubscriptionaction: ::windows_core::PCWSTR), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWSDHttpAddress(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWSDHttpAddress, IWSDHttpAddress_Vtbl, 0xd09ac7bd_2a3e_4b85_8605_2737ff3e4ea0); +::windows_core::imp::interface_hierarchy!(IWSDHttpAddress, ::windows_core::IUnknown, IWSDAddress, IWSDTransportAddress); impl IWSDHttpAddress { pub unsafe fn Serialize(&self, pszbuffer: &mut [u16], fsafe: P0) -> ::windows_core::Result<()> where @@ -714,13 +641,6 @@ impl IWSDHttpAddress { (::windows_core::Interface::vtable(self).SetPath)(::windows_core::Interface::as_raw(self), pszpath.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IWSDHttpAddress, ::windows_core::IUnknown, IWSDAddress, IWSDTransportAddress); -unsafe impl ::windows_core::Interface for IWSDHttpAddress { - type Vtable = IWSDHttpAddress_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWSDHttpAddress { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd09ac7bd_2a3e_4b85_8605_2737ff3e4ea0); -} #[repr(C)] #[doc(hidden)] pub struct IWSDHttpAddress_Vtbl { @@ -730,9 +650,8 @@ pub struct IWSDHttpAddress_Vtbl { pub GetPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppszpath: *mut ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub SetPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszpath: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWSDHttpAuthParameters(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWSDHttpAuthParameters, IWSDHttpAuthParameters_Vtbl, 0x0b476df0_8dac_480d_b05c_99781a5884aa); +::windows_core::imp::interface_hierarchy!(IWSDHttpAuthParameters, ::windows_core::IUnknown); impl IWSDHttpAuthParameters { pub unsafe fn GetClientAccessToken(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -743,13 +662,6 @@ impl IWSDHttpAuthParameters { (::windows_core::Interface::vtable(self).GetAuthType)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWSDHttpAuthParameters, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWSDHttpAuthParameters { - type Vtable = IWSDHttpAuthParameters_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWSDHttpAuthParameters { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0b476df0_8dac_480d_b05c_99781a5884aa); -} #[repr(C)] #[doc(hidden)] pub struct IWSDHttpAuthParameters_Vtbl { @@ -757,9 +669,8 @@ pub struct IWSDHttpAuthParameters_Vtbl { pub GetClientAccessToken: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phtoken: *mut super::super::Foundation::HANDLE) -> ::windows_core::HRESULT, pub GetAuthType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pauthtype: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWSDHttpMessageParameters(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWSDHttpMessageParameters, IWSDHttpMessageParameters_Vtbl, 0x540bd122_5c83_4dec_b396_ea62a2697fdf); +::windows_core::imp::interface_hierarchy!(IWSDHttpMessageParameters, ::windows_core::IUnknown, IWSDMessageParameters); impl IWSDHttpMessageParameters { pub unsafe fn GetLocalAddress(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -829,13 +740,6 @@ impl IWSDHttpMessageParameters { (::windows_core::Interface::vtable(self).Clear)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IWSDHttpMessageParameters, ::windows_core::IUnknown, IWSDMessageParameters); -unsafe impl ::windows_core::Interface for IWSDHttpMessageParameters { - type Vtable = IWSDHttpMessageParameters_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWSDHttpMessageParameters { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x540bd122_5c83_4dec_b396_ea62a2697fdf); -} #[repr(C)] #[doc(hidden)] pub struct IWSDHttpMessageParameters_Vtbl { @@ -850,9 +754,8 @@ pub struct IWSDHttpMessageParameters_Vtbl { pub GetContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppcontext: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clear: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWSDInboundAttachment(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWSDInboundAttachment, IWSDInboundAttachment_Vtbl, 0x5bd6ca65_233c_4fb8_9f7a_2641619655c9); +::windows_core::imp::interface_hierarchy!(IWSDInboundAttachment, ::windows_core::IUnknown, IWSDAttachment); impl IWSDInboundAttachment { pub unsafe fn Read(&self, pbuffer: &mut [u8], pdwnumberofbytesread: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Read)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pbuffer.as_ptr()), pbuffer.len().try_into().unwrap(), pdwnumberofbytesread).ok() @@ -861,13 +764,6 @@ impl IWSDInboundAttachment { (::windows_core::Interface::vtable(self).Close)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IWSDInboundAttachment, ::windows_core::IUnknown, IWSDAttachment); -unsafe impl ::windows_core::Interface for IWSDInboundAttachment { - type Vtable = IWSDInboundAttachment_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWSDInboundAttachment { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5bd6ca65_233c_4fb8_9f7a_2641619655c9); -} #[repr(C)] #[doc(hidden)] pub struct IWSDInboundAttachment_Vtbl { @@ -875,9 +771,8 @@ pub struct IWSDInboundAttachment_Vtbl { pub Read: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbuffer: *mut u8, dwbytestoread: u32, pdwnumberofbytesread: *mut u32) -> ::windows_core::HRESULT, pub Close: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWSDMessageParameters(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWSDMessageParameters, IWSDMessageParameters_Vtbl, 0x1fafe8a2_e6fc_4b80_b6cf_b7d45c416d7c); +::windows_core::imp::interface_hierarchy!(IWSDMessageParameters, ::windows_core::IUnknown); impl IWSDMessageParameters { pub unsafe fn GetLocalAddress(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -904,13 +799,6 @@ impl IWSDMessageParameters { (::windows_core::Interface::vtable(self).GetLowerParameters)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWSDMessageParameters, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWSDMessageParameters { - type Vtable = IWSDMessageParameters_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWSDMessageParameters { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1fafe8a2_e6fc_4b80_b6cf_b7d45c416d7c); -} #[repr(C)] #[doc(hidden)] pub struct IWSDMessageParameters_Vtbl { @@ -921,31 +809,22 @@ pub struct IWSDMessageParameters_Vtbl { pub SetRemoteAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, paddress: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetLowerParameters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pptxparams: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWSDMetadataExchange(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWSDMetadataExchange, IWSDMetadataExchange_Vtbl, 0x06996d57_1d67_4928_9307_3d7833fdb846); +::windows_core::imp::interface_hierarchy!(IWSDMetadataExchange, ::windows_core::IUnknown); impl IWSDMetadataExchange { pub unsafe fn GetMetadata(&self) -> ::windows_core::Result<*mut WSD_METADATA_SECTION_LIST> { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetMetadata)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWSDMetadataExchange, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWSDMetadataExchange { - type Vtable = IWSDMetadataExchange_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWSDMetadataExchange { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x06996d57_1d67_4928_9307_3d7833fdb846); -} #[repr(C)] #[doc(hidden)] pub struct IWSDMetadataExchange_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetMetadata: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, metadataout: *mut *mut WSD_METADATA_SECTION_LIST) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWSDOutboundAttachment(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWSDOutboundAttachment, IWSDOutboundAttachment_Vtbl, 0xaa302f8d_5a22_4ba5_b392_aa8486f4c15d); +::windows_core::imp::interface_hierarchy!(IWSDOutboundAttachment, ::windows_core::IUnknown, IWSDAttachment); impl IWSDOutboundAttachment { pub unsafe fn Write(&self, pbuffer: &[u8]) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -958,13 +837,6 @@ impl IWSDOutboundAttachment { (::windows_core::Interface::vtable(self).Abort)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IWSDOutboundAttachment, ::windows_core::IUnknown, IWSDAttachment); -unsafe impl ::windows_core::Interface for IWSDOutboundAttachment { - type Vtable = IWSDOutboundAttachment_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWSDOutboundAttachment { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaa302f8d_5a22_4ba5_b392_aa8486f4c15d); -} #[repr(C)] #[doc(hidden)] pub struct IWSDOutboundAttachment_Vtbl { @@ -973,9 +845,8 @@ pub struct IWSDOutboundAttachment_Vtbl { pub Close: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Abort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWSDSSLClientCertificate(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWSDSSLClientCertificate, IWSDSSLClientCertificate_Vtbl, 0xde105e87_a0da_418e_98ad_27b9eed87bdc); +::windows_core::imp::interface_hierarchy!(IWSDSSLClientCertificate, ::windows_core::IUnknown); impl IWSDSSLClientCertificate { #[doc = "Required features: `\"Win32_Security_Cryptography\"`"] #[cfg(feature = "Win32_Security_Cryptography")] @@ -988,13 +859,6 @@ impl IWSDSSLClientCertificate { (::windows_core::Interface::vtable(self).GetMappedAccessToken)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWSDSSLClientCertificate, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWSDSSLClientCertificate { - type Vtable = IWSDSSLClientCertificate_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWSDSSLClientCertificate { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xde105e87_a0da_418e_98ad_27b9eed87bdc); -} #[repr(C)] #[doc(hidden)] pub struct IWSDSSLClientCertificate_Vtbl { @@ -1005,9 +869,8 @@ pub struct IWSDSSLClientCertificate_Vtbl { GetClientCertificate: usize, pub GetMappedAccessToken: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phtoken: *mut super::super::Foundation::HANDLE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWSDScopeMatchingRule(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWSDScopeMatchingRule, IWSDScopeMatchingRule_Vtbl, 0xfcafe424_fef5_481a_bd9f_33ce0574256f); +::windows_core::imp::interface_hierarchy!(IWSDScopeMatchingRule, ::windows_core::IUnknown); impl IWSDScopeMatchingRule { pub unsafe fn GetScopeRule(&self) -> ::windows_core::Result<::windows_core::PCWSTR> { let mut result__ = ::std::mem::zeroed(); @@ -1022,13 +885,6 @@ impl IWSDScopeMatchingRule { (::windows_core::Interface::vtable(self).MatchScopes)(::windows_core::Interface::as_raw(self), pszscope1.into_param().abi(), pszscope2.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWSDScopeMatchingRule, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWSDScopeMatchingRule { - type Vtable = IWSDScopeMatchingRule_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWSDScopeMatchingRule { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfcafe424_fef5_481a_bd9f_33ce0574256f); -} #[repr(C)] #[doc(hidden)] pub struct IWSDScopeMatchingRule_Vtbl { @@ -1036,9 +892,8 @@ pub struct IWSDScopeMatchingRule_Vtbl { pub GetScopeRule: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppszscopematchingrule: *mut ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub MatchScopes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszscope1: ::windows_core::PCWSTR, pszscope2: ::windows_core::PCWSTR, pfmatch: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWSDServiceMessaging(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWSDServiceMessaging, IWSDServiceMessaging_Vtbl, 0x94974cf4_0cab_460d_a3f6_7a0ad623c0e6); +::windows_core::imp::interface_hierarchy!(IWSDServiceMessaging, ::windows_core::IUnknown); impl IWSDServiceMessaging { pub unsafe fn SendResponse(&self, pbody: ::core::option::Option<*const ::core::ffi::c_void>, poperation: *const WSD_OPERATION, pmessageparameters: P0) -> ::windows_core::Result<()> where @@ -1053,13 +908,6 @@ impl IWSDServiceMessaging { (::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::imp::interface_hierarchy!(IWSDServiceMessaging, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWSDServiceMessaging { - type Vtable = IWSDServiceMessaging_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWSDServiceMessaging { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x94974cf4_0cab_460d_a3f6_7a0ad623c0e6); -} #[repr(C)] #[doc(hidden)] pub struct IWSDServiceMessaging_Vtbl { @@ -1067,9 +915,8 @@ pub struct IWSDServiceMessaging_Vtbl { pub SendResponse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbody: *const ::core::ffi::c_void, poperation: *const WSD_OPERATION, pmessageparameters: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub FaultRequest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prequestheader: *const WSD_SOAP_HEADER, pmessageparameters: *mut ::core::ffi::c_void, pfault: *const WSD_SOAP_FAULT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWSDServiceProxy(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWSDServiceProxy, IWSDServiceProxy_Vtbl, 0xd4c7fb9c_03ab_4175_9d67_094fafebf487); +::windows_core::imp::interface_hierarchy!(IWSDServiceProxy, ::windows_core::IUnknown, IWSDMetadataExchange); impl IWSDServiceProxy { pub unsafe fn GetMetadata(&self) -> ::windows_core::Result<*mut WSD_METADATA_SECTION_LIST> { let mut result__ = ::std::mem::zeroed(); @@ -1110,13 +957,6 @@ impl IWSDServiceProxy { (::windows_core::Interface::vtable(self).GetEndpointProxy)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWSDServiceProxy, ::windows_core::IUnknown, IWSDMetadataExchange); -unsafe impl ::windows_core::Interface for IWSDServiceProxy { - type Vtable = IWSDServiceProxy_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWSDServiceProxy { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd4c7fb9c_03ab_4175_9d67_094fafebf487); -} #[repr(C)] #[doc(hidden)] pub struct IWSDServiceProxy_Vtbl { @@ -1129,9 +969,8 @@ pub struct IWSDServiceProxy_Vtbl { pub SetEventingStatusCallback: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstatus: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetEndpointProxy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppproxy: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWSDServiceProxyEventing(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWSDServiceProxyEventing, IWSDServiceProxyEventing_Vtbl, 0xf9279d6d_1012_4a94_b8cc_fd35d2202bfe); +::windows_core::imp::interface_hierarchy!(IWSDServiceProxyEventing, ::windows_core::IUnknown, IWSDMetadataExchange, IWSDServiceProxy); impl IWSDServiceProxyEventing { pub unsafe fn GetMetadata(&self) -> ::windows_core::Result<*mut WSD_METADATA_SECTION_LIST> { let mut result__ = ::std::mem::zeroed(); @@ -1244,13 +1083,6 @@ impl IWSDServiceProxyEventing { (::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::imp::interface_hierarchy!(IWSDServiceProxyEventing, ::windows_core::IUnknown, IWSDMetadataExchange, IWSDServiceProxy); -unsafe impl ::windows_core::Interface for IWSDServiceProxyEventing { - type Vtable = IWSDServiceProxyEventing_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWSDServiceProxyEventing { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf9279d6d_1012_4a94_b8cc_fd35d2202bfe); -} #[repr(C)] #[doc(hidden)] pub struct IWSDServiceProxyEventing_Vtbl { @@ -1268,9 +1100,8 @@ pub struct IWSDServiceProxyEventing_Vtbl { pub BeginGetStatusForMultipleOperations: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, poperations: *const WSD_OPERATION, dwoperationcount: u32, pany: *const WSDXML_ELEMENT, pasyncstate: *mut ::core::ffi::c_void, pasynccallback: *mut ::core::ffi::c_void, ppresult: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub EndGetStatusForMultipleOperations: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, poperations: *const WSD_OPERATION, dwoperationcount: u32, presult: *mut ::core::ffi::c_void, ppexpires: *mut *mut WSD_EVENTING_EXPIRES, ppany: *mut *mut WSDXML_ELEMENT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWSDSignatureProperty(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWSDSignatureProperty, IWSDSignatureProperty_Vtbl, 0x03ce20aa_71c4_45e2_b32e_3766c61c790f); +::windows_core::imp::interface_hierarchy!(IWSDSignatureProperty, ::windows_core::IUnknown); impl IWSDSignatureProperty { pub unsafe fn IsMessageSigned(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1290,13 +1121,6 @@ impl IWSDSignatureProperty { (::windows_core::Interface::vtable(self).GetSignedInfoHash)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pbsignedinfohash.unwrap_or(::std::ptr::null_mut())), pdwhashsize).ok() } } -::windows_core::imp::interface_hierarchy!(IWSDSignatureProperty, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWSDSignatureProperty { - type Vtable = IWSDSignatureProperty_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWSDSignatureProperty { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x03ce20aa_71c4_45e2_b32e_3766c61c790f); -} #[repr(C)] #[doc(hidden)] pub struct IWSDSignatureProperty_Vtbl { @@ -1307,9 +1131,8 @@ pub struct IWSDSignatureProperty_Vtbl { pub GetSignature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbsignature: *mut u8, pdwsignaturesize: *mut u32) -> ::windows_core::HRESULT, pub GetSignedInfoHash: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbsignedinfohash: *mut u8, pdwhashsize: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWSDTransportAddress(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWSDTransportAddress, IWSDTransportAddress_Vtbl, 0x70d23498_4ee6_4340_a3df_d845d2235467); +::windows_core::imp::interface_hierarchy!(IWSDTransportAddress, ::windows_core::IUnknown, IWSDAddress); impl IWSDTransportAddress { pub unsafe fn Serialize(&self, pszbuffer: &mut [u16], fsafe: P0) -> ::windows_core::Result<()> where @@ -1348,13 +1171,6 @@ impl IWSDTransportAddress { (::windows_core::Interface::vtable(self).SetTransportAddress)(::windows_core::Interface::as_raw(self), pszaddress.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IWSDTransportAddress, ::windows_core::IUnknown, IWSDAddress); -unsafe impl ::windows_core::Interface for IWSDTransportAddress { - type Vtable = IWSDTransportAddress_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWSDTransportAddress { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x70d23498_4ee6_4340_a3df_d845d2235467); -} #[repr(C)] #[doc(hidden)] pub struct IWSDTransportAddress_Vtbl { @@ -1365,9 +1181,8 @@ pub struct IWSDTransportAddress_Vtbl { pub GetTransportAddressEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fsafe: super::super::Foundation::BOOL, ppszaddress: *mut ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub SetTransportAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszaddress: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWSDUdpAddress(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWSDUdpAddress, IWSDUdpAddress_Vtbl, 0x74d6124a_a441_4f78_a1eb_97a8d1996893); +::windows_core::imp::interface_hierarchy!(IWSDUdpAddress, ::windows_core::IUnknown, IWSDAddress, IWSDTransportAddress); impl IWSDUdpAddress { pub unsafe fn Serialize(&self, pszbuffer: &mut [u16], fsafe: P0) -> ::windows_core::Result<()> where @@ -1446,13 +1261,6 @@ impl IWSDUdpAddress { (::windows_core::Interface::vtable(self).GetAlias)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWSDUdpAddress, ::windows_core::IUnknown, IWSDAddress, IWSDTransportAddress); -unsafe impl ::windows_core::Interface for IWSDUdpAddress { - type Vtable = IWSDUdpAddress_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWSDUdpAddress { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x74d6124a_a441_4f78_a1eb_97a8d1996893); -} #[repr(C)] #[doc(hidden)] pub struct IWSDUdpAddress_Vtbl { @@ -1474,9 +1282,8 @@ pub struct IWSDUdpAddress_Vtbl { pub SetAlias: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, palias: *const ::windows_core::GUID) -> ::windows_core::HRESULT, pub GetAlias: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, palias: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWSDUdpMessageParameters(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWSDUdpMessageParameters, IWSDUdpMessageParameters_Vtbl, 0x9934149f_8f0c_447b_aa0b_73124b0ca7f0); +::windows_core::imp::interface_hierarchy!(IWSDUdpMessageParameters, ::windows_core::IUnknown, IWSDMessageParameters); impl IWSDUdpMessageParameters { pub unsafe fn GetLocalAddress(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1509,13 +1316,6 @@ impl IWSDUdpMessageParameters { (::windows_core::Interface::vtable(self).GetRetransmitParams)(::windows_core::Interface::as_raw(self), pparams).ok() } } -::windows_core::imp::interface_hierarchy!(IWSDUdpMessageParameters, ::windows_core::IUnknown, IWSDMessageParameters); -unsafe impl ::windows_core::Interface for IWSDUdpMessageParameters { - type Vtable = IWSDUdpMessageParameters_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWSDUdpMessageParameters { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9934149f_8f0c_447b_aa0b_73124b0ca7f0); -} #[repr(C)] #[doc(hidden)] pub struct IWSDUdpMessageParameters_Vtbl { @@ -1523,9 +1323,8 @@ pub struct IWSDUdpMessageParameters_Vtbl { pub SetRetransmitParams: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pparams: *const WSDUdpRetransmitParams) -> ::windows_core::HRESULT, pub GetRetransmitParams: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pparams: *mut WSDUdpRetransmitParams) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWSDXMLContext(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWSDXMLContext, IWSDXMLContext_Vtbl, 0x75d8f3ee_3e5a_43b4_a15a_bcf6887460c0); +::windows_core::imp::interface_hierarchy!(IWSDXMLContext, ::windows_core::IUnknown); impl IWSDXMLContext { pub unsafe fn AddNamespace(&self, pszuri: P0, pszsuggestedprefix: P1, ppnamespace: ::core::option::Option<*mut *mut WSDXML_NAMESPACE>) -> ::windows_core::Result<()> where @@ -1548,13 +1347,6 @@ impl IWSDXMLContext { (::windows_core::Interface::vtable(self).SetTypes)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(ptypes.as_ptr()), ptypes.len().try_into().unwrap(), blayernumber).ok() } } -::windows_core::imp::interface_hierarchy!(IWSDXMLContext, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWSDXMLContext { - type Vtable = IWSDXMLContext_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWSDXMLContext { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x75d8f3ee_3e5a_43b4_a15a_bcf6887460c0); -} #[repr(C)] #[doc(hidden)] pub struct IWSDXMLContext_Vtbl { @@ -1564,9 +1356,8 @@ pub struct IWSDXMLContext_Vtbl { pub SetNamespaces: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pnamespaces: *const *const WSDXML_NAMESPACE, wnamespacescount: u16, blayernumber: u8) -> ::windows_core::HRESULT, pub SetTypes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptypes: *const *const WSDXML_TYPE, dwtypescount: u32, blayernumber: u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWSDiscoveredService(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWSDiscoveredService, IWSDiscoveredService_Vtbl, 0x4bad8a3b_b374_4420_9632_aac945b374aa); +::windows_core::imp::interface_hierarchy!(IWSDiscoveredService, ::windows_core::IUnknown); impl IWSDiscoveredService { pub unsafe fn GetEndpointReference(&self) -> ::windows_core::Result<*mut WSD_ENDPOINT_REFERENCE> { let mut result__ = ::std::mem::zeroed(); @@ -1612,13 +1403,6 @@ impl IWSDiscoveredService { (::windows_core::Interface::vtable(self).GetInstanceId)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWSDiscoveredService, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWSDiscoveredService { - type Vtable = IWSDiscoveredService_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWSDiscoveredService { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4bad8a3b_b374_4420_9632_aac945b374aa); -} #[repr(C)] #[doc(hidden)] pub struct IWSDiscoveredService_Vtbl { @@ -1635,9 +1419,8 @@ pub struct IWSDiscoveredService_Vtbl { pub GetLocalInterfaceGUID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pguid: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, pub GetInstanceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pullinstanceid: *mut u64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWSDiscoveryProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWSDiscoveryProvider, IWSDiscoveryProvider_Vtbl, 0x8ffc8e55_f0eb_480f_88b7_b435dd281d45); +::windows_core::imp::interface_hierarchy!(IWSDiscoveryProvider, ::windows_core::IUnknown); impl IWSDiscoveryProvider { pub unsafe fn SetAddressFamily(&self, dwaddressfamily: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetAddressFamily)(::windows_core::Interface::as_raw(self), dwaddressfamily).ok() @@ -1677,13 +1460,6 @@ impl IWSDiscoveryProvider { (::windows_core::Interface::vtable(self).GetXMLContext)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWSDiscoveryProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWSDiscoveryProvider { - type Vtable = IWSDiscoveryProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWSDiscoveryProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8ffc8e55_f0eb_480f_88b7_b435dd281d45); -} #[repr(C)] #[doc(hidden)] pub struct IWSDiscoveryProvider_Vtbl { @@ -1696,9 +1472,8 @@ pub struct IWSDiscoveryProvider_Vtbl { pub SearchByType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptypeslist: *const WSD_NAME_LIST, pscopeslist: *const WSD_URI_LIST, pszmatchby: ::windows_core::PCWSTR, psztag: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub GetXMLContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppcontext: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWSDiscoveryProviderNotify(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWSDiscoveryProviderNotify, IWSDiscoveryProviderNotify_Vtbl, 0x73ee3ced_b6e6_4329_a546_3e8ad46563d2); +::windows_core::imp::interface_hierarchy!(IWSDiscoveryProviderNotify, ::windows_core::IUnknown); impl IWSDiscoveryProviderNotify { pub unsafe fn Add(&self, pservice: P0) -> ::windows_core::Result<()> where @@ -1725,13 +1500,6 @@ impl IWSDiscoveryProviderNotify { (::windows_core::Interface::vtable(self).SearchComplete)(::windows_core::Interface::as_raw(self), psztag.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IWSDiscoveryProviderNotify, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWSDiscoveryProviderNotify { - type Vtable = IWSDiscoveryProviderNotify_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWSDiscoveryProviderNotify { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x73ee3ced_b6e6_4329_a546_3e8ad46563d2); -} #[repr(C)] #[doc(hidden)] pub struct IWSDiscoveryProviderNotify_Vtbl { @@ -1741,9 +1509,8 @@ pub struct IWSDiscoveryProviderNotify_Vtbl { pub SearchFailed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hr: ::windows_core::HRESULT, psztag: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub SearchComplete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psztag: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWSDiscoveryPublisher(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWSDiscoveryPublisher, IWSDiscoveryPublisher_Vtbl, 0xae01e1a8_3ff9_4148_8116_057cc616fe13); +::windows_core::imp::interface_hierarchy!(IWSDiscoveryPublisher, ::windows_core::IUnknown); impl IWSDiscoveryPublisher { pub unsafe fn SetAddressFamily(&self, dwaddressfamily: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetAddressFamily)(::windows_core::Interface::as_raw(self), dwaddressfamily).ok() @@ -1882,13 +1649,6 @@ impl IWSDiscoveryPublisher { (::windows_core::Interface::vtable(self).GetXMLContext)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWSDiscoveryPublisher, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWSDiscoveryPublisher { - type Vtable = IWSDiscoveryPublisher_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWSDiscoveryPublisher { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xae01e1a8_3ff9_4148_8116_057cc616fe13); -} #[repr(C)] #[doc(hidden)] pub struct IWSDiscoveryPublisher_Vtbl { @@ -1907,9 +1667,8 @@ pub struct IWSDiscoveryPublisher_Vtbl { pub UnRegisterScopeMatchingRule: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pscopematchingrule: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetXMLContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppcontext: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWSDiscoveryPublisherNotify(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWSDiscoveryPublisherNotify, IWSDiscoveryPublisherNotify_Vtbl, 0xe67651b0_337a_4b3c_9758_733388568251); +::windows_core::imp::interface_hierarchy!(IWSDiscoveryPublisherNotify, ::windows_core::IUnknown); impl IWSDiscoveryPublisherNotify { pub unsafe fn ProbeHandler(&self, psoap: *const WSD_SOAP_MESSAGE, pmessageparameters: P0) -> ::windows_core::Result<()> where @@ -1924,13 +1683,6 @@ impl IWSDiscoveryPublisherNotify { (::windows_core::Interface::vtable(self).ResolveHandler)(::windows_core::Interface::as_raw(self), psoap, pmessageparameters.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IWSDiscoveryPublisherNotify, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWSDiscoveryPublisherNotify { - type Vtable = IWSDiscoveryPublisherNotify_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWSDiscoveryPublisherNotify { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe67651b0_337a_4b3c_9758_733388568251); -} #[repr(C)] #[doc(hidden)] pub struct IWSDiscoveryPublisherNotify_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Gaming/impl.rs b/crates/libs/windows/src/Windows/Win32/Gaming/impl.rs index c5b728c795..dc434f45b6 100644 --- a/crates/libs/windows/src/Windows/Win32/Gaming/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Gaming/impl.rs @@ -42,7 +42,7 @@ impl IGameExplorer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IGameExplorer2_Impl: Sized { @@ -82,7 +82,7 @@ impl IGameExplorer2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IGameStatistics_Impl: Sized { @@ -221,7 +221,7 @@ impl IGameStatistics_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IGameStatisticsMgr_Impl: Sized { @@ -248,7 +248,7 @@ impl IGameStatisticsMgr_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IXblIdpAuthManager_Impl: Sized { @@ -321,7 +321,7 @@ impl IXblIdpAuthManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IXblIdpAuthManager2_Impl: Sized { @@ -347,7 +347,7 @@ impl IXblIdpAuthManager2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IXblIdpAuthTokenResult_Impl: Sized { @@ -620,7 +620,7 @@ impl IXblIdpAuthTokenResult_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IXblIdpAuthTokenResult2_Impl: Sized { @@ -672,6 +672,6 @@ impl IXblIdpAuthTokenResult2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/Win32/Gaming/mod.rs b/crates/libs/windows/src/Windows/Win32/Gaming/mod.rs index d1c026e393..cca7bc36f4 100644 --- a/crates/libs/windows/src/Windows/Win32/Gaming/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Gaming/mod.rs @@ -192,9 +192,8 @@ pub unsafe fn TryCancelPendingGameUI() -> super::Foundation::BOOL { ::windows_targets::link!("api-ms-win-gaming-tcui-l1-1-0.dll" "system" fn TryCancelPendingGameUI() -> super::Foundation:: BOOL); TryCancelPendingGameUI() } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGameExplorer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IGameExplorer, IGameExplorer_Vtbl, 0xe7b2fb72_d728_49b3_a5f2_18ebf5f1349e); +::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 @@ -217,13 +216,6 @@ impl IGameExplorer { (::windows_core::Interface::vtable(self).VerifyAccess)(::windows_core::Interface::as_raw(self), bstrgdfbinarypath.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IGameExplorer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGameExplorer { - type Vtable = IGameExplorer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGameExplorer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe7b2fb72_d728_49b3_a5f2_18ebf5f1349e); -} #[repr(C)] #[doc(hidden)] pub struct IGameExplorer_Vtbl { @@ -233,9 +225,8 @@ pub struct IGameExplorer_Vtbl { pub UpdateGame: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guidinstanceid: ::windows_core::GUID) -> ::windows_core::HRESULT, pub VerifyAccess: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrgdfbinarypath: ::std::mem::MaybeUninit<::windows_core::BSTR>, pfhasaccess: *mut super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGameExplorer2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IGameExplorer2, IGameExplorer2_Vtbl, 0x86874aa7_a1ed_450d_a7eb_b89e20b2fff3); +::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 @@ -258,13 +249,6 @@ impl IGameExplorer2 { (::windows_core::Interface::vtable(self).CheckAccess)(::windows_core::Interface::as_raw(self), binarygdfpath.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IGameExplorer2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGameExplorer2 { - type Vtable = IGameExplorer2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGameExplorer2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x86874aa7_a1ed_450d_a7eb_b89e20b2fff3); -} #[repr(C)] #[doc(hidden)] pub struct IGameExplorer2_Vtbl { @@ -273,9 +257,8 @@ pub struct IGameExplorer2_Vtbl { pub UninstallGame: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, binarygdfpath: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub CheckAccess: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, binarygdfpath: ::windows_core::PCWSTR, phasaccess: *mut super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGameStatistics(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IGameStatistics, IGameStatistics_Vtbl, 0x3887c9ca_04a0_42ae_bc4c_5fa6c7721145); +::windows_core::imp::interface_hierarchy!(IGameStatistics, ::windows_core::IUnknown); impl IGameStatistics { pub unsafe fn GetMaxCategoryLength(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -331,13 +314,6 @@ impl IGameStatistics { (::windows_core::Interface::vtable(self).GetLastPlayedCategory)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IGameStatistics, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGameStatistics { - type Vtable = IGameStatistics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGameStatistics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3887c9ca_04a0_42ae_bc4c_5fa6c7721145); -} #[repr(C)] #[doc(hidden)] pub struct IGameStatistics_Vtbl { @@ -355,9 +331,8 @@ pub struct IGameStatistics_Vtbl { pub SetLastPlayedCategory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, categoryindex: u32) -> ::windows_core::HRESULT, pub GetLastPlayedCategory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcategoryindex: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGameStatisticsMgr(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IGameStatisticsMgr, IGameStatisticsMgr_Vtbl, 0xaff3ea11_e70e_407d_95dd_35e612c41ce2); +::windows_core::imp::interface_hierarchy!(IGameStatisticsMgr, ::windows_core::IUnknown); impl IGameStatisticsMgr { pub unsafe fn GetGameStatistics(&self, gdfbinarypath: P0, opentype: GAMESTATS_OPEN_TYPE, popenresult: *mut GAMESTATS_OPEN_RESULT, ppistats: *mut ::core::option::Option) -> ::windows_core::Result<()> where @@ -372,13 +347,6 @@ impl IGameStatisticsMgr { (::windows_core::Interface::vtable(self).RemoveGameStatistics)(::windows_core::Interface::as_raw(self), gdfbinarypath.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IGameStatisticsMgr, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGameStatisticsMgr { - type Vtable = IGameStatisticsMgr_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGameStatisticsMgr { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaff3ea11_e70e_407d_95dd_35e612c41ce2); -} #[repr(C)] #[doc(hidden)] pub struct IGameStatisticsMgr_Vtbl { @@ -386,9 +354,8 @@ pub struct IGameStatisticsMgr_Vtbl { pub GetGameStatistics: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, gdfbinarypath: ::windows_core::PCWSTR, opentype: GAMESTATS_OPEN_TYPE, popenresult: *mut GAMESTATS_OPEN_RESULT, ppistats: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RemoveGameStatistics: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, gdfbinarypath: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXblIdpAuthManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXblIdpAuthManager, IXblIdpAuthManager_Vtbl, 0xeb5ddb08_8bbf_449b_ac21_b02ddeb3b136); +::windows_core::imp::interface_hierarchy!(IXblIdpAuthManager, ::windows_core::IUnknown); impl IXblIdpAuthManager { pub unsafe fn SetGamerAccount(&self, msaaccountid: P0, xuid: P1) -> ::windows_core::Result<()> where @@ -430,13 +397,6 @@ impl IXblIdpAuthManager { (::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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IXblIdpAuthManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXblIdpAuthManager { - type Vtable = IXblIdpAuthManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXblIdpAuthManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeb5ddb08_8bbf_449b_ac21_b02ddeb3b136); -} #[repr(C)] #[doc(hidden)] pub struct IXblIdpAuthManager_Vtbl { @@ -448,9 +408,8 @@ pub struct IXblIdpAuthManager_Vtbl { pub GetSandbox: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sandbox: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, pub GetTokenAndSignatureWithTokenResult: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, msaaccountid: ::windows_core::PCWSTR, appsid: ::windows_core::PCWSTR, msatarget: ::windows_core::PCWSTR, msapolicy: ::windows_core::PCWSTR, httpmethod: ::windows_core::PCWSTR, uri: ::windows_core::PCWSTR, headers: ::windows_core::PCWSTR, body: *const u8, bodysize: u32, forcerefresh: super::Foundation::BOOL, result: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXblIdpAuthManager2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXblIdpAuthManager2, IXblIdpAuthManager2_Vtbl, 0xbf8c0950_8389_43dd_9a76_a19728ec5dc5); +::windows_core::imp::interface_hierarchy!(IXblIdpAuthManager2, ::windows_core::IUnknown); 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 @@ -466,22 +425,14 @@ impl IXblIdpAuthManager2 { (::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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IXblIdpAuthManager2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXblIdpAuthManager2 { - type Vtable = IXblIdpAuthManager2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXblIdpAuthManager2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbf8c0950_8389_43dd_9a76_a19728ec5dc5); -} #[repr(C)] #[doc(hidden)] pub struct IXblIdpAuthManager2_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetUserlessTokenAndSignatureWithTokenResult: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, appsid: ::windows_core::PCWSTR, msatarget: ::windows_core::PCWSTR, msapolicy: ::windows_core::PCWSTR, httpmethod: ::windows_core::PCWSTR, uri: ::windows_core::PCWSTR, headers: ::windows_core::PCWSTR, body: *const u8, bodysize: u32, forcerefresh: super::Foundation::BOOL, result: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXblIdpAuthTokenResult(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXblIdpAuthTokenResult, IXblIdpAuthTokenResult_Vtbl, 0x46ce0225_f267_4d68_b299_b2762552dec1); +::windows_core::imp::interface_hierarchy!(IXblIdpAuthTokenResult, ::windows_core::IUnknown); impl IXblIdpAuthTokenResult { pub unsafe fn GetStatus(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -564,13 +515,6 @@ impl IXblIdpAuthTokenResult { (::windows_core::Interface::vtable(self).GetTitleRestrictions)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IXblIdpAuthTokenResult, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXblIdpAuthTokenResult { - type Vtable = IXblIdpAuthTokenResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXblIdpAuthTokenResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x46ce0225_f267_4d68_b299_b2762552dec1); -} #[repr(C)] #[doc(hidden)] pub struct IXblIdpAuthTokenResult_Vtbl { @@ -596,9 +540,8 @@ pub struct IXblIdpAuthTokenResult_Vtbl { pub GetRestrictions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, restrictions: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, pub GetTitleRestrictions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, titlerestrictions: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXblIdpAuthTokenResult2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXblIdpAuthTokenResult2, IXblIdpAuthTokenResult2_Vtbl, 0x75d760b0_60b9_412d_994f_26b2cd5f7812); +::windows_core::imp::interface_hierarchy!(IXblIdpAuthTokenResult2, ::windows_core::IUnknown); impl IXblIdpAuthTokenResult2 { pub unsafe fn GetModernGamertag(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); @@ -613,13 +556,6 @@ impl IXblIdpAuthTokenResult2 { (::windows_core::Interface::vtable(self).GetUniqueModernGamertag)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IXblIdpAuthTokenResult2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXblIdpAuthTokenResult2 { - type Vtable = IXblIdpAuthTokenResult2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXblIdpAuthTokenResult2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x75d760b0_60b9_412d_994f_26b2cd5f7812); -} #[repr(C)] #[doc(hidden)] pub struct IXblIdpAuthTokenResult2_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Globalization/impl.rs b/crates/libs/windows/src/Windows/Win32/Globalization/impl.rs index fb4fbdf3be..ba2f16567d 100644 --- a/crates/libs/windows/src/Windows/Win32/Globalization/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Globalization/impl.rs @@ -18,7 +18,7 @@ impl IComprehensiveSpellCheckProvider_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), ComprehensiveCheck: ComprehensiveCheck:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumCodePage_Impl: Sized { @@ -59,7 +59,7 @@ impl IEnumCodePage_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumRfc1766_Impl: Sized { @@ -100,7 +100,7 @@ impl IEnumRfc1766_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumScript_Impl: Sized { @@ -141,7 +141,7 @@ impl IEnumScript_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumSpellingError_Impl: Sized { @@ -158,7 +158,7 @@ impl IEnumSpellingError_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Next: Next:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMLangCodePages_Impl: Sized { @@ -217,7 +217,7 @@ impl IMLangCodePages_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMLangConvertCharset_Impl: Sized { @@ -297,7 +297,7 @@ impl IMLangConvertCharset_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] @@ -342,7 +342,7 @@ impl IMLangFontLink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] @@ -414,7 +414,7 @@ impl IMLangFontLink2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IMLangLineBreakConsole_Impl: Sized { @@ -448,7 +448,7 @@ impl IMLangLineBreakConsole_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMLangString_Impl: Sized { @@ -489,7 +489,7 @@ impl IMLangString_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMLangStringAStr_Impl: Sized + IMLangString_Impl { @@ -558,7 +558,7 @@ impl IMLangStringAStr_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IMLangStringBufA_Impl: Sized { @@ -606,7 +606,7 @@ impl IMLangStringBufA_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMLangStringBufW_Impl: Sized { @@ -654,7 +654,7 @@ impl IMLangStringBufW_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMLangStringWStr_Impl: Sized + IMLangString_Impl { @@ -723,7 +723,7 @@ impl IMLangStringWStr_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IMultiLanguage_Impl: Sized { @@ -877,7 +877,7 @@ impl IMultiLanguage_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1131,7 +1131,7 @@ impl IMultiLanguage2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1162,7 +1162,7 @@ impl IMultiLanguage3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1231,7 +1231,7 @@ impl IOptionDescription_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1366,7 +1366,7 @@ impl ISpellCheckProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1422,7 +1422,7 @@ impl ISpellCheckProviderFactory_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1597,7 +1597,7 @@ impl ISpellChecker_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1618,7 +1618,7 @@ impl ISpellChecker2_Vtbl { Self { base__: ISpellChecker_Vtbl::new::(), Remove: Remove:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ISpellCheckerChangedEventHandler_Impl: Sized { @@ -1635,7 +1635,7 @@ impl ISpellCheckerChangedEventHandler_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Invoke: Invoke:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1691,7 +1691,7 @@ impl ISpellCheckerFactory_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISpellingError_Impl: Sized { @@ -1756,7 +1756,7 @@ impl ISpellingError_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUserDictionariesRegistrar_Impl: Sized { @@ -1783,6 +1783,6 @@ impl IUserDictionariesRegistrar_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/Win32/Globalization/mod.rs b/crates/libs/windows/src/Windows/Win32/Globalization/mod.rs index 5d079e2d06..73319f2cdb 100644 --- a/crates/libs/windows/src/Windows/Win32/Globalization/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Globalization/mod.rs @@ -7035,9 +7035,8 @@ pub unsafe fn utrans_unregisterID(id: *const u16, idlength: i32) { ::windows_targets::link!("icu.dll" "cdecl" fn utrans_unregisterID(id : *const u16, idlength : i32)); utrans_unregisterID(id, idlength) } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IComprehensiveSpellCheckProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IComprehensiveSpellCheckProvider, IComprehensiveSpellCheckProvider_Vtbl, 0x0c58f8de_8e94_479e_9717_70c42c4ad2c3); +::windows_core::imp::interface_hierarchy!(IComprehensiveSpellCheckProvider, ::windows_core::IUnknown); impl IComprehensiveSpellCheckProvider { pub unsafe fn ComprehensiveCheck(&self, text: P0) -> ::windows_core::Result where @@ -7047,22 +7046,14 @@ impl IComprehensiveSpellCheckProvider { (::windows_core::Interface::vtable(self).ComprehensiveCheck)(::windows_core::Interface::as_raw(self), text.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IComprehensiveSpellCheckProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IComprehensiveSpellCheckProvider { - type Vtable = IComprehensiveSpellCheckProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IComprehensiveSpellCheckProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c58f8de_8e94_479e_9717_70c42c4ad2c3); -} #[repr(C)] #[doc(hidden)] pub struct IComprehensiveSpellCheckProvider_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub ComprehensiveCheck: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, text: ::windows_core::PCWSTR, value: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumCodePage(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumCodePage, IEnumCodePage_Vtbl, 0x275c23e3_3747_11d0_9fea_00aa003f8646); +::windows_core::imp::interface_hierarchy!(IEnumCodePage, ::windows_core::IUnknown); impl IEnumCodePage { pub unsafe fn Clone(&self, ppenum: ::core::option::Option<*const ::core::option::Option>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(ppenum.unwrap_or(::std::ptr::null()))).ok() @@ -7077,13 +7068,6 @@ impl IEnumCodePage { (::windows_core::Interface::vtable(self).Skip)(::windows_core::Interface::as_raw(self), celt).ok() } } -::windows_core::imp::interface_hierarchy!(IEnumCodePage, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumCodePage { - type Vtable = IEnumCodePage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumCodePage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x275c23e3_3747_11d0_9fea_00aa003f8646); -} #[repr(C)] #[doc(hidden)] pub struct IEnumCodePage_Vtbl { @@ -7093,9 +7077,8 @@ pub struct IEnumCodePage_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Skip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, celt: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumRfc1766(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumRfc1766, IEnumRfc1766_Vtbl, 0x3dc39d1d_c030_11d0_b81b_00c04fc9b31f); +::windows_core::imp::interface_hierarchy!(IEnumRfc1766, ::windows_core::IUnknown); impl IEnumRfc1766 { pub unsafe fn Clone(&self, ppenum: ::core::option::Option<*const ::core::option::Option>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(ppenum.unwrap_or(::std::ptr::null()))).ok() @@ -7110,13 +7093,6 @@ impl IEnumRfc1766 { (::windows_core::Interface::vtable(self).Skip)(::windows_core::Interface::as_raw(self), celt).ok() } } -::windows_core::imp::interface_hierarchy!(IEnumRfc1766, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumRfc1766 { - type Vtable = IEnumRfc1766_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumRfc1766 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3dc39d1d_c030_11d0_b81b_00c04fc9b31f); -} #[repr(C)] #[doc(hidden)] pub struct IEnumRfc1766_Vtbl { @@ -7126,9 +7102,8 @@ pub struct IEnumRfc1766_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Skip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, celt: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumScript(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumScript, IEnumScript_Vtbl, 0xae5f1430_388b_11d2_8380_00c04f8f5da1); +::windows_core::imp::interface_hierarchy!(IEnumScript, ::windows_core::IUnknown); impl IEnumScript { pub unsafe fn Clone(&self, ppenum: ::core::option::Option<*const ::core::option::Option>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(ppenum.unwrap_or(::std::ptr::null()))).ok() @@ -7143,13 +7118,6 @@ impl IEnumScript { (::windows_core::Interface::vtable(self).Skip)(::windows_core::Interface::as_raw(self), celt).ok() } } -::windows_core::imp::interface_hierarchy!(IEnumScript, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumScript { - type Vtable = IEnumScript_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumScript { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xae5f1430_388b_11d2_8380_00c04f8f5da1); -} #[repr(C)] #[doc(hidden)] pub struct IEnumScript_Vtbl { @@ -7159,30 +7127,21 @@ pub struct IEnumScript_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Skip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, celt: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumSpellingError(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumSpellingError, IEnumSpellingError_Vtbl, 0x803e3bd4_2828_4410_8290_418d1d73c762); +::windows_core::imp::interface_hierarchy!(IEnumSpellingError, ::windows_core::IUnknown); impl IEnumSpellingError { pub unsafe fn Next(&self, value: *mut ::core::option::Option) -> ::windows_core::HRESULT { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(value)) } } -::windows_core::imp::interface_hierarchy!(IEnumSpellingError, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumSpellingError { - type Vtable = IEnumSpellingError_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumSpellingError { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x803e3bd4_2828_4410_8290_418d1d73c762); -} #[repr(C)] #[doc(hidden)] pub struct IEnumSpellingError_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Next: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMLangCodePages(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMLangCodePages, IMLangCodePages_Vtbl, 0x359f3443_bd4a_11d0_b188_00aa0038c969); +::windows_core::imp::interface_hierarchy!(IMLangCodePages, ::windows_core::IUnknown); impl IMLangCodePages { pub unsafe fn GetCharCodePages(&self, chsrc: u16) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -7200,13 +7159,6 @@ impl IMLangCodePages { (::windows_core::Interface::vtable(self).CodePagesToCodePage)(::windows_core::Interface::as_raw(self), dwcodepages, udefaultcodepage, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMLangCodePages, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMLangCodePages { - type Vtable = IMLangCodePages_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMLangCodePages { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x359f3443_bd4a_11d0_b188_00aa0038c969); -} #[repr(C)] #[doc(hidden)] pub struct IMLangCodePages_Vtbl { @@ -7216,9 +7168,8 @@ pub struct IMLangCodePages_Vtbl { pub CodePageToCodePages: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ucodepage: u32, pdwcodepages: *mut u32) -> ::windows_core::HRESULT, pub CodePagesToCodePage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwcodepages: u32, udefaultcodepage: u32, pucodepage: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMLangConvertCharset(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMLangConvertCharset, IMLangConvertCharset_Vtbl, 0xd66d6f98_cdaa_11d0_b822_00c04fc9b31f); +::windows_core::imp::interface_hierarchy!(IMLangConvertCharset, ::windows_core::IUnknown); impl IMLangConvertCharset { pub unsafe fn Initialize(&self, uisrccodepage: u32, uidstcodepage: u32, dwproperty: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Initialize)(::windows_core::Interface::as_raw(self), uisrccodepage, uidstcodepage, dwproperty).ok() @@ -7251,13 +7202,6 @@ impl IMLangConvertCharset { (::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::imp::interface_hierarchy!(IMLangConvertCharset, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMLangConvertCharset { - type Vtable = IMLangConvertCharset_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMLangConvertCharset { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd66d6f98_cdaa_11d0_b822_00c04fc9b31f); -} #[repr(C)] #[doc(hidden)] pub struct IMLangConvertCharset_Vtbl { @@ -7270,9 +7214,8 @@ pub struct IMLangConvertCharset_Vtbl { pub DoConversionToUnicode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psrcstr: ::windows_core::PCSTR, pcsrcsize: *mut u32, pdststr: ::windows_core::PWSTR, pcdstsize: *mut u32) -> ::windows_core::HRESULT, pub DoConversionFromUnicode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psrcstr: ::windows_core::PCWSTR, pcsrcsize: *mut u32, pdststr: ::windows_core::PSTR, pcdstsize: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMLangFontLink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMLangFontLink, IMLangFontLink_Vtbl, 0x359f3441_bd4a_11d0_b188_00aa0038c969); +::windows_core::imp::interface_hierarchy!(IMLangFontLink, ::windows_core::IUnknown, IMLangCodePages); impl IMLangFontLink { pub unsafe fn GetCharCodePages(&self, chsrc: u16) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -7319,13 +7262,6 @@ impl IMLangFontLink { (::windows_core::Interface::vtable(self).ResetFontMapping)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IMLangFontLink, ::windows_core::IUnknown, IMLangCodePages); -unsafe impl ::windows_core::Interface for IMLangFontLink { - type Vtable = IMLangFontLink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMLangFontLink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x359f3441_bd4a_11d0_b188_00aa0038c969); -} #[repr(C)] #[doc(hidden)] pub struct IMLangFontLink_Vtbl { @@ -7344,9 +7280,8 @@ pub struct IMLangFontLink_Vtbl { ReleaseFont: usize, pub ResetFontMapping: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMLangFontLink2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMLangFontLink2, IMLangFontLink2_Vtbl, 0xdccfc162_2b38_11d2_b7ec_00c04f8f5d9a); +::windows_core::imp::interface_hierarchy!(IMLangFontLink2, ::windows_core::IUnknown, IMLangCodePages); impl IMLangFontLink2 { pub unsafe fn GetCharCodePages(&self, chsrc: u16) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -7407,13 +7342,6 @@ impl IMLangFontLink2 { (::windows_core::Interface::vtable(self).CodePageToScriptID)(::windows_core::Interface::as_raw(self), uicodepage, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMLangFontLink2, ::windows_core::IUnknown, IMLangCodePages); -unsafe impl ::windows_core::Interface for IMLangFontLink2 { - type Vtable = IMLangFontLink2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMLangFontLink2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdccfc162_2b38_11d2_b7ec_00c04f8f5d9a); -} #[repr(C)] #[doc(hidden)] pub struct IMLangFontLink2_Vtbl { @@ -7438,9 +7366,8 @@ pub struct IMLangFontLink2_Vtbl { pub GetScriptFontInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sid: u8, dwflags: u32, puifonts: *mut u32, pscriptfont: *mut SCRIPTFONTINFO) -> ::windows_core::HRESULT, pub CodePageToScriptID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uicodepage: u32, psid: *mut u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMLangLineBreakConsole(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMLangLineBreakConsole, IMLangLineBreakConsole_Vtbl, 0xf5be2ee1_bfd7_11d0_b188_00aa0038c969); +::windows_core::imp::interface_hierarchy!(IMLangLineBreakConsole, ::windows_core::IUnknown); impl IMLangLineBreakConsole { pub unsafe fn BreakLineML(&self, psrcmlstr: P0, lsrcpos: i32, lsrclen: i32, cmincolumns: i32, cmaxcolumns: i32, pllinelen: ::core::option::Option<*mut i32>, plskiplen: ::core::option::Option<*mut i32>) -> ::windows_core::Result<()> where @@ -7455,13 +7382,6 @@ impl IMLangLineBreakConsole { (::windows_core::Interface::vtable(self).BreakLineA)(::windows_core::Interface::as_raw(self), locale, ucodepage, ::core::mem::transmute(pszsrc.as_ptr()), pszsrc.len().try_into().unwrap(), cmaxcolumns, ::core::mem::transmute(pcchline.unwrap_or(::std::ptr::null_mut())), ::core::mem::transmute(pcchskip.unwrap_or(::std::ptr::null_mut()))).ok() } } -::windows_core::imp::interface_hierarchy!(IMLangLineBreakConsole, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMLangLineBreakConsole { - type Vtable = IMLangLineBreakConsole_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMLangLineBreakConsole { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf5be2ee1_bfd7_11d0_b188_00aa0038c969); -} #[repr(C)] #[doc(hidden)] pub struct IMLangLineBreakConsole_Vtbl { @@ -7470,9 +7390,8 @@ pub struct IMLangLineBreakConsole_Vtbl { pub BreakLineW: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, locale: u32, pszsrc: ::windows_core::PCWSTR, cchsrc: i32, cmaxcolumns: i32, pcchline: *mut i32, pcchskip: *mut i32) -> ::windows_core::HRESULT, pub BreakLineA: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, locale: u32, ucodepage: u32, pszsrc: ::windows_core::PCSTR, cchsrc: i32, cmaxcolumns: i32, pcchline: *mut i32, pcchskip: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMLangString(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMLangString, IMLangString_Vtbl, 0xc04d65ce_b70d_11d0_b188_00aa0038c969); +::windows_core::imp::interface_hierarchy!(IMLangString, ::windows_core::IUnknown); impl IMLangString { pub unsafe fn Sync(&self, fnoaccess: P0) -> ::windows_core::Result<()> where @@ -7496,13 +7415,6 @@ impl IMLangString { (::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::imp::interface_hierarchy!(IMLangString, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMLangString { - type Vtable = IMLangString_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMLangString { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc04d65ce_b70d_11d0_b188_00aa0038c969); -} #[repr(C)] #[doc(hidden)] pub struct IMLangString_Vtbl { @@ -7512,9 +7424,8 @@ pub struct IMLangString_Vtbl { pub SetMLStr: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ldestpos: i32, ldestlen: i32, psrcmlstr: *mut ::core::ffi::c_void, lsrcpos: i32, lsrclen: i32) -> ::windows_core::HRESULT, pub GetMLStr: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lsrcpos: i32, lsrclen: i32, punkouter: *mut ::core::ffi::c_void, dwclscontext: u32, piid: *const ::windows_core::GUID, ppdestmlstr: *mut *mut ::core::ffi::c_void, pldestpos: *mut i32, pldestlen: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMLangStringAStr(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMLangStringAStr, IMLangStringAStr_Vtbl, 0xc04d65d2_b70d_11d0_b188_00aa0038c969); +::windows_core::imp::interface_hierarchy!(IMLangStringAStr, ::windows_core::IUnknown, IMLangString); impl IMLangStringAStr { pub unsafe fn Sync(&self, fnoaccess: P0) -> ::windows_core::Result<()> where @@ -7565,13 +7476,6 @@ impl IMLangStringAStr { (::windows_core::Interface::vtable(self).GetLocale)(::windows_core::Interface::as_raw(self), lsrcpos, lsrcmaxlen, ::core::mem::transmute(plocale.unwrap_or(::std::ptr::null_mut())), ::core::mem::transmute(pllocalepos.unwrap_or(::std::ptr::null_mut())), ::core::mem::transmute(pllocalelen.unwrap_or(::std::ptr::null_mut()))).ok() } } -::windows_core::imp::interface_hierarchy!(IMLangStringAStr, ::windows_core::IUnknown, IMLangString); -unsafe impl ::windows_core::Interface for IMLangStringAStr { - type Vtable = IMLangStringAStr_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMLangStringAStr { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc04d65d2_b70d_11d0_b188_00aa0038c969); -} #[repr(C)] #[doc(hidden)] pub struct IMLangStringAStr_Vtbl { @@ -7585,9 +7489,8 @@ pub struct IMLangStringAStr_Vtbl { pub SetLocale: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ldestpos: i32, ldestlen: i32, locale: u32) -> ::windows_core::HRESULT, pub GetLocale: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lsrcpos: i32, lsrcmaxlen: i32, plocale: *mut u32, pllocalepos: *mut i32, pllocalelen: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMLangStringBufA(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMLangStringBufA, IMLangStringBufA_Vtbl, 0xd24acd23_ba72_11d0_b188_00aa0038c969); +::windows_core::imp::interface_hierarchy!(IMLangStringBufA, ::windows_core::IUnknown); impl IMLangStringBufA { pub unsafe fn GetStatus(&self, plflags: ::core::option::Option<*mut i32>, pcchbuf: ::core::option::Option<*mut i32>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetStatus)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(plflags.unwrap_or(::std::ptr::null_mut())), ::core::mem::transmute(pcchbuf.unwrap_or(::std::ptr::null_mut()))).ok() @@ -7608,13 +7511,6 @@ impl IMLangStringBufA { (::windows_core::Interface::vtable(self).Delete)(::windows_core::Interface::as_raw(self), cchoffset, cchdelete).ok() } } -::windows_core::imp::interface_hierarchy!(IMLangStringBufA, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMLangStringBufA { - type Vtable = IMLangStringBufA_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMLangStringBufA { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd24acd23_ba72_11d0_b188_00aa0038c969); -} #[repr(C)] #[doc(hidden)] pub struct IMLangStringBufA_Vtbl { @@ -7625,9 +7521,8 @@ pub struct IMLangStringBufA_Vtbl { pub Insert: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cchoffset: i32, cchmaxinsert: i32, pcchactual: *mut i32) -> ::windows_core::HRESULT, pub Delete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cchoffset: i32, cchdelete: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMLangStringBufW(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMLangStringBufW, IMLangStringBufW_Vtbl, 0xd24acd21_ba72_11d0_b188_00aa0038c969); +::windows_core::imp::interface_hierarchy!(IMLangStringBufW, ::windows_core::IUnknown); impl IMLangStringBufW { pub unsafe fn GetStatus(&self, plflags: ::core::option::Option<*mut i32>, pcchbuf: ::core::option::Option<*mut i32>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetStatus)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(plflags.unwrap_or(::std::ptr::null_mut())), ::core::mem::transmute(pcchbuf.unwrap_or(::std::ptr::null_mut()))).ok() @@ -7648,13 +7543,6 @@ impl IMLangStringBufW { (::windows_core::Interface::vtable(self).Delete)(::windows_core::Interface::as_raw(self), cchoffset, cchdelete).ok() } } -::windows_core::imp::interface_hierarchy!(IMLangStringBufW, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMLangStringBufW { - type Vtable = IMLangStringBufW_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMLangStringBufW { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd24acd21_ba72_11d0_b188_00aa0038c969); -} #[repr(C)] #[doc(hidden)] pub struct IMLangStringBufW_Vtbl { @@ -7665,9 +7553,8 @@ pub struct IMLangStringBufW_Vtbl { pub Insert: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cchoffset: i32, cchmaxinsert: i32, pcchactual: *mut i32) -> ::windows_core::HRESULT, pub Delete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cchoffset: i32, cchdelete: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMLangStringWStr(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMLangStringWStr, IMLangStringWStr_Vtbl, 0xc04d65d0_b70d_11d0_b188_00aa0038c969); +::windows_core::imp::interface_hierarchy!(IMLangStringWStr, ::windows_core::IUnknown, IMLangString); impl IMLangStringWStr { pub unsafe fn Sync(&self, fnoaccess: P0) -> ::windows_core::Result<()> where @@ -7718,13 +7605,6 @@ impl IMLangStringWStr { (::windows_core::Interface::vtable(self).GetLocale)(::windows_core::Interface::as_raw(self), lsrcpos, lsrcmaxlen, ::core::mem::transmute(plocale.unwrap_or(::std::ptr::null_mut())), ::core::mem::transmute(pllocalepos.unwrap_or(::std::ptr::null_mut())), ::core::mem::transmute(pllocalelen.unwrap_or(::std::ptr::null_mut()))).ok() } } -::windows_core::imp::interface_hierarchy!(IMLangStringWStr, ::windows_core::IUnknown, IMLangString); -unsafe impl ::windows_core::Interface for IMLangStringWStr { - type Vtable = IMLangStringWStr_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMLangStringWStr { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc04d65d0_b70d_11d0_b188_00aa0038c969); -} #[repr(C)] #[doc(hidden)] pub struct IMLangStringWStr_Vtbl { @@ -7738,9 +7618,8 @@ pub struct IMLangStringWStr_Vtbl { pub SetLocale: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ldestpos: i32, ldestlen: i32, locale: u32) -> ::windows_core::HRESULT, pub GetLocale: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lsrcpos: i32, lsrcmaxlen: i32, plocale: *mut u32, pllocalepos: *mut i32, pllocalelen: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMultiLanguage(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMultiLanguage, IMultiLanguage_Vtbl, 0x275c23e1_3747_11d0_9fea_00aa003f8646); +::windows_core::imp::interface_hierarchy!(IMultiLanguage, ::windows_core::IUnknown); impl IMultiLanguage { pub unsafe fn GetNumberOfCodePageInfo(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -7806,13 +7685,6 @@ impl IMultiLanguage { (::windows_core::Interface::vtable(self).CreateConvertCharset)(::windows_core::Interface::as_raw(self), uisrccodepage, uidstcodepage, dwproperty, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMultiLanguage, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMultiLanguage { - type Vtable = IMultiLanguage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMultiLanguage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x275c23e1_3747_11d0_9fea_00aa003f8646); -} #[repr(C)] #[doc(hidden)] pub struct IMultiLanguage_Vtbl { @@ -7833,9 +7705,8 @@ pub struct IMultiLanguage_Vtbl { pub GetRfc1766Info: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, locale: u32, prfc1766info: *mut RFC1766INFO) -> ::windows_core::HRESULT, pub CreateConvertCharset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uisrccodepage: u32, uidstcodepage: u32, dwproperty: u32, ppmlangconvertcharset: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMultiLanguage2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMultiLanguage2, IMultiLanguage2_Vtbl, 0xdccfc164_2b38_11d2_b7ec_00c04f8f5d9a); +::windows_core::imp::interface_hierarchy!(IMultiLanguage2, ::windows_core::IUnknown); impl IMultiLanguage2 { pub unsafe fn GetNumberOfCodePageInfo(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -7968,13 +7839,6 @@ impl IMultiLanguage2 { (::windows_core::Interface::vtable(self).ValidateCodePageEx)(::windows_core::Interface::as_raw(self), uicodepage, hwnd.into_param().abi(), dwfiodcontrol).ok() } } -::windows_core::imp::interface_hierarchy!(IMultiLanguage2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMultiLanguage2 { - type Vtable = IMultiLanguage2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMultiLanguage2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdccfc164_2b38_11d2_b7ec_00c04f8f5d9a); -} #[repr(C)] #[doc(hidden)] pub struct IMultiLanguage2_Vtbl { @@ -8013,9 +7877,8 @@ pub struct IMultiLanguage2_Vtbl { pub EnumScripts: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwflags: u32, langid: u16, ppenumscript: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ValidateCodePageEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uicodepage: u32, hwnd: super::Foundation::HWND, dwfiodcontrol: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMultiLanguage3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMultiLanguage3, IMultiLanguage3_Vtbl, 0x4e5868ab_b157_4623_9acc_6a1d9caebe04); +::windows_core::imp::interface_hierarchy!(IMultiLanguage3, ::windows_core::IUnknown, IMultiLanguage2); impl IMultiLanguage3 { pub unsafe fn GetNumberOfCodePageInfo(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -8163,13 +8026,6 @@ impl IMultiLanguage3 { (::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::imp::interface_hierarchy!(IMultiLanguage3, ::windows_core::IUnknown, IMultiLanguage2); -unsafe impl ::windows_core::Interface for IMultiLanguage3 { - type Vtable = IMultiLanguage3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMultiLanguage3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4e5868ab_b157_4623_9acc_6a1d9caebe04); -} #[repr(C)] #[doc(hidden)] pub struct IMultiLanguage3_Vtbl { @@ -8180,9 +8036,8 @@ pub struct IMultiLanguage3_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] DetectOutboundCodePageInIStream: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOptionDescription(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOptionDescription, IOptionDescription_Vtbl, 0x432e5f85_35cf_4606_a801_6f70277e1d7a); +::windows_core::imp::interface_hierarchy!(IOptionDescription, ::windows_core::IUnknown); impl IOptionDescription { pub unsafe fn Id(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); @@ -8203,13 +8058,6 @@ impl IOptionDescription { (::windows_core::Interface::vtable(self).Labels)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IOptionDescription, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOptionDescription { - type Vtable = IOptionDescription_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOptionDescription { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x432e5f85_35cf_4606_a801_6f70277e1d7a); -} #[repr(C)] #[doc(hidden)] pub struct IOptionDescription_Vtbl { @@ -8222,9 +8070,8 @@ pub struct IOptionDescription_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Labels: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpellCheckProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpellCheckProvider, ISpellCheckProvider_Vtbl, 0x73e976e0_8ed4_4eb1_80d7_1be0a16b0c38); +::windows_core::imp::interface_hierarchy!(ISpellCheckProvider, ::windows_core::IUnknown); impl ISpellCheckProvider { pub unsafe fn LanguageTag(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); @@ -8289,13 +8136,6 @@ impl ISpellCheckProvider { (::windows_core::Interface::vtable(self).InitializeWordlist)(::windows_core::Interface::as_raw(self), wordlisttype, words.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ISpellCheckProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpellCheckProvider { - type Vtable = ISpellCheckProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpellCheckProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x73e976e0_8ed4_4eb1_80d7_1be0a16b0c38); -} #[repr(C)] #[doc(hidden)] pub struct ISpellCheckProvider_Vtbl { @@ -8320,9 +8160,8 @@ pub struct ISpellCheckProvider_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] InitializeWordlist: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpellCheckProviderFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpellCheckProviderFactory, ISpellCheckProviderFactory_Vtbl, 0x9f671e11_77d6_4c92_aefb_615215e3a4be); +::windows_core::imp::interface_hierarchy!(ISpellCheckProviderFactory, ::windows_core::IUnknown); impl ISpellCheckProviderFactory { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -8345,13 +8184,6 @@ impl ISpellCheckProviderFactory { (::windows_core::Interface::vtable(self).CreateSpellCheckProvider)(::windows_core::Interface::as_raw(self), languagetag.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISpellCheckProviderFactory, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpellCheckProviderFactory { - type Vtable = ISpellCheckProviderFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpellCheckProviderFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9f671e11_77d6_4c92_aefb_615215e3a4be); -} #[repr(C)] #[doc(hidden)] pub struct ISpellCheckProviderFactory_Vtbl { @@ -8363,9 +8195,8 @@ pub struct ISpellCheckProviderFactory_Vtbl { pub IsSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, languagetag: ::windows_core::PCWSTR, value: *mut super::Foundation::BOOL) -> ::windows_core::HRESULT, pub CreateSpellCheckProvider: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, languagetag: ::windows_core::PCWSTR, value: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpellChecker(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpellChecker, ISpellChecker_Vtbl, 0xb6fd0b71_e2bc_4653_8d05_f197e412770b); +::windows_core::imp::interface_hierarchy!(ISpellChecker, ::windows_core::IUnknown); impl ISpellChecker { pub unsafe fn LanguageTag(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); @@ -8452,13 +8283,6 @@ impl ISpellChecker { (::windows_core::Interface::vtable(self).ComprehensiveCheck)(::windows_core::Interface::as_raw(self), text.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISpellChecker, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpellChecker { - type Vtable = ISpellChecker_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpellChecker { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb6fd0b71_e2bc_4653_8d05_f197e412770b); -} #[repr(C)] #[doc(hidden)] pub struct ISpellChecker_Vtbl { @@ -8484,9 +8308,8 @@ pub struct ISpellChecker_Vtbl { pub GetOptionDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, optionid: ::windows_core::PCWSTR, value: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ComprehensiveCheck: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, text: ::windows_core::PCWSTR, value: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpellChecker2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpellChecker2, ISpellChecker2_Vtbl, 0xe7ed1c71_87f7_4378_a840_c9200dacee47); +::windows_core::imp::interface_hierarchy!(ISpellChecker2, ::windows_core::IUnknown, ISpellChecker); impl ISpellChecker2 { pub unsafe fn LanguageTag(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); @@ -8579,22 +8402,14 @@ impl ISpellChecker2 { (::windows_core::Interface::vtable(self).Remove)(::windows_core::Interface::as_raw(self), word.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ISpellChecker2, ::windows_core::IUnknown, ISpellChecker); -unsafe impl ::windows_core::Interface for ISpellChecker2 { - type Vtable = ISpellChecker2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpellChecker2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe7ed1c71_87f7_4378_a840_c9200dacee47); -} #[repr(C)] #[doc(hidden)] pub struct ISpellChecker2_Vtbl { pub base__: ISpellChecker_Vtbl, pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, word: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpellCheckerChangedEventHandler(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpellCheckerChangedEventHandler, ISpellCheckerChangedEventHandler_Vtbl, 0x0b83a5b0_792f_4eab_9799_acf52c5ed08a); +::windows_core::imp::interface_hierarchy!(ISpellCheckerChangedEventHandler, ::windows_core::IUnknown); impl ISpellCheckerChangedEventHandler { pub unsafe fn Invoke(&self, sender: P0) -> ::windows_core::Result<()> where @@ -8603,22 +8418,14 @@ impl ISpellCheckerChangedEventHandler { (::windows_core::Interface::vtable(self).Invoke)(::windows_core::Interface::as_raw(self), sender.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ISpellCheckerChangedEventHandler, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpellCheckerChangedEventHandler { - type Vtable = ISpellCheckerChangedEventHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpellCheckerChangedEventHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0b83a5b0_792f_4eab_9799_acf52c5ed08a); -} #[repr(C)] #[doc(hidden)] pub struct ISpellCheckerChangedEventHandler_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Invoke: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sender: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpellCheckerFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpellCheckerFactory, ISpellCheckerFactory_Vtbl, 0x8e018a9d_2415_4677_bf08_794ea61f94bb); +::windows_core::imp::interface_hierarchy!(ISpellCheckerFactory, ::windows_core::IUnknown); impl ISpellCheckerFactory { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -8641,13 +8448,6 @@ impl ISpellCheckerFactory { (::windows_core::Interface::vtable(self).CreateSpellChecker)(::windows_core::Interface::as_raw(self), languagetag.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISpellCheckerFactory, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpellCheckerFactory { - type Vtable = ISpellCheckerFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpellCheckerFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8e018a9d_2415_4677_bf08_794ea61f94bb); -} #[repr(C)] #[doc(hidden)] pub struct ISpellCheckerFactory_Vtbl { @@ -8659,9 +8459,8 @@ pub struct ISpellCheckerFactory_Vtbl { pub IsSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, languagetag: ::windows_core::PCWSTR, value: *mut super::Foundation::BOOL) -> ::windows_core::HRESULT, pub CreateSpellChecker: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, languagetag: ::windows_core::PCWSTR, value: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpellingError(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpellingError, ISpellingError_Vtbl, 0xb7c82d61_fbe8_4b47_9b27_6c0d2e0de0a3); +::windows_core::imp::interface_hierarchy!(ISpellingError, ::windows_core::IUnknown); impl ISpellingError { pub unsafe fn StartIndex(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -8680,13 +8479,6 @@ impl ISpellingError { (::windows_core::Interface::vtable(self).Replacement)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISpellingError, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpellingError { - type Vtable = ISpellingError_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpellingError { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb7c82d61_fbe8_4b47_9b27_6c0d2e0de0a3); -} #[repr(C)] #[doc(hidden)] pub struct ISpellingError_Vtbl { @@ -8696,9 +8488,8 @@ pub struct ISpellingError_Vtbl { pub CorrectiveAction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut CORRECTIVE_ACTION) -> ::windows_core::HRESULT, pub Replacement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserDictionariesRegistrar(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUserDictionariesRegistrar, IUserDictionariesRegistrar_Vtbl, 0xaa176b85_0e12_4844_8e1a_eef1da77f586); +::windows_core::imp::interface_hierarchy!(IUserDictionariesRegistrar, ::windows_core::IUnknown); impl IUserDictionariesRegistrar { pub unsafe fn RegisterUserDictionary(&self, dictionarypath: P0, languagetag: P1) -> ::windows_core::Result<()> where @@ -8715,13 +8506,6 @@ impl IUserDictionariesRegistrar { (::windows_core::Interface::vtable(self).UnregisterUserDictionary)(::windows_core::Interface::as_raw(self), dictionarypath.into_param().abi(), languagetag.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IUserDictionariesRegistrar, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserDictionariesRegistrar { - type Vtable = IUserDictionariesRegistrar_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserDictionariesRegistrar { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaa176b85_0e12_4844_8e1a_eef1da77f586); -} #[repr(C)] #[doc(hidden)] pub struct IUserDictionariesRegistrar_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/CompositionSwapchain/impl.rs b/crates/libs/windows/src/Windows/Win32/Graphics/CompositionSwapchain/impl.rs index c5c5a10185..d4e1fdb459 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/CompositionSwapchain/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/CompositionSwapchain/impl.rs @@ -33,7 +33,7 @@ impl ICompositionFramePresentStatistics_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IIndependentFlipFramePresentStatistics_Impl: Sized + IPresentStatistics_Impl { @@ -81,7 +81,7 @@ impl IIndependentFlipFramePresentStatistics_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IPresentStatistics_Impl: Sized { @@ -108,7 +108,7 @@ impl IPresentStatistics_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPresentStatusPresentStatistics_Impl: Sized + IPresentStatistics_Impl { @@ -135,7 +135,7 @@ impl IPresentStatusPresentStatistics_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IPresentationBuffer_Impl: Sized { @@ -174,7 +174,7 @@ impl IPresentationBuffer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPresentationContent_Impl: Sized { @@ -191,7 +191,7 @@ impl IPresentationContent_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), SetTag: SetTag:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPresentationFactory_Impl: Sized { @@ -231,7 +231,7 @@ impl IPresentationFactory_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPresentationManager_Impl: Sized { @@ -371,7 +371,7 @@ impl IPresentationManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] @@ -444,6 +444,6 @@ impl IPresentationSurface_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } 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 c9611da66b..c86686053a 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/CompositionSwapchain/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/CompositionSwapchain/mod.rs @@ -6,9 +6,8 @@ where ::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() } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionFramePresentStatistics(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICompositionFramePresentStatistics, ICompositionFramePresentStatistics_Vtbl, 0xab41d127_c101_4c0a_911d_f9f2e9d08e64); +::windows_core::imp::interface_hierarchy!(ICompositionFramePresentStatistics, ::windows_core::IUnknown, IPresentStatistics); impl ICompositionFramePresentStatistics { pub unsafe fn GetPresentId(&self) -> u64 { (::windows_core::Interface::vtable(self).base__.GetPresentId)(::windows_core::Interface::as_raw(self)) @@ -28,13 +27,6 @@ impl ICompositionFramePresentStatistics { (::windows_core::Interface::vtable(self).GetDisplayInstanceArray)(::windows_core::Interface::as_raw(self), displayinstancearraycount, displayinstancearray) } } -::windows_core::imp::interface_hierarchy!(ICompositionFramePresentStatistics, ::windows_core::IUnknown, IPresentStatistics); -unsafe impl ::windows_core::Interface for ICompositionFramePresentStatistics { - type Vtable = ICompositionFramePresentStatistics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionFramePresentStatistics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xab41d127_c101_4c0a_911d_f9f2e9d08e64); -} #[repr(C)] #[doc(hidden)] pub struct ICompositionFramePresentStatistics_Vtbl { @@ -46,9 +38,8 @@ pub struct ICompositionFramePresentStatistics_Vtbl { #[cfg(not(feature = "Win32_Graphics_Dxgi_Common"))] GetDisplayInstanceArray: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIndependentFlipFramePresentStatistics(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IIndependentFlipFramePresentStatistics, IIndependentFlipFramePresentStatistics_Vtbl, 0x8c93be27_ad94_4da0_8fd4_2413132d124e); +::windows_core::imp::interface_hierarchy!(IIndependentFlipFramePresentStatistics, ::windows_core::IUnknown, IPresentStatistics); impl IIndependentFlipFramePresentStatistics { pub unsafe fn GetPresentId(&self) -> u64 { (::windows_core::Interface::vtable(self).base__.GetPresentId)(::windows_core::Interface::as_raw(self)) @@ -78,13 +69,6 @@ impl IIndependentFlipFramePresentStatistics { result__ } } -::windows_core::imp::interface_hierarchy!(IIndependentFlipFramePresentStatistics, ::windows_core::IUnknown, IPresentStatistics); -unsafe impl ::windows_core::Interface for IIndependentFlipFramePresentStatistics { - type Vtable = IIndependentFlipFramePresentStatistics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIndependentFlipFramePresentStatistics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8c93be27_ad94_4da0_8fd4_2413132d124e); -} #[repr(C)] #[doc(hidden)] pub struct IIndependentFlipFramePresentStatistics_Vtbl { @@ -95,9 +79,8 @@ pub struct IIndependentFlipFramePresentStatistics_Vtbl { pub GetDisplayedTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut SystemInterruptTime), pub GetPresentDuration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut SystemInterruptTime), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPresentStatistics(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPresentStatistics, IPresentStatistics_Vtbl, 0xb44b8bda_7282_495d_9dd7_ceadd8b4bb86); +::windows_core::imp::interface_hierarchy!(IPresentStatistics, ::windows_core::IUnknown); impl IPresentStatistics { pub unsafe fn GetPresentId(&self) -> u64 { (::windows_core::Interface::vtable(self).GetPresentId)(::windows_core::Interface::as_raw(self)) @@ -106,13 +89,6 @@ impl IPresentStatistics { (::windows_core::Interface::vtable(self).GetKind)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(IPresentStatistics, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPresentStatistics { - type Vtable = IPresentStatistics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPresentStatistics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb44b8bda_7282_495d_9dd7_ceadd8b4bb86); -} #[repr(C)] #[doc(hidden)] pub struct IPresentStatistics_Vtbl { @@ -120,9 +96,8 @@ pub struct IPresentStatistics_Vtbl { pub GetPresentId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> u64, pub GetKind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> PresentStatisticsKind, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPresentStatusPresentStatistics(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPresentStatusPresentStatistics, IPresentStatusPresentStatistics_Vtbl, 0xc9ed2a41_79cb_435e_964e_c8553055420c); +::windows_core::imp::interface_hierarchy!(IPresentStatusPresentStatistics, ::windows_core::IUnknown, IPresentStatistics); impl IPresentStatusPresentStatistics { pub unsafe fn GetPresentId(&self) -> u64 { (::windows_core::Interface::vtable(self).base__.GetPresentId)(::windows_core::Interface::as_raw(self)) @@ -137,13 +112,6 @@ impl IPresentStatusPresentStatistics { (::windows_core::Interface::vtable(self).GetPresentStatus)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(IPresentStatusPresentStatistics, ::windows_core::IUnknown, IPresentStatistics); -unsafe impl ::windows_core::Interface for IPresentStatusPresentStatistics { - type Vtable = IPresentStatusPresentStatistics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPresentStatusPresentStatistics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc9ed2a41_79cb_435e_964e_c8553055420c); -} #[repr(C)] #[doc(hidden)] pub struct IPresentStatusPresentStatistics_Vtbl { @@ -151,9 +119,8 @@ pub struct IPresentStatusPresentStatistics_Vtbl { pub GetCompositionFrameId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> u64, pub GetPresentStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> PresentStatus, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPresentationBuffer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPresentationBuffer, IPresentationBuffer_Vtbl, 0x2e217d3a_5abb_4138_9a13_a775593c89ca); +::windows_core::imp::interface_hierarchy!(IPresentationBuffer, ::windows_core::IUnknown); impl IPresentationBuffer { pub unsafe fn GetAvailableEvent(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -164,13 +131,6 @@ impl IPresentationBuffer { (::windows_core::Interface::vtable(self).IsAvailable)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IPresentationBuffer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPresentationBuffer { - type Vtable = IPresentationBuffer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPresentationBuffer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2e217d3a_5abb_4138_9a13_a775593c89ca); -} #[repr(C)] #[doc(hidden)] pub struct IPresentationBuffer_Vtbl { @@ -178,30 +138,21 @@ pub struct IPresentationBuffer_Vtbl { pub GetAvailableEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, availableeventhandle: *mut super::super::Foundation::HANDLE) -> ::windows_core::HRESULT, pub IsAvailable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, isavailable: *mut u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPresentationContent(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPresentationContent, IPresentationContent_Vtbl, 0x5668bb79_3d8e_415c_b215_f38020f2d252); +::windows_core::imp::interface_hierarchy!(IPresentationContent, ::windows_core::IUnknown); impl IPresentationContent { pub unsafe fn SetTag(&self, tag: usize) { (::windows_core::Interface::vtable(self).SetTag)(::windows_core::Interface::as_raw(self), tag) } } -::windows_core::imp::interface_hierarchy!(IPresentationContent, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPresentationContent { - type Vtable = IPresentationContent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPresentationContent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5668bb79_3d8e_415c_b215_f38020f2d252); -} #[repr(C)] #[doc(hidden)] pub struct IPresentationContent_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub SetTag: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, tag: usize), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPresentationFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPresentationFactory, IPresentationFactory_Vtbl, 0x8fb37b58_1d74_4f64_a49c_1f97a80a2ec0); +::windows_core::imp::interface_hierarchy!(IPresentationFactory, ::windows_core::IUnknown); impl IPresentationFactory { pub unsafe fn IsPresentationSupported(&self) -> u8 { (::windows_core::Interface::vtable(self).IsPresentationSupported)(::windows_core::Interface::as_raw(self)) @@ -214,13 +165,6 @@ impl IPresentationFactory { (::windows_core::Interface::vtable(self).CreatePresentationManager)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IPresentationFactory, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPresentationFactory { - type Vtable = IPresentationFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPresentationFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8fb37b58_1d74_4f64_a49c_1f97a80a2ec0); -} #[repr(C)] #[doc(hidden)] pub struct IPresentationFactory_Vtbl { @@ -229,9 +173,8 @@ pub struct IPresentationFactory_Vtbl { pub IsPresentationSupportedWithIndependentFlip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> u8, pub CreatePresentationManager: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pppresentationmanager: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPresentationManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPresentationManager, IPresentationManager_Vtbl, 0xfb562f82_6292_470a_88b1_843661e7f20c); +::windows_core::imp::interface_hierarchy!(IPresentationManager, ::windows_core::IUnknown); impl IPresentationManager { pub unsafe fn AddBufferFromResource(&self, resource: P0) -> ::windows_core::Result where @@ -285,13 +228,6 @@ impl IPresentationManager { (::windows_core::Interface::vtable(self).GetNextPresentStatistics)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IPresentationManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPresentationManager { - type Vtable = IPresentationManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPresentationManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfb562f82_6292_470a_88b1_843661e7f20c); -} #[repr(C)] #[doc(hidden)] pub struct IPresentationManager_Vtbl { @@ -310,9 +246,8 @@ pub struct IPresentationManager_Vtbl { pub EnablePresentStatisticsKind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, presentstatisticskind: PresentStatisticsKind, enabled: u8) -> ::windows_core::HRESULT, pub GetNextPresentStatistics: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nextpresentstatistics: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPresentationSurface(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPresentationSurface, IPresentationSurface_Vtbl, 0x956710fb_ea40_4eba_a3eb_4375a0eb4edc); +::windows_core::imp::interface_hierarchy!(IPresentationSurface, ::windows_core::IUnknown, IPresentationContent); impl IPresentationSurface { pub unsafe fn SetTag(&self, tag: usize) { (::windows_core::Interface::vtable(self).base__.SetTag)(::windows_core::Interface::as_raw(self), tag) @@ -352,13 +287,6 @@ impl IPresentationSurface { (::windows_core::Interface::vtable(self).SetLetterboxingMargins)(::windows_core::Interface::as_raw(self), leftletterboxsize, topletterboxsize, rightletterboxsize, bottomletterboxsize).ok() } } -::windows_core::imp::interface_hierarchy!(IPresentationSurface, ::windows_core::IUnknown, IPresentationContent); -unsafe impl ::windows_core::Interface for IPresentationSurface { - type Vtable = IPresentationSurface_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPresentationSurface { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x956710fb_ea40_4eba_a3eb_4375a0eb4edc); -} #[repr(C)] #[doc(hidden)] pub struct IPresentationSurface_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/DXCore/impl.rs b/crates/libs/windows/src/Windows/Win32/Graphics/DXCore/impl.rs index 300a82e2c4..f4580d9750 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/DXCore/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/DXCore/impl.rs @@ -84,7 +84,7 @@ impl IDXCoreAdapter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDXCoreAdapterFactory_Impl: Sized { @@ -138,7 +138,7 @@ impl IDXCoreAdapterFactory_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDXCoreAdapterList_Impl: Sized { @@ -193,6 +193,6 @@ impl IDXCoreAdapterList_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 f3d3d7f959..3b59119959 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/DXCore/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/DXCore/mod.rs @@ -1,15 +1,14 @@ #[inline] pub unsafe fn DXCoreCreateAdapterFactory() -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { ::windows_targets::link!("dxcore.dll" "system" fn DXCoreCreateAdapterFactory(riid : *const ::windows_core::GUID, ppvfactory : *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT); let mut result__ = ::std::ptr::null_mut(); DXCoreCreateAdapterFactory(&T::IID, &mut result__).from_abi(result__) } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDXCoreAdapter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDXCoreAdapter, IDXCoreAdapter_Vtbl, 0xf0db4c7f_fe5a_42a2_bd62_f2a6cf6fc83e); +::windows_core::imp::interface_hierarchy!(IDXCoreAdapter, ::windows_core::IUnknown); impl IDXCoreAdapter { pub unsafe fn IsValid(&self) -> bool { (::windows_core::Interface::vtable(self).IsValid)(::windows_core::Interface::as_raw(self)) @@ -41,19 +40,12 @@ impl IDXCoreAdapter { } pub unsafe fn GetFactory(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetFactory)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDXCoreAdapter, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDXCoreAdapter { - type Vtable = IDXCoreAdapter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDXCoreAdapter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf0db4c7f_fe5a_42a2_bd62_f2a6cf6fc83e); -} #[repr(C)] #[doc(hidden)] pub struct IDXCoreAdapter_Vtbl { @@ -69,20 +61,19 @@ pub struct IDXCoreAdapter_Vtbl { pub SetState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, state: DXCoreAdapterState, inputstatedetailssize: usize, inputstatedetails: *const ::core::ffi::c_void, inputdatasize: usize, inputdata: *const ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetFactory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppvfactory: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDXCoreAdapterFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDXCoreAdapterFactory, IDXCoreAdapterFactory_Vtbl, 0x78ee5945_c36e_4b13_a669_005dd11c0f06); +::windows_core::imp::interface_hierarchy!(IDXCoreAdapterFactory, ::windows_core::IUnknown); impl IDXCoreAdapterFactory { pub unsafe fn CreateAdapterList(&self, filterattributes: &[::windows_core::GUID]) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).CreateAdapterList)(::windows_core::Interface::as_raw(self), filterattributes.len().try_into().unwrap(), ::core::mem::transmute(filterattributes.as_ptr()), &T::IID, &mut result__).from_abi(result__) } pub unsafe fn GetAdapterByLuid(&self, adapterluid: *const super::super::Foundation::LUID) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetAdapterByLuid)(::windows_core::Interface::as_raw(self), adapterluid, &T::IID, &mut result__).from_abi(result__) @@ -101,13 +92,6 @@ impl IDXCoreAdapterFactory { (::windows_core::Interface::vtable(self).UnregisterEventNotification)(::windows_core::Interface::as_raw(self), eventcookie).ok() } } -::windows_core::imp::interface_hierarchy!(IDXCoreAdapterFactory, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDXCoreAdapterFactory { - type Vtable = IDXCoreAdapterFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDXCoreAdapterFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x78ee5945_c36e_4b13_a669_005dd11c0f06); -} #[repr(C)] #[doc(hidden)] pub struct IDXCoreAdapterFactory_Vtbl { @@ -118,13 +102,12 @@ pub struct IDXCoreAdapterFactory_Vtbl { pub RegisterEventNotification: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dxcoreobject: *mut ::core::ffi::c_void, notificationtype: DXCoreNotificationType, callbackfunction: PFN_DXCORE_NOTIFICATION_CALLBACK, callbackcontext: *const ::core::ffi::c_void, eventcookie: *mut u32) -> ::windows_core::HRESULT, pub UnregisterEventNotification: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventcookie: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDXCoreAdapterList(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDXCoreAdapterList, IDXCoreAdapterList_Vtbl, 0x526c7776_40e9_459b_b711_f32ad76dfc28); +::windows_core::imp::interface_hierarchy!(IDXCoreAdapterList, ::windows_core::IUnknown); impl IDXCoreAdapterList { pub unsafe fn GetAdapter(&self, index: u32) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetAdapter)(::windows_core::Interface::as_raw(self), index, &T::IID, &mut result__).from_abi(result__) @@ -137,7 +120,7 @@ impl IDXCoreAdapterList { } pub unsafe fn GetFactory(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetFactory)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -149,13 +132,6 @@ impl IDXCoreAdapterList { (::windows_core::Interface::vtable(self).IsAdapterPreferenceSupported)(::windows_core::Interface::as_raw(self), preference) } } -::windows_core::imp::interface_hierarchy!(IDXCoreAdapterList, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDXCoreAdapterList { - type Vtable = IDXCoreAdapterList_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDXCoreAdapterList { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x526c7776_40e9_459b_b711_f32ad76dfc28); -} #[repr(C)] #[doc(hidden)] pub struct IDXCoreAdapterList_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Direct2D/Common/impl.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Direct2D/Common/impl.rs index ba263e6bd2..78492aab5f 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Direct2D/Common/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Direct2D/Common/impl.rs @@ -57,6 +57,6 @@ impl ID2D1SimplifiedGeometrySink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Direct2D/Common/mod.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Direct2D/Common/mod.rs index 0c0d5dba54..a3210c6f21 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Direct2D/Common/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Direct2D/Common/mod.rs @@ -1,6 +1,5 @@ -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1SimplifiedGeometrySink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1SimplifiedGeometrySink, ID2D1SimplifiedGeometrySink_Vtbl, 0x2cd9069e_12e2_11dc_9fed_001143a055f9); +::windows_core::imp::interface_hierarchy!(ID2D1SimplifiedGeometrySink, ::windows_core::IUnknown); impl ID2D1SimplifiedGeometrySink { pub unsafe fn SetFillMode(&self, fillmode: D2D1_FILL_MODE) { (::windows_core::Interface::vtable(self).SetFillMode)(::windows_core::Interface::as_raw(self), fillmode) @@ -24,15 +23,8 @@ impl ID2D1SimplifiedGeometrySink { (::windows_core::Interface::vtable(self).Close)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ID2D1SimplifiedGeometrySink, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID2D1SimplifiedGeometrySink {} unsafe impl ::core::marker::Sync for ID2D1SimplifiedGeometrySink {} -unsafe impl ::windows_core::Interface for ID2D1SimplifiedGeometrySink { - type Vtable = ID2D1SimplifiedGeometrySink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1SimplifiedGeometrySink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2cd9069e_12e2_11dc_9fed_001143a055f9); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1SimplifiedGeometrySink_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Direct2D/impl.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Direct2D/impl.rs index 480634e7ab..61948f902d 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Direct2D/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Direct2D/impl.rs @@ -12,7 +12,7 @@ impl ID2D1AnalysisTransform_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), ProcessAnalysisResults: ProcessAnalysisResults:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct2D_Common\"`, `\"Win32_Graphics_Dxgi_Common\"`"] @@ -78,7 +78,7 @@ impl ID2D1Bitmap_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct2D_Common\"`, `\"Win32_Graphics_Dxgi_Common\"`"] @@ -142,7 +142,7 @@ impl ID2D1Bitmap1_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Foundation_Numerics\"`"] @@ -215,7 +215,7 @@ impl ID2D1BitmapBrush_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Foundation_Numerics\"`"] @@ -246,7 +246,7 @@ impl ID2D1BitmapBrush1_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Foundation_Numerics\"`, `\"Win32_Graphics_Direct2D_Common\"`, `\"Win32_Graphics_DirectWrite\"`, `\"Win32_Graphics_Dxgi_Common\"`, `\"Win32_Graphics_Imaging\"`"] @@ -273,7 +273,7 @@ impl ID2D1BitmapRenderTarget_Vtbl { Self { base__: ID2D1RenderTarget_Vtbl::new::(), GetBitmap: GetBitmap:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ID2D1BlendTransform_Impl: Sized + ID2D1ConcreteTransform_Impl { @@ -300,7 +300,7 @@ impl ID2D1BlendTransform_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ID2D1BorderTransform_Impl: Sized + ID2D1ConcreteTransform_Impl { @@ -341,7 +341,7 @@ impl ID2D1BorderTransform_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ID2D1BoundsAdjustmentTransform_Impl: Sized + ID2D1TransformNode_Impl { @@ -368,7 +368,7 @@ impl ID2D1BoundsAdjustmentTransform_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Foundation_Numerics\"`"] @@ -413,7 +413,7 @@ impl ID2D1Brush_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ID2D1ColorContext_Impl: Sized + ID2D1Resource_Impl { @@ -447,7 +447,7 @@ impl ID2D1ColorContext_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct2D_Common\"`, `\"Win32_Graphics_Dxgi_Common\"`"] @@ -485,7 +485,7 @@ impl ID2D1ColorContext1_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ID2D1CommandList_Impl: Sized + ID2D1Image_Impl { @@ -508,7 +508,7 @@ impl ID2D1CommandList_Vtbl { Self { base__: ID2D1Image_Vtbl::new::(), Stream: Stream::, Close: Close:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Foundation_Numerics\"`, `\"Win32_Graphics_Direct2D_Common\"`, `\"Win32_Graphics_DirectWrite\"`"] @@ -700,7 +700,7 @@ impl ID2D1CommandSink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Foundation_Numerics\"`, `\"Win32_Graphics_Direct2D_Common\"`, `\"Win32_Graphics_DirectWrite\"`"] @@ -721,7 +721,7 @@ impl ID2D1CommandSink1_Vtbl { Self { base__: ID2D1CommandSink_Vtbl::new::(), SetPrimitiveBlend1: SetPrimitiveBlend1:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Foundation_Numerics\"`, `\"Win32_Graphics_Direct2D_Common\"`, `\"Win32_Graphics_DirectWrite\"`"] @@ -759,7 +759,7 @@ impl ID2D1CommandSink2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Foundation_Numerics\"`, `\"Win32_Graphics_Direct2D_Common\"`, `\"Win32_Graphics_DirectWrite\"`"] @@ -780,7 +780,7 @@ impl ID2D1CommandSink3_Vtbl { Self { base__: ID2D1CommandSink2_Vtbl::new::(), DrawSpriteBatch: DrawSpriteBatch:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Foundation_Numerics\"`, `\"Win32_Graphics_Direct2D_Common\"`, `\"Win32_Graphics_DirectWrite\"`"] @@ -801,7 +801,7 @@ impl ID2D1CommandSink4_Vtbl { Self { base__: ID2D1CommandSink3_Vtbl::new::(), SetPrimitiveBlend2: SetPrimitiveBlend2:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Foundation_Numerics\"`, `\"Win32_Graphics_Direct2D_Common\"`, `\"Win32_Graphics_DirectWrite\"`"] @@ -822,7 +822,7 @@ impl ID2D1CommandSink5_Vtbl { Self { base__: ID2D1CommandSink4_Vtbl::new::(), BlendImage: BlendImage:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ID2D1ComputeInfo_Impl: Sized + ID2D1RenderInfo_Impl { @@ -856,7 +856,7 @@ impl ID2D1ComputeInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ID2D1ComputeTransform_Impl: Sized + ID2D1Transform_Impl { @@ -883,7 +883,7 @@ impl ID2D1ComputeTransform_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ID2D1ConcreteTransform_Impl: Sized + ID2D1TransformNode_Impl { @@ -910,7 +910,7 @@ impl ID2D1ConcreteTransform_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Foundation_Numerics\"`, `\"Win32_Graphics_Direct2D_Common\"`, `\"Win32_Graphics_DirectWrite\"`, `\"Win32_Graphics_Dxgi_Common\"`, `\"Win32_Graphics_Gdi\"`, `\"Win32_Graphics_Imaging\"`"] @@ -931,7 +931,7 @@ impl ID2D1DCRenderTarget_Vtbl { Self { base__: ID2D1RenderTarget_Vtbl::new::(), BindDC: BindDC:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Imaging\"`, `\"Win32_Storage_Xps_Printing\"`"] @@ -995,7 +995,7 @@ impl ID2D1Device_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Imaging\"`, `\"Win32_Storage_Xps_Printing\"`"] @@ -1039,7 +1039,7 @@ impl ID2D1Device1_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi\"`, `\"Win32_Graphics_Imaging\"`, `\"Win32_Storage_Xps_Printing\"`"] @@ -1089,7 +1089,7 @@ impl ID2D1Device2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi\"`, `\"Win32_Graphics_Imaging\"`, `\"Win32_Storage_Xps_Printing\"`"] @@ -1116,7 +1116,7 @@ impl ID2D1Device3_Vtbl { Self { base__: ID2D1Device2_Vtbl::new::(), CreateDeviceContext4: CreateDeviceContext4:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi\"`, `\"Win32_Graphics_Imaging\"`, `\"Win32_Storage_Xps_Printing\"`"] @@ -1160,7 +1160,7 @@ impl ID2D1Device4_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi\"`, `\"Win32_Graphics_Imaging\"`, `\"Win32_Storage_Xps_Printing\"`"] @@ -1187,7 +1187,7 @@ impl ID2D1Device5_Vtbl { Self { base__: ID2D1Device4_Vtbl::new::(), CreateDeviceContext6: CreateDeviceContext6:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi\"`, `\"Win32_Graphics_Imaging\"`, `\"Win32_Storage_Xps_Printing\"`"] @@ -1214,7 +1214,7 @@ impl ID2D1Device6_Vtbl { Self { base__: ID2D1Device5_Vtbl::new::(), CreateDeviceContext7: CreateDeviceContext7:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Foundation_Numerics\"`, `\"Win32_Graphics_Direct2D_Common\"`, `\"Win32_Graphics_DirectWrite\"`, `\"Win32_Graphics_Dxgi_Common\"`, `\"Win32_Graphics_Imaging\"`"] @@ -1566,7 +1566,7 @@ impl ID2D1DeviceContext_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Foundation_Numerics\"`, `\"Win32_Graphics_Direct2D_Common\"`, `\"Win32_Graphics_DirectWrite\"`, `\"Win32_Graphics_Dxgi_Common\"`, `\"Win32_Graphics_Imaging\"`"] @@ -1616,7 +1616,7 @@ impl ID2D1DeviceContext1_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Foundation_Numerics\"`, `\"Win32_Graphics_Direct2D_Common\"`, `\"Win32_Graphics_DirectWrite\"`, `\"Win32_Graphics_Dxgi_Common\"`, `\"Win32_Graphics_Imaging\"`"] @@ -1758,7 +1758,7 @@ impl ID2D1DeviceContext2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Foundation_Numerics\"`, `\"Win32_Graphics_Direct2D_Common\"`, `\"Win32_Graphics_DirectWrite\"`, `\"Win32_Graphics_Dxgi_Common\"`, `\"Win32_Graphics_Imaging\"`"] @@ -1795,7 +1795,7 @@ impl ID2D1DeviceContext3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Foundation_Numerics\"`, `\"Win32_Graphics_Direct2D_Common\"`, `\"Win32_Graphics_DirectWrite\"`, `\"Win32_Graphics_Dxgi_Common\"`, `\"Win32_Graphics_Imaging\"`"] @@ -1881,7 +1881,7 @@ impl ID2D1DeviceContext4_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Foundation_Numerics\"`, `\"Win32_Graphics_Direct2D_Common\"`, `\"Win32_Graphics_DirectWrite\"`, `\"Win32_Graphics_Dxgi_Common\"`, `\"Win32_Graphics_Imaging\"`, `\"Win32_System_Com\"`"] @@ -1944,7 +1944,7 @@ impl ID2D1DeviceContext5_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Foundation_Numerics\"`, `\"Win32_Graphics_Direct2D_Common\"`, `\"Win32_Graphics_DirectWrite\"`, `\"Win32_Graphics_Dxgi_Common\"`, `\"Win32_Graphics_Imaging\"`, `\"Win32_System_Com\"`"] @@ -1965,7 +1965,7 @@ impl ID2D1DeviceContext6_Vtbl { Self { base__: ID2D1DeviceContext5_Vtbl::new::(), BlendImage: BlendImage:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ID2D1DrawInfo_Impl: Sized + ID2D1RenderInfo_Impl { @@ -2013,7 +2013,7 @@ impl ID2D1DrawInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ID2D1DrawTransform_Impl: Sized + ID2D1Transform_Impl { @@ -2030,7 +2030,7 @@ impl ID2D1DrawTransform_Vtbl { Self { base__: ID2D1Transform_Vtbl::new::(), SetDrawInfo: SetDrawInfo:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Foundation_Numerics\"`, `\"Win32_Graphics_DirectWrite\"`"] @@ -2075,7 +2075,7 @@ impl ID2D1DrawingStateBlock_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Foundation_Numerics\"`, `\"Win32_Graphics_DirectWrite\"`"] @@ -2106,7 +2106,7 @@ impl ID2D1DrawingStateBlock1_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ID2D1Effect_Impl: Sized + ID2D1Properties_Impl { @@ -2154,7 +2154,7 @@ impl ID2D1Effect_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D\"`, `\"Win32_Graphics_Dxgi_Common\"`, `\"Win32_Graphics_Imaging\"`"] @@ -2402,7 +2402,7 @@ impl ID2D1EffectContext_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D\"`, `\"Win32_Graphics_Dxgi_Common\"`, `\"Win32_Graphics_Imaging\"`"] @@ -2429,7 +2429,7 @@ impl ID2D1EffectContext1_Vtbl { Self { base__: ID2D1EffectContext_Vtbl::new::(), CreateLookupTable3D: CreateLookupTable3D:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct2D_Common\"`, `\"Win32_Graphics_Direct3D\"`, `\"Win32_Graphics_Dxgi_Common\"`, `\"Win32_Graphics_Imaging\"`"] @@ -2472,7 +2472,7 @@ impl ID2D1EffectContext2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ID2D1EffectImpl_Impl: Sized { @@ -2506,7 +2506,7 @@ impl ID2D1EffectImpl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Foundation_Numerics\"`, `\"Win32_Graphics_Direct2D_Common\"`"] @@ -2527,7 +2527,7 @@ impl ID2D1EllipseGeometry_Vtbl { Self { base__: ID2D1Geometry_Vtbl::new::(), GetEllipse: GetEllipse:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Foundation_Numerics\"`, `\"Win32_Graphics_Direct2D_Common\"`, `\"Win32_Graphics_DirectWrite\"`, `\"Win32_Graphics_Dxgi_Common\"`, `\"Win32_Graphics_Imaging\"`"] @@ -2714,7 +2714,7 @@ impl ID2D1Factory_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Foundation_Numerics\"`, `\"Win32_Graphics_Direct2D_Common\"`, `\"Win32_Graphics_DirectWrite\"`, `\"Win32_Graphics_Dxgi_Common\"`, `\"Win32_Graphics_Imaging\"`, `\"Win32_System_Com\"`"] @@ -2837,7 +2837,7 @@ impl ID2D1Factory1_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Foundation_Numerics\"`, `\"Win32_Graphics_Direct2D_Common\"`, `\"Win32_Graphics_DirectWrite\"`, `\"Win32_Graphics_Dxgi_Common\"`, `\"Win32_Graphics_Imaging\"`, `\"Win32_System_Com\"`"] @@ -2864,7 +2864,7 @@ impl ID2D1Factory2_Vtbl { Self { base__: ID2D1Factory1_Vtbl::new::(), CreateDevice2: CreateDevice2:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Foundation_Numerics\"`, `\"Win32_Graphics_Direct2D_Common\"`, `\"Win32_Graphics_DirectWrite\"`, `\"Win32_Graphics_Dxgi_Common\"`, `\"Win32_Graphics_Imaging\"`, `\"Win32_System_Com\"`"] @@ -2891,7 +2891,7 @@ impl ID2D1Factory3_Vtbl { Self { base__: ID2D1Factory2_Vtbl::new::(), CreateDevice3: CreateDevice3:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Foundation_Numerics\"`, `\"Win32_Graphics_Direct2D_Common\"`, `\"Win32_Graphics_DirectWrite\"`, `\"Win32_Graphics_Dxgi_Common\"`, `\"Win32_Graphics_Imaging\"`, `\"Win32_System_Com\"`"] @@ -2918,7 +2918,7 @@ impl ID2D1Factory4_Vtbl { Self { base__: ID2D1Factory3_Vtbl::new::(), CreateDevice4: CreateDevice4:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Foundation_Numerics\"`, `\"Win32_Graphics_Direct2D_Common\"`, `\"Win32_Graphics_DirectWrite\"`, `\"Win32_Graphics_Dxgi_Common\"`, `\"Win32_Graphics_Imaging\"`, `\"Win32_System_Com\"`"] @@ -2945,7 +2945,7 @@ impl ID2D1Factory5_Vtbl { Self { base__: ID2D1Factory4_Vtbl::new::(), CreateDevice5: CreateDevice5:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Foundation_Numerics\"`, `\"Win32_Graphics_Direct2D_Common\"`, `\"Win32_Graphics_DirectWrite\"`, `\"Win32_Graphics_Dxgi_Common\"`, `\"Win32_Graphics_Imaging\"`, `\"Win32_System_Com\"`"] @@ -2972,7 +2972,7 @@ impl ID2D1Factory6_Vtbl { Self { base__: ID2D1Factory5_Vtbl::new::(), CreateDevice6: CreateDevice6:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Foundation_Numerics\"`, `\"Win32_Graphics_Direct2D_Common\"`, `\"Win32_Graphics_DirectWrite\"`, `\"Win32_Graphics_Dxgi_Common\"`, `\"Win32_Graphics_Imaging\"`, `\"Win32_System_Com\"`"] @@ -2999,7 +2999,7 @@ impl ID2D1Factory7_Vtbl { Self { base__: ID2D1Factory6_Vtbl::new::(), CreateDevice7: CreateDevice7:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] @@ -3036,7 +3036,7 @@ impl ID2D1GdiInteropRenderTarget_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct2D_Common\"`"] @@ -3073,7 +3073,7 @@ impl ID2D1GdiMetafile_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct2D_Common\"`"] @@ -3110,7 +3110,7 @@ impl ID2D1GdiMetafile1_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ID2D1GdiMetafileSink_Impl: Sized { @@ -3127,7 +3127,7 @@ impl ID2D1GdiMetafileSink_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), ProcessRecord: ProcessRecord:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ID2D1GdiMetafileSink1_Impl: Sized + ID2D1GdiMetafileSink_Impl { @@ -3144,7 +3144,7 @@ impl ID2D1GdiMetafileSink1_Vtbl { Self { base__: ID2D1GdiMetafileSink_Vtbl::new::(), ProcessRecord2: ProcessRecord2:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Foundation_Numerics\"`, `\"Win32_Graphics_Direct2D_Common\"`"] @@ -3294,7 +3294,7 @@ impl ID2D1Geometry_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Foundation_Numerics\"`, `\"Win32_Graphics_Direct2D_Common\"`"] @@ -3332,7 +3332,7 @@ impl ID2D1GeometryGroup_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ID2D1GeometryRealization_Impl: Sized + ID2D1Resource_Impl {} @@ -3342,7 +3342,7 @@ impl ID2D1GeometryRealization_Vtbl { Self { base__: ID2D1Resource_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct2D_Common\"`"] @@ -3394,7 +3394,7 @@ impl ID2D1GeometrySink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct2D_Common\"`"] @@ -3425,7 +3425,7 @@ impl ID2D1GradientMesh_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct2D_Common\"`"] @@ -3470,7 +3470,7 @@ impl ID2D1GradientStopCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct2D_Common\"`"] @@ -3522,7 +3522,7 @@ impl ID2D1GradientStopCollection1_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Foundation_Numerics\"`, `\"Win32_Graphics_Direct2D_Common\"`, `\"Win32_Graphics_DirectWrite\"`, `\"Win32_Graphics_Dxgi_Common\"`, `\"Win32_Graphics_Imaging\"`"] @@ -3560,7 +3560,7 @@ impl ID2D1HwndRenderTarget_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ID2D1Image_Impl: Sized + ID2D1Resource_Impl {} @@ -3570,7 +3570,7 @@ impl ID2D1Image_Vtbl { Self { base__: ID2D1Resource_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Foundation_Numerics\"`, `\"Win32_Graphics_Direct2D_Common\"`"] @@ -3657,7 +3657,7 @@ impl ID2D1ImageBrush_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ID2D1ImageSource_Impl: Sized + ID2D1Image_Impl { @@ -3690,7 +3690,7 @@ impl ID2D1ImageSource_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct2D_Common\"`, `\"Win32_Graphics_Imaging\"`"] @@ -3728,7 +3728,7 @@ impl ID2D1ImageSourceFromWic_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Foundation_Numerics\"`, `\"Win32_Graphics_Direct2D_Common\"`"] @@ -3821,7 +3821,7 @@ impl ID2D1Ink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Foundation_Numerics\"`"] @@ -3866,7 +3866,7 @@ impl ID2D1InkStyle_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct2D_Common\"`"] @@ -3887,7 +3887,7 @@ impl ID2D1Layer_Vtbl { Self { base__: ID2D1Resource_Vtbl::new::(), GetSize: GetSize:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Foundation_Numerics\"`, `\"Win32_Graphics_Direct2D_Common\"`"] @@ -3939,7 +3939,7 @@ impl ID2D1LinearGradientBrush_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ID2D1LookupTable3D_Impl: Sized + ID2D1Resource_Impl {} @@ -3949,7 +3949,7 @@ impl ID2D1LookupTable3D_Vtbl { Self { base__: ID2D1Resource_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ID2D1Mesh_Impl: Sized + ID2D1Resource_Impl { @@ -3972,7 +3972,7 @@ impl ID2D1Mesh_Vtbl { Self { base__: ID2D1Resource_Vtbl::new::(), Open: Open:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ID2D1Multithread_Impl: Sized { @@ -4006,7 +4006,7 @@ impl ID2D1Multithread_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ID2D1OffsetTransform_Impl: Sized + ID2D1TransformNode_Impl { @@ -4033,7 +4033,7 @@ impl ID2D1OffsetTransform_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Foundation_Numerics\"`, `\"Win32_Graphics_Direct2D_Common\"`"] @@ -4096,7 +4096,7 @@ impl ID2D1PathGeometry_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Foundation_Numerics\"`, `\"Win32_Graphics_Direct2D_Common\"`"] @@ -4120,7 +4120,7 @@ impl ID2D1PathGeometry1_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct2D_Common\"`, `\"Win32_System_Com\"`"] @@ -4151,7 +4151,7 @@ impl ID2D1PrintControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ID2D1Properties_Impl: Sized { @@ -4247,7 +4247,7 @@ impl ID2D1Properties_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Foundation_Numerics\"`, `\"Win32_Graphics_Direct2D_Common\"`"] @@ -4327,7 +4327,7 @@ impl ID2D1RadialGradientBrush_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Foundation_Numerics\"`, `\"Win32_Graphics_Direct2D_Common\"`"] @@ -4348,7 +4348,7 @@ impl ID2D1RectangleGeometry_Vtbl { Self { base__: ID2D1Geometry_Vtbl::new::(), GetRect: GetRect:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ID2D1RenderInfo_Impl: Sized { @@ -4389,7 +4389,7 @@ impl ID2D1RenderInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Foundation_Numerics\"`, `\"Win32_Graphics_Direct2D_Common\"`, `\"Win32_Graphics_DirectWrite\"`, `\"Win32_Graphics_Dxgi_Common\"`, `\"Win32_Graphics_Imaging\"`"] @@ -4837,7 +4837,7 @@ impl ID2D1RenderTarget_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ID2D1Resource_Impl: Sized { @@ -4854,7 +4854,7 @@ impl ID2D1Resource_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetFactory: GetFactory:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ID2D1ResourceTexture_Impl: Sized { @@ -4871,7 +4871,7 @@ impl ID2D1ResourceTexture_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Update: Update:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Foundation_Numerics\"`, `\"Win32_Graphics_Direct2D_Common\"`"] @@ -4892,7 +4892,7 @@ impl ID2D1RoundedRectangleGeometry_Vtbl { Self { base__: ID2D1Geometry_Vtbl::new::(), GetRoundedRect: GetRoundedRect:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Foundation_Numerics\"`, `\"Win32_Graphics_Direct2D_Common\"`"] @@ -4923,7 +4923,7 @@ impl ID2D1SolidColorBrush_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct2D_Common\"`"] @@ -4954,7 +4954,7 @@ impl ID2D1SourceTransform_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Foundation_Numerics\"`, `\"Win32_Graphics_Direct2D_Common\"`"] @@ -5007,7 +5007,7 @@ impl ID2D1SpriteBatch_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ID2D1StrokeStyle_Impl: Sized + ID2D1Resource_Impl { @@ -5083,7 +5083,7 @@ impl ID2D1StrokeStyle_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ID2D1StrokeStyle1_Impl: Sized + ID2D1StrokeStyle_Impl { @@ -5100,7 +5100,7 @@ impl ID2D1StrokeStyle1_Vtbl { Self { base__: ID2D1StrokeStyle_Vtbl::new::(), GetStrokeTransformType: GetStrokeTransformType:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ID2D1SvgAttribute_Impl: Sized + ID2D1Resource_Impl { @@ -5133,7 +5133,7 @@ impl ID2D1SvgAttribute_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct2D_Common\"`, `\"Win32_System_Com\"`"] @@ -5263,7 +5263,7 @@ impl ID2D1SvgDocument_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ID2D1SvgElement_Impl: Sized + ID2D1Resource_Impl { @@ -5510,7 +5510,7 @@ impl ID2D1SvgElement_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ID2D1SvgGlyphStyle_Impl: Sized + ID2D1Resource_Impl { @@ -5558,7 +5558,7 @@ impl ID2D1SvgGlyphStyle_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct2D_Common\"`"] @@ -5624,7 +5624,7 @@ impl ID2D1SvgPaint_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct2D_Common\"`"] @@ -5710,7 +5710,7 @@ impl ID2D1SvgPathData_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct2D_Common\"`"] @@ -5755,7 +5755,7 @@ impl ID2D1SvgPointCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ID2D1SvgStrokeDashArray_Impl: Sized + ID2D1SvgAttribute_Impl { @@ -5810,7 +5810,7 @@ impl ID2D1SvgStrokeDashArray_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct2D_Common\"`"] @@ -5841,7 +5841,7 @@ impl ID2D1TessellationSink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ID2D1Transform_Impl: Sized + ID2D1TransformNode_Impl { @@ -5881,7 +5881,7 @@ impl ID2D1Transform_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ID2D1TransformGraph_Impl: Sized { @@ -5957,7 +5957,7 @@ impl ID2D1TransformGraph_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ID2D1TransformNode_Impl: Sized { @@ -5974,7 +5974,7 @@ impl ID2D1TransformNode_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetInputCount: GetInputCount:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Foundation_Numerics\"`, `\"Win32_Graphics_Direct2D_Common\"`"] @@ -6005,7 +6005,7 @@ impl ID2D1TransformedGeometry_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ID2D1TransformedImageSource_Impl: Sized + ID2D1Image_Impl { @@ -6032,7 +6032,7 @@ impl ID2D1TransformedImageSource_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ID2D1VertexBuffer_Impl: Sized { @@ -6055,6 +6055,6 @@ impl ID2D1VertexBuffer_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Map: Map::, Unmap: Unmap:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 e131e02d92..083c51de03 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Direct2D/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Direct2D/mod.rs @@ -40,7 +40,7 @@ where #[inline] pub unsafe fn D2D1CreateFactory(factorytype: D2D1_FACTORY_TYPE, pfactoryoptions: ::core::option::Option<*const D2D1_FACTORY_OPTIONS>) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { ::windows_targets::link!("d2d1.dll" "system" fn D2D1CreateFactory(factorytype : D2D1_FACTORY_TYPE, riid : *const ::windows_core::GUID, pfactoryoptions : *const D2D1_FACTORY_OPTIONS, ppifactory : *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT); let mut result__ = ::std::ptr::null_mut(); @@ -96,32 +96,23 @@ pub unsafe fn D2D1Vec3Length(x: f32, y: f32, z: f32) -> f32 { ::windows_targets::link!("d2d1.dll" "system" fn D2D1Vec3Length(x : f32, y : f32, z : f32) -> f32); D2D1Vec3Length(x, y, z) } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1AnalysisTransform(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1AnalysisTransform, ID2D1AnalysisTransform_Vtbl, 0x0359dc30_95e6_4568_9055_27720d130e93); +::windows_core::imp::interface_hierarchy!(ID2D1AnalysisTransform, ::windows_core::IUnknown); impl ID2D1AnalysisTransform { pub unsafe fn ProcessAnalysisResults(&self, analysisdata: &[u8]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).ProcessAnalysisResults)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(analysisdata.as_ptr()), analysisdata.len().try_into().unwrap()).ok() } } -::windows_core::imp::interface_hierarchy!(ID2D1AnalysisTransform, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID2D1AnalysisTransform {} unsafe impl ::core::marker::Sync for ID2D1AnalysisTransform {} -unsafe impl ::windows_core::Interface for ID2D1AnalysisTransform { - type Vtable = ID2D1AnalysisTransform_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1AnalysisTransform { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0359dc30_95e6_4568_9055_27720d130e93); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1AnalysisTransform_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub ProcessAnalysisResults: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, analysisdata: *const u8, analysisdatacount: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1Bitmap(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1Bitmap, ID2D1Bitmap_Vtbl, 0xa2296057_ea42_4099_983b_539fb6505426); +::windows_core::imp::interface_hierarchy!(ID2D1Bitmap, ::windows_core::IUnknown, ID2D1Resource, ID2D1Image); impl ID2D1Bitmap { pub unsafe fn GetFactory(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -174,15 +165,8 @@ impl ID2D1Bitmap { (::windows_core::Interface::vtable(self).CopyFromMemory)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(dstrect.unwrap_or(::std::ptr::null())), srcdata, pitch).ok() } } -::windows_core::imp::interface_hierarchy!(ID2D1Bitmap, ::windows_core::IUnknown, ID2D1Resource, ID2D1Image); unsafe impl ::core::marker::Send for ID2D1Bitmap {} unsafe impl ::core::marker::Sync for ID2D1Bitmap {} -unsafe impl ::windows_core::Interface for ID2D1Bitmap { - type Vtable = ID2D1Bitmap_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1Bitmap { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa2296057_ea42_4099_983b_539fb6505426); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1Bitmap_Vtbl { @@ -213,9 +197,8 @@ pub struct ID2D1Bitmap_Vtbl { #[cfg(not(feature = "Win32_Graphics_Direct2D_Common"))] CopyFromMemory: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1Bitmap1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1Bitmap1, ID2D1Bitmap1_Vtbl, 0xa898a84c_3873_4588_b08b_ebbf978df041); +::windows_core::imp::interface_hierarchy!(ID2D1Bitmap1, ::windows_core::IUnknown, ID2D1Resource, ID2D1Image, ID2D1Bitmap); impl ID2D1Bitmap1 { pub unsafe fn GetFactory(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -289,15 +272,8 @@ impl ID2D1Bitmap1 { (::windows_core::Interface::vtable(self).Unmap)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ID2D1Bitmap1, ::windows_core::IUnknown, ID2D1Resource, ID2D1Image, ID2D1Bitmap); unsafe impl ::core::marker::Send for ID2D1Bitmap1 {} unsafe impl ::core::marker::Sync for ID2D1Bitmap1 {} -unsafe impl ::windows_core::Interface for ID2D1Bitmap1 { - type Vtable = ID2D1Bitmap1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1Bitmap1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa898a84c_3873_4588_b08b_ebbf978df041); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1Bitmap1_Vtbl { @@ -311,9 +287,8 @@ pub struct ID2D1Bitmap1_Vtbl { pub Map: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, options: D2D1_MAP_OPTIONS, mappedrect: *mut D2D1_MAPPED_RECT) -> ::windows_core::HRESULT, pub Unmap: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1BitmapBrush(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1BitmapBrush, ID2D1BitmapBrush_Vtbl, 0x2cd906aa_12e2_11dc_9fed_001143a055f9); +::windows_core::imp::interface_hierarchy!(ID2D1BitmapBrush, ::windows_core::IUnknown, ID2D1Resource, ID2D1Brush); impl ID2D1BitmapBrush { pub unsafe fn GetFactory(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -366,15 +341,8 @@ impl ID2D1BitmapBrush { ::windows_core::from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ID2D1BitmapBrush, ::windows_core::IUnknown, ID2D1Resource, ID2D1Brush); unsafe impl ::core::marker::Send for ID2D1BitmapBrush {} unsafe impl ::core::marker::Sync for ID2D1BitmapBrush {} -unsafe impl ::windows_core::Interface for ID2D1BitmapBrush { - type Vtable = ID2D1BitmapBrush_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1BitmapBrush { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2cd906aa_12e2_11dc_9fed_001143a055f9); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1BitmapBrush_Vtbl { @@ -388,9 +356,8 @@ pub struct ID2D1BitmapBrush_Vtbl { pub GetInterpolationMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> D2D1_BITMAP_INTERPOLATION_MODE, pub GetBitmap: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bitmap: *mut *mut ::core::ffi::c_void), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1BitmapBrush1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1BitmapBrush1, ID2D1BitmapBrush1_Vtbl, 0x41343a53_e41a_49a2_91cd_21793bbb62e5); +::windows_core::imp::interface_hierarchy!(ID2D1BitmapBrush1, ::windows_core::IUnknown, ID2D1Resource, ID2D1Brush, ID2D1BitmapBrush); impl ID2D1BitmapBrush1 { pub unsafe fn GetFactory(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -449,15 +416,8 @@ impl ID2D1BitmapBrush1 { (::windows_core::Interface::vtable(self).GetInterpolationMode1)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(ID2D1BitmapBrush1, ::windows_core::IUnknown, ID2D1Resource, ID2D1Brush, ID2D1BitmapBrush); unsafe impl ::core::marker::Send for ID2D1BitmapBrush1 {} unsafe impl ::core::marker::Sync for ID2D1BitmapBrush1 {} -unsafe impl ::windows_core::Interface for ID2D1BitmapBrush1 { - type Vtable = ID2D1BitmapBrush1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1BitmapBrush1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x41343a53_e41a_49a2_91cd_21793bbb62e5); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1BitmapBrush1_Vtbl { @@ -465,9 +425,8 @@ pub struct ID2D1BitmapBrush1_Vtbl { pub SetInterpolationMode1: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, interpolationmode: D2D1_INTERPOLATION_MODE), pub GetInterpolationMode1: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> D2D1_INTERPOLATION_MODE, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1BitmapRenderTarget(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1BitmapRenderTarget, ID2D1BitmapRenderTarget_Vtbl, 0x2cd90695_12e2_11dc_9fed_001143a055f9); +::windows_core::imp::interface_hierarchy!(ID2D1BitmapRenderTarget, ::windows_core::IUnknown, ID2D1Resource, ID2D1RenderTarget); impl ID2D1BitmapRenderTarget { pub unsafe fn GetFactory(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -803,24 +762,16 @@ impl ID2D1BitmapRenderTarget { (::windows_core::Interface::vtable(self).GetBitmap)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ID2D1BitmapRenderTarget, ::windows_core::IUnknown, ID2D1Resource, ID2D1RenderTarget); unsafe impl ::core::marker::Send for ID2D1BitmapRenderTarget {} unsafe impl ::core::marker::Sync for ID2D1BitmapRenderTarget {} -unsafe impl ::windows_core::Interface for ID2D1BitmapRenderTarget { - type Vtable = ID2D1BitmapRenderTarget_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1BitmapRenderTarget { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2cd90695_12e2_11dc_9fed_001143a055f9); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1BitmapRenderTarget_Vtbl { pub base__: ID2D1RenderTarget_Vtbl, pub GetBitmap: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bitmap: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1BlendTransform(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1BlendTransform, ID2D1BlendTransform_Vtbl, 0x63ac0b32_ba44_450f_8806_7f4ca1ff2f1b); +::windows_core::imp::interface_hierarchy!(ID2D1BlendTransform, ::windows_core::IUnknown, ID2D1TransformNode, ID2D1ConcreteTransform); impl ID2D1BlendTransform { pub unsafe fn GetInputCount(&self) -> u32 { (::windows_core::Interface::vtable(self).base__.base__.GetInputCount)(::windows_core::Interface::as_raw(self)) @@ -841,15 +792,8 @@ impl ID2D1BlendTransform { (::windows_core::Interface::vtable(self).GetDescription)(::windows_core::Interface::as_raw(self), description) } } -::windows_core::imp::interface_hierarchy!(ID2D1BlendTransform, ::windows_core::IUnknown, ID2D1TransformNode, ID2D1ConcreteTransform); unsafe impl ::core::marker::Send for ID2D1BlendTransform {} unsafe impl ::core::marker::Sync for ID2D1BlendTransform {} -unsafe impl ::windows_core::Interface for ID2D1BlendTransform { - type Vtable = ID2D1BlendTransform_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1BlendTransform { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x63ac0b32_ba44_450f_8806_7f4ca1ff2f1b); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1BlendTransform_Vtbl { @@ -857,9 +801,8 @@ pub struct ID2D1BlendTransform_Vtbl { pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, description: *const D2D1_BLEND_DESCRIPTION), pub GetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, description: *mut D2D1_BLEND_DESCRIPTION), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1BorderTransform(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1BorderTransform, ID2D1BorderTransform_Vtbl, 0x4998735c_3a19_473c_9781_656847e3a347); +::windows_core::imp::interface_hierarchy!(ID2D1BorderTransform, ::windows_core::IUnknown, ID2D1TransformNode, ID2D1ConcreteTransform); impl ID2D1BorderTransform { pub unsafe fn GetInputCount(&self) -> u32 { (::windows_core::Interface::vtable(self).base__.base__.GetInputCount)(::windows_core::Interface::as_raw(self)) @@ -886,15 +829,8 @@ impl ID2D1BorderTransform { (::windows_core::Interface::vtable(self).GetExtendModeY)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(ID2D1BorderTransform, ::windows_core::IUnknown, ID2D1TransformNode, ID2D1ConcreteTransform); unsafe impl ::core::marker::Send for ID2D1BorderTransform {} unsafe impl ::core::marker::Sync for ID2D1BorderTransform {} -unsafe impl ::windows_core::Interface for ID2D1BorderTransform { - type Vtable = ID2D1BorderTransform_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1BorderTransform { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4998735c_3a19_473c_9781_656847e3a347); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1BorderTransform_Vtbl { @@ -904,9 +840,8 @@ pub struct ID2D1BorderTransform_Vtbl { pub GetExtendModeX: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> D2D1_EXTEND_MODE, pub GetExtendModeY: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> D2D1_EXTEND_MODE, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1BoundsAdjustmentTransform(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1BoundsAdjustmentTransform, ID2D1BoundsAdjustmentTransform_Vtbl, 0x90f732e2_5092_4606_a819_8651970baccd); +::windows_core::imp::interface_hierarchy!(ID2D1BoundsAdjustmentTransform, ::windows_core::IUnknown, ID2D1TransformNode); impl ID2D1BoundsAdjustmentTransform { pub unsafe fn GetInputCount(&self) -> u32 { (::windows_core::Interface::vtable(self).base__.GetInputCount)(::windows_core::Interface::as_raw(self)) @@ -920,15 +855,8 @@ impl ID2D1BoundsAdjustmentTransform { ::std::mem::transmute(result__) } } -::windows_core::imp::interface_hierarchy!(ID2D1BoundsAdjustmentTransform, ::windows_core::IUnknown, ID2D1TransformNode); unsafe impl ::core::marker::Send for ID2D1BoundsAdjustmentTransform {} unsafe impl ::core::marker::Sync for ID2D1BoundsAdjustmentTransform {} -unsafe impl ::windows_core::Interface for ID2D1BoundsAdjustmentTransform { - type Vtable = ID2D1BoundsAdjustmentTransform_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1BoundsAdjustmentTransform { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x90f732e2_5092_4606_a819_8651970baccd); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1BoundsAdjustmentTransform_Vtbl { @@ -936,9 +864,8 @@ pub struct ID2D1BoundsAdjustmentTransform_Vtbl { pub SetOutputBounds: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, outputbounds: *const super::super::Foundation::RECT), pub GetOutputBounds: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, outputbounds: *mut super::super::Foundation::RECT), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1Brush(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1Brush, ID2D1Brush_Vtbl, 0x2cd906a8_12e2_11dc_9fed_001143a055f9); +::windows_core::imp::interface_hierarchy!(ID2D1Brush, ::windows_core::IUnknown, ID2D1Resource); impl ID2D1Brush { pub unsafe fn GetFactory(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -962,15 +889,8 @@ impl ID2D1Brush { (::windows_core::Interface::vtable(self).GetTransform)(::windows_core::Interface::as_raw(self), transform) } } -::windows_core::imp::interface_hierarchy!(ID2D1Brush, ::windows_core::IUnknown, ID2D1Resource); unsafe impl ::core::marker::Send for ID2D1Brush {} unsafe impl ::core::marker::Sync for ID2D1Brush {} -unsafe impl ::windows_core::Interface for ID2D1Brush { - type Vtable = ID2D1Brush_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1Brush { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2cd906a8_12e2_11dc_9fed_001143a055f9); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1Brush_Vtbl { @@ -986,9 +906,8 @@ pub struct ID2D1Brush_Vtbl { #[cfg(not(feature = "Foundation_Numerics"))] GetTransform: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1ColorContext(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1ColorContext, ID2D1ColorContext_Vtbl, 0x1c4820bb_5771_4518_a581_2fe4dd0ec657); +::windows_core::imp::interface_hierarchy!(ID2D1ColorContext, ::windows_core::IUnknown, ID2D1Resource); impl ID2D1ColorContext { pub unsafe fn GetFactory(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1005,15 +924,8 @@ impl ID2D1ColorContext { (::windows_core::Interface::vtable(self).GetProfile)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(profile.as_ptr()), profile.len().try_into().unwrap()).ok() } } -::windows_core::imp::interface_hierarchy!(ID2D1ColorContext, ::windows_core::IUnknown, ID2D1Resource); unsafe impl ::core::marker::Send for ID2D1ColorContext {} unsafe impl ::core::marker::Sync for ID2D1ColorContext {} -unsafe impl ::windows_core::Interface for ID2D1ColorContext { - type Vtable = ID2D1ColorContext_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1ColorContext { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1c4820bb_5771_4518_a581_2fe4dd0ec657); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1ColorContext_Vtbl { @@ -1022,9 +934,8 @@ pub struct ID2D1ColorContext_Vtbl { pub GetProfileSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> u32, pub GetProfile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, profile: *mut u8, profilesize: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1ColorContext1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1ColorContext1, ID2D1ColorContext1_Vtbl, 0x1ab42875_c57f_4be9_bd85_9cd78d6f55ee); +::windows_core::imp::interface_hierarchy!(ID2D1ColorContext1, ::windows_core::IUnknown, ID2D1Resource, ID2D1ColorContext); impl ID2D1ColorContext1 { pub unsafe fn GetFactory(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1054,15 +965,8 @@ impl ID2D1ColorContext1 { (::windows_core::Interface::vtable(self).GetSimpleColorProfile)(::windows_core::Interface::as_raw(self), simpleprofile).ok() } } -::windows_core::imp::interface_hierarchy!(ID2D1ColorContext1, ::windows_core::IUnknown, ID2D1Resource, ID2D1ColorContext); unsafe impl ::core::marker::Send for ID2D1ColorContext1 {} unsafe impl ::core::marker::Sync for ID2D1ColorContext1 {} -unsafe impl ::windows_core::Interface for ID2D1ColorContext1 { - type Vtable = ID2D1ColorContext1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1ColorContext1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1ab42875_c57f_4be9_bd85_9cd78d6f55ee); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1ColorContext1_Vtbl { @@ -1077,9 +981,8 @@ pub struct ID2D1ColorContext1_Vtbl { #[cfg(not(feature = "Win32_Graphics_Direct2D_Common"))] GetSimpleColorProfile: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1CommandList(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1CommandList, ID2D1CommandList_Vtbl, 0xb4f34a19_2383_4d76_94f6_ec343657c3dc); +::windows_core::imp::interface_hierarchy!(ID2D1CommandList, ::windows_core::IUnknown, ID2D1Resource, ID2D1Image); impl ID2D1CommandList { pub unsafe fn GetFactory(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1096,15 +999,8 @@ impl ID2D1CommandList { (::windows_core::Interface::vtable(self).Close)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ID2D1CommandList, ::windows_core::IUnknown, ID2D1Resource, ID2D1Image); unsafe impl ::core::marker::Send for ID2D1CommandList {} unsafe impl ::core::marker::Sync for ID2D1CommandList {} -unsafe impl ::windows_core::Interface for ID2D1CommandList { - type Vtable = ID2D1CommandList_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1CommandList { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb4f34a19_2383_4d76_94f6_ec343657c3dc); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1CommandList_Vtbl { @@ -1112,9 +1008,8 @@ pub struct ID2D1CommandList_Vtbl { pub Stream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sink: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Close: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1CommandSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1CommandSink, ID2D1CommandSink_Vtbl, 0x54d7898a_a061_40a7_bec7_e465bcba2c4f); +::windows_core::imp::interface_hierarchy!(ID2D1CommandSink, ::windows_core::IUnknown); impl ID2D1CommandSink { pub unsafe fn BeginDraw(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).BeginDraw)(::windows_core::Interface::as_raw(self)).ok() @@ -1265,15 +1160,8 @@ impl ID2D1CommandSink { (::windows_core::Interface::vtable(self).PopLayer)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ID2D1CommandSink, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID2D1CommandSink {} unsafe impl ::core::marker::Sync for ID2D1CommandSink {} -unsafe impl ::windows_core::Interface for ID2D1CommandSink { - type Vtable = ID2D1CommandSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1CommandSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x54d7898a_a061_40a7_bec7_e465bcba2c4f); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1CommandSink_Vtbl { @@ -1343,9 +1231,8 @@ pub struct ID2D1CommandSink_Vtbl { pub PopAxisAlignedClip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub PopLayer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1CommandSink1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1CommandSink1, ID2D1CommandSink1_Vtbl, 0x9eb767fd_4269_4467_b8c2_eb30cb305743); +::windows_core::imp::interface_hierarchy!(ID2D1CommandSink1, ::windows_core::IUnknown, ID2D1CommandSink); impl ID2D1CommandSink1 { pub unsafe fn BeginDraw(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.BeginDraw)(::windows_core::Interface::as_raw(self)).ok() @@ -1499,24 +1386,16 @@ impl ID2D1CommandSink1 { (::windows_core::Interface::vtable(self).SetPrimitiveBlend1)(::windows_core::Interface::as_raw(self), primitiveblend).ok() } } -::windows_core::imp::interface_hierarchy!(ID2D1CommandSink1, ::windows_core::IUnknown, ID2D1CommandSink); unsafe impl ::core::marker::Send for ID2D1CommandSink1 {} unsafe impl ::core::marker::Sync for ID2D1CommandSink1 {} -unsafe impl ::windows_core::Interface for ID2D1CommandSink1 { - type Vtable = ID2D1CommandSink1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1CommandSink1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9eb767fd_4269_4467_b8c2_eb30cb305743); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1CommandSink1_Vtbl { pub base__: ID2D1CommandSink_Vtbl, pub SetPrimitiveBlend1: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, primitiveblend: D2D1_PRIMITIVE_BLEND) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1CommandSink2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1CommandSink2, ID2D1CommandSink2_Vtbl, 0x3bab440e_417e_47df_a2e2_bc0be6a00916); +::windows_core::imp::interface_hierarchy!(ID2D1CommandSink2, ::windows_core::IUnknown, ID2D1CommandSink, ID2D1CommandSink1); impl ID2D1CommandSink2 { pub unsafe fn BeginDraw(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.BeginDraw)(::windows_core::Interface::as_raw(self)).ok() @@ -1692,15 +1571,8 @@ impl ID2D1CommandSink2 { (::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::imp::interface_hierarchy!(ID2D1CommandSink2, ::windows_core::IUnknown, ID2D1CommandSink, ID2D1CommandSink1); unsafe impl ::core::marker::Send for ID2D1CommandSink2 {} unsafe impl ::core::marker::Sync for ID2D1CommandSink2 {} -unsafe impl ::windows_core::Interface for ID2D1CommandSink2 { - type Vtable = ID2D1CommandSink2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1CommandSink2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3bab440e_417e_47df_a2e2_bc0be6a00916); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1CommandSink2_Vtbl { @@ -1712,9 +1584,8 @@ pub struct ID2D1CommandSink2_Vtbl { #[cfg(not(feature = "Win32_Graphics_Direct2D_Common"))] DrawGdiMetafile2: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1CommandSink3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1CommandSink3, ID2D1CommandSink3_Vtbl, 0x18079135_4cf3_4868_bc8e_06067e6d242d); +::windows_core::imp::interface_hierarchy!(ID2D1CommandSink3, ::windows_core::IUnknown, ID2D1CommandSink, ID2D1CommandSink1, ID2D1CommandSink2); impl ID2D1CommandSink3 { pub unsafe fn BeginDraw(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.BeginDraw)(::windows_core::Interface::as_raw(self)).ok() @@ -1897,24 +1768,16 @@ impl ID2D1CommandSink3 { (::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::imp::interface_hierarchy!(ID2D1CommandSink3, ::windows_core::IUnknown, ID2D1CommandSink, ID2D1CommandSink1, ID2D1CommandSink2); unsafe impl ::core::marker::Send for ID2D1CommandSink3 {} unsafe impl ::core::marker::Sync for ID2D1CommandSink3 {} -unsafe impl ::windows_core::Interface for ID2D1CommandSink3 { - type Vtable = ID2D1CommandSink3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1CommandSink3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x18079135_4cf3_4868_bc8e_06067e6d242d); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1CommandSink3_Vtbl { pub base__: ID2D1CommandSink2_Vtbl, pub DrawSpriteBatch: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, spritebatch: *mut ::core::ffi::c_void, startindex: u32, spritecount: u32, bitmap: *mut ::core::ffi::c_void, interpolationmode: D2D1_BITMAP_INTERPOLATION_MODE, spriteoptions: D2D1_SPRITE_OPTIONS) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1CommandSink4(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1CommandSink4, ID2D1CommandSink4_Vtbl, 0xc78a6519_40d6_4218_b2de_beeeb744bb3e); +::windows_core::imp::interface_hierarchy!(ID2D1CommandSink4, ::windows_core::IUnknown, ID2D1CommandSink, ID2D1CommandSink1, ID2D1CommandSink2, ID2D1CommandSink3); impl ID2D1CommandSink4 { pub unsafe fn BeginDraw(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.BeginDraw)(::windows_core::Interface::as_raw(self)).ok() @@ -2100,24 +1963,16 @@ impl ID2D1CommandSink4 { (::windows_core::Interface::vtable(self).SetPrimitiveBlend2)(::windows_core::Interface::as_raw(self), primitiveblend).ok() } } -::windows_core::imp::interface_hierarchy!(ID2D1CommandSink4, ::windows_core::IUnknown, ID2D1CommandSink, ID2D1CommandSink1, ID2D1CommandSink2, ID2D1CommandSink3); unsafe impl ::core::marker::Send for ID2D1CommandSink4 {} unsafe impl ::core::marker::Sync for ID2D1CommandSink4 {} -unsafe impl ::windows_core::Interface for ID2D1CommandSink4 { - type Vtable = ID2D1CommandSink4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1CommandSink4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc78a6519_40d6_4218_b2de_beeeb744bb3e); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1CommandSink4_Vtbl { pub base__: ID2D1CommandSink3_Vtbl, pub SetPrimitiveBlend2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, primitiveblend: D2D1_PRIMITIVE_BLEND) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1CommandSink5(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1CommandSink5, ID2D1CommandSink5_Vtbl, 0x7047dd26_b1e7_44a7_959a_8349e2144fa8); +::windows_core::imp::interface_hierarchy!(ID2D1CommandSink5, ::windows_core::IUnknown, ID2D1CommandSink, ID2D1CommandSink1, ID2D1CommandSink2, ID2D1CommandSink3, ID2D1CommandSink4); impl ID2D1CommandSink5 { pub unsafe fn BeginDraw(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.BeginDraw)(::windows_core::Interface::as_raw(self)).ok() @@ -2311,15 +2166,8 @@ impl ID2D1CommandSink5 { (::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::imp::interface_hierarchy!(ID2D1CommandSink5, ::windows_core::IUnknown, ID2D1CommandSink, ID2D1CommandSink1, ID2D1CommandSink2, ID2D1CommandSink3, ID2D1CommandSink4); unsafe impl ::core::marker::Send for ID2D1CommandSink5 {} unsafe impl ::core::marker::Sync for ID2D1CommandSink5 {} -unsafe impl ::windows_core::Interface for ID2D1CommandSink5 { - type Vtable = ID2D1CommandSink5_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1CommandSink5 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7047dd26_b1e7_44a7_959a_8349e2144fa8); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1CommandSink5_Vtbl { @@ -2329,9 +2177,8 @@ pub struct ID2D1CommandSink5_Vtbl { #[cfg(not(feature = "Win32_Graphics_Direct2D_Common"))] BlendImage: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1ComputeInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1ComputeInfo, ID2D1ComputeInfo_Vtbl, 0x5598b14b_9fd7_48b7_9bdb_8f0964eb38bc); +::windows_core::imp::interface_hierarchy!(ID2D1ComputeInfo, ::windows_core::IUnknown, ID2D1RenderInfo); impl ID2D1ComputeInfo { pub unsafe fn SetInputDescription(&self, inputindex: u32, inputdescription: D2D1_INPUT_DESCRIPTION) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.SetInputDescription)(::windows_core::Interface::as_raw(self), inputindex, ::core::mem::transmute(inputdescription)).ok() @@ -2361,15 +2208,8 @@ impl ID2D1ComputeInfo { (::windows_core::Interface::vtable(self).SetResourceTexture)(::windows_core::Interface::as_raw(self), textureindex, resourcetexture.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ID2D1ComputeInfo, ::windows_core::IUnknown, ID2D1RenderInfo); unsafe impl ::core::marker::Send for ID2D1ComputeInfo {} unsafe impl ::core::marker::Sync for ID2D1ComputeInfo {} -unsafe impl ::windows_core::Interface for ID2D1ComputeInfo { - type Vtable = ID2D1ComputeInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1ComputeInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5598b14b_9fd7_48b7_9bdb_8f0964eb38bc); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1ComputeInfo_Vtbl { @@ -2378,9 +2218,8 @@ pub struct ID2D1ComputeInfo_Vtbl { pub SetComputeShader: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, shaderid: *const ::windows_core::GUID) -> ::windows_core::HRESULT, pub SetResourceTexture: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, textureindex: u32, resourcetexture: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1ComputeTransform(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1ComputeTransform, ID2D1ComputeTransform_Vtbl, 0x0d85573c_01e3_4f7d_bfd9_0d60608bf3c3); +::windows_core::imp::interface_hierarchy!(ID2D1ComputeTransform, ::windows_core::IUnknown, ID2D1TransformNode, ID2D1Transform); impl ID2D1ComputeTransform { pub unsafe fn GetInputCount(&self) -> u32 { (::windows_core::Interface::vtable(self).base__.base__.GetInputCount)(::windows_core::Interface::as_raw(self)) @@ -2405,15 +2244,8 @@ impl ID2D1ComputeTransform { (::windows_core::Interface::vtable(self).CalculateThreadgroups)(::windows_core::Interface::as_raw(self), outputrect, dimensionx, dimensiony, dimensionz).ok() } } -::windows_core::imp::interface_hierarchy!(ID2D1ComputeTransform, ::windows_core::IUnknown, ID2D1TransformNode, ID2D1Transform); unsafe impl ::core::marker::Send for ID2D1ComputeTransform {} unsafe impl ::core::marker::Sync for ID2D1ComputeTransform {} -unsafe impl ::windows_core::Interface for ID2D1ComputeTransform { - type Vtable = ID2D1ComputeTransform_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1ComputeTransform { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0d85573c_01e3_4f7d_bfd9_0d60608bf3c3); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1ComputeTransform_Vtbl { @@ -2421,9 +2253,8 @@ pub struct ID2D1ComputeTransform_Vtbl { pub SetComputeInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, computeinfo: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CalculateThreadgroups: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, outputrect: *const super::super::Foundation::RECT, dimensionx: *mut u32, dimensiony: *mut u32, dimensionz: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1ConcreteTransform(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1ConcreteTransform, ID2D1ConcreteTransform_Vtbl, 0x1a799d8a_69f7_4e4c_9fed_437ccc6684cc); +::windows_core::imp::interface_hierarchy!(ID2D1ConcreteTransform, ::windows_core::IUnknown, ID2D1TransformNode); impl ID2D1ConcreteTransform { pub unsafe fn GetInputCount(&self) -> u32 { (::windows_core::Interface::vtable(self).base__.GetInputCount)(::windows_core::Interface::as_raw(self)) @@ -2438,15 +2269,8 @@ impl ID2D1ConcreteTransform { (::windows_core::Interface::vtable(self).SetCached)(::windows_core::Interface::as_raw(self), iscached.into_param().abi()) } } -::windows_core::imp::interface_hierarchy!(ID2D1ConcreteTransform, ::windows_core::IUnknown, ID2D1TransformNode); unsafe impl ::core::marker::Send for ID2D1ConcreteTransform {} unsafe impl ::core::marker::Sync for ID2D1ConcreteTransform {} -unsafe impl ::windows_core::Interface for ID2D1ConcreteTransform { - type Vtable = ID2D1ConcreteTransform_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1ConcreteTransform { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1a799d8a_69f7_4e4c_9fed_437ccc6684cc); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1ConcreteTransform_Vtbl { @@ -2454,9 +2278,8 @@ pub struct ID2D1ConcreteTransform_Vtbl { pub SetOutputBuffer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bufferprecision: D2D1_BUFFER_PRECISION, channeldepth: D2D1_CHANNEL_DEPTH) -> ::windows_core::HRESULT, pub SetCached: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, iscached: super::super::Foundation::BOOL), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1DCRenderTarget(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1DCRenderTarget, ID2D1DCRenderTarget_Vtbl, 0x1c51bc64_de61_46fd_9899_63a5d8f03950); +::windows_core::imp::interface_hierarchy!(ID2D1DCRenderTarget, ::windows_core::IUnknown, ID2D1Resource, ID2D1RenderTarget); impl ID2D1DCRenderTarget { pub unsafe fn GetFactory(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2796,15 +2619,8 @@ impl ID2D1DCRenderTarget { (::windows_core::Interface::vtable(self).BindDC)(::windows_core::Interface::as_raw(self), hdc.into_param().abi(), psubrect).ok() } } -::windows_core::imp::interface_hierarchy!(ID2D1DCRenderTarget, ::windows_core::IUnknown, ID2D1Resource, ID2D1RenderTarget); unsafe impl ::core::marker::Send for ID2D1DCRenderTarget {} unsafe impl ::core::marker::Sync for ID2D1DCRenderTarget {} -unsafe impl ::windows_core::Interface for ID2D1DCRenderTarget { - type Vtable = ID2D1DCRenderTarget_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1DCRenderTarget { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1c51bc64_de61_46fd_9899_63a5d8f03950); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1DCRenderTarget_Vtbl { @@ -2814,9 +2630,8 @@ pub struct ID2D1DCRenderTarget_Vtbl { #[cfg(not(feature = "Win32_Graphics_Gdi"))] BindDC: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1Device(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1Device, ID2D1Device_Vtbl, 0x47dd575d_ac05_4cdd_8049_9b02cd16f44c); +::windows_core::imp::interface_hierarchy!(ID2D1Device, ::windows_core::IUnknown, ID2D1Resource); impl ID2D1Device { pub unsafe fn GetFactory(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2847,15 +2662,8 @@ impl ID2D1Device { (::windows_core::Interface::vtable(self).ClearResources)(::windows_core::Interface::as_raw(self), millisecondssinceuse) } } -::windows_core::imp::interface_hierarchy!(ID2D1Device, ::windows_core::IUnknown, ID2D1Resource); unsafe impl ::core::marker::Send for ID2D1Device {} unsafe impl ::core::marker::Sync for ID2D1Device {} -unsafe impl ::windows_core::Interface for ID2D1Device { - type Vtable = ID2D1Device_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1Device { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x47dd575d_ac05_4cdd_8049_9b02cd16f44c); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1Device_Vtbl { @@ -2869,9 +2677,8 @@ pub struct ID2D1Device_Vtbl { pub GetMaximumTextureMemory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> u64, pub ClearResources: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, millisecondssinceuse: u32), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1Device1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1Device1, ID2D1Device1_Vtbl, 0xd21768e1_23a4_4823_a14b_7c3eba85d658); +::windows_core::imp::interface_hierarchy!(ID2D1Device1, ::windows_core::IUnknown, ID2D1Resource, ID2D1Device); impl ID2D1Device1 { pub unsafe fn GetFactory(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2912,15 +2719,8 @@ impl ID2D1Device1 { (::windows_core::Interface::vtable(self).CreateDeviceContext2)(::windows_core::Interface::as_raw(self), options, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ID2D1Device1, ::windows_core::IUnknown, ID2D1Resource, ID2D1Device); unsafe impl ::core::marker::Send for ID2D1Device1 {} unsafe impl ::core::marker::Sync for ID2D1Device1 {} -unsafe impl ::windows_core::Interface for ID2D1Device1 { - type Vtable = ID2D1Device1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1Device1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd21768e1_23a4_4823_a14b_7c3eba85d658); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1Device1_Vtbl { @@ -2929,9 +2729,8 @@ pub struct ID2D1Device1_Vtbl { pub SetRenderingPriority: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, renderingpriority: D2D1_RENDERING_PRIORITY), pub CreateDeviceContext2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, options: D2D1_DEVICE_CONTEXT_OPTIONS, devicecontext1: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1Device2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1Device2, ID2D1Device2_Vtbl, 0xa44472e1_8dfb_4e60_8492_6e2861c9ca8b); +::windows_core::imp::interface_hierarchy!(ID2D1Device2, ::windows_core::IUnknown, ID2D1Resource, ID2D1Device, ID2D1Device1); impl ID2D1Device2 { pub unsafe fn GetFactory(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2988,15 +2787,8 @@ impl ID2D1Device2 { (::windows_core::Interface::vtable(self).GetDxgiDevice)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ID2D1Device2, ::windows_core::IUnknown, ID2D1Resource, ID2D1Device, ID2D1Device1); unsafe impl ::core::marker::Send for ID2D1Device2 {} unsafe impl ::core::marker::Sync for ID2D1Device2 {} -unsafe impl ::windows_core::Interface for ID2D1Device2 { - type Vtable = ID2D1Device2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1Device2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa44472e1_8dfb_4e60_8492_6e2861c9ca8b); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1Device2_Vtbl { @@ -3008,9 +2800,8 @@ pub struct ID2D1Device2_Vtbl { #[cfg(not(feature = "Win32_Graphics_Dxgi"))] GetDxgiDevice: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1Device3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1Device3, ID2D1Device3_Vtbl, 0x852f2087_802c_4037_ab60_ff2e7ee6fc01); +::windows_core::imp::interface_hierarchy!(ID2D1Device3, ::windows_core::IUnknown, ID2D1Resource, ID2D1Device, ID2D1Device1, ID2D1Device2); impl ID2D1Device3 { pub unsafe fn GetFactory(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -3071,24 +2862,16 @@ impl ID2D1Device3 { (::windows_core::Interface::vtable(self).CreateDeviceContext4)(::windows_core::Interface::as_raw(self), options, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ID2D1Device3, ::windows_core::IUnknown, ID2D1Resource, ID2D1Device, ID2D1Device1, ID2D1Device2); unsafe impl ::core::marker::Send for ID2D1Device3 {} unsafe impl ::core::marker::Sync for ID2D1Device3 {} -unsafe impl ::windows_core::Interface for ID2D1Device3 { - type Vtable = ID2D1Device3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1Device3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x852f2087_802c_4037_ab60_ff2e7ee6fc01); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1Device3_Vtbl { pub base__: ID2D1Device2_Vtbl, pub CreateDeviceContext4: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, options: D2D1_DEVICE_CONTEXT_OPTIONS, devicecontext3: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1Device4(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1Device4, ID2D1Device4_Vtbl, 0xd7bdb159_5683_4a46_bc9c_72dc720b858b); +::windows_core::imp::interface_hierarchy!(ID2D1Device4, ::windows_core::IUnknown, ID2D1Resource, ID2D1Device, ID2D1Device1, ID2D1Device2, ID2D1Device3); impl ID2D1Device4 { pub unsafe fn GetFactory(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -3159,15 +2942,8 @@ impl ID2D1Device4 { (::windows_core::Interface::vtable(self).GetMaximumColorGlyphCacheMemory)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(ID2D1Device4, ::windows_core::IUnknown, ID2D1Resource, ID2D1Device, ID2D1Device1, ID2D1Device2, ID2D1Device3); unsafe impl ::core::marker::Send for ID2D1Device4 {} unsafe impl ::core::marker::Sync for ID2D1Device4 {} -unsafe impl ::windows_core::Interface for ID2D1Device4 { - type Vtable = ID2D1Device4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1Device4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd7bdb159_5683_4a46_bc9c_72dc720b858b); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1Device4_Vtbl { @@ -3176,9 +2952,8 @@ pub struct ID2D1Device4_Vtbl { pub SetMaximumColorGlyphCacheMemory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, maximuminbytes: u64), pub GetMaximumColorGlyphCacheMemory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> u64, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1Device5(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1Device5, ID2D1Device5_Vtbl, 0xd55ba0a4_6405_4694_aef5_08ee1a4358b4); +::windows_core::imp::interface_hierarchy!(ID2D1Device5, ::windows_core::IUnknown, ID2D1Resource, ID2D1Device, ID2D1Device1, ID2D1Device2, ID2D1Device3, ID2D1Device4); impl ID2D1Device5 { pub unsafe fn GetFactory(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -3253,24 +3028,16 @@ impl ID2D1Device5 { (::windows_core::Interface::vtable(self).CreateDeviceContext6)(::windows_core::Interface::as_raw(self), options, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ID2D1Device5, ::windows_core::IUnknown, ID2D1Resource, ID2D1Device, ID2D1Device1, ID2D1Device2, ID2D1Device3, ID2D1Device4); unsafe impl ::core::marker::Send for ID2D1Device5 {} unsafe impl ::core::marker::Sync for ID2D1Device5 {} -unsafe impl ::windows_core::Interface for ID2D1Device5 { - type Vtable = ID2D1Device5_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1Device5 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd55ba0a4_6405_4694_aef5_08ee1a4358b4); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1Device5_Vtbl { pub base__: ID2D1Device4_Vtbl, pub CreateDeviceContext6: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, options: D2D1_DEVICE_CONTEXT_OPTIONS, devicecontext5: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1Device6(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1Device6, ID2D1Device6_Vtbl, 0x7bfef914_2d75_4bad_be87_e18ddb077b6d); +::windows_core::imp::interface_hierarchy!(ID2D1Device6, ::windows_core::IUnknown, ID2D1Resource, ID2D1Device, ID2D1Device1, ID2D1Device2, ID2D1Device3, ID2D1Device4, ID2D1Device5); impl ID2D1Device6 { pub unsafe fn GetFactory(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -3349,24 +3116,16 @@ impl ID2D1Device6 { (::windows_core::Interface::vtable(self).CreateDeviceContext7)(::windows_core::Interface::as_raw(self), options, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ID2D1Device6, ::windows_core::IUnknown, ID2D1Resource, ID2D1Device, ID2D1Device1, ID2D1Device2, ID2D1Device3, ID2D1Device4, ID2D1Device5); unsafe impl ::core::marker::Send for ID2D1Device6 {} unsafe impl ::core::marker::Sync for ID2D1Device6 {} -unsafe impl ::windows_core::Interface for ID2D1Device6 { - type Vtable = ID2D1Device6_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1Device6 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7bfef914_2d75_4bad_be87_e18ddb077b6d); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1Device6_Vtbl { pub base__: ID2D1Device5_Vtbl, pub CreateDeviceContext7: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, options: D2D1_DEVICE_CONTEXT_OPTIONS, devicecontext6: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1DeviceContext(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1DeviceContext, ID2D1DeviceContext_Vtbl, 0xe8f7fe7a_191c_466d_ad95_975678bda998); +::windows_core::imp::interface_hierarchy!(ID2D1DeviceContext, ::windows_core::IUnknown, ID2D1Resource, ID2D1RenderTarget); impl ID2D1DeviceContext { pub unsafe fn GetFactory(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -3926,15 +3685,8 @@ impl ID2D1DeviceContext { (::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::imp::interface_hierarchy!(ID2D1DeviceContext, ::windows_core::IUnknown, ID2D1Resource, ID2D1RenderTarget); unsafe impl ::core::marker::Send for ID2D1DeviceContext {} unsafe impl ::core::marker::Sync for ID2D1DeviceContext {} -unsafe impl ::windows_core::Interface for ID2D1DeviceContext { - type Vtable = ID2D1DeviceContext_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1DeviceContext { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe8f7fe7a_191c_466d_ad95_975678bda998); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1DeviceContext_Vtbl { @@ -4041,9 +3793,8 @@ pub struct ID2D1DeviceContext_Vtbl { #[cfg(not(feature = "Win32_Graphics_Direct2D_Common"))] FillOpacityMask2: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1DeviceContext1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1DeviceContext1, ID2D1DeviceContext1_Vtbl, 0xd37f57e4_6908_459f_a199_e72f24f79987); +::windows_core::imp::interface_hierarchy!(ID2D1DeviceContext1, ::windows_core::IUnknown, ID2D1Resource, ID2D1RenderTarget, ID2D1DeviceContext); impl ID2D1DeviceContext1 { pub unsafe fn GetFactory(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -4625,15 +4376,8 @@ impl ID2D1DeviceContext1 { (::windows_core::Interface::vtable(self).DrawGeometryRealization)(::windows_core::Interface::as_raw(self), geometryrealization.into_param().abi(), brush.into_param().abi()) } } -::windows_core::imp::interface_hierarchy!(ID2D1DeviceContext1, ::windows_core::IUnknown, ID2D1Resource, ID2D1RenderTarget, ID2D1DeviceContext); unsafe impl ::core::marker::Send for ID2D1DeviceContext1 {} unsafe impl ::core::marker::Sync for ID2D1DeviceContext1 {} -unsafe impl ::windows_core::Interface for ID2D1DeviceContext1 { - type Vtable = ID2D1DeviceContext1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1DeviceContext1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd37f57e4_6908_459f_a199_e72f24f79987); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1DeviceContext1_Vtbl { @@ -4642,9 +4386,8 @@ pub struct ID2D1DeviceContext1_Vtbl { pub CreateStrokedGeometryRealization: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, geometry: *mut ::core::ffi::c_void, flatteningtolerance: f32, strokewidth: f32, strokestyle: *mut ::core::ffi::c_void, geometryrealization: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub DrawGeometryRealization: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, geometryrealization: *mut ::core::ffi::c_void, brush: *mut ::core::ffi::c_void), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1DeviceContext2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1DeviceContext2, ID2D1DeviceContext2_Vtbl, 0x394ea6a3_0c34_4321_950b_6ca20f0be6c7); +::windows_core::imp::interface_hierarchy!(ID2D1DeviceContext2, ::windows_core::IUnknown, ID2D1Resource, ID2D1RenderTarget, ID2D1DeviceContext, ID2D1DeviceContext1); impl ID2D1DeviceContext2 { pub unsafe fn GetFactory(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -5299,15 +5042,8 @@ impl ID2D1DeviceContext2 { (::windows_core::Interface::vtable(self).CreateTransformedImageSource)(::windows_core::Interface::as_raw(self), imagesource.into_param().abi(), properties, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ID2D1DeviceContext2, ::windows_core::IUnknown, ID2D1Resource, ID2D1RenderTarget, ID2D1DeviceContext, ID2D1DeviceContext1); unsafe impl ::core::marker::Send for ID2D1DeviceContext2 {} unsafe impl ::core::marker::Sync for ID2D1DeviceContext2 {} -unsafe impl ::windows_core::Interface for ID2D1DeviceContext2 { - type Vtable = ID2D1DeviceContext2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1DeviceContext2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x394ea6a3_0c34_4321_950b_6ca20f0be6c7); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1DeviceContext2_Vtbl { @@ -5342,9 +5078,8 @@ pub struct ID2D1DeviceContext2_Vtbl { DrawGdiMetafile2: usize, pub CreateTransformedImageSource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, imagesource: *mut ::core::ffi::c_void, properties: *const D2D1_TRANSFORMED_IMAGE_SOURCE_PROPERTIES, transformedimagesource: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1DeviceContext3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1DeviceContext3, ID2D1DeviceContext3_Vtbl, 0x235a7496_8351_414c_bcd4_6672ab2d8e00); +::windows_core::imp::interface_hierarchy!(ID2D1DeviceContext3, ::windows_core::IUnknown, ID2D1Resource, ID2D1RenderTarget, ID2D1DeviceContext, ID2D1DeviceContext1, ID2D1DeviceContext2); impl ID2D1DeviceContext3 { pub unsafe fn GetFactory(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -6010,15 +5745,8 @@ impl ID2D1DeviceContext3 { (::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::imp::interface_hierarchy!(ID2D1DeviceContext3, ::windows_core::IUnknown, ID2D1Resource, ID2D1RenderTarget, ID2D1DeviceContext, ID2D1DeviceContext1, ID2D1DeviceContext2); unsafe impl ::core::marker::Send for ID2D1DeviceContext3 {} unsafe impl ::core::marker::Sync for ID2D1DeviceContext3 {} -unsafe impl ::windows_core::Interface for ID2D1DeviceContext3 { - type Vtable = ID2D1DeviceContext3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1DeviceContext3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x235a7496_8351_414c_bcd4_6672ab2d8e00); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1DeviceContext3_Vtbl { @@ -6026,9 +5754,8 @@ pub struct ID2D1DeviceContext3_Vtbl { pub CreateSpriteBatch: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, spritebatch: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub DrawSpriteBatch: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, spritebatch: *mut ::core::ffi::c_void, startindex: u32, spritecount: u32, bitmap: *mut ::core::ffi::c_void, interpolationmode: D2D1_BITMAP_INTERPOLATION_MODE, spriteoptions: D2D1_SPRITE_OPTIONS), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1DeviceContext4(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1DeviceContext4, ID2D1DeviceContext4_Vtbl, 0x8c427831_3d90_4476_b647_c4fae349e4db); +::windows_core::imp::interface_hierarchy!(ID2D1DeviceContext4, ::windows_core::IUnknown, ID2D1Resource, ID2D1RenderTarget, ID2D1DeviceContext, ID2D1DeviceContext1, ID2D1DeviceContext2, ID2D1DeviceContext3); impl ID2D1DeviceContext4 { pub unsafe fn GetFactory(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -6752,15 +6479,8 @@ impl ID2D1DeviceContext4 { (::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::imp::interface_hierarchy!(ID2D1DeviceContext4, ::windows_core::IUnknown, ID2D1Resource, ID2D1RenderTarget, ID2D1DeviceContext, ID2D1DeviceContext1, ID2D1DeviceContext2, ID2D1DeviceContext3); unsafe impl ::core::marker::Send for ID2D1DeviceContext4 {} unsafe impl ::core::marker::Sync for ID2D1DeviceContext4 {} -unsafe impl ::windows_core::Interface for ID2D1DeviceContext4 { - type Vtable = ID2D1DeviceContext4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1DeviceContext4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8c427831_3d90_4476_b647_c4fae349e4db); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1DeviceContext4_Vtbl { @@ -6791,9 +6511,8 @@ pub struct ID2D1DeviceContext4_Vtbl { #[cfg(not(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_DirectWrite")))] GetSvgGlyphImage: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1DeviceContext5(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1DeviceContext5, ID2D1DeviceContext5_Vtbl, 0x7836d248_68cc_4df6_b9e8_de991bf62eb7); +::windows_core::imp::interface_hierarchy!(ID2D1DeviceContext5, ::windows_core::IUnknown, ID2D1Resource, ID2D1RenderTarget, ID2D1DeviceContext, ID2D1DeviceContext1, ID2D1DeviceContext2, ID2D1DeviceContext3, ID2D1DeviceContext4); impl ID2D1DeviceContext5 { pub unsafe fn GetFactory(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -7544,15 +7263,8 @@ impl ID2D1DeviceContext5 { (::windows_core::Interface::vtable(self).CreateColorContextFromSimpleColorProfile)(::windows_core::Interface::as_raw(self), simpleprofile, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ID2D1DeviceContext5, ::windows_core::IUnknown, ID2D1Resource, ID2D1RenderTarget, ID2D1DeviceContext, ID2D1DeviceContext1, ID2D1DeviceContext2, ID2D1DeviceContext3, ID2D1DeviceContext4); unsafe impl ::core::marker::Send for ID2D1DeviceContext5 {} unsafe impl ::core::marker::Sync for ID2D1DeviceContext5 {} -unsafe impl ::windows_core::Interface for ID2D1DeviceContext5 { - type Vtable = ID2D1DeviceContext5_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1DeviceContext5 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7836d248_68cc_4df6_b9e8_de991bf62eb7); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1DeviceContext5_Vtbl { @@ -7571,9 +7283,8 @@ pub struct ID2D1DeviceContext5_Vtbl { #[cfg(not(feature = "Win32_Graphics_Direct2D_Common"))] CreateColorContextFromSimpleColorProfile: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1DeviceContext6(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1DeviceContext6, ID2D1DeviceContext6_Vtbl, 0x985f7e37_4ed0_4a19_98a3_15b0edfde306); +::windows_core::imp::interface_hierarchy!(ID2D1DeviceContext6, ::windows_core::IUnknown, ID2D1Resource, ID2D1RenderTarget, ID2D1DeviceContext, ID2D1DeviceContext1, ID2D1DeviceContext2, ID2D1DeviceContext3, ID2D1DeviceContext4, ID2D1DeviceContext5); impl ID2D1DeviceContext6 { pub unsafe fn GetFactory(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -8332,15 +8043,8 @@ impl ID2D1DeviceContext6 { (::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::imp::interface_hierarchy!(ID2D1DeviceContext6, ::windows_core::IUnknown, ID2D1Resource, ID2D1RenderTarget, ID2D1DeviceContext, ID2D1DeviceContext1, ID2D1DeviceContext2, ID2D1DeviceContext3, ID2D1DeviceContext4, ID2D1DeviceContext5); unsafe impl ::core::marker::Send for ID2D1DeviceContext6 {} unsafe impl ::core::marker::Sync for ID2D1DeviceContext6 {} -unsafe impl ::windows_core::Interface for ID2D1DeviceContext6 { - type Vtable = ID2D1DeviceContext6_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1DeviceContext6 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x985f7e37_4ed0_4a19_98a3_15b0edfde306); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1DeviceContext6_Vtbl { @@ -8350,9 +8054,8 @@ pub struct ID2D1DeviceContext6_Vtbl { #[cfg(not(feature = "Win32_Graphics_Direct2D_Common"))] BlendImage: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1DrawInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1DrawInfo, ID2D1DrawInfo_Vtbl, 0x693ce632_7f2f_45de_93fe_18d88b37aa21); +::windows_core::imp::interface_hierarchy!(ID2D1DrawInfo, ::windows_core::IUnknown, ID2D1RenderInfo); impl ID2D1DrawInfo { pub unsafe fn SetInputDescription(&self, inputindex: u32, inputdescription: D2D1_INPUT_DESCRIPTION) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.SetInputDescription)(::windows_core::Interface::as_raw(self), inputindex, ::core::mem::transmute(inputdescription)).ok() @@ -8391,15 +8094,8 @@ impl ID2D1DrawInfo { (::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::imp::interface_hierarchy!(ID2D1DrawInfo, ::windows_core::IUnknown, ID2D1RenderInfo); unsafe impl ::core::marker::Send for ID2D1DrawInfo {} unsafe impl ::core::marker::Sync for ID2D1DrawInfo {} -unsafe impl ::windows_core::Interface for ID2D1DrawInfo { - type Vtable = ID2D1DrawInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1DrawInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x693ce632_7f2f_45de_93fe_18d88b37aa21); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1DrawInfo_Vtbl { @@ -8410,9 +8106,8 @@ pub struct ID2D1DrawInfo_Vtbl { pub SetPixelShader: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, shaderid: *const ::windows_core::GUID, pixeloptions: D2D1_PIXEL_OPTIONS) -> ::windows_core::HRESULT, pub SetVertexProcessing: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, vertexbuffer: *mut ::core::ffi::c_void, vertexoptions: D2D1_VERTEX_OPTIONS, blenddescription: *const D2D1_BLEND_DESCRIPTION, vertexrange: *const D2D1_VERTEX_RANGE, vertexshader: *const ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1DrawTransform(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1DrawTransform, ID2D1DrawTransform_Vtbl, 0x36bfdcb6_9739_435d_a30d_a653beff6a6f); +::windows_core::imp::interface_hierarchy!(ID2D1DrawTransform, ::windows_core::IUnknown, ID2D1TransformNode, ID2D1Transform); impl ID2D1DrawTransform { pub unsafe fn GetInputCount(&self) -> u32 { (::windows_core::Interface::vtable(self).base__.base__.GetInputCount)(::windows_core::Interface::as_raw(self)) @@ -8434,24 +8129,16 @@ impl ID2D1DrawTransform { (::windows_core::Interface::vtable(self).SetDrawInfo)(::windows_core::Interface::as_raw(self), drawinfo.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ID2D1DrawTransform, ::windows_core::IUnknown, ID2D1TransformNode, ID2D1Transform); unsafe impl ::core::marker::Send for ID2D1DrawTransform {} unsafe impl ::core::marker::Sync for ID2D1DrawTransform {} -unsafe impl ::windows_core::Interface for ID2D1DrawTransform { - type Vtable = ID2D1DrawTransform_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1DrawTransform { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x36bfdcb6_9739_435d_a30d_a653beff6a6f); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1DrawTransform_Vtbl { pub base__: ID2D1Transform_Vtbl, pub SetDrawInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, drawinfo: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1DrawingStateBlock(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1DrawingStateBlock, ID2D1DrawingStateBlock_Vtbl, 0x28506e39_ebf6_46a1_bb47_fd85565ab957); +::windows_core::imp::interface_hierarchy!(ID2D1DrawingStateBlock, ::windows_core::IUnknown, ID2D1Resource); impl ID2D1DrawingStateBlock { pub unsafe fn GetFactory(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -8484,15 +8171,8 @@ impl ID2D1DrawingStateBlock { ::windows_core::from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ID2D1DrawingStateBlock, ::windows_core::IUnknown, ID2D1Resource); unsafe impl ::core::marker::Send for ID2D1DrawingStateBlock {} unsafe impl ::core::marker::Sync for ID2D1DrawingStateBlock {} -unsafe impl ::windows_core::Interface for ID2D1DrawingStateBlock { - type Vtable = ID2D1DrawingStateBlock_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1DrawingStateBlock { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x28506e39_ebf6_46a1_bb47_fd85565ab957); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1DrawingStateBlock_Vtbl { @@ -8514,9 +8194,8 @@ pub struct ID2D1DrawingStateBlock_Vtbl { #[cfg(not(feature = "Win32_Graphics_DirectWrite"))] GetTextRenderingParams: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1DrawingStateBlock1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1DrawingStateBlock1, ID2D1DrawingStateBlock1_Vtbl, 0x689f1f85_c72e_4e33_8f19_85754efd5ace); +::windows_core::imp::interface_hierarchy!(ID2D1DrawingStateBlock1, ::windows_core::IUnknown, ID2D1Resource, ID2D1DrawingStateBlock); impl ID2D1DrawingStateBlock1 { pub unsafe fn GetFactory(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -8559,15 +8238,8 @@ impl ID2D1DrawingStateBlock1 { (::windows_core::Interface::vtable(self).SetDescription2)(::windows_core::Interface::as_raw(self), statedescription) } } -::windows_core::imp::interface_hierarchy!(ID2D1DrawingStateBlock1, ::windows_core::IUnknown, ID2D1Resource, ID2D1DrawingStateBlock); unsafe impl ::core::marker::Send for ID2D1DrawingStateBlock1 {} unsafe impl ::core::marker::Sync for ID2D1DrawingStateBlock1 {} -unsafe impl ::windows_core::Interface for ID2D1DrawingStateBlock1 { - type Vtable = ID2D1DrawingStateBlock1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1DrawingStateBlock1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x689f1f85_c72e_4e33_8f19_85754efd5ace); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1DrawingStateBlock1_Vtbl { @@ -8581,9 +8253,8 @@ pub struct ID2D1DrawingStateBlock1_Vtbl { #[cfg(not(feature = "Foundation_Numerics"))] SetDescription2: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1Effect(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1Effect, ID2D1Effect_Vtbl, 0x28211a43_7d89_476f_8181_2d6159b220ad); +::windows_core::imp::interface_hierarchy!(ID2D1Effect, ::windows_core::IUnknown, ID2D1Properties); impl ID2D1Effect { pub unsafe fn GetPropertyCount(&self) -> u32 { (::windows_core::Interface::vtable(self).base__.GetPropertyCount)(::windows_core::Interface::as_raw(self)) @@ -8652,15 +8323,8 @@ impl ID2D1Effect { ::windows_core::from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ID2D1Effect, ::windows_core::IUnknown, ID2D1Properties); unsafe impl ::core::marker::Send for ID2D1Effect {} unsafe impl ::core::marker::Sync for ID2D1Effect {} -unsafe impl ::windows_core::Interface for ID2D1Effect { - type Vtable = ID2D1Effect_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1Effect { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x28211a43_7d89_476f_8181_2d6159b220ad); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1Effect_Vtbl { @@ -8671,9 +8335,8 @@ pub struct ID2D1Effect_Vtbl { pub GetInputCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> u32, pub GetOutput: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, outputimage: *mut *mut ::core::ffi::c_void), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1EffectContext(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1EffectContext, ID2D1EffectContext_Vtbl, 0x3d9f916b_27dc_4ad7_b4f1_64945340f563); +::windows_core::imp::interface_hierarchy!(ID2D1EffectContext, ::windows_core::IUnknown); impl ID2D1EffectContext { pub unsafe fn GetDpi(&self, dpix: *mut f32, dpiy: *mut f32) { (::windows_core::Interface::vtable(self).GetDpi)(::windows_core::Interface::as_raw(self), dpix, dpiy) @@ -8768,15 +8431,8 @@ impl ID2D1EffectContext { (::windows_core::Interface::vtable(self).IsBufferPrecisionSupported)(::windows_core::Interface::as_raw(self), bufferprecision) } } -::windows_core::imp::interface_hierarchy!(ID2D1EffectContext, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID2D1EffectContext {} unsafe impl ::core::marker::Sync for ID2D1EffectContext {} -unsafe impl ::windows_core::Interface for ID2D1EffectContext { - type Vtable = ID2D1EffectContext_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1EffectContext { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3d9f916b_27dc_4ad7_b4f1_64945340f563); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1EffectContext_Vtbl { @@ -8812,9 +8468,8 @@ pub struct ID2D1EffectContext_Vtbl { pub CheckFeatureSupport: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, feature: D2D1_FEATURE, featuresupportdata: *mut ::core::ffi::c_void, featuresupportdatasize: u32) -> ::windows_core::HRESULT, pub IsBufferPrecisionSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bufferprecision: D2D1_BUFFER_PRECISION) -> super::super::Foundation::BOOL, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1EffectContext1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1EffectContext1, ID2D1EffectContext1_Vtbl, 0x84ab595a_fc81_4546_bacd_e8ef4d8abe7a); +::windows_core::imp::interface_hierarchy!(ID2D1EffectContext1, ::windows_core::IUnknown, ID2D1EffectContext); impl ID2D1EffectContext1 { pub unsafe fn GetDpi(&self, dpix: *mut f32, dpiy: *mut f32) { (::windows_core::Interface::vtable(self).base__.GetDpi)(::windows_core::Interface::as_raw(self), dpix, dpiy) @@ -8913,24 +8568,16 @@ impl ID2D1EffectContext1 { (::windows_core::Interface::vtable(self).CreateLookupTable3D)(::windows_core::Interface::as_raw(self), precision, ::core::mem::transmute(extents.as_ptr()), ::core::mem::transmute(data.as_ptr()), data.len().try_into().unwrap(), ::core::mem::transmute(strides.as_ptr()), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ID2D1EffectContext1, ::windows_core::IUnknown, ID2D1EffectContext); unsafe impl ::core::marker::Send for ID2D1EffectContext1 {} unsafe impl ::core::marker::Sync for ID2D1EffectContext1 {} -unsafe impl ::windows_core::Interface for ID2D1EffectContext1 { - type Vtable = ID2D1EffectContext1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1EffectContext1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x84ab595a_fc81_4546_bacd_e8ef4d8abe7a); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1EffectContext1_Vtbl { pub base__: ID2D1EffectContext_Vtbl, pub CreateLookupTable3D: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, precision: D2D1_BUFFER_PRECISION, extents: *const u32, data: *const u8, datacount: u32, strides: *const u32, lookuptable: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1EffectContext2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1EffectContext2, ID2D1EffectContext2_Vtbl, 0x577ad2a0_9fc7_4dda_8b18_dab810140052); +::windows_core::imp::interface_hierarchy!(ID2D1EffectContext2, ::windows_core::IUnknown, ID2D1EffectContext, ID2D1EffectContext1); impl ID2D1EffectContext2 { pub unsafe fn GetDpi(&self, dpix: *mut f32, dpiy: *mut f32) { (::windows_core::Interface::vtable(self).base__.base__.GetDpi)(::windows_core::Interface::as_raw(self), dpix, dpiy) @@ -9041,15 +8688,8 @@ impl ID2D1EffectContext2 { (::windows_core::Interface::vtable(self).CreateColorContextFromSimpleColorProfile)(::windows_core::Interface::as_raw(self), simpleprofile, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ID2D1EffectContext2, ::windows_core::IUnknown, ID2D1EffectContext, ID2D1EffectContext1); unsafe impl ::core::marker::Send for ID2D1EffectContext2 {} unsafe impl ::core::marker::Sync for ID2D1EffectContext2 {} -unsafe impl ::windows_core::Interface for ID2D1EffectContext2 { - type Vtable = ID2D1EffectContext2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1EffectContext2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x577ad2a0_9fc7_4dda_8b18_dab810140052); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1EffectContext2_Vtbl { @@ -9063,9 +8703,8 @@ pub struct ID2D1EffectContext2_Vtbl { #[cfg(not(feature = "Win32_Graphics_Direct2D_Common"))] CreateColorContextFromSimpleColorProfile: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1EffectImpl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1EffectImpl, ID2D1EffectImpl_Vtbl, 0xa248fd3f_3e6c_4e63_9f03_7f68ecc91db9); +::windows_core::imp::interface_hierarchy!(ID2D1EffectImpl, ::windows_core::IUnknown); impl ID2D1EffectImpl { pub unsafe fn Initialize(&self, effectcontext: P0, transformgraph: P1) -> ::windows_core::Result<()> where @@ -9084,15 +8723,8 @@ impl ID2D1EffectImpl { (::windows_core::Interface::vtable(self).SetGraph)(::windows_core::Interface::as_raw(self), transformgraph.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ID2D1EffectImpl, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID2D1EffectImpl {} unsafe impl ::core::marker::Sync for ID2D1EffectImpl {} -unsafe impl ::windows_core::Interface for ID2D1EffectImpl { - type Vtable = ID2D1EffectImpl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1EffectImpl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa248fd3f_3e6c_4e63_9f03_7f68ecc91db9); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1EffectImpl_Vtbl { @@ -9101,9 +8733,8 @@ pub struct ID2D1EffectImpl_Vtbl { pub PrepareForRender: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, changetype: D2D1_CHANGE_TYPE) -> ::windows_core::HRESULT, pub SetGraph: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, transformgraph: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1EllipseGeometry(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1EllipseGeometry, ID2D1EllipseGeometry_Vtbl, 0x2cd906a4_12e2_11dc_9fed_001143a055f9); +::windows_core::imp::interface_hierarchy!(ID2D1EllipseGeometry, ::windows_core::IUnknown, ID2D1Resource, ID2D1Geometry); impl ID2D1EllipseGeometry { pub unsafe fn GetFactory(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -9216,15 +8847,8 @@ impl ID2D1EllipseGeometry { ::std::mem::transmute(result__) } } -::windows_core::imp::interface_hierarchy!(ID2D1EllipseGeometry, ::windows_core::IUnknown, ID2D1Resource, ID2D1Geometry); unsafe impl ::core::marker::Send for ID2D1EllipseGeometry {} unsafe impl ::core::marker::Sync for ID2D1EllipseGeometry {} -unsafe impl ::windows_core::Interface for ID2D1EllipseGeometry { - type Vtable = ID2D1EllipseGeometry_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1EllipseGeometry { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2cd906a4_12e2_11dc_9fed_001143a055f9); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1EllipseGeometry_Vtbl { @@ -9234,9 +8858,8 @@ pub struct ID2D1EllipseGeometry_Vtbl { #[cfg(not(feature = "Win32_Graphics_Direct2D_Common"))] GetEllipse: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1Factory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1Factory, ID2D1Factory_Vtbl, 0x06152247_6f50_465a_9245_118bfd3b6007); +::windows_core::imp::interface_hierarchy!(ID2D1Factory, ::windows_core::IUnknown); impl ID2D1Factory { pub unsafe fn ReloadSystemMetrics(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).ReloadSystemMetrics)(::windows_core::Interface::as_raw(self)).ok() @@ -9325,15 +8948,8 @@ impl ID2D1Factory { (::windows_core::Interface::vtable(self).CreateDCRenderTarget)(::windows_core::Interface::as_raw(self), rendertargetproperties, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ID2D1Factory, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID2D1Factory {} unsafe impl ::core::marker::Sync for ID2D1Factory {} -unsafe impl ::windows_core::Interface for ID2D1Factory { - type Vtable = ID2D1Factory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1Factory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x06152247_6f50_465a_9245_118bfd3b6007); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1Factory_Vtbl { @@ -9383,9 +8999,8 @@ pub struct ID2D1Factory_Vtbl { #[cfg(not(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_Dxgi_Common")))] CreateDCRenderTarget: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1Factory1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1Factory1, ID2D1Factory1_Vtbl, 0xbb12d362_daee_4b9a_aa1d_14ba401cfa1f); +::windows_core::imp::interface_hierarchy!(ID2D1Factory1, ::windows_core::IUnknown, ID2D1Factory); impl ID2D1Factory1 { pub unsafe fn ReloadSystemMetrics(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.ReloadSystemMetrics)(::windows_core::Interface::as_raw(self)).ok() @@ -9533,15 +9148,8 @@ impl ID2D1Factory1 { (::windows_core::Interface::vtable(self).GetEffectProperties)(::windows_core::Interface::as_raw(self), effectid, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ID2D1Factory1, ::windows_core::IUnknown, ID2D1Factory); unsafe impl ::core::marker::Send for ID2D1Factory1 {} unsafe impl ::core::marker::Sync for ID2D1Factory1 {} -unsafe impl ::windows_core::Interface for ID2D1Factory1 { - type Vtable = ID2D1Factory1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1Factory1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbb12d362_daee_4b9a_aa1d_14ba401cfa1f); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1Factory1_Vtbl { @@ -9569,9 +9177,8 @@ pub struct ID2D1Factory1_Vtbl { pub GetRegisteredEffects: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, effects: *mut ::windows_core::GUID, effectscount: u32, effectsreturned: *mut u32, effectsregistered: *mut u32) -> ::windows_core::HRESULT, pub GetEffectProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, effectid: *const ::windows_core::GUID, properties: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1Factory2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1Factory2, ID2D1Factory2_Vtbl, 0x94f81a73_9212_4376_9c58_b16a3a0d3992); +::windows_core::imp::interface_hierarchy!(ID2D1Factory2, ::windows_core::IUnknown, ID2D1Factory, ID2D1Factory1); impl ID2D1Factory2 { pub unsafe fn ReloadSystemMetrics(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.ReloadSystemMetrics)(::windows_core::Interface::as_raw(self)).ok() @@ -9728,15 +9335,8 @@ impl ID2D1Factory2 { (::windows_core::Interface::vtable(self).CreateDevice2)(::windows_core::Interface::as_raw(self), dxgidevice.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ID2D1Factory2, ::windows_core::IUnknown, ID2D1Factory, ID2D1Factory1); unsafe impl ::core::marker::Send for ID2D1Factory2 {} unsafe impl ::core::marker::Sync for ID2D1Factory2 {} -unsafe impl ::windows_core::Interface for ID2D1Factory2 { - type Vtable = ID2D1Factory2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1Factory2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x94f81a73_9212_4376_9c58_b16a3a0d3992); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1Factory2_Vtbl { @@ -9746,9 +9346,8 @@ pub struct ID2D1Factory2_Vtbl { #[cfg(not(feature = "Win32_Graphics_Dxgi"))] CreateDevice2: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1Factory3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1Factory3, ID2D1Factory3_Vtbl, 0x0869759f_4f00_413f_b03e_2bda45404d0f); +::windows_core::imp::interface_hierarchy!(ID2D1Factory3, ::windows_core::IUnknown, ID2D1Factory, ID2D1Factory1, ID2D1Factory2); impl ID2D1Factory3 { pub unsafe fn ReloadSystemMetrics(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.ReloadSystemMetrics)(::windows_core::Interface::as_raw(self)).ok() @@ -9914,15 +9513,8 @@ impl ID2D1Factory3 { (::windows_core::Interface::vtable(self).CreateDevice3)(::windows_core::Interface::as_raw(self), dxgidevice.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ID2D1Factory3, ::windows_core::IUnknown, ID2D1Factory, ID2D1Factory1, ID2D1Factory2); unsafe impl ::core::marker::Send for ID2D1Factory3 {} unsafe impl ::core::marker::Sync for ID2D1Factory3 {} -unsafe impl ::windows_core::Interface for ID2D1Factory3 { - type Vtable = ID2D1Factory3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1Factory3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0869759f_4f00_413f_b03e_2bda45404d0f); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1Factory3_Vtbl { @@ -9932,9 +9524,8 @@ pub struct ID2D1Factory3_Vtbl { #[cfg(not(feature = "Win32_Graphics_Dxgi"))] CreateDevice3: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1Factory4(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1Factory4, ID2D1Factory4_Vtbl, 0xbd4ec2d2_0662_4bee_ba8e_6f29f032e096); +::windows_core::imp::interface_hierarchy!(ID2D1Factory4, ::windows_core::IUnknown, ID2D1Factory, ID2D1Factory1, ID2D1Factory2, ID2D1Factory3); impl ID2D1Factory4 { pub unsafe fn ReloadSystemMetrics(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.ReloadSystemMetrics)(::windows_core::Interface::as_raw(self)).ok() @@ -10109,15 +9700,8 @@ impl ID2D1Factory4 { (::windows_core::Interface::vtable(self).CreateDevice4)(::windows_core::Interface::as_raw(self), dxgidevice.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ID2D1Factory4, ::windows_core::IUnknown, ID2D1Factory, ID2D1Factory1, ID2D1Factory2, ID2D1Factory3); unsafe impl ::core::marker::Send for ID2D1Factory4 {} unsafe impl ::core::marker::Sync for ID2D1Factory4 {} -unsafe impl ::windows_core::Interface for ID2D1Factory4 { - type Vtable = ID2D1Factory4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1Factory4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbd4ec2d2_0662_4bee_ba8e_6f29f032e096); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1Factory4_Vtbl { @@ -10127,9 +9711,8 @@ pub struct ID2D1Factory4_Vtbl { #[cfg(not(feature = "Win32_Graphics_Dxgi"))] CreateDevice4: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1Factory5(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1Factory5, ID2D1Factory5_Vtbl, 0xc4349994_838e_4b0f_8cab_44997d9eeacc); +::windows_core::imp::interface_hierarchy!(ID2D1Factory5, ::windows_core::IUnknown, ID2D1Factory, ID2D1Factory1, ID2D1Factory2, ID2D1Factory3, ID2D1Factory4); impl ID2D1Factory5 { pub unsafe fn ReloadSystemMetrics(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.ReloadSystemMetrics)(::windows_core::Interface::as_raw(self)).ok() @@ -10313,15 +9896,8 @@ impl ID2D1Factory5 { (::windows_core::Interface::vtable(self).CreateDevice5)(::windows_core::Interface::as_raw(self), dxgidevice.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ID2D1Factory5, ::windows_core::IUnknown, ID2D1Factory, ID2D1Factory1, ID2D1Factory2, ID2D1Factory3, ID2D1Factory4); unsafe impl ::core::marker::Send for ID2D1Factory5 {} unsafe impl ::core::marker::Sync for ID2D1Factory5 {} -unsafe impl ::windows_core::Interface for ID2D1Factory5 { - type Vtable = ID2D1Factory5_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1Factory5 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc4349994_838e_4b0f_8cab_44997d9eeacc); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1Factory5_Vtbl { @@ -10331,9 +9907,8 @@ pub struct ID2D1Factory5_Vtbl { #[cfg(not(feature = "Win32_Graphics_Dxgi"))] CreateDevice5: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1Factory6(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1Factory6, ID2D1Factory6_Vtbl, 0xf9976f46_f642_44c1_97ca_da32ea2a2635); +::windows_core::imp::interface_hierarchy!(ID2D1Factory6, ::windows_core::IUnknown, ID2D1Factory, ID2D1Factory1, ID2D1Factory2, ID2D1Factory3, ID2D1Factory4, ID2D1Factory5); impl ID2D1Factory6 { pub unsafe fn ReloadSystemMetrics(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.ReloadSystemMetrics)(::windows_core::Interface::as_raw(self)).ok() @@ -10526,15 +10101,8 @@ impl ID2D1Factory6 { (::windows_core::Interface::vtable(self).CreateDevice6)(::windows_core::Interface::as_raw(self), dxgidevice.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ID2D1Factory6, ::windows_core::IUnknown, ID2D1Factory, ID2D1Factory1, ID2D1Factory2, ID2D1Factory3, ID2D1Factory4, ID2D1Factory5); unsafe impl ::core::marker::Send for ID2D1Factory6 {} unsafe impl ::core::marker::Sync for ID2D1Factory6 {} -unsafe impl ::windows_core::Interface for ID2D1Factory6 { - type Vtable = ID2D1Factory6_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1Factory6 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf9976f46_f642_44c1_97ca_da32ea2a2635); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1Factory6_Vtbl { @@ -10544,9 +10112,8 @@ pub struct ID2D1Factory6_Vtbl { #[cfg(not(feature = "Win32_Graphics_Dxgi"))] CreateDevice6: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1Factory7(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1Factory7, ID2D1Factory7_Vtbl, 0xbdc2bdd3_b96c_4de6_bdf7_99d4745454de); +::windows_core::imp::interface_hierarchy!(ID2D1Factory7, ::windows_core::IUnknown, ID2D1Factory, ID2D1Factory1, ID2D1Factory2, ID2D1Factory3, ID2D1Factory4, ID2D1Factory5, ID2D1Factory6); impl ID2D1Factory7 { pub unsafe fn ReloadSystemMetrics(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.ReloadSystemMetrics)(::windows_core::Interface::as_raw(self)).ok() @@ -10748,15 +10315,8 @@ impl ID2D1Factory7 { (::windows_core::Interface::vtable(self).CreateDevice7)(::windows_core::Interface::as_raw(self), dxgidevice.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ID2D1Factory7, ::windows_core::IUnknown, ID2D1Factory, ID2D1Factory1, ID2D1Factory2, ID2D1Factory3, ID2D1Factory4, ID2D1Factory5, ID2D1Factory6); unsafe impl ::core::marker::Send for ID2D1Factory7 {} unsafe impl ::core::marker::Sync for ID2D1Factory7 {} -unsafe impl ::windows_core::Interface for ID2D1Factory7 { - type Vtable = ID2D1Factory7_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1Factory7 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbdc2bdd3_b96c_4de6_bdf7_99d4745454de); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1Factory7_Vtbl { @@ -10766,9 +10326,8 @@ pub struct ID2D1Factory7_Vtbl { #[cfg(not(feature = "Win32_Graphics_Dxgi"))] CreateDevice7: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1GdiInteropRenderTarget(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1GdiInteropRenderTarget, ID2D1GdiInteropRenderTarget_Vtbl, 0xe0db51c3_6f77_4bae_b3d5_e47509b35838); +::windows_core::imp::interface_hierarchy!(ID2D1GdiInteropRenderTarget, ::windows_core::IUnknown); impl ID2D1GdiInteropRenderTarget { #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] #[cfg(feature = "Win32_Graphics_Gdi")] @@ -10780,15 +10339,8 @@ impl ID2D1GdiInteropRenderTarget { (::windows_core::Interface::vtable(self).ReleaseDC)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(update.unwrap_or(::std::ptr::null()))).ok() } } -::windows_core::imp::interface_hierarchy!(ID2D1GdiInteropRenderTarget, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID2D1GdiInteropRenderTarget {} unsafe impl ::core::marker::Sync for ID2D1GdiInteropRenderTarget {} -unsafe impl ::windows_core::Interface for ID2D1GdiInteropRenderTarget { - type Vtable = ID2D1GdiInteropRenderTarget_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1GdiInteropRenderTarget { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe0db51c3_6f77_4bae_b3d5_e47509b35838); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1GdiInteropRenderTarget_Vtbl { @@ -10799,9 +10351,8 @@ pub struct ID2D1GdiInteropRenderTarget_Vtbl { GetDC: usize, pub ReleaseDC: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, update: *const super::super::Foundation::RECT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1GdiMetafile(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1GdiMetafile, ID2D1GdiMetafile_Vtbl, 0x2f543dc3_cfc1_4211_864f_cfd91c6f3395); +::windows_core::imp::interface_hierarchy!(ID2D1GdiMetafile, ::windows_core::IUnknown, ID2D1Resource); impl ID2D1GdiMetafile { pub unsafe fn GetFactory(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -10821,15 +10372,8 @@ impl ID2D1GdiMetafile { (::windows_core::Interface::vtable(self).GetBounds)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ID2D1GdiMetafile, ::windows_core::IUnknown, ID2D1Resource); unsafe impl ::core::marker::Send for ID2D1GdiMetafile {} unsafe impl ::core::marker::Sync for ID2D1GdiMetafile {} -unsafe impl ::windows_core::Interface for ID2D1GdiMetafile { - type Vtable = ID2D1GdiMetafile_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1GdiMetafile { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2f543dc3_cfc1_4211_864f_cfd91c6f3395); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1GdiMetafile_Vtbl { @@ -10840,9 +10384,8 @@ pub struct ID2D1GdiMetafile_Vtbl { #[cfg(not(feature = "Win32_Graphics_Direct2D_Common"))] GetBounds: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1GdiMetafile1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1GdiMetafile1, ID2D1GdiMetafile1_Vtbl, 0x2e69f9e8_dd3f_4bf9_95ba_c04f49d788df); +::windows_core::imp::interface_hierarchy!(ID2D1GdiMetafile1, ::windows_core::IUnknown, ID2D1Resource, ID2D1GdiMetafile); impl ID2D1GdiMetafile1 { pub unsafe fn GetFactory(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -10871,15 +10414,8 @@ impl ID2D1GdiMetafile1 { (::windows_core::Interface::vtable(self).GetSourceBounds)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ID2D1GdiMetafile1, ::windows_core::IUnknown, ID2D1Resource, ID2D1GdiMetafile); unsafe impl ::core::marker::Send for ID2D1GdiMetafile1 {} unsafe impl ::core::marker::Sync for ID2D1GdiMetafile1 {} -unsafe impl ::windows_core::Interface for ID2D1GdiMetafile1 { - type Vtable = ID2D1GdiMetafile1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1GdiMetafile1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2e69f9e8_dd3f_4bf9_95ba_c04f49d788df); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1GdiMetafile1_Vtbl { @@ -10890,32 +10426,23 @@ pub struct ID2D1GdiMetafile1_Vtbl { #[cfg(not(feature = "Win32_Graphics_Direct2D_Common"))] GetSourceBounds: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1GdiMetafileSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1GdiMetafileSink, ID2D1GdiMetafileSink_Vtbl, 0x82237326_8111_4f7c_bcf4_b5c1175564fe); +::windows_core::imp::interface_hierarchy!(ID2D1GdiMetafileSink, ::windows_core::IUnknown); impl ID2D1GdiMetafileSink { pub unsafe fn ProcessRecord(&self, recordtype: u32, recorddata: ::core::option::Option<*const ::core::ffi::c_void>, recorddatasize: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).ProcessRecord)(::windows_core::Interface::as_raw(self), recordtype, ::core::mem::transmute(recorddata.unwrap_or(::std::ptr::null())), recorddatasize).ok() } } -::windows_core::imp::interface_hierarchy!(ID2D1GdiMetafileSink, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID2D1GdiMetafileSink {} unsafe impl ::core::marker::Sync for ID2D1GdiMetafileSink {} -unsafe impl ::windows_core::Interface for ID2D1GdiMetafileSink { - type Vtable = ID2D1GdiMetafileSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1GdiMetafileSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x82237326_8111_4f7c_bcf4_b5c1175564fe); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1GdiMetafileSink_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub ProcessRecord: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, recordtype: u32, recorddata: *const ::core::ffi::c_void, recorddatasize: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1GdiMetafileSink1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1GdiMetafileSink1, ID2D1GdiMetafileSink1_Vtbl, 0xfd0ecb6b_91e6_411e_8655_395e760f91b4); +::windows_core::imp::interface_hierarchy!(ID2D1GdiMetafileSink1, ::windows_core::IUnknown, ID2D1GdiMetafileSink); impl ID2D1GdiMetafileSink1 { pub unsafe fn ProcessRecord(&self, recordtype: u32, recorddata: ::core::option::Option<*const ::core::ffi::c_void>, recorddatasize: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.ProcessRecord)(::windows_core::Interface::as_raw(self), recordtype, ::core::mem::transmute(recorddata.unwrap_or(::std::ptr::null())), recorddatasize).ok() @@ -10924,24 +10451,16 @@ impl ID2D1GdiMetafileSink1 { (::windows_core::Interface::vtable(self).ProcessRecord2)(::windows_core::Interface::as_raw(self), recordtype, ::core::mem::transmute(recorddata.unwrap_or(::std::ptr::null())), recorddatasize, flags).ok() } } -::windows_core::imp::interface_hierarchy!(ID2D1GdiMetafileSink1, ::windows_core::IUnknown, ID2D1GdiMetafileSink); unsafe impl ::core::marker::Send for ID2D1GdiMetafileSink1 {} unsafe impl ::core::marker::Sync for ID2D1GdiMetafileSink1 {} -unsafe impl ::windows_core::Interface for ID2D1GdiMetafileSink1 { - type Vtable = ID2D1GdiMetafileSink1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1GdiMetafileSink1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfd0ecb6b_91e6_411e_8655_395e760f91b4); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1GdiMetafileSink1_Vtbl { pub base__: ID2D1GdiMetafileSink_Vtbl, pub ProcessRecord2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, recordtype: u32, recorddata: *const ::core::ffi::c_void, recorddatasize: u32, flags: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1Geometry(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1Geometry, ID2D1Geometry_Vtbl, 0x2cd906a1_12e2_11dc_9fed_001143a055f9); +::windows_core::imp::interface_hierarchy!(ID2D1Geometry, ::windows_core::IUnknown, ID2D1Resource); impl ID2D1Geometry { pub unsafe fn GetFactory(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -11047,15 +10566,8 @@ impl ID2D1Geometry { (::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::imp::interface_hierarchy!(ID2D1Geometry, ::windows_core::IUnknown, ID2D1Resource); unsafe impl ::core::marker::Send for ID2D1Geometry {} unsafe impl ::core::marker::Sync for ID2D1Geometry {} -unsafe impl ::windows_core::Interface for ID2D1Geometry { - type Vtable = ID2D1Geometry_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1Geometry { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2cd906a1_12e2_11dc_9fed_001143a055f9); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1Geometry_Vtbl { @@ -11113,9 +10625,8 @@ pub struct ID2D1Geometry_Vtbl { #[cfg(not(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common")))] Widen: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1GeometryGroup(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1GeometryGroup, ID2D1GeometryGroup_Vtbl, 0x2cd906a6_12e2_11dc_9fed_001143a055f9); +::windows_core::imp::interface_hierarchy!(ID2D1GeometryGroup, ::windows_core::IUnknown, ID2D1Resource, ID2D1Geometry); impl ID2D1GeometryGroup { pub unsafe fn GetFactory(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -11232,15 +10743,8 @@ impl ID2D1GeometryGroup { (::windows_core::Interface::vtable(self).GetSourceGeometries)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(geometries.as_ptr()), geometries.len().try_into().unwrap()) } } -::windows_core::imp::interface_hierarchy!(ID2D1GeometryGroup, ::windows_core::IUnknown, ID2D1Resource, ID2D1Geometry); unsafe impl ::core::marker::Send for ID2D1GeometryGroup {} unsafe impl ::core::marker::Sync for ID2D1GeometryGroup {} -unsafe impl ::windows_core::Interface for ID2D1GeometryGroup { - type Vtable = ID2D1GeometryGroup_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1GeometryGroup { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2cd906a6_12e2_11dc_9fed_001143a055f9); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1GeometryGroup_Vtbl { @@ -11252,9 +10756,8 @@ pub struct ID2D1GeometryGroup_Vtbl { pub GetSourceGeometryCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> u32, pub GetSourceGeometries: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, geometries: *mut *mut ::core::ffi::c_void, geometriescount: u32), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1GeometryRealization(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1GeometryRealization, ID2D1GeometryRealization_Vtbl, 0xa16907d7_bc02_4801_99e8_8cf7f485f774); +::windows_core::imp::interface_hierarchy!(ID2D1GeometryRealization, ::windows_core::IUnknown, ID2D1Resource); impl ID2D1GeometryRealization { pub unsafe fn GetFactory(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -11262,25 +10765,22 @@ impl ID2D1GeometryRealization { ::windows_core::from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ID2D1GeometryRealization, ::windows_core::IUnknown, ID2D1Resource); unsafe impl ::core::marker::Send for ID2D1GeometryRealization {} unsafe impl ::core::marker::Sync for ID2D1GeometryRealization {} -unsafe impl ::windows_core::Interface for ID2D1GeometryRealization { - type Vtable = ID2D1GeometryRealization_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1GeometryRealization { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa16907d7_bc02_4801_99e8_8cf7f485f774); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1GeometryRealization_Vtbl { pub base__: ID2D1Resource_Vtbl, } -#[doc = "Required features: `\"Win32_Graphics_Direct2D_Common\"`"] #[cfg(feature = "Win32_Graphics_Direct2D_Common")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1GeometrySink(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_Graphics_Direct2D_Common\"`"] + ID2D1GeometrySink, + ID2D1GeometrySink_Vtbl, + 0x2cd9069f_12e2_11dc_9fed_001143a055f9 +); +#[cfg(feature = "Win32_Graphics_Direct2D_Common")] +::windows_core::imp::interface_hierarchy!(ID2D1GeometrySink, ::windows_core::IUnknown, Common::ID2D1SimplifiedGeometrySink); #[cfg(feature = "Win32_Graphics_Direct2D_Common")] impl ID2D1GeometrySink { #[doc = "Required features: `\"Win32_Graphics_Direct2D_Common\"`"] @@ -11345,20 +10845,10 @@ impl ID2D1GeometrySink { } } #[cfg(feature = "Win32_Graphics_Direct2D_Common")] -::windows_core::imp::interface_hierarchy!(ID2D1GeometrySink, ::windows_core::IUnknown, Common::ID2D1SimplifiedGeometrySink); -#[cfg(feature = "Win32_Graphics_Direct2D_Common")] unsafe impl ::core::marker::Send for ID2D1GeometrySink {} #[cfg(feature = "Win32_Graphics_Direct2D_Common")] unsafe impl ::core::marker::Sync for ID2D1GeometrySink {} #[cfg(feature = "Win32_Graphics_Direct2D_Common")] -unsafe impl ::windows_core::Interface for ID2D1GeometrySink { - type Vtable = ID2D1GeometrySink_Vtbl; -} -#[cfg(feature = "Win32_Graphics_Direct2D_Common")] -unsafe impl ::windows_core::ComInterface for ID2D1GeometrySink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2cd9069f_12e2_11dc_9fed_001143a055f9); -} -#[cfg(feature = "Win32_Graphics_Direct2D_Common")] #[repr(C)] #[doc(hidden)] pub struct ID2D1GeometrySink_Vtbl { @@ -11384,9 +10874,8 @@ pub struct ID2D1GeometrySink_Vtbl { #[cfg(not(feature = "Win32_Graphics_Direct2D_Common"))] AddArc: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1GradientMesh(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1GradientMesh, ID2D1GradientMesh_Vtbl, 0xf292e401_c050_4cde_83d7_04962d3b23c2); +::windows_core::imp::interface_hierarchy!(ID2D1GradientMesh, ::windows_core::IUnknown, ID2D1Resource); impl ID2D1GradientMesh { pub unsafe fn GetFactory(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -11402,15 +10891,8 @@ impl ID2D1GradientMesh { (::windows_core::Interface::vtable(self).GetPatches)(::windows_core::Interface::as_raw(self), startindex, ::core::mem::transmute(patches.as_ptr()), patches.len().try_into().unwrap()).ok() } } -::windows_core::imp::interface_hierarchy!(ID2D1GradientMesh, ::windows_core::IUnknown, ID2D1Resource); unsafe impl ::core::marker::Send for ID2D1GradientMesh {} unsafe impl ::core::marker::Sync for ID2D1GradientMesh {} -unsafe impl ::windows_core::Interface for ID2D1GradientMesh { - type Vtable = ID2D1GradientMesh_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1GradientMesh { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf292e401_c050_4cde_83d7_04962d3b23c2); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1GradientMesh_Vtbl { @@ -11421,9 +10903,8 @@ pub struct ID2D1GradientMesh_Vtbl { #[cfg(not(feature = "Win32_Graphics_Direct2D_Common"))] GetPatches: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1GradientStopCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1GradientStopCollection, ID2D1GradientStopCollection_Vtbl, 0x2cd906a7_12e2_11dc_9fed_001143a055f9); +::windows_core::imp::interface_hierarchy!(ID2D1GradientStopCollection, ::windows_core::IUnknown, ID2D1Resource); impl ID2D1GradientStopCollection { pub unsafe fn GetFactory(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -11445,15 +10926,8 @@ impl ID2D1GradientStopCollection { (::windows_core::Interface::vtable(self).GetExtendMode)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(ID2D1GradientStopCollection, ::windows_core::IUnknown, ID2D1Resource); unsafe impl ::core::marker::Send for ID2D1GradientStopCollection {} unsafe impl ::core::marker::Sync for ID2D1GradientStopCollection {} -unsafe impl ::windows_core::Interface for ID2D1GradientStopCollection { - type Vtable = ID2D1GradientStopCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1GradientStopCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2cd906a7_12e2_11dc_9fed_001143a055f9); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1GradientStopCollection_Vtbl { @@ -11466,9 +10940,8 @@ pub struct ID2D1GradientStopCollection_Vtbl { pub GetColorInterpolationGamma: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> D2D1_GAMMA, pub GetExtendMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> D2D1_EXTEND_MODE, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1GradientStopCollection1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1GradientStopCollection1, ID2D1GradientStopCollection1_Vtbl, 0xae1572f4_5dd0_4777_998b_9279472ae63b); +::windows_core::imp::interface_hierarchy!(ID2D1GradientStopCollection1, ::windows_core::IUnknown, ID2D1Resource, ID2D1GradientStopCollection); impl ID2D1GradientStopCollection1 { pub unsafe fn GetFactory(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -11507,15 +10980,8 @@ impl ID2D1GradientStopCollection1 { (::windows_core::Interface::vtable(self).GetColorInterpolationMode)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(ID2D1GradientStopCollection1, ::windows_core::IUnknown, ID2D1Resource, ID2D1GradientStopCollection); unsafe impl ::core::marker::Send for ID2D1GradientStopCollection1 {} unsafe impl ::core::marker::Sync for ID2D1GradientStopCollection1 {} -unsafe impl ::windows_core::Interface for ID2D1GradientStopCollection1 { - type Vtable = ID2D1GradientStopCollection1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1GradientStopCollection1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xae1572f4_5dd0_4777_998b_9279472ae63b); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1GradientStopCollection1_Vtbl { @@ -11529,9 +10995,8 @@ pub struct ID2D1GradientStopCollection1_Vtbl { pub GetBufferPrecision: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> D2D1_BUFFER_PRECISION, pub GetColorInterpolationMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> D2D1_COLOR_INTERPOLATION_MODE, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1HwndRenderTarget(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1HwndRenderTarget, ID2D1HwndRenderTarget_Vtbl, 0x2cd90698_12e2_11dc_9fed_001143a055f9); +::windows_core::imp::interface_hierarchy!(ID2D1HwndRenderTarget, ::windows_core::IUnknown, ID2D1Resource, ID2D1RenderTarget); impl ID2D1HwndRenderTarget { pub unsafe fn GetFactory(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -11874,15 +11339,8 @@ impl ID2D1HwndRenderTarget { (::windows_core::Interface::vtable(self).GetHwnd)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(ID2D1HwndRenderTarget, ::windows_core::IUnknown, ID2D1Resource, ID2D1RenderTarget); unsafe impl ::core::marker::Send for ID2D1HwndRenderTarget {} unsafe impl ::core::marker::Sync for ID2D1HwndRenderTarget {} -unsafe impl ::windows_core::Interface for ID2D1HwndRenderTarget { - type Vtable = ID2D1HwndRenderTarget_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1HwndRenderTarget { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2cd90698_12e2_11dc_9fed_001143a055f9); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1HwndRenderTarget_Vtbl { @@ -11894,9 +11352,8 @@ pub struct ID2D1HwndRenderTarget_Vtbl { Resize: usize, pub GetHwnd: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> super::super::Foundation::HWND, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1Image(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1Image, ID2D1Image_Vtbl, 0x65019f75_8da2_497c_b32c_dfa34e48ede6); +::windows_core::imp::interface_hierarchy!(ID2D1Image, ::windows_core::IUnknown, ID2D1Resource); impl ID2D1Image { pub unsafe fn GetFactory(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -11904,23 +11361,15 @@ impl ID2D1Image { ::windows_core::from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ID2D1Image, ::windows_core::IUnknown, ID2D1Resource); unsafe impl ::core::marker::Send for ID2D1Image {} unsafe impl ::core::marker::Sync for ID2D1Image {} -unsafe impl ::windows_core::Interface for ID2D1Image { - type Vtable = ID2D1Image_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1Image { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x65019f75_8da2_497c_b32c_dfa34e48ede6); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1Image_Vtbl { pub base__: ID2D1Resource_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1ImageBrush(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1ImageBrush, ID2D1ImageBrush_Vtbl, 0xfe9e984d_3f95_407c_b5db_cb94d4e8f87c); +::windows_core::imp::interface_hierarchy!(ID2D1ImageBrush, ::windows_core::IUnknown, ID2D1Resource, ID2D1Brush); impl ID2D1ImageBrush { pub unsafe fn GetFactory(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -11985,15 +11434,8 @@ impl ID2D1ImageBrush { ::std::mem::transmute(result__) } } -::windows_core::imp::interface_hierarchy!(ID2D1ImageBrush, ::windows_core::IUnknown, ID2D1Resource, ID2D1Brush); unsafe impl ::core::marker::Send for ID2D1ImageBrush {} unsafe impl ::core::marker::Sync for ID2D1ImageBrush {} -unsafe impl ::windows_core::Interface for ID2D1ImageBrush { - type Vtable = ID2D1ImageBrush_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1ImageBrush { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfe9e984d_3f95_407c_b5db_cb94d4e8f87c); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1ImageBrush_Vtbl { @@ -12015,9 +11457,8 @@ pub struct ID2D1ImageBrush_Vtbl { #[cfg(not(feature = "Win32_Graphics_Direct2D_Common"))] GetSourceRectangle: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1ImageSource(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1ImageSource, ID2D1ImageSource_Vtbl, 0xc9b664e5_74a1_4378_9ac2_eefc37a3f4d8); +::windows_core::imp::interface_hierarchy!(ID2D1ImageSource, ::windows_core::IUnknown, ID2D1Resource, ID2D1Image); impl ID2D1ImageSource { pub unsafe fn GetFactory(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -12032,15 +11473,8 @@ impl ID2D1ImageSource { (::windows_core::Interface::vtable(self).TryReclaimResources)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ID2D1ImageSource, ::windows_core::IUnknown, ID2D1Resource, ID2D1Image); unsafe impl ::core::marker::Send for ID2D1ImageSource {} unsafe impl ::core::marker::Sync for ID2D1ImageSource {} -unsafe impl ::windows_core::Interface for ID2D1ImageSource { - type Vtable = ID2D1ImageSource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1ImageSource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc9b664e5_74a1_4378_9ac2_eefc37a3f4d8); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1ImageSource_Vtbl { @@ -12048,9 +11482,8 @@ pub struct ID2D1ImageSource_Vtbl { pub OfferResources: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub TryReclaimResources: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, resourcesdiscarded: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1ImageSourceFromWic(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1ImageSourceFromWic, ID2D1ImageSourceFromWic_Vtbl, 0x77395441_1c8f_4555_8683_f50dab0fe792); +::windows_core::imp::interface_hierarchy!(ID2D1ImageSourceFromWic, ::windows_core::IUnknown, ID2D1Resource, ID2D1Image, ID2D1ImageSource); impl ID2D1ImageSourceFromWic { pub unsafe fn GetFactory(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -12082,15 +11515,8 @@ impl ID2D1ImageSourceFromWic { ::windows_core::from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ID2D1ImageSourceFromWic, ::windows_core::IUnknown, ID2D1Resource, ID2D1Image, ID2D1ImageSource); unsafe impl ::core::marker::Send for ID2D1ImageSourceFromWic {} unsafe impl ::core::marker::Sync for ID2D1ImageSourceFromWic {} -unsafe impl ::windows_core::Interface for ID2D1ImageSourceFromWic { - type Vtable = ID2D1ImageSourceFromWic_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1ImageSourceFromWic { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x77395441_1c8f_4555_8683_f50dab0fe792); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1ImageSourceFromWic_Vtbl { @@ -12108,9 +11534,8 @@ pub struct ID2D1ImageSourceFromWic_Vtbl { #[cfg(not(feature = "Win32_Graphics_Imaging"))] GetSource: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1Ink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1Ink, ID2D1Ink_Vtbl, 0xb499923b_7029_478f_a8b3_432c7c5f5312); +::windows_core::imp::interface_hierarchy!(ID2D1Ink, ::windows_core::IUnknown, ID2D1Resource); impl ID2D1Ink { pub unsafe fn GetFactory(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -12162,15 +11587,8 @@ impl ID2D1Ink { (::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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ID2D1Ink, ::windows_core::IUnknown, ID2D1Resource); unsafe impl ::core::marker::Send for ID2D1Ink {} unsafe impl ::core::marker::Sync for ID2D1Ink {} -unsafe impl ::windows_core::Interface for ID2D1Ink { - type Vtable = ID2D1Ink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1Ink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb499923b_7029_478f_a8b3_432c7c5f5312); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1Ink_Vtbl { @@ -12192,9 +11610,8 @@ pub struct ID2D1Ink_Vtbl { #[cfg(not(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common")))] GetBounds: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1InkStyle(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1InkStyle, ID2D1InkStyle_Vtbl, 0xbae8b344_23fc_4071_8cb5_d05d6f073848); +::windows_core::imp::interface_hierarchy!(ID2D1InkStyle, ::windows_core::IUnknown, ID2D1Resource); impl ID2D1InkStyle { pub unsafe fn GetFactory(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -12218,15 +11635,8 @@ impl ID2D1InkStyle { (::windows_core::Interface::vtable(self).GetNibShape)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(ID2D1InkStyle, ::windows_core::IUnknown, ID2D1Resource); unsafe impl ::core::marker::Send for ID2D1InkStyle {} unsafe impl ::core::marker::Sync for ID2D1InkStyle {} -unsafe impl ::windows_core::Interface for ID2D1InkStyle { - type Vtable = ID2D1InkStyle_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1InkStyle { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbae8b344_23fc_4071_8cb5_d05d6f073848); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1InkStyle_Vtbl { @@ -12242,9 +11652,8 @@ pub struct ID2D1InkStyle_Vtbl { pub SetNibShape: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nibshape: D2D1_INK_NIB_SHAPE), pub GetNibShape: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> D2D1_INK_NIB_SHAPE, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1Layer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1Layer, ID2D1Layer_Vtbl, 0x2cd9069b_12e2_11dc_9fed_001143a055f9); +::windows_core::imp::interface_hierarchy!(ID2D1Layer, ::windows_core::IUnknown, ID2D1Resource); impl ID2D1Layer { pub unsafe fn GetFactory(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -12259,15 +11668,8 @@ impl ID2D1Layer { result__ } } -::windows_core::imp::interface_hierarchy!(ID2D1Layer, ::windows_core::IUnknown, ID2D1Resource); unsafe impl ::core::marker::Send for ID2D1Layer {} unsafe impl ::core::marker::Sync for ID2D1Layer {} -unsafe impl ::windows_core::Interface for ID2D1Layer { - type Vtable = ID2D1Layer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1Layer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2cd9069b_12e2_11dc_9fed_001143a055f9); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1Layer_Vtbl { @@ -12277,9 +11679,8 @@ pub struct ID2D1Layer_Vtbl { #[cfg(not(feature = "Win32_Graphics_Direct2D_Common"))] GetSize: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1LinearGradientBrush(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1LinearGradientBrush, ID2D1LinearGradientBrush_Vtbl, 0x2cd906ab_12e2_11dc_9fed_001143a055f9); +::windows_core::imp::interface_hierarchy!(ID2D1LinearGradientBrush, ::windows_core::IUnknown, ID2D1Resource, ID2D1Brush); impl ID2D1LinearGradientBrush { pub unsafe fn GetFactory(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -12332,15 +11733,8 @@ impl ID2D1LinearGradientBrush { ::windows_core::from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ID2D1LinearGradientBrush, ::windows_core::IUnknown, ID2D1Resource, ID2D1Brush); unsafe impl ::core::marker::Send for ID2D1LinearGradientBrush {} unsafe impl ::core::marker::Sync for ID2D1LinearGradientBrush {} -unsafe impl ::windows_core::Interface for ID2D1LinearGradientBrush { - type Vtable = ID2D1LinearGradientBrush_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1LinearGradientBrush { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2cd906ab_12e2_11dc_9fed_001143a055f9); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1LinearGradientBrush_Vtbl { @@ -12363,9 +11757,8 @@ pub struct ID2D1LinearGradientBrush_Vtbl { GetEndPoint: usize, pub GetGradientStopCollection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, gradientstopcollection: *mut *mut ::core::ffi::c_void), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1LookupTable3D(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1LookupTable3D, ID2D1LookupTable3D_Vtbl, 0x53dd9855_a3b0_4d5b_82e1_26e25c5e5797); +::windows_core::imp::interface_hierarchy!(ID2D1LookupTable3D, ::windows_core::IUnknown, ID2D1Resource); impl ID2D1LookupTable3D { pub unsafe fn GetFactory(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -12373,23 +11766,15 @@ impl ID2D1LookupTable3D { ::windows_core::from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ID2D1LookupTable3D, ::windows_core::IUnknown, ID2D1Resource); unsafe impl ::core::marker::Send for ID2D1LookupTable3D {} unsafe impl ::core::marker::Sync for ID2D1LookupTable3D {} -unsafe impl ::windows_core::Interface for ID2D1LookupTable3D { - type Vtable = ID2D1LookupTable3D_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1LookupTable3D { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x53dd9855_a3b0_4d5b_82e1_26e25c5e5797); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1LookupTable3D_Vtbl { pub base__: ID2D1Resource_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1Mesh(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1Mesh, ID2D1Mesh_Vtbl, 0x2cd906c2_12e2_11dc_9fed_001143a055f9); +::windows_core::imp::interface_hierarchy!(ID2D1Mesh, ::windows_core::IUnknown, ID2D1Resource); impl ID2D1Mesh { pub unsafe fn GetFactory(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -12401,24 +11786,16 @@ impl ID2D1Mesh { (::windows_core::Interface::vtable(self).Open)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ID2D1Mesh, ::windows_core::IUnknown, ID2D1Resource); unsafe impl ::core::marker::Send for ID2D1Mesh {} unsafe impl ::core::marker::Sync for ID2D1Mesh {} -unsafe impl ::windows_core::Interface for ID2D1Mesh { - type Vtable = ID2D1Mesh_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1Mesh { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2cd906c2_12e2_11dc_9fed_001143a055f9); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1Mesh_Vtbl { pub base__: ID2D1Resource_Vtbl, pub Open: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, tessellationsink: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1Multithread(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1Multithread, ID2D1Multithread_Vtbl, 0x31e6e7bc_e0ff_4d46_8c64_a0a8c41c15d3); +::windows_core::imp::interface_hierarchy!(ID2D1Multithread, ::windows_core::IUnknown); impl ID2D1Multithread { pub unsafe fn GetMultithreadProtected(&self) -> super::super::Foundation::BOOL { (::windows_core::Interface::vtable(self).GetMultithreadProtected)(::windows_core::Interface::as_raw(self)) @@ -12430,15 +11807,8 @@ impl ID2D1Multithread { (::windows_core::Interface::vtable(self).Leave)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(ID2D1Multithread, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID2D1Multithread {} unsafe impl ::core::marker::Sync for ID2D1Multithread {} -unsafe impl ::windows_core::Interface for ID2D1Multithread { - type Vtable = ID2D1Multithread_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1Multithread { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x31e6e7bc_e0ff_4d46_8c64_a0a8c41c15d3); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1Multithread_Vtbl { @@ -12447,9 +11817,8 @@ pub struct ID2D1Multithread_Vtbl { pub Enter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), pub Leave: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1OffsetTransform(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1OffsetTransform, ID2D1OffsetTransform_Vtbl, 0x3fe6adea_7643_4f53_bd14_a0ce63f24042); +::windows_core::imp::interface_hierarchy!(ID2D1OffsetTransform, ::windows_core::IUnknown, ID2D1TransformNode); impl ID2D1OffsetTransform { pub unsafe fn GetInputCount(&self) -> u32 { (::windows_core::Interface::vtable(self).base__.GetInputCount)(::windows_core::Interface::as_raw(self)) @@ -12463,15 +11832,8 @@ impl ID2D1OffsetTransform { result__ } } -::windows_core::imp::interface_hierarchy!(ID2D1OffsetTransform, ::windows_core::IUnknown, ID2D1TransformNode); unsafe impl ::core::marker::Send for ID2D1OffsetTransform {} unsafe impl ::core::marker::Sync for ID2D1OffsetTransform {} -unsafe impl ::windows_core::Interface for ID2D1OffsetTransform { - type Vtable = ID2D1OffsetTransform_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1OffsetTransform { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3fe6adea_7643_4f53_bd14_a0ce63f24042); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1OffsetTransform_Vtbl { @@ -12479,9 +11841,8 @@ pub struct ID2D1OffsetTransform_Vtbl { pub SetOffset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, offset: super::super::Foundation::POINT), pub GetOffset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::POINT), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1PathGeometry(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1PathGeometry, ID2D1PathGeometry_Vtbl, 0x2cd906a5_12e2_11dc_9fed_001143a055f9); +::windows_core::imp::interface_hierarchy!(ID2D1PathGeometry, ::windows_core::IUnknown, ID2D1Resource, ID2D1Geometry); impl ID2D1PathGeometry { pub unsafe fn GetFactory(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -12609,15 +11970,8 @@ impl ID2D1PathGeometry { (::windows_core::Interface::vtable(self).GetFigureCount)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ID2D1PathGeometry, ::windows_core::IUnknown, ID2D1Resource, ID2D1Geometry); unsafe impl ::core::marker::Send for ID2D1PathGeometry {} unsafe impl ::core::marker::Sync for ID2D1PathGeometry {} -unsafe impl ::windows_core::Interface for ID2D1PathGeometry { - type Vtable = ID2D1PathGeometry_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1PathGeometry { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2cd906a5_12e2_11dc_9fed_001143a055f9); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1PathGeometry_Vtbl { @@ -12633,9 +11987,8 @@ pub struct ID2D1PathGeometry_Vtbl { pub GetSegmentCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, count: *mut u32) -> ::windows_core::HRESULT, pub GetFigureCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, count: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1PathGeometry1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1PathGeometry1, ID2D1PathGeometry1_Vtbl, 0x62baa2d2_ab54_41b7_b872_787e0106a421); +::windows_core::imp::interface_hierarchy!(ID2D1PathGeometry1, ::windows_core::IUnknown, ID2D1Resource, ID2D1Geometry, ID2D1PathGeometry); impl ID2D1PathGeometry1 { pub unsafe fn GetFactory(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -12768,15 +12121,8 @@ impl ID2D1PathGeometry1 { (::windows_core::Interface::vtable(self).ComputePointAndSegmentAtLength)(::windows_core::Interface::as_raw(self), length, startsegment, ::core::mem::transmute(worldtransform.unwrap_or(::std::ptr::null())), flatteningtolerance, pointdescription).ok() } } -::windows_core::imp::interface_hierarchy!(ID2D1PathGeometry1, ::windows_core::IUnknown, ID2D1Resource, ID2D1Geometry, ID2D1PathGeometry); unsafe impl ::core::marker::Send for ID2D1PathGeometry1 {} unsafe impl ::core::marker::Sync for ID2D1PathGeometry1 {} -unsafe impl ::windows_core::Interface for ID2D1PathGeometry1 { - type Vtable = ID2D1PathGeometry1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1PathGeometry1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x62baa2d2_ab54_41b7_b872_787e0106a421); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1PathGeometry1_Vtbl { @@ -12786,9 +12132,8 @@ pub struct ID2D1PathGeometry1_Vtbl { #[cfg(not(all(feature = "Foundation_Numerics", feature = "Win32_Graphics_Direct2D_Common")))] ComputePointAndSegmentAtLength: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1PrintControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1PrintControl, ID2D1PrintControl_Vtbl, 0x2c1d867d_c290_41c8_ae7e_34a98702e9a5); +::windows_core::imp::interface_hierarchy!(ID2D1PrintControl, ::windows_core::IUnknown); impl ID2D1PrintControl { #[doc = "Required features: `\"Win32_Graphics_Direct2D_Common\"`, `\"Win32_System_Com\"`"] #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_System_Com"))] @@ -12803,15 +12148,8 @@ impl ID2D1PrintControl { (::windows_core::Interface::vtable(self).Close)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ID2D1PrintControl, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID2D1PrintControl {} unsafe impl ::core::marker::Sync for ID2D1PrintControl {} -unsafe impl ::windows_core::Interface for ID2D1PrintControl { - type Vtable = ID2D1PrintControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1PrintControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2c1d867d_c290_41c8_ae7e_34a98702e9a5); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1PrintControl_Vtbl { @@ -12822,9 +12160,8 @@ pub struct ID2D1PrintControl_Vtbl { AddPage: usize, pub Close: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1Properties(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1Properties, ID2D1Properties_Vtbl, 0x483473d7_cd46_4f9d_9d3a_3112aa80159d); +::windows_core::imp::interface_hierarchy!(ID2D1Properties, ::windows_core::IUnknown); impl ID2D1Properties { pub unsafe fn GetPropertyCount(&self) -> u32 { (::windows_core::Interface::vtable(self).GetPropertyCount)(::windows_core::Interface::as_raw(self)) @@ -12870,15 +12207,8 @@ impl ID2D1Properties { (::windows_core::Interface::vtable(self).GetSubProperties)(::windows_core::Interface::as_raw(self), index, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ID2D1Properties, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID2D1Properties {} unsafe impl ::core::marker::Sync for ID2D1Properties {} -unsafe impl ::windows_core::Interface for ID2D1Properties { - type Vtable = ID2D1Properties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1Properties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x483473d7_cd46_4f9d_9d3a_3112aa80159d); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1Properties_Vtbl { @@ -12895,9 +12225,8 @@ pub struct ID2D1Properties_Vtbl { pub GetValueSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32) -> u32, pub GetSubProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, subproperties: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1RadialGradientBrush(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1RadialGradientBrush, ID2D1RadialGradientBrush_Vtbl, 0x2cd906ac_12e2_11dc_9fed_001143a055f9); +::windows_core::imp::interface_hierarchy!(ID2D1RadialGradientBrush, ::windows_core::IUnknown, ID2D1Resource, ID2D1Brush); impl ID2D1RadialGradientBrush { pub unsafe fn GetFactory(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -12962,15 +12291,8 @@ impl ID2D1RadialGradientBrush { ::windows_core::from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ID2D1RadialGradientBrush, ::windows_core::IUnknown, ID2D1Resource, ID2D1Brush); unsafe impl ::core::marker::Send for ID2D1RadialGradientBrush {} unsafe impl ::core::marker::Sync for ID2D1RadialGradientBrush {} -unsafe impl ::windows_core::Interface for ID2D1RadialGradientBrush { - type Vtable = ID2D1RadialGradientBrush_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1RadialGradientBrush { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2cd906ac_12e2_11dc_9fed_001143a055f9); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1RadialGradientBrush_Vtbl { @@ -12997,9 +12319,8 @@ pub struct ID2D1RadialGradientBrush_Vtbl { pub GetRadiusY: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> f32, pub GetGradientStopCollection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, gradientstopcollection: *mut *mut ::core::ffi::c_void), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1RectangleGeometry(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1RectangleGeometry, ID2D1RectangleGeometry_Vtbl, 0x2cd906a2_12e2_11dc_9fed_001143a055f9); +::windows_core::imp::interface_hierarchy!(ID2D1RectangleGeometry, ::windows_core::IUnknown, ID2D1Resource, ID2D1Geometry); impl ID2D1RectangleGeometry { pub unsafe fn GetFactory(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -13112,15 +12433,8 @@ impl ID2D1RectangleGeometry { ::std::mem::transmute(result__) } } -::windows_core::imp::interface_hierarchy!(ID2D1RectangleGeometry, ::windows_core::IUnknown, ID2D1Resource, ID2D1Geometry); unsafe impl ::core::marker::Send for ID2D1RectangleGeometry {} unsafe impl ::core::marker::Sync for ID2D1RectangleGeometry {} -unsafe impl ::windows_core::Interface for ID2D1RectangleGeometry { - type Vtable = ID2D1RectangleGeometry_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1RectangleGeometry { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2cd906a2_12e2_11dc_9fed_001143a055f9); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1RectangleGeometry_Vtbl { @@ -13130,9 +12444,8 @@ pub struct ID2D1RectangleGeometry_Vtbl { #[cfg(not(feature = "Win32_Graphics_Direct2D_Common"))] GetRect: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1RenderInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1RenderInfo, ID2D1RenderInfo_Vtbl, 0x519ae1bd_d19a_420d_b849_364f594776b7); +::windows_core::imp::interface_hierarchy!(ID2D1RenderInfo, ::windows_core::IUnknown); impl ID2D1RenderInfo { pub unsafe fn SetInputDescription(&self, inputindex: u32, inputdescription: D2D1_INPUT_DESCRIPTION) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetInputDescription)(::windows_core::Interface::as_raw(self), inputindex, ::core::mem::transmute(inputdescription)).ok() @@ -13150,15 +12463,8 @@ impl ID2D1RenderInfo { (::windows_core::Interface::vtable(self).SetInstructionCountHint)(::windows_core::Interface::as_raw(self), instructioncount) } } -::windows_core::imp::interface_hierarchy!(ID2D1RenderInfo, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID2D1RenderInfo {} unsafe impl ::core::marker::Sync for ID2D1RenderInfo {} -unsafe impl ::windows_core::Interface for ID2D1RenderInfo { - type Vtable = ID2D1RenderInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1RenderInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x519ae1bd_d19a_420d_b849_364f594776b7); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1RenderInfo_Vtbl { @@ -13168,9 +12474,8 @@ pub struct ID2D1RenderInfo_Vtbl { pub SetCached: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, iscached: super::super::Foundation::BOOL), pub SetInstructionCountHint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, instructioncount: u32), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1RenderTarget(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1RenderTarget, ID2D1RenderTarget_Vtbl, 0x2cd90694_12e2_11dc_9fed_001143a055f9); +::windows_core::imp::interface_hierarchy!(ID2D1RenderTarget, ::windows_core::IUnknown, ID2D1Resource); impl ID2D1RenderTarget { pub unsafe fn GetFactory(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -13502,15 +12807,8 @@ impl ID2D1RenderTarget { (::windows_core::Interface::vtable(self).IsSupported)(::windows_core::Interface::as_raw(self), rendertargetproperties) } } -::windows_core::imp::interface_hierarchy!(ID2D1RenderTarget, ::windows_core::IUnknown, ID2D1Resource); unsafe impl ::core::marker::Send for ID2D1RenderTarget {} unsafe impl ::core::marker::Sync for ID2D1RenderTarget {} -unsafe impl ::windows_core::Interface for ID2D1RenderTarget { - type Vtable = ID2D1RenderTarget_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1RenderTarget { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2cd90694_12e2_11dc_9fed_001143a055f9); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1RenderTarget_Vtbl { @@ -13668,9 +12966,8 @@ pub struct ID2D1RenderTarget_Vtbl { #[cfg(not(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_Dxgi_Common")))] IsSupported: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1Resource(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1Resource, ID2D1Resource_Vtbl, 0x2cd90691_12e2_11dc_9fed_001143a055f9); +::windows_core::imp::interface_hierarchy!(ID2D1Resource, ::windows_core::IUnknown); impl ID2D1Resource { pub unsafe fn GetFactory(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -13678,47 +12975,31 @@ impl ID2D1Resource { ::windows_core::from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ID2D1Resource, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID2D1Resource {} unsafe impl ::core::marker::Sync for ID2D1Resource {} -unsafe impl ::windows_core::Interface for ID2D1Resource { - type Vtable = ID2D1Resource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1Resource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2cd90691_12e2_11dc_9fed_001143a055f9); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1Resource_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetFactory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, factory: *mut *mut ::core::ffi::c_void), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1ResourceTexture(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1ResourceTexture, ID2D1ResourceTexture_Vtbl, 0x688d15c3_02b0_438d_b13a_d1b44c32c39a); +::windows_core::imp::interface_hierarchy!(ID2D1ResourceTexture, ::windows_core::IUnknown); impl ID2D1ResourceTexture { pub unsafe fn Update(&self, minimumextents: ::core::option::Option<*const u32>, maximimumextents: ::core::option::Option<*const u32>, strides: ::core::option::Option<*const u32>, dimensions: u32, data: &[u8]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Update)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(minimumextents.unwrap_or(::std::ptr::null())), ::core::mem::transmute(maximimumextents.unwrap_or(::std::ptr::null())), ::core::mem::transmute(strides.unwrap_or(::std::ptr::null())), dimensions, ::core::mem::transmute(data.as_ptr()), data.len().try_into().unwrap()).ok() } } -::windows_core::imp::interface_hierarchy!(ID2D1ResourceTexture, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID2D1ResourceTexture {} unsafe impl ::core::marker::Sync for ID2D1ResourceTexture {} -unsafe impl ::windows_core::Interface for ID2D1ResourceTexture { - type Vtable = ID2D1ResourceTexture_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1ResourceTexture { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x688d15c3_02b0_438d_b13a_d1b44c32c39a); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1ResourceTexture_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Update: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, minimumextents: *const u32, maximimumextents: *const u32, strides: *const u32, dimensions: u32, data: *const u8, datacount: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1RoundedRectangleGeometry(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1RoundedRectangleGeometry, ID2D1RoundedRectangleGeometry_Vtbl, 0x2cd906a3_12e2_11dc_9fed_001143a055f9); +::windows_core::imp::interface_hierarchy!(ID2D1RoundedRectangleGeometry, ::windows_core::IUnknown, ID2D1Resource, ID2D1Geometry); impl ID2D1RoundedRectangleGeometry { pub unsafe fn GetFactory(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -13829,15 +13110,8 @@ impl ID2D1RoundedRectangleGeometry { (::windows_core::Interface::vtable(self).GetRoundedRect)(::windows_core::Interface::as_raw(self), roundedrect) } } -::windows_core::imp::interface_hierarchy!(ID2D1RoundedRectangleGeometry, ::windows_core::IUnknown, ID2D1Resource, ID2D1Geometry); unsafe impl ::core::marker::Send for ID2D1RoundedRectangleGeometry {} unsafe impl ::core::marker::Sync for ID2D1RoundedRectangleGeometry {} -unsafe impl ::windows_core::Interface for ID2D1RoundedRectangleGeometry { - type Vtable = ID2D1RoundedRectangleGeometry_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1RoundedRectangleGeometry { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2cd906a3_12e2_11dc_9fed_001143a055f9); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1RoundedRectangleGeometry_Vtbl { @@ -13847,9 +13121,8 @@ pub struct ID2D1RoundedRectangleGeometry_Vtbl { #[cfg(not(feature = "Win32_Graphics_Direct2D_Common"))] GetRoundedRect: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1SolidColorBrush(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1SolidColorBrush, ID2D1SolidColorBrush_Vtbl, 0x2cd906a9_12e2_11dc_9fed_001143a055f9); +::windows_core::imp::interface_hierarchy!(ID2D1SolidColorBrush, ::windows_core::IUnknown, ID2D1Resource, ID2D1Brush); impl ID2D1SolidColorBrush { pub unsafe fn GetFactory(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -13885,15 +13158,8 @@ impl ID2D1SolidColorBrush { result__ } } -::windows_core::imp::interface_hierarchy!(ID2D1SolidColorBrush, ::windows_core::IUnknown, ID2D1Resource, ID2D1Brush); unsafe impl ::core::marker::Send for ID2D1SolidColorBrush {} unsafe impl ::core::marker::Sync for ID2D1SolidColorBrush {} -unsafe impl ::windows_core::Interface for ID2D1SolidColorBrush { - type Vtable = ID2D1SolidColorBrush_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1SolidColorBrush { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2cd906a9_12e2_11dc_9fed_001143a055f9); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1SolidColorBrush_Vtbl { @@ -13907,9 +13173,8 @@ pub struct ID2D1SolidColorBrush_Vtbl { #[cfg(not(feature = "Win32_Graphics_Direct2D_Common"))] GetColor: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1SourceTransform(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1SourceTransform, ID2D1SourceTransform_Vtbl, 0xdb1800dd_0c34_4cf9_be90_31cc0a5653e1); +::windows_core::imp::interface_hierarchy!(ID2D1SourceTransform, ::windows_core::IUnknown, ID2D1TransformNode, ID2D1Transform); impl ID2D1SourceTransform { pub unsafe fn GetInputCount(&self) -> u32 { (::windows_core::Interface::vtable(self).base__.base__.GetInputCount)(::windows_core::Interface::as_raw(self)) @@ -13939,15 +13204,8 @@ impl ID2D1SourceTransform { (::windows_core::Interface::vtable(self).Draw)(::windows_core::Interface::as_raw(self), target.into_param().abi(), drawrect, ::core::mem::transmute(targetorigin)).ok() } } -::windows_core::imp::interface_hierarchy!(ID2D1SourceTransform, ::windows_core::IUnknown, ID2D1TransformNode, ID2D1Transform); unsafe impl ::core::marker::Send for ID2D1SourceTransform {} unsafe impl ::core::marker::Sync for ID2D1SourceTransform {} -unsafe impl ::windows_core::Interface for ID2D1SourceTransform { - type Vtable = ID2D1SourceTransform_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1SourceTransform { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdb1800dd_0c34_4cf9_be90_31cc0a5653e1); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1SourceTransform_Vtbl { @@ -13958,9 +13216,8 @@ pub struct ID2D1SourceTransform_Vtbl { #[cfg(not(feature = "Win32_Graphics_Direct2D_Common"))] Draw: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1SpriteBatch(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1SpriteBatch, ID2D1SpriteBatch_Vtbl, 0x4dc583bf_3a10_438a_8722_e9765224f1f1); +::windows_core::imp::interface_hierarchy!(ID2D1SpriteBatch, ::windows_core::IUnknown, ID2D1Resource); impl ID2D1SpriteBatch { pub unsafe fn GetFactory(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -13989,15 +13246,8 @@ impl ID2D1SpriteBatch { (::windows_core::Interface::vtable(self).Clear)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(ID2D1SpriteBatch, ::windows_core::IUnknown, ID2D1Resource); unsafe impl ::core::marker::Send for ID2D1SpriteBatch {} unsafe impl ::core::marker::Sync for ID2D1SpriteBatch {} -unsafe impl ::windows_core::Interface for ID2D1SpriteBatch { - type Vtable = ID2D1SpriteBatch_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1SpriteBatch { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4dc583bf_3a10_438a_8722_e9765224f1f1); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1SpriteBatch_Vtbl { @@ -14017,9 +13267,8 @@ pub struct ID2D1SpriteBatch_Vtbl { pub GetSpriteCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> u32, pub Clear: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1StrokeStyle(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1StrokeStyle, ID2D1StrokeStyle_Vtbl, 0x2cd9069d_12e2_11dc_9fed_001143a055f9); +::windows_core::imp::interface_hierarchy!(ID2D1StrokeStyle, ::windows_core::IUnknown, ID2D1Resource); impl ID2D1StrokeStyle { pub unsafe fn GetFactory(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -14054,15 +13303,8 @@ impl ID2D1StrokeStyle { (::windows_core::Interface::vtable(self).GetDashes)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(dashes.as_ptr()), dashes.len().try_into().unwrap()) } } -::windows_core::imp::interface_hierarchy!(ID2D1StrokeStyle, ::windows_core::IUnknown, ID2D1Resource); unsafe impl ::core::marker::Send for ID2D1StrokeStyle {} unsafe impl ::core::marker::Sync for ID2D1StrokeStyle {} -unsafe impl ::windows_core::Interface for ID2D1StrokeStyle { - type Vtable = ID2D1StrokeStyle_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1StrokeStyle { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2cd9069d_12e2_11dc_9fed_001143a055f9); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1StrokeStyle_Vtbl { @@ -14077,9 +13319,8 @@ pub struct ID2D1StrokeStyle_Vtbl { pub GetDashesCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> u32, pub GetDashes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dashes: *mut f32, dashescount: u32), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1StrokeStyle1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1StrokeStyle1, ID2D1StrokeStyle1_Vtbl, 0x10a72a66_e91c_43f4_993f_ddf4b82b0b4a); +::windows_core::imp::interface_hierarchy!(ID2D1StrokeStyle1, ::windows_core::IUnknown, ID2D1Resource, ID2D1StrokeStyle); impl ID2D1StrokeStyle1 { pub unsafe fn GetFactory(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -14117,24 +13358,16 @@ impl ID2D1StrokeStyle1 { (::windows_core::Interface::vtable(self).GetStrokeTransformType)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(ID2D1StrokeStyle1, ::windows_core::IUnknown, ID2D1Resource, ID2D1StrokeStyle); unsafe impl ::core::marker::Send for ID2D1StrokeStyle1 {} unsafe impl ::core::marker::Sync for ID2D1StrokeStyle1 {} -unsafe impl ::windows_core::Interface for ID2D1StrokeStyle1 { - type Vtable = ID2D1StrokeStyle1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1StrokeStyle1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x10a72a66_e91c_43f4_993f_ddf4b82b0b4a); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1StrokeStyle1_Vtbl { pub base__: ID2D1StrokeStyle_Vtbl, pub GetStrokeTransformType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> D2D1_STROKE_TRANSFORM_TYPE, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1SvgAttribute(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1SvgAttribute, ID2D1SvgAttribute_Vtbl, 0xc9cdb0dd_f8c9_4e70_b7c2_301c80292c5e); +::windows_core::imp::interface_hierarchy!(ID2D1SvgAttribute, ::windows_core::IUnknown, ID2D1Resource); impl ID2D1SvgAttribute { pub unsafe fn GetFactory(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -14151,15 +13384,8 @@ impl ID2D1SvgAttribute { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ID2D1SvgAttribute, ::windows_core::IUnknown, ID2D1Resource); unsafe impl ::core::marker::Send for ID2D1SvgAttribute {} unsafe impl ::core::marker::Sync for ID2D1SvgAttribute {} -unsafe impl ::windows_core::Interface for ID2D1SvgAttribute { - type Vtable = ID2D1SvgAttribute_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1SvgAttribute { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc9cdb0dd_f8c9_4e70_b7c2_301c80292c5e); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1SvgAttribute_Vtbl { @@ -14167,9 +13393,8 @@ pub struct ID2D1SvgAttribute_Vtbl { pub GetElement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut *mut ::core::ffi::c_void), pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, attribute: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1SvgDocument(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1SvgDocument, ID2D1SvgDocument_Vtbl, 0x86b88e4d_afa4_4d7b_88e4_68a51c4a0aec); +::windows_core::imp::interface_hierarchy!(ID2D1SvgDocument, ::windows_core::IUnknown, ID2D1Resource); impl ID2D1SvgDocument { pub unsafe fn GetFactory(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -14248,15 +13473,8 @@ impl ID2D1SvgDocument { (::windows_core::Interface::vtable(self).CreatePathData)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(segmentdata.as_deref().map_or(::core::ptr::null(), |slice| slice.as_ptr())), segmentdata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), ::core::mem::transmute(commands.as_deref().map_or(::core::ptr::null(), |slice| slice.as_ptr())), commands.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ID2D1SvgDocument, ::windows_core::IUnknown, ID2D1Resource); unsafe impl ::core::marker::Send for ID2D1SvgDocument {} unsafe impl ::core::marker::Sync for ID2D1SvgDocument {} -unsafe impl ::windows_core::Interface for ID2D1SvgDocument { - type Vtable = ID2D1SvgDocument_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1SvgDocument { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x86b88e4d_afa4_4d7b_88e4_68a51c4a0aec); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1SvgDocument_Vtbl { @@ -14291,9 +13509,8 @@ pub struct ID2D1SvgDocument_Vtbl { CreatePointCollection: usize, pub CreatePathData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, segmentdata: *const f32, segmentdatacount: u32, commands: *const D2D1_SVG_PATH_COMMAND, commandscount: u32, pathdata: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1SvgElement(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1SvgElement, ID2D1SvgElement_Vtbl, 0xac7b67a6_183e_49c1_a823_0ebe40b0db29); +::windows_core::imp::interface_hierarchy!(ID2D1SvgElement, ::windows_core::IUnknown, ID2D1Resource); impl ID2D1SvgElement { pub unsafe fn GetFactory(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -14432,7 +13649,7 @@ impl ID2D1SvgElement { pub unsafe fn GetAttributeValue(&self, name: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -14457,15 +13674,8 @@ impl ID2D1SvgElement { (::windows_core::Interface::vtable(self).GetAttributeValueLength)(::windows_core::Interface::as_raw(self), name.into_param().abi(), r#type, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ID2D1SvgElement, ::windows_core::IUnknown, ID2D1Resource); unsafe impl ::core::marker::Send for ID2D1SvgElement {} unsafe impl ::core::marker::Sync for ID2D1SvgElement {} -unsafe impl ::windows_core::Interface for ID2D1SvgElement { - type Vtable = ID2D1SvgElement_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1SvgElement { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xac7b67a6_183e_49c1_a823_0ebe40b0db29); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1SvgElement_Vtbl { @@ -14501,9 +13711,8 @@ pub struct ID2D1SvgElement_Vtbl { pub GetAttributeValue3: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::windows_core::PCWSTR, r#type: D2D1_SVG_ATTRIBUTE_STRING_TYPE, value: ::windows_core::PWSTR, valuecount: u32) -> ::windows_core::HRESULT, pub GetAttributeValueLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::windows_core::PCWSTR, r#type: D2D1_SVG_ATTRIBUTE_STRING_TYPE, valuelength: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1SvgGlyphStyle(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1SvgGlyphStyle, ID2D1SvgGlyphStyle_Vtbl, 0xaf671749_d241_4db8_8e41_dcc2e5c1a438); +::windows_core::imp::interface_hierarchy!(ID2D1SvgGlyphStyle, ::windows_core::IUnknown, ID2D1Resource); impl ID2D1SvgGlyphStyle { pub unsafe fn GetFactory(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -14534,15 +13743,8 @@ impl ID2D1SvgGlyphStyle { (::windows_core::Interface::vtable(self).GetStroke)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(brush.unwrap_or(::std::ptr::null_mut())), ::core::mem::transmute(strokewidth.unwrap_or(::std::ptr::null_mut())), ::core::mem::transmute(dashes.as_deref().map_or(::core::ptr::null(), |slice| slice.as_ptr())), dashes.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), ::core::mem::transmute(dashoffset.unwrap_or(::std::ptr::null_mut()))) } } -::windows_core::imp::interface_hierarchy!(ID2D1SvgGlyphStyle, ::windows_core::IUnknown, ID2D1Resource); unsafe impl ::core::marker::Send for ID2D1SvgGlyphStyle {} unsafe impl ::core::marker::Sync for ID2D1SvgGlyphStyle {} -unsafe impl ::windows_core::Interface for ID2D1SvgGlyphStyle { - type Vtable = ID2D1SvgGlyphStyle_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1SvgGlyphStyle { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaf671749_d241_4db8_8e41_dcc2e5c1a438); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1SvgGlyphStyle_Vtbl { @@ -14553,9 +13755,8 @@ pub struct ID2D1SvgGlyphStyle_Vtbl { pub GetStrokeDashesCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> u32, pub GetStroke: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, brush: *mut *mut ::core::ffi::c_void, strokewidth: *mut f32, dashes: *mut f32, dashescount: u32, dashoffset: *mut f32), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1SvgPaint(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1SvgPaint, ID2D1SvgPaint_Vtbl, 0xd59bab0a_68a2_455b_a5dc_9eb2854e2490); +::windows_core::imp::interface_hierarchy!(ID2D1SvgPaint, ::windows_core::IUnknown, ID2D1Resource, ID2D1SvgAttribute); impl ID2D1SvgPaint { pub unsafe fn GetFactory(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -14602,15 +13803,8 @@ impl ID2D1SvgPaint { (::windows_core::Interface::vtable(self).GetIdLength)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(ID2D1SvgPaint, ::windows_core::IUnknown, ID2D1Resource, ID2D1SvgAttribute); unsafe impl ::core::marker::Send for ID2D1SvgPaint {} unsafe impl ::core::marker::Sync for ID2D1SvgPaint {} -unsafe impl ::windows_core::Interface for ID2D1SvgPaint { - type Vtable = ID2D1SvgPaint_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1SvgPaint { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd59bab0a_68a2_455b_a5dc_9eb2854e2490); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1SvgPaint_Vtbl { @@ -14629,9 +13823,8 @@ pub struct ID2D1SvgPaint_Vtbl { pub GetId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: ::windows_core::PWSTR, idcount: u32) -> ::windows_core::HRESULT, pub GetIdLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> u32, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1SvgPathData(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1SvgPathData, ID2D1SvgPathData_Vtbl, 0xc095e4f4_bb98_43d6_9745_4d1b84ec9888); +::windows_core::imp::interface_hierarchy!(ID2D1SvgPathData, ::windows_core::IUnknown, ID2D1Resource, ID2D1SvgAttribute); impl ID2D1SvgPathData { pub unsafe fn GetFactory(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -14678,15 +13871,8 @@ impl ID2D1SvgPathData { (::windows_core::Interface::vtable(self).CreatePathGeometry)(::windows_core::Interface::as_raw(self), fillmode, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ID2D1SvgPathData, ::windows_core::IUnknown, ID2D1Resource, ID2D1SvgAttribute); unsafe impl ::core::marker::Send for ID2D1SvgPathData {} unsafe impl ::core::marker::Sync for ID2D1SvgPathData {} -unsafe impl ::windows_core::Interface for ID2D1SvgPathData { - type Vtable = ID2D1SvgPathData_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1SvgPathData { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc095e4f4_bb98_43d6_9745_4d1b84ec9888); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1SvgPathData_Vtbl { @@ -14704,9 +13890,8 @@ pub struct ID2D1SvgPathData_Vtbl { #[cfg(not(feature = "Win32_Graphics_Direct2D_Common"))] CreatePathGeometry: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1SvgPointCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1SvgPointCollection, ID2D1SvgPointCollection_Vtbl, 0x9dbe4c0d_3572_4dd9_9825_5530813bb712); +::windows_core::imp::interface_hierarchy!(ID2D1SvgPointCollection, ::windows_core::IUnknown, ID2D1Resource, ID2D1SvgAttribute); impl ID2D1SvgPointCollection { pub unsafe fn GetFactory(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -14739,15 +13924,8 @@ impl ID2D1SvgPointCollection { (::windows_core::Interface::vtable(self).GetPointsCount)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(ID2D1SvgPointCollection, ::windows_core::IUnknown, ID2D1Resource, ID2D1SvgAttribute); unsafe impl ::core::marker::Send for ID2D1SvgPointCollection {} unsafe impl ::core::marker::Sync for ID2D1SvgPointCollection {} -unsafe impl ::windows_core::Interface for ID2D1SvgPointCollection { - type Vtable = ID2D1SvgPointCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1SvgPointCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9dbe4c0d_3572_4dd9_9825_5530813bb712); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1SvgPointCollection_Vtbl { @@ -14763,9 +13941,8 @@ pub struct ID2D1SvgPointCollection_Vtbl { GetPoints: usize, pub GetPointsCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> u32, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1SvgStrokeDashArray(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1SvgStrokeDashArray, ID2D1SvgStrokeDashArray_Vtbl, 0xf1c0ca52_92a3_4f00_b4ce_f35691efd9d9); +::windows_core::imp::interface_hierarchy!(ID2D1SvgStrokeDashArray, ::windows_core::IUnknown, ID2D1Resource, ID2D1SvgAttribute); impl ID2D1SvgStrokeDashArray { pub unsafe fn GetFactory(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -14800,15 +13977,8 @@ impl ID2D1SvgStrokeDashArray { (::windows_core::Interface::vtable(self).GetDashesCount)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(ID2D1SvgStrokeDashArray, ::windows_core::IUnknown, ID2D1Resource, ID2D1SvgAttribute); unsafe impl ::core::marker::Send for ID2D1SvgStrokeDashArray {} unsafe impl ::core::marker::Sync for ID2D1SvgStrokeDashArray {} -unsafe impl ::windows_core::Interface for ID2D1SvgStrokeDashArray { - type Vtable = ID2D1SvgStrokeDashArray_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1SvgStrokeDashArray { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf1c0ca52_92a3_4f00_b4ce_f35691efd9d9); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1SvgStrokeDashArray_Vtbl { @@ -14820,9 +13990,8 @@ pub struct ID2D1SvgStrokeDashArray_Vtbl { pub GetDashes2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dashes: *mut f32, dashescount: u32, startindex: u32) -> ::windows_core::HRESULT, pub GetDashesCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> u32, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1TessellationSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1TessellationSink, ID2D1TessellationSink_Vtbl, 0x2cd906c1_12e2_11dc_9fed_001143a055f9); +::windows_core::imp::interface_hierarchy!(ID2D1TessellationSink, ::windows_core::IUnknown); impl ID2D1TessellationSink { #[doc = "Required features: `\"Win32_Graphics_Direct2D_Common\"`"] #[cfg(feature = "Win32_Graphics_Direct2D_Common")] @@ -14833,15 +14002,8 @@ impl ID2D1TessellationSink { (::windows_core::Interface::vtable(self).Close)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ID2D1TessellationSink, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID2D1TessellationSink {} unsafe impl ::core::marker::Sync for ID2D1TessellationSink {} -unsafe impl ::windows_core::Interface for ID2D1TessellationSink { - type Vtable = ID2D1TessellationSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1TessellationSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2cd906c1_12e2_11dc_9fed_001143a055f9); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1TessellationSink_Vtbl { @@ -14852,9 +14014,8 @@ pub struct ID2D1TessellationSink_Vtbl { AddTriangles: usize, pub Close: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1Transform(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1Transform, ID2D1Transform_Vtbl, 0xef1a287d_342a_4f76_8fdb_da0d6ea9f92b); +::windows_core::imp::interface_hierarchy!(ID2D1Transform, ::windows_core::IUnknown, ID2D1TransformNode); impl ID2D1Transform { pub unsafe fn GetInputCount(&self) -> u32 { (::windows_core::Interface::vtable(self).base__.GetInputCount)(::windows_core::Interface::as_raw(self)) @@ -14870,15 +14031,8 @@ impl ID2D1Transform { (::windows_core::Interface::vtable(self).MapInvalidRect)(::windows_core::Interface::as_raw(self), inputindex, ::core::mem::transmute(invalidinputrect), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ID2D1Transform, ::windows_core::IUnknown, ID2D1TransformNode); unsafe impl ::core::marker::Send for ID2D1Transform {} unsafe impl ::core::marker::Sync for ID2D1Transform {} -unsafe impl ::windows_core::Interface for ID2D1Transform { - type Vtable = ID2D1Transform_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1Transform { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xef1a287d_342a_4f76_8fdb_da0d6ea9f92b); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1Transform_Vtbl { @@ -14887,9 +14041,8 @@ pub struct ID2D1Transform_Vtbl { pub MapInputRectsToOutputRect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, inputrects: *const super::super::Foundation::RECT, inputopaquesubrects: *const super::super::Foundation::RECT, inputrectcount: u32, outputrect: *mut super::super::Foundation::RECT, outputopaquesubrect: *mut super::super::Foundation::RECT) -> ::windows_core::HRESULT, pub MapInvalidRect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, inputindex: u32, invalidinputrect: super::super::Foundation::RECT, invalidoutputrect: *mut super::super::Foundation::RECT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1TransformGraph(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1TransformGraph, ID2D1TransformGraph_Vtbl, 0x13d29038_c3e6_4034_9081_13b53a417992); +::windows_core::imp::interface_hierarchy!(ID2D1TransformGraph, ::windows_core::IUnknown); impl ID2D1TransformGraph { pub unsafe fn GetInputCount(&self) -> u32 { (::windows_core::Interface::vtable(self).GetInputCount)(::windows_core::Interface::as_raw(self)) @@ -14938,15 +14091,8 @@ impl ID2D1TransformGraph { (::windows_core::Interface::vtable(self).SetPassthroughGraph)(::windows_core::Interface::as_raw(self), effectinputindex).ok() } } -::windows_core::imp::interface_hierarchy!(ID2D1TransformGraph, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID2D1TransformGraph {} unsafe impl ::core::marker::Sync for ID2D1TransformGraph {} -unsafe impl ::windows_core::Interface for ID2D1TransformGraph { - type Vtable = ID2D1TransformGraph_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1TransformGraph { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x13d29038_c3e6_4034_9081_13b53a417992); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1TransformGraph_Vtbl { @@ -14961,32 +14107,23 @@ pub struct ID2D1TransformGraph_Vtbl { pub Clear: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), pub SetPassthroughGraph: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, effectinputindex: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1TransformNode(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1TransformNode, ID2D1TransformNode_Vtbl, 0xb2efe1e7_729f_4102_949f_505fa21bf666); +::windows_core::imp::interface_hierarchy!(ID2D1TransformNode, ::windows_core::IUnknown); impl ID2D1TransformNode { pub unsafe fn GetInputCount(&self) -> u32 { (::windows_core::Interface::vtable(self).GetInputCount)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(ID2D1TransformNode, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID2D1TransformNode {} unsafe impl ::core::marker::Sync for ID2D1TransformNode {} -unsafe impl ::windows_core::Interface for ID2D1TransformNode { - type Vtable = ID2D1TransformNode_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1TransformNode { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb2efe1e7_729f_4102_949f_505fa21bf666); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1TransformNode_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetInputCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> u32, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1TransformedGeometry(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1TransformedGeometry, ID2D1TransformedGeometry_Vtbl, 0x2cd906bb_12e2_11dc_9fed_001143a055f9); +::windows_core::imp::interface_hierarchy!(ID2D1TransformedGeometry, ::windows_core::IUnknown, ID2D1Resource, ID2D1Geometry); impl ID2D1TransformedGeometry { pub unsafe fn GetFactory(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -15102,15 +14239,8 @@ impl ID2D1TransformedGeometry { (::windows_core::Interface::vtable(self).GetTransform)(::windows_core::Interface::as_raw(self), transform) } } -::windows_core::imp::interface_hierarchy!(ID2D1TransformedGeometry, ::windows_core::IUnknown, ID2D1Resource, ID2D1Geometry); unsafe impl ::core::marker::Send for ID2D1TransformedGeometry {} unsafe impl ::core::marker::Sync for ID2D1TransformedGeometry {} -unsafe impl ::windows_core::Interface for ID2D1TransformedGeometry { - type Vtable = ID2D1TransformedGeometry_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1TransformedGeometry { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2cd906bb_12e2_11dc_9fed_001143a055f9); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1TransformedGeometry_Vtbl { @@ -15121,9 +14251,8 @@ pub struct ID2D1TransformedGeometry_Vtbl { #[cfg(not(feature = "Foundation_Numerics"))] GetTransform: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1TransformedImageSource(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1TransformedImageSource, ID2D1TransformedImageSource_Vtbl, 0x7f1f79e5_2796_416c_8f55_700f911445e5); +::windows_core::imp::interface_hierarchy!(ID2D1TransformedImageSource, ::windows_core::IUnknown, ID2D1Resource, ID2D1Image); impl ID2D1TransformedImageSource { pub unsafe fn GetFactory(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -15139,15 +14268,8 @@ impl ID2D1TransformedImageSource { (::windows_core::Interface::vtable(self).GetProperties)(::windows_core::Interface::as_raw(self), properties) } } -::windows_core::imp::interface_hierarchy!(ID2D1TransformedImageSource, ::windows_core::IUnknown, ID2D1Resource, ID2D1Image); unsafe impl ::core::marker::Send for ID2D1TransformedImageSource {} unsafe impl ::core::marker::Sync for ID2D1TransformedImageSource {} -unsafe impl ::windows_core::Interface for ID2D1TransformedImageSource { - type Vtable = ID2D1TransformedImageSource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1TransformedImageSource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7f1f79e5_2796_416c_8f55_700f911445e5); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1TransformedImageSource_Vtbl { @@ -15155,9 +14277,8 @@ pub struct ID2D1TransformedImageSource_Vtbl { pub GetSource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, imagesource: *mut *mut ::core::ffi::c_void), pub GetProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, properties: *mut D2D1_TRANSFORMED_IMAGE_SOURCE_PROPERTIES), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID2D1VertexBuffer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID2D1VertexBuffer, ID2D1VertexBuffer_Vtbl, 0x9b8b1336_00a5_4668_92b7_ced5d8bf9b7b); +::windows_core::imp::interface_hierarchy!(ID2D1VertexBuffer, ::windows_core::IUnknown); impl ID2D1VertexBuffer { pub unsafe fn Map(&self, data: *mut *mut u8, buffersize: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Map)(::windows_core::Interface::as_raw(self), data, buffersize).ok() @@ -15166,15 +14287,8 @@ impl ID2D1VertexBuffer { (::windows_core::Interface::vtable(self).Unmap)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ID2D1VertexBuffer, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID2D1VertexBuffer {} unsafe impl ::core::marker::Sync for ID2D1VertexBuffer {} -unsafe impl ::windows_core::Interface for ID2D1VertexBuffer { - type Vtable = ID2D1VertexBuffer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID2D1VertexBuffer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9b8b1336_00a5_4668_92b7_ced5d8bf9b7b); -} #[repr(C)] #[doc(hidden)] pub struct ID2D1VertexBuffer_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D/Dxc/impl.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D/Dxc/impl.rs index 95635a6e81..d7eab149b0 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D/Dxc/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D/Dxc/impl.rs @@ -18,7 +18,7 @@ impl IDxcAssembler_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), AssembleToContainer: AssembleToContainer:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDxcBlob_Impl: Sized { @@ -45,7 +45,7 @@ impl IDxcBlob_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDxcBlobEncoding_Impl: Sized + IDxcBlob_Impl { @@ -62,7 +62,7 @@ impl IDxcBlobEncoding_Vtbl { Self { base__: IDxcBlob_Vtbl::new::(), GetEncoding: GetEncoding:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDxcBlobUtf16_Impl: Sized + IDxcBlobEncoding_Impl { @@ -89,7 +89,7 @@ impl IDxcBlobUtf16_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDxcBlobUtf8_Impl: Sized + IDxcBlobEncoding_Impl { @@ -116,7 +116,7 @@ impl IDxcBlobUtf8_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDxcCompiler_Impl: Sized { @@ -168,7 +168,7 @@ impl IDxcCompiler_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDxcCompiler2_Impl: Sized + IDxcCompiler_Impl { @@ -199,7 +199,7 @@ impl IDxcCompiler2_Vtbl { Self { base__: IDxcCompiler_Vtbl::new::(), CompileWithDebug: CompileWithDebug:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDxcCompiler3_Impl: Sized { @@ -226,7 +226,7 @@ impl IDxcCompiler3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDxcCompilerArgs_Impl: Sized { @@ -274,7 +274,7 @@ impl IDxcCompilerArgs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDxcContainerBuilder_Impl: Sized { @@ -321,7 +321,7 @@ impl IDxcContainerBuilder_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDxcContainerReflection_Impl: Sized { @@ -400,7 +400,7 @@ impl IDxcContainerReflection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDxcExtraOutputs_Impl: Sized { @@ -427,7 +427,7 @@ impl IDxcExtraOutputs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDxcIncludeHandler_Impl: Sized { @@ -450,7 +450,7 @@ impl IDxcIncludeHandler_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), LoadSource: LoadSource:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -591,7 +591,7 @@ impl IDxcLibrary_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDxcLinker_Impl: Sized { @@ -624,7 +624,7 @@ impl IDxcLinker_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDxcOperationResult_Impl: Sized { @@ -676,7 +676,7 @@ impl IDxcOperationResult_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDxcOptimizer_Impl: Sized { @@ -722,7 +722,7 @@ impl IDxcOptimizer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDxcOptimizerPass_Impl: Sized { @@ -800,7 +800,7 @@ impl IDxcOptimizerPass_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDxcPdbUtils_Impl: Sized { @@ -1089,7 +1089,7 @@ impl IDxcPdbUtils_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDxcResult_Impl: Sized + IDxcOperationResult_Impl { @@ -1137,7 +1137,7 @@ impl IDxcResult_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1305,7 +1305,7 @@ impl IDxcUtils_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDxcValidator_Impl: Sized { @@ -1328,7 +1328,7 @@ impl IDxcValidator_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Validate: Validate:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDxcValidator2_Impl: Sized + IDxcValidator_Impl { @@ -1351,7 +1351,7 @@ impl IDxcValidator2_Vtbl { Self { base__: IDxcValidator_Vtbl::new::(), ValidateWithDebug: ValidateWithDebug:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDxcVersionInfo_Impl: Sized { @@ -1384,7 +1384,7 @@ impl IDxcVersionInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDxcVersionInfo2_Impl: Sized + IDxcVersionInfo_Impl { @@ -1401,7 +1401,7 @@ impl IDxcVersionInfo2_Vtbl { Self { base__: IDxcVersionInfo_Vtbl::new::(), GetCommitInfo: GetCommitInfo:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDxcVersionInfo3_Impl: Sized { @@ -1424,6 +1424,6 @@ impl IDxcVersionInfo3_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetCustomVersionString: GetCustomVersionString:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 0f1e785022..b6e215e15b 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 @@ -1,7 +1,7 @@ #[inline] pub unsafe fn DxcCreateInstance(rclsid: *const ::windows_core::GUID) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { ::windows_targets::link!("dxcompiler.dll" "system" fn DxcCreateInstance(rclsid : *const ::windows_core::GUID, riid : *const ::windows_core::GUID, ppv : *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT); let mut result__ = ::std::ptr::null_mut(); @@ -13,15 +13,14 @@ where pub unsafe fn DxcCreateInstance2(pmalloc: P0, rclsid: *const ::windows_core::GUID) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDxcAssembler(::windows_core::IUnknown); +::windows_core::imp::com_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 @@ -31,22 +30,14 @@ impl IDxcAssembler { (::windows_core::Interface::vtable(self).AssembleToContainer)(::windows_core::Interface::as_raw(self), pshader.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDxcAssembler, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDxcAssembler { - type Vtable = IDxcAssembler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDxcAssembler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x091f7a26_1c1f_4948_904b_e6e3a8a771d5); -} #[repr(C)] #[doc(hidden)] pub struct IDxcAssembler_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub AssembleToContainer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pshader: *mut ::core::ffi::c_void, ppresult: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDxcBlob(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDxcBlob, IDxcBlob_Vtbl, 0x8ba5fb08_5195_40e2_ac58_0d989c3a0102); +::windows_core::imp::interface_hierarchy!(IDxcBlob, ::windows_core::IUnknown); impl IDxcBlob { pub unsafe fn GetBufferPointer(&self) -> *mut ::core::ffi::c_void { (::windows_core::Interface::vtable(self).GetBufferPointer)(::windows_core::Interface::as_raw(self)) @@ -55,13 +46,6 @@ impl IDxcBlob { (::windows_core::Interface::vtable(self).GetBufferSize)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(IDxcBlob, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDxcBlob { - type Vtable = IDxcBlob_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDxcBlob { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8ba5fb08_5195_40e2_ac58_0d989c3a0102); -} #[repr(C)] #[doc(hidden)] pub struct IDxcBlob_Vtbl { @@ -69,9 +53,8 @@ pub struct IDxcBlob_Vtbl { pub GetBufferPointer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> *mut ::core::ffi::c_void, pub GetBufferSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDxcBlobEncoding(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDxcBlobEncoding, IDxcBlobEncoding_Vtbl, 0x7241d424_2646_4191_97c0_98e96e42fc68); +::windows_core::imp::interface_hierarchy!(IDxcBlobEncoding, ::windows_core::IUnknown, IDxcBlob); impl IDxcBlobEncoding { pub unsafe fn GetBufferPointer(&self) -> *mut ::core::ffi::c_void { (::windows_core::Interface::vtable(self).base__.GetBufferPointer)(::windows_core::Interface::as_raw(self)) @@ -83,22 +66,14 @@ impl IDxcBlobEncoding { (::windows_core::Interface::vtable(self).GetEncoding)(::windows_core::Interface::as_raw(self), pknown, pcodepage).ok() } } -::windows_core::imp::interface_hierarchy!(IDxcBlobEncoding, ::windows_core::IUnknown, IDxcBlob); -unsafe impl ::windows_core::Interface for IDxcBlobEncoding { - type Vtable = IDxcBlobEncoding_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDxcBlobEncoding { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7241d424_2646_4191_97c0_98e96e42fc68); -} #[repr(C)] #[doc(hidden)] pub struct IDxcBlobEncoding_Vtbl { pub base__: IDxcBlob_Vtbl, pub GetEncoding: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pknown: *mut super::super::super::Foundation::BOOL, pcodepage: *mut DXC_CP) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDxcBlobUtf16(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDxcBlobUtf16, IDxcBlobUtf16_Vtbl, 0xa3f84eab_0faa_497e_a39c_ee6ed60b2d84); +::windows_core::imp::interface_hierarchy!(IDxcBlobUtf16, ::windows_core::IUnknown, IDxcBlob, IDxcBlobEncoding); impl IDxcBlobUtf16 { pub unsafe fn GetBufferPointer(&self) -> *mut ::core::ffi::c_void { (::windows_core::Interface::vtable(self).base__.base__.GetBufferPointer)(::windows_core::Interface::as_raw(self)) @@ -116,13 +91,6 @@ impl IDxcBlobUtf16 { (::windows_core::Interface::vtable(self).GetStringLength)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(IDxcBlobUtf16, ::windows_core::IUnknown, IDxcBlob, IDxcBlobEncoding); -unsafe impl ::windows_core::Interface for IDxcBlobUtf16 { - type Vtable = IDxcBlobUtf16_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDxcBlobUtf16 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa3f84eab_0faa_497e_a39c_ee6ed60b2d84); -} #[repr(C)] #[doc(hidden)] pub struct IDxcBlobUtf16_Vtbl { @@ -130,9 +98,8 @@ pub struct IDxcBlobUtf16_Vtbl { pub GetStringPointer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::PCWSTR, pub GetStringLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDxcBlobUtf8(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDxcBlobUtf8, IDxcBlobUtf8_Vtbl, 0x3da636c9_ba71_4024_a301_30cbf125305b); +::windows_core::imp::interface_hierarchy!(IDxcBlobUtf8, ::windows_core::IUnknown, IDxcBlob, IDxcBlobEncoding); impl IDxcBlobUtf8 { pub unsafe fn GetBufferPointer(&self) -> *mut ::core::ffi::c_void { (::windows_core::Interface::vtable(self).base__.base__.GetBufferPointer)(::windows_core::Interface::as_raw(self)) @@ -150,13 +117,6 @@ impl IDxcBlobUtf8 { (::windows_core::Interface::vtable(self).GetStringLength)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(IDxcBlobUtf8, ::windows_core::IUnknown, IDxcBlob, IDxcBlobEncoding); -unsafe impl ::windows_core::Interface for IDxcBlobUtf8 { - type Vtable = IDxcBlobUtf8_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDxcBlobUtf8 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3da636c9_ba71_4024_a301_30cbf125305b); -} #[repr(C)] #[doc(hidden)] pub struct IDxcBlobUtf8_Vtbl { @@ -164,9 +124,8 @@ pub struct IDxcBlobUtf8_Vtbl { pub GetStringPointer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::PCSTR, pub GetStringLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDxcCompiler(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDxcCompiler, IDxcCompiler_Vtbl, 0x8c210bf3_011f_4422_8d70_6f9acb8db617); +::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: ::core::option::Option<&[::windows_core::PCWSTR]>, pdefines: &[DxcDefine], pincludehandler: P4) -> ::windows_core::Result where @@ -196,13 +155,6 @@ impl IDxcCompiler { (::windows_core::Interface::vtable(self).Disassemble)(::windows_core::Interface::as_raw(self), psource.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDxcCompiler, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDxcCompiler { - type Vtable = IDxcCompiler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDxcCompiler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8c210bf3_011f_4422_8d70_6f9acb8db617); -} #[repr(C)] #[doc(hidden)] pub struct IDxcCompiler_Vtbl { @@ -211,9 +163,8 @@ pub struct IDxcCompiler_Vtbl { pub Preprocess: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psource: *mut ::core::ffi::c_void, psourcename: ::windows_core::PCWSTR, parguments: *const ::windows_core::PCWSTR, argcount: u32, pdefines: *const DxcDefine, definecount: u32, pincludehandler: *mut ::core::ffi::c_void, ppresult: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Disassemble: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psource: *mut ::core::ffi::c_void, ppdisassembly: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDxcCompiler2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDxcCompiler2, IDxcCompiler2_Vtbl, 0xa005a9d9_b8bb_4594_b5c9_0e633bec4d37); +::windows_core::imp::interface_hierarchy!(IDxcCompiler2, ::windows_core::IUnknown, IDxcCompiler); impl IDxcCompiler2 { pub unsafe fn Compile(&self, psource: P0, psourcename: P1, pentrypoint: P2, ptargetprofile: P3, parguments: ::core::option::Option<&[::windows_core::PCWSTR]>, pdefines: &[DxcDefine], pincludehandler: P4) -> ::windows_core::Result where @@ -268,46 +219,31 @@ impl IDxcCompiler2 { .ok() } } -::windows_core::imp::interface_hierarchy!(IDxcCompiler2, ::windows_core::IUnknown, IDxcCompiler); -unsafe impl ::windows_core::Interface for IDxcCompiler2 { - type Vtable = IDxcCompiler2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDxcCompiler2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa005a9d9_b8bb_4594_b5c9_0e633bec4d37); -} #[repr(C)] #[doc(hidden)] pub struct IDxcCompiler2_Vtbl { pub base__: IDxcCompiler_Vtbl, pub CompileWithDebug: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psource: *mut ::core::ffi::c_void, psourcename: ::windows_core::PCWSTR, pentrypoint: ::windows_core::PCWSTR, ptargetprofile: ::windows_core::PCWSTR, parguments: *const ::windows_core::PCWSTR, argcount: u32, pdefines: *const DxcDefine, definecount: u32, pincludehandler: *mut ::core::ffi::c_void, ppresult: *mut *mut ::core::ffi::c_void, ppdebugblobname: *mut ::windows_core::PWSTR, ppdebugblob: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDxcCompiler3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDxcCompiler3, IDxcCompiler3_Vtbl, 0x228b4687_5a6a_4730_900c_9702b2203f54); +::windows_core::imp::interface_hierarchy!(IDxcCompiler3, ::windows_core::IUnknown); impl IDxcCompiler3 { pub unsafe fn Compile(&self, psource: *const DxcBuffer, parguments: ::core::option::Option<&[::windows_core::PCWSTR]>, pincludehandler: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) } pub unsafe fn Disassemble(&self, pobject: *const DxcBuffer) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).Disassemble)(::windows_core::Interface::as_raw(self), pobject, &T::IID, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDxcCompiler3, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDxcCompiler3 { - type Vtable = IDxcCompiler3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDxcCompiler3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x228b4687_5a6a_4730_900c_9702b2203f54); -} #[repr(C)] #[doc(hidden)] pub struct IDxcCompiler3_Vtbl { @@ -315,9 +251,8 @@ pub struct IDxcCompiler3_Vtbl { pub Compile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psource: *const DxcBuffer, parguments: *const ::windows_core::PCWSTR, argcount: u32, pincludehandler: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppresult: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Disassemble: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pobject: *const DxcBuffer, riid: *const ::windows_core::GUID, ppresult: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDxcCompilerArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDxcCompilerArgs, IDxcCompilerArgs_Vtbl, 0x73effe2a_70dc_45f8_9690_eff64c02429d); +::windows_core::imp::interface_hierarchy!(IDxcCompilerArgs, ::windows_core::IUnknown); impl IDxcCompilerArgs { pub unsafe fn GetArguments(&self) -> *mut ::windows_core::PCWSTR { (::windows_core::Interface::vtable(self).GetArguments)(::windows_core::Interface::as_raw(self)) @@ -335,13 +270,6 @@ impl IDxcCompilerArgs { (::windows_core::Interface::vtable(self).AddDefines)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pdefines.as_ptr()), pdefines.len().try_into().unwrap()).ok() } } -::windows_core::imp::interface_hierarchy!(IDxcCompilerArgs, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDxcCompilerArgs { - type Vtable = IDxcCompilerArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDxcCompilerArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x73effe2a_70dc_45f8_9690_eff64c02429d); -} #[repr(C)] #[doc(hidden)] pub struct IDxcCompilerArgs_Vtbl { @@ -352,9 +280,8 @@ pub struct IDxcCompilerArgs_Vtbl { pub AddArgumentsUTF8: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, parguments: *const ::windows_core::PCSTR, argcount: u32) -> ::windows_core::HRESULT, pub AddDefines: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdefines: *const DxcDefine, definecount: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDxcContainerBuilder(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDxcContainerBuilder, IDxcContainerBuilder_Vtbl, 0x334b1f50_2292_4b35_99a1_25588d8c17fe); +::windows_core::imp::interface_hierarchy!(IDxcContainerBuilder, ::windows_core::IUnknown); impl IDxcContainerBuilder { pub unsafe fn Load(&self, pdxilcontainerheader: P0) -> ::windows_core::Result<()> where @@ -376,13 +303,6 @@ impl IDxcContainerBuilder { (::windows_core::Interface::vtable(self).SerializeContainer)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDxcContainerBuilder, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDxcContainerBuilder { - type Vtable = IDxcContainerBuilder_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDxcContainerBuilder { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x334b1f50_2292_4b35_99a1_25588d8c17fe); -} #[repr(C)] #[doc(hidden)] pub struct IDxcContainerBuilder_Vtbl { @@ -392,9 +312,8 @@ pub struct IDxcContainerBuilder_Vtbl { pub RemovePart: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fourcc: u32) -> ::windows_core::HRESULT, pub SerializeContainer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppresult: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDxcContainerReflection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDxcContainerReflection, IDxcContainerReflection_Vtbl, 0xd2c21b26_8350_4bdc_976a_331ce6f4c54c); +::windows_core::imp::interface_hierarchy!(IDxcContainerReflection, ::windows_core::IUnknown); impl IDxcContainerReflection { pub unsafe fn Load(&self, pcontainer: P0) -> ::windows_core::Result<()> where @@ -422,13 +341,6 @@ impl IDxcContainerReflection { (::windows_core::Interface::vtable(self).GetPartReflection)(::windows_core::Interface::as_raw(self), idx, iid, ppvobject).ok() } } -::windows_core::imp::interface_hierarchy!(IDxcContainerReflection, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDxcContainerReflection { - type Vtable = IDxcContainerReflection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDxcContainerReflection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd2c21b26_8350_4bdc_976a_331ce6f4c54c); -} #[repr(C)] #[doc(hidden)] pub struct IDxcContainerReflection_Vtbl { @@ -440,27 +352,19 @@ pub struct IDxcContainerReflection_Vtbl { pub FindFirstPartKind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, kind: u32, presult: *mut u32) -> ::windows_core::HRESULT, pub GetPartReflection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, idx: u32, iid: *const ::windows_core::GUID, ppvobject: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDxcExtraOutputs(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDxcExtraOutputs, IDxcExtraOutputs_Vtbl, 0x319b37a2_a5c2_494a_a5de_4801b2faf989); +::windows_core::imp::interface_hierarchy!(IDxcExtraOutputs, ::windows_core::IUnknown); impl IDxcExtraOutputs { pub unsafe fn GetOutputCount(&self) -> u32 { (::windows_core::Interface::vtable(self).GetOutputCount)(::windows_core::Interface::as_raw(self)) } pub unsafe fn GetOutput(&self, uindex: u32, ppoutputtype: ::core::option::Option<*mut ::core::option::Option>, ppoutputname: ::core::option::Option<*mut ::core::option::Option>, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).GetOutput)(::windows_core::Interface::as_raw(self), uindex, &T::IID, result__ as *mut _ as *mut _, ::core::mem::transmute(ppoutputtype.unwrap_or(::std::ptr::null_mut())), ::core::mem::transmute(ppoutputname.unwrap_or(::std::ptr::null_mut()))).ok() } } -::windows_core::imp::interface_hierarchy!(IDxcExtraOutputs, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDxcExtraOutputs { - type Vtable = IDxcExtraOutputs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDxcExtraOutputs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x319b37a2_a5c2_494a_a5de_4801b2faf989); -} #[repr(C)] #[doc(hidden)] pub struct IDxcExtraOutputs_Vtbl { @@ -468,9 +372,8 @@ pub struct IDxcExtraOutputs_Vtbl { pub GetOutputCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> u32, pub GetOutput: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uindex: u32, iid: *const ::windows_core::GUID, ppvobject: *mut *mut ::core::ffi::c_void, ppoutputtype: *mut *mut ::core::ffi::c_void, ppoutputname: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDxcIncludeHandler(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDxcIncludeHandler, IDxcIncludeHandler_Vtbl, 0x7f61fc7d_950d_467f_b3e3_3c02fb49187c); +::windows_core::imp::interface_hierarchy!(IDxcIncludeHandler, ::windows_core::IUnknown); impl IDxcIncludeHandler { pub unsafe fn LoadSource(&self, pfilename: P0) -> ::windows_core::Result where @@ -480,22 +383,14 @@ impl IDxcIncludeHandler { (::windows_core::Interface::vtable(self).LoadSource)(::windows_core::Interface::as_raw(self), pfilename.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDxcIncludeHandler, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDxcIncludeHandler { - type Vtable = IDxcIncludeHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDxcIncludeHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7f61fc7d_950d_467f_b3e3_3c02fb49187c); -} #[repr(C)] #[doc(hidden)] pub struct IDxcIncludeHandler_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub LoadSource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfilename: ::windows_core::PCWSTR, ppincludesource: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDxcLibrary(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDxcLibrary, IDxcLibrary_Vtbl, 0xe5204dc7_d18c_4c3c_bdfb_851673980fe7); +::windows_core::imp::interface_hierarchy!(IDxcLibrary, ::windows_core::IUnknown); impl IDxcLibrary { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -564,13 +459,6 @@ impl IDxcLibrary { (::windows_core::Interface::vtable(self).GetBlobAsUtf16)(::windows_core::Interface::as_raw(self), pblob.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDxcLibrary, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDxcLibrary { - type Vtable = IDxcLibrary_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDxcLibrary { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe5204dc7_d18c_4c3c_bdfb_851673980fe7); -} #[repr(C)] #[doc(hidden)] pub struct IDxcLibrary_Vtbl { @@ -595,9 +483,8 @@ pub struct IDxcLibrary_Vtbl { pub GetBlobAsUtf8: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pblob: *mut ::core::ffi::c_void, pblobencoding: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetBlobAsUtf16: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pblob: *mut ::core::ffi::c_void, pblobencoding: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDxcLinker(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDxcLinker, IDxcLinker_Vtbl, 0xf1b5be2a_62dd_4327_a1c2_42ac1e1e78e6); +::windows_core::imp::interface_hierarchy!(IDxcLinker, ::windows_core::IUnknown); impl IDxcLinker { pub unsafe fn RegisterLibrary(&self, plibname: P0, plib: P1) -> ::windows_core::Result<()> where @@ -615,13 +502,6 @@ impl IDxcLinker { (::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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDxcLinker, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDxcLinker { - type Vtable = IDxcLinker_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDxcLinker { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf1b5be2a_62dd_4327_a1c2_42ac1e1e78e6); -} #[repr(C)] #[doc(hidden)] pub struct IDxcLinker_Vtbl { @@ -629,9 +509,8 @@ pub struct IDxcLinker_Vtbl { pub RegisterLibrary: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plibname: ::windows_core::PCWSTR, plib: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Link: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pentryname: ::windows_core::PCWSTR, ptargetprofile: ::windows_core::PCWSTR, plibnames: *const ::windows_core::PCWSTR, libcount: u32, parguments: *const ::windows_core::PCWSTR, argcount: u32, ppresult: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDxcOperationResult(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDxcOperationResult, IDxcOperationResult_Vtbl, 0xcedb484a_d4e9_445a_b991_ca21ca157dc2); +::windows_core::imp::interface_hierarchy!(IDxcOperationResult, ::windows_core::IUnknown); impl IDxcOperationResult { pub unsafe fn GetStatus(&self) -> ::windows_core::Result<::windows_core::HRESULT> { let mut result__ = ::std::mem::zeroed(); @@ -646,13 +525,6 @@ impl IDxcOperationResult { (::windows_core::Interface::vtable(self).GetErrorBuffer)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDxcOperationResult, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDxcOperationResult { - type Vtable = IDxcOperationResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDxcOperationResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcedb484a_d4e9_445a_b991_ca21ca157dc2); -} #[repr(C)] #[doc(hidden)] pub struct IDxcOperationResult_Vtbl { @@ -661,9 +533,8 @@ pub struct IDxcOperationResult_Vtbl { pub GetResult: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppresult: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetErrorBuffer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pperrors: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDxcOptimizer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDxcOptimizer, IDxcOptimizer_Vtbl, 0x25740e2e_9cba_401b_9119_4fb42f39f270); +::windows_core::imp::interface_hierarchy!(IDxcOptimizer, ::windows_core::IUnknown); impl IDxcOptimizer { pub unsafe fn GetAvailablePassCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -680,13 +551,6 @@ impl IDxcOptimizer { (::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::imp::interface_hierarchy!(IDxcOptimizer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDxcOptimizer { - type Vtable = IDxcOptimizer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDxcOptimizer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x25740e2e_9cba_401b_9119_4fb42f39f270); -} #[repr(C)] #[doc(hidden)] pub struct IDxcOptimizer_Vtbl { @@ -695,9 +559,8 @@ pub struct IDxcOptimizer_Vtbl { pub GetAvailablePass: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, ppresult: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RunOptimizer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pblob: *mut ::core::ffi::c_void, ppoptions: *const ::windows_core::PCWSTR, optioncount: u32, poutputmodule: *mut *mut ::core::ffi::c_void, ppoutputtext: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDxcOptimizerPass(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDxcOptimizerPass, IDxcOptimizerPass_Vtbl, 0xae2cd79f_cc22_453f_9b6b_b124e7a5204c); +::windows_core::imp::interface_hierarchy!(IDxcOptimizerPass, ::windows_core::IUnknown); impl IDxcOptimizerPass { pub unsafe fn GetOptionName(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); @@ -720,13 +583,6 @@ impl IDxcOptimizerPass { (::windows_core::Interface::vtable(self).GetOptionArgDescription)(::windows_core::Interface::as_raw(self), argindex, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDxcOptimizerPass, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDxcOptimizerPass { - type Vtable = IDxcOptimizerPass_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDxcOptimizerPass { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xae2cd79f_cc22_453f_9b6b_b124e7a5204c); -} #[repr(C)] #[doc(hidden)] pub struct IDxcOptimizerPass_Vtbl { @@ -737,9 +593,8 @@ pub struct IDxcOptimizerPass_Vtbl { pub GetOptionArgName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, argindex: u32, ppresult: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, pub GetOptionArgDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, argindex: u32, ppresult: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDxcPdbUtils(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDxcPdbUtils, IDxcPdbUtils_Vtbl, 0xe6c9647e_9d6a_4c3b_b94c_524b5a6c343d); +::windows_core::imp::interface_hierarchy!(IDxcPdbUtils, ::windows_core::IUnknown); impl IDxcPdbUtils { pub unsafe fn Load(&self, ppdbordxil: P0) -> ::windows_core::Result<()> where @@ -841,13 +696,6 @@ impl IDxcPdbUtils { (::windows_core::Interface::vtable(self).OverrideRootSignature)(::windows_core::Interface::as_raw(self), prootsignature.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IDxcPdbUtils, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDxcPdbUtils { - type Vtable = IDxcPdbUtils_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDxcPdbUtils { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe6c9647e_9d6a_4c3b_b94c_524b5a6c343d); -} #[repr(C)] #[doc(hidden)] pub struct IDxcPdbUtils_Vtbl { @@ -877,9 +725,8 @@ pub struct IDxcPdbUtils_Vtbl { pub OverrideArgs: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pargpairs: *const DxcArgPair, unumargpairs: u32) -> ::windows_core::HRESULT, pub OverrideRootSignature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prootsignature: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDxcResult(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDxcResult, IDxcResult_Vtbl, 0x58346cda_dde7_4497_9461_6f87af5e0659); +::windows_core::imp::interface_hierarchy!(IDxcResult, ::windows_core::IUnknown, IDxcOperationResult); impl IDxcResult { pub unsafe fn GetStatus(&self) -> ::windows_core::Result<::windows_core::HRESULT> { let mut result__ = ::std::mem::zeroed(); @@ -898,7 +745,7 @@ impl IDxcResult { } pub unsafe fn GetOutput(&self, dxcoutkind: DXC_OUT_KIND, ppoutputname: *mut ::core::option::Option, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).GetOutput)(::windows_core::Interface::as_raw(self), dxcoutkind, &T::IID, result__ as *mut _ as *mut _, ::core::mem::transmute(ppoutputname)).ok() } @@ -912,13 +759,6 @@ impl IDxcResult { (::windows_core::Interface::vtable(self).PrimaryOutput)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(IDxcResult, ::windows_core::IUnknown, IDxcOperationResult); -unsafe impl ::windows_core::Interface for IDxcResult { - type Vtable = IDxcResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDxcResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x58346cda_dde7_4497_9461_6f87af5e0659); -} #[repr(C)] #[doc(hidden)] pub struct IDxcResult_Vtbl { @@ -929,9 +769,8 @@ pub struct IDxcResult_Vtbl { pub GetOutputByIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32) -> DXC_OUT_KIND, pub PrimaryOutput: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> DXC_OUT_KIND, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDxcUtils(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDxcUtils, IDxcUtils_Vtbl, 0x4605c4cb_2019_492a_ada4_65f20bb7d67f); +::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 @@ -1013,13 +852,6 @@ impl IDxcUtils { (::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::imp::interface_hierarchy!(IDxcUtils, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDxcUtils { - type Vtable = IDxcUtils_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDxcUtils { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4605c4cb_2019_492a_ada4_65f20bb7d67f); -} #[repr(C)] #[doc(hidden)] pub struct IDxcUtils_Vtbl { @@ -1044,9 +876,8 @@ pub struct IDxcUtils_Vtbl { pub BuildArguments: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psourcename: ::windows_core::PCWSTR, pentrypoint: ::windows_core::PCWSTR, ptargetprofile: ::windows_core::PCWSTR, parguments: *const ::windows_core::PCWSTR, argcount: u32, pdefines: *const DxcDefine, definecount: u32, ppargs: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetPDBContents: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppdbblob: *mut ::core::ffi::c_void, pphash: *mut *mut ::core::ffi::c_void, ppcontainer: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDxcValidator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDxcValidator, IDxcValidator_Vtbl, 0xa6e82bd2_1fd7_4826_9811_2857e797f49a); +::windows_core::imp::interface_hierarchy!(IDxcValidator, ::windows_core::IUnknown); impl IDxcValidator { pub unsafe fn Validate(&self, pshader: P0, flags: u32) -> ::windows_core::Result where @@ -1056,22 +887,14 @@ impl IDxcValidator { (::windows_core::Interface::vtable(self).Validate)(::windows_core::Interface::as_raw(self), pshader.into_param().abi(), flags, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDxcValidator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDxcValidator { - type Vtable = IDxcValidator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDxcValidator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa6e82bd2_1fd7_4826_9811_2857e797f49a); -} #[repr(C)] #[doc(hidden)] pub struct IDxcValidator_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Validate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pshader: *mut ::core::ffi::c_void, flags: u32, ppresult: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDxcValidator2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDxcValidator2, IDxcValidator2_Vtbl, 0x458e1fd1_b1b2_4750_a6e1_9c10f03bed92); +::windows_core::imp::interface_hierarchy!(IDxcValidator2, ::windows_core::IUnknown, IDxcValidator); impl IDxcValidator2 { pub unsafe fn Validate(&self, pshader: P0, flags: u32) -> ::windows_core::Result where @@ -1088,22 +911,14 @@ impl IDxcValidator2 { (::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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDxcValidator2, ::windows_core::IUnknown, IDxcValidator); -unsafe impl ::windows_core::Interface for IDxcValidator2 { - type Vtable = IDxcValidator2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDxcValidator2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x458e1fd1_b1b2_4750_a6e1_9c10f03bed92); -} #[repr(C)] #[doc(hidden)] pub struct IDxcValidator2_Vtbl { pub base__: IDxcValidator_Vtbl, pub ValidateWithDebug: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pshader: *mut ::core::ffi::c_void, flags: u32, poptdebugbitcode: *const DxcBuffer, ppresult: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDxcVersionInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDxcVersionInfo, IDxcVersionInfo_Vtbl, 0xb04f5b50_2059_4f12_a8ff_a1e0cde1cc7e); +::windows_core::imp::interface_hierarchy!(IDxcVersionInfo, ::windows_core::IUnknown); impl IDxcVersionInfo { pub unsafe fn GetVersion(&self, pmajor: *mut u32, pminor: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetVersion)(::windows_core::Interface::as_raw(self), pmajor, pminor).ok() @@ -1113,13 +928,6 @@ impl IDxcVersionInfo { (::windows_core::Interface::vtable(self).GetFlags)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDxcVersionInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDxcVersionInfo { - type Vtable = IDxcVersionInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDxcVersionInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb04f5b50_2059_4f12_a8ff_a1e0cde1cc7e); -} #[repr(C)] #[doc(hidden)] pub struct IDxcVersionInfo_Vtbl { @@ -1127,9 +935,8 @@ pub struct IDxcVersionInfo_Vtbl { pub GetVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pmajor: *mut u32, pminor: *mut u32) -> ::windows_core::HRESULT, pub GetFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pflags: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDxcVersionInfo2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDxcVersionInfo2, IDxcVersionInfo2_Vtbl, 0xfb6904c4_42f0_4b62_9c46_983af7da7c83); +::windows_core::imp::interface_hierarchy!(IDxcVersionInfo2, ::windows_core::IUnknown, IDxcVersionInfo); impl IDxcVersionInfo2 { pub unsafe fn GetVersion(&self, pmajor: *mut u32, pminor: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.GetVersion)(::windows_core::Interface::as_raw(self), pmajor, pminor).ok() @@ -1142,35 +949,20 @@ impl IDxcVersionInfo2 { (::windows_core::Interface::vtable(self).GetCommitInfo)(::windows_core::Interface::as_raw(self), pcommitcount, pcommithash).ok() } } -::windows_core::imp::interface_hierarchy!(IDxcVersionInfo2, ::windows_core::IUnknown, IDxcVersionInfo); -unsafe impl ::windows_core::Interface for IDxcVersionInfo2 { - type Vtable = IDxcVersionInfo2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDxcVersionInfo2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfb6904c4_42f0_4b62_9c46_983af7da7c83); -} #[repr(C)] #[doc(hidden)] pub struct IDxcVersionInfo2_Vtbl { pub base__: IDxcVersionInfo_Vtbl, pub GetCommitInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcommitcount: *mut u32, pcommithash: *mut *mut i8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDxcVersionInfo3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDxcVersionInfo3, IDxcVersionInfo3_Vtbl, 0x5e13e843_9d25_473c_9ad2_03b2d0b44b1e); +::windows_core::imp::interface_hierarchy!(IDxcVersionInfo3, ::windows_core::IUnknown); impl IDxcVersionInfo3 { pub unsafe fn GetCustomVersionString(&self) -> ::windows_core::Result<*mut i8> { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetCustomVersionString)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDxcVersionInfo3, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDxcVersionInfo3 { - type Vtable = IDxcVersionInfo3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDxcVersionInfo3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5e13e843_9d25_473c_9ad2_03b2d0b44b1e); -} #[repr(C)] #[doc(hidden)] pub struct IDxcVersionInfo3_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D/impl.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D/impl.rs index a23a867bc2..a87bcb5143 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D/impl.rs @@ -22,7 +22,7 @@ impl ID3DBlob_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ID3DDestructionNotifier_Impl: Sized { @@ -55,7 +55,7 @@ impl ID3DDestructionNotifier_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ID3DInclude_Impl: Sized { 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 0247e6e684..de955be15a 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D/mod.rs @@ -4,9 +4,8 @@ pub mod Dxc; #[cfg(feature = "Win32_Graphics_Direct3D_Fxc")] #[doc = "Required features: `\"Win32_Graphics_Direct3D_Fxc\"`"] pub mod Fxc; -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3DBlob(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3DBlob, ID3DBlob_Vtbl, 0x8ba5fb08_5195_40e2_ac58_0d989c3a0102); +::windows_core::imp::interface_hierarchy!(ID3DBlob, ::windows_core::IUnknown); impl ID3DBlob { pub unsafe fn GetBufferPointer(&self) -> *mut ::core::ffi::c_void { (::windows_core::Interface::vtable(self).GetBufferPointer)(::windows_core::Interface::as_raw(self)) @@ -15,15 +14,8 @@ impl ID3DBlob { (::windows_core::Interface::vtable(self).GetBufferSize)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(ID3DBlob, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID3DBlob {} unsafe impl ::core::marker::Sync for ID3DBlob {} -unsafe impl ::windows_core::Interface for ID3DBlob { - type Vtable = ID3DBlob_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3DBlob { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8ba5fb08_5195_40e2_ac58_0d989c3a0102); -} #[repr(C)] #[doc(hidden)] pub struct ID3DBlob_Vtbl { @@ -31,9 +23,8 @@ pub struct ID3DBlob_Vtbl { pub GetBufferPointer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> *mut ::core::ffi::c_void, pub GetBufferSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3DDestructionNotifier(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3DDestructionNotifier, ID3DDestructionNotifier_Vtbl, 0xa06eb39a_50da_425b_8c31_4eecd6c270f3); +::windows_core::imp::interface_hierarchy!(ID3DDestructionNotifier, ::windows_core::IUnknown); impl ID3DDestructionNotifier { pub unsafe fn RegisterDestructionCallback(&self, callbackfn: PFN_DESTRUCTION_CALLBACK, pdata: *const ::core::ffi::c_void) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -43,15 +34,8 @@ impl ID3DDestructionNotifier { (::windows_core::Interface::vtable(self).UnregisterDestructionCallback)(::windows_core::Interface::as_raw(self), callbackid).ok() } } -::windows_core::imp::interface_hierarchy!(ID3DDestructionNotifier, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID3DDestructionNotifier {} unsafe impl ::core::marker::Sync for ID3DDestructionNotifier {} -unsafe impl ::windows_core::Interface for ID3DDestructionNotifier { - type Vtable = ID3DDestructionNotifier_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3DDestructionNotifier { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa06eb39a_50da_425b_8c31_4eecd6c270f3); -} #[repr(C)] #[doc(hidden)] pub struct ID3DDestructionNotifier_Vtbl { @@ -59,9 +43,7 @@ pub struct ID3DDestructionNotifier_Vtbl { pub RegisterDestructionCallback: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, callbackfn: PFN_DESTRUCTION_CALLBACK, pdata: *const ::core::ffi::c_void, pcallbackid: *mut u32) -> ::windows_core::HRESULT, pub UnregisterDestructionCallback: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, callbackid: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3DInclude(::std::ptr::NonNull<::std::ffi::c_void>); +::windows_core::imp::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 @@ -75,9 +57,6 @@ impl ID3DInclude { } unsafe impl ::core::marker::Send for ID3DInclude {} unsafe impl ::core::marker::Sync for ID3DInclude {} -unsafe impl ::windows_core::Interface for ID3DInclude { - type Vtable = ID3DInclude_Vtbl; -} #[repr(C)] #[doc(hidden)] pub struct ID3DInclude_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D10/impl.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D10/impl.rs index 83e6fbfb82..0d282339a2 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D10/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D10/impl.rs @@ -36,7 +36,7 @@ impl ID3D10Asynchronous_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ID3D10BlendState_Impl: Sized + ID3D10DeviceChild_Impl { @@ -53,7 +53,7 @@ impl ID3D10BlendState_Vtbl { Self { base__: ID3D10DeviceChild_Vtbl::new::(), GetDesc: GetDesc:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ID3D10BlendState1_Impl: Sized + ID3D10BlendState_Impl { @@ -70,7 +70,7 @@ impl ID3D10BlendState1_Vtbl { Self { base__: ID3D10BlendState_Vtbl::new::(), GetDesc1: GetDesc1:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ID3D10Buffer_Impl: Sized + ID3D10Resource_Impl { @@ -104,7 +104,7 @@ impl ID3D10Buffer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ID3D10Counter_Impl: Sized + ID3D10Asynchronous_Impl { @@ -121,7 +121,7 @@ impl ID3D10Counter_Vtbl { Self { base__: ID3D10Asynchronous_Vtbl::new::(), GetDesc: GetDesc:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi\"`"] @@ -193,7 +193,7 @@ impl ID3D10Debug_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ID3D10DepthStencilState_Impl: Sized + ID3D10DeviceChild_Impl { @@ -210,7 +210,7 @@ impl ID3D10DepthStencilState_Vtbl { Self { base__: ID3D10DeviceChild_Vtbl::new::(), GetDesc: GetDesc:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] @@ -231,7 +231,7 @@ impl ID3D10DepthStencilView_Vtbl { Self { base__: ID3D10View_Vtbl::new::(), GetDesc: GetDesc:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D\"`, `\"Win32_Graphics_Dxgi_Common\"`"] @@ -943,7 +943,7 @@ impl ID3D10Device_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D\"`, `\"Win32_Graphics_Dxgi_Common\"`"] @@ -981,7 +981,7 @@ impl ID3D10Device1_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ID3D10DeviceChild_Impl: Sized { @@ -1022,7 +1022,7 @@ impl ID3D10DeviceChild_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ID3D10Effect_Impl: Sized { @@ -1132,7 +1132,7 @@ impl ID3D10Effect_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ID3D10EffectBlendVariable_Impl: Sized + ID3D10EffectVariable_Impl { @@ -1499,7 +1499,7 @@ impl ID3D10EffectPool_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), AsEffect: AsEffect:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ID3D10EffectRasterizerVariable_Impl: Sized + ID3D10EffectVariable_Impl { @@ -2384,7 +2384,7 @@ impl ID3D10GeometryShader_Vtbl { Self { base__: ID3D10DeviceChild_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ID3D10InfoQueue_Impl: Sized { @@ -2642,7 +2642,7 @@ impl ID3D10InfoQueue_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ID3D10InputLayout_Impl: Sized + ID3D10DeviceChild_Impl {} @@ -2652,7 +2652,7 @@ impl ID3D10InputLayout_Vtbl { Self { base__: ID3D10DeviceChild_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ID3D10Multithread_Impl: Sized { @@ -2693,7 +2693,7 @@ impl ID3D10Multithread_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ID3D10PixelShader_Impl: Sized + ID3D10DeviceChild_Impl {} @@ -2703,7 +2703,7 @@ impl ID3D10PixelShader_Vtbl { Self { base__: ID3D10DeviceChild_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ID3D10Predicate_Impl: Sized + ID3D10Query_Impl {} @@ -2713,7 +2713,7 @@ impl ID3D10Predicate_Vtbl { Self { base__: ID3D10Query_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ID3D10Query_Impl: Sized + ID3D10Asynchronous_Impl { @@ -2730,7 +2730,7 @@ impl ID3D10Query_Vtbl { Self { base__: ID3D10Asynchronous_Vtbl::new::(), GetDesc: GetDesc:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ID3D10RasterizerState_Impl: Sized + ID3D10DeviceChild_Impl { @@ -2747,7 +2747,7 @@ impl ID3D10RasterizerState_Vtbl { Self { base__: ID3D10DeviceChild_Vtbl::new::(), GetDesc: GetDesc:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] @@ -2768,7 +2768,7 @@ impl ID3D10RenderTargetView_Vtbl { Self { base__: ID3D10View_Vtbl::new::(), GetDesc: GetDesc:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ID3D10Resource_Impl: Sized + ID3D10DeviceChild_Impl { @@ -2802,7 +2802,7 @@ impl ID3D10Resource_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ID3D10SamplerState_Impl: Sized + ID3D10DeviceChild_Impl { @@ -2819,7 +2819,7 @@ impl ID3D10SamplerState_Vtbl { Self { base__: ID3D10DeviceChild_Vtbl::new::(), GetDesc: GetDesc:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D\"`"] @@ -2878,7 +2878,7 @@ impl ID3D10ShaderReflection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D\"`"] @@ -3042,7 +3042,7 @@ impl ID3D10ShaderReflection1_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D\"`"] @@ -3191,7 +3191,7 @@ impl ID3D10ShaderResourceView_Vtbl { Self { base__: ID3D10View_Vtbl::new::(), GetDesc: GetDesc:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D\"`, `\"Win32_Graphics_Dxgi_Common\"`"] @@ -3212,7 +3212,7 @@ impl ID3D10ShaderResourceView1_Vtbl { Self { base__: ID3D10ShaderResourceView_Vtbl::new::(), GetDesc1: GetDesc1:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ID3D10StateBlock_Impl: Sized { @@ -3259,7 +3259,7 @@ impl ID3D10StateBlock_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ID3D10SwitchToRef_Impl: Sized { @@ -3286,7 +3286,7 @@ impl ID3D10SwitchToRef_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] @@ -3324,7 +3324,7 @@ impl ID3D10Texture1D_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] @@ -3368,7 +3368,7 @@ impl ID3D10Texture2D_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] @@ -3412,7 +3412,7 @@ impl ID3D10Texture3D_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ID3D10VertexShader_Impl: Sized + ID3D10DeviceChild_Impl {} @@ -3422,7 +3422,7 @@ impl ID3D10VertexShader_Vtbl { Self { base__: ID3D10DeviceChild_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ID3D10View_Impl: Sized + ID3D10DeviceChild_Impl { @@ -3439,6 +3439,6 @@ impl ID3D10View_Vtbl { Self { base__: ID3D10DeviceChild_Vtbl::new::(), GetResource: GetResource:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } 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 8a4e3cf7aa..d39199dc33 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D10/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D10/mod.rs @@ -239,9 +239,8 @@ pub unsafe fn D3D10StateBlockMaskUnion(pa: *const D3D10_STATE_BLOCK_MASK, pb: *c ::windows_targets::link!("d3d10.dll" "system" fn D3D10StateBlockMaskUnion(pa : *const D3D10_STATE_BLOCK_MASK, pb : *const D3D10_STATE_BLOCK_MASK, presult : *mut D3D10_STATE_BLOCK_MASK) -> ::windows_core::HRESULT); D3D10StateBlockMaskUnion(pa, pb, presult).ok() } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D10Asynchronous(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D10Asynchronous, ID3D10Asynchronous_Vtbl, 0x9b7e4c0d_342c_4106_a19f_4f2704f689f0); +::windows_core::imp::interface_hierarchy!(ID3D10Asynchronous, ::windows_core::IUnknown, ID3D10DeviceChild); impl ID3D10Asynchronous { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -273,15 +272,8 @@ impl ID3D10Asynchronous { (::windows_core::Interface::vtable(self).GetDataSize)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(ID3D10Asynchronous, ::windows_core::IUnknown, ID3D10DeviceChild); unsafe impl ::core::marker::Send for ID3D10Asynchronous {} unsafe impl ::core::marker::Sync for ID3D10Asynchronous {} -unsafe impl ::windows_core::Interface for ID3D10Asynchronous { - type Vtable = ID3D10Asynchronous_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D10Asynchronous { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9b7e4c0d_342c_4106_a19f_4f2704f689f0); -} #[repr(C)] #[doc(hidden)] pub struct ID3D10Asynchronous_Vtbl { @@ -291,9 +283,8 @@ pub struct ID3D10Asynchronous_Vtbl { pub GetData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdata: *mut ::core::ffi::c_void, datasize: u32, getdataflags: u32) -> ::windows_core::HRESULT, pub GetDataSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> u32, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D10BlendState(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D10BlendState, ID3D10BlendState_Vtbl, 0xedad8d19_8a35_4d6d_8566_2ea276cde161); +::windows_core::imp::interface_hierarchy!(ID3D10BlendState, ::windows_core::IUnknown, ID3D10DeviceChild); impl ID3D10BlendState { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -316,24 +307,16 @@ impl ID3D10BlendState { (::windows_core::Interface::vtable(self).GetDesc)(::windows_core::Interface::as_raw(self), pdesc) } } -::windows_core::imp::interface_hierarchy!(ID3D10BlendState, ::windows_core::IUnknown, ID3D10DeviceChild); unsafe impl ::core::marker::Send for ID3D10BlendState {} unsafe impl ::core::marker::Sync for ID3D10BlendState {} -unsafe impl ::windows_core::Interface for ID3D10BlendState { - type Vtable = ID3D10BlendState_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D10BlendState { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xedad8d19_8a35_4d6d_8566_2ea276cde161); -} #[repr(C)] #[doc(hidden)] pub struct ID3D10BlendState_Vtbl { pub base__: ID3D10DeviceChild_Vtbl, pub GetDesc: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdesc: *mut D3D10_BLEND_DESC), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D10BlendState1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D10BlendState1, ID3D10BlendState1_Vtbl, 0xedad8d99_8a35_4d6d_8566_2ea276cde161); +::windows_core::imp::interface_hierarchy!(ID3D10BlendState1, ::windows_core::IUnknown, ID3D10DeviceChild, ID3D10BlendState); impl ID3D10BlendState1 { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -359,24 +342,16 @@ impl ID3D10BlendState1 { (::windows_core::Interface::vtable(self).GetDesc1)(::windows_core::Interface::as_raw(self), pdesc) } } -::windows_core::imp::interface_hierarchy!(ID3D10BlendState1, ::windows_core::IUnknown, ID3D10DeviceChild, ID3D10BlendState); unsafe impl ::core::marker::Send for ID3D10BlendState1 {} unsafe impl ::core::marker::Sync for ID3D10BlendState1 {} -unsafe impl ::windows_core::Interface for ID3D10BlendState1 { - type Vtable = ID3D10BlendState1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D10BlendState1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xedad8d99_8a35_4d6d_8566_2ea276cde161); -} #[repr(C)] #[doc(hidden)] pub struct ID3D10BlendState1_Vtbl { pub base__: ID3D10BlendState_Vtbl, pub GetDesc1: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdesc: *mut D3D10_BLEND_DESC1), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D10Buffer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D10Buffer, ID3D10Buffer_Vtbl, 0x9b7e4c02_342c_4106_a19f_4f2704f689f0); +::windows_core::imp::interface_hierarchy!(ID3D10Buffer, ::windows_core::IUnknown, ID3D10DeviceChild, ID3D10Resource); impl ID3D10Buffer { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -416,15 +391,8 @@ impl ID3D10Buffer { (::windows_core::Interface::vtable(self).GetDesc)(::windows_core::Interface::as_raw(self), pdesc) } } -::windows_core::imp::interface_hierarchy!(ID3D10Buffer, ::windows_core::IUnknown, ID3D10DeviceChild, ID3D10Resource); unsafe impl ::core::marker::Send for ID3D10Buffer {} unsafe impl ::core::marker::Sync for ID3D10Buffer {} -unsafe impl ::windows_core::Interface for ID3D10Buffer { - type Vtable = ID3D10Buffer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D10Buffer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9b7e4c02_342c_4106_a19f_4f2704f689f0); -} #[repr(C)] #[doc(hidden)] pub struct ID3D10Buffer_Vtbl { @@ -433,9 +401,8 @@ pub struct ID3D10Buffer_Vtbl { pub Unmap: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), pub GetDesc: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdesc: *mut D3D10_BUFFER_DESC), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D10Counter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D10Counter, ID3D10Counter_Vtbl, 0x9b7e4c11_342c_4106_a19f_4f2704f689f0); +::windows_core::imp::interface_hierarchy!(ID3D10Counter, ::windows_core::IUnknown, ID3D10DeviceChild, ID3D10Asynchronous); impl ID3D10Counter { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -472,24 +439,16 @@ impl ID3D10Counter { ::std::mem::transmute(result__) } } -::windows_core::imp::interface_hierarchy!(ID3D10Counter, ::windows_core::IUnknown, ID3D10DeviceChild, ID3D10Asynchronous); unsafe impl ::core::marker::Send for ID3D10Counter {} unsafe impl ::core::marker::Sync for ID3D10Counter {} -unsafe impl ::windows_core::Interface for ID3D10Counter { - type Vtable = ID3D10Counter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D10Counter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9b7e4c11_342c_4106_a19f_4f2704f689f0); -} #[repr(C)] #[doc(hidden)] pub struct ID3D10Counter_Vtbl { pub base__: ID3D10Asynchronous_Vtbl, pub GetDesc: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdesc: *mut D3D10_COUNTER_DESC), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D10Debug(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D10Debug, ID3D10Debug_Vtbl, 0x9b7e4e01_342c_4106_a19f_4f2704f689f0); +::windows_core::imp::interface_hierarchy!(ID3D10Debug, ::windows_core::IUnknown); impl ID3D10Debug { pub unsafe fn SetFeatureMask(&self, mask: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetFeatureMask)(::windows_core::Interface::as_raw(self), mask).ok() @@ -521,15 +480,8 @@ impl ID3D10Debug { (::windows_core::Interface::vtable(self).Validate)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ID3D10Debug, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID3D10Debug {} unsafe impl ::core::marker::Sync for ID3D10Debug {} -unsafe impl ::windows_core::Interface for ID3D10Debug { - type Vtable = ID3D10Debug_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D10Debug { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9b7e4e01_342c_4106_a19f_4f2704f689f0); -} #[repr(C)] #[doc(hidden)] pub struct ID3D10Debug_Vtbl { @@ -548,9 +500,8 @@ pub struct ID3D10Debug_Vtbl { GetSwapChain: usize, pub Validate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D10DepthStencilState(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D10DepthStencilState, ID3D10DepthStencilState_Vtbl, 0x2b4b1cc8_a4ad_41f8_8322_ca86fc3ec675); +::windows_core::imp::interface_hierarchy!(ID3D10DepthStencilState, ::windows_core::IUnknown, ID3D10DeviceChild); impl ID3D10DepthStencilState { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -573,24 +524,16 @@ impl ID3D10DepthStencilState { (::windows_core::Interface::vtable(self).GetDesc)(::windows_core::Interface::as_raw(self), pdesc) } } -::windows_core::imp::interface_hierarchy!(ID3D10DepthStencilState, ::windows_core::IUnknown, ID3D10DeviceChild); unsafe impl ::core::marker::Send for ID3D10DepthStencilState {} unsafe impl ::core::marker::Sync for ID3D10DepthStencilState {} -unsafe impl ::windows_core::Interface for ID3D10DepthStencilState { - type Vtable = ID3D10DepthStencilState_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D10DepthStencilState { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2b4b1cc8_a4ad_41f8_8322_ca86fc3ec675); -} #[repr(C)] #[doc(hidden)] pub struct ID3D10DepthStencilState_Vtbl { pub base__: ID3D10DeviceChild_Vtbl, pub GetDesc: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdesc: *mut D3D10_DEPTH_STENCIL_DESC), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D10DepthStencilView(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D10DepthStencilView, ID3D10DepthStencilView_Vtbl, 0x9b7e4c09_342c_4106_a19f_4f2704f689f0); +::windows_core::imp::interface_hierarchy!(ID3D10DepthStencilView, ::windows_core::IUnknown, ID3D10DeviceChild, ID3D10View); impl ID3D10DepthStencilView { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -620,15 +563,8 @@ impl ID3D10DepthStencilView { (::windows_core::Interface::vtable(self).GetDesc)(::windows_core::Interface::as_raw(self), pdesc) } } -::windows_core::imp::interface_hierarchy!(ID3D10DepthStencilView, ::windows_core::IUnknown, ID3D10DeviceChild, ID3D10View); unsafe impl ::core::marker::Send for ID3D10DepthStencilView {} unsafe impl ::core::marker::Sync for ID3D10DepthStencilView {} -unsafe impl ::windows_core::Interface for ID3D10DepthStencilView { - type Vtable = ID3D10DepthStencilView_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D10DepthStencilView { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9b7e4c09_342c_4106_a19f_4f2704f689f0); -} #[repr(C)] #[doc(hidden)] pub struct ID3D10DepthStencilView_Vtbl { @@ -638,9 +574,8 @@ pub struct ID3D10DepthStencilView_Vtbl { #[cfg(not(feature = "Win32_Graphics_Dxgi_Common"))] GetDesc: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D10Device(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D10Device, ID3D10Device_Vtbl, 0x9b7e4c0f_342c_4106_a19f_4f2704f689f0); +::windows_core::imp::interface_hierarchy!(ID3D10Device, ::windows_core::IUnknown); impl ID3D10Device { pub unsafe fn VSSetConstantBuffers(&self, startslot: u32, ppconstantbuffers: ::core::option::Option<&[::core::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()))) @@ -1045,15 +980,8 @@ impl ID3D10Device { (::windows_core::Interface::vtable(self).GetTextFilterSize)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pwidth.unwrap_or(::std::ptr::null_mut())), ::core::mem::transmute(pheight.unwrap_or(::std::ptr::null_mut()))) } } -::windows_core::imp::interface_hierarchy!(ID3D10Device, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID3D10Device {} unsafe impl ::core::marker::Sync for ID3D10Device {} -unsafe impl ::windows_core::Interface for ID3D10Device { - type Vtable = ID3D10Device_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D10Device { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9b7e4c0f_342c_4106_a19f_4f2704f689f0); -} #[repr(C)] #[doc(hidden)] pub struct ID3D10Device_Vtbl { @@ -1196,9 +1124,8 @@ pub struct ID3D10Device_Vtbl { pub SetTextFilterSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, width: u32, height: u32), pub GetTextFilterSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwidth: *mut u32, pheight: *mut u32), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D10Device1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D10Device1, ID3D10Device1_Vtbl, 0x9b7e4c8f_342c_4106_a19f_4f2704f689f0); +::windows_core::imp::interface_hierarchy!(ID3D10Device1, ::windows_core::IUnknown, ID3D10Device); impl ID3D10Device1 { pub unsafe fn VSSetConstantBuffers(&self, startslot: u32, ppconstantbuffers: ::core::option::Option<&[::core::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()))) @@ -1617,15 +1544,8 @@ impl ID3D10Device1 { (::windows_core::Interface::vtable(self).GetFeatureLevel)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(ID3D10Device1, ::windows_core::IUnknown, ID3D10Device); unsafe impl ::core::marker::Send for ID3D10Device1 {} unsafe impl ::core::marker::Sync for ID3D10Device1 {} -unsafe impl ::windows_core::Interface for ID3D10Device1 { - type Vtable = ID3D10Device1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D10Device1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9b7e4c8f_342c_4106_a19f_4f2704f689f0); -} #[repr(C)] #[doc(hidden)] pub struct ID3D10Device1_Vtbl { @@ -1637,9 +1557,8 @@ pub struct ID3D10Device1_Vtbl { pub CreateBlendState1: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pblendstatedesc: *const D3D10_BLEND_DESC1, ppblendstate: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetFeatureLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> D3D10_FEATURE_LEVEL1, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D10DeviceChild(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D10DeviceChild, ID3D10DeviceChild_Vtbl, 0x9b7e4c00_342c_4106_a19f_4f2704f689f0); +::windows_core::imp::interface_hierarchy!(ID3D10DeviceChild, ::windows_core::IUnknown); impl ID3D10DeviceChild { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1659,15 +1578,8 @@ impl ID3D10DeviceChild { (::windows_core::Interface::vtable(self).SetPrivateDataInterface)(::windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ID3D10DeviceChild, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID3D10DeviceChild {} unsafe impl ::core::marker::Sync for ID3D10DeviceChild {} -unsafe impl ::windows_core::Interface for ID3D10DeviceChild { - type Vtable = ID3D10DeviceChild_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D10DeviceChild { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9b7e4c00_342c_4106_a19f_4f2704f689f0); -} #[repr(C)] #[doc(hidden)] pub struct ID3D10DeviceChild_Vtbl { @@ -1677,9 +1589,8 @@ pub struct ID3D10DeviceChild_Vtbl { pub SetPrivateData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guid: *const ::windows_core::GUID, datasize: u32, pdata: *const ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetPrivateDataInterface: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guid: *const ::windows_core::GUID, pdata: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D10Effect(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D10Effect, ID3D10Effect_Vtbl, 0x51b0ca8b_ec0b_4519_870d_8ee1cb5017c7); +::windows_core::imp::interface_hierarchy!(ID3D10Effect, ::windows_core::IUnknown); impl ID3D10Effect { pub unsafe fn IsValid(&self) -> super::super::Foundation::BOOL { (::windows_core::Interface::vtable(self).IsValid)(::windows_core::Interface::as_raw(self)) @@ -1734,15 +1645,8 @@ impl ID3D10Effect { (::windows_core::Interface::vtable(self).IsOptimized)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(ID3D10Effect, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID3D10Effect {} unsafe impl ::core::marker::Sync for ID3D10Effect {} -unsafe impl ::windows_core::Interface for ID3D10Effect { - type Vtable = ID3D10Effect_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D10Effect { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51b0ca8b_ec0b_4519_870d_8ee1cb5017c7); -} #[repr(C)] #[doc(hidden)] pub struct ID3D10Effect_Vtbl { @@ -1761,9 +1665,8 @@ pub struct ID3D10Effect_Vtbl { pub Optimize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub IsOptimized: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D10EffectBlendVariable(::std::ptr::NonNull<::std::ffi::c_void>); +::windows_core::imp::interface!(ID3D10EffectBlendVariable, ID3D10EffectBlendVariable_Vtbl); +::windows_core::imp::interface_hierarchy!(ID3D10EffectBlendVariable, ID3D10EffectVariable); impl ID3D10EffectBlendVariable { pub unsafe fn IsValid(&self) -> super::super::Foundation::BOOL { (::windows_core::Interface::vtable(self).base__.IsValid)(::windows_core::Interface::as_raw(self)) @@ -1857,12 +1760,8 @@ impl ID3D10EffectBlendVariable { (::windows_core::Interface::vtable(self).GetBackingStore)(::windows_core::Interface::as_raw(self), index, pblenddesc).ok() } } -::windows_core::imp::interface_hierarchy!(ID3D10EffectBlendVariable, ID3D10EffectVariable); unsafe impl ::core::marker::Send for ID3D10EffectBlendVariable {} unsafe impl ::core::marker::Sync for ID3D10EffectBlendVariable {} -unsafe impl ::windows_core::Interface for ID3D10EffectBlendVariable { - type Vtable = ID3D10EffectBlendVariable_Vtbl; -} #[repr(C)] #[doc(hidden)] pub struct ID3D10EffectBlendVariable_Vtbl { @@ -1870,9 +1769,8 @@ pub struct ID3D10EffectBlendVariable_Vtbl { pub GetBlendState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, ppblendstate: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetBackingStore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, pblenddesc: *mut D3D10_BLEND_DESC) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D10EffectConstantBuffer(::std::ptr::NonNull<::std::ffi::c_void>); +::windows_core::imp::interface!(ID3D10EffectConstantBuffer, ID3D10EffectConstantBuffer_Vtbl); +::windows_core::imp::interface_hierarchy!(ID3D10EffectConstantBuffer, ID3D10EffectVariable); impl ID3D10EffectConstantBuffer { pub unsafe fn IsValid(&self) -> super::super::Foundation::BOOL { (::windows_core::Interface::vtable(self).base__.IsValid)(::windows_core::Interface::as_raw(self)) @@ -1979,12 +1877,8 @@ impl ID3D10EffectConstantBuffer { (::windows_core::Interface::vtable(self).GetTextureBuffer)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ID3D10EffectConstantBuffer, ID3D10EffectVariable); unsafe impl ::core::marker::Send for ID3D10EffectConstantBuffer {} unsafe impl ::core::marker::Sync for ID3D10EffectConstantBuffer {} -unsafe impl ::windows_core::Interface for ID3D10EffectConstantBuffer { - type Vtable = ID3D10EffectConstantBuffer_Vtbl; -} #[repr(C)] #[doc(hidden)] pub struct ID3D10EffectConstantBuffer_Vtbl { @@ -1994,9 +1888,8 @@ pub struct ID3D10EffectConstantBuffer_Vtbl { pub SetTextureBuffer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptexturebuffer: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetTextureBuffer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pptexturebuffer: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D10EffectDepthStencilVariable(::std::ptr::NonNull<::std::ffi::c_void>); +::windows_core::imp::interface!(ID3D10EffectDepthStencilVariable, ID3D10EffectDepthStencilVariable_Vtbl); +::windows_core::imp::interface_hierarchy!(ID3D10EffectDepthStencilVariable, ID3D10EffectVariable); impl ID3D10EffectDepthStencilVariable { pub unsafe fn IsValid(&self) -> super::super::Foundation::BOOL { (::windows_core::Interface::vtable(self).base__.IsValid)(::windows_core::Interface::as_raw(self)) @@ -2090,12 +1983,8 @@ impl ID3D10EffectDepthStencilVariable { (::windows_core::Interface::vtable(self).GetBackingStore)(::windows_core::Interface::as_raw(self), index, pdepthstencildesc).ok() } } -::windows_core::imp::interface_hierarchy!(ID3D10EffectDepthStencilVariable, ID3D10EffectVariable); unsafe impl ::core::marker::Send for ID3D10EffectDepthStencilVariable {} unsafe impl ::core::marker::Sync for ID3D10EffectDepthStencilVariable {} -unsafe impl ::windows_core::Interface for ID3D10EffectDepthStencilVariable { - type Vtable = ID3D10EffectDepthStencilVariable_Vtbl; -} #[repr(C)] #[doc(hidden)] pub struct ID3D10EffectDepthStencilVariable_Vtbl { @@ -2103,9 +1992,8 @@ pub struct ID3D10EffectDepthStencilVariable_Vtbl { pub GetDepthStencilState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, ppdepthstencilstate: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetBackingStore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, pdepthstencildesc: *mut D3D10_DEPTH_STENCIL_DESC) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D10EffectDepthStencilViewVariable(::std::ptr::NonNull<::std::ffi::c_void>); +::windows_core::imp::interface!(ID3D10EffectDepthStencilViewVariable, ID3D10EffectDepthStencilViewVariable_Vtbl); +::windows_core::imp::interface_hierarchy!(ID3D10EffectDepthStencilViewVariable, ID3D10EffectVariable); impl ID3D10EffectDepthStencilViewVariable { pub unsafe fn IsValid(&self) -> super::super::Foundation::BOOL { (::windows_core::Interface::vtable(self).base__.IsValid)(::windows_core::Interface::as_raw(self)) @@ -2208,12 +2096,8 @@ impl ID3D10EffectDepthStencilViewVariable { (::windows_core::Interface::vtable(self).GetDepthStencilArray)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(ppresources.as_ptr()), offset, ppresources.len().try_into().unwrap()).ok() } } -::windows_core::imp::interface_hierarchy!(ID3D10EffectDepthStencilViewVariable, ID3D10EffectVariable); unsafe impl ::core::marker::Send for ID3D10EffectDepthStencilViewVariable {} unsafe impl ::core::marker::Sync for ID3D10EffectDepthStencilViewVariable {} -unsafe impl ::windows_core::Interface for ID3D10EffectDepthStencilViewVariable { - type Vtable = ID3D10EffectDepthStencilViewVariable_Vtbl; -} #[repr(C)] #[doc(hidden)] pub struct ID3D10EffectDepthStencilViewVariable_Vtbl { @@ -2223,9 +2107,8 @@ pub struct ID3D10EffectDepthStencilViewVariable_Vtbl { pub SetDepthStencilArray: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppresources: *const *mut ::core::ffi::c_void, offset: u32, count: u32) -> ::windows_core::HRESULT, pub GetDepthStencilArray: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppresources: *mut *mut ::core::ffi::c_void, offset: u32, count: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D10EffectMatrixVariable(::std::ptr::NonNull<::std::ffi::c_void>); +::windows_core::imp::interface!(ID3D10EffectMatrixVariable, ID3D10EffectMatrixVariable_Vtbl); +::windows_core::imp::interface_hierarchy!(ID3D10EffectMatrixVariable, ID3D10EffectVariable); impl ID3D10EffectMatrixVariable { pub unsafe fn IsValid(&self) -> super::super::Foundation::BOOL { (::windows_core::Interface::vtable(self).base__.IsValid)(::windows_core::Interface::as_raw(self)) @@ -2336,12 +2219,8 @@ impl ID3D10EffectMatrixVariable { (::windows_core::Interface::vtable(self).GetMatrixTransposeArray)(::windows_core::Interface::as_raw(self), pdata, offset, count).ok() } } -::windows_core::imp::interface_hierarchy!(ID3D10EffectMatrixVariable, ID3D10EffectVariable); unsafe impl ::core::marker::Send for ID3D10EffectMatrixVariable {} unsafe impl ::core::marker::Sync for ID3D10EffectMatrixVariable {} -unsafe impl ::windows_core::Interface for ID3D10EffectMatrixVariable { - type Vtable = ID3D10EffectMatrixVariable_Vtbl; -} #[repr(C)] #[doc(hidden)] pub struct ID3D10EffectMatrixVariable_Vtbl { @@ -2355,9 +2234,7 @@ pub struct ID3D10EffectMatrixVariable_Vtbl { pub SetMatrixTransposeArray: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdata: *mut f32, offset: u32, count: u32) -> ::windows_core::HRESULT, pub GetMatrixTransposeArray: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdata: *mut f32, offset: u32, count: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D10EffectPass(::std::ptr::NonNull<::std::ffi::c_void>); +::windows_core::imp::interface!(ID3D10EffectPass, ID3D10EffectPass_Vtbl); impl ID3D10EffectPass { pub unsafe fn IsValid(&self) -> super::super::Foundation::BOOL { (::windows_core::Interface::vtable(self).IsValid)(::windows_core::Interface::as_raw(self)) @@ -2392,9 +2269,6 @@ impl ID3D10EffectPass { } unsafe impl ::core::marker::Send for ID3D10EffectPass {} unsafe impl ::core::marker::Sync for ID3D10EffectPass {} -unsafe impl ::windows_core::Interface for ID3D10EffectPass { - type Vtable = ID3D10EffectPass_Vtbl; -} #[repr(C)] #[doc(hidden)] pub struct ID3D10EffectPass_Vtbl { @@ -2408,32 +2282,23 @@ pub struct ID3D10EffectPass_Vtbl { pub Apply: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: u32) -> ::windows_core::HRESULT, pub ComputeStateBlockMask: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstateblockmask: *mut D3D10_STATE_BLOCK_MASK) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D10EffectPool(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D10EffectPool, ID3D10EffectPool_Vtbl, 0x9537ab04_3250_412e_8213_fcd2f8677933); +::windows_core::imp::interface_hierarchy!(ID3D10EffectPool, ::windows_core::IUnknown); impl ID3D10EffectPool { pub unsafe fn AsEffect(&self) -> ::core::option::Option { (::windows_core::Interface::vtable(self).AsEffect)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(ID3D10EffectPool, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID3D10EffectPool {} unsafe impl ::core::marker::Sync for ID3D10EffectPool {} -unsafe impl ::windows_core::Interface for ID3D10EffectPool { - type Vtable = ID3D10EffectPool_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D10EffectPool { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9537ab04_3250_412e_8213_fcd2f8677933); -} #[repr(C)] #[doc(hidden)] pub struct ID3D10EffectPool_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub AsEffect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::core::option::Option, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D10EffectRasterizerVariable(::std::ptr::NonNull<::std::ffi::c_void>); +::windows_core::imp::interface!(ID3D10EffectRasterizerVariable, ID3D10EffectRasterizerVariable_Vtbl); +::windows_core::imp::interface_hierarchy!(ID3D10EffectRasterizerVariable, ID3D10EffectVariable); impl ID3D10EffectRasterizerVariable { pub unsafe fn IsValid(&self) -> super::super::Foundation::BOOL { (::windows_core::Interface::vtable(self).base__.IsValid)(::windows_core::Interface::as_raw(self)) @@ -2527,12 +2392,8 @@ impl ID3D10EffectRasterizerVariable { (::windows_core::Interface::vtable(self).GetBackingStore)(::windows_core::Interface::as_raw(self), index, prasterizerdesc).ok() } } -::windows_core::imp::interface_hierarchy!(ID3D10EffectRasterizerVariable, ID3D10EffectVariable); unsafe impl ::core::marker::Send for ID3D10EffectRasterizerVariable {} unsafe impl ::core::marker::Sync for ID3D10EffectRasterizerVariable {} -unsafe impl ::windows_core::Interface for ID3D10EffectRasterizerVariable { - type Vtable = ID3D10EffectRasterizerVariable_Vtbl; -} #[repr(C)] #[doc(hidden)] pub struct ID3D10EffectRasterizerVariable_Vtbl { @@ -2540,9 +2401,8 @@ pub struct ID3D10EffectRasterizerVariable_Vtbl { pub GetRasterizerState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, pprasterizerstate: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetBackingStore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, prasterizerdesc: *mut D3D10_RASTERIZER_DESC) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D10EffectRenderTargetViewVariable(::std::ptr::NonNull<::std::ffi::c_void>); +::windows_core::imp::interface!(ID3D10EffectRenderTargetViewVariable, ID3D10EffectRenderTargetViewVariable_Vtbl); +::windows_core::imp::interface_hierarchy!(ID3D10EffectRenderTargetViewVariable, ID3D10EffectVariable); impl ID3D10EffectRenderTargetViewVariable { pub unsafe fn IsValid(&self) -> super::super::Foundation::BOOL { (::windows_core::Interface::vtable(self).base__.IsValid)(::windows_core::Interface::as_raw(self)) @@ -2645,12 +2505,8 @@ impl ID3D10EffectRenderTargetViewVariable { (::windows_core::Interface::vtable(self).GetRenderTargetArray)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(ppresources.as_ptr()), offset, ppresources.len().try_into().unwrap()).ok() } } -::windows_core::imp::interface_hierarchy!(ID3D10EffectRenderTargetViewVariable, ID3D10EffectVariable); unsafe impl ::core::marker::Send for ID3D10EffectRenderTargetViewVariable {} unsafe impl ::core::marker::Sync for ID3D10EffectRenderTargetViewVariable {} -unsafe impl ::windows_core::Interface for ID3D10EffectRenderTargetViewVariable { - type Vtable = ID3D10EffectRenderTargetViewVariable_Vtbl; -} #[repr(C)] #[doc(hidden)] pub struct ID3D10EffectRenderTargetViewVariable_Vtbl { @@ -2660,9 +2516,8 @@ pub struct ID3D10EffectRenderTargetViewVariable_Vtbl { pub SetRenderTargetArray: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppresources: *const *mut ::core::ffi::c_void, offset: u32, count: u32) -> ::windows_core::HRESULT, pub GetRenderTargetArray: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppresources: *mut *mut ::core::ffi::c_void, offset: u32, count: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D10EffectSamplerVariable(::std::ptr::NonNull<::std::ffi::c_void>); +::windows_core::imp::interface!(ID3D10EffectSamplerVariable, ID3D10EffectSamplerVariable_Vtbl); +::windows_core::imp::interface_hierarchy!(ID3D10EffectSamplerVariable, ID3D10EffectVariable); impl ID3D10EffectSamplerVariable { pub unsafe fn IsValid(&self) -> super::super::Foundation::BOOL { (::windows_core::Interface::vtable(self).base__.IsValid)(::windows_core::Interface::as_raw(self)) @@ -2756,12 +2611,8 @@ impl ID3D10EffectSamplerVariable { (::windows_core::Interface::vtable(self).GetBackingStore)(::windows_core::Interface::as_raw(self), index, psamplerdesc).ok() } } -::windows_core::imp::interface_hierarchy!(ID3D10EffectSamplerVariable, ID3D10EffectVariable); unsafe impl ::core::marker::Send for ID3D10EffectSamplerVariable {} unsafe impl ::core::marker::Sync for ID3D10EffectSamplerVariable {} -unsafe impl ::windows_core::Interface for ID3D10EffectSamplerVariable { - type Vtable = ID3D10EffectSamplerVariable_Vtbl; -} #[repr(C)] #[doc(hidden)] pub struct ID3D10EffectSamplerVariable_Vtbl { @@ -2769,9 +2620,8 @@ pub struct ID3D10EffectSamplerVariable_Vtbl { pub GetSampler: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, ppsampler: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetBackingStore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, psamplerdesc: *mut D3D10_SAMPLER_DESC) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D10EffectScalarVariable(::std::ptr::NonNull<::std::ffi::c_void>); +::windows_core::imp::interface!(ID3D10EffectScalarVariable, ID3D10EffectScalarVariable_Vtbl); +::windows_core::imp::interface_hierarchy!(ID3D10EffectScalarVariable, ID3D10EffectVariable); impl ID3D10EffectScalarVariable { pub unsafe fn IsValid(&self) -> super::super::Foundation::BOOL { (::windows_core::Interface::vtable(self).base__.IsValid)(::windows_core::Interface::as_raw(self)) @@ -2900,12 +2750,8 @@ impl ID3D10EffectScalarVariable { (::windows_core::Interface::vtable(self).GetBoolArray)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pdata.as_ptr()), offset, pdata.len().try_into().unwrap()).ok() } } -::windows_core::imp::interface_hierarchy!(ID3D10EffectScalarVariable, ID3D10EffectVariable); unsafe impl ::core::marker::Send for ID3D10EffectScalarVariable {} unsafe impl ::core::marker::Sync for ID3D10EffectScalarVariable {} -unsafe impl ::windows_core::Interface for ID3D10EffectScalarVariable { - type Vtable = ID3D10EffectScalarVariable_Vtbl; -} #[repr(C)] #[doc(hidden)] pub struct ID3D10EffectScalarVariable_Vtbl { @@ -2923,9 +2769,8 @@ pub struct ID3D10EffectScalarVariable_Vtbl { pub SetBoolArray: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdata: *const super::super::Foundation::BOOL, offset: u32, count: u32) -> ::windows_core::HRESULT, pub GetBoolArray: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdata: *mut super::super::Foundation::BOOL, offset: u32, count: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D10EffectShaderResourceVariable(::std::ptr::NonNull<::std::ffi::c_void>); +::windows_core::imp::interface!(ID3D10EffectShaderResourceVariable, ID3D10EffectShaderResourceVariable_Vtbl); +::windows_core::imp::interface_hierarchy!(ID3D10EffectShaderResourceVariable, ID3D10EffectVariable); impl ID3D10EffectShaderResourceVariable { pub unsafe fn IsValid(&self) -> super::super::Foundation::BOOL { (::windows_core::Interface::vtable(self).base__.IsValid)(::windows_core::Interface::as_raw(self)) @@ -3028,12 +2873,8 @@ impl ID3D10EffectShaderResourceVariable { (::windows_core::Interface::vtable(self).GetResourceArray)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(ppresources.as_ptr()), offset, ppresources.len().try_into().unwrap()).ok() } } -::windows_core::imp::interface_hierarchy!(ID3D10EffectShaderResourceVariable, ID3D10EffectVariable); unsafe impl ::core::marker::Send for ID3D10EffectShaderResourceVariable {} unsafe impl ::core::marker::Sync for ID3D10EffectShaderResourceVariable {} -unsafe impl ::windows_core::Interface for ID3D10EffectShaderResourceVariable { - type Vtable = ID3D10EffectShaderResourceVariable_Vtbl; -} #[repr(C)] #[doc(hidden)] pub struct ID3D10EffectShaderResourceVariable_Vtbl { @@ -3043,9 +2884,8 @@ pub struct ID3D10EffectShaderResourceVariable_Vtbl { pub SetResourceArray: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppresources: *const *mut ::core::ffi::c_void, offset: u32, count: u32) -> ::windows_core::HRESULT, pub GetResourceArray: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppresources: *mut *mut ::core::ffi::c_void, offset: u32, count: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D10EffectShaderVariable(::std::ptr::NonNull<::std::ffi::c_void>); +::windows_core::imp::interface!(ID3D10EffectShaderVariable, ID3D10EffectShaderVariable_Vtbl); +::windows_core::imp::interface_hierarchy!(ID3D10EffectShaderVariable, ID3D10EffectVariable); impl ID3D10EffectShaderVariable { pub unsafe fn IsValid(&self) -> super::super::Foundation::BOOL { (::windows_core::Interface::vtable(self).base__.IsValid)(::windows_core::Interface::as_raw(self)) @@ -3157,12 +2997,8 @@ impl ID3D10EffectShaderVariable { (::windows_core::Interface::vtable(self).GetOutputSignatureElementDesc)(::windows_core::Interface::as_raw(self), shaderindex, element, pdesc).ok() } } -::windows_core::imp::interface_hierarchy!(ID3D10EffectShaderVariable, ID3D10EffectVariable); unsafe impl ::core::marker::Send for ID3D10EffectShaderVariable {} unsafe impl ::core::marker::Sync for ID3D10EffectShaderVariable {} -unsafe impl ::windows_core::Interface for ID3D10EffectShaderVariable { - type Vtable = ID3D10EffectShaderVariable_Vtbl; -} #[repr(C)] #[doc(hidden)] pub struct ID3D10EffectShaderVariable_Vtbl { @@ -3180,9 +3016,8 @@ pub struct ID3D10EffectShaderVariable_Vtbl { #[cfg(not(feature = "Win32_Graphics_Direct3D"))] GetOutputSignatureElementDesc: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D10EffectStringVariable(::std::ptr::NonNull<::std::ffi::c_void>); +::windows_core::imp::interface!(ID3D10EffectStringVariable, ID3D10EffectStringVariable_Vtbl); +::windows_core::imp::interface_hierarchy!(ID3D10EffectStringVariable, ID3D10EffectVariable); impl ID3D10EffectStringVariable { pub unsafe fn IsValid(&self) -> super::super::Foundation::BOOL { (::windows_core::Interface::vtable(self).base__.IsValid)(::windows_core::Interface::as_raw(self)) @@ -3276,12 +3111,8 @@ impl ID3D10EffectStringVariable { (::windows_core::Interface::vtable(self).GetStringArray)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(ppstrings.as_ptr()), offset, ppstrings.len().try_into().unwrap()).ok() } } -::windows_core::imp::interface_hierarchy!(ID3D10EffectStringVariable, ID3D10EffectVariable); unsafe impl ::core::marker::Send for ID3D10EffectStringVariable {} unsafe impl ::core::marker::Sync for ID3D10EffectStringVariable {} -unsafe impl ::windows_core::Interface for ID3D10EffectStringVariable { - type Vtable = ID3D10EffectStringVariable_Vtbl; -} #[repr(C)] #[doc(hidden)] pub struct ID3D10EffectStringVariable_Vtbl { @@ -3289,9 +3120,7 @@ pub struct ID3D10EffectStringVariable_Vtbl { pub GetString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppstring: *mut ::windows_core::PCSTR) -> ::windows_core::HRESULT, pub GetStringArray: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppstrings: *mut ::windows_core::PCSTR, offset: u32, count: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D10EffectTechnique(::std::ptr::NonNull<::std::ffi::c_void>); +::windows_core::imp::interface!(ID3D10EffectTechnique, ID3D10EffectTechnique_Vtbl); impl ID3D10EffectTechnique { pub unsafe fn IsValid(&self) -> super::super::Foundation::BOOL { (::windows_core::Interface::vtable(self).IsValid)(::windows_core::Interface::as_raw(self)) @@ -3323,9 +3152,6 @@ impl ID3D10EffectTechnique { } unsafe impl ::core::marker::Send for ID3D10EffectTechnique {} unsafe impl ::core::marker::Sync for ID3D10EffectTechnique {} -unsafe impl ::windows_core::Interface for ID3D10EffectTechnique { - type Vtable = ID3D10EffectTechnique_Vtbl; -} #[repr(C)] #[doc(hidden)] pub struct ID3D10EffectTechnique_Vtbl { @@ -3337,9 +3163,7 @@ pub struct ID3D10EffectTechnique_Vtbl { pub GetPassByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::windows_core::PCSTR) -> ::core::option::Option, pub ComputeStateBlockMask: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstateblockmask: *mut D3D10_STATE_BLOCK_MASK) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D10EffectType(::std::ptr::NonNull<::std::ffi::c_void>); +::windows_core::imp::interface!(ID3D10EffectType, ID3D10EffectType_Vtbl); impl ID3D10EffectType { pub unsafe fn IsValid(&self) -> super::super::Foundation::BOOL { (::windows_core::Interface::vtable(self).IsValid)(::windows_core::Interface::as_raw(self)) @@ -3373,9 +3197,6 @@ impl ID3D10EffectType { } unsafe impl ::core::marker::Send for ID3D10EffectType {} unsafe impl ::core::marker::Sync for ID3D10EffectType {} -unsafe impl ::windows_core::Interface for ID3D10EffectType { - type Vtable = ID3D10EffectType_Vtbl; -} #[repr(C)] #[doc(hidden)] pub struct ID3D10EffectType_Vtbl { @@ -3390,9 +3211,7 @@ pub struct ID3D10EffectType_Vtbl { pub GetMemberName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32) -> ::windows_core::PCSTR, pub GetMemberSemantic: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32) -> ::windows_core::PCSTR, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D10EffectVariable(::std::ptr::NonNull<::std::ffi::c_void>); +::windows_core::imp::interface!(ID3D10EffectVariable, ID3D10EffectVariable_Vtbl); impl ID3D10EffectVariable { pub unsafe fn IsValid(&self) -> super::super::Foundation::BOOL { (::windows_core::Interface::vtable(self).IsValid)(::windows_core::Interface::as_raw(self)) @@ -3481,9 +3300,6 @@ impl ID3D10EffectVariable { } unsafe impl ::core::marker::Send for ID3D10EffectVariable {} unsafe impl ::core::marker::Sync for ID3D10EffectVariable {} -unsafe impl ::windows_core::Interface for ID3D10EffectVariable { - type Vtable = ID3D10EffectVariable_Vtbl; -} #[repr(C)] #[doc(hidden)] pub struct ID3D10EffectVariable_Vtbl { @@ -3513,9 +3329,8 @@ pub struct ID3D10EffectVariable_Vtbl { pub SetRawValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdata: *const ::core::ffi::c_void, offset: u32, bytecount: u32) -> ::windows_core::HRESULT, pub GetRawValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdata: *mut ::core::ffi::c_void, offset: u32, bytecount: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D10EffectVectorVariable(::std::ptr::NonNull<::std::ffi::c_void>); +::windows_core::imp::interface!(ID3D10EffectVectorVariable, ID3D10EffectVectorVariable_Vtbl); +::windows_core::imp::interface_hierarchy!(ID3D10EffectVectorVariable, ID3D10EffectVariable); impl ID3D10EffectVectorVariable { pub unsafe fn IsValid(&self) -> super::super::Foundation::BOOL { (::windows_core::Interface::vtable(self).base__.IsValid)(::windows_core::Interface::as_raw(self)) @@ -3638,12 +3453,8 @@ impl ID3D10EffectVectorVariable { (::windows_core::Interface::vtable(self).GetFloatVectorArray)(::windows_core::Interface::as_raw(self), pdata, offset, count).ok() } } -::windows_core::imp::interface_hierarchy!(ID3D10EffectVectorVariable, ID3D10EffectVariable); unsafe impl ::core::marker::Send for ID3D10EffectVectorVariable {} unsafe impl ::core::marker::Sync for ID3D10EffectVectorVariable {} -unsafe impl ::windows_core::Interface for ID3D10EffectVectorVariable { - type Vtable = ID3D10EffectVectorVariable_Vtbl; -} #[repr(C)] #[doc(hidden)] pub struct ID3D10EffectVectorVariable_Vtbl { @@ -3661,9 +3472,8 @@ pub struct ID3D10EffectVectorVariable_Vtbl { pub GetIntVectorArray: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdata: *mut i32, offset: u32, count: u32) -> ::windows_core::HRESULT, pub GetFloatVectorArray: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdata: *mut f32, offset: u32, count: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D10GeometryShader(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D10GeometryShader, ID3D10GeometryShader_Vtbl, 0x6316be88_54cd_4040_ab44_20461bc81f68); +::windows_core::imp::interface_hierarchy!(ID3D10GeometryShader, ::windows_core::IUnknown, ID3D10DeviceChild); impl ID3D10GeometryShader { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -3683,23 +3493,15 @@ impl ID3D10GeometryShader { (::windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(::windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ID3D10GeometryShader, ::windows_core::IUnknown, ID3D10DeviceChild); unsafe impl ::core::marker::Send for ID3D10GeometryShader {} unsafe impl ::core::marker::Sync for ID3D10GeometryShader {} -unsafe impl ::windows_core::Interface for ID3D10GeometryShader { - type Vtable = ID3D10GeometryShader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D10GeometryShader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6316be88_54cd_4040_ab44_20461bc81f68); -} #[repr(C)] #[doc(hidden)] pub struct ID3D10GeometryShader_Vtbl { pub base__: ID3D10DeviceChild_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D10InfoQueue(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D10InfoQueue, ID3D10InfoQueue_Vtbl, 0x1b940b17_2642_4d1f_ab1f_b99bad0c395f); +::windows_core::imp::interface_hierarchy!(ID3D10InfoQueue, ::windows_core::IUnknown); impl ID3D10InfoQueue { pub unsafe fn SetMessageCountLimit(&self, messagecountlimit: u64) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetMessageCountLimit)(::windows_core::Interface::as_raw(self), messagecountlimit).ok() @@ -3825,15 +3627,8 @@ impl ID3D10InfoQueue { (::windows_core::Interface::vtable(self).GetMuteDebugOutput)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(ID3D10InfoQueue, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID3D10InfoQueue {} unsafe impl ::core::marker::Sync for ID3D10InfoQueue {} -unsafe impl ::windows_core::Interface for ID3D10InfoQueue { - type Vtable = ID3D10InfoQueue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D10InfoQueue { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1b940b17_2642_4d1f_ab1f_b99bad0c395f); -} #[repr(C)] #[doc(hidden)] pub struct ID3D10InfoQueue_Vtbl { @@ -3874,9 +3669,8 @@ pub struct ID3D10InfoQueue_Vtbl { pub SetMuteDebugOutput: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bmute: super::super::Foundation::BOOL), pub GetMuteDebugOutput: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D10InputLayout(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D10InputLayout, ID3D10InputLayout_Vtbl, 0x9b7e4c0b_342c_4106_a19f_4f2704f689f0); +::windows_core::imp::interface_hierarchy!(ID3D10InputLayout, ::windows_core::IUnknown, ID3D10DeviceChild); impl ID3D10InputLayout { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -3896,23 +3690,15 @@ impl ID3D10InputLayout { (::windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(::windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ID3D10InputLayout, ::windows_core::IUnknown, ID3D10DeviceChild); unsafe impl ::core::marker::Send for ID3D10InputLayout {} unsafe impl ::core::marker::Sync for ID3D10InputLayout {} -unsafe impl ::windows_core::Interface for ID3D10InputLayout { - type Vtable = ID3D10InputLayout_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D10InputLayout { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9b7e4c0b_342c_4106_a19f_4f2704f689f0); -} #[repr(C)] #[doc(hidden)] pub struct ID3D10InputLayout_Vtbl { pub base__: ID3D10DeviceChild_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D10Multithread(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D10Multithread, ID3D10Multithread_Vtbl, 0x9b7e4e00_342c_4106_a19f_4f2704f689f0); +::windows_core::imp::interface_hierarchy!(ID3D10Multithread, ::windows_core::IUnknown); impl ID3D10Multithread { pub unsafe fn Enter(&self) { (::windows_core::Interface::vtable(self).Enter)(::windows_core::Interface::as_raw(self)) @@ -3930,15 +3716,8 @@ impl ID3D10Multithread { (::windows_core::Interface::vtable(self).GetMultithreadProtected)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(ID3D10Multithread, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID3D10Multithread {} unsafe impl ::core::marker::Sync for ID3D10Multithread {} -unsafe impl ::windows_core::Interface for ID3D10Multithread { - type Vtable = ID3D10Multithread_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D10Multithread { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9b7e4e00_342c_4106_a19f_4f2704f689f0); -} #[repr(C)] #[doc(hidden)] pub struct ID3D10Multithread_Vtbl { @@ -3948,9 +3727,8 @@ pub struct ID3D10Multithread_Vtbl { pub SetMultithreadProtected: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bmtprotect: super::super::Foundation::BOOL) -> super::super::Foundation::BOOL, pub GetMultithreadProtected: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D10PixelShader(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D10PixelShader, ID3D10PixelShader_Vtbl, 0x4968b601_9d00_4cde_8346_8e7f675819b6); +::windows_core::imp::interface_hierarchy!(ID3D10PixelShader, ::windows_core::IUnknown, ID3D10DeviceChild); impl ID3D10PixelShader { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -3970,23 +3748,15 @@ impl ID3D10PixelShader { (::windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(::windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ID3D10PixelShader, ::windows_core::IUnknown, ID3D10DeviceChild); unsafe impl ::core::marker::Send for ID3D10PixelShader {} unsafe impl ::core::marker::Sync for ID3D10PixelShader {} -unsafe impl ::windows_core::Interface for ID3D10PixelShader { - type Vtable = ID3D10PixelShader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D10PixelShader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4968b601_9d00_4cde_8346_8e7f675819b6); -} #[repr(C)] #[doc(hidden)] pub struct ID3D10PixelShader_Vtbl { pub base__: ID3D10DeviceChild_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D10Predicate(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D10Predicate, ID3D10Predicate_Vtbl, 0x9b7e4c10_342c_4106_a19f_4f2704f689f0); +::windows_core::imp::interface_hierarchy!(ID3D10Predicate, ::windows_core::IUnknown, ID3D10DeviceChild, ID3D10Asynchronous, ID3D10Query); impl ID3D10Predicate { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -4023,23 +3793,15 @@ impl ID3D10Predicate { ::std::mem::transmute(result__) } } -::windows_core::imp::interface_hierarchy!(ID3D10Predicate, ::windows_core::IUnknown, ID3D10DeviceChild, ID3D10Asynchronous, ID3D10Query); unsafe impl ::core::marker::Send for ID3D10Predicate {} unsafe impl ::core::marker::Sync for ID3D10Predicate {} -unsafe impl ::windows_core::Interface for ID3D10Predicate { - type Vtable = ID3D10Predicate_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D10Predicate { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9b7e4c10_342c_4106_a19f_4f2704f689f0); -} #[repr(C)] #[doc(hidden)] pub struct ID3D10Predicate_Vtbl { pub base__: ID3D10Query_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D10Query(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D10Query, ID3D10Query_Vtbl, 0x9b7e4c0e_342c_4106_a19f_4f2704f689f0); +::windows_core::imp::interface_hierarchy!(ID3D10Query, ::windows_core::IUnknown, ID3D10DeviceChild, ID3D10Asynchronous); impl ID3D10Query { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -4076,24 +3838,16 @@ impl ID3D10Query { ::std::mem::transmute(result__) } } -::windows_core::imp::interface_hierarchy!(ID3D10Query, ::windows_core::IUnknown, ID3D10DeviceChild, ID3D10Asynchronous); unsafe impl ::core::marker::Send for ID3D10Query {} unsafe impl ::core::marker::Sync for ID3D10Query {} -unsafe impl ::windows_core::Interface for ID3D10Query { - type Vtable = ID3D10Query_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D10Query { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9b7e4c0e_342c_4106_a19f_4f2704f689f0); -} #[repr(C)] #[doc(hidden)] pub struct ID3D10Query_Vtbl { pub base__: ID3D10Asynchronous_Vtbl, pub GetDesc: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdesc: *mut D3D10_QUERY_DESC), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D10RasterizerState(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D10RasterizerState, ID3D10RasterizerState_Vtbl, 0xa2a07292_89af_4345_be2e_c53d9fbb6e9f); +::windows_core::imp::interface_hierarchy!(ID3D10RasterizerState, ::windows_core::IUnknown, ID3D10DeviceChild); impl ID3D10RasterizerState { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -4116,24 +3870,16 @@ impl ID3D10RasterizerState { (::windows_core::Interface::vtable(self).GetDesc)(::windows_core::Interface::as_raw(self), pdesc) } } -::windows_core::imp::interface_hierarchy!(ID3D10RasterizerState, ::windows_core::IUnknown, ID3D10DeviceChild); unsafe impl ::core::marker::Send for ID3D10RasterizerState {} unsafe impl ::core::marker::Sync for ID3D10RasterizerState {} -unsafe impl ::windows_core::Interface for ID3D10RasterizerState { - type Vtable = ID3D10RasterizerState_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D10RasterizerState { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa2a07292_89af_4345_be2e_c53d9fbb6e9f); -} #[repr(C)] #[doc(hidden)] pub struct ID3D10RasterizerState_Vtbl { pub base__: ID3D10DeviceChild_Vtbl, pub GetDesc: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdesc: *mut D3D10_RASTERIZER_DESC), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D10RenderTargetView(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D10RenderTargetView, ID3D10RenderTargetView_Vtbl, 0x9b7e4c08_342c_4106_a19f_4f2704f689f0); +::windows_core::imp::interface_hierarchy!(ID3D10RenderTargetView, ::windows_core::IUnknown, ID3D10DeviceChild, ID3D10View); impl ID3D10RenderTargetView { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -4163,15 +3909,8 @@ impl ID3D10RenderTargetView { (::windows_core::Interface::vtable(self).GetDesc)(::windows_core::Interface::as_raw(self), pdesc) } } -::windows_core::imp::interface_hierarchy!(ID3D10RenderTargetView, ::windows_core::IUnknown, ID3D10DeviceChild, ID3D10View); unsafe impl ::core::marker::Send for ID3D10RenderTargetView {} unsafe impl ::core::marker::Sync for ID3D10RenderTargetView {} -unsafe impl ::windows_core::Interface for ID3D10RenderTargetView { - type Vtable = ID3D10RenderTargetView_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D10RenderTargetView { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9b7e4c08_342c_4106_a19f_4f2704f689f0); -} #[repr(C)] #[doc(hidden)] pub struct ID3D10RenderTargetView_Vtbl { @@ -4181,9 +3920,8 @@ pub struct ID3D10RenderTargetView_Vtbl { #[cfg(not(feature = "Win32_Graphics_Dxgi_Common"))] GetDesc: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D10Resource(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D10Resource, ID3D10Resource_Vtbl, 0x9b7e4c01_342c_4106_a19f_4f2704f689f0); +::windows_core::imp::interface_hierarchy!(ID3D10Resource, ::windows_core::IUnknown, ID3D10DeviceChild); impl ID3D10Resource { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -4214,15 +3952,8 @@ impl ID3D10Resource { (::windows_core::Interface::vtable(self).GetEvictionPriority)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(ID3D10Resource, ::windows_core::IUnknown, ID3D10DeviceChild); unsafe impl ::core::marker::Send for ID3D10Resource {} unsafe impl ::core::marker::Sync for ID3D10Resource {} -unsafe impl ::windows_core::Interface for ID3D10Resource { - type Vtable = ID3D10Resource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D10Resource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9b7e4c01_342c_4106_a19f_4f2704f689f0); -} #[repr(C)] #[doc(hidden)] pub struct ID3D10Resource_Vtbl { @@ -4231,9 +3962,8 @@ pub struct ID3D10Resource_Vtbl { pub SetEvictionPriority: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, evictionpriority: u32), pub GetEvictionPriority: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> u32, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D10SamplerState(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D10SamplerState, ID3D10SamplerState_Vtbl, 0x9b7e4c0c_342c_4106_a19f_4f2704f689f0); +::windows_core::imp::interface_hierarchy!(ID3D10SamplerState, ::windows_core::IUnknown, ID3D10DeviceChild); impl ID3D10SamplerState { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -4256,24 +3986,16 @@ impl ID3D10SamplerState { (::windows_core::Interface::vtable(self).GetDesc)(::windows_core::Interface::as_raw(self), pdesc) } } -::windows_core::imp::interface_hierarchy!(ID3D10SamplerState, ::windows_core::IUnknown, ID3D10DeviceChild); unsafe impl ::core::marker::Send for ID3D10SamplerState {} unsafe impl ::core::marker::Sync for ID3D10SamplerState {} -unsafe impl ::windows_core::Interface for ID3D10SamplerState { - type Vtable = ID3D10SamplerState_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D10SamplerState { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9b7e4c0c_342c_4106_a19f_4f2704f689f0); -} #[repr(C)] #[doc(hidden)] pub struct ID3D10SamplerState_Vtbl { pub base__: ID3D10DeviceChild_Vtbl, pub GetDesc: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdesc: *mut D3D10_SAMPLER_DESC), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D10ShaderReflection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D10ShaderReflection, ID3D10ShaderReflection_Vtbl, 0xd40e20b6_f8f7_42ad_ab20_4baf8f15dfaa); +::windows_core::imp::interface_hierarchy!(ID3D10ShaderReflection, ::windows_core::IUnknown); impl ID3D10ShaderReflection { #[doc = "Required features: `\"Win32_Graphics_Direct3D\"`"] #[cfg(feature = "Win32_Graphics_Direct3D")] @@ -4305,15 +4027,8 @@ impl ID3D10ShaderReflection { (::windows_core::Interface::vtable(self).GetOutputParameterDesc)(::windows_core::Interface::as_raw(self), parameterindex, pdesc).ok() } } -::windows_core::imp::interface_hierarchy!(ID3D10ShaderReflection, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID3D10ShaderReflection {} unsafe impl ::core::marker::Sync for ID3D10ShaderReflection {} -unsafe impl ::windows_core::Interface for ID3D10ShaderReflection { - type Vtable = ID3D10ShaderReflection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D10ShaderReflection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd40e20b6_f8f7_42ad_ab20_4baf8f15dfaa); -} #[repr(C)] #[doc(hidden)] pub struct ID3D10ShaderReflection_Vtbl { @@ -4337,9 +4052,8 @@ pub struct ID3D10ShaderReflection_Vtbl { #[cfg(not(feature = "Win32_Graphics_Direct3D"))] GetOutputParameterDesc: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D10ShaderReflection1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D10ShaderReflection1, ID3D10ShaderReflection1_Vtbl, 0xc3457783_a846_47ce_9520_cea6f66e7447); +::windows_core::imp::interface_hierarchy!(ID3D10ShaderReflection1, ::windows_core::IUnknown); impl ID3D10ShaderReflection1 { #[doc = "Required features: `\"Win32_Graphics_Direct3D\"`"] #[cfg(feature = "Win32_Graphics_Direct3D")] @@ -4415,15 +4129,8 @@ impl ID3D10ShaderReflection1 { (::windows_core::Interface::vtable(self).IsSampleFrequencyShader)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ID3D10ShaderReflection1, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID3D10ShaderReflection1 {} unsafe impl ::core::marker::Sync for ID3D10ShaderReflection1 {} -unsafe impl ::windows_core::Interface for ID3D10ShaderReflection1 { - type Vtable = ID3D10ShaderReflection1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D10ShaderReflection1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc3457783_a846_47ce_9520_cea6f66e7447); -} #[repr(C)] #[doc(hidden)] pub struct ID3D10ShaderReflection1_Vtbl { @@ -4462,9 +4169,7 @@ pub struct ID3D10ShaderReflection1_Vtbl { pub IsLevel9Shader: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pblevel9shader: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub IsSampleFrequencyShader: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbsamplefrequency: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D10ShaderReflectionConstantBuffer(::std::ptr::NonNull<::std::ffi::c_void>); +::windows_core::imp::interface!(ID3D10ShaderReflectionConstantBuffer, ID3D10ShaderReflectionConstantBuffer_Vtbl); impl ID3D10ShaderReflectionConstantBuffer { #[doc = "Required features: `\"Win32_Graphics_Direct3D\"`"] #[cfg(feature = "Win32_Graphics_Direct3D")] @@ -4483,9 +4188,6 @@ impl ID3D10ShaderReflectionConstantBuffer { } unsafe impl ::core::marker::Send for ID3D10ShaderReflectionConstantBuffer {} unsafe impl ::core::marker::Sync for ID3D10ShaderReflectionConstantBuffer {} -unsafe impl ::windows_core::Interface for ID3D10ShaderReflectionConstantBuffer { - type Vtable = ID3D10ShaderReflectionConstantBuffer_Vtbl; -} #[repr(C)] #[doc(hidden)] pub struct ID3D10ShaderReflectionConstantBuffer_Vtbl { @@ -4496,9 +4198,7 @@ pub struct ID3D10ShaderReflectionConstantBuffer_Vtbl { pub GetVariableByIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32) -> ::core::option::Option, pub GetVariableByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::windows_core::PCSTR) -> ::core::option::Option, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D10ShaderReflectionType(::std::ptr::NonNull<::std::ffi::c_void>); +::windows_core::imp::interface!(ID3D10ShaderReflectionType, ID3D10ShaderReflectionType_Vtbl); impl ID3D10ShaderReflectionType { #[doc = "Required features: `\"Win32_Graphics_Direct3D\"`"] #[cfg(feature = "Win32_Graphics_Direct3D")] @@ -4520,9 +4220,6 @@ impl ID3D10ShaderReflectionType { } unsafe impl ::core::marker::Send for ID3D10ShaderReflectionType {} unsafe impl ::core::marker::Sync for ID3D10ShaderReflectionType {} -unsafe impl ::windows_core::Interface for ID3D10ShaderReflectionType { - type Vtable = ID3D10ShaderReflectionType_Vtbl; -} #[repr(C)] #[doc(hidden)] pub struct ID3D10ShaderReflectionType_Vtbl { @@ -4534,9 +4231,7 @@ pub struct ID3D10ShaderReflectionType_Vtbl { pub GetMemberTypeByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::windows_core::PCSTR) -> ::core::option::Option, pub GetMemberTypeName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32) -> ::windows_core::PCSTR, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D10ShaderReflectionVariable(::std::ptr::NonNull<::std::ffi::c_void>); +::windows_core::imp::interface!(ID3D10ShaderReflectionVariable, ID3D10ShaderReflectionVariable_Vtbl); impl ID3D10ShaderReflectionVariable { pub unsafe fn GetDesc(&self, pdesc: *mut D3D10_SHADER_VARIABLE_DESC) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetDesc)(::windows_core::Interface::as_raw(self), pdesc).ok() @@ -4547,18 +4242,14 @@ impl ID3D10ShaderReflectionVariable { } unsafe impl ::core::marker::Send for ID3D10ShaderReflectionVariable {} unsafe impl ::core::marker::Sync for ID3D10ShaderReflectionVariable {} -unsafe impl ::windows_core::Interface for ID3D10ShaderReflectionVariable { - type Vtable = ID3D10ShaderReflectionVariable_Vtbl; -} #[repr(C)] #[doc(hidden)] pub struct ID3D10ShaderReflectionVariable_Vtbl { pub GetDesc: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdesc: *mut D3D10_SHADER_VARIABLE_DESC) -> ::windows_core::HRESULT, pub GetType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::core::option::Option, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D10ShaderResourceView(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D10ShaderResourceView, ID3D10ShaderResourceView_Vtbl, 0x9b7e4c07_342c_4106_a19f_4f2704f689f0); +::windows_core::imp::interface_hierarchy!(ID3D10ShaderResourceView, ::windows_core::IUnknown, ID3D10DeviceChild, ID3D10View); impl ID3D10ShaderResourceView { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -4588,15 +4279,8 @@ impl ID3D10ShaderResourceView { (::windows_core::Interface::vtable(self).GetDesc)(::windows_core::Interface::as_raw(self), pdesc) } } -::windows_core::imp::interface_hierarchy!(ID3D10ShaderResourceView, ::windows_core::IUnknown, ID3D10DeviceChild, ID3D10View); unsafe impl ::core::marker::Send for ID3D10ShaderResourceView {} unsafe impl ::core::marker::Sync for ID3D10ShaderResourceView {} -unsafe impl ::windows_core::Interface for ID3D10ShaderResourceView { - type Vtable = ID3D10ShaderResourceView_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D10ShaderResourceView { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9b7e4c07_342c_4106_a19f_4f2704f689f0); -} #[repr(C)] #[doc(hidden)] pub struct ID3D10ShaderResourceView_Vtbl { @@ -4606,9 +4290,8 @@ pub struct ID3D10ShaderResourceView_Vtbl { #[cfg(not(all(feature = "Win32_Graphics_Direct3D", feature = "Win32_Graphics_Dxgi_Common")))] GetDesc: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D10ShaderResourceView1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D10ShaderResourceView1, ID3D10ShaderResourceView1_Vtbl, 0x9b7e4c87_342c_4106_a19f_4f2704f689f0); +::windows_core::imp::interface_hierarchy!(ID3D10ShaderResourceView1, ::windows_core::IUnknown, ID3D10DeviceChild, ID3D10View, ID3D10ShaderResourceView); impl ID3D10ShaderResourceView1 { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -4643,15 +4326,8 @@ impl ID3D10ShaderResourceView1 { (::windows_core::Interface::vtable(self).GetDesc1)(::windows_core::Interface::as_raw(self), pdesc) } } -::windows_core::imp::interface_hierarchy!(ID3D10ShaderResourceView1, ::windows_core::IUnknown, ID3D10DeviceChild, ID3D10View, ID3D10ShaderResourceView); unsafe impl ::core::marker::Send for ID3D10ShaderResourceView1 {} unsafe impl ::core::marker::Sync for ID3D10ShaderResourceView1 {} -unsafe impl ::windows_core::Interface for ID3D10ShaderResourceView1 { - type Vtable = ID3D10ShaderResourceView1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D10ShaderResourceView1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9b7e4c87_342c_4106_a19f_4f2704f689f0); -} #[repr(C)] #[doc(hidden)] pub struct ID3D10ShaderResourceView1_Vtbl { @@ -4661,9 +4337,8 @@ pub struct ID3D10ShaderResourceView1_Vtbl { #[cfg(not(all(feature = "Win32_Graphics_Direct3D", feature = "Win32_Graphics_Dxgi_Common")))] GetDesc1: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D10StateBlock(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D10StateBlock, ID3D10StateBlock_Vtbl, 0x0803425a_57f5_4dd6_9465_a87570834a08); +::windows_core::imp::interface_hierarchy!(ID3D10StateBlock, ::windows_core::IUnknown); impl ID3D10StateBlock { pub unsafe fn Capture(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Capture)(::windows_core::Interface::as_raw(self)).ok() @@ -4679,15 +4354,8 @@ impl ID3D10StateBlock { (::windows_core::Interface::vtable(self).GetDevice)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ID3D10StateBlock, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID3D10StateBlock {} unsafe impl ::core::marker::Sync for ID3D10StateBlock {} -unsafe impl ::windows_core::Interface for ID3D10StateBlock { - type Vtable = ID3D10StateBlock_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D10StateBlock { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0803425a_57f5_4dd6_9465_a87570834a08); -} #[repr(C)] #[doc(hidden)] pub struct ID3D10StateBlock_Vtbl { @@ -4697,9 +4365,8 @@ pub struct ID3D10StateBlock_Vtbl { pub ReleaseAllDeviceObjects: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppdevice: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D10SwitchToRef(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D10SwitchToRef, ID3D10SwitchToRef_Vtbl, 0x9b7e4e02_342c_4106_a19f_4f2704f689f0); +::windows_core::imp::interface_hierarchy!(ID3D10SwitchToRef, ::windows_core::IUnknown); impl ID3D10SwitchToRef { pub unsafe fn SetUseRef(&self, useref: P0) -> super::super::Foundation::BOOL where @@ -4711,15 +4378,8 @@ impl ID3D10SwitchToRef { (::windows_core::Interface::vtable(self).GetUseRef)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(ID3D10SwitchToRef, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID3D10SwitchToRef {} unsafe impl ::core::marker::Sync for ID3D10SwitchToRef {} -unsafe impl ::windows_core::Interface for ID3D10SwitchToRef { - type Vtable = ID3D10SwitchToRef_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D10SwitchToRef { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9b7e4e02_342c_4106_a19f_4f2704f689f0); -} #[repr(C)] #[doc(hidden)] pub struct ID3D10SwitchToRef_Vtbl { @@ -4727,9 +4387,8 @@ pub struct ID3D10SwitchToRef_Vtbl { pub SetUseRef: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, useref: super::super::Foundation::BOOL) -> super::super::Foundation::BOOL, pub GetUseRef: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D10Texture1D(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D10Texture1D, ID3D10Texture1D_Vtbl, 0x9b7e4c03_342c_4106_a19f_4f2704f689f0); +::windows_core::imp::interface_hierarchy!(ID3D10Texture1D, ::windows_core::IUnknown, ID3D10DeviceChild, ID3D10Resource); impl ID3D10Texture1D { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -4771,15 +4430,8 @@ impl ID3D10Texture1D { (::windows_core::Interface::vtable(self).GetDesc)(::windows_core::Interface::as_raw(self), pdesc) } } -::windows_core::imp::interface_hierarchy!(ID3D10Texture1D, ::windows_core::IUnknown, ID3D10DeviceChild, ID3D10Resource); unsafe impl ::core::marker::Send for ID3D10Texture1D {} unsafe impl ::core::marker::Sync for ID3D10Texture1D {} -unsafe impl ::windows_core::Interface for ID3D10Texture1D { - type Vtable = ID3D10Texture1D_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D10Texture1D { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9b7e4c03_342c_4106_a19f_4f2704f689f0); -} #[repr(C)] #[doc(hidden)] pub struct ID3D10Texture1D_Vtbl { @@ -4791,9 +4443,8 @@ pub struct ID3D10Texture1D_Vtbl { #[cfg(not(feature = "Win32_Graphics_Dxgi_Common"))] GetDesc: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D10Texture2D(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D10Texture2D, ID3D10Texture2D_Vtbl, 0x9b7e4c04_342c_4106_a19f_4f2704f689f0); +::windows_core::imp::interface_hierarchy!(ID3D10Texture2D, ::windows_core::IUnknown, ID3D10DeviceChild, ID3D10Resource); impl ID3D10Texture2D { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -4836,15 +4487,8 @@ impl ID3D10Texture2D { (::windows_core::Interface::vtable(self).GetDesc)(::windows_core::Interface::as_raw(self), pdesc) } } -::windows_core::imp::interface_hierarchy!(ID3D10Texture2D, ::windows_core::IUnknown, ID3D10DeviceChild, ID3D10Resource); unsafe impl ::core::marker::Send for ID3D10Texture2D {} unsafe impl ::core::marker::Sync for ID3D10Texture2D {} -unsafe impl ::windows_core::Interface for ID3D10Texture2D { - type Vtable = ID3D10Texture2D_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D10Texture2D { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9b7e4c04_342c_4106_a19f_4f2704f689f0); -} #[repr(C)] #[doc(hidden)] pub struct ID3D10Texture2D_Vtbl { @@ -4856,9 +4500,8 @@ pub struct ID3D10Texture2D_Vtbl { #[cfg(not(feature = "Win32_Graphics_Dxgi_Common"))] GetDesc: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D10Texture3D(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D10Texture3D, ID3D10Texture3D_Vtbl, 0x9b7e4c05_342c_4106_a19f_4f2704f689f0); +::windows_core::imp::interface_hierarchy!(ID3D10Texture3D, ::windows_core::IUnknown, ID3D10DeviceChild, ID3D10Resource); impl ID3D10Texture3D { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -4901,15 +4544,8 @@ impl ID3D10Texture3D { (::windows_core::Interface::vtable(self).GetDesc)(::windows_core::Interface::as_raw(self), pdesc) } } -::windows_core::imp::interface_hierarchy!(ID3D10Texture3D, ::windows_core::IUnknown, ID3D10DeviceChild, ID3D10Resource); unsafe impl ::core::marker::Send for ID3D10Texture3D {} unsafe impl ::core::marker::Sync for ID3D10Texture3D {} -unsafe impl ::windows_core::Interface for ID3D10Texture3D { - type Vtable = ID3D10Texture3D_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D10Texture3D { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9b7e4c05_342c_4106_a19f_4f2704f689f0); -} #[repr(C)] #[doc(hidden)] pub struct ID3D10Texture3D_Vtbl { @@ -4921,9 +4557,8 @@ pub struct ID3D10Texture3D_Vtbl { #[cfg(not(feature = "Win32_Graphics_Dxgi_Common"))] GetDesc: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D10VertexShader(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D10VertexShader, ID3D10VertexShader_Vtbl, 0x9b7e4c0a_342c_4106_a19f_4f2704f689f0); +::windows_core::imp::interface_hierarchy!(ID3D10VertexShader, ::windows_core::IUnknown, ID3D10DeviceChild); impl ID3D10VertexShader { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -4943,23 +4578,15 @@ impl ID3D10VertexShader { (::windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(::windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ID3D10VertexShader, ::windows_core::IUnknown, ID3D10DeviceChild); unsafe impl ::core::marker::Send for ID3D10VertexShader {} unsafe impl ::core::marker::Sync for ID3D10VertexShader {} -unsafe impl ::windows_core::Interface for ID3D10VertexShader { - type Vtable = ID3D10VertexShader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D10VertexShader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9b7e4c0a_342c_4106_a19f_4f2704f689f0); -} #[repr(C)] #[doc(hidden)] pub struct ID3D10VertexShader_Vtbl { pub base__: ID3D10DeviceChild_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D10View(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D10View, ID3D10View_Vtbl, 0xc902b03f_60a7_49ba_9936_2a3ab37a7e33); +::windows_core::imp::interface_hierarchy!(ID3D10View, ::windows_core::IUnknown, ID3D10DeviceChild); impl ID3D10View { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -4984,15 +4611,8 @@ impl ID3D10View { ::windows_core::from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ID3D10View, ::windows_core::IUnknown, ID3D10DeviceChild); unsafe impl ::core::marker::Send for ID3D10View {} unsafe impl ::core::marker::Sync for ID3D10View {} -unsafe impl ::windows_core::Interface for ID3D10View { - type Vtable = ID3D10View_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D10View { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc902b03f_60a7_49ba_9936_2a3ab37a7e33); -} #[repr(C)] #[doc(hidden)] pub struct ID3D10View_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D11/impl.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D11/impl.rs index f87a2b2d80..a5718b6c9c 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D11/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D11/impl.rs @@ -12,7 +12,7 @@ impl ID3D11Asynchronous_Vtbl { Self { base__: ID3D11DeviceChild_Vtbl::new::(), GetDataSize: GetDataSize:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ID3D11AuthenticatedChannel_Impl: Sized + ID3D11DeviceChild_Impl { @@ -52,7 +52,7 @@ impl ID3D11AuthenticatedChannel_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ID3D11BlendState_Impl: Sized + ID3D11DeviceChild_Impl { @@ -69,7 +69,7 @@ impl ID3D11BlendState_Vtbl { Self { base__: ID3D11DeviceChild_Vtbl::new::(), GetDesc: GetDesc:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ID3D11BlendState1_Impl: Sized + ID3D11BlendState_Impl { @@ -86,7 +86,7 @@ impl ID3D11BlendState1_Vtbl { Self { base__: ID3D11BlendState_Vtbl::new::(), GetDesc1: GetDesc1:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ID3D11Buffer_Impl: Sized + ID3D11Resource_Impl { @@ -103,7 +103,7 @@ impl ID3D11Buffer_Vtbl { Self { base__: ID3D11Resource_Vtbl::new::(), GetDesc: GetDesc:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ID3D11ClassInstance_Impl: Sized + ID3D11DeviceChild_Impl { @@ -144,7 +144,7 @@ impl ID3D11ClassInstance_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ID3D11ClassLinkage_Impl: Sized + ID3D11DeviceChild_Impl { @@ -183,7 +183,7 @@ impl ID3D11ClassLinkage_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ID3D11CommandList_Impl: Sized + ID3D11DeviceChild_Impl { @@ -200,7 +200,7 @@ impl ID3D11CommandList_Vtbl { Self { base__: ID3D11DeviceChild_Vtbl::new::(), GetContextFlags: GetContextFlags:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ID3D11ComputeShader_Impl: Sized + ID3D11DeviceChild_Impl {} @@ -210,7 +210,7 @@ impl ID3D11ComputeShader_Vtbl { Self { base__: ID3D11DeviceChild_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ID3D11Counter_Impl: Sized + ID3D11Asynchronous_Impl { @@ -227,7 +227,7 @@ impl ID3D11Counter_Vtbl { Self { base__: ID3D11Asynchronous_Vtbl::new::(), GetDesc: GetDesc:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ID3D11CryptoSession_Impl: Sized + ID3D11DeviceChild_Impl { @@ -281,7 +281,7 @@ impl ID3D11CryptoSession_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi\"`"] @@ -367,7 +367,7 @@ impl ID3D11Debug_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ID3D11DepthStencilState_Impl: Sized + ID3D11DeviceChild_Impl { @@ -384,7 +384,7 @@ impl ID3D11DepthStencilState_Vtbl { Self { base__: ID3D11DeviceChild_Vtbl::new::(), GetDesc: GetDesc:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] @@ -405,7 +405,7 @@ impl ID3D11DepthStencilView_Vtbl { Self { base__: ID3D11View_Vtbl::new::(), GetDesc: GetDesc:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D\"`, `\"Win32_Graphics_Dxgi_Common\"`"] @@ -720,7 +720,7 @@ impl ID3D11Device_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D\"`, `\"Win32_Graphics_Dxgi_Common\"`"] @@ -786,7 +786,7 @@ impl ID3D11Device1_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D\"`, `\"Win32_Graphics_Dxgi_Common\"`"] @@ -837,7 +837,7 @@ impl ID3D11Device2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D\"`, `\"Win32_Graphics_Dxgi_Common\"`"] @@ -931,7 +931,7 @@ impl ID3D11Device3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D\"`, `\"Win32_Graphics_Dxgi_Common\"`"] @@ -968,7 +968,7 @@ impl ID3D11Device4_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D\"`, `\"Win32_Graphics_Dxgi_Common\"`"] @@ -999,7 +999,7 @@ impl ID3D11Device5_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ID3D11DeviceChild_Impl: Sized { @@ -1040,7 +1040,7 @@ impl ID3D11DeviceChild_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D\"`, `\"Win32_Graphics_Dxgi_Common\"`"] @@ -1813,7 +1813,7 @@ impl ID3D11DeviceContext_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D\"`, `\"Win32_Graphics_Dxgi_Common\"`"] @@ -1963,7 +1963,7 @@ impl ID3D11DeviceContext1_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D\"`, `\"Win32_Graphics_Dxgi_Common\"`"] @@ -2062,7 +2062,7 @@ impl ID3D11DeviceContext2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D\"`, `\"Win32_Graphics_Dxgi_Common\"`"] @@ -2100,7 +2100,7 @@ impl ID3D11DeviceContext3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D\"`, `\"Win32_Graphics_Dxgi_Common\"`"] @@ -2131,7 +2131,7 @@ impl ID3D11DeviceContext4_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ID3D11DomainShader_Impl: Sized + ID3D11DeviceChild_Impl {} @@ -2141,7 +2141,7 @@ impl ID3D11DomainShader_Vtbl { Self { base__: ID3D11DeviceChild_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Security\"`"] @@ -2185,7 +2185,7 @@ impl ID3D11Fence_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D\"`"] @@ -2282,7 +2282,7 @@ impl ID3D11FunctionLinkingGraph_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D\"`"] @@ -2398,7 +2398,7 @@ impl ID3D11GeometryShader_Vtbl { Self { base__: ID3D11DeviceChild_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ID3D11HullShader_Impl: Sized + ID3D11DeviceChild_Impl {} @@ -2408,7 +2408,7 @@ impl ID3D11HullShader_Vtbl { Self { base__: ID3D11DeviceChild_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ID3D11InfoQueue_Impl: Sized { @@ -2666,7 +2666,7 @@ impl ID3D11InfoQueue_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ID3D11InputLayout_Impl: Sized + ID3D11DeviceChild_Impl {} @@ -2676,7 +2676,7 @@ impl ID3D11InputLayout_Vtbl { Self { base__: ID3D11DeviceChild_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ID3D11LibraryReflection_Impl: Sized { @@ -2709,7 +2709,7 @@ impl ID3D11LibraryReflection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D\"`"] @@ -2747,7 +2747,7 @@ impl ID3D11Linker_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ID3D11LinkingNode_Impl: Sized {} @@ -2757,7 +2757,7 @@ impl ID3D11LinkingNode_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ID3D11Module_Impl: Sized { @@ -2780,7 +2780,7 @@ impl ID3D11Module_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CreateInstance: CreateInstance:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ID3D11ModuleInstance_Impl: Sized { @@ -2863,7 +2863,7 @@ impl ID3D11ModuleInstance_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ID3D11Multithread_Impl: Sized { @@ -2904,7 +2904,7 @@ impl ID3D11Multithread_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ID3D11PixelShader_Impl: Sized + ID3D11DeviceChild_Impl {} @@ -2914,7 +2914,7 @@ impl ID3D11PixelShader_Vtbl { Self { base__: ID3D11DeviceChild_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ID3D11Predicate_Impl: Sized + ID3D11Query_Impl {} @@ -2924,7 +2924,7 @@ impl ID3D11Predicate_Vtbl { Self { base__: ID3D11Query_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ID3D11Query_Impl: Sized + ID3D11Asynchronous_Impl { @@ -2941,7 +2941,7 @@ impl ID3D11Query_Vtbl { Self { base__: ID3D11Asynchronous_Vtbl::new::(), GetDesc: GetDesc:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ID3D11Query1_Impl: Sized + ID3D11Query_Impl { @@ -2958,7 +2958,7 @@ impl ID3D11Query1_Vtbl { Self { base__: ID3D11Query_Vtbl::new::(), GetDesc1: GetDesc1:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ID3D11RasterizerState_Impl: Sized + ID3D11DeviceChild_Impl { @@ -2975,7 +2975,7 @@ impl ID3D11RasterizerState_Vtbl { Self { base__: ID3D11DeviceChild_Vtbl::new::(), GetDesc: GetDesc:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ID3D11RasterizerState1_Impl: Sized + ID3D11RasterizerState_Impl { @@ -2992,7 +2992,7 @@ impl ID3D11RasterizerState1_Vtbl { Self { base__: ID3D11RasterizerState_Vtbl::new::(), GetDesc1: GetDesc1:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ID3D11RasterizerState2_Impl: Sized + ID3D11RasterizerState1_Impl { @@ -3009,7 +3009,7 @@ impl ID3D11RasterizerState2_Vtbl { Self { base__: ID3D11RasterizerState1_Vtbl::new::(), GetDesc2: GetDesc2:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ID3D11RefDefaultTrackingOptions_Impl: Sized { @@ -3026,7 +3026,7 @@ impl ID3D11RefDefaultTrackingOptions_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), SetTrackingOptions: SetTrackingOptions:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ID3D11RefTrackingOptions_Impl: Sized { @@ -3043,7 +3043,7 @@ impl ID3D11RefTrackingOptions_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), SetTrackingOptions: SetTrackingOptions:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] @@ -3064,7 +3064,7 @@ impl ID3D11RenderTargetView_Vtbl { Self { base__: ID3D11View_Vtbl::new::(), GetDesc: GetDesc:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] @@ -3085,7 +3085,7 @@ impl ID3D11RenderTargetView1_Vtbl { Self { base__: ID3D11RenderTargetView_Vtbl::new::(), GetDesc1: GetDesc1:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ID3D11Resource_Impl: Sized + ID3D11DeviceChild_Impl { @@ -3119,7 +3119,7 @@ impl ID3D11Resource_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ID3D11SamplerState_Impl: Sized + ID3D11DeviceChild_Impl { @@ -3136,7 +3136,7 @@ impl ID3D11SamplerState_Vtbl { Self { base__: ID3D11DeviceChild_Vtbl::new::(), GetDesc: GetDesc:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D\"`"] @@ -3292,7 +3292,7 @@ impl ID3D11ShaderReflection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D\"`"] @@ -3502,7 +3502,7 @@ impl ID3D11ShaderResourceView_Vtbl { Self { base__: ID3D11View_Vtbl::new::(), GetDesc: GetDesc:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D\"`, `\"Win32_Graphics_Dxgi_Common\"`"] @@ -3523,7 +3523,7 @@ impl ID3D11ShaderResourceView1_Vtbl { Self { base__: ID3D11ShaderResourceView_Vtbl::new::(), GetDesc1: GetDesc1:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ID3D11ShaderTrace_Impl: Sized { @@ -3592,7 +3592,7 @@ impl ID3D11ShaderTrace_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ID3D11ShaderTraceFactory_Impl: Sized { @@ -3615,7 +3615,7 @@ impl ID3D11ShaderTraceFactory_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CreateShaderTrace: CreateShaderTrace:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ID3D11SwitchToRef_Impl: Sized { @@ -3642,7 +3642,7 @@ impl ID3D11SwitchToRef_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] @@ -3663,7 +3663,7 @@ impl ID3D11Texture1D_Vtbl { Self { base__: ID3D11Resource_Vtbl::new::(), GetDesc: GetDesc:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] @@ -3684,7 +3684,7 @@ impl ID3D11Texture2D_Vtbl { Self { base__: ID3D11Resource_Vtbl::new::(), GetDesc: GetDesc:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] @@ -3705,7 +3705,7 @@ impl ID3D11Texture2D1_Vtbl { Self { base__: ID3D11Texture2D_Vtbl::new::(), GetDesc1: GetDesc1:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] @@ -3726,7 +3726,7 @@ impl ID3D11Texture3D_Vtbl { Self { base__: ID3D11Resource_Vtbl::new::(), GetDesc: GetDesc:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] @@ -3747,7 +3747,7 @@ impl ID3D11Texture3D1_Vtbl { Self { base__: ID3D11Texture3D_Vtbl::new::(), GetDesc1: GetDesc1:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ID3D11TracingDevice_Impl: Sized { @@ -3774,7 +3774,7 @@ impl ID3D11TracingDevice_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] @@ -3795,7 +3795,7 @@ impl ID3D11UnorderedAccessView_Vtbl { Self { base__: ID3D11View_Vtbl::new::(), GetDesc: GetDesc:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] @@ -3816,7 +3816,7 @@ impl ID3D11UnorderedAccessView1_Vtbl { Self { base__: ID3D11UnorderedAccessView_Vtbl::new::(), GetDesc1: GetDesc1:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ID3D11VertexShader_Impl: Sized + ID3D11DeviceChild_Impl {} @@ -3826,7 +3826,7 @@ impl ID3D11VertexShader_Vtbl { Self { base__: ID3D11DeviceChild_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] @@ -4249,7 +4249,7 @@ impl ID3D11VideoContext_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] @@ -4382,7 +4382,7 @@ impl ID3D11VideoContext1_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] @@ -4427,7 +4427,7 @@ impl ID3D11VideoContext2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] @@ -4458,7 +4458,7 @@ impl ID3D11VideoContext3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] @@ -4495,7 +4495,7 @@ impl ID3D11VideoDecoder_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ID3D11VideoDecoderOutputView_Impl: Sized + ID3D11View_Impl { @@ -4512,7 +4512,7 @@ impl ID3D11VideoDecoderOutputView_Vtbl { Self { base__: ID3D11View_Vtbl::new::(), GetDesc: GetDesc:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] @@ -4702,7 +4702,7 @@ impl ID3D11VideoDevice_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] @@ -4759,7 +4759,7 @@ impl ID3D11VideoDevice1_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] @@ -4790,7 +4790,7 @@ impl ID3D11VideoDevice2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] @@ -4821,7 +4821,7 @@ impl ID3D11VideoProcessor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] @@ -4892,7 +4892,7 @@ impl ID3D11VideoProcessorEnumerator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] @@ -4922,7 +4922,7 @@ impl ID3D11VideoProcessorEnumerator1_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ID3D11VideoProcessorInputView_Impl: Sized + ID3D11View_Impl { @@ -4939,7 +4939,7 @@ impl ID3D11VideoProcessorInputView_Vtbl { Self { base__: ID3D11View_Vtbl::new::(), GetDesc: GetDesc:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ID3D11VideoProcessorOutputView_Impl: Sized + ID3D11View_Impl { @@ -4956,7 +4956,7 @@ impl ID3D11VideoProcessorOutputView_Vtbl { Self { base__: ID3D11View_Vtbl::new::(), GetDesc: GetDesc:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ID3D11View_Impl: Sized + ID3D11DeviceChild_Impl { @@ -4973,7 +4973,7 @@ impl ID3D11View_Vtbl { Self { base__: ID3D11DeviceChild_Vtbl::new::(), GetResource: GetResource:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ID3DDeviceContextState_Impl: Sized + ID3D11DeviceChild_Impl {} @@ -4983,7 +4983,7 @@ impl ID3DDeviceContextState_Vtbl { Self { base__: ID3D11DeviceChild_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ID3DUserDefinedAnnotation_Impl: Sized { @@ -5024,7 +5024,7 @@ impl ID3DUserDefinedAnnotation_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ID3DX11FFT_Impl: Sized { @@ -5086,7 +5086,7 @@ impl ID3DX11FFT_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ID3DX11Scan_Impl: Sized { @@ -5120,7 +5120,7 @@ impl ID3DX11Scan_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ID3DX11SegmentedScan_Impl: Sized { @@ -5147,6 +5147,6 @@ impl ID3DX11SegmentedScan_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 9aa1e23ea2..f0f6f5e067 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D11/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D11/mod.rs @@ -131,9 +131,8 @@ where let mut result__ = ::std::mem::zeroed(); D3DX11CreateSegmentedScan(pdevicecontext.into_param().abi(), maxelementscansize, &mut result__).from_abi(result__) } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11Asynchronous(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11Asynchronous, ID3D11Asynchronous_Vtbl, 0x4b35d0cd_1e15_4258_9c98_1b1333f6dd3b); +::windows_core::imp::interface_hierarchy!(ID3D11Asynchronous, ::windows_core::IUnknown, ID3D11DeviceChild); impl ID3D11Asynchronous { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -156,24 +155,16 @@ impl ID3D11Asynchronous { (::windows_core::Interface::vtable(self).GetDataSize)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(ID3D11Asynchronous, ::windows_core::IUnknown, ID3D11DeviceChild); unsafe impl ::core::marker::Send for ID3D11Asynchronous {} unsafe impl ::core::marker::Sync for ID3D11Asynchronous {} -unsafe impl ::windows_core::Interface for ID3D11Asynchronous { - type Vtable = ID3D11Asynchronous_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11Asynchronous { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4b35d0cd_1e15_4258_9c98_1b1333f6dd3b); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11Asynchronous_Vtbl { pub base__: ID3D11DeviceChild_Vtbl, pub GetDataSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> u32, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11AuthenticatedChannel(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11AuthenticatedChannel, ID3D11AuthenticatedChannel_Vtbl, 0x3015a308_dcbd_47aa_a747_192486d14d4a); +::windows_core::imp::interface_hierarchy!(ID3D11AuthenticatedChannel, ::windows_core::IUnknown, ID3D11DeviceChild); impl ID3D11AuthenticatedChannel { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -205,15 +196,8 @@ impl ID3D11AuthenticatedChannel { ::std::mem::transmute(result__) } } -::windows_core::imp::interface_hierarchy!(ID3D11AuthenticatedChannel, ::windows_core::IUnknown, ID3D11DeviceChild); unsafe impl ::core::marker::Send for ID3D11AuthenticatedChannel {} unsafe impl ::core::marker::Sync for ID3D11AuthenticatedChannel {} -unsafe impl ::windows_core::Interface for ID3D11AuthenticatedChannel { - type Vtable = ID3D11AuthenticatedChannel_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11AuthenticatedChannel { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3015a308_dcbd_47aa_a747_192486d14d4a); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11AuthenticatedChannel_Vtbl { @@ -222,9 +206,8 @@ pub struct ID3D11AuthenticatedChannel_Vtbl { pub GetCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, certificatesize: u32, pcertificate: *mut u8) -> ::windows_core::HRESULT, pub GetChannelHandle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pchannelhandle: *mut super::super::Foundation::HANDLE), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11BlendState(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11BlendState, ID3D11BlendState_Vtbl, 0x75b68faa_347d_4159_8f45_a0640f01cd9a); +::windows_core::imp::interface_hierarchy!(ID3D11BlendState, ::windows_core::IUnknown, ID3D11DeviceChild); impl ID3D11BlendState { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -247,24 +230,16 @@ impl ID3D11BlendState { (::windows_core::Interface::vtable(self).GetDesc)(::windows_core::Interface::as_raw(self), pdesc) } } -::windows_core::imp::interface_hierarchy!(ID3D11BlendState, ::windows_core::IUnknown, ID3D11DeviceChild); unsafe impl ::core::marker::Send for ID3D11BlendState {} unsafe impl ::core::marker::Sync for ID3D11BlendState {} -unsafe impl ::windows_core::Interface for ID3D11BlendState { - type Vtable = ID3D11BlendState_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11BlendState { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x75b68faa_347d_4159_8f45_a0640f01cd9a); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11BlendState_Vtbl { pub base__: ID3D11DeviceChild_Vtbl, pub GetDesc: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdesc: *mut D3D11_BLEND_DESC), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11BlendState1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11BlendState1, ID3D11BlendState1_Vtbl, 0xcc86fabe_da55_401d_85e7_e3c9de2877e9); +::windows_core::imp::interface_hierarchy!(ID3D11BlendState1, ::windows_core::IUnknown, ID3D11DeviceChild, ID3D11BlendState); impl ID3D11BlendState1 { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -290,24 +265,16 @@ impl ID3D11BlendState1 { (::windows_core::Interface::vtable(self).GetDesc1)(::windows_core::Interface::as_raw(self), pdesc) } } -::windows_core::imp::interface_hierarchy!(ID3D11BlendState1, ::windows_core::IUnknown, ID3D11DeviceChild, ID3D11BlendState); unsafe impl ::core::marker::Send for ID3D11BlendState1 {} unsafe impl ::core::marker::Sync for ID3D11BlendState1 {} -unsafe impl ::windows_core::Interface for ID3D11BlendState1 { - type Vtable = ID3D11BlendState1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11BlendState1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcc86fabe_da55_401d_85e7_e3c9de2877e9); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11BlendState1_Vtbl { pub base__: ID3D11BlendState_Vtbl, pub GetDesc1: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdesc: *mut D3D11_BLEND_DESC1), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11Buffer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11Buffer, ID3D11Buffer_Vtbl, 0x48570b85_d1ee_4fcd_a250_eb350722b037); +::windows_core::imp::interface_hierarchy!(ID3D11Buffer, ::windows_core::IUnknown, ID3D11DeviceChild, ID3D11Resource); impl ID3D11Buffer { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -341,24 +308,16 @@ impl ID3D11Buffer { (::windows_core::Interface::vtable(self).GetDesc)(::windows_core::Interface::as_raw(self), pdesc) } } -::windows_core::imp::interface_hierarchy!(ID3D11Buffer, ::windows_core::IUnknown, ID3D11DeviceChild, ID3D11Resource); unsafe impl ::core::marker::Send for ID3D11Buffer {} unsafe impl ::core::marker::Sync for ID3D11Buffer {} -unsafe impl ::windows_core::Interface for ID3D11Buffer { - type Vtable = ID3D11Buffer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11Buffer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x48570b85_d1ee_4fcd_a250_eb350722b037); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11Buffer_Vtbl { pub base__: ID3D11Resource_Vtbl, pub GetDesc: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdesc: *mut D3D11_BUFFER_DESC), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11ClassInstance(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11ClassInstance, ID3D11ClassInstance_Vtbl, 0xa6cd7faa_b0b7_4a2f_9436_8662a65797cb); +::windows_core::imp::interface_hierarchy!(ID3D11ClassInstance, ::windows_core::IUnknown, ID3D11DeviceChild); impl ID3D11ClassInstance { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -392,15 +351,8 @@ impl ID3D11ClassInstance { (::windows_core::Interface::vtable(self).GetTypeName)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(ptypename), pbufferlength) } } -::windows_core::imp::interface_hierarchy!(ID3D11ClassInstance, ::windows_core::IUnknown, ID3D11DeviceChild); unsafe impl ::core::marker::Send for ID3D11ClassInstance {} unsafe impl ::core::marker::Sync for ID3D11ClassInstance {} -unsafe impl ::windows_core::Interface for ID3D11ClassInstance { - type Vtable = ID3D11ClassInstance_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11ClassInstance { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa6cd7faa_b0b7_4a2f_9436_8662a65797cb); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11ClassInstance_Vtbl { @@ -410,9 +362,8 @@ pub struct ID3D11ClassInstance_Vtbl { pub GetInstanceName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinstancename: ::windows_core::PSTR, pbufferlength: *mut usize), pub GetTypeName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptypename: ::windows_core::PSTR, pbufferlength: *mut usize), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11ClassLinkage(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11ClassLinkage, ID3D11ClassLinkage_Vtbl, 0xddf57cba_9543_46e4_a12b_f207a0fe7fed); +::windows_core::imp::interface_hierarchy!(ID3D11ClassLinkage, ::windows_core::IUnknown, ID3D11DeviceChild); impl ID3D11ClassLinkage { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -446,15 +397,8 @@ impl ID3D11ClassLinkage { (::windows_core::Interface::vtable(self).CreateClassInstance)(::windows_core::Interface::as_raw(self), pclasstypename.into_param().abi(), constantbufferoffset, constantvectoroffset, textureoffset, sampleroffset, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ID3D11ClassLinkage, ::windows_core::IUnknown, ID3D11DeviceChild); unsafe impl ::core::marker::Send for ID3D11ClassLinkage {} unsafe impl ::core::marker::Sync for ID3D11ClassLinkage {} -unsafe impl ::windows_core::Interface for ID3D11ClassLinkage { - type Vtable = ID3D11ClassLinkage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11ClassLinkage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xddf57cba_9543_46e4_a12b_f207a0fe7fed); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11ClassLinkage_Vtbl { @@ -462,9 +406,8 @@ pub struct ID3D11ClassLinkage_Vtbl { pub GetClassInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pclassinstancename: ::windows_core::PCSTR, instanceindex: u32, ppinstance: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateClassInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pclasstypename: ::windows_core::PCSTR, constantbufferoffset: u32, constantvectoroffset: u32, textureoffset: u32, sampleroffset: u32, ppinstance: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11CommandList(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11CommandList, ID3D11CommandList_Vtbl, 0xa24bc4d1_769e_43f7_8013_98ff566c18e2); +::windows_core::imp::interface_hierarchy!(ID3D11CommandList, ::windows_core::IUnknown, ID3D11DeviceChild); impl ID3D11CommandList { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -487,24 +430,16 @@ impl ID3D11CommandList { (::windows_core::Interface::vtable(self).GetContextFlags)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(ID3D11CommandList, ::windows_core::IUnknown, ID3D11DeviceChild); unsafe impl ::core::marker::Send for ID3D11CommandList {} unsafe impl ::core::marker::Sync for ID3D11CommandList {} -unsafe impl ::windows_core::Interface for ID3D11CommandList { - type Vtable = ID3D11CommandList_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11CommandList { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa24bc4d1_769e_43f7_8013_98ff566c18e2); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11CommandList_Vtbl { pub base__: ID3D11DeviceChild_Vtbl, pub GetContextFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> u32, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11ComputeShader(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11ComputeShader, ID3D11ComputeShader_Vtbl, 0x4f5b196e_c2bd_495e_bd01_1fded38e4969); +::windows_core::imp::interface_hierarchy!(ID3D11ComputeShader, ::windows_core::IUnknown, ID3D11DeviceChild); impl ID3D11ComputeShader { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -524,23 +459,15 @@ impl ID3D11ComputeShader { (::windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(::windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ID3D11ComputeShader, ::windows_core::IUnknown, ID3D11DeviceChild); unsafe impl ::core::marker::Send for ID3D11ComputeShader {} unsafe impl ::core::marker::Sync for ID3D11ComputeShader {} -unsafe impl ::windows_core::Interface for ID3D11ComputeShader { - type Vtable = ID3D11ComputeShader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11ComputeShader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4f5b196e_c2bd_495e_bd01_1fded38e4969); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11ComputeShader_Vtbl { pub base__: ID3D11DeviceChild_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11Counter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11Counter, ID3D11Counter_Vtbl, 0x6e8c49fb_a371_4770_b440_29086022b741); +::windows_core::imp::interface_hierarchy!(ID3D11Counter, ::windows_core::IUnknown, ID3D11DeviceChild, ID3D11Asynchronous); impl ID3D11Counter { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -568,24 +495,16 @@ impl ID3D11Counter { ::std::mem::transmute(result__) } } -::windows_core::imp::interface_hierarchy!(ID3D11Counter, ::windows_core::IUnknown, ID3D11DeviceChild, ID3D11Asynchronous); unsafe impl ::core::marker::Send for ID3D11Counter {} unsafe impl ::core::marker::Sync for ID3D11Counter {} -unsafe impl ::windows_core::Interface for ID3D11Counter { - type Vtable = ID3D11Counter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11Counter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6e8c49fb_a371_4770_b440_29086022b741); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11Counter_Vtbl { pub base__: ID3D11Asynchronous_Vtbl, pub GetDesc: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdesc: *mut D3D11_COUNTER_DESC), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11CryptoSession(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11CryptoSession, ID3D11CryptoSession_Vtbl, 0x9b32f9ad_bdcc_40a6_a39d_d5c865845720); +::windows_core::imp::interface_hierarchy!(ID3D11CryptoSession, ::windows_core::IUnknown, ID3D11DeviceChild); impl ID3D11CryptoSession { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -627,15 +546,8 @@ impl ID3D11CryptoSession { ::std::mem::transmute(result__) } } -::windows_core::imp::interface_hierarchy!(ID3D11CryptoSession, ::windows_core::IUnknown, ID3D11DeviceChild); unsafe impl ::core::marker::Send for ID3D11CryptoSession {} unsafe impl ::core::marker::Sync for ID3D11CryptoSession {} -unsafe impl ::windows_core::Interface for ID3D11CryptoSession { - type Vtable = ID3D11CryptoSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11CryptoSession { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9b32f9ad_bdcc_40a6_a39d_d5c865845720); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11CryptoSession_Vtbl { @@ -646,9 +558,8 @@ pub struct ID3D11CryptoSession_Vtbl { pub GetCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, certificatesize: u32, pcertificate: *mut u8) -> ::windows_core::HRESULT, pub GetCryptoSessionHandle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcryptosessionhandle: *mut super::super::Foundation::HANDLE), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11Debug(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11Debug, ID3D11Debug_Vtbl, 0x79cf2233_7536_4948_9d36_1e4692dc5760); +::windows_core::imp::interface_hierarchy!(ID3D11Debug, ::windows_core::IUnknown); impl ID3D11Debug { pub unsafe fn SetFeatureMask(&self, mask: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetFeatureMask)(::windows_core::Interface::as_raw(self), mask).ok() @@ -692,15 +603,8 @@ impl ID3D11Debug { (::windows_core::Interface::vtable(self).ValidateContextForDispatch)(::windows_core::Interface::as_raw(self), pcontext.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ID3D11Debug, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID3D11Debug {} unsafe impl ::core::marker::Sync for ID3D11Debug {} -unsafe impl ::windows_core::Interface for ID3D11Debug { - type Vtable = ID3D11Debug_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11Debug { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x79cf2233_7536_4948_9d36_1e4692dc5760); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11Debug_Vtbl { @@ -721,9 +625,8 @@ pub struct ID3D11Debug_Vtbl { pub ReportLiveDeviceObjects: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: D3D11_RLDO_FLAGS) -> ::windows_core::HRESULT, pub ValidateContextForDispatch: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcontext: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11DepthStencilState(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11DepthStencilState, ID3D11DepthStencilState_Vtbl, 0x03823efb_8d8f_4e1c_9aa2_f64bb2cbfdf1); +::windows_core::imp::interface_hierarchy!(ID3D11DepthStencilState, ::windows_core::IUnknown, ID3D11DeviceChild); impl ID3D11DepthStencilState { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -746,24 +649,16 @@ impl ID3D11DepthStencilState { (::windows_core::Interface::vtable(self).GetDesc)(::windows_core::Interface::as_raw(self), pdesc) } } -::windows_core::imp::interface_hierarchy!(ID3D11DepthStencilState, ::windows_core::IUnknown, ID3D11DeviceChild); unsafe impl ::core::marker::Send for ID3D11DepthStencilState {} unsafe impl ::core::marker::Sync for ID3D11DepthStencilState {} -unsafe impl ::windows_core::Interface for ID3D11DepthStencilState { - type Vtable = ID3D11DepthStencilState_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11DepthStencilState { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x03823efb_8d8f_4e1c_9aa2_f64bb2cbfdf1); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11DepthStencilState_Vtbl { pub base__: ID3D11DeviceChild_Vtbl, pub GetDesc: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdesc: *mut D3D11_DEPTH_STENCIL_DESC), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11DepthStencilView(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11DepthStencilView, ID3D11DepthStencilView_Vtbl, 0x9fdac92a_1876_48c3_afad_25b94f84a9b6); +::windows_core::imp::interface_hierarchy!(ID3D11DepthStencilView, ::windows_core::IUnknown, ID3D11DeviceChild, ID3D11View); impl ID3D11DepthStencilView { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -793,15 +688,8 @@ impl ID3D11DepthStencilView { (::windows_core::Interface::vtable(self).GetDesc)(::windows_core::Interface::as_raw(self), pdesc) } } -::windows_core::imp::interface_hierarchy!(ID3D11DepthStencilView, ::windows_core::IUnknown, ID3D11DeviceChild, ID3D11View); unsafe impl ::core::marker::Send for ID3D11DepthStencilView {} unsafe impl ::core::marker::Sync for ID3D11DepthStencilView {} -unsafe impl ::windows_core::Interface for ID3D11DepthStencilView { - type Vtable = ID3D11DepthStencilView_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11DepthStencilView { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9fdac92a_1876_48c3_afad_25b94f84a9b6); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11DepthStencilView_Vtbl { @@ -811,9 +699,8 @@ pub struct ID3D11DepthStencilView_Vtbl { #[cfg(not(feature = "Win32_Graphics_Dxgi_Common"))] GetDesc: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11Device(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11Device, ID3D11Device_Vtbl, 0xdb6f6ddb_ac77_4e88_8253_819df9bbf140); +::windows_core::imp::interface_hierarchy!(ID3D11Device, ::windows_core::IUnknown); impl ID3D11Device { pub unsafe fn CreateBuffer(&self, pdesc: *const D3D11_BUFFER_DESC, pinitialdata: ::core::option::Option<*const D3D11_SUBRESOURCE_DATA>, ppbuffer: ::core::option::Option<*mut ::core::option::Option>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).CreateBuffer)(::windows_core::Interface::as_raw(self), pdesc, ::core::mem::transmute(pinitialdata.unwrap_or(::std::ptr::null())), ::core::mem::transmute(ppbuffer.unwrap_or(::std::ptr::null_mut()))).ok() @@ -955,7 +842,7 @@ impl ID3D11Device { pub unsafe fn OpenSharedResource(&self, hresource: P0, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -1017,15 +904,8 @@ impl ID3D11Device { (::windows_core::Interface::vtable(self).GetExceptionMode)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(ID3D11Device, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID3D11Device {} unsafe impl ::core::marker::Sync for ID3D11Device {} -unsafe impl ::windows_core::Interface for ID3D11Device { - type Vtable = ID3D11Device_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11Device { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdb6f6ddb_ac77_4e88_8253_819df9bbf140); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11Device_Vtbl { @@ -1104,9 +984,8 @@ pub struct ID3D11Device_Vtbl { pub SetExceptionMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, raiseflags: u32) -> ::windows_core::HRESULT, pub GetExceptionMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> u32, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11Device1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11Device1, ID3D11Device1_Vtbl, 0xa04bfb29_08ef_43d6_a49c_a9bdbdcbe686); +::windows_core::imp::interface_hierarchy!(ID3D11Device1, ::windows_core::IUnknown, ID3D11Device); impl ID3D11Device1 { pub unsafe fn CreateBuffer(&self, pdesc: *const D3D11_BUFFER_DESC, pinitialdata: ::core::option::Option<*const D3D11_SUBRESOURCE_DATA>, ppbuffer: ::core::option::Option<*mut ::core::option::Option>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.CreateBuffer)(::windows_core::Interface::as_raw(self), pdesc, ::core::mem::transmute(pinitialdata.unwrap_or(::std::ptr::null())), ::core::mem::transmute(ppbuffer.unwrap_or(::std::ptr::null_mut()))).ok() @@ -1248,7 +1127,7 @@ impl ID3D11Device1 { pub unsafe fn OpenSharedResource(&self, hresource: P0, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -1331,7 +1210,7 @@ impl ID3D11Device1 { pub unsafe fn OpenSharedResource1(&self, hresource: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -1339,21 +1218,14 @@ impl ID3D11Device1 { pub unsafe fn OpenSharedResourceByName(&self, lpname: P0, dwdesiredaccess: u32) -> ::windows_core::Result where P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ID3D11Device1, ::windows_core::IUnknown, ID3D11Device); unsafe impl ::core::marker::Send for ID3D11Device1 {} unsafe impl ::core::marker::Sync for ID3D11Device1 {} -unsafe impl ::windows_core::Interface for ID3D11Device1 { - type Vtable = ID3D11Device1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11Device1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa04bfb29_08ef_43d6_a49c_a9bdbdcbe686); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11Device1_Vtbl { @@ -1369,9 +1241,8 @@ pub struct ID3D11Device1_Vtbl { pub OpenSharedResource1: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hresource: super::super::Foundation::HANDLE, returnedinterface: *const ::windows_core::GUID, ppresource: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub OpenSharedResourceByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpname: ::windows_core::PCWSTR, dwdesiredaccess: u32, returnedinterface: *const ::windows_core::GUID, ppresource: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11Device2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11Device2, ID3D11Device2_Vtbl, 0x9d06dffa_d1e5_4d07_83a8_1bb123f2f841); +::windows_core::imp::interface_hierarchy!(ID3D11Device2, ::windows_core::IUnknown, ID3D11Device, ID3D11Device1); impl ID3D11Device2 { pub unsafe fn CreateBuffer(&self, pdesc: *const D3D11_BUFFER_DESC, pinitialdata: ::core::option::Option<*const D3D11_SUBRESOURCE_DATA>, ppbuffer: ::core::option::Option<*mut ::core::option::Option>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.CreateBuffer)(::windows_core::Interface::as_raw(self), pdesc, ::core::mem::transmute(pinitialdata.unwrap_or(::std::ptr::null())), ::core::mem::transmute(ppbuffer.unwrap_or(::std::ptr::null_mut()))).ok() @@ -1513,7 +1384,7 @@ impl ID3D11Device2 { pub unsafe fn OpenSharedResource(&self, hresource: P0, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -1596,7 +1467,7 @@ impl ID3D11Device2 { pub unsafe fn OpenSharedResource1(&self, hresource: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -1604,7 +1475,7 @@ impl ID3D11Device2 { pub unsafe fn OpenSharedResourceByName(&self, lpname: P0, dwdesiredaccess: u32) -> ::windows_core::Result where P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -1630,15 +1501,8 @@ impl ID3D11Device2 { (::windows_core::Interface::vtable(self).CheckMultisampleQualityLevels1)(::windows_core::Interface::as_raw(self), format, samplecount, flags, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ID3D11Device2, ::windows_core::IUnknown, ID3D11Device, ID3D11Device1); unsafe impl ::core::marker::Send for ID3D11Device2 {} unsafe impl ::core::marker::Sync for ID3D11Device2 {} -unsafe impl ::windows_core::Interface for ID3D11Device2 { - type Vtable = ID3D11Device2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11Device2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9d06dffa_d1e5_4d07_83a8_1bb123f2f841); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11Device2_Vtbl { @@ -1651,9 +1515,8 @@ pub struct ID3D11Device2_Vtbl { #[cfg(not(feature = "Win32_Graphics_Dxgi_Common"))] CheckMultisampleQualityLevels1: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11Device3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11Device3, ID3D11Device3_Vtbl, 0xa05c8c37_d2c6_4732_b3a0_9ce0b0dc9ae6); +::windows_core::imp::interface_hierarchy!(ID3D11Device3, ::windows_core::IUnknown, ID3D11Device, ID3D11Device1, ID3D11Device2); impl ID3D11Device3 { pub unsafe fn CreateBuffer(&self, pdesc: *const D3D11_BUFFER_DESC, pinitialdata: ::core::option::Option<*const D3D11_SUBRESOURCE_DATA>, ppbuffer: ::core::option::Option<*mut ::core::option::Option>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.CreateBuffer)(::windows_core::Interface::as_raw(self), pdesc, ::core::mem::transmute(pinitialdata.unwrap_or(::std::ptr::null())), ::core::mem::transmute(ppbuffer.unwrap_or(::std::ptr::null_mut()))).ok() @@ -1795,7 +1658,7 @@ impl ID3D11Device3 { pub unsafe fn OpenSharedResource(&self, hresource: P0, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -1878,7 +1741,7 @@ impl ID3D11Device3 { pub unsafe fn OpenSharedResource1(&self, hresource: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -1886,7 +1749,7 @@ impl ID3D11Device3 { pub unsafe fn OpenSharedResourceByName(&self, lpname: P0, dwdesiredaccess: u32) -> ::windows_core::Result where P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -1972,15 +1835,8 @@ impl ID3D11Device3 { (::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::imp::interface_hierarchy!(ID3D11Device3, ::windows_core::IUnknown, ID3D11Device, ID3D11Device1, ID3D11Device2); unsafe impl ::core::marker::Send for ID3D11Device3 {} unsafe impl ::core::marker::Sync for ID3D11Device3 {} -unsafe impl ::windows_core::Interface for ID3D11Device3 { - type Vtable = ID3D11Device3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11Device3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa05c8c37_d2c6_4732_b3a0_9ce0b0dc9ae6); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11Device3_Vtbl { @@ -2012,9 +1868,8 @@ pub struct ID3D11Device3_Vtbl { pub WriteToSubresource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdstresource: *mut ::core::ffi::c_void, dstsubresource: u32, pdstbox: *const D3D11_BOX, psrcdata: *const ::core::ffi::c_void, srcrowpitch: u32, srcdepthpitch: u32), pub ReadFromSubresource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdstdata: *mut ::core::ffi::c_void, dstrowpitch: u32, dstdepthpitch: u32, psrcresource: *mut ::core::ffi::c_void, srcsubresource: u32, psrcbox: *const D3D11_BOX), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11Device4(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11Device4, ID3D11Device4_Vtbl, 0x8992ab71_02e6_4b8d_ba48_b056dcda42c4); +::windows_core::imp::interface_hierarchy!(ID3D11Device4, ::windows_core::IUnknown, ID3D11Device, ID3D11Device1, ID3D11Device2, ID3D11Device3); impl ID3D11Device4 { pub unsafe fn CreateBuffer(&self, pdesc: *const D3D11_BUFFER_DESC, pinitialdata: ::core::option::Option<*const D3D11_SUBRESOURCE_DATA>, ppbuffer: ::core::option::Option<*mut ::core::option::Option>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateBuffer)(::windows_core::Interface::as_raw(self), pdesc, ::core::mem::transmute(pinitialdata.unwrap_or(::std::ptr::null())), ::core::mem::transmute(ppbuffer.unwrap_or(::std::ptr::null_mut()))).ok() @@ -2156,7 +2011,7 @@ impl ID3D11Device4 { pub unsafe fn OpenSharedResource(&self, hresource: P0, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -2239,7 +2094,7 @@ impl ID3D11Device4 { pub unsafe fn OpenSharedResource1(&self, hresource: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -2247,7 +2102,7 @@ impl ID3D11Device4 { pub unsafe fn OpenSharedResourceByName(&self, lpname: P0, dwdesiredaccess: u32) -> ::windows_core::Result where P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -2343,15 +2198,8 @@ impl ID3D11Device4 { (::windows_core::Interface::vtable(self).UnregisterDeviceRemoved)(::windows_core::Interface::as_raw(self), dwcookie) } } -::windows_core::imp::interface_hierarchy!(ID3D11Device4, ::windows_core::IUnknown, ID3D11Device, ID3D11Device1, ID3D11Device2, ID3D11Device3); unsafe impl ::core::marker::Send for ID3D11Device4 {} unsafe impl ::core::marker::Sync for ID3D11Device4 {} -unsafe impl ::windows_core::Interface for ID3D11Device4 { - type Vtable = ID3D11Device4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11Device4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8992ab71_02e6_4b8d_ba48_b056dcda42c4); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11Device4_Vtbl { @@ -2359,9 +2207,8 @@ pub struct ID3D11Device4_Vtbl { pub RegisterDeviceRemovedEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hevent: super::super::Foundation::HANDLE, pdwcookie: *mut u32) -> ::windows_core::HRESULT, pub UnregisterDeviceRemoved: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwcookie: u32), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11Device5(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11Device5, ID3D11Device5_Vtbl, 0x8ffde202_a0e7_45df_9e01_e837801b5ea0); +::windows_core::imp::interface_hierarchy!(ID3D11Device5, ::windows_core::IUnknown, ID3D11Device, ID3D11Device1, ID3D11Device2, ID3D11Device3, ID3D11Device4); impl ID3D11Device5 { pub unsafe fn CreateBuffer(&self, pdesc: *const D3D11_BUFFER_DESC, pinitialdata: ::core::option::Option<*const D3D11_SUBRESOURCE_DATA>, ppbuffer: ::core::option::Option<*mut ::core::option::Option>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateBuffer)(::windows_core::Interface::as_raw(self), pdesc, ::core::mem::transmute(pinitialdata.unwrap_or(::std::ptr::null())), ::core::mem::transmute(ppbuffer.unwrap_or(::std::ptr::null_mut()))).ok() @@ -2503,7 +2350,7 @@ impl ID3D11Device5 { pub unsafe fn OpenSharedResource(&self, hresource: P0, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -2586,7 +2433,7 @@ impl ID3D11Device5 { pub unsafe fn OpenSharedResource1(&self, hresource: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -2594,7 +2441,7 @@ impl ID3D11Device5 { pub unsafe fn OpenSharedResourceByName(&self, lpname: P0, dwdesiredaccess: u32) -> ::windows_core::Result where P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -2692,26 +2539,19 @@ impl ID3D11Device5 { pub unsafe fn OpenSharedFence(&self, hfence: P0, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } pub unsafe fn CreateFence(&self, initialvalue: u64, flags: D3D11_FENCE_FLAG, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).CreateFence)(::windows_core::Interface::as_raw(self), initialvalue, flags, &T::IID, result__ as *mut _ as *mut _).ok() } } -::windows_core::imp::interface_hierarchy!(ID3D11Device5, ::windows_core::IUnknown, ID3D11Device, ID3D11Device1, ID3D11Device2, ID3D11Device3, ID3D11Device4); unsafe impl ::core::marker::Send for ID3D11Device5 {} unsafe impl ::core::marker::Sync for ID3D11Device5 {} -unsafe impl ::windows_core::Interface for ID3D11Device5 { - type Vtable = ID3D11Device5_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11Device5 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8ffde202_a0e7_45df_9e01_e837801b5ea0); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11Device5_Vtbl { @@ -2719,9 +2559,8 @@ pub struct ID3D11Device5_Vtbl { pub OpenSharedFence: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hfence: super::super::Foundation::HANDLE, returnedinterface: *const ::windows_core::GUID, ppfence: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateFence: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, initialvalue: u64, flags: D3D11_FENCE_FLAG, returnedinterface: *const ::windows_core::GUID, ppfence: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11DeviceChild(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11DeviceChild, ID3D11DeviceChild_Vtbl, 0x1841e5c8_16b0_489b_bcc8_44cfb0d5deae); +::windows_core::imp::interface_hierarchy!(ID3D11DeviceChild, ::windows_core::IUnknown); impl ID3D11DeviceChild { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2741,15 +2580,8 @@ impl ID3D11DeviceChild { (::windows_core::Interface::vtable(self).SetPrivateDataInterface)(::windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ID3D11DeviceChild, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID3D11DeviceChild {} unsafe impl ::core::marker::Sync for ID3D11DeviceChild {} -unsafe impl ::windows_core::Interface for ID3D11DeviceChild { - type Vtable = ID3D11DeviceChild_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11DeviceChild { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1841e5c8_16b0_489b_bcc8_44cfb0d5deae); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11DeviceChild_Vtbl { @@ -2759,9 +2591,8 @@ pub struct ID3D11DeviceChild_Vtbl { pub SetPrivateData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guid: *const ::windows_core::GUID, datasize: u32, pdata: *const ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetPrivateDataInterface: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guid: *const ::windows_core::GUID, pdata: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11DeviceContext(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11DeviceContext, ID3D11DeviceContext_Vtbl, 0xc0bfa96c_e089_44fb_8eaf_26f8796190da); +::windows_core::imp::interface_hierarchy!(ID3D11DeviceContext, ::windows_core::IUnknown, ID3D11DeviceChild); impl ID3D11DeviceContext { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -3243,15 +3074,8 @@ impl ID3D11DeviceContext { (::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::imp::interface_hierarchy!(ID3D11DeviceContext, ::windows_core::IUnknown, ID3D11DeviceChild); unsafe impl ::core::marker::Send for ID3D11DeviceContext {} unsafe impl ::core::marker::Sync for ID3D11DeviceContext {} -unsafe impl ::windows_core::Interface for ID3D11DeviceContext { - type Vtable = ID3D11DeviceContext_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11DeviceContext { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc0bfa96c_e089_44fb_8eaf_26f8796190da); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11DeviceContext_Vtbl { @@ -3380,9 +3204,8 @@ pub struct ID3D11DeviceContext_Vtbl { pub GetContextFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> u32, pub FinishCommandList: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, restoredeferredcontextstate: super::super::Foundation::BOOL, ppcommandlist: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11DeviceContext1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11DeviceContext1, ID3D11DeviceContext1_Vtbl, 0xbb2c6faa_b5fb_4082_8e6b_388b8cfa90e1); +::windows_core::imp::interface_hierarchy!(ID3D11DeviceContext1, ::windows_core::IUnknown, ID3D11DeviceChild, ID3D11DeviceContext); impl ID3D11DeviceContext1 { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -3943,15 +3766,8 @@ impl ID3D11DeviceContext1 { (::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::imp::interface_hierarchy!(ID3D11DeviceContext1, ::windows_core::IUnknown, ID3D11DeviceChild, ID3D11DeviceContext); unsafe impl ::core::marker::Send for ID3D11DeviceContext1 {} unsafe impl ::core::marker::Sync for ID3D11DeviceContext1 {} -unsafe impl ::windows_core::Interface for ID3D11DeviceContext1 { - type Vtable = ID3D11DeviceContext1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11DeviceContext1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbb2c6faa_b5fb_4082_8e6b_388b8cfa90e1); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11DeviceContext1_Vtbl { @@ -3976,9 +3792,8 @@ pub struct ID3D11DeviceContext1_Vtbl { pub ClearView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pview: *mut ::core::ffi::c_void, color: *const f32, prect: *const super::super::Foundation::RECT, numrects: u32), pub DiscardView1: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, presourceview: *mut ::core::ffi::c_void, prects: *const super::super::Foundation::RECT, numrects: u32), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11DeviceContext2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11DeviceContext2, ID3D11DeviceContext2_Vtbl, 0x420d5b32_b90c_4da4_bef0_359f6a24a83a); +::windows_core::imp::interface_hierarchy!(ID3D11DeviceContext2, ::windows_core::IUnknown, ID3D11DeviceChild, ID3D11DeviceContext, ID3D11DeviceContext1); impl ID3D11DeviceContext2 { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -4610,15 +4425,8 @@ impl ID3D11DeviceContext2 { (::windows_core::Interface::vtable(self).EndEvent)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(ID3D11DeviceContext2, ::windows_core::IUnknown, ID3D11DeviceChild, ID3D11DeviceContext, ID3D11DeviceContext1); unsafe impl ::core::marker::Send for ID3D11DeviceContext2 {} unsafe impl ::core::marker::Sync for ID3D11DeviceContext2 {} -unsafe impl ::windows_core::Interface for ID3D11DeviceContext2 { - type Vtable = ID3D11DeviceContext2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11DeviceContext2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x420d5b32_b90c_4da4_bef0_359f6a24a83a); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11DeviceContext2_Vtbl { @@ -4634,9 +4442,8 @@ pub struct ID3D11DeviceContext2_Vtbl { pub BeginEventInt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plabel: ::windows_core::PCWSTR, data: i32), pub EndEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11DeviceContext3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11DeviceContext3, ID3D11DeviceContext3_Vtbl, 0xb4e3c01d_e79e_4637_91b2_510e9f4c9b8f); +::windows_core::imp::interface_hierarchy!(ID3D11DeviceContext3, ::windows_core::IUnknown, ID3D11DeviceChild, ID3D11DeviceContext, ID3D11DeviceContext1, ID3D11DeviceContext2); impl ID3D11DeviceContext3 { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -5285,15 +5092,8 @@ impl ID3D11DeviceContext3 { ::std::mem::transmute(result__) } } -::windows_core::imp::interface_hierarchy!(ID3D11DeviceContext3, ::windows_core::IUnknown, ID3D11DeviceChild, ID3D11DeviceContext, ID3D11DeviceContext1, ID3D11DeviceContext2); unsafe impl ::core::marker::Send for ID3D11DeviceContext3 {} unsafe impl ::core::marker::Sync for ID3D11DeviceContext3 {} -unsafe impl ::windows_core::Interface for ID3D11DeviceContext3 { - type Vtable = ID3D11DeviceContext3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11DeviceContext3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb4e3c01d_e79e_4637_91b2_510e9f4c9b8f); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11DeviceContext3_Vtbl { @@ -5302,9 +5102,8 @@ pub struct ID3D11DeviceContext3_Vtbl { pub SetHardwareProtectionState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwprotectionenable: super::super::Foundation::BOOL), pub GetHardwareProtectionState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phwprotectionenable: *mut super::super::Foundation::BOOL), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11DeviceContext4(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11DeviceContext4, ID3D11DeviceContext4_Vtbl, 0x917600da_f58c_4c33_98d8_3e15b390fa24); +::windows_core::imp::interface_hierarchy!(ID3D11DeviceContext4, ::windows_core::IUnknown, ID3D11DeviceChild, ID3D11DeviceContext, ID3D11DeviceContext1, ID3D11DeviceContext2, ID3D11DeviceContext3); impl ID3D11DeviceContext4 { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -5965,15 +5764,8 @@ impl ID3D11DeviceContext4 { (::windows_core::Interface::vtable(self).Wait)(::windows_core::Interface::as_raw(self), pfence.into_param().abi(), value).ok() } } -::windows_core::imp::interface_hierarchy!(ID3D11DeviceContext4, ::windows_core::IUnknown, ID3D11DeviceChild, ID3D11DeviceContext, ID3D11DeviceContext1, ID3D11DeviceContext2, ID3D11DeviceContext3); unsafe impl ::core::marker::Send for ID3D11DeviceContext4 {} unsafe impl ::core::marker::Sync for ID3D11DeviceContext4 {} -unsafe impl ::windows_core::Interface for ID3D11DeviceContext4 { - type Vtable = ID3D11DeviceContext4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11DeviceContext4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x917600da_f58c_4c33_98d8_3e15b390fa24); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11DeviceContext4_Vtbl { @@ -5981,9 +5773,8 @@ pub struct ID3D11DeviceContext4_Vtbl { pub Signal: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfence: *mut ::core::ffi::c_void, value: u64) -> ::windows_core::HRESULT, pub Wait: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfence: *mut ::core::ffi::c_void, value: u64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11DomainShader(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11DomainShader, ID3D11DomainShader_Vtbl, 0xf582c508_0f36_490c_9977_31eece268cfa); +::windows_core::imp::interface_hierarchy!(ID3D11DomainShader, ::windows_core::IUnknown, ID3D11DeviceChild); impl ID3D11DomainShader { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -6003,23 +5794,15 @@ impl ID3D11DomainShader { (::windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(::windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ID3D11DomainShader, ::windows_core::IUnknown, ID3D11DeviceChild); unsafe impl ::core::marker::Send for ID3D11DomainShader {} unsafe impl ::core::marker::Sync for ID3D11DomainShader {} -unsafe impl ::windows_core::Interface for ID3D11DomainShader { - type Vtable = ID3D11DomainShader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11DomainShader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf582c508_0f36_490c_9977_31eece268cfa); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11DomainShader_Vtbl { pub base__: ID3D11DeviceChild_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11Fence(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11Fence, ID3D11Fence_Vtbl, 0xaffde9d1_1df7_4bb7_8a34_0f46251dab80); +::windows_core::imp::interface_hierarchy!(ID3D11Fence, ::windows_core::IUnknown, ID3D11DeviceChild); impl ID3D11Fence { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -6057,15 +5840,8 @@ impl ID3D11Fence { (::windows_core::Interface::vtable(self).SetEventOnCompletion)(::windows_core::Interface::as_raw(self), value, hevent.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ID3D11Fence, ::windows_core::IUnknown, ID3D11DeviceChild); unsafe impl ::core::marker::Send for ID3D11Fence {} unsafe impl ::core::marker::Sync for ID3D11Fence {} -unsafe impl ::windows_core::Interface for ID3D11Fence { - type Vtable = ID3D11Fence_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11Fence { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaffde9d1_1df7_4bb7_8a34_0f46251dab80); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11Fence_Vtbl { @@ -6077,9 +5853,8 @@ pub struct ID3D11Fence_Vtbl { pub GetCompletedValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> u64, pub SetEventOnCompletion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: u64, hevent: super::super::Foundation::HANDLE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11FunctionLinkingGraph(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11FunctionLinkingGraph, ID3D11FunctionLinkingGraph_Vtbl, 0x54133220_1ce8_43d3_8236_9855c5ceecff); +::windows_core::imp::interface_hierarchy!(ID3D11FunctionLinkingGraph, ::windows_core::IUnknown); impl ID3D11FunctionLinkingGraph { #[doc = "Required features: `\"Win32_Graphics_Direct3D\"`"] #[cfg(feature = "Win32_Graphics_Direct3D")] @@ -6135,15 +5910,8 @@ impl ID3D11FunctionLinkingGraph { (::windows_core::Interface::vtable(self).GenerateHlsl)(::windows_core::Interface::as_raw(self), uflags, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ID3D11FunctionLinkingGraph, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID3D11FunctionLinkingGraph {} unsafe impl ::core::marker::Sync for ID3D11FunctionLinkingGraph {} -unsafe impl ::windows_core::Interface for ID3D11FunctionLinkingGraph { - type Vtable = ID3D11FunctionLinkingGraph_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11FunctionLinkingGraph { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x54133220_1ce8_43d3_8236_9855c5ceecff); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11FunctionLinkingGraph_Vtbl { @@ -6172,9 +5940,7 @@ pub struct ID3D11FunctionLinkingGraph_Vtbl { #[cfg(not(feature = "Win32_Graphics_Direct3D"))] GenerateHlsl: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11FunctionParameterReflection(::std::ptr::NonNull<::std::ffi::c_void>); +::windows_core::imp::interface!(ID3D11FunctionParameterReflection, ID3D11FunctionParameterReflection_Vtbl); impl ID3D11FunctionParameterReflection { #[doc = "Required features: `\"Win32_Graphics_Direct3D\"`"] #[cfg(feature = "Win32_Graphics_Direct3D")] @@ -6184,9 +5950,6 @@ impl ID3D11FunctionParameterReflection { } unsafe impl ::core::marker::Send for ID3D11FunctionParameterReflection {} unsafe impl ::core::marker::Sync for ID3D11FunctionParameterReflection {} -unsafe impl ::windows_core::Interface for ID3D11FunctionParameterReflection { - type Vtable = ID3D11FunctionParameterReflection_Vtbl; -} #[repr(C)] #[doc(hidden)] pub struct ID3D11FunctionParameterReflection_Vtbl { @@ -6195,9 +5958,7 @@ pub struct ID3D11FunctionParameterReflection_Vtbl { #[cfg(not(feature = "Win32_Graphics_Direct3D"))] GetDesc: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11FunctionReflection(::std::ptr::NonNull<::std::ffi::c_void>); +::windows_core::imp::interface!(ID3D11FunctionReflection, ID3D11FunctionReflection_Vtbl); impl ID3D11FunctionReflection { #[doc = "Required features: `\"Win32_Graphics_Direct3D\"`"] #[cfg(feature = "Win32_Graphics_Direct3D")] @@ -6238,9 +5999,6 @@ impl ID3D11FunctionReflection { } unsafe impl ::core::marker::Send for ID3D11FunctionReflection {} unsafe impl ::core::marker::Sync for ID3D11FunctionReflection {} -unsafe impl ::windows_core::Interface for ID3D11FunctionReflection { - type Vtable = ID3D11FunctionReflection_Vtbl; -} #[repr(C)] #[doc(hidden)] pub struct ID3D11FunctionReflection_Vtbl { @@ -6261,9 +6019,8 @@ pub struct ID3D11FunctionReflection_Vtbl { GetResourceBindingDescByName: usize, pub GetFunctionParameter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, parameterindex: i32) -> ::core::option::Option, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11GeometryShader(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11GeometryShader, ID3D11GeometryShader_Vtbl, 0x38325b96_effb_4022_ba02_2e795b70275c); +::windows_core::imp::interface_hierarchy!(ID3D11GeometryShader, ::windows_core::IUnknown, ID3D11DeviceChild); impl ID3D11GeometryShader { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -6283,23 +6040,15 @@ impl ID3D11GeometryShader { (::windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(::windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ID3D11GeometryShader, ::windows_core::IUnknown, ID3D11DeviceChild); unsafe impl ::core::marker::Send for ID3D11GeometryShader {} unsafe impl ::core::marker::Sync for ID3D11GeometryShader {} -unsafe impl ::windows_core::Interface for ID3D11GeometryShader { - type Vtable = ID3D11GeometryShader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11GeometryShader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x38325b96_effb_4022_ba02_2e795b70275c); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11GeometryShader_Vtbl { pub base__: ID3D11DeviceChild_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11HullShader(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11HullShader, ID3D11HullShader_Vtbl, 0x8e5c6061_628a_4c8e_8264_bbe45cb3d5dd); +::windows_core::imp::interface_hierarchy!(ID3D11HullShader, ::windows_core::IUnknown, ID3D11DeviceChild); impl ID3D11HullShader { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -6319,23 +6068,15 @@ impl ID3D11HullShader { (::windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(::windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ID3D11HullShader, ::windows_core::IUnknown, ID3D11DeviceChild); unsafe impl ::core::marker::Send for ID3D11HullShader {} unsafe impl ::core::marker::Sync for ID3D11HullShader {} -unsafe impl ::windows_core::Interface for ID3D11HullShader { - type Vtable = ID3D11HullShader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11HullShader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8e5c6061_628a_4c8e_8264_bbe45cb3d5dd); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11HullShader_Vtbl { pub base__: ID3D11DeviceChild_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11InfoQueue(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11InfoQueue, ID3D11InfoQueue_Vtbl, 0x6543dbb6_1b48_42f5_ab82_e97ec74326f6); +::windows_core::imp::interface_hierarchy!(ID3D11InfoQueue, ::windows_core::IUnknown); impl ID3D11InfoQueue { pub unsafe fn SetMessageCountLimit(&self, messagecountlimit: u64) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetMessageCountLimit)(::windows_core::Interface::as_raw(self), messagecountlimit).ok() @@ -6461,15 +6202,8 @@ impl ID3D11InfoQueue { (::windows_core::Interface::vtable(self).GetMuteDebugOutput)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(ID3D11InfoQueue, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID3D11InfoQueue {} unsafe impl ::core::marker::Sync for ID3D11InfoQueue {} -unsafe impl ::windows_core::Interface for ID3D11InfoQueue { - type Vtable = ID3D11InfoQueue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11InfoQueue { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6543dbb6_1b48_42f5_ab82_e97ec74326f6); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11InfoQueue_Vtbl { @@ -6510,9 +6244,8 @@ pub struct ID3D11InfoQueue_Vtbl { pub SetMuteDebugOutput: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bmute: super::super::Foundation::BOOL), pub GetMuteDebugOutput: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11InputLayout(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11InputLayout, ID3D11InputLayout_Vtbl, 0xe4819ddc_4cf0_4025_bd26_5de82a3e07b7); +::windows_core::imp::interface_hierarchy!(ID3D11InputLayout, ::windows_core::IUnknown, ID3D11DeviceChild); impl ID3D11InputLayout { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -6532,23 +6265,15 @@ impl ID3D11InputLayout { (::windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(::windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ID3D11InputLayout, ::windows_core::IUnknown, ID3D11DeviceChild); unsafe impl ::core::marker::Send for ID3D11InputLayout {} unsafe impl ::core::marker::Sync for ID3D11InputLayout {} -unsafe impl ::windows_core::Interface for ID3D11InputLayout { - type Vtable = ID3D11InputLayout_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11InputLayout { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe4819ddc_4cf0_4025_bd26_5de82a3e07b7); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11InputLayout_Vtbl { pub base__: ID3D11DeviceChild_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11LibraryReflection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11LibraryReflection, ID3D11LibraryReflection_Vtbl, 0x54384f1b_5b3e_4bb7_ae01_60ba3097cbb6); +::windows_core::imp::interface_hierarchy!(ID3D11LibraryReflection, ::windows_core::IUnknown); impl ID3D11LibraryReflection { pub unsafe fn GetDesc(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -6558,15 +6283,8 @@ impl ID3D11LibraryReflection { (::windows_core::Interface::vtable(self).GetFunctionByIndex)(::windows_core::Interface::as_raw(self), functionindex) } } -::windows_core::imp::interface_hierarchy!(ID3D11LibraryReflection, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID3D11LibraryReflection {} unsafe impl ::core::marker::Sync for ID3D11LibraryReflection {} -unsafe impl ::windows_core::Interface for ID3D11LibraryReflection { - type Vtable = ID3D11LibraryReflection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11LibraryReflection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x54384f1b_5b3e_4bb7_ae01_60ba3097cbb6); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11LibraryReflection_Vtbl { @@ -6574,9 +6292,8 @@ pub struct ID3D11LibraryReflection_Vtbl { pub GetDesc: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdesc: *mut D3D11_LIBRARY_DESC) -> ::windows_core::HRESULT, pub GetFunctionByIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, functionindex: i32) -> ::core::option::Option, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11Linker(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11Linker, ID3D11Linker_Vtbl, 0x59a6cd0e_e10d_4c1f_88c0_63aba1daf30e); +::windows_core::imp::interface_hierarchy!(ID3D11Linker, ::windows_core::IUnknown); impl ID3D11Linker { #[doc = "Required features: `\"Win32_Graphics_Direct3D\"`"] #[cfg(feature = "Win32_Graphics_Direct3D")] @@ -6598,15 +6315,8 @@ impl ID3D11Linker { (::windows_core::Interface::vtable(self).AddClipPlaneFromCBuffer)(::windows_core::Interface::as_raw(self), ucbufferslot, ucbufferentry).ok() } } -::windows_core::imp::interface_hierarchy!(ID3D11Linker, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID3D11Linker {} unsafe impl ::core::marker::Sync for ID3D11Linker {} -unsafe impl ::windows_core::Interface for ID3D11Linker { - type Vtable = ID3D11Linker_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11Linker { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x59a6cd0e_e10d_4c1f_88c0_63aba1daf30e); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11Linker_Vtbl { @@ -6618,27 +6328,18 @@ pub struct ID3D11Linker_Vtbl { pub UseLibrary: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plibrarymi: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub AddClipPlaneFromCBuffer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ucbufferslot: u32, ucbufferentry: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11LinkingNode(::windows_core::IUnknown); -impl ID3D11LinkingNode {} +::windows_core::imp::com_interface!(ID3D11LinkingNode, ID3D11LinkingNode_Vtbl, 0xd80dd70c_8d2f_4751_94a1_03c79b3556db); ::windows_core::imp::interface_hierarchy!(ID3D11LinkingNode, ::windows_core::IUnknown); +impl ID3D11LinkingNode {} unsafe impl ::core::marker::Send for ID3D11LinkingNode {} unsafe impl ::core::marker::Sync for ID3D11LinkingNode {} -unsafe impl ::windows_core::Interface for ID3D11LinkingNode { - type Vtable = ID3D11LinkingNode_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11LinkingNode { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd80dd70c_8d2f_4751_94a1_03c79b3556db); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11LinkingNode_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11Module(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11Module, ID3D11Module_Vtbl, 0xcac701ee_80fc_4122_8242_10b39c8cec34); +::windows_core::imp::interface_hierarchy!(ID3D11Module, ::windows_core::IUnknown); impl ID3D11Module { pub unsafe fn CreateInstance(&self, pnamespace: P0) -> ::windows_core::Result where @@ -6648,24 +6349,16 @@ impl ID3D11Module { (::windows_core::Interface::vtable(self).CreateInstance)(::windows_core::Interface::as_raw(self), pnamespace.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ID3D11Module, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID3D11Module {} unsafe impl ::core::marker::Sync for ID3D11Module {} -unsafe impl ::windows_core::Interface for ID3D11Module { - type Vtable = ID3D11Module_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11Module { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcac701ee_80fc_4122_8242_10b39c8cec34); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11Module_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pnamespace: ::windows_core::PCSTR, ppmoduleinstance: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11ModuleInstance(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11ModuleInstance, ID3D11ModuleInstance_Vtbl, 0x469e07f7_045a_48d5_aa12_68a478cdf75d); +::windows_core::imp::interface_hierarchy!(ID3D11ModuleInstance, ::windows_core::IUnknown); impl ID3D11ModuleInstance { pub unsafe fn BindConstantBuffer(&self, usrcslot: u32, udstslot: u32, cbdstoffset: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).BindConstantBuffer)(::windows_core::Interface::as_raw(self), usrcslot, udstslot, cbdstoffset).ok() @@ -6713,15 +6406,8 @@ impl ID3D11ModuleInstance { (::windows_core::Interface::vtable(self).BindResourceAsUnorderedAccessViewByName)(::windows_core::Interface::as_raw(self), psrvname.into_param().abi(), udstuavslot, ucount).ok() } } -::windows_core::imp::interface_hierarchy!(ID3D11ModuleInstance, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID3D11ModuleInstance {} unsafe impl ::core::marker::Sync for ID3D11ModuleInstance {} -unsafe impl ::windows_core::Interface for ID3D11ModuleInstance { - type Vtable = ID3D11ModuleInstance_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11ModuleInstance { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x469e07f7_045a_48d5_aa12_68a478cdf75d); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11ModuleInstance_Vtbl { @@ -6737,9 +6423,8 @@ pub struct ID3D11ModuleInstance_Vtbl { pub BindResourceAsUnorderedAccessView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, usrcsrvslot: u32, udstuavslot: u32, ucount: u32) -> ::windows_core::HRESULT, pub BindResourceAsUnorderedAccessViewByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psrvname: ::windows_core::PCSTR, udstuavslot: u32, ucount: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11Multithread(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11Multithread, ID3D11Multithread_Vtbl, 0x9b7e4e00_342c_4106_a19f_4f2704f689f0); +::windows_core::imp::interface_hierarchy!(ID3D11Multithread, ::windows_core::IUnknown); impl ID3D11Multithread { pub unsafe fn Enter(&self) { (::windows_core::Interface::vtable(self).Enter)(::windows_core::Interface::as_raw(self)) @@ -6757,15 +6442,8 @@ impl ID3D11Multithread { (::windows_core::Interface::vtable(self).GetMultithreadProtected)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(ID3D11Multithread, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID3D11Multithread {} unsafe impl ::core::marker::Sync for ID3D11Multithread {} -unsafe impl ::windows_core::Interface for ID3D11Multithread { - type Vtable = ID3D11Multithread_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11Multithread { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9b7e4e00_342c_4106_a19f_4f2704f689f0); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11Multithread_Vtbl { @@ -6775,9 +6453,8 @@ pub struct ID3D11Multithread_Vtbl { pub SetMultithreadProtected: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bmtprotect: super::super::Foundation::BOOL) -> super::super::Foundation::BOOL, pub GetMultithreadProtected: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11PixelShader(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11PixelShader, ID3D11PixelShader_Vtbl, 0xea82e40d_51dc_4f33_93d4_db7c9125ae8c); +::windows_core::imp::interface_hierarchy!(ID3D11PixelShader, ::windows_core::IUnknown, ID3D11DeviceChild); impl ID3D11PixelShader { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -6797,23 +6474,15 @@ impl ID3D11PixelShader { (::windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(::windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ID3D11PixelShader, ::windows_core::IUnknown, ID3D11DeviceChild); unsafe impl ::core::marker::Send for ID3D11PixelShader {} unsafe impl ::core::marker::Sync for ID3D11PixelShader {} -unsafe impl ::windows_core::Interface for ID3D11PixelShader { - type Vtable = ID3D11PixelShader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11PixelShader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xea82e40d_51dc_4f33_93d4_db7c9125ae8c); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11PixelShader_Vtbl { pub base__: ID3D11DeviceChild_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11Predicate(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11Predicate, ID3D11Predicate_Vtbl, 0x9eb576dd_9f77_4d86_81aa_8bab5fe490e2); +::windows_core::imp::interface_hierarchy!(ID3D11Predicate, ::windows_core::IUnknown, ID3D11DeviceChild, ID3D11Asynchronous, ID3D11Query); impl ID3D11Predicate { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -6841,23 +6510,15 @@ impl ID3D11Predicate { ::std::mem::transmute(result__) } } -::windows_core::imp::interface_hierarchy!(ID3D11Predicate, ::windows_core::IUnknown, ID3D11DeviceChild, ID3D11Asynchronous, ID3D11Query); unsafe impl ::core::marker::Send for ID3D11Predicate {} unsafe impl ::core::marker::Sync for ID3D11Predicate {} -unsafe impl ::windows_core::Interface for ID3D11Predicate { - type Vtable = ID3D11Predicate_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11Predicate { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9eb576dd_9f77_4d86_81aa_8bab5fe490e2); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11Predicate_Vtbl { pub base__: ID3D11Query_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11Query(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11Query, ID3D11Query_Vtbl, 0xd6c00747_87b7_425e_b84d_44d108560afd); +::windows_core::imp::interface_hierarchy!(ID3D11Query, ::windows_core::IUnknown, ID3D11DeviceChild, ID3D11Asynchronous); impl ID3D11Query { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -6885,24 +6546,16 @@ impl ID3D11Query { ::std::mem::transmute(result__) } } -::windows_core::imp::interface_hierarchy!(ID3D11Query, ::windows_core::IUnknown, ID3D11DeviceChild, ID3D11Asynchronous); unsafe impl ::core::marker::Send for ID3D11Query {} unsafe impl ::core::marker::Sync for ID3D11Query {} -unsafe impl ::windows_core::Interface for ID3D11Query { - type Vtable = ID3D11Query_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11Query { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd6c00747_87b7_425e_b84d_44d108560afd); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11Query_Vtbl { pub base__: ID3D11Asynchronous_Vtbl, pub GetDesc: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdesc: *mut D3D11_QUERY_DESC), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11Query1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11Query1, ID3D11Query1_Vtbl, 0x631b4766_36dc_461d_8db6_c47e13e60916); +::windows_core::imp::interface_hierarchy!(ID3D11Query1, ::windows_core::IUnknown, ID3D11DeviceChild, ID3D11Asynchronous, ID3D11Query); impl ID3D11Query1 { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -6935,24 +6588,16 @@ impl ID3D11Query1 { ::std::mem::transmute(result__) } } -::windows_core::imp::interface_hierarchy!(ID3D11Query1, ::windows_core::IUnknown, ID3D11DeviceChild, ID3D11Asynchronous, ID3D11Query); unsafe impl ::core::marker::Send for ID3D11Query1 {} unsafe impl ::core::marker::Sync for ID3D11Query1 {} -unsafe impl ::windows_core::Interface for ID3D11Query1 { - type Vtable = ID3D11Query1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11Query1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x631b4766_36dc_461d_8db6_c47e13e60916); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11Query1_Vtbl { pub base__: ID3D11Query_Vtbl, pub GetDesc1: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdesc1: *mut D3D11_QUERY_DESC1), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11RasterizerState(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11RasterizerState, ID3D11RasterizerState_Vtbl, 0x9bb4ab81_ab1a_4d8f_b506_fc04200b6ee7); +::windows_core::imp::interface_hierarchy!(ID3D11RasterizerState, ::windows_core::IUnknown, ID3D11DeviceChild); impl ID3D11RasterizerState { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -6975,24 +6620,16 @@ impl ID3D11RasterizerState { (::windows_core::Interface::vtable(self).GetDesc)(::windows_core::Interface::as_raw(self), pdesc) } } -::windows_core::imp::interface_hierarchy!(ID3D11RasterizerState, ::windows_core::IUnknown, ID3D11DeviceChild); unsafe impl ::core::marker::Send for ID3D11RasterizerState {} unsafe impl ::core::marker::Sync for ID3D11RasterizerState {} -unsafe impl ::windows_core::Interface for ID3D11RasterizerState { - type Vtable = ID3D11RasterizerState_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11RasterizerState { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9bb4ab81_ab1a_4d8f_b506_fc04200b6ee7); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11RasterizerState_Vtbl { pub base__: ID3D11DeviceChild_Vtbl, pub GetDesc: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdesc: *mut D3D11_RASTERIZER_DESC), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11RasterizerState1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11RasterizerState1, ID3D11RasterizerState1_Vtbl, 0x1217d7a6_5039_418c_b042_9cbe256afd6e); +::windows_core::imp::interface_hierarchy!(ID3D11RasterizerState1, ::windows_core::IUnknown, ID3D11DeviceChild, ID3D11RasterizerState); impl ID3D11RasterizerState1 { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -7018,24 +6655,16 @@ impl ID3D11RasterizerState1 { (::windows_core::Interface::vtable(self).GetDesc1)(::windows_core::Interface::as_raw(self), pdesc) } } -::windows_core::imp::interface_hierarchy!(ID3D11RasterizerState1, ::windows_core::IUnknown, ID3D11DeviceChild, ID3D11RasterizerState); unsafe impl ::core::marker::Send for ID3D11RasterizerState1 {} unsafe impl ::core::marker::Sync for ID3D11RasterizerState1 {} -unsafe impl ::windows_core::Interface for ID3D11RasterizerState1 { - type Vtable = ID3D11RasterizerState1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11RasterizerState1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1217d7a6_5039_418c_b042_9cbe256afd6e); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11RasterizerState1_Vtbl { pub base__: ID3D11RasterizerState_Vtbl, pub GetDesc1: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdesc: *mut D3D11_RASTERIZER_DESC1), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11RasterizerState2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11RasterizerState2, ID3D11RasterizerState2_Vtbl, 0x6fbd02fb_209f_46c4_b059_2ed15586a6ac); +::windows_core::imp::interface_hierarchy!(ID3D11RasterizerState2, ::windows_core::IUnknown, ID3D11DeviceChild, ID3D11RasterizerState, ID3D11RasterizerState1); impl ID3D11RasterizerState2 { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -7064,70 +6693,46 @@ impl ID3D11RasterizerState2 { (::windows_core::Interface::vtable(self).GetDesc2)(::windows_core::Interface::as_raw(self), pdesc) } } -::windows_core::imp::interface_hierarchy!(ID3D11RasterizerState2, ::windows_core::IUnknown, ID3D11DeviceChild, ID3D11RasterizerState, ID3D11RasterizerState1); unsafe impl ::core::marker::Send for ID3D11RasterizerState2 {} unsafe impl ::core::marker::Sync for ID3D11RasterizerState2 {} -unsafe impl ::windows_core::Interface for ID3D11RasterizerState2 { - type Vtable = ID3D11RasterizerState2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11RasterizerState2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6fbd02fb_209f_46c4_b059_2ed15586a6ac); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11RasterizerState2_Vtbl { pub base__: ID3D11RasterizerState1_Vtbl, pub GetDesc2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdesc: *mut D3D11_RASTERIZER_DESC2), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11RefDefaultTrackingOptions(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11RefDefaultTrackingOptions, ID3D11RefDefaultTrackingOptions_Vtbl, 0x03916615_c644_418c_9bf4_75db5be63ca0); +::windows_core::imp::interface_hierarchy!(ID3D11RefDefaultTrackingOptions, ::windows_core::IUnknown); impl ID3D11RefDefaultTrackingOptions { pub unsafe fn SetTrackingOptions(&self, resourcetypeflags: u32, options: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetTrackingOptions)(::windows_core::Interface::as_raw(self), resourcetypeflags, options).ok() } } -::windows_core::imp::interface_hierarchy!(ID3D11RefDefaultTrackingOptions, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID3D11RefDefaultTrackingOptions {} unsafe impl ::core::marker::Sync for ID3D11RefDefaultTrackingOptions {} -unsafe impl ::windows_core::Interface for ID3D11RefDefaultTrackingOptions { - type Vtable = ID3D11RefDefaultTrackingOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11RefDefaultTrackingOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x03916615_c644_418c_9bf4_75db5be63ca0); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11RefDefaultTrackingOptions_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub SetTrackingOptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, resourcetypeflags: u32, options: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11RefTrackingOptions(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11RefTrackingOptions, ID3D11RefTrackingOptions_Vtbl, 0x193dacdf_0db2_4c05_a55c_ef06cac56fd9); +::windows_core::imp::interface_hierarchy!(ID3D11RefTrackingOptions, ::windows_core::IUnknown); impl ID3D11RefTrackingOptions { pub unsafe fn SetTrackingOptions(&self, uoptions: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetTrackingOptions)(::windows_core::Interface::as_raw(self), uoptions).ok() } } -::windows_core::imp::interface_hierarchy!(ID3D11RefTrackingOptions, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID3D11RefTrackingOptions {} unsafe impl ::core::marker::Sync for ID3D11RefTrackingOptions {} -unsafe impl ::windows_core::Interface for ID3D11RefTrackingOptions { - type Vtable = ID3D11RefTrackingOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11RefTrackingOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x193dacdf_0db2_4c05_a55c_ef06cac56fd9); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11RefTrackingOptions_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub SetTrackingOptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uoptions: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11RenderTargetView(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11RenderTargetView, ID3D11RenderTargetView_Vtbl, 0xdfdba067_0b8d_4865_875b_d7b4516cc164); +::windows_core::imp::interface_hierarchy!(ID3D11RenderTargetView, ::windows_core::IUnknown, ID3D11DeviceChild, ID3D11View); impl ID3D11RenderTargetView { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -7157,15 +6762,8 @@ impl ID3D11RenderTargetView { (::windows_core::Interface::vtable(self).GetDesc)(::windows_core::Interface::as_raw(self), pdesc) } } -::windows_core::imp::interface_hierarchy!(ID3D11RenderTargetView, ::windows_core::IUnknown, ID3D11DeviceChild, ID3D11View); unsafe impl ::core::marker::Send for ID3D11RenderTargetView {} unsafe impl ::core::marker::Sync for ID3D11RenderTargetView {} -unsafe impl ::windows_core::Interface for ID3D11RenderTargetView { - type Vtable = ID3D11RenderTargetView_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11RenderTargetView { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdfdba067_0b8d_4865_875b_d7b4516cc164); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11RenderTargetView_Vtbl { @@ -7175,9 +6773,8 @@ pub struct ID3D11RenderTargetView_Vtbl { #[cfg(not(feature = "Win32_Graphics_Dxgi_Common"))] GetDesc: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11RenderTargetView1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11RenderTargetView1, ID3D11RenderTargetView1_Vtbl, 0xffbe2e23_f011_418a_ac56_5ceed7c5b94b); +::windows_core::imp::interface_hierarchy!(ID3D11RenderTargetView1, ::windows_core::IUnknown, ID3D11DeviceChild, ID3D11View, ID3D11RenderTargetView); impl ID3D11RenderTargetView1 { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -7212,15 +6809,8 @@ impl ID3D11RenderTargetView1 { (::windows_core::Interface::vtable(self).GetDesc1)(::windows_core::Interface::as_raw(self), pdesc1) } } -::windows_core::imp::interface_hierarchy!(ID3D11RenderTargetView1, ::windows_core::IUnknown, ID3D11DeviceChild, ID3D11View, ID3D11RenderTargetView); unsafe impl ::core::marker::Send for ID3D11RenderTargetView1 {} unsafe impl ::core::marker::Sync for ID3D11RenderTargetView1 {} -unsafe impl ::windows_core::Interface for ID3D11RenderTargetView1 { - type Vtable = ID3D11RenderTargetView1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11RenderTargetView1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xffbe2e23_f011_418a_ac56_5ceed7c5b94b); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11RenderTargetView1_Vtbl { @@ -7230,9 +6820,8 @@ pub struct ID3D11RenderTargetView1_Vtbl { #[cfg(not(feature = "Win32_Graphics_Dxgi_Common"))] GetDesc1: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11Resource(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11Resource, ID3D11Resource_Vtbl, 0xdc8e63f3_d12b_4952_b47b_5e45026a862d); +::windows_core::imp::interface_hierarchy!(ID3D11Resource, ::windows_core::IUnknown, ID3D11DeviceChild); impl ID3D11Resource { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -7263,15 +6852,8 @@ impl ID3D11Resource { (::windows_core::Interface::vtable(self).GetEvictionPriority)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(ID3D11Resource, ::windows_core::IUnknown, ID3D11DeviceChild); unsafe impl ::core::marker::Send for ID3D11Resource {} unsafe impl ::core::marker::Sync for ID3D11Resource {} -unsafe impl ::windows_core::Interface for ID3D11Resource { - type Vtable = ID3D11Resource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11Resource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdc8e63f3_d12b_4952_b47b_5e45026a862d); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11Resource_Vtbl { @@ -7280,9 +6862,8 @@ pub struct ID3D11Resource_Vtbl { pub SetEvictionPriority: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, evictionpriority: u32), pub GetEvictionPriority: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> u32, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11SamplerState(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11SamplerState, ID3D11SamplerState_Vtbl, 0xda6fea51_564c_4487_9810_f0d0f9b4e3a5); +::windows_core::imp::interface_hierarchy!(ID3D11SamplerState, ::windows_core::IUnknown, ID3D11DeviceChild); impl ID3D11SamplerState { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -7305,24 +6886,16 @@ impl ID3D11SamplerState { (::windows_core::Interface::vtable(self).GetDesc)(::windows_core::Interface::as_raw(self), pdesc) } } -::windows_core::imp::interface_hierarchy!(ID3D11SamplerState, ::windows_core::IUnknown, ID3D11DeviceChild); unsafe impl ::core::marker::Send for ID3D11SamplerState {} unsafe impl ::core::marker::Sync for ID3D11SamplerState {} -unsafe impl ::windows_core::Interface for ID3D11SamplerState { - type Vtable = ID3D11SamplerState_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11SamplerState { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xda6fea51_564c_4487_9810_f0d0f9b4e3a5); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11SamplerState_Vtbl { pub base__: ID3D11DeviceChild_Vtbl, pub GetDesc: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdesc: *mut D3D11_SAMPLER_DESC), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11ShaderReflection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11ShaderReflection, ID3D11ShaderReflection_Vtbl, 0x8d536ca1_0cca_4956_a837_786963755584); +::windows_core::imp::interface_hierarchy!(ID3D11ShaderReflection, ::windows_core::IUnknown); impl ID3D11ShaderReflection { #[doc = "Required features: `\"Win32_Graphics_Direct3D\"`"] #[cfg(feature = "Win32_Graphics_Direct3D")] @@ -7408,15 +6981,8 @@ impl ID3D11ShaderReflection { (::windows_core::Interface::vtable(self).GetRequiresFlags)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(ID3D11ShaderReflection, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID3D11ShaderReflection {} unsafe impl ::core::marker::Sync for ID3D11ShaderReflection {} -unsafe impl ::windows_core::Interface for ID3D11ShaderReflection { - type Vtable = ID3D11ShaderReflection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11ShaderReflection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8d536ca1_0cca_4956_a837_786963755584); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11ShaderReflection_Vtbl { @@ -7465,9 +7031,7 @@ pub struct ID3D11ShaderReflection_Vtbl { pub GetThreadGroupSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psizex: *mut u32, psizey: *mut u32, psizez: *mut u32) -> u32, pub GetRequiresFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> u64, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11ShaderReflectionConstantBuffer(::std::ptr::NonNull<::std::ffi::c_void>); +::windows_core::imp::interface!(ID3D11ShaderReflectionConstantBuffer, ID3D11ShaderReflectionConstantBuffer_Vtbl); impl ID3D11ShaderReflectionConstantBuffer { #[doc = "Required features: `\"Win32_Graphics_Direct3D\"`"] #[cfg(feature = "Win32_Graphics_Direct3D")] @@ -7486,9 +7050,6 @@ impl ID3D11ShaderReflectionConstantBuffer { } unsafe impl ::core::marker::Send for ID3D11ShaderReflectionConstantBuffer {} unsafe impl ::core::marker::Sync for ID3D11ShaderReflectionConstantBuffer {} -unsafe impl ::windows_core::Interface for ID3D11ShaderReflectionConstantBuffer { - type Vtable = ID3D11ShaderReflectionConstantBuffer_Vtbl; -} #[repr(C)] #[doc(hidden)] pub struct ID3D11ShaderReflectionConstantBuffer_Vtbl { @@ -7499,9 +7060,7 @@ pub struct ID3D11ShaderReflectionConstantBuffer_Vtbl { pub GetVariableByIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32) -> ::core::option::Option, pub GetVariableByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::windows_core::PCSTR) -> ::core::option::Option, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11ShaderReflectionType(::std::ptr::NonNull<::std::ffi::c_void>); +::windows_core::imp::interface!(ID3D11ShaderReflectionType, ID3D11ShaderReflectionType_Vtbl); impl ID3D11ShaderReflectionType { #[doc = "Required features: `\"Win32_Graphics_Direct3D\"`"] #[cfg(feature = "Win32_Graphics_Direct3D")] @@ -7553,9 +7112,6 @@ impl ID3D11ShaderReflectionType { } unsafe impl ::core::marker::Send for ID3D11ShaderReflectionType {} unsafe impl ::core::marker::Sync for ID3D11ShaderReflectionType {} -unsafe impl ::windows_core::Interface for ID3D11ShaderReflectionType { - type Vtable = ID3D11ShaderReflectionType_Vtbl; -} #[repr(C)] #[doc(hidden)] pub struct ID3D11ShaderReflectionType_Vtbl { @@ -7574,9 +7130,7 @@ pub struct ID3D11ShaderReflectionType_Vtbl { pub IsOfType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptype: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ImplementsInterface: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbase: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11ShaderReflectionVariable(::std::ptr::NonNull<::std::ffi::c_void>); +::windows_core::imp::interface!(ID3D11ShaderReflectionVariable, ID3D11ShaderReflectionVariable_Vtbl); impl ID3D11ShaderReflectionVariable { pub unsafe fn GetDesc(&self, pdesc: *mut D3D11_SHADER_VARIABLE_DESC) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetDesc)(::windows_core::Interface::as_raw(self), pdesc).ok() @@ -7593,9 +7147,6 @@ impl ID3D11ShaderReflectionVariable { } unsafe impl ::core::marker::Send for ID3D11ShaderReflectionVariable {} unsafe impl ::core::marker::Sync for ID3D11ShaderReflectionVariable {} -unsafe impl ::windows_core::Interface for ID3D11ShaderReflectionVariable { - type Vtable = ID3D11ShaderReflectionVariable_Vtbl; -} #[repr(C)] #[doc(hidden)] pub struct ID3D11ShaderReflectionVariable_Vtbl { @@ -7604,9 +7155,8 @@ pub struct ID3D11ShaderReflectionVariable_Vtbl { pub GetBuffer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::core::option::Option, pub GetInterfaceSlot: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uarrayindex: u32) -> u32, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11ShaderResourceView(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11ShaderResourceView, ID3D11ShaderResourceView_Vtbl, 0xb0e06fe0_8192_4e1a_b1ca_36d7414710b2); +::windows_core::imp::interface_hierarchy!(ID3D11ShaderResourceView, ::windows_core::IUnknown, ID3D11DeviceChild, ID3D11View); impl ID3D11ShaderResourceView { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -7636,15 +7186,8 @@ impl ID3D11ShaderResourceView { (::windows_core::Interface::vtable(self).GetDesc)(::windows_core::Interface::as_raw(self), pdesc) } } -::windows_core::imp::interface_hierarchy!(ID3D11ShaderResourceView, ::windows_core::IUnknown, ID3D11DeviceChild, ID3D11View); unsafe impl ::core::marker::Send for ID3D11ShaderResourceView {} unsafe impl ::core::marker::Sync for ID3D11ShaderResourceView {} -unsafe impl ::windows_core::Interface for ID3D11ShaderResourceView { - type Vtable = ID3D11ShaderResourceView_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11ShaderResourceView { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb0e06fe0_8192_4e1a_b1ca_36d7414710b2); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11ShaderResourceView_Vtbl { @@ -7654,9 +7197,8 @@ pub struct ID3D11ShaderResourceView_Vtbl { #[cfg(not(all(feature = "Win32_Graphics_Direct3D", feature = "Win32_Graphics_Dxgi_Common")))] GetDesc: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11ShaderResourceView1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11ShaderResourceView1, ID3D11ShaderResourceView1_Vtbl, 0x91308b87_9040_411d_8c67_c39253ce3802); +::windows_core::imp::interface_hierarchy!(ID3D11ShaderResourceView1, ::windows_core::IUnknown, ID3D11DeviceChild, ID3D11View, ID3D11ShaderResourceView); impl ID3D11ShaderResourceView1 { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -7691,15 +7233,8 @@ impl ID3D11ShaderResourceView1 { (::windows_core::Interface::vtable(self).GetDesc1)(::windows_core::Interface::as_raw(self), pdesc1) } } -::windows_core::imp::interface_hierarchy!(ID3D11ShaderResourceView1, ::windows_core::IUnknown, ID3D11DeviceChild, ID3D11View, ID3D11ShaderResourceView); unsafe impl ::core::marker::Send for ID3D11ShaderResourceView1 {} unsafe impl ::core::marker::Sync for ID3D11ShaderResourceView1 {} -unsafe impl ::windows_core::Interface for ID3D11ShaderResourceView1 { - type Vtable = ID3D11ShaderResourceView1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11ShaderResourceView1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x91308b87_9040_411d_8c67_c39253ce3802); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11ShaderResourceView1_Vtbl { @@ -7709,9 +7244,8 @@ pub struct ID3D11ShaderResourceView1_Vtbl { #[cfg(not(all(feature = "Win32_Graphics_Direct3D", feature = "Win32_Graphics_Dxgi_Common")))] GetDesc1: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11ShaderTrace(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11ShaderTrace, ID3D11ShaderTrace_Vtbl, 0x36b013e6_2811_4845_baa7_d623fe0df104); +::windows_core::imp::interface_hierarchy!(ID3D11ShaderTrace, ::windows_core::IUnknown); impl ID3D11ShaderTrace { pub unsafe fn TraceReady(&self, ptestcount: ::core::option::Option<*mut u64>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).TraceReady)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(ptestcount.unwrap_or(::std::ptr::null_mut()))).ok() @@ -7738,15 +7272,8 @@ impl ID3D11ShaderTrace { (::windows_core::Interface::vtable(self).GetReadRegister)(::windows_core::Interface::as_raw(self), stepindex, readregisterindex, pregister, pvalue).ok() } } -::windows_core::imp::interface_hierarchy!(ID3D11ShaderTrace, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID3D11ShaderTrace {} unsafe impl ::core::marker::Sync for ID3D11ShaderTrace {} -unsafe impl ::windows_core::Interface for ID3D11ShaderTrace { - type Vtable = ID3D11ShaderTrace_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11ShaderTrace { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x36b013e6_2811_4845_baa7_d623fe0df104); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11ShaderTrace_Vtbl { @@ -7760,9 +7287,8 @@ pub struct ID3D11ShaderTrace_Vtbl { pub GetWrittenRegister: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, stepindex: u32, writtenregisterindex: u32, pregister: *mut D3D11_TRACE_REGISTER, pvalue: *mut D3D11_TRACE_VALUE) -> ::windows_core::HRESULT, pub GetReadRegister: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, stepindex: u32, readregisterindex: u32, pregister: *mut D3D11_TRACE_REGISTER, pvalue: *mut D3D11_TRACE_VALUE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11ShaderTraceFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11ShaderTraceFactory, ID3D11ShaderTraceFactory_Vtbl, 0x1fbad429_66ab_41cc_9617_667ac10e4459); +::windows_core::imp::interface_hierarchy!(ID3D11ShaderTraceFactory, ::windows_core::IUnknown); impl ID3D11ShaderTraceFactory { pub unsafe fn CreateShaderTrace(&self, pshader: P0, ptracedesc: *const D3D11_SHADER_TRACE_DESC) -> ::windows_core::Result where @@ -7772,24 +7298,16 @@ impl ID3D11ShaderTraceFactory { (::windows_core::Interface::vtable(self).CreateShaderTrace)(::windows_core::Interface::as_raw(self), pshader.into_param().abi(), ptracedesc, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ID3D11ShaderTraceFactory, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID3D11ShaderTraceFactory {} unsafe impl ::core::marker::Sync for ID3D11ShaderTraceFactory {} -unsafe impl ::windows_core::Interface for ID3D11ShaderTraceFactory { - type Vtable = ID3D11ShaderTraceFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11ShaderTraceFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1fbad429_66ab_41cc_9617_667ac10e4459); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11ShaderTraceFactory_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub CreateShaderTrace: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pshader: *mut ::core::ffi::c_void, ptracedesc: *const D3D11_SHADER_TRACE_DESC, ppshadertrace: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11SwitchToRef(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11SwitchToRef, ID3D11SwitchToRef_Vtbl, 0x1ef337e3_58e7_4f83_a692_db221f5ed47e); +::windows_core::imp::interface_hierarchy!(ID3D11SwitchToRef, ::windows_core::IUnknown); impl ID3D11SwitchToRef { pub unsafe fn SetUseRef(&self, useref: P0) -> super::super::Foundation::BOOL where @@ -7801,15 +7319,8 @@ impl ID3D11SwitchToRef { (::windows_core::Interface::vtable(self).GetUseRef)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(ID3D11SwitchToRef, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID3D11SwitchToRef {} unsafe impl ::core::marker::Sync for ID3D11SwitchToRef {} -unsafe impl ::windows_core::Interface for ID3D11SwitchToRef { - type Vtable = ID3D11SwitchToRef_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11SwitchToRef { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1ef337e3_58e7_4f83_a692_db221f5ed47e); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11SwitchToRef_Vtbl { @@ -7817,9 +7328,8 @@ pub struct ID3D11SwitchToRef_Vtbl { pub SetUseRef: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, useref: super::super::Foundation::BOOL) -> super::super::Foundation::BOOL, pub GetUseRef: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11Texture1D(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11Texture1D, ID3D11Texture1D_Vtbl, 0xf8fb5c27_c6b3_4f75_a4c8_439af2ef564c); +::windows_core::imp::interface_hierarchy!(ID3D11Texture1D, ::windows_core::IUnknown, ID3D11DeviceChild, ID3D11Resource); impl ID3D11Texture1D { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -7855,15 +7365,8 @@ impl ID3D11Texture1D { (::windows_core::Interface::vtable(self).GetDesc)(::windows_core::Interface::as_raw(self), pdesc) } } -::windows_core::imp::interface_hierarchy!(ID3D11Texture1D, ::windows_core::IUnknown, ID3D11DeviceChild, ID3D11Resource); unsafe impl ::core::marker::Send for ID3D11Texture1D {} unsafe impl ::core::marker::Sync for ID3D11Texture1D {} -unsafe impl ::windows_core::Interface for ID3D11Texture1D { - type Vtable = ID3D11Texture1D_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11Texture1D { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf8fb5c27_c6b3_4f75_a4c8_439af2ef564c); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11Texture1D_Vtbl { @@ -7873,9 +7376,8 @@ pub struct ID3D11Texture1D_Vtbl { #[cfg(not(feature = "Win32_Graphics_Dxgi_Common"))] GetDesc: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11Texture2D(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11Texture2D, ID3D11Texture2D_Vtbl, 0x6f15aaf2_d208_4e89_9ab4_489535d34f9c); +::windows_core::imp::interface_hierarchy!(ID3D11Texture2D, ::windows_core::IUnknown, ID3D11DeviceChild, ID3D11Resource); impl ID3D11Texture2D { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -7911,15 +7413,8 @@ impl ID3D11Texture2D { (::windows_core::Interface::vtable(self).GetDesc)(::windows_core::Interface::as_raw(self), pdesc) } } -::windows_core::imp::interface_hierarchy!(ID3D11Texture2D, ::windows_core::IUnknown, ID3D11DeviceChild, ID3D11Resource); unsafe impl ::core::marker::Send for ID3D11Texture2D {} unsafe impl ::core::marker::Sync for ID3D11Texture2D {} -unsafe impl ::windows_core::Interface for ID3D11Texture2D { - type Vtable = ID3D11Texture2D_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11Texture2D { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6f15aaf2_d208_4e89_9ab4_489535d34f9c); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11Texture2D_Vtbl { @@ -7929,9 +7424,8 @@ pub struct ID3D11Texture2D_Vtbl { #[cfg(not(feature = "Win32_Graphics_Dxgi_Common"))] GetDesc: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11Texture2D1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11Texture2D1, ID3D11Texture2D1_Vtbl, 0x51218251_1e33_4617_9ccb_4d3a4367e7bb); +::windows_core::imp::interface_hierarchy!(ID3D11Texture2D1, ::windows_core::IUnknown, ID3D11DeviceChild, ID3D11Resource, ID3D11Texture2D); impl ID3D11Texture2D1 { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -7972,15 +7466,8 @@ impl ID3D11Texture2D1 { (::windows_core::Interface::vtable(self).GetDesc1)(::windows_core::Interface::as_raw(self), pdesc) } } -::windows_core::imp::interface_hierarchy!(ID3D11Texture2D1, ::windows_core::IUnknown, ID3D11DeviceChild, ID3D11Resource, ID3D11Texture2D); unsafe impl ::core::marker::Send for ID3D11Texture2D1 {} unsafe impl ::core::marker::Sync for ID3D11Texture2D1 {} -unsafe impl ::windows_core::Interface for ID3D11Texture2D1 { - type Vtable = ID3D11Texture2D1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11Texture2D1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51218251_1e33_4617_9ccb_4d3a4367e7bb); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11Texture2D1_Vtbl { @@ -7990,9 +7477,8 @@ pub struct ID3D11Texture2D1_Vtbl { #[cfg(not(feature = "Win32_Graphics_Dxgi_Common"))] GetDesc1: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11Texture3D(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11Texture3D, ID3D11Texture3D_Vtbl, 0x037e866e_f56d_4357_a8af_9dabbe6e250e); +::windows_core::imp::interface_hierarchy!(ID3D11Texture3D, ::windows_core::IUnknown, ID3D11DeviceChild, ID3D11Resource); impl ID3D11Texture3D { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -8028,15 +7514,8 @@ impl ID3D11Texture3D { (::windows_core::Interface::vtable(self).GetDesc)(::windows_core::Interface::as_raw(self), pdesc) } } -::windows_core::imp::interface_hierarchy!(ID3D11Texture3D, ::windows_core::IUnknown, ID3D11DeviceChild, ID3D11Resource); unsafe impl ::core::marker::Send for ID3D11Texture3D {} unsafe impl ::core::marker::Sync for ID3D11Texture3D {} -unsafe impl ::windows_core::Interface for ID3D11Texture3D { - type Vtable = ID3D11Texture3D_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11Texture3D { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x037e866e_f56d_4357_a8af_9dabbe6e250e); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11Texture3D_Vtbl { @@ -8046,9 +7525,8 @@ pub struct ID3D11Texture3D_Vtbl { #[cfg(not(feature = "Win32_Graphics_Dxgi_Common"))] GetDesc: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11Texture3D1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11Texture3D1, ID3D11Texture3D1_Vtbl, 0x0c711683_2853_4846_9bb0_f3e60639e46a); +::windows_core::imp::interface_hierarchy!(ID3D11Texture3D1, ::windows_core::IUnknown, ID3D11DeviceChild, ID3D11Resource, ID3D11Texture3D); impl ID3D11Texture3D1 { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -8089,15 +7567,8 @@ impl ID3D11Texture3D1 { (::windows_core::Interface::vtable(self).GetDesc1)(::windows_core::Interface::as_raw(self), pdesc) } } -::windows_core::imp::interface_hierarchy!(ID3D11Texture3D1, ::windows_core::IUnknown, ID3D11DeviceChild, ID3D11Resource, ID3D11Texture3D); unsafe impl ::core::marker::Send for ID3D11Texture3D1 {} unsafe impl ::core::marker::Sync for ID3D11Texture3D1 {} -unsafe impl ::windows_core::Interface for ID3D11Texture3D1 { - type Vtable = ID3D11Texture3D1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11Texture3D1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c711683_2853_4846_9bb0_f3e60639e46a); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11Texture3D1_Vtbl { @@ -8107,9 +7578,8 @@ pub struct ID3D11Texture3D1_Vtbl { #[cfg(not(feature = "Win32_Graphics_Dxgi_Common"))] GetDesc1: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11TracingDevice(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11TracingDevice, ID3D11TracingDevice_Vtbl, 0x1911c771_1587_413e_a7e0_fb26c3de0268); +::windows_core::imp::interface_hierarchy!(ID3D11TracingDevice, ::windows_core::IUnknown); impl ID3D11TracingDevice { pub unsafe fn SetShaderTrackingOptionsByType(&self, resourcetypeflags: u32, options: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetShaderTrackingOptionsByType)(::windows_core::Interface::as_raw(self), resourcetypeflags, options).ok() @@ -8121,15 +7591,8 @@ impl ID3D11TracingDevice { (::windows_core::Interface::vtable(self).SetShaderTrackingOptions)(::windows_core::Interface::as_raw(self), pshader.into_param().abi(), options).ok() } } -::windows_core::imp::interface_hierarchy!(ID3D11TracingDevice, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID3D11TracingDevice {} unsafe impl ::core::marker::Sync for ID3D11TracingDevice {} -unsafe impl ::windows_core::Interface for ID3D11TracingDevice { - type Vtable = ID3D11TracingDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11TracingDevice { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1911c771_1587_413e_a7e0_fb26c3de0268); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11TracingDevice_Vtbl { @@ -8137,9 +7600,8 @@ pub struct ID3D11TracingDevice_Vtbl { pub SetShaderTrackingOptionsByType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, resourcetypeflags: u32, options: u32) -> ::windows_core::HRESULT, pub SetShaderTrackingOptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pshader: *mut ::core::ffi::c_void, options: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11UnorderedAccessView(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11UnorderedAccessView, ID3D11UnorderedAccessView_Vtbl, 0x28acf509_7f5c_48f6_8611_f316010a6380); +::windows_core::imp::interface_hierarchy!(ID3D11UnorderedAccessView, ::windows_core::IUnknown, ID3D11DeviceChild, ID3D11View); impl ID3D11UnorderedAccessView { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -8169,15 +7631,8 @@ impl ID3D11UnorderedAccessView { (::windows_core::Interface::vtable(self).GetDesc)(::windows_core::Interface::as_raw(self), pdesc) } } -::windows_core::imp::interface_hierarchy!(ID3D11UnorderedAccessView, ::windows_core::IUnknown, ID3D11DeviceChild, ID3D11View); unsafe impl ::core::marker::Send for ID3D11UnorderedAccessView {} unsafe impl ::core::marker::Sync for ID3D11UnorderedAccessView {} -unsafe impl ::windows_core::Interface for ID3D11UnorderedAccessView { - type Vtable = ID3D11UnorderedAccessView_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11UnorderedAccessView { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x28acf509_7f5c_48f6_8611_f316010a6380); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11UnorderedAccessView_Vtbl { @@ -8187,9 +7642,8 @@ pub struct ID3D11UnorderedAccessView_Vtbl { #[cfg(not(feature = "Win32_Graphics_Dxgi_Common"))] GetDesc: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11UnorderedAccessView1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11UnorderedAccessView1, ID3D11UnorderedAccessView1_Vtbl, 0x7b3b6153_a886_4544_ab37_6537c8500403); +::windows_core::imp::interface_hierarchy!(ID3D11UnorderedAccessView1, ::windows_core::IUnknown, ID3D11DeviceChild, ID3D11View, ID3D11UnorderedAccessView); impl ID3D11UnorderedAccessView1 { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -8224,15 +7678,8 @@ impl ID3D11UnorderedAccessView1 { (::windows_core::Interface::vtable(self).GetDesc1)(::windows_core::Interface::as_raw(self), pdesc1) } } -::windows_core::imp::interface_hierarchy!(ID3D11UnorderedAccessView1, ::windows_core::IUnknown, ID3D11DeviceChild, ID3D11View, ID3D11UnorderedAccessView); unsafe impl ::core::marker::Send for ID3D11UnorderedAccessView1 {} unsafe impl ::core::marker::Sync for ID3D11UnorderedAccessView1 {} -unsafe impl ::windows_core::Interface for ID3D11UnorderedAccessView1 { - type Vtable = ID3D11UnorderedAccessView1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11UnorderedAccessView1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7b3b6153_a886_4544_ab37_6537c8500403); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11UnorderedAccessView1_Vtbl { @@ -8242,9 +7689,8 @@ pub struct ID3D11UnorderedAccessView1_Vtbl { #[cfg(not(feature = "Win32_Graphics_Dxgi_Common"))] GetDesc1: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11VertexShader(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11VertexShader, ID3D11VertexShader_Vtbl, 0x3b301d64_d678_4289_8897_22f8928b72f3); +::windows_core::imp::interface_hierarchy!(ID3D11VertexShader, ::windows_core::IUnknown, ID3D11DeviceChild); impl ID3D11VertexShader { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -8264,23 +7710,15 @@ impl ID3D11VertexShader { (::windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(::windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ID3D11VertexShader, ::windows_core::IUnknown, ID3D11DeviceChild); unsafe impl ::core::marker::Send for ID3D11VertexShader {} unsafe impl ::core::marker::Sync for ID3D11VertexShader {} -unsafe impl ::windows_core::Interface for ID3D11VertexShader { - type Vtable = ID3D11VertexShader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11VertexShader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3b301d64_d678_4289_8897_22f8928b72f3); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11VertexShader_Vtbl { pub base__: ID3D11DeviceChild_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11VideoContext(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11VideoContext, ID3D11VideoContext_Vtbl, 0x61f21c45_3c0e_4a74_9cea_67100d9ad5e4); +::windows_core::imp::interface_hierarchy!(ID3D11VideoContext, ::windows_core::IUnknown, ID3D11DeviceChild); impl ID3D11VideoContext { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -8688,15 +8126,8 @@ impl ID3D11VideoContext { (::windows_core::Interface::vtable(self).VideoProcessorGetStreamRotation)(::windows_core::Interface::as_raw(self), pvideoprocessor.into_param().abi(), streamindex, penable, protation) } } -::windows_core::imp::interface_hierarchy!(ID3D11VideoContext, ::windows_core::IUnknown, ID3D11DeviceChild); unsafe impl ::core::marker::Send for ID3D11VideoContext {} unsafe impl ::core::marker::Sync for ID3D11VideoContext {} -unsafe impl ::windows_core::Interface for ID3D11VideoContext { - type Vtable = ID3D11VideoContext_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11VideoContext { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x61f21c45_3c0e_4a74_9cea_67100d9ad5e4); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11VideoContext_Vtbl { @@ -8772,9 +8203,8 @@ pub struct ID3D11VideoContext_Vtbl { pub VideoProcessorSetStreamRotation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvideoprocessor: *mut ::core::ffi::c_void, streamindex: u32, enable: super::super::Foundation::BOOL, rotation: D3D11_VIDEO_PROCESSOR_ROTATION), pub VideoProcessorGetStreamRotation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvideoprocessor: *mut ::core::ffi::c_void, streamindex: u32, penable: *mut super::super::Foundation::BOOL, protation: *mut D3D11_VIDEO_PROCESSOR_ROTATION), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11VideoContext1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11VideoContext1, ID3D11VideoContext1_Vtbl, 0xa7f026da_a5f8_4487_a564_15e34357651e); +::windows_core::imp::interface_hierarchy!(ID3D11VideoContext1, ::windows_core::IUnknown, ID3D11DeviceChild, ID3D11VideoContext); impl ID3D11VideoContext1 { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -9293,15 +8723,8 @@ impl ID3D11VideoContext1 { (::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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ID3D11VideoContext1, ::windows_core::IUnknown, ID3D11DeviceChild, ID3D11VideoContext); unsafe impl ::core::marker::Send for ID3D11VideoContext1 {} unsafe impl ::core::marker::Sync for ID3D11VideoContext1 {} -unsafe impl ::windows_core::Interface for ID3D11VideoContext1 { - type Vtable = ID3D11VideoContext1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11VideoContext1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa7f026da_a5f8_4487_a564_15e34357651e); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11VideoContext1_Vtbl { @@ -9342,9 +8765,8 @@ pub struct ID3D11VideoContext1_Vtbl { #[cfg(not(feature = "Win32_Graphics_Dxgi_Common"))] VideoProcessorGetBehaviorHints: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11VideoContext2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11VideoContext2, ID3D11VideoContext2_Vtbl, 0xc4e7374c_6243_4d1b_ae87_52b4f740e261); +::windows_core::imp::interface_hierarchy!(ID3D11VideoContext2, ::windows_core::IUnknown, ID3D11DeviceChild, ID3D11VideoContext, ID3D11VideoContext1); impl ID3D11VideoContext2 { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -9895,15 +9317,8 @@ impl ID3D11VideoContext2 { (::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::imp::interface_hierarchy!(ID3D11VideoContext2, ::windows_core::IUnknown, ID3D11DeviceChild, ID3D11VideoContext, ID3D11VideoContext1); unsafe impl ::core::marker::Send for ID3D11VideoContext2 {} unsafe impl ::core::marker::Sync for ID3D11VideoContext2 {} -unsafe impl ::windows_core::Interface for ID3D11VideoContext2 { - type Vtable = ID3D11VideoContext2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11VideoContext2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc4e7374c_6243_4d1b_ae87_52b4f740e261); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11VideoContext2_Vtbl { @@ -9925,9 +9340,8 @@ pub struct ID3D11VideoContext2_Vtbl { #[cfg(not(feature = "Win32_Graphics_Dxgi"))] VideoProcessorGetStreamHDRMetaData: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11VideoContext3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11VideoContext3, ID3D11VideoContext3_Vtbl, 0xa9e2faa0_cb39_418f_a0b7_d8aad4de672e); +::windows_core::imp::interface_hierarchy!(ID3D11VideoContext3, ::windows_core::IUnknown, ID3D11DeviceChild, ID3D11VideoContext, ID3D11VideoContext1, ID3D11VideoContext2); impl ID3D11VideoContext3 { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -10491,15 +9905,8 @@ impl ID3D11VideoContext3 { (::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::imp::interface_hierarchy!(ID3D11VideoContext3, ::windows_core::IUnknown, ID3D11DeviceChild, ID3D11VideoContext, ID3D11VideoContext1, ID3D11VideoContext2); unsafe impl ::core::marker::Send for ID3D11VideoContext3 {} unsafe impl ::core::marker::Sync for ID3D11VideoContext3 {} -unsafe impl ::windows_core::Interface for ID3D11VideoContext3 { - type Vtable = ID3D11VideoContext3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11VideoContext3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa9e2faa0_cb39_418f_a0b7_d8aad4de672e); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11VideoContext3_Vtbl { @@ -10507,9 +9914,8 @@ pub struct ID3D11VideoContext3_Vtbl { pub DecoderBeginFrame1: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdecoder: *mut ::core::ffi::c_void, pview: *mut ::core::ffi::c_void, contentkeysize: u32, pcontentkey: *const ::core::ffi::c_void, numcomponenthistograms: u32, phistogramoffsets: *const u32, pphistogrambuffers: *const *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SubmitDecoderBuffers2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdecoder: *mut ::core::ffi::c_void, numbuffers: u32, pbufferdesc: *const D3D11_VIDEO_DECODER_BUFFER_DESC2) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11VideoDecoder(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11VideoDecoder, ID3D11VideoDecoder_Vtbl, 0x3c9c5b51_995d_48d1_9b8d_fa5caeded65c); +::windows_core::imp::interface_hierarchy!(ID3D11VideoDecoder, ::windows_core::IUnknown, ID3D11DeviceChild); impl ID3D11VideoDecoder { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -10538,15 +9944,8 @@ impl ID3D11VideoDecoder { (::windows_core::Interface::vtable(self).GetDriverHandle)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ID3D11VideoDecoder, ::windows_core::IUnknown, ID3D11DeviceChild); unsafe impl ::core::marker::Send for ID3D11VideoDecoder {} unsafe impl ::core::marker::Sync for ID3D11VideoDecoder {} -unsafe impl ::windows_core::Interface for ID3D11VideoDecoder { - type Vtable = ID3D11VideoDecoder_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11VideoDecoder { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3c9c5b51_995d_48d1_9b8d_fa5caeded65c); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11VideoDecoder_Vtbl { @@ -10557,9 +9956,8 @@ pub struct ID3D11VideoDecoder_Vtbl { GetCreationParameters: usize, pub GetDriverHandle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdriverhandle: *mut super::super::Foundation::HANDLE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11VideoDecoderOutputView(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11VideoDecoderOutputView, ID3D11VideoDecoderOutputView_Vtbl, 0xc2931aea_2a85_4f20_860f_fba1fd256e18); +::windows_core::imp::interface_hierarchy!(ID3D11VideoDecoderOutputView, ::windows_core::IUnknown, ID3D11DeviceChild, ID3D11View); impl ID3D11VideoDecoderOutputView { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -10587,24 +9985,16 @@ impl ID3D11VideoDecoderOutputView { (::windows_core::Interface::vtable(self).GetDesc)(::windows_core::Interface::as_raw(self), pdesc) } } -::windows_core::imp::interface_hierarchy!(ID3D11VideoDecoderOutputView, ::windows_core::IUnknown, ID3D11DeviceChild, ID3D11View); unsafe impl ::core::marker::Send for ID3D11VideoDecoderOutputView {} unsafe impl ::core::marker::Sync for ID3D11VideoDecoderOutputView {} -unsafe impl ::windows_core::Interface for ID3D11VideoDecoderOutputView { - type Vtable = ID3D11VideoDecoderOutputView_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11VideoDecoderOutputView { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc2931aea_2a85_4f20_860f_fba1fd256e18); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11VideoDecoderOutputView_Vtbl { pub base__: ID3D11View_Vtbl, pub GetDesc: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdesc: *mut D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11VideoDevice(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11VideoDevice, ID3D11VideoDevice_Vtbl, 0x10ec4d5b_975a_4689_b9e4_d0aac30fe333); +::windows_core::imp::interface_hierarchy!(ID3D11VideoDevice, ::windows_core::IUnknown); impl ID3D11VideoDevice { #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] #[cfg(feature = "Win32_Graphics_Dxgi_Common")] @@ -10694,15 +10084,8 @@ impl ID3D11VideoDevice { (::windows_core::Interface::vtable(self).SetPrivateDataInterface)(::windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ID3D11VideoDevice, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID3D11VideoDevice {} unsafe impl ::core::marker::Sync for ID3D11VideoDevice {} -unsafe impl ::windows_core::Interface for ID3D11VideoDevice { - type Vtable = ID3D11VideoDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11VideoDevice { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x10ec4d5b_975a_4689_b9e4_d0aac30fe333); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11VideoDevice_Vtbl { @@ -10740,9 +10123,8 @@ pub struct ID3D11VideoDevice_Vtbl { pub SetPrivateData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guid: *const ::windows_core::GUID, datasize: u32, pdata: *const ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetPrivateDataInterface: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guid: *const ::windows_core::GUID, pdata: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11VideoDevice1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11VideoDevice1, ID3D11VideoDevice1_Vtbl, 0x29da1d51_1321_4454_804b_f5fc9f861f0f); +::windows_core::imp::interface_hierarchy!(ID3D11VideoDevice1, ::windows_core::IUnknown, ID3D11VideoDevice); impl ID3D11VideoDevice1 { #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] #[cfg(feature = "Win32_Graphics_Dxgi_Common")] @@ -10852,15 +10234,8 @@ impl ID3D11VideoDevice1 { (::windows_core::Interface::vtable(self).RecommendVideoDecoderDownsampleParameters)(::windows_core::Interface::as_raw(self), pinputdesc, inputcolorspace, pinputconfig, pframerate, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ID3D11VideoDevice1, ::windows_core::IUnknown, ID3D11VideoDevice); unsafe impl ::core::marker::Send for ID3D11VideoDevice1 {} unsafe impl ::core::marker::Sync for ID3D11VideoDevice1 {} -unsafe impl ::windows_core::Interface for ID3D11VideoDevice1 { - type Vtable = ID3D11VideoDevice1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11VideoDevice1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x29da1d51_1321_4454_804b_f5fc9f861f0f); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11VideoDevice1_Vtbl { @@ -10879,9 +10254,8 @@ pub struct ID3D11VideoDevice1_Vtbl { #[cfg(not(feature = "Win32_Graphics_Dxgi_Common"))] RecommendVideoDecoderDownsampleParameters: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11VideoDevice2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11VideoDevice2, ID3D11VideoDevice2_Vtbl, 0x59c0cb01_35f0_4a70_8f67_87905c906a53); +::windows_core::imp::interface_hierarchy!(ID3D11VideoDevice2, ::windows_core::IUnknown, ID3D11VideoDevice, ID3D11VideoDevice1); impl ID3D11VideoDevice2 { #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] #[cfg(feature = "Win32_Graphics_Dxgi_Common")] @@ -11000,15 +10374,8 @@ impl ID3D11VideoDevice2 { (::windows_core::Interface::vtable(self).NegotiateCryptoSessionKeyExchangeMT)(::windows_core::Interface::as_raw(self), pcryptosession.into_param().abi(), flags, datasize, pdata).ok() } } -::windows_core::imp::interface_hierarchy!(ID3D11VideoDevice2, ::windows_core::IUnknown, ID3D11VideoDevice, ID3D11VideoDevice1); unsafe impl ::core::marker::Send for ID3D11VideoDevice2 {} unsafe impl ::core::marker::Sync for ID3D11VideoDevice2 {} -unsafe impl ::windows_core::Interface for ID3D11VideoDevice2 { - type Vtable = ID3D11VideoDevice2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11VideoDevice2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x59c0cb01_35f0_4a70_8f67_87905c906a53); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11VideoDevice2_Vtbl { @@ -11016,9 +10383,8 @@ pub struct ID3D11VideoDevice2_Vtbl { pub CheckFeatureSupport: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, feature: D3D11_FEATURE_VIDEO, pfeaturesupportdata: *mut ::core::ffi::c_void, featuresupportdatasize: u32) -> ::windows_core::HRESULT, pub NegotiateCryptoSessionKeyExchangeMT: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcryptosession: *mut ::core::ffi::c_void, flags: D3D11_CRYPTO_SESSION_KEY_EXCHANGE_FLAGS, datasize: u32, pdata: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11VideoProcessor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11VideoProcessor, ID3D11VideoProcessor_Vtbl, 0x1d7b0652_185f_41c6_85ce_0c5be3d4ae6c); +::windows_core::imp::interface_hierarchy!(ID3D11VideoProcessor, ::windows_core::IUnknown, ID3D11DeviceChild); impl ID3D11VideoProcessor { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -11046,15 +10412,8 @@ impl ID3D11VideoProcessor { (::windows_core::Interface::vtable(self).GetRateConversionCaps)(::windows_core::Interface::as_raw(self), pcaps) } } -::windows_core::imp::interface_hierarchy!(ID3D11VideoProcessor, ::windows_core::IUnknown, ID3D11DeviceChild); unsafe impl ::core::marker::Send for ID3D11VideoProcessor {} unsafe impl ::core::marker::Sync for ID3D11VideoProcessor {} -unsafe impl ::windows_core::Interface for ID3D11VideoProcessor { - type Vtable = ID3D11VideoProcessor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11VideoProcessor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1d7b0652_185f_41c6_85ce_0c5be3d4ae6c); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11VideoProcessor_Vtbl { @@ -11065,9 +10424,8 @@ pub struct ID3D11VideoProcessor_Vtbl { GetContentDesc: usize, pub GetRateConversionCaps: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcaps: *mut D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11VideoProcessorEnumerator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11VideoProcessorEnumerator, ID3D11VideoProcessorEnumerator_Vtbl, 0x31627037_53ab_4200_9061_05faa9ab45f9); +::windows_core::imp::interface_hierarchy!(ID3D11VideoProcessorEnumerator, ::windows_core::IUnknown, ID3D11DeviceChild); impl ID3D11VideoProcessorEnumerator { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -11113,15 +10471,8 @@ impl ID3D11VideoProcessorEnumerator { (::windows_core::Interface::vtable(self).GetVideoProcessorFilterRange)(::windows_core::Interface::as_raw(self), filter, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ID3D11VideoProcessorEnumerator, ::windows_core::IUnknown, ID3D11DeviceChild); unsafe impl ::core::marker::Send for ID3D11VideoProcessorEnumerator {} unsafe impl ::core::marker::Sync for ID3D11VideoProcessorEnumerator {} -unsafe impl ::windows_core::Interface for ID3D11VideoProcessorEnumerator { - type Vtable = ID3D11VideoProcessorEnumerator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11VideoProcessorEnumerator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x31627037_53ab_4200_9061_05faa9ab45f9); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11VideoProcessorEnumerator_Vtbl { @@ -11142,9 +10493,8 @@ pub struct ID3D11VideoProcessorEnumerator_Vtbl { GetVideoProcessorCustomRate: usize, pub GetVideoProcessorFilterRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filter: D3D11_VIDEO_PROCESSOR_FILTER, prange: *mut D3D11_VIDEO_PROCESSOR_FILTER_RANGE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11VideoProcessorEnumerator1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11VideoProcessorEnumerator1, ID3D11VideoProcessorEnumerator1_Vtbl, 0x465217f2_5568_43cf_b5b9_f61d54531ca1); +::windows_core::imp::interface_hierarchy!(ID3D11VideoProcessorEnumerator1, ::windows_core::IUnknown, ID3D11DeviceChild, ID3D11VideoProcessorEnumerator); impl ID3D11VideoProcessorEnumerator1 { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -11196,15 +10546,8 @@ impl ID3D11VideoProcessorEnumerator1 { (::windows_core::Interface::vtable(self).CheckVideoProcessorFormatConversion)(::windows_core::Interface::as_raw(self), inputformat, inputcolorspace, outputformat, outputcolorspace, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ID3D11VideoProcessorEnumerator1, ::windows_core::IUnknown, ID3D11DeviceChild, ID3D11VideoProcessorEnumerator); unsafe impl ::core::marker::Send for ID3D11VideoProcessorEnumerator1 {} unsafe impl ::core::marker::Sync for ID3D11VideoProcessorEnumerator1 {} -unsafe impl ::windows_core::Interface for ID3D11VideoProcessorEnumerator1 { - type Vtable = ID3D11VideoProcessorEnumerator1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11VideoProcessorEnumerator1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x465217f2_5568_43cf_b5b9_f61d54531ca1); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11VideoProcessorEnumerator1_Vtbl { @@ -11214,9 +10557,8 @@ pub struct ID3D11VideoProcessorEnumerator1_Vtbl { #[cfg(not(feature = "Win32_Graphics_Dxgi_Common"))] CheckVideoProcessorFormatConversion: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11VideoProcessorInputView(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11VideoProcessorInputView, ID3D11VideoProcessorInputView_Vtbl, 0x11ec5a5f_51dc_4945_ab34_6e8c21300ea5); +::windows_core::imp::interface_hierarchy!(ID3D11VideoProcessorInputView, ::windows_core::IUnknown, ID3D11DeviceChild, ID3D11View); impl ID3D11VideoProcessorInputView { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -11246,24 +10588,16 @@ impl ID3D11VideoProcessorInputView { ::std::mem::transmute(result__) } } -::windows_core::imp::interface_hierarchy!(ID3D11VideoProcessorInputView, ::windows_core::IUnknown, ID3D11DeviceChild, ID3D11View); unsafe impl ::core::marker::Send for ID3D11VideoProcessorInputView {} unsafe impl ::core::marker::Sync for ID3D11VideoProcessorInputView {} -unsafe impl ::windows_core::Interface for ID3D11VideoProcessorInputView { - type Vtable = ID3D11VideoProcessorInputView_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11VideoProcessorInputView { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x11ec5a5f_51dc_4945_ab34_6e8c21300ea5); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11VideoProcessorInputView_Vtbl { pub base__: ID3D11View_Vtbl, pub GetDesc: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdesc: *mut D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11VideoProcessorOutputView(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11VideoProcessorOutputView, ID3D11VideoProcessorOutputView_Vtbl, 0xa048285e_25a9_4527_bd93_d68b68c44254); +::windows_core::imp::interface_hierarchy!(ID3D11VideoProcessorOutputView, ::windows_core::IUnknown, ID3D11DeviceChild, ID3D11View); impl ID3D11VideoProcessorOutputView { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -11293,24 +10627,16 @@ impl ID3D11VideoProcessorOutputView { ::std::mem::transmute(result__) } } -::windows_core::imp::interface_hierarchy!(ID3D11VideoProcessorOutputView, ::windows_core::IUnknown, ID3D11DeviceChild, ID3D11View); unsafe impl ::core::marker::Send for ID3D11VideoProcessorOutputView {} unsafe impl ::core::marker::Sync for ID3D11VideoProcessorOutputView {} -unsafe impl ::windows_core::Interface for ID3D11VideoProcessorOutputView { - type Vtable = ID3D11VideoProcessorOutputView_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11VideoProcessorOutputView { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa048285e_25a9_4527_bd93_d68b68c44254); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11VideoProcessorOutputView_Vtbl { pub base__: ID3D11View_Vtbl, pub GetDesc: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdesc: *mut D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11View(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11View, ID3D11View_Vtbl, 0x839d1216_bb2e_412b_b7f4_a9dbebe08ed1); +::windows_core::imp::interface_hierarchy!(ID3D11View, ::windows_core::IUnknown, ID3D11DeviceChild); impl ID3D11View { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -11335,24 +10661,16 @@ impl ID3D11View { ::windows_core::from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ID3D11View, ::windows_core::IUnknown, ID3D11DeviceChild); unsafe impl ::core::marker::Send for ID3D11View {} unsafe impl ::core::marker::Sync for ID3D11View {} -unsafe impl ::windows_core::Interface for ID3D11View { - type Vtable = ID3D11View_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11View { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x839d1216_bb2e_412b_b7f4_a9dbebe08ed1); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11View_Vtbl { pub base__: ID3D11DeviceChild_Vtbl, pub GetResource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppresource: *mut *mut ::core::ffi::c_void), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3DDeviceContextState(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3DDeviceContextState, ID3DDeviceContextState_Vtbl, 0x5c1e0d8a_7c23_48f9_8c59_a92958ceff11); +::windows_core::imp::interface_hierarchy!(ID3DDeviceContextState, ::windows_core::IUnknown, ID3D11DeviceChild); impl ID3DDeviceContextState { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -11372,23 +10690,15 @@ impl ID3DDeviceContextState { (::windows_core::Interface::vtable(self).base__.SetPrivateDataInterface)(::windows_core::Interface::as_raw(self), guid, pdata.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ID3DDeviceContextState, ::windows_core::IUnknown, ID3D11DeviceChild); unsafe impl ::core::marker::Send for ID3DDeviceContextState {} unsafe impl ::core::marker::Sync for ID3DDeviceContextState {} -unsafe impl ::windows_core::Interface for ID3DDeviceContextState { - type Vtable = ID3DDeviceContextState_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3DDeviceContextState { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5c1e0d8a_7c23_48f9_8c59_a92958ceff11); -} #[repr(C)] #[doc(hidden)] pub struct ID3DDeviceContextState_Vtbl { pub base__: ID3D11DeviceChild_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3DUserDefinedAnnotation(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3DUserDefinedAnnotation, ID3DUserDefinedAnnotation_Vtbl, 0xb2daad8b_03d4_4dbf_95eb_32ab4b63d0ab); +::windows_core::imp::interface_hierarchy!(ID3DUserDefinedAnnotation, ::windows_core::IUnknown); impl ID3DUserDefinedAnnotation { pub unsafe fn BeginEvent(&self, name: P0) -> i32 where @@ -11409,15 +10719,8 @@ impl ID3DUserDefinedAnnotation { (::windows_core::Interface::vtable(self).GetStatus)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(ID3DUserDefinedAnnotation, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID3DUserDefinedAnnotation {} unsafe impl ::core::marker::Sync for ID3DUserDefinedAnnotation {} -unsafe impl ::windows_core::Interface for ID3DUserDefinedAnnotation { - type Vtable = ID3DUserDefinedAnnotation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3DUserDefinedAnnotation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb2daad8b_03d4_4dbf_95eb_32ab4b63d0ab); -} #[repr(C)] #[doc(hidden)] pub struct ID3DUserDefinedAnnotation_Vtbl { @@ -11427,9 +10730,8 @@ pub struct ID3DUserDefinedAnnotation_Vtbl { pub SetMarker: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::windows_core::PCWSTR), pub GetStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3DX11FFT(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3DX11FFT, ID3DX11FFT_Vtbl, 0xb3f7a938_4c93_4310_a675_b30d6de50553); +::windows_core::imp::interface_hierarchy!(ID3DX11FFT, ::windows_core::IUnknown); impl ID3DX11FFT { pub unsafe fn SetForwardScale(&self, forwardscale: f32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetForwardScale)(::windows_core::Interface::as_raw(self), forwardscale).ok() @@ -11459,15 +10761,8 @@ impl ID3DX11FFT { (::windows_core::Interface::vtable(self).InverseTransform)(::windows_core::Interface::as_raw(self), pinputbuffer.into_param().abi(), ::core::mem::transmute(ppoutputbuffer)).ok() } } -::windows_core::imp::interface_hierarchy!(ID3DX11FFT, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID3DX11FFT {} unsafe impl ::core::marker::Sync for ID3DX11FFT {} -unsafe impl ::windows_core::Interface for ID3DX11FFT { - type Vtable = ID3DX11FFT_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3DX11FFT { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb3f7a938_4c93_4310_a675_b30d6de50553); -} #[repr(C)] #[doc(hidden)] pub struct ID3DX11FFT_Vtbl { @@ -11480,9 +10775,8 @@ pub struct ID3DX11FFT_Vtbl { pub ForwardTransform: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinputbuffer: *mut ::core::ffi::c_void, ppoutputbuffer: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub InverseTransform: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinputbuffer: *mut ::core::ffi::c_void, ppoutputbuffer: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3DX11Scan(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3DX11Scan, ID3DX11Scan_Vtbl, 0x5089b68f_e71d_4d38_be8e_f363b95a9405); +::windows_core::imp::interface_hierarchy!(ID3DX11Scan, ::windows_core::IUnknown); impl ID3DX11Scan { pub unsafe fn SetScanDirection(&self, direction: D3DX11_SCAN_DIRECTION) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetScanDirection)(::windows_core::Interface::as_raw(self), direction).ok() @@ -11502,15 +10796,8 @@ impl ID3DX11Scan { (::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::imp::interface_hierarchy!(ID3DX11Scan, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID3DX11Scan {} unsafe impl ::core::marker::Sync for ID3DX11Scan {} -unsafe impl ::windows_core::Interface for ID3DX11Scan { - type Vtable = ID3DX11Scan_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3DX11Scan { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5089b68f_e71d_4d38_be8e_f363b95a9405); -} #[repr(C)] #[doc(hidden)] pub struct ID3DX11Scan_Vtbl { @@ -11519,9 +10806,8 @@ pub struct ID3DX11Scan_Vtbl { pub Scan: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, elementtype: D3DX11_SCAN_DATA_TYPE, opcode: D3DX11_SCAN_OPCODE, elementscansize: u32, psrc: *mut ::core::ffi::c_void, pdst: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Multiscan: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, elementtype: D3DX11_SCAN_DATA_TYPE, opcode: D3DX11_SCAN_OPCODE, elementscansize: u32, elementscanpitch: u32, scancount: u32, psrc: *mut ::core::ffi::c_void, pdst: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3DX11SegmentedScan(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3DX11SegmentedScan, ID3DX11SegmentedScan_Vtbl, 0xa915128c_d954_4c79_bfe1_64db923194d6); +::windows_core::imp::interface_hierarchy!(ID3DX11SegmentedScan, ::windows_core::IUnknown); impl ID3DX11SegmentedScan { pub unsafe fn SetScanDirection(&self, direction: D3DX11_SCAN_DIRECTION) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetScanDirection)(::windows_core::Interface::as_raw(self), direction).ok() @@ -11535,15 +10821,8 @@ impl ID3DX11SegmentedScan { (::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::imp::interface_hierarchy!(ID3DX11SegmentedScan, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID3DX11SegmentedScan {} unsafe impl ::core::marker::Sync for ID3DX11SegmentedScan {} -unsafe impl ::windows_core::Interface for ID3DX11SegmentedScan { - type Vtable = ID3DX11SegmentedScan_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3DX11SegmentedScan { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa915128c_d954_4c79_bfe1_64db923194d6); -} #[repr(C)] #[doc(hidden)] pub struct ID3DX11SegmentedScan_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D11on12/impl.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D11on12/impl.rs index bf77e52773..c5412bf673 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D11on12/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D11on12/impl.rs @@ -33,7 +33,7 @@ impl ID3D11On12Device_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D11\"`, `\"Win32_Graphics_Direct3D12\"`"] @@ -54,7 +54,7 @@ impl ID3D11On12Device1_Vtbl { Self { base__: ID3D11On12Device_Vtbl::new::(), GetD3D12Device: GetD3D12Device:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D11\"`, `\"Win32_Graphics_Direct3D12\"`"] @@ -85,6 +85,6 @@ impl ID3D11On12Device2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } 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 cb9112f8d1..03386d3262 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D11on12/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D11on12/mod.rs @@ -20,16 +20,15 @@ where ) .ok() } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11On12Device(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11On12Device, ID3D11On12Device_Vtbl, 0x85611e73_70a9_490e_9614_a9e302777904); +::windows_core::imp::interface_hierarchy!(ID3D11On12Device, ::windows_core::IUnknown); impl ID3D11On12Device { #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] #[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 ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam<::windows_core::IUnknown>, - T: ::windows_core::ComInterface, + 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() } @@ -44,15 +43,8 @@ impl ID3D11On12Device { (::windows_core::Interface::vtable(self).AcquireWrappedResources)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(ppresources.as_ptr()), ppresources.len().try_into().unwrap()) } } -::windows_core::imp::interface_hierarchy!(ID3D11On12Device, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID3D11On12Device {} unsafe impl ::core::marker::Sync for ID3D11On12Device {} -unsafe impl ::windows_core::Interface for ID3D11On12Device { - type Vtable = ID3D11On12Device_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11On12Device { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x85611e73_70a9_490e_9614_a9e302777904); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11On12Device_Vtbl { @@ -70,16 +62,15 @@ pub struct ID3D11On12Device_Vtbl { #[cfg(not(feature = "Win32_Graphics_Direct3D11"))] AcquireWrappedResources: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11On12Device1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11On12Device1, ID3D11On12Device1_Vtbl, 0xbdb64df4_ea2f_4c70_b861_aaab1258bb5d); +::windows_core::imp::interface_hierarchy!(ID3D11On12Device1, ::windows_core::IUnknown, ID3D11On12Device); impl ID3D11On12Device1 { #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] #[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 ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam<::windows_core::IUnknown>, - T: ::windows_core::ComInterface, + 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() } @@ -95,37 +86,29 @@ impl ID3D11On12Device1 { } pub unsafe fn GetD3D12Device(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetD3D12Device)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ID3D11On12Device1, ::windows_core::IUnknown, ID3D11On12Device); unsafe impl ::core::marker::Send for ID3D11On12Device1 {} unsafe impl ::core::marker::Sync for ID3D11On12Device1 {} -unsafe impl ::windows_core::Interface for ID3D11On12Device1 { - type Vtable = ID3D11On12Device1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11On12Device1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbdb64df4_ea2f_4c70_b861_aaab1258bb5d); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11On12Device1_Vtbl { pub base__: ID3D11On12Device_Vtbl, pub GetD3D12Device: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppvdevice: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D11On12Device2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D11On12Device2, ID3D11On12Device2_Vtbl, 0xdc90f331_4740_43fa_866e_67f12cb58223); +::windows_core::imp::interface_hierarchy!(ID3D11On12Device2, ::windows_core::IUnknown, ID3D11On12Device, ID3D11On12Device1); impl ID3D11On12Device2 { #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] #[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 ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam<::windows_core::IUnknown>, - T: ::windows_core::ComInterface, + 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() } @@ -141,7 +124,7 @@ impl ID3D11On12Device2 { } pub unsafe fn GetD3D12Device(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.GetD3D12Device)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -152,7 +135,7 @@ impl ID3D11On12Device2 { where P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -166,15 +149,8 @@ impl ID3D11On12Device2 { (::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::imp::interface_hierarchy!(ID3D11On12Device2, ::windows_core::IUnknown, ID3D11On12Device, ID3D11On12Device1); unsafe impl ::core::marker::Send for ID3D11On12Device2 {} unsafe impl ::core::marker::Sync for ID3D11On12Device2 {} -unsafe impl ::windows_core::Interface for ID3D11On12Device2 { - type Vtable = ID3D11On12Device2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D11On12Device2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdc90f331_4740_43fa_866e_67f12cb58223); -} #[repr(C)] #[doc(hidden)] pub struct ID3D11On12Device2_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D12/impl.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D12/impl.rs index 736b645205..e3162b8ccc 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D12/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D12/impl.rs @@ -12,7 +12,7 @@ impl ID3D12CommandAllocator_Vtbl { Self { base__: ID3D12Pageable_Vtbl::new::(), Reset: Reset:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ID3D12CommandList_Impl: Sized + ID3D12DeviceChild_Impl { @@ -29,7 +29,7 @@ impl ID3D12CommandList_Vtbl { Self { base__: ID3D12DeviceChild_Vtbl::new::(), GetType: GetType:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ID3D12CommandQueue_Impl: Sized + ID3D12Pageable_Impl { @@ -125,7 +125,7 @@ impl ID3D12CommandQueue_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ID3D12CommandSignature_Impl: Sized + ID3D12Pageable_Impl {} @@ -135,7 +135,7 @@ impl ID3D12CommandSignature_Vtbl { Self { base__: ID3D12Pageable_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ID3D12Debug_Impl: Sized { @@ -152,7 +152,7 @@ impl ID3D12Debug_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), EnableDebugLayer: EnableDebugLayer:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ID3D12Debug1_Impl: Sized { @@ -186,7 +186,7 @@ impl ID3D12Debug1_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ID3D12Debug2_Impl: Sized { @@ -206,7 +206,7 @@ impl ID3D12Debug2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ID3D12Debug3_Impl: Sized + ID3D12Debug_Impl { @@ -240,7 +240,7 @@ impl ID3D12Debug3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ID3D12Debug4_Impl: Sized + ID3D12Debug3_Impl { @@ -257,7 +257,7 @@ impl ID3D12Debug4_Vtbl { Self { base__: ID3D12Debug3_Vtbl::new::(), DisableDebugLayer: DisableDebugLayer:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ID3D12Debug5_Impl: Sized + ID3D12Debug4_Impl { @@ -274,7 +274,7 @@ impl ID3D12Debug5_Vtbl { Self { base__: ID3D12Debug4_Vtbl::new::(), SetEnableAutoName: SetEnableAutoName:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ID3D12Debug6_Impl: Sized + ID3D12Debug5_Impl { @@ -294,7 +294,7 @@ impl ID3D12Debug6_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ID3D12DebugCommandList_Impl: Sized { @@ -328,7 +328,7 @@ impl ID3D12DebugCommandList_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ID3D12DebugCommandList1_Impl: Sized { @@ -362,7 +362,7 @@ impl ID3D12DebugCommandList1_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ID3D12DebugCommandList2_Impl: Sized + ID3D12DebugCommandList_Impl { @@ -389,7 +389,7 @@ impl ID3D12DebugCommandList2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ID3D12DebugCommandList3_Impl: Sized + ID3D12DebugCommandList2_Impl { @@ -416,7 +416,7 @@ impl ID3D12DebugCommandList3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ID3D12DebugCommandQueue_Impl: Sized { @@ -433,7 +433,7 @@ impl ID3D12DebugCommandQueue_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), AssertResourceState: AssertResourceState:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ID3D12DebugCommandQueue1_Impl: Sized + ID3D12DebugCommandQueue_Impl { @@ -460,7 +460,7 @@ impl ID3D12DebugCommandQueue1_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ID3D12DebugDevice_Impl: Sized { @@ -494,7 +494,7 @@ impl ID3D12DebugDevice_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ID3D12DebugDevice1_Impl: Sized { @@ -528,7 +528,7 @@ impl ID3D12DebugDevice1_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ID3D12DebugDevice2_Impl: Sized + ID3D12DebugDevice_Impl { @@ -555,7 +555,7 @@ impl ID3D12DebugDevice2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ID3D12DescriptorHeap_Impl: Sized + ID3D12Pageable_Impl { @@ -589,7 +589,7 @@ impl ID3D12DescriptorHeap_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`, `\"Win32_Security\"`"] @@ -877,7 +877,7 @@ impl ID3D12Device_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`, `\"Win32_Security\"`"] @@ -915,7 +915,7 @@ impl ID3D12Device1_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`, `\"Win32_Security\"`"] @@ -954,7 +954,7 @@ impl ID3D12Device10_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`, `\"Win32_Security\"`"] @@ -975,19 +975,7 @@ impl ID3D12Device11_Vtbl { Self { base__: ID3D12Device10_Vtbl::new::(), CreateSampler2: CreateSampler2:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`, `\"Win32_Security\"`"] @@ -1008,20 +996,20 @@ impl ID3D12Device12_Vtbl { Self { base__: ID3D12Device11_Vtbl::new::(), GetResourceAllocationInfo3: GetResourceAllocationInfo3:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID + iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`, `\"Win32_Security\"`"] @@ -1045,21 +1033,21 @@ impl ID3D12Device13_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID + iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`, `\"Win32_Security\"`"] @@ -1080,7 +1068,7 @@ impl ID3D12Device2_Vtbl { Self { base__: ID3D12Device1_Vtbl::new::(), CreatePipelineState: CreatePipelineState:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`, `\"Win32_Security\"`"] @@ -1118,7 +1106,7 @@ impl ID3D12Device3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`, `\"Win32_Security\"`"] @@ -1177,7 +1165,7 @@ impl ID3D12Device4_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`, `\"Win32_Security\"`"] @@ -1250,7 +1238,7 @@ impl ID3D12Device5_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`, `\"Win32_Security\"`"] @@ -1271,7 +1259,7 @@ impl ID3D12Device6_Vtbl { Self { base__: ID3D12Device5_Vtbl::new::(), SetBackgroundProcessingMode: SetBackgroundProcessingMode:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`, `\"Win32_Security\"`"] @@ -1302,7 +1290,7 @@ impl ID3D12Device7_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`, `\"Win32_Security\"`"] @@ -1354,7 +1342,7 @@ impl ID3D12Device8_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`, `\"Win32_Security\"`"] @@ -1392,7 +1380,7 @@ impl ID3D12Device9_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ID3D12DeviceChild_Impl: Sized + ID3D12Object_Impl { @@ -1409,7 +1397,7 @@ impl ID3D12DeviceChild_Vtbl { Self { base__: ID3D12Object_Vtbl::new::(), GetDevice: GetDevice:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D\"`"] @@ -1454,7 +1442,7 @@ impl ID3D12DeviceConfiguration_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D\"`"] @@ -1520,7 +1508,7 @@ impl ID3D12DeviceFactory_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ID3D12DeviceRemovedExtendedData_Impl: Sized { @@ -1559,7 +1547,7 @@ impl ID3D12DeviceRemovedExtendedData_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ID3D12DeviceRemovedExtendedData1_Impl: Sized + ID3D12DeviceRemovedExtendedData_Impl { @@ -1598,7 +1586,7 @@ impl ID3D12DeviceRemovedExtendedData1_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ID3D12DeviceRemovedExtendedData2_Impl: Sized + ID3D12DeviceRemovedExtendedData1_Impl { @@ -1625,7 +1613,7 @@ impl ID3D12DeviceRemovedExtendedData2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ID3D12DeviceRemovedExtendedDataSettings_Impl: Sized { @@ -1659,7 +1647,7 @@ impl ID3D12DeviceRemovedExtendedDataSettings_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ID3D12DeviceRemovedExtendedDataSettings1_Impl: Sized + ID3D12DeviceRemovedExtendedDataSettings_Impl { @@ -1679,7 +1667,7 @@ impl ID3D12DeviceRemovedExtendedDataSettings1_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ID3D12DeviceRemovedExtendedDataSettings2_Impl: Sized + ID3D12DeviceRemovedExtendedDataSettings1_Impl { @@ -1699,7 +1687,7 @@ impl ID3D12DeviceRemovedExtendedDataSettings2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ID3D12Fence_Impl: Sized + ID3D12Pageable_Impl { @@ -1733,7 +1721,7 @@ impl ID3D12Fence_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ID3D12Fence1_Impl: Sized + ID3D12Fence_Impl { @@ -1750,7 +1738,7 @@ impl ID3D12Fence1_Vtbl { Self { base__: ID3D12Fence_Vtbl::new::(), GetCreationFlags: GetCreationFlags:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D\"`"] @@ -2230,7 +2218,7 @@ impl ID3D12GraphicsCommandList_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D\"`, `\"Win32_Graphics_Dxgi_Common\"`"] @@ -2289,7 +2277,7 @@ impl ID3D12GraphicsCommandList1_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D\"`, `\"Win32_Graphics_Dxgi_Common\"`"] @@ -2310,7 +2298,7 @@ impl ID3D12GraphicsCommandList2_Vtbl { Self { base__: ID3D12GraphicsCommandList1_Vtbl::new::(), WriteBufferImmediate: WriteBufferImmediate:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D\"`, `\"Win32_Graphics_Dxgi_Common\"`"] @@ -2334,7 +2322,7 @@ impl ID3D12GraphicsCommandList3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D\"`, `\"Win32_Graphics_Dxgi_Common\"`"] @@ -2414,7 +2402,7 @@ impl ID3D12GraphicsCommandList4_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D\"`, `\"Win32_Graphics_Dxgi_Common\"`"] @@ -2445,7 +2433,7 @@ impl ID3D12GraphicsCommandList5_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D\"`, `\"Win32_Graphics_Dxgi_Common\"`"] @@ -2466,7 +2454,7 @@ impl ID3D12GraphicsCommandList6_Vtbl { Self { base__: ID3D12GraphicsCommandList5_Vtbl::new::(), DispatchMesh: DispatchMesh:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D\"`, `\"Win32_Graphics_Dxgi_Common\"`"] @@ -2487,17 +2475,7 @@ impl ID3D12GraphicsCommandList7_Vtbl { Self { base__: ID3D12GraphicsCommandList6_Vtbl::new::(), Barrier: Barrier:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D\"`, `\"Win32_Graphics_Dxgi_Common\"`"] @@ -2521,18 +2499,18 @@ impl ID3D12GraphicsCommandList8_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID + iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D\"`, `\"Win32_Graphics_Dxgi_Common\"`"] @@ -2563,19 +2541,19 @@ impl ID3D12GraphicsCommandList9_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID + iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID } } pub trait ID3D12Heap_Impl: Sized + ID3D12Pageable_Impl { @@ -2592,7 +2570,7 @@ impl ID3D12Heap_Vtbl { Self { base__: ID3D12Pageable_Vtbl::new::(), GetDesc: GetDesc:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ID3D12Heap1_Impl: Sized + ID3D12Heap_Impl { @@ -2609,7 +2587,7 @@ impl ID3D12Heap1_Vtbl { Self { base__: ID3D12Heap_Vtbl::new::(), GetProtectedResourceSession: GetProtectedResourceSession:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ID3D12InfoQueue_Impl: Sized { @@ -2867,7 +2845,7 @@ impl ID3D12InfoQueue_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ID3D12InfoQueue1_Impl: Sized + ID3D12InfoQueue_Impl { @@ -2894,7 +2872,7 @@ impl ID3D12InfoQueue1_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ID3D12LibraryReflection_Impl: Sized { @@ -2927,7 +2905,7 @@ impl ID3D12LibraryReflection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ID3D12LifetimeOwner_Impl: Sized { @@ -2944,7 +2922,7 @@ impl ID3D12LifetimeOwner_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), LifetimeStateUpdated: LifetimeStateUpdated:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ID3D12LifetimeTracker_Impl: Sized + ID3D12DeviceChild_Impl { @@ -2961,7 +2939,7 @@ impl ID3D12LifetimeTracker_Vtbl { Self { base__: ID3D12DeviceChild_Vtbl::new::(), DestroyOwnedObject: DestroyOwnedObject:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ID3D12ManualWriteTrackingResource_Impl: Sized { @@ -2978,7 +2956,7 @@ impl ID3D12ManualWriteTrackingResource_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), TrackWrite: TrackWrite:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ID3D12MetaCommand_Impl: Sized + ID3D12Pageable_Impl { @@ -2998,7 +2976,7 @@ impl ID3D12MetaCommand_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ID3D12Object_Impl: Sized { @@ -3039,7 +3017,7 @@ impl ID3D12Object_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ID3D12Pageable_Impl: Sized + ID3D12DeviceChild_Impl {} @@ -3049,7 +3027,7 @@ impl ID3D12Pageable_Vtbl { Self { base__: ID3D12DeviceChild_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] @@ -3101,7 +3079,7 @@ impl ID3D12PipelineLibrary_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] @@ -3122,7 +3100,7 @@ impl ID3D12PipelineLibrary1_Vtbl { Self { base__: ID3D12PipelineLibrary_Vtbl::new::(), LoadPipeline: LoadPipeline:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D\"`"] @@ -3149,7 +3127,7 @@ impl ID3D12PipelineState_Vtbl { Self { base__: ID3D12Pageable_Vtbl::new::(), GetCachedBlob: GetCachedBlob:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ID3D12ProtectedResourceSession_Impl: Sized + ID3D12ProtectedSession_Impl { @@ -3166,7 +3144,7 @@ impl ID3D12ProtectedResourceSession_Vtbl { Self { base__: ID3D12ProtectedSession_Vtbl::new::(), GetDesc: GetDesc:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ID3D12ProtectedResourceSession1_Impl: Sized + ID3D12ProtectedResourceSession_Impl { @@ -3183,7 +3161,7 @@ impl ID3D12ProtectedResourceSession1_Vtbl { Self { base__: ID3D12ProtectedResourceSession_Vtbl::new::(), GetDesc1: GetDesc1:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ID3D12ProtectedSession_Impl: Sized + ID3D12DeviceChild_Impl { @@ -3210,7 +3188,7 @@ impl ID3D12ProtectedSession_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ID3D12QueryHeap_Impl: Sized + ID3D12Pageable_Impl {} @@ -3220,7 +3198,7 @@ impl ID3D12QueryHeap_Vtbl { Self { base__: ID3D12Pageable_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] @@ -3286,7 +3264,7 @@ impl ID3D12Resource_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] @@ -3307,7 +3285,7 @@ impl ID3D12Resource1_Vtbl { Self { base__: ID3D12Resource_Vtbl::new::(), GetProtectedResourceSession: GetProtectedResourceSession:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] @@ -3328,7 +3306,7 @@ impl ID3D12Resource2_Vtbl { Self { base__: ID3D12Resource1_Vtbl::new::(), GetDesc1: GetDesc1:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ID3D12RootSignature_Impl: Sized + ID3D12DeviceChild_Impl {} @@ -3338,7 +3316,7 @@ impl ID3D12RootSignature_Vtbl { Self { base__: ID3D12DeviceChild_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ID3D12RootSignatureDeserializer_Impl: Sized { @@ -3355,7 +3333,7 @@ impl ID3D12RootSignatureDeserializer_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetRootSignatureDesc: GetRootSignatureDesc:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ID3D12SDKConfiguration_Impl: Sized { @@ -3372,7 +3350,7 @@ impl ID3D12SDKConfiguration_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), SetSDKVersion: SetSDKVersion:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ID3D12SDKConfiguration1_Impl: Sized + ID3D12SDKConfiguration_Impl { @@ -3399,7 +3377,7 @@ impl ID3D12SDKConfiguration1_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ID3D12ShaderCacheSession_Impl: Sized + ID3D12DeviceChild_Impl { @@ -3440,7 +3418,7 @@ impl ID3D12ShaderCacheSession_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D\"`"] @@ -3596,7 +3574,7 @@ impl ID3D12ShaderReflection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D\"`"] @@ -3826,7 +3804,7 @@ impl ID3D12SharingContract_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ID3D12StateObject_Impl: Sized + ID3D12Pageable_Impl {} @@ -3836,7 +3814,7 @@ impl ID3D12StateObject_Vtbl { Self { base__: ID3D12Pageable_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ID3D12StateObjectProperties_Impl: Sized { @@ -3877,7 +3855,7 @@ impl ID3D12StateObjectProperties_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ID3D12SwapChainAssistant_Impl: Sized { @@ -3918,7 +3896,7 @@ impl ID3D12SwapChainAssistant_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ID3D12Tools_Impl: Sized { @@ -3945,7 +3923,7 @@ impl ID3D12Tools_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ID3D12VersionedRootSignatureDeserializer_Impl: Sized { @@ -3978,7 +3956,7 @@ impl ID3D12VersionedRootSignatureDeserializer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ID3D12VirtualizationGuestDevice_Impl: Sized { @@ -4017,6 +3995,6 @@ impl ID3D12VirtualizationGuestDevice_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 eb2c621e81..2d92c55627 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D12/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D12/mod.rs @@ -4,7 +4,7 @@ pub unsafe fn D3D12CreateDevice(padapter: P0, minimumfeaturelevel: super::Direct3D::D3D_FEATURE_LEVEL, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam<::windows_core::IUnknown>, - T: ::windows_core::ComInterface, + 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() @@ -27,7 +27,7 @@ pub unsafe fn D3D12EnableExperimentalFeatures(numfeatures: u32, piids: *const :: #[inline] pub unsafe fn D3D12GetDebugInterface(result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { ::windows_targets::link!("d3d12.dll" "system" fn D3D12GetDebugInterface(riid : *const ::windows_core::GUID, ppvdebug : *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT); D3D12GetDebugInterface(&T::IID, result__ as *mut _ as *mut _).ok() @@ -35,7 +35,7 @@ where #[inline] pub unsafe fn D3D12GetInterface(rclsid: *const ::windows_core::GUID, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { ::windows_targets::link!("d3d12.dll" "system" fn D3D12GetInterface(rclsid : *const ::windows_core::GUID, riid : *const ::windows_core::GUID, ppvdebug : *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT); D3D12GetInterface(rclsid, &T::IID, result__ as *mut _ as *mut _).ok() @@ -54,9 +54,8 @@ pub unsafe fn D3D12SerializeVersionedRootSignature(prootsignature: *const D3D12_ ::windows_targets::link!("d3d12.dll" "system" fn D3D12SerializeVersionedRootSignature(prootsignature : *const D3D12_VERSIONED_ROOT_SIGNATURE_DESC, ppblob : *mut * mut::core::ffi::c_void, pperrorblob : *mut * mut::core::ffi::c_void) -> ::windows_core::HRESULT); D3D12SerializeVersionedRootSignature(prootsignature, ::core::mem::transmute(ppblob), ::core::mem::transmute(pperrorblob.unwrap_or(::std::ptr::null_mut()))).ok() } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12CommandAllocator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12CommandAllocator, ID3D12CommandAllocator_Vtbl, 0x6102dee4_af59_4b09_b999_b44d73f09b24); +::windows_core::imp::interface_hierarchy!(ID3D12CommandAllocator, ::windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild, ID3D12Pageable); impl ID3D12CommandAllocator { pub unsafe fn GetPrivateData(&self, guid: *const ::windows_core::GUID, pdatasize: *mut u32, pdata: ::core::option::Option<*mut ::core::ffi::c_void>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.GetPrivateData)(::windows_core::Interface::as_raw(self), guid, pdatasize, ::core::mem::transmute(pdata.unwrap_or(::std::ptr::null_mut()))).ok() @@ -78,7 +77,7 @@ impl ID3D12CommandAllocator { } pub unsafe fn GetDevice(&self, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _).ok() } @@ -86,24 +85,16 @@ impl ID3D12CommandAllocator { (::windows_core::Interface::vtable(self).Reset)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ID3D12CommandAllocator, ::windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild, ID3D12Pageable); unsafe impl ::core::marker::Send for ID3D12CommandAllocator {} unsafe impl ::core::marker::Sync for ID3D12CommandAllocator {} -unsafe impl ::windows_core::Interface for ID3D12CommandAllocator { - type Vtable = ID3D12CommandAllocator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12CommandAllocator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6102dee4_af59_4b09_b999_b44d73f09b24); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12CommandAllocator_Vtbl { pub base__: ID3D12Pageable_Vtbl, pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12CommandList(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12CommandList, ID3D12CommandList_Vtbl, 0x7116d91c_e7e4_47ce_b8c6_ec8168f437e5); +::windows_core::imp::interface_hierarchy!(ID3D12CommandList, ::windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild); impl ID3D12CommandList { pub unsafe fn GetPrivateData(&self, guid: *const ::windows_core::GUID, pdatasize: *mut u32, pdata: ::core::option::Option<*mut ::core::ffi::c_void>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.GetPrivateData)(::windows_core::Interface::as_raw(self), guid, pdatasize, ::core::mem::transmute(pdata.unwrap_or(::std::ptr::null_mut()))).ok() @@ -125,7 +116,7 @@ impl ID3D12CommandList { } pub unsafe fn GetDevice(&self, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _).ok() } @@ -133,24 +124,16 @@ impl ID3D12CommandList { (::windows_core::Interface::vtable(self).GetType)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(ID3D12CommandList, ::windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild); unsafe impl ::core::marker::Send for ID3D12CommandList {} unsafe impl ::core::marker::Sync for ID3D12CommandList {} -unsafe impl ::windows_core::Interface for ID3D12CommandList { - type Vtable = ID3D12CommandList_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12CommandList { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7116d91c_e7e4_47ce_b8c6_ec8168f437e5); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12CommandList_Vtbl { pub base__: ID3D12DeviceChild_Vtbl, pub GetType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> D3D12_COMMAND_LIST_TYPE, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12CommandQueue(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12CommandQueue, ID3D12CommandQueue_Vtbl, 0x0ec870a6_5d7e_4c22_8cfc_5baae07616ed); +::windows_core::imp::interface_hierarchy!(ID3D12CommandQueue, ::windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild, ID3D12Pageable); impl ID3D12CommandQueue { pub unsafe fn GetPrivateData(&self, guid: *const ::windows_core::GUID, pdatasize: *mut u32, pdata: ::core::option::Option<*mut ::core::ffi::c_void>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.GetPrivateData)(::windows_core::Interface::as_raw(self), guid, pdatasize, ::core::mem::transmute(pdata.unwrap_or(::std::ptr::null_mut()))).ok() @@ -172,7 +155,7 @@ impl ID3D12CommandQueue { } pub unsafe fn GetDevice(&self, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _).ok() } @@ -239,15 +222,8 @@ impl ID3D12CommandQueue { result__ } } -::windows_core::imp::interface_hierarchy!(ID3D12CommandQueue, ::windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild, ID3D12Pageable); unsafe impl ::core::marker::Send for ID3D12CommandQueue {} unsafe impl ::core::marker::Sync for ID3D12CommandQueue {} -unsafe impl ::windows_core::Interface for ID3D12CommandQueue { - type Vtable = ID3D12CommandQueue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12CommandQueue { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0ec870a6_5d7e_4c22_8cfc_5baae07616ed); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12CommandQueue_Vtbl { @@ -264,9 +240,8 @@ pub struct ID3D12CommandQueue_Vtbl { pub GetClockCalibration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pgputimestamp: *mut u64, pcputimestamp: *mut u64) -> ::windows_core::HRESULT, pub GetDesc: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut D3D12_COMMAND_QUEUE_DESC), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12CommandSignature(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12CommandSignature, ID3D12CommandSignature_Vtbl, 0xc36a797c_ec80_4f0a_8985_a7b2475082d1); +::windows_core::imp::interface_hierarchy!(ID3D12CommandSignature, ::windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild, ID3D12Pageable); impl ID3D12CommandSignature { pub unsafe fn GetPrivateData(&self, guid: *const ::windows_core::GUID, pdatasize: *mut u32, pdata: ::core::option::Option<*mut ::core::ffi::c_void>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.GetPrivateData)(::windows_core::Interface::as_raw(self), guid, pdatasize, ::core::mem::transmute(pdata.unwrap_or(::std::ptr::null_mut()))).ok() @@ -288,51 +263,35 @@ impl ID3D12CommandSignature { } pub unsafe fn GetDevice(&self, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _).ok() } } -::windows_core::imp::interface_hierarchy!(ID3D12CommandSignature, ::windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild, ID3D12Pageable); unsafe impl ::core::marker::Send for ID3D12CommandSignature {} unsafe impl ::core::marker::Sync for ID3D12CommandSignature {} -unsafe impl ::windows_core::Interface for ID3D12CommandSignature { - type Vtable = ID3D12CommandSignature_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12CommandSignature { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc36a797c_ec80_4f0a_8985_a7b2475082d1); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12CommandSignature_Vtbl { pub base__: ID3D12Pageable_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12Debug(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12Debug, ID3D12Debug_Vtbl, 0x344488b7_6846_474b_b989_f027448245e0); +::windows_core::imp::interface_hierarchy!(ID3D12Debug, ::windows_core::IUnknown); impl ID3D12Debug { pub unsafe fn EnableDebugLayer(&self) { (::windows_core::Interface::vtable(self).EnableDebugLayer)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(ID3D12Debug, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID3D12Debug {} unsafe impl ::core::marker::Sync for ID3D12Debug {} -unsafe impl ::windows_core::Interface for ID3D12Debug { - type Vtable = ID3D12Debug_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12Debug { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x344488b7_6846_474b_b989_f027448245e0); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12Debug_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub EnableDebugLayer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12Debug1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12Debug1, ID3D12Debug1_Vtbl, 0xaffaa4ca_63fe_4d8e_b8ad_159000af4304); +::windows_core::imp::interface_hierarchy!(ID3D12Debug1, ::windows_core::IUnknown); impl ID3D12Debug1 { pub unsafe fn EnableDebugLayer(&self) { (::windows_core::Interface::vtable(self).EnableDebugLayer)(::windows_core::Interface::as_raw(self)) @@ -350,15 +309,8 @@ impl ID3D12Debug1 { (::windows_core::Interface::vtable(self).SetEnableSynchronizedCommandQueueValidation)(::windows_core::Interface::as_raw(self), enable.into_param().abi()) } } -::windows_core::imp::interface_hierarchy!(ID3D12Debug1, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID3D12Debug1 {} unsafe impl ::core::marker::Sync for ID3D12Debug1 {} -unsafe impl ::windows_core::Interface for ID3D12Debug1 { - type Vtable = ID3D12Debug1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12Debug1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaffaa4ca_63fe_4d8e_b8ad_159000af4304); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12Debug1_Vtbl { @@ -367,32 +319,23 @@ pub struct ID3D12Debug1_Vtbl { pub SetEnableGPUBasedValidation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enable: super::super::Foundation::BOOL), pub SetEnableSynchronizedCommandQueueValidation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enable: super::super::Foundation::BOOL), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12Debug2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12Debug2, ID3D12Debug2_Vtbl, 0x93a665c4_a3b2_4e5d_b692_a26ae14e3374); +::windows_core::imp::interface_hierarchy!(ID3D12Debug2, ::windows_core::IUnknown); impl ID3D12Debug2 { pub unsafe fn SetGPUBasedValidationFlags(&self, flags: D3D12_GPU_BASED_VALIDATION_FLAGS) { (::windows_core::Interface::vtable(self).SetGPUBasedValidationFlags)(::windows_core::Interface::as_raw(self), flags) } } -::windows_core::imp::interface_hierarchy!(ID3D12Debug2, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID3D12Debug2 {} unsafe impl ::core::marker::Sync for ID3D12Debug2 {} -unsafe impl ::windows_core::Interface for ID3D12Debug2 { - type Vtable = ID3D12Debug2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12Debug2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x93a665c4_a3b2_4e5d_b692_a26ae14e3374); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12Debug2_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub SetGPUBasedValidationFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: D3D12_GPU_BASED_VALIDATION_FLAGS), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12Debug3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12Debug3, ID3D12Debug3_Vtbl, 0x5cf4e58f_f671_4ff1_a542_3686e3d153d1); +::windows_core::imp::interface_hierarchy!(ID3D12Debug3, ::windows_core::IUnknown, ID3D12Debug); impl ID3D12Debug3 { pub unsafe fn EnableDebugLayer(&self) { (::windows_core::Interface::vtable(self).base__.EnableDebugLayer)(::windows_core::Interface::as_raw(self)) @@ -413,15 +356,8 @@ impl ID3D12Debug3 { (::windows_core::Interface::vtable(self).SetGPUBasedValidationFlags)(::windows_core::Interface::as_raw(self), flags) } } -::windows_core::imp::interface_hierarchy!(ID3D12Debug3, ::windows_core::IUnknown, ID3D12Debug); unsafe impl ::core::marker::Send for ID3D12Debug3 {} unsafe impl ::core::marker::Sync for ID3D12Debug3 {} -unsafe impl ::windows_core::Interface for ID3D12Debug3 { - type Vtable = ID3D12Debug3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12Debug3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5cf4e58f_f671_4ff1_a542_3686e3d153d1); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12Debug3_Vtbl { @@ -430,9 +366,8 @@ pub struct ID3D12Debug3_Vtbl { pub SetEnableSynchronizedCommandQueueValidation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enable: super::super::Foundation::BOOL), pub SetGPUBasedValidationFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: D3D12_GPU_BASED_VALIDATION_FLAGS), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12Debug4(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12Debug4, ID3D12Debug4_Vtbl, 0x014b816e_9ec5_4a2f_a845_ffbe441ce13a); +::windows_core::imp::interface_hierarchy!(ID3D12Debug4, ::windows_core::IUnknown, ID3D12Debug, ID3D12Debug3); impl ID3D12Debug4 { pub unsafe fn EnableDebugLayer(&self) { (::windows_core::Interface::vtable(self).base__.base__.EnableDebugLayer)(::windows_core::Interface::as_raw(self)) @@ -456,24 +391,16 @@ impl ID3D12Debug4 { (::windows_core::Interface::vtable(self).DisableDebugLayer)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(ID3D12Debug4, ::windows_core::IUnknown, ID3D12Debug, ID3D12Debug3); unsafe impl ::core::marker::Send for ID3D12Debug4 {} unsafe impl ::core::marker::Sync for ID3D12Debug4 {} -unsafe impl ::windows_core::Interface for ID3D12Debug4 { - type Vtable = ID3D12Debug4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12Debug4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x014b816e_9ec5_4a2f_a845_ffbe441ce13a); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12Debug4_Vtbl { pub base__: ID3D12Debug3_Vtbl, pub DisableDebugLayer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12Debug5(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12Debug5, ID3D12Debug5_Vtbl, 0x548d6b12_09fa_40e0_9069_5dcd589a52c9); +::windows_core::imp::interface_hierarchy!(ID3D12Debug5, ::windows_core::IUnknown, ID3D12Debug, ID3D12Debug3, ID3D12Debug4); impl ID3D12Debug5 { pub unsafe fn EnableDebugLayer(&self) { (::windows_core::Interface::vtable(self).base__.base__.base__.EnableDebugLayer)(::windows_core::Interface::as_raw(self)) @@ -503,24 +430,16 @@ impl ID3D12Debug5 { (::windows_core::Interface::vtable(self).SetEnableAutoName)(::windows_core::Interface::as_raw(self), enable.into_param().abi()) } } -::windows_core::imp::interface_hierarchy!(ID3D12Debug5, ::windows_core::IUnknown, ID3D12Debug, ID3D12Debug3, ID3D12Debug4); unsafe impl ::core::marker::Send for ID3D12Debug5 {} unsafe impl ::core::marker::Sync for ID3D12Debug5 {} -unsafe impl ::windows_core::Interface for ID3D12Debug5 { - type Vtable = ID3D12Debug5_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12Debug5 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x548d6b12_09fa_40e0_9069_5dcd589a52c9); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12Debug5_Vtbl { pub base__: ID3D12Debug4_Vtbl, pub SetEnableAutoName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enable: super::super::Foundation::BOOL), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12Debug6(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12Debug6, ID3D12Debug6_Vtbl, 0x82a816d6_5d01_4157_97d0_4975463fd1ed); +::windows_core::imp::interface_hierarchy!(ID3D12Debug6, ::windows_core::IUnknown, ID3D12Debug, ID3D12Debug3, ID3D12Debug4, ID3D12Debug5); impl ID3D12Debug6 { pub unsafe fn EnableDebugLayer(&self) { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.EnableDebugLayer)(::windows_core::Interface::as_raw(self)) @@ -556,24 +475,16 @@ impl ID3D12Debug6 { (::windows_core::Interface::vtable(self).SetForceLegacyBarrierValidation)(::windows_core::Interface::as_raw(self), enable.into_param().abi()) } } -::windows_core::imp::interface_hierarchy!(ID3D12Debug6, ::windows_core::IUnknown, ID3D12Debug, ID3D12Debug3, ID3D12Debug4, ID3D12Debug5); unsafe impl ::core::marker::Send for ID3D12Debug6 {} unsafe impl ::core::marker::Sync for ID3D12Debug6 {} -unsafe impl ::windows_core::Interface for ID3D12Debug6 { - type Vtable = ID3D12Debug6_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12Debug6 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x82a816d6_5d01_4157_97d0_4975463fd1ed); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12Debug6_Vtbl { pub base__: ID3D12Debug5_Vtbl, pub SetForceLegacyBarrierValidation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enable: super::super::Foundation::BOOL), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12DebugCommandList(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12DebugCommandList, ID3D12DebugCommandList_Vtbl, 0x09e0bf36_54ac_484f_8847_4baeeab6053f); +::windows_core::imp::interface_hierarchy!(ID3D12DebugCommandList, ::windows_core::IUnknown); impl ID3D12DebugCommandList { pub unsafe fn AssertResourceState(&self, presource: P0, subresource: u32, state: u32) -> super::super::Foundation::BOOL where @@ -588,15 +499,8 @@ impl ID3D12DebugCommandList { (::windows_core::Interface::vtable(self).GetFeatureMask)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(ID3D12DebugCommandList, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID3D12DebugCommandList {} unsafe impl ::core::marker::Sync for ID3D12DebugCommandList {} -unsafe impl ::windows_core::Interface for ID3D12DebugCommandList { - type Vtable = ID3D12DebugCommandList_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12DebugCommandList { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x09e0bf36_54ac_484f_8847_4baeeab6053f); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12DebugCommandList_Vtbl { @@ -605,9 +509,8 @@ pub struct ID3D12DebugCommandList_Vtbl { pub SetFeatureMask: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mask: D3D12_DEBUG_FEATURE) -> ::windows_core::HRESULT, pub GetFeatureMask: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> D3D12_DEBUG_FEATURE, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12DebugCommandList1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12DebugCommandList1, ID3D12DebugCommandList1_Vtbl, 0x102ca951_311b_4b01_b11f_ecb83e061b37); +::windows_core::imp::interface_hierarchy!(ID3D12DebugCommandList1, ::windows_core::IUnknown); impl ID3D12DebugCommandList1 { pub unsafe fn AssertResourceState(&self, presource: P0, subresource: u32, state: u32) -> super::super::Foundation::BOOL where @@ -622,15 +525,8 @@ impl ID3D12DebugCommandList1 { (::windows_core::Interface::vtable(self).GetDebugParameter)(::windows_core::Interface::as_raw(self), r#type, pdata, datasize).ok() } } -::windows_core::imp::interface_hierarchy!(ID3D12DebugCommandList1, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID3D12DebugCommandList1 {} unsafe impl ::core::marker::Sync for ID3D12DebugCommandList1 {} -unsafe impl ::windows_core::Interface for ID3D12DebugCommandList1 { - type Vtable = ID3D12DebugCommandList1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12DebugCommandList1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x102ca951_311b_4b01_b11f_ecb83e061b37); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12DebugCommandList1_Vtbl { @@ -639,9 +535,8 @@ pub struct ID3D12DebugCommandList1_Vtbl { pub SetDebugParameter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: D3D12_DEBUG_COMMAND_LIST_PARAMETER_TYPE, pdata: *const ::core::ffi::c_void, datasize: u32) -> ::windows_core::HRESULT, pub GetDebugParameter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: D3D12_DEBUG_COMMAND_LIST_PARAMETER_TYPE, pdata: *mut ::core::ffi::c_void, datasize: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12DebugCommandList2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12DebugCommandList2, ID3D12DebugCommandList2_Vtbl, 0xaeb575cf_4e06_48be_ba3b_c450fc96652e); +::windows_core::imp::interface_hierarchy!(ID3D12DebugCommandList2, ::windows_core::IUnknown, ID3D12DebugCommandList); impl ID3D12DebugCommandList2 { pub unsafe fn AssertResourceState(&self, presource: P0, subresource: u32, state: u32) -> super::super::Foundation::BOOL where @@ -662,15 +557,8 @@ impl ID3D12DebugCommandList2 { (::windows_core::Interface::vtable(self).GetDebugParameter)(::windows_core::Interface::as_raw(self), r#type, pdata, datasize).ok() } } -::windows_core::imp::interface_hierarchy!(ID3D12DebugCommandList2, ::windows_core::IUnknown, ID3D12DebugCommandList); unsafe impl ::core::marker::Send for ID3D12DebugCommandList2 {} unsafe impl ::core::marker::Sync for ID3D12DebugCommandList2 {} -unsafe impl ::windows_core::Interface for ID3D12DebugCommandList2 { - type Vtable = ID3D12DebugCommandList2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12DebugCommandList2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaeb575cf_4e06_48be_ba3b_c450fc96652e); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12DebugCommandList2_Vtbl { @@ -678,9 +566,8 @@ pub struct ID3D12DebugCommandList2_Vtbl { pub SetDebugParameter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: D3D12_DEBUG_COMMAND_LIST_PARAMETER_TYPE, pdata: *const ::core::ffi::c_void, datasize: u32) -> ::windows_core::HRESULT, pub GetDebugParameter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: D3D12_DEBUG_COMMAND_LIST_PARAMETER_TYPE, pdata: *mut ::core::ffi::c_void, datasize: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12DebugCommandList3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12DebugCommandList3, ID3D12DebugCommandList3_Vtbl, 0x197d5e15_4d37_4d34_af78_724cd70fdb1f); +::windows_core::imp::interface_hierarchy!(ID3D12DebugCommandList3, ::windows_core::IUnknown, ID3D12DebugCommandList, ID3D12DebugCommandList2); impl ID3D12DebugCommandList3 { pub unsafe fn AssertResourceState(&self, presource: P0, subresource: u32, state: u32) -> super::super::Foundation::BOOL where @@ -713,15 +600,8 @@ impl ID3D12DebugCommandList3 { (::windows_core::Interface::vtable(self).AssertTextureLayout)(::windows_core::Interface::as_raw(self), presource.into_param().abi(), subresource, layout) } } -::windows_core::imp::interface_hierarchy!(ID3D12DebugCommandList3, ::windows_core::IUnknown, ID3D12DebugCommandList, ID3D12DebugCommandList2); unsafe impl ::core::marker::Send for ID3D12DebugCommandList3 {} unsafe impl ::core::marker::Sync for ID3D12DebugCommandList3 {} -unsafe impl ::windows_core::Interface for ID3D12DebugCommandList3 { - type Vtable = ID3D12DebugCommandList3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12DebugCommandList3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x197d5e15_4d37_4d34_af78_724cd70fdb1f); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12DebugCommandList3_Vtbl { @@ -729,9 +609,8 @@ pub struct ID3D12DebugCommandList3_Vtbl { pub AssertResourceAccess: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, presource: *mut ::core::ffi::c_void, subresource: u32, access: D3D12_BARRIER_ACCESS), pub AssertTextureLayout: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, presource: *mut ::core::ffi::c_void, subresource: u32, layout: D3D12_BARRIER_LAYOUT), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12DebugCommandQueue(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12DebugCommandQueue, ID3D12DebugCommandQueue_Vtbl, 0x09e0bf36_54ac_484f_8847_4baeeab6053a); +::windows_core::imp::interface_hierarchy!(ID3D12DebugCommandQueue, ::windows_core::IUnknown); impl ID3D12DebugCommandQueue { pub unsafe fn AssertResourceState(&self, presource: P0, subresource: u32, state: u32) -> super::super::Foundation::BOOL where @@ -740,24 +619,16 @@ impl ID3D12DebugCommandQueue { (::windows_core::Interface::vtable(self).AssertResourceState)(::windows_core::Interface::as_raw(self), presource.into_param().abi(), subresource, state) } } -::windows_core::imp::interface_hierarchy!(ID3D12DebugCommandQueue, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID3D12DebugCommandQueue {} unsafe impl ::core::marker::Sync for ID3D12DebugCommandQueue {} -unsafe impl ::windows_core::Interface for ID3D12DebugCommandQueue { - type Vtable = ID3D12DebugCommandQueue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12DebugCommandQueue { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x09e0bf36_54ac_484f_8847_4baeeab6053a); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12DebugCommandQueue_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub AssertResourceState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, presource: *mut ::core::ffi::c_void, subresource: u32, state: u32) -> super::super::Foundation::BOOL, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12DebugCommandQueue1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12DebugCommandQueue1, ID3D12DebugCommandQueue1_Vtbl, 0x16be35a2_bfd6_49f2_bcae_eaae4aff862d); +::windows_core::imp::interface_hierarchy!(ID3D12DebugCommandQueue1, ::windows_core::IUnknown, ID3D12DebugCommandQueue); impl ID3D12DebugCommandQueue1 { pub unsafe fn AssertResourceState(&self, presource: P0, subresource: u32, state: u32) -> super::super::Foundation::BOOL where @@ -778,15 +649,8 @@ impl ID3D12DebugCommandQueue1 { (::windows_core::Interface::vtable(self).AssertTextureLayout)(::windows_core::Interface::as_raw(self), presource.into_param().abi(), subresource, layout) } } -::windows_core::imp::interface_hierarchy!(ID3D12DebugCommandQueue1, ::windows_core::IUnknown, ID3D12DebugCommandQueue); unsafe impl ::core::marker::Send for ID3D12DebugCommandQueue1 {} unsafe impl ::core::marker::Sync for ID3D12DebugCommandQueue1 {} -unsafe impl ::windows_core::Interface for ID3D12DebugCommandQueue1 { - type Vtable = ID3D12DebugCommandQueue1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12DebugCommandQueue1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x16be35a2_bfd6_49f2_bcae_eaae4aff862d); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12DebugCommandQueue1_Vtbl { @@ -794,9 +658,8 @@ pub struct ID3D12DebugCommandQueue1_Vtbl { pub AssertResourceAccess: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, presource: *mut ::core::ffi::c_void, subresource: u32, access: D3D12_BARRIER_ACCESS), pub AssertTextureLayout: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, presource: *mut ::core::ffi::c_void, subresource: u32, layout: D3D12_BARRIER_LAYOUT), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12DebugDevice(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12DebugDevice, ID3D12DebugDevice_Vtbl, 0x3febd6dd_4973_4787_8194_e45f9e28923e); +::windows_core::imp::interface_hierarchy!(ID3D12DebugDevice, ::windows_core::IUnknown); impl ID3D12DebugDevice { pub unsafe fn SetFeatureMask(&self, mask: D3D12_DEBUG_FEATURE) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetFeatureMask)(::windows_core::Interface::as_raw(self), mask).ok() @@ -808,15 +671,8 @@ impl ID3D12DebugDevice { (::windows_core::Interface::vtable(self).ReportLiveDeviceObjects)(::windows_core::Interface::as_raw(self), flags).ok() } } -::windows_core::imp::interface_hierarchy!(ID3D12DebugDevice, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID3D12DebugDevice {} unsafe impl ::core::marker::Sync for ID3D12DebugDevice {} -unsafe impl ::windows_core::Interface for ID3D12DebugDevice { - type Vtable = ID3D12DebugDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12DebugDevice { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3febd6dd_4973_4787_8194_e45f9e28923e); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12DebugDevice_Vtbl { @@ -825,9 +681,8 @@ pub struct ID3D12DebugDevice_Vtbl { pub GetFeatureMask: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> D3D12_DEBUG_FEATURE, pub ReportLiveDeviceObjects: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: D3D12_RLDO_FLAGS) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12DebugDevice1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12DebugDevice1, ID3D12DebugDevice1_Vtbl, 0xa9b71770_d099_4a65_a698_3dee10020f88); +::windows_core::imp::interface_hierarchy!(ID3D12DebugDevice1, ::windows_core::IUnknown); impl ID3D12DebugDevice1 { pub unsafe fn SetDebugParameter(&self, r#type: D3D12_DEBUG_DEVICE_PARAMETER_TYPE, pdata: *const ::core::ffi::c_void, datasize: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetDebugParameter)(::windows_core::Interface::as_raw(self), r#type, pdata, datasize).ok() @@ -839,15 +694,8 @@ impl ID3D12DebugDevice1 { (::windows_core::Interface::vtable(self).ReportLiveDeviceObjects)(::windows_core::Interface::as_raw(self), flags).ok() } } -::windows_core::imp::interface_hierarchy!(ID3D12DebugDevice1, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID3D12DebugDevice1 {} unsafe impl ::core::marker::Sync for ID3D12DebugDevice1 {} -unsafe impl ::windows_core::Interface for ID3D12DebugDevice1 { - type Vtable = ID3D12DebugDevice1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12DebugDevice1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa9b71770_d099_4a65_a698_3dee10020f88); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12DebugDevice1_Vtbl { @@ -856,9 +704,8 @@ pub struct ID3D12DebugDevice1_Vtbl { pub GetDebugParameter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: D3D12_DEBUG_DEVICE_PARAMETER_TYPE, pdata: *mut ::core::ffi::c_void, datasize: u32) -> ::windows_core::HRESULT, pub ReportLiveDeviceObjects: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: D3D12_RLDO_FLAGS) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12DebugDevice2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12DebugDevice2, ID3D12DebugDevice2_Vtbl, 0x60eccbc1_378d_4df1_894c_f8ac5ce4d7dd); +::windows_core::imp::interface_hierarchy!(ID3D12DebugDevice2, ::windows_core::IUnknown, ID3D12DebugDevice); impl ID3D12DebugDevice2 { 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() @@ -876,15 +723,8 @@ impl ID3D12DebugDevice2 { (::windows_core::Interface::vtable(self).GetDebugParameter)(::windows_core::Interface::as_raw(self), r#type, pdata, datasize).ok() } } -::windows_core::imp::interface_hierarchy!(ID3D12DebugDevice2, ::windows_core::IUnknown, ID3D12DebugDevice); unsafe impl ::core::marker::Send for ID3D12DebugDevice2 {} unsafe impl ::core::marker::Sync for ID3D12DebugDevice2 {} -unsafe impl ::windows_core::Interface for ID3D12DebugDevice2 { - type Vtable = ID3D12DebugDevice2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12DebugDevice2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x60eccbc1_378d_4df1_894c_f8ac5ce4d7dd); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12DebugDevice2_Vtbl { @@ -892,9 +732,8 @@ pub struct ID3D12DebugDevice2_Vtbl { pub SetDebugParameter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: D3D12_DEBUG_DEVICE_PARAMETER_TYPE, pdata: *const ::core::ffi::c_void, datasize: u32) -> ::windows_core::HRESULT, pub GetDebugParameter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: D3D12_DEBUG_DEVICE_PARAMETER_TYPE, pdata: *mut ::core::ffi::c_void, datasize: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12DescriptorHeap(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12DescriptorHeap, ID3D12DescriptorHeap_Vtbl, 0x8efb471d_616c_4f49_90f7_127bb763fa51); +::windows_core::imp::interface_hierarchy!(ID3D12DescriptorHeap, ::windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild, ID3D12Pageable); impl ID3D12DescriptorHeap { pub unsafe fn GetPrivateData(&self, guid: *const ::windows_core::GUID, pdatasize: *mut u32, pdata: ::core::option::Option<*mut ::core::ffi::c_void>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.GetPrivateData)(::windows_core::Interface::as_raw(self), guid, pdatasize, ::core::mem::transmute(pdata.unwrap_or(::std::ptr::null_mut()))).ok() @@ -916,7 +755,7 @@ impl ID3D12DescriptorHeap { } pub unsafe fn GetDevice(&self, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _).ok() } @@ -936,15 +775,8 @@ impl ID3D12DescriptorHeap { result__ } } -::windows_core::imp::interface_hierarchy!(ID3D12DescriptorHeap, ::windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild, ID3D12Pageable); unsafe impl ::core::marker::Send for ID3D12DescriptorHeap {} unsafe impl ::core::marker::Sync for ID3D12DescriptorHeap {} -unsafe impl ::windows_core::Interface for ID3D12DescriptorHeap { - type Vtable = ID3D12DescriptorHeap_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12DescriptorHeap { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8efb471d_616c_4f49_90f7_127bb763fa51); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12DescriptorHeap_Vtbl { @@ -953,9 +785,8 @@ pub struct ID3D12DescriptorHeap_Vtbl { pub GetCPUDescriptorHandleForHeapStart: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut D3D12_CPU_DESCRIPTOR_HANDLE), pub GetGPUDescriptorHandleForHeapStart: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut D3D12_GPU_DESCRIPTOR_HANDLE), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12Device(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12Device, ID3D12Device_Vtbl, 0x189819f1_1db6_4b57_be54_1821339b85f7); +::windows_core::imp::interface_hierarchy!(ID3D12Device, ::windows_core::IUnknown, ID3D12Object); impl ID3D12Device { pub unsafe fn GetPrivateData(&self, guid: *const ::windows_core::GUID, pdatasize: *mut u32, pdata: ::core::option::Option<*mut ::core::ffi::c_void>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.GetPrivateData)(::windows_core::Interface::as_raw(self), guid, pdatasize, ::core::mem::transmute(pdata.unwrap_or(::std::ptr::null_mut()))).ok() @@ -980,14 +811,14 @@ impl ID3D12Device { } pub unsafe fn CreateCommandQueue(&self, pdesc: *const D3D12_COMMAND_QUEUE_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).CreateCommandQueue)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) } pub unsafe fn CreateCommandAllocator(&self, r#type: D3D12_COMMAND_LIST_TYPE) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).CreateCommandAllocator)(::windows_core::Interface::as_raw(self), r#type, &T::IID, &mut result__).from_abi(result__) @@ -996,14 +827,14 @@ impl ID3D12Device { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateGraphicsPipelineState(&self, pdesc: *const D3D12_GRAPHICS_PIPELINE_STATE_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).CreateGraphicsPipelineState)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) } pub unsafe fn CreateComputePipelineState(&self, pdesc: *const D3D12_COMPUTE_PIPELINE_STATE_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).CreateComputePipelineState)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) @@ -1012,7 +843,7 @@ impl ID3D12Device { where P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -1022,7 +853,7 @@ impl ID3D12Device { } pub unsafe fn CreateDescriptorHeap(&self, pdescriptorheapdesc: *const D3D12_DESCRIPTOR_HEAP_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).CreateDescriptorHeap)(::windows_core::Interface::as_raw(self), pdescriptorheapdesc, &T::IID, &mut result__).from_abi(result__) @@ -1032,7 +863,7 @@ impl ID3D12Device { } pub unsafe fn CreateRootSignature(&self, nodemask: u32, pblobwithrootsignature: &[u8]) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).CreateRootSignature)(::windows_core::Interface::as_raw(self), nodemask, ::core::mem::transmute(pblobwithrootsignature.as_ptr()), pblobwithrootsignature.len().try_into().unwrap(), &T::IID, &mut result__).from_abi(result__) @@ -1098,13 +929,13 @@ impl ID3D12Device { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateCommittedResource(&self, pheapproperties: *const D3D12_HEAP_PROPERTIES, heapflags: D3D12_HEAP_FLAGS, pdesc: *const D3D12_RESOURCE_DESC, initialresourcestate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).CreateCommittedResource)(::windows_core::Interface::as_raw(self), pheapproperties, heapflags, pdesc, initialresourcestate, ::core::mem::transmute(poptimizedclearvalue.unwrap_or(::std::ptr::null())), &T::IID, result__ as *mut _ as *mut _).ok() } pub unsafe fn CreateHeap(&self, pdesc: *const D3D12_HEAP_DESC, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).CreateHeap)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, result__ as *mut _ as *mut _).ok() } @@ -1113,7 +944,7 @@ impl ID3D12Device { pub unsafe fn CreatePlacedResource(&self, pheap: P0, heapoffset: u64, pdesc: *const D3D12_RESOURCE_DESC, initialstate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -1121,7 +952,7 @@ impl ID3D12Device { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateReservedResource(&self, pdesc: *const D3D12_RESOURCE_DESC, initialstate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).CreateReservedResource)(::windows_core::Interface::as_raw(self), pdesc, initialstate, ::core::mem::transmute(poptimizedclearvalue.unwrap_or(::std::ptr::null())), &T::IID, result__ as *mut _ as *mut _).ok() } @@ -1138,7 +969,7 @@ impl ID3D12Device { pub unsafe fn OpenSharedHandle(&self, nthandle: P0, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -1157,7 +988,7 @@ impl ID3D12Device { } pub unsafe fn CreateFence(&self, initialvalue: u64, flags: D3D12_FENCE_FLAGS) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).CreateFence)(::windows_core::Interface::as_raw(self), initialvalue, flags, &T::IID, &mut result__).from_abi(result__) @@ -1172,7 +1003,7 @@ impl ID3D12Device { } pub unsafe fn CreateQueryHeap(&self, pdesc: *const D3D12_QUERY_HEAP_DESC, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).CreateQueryHeap)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, result__ as *mut _ as *mut _).ok() } @@ -1185,7 +1016,7 @@ impl ID3D12Device { pub unsafe fn CreateCommandSignature(&self, pdesc: *const D3D12_COMMAND_SIGNATURE_DESC, prootsignature: P0, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -1201,15 +1032,8 @@ impl ID3D12Device { result__ } } -::windows_core::imp::interface_hierarchy!(ID3D12Device, ::windows_core::IUnknown, ID3D12Object); unsafe impl ::core::marker::Send for ID3D12Device {} unsafe impl ::core::marker::Sync for ID3D12Device {} -unsafe impl ::windows_core::Interface for ID3D12Device { - type Vtable = ID3D12Device_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12Device { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x189819f1_1db6_4b57_be54_1821339b85f7); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12Device_Vtbl { @@ -1285,9 +1109,8 @@ pub struct ID3D12Device_Vtbl { pub GetResourceTiling: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptiledresource: *mut ::core::ffi::c_void, pnumtilesforentireresource: *mut u32, ppackedmipdesc: *mut D3D12_PACKED_MIP_INFO, pstandardtileshapefornonpackedmips: *mut D3D12_TILE_SHAPE, pnumsubresourcetilings: *mut u32, firstsubresourcetilingtoget: u32, psubresourcetilingsfornonpackedmips: *mut D3D12_SUBRESOURCE_TILING), pub GetAdapterLuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::LUID), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12Device1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12Device1, ID3D12Device1_Vtbl, 0x77acce80_638e_4e65_8895_c1f23386863e); +::windows_core::imp::interface_hierarchy!(ID3D12Device1, ::windows_core::IUnknown, ID3D12Object, ID3D12Device); impl ID3D12Device1 { pub unsafe fn GetPrivateData(&self, guid: *const ::windows_core::GUID, pdatasize: *mut u32, pdata: ::core::option::Option<*mut ::core::ffi::c_void>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.GetPrivateData)(::windows_core::Interface::as_raw(self), guid, pdatasize, ::core::mem::transmute(pdata.unwrap_or(::std::ptr::null_mut()))).ok() @@ -1312,14 +1135,14 @@ impl ID3D12Device1 { } pub unsafe fn CreateCommandQueue(&self, pdesc: *const D3D12_COMMAND_QUEUE_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.CreateCommandQueue)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) } pub unsafe fn CreateCommandAllocator(&self, r#type: D3D12_COMMAND_LIST_TYPE) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.CreateCommandAllocator)(::windows_core::Interface::as_raw(self), r#type, &T::IID, &mut result__).from_abi(result__) @@ -1328,14 +1151,14 @@ impl ID3D12Device1 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateGraphicsPipelineState(&self, pdesc: *const D3D12_GRAPHICS_PIPELINE_STATE_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.CreateGraphicsPipelineState)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) } pub unsafe fn CreateComputePipelineState(&self, pdesc: *const D3D12_COMPUTE_PIPELINE_STATE_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.CreateComputePipelineState)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) @@ -1344,7 +1167,7 @@ impl ID3D12Device1 { where P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -1354,7 +1177,7 @@ impl ID3D12Device1 { } pub unsafe fn CreateDescriptorHeap(&self, pdescriptorheapdesc: *const D3D12_DESCRIPTOR_HEAP_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.CreateDescriptorHeap)(::windows_core::Interface::as_raw(self), pdescriptorheapdesc, &T::IID, &mut result__).from_abi(result__) @@ -1364,7 +1187,7 @@ impl ID3D12Device1 { } pub unsafe fn CreateRootSignature(&self, nodemask: u32, pblobwithrootsignature: &[u8]) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.CreateRootSignature)(::windows_core::Interface::as_raw(self), nodemask, ::core::mem::transmute(pblobwithrootsignature.as_ptr()), pblobwithrootsignature.len().try_into().unwrap(), &T::IID, &mut result__).from_abi(result__) @@ -1430,13 +1253,13 @@ impl ID3D12Device1 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateCommittedResource(&self, pheapproperties: *const D3D12_HEAP_PROPERTIES, heapflags: D3D12_HEAP_FLAGS, pdesc: *const D3D12_RESOURCE_DESC, initialresourcestate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.CreateCommittedResource)(::windows_core::Interface::as_raw(self), pheapproperties, heapflags, pdesc, initialresourcestate, ::core::mem::transmute(poptimizedclearvalue.unwrap_or(::std::ptr::null())), &T::IID, result__ as *mut _ as *mut _).ok() } pub unsafe fn CreateHeap(&self, pdesc: *const D3D12_HEAP_DESC, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.CreateHeap)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, result__ as *mut _ as *mut _).ok() } @@ -1445,7 +1268,7 @@ impl ID3D12Device1 { pub unsafe fn CreatePlacedResource(&self, pheap: P0, heapoffset: u64, pdesc: *const D3D12_RESOURCE_DESC, initialstate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -1453,7 +1276,7 @@ impl ID3D12Device1 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateReservedResource(&self, pdesc: *const D3D12_RESOURCE_DESC, initialstate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.CreateReservedResource)(::windows_core::Interface::as_raw(self), pdesc, initialstate, ::core::mem::transmute(poptimizedclearvalue.unwrap_or(::std::ptr::null())), &T::IID, result__ as *mut _ as *mut _).ok() } @@ -1470,7 +1293,7 @@ impl ID3D12Device1 { pub unsafe fn OpenSharedHandle(&self, nthandle: P0, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -1489,7 +1312,7 @@ impl ID3D12Device1 { } pub unsafe fn CreateFence(&self, initialvalue: u64, flags: D3D12_FENCE_FLAGS) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.CreateFence)(::windows_core::Interface::as_raw(self), initialvalue, flags, &T::IID, &mut result__).from_abi(result__) @@ -1504,7 +1327,7 @@ impl ID3D12Device1 { } pub unsafe fn CreateQueryHeap(&self, pdesc: *const D3D12_QUERY_HEAP_DESC, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.CreateQueryHeap)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, result__ as *mut _ as *mut _).ok() } @@ -1517,7 +1340,7 @@ impl ID3D12Device1 { pub unsafe fn CreateCommandSignature(&self, pdesc: *const D3D12_COMMAND_SIGNATURE_DESC, prootsignature: P0, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -1534,7 +1357,7 @@ impl ID3D12Device1 { } pub unsafe fn CreatePipelineLibrary(&self, plibraryblob: &[u8]) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).CreatePipelineLibrary)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(plibraryblob.as_ptr()), plibraryblob.len().try_into().unwrap(), &T::IID, &mut result__).from_abi(result__) @@ -1549,15 +1372,8 @@ impl ID3D12Device1 { (::windows_core::Interface::vtable(self).SetResidencyPriority)(::windows_core::Interface::as_raw(self), numobjects, ::core::mem::transmute(ppobjects), ppriorities).ok() } } -::windows_core::imp::interface_hierarchy!(ID3D12Device1, ::windows_core::IUnknown, ID3D12Object, ID3D12Device); unsafe impl ::core::marker::Send for ID3D12Device1 {} unsafe impl ::core::marker::Sync for ID3D12Device1 {} -unsafe impl ::windows_core::Interface for ID3D12Device1 { - type Vtable = ID3D12Device1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12Device1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x77acce80_638e_4e65_8895_c1f23386863e); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12Device1_Vtbl { @@ -1566,9 +1382,8 @@ pub struct ID3D12Device1_Vtbl { pub SetEventOnMultipleFenceCompletion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppfences: *const *mut ::core::ffi::c_void, pfencevalues: *const u64, numfences: u32, flags: D3D12_MULTIPLE_FENCE_WAIT_FLAGS, hevent: super::super::Foundation::HANDLE) -> ::windows_core::HRESULT, pub SetResidencyPriority: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, numobjects: u32, ppobjects: *const *mut ::core::ffi::c_void, ppriorities: *const D3D12_RESIDENCY_PRIORITY) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12Device10(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12Device10, ID3D12Device10_Vtbl, 0x517f8718_aa66_49f9_b02b_a7ab89c06031); +::windows_core::imp::interface_hierarchy!(ID3D12Device10, ::windows_core::IUnknown, ID3D12Object, ID3D12Device, ID3D12Device1, ID3D12Device2, ID3D12Device3, ID3D12Device4, ID3D12Device5, ID3D12Device6, ID3D12Device7, ID3D12Device8, ID3D12Device9); impl ID3D12Device10 { pub unsafe fn GetPrivateData(&self, guid: *const ::windows_core::GUID, pdatasize: *mut u32, pdata: ::core::option::Option<*mut ::core::ffi::c_void>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.GetPrivateData)(::windows_core::Interface::as_raw(self), guid, pdatasize, ::core::mem::transmute(pdata.unwrap_or(::std::ptr::null_mut()))).ok() @@ -1593,14 +1408,14 @@ impl ID3D12Device10 { } pub unsafe fn CreateCommandQueue(&self, pdesc: *const D3D12_COMMAND_QUEUE_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + 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__.CreateCommandQueue)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) } pub unsafe fn CreateCommandAllocator(&self, r#type: D3D12_COMMAND_LIST_TYPE) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + 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__.CreateCommandAllocator)(::windows_core::Interface::as_raw(self), r#type, &T::IID, &mut result__).from_abi(result__) @@ -1609,14 +1424,14 @@ impl ID3D12Device10 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateGraphicsPipelineState(&self, pdesc: *const D3D12_GRAPHICS_PIPELINE_STATE_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + 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__.CreateGraphicsPipelineState)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) } pub unsafe fn CreateComputePipelineState(&self, pdesc: *const D3D12_COMPUTE_PIPELINE_STATE_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + 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__.CreateComputePipelineState)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) @@ -1625,7 +1440,7 @@ impl ID3D12Device10 { where P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -1635,7 +1450,7 @@ impl ID3D12Device10 { } pub unsafe fn CreateDescriptorHeap(&self, pdescriptorheapdesc: *const D3D12_DESCRIPTOR_HEAP_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + 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__.CreateDescriptorHeap)(::windows_core::Interface::as_raw(self), pdescriptorheapdesc, &T::IID, &mut result__).from_abi(result__) @@ -1645,7 +1460,7 @@ impl ID3D12Device10 { } pub unsafe fn CreateRootSignature(&self, nodemask: u32, pblobwithrootsignature: &[u8]) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + 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__.CreateRootSignature)(::windows_core::Interface::as_raw(self), nodemask, ::core::mem::transmute(pblobwithrootsignature.as_ptr()), pblobwithrootsignature.len().try_into().unwrap(), &T::IID, &mut result__).from_abi(result__) @@ -1711,13 +1526,13 @@ impl ID3D12Device10 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateCommittedResource(&self, pheapproperties: *const D3D12_HEAP_PROPERTIES, heapflags: D3D12_HEAP_FLAGS, pdesc: *const D3D12_RESOURCE_DESC, initialresourcestate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateCommittedResource)(::windows_core::Interface::as_raw(self), pheapproperties, heapflags, pdesc, initialresourcestate, ::core::mem::transmute(poptimizedclearvalue.unwrap_or(::std::ptr::null())), &T::IID, result__ as *mut _ as *mut _).ok() } pub unsafe fn CreateHeap(&self, pdesc: *const D3D12_HEAP_DESC, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateHeap)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, result__ as *mut _ as *mut _).ok() } @@ -1726,7 +1541,7 @@ impl ID3D12Device10 { pub unsafe fn CreatePlacedResource(&self, pheap: P0, heapoffset: u64, pdesc: *const D3D12_RESOURCE_DESC, initialstate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -1734,7 +1549,7 @@ impl ID3D12Device10 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateReservedResource(&self, pdesc: *const D3D12_RESOURCE_DESC, initialstate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateReservedResource)(::windows_core::Interface::as_raw(self), pdesc, initialstate, ::core::mem::transmute(poptimizedclearvalue.unwrap_or(::std::ptr::null())), &T::IID, result__ as *mut _ as *mut _).ok() } @@ -1751,7 +1566,7 @@ impl ID3D12Device10 { pub unsafe fn OpenSharedHandle(&self, nthandle: P0, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -1770,7 +1585,7 @@ impl ID3D12Device10 { } pub unsafe fn CreateFence(&self, initialvalue: u64, flags: D3D12_FENCE_FLAGS) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + 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__.CreateFence)(::windows_core::Interface::as_raw(self), initialvalue, flags, &T::IID, &mut result__).from_abi(result__) @@ -1785,7 +1600,7 @@ impl ID3D12Device10 { } pub unsafe fn CreateQueryHeap(&self, pdesc: *const D3D12_QUERY_HEAP_DESC, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateQueryHeap)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, result__ as *mut _ as *mut _).ok() } @@ -1798,7 +1613,7 @@ impl ID3D12Device10 { pub unsafe fn CreateCommandSignature(&self, pdesc: *const D3D12_COMMAND_SIGNATURE_DESC, prootsignature: P0, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -1815,7 +1630,7 @@ impl ID3D12Device10 { } pub unsafe fn CreatePipelineLibrary(&self, plibraryblob: &[u8]) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + 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__.CreatePipelineLibrary)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(plibraryblob.as_ptr()), plibraryblob.len().try_into().unwrap(), &T::IID, &mut result__).from_abi(result__) @@ -1831,14 +1646,14 @@ impl ID3D12Device10 { } pub unsafe fn CreatePipelineState(&self, pdesc: *const D3D12_PIPELINE_STATE_STREAM_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CreatePipelineState)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) } pub unsafe fn OpenExistingHeapFromAddress(&self, paddress: *const ::core::ffi::c_void) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.OpenExistingHeapFromAddress)(::windows_core::Interface::as_raw(self), paddress, &T::IID, &mut result__).from_abi(result__) @@ -1846,7 +1661,7 @@ impl ID3D12Device10 { pub unsafe fn OpenExistingHeapFromFileMapping(&self, hfilemapping: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -1859,14 +1674,14 @@ impl ID3D12Device10 { } pub unsafe fn CreateCommandList1(&self, nodemask: u32, r#type: D3D12_COMMAND_LIST_TYPE, flags: D3D12_COMMAND_LIST_FLAGS) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateCommandList1)(::windows_core::Interface::as_raw(self), nodemask, r#type, flags, &T::IID, &mut result__).from_abi(result__) } pub unsafe fn CreateProtectedResourceSession(&self, pdesc: *const D3D12_PROTECTED_RESOURCE_SESSION_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateProtectedResourceSession)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) @@ -1876,14 +1691,14 @@ impl ID3D12Device10 { pub unsafe fn CreateCommittedResource1(&self, pheapproperties: *const D3D12_HEAP_PROPERTIES, heapflags: D3D12_HEAP_FLAGS, pdesc: *const D3D12_RESOURCE_DESC, initialresourcestate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, pprotectedsession: P0, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } pub unsafe fn CreateHeap1(&self, pdesc: *const D3D12_HEAP_DESC, pprotectedsession: P0, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -1892,7 +1707,7 @@ impl ID3D12Device10 { pub unsafe fn CreateReservedResource1(&self, pdesc: *const D3D12_RESOURCE_DESC, initialstate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, pprotectedsession: P0, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -1906,7 +1721,7 @@ impl ID3D12Device10 { pub unsafe fn CreateLifetimeTracker(&self, powner: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -1922,14 +1737,14 @@ impl ID3D12Device10 { } pub unsafe fn CreateMetaCommand(&self, commandid: *const ::windows_core::GUID, nodemask: u32, pcreationparametersdata: ::core::option::Option<*const ::core::ffi::c_void>, creationparametersdatasizeinbytes: usize) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateMetaCommand)(::windows_core::Interface::as_raw(self), commandid, nodemask, ::core::mem::transmute(pcreationparametersdata.unwrap_or(::std::ptr::null())), creationparametersdatasizeinbytes, &T::IID, &mut result__).from_abi(result__) } pub unsafe fn CreateStateObject(&self, pdesc: *const D3D12_STATE_OBJECT_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateStateObject)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) @@ -1951,14 +1766,14 @@ impl ID3D12Device10 { pub unsafe fn AddToStateObject(&self, paddition: *const D3D12_STATE_OBJECT_DESC, pstateobjecttogrowfrom: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) } pub unsafe fn CreateProtectedResourceSession1(&self, pdesc: *const D3D12_PROTECTED_RESOURCE_SESSION_DESC1) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.CreateProtectedResourceSession1)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) @@ -1975,7 +1790,7 @@ impl ID3D12Device10 { pub unsafe fn CreateCommittedResource2(&self, pheapproperties: *const D3D12_HEAP_PROPERTIES, heapflags: D3D12_HEAP_FLAGS, pdesc: *const D3D12_RESOURCE_DESC1, initialresourcestate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, pprotectedsession: P0, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -1984,7 +1799,7 @@ impl ID3D12Device10 { pub unsafe fn CreatePlacedResource1(&self, pheap: P0, heapoffset: u64, pdesc: *const D3D12_RESOURCE_DESC1, initialstate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -2002,7 +1817,7 @@ impl ID3D12Device10 { } pub unsafe fn CreateShaderCacheSession(&self, pdesc: *const D3D12_SHADER_CACHE_SESSION_DESC, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.CreateShaderCacheSession)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, result__ as *mut _ as *mut _).ok() } @@ -2011,7 +1826,7 @@ impl ID3D12Device10 { } pub unsafe fn CreateCommandQueue1(&self, pdesc: *const D3D12_COMMAND_QUEUE_DESC, creatorid: *const ::windows_core::GUID) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.CreateCommandQueue1)(::windows_core::Interface::as_raw(self), pdesc, creatorid, &T::IID, &mut result__).from_abi(result__) @@ -2021,7 +1836,7 @@ impl ID3D12Device10 { pub unsafe fn CreateCommittedResource3(&self, pheapproperties: *const D3D12_HEAP_PROPERTIES, heapflags: D3D12_HEAP_FLAGS, pdesc: *const D3D12_RESOURCE_DESC1, initiallayout: D3D12_BARRIER_LAYOUT, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, pprotectedsession: P0, pcastableformats: ::core::option::Option<&[super::Dxgi::Common::DXGI_FORMAT]>, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -2030,7 +1845,7 @@ impl ID3D12Device10 { pub unsafe fn CreatePlacedResource2(&self, pheap: P0, heapoffset: u64, pdesc: *const D3D12_RESOURCE_DESC1, initiallayout: D3D12_BARRIER_LAYOUT, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, pcastableformats: ::core::option::Option<&[super::Dxgi::Common::DXGI_FORMAT]>, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -2039,20 +1854,13 @@ impl ID3D12Device10 { pub unsafe fn CreateReservedResource2(&self, pdesc: *const D3D12_RESOURCE_DESC, initiallayout: D3D12_BARRIER_LAYOUT, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, pprotectedsession: P0, pcastableformats: ::core::option::Option<&[super::Dxgi::Common::DXGI_FORMAT]>, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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::imp::interface_hierarchy!(ID3D12Device10, ::windows_core::IUnknown, ID3D12Object, ID3D12Device, ID3D12Device1, ID3D12Device2, ID3D12Device3, ID3D12Device4, ID3D12Device5, ID3D12Device6, ID3D12Device7, ID3D12Device8, ID3D12Device9); unsafe impl ::core::marker::Send for ID3D12Device10 {} unsafe impl ::core::marker::Sync for ID3D12Device10 {} -unsafe impl ::windows_core::Interface for ID3D12Device10 { - type Vtable = ID3D12Device10_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12Device10 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x517f8718_aa66_49f9_b02b_a7ab89c06031); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12Device10_Vtbl { @@ -2070,9 +1878,8 @@ pub struct ID3D12Device10_Vtbl { #[cfg(not(feature = "Win32_Graphics_Dxgi_Common"))] CreateReservedResource2: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12Device11(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12Device11, ID3D12Device11_Vtbl, 0x5405c344_d457_444e_b4dd_2366e45aee39); +::windows_core::imp::interface_hierarchy!(ID3D12Device11, ::windows_core::IUnknown, ID3D12Object, ID3D12Device, ID3D12Device1, ID3D12Device2, ID3D12Device3, ID3D12Device4, ID3D12Device5, ID3D12Device6, ID3D12Device7, ID3D12Device8, ID3D12Device9, ID3D12Device10); impl ID3D12Device11 { pub unsafe fn GetPrivateData(&self, guid: *const ::windows_core::GUID, pdatasize: *mut u32, pdata: ::core::option::Option<*mut ::core::ffi::c_void>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.GetPrivateData)(::windows_core::Interface::as_raw(self), guid, pdatasize, ::core::mem::transmute(pdata.unwrap_or(::std::ptr::null_mut()))).ok() @@ -2097,14 +1904,14 @@ impl ID3D12Device11 { } pub unsafe fn CreateCommandQueue(&self, pdesc: *const D3D12_COMMAND_QUEUE_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + 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__.CreateCommandQueue)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) } pub unsafe fn CreateCommandAllocator(&self, r#type: D3D12_COMMAND_LIST_TYPE) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + 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__.CreateCommandAllocator)(::windows_core::Interface::as_raw(self), r#type, &T::IID, &mut result__).from_abi(result__) @@ -2113,14 +1920,14 @@ impl ID3D12Device11 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateGraphicsPipelineState(&self, pdesc: *const D3D12_GRAPHICS_PIPELINE_STATE_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + 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__.CreateGraphicsPipelineState)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) } pub unsafe fn CreateComputePipelineState(&self, pdesc: *const D3D12_COMPUTE_PIPELINE_STATE_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + 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__.CreateComputePipelineState)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) @@ -2129,7 +1936,7 @@ impl ID3D12Device11 { where P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -2139,7 +1946,7 @@ impl ID3D12Device11 { } pub unsafe fn CreateDescriptorHeap(&self, pdescriptorheapdesc: *const D3D12_DESCRIPTOR_HEAP_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + 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__.CreateDescriptorHeap)(::windows_core::Interface::as_raw(self), pdescriptorheapdesc, &T::IID, &mut result__).from_abi(result__) @@ -2149,7 +1956,7 @@ impl ID3D12Device11 { } pub unsafe fn CreateRootSignature(&self, nodemask: u32, pblobwithrootsignature: &[u8]) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + 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__.CreateRootSignature)(::windows_core::Interface::as_raw(self), nodemask, ::core::mem::transmute(pblobwithrootsignature.as_ptr()), pblobwithrootsignature.len().try_into().unwrap(), &T::IID, &mut result__).from_abi(result__) @@ -2215,13 +2022,13 @@ impl ID3D12Device11 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateCommittedResource(&self, pheapproperties: *const D3D12_HEAP_PROPERTIES, heapflags: D3D12_HEAP_FLAGS, pdesc: *const D3D12_RESOURCE_DESC, initialresourcestate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateCommittedResource)(::windows_core::Interface::as_raw(self), pheapproperties, heapflags, pdesc, initialresourcestate, ::core::mem::transmute(poptimizedclearvalue.unwrap_or(::std::ptr::null())), &T::IID, result__ as *mut _ as *mut _).ok() } pub unsafe fn CreateHeap(&self, pdesc: *const D3D12_HEAP_DESC, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateHeap)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, result__ as *mut _ as *mut _).ok() } @@ -2230,7 +2037,7 @@ impl ID3D12Device11 { pub unsafe fn CreatePlacedResource(&self, pheap: P0, heapoffset: u64, pdesc: *const D3D12_RESOURCE_DESC, initialstate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -2238,7 +2045,7 @@ impl ID3D12Device11 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateReservedResource(&self, pdesc: *const D3D12_RESOURCE_DESC, initialstate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateReservedResource)(::windows_core::Interface::as_raw(self), pdesc, initialstate, ::core::mem::transmute(poptimizedclearvalue.unwrap_or(::std::ptr::null())), &T::IID, result__ as *mut _ as *mut _).ok() } @@ -2255,7 +2062,7 @@ impl ID3D12Device11 { pub unsafe fn OpenSharedHandle(&self, nthandle: P0, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -2274,7 +2081,7 @@ impl ID3D12Device11 { } pub unsafe fn CreateFence(&self, initialvalue: u64, flags: D3D12_FENCE_FLAGS) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + 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__.CreateFence)(::windows_core::Interface::as_raw(self), initialvalue, flags, &T::IID, &mut result__).from_abi(result__) @@ -2289,7 +2096,7 @@ impl ID3D12Device11 { } pub unsafe fn CreateQueryHeap(&self, pdesc: *const D3D12_QUERY_HEAP_DESC, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateQueryHeap)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, result__ as *mut _ as *mut _).ok() } @@ -2302,7 +2109,7 @@ impl ID3D12Device11 { pub unsafe fn CreateCommandSignature(&self, pdesc: *const D3D12_COMMAND_SIGNATURE_DESC, prootsignature: P0, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -2319,7 +2126,7 @@ impl ID3D12Device11 { } pub unsafe fn CreatePipelineLibrary(&self, plibraryblob: &[u8]) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + 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__.CreatePipelineLibrary)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(plibraryblob.as_ptr()), plibraryblob.len().try_into().unwrap(), &T::IID, &mut result__).from_abi(result__) @@ -2335,14 +2142,14 @@ impl ID3D12Device11 { } pub unsafe fn CreatePipelineState(&self, pdesc: *const D3D12_PIPELINE_STATE_STREAM_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + 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__.CreatePipelineState)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) } pub unsafe fn OpenExistingHeapFromAddress(&self, paddress: *const ::core::ffi::c_void) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.OpenExistingHeapFromAddress)(::windows_core::Interface::as_raw(self), paddress, &T::IID, &mut result__).from_abi(result__) @@ -2350,7 +2157,7 @@ impl ID3D12Device11 { pub unsafe fn OpenExistingHeapFromFileMapping(&self, hfilemapping: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -2363,14 +2170,14 @@ impl ID3D12Device11 { } pub unsafe fn CreateCommandList1(&self, nodemask: u32, r#type: D3D12_COMMAND_LIST_TYPE, flags: D3D12_COMMAND_LIST_FLAGS) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateCommandList1)(::windows_core::Interface::as_raw(self), nodemask, r#type, flags, &T::IID, &mut result__).from_abi(result__) } pub unsafe fn CreateProtectedResourceSession(&self, pdesc: *const D3D12_PROTECTED_RESOURCE_SESSION_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateProtectedResourceSession)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) @@ -2380,14 +2187,14 @@ impl ID3D12Device11 { pub unsafe fn CreateCommittedResource1(&self, pheapproperties: *const D3D12_HEAP_PROPERTIES, heapflags: D3D12_HEAP_FLAGS, pdesc: *const D3D12_RESOURCE_DESC, initialresourcestate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, pprotectedsession: P0, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } pub unsafe fn CreateHeap1(&self, pdesc: *const D3D12_HEAP_DESC, pprotectedsession: P0, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -2396,7 +2203,7 @@ impl ID3D12Device11 { pub unsafe fn CreateReservedResource1(&self, pdesc: *const D3D12_RESOURCE_DESC, initialstate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, pprotectedsession: P0, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -2410,7 +2217,7 @@ impl ID3D12Device11 { pub unsafe fn CreateLifetimeTracker(&self, powner: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -2426,14 +2233,14 @@ impl ID3D12Device11 { } pub unsafe fn CreateMetaCommand(&self, commandid: *const ::windows_core::GUID, nodemask: u32, pcreationparametersdata: ::core::option::Option<*const ::core::ffi::c_void>, creationparametersdatasizeinbytes: usize) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateMetaCommand)(::windows_core::Interface::as_raw(self), commandid, nodemask, ::core::mem::transmute(pcreationparametersdata.unwrap_or(::std::ptr::null())), creationparametersdatasizeinbytes, &T::IID, &mut result__).from_abi(result__) } pub unsafe fn CreateStateObject(&self, pdesc: *const D3D12_STATE_OBJECT_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateStateObject)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) @@ -2455,14 +2262,14 @@ impl ID3D12Device11 { pub unsafe fn AddToStateObject(&self, paddition: *const D3D12_STATE_OBJECT_DESC, pstateobjecttogrowfrom: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) } pub unsafe fn CreateProtectedResourceSession1(&self, pdesc: *const D3D12_PROTECTED_RESOURCE_SESSION_DESC1) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateProtectedResourceSession1)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) @@ -2479,7 +2286,7 @@ impl ID3D12Device11 { pub unsafe fn CreateCommittedResource2(&self, pheapproperties: *const D3D12_HEAP_PROPERTIES, heapflags: D3D12_HEAP_FLAGS, pdesc: *const D3D12_RESOURCE_DESC1, initialresourcestate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, pprotectedsession: P0, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -2488,7 +2295,7 @@ impl ID3D12Device11 { pub unsafe fn CreatePlacedResource1(&self, pheap: P0, heapoffset: u64, pdesc: *const D3D12_RESOURCE_DESC1, initialstate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -2506,7 +2313,7 @@ impl ID3D12Device11 { } pub unsafe fn CreateShaderCacheSession(&self, pdesc: *const D3D12_SHADER_CACHE_SESSION_DESC, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.CreateShaderCacheSession)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, result__ as *mut _ as *mut _).ok() } @@ -2515,7 +2322,7 @@ impl ID3D12Device11 { } pub unsafe fn CreateCommandQueue1(&self, pdesc: *const D3D12_COMMAND_QUEUE_DESC, creatorid: *const ::windows_core::GUID) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.CreateCommandQueue1)(::windows_core::Interface::as_raw(self), pdesc, creatorid, &T::IID, &mut result__).from_abi(result__) @@ -2525,7 +2332,7 @@ impl ID3D12Device11 { pub unsafe fn CreateCommittedResource3(&self, pheapproperties: *const D3D12_HEAP_PROPERTIES, heapflags: D3D12_HEAP_FLAGS, pdesc: *const D3D12_RESOURCE_DESC1, initiallayout: D3D12_BARRIER_LAYOUT, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, pprotectedsession: P0, pcastableformats: ::core::option::Option<&[super::Dxgi::Common::DXGI_FORMAT]>, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -2534,7 +2341,7 @@ impl ID3D12Device11 { pub unsafe fn CreatePlacedResource2(&self, pheap: P0, heapoffset: u64, pdesc: *const D3D12_RESOURCE_DESC1, initiallayout: D3D12_BARRIER_LAYOUT, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, pcastableformats: ::core::option::Option<&[super::Dxgi::Common::DXGI_FORMAT]>, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -2543,7 +2350,7 @@ impl ID3D12Device11 { pub unsafe fn CreateReservedResource2(&self, pdesc: *const D3D12_RESOURCE_DESC, initiallayout: D3D12_BARRIER_LAYOUT, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, pprotectedsession: P0, pcastableformats: ::core::option::Option<&[super::Dxgi::Common::DXGI_FORMAT]>, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -2551,24 +2358,16 @@ impl ID3D12Device11 { (::windows_core::Interface::vtable(self).CreateSampler2)(::windows_core::Interface::as_raw(self), pdesc, ::core::mem::transmute(destdescriptor)) } } -::windows_core::imp::interface_hierarchy!(ID3D12Device11, ::windows_core::IUnknown, ID3D12Object, ID3D12Device, ID3D12Device1, ID3D12Device2, ID3D12Device3, ID3D12Device4, ID3D12Device5, ID3D12Device6, ID3D12Device7, ID3D12Device8, ID3D12Device9, ID3D12Device10); unsafe impl ::core::marker::Send for ID3D12Device11 {} unsafe impl ::core::marker::Sync for ID3D12Device11 {} -unsafe impl ::windows_core::Interface for ID3D12Device11 { - type Vtable = ID3D12Device11_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12Device11 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5405c344_d457_444e_b4dd_2366e45aee39); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12Device11_Vtbl { pub base__: ID3D12Device10_Vtbl, pub CreateSampler2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdesc: *const D3D12_SAMPLER_DESC2, destdescriptor: D3D12_CPU_DESCRIPTOR_HANDLE), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12Device12(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12Device12, ID3D12Device12_Vtbl, 0x5af5c532_4c91_4cd0_b541_15a405395fc5); +::windows_core::imp::interface_hierarchy!(ID3D12Device12, ::windows_core::IUnknown, ID3D12Object, ID3D12Device, ID3D12Device1, ID3D12Device2, ID3D12Device3, ID3D12Device4, ID3D12Device5, ID3D12Device6, ID3D12Device7, ID3D12Device8, ID3D12Device9, ID3D12Device10, ID3D12Device11); impl ID3D12Device12 { pub unsafe fn GetPrivateData(&self, guid: *const ::windows_core::GUID, pdatasize: *mut u32, pdata: ::core::option::Option<*mut ::core::ffi::c_void>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.GetPrivateData)(::windows_core::Interface::as_raw(self), guid, pdatasize, ::core::mem::transmute(pdata.unwrap_or(::std::ptr::null_mut()))).ok() @@ -2593,14 +2392,14 @@ impl ID3D12Device12 { } pub unsafe fn CreateCommandQueue(&self, pdesc: *const D3D12_COMMAND_QUEUE_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + 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__.CreateCommandQueue)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) } pub unsafe fn CreateCommandAllocator(&self, r#type: D3D12_COMMAND_LIST_TYPE) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + 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__.CreateCommandAllocator)(::windows_core::Interface::as_raw(self), r#type, &T::IID, &mut result__).from_abi(result__) @@ -2609,14 +2408,14 @@ impl ID3D12Device12 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateGraphicsPipelineState(&self, pdesc: *const D3D12_GRAPHICS_PIPELINE_STATE_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + 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__.CreateGraphicsPipelineState)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) } pub unsafe fn CreateComputePipelineState(&self, pdesc: *const D3D12_COMPUTE_PIPELINE_STATE_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + 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__.CreateComputePipelineState)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) @@ -2625,7 +2424,7 @@ impl ID3D12Device12 { where P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -2635,7 +2434,7 @@ impl ID3D12Device12 { } pub unsafe fn CreateDescriptorHeap(&self, pdescriptorheapdesc: *const D3D12_DESCRIPTOR_HEAP_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + 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__.CreateDescriptorHeap)(::windows_core::Interface::as_raw(self), pdescriptorheapdesc, &T::IID, &mut result__).from_abi(result__) @@ -2645,7 +2444,7 @@ impl ID3D12Device12 { } pub unsafe fn CreateRootSignature(&self, nodemask: u32, pblobwithrootsignature: &[u8]) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + 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__.CreateRootSignature)(::windows_core::Interface::as_raw(self), nodemask, ::core::mem::transmute(pblobwithrootsignature.as_ptr()), pblobwithrootsignature.len().try_into().unwrap(), &T::IID, &mut result__).from_abi(result__) @@ -2711,13 +2510,13 @@ impl ID3D12Device12 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateCommittedResource(&self, pheapproperties: *const D3D12_HEAP_PROPERTIES, heapflags: D3D12_HEAP_FLAGS, pdesc: *const D3D12_RESOURCE_DESC, initialresourcestate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateCommittedResource)(::windows_core::Interface::as_raw(self), pheapproperties, heapflags, pdesc, initialresourcestate, ::core::mem::transmute(poptimizedclearvalue.unwrap_or(::std::ptr::null())), &T::IID, result__ as *mut _ as *mut _).ok() } pub unsafe fn CreateHeap(&self, pdesc: *const D3D12_HEAP_DESC, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateHeap)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, result__ as *mut _ as *mut _).ok() } @@ -2726,7 +2525,7 @@ impl ID3D12Device12 { pub unsafe fn CreatePlacedResource(&self, pheap: P0, heapoffset: u64, pdesc: *const D3D12_RESOURCE_DESC, initialstate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -2734,7 +2533,7 @@ impl ID3D12Device12 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateReservedResource(&self, pdesc: *const D3D12_RESOURCE_DESC, initialstate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateReservedResource)(::windows_core::Interface::as_raw(self), pdesc, initialstate, ::core::mem::transmute(poptimizedclearvalue.unwrap_or(::std::ptr::null())), &T::IID, result__ as *mut _ as *mut _).ok() } @@ -2751,7 +2550,7 @@ impl ID3D12Device12 { pub unsafe fn OpenSharedHandle(&self, nthandle: P0, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -2770,7 +2569,7 @@ impl ID3D12Device12 { } pub unsafe fn CreateFence(&self, initialvalue: u64, flags: D3D12_FENCE_FLAGS) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + 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__.CreateFence)(::windows_core::Interface::as_raw(self), initialvalue, flags, &T::IID, &mut result__).from_abi(result__) @@ -2785,7 +2584,7 @@ impl ID3D12Device12 { } pub unsafe fn CreateQueryHeap(&self, pdesc: *const D3D12_QUERY_HEAP_DESC, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateQueryHeap)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, result__ as *mut _ as *mut _).ok() } @@ -2798,7 +2597,7 @@ impl ID3D12Device12 { pub unsafe fn CreateCommandSignature(&self, pdesc: *const D3D12_COMMAND_SIGNATURE_DESC, prootsignature: P0, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -2815,7 +2614,7 @@ impl ID3D12Device12 { } pub unsafe fn CreatePipelineLibrary(&self, plibraryblob: &[u8]) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + 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__.CreatePipelineLibrary)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(plibraryblob.as_ptr()), plibraryblob.len().try_into().unwrap(), &T::IID, &mut result__).from_abi(result__) @@ -2831,14 +2630,14 @@ impl ID3D12Device12 { } pub unsafe fn CreatePipelineState(&self, pdesc: *const D3D12_PIPELINE_STATE_STREAM_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + 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__.CreatePipelineState)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) } pub unsafe fn OpenExistingHeapFromAddress(&self, paddress: *const ::core::ffi::c_void) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + 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__.OpenExistingHeapFromAddress)(::windows_core::Interface::as_raw(self), paddress, &T::IID, &mut result__).from_abi(result__) @@ -2846,7 +2645,7 @@ impl ID3D12Device12 { pub unsafe fn OpenExistingHeapFromFileMapping(&self, hfilemapping: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -2859,14 +2658,14 @@ impl ID3D12Device12 { } pub unsafe fn CreateCommandList1(&self, nodemask: u32, r#type: D3D12_COMMAND_LIST_TYPE, flags: D3D12_COMMAND_LIST_FLAGS) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CreateCommandList1)(::windows_core::Interface::as_raw(self), nodemask, r#type, flags, &T::IID, &mut result__).from_abi(result__) } pub unsafe fn CreateProtectedResourceSession(&self, pdesc: *const D3D12_PROTECTED_RESOURCE_SESSION_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CreateProtectedResourceSession)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) @@ -2876,14 +2675,14 @@ impl ID3D12Device12 { pub unsafe fn CreateCommittedResource1(&self, pheapproperties: *const D3D12_HEAP_PROPERTIES, heapflags: D3D12_HEAP_FLAGS, pdesc: *const D3D12_RESOURCE_DESC, initialresourcestate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, pprotectedsession: P0, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } pub unsafe fn CreateHeap1(&self, pdesc: *const D3D12_HEAP_DESC, pprotectedsession: P0, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -2892,7 +2691,7 @@ impl ID3D12Device12 { pub unsafe fn CreateReservedResource1(&self, pdesc: *const D3D12_RESOURCE_DESC, initialstate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, pprotectedsession: P0, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -2906,7 +2705,7 @@ impl ID3D12Device12 { pub unsafe fn CreateLifetimeTracker(&self, powner: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -2922,14 +2721,14 @@ impl ID3D12Device12 { } pub unsafe fn CreateMetaCommand(&self, commandid: *const ::windows_core::GUID, nodemask: u32, pcreationparametersdata: ::core::option::Option<*const ::core::ffi::c_void>, creationparametersdatasizeinbytes: usize) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateMetaCommand)(::windows_core::Interface::as_raw(self), commandid, nodemask, ::core::mem::transmute(pcreationparametersdata.unwrap_or(::std::ptr::null())), creationparametersdatasizeinbytes, &T::IID, &mut result__).from_abi(result__) } pub unsafe fn CreateStateObject(&self, pdesc: *const D3D12_STATE_OBJECT_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateStateObject)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) @@ -2951,14 +2750,14 @@ impl ID3D12Device12 { pub unsafe fn AddToStateObject(&self, paddition: *const D3D12_STATE_OBJECT_DESC, pstateobjecttogrowfrom: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) } pub unsafe fn CreateProtectedResourceSession1(&self, pdesc: *const D3D12_PROTECTED_RESOURCE_SESSION_DESC1) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateProtectedResourceSession1)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) @@ -2975,7 +2774,7 @@ impl ID3D12Device12 { pub unsafe fn CreateCommittedResource2(&self, pheapproperties: *const D3D12_HEAP_PROPERTIES, heapflags: D3D12_HEAP_FLAGS, pdesc: *const D3D12_RESOURCE_DESC1, initialresourcestate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, pprotectedsession: P0, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -2984,7 +2783,7 @@ impl ID3D12Device12 { pub unsafe fn CreatePlacedResource1(&self, pheap: P0, heapoffset: u64, pdesc: *const D3D12_RESOURCE_DESC1, initialstate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -3002,7 +2801,7 @@ impl ID3D12Device12 { } pub unsafe fn CreateShaderCacheSession(&self, pdesc: *const D3D12_SHADER_CACHE_SESSION_DESC, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.base__.CreateShaderCacheSession)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, result__ as *mut _ as *mut _).ok() } @@ -3011,7 +2810,7 @@ impl ID3D12Device12 { } pub unsafe fn CreateCommandQueue1(&self, pdesc: *const D3D12_COMMAND_QUEUE_DESC, creatorid: *const ::windows_core::GUID) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.CreateCommandQueue1)(::windows_core::Interface::as_raw(self), pdesc, creatorid, &T::IID, &mut result__).from_abi(result__) @@ -3021,7 +2820,7 @@ impl ID3D12Device12 { pub unsafe fn CreateCommittedResource3(&self, pheapproperties: *const D3D12_HEAP_PROPERTIES, heapflags: D3D12_HEAP_FLAGS, pdesc: *const D3D12_RESOURCE_DESC1, initiallayout: D3D12_BARRIER_LAYOUT, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, pprotectedsession: P0, pcastableformats: ::core::option::Option<&[super::Dxgi::Common::DXGI_FORMAT]>, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -3030,7 +2829,7 @@ impl ID3D12Device12 { pub unsafe fn CreatePlacedResource2(&self, pheap: P0, heapoffset: u64, pdesc: *const D3D12_RESOURCE_DESC1, initiallayout: D3D12_BARRIER_LAYOUT, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, pcastableformats: ::core::option::Option<&[super::Dxgi::Common::DXGI_FORMAT]>, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -3039,7 +2838,7 @@ impl ID3D12Device12 { pub unsafe fn CreateReservedResource2(&self, pdesc: *const D3D12_RESOURCE_DESC, initiallayout: D3D12_BARRIER_LAYOUT, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, pprotectedsession: P0, pcastableformats: ::core::option::Option<&[super::Dxgi::Common::DXGI_FORMAT]>, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -3054,15 +2853,8 @@ impl ID3D12Device12 { result__ } } -::windows_core::imp::interface_hierarchy!(ID3D12Device12, ::windows_core::IUnknown, ID3D12Object, ID3D12Device, ID3D12Device1, ID3D12Device2, ID3D12Device3, ID3D12Device4, ID3D12Device5, ID3D12Device6, ID3D12Device7, ID3D12Device8, ID3D12Device9, ID3D12Device10, ID3D12Device11); unsafe impl ::core::marker::Send for ID3D12Device12 {} unsafe impl ::core::marker::Sync for ID3D12Device12 {} -unsafe impl ::windows_core::Interface for ID3D12Device12 { - type Vtable = ID3D12Device12_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12Device12 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5af5c532_4c91_4cd0_b541_15a405395fc5); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12Device12_Vtbl { @@ -3072,9 +2864,8 @@ pub struct ID3D12Device12_Vtbl { #[cfg(not(feature = "Win32_Graphics_Dxgi_Common"))] GetResourceAllocationInfo3: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12Device13(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12Device13, ID3D12Device13_Vtbl, 0x14eecffc_4df8_40f7_a118_5c816f45695e); +::windows_core::imp::interface_hierarchy!(ID3D12Device13, ::windows_core::IUnknown, ID3D12Object, ID3D12Device, ID3D12Device1, ID3D12Device2, ID3D12Device3, ID3D12Device4, ID3D12Device5, ID3D12Device6, ID3D12Device7, ID3D12Device8, ID3D12Device9, ID3D12Device10, ID3D12Device11, ID3D12Device12); impl ID3D12Device13 { pub unsafe fn GetPrivateData(&self, guid: *const ::windows_core::GUID, pdatasize: *mut u32, pdata: ::core::option::Option<*mut ::core::ffi::c_void>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.GetPrivateData)(::windows_core::Interface::as_raw(self), guid, pdatasize, ::core::mem::transmute(pdata.unwrap_or(::std::ptr::null_mut()))).ok() @@ -3099,14 +2890,14 @@ impl ID3D12Device13 { } pub unsafe fn CreateCommandQueue(&self, pdesc: *const D3D12_COMMAND_QUEUE_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + 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__.CreateCommandQueue)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) } pub unsafe fn CreateCommandAllocator(&self, r#type: D3D12_COMMAND_LIST_TYPE) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + 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__.CreateCommandAllocator)(::windows_core::Interface::as_raw(self), r#type, &T::IID, &mut result__).from_abi(result__) @@ -3115,14 +2906,14 @@ impl ID3D12Device13 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateGraphicsPipelineState(&self, pdesc: *const D3D12_GRAPHICS_PIPELINE_STATE_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + 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__.CreateGraphicsPipelineState)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) } pub unsafe fn CreateComputePipelineState(&self, pdesc: *const D3D12_COMPUTE_PIPELINE_STATE_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + 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__.CreateComputePipelineState)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) @@ -3131,7 +2922,7 @@ impl ID3D12Device13 { where P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -3141,7 +2932,7 @@ impl ID3D12Device13 { } pub unsafe fn CreateDescriptorHeap(&self, pdescriptorheapdesc: *const D3D12_DESCRIPTOR_HEAP_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + 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__.CreateDescriptorHeap)(::windows_core::Interface::as_raw(self), pdescriptorheapdesc, &T::IID, &mut result__).from_abi(result__) @@ -3151,7 +2942,7 @@ impl ID3D12Device13 { } pub unsafe fn CreateRootSignature(&self, nodemask: u32, pblobwithrootsignature: &[u8]) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + 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__.CreateRootSignature)(::windows_core::Interface::as_raw(self), nodemask, ::core::mem::transmute(pblobwithrootsignature.as_ptr()), pblobwithrootsignature.len().try_into().unwrap(), &T::IID, &mut result__).from_abi(result__) @@ -3217,13 +3008,13 @@ impl ID3D12Device13 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateCommittedResource(&self, pheapproperties: *const D3D12_HEAP_PROPERTIES, heapflags: D3D12_HEAP_FLAGS, pdesc: *const D3D12_RESOURCE_DESC, initialresourcestate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateCommittedResource)(::windows_core::Interface::as_raw(self), pheapproperties, heapflags, pdesc, initialresourcestate, ::core::mem::transmute(poptimizedclearvalue.unwrap_or(::std::ptr::null())), &T::IID, result__ as *mut _ as *mut _).ok() } pub unsafe fn CreateHeap(&self, pdesc: *const D3D12_HEAP_DESC, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateHeap)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, result__ as *mut _ as *mut _).ok() } @@ -3232,7 +3023,7 @@ impl ID3D12Device13 { pub unsafe fn CreatePlacedResource(&self, pheap: P0, heapoffset: u64, pdesc: *const D3D12_RESOURCE_DESC, initialstate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -3240,7 +3031,7 @@ impl ID3D12Device13 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateReservedResource(&self, pdesc: *const D3D12_RESOURCE_DESC, initialstate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateReservedResource)(::windows_core::Interface::as_raw(self), pdesc, initialstate, ::core::mem::transmute(poptimizedclearvalue.unwrap_or(::std::ptr::null())), &T::IID, result__ as *mut _ as *mut _).ok() } @@ -3257,7 +3048,7 @@ impl ID3D12Device13 { pub unsafe fn OpenSharedHandle(&self, nthandle: P0, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -3276,7 +3067,7 @@ impl ID3D12Device13 { } pub unsafe fn CreateFence(&self, initialvalue: u64, flags: D3D12_FENCE_FLAGS) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + 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__.CreateFence)(::windows_core::Interface::as_raw(self), initialvalue, flags, &T::IID, &mut result__).from_abi(result__) @@ -3291,7 +3082,7 @@ impl ID3D12Device13 { } pub unsafe fn CreateQueryHeap(&self, pdesc: *const D3D12_QUERY_HEAP_DESC, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateQueryHeap)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, result__ as *mut _ as *mut _).ok() } @@ -3304,7 +3095,7 @@ impl ID3D12Device13 { pub unsafe fn CreateCommandSignature(&self, pdesc: *const D3D12_COMMAND_SIGNATURE_DESC, prootsignature: P0, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -3321,7 +3112,7 @@ impl ID3D12Device13 { } pub unsafe fn CreatePipelineLibrary(&self, plibraryblob: &[u8]) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + 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__.CreatePipelineLibrary)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(plibraryblob.as_ptr()), plibraryblob.len().try_into().unwrap(), &T::IID, &mut result__).from_abi(result__) @@ -3337,14 +3128,14 @@ impl ID3D12Device13 { } pub unsafe fn CreatePipelineState(&self, pdesc: *const D3D12_PIPELINE_STATE_STREAM_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + 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__.CreatePipelineState)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) } pub unsafe fn OpenExistingHeapFromAddress(&self, paddress: *const ::core::ffi::c_void) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + 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__.OpenExistingHeapFromAddress)(::windows_core::Interface::as_raw(self), paddress, &T::IID, &mut result__).from_abi(result__) @@ -3352,7 +3143,7 @@ impl ID3D12Device13 { pub unsafe fn OpenExistingHeapFromFileMapping(&self, hfilemapping: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -3365,14 +3156,14 @@ impl ID3D12Device13 { } pub unsafe fn CreateCommandList1(&self, nodemask: u32, r#type: D3D12_COMMAND_LIST_TYPE, flags: D3D12_COMMAND_LIST_FLAGS) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + 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__.CreateCommandList1)(::windows_core::Interface::as_raw(self), nodemask, r#type, flags, &T::IID, &mut result__).from_abi(result__) } pub unsafe fn CreateProtectedResourceSession(&self, pdesc: *const D3D12_PROTECTED_RESOURCE_SESSION_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + 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__.CreateProtectedResourceSession)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) @@ -3382,14 +3173,14 @@ impl ID3D12Device13 { pub unsafe fn CreateCommittedResource1(&self, pheapproperties: *const D3D12_HEAP_PROPERTIES, heapflags: D3D12_HEAP_FLAGS, pdesc: *const D3D12_RESOURCE_DESC, initialresourcestate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, pprotectedsession: P0, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } pub unsafe fn CreateHeap1(&self, pdesc: *const D3D12_HEAP_DESC, pprotectedsession: P0, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -3398,7 +3189,7 @@ impl ID3D12Device13 { pub unsafe fn CreateReservedResource1(&self, pdesc: *const D3D12_RESOURCE_DESC, initialstate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, pprotectedsession: P0, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -3412,7 +3203,7 @@ impl ID3D12Device13 { pub unsafe fn CreateLifetimeTracker(&self, powner: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -3428,14 +3219,14 @@ impl ID3D12Device13 { } pub unsafe fn CreateMetaCommand(&self, commandid: *const ::windows_core::GUID, nodemask: u32, pcreationparametersdata: ::core::option::Option<*const ::core::ffi::c_void>, creationparametersdatasizeinbytes: usize) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CreateMetaCommand)(::windows_core::Interface::as_raw(self), commandid, nodemask, ::core::mem::transmute(pcreationparametersdata.unwrap_or(::std::ptr::null())), creationparametersdatasizeinbytes, &T::IID, &mut result__).from_abi(result__) } pub unsafe fn CreateStateObject(&self, pdesc: *const D3D12_STATE_OBJECT_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CreateStateObject)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) @@ -3457,14 +3248,14 @@ impl ID3D12Device13 { pub unsafe fn AddToStateObject(&self, paddition: *const D3D12_STATE_OBJECT_DESC, pstateobjecttogrowfrom: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) } pub unsafe fn CreateProtectedResourceSession1(&self, pdesc: *const D3D12_PROTECTED_RESOURCE_SESSION_DESC1) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateProtectedResourceSession1)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) @@ -3481,7 +3272,7 @@ impl ID3D12Device13 { pub unsafe fn CreateCommittedResource2(&self, pheapproperties: *const D3D12_HEAP_PROPERTIES, heapflags: D3D12_HEAP_FLAGS, pdesc: *const D3D12_RESOURCE_DESC1, initialresourcestate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, pprotectedsession: P0, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -3490,7 +3281,7 @@ impl ID3D12Device13 { pub unsafe fn CreatePlacedResource1(&self, pheap: P0, heapoffset: u64, pdesc: *const D3D12_RESOURCE_DESC1, initialstate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -3508,7 +3299,7 @@ impl ID3D12Device13 { } pub unsafe fn CreateShaderCacheSession(&self, pdesc: *const D3D12_SHADER_CACHE_SESSION_DESC, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateShaderCacheSession)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, result__ as *mut _ as *mut _).ok() } @@ -3517,7 +3308,7 @@ impl ID3D12Device13 { } pub unsafe fn CreateCommandQueue1(&self, pdesc: *const D3D12_COMMAND_QUEUE_DESC, creatorid: *const ::windows_core::GUID) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateCommandQueue1)(::windows_core::Interface::as_raw(self), pdesc, creatorid, &T::IID, &mut result__).from_abi(result__) @@ -3527,7 +3318,7 @@ impl ID3D12Device13 { pub unsafe fn CreateCommittedResource3(&self, pheapproperties: *const D3D12_HEAP_PROPERTIES, heapflags: D3D12_HEAP_FLAGS, pdesc: *const D3D12_RESOURCE_DESC1, initiallayout: D3D12_BARRIER_LAYOUT, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, pprotectedsession: P0, pcastableformats: ::core::option::Option<&[super::Dxgi::Common::DXGI_FORMAT]>, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -3536,7 +3327,7 @@ impl ID3D12Device13 { pub unsafe fn CreatePlacedResource2(&self, pheap: P0, heapoffset: u64, pdesc: *const D3D12_RESOURCE_DESC1, initiallayout: D3D12_BARRIER_LAYOUT, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, pcastableformats: ::core::option::Option<&[super::Dxgi::Common::DXGI_FORMAT]>, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -3545,7 +3336,7 @@ impl ID3D12Device13 { pub unsafe fn CreateReservedResource2(&self, pdesc: *const D3D12_RESOURCE_DESC, initiallayout: D3D12_BARRIER_LAYOUT, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, pprotectedsession: P0, pcastableformats: ::core::option::Option<&[super::Dxgi::Common::DXGI_FORMAT]>, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -3561,30 +3352,22 @@ impl ID3D12Device13 { } pub unsafe fn OpenExistingHeapFromAddress1(&self, paddress: *const ::core::ffi::c_void, size: usize) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).OpenExistingHeapFromAddress1)(::windows_core::Interface::as_raw(self), paddress, size, &T::IID, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ID3D12Device13, ::windows_core::IUnknown, ID3D12Object, ID3D12Device, ID3D12Device1, ID3D12Device2, ID3D12Device3, ID3D12Device4, ID3D12Device5, ID3D12Device6, ID3D12Device7, ID3D12Device8, ID3D12Device9, ID3D12Device10, ID3D12Device11, ID3D12Device12); unsafe impl ::core::marker::Send for ID3D12Device13 {} unsafe impl ::core::marker::Sync for ID3D12Device13 {} -unsafe impl ::windows_core::Interface for ID3D12Device13 { - type Vtable = ID3D12Device13_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12Device13 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x14eecffc_4df8_40f7_a118_5c816f45695e); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12Device13_Vtbl { pub base__: ID3D12Device12_Vtbl, pub OpenExistingHeapFromAddress1: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, paddress: *const ::core::ffi::c_void, size: usize, riid: *const ::windows_core::GUID, ppvheap: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12Device2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12Device2, ID3D12Device2_Vtbl, 0x30baa41e_b15b_475c_a0bb_1af5c5b64328); +::windows_core::imp::interface_hierarchy!(ID3D12Device2, ::windows_core::IUnknown, ID3D12Object, ID3D12Device, ID3D12Device1); impl ID3D12Device2 { pub unsafe fn GetPrivateData(&self, guid: *const ::windows_core::GUID, pdatasize: *mut u32, pdata: ::core::option::Option<*mut ::core::ffi::c_void>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.GetPrivateData)(::windows_core::Interface::as_raw(self), guid, pdatasize, ::core::mem::transmute(pdata.unwrap_or(::std::ptr::null_mut()))).ok() @@ -3609,14 +3392,14 @@ impl ID3D12Device2 { } pub unsafe fn CreateCommandQueue(&self, pdesc: *const D3D12_COMMAND_QUEUE_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.CreateCommandQueue)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) } pub unsafe fn CreateCommandAllocator(&self, r#type: D3D12_COMMAND_LIST_TYPE) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.CreateCommandAllocator)(::windows_core::Interface::as_raw(self), r#type, &T::IID, &mut result__).from_abi(result__) @@ -3625,14 +3408,14 @@ impl ID3D12Device2 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateGraphicsPipelineState(&self, pdesc: *const D3D12_GRAPHICS_PIPELINE_STATE_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.CreateGraphicsPipelineState)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) } pub unsafe fn CreateComputePipelineState(&self, pdesc: *const D3D12_COMPUTE_PIPELINE_STATE_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.CreateComputePipelineState)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) @@ -3641,7 +3424,7 @@ impl ID3D12Device2 { where P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -3651,7 +3434,7 @@ impl ID3D12Device2 { } pub unsafe fn CreateDescriptorHeap(&self, pdescriptorheapdesc: *const D3D12_DESCRIPTOR_HEAP_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.CreateDescriptorHeap)(::windows_core::Interface::as_raw(self), pdescriptorheapdesc, &T::IID, &mut result__).from_abi(result__) @@ -3661,7 +3444,7 @@ impl ID3D12Device2 { } pub unsafe fn CreateRootSignature(&self, nodemask: u32, pblobwithrootsignature: &[u8]) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.CreateRootSignature)(::windows_core::Interface::as_raw(self), nodemask, ::core::mem::transmute(pblobwithrootsignature.as_ptr()), pblobwithrootsignature.len().try_into().unwrap(), &T::IID, &mut result__).from_abi(result__) @@ -3727,13 +3510,13 @@ impl ID3D12Device2 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateCommittedResource(&self, pheapproperties: *const D3D12_HEAP_PROPERTIES, heapflags: D3D12_HEAP_FLAGS, pdesc: *const D3D12_RESOURCE_DESC, initialresourcestate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.CreateCommittedResource)(::windows_core::Interface::as_raw(self), pheapproperties, heapflags, pdesc, initialresourcestate, ::core::mem::transmute(poptimizedclearvalue.unwrap_or(::std::ptr::null())), &T::IID, result__ as *mut _ as *mut _).ok() } pub unsafe fn CreateHeap(&self, pdesc: *const D3D12_HEAP_DESC, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.CreateHeap)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, result__ as *mut _ as *mut _).ok() } @@ -3742,7 +3525,7 @@ impl ID3D12Device2 { pub unsafe fn CreatePlacedResource(&self, pheap: P0, heapoffset: u64, pdesc: *const D3D12_RESOURCE_DESC, initialstate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -3750,7 +3533,7 @@ impl ID3D12Device2 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateReservedResource(&self, pdesc: *const D3D12_RESOURCE_DESC, initialstate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.CreateReservedResource)(::windows_core::Interface::as_raw(self), pdesc, initialstate, ::core::mem::transmute(poptimizedclearvalue.unwrap_or(::std::ptr::null())), &T::IID, result__ as *mut _ as *mut _).ok() } @@ -3767,7 +3550,7 @@ impl ID3D12Device2 { pub unsafe fn OpenSharedHandle(&self, nthandle: P0, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -3786,7 +3569,7 @@ impl ID3D12Device2 { } pub unsafe fn CreateFence(&self, initialvalue: u64, flags: D3D12_FENCE_FLAGS) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.CreateFence)(::windows_core::Interface::as_raw(self), initialvalue, flags, &T::IID, &mut result__).from_abi(result__) @@ -3801,7 +3584,7 @@ impl ID3D12Device2 { } pub unsafe fn CreateQueryHeap(&self, pdesc: *const D3D12_QUERY_HEAP_DESC, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.CreateQueryHeap)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, result__ as *mut _ as *mut _).ok() } @@ -3814,7 +3597,7 @@ impl ID3D12Device2 { pub unsafe fn CreateCommandSignature(&self, pdesc: *const D3D12_COMMAND_SIGNATURE_DESC, prootsignature: P0, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -3831,7 +3614,7 @@ impl ID3D12Device2 { } pub unsafe fn CreatePipelineLibrary(&self, plibraryblob: &[u8]) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.CreatePipelineLibrary)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(plibraryblob.as_ptr()), plibraryblob.len().try_into().unwrap(), &T::IID, &mut result__).from_abi(result__) @@ -3847,30 +3630,22 @@ impl ID3D12Device2 { } pub unsafe fn CreatePipelineState(&self, pdesc: *const D3D12_PIPELINE_STATE_STREAM_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).CreatePipelineState)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ID3D12Device2, ::windows_core::IUnknown, ID3D12Object, ID3D12Device, ID3D12Device1); unsafe impl ::core::marker::Send for ID3D12Device2 {} unsafe impl ::core::marker::Sync for ID3D12Device2 {} -unsafe impl ::windows_core::Interface for ID3D12Device2 { - type Vtable = ID3D12Device2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12Device2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x30baa41e_b15b_475c_a0bb_1af5c5b64328); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12Device2_Vtbl { pub base__: ID3D12Device1_Vtbl, pub CreatePipelineState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdesc: *const D3D12_PIPELINE_STATE_STREAM_DESC, riid: *const ::windows_core::GUID, pppipelinestate: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12Device3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12Device3, ID3D12Device3_Vtbl, 0x81dadc15_2bad_4392_93c5_101345c4aa98); +::windows_core::imp::interface_hierarchy!(ID3D12Device3, ::windows_core::IUnknown, ID3D12Object, ID3D12Device, ID3D12Device1, ID3D12Device2); impl ID3D12Device3 { pub unsafe fn GetPrivateData(&self, guid: *const ::windows_core::GUID, pdatasize: *mut u32, pdata: ::core::option::Option<*mut ::core::ffi::c_void>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.GetPrivateData)(::windows_core::Interface::as_raw(self), guid, pdatasize, ::core::mem::transmute(pdata.unwrap_or(::std::ptr::null_mut()))).ok() @@ -3895,14 +3670,14 @@ impl ID3D12Device3 { } pub unsafe fn CreateCommandQueue(&self, pdesc: *const D3D12_COMMAND_QUEUE_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.CreateCommandQueue)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) } pub unsafe fn CreateCommandAllocator(&self, r#type: D3D12_COMMAND_LIST_TYPE) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.CreateCommandAllocator)(::windows_core::Interface::as_raw(self), r#type, &T::IID, &mut result__).from_abi(result__) @@ -3911,14 +3686,14 @@ impl ID3D12Device3 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateGraphicsPipelineState(&self, pdesc: *const D3D12_GRAPHICS_PIPELINE_STATE_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.CreateGraphicsPipelineState)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) } pub unsafe fn CreateComputePipelineState(&self, pdesc: *const D3D12_COMPUTE_PIPELINE_STATE_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.CreateComputePipelineState)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) @@ -3927,7 +3702,7 @@ impl ID3D12Device3 { where P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -3937,7 +3712,7 @@ impl ID3D12Device3 { } pub unsafe fn CreateDescriptorHeap(&self, pdescriptorheapdesc: *const D3D12_DESCRIPTOR_HEAP_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.CreateDescriptorHeap)(::windows_core::Interface::as_raw(self), pdescriptorheapdesc, &T::IID, &mut result__).from_abi(result__) @@ -3947,7 +3722,7 @@ impl ID3D12Device3 { } pub unsafe fn CreateRootSignature(&self, nodemask: u32, pblobwithrootsignature: &[u8]) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.CreateRootSignature)(::windows_core::Interface::as_raw(self), nodemask, ::core::mem::transmute(pblobwithrootsignature.as_ptr()), pblobwithrootsignature.len().try_into().unwrap(), &T::IID, &mut result__).from_abi(result__) @@ -4013,13 +3788,13 @@ impl ID3D12Device3 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateCommittedResource(&self, pheapproperties: *const D3D12_HEAP_PROPERTIES, heapflags: D3D12_HEAP_FLAGS, pdesc: *const D3D12_RESOURCE_DESC, initialresourcestate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.base__.CreateCommittedResource)(::windows_core::Interface::as_raw(self), pheapproperties, heapflags, pdesc, initialresourcestate, ::core::mem::transmute(poptimizedclearvalue.unwrap_or(::std::ptr::null())), &T::IID, result__ as *mut _ as *mut _).ok() } pub unsafe fn CreateHeap(&self, pdesc: *const D3D12_HEAP_DESC, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.base__.CreateHeap)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, result__ as *mut _ as *mut _).ok() } @@ -4028,7 +3803,7 @@ impl ID3D12Device3 { pub unsafe fn CreatePlacedResource(&self, pheap: P0, heapoffset: u64, pdesc: *const D3D12_RESOURCE_DESC, initialstate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -4036,7 +3811,7 @@ impl ID3D12Device3 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateReservedResource(&self, pdesc: *const D3D12_RESOURCE_DESC, initialstate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.base__.CreateReservedResource)(::windows_core::Interface::as_raw(self), pdesc, initialstate, ::core::mem::transmute(poptimizedclearvalue.unwrap_or(::std::ptr::null())), &T::IID, result__ as *mut _ as *mut _).ok() } @@ -4053,7 +3828,7 @@ impl ID3D12Device3 { pub unsafe fn OpenSharedHandle(&self, nthandle: P0, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -4072,7 +3847,7 @@ impl ID3D12Device3 { } pub unsafe fn CreateFence(&self, initialvalue: u64, flags: D3D12_FENCE_FLAGS) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.CreateFence)(::windows_core::Interface::as_raw(self), initialvalue, flags, &T::IID, &mut result__).from_abi(result__) @@ -4087,7 +3862,7 @@ impl ID3D12Device3 { } pub unsafe fn CreateQueryHeap(&self, pdesc: *const D3D12_QUERY_HEAP_DESC, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.base__.CreateQueryHeap)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, result__ as *mut _ as *mut _).ok() } @@ -4100,7 +3875,7 @@ impl ID3D12Device3 { pub unsafe fn CreateCommandSignature(&self, pdesc: *const D3D12_COMMAND_SIGNATURE_DESC, prootsignature: P0, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -4117,7 +3892,7 @@ impl ID3D12Device3 { } pub unsafe fn CreatePipelineLibrary(&self, plibraryblob: &[u8]) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.CreatePipelineLibrary)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(plibraryblob.as_ptr()), plibraryblob.len().try_into().unwrap(), &T::IID, &mut result__).from_abi(result__) @@ -4133,14 +3908,14 @@ impl ID3D12Device3 { } pub unsafe fn CreatePipelineState(&self, pdesc: *const D3D12_PIPELINE_STATE_STREAM_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.CreatePipelineState)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) } pub unsafe fn OpenExistingHeapFromAddress(&self, paddress: *const ::core::ffi::c_void) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).OpenExistingHeapFromAddress)(::windows_core::Interface::as_raw(self), paddress, &T::IID, &mut result__).from_abi(result__) @@ -4148,7 +3923,7 @@ impl ID3D12Device3 { pub unsafe fn OpenExistingHeapFromFileMapping(&self, hfilemapping: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -4160,15 +3935,8 @@ impl ID3D12Device3 { (::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::imp::interface_hierarchy!(ID3D12Device3, ::windows_core::IUnknown, ID3D12Object, ID3D12Device, ID3D12Device1, ID3D12Device2); unsafe impl ::core::marker::Send for ID3D12Device3 {} unsafe impl ::core::marker::Sync for ID3D12Device3 {} -unsafe impl ::windows_core::Interface for ID3D12Device3 { - type Vtable = ID3D12Device3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12Device3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x81dadc15_2bad_4392_93c5_101345c4aa98); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12Device3_Vtbl { @@ -4177,9 +3945,8 @@ pub struct ID3D12Device3_Vtbl { pub OpenExistingHeapFromFileMapping: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hfilemapping: super::super::Foundation::HANDLE, riid: *const ::windows_core::GUID, ppvheap: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub EnqueueMakeResident: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: D3D12_RESIDENCY_FLAGS, numobjects: u32, ppobjects: *const *mut ::core::ffi::c_void, pfencetosignal: *mut ::core::ffi::c_void, fencevaluetosignal: u64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12Device4(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12Device4, ID3D12Device4_Vtbl, 0xe865df17_a9ee_46f9_a463_3098315aa2e5); +::windows_core::imp::interface_hierarchy!(ID3D12Device4, ::windows_core::IUnknown, ID3D12Object, ID3D12Device, ID3D12Device1, ID3D12Device2, ID3D12Device3); impl ID3D12Device4 { pub unsafe fn GetPrivateData(&self, guid: *const ::windows_core::GUID, pdatasize: *mut u32, pdata: ::core::option::Option<*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), guid, pdatasize, ::core::mem::transmute(pdata.unwrap_or(::std::ptr::null_mut()))).ok() @@ -4204,14 +3971,14 @@ impl ID3D12Device4 { } pub unsafe fn CreateCommandQueue(&self, pdesc: *const D3D12_COMMAND_QUEUE_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateCommandQueue)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) } pub unsafe fn CreateCommandAllocator(&self, r#type: D3D12_COMMAND_LIST_TYPE) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateCommandAllocator)(::windows_core::Interface::as_raw(self), r#type, &T::IID, &mut result__).from_abi(result__) @@ -4220,14 +3987,14 @@ impl ID3D12Device4 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateGraphicsPipelineState(&self, pdesc: *const D3D12_GRAPHICS_PIPELINE_STATE_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateGraphicsPipelineState)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) } pub unsafe fn CreateComputePipelineState(&self, pdesc: *const D3D12_COMPUTE_PIPELINE_STATE_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateComputePipelineState)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) @@ -4236,7 +4003,7 @@ impl ID3D12Device4 { where P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -4246,7 +4013,7 @@ impl ID3D12Device4 { } pub unsafe fn CreateDescriptorHeap(&self, pdescriptorheapdesc: *const D3D12_DESCRIPTOR_HEAP_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateDescriptorHeap)(::windows_core::Interface::as_raw(self), pdescriptorheapdesc, &T::IID, &mut result__).from_abi(result__) @@ -4256,7 +4023,7 @@ impl ID3D12Device4 { } pub unsafe fn CreateRootSignature(&self, nodemask: u32, pblobwithrootsignature: &[u8]) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateRootSignature)(::windows_core::Interface::as_raw(self), nodemask, ::core::mem::transmute(pblobwithrootsignature.as_ptr()), pblobwithrootsignature.len().try_into().unwrap(), &T::IID, &mut result__).from_abi(result__) @@ -4322,13 +4089,13 @@ impl ID3D12Device4 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateCommittedResource(&self, pheapproperties: *const D3D12_HEAP_PROPERTIES, heapflags: D3D12_HEAP_FLAGS, pdesc: *const D3D12_RESOURCE_DESC, initialresourcestate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateCommittedResource)(::windows_core::Interface::as_raw(self), pheapproperties, heapflags, pdesc, initialresourcestate, ::core::mem::transmute(poptimizedclearvalue.unwrap_or(::std::ptr::null())), &T::IID, result__ as *mut _ as *mut _).ok() } pub unsafe fn CreateHeap(&self, pdesc: *const D3D12_HEAP_DESC, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateHeap)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, result__ as *mut _ as *mut _).ok() } @@ -4337,7 +4104,7 @@ impl ID3D12Device4 { pub unsafe fn CreatePlacedResource(&self, pheap: P0, heapoffset: u64, pdesc: *const D3D12_RESOURCE_DESC, initialstate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -4345,7 +4112,7 @@ impl ID3D12Device4 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateReservedResource(&self, pdesc: *const D3D12_RESOURCE_DESC, initialstate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateReservedResource)(::windows_core::Interface::as_raw(self), pdesc, initialstate, ::core::mem::transmute(poptimizedclearvalue.unwrap_or(::std::ptr::null())), &T::IID, result__ as *mut _ as *mut _).ok() } @@ -4362,7 +4129,7 @@ impl ID3D12Device4 { pub unsafe fn OpenSharedHandle(&self, nthandle: P0, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -4381,7 +4148,7 @@ impl ID3D12Device4 { } pub unsafe fn CreateFence(&self, initialvalue: u64, flags: D3D12_FENCE_FLAGS) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateFence)(::windows_core::Interface::as_raw(self), initialvalue, flags, &T::IID, &mut result__).from_abi(result__) @@ -4396,7 +4163,7 @@ impl ID3D12Device4 { } pub unsafe fn CreateQueryHeap(&self, pdesc: *const D3D12_QUERY_HEAP_DESC, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateQueryHeap)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, result__ as *mut _ as *mut _).ok() } @@ -4409,7 +4176,7 @@ impl ID3D12Device4 { pub unsafe fn CreateCommandSignature(&self, pdesc: *const D3D12_COMMAND_SIGNATURE_DESC, prootsignature: P0, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -4426,7 +4193,7 @@ impl ID3D12Device4 { } pub unsafe fn CreatePipelineLibrary(&self, plibraryblob: &[u8]) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.CreatePipelineLibrary)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(plibraryblob.as_ptr()), plibraryblob.len().try_into().unwrap(), &T::IID, &mut result__).from_abi(result__) @@ -4442,14 +4209,14 @@ impl ID3D12Device4 { } pub unsafe fn CreatePipelineState(&self, pdesc: *const D3D12_PIPELINE_STATE_STREAM_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.CreatePipelineState)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) } pub unsafe fn OpenExistingHeapFromAddress(&self, paddress: *const ::core::ffi::c_void) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.OpenExistingHeapFromAddress)(::windows_core::Interface::as_raw(self), paddress, &T::IID, &mut result__).from_abi(result__) @@ -4457,7 +4224,7 @@ impl ID3D12Device4 { pub unsafe fn OpenExistingHeapFromFileMapping(&self, hfilemapping: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -4470,14 +4237,14 @@ impl ID3D12Device4 { } pub unsafe fn CreateCommandList1(&self, nodemask: u32, r#type: D3D12_COMMAND_LIST_TYPE, flags: D3D12_COMMAND_LIST_FLAGS) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).CreateCommandList1)(::windows_core::Interface::as_raw(self), nodemask, r#type, flags, &T::IID, &mut result__).from_abi(result__) } pub unsafe fn CreateProtectedResourceSession(&self, pdesc: *const D3D12_PROTECTED_RESOURCE_SESSION_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).CreateProtectedResourceSession)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) @@ -4487,14 +4254,14 @@ impl ID3D12Device4 { pub unsafe fn CreateCommittedResource1(&self, pheapproperties: *const D3D12_HEAP_PROPERTIES, heapflags: D3D12_HEAP_FLAGS, pdesc: *const D3D12_RESOURCE_DESC, initialresourcestate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, pprotectedsession: P0, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } pub unsafe fn CreateHeap1(&self, pdesc: *const D3D12_HEAP_DESC, pprotectedsession: P0, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -4503,7 +4270,7 @@ impl ID3D12Device4 { pub unsafe fn CreateReservedResource1(&self, pdesc: *const D3D12_RESOURCE_DESC, initialstate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, pprotectedsession: P0, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -4515,15 +4282,8 @@ impl ID3D12Device4 { result__ } } -::windows_core::imp::interface_hierarchy!(ID3D12Device4, ::windows_core::IUnknown, ID3D12Object, ID3D12Device, ID3D12Device1, ID3D12Device2, ID3D12Device3); unsafe impl ::core::marker::Send for ID3D12Device4 {} unsafe impl ::core::marker::Sync for ID3D12Device4 {} -unsafe impl ::windows_core::Interface for ID3D12Device4 { - type Vtable = ID3D12Device4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12Device4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe865df17_a9ee_46f9_a463_3098315aa2e5); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12Device4_Vtbl { @@ -4544,9 +4304,8 @@ pub struct ID3D12Device4_Vtbl { #[cfg(not(feature = "Win32_Graphics_Dxgi_Common"))] GetResourceAllocationInfo1: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12Device5(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12Device5, ID3D12Device5_Vtbl, 0x8b4f173b_2fea_4b80_8f58_4307191ab95d); +::windows_core::imp::interface_hierarchy!(ID3D12Device5, ::windows_core::IUnknown, ID3D12Object, ID3D12Device, ID3D12Device1, ID3D12Device2, ID3D12Device3, ID3D12Device4); impl ID3D12Device5 { pub unsafe fn GetPrivateData(&self, guid: *const ::windows_core::GUID, pdatasize: *mut u32, pdata: ::core::option::Option<*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), guid, pdatasize, ::core::mem::transmute(pdata.unwrap_or(::std::ptr::null_mut()))).ok() @@ -4571,14 +4330,14 @@ impl ID3D12Device5 { } pub unsafe fn CreateCommandQueue(&self, pdesc: *const D3D12_COMMAND_QUEUE_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateCommandQueue)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) } pub unsafe fn CreateCommandAllocator(&self, r#type: D3D12_COMMAND_LIST_TYPE) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateCommandAllocator)(::windows_core::Interface::as_raw(self), r#type, &T::IID, &mut result__).from_abi(result__) @@ -4587,14 +4346,14 @@ impl ID3D12Device5 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateGraphicsPipelineState(&self, pdesc: *const D3D12_GRAPHICS_PIPELINE_STATE_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateGraphicsPipelineState)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) } pub unsafe fn CreateComputePipelineState(&self, pdesc: *const D3D12_COMPUTE_PIPELINE_STATE_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateComputePipelineState)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) @@ -4603,7 +4362,7 @@ impl ID3D12Device5 { where P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -4613,7 +4372,7 @@ impl ID3D12Device5 { } pub unsafe fn CreateDescriptorHeap(&self, pdescriptorheapdesc: *const D3D12_DESCRIPTOR_HEAP_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateDescriptorHeap)(::windows_core::Interface::as_raw(self), pdescriptorheapdesc, &T::IID, &mut result__).from_abi(result__) @@ -4623,7 +4382,7 @@ impl ID3D12Device5 { } pub unsafe fn CreateRootSignature(&self, nodemask: u32, pblobwithrootsignature: &[u8]) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateRootSignature)(::windows_core::Interface::as_raw(self), nodemask, ::core::mem::transmute(pblobwithrootsignature.as_ptr()), pblobwithrootsignature.len().try_into().unwrap(), &T::IID, &mut result__).from_abi(result__) @@ -4689,13 +4448,13 @@ impl ID3D12Device5 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateCommittedResource(&self, pheapproperties: *const D3D12_HEAP_PROPERTIES, heapflags: D3D12_HEAP_FLAGS, pdesc: *const D3D12_RESOURCE_DESC, initialresourcestate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateCommittedResource)(::windows_core::Interface::as_raw(self), pheapproperties, heapflags, pdesc, initialresourcestate, ::core::mem::transmute(poptimizedclearvalue.unwrap_or(::std::ptr::null())), &T::IID, result__ as *mut _ as *mut _).ok() } pub unsafe fn CreateHeap(&self, pdesc: *const D3D12_HEAP_DESC, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateHeap)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, result__ as *mut _ as *mut _).ok() } @@ -4704,7 +4463,7 @@ impl ID3D12Device5 { pub unsafe fn CreatePlacedResource(&self, pheap: P0, heapoffset: u64, pdesc: *const D3D12_RESOURCE_DESC, initialstate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -4712,7 +4471,7 @@ impl ID3D12Device5 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateReservedResource(&self, pdesc: *const D3D12_RESOURCE_DESC, initialstate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateReservedResource)(::windows_core::Interface::as_raw(self), pdesc, initialstate, ::core::mem::transmute(poptimizedclearvalue.unwrap_or(::std::ptr::null())), &T::IID, result__ as *mut _ as *mut _).ok() } @@ -4729,7 +4488,7 @@ impl ID3D12Device5 { pub unsafe fn OpenSharedHandle(&self, nthandle: P0, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -4748,7 +4507,7 @@ impl ID3D12Device5 { } pub unsafe fn CreateFence(&self, initialvalue: u64, flags: D3D12_FENCE_FLAGS) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateFence)(::windows_core::Interface::as_raw(self), initialvalue, flags, &T::IID, &mut result__).from_abi(result__) @@ -4763,7 +4522,7 @@ impl ID3D12Device5 { } pub unsafe fn CreateQueryHeap(&self, pdesc: *const D3D12_QUERY_HEAP_DESC, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateQueryHeap)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, result__ as *mut _ as *mut _).ok() } @@ -4776,7 +4535,7 @@ impl ID3D12Device5 { pub unsafe fn CreateCommandSignature(&self, pdesc: *const D3D12_COMMAND_SIGNATURE_DESC, prootsignature: P0, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -4793,7 +4552,7 @@ impl ID3D12Device5 { } pub unsafe fn CreatePipelineLibrary(&self, plibraryblob: &[u8]) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.CreatePipelineLibrary)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(plibraryblob.as_ptr()), plibraryblob.len().try_into().unwrap(), &T::IID, &mut result__).from_abi(result__) @@ -4809,14 +4568,14 @@ impl ID3D12Device5 { } pub unsafe fn CreatePipelineState(&self, pdesc: *const D3D12_PIPELINE_STATE_STREAM_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.CreatePipelineState)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) } pub unsafe fn OpenExistingHeapFromAddress(&self, paddress: *const ::core::ffi::c_void) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.OpenExistingHeapFromAddress)(::windows_core::Interface::as_raw(self), paddress, &T::IID, &mut result__).from_abi(result__) @@ -4824,7 +4583,7 @@ impl ID3D12Device5 { pub unsafe fn OpenExistingHeapFromFileMapping(&self, hfilemapping: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -4837,14 +4596,14 @@ impl ID3D12Device5 { } pub unsafe fn CreateCommandList1(&self, nodemask: u32, r#type: D3D12_COMMAND_LIST_TYPE, flags: D3D12_COMMAND_LIST_FLAGS) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.CreateCommandList1)(::windows_core::Interface::as_raw(self), nodemask, r#type, flags, &T::IID, &mut result__).from_abi(result__) } pub unsafe fn CreateProtectedResourceSession(&self, pdesc: *const D3D12_PROTECTED_RESOURCE_SESSION_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.CreateProtectedResourceSession)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) @@ -4854,14 +4613,14 @@ impl ID3D12Device5 { pub unsafe fn CreateCommittedResource1(&self, pheapproperties: *const D3D12_HEAP_PROPERTIES, heapflags: D3D12_HEAP_FLAGS, pdesc: *const D3D12_RESOURCE_DESC, initialresourcestate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, pprotectedsession: P0, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } pub unsafe fn CreateHeap1(&self, pdesc: *const D3D12_HEAP_DESC, pprotectedsession: P0, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -4870,7 +4629,7 @@ impl ID3D12Device5 { pub unsafe fn CreateReservedResource1(&self, pdesc: *const D3D12_RESOURCE_DESC, initialstate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, pprotectedsession: P0, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -4884,7 +4643,7 @@ impl ID3D12Device5 { pub unsafe fn CreateLifetimeTracker(&self, powner: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -4900,14 +4659,14 @@ impl ID3D12Device5 { } pub unsafe fn CreateMetaCommand(&self, commandid: *const ::windows_core::GUID, nodemask: u32, pcreationparametersdata: ::core::option::Option<*const ::core::ffi::c_void>, creationparametersdatasizeinbytes: usize) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).CreateMetaCommand)(::windows_core::Interface::as_raw(self), commandid, nodemask, ::core::mem::transmute(pcreationparametersdata.unwrap_or(::std::ptr::null())), creationparametersdatasizeinbytes, &T::IID, &mut result__).from_abi(result__) } pub unsafe fn CreateStateObject(&self, pdesc: *const D3D12_STATE_OBJECT_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).CreateStateObject)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) @@ -4921,15 +4680,8 @@ impl ID3D12Device5 { (::windows_core::Interface::vtable(self).CheckDriverMatchingIdentifier)(::windows_core::Interface::as_raw(self), serializeddatatype, pidentifiertocheck) } } -::windows_core::imp::interface_hierarchy!(ID3D12Device5, ::windows_core::IUnknown, ID3D12Object, ID3D12Device, ID3D12Device1, ID3D12Device2, ID3D12Device3, ID3D12Device4); unsafe impl ::core::marker::Send for ID3D12Device5 {} unsafe impl ::core::marker::Sync for ID3D12Device5 {} -unsafe impl ::windows_core::Interface for ID3D12Device5 { - type Vtable = ID3D12Device5_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12Device5 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8b4f173b_2fea_4b80_8f58_4307191ab95d); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12Device5_Vtbl { @@ -4946,9 +4698,8 @@ pub struct ID3D12Device5_Vtbl { GetRaytracingAccelerationStructurePrebuildInfo: usize, pub CheckDriverMatchingIdentifier: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, serializeddatatype: D3D12_SERIALIZED_DATA_TYPE, pidentifiertocheck: *const D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER) -> D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12Device6(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12Device6, ID3D12Device6_Vtbl, 0xc70b221b_40e4_4a17_89af_025a0727a6dc); +::windows_core::imp::interface_hierarchy!(ID3D12Device6, ::windows_core::IUnknown, ID3D12Object, ID3D12Device, ID3D12Device1, ID3D12Device2, ID3D12Device3, ID3D12Device4, ID3D12Device5); impl ID3D12Device6 { pub unsafe fn GetPrivateData(&self, guid: *const ::windows_core::GUID, pdatasize: *mut u32, pdata: ::core::option::Option<*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), guid, pdatasize, ::core::mem::transmute(pdata.unwrap_or(::std::ptr::null_mut()))).ok() @@ -4973,14 +4724,14 @@ impl ID3D12Device6 { } pub unsafe fn CreateCommandQueue(&self, pdesc: *const D3D12_COMMAND_QUEUE_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateCommandQueue)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) } pub unsafe fn CreateCommandAllocator(&self, r#type: D3D12_COMMAND_LIST_TYPE) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateCommandAllocator)(::windows_core::Interface::as_raw(self), r#type, &T::IID, &mut result__).from_abi(result__) @@ -4989,14 +4740,14 @@ impl ID3D12Device6 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateGraphicsPipelineState(&self, pdesc: *const D3D12_GRAPHICS_PIPELINE_STATE_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateGraphicsPipelineState)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) } pub unsafe fn CreateComputePipelineState(&self, pdesc: *const D3D12_COMPUTE_PIPELINE_STATE_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateComputePipelineState)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) @@ -5005,7 +4756,7 @@ impl ID3D12Device6 { where P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -5015,7 +4766,7 @@ impl ID3D12Device6 { } pub unsafe fn CreateDescriptorHeap(&self, pdescriptorheapdesc: *const D3D12_DESCRIPTOR_HEAP_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateDescriptorHeap)(::windows_core::Interface::as_raw(self), pdescriptorheapdesc, &T::IID, &mut result__).from_abi(result__) @@ -5025,7 +4776,7 @@ impl ID3D12Device6 { } pub unsafe fn CreateRootSignature(&self, nodemask: u32, pblobwithrootsignature: &[u8]) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateRootSignature)(::windows_core::Interface::as_raw(self), nodemask, ::core::mem::transmute(pblobwithrootsignature.as_ptr()), pblobwithrootsignature.len().try_into().unwrap(), &T::IID, &mut result__).from_abi(result__) @@ -5091,13 +4842,13 @@ impl ID3D12Device6 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateCommittedResource(&self, pheapproperties: *const D3D12_HEAP_PROPERTIES, heapflags: D3D12_HEAP_FLAGS, pdesc: *const D3D12_RESOURCE_DESC, initialresourcestate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateCommittedResource)(::windows_core::Interface::as_raw(self), pheapproperties, heapflags, pdesc, initialresourcestate, ::core::mem::transmute(poptimizedclearvalue.unwrap_or(::std::ptr::null())), &T::IID, result__ as *mut _ as *mut _).ok() } pub unsafe fn CreateHeap(&self, pdesc: *const D3D12_HEAP_DESC, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateHeap)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, result__ as *mut _ as *mut _).ok() } @@ -5106,7 +4857,7 @@ impl ID3D12Device6 { pub unsafe fn CreatePlacedResource(&self, pheap: P0, heapoffset: u64, pdesc: *const D3D12_RESOURCE_DESC, initialstate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -5114,7 +4865,7 @@ impl ID3D12Device6 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateReservedResource(&self, pdesc: *const D3D12_RESOURCE_DESC, initialstate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateReservedResource)(::windows_core::Interface::as_raw(self), pdesc, initialstate, ::core::mem::transmute(poptimizedclearvalue.unwrap_or(::std::ptr::null())), &T::IID, result__ as *mut _ as *mut _).ok() } @@ -5131,7 +4882,7 @@ impl ID3D12Device6 { pub unsafe fn OpenSharedHandle(&self, nthandle: P0, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -5150,7 +4901,7 @@ impl ID3D12Device6 { } pub unsafe fn CreateFence(&self, initialvalue: u64, flags: D3D12_FENCE_FLAGS) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateFence)(::windows_core::Interface::as_raw(self), initialvalue, flags, &T::IID, &mut result__).from_abi(result__) @@ -5165,7 +4916,7 @@ impl ID3D12Device6 { } pub unsafe fn CreateQueryHeap(&self, pdesc: *const D3D12_QUERY_HEAP_DESC, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreateQueryHeap)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, result__ as *mut _ as *mut _).ok() } @@ -5178,7 +4929,7 @@ impl ID3D12Device6 { pub unsafe fn CreateCommandSignature(&self, pdesc: *const D3D12_COMMAND_SIGNATURE_DESC, prootsignature: P0, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -5195,7 +4946,7 @@ impl ID3D12Device6 { } pub unsafe fn CreatePipelineLibrary(&self, plibraryblob: &[u8]) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreatePipelineLibrary)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(plibraryblob.as_ptr()), plibraryblob.len().try_into().unwrap(), &T::IID, &mut result__).from_abi(result__) @@ -5211,14 +4962,14 @@ impl ID3D12Device6 { } pub unsafe fn CreatePipelineState(&self, pdesc: *const D3D12_PIPELINE_STATE_STREAM_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.CreatePipelineState)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) } pub unsafe fn OpenExistingHeapFromAddress(&self, paddress: *const ::core::ffi::c_void) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.OpenExistingHeapFromAddress)(::windows_core::Interface::as_raw(self), paddress, &T::IID, &mut result__).from_abi(result__) @@ -5226,7 +4977,7 @@ impl ID3D12Device6 { pub unsafe fn OpenExistingHeapFromFileMapping(&self, hfilemapping: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -5239,14 +4990,14 @@ impl ID3D12Device6 { } pub unsafe fn CreateCommandList1(&self, nodemask: u32, r#type: D3D12_COMMAND_LIST_TYPE, flags: D3D12_COMMAND_LIST_FLAGS) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.CreateCommandList1)(::windows_core::Interface::as_raw(self), nodemask, r#type, flags, &T::IID, &mut result__).from_abi(result__) } pub unsafe fn CreateProtectedResourceSession(&self, pdesc: *const D3D12_PROTECTED_RESOURCE_SESSION_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.CreateProtectedResourceSession)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) @@ -5256,14 +5007,14 @@ impl ID3D12Device6 { pub unsafe fn CreateCommittedResource1(&self, pheapproperties: *const D3D12_HEAP_PROPERTIES, heapflags: D3D12_HEAP_FLAGS, pdesc: *const D3D12_RESOURCE_DESC, initialresourcestate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, pprotectedsession: P0, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } pub unsafe fn CreateHeap1(&self, pdesc: *const D3D12_HEAP_DESC, pprotectedsession: P0, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -5272,7 +5023,7 @@ impl ID3D12Device6 { pub unsafe fn CreateReservedResource1(&self, pdesc: *const D3D12_RESOURCE_DESC, initialstate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, pprotectedsession: P0, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -5286,7 +5037,7 @@ impl ID3D12Device6 { pub unsafe fn CreateLifetimeTracker(&self, powner: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -5302,14 +5053,14 @@ impl ID3D12Device6 { } pub unsafe fn CreateMetaCommand(&self, commandid: *const ::windows_core::GUID, nodemask: u32, pcreationparametersdata: ::core::option::Option<*const ::core::ffi::c_void>, creationparametersdatasizeinbytes: usize) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.CreateMetaCommand)(::windows_core::Interface::as_raw(self), commandid, nodemask, ::core::mem::transmute(pcreationparametersdata.unwrap_or(::std::ptr::null())), creationparametersdatasizeinbytes, &T::IID, &mut result__).from_abi(result__) } pub unsafe fn CreateStateObject(&self, pdesc: *const D3D12_STATE_OBJECT_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.CreateStateObject)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) @@ -5329,24 +5080,16 @@ impl ID3D12Device6 { (::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::imp::interface_hierarchy!(ID3D12Device6, ::windows_core::IUnknown, ID3D12Object, ID3D12Device, ID3D12Device1, ID3D12Device2, ID3D12Device3, ID3D12Device4, ID3D12Device5); unsafe impl ::core::marker::Send for ID3D12Device6 {} unsafe impl ::core::marker::Sync for ID3D12Device6 {} -unsafe impl ::windows_core::Interface for ID3D12Device6 { - type Vtable = ID3D12Device6_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12Device6 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc70b221b_40e4_4a17_89af_025a0727a6dc); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12Device6_Vtbl { pub base__: ID3D12Device5_Vtbl, pub SetBackgroundProcessingMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mode: D3D12_BACKGROUND_PROCESSING_MODE, measurementsaction: D3D12_MEASUREMENTS_ACTION, heventtosignaluponcompletion: super::super::Foundation::HANDLE, pbfurthermeasurementsdesired: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12Device7(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12Device7, ID3D12Device7_Vtbl, 0x5c014b53_68a1_4b9b_8bd1_dd6046b9358b); +::windows_core::imp::interface_hierarchy!(ID3D12Device7, ::windows_core::IUnknown, ID3D12Object, ID3D12Device, ID3D12Device1, ID3D12Device2, ID3D12Device3, ID3D12Device4, ID3D12Device5, ID3D12Device6); impl ID3D12Device7 { pub unsafe fn GetPrivateData(&self, guid: *const ::windows_core::GUID, pdatasize: *mut u32, pdata: ::core::option::Option<*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), guid, pdatasize, ::core::mem::transmute(pdata.unwrap_or(::std::ptr::null_mut()))).ok() @@ -5371,14 +5114,14 @@ impl ID3D12Device7 { } pub unsafe fn CreateCommandQueue(&self, pdesc: *const D3D12_COMMAND_QUEUE_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateCommandQueue)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) } pub unsafe fn CreateCommandAllocator(&self, r#type: D3D12_COMMAND_LIST_TYPE) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateCommandAllocator)(::windows_core::Interface::as_raw(self), r#type, &T::IID, &mut result__).from_abi(result__) @@ -5387,14 +5130,14 @@ impl ID3D12Device7 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateGraphicsPipelineState(&self, pdesc: *const D3D12_GRAPHICS_PIPELINE_STATE_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateGraphicsPipelineState)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) } pub unsafe fn CreateComputePipelineState(&self, pdesc: *const D3D12_COMPUTE_PIPELINE_STATE_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateComputePipelineState)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) @@ -5403,7 +5146,7 @@ impl ID3D12Device7 { where P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -5413,7 +5156,7 @@ impl ID3D12Device7 { } pub unsafe fn CreateDescriptorHeap(&self, pdescriptorheapdesc: *const D3D12_DESCRIPTOR_HEAP_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateDescriptorHeap)(::windows_core::Interface::as_raw(self), pdescriptorheapdesc, &T::IID, &mut result__).from_abi(result__) @@ -5423,7 +5166,7 @@ impl ID3D12Device7 { } pub unsafe fn CreateRootSignature(&self, nodemask: u32, pblobwithrootsignature: &[u8]) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateRootSignature)(::windows_core::Interface::as_raw(self), nodemask, ::core::mem::transmute(pblobwithrootsignature.as_ptr()), pblobwithrootsignature.len().try_into().unwrap(), &T::IID, &mut result__).from_abi(result__) @@ -5489,13 +5232,13 @@ impl ID3D12Device7 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateCommittedResource(&self, pheapproperties: *const D3D12_HEAP_PROPERTIES, heapflags: D3D12_HEAP_FLAGS, pdesc: *const D3D12_RESOURCE_DESC, initialresourcestate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateCommittedResource)(::windows_core::Interface::as_raw(self), pheapproperties, heapflags, pdesc, initialresourcestate, ::core::mem::transmute(poptimizedclearvalue.unwrap_or(::std::ptr::null())), &T::IID, result__ as *mut _ as *mut _).ok() } pub unsafe fn CreateHeap(&self, pdesc: *const D3D12_HEAP_DESC, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateHeap)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, result__ as *mut _ as *mut _).ok() } @@ -5504,7 +5247,7 @@ impl ID3D12Device7 { pub unsafe fn CreatePlacedResource(&self, pheap: P0, heapoffset: u64, pdesc: *const D3D12_RESOURCE_DESC, initialstate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -5512,7 +5255,7 @@ impl ID3D12Device7 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateReservedResource(&self, pdesc: *const D3D12_RESOURCE_DESC, initialstate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateReservedResource)(::windows_core::Interface::as_raw(self), pdesc, initialstate, ::core::mem::transmute(poptimizedclearvalue.unwrap_or(::std::ptr::null())), &T::IID, result__ as *mut _ as *mut _).ok() } @@ -5529,7 +5272,7 @@ impl ID3D12Device7 { pub unsafe fn OpenSharedHandle(&self, nthandle: P0, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -5548,7 +5291,7 @@ impl ID3D12Device7 { } pub unsafe fn CreateFence(&self, initialvalue: u64, flags: D3D12_FENCE_FLAGS) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateFence)(::windows_core::Interface::as_raw(self), initialvalue, flags, &T::IID, &mut result__).from_abi(result__) @@ -5563,7 +5306,7 @@ impl ID3D12Device7 { } pub unsafe fn CreateQueryHeap(&self, pdesc: *const D3D12_QUERY_HEAP_DESC, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreateQueryHeap)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, result__ as *mut _ as *mut _).ok() } @@ -5576,7 +5319,7 @@ impl ID3D12Device7 { pub unsafe fn CreateCommandSignature(&self, pdesc: *const D3D12_COMMAND_SIGNATURE_DESC, prootsignature: P0, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -5593,7 +5336,7 @@ impl ID3D12Device7 { } pub unsafe fn CreatePipelineLibrary(&self, plibraryblob: &[u8]) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreatePipelineLibrary)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(plibraryblob.as_ptr()), plibraryblob.len().try_into().unwrap(), &T::IID, &mut result__).from_abi(result__) @@ -5609,14 +5352,14 @@ impl ID3D12Device7 { } pub unsafe fn CreatePipelineState(&self, pdesc: *const D3D12_PIPELINE_STATE_STREAM_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreatePipelineState)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) } pub unsafe fn OpenExistingHeapFromAddress(&self, paddress: *const ::core::ffi::c_void) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.OpenExistingHeapFromAddress)(::windows_core::Interface::as_raw(self), paddress, &T::IID, &mut result__).from_abi(result__) @@ -5624,7 +5367,7 @@ impl ID3D12Device7 { pub unsafe fn OpenExistingHeapFromFileMapping(&self, hfilemapping: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -5637,14 +5380,14 @@ impl ID3D12Device7 { } pub unsafe fn CreateCommandList1(&self, nodemask: u32, r#type: D3D12_COMMAND_LIST_TYPE, flags: D3D12_COMMAND_LIST_FLAGS) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.CreateCommandList1)(::windows_core::Interface::as_raw(self), nodemask, r#type, flags, &T::IID, &mut result__).from_abi(result__) } pub unsafe fn CreateProtectedResourceSession(&self, pdesc: *const D3D12_PROTECTED_RESOURCE_SESSION_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.CreateProtectedResourceSession)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) @@ -5654,14 +5397,14 @@ impl ID3D12Device7 { pub unsafe fn CreateCommittedResource1(&self, pheapproperties: *const D3D12_HEAP_PROPERTIES, heapflags: D3D12_HEAP_FLAGS, pdesc: *const D3D12_RESOURCE_DESC, initialresourcestate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, pprotectedsession: P0, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } pub unsafe fn CreateHeap1(&self, pdesc: *const D3D12_HEAP_DESC, pprotectedsession: P0, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -5670,7 +5413,7 @@ impl ID3D12Device7 { pub unsafe fn CreateReservedResource1(&self, pdesc: *const D3D12_RESOURCE_DESC, initialstate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, pprotectedsession: P0, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -5684,7 +5427,7 @@ impl ID3D12Device7 { pub unsafe fn CreateLifetimeTracker(&self, powner: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -5700,14 +5443,14 @@ impl ID3D12Device7 { } pub unsafe fn CreateMetaCommand(&self, commandid: *const ::windows_core::GUID, nodemask: u32, pcreationparametersdata: ::core::option::Option<*const ::core::ffi::c_void>, creationparametersdatasizeinbytes: usize) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.CreateMetaCommand)(::windows_core::Interface::as_raw(self), commandid, nodemask, ::core::mem::transmute(pcreationparametersdata.unwrap_or(::std::ptr::null())), creationparametersdatasizeinbytes, &T::IID, &mut result__).from_abi(result__) } pub unsafe fn CreateStateObject(&self, pdesc: *const D3D12_STATE_OBJECT_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.CreateStateObject)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) @@ -5729,28 +5472,21 @@ impl ID3D12Device7 { pub unsafe fn AddToStateObject(&self, paddition: *const D3D12_STATE_OBJECT_DESC, pstateobjecttogrowfrom: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) } pub unsafe fn CreateProtectedResourceSession1(&self, pdesc: *const D3D12_PROTECTED_RESOURCE_SESSION_DESC1) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).CreateProtectedResourceSession1)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ID3D12Device7, ::windows_core::IUnknown, ID3D12Object, ID3D12Device, ID3D12Device1, ID3D12Device2, ID3D12Device3, ID3D12Device4, ID3D12Device5, ID3D12Device6); unsafe impl ::core::marker::Send for ID3D12Device7 {} unsafe impl ::core::marker::Sync for ID3D12Device7 {} -unsafe impl ::windows_core::Interface for ID3D12Device7 { - type Vtable = ID3D12Device7_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12Device7 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5c014b53_68a1_4b9b_8bd1_dd6046b9358b); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12Device7_Vtbl { @@ -5758,9 +5494,8 @@ pub struct ID3D12Device7_Vtbl { pub AddToStateObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, paddition: *const D3D12_STATE_OBJECT_DESC, pstateobjecttogrowfrom: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppnewstateobject: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateProtectedResourceSession1: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdesc: *const D3D12_PROTECTED_RESOURCE_SESSION_DESC1, riid: *const ::windows_core::GUID, ppsession: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12Device8(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12Device8, ID3D12Device8_Vtbl, 0x9218e6bb_f944_4f7e_a75c_b1b2c7b701f3); +::windows_core::imp::interface_hierarchy!(ID3D12Device8, ::windows_core::IUnknown, ID3D12Object, ID3D12Device, ID3D12Device1, ID3D12Device2, ID3D12Device3, ID3D12Device4, ID3D12Device5, ID3D12Device6, ID3D12Device7); impl ID3D12Device8 { pub unsafe fn GetPrivateData(&self, guid: *const ::windows_core::GUID, pdatasize: *mut u32, pdata: ::core::option::Option<*mut ::core::ffi::c_void>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.GetPrivateData)(::windows_core::Interface::as_raw(self), guid, pdatasize, ::core::mem::transmute(pdata.unwrap_or(::std::ptr::null_mut()))).ok() @@ -5785,14 +5520,14 @@ impl ID3D12Device8 { } pub unsafe fn CreateCommandQueue(&self, pdesc: *const D3D12_COMMAND_QUEUE_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CreateCommandQueue)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) } pub unsafe fn CreateCommandAllocator(&self, r#type: D3D12_COMMAND_LIST_TYPE) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CreateCommandAllocator)(::windows_core::Interface::as_raw(self), r#type, &T::IID, &mut result__).from_abi(result__) @@ -5801,14 +5536,14 @@ impl ID3D12Device8 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateGraphicsPipelineState(&self, pdesc: *const D3D12_GRAPHICS_PIPELINE_STATE_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CreateGraphicsPipelineState)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) } pub unsafe fn CreateComputePipelineState(&self, pdesc: *const D3D12_COMPUTE_PIPELINE_STATE_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CreateComputePipelineState)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) @@ -5817,7 +5552,7 @@ impl ID3D12Device8 { where P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -5827,7 +5562,7 @@ impl ID3D12Device8 { } pub unsafe fn CreateDescriptorHeap(&self, pdescriptorheapdesc: *const D3D12_DESCRIPTOR_HEAP_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CreateDescriptorHeap)(::windows_core::Interface::as_raw(self), pdescriptorheapdesc, &T::IID, &mut result__).from_abi(result__) @@ -5837,7 +5572,7 @@ impl ID3D12Device8 { } pub unsafe fn CreateRootSignature(&self, nodemask: u32, pblobwithrootsignature: &[u8]) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CreateRootSignature)(::windows_core::Interface::as_raw(self), nodemask, ::core::mem::transmute(pblobwithrootsignature.as_ptr()), pblobwithrootsignature.len().try_into().unwrap(), &T::IID, &mut result__).from_abi(result__) @@ -5903,13 +5638,13 @@ impl ID3D12Device8 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateCommittedResource(&self, pheapproperties: *const D3D12_HEAP_PROPERTIES, heapflags: D3D12_HEAP_FLAGS, pdesc: *const D3D12_RESOURCE_DESC, initialresourcestate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CreateCommittedResource)(::windows_core::Interface::as_raw(self), pheapproperties, heapflags, pdesc, initialresourcestate, ::core::mem::transmute(poptimizedclearvalue.unwrap_or(::std::ptr::null())), &T::IID, result__ as *mut _ as *mut _).ok() } pub unsafe fn CreateHeap(&self, pdesc: *const D3D12_HEAP_DESC, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CreateHeap)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, result__ as *mut _ as *mut _).ok() } @@ -5918,7 +5653,7 @@ impl ID3D12Device8 { pub unsafe fn CreatePlacedResource(&self, pheap: P0, heapoffset: u64, pdesc: *const D3D12_RESOURCE_DESC, initialstate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -5926,7 +5661,7 @@ impl ID3D12Device8 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateReservedResource(&self, pdesc: *const D3D12_RESOURCE_DESC, initialstate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CreateReservedResource)(::windows_core::Interface::as_raw(self), pdesc, initialstate, ::core::mem::transmute(poptimizedclearvalue.unwrap_or(::std::ptr::null())), &T::IID, result__ as *mut _ as *mut _).ok() } @@ -5943,7 +5678,7 @@ impl ID3D12Device8 { pub unsafe fn OpenSharedHandle(&self, nthandle: P0, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -5962,7 +5697,7 @@ impl ID3D12Device8 { } pub unsafe fn CreateFence(&self, initialvalue: u64, flags: D3D12_FENCE_FLAGS) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CreateFence)(::windows_core::Interface::as_raw(self), initialvalue, flags, &T::IID, &mut result__).from_abi(result__) @@ -5977,7 +5712,7 @@ impl ID3D12Device8 { } pub unsafe fn CreateQueryHeap(&self, pdesc: *const D3D12_QUERY_HEAP_DESC, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CreateQueryHeap)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, result__ as *mut _ as *mut _).ok() } @@ -5990,7 +5725,7 @@ impl ID3D12Device8 { pub unsafe fn CreateCommandSignature(&self, pdesc: *const D3D12_COMMAND_SIGNATURE_DESC, prootsignature: P0, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -6007,7 +5742,7 @@ impl ID3D12Device8 { } pub unsafe fn CreatePipelineLibrary(&self, plibraryblob: &[u8]) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreatePipelineLibrary)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(plibraryblob.as_ptr()), plibraryblob.len().try_into().unwrap(), &T::IID, &mut result__).from_abi(result__) @@ -6023,14 +5758,14 @@ impl ID3D12Device8 { } pub unsafe fn CreatePipelineState(&self, pdesc: *const D3D12_PIPELINE_STATE_STREAM_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CreatePipelineState)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) } pub unsafe fn OpenExistingHeapFromAddress(&self, paddress: *const ::core::ffi::c_void) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.OpenExistingHeapFromAddress)(::windows_core::Interface::as_raw(self), paddress, &T::IID, &mut result__).from_abi(result__) @@ -6038,7 +5773,7 @@ impl ID3D12Device8 { pub unsafe fn OpenExistingHeapFromFileMapping(&self, hfilemapping: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -6051,14 +5786,14 @@ impl ID3D12Device8 { } pub unsafe fn CreateCommandList1(&self, nodemask: u32, r#type: D3D12_COMMAND_LIST_TYPE, flags: D3D12_COMMAND_LIST_FLAGS) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateCommandList1)(::windows_core::Interface::as_raw(self), nodemask, r#type, flags, &T::IID, &mut result__).from_abi(result__) } pub unsafe fn CreateProtectedResourceSession(&self, pdesc: *const D3D12_PROTECTED_RESOURCE_SESSION_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateProtectedResourceSession)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) @@ -6068,14 +5803,14 @@ impl ID3D12Device8 { pub unsafe fn CreateCommittedResource1(&self, pheapproperties: *const D3D12_HEAP_PROPERTIES, heapflags: D3D12_HEAP_FLAGS, pdesc: *const D3D12_RESOURCE_DESC, initialresourcestate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, pprotectedsession: P0, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } pub unsafe fn CreateHeap1(&self, pdesc: *const D3D12_HEAP_DESC, pprotectedsession: P0, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -6084,7 +5819,7 @@ impl ID3D12Device8 { pub unsafe fn CreateReservedResource1(&self, pdesc: *const D3D12_RESOURCE_DESC, initialstate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, pprotectedsession: P0, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -6098,7 +5833,7 @@ impl ID3D12Device8 { pub unsafe fn CreateLifetimeTracker(&self, powner: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -6114,14 +5849,14 @@ impl ID3D12Device8 { } pub unsafe fn CreateMetaCommand(&self, commandid: *const ::windows_core::GUID, nodemask: u32, pcreationparametersdata: ::core::option::Option<*const ::core::ffi::c_void>, creationparametersdatasizeinbytes: usize) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.CreateMetaCommand)(::windows_core::Interface::as_raw(self), commandid, nodemask, ::core::mem::transmute(pcreationparametersdata.unwrap_or(::std::ptr::null())), creationparametersdatasizeinbytes, &T::IID, &mut result__).from_abi(result__) } pub unsafe fn CreateStateObject(&self, pdesc: *const D3D12_STATE_OBJECT_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.CreateStateObject)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) @@ -6143,14 +5878,14 @@ impl ID3D12Device8 { pub unsafe fn AddToStateObject(&self, paddition: *const D3D12_STATE_OBJECT_DESC, pstateobjecttogrowfrom: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) } pub unsafe fn CreateProtectedResourceSession1(&self, pdesc: *const D3D12_PROTECTED_RESOURCE_SESSION_DESC1) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.CreateProtectedResourceSession1)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) @@ -6167,7 +5902,7 @@ impl ID3D12Device8 { pub unsafe fn CreateCommittedResource2(&self, pheapproperties: *const D3D12_HEAP_PROPERTIES, heapflags: D3D12_HEAP_FLAGS, pdesc: *const D3D12_RESOURCE_DESC1, initialresourcestate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, pprotectedsession: P0, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -6176,7 +5911,7 @@ impl ID3D12Device8 { pub unsafe fn CreatePlacedResource1(&self, pheap: P0, heapoffset: u64, pdesc: *const D3D12_RESOURCE_DESC1, initialstate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -6193,15 +5928,8 @@ impl ID3D12Device8 { (::windows_core::Interface::vtable(self).GetCopyableFootprints1)(::windows_core::Interface::as_raw(self), presourcedesc, firstsubresource, numsubresources, baseoffset, ::core::mem::transmute(playouts.unwrap_or(::std::ptr::null_mut())), ::core::mem::transmute(pnumrows.unwrap_or(::std::ptr::null_mut())), ::core::mem::transmute(prowsizeinbytes.unwrap_or(::std::ptr::null_mut())), ::core::mem::transmute(ptotalbytes.unwrap_or(::std::ptr::null_mut()))) } } -::windows_core::imp::interface_hierarchy!(ID3D12Device8, ::windows_core::IUnknown, ID3D12Object, ID3D12Device, ID3D12Device1, ID3D12Device2, ID3D12Device3, ID3D12Device4, ID3D12Device5, ID3D12Device6, ID3D12Device7); unsafe impl ::core::marker::Send for ID3D12Device8 {} unsafe impl ::core::marker::Sync for ID3D12Device8 {} -unsafe impl ::windows_core::Interface for ID3D12Device8 { - type Vtable = ID3D12Device8_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12Device8 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9218e6bb_f944_4f7e_a75c_b1b2c7b701f3); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12Device8_Vtbl { @@ -6224,9 +5952,8 @@ pub struct ID3D12Device8_Vtbl { #[cfg(not(feature = "Win32_Graphics_Dxgi_Common"))] GetCopyableFootprints1: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12Device9(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12Device9, ID3D12Device9_Vtbl, 0x4c80e962_f032_4f60_bc9e_ebc2cfa1d83c); +::windows_core::imp::interface_hierarchy!(ID3D12Device9, ::windows_core::IUnknown, ID3D12Object, ID3D12Device, ID3D12Device1, ID3D12Device2, ID3D12Device3, ID3D12Device4, ID3D12Device5, ID3D12Device6, ID3D12Device7, ID3D12Device8); impl ID3D12Device9 { pub unsafe fn GetPrivateData(&self, guid: *const ::windows_core::GUID, pdatasize: *mut u32, pdata: ::core::option::Option<*mut ::core::ffi::c_void>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.GetPrivateData)(::windows_core::Interface::as_raw(self), guid, pdatasize, ::core::mem::transmute(pdata.unwrap_or(::std::ptr::null_mut()))).ok() @@ -6251,14 +5978,14 @@ impl ID3D12Device9 { } pub unsafe fn CreateCommandQueue(&self, pdesc: *const D3D12_COMMAND_QUEUE_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + 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__.CreateCommandQueue)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) } pub unsafe fn CreateCommandAllocator(&self, r#type: D3D12_COMMAND_LIST_TYPE) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + 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__.CreateCommandAllocator)(::windows_core::Interface::as_raw(self), r#type, &T::IID, &mut result__).from_abi(result__) @@ -6267,14 +5994,14 @@ impl ID3D12Device9 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateGraphicsPipelineState(&self, pdesc: *const D3D12_GRAPHICS_PIPELINE_STATE_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + 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__.CreateGraphicsPipelineState)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) } pub unsafe fn CreateComputePipelineState(&self, pdesc: *const D3D12_COMPUTE_PIPELINE_STATE_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + 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__.CreateComputePipelineState)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) @@ -6283,7 +6010,7 @@ impl ID3D12Device9 { where P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -6293,7 +6020,7 @@ impl ID3D12Device9 { } pub unsafe fn CreateDescriptorHeap(&self, pdescriptorheapdesc: *const D3D12_DESCRIPTOR_HEAP_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + 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__.CreateDescriptorHeap)(::windows_core::Interface::as_raw(self), pdescriptorheapdesc, &T::IID, &mut result__).from_abi(result__) @@ -6303,7 +6030,7 @@ impl ID3D12Device9 { } pub unsafe fn CreateRootSignature(&self, nodemask: u32, pblobwithrootsignature: &[u8]) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + 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__.CreateRootSignature)(::windows_core::Interface::as_raw(self), nodemask, ::core::mem::transmute(pblobwithrootsignature.as_ptr()), pblobwithrootsignature.len().try_into().unwrap(), &T::IID, &mut result__).from_abi(result__) @@ -6369,13 +6096,13 @@ impl ID3D12Device9 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateCommittedResource(&self, pheapproperties: *const D3D12_HEAP_PROPERTIES, heapflags: D3D12_HEAP_FLAGS, pdesc: *const D3D12_RESOURCE_DESC, initialresourcestate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateCommittedResource)(::windows_core::Interface::as_raw(self), pheapproperties, heapflags, pdesc, initialresourcestate, ::core::mem::transmute(poptimizedclearvalue.unwrap_or(::std::ptr::null())), &T::IID, result__ as *mut _ as *mut _).ok() } pub unsafe fn CreateHeap(&self, pdesc: *const D3D12_HEAP_DESC, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateHeap)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, result__ as *mut _ as *mut _).ok() } @@ -6384,7 +6111,7 @@ impl ID3D12Device9 { pub unsafe fn CreatePlacedResource(&self, pheap: P0, heapoffset: u64, pdesc: *const D3D12_RESOURCE_DESC, initialstate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -6392,7 +6119,7 @@ impl ID3D12Device9 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateReservedResource(&self, pdesc: *const D3D12_RESOURCE_DESC, initialstate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateReservedResource)(::windows_core::Interface::as_raw(self), pdesc, initialstate, ::core::mem::transmute(poptimizedclearvalue.unwrap_or(::std::ptr::null())), &T::IID, result__ as *mut _ as *mut _).ok() } @@ -6409,7 +6136,7 @@ impl ID3D12Device9 { pub unsafe fn OpenSharedHandle(&self, nthandle: P0, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -6428,7 +6155,7 @@ impl ID3D12Device9 { } pub unsafe fn CreateFence(&self, initialvalue: u64, flags: D3D12_FENCE_FLAGS) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + 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__.CreateFence)(::windows_core::Interface::as_raw(self), initialvalue, flags, &T::IID, &mut result__).from_abi(result__) @@ -6443,7 +6170,7 @@ impl ID3D12Device9 { } pub unsafe fn CreateQueryHeap(&self, pdesc: *const D3D12_QUERY_HEAP_DESC, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.CreateQueryHeap)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, result__ as *mut _ as *mut _).ok() } @@ -6456,7 +6183,7 @@ impl ID3D12Device9 { pub unsafe fn CreateCommandSignature(&self, pdesc: *const D3D12_COMMAND_SIGNATURE_DESC, prootsignature: P0, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -6473,7 +6200,7 @@ impl ID3D12Device9 { } pub unsafe fn CreatePipelineLibrary(&self, plibraryblob: &[u8]) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CreatePipelineLibrary)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(plibraryblob.as_ptr()), plibraryblob.len().try_into().unwrap(), &T::IID, &mut result__).from_abi(result__) @@ -6489,14 +6216,14 @@ impl ID3D12Device9 { } pub unsafe fn CreatePipelineState(&self, pdesc: *const D3D12_PIPELINE_STATE_STREAM_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CreatePipelineState)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) } pub unsafe fn OpenExistingHeapFromAddress(&self, paddress: *const ::core::ffi::c_void) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.OpenExistingHeapFromAddress)(::windows_core::Interface::as_raw(self), paddress, &T::IID, &mut result__).from_abi(result__) @@ -6504,7 +6231,7 @@ impl ID3D12Device9 { pub unsafe fn OpenExistingHeapFromFileMapping(&self, hfilemapping: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -6517,14 +6244,14 @@ impl ID3D12Device9 { } pub unsafe fn CreateCommandList1(&self, nodemask: u32, r#type: D3D12_COMMAND_LIST_TYPE, flags: D3D12_COMMAND_LIST_FLAGS) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateCommandList1)(::windows_core::Interface::as_raw(self), nodemask, r#type, flags, &T::IID, &mut result__).from_abi(result__) } pub unsafe fn CreateProtectedResourceSession(&self, pdesc: *const D3D12_PROTECTED_RESOURCE_SESSION_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.CreateProtectedResourceSession)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) @@ -6534,14 +6261,14 @@ impl ID3D12Device9 { pub unsafe fn CreateCommittedResource1(&self, pheapproperties: *const D3D12_HEAP_PROPERTIES, heapflags: D3D12_HEAP_FLAGS, pdesc: *const D3D12_RESOURCE_DESC, initialresourcestate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, pprotectedsession: P0, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } pub unsafe fn CreateHeap1(&self, pdesc: *const D3D12_HEAP_DESC, pprotectedsession: P0, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -6550,7 +6277,7 @@ impl ID3D12Device9 { pub unsafe fn CreateReservedResource1(&self, pdesc: *const D3D12_RESOURCE_DESC, initialstate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, pprotectedsession: P0, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -6564,7 +6291,7 @@ impl ID3D12Device9 { pub unsafe fn CreateLifetimeTracker(&self, powner: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -6580,14 +6307,14 @@ impl ID3D12Device9 { } pub unsafe fn CreateMetaCommand(&self, commandid: *const ::windows_core::GUID, nodemask: u32, pcreationparametersdata: ::core::option::Option<*const ::core::ffi::c_void>, creationparametersdatasizeinbytes: usize) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateMetaCommand)(::windows_core::Interface::as_raw(self), commandid, nodemask, ::core::mem::transmute(pcreationparametersdata.unwrap_or(::std::ptr::null())), creationparametersdatasizeinbytes, &T::IID, &mut result__).from_abi(result__) } pub unsafe fn CreateStateObject(&self, pdesc: *const D3D12_STATE_OBJECT_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.CreateStateObject)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) @@ -6609,14 +6336,14 @@ impl ID3D12Device9 { pub unsafe fn AddToStateObject(&self, paddition: *const D3D12_STATE_OBJECT_DESC, pstateobjecttogrowfrom: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) } pub unsafe fn CreateProtectedResourceSession1(&self, pdesc: *const D3D12_PROTECTED_RESOURCE_SESSION_DESC1) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.CreateProtectedResourceSession1)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) @@ -6633,7 +6360,7 @@ impl ID3D12Device9 { pub unsafe fn CreateCommittedResource2(&self, pheapproperties: *const D3D12_HEAP_PROPERTIES, heapflags: D3D12_HEAP_FLAGS, pdesc: *const D3D12_RESOURCE_DESC1, initialresourcestate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, pprotectedsession: P0, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -6642,7 +6369,7 @@ impl ID3D12Device9 { pub unsafe fn CreatePlacedResource1(&self, pheap: P0, heapoffset: u64, pdesc: *const D3D12_RESOURCE_DESC1, initialstate: D3D12_RESOURCE_STATES, poptimizedclearvalue: ::core::option::Option<*const D3D12_CLEAR_VALUE>, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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() } @@ -6660,7 +6387,7 @@ impl ID3D12Device9 { } pub unsafe fn CreateShaderCacheSession(&self, pdesc: *const D3D12_SHADER_CACHE_SESSION_DESC, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).CreateShaderCacheSession)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, result__ as *mut _ as *mut _).ok() } @@ -6669,21 +6396,14 @@ impl ID3D12Device9 { } pub unsafe fn CreateCommandQueue1(&self, pdesc: *const D3D12_COMMAND_QUEUE_DESC, creatorid: *const ::windows_core::GUID) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).CreateCommandQueue1)(::windows_core::Interface::as_raw(self), pdesc, creatorid, &T::IID, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ID3D12Device9, ::windows_core::IUnknown, ID3D12Object, ID3D12Device, ID3D12Device1, ID3D12Device2, ID3D12Device3, ID3D12Device4, ID3D12Device5, ID3D12Device6, ID3D12Device7, ID3D12Device8); unsafe impl ::core::marker::Send for ID3D12Device9 {} unsafe impl ::core::marker::Sync for ID3D12Device9 {} -unsafe impl ::windows_core::Interface for ID3D12Device9 { - type Vtable = ID3D12Device9_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12Device9 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4c80e962_f032_4f60_bc9e_ebc2cfa1d83c); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12Device9_Vtbl { @@ -6692,9 +6412,8 @@ pub struct ID3D12Device9_Vtbl { pub ShaderCacheControl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, kinds: D3D12_SHADER_CACHE_KIND_FLAGS, control: D3D12_SHADER_CACHE_CONTROL_FLAGS) -> ::windows_core::HRESULT, pub CreateCommandQueue1: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdesc: *const D3D12_COMMAND_QUEUE_DESC, creatorid: *const ::windows_core::GUID, riid: *const ::windows_core::GUID, ppcommandqueue: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12DeviceChild(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12DeviceChild, ID3D12DeviceChild_Vtbl, 0x905db94b_a00c_4140_9df5_2b64ca9ea357); +::windows_core::imp::interface_hierarchy!(ID3D12DeviceChild, ::windows_core::IUnknown, ID3D12Object); impl ID3D12DeviceChild { pub unsafe fn GetPrivateData(&self, guid: *const ::windows_core::GUID, pdatasize: *mut u32, pdata: ::core::option::Option<*mut ::core::ffi::c_void>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.GetPrivateData)(::windows_core::Interface::as_raw(self), guid, pdatasize, ::core::mem::transmute(pdata.unwrap_or(::std::ptr::null_mut()))).ok() @@ -6716,29 +6435,21 @@ impl ID3D12DeviceChild { } pub unsafe fn GetDevice(&self, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _).ok() } } -::windows_core::imp::interface_hierarchy!(ID3D12DeviceChild, ::windows_core::IUnknown, ID3D12Object); unsafe impl ::core::marker::Send for ID3D12DeviceChild {} unsafe impl ::core::marker::Sync for ID3D12DeviceChild {} -unsafe impl ::windows_core::Interface for ID3D12DeviceChild { - type Vtable = ID3D12DeviceChild_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12DeviceChild { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x905db94b_a00c_4140_9df5_2b64ca9ea357); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12DeviceChild_Vtbl { pub base__: ID3D12Object_Vtbl, pub GetDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppvdevice: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12DeviceConfiguration(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12DeviceConfiguration, ID3D12DeviceConfiguration_Vtbl, 0x78dbf87b_f766_422b_a61c_c8c446bdb9ad); +::windows_core::imp::interface_hierarchy!(ID3D12DeviceConfiguration, ::windows_core::IUnknown); impl ID3D12DeviceConfiguration { pub unsafe fn GetDesc(&self) -> D3D12_DEVICE_CONFIGURATION_DESC { let mut result__: D3D12_DEVICE_CONFIGURATION_DESC = ::core::mem::zeroed(); @@ -6755,21 +6466,14 @@ impl ID3D12DeviceConfiguration { } pub unsafe fn CreateVersionedRootSignatureDeserializer(&self, pblob: *const ::core::ffi::c_void, size: usize) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).CreateVersionedRootSignatureDeserializer)(::windows_core::Interface::as_raw(self), pblob, size, &T::IID, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ID3D12DeviceConfiguration, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID3D12DeviceConfiguration {} unsafe impl ::core::marker::Sync for ID3D12DeviceConfiguration {} -unsafe impl ::windows_core::Interface for ID3D12DeviceConfiguration { - type Vtable = ID3D12DeviceConfiguration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12DeviceConfiguration { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x78dbf87b_f766_422b_a61c_c8c446bdb9ad); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12DeviceConfiguration_Vtbl { @@ -6782,9 +6486,8 @@ pub struct ID3D12DeviceConfiguration_Vtbl { SerializeVersionedRootSignature: usize, pub CreateVersionedRootSignatureDeserializer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pblob: *const ::core::ffi::c_void, size: usize, riid: *const ::windows_core::GUID, ppvdeserializer: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12DeviceFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12DeviceFactory, ID3D12DeviceFactory_Vtbl, 0x61f307d3_d34e_4e7c_8374_3ba4de23cccb); +::windows_core::imp::interface_hierarchy!(ID3D12DeviceFactory, ::windows_core::IUnknown); impl ID3D12DeviceFactory { pub unsafe fn InitializeFromGlobalState(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).InitializeFromGlobalState)(::windows_core::Interface::as_raw(self)).ok() @@ -6800,7 +6503,7 @@ impl ID3D12DeviceFactory { } pub unsafe fn GetConfigurationInterface(&self, clsid: *const ::windows_core::GUID) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetConfigurationInterface)(::windows_core::Interface::as_raw(self), clsid, &T::IID, &mut result__).from_abi(result__) @@ -6813,20 +6516,13 @@ impl ID3D12DeviceFactory { pub unsafe fn CreateDevice(&self, adapter: P0, featurelevel: super::Direct3D::D3D_FEATURE_LEVEL, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where P0: ::windows_core::IntoParam<::windows_core::IUnknown>, - T: ::windows_core::ComInterface, + 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::imp::interface_hierarchy!(ID3D12DeviceFactory, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID3D12DeviceFactory {} unsafe impl ::core::marker::Sync for ID3D12DeviceFactory {} -unsafe impl ::windows_core::Interface for ID3D12DeviceFactory { - type Vtable = ID3D12DeviceFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12DeviceFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x61f307d3_d34e_4e7c_8374_3ba4de23cccb); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12DeviceFactory_Vtbl { @@ -6842,9 +6538,8 @@ pub struct ID3D12DeviceFactory_Vtbl { #[cfg(not(feature = "Win32_Graphics_Direct3D"))] CreateDevice: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12DeviceRemovedExtendedData(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12DeviceRemovedExtendedData, ID3D12DeviceRemovedExtendedData_Vtbl, 0x98931d33_5ae8_4791_aa3c_1a73a2934e71); +::windows_core::imp::interface_hierarchy!(ID3D12DeviceRemovedExtendedData, ::windows_core::IUnknown); impl ID3D12DeviceRemovedExtendedData { pub unsafe fn GetAutoBreadcrumbsOutput(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -6855,15 +6550,8 @@ impl ID3D12DeviceRemovedExtendedData { (::windows_core::Interface::vtable(self).GetPageFaultAllocationOutput)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ID3D12DeviceRemovedExtendedData, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID3D12DeviceRemovedExtendedData {} unsafe impl ::core::marker::Sync for ID3D12DeviceRemovedExtendedData {} -unsafe impl ::windows_core::Interface for ID3D12DeviceRemovedExtendedData { - type Vtable = ID3D12DeviceRemovedExtendedData_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12DeviceRemovedExtendedData { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x98931d33_5ae8_4791_aa3c_1a73a2934e71); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12DeviceRemovedExtendedData_Vtbl { @@ -6871,9 +6559,8 @@ pub struct ID3D12DeviceRemovedExtendedData_Vtbl { pub GetAutoBreadcrumbsOutput: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, poutput: *mut D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT) -> ::windows_core::HRESULT, pub GetPageFaultAllocationOutput: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, poutput: *mut D3D12_DRED_PAGE_FAULT_OUTPUT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12DeviceRemovedExtendedData1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12DeviceRemovedExtendedData1, ID3D12DeviceRemovedExtendedData1_Vtbl, 0x9727a022_cf1d_4dda_9eba_effa653fc506); +::windows_core::imp::interface_hierarchy!(ID3D12DeviceRemovedExtendedData1, ::windows_core::IUnknown, ID3D12DeviceRemovedExtendedData); impl ID3D12DeviceRemovedExtendedData1 { pub unsafe fn GetAutoBreadcrumbsOutput(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -6892,15 +6579,8 @@ impl ID3D12DeviceRemovedExtendedData1 { (::windows_core::Interface::vtable(self).GetPageFaultAllocationOutput1)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ID3D12DeviceRemovedExtendedData1, ::windows_core::IUnknown, ID3D12DeviceRemovedExtendedData); unsafe impl ::core::marker::Send for ID3D12DeviceRemovedExtendedData1 {} unsafe impl ::core::marker::Sync for ID3D12DeviceRemovedExtendedData1 {} -unsafe impl ::windows_core::Interface for ID3D12DeviceRemovedExtendedData1 { - type Vtable = ID3D12DeviceRemovedExtendedData1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12DeviceRemovedExtendedData1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9727a022_cf1d_4dda_9eba_effa653fc506); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12DeviceRemovedExtendedData1_Vtbl { @@ -6908,9 +6588,8 @@ pub struct ID3D12DeviceRemovedExtendedData1_Vtbl { pub GetAutoBreadcrumbsOutput1: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, poutput: *mut D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT1) -> ::windows_core::HRESULT, pub GetPageFaultAllocationOutput1: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, poutput: *mut D3D12_DRED_PAGE_FAULT_OUTPUT1) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12DeviceRemovedExtendedData2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12DeviceRemovedExtendedData2, ID3D12DeviceRemovedExtendedData2_Vtbl, 0x67fc5816_e4ca_4915_bf18_42541272da54); +::windows_core::imp::interface_hierarchy!(ID3D12DeviceRemovedExtendedData2, ::windows_core::IUnknown, ID3D12DeviceRemovedExtendedData, ID3D12DeviceRemovedExtendedData1); impl ID3D12DeviceRemovedExtendedData2 { pub unsafe fn GetAutoBreadcrumbsOutput(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -6935,15 +6614,8 @@ impl ID3D12DeviceRemovedExtendedData2 { (::windows_core::Interface::vtable(self).GetDeviceState)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(ID3D12DeviceRemovedExtendedData2, ::windows_core::IUnknown, ID3D12DeviceRemovedExtendedData, ID3D12DeviceRemovedExtendedData1); unsafe impl ::core::marker::Send for ID3D12DeviceRemovedExtendedData2 {} unsafe impl ::core::marker::Sync for ID3D12DeviceRemovedExtendedData2 {} -unsafe impl ::windows_core::Interface for ID3D12DeviceRemovedExtendedData2 { - type Vtable = ID3D12DeviceRemovedExtendedData2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12DeviceRemovedExtendedData2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x67fc5816_e4ca_4915_bf18_42541272da54); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12DeviceRemovedExtendedData2_Vtbl { @@ -6951,9 +6623,8 @@ pub struct ID3D12DeviceRemovedExtendedData2_Vtbl { pub GetPageFaultAllocationOutput2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, poutput: *mut D3D12_DRED_PAGE_FAULT_OUTPUT2) -> ::windows_core::HRESULT, pub GetDeviceState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> D3D12_DRED_DEVICE_STATE, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12DeviceRemovedExtendedDataSettings(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12DeviceRemovedExtendedDataSettings, ID3D12DeviceRemovedExtendedDataSettings_Vtbl, 0x82bc481c_6b9b_4030_aedb_7ee3d1df1e63); +::windows_core::imp::interface_hierarchy!(ID3D12DeviceRemovedExtendedDataSettings, ::windows_core::IUnknown); impl ID3D12DeviceRemovedExtendedDataSettings { pub unsafe fn SetAutoBreadcrumbsEnablement(&self, enablement: D3D12_DRED_ENABLEMENT) { (::windows_core::Interface::vtable(self).SetAutoBreadcrumbsEnablement)(::windows_core::Interface::as_raw(self), enablement) @@ -6965,15 +6636,8 @@ impl ID3D12DeviceRemovedExtendedDataSettings { (::windows_core::Interface::vtable(self).SetWatsonDumpEnablement)(::windows_core::Interface::as_raw(self), enablement) } } -::windows_core::imp::interface_hierarchy!(ID3D12DeviceRemovedExtendedDataSettings, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID3D12DeviceRemovedExtendedDataSettings {} unsafe impl ::core::marker::Sync for ID3D12DeviceRemovedExtendedDataSettings {} -unsafe impl ::windows_core::Interface for ID3D12DeviceRemovedExtendedDataSettings { - type Vtable = ID3D12DeviceRemovedExtendedDataSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12DeviceRemovedExtendedDataSettings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x82bc481c_6b9b_4030_aedb_7ee3d1df1e63); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12DeviceRemovedExtendedDataSettings_Vtbl { @@ -6982,9 +6646,8 @@ pub struct ID3D12DeviceRemovedExtendedDataSettings_Vtbl { pub SetPageFaultEnablement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enablement: D3D12_DRED_ENABLEMENT), pub SetWatsonDumpEnablement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enablement: D3D12_DRED_ENABLEMENT), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12DeviceRemovedExtendedDataSettings1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12DeviceRemovedExtendedDataSettings1, ID3D12DeviceRemovedExtendedDataSettings1_Vtbl, 0xdbd5ae51_3317_4f0a_adf9_1d7cedcaae0b); +::windows_core::imp::interface_hierarchy!(ID3D12DeviceRemovedExtendedDataSettings1, ::windows_core::IUnknown, ID3D12DeviceRemovedExtendedDataSettings); impl ID3D12DeviceRemovedExtendedDataSettings1 { pub unsafe fn SetAutoBreadcrumbsEnablement(&self, enablement: D3D12_DRED_ENABLEMENT) { (::windows_core::Interface::vtable(self).base__.SetAutoBreadcrumbsEnablement)(::windows_core::Interface::as_raw(self), enablement) @@ -6999,24 +6662,16 @@ impl ID3D12DeviceRemovedExtendedDataSettings1 { (::windows_core::Interface::vtable(self).SetBreadcrumbContextEnablement)(::windows_core::Interface::as_raw(self), enablement) } } -::windows_core::imp::interface_hierarchy!(ID3D12DeviceRemovedExtendedDataSettings1, ::windows_core::IUnknown, ID3D12DeviceRemovedExtendedDataSettings); unsafe impl ::core::marker::Send for ID3D12DeviceRemovedExtendedDataSettings1 {} unsafe impl ::core::marker::Sync for ID3D12DeviceRemovedExtendedDataSettings1 {} -unsafe impl ::windows_core::Interface for ID3D12DeviceRemovedExtendedDataSettings1 { - type Vtable = ID3D12DeviceRemovedExtendedDataSettings1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12DeviceRemovedExtendedDataSettings1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdbd5ae51_3317_4f0a_adf9_1d7cedcaae0b); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12DeviceRemovedExtendedDataSettings1_Vtbl { pub base__: ID3D12DeviceRemovedExtendedDataSettings_Vtbl, pub SetBreadcrumbContextEnablement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enablement: D3D12_DRED_ENABLEMENT), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12DeviceRemovedExtendedDataSettings2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12DeviceRemovedExtendedDataSettings2, ID3D12DeviceRemovedExtendedDataSettings2_Vtbl, 0x61552388_01ab_4008_a436_83db189566ea); +::windows_core::imp::interface_hierarchy!(ID3D12DeviceRemovedExtendedDataSettings2, ::windows_core::IUnknown, ID3D12DeviceRemovedExtendedDataSettings, ID3D12DeviceRemovedExtendedDataSettings1); impl ID3D12DeviceRemovedExtendedDataSettings2 { pub unsafe fn SetAutoBreadcrumbsEnablement(&self, enablement: D3D12_DRED_ENABLEMENT) { (::windows_core::Interface::vtable(self).base__.base__.SetAutoBreadcrumbsEnablement)(::windows_core::Interface::as_raw(self), enablement) @@ -7037,24 +6692,16 @@ impl ID3D12DeviceRemovedExtendedDataSettings2 { (::windows_core::Interface::vtable(self).UseMarkersOnlyAutoBreadcrumbs)(::windows_core::Interface::as_raw(self), markersonly.into_param().abi()) } } -::windows_core::imp::interface_hierarchy!(ID3D12DeviceRemovedExtendedDataSettings2, ::windows_core::IUnknown, ID3D12DeviceRemovedExtendedDataSettings, ID3D12DeviceRemovedExtendedDataSettings1); unsafe impl ::core::marker::Send for ID3D12DeviceRemovedExtendedDataSettings2 {} unsafe impl ::core::marker::Sync for ID3D12DeviceRemovedExtendedDataSettings2 {} -unsafe impl ::windows_core::Interface for ID3D12DeviceRemovedExtendedDataSettings2 { - type Vtable = ID3D12DeviceRemovedExtendedDataSettings2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12DeviceRemovedExtendedDataSettings2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x61552388_01ab_4008_a436_83db189566ea); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12DeviceRemovedExtendedDataSettings2_Vtbl { pub base__: ID3D12DeviceRemovedExtendedDataSettings1_Vtbl, pub UseMarkersOnlyAutoBreadcrumbs: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, markersonly: super::super::Foundation::BOOL), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12Fence(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12Fence, ID3D12Fence_Vtbl, 0x0a753dcf_c4d8_4b91_adf6_be5a60d95a76); +::windows_core::imp::interface_hierarchy!(ID3D12Fence, ::windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild, ID3D12Pageable); impl ID3D12Fence { pub unsafe fn GetPrivateData(&self, guid: *const ::windows_core::GUID, pdatasize: *mut u32, pdata: ::core::option::Option<*mut ::core::ffi::c_void>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.GetPrivateData)(::windows_core::Interface::as_raw(self), guid, pdatasize, ::core::mem::transmute(pdata.unwrap_or(::std::ptr::null_mut()))).ok() @@ -7076,7 +6723,7 @@ impl ID3D12Fence { } pub unsafe fn GetDevice(&self, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _).ok() } @@ -7093,15 +6740,8 @@ impl ID3D12Fence { (::windows_core::Interface::vtable(self).Signal)(::windows_core::Interface::as_raw(self), value).ok() } } -::windows_core::imp::interface_hierarchy!(ID3D12Fence, ::windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild, ID3D12Pageable); unsafe impl ::core::marker::Send for ID3D12Fence {} unsafe impl ::core::marker::Sync for ID3D12Fence {} -unsafe impl ::windows_core::Interface for ID3D12Fence { - type Vtable = ID3D12Fence_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12Fence { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0a753dcf_c4d8_4b91_adf6_be5a60d95a76); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12Fence_Vtbl { @@ -7110,9 +6750,8 @@ pub struct ID3D12Fence_Vtbl { pub SetEventOnCompletion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: u64, hevent: super::super::Foundation::HANDLE) -> ::windows_core::HRESULT, pub Signal: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: u64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12Fence1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12Fence1, ID3D12Fence1_Vtbl, 0x433685fe_e22b_4ca0_a8db_b5b4f4dd0e4a); +::windows_core::imp::interface_hierarchy!(ID3D12Fence1, ::windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild, ID3D12Pageable, ID3D12Fence); impl ID3D12Fence1 { pub unsafe fn GetPrivateData(&self, guid: *const ::windows_core::GUID, pdatasize: *mut u32, pdata: ::core::option::Option<*mut ::core::ffi::c_void>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.GetPrivateData)(::windows_core::Interface::as_raw(self), guid, pdatasize, ::core::mem::transmute(pdata.unwrap_or(::std::ptr::null_mut()))).ok() @@ -7134,7 +6773,7 @@ impl ID3D12Fence1 { } pub unsafe fn GetDevice(&self, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _).ok() } @@ -7154,24 +6793,15 @@ impl ID3D12Fence1 { (::windows_core::Interface::vtable(self).GetCreationFlags)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(ID3D12Fence1, ::windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild, ID3D12Pageable, ID3D12Fence); unsafe impl ::core::marker::Send for ID3D12Fence1 {} unsafe impl ::core::marker::Sync for ID3D12Fence1 {} -unsafe impl ::windows_core::Interface for ID3D12Fence1 { - type Vtable = ID3D12Fence1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12Fence1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x433685fe_e22b_4ca0_a8db_b5b4f4dd0e4a); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12Fence1_Vtbl { pub base__: ID3D12Fence_Vtbl, pub GetCreationFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> D3D12_FENCE_FLAGS, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12FunctionParameterReflection(::std::ptr::NonNull<::std::ffi::c_void>); +::windows_core::imp::interface!(ID3D12FunctionParameterReflection, ID3D12FunctionParameterReflection_Vtbl); impl ID3D12FunctionParameterReflection { #[doc = "Required features: `\"Win32_Graphics_Direct3D\"`"] #[cfg(feature = "Win32_Graphics_Direct3D")] @@ -7181,9 +6811,6 @@ impl ID3D12FunctionParameterReflection { } unsafe impl ::core::marker::Send for ID3D12FunctionParameterReflection {} unsafe impl ::core::marker::Sync for ID3D12FunctionParameterReflection {} -unsafe impl ::windows_core::Interface for ID3D12FunctionParameterReflection { - type Vtable = ID3D12FunctionParameterReflection_Vtbl; -} #[repr(C)] #[doc(hidden)] pub struct ID3D12FunctionParameterReflection_Vtbl { @@ -7192,9 +6819,7 @@ pub struct ID3D12FunctionParameterReflection_Vtbl { #[cfg(not(feature = "Win32_Graphics_Direct3D"))] GetDesc: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12FunctionReflection(::std::ptr::NonNull<::std::ffi::c_void>); +::windows_core::imp::interface!(ID3D12FunctionReflection, ID3D12FunctionReflection_Vtbl); impl ID3D12FunctionReflection { #[doc = "Required features: `\"Win32_Graphics_Direct3D\"`"] #[cfg(feature = "Win32_Graphics_Direct3D")] @@ -7235,9 +6860,6 @@ impl ID3D12FunctionReflection { } unsafe impl ::core::marker::Send for ID3D12FunctionReflection {} unsafe impl ::core::marker::Sync for ID3D12FunctionReflection {} -unsafe impl ::windows_core::Interface for ID3D12FunctionReflection { - type Vtable = ID3D12FunctionReflection_Vtbl; -} #[repr(C)] #[doc(hidden)] pub struct ID3D12FunctionReflection_Vtbl { @@ -7258,9 +6880,8 @@ pub struct ID3D12FunctionReflection_Vtbl { GetResourceBindingDescByName: usize, pub GetFunctionParameter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, parameterindex: i32) -> ::core::option::Option, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12GraphicsCommandList(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12GraphicsCommandList, ID3D12GraphicsCommandList_Vtbl, 0x5b160d0f_ac1b_4185_8ba8_b3ae42a5a455); +::windows_core::imp::interface_hierarchy!(ID3D12GraphicsCommandList, ::windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild, ID3D12CommandList); impl ID3D12GraphicsCommandList { pub unsafe fn GetPrivateData(&self, guid: *const ::windows_core::GUID, pdatasize: *mut u32, pdata: ::core::option::Option<*mut ::core::ffi::c_void>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.GetPrivateData)(::windows_core::Interface::as_raw(self), guid, pdatasize, ::core::mem::transmute(pdata.unwrap_or(::std::ptr::null_mut()))).ok() @@ -7282,7 +6903,7 @@ impl ID3D12GraphicsCommandList { } pub unsafe fn GetDevice(&self, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _).ok() } @@ -7516,15 +7137,8 @@ impl ID3D12GraphicsCommandList { (::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::imp::interface_hierarchy!(ID3D12GraphicsCommandList, ::windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild, ID3D12CommandList); unsafe impl ::core::marker::Send for ID3D12GraphicsCommandList {} unsafe impl ::core::marker::Sync for ID3D12GraphicsCommandList {} -unsafe impl ::windows_core::Interface for ID3D12GraphicsCommandList { - type Vtable = ID3D12GraphicsCommandList_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12GraphicsCommandList { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5b160d0f_ac1b_4185_8ba8_b3ae42a5a455); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12GraphicsCommandList_Vtbl { @@ -7593,9 +7207,8 @@ pub struct ID3D12GraphicsCommandList_Vtbl { pub EndEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), pub ExecuteIndirect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcommandsignature: *mut ::core::ffi::c_void, maxcommandcount: u32, pargumentbuffer: *mut ::core::ffi::c_void, argumentbufferoffset: u64, pcountbuffer: *mut ::core::ffi::c_void, countbufferoffset: u64), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12GraphicsCommandList1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12GraphicsCommandList1, ID3D12GraphicsCommandList1_Vtbl, 0x553103fb_1fe7_4557_bb38_946d7d0e7ca7); +::windows_core::imp::interface_hierarchy!(ID3D12GraphicsCommandList1, ::windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild, ID3D12CommandList, ID3D12GraphicsCommandList); impl ID3D12GraphicsCommandList1 { pub unsafe fn GetPrivateData(&self, guid: *const ::windows_core::GUID, pdatasize: *mut u32, pdata: ::core::option::Option<*mut ::core::ffi::c_void>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.GetPrivateData)(::windows_core::Interface::as_raw(self), guid, pdatasize, ::core::mem::transmute(pdata.unwrap_or(::std::ptr::null_mut()))).ok() @@ -7617,7 +7230,7 @@ impl ID3D12GraphicsCommandList1 { } pub unsafe fn GetDevice(&self, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _).ok() } @@ -7883,15 +7496,8 @@ impl ID3D12GraphicsCommandList1 { (::windows_core::Interface::vtable(self).SetViewInstanceMask)(::windows_core::Interface::as_raw(self), mask) } } -::windows_core::imp::interface_hierarchy!(ID3D12GraphicsCommandList1, ::windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild, ID3D12CommandList, ID3D12GraphicsCommandList); unsafe impl ::core::marker::Send for ID3D12GraphicsCommandList1 {} unsafe impl ::core::marker::Sync for ID3D12GraphicsCommandList1 {} -unsafe impl ::windows_core::Interface for ID3D12GraphicsCommandList1 { - type Vtable = ID3D12GraphicsCommandList1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12GraphicsCommandList1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x553103fb_1fe7_4557_bb38_946d7d0e7ca7); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12GraphicsCommandList1_Vtbl { @@ -7906,9 +7512,8 @@ pub struct ID3D12GraphicsCommandList1_Vtbl { ResolveSubresourceRegion: usize, pub SetViewInstanceMask: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mask: u32), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12GraphicsCommandList2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12GraphicsCommandList2, ID3D12GraphicsCommandList2_Vtbl, 0x38c3e585_ff17_412c_9150_4fc6f9d72a28); +::windows_core::imp::interface_hierarchy!(ID3D12GraphicsCommandList2, ::windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild, ID3D12CommandList, ID3D12GraphicsCommandList, ID3D12GraphicsCommandList1); impl ID3D12GraphicsCommandList2 { pub unsafe fn GetPrivateData(&self, guid: *const ::windows_core::GUID, pdatasize: *mut u32, pdata: ::core::option::Option<*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), guid, pdatasize, ::core::mem::transmute(pdata.unwrap_or(::std::ptr::null_mut()))).ok() @@ -7930,7 +7535,7 @@ impl ID3D12GraphicsCommandList2 { } pub unsafe fn GetDevice(&self, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _).ok() } @@ -8199,24 +7804,16 @@ impl ID3D12GraphicsCommandList2 { (::windows_core::Interface::vtable(self).WriteBufferImmediate)(::windows_core::Interface::as_raw(self), count, pparams, ::core::mem::transmute(pmodes.unwrap_or(::std::ptr::null()))) } } -::windows_core::imp::interface_hierarchy!(ID3D12GraphicsCommandList2, ::windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild, ID3D12CommandList, ID3D12GraphicsCommandList, ID3D12GraphicsCommandList1); unsafe impl ::core::marker::Send for ID3D12GraphicsCommandList2 {} unsafe impl ::core::marker::Sync for ID3D12GraphicsCommandList2 {} -unsafe impl ::windows_core::Interface for ID3D12GraphicsCommandList2 { - type Vtable = ID3D12GraphicsCommandList2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12GraphicsCommandList2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x38c3e585_ff17_412c_9150_4fc6f9d72a28); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12GraphicsCommandList2_Vtbl { pub base__: ID3D12GraphicsCommandList1_Vtbl, pub WriteBufferImmediate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, count: u32, pparams: *const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER, pmodes: *const D3D12_WRITEBUFFERIMMEDIATE_MODE), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12GraphicsCommandList3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12GraphicsCommandList3, ID3D12GraphicsCommandList3_Vtbl, 0x6fda83a7_b84c_4e38_9ac8_c7bd22016b3d); +::windows_core::imp::interface_hierarchy!(ID3D12GraphicsCommandList3, ::windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild, ID3D12CommandList, ID3D12GraphicsCommandList, ID3D12GraphicsCommandList1, ID3D12GraphicsCommandList2); impl ID3D12GraphicsCommandList3 { pub unsafe fn GetPrivateData(&self, guid: *const ::windows_core::GUID, pdatasize: *mut u32, pdata: ::core::option::Option<*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), guid, pdatasize, ::core::mem::transmute(pdata.unwrap_or(::std::ptr::null_mut()))).ok() @@ -8238,7 +7835,7 @@ impl ID3D12GraphicsCommandList3 { } pub unsafe fn GetDevice(&self, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _).ok() } @@ -8513,24 +8110,16 @@ impl ID3D12GraphicsCommandList3 { (::windows_core::Interface::vtable(self).SetProtectedResourceSession)(::windows_core::Interface::as_raw(self), pprotectedresourcesession.into_param().abi()) } } -::windows_core::imp::interface_hierarchy!(ID3D12GraphicsCommandList3, ::windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild, ID3D12CommandList, ID3D12GraphicsCommandList, ID3D12GraphicsCommandList1, ID3D12GraphicsCommandList2); unsafe impl ::core::marker::Send for ID3D12GraphicsCommandList3 {} unsafe impl ::core::marker::Sync for ID3D12GraphicsCommandList3 {} -unsafe impl ::windows_core::Interface for ID3D12GraphicsCommandList3 { - type Vtable = ID3D12GraphicsCommandList3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12GraphicsCommandList3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6fda83a7_b84c_4e38_9ac8_c7bd22016b3d); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12GraphicsCommandList3_Vtbl { pub base__: ID3D12GraphicsCommandList2_Vtbl, pub SetProtectedResourceSession: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pprotectedresourcesession: *mut ::core::ffi::c_void), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12GraphicsCommandList4(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12GraphicsCommandList4, ID3D12GraphicsCommandList4_Vtbl, 0x8754318e_d3a9_4541_98cf_645b50dc4874); +::windows_core::imp::interface_hierarchy!(ID3D12GraphicsCommandList4, ::windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild, ID3D12CommandList, ID3D12GraphicsCommandList, ID3D12GraphicsCommandList1, ID3D12GraphicsCommandList2, ID3D12GraphicsCommandList3); impl ID3D12GraphicsCommandList4 { pub unsafe fn GetPrivateData(&self, guid: *const ::windows_core::GUID, pdatasize: *mut u32, pdata: ::core::option::Option<*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), guid, pdatasize, ::core::mem::transmute(pdata.unwrap_or(::std::ptr::null_mut()))).ok() @@ -8552,7 +8141,7 @@ impl ID3D12GraphicsCommandList4 { } pub unsafe fn GetDevice(&self, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _).ok() } @@ -8867,15 +8456,8 @@ impl ID3D12GraphicsCommandList4 { (::windows_core::Interface::vtable(self).DispatchRays)(::windows_core::Interface::as_raw(self), pdesc) } } -::windows_core::imp::interface_hierarchy!(ID3D12GraphicsCommandList4, ::windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild, ID3D12CommandList, ID3D12GraphicsCommandList, ID3D12GraphicsCommandList1, ID3D12GraphicsCommandList2, ID3D12GraphicsCommandList3); unsafe impl ::core::marker::Send for ID3D12GraphicsCommandList4 {} unsafe impl ::core::marker::Sync for ID3D12GraphicsCommandList4 {} -unsafe impl ::windows_core::Interface for ID3D12GraphicsCommandList4 { - type Vtable = ID3D12GraphicsCommandList4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12GraphicsCommandList4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8754318e_d3a9_4541_98cf_645b50dc4874); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12GraphicsCommandList4_Vtbl { @@ -8896,9 +8478,8 @@ pub struct ID3D12GraphicsCommandList4_Vtbl { pub SetPipelineState1: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstateobject: *mut ::core::ffi::c_void), pub DispatchRays: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdesc: *const D3D12_DISPATCH_RAYS_DESC), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12GraphicsCommandList5(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12GraphicsCommandList5, ID3D12GraphicsCommandList5_Vtbl, 0x55050859_4024_474c_87f5_6472eaee44ea); +::windows_core::imp::interface_hierarchy!(ID3D12GraphicsCommandList5, ::windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild, ID3D12CommandList, ID3D12GraphicsCommandList, ID3D12GraphicsCommandList1, ID3D12GraphicsCommandList2, ID3D12GraphicsCommandList3, ID3D12GraphicsCommandList4); impl ID3D12GraphicsCommandList5 { pub unsafe fn GetPrivateData(&self, guid: *const ::windows_core::GUID, pdatasize: *mut u32, pdata: ::core::option::Option<*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), guid, pdatasize, ::core::mem::transmute(pdata.unwrap_or(::std::ptr::null_mut()))).ok() @@ -8920,7 +8501,7 @@ impl ID3D12GraphicsCommandList5 { } pub unsafe fn GetDevice(&self, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _).ok() } @@ -9244,15 +8825,8 @@ impl ID3D12GraphicsCommandList5 { (::windows_core::Interface::vtable(self).RSSetShadingRateImage)(::windows_core::Interface::as_raw(self), shadingrateimage.into_param().abi()) } } -::windows_core::imp::interface_hierarchy!(ID3D12GraphicsCommandList5, ::windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild, ID3D12CommandList, ID3D12GraphicsCommandList, ID3D12GraphicsCommandList1, ID3D12GraphicsCommandList2, ID3D12GraphicsCommandList3, ID3D12GraphicsCommandList4); unsafe impl ::core::marker::Send for ID3D12GraphicsCommandList5 {} unsafe impl ::core::marker::Sync for ID3D12GraphicsCommandList5 {} -unsafe impl ::windows_core::Interface for ID3D12GraphicsCommandList5 { - type Vtable = ID3D12GraphicsCommandList5_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12GraphicsCommandList5 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x55050859_4024_474c_87f5_6472eaee44ea); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12GraphicsCommandList5_Vtbl { @@ -9260,9 +8834,8 @@ pub struct ID3D12GraphicsCommandList5_Vtbl { pub RSSetShadingRate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, baseshadingrate: D3D12_SHADING_RATE, combiners: *const D3D12_SHADING_RATE_COMBINER), pub RSSetShadingRateImage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, shadingrateimage: *mut ::core::ffi::c_void), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12GraphicsCommandList6(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12GraphicsCommandList6, ID3D12GraphicsCommandList6_Vtbl, 0xc3827890_e548_4cfa_96cf_5689a9370f80); +::windows_core::imp::interface_hierarchy!(ID3D12GraphicsCommandList6, ::windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild, ID3D12CommandList, ID3D12GraphicsCommandList, ID3D12GraphicsCommandList1, ID3D12GraphicsCommandList2, ID3D12GraphicsCommandList3, ID3D12GraphicsCommandList4, ID3D12GraphicsCommandList5); impl ID3D12GraphicsCommandList6 { pub unsafe fn GetPrivateData(&self, guid: *const ::windows_core::GUID, pdatasize: *mut u32, pdata: ::core::option::Option<*mut ::core::ffi::c_void>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.GetPrivateData)(::windows_core::Interface::as_raw(self), guid, pdatasize, ::core::mem::transmute(pdata.unwrap_or(::std::ptr::null_mut()))).ok() @@ -9284,7 +8857,7 @@ impl ID3D12GraphicsCommandList6 { } pub unsafe fn GetDevice(&self, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _).ok() } @@ -9611,24 +9184,16 @@ impl ID3D12GraphicsCommandList6 { (::windows_core::Interface::vtable(self).DispatchMesh)(::windows_core::Interface::as_raw(self), threadgroupcountx, threadgroupcounty, threadgroupcountz) } } -::windows_core::imp::interface_hierarchy!(ID3D12GraphicsCommandList6, ::windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild, ID3D12CommandList, ID3D12GraphicsCommandList, ID3D12GraphicsCommandList1, ID3D12GraphicsCommandList2, ID3D12GraphicsCommandList3, ID3D12GraphicsCommandList4, ID3D12GraphicsCommandList5); unsafe impl ::core::marker::Send for ID3D12GraphicsCommandList6 {} unsafe impl ::core::marker::Sync for ID3D12GraphicsCommandList6 {} -unsafe impl ::windows_core::Interface for ID3D12GraphicsCommandList6 { - type Vtable = ID3D12GraphicsCommandList6_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12GraphicsCommandList6 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc3827890_e548_4cfa_96cf_5689a9370f80); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12GraphicsCommandList6_Vtbl { pub base__: ID3D12GraphicsCommandList5_Vtbl, pub DispatchMesh: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, threadgroupcountx: u32, threadgroupcounty: u32, threadgroupcountz: u32), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12GraphicsCommandList7(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12GraphicsCommandList7, ID3D12GraphicsCommandList7_Vtbl, 0xdd171223_8b61_4769_90e3_160ccde4e2c1); +::windows_core::imp::interface_hierarchy!(ID3D12GraphicsCommandList7, ::windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild, ID3D12CommandList, ID3D12GraphicsCommandList, ID3D12GraphicsCommandList1, ID3D12GraphicsCommandList2, ID3D12GraphicsCommandList3, ID3D12GraphicsCommandList4, ID3D12GraphicsCommandList5, ID3D12GraphicsCommandList6); impl ID3D12GraphicsCommandList7 { pub unsafe fn GetPrivateData(&self, guid: *const ::windows_core::GUID, pdatasize: *mut u32, pdata: ::core::option::Option<*mut ::core::ffi::c_void>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.GetPrivateData)(::windows_core::Interface::as_raw(self), guid, pdatasize, ::core::mem::transmute(pdata.unwrap_or(::std::ptr::null_mut()))).ok() @@ -9650,7 +9215,7 @@ impl ID3D12GraphicsCommandList7 { } pub unsafe fn GetDevice(&self, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _).ok() } @@ -9980,24 +9545,16 @@ impl ID3D12GraphicsCommandList7 { (::windows_core::Interface::vtable(self).Barrier)(::windows_core::Interface::as_raw(self), pbarriergroups.len().try_into().unwrap(), ::core::mem::transmute(pbarriergroups.as_ptr())) } } -::windows_core::imp::interface_hierarchy!(ID3D12GraphicsCommandList7, ::windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild, ID3D12CommandList, ID3D12GraphicsCommandList, ID3D12GraphicsCommandList1, ID3D12GraphicsCommandList2, ID3D12GraphicsCommandList3, ID3D12GraphicsCommandList4, ID3D12GraphicsCommandList5, ID3D12GraphicsCommandList6); unsafe impl ::core::marker::Send for ID3D12GraphicsCommandList7 {} unsafe impl ::core::marker::Sync for ID3D12GraphicsCommandList7 {} -unsafe impl ::windows_core::Interface for ID3D12GraphicsCommandList7 { - type Vtable = ID3D12GraphicsCommandList7_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12GraphicsCommandList7 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdd171223_8b61_4769_90e3_160ccde4e2c1); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12GraphicsCommandList7_Vtbl { pub base__: ID3D12GraphicsCommandList6_Vtbl, pub Barrier: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, numbarriergroups: u32, pbarriergroups: *const D3D12_BARRIER_GROUP), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12GraphicsCommandList8(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12GraphicsCommandList8, ID3D12GraphicsCommandList8_Vtbl, 0xee936ef9_599d_4d28_938e_23c4ad05ce51); +::windows_core::imp::interface_hierarchy!(ID3D12GraphicsCommandList8, ::windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild, ID3D12CommandList, ID3D12GraphicsCommandList, ID3D12GraphicsCommandList1, ID3D12GraphicsCommandList2, ID3D12GraphicsCommandList3, ID3D12GraphicsCommandList4, ID3D12GraphicsCommandList5, ID3D12GraphicsCommandList6, ID3D12GraphicsCommandList7); impl ID3D12GraphicsCommandList8 { pub unsafe fn GetPrivateData(&self, guid: *const ::windows_core::GUID, pdatasize: *mut u32, pdata: ::core::option::Option<*mut ::core::ffi::c_void>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.GetPrivateData)(::windows_core::Interface::as_raw(self), guid, pdatasize, ::core::mem::transmute(pdata.unwrap_or(::std::ptr::null_mut()))).ok() @@ -10019,7 +9576,7 @@ impl ID3D12GraphicsCommandList8 { } pub unsafe fn GetDevice(&self, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _).ok() } @@ -10352,24 +9909,16 @@ impl ID3D12GraphicsCommandList8 { (::windows_core::Interface::vtable(self).OMSetFrontAndBackStencilRef)(::windows_core::Interface::as_raw(self), frontstencilref, backstencilref) } } -::windows_core::imp::interface_hierarchy!(ID3D12GraphicsCommandList8, ::windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild, ID3D12CommandList, ID3D12GraphicsCommandList, ID3D12GraphicsCommandList1, ID3D12GraphicsCommandList2, ID3D12GraphicsCommandList3, ID3D12GraphicsCommandList4, ID3D12GraphicsCommandList5, ID3D12GraphicsCommandList6, ID3D12GraphicsCommandList7); unsafe impl ::core::marker::Send for ID3D12GraphicsCommandList8 {} unsafe impl ::core::marker::Sync for ID3D12GraphicsCommandList8 {} -unsafe impl ::windows_core::Interface for ID3D12GraphicsCommandList8 { - type Vtable = ID3D12GraphicsCommandList8_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12GraphicsCommandList8 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xee936ef9_599d_4d28_938e_23c4ad05ce51); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12GraphicsCommandList8_Vtbl { pub base__: ID3D12GraphicsCommandList7_Vtbl, pub OMSetFrontAndBackStencilRef: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, frontstencilref: u32, backstencilref: u32), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12GraphicsCommandList9(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12GraphicsCommandList9, ID3D12GraphicsCommandList9_Vtbl, 0x34ed2808_ffe6_4c2b_b11a_cabd2b0c59e1); +::windows_core::imp::interface_hierarchy!(ID3D12GraphicsCommandList9, ::windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild, ID3D12CommandList, ID3D12GraphicsCommandList, ID3D12GraphicsCommandList1, ID3D12GraphicsCommandList2, ID3D12GraphicsCommandList3, ID3D12GraphicsCommandList4, ID3D12GraphicsCommandList5, ID3D12GraphicsCommandList6, ID3D12GraphicsCommandList7, ID3D12GraphicsCommandList8); impl ID3D12GraphicsCommandList9 { pub unsafe fn GetPrivateData(&self, guid: *const ::windows_core::GUID, pdatasize: *mut u32, pdata: ::core::option::Option<*mut ::core::ffi::c_void>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.GetPrivateData)(::windows_core::Interface::as_raw(self), guid, pdatasize, ::core::mem::transmute(pdata.unwrap_or(::std::ptr::null_mut()))).ok() @@ -10391,7 +9940,7 @@ impl ID3D12GraphicsCommandList9 { } pub unsafe fn GetDevice(&self, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _).ok() } @@ -10730,15 +10279,8 @@ impl ID3D12GraphicsCommandList9 { (::windows_core::Interface::vtable(self).IASetIndexBufferStripCutValue)(::windows_core::Interface::as_raw(self), ibstripcutvalue) } } -::windows_core::imp::interface_hierarchy!(ID3D12GraphicsCommandList9, ::windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild, ID3D12CommandList, ID3D12GraphicsCommandList, ID3D12GraphicsCommandList1, ID3D12GraphicsCommandList2, ID3D12GraphicsCommandList3, ID3D12GraphicsCommandList4, ID3D12GraphicsCommandList5, ID3D12GraphicsCommandList6, ID3D12GraphicsCommandList7, ID3D12GraphicsCommandList8); unsafe impl ::core::marker::Send for ID3D12GraphicsCommandList9 {} unsafe impl ::core::marker::Sync for ID3D12GraphicsCommandList9 {} -unsafe impl ::windows_core::Interface for ID3D12GraphicsCommandList9 { - type Vtable = ID3D12GraphicsCommandList9_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12GraphicsCommandList9 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x34ed2808_ffe6_4c2b_b11a_cabd2b0c59e1); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12GraphicsCommandList9_Vtbl { @@ -10746,9 +10288,8 @@ pub struct ID3D12GraphicsCommandList9_Vtbl { pub RSSetDepthBias: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, depthbias: f32, depthbiasclamp: f32, slopescaleddepthbias: f32), pub IASetIndexBufferStripCutValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ibstripcutvalue: D3D12_INDEX_BUFFER_STRIP_CUT_VALUE), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12Heap(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12Heap, ID3D12Heap_Vtbl, 0x6b3b2502_6e51_45b3_90ee_9884265e8df3); +::windows_core::imp::interface_hierarchy!(ID3D12Heap, ::windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild, ID3D12Pageable); impl ID3D12Heap { pub unsafe fn GetPrivateData(&self, guid: *const ::windows_core::GUID, pdatasize: *mut u32, pdata: ::core::option::Option<*mut ::core::ffi::c_void>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.GetPrivateData)(::windows_core::Interface::as_raw(self), guid, pdatasize, ::core::mem::transmute(pdata.unwrap_or(::std::ptr::null_mut()))).ok() @@ -10770,7 +10311,7 @@ impl ID3D12Heap { } pub unsafe fn GetDevice(&self, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _).ok() } @@ -10780,24 +10321,16 @@ impl ID3D12Heap { result__ } } -::windows_core::imp::interface_hierarchy!(ID3D12Heap, ::windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild, ID3D12Pageable); unsafe impl ::core::marker::Send for ID3D12Heap {} unsafe impl ::core::marker::Sync for ID3D12Heap {} -unsafe impl ::windows_core::Interface for ID3D12Heap { - type Vtable = ID3D12Heap_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12Heap { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6b3b2502_6e51_45b3_90ee_9884265e8df3); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12Heap_Vtbl { pub base__: ID3D12Pageable_Vtbl, pub GetDesc: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut D3D12_HEAP_DESC), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12Heap1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12Heap1, ID3D12Heap1_Vtbl, 0x572f7389_2168_49e3_9693_d6df5871bf6d); +::windows_core::imp::interface_hierarchy!(ID3D12Heap1, ::windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild, ID3D12Pageable, ID3D12Heap); impl ID3D12Heap1 { pub unsafe fn GetPrivateData(&self, guid: *const ::windows_core::GUID, pdatasize: *mut u32, pdata: ::core::option::Option<*mut ::core::ffi::c_void>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.GetPrivateData)(::windows_core::Interface::as_raw(self), guid, pdatasize, ::core::mem::transmute(pdata.unwrap_or(::std::ptr::null_mut()))).ok() @@ -10819,7 +10352,7 @@ impl ID3D12Heap1 { } pub unsafe fn GetDevice(&self, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _).ok() } @@ -10830,29 +10363,21 @@ impl ID3D12Heap1 { } pub unsafe fn GetProtectedResourceSession(&self, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).GetProtectedResourceSession)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _).ok() } } -::windows_core::imp::interface_hierarchy!(ID3D12Heap1, ::windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild, ID3D12Pageable, ID3D12Heap); unsafe impl ::core::marker::Send for ID3D12Heap1 {} unsafe impl ::core::marker::Sync for ID3D12Heap1 {} -unsafe impl ::windows_core::Interface for ID3D12Heap1 { - type Vtable = ID3D12Heap1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12Heap1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x572f7389_2168_49e3_9693_d6df5871bf6d); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12Heap1_Vtbl { pub base__: ID3D12Heap_Vtbl, pub GetProtectedResourceSession: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppprotectedsession: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12InfoQueue(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12InfoQueue, ID3D12InfoQueue_Vtbl, 0x0742a90b_c387_483f_b946_30a7e4e61458); +::windows_core::imp::interface_hierarchy!(ID3D12InfoQueue, ::windows_core::IUnknown); impl ID3D12InfoQueue { pub unsafe fn SetMessageCountLimit(&self, messagecountlimit: u64) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetMessageCountLimit)(::windows_core::Interface::as_raw(self), messagecountlimit).ok() @@ -10978,15 +10503,8 @@ impl ID3D12InfoQueue { (::windows_core::Interface::vtable(self).GetMuteDebugOutput)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(ID3D12InfoQueue, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID3D12InfoQueue {} unsafe impl ::core::marker::Sync for ID3D12InfoQueue {} -unsafe impl ::windows_core::Interface for ID3D12InfoQueue { - type Vtable = ID3D12InfoQueue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12InfoQueue { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0742a90b_c387_483f_b946_30a7e4e61458); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12InfoQueue_Vtbl { @@ -11027,9 +10545,8 @@ pub struct ID3D12InfoQueue_Vtbl { pub SetMuteDebugOutput: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bmute: super::super::Foundation::BOOL), pub GetMuteDebugOutput: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12InfoQueue1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12InfoQueue1, ID3D12InfoQueue1_Vtbl, 0x2852dd88_b484_4c0c_b6b1_67168500e600); +::windows_core::imp::interface_hierarchy!(ID3D12InfoQueue1, ::windows_core::IUnknown, ID3D12InfoQueue); impl ID3D12InfoQueue1 { pub unsafe fn SetMessageCountLimit(&self, messagecountlimit: u64) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.SetMessageCountLimit)(::windows_core::Interface::as_raw(self), messagecountlimit).ok() @@ -11161,15 +10678,8 @@ impl ID3D12InfoQueue1 { (::windows_core::Interface::vtable(self).UnregisterMessageCallback)(::windows_core::Interface::as_raw(self), callbackcookie).ok() } } -::windows_core::imp::interface_hierarchy!(ID3D12InfoQueue1, ::windows_core::IUnknown, ID3D12InfoQueue); unsafe impl ::core::marker::Send for ID3D12InfoQueue1 {} unsafe impl ::core::marker::Sync for ID3D12InfoQueue1 {} -unsafe impl ::windows_core::Interface for ID3D12InfoQueue1 { - type Vtable = ID3D12InfoQueue1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12InfoQueue1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2852dd88_b484_4c0c_b6b1_67168500e600); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12InfoQueue1_Vtbl { @@ -11177,9 +10687,8 @@ pub struct ID3D12InfoQueue1_Vtbl { pub RegisterMessageCallback: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, callbackfunc: D3D12MessageFunc, callbackfilterflags: D3D12_MESSAGE_CALLBACK_FLAGS, pcontext: *mut ::core::ffi::c_void, pcallbackcookie: *mut u32) -> ::windows_core::HRESULT, pub UnregisterMessageCallback: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, callbackcookie: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12LibraryReflection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12LibraryReflection, ID3D12LibraryReflection_Vtbl, 0x8e349d19_54db_4a56_9dc9_119d87bdb804); +::windows_core::imp::interface_hierarchy!(ID3D12LibraryReflection, ::windows_core::IUnknown); impl ID3D12LibraryReflection { pub unsafe fn GetDesc(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -11189,15 +10698,8 @@ impl ID3D12LibraryReflection { (::windows_core::Interface::vtable(self).GetFunctionByIndex)(::windows_core::Interface::as_raw(self), functionindex) } } -::windows_core::imp::interface_hierarchy!(ID3D12LibraryReflection, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID3D12LibraryReflection {} unsafe impl ::core::marker::Sync for ID3D12LibraryReflection {} -unsafe impl ::windows_core::Interface for ID3D12LibraryReflection { - type Vtable = ID3D12LibraryReflection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12LibraryReflection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8e349d19_54db_4a56_9dc9_119d87bdb804); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12LibraryReflection_Vtbl { @@ -11205,32 +10707,23 @@ pub struct ID3D12LibraryReflection_Vtbl { pub GetDesc: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdesc: *mut D3D12_LIBRARY_DESC) -> ::windows_core::HRESULT, pub GetFunctionByIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, functionindex: i32) -> ::core::option::Option, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12LifetimeOwner(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12LifetimeOwner, ID3D12LifetimeOwner_Vtbl, 0xe667af9f_cd56_4f46_83ce_032e595d70a8); +::windows_core::imp::interface_hierarchy!(ID3D12LifetimeOwner, ::windows_core::IUnknown); impl ID3D12LifetimeOwner { pub unsafe fn LifetimeStateUpdated(&self, newstate: D3D12_LIFETIME_STATE) { (::windows_core::Interface::vtable(self).LifetimeStateUpdated)(::windows_core::Interface::as_raw(self), newstate) } } -::windows_core::imp::interface_hierarchy!(ID3D12LifetimeOwner, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID3D12LifetimeOwner {} unsafe impl ::core::marker::Sync for ID3D12LifetimeOwner {} -unsafe impl ::windows_core::Interface for ID3D12LifetimeOwner { - type Vtable = ID3D12LifetimeOwner_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12LifetimeOwner { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe667af9f_cd56_4f46_83ce_032e595d70a8); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12LifetimeOwner_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub LifetimeStateUpdated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newstate: D3D12_LIFETIME_STATE), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12LifetimeTracker(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12LifetimeTracker, ID3D12LifetimeTracker_Vtbl, 0x3fd03d36_4eb1_424a_a582_494ecb8ba813); +::windows_core::imp::interface_hierarchy!(ID3D12LifetimeTracker, ::windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild); impl ID3D12LifetimeTracker { pub unsafe fn GetPrivateData(&self, guid: *const ::windows_core::GUID, pdatasize: *mut u32, pdata: ::core::option::Option<*mut ::core::ffi::c_void>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.GetPrivateData)(::windows_core::Interface::as_raw(self), guid, pdatasize, ::core::mem::transmute(pdata.unwrap_or(::std::ptr::null_mut()))).ok() @@ -11252,7 +10745,7 @@ impl ID3D12LifetimeTracker { } pub unsafe fn GetDevice(&self, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _).ok() } @@ -11263,47 +10756,31 @@ impl ID3D12LifetimeTracker { (::windows_core::Interface::vtable(self).DestroyOwnedObject)(::windows_core::Interface::as_raw(self), pobject.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ID3D12LifetimeTracker, ::windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild); unsafe impl ::core::marker::Send for ID3D12LifetimeTracker {} unsafe impl ::core::marker::Sync for ID3D12LifetimeTracker {} -unsafe impl ::windows_core::Interface for ID3D12LifetimeTracker { - type Vtable = ID3D12LifetimeTracker_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12LifetimeTracker { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3fd03d36_4eb1_424a_a582_494ecb8ba813); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12LifetimeTracker_Vtbl { pub base__: ID3D12DeviceChild_Vtbl, pub DestroyOwnedObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pobject: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12ManualWriteTrackingResource(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12ManualWriteTrackingResource, ID3D12ManualWriteTrackingResource_Vtbl, 0x86ca3b85_49ad_4b6e_aed5_eddb18540f41); +::windows_core::imp::interface_hierarchy!(ID3D12ManualWriteTrackingResource, ::windows_core::IUnknown); impl ID3D12ManualWriteTrackingResource { pub unsafe fn TrackWrite(&self, subresource: u32, pwrittenrange: ::core::option::Option<*const D3D12_RANGE>) { (::windows_core::Interface::vtable(self).TrackWrite)(::windows_core::Interface::as_raw(self), subresource, ::core::mem::transmute(pwrittenrange.unwrap_or(::std::ptr::null()))) } } -::windows_core::imp::interface_hierarchy!(ID3D12ManualWriteTrackingResource, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID3D12ManualWriteTrackingResource {} unsafe impl ::core::marker::Sync for ID3D12ManualWriteTrackingResource {} -unsafe impl ::windows_core::Interface for ID3D12ManualWriteTrackingResource { - type Vtable = ID3D12ManualWriteTrackingResource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12ManualWriteTrackingResource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x86ca3b85_49ad_4b6e_aed5_eddb18540f41); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12ManualWriteTrackingResource_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub TrackWrite: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, subresource: u32, pwrittenrange: *const D3D12_RANGE), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12MetaCommand(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12MetaCommand, ID3D12MetaCommand_Vtbl, 0xdbb84c27_36ce_4fc9_b801_f048c46ac570); +::windows_core::imp::interface_hierarchy!(ID3D12MetaCommand, ::windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild, ID3D12Pageable); impl ID3D12MetaCommand { pub unsafe fn GetPrivateData(&self, guid: *const ::windows_core::GUID, pdatasize: *mut u32, pdata: ::core::option::Option<*mut ::core::ffi::c_void>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.GetPrivateData)(::windows_core::Interface::as_raw(self), guid, pdatasize, ::core::mem::transmute(pdata.unwrap_or(::std::ptr::null_mut()))).ok() @@ -11325,7 +10802,7 @@ impl ID3D12MetaCommand { } pub unsafe fn GetDevice(&self, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _).ok() } @@ -11333,24 +10810,16 @@ impl ID3D12MetaCommand { (::windows_core::Interface::vtable(self).GetRequiredParameterResourceSize)(::windows_core::Interface::as_raw(self), stage, parameterindex) } } -::windows_core::imp::interface_hierarchy!(ID3D12MetaCommand, ::windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild, ID3D12Pageable); unsafe impl ::core::marker::Send for ID3D12MetaCommand {} unsafe impl ::core::marker::Sync for ID3D12MetaCommand {} -unsafe impl ::windows_core::Interface for ID3D12MetaCommand { - type Vtable = ID3D12MetaCommand_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12MetaCommand { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdbb84c27_36ce_4fc9_b801_f048c46ac570); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12MetaCommand_Vtbl { pub base__: ID3D12Pageable_Vtbl, pub GetRequiredParameterResourceSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, stage: D3D12_META_COMMAND_PARAMETER_STAGE, parameterindex: u32) -> u64, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12Object(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12Object, ID3D12Object_Vtbl, 0xc4fec28f_7966_4e95_9f94_f431cb56c3b8); +::windows_core::imp::interface_hierarchy!(ID3D12Object, ::windows_core::IUnknown); impl ID3D12Object { pub unsafe fn GetPrivateData(&self, guid: *const ::windows_core::GUID, pdatasize: *mut u32, pdata: ::core::option::Option<*mut ::core::ffi::c_void>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetPrivateData)(::windows_core::Interface::as_raw(self), guid, pdatasize, ::core::mem::transmute(pdata.unwrap_or(::std::ptr::null_mut()))).ok() @@ -11371,15 +10840,8 @@ impl ID3D12Object { (::windows_core::Interface::vtable(self).SetName)(::windows_core::Interface::as_raw(self), name.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ID3D12Object, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID3D12Object {} unsafe impl ::core::marker::Sync for ID3D12Object {} -unsafe impl ::windows_core::Interface for ID3D12Object { - type Vtable = ID3D12Object_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12Object { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc4fec28f_7966_4e95_9f94_f431cb56c3b8); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12Object_Vtbl { @@ -11389,9 +10851,8 @@ pub struct ID3D12Object_Vtbl { pub SetPrivateDataInterface: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guid: *const ::windows_core::GUID, pdata: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12Pageable(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12Pageable, ID3D12Pageable_Vtbl, 0x63ee58fb_1268_4835_86da_f008ce62f0d6); +::windows_core::imp::interface_hierarchy!(ID3D12Pageable, ::windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild); impl ID3D12Pageable { pub unsafe fn GetPrivateData(&self, guid: *const ::windows_core::GUID, pdatasize: *mut u32, pdata: ::core::option::Option<*mut ::core::ffi::c_void>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.GetPrivateData)(::windows_core::Interface::as_raw(self), guid, pdatasize, ::core::mem::transmute(pdata.unwrap_or(::std::ptr::null_mut()))).ok() @@ -11413,28 +10874,20 @@ impl ID3D12Pageable { } pub unsafe fn GetDevice(&self, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _).ok() } } -::windows_core::imp::interface_hierarchy!(ID3D12Pageable, ::windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild); unsafe impl ::core::marker::Send for ID3D12Pageable {} unsafe impl ::core::marker::Sync for ID3D12Pageable {} -unsafe impl ::windows_core::Interface for ID3D12Pageable { - type Vtable = ID3D12Pageable_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12Pageable { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x63ee58fb_1268_4835_86da_f008ce62f0d6); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12Pageable_Vtbl { pub base__: ID3D12DeviceChild_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12PipelineLibrary(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12PipelineLibrary, ID3D12PipelineLibrary_Vtbl, 0xc64226a8_9201_46af_b4cc_53fb9ff7414f); +::windows_core::imp::interface_hierarchy!(ID3D12PipelineLibrary, ::windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild); impl ID3D12PipelineLibrary { pub unsafe fn GetPrivateData(&self, guid: *const ::windows_core::GUID, pdatasize: *mut u32, pdata: ::core::option::Option<*mut ::core::ffi::c_void>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.GetPrivateData)(::windows_core::Interface::as_raw(self), guid, pdatasize, ::core::mem::transmute(pdata.unwrap_or(::std::ptr::null_mut()))).ok() @@ -11456,7 +10909,7 @@ impl ID3D12PipelineLibrary { } pub unsafe fn GetDevice(&self, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _).ok() } @@ -11472,7 +10925,7 @@ impl ID3D12PipelineLibrary { pub unsafe fn LoadGraphicsPipeline(&self, pname: P0, pdesc: *const D3D12_GRAPHICS_PIPELINE_STATE_DESC) -> ::windows_core::Result where P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -11480,7 +10933,7 @@ impl ID3D12PipelineLibrary { pub unsafe fn LoadComputePipeline(&self, pname: P0, pdesc: *const D3D12_COMPUTE_PIPELINE_STATE_DESC) -> ::windows_core::Result where P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -11492,15 +10945,8 @@ impl ID3D12PipelineLibrary { (::windows_core::Interface::vtable(self).Serialize)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pdata.as_ptr()), pdata.len().try_into().unwrap()).ok() } } -::windows_core::imp::interface_hierarchy!(ID3D12PipelineLibrary, ::windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild); unsafe impl ::core::marker::Send for ID3D12PipelineLibrary {} unsafe impl ::core::marker::Sync for ID3D12PipelineLibrary {} -unsafe impl ::windows_core::Interface for ID3D12PipelineLibrary { - type Vtable = ID3D12PipelineLibrary_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12PipelineLibrary { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc64226a8_9201_46af_b4cc_53fb9ff7414f); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12PipelineLibrary_Vtbl { @@ -11514,9 +10960,8 @@ pub struct ID3D12PipelineLibrary_Vtbl { pub GetSerializedSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> usize, pub Serialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdata: *mut ::core::ffi::c_void, datasizeinbytes: usize) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12PipelineLibrary1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12PipelineLibrary1, ID3D12PipelineLibrary1_Vtbl, 0x80eabf42_2568_4e5e_bd82_c37f86961dc3); +::windows_core::imp::interface_hierarchy!(ID3D12PipelineLibrary1, ::windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild, ID3D12PipelineLibrary); impl ID3D12PipelineLibrary1 { pub unsafe fn GetPrivateData(&self, guid: *const ::windows_core::GUID, pdatasize: *mut u32, pdata: ::core::option::Option<*mut ::core::ffi::c_void>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.GetPrivateData)(::windows_core::Interface::as_raw(self), guid, pdatasize, ::core::mem::transmute(pdata.unwrap_or(::std::ptr::null_mut()))).ok() @@ -11538,7 +10983,7 @@ impl ID3D12PipelineLibrary1 { } pub unsafe fn GetDevice(&self, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _).ok() } @@ -11554,7 +10999,7 @@ impl ID3D12PipelineLibrary1 { pub unsafe fn LoadGraphicsPipeline(&self, pname: P0, pdesc: *const D3D12_GRAPHICS_PIPELINE_STATE_DESC) -> ::windows_core::Result where P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -11562,7 +11007,7 @@ impl ID3D12PipelineLibrary1 { pub unsafe fn LoadComputePipeline(&self, pname: P0, pdesc: *const D3D12_COMPUTE_PIPELINE_STATE_DESC) -> ::windows_core::Result where P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -11576,30 +11021,22 @@ impl ID3D12PipelineLibrary1 { pub unsafe fn LoadPipeline(&self, pname: P0, pdesc: *const D3D12_PIPELINE_STATE_STREAM_DESC) -> ::windows_core::Result where P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ID3D12PipelineLibrary1, ::windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild, ID3D12PipelineLibrary); unsafe impl ::core::marker::Send for ID3D12PipelineLibrary1 {} unsafe impl ::core::marker::Sync for ID3D12PipelineLibrary1 {} -unsafe impl ::windows_core::Interface for ID3D12PipelineLibrary1 { - type Vtable = ID3D12PipelineLibrary1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12PipelineLibrary1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x80eabf42_2568_4e5e_bd82_c37f86961dc3); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12PipelineLibrary1_Vtbl { pub base__: ID3D12PipelineLibrary_Vtbl, pub LoadPipeline: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pname: ::windows_core::PCWSTR, pdesc: *const D3D12_PIPELINE_STATE_STREAM_DESC, riid: *const ::windows_core::GUID, pppipelinestate: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12PipelineState(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12PipelineState, ID3D12PipelineState_Vtbl, 0x765a30f3_f624_4c6f_a828_ace948622445); +::windows_core::imp::interface_hierarchy!(ID3D12PipelineState, ::windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild, ID3D12Pageable); impl ID3D12PipelineState { pub unsafe fn GetPrivateData(&self, guid: *const ::windows_core::GUID, pdatasize: *mut u32, pdata: ::core::option::Option<*mut ::core::ffi::c_void>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.GetPrivateData)(::windows_core::Interface::as_raw(self), guid, pdatasize, ::core::mem::transmute(pdata.unwrap_or(::std::ptr::null_mut()))).ok() @@ -11621,7 +11058,7 @@ impl ID3D12PipelineState { } pub unsafe fn GetDevice(&self, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _).ok() } @@ -11632,15 +11069,8 @@ impl ID3D12PipelineState { (::windows_core::Interface::vtable(self).GetCachedBlob)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ID3D12PipelineState, ::windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild, ID3D12Pageable); unsafe impl ::core::marker::Send for ID3D12PipelineState {} unsafe impl ::core::marker::Sync for ID3D12PipelineState {} -unsafe impl ::windows_core::Interface for ID3D12PipelineState { - type Vtable = ID3D12PipelineState_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12PipelineState { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x765a30f3_f624_4c6f_a828_ace948622445); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12PipelineState_Vtbl { @@ -11650,9 +11080,8 @@ pub struct ID3D12PipelineState_Vtbl { #[cfg(not(feature = "Win32_Graphics_Direct3D"))] GetCachedBlob: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12ProtectedResourceSession(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12ProtectedResourceSession, ID3D12ProtectedResourceSession_Vtbl, 0x6cd696f4_f289_40cc_8091_5a6c0a099c3d); +::windows_core::imp::interface_hierarchy!(ID3D12ProtectedResourceSession, ::windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild, ID3D12ProtectedSession); impl ID3D12ProtectedResourceSession { pub unsafe fn GetPrivateData(&self, guid: *const ::windows_core::GUID, pdatasize: *mut u32, pdata: ::core::option::Option<*mut ::core::ffi::c_void>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.GetPrivateData)(::windows_core::Interface::as_raw(self), guid, pdatasize, ::core::mem::transmute(pdata.unwrap_or(::std::ptr::null_mut()))).ok() @@ -11674,13 +11103,13 @@ impl ID3D12ProtectedResourceSession { } pub unsafe fn GetDevice(&self, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _).ok() } pub unsafe fn GetStatusFence(&self, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.GetStatusFence)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _).ok() } @@ -11693,24 +11122,16 @@ impl ID3D12ProtectedResourceSession { result__ } } -::windows_core::imp::interface_hierarchy!(ID3D12ProtectedResourceSession, ::windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild, ID3D12ProtectedSession); unsafe impl ::core::marker::Send for ID3D12ProtectedResourceSession {} unsafe impl ::core::marker::Sync for ID3D12ProtectedResourceSession {} -unsafe impl ::windows_core::Interface for ID3D12ProtectedResourceSession { - type Vtable = ID3D12ProtectedResourceSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12ProtectedResourceSession { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6cd696f4_f289_40cc_8091_5a6c0a099c3d); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12ProtectedResourceSession_Vtbl { pub base__: ID3D12ProtectedSession_Vtbl, pub GetDesc: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut D3D12_PROTECTED_RESOURCE_SESSION_DESC), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12ProtectedResourceSession1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12ProtectedResourceSession1, ID3D12ProtectedResourceSession1_Vtbl, 0xd6f12dd6_76fb_406e_8961_4296eefc0409); +::windows_core::imp::interface_hierarchy!(ID3D12ProtectedResourceSession1, ::windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild, ID3D12ProtectedSession, ID3D12ProtectedResourceSession); impl ID3D12ProtectedResourceSession1 { pub unsafe fn GetPrivateData(&self, guid: *const ::windows_core::GUID, pdatasize: *mut u32, pdata: ::core::option::Option<*mut ::core::ffi::c_void>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.GetPrivateData)(::windows_core::Interface::as_raw(self), guid, pdatasize, ::core::mem::transmute(pdata.unwrap_or(::std::ptr::null_mut()))).ok() @@ -11732,13 +11153,13 @@ impl ID3D12ProtectedResourceSession1 { } pub unsafe fn GetDevice(&self, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _).ok() } pub unsafe fn GetStatusFence(&self, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.GetStatusFence)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _).ok() } @@ -11756,24 +11177,16 @@ impl ID3D12ProtectedResourceSession1 { result__ } } -::windows_core::imp::interface_hierarchy!(ID3D12ProtectedResourceSession1, ::windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild, ID3D12ProtectedSession, ID3D12ProtectedResourceSession); unsafe impl ::core::marker::Send for ID3D12ProtectedResourceSession1 {} unsafe impl ::core::marker::Sync for ID3D12ProtectedResourceSession1 {} -unsafe impl ::windows_core::Interface for ID3D12ProtectedResourceSession1 { - type Vtable = ID3D12ProtectedResourceSession1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12ProtectedResourceSession1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd6f12dd6_76fb_406e_8961_4296eefc0409); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12ProtectedResourceSession1_Vtbl { pub base__: ID3D12ProtectedResourceSession_Vtbl, pub GetDesc1: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut D3D12_PROTECTED_RESOURCE_SESSION_DESC1), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12ProtectedSession(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12ProtectedSession, ID3D12ProtectedSession_Vtbl, 0xa1533d18_0ac1_4084_85b9_89a96116806b); +::windows_core::imp::interface_hierarchy!(ID3D12ProtectedSession, ::windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild); impl ID3D12ProtectedSession { pub unsafe fn GetPrivateData(&self, guid: *const ::windows_core::GUID, pdatasize: *mut u32, pdata: ::core::option::Option<*mut ::core::ffi::c_void>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.GetPrivateData)(::windows_core::Interface::as_raw(self), guid, pdatasize, ::core::mem::transmute(pdata.unwrap_or(::std::ptr::null_mut()))).ok() @@ -11795,13 +11208,13 @@ impl ID3D12ProtectedSession { } pub unsafe fn GetDevice(&self, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _).ok() } pub unsafe fn GetStatusFence(&self, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).GetStatusFence)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _).ok() } @@ -11809,15 +11222,8 @@ impl ID3D12ProtectedSession { (::windows_core::Interface::vtable(self).GetSessionStatus)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(ID3D12ProtectedSession, ::windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild); unsafe impl ::core::marker::Send for ID3D12ProtectedSession {} unsafe impl ::core::marker::Sync for ID3D12ProtectedSession {} -unsafe impl ::windows_core::Interface for ID3D12ProtectedSession { - type Vtable = ID3D12ProtectedSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12ProtectedSession { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa1533d18_0ac1_4084_85b9_89a96116806b); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12ProtectedSession_Vtbl { @@ -11825,9 +11231,8 @@ pub struct ID3D12ProtectedSession_Vtbl { pub GetStatusFence: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppfence: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetSessionStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> D3D12_PROTECTED_SESSION_STATUS, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12QueryHeap(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12QueryHeap, ID3D12QueryHeap_Vtbl, 0x0d9658ae_ed45_469e_a61d_970ec583cab4); +::windows_core::imp::interface_hierarchy!(ID3D12QueryHeap, ::windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild, ID3D12Pageable); impl ID3D12QueryHeap { pub unsafe fn GetPrivateData(&self, guid: *const ::windows_core::GUID, pdatasize: *mut u32, pdata: ::core::option::Option<*mut ::core::ffi::c_void>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.GetPrivateData)(::windows_core::Interface::as_raw(self), guid, pdatasize, ::core::mem::transmute(pdata.unwrap_or(::std::ptr::null_mut()))).ok() @@ -11849,28 +11254,20 @@ impl ID3D12QueryHeap { } pub unsafe fn GetDevice(&self, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _).ok() } } -::windows_core::imp::interface_hierarchy!(ID3D12QueryHeap, ::windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild, ID3D12Pageable); unsafe impl ::core::marker::Send for ID3D12QueryHeap {} unsafe impl ::core::marker::Sync for ID3D12QueryHeap {} -unsafe impl ::windows_core::Interface for ID3D12QueryHeap { - type Vtable = ID3D12QueryHeap_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12QueryHeap { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0d9658ae_ed45_469e_a61d_970ec583cab4); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12QueryHeap_Vtbl { pub base__: ID3D12Pageable_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12Resource(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12Resource, ID3D12Resource_Vtbl, 0x696442be_a72e_4059_bc79_5b5c98040fad); +::windows_core::imp::interface_hierarchy!(ID3D12Resource, ::windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild, ID3D12Pageable); impl ID3D12Resource { pub unsafe fn GetPrivateData(&self, guid: *const ::windows_core::GUID, pdatasize: *mut u32, pdata: ::core::option::Option<*mut ::core::ffi::c_void>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.GetPrivateData)(::windows_core::Interface::as_raw(self), guid, pdatasize, ::core::mem::transmute(pdata.unwrap_or(::std::ptr::null_mut()))).ok() @@ -11892,7 +11289,7 @@ impl ID3D12Resource { } pub unsafe fn GetDevice(&self, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _).ok() } @@ -11922,15 +11319,8 @@ impl ID3D12Resource { (::windows_core::Interface::vtable(self).GetHeapProperties)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pheapproperties.unwrap_or(::std::ptr::null_mut())), ::core::mem::transmute(pheapflags.unwrap_or(::std::ptr::null_mut()))).ok() } } -::windows_core::imp::interface_hierarchy!(ID3D12Resource, ::windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild, ID3D12Pageable); unsafe impl ::core::marker::Send for ID3D12Resource {} unsafe impl ::core::marker::Sync for ID3D12Resource {} -unsafe impl ::windows_core::Interface for ID3D12Resource { - type Vtable = ID3D12Resource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12Resource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x696442be_a72e_4059_bc79_5b5c98040fad); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12Resource_Vtbl { @@ -11946,9 +11336,8 @@ pub struct ID3D12Resource_Vtbl { pub ReadFromSubresource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdstdata: *mut ::core::ffi::c_void, dstrowpitch: u32, dstdepthpitch: u32, srcsubresource: u32, psrcbox: *const D3D12_BOX) -> ::windows_core::HRESULT, pub GetHeapProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pheapproperties: *mut D3D12_HEAP_PROPERTIES, pheapflags: *mut D3D12_HEAP_FLAGS) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12Resource1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12Resource1, ID3D12Resource1_Vtbl, 0x9d5e227a_4430_4161_88b3_3eca6bb16e19); +::windows_core::imp::interface_hierarchy!(ID3D12Resource1, ::windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild, ID3D12Pageable, ID3D12Resource); impl ID3D12Resource1 { pub unsafe fn GetPrivateData(&self, guid: *const ::windows_core::GUID, pdatasize: *mut u32, pdata: ::core::option::Option<*mut ::core::ffi::c_void>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.GetPrivateData)(::windows_core::Interface::as_raw(self), guid, pdatasize, ::core::mem::transmute(pdata.unwrap_or(::std::ptr::null_mut()))).ok() @@ -11970,7 +11359,7 @@ impl ID3D12Resource1 { } pub unsafe fn GetDevice(&self, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _).ok() } @@ -12001,29 +11390,21 @@ impl ID3D12Resource1 { } pub unsafe fn GetProtectedResourceSession(&self, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).GetProtectedResourceSession)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _).ok() } } -::windows_core::imp::interface_hierarchy!(ID3D12Resource1, ::windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild, ID3D12Pageable, ID3D12Resource); unsafe impl ::core::marker::Send for ID3D12Resource1 {} unsafe impl ::core::marker::Sync for ID3D12Resource1 {} -unsafe impl ::windows_core::Interface for ID3D12Resource1 { - type Vtable = ID3D12Resource1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12Resource1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9d5e227a_4430_4161_88b3_3eca6bb16e19); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12Resource1_Vtbl { pub base__: ID3D12Resource_Vtbl, pub GetProtectedResourceSession: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppprotectedsession: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12Resource2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12Resource2, ID3D12Resource2_Vtbl, 0xbe36ec3b_ea85_4aeb_a45a_e9d76404a495); +::windows_core::imp::interface_hierarchy!(ID3D12Resource2, ::windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild, ID3D12Pageable, ID3D12Resource, ID3D12Resource1); impl ID3D12Resource2 { pub unsafe fn GetPrivateData(&self, guid: *const ::windows_core::GUID, pdatasize: *mut u32, pdata: ::core::option::Option<*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), guid, pdatasize, ::core::mem::transmute(pdata.unwrap_or(::std::ptr::null_mut()))).ok() @@ -12045,7 +11426,7 @@ impl ID3D12Resource2 { } pub unsafe fn GetDevice(&self, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _).ok() } @@ -12076,7 +11457,7 @@ impl ID3D12Resource2 { } pub unsafe fn GetProtectedResourceSession(&self, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.GetProtectedResourceSession)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _).ok() } @@ -12088,15 +11469,8 @@ impl ID3D12Resource2 { result__ } } -::windows_core::imp::interface_hierarchy!(ID3D12Resource2, ::windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild, ID3D12Pageable, ID3D12Resource, ID3D12Resource1); unsafe impl ::core::marker::Send for ID3D12Resource2 {} unsafe impl ::core::marker::Sync for ID3D12Resource2 {} -unsafe impl ::windows_core::Interface for ID3D12Resource2 { - type Vtable = ID3D12Resource2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12Resource2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbe36ec3b_ea85_4aeb_a45a_e9d76404a495); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12Resource2_Vtbl { @@ -12106,9 +11480,8 @@ pub struct ID3D12Resource2_Vtbl { #[cfg(not(feature = "Win32_Graphics_Dxgi_Common"))] GetDesc1: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12RootSignature(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12RootSignature, ID3D12RootSignature_Vtbl, 0xc54a6b66_72df_4ee8_8be5_a946a1429214); +::windows_core::imp::interface_hierarchy!(ID3D12RootSignature, ::windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild); impl ID3D12RootSignature { pub unsafe fn GetPrivateData(&self, guid: *const ::windows_core::GUID, pdatasize: *mut u32, pdata: ::core::option::Option<*mut ::core::ffi::c_void>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.GetPrivateData)(::windows_core::Interface::as_raw(self), guid, pdatasize, ::core::mem::transmute(pdata.unwrap_or(::std::ptr::null_mut()))).ok() @@ -12130,51 +11503,35 @@ impl ID3D12RootSignature { } pub unsafe fn GetDevice(&self, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _).ok() } } -::windows_core::imp::interface_hierarchy!(ID3D12RootSignature, ::windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild); unsafe impl ::core::marker::Send for ID3D12RootSignature {} unsafe impl ::core::marker::Sync for ID3D12RootSignature {} -unsafe impl ::windows_core::Interface for ID3D12RootSignature { - type Vtable = ID3D12RootSignature_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12RootSignature { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc54a6b66_72df_4ee8_8be5_a946a1429214); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12RootSignature_Vtbl { pub base__: ID3D12DeviceChild_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12RootSignatureDeserializer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12RootSignatureDeserializer, ID3D12RootSignatureDeserializer_Vtbl, 0x34ab647b_3cc8_46ac_841b_c0965645c046); +::windows_core::imp::interface_hierarchy!(ID3D12RootSignatureDeserializer, ::windows_core::IUnknown); impl ID3D12RootSignatureDeserializer { pub unsafe fn GetRootSignatureDesc(&self) -> *mut D3D12_ROOT_SIGNATURE_DESC { (::windows_core::Interface::vtable(self).GetRootSignatureDesc)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(ID3D12RootSignatureDeserializer, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID3D12RootSignatureDeserializer {} unsafe impl ::core::marker::Sync for ID3D12RootSignatureDeserializer {} -unsafe impl ::windows_core::Interface for ID3D12RootSignatureDeserializer { - type Vtable = ID3D12RootSignatureDeserializer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12RootSignatureDeserializer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x34ab647b_3cc8_46ac_841b_c0965645c046); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12RootSignatureDeserializer_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetRootSignatureDesc: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> *mut D3D12_ROOT_SIGNATURE_DESC, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12SDKConfiguration(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12SDKConfiguration, ID3D12SDKConfiguration_Vtbl, 0xe9eb5314_33aa_42b2_a718_d77f58b1f1c7); +::windows_core::imp::interface_hierarchy!(ID3D12SDKConfiguration, ::windows_core::IUnknown); impl ID3D12SDKConfiguration { pub unsafe fn SetSDKVersion(&self, sdkversion: u32, sdkpath: P0) -> ::windows_core::Result<()> where @@ -12183,24 +11540,16 @@ impl ID3D12SDKConfiguration { (::windows_core::Interface::vtable(self).SetSDKVersion)(::windows_core::Interface::as_raw(self), sdkversion, sdkpath.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ID3D12SDKConfiguration, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID3D12SDKConfiguration {} unsafe impl ::core::marker::Sync for ID3D12SDKConfiguration {} -unsafe impl ::windows_core::Interface for ID3D12SDKConfiguration { - type Vtable = ID3D12SDKConfiguration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12SDKConfiguration { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe9eb5314_33aa_42b2_a718_d77f58b1f1c7); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12SDKConfiguration_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub SetSDKVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sdkversion: u32, sdkpath: ::windows_core::PCSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12SDKConfiguration1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12SDKConfiguration1, ID3D12SDKConfiguration1_Vtbl, 0x8aaf9303_ad25_48b9_9a57_d9c37e009d9f); +::windows_core::imp::interface_hierarchy!(ID3D12SDKConfiguration1, ::windows_core::IUnknown, ID3D12SDKConfiguration); impl ID3D12SDKConfiguration1 { pub unsafe fn SetSDKVersion(&self, sdkversion: u32, sdkpath: P0) -> ::windows_core::Result<()> where @@ -12211,7 +11560,7 @@ impl ID3D12SDKConfiguration1 { pub unsafe fn CreateDeviceFactory(&self, sdkversion: u32, sdkpath: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam<::windows_core::PCSTR>, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -12220,15 +11569,8 @@ impl ID3D12SDKConfiguration1 { (::windows_core::Interface::vtable(self).FreeUnusedSDKs)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(ID3D12SDKConfiguration1, ::windows_core::IUnknown, ID3D12SDKConfiguration); unsafe impl ::core::marker::Send for ID3D12SDKConfiguration1 {} unsafe impl ::core::marker::Sync for ID3D12SDKConfiguration1 {} -unsafe impl ::windows_core::Interface for ID3D12SDKConfiguration1 { - type Vtable = ID3D12SDKConfiguration1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12SDKConfiguration1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8aaf9303_ad25_48b9_9a57_d9c37e009d9f); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12SDKConfiguration1_Vtbl { @@ -12236,9 +11578,8 @@ pub struct ID3D12SDKConfiguration1_Vtbl { pub CreateDeviceFactory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sdkversion: u32, sdkpath: ::windows_core::PCSTR, riid: *const ::windows_core::GUID, ppvfactory: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub FreeUnusedSDKs: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12ShaderCacheSession(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12ShaderCacheSession, ID3D12ShaderCacheSession_Vtbl, 0x28e2495d_0f64_4ae4_a6ec_129255dc49a8); +::windows_core::imp::interface_hierarchy!(ID3D12ShaderCacheSession, ::windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild); impl ID3D12ShaderCacheSession { pub unsafe fn GetPrivateData(&self, guid: *const ::windows_core::GUID, pdatasize: *mut u32, pdata: ::core::option::Option<*mut ::core::ffi::c_void>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.GetPrivateData)(::windows_core::Interface::as_raw(self), guid, pdatasize, ::core::mem::transmute(pdata.unwrap_or(::std::ptr::null_mut()))).ok() @@ -12260,7 +11601,7 @@ impl ID3D12ShaderCacheSession { } pub unsafe fn GetDevice(&self, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _).ok() } @@ -12279,15 +11620,8 @@ impl ID3D12ShaderCacheSession { result__ } } -::windows_core::imp::interface_hierarchy!(ID3D12ShaderCacheSession, ::windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild); unsafe impl ::core::marker::Send for ID3D12ShaderCacheSession {} unsafe impl ::core::marker::Sync for ID3D12ShaderCacheSession {} -unsafe impl ::windows_core::Interface for ID3D12ShaderCacheSession { - type Vtable = ID3D12ShaderCacheSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12ShaderCacheSession { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x28e2495d_0f64_4ae4_a6ec_129255dc49a8); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12ShaderCacheSession_Vtbl { @@ -12297,9 +11631,8 @@ pub struct ID3D12ShaderCacheSession_Vtbl { pub SetDeleteOnDestroy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), pub GetDesc: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut D3D12_SHADER_CACHE_SESSION_DESC), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12ShaderReflection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12ShaderReflection, ID3D12ShaderReflection_Vtbl, 0x5a58797d_a72c_478d_8ba2_efc6b0efe88e); +::windows_core::imp::interface_hierarchy!(ID3D12ShaderReflection, ::windows_core::IUnknown); impl ID3D12ShaderReflection { #[doc = "Required features: `\"Win32_Graphics_Direct3D\"`"] #[cfg(feature = "Win32_Graphics_Direct3D")] @@ -12385,15 +11718,8 @@ impl ID3D12ShaderReflection { (::windows_core::Interface::vtable(self).GetRequiresFlags)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(ID3D12ShaderReflection, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID3D12ShaderReflection {} unsafe impl ::core::marker::Sync for ID3D12ShaderReflection {} -unsafe impl ::windows_core::Interface for ID3D12ShaderReflection { - type Vtable = ID3D12ShaderReflection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12ShaderReflection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5a58797d_a72c_478d_8ba2_efc6b0efe88e); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12ShaderReflection_Vtbl { @@ -12442,9 +11768,7 @@ pub struct ID3D12ShaderReflection_Vtbl { pub GetThreadGroupSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psizex: *mut u32, psizey: *mut u32, psizez: *mut u32) -> u32, pub GetRequiresFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> u64, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12ShaderReflectionConstantBuffer(::std::ptr::NonNull<::std::ffi::c_void>); +::windows_core::imp::interface!(ID3D12ShaderReflectionConstantBuffer, ID3D12ShaderReflectionConstantBuffer_Vtbl); impl ID3D12ShaderReflectionConstantBuffer { #[doc = "Required features: `\"Win32_Graphics_Direct3D\"`"] #[cfg(feature = "Win32_Graphics_Direct3D")] @@ -12463,9 +11787,6 @@ impl ID3D12ShaderReflectionConstantBuffer { } unsafe impl ::core::marker::Send for ID3D12ShaderReflectionConstantBuffer {} unsafe impl ::core::marker::Sync for ID3D12ShaderReflectionConstantBuffer {} -unsafe impl ::windows_core::Interface for ID3D12ShaderReflectionConstantBuffer { - type Vtable = ID3D12ShaderReflectionConstantBuffer_Vtbl; -} #[repr(C)] #[doc(hidden)] pub struct ID3D12ShaderReflectionConstantBuffer_Vtbl { @@ -12476,9 +11797,7 @@ pub struct ID3D12ShaderReflectionConstantBuffer_Vtbl { pub GetVariableByIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32) -> ::core::option::Option, pub GetVariableByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::windows_core::PCSTR) -> ::core::option::Option, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12ShaderReflectionType(::std::ptr::NonNull<::std::ffi::c_void>); +::windows_core::imp::interface!(ID3D12ShaderReflectionType, ID3D12ShaderReflectionType_Vtbl); impl ID3D12ShaderReflectionType { #[doc = "Required features: `\"Win32_Graphics_Direct3D\"`"] #[cfg(feature = "Win32_Graphics_Direct3D")] @@ -12530,9 +11849,6 @@ impl ID3D12ShaderReflectionType { } unsafe impl ::core::marker::Send for ID3D12ShaderReflectionType {} unsafe impl ::core::marker::Sync for ID3D12ShaderReflectionType {} -unsafe impl ::windows_core::Interface for ID3D12ShaderReflectionType { - type Vtable = ID3D12ShaderReflectionType_Vtbl; -} #[repr(C)] #[doc(hidden)] pub struct ID3D12ShaderReflectionType_Vtbl { @@ -12551,9 +11867,7 @@ pub struct ID3D12ShaderReflectionType_Vtbl { pub IsOfType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptype: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ImplementsInterface: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbase: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12ShaderReflectionVariable(::std::ptr::NonNull<::std::ffi::c_void>); +::windows_core::imp::interface!(ID3D12ShaderReflectionVariable, ID3D12ShaderReflectionVariable_Vtbl); impl ID3D12ShaderReflectionVariable { pub unsafe fn GetDesc(&self, pdesc: *mut D3D12_SHADER_VARIABLE_DESC) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetDesc)(::windows_core::Interface::as_raw(self), pdesc).ok() @@ -12570,9 +11884,6 @@ impl ID3D12ShaderReflectionVariable { } unsafe impl ::core::marker::Send for ID3D12ShaderReflectionVariable {} unsafe impl ::core::marker::Sync for ID3D12ShaderReflectionVariable {} -unsafe impl ::windows_core::Interface for ID3D12ShaderReflectionVariable { - type Vtable = ID3D12ShaderReflectionVariable_Vtbl; -} #[repr(C)] #[doc(hidden)] pub struct ID3D12ShaderReflectionVariable_Vtbl { @@ -12581,9 +11892,8 @@ pub struct ID3D12ShaderReflectionVariable_Vtbl { pub GetBuffer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::core::option::Option, pub GetInterfaceSlot: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uarrayindex: u32) -> u32, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12SharingContract(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12SharingContract, ID3D12SharingContract_Vtbl, 0x0adf7d52_929c_4e61_addb_ffed30de66ef); +::windows_core::imp::interface_hierarchy!(ID3D12SharingContract, ::windows_core::IUnknown); impl ID3D12SharingContract { pub unsafe fn Present(&self, presource: P0, subresource: u32, window: P1) where @@ -12605,15 +11915,8 @@ impl ID3D12SharingContract { (::windows_core::Interface::vtable(self).EndCapturableWork)(::windows_core::Interface::as_raw(self), guid) } } -::windows_core::imp::interface_hierarchy!(ID3D12SharingContract, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID3D12SharingContract {} unsafe impl ::core::marker::Sync for ID3D12SharingContract {} -unsafe impl ::windows_core::Interface for ID3D12SharingContract { - type Vtable = ID3D12SharingContract_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12SharingContract { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0adf7d52_929c_4e61_addb_ffed30de66ef); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12SharingContract_Vtbl { @@ -12623,9 +11926,8 @@ pub struct ID3D12SharingContract_Vtbl { pub BeginCapturableWork: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guid: *const ::windows_core::GUID), pub EndCapturableWork: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guid: *const ::windows_core::GUID), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12StateObject(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12StateObject, ID3D12StateObject_Vtbl, 0x47016943_fca8_4594_93ea_af258b55346d); +::windows_core::imp::interface_hierarchy!(ID3D12StateObject, ::windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild, ID3D12Pageable); impl ID3D12StateObject { pub unsafe fn GetPrivateData(&self, guid: *const ::windows_core::GUID, pdatasize: *mut u32, pdata: ::core::option::Option<*mut ::core::ffi::c_void>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.GetPrivateData)(::windows_core::Interface::as_raw(self), guid, pdatasize, ::core::mem::transmute(pdata.unwrap_or(::std::ptr::null_mut()))).ok() @@ -12647,28 +11949,20 @@ impl ID3D12StateObject { } pub unsafe fn GetDevice(&self, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _).ok() } } -::windows_core::imp::interface_hierarchy!(ID3D12StateObject, ::windows_core::IUnknown, ID3D12Object, ID3D12DeviceChild, ID3D12Pageable); unsafe impl ::core::marker::Send for ID3D12StateObject {} unsafe impl ::core::marker::Sync for ID3D12StateObject {} -unsafe impl ::windows_core::Interface for ID3D12StateObject { - type Vtable = ID3D12StateObject_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12StateObject { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x47016943_fca8_4594_93ea_af258b55346d); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12StateObject_Vtbl { pub base__: ID3D12Pageable_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12StateObjectProperties(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12StateObjectProperties, ID3D12StateObjectProperties_Vtbl, 0xde5fa827_9bf9_4f26_89ff_d7f56fde3860); +::windows_core::imp::interface_hierarchy!(ID3D12StateObjectProperties, ::windows_core::IUnknown); impl ID3D12StateObjectProperties { pub unsafe fn GetShaderIdentifier(&self, pexportname: P0) -> *mut ::core::ffi::c_void where @@ -12689,15 +11983,8 @@ impl ID3D12StateObjectProperties { (::windows_core::Interface::vtable(self).SetPipelineStackSize)(::windows_core::Interface::as_raw(self), pipelinestacksizeinbytes) } } -::windows_core::imp::interface_hierarchy!(ID3D12StateObjectProperties, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID3D12StateObjectProperties {} unsafe impl ::core::marker::Sync for ID3D12StateObjectProperties {} -unsafe impl ::windows_core::Interface for ID3D12StateObjectProperties { - type Vtable = ID3D12StateObjectProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12StateObjectProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xde5fa827_9bf9_4f26_89ff_d7f56fde3860); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12StateObjectProperties_Vtbl { @@ -12707,9 +11994,8 @@ pub struct ID3D12StateObjectProperties_Vtbl { pub GetPipelineStackSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> u64, pub SetPipelineStackSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pipelinestacksizeinbytes: u64), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12SwapChainAssistant(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12SwapChainAssistant, ID3D12SwapChainAssistant_Vtbl, 0xf1df64b6_57fd_49cd_8807_c0eb88b45c8f); +::windows_core::imp::interface_hierarchy!(ID3D12SwapChainAssistant, ::windows_core::IUnknown); impl ID3D12SwapChainAssistant { pub unsafe fn GetLUID(&self) -> super::super::Foundation::LUID { let mut result__: super::super::Foundation::LUID = ::core::mem::zeroed(); @@ -12718,14 +12004,14 @@ impl ID3D12SwapChainAssistant { } pub unsafe fn GetSwapChainObject(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetSwapChainObject)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) } pub unsafe fn GetCurrentResourceAndCommandQueue(&self, riidresource: *const ::windows_core::GUID, ppvresource: *mut *mut ::core::ffi::c_void) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetCurrentResourceAndCommandQueue)(::windows_core::Interface::as_raw(self), riidresource, ppvresource, &T::IID, &mut result__).from_abi(result__) @@ -12734,15 +12020,8 @@ impl ID3D12SwapChainAssistant { (::windows_core::Interface::vtable(self).InsertImplicitSync)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ID3D12SwapChainAssistant, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID3D12SwapChainAssistant {} unsafe impl ::core::marker::Sync for ID3D12SwapChainAssistant {} -unsafe impl ::windows_core::Interface for ID3D12SwapChainAssistant { - type Vtable = ID3D12SwapChainAssistant_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12SwapChainAssistant { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf1df64b6_57fd_49cd_8807_c0eb88b45c8f); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12SwapChainAssistant_Vtbl { @@ -12752,9 +12031,8 @@ pub struct ID3D12SwapChainAssistant_Vtbl { pub GetCurrentResourceAndCommandQueue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riidresource: *const ::windows_core::GUID, ppvresource: *mut *mut ::core::ffi::c_void, riidqueue: *const ::windows_core::GUID, ppvqueue: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub InsertImplicitSync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12Tools(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12Tools, ID3D12Tools_Vtbl, 0x7071e1f0_e84b_4b33_974f_12fa49de65c5); +::windows_core::imp::interface_hierarchy!(ID3D12Tools, ::windows_core::IUnknown); impl ID3D12Tools { pub unsafe fn EnableShaderInstrumentation(&self, benable: P0) where @@ -12766,15 +12044,8 @@ impl ID3D12Tools { (::windows_core::Interface::vtable(self).ShaderInstrumentationEnabled)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(ID3D12Tools, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID3D12Tools {} unsafe impl ::core::marker::Sync for ID3D12Tools {} -unsafe impl ::windows_core::Interface for ID3D12Tools { - type Vtable = ID3D12Tools_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12Tools { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7071e1f0_e84b_4b33_974f_12fa49de65c5); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12Tools_Vtbl { @@ -12782,9 +12053,8 @@ pub struct ID3D12Tools_Vtbl { pub EnableShaderInstrumentation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, benable: super::super::Foundation::BOOL), pub ShaderInstrumentationEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12VersionedRootSignatureDeserializer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12VersionedRootSignatureDeserializer, ID3D12VersionedRootSignatureDeserializer_Vtbl, 0x7f91ce67_090c_4bb7_b78e_ed8ff2e31da0); +::windows_core::imp::interface_hierarchy!(ID3D12VersionedRootSignatureDeserializer, ::windows_core::IUnknown); impl ID3D12VersionedRootSignatureDeserializer { pub unsafe fn GetRootSignatureDescAtVersion(&self, converttoversion: D3D_ROOT_SIGNATURE_VERSION) -> ::windows_core::Result<*mut D3D12_VERSIONED_ROOT_SIGNATURE_DESC> { let mut result__ = ::std::mem::zeroed(); @@ -12794,15 +12064,8 @@ impl ID3D12VersionedRootSignatureDeserializer { (::windows_core::Interface::vtable(self).GetUnconvertedRootSignatureDesc)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(ID3D12VersionedRootSignatureDeserializer, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID3D12VersionedRootSignatureDeserializer {} unsafe impl ::core::marker::Sync for ID3D12VersionedRootSignatureDeserializer {} -unsafe impl ::windows_core::Interface for ID3D12VersionedRootSignatureDeserializer { - type Vtable = ID3D12VersionedRootSignatureDeserializer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12VersionedRootSignatureDeserializer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7f91ce67_090c_4bb7_b78e_ed8ff2e31da0); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12VersionedRootSignatureDeserializer_Vtbl { @@ -12810,9 +12073,8 @@ pub struct ID3D12VersionedRootSignatureDeserializer_Vtbl { pub GetRootSignatureDescAtVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, converttoversion: D3D_ROOT_SIGNATURE_VERSION, ppdesc: *mut *mut D3D12_VERSIONED_ROOT_SIGNATURE_DESC) -> ::windows_core::HRESULT, pub GetUnconvertedRootSignatureDesc: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> *mut D3D12_VERSIONED_ROOT_SIGNATURE_DESC, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12VirtualizationGuestDevice(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12VirtualizationGuestDevice, ID3D12VirtualizationGuestDevice_Vtbl, 0xbc66d368_7373_4943_8757_fc87dc79e476); +::windows_core::imp::interface_hierarchy!(ID3D12VirtualizationGuestDevice, ::windows_core::IUnknown); impl ID3D12VirtualizationGuestDevice { pub unsafe fn ShareWithHost(&self, pobject: P0) -> ::windows_core::Result where @@ -12829,15 +12091,8 @@ impl ID3D12VirtualizationGuestDevice { (::windows_core::Interface::vtable(self).CreateFenceFd)(::windows_core::Interface::as_raw(self), pfence.into_param().abi(), fencevalue, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ID3D12VirtualizationGuestDevice, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID3D12VirtualizationGuestDevice {} unsafe impl ::core::marker::Sync for ID3D12VirtualizationGuestDevice {} -unsafe impl ::windows_core::Interface for ID3D12VirtualizationGuestDevice { - type Vtable = ID3D12VirtualizationGuestDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12VirtualizationGuestDevice { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbc66d368_7373_4943_8757_fc87dc79e476); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12VirtualizationGuestDevice_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D9/impl.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D9/impl.rs index 4992b6d106..27f05b0d78 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D9/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D9/impl.rs @@ -110,7 +110,7 @@ impl IDirect3D9_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] @@ -162,7 +162,7 @@ impl IDirect3D9Ex_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDirect3DBaseTexture9_Impl: Sized + IDirect3DResource9_Impl { @@ -217,7 +217,7 @@ impl IDirect3DBaseTexture9_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDirect3DCubeTexture9_Impl: Sized + IDirect3DBaseTexture9_Impl { @@ -271,7 +271,7 @@ impl IDirect3DCubeTexture9_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Foundation_Numerics\"`, `\"Win32_Graphics_Direct3D\"`, `\"Win32_Graphics_Gdi\"`"] @@ -1196,7 +1196,7 @@ impl IDirect3DDevice9_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Foundation_Numerics\"`, `\"Win32_Graphics_Direct3D\"`, `\"Win32_Graphics_Gdi\"`"] @@ -1318,7 +1318,7 @@ impl IDirect3DDevice9Ex_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDirect3DIndexBuffer9_Impl: Sized + IDirect3DResource9_Impl { @@ -1352,7 +1352,7 @@ impl IDirect3DIndexBuffer9_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDirect3DPixelShader9_Impl: Sized { @@ -1385,7 +1385,7 @@ impl IDirect3DPixelShader9_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDirect3DQuery9_Impl: Sized { @@ -1439,7 +1439,7 @@ impl IDirect3DQuery9_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDirect3DResource9_Impl: Sized { @@ -1514,7 +1514,7 @@ impl IDirect3DResource9_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDirect3DStateBlock9_Impl: Sized { @@ -1554,7 +1554,7 @@ impl IDirect3DStateBlock9_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] @@ -1613,7 +1613,7 @@ impl IDirect3DSurface9_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] @@ -1691,7 +1691,7 @@ impl IDirect3DSwapChain9_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] @@ -1729,7 +1729,7 @@ impl IDirect3DSwapChain9Ex_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDirect3DTexture9_Impl: Sized + IDirect3DBaseTexture9_Impl { @@ -1783,7 +1783,7 @@ impl IDirect3DTexture9_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDirect3DVertexBuffer9_Impl: Sized + IDirect3DResource9_Impl { @@ -1817,7 +1817,7 @@ impl IDirect3DVertexBuffer9_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDirect3DVertexDeclaration9_Impl: Sized { @@ -1850,7 +1850,7 @@ impl IDirect3DVertexDeclaration9_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDirect3DVertexShader9_Impl: Sized { @@ -1883,7 +1883,7 @@ impl IDirect3DVertexShader9_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDirect3DVolume9_Impl: Sized { @@ -1958,7 +1958,7 @@ impl IDirect3DVolume9_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDirect3DVolumeTexture9_Impl: Sized + IDirect3DBaseTexture9_Impl { @@ -2012,6 +2012,6 @@ impl IDirect3DVolumeTexture9_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } 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 33db938c0c..756c6d5abd 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D9/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D9/mod.rs @@ -53,9 +53,8 @@ pub unsafe fn Direct3DCreate9Ex(sdkversion: u32) -> ::windows_core::Result ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).RegisterSoftwareDevice)(::windows_core::Interface::as_raw(self), pinitializefunction).ok() @@ -111,13 +110,6 @@ impl IDirect3D9 { (::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::imp::interface_hierarchy!(IDirect3D9, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirect3D9 { - type Vtable = IDirect3D9_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirect3D9 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x81bdcbca_64d4_426d_ae8d_ad0147f4275c); -} #[repr(C)] #[doc(hidden)] pub struct IDirect3D9_Vtbl { @@ -140,9 +132,8 @@ pub struct IDirect3D9_Vtbl { GetAdapterMonitor: usize, pub CreateDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, adapter: u32, devicetype: D3DDEVTYPE, hfocuswindow: super::super::Foundation::HWND, behaviorflags: u32, ppresentationparameters: *mut D3DPRESENT_PARAMETERS, ppreturneddeviceinterface: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirect3D9Ex(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirect3D9Ex, IDirect3D9Ex_Vtbl, 0x02177241_69fc_400c_8ff1_93a44df6861d); +::windows_core::imp::interface_hierarchy!(IDirect3D9Ex, ::windows_core::IUnknown, IDirect3D9); impl IDirect3D9Ex { pub unsafe fn RegisterSoftwareDevice(&self, pinitializefunction: *mut ::core::ffi::c_void) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.RegisterSoftwareDevice)(::windows_core::Interface::as_raw(self), pinitializefunction).ok() @@ -216,13 +207,6 @@ impl IDirect3D9Ex { (::windows_core::Interface::vtable(self).GetAdapterLUID)(::windows_core::Interface::as_raw(self), adapter, pluid).ok() } } -::windows_core::imp::interface_hierarchy!(IDirect3D9Ex, ::windows_core::IUnknown, IDirect3D9); -unsafe impl ::windows_core::Interface for IDirect3D9Ex { - type Vtable = IDirect3D9Ex_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirect3D9Ex { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x02177241_69fc_400c_8ff1_93a44df6861d); -} #[repr(C)] #[doc(hidden)] pub struct IDirect3D9Ex_Vtbl { @@ -233,9 +217,8 @@ pub struct IDirect3D9Ex_Vtbl { pub CreateDeviceEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, adapter: u32, devicetype: D3DDEVTYPE, hfocuswindow: super::super::Foundation::HWND, behaviorflags: u32, ppresentationparameters: *mut D3DPRESENT_PARAMETERS, pfullscreendisplaymode: *mut D3DDISPLAYMODEEX, ppreturneddeviceinterface: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetAdapterLUID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, adapter: u32, pluid: *mut super::super::Foundation::LUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirect3DBaseTexture9(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirect3DBaseTexture9, IDirect3DBaseTexture9_Vtbl, 0x580ca87e_1d3c_4d54_991d_b7d3e3c298ce); +::windows_core::imp::interface_hierarchy!(IDirect3DBaseTexture9, ::windows_core::IUnknown, IDirect3DResource9); impl IDirect3DBaseTexture9 { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -281,13 +264,6 @@ impl IDirect3DBaseTexture9 { (::windows_core::Interface::vtable(self).GenerateMipSubLevels)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(IDirect3DBaseTexture9, ::windows_core::IUnknown, IDirect3DResource9); -unsafe impl ::windows_core::Interface for IDirect3DBaseTexture9 { - type Vtable = IDirect3DBaseTexture9_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirect3DBaseTexture9 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x580ca87e_1d3c_4d54_991d_b7d3e3c298ce); -} #[repr(C)] #[doc(hidden)] pub struct IDirect3DBaseTexture9_Vtbl { @@ -299,9 +275,8 @@ pub struct IDirect3DBaseTexture9_Vtbl { pub GetAutoGenFilterType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> D3DTEXTUREFILTERTYPE, pub GenerateMipSubLevels: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirect3DCubeTexture9(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirect3DCubeTexture9, IDirect3DCubeTexture9_Vtbl, 0xfff32f81_d953_473a_9223_93d652aba93f); +::windows_core::imp::interface_hierarchy!(IDirect3DCubeTexture9, ::windows_core::IUnknown, IDirect3DResource9, IDirect3DBaseTexture9); impl IDirect3DCubeTexture9 { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -363,13 +338,6 @@ impl IDirect3DCubeTexture9 { (::windows_core::Interface::vtable(self).AddDirtyRect)(::windows_core::Interface::as_raw(self), facetype, pdirtyrect).ok() } } -::windows_core::imp::interface_hierarchy!(IDirect3DCubeTexture9, ::windows_core::IUnknown, IDirect3DResource9, IDirect3DBaseTexture9); -unsafe impl ::windows_core::Interface for IDirect3DCubeTexture9 { - type Vtable = IDirect3DCubeTexture9_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirect3DCubeTexture9 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfff32f81_d953_473a_9223_93d652aba93f); -} #[repr(C)] #[doc(hidden)] pub struct IDirect3DCubeTexture9_Vtbl { @@ -380,9 +348,8 @@ pub struct IDirect3DCubeTexture9_Vtbl { pub UnlockRect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, facetype: D3DCUBEMAP_FACES, level: u32) -> ::windows_core::HRESULT, pub AddDirtyRect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, facetype: D3DCUBEMAP_FACES, pdirtyrect: *const super::super::Foundation::RECT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirect3DDevice9(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirect3DDevice9, IDirect3DDevice9_Vtbl, 0xd0223b96_bf7a_43fd_92bd_a43b0d82b9eb); +::windows_core::imp::interface_hierarchy!(IDirect3DDevice9, ::windows_core::IUnknown); impl IDirect3DDevice9 { pub unsafe fn TestCooperativeLevel(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).TestCooperativeLevel)(::windows_core::Interface::as_raw(self)).ok() @@ -839,13 +806,6 @@ impl IDirect3DDevice9 { (::windows_core::Interface::vtable(self).CreateQuery)(::windows_core::Interface::as_raw(self), r#type, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDirect3DDevice9, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirect3DDevice9 { - type Vtable = IDirect3DDevice9_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirect3DDevice9 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd0223b96_bf7a_43fd_92bd_a43b0d82b9eb); -} #[repr(C)] #[doc(hidden)] pub struct IDirect3DDevice9_Vtbl { @@ -991,9 +951,8 @@ pub struct IDirect3DDevice9_Vtbl { pub DeletePatch: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handle: u32) -> ::windows_core::HRESULT, pub CreateQuery: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: D3DQUERYTYPE, ppquery: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirect3DDevice9Ex(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirect3DDevice9Ex, IDirect3DDevice9Ex_Vtbl, 0xb18b10ce_2649_405a_870f_95f777d4313a); +::windows_core::imp::interface_hierarchy!(IDirect3DDevice9Ex, ::windows_core::IUnknown, IDirect3DDevice9); impl IDirect3DDevice9Ex { pub unsafe fn TestCooperativeLevel(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.TestCooperativeLevel)(::windows_core::Interface::as_raw(self)).ok() @@ -1515,13 +1474,6 @@ impl IDirect3DDevice9Ex { (::windows_core::Interface::vtable(self).GetDisplayModeEx)(::windows_core::Interface::as_raw(self), iswapchain, pmode, protation).ok() } } -::windows_core::imp::interface_hierarchy!(IDirect3DDevice9Ex, ::windows_core::IUnknown, IDirect3DDevice9); -unsafe impl ::windows_core::Interface for IDirect3DDevice9Ex { - type Vtable = IDirect3DDevice9Ex_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirect3DDevice9Ex { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb18b10ce_2649_405a_870f_95f777d4313a); -} #[repr(C)] #[doc(hidden)] pub struct IDirect3DDevice9Ex_Vtbl { @@ -1545,9 +1497,8 @@ pub struct IDirect3DDevice9Ex_Vtbl { pub ResetEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppresentationparameters: *mut D3DPRESENT_PARAMETERS, pfullscreendisplaymode: *mut D3DDISPLAYMODEEX) -> ::windows_core::HRESULT, pub GetDisplayModeEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, iswapchain: u32, pmode: *mut D3DDISPLAYMODEEX, protation: *mut D3DDISPLAYROTATION) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirect3DIndexBuffer9(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirect3DIndexBuffer9, IDirect3DIndexBuffer9_Vtbl, 0x7c9dd65e_d3f7_4529_acee_785830acde35); +::windows_core::imp::interface_hierarchy!(IDirect3DIndexBuffer9, ::windows_core::IUnknown, IDirect3DResource9); impl IDirect3DIndexBuffer9 { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1584,13 +1535,6 @@ impl IDirect3DIndexBuffer9 { (::windows_core::Interface::vtable(self).GetDesc)(::windows_core::Interface::as_raw(self), pdesc).ok() } } -::windows_core::imp::interface_hierarchy!(IDirect3DIndexBuffer9, ::windows_core::IUnknown, IDirect3DResource9); -unsafe impl ::windows_core::Interface for IDirect3DIndexBuffer9 { - type Vtable = IDirect3DIndexBuffer9_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirect3DIndexBuffer9 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7c9dd65e_d3f7_4529_acee_785830acde35); -} #[repr(C)] #[doc(hidden)] pub struct IDirect3DIndexBuffer9_Vtbl { @@ -1599,9 +1543,8 @@ pub struct IDirect3DIndexBuffer9_Vtbl { pub Unlock: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDesc: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdesc: *mut D3DINDEXBUFFER_DESC) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirect3DPixelShader9(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirect3DPixelShader9, IDirect3DPixelShader9_Vtbl, 0x6d3bdbdc_5b02_4415_b852_ce5e8bccb289); +::windows_core::imp::interface_hierarchy!(IDirect3DPixelShader9, ::windows_core::IUnknown); impl IDirect3DPixelShader9 { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1611,13 +1554,6 @@ impl IDirect3DPixelShader9 { (::windows_core::Interface::vtable(self).GetFunction)(::windows_core::Interface::as_raw(self), param0, psizeofdata).ok() } } -::windows_core::imp::interface_hierarchy!(IDirect3DPixelShader9, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirect3DPixelShader9 { - type Vtable = IDirect3DPixelShader9_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirect3DPixelShader9 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6d3bdbdc_5b02_4415_b852_ce5e8bccb289); -} #[repr(C)] #[doc(hidden)] pub struct IDirect3DPixelShader9_Vtbl { @@ -1625,9 +1561,8 @@ pub struct IDirect3DPixelShader9_Vtbl { pub GetDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppdevice: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetFunction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: *mut ::core::ffi::c_void, psizeofdata: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirect3DQuery9(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirect3DQuery9, IDirect3DQuery9_Vtbl, 0xd9771460_a695_4f26_bbd3_27b840b541cc); +::windows_core::imp::interface_hierarchy!(IDirect3DQuery9, ::windows_core::IUnknown); impl IDirect3DQuery9 { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1646,13 +1581,6 @@ impl IDirect3DQuery9 { (::windows_core::Interface::vtable(self).GetData)(::windows_core::Interface::as_raw(self), pdata, dwsize, dwgetdataflags).ok() } } -::windows_core::imp::interface_hierarchy!(IDirect3DQuery9, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirect3DQuery9 { - type Vtable = IDirect3DQuery9_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirect3DQuery9 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd9771460_a695_4f26_bbd3_27b840b541cc); -} #[repr(C)] #[doc(hidden)] pub struct IDirect3DQuery9_Vtbl { @@ -1663,9 +1591,8 @@ pub struct IDirect3DQuery9_Vtbl { pub Issue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwissueflags: u32) -> ::windows_core::HRESULT, pub GetData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdata: *mut ::core::ffi::c_void, dwsize: u32, dwgetdataflags: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirect3DResource9(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirect3DResource9, IDirect3DResource9_Vtbl, 0x05eec05d_8f7d_4362_b999_d1baf357c704); +::windows_core::imp::interface_hierarchy!(IDirect3DResource9, ::windows_core::IUnknown); impl IDirect3DResource9 { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1693,13 +1620,6 @@ impl IDirect3DResource9 { (::windows_core::Interface::vtable(self).GetType)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(IDirect3DResource9, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirect3DResource9 { - type Vtable = IDirect3DResource9_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirect3DResource9 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x05eec05d_8f7d_4362_b999_d1baf357c704); -} #[repr(C)] #[doc(hidden)] pub struct IDirect3DResource9_Vtbl { @@ -1713,9 +1633,8 @@ pub struct IDirect3DResource9_Vtbl { pub PreLoad: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), pub GetType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> D3DRESOURCETYPE, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirect3DStateBlock9(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirect3DStateBlock9, IDirect3DStateBlock9_Vtbl, 0xb07c4fe5_310d_4ba8_a23c_4f0f206f218b); +::windows_core::imp::interface_hierarchy!(IDirect3DStateBlock9, ::windows_core::IUnknown); impl IDirect3DStateBlock9 { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1728,13 +1647,6 @@ impl IDirect3DStateBlock9 { (::windows_core::Interface::vtable(self).Apply)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IDirect3DStateBlock9, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirect3DStateBlock9 { - type Vtable = IDirect3DStateBlock9_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirect3DStateBlock9 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb07c4fe5_310d_4ba8_a23c_4f0f206f218b); -} #[repr(C)] #[doc(hidden)] pub struct IDirect3DStateBlock9_Vtbl { @@ -1743,9 +1655,8 @@ pub struct IDirect3DStateBlock9_Vtbl { pub Capture: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Apply: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirect3DSurface9(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirect3DSurface9, IDirect3DSurface9_Vtbl, 0x0cfbaf3a_9ff6_429a_99b3_a2796af8b89b); +::windows_core::imp::interface_hierarchy!(IDirect3DSurface9, ::windows_core::IUnknown, IDirect3DResource9); impl IDirect3DSurface9 { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1798,13 +1709,6 @@ impl IDirect3DSurface9 { (::windows_core::Interface::vtable(self).ReleaseDC)(::windows_core::Interface::as_raw(self), hdc.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IDirect3DSurface9, ::windows_core::IUnknown, IDirect3DResource9); -unsafe impl ::windows_core::Interface for IDirect3DSurface9 { - type Vtable = IDirect3DSurface9_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirect3DSurface9 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0cfbaf3a_9ff6_429a_99b3_a2796af8b89b); -} #[repr(C)] #[doc(hidden)] pub struct IDirect3DSurface9_Vtbl { @@ -1822,9 +1726,8 @@ pub struct IDirect3DSurface9_Vtbl { #[cfg(not(feature = "Win32_Graphics_Gdi"))] ReleaseDC: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirect3DSwapChain9(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirect3DSwapChain9, IDirect3DSwapChain9_Vtbl, 0x794950f2_adfc_458a_905e_10a10b0b503b); +::windows_core::imp::interface_hierarchy!(IDirect3DSwapChain9, ::windows_core::IUnknown); impl IDirect3DSwapChain9 { #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] #[cfg(feature = "Win32_Graphics_Gdi")] @@ -1858,13 +1761,6 @@ impl IDirect3DSwapChain9 { (::windows_core::Interface::vtable(self).GetPresentParameters)(::windows_core::Interface::as_raw(self), ppresentationparameters).ok() } } -::windows_core::imp::interface_hierarchy!(IDirect3DSwapChain9, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirect3DSwapChain9 { - type Vtable = IDirect3DSwapChain9_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirect3DSwapChain9 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x794950f2_adfc_458a_905e_10a10b0b503b); -} #[repr(C)] #[doc(hidden)] pub struct IDirect3DSwapChain9_Vtbl { @@ -1880,9 +1776,8 @@ pub struct IDirect3DSwapChain9_Vtbl { pub GetDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppdevice: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetPresentParameters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppresentationparameters: *mut D3DPRESENT_PARAMETERS) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirect3DSwapChain9Ex(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirect3DSwapChain9Ex, IDirect3DSwapChain9Ex_Vtbl, 0x91886caf_1c3d_4d2e_a0ab_3e4c7d8d3303); +::windows_core::imp::interface_hierarchy!(IDirect3DSwapChain9Ex, ::windows_core::IUnknown, IDirect3DSwapChain9); impl IDirect3DSwapChain9Ex { #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] #[cfg(feature = "Win32_Graphics_Gdi")] @@ -1925,13 +1820,6 @@ impl IDirect3DSwapChain9Ex { (::windows_core::Interface::vtable(self).GetDisplayModeEx)(::windows_core::Interface::as_raw(self), pmode, protation).ok() } } -::windows_core::imp::interface_hierarchy!(IDirect3DSwapChain9Ex, ::windows_core::IUnknown, IDirect3DSwapChain9); -unsafe impl ::windows_core::Interface for IDirect3DSwapChain9Ex { - type Vtable = IDirect3DSwapChain9Ex_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirect3DSwapChain9Ex { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x91886caf_1c3d_4d2e_a0ab_3e4c7d8d3303); -} #[repr(C)] #[doc(hidden)] pub struct IDirect3DSwapChain9Ex_Vtbl { @@ -1940,9 +1828,8 @@ pub struct IDirect3DSwapChain9Ex_Vtbl { pub GetPresentStats: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppresentationstatistics: *mut D3DPRESENTSTATS) -> ::windows_core::HRESULT, pub GetDisplayModeEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pmode: *mut D3DDISPLAYMODEEX, protation: *mut D3DDISPLAYROTATION) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirect3DTexture9(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirect3DTexture9, IDirect3DTexture9_Vtbl, 0x85c31227_3de5_4f00_9b3a_f11ac38c18b5); +::windows_core::imp::interface_hierarchy!(IDirect3DTexture9, ::windows_core::IUnknown, IDirect3DResource9, IDirect3DBaseTexture9); impl IDirect3DTexture9 { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2004,13 +1891,6 @@ impl IDirect3DTexture9 { (::windows_core::Interface::vtable(self).AddDirtyRect)(::windows_core::Interface::as_raw(self), pdirtyrect).ok() } } -::windows_core::imp::interface_hierarchy!(IDirect3DTexture9, ::windows_core::IUnknown, IDirect3DResource9, IDirect3DBaseTexture9); -unsafe impl ::windows_core::Interface for IDirect3DTexture9 { - type Vtable = IDirect3DTexture9_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirect3DTexture9 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x85c31227_3de5_4f00_9b3a_f11ac38c18b5); -} #[repr(C)] #[doc(hidden)] pub struct IDirect3DTexture9_Vtbl { @@ -2021,9 +1901,8 @@ pub struct IDirect3DTexture9_Vtbl { pub UnlockRect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, level: u32) -> ::windows_core::HRESULT, pub AddDirtyRect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdirtyrect: *const super::super::Foundation::RECT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirect3DVertexBuffer9(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirect3DVertexBuffer9, IDirect3DVertexBuffer9_Vtbl, 0xb64bb1b5_fd70_4df6_bf91_19d0a12455e3); +::windows_core::imp::interface_hierarchy!(IDirect3DVertexBuffer9, ::windows_core::IUnknown, IDirect3DResource9); impl IDirect3DVertexBuffer9 { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2060,13 +1939,6 @@ impl IDirect3DVertexBuffer9 { (::windows_core::Interface::vtable(self).GetDesc)(::windows_core::Interface::as_raw(self), pdesc).ok() } } -::windows_core::imp::interface_hierarchy!(IDirect3DVertexBuffer9, ::windows_core::IUnknown, IDirect3DResource9); -unsafe impl ::windows_core::Interface for IDirect3DVertexBuffer9 { - type Vtable = IDirect3DVertexBuffer9_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirect3DVertexBuffer9 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb64bb1b5_fd70_4df6_bf91_19d0a12455e3); -} #[repr(C)] #[doc(hidden)] pub struct IDirect3DVertexBuffer9_Vtbl { @@ -2075,9 +1947,8 @@ pub struct IDirect3DVertexBuffer9_Vtbl { pub Unlock: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDesc: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdesc: *mut D3DVERTEXBUFFER_DESC) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirect3DVertexDeclaration9(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirect3DVertexDeclaration9, IDirect3DVertexDeclaration9_Vtbl, 0xdd13c59c_36fa_4098_a8fb_c7ed39dc8546); +::windows_core::imp::interface_hierarchy!(IDirect3DVertexDeclaration9, ::windows_core::IUnknown); impl IDirect3DVertexDeclaration9 { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2087,13 +1958,6 @@ impl IDirect3DVertexDeclaration9 { (::windows_core::Interface::vtable(self).GetDeclaration)(::windows_core::Interface::as_raw(self), pelement, pnumelements).ok() } } -::windows_core::imp::interface_hierarchy!(IDirect3DVertexDeclaration9, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirect3DVertexDeclaration9 { - type Vtable = IDirect3DVertexDeclaration9_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirect3DVertexDeclaration9 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdd13c59c_36fa_4098_a8fb_c7ed39dc8546); -} #[repr(C)] #[doc(hidden)] pub struct IDirect3DVertexDeclaration9_Vtbl { @@ -2101,9 +1965,8 @@ pub struct IDirect3DVertexDeclaration9_Vtbl { pub GetDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppdevice: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeclaration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pelement: *mut D3DVERTEXELEMENT9, pnumelements: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirect3DVertexShader9(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirect3DVertexShader9, IDirect3DVertexShader9_Vtbl, 0xefc5557e_6265_4613_8a94_43857889eb36); +::windows_core::imp::interface_hierarchy!(IDirect3DVertexShader9, ::windows_core::IUnknown); impl IDirect3DVertexShader9 { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2113,13 +1976,6 @@ impl IDirect3DVertexShader9 { (::windows_core::Interface::vtable(self).GetFunction)(::windows_core::Interface::as_raw(self), param0, psizeofdata).ok() } } -::windows_core::imp::interface_hierarchy!(IDirect3DVertexShader9, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirect3DVertexShader9 { - type Vtable = IDirect3DVertexShader9_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirect3DVertexShader9 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xefc5557e_6265_4613_8a94_43857889eb36); -} #[repr(C)] #[doc(hidden)] pub struct IDirect3DVertexShader9_Vtbl { @@ -2127,9 +1983,8 @@ pub struct IDirect3DVertexShader9_Vtbl { pub GetDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppdevice: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetFunction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: *mut ::core::ffi::c_void, psizeofdata: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirect3DVolume9(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirect3DVolume9, IDirect3DVolume9_Vtbl, 0x24f416e6_1f67_4aa7_b88e_d33f6f3128a1); +::windows_core::imp::interface_hierarchy!(IDirect3DVolume9, ::windows_core::IUnknown); impl IDirect3DVolume9 { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2157,13 +2012,6 @@ impl IDirect3DVolume9 { (::windows_core::Interface::vtable(self).UnlockBox)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IDirect3DVolume9, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirect3DVolume9 { - type Vtable = IDirect3DVolume9_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirect3DVolume9 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x24f416e6_1f67_4aa7_b88e_d33f6f3128a1); -} #[repr(C)] #[doc(hidden)] pub struct IDirect3DVolume9_Vtbl { @@ -2177,9 +2025,8 @@ pub struct IDirect3DVolume9_Vtbl { pub LockBox: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plockedvolume: *mut D3DLOCKED_BOX, pbox: *const D3DBOX, flags: u32) -> ::windows_core::HRESULT, pub UnlockBox: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirect3DVolumeTexture9(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirect3DVolumeTexture9, IDirect3DVolumeTexture9_Vtbl, 0x2518526c_e789_4111_a7b9_47ef328d13e6); +::windows_core::imp::interface_hierarchy!(IDirect3DVolumeTexture9, ::windows_core::IUnknown, IDirect3DResource9, IDirect3DBaseTexture9); impl IDirect3DVolumeTexture9 { pub unsafe fn GetDevice(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2241,13 +2088,6 @@ impl IDirect3DVolumeTexture9 { (::windows_core::Interface::vtable(self).AddDirtyBox)(::windows_core::Interface::as_raw(self), pdirtybox).ok() } } -::windows_core::imp::interface_hierarchy!(IDirect3DVolumeTexture9, ::windows_core::IUnknown, IDirect3DResource9, IDirect3DBaseTexture9); -unsafe impl ::windows_core::Interface for IDirect3DVolumeTexture9 { - type Vtable = IDirect3DVolumeTexture9_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirect3DVolumeTexture9 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2518526c_e789_4111_a7b9_47ef328d13e6); -} #[repr(C)] #[doc(hidden)] pub struct IDirect3DVolumeTexture9_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D9on12/impl.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D9on12/impl.rs index ab00d7f006..6830cc8d1e 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D9on12/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D9on12/impl.rs @@ -33,6 +33,6 @@ impl IDirect3DDevice9On12_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 9323413efc..1ee973a2c1 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D9on12/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D9on12/mod.rs @@ -12,9 +12,8 @@ pub unsafe fn Direct3DCreate9On12Ex(sdkversion: u32, poverridelist: *mut D3D9ON1 ::windows_targets::link!("d3d9.dll" "system" fn Direct3DCreate9On12Ex(sdkversion : u32, poverridelist : *mut D3D9ON12_ARGS, numoverrideentries : u32, ppoutputinterface : *mut * mut::core::ffi::c_void) -> ::windows_core::HRESULT); Direct3DCreate9On12Ex(sdkversion, poverridelist, numoverrideentries, ::core::mem::transmute(ppoutputinterface)).ok() } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirect3DDevice9On12(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirect3DDevice9On12, IDirect3DDevice9On12_Vtbl, 0xe7fda234_b589_4049_940d_8878977531c8); +::windows_core::imp::interface_hierarchy!(IDirect3DDevice9On12, ::windows_core::IUnknown); impl IDirect3DDevice9On12 { pub unsafe fn GetD3D12Device(&self, riid: *const ::windows_core::GUID, ppvdevice: *mut *mut ::core::ffi::c_void) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetD3D12Device)(::windows_core::Interface::as_raw(self), riid, ppvdevice).ok() @@ -37,13 +36,6 @@ impl IDirect3DDevice9On12 { (::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::imp::interface_hierarchy!(IDirect3DDevice9On12, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirect3DDevice9On12 { - type Vtable = IDirect3DDevice9On12_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirect3DDevice9On12 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe7fda234_b589_4049_940d_8878977531c8); -} #[repr(C)] #[doc(hidden)] pub struct IDirect3DDevice9On12_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/DirectComposition/impl.rs b/crates/libs/windows/src/Windows/Win32/Graphics/DirectComposition/impl.rs index fd958ad8a2..0ffb7310c1 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/DirectComposition/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/DirectComposition/impl.rs @@ -61,7 +61,7 @@ impl IDCompositionAffineTransform2DEffect_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDCompositionAnimation_Impl: Sized { @@ -116,7 +116,7 @@ impl IDCompositionAnimation_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct2D_Common\"`"] @@ -203,7 +203,7 @@ impl IDCompositionArithmeticCompositeEffect_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct2D_Common\"`"] @@ -224,7 +224,7 @@ impl IDCompositionBlendEffect_Vtbl { Self { base__: IDCompositionFilterEffect_Vtbl::new::(), SetMode: SetMode:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct2D_Common\"`"] @@ -311,7 +311,7 @@ impl IDCompositionBrightnessEffect_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDCompositionClip_Impl: Sized {} @@ -321,7 +321,7 @@ impl IDCompositionClip_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct2D_Common\"`"] @@ -373,7 +373,7 @@ impl IDCompositionColorMatrixEffect_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct2D_Common\"`"] @@ -394,7 +394,7 @@ impl IDCompositionCompositeEffect_Vtbl { Self { base__: IDCompositionFilterEffect_Vtbl::new::(), SetMode: SetMode:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct2D_Common\"`"] @@ -451,7 +451,7 @@ impl IDCompositionDelegatedInkTrail_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] @@ -507,7 +507,7 @@ impl IDCompositionDesktopDevice_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] @@ -818,7 +818,7 @@ impl IDCompositionDevice_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] @@ -1090,7 +1090,7 @@ impl IDCompositionDevice2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] @@ -1276,7 +1276,7 @@ impl IDCompositionDevice3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDCompositionDeviceDebug_Impl: Sized { @@ -1303,7 +1303,7 @@ impl IDCompositionDeviceDebug_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDCompositionEffect_Impl: Sized {} @@ -1313,7 +1313,7 @@ impl IDCompositionEffect_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDCompositionEffectGroup_Impl: Sized + IDCompositionEffect_Impl { @@ -1347,7 +1347,7 @@ impl IDCompositionEffectGroup_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDCompositionFilterEffect_Impl: Sized + IDCompositionEffect_Impl { @@ -1364,7 +1364,7 @@ impl IDCompositionFilterEffect_Vtbl { Self { base__: IDCompositionEffect_Vtbl::new::(), SetInput: SetInput:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct2D_Common\"`"] @@ -1402,7 +1402,7 @@ impl IDCompositionGaussianBlurEffect_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDCompositionHueRotationEffect_Impl: Sized + IDCompositionFilterEffect_Impl { @@ -1429,7 +1429,7 @@ impl IDCompositionHueRotationEffect_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDCompositionInkTrailDevice_Impl: Sized { @@ -1468,7 +1468,7 @@ impl IDCompositionInkTrailDevice_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDCompositionLinearTransferEffect_Impl: Sized + IDCompositionFilterEffect_Impl { @@ -1628,7 +1628,7 @@ impl IDCompositionLinearTransferEffect_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Foundation_Numerics\"`"] @@ -1666,7 +1666,7 @@ impl IDCompositionMatrixTransform_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Foundation_Numerics\"`"] @@ -1704,7 +1704,7 @@ impl IDCompositionMatrixTransform3D_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDCompositionRectangleClip_Impl: Sized + IDCompositionClip_Impl { @@ -1885,7 +1885,7 @@ impl IDCompositionRectangleClip_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDCompositionRotateTransform_Impl: Sized + IDCompositionTransform_Impl { @@ -1940,7 +1940,7 @@ impl IDCompositionRotateTransform_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDCompositionRotateTransform3D_Impl: Sized + IDCompositionTransform3D_Impl { @@ -2051,7 +2051,7 @@ impl IDCompositionRotateTransform3D_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDCompositionSaturationEffect_Impl: Sized + IDCompositionFilterEffect_Impl { @@ -2078,7 +2078,7 @@ impl IDCompositionSaturationEffect_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDCompositionScaleTransform_Impl: Sized + IDCompositionTransform_Impl { @@ -2147,7 +2147,7 @@ impl IDCompositionScaleTransform_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDCompositionScaleTransform3D_Impl: Sized + IDCompositionTransform3D_Impl { @@ -2244,7 +2244,7 @@ impl IDCompositionScaleTransform3D_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct2D_Common\"`"] @@ -2338,7 +2338,7 @@ impl IDCompositionShadowEffect_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDCompositionSkewTransform_Impl: Sized + IDCompositionTransform_Impl { @@ -2407,7 +2407,7 @@ impl IDCompositionSkewTransform_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDCompositionSurface_Impl: Sized { @@ -2455,7 +2455,7 @@ impl IDCompositionSurface_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] @@ -2498,7 +2498,7 @@ impl IDCompositionSurfaceFactory_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDCompositionTableTransferEffect_Impl: Sized + IDCompositionFilterEffect_Impl { @@ -2630,7 +2630,7 @@ impl IDCompositionTableTransferEffect_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDCompositionTarget_Impl: Sized { @@ -2647,7 +2647,7 @@ impl IDCompositionTarget_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), SetRoot: SetRoot:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDCompositionTransform_Impl: Sized + IDCompositionTransform3D_Impl {} @@ -2657,7 +2657,7 @@ impl IDCompositionTransform_Vtbl { Self { base__: IDCompositionTransform3D_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDCompositionTransform3D_Impl: Sized + IDCompositionEffect_Impl {} @@ -2667,7 +2667,7 @@ impl IDCompositionTransform3D_Vtbl { Self { base__: IDCompositionEffect_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDCompositionTranslateTransform_Impl: Sized + IDCompositionTransform_Impl { @@ -2708,7 +2708,7 @@ impl IDCompositionTranslateTransform_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDCompositionTranslateTransform3D_Impl: Sized + IDCompositionTransform3D_Impl { @@ -2763,7 +2763,7 @@ impl IDCompositionTranslateTransform3D_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct2D_Common\"`"] @@ -2829,7 +2829,7 @@ impl IDCompositionTurbulenceEffect_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDCompositionVirtualSurface_Impl: Sized + IDCompositionSurface_Impl { @@ -2856,7 +2856,7 @@ impl IDCompositionVirtualSurface_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Foundation_Numerics\"`, `\"Win32_Graphics_Direct2D_Common\"`"] @@ -2992,7 +2992,7 @@ impl IDCompositionVisual_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Foundation_Numerics\"`, `\"Win32_Graphics_Direct2D_Common\"`"] @@ -3023,7 +3023,7 @@ impl IDCompositionVisual2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Foundation_Numerics\"`, `\"Win32_Graphics_Direct2D_Common\"`"] @@ -3096,7 +3096,7 @@ impl IDCompositionVisual3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Foundation_Numerics\"`, `\"Win32_Graphics_Direct2D_Common\"`"] @@ -3141,6 +3141,6 @@ impl IDCompositionVisualDebug_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } 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 c0db33aed5..b67f0ef18e 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/DirectComposition/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/DirectComposition/mod.rs @@ -32,7 +32,7 @@ where pub unsafe fn DCompositionCreateDevice(dxgidevice: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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(); @@ -42,7 +42,7 @@ where pub unsafe fn DCompositionCreateDevice2(renderingdevice: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam<::windows_core::IUnknown>, - T: ::windows_core::ComInterface, + 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(); @@ -52,7 +52,7 @@ where pub unsafe fn DCompositionCreateDevice3(renderingdevice: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam<::windows_core::IUnknown>, - T: ::windows_core::ComInterface, + 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(); @@ -87,9 +87,8 @@ pub unsafe fn DCompositionWaitForCompositorClock(handles: ::core::option::Option ::windows_targets::link!("dcomp.dll" "system" fn DCompositionWaitForCompositorClock(count : u32, handles : *const super::super::Foundation:: HANDLE, timeoutinms : u32) -> u32); DCompositionWaitForCompositorClock(handles.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), ::core::mem::transmute(handles.as_deref().map_or(::core::ptr::null(), |slice| slice.as_ptr())), timeoutinms) } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDCompositionAffineTransform2DEffect(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDCompositionAffineTransform2DEffect, IDCompositionAffineTransform2DEffect_Vtbl, 0x0b74b9e8_cdd6_492f_bbbc_5ed32157026d); +::windows_core::imp::interface_hierarchy!(IDCompositionAffineTransform2DEffect, ::windows_core::IUnknown, IDCompositionEffect, IDCompositionFilterEffect); impl IDCompositionAffineTransform2DEffect { pub unsafe fn SetInput(&self, index: u32, input: P0, flags: u32) -> ::windows_core::Result<()> where @@ -131,13 +130,6 @@ impl IDCompositionAffineTransform2DEffect { (::windows_core::Interface::vtable(self).SetSharpness2)(::windows_core::Interface::as_raw(self), sharpness).ok() } } -::windows_core::imp::interface_hierarchy!(IDCompositionAffineTransform2DEffect, ::windows_core::IUnknown, IDCompositionEffect, IDCompositionFilterEffect); -unsafe impl ::windows_core::Interface for IDCompositionAffineTransform2DEffect { - type Vtable = IDCompositionAffineTransform2DEffect_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDCompositionAffineTransform2DEffect { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0b74b9e8_cdd6_492f_bbbc_5ed32157026d); -} #[repr(C)] #[doc(hidden)] pub struct IDCompositionAffineTransform2DEffect_Vtbl { @@ -159,9 +151,8 @@ pub struct IDCompositionAffineTransform2DEffect_Vtbl { pub SetSharpness: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, animation: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetSharpness2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sharpness: f32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDCompositionAnimation(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDCompositionAnimation, IDCompositionAnimation_Vtbl, 0xcbfd91d9_51b2_45e4_b3de_d19ccfb863c5); +::windows_core::imp::interface_hierarchy!(IDCompositionAnimation, ::windows_core::IUnknown); impl IDCompositionAnimation { pub unsafe fn Reset(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Reset)(::windows_core::Interface::as_raw(self)).ok() @@ -182,13 +173,6 @@ impl IDCompositionAnimation { (::windows_core::Interface::vtable(self).End)(::windows_core::Interface::as_raw(self), endoffset, endvalue).ok() } } -::windows_core::imp::interface_hierarchy!(IDCompositionAnimation, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDCompositionAnimation { - type Vtable = IDCompositionAnimation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDCompositionAnimation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcbfd91d9_51b2_45e4_b3de_d19ccfb863c5); -} #[repr(C)] #[doc(hidden)] pub struct IDCompositionAnimation_Vtbl { @@ -200,9 +184,8 @@ pub struct IDCompositionAnimation_Vtbl { pub AddRepeat: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, beginoffset: f64, durationtorepeat: f64) -> ::windows_core::HRESULT, pub End: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, endoffset: f64, endvalue: f32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDCompositionArithmeticCompositeEffect(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDCompositionArithmeticCompositeEffect, IDCompositionArithmeticCompositeEffect_Vtbl, 0x3b67dfa8_e3dd_4e61_b640_46c2f3d739dc); +::windows_core::imp::interface_hierarchy!(IDCompositionArithmeticCompositeEffect, ::windows_core::IUnknown, IDCompositionEffect, IDCompositionFilterEffect); impl IDCompositionArithmeticCompositeEffect { pub unsafe fn SetInput(&self, index: u32, input: P0, flags: u32) -> ::windows_core::Result<()> where @@ -258,13 +241,6 @@ impl IDCompositionArithmeticCompositeEffect { (::windows_core::Interface::vtable(self).SetCoefficient42)(::windows_core::Interface::as_raw(self), coefficient4).ok() } } -::windows_core::imp::interface_hierarchy!(IDCompositionArithmeticCompositeEffect, ::windows_core::IUnknown, IDCompositionEffect, IDCompositionFilterEffect); -unsafe impl ::windows_core::Interface for IDCompositionArithmeticCompositeEffect { - type Vtable = IDCompositionArithmeticCompositeEffect_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDCompositionArithmeticCompositeEffect { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3b67dfa8_e3dd_4e61_b640_46c2f3d739dc); -} #[repr(C)] #[doc(hidden)] pub struct IDCompositionArithmeticCompositeEffect_Vtbl { @@ -283,9 +259,8 @@ pub struct IDCompositionArithmeticCompositeEffect_Vtbl { pub SetCoefficient4: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, animation: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetCoefficient42: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, coefficient4: f32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDCompositionBlendEffect(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDCompositionBlendEffect, IDCompositionBlendEffect_Vtbl, 0x33ecdc0a_578a_4a11_9c14_0cb90517f9c5); +::windows_core::imp::interface_hierarchy!(IDCompositionBlendEffect, ::windows_core::IUnknown, IDCompositionEffect, IDCompositionFilterEffect); impl IDCompositionBlendEffect { pub unsafe fn SetInput(&self, index: u32, input: P0, flags: u32) -> ::windows_core::Result<()> where @@ -299,13 +274,6 @@ impl IDCompositionBlendEffect { (::windows_core::Interface::vtable(self).SetMode)(::windows_core::Interface::as_raw(self), mode).ok() } } -::windows_core::imp::interface_hierarchy!(IDCompositionBlendEffect, ::windows_core::IUnknown, IDCompositionEffect, IDCompositionFilterEffect); -unsafe impl ::windows_core::Interface for IDCompositionBlendEffect { - type Vtable = IDCompositionBlendEffect_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDCompositionBlendEffect { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x33ecdc0a_578a_4a11_9c14_0cb90517f9c5); -} #[repr(C)] #[doc(hidden)] pub struct IDCompositionBlendEffect_Vtbl { @@ -315,9 +283,8 @@ pub struct IDCompositionBlendEffect_Vtbl { #[cfg(not(feature = "Win32_Graphics_Direct2D_Common"))] SetMode: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDCompositionBrightnessEffect(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDCompositionBrightnessEffect, IDCompositionBrightnessEffect_Vtbl, 0x6027496e_cb3a_49ab_934f_d798da4f7da6); +::windows_core::imp::interface_hierarchy!(IDCompositionBrightnessEffect, ::windows_core::IUnknown, IDCompositionEffect, IDCompositionFilterEffect); impl IDCompositionBrightnessEffect { pub unsafe fn SetInput(&self, index: u32, input: P0, flags: u32) -> ::windows_core::Result<()> where @@ -372,13 +339,6 @@ impl IDCompositionBrightnessEffect { (::windows_core::Interface::vtable(self).SetBlackPointY2)(::windows_core::Interface::as_raw(self), blackpointy).ok() } } -::windows_core::imp::interface_hierarchy!(IDCompositionBrightnessEffect, ::windows_core::IUnknown, IDCompositionEffect, IDCompositionFilterEffect); -unsafe impl ::windows_core::Interface for IDCompositionBrightnessEffect { - type Vtable = IDCompositionBrightnessEffect_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDCompositionBrightnessEffect { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6027496e_cb3a_49ab_934f_d798da4f7da6); -} #[repr(C)] #[doc(hidden)] pub struct IDCompositionBrightnessEffect_Vtbl { @@ -400,25 +360,16 @@ pub struct IDCompositionBrightnessEffect_Vtbl { pub SetBlackPointY: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, animation: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetBlackPointY2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, blackpointy: f32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDCompositionClip(::windows_core::IUnknown); -impl IDCompositionClip {} +::windows_core::imp::com_interface!(IDCompositionClip, IDCompositionClip_Vtbl, 0x64ac3703_9d3f_45ec_a109_7cac0e7a13a7); ::windows_core::imp::interface_hierarchy!(IDCompositionClip, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDCompositionClip { - type Vtable = IDCompositionClip_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDCompositionClip { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x64ac3703_9d3f_45ec_a109_7cac0e7a13a7); -} +impl IDCompositionClip {} #[repr(C)] #[doc(hidden)] pub struct IDCompositionClip_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDCompositionColorMatrixEffect(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDCompositionColorMatrixEffect, IDCompositionColorMatrixEffect_Vtbl, 0xc1170a22_3ce2_4966_90d4_55408bfc84c4); +::windows_core::imp::interface_hierarchy!(IDCompositionColorMatrixEffect, ::windows_core::IUnknown, IDCompositionEffect, IDCompositionFilterEffect); impl IDCompositionColorMatrixEffect { pub unsafe fn SetInput(&self, index: u32, input: P0, flags: u32) -> ::windows_core::Result<()> where @@ -452,13 +403,6 @@ impl IDCompositionColorMatrixEffect { (::windows_core::Interface::vtable(self).SetClampOutput)(::windows_core::Interface::as_raw(self), clamp.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IDCompositionColorMatrixEffect, ::windows_core::IUnknown, IDCompositionEffect, IDCompositionFilterEffect); -unsafe impl ::windows_core::Interface for IDCompositionColorMatrixEffect { - type Vtable = IDCompositionColorMatrixEffect_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDCompositionColorMatrixEffect { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc1170a22_3ce2_4966_90d4_55408bfc84c4); -} #[repr(C)] #[doc(hidden)] pub struct IDCompositionColorMatrixEffect_Vtbl { @@ -475,9 +419,8 @@ pub struct IDCompositionColorMatrixEffect_Vtbl { SetAlphaMode: usize, pub SetClampOutput: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, clamp: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDCompositionCompositeEffect(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDCompositionCompositeEffect, IDCompositionCompositeEffect_Vtbl, 0x576616c0_a231_494d_a38d_00fd5ec4db46); +::windows_core::imp::interface_hierarchy!(IDCompositionCompositeEffect, ::windows_core::IUnknown, IDCompositionEffect, IDCompositionFilterEffect); impl IDCompositionCompositeEffect { pub unsafe fn SetInput(&self, index: u32, input: P0, flags: u32) -> ::windows_core::Result<()> where @@ -491,13 +434,6 @@ impl IDCompositionCompositeEffect { (::windows_core::Interface::vtable(self).SetMode)(::windows_core::Interface::as_raw(self), mode).ok() } } -::windows_core::imp::interface_hierarchy!(IDCompositionCompositeEffect, ::windows_core::IUnknown, IDCompositionEffect, IDCompositionFilterEffect); -unsafe impl ::windows_core::Interface for IDCompositionCompositeEffect { - type Vtable = IDCompositionCompositeEffect_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDCompositionCompositeEffect { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x576616c0_a231_494d_a38d_00fd5ec4db46); -} #[repr(C)] #[doc(hidden)] pub struct IDCompositionCompositeEffect_Vtbl { @@ -507,9 +443,8 @@ pub struct IDCompositionCompositeEffect_Vtbl { #[cfg(not(feature = "Win32_Graphics_Direct2D_Common"))] SetMode: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDCompositionDelegatedInkTrail(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDCompositionDelegatedInkTrail, IDCompositionDelegatedInkTrail_Vtbl, 0xc2448e9b_547d_4057_8cf5_8144ede1c2da); +::windows_core::imp::interface_hierarchy!(IDCompositionDelegatedInkTrail, ::windows_core::IUnknown); impl IDCompositionDelegatedInkTrail { pub unsafe fn AddTrailPoints(&self, inkpoints: &[DCompositionInkTrailPoint]) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -528,13 +463,6 @@ impl IDCompositionDelegatedInkTrail { (::windows_core::Interface::vtable(self).StartNewTrail)(::windows_core::Interface::as_raw(self), color).ok() } } -::windows_core::imp::interface_hierarchy!(IDCompositionDelegatedInkTrail, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDCompositionDelegatedInkTrail { - type Vtable = IDCompositionDelegatedInkTrail_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDCompositionDelegatedInkTrail { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc2448e9b_547d_4057_8cf5_8144ede1c2da); -} #[repr(C)] #[doc(hidden)] pub struct IDCompositionDelegatedInkTrail_Vtbl { @@ -547,9 +475,8 @@ pub struct IDCompositionDelegatedInkTrail_Vtbl { #[cfg(not(feature = "Win32_Graphics_Direct2D_Common"))] StartNewTrail: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDCompositionDesktopDevice(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDCompositionDesktopDevice, IDCompositionDesktopDevice_Vtbl, 0x5f4633fe_1e08_4cb8_8c75_ce24333f5602); +::windows_core::imp::interface_hierarchy!(IDCompositionDesktopDevice, ::windows_core::IUnknown, IDCompositionDevice2); impl IDCompositionDesktopDevice { pub unsafe fn Commit(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.Commit)(::windows_core::Interface::as_raw(self)).ok() @@ -664,13 +591,6 @@ impl IDCompositionDesktopDevice { (::windows_core::Interface::vtable(self).CreateSurfaceFromHwnd)(::windows_core::Interface::as_raw(self), hwnd.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDCompositionDesktopDevice, ::windows_core::IUnknown, IDCompositionDevice2); -unsafe impl ::windows_core::Interface for IDCompositionDesktopDevice { - type Vtable = IDCompositionDesktopDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDCompositionDesktopDevice { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5f4633fe_1e08_4cb8_8c75_ce24333f5602); -} #[repr(C)] #[doc(hidden)] pub struct IDCompositionDesktopDevice_Vtbl { @@ -679,9 +599,8 @@ pub struct IDCompositionDesktopDevice_Vtbl { pub CreateSurfaceFromHandle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handle: super::super::Foundation::HANDLE, surface: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateSurfaceFromHwnd: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwnd: super::super::Foundation::HWND, surface: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDCompositionDevice(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDCompositionDevice, IDCompositionDevice_Vtbl, 0xc37ea93a_e7aa_450d_b16f_9746cb0407f3); +::windows_core::imp::interface_hierarchy!(IDCompositionDevice, ::windows_core::IUnknown); impl IDCompositionDevice { pub unsafe fn Commit(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Commit)(::windows_core::Interface::as_raw(self)).ok() @@ -793,13 +712,6 @@ impl IDCompositionDevice { (::windows_core::Interface::vtable(self).CheckDeviceState)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDCompositionDevice, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDCompositionDevice { - type Vtable = IDCompositionDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDCompositionDevice { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc37ea93a_e7aa_450d_b16f_9746cb0407f3); -} #[repr(C)] #[doc(hidden)] pub struct IDCompositionDevice_Vtbl { @@ -838,9 +750,8 @@ pub struct IDCompositionDevice_Vtbl { pub CreateAnimation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, animation: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CheckDeviceState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfvalid: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDCompositionDevice2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDCompositionDevice2, IDCompositionDevice2_Vtbl, 0x75f6468d_1b8e_447c_9bc6_75fea80b5b25); +::windows_core::imp::interface_hierarchy!(IDCompositionDevice2, ::windows_core::IUnknown); impl IDCompositionDevice2 { pub unsafe fn Commit(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Commit)(::windows_core::Interface::as_raw(self)).ok() @@ -933,13 +844,6 @@ impl IDCompositionDevice2 { (::windows_core::Interface::vtable(self).CreateAnimation)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDCompositionDevice2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDCompositionDevice2 { - type Vtable = IDCompositionDevice2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDCompositionDevice2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x75f6468d_1b8e_447c_9bc6_75fea80b5b25); -} #[repr(C)] #[doc(hidden)] pub struct IDCompositionDevice2_Vtbl { @@ -975,9 +879,8 @@ pub struct IDCompositionDevice2_Vtbl { pub CreateRectangleClip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, clip: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateAnimation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, animation: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDCompositionDevice3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDCompositionDevice3, IDCompositionDevice3_Vtbl, 0x0987cb06_f916_48bf_8d35_ce7641781bd9); +::windows_core::imp::interface_hierarchy!(IDCompositionDevice3, ::windows_core::IUnknown, IDCompositionDevice2); impl IDCompositionDevice3 { pub unsafe fn Commit(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.Commit)(::windows_core::Interface::as_raw(self)).ok() @@ -1122,13 +1025,6 @@ impl IDCompositionDevice3 { (::windows_core::Interface::vtable(self).CreateAffineTransform2DEffect)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDCompositionDevice3, ::windows_core::IUnknown, IDCompositionDevice2); -unsafe impl ::windows_core::Interface for IDCompositionDevice3 { - type Vtable = IDCompositionDevice3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDCompositionDevice3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0987cb06_f916_48bf_8d35_ce7641781bd9); -} #[repr(C)] #[doc(hidden)] pub struct IDCompositionDevice3_Vtbl { @@ -1147,9 +1043,8 @@ pub struct IDCompositionDevice3_Vtbl { pub CreateArithmeticCompositeEffect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, arithmeticcompositeeffect: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateAffineTransform2DEffect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, affinetransform2deffect: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDCompositionDeviceDebug(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDCompositionDeviceDebug, IDCompositionDeviceDebug_Vtbl, 0xa1a3c64a_224f_4a81_9773_4f03a89d3c6c); +::windows_core::imp::interface_hierarchy!(IDCompositionDeviceDebug, ::windows_core::IUnknown); impl IDCompositionDeviceDebug { pub unsafe fn EnableDebugCounters(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).EnableDebugCounters)(::windows_core::Interface::as_raw(self)).ok() @@ -1158,13 +1053,6 @@ impl IDCompositionDeviceDebug { (::windows_core::Interface::vtable(self).DisableDebugCounters)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IDCompositionDeviceDebug, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDCompositionDeviceDebug { - type Vtable = IDCompositionDeviceDebug_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDCompositionDeviceDebug { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa1a3c64a_224f_4a81_9773_4f03a89d3c6c); -} #[repr(C)] #[doc(hidden)] pub struct IDCompositionDeviceDebug_Vtbl { @@ -1172,25 +1060,16 @@ pub struct IDCompositionDeviceDebug_Vtbl { pub EnableDebugCounters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub DisableDebugCounters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDCompositionEffect(::windows_core::IUnknown); -impl IDCompositionEffect {} +::windows_core::imp::com_interface!(IDCompositionEffect, IDCompositionEffect_Vtbl, 0xec81b08f_bfcb_4e8d_b193_a915587999e8); ::windows_core::imp::interface_hierarchy!(IDCompositionEffect, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDCompositionEffect { - type Vtable = IDCompositionEffect_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDCompositionEffect { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xec81b08f_bfcb_4e8d_b193_a915587999e8); -} +impl IDCompositionEffect {} #[repr(C)] #[doc(hidden)] pub struct IDCompositionEffect_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDCompositionEffectGroup(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDCompositionEffectGroup, IDCompositionEffectGroup_Vtbl, 0xa7929a74_e6b2_4bd6_8b95_4040119ca34d); +::windows_core::imp::interface_hierarchy!(IDCompositionEffectGroup, ::windows_core::IUnknown, IDCompositionEffect); impl IDCompositionEffectGroup { pub unsafe fn SetOpacity(&self, animation: P0) -> ::windows_core::Result<()> where @@ -1208,13 +1087,6 @@ impl IDCompositionEffectGroup { (::windows_core::Interface::vtable(self).SetTransform3D)(::windows_core::Interface::as_raw(self), transform3d.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IDCompositionEffectGroup, ::windows_core::IUnknown, IDCompositionEffect); -unsafe impl ::windows_core::Interface for IDCompositionEffectGroup { - type Vtable = IDCompositionEffectGroup_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDCompositionEffectGroup { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa7929a74_e6b2_4bd6_8b95_4040119ca34d); -} #[repr(C)] #[doc(hidden)] pub struct IDCompositionEffectGroup_Vtbl { @@ -1223,9 +1095,8 @@ pub struct IDCompositionEffectGroup_Vtbl { pub SetOpacity2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, opacity: f32) -> ::windows_core::HRESULT, pub SetTransform3D: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, transform3d: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDCompositionFilterEffect(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDCompositionFilterEffect, IDCompositionFilterEffect_Vtbl, 0x30c421d5_8cb2_4e9f_b133_37be270d4ac2); +::windows_core::imp::interface_hierarchy!(IDCompositionFilterEffect, ::windows_core::IUnknown, IDCompositionEffect); impl IDCompositionFilterEffect { pub unsafe fn SetInput(&self, index: u32, input: P0, flags: u32) -> ::windows_core::Result<()> where @@ -1234,22 +1105,14 @@ impl IDCompositionFilterEffect { (::windows_core::Interface::vtable(self).SetInput)(::windows_core::Interface::as_raw(self), index, input.into_param().abi(), flags).ok() } } -::windows_core::imp::interface_hierarchy!(IDCompositionFilterEffect, ::windows_core::IUnknown, IDCompositionEffect); -unsafe impl ::windows_core::Interface for IDCompositionFilterEffect { - type Vtable = IDCompositionFilterEffect_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDCompositionFilterEffect { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x30c421d5_8cb2_4e9f_b133_37be270d4ac2); -} #[repr(C)] #[doc(hidden)] pub struct IDCompositionFilterEffect_Vtbl { pub base__: IDCompositionEffect_Vtbl, pub SetInput: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, input: *mut ::core::ffi::c_void, flags: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDCompositionGaussianBlurEffect(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDCompositionGaussianBlurEffect, IDCompositionGaussianBlurEffect_Vtbl, 0x45d4d0b7_1bd4_454e_8894_2bfa68443033); +::windows_core::imp::interface_hierarchy!(IDCompositionGaussianBlurEffect, ::windows_core::IUnknown, IDCompositionEffect, IDCompositionFilterEffect); impl IDCompositionGaussianBlurEffect { pub unsafe fn SetInput(&self, index: u32, input: P0, flags: u32) -> ::windows_core::Result<()> where @@ -1272,13 +1135,6 @@ impl IDCompositionGaussianBlurEffect { (::windows_core::Interface::vtable(self).SetBorderMode)(::windows_core::Interface::as_raw(self), mode).ok() } } -::windows_core::imp::interface_hierarchy!(IDCompositionGaussianBlurEffect, ::windows_core::IUnknown, IDCompositionEffect, IDCompositionFilterEffect); -unsafe impl ::windows_core::Interface for IDCompositionGaussianBlurEffect { - type Vtable = IDCompositionGaussianBlurEffect_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDCompositionGaussianBlurEffect { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x45d4d0b7_1bd4_454e_8894_2bfa68443033); -} #[repr(C)] #[doc(hidden)] pub struct IDCompositionGaussianBlurEffect_Vtbl { @@ -1290,9 +1146,8 @@ pub struct IDCompositionGaussianBlurEffect_Vtbl { #[cfg(not(feature = "Win32_Graphics_Direct2D_Common"))] SetBorderMode: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDCompositionHueRotationEffect(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDCompositionHueRotationEffect, IDCompositionHueRotationEffect_Vtbl, 0x6db9f920_0770_4781_b0c6_381912f9d167); +::windows_core::imp::interface_hierarchy!(IDCompositionHueRotationEffect, ::windows_core::IUnknown, IDCompositionEffect, IDCompositionFilterEffect); impl IDCompositionHueRotationEffect { pub unsafe fn SetInput(&self, index: u32, input: P0, flags: u32) -> ::windows_core::Result<()> where @@ -1310,13 +1165,6 @@ impl IDCompositionHueRotationEffect { (::windows_core::Interface::vtable(self).SetAngle2)(::windows_core::Interface::as_raw(self), amountdegrees).ok() } } -::windows_core::imp::interface_hierarchy!(IDCompositionHueRotationEffect, ::windows_core::IUnknown, IDCompositionEffect, IDCompositionFilterEffect); -unsafe impl ::windows_core::Interface for IDCompositionHueRotationEffect { - type Vtable = IDCompositionHueRotationEffect_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDCompositionHueRotationEffect { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6db9f920_0770_4781_b0c6_381912f9d167); -} #[repr(C)] #[doc(hidden)] pub struct IDCompositionHueRotationEffect_Vtbl { @@ -1324,9 +1172,8 @@ pub struct IDCompositionHueRotationEffect_Vtbl { pub SetAngle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, animation: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetAngle2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, amountdegrees: f32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDCompositionInkTrailDevice(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDCompositionInkTrailDevice, IDCompositionInkTrailDevice_Vtbl, 0xdf0c7cec_cdeb_4d4a_b91c_721bf22f4e6c); +::windows_core::imp::interface_hierarchy!(IDCompositionInkTrailDevice, ::windows_core::IUnknown); impl IDCompositionInkTrailDevice { pub unsafe fn CreateDelegatedInkTrail(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1340,13 +1187,6 @@ impl IDCompositionInkTrailDevice { (::windows_core::Interface::vtable(self).CreateDelegatedInkTrailForSwapChain)(::windows_core::Interface::as_raw(self), swapchain.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDCompositionInkTrailDevice, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDCompositionInkTrailDevice { - type Vtable = IDCompositionInkTrailDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDCompositionInkTrailDevice { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdf0c7cec_cdeb_4d4a_b91c_721bf22f4e6c); -} #[repr(C)] #[doc(hidden)] pub struct IDCompositionInkTrailDevice_Vtbl { @@ -1354,9 +1194,8 @@ pub struct IDCompositionInkTrailDevice_Vtbl { pub CreateDelegatedInkTrail: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, inktrail: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateDelegatedInkTrailForSwapChain: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, swapchain: *mut ::core::ffi::c_void, inktrail: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDCompositionLinearTransferEffect(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDCompositionLinearTransferEffect, IDCompositionLinearTransferEffect_Vtbl, 0x4305ee5b_c4a0_4c88_9385_67124e017683); +::windows_core::imp::interface_hierarchy!(IDCompositionLinearTransferEffect, ::windows_core::IUnknown, IDCompositionEffect, IDCompositionFilterEffect); impl IDCompositionLinearTransferEffect { pub unsafe fn SetInput(&self, index: u32, input: P0, flags: u32) -> ::windows_core::Result<()> where @@ -1467,13 +1306,6 @@ impl IDCompositionLinearTransferEffect { (::windows_core::Interface::vtable(self).SetClampOutput)(::windows_core::Interface::as_raw(self), clampoutput.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IDCompositionLinearTransferEffect, ::windows_core::IUnknown, IDCompositionEffect, IDCompositionFilterEffect); -unsafe impl ::windows_core::Interface for IDCompositionLinearTransferEffect { - type Vtable = IDCompositionLinearTransferEffect_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDCompositionLinearTransferEffect { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4305ee5b_c4a0_4c88_9385_67124e017683); -} #[repr(C)] #[doc(hidden)] pub struct IDCompositionLinearTransferEffect_Vtbl { @@ -1500,9 +1332,8 @@ pub struct IDCompositionLinearTransferEffect_Vtbl { pub SetAlphaDisable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, alphadisable: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub SetClampOutput: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, clampoutput: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDCompositionMatrixTransform(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDCompositionMatrixTransform, IDCompositionMatrixTransform_Vtbl, 0x16cdff07_c503_419c_83f2_0965c7af1fa6); +::windows_core::imp::interface_hierarchy!(IDCompositionMatrixTransform, ::windows_core::IUnknown, IDCompositionEffect, IDCompositionTransform3D, IDCompositionTransform); impl IDCompositionMatrixTransform { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] @@ -1519,13 +1350,6 @@ impl IDCompositionMatrixTransform { (::windows_core::Interface::vtable(self).SetMatrixElement2)(::windows_core::Interface::as_raw(self), row, column, value).ok() } } -::windows_core::imp::interface_hierarchy!(IDCompositionMatrixTransform, ::windows_core::IUnknown, IDCompositionEffect, IDCompositionTransform3D, IDCompositionTransform); -unsafe impl ::windows_core::Interface for IDCompositionMatrixTransform { - type Vtable = IDCompositionMatrixTransform_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDCompositionMatrixTransform { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x16cdff07_c503_419c_83f2_0965c7af1fa6); -} #[repr(C)] #[doc(hidden)] pub struct IDCompositionMatrixTransform_Vtbl { @@ -1537,9 +1361,8 @@ pub struct IDCompositionMatrixTransform_Vtbl { pub SetMatrixElement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, row: i32, column: i32, animation: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetMatrixElement2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, row: i32, column: i32, value: f32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDCompositionMatrixTransform3D(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDCompositionMatrixTransform3D, IDCompositionMatrixTransform3D_Vtbl, 0x4b3363f0_643b_41b7_b6e0_ccf22d34467c); +::windows_core::imp::interface_hierarchy!(IDCompositionMatrixTransform3D, ::windows_core::IUnknown, IDCompositionEffect, IDCompositionTransform3D); impl IDCompositionMatrixTransform3D { #[doc = "Required features: `\"Foundation_Numerics\"`"] #[cfg(feature = "Foundation_Numerics")] @@ -1556,13 +1379,6 @@ impl IDCompositionMatrixTransform3D { (::windows_core::Interface::vtable(self).SetMatrixElement2)(::windows_core::Interface::as_raw(self), row, column, value).ok() } } -::windows_core::imp::interface_hierarchy!(IDCompositionMatrixTransform3D, ::windows_core::IUnknown, IDCompositionEffect, IDCompositionTransform3D); -unsafe impl ::windows_core::Interface for IDCompositionMatrixTransform3D { - type Vtable = IDCompositionMatrixTransform3D_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDCompositionMatrixTransform3D { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4b3363f0_643b_41b7_b6e0_ccf22d34467c); -} #[repr(C)] #[doc(hidden)] pub struct IDCompositionMatrixTransform3D_Vtbl { @@ -1574,9 +1390,8 @@ pub struct IDCompositionMatrixTransform3D_Vtbl { pub SetMatrixElement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, row: i32, column: i32, animation: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetMatrixElement2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, row: i32, column: i32, value: f32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDCompositionRectangleClip(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDCompositionRectangleClip, IDCompositionRectangleClip_Vtbl, 0x9842ad7d_d9cf_4908_aed7_48b51da5e7c2); +::windows_core::imp::interface_hierarchy!(IDCompositionRectangleClip, ::windows_core::IUnknown, IDCompositionClip); impl IDCompositionRectangleClip { pub unsafe fn SetLeft(&self, animation: P0) -> ::windows_core::Result<()> where @@ -1687,13 +1502,6 @@ impl IDCompositionRectangleClip { (::windows_core::Interface::vtable(self).SetBottomRightRadiusY2)(::windows_core::Interface::as_raw(self), radius).ok() } } -::windows_core::imp::interface_hierarchy!(IDCompositionRectangleClip, ::windows_core::IUnknown, IDCompositionClip); -unsafe impl ::windows_core::Interface for IDCompositionRectangleClip { - type Vtable = IDCompositionRectangleClip_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDCompositionRectangleClip { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9842ad7d_d9cf_4908_aed7_48b51da5e7c2); -} #[repr(C)] #[doc(hidden)] pub struct IDCompositionRectangleClip_Vtbl { @@ -1723,9 +1531,8 @@ pub struct IDCompositionRectangleClip_Vtbl { pub SetBottomRightRadiusY: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, animation: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetBottomRightRadiusY2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, radius: f32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDCompositionRotateTransform(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDCompositionRotateTransform, IDCompositionRotateTransform_Vtbl, 0x641ed83c_ae96_46c5_90dc_32774cc5c6d5); +::windows_core::imp::interface_hierarchy!(IDCompositionRotateTransform, ::windows_core::IUnknown, IDCompositionEffect, IDCompositionTransform3D, IDCompositionTransform); impl IDCompositionRotateTransform { pub unsafe fn SetAngle(&self, animation: P0) -> ::windows_core::Result<()> where @@ -1755,13 +1562,6 @@ impl IDCompositionRotateTransform { (::windows_core::Interface::vtable(self).SetCenterY2)(::windows_core::Interface::as_raw(self), centery).ok() } } -::windows_core::imp::interface_hierarchy!(IDCompositionRotateTransform, ::windows_core::IUnknown, IDCompositionEffect, IDCompositionTransform3D, IDCompositionTransform); -unsafe impl ::windows_core::Interface for IDCompositionRotateTransform { - type Vtable = IDCompositionRotateTransform_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDCompositionRotateTransform { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x641ed83c_ae96_46c5_90dc_32774cc5c6d5); -} #[repr(C)] #[doc(hidden)] pub struct IDCompositionRotateTransform_Vtbl { @@ -1773,9 +1573,8 @@ pub struct IDCompositionRotateTransform_Vtbl { pub SetCenterY: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, animation: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetCenterY2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, centery: f32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDCompositionRotateTransform3D(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDCompositionRotateTransform3D, IDCompositionRotateTransform3D_Vtbl, 0xd8f5b23f_d429_4a91_b55a_d2f45fd75b18); +::windows_core::imp::interface_hierarchy!(IDCompositionRotateTransform3D, ::windows_core::IUnknown, IDCompositionEffect, IDCompositionTransform3D); impl IDCompositionRotateTransform3D { pub unsafe fn SetAngle(&self, animation: P0) -> ::windows_core::Result<()> where @@ -1841,13 +1640,6 @@ impl IDCompositionRotateTransform3D { (::windows_core::Interface::vtable(self).SetCenterZ2)(::windows_core::Interface::as_raw(self), centerz).ok() } } -::windows_core::imp::interface_hierarchy!(IDCompositionRotateTransform3D, ::windows_core::IUnknown, IDCompositionEffect, IDCompositionTransform3D); -unsafe impl ::windows_core::Interface for IDCompositionRotateTransform3D { - type Vtable = IDCompositionRotateTransform3D_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDCompositionRotateTransform3D { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd8f5b23f_d429_4a91_b55a_d2f45fd75b18); -} #[repr(C)] #[doc(hidden)] pub struct IDCompositionRotateTransform3D_Vtbl { @@ -1867,9 +1659,8 @@ pub struct IDCompositionRotateTransform3D_Vtbl { pub SetCenterZ: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, animation: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetCenterZ2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, centerz: f32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDCompositionSaturationEffect(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDCompositionSaturationEffect, IDCompositionSaturationEffect_Vtbl, 0xa08debda_3258_4fa4_9f16_9174d3fe93b1); +::windows_core::imp::interface_hierarchy!(IDCompositionSaturationEffect, ::windows_core::IUnknown, IDCompositionEffect, IDCompositionFilterEffect); impl IDCompositionSaturationEffect { pub unsafe fn SetInput(&self, index: u32, input: P0, flags: u32) -> ::windows_core::Result<()> where @@ -1887,13 +1678,6 @@ impl IDCompositionSaturationEffect { (::windows_core::Interface::vtable(self).SetSaturation2)(::windows_core::Interface::as_raw(self), ratio).ok() } } -::windows_core::imp::interface_hierarchy!(IDCompositionSaturationEffect, ::windows_core::IUnknown, IDCompositionEffect, IDCompositionFilterEffect); -unsafe impl ::windows_core::Interface for IDCompositionSaturationEffect { - type Vtable = IDCompositionSaturationEffect_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDCompositionSaturationEffect { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa08debda_3258_4fa4_9f16_9174d3fe93b1); -} #[repr(C)] #[doc(hidden)] pub struct IDCompositionSaturationEffect_Vtbl { @@ -1901,9 +1685,8 @@ pub struct IDCompositionSaturationEffect_Vtbl { pub SetSaturation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, animation: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetSaturation2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ratio: f32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDCompositionScaleTransform(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDCompositionScaleTransform, IDCompositionScaleTransform_Vtbl, 0x71fde914_40ef_45ef_bd51_68b037c339f9); +::windows_core::imp::interface_hierarchy!(IDCompositionScaleTransform, ::windows_core::IUnknown, IDCompositionEffect, IDCompositionTransform3D, IDCompositionTransform); impl IDCompositionScaleTransform { pub unsafe fn SetScaleX(&self, animation: P0) -> ::windows_core::Result<()> where @@ -1942,13 +1725,6 @@ impl IDCompositionScaleTransform { (::windows_core::Interface::vtable(self).SetCenterY2)(::windows_core::Interface::as_raw(self), centery).ok() } } -::windows_core::imp::interface_hierarchy!(IDCompositionScaleTransform, ::windows_core::IUnknown, IDCompositionEffect, IDCompositionTransform3D, IDCompositionTransform); -unsafe impl ::windows_core::Interface for IDCompositionScaleTransform { - type Vtable = IDCompositionScaleTransform_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDCompositionScaleTransform { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x71fde914_40ef_45ef_bd51_68b037c339f9); -} #[repr(C)] #[doc(hidden)] pub struct IDCompositionScaleTransform_Vtbl { @@ -1962,9 +1738,8 @@ pub struct IDCompositionScaleTransform_Vtbl { pub SetCenterY: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, animation: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetCenterY2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, centery: f32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDCompositionScaleTransform3D(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDCompositionScaleTransform3D, IDCompositionScaleTransform3D_Vtbl, 0x2a9e9ead_364b_4b15_a7c4_a1997f78b389); +::windows_core::imp::interface_hierarchy!(IDCompositionScaleTransform3D, ::windows_core::IUnknown, IDCompositionEffect, IDCompositionTransform3D); impl IDCompositionScaleTransform3D { pub unsafe fn SetScaleX(&self, animation: P0) -> ::windows_core::Result<()> where @@ -2021,13 +1796,6 @@ impl IDCompositionScaleTransform3D { (::windows_core::Interface::vtable(self).SetCenterZ2)(::windows_core::Interface::as_raw(self), centerz).ok() } } -::windows_core::imp::interface_hierarchy!(IDCompositionScaleTransform3D, ::windows_core::IUnknown, IDCompositionEffect, IDCompositionTransform3D); -unsafe impl ::windows_core::Interface for IDCompositionScaleTransform3D { - type Vtable = IDCompositionScaleTransform3D_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDCompositionScaleTransform3D { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2a9e9ead_364b_4b15_a7c4_a1997f78b389); -} #[repr(C)] #[doc(hidden)] pub struct IDCompositionScaleTransform3D_Vtbl { @@ -2045,9 +1813,8 @@ pub struct IDCompositionScaleTransform3D_Vtbl { pub SetCenterZ: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, animation: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetCenterZ2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, centerz: f32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDCompositionShadowEffect(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDCompositionShadowEffect, IDCompositionShadowEffect_Vtbl, 0x4ad18ac0_cfd2_4c2f_bb62_96e54fdb6879); +::windows_core::imp::interface_hierarchy!(IDCompositionShadowEffect, ::windows_core::IUnknown, IDCompositionEffect, IDCompositionFilterEffect); impl IDCompositionShadowEffect { pub unsafe fn SetInput(&self, index: u32, input: P0, flags: u32) -> ::windows_core::Result<()> where @@ -2106,13 +1873,6 @@ impl IDCompositionShadowEffect { (::windows_core::Interface::vtable(self).SetAlpha2)(::windows_core::Interface::as_raw(self), amount).ok() } } -::windows_core::imp::interface_hierarchy!(IDCompositionShadowEffect, ::windows_core::IUnknown, IDCompositionEffect, IDCompositionFilterEffect); -unsafe impl ::windows_core::Interface for IDCompositionShadowEffect { - type Vtable = IDCompositionShadowEffect_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDCompositionShadowEffect { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4ad18ac0_cfd2_4c2f_bb62_96e54fdb6879); -} #[repr(C)] #[doc(hidden)] pub struct IDCompositionShadowEffect_Vtbl { @@ -2132,9 +1892,8 @@ pub struct IDCompositionShadowEffect_Vtbl { pub SetAlpha: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, animation: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetAlpha2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, amount: f32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDCompositionSkewTransform(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDCompositionSkewTransform, IDCompositionSkewTransform_Vtbl, 0xe57aa735_dcdb_4c72_9c61_0591f58889ee); +::windows_core::imp::interface_hierarchy!(IDCompositionSkewTransform, ::windows_core::IUnknown, IDCompositionEffect, IDCompositionTransform3D, IDCompositionTransform); impl IDCompositionSkewTransform { pub unsafe fn SetAngleX(&self, animation: P0) -> ::windows_core::Result<()> where @@ -2173,13 +1932,6 @@ impl IDCompositionSkewTransform { (::windows_core::Interface::vtable(self).SetCenterY2)(::windows_core::Interface::as_raw(self), centery).ok() } } -::windows_core::imp::interface_hierarchy!(IDCompositionSkewTransform, ::windows_core::IUnknown, IDCompositionEffect, IDCompositionTransform3D, IDCompositionTransform); -unsafe impl ::windows_core::Interface for IDCompositionSkewTransform { - type Vtable = IDCompositionSkewTransform_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDCompositionSkewTransform { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe57aa735_dcdb_4c72_9c61_0591f58889ee); -} #[repr(C)] #[doc(hidden)] pub struct IDCompositionSkewTransform_Vtbl { @@ -2193,13 +1945,12 @@ pub struct IDCompositionSkewTransform_Vtbl { pub SetCenterY: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, animation: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetCenterY2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, centery: f32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDCompositionSurface(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDCompositionSurface, IDCompositionSurface_Vtbl, 0xbb8a4953_2c99_4f5a_96f5_4819027fa3ac); +::windows_core::imp::interface_hierarchy!(IDCompositionSurface, ::windows_core::IUnknown); impl IDCompositionSurface { pub unsafe fn BeginDraw(&self, updaterect: ::core::option::Option<*const super::super::Foundation::RECT>, updateoffset: *mut super::super::Foundation::POINT) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).BeginDraw)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(updaterect.unwrap_or(::std::ptr::null())), &T::IID, &mut result__, updateoffset).from_abi(result__) @@ -2217,13 +1968,6 @@ impl IDCompositionSurface { (::windows_core::Interface::vtable(self).Scroll)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(scrollrect.unwrap_or(::std::ptr::null())), ::core::mem::transmute(cliprect.unwrap_or(::std::ptr::null())), offsetx, offsety).ok() } } -::windows_core::imp::interface_hierarchy!(IDCompositionSurface, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDCompositionSurface { - type Vtable = IDCompositionSurface_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDCompositionSurface { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbb8a4953_2c99_4f5a_96f5_4819027fa3ac); -} #[repr(C)] #[doc(hidden)] pub struct IDCompositionSurface_Vtbl { @@ -2234,9 +1978,8 @@ pub struct IDCompositionSurface_Vtbl { pub ResumeDraw: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Scroll: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, scrollrect: *const super::super::Foundation::RECT, cliprect: *const super::super::Foundation::RECT, offsetx: i32, offsety: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDCompositionSurfaceFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDCompositionSurfaceFactory, IDCompositionSurfaceFactory_Vtbl, 0xe334bc12_3937_4e02_85eb_fcf4eb30d2c8); +::windows_core::imp::interface_hierarchy!(IDCompositionSurfaceFactory, ::windows_core::IUnknown); impl IDCompositionSurfaceFactory { #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] #[cfg(feature = "Win32_Graphics_Dxgi_Common")] @@ -2251,13 +1994,6 @@ impl IDCompositionSurfaceFactory { (::windows_core::Interface::vtable(self).CreateVirtualSurface)(::windows_core::Interface::as_raw(self), initialwidth, initialheight, pixelformat, alphamode, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDCompositionSurfaceFactory, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDCompositionSurfaceFactory { - type Vtable = IDCompositionSurfaceFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDCompositionSurfaceFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe334bc12_3937_4e02_85eb_fcf4eb30d2c8); -} #[repr(C)] #[doc(hidden)] pub struct IDCompositionSurfaceFactory_Vtbl { @@ -2271,9 +2007,8 @@ pub struct IDCompositionSurfaceFactory_Vtbl { #[cfg(not(feature = "Win32_Graphics_Dxgi_Common"))] CreateVirtualSurface: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDCompositionTableTransferEffect(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDCompositionTableTransferEffect, IDCompositionTableTransferEffect_Vtbl, 0x9b7e82e2_69c5_4eb4_a5f5_a7033f5132cd); +::windows_core::imp::interface_hierarchy!(IDCompositionTableTransferEffect, ::windows_core::IUnknown, IDCompositionEffect, IDCompositionFilterEffect); impl IDCompositionTableTransferEffect { pub unsafe fn SetInput(&self, index: u32, input: P0, flags: u32) -> ::windows_core::Result<()> where @@ -2360,13 +2095,6 @@ impl IDCompositionTableTransferEffect { (::windows_core::Interface::vtable(self).SetAlphaTableValue2)(::windows_core::Interface::as_raw(self), index, value).ok() } } -::windows_core::imp::interface_hierarchy!(IDCompositionTableTransferEffect, ::windows_core::IUnknown, IDCompositionEffect, IDCompositionFilterEffect); -unsafe impl ::windows_core::Interface for IDCompositionTableTransferEffect { - type Vtable = IDCompositionTableTransferEffect_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDCompositionTableTransferEffect { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9b7e82e2_69c5_4eb4_a5f5_a7033f5132cd); -} #[repr(C)] #[doc(hidden)] pub struct IDCompositionTableTransferEffect_Vtbl { @@ -2389,9 +2117,8 @@ pub struct IDCompositionTableTransferEffect_Vtbl { pub SetAlphaTableValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, animation: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetAlphaTableValue2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, value: f32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDCompositionTarget(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDCompositionTarget, IDCompositionTarget_Vtbl, 0xeacdd04c_117e_4e17_88f4_d1b12b0e3d89); +::windows_core::imp::interface_hierarchy!(IDCompositionTarget, ::windows_core::IUnknown); impl IDCompositionTarget { pub unsafe fn SetRoot(&self, visual: P0) -> ::windows_core::Result<()> where @@ -2400,54 +2127,30 @@ impl IDCompositionTarget { (::windows_core::Interface::vtable(self).SetRoot)(::windows_core::Interface::as_raw(self), visual.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IDCompositionTarget, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDCompositionTarget { - type Vtable = IDCompositionTarget_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDCompositionTarget { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeacdd04c_117e_4e17_88f4_d1b12b0e3d89); -} #[repr(C)] #[doc(hidden)] pub struct IDCompositionTarget_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub SetRoot: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, visual: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDCompositionTransform(::windows_core::IUnknown); -impl IDCompositionTransform {} +::windows_core::imp::com_interface!(IDCompositionTransform, IDCompositionTransform_Vtbl, 0xfd55faa7_37e0_4c20_95d2_9be45bc33f55); ::windows_core::imp::interface_hierarchy!(IDCompositionTransform, ::windows_core::IUnknown, IDCompositionEffect, IDCompositionTransform3D); -unsafe impl ::windows_core::Interface for IDCompositionTransform { - type Vtable = IDCompositionTransform_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDCompositionTransform { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfd55faa7_37e0_4c20_95d2_9be45bc33f55); -} +impl IDCompositionTransform {} #[repr(C)] #[doc(hidden)] pub struct IDCompositionTransform_Vtbl { pub base__: IDCompositionTransform3D_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDCompositionTransform3D(::windows_core::IUnknown); -impl IDCompositionTransform3D {} +::windows_core::imp::com_interface!(IDCompositionTransform3D, IDCompositionTransform3D_Vtbl, 0x71185722_246b_41f2_aad1_0443f7f4bfc2); ::windows_core::imp::interface_hierarchy!(IDCompositionTransform3D, ::windows_core::IUnknown, IDCompositionEffect); -unsafe impl ::windows_core::Interface for IDCompositionTransform3D { - type Vtable = IDCompositionTransform3D_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDCompositionTransform3D { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x71185722_246b_41f2_aad1_0443f7f4bfc2); -} +impl IDCompositionTransform3D {} #[repr(C)] #[doc(hidden)] pub struct IDCompositionTransform3D_Vtbl { pub base__: IDCompositionEffect_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDCompositionTranslateTransform(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDCompositionTranslateTransform, IDCompositionTranslateTransform_Vtbl, 0x06791122_c6f0_417d_8323_269e987f5954); +::windows_core::imp::interface_hierarchy!(IDCompositionTranslateTransform, ::windows_core::IUnknown, IDCompositionEffect, IDCompositionTransform3D, IDCompositionTransform); impl IDCompositionTranslateTransform { pub unsafe fn SetOffsetX(&self, animation: P0) -> ::windows_core::Result<()> where @@ -2468,13 +2171,6 @@ impl IDCompositionTranslateTransform { (::windows_core::Interface::vtable(self).SetOffsetY2)(::windows_core::Interface::as_raw(self), offsety).ok() } } -::windows_core::imp::interface_hierarchy!(IDCompositionTranslateTransform, ::windows_core::IUnknown, IDCompositionEffect, IDCompositionTransform3D, IDCompositionTransform); -unsafe impl ::windows_core::Interface for IDCompositionTranslateTransform { - type Vtable = IDCompositionTranslateTransform_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDCompositionTranslateTransform { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x06791122_c6f0_417d_8323_269e987f5954); -} #[repr(C)] #[doc(hidden)] pub struct IDCompositionTranslateTransform_Vtbl { @@ -2484,9 +2180,8 @@ pub struct IDCompositionTranslateTransform_Vtbl { pub SetOffsetY: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, animation: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetOffsetY2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, offsety: f32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDCompositionTranslateTransform3D(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDCompositionTranslateTransform3D, IDCompositionTranslateTransform3D_Vtbl, 0x91636d4b_9ba1_4532_aaf7_e3344994d788); +::windows_core::imp::interface_hierarchy!(IDCompositionTranslateTransform3D, ::windows_core::IUnknown, IDCompositionEffect, IDCompositionTransform3D); impl IDCompositionTranslateTransform3D { pub unsafe fn SetOffsetX(&self, animation: P0) -> ::windows_core::Result<()> where @@ -2516,13 +2211,6 @@ impl IDCompositionTranslateTransform3D { (::windows_core::Interface::vtable(self).SetOffsetZ2)(::windows_core::Interface::as_raw(self), offsetz).ok() } } -::windows_core::imp::interface_hierarchy!(IDCompositionTranslateTransform3D, ::windows_core::IUnknown, IDCompositionEffect, IDCompositionTransform3D); -unsafe impl ::windows_core::Interface for IDCompositionTranslateTransform3D { - type Vtable = IDCompositionTranslateTransform3D_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDCompositionTranslateTransform3D { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x91636d4b_9ba1_4532_aaf7_e3344994d788); -} #[repr(C)] #[doc(hidden)] pub struct IDCompositionTranslateTransform3D_Vtbl { @@ -2534,9 +2222,8 @@ pub struct IDCompositionTranslateTransform3D_Vtbl { pub SetOffsetZ: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, animation: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetOffsetZ2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, offsetz: f32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDCompositionTurbulenceEffect(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDCompositionTurbulenceEffect, IDCompositionTurbulenceEffect_Vtbl, 0xa6a55bda_c09c_49f3_9193_a41922c89715); +::windows_core::imp::interface_hierarchy!(IDCompositionTurbulenceEffect, ::windows_core::IUnknown, IDCompositionEffect, IDCompositionFilterEffect); impl IDCompositionTurbulenceEffect { pub unsafe fn SetInput(&self, index: u32, input: P0, flags: u32) -> ::windows_core::Result<()> where @@ -2577,13 +2264,6 @@ impl IDCompositionTurbulenceEffect { (::windows_core::Interface::vtable(self).SetStitchable)(::windows_core::Interface::as_raw(self), stitchable.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IDCompositionTurbulenceEffect, ::windows_core::IUnknown, IDCompositionEffect, IDCompositionFilterEffect); -unsafe impl ::windows_core::Interface for IDCompositionTurbulenceEffect { - type Vtable = IDCompositionTurbulenceEffect_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDCompositionTurbulenceEffect { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa6a55bda_c09c_49f3_9193_a41922c89715); -} #[repr(C)] #[doc(hidden)] pub struct IDCompositionTurbulenceEffect_Vtbl { @@ -2608,13 +2288,12 @@ pub struct IDCompositionTurbulenceEffect_Vtbl { SetNoise: usize, pub SetStitchable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, stitchable: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDCompositionVirtualSurface(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDCompositionVirtualSurface, IDCompositionVirtualSurface_Vtbl, 0xae471c51_5f53_4a24_8d3e_d0c39c30b3f0); +::windows_core::imp::interface_hierarchy!(IDCompositionVirtualSurface, ::windows_core::IUnknown, IDCompositionSurface); impl IDCompositionVirtualSurface { pub unsafe fn BeginDraw(&self, updaterect: ::core::option::Option<*const super::super::Foundation::RECT>, updateoffset: *mut super::super::Foundation::POINT) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.BeginDraw)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(updaterect.unwrap_or(::std::ptr::null())), &T::IID, &mut result__, updateoffset).from_abi(result__) @@ -2638,13 +2317,6 @@ impl IDCompositionVirtualSurface { (::windows_core::Interface::vtable(self).Trim)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(rectangles.as_deref().map_or(::core::ptr::null(), |slice| slice.as_ptr())), rectangles.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())).ok() } } -::windows_core::imp::interface_hierarchy!(IDCompositionVirtualSurface, ::windows_core::IUnknown, IDCompositionSurface); -unsafe impl ::windows_core::Interface for IDCompositionVirtualSurface { - type Vtable = IDCompositionVirtualSurface_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDCompositionVirtualSurface { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xae471c51_5f53_4a24_8d3e_d0c39c30b3f0); -} #[repr(C)] #[doc(hidden)] pub struct IDCompositionVirtualSurface_Vtbl { @@ -2652,9 +2324,8 @@ pub struct IDCompositionVirtualSurface_Vtbl { pub Resize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, width: u32, height: u32) -> ::windows_core::HRESULT, pub Trim: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rectangles: *const super::super::Foundation::RECT, count: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDCompositionVisual(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDCompositionVisual, IDCompositionVisual_Vtbl, 0x4d93059d_097b_4651_9a60_f0f25116e2f3); +::windows_core::imp::interface_hierarchy!(IDCompositionVisual, ::windows_core::IUnknown); impl IDCompositionVisual { pub unsafe fn SetOffsetX(&self, animation: P0) -> ::windows_core::Result<()> where @@ -2741,13 +2412,6 @@ impl IDCompositionVisual { (::windows_core::Interface::vtable(self).SetCompositeMode)(::windows_core::Interface::as_raw(self), compositemode).ok() } } -::windows_core::imp::interface_hierarchy!(IDCompositionVisual, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDCompositionVisual { - type Vtable = IDCompositionVisual_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDCompositionVisual { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4d93059d_097b_4651_9a60_f0f25116e2f3); -} #[repr(C)] #[doc(hidden)] pub struct IDCompositionVisual_Vtbl { @@ -2776,9 +2440,8 @@ pub struct IDCompositionVisual_Vtbl { pub RemoveAllVisuals: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetCompositeMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, compositemode: DCOMPOSITION_COMPOSITE_MODE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDCompositionVisual2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDCompositionVisual2, IDCompositionVisual2_Vtbl, 0xe8de1639_4331_4b26_bc5f_6a321d347a85); +::windows_core::imp::interface_hierarchy!(IDCompositionVisual2, ::windows_core::IUnknown, IDCompositionVisual); impl IDCompositionVisual2 { pub unsafe fn SetOffsetX(&self, animation: P0) -> ::windows_core::Result<()> where @@ -2871,13 +2534,6 @@ impl IDCompositionVisual2 { (::windows_core::Interface::vtable(self).SetBackFaceVisibility)(::windows_core::Interface::as_raw(self), visibility).ok() } } -::windows_core::imp::interface_hierarchy!(IDCompositionVisual2, ::windows_core::IUnknown, IDCompositionVisual); -unsafe impl ::windows_core::Interface for IDCompositionVisual2 { - type Vtable = IDCompositionVisual2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDCompositionVisual2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe8de1639_4331_4b26_bc5f_6a321d347a85); -} #[repr(C)] #[doc(hidden)] pub struct IDCompositionVisual2_Vtbl { @@ -2885,9 +2541,8 @@ pub struct IDCompositionVisual2_Vtbl { pub SetOpacityMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mode: DCOMPOSITION_OPACITY_MODE) -> ::windows_core::HRESULT, pub SetBackFaceVisibility: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, visibility: DCOMPOSITION_BACKFACE_VISIBILITY) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDCompositionVisual3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDCompositionVisual3, IDCompositionVisual3_Vtbl, 0x2775f462_b6c1_4015_b0be_b3e7d6a4976d); +::windows_core::imp::interface_hierarchy!(IDCompositionVisual3, ::windows_core::IUnknown, IDCompositionVisual, IDCompositionVisual2, IDCompositionVisualDebug); impl IDCompositionVisual3 { pub unsafe fn SetOffsetX(&self, animation: P0) -> ::windows_core::Result<()> where @@ -3032,13 +2687,6 @@ impl IDCompositionVisual3 { (::windows_core::Interface::vtable(self).SetVisible)(::windows_core::Interface::as_raw(self), visible.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IDCompositionVisual3, ::windows_core::IUnknown, IDCompositionVisual, IDCompositionVisual2, IDCompositionVisualDebug); -unsafe impl ::windows_core::Interface for IDCompositionVisual3 { - type Vtable = IDCompositionVisual3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDCompositionVisual3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2775f462_b6c1_4015_b0be_b3e7d6a4976d); -} #[repr(C)] #[doc(hidden)] pub struct IDCompositionVisual3_Vtbl { @@ -3055,9 +2703,8 @@ pub struct IDCompositionVisual3_Vtbl { SetTransform4: usize, pub SetVisible: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, visible: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDCompositionVisualDebug(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDCompositionVisualDebug, IDCompositionVisualDebug_Vtbl, 0xfed2b808_5eb4_43a0_aea3_35f65280f91b); +::windows_core::imp::interface_hierarchy!(IDCompositionVisualDebug, ::windows_core::IUnknown, IDCompositionVisual, IDCompositionVisual2); impl IDCompositionVisualDebug { pub unsafe fn SetOffsetX(&self, animation: P0) -> ::windows_core::Result<()> where @@ -3164,13 +2811,6 @@ impl IDCompositionVisualDebug { (::windows_core::Interface::vtable(self).DisableRedrawRegions)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IDCompositionVisualDebug, ::windows_core::IUnknown, IDCompositionVisual, IDCompositionVisual2); -unsafe impl ::windows_core::Interface for IDCompositionVisualDebug { - type Vtable = IDCompositionVisualDebug_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDCompositionVisualDebug { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfed2b808_5eb4_43a0_aea3_35f65280f91b); -} #[repr(C)] #[doc(hidden)] pub struct IDCompositionVisualDebug_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/DirectDraw/impl.rs b/crates/libs/windows/src/Windows/Win32/Graphics/DirectDraw/impl.rs index 0cc45817cb..637f310d6b 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/DirectDraw/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/DirectDraw/impl.rs @@ -36,7 +36,7 @@ impl IDDVideoPortContainer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] @@ -205,7 +205,7 @@ impl IDirectDraw_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] @@ -381,7 +381,7 @@ impl IDirectDraw2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] @@ -591,7 +591,7 @@ impl IDirectDraw4_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] @@ -815,7 +815,7 @@ impl IDirectDraw7_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] @@ -874,7 +874,7 @@ impl IDirectDrawClipper_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDirectDrawColorControl_Impl: Sized { @@ -901,7 +901,7 @@ impl IDirectDrawColorControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDirectDrawGammaControl_Impl: Sized { @@ -928,7 +928,7 @@ impl IDirectDrawGammaControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDirectDrawKernel_Impl: Sized { @@ -962,7 +962,7 @@ impl IDirectDrawKernel_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] @@ -1007,7 +1007,7 @@ impl IDirectDrawPalette_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] @@ -1267,7 +1267,7 @@ impl IDirectDrawSurface_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] @@ -1548,7 +1548,7 @@ impl IDirectDrawSurface2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] @@ -1836,7 +1836,7 @@ impl IDirectDrawSurface3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] @@ -2159,7 +2159,7 @@ impl IDirectDrawSurface4_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] @@ -2510,7 +2510,7 @@ impl IDirectDrawSurface7_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDirectDrawSurfaceKernel_Impl: Sized { @@ -2537,7 +2537,7 @@ impl IDirectDrawSurfaceKernel_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDirectDrawVideoPort_Impl: Sized { @@ -2648,7 +2648,7 @@ impl IDirectDrawVideoPort_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDirectDrawVideoPortNotify_Impl: Sized { @@ -2675,6 +2675,6 @@ impl IDirectDrawVideoPortNotify_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 1ae92865ab..a81904a5fe 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/DirectDraw/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/DirectDraw/mod.rs @@ -46,9 +46,8 @@ pub unsafe fn DirectDrawEnumerateW(lpcallback: LPDDENUMCALLBACKW, lpcontext: *mu ::windows_targets::link!("ddraw.dll" "system" fn DirectDrawEnumerateW(lpcallback : LPDDENUMCALLBACKW, lpcontext : *mut ::core::ffi::c_void) -> ::windows_core::HRESULT); DirectDrawEnumerateW(lpcallback, lpcontext).ok() } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDDVideoPortContainer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDDVideoPortContainer, IDDVideoPortContainer_Vtbl, 0x6c142760_a733_11ce_a521_0020af0be560); +::windows_core::imp::interface_hierarchy!(IDDVideoPortContainer, ::windows_core::IUnknown); impl IDDVideoPortContainer { pub unsafe fn CreateVideoPort(&self, param0: u32, param1: *mut DDVIDEOPORTDESC, param2: *mut ::core::option::Option, param3: P0) -> ::windows_core::Result<()> where @@ -66,13 +65,6 @@ impl IDDVideoPortContainer { (::windows_core::Interface::vtable(self).QueryVideoPortStatus)(::windows_core::Interface::as_raw(self), param0, param1).ok() } } -::windows_core::imp::interface_hierarchy!(IDDVideoPortContainer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDDVideoPortContainer { - type Vtable = IDDVideoPortContainer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDDVideoPortContainer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6c142760_a733_11ce_a521_0020af0be560); -} #[repr(C)] #[doc(hidden)] pub struct IDDVideoPortContainer_Vtbl { @@ -82,9 +74,8 @@ pub struct IDDVideoPortContainer_Vtbl { pub GetVideoPortConnectInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: u32, pcinfo: *mut u32, param2: *mut DDVIDEOPORTCONNECT) -> ::windows_core::HRESULT, pub QueryVideoPortStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: u32, param1: *mut DDVIDEOPORTSTATUS) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectDraw(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectDraw, IDirectDraw_Vtbl, 0x6c14db80_a733_11ce_a521_0020af0be560); +::windows_core::imp::interface_hierarchy!(IDirectDraw, ::windows_core::IUnknown); impl IDirectDraw { pub unsafe fn Compact(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Compact)(::windows_core::Interface::as_raw(self)).ok() @@ -169,13 +160,6 @@ impl IDirectDraw { (::windows_core::Interface::vtable(self).WaitForVerticalBlank)(::windows_core::Interface::as_raw(self), param0, param1.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectDraw, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectDraw { - type Vtable = IDirectDraw_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectDraw { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6c14db80_a733_11ce_a521_0020af0be560); -} #[repr(C)] #[doc(hidden)] pub struct IDirectDraw_Vtbl { @@ -204,9 +188,8 @@ pub struct IDirectDraw_Vtbl { pub SetDisplayMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: u32, param1: u32, param2: u32) -> ::windows_core::HRESULT, pub WaitForVerticalBlank: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: u32, param1: super::super::Foundation::HANDLE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectDraw2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectDraw2, IDirectDraw2_Vtbl, 0xb3a6f3e0_2b43_11cf_a2de_00aa00b93356); +::windows_core::imp::interface_hierarchy!(IDirectDraw2, ::windows_core::IUnknown); impl IDirectDraw2 { pub unsafe fn Compact(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Compact)(::windows_core::Interface::as_raw(self)).ok() @@ -294,13 +277,6 @@ impl IDirectDraw2 { (::windows_core::Interface::vtable(self).GetAvailableVidMem)(::windows_core::Interface::as_raw(self), param0, param1, param2).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectDraw2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectDraw2 { - type Vtable = IDirectDraw2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectDraw2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb3a6f3e0_2b43_11cf_a2de_00aa00b93356); -} #[repr(C)] #[doc(hidden)] pub struct IDirectDraw2_Vtbl { @@ -330,9 +306,8 @@ pub struct IDirectDraw2_Vtbl { pub WaitForVerticalBlank: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: u32, param1: super::super::Foundation::HANDLE) -> ::windows_core::HRESULT, pub GetAvailableVidMem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: *mut DDSCAPS, param1: *mut u32, param2: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectDraw4(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectDraw4, IDirectDraw4_Vtbl, 0x9c59509a_39bd_11d1_8c4a_00c04fd930c5); +::windows_core::imp::interface_hierarchy!(IDirectDraw4, ::windows_core::IUnknown); impl IDirectDraw4 { pub unsafe fn Compact(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Compact)(::windows_core::Interface::as_raw(self)).ok() @@ -438,13 +413,6 @@ impl IDirectDraw4 { (::windows_core::Interface::vtable(self).GetDeviceIdentifier)(::windows_core::Interface::as_raw(self), param0, param1).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectDraw4, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectDraw4 { - type Vtable = IDirectDraw4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectDraw4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9c59509a_39bd_11d1_8c4a_00c04fd930c5); -} #[repr(C)] #[doc(hidden)] pub struct IDirectDraw4_Vtbl { @@ -481,9 +449,8 @@ pub struct IDirectDraw4_Vtbl { pub TestCooperativeLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeviceIdentifier: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: *mut DDDEVICEIDENTIFIER, param1: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectDraw7(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectDraw7, IDirectDraw7_Vtbl, 0x15e65ec0_3b9c_11d2_b92f_00609797ea5b); +::windows_core::imp::interface_hierarchy!(IDirectDraw7, ::windows_core::IUnknown); impl IDirectDraw7 { pub unsafe fn Compact(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Compact)(::windows_core::Interface::as_raw(self)).ok() @@ -595,13 +562,6 @@ impl IDirectDraw7 { (::windows_core::Interface::vtable(self).EvaluateMode)(::windows_core::Interface::as_raw(self), param0, param1).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectDraw7, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectDraw7 { - type Vtable = IDirectDraw7_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectDraw7 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x15e65ec0_3b9c_11d2_b92f_00609797ea5b); -} #[repr(C)] #[doc(hidden)] pub struct IDirectDraw7_Vtbl { @@ -640,9 +600,8 @@ pub struct IDirectDraw7_Vtbl { pub StartModeTest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: *mut super::super::Foundation::SIZE, param1: u32, param2: u32) -> ::windows_core::HRESULT, pub EvaluateMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: u32, param1: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectDrawClipper(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectDrawClipper, IDirectDrawClipper_Vtbl, 0x6c14db85_a733_11ce_a521_0020af0be560); +::windows_core::imp::interface_hierarchy!(IDirectDrawClipper, ::windows_core::IUnknown); impl IDirectDrawClipper { #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] #[cfg(feature = "Win32_Graphics_Gdi")] @@ -673,13 +632,6 @@ impl IDirectDrawClipper { (::windows_core::Interface::vtable(self).SetHWnd)(::windows_core::Interface::as_raw(self), param0, param1.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectDrawClipper, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectDrawClipper { - type Vtable = IDirectDrawClipper_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectDrawClipper { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6c14db85_a733_11ce_a521_0020af0be560); -} #[repr(C)] #[doc(hidden)] pub struct IDirectDrawClipper_Vtbl { @@ -697,9 +649,8 @@ pub struct IDirectDrawClipper_Vtbl { SetClipList: usize, pub SetHWnd: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: u32, param1: super::super::Foundation::HWND) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectDrawColorControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectDrawColorControl, IDirectDrawColorControl_Vtbl, 0x4b9f0ee0_0d7e_11d0_9b06_00a0c903a3b8); +::windows_core::imp::interface_hierarchy!(IDirectDrawColorControl, ::windows_core::IUnknown); impl IDirectDrawColorControl { pub unsafe fn GetColorControls(&self, param0: *mut DDCOLORCONTROL) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetColorControls)(::windows_core::Interface::as_raw(self), param0).ok() @@ -708,13 +659,6 @@ impl IDirectDrawColorControl { (::windows_core::Interface::vtable(self).SetColorControls)(::windows_core::Interface::as_raw(self), param0).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectDrawColorControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectDrawColorControl { - type Vtable = IDirectDrawColorControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectDrawColorControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4b9f0ee0_0d7e_11d0_9b06_00a0c903a3b8); -} #[repr(C)] #[doc(hidden)] pub struct IDirectDrawColorControl_Vtbl { @@ -722,9 +666,8 @@ pub struct IDirectDrawColorControl_Vtbl { pub GetColorControls: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: *mut DDCOLORCONTROL) -> ::windows_core::HRESULT, pub SetColorControls: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: *mut DDCOLORCONTROL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectDrawGammaControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectDrawGammaControl, IDirectDrawGammaControl_Vtbl, 0x69c11c3e_b46b_11d1_ad7a_00c04fc29b4e); +::windows_core::imp::interface_hierarchy!(IDirectDrawGammaControl, ::windows_core::IUnknown); impl IDirectDrawGammaControl { pub unsafe fn GetGammaRamp(&self, param0: u32, param1: *mut DDGAMMARAMP) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetGammaRamp)(::windows_core::Interface::as_raw(self), param0, param1).ok() @@ -733,13 +676,6 @@ impl IDirectDrawGammaControl { (::windows_core::Interface::vtable(self).SetGammaRamp)(::windows_core::Interface::as_raw(self), param0, param1).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectDrawGammaControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectDrawGammaControl { - type Vtable = IDirectDrawGammaControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectDrawGammaControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x69c11c3e_b46b_11d1_ad7a_00c04fc29b4e); -} #[repr(C)] #[doc(hidden)] pub struct IDirectDrawGammaControl_Vtbl { @@ -747,9 +683,8 @@ pub struct IDirectDrawGammaControl_Vtbl { pub GetGammaRamp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: u32, param1: *mut DDGAMMARAMP) -> ::windows_core::HRESULT, pub SetGammaRamp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: u32, param1: *mut DDGAMMARAMP) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectDrawKernel(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectDrawKernel, IDirectDrawKernel_Vtbl, 0x8d56c120_6a08_11d0_9b06_00a0c903a3b8); +::windows_core::imp::interface_hierarchy!(IDirectDrawKernel, ::windows_core::IUnknown); impl IDirectDrawKernel { pub unsafe fn GetCaps(&self, param0: *mut DDKERNELCAPS) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetCaps)(::windows_core::Interface::as_raw(self), param0).ok() @@ -761,13 +696,6 @@ impl IDirectDrawKernel { (::windows_core::Interface::vtable(self).ReleaseKernelHandle)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectDrawKernel, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectDrawKernel { - type Vtable = IDirectDrawKernel_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectDrawKernel { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8d56c120_6a08_11d0_9b06_00a0c903a3b8); -} #[repr(C)] #[doc(hidden)] pub struct IDirectDrawKernel_Vtbl { @@ -776,9 +704,8 @@ pub struct IDirectDrawKernel_Vtbl { pub GetKernelHandle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: *mut usize) -> ::windows_core::HRESULT, pub ReleaseKernelHandle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectDrawPalette(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectDrawPalette, IDirectDrawPalette_Vtbl, 0x6c14db84_a733_11ce_a521_0020af0be560); +::windows_core::imp::interface_hierarchy!(IDirectDrawPalette, ::windows_core::IUnknown); impl IDirectDrawPalette { pub unsafe fn GetCaps(&self, param0: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetCaps)(::windows_core::Interface::as_raw(self), param0).ok() @@ -802,13 +729,6 @@ impl IDirectDrawPalette { (::windows_core::Interface::vtable(self).SetEntries)(::windows_core::Interface::as_raw(self), param0, param1, param2, param3).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectDrawPalette, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectDrawPalette { - type Vtable = IDirectDrawPalette_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectDrawPalette { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6c14db84_a733_11ce_a521_0020af0be560); -} #[repr(C)] #[doc(hidden)] pub struct IDirectDrawPalette_Vtbl { @@ -827,9 +747,8 @@ pub struct IDirectDrawPalette_Vtbl { #[cfg(not(feature = "Win32_Graphics_Gdi"))] SetEntries: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectDrawSurface(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectDrawSurface, IDirectDrawSurface_Vtbl, 0x6c14db81_a733_11ce_a521_0020af0be560); +::windows_core::imp::interface_hierarchy!(IDirectDrawSurface, ::windows_core::IUnknown); impl IDirectDrawSurface { pub unsafe fn AddAttachedSurface(&self, param0: P0) -> ::windows_core::Result<()> where @@ -973,13 +892,6 @@ impl IDirectDrawSurface { (::windows_core::Interface::vtable(self).UpdateOverlayZOrder)(::windows_core::Interface::as_raw(self), param0, param1.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectDrawSurface, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectDrawSurface { - type Vtable = IDirectDrawSurface_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectDrawSurface { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6c14db81_a733_11ce_a521_0020af0be560); -} #[repr(C)] #[doc(hidden)] pub struct IDirectDrawSurface_Vtbl { @@ -1024,9 +936,8 @@ pub struct IDirectDrawSurface_Vtbl { pub UpdateOverlayDisplay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: u32) -> ::windows_core::HRESULT, pub UpdateOverlayZOrder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: u32, param1: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectDrawSurface2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectDrawSurface2, IDirectDrawSurface2_Vtbl, 0x57805885_6eec_11cf_9441_a82303c10e27); +::windows_core::imp::interface_hierarchy!(IDirectDrawSurface2, ::windows_core::IUnknown); impl IDirectDrawSurface2 { pub unsafe fn AddAttachedSurface(&self, param0: P0) -> ::windows_core::Result<()> where @@ -1179,13 +1090,6 @@ impl IDirectDrawSurface2 { (::windows_core::Interface::vtable(self).PageUnlock)(::windows_core::Interface::as_raw(self), param0).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectDrawSurface2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectDrawSurface2 { - type Vtable = IDirectDrawSurface2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectDrawSurface2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x57805885_6eec_11cf_9441_a82303c10e27); -} #[repr(C)] #[doc(hidden)] pub struct IDirectDrawSurface2_Vtbl { @@ -1233,9 +1137,8 @@ pub struct IDirectDrawSurface2_Vtbl { pub PageLock: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: u32) -> ::windows_core::HRESULT, pub PageUnlock: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectDrawSurface3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectDrawSurface3, IDirectDrawSurface3_Vtbl, 0xda044e00_69b2_11d0_a1d5_00aa00b8dfbb); +::windows_core::imp::interface_hierarchy!(IDirectDrawSurface3, ::windows_core::IUnknown); impl IDirectDrawSurface3 { pub unsafe fn AddAttachedSurface(&self, param0: P0) -> ::windows_core::Result<()> where @@ -1391,13 +1294,6 @@ impl IDirectDrawSurface3 { (::windows_core::Interface::vtable(self).SetSurfaceDesc)(::windows_core::Interface::as_raw(self), param0, param1).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectDrawSurface3, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectDrawSurface3 { - type Vtable = IDirectDrawSurface3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectDrawSurface3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xda044e00_69b2_11d0_a1d5_00aa00b8dfbb); -} #[repr(C)] #[doc(hidden)] pub struct IDirectDrawSurface3_Vtbl { @@ -1446,9 +1342,8 @@ pub struct IDirectDrawSurface3_Vtbl { pub PageUnlock: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: u32) -> ::windows_core::HRESULT, pub SetSurfaceDesc: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: *mut DDSURFACEDESC, param1: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectDrawSurface4(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectDrawSurface4, IDirectDrawSurface4_Vtbl, 0x0b2b8630_ad35_11d0_8ea6_00609797ea5b); +::windows_core::imp::interface_hierarchy!(IDirectDrawSurface4, ::windows_core::IUnknown); impl IDirectDrawSurface4 { pub unsafe fn AddAttachedSurface(&self, param0: P0) -> ::windows_core::Result<()> where @@ -1619,13 +1514,6 @@ impl IDirectDrawSurface4 { (::windows_core::Interface::vtable(self).ChangeUniquenessValue)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectDrawSurface4, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectDrawSurface4 { - type Vtable = IDirectDrawSurface4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectDrawSurface4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0b2b8630_ad35_11d0_8ea6_00609797ea5b); -} #[repr(C)] #[doc(hidden)] pub struct IDirectDrawSurface4_Vtbl { @@ -1679,9 +1567,8 @@ pub struct IDirectDrawSurface4_Vtbl { pub GetUniquenessValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: *mut u32) -> ::windows_core::HRESULT, pub ChangeUniquenessValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectDrawSurface7(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectDrawSurface7, IDirectDrawSurface7_Vtbl, 0x06675a80_3b9b_11d2_b92f_00609797ea5b); +::windows_core::imp::interface_hierarchy!(IDirectDrawSurface7, ::windows_core::IUnknown); impl IDirectDrawSurface7 { pub unsafe fn AddAttachedSurface(&self, param0: P0) -> ::windows_core::Result<()> where @@ -1864,13 +1751,6 @@ impl IDirectDrawSurface7 { (::windows_core::Interface::vtable(self).GetLOD)(::windows_core::Interface::as_raw(self), param0).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectDrawSurface7, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectDrawSurface7 { - type Vtable = IDirectDrawSurface7_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectDrawSurface7 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x06675a80_3b9b_11d2_b92f_00609797ea5b); -} #[repr(C)] #[doc(hidden)] pub struct IDirectDrawSurface7_Vtbl { @@ -1928,9 +1808,8 @@ pub struct IDirectDrawSurface7_Vtbl { pub SetLOD: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: u32) -> ::windows_core::HRESULT, pub GetLOD: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectDrawSurfaceKernel(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectDrawSurfaceKernel, IDirectDrawSurfaceKernel_Vtbl, 0x60755da0_6a40_11d0_9b06_00a0c903a3b8); +::windows_core::imp::interface_hierarchy!(IDirectDrawSurfaceKernel, ::windows_core::IUnknown); impl IDirectDrawSurfaceKernel { pub unsafe fn GetKernelHandle(&self, param0: *mut usize) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetKernelHandle)(::windows_core::Interface::as_raw(self), param0).ok() @@ -1939,13 +1818,6 @@ impl IDirectDrawSurfaceKernel { (::windows_core::Interface::vtable(self).ReleaseKernelHandle)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectDrawSurfaceKernel, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectDrawSurfaceKernel { - type Vtable = IDirectDrawSurfaceKernel_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectDrawSurfaceKernel { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x60755da0_6a40_11d0_9b06_00a0c903a3b8); -} #[repr(C)] #[doc(hidden)] pub struct IDirectDrawSurfaceKernel_Vtbl { @@ -1953,9 +1825,8 @@ pub struct IDirectDrawSurfaceKernel_Vtbl { pub GetKernelHandle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: *mut usize) -> ::windows_core::HRESULT, pub ReleaseKernelHandle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectDrawVideoPort(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectDrawVideoPort, IDirectDrawVideoPort_Vtbl, 0xb36d93e0_2b43_11cf_a2de_00aa00b93356); +::windows_core::imp::interface_hierarchy!(IDirectDrawVideoPort, ::windows_core::IUnknown); impl IDirectDrawVideoPort { pub unsafe fn Flip(&self, param0: P0, param1: u32) -> ::windows_core::Result<()> where @@ -2006,13 +1877,6 @@ impl IDirectDrawVideoPort { (::windows_core::Interface::vtable(self).WaitForSync)(::windows_core::Interface::as_raw(self), param0, param1, param2).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectDrawVideoPort, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectDrawVideoPort { - type Vtable = IDirectDrawVideoPort_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectDrawVideoPort { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb36d93e0_2b43_11cf_a2de_00aa00b93356); -} #[repr(C)] #[doc(hidden)] pub struct IDirectDrawVideoPort_Vtbl { @@ -2032,9 +1896,8 @@ pub struct IDirectDrawVideoPort_Vtbl { pub UpdateVideo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: *mut DDVIDEOPORTINFO) -> ::windows_core::HRESULT, pub WaitForSync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: u32, param1: u32, param2: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectDrawVideoPortNotify(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectDrawVideoPortNotify, IDirectDrawVideoPortNotify_Vtbl, 0xa655fb94_0589_4e57_b333_567a89468c88); +::windows_core::imp::interface_hierarchy!(IDirectDrawVideoPortNotify, ::windows_core::IUnknown); impl IDirectDrawVideoPortNotify { pub unsafe fn AcquireNotification(&self, param0: *mut super::super::Foundation::HANDLE, param1: *mut DDVIDEOPORTNOTIFY) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).AcquireNotification)(::windows_core::Interface::as_raw(self), param0, param1).ok() @@ -2046,13 +1909,6 @@ impl IDirectDrawVideoPortNotify { (::windows_core::Interface::vtable(self).ReleaseNotification)(::windows_core::Interface::as_raw(self), param0.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectDrawVideoPortNotify, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectDrawVideoPortNotify { - type Vtable = IDirectDrawVideoPortNotify_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectDrawVideoPortNotify { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa655fb94_0589_4e57_b333_567a89468c88); -} #[repr(C)] #[doc(hidden)] pub struct IDirectDrawVideoPortNotify_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/DirectManipulation/impl.rs b/crates/libs/windows/src/Windows/Win32/Graphics/DirectManipulation/impl.rs index dbffbae015..9f63d678af 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/DirectManipulation/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/DirectManipulation/impl.rs @@ -12,7 +12,7 @@ impl IDirectManipulationAutoScrollBehavior_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), SetConfiguration: SetConfiguration:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDirectManipulationCompositor_Impl: Sized { @@ -53,7 +53,7 @@ impl IDirectManipulationCompositor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDirectManipulationCompositor2_Impl: Sized + IDirectManipulationCompositor_Impl { @@ -73,7 +73,7 @@ impl IDirectManipulationCompositor2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDirectManipulationContent_Impl: Sized { @@ -148,7 +148,7 @@ impl IDirectManipulationContent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDirectManipulationDeferContactService_Impl: Sized { @@ -182,7 +182,7 @@ impl IDirectManipulationDeferContactService_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDirectManipulationDragDropBehavior_Impl: Sized { @@ -215,7 +215,7 @@ impl IDirectManipulationDragDropBehavior_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDirectManipulationDragDropEventHandler_Impl: Sized { @@ -232,7 +232,7 @@ impl IDirectManipulationDragDropEventHandler_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnDragDropStatusChange: OnDragDropStatusChange:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDirectManipulationFrameInfoProvider_Impl: Sized { @@ -249,7 +249,7 @@ impl IDirectManipulationFrameInfoProvider_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetNextFrameInfo: GetNextFrameInfo:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDirectManipulationInteractionEventHandler_Impl: Sized { @@ -266,7 +266,7 @@ impl IDirectManipulationInteractionEventHandler_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnInteraction: OnInteraction:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_WindowsAndMessaging\"`"] @@ -338,7 +338,7 @@ impl IDirectManipulationManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_WindowsAndMessaging\"`"] @@ -359,7 +359,7 @@ impl IDirectManipulationManager2_Vtbl { Self { base__: IDirectManipulationManager_Vtbl::new::(), CreateBehavior: CreateBehavior:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_UI_WindowsAndMessaging\"`"] @@ -380,7 +380,7 @@ impl IDirectManipulationManager3_Vtbl { Self { base__: IDirectManipulationManager2_Vtbl::new::(), GetService: GetService:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDirectManipulationPrimaryContent_Impl: Sized { @@ -456,7 +456,7 @@ impl IDirectManipulationPrimaryContent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDirectManipulationUpdateHandler_Impl: Sized { @@ -473,7 +473,7 @@ impl IDirectManipulationUpdateHandler_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Update: Update:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDirectManipulationUpdateManager_Impl: Sized { @@ -513,7 +513,7 @@ impl IDirectManipulationUpdateManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDirectManipulationViewport_Impl: Sized { @@ -740,7 +740,7 @@ impl IDirectManipulationViewport_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDirectManipulationViewport2_Impl: Sized + IDirectManipulationViewport_Impl { @@ -780,7 +780,7 @@ impl IDirectManipulationViewport2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDirectManipulationViewportEventHandler_Impl: Sized { @@ -814,6 +814,6 @@ impl IDirectManipulationViewportEventHandler_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 420b490d19..d2f727e145 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/DirectManipulation/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/DirectManipulation/mod.rs @@ -1,27 +1,18 @@ -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectManipulationAutoScrollBehavior(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectManipulationAutoScrollBehavior, IDirectManipulationAutoScrollBehavior_Vtbl, 0x6d5954d4_2003_4356_9b31_d051c9ff0af7); +::windows_core::imp::interface_hierarchy!(IDirectManipulationAutoScrollBehavior, ::windows_core::IUnknown); impl IDirectManipulationAutoScrollBehavior { pub unsafe fn SetConfiguration(&self, motiontypes: DIRECTMANIPULATION_MOTION_TYPES, scrollmotion: DIRECTMANIPULATION_AUTOSCROLL_CONFIGURATION) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetConfiguration)(::windows_core::Interface::as_raw(self), motiontypes, scrollmotion).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectManipulationAutoScrollBehavior, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectManipulationAutoScrollBehavior { - type Vtable = IDirectManipulationAutoScrollBehavior_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectManipulationAutoScrollBehavior { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6d5954d4_2003_4356_9b31_d051c9ff0af7); -} #[repr(C)] #[doc(hidden)] pub struct IDirectManipulationAutoScrollBehavior_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub SetConfiguration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, motiontypes: DIRECTMANIPULATION_MOTION_TYPES, scrollmotion: DIRECTMANIPULATION_AUTOSCROLL_CONFIGURATION) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectManipulationCompositor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectManipulationCompositor, IDirectManipulationCompositor_Vtbl, 0x537a0825_0387_4efa_b62f_71eb1f085a7e); +::windows_core::imp::interface_hierarchy!(IDirectManipulationCompositor, ::windows_core::IUnknown); impl IDirectManipulationCompositor { pub unsafe fn AddContent(&self, content: P0, device: P1, parentvisual: P2, childvisual: P3) -> ::windows_core::Result<()> where @@ -48,13 +39,6 @@ impl IDirectManipulationCompositor { (::windows_core::Interface::vtable(self).Flush)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectManipulationCompositor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectManipulationCompositor { - type Vtable = IDirectManipulationCompositor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectManipulationCompositor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x537a0825_0387_4efa_b62f_71eb1f085a7e); -} #[repr(C)] #[doc(hidden)] pub struct IDirectManipulationCompositor_Vtbl { @@ -64,9 +48,8 @@ pub struct IDirectManipulationCompositor_Vtbl { pub SetUpdateManager: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, updatemanager: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Flush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectManipulationCompositor2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectManipulationCompositor2, IDirectManipulationCompositor2_Vtbl, 0xd38c7822_f1cb_43cb_b4b9_ac0c767a412e); +::windows_core::imp::interface_hierarchy!(IDirectManipulationCompositor2, ::windows_core::IUnknown, IDirectManipulationCompositor); impl IDirectManipulationCompositor2 { pub unsafe fn AddContent(&self, content: P0, device: P1, parentvisual: P2, childvisual: P3) -> ::windows_core::Result<()> where @@ -102,22 +85,14 @@ impl IDirectManipulationCompositor2 { (::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::imp::interface_hierarchy!(IDirectManipulationCompositor2, ::windows_core::IUnknown, IDirectManipulationCompositor); -unsafe impl ::windows_core::Interface for IDirectManipulationCompositor2 { - type Vtable = IDirectManipulationCompositor2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectManipulationCompositor2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd38c7822_f1cb_43cb_b4b9_ac0c767a412e); -} #[repr(C)] #[doc(hidden)] pub struct IDirectManipulationCompositor2_Vtbl { pub base__: IDirectManipulationCompositor_Vtbl, pub AddContentWithCrossProcessChaining: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, content: *mut ::core::ffi::c_void, device: *mut ::core::ffi::c_void, parentvisual: *mut ::core::ffi::c_void, childvisual: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectManipulationContent(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectManipulationContent, IDirectManipulationContent_Vtbl, 0xb89962cb_3d89_442b_bb58_5098fa0f9f16); +::windows_core::imp::interface_hierarchy!(IDirectManipulationContent, ::windows_core::IUnknown); impl IDirectManipulationContent { pub unsafe fn GetContentRect(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -128,14 +103,14 @@ impl IDirectManipulationContent { } pub unsafe fn GetViewport(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetViewport)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) } pub unsafe fn GetTag(&self, id: ::core::option::Option<*mut u32>, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).GetTag)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _, ::core::mem::transmute(id.unwrap_or(::std::ptr::null_mut()))).ok() } @@ -155,13 +130,6 @@ impl IDirectManipulationContent { (::windows_core::Interface::vtable(self).SyncContentTransform)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(matrix.as_ptr()), matrix.len().try_into().unwrap()).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectManipulationContent, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectManipulationContent { - type Vtable = IDirectManipulationContent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectManipulationContent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb89962cb_3d89_442b_bb58_5098fa0f9f16); -} #[repr(C)] #[doc(hidden)] pub struct IDirectManipulationContent_Vtbl { @@ -175,9 +143,8 @@ pub struct IDirectManipulationContent_Vtbl { pub GetContentTransform: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, matrix: *mut f32, pointcount: u32) -> ::windows_core::HRESULT, pub SyncContentTransform: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, matrix: *const f32, pointcount: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectManipulationDeferContactService(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectManipulationDeferContactService, IDirectManipulationDeferContactService_Vtbl, 0x652d5c71_fe60_4a98_be70_e5f21291e7f1); +::windows_core::imp::interface_hierarchy!(IDirectManipulationDeferContactService, ::windows_core::IUnknown); impl IDirectManipulationDeferContactService { pub unsafe fn DeferContact(&self, pointerid: u32, timeout: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).DeferContact)(::windows_core::Interface::as_raw(self), pointerid, timeout).ok() @@ -189,13 +156,6 @@ impl IDirectManipulationDeferContactService { (::windows_core::Interface::vtable(self).CancelDeferral)(::windows_core::Interface::as_raw(self), pointerid).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectManipulationDeferContactService, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectManipulationDeferContactService { - type Vtable = IDirectManipulationDeferContactService_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectManipulationDeferContactService { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x652d5c71_fe60_4a98_be70_e5f21291e7f1); -} #[repr(C)] #[doc(hidden)] pub struct IDirectManipulationDeferContactService_Vtbl { @@ -204,9 +164,8 @@ pub struct IDirectManipulationDeferContactService_Vtbl { pub CancelContact: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pointerid: u32) -> ::windows_core::HRESULT, pub CancelDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pointerid: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectManipulationDragDropBehavior(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectManipulationDragDropBehavior, IDirectManipulationDragDropBehavior_Vtbl, 0x814b5af5_c2c8_4270_a9b7_a198ce8d02fa); +::windows_core::imp::interface_hierarchy!(IDirectManipulationDragDropBehavior, ::windows_core::IUnknown); impl IDirectManipulationDragDropBehavior { pub unsafe fn SetConfiguration(&self, configuration: DIRECTMANIPULATION_DRAG_DROP_CONFIGURATION) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetConfiguration)(::windows_core::Interface::as_raw(self), configuration).ok() @@ -216,13 +175,6 @@ impl IDirectManipulationDragDropBehavior { (::windows_core::Interface::vtable(self).GetStatus)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDirectManipulationDragDropBehavior, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectManipulationDragDropBehavior { - type Vtable = IDirectManipulationDragDropBehavior_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectManipulationDragDropBehavior { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x814b5af5_c2c8_4270_a9b7_a198ce8d02fa); -} #[repr(C)] #[doc(hidden)] pub struct IDirectManipulationDragDropBehavior_Vtbl { @@ -230,9 +182,8 @@ pub struct IDirectManipulationDragDropBehavior_Vtbl { pub SetConfiguration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, configuration: DIRECTMANIPULATION_DRAG_DROP_CONFIGURATION) -> ::windows_core::HRESULT, pub GetStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, status: *mut DIRECTMANIPULATION_DRAG_DROP_STATUS) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectManipulationDragDropEventHandler(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectManipulationDragDropEventHandler, IDirectManipulationDragDropEventHandler_Vtbl, 0x1fa11b10_701b_41ae_b5f2_49e36bd595aa); +::windows_core::imp::interface_hierarchy!(IDirectManipulationDragDropEventHandler, ::windows_core::IUnknown); impl IDirectManipulationDragDropEventHandler { pub unsafe fn OnDragDropStatusChange(&self, viewport: P0, current: DIRECTMANIPULATION_DRAG_DROP_STATUS, previous: DIRECTMANIPULATION_DRAG_DROP_STATUS) -> ::windows_core::Result<()> where @@ -241,43 +192,27 @@ impl IDirectManipulationDragDropEventHandler { (::windows_core::Interface::vtable(self).OnDragDropStatusChange)(::windows_core::Interface::as_raw(self), viewport.into_param().abi(), current, previous).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectManipulationDragDropEventHandler, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectManipulationDragDropEventHandler { - type Vtable = IDirectManipulationDragDropEventHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectManipulationDragDropEventHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1fa11b10_701b_41ae_b5f2_49e36bd595aa); -} #[repr(C)] #[doc(hidden)] pub struct IDirectManipulationDragDropEventHandler_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnDragDropStatusChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, viewport: *mut ::core::ffi::c_void, current: DIRECTMANIPULATION_DRAG_DROP_STATUS, previous: DIRECTMANIPULATION_DRAG_DROP_STATUS) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectManipulationFrameInfoProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectManipulationFrameInfoProvider, IDirectManipulationFrameInfoProvider_Vtbl, 0xfb759dba_6f4c_4c01_874e_19c8a05907f9); +::windows_core::imp::interface_hierarchy!(IDirectManipulationFrameInfoProvider, ::windows_core::IUnknown); impl IDirectManipulationFrameInfoProvider { pub unsafe fn GetNextFrameInfo(&self, time: *mut u64, processtime: *mut u64, compositiontime: *mut u64) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetNextFrameInfo)(::windows_core::Interface::as_raw(self), time, processtime, compositiontime).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectManipulationFrameInfoProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectManipulationFrameInfoProvider { - type Vtable = IDirectManipulationFrameInfoProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectManipulationFrameInfoProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfb759dba_6f4c_4c01_874e_19c8a05907f9); -} #[repr(C)] #[doc(hidden)] pub struct IDirectManipulationFrameInfoProvider_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetNextFrameInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, time: *mut u64, processtime: *mut u64, compositiontime: *mut u64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectManipulationInteractionEventHandler(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectManipulationInteractionEventHandler, IDirectManipulationInteractionEventHandler_Vtbl, 0xe43f45b8_42b4_403e_b1f2_273b8f510830); +::windows_core::imp::interface_hierarchy!(IDirectManipulationInteractionEventHandler, ::windows_core::IUnknown); impl IDirectManipulationInteractionEventHandler { pub unsafe fn OnInteraction(&self, viewport: P0, interaction: DIRECTMANIPULATION_INTERACTION_TYPE) -> ::windows_core::Result<()> where @@ -286,22 +221,14 @@ impl IDirectManipulationInteractionEventHandler { (::windows_core::Interface::vtable(self).OnInteraction)(::windows_core::Interface::as_raw(self), viewport.into_param().abi(), interaction).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectManipulationInteractionEventHandler, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectManipulationInteractionEventHandler { - type Vtable = IDirectManipulationInteractionEventHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectManipulationInteractionEventHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe43f45b8_42b4_403e_b1f2_273b8f510830); -} #[repr(C)] #[doc(hidden)] pub struct IDirectManipulationInteractionEventHandler_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnInteraction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, viewport: *mut ::core::ffi::c_void, interaction: DIRECTMANIPULATION_INTERACTION_TYPE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectManipulationManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectManipulationManager, IDirectManipulationManager_Vtbl, 0xfbf5d3b4_70c7_4163_9322_5a6f660d6fbc); +::windows_core::imp::interface_hierarchy!(IDirectManipulationManager, ::windows_core::IUnknown); impl IDirectManipulationManager { pub unsafe fn Activate(&self, window: P0) -> ::windows_core::Result<()> where @@ -330,7 +257,7 @@ impl IDirectManipulationManager { } pub unsafe fn GetUpdateManager(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetUpdateManager)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -339,7 +266,7 @@ impl IDirectManipulationManager { where P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -347,19 +274,12 @@ impl IDirectManipulationManager { pub unsafe fn CreateContent(&self, frameinfo: P0, clsid: *const ::windows_core::GUID) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDirectManipulationManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectManipulationManager { - type Vtable = IDirectManipulationManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectManipulationManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfbf5d3b4_70c7_4163_9322_5a6f660d6fbc); -} #[repr(C)] #[doc(hidden)] pub struct IDirectManipulationManager_Vtbl { @@ -375,9 +295,8 @@ pub struct IDirectManipulationManager_Vtbl { pub CreateViewport: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, frameinfo: *mut ::core::ffi::c_void, window: super::super::Foundation::HWND, riid: *const ::windows_core::GUID, object: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateContent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, frameinfo: *mut ::core::ffi::c_void, clsid: *const ::windows_core::GUID, riid: *const ::windows_core::GUID, object: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectManipulationManager2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectManipulationManager2, IDirectManipulationManager2_Vtbl, 0xfa1005e9_3d16_484c_bfc9_62b61e56ec4e); +::windows_core::imp::interface_hierarchy!(IDirectManipulationManager2, ::windows_core::IUnknown, IDirectManipulationManager); impl IDirectManipulationManager2 { pub unsafe fn Activate(&self, window: P0) -> ::windows_core::Result<()> where @@ -406,7 +325,7 @@ impl IDirectManipulationManager2 { } pub unsafe fn GetUpdateManager(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.GetUpdateManager)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -415,7 +334,7 @@ impl IDirectManipulationManager2 { where P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -423,35 +342,27 @@ impl IDirectManipulationManager2 { pub unsafe fn CreateContent(&self, frameinfo: P0, clsid: *const ::windows_core::GUID) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) } pub unsafe fn CreateBehavior(&self, clsid: *const ::windows_core::GUID) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).CreateBehavior)(::windows_core::Interface::as_raw(self), clsid, &T::IID, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDirectManipulationManager2, ::windows_core::IUnknown, IDirectManipulationManager); -unsafe impl ::windows_core::Interface for IDirectManipulationManager2 { - type Vtable = IDirectManipulationManager2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectManipulationManager2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfa1005e9_3d16_484c_bfc9_62b61e56ec4e); -} #[repr(C)] #[doc(hidden)] pub struct IDirectManipulationManager2_Vtbl { pub base__: IDirectManipulationManager_Vtbl, pub CreateBehavior: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, clsid: *const ::windows_core::GUID, riid: *const ::windows_core::GUID, object: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectManipulationManager3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectManipulationManager3, IDirectManipulationManager3_Vtbl, 0x2cb6b33d_ffe8_488c_b750_fbdfe88dca8c); +::windows_core::imp::interface_hierarchy!(IDirectManipulationManager3, ::windows_core::IUnknown, IDirectManipulationManager, IDirectManipulationManager2); impl IDirectManipulationManager3 { pub unsafe fn Activate(&self, window: P0) -> ::windows_core::Result<()> where @@ -480,7 +391,7 @@ impl IDirectManipulationManager3 { } pub unsafe fn GetUpdateManager(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.GetUpdateManager)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -489,7 +400,7 @@ impl IDirectManipulationManager3 { where P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -497,42 +408,34 @@ impl IDirectManipulationManager3 { pub unsafe fn CreateContent(&self, frameinfo: P0, clsid: *const ::windows_core::GUID) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) } pub unsafe fn CreateBehavior(&self, clsid: *const ::windows_core::GUID) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.CreateBehavior)(::windows_core::Interface::as_raw(self), clsid, &T::IID, &mut result__).from_abi(result__) } pub unsafe fn GetService(&self, clsid: *const ::windows_core::GUID) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetService)(::windows_core::Interface::as_raw(self), clsid, &T::IID, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDirectManipulationManager3, ::windows_core::IUnknown, IDirectManipulationManager, IDirectManipulationManager2); -unsafe impl ::windows_core::Interface for IDirectManipulationManager3 { - type Vtable = IDirectManipulationManager3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectManipulationManager3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2cb6b33d_ffe8_488c_b750_fbdfe88dca8c); -} #[repr(C)] #[doc(hidden)] pub struct IDirectManipulationManager3_Vtbl { pub base__: IDirectManipulationManager2_Vtbl, pub GetService: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, clsid: *const ::windows_core::GUID, riid: *const ::windows_core::GUID, object: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectManipulationPrimaryContent(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectManipulationPrimaryContent, IDirectManipulationPrimaryContent_Vtbl, 0xc12851e4_1698_4625_b9b1_7ca3ec18630b); +::windows_core::imp::interface_hierarchy!(IDirectManipulationPrimaryContent, ::windows_core::IUnknown); impl IDirectManipulationPrimaryContent { pub unsafe fn SetSnapInterval(&self, motion: DIRECTMANIPULATION_MOTION_TYPES, interval: f32, offset: f32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetSnapInterval)(::windows_core::Interface::as_raw(self), motion, interval, offset).ok() @@ -562,13 +465,6 @@ impl IDirectManipulationPrimaryContent { (::windows_core::Interface::vtable(self).GetCenterPoint)(::windows_core::Interface::as_raw(self), centerx, centery).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectManipulationPrimaryContent, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectManipulationPrimaryContent { - type Vtable = IDirectManipulationPrimaryContent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectManipulationPrimaryContent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc12851e4_1698_4625_b9b1_7ca3ec18630b); -} #[repr(C)] #[doc(hidden)] pub struct IDirectManipulationPrimaryContent_Vtbl { @@ -583,30 +479,21 @@ pub struct IDirectManipulationPrimaryContent_Vtbl { pub GetInertiaEndTransform: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, matrix: *mut f32, pointcount: u32) -> ::windows_core::HRESULT, pub GetCenterPoint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, centerx: *mut f32, centery: *mut f32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectManipulationUpdateHandler(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectManipulationUpdateHandler, IDirectManipulationUpdateHandler_Vtbl, 0x790b6337_64f8_4ff5_a269_b32bc2af27a7); +::windows_core::imp::interface_hierarchy!(IDirectManipulationUpdateHandler, ::windows_core::IUnknown); impl IDirectManipulationUpdateHandler { pub unsafe fn Update(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Update)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectManipulationUpdateHandler, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectManipulationUpdateHandler { - type Vtable = IDirectManipulationUpdateHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectManipulationUpdateHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x790b6337_64f8_4ff5_a269_b32bc2af27a7); -} #[repr(C)] #[doc(hidden)] pub struct IDirectManipulationUpdateHandler_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Update: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectManipulationUpdateManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectManipulationUpdateManager, IDirectManipulationUpdateManager_Vtbl, 0xb0ae62fd_be34_46e7_9caa_d361facbb9cc); +::windows_core::imp::interface_hierarchy!(IDirectManipulationUpdateManager, ::windows_core::IUnknown); impl IDirectManipulationUpdateManager { pub unsafe fn RegisterWaitHandleCallback(&self, handle: P0, eventhandler: P1) -> ::windows_core::Result where @@ -626,13 +513,6 @@ impl IDirectManipulationUpdateManager { (::windows_core::Interface::vtable(self).Update)(::windows_core::Interface::as_raw(self), frameinfo.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectManipulationUpdateManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectManipulationUpdateManager { - type Vtable = IDirectManipulationUpdateManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectManipulationUpdateManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb0ae62fd_be34_46e7_9caa_d361facbb9cc); -} #[repr(C)] #[doc(hidden)] pub struct IDirectManipulationUpdateManager_Vtbl { @@ -641,9 +521,8 @@ pub struct IDirectManipulationUpdateManager_Vtbl { pub UnregisterWaitHandleCallback: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cookie: u32) -> ::windows_core::HRESULT, pub Update: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, frameinfo: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectManipulationViewport(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectManipulationViewport, IDirectManipulationViewport_Vtbl, 0x28b85a3d_60a0_48bd_9ba1_5ce8d9ea3a6d); +::windows_core::imp::interface_hierarchy!(IDirectManipulationViewport, ::windows_core::IUnknown); impl IDirectManipulationViewport { pub unsafe fn Enable(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Enable)(::windows_core::Interface::as_raw(self)).ok() @@ -666,7 +545,7 @@ impl IDirectManipulationViewport { } pub unsafe fn GetTag(&self, id: ::core::option::Option<*mut u32>, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).GetTag)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _, ::core::mem::transmute(id.unwrap_or(::std::ptr::null_mut()))).ok() } @@ -697,7 +576,7 @@ impl IDirectManipulationViewport { } pub unsafe fn GetPrimaryContent(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetPrimaryContent)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -756,13 +635,6 @@ impl IDirectManipulationViewport { (::windows_core::Interface::vtable(self).Abandon)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectManipulationViewport, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectManipulationViewport { - type Vtable = IDirectManipulationViewport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectManipulationViewport { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x28b85a3d_60a0_48bd_9ba1_5ce8d9ea3a6d); -} #[repr(C)] #[doc(hidden)] pub struct IDirectManipulationViewport_Vtbl { @@ -796,9 +668,8 @@ pub struct IDirectManipulationViewport_Vtbl { pub Stop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Abandon: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectManipulationViewport2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectManipulationViewport2, IDirectManipulationViewport2_Vtbl, 0x923ccaac_61e1_4385_b726_017af189882a); +::windows_core::imp::interface_hierarchy!(IDirectManipulationViewport2, ::windows_core::IUnknown, IDirectManipulationViewport); impl IDirectManipulationViewport2 { pub unsafe fn Enable(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.Enable)(::windows_core::Interface::as_raw(self)).ok() @@ -821,7 +692,7 @@ impl IDirectManipulationViewport2 { } pub unsafe fn GetTag(&self, id: ::core::option::Option<*mut u32>, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.GetTag)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _, ::core::mem::transmute(id.unwrap_or(::std::ptr::null_mut()))).ok() } @@ -852,7 +723,7 @@ impl IDirectManipulationViewport2 { } pub unsafe fn GetPrimaryContent(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.GetPrimaryContent)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -924,13 +795,6 @@ impl IDirectManipulationViewport2 { (::windows_core::Interface::vtable(self).RemoveAllBehaviors)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectManipulationViewport2, ::windows_core::IUnknown, IDirectManipulationViewport); -unsafe impl ::windows_core::Interface for IDirectManipulationViewport2 { - type Vtable = IDirectManipulationViewport2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectManipulationViewport2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x923ccaac_61e1_4385_b726_017af189882a); -} #[repr(C)] #[doc(hidden)] pub struct IDirectManipulationViewport2_Vtbl { @@ -939,9 +803,8 @@ pub struct IDirectManipulationViewport2_Vtbl { pub RemoveBehavior: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cookie: u32) -> ::windows_core::HRESULT, pub RemoveAllBehaviors: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectManipulationViewportEventHandler(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectManipulationViewportEventHandler, IDirectManipulationViewportEventHandler_Vtbl, 0x952121da_d69f_45f9_b0f9_f23944321a6d); +::windows_core::imp::interface_hierarchy!(IDirectManipulationViewportEventHandler, ::windows_core::IUnknown); impl IDirectManipulationViewportEventHandler { pub unsafe fn OnViewportStatusChanged(&self, viewport: P0, current: DIRECTMANIPULATION_STATUS, previous: DIRECTMANIPULATION_STATUS) -> ::windows_core::Result<()> where @@ -963,13 +826,6 @@ impl IDirectManipulationViewportEventHandler { (::windows_core::Interface::vtable(self).OnContentUpdated)(::windows_core::Interface::as_raw(self), viewport.into_param().abi(), content.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectManipulationViewportEventHandler, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectManipulationViewportEventHandler { - type Vtable = IDirectManipulationViewportEventHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectManipulationViewportEventHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x952121da_d69f_45f9_b0f9_f23944321a6d); -} #[repr(C)] #[doc(hidden)] pub struct IDirectManipulationViewportEventHandler_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/DirectWrite/impl.rs b/crates/libs/windows/src/Windows/Win32/Graphics/DirectWrite/impl.rs index dd84e9e15f..26fde53a97 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/DirectWrite/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/DirectWrite/impl.rs @@ -22,7 +22,7 @@ impl IDWriteAsyncResult_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] @@ -101,7 +101,7 @@ impl IDWriteBitmapRenderTarget_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] @@ -132,7 +132,7 @@ impl IDWriteBitmapRenderTarget1_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDWriteColorGlyphRunEnumerator_Impl: Sized { @@ -171,7 +171,7 @@ impl IDWriteColorGlyphRunEnumerator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDWriteColorGlyphRunEnumerator1_Impl: Sized + IDWriteColorGlyphRunEnumerator_Impl { @@ -194,7 +194,7 @@ impl IDWriteColorGlyphRunEnumerator1_Vtbl { Self { base__: IDWriteColorGlyphRunEnumerator_Vtbl::new::(), GetCurrentRun2: GetCurrentRun2:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] @@ -454,7 +454,7 @@ impl IDWriteFactory_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] @@ -491,7 +491,7 @@ impl IDWriteFactory1_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] @@ -573,7 +573,7 @@ impl IDWriteFactory2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] @@ -701,7 +701,7 @@ impl IDWriteFactory3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct2D_Common\"`, `\"Win32_Graphics_Gdi\"`"] @@ -757,7 +757,7 @@ impl IDWriteFactory4_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct2D_Common\"`, `\"Win32_Graphics_Gdi\"`"] @@ -833,7 +833,7 @@ impl IDWriteFactory5_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct2D_Common\"`, `\"Win32_Graphics_Gdi\"`"] @@ -941,7 +941,7 @@ impl IDWriteFactory6_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct2D_Common\"`, `\"Win32_Graphics_Gdi\"`"] @@ -984,7 +984,7 @@ impl IDWriteFactory7_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDWriteFont_Impl: Sized { @@ -1098,7 +1098,7 @@ impl IDWriteFont_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDWriteFont1_Impl: Sized + IDWriteFont_Impl { @@ -1139,7 +1139,7 @@ impl IDWriteFont1_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDWriteFont2_Impl: Sized + IDWriteFont1_Impl { @@ -1156,7 +1156,7 @@ impl IDWriteFont2_Vtbl { Self { base__: IDWriteFont1_Vtbl::new::(), IsColorFont: IsColorFont:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDWriteFont3_Impl: Sized + IDWriteFont2_Impl { @@ -1216,7 +1216,7 @@ impl IDWriteFont3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDWriteFontCollection_Impl: Sized { @@ -1269,7 +1269,7 @@ impl IDWriteFontCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDWriteFontCollection1_Impl: Sized + IDWriteFontCollection_Impl { @@ -1308,7 +1308,7 @@ impl IDWriteFontCollection1_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDWriteFontCollection2_Impl: Sized + IDWriteFontCollection1_Impl { @@ -1367,7 +1367,7 @@ impl IDWriteFontCollection2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDWriteFontCollection3_Impl: Sized + IDWriteFontCollection2_Impl { @@ -1384,7 +1384,7 @@ impl IDWriteFontCollection3_Vtbl { Self { base__: IDWriteFontCollection2_Vtbl::new::(), GetExpirationEvent: GetExpirationEvent:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDWriteFontCollectionLoader_Impl: Sized { @@ -1407,7 +1407,7 @@ impl IDWriteFontCollectionLoader_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CreateEnumeratorFromKey: CreateEnumeratorFromKey:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDWriteFontDownloadListener_Impl: Sized { @@ -1424,7 +1424,7 @@ impl IDWriteFontDownloadListener_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), DownloadCompleted: DownloadCompleted:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDWriteFontDownloadQueue_Impl: Sized { @@ -1485,7 +1485,7 @@ impl IDWriteFontDownloadQueue_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct2D_Common\"`"] @@ -1613,7 +1613,7 @@ impl IDWriteFontFace_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct2D_Common\"`"] @@ -1720,7 +1720,7 @@ impl IDWriteFontFace1_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct2D_Common\"`"] @@ -1772,7 +1772,7 @@ impl IDWriteFontFace2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct2D_Common\"`"] @@ -1917,7 +1917,7 @@ impl IDWriteFontFace3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct2D_Common\"`"] @@ -1968,7 +1968,7 @@ impl IDWriteFontFace4_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct2D_Common\"`"] @@ -2026,7 +2026,7 @@ impl IDWriteFontFace5_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct2D_Common\"`"] @@ -2069,7 +2069,7 @@ impl IDWriteFontFace6_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDWriteFontFaceReference_Impl: Sized { @@ -2204,7 +2204,7 @@ impl IDWriteFontFaceReference_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDWriteFontFaceReference1_Impl: Sized + IDWriteFontFaceReference_Impl { @@ -2244,7 +2244,7 @@ impl IDWriteFontFaceReference1_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDWriteFontFallback_Impl: Sized { @@ -2274,7 +2274,7 @@ impl IDWriteFontFallback_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), MapCharacters: MapCharacters:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDWriteFontFallback1_Impl: Sized + IDWriteFontFallback_Impl { @@ -2292,7 +2292,7 @@ impl IDWriteFontFallback1_Vtbl { Self { base__: IDWriteFontFallback_Vtbl::new::(), MapCharacters2: MapCharacters2:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDWriteFontFallbackBuilder_Impl: Sized { @@ -2332,7 +2332,7 @@ impl IDWriteFontFallbackBuilder_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDWriteFontFamily_Impl: Sized + IDWriteFontList_Impl { @@ -2384,7 +2384,7 @@ impl IDWriteFontFamily_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDWriteFontFamily1_Impl: Sized + IDWriteFontFamily_Impl { @@ -2430,7 +2430,7 @@ impl IDWriteFontFamily1_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDWriteFontFamily2_Impl: Sized + IDWriteFontFamily1_Impl { @@ -2469,7 +2469,7 @@ impl IDWriteFontFamily2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDWriteFontFile_Impl: Sized { @@ -2509,7 +2509,7 @@ impl IDWriteFontFile_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDWriteFontFileEnumerator_Impl: Sized { @@ -2548,7 +2548,7 @@ impl IDWriteFontFileEnumerator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDWriteFontFileLoader_Impl: Sized { @@ -2571,7 +2571,7 @@ impl IDWriteFontFileLoader_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CreateStreamFromKey: CreateStreamFromKey:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDWriteFontFileStream_Impl: Sized { @@ -2624,7 +2624,7 @@ impl IDWriteFontFileStream_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDWriteFontList_Impl: Sized { @@ -2670,7 +2670,7 @@ impl IDWriteFontList_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDWriteFontList1_Impl: Sized + IDWriteFontList_Impl { @@ -2716,7 +2716,7 @@ impl IDWriteFontList1_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDWriteFontList2_Impl: Sized + IDWriteFontList1_Impl { @@ -2739,7 +2739,7 @@ impl IDWriteFontList2_Vtbl { Self { base__: IDWriteFontList1_Vtbl::new::(), GetFontSet: GetFontSet:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDWriteFontResource_Impl: Sized { @@ -2860,7 +2860,7 @@ impl IDWriteFontResource_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDWriteFontSet_Impl: Sized { @@ -2979,7 +2979,7 @@ impl IDWriteFontSet_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDWriteFontSet1_Impl: Sized + IDWriteFontSet_Impl { @@ -3131,7 +3131,7 @@ impl IDWriteFontSet1_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDWriteFontSet2_Impl: Sized + IDWriteFontSet1_Impl { @@ -3148,7 +3148,7 @@ impl IDWriteFontSet2_Vtbl { Self { base__: IDWriteFontSet1_Vtbl::new::(), GetExpirationEvent: GetExpirationEvent:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDWriteFontSet3_Impl: Sized + IDWriteFontSet2_Impl { @@ -3182,7 +3182,7 @@ impl IDWriteFontSet3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDWriteFontSet4_Impl: Sized + IDWriteFontSet3_Impl { @@ -3215,7 +3215,7 @@ impl IDWriteFontSet4_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDWriteFontSetBuilder_Impl: Sized { @@ -3262,7 +3262,7 @@ impl IDWriteFontSetBuilder_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDWriteFontSetBuilder1_Impl: Sized + IDWriteFontSetBuilder_Impl { @@ -3279,7 +3279,7 @@ impl IDWriteFontSetBuilder1_Vtbl { Self { base__: IDWriteFontSetBuilder_Vtbl::new::(), AddFontFile: AddFontFile:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDWriteFontSetBuilder2_Impl: Sized + IDWriteFontSetBuilder1_Impl { @@ -3306,7 +3306,7 @@ impl IDWriteFontSetBuilder2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] @@ -3376,7 +3376,7 @@ impl IDWriteGdiInterop_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Globalization\"`, `\"Win32_Graphics_Gdi\"`"] @@ -3433,7 +3433,7 @@ impl IDWriteGdiInterop1_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDWriteGlyphRunAnalysis_Impl: Sized { @@ -3473,7 +3473,7 @@ impl IDWriteGlyphRunAnalysis_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDWriteInMemoryFontFileLoader_Impl: Sized + IDWriteFontFileLoader_Impl { @@ -3506,7 +3506,7 @@ impl IDWriteInMemoryFontFileLoader_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDWriteInlineObject_Impl: Sized { @@ -3559,7 +3559,7 @@ impl IDWriteInlineObject_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDWriteLocalFontFileLoader_Impl: Sized + IDWriteFontFileLoader_Impl { @@ -3605,7 +3605,7 @@ impl IDWriteLocalFontFileLoader_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDWriteLocalizedStrings_Impl: Sized { @@ -3672,7 +3672,7 @@ impl IDWriteLocalizedStrings_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDWriteNumberSubstitution_Impl: Sized {} @@ -3682,7 +3682,7 @@ impl IDWriteNumberSubstitution_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDWritePixelSnapping_Impl: Sized { @@ -3728,7 +3728,7 @@ impl IDWritePixelSnapping_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDWriteRemoteFontFileLoader_Impl: Sized + IDWriteFontFileLoader_Impl { @@ -3780,7 +3780,7 @@ impl IDWriteRemoteFontFileLoader_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDWriteRemoteFontFileStream_Impl: Sized + IDWriteFontFileStream_Impl { @@ -3833,7 +3833,7 @@ impl IDWriteRemoteFontFileStream_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDWriteRenderingParams_Impl: Sized { @@ -3881,7 +3881,7 @@ impl IDWriteRenderingParams_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDWriteRenderingParams1_Impl: Sized + IDWriteRenderingParams_Impl { @@ -3901,7 +3901,7 @@ impl IDWriteRenderingParams1_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDWriteRenderingParams2_Impl: Sized + IDWriteRenderingParams1_Impl { @@ -3918,7 +3918,7 @@ impl IDWriteRenderingParams2_Vtbl { Self { base__: IDWriteRenderingParams1_Vtbl::new::(), GetGridFitMode: GetGridFitMode:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDWriteRenderingParams3_Impl: Sized + IDWriteRenderingParams2_Impl { @@ -3935,7 +3935,7 @@ impl IDWriteRenderingParams3_Vtbl { Self { base__: IDWriteRenderingParams2_Vtbl::new::(), GetRenderingMode1: GetRenderingMode1:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDWriteStringList_Impl: Sized { @@ -3995,7 +3995,7 @@ impl IDWriteStringList_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDWriteTextAnalysisSink_Impl: Sized { @@ -4036,7 +4036,7 @@ impl IDWriteTextAnalysisSink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDWriteTextAnalysisSink1_Impl: Sized + IDWriteTextAnalysisSink_Impl { @@ -4053,7 +4053,7 @@ impl IDWriteTextAnalysisSink1_Vtbl { Self { base__: IDWriteTextAnalysisSink_Vtbl::new::(), SetGlyphOrientation: SetGlyphOrientation:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDWriteTextAnalysisSource_Impl: Sized { @@ -4101,7 +4101,7 @@ impl IDWriteTextAnalysisSource_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDWriteTextAnalysisSource1_Impl: Sized + IDWriteTextAnalysisSource_Impl { @@ -4121,7 +4121,7 @@ impl IDWriteTextAnalysisSource1_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDWriteTextAnalyzer_Impl: Sized { @@ -4330,7 +4330,7 @@ impl IDWriteTextAnalyzer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDWriteTextAnalyzer1_Impl: Sized + IDWriteTextAnalyzer_Impl { @@ -4438,7 +4438,7 @@ impl IDWriteTextAnalyzer1_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDWriteTextAnalyzer2_Impl: Sized + IDWriteTextAnalyzer1_Impl { @@ -4472,7 +4472,7 @@ impl IDWriteTextAnalyzer2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDWriteTextFormat_Impl: Sized { @@ -4666,7 +4666,7 @@ impl IDWriteTextFormat_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDWriteTextFormat1_Impl: Sized + IDWriteTextFormat_Impl { @@ -4741,7 +4741,7 @@ impl IDWriteTextFormat1_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDWriteTextFormat2_Impl: Sized + IDWriteTextFormat1_Impl { @@ -4768,7 +4768,7 @@ impl IDWriteTextFormat2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDWriteTextFormat3_Impl: Sized + IDWriteTextFormat2_Impl { @@ -4816,7 +4816,7 @@ impl IDWriteTextFormat3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDWriteTextLayout_Impl: Sized + IDWriteTextFormat_Impl { @@ -5114,7 +5114,7 @@ impl IDWriteTextLayout_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDWriteTextLayout1_Impl: Sized + IDWriteTextLayout_Impl { @@ -5155,7 +5155,7 @@ impl IDWriteTextLayout1_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDWriteTextLayout2_Impl: Sized + IDWriteTextLayout1_Impl { @@ -5237,7 +5237,7 @@ impl IDWriteTextLayout2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDWriteTextLayout3_Impl: Sized + IDWriteTextLayout2_Impl { @@ -5278,7 +5278,7 @@ impl IDWriteTextLayout3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDWriteTextLayout4_Impl: Sized + IDWriteTextLayout3_Impl { @@ -5326,7 +5326,7 @@ impl IDWriteTextLayout4_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDWriteTextRenderer_Impl: Sized + IDWritePixelSnapping_Impl { @@ -5367,7 +5367,7 @@ impl IDWriteTextRenderer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDWriteTextRenderer1_Impl: Sized + IDWriteTextRenderer_Impl { @@ -5408,7 +5408,7 @@ impl IDWriteTextRenderer1_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDWriteTypography_Impl: Sized { @@ -5448,6 +5448,6 @@ impl IDWriteTypography_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 9b3b51d676..2b05c2c57c 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/DirectWrite/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/DirectWrite/mod.rs @@ -1,15 +1,14 @@ #[inline] pub unsafe fn DWriteCreateFactory(factorytype: DWRITE_FACTORY_TYPE) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { ::windows_targets::link!("dwrite.dll" "system" fn DWriteCreateFactory(factorytype : DWRITE_FACTORY_TYPE, iid : *const ::windows_core::GUID, factory : *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT); let mut result__ = ::std::ptr::null_mut(); DWriteCreateFactory(factorytype, &T::IID, &mut result__).from_abi(result__) } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteAsyncResult(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteAsyncResult, IDWriteAsyncResult_Vtbl, 0xce25f8fd_863b_4d13_9651_c1f88dc73fe2); +::windows_core::imp::interface_hierarchy!(IDWriteAsyncResult, ::windows_core::IUnknown); impl IDWriteAsyncResult { pub unsafe fn GetWaitHandle(&self) -> super::super::Foundation::HANDLE { (::windows_core::Interface::vtable(self).GetWaitHandle)(::windows_core::Interface::as_raw(self)) @@ -18,15 +17,8 @@ impl IDWriteAsyncResult { (::windows_core::Interface::vtable(self).GetResult)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IDWriteAsyncResult, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for IDWriteAsyncResult {} unsafe impl ::core::marker::Sync for IDWriteAsyncResult {} -unsafe impl ::windows_core::Interface for IDWriteAsyncResult { - type Vtable = IDWriteAsyncResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteAsyncResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xce25f8fd_863b_4d13_9651_c1f88dc73fe2); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteAsyncResult_Vtbl { @@ -34,9 +26,8 @@ pub struct IDWriteAsyncResult_Vtbl { pub GetWaitHandle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> super::super::Foundation::HANDLE, pub GetResult: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteBitmapRenderTarget(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteBitmapRenderTarget, IDWriteBitmapRenderTarget_Vtbl, 0x5e5a32a3_8dff_4773_9ff6_0696eab77267); +::windows_core::imp::interface_hierarchy!(IDWriteBitmapRenderTarget, ::windows_core::IUnknown); 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: ::core::option::Option<*mut super::super::Foundation::RECT>) -> ::windows_core::Result<()> where @@ -70,15 +61,8 @@ impl IDWriteBitmapRenderTarget { (::windows_core::Interface::vtable(self).Resize)(::windows_core::Interface::as_raw(self), width, height).ok() } } -::windows_core::imp::interface_hierarchy!(IDWriteBitmapRenderTarget, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for IDWriteBitmapRenderTarget {} unsafe impl ::core::marker::Sync for IDWriteBitmapRenderTarget {} -unsafe impl ::windows_core::Interface for IDWriteBitmapRenderTarget { - type Vtable = IDWriteBitmapRenderTarget_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteBitmapRenderTarget { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5e5a32a3_8dff_4773_9ff6_0696eab77267); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteBitmapRenderTarget_Vtbl { @@ -95,9 +79,8 @@ pub struct IDWriteBitmapRenderTarget_Vtbl { pub GetSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, size: *mut super::super::Foundation::SIZE) -> ::windows_core::HRESULT, pub Resize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, width: u32, height: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteBitmapRenderTarget1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteBitmapRenderTarget1, IDWriteBitmapRenderTarget1_Vtbl, 0x791e8298_3ef3_4230_9880_c9bdecc42064); +::windows_core::imp::interface_hierarchy!(IDWriteBitmapRenderTarget1, ::windows_core::IUnknown, IDWriteBitmapRenderTarget); 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: ::core::option::Option<*mut super::super::Foundation::RECT>) -> ::windows_core::Result<()> where @@ -137,15 +120,8 @@ impl IDWriteBitmapRenderTarget1 { (::windows_core::Interface::vtable(self).SetTextAntialiasMode)(::windows_core::Interface::as_raw(self), antialiasmode).ok() } } -::windows_core::imp::interface_hierarchy!(IDWriteBitmapRenderTarget1, ::windows_core::IUnknown, IDWriteBitmapRenderTarget); unsafe impl ::core::marker::Send for IDWriteBitmapRenderTarget1 {} unsafe impl ::core::marker::Sync for IDWriteBitmapRenderTarget1 {} -unsafe impl ::windows_core::Interface for IDWriteBitmapRenderTarget1 { - type Vtable = IDWriteBitmapRenderTarget1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteBitmapRenderTarget1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x791e8298_3ef3_4230_9880_c9bdecc42064); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteBitmapRenderTarget1_Vtbl { @@ -153,9 +129,8 @@ pub struct IDWriteBitmapRenderTarget1_Vtbl { pub GetTextAntialiasMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> DWRITE_TEXT_ANTIALIAS_MODE, pub SetTextAntialiasMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, antialiasmode: DWRITE_TEXT_ANTIALIAS_MODE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteColorGlyphRunEnumerator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteColorGlyphRunEnumerator, IDWriteColorGlyphRunEnumerator_Vtbl, 0xd31fbe17_f157_41a2_8d24_cb779e0560e8); +::windows_core::imp::interface_hierarchy!(IDWriteColorGlyphRunEnumerator, ::windows_core::IUnknown); impl IDWriteColorGlyphRunEnumerator { pub unsafe fn MoveNext(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -166,15 +141,8 @@ impl IDWriteColorGlyphRunEnumerator { (::windows_core::Interface::vtable(self).GetCurrentRun)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDWriteColorGlyphRunEnumerator, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for IDWriteColorGlyphRunEnumerator {} unsafe impl ::core::marker::Sync for IDWriteColorGlyphRunEnumerator {} -unsafe impl ::windows_core::Interface for IDWriteColorGlyphRunEnumerator { - type Vtable = IDWriteColorGlyphRunEnumerator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteColorGlyphRunEnumerator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd31fbe17_f157_41a2_8d24_cb779e0560e8); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteColorGlyphRunEnumerator_Vtbl { @@ -182,9 +150,8 @@ pub struct IDWriteColorGlyphRunEnumerator_Vtbl { pub MoveNext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hasrun: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub GetCurrentRun: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, colorglyphrun: *mut *mut DWRITE_COLOR_GLYPH_RUN) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteColorGlyphRunEnumerator1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteColorGlyphRunEnumerator1, IDWriteColorGlyphRunEnumerator1_Vtbl, 0x7c5f86da_c7a1_4f05_b8e1_55a179fe5a35); +::windows_core::imp::interface_hierarchy!(IDWriteColorGlyphRunEnumerator1, ::windows_core::IUnknown, IDWriteColorGlyphRunEnumerator); impl IDWriteColorGlyphRunEnumerator1 { pub unsafe fn MoveNext(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -199,24 +166,16 @@ impl IDWriteColorGlyphRunEnumerator1 { (::windows_core::Interface::vtable(self).GetCurrentRun2)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDWriteColorGlyphRunEnumerator1, ::windows_core::IUnknown, IDWriteColorGlyphRunEnumerator); unsafe impl ::core::marker::Send for IDWriteColorGlyphRunEnumerator1 {} unsafe impl ::core::marker::Sync for IDWriteColorGlyphRunEnumerator1 {} -unsafe impl ::windows_core::Interface for IDWriteColorGlyphRunEnumerator1 { - type Vtable = IDWriteColorGlyphRunEnumerator1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteColorGlyphRunEnumerator1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7c5f86da_c7a1_4f05_b8e1_55a179fe5a35); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteColorGlyphRunEnumerator1_Vtbl { pub base__: IDWriteColorGlyphRunEnumerator_Vtbl, pub GetCurrentRun2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, colorglyphrun: *mut *mut DWRITE_COLOR_GLYPH_RUN1) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteFactory, IDWriteFactory_Vtbl, 0xb859ee5a_d838_4b5b_a2e8_1adc7d93db48); +::windows_core::imp::interface_hierarchy!(IDWriteFactory, ::windows_core::IUnknown); impl IDWriteFactory { pub unsafe fn GetSystemFontCollection(&self, fontcollection: *mut ::core::option::Option, checkforupdates: P0) -> ::windows_core::Result<()> where @@ -346,15 +305,8 @@ impl IDWriteFactory { (::windows_core::Interface::vtable(self).CreateGlyphRunAnalysis)(::windows_core::Interface::as_raw(self), glyphrun, pixelsperdip, ::core::mem::transmute(transform.unwrap_or(::std::ptr::null())), renderingmode, measuringmode, baselineoriginx, baselineoriginy, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDWriteFactory, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for IDWriteFactory {} unsafe impl ::core::marker::Sync for IDWriteFactory {} -unsafe impl ::windows_core::Interface for IDWriteFactory { - type Vtable = IDWriteFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb859ee5a_d838_4b5b_a2e8_1adc7d93db48); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteFactory_Vtbl { @@ -384,9 +336,8 @@ pub struct IDWriteFactory_Vtbl { pub CreateNumberSubstitution: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, substitutionmethod: DWRITE_NUMBER_SUBSTITUTION_METHOD, localename: ::windows_core::PCWSTR, ignoreuseroverride: super::super::Foundation::BOOL, numbersubstitution: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateGlyphRunAnalysis: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, glyphrun: *const DWRITE_GLYPH_RUN, pixelsperdip: f32, transform: *const DWRITE_MATRIX, renderingmode: DWRITE_RENDERING_MODE, measuringmode: DWRITE_MEASURING_MODE, baselineoriginx: f32, baselineoriginy: f32, glyphrunanalysis: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteFactory1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteFactory1, IDWriteFactory1_Vtbl, 0x30572f99_dac6_41db_a16e_0486307e606a); +::windows_core::imp::interface_hierarchy!(IDWriteFactory1, ::windows_core::IUnknown, IDWriteFactory); impl IDWriteFactory1 { pub unsafe fn GetSystemFontCollection(&self, fontcollection: *mut ::core::option::Option, checkforupdates: P0) -> ::windows_core::Result<()> where @@ -526,15 +477,8 @@ impl IDWriteFactory1 { (::windows_core::Interface::vtable(self).CreateCustomRenderingParams2)(::windows_core::Interface::as_raw(self), gamma, enhancedcontrast, enhancedcontrastgrayscale, cleartypelevel, pixelgeometry, renderingmode, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDWriteFactory1, ::windows_core::IUnknown, IDWriteFactory); unsafe impl ::core::marker::Send for IDWriteFactory1 {} unsafe impl ::core::marker::Sync for IDWriteFactory1 {} -unsafe impl ::windows_core::Interface for IDWriteFactory1 { - type Vtable = IDWriteFactory1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteFactory1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x30572f99_dac6_41db_a16e_0486307e606a); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteFactory1_Vtbl { @@ -542,9 +486,8 @@ pub struct IDWriteFactory1_Vtbl { pub GetEudcFontCollection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fontcollection: *mut *mut ::core::ffi::c_void, checkforupdates: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub CreateCustomRenderingParams2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, gamma: f32, enhancedcontrast: f32, enhancedcontrastgrayscale: f32, cleartypelevel: f32, pixelgeometry: DWRITE_PIXEL_GEOMETRY, renderingmode: DWRITE_RENDERING_MODE, renderingparams: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteFactory2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteFactory2, IDWriteFactory2_Vtbl, 0x0439fc60_ca44_4994_8dee_3a9af7b732ec); +::windows_core::imp::interface_hierarchy!(IDWriteFactory2, ::windows_core::IUnknown, IDWriteFactory, IDWriteFactory1); impl IDWriteFactory2 { pub unsafe fn GetSystemFontCollection(&self, fontcollection: *mut ::core::option::Option, checkforupdates: P0) -> ::windows_core::Result<()> where @@ -704,15 +647,8 @@ impl IDWriteFactory2 { (::windows_core::Interface::vtable(self).CreateGlyphRunAnalysis2)(::windows_core::Interface::as_raw(self), glyphrun, ::core::mem::transmute(transform.unwrap_or(::std::ptr::null())), renderingmode, measuringmode, gridfitmode, antialiasmode, baselineoriginx, baselineoriginy, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDWriteFactory2, ::windows_core::IUnknown, IDWriteFactory, IDWriteFactory1); unsafe impl ::core::marker::Send for IDWriteFactory2 {} unsafe impl ::core::marker::Sync for IDWriteFactory2 {} -unsafe impl ::windows_core::Interface for IDWriteFactory2 { - type Vtable = IDWriteFactory2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteFactory2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0439fc60_ca44_4994_8dee_3a9af7b732ec); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteFactory2_Vtbl { @@ -723,9 +659,8 @@ pub struct IDWriteFactory2_Vtbl { pub CreateCustomRenderingParams3: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, gamma: f32, enhancedcontrast: f32, grayscaleenhancedcontrast: f32, cleartypelevel: f32, pixelgeometry: DWRITE_PIXEL_GEOMETRY, renderingmode: DWRITE_RENDERING_MODE, gridfitmode: DWRITE_GRID_FIT_MODE, renderingparams: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateGlyphRunAnalysis2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, glyphrun: *const DWRITE_GLYPH_RUN, transform: *const DWRITE_MATRIX, renderingmode: DWRITE_RENDERING_MODE, measuringmode: DWRITE_MEASURING_MODE, gridfitmode: DWRITE_GRID_FIT_MODE, antialiasmode: DWRITE_TEXT_ANTIALIAS_MODE, baselineoriginx: f32, baselineoriginy: f32, glyphrunanalysis: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteFactory3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteFactory3, IDWriteFactory3_Vtbl, 0x9a1b41c3_d3bb_466a_87fc_fe67556a3b65); +::windows_core::imp::interface_hierarchy!(IDWriteFactory3, ::windows_core::IUnknown, IDWriteFactory, IDWriteFactory1, IDWriteFactory2); impl IDWriteFactory3 { pub unsafe fn GetSystemFontCollection(&self, fontcollection: *mut ::core::option::Option, checkforupdates: P0) -> ::windows_core::Result<()> where @@ -933,15 +868,8 @@ impl IDWriteFactory3 { (::windows_core::Interface::vtable(self).GetFontDownloadQueue)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDWriteFactory3, ::windows_core::IUnknown, IDWriteFactory, IDWriteFactory1, IDWriteFactory2); unsafe impl ::core::marker::Send for IDWriteFactory3 {} unsafe impl ::core::marker::Sync for IDWriteFactory3 {} -unsafe impl ::windows_core::Interface for IDWriteFactory3 { - type Vtable = IDWriteFactory3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteFactory3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9a1b41c3_d3bb_466a_87fc_fe67556a3b65); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteFactory3_Vtbl { @@ -956,9 +884,8 @@ pub struct IDWriteFactory3_Vtbl { pub GetSystemFontCollection2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, includedownloadablefonts: super::super::Foundation::BOOL, fontcollection: *mut *mut ::core::ffi::c_void, checkforupdates: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub GetFontDownloadQueue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fontdownloadqueue: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteFactory4(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteFactory4, IDWriteFactory4_Vtbl, 0x4b0b5bd3_0797_4549_8ac5_fe915cc53856); +::windows_core::imp::interface_hierarchy!(IDWriteFactory4, ::windows_core::IUnknown, IDWriteFactory, IDWriteFactory1, IDWriteFactory2, IDWriteFactory3); impl IDWriteFactory4 { pub unsafe fn GetSystemFontCollection(&self, fontcollection: *mut ::core::option::Option, checkforupdates: P0) -> ::windows_core::Result<()> where @@ -1184,15 +1111,8 @@ impl IDWriteFactory4 { (::windows_core::Interface::vtable(self).ComputeGlyphOrigins2)(::windows_core::Interface::as_raw(self), glyphrun, measuringmode, ::core::mem::transmute(baselineorigin), ::core::mem::transmute(worldanddpitransform.unwrap_or(::std::ptr::null())), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDWriteFactory4, ::windows_core::IUnknown, IDWriteFactory, IDWriteFactory1, IDWriteFactory2, IDWriteFactory3); unsafe impl ::core::marker::Send for IDWriteFactory4 {} unsafe impl ::core::marker::Sync for IDWriteFactory4 {} -unsafe impl ::windows_core::Interface for IDWriteFactory4 { - type Vtable = IDWriteFactory4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteFactory4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4b0b5bd3_0797_4549_8ac5_fe915cc53856); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteFactory4_Vtbl { @@ -1210,9 +1130,8 @@ pub struct IDWriteFactory4_Vtbl { #[cfg(not(feature = "Win32_Graphics_Direct2D_Common"))] ComputeGlyphOrigins2: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteFactory5(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteFactory5, IDWriteFactory5_Vtbl, 0x958db99a_be2a_4f09_af7d_65189803d1d3); +::windows_core::imp::interface_hierarchy!(IDWriteFactory5, ::windows_core::IUnknown, IDWriteFactory, IDWriteFactory1, IDWriteFactory2, IDWriteFactory3, IDWriteFactory4); impl IDWriteFactory5 { pub unsafe fn GetSystemFontCollection(&self, fontcollection: *mut ::core::option::Option, checkforupdates: P0) -> ::windows_core::Result<()> where @@ -1461,15 +1380,8 @@ impl IDWriteFactory5 { (::windows_core::Interface::vtable(self).UnpackFontFile)(::windows_core::Interface::as_raw(self), containertype, filedata, filedatasize, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDWriteFactory5, ::windows_core::IUnknown, IDWriteFactory, IDWriteFactory1, IDWriteFactory2, IDWriteFactory3, IDWriteFactory4); unsafe impl ::core::marker::Send for IDWriteFactory5 {} unsafe impl ::core::marker::Sync for IDWriteFactory5 {} -unsafe impl ::windows_core::Interface for IDWriteFactory5 { - type Vtable = IDWriteFactory5_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteFactory5 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x958db99a_be2a_4f09_af7d_65189803d1d3); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteFactory5_Vtbl { @@ -1480,9 +1392,8 @@ pub struct IDWriteFactory5_Vtbl { pub AnalyzeContainerType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filedata: *const ::core::ffi::c_void, filedatasize: u32) -> DWRITE_CONTAINER_TYPE, pub UnpackFontFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, containertype: DWRITE_CONTAINER_TYPE, filedata: *const ::core::ffi::c_void, filedatasize: u32, unpackedfontstream: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteFactory6(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteFactory6, IDWriteFactory6_Vtbl, 0xf3744d80_21f7_42eb_b35d_995bc72fc223); +::windows_core::imp::interface_hierarchy!(IDWriteFactory6, ::windows_core::IUnknown, IDWriteFactory, IDWriteFactory1, IDWriteFactory2, IDWriteFactory3, IDWriteFactory4, IDWriteFactory5); impl IDWriteFactory6 { pub unsafe fn GetSystemFontCollection(&self, fontcollection: *mut ::core::option::Option, checkforupdates: P0) -> ::windows_core::Result<()> where @@ -1779,15 +1690,8 @@ impl IDWriteFactory6 { (::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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDWriteFactory6, ::windows_core::IUnknown, IDWriteFactory, IDWriteFactory1, IDWriteFactory2, IDWriteFactory3, IDWriteFactory4, IDWriteFactory5); unsafe impl ::core::marker::Send for IDWriteFactory6 {} unsafe impl ::core::marker::Sync for IDWriteFactory6 {} -unsafe impl ::windows_core::Interface for IDWriteFactory6 { - type Vtable = IDWriteFactory6_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteFactory6 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf3744d80_21f7_42eb_b35d_995bc72fc223); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteFactory6_Vtbl { @@ -1800,9 +1704,8 @@ pub struct IDWriteFactory6_Vtbl { pub CreateFontSetBuilder3: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fontsetbuilder: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateTextFormat2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fontfamilyname: ::windows_core::PCWSTR, fontcollection: *mut ::core::ffi::c_void, fontaxisvalues: *const DWRITE_FONT_AXIS_VALUE, fontaxisvaluecount: u32, fontsize: f32, localename: ::windows_core::PCWSTR, textformat: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteFactory7(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteFactory7, IDWriteFactory7_Vtbl, 0x35d0e0b3_9076_4d2e_a016_a91b568a06b4); +::windows_core::imp::interface_hierarchy!(IDWriteFactory7, ::windows_core::IUnknown, IDWriteFactory, IDWriteFactory1, IDWriteFactory2, IDWriteFactory3, IDWriteFactory4, IDWriteFactory5, IDWriteFactory6); impl IDWriteFactory7 { pub unsafe fn GetSystemFontCollection(&self, fontcollection: *mut ::core::option::Option, checkforupdates: P0) -> ::windows_core::Result<()> where @@ -2113,15 +2016,8 @@ impl IDWriteFactory7 { (::windows_core::Interface::vtable(self).GetSystemFontCollection4)(::windows_core::Interface::as_raw(self), includedownloadablefonts.into_param().abi(), fontfamilymodel, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDWriteFactory7, ::windows_core::IUnknown, IDWriteFactory, IDWriteFactory1, IDWriteFactory2, IDWriteFactory3, IDWriteFactory4, IDWriteFactory5, IDWriteFactory6); unsafe impl ::core::marker::Send for IDWriteFactory7 {} unsafe impl ::core::marker::Sync for IDWriteFactory7 {} -unsafe impl ::windows_core::Interface for IDWriteFactory7 { - type Vtable = IDWriteFactory7_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteFactory7 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x35d0e0b3_9076_4d2e_a016_a91b568a06b4); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteFactory7_Vtbl { @@ -2129,9 +2025,8 @@ pub struct IDWriteFactory7_Vtbl { pub GetSystemFontSet3: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, includedownloadablefonts: super::super::Foundation::BOOL, fontset: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetSystemFontCollection4: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, includedownloadablefonts: super::super::Foundation::BOOL, fontfamilymodel: DWRITE_FONT_FAMILY_MODEL, fontcollection: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteFont(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteFont, IDWriteFont_Vtbl, 0xacd16696_8c14_4f5d_877e_fe3fc1d32737); +::windows_core::imp::interface_hierarchy!(IDWriteFont, ::windows_core::IUnknown); impl IDWriteFont { pub unsafe fn GetFontFamily(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2171,15 +2066,8 @@ impl IDWriteFont { (::windows_core::Interface::vtable(self).CreateFontFace)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDWriteFont, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for IDWriteFont {} unsafe impl ::core::marker::Sync for IDWriteFont {} -unsafe impl ::windows_core::Interface for IDWriteFont { - type Vtable = IDWriteFont_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteFont { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xacd16696_8c14_4f5d_877e_fe3fc1d32737); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteFont_Vtbl { @@ -2196,9 +2084,8 @@ pub struct IDWriteFont_Vtbl { pub HasCharacter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, unicodevalue: u32, exists: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub CreateFontFace: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fontface: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteFont1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteFont1, IDWriteFont1_Vtbl, 0xacd16696_8c14_4f5d_877e_fe3fc1d32738); +::windows_core::imp::interface_hierarchy!(IDWriteFont1, ::windows_core::IUnknown, IDWriteFont); impl IDWriteFont1 { pub unsafe fn GetFontFamily(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2252,15 +2139,8 @@ impl IDWriteFont1 { (::windows_core::Interface::vtable(self).IsMonospacedFont)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(IDWriteFont1, ::windows_core::IUnknown, IDWriteFont); unsafe impl ::core::marker::Send for IDWriteFont1 {} unsafe impl ::core::marker::Sync for IDWriteFont1 {} -unsafe impl ::windows_core::Interface for IDWriteFont1 { - type Vtable = IDWriteFont1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteFont1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xacd16696_8c14_4f5d_877e_fe3fc1d32738); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteFont1_Vtbl { @@ -2270,9 +2150,8 @@ pub struct IDWriteFont1_Vtbl { pub GetUnicodeRanges: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, maxrangecount: u32, unicoderanges: *mut DWRITE_UNICODE_RANGE, actualrangecount: *mut u32) -> ::windows_core::HRESULT, pub IsMonospacedFont: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteFont2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteFont2, IDWriteFont2_Vtbl, 0x29748ed6_8c9c_4a6a_be0b_d912e8538944); +::windows_core::imp::interface_hierarchy!(IDWriteFont2, ::windows_core::IUnknown, IDWriteFont, IDWriteFont1); impl IDWriteFont2 { pub unsafe fn GetFontFamily(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2329,24 +2208,16 @@ impl IDWriteFont2 { (::windows_core::Interface::vtable(self).IsColorFont)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(IDWriteFont2, ::windows_core::IUnknown, IDWriteFont, IDWriteFont1); unsafe impl ::core::marker::Send for IDWriteFont2 {} unsafe impl ::core::marker::Sync for IDWriteFont2 {} -unsafe impl ::windows_core::Interface for IDWriteFont2 { - type Vtable = IDWriteFont2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteFont2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x29748ed6_8c9c_4a6a_be0b_d912e8538944); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteFont2_Vtbl { pub base__: IDWriteFont1_Vtbl, pub IsColorFont: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteFont3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteFont3, IDWriteFont3_Vtbl, 0x29748ed6_8c9c_4a6a_be0b_d912e8538944); +::windows_core::imp::interface_hierarchy!(IDWriteFont3, ::windows_core::IUnknown, IDWriteFont, IDWriteFont1, IDWriteFont2); impl IDWriteFont3 { pub unsafe fn GetFontFamily(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2423,15 +2294,8 @@ impl IDWriteFont3 { (::windows_core::Interface::vtable(self).GetLocality)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(IDWriteFont3, ::windows_core::IUnknown, IDWriteFont, IDWriteFont1, IDWriteFont2); unsafe impl ::core::marker::Send for IDWriteFont3 {} unsafe impl ::core::marker::Sync for IDWriteFont3 {} -unsafe impl ::windows_core::Interface for IDWriteFont3 { - type Vtable = IDWriteFont3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteFont3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x29748ed6_8c9c_4a6a_be0b_d912e8538944); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteFont3_Vtbl { @@ -2442,9 +2306,8 @@ pub struct IDWriteFont3_Vtbl { pub HasCharacter2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, unicodevalue: u32) -> super::super::Foundation::BOOL, pub GetLocality: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> DWRITE_LOCALITY, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteFontCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteFontCollection, IDWriteFontCollection_Vtbl, 0xa84cee02_3eea_4eee_a827_87c1a02a0fcc); +::windows_core::imp::interface_hierarchy!(IDWriteFontCollection, ::windows_core::IUnknown); impl IDWriteFontCollection { pub unsafe fn GetFontFamilyCount(&self) -> u32 { (::windows_core::Interface::vtable(self).GetFontFamilyCount)(::windows_core::Interface::as_raw(self)) @@ -2467,15 +2330,8 @@ impl IDWriteFontCollection { (::windows_core::Interface::vtable(self).GetFontFromFontFace)(::windows_core::Interface::as_raw(self), fontface.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDWriteFontCollection, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for IDWriteFontCollection {} unsafe impl ::core::marker::Sync for IDWriteFontCollection {} -unsafe impl ::windows_core::Interface for IDWriteFontCollection { - type Vtable = IDWriteFontCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteFontCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa84cee02_3eea_4eee_a827_87c1a02a0fcc); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteFontCollection_Vtbl { @@ -2485,9 +2341,8 @@ pub struct IDWriteFontCollection_Vtbl { pub FindFamilyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, familyname: ::windows_core::PCWSTR, index: *mut u32, exists: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub GetFontFromFontFace: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fontface: *mut ::core::ffi::c_void, font: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteFontCollection1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteFontCollection1, IDWriteFontCollection1_Vtbl, 0x53585141_d9f8_4095_8321_d73cf6bd116c); +::windows_core::imp::interface_hierarchy!(IDWriteFontCollection1, ::windows_core::IUnknown, IDWriteFontCollection); impl IDWriteFontCollection1 { pub unsafe fn GetFontFamilyCount(&self) -> u32 { (::windows_core::Interface::vtable(self).base__.GetFontFamilyCount)(::windows_core::Interface::as_raw(self)) @@ -2518,15 +2373,8 @@ impl IDWriteFontCollection1 { (::windows_core::Interface::vtable(self).GetFontFamily2)(::windows_core::Interface::as_raw(self), index, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDWriteFontCollection1, ::windows_core::IUnknown, IDWriteFontCollection); unsafe impl ::core::marker::Send for IDWriteFontCollection1 {} unsafe impl ::core::marker::Sync for IDWriteFontCollection1 {} -unsafe impl ::windows_core::Interface for IDWriteFontCollection1 { - type Vtable = IDWriteFontCollection1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteFontCollection1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x53585141_d9f8_4095_8321_d73cf6bd116c); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteFontCollection1_Vtbl { @@ -2534,9 +2382,8 @@ pub struct IDWriteFontCollection1_Vtbl { pub GetFontSet: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fontset: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetFontFamily2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, fontfamily: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteFontCollection2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteFontCollection2, IDWriteFontCollection2_Vtbl, 0x514039c6_4617_4064_bf8b_92ea83e506e0); +::windows_core::imp::interface_hierarchy!(IDWriteFontCollection2, ::windows_core::IUnknown, IDWriteFontCollection, IDWriteFontCollection1); impl IDWriteFontCollection2 { pub unsafe fn GetFontFamilyCount(&self) -> u32 { (::windows_core::Interface::vtable(self).base__.base__.GetFontFamilyCount)(::windows_core::Interface::as_raw(self)) @@ -2585,15 +2432,8 @@ impl IDWriteFontCollection2 { (::windows_core::Interface::vtable(self).GetFontSet2)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDWriteFontCollection2, ::windows_core::IUnknown, IDWriteFontCollection, IDWriteFontCollection1); unsafe impl ::core::marker::Send for IDWriteFontCollection2 {} unsafe impl ::core::marker::Sync for IDWriteFontCollection2 {} -unsafe impl ::windows_core::Interface for IDWriteFontCollection2 { - type Vtable = IDWriteFontCollection2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteFontCollection2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x514039c6_4617_4064_bf8b_92ea83e506e0); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteFontCollection2_Vtbl { @@ -2603,9 +2443,8 @@ pub struct IDWriteFontCollection2_Vtbl { pub GetFontFamilyModel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> DWRITE_FONT_FAMILY_MODEL, pub GetFontSet2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fontset: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteFontCollection3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteFontCollection3, IDWriteFontCollection3_Vtbl, 0xa4d055a6_f9e3_4e25_93b7_9e309f3af8e9); +::windows_core::imp::interface_hierarchy!(IDWriteFontCollection3, ::windows_core::IUnknown, IDWriteFontCollection, IDWriteFontCollection1, IDWriteFontCollection2); impl IDWriteFontCollection3 { pub unsafe fn GetFontFamilyCount(&self) -> u32 { (::windows_core::Interface::vtable(self).base__.base__.base__.GetFontFamilyCount)(::windows_core::Interface::as_raw(self)) @@ -2657,24 +2496,16 @@ impl IDWriteFontCollection3 { (::windows_core::Interface::vtable(self).GetExpirationEvent)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(IDWriteFontCollection3, ::windows_core::IUnknown, IDWriteFontCollection, IDWriteFontCollection1, IDWriteFontCollection2); unsafe impl ::core::marker::Send for IDWriteFontCollection3 {} unsafe impl ::core::marker::Sync for IDWriteFontCollection3 {} -unsafe impl ::windows_core::Interface for IDWriteFontCollection3 { - type Vtable = IDWriteFontCollection3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteFontCollection3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa4d055a6_f9e3_4e25_93b7_9e309f3af8e9); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteFontCollection3_Vtbl { pub base__: IDWriteFontCollection2_Vtbl, pub GetExpirationEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> super::super::Foundation::HANDLE, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteFontCollectionLoader(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteFontCollectionLoader, IDWriteFontCollectionLoader_Vtbl, 0xcca920e4_52f0_492b_bfa8_29c72ee0a468); +::windows_core::imp::interface_hierarchy!(IDWriteFontCollectionLoader, ::windows_core::IUnknown); impl IDWriteFontCollectionLoader { pub unsafe fn CreateEnumeratorFromKey(&self, factory: P0, collectionkey: *const ::core::ffi::c_void, collectionkeysize: u32) -> ::windows_core::Result where @@ -2684,24 +2515,16 @@ impl IDWriteFontCollectionLoader { (::windows_core::Interface::vtable(self).CreateEnumeratorFromKey)(::windows_core::Interface::as_raw(self), factory.into_param().abi(), collectionkey, collectionkeysize, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDWriteFontCollectionLoader, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for IDWriteFontCollectionLoader {} unsafe impl ::core::marker::Sync for IDWriteFontCollectionLoader {} -unsafe impl ::windows_core::Interface for IDWriteFontCollectionLoader { - type Vtable = IDWriteFontCollectionLoader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteFontCollectionLoader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcca920e4_52f0_492b_bfa8_29c72ee0a468); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteFontCollectionLoader_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub CreateEnumeratorFromKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, factory: *mut ::core::ffi::c_void, collectionkey: *const ::core::ffi::c_void, collectionkeysize: u32, fontfileenumerator: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteFontDownloadListener(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteFontDownloadListener, IDWriteFontDownloadListener_Vtbl, 0xb06fe5b9_43ec_4393_881b_dbe4dc72fda7); +::windows_core::imp::interface_hierarchy!(IDWriteFontDownloadListener, ::windows_core::IUnknown); impl IDWriteFontDownloadListener { pub unsafe fn DownloadCompleted(&self, downloadqueue: P0, context: P1, downloadresult: ::windows_core::HRESULT) where @@ -2711,24 +2534,16 @@ impl IDWriteFontDownloadListener { (::windows_core::Interface::vtable(self).DownloadCompleted)(::windows_core::Interface::as_raw(self), downloadqueue.into_param().abi(), context.into_param().abi(), downloadresult) } } -::windows_core::imp::interface_hierarchy!(IDWriteFontDownloadListener, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for IDWriteFontDownloadListener {} unsafe impl ::core::marker::Sync for IDWriteFontDownloadListener {} -unsafe impl ::windows_core::Interface for IDWriteFontDownloadListener { - type Vtable = IDWriteFontDownloadListener_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteFontDownloadListener { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb06fe5b9_43ec_4393_881b_dbe4dc72fda7); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteFontDownloadListener_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub DownloadCompleted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, downloadqueue: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, downloadresult: ::windows_core::HRESULT), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteFontDownloadQueue(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteFontDownloadQueue, IDWriteFontDownloadQueue_Vtbl, 0xb71e6052_5aea_4fa3_832e_f60d431f7e91); +::windows_core::imp::interface_hierarchy!(IDWriteFontDownloadQueue, ::windows_core::IUnknown); impl IDWriteFontDownloadQueue { pub unsafe fn AddListener(&self, listener: P0) -> ::windows_core::Result where @@ -2756,15 +2571,8 @@ impl IDWriteFontDownloadQueue { (::windows_core::Interface::vtable(self).GetGenerationCount)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(IDWriteFontDownloadQueue, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for IDWriteFontDownloadQueue {} unsafe impl ::core::marker::Sync for IDWriteFontDownloadQueue {} -unsafe impl ::windows_core::Interface for IDWriteFontDownloadQueue { - type Vtable = IDWriteFontDownloadQueue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteFontDownloadQueue { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb71e6052_5aea_4fa3_832e_f60d431f7e91); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteFontDownloadQueue_Vtbl { @@ -2776,9 +2584,8 @@ pub struct IDWriteFontDownloadQueue_Vtbl { pub CancelDownload: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetGenerationCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> u64, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteFontFace(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteFontFace, IDWriteFontFace_Vtbl, 0x5f49804d_7024_4d43_bfa9_d25984f53849); +::windows_core::imp::interface_hierarchy!(IDWriteFontFace, ::windows_core::IUnknown); impl IDWriteFontFace { pub unsafe fn GetType(&self) -> DWRITE_FONT_FACE_TYPE { (::windows_core::Interface::vtable(self).GetType)(::windows_core::Interface::as_raw(self)) @@ -2844,15 +2651,8 @@ impl IDWriteFontFace { (::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::imp::interface_hierarchy!(IDWriteFontFace, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for IDWriteFontFace {} unsafe impl ::core::marker::Sync for IDWriteFontFace {} -unsafe impl ::windows_core::Interface for IDWriteFontFace { - type Vtable = IDWriteFontFace_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteFontFace { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5f49804d_7024_4d43_bfa9_d25984f53849); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteFontFace_Vtbl { @@ -2876,9 +2676,8 @@ pub struct IDWriteFontFace_Vtbl { pub GetGdiCompatibleMetrics: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, emsize: f32, pixelsperdip: f32, transform: *const DWRITE_MATRIX, fontfacemetrics: *mut DWRITE_FONT_METRICS) -> ::windows_core::HRESULT, pub GetGdiCompatibleGlyphMetrics: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, emsize: f32, pixelsperdip: f32, transform: *const DWRITE_MATRIX, usegdinatural: super::super::Foundation::BOOL, glyphindices: *const u16, glyphcount: u32, glyphmetrics: *mut DWRITE_GLYPH_METRICS, issideways: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteFontFace1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteFontFace1, IDWriteFontFace1_Vtbl, 0xa71efdb4_9fdb_4838_ad90_cfc3be8c3daf); +::windows_core::imp::interface_hierarchy!(IDWriteFontFace1, ::windows_core::IUnknown, IDWriteFontFace); impl IDWriteFontFace1 { pub unsafe fn GetType(&self) -> DWRITE_FONT_FACE_TYPE { (::windows_core::Interface::vtable(self).base__.GetType)(::windows_core::Interface::as_raw(self)) @@ -2993,15 +2792,8 @@ impl IDWriteFontFace1 { (::windows_core::Interface::vtable(self).HasVerticalGlyphVariants)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(IDWriteFontFace1, ::windows_core::IUnknown, IDWriteFontFace); unsafe impl ::core::marker::Send for IDWriteFontFace1 {} unsafe impl ::core::marker::Sync for IDWriteFontFace1 {} -unsafe impl ::windows_core::Interface for IDWriteFontFace1 { - type Vtable = IDWriteFontFace1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteFontFace1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa71efdb4_9fdb_4838_ad90_cfc3be8c3daf); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteFontFace1_Vtbl { @@ -3019,9 +2811,8 @@ pub struct IDWriteFontFace1_Vtbl { pub GetVerticalGlyphVariants: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, glyphcount: u32, nominalglyphindices: *const u16, verticalglyphindices: *mut u16) -> ::windows_core::HRESULT, pub HasVerticalGlyphVariants: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteFontFace2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteFontFace2, IDWriteFontFace2_Vtbl, 0xd8b768ff_64bc_4e66_982b_ec8e87f693f7); +::windows_core::imp::interface_hierarchy!(IDWriteFontFace2, ::windows_core::IUnknown, IDWriteFontFace, IDWriteFontFace1); impl IDWriteFontFace2 { pub unsafe fn GetType(&self) -> DWRITE_FONT_FACE_TYPE { (::windows_core::Interface::vtable(self).base__.base__.GetType)(::windows_core::Interface::as_raw(self)) @@ -3155,15 +2946,8 @@ impl IDWriteFontFace2 { (::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::imp::interface_hierarchy!(IDWriteFontFace2, ::windows_core::IUnknown, IDWriteFontFace, IDWriteFontFace1); unsafe impl ::core::marker::Send for IDWriteFontFace2 {} unsafe impl ::core::marker::Sync for IDWriteFontFace2 {} -unsafe impl ::windows_core::Interface for IDWriteFontFace2 { - type Vtable = IDWriteFontFace2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteFontFace2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd8b768ff_64bc_4e66_982b_ec8e87f693f7); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteFontFace2_Vtbl { @@ -3174,9 +2958,8 @@ pub struct IDWriteFontFace2_Vtbl { pub GetPaletteEntries: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, colorpaletteindex: u32, firstentryindex: u32, entrycount: u32, paletteentries: *mut DWRITE_COLOR_F) -> ::windows_core::HRESULT, pub GetRecommendedRenderingMode3: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fontemsize: f32, dpix: f32, dpiy: f32, transform: *const DWRITE_MATRIX, issideways: super::super::Foundation::BOOL, outlinethreshold: DWRITE_OUTLINE_THRESHOLD, measuringmode: DWRITE_MEASURING_MODE, renderingparams: *mut ::core::ffi::c_void, renderingmode: *mut DWRITE_RENDERING_MODE, gridfitmode: *mut DWRITE_GRID_FIT_MODE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteFontFace3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteFontFace3, IDWriteFontFace3_Vtbl, 0xd37d7598_09be_4222_a236_2081341cc1f2); +::windows_core::imp::interface_hierarchy!(IDWriteFontFace3, ::windows_core::IUnknown, IDWriteFontFace, IDWriteFontFace1, IDWriteFontFace2); impl IDWriteFontFace3 { pub unsafe fn GetType(&self) -> DWRITE_FONT_FACE_TYPE { (::windows_core::Interface::vtable(self).base__.base__.base__.GetType)(::windows_core::Interface::as_raw(self)) @@ -3369,15 +3152,8 @@ impl IDWriteFontFace3 { (::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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDWriteFontFace3, ::windows_core::IUnknown, IDWriteFontFace, IDWriteFontFace1, IDWriteFontFace2); unsafe impl ::core::marker::Send for IDWriteFontFace3 {} unsafe impl ::core::marker::Sync for IDWriteFontFace3 {} -unsafe impl ::windows_core::Interface for IDWriteFontFace3 { - type Vtable = IDWriteFontFace3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteFontFace3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd37d7598_09be_4222_a236_2081341cc1f2); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteFontFace3_Vtbl { @@ -3397,9 +3173,8 @@ pub struct IDWriteFontFace3_Vtbl { pub AreCharactersLocal: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, characters: ::windows_core::PCWSTR, charactercount: u32, enqueueifnotlocal: super::super::Foundation::BOOL, islocal: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub AreGlyphsLocal: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, glyphindices: *const u16, glyphcount: u32, enqueueifnotlocal: super::super::Foundation::BOOL, islocal: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteFontFace4(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteFontFace4, IDWriteFontFace4_Vtbl, 0x27f2a904_4eb8_441d_9678_0563f53e3e2f); +::windows_core::imp::interface_hierarchy!(IDWriteFontFace4, ::windows_core::IUnknown, IDWriteFontFace, IDWriteFontFace1, IDWriteFontFace2, IDWriteFontFace3); impl IDWriteFontFace4 { pub unsafe fn GetType(&self) -> DWRITE_FONT_FACE_TYPE { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.GetType)(::windows_core::Interface::as_raw(self)) @@ -3607,15 +3382,8 @@ impl IDWriteFontFace4 { (::windows_core::Interface::vtable(self).ReleaseGlyphImageData)(::windows_core::Interface::as_raw(self), glyphdatacontext) } } -::windows_core::imp::interface_hierarchy!(IDWriteFontFace4, ::windows_core::IUnknown, IDWriteFontFace, IDWriteFontFace1, IDWriteFontFace2, IDWriteFontFace3); unsafe impl ::core::marker::Send for IDWriteFontFace4 {} unsafe impl ::core::marker::Sync for IDWriteFontFace4 {} -unsafe impl ::windows_core::Interface for IDWriteFontFace4 { - type Vtable = IDWriteFontFace4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteFontFace4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x27f2a904_4eb8_441d_9678_0563f53e3e2f); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteFontFace4_Vtbl { @@ -3628,9 +3396,8 @@ pub struct IDWriteFontFace4_Vtbl { GetGlyphImageData: usize, pub ReleaseGlyphImageData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, glyphdatacontext: *mut ::core::ffi::c_void), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteFontFace5(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteFontFace5, IDWriteFontFace5_Vtbl, 0x98eff3a5_b667_479a_b145_e2fa5b9fdc29); +::windows_core::imp::interface_hierarchy!(IDWriteFontFace5, ::windows_core::IUnknown, IDWriteFontFace, IDWriteFontFace1, IDWriteFontFace2, IDWriteFontFace3, IDWriteFontFace4); impl IDWriteFontFace5 { pub unsafe fn GetType(&self) -> DWRITE_FONT_FACE_TYPE { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.GetType)(::windows_core::Interface::as_raw(self)) @@ -3857,15 +3624,8 @@ impl IDWriteFontFace5 { (::windows_core::Interface::vtable(self).Equals)(::windows_core::Interface::as_raw(self), fontface.into_param().abi()) } } -::windows_core::imp::interface_hierarchy!(IDWriteFontFace5, ::windows_core::IUnknown, IDWriteFontFace, IDWriteFontFace1, IDWriteFontFace2, IDWriteFontFace3, IDWriteFontFace4); unsafe impl ::core::marker::Send for IDWriteFontFace5 {} unsafe impl ::core::marker::Sync for IDWriteFontFace5 {} -unsafe impl ::windows_core::Interface for IDWriteFontFace5 { - type Vtable = IDWriteFontFace5_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteFontFace5 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x98eff3a5_b667_479a_b145_e2fa5b9fdc29); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteFontFace5_Vtbl { @@ -3876,9 +3636,8 @@ pub struct IDWriteFontFace5_Vtbl { pub GetFontResource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fontresource: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Equals: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fontface: *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteFontFace6(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteFontFace6, IDWriteFontFace6_Vtbl, 0xc4b1fe1b_6e84_47d5_b54c_a597981b06ad); +::windows_core::imp::interface_hierarchy!(IDWriteFontFace6, ::windows_core::IUnknown, IDWriteFontFace, IDWriteFontFace1, IDWriteFontFace2, IDWriteFontFace3, IDWriteFontFace4, IDWriteFontFace5); impl IDWriteFontFace6 { pub unsafe fn GetType(&self) -> DWRITE_FONT_FACE_TYPE { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.GetType)(::windows_core::Interface::as_raw(self)) @@ -4113,15 +3872,8 @@ impl IDWriteFontFace6 { (::windows_core::Interface::vtable(self).GetFaceNames2)(::windows_core::Interface::as_raw(self), fontfamilymodel, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDWriteFontFace6, ::windows_core::IUnknown, IDWriteFontFace, IDWriteFontFace1, IDWriteFontFace2, IDWriteFontFace3, IDWriteFontFace4, IDWriteFontFace5); unsafe impl ::core::marker::Send for IDWriteFontFace6 {} unsafe impl ::core::marker::Sync for IDWriteFontFace6 {} -unsafe impl ::windows_core::Interface for IDWriteFontFace6 { - type Vtable = IDWriteFontFace6_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteFontFace6 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc4b1fe1b_6e84_47d5_b54c_a597981b06ad); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteFontFace6_Vtbl { @@ -4129,9 +3881,8 @@ pub struct IDWriteFontFace6_Vtbl { pub GetFamilyNames2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fontfamilymodel: DWRITE_FONT_FAMILY_MODEL, names: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetFaceNames2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fontfamilymodel: DWRITE_FONT_FAMILY_MODEL, names: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteFontFaceReference(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteFontFaceReference, IDWriteFontFaceReference_Vtbl, 0x5e7fa7ca_dde3_424c_89f0_9fcd6fed58cd); +::windows_core::imp::interface_hierarchy!(IDWriteFontFaceReference, ::windows_core::IUnknown); impl IDWriteFontFaceReference { pub unsafe fn CreateFontFace(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -4183,15 +3934,8 @@ impl IDWriteFontFaceReference { (::windows_core::Interface::vtable(self).EnqueueFileFragmentDownloadRequest)(::windows_core::Interface::as_raw(self), fileoffset, fragmentsize).ok() } } -::windows_core::imp::interface_hierarchy!(IDWriteFontFaceReference, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for IDWriteFontFaceReference {} unsafe impl ::core::marker::Sync for IDWriteFontFaceReference {} -unsafe impl ::windows_core::Interface for IDWriteFontFaceReference { - type Vtable = IDWriteFontFaceReference_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteFontFaceReference { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5e7fa7ca_dde3_424c_89f0_9fcd6fed58cd); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteFontFaceReference_Vtbl { @@ -4211,9 +3955,8 @@ pub struct IDWriteFontFaceReference_Vtbl { pub EnqueueGlyphDownloadRequest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, glyphindices: *const u16, glyphcount: u32) -> ::windows_core::HRESULT, pub EnqueueFileFragmentDownloadRequest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fileoffset: u64, fragmentsize: u64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteFontFaceReference1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteFontFaceReference1, IDWriteFontFaceReference1_Vtbl, 0xc081fe77_2fd1_41ac_a5a3_34983c4ba61a); +::windows_core::imp::interface_hierarchy!(IDWriteFontFaceReference1, ::windows_core::IUnknown, IDWriteFontFaceReference); impl IDWriteFontFaceReference1 { pub unsafe fn CreateFontFace(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -4275,15 +4018,8 @@ impl IDWriteFontFaceReference1 { (::windows_core::Interface::vtable(self).GetFontAxisValues)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(fontaxisvalues.as_ptr()), fontaxisvalues.len().try_into().unwrap()).ok() } } -::windows_core::imp::interface_hierarchy!(IDWriteFontFaceReference1, ::windows_core::IUnknown, IDWriteFontFaceReference); unsafe impl ::core::marker::Send for IDWriteFontFaceReference1 {} unsafe impl ::core::marker::Sync for IDWriteFontFaceReference1 {} -unsafe impl ::windows_core::Interface for IDWriteFontFaceReference1 { - type Vtable = IDWriteFontFaceReference1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteFontFaceReference1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc081fe77_2fd1_41ac_a5a3_34983c4ba61a); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteFontFaceReference1_Vtbl { @@ -4292,9 +4028,8 @@ pub struct IDWriteFontFaceReference1_Vtbl { pub GetFontAxisValueCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> u32, pub GetFontAxisValues: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fontaxisvalues: *mut DWRITE_FONT_AXIS_VALUE, fontaxisvaluecount: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteFontFallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteFontFallback, IDWriteFontFallback_Vtbl, 0xefa008f9_f7a1_48bf_b05c_f224713cc0ff); +::windows_core::imp::interface_hierarchy!(IDWriteFontFallback, ::windows_core::IUnknown); 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 ::core::option::Option, scale: *mut f32) -> ::windows_core::Result<()> where @@ -4305,24 +4040,16 @@ impl IDWriteFontFallback { (::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::imp::interface_hierarchy!(IDWriteFontFallback, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for IDWriteFontFallback {} unsafe impl ::core::marker::Sync for IDWriteFontFallback {} -unsafe impl ::windows_core::Interface for IDWriteFontFallback { - type Vtable = IDWriteFontFallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteFontFallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xefa008f9_f7a1_48bf_b05c_f224713cc0ff); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteFontFallback_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub MapCharacters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, analysissource: *mut ::core::ffi::c_void, textposition: u32, textlength: u32, basefontcollection: *mut ::core::ffi::c_void, basefamilyname: ::windows_core::PCWSTR, baseweight: DWRITE_FONT_WEIGHT, basestyle: DWRITE_FONT_STYLE, basestretch: DWRITE_FONT_STRETCH, mappedlength: *mut u32, mappedfont: *mut *mut ::core::ffi::c_void, scale: *mut f32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteFontFallback1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteFontFallback1, IDWriteFontFallback1_Vtbl, 0x2397599d_dd0d_4681_bd6a_f4f31eaade77); +::windows_core::imp::interface_hierarchy!(IDWriteFontFallback1, ::windows_core::IUnknown, IDWriteFontFallback); 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 ::core::option::Option, scale: *mut f32) -> ::windows_core::Result<()> where @@ -4341,24 +4068,16 @@ impl IDWriteFontFallback1 { (::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::imp::interface_hierarchy!(IDWriteFontFallback1, ::windows_core::IUnknown, IDWriteFontFallback); unsafe impl ::core::marker::Send for IDWriteFontFallback1 {} unsafe impl ::core::marker::Sync for IDWriteFontFallback1 {} -unsafe impl ::windows_core::Interface for IDWriteFontFallback1 { - type Vtable = IDWriteFontFallback1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteFontFallback1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2397599d_dd0d_4681_bd6a_f4f31eaade77); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteFontFallback1_Vtbl { pub base__: IDWriteFontFallback_Vtbl, pub MapCharacters2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, analysissource: *mut ::core::ffi::c_void, textposition: u32, textlength: u32, basefontcollection: *mut ::core::ffi::c_void, basefamilyname: ::windows_core::PCWSTR, fontaxisvalues: *const DWRITE_FONT_AXIS_VALUE, fontaxisvaluecount: u32, mappedlength: *mut u32, scale: *mut f32, mappedfontface: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteFontFallbackBuilder(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteFontFallbackBuilder, IDWriteFontFallbackBuilder_Vtbl, 0xfd882d06_8aba_4fb8_b849_8be8b73e14de); +::windows_core::imp::interface_hierarchy!(IDWriteFontFallbackBuilder, ::windows_core::IUnknown); 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 @@ -4379,15 +4098,8 @@ impl IDWriteFontFallbackBuilder { (::windows_core::Interface::vtable(self).CreateFontFallback)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDWriteFontFallbackBuilder, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for IDWriteFontFallbackBuilder {} unsafe impl ::core::marker::Sync for IDWriteFontFallbackBuilder {} -unsafe impl ::windows_core::Interface for IDWriteFontFallbackBuilder { - type Vtable = IDWriteFontFallbackBuilder_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteFontFallbackBuilder { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfd882d06_8aba_4fb8_b849_8be8b73e14de); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteFontFallbackBuilder_Vtbl { @@ -4396,9 +4108,8 @@ pub struct IDWriteFontFallbackBuilder_Vtbl { pub AddMappings: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fontfallback: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateFontFallback: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fontfallback: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteFontFamily(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteFontFamily, IDWriteFontFamily_Vtbl, 0xda20d8ef_812a_4c43_9802_62ec4abd7add); +::windows_core::imp::interface_hierarchy!(IDWriteFontFamily, ::windows_core::IUnknown, IDWriteFontList); impl IDWriteFontFamily { pub unsafe fn GetFontCollection(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -4424,15 +4135,8 @@ impl IDWriteFontFamily { (::windows_core::Interface::vtable(self).GetMatchingFonts)(::windows_core::Interface::as_raw(self), weight, stretch, style, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDWriteFontFamily, ::windows_core::IUnknown, IDWriteFontList); unsafe impl ::core::marker::Send for IDWriteFontFamily {} unsafe impl ::core::marker::Sync for IDWriteFontFamily {} -unsafe impl ::windows_core::Interface for IDWriteFontFamily { - type Vtable = IDWriteFontFamily_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteFontFamily { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xda20d8ef_812a_4c43_9802_62ec4abd7add); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteFontFamily_Vtbl { @@ -4441,9 +4145,8 @@ pub struct IDWriteFontFamily_Vtbl { pub GetFirstMatchingFont: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, weight: DWRITE_FONT_WEIGHT, stretch: DWRITE_FONT_STRETCH, style: DWRITE_FONT_STYLE, matchingfont: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetMatchingFonts: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, weight: DWRITE_FONT_WEIGHT, stretch: DWRITE_FONT_STRETCH, style: DWRITE_FONT_STYLE, matchingfonts: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteFontFamily1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteFontFamily1, IDWriteFontFamily1_Vtbl, 0xda20d8ef_812a_4c43_9802_62ec4abd7adf); +::windows_core::imp::interface_hierarchy!(IDWriteFontFamily1, ::windows_core::IUnknown, IDWriteFontList, IDWriteFontFamily); impl IDWriteFontFamily1 { pub unsafe fn GetFontCollection(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -4480,15 +4183,8 @@ impl IDWriteFontFamily1 { (::windows_core::Interface::vtable(self).GetFontFaceReference)(::windows_core::Interface::as_raw(self), listindex, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDWriteFontFamily1, ::windows_core::IUnknown, IDWriteFontList, IDWriteFontFamily); unsafe impl ::core::marker::Send for IDWriteFontFamily1 {} unsafe impl ::core::marker::Sync for IDWriteFontFamily1 {} -unsafe impl ::windows_core::Interface for IDWriteFontFamily1 { - type Vtable = IDWriteFontFamily1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteFontFamily1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xda20d8ef_812a_4c43_9802_62ec4abd7adf); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteFontFamily1_Vtbl { @@ -4497,9 +4193,8 @@ pub struct IDWriteFontFamily1_Vtbl { pub GetFont2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, listindex: u32, font: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetFontFaceReference: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, listindex: u32, fontfacereference: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteFontFamily2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteFontFamily2, IDWriteFontFamily2_Vtbl, 0x3ed49e77_a398_4261_b9cf_c126c2131ef3); +::windows_core::imp::interface_hierarchy!(IDWriteFontFamily2, ::windows_core::IUnknown, IDWriteFontList, IDWriteFontFamily, IDWriteFontFamily1); impl IDWriteFontFamily2 { pub unsafe fn GetFontCollection(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -4544,15 +4239,8 @@ impl IDWriteFontFamily2 { (::windows_core::Interface::vtable(self).GetFontSet)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDWriteFontFamily2, ::windows_core::IUnknown, IDWriteFontList, IDWriteFontFamily, IDWriteFontFamily1); unsafe impl ::core::marker::Send for IDWriteFontFamily2 {} unsafe impl ::core::marker::Sync for IDWriteFontFamily2 {} -unsafe impl ::windows_core::Interface for IDWriteFontFamily2 { - type Vtable = IDWriteFontFamily2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteFontFamily2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3ed49e77_a398_4261_b9cf_c126c2131ef3); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteFontFamily2_Vtbl { @@ -4560,9 +4248,8 @@ pub struct IDWriteFontFamily2_Vtbl { pub GetMatchingFonts2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fontaxisvalues: *const DWRITE_FONT_AXIS_VALUE, fontaxisvaluecount: u32, matchingfonts: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetFontSet: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fontset: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteFontFile(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteFontFile, IDWriteFontFile_Vtbl, 0x739d886a_cef5_47dc_8769_1a8b41bebbb0); +::windows_core::imp::interface_hierarchy!(IDWriteFontFile, ::windows_core::IUnknown); impl IDWriteFontFile { pub unsafe fn GetReferenceKey(&self, fontfilereferencekey: *mut *mut ::core::ffi::c_void, fontfilereferencekeysize: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetReferenceKey)(::windows_core::Interface::as_raw(self), fontfilereferencekey, fontfilereferencekeysize).ok() @@ -4575,15 +4262,8 @@ impl IDWriteFontFile { (::windows_core::Interface::vtable(self).Analyze)(::windows_core::Interface::as_raw(self), issupportedfonttype, fontfiletype, ::core::mem::transmute(fontfacetype.unwrap_or(::std::ptr::null_mut())), numberoffaces).ok() } } -::windows_core::imp::interface_hierarchy!(IDWriteFontFile, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for IDWriteFontFile {} unsafe impl ::core::marker::Sync for IDWriteFontFile {} -unsafe impl ::windows_core::Interface for IDWriteFontFile { - type Vtable = IDWriteFontFile_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteFontFile { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x739d886a_cef5_47dc_8769_1a8b41bebbb0); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteFontFile_Vtbl { @@ -4592,9 +4272,8 @@ pub struct IDWriteFontFile_Vtbl { pub GetLoader: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fontfileloader: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Analyze: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, issupportedfonttype: *mut super::super::Foundation::BOOL, fontfiletype: *mut DWRITE_FONT_FILE_TYPE, fontfacetype: *mut DWRITE_FONT_FACE_TYPE, numberoffaces: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteFontFileEnumerator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteFontFileEnumerator, IDWriteFontFileEnumerator_Vtbl, 0x72755049_5ff7_435d_8348_4be97cfa6c7c); +::windows_core::imp::interface_hierarchy!(IDWriteFontFileEnumerator, ::windows_core::IUnknown); impl IDWriteFontFileEnumerator { pub unsafe fn MoveNext(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -4605,15 +4284,8 @@ impl IDWriteFontFileEnumerator { (::windows_core::Interface::vtable(self).GetCurrentFontFile)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDWriteFontFileEnumerator, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for IDWriteFontFileEnumerator {} unsafe impl ::core::marker::Sync for IDWriteFontFileEnumerator {} -unsafe impl ::windows_core::Interface for IDWriteFontFileEnumerator { - type Vtable = IDWriteFontFileEnumerator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteFontFileEnumerator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x72755049_5ff7_435d_8348_4be97cfa6c7c); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteFontFileEnumerator_Vtbl { @@ -4621,33 +4293,24 @@ pub struct IDWriteFontFileEnumerator_Vtbl { pub MoveNext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hascurrentfile: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub GetCurrentFontFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fontfile: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteFontFileLoader(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteFontFileLoader, IDWriteFontFileLoader_Vtbl, 0x727cad4e_d6af_4c9e_8a08_d695b11caa49); +::windows_core::imp::interface_hierarchy!(IDWriteFontFileLoader, ::windows_core::IUnknown); impl IDWriteFontFileLoader { pub unsafe fn CreateStreamFromKey(&self, fontfilereferencekey: *const ::core::ffi::c_void, fontfilereferencekeysize: u32) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).CreateStreamFromKey)(::windows_core::Interface::as_raw(self), fontfilereferencekey, fontfilereferencekeysize, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDWriteFontFileLoader, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for IDWriteFontFileLoader {} unsafe impl ::core::marker::Sync for IDWriteFontFileLoader {} -unsafe impl ::windows_core::Interface for IDWriteFontFileLoader { - type Vtable = IDWriteFontFileLoader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteFontFileLoader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x727cad4e_d6af_4c9e_8a08_d695b11caa49); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteFontFileLoader_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub CreateStreamFromKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fontfilereferencekey: *const ::core::ffi::c_void, fontfilereferencekeysize: u32, fontfilestream: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteFontFileStream(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteFontFileStream, IDWriteFontFileStream_Vtbl, 0x6d4865fe_0ab8_4d91_8f62_5dd6be34a3e0); +::windows_core::imp::interface_hierarchy!(IDWriteFontFileStream, ::windows_core::IUnknown); impl IDWriteFontFileStream { pub unsafe fn ReadFileFragment(&self, fragmentstart: *mut *mut ::core::ffi::c_void, fileoffset: u64, fragmentsize: u64, fragmentcontext: *mut *mut ::core::ffi::c_void) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).ReadFileFragment)(::windows_core::Interface::as_raw(self), fragmentstart, fileoffset, fragmentsize, fragmentcontext).ok() @@ -4664,15 +4327,8 @@ impl IDWriteFontFileStream { (::windows_core::Interface::vtable(self).GetLastWriteTime)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDWriteFontFileStream, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for IDWriteFontFileStream {} unsafe impl ::core::marker::Sync for IDWriteFontFileStream {} -unsafe impl ::windows_core::Interface for IDWriteFontFileStream { - type Vtable = IDWriteFontFileStream_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteFontFileStream { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6d4865fe_0ab8_4d91_8f62_5dd6be34a3e0); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteFontFileStream_Vtbl { @@ -4682,9 +4338,8 @@ pub struct IDWriteFontFileStream_Vtbl { pub GetFileSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filesize: *mut u64) -> ::windows_core::HRESULT, pub GetLastWriteTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lastwritetime: *mut u64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteFontList(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteFontList, IDWriteFontList_Vtbl, 0x1a0d8438_1d97_4ec1_aef9_a2fb86ed6acb); +::windows_core::imp::interface_hierarchy!(IDWriteFontList, ::windows_core::IUnknown); impl IDWriteFontList { pub unsafe fn GetFontCollection(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -4698,15 +4353,8 @@ impl IDWriteFontList { (::windows_core::Interface::vtable(self).GetFont)(::windows_core::Interface::as_raw(self), index, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDWriteFontList, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for IDWriteFontList {} unsafe impl ::core::marker::Sync for IDWriteFontList {} -unsafe impl ::windows_core::Interface for IDWriteFontList { - type Vtable = IDWriteFontList_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteFontList { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1a0d8438_1d97_4ec1_aef9_a2fb86ed6acb); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteFontList_Vtbl { @@ -4715,9 +4363,8 @@ pub struct IDWriteFontList_Vtbl { pub GetFontCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> u32, pub GetFont: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, font: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteFontList1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteFontList1, IDWriteFontList1_Vtbl, 0xda20d8ef_812a_4c43_9802_62ec4abd7ade); +::windows_core::imp::interface_hierarchy!(IDWriteFontList1, ::windows_core::IUnknown, IDWriteFontList); impl IDWriteFontList1 { pub unsafe fn GetFontCollection(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -4742,15 +4389,8 @@ impl IDWriteFontList1 { (::windows_core::Interface::vtable(self).GetFontFaceReference)(::windows_core::Interface::as_raw(self), listindex, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDWriteFontList1, ::windows_core::IUnknown, IDWriteFontList); unsafe impl ::core::marker::Send for IDWriteFontList1 {} unsafe impl ::core::marker::Sync for IDWriteFontList1 {} -unsafe impl ::windows_core::Interface for IDWriteFontList1 { - type Vtable = IDWriteFontList1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteFontList1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xda20d8ef_812a_4c43_9802_62ec4abd7ade); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteFontList1_Vtbl { @@ -4759,9 +4399,8 @@ pub struct IDWriteFontList1_Vtbl { pub GetFont2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, listindex: u32, font: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetFontFaceReference: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, listindex: u32, fontfacereference: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteFontList2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteFontList2, IDWriteFontList2_Vtbl, 0xc0763a34_77af_445a_b735_08c37b0a5bf5); +::windows_core::imp::interface_hierarchy!(IDWriteFontList2, ::windows_core::IUnknown, IDWriteFontList, IDWriteFontList1); impl IDWriteFontList2 { pub unsafe fn GetFontCollection(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -4790,24 +4429,16 @@ impl IDWriteFontList2 { (::windows_core::Interface::vtable(self).GetFontSet)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDWriteFontList2, ::windows_core::IUnknown, IDWriteFontList, IDWriteFontList1); unsafe impl ::core::marker::Send for IDWriteFontList2 {} unsafe impl ::core::marker::Sync for IDWriteFontList2 {} -unsafe impl ::windows_core::Interface for IDWriteFontList2 { - type Vtable = IDWriteFontList2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteFontList2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc0763a34_77af_445a_b735_08c37b0a5bf5); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteFontList2_Vtbl { pub base__: IDWriteFontList1_Vtbl, pub GetFontSet: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fontset: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteFontResource(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteFontResource, IDWriteFontResource_Vtbl, 0x1f803a76_6871_48e8_987f_b975551c50f2); +::windows_core::imp::interface_hierarchy!(IDWriteFontResource, ::windows_core::IUnknown); impl IDWriteFontResource { pub unsafe fn GetFontFile(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -4850,15 +4481,8 @@ impl IDWriteFontResource { (::windows_core::Interface::vtable(self).CreateFontFaceReference)(::windows_core::Interface::as_raw(self), fontsimulations, ::core::mem::transmute(fontaxisvalues.as_ptr()), fontaxisvalues.len().try_into().unwrap(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDWriteFontResource, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for IDWriteFontResource {} unsafe impl ::core::marker::Sync for IDWriteFontResource {} -unsafe impl ::windows_core::Interface for IDWriteFontResource { - type Vtable = IDWriteFontResource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteFontResource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1f803a76_6871_48e8_987f_b975551c50f2); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteFontResource_Vtbl { @@ -4876,9 +4500,8 @@ pub struct IDWriteFontResource_Vtbl { pub CreateFontFace: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fontsimulations: DWRITE_FONT_SIMULATIONS, fontaxisvalues: *const DWRITE_FONT_AXIS_VALUE, fontaxisvaluecount: u32, fontface: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateFontFaceReference: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fontsimulations: DWRITE_FONT_SIMULATIONS, fontaxisvalues: *const DWRITE_FONT_AXIS_VALUE, fontaxisvaluecount: u32, fontfacereference: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteFontSet(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteFontSet, IDWriteFontSet_Vtbl, 0x53585141_d9f8_4095_8321_d73cf6bd116b); +::windows_core::imp::interface_hierarchy!(IDWriteFontSet, ::windows_core::IUnknown); impl IDWriteFontSet { pub unsafe fn GetFontCount(&self) -> u32 { (::windows_core::Interface::vtable(self).GetFontCount)(::windows_core::Interface::as_raw(self)) @@ -4929,15 +4552,8 @@ impl IDWriteFontSet { (::windows_core::Interface::vtable(self).GetMatchingFonts2)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(properties.as_ptr()), properties.len().try_into().unwrap(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDWriteFontSet, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for IDWriteFontSet {} unsafe impl ::core::marker::Sync for IDWriteFontSet {} -unsafe impl ::windows_core::Interface for IDWriteFontSet { - type Vtable = IDWriteFontSet_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteFontSet { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x53585141_d9f8_4095_8321_d73cf6bd116b); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteFontSet_Vtbl { @@ -4953,9 +4569,8 @@ pub struct IDWriteFontSet_Vtbl { pub GetMatchingFonts: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, familyname: ::windows_core::PCWSTR, fontweight: DWRITE_FONT_WEIGHT, fontstretch: DWRITE_FONT_STRETCH, fontstyle: DWRITE_FONT_STYLE, filteredset: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetMatchingFonts2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, properties: *const DWRITE_FONT_PROPERTY, propertycount: u32, filteredset: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteFontSet1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteFontSet1, IDWriteFontSet1_Vtbl, 0x7e9fda85_6c92_4053_bc47_7ae3530db4d3); +::windows_core::imp::interface_hierarchy!(IDWriteFontSet1, ::windows_core::IUnknown, IDWriteFontSet); impl IDWriteFontSet1 { pub unsafe fn GetFontCount(&self) -> u32 { (::windows_core::Interface::vtable(self).base__.GetFontCount)(::windows_core::Interface::as_raw(self)) @@ -5065,15 +4680,8 @@ impl IDWriteFontSet1 { (::windows_core::Interface::vtable(self).GetFontLocality)(::windows_core::Interface::as_raw(self), listindex) } } -::windows_core::imp::interface_hierarchy!(IDWriteFontSet1, ::windows_core::IUnknown, IDWriteFontSet); unsafe impl ::core::marker::Send for IDWriteFontSet1 {} unsafe impl ::core::marker::Sync for IDWriteFontSet1 {} -unsafe impl ::windows_core::Interface for IDWriteFontSet1 { - type Vtable = IDWriteFontSet1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteFontSet1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7e9fda85_6c92_4053_bc47_7ae3530db4d3); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteFontSet1_Vtbl { @@ -5092,9 +4700,8 @@ pub struct IDWriteFontSet1_Vtbl { pub CreateFontFace: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, listindex: u32, fontface: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetFontLocality: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, listindex: u32) -> DWRITE_LOCALITY, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteFontSet2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteFontSet2, IDWriteFontSet2_Vtbl, 0xdc7ead19_e54c_43af_b2da_4e2b79ba3f7f); +::windows_core::imp::interface_hierarchy!(IDWriteFontSet2, ::windows_core::IUnknown, IDWriteFontSet, IDWriteFontSet1); impl IDWriteFontSet2 { pub unsafe fn GetFontCount(&self) -> u32 { (::windows_core::Interface::vtable(self).base__.base__.GetFontCount)(::windows_core::Interface::as_raw(self)) @@ -5207,24 +4814,16 @@ impl IDWriteFontSet2 { (::windows_core::Interface::vtable(self).GetExpirationEvent)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(IDWriteFontSet2, ::windows_core::IUnknown, IDWriteFontSet, IDWriteFontSet1); unsafe impl ::core::marker::Send for IDWriteFontSet2 {} unsafe impl ::core::marker::Sync for IDWriteFontSet2 {} -unsafe impl ::windows_core::Interface for IDWriteFontSet2 { - type Vtable = IDWriteFontSet2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteFontSet2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdc7ead19_e54c_43af_b2da_4e2b79ba3f7f); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteFontSet2_Vtbl { pub base__: IDWriteFontSet1_Vtbl, pub GetExpirationEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> super::super::Foundation::HANDLE, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteFontSet3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteFontSet3, IDWriteFontSet3_Vtbl, 0x7c073ef2_a7f4_4045_8c32_8ab8ae640f90); +::windows_core::imp::interface_hierarchy!(IDWriteFontSet3, ::windows_core::IUnknown, IDWriteFontSet, IDWriteFontSet1, IDWriteFontSet2); impl IDWriteFontSet3 { pub unsafe fn GetFontCount(&self) -> u32 { (::windows_core::Interface::vtable(self).base__.base__.base__.GetFontCount)(::windows_core::Interface::as_raw(self)) @@ -5346,15 +4945,8 @@ impl IDWriteFontSet3 { (::windows_core::Interface::vtable(self).GetFontSourceName)(::windows_core::Interface::as_raw(self), listindex, ::core::mem::transmute(stringbuffer.as_ptr()), stringbuffer.len().try_into().unwrap()).ok() } } -::windows_core::imp::interface_hierarchy!(IDWriteFontSet3, ::windows_core::IUnknown, IDWriteFontSet, IDWriteFontSet1, IDWriteFontSet2); unsafe impl ::core::marker::Send for IDWriteFontSet3 {} unsafe impl ::core::marker::Sync for IDWriteFontSet3 {} -unsafe impl ::windows_core::Interface for IDWriteFontSet3 { - type Vtable = IDWriteFontSet3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteFontSet3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7c073ef2_a7f4_4045_8c32_8ab8ae640f90); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteFontSet3_Vtbl { @@ -5363,9 +4955,8 @@ pub struct IDWriteFontSet3_Vtbl { pub GetFontSourceNameLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, listindex: u32) -> u32, pub GetFontSourceName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, listindex: u32, stringbuffer: ::windows_core::PWSTR, stringbuffersize: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteFontSet4(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteFontSet4, IDWriteFontSet4_Vtbl, 0xeec175fc_bea9_4c86_8b53_ccbdd7df0c82); +::windows_core::imp::interface_hierarchy!(IDWriteFontSet4, ::windows_core::IUnknown, IDWriteFontSet, IDWriteFontSet1, IDWriteFontSet2, IDWriteFontSet3); impl IDWriteFontSet4 { pub unsafe fn GetFontCount(&self) -> u32 { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.GetFontCount)(::windows_core::Interface::as_raw(self)) @@ -5497,15 +5088,8 @@ impl IDWriteFontSet4 { (::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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDWriteFontSet4, ::windows_core::IUnknown, IDWriteFontSet, IDWriteFontSet1, IDWriteFontSet2, IDWriteFontSet3); unsafe impl ::core::marker::Send for IDWriteFontSet4 {} unsafe impl ::core::marker::Sync for IDWriteFontSet4 {} -unsafe impl ::windows_core::Interface for IDWriteFontSet4 { - type Vtable = IDWriteFontSet4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteFontSet4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeec175fc_bea9_4c86_8b53_ccbdd7df0c82); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteFontSet4_Vtbl { @@ -5513,9 +5097,8 @@ pub struct IDWriteFontSet4_Vtbl { pub ConvertWeightStretchStyleToFontAxisValues: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, inputaxisvalues: *const DWRITE_FONT_AXIS_VALUE, inputaxiscount: u32, fontweight: DWRITE_FONT_WEIGHT, fontstretch: DWRITE_FONT_STRETCH, fontstyle: DWRITE_FONT_STYLE, fontsize: f32, outputaxisvalues: *mut DWRITE_FONT_AXIS_VALUE) -> u32, pub GetMatchingFonts4: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, familyname: ::windows_core::PCWSTR, fontaxisvalues: *const DWRITE_FONT_AXIS_VALUE, fontaxisvaluecount: u32, allowedsimulations: DWRITE_FONT_SIMULATIONS, matchingfonts: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteFontSetBuilder(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteFontSetBuilder, IDWriteFontSetBuilder_Vtbl, 0x2f642afe_9c68_4f40_b8be_457401afcb3d); +::windows_core::imp::interface_hierarchy!(IDWriteFontSetBuilder, ::windows_core::IUnknown); impl IDWriteFontSetBuilder { pub unsafe fn AddFontFaceReference(&self, fontfacereference: P0, properties: &[DWRITE_FONT_PROPERTY]) -> ::windows_core::Result<()> where @@ -5540,15 +5123,8 @@ impl IDWriteFontSetBuilder { (::windows_core::Interface::vtable(self).CreateFontSet)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDWriteFontSetBuilder, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for IDWriteFontSetBuilder {} unsafe impl ::core::marker::Sync for IDWriteFontSetBuilder {} -unsafe impl ::windows_core::Interface for IDWriteFontSetBuilder { - type Vtable = IDWriteFontSetBuilder_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteFontSetBuilder { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2f642afe_9c68_4f40_b8be_457401afcb3d); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteFontSetBuilder_Vtbl { @@ -5558,9 +5134,8 @@ pub struct IDWriteFontSetBuilder_Vtbl { pub AddFontSet: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fontset: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateFontSet: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fontset: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteFontSetBuilder1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteFontSetBuilder1, IDWriteFontSetBuilder1_Vtbl, 0x3ff7715f_3cdc_4dc6_9b72_ec5621dccafd); +::windows_core::imp::interface_hierarchy!(IDWriteFontSetBuilder1, ::windows_core::IUnknown, IDWriteFontSetBuilder); impl IDWriteFontSetBuilder1 { pub unsafe fn AddFontFaceReference(&self, fontfacereference: P0, properties: &[DWRITE_FONT_PROPERTY]) -> ::windows_core::Result<()> where @@ -5591,24 +5166,16 @@ impl IDWriteFontSetBuilder1 { (::windows_core::Interface::vtable(self).AddFontFile)(::windows_core::Interface::as_raw(self), fontfile.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IDWriteFontSetBuilder1, ::windows_core::IUnknown, IDWriteFontSetBuilder); unsafe impl ::core::marker::Send for IDWriteFontSetBuilder1 {} unsafe impl ::core::marker::Sync for IDWriteFontSetBuilder1 {} -unsafe impl ::windows_core::Interface for IDWriteFontSetBuilder1 { - type Vtable = IDWriteFontSetBuilder1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteFontSetBuilder1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3ff7715f_3cdc_4dc6_9b72_ec5621dccafd); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteFontSetBuilder1_Vtbl { pub base__: IDWriteFontSetBuilder_Vtbl, pub AddFontFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fontfile: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteFontSetBuilder2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteFontSetBuilder2, IDWriteFontSetBuilder2_Vtbl, 0xee5ba612_b131_463c_8f4f_3189b9401e45); +::windows_core::imp::interface_hierarchy!(IDWriteFontSetBuilder2, ::windows_core::IUnknown, IDWriteFontSetBuilder, IDWriteFontSetBuilder1); impl IDWriteFontSetBuilder2 { pub unsafe fn AddFontFaceReference(&self, fontfacereference: P0, properties: &[DWRITE_FONT_PROPERTY]) -> ::windows_core::Result<()> where @@ -5651,15 +5218,8 @@ impl IDWriteFontSetBuilder2 { (::windows_core::Interface::vtable(self).AddFontFile2)(::windows_core::Interface::as_raw(self), filepath.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IDWriteFontSetBuilder2, ::windows_core::IUnknown, IDWriteFontSetBuilder, IDWriteFontSetBuilder1); unsafe impl ::core::marker::Send for IDWriteFontSetBuilder2 {} unsafe impl ::core::marker::Sync for IDWriteFontSetBuilder2 {} -unsafe impl ::windows_core::Interface for IDWriteFontSetBuilder2 { - type Vtable = IDWriteFontSetBuilder2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteFontSetBuilder2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xee5ba612_b131_463c_8f4f_3189b9401e45); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteFontSetBuilder2_Vtbl { @@ -5667,9 +5227,8 @@ pub struct IDWriteFontSetBuilder2_Vtbl { pub AddFont: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fontfile: *mut ::core::ffi::c_void, fontfaceindex: u32, fontsimulations: DWRITE_FONT_SIMULATIONS, fontaxisvalues: *const DWRITE_FONT_AXIS_VALUE, fontaxisvaluecount: u32, fontaxisranges: *const DWRITE_FONT_AXIS_RANGE, fontaxisrangecount: u32, properties: *const DWRITE_FONT_PROPERTY, propertycount: u32) -> ::windows_core::HRESULT, pub AddFontFile2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filepath: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteGdiInterop(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteGdiInterop, IDWriteGdiInterop_Vtbl, 0x1edd9491_9853_4299_898f_6432983b6f3a); +::windows_core::imp::interface_hierarchy!(IDWriteGdiInterop, ::windows_core::IUnknown); impl IDWriteGdiInterop { #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] #[cfg(feature = "Win32_Graphics_Gdi")] @@ -5712,15 +5271,8 @@ impl IDWriteGdiInterop { (::windows_core::Interface::vtable(self).CreateBitmapRenderTarget)(::windows_core::Interface::as_raw(self), hdc.into_param().abi(), width, height, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDWriteGdiInterop, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for IDWriteGdiInterop {} unsafe impl ::core::marker::Sync for IDWriteGdiInterop {} -unsafe impl ::windows_core::Interface for IDWriteGdiInterop { - type Vtable = IDWriteGdiInterop_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteGdiInterop { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1edd9491_9853_4299_898f_6432983b6f3a); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteGdiInterop_Vtbl { @@ -5746,9 +5298,8 @@ pub struct IDWriteGdiInterop_Vtbl { #[cfg(not(feature = "Win32_Graphics_Gdi"))] CreateBitmapRenderTarget: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteGdiInterop1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteGdiInterop1, IDWriteGdiInterop1_Vtbl, 0x4556be70_3abd_4f70_90be_421780a6f515); +::windows_core::imp::interface_hierarchy!(IDWriteGdiInterop1, ::windows_core::IUnknown, IDWriteGdiInterop); impl IDWriteGdiInterop1 { #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] #[cfg(feature = "Win32_Graphics_Gdi")] @@ -5825,15 +5376,8 @@ impl IDWriteGdiInterop1 { (::windows_core::Interface::vtable(self).GetMatchingFontsByLOGFONT)(::windows_core::Interface::as_raw(self), logfont, fontset.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDWriteGdiInterop1, ::windows_core::IUnknown, IDWriteGdiInterop); unsafe impl ::core::marker::Send for IDWriteGdiInterop1 {} unsafe impl ::core::marker::Sync for IDWriteGdiInterop1 {} -unsafe impl ::windows_core::Interface for IDWriteGdiInterop1 { - type Vtable = IDWriteGdiInterop1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteGdiInterop1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4556be70_3abd_4f70_90be_421780a6f515); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteGdiInterop1_Vtbl { @@ -5855,9 +5399,8 @@ pub struct IDWriteGdiInterop1_Vtbl { #[cfg(not(feature = "Win32_Graphics_Gdi"))] GetMatchingFontsByLOGFONT: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteGlyphRunAnalysis(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteGlyphRunAnalysis, IDWriteGlyphRunAnalysis_Vtbl, 0x7d97dbf7_e085_42d4_81e3_6a883bded118); +::windows_core::imp::interface_hierarchy!(IDWriteGlyphRunAnalysis, ::windows_core::IUnknown); impl IDWriteGlyphRunAnalysis { pub unsafe fn GetAlphaTextureBounds(&self, texturetype: DWRITE_TEXTURE_TYPE) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -5873,15 +5416,8 @@ impl IDWriteGlyphRunAnalysis { (::windows_core::Interface::vtable(self).GetAlphaBlendParams)(::windows_core::Interface::as_raw(self), renderingparams.into_param().abi(), blendgamma, blendenhancedcontrast, blendcleartypelevel).ok() } } -::windows_core::imp::interface_hierarchy!(IDWriteGlyphRunAnalysis, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for IDWriteGlyphRunAnalysis {} unsafe impl ::core::marker::Sync for IDWriteGlyphRunAnalysis {} -unsafe impl ::windows_core::Interface for IDWriteGlyphRunAnalysis { - type Vtable = IDWriteGlyphRunAnalysis_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteGlyphRunAnalysis { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7d97dbf7_e085_42d4_81e3_6a883bded118); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteGlyphRunAnalysis_Vtbl { @@ -5890,9 +5426,8 @@ pub struct IDWriteGlyphRunAnalysis_Vtbl { pub CreateAlphaTexture: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, texturetype: DWRITE_TEXTURE_TYPE, texturebounds: *const super::super::Foundation::RECT, alphavalues: *mut u8, buffersize: u32) -> ::windows_core::HRESULT, pub GetAlphaBlendParams: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, renderingparams: *mut ::core::ffi::c_void, blendgamma: *mut f32, blendenhancedcontrast: *mut f32, blendcleartypelevel: *mut f32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteInMemoryFontFileLoader(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteInMemoryFontFileLoader, IDWriteInMemoryFontFileLoader_Vtbl, 0xdc102f47_a12d_4b1c_822d_9e117e33043f); +::windows_core::imp::interface_hierarchy!(IDWriteInMemoryFontFileLoader, ::windows_core::IUnknown, IDWriteFontFileLoader); impl IDWriteInMemoryFontFileLoader { pub unsafe fn CreateStreamFromKey(&self, fontfilereferencekey: *const ::core::ffi::c_void, fontfilereferencekeysize: u32) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -5910,15 +5445,8 @@ impl IDWriteInMemoryFontFileLoader { (::windows_core::Interface::vtable(self).GetFileCount)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(IDWriteInMemoryFontFileLoader, ::windows_core::IUnknown, IDWriteFontFileLoader); unsafe impl ::core::marker::Send for IDWriteInMemoryFontFileLoader {} unsafe impl ::core::marker::Sync for IDWriteInMemoryFontFileLoader {} -unsafe impl ::windows_core::Interface for IDWriteInMemoryFontFileLoader { - type Vtable = IDWriteInMemoryFontFileLoader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteInMemoryFontFileLoader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdc102f47_a12d_4b1c_822d_9e117e33043f); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteInMemoryFontFileLoader_Vtbl { @@ -5926,9 +5454,8 @@ pub struct IDWriteInMemoryFontFileLoader_Vtbl { pub CreateInMemoryFontFileReference: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, factory: *mut ::core::ffi::c_void, fontdata: *const ::core::ffi::c_void, fontdatasize: u32, ownerobject: *mut ::core::ffi::c_void, fontfile: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetFileCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> u32, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteInlineObject(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteInlineObject, IDWriteInlineObject_Vtbl, 0x8339fde3_106f_47ab_8373_1c6295eb10b3); +::windows_core::imp::interface_hierarchy!(IDWriteInlineObject, ::windows_core::IUnknown); impl IDWriteInlineObject { pub unsafe fn Draw(&self, clientdrawingcontext: ::core::option::Option<*const ::core::ffi::c_void>, renderer: P0, originx: f32, originy: f32, issideways: P1, isrighttoleft: P2, clientdrawingeffect: P3) -> ::windows_core::Result<()> where @@ -5951,15 +5478,8 @@ impl IDWriteInlineObject { (::windows_core::Interface::vtable(self).GetBreakConditions)(::windows_core::Interface::as_raw(self), breakconditionbefore, breakconditionafter).ok() } } -::windows_core::imp::interface_hierarchy!(IDWriteInlineObject, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for IDWriteInlineObject {} unsafe impl ::core::marker::Sync for IDWriteInlineObject {} -unsafe impl ::windows_core::Interface for IDWriteInlineObject { - type Vtable = IDWriteInlineObject_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteInlineObject { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8339fde3_106f_47ab_8373_1c6295eb10b3); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteInlineObject_Vtbl { @@ -5969,9 +5489,8 @@ pub struct IDWriteInlineObject_Vtbl { pub GetOverhangMetrics: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, overhangs: *mut DWRITE_OVERHANG_METRICS) -> ::windows_core::HRESULT, pub GetBreakConditions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, breakconditionbefore: *mut DWRITE_BREAK_CONDITION, breakconditionafter: *mut DWRITE_BREAK_CONDITION) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteLocalFontFileLoader(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteLocalFontFileLoader, IDWriteLocalFontFileLoader_Vtbl, 0xb2d9f3ec_c9fe_4a11_a2ec_d86208f7c0a2); +::windows_core::imp::interface_hierarchy!(IDWriteLocalFontFileLoader, ::windows_core::IUnknown, IDWriteFontFileLoader); impl IDWriteLocalFontFileLoader { pub unsafe fn CreateStreamFromKey(&self, fontfilereferencekey: *const ::core::ffi::c_void, fontfilereferencekeysize: u32) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -5989,15 +5508,8 @@ impl IDWriteLocalFontFileLoader { (::windows_core::Interface::vtable(self).GetLastWriteTimeFromKey)(::windows_core::Interface::as_raw(self), fontfilereferencekey, fontfilereferencekeysize, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDWriteLocalFontFileLoader, ::windows_core::IUnknown, IDWriteFontFileLoader); unsafe impl ::core::marker::Send for IDWriteLocalFontFileLoader {} unsafe impl ::core::marker::Sync for IDWriteLocalFontFileLoader {} -unsafe impl ::windows_core::Interface for IDWriteLocalFontFileLoader { - type Vtable = IDWriteLocalFontFileLoader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteLocalFontFileLoader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb2d9f3ec_c9fe_4a11_a2ec_d86208f7c0a2); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteLocalFontFileLoader_Vtbl { @@ -6006,9 +5518,8 @@ pub struct IDWriteLocalFontFileLoader_Vtbl { pub GetFilePathFromKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fontfilereferencekey: *const ::core::ffi::c_void, fontfilereferencekeysize: u32, filepath: ::windows_core::PWSTR, filepathsize: u32) -> ::windows_core::HRESULT, pub GetLastWriteTimeFromKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fontfilereferencekey: *const ::core::ffi::c_void, fontfilereferencekeysize: u32, lastwritetime: *mut super::super::Foundation::FILETIME) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteLocalizedStrings(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteLocalizedStrings, IDWriteLocalizedStrings_Vtbl, 0x08256209_099a_4b34_b86d_c22b110e7771); +::windows_core::imp::interface_hierarchy!(IDWriteLocalizedStrings, ::windows_core::IUnknown); impl IDWriteLocalizedStrings { pub unsafe fn GetCount(&self) -> u32 { (::windows_core::Interface::vtable(self).GetCount)(::windows_core::Interface::as_raw(self)) @@ -6034,15 +5545,8 @@ impl IDWriteLocalizedStrings { (::windows_core::Interface::vtable(self).GetString)(::windows_core::Interface::as_raw(self), index, ::core::mem::transmute(stringbuffer.as_ptr()), stringbuffer.len().try_into().unwrap()).ok() } } -::windows_core::imp::interface_hierarchy!(IDWriteLocalizedStrings, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for IDWriteLocalizedStrings {} unsafe impl ::core::marker::Sync for IDWriteLocalizedStrings {} -unsafe impl ::windows_core::Interface for IDWriteLocalizedStrings { - type Vtable = IDWriteLocalizedStrings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteLocalizedStrings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x08256209_099a_4b34_b86d_c22b110e7771); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteLocalizedStrings_Vtbl { @@ -6054,27 +5558,18 @@ pub struct IDWriteLocalizedStrings_Vtbl { pub GetStringLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, length: *mut u32) -> ::windows_core::HRESULT, pub GetString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, stringbuffer: ::windows_core::PWSTR, size: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteNumberSubstitution(::windows_core::IUnknown); -impl IDWriteNumberSubstitution {} +::windows_core::imp::com_interface!(IDWriteNumberSubstitution, IDWriteNumberSubstitution_Vtbl, 0x14885cc9_bab0_4f90_b6ed_5c366a2cd03d); ::windows_core::imp::interface_hierarchy!(IDWriteNumberSubstitution, ::windows_core::IUnknown); +impl IDWriteNumberSubstitution {} unsafe impl ::core::marker::Send for IDWriteNumberSubstitution {} unsafe impl ::core::marker::Sync for IDWriteNumberSubstitution {} -unsafe impl ::windows_core::Interface for IDWriteNumberSubstitution { - type Vtable = IDWriteNumberSubstitution_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteNumberSubstitution { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x14885cc9_bab0_4f90_b6ed_5c366a2cd03d); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteNumberSubstitution_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWritePixelSnapping(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWritePixelSnapping, IDWritePixelSnapping_Vtbl, 0xeaf3a2da_ecf4_4d24_b644_b34f6842024b); +::windows_core::imp::interface_hierarchy!(IDWritePixelSnapping, ::windows_core::IUnknown); impl IDWritePixelSnapping { pub unsafe fn IsPixelSnappingDisabled(&self, clientdrawingcontext: ::core::option::Option<*const ::core::ffi::c_void>) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -6088,15 +5583,8 @@ impl IDWritePixelSnapping { (::windows_core::Interface::vtable(self).GetPixelsPerDip)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(clientdrawingcontext.unwrap_or(::std::ptr::null())), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDWritePixelSnapping, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for IDWritePixelSnapping {} unsafe impl ::core::marker::Sync for IDWritePixelSnapping {} -unsafe impl ::windows_core::Interface for IDWritePixelSnapping { - type Vtable = IDWritePixelSnapping_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWritePixelSnapping { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeaf3a2da_ecf4_4d24_b644_b34f6842024b); -} #[repr(C)] #[doc(hidden)] pub struct IDWritePixelSnapping_Vtbl { @@ -6105,9 +5593,8 @@ pub struct IDWritePixelSnapping_Vtbl { pub GetCurrentTransform: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, clientdrawingcontext: *const ::core::ffi::c_void, transform: *mut DWRITE_MATRIX) -> ::windows_core::HRESULT, pub GetPixelsPerDip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, clientdrawingcontext: *const ::core::ffi::c_void, pixelsperdip: *mut f32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteRemoteFontFileLoader(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteRemoteFontFileLoader, IDWriteRemoteFontFileLoader_Vtbl, 0x68648c83_6ede_46c0_ab46_20083a887fde); +::windows_core::imp::interface_hierarchy!(IDWriteRemoteFontFileLoader, ::windows_core::IUnknown, IDWriteFontFileLoader); impl IDWriteRemoteFontFileLoader { pub unsafe fn CreateStreamFromKey(&self, fontfilereferencekey: *const ::core::ffi::c_void, fontfilereferencekeysize: u32) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -6131,15 +5618,8 @@ impl IDWriteRemoteFontFileLoader { (::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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDWriteRemoteFontFileLoader, ::windows_core::IUnknown, IDWriteFontFileLoader); unsafe impl ::core::marker::Send for IDWriteRemoteFontFileLoader {} unsafe impl ::core::marker::Sync for IDWriteRemoteFontFileLoader {} -unsafe impl ::windows_core::Interface for IDWriteRemoteFontFileLoader { - type Vtable = IDWriteRemoteFontFileLoader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteRemoteFontFileLoader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x68648c83_6ede_46c0_ab46_20083a887fde); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteRemoteFontFileLoader_Vtbl { @@ -6148,9 +5628,8 @@ pub struct IDWriteRemoteFontFileLoader_Vtbl { pub GetLocalityFromKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fontfilereferencekey: *const ::core::ffi::c_void, fontfilereferencekeysize: u32, locality: *mut DWRITE_LOCALITY) -> ::windows_core::HRESULT, pub CreateFontFileReferenceFromUrl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, factory: *mut ::core::ffi::c_void, baseurl: ::windows_core::PCWSTR, fontfileurl: ::windows_core::PCWSTR, fontfile: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteRemoteFontFileStream(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteRemoteFontFileStream, IDWriteRemoteFontFileStream_Vtbl, 0x4db3757a_2c72_4ed9_b2b6_1ababe1aff9c); +::windows_core::imp::interface_hierarchy!(IDWriteRemoteFontFileStream, ::windows_core::IUnknown, IDWriteFontFileStream); impl IDWriteRemoteFontFileStream { pub unsafe fn ReadFileFragment(&self, fragmentstart: *mut *mut ::core::ffi::c_void, fileoffset: u64, fragmentsize: u64, fragmentcontext: *mut *mut ::core::ffi::c_void) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.ReadFileFragment)(::windows_core::Interface::as_raw(self), fragmentstart, fileoffset, fragmentsize, fragmentcontext).ok() @@ -6181,15 +5660,8 @@ impl IDWriteRemoteFontFileStream { (::windows_core::Interface::vtable(self).BeginDownload)(::windows_core::Interface::as_raw(self), downloadoperationid, ::core::mem::transmute(filefragments.as_ptr()), filefragments.len().try_into().unwrap(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDWriteRemoteFontFileStream, ::windows_core::IUnknown, IDWriteFontFileStream); unsafe impl ::core::marker::Send for IDWriteRemoteFontFileStream {} unsafe impl ::core::marker::Sync for IDWriteRemoteFontFileStream {} -unsafe impl ::windows_core::Interface for IDWriteRemoteFontFileStream { - type Vtable = IDWriteRemoteFontFileStream_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteRemoteFontFileStream { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4db3757a_2c72_4ed9_b2b6_1ababe1aff9c); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteRemoteFontFileStream_Vtbl { @@ -6199,9 +5671,8 @@ pub struct IDWriteRemoteFontFileStream_Vtbl { pub GetLocality: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> DWRITE_LOCALITY, pub BeginDownload: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, downloadoperationid: *const ::windows_core::GUID, filefragments: *const DWRITE_FILE_FRAGMENT, fragmentcount: u32, asyncresult: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteRenderingParams(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteRenderingParams, IDWriteRenderingParams_Vtbl, 0x2f0da53a_2add_47cd_82ee_d9ec34688e75); +::windows_core::imp::interface_hierarchy!(IDWriteRenderingParams, ::windows_core::IUnknown); impl IDWriteRenderingParams { pub unsafe fn GetGamma(&self) -> f32 { (::windows_core::Interface::vtable(self).GetGamma)(::windows_core::Interface::as_raw(self)) @@ -6219,15 +5690,8 @@ impl IDWriteRenderingParams { (::windows_core::Interface::vtable(self).GetRenderingMode)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(IDWriteRenderingParams, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for IDWriteRenderingParams {} unsafe impl ::core::marker::Sync for IDWriteRenderingParams {} -unsafe impl ::windows_core::Interface for IDWriteRenderingParams { - type Vtable = IDWriteRenderingParams_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteRenderingParams { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2f0da53a_2add_47cd_82ee_d9ec34688e75); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteRenderingParams_Vtbl { @@ -6238,9 +5702,8 @@ pub struct IDWriteRenderingParams_Vtbl { pub GetPixelGeometry: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> DWRITE_PIXEL_GEOMETRY, pub GetRenderingMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> DWRITE_RENDERING_MODE, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteRenderingParams1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteRenderingParams1, IDWriteRenderingParams1_Vtbl, 0x94413cf4_a6fc_4248_8b50_6674348fcad3); +::windows_core::imp::interface_hierarchy!(IDWriteRenderingParams1, ::windows_core::IUnknown, IDWriteRenderingParams); impl IDWriteRenderingParams1 { pub unsafe fn GetGamma(&self) -> f32 { (::windows_core::Interface::vtable(self).base__.GetGamma)(::windows_core::Interface::as_raw(self)) @@ -6261,24 +5724,16 @@ impl IDWriteRenderingParams1 { (::windows_core::Interface::vtable(self).GetGrayscaleEnhancedContrast)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(IDWriteRenderingParams1, ::windows_core::IUnknown, IDWriteRenderingParams); unsafe impl ::core::marker::Send for IDWriteRenderingParams1 {} unsafe impl ::core::marker::Sync for IDWriteRenderingParams1 {} -unsafe impl ::windows_core::Interface for IDWriteRenderingParams1 { - type Vtable = IDWriteRenderingParams1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteRenderingParams1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x94413cf4_a6fc_4248_8b50_6674348fcad3); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteRenderingParams1_Vtbl { pub base__: IDWriteRenderingParams_Vtbl, pub GetGrayscaleEnhancedContrast: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> f32, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteRenderingParams2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteRenderingParams2, IDWriteRenderingParams2_Vtbl, 0xf9d711c3_9777_40ae_87e8_3e5af9bf0948); +::windows_core::imp::interface_hierarchy!(IDWriteRenderingParams2, ::windows_core::IUnknown, IDWriteRenderingParams, IDWriteRenderingParams1); impl IDWriteRenderingParams2 { pub unsafe fn GetGamma(&self) -> f32 { (::windows_core::Interface::vtable(self).base__.base__.GetGamma)(::windows_core::Interface::as_raw(self)) @@ -6302,24 +5757,16 @@ impl IDWriteRenderingParams2 { (::windows_core::Interface::vtable(self).GetGridFitMode)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(IDWriteRenderingParams2, ::windows_core::IUnknown, IDWriteRenderingParams, IDWriteRenderingParams1); unsafe impl ::core::marker::Send for IDWriteRenderingParams2 {} unsafe impl ::core::marker::Sync for IDWriteRenderingParams2 {} -unsafe impl ::windows_core::Interface for IDWriteRenderingParams2 { - type Vtable = IDWriteRenderingParams2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteRenderingParams2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf9d711c3_9777_40ae_87e8_3e5af9bf0948); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteRenderingParams2_Vtbl { pub base__: IDWriteRenderingParams1_Vtbl, pub GetGridFitMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> DWRITE_GRID_FIT_MODE, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteRenderingParams3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteRenderingParams3, IDWriteRenderingParams3_Vtbl, 0xb7924baa_391b_412a_8c5c_e44cc2d867dc); +::windows_core::imp::interface_hierarchy!(IDWriteRenderingParams3, ::windows_core::IUnknown, IDWriteRenderingParams, IDWriteRenderingParams1, IDWriteRenderingParams2); impl IDWriteRenderingParams3 { pub unsafe fn GetGamma(&self) -> f32 { (::windows_core::Interface::vtable(self).base__.base__.base__.GetGamma)(::windows_core::Interface::as_raw(self)) @@ -6346,24 +5793,16 @@ impl IDWriteRenderingParams3 { (::windows_core::Interface::vtable(self).GetRenderingMode1)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(IDWriteRenderingParams3, ::windows_core::IUnknown, IDWriteRenderingParams, IDWriteRenderingParams1, IDWriteRenderingParams2); unsafe impl ::core::marker::Send for IDWriteRenderingParams3 {} unsafe impl ::core::marker::Sync for IDWriteRenderingParams3 {} -unsafe impl ::windows_core::Interface for IDWriteRenderingParams3 { - type Vtable = IDWriteRenderingParams3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteRenderingParams3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb7924baa_391b_412a_8c5c_e44cc2d867dc); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteRenderingParams3_Vtbl { pub base__: IDWriteRenderingParams2_Vtbl, pub GetRenderingMode1: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> DWRITE_RENDERING_MODE1, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteStringList(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteStringList, IDWriteStringList_Vtbl, 0xcfee3140_1157_47ca_8b85_31bfcf3f2d0e); +::windows_core::imp::interface_hierarchy!(IDWriteStringList, ::windows_core::IUnknown); impl IDWriteStringList { pub unsafe fn GetCount(&self) -> u32 { (::windows_core::Interface::vtable(self).GetCount)(::windows_core::Interface::as_raw(self)) @@ -6383,15 +5822,8 @@ impl IDWriteStringList { (::windows_core::Interface::vtable(self).GetString)(::windows_core::Interface::as_raw(self), listindex, ::core::mem::transmute(stringbuffer.as_ptr()), stringbuffer.len().try_into().unwrap()).ok() } } -::windows_core::imp::interface_hierarchy!(IDWriteStringList, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for IDWriteStringList {} unsafe impl ::core::marker::Sync for IDWriteStringList {} -unsafe impl ::windows_core::Interface for IDWriteStringList { - type Vtable = IDWriteStringList_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteStringList { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcfee3140_1157_47ca_8b85_31bfcf3f2d0e); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteStringList_Vtbl { @@ -6402,9 +5834,8 @@ pub struct IDWriteStringList_Vtbl { pub GetStringLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, listindex: u32, length: *mut u32) -> ::windows_core::HRESULT, pub GetString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, listindex: u32, stringbuffer: ::windows_core::PWSTR, stringbuffersize: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteTextAnalysisSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteTextAnalysisSink, IDWriteTextAnalysisSink_Vtbl, 0x5810cd44_0ca0_4701_b3fa_bec5182ae4f6); +::windows_core::imp::interface_hierarchy!(IDWriteTextAnalysisSink, ::windows_core::IUnknown); impl IDWriteTextAnalysisSink { pub unsafe fn SetScriptAnalysis(&self, textposition: u32, textlength: u32, scriptanalysis: *const DWRITE_SCRIPT_ANALYSIS) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetScriptAnalysis)(::windows_core::Interface::as_raw(self), textposition, textlength, scriptanalysis).ok() @@ -6422,15 +5853,8 @@ impl IDWriteTextAnalysisSink { (::windows_core::Interface::vtable(self).SetNumberSubstitution)(::windows_core::Interface::as_raw(self), textposition, textlength, numbersubstitution.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IDWriteTextAnalysisSink, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for IDWriteTextAnalysisSink {} unsafe impl ::core::marker::Sync for IDWriteTextAnalysisSink {} -unsafe impl ::windows_core::Interface for IDWriteTextAnalysisSink { - type Vtable = IDWriteTextAnalysisSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteTextAnalysisSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5810cd44_0ca0_4701_b3fa_bec5182ae4f6); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteTextAnalysisSink_Vtbl { @@ -6440,9 +5864,8 @@ pub struct IDWriteTextAnalysisSink_Vtbl { pub SetBidiLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, textposition: u32, textlength: u32, explicitlevel: u8, resolvedlevel: u8) -> ::windows_core::HRESULT, pub SetNumberSubstitution: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, textposition: u32, textlength: u32, numbersubstitution: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteTextAnalysisSink1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteTextAnalysisSink1, IDWriteTextAnalysisSink1_Vtbl, 0xb0d941a0_85e7_4d8b_9fd3_5ced9934482a); +::windows_core::imp::interface_hierarchy!(IDWriteTextAnalysisSink1, ::windows_core::IUnknown, IDWriteTextAnalysisSink); impl IDWriteTextAnalysisSink1 { pub unsafe fn SetScriptAnalysis(&self, textposition: u32, textlength: u32, scriptanalysis: *const DWRITE_SCRIPT_ANALYSIS) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.SetScriptAnalysis)(::windows_core::Interface::as_raw(self), textposition, textlength, scriptanalysis).ok() @@ -6467,24 +5890,16 @@ impl IDWriteTextAnalysisSink1 { (::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::imp::interface_hierarchy!(IDWriteTextAnalysisSink1, ::windows_core::IUnknown, IDWriteTextAnalysisSink); unsafe impl ::core::marker::Send for IDWriteTextAnalysisSink1 {} unsafe impl ::core::marker::Sync for IDWriteTextAnalysisSink1 {} -unsafe impl ::windows_core::Interface for IDWriteTextAnalysisSink1 { - type Vtable = IDWriteTextAnalysisSink1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteTextAnalysisSink1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb0d941a0_85e7_4d8b_9fd3_5ced9934482a); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteTextAnalysisSink1_Vtbl { pub base__: IDWriteTextAnalysisSink_Vtbl, pub SetGlyphOrientation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, textposition: u32, textlength: u32, glyphorientationangle: DWRITE_GLYPH_ORIENTATION_ANGLE, adjustedbidilevel: u8, issideways: super::super::Foundation::BOOL, isrighttoleft: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteTextAnalysisSource(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteTextAnalysisSource, IDWriteTextAnalysisSource_Vtbl, 0x688e1a58_5094_47c8_adc8_fbcea60ae92b); +::windows_core::imp::interface_hierarchy!(IDWriteTextAnalysisSource, ::windows_core::IUnknown); impl IDWriteTextAnalysisSource { pub unsafe fn GetTextAtPosition(&self, textposition: u32, textstring: *mut *mut u16, textlength: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetTextAtPosition)(::windows_core::Interface::as_raw(self), textposition, textstring, textlength).ok() @@ -6502,15 +5917,8 @@ impl IDWriteTextAnalysisSource { (::windows_core::Interface::vtable(self).GetNumberSubstitution)(::windows_core::Interface::as_raw(self), textposition, textlength, ::core::mem::transmute(numbersubstitution)).ok() } } -::windows_core::imp::interface_hierarchy!(IDWriteTextAnalysisSource, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for IDWriteTextAnalysisSource {} unsafe impl ::core::marker::Sync for IDWriteTextAnalysisSource {} -unsafe impl ::windows_core::Interface for IDWriteTextAnalysisSource { - type Vtable = IDWriteTextAnalysisSource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteTextAnalysisSource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x688e1a58_5094_47c8_adc8_fbcea60ae92b); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteTextAnalysisSource_Vtbl { @@ -6521,9 +5929,8 @@ pub struct IDWriteTextAnalysisSource_Vtbl { pub GetLocaleName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, textposition: u32, textlength: *mut u32, localename: *mut *mut u16) -> ::windows_core::HRESULT, pub GetNumberSubstitution: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, textposition: u32, textlength: *mut u32, numbersubstitution: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteTextAnalysisSource1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteTextAnalysisSource1, IDWriteTextAnalysisSource1_Vtbl, 0x639cfad8_0fb4_4b21_a58a_067920120009); +::windows_core::imp::interface_hierarchy!(IDWriteTextAnalysisSource1, ::windows_core::IUnknown, IDWriteTextAnalysisSource); impl IDWriteTextAnalysisSource1 { pub unsafe fn GetTextAtPosition(&self, textposition: u32, textstring: *mut *mut u16, textlength: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.GetTextAtPosition)(::windows_core::Interface::as_raw(self), textposition, textstring, textlength).ok() @@ -6544,24 +5951,16 @@ impl IDWriteTextAnalysisSource1 { (::windows_core::Interface::vtable(self).GetVerticalGlyphOrientation)(::windows_core::Interface::as_raw(self), textposition, textlength, glyphorientation, bidilevel).ok() } } -::windows_core::imp::interface_hierarchy!(IDWriteTextAnalysisSource1, ::windows_core::IUnknown, IDWriteTextAnalysisSource); unsafe impl ::core::marker::Send for IDWriteTextAnalysisSource1 {} unsafe impl ::core::marker::Sync for IDWriteTextAnalysisSource1 {} -unsafe impl ::windows_core::Interface for IDWriteTextAnalysisSource1 { - type Vtable = IDWriteTextAnalysisSource1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteTextAnalysisSource1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x639cfad8_0fb4_4b21_a58a_067920120009); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteTextAnalysisSource1_Vtbl { pub base__: IDWriteTextAnalysisSource_Vtbl, pub GetVerticalGlyphOrientation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, textposition: u32, textlength: *mut u32, glyphorientation: *mut DWRITE_VERTICAL_GLYPH_ORIENTATION, bidilevel: *mut u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteTextAnalyzer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteTextAnalyzer, IDWriteTextAnalyzer_Vtbl, 0xb7e6163e_7f46_43b4_84b3_e4e6249c365d); +::windows_core::imp::interface_hierarchy!(IDWriteTextAnalyzer, ::windows_core::IUnknown); impl IDWriteTextAnalyzer { pub unsafe fn AnalyzeScript(&self, analysissource: P0, textposition: u32, textlength: u32, analysissink: P1) -> ::windows_core::Result<()> where @@ -6668,15 +6067,8 @@ impl IDWriteTextAnalyzer { .ok() } } -::windows_core::imp::interface_hierarchy!(IDWriteTextAnalyzer, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for IDWriteTextAnalyzer {} unsafe impl ::core::marker::Sync for IDWriteTextAnalyzer {} -unsafe impl ::windows_core::Interface for IDWriteTextAnalyzer { - type Vtable = IDWriteTextAnalyzer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteTextAnalyzer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb7e6163e_7f46_43b4_84b3_e4e6249c365d); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteTextAnalyzer_Vtbl { @@ -6712,9 +6104,8 @@ pub struct IDWriteTextAnalyzer_Vtbl { glyphoffsets: *mut DWRITE_GLYPH_OFFSET, ) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteTextAnalyzer1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteTextAnalyzer1, IDWriteTextAnalyzer1_Vtbl, 0x80dad800_e21f_4e83_96ce_bfcce500db7c); +::windows_core::imp::interface_hierarchy!(IDWriteTextAnalyzer1, ::windows_core::IUnknown, IDWriteTextAnalyzer); impl IDWriteTextAnalyzer1 { pub unsafe fn AnalyzeScript(&self, analysissource: P0, textposition: u32, textlength: u32, analysissink: P1) -> ::windows_core::Result<()> where @@ -6892,15 +6283,8 @@ impl IDWriteTextAnalyzer1 { .ok() } } -::windows_core::imp::interface_hierarchy!(IDWriteTextAnalyzer1, ::windows_core::IUnknown, IDWriteTextAnalyzer); unsafe impl ::core::marker::Send for IDWriteTextAnalyzer1 {} unsafe impl ::core::marker::Sync for IDWriteTextAnalyzer1 {} -unsafe impl ::windows_core::Interface for IDWriteTextAnalyzer1 { - type Vtable = IDWriteTextAnalyzer1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteTextAnalyzer1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x80dad800_e21f_4e83_96ce_bfcce500db7c); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteTextAnalyzer1_Vtbl { @@ -6915,9 +6299,8 @@ pub struct IDWriteTextAnalyzer1_Vtbl { pub JustifyGlyphAdvances: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, linewidth: f32, glyphcount: u32, justificationopportunities: *const DWRITE_JUSTIFICATION_OPPORTUNITY, glyphadvances: *const f32, glyphoffsets: *const DWRITE_GLYPH_OFFSET, justifiedglyphadvances: *mut f32, justifiedglyphoffsets: *mut DWRITE_GLYPH_OFFSET) -> ::windows_core::HRESULT, pub GetJustifiedGlyphs: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fontface: *mut ::core::ffi::c_void, fontemsize: f32, scriptanalysis: DWRITE_SCRIPT_ANALYSIS, textlength: u32, glyphcount: u32, maxglyphcount: u32, clustermap: *const u16, glyphindices: *const u16, glyphadvances: *const f32, justifiedglyphadvances: *const f32, justifiedglyphoffsets: *const DWRITE_GLYPH_OFFSET, glyphproperties: *const DWRITE_SHAPING_GLYPH_PROPERTIES, actualglyphcount: *mut u32, modifiedclustermap: *mut u16, modifiedglyphindices: *mut u16, modifiedglyphadvances: *mut f32, modifiedglyphoffsets: *mut DWRITE_GLYPH_OFFSET) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteTextAnalyzer2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteTextAnalyzer2, IDWriteTextAnalyzer2_Vtbl, 0x553a9ff3_5693_4df7_b52b_74806f7f2eb9); +::windows_core::imp::interface_hierarchy!(IDWriteTextAnalyzer2, ::windows_core::IUnknown, IDWriteTextAnalyzer, IDWriteTextAnalyzer1); impl IDWriteTextAnalyzer2 { pub unsafe fn AnalyzeScript(&self, analysissource: P0, textposition: u32, textlength: u32, analysissink: P1) -> ::windows_core::Result<()> where @@ -7115,15 +6498,8 @@ impl IDWriteTextAnalyzer2 { (::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::imp::interface_hierarchy!(IDWriteTextAnalyzer2, ::windows_core::IUnknown, IDWriteTextAnalyzer, IDWriteTextAnalyzer1); unsafe impl ::core::marker::Send for IDWriteTextAnalyzer2 {} unsafe impl ::core::marker::Sync for IDWriteTextAnalyzer2 {} -unsafe impl ::windows_core::Interface for IDWriteTextAnalyzer2 { - type Vtable = IDWriteTextAnalyzer2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteTextAnalyzer2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x553a9ff3_5693_4df7_b52b_74806f7f2eb9); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteTextAnalyzer2_Vtbl { @@ -7132,9 +6508,8 @@ pub struct IDWriteTextAnalyzer2_Vtbl { pub GetTypographicFeatures: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fontface: *mut ::core::ffi::c_void, scriptanalysis: DWRITE_SCRIPT_ANALYSIS, localename: ::windows_core::PCWSTR, maxtagcount: u32, actualtagcount: *mut u32, tags: *mut DWRITE_FONT_FEATURE_TAG) -> ::windows_core::HRESULT, pub CheckTypographicFeature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fontface: *mut ::core::ffi::c_void, scriptanalysis: DWRITE_SCRIPT_ANALYSIS, localename: ::windows_core::PCWSTR, featuretag: DWRITE_FONT_FEATURE_TAG, glyphcount: u32, glyphindices: *const u16, featureapplies: *mut u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteTextFormat(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteTextFormat, IDWriteTextFormat_Vtbl, 0x9c906818_31d7_4fd3_a151_7c5e225db55a); +::windows_core::imp::interface_hierarchy!(IDWriteTextFormat, ::windows_core::IUnknown); impl IDWriteTextFormat { pub unsafe fn SetTextAlignment(&self, textalignment: DWRITE_TEXT_ALIGNMENT) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetTextAlignment)(::windows_core::Interface::as_raw(self), textalignment).ok() @@ -7216,15 +6591,8 @@ impl IDWriteTextFormat { (::windows_core::Interface::vtable(self).GetLocaleName)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(localename.as_ptr()), localename.len().try_into().unwrap()).ok() } } -::windows_core::imp::interface_hierarchy!(IDWriteTextFormat, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for IDWriteTextFormat {} unsafe impl ::core::marker::Sync for IDWriteTextFormat {} -unsafe impl ::windows_core::Interface for IDWriteTextFormat { - type Vtable = IDWriteTextFormat_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteTextFormat { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9c906818_31d7_4fd3_a151_7c5e225db55a); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteTextFormat_Vtbl { @@ -7255,9 +6623,8 @@ pub struct IDWriteTextFormat_Vtbl { pub GetLocaleNameLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> u32, pub GetLocaleName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, localename: ::windows_core::PWSTR, namesize: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteTextFormat1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteTextFormat1, IDWriteTextFormat1_Vtbl, 0x5f174b49_0d8b_4cfb_8bca_f1cce9d06c67); +::windows_core::imp::interface_hierarchy!(IDWriteTextFormat1, ::windows_core::IUnknown, IDWriteTextFormat); impl IDWriteTextFormat1 { pub unsafe fn SetTextAlignment(&self, textalignment: DWRITE_TEXT_ALIGNMENT) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.SetTextAlignment)(::windows_core::Interface::as_raw(self), textalignment).ok() @@ -7370,15 +6737,8 @@ impl IDWriteTextFormat1 { (::windows_core::Interface::vtable(self).GetFontFallback)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDWriteTextFormat1, ::windows_core::IUnknown, IDWriteTextFormat); unsafe impl ::core::marker::Send for IDWriteTextFormat1 {} unsafe impl ::core::marker::Sync for IDWriteTextFormat1 {} -unsafe impl ::windows_core::Interface for IDWriteTextFormat1 { - type Vtable = IDWriteTextFormat1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteTextFormat1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5f174b49_0d8b_4cfb_8bca_f1cce9d06c67); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteTextFormat1_Vtbl { @@ -7392,9 +6752,8 @@ pub struct IDWriteTextFormat1_Vtbl { pub SetFontFallback: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fontfallback: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetFontFallback: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fontfallback: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteTextFormat2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteTextFormat2, IDWriteTextFormat2_Vtbl, 0xf67e0edd_9e3d_4ecc_8c32_4183253dfe70); +::windows_core::imp::interface_hierarchy!(IDWriteTextFormat2, ::windows_core::IUnknown, IDWriteTextFormat, IDWriteTextFormat1); impl IDWriteTextFormat2 { pub unsafe fn SetTextAlignment(&self, textalignment: DWRITE_TEXT_ALIGNMENT) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.SetTextAlignment)(::windows_core::Interface::as_raw(self), textalignment).ok() @@ -7513,15 +6872,8 @@ impl IDWriteTextFormat2 { (::windows_core::Interface::vtable(self).GetLineSpacing2)(::windows_core::Interface::as_raw(self), linespacingoptions).ok() } } -::windows_core::imp::interface_hierarchy!(IDWriteTextFormat2, ::windows_core::IUnknown, IDWriteTextFormat, IDWriteTextFormat1); unsafe impl ::core::marker::Send for IDWriteTextFormat2 {} unsafe impl ::core::marker::Sync for IDWriteTextFormat2 {} -unsafe impl ::windows_core::Interface for IDWriteTextFormat2 { - type Vtable = IDWriteTextFormat2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteTextFormat2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf67e0edd_9e3d_4ecc_8c32_4183253dfe70); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteTextFormat2_Vtbl { @@ -7529,9 +6881,8 @@ pub struct IDWriteTextFormat2_Vtbl { pub SetLineSpacing2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, linespacingoptions: *const DWRITE_LINE_SPACING) -> ::windows_core::HRESULT, pub GetLineSpacing2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, linespacingoptions: *mut DWRITE_LINE_SPACING) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteTextFormat3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteTextFormat3, IDWriteTextFormat3_Vtbl, 0x6d3b5641_e550_430d_a85b_b7bf48a93427); +::windows_core::imp::interface_hierarchy!(IDWriteTextFormat3, ::windows_core::IUnknown, IDWriteTextFormat, IDWriteTextFormat1, IDWriteTextFormat2); impl IDWriteTextFormat3 { pub unsafe fn SetTextAlignment(&self, textalignment: DWRITE_TEXT_ALIGNMENT) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.SetTextAlignment)(::windows_core::Interface::as_raw(self), textalignment).ok() @@ -7665,15 +7016,8 @@ impl IDWriteTextFormat3 { (::windows_core::Interface::vtable(self).SetAutomaticFontAxes)(::windows_core::Interface::as_raw(self), automaticfontaxes).ok() } } -::windows_core::imp::interface_hierarchy!(IDWriteTextFormat3, ::windows_core::IUnknown, IDWriteTextFormat, IDWriteTextFormat1, IDWriteTextFormat2); unsafe impl ::core::marker::Send for IDWriteTextFormat3 {} unsafe impl ::core::marker::Sync for IDWriteTextFormat3 {} -unsafe impl ::windows_core::Interface for IDWriteTextFormat3 { - type Vtable = IDWriteTextFormat3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteTextFormat3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6d3b5641_e550_430d_a85b_b7bf48a93427); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteTextFormat3_Vtbl { @@ -7684,9 +7028,8 @@ pub struct IDWriteTextFormat3_Vtbl { pub GetAutomaticFontAxes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> DWRITE_AUTOMATIC_FONT_AXES, pub SetAutomaticFontAxes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, automaticfontaxes: DWRITE_AUTOMATIC_FONT_AXES) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteTextLayout(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteTextLayout, IDWriteTextLayout_Vtbl, 0x53737037_6d14_410b_9bfe_0b182bb70961); +::windows_core::imp::interface_hierarchy!(IDWriteTextLayout, ::windows_core::IUnknown, IDWriteTextFormat); impl IDWriteTextLayout { pub unsafe fn SetTextAlignment(&self, textalignment: DWRITE_TEXT_ALIGNMENT) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.SetTextAlignment)(::windows_core::Interface::as_raw(self), textalignment).ok() @@ -7917,15 +7260,8 @@ impl IDWriteTextLayout { (::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() } } -::windows_core::imp::interface_hierarchy!(IDWriteTextLayout, ::windows_core::IUnknown, IDWriteTextFormat); unsafe impl ::core::marker::Send for IDWriteTextLayout {} unsafe impl ::core::marker::Sync for IDWriteTextLayout {} -unsafe impl ::windows_core::Interface for IDWriteTextLayout { - type Vtable = IDWriteTextLayout_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteTextLayout { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x53737037_6d14_410b_9bfe_0b182bb70961); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteTextLayout_Vtbl { @@ -7970,9 +7306,8 @@ pub struct IDWriteTextLayout_Vtbl { pub HitTestTextPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, textposition: u32, istrailinghit: super::super::Foundation::BOOL, pointx: *mut f32, pointy: *mut f32, hittestmetrics: *mut DWRITE_HIT_TEST_METRICS) -> ::windows_core::HRESULT, pub HitTestTextRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, textposition: u32, textlength: u32, originx: f32, originy: f32, hittestmetrics: *mut DWRITE_HIT_TEST_METRICS, maxhittestmetricscount: u32, actualhittestmetricscount: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteTextLayout1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteTextLayout1, IDWriteTextLayout1_Vtbl, 0x9064d822_80a7_465c_a986_df65f78b8feb); +::windows_core::imp::interface_hierarchy!(IDWriteTextLayout1, ::windows_core::IUnknown, IDWriteTextFormat, IDWriteTextLayout); impl IDWriteTextLayout1 { pub unsafe fn SetTextAlignment(&self, textalignment: DWRITE_TEXT_ALIGNMENT) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.SetTextAlignment)(::windows_core::Interface::as_raw(self), textalignment).ok() @@ -8218,15 +7553,8 @@ impl IDWriteTextLayout1 { (::windows_core::Interface::vtable(self).GetCharacterSpacing)(::windows_core::Interface::as_raw(self), currentposition, leadingspacing, trailingspacing, minimumadvancewidth, ::core::mem::transmute(textrange.unwrap_or(::std::ptr::null_mut()))).ok() } } -::windows_core::imp::interface_hierarchy!(IDWriteTextLayout1, ::windows_core::IUnknown, IDWriteTextFormat, IDWriteTextLayout); unsafe impl ::core::marker::Send for IDWriteTextLayout1 {} unsafe impl ::core::marker::Sync for IDWriteTextLayout1 {} -unsafe impl ::windows_core::Interface for IDWriteTextLayout1 { - type Vtable = IDWriteTextLayout1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteTextLayout1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9064d822_80a7_465c_a986_df65f78b8feb); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteTextLayout1_Vtbl { @@ -8236,9 +7564,8 @@ pub struct IDWriteTextLayout1_Vtbl { pub SetCharacterSpacing: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, leadingspacing: f32, trailingspacing: f32, minimumadvancewidth: f32, textrange: DWRITE_TEXT_RANGE) -> ::windows_core::HRESULT, pub GetCharacterSpacing: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, currentposition: u32, leadingspacing: *mut f32, trailingspacing: *mut f32, minimumadvancewidth: *mut f32, textrange: *mut DWRITE_TEXT_RANGE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteTextLayout2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteTextLayout2, IDWriteTextLayout2_Vtbl, 0x1093c18f_8d5e_43f0_b064_0917311b525e); +::windows_core::imp::interface_hierarchy!(IDWriteTextLayout2, ::windows_core::IUnknown, IDWriteTextFormat, IDWriteTextLayout, IDWriteTextLayout1); impl IDWriteTextLayout2 { pub unsafe fn SetTextAlignment(&self, textalignment: DWRITE_TEXT_ALIGNMENT) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.SetTextAlignment)(::windows_core::Interface::as_raw(self), textalignment).ok() @@ -8518,15 +7845,8 @@ impl IDWriteTextLayout2 { (::windows_core::Interface::vtable(self).GetFontFallback)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDWriteTextLayout2, ::windows_core::IUnknown, IDWriteTextFormat, IDWriteTextLayout, IDWriteTextLayout1); unsafe impl ::core::marker::Send for IDWriteTextLayout2 {} unsafe impl ::core::marker::Sync for IDWriteTextLayout2 {} -unsafe impl ::windows_core::Interface for IDWriteTextLayout2 { - type Vtable = IDWriteTextLayout2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteTextLayout2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1093c18f_8d5e_43f0_b064_0917311b525e); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteTextLayout2_Vtbl { @@ -8541,9 +7861,8 @@ pub struct IDWriteTextLayout2_Vtbl { pub SetFontFallback: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fontfallback: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetFontFallback: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fontfallback: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteTextLayout3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteTextLayout3, IDWriteTextLayout3_Vtbl, 0x07ddcd52_020e_4de8_ac33_6c953d83f92d); +::windows_core::imp::interface_hierarchy!(IDWriteTextLayout3, ::windows_core::IUnknown, IDWriteTextFormat, IDWriteTextLayout, IDWriteTextLayout1, IDWriteTextLayout2); impl IDWriteTextLayout3 { pub unsafe fn SetTextAlignment(&self, textalignment: DWRITE_TEXT_ALIGNMENT) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.SetTextAlignment)(::windows_core::Interface::as_raw(self), textalignment).ok() @@ -8835,15 +8154,8 @@ impl IDWriteTextLayout3 { (::windows_core::Interface::vtable(self).GetLineMetrics2)(::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() } } -::windows_core::imp::interface_hierarchy!(IDWriteTextLayout3, ::windows_core::IUnknown, IDWriteTextFormat, IDWriteTextLayout, IDWriteTextLayout1, IDWriteTextLayout2); unsafe impl ::core::marker::Send for IDWriteTextLayout3 {} unsafe impl ::core::marker::Sync for IDWriteTextLayout3 {} -unsafe impl ::windows_core::Interface for IDWriteTextLayout3 { - type Vtable = IDWriteTextLayout3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteTextLayout3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x07ddcd52_020e_4de8_ac33_6c953d83f92d); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteTextLayout3_Vtbl { @@ -8853,9 +8165,8 @@ pub struct IDWriteTextLayout3_Vtbl { pub GetLineSpacing2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, linespacingoptions: *mut DWRITE_LINE_SPACING) -> ::windows_core::HRESULT, pub GetLineMetrics2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, linemetrics: *mut DWRITE_LINE_METRICS1, maxlinecount: u32, actuallinecount: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteTextLayout4(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteTextLayout4, IDWriteTextLayout4_Vtbl, 0x05a9bf42_223f_4441_b5fb_8263685f55e9); +::windows_core::imp::interface_hierarchy!(IDWriteTextLayout4, ::windows_core::IUnknown, IDWriteTextFormat, IDWriteTextLayout, IDWriteTextLayout1, IDWriteTextLayout2, IDWriteTextLayout3); impl IDWriteTextLayout4 { pub unsafe fn SetTextAlignment(&self, textalignment: DWRITE_TEXT_ALIGNMENT) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetTextAlignment)(::windows_core::Interface::as_raw(self), textalignment).ok() @@ -9162,15 +8473,8 @@ impl IDWriteTextLayout4 { (::windows_core::Interface::vtable(self).SetAutomaticFontAxes)(::windows_core::Interface::as_raw(self), automaticfontaxes).ok() } } -::windows_core::imp::interface_hierarchy!(IDWriteTextLayout4, ::windows_core::IUnknown, IDWriteTextFormat, IDWriteTextLayout, IDWriteTextLayout1, IDWriteTextLayout2, IDWriteTextLayout3); unsafe impl ::core::marker::Send for IDWriteTextLayout4 {} unsafe impl ::core::marker::Sync for IDWriteTextLayout4 {} -unsafe impl ::windows_core::Interface for IDWriteTextLayout4 { - type Vtable = IDWriteTextLayout4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteTextLayout4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x05a9bf42_223f_4441_b5fb_8263685f55e9); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteTextLayout4_Vtbl { @@ -9181,9 +8485,8 @@ pub struct IDWriteTextLayout4_Vtbl { pub GetAutomaticFontAxes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> DWRITE_AUTOMATIC_FONT_AXES, pub SetAutomaticFontAxes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, automaticfontaxes: DWRITE_AUTOMATIC_FONT_AXES) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteTextRenderer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteTextRenderer, IDWriteTextRenderer_Vtbl, 0xef8a8135_5cc6_45fe_8825_c5a0724eb819); +::windows_core::imp::interface_hierarchy!(IDWriteTextRenderer, ::windows_core::IUnknown, IDWritePixelSnapping); impl IDWriteTextRenderer { pub unsafe fn IsPixelSnappingDisabled(&self, clientdrawingcontext: ::core::option::Option<*const ::core::ffi::c_void>) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -9224,15 +8527,8 @@ impl IDWriteTextRenderer { (::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::imp::interface_hierarchy!(IDWriteTextRenderer, ::windows_core::IUnknown, IDWritePixelSnapping); unsafe impl ::core::marker::Send for IDWriteTextRenderer {} unsafe impl ::core::marker::Sync for IDWriteTextRenderer {} -unsafe impl ::windows_core::Interface for IDWriteTextRenderer { - type Vtable = IDWriteTextRenderer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteTextRenderer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xef8a8135_5cc6_45fe_8825_c5a0724eb819); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteTextRenderer_Vtbl { @@ -9242,9 +8538,8 @@ pub struct IDWriteTextRenderer_Vtbl { pub DrawStrikethrough: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, clientdrawingcontext: *const ::core::ffi::c_void, baselineoriginx: f32, baselineoriginy: f32, strikethrough: *const DWRITE_STRIKETHROUGH, clientdrawingeffect: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub DrawInlineObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, clientdrawingcontext: *const ::core::ffi::c_void, originx: f32, originy: f32, inlineobject: *mut ::core::ffi::c_void, issideways: super::super::Foundation::BOOL, isrighttoleft: super::super::Foundation::BOOL, clientdrawingeffect: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteTextRenderer1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteTextRenderer1, IDWriteTextRenderer1_Vtbl, 0xd3e0e934_22a0_427e_aae4_7d9574b59db1); +::windows_core::imp::interface_hierarchy!(IDWriteTextRenderer1, ::windows_core::IUnknown, IDWritePixelSnapping, IDWriteTextRenderer); impl IDWriteTextRenderer1 { pub unsafe fn IsPixelSnappingDisabled(&self, clientdrawingcontext: ::core::option::Option<*const ::core::ffi::c_void>) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -9312,15 +8607,8 @@ impl IDWriteTextRenderer1 { (::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::imp::interface_hierarchy!(IDWriteTextRenderer1, ::windows_core::IUnknown, IDWritePixelSnapping, IDWriteTextRenderer); unsafe impl ::core::marker::Send for IDWriteTextRenderer1 {} unsafe impl ::core::marker::Sync for IDWriteTextRenderer1 {} -unsafe impl ::windows_core::Interface for IDWriteTextRenderer1 { - type Vtable = IDWriteTextRenderer1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteTextRenderer1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd3e0e934_22a0_427e_aae4_7d9574b59db1); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteTextRenderer1_Vtbl { @@ -9330,9 +8618,8 @@ pub struct IDWriteTextRenderer1_Vtbl { pub DrawStrikethrough2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, clientdrawingcontext: *const ::core::ffi::c_void, baselineoriginx: f32, baselineoriginy: f32, orientationangle: DWRITE_GLYPH_ORIENTATION_ANGLE, strikethrough: *const DWRITE_STRIKETHROUGH, clientdrawingeffect: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub DrawInlineObject2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, clientdrawingcontext: *const ::core::ffi::c_void, originx: f32, originy: f32, orientationangle: DWRITE_GLYPH_ORIENTATION_ANGLE, inlineobject: *mut ::core::ffi::c_void, issideways: super::super::Foundation::BOOL, isrighttoleft: super::super::Foundation::BOOL, clientdrawingeffect: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDWriteTypography(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDWriteTypography, IDWriteTypography_Vtbl, 0x55f1112b_1dc2_4b3c_9541_f46894ed85b6); +::windows_core::imp::interface_hierarchy!(IDWriteTypography, ::windows_core::IUnknown); impl IDWriteTypography { pub unsafe fn AddFontFeature(&self, fontfeature: DWRITE_FONT_FEATURE) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).AddFontFeature)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(fontfeature)).ok() @@ -9345,15 +8632,8 @@ impl IDWriteTypography { (::windows_core::Interface::vtable(self).GetFontFeature)(::windows_core::Interface::as_raw(self), fontfeatureindex, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDWriteTypography, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for IDWriteTypography {} unsafe impl ::core::marker::Sync for IDWriteTypography {} -unsafe impl ::windows_core::Interface for IDWriteTypography { - type Vtable = IDWriteTypography_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDWriteTypography { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x55f1112b_1dc2_4b3c_9541_f46894ed85b6); -} #[repr(C)] #[doc(hidden)] pub struct IDWriteTypography_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Dxgi/impl.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Dxgi/impl.rs index 6096469065..07acd1a54c 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Dxgi/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Dxgi/impl.rs @@ -41,7 +41,7 @@ impl IDXGIAdapter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDXGIAdapter1_Impl: Sized + IDXGIAdapter_Impl { @@ -58,7 +58,7 @@ impl IDXGIAdapter1_Vtbl { Self { base__: IDXGIAdapter_Vtbl::new::(), GetDesc1: GetDesc1:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDXGIAdapter2_Impl: Sized + IDXGIAdapter1_Impl { @@ -75,7 +75,7 @@ impl IDXGIAdapter2_Vtbl { Self { base__: IDXGIAdapter1_Vtbl::new::(), GetDesc2: GetDesc2:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDXGIAdapter3_Impl: Sized + IDXGIAdapter2_Impl { @@ -142,7 +142,7 @@ impl IDXGIAdapter3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDXGIAdapter4_Impl: Sized + IDXGIAdapter3_Impl { @@ -159,7 +159,7 @@ impl IDXGIAdapter4_Vtbl { Self { base__: IDXGIAdapter3_Vtbl::new::(), GetDesc3: GetDesc3:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDXGIDebug_Impl: Sized { @@ -176,7 +176,7 @@ impl IDXGIDebug_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), ReportLiveObjects: ReportLiveObjects:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDXGIDebug1_Impl: Sized + IDXGIDebug_Impl { @@ -210,7 +210,7 @@ impl IDXGIDebug1_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDXGIDecodeSwapChain_Impl: Sized { @@ -298,7 +298,7 @@ impl IDXGIDecodeSwapChain_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] @@ -362,7 +362,7 @@ impl IDXGIDevice_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] @@ -399,7 +399,7 @@ impl IDXGIDevice1_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] @@ -437,7 +437,7 @@ impl IDXGIDevice2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] @@ -458,7 +458,7 @@ impl IDXGIDevice3_Vtbl { Self { base__: IDXGIDevice2_Vtbl::new::(), Trim: Trim:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] @@ -489,7 +489,7 @@ impl IDXGIDevice4_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDXGIDeviceSubObject_Impl: Sized + IDXGIObject_Impl { @@ -506,7 +506,7 @@ impl IDXGIDeviceSubObject_Vtbl { Self { base__: IDXGIObject_Vtbl::new::(), GetDevice: GetDevice:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDXGIDisplayControl_Impl: Sized { @@ -533,7 +533,7 @@ impl IDXGIDisplayControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] @@ -603,7 +603,7 @@ impl IDXGIFactory_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] @@ -640,7 +640,7 @@ impl IDXGIFactory1_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] @@ -782,7 +782,7 @@ impl IDXGIFactory2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] @@ -803,7 +803,7 @@ impl IDXGIFactory3_Vtbl { Self { base__: IDXGIFactory2_Vtbl::new::(), GetCreationFlags: GetCreationFlags:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] @@ -834,7 +834,7 @@ impl IDXGIFactory4_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] @@ -855,7 +855,7 @@ impl IDXGIFactory5_Vtbl { Self { base__: IDXGIFactory4_Vtbl::new::(), CheckFeatureSupport: CheckFeatureSupport:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] @@ -876,7 +876,7 @@ impl IDXGIFactory6_Vtbl { Self { base__: IDXGIFactory5_Vtbl::new::(), EnumAdapterByGpuPreference: EnumAdapterByGpuPreference:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] @@ -913,7 +913,7 @@ impl IDXGIFactory7_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] @@ -956,7 +956,7 @@ impl IDXGIFactoryMedia_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDXGIInfoQueue_Impl: Sized { @@ -1228,7 +1228,7 @@ impl IDXGIInfoQueue_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDXGIKeyedMutex_Impl: Sized + IDXGIDeviceSubObject_Impl { @@ -1255,7 +1255,7 @@ impl IDXGIKeyedMutex_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDXGIObject_Impl: Sized { @@ -1296,7 +1296,7 @@ impl IDXGIObject_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`, `\"Win32_Graphics_Gdi\"`"] @@ -1397,7 +1397,7 @@ impl IDXGIOutput_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`, `\"Win32_Graphics_Gdi\"`"] @@ -1448,7 +1448,7 @@ impl IDXGIOutput1_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`, `\"Win32_Graphics_Gdi\"`"] @@ -1469,7 +1469,7 @@ impl IDXGIOutput2_Vtbl { Self { base__: IDXGIOutput1_Vtbl::new::(), SupportsOverlays: SupportsOverlays:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`, `\"Win32_Graphics_Gdi\"`"] @@ -1496,7 +1496,7 @@ impl IDXGIOutput3_Vtbl { Self { base__: IDXGIOutput2_Vtbl::new::(), CheckOverlaySupport: CheckOverlaySupport:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`, `\"Win32_Graphics_Gdi\"`"] @@ -1526,7 +1526,7 @@ impl IDXGIOutput4_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`, `\"Win32_Graphics_Gdi\"`"] @@ -1553,7 +1553,7 @@ impl IDXGIOutput5_Vtbl { Self { base__: IDXGIOutput4_Vtbl::new::(), DuplicateOutput1: DuplicateOutput1:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`, `\"Win32_Graphics_Gdi\"`"] @@ -1590,7 +1590,7 @@ impl IDXGIOutput6_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] @@ -1669,7 +1669,7 @@ impl IDXGIOutputDuplication_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDXGIResource_Impl: Sized + IDXGIDeviceSubObject_Impl { @@ -1728,7 +1728,7 @@ impl IDXGIResource_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Security\"`"] @@ -1771,7 +1771,7 @@ impl IDXGIResource1_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] @@ -1809,7 +1809,7 @@ impl IDXGISurface_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`, `\"Win32_Graphics_Gdi\"`"] @@ -1846,7 +1846,7 @@ impl IDXGISurface1_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`, `\"Win32_Graphics_Gdi\"`"] @@ -1867,7 +1867,7 @@ impl IDXGISurface2_Vtbl { Self { base__: IDXGISurface1_Vtbl::new::(), GetResource: GetResource:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] @@ -1966,7 +1966,7 @@ impl IDXGISwapChain_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] @@ -2084,7 +2084,7 @@ impl IDXGISwapChain1_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] @@ -2156,7 +2156,7 @@ impl IDXGISwapChain2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] @@ -2207,7 +2207,7 @@ impl IDXGISwapChain3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] @@ -2228,7 +2228,7 @@ impl IDXGISwapChain4_Vtbl { Self { base__: IDXGISwapChain3_Vtbl::new::(), SetHDRMetaData: SetHDRMetaData:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDXGISwapChainMedia_Impl: Sized { @@ -2262,7 +2262,7 @@ impl IDXGISwapChainMedia_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDXGraphicsAnalysis_Impl: Sized { @@ -2289,6 +2289,6 @@ impl IDXGraphicsAnalysis_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 90de7a3ca4..54cba40e62 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Dxgi/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Dxgi/mod.rs @@ -4,7 +4,7 @@ pub mod Common; #[inline] pub unsafe fn CreateDXGIFactory() -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { ::windows_targets::link!("dxgi.dll" "system" fn CreateDXGIFactory(riid : *const ::windows_core::GUID, ppfactory : *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT); let mut result__ = ::std::ptr::null_mut(); @@ -13,7 +13,7 @@ where #[inline] pub unsafe fn CreateDXGIFactory1() -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { ::windows_targets::link!("dxgi.dll" "system" fn CreateDXGIFactory1(riid : *const ::windows_core::GUID, ppfactory : *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT); let mut result__ = ::std::ptr::null_mut(); @@ -22,7 +22,7 @@ where #[inline] pub unsafe fn CreateDXGIFactory2(flags: u32) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { ::windows_targets::link!("dxgi.dll" "system" fn CreateDXGIFactory2(flags : u32, riid : *const ::windows_core::GUID, ppfactory : *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT); let mut result__ = ::std::ptr::null_mut(); @@ -41,15 +41,14 @@ pub unsafe fn DXGIDisableVBlankVirtualization() -> ::windows_core::Result<()> { #[inline] pub unsafe fn DXGIGetDebugInterface1(flags: u32) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { ::windows_targets::link!("dxgi.dll" "system" fn DXGIGetDebugInterface1(flags : u32, riid : *const ::windows_core::GUID, pdebug : *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT); let mut result__ = ::std::ptr::null_mut(); DXGIGetDebugInterface1(flags, &T::IID, &mut result__).from_abi(result__) } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDXGIAdapter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDXGIAdapter, IDXGIAdapter_Vtbl, 0x2411e7e1_12ac_4ccf_bd14_9798e8534dc0); +::windows_core::imp::interface_hierarchy!(IDXGIAdapter, ::windows_core::IUnknown, IDXGIObject); impl IDXGIAdapter { pub unsafe fn SetPrivateData(&self, name: *const ::windows_core::GUID, datasize: u32, pdata: *const ::core::ffi::c_void) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.SetPrivateData)(::windows_core::Interface::as_raw(self), name, datasize, pdata).ok() @@ -65,7 +64,7 @@ impl IDXGIAdapter { } pub unsafe fn GetParent(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.GetParent)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -82,15 +81,8 @@ impl IDXGIAdapter { (::windows_core::Interface::vtable(self).CheckInterfaceSupport)(::windows_core::Interface::as_raw(self), interfacename, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDXGIAdapter, ::windows_core::IUnknown, IDXGIObject); unsafe impl ::core::marker::Send for IDXGIAdapter {} unsafe impl ::core::marker::Sync for IDXGIAdapter {} -unsafe impl ::windows_core::Interface for IDXGIAdapter { - type Vtable = IDXGIAdapter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDXGIAdapter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2411e7e1_12ac_4ccf_bd14_9798e8534dc0); -} #[repr(C)] #[doc(hidden)] pub struct IDXGIAdapter_Vtbl { @@ -99,9 +91,8 @@ pub struct IDXGIAdapter_Vtbl { pub GetDesc: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdesc: *mut DXGI_ADAPTER_DESC) -> ::windows_core::HRESULT, pub CheckInterfaceSupport: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, interfacename: *const ::windows_core::GUID, pumdversion: *mut i64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDXGIAdapter1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDXGIAdapter1, IDXGIAdapter1_Vtbl, 0x29038f61_3839_4626_91fd_086879011a05); +::windows_core::imp::interface_hierarchy!(IDXGIAdapter1, ::windows_core::IUnknown, IDXGIObject, IDXGIAdapter); impl IDXGIAdapter1 { pub unsafe fn SetPrivateData(&self, name: *const ::windows_core::GUID, datasize: u32, pdata: *const ::core::ffi::c_void) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.SetPrivateData)(::windows_core::Interface::as_raw(self), name, datasize, pdata).ok() @@ -117,7 +108,7 @@ impl IDXGIAdapter1 { } pub unsafe fn GetParent(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.GetParent)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -137,24 +128,16 @@ impl IDXGIAdapter1 { (::windows_core::Interface::vtable(self).GetDesc1)(::windows_core::Interface::as_raw(self), pdesc).ok() } } -::windows_core::imp::interface_hierarchy!(IDXGIAdapter1, ::windows_core::IUnknown, IDXGIObject, IDXGIAdapter); unsafe impl ::core::marker::Send for IDXGIAdapter1 {} unsafe impl ::core::marker::Sync for IDXGIAdapter1 {} -unsafe impl ::windows_core::Interface for IDXGIAdapter1 { - type Vtable = IDXGIAdapter1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDXGIAdapter1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x29038f61_3839_4626_91fd_086879011a05); -} #[repr(C)] #[doc(hidden)] pub struct IDXGIAdapter1_Vtbl { pub base__: IDXGIAdapter_Vtbl, pub GetDesc1: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdesc: *mut DXGI_ADAPTER_DESC1) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDXGIAdapter2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDXGIAdapter2, IDXGIAdapter2_Vtbl, 0x0aa1ae0a_fa0e_4b84_8644_e05ff8e5acb5); +::windows_core::imp::interface_hierarchy!(IDXGIAdapter2, ::windows_core::IUnknown, IDXGIObject, IDXGIAdapter, IDXGIAdapter1); impl IDXGIAdapter2 { pub unsafe fn SetPrivateData(&self, name: *const ::windows_core::GUID, datasize: u32, pdata: *const ::core::ffi::c_void) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateData)(::windows_core::Interface::as_raw(self), name, datasize, pdata).ok() @@ -170,7 +153,7 @@ impl IDXGIAdapter2 { } pub unsafe fn GetParent(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.GetParent)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -193,24 +176,16 @@ impl IDXGIAdapter2 { (::windows_core::Interface::vtable(self).GetDesc2)(::windows_core::Interface::as_raw(self), pdesc).ok() } } -::windows_core::imp::interface_hierarchy!(IDXGIAdapter2, ::windows_core::IUnknown, IDXGIObject, IDXGIAdapter, IDXGIAdapter1); unsafe impl ::core::marker::Send for IDXGIAdapter2 {} unsafe impl ::core::marker::Sync for IDXGIAdapter2 {} -unsafe impl ::windows_core::Interface for IDXGIAdapter2 { - type Vtable = IDXGIAdapter2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDXGIAdapter2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0aa1ae0a_fa0e_4b84_8644_e05ff8e5acb5); -} #[repr(C)] #[doc(hidden)] pub struct IDXGIAdapter2_Vtbl { pub base__: IDXGIAdapter1_Vtbl, pub GetDesc2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdesc: *mut DXGI_ADAPTER_DESC2) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDXGIAdapter3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDXGIAdapter3, IDXGIAdapter3_Vtbl, 0x645967a4_1392_4310_a798_8053ce3e93fd); +::windows_core::imp::interface_hierarchy!(IDXGIAdapter3, ::windows_core::IUnknown, IDXGIObject, IDXGIAdapter, IDXGIAdapter1, IDXGIAdapter2); impl IDXGIAdapter3 { pub unsafe fn SetPrivateData(&self, name: *const ::windows_core::GUID, datasize: u32, pdata: *const ::core::ffi::c_void) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.SetPrivateData)(::windows_core::Interface::as_raw(self), name, datasize, pdata).ok() @@ -226,7 +201,7 @@ impl IDXGIAdapter3 { } pub unsafe fn GetParent(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.GetParent)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -275,15 +250,8 @@ impl IDXGIAdapter3 { (::windows_core::Interface::vtable(self).UnregisterVideoMemoryBudgetChangeNotification)(::windows_core::Interface::as_raw(self), dwcookie) } } -::windows_core::imp::interface_hierarchy!(IDXGIAdapter3, ::windows_core::IUnknown, IDXGIObject, IDXGIAdapter, IDXGIAdapter1, IDXGIAdapter2); unsafe impl ::core::marker::Send for IDXGIAdapter3 {} unsafe impl ::core::marker::Sync for IDXGIAdapter3 {} -unsafe impl ::windows_core::Interface for IDXGIAdapter3 { - type Vtable = IDXGIAdapter3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDXGIAdapter3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x645967a4_1392_4310_a798_8053ce3e93fd); -} #[repr(C)] #[doc(hidden)] pub struct IDXGIAdapter3_Vtbl { @@ -295,9 +263,8 @@ pub struct IDXGIAdapter3_Vtbl { pub RegisterVideoMemoryBudgetChangeNotificationEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hevent: super::super::Foundation::HANDLE, pdwcookie: *mut u32) -> ::windows_core::HRESULT, pub UnregisterVideoMemoryBudgetChangeNotification: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwcookie: u32), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDXGIAdapter4(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDXGIAdapter4, IDXGIAdapter4_Vtbl, 0x3c8d99d1_4fbf_4181_a82c_af66bf7bd24e); +::windows_core::imp::interface_hierarchy!(IDXGIAdapter4, ::windows_core::IUnknown, IDXGIObject, IDXGIAdapter, IDXGIAdapter1, IDXGIAdapter2, IDXGIAdapter3); impl IDXGIAdapter4 { pub unsafe fn SetPrivateData(&self, name: *const ::windows_core::GUID, datasize: u32, pdata: *const ::core::ffi::c_void) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetPrivateData)(::windows_core::Interface::as_raw(self), name, datasize, pdata).ok() @@ -313,7 +280,7 @@ impl IDXGIAdapter4 { } pub unsafe fn GetParent(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.GetParent)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -365,47 +332,31 @@ impl IDXGIAdapter4 { (::windows_core::Interface::vtable(self).GetDesc3)(::windows_core::Interface::as_raw(self), pdesc).ok() } } -::windows_core::imp::interface_hierarchy!(IDXGIAdapter4, ::windows_core::IUnknown, IDXGIObject, IDXGIAdapter, IDXGIAdapter1, IDXGIAdapter2, IDXGIAdapter3); unsafe impl ::core::marker::Send for IDXGIAdapter4 {} unsafe impl ::core::marker::Sync for IDXGIAdapter4 {} -unsafe impl ::windows_core::Interface for IDXGIAdapter4 { - type Vtable = IDXGIAdapter4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDXGIAdapter4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3c8d99d1_4fbf_4181_a82c_af66bf7bd24e); -} #[repr(C)] #[doc(hidden)] pub struct IDXGIAdapter4_Vtbl { pub base__: IDXGIAdapter3_Vtbl, pub GetDesc3: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdesc: *mut DXGI_ADAPTER_DESC3) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDXGIDebug(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDXGIDebug, IDXGIDebug_Vtbl, 0x119e7452_de9e_40fe_8806_88f90c12b441); +::windows_core::imp::interface_hierarchy!(IDXGIDebug, ::windows_core::IUnknown); impl IDXGIDebug { pub unsafe fn ReportLiveObjects(&self, apiid: ::windows_core::GUID, flags: DXGI_DEBUG_RLO_FLAGS) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).ReportLiveObjects)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(apiid), flags).ok() } } -::windows_core::imp::interface_hierarchy!(IDXGIDebug, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for IDXGIDebug {} unsafe impl ::core::marker::Sync for IDXGIDebug {} -unsafe impl ::windows_core::Interface for IDXGIDebug { - type Vtable = IDXGIDebug_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDXGIDebug { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x119e7452_de9e_40fe_8806_88f90c12b441); -} #[repr(C)] #[doc(hidden)] pub struct IDXGIDebug_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub ReportLiveObjects: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, apiid: ::windows_core::GUID, flags: DXGI_DEBUG_RLO_FLAGS) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDXGIDebug1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDXGIDebug1, IDXGIDebug1_Vtbl, 0xc5a05f0c_16f2_4adf_9f4d_a8c4d58ac550); +::windows_core::imp::interface_hierarchy!(IDXGIDebug1, ::windows_core::IUnknown, IDXGIDebug); impl IDXGIDebug1 { pub unsafe fn ReportLiveObjects(&self, apiid: ::windows_core::GUID, flags: DXGI_DEBUG_RLO_FLAGS) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.ReportLiveObjects)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(apiid), flags).ok() @@ -420,15 +371,8 @@ impl IDXGIDebug1 { (::windows_core::Interface::vtable(self).IsLeakTrackingEnabledForThread)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(IDXGIDebug1, ::windows_core::IUnknown, IDXGIDebug); unsafe impl ::core::marker::Send for IDXGIDebug1 {} unsafe impl ::core::marker::Sync for IDXGIDebug1 {} -unsafe impl ::windows_core::Interface for IDXGIDebug1 { - type Vtable = IDXGIDebug1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDXGIDebug1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc5a05f0c_16f2_4adf_9f4d_a8c4d58ac550); -} #[repr(C)] #[doc(hidden)] pub struct IDXGIDebug1_Vtbl { @@ -437,9 +381,8 @@ pub struct IDXGIDebug1_Vtbl { pub DisableLeakTrackingForThread: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), pub IsLeakTrackingEnabledForThread: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDXGIDecodeSwapChain(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDXGIDecodeSwapChain, IDXGIDecodeSwapChain_Vtbl, 0x2633066b_4514_4c7a_8fd8_12ea98059d18); +::windows_core::imp::interface_hierarchy!(IDXGIDecodeSwapChain, ::windows_core::IUnknown); impl IDXGIDecodeSwapChain { pub unsafe fn PresentBuffer(&self, buffertopresent: u32, syncinterval: u32, flags: u32) -> ::windows_core::HRESULT { (::windows_core::Interface::vtable(self).PresentBuffer)(::windows_core::Interface::as_raw(self), buffertopresent, syncinterval, flags) @@ -471,15 +414,8 @@ impl IDXGIDecodeSwapChain { (::windows_core::Interface::vtable(self).GetColorSpace)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(IDXGIDecodeSwapChain, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for IDXGIDecodeSwapChain {} unsafe impl ::core::marker::Sync for IDXGIDecodeSwapChain {} -unsafe impl ::windows_core::Interface for IDXGIDecodeSwapChain { - type Vtable = IDXGIDecodeSwapChain_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDXGIDecodeSwapChain { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2633066b_4514_4c7a_8fd8_12ea98059d18); -} #[repr(C)] #[doc(hidden)] pub struct IDXGIDecodeSwapChain_Vtbl { @@ -494,9 +430,8 @@ pub struct IDXGIDecodeSwapChain_Vtbl { pub SetColorSpace: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, colorspace: DXGI_MULTIPLANE_OVERLAY_YCbCr_FLAGS) -> ::windows_core::HRESULT, pub GetColorSpace: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> DXGI_MULTIPLANE_OVERLAY_YCbCr_FLAGS, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDXGIDevice(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDXGIDevice, IDXGIDevice_Vtbl, 0x54ec77fa_1377_44e6_8c32_88fd5f44c84c); +::windows_core::imp::interface_hierarchy!(IDXGIDevice, ::windows_core::IUnknown, IDXGIObject); impl IDXGIDevice { pub unsafe fn SetPrivateData(&self, name: *const ::windows_core::GUID, datasize: u32, pdata: *const ::core::ffi::c_void) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.SetPrivateData)(::windows_core::Interface::as_raw(self), name, datasize, pdata).ok() @@ -512,7 +447,7 @@ impl IDXGIDevice { } pub unsafe fn GetParent(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.GetParent)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -537,15 +472,8 @@ impl IDXGIDevice { (::windows_core::Interface::vtable(self).GetGPUThreadPriority)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDXGIDevice, ::windows_core::IUnknown, IDXGIObject); unsafe impl ::core::marker::Send for IDXGIDevice {} unsafe impl ::core::marker::Sync for IDXGIDevice {} -unsafe impl ::windows_core::Interface for IDXGIDevice { - type Vtable = IDXGIDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDXGIDevice { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x54ec77fa_1377_44e6_8c32_88fd5f44c84c); -} #[repr(C)] #[doc(hidden)] pub struct IDXGIDevice_Vtbl { @@ -559,9 +487,8 @@ pub struct IDXGIDevice_Vtbl { pub SetGPUThreadPriority: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, priority: i32) -> ::windows_core::HRESULT, pub GetGPUThreadPriority: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppriority: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDXGIDevice1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDXGIDevice1, IDXGIDevice1_Vtbl, 0x77db970f_6276_48ba_ba28_070143b4392c); +::windows_core::imp::interface_hierarchy!(IDXGIDevice1, ::windows_core::IUnknown, IDXGIObject, IDXGIDevice); impl IDXGIDevice1 { pub unsafe fn SetPrivateData(&self, name: *const ::windows_core::GUID, datasize: u32, pdata: *const ::core::ffi::c_void) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.SetPrivateData)(::windows_core::Interface::as_raw(self), name, datasize, pdata).ok() @@ -577,7 +504,7 @@ impl IDXGIDevice1 { } pub unsafe fn GetParent(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.GetParent)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -609,15 +536,8 @@ impl IDXGIDevice1 { (::windows_core::Interface::vtable(self).GetMaximumFrameLatency)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDXGIDevice1, ::windows_core::IUnknown, IDXGIObject, IDXGIDevice); unsafe impl ::core::marker::Send for IDXGIDevice1 {} unsafe impl ::core::marker::Sync for IDXGIDevice1 {} -unsafe impl ::windows_core::Interface for IDXGIDevice1 { - type Vtable = IDXGIDevice1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDXGIDevice1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x77db970f_6276_48ba_ba28_070143b4392c); -} #[repr(C)] #[doc(hidden)] pub struct IDXGIDevice1_Vtbl { @@ -625,9 +545,8 @@ pub struct IDXGIDevice1_Vtbl { pub SetMaximumFrameLatency: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, maxlatency: u32) -> ::windows_core::HRESULT, pub GetMaximumFrameLatency: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pmaxlatency: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDXGIDevice2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDXGIDevice2, IDXGIDevice2_Vtbl, 0x05008617_fbfd_4051_a790_144884b4f6a9); +::windows_core::imp::interface_hierarchy!(IDXGIDevice2, ::windows_core::IUnknown, IDXGIObject, IDXGIDevice, IDXGIDevice1); impl IDXGIDevice2 { pub unsafe fn SetPrivateData(&self, name: *const ::windows_core::GUID, datasize: u32, pdata: *const ::core::ffi::c_void) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateData)(::windows_core::Interface::as_raw(self), name, datasize, pdata).ok() @@ -643,7 +562,7 @@ impl IDXGIDevice2 { } pub unsafe fn GetParent(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.GetParent)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -687,15 +606,8 @@ impl IDXGIDevice2 { (::windows_core::Interface::vtable(self).EnqueueSetEvent)(::windows_core::Interface::as_raw(self), hevent.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IDXGIDevice2, ::windows_core::IUnknown, IDXGIObject, IDXGIDevice, IDXGIDevice1); unsafe impl ::core::marker::Send for IDXGIDevice2 {} unsafe impl ::core::marker::Sync for IDXGIDevice2 {} -unsafe impl ::windows_core::Interface for IDXGIDevice2 { - type Vtable = IDXGIDevice2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDXGIDevice2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x05008617_fbfd_4051_a790_144884b4f6a9); -} #[repr(C)] #[doc(hidden)] pub struct IDXGIDevice2_Vtbl { @@ -704,9 +616,8 @@ pub struct IDXGIDevice2_Vtbl { pub ReclaimResources: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, numresources: u32, ppresources: *const *mut ::core::ffi::c_void, pdiscarded: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub EnqueueSetEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hevent: super::super::Foundation::HANDLE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDXGIDevice3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDXGIDevice3, IDXGIDevice3_Vtbl, 0x6007896c_3244_4afd_bf18_a6d3beda5023); +::windows_core::imp::interface_hierarchy!(IDXGIDevice3, ::windows_core::IUnknown, IDXGIObject, IDXGIDevice, IDXGIDevice1, IDXGIDevice2); impl IDXGIDevice3 { pub unsafe fn SetPrivateData(&self, name: *const ::windows_core::GUID, datasize: u32, pdata: *const ::core::ffi::c_void) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.SetPrivateData)(::windows_core::Interface::as_raw(self), name, datasize, pdata).ok() @@ -722,7 +633,7 @@ impl IDXGIDevice3 { } pub unsafe fn GetParent(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.GetParent)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -769,24 +680,16 @@ impl IDXGIDevice3 { (::windows_core::Interface::vtable(self).Trim)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(IDXGIDevice3, ::windows_core::IUnknown, IDXGIObject, IDXGIDevice, IDXGIDevice1, IDXGIDevice2); unsafe impl ::core::marker::Send for IDXGIDevice3 {} unsafe impl ::core::marker::Sync for IDXGIDevice3 {} -unsafe impl ::windows_core::Interface for IDXGIDevice3 { - type Vtable = IDXGIDevice3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDXGIDevice3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6007896c_3244_4afd_bf18_a6d3beda5023); -} #[repr(C)] #[doc(hidden)] pub struct IDXGIDevice3_Vtbl { pub base__: IDXGIDevice2_Vtbl, pub Trim: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDXGIDevice4(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDXGIDevice4, IDXGIDevice4_Vtbl, 0x95b4f95f_d8da_4ca4_9ee6_3b76d5968a10); +::windows_core::imp::interface_hierarchy!(IDXGIDevice4, ::windows_core::IUnknown, IDXGIObject, IDXGIDevice, IDXGIDevice1, IDXGIDevice2, IDXGIDevice3); impl IDXGIDevice4 { pub unsafe fn SetPrivateData(&self, name: *const ::windows_core::GUID, datasize: u32, pdata: *const ::core::ffi::c_void) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetPrivateData)(::windows_core::Interface::as_raw(self), name, datasize, pdata).ok() @@ -802,7 +705,7 @@ impl IDXGIDevice4 { } pub unsafe fn GetParent(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.GetParent)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -855,15 +758,8 @@ impl IDXGIDevice4 { (::windows_core::Interface::vtable(self).ReclaimResources1)(::windows_core::Interface::as_raw(self), numresources, ::core::mem::transmute(ppresources), presults).ok() } } -::windows_core::imp::interface_hierarchy!(IDXGIDevice4, ::windows_core::IUnknown, IDXGIObject, IDXGIDevice, IDXGIDevice1, IDXGIDevice2, IDXGIDevice3); unsafe impl ::core::marker::Send for IDXGIDevice4 {} unsafe impl ::core::marker::Sync for IDXGIDevice4 {} -unsafe impl ::windows_core::Interface for IDXGIDevice4 { - type Vtable = IDXGIDevice4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDXGIDevice4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x95b4f95f_d8da_4ca4_9ee6_3b76d5968a10); -} #[repr(C)] #[doc(hidden)] pub struct IDXGIDevice4_Vtbl { @@ -871,9 +767,8 @@ pub struct IDXGIDevice4_Vtbl { pub OfferResources1: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, numresources: u32, ppresources: *const *mut ::core::ffi::c_void, priority: DXGI_OFFER_RESOURCE_PRIORITY, flags: u32) -> ::windows_core::HRESULT, pub ReclaimResources1: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, numresources: u32, ppresources: *const *mut ::core::ffi::c_void, presults: *mut DXGI_RECLAIM_RESOURCE_RESULTS) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDXGIDeviceSubObject(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDXGIDeviceSubObject, IDXGIDeviceSubObject_Vtbl, 0x3d3e0379_f9de_4d58_bb6c_18d62992f1a6); +::windows_core::imp::interface_hierarchy!(IDXGIDeviceSubObject, ::windows_core::IUnknown, IDXGIObject); impl IDXGIDeviceSubObject { pub unsafe fn SetPrivateData(&self, name: *const ::windows_core::GUID, datasize: u32, pdata: *const ::core::ffi::c_void) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.SetPrivateData)(::windows_core::Interface::as_raw(self), name, datasize, pdata).ok() @@ -889,37 +784,29 @@ impl IDXGIDeviceSubObject { } pub unsafe fn GetParent(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.GetParent)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) } pub unsafe fn GetDevice(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDXGIDeviceSubObject, ::windows_core::IUnknown, IDXGIObject); unsafe impl ::core::marker::Send for IDXGIDeviceSubObject {} unsafe impl ::core::marker::Sync for IDXGIDeviceSubObject {} -unsafe impl ::windows_core::Interface for IDXGIDeviceSubObject { - type Vtable = IDXGIDeviceSubObject_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDXGIDeviceSubObject { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3d3e0379_f9de_4d58_bb6c_18d62992f1a6); -} #[repr(C)] #[doc(hidden)] pub struct IDXGIDeviceSubObject_Vtbl { pub base__: IDXGIObject_Vtbl, pub GetDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppdevice: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDXGIDisplayControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDXGIDisplayControl, IDXGIDisplayControl_Vtbl, 0xea9dbf1a_c88e_4486_854a_98aa0138f30c); +::windows_core::imp::interface_hierarchy!(IDXGIDisplayControl, ::windows_core::IUnknown); impl IDXGIDisplayControl { pub unsafe fn IsStereoEnabled(&self) -> super::super::Foundation::BOOL { (::windows_core::Interface::vtable(self).IsStereoEnabled)(::windows_core::Interface::as_raw(self)) @@ -931,15 +818,8 @@ impl IDXGIDisplayControl { (::windows_core::Interface::vtable(self).SetStereoEnabled)(::windows_core::Interface::as_raw(self), enabled.into_param().abi()) } } -::windows_core::imp::interface_hierarchy!(IDXGIDisplayControl, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for IDXGIDisplayControl {} unsafe impl ::core::marker::Sync for IDXGIDisplayControl {} -unsafe impl ::windows_core::Interface for IDXGIDisplayControl { - type Vtable = IDXGIDisplayControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDXGIDisplayControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xea9dbf1a_c88e_4486_854a_98aa0138f30c); -} #[repr(C)] #[doc(hidden)] pub struct IDXGIDisplayControl_Vtbl { @@ -947,9 +827,8 @@ pub struct IDXGIDisplayControl_Vtbl { pub IsStereoEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL, pub SetStereoEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enabled: super::super::Foundation::BOOL), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDXGIFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDXGIFactory, IDXGIFactory_Vtbl, 0x7b7166ec_21c7_44ae_b21a_c9ae321ae369); +::windows_core::imp::interface_hierarchy!(IDXGIFactory, ::windows_core::IUnknown, IDXGIObject); impl IDXGIFactory { pub unsafe fn SetPrivateData(&self, name: *const ::windows_core::GUID, datasize: u32, pdata: *const ::core::ffi::c_void) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.SetPrivateData)(::windows_core::Interface::as_raw(self), name, datasize, pdata).ok() @@ -965,7 +844,7 @@ impl IDXGIFactory { } pub unsafe fn GetParent(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.GetParent)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -1000,15 +879,8 @@ impl IDXGIFactory { (::windows_core::Interface::vtable(self).CreateSoftwareAdapter)(::windows_core::Interface::as_raw(self), module.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDXGIFactory, ::windows_core::IUnknown, IDXGIObject); unsafe impl ::core::marker::Send for IDXGIFactory {} unsafe impl ::core::marker::Sync for IDXGIFactory {} -unsafe impl ::windows_core::Interface for IDXGIFactory { - type Vtable = IDXGIFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDXGIFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7b7166ec_21c7_44ae_b21a_c9ae321ae369); -} #[repr(C)] #[doc(hidden)] pub struct IDXGIFactory_Vtbl { @@ -1022,9 +894,8 @@ pub struct IDXGIFactory_Vtbl { CreateSwapChain: usize, pub CreateSoftwareAdapter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, module: super::super::Foundation::HMODULE, ppadapter: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDXGIFactory1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDXGIFactory1, IDXGIFactory1_Vtbl, 0x770aae78_f26f_4dba_a829_253c83d1b387); +::windows_core::imp::interface_hierarchy!(IDXGIFactory1, ::windows_core::IUnknown, IDXGIObject, IDXGIFactory); impl IDXGIFactory1 { pub unsafe fn SetPrivateData(&self, name: *const ::windows_core::GUID, datasize: u32, pdata: *const ::core::ffi::c_void) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.SetPrivateData)(::windows_core::Interface::as_raw(self), name, datasize, pdata).ok() @@ -1040,7 +911,7 @@ impl IDXGIFactory1 { } pub unsafe fn GetParent(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.GetParent)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -1082,15 +953,8 @@ impl IDXGIFactory1 { (::windows_core::Interface::vtable(self).IsCurrent)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(IDXGIFactory1, ::windows_core::IUnknown, IDXGIObject, IDXGIFactory); unsafe impl ::core::marker::Send for IDXGIFactory1 {} unsafe impl ::core::marker::Sync for IDXGIFactory1 {} -unsafe impl ::windows_core::Interface for IDXGIFactory1 { - type Vtable = IDXGIFactory1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDXGIFactory1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x770aae78_f26f_4dba_a829_253c83d1b387); -} #[repr(C)] #[doc(hidden)] pub struct IDXGIFactory1_Vtbl { @@ -1098,9 +962,8 @@ pub struct IDXGIFactory1_Vtbl { pub EnumAdapters1: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, adapter: u32, ppadapter: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub IsCurrent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDXGIFactory2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDXGIFactory2, IDXGIFactory2_Vtbl, 0x50c83a1c_e072_4c48_87b0_3630fa36a6d0); +::windows_core::imp::interface_hierarchy!(IDXGIFactory2, ::windows_core::IUnknown, IDXGIObject, IDXGIFactory, IDXGIFactory1); impl IDXGIFactory2 { pub unsafe fn SetPrivateData(&self, name: *const ::windows_core::GUID, datasize: u32, pdata: *const ::core::ffi::c_void) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateData)(::windows_core::Interface::as_raw(self), name, datasize, pdata).ok() @@ -1116,7 +979,7 @@ impl IDXGIFactory2 { } pub unsafe fn GetParent(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.GetParent)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -1234,15 +1097,8 @@ impl IDXGIFactory2 { (::windows_core::Interface::vtable(self).CreateSwapChainForComposition)(::windows_core::Interface::as_raw(self), pdevice.into_param().abi(), pdesc, prestricttooutput.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDXGIFactory2, ::windows_core::IUnknown, IDXGIObject, IDXGIFactory, IDXGIFactory1); unsafe impl ::core::marker::Send for IDXGIFactory2 {} unsafe impl ::core::marker::Sync for IDXGIFactory2 {} -unsafe impl ::windows_core::Interface for IDXGIFactory2 { - type Vtable = IDXGIFactory2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDXGIFactory2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x50c83a1c_e072_4c48_87b0_3630fa36a6d0); -} #[repr(C)] #[doc(hidden)] pub struct IDXGIFactory2_Vtbl { @@ -1268,9 +1124,8 @@ pub struct IDXGIFactory2_Vtbl { #[cfg(not(feature = "Win32_Graphics_Dxgi_Common"))] CreateSwapChainForComposition: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDXGIFactory3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDXGIFactory3, IDXGIFactory3_Vtbl, 0x25483823_cd46_4c7d_86ca_47aa95b837bd); +::windows_core::imp::interface_hierarchy!(IDXGIFactory3, ::windows_core::IUnknown, IDXGIObject, IDXGIFactory, IDXGIFactory1, IDXGIFactory2); impl IDXGIFactory3 { pub unsafe fn SetPrivateData(&self, name: *const ::windows_core::GUID, datasize: u32, pdata: *const ::core::ffi::c_void) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.SetPrivateData)(::windows_core::Interface::as_raw(self), name, datasize, pdata).ok() @@ -1286,7 +1141,7 @@ impl IDXGIFactory3 { } pub unsafe fn GetParent(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.GetParent)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -1407,24 +1262,16 @@ impl IDXGIFactory3 { (::windows_core::Interface::vtable(self).GetCreationFlags)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(IDXGIFactory3, ::windows_core::IUnknown, IDXGIObject, IDXGIFactory, IDXGIFactory1, IDXGIFactory2); unsafe impl ::core::marker::Send for IDXGIFactory3 {} unsafe impl ::core::marker::Sync for IDXGIFactory3 {} -unsafe impl ::windows_core::Interface for IDXGIFactory3 { - type Vtable = IDXGIFactory3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDXGIFactory3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x25483823_cd46_4c7d_86ca_47aa95b837bd); -} #[repr(C)] #[doc(hidden)] pub struct IDXGIFactory3_Vtbl { pub base__: IDXGIFactory2_Vtbl, pub GetCreationFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> u32, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDXGIFactory4(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDXGIFactory4, IDXGIFactory4_Vtbl, 0x1bc6ea02_ef36_464f_bf0c_21ca39e5168a); +::windows_core::imp::interface_hierarchy!(IDXGIFactory4, ::windows_core::IUnknown, IDXGIObject, IDXGIFactory, IDXGIFactory1, IDXGIFactory2, IDXGIFactory3); impl IDXGIFactory4 { pub unsafe fn SetPrivateData(&self, name: *const ::windows_core::GUID, datasize: u32, pdata: *const ::core::ffi::c_void) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetPrivateData)(::windows_core::Interface::as_raw(self), name, datasize, pdata).ok() @@ -1440,7 +1287,7 @@ impl IDXGIFactory4 { } pub unsafe fn GetParent(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.GetParent)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -1562,28 +1409,21 @@ impl IDXGIFactory4 { } pub unsafe fn EnumAdapterByLuid(&self, adapterluid: super::super::Foundation::LUID) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).EnumAdapterByLuid)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(adapterluid), &T::IID, &mut result__).from_abi(result__) } pub unsafe fn EnumWarpAdapter(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).EnumWarpAdapter)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDXGIFactory4, ::windows_core::IUnknown, IDXGIObject, IDXGIFactory, IDXGIFactory1, IDXGIFactory2, IDXGIFactory3); unsafe impl ::core::marker::Send for IDXGIFactory4 {} unsafe impl ::core::marker::Sync for IDXGIFactory4 {} -unsafe impl ::windows_core::Interface for IDXGIFactory4 { - type Vtable = IDXGIFactory4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDXGIFactory4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1bc6ea02_ef36_464f_bf0c_21ca39e5168a); -} #[repr(C)] #[doc(hidden)] pub struct IDXGIFactory4_Vtbl { @@ -1591,9 +1431,8 @@ pub struct IDXGIFactory4_Vtbl { pub EnumAdapterByLuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, adapterluid: super::super::Foundation::LUID, riid: *const ::windows_core::GUID, ppvadapter: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub EnumWarpAdapter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppvadapter: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDXGIFactory5(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDXGIFactory5, IDXGIFactory5_Vtbl, 0x7632e1f5_ee65_4dca_87fd_84cd75f8838d); +::windows_core::imp::interface_hierarchy!(IDXGIFactory5, ::windows_core::IUnknown, IDXGIObject, IDXGIFactory, IDXGIFactory1, IDXGIFactory2, IDXGIFactory3, IDXGIFactory4); impl IDXGIFactory5 { pub unsafe fn SetPrivateData(&self, name: *const ::windows_core::GUID, datasize: u32, pdata: *const ::core::ffi::c_void) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.SetPrivateData)(::windows_core::Interface::as_raw(self), name, datasize, pdata).ok() @@ -1609,7 +1448,7 @@ impl IDXGIFactory5 { } pub unsafe fn GetParent(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.GetParent)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -1731,14 +1570,14 @@ impl IDXGIFactory5 { } pub unsafe fn EnumAdapterByLuid(&self, adapterluid: super::super::Foundation::LUID) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.EnumAdapterByLuid)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(adapterluid), &T::IID, &mut result__).from_abi(result__) } pub unsafe fn EnumWarpAdapter(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.EnumWarpAdapter)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -1747,24 +1586,16 @@ impl IDXGIFactory5 { (::windows_core::Interface::vtable(self).CheckFeatureSupport)(::windows_core::Interface::as_raw(self), feature, pfeaturesupportdata, featuresupportdatasize).ok() } } -::windows_core::imp::interface_hierarchy!(IDXGIFactory5, ::windows_core::IUnknown, IDXGIObject, IDXGIFactory, IDXGIFactory1, IDXGIFactory2, IDXGIFactory3, IDXGIFactory4); unsafe impl ::core::marker::Send for IDXGIFactory5 {} unsafe impl ::core::marker::Sync for IDXGIFactory5 {} -unsafe impl ::windows_core::Interface for IDXGIFactory5 { - type Vtable = IDXGIFactory5_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDXGIFactory5 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7632e1f5_ee65_4dca_87fd_84cd75f8838d); -} #[repr(C)] #[doc(hidden)] pub struct IDXGIFactory5_Vtbl { pub base__: IDXGIFactory4_Vtbl, pub CheckFeatureSupport: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, feature: DXGI_FEATURE, pfeaturesupportdata: *mut ::core::ffi::c_void, featuresupportdatasize: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDXGIFactory6(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDXGIFactory6, IDXGIFactory6_Vtbl, 0xc1b6694f_ff09_44a9_b03c_77900a0a1d17); +::windows_core::imp::interface_hierarchy!(IDXGIFactory6, ::windows_core::IUnknown, IDXGIObject, IDXGIFactory, IDXGIFactory1, IDXGIFactory2, IDXGIFactory3, IDXGIFactory4, IDXGIFactory5); impl IDXGIFactory6 { pub unsafe fn SetPrivateData(&self, name: *const ::windows_core::GUID, datasize: u32, pdata: *const ::core::ffi::c_void) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.SetPrivateData)(::windows_core::Interface::as_raw(self), name, datasize, pdata).ok() @@ -1780,7 +1611,7 @@ impl IDXGIFactory6 { } pub unsafe fn GetParent(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.GetParent)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -1902,14 +1733,14 @@ impl IDXGIFactory6 { } pub unsafe fn EnumAdapterByLuid(&self, adapterluid: super::super::Foundation::LUID) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.EnumAdapterByLuid)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(adapterluid), &T::IID, &mut result__).from_abi(result__) } pub unsafe fn EnumWarpAdapter(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.EnumWarpAdapter)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -1919,30 +1750,22 @@ impl IDXGIFactory6 { } pub unsafe fn EnumAdapterByGpuPreference(&self, adapter: u32, gpupreference: DXGI_GPU_PREFERENCE) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).EnumAdapterByGpuPreference)(::windows_core::Interface::as_raw(self), adapter, gpupreference, &T::IID, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDXGIFactory6, ::windows_core::IUnknown, IDXGIObject, IDXGIFactory, IDXGIFactory1, IDXGIFactory2, IDXGIFactory3, IDXGIFactory4, IDXGIFactory5); unsafe impl ::core::marker::Send for IDXGIFactory6 {} unsafe impl ::core::marker::Sync for IDXGIFactory6 {} -unsafe impl ::windows_core::Interface for IDXGIFactory6 { - type Vtable = IDXGIFactory6_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDXGIFactory6 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc1b6694f_ff09_44a9_b03c_77900a0a1d17); -} #[repr(C)] #[doc(hidden)] pub struct IDXGIFactory6_Vtbl { pub base__: IDXGIFactory5_Vtbl, pub EnumAdapterByGpuPreference: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, adapter: u32, gpupreference: DXGI_GPU_PREFERENCE, riid: *const ::windows_core::GUID, ppvadapter: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDXGIFactory7(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDXGIFactory7, IDXGIFactory7_Vtbl, 0xa4966eed_76db_44da_84c1_ee9a7afb20a8); +::windows_core::imp::interface_hierarchy!(IDXGIFactory7, ::windows_core::IUnknown, IDXGIObject, IDXGIFactory, IDXGIFactory1, IDXGIFactory2, IDXGIFactory3, IDXGIFactory4, IDXGIFactory5, IDXGIFactory6); impl IDXGIFactory7 { pub unsafe fn SetPrivateData(&self, name: *const ::windows_core::GUID, datasize: u32, pdata: *const ::core::ffi::c_void) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.SetPrivateData)(::windows_core::Interface::as_raw(self), name, datasize, pdata).ok() @@ -1958,7 +1781,7 @@ impl IDXGIFactory7 { } pub unsafe fn GetParent(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.GetParent)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -2080,14 +1903,14 @@ impl IDXGIFactory7 { } pub unsafe fn EnumAdapterByLuid(&self, adapterluid: super::super::Foundation::LUID) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.EnumAdapterByLuid)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(adapterluid), &T::IID, &mut result__).from_abi(result__) } pub unsafe fn EnumWarpAdapter(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.EnumWarpAdapter)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -2097,7 +1920,7 @@ impl IDXGIFactory7 { } pub unsafe fn EnumAdapterByGpuPreference(&self, adapter: u32, gpupreference: DXGI_GPU_PREFERENCE) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.EnumAdapterByGpuPreference)(::windows_core::Interface::as_raw(self), adapter, gpupreference, &T::IID, &mut result__).from_abi(result__) @@ -2113,15 +1936,8 @@ impl IDXGIFactory7 { (::windows_core::Interface::vtable(self).UnregisterAdaptersChangedEvent)(::windows_core::Interface::as_raw(self), dwcookie).ok() } } -::windows_core::imp::interface_hierarchy!(IDXGIFactory7, ::windows_core::IUnknown, IDXGIObject, IDXGIFactory, IDXGIFactory1, IDXGIFactory2, IDXGIFactory3, IDXGIFactory4, IDXGIFactory5, IDXGIFactory6); unsafe impl ::core::marker::Send for IDXGIFactory7 {} unsafe impl ::core::marker::Sync for IDXGIFactory7 {} -unsafe impl ::windows_core::Interface for IDXGIFactory7 { - type Vtable = IDXGIFactory7_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDXGIFactory7 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa4966eed_76db_44da_84c1_ee9a7afb20a8); -} #[repr(C)] #[doc(hidden)] pub struct IDXGIFactory7_Vtbl { @@ -2129,9 +1945,8 @@ pub struct IDXGIFactory7_Vtbl { pub RegisterAdaptersChangedEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hevent: super::super::Foundation::HANDLE, pdwcookie: *mut u32) -> ::windows_core::HRESULT, pub UnregisterAdaptersChangedEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwcookie: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDXGIFactoryMedia(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDXGIFactoryMedia, IDXGIFactoryMedia_Vtbl, 0x41e7d1f2_a591_4f7b_a2e5_fa9c843e1c12); +::windows_core::imp::interface_hierarchy!(IDXGIFactoryMedia, ::windows_core::IUnknown); impl IDXGIFactoryMedia { #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] #[cfg(feature = "Win32_Graphics_Dxgi_Common")] @@ -2155,15 +1970,8 @@ impl IDXGIFactoryMedia { (::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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDXGIFactoryMedia, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for IDXGIFactoryMedia {} unsafe impl ::core::marker::Sync for IDXGIFactoryMedia {} -unsafe impl ::windows_core::Interface for IDXGIFactoryMedia { - type Vtable = IDXGIFactoryMedia_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDXGIFactoryMedia { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x41e7d1f2_a591_4f7b_a2e5_fa9c843e1c12); -} #[repr(C)] #[doc(hidden)] pub struct IDXGIFactoryMedia_Vtbl { @@ -2174,9 +1982,8 @@ pub struct IDXGIFactoryMedia_Vtbl { CreateSwapChainForCompositionSurfaceHandle: usize, pub CreateDecodeSwapChainForCompositionSurfaceHandle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdevice: *mut ::core::ffi::c_void, hsurface: super::super::Foundation::HANDLE, pdesc: *const DXGI_DECODE_SWAP_CHAIN_DESC, pyuvdecodebuffers: *mut ::core::ffi::c_void, prestricttooutput: *mut ::core::ffi::c_void, ppswapchain: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDXGIInfoQueue(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDXGIInfoQueue, IDXGIInfoQueue_Vtbl, 0xd67441c7_672a_476f_9e82_cd55b44949ce); +::windows_core::imp::interface_hierarchy!(IDXGIInfoQueue, ::windows_core::IUnknown); impl IDXGIInfoQueue { pub unsafe fn SetMessageCountLimit(&self, producer: ::windows_core::GUID, messagecountlimit: u64) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetMessageCountLimit)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(producer), messagecountlimit).ok() @@ -2308,15 +2115,8 @@ impl IDXGIInfoQueue { (::windows_core::Interface::vtable(self).GetMuteDebugOutput)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(producer)) } } -::windows_core::imp::interface_hierarchy!(IDXGIInfoQueue, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for IDXGIInfoQueue {} unsafe impl ::core::marker::Sync for IDXGIInfoQueue {} -unsafe impl ::windows_core::Interface for IDXGIInfoQueue { - type Vtable = IDXGIInfoQueue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDXGIInfoQueue { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd67441c7_672a_476f_9e82_cd55b44949ce); -} #[repr(C)] #[doc(hidden)] pub struct IDXGIInfoQueue_Vtbl { @@ -2359,9 +2159,8 @@ pub struct IDXGIInfoQueue_Vtbl { pub SetMuteDebugOutput: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, producer: ::windows_core::GUID, bmute: super::super::Foundation::BOOL), pub GetMuteDebugOutput: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, producer: ::windows_core::GUID) -> super::super::Foundation::BOOL, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDXGIKeyedMutex(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDXGIKeyedMutex, IDXGIKeyedMutex_Vtbl, 0x9d8e1289_d7b3_465f_8126_250e349af85d); +::windows_core::imp::interface_hierarchy!(IDXGIKeyedMutex, ::windows_core::IUnknown, IDXGIObject, IDXGIDeviceSubObject); impl IDXGIKeyedMutex { pub unsafe fn SetPrivateData(&self, name: *const ::windows_core::GUID, datasize: u32, pdata: *const ::core::ffi::c_void) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.SetPrivateData)(::windows_core::Interface::as_raw(self), name, datasize, pdata).ok() @@ -2377,14 +2176,14 @@ impl IDXGIKeyedMutex { } pub unsafe fn GetParent(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.GetParent)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) } pub unsafe fn GetDevice(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -2396,15 +2195,8 @@ impl IDXGIKeyedMutex { (::windows_core::Interface::vtable(self).ReleaseSync)(::windows_core::Interface::as_raw(self), key).ok() } } -::windows_core::imp::interface_hierarchy!(IDXGIKeyedMutex, ::windows_core::IUnknown, IDXGIObject, IDXGIDeviceSubObject); unsafe impl ::core::marker::Send for IDXGIKeyedMutex {} unsafe impl ::core::marker::Sync for IDXGIKeyedMutex {} -unsafe impl ::windows_core::Interface for IDXGIKeyedMutex { - type Vtable = IDXGIKeyedMutex_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDXGIKeyedMutex { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9d8e1289_d7b3_465f_8126_250e349af85d); -} #[repr(C)] #[doc(hidden)] pub struct IDXGIKeyedMutex_Vtbl { @@ -2412,9 +2204,8 @@ pub struct IDXGIKeyedMutex_Vtbl { pub AcquireSync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, key: u64, dwmilliseconds: u32) -> ::windows_core::HRESULT, pub ReleaseSync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, key: u64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDXGIObject(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDXGIObject, IDXGIObject_Vtbl, 0xaec22fb8_76f3_4639_9be0_28eb43a67a2e); +::windows_core::imp::interface_hierarchy!(IDXGIObject, ::windows_core::IUnknown); impl IDXGIObject { pub unsafe fn SetPrivateData(&self, name: *const ::windows_core::GUID, datasize: u32, pdata: *const ::core::ffi::c_void) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetPrivateData)(::windows_core::Interface::as_raw(self), name, datasize, pdata).ok() @@ -2430,21 +2221,14 @@ impl IDXGIObject { } pub unsafe fn GetParent(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetParent)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDXGIObject, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for IDXGIObject {} unsafe impl ::core::marker::Sync for IDXGIObject {} -unsafe impl ::windows_core::Interface for IDXGIObject { - type Vtable = IDXGIObject_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDXGIObject { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaec22fb8_76f3_4639_9be0_28eb43a67a2e); -} #[repr(C)] #[doc(hidden)] pub struct IDXGIObject_Vtbl { @@ -2454,9 +2238,8 @@ pub struct IDXGIObject_Vtbl { pub GetPrivateData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *const ::windows_core::GUID, pdatasize: *mut u32, pdata: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetParent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppparent: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDXGIOutput(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDXGIOutput, IDXGIOutput_Vtbl, 0xae02eedb_c735_4690_8d52_5a8dc20213aa); +::windows_core::imp::interface_hierarchy!(IDXGIOutput, ::windows_core::IUnknown, IDXGIObject); impl IDXGIOutput { pub unsafe fn SetPrivateData(&self, name: *const ::windows_core::GUID, datasize: u32, pdata: *const ::core::ffi::c_void) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.SetPrivateData)(::windows_core::Interface::as_raw(self), name, datasize, pdata).ok() @@ -2472,7 +2255,7 @@ impl IDXGIOutput { } pub unsafe fn GetParent(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.GetParent)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -2539,15 +2322,8 @@ impl IDXGIOutput { (::windows_core::Interface::vtable(self).GetFrameStatistics)(::windows_core::Interface::as_raw(self), pstats).ok() } } -::windows_core::imp::interface_hierarchy!(IDXGIOutput, ::windows_core::IUnknown, IDXGIObject); unsafe impl ::core::marker::Send for IDXGIOutput {} unsafe impl ::core::marker::Sync for IDXGIOutput {} -unsafe impl ::windows_core::Interface for IDXGIOutput { - type Vtable = IDXGIOutput_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDXGIOutput { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xae02eedb_c735_4690_8d52_5a8dc20213aa); -} #[repr(C)] #[doc(hidden)] pub struct IDXGIOutput_Vtbl { @@ -2583,9 +2359,8 @@ pub struct IDXGIOutput_Vtbl { pub GetDisplaySurfaceData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdestination: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetFrameStatistics: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstats: *mut DXGI_FRAME_STATISTICS) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDXGIOutput1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDXGIOutput1, IDXGIOutput1_Vtbl, 0x00cddea8_939b_4b83_a340_a685226666cc); +::windows_core::imp::interface_hierarchy!(IDXGIOutput1, ::windows_core::IUnknown, IDXGIObject, IDXGIOutput); impl IDXGIOutput1 { pub unsafe fn SetPrivateData(&self, name: *const ::windows_core::GUID, datasize: u32, pdata: *const ::core::ffi::c_void) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.SetPrivateData)(::windows_core::Interface::as_raw(self), name, datasize, pdata).ok() @@ -2601,7 +2376,7 @@ impl IDXGIOutput1 { } pub unsafe fn GetParent(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.GetParent)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -2694,15 +2469,8 @@ impl IDXGIOutput1 { (::windows_core::Interface::vtable(self).DuplicateOutput)(::windows_core::Interface::as_raw(self), pdevice.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDXGIOutput1, ::windows_core::IUnknown, IDXGIObject, IDXGIOutput); unsafe impl ::core::marker::Send for IDXGIOutput1 {} unsafe impl ::core::marker::Sync for IDXGIOutput1 {} -unsafe impl ::windows_core::Interface for IDXGIOutput1 { - type Vtable = IDXGIOutput1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDXGIOutput1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00cddea8_939b_4b83_a340_a685226666cc); -} #[repr(C)] #[doc(hidden)] pub struct IDXGIOutput1_Vtbl { @@ -2718,9 +2486,8 @@ pub struct IDXGIOutput1_Vtbl { pub GetDisplaySurfaceData1: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdestination: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub DuplicateOutput: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdevice: *mut ::core::ffi::c_void, ppoutputduplication: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDXGIOutput2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDXGIOutput2, IDXGIOutput2_Vtbl, 0x595e39d1_2724_4663_99b1_da969de28364); +::windows_core::imp::interface_hierarchy!(IDXGIOutput2, ::windows_core::IUnknown, IDXGIObject, IDXGIOutput, IDXGIOutput1); impl IDXGIOutput2 { pub unsafe fn SetPrivateData(&self, name: *const ::windows_core::GUID, datasize: u32, pdata: *const ::core::ffi::c_void) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateData)(::windows_core::Interface::as_raw(self), name, datasize, pdata).ok() @@ -2736,7 +2503,7 @@ impl IDXGIOutput2 { } pub unsafe fn GetParent(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.GetParent)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -2832,24 +2599,16 @@ impl IDXGIOutput2 { (::windows_core::Interface::vtable(self).SupportsOverlays)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(IDXGIOutput2, ::windows_core::IUnknown, IDXGIObject, IDXGIOutput, IDXGIOutput1); unsafe impl ::core::marker::Send for IDXGIOutput2 {} unsafe impl ::core::marker::Sync for IDXGIOutput2 {} -unsafe impl ::windows_core::Interface for IDXGIOutput2 { - type Vtable = IDXGIOutput2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDXGIOutput2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x595e39d1_2724_4663_99b1_da969de28364); -} #[repr(C)] #[doc(hidden)] pub struct IDXGIOutput2_Vtbl { pub base__: IDXGIOutput1_Vtbl, pub SupportsOverlays: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDXGIOutput3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDXGIOutput3, IDXGIOutput3_Vtbl, 0x8a6bb301_7e7e_41f4_a8e0_5b32f7f99b18); +::windows_core::imp::interface_hierarchy!(IDXGIOutput3, ::windows_core::IUnknown, IDXGIObject, IDXGIOutput, IDXGIOutput1, IDXGIOutput2); impl IDXGIOutput3 { pub unsafe fn SetPrivateData(&self, name: *const ::windows_core::GUID, datasize: u32, pdata: *const ::core::ffi::c_void) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.SetPrivateData)(::windows_core::Interface::as_raw(self), name, datasize, pdata).ok() @@ -2865,7 +2624,7 @@ impl IDXGIOutput3 { } pub unsafe fn GetParent(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.GetParent)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -2970,15 +2729,8 @@ impl IDXGIOutput3 { (::windows_core::Interface::vtable(self).CheckOverlaySupport)(::windows_core::Interface::as_raw(self), enumformat, pconcerneddevice.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDXGIOutput3, ::windows_core::IUnknown, IDXGIObject, IDXGIOutput, IDXGIOutput1, IDXGIOutput2); unsafe impl ::core::marker::Send for IDXGIOutput3 {} unsafe impl ::core::marker::Sync for IDXGIOutput3 {} -unsafe impl ::windows_core::Interface for IDXGIOutput3 { - type Vtable = IDXGIOutput3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDXGIOutput3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8a6bb301_7e7e_41f4_a8e0_5b32f7f99b18); -} #[repr(C)] #[doc(hidden)] pub struct IDXGIOutput3_Vtbl { @@ -2988,9 +2740,8 @@ pub struct IDXGIOutput3_Vtbl { #[cfg(not(feature = "Win32_Graphics_Dxgi_Common"))] CheckOverlaySupport: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDXGIOutput4(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDXGIOutput4, IDXGIOutput4_Vtbl, 0xdc7dca35_2196_414d_9f53_617884032a60); +::windows_core::imp::interface_hierarchy!(IDXGIOutput4, ::windows_core::IUnknown, IDXGIObject, IDXGIOutput, IDXGIOutput1, IDXGIOutput2, IDXGIOutput3); impl IDXGIOutput4 { pub unsafe fn SetPrivateData(&self, name: *const ::windows_core::GUID, datasize: u32, pdata: *const ::core::ffi::c_void) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetPrivateData)(::windows_core::Interface::as_raw(self), name, datasize, pdata).ok() @@ -3006,7 +2757,7 @@ impl IDXGIOutput4 { } pub unsafe fn GetParent(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.GetParent)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -3120,15 +2871,8 @@ impl IDXGIOutput4 { (::windows_core::Interface::vtable(self).CheckOverlayColorSpaceSupport)(::windows_core::Interface::as_raw(self), format, colorspace, pconcerneddevice.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDXGIOutput4, ::windows_core::IUnknown, IDXGIObject, IDXGIOutput, IDXGIOutput1, IDXGIOutput2, IDXGIOutput3); unsafe impl ::core::marker::Send for IDXGIOutput4 {} unsafe impl ::core::marker::Sync for IDXGIOutput4 {} -unsafe impl ::windows_core::Interface for IDXGIOutput4 { - type Vtable = IDXGIOutput4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDXGIOutput4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdc7dca35_2196_414d_9f53_617884032a60); -} #[repr(C)] #[doc(hidden)] pub struct IDXGIOutput4_Vtbl { @@ -3138,9 +2882,8 @@ pub struct IDXGIOutput4_Vtbl { #[cfg(not(feature = "Win32_Graphics_Dxgi_Common"))] CheckOverlayColorSpaceSupport: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDXGIOutput5(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDXGIOutput5, IDXGIOutput5_Vtbl, 0x80a07424_ab52_42eb_833c_0c42fd282d98); +::windows_core::imp::interface_hierarchy!(IDXGIOutput5, ::windows_core::IUnknown, IDXGIObject, IDXGIOutput, IDXGIOutput1, IDXGIOutput2, IDXGIOutput3, IDXGIOutput4); impl IDXGIOutput5 { pub unsafe fn SetPrivateData(&self, name: *const ::windows_core::GUID, datasize: u32, pdata: *const ::core::ffi::c_void) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.SetPrivateData)(::windows_core::Interface::as_raw(self), name, datasize, pdata).ok() @@ -3156,7 +2899,7 @@ impl IDXGIOutput5 { } pub unsafe fn GetParent(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.GetParent)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -3279,15 +3022,8 @@ impl IDXGIOutput5 { (::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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDXGIOutput5, ::windows_core::IUnknown, IDXGIObject, IDXGIOutput, IDXGIOutput1, IDXGIOutput2, IDXGIOutput3, IDXGIOutput4); unsafe impl ::core::marker::Send for IDXGIOutput5 {} unsafe impl ::core::marker::Sync for IDXGIOutput5 {} -unsafe impl ::windows_core::Interface for IDXGIOutput5 { - type Vtable = IDXGIOutput5_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDXGIOutput5 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x80a07424_ab52_42eb_833c_0c42fd282d98); -} #[repr(C)] #[doc(hidden)] pub struct IDXGIOutput5_Vtbl { @@ -3297,9 +3033,8 @@ pub struct IDXGIOutput5_Vtbl { #[cfg(not(feature = "Win32_Graphics_Dxgi_Common"))] DuplicateOutput1: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDXGIOutput6(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDXGIOutput6, IDXGIOutput6_Vtbl, 0x068346e8_aaec_4b84_add7_137f513f77a1); +::windows_core::imp::interface_hierarchy!(IDXGIOutput6, ::windows_core::IUnknown, IDXGIObject, IDXGIOutput, IDXGIOutput1, IDXGIOutput2, IDXGIOutput3, IDXGIOutput4, IDXGIOutput5); impl IDXGIOutput6 { pub unsafe fn SetPrivateData(&self, name: *const ::windows_core::GUID, datasize: u32, pdata: *const ::core::ffi::c_void) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.SetPrivateData)(::windows_core::Interface::as_raw(self), name, datasize, pdata).ok() @@ -3315,7 +3050,7 @@ impl IDXGIOutput6 { } pub unsafe fn GetParent(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.GetParent)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -3447,15 +3182,8 @@ impl IDXGIOutput6 { (::windows_core::Interface::vtable(self).CheckHardwareCompositionSupport)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDXGIOutput6, ::windows_core::IUnknown, IDXGIObject, IDXGIOutput, IDXGIOutput1, IDXGIOutput2, IDXGIOutput3, IDXGIOutput4, IDXGIOutput5); unsafe impl ::core::marker::Send for IDXGIOutput6 {} unsafe impl ::core::marker::Sync for IDXGIOutput6 {} -unsafe impl ::windows_core::Interface for IDXGIOutput6 { - type Vtable = IDXGIOutput6_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDXGIOutput6 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x068346e8_aaec_4b84_add7_137f513f77a1); -} #[repr(C)] #[doc(hidden)] pub struct IDXGIOutput6_Vtbl { @@ -3466,9 +3194,8 @@ pub struct IDXGIOutput6_Vtbl { GetDesc1: usize, pub CheckHardwareCompositionSupport: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pflags: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDXGIOutputDuplication(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDXGIOutputDuplication, IDXGIOutputDuplication_Vtbl, 0x191cfac3_a341_470d_b26e_a864f428319c); +::windows_core::imp::interface_hierarchy!(IDXGIOutputDuplication, ::windows_core::IUnknown, IDXGIObject); impl IDXGIOutputDuplication { pub unsafe fn SetPrivateData(&self, name: *const ::windows_core::GUID, datasize: u32, pdata: *const ::core::ffi::c_void) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.SetPrivateData)(::windows_core::Interface::as_raw(self), name, datasize, pdata).ok() @@ -3484,7 +3211,7 @@ impl IDXGIOutputDuplication { } pub unsafe fn GetParent(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.GetParent)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -3517,15 +3244,8 @@ impl IDXGIOutputDuplication { (::windows_core::Interface::vtable(self).ReleaseFrame)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IDXGIOutputDuplication, ::windows_core::IUnknown, IDXGIObject); unsafe impl ::core::marker::Send for IDXGIOutputDuplication {} unsafe impl ::core::marker::Sync for IDXGIOutputDuplication {} -unsafe impl ::windows_core::Interface for IDXGIOutputDuplication { - type Vtable = IDXGIOutputDuplication_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDXGIOutputDuplication { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x191cfac3_a341_470d_b26e_a864f428319c); -} #[repr(C)] #[doc(hidden)] pub struct IDXGIOutputDuplication_Vtbl { @@ -3542,9 +3262,8 @@ pub struct IDXGIOutputDuplication_Vtbl { pub UnMapDesktopSurface: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ReleaseFrame: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDXGIResource(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDXGIResource, IDXGIResource_Vtbl, 0x035f3ab4_482e_4e50_b41f_8a7f8bd8960b); +::windows_core::imp::interface_hierarchy!(IDXGIResource, ::windows_core::IUnknown, IDXGIObject, IDXGIDeviceSubObject); impl IDXGIResource { pub unsafe fn SetPrivateData(&self, name: *const ::windows_core::GUID, datasize: u32, pdata: *const ::core::ffi::c_void) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.SetPrivateData)(::windows_core::Interface::as_raw(self), name, datasize, pdata).ok() @@ -3560,14 +3279,14 @@ impl IDXGIResource { } pub unsafe fn GetParent(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.GetParent)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) } pub unsafe fn GetDevice(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -3588,15 +3307,8 @@ impl IDXGIResource { (::windows_core::Interface::vtable(self).GetEvictionPriority)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDXGIResource, ::windows_core::IUnknown, IDXGIObject, IDXGIDeviceSubObject); unsafe impl ::core::marker::Send for IDXGIResource {} unsafe impl ::core::marker::Sync for IDXGIResource {} -unsafe impl ::windows_core::Interface for IDXGIResource { - type Vtable = IDXGIResource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDXGIResource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x035f3ab4_482e_4e50_b41f_8a7f8bd8960b); -} #[repr(C)] #[doc(hidden)] pub struct IDXGIResource_Vtbl { @@ -3606,9 +3318,8 @@ pub struct IDXGIResource_Vtbl { pub SetEvictionPriority: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, evictionpriority: u32) -> ::windows_core::HRESULT, pub GetEvictionPriority: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pevictionpriority: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDXGIResource1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDXGIResource1, IDXGIResource1_Vtbl, 0x30961379_4609_4a41_998e_54fe567ee0c1); +::windows_core::imp::interface_hierarchy!(IDXGIResource1, ::windows_core::IUnknown, IDXGIObject, IDXGIDeviceSubObject, IDXGIResource); impl IDXGIResource1 { pub unsafe fn SetPrivateData(&self, name: *const ::windows_core::GUID, datasize: u32, pdata: *const ::core::ffi::c_void) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateData)(::windows_core::Interface::as_raw(self), name, datasize, pdata).ok() @@ -3624,14 +3335,14 @@ impl IDXGIResource1 { } pub unsafe fn GetParent(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.GetParent)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) } pub unsafe fn GetDevice(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -3665,15 +3376,8 @@ impl IDXGIResource1 { (::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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDXGIResource1, ::windows_core::IUnknown, IDXGIObject, IDXGIDeviceSubObject, IDXGIResource); unsafe impl ::core::marker::Send for IDXGIResource1 {} unsafe impl ::core::marker::Sync for IDXGIResource1 {} -unsafe impl ::windows_core::Interface for IDXGIResource1 { - type Vtable = IDXGIResource1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDXGIResource1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x30961379_4609_4a41_998e_54fe567ee0c1); -} #[repr(C)] #[doc(hidden)] pub struct IDXGIResource1_Vtbl { @@ -3684,9 +3388,8 @@ pub struct IDXGIResource1_Vtbl { #[cfg(not(feature = "Win32_Security"))] CreateSharedHandle: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDXGISurface(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDXGISurface, IDXGISurface_Vtbl, 0xcafcb56c_6ac3_4889_bf47_9e23bbd260ec); +::windows_core::imp::interface_hierarchy!(IDXGISurface, ::windows_core::IUnknown, IDXGIObject, IDXGIDeviceSubObject); impl IDXGISurface { pub unsafe fn SetPrivateData(&self, name: *const ::windows_core::GUID, datasize: u32, pdata: *const ::core::ffi::c_void) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.SetPrivateData)(::windows_core::Interface::as_raw(self), name, datasize, pdata).ok() @@ -3702,14 +3405,14 @@ impl IDXGISurface { } pub unsafe fn GetParent(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.GetParent)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) } pub unsafe fn GetDevice(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -3726,15 +3429,8 @@ impl IDXGISurface { (::windows_core::Interface::vtable(self).Unmap)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IDXGISurface, ::windows_core::IUnknown, IDXGIObject, IDXGIDeviceSubObject); unsafe impl ::core::marker::Send for IDXGISurface {} unsafe impl ::core::marker::Sync for IDXGISurface {} -unsafe impl ::windows_core::Interface for IDXGISurface { - type Vtable = IDXGISurface_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDXGISurface { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcafcb56c_6ac3_4889_bf47_9e23bbd260ec); -} #[repr(C)] #[doc(hidden)] pub struct IDXGISurface_Vtbl { @@ -3746,9 +3442,8 @@ pub struct IDXGISurface_Vtbl { pub Map: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plockedrect: *mut DXGI_MAPPED_RECT, mapflags: u32) -> ::windows_core::HRESULT, pub Unmap: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDXGISurface1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDXGISurface1, IDXGISurface1_Vtbl, 0x4ae63092_6327_4c1b_80ae_bfe12ea32b86); +::windows_core::imp::interface_hierarchy!(IDXGISurface1, ::windows_core::IUnknown, IDXGIObject, IDXGIDeviceSubObject, IDXGISurface); impl IDXGISurface1 { pub unsafe fn SetPrivateData(&self, name: *const ::windows_core::GUID, datasize: u32, pdata: *const ::core::ffi::c_void) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateData)(::windows_core::Interface::as_raw(self), name, datasize, pdata).ok() @@ -3764,14 +3459,14 @@ impl IDXGISurface1 { } pub unsafe fn GetParent(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.GetParent)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) } pub unsafe fn GetDevice(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -3800,15 +3495,8 @@ impl IDXGISurface1 { (::windows_core::Interface::vtable(self).ReleaseDC)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pdirtyrect.unwrap_or(::std::ptr::null()))).ok() } } -::windows_core::imp::interface_hierarchy!(IDXGISurface1, ::windows_core::IUnknown, IDXGIObject, IDXGIDeviceSubObject, IDXGISurface); unsafe impl ::core::marker::Send for IDXGISurface1 {} unsafe impl ::core::marker::Sync for IDXGISurface1 {} -unsafe impl ::windows_core::Interface for IDXGISurface1 { - type Vtable = IDXGISurface1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDXGISurface1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4ae63092_6327_4c1b_80ae_bfe12ea32b86); -} #[repr(C)] #[doc(hidden)] pub struct IDXGISurface1_Vtbl { @@ -3819,9 +3507,8 @@ pub struct IDXGISurface1_Vtbl { GetDC: usize, pub ReleaseDC: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdirtyrect: *const super::super::Foundation::RECT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDXGISurface2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDXGISurface2, IDXGISurface2_Vtbl, 0xaba496dd_b617_4cb8_a866_bc44d7eb1fa2); +::windows_core::imp::interface_hierarchy!(IDXGISurface2, ::windows_core::IUnknown, IDXGIObject, IDXGIDeviceSubObject, IDXGISurface, IDXGISurface1); impl IDXGISurface2 { pub unsafe fn SetPrivateData(&self, name: *const ::windows_core::GUID, datasize: u32, pdata: *const ::core::ffi::c_void) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.SetPrivateData)(::windows_core::Interface::as_raw(self), name, datasize, pdata).ok() @@ -3837,14 +3524,14 @@ impl IDXGISurface2 { } pub unsafe fn GetParent(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.GetParent)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) } pub unsafe fn GetDevice(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -3874,30 +3561,22 @@ impl IDXGISurface2 { } pub unsafe fn GetResource(&self, psubresourceindex: *mut u32) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetResource)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__, psubresourceindex).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDXGISurface2, ::windows_core::IUnknown, IDXGIObject, IDXGIDeviceSubObject, IDXGISurface, IDXGISurface1); unsafe impl ::core::marker::Send for IDXGISurface2 {} unsafe impl ::core::marker::Sync for IDXGISurface2 {} -unsafe impl ::windows_core::Interface for IDXGISurface2 { - type Vtable = IDXGISurface2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDXGISurface2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaba496dd_b617_4cb8_a866_bc44d7eb1fa2); -} #[repr(C)] #[doc(hidden)] pub struct IDXGISurface2_Vtbl { pub base__: IDXGISurface1_Vtbl, pub GetResource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppparentresource: *mut *mut ::core::ffi::c_void, psubresourceindex: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDXGISwapChain(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDXGISwapChain, IDXGISwapChain_Vtbl, 0x310d36a0_d2e7_4c0a_aa04_6a9d23b8886a); +::windows_core::imp::interface_hierarchy!(IDXGISwapChain, ::windows_core::IUnknown, IDXGIObject, IDXGIDeviceSubObject); impl IDXGISwapChain { pub unsafe fn SetPrivateData(&self, name: *const ::windows_core::GUID, datasize: u32, pdata: *const ::core::ffi::c_void) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.SetPrivateData)(::windows_core::Interface::as_raw(self), name, datasize, pdata).ok() @@ -3913,14 +3592,14 @@ impl IDXGISwapChain { } pub unsafe fn GetParent(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.GetParent)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) } pub unsafe fn GetDevice(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -3930,7 +3609,7 @@ impl IDXGISwapChain { } pub unsafe fn GetBuffer(&self, buffer: u32) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetBuffer)(::windows_core::Interface::as_raw(self), buffer, &T::IID, &mut result__).from_abi(result__) @@ -3972,15 +3651,8 @@ impl IDXGISwapChain { (::windows_core::Interface::vtable(self).GetLastPresentCount)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDXGISwapChain, ::windows_core::IUnknown, IDXGIObject, IDXGIDeviceSubObject); unsafe impl ::core::marker::Send for IDXGISwapChain {} unsafe impl ::core::marker::Sync for IDXGISwapChain {} -unsafe impl ::windows_core::Interface for IDXGISwapChain { - type Vtable = IDXGISwapChain_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDXGISwapChain { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x310d36a0_d2e7_4c0a_aa04_6a9d23b8886a); -} #[repr(C)] #[doc(hidden)] pub struct IDXGISwapChain_Vtbl { @@ -4005,9 +3677,8 @@ pub struct IDXGISwapChain_Vtbl { pub GetFrameStatistics: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstats: *mut DXGI_FRAME_STATISTICS) -> ::windows_core::HRESULT, pub GetLastPresentCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plastpresentcount: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDXGISwapChain1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDXGISwapChain1, IDXGISwapChain1_Vtbl, 0x790a45f7_0d42_4876_983a_0a55cfe6f4aa); +::windows_core::imp::interface_hierarchy!(IDXGISwapChain1, ::windows_core::IUnknown, IDXGIObject, IDXGIDeviceSubObject, IDXGISwapChain); impl IDXGISwapChain1 { pub unsafe fn SetPrivateData(&self, name: *const ::windows_core::GUID, datasize: u32, pdata: *const ::core::ffi::c_void) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.SetPrivateData)(::windows_core::Interface::as_raw(self), name, datasize, pdata).ok() @@ -4023,14 +3694,14 @@ impl IDXGISwapChain1 { } pub unsafe fn GetParent(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.GetParent)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) } pub unsafe fn GetDevice(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -4040,7 +3711,7 @@ impl IDXGISwapChain1 { } pub unsafe fn GetBuffer(&self, buffer: u32) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.GetBuffer)(::windows_core::Interface::as_raw(self), buffer, &T::IID, &mut result__).from_abi(result__) @@ -4097,7 +3768,7 @@ impl IDXGISwapChain1 { } pub unsafe fn GetCoreWindow(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetCoreWindow)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -4131,15 +3802,8 @@ impl IDXGISwapChain1 { (::windows_core::Interface::vtable(self).GetRotation)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDXGISwapChain1, ::windows_core::IUnknown, IDXGIObject, IDXGIDeviceSubObject, IDXGISwapChain); unsafe impl ::core::marker::Send for IDXGISwapChain1 {} unsafe impl ::core::marker::Sync for IDXGISwapChain1 {} -unsafe impl ::windows_core::Interface for IDXGISwapChain1 { - type Vtable = IDXGISwapChain1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDXGISwapChain1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x790a45f7_0d42_4876_983a_0a55cfe6f4aa); -} #[repr(C)] #[doc(hidden)] pub struct IDXGISwapChain1_Vtbl { @@ -4168,9 +3832,8 @@ pub struct IDXGISwapChain1_Vtbl { #[cfg(not(feature = "Win32_Graphics_Dxgi_Common"))] GetRotation: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDXGISwapChain2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDXGISwapChain2, IDXGISwapChain2_Vtbl, 0xa8be2ac4_199f_4946_b331_79599fb98de7); +::windows_core::imp::interface_hierarchy!(IDXGISwapChain2, ::windows_core::IUnknown, IDXGIObject, IDXGIDeviceSubObject, IDXGISwapChain, IDXGISwapChain1); impl IDXGISwapChain2 { pub unsafe fn SetPrivateData(&self, name: *const ::windows_core::GUID, datasize: u32, pdata: *const ::core::ffi::c_void) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.SetPrivateData)(::windows_core::Interface::as_raw(self), name, datasize, pdata).ok() @@ -4186,14 +3849,14 @@ impl IDXGISwapChain2 { } pub unsafe fn GetParent(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.GetParent)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) } pub unsafe fn GetDevice(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -4203,7 +3866,7 @@ impl IDXGISwapChain2 { } pub unsafe fn GetBuffer(&self, buffer: u32) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.GetBuffer)(::windows_core::Interface::as_raw(self), buffer, &T::IID, &mut result__).from_abi(result__) @@ -4260,7 +3923,7 @@ impl IDXGISwapChain2 { } pub unsafe fn GetCoreWindow(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.GetCoreWindow)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -4316,15 +3979,8 @@ impl IDXGISwapChain2 { (::windows_core::Interface::vtable(self).GetMatrixTransform)(::windows_core::Interface::as_raw(self), pmatrix).ok() } } -::windows_core::imp::interface_hierarchy!(IDXGISwapChain2, ::windows_core::IUnknown, IDXGIObject, IDXGIDeviceSubObject, IDXGISwapChain, IDXGISwapChain1); unsafe impl ::core::marker::Send for IDXGISwapChain2 {} unsafe impl ::core::marker::Sync for IDXGISwapChain2 {} -unsafe impl ::windows_core::Interface for IDXGISwapChain2 { - type Vtable = IDXGISwapChain2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDXGISwapChain2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa8be2ac4_199f_4946_b331_79599fb98de7); -} #[repr(C)] #[doc(hidden)] pub struct IDXGISwapChain2_Vtbl { @@ -4337,9 +3993,8 @@ pub struct IDXGISwapChain2_Vtbl { pub SetMatrixTransform: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pmatrix: *const DXGI_MATRIX_3X2_F) -> ::windows_core::HRESULT, pub GetMatrixTransform: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pmatrix: *mut DXGI_MATRIX_3X2_F) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDXGISwapChain3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDXGISwapChain3, IDXGISwapChain3_Vtbl, 0x94d99bdb_f1f8_4ab0_b236_7da0170edab1); +::windows_core::imp::interface_hierarchy!(IDXGISwapChain3, ::windows_core::IUnknown, IDXGIObject, IDXGIDeviceSubObject, IDXGISwapChain, IDXGISwapChain1, IDXGISwapChain2); impl IDXGISwapChain3 { pub unsafe fn SetPrivateData(&self, name: *const ::windows_core::GUID, datasize: u32, pdata: *const ::core::ffi::c_void) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetPrivateData)(::windows_core::Interface::as_raw(self), name, datasize, pdata).ok() @@ -4355,14 +4010,14 @@ impl IDXGISwapChain3 { } pub unsafe fn GetParent(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.GetParent)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) } pub unsafe fn GetDevice(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -4372,7 +4027,7 @@ impl IDXGISwapChain3 { } pub unsafe fn GetBuffer(&self, buffer: u32) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.GetBuffer)(::windows_core::Interface::as_raw(self), buffer, &T::IID, &mut result__).from_abi(result__) @@ -4429,7 +4084,7 @@ impl IDXGISwapChain3 { } pub unsafe fn GetCoreWindow(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.GetCoreWindow)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -4504,15 +4159,8 @@ impl IDXGISwapChain3 { (::windows_core::Interface::vtable(self).ResizeBuffers1)(::windows_core::Interface::as_raw(self), buffercount, width, height, format, swapchainflags, pcreationnodemask, ::core::mem::transmute(pppresentqueue)).ok() } } -::windows_core::imp::interface_hierarchy!(IDXGISwapChain3, ::windows_core::IUnknown, IDXGIObject, IDXGIDeviceSubObject, IDXGISwapChain, IDXGISwapChain1, IDXGISwapChain2); unsafe impl ::core::marker::Send for IDXGISwapChain3 {} unsafe impl ::core::marker::Sync for IDXGISwapChain3 {} -unsafe impl ::windows_core::Interface for IDXGISwapChain3 { - type Vtable = IDXGISwapChain3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDXGISwapChain3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x94d99bdb_f1f8_4ab0_b236_7da0170edab1); -} #[repr(C)] #[doc(hidden)] pub struct IDXGISwapChain3_Vtbl { @@ -4531,9 +4179,8 @@ pub struct IDXGISwapChain3_Vtbl { #[cfg(not(feature = "Win32_Graphics_Dxgi_Common"))] ResizeBuffers1: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDXGISwapChain4(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDXGISwapChain4, IDXGISwapChain4_Vtbl, 0x3d585d5a_bd4a_489e_b1f4_3dbcb6452ffb); +::windows_core::imp::interface_hierarchy!(IDXGISwapChain4, ::windows_core::IUnknown, IDXGIObject, IDXGIDeviceSubObject, IDXGISwapChain, IDXGISwapChain1, IDXGISwapChain2, IDXGISwapChain3); impl IDXGISwapChain4 { pub unsafe fn SetPrivateData(&self, name: *const ::windows_core::GUID, datasize: u32, pdata: *const ::core::ffi::c_void) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.SetPrivateData)(::windows_core::Interface::as_raw(self), name, datasize, pdata).ok() @@ -4549,14 +4196,14 @@ impl IDXGISwapChain4 { } pub unsafe fn GetParent(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.GetParent)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) } pub unsafe fn GetDevice(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -4566,7 +4213,7 @@ impl IDXGISwapChain4 { } pub unsafe fn GetBuffer(&self, buffer: u32) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.GetBuffer)(::windows_core::Interface::as_raw(self), buffer, &T::IID, &mut result__).from_abi(result__) @@ -4623,7 +4270,7 @@ impl IDXGISwapChain4 { } pub unsafe fn GetCoreWindow(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.GetCoreWindow)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -4701,24 +4348,16 @@ impl IDXGISwapChain4 { (::windows_core::Interface::vtable(self).SetHDRMetaData)(::windows_core::Interface::as_raw(self), r#type, pmetadata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), ::core::mem::transmute(pmetadata.as_deref().map_or(::core::ptr::null(), |slice| slice.as_ptr()))).ok() } } -::windows_core::imp::interface_hierarchy!(IDXGISwapChain4, ::windows_core::IUnknown, IDXGIObject, IDXGIDeviceSubObject, IDXGISwapChain, IDXGISwapChain1, IDXGISwapChain2, IDXGISwapChain3); unsafe impl ::core::marker::Send for IDXGISwapChain4 {} unsafe impl ::core::marker::Sync for IDXGISwapChain4 {} -unsafe impl ::windows_core::Interface for IDXGISwapChain4 { - type Vtable = IDXGISwapChain4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDXGISwapChain4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3d585d5a_bd4a_489e_b1f4_3dbcb6452ffb); -} #[repr(C)] #[doc(hidden)] pub struct IDXGISwapChain4_Vtbl { pub base__: IDXGISwapChain3_Vtbl, pub SetHDRMetaData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: DXGI_HDR_METADATA_TYPE, size: u32, pmetadata: *const ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDXGISwapChainMedia(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDXGISwapChainMedia, IDXGISwapChainMedia_Vtbl, 0xdd95b90b_f05f_4f6a_bd65_25bfb264bd84); +::windows_core::imp::interface_hierarchy!(IDXGISwapChainMedia, ::windows_core::IUnknown); impl IDXGISwapChainMedia { pub unsafe fn GetFrameStatisticsMedia(&self, pstats: *mut DXGI_FRAME_STATISTICS_MEDIA) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetFrameStatisticsMedia)(::windows_core::Interface::as_raw(self), pstats).ok() @@ -4730,15 +4369,8 @@ impl IDXGISwapChainMedia { (::windows_core::Interface::vtable(self).CheckPresentDurationSupport)(::windows_core::Interface::as_raw(self), desiredpresentduration, pclosestsmallerpresentduration, pclosestlargerpresentduration).ok() } } -::windows_core::imp::interface_hierarchy!(IDXGISwapChainMedia, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for IDXGISwapChainMedia {} unsafe impl ::core::marker::Sync for IDXGISwapChainMedia {} -unsafe impl ::windows_core::Interface for IDXGISwapChainMedia { - type Vtable = IDXGISwapChainMedia_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDXGISwapChainMedia { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdd95b90b_f05f_4f6a_bd65_25bfb264bd84); -} #[repr(C)] #[doc(hidden)] pub struct IDXGISwapChainMedia_Vtbl { @@ -4747,9 +4379,8 @@ pub struct IDXGISwapChainMedia_Vtbl { pub SetPresentDuration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, duration: u32) -> ::windows_core::HRESULT, pub CheckPresentDurationSupport: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, desiredpresentduration: u32, pclosestsmallerpresentduration: *mut u32, pclosestlargerpresentduration: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDXGraphicsAnalysis(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDXGraphicsAnalysis, IDXGraphicsAnalysis_Vtbl, 0x9f251514_9d4d_4902_9d60_18988ab7d4b5); +::windows_core::imp::interface_hierarchy!(IDXGraphicsAnalysis, ::windows_core::IUnknown); impl IDXGraphicsAnalysis { pub unsafe fn BeginCapture(&self) { (::windows_core::Interface::vtable(self).BeginCapture)(::windows_core::Interface::as_raw(self)) @@ -4758,13 +4389,6 @@ impl IDXGraphicsAnalysis { (::windows_core::Interface::vtable(self).EndCapture)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(IDXGraphicsAnalysis, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDXGraphicsAnalysis { - type Vtable = IDXGraphicsAnalysis_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDXGraphicsAnalysis { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9f251514_9d4d_4902_9d60_18988ab7d4b5); -} #[repr(C)] #[doc(hidden)] pub struct IDXGraphicsAnalysis_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/GdiPlus/impl.rs b/crates/libs/windows/src/Windows/Win32/Graphics/GdiPlus/impl.rs index bd7a61d580..cde00f464c 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/GdiPlus/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/GdiPlus/impl.rs @@ -54,6 +54,6 @@ impl IImageBytes_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 1e95044ac5..cd1658927a 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/GdiPlus/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/GdiPlus/mod.rs @@ -3464,25 +3464,19 @@ pub unsafe fn GdiplusStartup(token: *mut usize, input: *const GdiplusStartupInpu ::windows_targets::link!("gdiplus.dll" "system" fn GdiplusStartup(token : *mut usize, input : *const GdiplusStartupInput, output : *mut GdiplusStartupOutput) -> Status); GdiplusStartup(token, input, output) } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct GdiplusAbort(::std::ptr::NonNull<::std::ffi::c_void>); +::windows_core::imp::interface!(GdiplusAbort, GdiplusAbort_Vtbl); impl GdiplusAbort { pub unsafe fn Abort(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Abort)(::windows_core::Interface::as_raw(self)).ok() } } -unsafe impl ::windows_core::Interface for GdiplusAbort { - type Vtable = GdiplusAbort_Vtbl; -} #[repr(C)] #[doc(hidden)] pub struct GdiplusAbort_Vtbl { pub Abort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IImageBytes(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IImageBytes, IImageBytes_Vtbl, 0x025d1823_6c7d_447b_bbdb_a3cbc3dfa2fc); +::windows_core::imp::interface_hierarchy!(IImageBytes, ::windows_core::IUnknown); impl IImageBytes { pub unsafe fn CountBytes(&self, pcb: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).CountBytes)(::windows_core::Interface::as_raw(self), pcb).ok() @@ -3494,13 +3488,6 @@ impl IImageBytes { (::windows_core::Interface::vtable(self).UnlockBytes)(::windows_core::Interface::as_raw(self), pvbytes, cb, uloffset).ok() } } -::windows_core::imp::interface_hierarchy!(IImageBytes, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IImageBytes { - type Vtable = IImageBytes_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IImageBytes { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x025d1823_6c7d_447b_bbdb_a3cbc3dfa2fc); -} #[repr(C)] #[doc(hidden)] pub struct IImageBytes_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Imaging/D2D/impl.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Imaging/D2D/impl.rs index dd4fbe43d9..e5ac91599b 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Imaging/D2D/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Imaging/D2D/impl.rs @@ -33,7 +33,7 @@ impl IWICImageEncoder_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct2D\"`, `\"Win32_Graphics_Gdi\"`, `\"Win32_System_Com\"`, `\"Win32_UI_WindowsAndMessaging\"`"] @@ -60,6 +60,6 @@ impl IWICImagingFactory2_Vtbl { Self { base__: super::IWICImagingFactory_Vtbl::new::(), CreateImageEncoder: CreateImageEncoder:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } 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 c0e003adf1..f773dc3c15 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 @@ -1,6 +1,5 @@ -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWICImageEncoder(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWICImageEncoder, IWICImageEncoder_Vtbl, 0x04c75bf8_3ce1_473b_acc5_3cc4f5e94999); +::windows_core::imp::interface_hierarchy!(IWICImageEncoder, ::windows_core::IUnknown); impl IWICImageEncoder { #[doc = "Required features: `\"Win32_Graphics_Direct2D_Common\"`, `\"Win32_Graphics_Dxgi_Common\"`"] #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_Dxgi_Common"))] @@ -30,13 +29,6 @@ impl IWICImageEncoder { (::windows_core::Interface::vtable(self).WriteThumbnail)(::windows_core::Interface::as_raw(self), pimage.into_param().abi(), pencoder.into_param().abi(), pimageparameters).ok() } } -::windows_core::imp::interface_hierarchy!(IWICImageEncoder, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWICImageEncoder { - type Vtable = IWICImageEncoder_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWICImageEncoder { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x04c75bf8_3ce1_473b_acc5_3cc4f5e94999); -} #[repr(C)] #[doc(hidden)] pub struct IWICImageEncoder_Vtbl { @@ -54,9 +46,8 @@ pub struct IWICImageEncoder_Vtbl { #[cfg(not(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_Dxgi_Common")))] WriteThumbnail: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWICImagingFactory2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWICImagingFactory2, IWICImagingFactory2_Vtbl, 0x7b816b45_1996_4476_b132_de9e247c8af0); +::windows_core::imp::interface_hierarchy!(IWICImagingFactory2, ::windows_core::IUnknown, super::IWICImagingFactory); impl IWICImagingFactory2 { pub unsafe fn CreateDecoderFromFilename(&self, wzfilename: P0, pguidvendor: ::core::option::Option<*const ::windows_core::GUID>, dwdesiredaccess: super::super::super::Foundation::GENERIC_ACCESS_RIGHTS, metadataoptions: super::WICDecodeOptions) -> ::windows_core::Result where @@ -206,13 +197,6 @@ impl IWICImagingFactory2 { (::windows_core::Interface::vtable(self).CreateImageEncoder)(::windows_core::Interface::as_raw(self), pd2ddevice.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWICImagingFactory2, ::windows_core::IUnknown, super::IWICImagingFactory); -unsafe impl ::windows_core::Interface for IWICImagingFactory2 { - type Vtable = IWICImagingFactory2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWICImagingFactory2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7b816b45_1996_4476_b132_de9e247c8af0); -} #[repr(C)] #[doc(hidden)] pub struct IWICImagingFactory2_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Imaging/impl.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Imaging/impl.rs index c3ed19ae96..24e745ed07 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Imaging/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Imaging/impl.rs @@ -35,7 +35,7 @@ impl IWICBitmap_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IWICBitmapClipper_Impl: Sized + IWICBitmapSource_Impl { @@ -52,7 +52,7 @@ impl IWICBitmapClipper_Vtbl { Self { base__: IWICBitmapSource_Vtbl::new::(), Initialize: Initialize:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IWICBitmapCodecInfo_Impl: Sized + IWICComponentInfo_Impl { @@ -185,7 +185,7 @@ impl IWICBitmapCodecInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IWICBitmapCodecProgressNotification_Impl: Sized { @@ -205,7 +205,7 @@ impl IWICBitmapCodecProgressNotification_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -347,7 +347,7 @@ impl IWICBitmapDecoder_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -397,7 +397,7 @@ impl IWICBitmapDecoderInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`"] @@ -502,7 +502,7 @@ impl IWICBitmapEncoder_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWICBitmapEncoderInfo_Impl: Sized + IWICBitmapCodecInfo_Impl { @@ -525,7 +525,7 @@ impl IWICBitmapEncoderInfo_Vtbl { Self { base__: IWICBitmapCodecInfo_Vtbl::new::(), CreateInstance: CreateInstance:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IWICBitmapFlipRotator_Impl: Sized + IWICBitmapSource_Impl { @@ -542,7 +542,7 @@ impl IWICBitmapFlipRotator_Vtbl { Self { base__: IWICBitmapSource_Vtbl::new::(), Initialize: Initialize:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IWICBitmapFrameDecode_Impl: Sized + IWICBitmapSource_Impl { @@ -588,7 +588,7 @@ impl IWICBitmapFrameDecode_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`"] @@ -688,7 +688,7 @@ impl IWICBitmapFrameEncode_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWICBitmapLock_Impl: Sized { @@ -741,7 +741,7 @@ impl IWICBitmapLock_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWICBitmapScaler_Impl: Sized + IWICBitmapSource_Impl { @@ -758,7 +758,7 @@ impl IWICBitmapScaler_Vtbl { Self { base__: IWICBitmapSource_Vtbl::new::(), Initialize: Initialize:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IWICBitmapSource_Impl: Sized { @@ -812,7 +812,7 @@ impl IWICBitmapSource_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWICBitmapSourceTransform_Impl: Sized { @@ -859,7 +859,7 @@ impl IWICBitmapSourceTransform_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWICColorContext_Impl: Sized { @@ -926,7 +926,7 @@ impl IWICColorContext_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWICColorTransform_Impl: Sized + IWICBitmapSource_Impl { @@ -943,7 +943,7 @@ impl IWICColorTransform_Vtbl { Self { base__: IWICBitmapSource_Vtbl::new::(), Initialize: Initialize:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`, `\"Win32_UI_WindowsAndMessaging\"`"] @@ -1051,7 +1051,7 @@ impl IWICComponentFactory_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IWICComponentInfo_Impl: Sized { @@ -1144,7 +1144,7 @@ impl IWICComponentInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] @@ -1181,7 +1181,7 @@ impl IWICDdsDecoder_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] @@ -1219,7 +1219,7 @@ impl IWICDdsEncoder_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] @@ -1263,7 +1263,7 @@ impl IWICDdsFrameDecode_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`"] @@ -1576,7 +1576,7 @@ impl IWICDevelopRaw_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IWICDevelopRawNotificationCallback_Impl: Sized { @@ -1593,7 +1593,7 @@ impl IWICDevelopRawNotificationCallback_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Notify: Notify:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] @@ -1644,7 +1644,7 @@ impl IWICEnumMetadataItem_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWICFastMetadataEncoder_Impl: Sized { @@ -1677,7 +1677,7 @@ impl IWICFastMetadataEncoder_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWICFormatConverter_Impl: Sized + IWICBitmapSource_Impl { @@ -1710,7 +1710,7 @@ impl IWICFormatConverter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IWICFormatConverterInfo_Impl: Sized + IWICComponentInfo_Impl { @@ -1743,7 +1743,7 @@ impl IWICFormatConverterInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_System_Com\"`, `\"Win32_UI_WindowsAndMessaging\"`"] @@ -2085,7 +2085,7 @@ impl IWICImagingFactory_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] @@ -2178,7 +2178,7 @@ impl IWICJpegFrameDecode_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] @@ -2223,7 +2223,7 @@ impl IWICJpegFrameEncode_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2292,7 +2292,7 @@ impl IWICMetadataBlockReader_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2350,7 +2350,7 @@ impl IWICMetadataBlockWriter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IWICMetadataHandlerInfo_Impl: Sized + IWICComponentInfo_Impl { @@ -2436,7 +2436,7 @@ impl IWICMetadataHandlerInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] @@ -2493,7 +2493,7 @@ impl IWICMetadataQueryReader_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] @@ -2524,7 +2524,7 @@ impl IWICMetadataQueryWriter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] @@ -2607,7 +2607,7 @@ impl IWICMetadataReader_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2657,7 +2657,7 @@ impl IWICMetadataReaderInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] @@ -2702,7 +2702,7 @@ impl IWICMetadataWriter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IWICMetadataWriterInfo_Impl: Sized + IWICMetadataHandlerInfo_Impl { @@ -2735,7 +2735,7 @@ impl IWICMetadataWriterInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IWICPalette_Impl: Sized { @@ -2848,7 +2848,7 @@ impl IWICPalette_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2879,7 +2879,7 @@ impl IWICPersistStream_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IWICPixelFormatInfo_Impl: Sized + IWICComponentInfo_Impl { @@ -2951,7 +2951,7 @@ impl IWICPixelFormatInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IWICPixelFormatInfo2_Impl: Sized + IWICPixelFormatInfo_Impl { @@ -2990,7 +2990,7 @@ impl IWICPixelFormatInfo2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IWICPlanarBitmapFrameEncode_Impl: Sized { @@ -3017,7 +3017,7 @@ impl IWICPlanarBitmapFrameEncode_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWICPlanarBitmapSourceTransform_Impl: Sized { @@ -3044,7 +3044,7 @@ impl IWICPlanarBitmapSourceTransform_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWICPlanarFormatConverter_Impl: Sized + IWICBitmapSource_Impl { @@ -3077,7 +3077,7 @@ impl IWICPlanarFormatConverter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IWICProgressCallback_Impl: Sized { @@ -3094,7 +3094,7 @@ impl IWICProgressCallback_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Notify: Notify:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWICProgressiveLevelControl_Impl: Sized { @@ -3140,7 +3140,7 @@ impl IWICProgressiveLevelControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3185,7 +3185,7 @@ impl IWICStream_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3248,6 +3248,6 @@ impl IWICStreamProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 f9a3e4fff1..61fb0c853e 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Imaging/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Imaging/mod.rs @@ -81,9 +81,8 @@ where ::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() } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWICBitmap(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWICBitmap, IWICBitmap_Vtbl, 0x00000121_a8f2_4877_ba0a_fd2b6645fb94); +::windows_core::imp::interface_hierarchy!(IWICBitmap, ::windows_core::IUnknown, IWICBitmapSource); impl IWICBitmap { pub unsafe fn GetSize(&self, puiwidth: *mut u32, puiheight: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.GetSize)(::windows_core::Interface::as_raw(self), puiwidth, puiheight).ok() @@ -118,13 +117,6 @@ impl IWICBitmap { (::windows_core::Interface::vtable(self).SetResolution)(::windows_core::Interface::as_raw(self), dpix, dpiy).ok() } } -::windows_core::imp::interface_hierarchy!(IWICBitmap, ::windows_core::IUnknown, IWICBitmapSource); -unsafe impl ::windows_core::Interface for IWICBitmap { - type Vtable = IWICBitmap_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWICBitmap { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00000121_a8f2_4877_ba0a_fd2b6645fb94); -} #[repr(C)] #[doc(hidden)] pub struct IWICBitmap_Vtbl { @@ -133,9 +125,8 @@ pub struct IWICBitmap_Vtbl { pub SetPalette: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pipalette: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetResolution: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dpix: f64, dpiy: f64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWICBitmapClipper(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWICBitmapClipper, IWICBitmapClipper_Vtbl, 0xe4fbcf03_223d_4e81_9333_d635556dd1b5); +::windows_core::imp::interface_hierarchy!(IWICBitmapClipper, ::windows_core::IUnknown, IWICBitmapSource); impl IWICBitmapClipper { pub unsafe fn GetSize(&self, puiwidth: *mut u32, puiheight: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.GetSize)(::windows_core::Interface::as_raw(self), puiwidth, puiheight).ok() @@ -163,22 +154,14 @@ impl IWICBitmapClipper { (::windows_core::Interface::vtable(self).Initialize)(::windows_core::Interface::as_raw(self), pisource.into_param().abi(), prc).ok() } } -::windows_core::imp::interface_hierarchy!(IWICBitmapClipper, ::windows_core::IUnknown, IWICBitmapSource); -unsafe impl ::windows_core::Interface for IWICBitmapClipper { - type Vtable = IWICBitmapClipper_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWICBitmapClipper { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe4fbcf03_223d_4e81_9333_d635556dd1b5); -} #[repr(C)] #[doc(hidden)] pub struct IWICBitmapClipper_Vtbl { pub base__: IWICBitmapSource_Vtbl, pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pisource: *mut ::core::ffi::c_void, prc: *const WICRect) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWICBitmapCodecInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWICBitmapCodecInfo, IWICBitmapCodecInfo_Vtbl, 0xe87a44c4_b76e_4c47_8b09_298eb12a2714); +::windows_core::imp::interface_hierarchy!(IWICBitmapCodecInfo, ::windows_core::IUnknown, IWICComponentInfo); impl IWICBitmapCodecInfo { pub unsafe fn GetComponentType(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -254,13 +237,6 @@ impl IWICBitmapCodecInfo { (::windows_core::Interface::vtable(self).MatchesMimeType)(::windows_core::Interface::as_raw(self), wzmimetype.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWICBitmapCodecInfo, ::windows_core::IUnknown, IWICComponentInfo); -unsafe impl ::windows_core::Interface for IWICBitmapCodecInfo { - type Vtable = IWICBitmapCodecInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWICBitmapCodecInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe87a44c4_b76e_4c47_8b09_298eb12a2714); -} #[repr(C)] #[doc(hidden)] pub struct IWICBitmapCodecInfo_Vtbl { @@ -278,30 +254,21 @@ pub struct IWICBitmapCodecInfo_Vtbl { pub DoesSupportMultiframe: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfsupportmultiframe: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub MatchesMimeType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wzmimetype: ::windows_core::PCWSTR, pfmatches: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWICBitmapCodecProgressNotification(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWICBitmapCodecProgressNotification, IWICBitmapCodecProgressNotification_Vtbl, 0x64c1024e_c3cf_4462_8078_88c2b11c46d9); +::windows_core::imp::interface_hierarchy!(IWICBitmapCodecProgressNotification, ::windows_core::IUnknown); impl IWICBitmapCodecProgressNotification { pub unsafe fn RegisterProgressNotification(&self, pfnprogressnotification: PFNProgressNotification, pvdata: ::core::option::Option<*const ::core::ffi::c_void>, dwprogressflags: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).RegisterProgressNotification)(::windows_core::Interface::as_raw(self), pfnprogressnotification, ::core::mem::transmute(pvdata.unwrap_or(::std::ptr::null())), dwprogressflags).ok() } } -::windows_core::imp::interface_hierarchy!(IWICBitmapCodecProgressNotification, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWICBitmapCodecProgressNotification { - type Vtable = IWICBitmapCodecProgressNotification_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWICBitmapCodecProgressNotification { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x64c1024e_c3cf_4462_8078_88c2b11c46d9); -} #[repr(C)] #[doc(hidden)] pub struct IWICBitmapCodecProgressNotification_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub RegisterProgressNotification: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfnprogressnotification: PFNProgressNotification, pvdata: *const ::core::ffi::c_void, dwprogressflags: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWICBitmapDecoder(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWICBitmapDecoder, IWICBitmapDecoder_Vtbl, 0x9edde9e7_8dee_47ea_99df_e6faf2ed44bf); +::windows_core::imp::interface_hierarchy!(IWICBitmapDecoder, ::windows_core::IUnknown); impl IWICBitmapDecoder { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -358,13 +325,6 @@ impl IWICBitmapDecoder { (::windows_core::Interface::vtable(self).GetFrame)(::windows_core::Interface::as_raw(self), index, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWICBitmapDecoder, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWICBitmapDecoder { - type Vtable = IWICBitmapDecoder_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWICBitmapDecoder { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9edde9e7_8dee_47ea_99df_e6faf2ed44bf); -} #[repr(C)] #[doc(hidden)] pub struct IWICBitmapDecoder_Vtbl { @@ -387,9 +347,8 @@ pub struct IWICBitmapDecoder_Vtbl { pub GetFrameCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcount: *mut u32) -> ::windows_core::HRESULT, pub GetFrame: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, ppibitmapframe: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWICBitmapDecoderInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWICBitmapDecoderInfo, IWICBitmapDecoderInfo_Vtbl, 0xd8cd007f_d08f_4191_9bfc_236ea7f0e4b5); +::windows_core::imp::interface_hierarchy!(IWICBitmapDecoderInfo, ::windows_core::IUnknown, IWICComponentInfo, IWICBitmapCodecInfo); impl IWICBitmapDecoderInfo { pub unsafe fn GetComponentType(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -481,13 +440,6 @@ impl IWICBitmapDecoderInfo { (::windows_core::Interface::vtable(self).CreateInstance)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWICBitmapDecoderInfo, ::windows_core::IUnknown, IWICComponentInfo, IWICBitmapCodecInfo); -unsafe impl ::windows_core::Interface for IWICBitmapDecoderInfo { - type Vtable = IWICBitmapDecoderInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWICBitmapDecoderInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd8cd007f_d08f_4191_9bfc_236ea7f0e4b5); -} #[repr(C)] #[doc(hidden)] pub struct IWICBitmapDecoderInfo_Vtbl { @@ -499,9 +451,8 @@ pub struct IWICBitmapDecoderInfo_Vtbl { MatchesPattern: usize, pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppibitmapdecoder: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWICBitmapEncoder(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWICBitmapEncoder, IWICBitmapEncoder_Vtbl, 0x00000103_a8f2_4877_ba0a_fd2b6645fb94); +::windows_core::imp::interface_hierarchy!(IWICBitmapEncoder, ::windows_core::IUnknown); impl IWICBitmapEncoder { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -553,13 +504,6 @@ impl IWICBitmapEncoder { (::windows_core::Interface::vtable(self).GetMetadataQueryWriter)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWICBitmapEncoder, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWICBitmapEncoder { - type Vtable = IWICBitmapEncoder_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWICBitmapEncoder { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00000103_a8f2_4877_ba0a_fd2b6645fb94); -} #[repr(C)] #[doc(hidden)] pub struct IWICBitmapEncoder_Vtbl { @@ -581,9 +525,8 @@ pub struct IWICBitmapEncoder_Vtbl { pub Commit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetMetadataQueryWriter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppimetadataquerywriter: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWICBitmapEncoderInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWICBitmapEncoderInfo, IWICBitmapEncoderInfo_Vtbl, 0x94c9b4ee_a09f_4f92_8a1e_4a9bce7e76fb); +::windows_core::imp::interface_hierarchy!(IWICBitmapEncoderInfo, ::windows_core::IUnknown, IWICComponentInfo, IWICBitmapCodecInfo); impl IWICBitmapEncoderInfo { pub unsafe fn GetComponentType(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -663,22 +606,14 @@ impl IWICBitmapEncoderInfo { (::windows_core::Interface::vtable(self).CreateInstance)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWICBitmapEncoderInfo, ::windows_core::IUnknown, IWICComponentInfo, IWICBitmapCodecInfo); -unsafe impl ::windows_core::Interface for IWICBitmapEncoderInfo { - type Vtable = IWICBitmapEncoderInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWICBitmapEncoderInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x94c9b4ee_a09f_4f92_8a1e_4a9bce7e76fb); -} #[repr(C)] #[doc(hidden)] pub struct IWICBitmapEncoderInfo_Vtbl { pub base__: IWICBitmapCodecInfo_Vtbl, pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppibitmapencoder: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWICBitmapFlipRotator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWICBitmapFlipRotator, IWICBitmapFlipRotator_Vtbl, 0x5009834f_2d6a_41ce_9e1b_17c5aff7a782); +::windows_core::imp::interface_hierarchy!(IWICBitmapFlipRotator, ::windows_core::IUnknown, IWICBitmapSource); impl IWICBitmapFlipRotator { pub unsafe fn GetSize(&self, puiwidth: *mut u32, puiheight: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.GetSize)(::windows_core::Interface::as_raw(self), puiwidth, puiheight).ok() @@ -706,22 +641,14 @@ impl IWICBitmapFlipRotator { (::windows_core::Interface::vtable(self).Initialize)(::windows_core::Interface::as_raw(self), pisource.into_param().abi(), options).ok() } } -::windows_core::imp::interface_hierarchy!(IWICBitmapFlipRotator, ::windows_core::IUnknown, IWICBitmapSource); -unsafe impl ::windows_core::Interface for IWICBitmapFlipRotator { - type Vtable = IWICBitmapFlipRotator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWICBitmapFlipRotator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5009834f_2d6a_41ce_9e1b_17c5aff7a782); -} #[repr(C)] #[doc(hidden)] pub struct IWICBitmapFlipRotator_Vtbl { pub base__: IWICBitmapSource_Vtbl, pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pisource: *mut ::core::ffi::c_void, options: WICBitmapTransformOptions) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWICBitmapFrameDecode(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWICBitmapFrameDecode, IWICBitmapFrameDecode_Vtbl, 0x3b16811b_6a43_4ec9_a813_3d930c13b940); +::windows_core::imp::interface_hierarchy!(IWICBitmapFrameDecode, ::windows_core::IUnknown, IWICBitmapSource); impl IWICBitmapFrameDecode { pub unsafe fn GetSize(&self, puiwidth: *mut u32, puiheight: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.GetSize)(::windows_core::Interface::as_raw(self), puiwidth, puiheight).ok() @@ -754,13 +681,6 @@ impl IWICBitmapFrameDecode { (::windows_core::Interface::vtable(self).GetThumbnail)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWICBitmapFrameDecode, ::windows_core::IUnknown, IWICBitmapSource); -unsafe impl ::windows_core::Interface for IWICBitmapFrameDecode { - type Vtable = IWICBitmapFrameDecode_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWICBitmapFrameDecode { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3b16811b_6a43_4ec9_a813_3d930c13b940); -} #[repr(C)] #[doc(hidden)] pub struct IWICBitmapFrameDecode_Vtbl { @@ -769,9 +689,8 @@ pub struct IWICBitmapFrameDecode_Vtbl { pub GetColorContexts: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ccount: u32, ppicolorcontexts: *mut *mut ::core::ffi::c_void, pcactualcount: *mut u32) -> ::windows_core::HRESULT, pub GetThumbnail: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppithumbnail: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWICBitmapFrameEncode(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWICBitmapFrameEncode, IWICBitmapFrameEncode_Vtbl, 0x00000105_a8f2_4877_ba0a_fd2b6645fb94); +::windows_core::imp::interface_hierarchy!(IWICBitmapFrameEncode, ::windows_core::IUnknown); impl IWICBitmapFrameEncode { #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`"] #[cfg(feature = "Win32_System_Com_StructuredStorage")] @@ -822,13 +741,6 @@ impl IWICBitmapFrameEncode { (::windows_core::Interface::vtable(self).GetMetadataQueryWriter)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWICBitmapFrameEncode, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWICBitmapFrameEncode { - type Vtable = IWICBitmapFrameEncode_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWICBitmapFrameEncode { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00000105_a8f2_4877_ba0a_fd2b6645fb94); -} #[repr(C)] #[doc(hidden)] pub struct IWICBitmapFrameEncode_Vtbl { @@ -848,9 +760,8 @@ pub struct IWICBitmapFrameEncode_Vtbl { pub Commit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetMetadataQueryWriter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppimetadataquerywriter: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWICBitmapLock(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWICBitmapLock, IWICBitmapLock_Vtbl, 0x00000123_a8f2_4877_ba0a_fd2b6645fb94); +::windows_core::imp::interface_hierarchy!(IWICBitmapLock, ::windows_core::IUnknown); impl IWICBitmapLock { pub unsafe fn GetSize(&self, puiwidth: *mut u32, puiheight: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetSize)(::windows_core::Interface::as_raw(self), puiwidth, puiheight).ok() @@ -867,13 +778,6 @@ impl IWICBitmapLock { (::windows_core::Interface::vtable(self).GetPixelFormat)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWICBitmapLock, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWICBitmapLock { - type Vtable = IWICBitmapLock_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWICBitmapLock { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00000123_a8f2_4877_ba0a_fd2b6645fb94); -} #[repr(C)] #[doc(hidden)] pub struct IWICBitmapLock_Vtbl { @@ -883,9 +787,8 @@ pub struct IWICBitmapLock_Vtbl { pub GetDataPointer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcbbuffersize: *mut u32, ppbdata: *mut *mut u8) -> ::windows_core::HRESULT, pub GetPixelFormat: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppixelformat: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWICBitmapScaler(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWICBitmapScaler, IWICBitmapScaler_Vtbl, 0x00000302_a8f2_4877_ba0a_fd2b6645fb94); +::windows_core::imp::interface_hierarchy!(IWICBitmapScaler, ::windows_core::IUnknown, IWICBitmapSource); impl IWICBitmapScaler { pub unsafe fn GetSize(&self, puiwidth: *mut u32, puiheight: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.GetSize)(::windows_core::Interface::as_raw(self), puiwidth, puiheight).ok() @@ -913,22 +816,14 @@ impl IWICBitmapScaler { (::windows_core::Interface::vtable(self).Initialize)(::windows_core::Interface::as_raw(self), pisource.into_param().abi(), uiwidth, uiheight, mode).ok() } } -::windows_core::imp::interface_hierarchy!(IWICBitmapScaler, ::windows_core::IUnknown, IWICBitmapSource); -unsafe impl ::windows_core::Interface for IWICBitmapScaler { - type Vtable = IWICBitmapScaler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWICBitmapScaler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00000302_a8f2_4877_ba0a_fd2b6645fb94); -} #[repr(C)] #[doc(hidden)] pub struct IWICBitmapScaler_Vtbl { pub base__: IWICBitmapSource_Vtbl, pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pisource: *mut ::core::ffi::c_void, uiwidth: u32, uiheight: u32, mode: WICBitmapInterpolationMode) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWICBitmapSource(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWICBitmapSource, IWICBitmapSource_Vtbl, 0x00000120_a8f2_4877_ba0a_fd2b6645fb94); +::windows_core::imp::interface_hierarchy!(IWICBitmapSource, ::windows_core::IUnknown); impl IWICBitmapSource { pub unsafe fn GetSize(&self, puiwidth: *mut u32, puiheight: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetSize)(::windows_core::Interface::as_raw(self), puiwidth, puiheight).ok() @@ -950,13 +845,6 @@ impl IWICBitmapSource { (::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() } } -::windows_core::imp::interface_hierarchy!(IWICBitmapSource, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWICBitmapSource { - type Vtable = IWICBitmapSource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWICBitmapSource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00000120_a8f2_4877_ba0a_fd2b6645fb94); -} #[repr(C)] #[doc(hidden)] pub struct IWICBitmapSource_Vtbl { @@ -967,9 +855,8 @@ pub struct IWICBitmapSource_Vtbl { pub CopyPalette: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pipalette: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CopyPixels: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prc: *const WICRect, cbstride: u32, cbbuffersize: u32, pbbuffer: *mut u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWICBitmapSourceTransform(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWICBitmapSourceTransform, IWICBitmapSourceTransform_Vtbl, 0x3b16811b_6a43_4ec9_b713_3d5a0c13b940); +::windows_core::imp::interface_hierarchy!(IWICBitmapSourceTransform, ::windows_core::IUnknown); impl IWICBitmapSourceTransform { pub unsafe fn CopyPixels(&self, prc: *const WICRect, uiwidth: u32, uiheight: u32, pguiddstformat: *const ::windows_core::GUID, dsttransform: WICBitmapTransformOptions, nstride: u32, pbbuffer: &mut [u8]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).CopyPixels)(::windows_core::Interface::as_raw(self), prc, uiwidth, uiheight, pguiddstformat, dsttransform, nstride, pbbuffer.len().try_into().unwrap(), ::core::mem::transmute(pbbuffer.as_ptr())).ok() @@ -985,13 +872,6 @@ impl IWICBitmapSourceTransform { (::windows_core::Interface::vtable(self).DoesSupportTransform)(::windows_core::Interface::as_raw(self), dsttransform, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWICBitmapSourceTransform, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWICBitmapSourceTransform { - type Vtable = IWICBitmapSourceTransform_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWICBitmapSourceTransform { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3b16811b_6a43_4ec9_b713_3d5a0c13b940); -} #[repr(C)] #[doc(hidden)] pub struct IWICBitmapSourceTransform_Vtbl { @@ -1001,9 +881,8 @@ pub struct IWICBitmapSourceTransform_Vtbl { pub GetClosestPixelFormat: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pguiddstformat: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, pub DoesSupportTransform: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dsttransform: WICBitmapTransformOptions, pfissupported: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWICColorContext(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWICColorContext, IWICColorContext_Vtbl, 0x3c613a02_34b2_44ea_9a7c_45aea9c6fd6d); +::windows_core::imp::interface_hierarchy!(IWICColorContext, ::windows_core::IUnknown); impl IWICColorContext { pub unsafe fn InitializeFromFilename(&self, wzfilename: P0) -> ::windows_core::Result<()> where @@ -1029,13 +908,6 @@ impl IWICColorContext { (::windows_core::Interface::vtable(self).GetExifColorSpace)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWICColorContext, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWICColorContext { - type Vtable = IWICColorContext_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWICColorContext { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3c613a02_34b2_44ea_9a7c_45aea9c6fd6d); -} #[repr(C)] #[doc(hidden)] pub struct IWICColorContext_Vtbl { @@ -1047,9 +919,8 @@ pub struct IWICColorContext_Vtbl { pub GetProfileBytes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cbbuffer: u32, pbbuffer: *mut u8, pcbactual: *mut u32) -> ::windows_core::HRESULT, pub GetExifColorSpace: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWICColorTransform(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWICColorTransform, IWICColorTransform_Vtbl, 0xb66f034f_d0e2_40ab_b436_6de39e321a94); +::windows_core::imp::interface_hierarchy!(IWICColorTransform, ::windows_core::IUnknown, IWICBitmapSource); impl IWICColorTransform { pub unsafe fn GetSize(&self, puiwidth: *mut u32, puiheight: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.GetSize)(::windows_core::Interface::as_raw(self), puiwidth, puiheight).ok() @@ -1079,22 +950,14 @@ impl IWICColorTransform { (::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::imp::interface_hierarchy!(IWICColorTransform, ::windows_core::IUnknown, IWICBitmapSource); -unsafe impl ::windows_core::Interface for IWICColorTransform { - type Vtable = IWICColorTransform_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWICColorTransform { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb66f034f_d0e2_40ab_b436_6de39e321a94); -} #[repr(C)] #[doc(hidden)] pub struct IWICColorTransform_Vtbl { pub base__: IWICBitmapSource_Vtbl, pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pibitmapsource: *mut ::core::ffi::c_void, picontextsource: *mut ::core::ffi::c_void, picontextdest: *mut ::core::ffi::c_void, pixelfmtdest: *const ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWICComponentFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWICComponentFactory, IWICComponentFactory_Vtbl, 0x412d0c3a_9650_44fa_af5b_dd2a06c8e8fb); +::windows_core::imp::interface_hierarchy!(IWICComponentFactory, ::windows_core::IUnknown, IWICImagingFactory); impl IWICComponentFactory { pub unsafe fn CreateDecoderFromFilename(&self, wzfilename: P0, pguidvendor: ::core::option::Option<*const ::windows_core::GUID>, dwdesiredaccess: super::super::Foundation::GENERIC_ACCESS_RIGHTS, metadataoptions: WICDecodeOptions) -> ::windows_core::Result where @@ -1284,13 +1147,6 @@ impl IWICComponentFactory { (::windows_core::Interface::vtable(self).CreateEncoderPropertyBag)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(ppropoptions.as_ptr()), ppropoptions.len().try_into().unwrap(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWICComponentFactory, ::windows_core::IUnknown, IWICImagingFactory); -unsafe impl ::windows_core::Interface for IWICComponentFactory { - type Vtable = IWICComponentFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWICComponentFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x412d0c3a_9650_44fa_af5b_dd2a06c8e8fb); -} #[repr(C)] #[doc(hidden)] pub struct IWICComponentFactory_Vtbl { @@ -1312,9 +1168,8 @@ pub struct IWICComponentFactory_Vtbl { #[cfg(not(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant")))] CreateEncoderPropertyBag: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWICComponentInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWICComponentInfo, IWICComponentInfo_Vtbl, 0x23bc3f0a_698b_4357_886b_f24d50671334); +::windows_core::imp::interface_hierarchy!(IWICComponentInfo, ::windows_core::IUnknown); impl IWICComponentInfo { pub unsafe fn GetComponentType(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1345,13 +1200,6 @@ impl IWICComponentInfo { (::windows_core::Interface::vtable(self).GetFriendlyName)(::windows_core::Interface::as_raw(self), wzfriendlyname.len().try_into().unwrap(), ::core::mem::transmute(wzfriendlyname.as_ptr()), pcchactual).ok() } } -::windows_core::imp::interface_hierarchy!(IWICComponentInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWICComponentInfo { - type Vtable = IWICComponentInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWICComponentInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x23bc3f0a_698b_4357_886b_f24d50671334); -} #[repr(C)] #[doc(hidden)] pub struct IWICComponentInfo_Vtbl { @@ -1365,9 +1213,8 @@ pub struct IWICComponentInfo_Vtbl { pub GetSpecVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cchspecversion: u32, wzspecversion: ::windows_core::PWSTR, pcchactual: *mut u32) -> ::windows_core::HRESULT, pub GetFriendlyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cchfriendlyname: u32, wzfriendlyname: ::windows_core::PWSTR, pcchactual: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWICDdsDecoder(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWICDdsDecoder, IWICDdsDecoder_Vtbl, 0x409cd537_8532_40cb_9774_e2feb2df4e9c); +::windows_core::imp::interface_hierarchy!(IWICDdsDecoder, ::windows_core::IUnknown); impl IWICDdsDecoder { #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] #[cfg(feature = "Win32_Graphics_Dxgi_Common")] @@ -1379,13 +1226,6 @@ impl IWICDdsDecoder { (::windows_core::Interface::vtable(self).GetFrame)(::windows_core::Interface::as_raw(self), arrayindex, miplevel, sliceindex, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWICDdsDecoder, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWICDdsDecoder { - type Vtable = IWICDdsDecoder_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWICDdsDecoder { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x409cd537_8532_40cb_9774_e2feb2df4e9c); -} #[repr(C)] #[doc(hidden)] pub struct IWICDdsDecoder_Vtbl { @@ -1396,9 +1236,8 @@ pub struct IWICDdsDecoder_Vtbl { GetParameters: usize, pub GetFrame: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, arrayindex: u32, miplevel: u32, sliceindex: u32, ppibitmapframe: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWICDdsEncoder(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWICDdsEncoder, IWICDdsEncoder_Vtbl, 0x5cacdb4c_407e_41b3_b936_d0f010cd6732); +::windows_core::imp::interface_hierarchy!(IWICDdsEncoder, ::windows_core::IUnknown); impl IWICDdsEncoder { #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] #[cfg(feature = "Win32_Graphics_Dxgi_Common")] @@ -1414,13 +1253,6 @@ impl IWICDdsEncoder { (::windows_core::Interface::vtable(self).CreateNewFrame)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(ppiframeencode), parrayindex, pmiplevel, psliceindex).ok() } } -::windows_core::imp::interface_hierarchy!(IWICDdsEncoder, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWICDdsEncoder { - type Vtable = IWICDdsEncoder_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWICDdsEncoder { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5cacdb4c_407e_41b3_b936_d0f010cd6732); -} #[repr(C)] #[doc(hidden)] pub struct IWICDdsEncoder_Vtbl { @@ -1435,9 +1267,8 @@ pub struct IWICDdsEncoder_Vtbl { GetParameters: usize, pub CreateNewFrame: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppiframeencode: *mut *mut ::core::ffi::c_void, parrayindex: *mut u32, pmiplevel: *mut u32, psliceindex: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWICDdsFrameDecode(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWICDdsFrameDecode, IWICDdsFrameDecode_Vtbl, 0x3d4c0c61_18a4_41e4_bd80_481a4fc9f464); +::windows_core::imp::interface_hierarchy!(IWICDdsFrameDecode, ::windows_core::IUnknown); impl IWICDdsFrameDecode { pub unsafe fn GetSizeInBlocks(&self, pwidthinblocks: *mut u32, pheightinblocks: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetSizeInBlocks)(::windows_core::Interface::as_raw(self), pwidthinblocks, pheightinblocks).ok() @@ -1452,13 +1283,6 @@ impl IWICDdsFrameDecode { (::windows_core::Interface::vtable(self).CopyBlocks)(::windows_core::Interface::as_raw(self), prcboundsinblocks, cbstride, pbbuffer.len().try_into().unwrap(), ::core::mem::transmute(pbbuffer.as_ptr())).ok() } } -::windows_core::imp::interface_hierarchy!(IWICDdsFrameDecode, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWICDdsFrameDecode { - type Vtable = IWICDdsFrameDecode_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWICDdsFrameDecode { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3d4c0c61_18a4_41e4_bd80_481a4fc9f464); -} #[repr(C)] #[doc(hidden)] pub struct IWICDdsFrameDecode_Vtbl { @@ -1470,9 +1294,8 @@ pub struct IWICDdsFrameDecode_Vtbl { GetFormatInfo: usize, pub CopyBlocks: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prcboundsinblocks: *const WICRect, cbstride: u32, cbbuffersize: u32, pbbuffer: *mut u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWICDevelopRaw(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWICDevelopRaw, IWICDevelopRaw_Vtbl, 0xfbec5e44_f7be_4b65_b7f8_c0c81fef026d); +::windows_core::imp::interface_hierarchy!(IWICDevelopRaw, ::windows_core::IUnknown, IWICBitmapSource, IWICBitmapFrameDecode); impl IWICDevelopRaw { pub unsafe fn GetSize(&self, puiwidth: *mut u32, puiheight: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.GetSize)(::windows_core::Interface::as_raw(self), puiwidth, puiheight).ok() @@ -1621,13 +1444,6 @@ impl IWICDevelopRaw { (::windows_core::Interface::vtable(self).SetNotificationCallback)(::windows_core::Interface::as_raw(self), pcallback.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IWICDevelopRaw, ::windows_core::IUnknown, IWICBitmapSource, IWICBitmapFrameDecode); -unsafe impl ::windows_core::Interface for IWICDevelopRaw { - type Vtable = IWICDevelopRaw_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWICDevelopRaw { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfbec5e44_f7be_4b65_b7f8_c0c81fef026d); -} #[repr(C)] #[doc(hidden)] pub struct IWICDevelopRaw_Vtbl { @@ -1668,30 +1484,21 @@ pub struct IWICDevelopRaw_Vtbl { pub GetRenderMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prendermode: *mut WICRawRenderMode) -> ::windows_core::HRESULT, pub SetNotificationCallback: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcallback: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWICDevelopRawNotificationCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWICDevelopRawNotificationCallback, IWICDevelopRawNotificationCallback_Vtbl, 0x95c75a6e_3e8c_4ec2_85a8_aebcc551e59b); +::windows_core::imp::interface_hierarchy!(IWICDevelopRawNotificationCallback, ::windows_core::IUnknown); impl IWICDevelopRawNotificationCallback { pub unsafe fn Notify(&self, notificationmask: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Notify)(::windows_core::Interface::as_raw(self), notificationmask).ok() } } -::windows_core::imp::interface_hierarchy!(IWICDevelopRawNotificationCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWICDevelopRawNotificationCallback { - type Vtable = IWICDevelopRawNotificationCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWICDevelopRawNotificationCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x95c75a6e_3e8c_4ec2_85a8_aebcc551e59b); -} #[repr(C)] #[doc(hidden)] pub struct IWICDevelopRawNotificationCallback_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Notify: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, notificationmask: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWICEnumMetadataItem(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWICEnumMetadataItem, IWICEnumMetadataItem_Vtbl, 0xdc2bb46d_3f07_481e_8625_220c4aedbb33); +::windows_core::imp::interface_hierarchy!(IWICEnumMetadataItem, ::windows_core::IUnknown); impl IWICEnumMetadataItem { #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] @@ -1709,13 +1516,6 @@ impl IWICEnumMetadataItem { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWICEnumMetadataItem, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWICEnumMetadataItem { - type Vtable = IWICEnumMetadataItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWICEnumMetadataItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdc2bb46d_3f07_481e_8625_220c4aedbb33); -} #[repr(C)] #[doc(hidden)] pub struct IWICEnumMetadataItem_Vtbl { @@ -1728,9 +1528,8 @@ pub struct IWICEnumMetadataItem_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppienummetadataitem: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWICFastMetadataEncoder(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWICFastMetadataEncoder, IWICFastMetadataEncoder_Vtbl, 0xb84e2c09_78c9_4ac4_8bd3_524ae1663a2f); +::windows_core::imp::interface_hierarchy!(IWICFastMetadataEncoder, ::windows_core::IUnknown); impl IWICFastMetadataEncoder { pub unsafe fn Commit(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Commit)(::windows_core::Interface::as_raw(self)).ok() @@ -1740,13 +1539,6 @@ impl IWICFastMetadataEncoder { (::windows_core::Interface::vtable(self).GetMetadataQueryWriter)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWICFastMetadataEncoder, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWICFastMetadataEncoder { - type Vtable = IWICFastMetadataEncoder_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWICFastMetadataEncoder { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb84e2c09_78c9_4ac4_8bd3_524ae1663a2f); -} #[repr(C)] #[doc(hidden)] pub struct IWICFastMetadataEncoder_Vtbl { @@ -1754,9 +1546,8 @@ pub struct IWICFastMetadataEncoder_Vtbl { pub Commit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetMetadataQueryWriter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppimetadataquerywriter: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWICFormatConverter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWICFormatConverter, IWICFormatConverter_Vtbl, 0x00000301_a8f2_4877_ba0a_fd2b6645fb94); +::windows_core::imp::interface_hierarchy!(IWICFormatConverter, ::windows_core::IUnknown, IWICBitmapSource); impl IWICFormatConverter { pub unsafe fn GetSize(&self, puiwidth: *mut u32, puiheight: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.GetSize)(::windows_core::Interface::as_raw(self), puiwidth, puiheight).ok() @@ -1789,13 +1580,6 @@ impl IWICFormatConverter { (::windows_core::Interface::vtable(self).CanConvert)(::windows_core::Interface::as_raw(self), srcpixelformat, dstpixelformat, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWICFormatConverter, ::windows_core::IUnknown, IWICBitmapSource); -unsafe impl ::windows_core::Interface for IWICFormatConverter { - type Vtable = IWICFormatConverter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWICFormatConverter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00000301_a8f2_4877_ba0a_fd2b6645fb94); -} #[repr(C)] #[doc(hidden)] pub struct IWICFormatConverter_Vtbl { @@ -1803,9 +1587,8 @@ pub struct IWICFormatConverter_Vtbl { pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pisource: *mut ::core::ffi::c_void, dstformat: *const ::windows_core::GUID, dither: WICBitmapDitherType, pipalette: *mut ::core::ffi::c_void, alphathresholdpercent: f64, palettetranslate: WICBitmapPaletteType) -> ::windows_core::HRESULT, pub CanConvert: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, srcpixelformat: *const ::windows_core::GUID, dstpixelformat: *const ::windows_core::GUID, pfcanconvert: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWICFormatConverterInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWICFormatConverterInfo, IWICFormatConverterInfo_Vtbl, 0x9f34fb65_13f4_4f15_bc57_3726b5e53d9f); +::windows_core::imp::interface_hierarchy!(IWICFormatConverterInfo, ::windows_core::IUnknown, IWICComponentInfo); impl IWICFormatConverterInfo { pub unsafe fn GetComponentType(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1843,13 +1626,6 @@ impl IWICFormatConverterInfo { (::windows_core::Interface::vtable(self).CreateInstance)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWICFormatConverterInfo, ::windows_core::IUnknown, IWICComponentInfo); -unsafe impl ::windows_core::Interface for IWICFormatConverterInfo { - type Vtable = IWICFormatConverterInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWICFormatConverterInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9f34fb65_13f4_4f15_bc57_3726b5e53d9f); -} #[repr(C)] #[doc(hidden)] pub struct IWICFormatConverterInfo_Vtbl { @@ -1857,9 +1633,8 @@ pub struct IWICFormatConverterInfo_Vtbl { pub GetPixelFormats: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cformats: u32, ppixelformatguids: *mut ::windows_core::GUID, pcactual: *mut u32) -> ::windows_core::HRESULT, pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppiconverter: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWICImagingFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWICImagingFactory, IWICImagingFactory_Vtbl, 0xec5ec8a9_c395_4314_9c77_54d7a935ff70); +::windows_core::imp::interface_hierarchy!(IWICImagingFactory, ::windows_core::IUnknown); impl IWICImagingFactory { pub unsafe fn CreateDecoderFromFilename(&self, wzfilename: P0, pguidvendor: ::core::option::Option<*const ::windows_core::GUID>, dwdesiredaccess: super::super::Foundation::GENERIC_ACCESS_RIGHTS, metadataoptions: WICDecodeOptions) -> ::windows_core::Result where @@ -2000,13 +1775,6 @@ impl IWICImagingFactory { (::windows_core::Interface::vtable(self).CreateQueryWriterFromReader)(::windows_core::Interface::as_raw(self), piqueryreader.into_param().abi(), pguidvendor, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWICImagingFactory, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWICImagingFactory { - type Vtable = IWICImagingFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWICImagingFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xec5ec8a9_c395_4314_9c77_54d7a935ff70); -} #[repr(C)] #[doc(hidden)] pub struct IWICImagingFactory_Vtbl { @@ -2052,9 +1820,8 @@ pub struct IWICImagingFactory_Vtbl { pub CreateQueryWriter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guidmetadataformat: *const ::windows_core::GUID, pguidvendor: *const ::windows_core::GUID, ppiquerywriter: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateQueryWriterFromReader: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, piqueryreader: *mut ::core::ffi::c_void, pguidvendor: *const ::windows_core::GUID, ppiquerywriter: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWICJpegFrameDecode(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWICJpegFrameDecode, IWICJpegFrameDecode_Vtbl, 0x8939f66e_c46a_4c21_a9d1_98b327ce1679); +::windows_core::imp::interface_hierarchy!(IWICJpegFrameDecode, ::windows_core::IUnknown); impl IWICJpegFrameDecode { pub unsafe fn DoesSupportIndexing(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2094,13 +1861,6 @@ impl IWICJpegFrameDecode { (::windows_core::Interface::vtable(self).CopyMinimalStream)(::windows_core::Interface::as_raw(self), streamoffset, pbstreamdata.len().try_into().unwrap(), ::core::mem::transmute(pbstreamdata.as_ptr()), pcbstreamdataactual).ok() } } -::windows_core::imp::interface_hierarchy!(IWICJpegFrameDecode, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWICJpegFrameDecode { - type Vtable = IWICJpegFrameDecode_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWICJpegFrameDecode { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8939f66e_c46a_4c21_a9d1_98b327ce1679); -} #[repr(C)] #[doc(hidden)] pub struct IWICJpegFrameDecode_Vtbl { @@ -2125,9 +1885,8 @@ pub struct IWICJpegFrameDecode_Vtbl { pub CopyScan: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, scanindex: u32, scanoffset: u32, cbscandata: u32, pbscandata: *mut u8, pcbscandataactual: *mut u32) -> ::windows_core::HRESULT, pub CopyMinimalStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, streamoffset: u32, cbstreamdata: u32, pbstreamdata: *mut u8, pcbstreamdataactual: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWICJpegFrameEncode(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWICJpegFrameEncode, IWICJpegFrameEncode_Vtbl, 0x2f0c601f_d2c6_468c_abfa_49495d983ed1); +::windows_core::imp::interface_hierarchy!(IWICJpegFrameEncode, ::windows_core::IUnknown); impl IWICJpegFrameEncode { #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] #[cfg(feature = "Win32_Graphics_Dxgi_Common")] @@ -2148,13 +1907,6 @@ impl IWICJpegFrameEncode { (::windows_core::Interface::vtable(self).WriteScan)(::windows_core::Interface::as_raw(self), pbscandata.len().try_into().unwrap(), ::core::mem::transmute(pbscandata.as_ptr())).ok() } } -::windows_core::imp::interface_hierarchy!(IWICJpegFrameEncode, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWICJpegFrameEncode { - type Vtable = IWICJpegFrameEncode_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWICJpegFrameEncode { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2f0c601f_d2c6_468c_abfa_49495d983ed1); -} #[repr(C)] #[doc(hidden)] pub struct IWICJpegFrameEncode_Vtbl { @@ -2173,9 +1925,8 @@ pub struct IWICJpegFrameEncode_Vtbl { GetQuantizationTable: usize, pub WriteScan: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cbscandata: u32, pbscandata: *const u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWICMetadataBlockReader(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWICMetadataBlockReader, IWICMetadataBlockReader_Vtbl, 0xfeaa2a8d_b3f3_43e4_b25c_d1de990a1ae1); +::windows_core::imp::interface_hierarchy!(IWICMetadataBlockReader, ::windows_core::IUnknown); impl IWICMetadataBlockReader { pub unsafe fn GetContainerFormat(&self) -> ::windows_core::Result<::windows_core::GUID> { let mut result__ = ::std::mem::zeroed(); @@ -2196,13 +1947,6 @@ impl IWICMetadataBlockReader { (::windows_core::Interface::vtable(self).GetEnumerator)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWICMetadataBlockReader, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWICMetadataBlockReader { - type Vtable = IWICMetadataBlockReader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWICMetadataBlockReader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfeaa2a8d_b3f3_43e4_b25c_d1de990a1ae1); -} #[repr(C)] #[doc(hidden)] pub struct IWICMetadataBlockReader_Vtbl { @@ -2215,9 +1959,8 @@ pub struct IWICMetadataBlockReader_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetEnumerator: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWICMetadataBlockWriter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWICMetadataBlockWriter, IWICMetadataBlockWriter_Vtbl, 0x08fb9676_b444_41e8_8dbe_6a53a542bff1); +::windows_core::imp::interface_hierarchy!(IWICMetadataBlockWriter, ::windows_core::IUnknown, IWICMetadataBlockReader); impl IWICMetadataBlockWriter { pub unsafe fn GetContainerFormat(&self) -> ::windows_core::Result<::windows_core::GUID> { let mut result__ = ::std::mem::zeroed(); @@ -2263,13 +2006,6 @@ impl IWICMetadataBlockWriter { (::windows_core::Interface::vtable(self).RemoveWriterByIndex)(::windows_core::Interface::as_raw(self), nindex).ok() } } -::windows_core::imp::interface_hierarchy!(IWICMetadataBlockWriter, ::windows_core::IUnknown, IWICMetadataBlockReader); -unsafe impl ::windows_core::Interface for IWICMetadataBlockWriter { - type Vtable = IWICMetadataBlockWriter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWICMetadataBlockWriter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x08fb9676_b444_41e8_8dbe_6a53a542bff1); -} #[repr(C)] #[doc(hidden)] pub struct IWICMetadataBlockWriter_Vtbl { @@ -2280,9 +2016,8 @@ pub struct IWICMetadataBlockWriter_Vtbl { pub SetWriterByIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nindex: u32, pimetadatawriter: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RemoveWriterByIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nindex: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWICMetadataHandlerInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWICMetadataHandlerInfo, IWICMetadataHandlerInfo_Vtbl, 0xaba958bf_c672_44d1_8d61_ce6df2e682c2); +::windows_core::imp::interface_hierarchy!(IWICMetadataHandlerInfo, ::windows_core::IUnknown, IWICComponentInfo); impl IWICMetadataHandlerInfo { pub unsafe fn GetComponentType(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2338,13 +2073,6 @@ impl IWICMetadataHandlerInfo { (::windows_core::Interface::vtable(self).DoesRequireFixedSize)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWICMetadataHandlerInfo, ::windows_core::IUnknown, IWICComponentInfo); -unsafe impl ::windows_core::Interface for IWICMetadataHandlerInfo { - type Vtable = IWICMetadataHandlerInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWICMetadataHandlerInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaba958bf_c672_44d1_8d61_ce6df2e682c2); -} #[repr(C)] #[doc(hidden)] pub struct IWICMetadataHandlerInfo_Vtbl { @@ -2357,9 +2085,8 @@ pub struct IWICMetadataHandlerInfo_Vtbl { pub DoesSupportPadding: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfsupportspadding: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub DoesRequireFixedSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pffixedsize: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWICMetadataQueryReader(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWICMetadataQueryReader, IWICMetadataQueryReader_Vtbl, 0x30989668_e1c9_4597_b395_458eedb808df); +::windows_core::imp::interface_hierarchy!(IWICMetadataQueryReader, ::windows_core::IUnknown); impl IWICMetadataQueryReader { pub unsafe fn GetContainerFormat(&self) -> ::windows_core::Result<::windows_core::GUID> { let mut result__ = ::std::mem::zeroed(); @@ -2383,13 +2110,6 @@ impl IWICMetadataQueryReader { (::windows_core::Interface::vtable(self).GetEnumerator)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWICMetadataQueryReader, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWICMetadataQueryReader { - type Vtable = IWICMetadataQueryReader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWICMetadataQueryReader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x30989668_e1c9_4597_b395_458eedb808df); -} #[repr(C)] #[doc(hidden)] pub struct IWICMetadataQueryReader_Vtbl { @@ -2405,9 +2125,8 @@ pub struct IWICMetadataQueryReader_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetEnumerator: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWICMetadataQueryWriter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWICMetadataQueryWriter, IWICMetadataQueryWriter_Vtbl, 0xa721791a_0def_4d06_bd91_2118bf1db10b); +::windows_core::imp::interface_hierarchy!(IWICMetadataQueryWriter, ::windows_core::IUnknown, IWICMetadataQueryReader); impl IWICMetadataQueryWriter { pub unsafe fn GetContainerFormat(&self) -> ::windows_core::Result<::windows_core::GUID> { let mut result__ = ::std::mem::zeroed(); @@ -2445,13 +2164,6 @@ impl IWICMetadataQueryWriter { (::windows_core::Interface::vtable(self).RemoveMetadataByName)(::windows_core::Interface::as_raw(self), wzname.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IWICMetadataQueryWriter, ::windows_core::IUnknown, IWICMetadataQueryReader); -unsafe impl ::windows_core::Interface for IWICMetadataQueryWriter { - type Vtable = IWICMetadataQueryWriter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWICMetadataQueryWriter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa721791a_0def_4d06_bd91_2118bf1db10b); -} #[repr(C)] #[doc(hidden)] pub struct IWICMetadataQueryWriter_Vtbl { @@ -2462,9 +2174,8 @@ pub struct IWICMetadataQueryWriter_Vtbl { SetMetadataByName: usize, pub RemoveMetadataByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wzname: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWICMetadataReader(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWICMetadataReader, IWICMetadataReader_Vtbl, 0x9204fe99_d8fc_4fd5_a001_9536b067a899); +::windows_core::imp::interface_hierarchy!(IWICMetadataReader, ::windows_core::IUnknown); impl IWICMetadataReader { pub unsafe fn GetMetadataFormat(&self) -> ::windows_core::Result<::windows_core::GUID> { let mut result__ = ::std::mem::zeroed(); @@ -2493,13 +2204,6 @@ impl IWICMetadataReader { (::windows_core::Interface::vtable(self).GetEnumerator)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWICMetadataReader, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWICMetadataReader { - type Vtable = IWICMetadataReader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWICMetadataReader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9204fe99_d8fc_4fd5_a001_9536b067a899); -} #[repr(C)] #[doc(hidden)] pub struct IWICMetadataReader_Vtbl { @@ -2517,9 +2221,8 @@ pub struct IWICMetadataReader_Vtbl { GetValue: usize, pub GetEnumerator: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppienummetadata: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWICMetadataReaderInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWICMetadataReaderInfo, IWICMetadataReaderInfo_Vtbl, 0xeebf1f5b_07c1_4447_a3ab_22acaf78a804); +::windows_core::imp::interface_hierarchy!(IWICMetadataReaderInfo, ::windows_core::IUnknown, IWICComponentInfo, IWICMetadataHandlerInfo); impl IWICMetadataReaderInfo { pub unsafe fn GetComponentType(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2591,13 +2294,6 @@ impl IWICMetadataReaderInfo { (::windows_core::Interface::vtable(self).CreateInstance)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWICMetadataReaderInfo, ::windows_core::IUnknown, IWICComponentInfo, IWICMetadataHandlerInfo); -unsafe impl ::windows_core::Interface for IWICMetadataReaderInfo { - type Vtable = IWICMetadataReaderInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWICMetadataReaderInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeebf1f5b_07c1_4447_a3ab_22acaf78a804); -} #[repr(C)] #[doc(hidden)] pub struct IWICMetadataReaderInfo_Vtbl { @@ -2609,9 +2305,8 @@ pub struct IWICMetadataReaderInfo_Vtbl { MatchesPattern: usize, pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppireader: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWICMetadataWriter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWICMetadataWriter, IWICMetadataWriter_Vtbl, 0xf7836e16_3be0_470b_86bb_160d0aecd7de); +::windows_core::imp::interface_hierarchy!(IWICMetadataWriter, ::windows_core::IUnknown, IWICMetadataReader); impl IWICMetadataWriter { pub unsafe fn GetMetadataFormat(&self) -> ::windows_core::Result<::windows_core::GUID> { let mut result__ = ::std::mem::zeroed(); @@ -2658,13 +2353,6 @@ impl IWICMetadataWriter { (::windows_core::Interface::vtable(self).RemoveValueByIndex)(::windows_core::Interface::as_raw(self), nindex).ok() } } -::windows_core::imp::interface_hierarchy!(IWICMetadataWriter, ::windows_core::IUnknown, IWICMetadataReader); -unsafe impl ::windows_core::Interface for IWICMetadataWriter { - type Vtable = IWICMetadataWriter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWICMetadataWriter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf7836e16_3be0_470b_86bb_160d0aecd7de); -} #[repr(C)] #[doc(hidden)] pub struct IWICMetadataWriter_Vtbl { @@ -2683,9 +2371,8 @@ pub struct IWICMetadataWriter_Vtbl { RemoveValue: usize, pub RemoveValueByIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nindex: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWICMetadataWriterInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWICMetadataWriterInfo, IWICMetadataWriterInfo_Vtbl, 0xb22e3fba_3925_4323_b5c1_9ebfc430f236); +::windows_core::imp::interface_hierarchy!(IWICMetadataWriterInfo, ::windows_core::IUnknown, IWICComponentInfo, IWICMetadataHandlerInfo); impl IWICMetadataWriterInfo { pub unsafe fn GetComponentType(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2748,13 +2435,6 @@ impl IWICMetadataWriterInfo { (::windows_core::Interface::vtable(self).CreateInstance)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWICMetadataWriterInfo, ::windows_core::IUnknown, IWICComponentInfo, IWICMetadataHandlerInfo); -unsafe impl ::windows_core::Interface for IWICMetadataWriterInfo { - type Vtable = IWICMetadataWriterInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWICMetadataWriterInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb22e3fba_3925_4323_b5c1_9ebfc430f236); -} #[repr(C)] #[doc(hidden)] pub struct IWICMetadataWriterInfo_Vtbl { @@ -2762,9 +2442,8 @@ pub struct IWICMetadataWriterInfo_Vtbl { pub GetHeader: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guidcontainerformat: *const ::windows_core::GUID, cbsize: u32, pheader: *mut WICMetadataHeader, pcbactual: *mut u32) -> ::windows_core::HRESULT, pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppiwriter: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWICPalette(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWICPalette, IWICPalette_Vtbl, 0x00000040_a8f2_4877_ba0a_fd2b6645fb94); +::windows_core::imp::interface_hierarchy!(IWICPalette, ::windows_core::IUnknown); impl IWICPalette { pub unsafe fn InitializePredefined(&self, epalettetype: WICBitmapPaletteType, faddtransparentcolor: P0) -> ::windows_core::Result<()> where @@ -2812,13 +2491,6 @@ impl IWICPalette { (::windows_core::Interface::vtable(self).HasAlpha)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWICPalette, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWICPalette { - type Vtable = IWICPalette_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWICPalette { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00000040_a8f2_4877_ba0a_fd2b6645fb94); -} #[repr(C)] #[doc(hidden)] pub struct IWICPalette_Vtbl { @@ -2834,11 +2506,15 @@ pub struct IWICPalette_Vtbl { pub IsGrayscale: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfisgrayscale: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub HasAlpha: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfhasalpha: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWICPersistStream(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWICPersistStream, + IWICPersistStream_Vtbl, + 0x00675040_6908_45f8_86a3_49c7dfd6d9ad +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWICPersistStream, ::windows_core::IUnknown, super::super::System::Com::IPersist, super::super::System::Com::IPersistStream); #[cfg(feature = "Win32_System_Com")] impl IWICPersistStream { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2894,16 +2570,6 @@ impl IWICPersistStream { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWICPersistStream, ::windows_core::IUnknown, super::super::System::Com::IPersist, super::super::System::Com::IPersistStream); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWICPersistStream { - type Vtable = IWICPersistStream_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWICPersistStream { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00675040_6908_45f8_86a3_49c7dfd6d9ad); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWICPersistStream_Vtbl { @@ -2917,9 +2583,8 @@ pub struct IWICPersistStream_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] SaveEx: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWICPixelFormatInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWICPixelFormatInfo, IWICPixelFormatInfo_Vtbl, 0xe8eda601_3d48_431a_ab44_69059be88bbe); +::windows_core::imp::interface_hierarchy!(IWICPixelFormatInfo, ::windows_core::IUnknown, IWICComponentInfo); impl IWICPixelFormatInfo { pub unsafe fn GetComponentType(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2969,13 +2634,6 @@ impl IWICPixelFormatInfo { (::windows_core::Interface::vtable(self).GetChannelMask)(::windows_core::Interface::as_raw(self), uichannelindex, pbmaskbuffer.len().try_into().unwrap(), ::core::mem::transmute(pbmaskbuffer.as_ptr()), pcbactual).ok() } } -::windows_core::imp::interface_hierarchy!(IWICPixelFormatInfo, ::windows_core::IUnknown, IWICComponentInfo); -unsafe impl ::windows_core::Interface for IWICPixelFormatInfo { - type Vtable = IWICPixelFormatInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWICPixelFormatInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe8eda601_3d48_431a_ab44_69059be88bbe); -} #[repr(C)] #[doc(hidden)] pub struct IWICPixelFormatInfo_Vtbl { @@ -2986,9 +2644,8 @@ pub struct IWICPixelFormatInfo_Vtbl { pub GetChannelCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, puichannelcount: *mut u32) -> ::windows_core::HRESULT, pub GetChannelMask: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uichannelindex: u32, cbmaskbuffer: u32, pbmaskbuffer: *mut u8, pcbactual: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWICPixelFormatInfo2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWICPixelFormatInfo2, IWICPixelFormatInfo2_Vtbl, 0xa9db33a2_af5f_43c7_b679_74f5984b5aa4); +::windows_core::imp::interface_hierarchy!(IWICPixelFormatInfo2, ::windows_core::IUnknown, IWICComponentInfo, IWICPixelFormatInfo); impl IWICPixelFormatInfo2 { pub unsafe fn GetComponentType(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -3046,13 +2703,6 @@ impl IWICPixelFormatInfo2 { (::windows_core::Interface::vtable(self).GetNumericRepresentation)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWICPixelFormatInfo2, ::windows_core::IUnknown, IWICComponentInfo, IWICPixelFormatInfo); -unsafe impl ::windows_core::Interface for IWICPixelFormatInfo2 { - type Vtable = IWICPixelFormatInfo2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWICPixelFormatInfo2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa9db33a2_af5f_43c7_b679_74f5984b5aa4); -} #[repr(C)] #[doc(hidden)] pub struct IWICPixelFormatInfo2_Vtbl { @@ -3060,9 +2710,8 @@ pub struct IWICPixelFormatInfo2_Vtbl { pub SupportsTransparency: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfsupportstransparency: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub GetNumericRepresentation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pnumericrepresentation: *mut WICPixelFormatNumericRepresentation) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWICPlanarBitmapFrameEncode(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWICPlanarBitmapFrameEncode, IWICPlanarBitmapFrameEncode_Vtbl, 0xf928b7b8_2221_40c1_b72e_7e82f1974d1a); +::windows_core::imp::interface_hierarchy!(IWICPlanarBitmapFrameEncode, ::windows_core::IUnknown); impl IWICPlanarBitmapFrameEncode { pub unsafe fn WritePixels(&self, linecount: u32, pplanes: &[WICBitmapPlane]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).WritePixels)(::windows_core::Interface::as_raw(self), linecount, ::core::mem::transmute(pplanes.as_ptr()), pplanes.len().try_into().unwrap()).ok() @@ -3071,13 +2720,6 @@ impl IWICPlanarBitmapFrameEncode { (::windows_core::Interface::vtable(self).WriteSource)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(ppplanes.as_ptr()), ppplanes.len().try_into().unwrap(), prcsource).ok() } } -::windows_core::imp::interface_hierarchy!(IWICPlanarBitmapFrameEncode, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWICPlanarBitmapFrameEncode { - type Vtable = IWICPlanarBitmapFrameEncode_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWICPlanarBitmapFrameEncode { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf928b7b8_2221_40c1_b72e_7e82f1974d1a); -} #[repr(C)] #[doc(hidden)] pub struct IWICPlanarBitmapFrameEncode_Vtbl { @@ -3085,9 +2727,8 @@ pub struct IWICPlanarBitmapFrameEncode_Vtbl { pub WritePixels: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, linecount: u32, pplanes: *const WICBitmapPlane, cplanes: u32) -> ::windows_core::HRESULT, pub WriteSource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppplanes: *const *mut ::core::ffi::c_void, cplanes: u32, prcsource: *const WICRect) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWICPlanarBitmapSourceTransform(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWICPlanarBitmapSourceTransform, IWICPlanarBitmapSourceTransform_Vtbl, 0x3aff9cce_be95_4303_b927_e7d16ff4a613); +::windows_core::imp::interface_hierarchy!(IWICPlanarBitmapSourceTransform, ::windows_core::IUnknown); impl IWICPlanarBitmapSourceTransform { pub unsafe fn DoesSupportTransform(&self, puiwidth: *mut u32, puiheight: *mut u32, dsttransform: WICBitmapTransformOptions, dstplanaroptions: WICPlanarOptions, pguiddstformats: *const ::windows_core::GUID, pplanedescriptions: *mut WICBitmapPlaneDescription, cplanes: u32, pfissupported: *mut super::super::Foundation::BOOL) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).DoesSupportTransform)(::windows_core::Interface::as_raw(self), puiwidth, puiheight, dsttransform, dstplanaroptions, pguiddstformats, pplanedescriptions, cplanes, pfissupported).ok() @@ -3096,13 +2737,6 @@ impl IWICPlanarBitmapSourceTransform { (::windows_core::Interface::vtable(self).CopyPixels)(::windows_core::Interface::as_raw(self), prcsource, uiwidth, uiheight, dsttransform, dstplanaroptions, ::core::mem::transmute(pdstplanes.as_ptr()), pdstplanes.len().try_into().unwrap()).ok() } } -::windows_core::imp::interface_hierarchy!(IWICPlanarBitmapSourceTransform, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWICPlanarBitmapSourceTransform { - type Vtable = IWICPlanarBitmapSourceTransform_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWICPlanarBitmapSourceTransform { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3aff9cce_be95_4303_b927_e7d16ff4a613); -} #[repr(C)] #[doc(hidden)] pub struct IWICPlanarBitmapSourceTransform_Vtbl { @@ -3110,9 +2744,8 @@ pub struct IWICPlanarBitmapSourceTransform_Vtbl { pub DoesSupportTransform: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, puiwidth: *mut u32, puiheight: *mut u32, dsttransform: WICBitmapTransformOptions, dstplanaroptions: WICPlanarOptions, pguiddstformats: *const ::windows_core::GUID, pplanedescriptions: *mut WICBitmapPlaneDescription, cplanes: u32, pfissupported: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub CopyPixels: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prcsource: *const WICRect, uiwidth: u32, uiheight: u32, dsttransform: WICBitmapTransformOptions, dstplanaroptions: WICPlanarOptions, pdstplanes: *const WICBitmapPlane, cplanes: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWICPlanarFormatConverter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWICPlanarFormatConverter, IWICPlanarFormatConverter_Vtbl, 0xbebee9cb_83b0_4dcc_8132_b0aaa55eac96); +::windows_core::imp::interface_hierarchy!(IWICPlanarFormatConverter, ::windows_core::IUnknown, IWICBitmapSource); impl IWICPlanarFormatConverter { pub unsafe fn GetSize(&self, puiwidth: *mut u32, puiheight: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.GetSize)(::windows_core::Interface::as_raw(self), puiwidth, puiheight).ok() @@ -3144,13 +2777,6 @@ impl IWICPlanarFormatConverter { (::windows_core::Interface::vtable(self).CanConvert)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(psrcpixelformats.as_ptr()), psrcpixelformats.len().try_into().unwrap(), dstpixelformat, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWICPlanarFormatConverter, ::windows_core::IUnknown, IWICBitmapSource); -unsafe impl ::windows_core::Interface for IWICPlanarFormatConverter { - type Vtable = IWICPlanarFormatConverter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWICPlanarFormatConverter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbebee9cb_83b0_4dcc_8132_b0aaa55eac96); -} #[repr(C)] #[doc(hidden)] pub struct IWICPlanarFormatConverter_Vtbl { @@ -3158,30 +2784,21 @@ pub struct IWICPlanarFormatConverter_Vtbl { pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppplanes: *const *mut ::core::ffi::c_void, cplanes: u32, dstformat: *const ::windows_core::GUID, dither: WICBitmapDitherType, pipalette: *mut ::core::ffi::c_void, alphathresholdpercent: f64, palettetranslate: WICBitmapPaletteType) -> ::windows_core::HRESULT, pub CanConvert: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psrcpixelformats: *const ::windows_core::GUID, csrcplanes: u32, dstpixelformat: *const ::windows_core::GUID, pfcanconvert: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWICProgressCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWICProgressCallback, IWICProgressCallback_Vtbl, 0x4776f9cd_9517_45fa_bf24_e89c5ec5c60c); +::windows_core::imp::interface_hierarchy!(IWICProgressCallback, ::windows_core::IUnknown); impl IWICProgressCallback { pub unsafe fn Notify(&self, uframenum: u32, operation: WICProgressOperation, dblprogress: f64) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Notify)(::windows_core::Interface::as_raw(self), uframenum, operation, dblprogress).ok() } } -::windows_core::imp::interface_hierarchy!(IWICProgressCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWICProgressCallback { - type Vtable = IWICProgressCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWICProgressCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4776f9cd_9517_45fa_bf24_e89c5ec5c60c); -} #[repr(C)] #[doc(hidden)] pub struct IWICProgressCallback_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Notify: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uframenum: u32, operation: WICProgressOperation, dblprogress: f64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWICProgressiveLevelControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWICProgressiveLevelControl, IWICProgressiveLevelControl_Vtbl, 0xdaac296f_7aa5_4dbf_8d15_225c5976f891); +::windows_core::imp::interface_hierarchy!(IWICProgressiveLevelControl, ::windows_core::IUnknown); impl IWICProgressiveLevelControl { pub unsafe fn GetLevelCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -3195,13 +2812,6 @@ impl IWICProgressiveLevelControl { (::windows_core::Interface::vtable(self).SetCurrentLevel)(::windows_core::Interface::as_raw(self), nlevel).ok() } } -::windows_core::imp::interface_hierarchy!(IWICProgressiveLevelControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWICProgressiveLevelControl { - type Vtable = IWICProgressiveLevelControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWICProgressiveLevelControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdaac296f_7aa5_4dbf_8d15_225c5976f891); -} #[repr(C)] #[doc(hidden)] pub struct IWICProgressiveLevelControl_Vtbl { @@ -3210,11 +2820,15 @@ pub struct IWICProgressiveLevelControl_Vtbl { pub GetCurrentLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pnlevel: *mut u32) -> ::windows_core::HRESULT, pub SetCurrentLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nlevel: u32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWICStream(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWICStream, + IWICStream_Vtbl, + 0x135ff860_22b7_4ddf_b0f6_218f4f299a43 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWICStream, ::windows_core::IUnknown, super::super::System::Com::ISequentialStream, super::super::System::Com::IStream); #[cfg(feature = "Win32_System_Com")] impl IWICStream { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3303,16 +2917,6 @@ impl IWICStream { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWICStream, ::windows_core::IUnknown, super::super::System::Com::ISequentialStream, super::super::System::Com::IStream); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWICStream { - type Vtable = IWICStream_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWICStream { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x135ff860_22b7_4ddf_b0f6_218f4f299a43); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWICStream_Vtbl { @@ -3328,9 +2932,8 @@ pub struct IWICStream_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] InitializeFromIStreamRegion: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWICStreamProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWICStreamProvider, IWICStreamProvider_Vtbl, 0x449494bc_b468_4927_96d7_ba90d31ab505); +::windows_core::imp::interface_hierarchy!(IWICStreamProvider, ::windows_core::IUnknown); impl IWICStreamProvider { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -3350,13 +2953,6 @@ impl IWICStreamProvider { (::windows_core::Interface::vtable(self).RefreshStream)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IWICStreamProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWICStreamProvider { - type Vtable = IWICStreamProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWICStreamProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x449494bc_b468_4927_96d7_ba90d31ab505); -} #[repr(C)] #[doc(hidden)] pub struct IWICStreamProvider_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Printing/impl.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Printing/impl.rs index 1cf1a6a2fc..6c11bf2efa 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Printing/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Printing/impl.rs @@ -12,7 +12,7 @@ impl IAsyncGetSendNotificationCookie_Vtbl { Self { base__: IPrintAsyncCookie_Vtbl::new::(), FinishAsyncCallWithData: FinishAsyncCallWithData:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IAsyncGetSrvReferralCookie_Impl: Sized { @@ -46,7 +46,7 @@ impl IAsyncGetSrvReferralCookie_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IBidiAsyncNotifyChannel_Impl: Sized + IPrintAsyncNotifyChannel_Impl { @@ -94,7 +94,7 @@ impl IBidiAsyncNotifyChannel_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IBidiRequest_Impl: Sized { @@ -154,7 +154,7 @@ impl IBidiRequest_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -204,7 +204,7 @@ impl IBidiRequestContainer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IBidiSpl_Impl: Sized { @@ -245,7 +245,7 @@ impl IBidiSpl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -302,7 +302,7 @@ impl IBidiSpl2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IFixedDocument_Impl: Sized { @@ -348,7 +348,7 @@ impl IFixedDocument_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IFixedDocumentSequence_Impl: Sized { @@ -394,7 +394,7 @@ impl IFixedDocumentSequence_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IFixedPage_Impl: Sized + IPartBase_Impl { @@ -480,7 +480,7 @@ impl IFixedPage_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Ole\"`"] @@ -504,7 +504,7 @@ impl IImgCreateErrorInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -606,7 +606,7 @@ impl IImgErrorInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IInterFilterCommunicator_Impl: Sized { @@ -633,7 +633,7 @@ impl IInterFilterCommunicator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPartBase_Impl: Sized { @@ -692,7 +692,7 @@ impl IPartBase_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPartColorProfile_Impl: Sized + IPartBase_Impl {} @@ -702,7 +702,7 @@ impl IPartColorProfile_Vtbl { Self { base__: IPartBase_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IPartDiscardControl_Impl: Sized { @@ -719,7 +719,7 @@ impl IPartDiscardControl_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetDiscardProperties: GetDiscardProperties:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPartFont_Impl: Sized + IPartBase_Impl { @@ -753,7 +753,7 @@ impl IPartFont_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IPartFont2_Impl: Sized + IPartFont_Impl { @@ -776,7 +776,7 @@ impl IPartFont2_Vtbl { Self { base__: IPartFont_Vtbl::new::(), GetFontRestriction: GetFontRestriction:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IPartImage_Impl: Sized + IPartBase_Impl { @@ -809,7 +809,7 @@ impl IPartImage_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IPartPrintTicket_Impl: Sized + IPartBase_Impl {} @@ -819,7 +819,7 @@ impl IPartPrintTicket_Vtbl { Self { base__: IPartBase_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IPartResourceDictionary_Impl: Sized + IPartBase_Impl {} @@ -829,7 +829,7 @@ impl IPartResourceDictionary_Vtbl { Self { base__: IPartBase_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IPartThumbnail_Impl: Sized + IPartBase_Impl { @@ -862,7 +862,7 @@ impl IPartThumbnail_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IPrintAsyncCookie_Impl: Sized { @@ -889,7 +889,7 @@ impl IPrintAsyncCookie_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPrintAsyncNewChannelCookie_Impl: Sized + IPrintAsyncCookie_Impl { @@ -906,7 +906,7 @@ impl IPrintAsyncNewChannelCookie_Vtbl { Self { base__: IPrintAsyncCookie_Vtbl::new::(), FinishAsyncCallWithData: FinishAsyncCallWithData:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IPrintAsyncNotify_Impl: Sized { @@ -945,7 +945,7 @@ impl IPrintAsyncNotify_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPrintAsyncNotifyCallback_Impl: Sized { @@ -972,7 +972,7 @@ impl IPrintAsyncNotifyCallback_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPrintAsyncNotifyChannel_Impl: Sized { @@ -999,7 +999,7 @@ impl IPrintAsyncNotifyChannel_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPrintAsyncNotifyDataObject_Impl: Sized { @@ -1026,7 +1026,7 @@ impl IPrintAsyncNotifyDataObject_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPrintAsyncNotifyRegistration_Impl: Sized { @@ -1053,7 +1053,7 @@ impl IPrintAsyncNotifyRegistration_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPrintAsyncNotifyServerReferral_Impl: Sized { @@ -1093,7 +1093,7 @@ impl IPrintAsyncNotifyServerReferral_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPrintBidiAsyncNotifyRegistration_Impl: Sized + IPrintAsyncNotifyRegistration_Impl { @@ -1110,7 +1110,7 @@ impl IPrintBidiAsyncNotifyRegistration_Vtbl { Self { base__: IPrintAsyncNotifyRegistration_Vtbl::new::(), AsyncGetNewChannel: AsyncGetNewChannel:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IPrintClassObjectFactory_Impl: Sized { @@ -1127,7 +1127,7 @@ impl IPrintClassObjectFactory_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetPrintClassObject: GetPrintClassObject:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] @@ -1213,7 +1213,7 @@ impl IPrintCoreHelper_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] @@ -1251,7 +1251,7 @@ impl IPrintCoreHelperPS_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_System_Com\"`"] @@ -1288,7 +1288,7 @@ impl IPrintCoreHelperUni_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_System_Com\"`"] @@ -1309,7 +1309,7 @@ impl IPrintCoreHelperUni2_Vtbl { Self { base__: IPrintCoreHelperUni_Vtbl::new::(), GetNamedCommand: GetNamedCommand:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IPrintCoreUI2_Impl: Sized + IPrintOemDriverUI_Impl { @@ -1398,7 +1398,7 @@ impl IPrintCoreUI2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IPrintJob_Impl: Sized { @@ -1496,7 +1496,7 @@ impl IPrintJob_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1552,7 +1552,7 @@ impl IPrintJobCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] @@ -1583,7 +1583,7 @@ impl IPrintOemCommon_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPrintOemDriverUI_Impl: Sized { @@ -1617,7 +1617,7 @@ impl IPrintOemDriverUI_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_UI_WindowsAndMessaging\"`"] @@ -1718,7 +1718,7 @@ impl IPrintOemUI_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_UI_WindowsAndMessaging\"`"] @@ -1756,7 +1756,7 @@ impl IPrintOemUI2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] @@ -1794,7 +1794,7 @@ impl IPrintOemUIMXDC_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPrintPipelineFilter_Impl: Sized { @@ -1828,7 +1828,7 @@ impl IPrintPipelineFilter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1859,7 +1859,7 @@ impl IPrintPipelineManagerControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPrintPipelineProgressReport_Impl: Sized { @@ -1876,7 +1876,7 @@ impl IPrintPipelineProgressReport_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), ReportProgress: ReportProgress:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1920,7 +1920,7 @@ impl IPrintPipelinePropertyBag_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi\"`"] @@ -1958,7 +1958,7 @@ impl IPrintPreviewDxgiPackageTarget_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPrintReadStream_Impl: Sized { @@ -1985,7 +1985,7 @@ impl IPrintReadStream_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPrintReadStreamFactory_Impl: Sized { @@ -2008,7 +2008,7 @@ impl IPrintReadStreamFactory_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetStream: GetStream:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2039,7 +2039,7 @@ impl IPrintSchemaAsyncOperation_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2060,7 +2060,7 @@ impl IPrintSchemaAsyncOperationEvent_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::(), Completed: Completed:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2168,7 +2168,7 @@ impl IPrintSchemaCapabilities_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2195,7 +2195,7 @@ impl IPrintSchemaCapabilities2_Vtbl { Self { base__: IPrintSchemaCapabilities_Vtbl::new::(), GetParameterDefinition: GetParameterDefinition:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2222,7 +2222,7 @@ impl IPrintSchemaDisplayableElement_Vtbl { Self { base__: IPrintSchemaElement_Vtbl::new::(), DisplayName: DisplayName:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2278,7 +2278,7 @@ impl IPrintSchemaElement_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2354,7 +2354,7 @@ impl IPrintSchemaFeature_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2381,7 +2381,7 @@ impl IPrintSchemaNUpOption_Vtbl { Self { base__: IPrintSchemaOption_Vtbl::new::(), PagesPerSheet: PagesPerSheet:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2437,7 +2437,7 @@ impl IPrintSchemaOption_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2493,7 +2493,7 @@ impl IPrintSchemaOptionCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2588,7 +2588,7 @@ impl IPrintSchemaPageImageableSize_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2631,7 +2631,7 @@ impl IPrintSchemaPageMediaSizeOption_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2713,7 +2713,7 @@ impl IPrintSchemaParameterDefinition_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2750,7 +2750,7 @@ impl IPrintSchemaParameterInitializer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2859,7 +2859,7 @@ impl IPrintSchemaTicket_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2886,7 +2886,7 @@ impl IPrintSchemaTicket2_Vtbl { Self { base__: IPrintSchemaTicket_Vtbl::new::(), GetParameterInitializer: GetParameterInitializer:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Data_Xml_MsXml\"`, `\"Win32_Graphics_Gdi\"`, `\"Win32_System_Com\"`"] @@ -2958,7 +2958,7 @@ impl IPrintTicketProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Data_Xml_MsXml\"`, `\"Win32_Graphics_Gdi\"`, `\"Win32_System_Com\"`"] @@ -3001,7 +3001,7 @@ impl IPrintTicketProvider2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IPrintUnidiAsyncNotifyRegistration_Impl: Sized + IPrintAsyncNotifyRegistration_Impl { @@ -3021,7 +3021,7 @@ impl IPrintUnidiAsyncNotifyRegistration_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IPrintWriteStream_Impl: Sized { @@ -3054,7 +3054,7 @@ impl IPrintWriteStream_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPrintWriteStreamFlush_Impl: Sized { @@ -3071,7 +3071,7 @@ impl IPrintWriteStreamFlush_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), FlushData: FlushData:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPrinterBidiSetRequestCallback_Impl: Sized { @@ -3088,7 +3088,7 @@ impl IPrinterBidiSetRequestCallback_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Completed: Completed:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPrinterExtensionAsyncOperation_Impl: Sized { @@ -3105,7 +3105,7 @@ impl IPrinterExtensionAsyncOperation_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Cancel: Cancel:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3174,7 +3174,7 @@ impl IPrinterExtensionContext_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3230,7 +3230,7 @@ impl IPrinterExtensionContextCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3261,7 +3261,7 @@ impl IPrinterExtensionEvent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3369,7 +3369,7 @@ impl IPrinterExtensionEventArgs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IPrinterExtensionManager_Impl: Sized { @@ -3396,7 +3396,7 @@ impl IPrinterExtensionManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3427,7 +3427,7 @@ impl IPrinterExtensionRequest_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3544,7 +3544,7 @@ impl IPrinterPropertyBag_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3607,7 +3607,7 @@ impl IPrinterQueue_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3650,7 +3650,7 @@ impl IPrinterQueue2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3674,7 +3674,7 @@ impl IPrinterQueueEvent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3695,7 +3695,7 @@ impl IPrinterQueueView_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::(), SetViewRange: SetViewRange:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3716,7 +3716,7 @@ impl IPrinterQueueViewEvent_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::(), OnChanged: OnChanged:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3772,7 +3772,7 @@ impl IPrinterScriptContext_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3895,7 +3895,7 @@ impl IPrinterScriptablePropertyBag_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3922,7 +3922,7 @@ impl IPrinterScriptablePropertyBag2_Vtbl { Self { base__: IPrinterScriptablePropertyBag_Vtbl::new::(), GetReadStreamAsXML: GetReadStreamAsXML:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3965,7 +3965,7 @@ impl IPrinterScriptableSequentialStream_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4009,7 +4009,7 @@ impl IPrinterScriptableStream_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IXpsDocument_Impl: Sized { @@ -4042,7 +4042,7 @@ impl IXpsDocument_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IXpsDocumentConsumer_Impl: Sized { @@ -4104,7 +4104,7 @@ impl IXpsDocumentConsumer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IXpsDocumentProvider_Impl: Sized { @@ -4127,7 +4127,7 @@ impl IXpsDocumentProvider_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetXpsPart: GetXpsPart:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IXpsPartIterator_Impl: Sized { @@ -4168,7 +4168,7 @@ impl IXpsPartIterator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_Xps\"`"] @@ -4195,7 +4195,7 @@ impl IXpsRasterizationFactory_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CreateRasterizer: CreateRasterizer:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_Xps\"`"] @@ -4222,7 +4222,7 @@ impl IXpsRasterizationFactory1_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CreateRasterizer: CreateRasterizer:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_Xps\"`"] @@ -4249,7 +4249,7 @@ impl IXpsRasterizationFactory2_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CreateRasterizer: CreateRasterizer:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Imaging\"`"] @@ -4286,7 +4286,7 @@ impl IXpsRasterizer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IXpsRasterizerNotificationCallback_Impl: Sized { @@ -4303,6 +4303,6 @@ impl IXpsRasterizerNotificationCallback_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Continue: Continue:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 0999686a5a..6e2de0cbc6 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Printing/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Printing/mod.rs @@ -1874,9 +1874,8 @@ where ::core::mem::transmute(pdwstatus.unwrap_or(::std::ptr::null_mut())), ) } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAsyncGetSendNotificationCookie(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAsyncGetSendNotificationCookie, IAsyncGetSendNotificationCookie_Vtbl, 0); +::windows_core::imp::interface_hierarchy!(IAsyncGetSendNotificationCookie, ::windows_core::IUnknown, IPrintAsyncCookie); impl IAsyncGetSendNotificationCookie { pub unsafe fn FinishAsyncCall(&self, param0: ::windows_core::HRESULT) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.FinishAsyncCall)(::windows_core::Interface::as_raw(self), param0).ok() @@ -1892,22 +1891,14 @@ impl IAsyncGetSendNotificationCookie { (::windows_core::Interface::vtable(self).FinishAsyncCallWithData)(::windows_core::Interface::as_raw(self), param0.into_param().abi(), param1.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IAsyncGetSendNotificationCookie, ::windows_core::IUnknown, IPrintAsyncCookie); -unsafe impl ::windows_core::Interface for IAsyncGetSendNotificationCookie { - type Vtable = IAsyncGetSendNotificationCookie_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAsyncGetSendNotificationCookie { - const IID: ::windows_core::GUID = ::windows_core::GUID::zeroed(); -} #[repr(C)] #[doc(hidden)] pub struct IAsyncGetSendNotificationCookie_Vtbl { pub base__: IPrintAsyncCookie_Vtbl, pub FinishAsyncCallWithData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: *mut ::core::ffi::c_void, param1: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAsyncGetSrvReferralCookie(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAsyncGetSrvReferralCookie, IAsyncGetSrvReferralCookie_Vtbl, 0); +::windows_core::imp::interface_hierarchy!(IAsyncGetSrvReferralCookie, ::windows_core::IUnknown); impl IAsyncGetSrvReferralCookie { pub unsafe fn FinishAsyncCall(&self, param0: ::windows_core::HRESULT) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).FinishAsyncCall)(::windows_core::Interface::as_raw(self), param0).ok() @@ -1922,13 +1913,6 @@ impl IAsyncGetSrvReferralCookie { (::windows_core::Interface::vtable(self).FinishAsyncCallWithData)(::windows_core::Interface::as_raw(self), param0.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IAsyncGetSrvReferralCookie, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAsyncGetSrvReferralCookie { - type Vtable = IAsyncGetSrvReferralCookie_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAsyncGetSrvReferralCookie { - const IID: ::windows_core::GUID = ::windows_core::GUID::zeroed(); -} #[repr(C)] #[doc(hidden)] pub struct IAsyncGetSrvReferralCookie_Vtbl { @@ -1937,9 +1921,8 @@ pub struct IAsyncGetSrvReferralCookie_Vtbl { pub CancelAsyncCall: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: ::windows_core::HRESULT) -> ::windows_core::HRESULT, pub FinishAsyncCallWithData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBidiAsyncNotifyChannel(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBidiAsyncNotifyChannel, IBidiAsyncNotifyChannel_Vtbl, 0x532818f7_921b_4fb2_bff8_2f4fd52ebebf); +::windows_core::imp::interface_hierarchy!(IBidiAsyncNotifyChannel, ::windows_core::IUnknown, IPrintAsyncNotifyChannel); impl IBidiAsyncNotifyChannel { pub unsafe fn SendNotification(&self, pdata: P0) -> ::windows_core::Result<()> where @@ -1977,13 +1960,6 @@ impl IBidiAsyncNotifyChannel { (::windows_core::Interface::vtable(self).AsyncCloseChannel)(::windows_core::Interface::as_raw(self), param0.into_param().abi(), param1.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IBidiAsyncNotifyChannel, ::windows_core::IUnknown, IPrintAsyncNotifyChannel); -unsafe impl ::windows_core::Interface for IBidiAsyncNotifyChannel { - type Vtable = IBidiAsyncNotifyChannel_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBidiAsyncNotifyChannel { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x532818f7_921b_4fb2_bff8_2f4fd52ebebf); -} #[repr(C)] #[doc(hidden)] pub struct IBidiAsyncNotifyChannel_Vtbl { @@ -1994,9 +1970,8 @@ pub struct IBidiAsyncNotifyChannel_Vtbl { pub AsyncGetNotificationSendResponse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: *mut ::core::ffi::c_void, param1: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub AsyncCloseChannel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: *mut ::core::ffi::c_void, param1: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBidiRequest(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBidiRequest, IBidiRequest_Vtbl, 0x8f348bd7_4b47_4755_8a9d_0f422df3dc89); +::windows_core::imp::interface_hierarchy!(IBidiRequest, ::windows_core::IUnknown); impl IBidiRequest { pub unsafe fn SetSchema(&self, pszschema: P0) -> ::windows_core::Result<()> where @@ -2019,13 +1994,6 @@ impl IBidiRequest { (::windows_core::Interface::vtable(self).GetEnumCount)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IBidiRequest, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBidiRequest { - type Vtable = IBidiRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBidiRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8f348bd7_4b47_4755_8a9d_0f422df3dc89); -} #[repr(C)] #[doc(hidden)] pub struct IBidiRequest_Vtbl { @@ -2036,9 +2004,8 @@ pub struct IBidiRequest_Vtbl { pub GetOutputData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwindex: u32, ppszschema: *mut ::windows_core::PWSTR, pdwtype: *mut u32, ppdata: *mut *mut u8, usize: *mut u32) -> ::windows_core::HRESULT, pub GetEnumCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwtotal: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBidiRequestContainer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBidiRequestContainer, IBidiRequestContainer_Vtbl, 0xd752f6c0_94a8_4275_a77d_8f1d1a1121ae); +::windows_core::imp::interface_hierarchy!(IBidiRequestContainer, ::windows_core::IUnknown); impl IBidiRequestContainer { pub unsafe fn AddRequest(&self, prequest: P0) -> ::windows_core::Result<()> where @@ -2057,13 +2024,6 @@ impl IBidiRequestContainer { (::windows_core::Interface::vtable(self).GetRequestCount)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IBidiRequestContainer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBidiRequestContainer { - type Vtable = IBidiRequestContainer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBidiRequestContainer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd752f6c0_94a8_4275_a77d_8f1d1a1121ae); -} #[repr(C)] #[doc(hidden)] pub struct IBidiRequestContainer_Vtbl { @@ -2075,9 +2035,8 @@ pub struct IBidiRequestContainer_Vtbl { GetEnumObject: usize, pub GetRequestCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pucount: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBidiSpl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBidiSpl, IBidiSpl_Vtbl, 0xd580dc0e_de39_4649_baa8_bf0b85a03a97); +::windows_core::imp::interface_hierarchy!(IBidiSpl, ::windows_core::IUnknown); impl IBidiSpl { pub unsafe fn BindDevice(&self, pszdevicename: P0, dwaccess: u32) -> ::windows_core::Result<()> where @@ -2103,13 +2062,6 @@ impl IBidiSpl { (::windows_core::Interface::vtable(self).MultiSendRecv)(::windows_core::Interface::as_raw(self), pszaction.into_param().abi(), prequestcontainer.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IBidiSpl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBidiSpl { - type Vtable = IBidiSpl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBidiSpl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd580dc0e_de39_4649_baa8_bf0b85a03a97); -} #[repr(C)] #[doc(hidden)] pub struct IBidiSpl_Vtbl { @@ -2119,9 +2071,8 @@ pub struct IBidiSpl_Vtbl { pub SendRecv: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszaction: ::windows_core::PCWSTR, prequest: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub MultiSendRecv: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszaction: ::windows_core::PCWSTR, prequestcontainer: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBidiSpl2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBidiSpl2, IBidiSpl2_Vtbl, 0x0e8f51b8_8273_4906_8e7b_be453ffd2e2b); +::windows_core::imp::interface_hierarchy!(IBidiSpl2, ::windows_core::IUnknown); impl IBidiSpl2 { pub unsafe fn BindDevice(&self, pszdevicename: P0, dwaccess: u32) -> ::windows_core::Result<()> where @@ -2149,13 +2100,6 @@ impl IBidiSpl2 { (::windows_core::Interface::vtable(self).SendRecvXMLStream)(::windows_core::Interface::as_raw(self), psrequest.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IBidiSpl2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBidiSpl2 { - type Vtable = IBidiSpl2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBidiSpl2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0e8f51b8_8273_4906_8e7b_be453ffd2e2b); -} #[repr(C)] #[doc(hidden)] pub struct IBidiSpl2_Vtbl { @@ -2168,9 +2112,8 @@ pub struct IBidiSpl2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] SendRecvXMLStream: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFixedDocument(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFixedDocument, IFixedDocument_Vtbl, 0xf222ca9f_9968_4db9_81bd_abaebf15f93f); +::windows_core::imp::interface_hierarchy!(IFixedDocument, ::windows_core::IUnknown); impl IFixedDocument { pub unsafe fn GetUri(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -2187,13 +2130,6 @@ impl IFixedDocument { (::windows_core::Interface::vtable(self).SetPrintTicket)(::windows_core::Interface::as_raw(self), pprintticket.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IFixedDocument, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFixedDocument { - type Vtable = IFixedDocument_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFixedDocument { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf222ca9f_9968_4db9_81bd_abaebf15f93f); -} #[repr(C)] #[doc(hidden)] pub struct IFixedDocument_Vtbl { @@ -2202,9 +2138,8 @@ pub struct IFixedDocument_Vtbl { pub GetPrintTicket: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppprintticket: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetPrintTicket: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pprintticket: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFixedDocumentSequence(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFixedDocumentSequence, IFixedDocumentSequence_Vtbl, 0x8028d181_2c32_4249_8493_1bfb22045574); +::windows_core::imp::interface_hierarchy!(IFixedDocumentSequence, ::windows_core::IUnknown); impl IFixedDocumentSequence { pub unsafe fn GetUri(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -2221,13 +2156,6 @@ impl IFixedDocumentSequence { (::windows_core::Interface::vtable(self).SetPrintTicket)(::windows_core::Interface::as_raw(self), pprintticket.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IFixedDocumentSequence, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFixedDocumentSequence { - type Vtable = IFixedDocumentSequence_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFixedDocumentSequence { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8028d181_2c32_4249_8493_1bfb22045574); -} #[repr(C)] #[doc(hidden)] pub struct IFixedDocumentSequence_Vtbl { @@ -2236,9 +2164,8 @@ pub struct IFixedDocumentSequence_Vtbl { pub GetPrintTicket: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppprintticket: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetPrintTicket: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pprintticket: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFixedPage(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFixedPage, IFixedPage_Vtbl, 0x3d9f6448_7e95_4cb5_94fb_0180c2883a57); +::windows_core::imp::interface_hierarchy!(IFixedPage, ::windows_core::IUnknown, IPartBase); impl IFixedPage { pub unsafe fn GetUri(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -2293,13 +2220,6 @@ impl IFixedPage { (::windows_core::Interface::vtable(self).GetXpsPartIterator)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IFixedPage, ::windows_core::IUnknown, IPartBase); -unsafe impl ::windows_core::Interface for IFixedPage { - type Vtable = IFixedPage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFixedPage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3d9f6448_7e95_4cb5_94fb_0180c2883a57); -} #[repr(C)] #[doc(hidden)] pub struct IFixedPage_Vtbl { @@ -2312,11 +2232,15 @@ pub struct IFixedPage_Vtbl { pub DeleteResource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uri: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub GetXpsPartIterator: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pxpspartit: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Ole\"`"] #[cfg(feature = "Win32_System_Ole")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IImgCreateErrorInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Ole\"`"] + IImgCreateErrorInfo, + IImgCreateErrorInfo_Vtbl, + 0x1c55a64c_07cd_4fb5_90f7_b753d91f0c9e +); +#[cfg(feature = "Win32_System_Ole")] +::windows_core::imp::interface_hierarchy!(IImgCreateErrorInfo, ::windows_core::IUnknown, super::super::System::Ole::ICreateErrorInfo); #[cfg(feature = "Win32_System_Ole")] impl IImgCreateErrorInfo { #[doc = "Required features: `\"Win32_System_Ole\"`"] @@ -2358,27 +2282,21 @@ impl IImgCreateErrorInfo { } } #[cfg(feature = "Win32_System_Ole")] -::windows_core::imp::interface_hierarchy!(IImgCreateErrorInfo, ::windows_core::IUnknown, super::super::System::Ole::ICreateErrorInfo); -#[cfg(feature = "Win32_System_Ole")] -unsafe impl ::windows_core::Interface for IImgCreateErrorInfo { - type Vtable = IImgCreateErrorInfo_Vtbl; -} -#[cfg(feature = "Win32_System_Ole")] -unsafe impl ::windows_core::ComInterface for IImgCreateErrorInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1c55a64c_07cd_4fb5_90f7_b753d91f0c9e); -} -#[cfg(feature = "Win32_System_Ole")] #[repr(C)] #[doc(hidden)] pub struct IImgCreateErrorInfo_Vtbl { pub base__: super::super::System::Ole::ICreateErrorInfo_Vtbl, pub AttachToErrorInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, perrorinfo: *mut ImgErrorInfo) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IImgErrorInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IImgErrorInfo, + IImgErrorInfo_Vtbl, + 0x2bce4ece_d30e_445a_9423_6829be945ad8 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IImgErrorInfo, ::windows_core::IUnknown, super::super::System::Com::IErrorInfo); #[cfg(feature = "Win32_System_Com")] impl IImgErrorInfo { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2440,16 +2358,6 @@ impl IImgErrorInfo { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IImgErrorInfo, ::windows_core::IUnknown, super::super::System::Com::IErrorInfo); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IImgErrorInfo { - type Vtable = IImgErrorInfo_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IImgErrorInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2bce4ece_d30e_445a_9423_6829be945ad8); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IImgErrorInfo_Vtbl { @@ -2462,9 +2370,8 @@ pub struct IImgErrorInfo_Vtbl { pub GetExceptionId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pexceptionid: *mut u32) -> ::windows_core::HRESULT, pub DetachErrorInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, perrorinfo: *mut ImgErrorInfo) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInterFilterCommunicator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IInterFilterCommunicator, IInterFilterCommunicator_Vtbl, 0x4daf1e69_81fd_462d_940f_8cd3ddf56fca); +::windows_core::imp::interface_hierarchy!(IInterFilterCommunicator, ::windows_core::IUnknown); impl IInterFilterCommunicator { pub unsafe fn RequestReader(&self, ppireader: *mut *mut ::core::ffi::c_void) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).RequestReader)(::windows_core::Interface::as_raw(self), ppireader).ok() @@ -2473,13 +2380,6 @@ impl IInterFilterCommunicator { (::windows_core::Interface::vtable(self).RequestWriter)(::windows_core::Interface::as_raw(self), ppiwriter).ok() } } -::windows_core::imp::interface_hierarchy!(IInterFilterCommunicator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInterFilterCommunicator { - type Vtable = IInterFilterCommunicator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInterFilterCommunicator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4daf1e69_81fd_462d_940f_8cd3ddf56fca); -} #[repr(C)] #[doc(hidden)] pub struct IInterFilterCommunicator_Vtbl { @@ -2487,9 +2387,8 @@ pub struct IInterFilterCommunicator_Vtbl { pub RequestReader: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppireader: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RequestWriter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppiwriter: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPartBase(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPartBase, IPartBase_Vtbl, 0x36d51e28_369e_43ba_a666_9540c62c3f58); +::windows_core::imp::interface_hierarchy!(IPartBase, ::windows_core::IUnknown); impl IPartBase { pub unsafe fn GetUri(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -2507,13 +2406,6 @@ impl IPartBase { (::windows_core::Interface::vtable(self).SetPartCompression)(::windows_core::Interface::as_raw(self), compression).ok() } } -::windows_core::imp::interface_hierarchy!(IPartBase, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPartBase { - type Vtable = IPartBase_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPartBase { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x36d51e28_369e_43ba_a666_9540c62c3f58); -} #[repr(C)] #[doc(hidden)] pub struct IPartBase_Vtbl { @@ -2523,9 +2415,8 @@ pub struct IPartBase_Vtbl { pub GetPartCompression: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcompression: *mut EXpsCompressionOptions) -> ::windows_core::HRESULT, pub SetPartCompression: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, compression: EXpsCompressionOptions) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPartColorProfile(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPartColorProfile, IPartColorProfile_Vtbl, 0x63cca95b_7d18_4762_b15e_98658693d24a); +::windows_core::imp::interface_hierarchy!(IPartColorProfile, ::windows_core::IUnknown, IPartBase); impl IPartColorProfile { pub unsafe fn GetUri(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -2543,42 +2434,26 @@ impl IPartColorProfile { (::windows_core::Interface::vtable(self).base__.SetPartCompression)(::windows_core::Interface::as_raw(self), compression).ok() } } -::windows_core::imp::interface_hierarchy!(IPartColorProfile, ::windows_core::IUnknown, IPartBase); -unsafe impl ::windows_core::Interface for IPartColorProfile { - type Vtable = IPartColorProfile_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPartColorProfile { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x63cca95b_7d18_4762_b15e_98658693d24a); -} #[repr(C)] #[doc(hidden)] pub struct IPartColorProfile_Vtbl { pub base__: IPartBase_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPartDiscardControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPartDiscardControl, IPartDiscardControl_Vtbl, 0xcc350c00_095b_42a5_bf0f_c8780edadb3c); +::windows_core::imp::interface_hierarchy!(IPartDiscardControl, ::windows_core::IUnknown); impl IPartDiscardControl { pub unsafe fn GetDiscardProperties(&self, urisentinelpage: *mut ::windows_core::BSTR, uriparttodiscard: *mut ::windows_core::BSTR) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetDiscardProperties)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(urisentinelpage), ::core::mem::transmute(uriparttodiscard)).ok() } } -::windows_core::imp::interface_hierarchy!(IPartDiscardControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPartDiscardControl { - type Vtable = IPartDiscardControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPartDiscardControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcc350c00_095b_42a5_bf0f_c8780edadb3c); -} #[repr(C)] #[doc(hidden)] pub struct IPartDiscardControl_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetDiscardProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, urisentinelpage: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>, uriparttodiscard: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPartFont(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPartFont, IPartFont_Vtbl, 0xe07fe0ab_1124_43d0_a865_e8ffb6a3ea82); +::windows_core::imp::interface_hierarchy!(IPartFont, ::windows_core::IUnknown, IPartBase); impl IPartFont { pub unsafe fn GetUri(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -2608,13 +2483,6 @@ impl IPartFont { (::windows_core::Interface::vtable(self).SetFontOptions)(::windows_core::Interface::as_raw(self), options).ok() } } -::windows_core::imp::interface_hierarchy!(IPartFont, ::windows_core::IUnknown, IPartBase); -unsafe impl ::windows_core::Interface for IPartFont { - type Vtable = IPartFont_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPartFont { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe07fe0ab_1124_43d0_a865_e8ffb6a3ea82); -} #[repr(C)] #[doc(hidden)] pub struct IPartFont_Vtbl { @@ -2623,9 +2491,8 @@ pub struct IPartFont_Vtbl { pub SetFontContent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcontenttype: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub SetFontOptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, options: EXpsFontOptions) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPartFont2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPartFont2, IPartFont2_Vtbl, 0x511e025f_d6cb_43be_bf65_63fe88515a39); +::windows_core::imp::interface_hierarchy!(IPartFont2, ::windows_core::IUnknown, IPartBase, IPartFont); impl IPartFont2 { pub unsafe fn GetUri(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -2659,22 +2526,14 @@ impl IPartFont2 { (::windows_core::Interface::vtable(self).GetFontRestriction)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IPartFont2, ::windows_core::IUnknown, IPartBase, IPartFont); -unsafe impl ::windows_core::Interface for IPartFont2 { - type Vtable = IPartFont2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPartFont2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x511e025f_d6cb_43be_bf65_63fe88515a39); -} #[repr(C)] #[doc(hidden)] pub struct IPartFont2_Vtbl { pub base__: IPartFont_Vtbl, pub GetFontRestriction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prestriction: *mut EXpsFontRestriction) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPartImage(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPartImage, IPartImage_Vtbl, 0x725f2e3c_401a_4705_9de0_fe6f1353b87f); +::windows_core::imp::interface_hierarchy!(IPartImage, ::windows_core::IUnknown, IPartBase); impl IPartImage { pub unsafe fn GetUri(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -2702,13 +2561,6 @@ impl IPartImage { (::windows_core::Interface::vtable(self).SetImageContent)(::windows_core::Interface::as_raw(self), pcontenttype.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IPartImage, ::windows_core::IUnknown, IPartBase); -unsafe impl ::windows_core::Interface for IPartImage { - type Vtable = IPartImage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPartImage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x725f2e3c_401a_4705_9de0_fe6f1353b87f); -} #[repr(C)] #[doc(hidden)] pub struct IPartImage_Vtbl { @@ -2716,9 +2568,8 @@ pub struct IPartImage_Vtbl { pub GetImageProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcontenttype: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SetImageContent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcontenttype: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPartPrintTicket(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPartPrintTicket, IPartPrintTicket_Vtbl, 0x4a0f50f6_f9a2_41f0_99e7_5ae955be8e9e); +::windows_core::imp::interface_hierarchy!(IPartPrintTicket, ::windows_core::IUnknown, IPartBase); impl IPartPrintTicket { pub unsafe fn GetUri(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -2736,21 +2587,13 @@ impl IPartPrintTicket { (::windows_core::Interface::vtable(self).base__.SetPartCompression)(::windows_core::Interface::as_raw(self), compression).ok() } } -::windows_core::imp::interface_hierarchy!(IPartPrintTicket, ::windows_core::IUnknown, IPartBase); -unsafe impl ::windows_core::Interface for IPartPrintTicket { - type Vtable = IPartPrintTicket_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPartPrintTicket { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4a0f50f6_f9a2_41f0_99e7_5ae955be8e9e); -} #[repr(C)] #[doc(hidden)] pub struct IPartPrintTicket_Vtbl { pub base__: IPartBase_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPartResourceDictionary(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPartResourceDictionary, IPartResourceDictionary_Vtbl, 0x16cfce6d_e744_4fb3_b474_f1d54f024a01); +::windows_core::imp::interface_hierarchy!(IPartResourceDictionary, ::windows_core::IUnknown, IPartBase); impl IPartResourceDictionary { pub unsafe fn GetUri(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -2768,21 +2611,13 @@ impl IPartResourceDictionary { (::windows_core::Interface::vtable(self).base__.SetPartCompression)(::windows_core::Interface::as_raw(self), compression).ok() } } -::windows_core::imp::interface_hierarchy!(IPartResourceDictionary, ::windows_core::IUnknown, IPartBase); -unsafe impl ::windows_core::Interface for IPartResourceDictionary { - type Vtable = IPartResourceDictionary_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPartResourceDictionary { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x16cfce6d_e744_4fb3_b474_f1d54f024a01); -} #[repr(C)] #[doc(hidden)] pub struct IPartResourceDictionary_Vtbl { pub base__: IPartBase_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPartThumbnail(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPartThumbnail, IPartThumbnail_Vtbl, 0x027ed1c9_ba39_4cc5_aa55_7ec3a0de171a); +::windows_core::imp::interface_hierarchy!(IPartThumbnail, ::windows_core::IUnknown, IPartBase); impl IPartThumbnail { pub unsafe fn GetUri(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -2810,13 +2645,6 @@ impl IPartThumbnail { (::windows_core::Interface::vtable(self).SetThumbnailContent)(::windows_core::Interface::as_raw(self), pcontenttype.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IPartThumbnail, ::windows_core::IUnknown, IPartBase); -unsafe impl ::windows_core::Interface for IPartThumbnail { - type Vtable = IPartThumbnail_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPartThumbnail { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x027ed1c9_ba39_4cc5_aa55_7ec3a0de171a); -} #[repr(C)] #[doc(hidden)] pub struct IPartThumbnail_Vtbl { @@ -2824,9 +2652,8 @@ pub struct IPartThumbnail_Vtbl { pub GetThumbnailProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcontenttype: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SetThumbnailContent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcontenttype: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintAsyncCookie(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPrintAsyncCookie, IPrintAsyncCookie_Vtbl, 0); +::windows_core::imp::interface_hierarchy!(IPrintAsyncCookie, ::windows_core::IUnknown); impl IPrintAsyncCookie { pub unsafe fn FinishAsyncCall(&self, param0: ::windows_core::HRESULT) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).FinishAsyncCall)(::windows_core::Interface::as_raw(self), param0).ok() @@ -2835,13 +2662,6 @@ impl IPrintAsyncCookie { (::windows_core::Interface::vtable(self).CancelAsyncCall)(::windows_core::Interface::as_raw(self), param0).ok() } } -::windows_core::imp::interface_hierarchy!(IPrintAsyncCookie, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintAsyncCookie { - type Vtable = IPrintAsyncCookie_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintAsyncCookie { - const IID: ::windows_core::GUID = ::windows_core::GUID::zeroed(); -} #[repr(C)] #[doc(hidden)] pub struct IPrintAsyncCookie_Vtbl { @@ -2849,9 +2669,8 @@ pub struct IPrintAsyncCookie_Vtbl { pub FinishAsyncCall: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: ::windows_core::HRESULT) -> ::windows_core::HRESULT, pub CancelAsyncCall: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintAsyncNewChannelCookie(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPrintAsyncNewChannelCookie, IPrintAsyncNewChannelCookie_Vtbl, 0); +::windows_core::imp::interface_hierarchy!(IPrintAsyncNewChannelCookie, ::windows_core::IUnknown, IPrintAsyncCookie); impl IPrintAsyncNewChannelCookie { pub unsafe fn FinishAsyncCall(&self, param0: ::windows_core::HRESULT) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.FinishAsyncCall)(::windows_core::Interface::as_raw(self), param0).ok() @@ -2863,22 +2682,14 @@ impl IPrintAsyncNewChannelCookie { (::windows_core::Interface::vtable(self).FinishAsyncCallWithData)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(param0), param1).ok() } } -::windows_core::imp::interface_hierarchy!(IPrintAsyncNewChannelCookie, ::windows_core::IUnknown, IPrintAsyncCookie); -unsafe impl ::windows_core::Interface for IPrintAsyncNewChannelCookie { - type Vtable = IPrintAsyncNewChannelCookie_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintAsyncNewChannelCookie { - const IID: ::windows_core::GUID = ::windows_core::GUID::zeroed(); -} #[repr(C)] #[doc(hidden)] pub struct IPrintAsyncNewChannelCookie_Vtbl { pub base__: IPrintAsyncCookie_Vtbl, pub FinishAsyncCallWithData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: *const *mut ::core::ffi::c_void, param1: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintAsyncNotify(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPrintAsyncNotify, IPrintAsyncNotify_Vtbl, 0x532818f7_921b_4fb2_bff8_2f4fd52ebebf); +::windows_core::imp::interface_hierarchy!(IPrintAsyncNotify, ::windows_core::IUnknown); impl IPrintAsyncNotify { pub unsafe fn CreatePrintAsyncNotifyChannel(&self, param0: u32, param1: *const ::windows_core::GUID, param2: PrintAsyncNotifyUserFilter, param3: PrintAsyncNotifyConversationStyle, param4: P0) -> ::windows_core::Result where @@ -2895,13 +2706,6 @@ impl IPrintAsyncNotify { (::windows_core::Interface::vtable(self).CreatePrintAsyncNotifyRegistration)(::windows_core::Interface::as_raw(self), param0, param1, param2, param3.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IPrintAsyncNotify, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintAsyncNotify { - type Vtable = IPrintAsyncNotify_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintAsyncNotify { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x532818f7_921b_4fb2_bff8_2f4fd52ebebf); -} #[repr(C)] #[doc(hidden)] pub struct IPrintAsyncNotify_Vtbl { @@ -2909,9 +2713,8 @@ pub struct IPrintAsyncNotify_Vtbl { pub CreatePrintAsyncNotifyChannel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: u32, param1: *const ::windows_core::GUID, param2: PrintAsyncNotifyUserFilter, param3: PrintAsyncNotifyConversationStyle, param4: *mut ::core::ffi::c_void, param5: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreatePrintAsyncNotifyRegistration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: *const ::windows_core::GUID, param1: PrintAsyncNotifyUserFilter, param2: PrintAsyncNotifyConversationStyle, param3: *mut ::core::ffi::c_void, param4: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintAsyncNotifyCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPrintAsyncNotifyCallback, IPrintAsyncNotifyCallback_Vtbl, 0x7def34c1_9d92_4c99_b3b3_db94a9d4191b); +::windows_core::imp::interface_hierarchy!(IPrintAsyncNotifyCallback, ::windows_core::IUnknown); impl IPrintAsyncNotifyCallback { pub unsafe fn OnEventNotify(&self, pchannel: P0, pdata: P1) -> ::windows_core::Result<()> where @@ -2928,13 +2731,6 @@ impl IPrintAsyncNotifyCallback { (::windows_core::Interface::vtable(self).ChannelClosed)(::windows_core::Interface::as_raw(self), pchannel.into_param().abi(), pdata.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IPrintAsyncNotifyCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintAsyncNotifyCallback { - type Vtable = IPrintAsyncNotifyCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintAsyncNotifyCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7def34c1_9d92_4c99_b3b3_db94a9d4191b); -} #[repr(C)] #[doc(hidden)] pub struct IPrintAsyncNotifyCallback_Vtbl { @@ -2942,9 +2738,8 @@ pub struct IPrintAsyncNotifyCallback_Vtbl { pub OnEventNotify: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pchannel: *mut ::core::ffi::c_void, pdata: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ChannelClosed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pchannel: *mut ::core::ffi::c_void, pdata: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintAsyncNotifyChannel(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPrintAsyncNotifyChannel, IPrintAsyncNotifyChannel_Vtbl, 0x4a5031b1_1f3f_4db0_a462_4530ed8b0451); +::windows_core::imp::interface_hierarchy!(IPrintAsyncNotifyChannel, ::windows_core::IUnknown); impl IPrintAsyncNotifyChannel { pub unsafe fn SendNotification(&self, pdata: P0) -> ::windows_core::Result<()> where @@ -2959,13 +2754,6 @@ impl IPrintAsyncNotifyChannel { (::windows_core::Interface::vtable(self).CloseChannel)(::windows_core::Interface::as_raw(self), pdata.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IPrintAsyncNotifyChannel, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintAsyncNotifyChannel { - type Vtable = IPrintAsyncNotifyChannel_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintAsyncNotifyChannel { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4a5031b1_1f3f_4db0_a462_4530ed8b0451); -} #[repr(C)] #[doc(hidden)] pub struct IPrintAsyncNotifyChannel_Vtbl { @@ -2973,9 +2761,8 @@ pub struct IPrintAsyncNotifyChannel_Vtbl { pub SendNotification: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdata: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CloseChannel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdata: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintAsyncNotifyDataObject(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPrintAsyncNotifyDataObject, IPrintAsyncNotifyDataObject_Vtbl, 0x77cf513e_5d49_4789_9f30_d0822b335c0d); +::windows_core::imp::interface_hierarchy!(IPrintAsyncNotifyDataObject, ::windows_core::IUnknown); impl IPrintAsyncNotifyDataObject { pub unsafe fn AcquireData(&self, ppnotificationdata: ::core::option::Option<*mut *mut u8>, psize: ::core::option::Option<*mut u32>, ppschema: ::core::option::Option<*mut *mut ::windows_core::GUID>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).AcquireData)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(ppnotificationdata.unwrap_or(::std::ptr::null_mut())), ::core::mem::transmute(psize.unwrap_or(::std::ptr::null_mut())), ::core::mem::transmute(ppschema.unwrap_or(::std::ptr::null_mut()))).ok() @@ -2984,13 +2771,6 @@ impl IPrintAsyncNotifyDataObject { (::windows_core::Interface::vtable(self).ReleaseData)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IPrintAsyncNotifyDataObject, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintAsyncNotifyDataObject { - type Vtable = IPrintAsyncNotifyDataObject_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintAsyncNotifyDataObject { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x77cf513e_5d49_4789_9f30_d0822b335c0d); -} #[repr(C)] #[doc(hidden)] pub struct IPrintAsyncNotifyDataObject_Vtbl { @@ -2998,9 +2778,8 @@ pub struct IPrintAsyncNotifyDataObject_Vtbl { pub AcquireData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppnotificationdata: *mut *mut u8, psize: *mut u32, ppschema: *mut *mut ::windows_core::GUID) -> ::windows_core::HRESULT, pub ReleaseData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintAsyncNotifyRegistration(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPrintAsyncNotifyRegistration, IPrintAsyncNotifyRegistration_Vtbl, 0x0f6f27b6_6f86_4591_9203_64c3bfadedfe); +::windows_core::imp::interface_hierarchy!(IPrintAsyncNotifyRegistration, ::windows_core::IUnknown); impl IPrintAsyncNotifyRegistration { pub unsafe fn RegisterForNotifications(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).RegisterForNotifications)(::windows_core::Interface::as_raw(self)).ok() @@ -3009,13 +2788,6 @@ impl IPrintAsyncNotifyRegistration { (::windows_core::Interface::vtable(self).UnregisterForNotifications)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IPrintAsyncNotifyRegistration, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintAsyncNotifyRegistration { - type Vtable = IPrintAsyncNotifyRegistration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintAsyncNotifyRegistration { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0f6f27b6_6f86_4591_9203_64c3bfadedfe); -} #[repr(C)] #[doc(hidden)] pub struct IPrintAsyncNotifyRegistration_Vtbl { @@ -3023,9 +2795,8 @@ pub struct IPrintAsyncNotifyRegistration_Vtbl { pub RegisterForNotifications: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub UnregisterForNotifications: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintAsyncNotifyServerReferral(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPrintAsyncNotifyServerReferral, IPrintAsyncNotifyServerReferral_Vtbl, 0); +::windows_core::imp::interface_hierarchy!(IPrintAsyncNotifyServerReferral, ::windows_core::IUnknown); impl IPrintAsyncNotifyServerReferral { pub unsafe fn GetServerReferral(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); @@ -3044,13 +2815,6 @@ impl IPrintAsyncNotifyServerReferral { (::windows_core::Interface::vtable(self).SetServerReferral)(::windows_core::Interface::as_raw(self), prmtserverreferral.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IPrintAsyncNotifyServerReferral, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintAsyncNotifyServerReferral { - type Vtable = IPrintAsyncNotifyServerReferral_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintAsyncNotifyServerReferral { - const IID: ::windows_core::GUID = ::windows_core::GUID::zeroed(); -} #[repr(C)] #[doc(hidden)] pub struct IPrintAsyncNotifyServerReferral_Vtbl { @@ -3059,9 +2823,8 @@ pub struct IPrintAsyncNotifyServerReferral_Vtbl { pub AsyncGetServerReferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetServerReferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prmtserverreferral: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintBidiAsyncNotifyRegistration(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPrintBidiAsyncNotifyRegistration, IPrintBidiAsyncNotifyRegistration_Vtbl, 0); +::windows_core::imp::interface_hierarchy!(IPrintBidiAsyncNotifyRegistration, ::windows_core::IUnknown, IPrintAsyncNotifyRegistration); impl IPrintBidiAsyncNotifyRegistration { pub unsafe fn RegisterForNotifications(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.RegisterForNotifications)(::windows_core::Interface::as_raw(self)).ok() @@ -3076,22 +2839,14 @@ impl IPrintBidiAsyncNotifyRegistration { (::windows_core::Interface::vtable(self).AsyncGetNewChannel)(::windows_core::Interface::as_raw(self), param0.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IPrintBidiAsyncNotifyRegistration, ::windows_core::IUnknown, IPrintAsyncNotifyRegistration); -unsafe impl ::windows_core::Interface for IPrintBidiAsyncNotifyRegistration { - type Vtable = IPrintBidiAsyncNotifyRegistration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintBidiAsyncNotifyRegistration { - const IID: ::windows_core::GUID = ::windows_core::GUID::zeroed(); -} #[repr(C)] #[doc(hidden)] pub struct IPrintBidiAsyncNotifyRegistration_Vtbl { pub base__: IPrintAsyncNotifyRegistration_Vtbl, pub AsyncGetNewChannel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintClassObjectFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPrintClassObjectFactory, IPrintClassObjectFactory_Vtbl, 0x9af593dd_9b02_48a8_9bad_69ace423f88b); +::windows_core::imp::interface_hierarchy!(IPrintClassObjectFactory, ::windows_core::IUnknown); 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 @@ -3100,22 +2855,14 @@ impl IPrintClassObjectFactory { (::windows_core::Interface::vtable(self).GetPrintClassObject)(::windows_core::Interface::as_raw(self), pszprintername.into_param().abi(), riid, ppnewobject).ok() } } -::windows_core::imp::interface_hierarchy!(IPrintClassObjectFactory, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintClassObjectFactory { - type Vtable = IPrintClassObjectFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintClassObjectFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9af593dd_9b02_48a8_9bad_69ace423f88b); -} #[repr(C)] #[doc(hidden)] pub struct IPrintClassObjectFactory_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetPrintClassObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszprintername: ::windows_core::PCWSTR, riid: *const ::windows_core::GUID, ppnewobject: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintCoreHelper(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPrintCoreHelper, IPrintCoreHelper_Vtbl, 0xa89ec53e_3905_49c6_9c1a_c0a88117fdb6); +::windows_core::imp::interface_hierarchy!(IPrintCoreHelper, ::windows_core::IUnknown); impl IPrintCoreHelper { #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] #[cfg(feature = "Win32_Graphics_Gdi")] @@ -3180,13 +2927,6 @@ impl IPrintCoreHelper { (::windows_core::Interface::vtable(self).CreateInstanceOfMSXMLObject)(::windows_core::Interface::as_raw(self), rclsid, punkouter.into_param().abi(), dwclscontext, riid, ppv).ok() } } -::windows_core::imp::interface_hierarchy!(IPrintCoreHelper, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintCoreHelper { - type Vtable = IPrintCoreHelper_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintCoreHelper { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa89ec53e_3905_49c6_9c1a_c0a88117fdb6); -} #[repr(C)] #[doc(hidden)] pub struct IPrintCoreHelper_Vtbl { @@ -3213,9 +2953,8 @@ pub struct IPrintCoreHelper_Vtbl { pub SetFontSubstitution: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psztruetypefontname: ::windows_core::PCWSTR, pszdevfontname: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub CreateInstanceOfMSXMLObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rclsid: *const ::windows_core::GUID, punkouter: *mut ::core::ffi::c_void, dwclscontext: u32, riid: *const ::windows_core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintCoreHelperPS(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPrintCoreHelperPS, IPrintCoreHelperPS_Vtbl, 0xc2c14f6f_95d3_4d63_96cf_6bd9e6c907c2); +::windows_core::imp::interface_hierarchy!(IPrintCoreHelperPS, ::windows_core::IUnknown, IPrintCoreHelper); impl IPrintCoreHelperPS { #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] #[cfg(feature = "Win32_Graphics_Gdi")] @@ -3301,13 +3040,6 @@ impl IPrintCoreHelperPS { (::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::imp::interface_hierarchy!(IPrintCoreHelperPS, ::windows_core::IUnknown, IPrintCoreHelper); -unsafe impl ::windows_core::Interface for IPrintCoreHelperPS { - type Vtable = IPrintCoreHelperPS_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintCoreHelperPS { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc2c14f6f_95d3_4d63_96cf_6bd9e6c907c2); -} #[repr(C)] #[doc(hidden)] pub struct IPrintCoreHelperPS_Vtbl { @@ -3316,9 +3048,8 @@ pub struct IPrintCoreHelperPS_Vtbl { pub GetFeatureAttribute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszfeaturekeyword: ::windows_core::PCSTR, pszattribute: ::windows_core::PCSTR, pdwdatatype: *mut u32, ppbdata: *mut *mut u8, pcbsize: *mut u32) -> ::windows_core::HRESULT, pub GetOptionAttribute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszfeaturekeyword: ::windows_core::PCSTR, pszoptionkeyword: ::windows_core::PCSTR, pszattribute: ::windows_core::PCSTR, pdwdatatype: *mut u32, ppbdata: *mut *mut u8, pcbsize: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintCoreHelperUni(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPrintCoreHelperUni, IPrintCoreHelperUni_Vtbl, 0x7e8e51d6_e5ee_4426_817b_958b9444eb79); +::windows_core::imp::interface_hierarchy!(IPrintCoreHelperUni, ::windows_core::IUnknown, IPrintCoreHelper); impl IPrintCoreHelperUni { #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] #[cfg(feature = "Win32_Graphics_Gdi")] @@ -3394,13 +3125,6 @@ impl IPrintCoreHelperUni { (::windows_core::Interface::vtable(self).CreateDefaultGDLSnapshot)(::windows_core::Interface::as_raw(self), dwflags, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IPrintCoreHelperUni, ::windows_core::IUnknown, IPrintCoreHelper); -unsafe impl ::windows_core::Interface for IPrintCoreHelperUni { - type Vtable = IPrintCoreHelperUni_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintCoreHelperUni { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7e8e51d6_e5ee_4426_817b_958b9444eb79); -} #[repr(C)] #[doc(hidden)] pub struct IPrintCoreHelperUni_Vtbl { @@ -3414,9 +3138,8 @@ pub struct IPrintCoreHelperUni_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] CreateDefaultGDLSnapshot: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintCoreHelperUni2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPrintCoreHelperUni2, IPrintCoreHelperUni2_Vtbl, 0x6c8afdfc_ead0_4d2d_8071_9bf0175a6c3a); +::windows_core::imp::interface_hierarchy!(IPrintCoreHelperUni2, ::windows_core::IUnknown, IPrintCoreHelper, IPrintCoreHelperUni); impl IPrintCoreHelperUni2 { #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] #[cfg(feature = "Win32_Graphics_Gdi")] @@ -3500,13 +3223,6 @@ impl IPrintCoreHelperUni2 { (::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::imp::interface_hierarchy!(IPrintCoreHelperUni2, ::windows_core::IUnknown, IPrintCoreHelper, IPrintCoreHelperUni); -unsafe impl ::windows_core::Interface for IPrintCoreHelperUni2 { - type Vtable = IPrintCoreHelperUni2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintCoreHelperUni2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6c8afdfc_ead0_4d2d_8071_9bf0175a6c3a); -} #[repr(C)] #[doc(hidden)] pub struct IPrintCoreHelperUni2_Vtbl { @@ -3516,9 +3232,8 @@ pub struct IPrintCoreHelperUni2_Vtbl { #[cfg(not(feature = "Win32_Graphics_Gdi"))] GetNamedCommand: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintCoreUI2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPrintCoreUI2, IPrintCoreUI2_Vtbl, 0x085ccfca_3adf_4c9e_b491_d851a6edc997); +::windows_core::imp::interface_hierarchy!(IPrintCoreUI2, ::windows_core::IUnknown, IPrintOemDriverUI); 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 @@ -3594,13 +3309,6 @@ impl IPrintCoreUI2 { (::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::imp::interface_hierarchy!(IPrintCoreUI2, ::windows_core::IUnknown, IPrintOemDriverUI); -unsafe impl ::windows_core::Interface for IPrintCoreUI2 { - type Vtable = IPrintCoreUI2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintCoreUI2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x085ccfca_3adf_4c9e_b491_d851a6edc997); -} #[repr(C)] #[doc(hidden)] pub struct IPrintCoreUI2_Vtbl { @@ -3616,9 +3324,8 @@ pub struct IPrintCoreUI2_Vtbl { pub EnumOptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, poemuiobj: *const OEMUIOBJ, dwflags: u32, pszfeaturekeyword: ::windows_core::PCSTR, pmszoptionlist: ::windows_core::PSTR, cbsize: u32, pcbneeded: *mut u32) -> ::windows_core::HRESULT, pub QuerySimulationSupport: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hprinter: super::super::Foundation::HANDLE, dwlevel: u32, pcaps: *mut u8, cbsize: u32, pcbneeded: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintJob(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPrintJob, IPrintJob_Vtbl, 0xb771dab8_1282_41b7_858c_f206e4d20577); +::windows_core::imp::interface_hierarchy!(IPrintJob, ::windows_core::IUnknown); impl IPrintJob { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -3648,13 +3355,6 @@ impl IPrintJob { (::windows_core::Interface::vtable(self).RequestCancel)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IPrintJob, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintJob { - type Vtable = IPrintJob_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintJob { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb771dab8_1282_41b7_858c_f206e4d20577); -} #[repr(C)] #[doc(hidden)] pub struct IPrintJob_Vtbl { @@ -3667,11 +3367,15 @@ pub struct IPrintJob_Vtbl { pub SubmissionTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psubmissiontime: *mut f64) -> ::windows_core::HRESULT, pub RequestCancel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintJobCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IPrintJobCollection, + IPrintJobCollection_Vtbl, + 0x72b82a24_a598_4e87_895f_cdb23a49e9dc +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IPrintJobCollection, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IPrintJobCollection { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -3688,16 +3392,6 @@ impl IPrintJobCollection { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IPrintJobCollection, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IPrintJobCollection { - type Vtable = IPrintJobCollection_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IPrintJobCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x72b82a24_a598_4e87_895f_cdb23a49e9dc); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IPrintJobCollection_Vtbl { @@ -3706,9 +3400,8 @@ pub struct IPrintJobCollection_Vtbl { pub GetAt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulindex: u32, ppjob: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppunk: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintOemCommon(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPrintOemCommon, IPrintOemCommon_Vtbl, 0x7f42285e_91d5_11d1_8820_00c04fb961ec); +::windows_core::imp::interface_hierarchy!(IPrintOemCommon, ::windows_core::IUnknown); impl IPrintOemCommon { pub unsafe fn GetInfo(&self, dwmode: u32, pbuffer: *mut ::core::ffi::c_void, cbsize: u32, pcbneeded: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetInfo)(::windows_core::Interface::as_raw(self), dwmode, pbuffer, cbsize, pcbneeded).ok() @@ -3719,13 +3412,6 @@ impl IPrintOemCommon { (::windows_core::Interface::vtable(self).DevMode)(::windows_core::Interface::as_raw(self), dwmode, poemdmparam).ok() } } -::windows_core::imp::interface_hierarchy!(IPrintOemCommon, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintOemCommon { - type Vtable = IPrintOemCommon_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintOemCommon { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7f42285e_91d5_11d1_8820_00c04fb961ec); -} #[repr(C)] #[doc(hidden)] pub struct IPrintOemCommon_Vtbl { @@ -3736,9 +3422,8 @@ pub struct IPrintOemCommon_Vtbl { #[cfg(not(feature = "Win32_Graphics_Gdi"))] DevMode: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintOemDriverUI(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPrintOemDriverUI, IPrintOemDriverUI_Vtbl, 0x92b05d50_78bc_11d1_9480_00a0c90640b8); +::windows_core::imp::interface_hierarchy!(IPrintOemDriverUI, ::windows_core::IUnknown); 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 @@ -3758,13 +3443,6 @@ impl IPrintOemDriverUI { (::windows_core::Interface::vtable(self).DrvUpdateUISetting)(::windows_core::Interface::as_raw(self), pci, poptitem, dwpreviousselection, dwmode).ok() } } -::windows_core::imp::interface_hierarchy!(IPrintOemDriverUI, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintOemDriverUI { - type Vtable = IPrintOemDriverUI_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintOemDriverUI { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x92b05d50_78bc_11d1_9480_00a0c90640b8); -} #[repr(C)] #[doc(hidden)] pub struct IPrintOemDriverUI_Vtbl { @@ -3773,9 +3451,8 @@ pub struct IPrintOemDriverUI_Vtbl { pub DrvUpgradeRegistrySetting: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hprinter: super::super::Foundation::HANDLE, pfeature: ::windows_core::PCSTR, poption: ::windows_core::PCSTR) -> ::windows_core::HRESULT, pub DrvUpdateUISetting: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pci: *mut ::core::ffi::c_void, poptitem: *mut ::core::ffi::c_void, dwpreviousselection: u32, dwmode: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintOemUI(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPrintOemUI, IPrintOemUI_Vtbl, 0xc6a7a9d0_774c_11d1_947f_00a0c90640b8); +::windows_core::imp::interface_hierarchy!(IPrintOemUI, ::windows_core::IUnknown, IPrintOemCommon); impl IPrintOemUI { pub unsafe fn GetInfo(&self, dwmode: u32, pbuffer: *mut ::core::ffi::c_void, cbsize: u32, pcbneeded: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.GetInfo)(::windows_core::Interface::as_raw(self), dwmode, pbuffer, cbsize, pcbneeded).ok() @@ -3863,13 +3540,6 @@ impl IPrintOemUI { (::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::imp::interface_hierarchy!(IPrintOemUI, ::windows_core::IUnknown, IPrintOemCommon); -unsafe impl ::windows_core::Interface for IPrintOemUI { - type Vtable = IPrintOemUI_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintOemUI { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc6a7a9d0_774c_11d1_947f_00a0c90640b8); -} #[repr(C)] #[doc(hidden)] pub struct IPrintOemUI_Vtbl { @@ -3899,9 +3569,8 @@ pub struct IPrintOemUI_Vtbl { pub FontInstallerDlgProc: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwnd: super::super::Foundation::HWND, usmsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> ::windows_core::HRESULT, pub UpdateExternalFonts: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hprinter: super::super::Foundation::HANDLE, hheap: super::super::Foundation::HANDLE, pwstrcartridges: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintOemUI2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPrintOemUI2, IPrintOemUI2_Vtbl, 0x292515f9_b54b_489b_9275_bab56821395e); +::windows_core::imp::interface_hierarchy!(IPrintOemUI2, ::windows_core::IUnknown, IPrintOemCommon, IPrintOemUI); impl IPrintOemUI2 { pub unsafe fn GetInfo(&self, dwmode: u32, pbuffer: *mut ::core::ffi::c_void, cbsize: u32, pcbneeded: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.GetInfo)(::windows_core::Interface::as_raw(self), dwmode, pbuffer, cbsize, pcbneeded).ok() @@ -4009,13 +3678,6 @@ impl IPrintOemUI2 { (::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::imp::interface_hierarchy!(IPrintOemUI2, ::windows_core::IUnknown, IPrintOemCommon, IPrintOemUI); -unsafe impl ::windows_core::Interface for IPrintOemUI2 { - type Vtable = IPrintOemUI2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintOemUI2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x292515f9_b54b_489b_9275_bab56821395e); -} #[repr(C)] #[doc(hidden)] pub struct IPrintOemUI2_Vtbl { @@ -4030,9 +3692,8 @@ pub struct IPrintOemUI2_Vtbl { #[cfg(not(feature = "Win32_Graphics_Gdi"))] DocumentEvent: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintOemUIMXDC(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPrintOemUIMXDC, IPrintOemUIMXDC_Vtbl, 0x7349d725_e2c1_4dca_afb5_c13e91bc9306); +::windows_core::imp::interface_hierarchy!(IPrintOemUIMXDC, ::windows_core::IUnknown); impl IPrintOemUIMXDC { #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] #[cfg(feature = "Win32_Graphics_Gdi")] @@ -4059,13 +3720,6 @@ impl IPrintOemUIMXDC { (::windows_core::Interface::vtable(self).AdjustDPI)(::windows_core::Interface::as_raw(self), hprinter.into_param().abi(), cbdevmode, pdevmode, cboemdm, poemdm, pdpi).ok() } } -::windows_core::imp::interface_hierarchy!(IPrintOemUIMXDC, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintOemUIMXDC { - type Vtable = IPrintOemUIMXDC_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintOemUIMXDC { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7349d725_e2c1_4dca_afb5_c13e91bc9306); -} #[repr(C)] #[doc(hidden)] pub struct IPrintOemUIMXDC_Vtbl { @@ -4083,9 +3737,8 @@ pub struct IPrintOemUIMXDC_Vtbl { #[cfg(not(feature = "Win32_Graphics_Gdi"))] AdjustDPI: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintPipelineFilter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPrintPipelineFilter, IPrintPipelineFilter_Vtbl, 0xcdb62fc0_8bed_434e_86fb_a2cae55f19ea); +::windows_core::imp::interface_hierarchy!(IPrintPipelineFilter, ::windows_core::IUnknown); impl IPrintPipelineFilter { pub unsafe fn InitializeFilter(&self, pinegotiation: P0, pipropertybag: P1, pipipelinecontrol: P2) -> ::windows_core::Result<()> where @@ -4102,13 +3755,6 @@ impl IPrintPipelineFilter { (::windows_core::Interface::vtable(self).StartOperation)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IPrintPipelineFilter, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintPipelineFilter { - type Vtable = IPrintPipelineFilter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintPipelineFilter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcdb62fc0_8bed_434e_86fb_a2cae55f19ea); -} #[repr(C)] #[doc(hidden)] pub struct IPrintPipelineFilter_Vtbl { @@ -4117,9 +3763,8 @@ pub struct IPrintPipelineFilter_Vtbl { pub ShutdownOperation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub StartOperation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintPipelineManagerControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPrintPipelineManagerControl, IPrintPipelineManagerControl_Vtbl, 0xaa3e4910_5889_4681_91ef_823ad4ed4e44); +::windows_core::imp::interface_hierarchy!(IPrintPipelineManagerControl, ::windows_core::IUnknown); impl IPrintPipelineManagerControl { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -4133,13 +3778,6 @@ impl IPrintPipelineManagerControl { (::windows_core::Interface::vtable(self).FilterFinished)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IPrintPipelineManagerControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintPipelineManagerControl { - type Vtable = IPrintPipelineManagerControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintPipelineManagerControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaa3e4910_5889_4681_91ef_823ad4ed4e44); -} #[repr(C)] #[doc(hidden)] pub struct IPrintPipelineManagerControl_Vtbl { @@ -4150,30 +3788,21 @@ pub struct IPrintPipelineManagerControl_Vtbl { RequestShutdown: usize, pub FilterFinished: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintPipelineProgressReport(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPrintPipelineProgressReport, IPrintPipelineProgressReport_Vtbl, 0xedc12c7c_ed40_4ea5_96a6_5e4397497a61); +::windows_core::imp::interface_hierarchy!(IPrintPipelineProgressReport, ::windows_core::IUnknown); impl IPrintPipelineProgressReport { pub unsafe fn ReportProgress(&self, update: EXpsJobConsumption) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).ReportProgress)(::windows_core::Interface::as_raw(self), update).ok() } } -::windows_core::imp::interface_hierarchy!(IPrintPipelineProgressReport, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintPipelineProgressReport { - type Vtable = IPrintPipelineProgressReport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintPipelineProgressReport { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xedc12c7c_ed40_4ea5_96a6_5e4397497a61); -} #[repr(C)] #[doc(hidden)] pub struct IPrintPipelineProgressReport_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub ReportProgress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, update: EXpsJobConsumption) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintPipelinePropertyBag(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPrintPipelinePropertyBag, IPrintPipelinePropertyBag_Vtbl, 0x8b8c99dc_7892_4a95_8a04_57422e9fbb47); +::windows_core::imp::interface_hierarchy!(IPrintPipelinePropertyBag, ::windows_core::IUnknown); impl IPrintPipelinePropertyBag { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -4199,13 +3828,6 @@ impl IPrintPipelinePropertyBag { (::windows_core::Interface::vtable(self).DeleteProperty)(::windows_core::Interface::as_raw(self), pszname.into_param().abi()) } } -::windows_core::imp::interface_hierarchy!(IPrintPipelinePropertyBag, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintPipelinePropertyBag { - type Vtable = IPrintPipelinePropertyBag_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintPipelinePropertyBag { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8b8c99dc_7892_4a95_8a04_57422e9fbb47); -} #[repr(C)] #[doc(hidden)] pub struct IPrintPipelinePropertyBag_Vtbl { @@ -4220,9 +3842,8 @@ pub struct IPrintPipelinePropertyBag_Vtbl { GetProperty: usize, pub DeleteProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszname: ::windows_core::PCWSTR) -> super::super::Foundation::BOOL, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintPreviewDxgiPackageTarget(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPrintPreviewDxgiPackageTarget, IPrintPreviewDxgiPackageTarget_Vtbl, 0x1a6dd0ad_1e2a_4e99_a5ba_91f17818290e); +::windows_core::imp::interface_hierarchy!(IPrintPreviewDxgiPackageTarget, ::windows_core::IUnknown); impl IPrintPreviewDxgiPackageTarget { pub unsafe fn SetJobPageCount(&self, counttype: PageCountType, count: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetJobPageCount)(::windows_core::Interface::as_raw(self), counttype, count).ok() @@ -4239,13 +3860,6 @@ impl IPrintPreviewDxgiPackageTarget { (::windows_core::Interface::vtable(self).InvalidatePreview)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IPrintPreviewDxgiPackageTarget, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintPreviewDxgiPackageTarget { - type Vtable = IPrintPreviewDxgiPackageTarget_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintPreviewDxgiPackageTarget { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1a6dd0ad_1e2a_4e99_a5ba_91f17818290e); -} #[repr(C)] #[doc(hidden)] pub struct IPrintPreviewDxgiPackageTarget_Vtbl { @@ -4257,9 +3871,8 @@ pub struct IPrintPreviewDxgiPackageTarget_Vtbl { DrawPage: usize, pub InvalidatePreview: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintReadStream(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPrintReadStream, IPrintReadStream_Vtbl, 0x4d47a67c_66cc_4430_850e_daf466fe5bc4); +::windows_core::imp::interface_hierarchy!(IPrintReadStream, ::windows_core::IUnknown); impl IPrintReadStream { pub unsafe fn Seek(&self, dlibmove: i64, dworigin: u32, plibnewposition: ::core::option::Option<*mut u64>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Seek)(::windows_core::Interface::as_raw(self), dlibmove, dworigin, ::core::mem::transmute(plibnewposition.unwrap_or(::std::ptr::null_mut()))).ok() @@ -4268,13 +3881,6 @@ impl IPrintReadStream { (::windows_core::Interface::vtable(self).ReadBytes)(::windows_core::Interface::as_raw(self), pvbuffer, cbrequested, pcbread, pbendoffile).ok() } } -::windows_core::imp::interface_hierarchy!(IPrintReadStream, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintReadStream { - type Vtable = IPrintReadStream_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintReadStream { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4d47a67c_66cc_4430_850e_daf466fe5bc4); -} #[repr(C)] #[doc(hidden)] pub struct IPrintReadStream_Vtbl { @@ -4282,33 +3888,29 @@ pub struct IPrintReadStream_Vtbl { pub Seek: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dlibmove: i64, dworigin: u32, plibnewposition: *mut u64) -> ::windows_core::HRESULT, pub ReadBytes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvbuffer: *mut ::core::ffi::c_void, cbrequested: u32, pcbread: *mut u32, pbendoffile: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintReadStreamFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPrintReadStreamFactory, IPrintReadStreamFactory_Vtbl, 0xacb971e3_df8d_4fc2_bee6_0609d15f3cf9); +::windows_core::imp::interface_hierarchy!(IPrintReadStreamFactory, ::windows_core::IUnknown); impl IPrintReadStreamFactory { pub unsafe fn GetStream(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetStream)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IPrintReadStreamFactory, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintReadStreamFactory { - type Vtable = IPrintReadStreamFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintReadStreamFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xacb971e3_df8d_4fc2_bee6_0609d15f3cf9); -} #[repr(C)] #[doc(hidden)] pub struct IPrintReadStreamFactory_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppstream: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintSchemaAsyncOperation(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IPrintSchemaAsyncOperation, + IPrintSchemaAsyncOperation_Vtbl, + 0x143c8dcb_d37f_47f7_88e8_6b1d21f2c5f7 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IPrintSchemaAsyncOperation, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IPrintSchemaAsyncOperation { pub unsafe fn Start(&self) -> ::windows_core::Result<()> { @@ -4319,16 +3921,6 @@ impl IPrintSchemaAsyncOperation { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IPrintSchemaAsyncOperation, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IPrintSchemaAsyncOperation { - type Vtable = IPrintSchemaAsyncOperation_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IPrintSchemaAsyncOperation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x143c8dcb_d37f_47f7_88e8_6b1d21f2c5f7); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IPrintSchemaAsyncOperation_Vtbl { @@ -4336,11 +3928,15 @@ pub struct IPrintSchemaAsyncOperation_Vtbl { pub Start: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Cancel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintSchemaAsyncOperationEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IPrintSchemaAsyncOperationEvent, + IPrintSchemaAsyncOperationEvent_Vtbl, + 0x23adbb16_0133_4906_b29a_1dce1d026379 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IPrintSchemaAsyncOperationEvent, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IPrintSchemaAsyncOperationEvent { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -4353,16 +3949,6 @@ impl IPrintSchemaAsyncOperationEvent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IPrintSchemaAsyncOperationEvent, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IPrintSchemaAsyncOperationEvent { - type Vtable = IPrintSchemaAsyncOperationEvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IPrintSchemaAsyncOperationEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x23adbb16_0133_4906_b29a_1dce1d026379); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IPrintSchemaAsyncOperationEvent_Vtbl { @@ -4372,11 +3958,15 @@ pub struct IPrintSchemaAsyncOperationEvent_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Completed: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintSchemaCapabilities(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IPrintSchemaCapabilities, + IPrintSchemaCapabilities_Vtbl, + 0x5a577640_501d_4927_bcd0_5ef57a7ed175 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IPrintSchemaCapabilities, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IPrintSchemaElement); #[cfg(feature = "Win32_System_Com")] impl IPrintSchemaCapabilities { pub unsafe fn XmlNode(&self) -> ::windows_core::Result<::windows_core::IUnknown> { @@ -4444,16 +4034,6 @@ impl IPrintSchemaCapabilities { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IPrintSchemaCapabilities, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IPrintSchemaElement); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IPrintSchemaCapabilities { - type Vtable = IPrintSchemaCapabilities_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IPrintSchemaCapabilities { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5a577640_501d_4927_bcd0_5ef57a7ed175); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IPrintSchemaCapabilities_Vtbl { @@ -4481,11 +4061,15 @@ pub struct IPrintSchemaCapabilities_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetOptions: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintSchemaCapabilities2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IPrintSchemaCapabilities2, + IPrintSchemaCapabilities2_Vtbl, + 0xb58845f4_9970_4d87_a636_169fb82ed642 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IPrintSchemaCapabilities2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IPrintSchemaElement, IPrintSchemaCapabilities); #[cfg(feature = "Win32_System_Com")] impl IPrintSchemaCapabilities2 { pub unsafe fn XmlNode(&self) -> ::windows_core::Result<::windows_core::IUnknown> { @@ -4563,16 +4147,6 @@ impl IPrintSchemaCapabilities2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IPrintSchemaCapabilities2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IPrintSchemaElement, IPrintSchemaCapabilities); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IPrintSchemaCapabilities2 { - type Vtable = IPrintSchemaCapabilities2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IPrintSchemaCapabilities2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb58845f4_9970_4d87_a636_169fb82ed642); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IPrintSchemaCapabilities2_Vtbl { @@ -4582,11 +4156,15 @@ pub struct IPrintSchemaCapabilities2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetParameterDefinition: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintSchemaDisplayableElement(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IPrintSchemaDisplayableElement, + IPrintSchemaDisplayableElement_Vtbl, + 0xaf45af49_d6aa_407d_bf87_3912236e9d94 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IPrintSchemaDisplayableElement, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IPrintSchemaElement); #[cfg(feature = "Win32_System_Com")] impl IPrintSchemaDisplayableElement { pub unsafe fn XmlNode(&self) -> ::windows_core::Result<::windows_core::IUnknown> { @@ -4607,27 +4185,21 @@ impl IPrintSchemaDisplayableElement { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IPrintSchemaDisplayableElement, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IPrintSchemaElement); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IPrintSchemaDisplayableElement { - type Vtable = IPrintSchemaDisplayableElement_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IPrintSchemaDisplayableElement { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaf45af49_d6aa_407d_bf87_3912236e9d94); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IPrintSchemaDisplayableElement_Vtbl { pub base__: IPrintSchemaElement_Vtbl, pub DisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdisplayname: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintSchemaElement(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IPrintSchemaElement, + IPrintSchemaElement_Vtbl, + 0x724c1646_e64b_4bbf_8eb4_d45e4fd580da +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IPrintSchemaElement, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IPrintSchemaElement { pub unsafe fn XmlNode(&self) -> ::windows_core::Result<::windows_core::IUnknown> { @@ -4644,16 +4216,6 @@ impl IPrintSchemaElement { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IPrintSchemaElement, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IPrintSchemaElement { - type Vtable = IPrintSchemaElement_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IPrintSchemaElement { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x724c1646_e64b_4bbf_8eb4_d45e4fd580da); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IPrintSchemaElement_Vtbl { @@ -4662,11 +4224,15 @@ pub struct IPrintSchemaElement_Vtbl { pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub NamespaceUri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrnamespaceuri: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintSchemaFeature(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IPrintSchemaFeature, + IPrintSchemaFeature_Vtbl, + 0xef189461_5d62_4626_8e57_ff83583c4826 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IPrintSchemaFeature, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IPrintSchemaElement, IPrintSchemaDisplayableElement); #[cfg(feature = "Win32_System_Com")] impl IPrintSchemaFeature { pub unsafe fn XmlNode(&self) -> ::windows_core::Result<::windows_core::IUnknown> { @@ -4719,16 +4285,6 @@ impl IPrintSchemaFeature { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IPrintSchemaFeature, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IPrintSchemaElement, IPrintSchemaDisplayableElement); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IPrintSchemaFeature { - type Vtable = IPrintSchemaFeature_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IPrintSchemaFeature { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xef189461_5d62_4626_8e57_ff83583c4826); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IPrintSchemaFeature_Vtbl { @@ -4748,11 +4304,15 @@ pub struct IPrintSchemaFeature_Vtbl { GetOption: usize, pub DisplayUI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbshow: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintSchemaNUpOption(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IPrintSchemaNUpOption, + IPrintSchemaNUpOption_Vtbl, + 0x1f6342f2_d848_42e3_8995_c10a9ef9a3ba +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IPrintSchemaNUpOption, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IPrintSchemaElement, IPrintSchemaDisplayableElement, IPrintSchemaOption); #[cfg(feature = "Win32_System_Com")] impl IPrintSchemaNUpOption { pub unsafe fn XmlNode(&self) -> ::windows_core::Result<::windows_core::IUnknown> { @@ -4793,27 +4353,21 @@ impl IPrintSchemaNUpOption { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IPrintSchemaNUpOption, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IPrintSchemaElement, IPrintSchemaDisplayableElement, IPrintSchemaOption); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IPrintSchemaNUpOption { - type Vtable = IPrintSchemaNUpOption_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IPrintSchemaNUpOption { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1f6342f2_d848_42e3_8995_c10a9ef9a3ba); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IPrintSchemaNUpOption_Vtbl { pub base__: IPrintSchemaOption_Vtbl, pub PagesPerSheet: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pulpagespersheet: *mut u32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintSchemaOption(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IPrintSchemaOption, + IPrintSchemaOption_Vtbl, + 0x66bb2f51_5844_4997_8d70_4b7cc221cf92 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IPrintSchemaOption, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IPrintSchemaElement, IPrintSchemaDisplayableElement); #[cfg(feature = "Win32_System_Com")] impl IPrintSchemaOption { pub unsafe fn XmlNode(&self) -> ::windows_core::Result<::windows_core::IUnknown> { @@ -4850,16 +4404,6 @@ impl IPrintSchemaOption { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IPrintSchemaOption, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IPrintSchemaElement, IPrintSchemaDisplayableElement); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IPrintSchemaOption { - type Vtable = IPrintSchemaOption_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IPrintSchemaOption { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x66bb2f51_5844_4997_8d70_4b7cc221cf92); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IPrintSchemaOption_Vtbl { @@ -4868,11 +4412,15 @@ pub struct IPrintSchemaOption_Vtbl { pub Constrained: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psetting: *mut PrintSchemaConstrainedSetting) -> ::windows_core::HRESULT, pub GetPropertyValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstrnamespaceuri: ::std::mem::MaybeUninit<::windows_core::BSTR>, ppxmlvaluenode: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintSchemaOptionCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IPrintSchemaOptionCollection, + IPrintSchemaOptionCollection_Vtbl, + 0xbaecb0bd_a946_4771_bc30_e8b24f8d45c1 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IPrintSchemaOptionCollection, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IPrintSchemaOptionCollection { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -4891,16 +4439,6 @@ impl IPrintSchemaOptionCollection { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IPrintSchemaOptionCollection, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IPrintSchemaOptionCollection { - type Vtable = IPrintSchemaOptionCollection_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IPrintSchemaOptionCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbaecb0bd_a946_4771_bc30_e8b24f8d45c1); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IPrintSchemaOptionCollection_Vtbl { @@ -4912,11 +4450,15 @@ pub struct IPrintSchemaOptionCollection_Vtbl { GetAt: usize, pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppunk: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintSchemaPageImageableSize(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IPrintSchemaPageImageableSize, + IPrintSchemaPageImageableSize_Vtbl, + 0x7c85bf5e_dc7c_4f61_839b_4107e1c9b68e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IPrintSchemaPageImageableSize, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IPrintSchemaElement); #[cfg(feature = "Win32_System_Com")] impl IPrintSchemaPageImageableSize { pub unsafe fn XmlNode(&self) -> ::windows_core::Result<::windows_core::IUnknown> { @@ -4957,16 +4499,6 @@ impl IPrintSchemaPageImageableSize { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IPrintSchemaPageImageableSize, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IPrintSchemaElement); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IPrintSchemaPageImageableSize { - type Vtable = IPrintSchemaPageImageableSize_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IPrintSchemaPageImageableSize { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7c85bf5e_dc7c_4f61_839b_4107e1c9b68e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IPrintSchemaPageImageableSize_Vtbl { @@ -4978,11 +4510,15 @@ pub struct IPrintSchemaPageImageableSize_Vtbl { pub ExtentWidthInMicrons: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pulextentwidth: *mut u32) -> ::windows_core::HRESULT, pub ExtentHeightInMicrons: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pulextentheight: *mut u32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintSchemaPageMediaSizeOption(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IPrintSchemaPageMediaSizeOption, + IPrintSchemaPageMediaSizeOption_Vtbl, + 0x68746729_f493_4830_a10f_69028774605d +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IPrintSchemaPageMediaSizeOption, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IPrintSchemaElement, IPrintSchemaDisplayableElement, IPrintSchemaOption); #[cfg(feature = "Win32_System_Com")] impl IPrintSchemaPageMediaSizeOption { pub unsafe fn XmlNode(&self) -> ::windows_core::Result<::windows_core::IUnknown> { @@ -5027,16 +4563,6 @@ impl IPrintSchemaPageMediaSizeOption { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IPrintSchemaPageMediaSizeOption, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IPrintSchemaElement, IPrintSchemaDisplayableElement, IPrintSchemaOption); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IPrintSchemaPageMediaSizeOption { - type Vtable = IPrintSchemaPageMediaSizeOption_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IPrintSchemaPageMediaSizeOption { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x68746729_f493_4830_a10f_69028774605d); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IPrintSchemaPageMediaSizeOption_Vtbl { @@ -5044,11 +4570,15 @@ pub struct IPrintSchemaPageMediaSizeOption_Vtbl { pub WidthInMicrons: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pulwidth: *mut u32) -> ::windows_core::HRESULT, pub HeightInMicrons: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pulheight: *mut u32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintSchemaParameterDefinition(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IPrintSchemaParameterDefinition, + IPrintSchemaParameterDefinition_Vtbl, + 0xb5ade81e_0e61_4fe1_81c6_c333e4ffe0f1 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IPrintSchemaParameterDefinition, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IPrintSchemaElement, IPrintSchemaDisplayableElement); #[cfg(feature = "Win32_System_Com")] impl IPrintSchemaParameterDefinition { pub unsafe fn XmlNode(&self) -> ::windows_core::Result<::windows_core::IUnknown> { @@ -5089,16 +4619,6 @@ impl IPrintSchemaParameterDefinition { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IPrintSchemaParameterDefinition, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IPrintSchemaElement, IPrintSchemaDisplayableElement); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IPrintSchemaParameterDefinition { - type Vtable = IPrintSchemaParameterDefinition_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IPrintSchemaParameterDefinition { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb5ade81e_0e61_4fe1_81c6_c333e4ffe0f1); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IPrintSchemaParameterDefinition_Vtbl { @@ -5109,11 +4629,15 @@ pub struct IPrintSchemaParameterDefinition_Vtbl { pub RangeMin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prangemin: *mut i32) -> ::windows_core::HRESULT, pub RangeMax: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prangemax: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintSchemaParameterInitializer(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IPrintSchemaParameterInitializer, + IPrintSchemaParameterInitializer_Vtbl, + 0x52027082_0b74_4648_9564_828cc6cb656c +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IPrintSchemaParameterInitializer, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IPrintSchemaElement); #[cfg(feature = "Win32_System_Com")] impl IPrintSchemaParameterInitializer { pub unsafe fn XmlNode(&self) -> ::windows_core::Result<::windows_core::IUnknown> { @@ -5141,16 +4665,6 @@ impl IPrintSchemaParameterInitializer { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IPrintSchemaParameterInitializer, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IPrintSchemaElement); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IPrintSchemaParameterInitializer { - type Vtable = IPrintSchemaParameterInitializer_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IPrintSchemaParameterInitializer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x52027082_0b74_4648_9564_828cc6cb656c); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IPrintSchemaParameterInitializer_Vtbl { @@ -5164,11 +4678,15 @@ pub struct IPrintSchemaParameterInitializer_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] SetValue: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintSchemaTicket(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IPrintSchemaTicket, + IPrintSchemaTicket_Vtbl, + 0xe480b861_4708_4e6d_a5b4_a2b4eeb9baa4 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IPrintSchemaTicket, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IPrintSchemaElement); #[cfg(feature = "Win32_System_Com")] impl IPrintSchemaTicket { pub unsafe fn XmlNode(&self) -> ::windows_core::Result<::windows_core::IUnknown> { @@ -5235,16 +4753,6 @@ impl IPrintSchemaTicket { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IPrintSchemaTicket, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IPrintSchemaElement); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IPrintSchemaTicket { - type Vtable = IPrintSchemaTicket_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IPrintSchemaTicket { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe480b861_4708_4e6d_a5b4_a2b4eeb9baa4); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IPrintSchemaTicket_Vtbl { @@ -5273,11 +4781,15 @@ pub struct IPrintSchemaTicket_Vtbl { pub JobCopiesAllDocuments: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, puljobcopiesalldocuments: *mut u32) -> ::windows_core::HRESULT, pub SetJobCopiesAllDocuments: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uljobcopiesalldocuments: u32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintSchemaTicket2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IPrintSchemaTicket2, + IPrintSchemaTicket2_Vtbl, + 0x2ec1f844_766a_47a1_91f4_2eeb6190f80c +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IPrintSchemaTicket2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IPrintSchemaElement, IPrintSchemaTicket); #[cfg(feature = "Win32_System_Com")] impl IPrintSchemaTicket2 { pub unsafe fn XmlNode(&self) -> ::windows_core::Result<::windows_core::IUnknown> { @@ -5354,16 +4866,6 @@ impl IPrintSchemaTicket2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IPrintSchemaTicket2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IPrintSchemaElement, IPrintSchemaTicket); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IPrintSchemaTicket2 { - type Vtable = IPrintSchemaTicket2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IPrintSchemaTicket2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2ec1f844_766a_47a1_91f4_2eeb6190f80c); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IPrintSchemaTicket2_Vtbl { @@ -5373,9 +4875,8 @@ pub struct IPrintSchemaTicket2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetParameterInitializer: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintTicketProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPrintTicketProvider, IPrintTicketProvider_Vtbl, 0xbb5116db_0a23_4c3a_a6b6_89e5558dfb5d); +::windows_core::imp::interface_hierarchy!(IPrintTicketProvider, ::windows_core::IUnknown); impl IPrintTicketProvider { pub unsafe fn GetSupportedVersions(&self, hprinter: P0, ppversions: *mut *mut i32, cversions: *mut i32) -> ::windows_core::Result<()> where @@ -5426,13 +4927,6 @@ impl IPrintTicketProvider { (::windows_core::Interface::vtable(self).ValidatePrintTicket)(::windows_core::Interface::as_raw(self), pbaseticket.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IPrintTicketProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintTicketProvider { - type Vtable = IPrintTicketProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintTicketProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbb5116db_0a23_4c3a_a6b6_89e5558dfb5d); -} #[repr(C)] #[doc(hidden)] pub struct IPrintTicketProvider_Vtbl { @@ -5457,9 +4951,8 @@ pub struct IPrintTicketProvider_Vtbl { #[cfg(not(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_System_Com")))] ValidatePrintTicket: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintTicketProvider2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPrintTicketProvider2, IPrintTicketProvider2_Vtbl, 0xb8a70ab2_3dfc_4fec_a074_511b13c651cb); +::windows_core::imp::interface_hierarchy!(IPrintTicketProvider2, ::windows_core::IUnknown, IPrintTicketProvider); impl IPrintTicketProvider2 { pub unsafe fn GetSupportedVersions(&self, hprinter: P0, ppversions: *mut *mut i32, cversions: *mut i32) -> ::windows_core::Result<()> where @@ -5529,13 +5022,6 @@ impl IPrintTicketProvider2 { (::windows_core::Interface::vtable(self).GetPrintDeviceResources)(::windows_core::Interface::as_raw(self), pszlocalename.into_param().abi(), pprintticket.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IPrintTicketProvider2, ::windows_core::IUnknown, IPrintTicketProvider); -unsafe impl ::windows_core::Interface for IPrintTicketProvider2 { - type Vtable = IPrintTicketProvider2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintTicketProvider2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb8a70ab2_3dfc_4fec_a074_511b13c651cb); -} #[repr(C)] #[doc(hidden)] pub struct IPrintTicketProvider2_Vtbl { @@ -5549,9 +5035,8 @@ pub struct IPrintTicketProvider2_Vtbl { #[cfg(not(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_System_Com")))] GetPrintDeviceResources: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintUnidiAsyncNotifyRegistration(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPrintUnidiAsyncNotifyRegistration, IPrintUnidiAsyncNotifyRegistration_Vtbl, 0); +::windows_core::imp::interface_hierarchy!(IPrintUnidiAsyncNotifyRegistration, ::windows_core::IUnknown, IPrintAsyncNotifyRegistration); impl IPrintUnidiAsyncNotifyRegistration { pub unsafe fn RegisterForNotifications(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.RegisterForNotifications)(::windows_core::Interface::as_raw(self)).ok() @@ -5566,22 +5051,14 @@ impl IPrintUnidiAsyncNotifyRegistration { (::windows_core::Interface::vtable(self).AsyncGetNotification)(::windows_core::Interface::as_raw(self), param0.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IPrintUnidiAsyncNotifyRegistration, ::windows_core::IUnknown, IPrintAsyncNotifyRegistration); -unsafe impl ::windows_core::Interface for IPrintUnidiAsyncNotifyRegistration { - type Vtable = IPrintUnidiAsyncNotifyRegistration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintUnidiAsyncNotifyRegistration { - const IID: ::windows_core::GUID = ::windows_core::GUID::zeroed(); -} #[repr(C)] #[doc(hidden)] pub struct IPrintUnidiAsyncNotifyRegistration_Vtbl { pub base__: IPrintAsyncNotifyRegistration_Vtbl, pub AsyncGetNotification: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintWriteStream(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPrintWriteStream, IPrintWriteStream_Vtbl, 0x65bb7f1b_371e_4571_8ac7_912f510c1a38); +::windows_core::imp::interface_hierarchy!(IPrintWriteStream, ::windows_core::IUnknown); impl IPrintWriteStream { pub unsafe fn WriteBytes(&self, pvbuffer: *const ::core::ffi::c_void, cbbuffer: u32) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -5591,13 +5068,6 @@ impl IPrintWriteStream { (::windows_core::Interface::vtable(self).Close)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(IPrintWriteStream, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintWriteStream { - type Vtable = IPrintWriteStream_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintWriteStream { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x65bb7f1b_371e_4571_8ac7_912f510c1a38); -} #[repr(C)] #[doc(hidden)] pub struct IPrintWriteStream_Vtbl { @@ -5605,30 +5075,21 @@ pub struct IPrintWriteStream_Vtbl { pub WriteBytes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvbuffer: *const ::core::ffi::c_void, cbbuffer: u32, pcbwritten: *mut u32) -> ::windows_core::HRESULT, pub Close: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintWriteStreamFlush(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPrintWriteStreamFlush, IPrintWriteStreamFlush_Vtbl, 0x07d11ff8_1753_4873_b749_6cdaf068e4c3); +::windows_core::imp::interface_hierarchy!(IPrintWriteStreamFlush, ::windows_core::IUnknown); impl IPrintWriteStreamFlush { pub unsafe fn FlushData(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).FlushData)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IPrintWriteStreamFlush, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintWriteStreamFlush { - type Vtable = IPrintWriteStreamFlush_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintWriteStreamFlush { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x07d11ff8_1753_4873_b749_6cdaf068e4c3); -} #[repr(C)] #[doc(hidden)] pub struct IPrintWriteStreamFlush_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub FlushData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrinterBidiSetRequestCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPrinterBidiSetRequestCallback, IPrinterBidiSetRequestCallback_Vtbl, 0xc52d32dd_f2b4_4052_8502_ec4305ecb71f); +::windows_core::imp::interface_hierarchy!(IPrinterBidiSetRequestCallback, ::windows_core::IUnknown); impl IPrinterBidiSetRequestCallback { pub unsafe fn Completed(&self, bstrresponse: P0, hrstatus: ::windows_core::HRESULT) -> ::windows_core::Result<()> where @@ -5637,45 +5098,34 @@ impl IPrinterBidiSetRequestCallback { (::windows_core::Interface::vtable(self).Completed)(::windows_core::Interface::as_raw(self), bstrresponse.into_param().abi(), hrstatus).ok() } } -::windows_core::imp::interface_hierarchy!(IPrinterBidiSetRequestCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrinterBidiSetRequestCallback { - type Vtable = IPrinterBidiSetRequestCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrinterBidiSetRequestCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc52d32dd_f2b4_4052_8502_ec4305ecb71f); -} #[repr(C)] #[doc(hidden)] pub struct IPrinterBidiSetRequestCallback_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Completed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrresponse: ::std::mem::MaybeUninit<::windows_core::BSTR>, hrstatus: ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrinterExtensionAsyncOperation(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPrinterExtensionAsyncOperation, IPrinterExtensionAsyncOperation_Vtbl, 0x108d6a23_6a4b_4552_9448_68b427186acd); +::windows_core::imp::interface_hierarchy!(IPrinterExtensionAsyncOperation, ::windows_core::IUnknown); impl IPrinterExtensionAsyncOperation { pub unsafe fn Cancel(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Cancel)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IPrinterExtensionAsyncOperation, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrinterExtensionAsyncOperation { - type Vtable = IPrinterExtensionAsyncOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrinterExtensionAsyncOperation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x108d6a23_6a4b_4552_9448_68b427186acd); -} #[repr(C)] #[doc(hidden)] pub struct IPrinterExtensionAsyncOperation_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Cancel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrinterExtensionContext(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IPrinterExtensionContext, + IPrinterExtensionContext_Vtbl, + 0x39843bf2_c4d2_41fd_b4b2_aedbee5e1900 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IPrinterExtensionContext, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IPrinterExtensionContext { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -5704,16 +5154,6 @@ impl IPrinterExtensionContext { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IPrinterExtensionContext, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IPrinterExtensionContext { - type Vtable = IPrinterExtensionContext_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IPrinterExtensionContext { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x39843bf2_c4d2_41fd_b4b2_aedbee5e1900); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IPrinterExtensionContext_Vtbl { @@ -5735,11 +5175,15 @@ pub struct IPrinterExtensionContext_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] UserProperties: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrinterExtensionContextCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IPrinterExtensionContextCollection, + IPrinterExtensionContextCollection_Vtbl, + 0xfb476970_9bab_4861_811e_3e98b0c5addf +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IPrinterExtensionContextCollection, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IPrinterExtensionContextCollection { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -5758,16 +5202,6 @@ impl IPrinterExtensionContextCollection { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IPrinterExtensionContextCollection, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IPrinterExtensionContextCollection { - type Vtable = IPrinterExtensionContextCollection_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IPrinterExtensionContextCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfb476970_9bab_4861_811e_3e98b0c5addf); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IPrinterExtensionContextCollection_Vtbl { @@ -5779,11 +5213,15 @@ pub struct IPrinterExtensionContextCollection_Vtbl { GetAt: usize, pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppunk: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrinterExtensionEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IPrinterExtensionEvent, + IPrinterExtensionEvent_Vtbl, + 0xc093cb63_5ef5_4585_af8e_4d5637487b57 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IPrinterExtensionEvent, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IPrinterExtensionEvent { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -5804,16 +5242,6 @@ impl IPrinterExtensionEvent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IPrinterExtensionEvent, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IPrinterExtensionEvent { - type Vtable = IPrinterExtensionEvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IPrinterExtensionEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc093cb63_5ef5_4585_af8e_4d5637487b57); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IPrinterExtensionEvent_Vtbl { @@ -5827,11 +5255,15 @@ pub struct IPrinterExtensionEvent_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] OnPrinterQueuesEnumerated: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrinterExtensionEventArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IPrinterExtensionEventArgs, + IPrinterExtensionEventArgs_Vtbl, + 0x39843bf4_c4d2_41fd_b4b2_aedbee5e1900 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IPrinterExtensionEventArgs, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IPrinterExtensionContext); #[cfg(feature = "Win32_System_Com")] impl IPrinterExtensionEventArgs { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -5890,16 +5322,6 @@ impl IPrinterExtensionEventArgs { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IPrinterExtensionEventArgs, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IPrinterExtensionContext); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IPrinterExtensionEventArgs { - type Vtable = IPrinterExtensionEventArgs_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IPrinterExtensionEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x39843bf4_c4d2_41fd_b4b2_aedbee5e1900); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IPrinterExtensionEventArgs_Vtbl { @@ -5915,9 +5337,8 @@ pub struct IPrinterExtensionEventArgs_Vtbl { pub WindowModal: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbmodal: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub WindowParent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phwndparent: *mut super::super::Foundation::HANDLE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrinterExtensionManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPrinterExtensionManager, IPrinterExtensionManager_Vtbl, 0x93c6eb8c_b001_4355_9629_8e8a1b3f8e77); +::windows_core::imp::interface_hierarchy!(IPrinterExtensionManager, ::windows_core::IUnknown); impl IPrinterExtensionManager { pub unsafe fn EnableEvents(&self, printerdriverid: ::windows_core::GUID) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).EnableEvents)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(printerdriverid)).ok() @@ -5926,13 +5347,6 @@ impl IPrinterExtensionManager { (::windows_core::Interface::vtable(self).DisableEvents)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IPrinterExtensionManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrinterExtensionManager { - type Vtable = IPrinterExtensionManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrinterExtensionManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x93c6eb8c_b001_4355_9629_8e8a1b3f8e77); -} #[repr(C)] #[doc(hidden)] pub struct IPrinterExtensionManager_Vtbl { @@ -5940,11 +5354,15 @@ pub struct IPrinterExtensionManager_Vtbl { pub EnableEvents: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, printerdriverid: ::windows_core::GUID) -> ::windows_core::HRESULT, pub DisableEvents: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrinterExtensionRequest(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IPrinterExtensionRequest, + IPrinterExtensionRequest_Vtbl, + 0x39843bf3_c4d2_41fd_b4b2_aedbee5e1900 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IPrinterExtensionRequest, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IPrinterExtensionRequest { pub unsafe fn Cancel(&self, hrstatus: ::windows_core::HRESULT, bstrlogmessage: P0) -> ::windows_core::Result<()> @@ -5958,16 +5376,6 @@ impl IPrinterExtensionRequest { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IPrinterExtensionRequest, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IPrinterExtensionRequest { - type Vtable = IPrinterExtensionRequest_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IPrinterExtensionRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x39843bf3_c4d2_41fd_b4b2_aedbee5e1900); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IPrinterExtensionRequest_Vtbl { @@ -5975,11 +5383,15 @@ pub struct IPrinterExtensionRequest_Vtbl { pub Cancel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hrstatus: ::windows_core::HRESULT, bstrlogmessage: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub Complete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrinterPropertyBag(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IPrinterPropertyBag, + IPrinterPropertyBag_Vtbl, + 0xfea77364_df95_4a23_a905_019b79a8e481 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IPrinterPropertyBag, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IPrinterPropertyBag { pub unsafe fn GetBool(&self, bstrname: P0) -> ::windows_core::Result @@ -6055,16 +5467,6 @@ impl IPrinterPropertyBag { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IPrinterPropertyBag, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IPrinterPropertyBag { - type Vtable = IPrinterPropertyBag_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IPrinterPropertyBag { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfea77364_df95_4a23_a905_019b79a8e481); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IPrinterPropertyBag_Vtbl { @@ -6086,11 +5488,15 @@ pub struct IPrinterPropertyBag_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetWriteStream: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrinterQueue(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IPrinterQueue, + IPrinterQueue_Vtbl, + 0x3580a828_07fe_4b94_ac1a_757d9d2d3056 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IPrinterQueue, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IPrinterQueue { pub unsafe fn Handle(&self) -> ::windows_core::Result { @@ -6115,16 +5521,6 @@ impl IPrinterQueue { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IPrinterQueue, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IPrinterQueue { - type Vtable = IPrinterQueue_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IPrinterQueue { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3580a828_07fe_4b94_ac1a_757d9d2d3056); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IPrinterQueue_Vtbl { @@ -6137,11 +5533,15 @@ pub struct IPrinterQueue_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetProperties: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrinterQueue2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IPrinterQueue2, + IPrinterQueue2_Vtbl, + 0x8cd444e8_c9bb_49b3_8e38_e03209416131 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IPrinterQueue2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IPrinterQueue); #[cfg(feature = "Win32_System_Com")] impl IPrinterQueue2 { pub unsafe fn Handle(&self) -> ::windows_core::Result { @@ -6180,16 +5580,6 @@ impl IPrinterQueue2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IPrinterQueue2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IPrinterQueue); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IPrinterQueue2 { - type Vtable = IPrinterQueue2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IPrinterQueue2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8cd444e8_c9bb_49b3_8e38_e03209416131); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IPrinterQueue2_Vtbl { @@ -6200,11 +5590,15 @@ pub struct IPrinterQueue2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetPrinterQueueView: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrinterQueueEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IPrinterQueueEvent, + IPrinterQueueEvent_Vtbl, + 0x214685f6_7b78_4681_87e0_495f739273d1 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IPrinterQueueEvent, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IPrinterQueueEvent { pub unsafe fn OnBidiResponseReceived(&self, bstrresponse: P0, hrstatus: ::windows_core::HRESULT) -> ::windows_core::Result<()> @@ -6215,27 +5609,21 @@ impl IPrinterQueueEvent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IPrinterQueueEvent, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IPrinterQueueEvent { - type Vtable = IPrinterQueueEvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IPrinterQueueEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x214685f6_7b78_4681_87e0_495f739273d1); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IPrinterQueueEvent_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, pub OnBidiResponseReceived: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrresponse: ::std::mem::MaybeUninit<::windows_core::BSTR>, hrstatus: ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrinterQueueView(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IPrinterQueueView, + IPrinterQueueView_Vtbl, + 0x476e2969_3b2b_4b3f_8277_cff6056042aa +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IPrinterQueueView, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IPrinterQueueView { pub unsafe fn SetViewRange(&self, ulviewoffset: u32, ulviewsize: u32) -> ::windows_core::Result<()> { @@ -6243,27 +5631,21 @@ impl IPrinterQueueView { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IPrinterQueueView, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IPrinterQueueView { - type Vtable = IPrinterQueueView_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IPrinterQueueView { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x476e2969_3b2b_4b3f_8277_cff6056042aa); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IPrinterQueueView_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, pub SetViewRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulviewoffset: u32, ulviewsize: u32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrinterQueueViewEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IPrinterQueueViewEvent, + IPrinterQueueViewEvent_Vtbl, + 0xc5b6042b_fd21_404a_a0ef_e2fbb52b9080 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IPrinterQueueViewEvent, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IPrinterQueueViewEvent { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -6276,16 +5658,6 @@ impl IPrinterQueueViewEvent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IPrinterQueueViewEvent, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IPrinterQueueViewEvent { - type Vtable = IPrinterQueueViewEvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IPrinterQueueViewEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc5b6042b_fd21_404a_a0ef_e2fbb52b9080); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IPrinterQueueViewEvent_Vtbl { @@ -6295,11 +5667,15 @@ pub struct IPrinterQueueViewEvent_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] OnChanged: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrinterScriptContext(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IPrinterScriptContext, + IPrinterScriptContext_Vtbl, + 0x066acbca_8881_49c9_bb98_fae16b4889e1 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IPrinterScriptContext, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IPrinterScriptContext { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -6322,16 +5698,6 @@ impl IPrinterScriptContext { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IPrinterScriptContext, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IPrinterScriptContext { - type Vtable = IPrinterScriptContext_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IPrinterScriptContext { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x066acbca_8881_49c9_bb98_fae16b4889e1); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IPrinterScriptContext_Vtbl { @@ -6349,11 +5715,15 @@ pub struct IPrinterScriptContext_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] UserProperties: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrinterScriptablePropertyBag(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IPrinterScriptablePropertyBag, + IPrinterScriptablePropertyBag_Vtbl, + 0x91c7765f_ed57_49ad_8b01_dc24816a5294 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IPrinterScriptablePropertyBag, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IPrinterScriptablePropertyBag { pub unsafe fn GetBool(&self, bstrname: P0) -> ::windows_core::Result @@ -6435,16 +5805,6 @@ impl IPrinterScriptablePropertyBag { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IPrinterScriptablePropertyBag, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IPrinterScriptablePropertyBag { - type Vtable = IPrinterScriptablePropertyBag_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IPrinterScriptablePropertyBag { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x91c7765f_ed57_49ad_8b01_dc24816a5294); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IPrinterScriptablePropertyBag_Vtbl { @@ -6472,11 +5832,15 @@ pub struct IPrinterScriptablePropertyBag_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetWriteStream: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrinterScriptablePropertyBag2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IPrinterScriptablePropertyBag2, + IPrinterScriptablePropertyBag2_Vtbl, + 0x2a1c53c4_8638_4b3e_b518_2773c94556a3 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IPrinterScriptablePropertyBag2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IPrinterScriptablePropertyBag); #[cfg(feature = "Win32_System_Com")] impl IPrinterScriptablePropertyBag2 { pub unsafe fn GetBool(&self, bstrname: P0) -> ::windows_core::Result @@ -6565,27 +5929,21 @@ impl IPrinterScriptablePropertyBag2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IPrinterScriptablePropertyBag2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IPrinterScriptablePropertyBag); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IPrinterScriptablePropertyBag2 { - type Vtable = IPrinterScriptablePropertyBag2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IPrinterScriptablePropertyBag2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2a1c53c4_8638_4b3e_b518_2773c94556a3); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IPrinterScriptablePropertyBag2_Vtbl { pub base__: IPrinterScriptablePropertyBag_Vtbl, pub GetReadStreamAsXML: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::std::mem::MaybeUninit<::windows_core::BSTR>, ppxmlnode: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrinterScriptableSequentialStream(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IPrinterScriptableSequentialStream, + IPrinterScriptableSequentialStream_Vtbl, + 0x2072838a_316f_467a_a949_27f68c44a854 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IPrinterScriptableSequentialStream, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IPrinterScriptableSequentialStream { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -6605,16 +5963,6 @@ impl IPrinterScriptableSequentialStream { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IPrinterScriptableSequentialStream, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IPrinterScriptableSequentialStream { - type Vtable = IPrinterScriptableSequentialStream_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IPrinterScriptableSequentialStream { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2072838a_316f_467a_a949_27f68c44a854); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IPrinterScriptableSequentialStream_Vtbl { @@ -6628,11 +5976,15 @@ pub struct IPrinterScriptableSequentialStream_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Write: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrinterScriptableStream(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IPrinterScriptableStream, + IPrinterScriptableStream_Vtbl, + 0x7edf9a92_4750_41a5_a17f_879a6f4f7dcb +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IPrinterScriptableStream, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IPrinterScriptableSequentialStream); #[cfg(feature = "Win32_System_Com")] impl IPrinterScriptableStream { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -6664,16 +6016,6 @@ impl IPrinterScriptableStream { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IPrinterScriptableStream, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IPrinterScriptableSequentialStream); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IPrinterScriptableStream { - type Vtable = IPrinterScriptableStream_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IPrinterScriptableStream { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7edf9a92_4750_41a5_a17f_879a6f4f7dcb); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IPrinterScriptableStream_Vtbl { @@ -6685,9 +6027,8 @@ pub struct IPrinterScriptableStream_Vtbl { Seek: usize, pub SetSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lsize: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsDocument(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsDocument, IXpsDocument_Vtbl, 0xe8d907db_62a9_4a95_abe7_e01763dd30f8); +::windows_core::imp::interface_hierarchy!(IXpsDocument, ::windows_core::IUnknown); impl IXpsDocument { pub unsafe fn GetThumbnail(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -6700,13 +6041,6 @@ impl IXpsDocument { (::windows_core::Interface::vtable(self).SetThumbnail)(::windows_core::Interface::as_raw(self), pthumbnail.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IXpsDocument, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXpsDocument { - type Vtable = IXpsDocument_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsDocument { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe8d907db_62a9_4a95_abe7_e01763dd30f8); -} #[repr(C)] #[doc(hidden)] pub struct IXpsDocument_Vtbl { @@ -6714,9 +6048,8 @@ pub struct IXpsDocument_Vtbl { pub GetThumbnail: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppthumbnail: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetThumbnail: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pthumbnail: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsDocumentConsumer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsDocumentConsumer, IXpsDocumentConsumer_Vtbl, 0x4368d8a2_4181_4a9f_b295_3d9a38bb9ba0); +::windows_core::imp::interface_hierarchy!(IXpsDocumentConsumer, ::windows_core::IUnknown); impl IXpsDocumentConsumer { pub unsafe fn SendXpsUnknown(&self, punknown: P0) -> ::windows_core::Result<()> where @@ -6758,13 +6091,6 @@ impl IXpsDocumentConsumer { (::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::imp::interface_hierarchy!(IXpsDocumentConsumer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXpsDocumentConsumer { - type Vtable = IXpsDocumentConsumer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsDocumentConsumer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4368d8a2_4181_4a9f_b295_3d9a38bb9ba0); -} #[repr(C)] #[doc(hidden)] pub struct IXpsDocumentConsumer_Vtbl { @@ -6777,31 +6103,22 @@ pub struct IXpsDocumentConsumer_Vtbl { pub CloseSender: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetNewEmptyPart: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uri: ::windows_core::PCWSTR, riid: *const ::windows_core::GUID, ppnewobject: *mut *mut ::core::ffi::c_void, ppwritestream: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsDocumentProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsDocumentProvider, IXpsDocumentProvider_Vtbl, 0xb8cf8530_5562_47c4_ab67_b1f69ecf961e); +::windows_core::imp::interface_hierarchy!(IXpsDocumentProvider, ::windows_core::IUnknown); impl IXpsDocumentProvider { pub unsafe fn GetXpsPart(&self) -> ::windows_core::Result<::windows_core::IUnknown> { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetXpsPart)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IXpsDocumentProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXpsDocumentProvider { - type Vtable = IXpsDocumentProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsDocumentProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb8cf8530_5562_47c4_ab67_b1f69ecf961e); -} #[repr(C)] #[doc(hidden)] pub struct IXpsDocumentProvider_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetXpsPart: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppixpspart: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsPartIterator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsPartIterator, IXpsPartIterator_Vtbl, 0x0021d3cd_af6f_42ab_9999_14bc82a62d2e); +::windows_core::imp::interface_hierarchy!(IXpsPartIterator, ::windows_core::IUnknown); impl IXpsPartIterator { pub unsafe fn Reset(&self) { (::windows_core::Interface::vtable(self).Reset)(::windows_core::Interface::as_raw(self)) @@ -6816,13 +6133,6 @@ impl IXpsPartIterator { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(IXpsPartIterator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXpsPartIterator { - type Vtable = IXpsPartIterator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsPartIterator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0021d3cd_af6f_42ab_9999_14bc82a62d2e); -} #[repr(C)] #[doc(hidden)] pub struct IXpsPartIterator_Vtbl { @@ -6832,9 +6142,8 @@ pub struct IXpsPartIterator_Vtbl { pub IsDone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL, pub Next: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsRasterizationFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsRasterizationFactory, IXpsRasterizationFactory_Vtbl, 0xe094808a_24c6_482b_a3a7_c21ac9b55f17); +::windows_core::imp::interface_hierarchy!(IXpsRasterizationFactory, ::windows_core::IUnknown); impl IXpsRasterizationFactory { #[doc = "Required features: `\"Win32_Storage_Xps\"`"] #[cfg(feature = "Win32_Storage_Xps")] @@ -6846,13 +6155,6 @@ impl IXpsRasterizationFactory { (::windows_core::Interface::vtable(self).CreateRasterizer)(::windows_core::Interface::as_raw(self), xpspage.into_param().abi(), dpi, nontextrenderingmode, textrenderingmode, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IXpsRasterizationFactory, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXpsRasterizationFactory { - type Vtable = IXpsRasterizationFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsRasterizationFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe094808a_24c6_482b_a3a7_c21ac9b55f17); -} #[repr(C)] #[doc(hidden)] pub struct IXpsRasterizationFactory_Vtbl { @@ -6862,9 +6164,8 @@ pub struct IXpsRasterizationFactory_Vtbl { #[cfg(not(feature = "Win32_Storage_Xps"))] CreateRasterizer: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsRasterizationFactory1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsRasterizationFactory1, IXpsRasterizationFactory1_Vtbl, 0x2d6e5f77_6414_4a1e_a8e0_d4194ce6a26f); +::windows_core::imp::interface_hierarchy!(IXpsRasterizationFactory1, ::windows_core::IUnknown); impl IXpsRasterizationFactory1 { #[doc = "Required features: `\"Win32_Storage_Xps\"`"] #[cfg(feature = "Win32_Storage_Xps")] @@ -6876,13 +6177,6 @@ impl IXpsRasterizationFactory1 { (::windows_core::Interface::vtable(self).CreateRasterizer)(::windows_core::Interface::as_raw(self), xpspage.into_param().abi(), dpi, nontextrenderingmode, textrenderingmode, pixelformat, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IXpsRasterizationFactory1, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXpsRasterizationFactory1 { - type Vtable = IXpsRasterizationFactory1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsRasterizationFactory1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2d6e5f77_6414_4a1e_a8e0_d4194ce6a26f); -} #[repr(C)] #[doc(hidden)] pub struct IXpsRasterizationFactory1_Vtbl { @@ -6892,9 +6186,8 @@ pub struct IXpsRasterizationFactory1_Vtbl { #[cfg(not(feature = "Win32_Storage_Xps"))] CreateRasterizer: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsRasterizationFactory2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsRasterizationFactory2, IXpsRasterizationFactory2_Vtbl, 0x9c16ce3e_10f5_41fd_9ddc_6826669c2ff6); +::windows_core::imp::interface_hierarchy!(IXpsRasterizationFactory2, ::windows_core::IUnknown); impl IXpsRasterizationFactory2 { #[doc = "Required features: `\"Win32_Storage_Xps\"`"] #[cfg(feature = "Win32_Storage_Xps")] @@ -6906,13 +6199,6 @@ impl IXpsRasterizationFactory2 { (::windows_core::Interface::vtable(self).CreateRasterizer)(::windows_core::Interface::as_raw(self), xpspage.into_param().abi(), dpix, dpiy, nontextrenderingmode, textrenderingmode, pixelformat, backgroundcolor, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IXpsRasterizationFactory2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXpsRasterizationFactory2 { - type Vtable = IXpsRasterizationFactory2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsRasterizationFactory2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9c16ce3e_10f5_41fd_9ddc_6826669c2ff6); -} #[repr(C)] #[doc(hidden)] pub struct IXpsRasterizationFactory2_Vtbl { @@ -6922,9 +6208,8 @@ pub struct IXpsRasterizationFactory2_Vtbl { #[cfg(not(feature = "Win32_Storage_Xps"))] CreateRasterizer: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsRasterizer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsRasterizer, IXpsRasterizer_Vtbl, 0x7567cfc8_c156_47a8_9dac_11a2ae5bdd6b); +::windows_core::imp::interface_hierarchy!(IXpsRasterizer, ::windows_core::IUnknown); impl IXpsRasterizer { #[doc = "Required features: `\"Win32_Graphics_Imaging\"`"] #[cfg(feature = "Win32_Graphics_Imaging")] @@ -6939,13 +6224,6 @@ impl IXpsRasterizer { (::windows_core::Interface::vtable(self).SetMinimalLineWidth)(::windows_core::Interface::as_raw(self), width).ok() } } -::windows_core::imp::interface_hierarchy!(IXpsRasterizer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXpsRasterizer { - type Vtable = IXpsRasterizer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsRasterizer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7567cfc8_c156_47a8_9dac_11a2ae5bdd6b); -} #[repr(C)] #[doc(hidden)] pub struct IXpsRasterizer_Vtbl { @@ -6956,21 +6234,13 @@ pub struct IXpsRasterizer_Vtbl { RasterizeRect: usize, pub SetMinimalLineWidth: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, width: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsRasterizerNotificationCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsRasterizerNotificationCallback, IXpsRasterizerNotificationCallback_Vtbl, 0x9ab8fd0d_cb94_49c2_9cb0_97ec1d5469d2); +::windows_core::imp::interface_hierarchy!(IXpsRasterizerNotificationCallback, ::windows_core::IUnknown); impl IXpsRasterizerNotificationCallback { pub unsafe fn Continue(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Continue)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IXpsRasterizerNotificationCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXpsRasterizerNotificationCallback { - type Vtable = IXpsRasterizerNotificationCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsRasterizerNotificationCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9ab8fd0d_cb94_49c2_9cb0_97ec1d5469d2); -} #[repr(C)] #[doc(hidden)] pub struct IXpsRasterizerNotificationCallback_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Media/Audio/Apo/impl.rs b/crates/libs/windows/src/Windows/Win32/Media/Audio/Apo/impl.rs index 4e42d5dd46..ebc196d18b 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/Audio/Apo/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/Audio/Apo/impl.rs @@ -5,7 +5,7 @@ impl IApoAcousticEchoCancellation_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IApoAuxiliaryInputConfiguration_Impl: Sized { @@ -45,7 +45,7 @@ impl IApoAuxiliaryInputConfiguration_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IApoAuxiliaryInputRT_Impl: Sized { @@ -62,7 +62,7 @@ impl IApoAuxiliaryInputRT_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), AcceptInput: AcceptInput:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAudioDeviceModulesClient_Impl: Sized { @@ -82,7 +82,7 @@ impl IAudioDeviceModulesClient_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAudioMediaType_Impl: Sized { @@ -135,7 +135,7 @@ impl IAudioMediaType_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAudioProcessingObject_Impl: Sized { @@ -227,7 +227,7 @@ impl IAudioProcessingObject_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAudioProcessingObjectConfiguration_Impl: Sized { @@ -254,7 +254,7 @@ impl IAudioProcessingObjectConfiguration_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAudioProcessingObjectLoggingService_Impl: Sized { @@ -271,7 +271,7 @@ impl IAudioProcessingObjectLoggingService_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), ApoLog: ApoLog:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -302,7 +302,7 @@ impl IAudioProcessingObjectNotifications_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -326,7 +326,7 @@ impl IAudioProcessingObjectNotifications2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IAudioProcessingObjectRT_Impl: Sized { @@ -360,7 +360,7 @@ impl IAudioProcessingObjectRT_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAudioProcessingObjectRTQueueService_Impl: Sized { @@ -383,7 +383,7 @@ impl IAudioProcessingObjectRTQueueService_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetRealTimeWorkQueue: GetRealTimeWorkQueue:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAudioProcessingObjectVBR_Impl: Sized { @@ -422,7 +422,7 @@ impl IAudioProcessingObjectVBR_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAudioSystemEffects_Impl: Sized {} @@ -432,7 +432,7 @@ impl IAudioSystemEffects_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAudioSystemEffects2_Impl: Sized + IAudioSystemEffects_Impl { @@ -449,7 +449,7 @@ impl IAudioSystemEffects2_Vtbl { Self { base__: IAudioSystemEffects_Vtbl::new::(), GetEffectsList: GetEffectsList:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IAudioSystemEffects3_Impl: Sized + IAudioSystemEffects2_Impl { @@ -476,7 +476,7 @@ impl IAudioSystemEffects3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IAudioSystemEffectsCustomFormats_Impl: Sized { @@ -528,6 +528,6 @@ impl IAudioSystemEffectsCustomFormats_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 3e4f445dda..23a53f7458 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 @@ -1,22 +1,13 @@ -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IApoAcousticEchoCancellation(::windows_core::IUnknown); -impl IApoAcousticEchoCancellation {} +::windows_core::imp::com_interface!(IApoAcousticEchoCancellation, IApoAcousticEchoCancellation_Vtbl, 0x25385759_3236_4101_a943_25693dfb5d2d); ::windows_core::imp::interface_hierarchy!(IApoAcousticEchoCancellation, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IApoAcousticEchoCancellation { - type Vtable = IApoAcousticEchoCancellation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IApoAcousticEchoCancellation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x25385759_3236_4101_a943_25693dfb5d2d); -} +impl IApoAcousticEchoCancellation {} #[repr(C)] #[doc(hidden)] pub struct IApoAcousticEchoCancellation_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IApoAuxiliaryInputConfiguration(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IApoAuxiliaryInputConfiguration, IApoAuxiliaryInputConfiguration_Vtbl, 0x4ceb0aab_fa19_48ed_a857_87771ae1b768); +::windows_core::imp::interface_hierarchy!(IApoAuxiliaryInputConfiguration, ::windows_core::IUnknown); impl IApoAuxiliaryInputConfiguration { pub unsafe fn AddAuxiliaryInput(&self, dwinputid: u32, pbydata: &[u8], pinputconnection: *const APO_CONNECTION_DESCRIPTOR) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).AddAuxiliaryInput)(::windows_core::Interface::as_raw(self), dwinputid, pbydata.len().try_into().unwrap(), ::core::mem::transmute(pbydata.as_ptr()), pinputconnection).ok() @@ -32,13 +23,6 @@ impl IApoAuxiliaryInputConfiguration { (::windows_core::Interface::vtable(self).IsInputFormatSupported)(::windows_core::Interface::as_raw(self), prequestedinputformat.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IApoAuxiliaryInputConfiguration, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IApoAuxiliaryInputConfiguration { - type Vtable = IApoAuxiliaryInputConfiguration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IApoAuxiliaryInputConfiguration { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4ceb0aab_fa19_48ed_a857_87771ae1b768); -} #[repr(C)] #[doc(hidden)] pub struct IApoAuxiliaryInputConfiguration_Vtbl { @@ -47,30 +31,21 @@ pub struct IApoAuxiliaryInputConfiguration_Vtbl { pub RemoveAuxiliaryInput: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwinputid: u32) -> ::windows_core::HRESULT, pub IsInputFormatSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prequestedinputformat: *mut ::core::ffi::c_void, ppsupportedinputformat: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IApoAuxiliaryInputRT(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IApoAuxiliaryInputRT, IApoAuxiliaryInputRT_Vtbl, 0xf851809c_c177_49a0_b1b2_b66f017943ab); +::windows_core::imp::interface_hierarchy!(IApoAuxiliaryInputRT, ::windows_core::IUnknown); impl IApoAuxiliaryInputRT { pub unsafe fn AcceptInput(&self, dwinputid: u32, pinputconnection: *const APO_CONNECTION_PROPERTY) { (::windows_core::Interface::vtable(self).AcceptInput)(::windows_core::Interface::as_raw(self), dwinputid, pinputconnection) } } -::windows_core::imp::interface_hierarchy!(IApoAuxiliaryInputRT, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IApoAuxiliaryInputRT { - type Vtable = IApoAuxiliaryInputRT_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IApoAuxiliaryInputRT { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf851809c_c177_49a0_b1b2_b66f017943ab); -} #[repr(C)] #[doc(hidden)] pub struct IApoAuxiliaryInputRT_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub AcceptInput: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwinputid: u32, pinputconnection: *const APO_CONNECTION_PROPERTY), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioDeviceModulesClient(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioDeviceModulesClient, IAudioDeviceModulesClient_Vtbl, 0x98f37dac_d0b6_49f5_896a_aa4d169a4c48); +::windows_core::imp::interface_hierarchy!(IAudioDeviceModulesClient, ::windows_core::IUnknown); impl IAudioDeviceModulesClient { pub unsafe fn SetAudioDeviceModulesManager(&self, paudiodevicemodulesmanager: P0) -> ::windows_core::Result<()> where @@ -79,22 +54,14 @@ impl IAudioDeviceModulesClient { (::windows_core::Interface::vtable(self).SetAudioDeviceModulesManager)(::windows_core::Interface::as_raw(self), paudiodevicemodulesmanager.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IAudioDeviceModulesClient, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioDeviceModulesClient { - type Vtable = IAudioDeviceModulesClient_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioDeviceModulesClient { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x98f37dac_d0b6_49f5_896a_aa4d169a4c48); -} #[repr(C)] #[doc(hidden)] pub struct IAudioDeviceModulesClient_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub SetAudioDeviceModulesManager: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, paudiodevicemodulesmanager: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioMediaType(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioMediaType, IAudioMediaType_Vtbl, 0x4e997f73_b71f_4798_873b_ed7dfcf15b4d); +::windows_core::imp::interface_hierarchy!(IAudioMediaType, ::windows_core::IUnknown); impl IAudioMediaType { pub unsafe fn IsCompressedFormat(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -114,13 +81,6 @@ impl IAudioMediaType { (::windows_core::Interface::vtable(self).GetUncompressedAudioFormat)(::windows_core::Interface::as_raw(self), puncompressedaudioformat).ok() } } -::windows_core::imp::interface_hierarchy!(IAudioMediaType, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioMediaType { - type Vtable = IAudioMediaType_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioMediaType { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4e997f73_b71f_4798_873b_ed7dfcf15b4d); -} #[repr(C)] #[doc(hidden)] pub struct IAudioMediaType_Vtbl { @@ -130,9 +90,8 @@ pub struct IAudioMediaType_Vtbl { pub GetAudioFormat: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> *mut super::WAVEFORMATEX, pub GetUncompressedAudioFormat: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, puncompressedaudioformat: *mut UNCOMPRESSEDAUDIOFORMAT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioProcessingObject(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioProcessingObject, IAudioProcessingObject_Vtbl, 0xfd7f2b29_24d0_4b5c_b177_592c39f9ca10); +::windows_core::imp::interface_hierarchy!(IAudioProcessingObject, ::windows_core::IUnknown); impl IAudioProcessingObject { pub unsafe fn Reset(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Reset)(::windows_core::Interface::as_raw(self)).ok() @@ -169,13 +128,6 @@ impl IAudioProcessingObject { (::windows_core::Interface::vtable(self).GetInputChannelCount)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAudioProcessingObject, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioProcessingObject { - type Vtable = IAudioProcessingObject_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioProcessingObject { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfd7f2b29_24d0_4b5c_b177_592c39f9ca10); -} #[repr(C)] #[doc(hidden)] pub struct IAudioProcessingObject_Vtbl { @@ -188,9 +140,8 @@ pub struct IAudioProcessingObject_Vtbl { pub IsOutputFormatSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, poppositeformat: *mut ::core::ffi::c_void, prequestedoutputformat: *mut ::core::ffi::c_void, ppsupportedoutputformat: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetInputChannelCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pu32channelcount: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioProcessingObjectConfiguration(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioProcessingObjectConfiguration, IAudioProcessingObjectConfiguration_Vtbl, 0x0e5ed805_aba6_49c3_8f9a_2b8c889c4fa8); +::windows_core::imp::interface_hierarchy!(IAudioProcessingObjectConfiguration, ::windows_core::IUnknown); impl IAudioProcessingObjectConfiguration { pub unsafe fn LockForProcess(&self, ppinputconnections: &[*const APO_CONNECTION_DESCRIPTOR], ppoutputconnections: &[*const APO_CONNECTION_DESCRIPTOR]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).LockForProcess)(::windows_core::Interface::as_raw(self), ppinputconnections.len().try_into().unwrap(), ::core::mem::transmute(ppinputconnections.as_ptr()), ppoutputconnections.len().try_into().unwrap(), ::core::mem::transmute(ppoutputconnections.as_ptr())).ok() @@ -199,13 +150,6 @@ impl IAudioProcessingObjectConfiguration { (::windows_core::Interface::vtable(self).UnlockForProcess)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IAudioProcessingObjectConfiguration, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioProcessingObjectConfiguration { - type Vtable = IAudioProcessingObjectConfiguration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioProcessingObjectConfiguration { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0e5ed805_aba6_49c3_8f9a_2b8c889c4fa8); -} #[repr(C)] #[doc(hidden)] pub struct IAudioProcessingObjectConfiguration_Vtbl { @@ -213,9 +157,8 @@ pub struct IAudioProcessingObjectConfiguration_Vtbl { pub LockForProcess: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, u32numinputconnections: u32, ppinputconnections: *const *const APO_CONNECTION_DESCRIPTOR, u32numoutputconnections: u32, ppoutputconnections: *const *const APO_CONNECTION_DESCRIPTOR) -> ::windows_core::HRESULT, pub UnlockForProcess: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioProcessingObjectLoggingService(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioProcessingObjectLoggingService, IAudioProcessingObjectLoggingService_Vtbl, 0x698f0107_1745_4708_95a5_d84478a62a65); +::windows_core::imp::interface_hierarchy!(IAudioProcessingObjectLoggingService, ::windows_core::IUnknown); impl IAudioProcessingObjectLoggingService { pub unsafe fn ApoLog(&self, level: APO_LOG_LEVEL, format: P0) where @@ -224,22 +167,14 @@ impl IAudioProcessingObjectLoggingService { (::windows_core::Interface::vtable(self).ApoLog)(::windows_core::Interface::as_raw(self), level, format.into_param().abi()) } } -::windows_core::imp::interface_hierarchy!(IAudioProcessingObjectLoggingService, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioProcessingObjectLoggingService { - type Vtable = IAudioProcessingObjectLoggingService_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioProcessingObjectLoggingService { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x698f0107_1745_4708_95a5_d84478a62a65); -} #[repr(C)] #[doc(hidden)] pub struct IAudioProcessingObjectLoggingService_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub ApoLog: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, level: APO_LOG_LEVEL, format: ::windows_core::PCWSTR), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioProcessingObjectNotifications(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioProcessingObjectNotifications, IAudioProcessingObjectNotifications_Vtbl, 0x56b0c76f_02fd_4b21_a52e_9f8219fc86e4); +::windows_core::imp::interface_hierarchy!(IAudioProcessingObjectNotifications, ::windows_core::IUnknown); impl IAudioProcessingObjectNotifications { pub unsafe fn GetApoNotificationRegistrationInfo(&self, aponotifications: *mut *mut APO_NOTIFICATION_DESCRIPTOR, count: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetApoNotificationRegistrationInfo)(::windows_core::Interface::as_raw(self), aponotifications, count).ok() @@ -250,13 +185,6 @@ impl IAudioProcessingObjectNotifications { (::windows_core::Interface::vtable(self).HandleNotification)(::windows_core::Interface::as_raw(self), aponotification) } } -::windows_core::imp::interface_hierarchy!(IAudioProcessingObjectNotifications, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioProcessingObjectNotifications { - type Vtable = IAudioProcessingObjectNotifications_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioProcessingObjectNotifications { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x56b0c76f_02fd_4b21_a52e_9f8219fc86e4); -} #[repr(C)] #[doc(hidden)] pub struct IAudioProcessingObjectNotifications_Vtbl { @@ -267,9 +195,8 @@ pub struct IAudioProcessingObjectNotifications_Vtbl { #[cfg(not(feature = "Win32_UI_Shell_PropertiesSystem"))] HandleNotification: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioProcessingObjectNotifications2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioProcessingObjectNotifications2, IAudioProcessingObjectNotifications2_Vtbl, 0xca2cfbde_a9d6_4eb0_bc95_c4d026b380f0); +::windows_core::imp::interface_hierarchy!(IAudioProcessingObjectNotifications2, ::windows_core::IUnknown, IAudioProcessingObjectNotifications); impl IAudioProcessingObjectNotifications2 { pub unsafe fn GetApoNotificationRegistrationInfo(&self, aponotifications: *mut *mut APO_NOTIFICATION_DESCRIPTOR, count: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.GetApoNotificationRegistrationInfo)(::windows_core::Interface::as_raw(self), aponotifications, count).ok() @@ -283,22 +210,14 @@ impl IAudioProcessingObjectNotifications2 { (::windows_core::Interface::vtable(self).GetApoNotificationRegistrationInfo2)(::windows_core::Interface::as_raw(self), maxaponotificationtypesupported, aponotifications, count).ok() } } -::windows_core::imp::interface_hierarchy!(IAudioProcessingObjectNotifications2, ::windows_core::IUnknown, IAudioProcessingObjectNotifications); -unsafe impl ::windows_core::Interface for IAudioProcessingObjectNotifications2 { - type Vtable = IAudioProcessingObjectNotifications2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioProcessingObjectNotifications2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xca2cfbde_a9d6_4eb0_bc95_c4d026b380f0); -} #[repr(C)] #[doc(hidden)] pub struct IAudioProcessingObjectNotifications2_Vtbl { pub base__: IAudioProcessingObjectNotifications_Vtbl, pub GetApoNotificationRegistrationInfo2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, maxaponotificationtypesupported: APO_NOTIFICATION_TYPE, aponotifications: *mut *mut APO_NOTIFICATION_DESCRIPTOR, count: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioProcessingObjectRT(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioProcessingObjectRT, IAudioProcessingObjectRT_Vtbl, 0x9e1d6a6d_ddbc_4e95_a4c7_ad64ba37846c); +::windows_core::imp::interface_hierarchy!(IAudioProcessingObjectRT, ::windows_core::IUnknown); impl IAudioProcessingObjectRT { pub unsafe fn APOProcess(&self, u32numinputconnections: u32, ppinputconnections: *const *const APO_CONNECTION_PROPERTY, u32numoutputconnections: u32, ppoutputconnections: *mut *mut APO_CONNECTION_PROPERTY) { (::windows_core::Interface::vtable(self).APOProcess)(::windows_core::Interface::as_raw(self), u32numinputconnections, ppinputconnections, u32numoutputconnections, ppoutputconnections) @@ -310,13 +229,6 @@ impl IAudioProcessingObjectRT { (::windows_core::Interface::vtable(self).CalcOutputFrames)(::windows_core::Interface::as_raw(self), u32inputframecount) } } -::windows_core::imp::interface_hierarchy!(IAudioProcessingObjectRT, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioProcessingObjectRT { - type Vtable = IAudioProcessingObjectRT_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioProcessingObjectRT { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9e1d6a6d_ddbc_4e95_a4c7_ad64ba37846c); -} #[repr(C)] #[doc(hidden)] pub struct IAudioProcessingObjectRT_Vtbl { @@ -325,31 +237,22 @@ pub struct IAudioProcessingObjectRT_Vtbl { pub CalcInputFrames: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, u32outputframecount: u32) -> u32, pub CalcOutputFrames: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, u32inputframecount: u32) -> u32, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioProcessingObjectRTQueueService(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioProcessingObjectRTQueueService, IAudioProcessingObjectRTQueueService_Vtbl, 0xacd65e2f_955b_4b57_b9bf_ac297bb752c9); +::windows_core::imp::interface_hierarchy!(IAudioProcessingObjectRTQueueService, ::windows_core::IUnknown); impl IAudioProcessingObjectRTQueueService { pub unsafe fn GetRealTimeWorkQueue(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetRealTimeWorkQueue)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAudioProcessingObjectRTQueueService, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioProcessingObjectRTQueueService { - type Vtable = IAudioProcessingObjectRTQueueService_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioProcessingObjectRTQueueService { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xacd65e2f_955b_4b57_b9bf_ac297bb752c9); -} #[repr(C)] #[doc(hidden)] pub struct IAudioProcessingObjectRTQueueService_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetRealTimeWorkQueue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, workqueueid: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioProcessingObjectVBR(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioProcessingObjectVBR, IAudioProcessingObjectVBR_Vtbl, 0x7ba1db8f_78ad_49cd_9591_f79d80a17c81); +::windows_core::imp::interface_hierarchy!(IAudioProcessingObjectVBR, ::windows_core::IUnknown); impl IAudioProcessingObjectVBR { pub unsafe fn CalcMaxInputFrames(&self, u32maxoutputframecount: u32) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -360,13 +263,6 @@ impl IAudioProcessingObjectVBR { (::windows_core::Interface::vtable(self).CalcMaxOutputFrames)(::windows_core::Interface::as_raw(self), u32maxinputframecount, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAudioProcessingObjectVBR, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioProcessingObjectVBR { - type Vtable = IAudioProcessingObjectVBR_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioProcessingObjectVBR { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7ba1db8f_78ad_49cd_9591_f79d80a17c81); -} #[repr(C)] #[doc(hidden)] pub struct IAudioProcessingObjectVBR_Vtbl { @@ -374,25 +270,16 @@ pub struct IAudioProcessingObjectVBR_Vtbl { pub CalcMaxInputFrames: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, u32maxoutputframecount: u32, pu32inputframecount: *mut u32) -> ::windows_core::HRESULT, pub CalcMaxOutputFrames: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, u32maxinputframecount: u32, pu32outputframecount: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioSystemEffects(::windows_core::IUnknown); -impl IAudioSystemEffects {} +::windows_core::imp::com_interface!(IAudioSystemEffects, IAudioSystemEffects_Vtbl, 0x5fa00f27_add6_499a_8a9d_6b98521fa75b); ::windows_core::imp::interface_hierarchy!(IAudioSystemEffects, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioSystemEffects { - type Vtable = IAudioSystemEffects_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioSystemEffects { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5fa00f27_add6_499a_8a9d_6b98521fa75b); -} +impl IAudioSystemEffects {} #[repr(C)] #[doc(hidden)] pub struct IAudioSystemEffects_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioSystemEffects2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioSystemEffects2, IAudioSystemEffects2_Vtbl, 0xbafe99d2_7436_44ce_9e0e_4d89afbfff56); +::windows_core::imp::interface_hierarchy!(IAudioSystemEffects2, ::windows_core::IUnknown, IAudioSystemEffects); impl IAudioSystemEffects2 { pub unsafe fn GetEffectsList(&self, ppeffectsids: *mut *mut ::windows_core::GUID, pceffects: *mut u32, event: P0) -> ::windows_core::Result<()> where @@ -401,22 +288,14 @@ impl IAudioSystemEffects2 { (::windows_core::Interface::vtable(self).GetEffectsList)(::windows_core::Interface::as_raw(self), ppeffectsids, pceffects, event.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IAudioSystemEffects2, ::windows_core::IUnknown, IAudioSystemEffects); -unsafe impl ::windows_core::Interface for IAudioSystemEffects2 { - type Vtable = IAudioSystemEffects2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioSystemEffects2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbafe99d2_7436_44ce_9e0e_4d89afbfff56); -} #[repr(C)] #[doc(hidden)] pub struct IAudioSystemEffects2_Vtbl { pub base__: IAudioSystemEffects_Vtbl, pub GetEffectsList: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppeffectsids: *mut *mut ::windows_core::GUID, pceffects: *mut u32, event: super::super::super::Foundation::HANDLE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioSystemEffects3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioSystemEffects3, IAudioSystemEffects3_Vtbl, 0xc58b31cd_fc6a_4255_bc1f_ad29bb0a4a17); +::windows_core::imp::interface_hierarchy!(IAudioSystemEffects3, ::windows_core::IUnknown, IAudioSystemEffects, IAudioSystemEffects2); impl IAudioSystemEffects3 { pub unsafe fn GetEffectsList(&self, ppeffectsids: *mut *mut ::windows_core::GUID, pceffects: *mut u32, event: P0) -> ::windows_core::Result<()> where @@ -434,13 +313,6 @@ impl IAudioSystemEffects3 { (::windows_core::Interface::vtable(self).SetAudioSystemEffectState)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(effectid), state).ok() } } -::windows_core::imp::interface_hierarchy!(IAudioSystemEffects3, ::windows_core::IUnknown, IAudioSystemEffects, IAudioSystemEffects2); -unsafe impl ::windows_core::Interface for IAudioSystemEffects3 { - type Vtable = IAudioSystemEffects3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioSystemEffects3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc58b31cd_fc6a_4255_bc1f_ad29bb0a4a17); -} #[repr(C)] #[doc(hidden)] pub struct IAudioSystemEffects3_Vtbl { @@ -448,9 +320,8 @@ pub struct IAudioSystemEffects3_Vtbl { pub GetControllableSystemEffectsList: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, effects: *mut *mut AUDIO_SYSTEMEFFECT, numeffects: *mut u32, event: super::super::super::Foundation::HANDLE) -> ::windows_core::HRESULT, pub SetAudioSystemEffectState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, effectid: ::windows_core::GUID, state: AUDIO_SYSTEMEFFECT_STATE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioSystemEffectsCustomFormats(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioSystemEffectsCustomFormats, IAudioSystemEffectsCustomFormats_Vtbl, 0xb1176e34_bb7f_4f05_bebd_1b18a534e097); +::windows_core::imp::interface_hierarchy!(IAudioSystemEffectsCustomFormats, ::windows_core::IUnknown); impl IAudioSystemEffectsCustomFormats { pub unsafe fn GetFormatCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -465,13 +336,6 @@ impl IAudioSystemEffectsCustomFormats { (::windows_core::Interface::vtable(self).GetFormatRepresentation)(::windows_core::Interface::as_raw(self), nformat, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAudioSystemEffectsCustomFormats, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioSystemEffectsCustomFormats { - type Vtable = IAudioSystemEffectsCustomFormats_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioSystemEffectsCustomFormats { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb1176e34_bb7f_4f05_bebd_1b18a534e097); -} #[repr(C)] #[doc(hidden)] pub struct IAudioSystemEffectsCustomFormats_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Media/Audio/DirectMusic/impl.rs b/crates/libs/windows/src/Windows/Win32/Media/Audio/DirectMusic/impl.rs index 42ee598977..4ab4a48dc8 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/Audio/DirectMusic/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/Audio/DirectMusic/impl.rs @@ -75,7 +75,7 @@ impl IDirectMusic_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Media_Audio_DirectSound\"`"] @@ -96,7 +96,7 @@ impl IDirectMusic8_Vtbl { Self { base__: IDirectMusic_Vtbl::new::(), SetExternalMasterClock: SetExternalMasterClock:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDirectMusicBuffer_Impl: Sized { @@ -200,7 +200,7 @@ impl IDirectMusicBuffer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDirectMusicCollection_Impl: Sized { @@ -233,7 +233,7 @@ impl IDirectMusicCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDirectMusicDownload_Impl: Sized { @@ -250,7 +250,7 @@ impl IDirectMusicDownload_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetBuffer: GetBuffer:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDirectMusicDownloadedInstrument_Impl: Sized {} @@ -260,7 +260,7 @@ impl IDirectMusicDownloadedInstrument_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDirectMusicInstrument_Impl: Sized { @@ -287,7 +287,7 @@ impl IDirectMusicInstrument_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Media_Audio_DirectSound\"`, `\"Win32_System_IO\"`"] @@ -429,7 +429,7 @@ impl IDirectMusicPort_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDirectMusicPortDownload_Impl: Sized { @@ -496,7 +496,7 @@ impl IDirectMusicPortDownload_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDirectMusicSynth_Impl: Sized { @@ -634,7 +634,7 @@ impl IDirectMusicSynth_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDirectMusicSynth8_Impl: Sized + IDirectMusicSynth_Impl { @@ -682,7 +682,7 @@ impl IDirectMusicSynth8_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Media_Audio_DirectSound\"`"] @@ -761,7 +761,7 @@ impl IDirectMusicSynthSink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDirectMusicThru_Impl: Sized { @@ -778,6 +778,6 @@ impl IDirectMusicThru_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), ThruChannel: ThruChannel:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 c3bdb55c3e..75ee5c8068 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 @@ -1,6 +1,5 @@ -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectMusic(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectMusic, IDirectMusic_Vtbl, 0x6536115a_7b2d_11d2_ba18_0000f875ac12); +::windows_core::imp::interface_hierarchy!(IDirectMusic, ::windows_core::IUnknown); impl IDirectMusic { pub unsafe fn EnumPort(&self, dwindex: u32, pportcaps: *mut DMUS_PORTCAPS) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).EnumPort)(::windows_core::Interface::as_raw(self), dwindex, pportcaps).ok() @@ -45,13 +44,6 @@ impl IDirectMusic { (::windows_core::Interface::vtable(self).SetDirectSound)(::windows_core::Interface::as_raw(self), pdirectsound.into_param().abi(), hwnd.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectMusic, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectMusic { - type Vtable = IDirectMusic_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectMusic { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6536115a_7b2d_11d2_ba18_0000f875ac12); -} #[repr(C)] #[doc(hidden)] pub struct IDirectMusic_Vtbl { @@ -69,9 +61,8 @@ pub struct IDirectMusic_Vtbl { #[cfg(not(feature = "Win32_Media_Audio_DirectSound"))] SetDirectSound: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectMusic8(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectMusic8, IDirectMusic8_Vtbl, 0x2d3629f7_813d_4939_8508_f05c6b75fd97); +::windows_core::imp::interface_hierarchy!(IDirectMusic8, ::windows_core::IUnknown, IDirectMusic); impl IDirectMusic8 { pub unsafe fn EnumPort(&self, dwindex: u32, pportcaps: *mut DMUS_PORTCAPS) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.EnumPort)(::windows_core::Interface::as_raw(self), dwindex, pportcaps).ok() @@ -122,22 +113,14 @@ impl IDirectMusic8 { (::windows_core::Interface::vtable(self).SetExternalMasterClock)(::windows_core::Interface::as_raw(self), pclock.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectMusic8, ::windows_core::IUnknown, IDirectMusic); -unsafe impl ::windows_core::Interface for IDirectMusic8 { - type Vtable = IDirectMusic8_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectMusic8 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2d3629f7_813d_4939_8508_f05c6b75fd97); -} #[repr(C)] #[doc(hidden)] pub struct IDirectMusic8_Vtbl { pub base__: IDirectMusic_Vtbl, pub SetExternalMasterClock: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pclock: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectMusicBuffer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectMusicBuffer, IDirectMusicBuffer_Vtbl, 0xd2ac2878_b39b_11d1_8704_00600893b1bd); +::windows_core::imp::interface_hierarchy!(IDirectMusicBuffer, ::windows_core::IUnknown); impl IDirectMusicBuffer { pub unsafe fn Flush(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Flush)(::windows_core::Interface::as_raw(self)).ok() @@ -179,13 +162,6 @@ impl IDirectMusicBuffer { (::windows_core::Interface::vtable(self).SetUsedBytes)(::windows_core::Interface::as_raw(self), cb).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectMusicBuffer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectMusicBuffer { - type Vtable = IDirectMusicBuffer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectMusicBuffer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd2ac2878_b39b_11d1_8704_00600893b1bd); -} #[repr(C)] #[doc(hidden)] pub struct IDirectMusicBuffer_Vtbl { @@ -204,9 +180,8 @@ pub struct IDirectMusicBuffer_Vtbl { pub SetStartTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rt: i64) -> ::windows_core::HRESULT, pub SetUsedBytes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cb: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectMusicCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectMusicCollection, IDirectMusicCollection_Vtbl, 0xd2ac287c_b39b_11d1_8704_00600893b1bd); +::windows_core::imp::interface_hierarchy!(IDirectMusicCollection, ::windows_core::IUnknown); impl IDirectMusicCollection { pub unsafe fn GetInstrument(&self, dwpatch: u32) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -219,13 +194,6 @@ impl IDirectMusicCollection { (::windows_core::Interface::vtable(self).EnumInstrument)(::windows_core::Interface::as_raw(self), dwindex, pdwpatch, pwszname.into_param().abi(), dwnamelen).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectMusicCollection, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectMusicCollection { - type Vtable = IDirectMusicCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectMusicCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd2ac287c_b39b_11d1_8704_00600893b1bd); -} #[repr(C)] #[doc(hidden)] pub struct IDirectMusicCollection_Vtbl { @@ -233,46 +201,29 @@ pub struct IDirectMusicCollection_Vtbl { pub GetInstrument: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwpatch: u32, ppinstrument: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub EnumInstrument: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwindex: u32, pdwpatch: *mut u32, pwszname: ::windows_core::PCWSTR, dwnamelen: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectMusicDownload(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectMusicDownload, IDirectMusicDownload_Vtbl, 0xd2ac287b_b39b_11d1_8704_00600893b1bd); +::windows_core::imp::interface_hierarchy!(IDirectMusicDownload, ::windows_core::IUnknown); impl IDirectMusicDownload { pub unsafe fn GetBuffer(&self, ppvbuffer: *mut *mut ::core::ffi::c_void, pdwsize: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetBuffer)(::windows_core::Interface::as_raw(self), ppvbuffer, pdwsize).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectMusicDownload, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectMusicDownload { - type Vtable = IDirectMusicDownload_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectMusicDownload { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd2ac287b_b39b_11d1_8704_00600893b1bd); -} #[repr(C)] #[doc(hidden)] pub struct IDirectMusicDownload_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetBuffer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppvbuffer: *mut *mut ::core::ffi::c_void, pdwsize: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectMusicDownloadedInstrument(::windows_core::IUnknown); -impl IDirectMusicDownloadedInstrument {} +::windows_core::imp::com_interface!(IDirectMusicDownloadedInstrument, IDirectMusicDownloadedInstrument_Vtbl, 0xd2ac287e_b39b_11d1_8704_00600893b1bd); ::windows_core::imp::interface_hierarchy!(IDirectMusicDownloadedInstrument, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectMusicDownloadedInstrument { - type Vtable = IDirectMusicDownloadedInstrument_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectMusicDownloadedInstrument { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd2ac287e_b39b_11d1_8704_00600893b1bd); -} +impl IDirectMusicDownloadedInstrument {} #[repr(C)] #[doc(hidden)] pub struct IDirectMusicDownloadedInstrument_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectMusicInstrument(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectMusicInstrument, IDirectMusicInstrument_Vtbl, 0xd2ac287d_b39b_11d1_8704_00600893b1bd); +::windows_core::imp::interface_hierarchy!(IDirectMusicInstrument, ::windows_core::IUnknown); impl IDirectMusicInstrument { pub unsafe fn GetPatch(&self, pdwpatch: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetPatch)(::windows_core::Interface::as_raw(self), pdwpatch).ok() @@ -281,13 +232,6 @@ impl IDirectMusicInstrument { (::windows_core::Interface::vtable(self).SetPatch)(::windows_core::Interface::as_raw(self), dwpatch).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectMusicInstrument, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectMusicInstrument { - type Vtable = IDirectMusicInstrument_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectMusicInstrument { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd2ac287d_b39b_11d1_8704_00600893b1bd); -} #[repr(C)] #[doc(hidden)] pub struct IDirectMusicInstrument_Vtbl { @@ -295,9 +239,8 @@ pub struct IDirectMusicInstrument_Vtbl { pub GetPatch: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwpatch: *mut u32) -> ::windows_core::HRESULT, pub SetPatch: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwpatch: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectMusicPort(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectMusicPort, IDirectMusicPort_Vtbl, 0x08f2d8c9_37c2_11d2_b9f9_0000f875ac12); +::windows_core::imp::interface_hierarchy!(IDirectMusicPort, ::windows_core::IUnknown); impl IDirectMusicPort { pub unsafe fn PlayBuffer(&self, pbuffer: P0) -> ::windows_core::Result<()> where @@ -378,13 +321,6 @@ impl IDirectMusicPort { (::windows_core::Interface::vtable(self).GetFormat)(::windows_core::Interface::as_raw(self), pwaveformatex, pdwwaveformatexsize, pdwbuffersize).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectMusicPort, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectMusicPort { - type Vtable = IDirectMusicPort_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectMusicPort { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x08f2d8c9_37c2_11d2_b9f9_0000f875ac12); -} #[repr(C)] #[doc(hidden)] pub struct IDirectMusicPort_Vtbl { @@ -413,9 +349,8 @@ pub struct IDirectMusicPort_Vtbl { SetDirectSound: usize, pub GetFormat: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwaveformatex: *mut super::WAVEFORMATEX, pdwwaveformatexsize: *mut u32, pdwbuffersize: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectMusicPortDownload(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectMusicPortDownload, IDirectMusicPortDownload_Vtbl, 0xd2ac287a_b39b_11d1_8704_00600893b1bd); +::windows_core::imp::interface_hierarchy!(IDirectMusicPortDownload, ::windows_core::IUnknown); impl IDirectMusicPortDownload { pub unsafe fn GetBuffer(&self, dwdlid: u32) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -444,13 +379,6 @@ impl IDirectMusicPortDownload { (::windows_core::Interface::vtable(self).Unload)(::windows_core::Interface::as_raw(self), pidmdownload.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectMusicPortDownload, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectMusicPortDownload { - type Vtable = IDirectMusicPortDownload_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectMusicPortDownload { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd2ac287a_b39b_11d1_8704_00600893b1bd); -} #[repr(C)] #[doc(hidden)] pub struct IDirectMusicPortDownload_Vtbl { @@ -462,9 +390,8 @@ pub struct IDirectMusicPortDownload_Vtbl { pub Download: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pidmdownload: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Unload: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pidmdownload: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectMusicSynth(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectMusicSynth, IDirectMusicSynth_Vtbl, 0x09823661_5c85_11d2_afa6_00aa0024d8b6); +::windows_core::imp::interface_hierarchy!(IDirectMusicSynth, ::windows_core::IUnknown); impl IDirectMusicSynth { pub unsafe fn Open(&self, pportparams: *mut DMUS_PORTPARAMS8) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Open)(::windows_core::Interface::as_raw(self), pportparams).ok() @@ -532,13 +459,6 @@ impl IDirectMusicSynth { (::windows_core::Interface::vtable(self).GetAppend)(::windows_core::Interface::as_raw(self), pdwappend).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectMusicSynth, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectMusicSynth { - type Vtable = IDirectMusicSynth_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectMusicSynth { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x09823661_5c85_11d2_afa6_00aa0024d8b6); -} #[repr(C)] #[doc(hidden)] pub struct IDirectMusicSynth_Vtbl { @@ -561,9 +481,8 @@ pub struct IDirectMusicSynth_Vtbl { pub GetFormat: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwaveformatex: *mut super::WAVEFORMATEX, pdwwaveformatexsize: *mut u32) -> ::windows_core::HRESULT, pub GetAppend: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwappend: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectMusicSynth8(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectMusicSynth8, IDirectMusicSynth8_Vtbl, 0x53cab625_2711_4c9f_9de7_1b7f925f6fc8); +::windows_core::imp::interface_hierarchy!(IDirectMusicSynth8, ::windows_core::IUnknown, IDirectMusicSynth); impl IDirectMusicSynth8 { pub unsafe fn Open(&self, pportparams: *mut DMUS_PORTPARAMS8) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.Open)(::windows_core::Interface::as_raw(self), pportparams).ok() @@ -646,13 +565,6 @@ impl IDirectMusicSynth8 { (::windows_core::Interface::vtable(self).AssignChannelToBuses)(::windows_core::Interface::as_raw(self), dwchannelgroup, dwchannel, pdwbuses, cbuses).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectMusicSynth8, ::windows_core::IUnknown, IDirectMusicSynth); -unsafe impl ::windows_core::Interface for IDirectMusicSynth8 { - type Vtable = IDirectMusicSynth8_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectMusicSynth8 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x53cab625_2711_4c9f_9de7_1b7f925f6fc8); -} #[repr(C)] #[doc(hidden)] pub struct IDirectMusicSynth8_Vtbl { @@ -663,9 +575,8 @@ pub struct IDirectMusicSynth8_Vtbl { pub Refresh: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwdownloadid: u32, dwflags: u32) -> ::windows_core::HRESULT, pub AssignChannelToBuses: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwchannelgroup: u32, dwchannel: u32, pdwbuses: *mut u32, cbuses: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectMusicSynthSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectMusicSynthSink, IDirectMusicSynthSink_Vtbl, 0x09823663_5c85_11d2_afa6_00aa0024d8b6); +::windows_core::imp::interface_hierarchy!(IDirectMusicSynthSink, ::windows_core::IUnknown); impl IDirectMusicSynthSink { pub unsafe fn Init(&self, psynth: P0) -> ::windows_core::Result<()> where @@ -708,13 +619,6 @@ impl IDirectMusicSynthSink { (::windows_core::Interface::vtable(self).GetDesiredBufferSize)(::windows_core::Interface::as_raw(self), pdwbuffersizeinsamples).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectMusicSynthSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectMusicSynthSink { - type Vtable = IDirectMusicSynthSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectMusicSynthSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x09823663_5c85_11d2_afa6_00aa0024d8b6); -} #[repr(C)] #[doc(hidden)] pub struct IDirectMusicSynthSink_Vtbl { @@ -731,9 +635,8 @@ pub struct IDirectMusicSynthSink_Vtbl { SetDirectSound: usize, pub GetDesiredBufferSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwbuffersizeinsamples: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectMusicThru(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectMusicThru, IDirectMusicThru_Vtbl, 0xced153e7_3606_11d2_b9f9_0000f875ac12); +::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 @@ -742,13 +645,6 @@ impl IDirectMusicThru { (::windows_core::Interface::vtable(self).ThruChannel)(::windows_core::Interface::as_raw(self), dwsourcechannelgroup, dwsourcechannel, dwdestinationchannelgroup, dwdestinationchannel, pdestinationport.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectMusicThru, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectMusicThru { - type Vtable = IDirectMusicThru_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectMusicThru { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xced153e7_3606_11d2_b9f9_0000f875ac12); -} #[repr(C)] #[doc(hidden)] pub struct IDirectMusicThru_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Media/Audio/DirectSound/impl.rs b/crates/libs/windows/src/Windows/Win32/Media/Audio/DirectSound/impl.rs index 8acb5fc31d..ce71425b98 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/Audio/DirectSound/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/Audio/DirectSound/impl.rs @@ -76,7 +76,7 @@ impl IDirectSound_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D\"`"] @@ -261,7 +261,7 @@ impl IDirectSound3DBuffer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D\"`"] @@ -413,7 +413,7 @@ impl IDirectSound3DListener_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDirectSound8_Impl: Sized + IDirectSound_Impl { @@ -436,7 +436,7 @@ impl IDirectSound8_Vtbl { Self { base__: IDirectSound_Vtbl::new::(), VerifyCertification: VerifyCertification:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDirectSoundBuffer_Impl: Sized { @@ -599,7 +599,7 @@ impl IDirectSoundBuffer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDirectSoundBuffer8_Impl: Sized + IDirectSoundBuffer_Impl { @@ -633,7 +633,7 @@ impl IDirectSoundBuffer8_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDirectSoundCapture_Impl: Sized { @@ -673,7 +673,7 @@ impl IDirectSoundCapture_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDirectSoundCaptureBuffer_Impl: Sized { @@ -761,7 +761,7 @@ impl IDirectSoundCaptureBuffer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDirectSoundCaptureBuffer8_Impl: Sized + IDirectSoundCaptureBuffer_Impl { @@ -788,7 +788,7 @@ impl IDirectSoundCaptureBuffer8_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDirectSoundCaptureFXAec_Impl: Sized { @@ -841,7 +841,7 @@ impl IDirectSoundCaptureFXAec_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDirectSoundCaptureFXNoiseSuppress_Impl: Sized { @@ -881,7 +881,7 @@ impl IDirectSoundCaptureFXNoiseSuppress_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDirectSoundFXChorus_Impl: Sized { @@ -908,7 +908,7 @@ impl IDirectSoundFXChorus_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDirectSoundFXCompressor_Impl: Sized { @@ -935,7 +935,7 @@ impl IDirectSoundFXCompressor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDirectSoundFXDistortion_Impl: Sized { @@ -962,7 +962,7 @@ impl IDirectSoundFXDistortion_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDirectSoundFXEcho_Impl: Sized { @@ -989,7 +989,7 @@ impl IDirectSoundFXEcho_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDirectSoundFXFlanger_Impl: Sized { @@ -1016,7 +1016,7 @@ impl IDirectSoundFXFlanger_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDirectSoundFXGargle_Impl: Sized { @@ -1049,7 +1049,7 @@ impl IDirectSoundFXGargle_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDirectSoundFXI3DL2Reverb_Impl: Sized { @@ -1116,7 +1116,7 @@ impl IDirectSoundFXI3DL2Reverb_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDirectSoundFXParamEq_Impl: Sized { @@ -1149,7 +1149,7 @@ impl IDirectSoundFXParamEq_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDirectSoundFXWavesReverb_Impl: Sized { @@ -1182,7 +1182,7 @@ impl IDirectSoundFXWavesReverb_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDirectSoundFullDuplex_Impl: Sized { @@ -1199,7 +1199,7 @@ impl IDirectSoundFullDuplex_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Initialize: Initialize:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDirectSoundNotify_Impl: Sized { @@ -1216,6 +1216,6 @@ impl IDirectSoundNotify_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), SetNotificationPositions: SetNotificationPositions:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 ba80f88812..515e8f0a91 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 @@ -65,9 +65,8 @@ pub unsafe fn GetDeviceID(pguidsrc: ::core::option::Option<*const ::windows_core let mut result__ = ::std::mem::zeroed(); GetDeviceID(::core::mem::transmute(pguidsrc.unwrap_or(::std::ptr::null())), &mut result__).from_abi(result__) } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectSound(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectSound, IDirectSound_Vtbl, 0x279afa83_4981_11ce_a521_0020af0be560); +::windows_core::imp::interface_hierarchy!(IDirectSound, ::windows_core::IUnknown); impl IDirectSound { pub unsafe fn CreateSoundBuffer(&self, pcdsbufferdesc: *const DSBUFFERDESC, ppdsbuffer: *mut ::core::option::Option, punkouter: P0) -> ::windows_core::Result<()> where @@ -105,13 +104,6 @@ impl IDirectSound { (::windows_core::Interface::vtable(self).Initialize)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pcguiddevice.unwrap_or(::std::ptr::null()))).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectSound, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectSound { - type Vtable = IDirectSound_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectSound { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x279afa83_4981_11ce_a521_0020af0be560); -} #[repr(C)] #[doc(hidden)] pub struct IDirectSound_Vtbl { @@ -125,9 +117,8 @@ pub struct IDirectSound_Vtbl { pub SetSpeakerConfig: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwspeakerconfig: u32) -> ::windows_core::HRESULT, pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcguiddevice: *const ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectSound3DBuffer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectSound3DBuffer, IDirectSound3DBuffer_Vtbl, 0x279afa86_4981_11ce_a521_0020af0be560); +::windows_core::imp::interface_hierarchy!(IDirectSound3DBuffer, ::windows_core::IUnknown); impl IDirectSound3DBuffer { #[doc = "Required features: `\"Win32_Graphics_Direct3D\"`"] #[cfg(feature = "Win32_Graphics_Direct3D")] @@ -201,13 +192,6 @@ impl IDirectSound3DBuffer { (::windows_core::Interface::vtable(self).SetVelocity)(::windows_core::Interface::as_raw(self), x, y, z, dwapply).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectSound3DBuffer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectSound3DBuffer { - type Vtable = IDirectSound3DBuffer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectSound3DBuffer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x279afa86_4981_11ce_a521_0020af0be560); -} #[repr(C)] #[doc(hidden)] pub struct IDirectSound3DBuffer_Vtbl { @@ -246,9 +230,8 @@ pub struct IDirectSound3DBuffer_Vtbl { pub SetPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, x: f32, y: f32, z: f32, dwapply: u32) -> ::windows_core::HRESULT, pub SetVelocity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, x: f32, y: f32, z: f32, dwapply: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectSound3DListener(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectSound3DListener, IDirectSound3DListener_Vtbl, 0x279afa84_4981_11ce_a521_0020af0be560); +::windows_core::imp::interface_hierarchy!(IDirectSound3DListener, ::windows_core::IUnknown); impl IDirectSound3DListener { #[doc = "Required features: `\"Win32_Graphics_Direct3D\"`"] #[cfg(feature = "Win32_Graphics_Direct3D")] @@ -311,13 +294,6 @@ impl IDirectSound3DListener { (::windows_core::Interface::vtable(self).CommitDeferredSettings)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectSound3DListener, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectSound3DListener { - type Vtable = IDirectSound3DListener_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectSound3DListener { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x279afa84_4981_11ce_a521_0020af0be560); -} #[repr(C)] #[doc(hidden)] pub struct IDirectSound3DListener_Vtbl { @@ -353,9 +329,8 @@ pub struct IDirectSound3DListener_Vtbl { pub SetVelocity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, x: f32, y: f32, z: f32, dwapply: u32) -> ::windows_core::HRESULT, pub CommitDeferredSettings: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectSound8(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectSound8, IDirectSound8_Vtbl, 0xc50a7e93_f395_4834_9ef6_7fa99de50966); +::windows_core::imp::interface_hierarchy!(IDirectSound8, ::windows_core::IUnknown, IDirectSound); impl IDirectSound8 { pub unsafe fn CreateSoundBuffer(&self, pcdsbufferdesc: *const DSBUFFERDESC, ppdsbuffer: *mut ::core::option::Option, punkouter: P0) -> ::windows_core::Result<()> where @@ -397,22 +372,14 @@ impl IDirectSound8 { (::windows_core::Interface::vtable(self).VerifyCertification)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDirectSound8, ::windows_core::IUnknown, IDirectSound); -unsafe impl ::windows_core::Interface for IDirectSound8 { - type Vtable = IDirectSound8_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectSound8 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc50a7e93_f395_4834_9ef6_7fa99de50966); -} #[repr(C)] #[doc(hidden)] pub struct IDirectSound8_Vtbl { pub base__: IDirectSound_Vtbl, pub VerifyCertification: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwcertified: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectSoundBuffer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectSoundBuffer, IDirectSoundBuffer_Vtbl, 0x279afa85_4981_11ce_a521_0020af0be560); +::windows_core::imp::interface_hierarchy!(IDirectSoundBuffer, ::windows_core::IUnknown); impl IDirectSoundBuffer { pub unsafe fn GetCaps(&self, pdsbuffercaps: *mut DSBCAPS) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetCaps)(::windows_core::Interface::as_raw(self), pdsbuffercaps).ok() @@ -476,13 +443,6 @@ impl IDirectSoundBuffer { (::windows_core::Interface::vtable(self).Restore)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectSoundBuffer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectSoundBuffer { - type Vtable = IDirectSoundBuffer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectSoundBuffer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x279afa85_4981_11ce_a521_0020af0be560); -} #[repr(C)] #[doc(hidden)] pub struct IDirectSoundBuffer_Vtbl { @@ -506,9 +466,8 @@ pub struct IDirectSoundBuffer_Vtbl { pub Unlock: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvaudioptr1: *const ::core::ffi::c_void, dwaudiobytes1: u32, pvaudioptr2: *const ::core::ffi::c_void, dwaudiobytes2: u32) -> ::windows_core::HRESULT, pub Restore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectSoundBuffer8(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectSoundBuffer8, IDirectSoundBuffer8_Vtbl, 0x6825a449_7524_4d82_920f_50e36ab3ab1e); +::windows_core::imp::interface_hierarchy!(IDirectSoundBuffer8, ::windows_core::IUnknown, IDirectSoundBuffer); impl IDirectSoundBuffer8 { pub unsafe fn GetCaps(&self, pdsbuffercaps: *mut DSBCAPS) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.GetCaps)(::windows_core::Interface::as_raw(self), pdsbuffercaps).ok() @@ -581,13 +540,6 @@ impl IDirectSoundBuffer8 { (::windows_core::Interface::vtable(self).GetObjectInPath)(::windows_core::Interface::as_raw(self), rguidobject, dwindex, rguidinterface, ppobject).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectSoundBuffer8, ::windows_core::IUnknown, IDirectSoundBuffer); -unsafe impl ::windows_core::Interface for IDirectSoundBuffer8 { - type Vtable = IDirectSoundBuffer8_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectSoundBuffer8 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6825a449_7524_4d82_920f_50e36ab3ab1e); -} #[repr(C)] #[doc(hidden)] pub struct IDirectSoundBuffer8_Vtbl { @@ -596,9 +548,8 @@ pub struct IDirectSoundBuffer8_Vtbl { pub AcquireResources: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwflags: u32, dweffectscount: u32, pdwresultcodes: *mut u32) -> ::windows_core::HRESULT, pub GetObjectInPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rguidobject: *const ::windows_core::GUID, dwindex: u32, rguidinterface: *const ::windows_core::GUID, ppobject: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectSoundCapture(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectSoundCapture, IDirectSoundCapture_Vtbl, 0xb0210781_89cd_11d0_af08_00a0c925cd16); +::windows_core::imp::interface_hierarchy!(IDirectSoundCapture, ::windows_core::IUnknown); impl IDirectSoundCapture { pub unsafe fn CreateCaptureBuffer(&self, pcdscbufferdesc: *const DSCBUFFERDESC, ppdscbuffer: *mut ::core::option::Option, punkouter: P0) -> ::windows_core::Result<()> where @@ -614,13 +565,6 @@ impl IDirectSoundCapture { (::windows_core::Interface::vtable(self).Initialize)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pcguiddevice.unwrap_or(::std::ptr::null()))).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectSoundCapture, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectSoundCapture { - type Vtable = IDirectSoundCapture_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectSoundCapture { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb0210781_89cd_11d0_af08_00a0c925cd16); -} #[repr(C)] #[doc(hidden)] pub struct IDirectSoundCapture_Vtbl { @@ -629,9 +573,8 @@ pub struct IDirectSoundCapture_Vtbl { pub GetCaps: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdsccaps: *mut DSCCAPS) -> ::windows_core::HRESULT, pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcguiddevice: *const ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectSoundCaptureBuffer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectSoundCaptureBuffer, IDirectSoundCaptureBuffer_Vtbl, 0xb0210782_89cd_11d0_af08_00a0c925cd16); +::windows_core::imp::interface_hierarchy!(IDirectSoundCaptureBuffer, ::windows_core::IUnknown); impl IDirectSoundCaptureBuffer { pub unsafe fn GetCaps(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -666,13 +609,6 @@ impl IDirectSoundCaptureBuffer { (::windows_core::Interface::vtable(self).Unlock)(::windows_core::Interface::as_raw(self), pvaudioptr1, dwaudiobytes1, ::core::mem::transmute(pvaudioptr2.unwrap_or(::std::ptr::null())), dwaudiobytes2).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectSoundCaptureBuffer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectSoundCaptureBuffer { - type Vtable = IDirectSoundCaptureBuffer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectSoundCaptureBuffer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb0210782_89cd_11d0_af08_00a0c925cd16); -} #[repr(C)] #[doc(hidden)] pub struct IDirectSoundCaptureBuffer_Vtbl { @@ -687,9 +623,8 @@ pub struct IDirectSoundCaptureBuffer_Vtbl { pub Stop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Unlock: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvaudioptr1: *const ::core::ffi::c_void, dwaudiobytes1: u32, pvaudioptr2: *const ::core::ffi::c_void, dwaudiobytes2: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectSoundCaptureBuffer8(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectSoundCaptureBuffer8, IDirectSoundCaptureBuffer8_Vtbl, 0x00990df4_0dbb_4872_833e_6d303e80aeb6); +::windows_core::imp::interface_hierarchy!(IDirectSoundCaptureBuffer8, ::windows_core::IUnknown, IDirectSoundCaptureBuffer); impl IDirectSoundCaptureBuffer8 { pub unsafe fn GetCaps(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -730,13 +665,6 @@ impl IDirectSoundCaptureBuffer8 { (::windows_core::Interface::vtable(self).GetFXStatus)(::windows_core::Interface::as_raw(self), pdwfxstatus.len().try_into().unwrap(), ::core::mem::transmute(pdwfxstatus.as_ptr())).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectSoundCaptureBuffer8, ::windows_core::IUnknown, IDirectSoundCaptureBuffer); -unsafe impl ::windows_core::Interface for IDirectSoundCaptureBuffer8 { - type Vtable = IDirectSoundCaptureBuffer8_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectSoundCaptureBuffer8 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00990df4_0dbb_4872_833e_6d303e80aeb6); -} #[repr(C)] #[doc(hidden)] pub struct IDirectSoundCaptureBuffer8_Vtbl { @@ -744,9 +672,8 @@ pub struct IDirectSoundCaptureBuffer8_Vtbl { pub GetObjectInPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rguidobject: *const ::windows_core::GUID, dwindex: u32, rguidinterface: *const ::windows_core::GUID, ppobject: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetFXStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dweffectscount: u32, pdwfxstatus: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectSoundCaptureFXAec(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectSoundCaptureFXAec, IDirectSoundCaptureFXAec_Vtbl, 0xad74143d_903d_4ab7_8066_28d363036d65); +::windows_core::imp::interface_hierarchy!(IDirectSoundCaptureFXAec, ::windows_core::IUnknown); impl IDirectSoundCaptureFXAec { pub unsafe fn SetAllParameters(&self, pdscfxaec: *const DSCFXAec) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetAllParameters)(::windows_core::Interface::as_raw(self), pdscfxaec).ok() @@ -763,13 +690,6 @@ impl IDirectSoundCaptureFXAec { (::windows_core::Interface::vtable(self).Reset)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectSoundCaptureFXAec, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectSoundCaptureFXAec { - type Vtable = IDirectSoundCaptureFXAec_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectSoundCaptureFXAec { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xad74143d_903d_4ab7_8066_28d363036d65); -} #[repr(C)] #[doc(hidden)] pub struct IDirectSoundCaptureFXAec_Vtbl { @@ -779,9 +699,8 @@ pub struct IDirectSoundCaptureFXAec_Vtbl { pub GetStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwstatus: *mut u32) -> ::windows_core::HRESULT, pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectSoundCaptureFXNoiseSuppress(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectSoundCaptureFXNoiseSuppress, IDirectSoundCaptureFXNoiseSuppress_Vtbl, 0xed311e41_fbae_4175_9625_cd0854f693ca); +::windows_core::imp::interface_hierarchy!(IDirectSoundCaptureFXNoiseSuppress, ::windows_core::IUnknown); impl IDirectSoundCaptureFXNoiseSuppress { pub unsafe fn SetAllParameters(&self, pcdscfxnoisesuppress: *const DSCFXNoiseSuppress) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetAllParameters)(::windows_core::Interface::as_raw(self), pcdscfxnoisesuppress).ok() @@ -794,13 +713,6 @@ impl IDirectSoundCaptureFXNoiseSuppress { (::windows_core::Interface::vtable(self).Reset)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectSoundCaptureFXNoiseSuppress, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectSoundCaptureFXNoiseSuppress { - type Vtable = IDirectSoundCaptureFXNoiseSuppress_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectSoundCaptureFXNoiseSuppress { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xed311e41_fbae_4175_9625_cd0854f693ca); -} #[repr(C)] #[doc(hidden)] pub struct IDirectSoundCaptureFXNoiseSuppress_Vtbl { @@ -809,9 +721,8 @@ pub struct IDirectSoundCaptureFXNoiseSuppress_Vtbl { pub GetAllParameters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdscfxnoisesuppress: *mut DSCFXNoiseSuppress) -> ::windows_core::HRESULT, pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectSoundFXChorus(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectSoundFXChorus, IDirectSoundFXChorus_Vtbl, 0x880842e3_145f_43e6_a934_a71806e50547); +::windows_core::imp::interface_hierarchy!(IDirectSoundFXChorus, ::windows_core::IUnknown); impl IDirectSoundFXChorus { pub unsafe fn SetAllParameters(&self, pcdsfxchorus: *const DSFXChorus) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetAllParameters)(::windows_core::Interface::as_raw(self), pcdsfxchorus).ok() @@ -820,13 +731,6 @@ impl IDirectSoundFXChorus { (::windows_core::Interface::vtable(self).GetAllParameters)(::windows_core::Interface::as_raw(self), pdsfxchorus).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectSoundFXChorus, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectSoundFXChorus { - type Vtable = IDirectSoundFXChorus_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectSoundFXChorus { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x880842e3_145f_43e6_a934_a71806e50547); -} #[repr(C)] #[doc(hidden)] pub struct IDirectSoundFXChorus_Vtbl { @@ -834,9 +738,8 @@ pub struct IDirectSoundFXChorus_Vtbl { pub SetAllParameters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcdsfxchorus: *const DSFXChorus) -> ::windows_core::HRESULT, pub GetAllParameters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdsfxchorus: *mut DSFXChorus) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectSoundFXCompressor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectSoundFXCompressor, IDirectSoundFXCompressor_Vtbl, 0x4bbd1154_62f6_4e2c_a15c_d3b6c417f7a0); +::windows_core::imp::interface_hierarchy!(IDirectSoundFXCompressor, ::windows_core::IUnknown); impl IDirectSoundFXCompressor { pub unsafe fn SetAllParameters(&self, pcdsfxcompressor: *const DSFXCompressor) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetAllParameters)(::windows_core::Interface::as_raw(self), pcdsfxcompressor).ok() @@ -845,13 +748,6 @@ impl IDirectSoundFXCompressor { (::windows_core::Interface::vtable(self).GetAllParameters)(::windows_core::Interface::as_raw(self), pdsfxcompressor).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectSoundFXCompressor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectSoundFXCompressor { - type Vtable = IDirectSoundFXCompressor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectSoundFXCompressor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4bbd1154_62f6_4e2c_a15c_d3b6c417f7a0); -} #[repr(C)] #[doc(hidden)] pub struct IDirectSoundFXCompressor_Vtbl { @@ -859,9 +755,8 @@ pub struct IDirectSoundFXCompressor_Vtbl { pub SetAllParameters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcdsfxcompressor: *const DSFXCompressor) -> ::windows_core::HRESULT, pub GetAllParameters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdsfxcompressor: *mut DSFXCompressor) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectSoundFXDistortion(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectSoundFXDistortion, IDirectSoundFXDistortion_Vtbl, 0x8ecf4326_455f_4d8b_bda9_8d5d3e9e3e0b); +::windows_core::imp::interface_hierarchy!(IDirectSoundFXDistortion, ::windows_core::IUnknown); impl IDirectSoundFXDistortion { pub unsafe fn SetAllParameters(&self, pcdsfxdistortion: *const DSFXDistortion) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetAllParameters)(::windows_core::Interface::as_raw(self), pcdsfxdistortion).ok() @@ -870,13 +765,6 @@ impl IDirectSoundFXDistortion { (::windows_core::Interface::vtable(self).GetAllParameters)(::windows_core::Interface::as_raw(self), pdsfxdistortion).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectSoundFXDistortion, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectSoundFXDistortion { - type Vtable = IDirectSoundFXDistortion_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectSoundFXDistortion { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8ecf4326_455f_4d8b_bda9_8d5d3e9e3e0b); -} #[repr(C)] #[doc(hidden)] pub struct IDirectSoundFXDistortion_Vtbl { @@ -884,9 +772,8 @@ pub struct IDirectSoundFXDistortion_Vtbl { pub SetAllParameters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcdsfxdistortion: *const DSFXDistortion) -> ::windows_core::HRESULT, pub GetAllParameters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdsfxdistortion: *mut DSFXDistortion) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectSoundFXEcho(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectSoundFXEcho, IDirectSoundFXEcho_Vtbl, 0x8bd28edf_50db_4e92_a2bd_445488d1ed42); +::windows_core::imp::interface_hierarchy!(IDirectSoundFXEcho, ::windows_core::IUnknown); impl IDirectSoundFXEcho { pub unsafe fn SetAllParameters(&self, pcdsfxecho: *const DSFXEcho) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetAllParameters)(::windows_core::Interface::as_raw(self), pcdsfxecho).ok() @@ -895,13 +782,6 @@ impl IDirectSoundFXEcho { (::windows_core::Interface::vtable(self).GetAllParameters)(::windows_core::Interface::as_raw(self), pdsfxecho).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectSoundFXEcho, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectSoundFXEcho { - type Vtable = IDirectSoundFXEcho_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectSoundFXEcho { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8bd28edf_50db_4e92_a2bd_445488d1ed42); -} #[repr(C)] #[doc(hidden)] pub struct IDirectSoundFXEcho_Vtbl { @@ -909,9 +789,8 @@ pub struct IDirectSoundFXEcho_Vtbl { pub SetAllParameters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcdsfxecho: *const DSFXEcho) -> ::windows_core::HRESULT, pub GetAllParameters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdsfxecho: *mut DSFXEcho) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectSoundFXFlanger(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectSoundFXFlanger, IDirectSoundFXFlanger_Vtbl, 0x903e9878_2c92_4072_9b2c_ea68f5396783); +::windows_core::imp::interface_hierarchy!(IDirectSoundFXFlanger, ::windows_core::IUnknown); impl IDirectSoundFXFlanger { pub unsafe fn SetAllParameters(&self, pcdsfxflanger: *const DSFXFlanger) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetAllParameters)(::windows_core::Interface::as_raw(self), pcdsfxflanger).ok() @@ -920,13 +799,6 @@ impl IDirectSoundFXFlanger { (::windows_core::Interface::vtable(self).GetAllParameters)(::windows_core::Interface::as_raw(self), pdsfxflanger).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectSoundFXFlanger, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectSoundFXFlanger { - type Vtable = IDirectSoundFXFlanger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectSoundFXFlanger { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x903e9878_2c92_4072_9b2c_ea68f5396783); -} #[repr(C)] #[doc(hidden)] pub struct IDirectSoundFXFlanger_Vtbl { @@ -934,9 +806,8 @@ pub struct IDirectSoundFXFlanger_Vtbl { pub SetAllParameters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcdsfxflanger: *const DSFXFlanger) -> ::windows_core::HRESULT, pub GetAllParameters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdsfxflanger: *mut DSFXFlanger) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectSoundFXGargle(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectSoundFXGargle, IDirectSoundFXGargle_Vtbl, 0xd616f352_d622_11ce_aac5_0020af0b99a3); +::windows_core::imp::interface_hierarchy!(IDirectSoundFXGargle, ::windows_core::IUnknown); impl IDirectSoundFXGargle { pub unsafe fn SetAllParameters(&self, pcdsfxgargle: *const DSFXGargle) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetAllParameters)(::windows_core::Interface::as_raw(self), pcdsfxgargle).ok() @@ -946,13 +817,6 @@ impl IDirectSoundFXGargle { (::windows_core::Interface::vtable(self).GetAllParameters)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDirectSoundFXGargle, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectSoundFXGargle { - type Vtable = IDirectSoundFXGargle_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectSoundFXGargle { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd616f352_d622_11ce_aac5_0020af0b99a3); -} #[repr(C)] #[doc(hidden)] pub struct IDirectSoundFXGargle_Vtbl { @@ -960,9 +824,8 @@ pub struct IDirectSoundFXGargle_Vtbl { pub SetAllParameters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcdsfxgargle: *const DSFXGargle) -> ::windows_core::HRESULT, pub GetAllParameters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdsfxgargle: *mut DSFXGargle) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectSoundFXI3DL2Reverb(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectSoundFXI3DL2Reverb, IDirectSoundFXI3DL2Reverb_Vtbl, 0x4b166a6a_0d66_43f3_80e3_ee6280dee1a4); +::windows_core::imp::interface_hierarchy!(IDirectSoundFXI3DL2Reverb, ::windows_core::IUnknown); impl IDirectSoundFXI3DL2Reverb { pub unsafe fn SetAllParameters(&self, pcdsfxi3dl2reverb: *const DSFXI3DL2Reverb) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetAllParameters)(::windows_core::Interface::as_raw(self), pcdsfxi3dl2reverb).ok() @@ -985,13 +848,6 @@ impl IDirectSoundFXI3DL2Reverb { (::windows_core::Interface::vtable(self).GetQuality)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDirectSoundFXI3DL2Reverb, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectSoundFXI3DL2Reverb { - type Vtable = IDirectSoundFXI3DL2Reverb_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectSoundFXI3DL2Reverb { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4b166a6a_0d66_43f3_80e3_ee6280dee1a4); -} #[repr(C)] #[doc(hidden)] pub struct IDirectSoundFXI3DL2Reverb_Vtbl { @@ -1003,9 +859,8 @@ pub struct IDirectSoundFXI3DL2Reverb_Vtbl { pub SetQuality: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lquality: i32) -> ::windows_core::HRESULT, pub GetQuality: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plquality: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectSoundFXParamEq(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectSoundFXParamEq, IDirectSoundFXParamEq_Vtbl, 0xc03ca9fe_fe90_4204_8078_82334cd177da); +::windows_core::imp::interface_hierarchy!(IDirectSoundFXParamEq, ::windows_core::IUnknown); impl IDirectSoundFXParamEq { pub unsafe fn SetAllParameters(&self, pcdsfxparameq: *const DSFXParamEq) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetAllParameters)(::windows_core::Interface::as_raw(self), pcdsfxparameq).ok() @@ -1015,13 +870,6 @@ impl IDirectSoundFXParamEq { (::windows_core::Interface::vtable(self).GetAllParameters)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDirectSoundFXParamEq, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectSoundFXParamEq { - type Vtable = IDirectSoundFXParamEq_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectSoundFXParamEq { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc03ca9fe_fe90_4204_8078_82334cd177da); -} #[repr(C)] #[doc(hidden)] pub struct IDirectSoundFXParamEq_Vtbl { @@ -1029,9 +877,8 @@ pub struct IDirectSoundFXParamEq_Vtbl { pub SetAllParameters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcdsfxparameq: *const DSFXParamEq) -> ::windows_core::HRESULT, pub GetAllParameters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdsfxparameq: *mut DSFXParamEq) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectSoundFXWavesReverb(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectSoundFXWavesReverb, IDirectSoundFXWavesReverb_Vtbl, 0x46858c3a_0dc6_45e3_b760_d4eef16cb325); +::windows_core::imp::interface_hierarchy!(IDirectSoundFXWavesReverb, ::windows_core::IUnknown); impl IDirectSoundFXWavesReverb { pub unsafe fn SetAllParameters(&self, pcdsfxwavesreverb: *const DSFXWavesReverb) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetAllParameters)(::windows_core::Interface::as_raw(self), pcdsfxwavesreverb).ok() @@ -1041,13 +888,6 @@ impl IDirectSoundFXWavesReverb { (::windows_core::Interface::vtable(self).GetAllParameters)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDirectSoundFXWavesReverb, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectSoundFXWavesReverb { - type Vtable = IDirectSoundFXWavesReverb_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectSoundFXWavesReverb { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x46858c3a_0dc6_45e3_b760_d4eef16cb325); -} #[repr(C)] #[doc(hidden)] pub struct IDirectSoundFXWavesReverb_Vtbl { @@ -1055,9 +895,8 @@ pub struct IDirectSoundFXWavesReverb_Vtbl { pub SetAllParameters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcdsfxwavesreverb: *const DSFXWavesReverb) -> ::windows_core::HRESULT, pub GetAllParameters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdsfxwavesreverb: *mut DSFXWavesReverb) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectSoundFullDuplex(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectSoundFullDuplex, IDirectSoundFullDuplex_Vtbl, 0xedcb4c7a_daab_4216_a42e_6c50596ddc1d); +::windows_core::imp::interface_hierarchy!(IDirectSoundFullDuplex, ::windows_core::IUnknown); impl IDirectSoundFullDuplex { pub unsafe fn Initialize(&self, pcaptureguid: *const ::windows_core::GUID, prenderguid: *const ::windows_core::GUID, lpdscbufferdesc: *const DSCBUFFERDESC, lpdsbufferdesc: *const DSBUFFERDESC, hwnd: P0, dwlevel: u32, lplpdirectsoundcapturebuffer8: *mut ::core::option::Option, lplpdirectsoundbuffer8: *mut ::core::option::Option) -> ::windows_core::Result<()> where @@ -1066,34 +905,19 @@ impl IDirectSoundFullDuplex { (::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::imp::interface_hierarchy!(IDirectSoundFullDuplex, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectSoundFullDuplex { - type Vtable = IDirectSoundFullDuplex_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectSoundFullDuplex { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xedcb4c7a_daab_4216_a42e_6c50596ddc1d); -} #[repr(C)] #[doc(hidden)] pub struct IDirectSoundFullDuplex_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcaptureguid: *const ::windows_core::GUID, prenderguid: *const ::windows_core::GUID, lpdscbufferdesc: *const DSCBUFFERDESC, lpdsbufferdesc: *const DSBUFFERDESC, hwnd: super::super::super::Foundation::HWND, dwlevel: u32, lplpdirectsoundcapturebuffer8: *mut *mut ::core::ffi::c_void, lplpdirectsoundbuffer8: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectSoundNotify(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectSoundNotify, IDirectSoundNotify_Vtbl, 0xb0210783_89cd_11d0_af08_00a0c925cd16); +::windows_core::imp::interface_hierarchy!(IDirectSoundNotify, ::windows_core::IUnknown); impl IDirectSoundNotify { pub unsafe fn SetNotificationPositions(&self, pcpositionnotifies: &[DSBPOSITIONNOTIFY]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetNotificationPositions)(::windows_core::Interface::as_raw(self), pcpositionnotifies.len().try_into().unwrap(), ::core::mem::transmute(pcpositionnotifies.as_ptr())).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectSoundNotify, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectSoundNotify { - type Vtable = IDirectSoundNotify_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectSoundNotify { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb0210783_89cd_11d0_af08_00a0c925cd16); -} #[repr(C)] #[doc(hidden)] pub struct IDirectSoundNotify_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Media/Audio/Endpoints/impl.rs b/crates/libs/windows/src/Windows/Win32/Media/Audio/Endpoints/impl.rs index 583d44f7e0..e420d3009d 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/Audio/Endpoints/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/Audio/Endpoints/impl.rs @@ -12,7 +12,7 @@ impl IAudioEndpointFormatControl_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), ResetToDefault: ResetToDefault:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Media_Audio_Apo\"`"] @@ -43,7 +43,7 @@ impl IAudioEndpointLastBufferControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAudioEndpointOffloadStreamMeter_Impl: Sized { @@ -82,7 +82,7 @@ impl IAudioEndpointOffloadStreamMeter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAudioEndpointOffloadStreamMute_Impl: Sized { @@ -115,7 +115,7 @@ impl IAudioEndpointOffloadStreamMute_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Media_KernelStreaming\"`"] @@ -165,7 +165,7 @@ impl IAudioEndpointOffloadStreamVolume_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAudioEndpointVolume_Impl: Sized { @@ -346,7 +346,7 @@ impl IAudioEndpointVolume_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAudioEndpointVolumeCallback_Impl: Sized { @@ -363,7 +363,7 @@ impl IAudioEndpointVolumeCallback_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnNotify: OnNotify:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAudioEndpointVolumeEx_Impl: Sized + IAudioEndpointVolume_Impl { @@ -380,7 +380,7 @@ impl IAudioEndpointVolumeEx_Vtbl { Self { base__: IAudioEndpointVolume_Vtbl::new::(), GetVolumeRangeChannel: GetVolumeRangeChannel:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IAudioLfxControl_Impl: Sized { @@ -413,7 +413,7 @@ impl IAudioLfxControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAudioMeterInformation_Impl: Sized { @@ -472,7 +472,7 @@ impl IAudioMeterInformation_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IHardwareAudioEngineBase_Impl: Sized { @@ -532,6 +532,6 @@ impl IHardwareAudioEngineBase_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 5863a8dc3b..993c9ce42c 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 @@ -1,27 +1,18 @@ -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioEndpointFormatControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioEndpointFormatControl, IAudioEndpointFormatControl_Vtbl, 0x784cfd40_9f89_456e_a1a6_873b006a664e); +::windows_core::imp::interface_hierarchy!(IAudioEndpointFormatControl, ::windows_core::IUnknown); impl IAudioEndpointFormatControl { pub unsafe fn ResetToDefault(&self, resetflags: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).ResetToDefault)(::windows_core::Interface::as_raw(self), resetflags).ok() } } -::windows_core::imp::interface_hierarchy!(IAudioEndpointFormatControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioEndpointFormatControl { - type Vtable = IAudioEndpointFormatControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioEndpointFormatControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x784cfd40_9f89_456e_a1a6_873b006a664e); -} #[repr(C)] #[doc(hidden)] pub struct IAudioEndpointFormatControl_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub ResetToDefault: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, resetflags: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioEndpointLastBufferControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioEndpointLastBufferControl, IAudioEndpointLastBufferControl_Vtbl, 0xf8520dd3_8f9d_4437_9861_62f584c33dd6); +::windows_core::imp::interface_hierarchy!(IAudioEndpointLastBufferControl, ::windows_core::IUnknown); impl IAudioEndpointLastBufferControl { pub unsafe fn IsLastBufferControlSupported(&self) -> super::super::super::Foundation::BOOL { (::windows_core::Interface::vtable(self).IsLastBufferControlSupported)(::windows_core::Interface::as_raw(self)) @@ -32,13 +23,6 @@ impl IAudioEndpointLastBufferControl { (::windows_core::Interface::vtable(self).ReleaseOutputDataPointerForLastBuffer)(::windows_core::Interface::as_raw(self), pconnectionproperty) } } -::windows_core::imp::interface_hierarchy!(IAudioEndpointLastBufferControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioEndpointLastBufferControl { - type Vtable = IAudioEndpointLastBufferControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioEndpointLastBufferControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf8520dd3_8f9d_4437_9861_62f584c33dd6); -} #[repr(C)] #[doc(hidden)] pub struct IAudioEndpointLastBufferControl_Vtbl { @@ -49,9 +33,8 @@ pub struct IAudioEndpointLastBufferControl_Vtbl { #[cfg(not(feature = "Win32_Media_Audio_Apo"))] ReleaseOutputDataPointerForLastBuffer: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioEndpointOffloadStreamMeter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioEndpointOffloadStreamMeter, IAudioEndpointOffloadStreamMeter_Vtbl, 0xe1546dce_9dd1_418b_9ab2_348ced161c86); +::windows_core::imp::interface_hierarchy!(IAudioEndpointOffloadStreamMeter, ::windows_core::IUnknown); impl IAudioEndpointOffloadStreamMeter { pub unsafe fn GetMeterChannelCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -62,13 +45,6 @@ impl IAudioEndpointOffloadStreamMeter { (::windows_core::Interface::vtable(self).GetMeteringData)(::windows_core::Interface::as_raw(self), u32channelcount, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAudioEndpointOffloadStreamMeter, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioEndpointOffloadStreamMeter { - type Vtable = IAudioEndpointOffloadStreamMeter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioEndpointOffloadStreamMeter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe1546dce_9dd1_418b_9ab2_348ced161c86); -} #[repr(C)] #[doc(hidden)] pub struct IAudioEndpointOffloadStreamMeter_Vtbl { @@ -76,9 +52,8 @@ pub struct IAudioEndpointOffloadStreamMeter_Vtbl { pub GetMeterChannelCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pu32channelcount: *mut u32) -> ::windows_core::HRESULT, pub GetMeteringData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, u32channelcount: u32, pf32peakvalues: *mut f32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioEndpointOffloadStreamMute(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioEndpointOffloadStreamMute, IAudioEndpointOffloadStreamMute_Vtbl, 0xdfe21355_5ec2_40e0_8d6b_710ac3c00249); +::windows_core::imp::interface_hierarchy!(IAudioEndpointOffloadStreamMute, ::windows_core::IUnknown); impl IAudioEndpointOffloadStreamMute { pub unsafe fn SetMute(&self, bmuted: u8) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetMute)(::windows_core::Interface::as_raw(self), bmuted).ok() @@ -88,13 +63,6 @@ impl IAudioEndpointOffloadStreamMute { (::windows_core::Interface::vtable(self).GetMute)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAudioEndpointOffloadStreamMute, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioEndpointOffloadStreamMute { - type Vtable = IAudioEndpointOffloadStreamMute_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioEndpointOffloadStreamMute { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdfe21355_5ec2_40e0_8d6b_710ac3c00249); -} #[repr(C)] #[doc(hidden)] pub struct IAudioEndpointOffloadStreamMute_Vtbl { @@ -102,9 +70,8 @@ pub struct IAudioEndpointOffloadStreamMute_Vtbl { pub SetMute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bmuted: u8) -> ::windows_core::HRESULT, pub GetMute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbmuted: *mut u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioEndpointOffloadStreamVolume(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioEndpointOffloadStreamVolume, IAudioEndpointOffloadStreamVolume_Vtbl, 0x64f1dd49_71ca_4281_8672_3a9eddd1d0b6); +::windows_core::imp::interface_hierarchy!(IAudioEndpointOffloadStreamVolume, ::windows_core::IUnknown); impl IAudioEndpointOffloadStreamVolume { pub unsafe fn GetVolumeChannelCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -120,13 +87,6 @@ impl IAudioEndpointOffloadStreamVolume { (::windows_core::Interface::vtable(self).GetChannelVolumes)(::windows_core::Interface::as_raw(self), u32channelcount, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAudioEndpointOffloadStreamVolume, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioEndpointOffloadStreamVolume { - type Vtable = IAudioEndpointOffloadStreamVolume_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioEndpointOffloadStreamVolume { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x64f1dd49_71ca_4281_8672_3a9eddd1d0b6); -} #[repr(C)] #[doc(hidden)] pub struct IAudioEndpointOffloadStreamVolume_Vtbl { @@ -138,9 +98,8 @@ pub struct IAudioEndpointOffloadStreamVolume_Vtbl { SetChannelVolumes: usize, pub GetChannelVolumes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, u32channelcount: u32, pf32volumes: *mut f32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioEndpointVolume(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioEndpointVolume, IAudioEndpointVolume_Vtbl, 0x5cdf2c82_841e_4546_9722_0cf74078229a); +::windows_core::imp::interface_hierarchy!(IAudioEndpointVolume, ::windows_core::IUnknown); impl IAudioEndpointVolume { pub unsafe fn RegisterControlChangeNotify(&self, pnotify: P0) -> ::windows_core::Result<()> where @@ -213,13 +172,6 @@ impl IAudioEndpointVolume { (::windows_core::Interface::vtable(self).GetVolumeRange)(::windows_core::Interface::as_raw(self), pflvolumemindb, pflvolumemaxdb, pflvolumeincrementdb).ok() } } -::windows_core::imp::interface_hierarchy!(IAudioEndpointVolume, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioEndpointVolume { - type Vtable = IAudioEndpointVolume_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioEndpointVolume { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5cdf2c82_841e_4546_9722_0cf74078229a); -} #[repr(C)] #[doc(hidden)] pub struct IAudioEndpointVolume_Vtbl { @@ -243,30 +195,21 @@ pub struct IAudioEndpointVolume_Vtbl { pub QueryHardwareSupport: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwhardwaresupportmask: *mut u32) -> ::windows_core::HRESULT, pub GetVolumeRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pflvolumemindb: *mut f32, pflvolumemaxdb: *mut f32, pflvolumeincrementdb: *mut f32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioEndpointVolumeCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioEndpointVolumeCallback, IAudioEndpointVolumeCallback_Vtbl, 0x657804fa_d6ad_4496_8a60_352752af4f89); +::windows_core::imp::interface_hierarchy!(IAudioEndpointVolumeCallback, ::windows_core::IUnknown); impl IAudioEndpointVolumeCallback { pub unsafe fn OnNotify(&self, pnotify: *mut super::AUDIO_VOLUME_NOTIFICATION_DATA) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnNotify)(::windows_core::Interface::as_raw(self), pnotify).ok() } } -::windows_core::imp::interface_hierarchy!(IAudioEndpointVolumeCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioEndpointVolumeCallback { - type Vtable = IAudioEndpointVolumeCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioEndpointVolumeCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x657804fa_d6ad_4496_8a60_352752af4f89); -} #[repr(C)] #[doc(hidden)] pub struct IAudioEndpointVolumeCallback_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnNotify: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pnotify: *mut super::AUDIO_VOLUME_NOTIFICATION_DATA) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioEndpointVolumeEx(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioEndpointVolumeEx, IAudioEndpointVolumeEx_Vtbl, 0x66e11784_f695_4f28_a505_a7080081a78f); +::windows_core::imp::interface_hierarchy!(IAudioEndpointVolumeEx, ::windows_core::IUnknown, IAudioEndpointVolume); impl IAudioEndpointVolumeEx { pub unsafe fn RegisterControlChangeNotify(&self, pnotify: P0) -> ::windows_core::Result<()> where @@ -342,22 +285,14 @@ impl IAudioEndpointVolumeEx { (::windows_core::Interface::vtable(self).GetVolumeRangeChannel)(::windows_core::Interface::as_raw(self), ichannel, pflvolumemindb, pflvolumemaxdb, pflvolumeincrementdb).ok() } } -::windows_core::imp::interface_hierarchy!(IAudioEndpointVolumeEx, ::windows_core::IUnknown, IAudioEndpointVolume); -unsafe impl ::windows_core::Interface for IAudioEndpointVolumeEx { - type Vtable = IAudioEndpointVolumeEx_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioEndpointVolumeEx { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x66e11784_f695_4f28_a505_a7080081a78f); -} #[repr(C)] #[doc(hidden)] pub struct IAudioEndpointVolumeEx_Vtbl { pub base__: IAudioEndpointVolume_Vtbl, pub GetVolumeRangeChannel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ichannel: u32, pflvolumemindb: *mut f32, pflvolumemaxdb: *mut f32, pflvolumeincrementdb: *mut f32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioLfxControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioLfxControl, IAudioLfxControl_Vtbl, 0x076a6922_d802_4f83_baf6_409d9ca11bfe); +::windows_core::imp::interface_hierarchy!(IAudioLfxControl, ::windows_core::IUnknown); impl IAudioLfxControl { pub unsafe fn SetLocalEffectsState(&self, benabled: P0) -> ::windows_core::Result<()> where @@ -370,13 +305,6 @@ impl IAudioLfxControl { (::windows_core::Interface::vtable(self).GetLocalEffectsState)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAudioLfxControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioLfxControl { - type Vtable = IAudioLfxControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioLfxControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x076a6922_d802_4f83_baf6_409d9ca11bfe); -} #[repr(C)] #[doc(hidden)] pub struct IAudioLfxControl_Vtbl { @@ -384,9 +312,8 @@ pub struct IAudioLfxControl_Vtbl { pub SetLocalEffectsState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, benabled: super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub GetLocalEffectsState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbenabled: *mut super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioMeterInformation(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioMeterInformation, IAudioMeterInformation_Vtbl, 0xc02216f6_8c67_4b5b_9d00_d008e73e0064); +::windows_core::imp::interface_hierarchy!(IAudioMeterInformation, ::windows_core::IUnknown); impl IAudioMeterInformation { pub unsafe fn GetPeakValue(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -404,13 +331,6 @@ impl IAudioMeterInformation { (::windows_core::Interface::vtable(self).QueryHardwareSupport)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAudioMeterInformation, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioMeterInformation { - type Vtable = IAudioMeterInformation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioMeterInformation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc02216f6_8c67_4b5b_9d00_d008e73e0064); -} #[repr(C)] #[doc(hidden)] pub struct IAudioMeterInformation_Vtbl { @@ -420,9 +340,8 @@ pub struct IAudioMeterInformation_Vtbl { pub GetChannelsPeakValues: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, u32channelcount: u32, afpeakvalues: *mut f32) -> ::windows_core::HRESULT, pub QueryHardwareSupport: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwhardwaresupportmask: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHardwareAudioEngineBase(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IHardwareAudioEngineBase, IHardwareAudioEngineBase_Vtbl, 0xeddce3e4_f3c1_453a_b461_223563cbd886); +::windows_core::imp::interface_hierarchy!(IHardwareAudioEngineBase, ::windows_core::IUnknown); impl IHardwareAudioEngineBase { pub unsafe fn GetAvailableOffloadConnectorCount(&self, _pwstrdeviceid: P0, _uconnectorid: u32) -> ::windows_core::Result where @@ -459,13 +378,6 @@ impl IHardwareAudioEngineBase { (::windows_core::Interface::vtable(self).GetGfxState)(::windows_core::Interface::as_raw(self), pdevice.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IHardwareAudioEngineBase, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHardwareAudioEngineBase { - type Vtable = IHardwareAudioEngineBase_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHardwareAudioEngineBase { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeddce3e4_f3c1_453a_b461_223563cbd886); -} #[repr(C)] #[doc(hidden)] pub struct IHardwareAudioEngineBase_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Media/Audio/XAudio2/impl.rs b/crates/libs/windows/src/Windows/Win32/Media/Audio/XAudio2/impl.rs index b52ad02c36..cc92dbd765 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/Audio/XAudio2/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/Audio/XAudio2/impl.rs @@ -84,7 +84,7 @@ impl IXAPO_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IXAPOHrtfParameters_Impl: Sized { @@ -125,7 +125,7 @@ impl IXAPOHrtfParameters_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IXAPOParameters_Impl: Sized { @@ -152,7 +152,7 @@ impl IXAPOParameters_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IXAudio2_Impl: Sized { @@ -235,7 +235,7 @@ impl IXAudio2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IXAudio2EngineCallback_Impl: Sized { @@ -299,7 +299,7 @@ impl IXAudio2Extension_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IXAudio2MasteringVoice_Impl: Sized + IXAudio2Voice_Impl { 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 e2579185c1..9d0d4de0f7 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 @@ -26,9 +26,8 @@ pub unsafe fn XAudio2CreateWithVersionInfo(ppxaudio2: *mut ::core::option::Optio ::windows_targets::link!("xaudio2_8.dll" "system" fn XAudio2CreateWithVersionInfo(ppxaudio2 : *mut * mut::core::ffi::c_void, flags : u32, xaudio2processor : u32, ntddiversion : u32) -> ::windows_core::HRESULT); XAudio2CreateWithVersionInfo(::core::mem::transmute(ppxaudio2), flags, xaudio2processor, ntddiversion).ok() } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXAPO(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXAPO, IXAPO_Vtbl, 0xa410b984_9839_4819_a0be_2856ae6b3adb); +::windows_core::imp::interface_hierarchy!(IXAPO, ::windows_core::IUnknown); impl IXAPO { pub unsafe fn GetRegistrationProperties(&self) -> ::windows_core::Result<*mut XAPO_REGISTRATION_PROPERTIES> { let mut result__ = ::std::mem::zeroed(); @@ -65,13 +64,6 @@ impl IXAPO { (::windows_core::Interface::vtable(self).CalcOutputFrames)(::windows_core::Interface::as_raw(self), inputframecount) } } -::windows_core::imp::interface_hierarchy!(IXAPO, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXAPO { - type Vtable = IXAPO_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXAPO { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa410b984_9839_4819_a0be_2856ae6b3adb); -} #[repr(C)] #[doc(hidden)] pub struct IXAPO_Vtbl { @@ -87,9 +79,8 @@ pub struct IXAPO_Vtbl { pub CalcInputFrames: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, outputframecount: u32) -> u32, pub CalcOutputFrames: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, inputframecount: u32) -> u32, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXAPOHrtfParameters(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXAPOHrtfParameters, IXAPOHrtfParameters_Vtbl, 0x15b3cd66_e9de_4464_b6e6_2bc3cf63d455); +::windows_core::imp::interface_hierarchy!(IXAPOHrtfParameters, ::windows_core::IUnknown); impl IXAPOHrtfParameters { pub unsafe fn SetSourcePosition(&self, position: *const HrtfPosition) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetSourcePosition)(::windows_core::Interface::as_raw(self), position).ok() @@ -104,13 +95,6 @@ impl IXAPOHrtfParameters { (::windows_core::Interface::vtable(self).SetEnvironment)(::windows_core::Interface::as_raw(self), environment).ok() } } -::windows_core::imp::interface_hierarchy!(IXAPOHrtfParameters, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXAPOHrtfParameters { - type Vtable = IXAPOHrtfParameters_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXAPOHrtfParameters { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x15b3cd66_e9de_4464_b6e6_2bc3cf63d455); -} #[repr(C)] #[doc(hidden)] pub struct IXAPOHrtfParameters_Vtbl { @@ -120,9 +104,8 @@ pub struct IXAPOHrtfParameters_Vtbl { pub SetSourceGain: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, gain: f32) -> ::windows_core::HRESULT, pub SetEnvironment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, environment: HrtfEnvironment) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXAPOParameters(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXAPOParameters, IXAPOParameters_Vtbl, 0x26d95c66_80f2_499a_ad54_5ae7f01c6d98); +::windows_core::imp::interface_hierarchy!(IXAPOParameters, ::windows_core::IUnknown); impl IXAPOParameters { pub unsafe fn SetParameters(&self, pparameters: *const ::core::ffi::c_void, parameterbytesize: u32) { (::windows_core::Interface::vtable(self).SetParameters)(::windows_core::Interface::as_raw(self), pparameters, parameterbytesize) @@ -131,13 +114,6 @@ impl IXAPOParameters { (::windows_core::Interface::vtable(self).GetParameters)(::windows_core::Interface::as_raw(self), pparameters, parameterbytesize) } } -::windows_core::imp::interface_hierarchy!(IXAPOParameters, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXAPOParameters { - type Vtable = IXAPOParameters_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXAPOParameters { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x26d95c66_80f2_499a_ad54_5ae7f01c6d98); -} #[repr(C)] #[doc(hidden)] pub struct IXAPOParameters_Vtbl { @@ -145,9 +121,8 @@ pub struct IXAPOParameters_Vtbl { pub SetParameters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pparameters: *const ::core::ffi::c_void, parameterbytesize: u32), pub GetParameters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pparameters: *mut ::core::ffi::c_void, parameterbytesize: u32), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXAudio2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXAudio2, IXAudio2_Vtbl, 0x2b02e3cf_2e0b_4ec3_be45_1b2a3fe7210d); +::windows_core::imp::interface_hierarchy!(IXAudio2, ::windows_core::IUnknown); impl IXAudio2 { pub unsafe fn RegisterForCallbacks(&self, pcallback: P0) -> ::windows_core::Result<()> where @@ -192,13 +167,6 @@ impl IXAudio2 { (::windows_core::Interface::vtable(self).SetDebugConfiguration)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pdebugconfiguration.unwrap_or(::std::ptr::null())), ::core::mem::transmute(preserved.unwrap_or(::std::ptr::null()))) } } -::windows_core::imp::interface_hierarchy!(IXAudio2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXAudio2 { - type Vtable = IXAudio2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXAudio2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2b02e3cf_2e0b_4ec3_be45_1b2a3fe7210d); -} #[repr(C)] #[doc(hidden)] pub struct IXAudio2_Vtbl { @@ -214,9 +182,7 @@ pub struct IXAudio2_Vtbl { pub GetPerformanceData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pperfdata: *mut XAUDIO2_PERFORMANCE_DATA), pub SetDebugConfiguration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdebugconfiguration: *const XAUDIO2_DEBUG_CONFIGURATION, preserved: *const ::core::ffi::c_void), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXAudio2EngineCallback(::std::ptr::NonNull<::std::ffi::c_void>); +::windows_core::imp::interface!(IXAudio2EngineCallback, IXAudio2EngineCallback_Vtbl); impl IXAudio2EngineCallback { pub unsafe fn OnProcessingPassStart(&self) { (::windows_core::Interface::vtable(self).OnProcessingPassStart)(::windows_core::Interface::as_raw(self)) @@ -228,9 +194,6 @@ impl IXAudio2EngineCallback { (::windows_core::Interface::vtable(self).OnCriticalError)(::windows_core::Interface::as_raw(self), error) } } -unsafe impl ::windows_core::Interface for IXAudio2EngineCallback { - type Vtable = IXAudio2EngineCallback_Vtbl; -} #[repr(C)] #[doc(hidden)] pub struct IXAudio2EngineCallback_Vtbl { @@ -238,9 +201,8 @@ pub struct IXAudio2EngineCallback_Vtbl { pub OnProcessingPassEnd: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), pub OnCriticalError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, error: ::windows_core::HRESULT), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXAudio2Extension(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXAudio2Extension, IXAudio2Extension_Vtbl, 0x84ac29bb_d619_44d2_b197_e4acf7df3ed6); +::windows_core::imp::interface_hierarchy!(IXAudio2Extension, ::windows_core::IUnknown); impl IXAudio2Extension { pub unsafe fn GetProcessingQuantum(&self, quantumnumerator: *mut u32, quantumdenominator: *mut u32) { (::windows_core::Interface::vtable(self).GetProcessingQuantum)(::windows_core::Interface::as_raw(self), quantumnumerator, quantumdenominator) @@ -249,13 +211,6 @@ impl IXAudio2Extension { (::windows_core::Interface::vtable(self).GetProcessor)(::windows_core::Interface::as_raw(self), processor) } } -::windows_core::imp::interface_hierarchy!(IXAudio2Extension, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXAudio2Extension { - type Vtable = IXAudio2Extension_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXAudio2Extension { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x84ac29bb_d619_44d2_b197_e4acf7df3ed6); -} #[repr(C)] #[doc(hidden)] pub struct IXAudio2Extension_Vtbl { @@ -263,9 +218,8 @@ pub struct IXAudio2Extension_Vtbl { pub GetProcessingQuantum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, quantumnumerator: *mut u32, quantumdenominator: *mut u32), pub GetProcessor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, processor: *mut u32), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXAudio2MasteringVoice(::std::ptr::NonNull<::std::ffi::c_void>); +::windows_core::imp::interface!(IXAudio2MasteringVoice, IXAudio2MasteringVoice_Vtbl); +::windows_core::imp::interface_hierarchy!(IXAudio2MasteringVoice, IXAudio2Voice); impl IXAudio2MasteringVoice { pub unsafe fn GetVoiceDetails(&self) -> XAUDIO2_VOICE_DETAILS { let mut result__ = ::std::mem::zeroed(); @@ -353,19 +307,14 @@ impl IXAudio2MasteringVoice { (::windows_core::Interface::vtable(self).GetChannelMask)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IXAudio2MasteringVoice, IXAudio2Voice); -unsafe impl ::windows_core::Interface for IXAudio2MasteringVoice { - type Vtable = IXAudio2MasteringVoice_Vtbl; -} #[repr(C)] #[doc(hidden)] pub struct IXAudio2MasteringVoice_Vtbl { pub base__: IXAudio2Voice_Vtbl, pub GetChannelMask: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pchannelmask: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXAudio2SourceVoice(::std::ptr::NonNull<::std::ffi::c_void>); +::windows_core::imp::interface!(IXAudio2SourceVoice, IXAudio2SourceVoice_Vtbl); +::windows_core::imp::interface_hierarchy!(IXAudio2SourceVoice, IXAudio2Voice); impl IXAudio2SourceVoice { pub unsafe fn GetVoiceDetails(&self) -> XAUDIO2_VOICE_DETAILS { let mut result__ = ::std::mem::zeroed(); @@ -481,10 +430,6 @@ impl IXAudio2SourceVoice { (::windows_core::Interface::vtable(self).SetSourceSampleRate)(::windows_core::Interface::as_raw(self), newsourcesamplerate).ok() } } -::windows_core::imp::interface_hierarchy!(IXAudio2SourceVoice, IXAudio2Voice); -unsafe impl ::windows_core::Interface for IXAudio2SourceVoice { - type Vtable = IXAudio2SourceVoice_Vtbl; -} #[repr(C)] #[doc(hidden)] pub struct IXAudio2SourceVoice_Vtbl { @@ -500,9 +445,8 @@ pub struct IXAudio2SourceVoice_Vtbl { pub GetFrequencyRatio: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pratio: *mut f32), pub SetSourceSampleRate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newsourcesamplerate: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXAudio2SubmixVoice(::std::ptr::NonNull<::std::ffi::c_void>); +::windows_core::imp::interface!(IXAudio2SubmixVoice, IXAudio2SubmixVoice_Vtbl); +::windows_core::imp::interface_hierarchy!(IXAudio2SubmixVoice, IXAudio2Voice); impl IXAudio2SubmixVoice { pub unsafe fn GetVoiceDetails(&self) -> XAUDIO2_VOICE_DETAILS { let mut result__ = ::std::mem::zeroed(); @@ -586,18 +530,12 @@ impl IXAudio2SubmixVoice { (::windows_core::Interface::vtable(self).base__.DestroyVoice)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(IXAudio2SubmixVoice, IXAudio2Voice); -unsafe impl ::windows_core::Interface for IXAudio2SubmixVoice { - type Vtable = IXAudio2SubmixVoice_Vtbl; -} #[repr(C)] #[doc(hidden)] pub struct IXAudio2SubmixVoice_Vtbl { pub base__: IXAudio2Voice_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXAudio2Voice(::std::ptr::NonNull<::std::ffi::c_void>); +::windows_core::imp::interface!(IXAudio2Voice, IXAudio2Voice_Vtbl); impl IXAudio2Voice { pub unsafe fn GetVoiceDetails(&self) -> XAUDIO2_VOICE_DETAILS { let mut result__ = ::std::mem::zeroed(); @@ -681,9 +619,6 @@ impl IXAudio2Voice { (::windows_core::Interface::vtable(self).DestroyVoice)(::windows_core::Interface::as_raw(self)) } } -unsafe impl ::windows_core::Interface for IXAudio2Voice { - type Vtable = IXAudio2Voice_Vtbl; -} #[repr(C)] #[doc(hidden)] pub struct IXAudio2Voice_Vtbl { @@ -707,9 +642,7 @@ pub struct IXAudio2Voice_Vtbl { pub GetOutputMatrix: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdestinationvoice: *mut ::core::ffi::c_void, sourcechannels: u32, destinationchannels: u32, plevelmatrix: *mut f32), pub DestroyVoice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXAudio2VoiceCallback(::std::ptr::NonNull<::std::ffi::c_void>); +::windows_core::imp::interface!(IXAudio2VoiceCallback, IXAudio2VoiceCallback_Vtbl); impl IXAudio2VoiceCallback { pub unsafe fn OnVoiceProcessingPassStart(&self, bytesrequired: u32) { (::windows_core::Interface::vtable(self).OnVoiceProcessingPassStart)(::windows_core::Interface::as_raw(self), bytesrequired) @@ -733,9 +666,6 @@ impl IXAudio2VoiceCallback { (::windows_core::Interface::vtable(self).OnVoiceError)(::windows_core::Interface::as_raw(self), pbuffercontext, error) } } -unsafe impl ::windows_core::Interface for IXAudio2VoiceCallback { - type Vtable = IXAudio2VoiceCallback_Vtbl; -} #[repr(C)] #[doc(hidden)] pub struct IXAudio2VoiceCallback_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Media/Audio/impl.rs b/crates/libs/windows/src/Windows/Win32/Media/Audio/impl.rs index 5e1fe7fa57..afee7fff02 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/Audio/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/Audio/impl.rs @@ -15,7 +15,7 @@ impl IAcousticEchoCancellationControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IActivateAudioInterfaceAsyncOperation_Impl: Sized { @@ -32,7 +32,7 @@ impl IActivateAudioInterfaceAsyncOperation_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetActivateResult: GetActivateResult:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IActivateAudioInterfaceCompletionHandler_Impl: Sized { @@ -49,7 +49,7 @@ impl IActivateAudioInterfaceCompletionHandler_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), ActivateCompleted: ActivateCompleted:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAudioAmbisonicsControl_Impl: Sized { @@ -96,7 +96,7 @@ impl IAudioAmbisonicsControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAudioAutoGainControl_Impl: Sized { @@ -129,7 +129,7 @@ impl IAudioAutoGainControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAudioBass_Impl: Sized + IPerChannelDbLevel_Impl {} @@ -139,7 +139,7 @@ impl IAudioBass_Vtbl { Self { base__: IPerChannelDbLevel_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IAudioCaptureClient_Impl: Sized { @@ -179,7 +179,7 @@ impl IAudioCaptureClient_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAudioChannelConfig_Impl: Sized { @@ -212,7 +212,7 @@ impl IAudioChannelConfig_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAudioClient_Impl: Sized { @@ -333,7 +333,7 @@ impl IAudioClient_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAudioClient2_Impl: Sized + IAudioClient_Impl { @@ -373,7 +373,7 @@ impl IAudioClient2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IAudioClient3_Impl: Sized + IAudioClient2_Impl { @@ -407,7 +407,7 @@ impl IAudioClient3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IAudioClientDuckingControl_Impl: Sized { @@ -427,7 +427,7 @@ impl IAudioClientDuckingControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAudioClock_Impl: Sized { @@ -473,7 +473,7 @@ impl IAudioClock_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAudioClock2_Impl: Sized { @@ -490,7 +490,7 @@ impl IAudioClock2_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetDevicePosition: GetDevicePosition:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAudioClockAdjustment_Impl: Sized { @@ -507,7 +507,7 @@ impl IAudioClockAdjustment_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), SetSampleRate: SetSampleRate:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAudioEffectsChangedNotificationClient_Impl: Sized { @@ -524,7 +524,7 @@ impl IAudioEffectsChangedNotificationClient_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnAudioEffectsChanged: OnAudioEffectsChanged:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAudioEffectsManager_Impl: Sized { @@ -565,7 +565,7 @@ impl IAudioEffectsManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAudioFormatEnumerator_Impl: Sized { @@ -604,7 +604,7 @@ impl IAudioFormatEnumerator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAudioInputSelector_Impl: Sized { @@ -637,7 +637,7 @@ impl IAudioInputSelector_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAudioLoudness_Impl: Sized { @@ -670,7 +670,7 @@ impl IAudioLoudness_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAudioMidrange_Impl: Sized + IPerChannelDbLevel_Impl {} @@ -680,7 +680,7 @@ impl IAudioMidrange_Vtbl { Self { base__: IPerChannelDbLevel_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IAudioMute_Impl: Sized { @@ -713,7 +713,7 @@ impl IAudioMute_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAudioOutputSelector_Impl: Sized { @@ -746,7 +746,7 @@ impl IAudioOutputSelector_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAudioPeakMeter_Impl: Sized { @@ -785,7 +785,7 @@ impl IAudioPeakMeter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAudioRenderClient_Impl: Sized { @@ -818,7 +818,7 @@ impl IAudioRenderClient_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAudioSessionControl_Impl: Sized { @@ -918,7 +918,7 @@ impl IAudioSessionControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAudioSessionControl2_Impl: Sized + IAudioSessionControl_Impl { @@ -984,7 +984,7 @@ impl IAudioSessionControl2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IAudioSessionEnumerator_Impl: Sized { @@ -1023,7 +1023,7 @@ impl IAudioSessionEnumerator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAudioSessionEvents_Impl: Sized { @@ -1085,7 +1085,7 @@ impl IAudioSessionEvents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAudioSessionManager_Impl: Sized { @@ -1124,7 +1124,7 @@ impl IAudioSessionManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAudioSessionManager2_Impl: Sized + IAudioSessionManager_Impl { @@ -1178,7 +1178,7 @@ impl IAudioSessionManager2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IAudioSessionNotification_Impl: Sized { @@ -1195,7 +1195,7 @@ impl IAudioSessionNotification_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnSessionCreated: OnSessionCreated:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAudioStateMonitor_Impl: Sized { @@ -1235,7 +1235,7 @@ impl IAudioStateMonitor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAudioStreamVolume_Impl: Sized { @@ -1295,7 +1295,7 @@ impl IAudioStreamVolume_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -1316,7 +1316,7 @@ impl IAudioSystemEffectsPropertyChangeNotificationClient_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnPropertyChanged: OnPropertyChanged:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -1400,7 +1400,7 @@ impl IAudioSystemEffectsPropertyStore_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAudioTreble_Impl: Sized + IPerChannelDbLevel_Impl {} @@ -1410,7 +1410,7 @@ impl IAudioTreble_Vtbl { Self { base__: IPerChannelDbLevel_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IAudioViewManagerService_Impl: Sized { @@ -1427,7 +1427,7 @@ impl IAudioViewManagerService_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), SetAudioStreamWindow: SetAudioStreamWindow:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAudioVolumeDuckNotification_Impl: Sized { @@ -1454,7 +1454,7 @@ impl IAudioVolumeDuckNotification_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAudioVolumeLevel_Impl: Sized + IPerChannelDbLevel_Impl {} @@ -1464,7 +1464,7 @@ impl IAudioVolumeLevel_Vtbl { Self { base__: IPerChannelDbLevel_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IChannelAudioVolume_Impl: Sized { @@ -1524,7 +1524,7 @@ impl IChannelAudioVolume_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IConnector_Impl: Sized { @@ -1629,7 +1629,7 @@ impl IConnector_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IControlChangeNotify_Impl: Sized { @@ -1646,7 +1646,7 @@ impl IControlChangeNotify_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnNotify: OnNotify:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IControlInterface_Impl: Sized { @@ -1685,7 +1685,7 @@ impl IControlInterface_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDeviceSpecificProperty_Impl: Sized { @@ -1732,7 +1732,7 @@ impl IDeviceSpecificProperty_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDeviceTopology_Impl: Sized { @@ -1836,7 +1836,7 @@ impl IDeviceTopology_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`, `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -1899,7 +1899,7 @@ impl IMMDevice_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] @@ -1920,7 +1920,7 @@ impl IMMDeviceActivator_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Activate: Activate:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMMDeviceCollection_Impl: Sized { @@ -1959,7 +1959,7 @@ impl IMMDeviceCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMMDeviceEnumerator_Impl: Sized { @@ -2025,7 +2025,7 @@ impl IMMDeviceEnumerator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMMEndpoint_Impl: Sized { @@ -2048,7 +2048,7 @@ impl IMMEndpoint_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetDataFlow: GetDataFlow:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -2100,7 +2100,7 @@ impl IMMNotificationClient_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2138,7 +2138,7 @@ impl IMessageFilter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPart_Impl: Sized { @@ -2302,7 +2302,7 @@ impl IPart_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPartsList_Impl: Sized { @@ -2341,7 +2341,7 @@ impl IPartsList_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPerChannelDbLevel_Impl: Sized { @@ -2408,7 +2408,7 @@ impl IPerChannelDbLevel_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISimpleAudioVolume_Impl: Sized { @@ -2461,7 +2461,7 @@ impl ISimpleAudioVolume_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] @@ -2558,7 +2558,7 @@ impl ISpatialAudioClient_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] @@ -2601,7 +2601,7 @@ impl ISpatialAudioClient2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ISpatialAudioMetadataClient_Impl: Sized { @@ -2673,7 +2673,7 @@ impl ISpatialAudioMetadataClient_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISpatialAudioMetadataCopier_Impl: Sized { @@ -2713,7 +2713,7 @@ impl ISpatialAudioMetadataCopier_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISpatialAudioMetadataItems_Impl: Sized { @@ -2791,7 +2791,7 @@ impl ISpatialAudioMetadataItems_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISpatialAudioMetadataItemsBuffer_Impl: Sized { @@ -2825,7 +2825,7 @@ impl ISpatialAudioMetadataItemsBuffer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISpatialAudioMetadataReader_Impl: Sized { @@ -2866,7 +2866,7 @@ impl ISpatialAudioMetadataReader_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISpatialAudioMetadataWriter_Impl: Sized { @@ -2907,7 +2907,7 @@ impl ISpatialAudioMetadataWriter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISpatialAudioObject_Impl: Sized + ISpatialAudioObjectBase_Impl { @@ -2934,7 +2934,7 @@ impl ISpatialAudioObject_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ISpatialAudioObjectBase_Impl: Sized { @@ -2987,7 +2987,7 @@ impl ISpatialAudioObjectBase_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISpatialAudioObjectForHrtf_Impl: Sized + ISpatialAudioObjectBase_Impl { @@ -3042,7 +3042,7 @@ impl ISpatialAudioObjectForHrtf_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ISpatialAudioObjectForMetadataCommands_Impl: Sized + ISpatialAudioObjectBase_Impl { @@ -3062,7 +3062,7 @@ impl ISpatialAudioObjectForMetadataCommands_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ISpatialAudioObjectForMetadataItems_Impl: Sized + ISpatialAudioObjectBase_Impl { @@ -3088,7 +3088,7 @@ impl ISpatialAudioObjectForMetadataItems_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ISpatialAudioObjectRenderStream_Impl: Sized + ISpatialAudioObjectRenderStreamBase_Impl { @@ -3114,7 +3114,7 @@ impl ISpatialAudioObjectRenderStream_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ISpatialAudioObjectRenderStreamBase_Impl: Sized { @@ -3182,7 +3182,7 @@ impl ISpatialAudioObjectRenderStreamBase_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISpatialAudioObjectRenderStreamForHrtf_Impl: Sized + ISpatialAudioObjectRenderStreamBase_Impl { @@ -3208,7 +3208,7 @@ impl ISpatialAudioObjectRenderStreamForHrtf_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ISpatialAudioObjectRenderStreamForMetadata_Impl: Sized + ISpatialAudioObjectRenderStreamBase_Impl { @@ -3247,7 +3247,7 @@ impl ISpatialAudioObjectRenderStreamForMetadata_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ISpatialAudioObjectRenderStreamNotify_Impl: Sized { @@ -3267,7 +3267,7 @@ impl ISpatialAudioObjectRenderStreamNotify_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISubunit_Impl: Sized {} @@ -3277,6 +3277,6 @@ impl ISubunit_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 cac4a08d1f..443c210bd2 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/Audio/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/Audio/mod.rs @@ -1162,9 +1162,8 @@ where ::windows_targets::link!("winmm.dll" "system" fn waveOutWrite(hwo : HWAVEOUT, pwh : *mut WAVEHDR, cbwh : u32) -> u32); waveOutWrite(hwo.into_param().abi(), pwh, cbwh) } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAcousticEchoCancellationControl(::windows_core::IUnknown); +::windows_core::imp::com_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 @@ -1173,43 +1172,27 @@ impl IAcousticEchoCancellationControl { (::windows_core::Interface::vtable(self).SetEchoCancellationRenderEndpoint)(::windows_core::Interface::as_raw(self), endpointid.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IAcousticEchoCancellationControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAcousticEchoCancellationControl { - type Vtable = IAcousticEchoCancellationControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAcousticEchoCancellationControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf4ae25b5_aaa3_437d_b6b3_dbbe2d0e9549); -} #[repr(C)] #[doc(hidden)] pub struct IAcousticEchoCancellationControl_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub SetEchoCancellationRenderEndpoint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, endpointid: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActivateAudioInterfaceAsyncOperation(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IActivateAudioInterfaceAsyncOperation, IActivateAudioInterfaceAsyncOperation_Vtbl, 0x72a22d78_cde4_431d_b8cc_843a71199b6d); +::windows_core::imp::interface_hierarchy!(IActivateAudioInterfaceAsyncOperation, ::windows_core::IUnknown); impl IActivateAudioInterfaceAsyncOperation { pub unsafe fn GetActivateResult(&self, activateresult: *mut ::windows_core::HRESULT, activatedinterface: *mut ::core::option::Option<::windows_core::IUnknown>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetActivateResult)(::windows_core::Interface::as_raw(self), activateresult, ::core::mem::transmute(activatedinterface)).ok() } } -::windows_core::imp::interface_hierarchy!(IActivateAudioInterfaceAsyncOperation, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IActivateAudioInterfaceAsyncOperation { - type Vtable = IActivateAudioInterfaceAsyncOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActivateAudioInterfaceAsyncOperation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x72a22d78_cde4_431d_b8cc_843a71199b6d); -} #[repr(C)] #[doc(hidden)] pub struct IActivateAudioInterfaceAsyncOperation_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetActivateResult: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, activateresult: *mut ::windows_core::HRESULT, activatedinterface: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActivateAudioInterfaceCompletionHandler(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IActivateAudioInterfaceCompletionHandler, IActivateAudioInterfaceCompletionHandler_Vtbl, 0x41d949ab_9862_444a_80f6_c261334da5eb); +::windows_core::imp::interface_hierarchy!(IActivateAudioInterfaceCompletionHandler, ::windows_core::IUnknown); impl IActivateAudioInterfaceCompletionHandler { pub unsafe fn ActivateCompleted(&self, activateoperation: P0) -> ::windows_core::Result<()> where @@ -1218,22 +1201,14 @@ impl IActivateAudioInterfaceCompletionHandler { (::windows_core::Interface::vtable(self).ActivateCompleted)(::windows_core::Interface::as_raw(self), activateoperation.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IActivateAudioInterfaceCompletionHandler, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IActivateAudioInterfaceCompletionHandler { - type Vtable = IActivateAudioInterfaceCompletionHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActivateAudioInterfaceCompletionHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x41d949ab_9862_444a_80f6_c261334da5eb); -} #[repr(C)] #[doc(hidden)] pub struct IActivateAudioInterfaceCompletionHandler_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub ActivateCompleted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, activateoperation: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioAmbisonicsControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioAmbisonicsControl, IAudioAmbisonicsControl_Vtbl, 0x28724c91_df35_4856_9f76_d6a26413f3df); +::windows_core::imp::interface_hierarchy!(IAudioAmbisonicsControl, ::windows_core::IUnknown); impl IAudioAmbisonicsControl { pub unsafe fn SetData(&self, pambisonicsparams: &[AMBISONICS_PARAMS]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetData)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pambisonicsparams.as_ptr()), pambisonicsparams.len().try_into().unwrap()).ok() @@ -1252,13 +1227,6 @@ impl IAudioAmbisonicsControl { (::windows_core::Interface::vtable(self).SetRotation)(::windows_core::Interface::as_raw(self), x, y, z, w).ok() } } -::windows_core::imp::interface_hierarchy!(IAudioAmbisonicsControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioAmbisonicsControl { - type Vtable = IAudioAmbisonicsControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioAmbisonicsControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x28724c91_df35_4856_9f76_d6a26413f3df); -} #[repr(C)] #[doc(hidden)] pub struct IAudioAmbisonicsControl_Vtbl { @@ -1268,9 +1236,8 @@ pub struct IAudioAmbisonicsControl_Vtbl { pub GetHeadTracking: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbenableheadtracking: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub SetRotation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, x: f32, y: f32, z: f32, w: f32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioAutoGainControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioAutoGainControl, IAudioAutoGainControl_Vtbl, 0x85401fd4_6de4_4b9d_9869_2d6753a82f3c); +::windows_core::imp::interface_hierarchy!(IAudioAutoGainControl, ::windows_core::IUnknown); impl IAudioAutoGainControl { pub unsafe fn GetEnabled(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1283,13 +1250,6 @@ impl IAudioAutoGainControl { (::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::imp::interface_hierarchy!(IAudioAutoGainControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioAutoGainControl { - type Vtable = IAudioAutoGainControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioAutoGainControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x85401fd4_6de4_4b9d_9869_2d6753a82f3c); -} #[repr(C)] #[doc(hidden)] pub struct IAudioAutoGainControl_Vtbl { @@ -1297,9 +1257,8 @@ pub struct IAudioAutoGainControl_Vtbl { pub GetEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbenabled: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub SetEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, benable: super::super::Foundation::BOOL, pguideventcontext: *const ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioBass(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioBass, IAudioBass_Vtbl, 0xa2b1a1d9_4db3_425d_a2b2_bd335cb3e2e5); +::windows_core::imp::interface_hierarchy!(IAudioBass, ::windows_core::IUnknown, IPerChannelDbLevel); impl IAudioBass { pub unsafe fn GetChannelCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1322,21 +1281,13 @@ impl IAudioBass { (::windows_core::Interface::vtable(self).base__.SetLevelAllChannels)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(alevelsdb.as_ptr()), alevelsdb.len().try_into().unwrap(), ::core::mem::transmute(pguideventcontext.unwrap_or(::std::ptr::null()))).ok() } } -::windows_core::imp::interface_hierarchy!(IAudioBass, ::windows_core::IUnknown, IPerChannelDbLevel); -unsafe impl ::windows_core::Interface for IAudioBass { - type Vtable = IAudioBass_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioBass { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa2b1a1d9_4db3_425d_a2b2_bd335cb3e2e5); -} #[repr(C)] #[doc(hidden)] pub struct IAudioBass_Vtbl { pub base__: IPerChannelDbLevel_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioCaptureClient(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioCaptureClient, IAudioCaptureClient_Vtbl, 0xc8adbd64_e71e_48a0_a4de_185c395cd317); +::windows_core::imp::interface_hierarchy!(IAudioCaptureClient, ::windows_core::IUnknown); impl IAudioCaptureClient { pub unsafe fn GetBuffer(&self, ppdata: *mut *mut u8, pnumframestoread: *mut u32, pdwflags: *mut u32, pu64deviceposition: ::core::option::Option<*mut u64>, pu64qpcposition: ::core::option::Option<*mut u64>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetBuffer)(::windows_core::Interface::as_raw(self), ppdata, pnumframestoread, pdwflags, ::core::mem::transmute(pu64deviceposition.unwrap_or(::std::ptr::null_mut())), ::core::mem::transmute(pu64qpcposition.unwrap_or(::std::ptr::null_mut()))).ok() @@ -1349,13 +1300,6 @@ impl IAudioCaptureClient { (::windows_core::Interface::vtable(self).GetNextPacketSize)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAudioCaptureClient, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioCaptureClient { - type Vtable = IAudioCaptureClient_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioCaptureClient { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc8adbd64_e71e_48a0_a4de_185c395cd317); -} #[repr(C)] #[doc(hidden)] pub struct IAudioCaptureClient_Vtbl { @@ -1364,9 +1308,8 @@ pub struct IAudioCaptureClient_Vtbl { pub ReleaseBuffer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, numframesread: u32) -> ::windows_core::HRESULT, pub GetNextPacketSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pnumframesinnextpacket: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioChannelConfig(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioChannelConfig, IAudioChannelConfig_Vtbl, 0xbb11c46f_ec28_493c_b88a_5db88062ce98); +::windows_core::imp::interface_hierarchy!(IAudioChannelConfig, ::windows_core::IUnknown); impl IAudioChannelConfig { pub unsafe fn SetChannelConfig(&self, dwconfig: u32, pguideventcontext: ::core::option::Option<*const ::windows_core::GUID>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetChannelConfig)(::windows_core::Interface::as_raw(self), dwconfig, ::core::mem::transmute(pguideventcontext.unwrap_or(::std::ptr::null()))).ok() @@ -1376,13 +1319,6 @@ impl IAudioChannelConfig { (::windows_core::Interface::vtable(self).GetChannelConfig)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAudioChannelConfig, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioChannelConfig { - type Vtable = IAudioChannelConfig_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioChannelConfig { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbb11c46f_ec28_493c_b88a_5db88062ce98); -} #[repr(C)] #[doc(hidden)] pub struct IAudioChannelConfig_Vtbl { @@ -1390,9 +1326,8 @@ pub struct IAudioChannelConfig_Vtbl { pub SetChannelConfig: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwconfig: u32, pguideventcontext: *const ::windows_core::GUID) -> ::windows_core::HRESULT, pub GetChannelConfig: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwconfig: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioClient(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioClient, IAudioClient_Vtbl, 0x1cb9ad4c_dbfa_4c32_b178_c2f568a703b2); +::windows_core::imp::interface_hierarchy!(IAudioClient, ::windows_core::IUnknown); impl IAudioClient { pub unsafe fn Initialize(&self, sharemode: AUDCLNT_SHAREMODE, streamflags: u32, hnsbufferduration: i64, hnsperiodicity: i64, pformat: *const WAVEFORMATEX, audiosessionguid: ::core::option::Option<*const ::windows_core::GUID>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Initialize)(::windows_core::Interface::as_raw(self), sharemode, streamflags, hnsbufferduration, hnsperiodicity, pformat, ::core::mem::transmute(audiosessionguid.unwrap_or(::std::ptr::null()))).ok() @@ -1436,19 +1371,12 @@ impl IAudioClient { } pub unsafe fn GetService(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetService)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAudioClient, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioClient { - type Vtable = IAudioClient_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioClient { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1cb9ad4c_dbfa_4c32_b178_c2f568a703b2); -} #[repr(C)] #[doc(hidden)] pub struct IAudioClient_Vtbl { @@ -1466,9 +1394,8 @@ pub struct IAudioClient_Vtbl { pub SetEventHandle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventhandle: super::super::Foundation::HANDLE) -> ::windows_core::HRESULT, pub GetService: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioClient2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioClient2, IAudioClient2_Vtbl, 0x726778cd_f60a_4eda_82de_e47610cd78aa); +::windows_core::imp::interface_hierarchy!(IAudioClient2, ::windows_core::IUnknown, IAudioClient); impl IAudioClient2 { pub unsafe fn Initialize(&self, sharemode: AUDCLNT_SHAREMODE, streamflags: u32, hnsbufferduration: i64, hnsperiodicity: i64, pformat: *const WAVEFORMATEX, audiosessionguid: ::core::option::Option<*const ::windows_core::GUID>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.Initialize)(::windows_core::Interface::as_raw(self), sharemode, streamflags, hnsbufferduration, hnsperiodicity, pformat, ::core::mem::transmute(audiosessionguid.unwrap_or(::std::ptr::null()))).ok() @@ -1512,7 +1439,7 @@ impl IAudioClient2 { } pub unsafe fn GetService(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.GetService)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -1531,13 +1458,6 @@ impl IAudioClient2 { (::windows_core::Interface::vtable(self).GetBufferSizeLimits)(::windows_core::Interface::as_raw(self), pformat, beventdriven.into_param().abi(), phnsminbufferduration, phnsmaxbufferduration).ok() } } -::windows_core::imp::interface_hierarchy!(IAudioClient2, ::windows_core::IUnknown, IAudioClient); -unsafe impl ::windows_core::Interface for IAudioClient2 { - type Vtable = IAudioClient2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioClient2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x726778cd_f60a_4eda_82de_e47610cd78aa); -} #[repr(C)] #[doc(hidden)] pub struct IAudioClient2_Vtbl { @@ -1546,9 +1466,8 @@ pub struct IAudioClient2_Vtbl { pub SetClientProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pproperties: *const AudioClientProperties) -> ::windows_core::HRESULT, pub GetBufferSizeLimits: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pformat: *const WAVEFORMATEX, beventdriven: super::super::Foundation::BOOL, phnsminbufferduration: *mut i64, phnsmaxbufferduration: *mut i64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioClient3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioClient3, IAudioClient3_Vtbl, 0x7ed4ee07_8e67_4cd4_8c1a_2b7a5987ad42); +::windows_core::imp::interface_hierarchy!(IAudioClient3, ::windows_core::IUnknown, IAudioClient, IAudioClient2); impl IAudioClient3 { pub unsafe fn Initialize(&self, sharemode: AUDCLNT_SHAREMODE, streamflags: u32, hnsbufferduration: i64, hnsperiodicity: i64, pformat: *const WAVEFORMATEX, audiosessionguid: ::core::option::Option<*const ::windows_core::GUID>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.Initialize)(::windows_core::Interface::as_raw(self), sharemode, streamflags, hnsbufferduration, hnsperiodicity, pformat, ::core::mem::transmute(audiosessionguid.unwrap_or(::std::ptr::null()))).ok() @@ -1592,7 +1511,7 @@ impl IAudioClient3 { } pub unsafe fn GetService(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.GetService)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -1620,13 +1539,6 @@ impl IAudioClient3 { (::windows_core::Interface::vtable(self).InitializeSharedAudioStream)(::windows_core::Interface::as_raw(self), streamflags, periodinframes, pformat, ::core::mem::transmute(audiosessionguid.unwrap_or(::std::ptr::null()))).ok() } } -::windows_core::imp::interface_hierarchy!(IAudioClient3, ::windows_core::IUnknown, IAudioClient, IAudioClient2); -unsafe impl ::windows_core::Interface for IAudioClient3 { - type Vtable = IAudioClient3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioClient3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7ed4ee07_8e67_4cd4_8c1a_2b7a5987ad42); -} #[repr(C)] #[doc(hidden)] pub struct IAudioClient3_Vtbl { @@ -1635,30 +1547,21 @@ pub struct IAudioClient3_Vtbl { pub GetCurrentSharedModeEnginePeriod: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppformat: *mut *mut WAVEFORMATEX, pcurrentperiodinframes: *mut u32) -> ::windows_core::HRESULT, pub InitializeSharedAudioStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, streamflags: u32, periodinframes: u32, pformat: *const WAVEFORMATEX, audiosessionguid: *const ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioClientDuckingControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioClientDuckingControl, IAudioClientDuckingControl_Vtbl, 0xc789d381_a28c_4168_b28f_d3a837924dc3); +::windows_core::imp::interface_hierarchy!(IAudioClientDuckingControl, ::windows_core::IUnknown); impl IAudioClientDuckingControl { pub unsafe fn SetDuckingOptionsForCurrentStream(&self, options: AUDIO_DUCKING_OPTIONS) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetDuckingOptionsForCurrentStream)(::windows_core::Interface::as_raw(self), options).ok() } } -::windows_core::imp::interface_hierarchy!(IAudioClientDuckingControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioClientDuckingControl { - type Vtable = IAudioClientDuckingControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioClientDuckingControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc789d381_a28c_4168_b28f_d3a837924dc3); -} #[repr(C)] #[doc(hidden)] pub struct IAudioClientDuckingControl_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub SetDuckingOptionsForCurrentStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, options: AUDIO_DUCKING_OPTIONS) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioClock(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioClock, IAudioClock_Vtbl, 0xcd63314f_3fba_4a1b_812c_ef96358728e7); +::windows_core::imp::interface_hierarchy!(IAudioClock, ::windows_core::IUnknown); impl IAudioClock { pub unsafe fn GetFrequency(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1672,13 +1575,6 @@ impl IAudioClock { (::windows_core::Interface::vtable(self).GetCharacteristics)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAudioClock, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioClock { - type Vtable = IAudioClock_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioClock { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcd63314f_3fba_4a1b_812c_ef96358728e7); -} #[repr(C)] #[doc(hidden)] pub struct IAudioClock_Vtbl { @@ -1687,72 +1583,47 @@ pub struct IAudioClock_Vtbl { pub GetPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pu64position: *mut u64, pu64qpcposition: *mut u64) -> ::windows_core::HRESULT, pub GetCharacteristics: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwcharacteristics: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioClock2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioClock2, IAudioClock2_Vtbl, 0x6f49ff73_6727_49ac_a008_d98cf5e70048); +::windows_core::imp::interface_hierarchy!(IAudioClock2, ::windows_core::IUnknown); impl IAudioClock2 { pub unsafe fn GetDevicePosition(&self, deviceposition: *mut u64, qpcposition: ::core::option::Option<*mut u64>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetDevicePosition)(::windows_core::Interface::as_raw(self), deviceposition, ::core::mem::transmute(qpcposition.unwrap_or(::std::ptr::null_mut()))).ok() } } -::windows_core::imp::interface_hierarchy!(IAudioClock2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioClock2 { - type Vtable = IAudioClock2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioClock2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6f49ff73_6727_49ac_a008_d98cf5e70048); -} #[repr(C)] #[doc(hidden)] pub struct IAudioClock2_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetDevicePosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, deviceposition: *mut u64, qpcposition: *mut u64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioClockAdjustment(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioClockAdjustment, IAudioClockAdjustment_Vtbl, 0xf6e4c0a0_46d9_4fb8_be21_57a3ef2b626c); +::windows_core::imp::interface_hierarchy!(IAudioClockAdjustment, ::windows_core::IUnknown); impl IAudioClockAdjustment { pub unsafe fn SetSampleRate(&self, flsamplerate: f32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetSampleRate)(::windows_core::Interface::as_raw(self), flsamplerate).ok() } } -::windows_core::imp::interface_hierarchy!(IAudioClockAdjustment, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioClockAdjustment { - type Vtable = IAudioClockAdjustment_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioClockAdjustment { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf6e4c0a0_46d9_4fb8_be21_57a3ef2b626c); -} #[repr(C)] #[doc(hidden)] pub struct IAudioClockAdjustment_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub SetSampleRate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flsamplerate: f32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioEffectsChangedNotificationClient(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioEffectsChangedNotificationClient, IAudioEffectsChangedNotificationClient_Vtbl, 0xa5ded44f_3c5d_4b2b_bd1e_5dc1ee20bbf6); +::windows_core::imp::interface_hierarchy!(IAudioEffectsChangedNotificationClient, ::windows_core::IUnknown); impl IAudioEffectsChangedNotificationClient { pub unsafe fn OnAudioEffectsChanged(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnAudioEffectsChanged)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IAudioEffectsChangedNotificationClient, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioEffectsChangedNotificationClient { - type Vtable = IAudioEffectsChangedNotificationClient_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioEffectsChangedNotificationClient { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa5ded44f_3c5d_4b2b_bd1e_5dc1ee20bbf6); -} #[repr(C)] #[doc(hidden)] pub struct IAudioEffectsChangedNotificationClient_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnAudioEffectsChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioEffectsManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioEffectsManager, IAudioEffectsManager_Vtbl, 0x4460b3ae_4b44_4527_8676_7548a8acd260); +::windows_core::imp::interface_hierarchy!(IAudioEffectsManager, ::windows_core::IUnknown); impl IAudioEffectsManager { pub unsafe fn RegisterAudioEffectsChangedNotificationCallback(&self, client: P0) -> ::windows_core::Result<()> where @@ -1773,13 +1644,6 @@ impl IAudioEffectsManager { (::windows_core::Interface::vtable(self).SetAudioEffectState)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(effectid), state).ok() } } -::windows_core::imp::interface_hierarchy!(IAudioEffectsManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioEffectsManager { - type Vtable = IAudioEffectsManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioEffectsManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4460b3ae_4b44_4527_8676_7548a8acd260); -} #[repr(C)] #[doc(hidden)] pub struct IAudioEffectsManager_Vtbl { @@ -1789,9 +1653,8 @@ pub struct IAudioEffectsManager_Vtbl { pub GetAudioEffects: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, effects: *mut *mut AUDIO_EFFECT, numeffects: *mut u32) -> ::windows_core::HRESULT, pub SetAudioEffectState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, effectid: ::windows_core::GUID, state: AUDIO_EFFECT_STATE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioFormatEnumerator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioFormatEnumerator, IAudioFormatEnumerator_Vtbl, 0xdcdaa858_895a_4a22_a5eb_67bda506096d); +::windows_core::imp::interface_hierarchy!(IAudioFormatEnumerator, ::windows_core::IUnknown); impl IAudioFormatEnumerator { pub unsafe fn GetCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1802,13 +1665,6 @@ impl IAudioFormatEnumerator { (::windows_core::Interface::vtable(self).GetFormat)(::windows_core::Interface::as_raw(self), index, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAudioFormatEnumerator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioFormatEnumerator { - type Vtable = IAudioFormatEnumerator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioFormatEnumerator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdcdaa858_895a_4a22_a5eb_67bda506096d); -} #[repr(C)] #[doc(hidden)] pub struct IAudioFormatEnumerator_Vtbl { @@ -1816,9 +1672,8 @@ pub struct IAudioFormatEnumerator_Vtbl { pub GetCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, count: *mut u32) -> ::windows_core::HRESULT, pub GetFormat: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, format: *mut *mut WAVEFORMATEX) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioInputSelector(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioInputSelector, IAudioInputSelector_Vtbl, 0x4f03dc02_5e6e_4653_8f72_a030c123d598); +::windows_core::imp::interface_hierarchy!(IAudioInputSelector, ::windows_core::IUnknown); impl IAudioInputSelector { pub unsafe fn GetSelection(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1828,13 +1683,6 @@ impl IAudioInputSelector { (::windows_core::Interface::vtable(self).SetSelection)(::windows_core::Interface::as_raw(self), nidselect, ::core::mem::transmute(pguideventcontext.unwrap_or(::std::ptr::null()))).ok() } } -::windows_core::imp::interface_hierarchy!(IAudioInputSelector, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioInputSelector { - type Vtable = IAudioInputSelector_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioInputSelector { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4f03dc02_5e6e_4653_8f72_a030c123d598); -} #[repr(C)] #[doc(hidden)] pub struct IAudioInputSelector_Vtbl { @@ -1842,9 +1690,8 @@ pub struct IAudioInputSelector_Vtbl { pub GetSelection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pnidselected: *mut u32) -> ::windows_core::HRESULT, pub SetSelection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nidselect: u32, pguideventcontext: *const ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioLoudness(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioLoudness, IAudioLoudness_Vtbl, 0x7d8b1437_dd53_4350_9c1b_1ee2890bd938); +::windows_core::imp::interface_hierarchy!(IAudioLoudness, ::windows_core::IUnknown); impl IAudioLoudness { pub unsafe fn GetEnabled(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1857,13 +1704,6 @@ impl IAudioLoudness { (::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::imp::interface_hierarchy!(IAudioLoudness, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioLoudness { - type Vtable = IAudioLoudness_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioLoudness { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7d8b1437_dd53_4350_9c1b_1ee2890bd938); -} #[repr(C)] #[doc(hidden)] pub struct IAudioLoudness_Vtbl { @@ -1871,9 +1711,8 @@ pub struct IAudioLoudness_Vtbl { pub GetEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbenabled: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub SetEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, benable: super::super::Foundation::BOOL, pguideventcontext: *const ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioMidrange(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioMidrange, IAudioMidrange_Vtbl, 0x5e54b6d7_b44b_40d9_9a9e_e691d9ce6edf); +::windows_core::imp::interface_hierarchy!(IAudioMidrange, ::windows_core::IUnknown, IPerChannelDbLevel); impl IAudioMidrange { pub unsafe fn GetChannelCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1896,21 +1735,13 @@ impl IAudioMidrange { (::windows_core::Interface::vtable(self).base__.SetLevelAllChannels)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(alevelsdb.as_ptr()), alevelsdb.len().try_into().unwrap(), ::core::mem::transmute(pguideventcontext.unwrap_or(::std::ptr::null()))).ok() } } -::windows_core::imp::interface_hierarchy!(IAudioMidrange, ::windows_core::IUnknown, IPerChannelDbLevel); -unsafe impl ::windows_core::Interface for IAudioMidrange { - type Vtable = IAudioMidrange_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioMidrange { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5e54b6d7_b44b_40d9_9a9e_e691d9ce6edf); -} #[repr(C)] #[doc(hidden)] pub struct IAudioMidrange_Vtbl { pub base__: IPerChannelDbLevel_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioMute(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioMute, IAudioMute_Vtbl, 0xdf45aeea_b74a_4b6b_afad_2366b6aa012e); +::windows_core::imp::interface_hierarchy!(IAudioMute, ::windows_core::IUnknown); impl IAudioMute { pub unsafe fn SetMute(&self, bmuted: P0, pguideventcontext: ::core::option::Option<*const ::windows_core::GUID>) -> ::windows_core::Result<()> where @@ -1923,13 +1754,6 @@ impl IAudioMute { (::windows_core::Interface::vtable(self).GetMute)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAudioMute, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioMute { - type Vtable = IAudioMute_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioMute { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdf45aeea_b74a_4b6b_afad_2366b6aa012e); -} #[repr(C)] #[doc(hidden)] pub struct IAudioMute_Vtbl { @@ -1937,9 +1761,8 @@ pub struct IAudioMute_Vtbl { pub SetMute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bmuted: super::super::Foundation::BOOL, pguideventcontext: *const ::windows_core::GUID) -> ::windows_core::HRESULT, pub GetMute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbmuted: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioOutputSelector(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioOutputSelector, IAudioOutputSelector_Vtbl, 0xbb515f69_94a7_429e_8b9c_271b3f11a3ab); +::windows_core::imp::interface_hierarchy!(IAudioOutputSelector, ::windows_core::IUnknown); impl IAudioOutputSelector { pub unsafe fn GetSelection(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1949,13 +1772,6 @@ impl IAudioOutputSelector { (::windows_core::Interface::vtable(self).SetSelection)(::windows_core::Interface::as_raw(self), nidselect, ::core::mem::transmute(pguideventcontext.unwrap_or(::std::ptr::null()))).ok() } } -::windows_core::imp::interface_hierarchy!(IAudioOutputSelector, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioOutputSelector { - type Vtable = IAudioOutputSelector_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioOutputSelector { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbb515f69_94a7_429e_8b9c_271b3f11a3ab); -} #[repr(C)] #[doc(hidden)] pub struct IAudioOutputSelector_Vtbl { @@ -1963,9 +1779,8 @@ pub struct IAudioOutputSelector_Vtbl { pub GetSelection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pnidselected: *mut u32) -> ::windows_core::HRESULT, pub SetSelection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nidselect: u32, pguideventcontext: *const ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioPeakMeter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioPeakMeter, IAudioPeakMeter_Vtbl, 0xdd79923c_0599_45e0_b8b6_c8df7db6e796); +::windows_core::imp::interface_hierarchy!(IAudioPeakMeter, ::windows_core::IUnknown); impl IAudioPeakMeter { pub unsafe fn GetChannelCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1976,13 +1791,6 @@ impl IAudioPeakMeter { (::windows_core::Interface::vtable(self).GetLevel)(::windows_core::Interface::as_raw(self), nchannel, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAudioPeakMeter, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioPeakMeter { - type Vtable = IAudioPeakMeter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioPeakMeter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdd79923c_0599_45e0_b8b6_c8df7db6e796); -} #[repr(C)] #[doc(hidden)] pub struct IAudioPeakMeter_Vtbl { @@ -1990,9 +1798,8 @@ pub struct IAudioPeakMeter_Vtbl { pub GetChannelCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcchannels: *mut u32) -> ::windows_core::HRESULT, pub GetLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nchannel: u32, pflevel: *mut f32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioRenderClient(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioRenderClient, IAudioRenderClient_Vtbl, 0xf294acfc_3146_4483_a7bf_addca7c260e2); +::windows_core::imp::interface_hierarchy!(IAudioRenderClient, ::windows_core::IUnknown); impl IAudioRenderClient { pub unsafe fn GetBuffer(&self, numframesrequested: u32) -> ::windows_core::Result<*mut u8> { let mut result__ = ::std::mem::zeroed(); @@ -2002,13 +1809,6 @@ impl IAudioRenderClient { (::windows_core::Interface::vtable(self).ReleaseBuffer)(::windows_core::Interface::as_raw(self), numframeswritten, dwflags).ok() } } -::windows_core::imp::interface_hierarchy!(IAudioRenderClient, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioRenderClient { - type Vtable = IAudioRenderClient_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioRenderClient { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf294acfc_3146_4483_a7bf_addca7c260e2); -} #[repr(C)] #[doc(hidden)] pub struct IAudioRenderClient_Vtbl { @@ -2016,9 +1816,8 @@ pub struct IAudioRenderClient_Vtbl { pub GetBuffer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, numframesrequested: u32, ppdata: *mut *mut u8) -> ::windows_core::HRESULT, pub ReleaseBuffer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, numframeswritten: u32, dwflags: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioSessionControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioSessionControl, IAudioSessionControl_Vtbl, 0xf4b1a599_7266_4319_a8ca_e70acb11e8cd); +::windows_core::imp::interface_hierarchy!(IAudioSessionControl, ::windows_core::IUnknown); impl IAudioSessionControl { pub unsafe fn GetState(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2064,13 +1863,6 @@ impl IAudioSessionControl { (::windows_core::Interface::vtable(self).UnregisterAudioSessionNotification)(::windows_core::Interface::as_raw(self), newnotifications.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IAudioSessionControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioSessionControl { - type Vtable = IAudioSessionControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioSessionControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf4b1a599_7266_4319_a8ca_e70acb11e8cd); -} #[repr(C)] #[doc(hidden)] pub struct IAudioSessionControl_Vtbl { @@ -2085,9 +1877,8 @@ pub struct IAudioSessionControl_Vtbl { pub RegisterAudioSessionNotification: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newnotifications: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub UnregisterAudioSessionNotification: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newnotifications: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioSessionControl2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioSessionControl2, IAudioSessionControl2_Vtbl, 0xbfb7ff88_7239_4fc9_8fa2_07c950be9c6d); +::windows_core::imp::interface_hierarchy!(IAudioSessionControl2, ::windows_core::IUnknown, IAudioSessionControl); impl IAudioSessionControl2 { pub unsafe fn GetState(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2154,13 +1945,6 @@ impl IAudioSessionControl2 { (::windows_core::Interface::vtable(self).SetDuckingPreference)(::windows_core::Interface::as_raw(self), optout.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IAudioSessionControl2, ::windows_core::IUnknown, IAudioSessionControl); -unsafe impl ::windows_core::Interface for IAudioSessionControl2 { - type Vtable = IAudioSessionControl2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioSessionControl2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbfb7ff88_7239_4fc9_8fa2_07c950be9c6d); -} #[repr(C)] #[doc(hidden)] pub struct IAudioSessionControl2_Vtbl { @@ -2171,9 +1955,8 @@ pub struct IAudioSessionControl2_Vtbl { pub IsSystemSoundsSession: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetDuckingPreference: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, optout: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioSessionEnumerator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioSessionEnumerator, IAudioSessionEnumerator_Vtbl, 0xe2f5bb11_0570_40ca_acdd_3aa01277dee8); +::windows_core::imp::interface_hierarchy!(IAudioSessionEnumerator, ::windows_core::IUnknown); impl IAudioSessionEnumerator { pub unsafe fn GetCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2184,13 +1967,6 @@ impl IAudioSessionEnumerator { (::windows_core::Interface::vtable(self).GetSession)(::windows_core::Interface::as_raw(self), sessioncount, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAudioSessionEnumerator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioSessionEnumerator { - type Vtable = IAudioSessionEnumerator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioSessionEnumerator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe2f5bb11_0570_40ca_acdd_3aa01277dee8); -} #[repr(C)] #[doc(hidden)] pub struct IAudioSessionEnumerator_Vtbl { @@ -2198,9 +1974,8 @@ pub struct IAudioSessionEnumerator_Vtbl { pub GetCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sessioncount: *mut i32) -> ::windows_core::HRESULT, pub GetSession: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sessioncount: i32, session: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioSessionEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioSessionEvents, IAudioSessionEvents_Vtbl, 0x24918acc_64b3_37c1_8ca9_74a66e9957a8); +::windows_core::imp::interface_hierarchy!(IAudioSessionEvents, ::windows_core::IUnknown); impl IAudioSessionEvents { pub unsafe fn OnDisplayNameChanged(&self, newdisplayname: P0, eventcontext: *const ::windows_core::GUID) -> ::windows_core::Result<()> where @@ -2233,13 +2008,6 @@ impl IAudioSessionEvents { (::windows_core::Interface::vtable(self).OnSessionDisconnected)(::windows_core::Interface::as_raw(self), disconnectreason).ok() } } -::windows_core::imp::interface_hierarchy!(IAudioSessionEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioSessionEvents { - type Vtable = IAudioSessionEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioSessionEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x24918acc_64b3_37c1_8ca9_74a66e9957a8); -} #[repr(C)] #[doc(hidden)] pub struct IAudioSessionEvents_Vtbl { @@ -2252,9 +2020,8 @@ pub struct IAudioSessionEvents_Vtbl { pub OnStateChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newstate: AudioSessionState) -> ::windows_core::HRESULT, pub OnSessionDisconnected: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, disconnectreason: AudioSessionDisconnectReason) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioSessionManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioSessionManager, IAudioSessionManager_Vtbl, 0xbfa971f1_4d5e_40bb_935e_967039bfbee4); +::windows_core::imp::interface_hierarchy!(IAudioSessionManager, ::windows_core::IUnknown); impl IAudioSessionManager { pub unsafe fn GetAudioSessionControl(&self, audiosessionguid: ::core::option::Option<*const ::windows_core::GUID>, streamflags: u32) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2265,13 +2032,6 @@ impl IAudioSessionManager { (::windows_core::Interface::vtable(self).GetSimpleAudioVolume)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(audiosessionguid.unwrap_or(::std::ptr::null())), streamflags, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAudioSessionManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioSessionManager { - type Vtable = IAudioSessionManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioSessionManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbfa971f1_4d5e_40bb_935e_967039bfbee4); -} #[repr(C)] #[doc(hidden)] pub struct IAudioSessionManager_Vtbl { @@ -2279,9 +2039,8 @@ pub struct IAudioSessionManager_Vtbl { pub GetAudioSessionControl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, audiosessionguid: *const ::windows_core::GUID, streamflags: u32, sessioncontrol: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetSimpleAudioVolume: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, audiosessionguid: *const ::windows_core::GUID, streamflags: u32, audiovolume: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioSessionManager2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioSessionManager2, IAudioSessionManager2_Vtbl, 0x77aa99a0_1bd6_484f_8bc7_2c654c9a9b6f); +::windows_core::imp::interface_hierarchy!(IAudioSessionManager2, ::windows_core::IUnknown, IAudioSessionManager); impl IAudioSessionManager2 { pub unsafe fn GetAudioSessionControl(&self, audiosessionguid: ::core::option::Option<*const ::windows_core::GUID>, streamflags: u32) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2321,13 +2080,6 @@ impl IAudioSessionManager2 { (::windows_core::Interface::vtable(self).UnregisterDuckNotification)(::windows_core::Interface::as_raw(self), ducknotification.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IAudioSessionManager2, ::windows_core::IUnknown, IAudioSessionManager); -unsafe impl ::windows_core::Interface for IAudioSessionManager2 { - type Vtable = IAudioSessionManager2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioSessionManager2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x77aa99a0_1bd6_484f_8bc7_2c654c9a9b6f); -} #[repr(C)] #[doc(hidden)] pub struct IAudioSessionManager2_Vtbl { @@ -2338,9 +2090,8 @@ pub struct IAudioSessionManager2_Vtbl { pub RegisterDuckNotification: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sessionid: ::windows_core::PCWSTR, ducknotification: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub UnregisterDuckNotification: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ducknotification: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioSessionNotification(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioSessionNotification, IAudioSessionNotification_Vtbl, 0x641dd20b_4d41_49cc_aba3_174b9477bb08); +::windows_core::imp::interface_hierarchy!(IAudioSessionNotification, ::windows_core::IUnknown); impl IAudioSessionNotification { pub unsafe fn OnSessionCreated(&self, newsession: P0) -> ::windows_core::Result<()> where @@ -2349,22 +2100,14 @@ impl IAudioSessionNotification { (::windows_core::Interface::vtable(self).OnSessionCreated)(::windows_core::Interface::as_raw(self), newsession.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IAudioSessionNotification, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioSessionNotification { - type Vtable = IAudioSessionNotification_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioSessionNotification { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x641dd20b_4d41_49cc_aba3_174b9477bb08); -} #[repr(C)] #[doc(hidden)] pub struct IAudioSessionNotification_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnSessionCreated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newsession: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioStateMonitor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioStateMonitor, IAudioStateMonitor_Vtbl, 0x63bd8738_e30d_4c77_bf5c_834e87c657e2); +::windows_core::imp::interface_hierarchy!(IAudioStateMonitor, ::windows_core::IUnknown); impl IAudioStateMonitor { pub unsafe fn RegisterCallback(&self, callback: PAudioStateMonitorCallback, context: ::core::option::Option<*const ::core::ffi::c_void>) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2377,13 +2120,6 @@ impl IAudioStateMonitor { (::windows_core::Interface::vtable(self).GetSoundLevel)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(IAudioStateMonitor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioStateMonitor { - type Vtable = IAudioStateMonitor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioStateMonitor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x63bd8738_e30d_4c77_bf5c_834e87c657e2); -} #[repr(C)] #[doc(hidden)] pub struct IAudioStateMonitor_Vtbl { @@ -2392,9 +2128,8 @@ pub struct IAudioStateMonitor_Vtbl { pub UnregisterCallback: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, registration: i64), pub GetSoundLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> AudioStateMonitorSoundLevel, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioStreamVolume(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioStreamVolume, IAudioStreamVolume_Vtbl, 0x93014887_242d_4068_8a15_cf5e93b90fe3); +::windows_core::imp::interface_hierarchy!(IAudioStreamVolume, ::windows_core::IUnknown); impl IAudioStreamVolume { pub unsafe fn GetChannelCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2414,13 +2149,6 @@ impl IAudioStreamVolume { (::windows_core::Interface::vtable(self).GetAllVolumes)(::windows_core::Interface::as_raw(self), pfvolumes.len().try_into().unwrap(), ::core::mem::transmute(pfvolumes.as_ptr())).ok() } } -::windows_core::imp::interface_hierarchy!(IAudioStreamVolume, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioStreamVolume { - type Vtable = IAudioStreamVolume_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioStreamVolume { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x93014887_242d_4068_8a15_cf5e93b90fe3); -} #[repr(C)] #[doc(hidden)] pub struct IAudioStreamVolume_Vtbl { @@ -2431,9 +2159,8 @@ pub struct IAudioStreamVolume_Vtbl { pub SetAllVolumes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwcount: u32, pfvolumes: *const f32) -> ::windows_core::HRESULT, pub GetAllVolumes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwcount: u32, pfvolumes: *mut f32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioSystemEffectsPropertyChangeNotificationClient(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioSystemEffectsPropertyChangeNotificationClient, IAudioSystemEffectsPropertyChangeNotificationClient_Vtbl, 0x20049d40_56d5_400e_a2ef_385599feed49); +::windows_core::imp::interface_hierarchy!(IAudioSystemEffectsPropertyChangeNotificationClient, ::windows_core::IUnknown); impl IAudioSystemEffectsPropertyChangeNotificationClient { #[doc = "Required features: `\"Win32_UI_Shell_PropertiesSystem\"`"] #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] @@ -2441,13 +2168,6 @@ impl IAudioSystemEffectsPropertyChangeNotificationClient { (::windows_core::Interface::vtable(self).OnPropertyChanged)(::windows_core::Interface::as_raw(self), r#type, ::core::mem::transmute(key)).ok() } } -::windows_core::imp::interface_hierarchy!(IAudioSystemEffectsPropertyChangeNotificationClient, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioSystemEffectsPropertyChangeNotificationClient { - type Vtable = IAudioSystemEffectsPropertyChangeNotificationClient_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioSystemEffectsPropertyChangeNotificationClient { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x20049d40_56d5_400e_a2ef_385599feed49); -} #[repr(C)] #[doc(hidden)] pub struct IAudioSystemEffectsPropertyChangeNotificationClient_Vtbl { @@ -2457,9 +2177,8 @@ pub struct IAudioSystemEffectsPropertyChangeNotificationClient_Vtbl { #[cfg(not(feature = "Win32_UI_Shell_PropertiesSystem"))] OnPropertyChanged: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioSystemEffectsPropertyStore(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioSystemEffectsPropertyStore, IAudioSystemEffectsPropertyStore_Vtbl, 0x302ae7f9_d7e0_43e4_971b_1f8293613d2a); +::windows_core::imp::interface_hierarchy!(IAudioSystemEffectsPropertyStore, ::windows_core::IUnknown); impl IAudioSystemEffectsPropertyStore { #[doc = "Required features: `\"Win32_UI_Shell_PropertiesSystem\"`"] #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] @@ -2498,13 +2217,6 @@ impl IAudioSystemEffectsPropertyStore { (::windows_core::Interface::vtable(self).UnregisterPropertyChangeNotification)(::windows_core::Interface::as_raw(self), callback.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IAudioSystemEffectsPropertyStore, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioSystemEffectsPropertyStore { - type Vtable = IAudioSystemEffectsPropertyStore_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioSystemEffectsPropertyStore { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x302ae7f9_d7e0_43e4_971b_1f8293613d2a); -} #[repr(C)] #[doc(hidden)] pub struct IAudioSystemEffectsPropertyStore_Vtbl { @@ -2526,9 +2238,8 @@ pub struct IAudioSystemEffectsPropertyStore_Vtbl { pub RegisterPropertyChangeNotification: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, callback: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub UnregisterPropertyChangeNotification: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, callback: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioTreble(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioTreble, IAudioTreble_Vtbl, 0x0a717812_694e_4907_b74b_bafa5cfdca7b); +::windows_core::imp::interface_hierarchy!(IAudioTreble, ::windows_core::IUnknown, IPerChannelDbLevel); impl IAudioTreble { pub unsafe fn GetChannelCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2551,21 +2262,13 @@ impl IAudioTreble { (::windows_core::Interface::vtable(self).base__.SetLevelAllChannels)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(alevelsdb.as_ptr()), alevelsdb.len().try_into().unwrap(), ::core::mem::transmute(pguideventcontext.unwrap_or(::std::ptr::null()))).ok() } } -::windows_core::imp::interface_hierarchy!(IAudioTreble, ::windows_core::IUnknown, IPerChannelDbLevel); -unsafe impl ::windows_core::Interface for IAudioTreble { - type Vtable = IAudioTreble_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioTreble { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0a717812_694e_4907_b74b_bafa5cfdca7b); -} #[repr(C)] #[doc(hidden)] pub struct IAudioTreble_Vtbl { pub base__: IPerChannelDbLevel_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioViewManagerService(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioViewManagerService, IAudioViewManagerService_Vtbl, 0xa7a7ef10_1f49_45e0_ad35_612057cc8f74); +::windows_core::imp::interface_hierarchy!(IAudioViewManagerService, ::windows_core::IUnknown); impl IAudioViewManagerService { pub unsafe fn SetAudioStreamWindow(&self, hwnd: P0) -> ::windows_core::Result<()> where @@ -2574,22 +2277,14 @@ impl IAudioViewManagerService { (::windows_core::Interface::vtable(self).SetAudioStreamWindow)(::windows_core::Interface::as_raw(self), hwnd.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IAudioViewManagerService, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioViewManagerService { - type Vtable = IAudioViewManagerService_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioViewManagerService { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa7a7ef10_1f49_45e0_ad35_612057cc8f74); -} #[repr(C)] #[doc(hidden)] pub struct IAudioViewManagerService_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub SetAudioStreamWindow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwnd: super::super::Foundation::HWND) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioVolumeDuckNotification(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioVolumeDuckNotification, IAudioVolumeDuckNotification_Vtbl, 0xc3b284d4_6d39_4359_b3cf_b56ddb3bb39c); +::windows_core::imp::interface_hierarchy!(IAudioVolumeDuckNotification, ::windows_core::IUnknown); impl IAudioVolumeDuckNotification { pub unsafe fn OnVolumeDuckNotification(&self, sessionid: P0, countcommunicationsessions: u32) -> ::windows_core::Result<()> where @@ -2604,13 +2299,6 @@ impl IAudioVolumeDuckNotification { (::windows_core::Interface::vtable(self).OnVolumeUnduckNotification)(::windows_core::Interface::as_raw(self), sessionid.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IAudioVolumeDuckNotification, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioVolumeDuckNotification { - type Vtable = IAudioVolumeDuckNotification_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioVolumeDuckNotification { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc3b284d4_6d39_4359_b3cf_b56ddb3bb39c); -} #[repr(C)] #[doc(hidden)] pub struct IAudioVolumeDuckNotification_Vtbl { @@ -2618,9 +2306,8 @@ pub struct IAudioVolumeDuckNotification_Vtbl { pub OnVolumeDuckNotification: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sessionid: ::windows_core::PCWSTR, countcommunicationsessions: u32) -> ::windows_core::HRESULT, pub OnVolumeUnduckNotification: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sessionid: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioVolumeLevel(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioVolumeLevel, IAudioVolumeLevel_Vtbl, 0x7fb7b48f_531d_44a2_bcb3_5ad5a134b3dc); +::windows_core::imp::interface_hierarchy!(IAudioVolumeLevel, ::windows_core::IUnknown, IPerChannelDbLevel); impl IAudioVolumeLevel { pub unsafe fn GetChannelCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2643,21 +2330,13 @@ impl IAudioVolumeLevel { (::windows_core::Interface::vtable(self).base__.SetLevelAllChannels)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(alevelsdb.as_ptr()), alevelsdb.len().try_into().unwrap(), ::core::mem::transmute(pguideventcontext.unwrap_or(::std::ptr::null()))).ok() } } -::windows_core::imp::interface_hierarchy!(IAudioVolumeLevel, ::windows_core::IUnknown, IPerChannelDbLevel); -unsafe impl ::windows_core::Interface for IAudioVolumeLevel { - type Vtable = IAudioVolumeLevel_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioVolumeLevel { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7fb7b48f_531d_44a2_bcb3_5ad5a134b3dc); -} #[repr(C)] #[doc(hidden)] pub struct IAudioVolumeLevel_Vtbl { pub base__: IPerChannelDbLevel_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IChannelAudioVolume(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IChannelAudioVolume, IChannelAudioVolume_Vtbl, 0x1c158861_b533_4b30_b1cf_e853e51c59b8); +::windows_core::imp::interface_hierarchy!(IChannelAudioVolume, ::windows_core::IUnknown); impl IChannelAudioVolume { pub unsafe fn GetChannelCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2677,13 +2356,6 @@ impl IChannelAudioVolume { (::windows_core::Interface::vtable(self).GetAllVolumes)(::windows_core::Interface::as_raw(self), pfvolumes.len().try_into().unwrap(), ::core::mem::transmute(pfvolumes.as_ptr())).ok() } } -::windows_core::imp::interface_hierarchy!(IChannelAudioVolume, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IChannelAudioVolume { - type Vtable = IChannelAudioVolume_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IChannelAudioVolume { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1c158861_b533_4b30_b1cf_e853e51c59b8); -} #[repr(C)] #[doc(hidden)] pub struct IChannelAudioVolume_Vtbl { @@ -2694,9 +2366,8 @@ pub struct IChannelAudioVolume_Vtbl { pub SetAllVolumes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwcount: u32, pfvolumes: *const f32, eventcontext: *const ::windows_core::GUID) -> ::windows_core::HRESULT, pub GetAllVolumes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwcount: u32, pfvolumes: *mut f32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IConnector(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IConnector, IConnector_Vtbl, 0x9c2c4058_23f5_41de_877a_df3af236a09e); +::windows_core::imp::interface_hierarchy!(IConnector, ::windows_core::IUnknown); impl IConnector { pub unsafe fn GetType(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2732,13 +2403,6 @@ impl IConnector { (::windows_core::Interface::vtable(self).GetDeviceIdConnectedTo)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IConnector, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IConnector { - type Vtable = IConnector_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IConnector { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9c2c4058_23f5_41de_877a_df3af236a09e); -} #[repr(C)] #[doc(hidden)] pub struct IConnector_Vtbl { @@ -2752,30 +2416,21 @@ pub struct IConnector_Vtbl { pub GetConnectorIdConnectedTo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppwstrconnectorid: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, pub GetDeviceIdConnectedTo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppwstrdeviceid: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IControlChangeNotify(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IControlChangeNotify, IControlChangeNotify_Vtbl, 0xa09513ed_c709_4d21_bd7b_5f34c47f3947); +::windows_core::imp::interface_hierarchy!(IControlChangeNotify, ::windows_core::IUnknown); impl IControlChangeNotify { pub unsafe fn OnNotify(&self, dwsenderprocessid: u32, pguideventcontext: ::core::option::Option<*const ::windows_core::GUID>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnNotify)(::windows_core::Interface::as_raw(self), dwsenderprocessid, ::core::mem::transmute(pguideventcontext.unwrap_or(::std::ptr::null()))).ok() } } -::windows_core::imp::interface_hierarchy!(IControlChangeNotify, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IControlChangeNotify { - type Vtable = IControlChangeNotify_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IControlChangeNotify { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa09513ed_c709_4d21_bd7b_5f34c47f3947); -} #[repr(C)] #[doc(hidden)] pub struct IControlChangeNotify_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnNotify: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwsenderprocessid: u32, pguideventcontext: *const ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IControlInterface(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IControlInterface, IControlInterface_Vtbl, 0x45d37c3f_5140_444a_ae24_400789f3cbf3); +::windows_core::imp::interface_hierarchy!(IControlInterface, ::windows_core::IUnknown); impl IControlInterface { pub unsafe fn GetName(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); @@ -2786,13 +2441,6 @@ impl IControlInterface { (::windows_core::Interface::vtable(self).GetIID)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IControlInterface, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IControlInterface { - type Vtable = IControlInterface_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IControlInterface { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x45d37c3f_5140_444a_ae24_400789f3cbf3); -} #[repr(C)] #[doc(hidden)] pub struct IControlInterface_Vtbl { @@ -2800,9 +2448,8 @@ pub struct IControlInterface_Vtbl { pub GetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppwstrname: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, pub GetIID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, piid: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDeviceSpecificProperty(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDeviceSpecificProperty, IDeviceSpecificProperty_Vtbl, 0x3b22bcbf_2586_4af0_8583_205d391b807c); +::windows_core::imp::interface_hierarchy!(IDeviceSpecificProperty, ::windows_core::IUnknown); impl IDeviceSpecificProperty { pub unsafe fn GetType(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2818,13 +2465,6 @@ impl IDeviceSpecificProperty { (::windows_core::Interface::vtable(self).Get4BRange)(::windows_core::Interface::as_raw(self), plmin, plmax, plstepping).ok() } } -::windows_core::imp::interface_hierarchy!(IDeviceSpecificProperty, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDeviceSpecificProperty { - type Vtable = IDeviceSpecificProperty_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDeviceSpecificProperty { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3b22bcbf_2586_4af0_8583_205d391b807c); -} #[repr(C)] #[doc(hidden)] pub struct IDeviceSpecificProperty_Vtbl { @@ -2834,9 +2474,8 @@ pub struct IDeviceSpecificProperty_Vtbl { pub SetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvvalue: *const ::core::ffi::c_void, cbvalue: u32, pguideventcontext: *const ::windows_core::GUID) -> ::windows_core::HRESULT, pub Get4BRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plmin: *mut i32, plmax: *mut i32, plstepping: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDeviceTopology(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDeviceTopology, IDeviceTopology_Vtbl, 0x2a07407e_6497_4a18_9787_32f79bd0d98f); +::windows_core::imp::interface_hierarchy!(IDeviceTopology, ::windows_core::IUnknown); impl IDeviceTopology { pub unsafe fn GetConnectorCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2872,13 +2511,6 @@ impl IDeviceTopology { (::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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDeviceTopology, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDeviceTopology { - type Vtable = IDeviceTopology_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDeviceTopology { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2a07407e_6497_4a18_9787_32f79bd0d98f); -} #[repr(C)] #[doc(hidden)] pub struct IDeviceTopology_Vtbl { @@ -2891,15 +2523,14 @@ pub struct IDeviceTopology_Vtbl { pub GetDeviceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppwstrdeviceid: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, pub GetSignalPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pipartfrom: *mut ::core::ffi::c_void, pipartto: *mut ::core::ffi::c_void, brejectmixedpaths: super::super::Foundation::BOOL, ppparts: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMMDevice(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMMDevice, IMMDevice_Vtbl, 0xd666063f_1587_4e43_81f1_b948e807363f); +::windows_core::imp::interface_hierarchy!(IMMDevice, ::windows_core::IUnknown); impl IMMDevice { #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn Activate(&self, dwclsctx: super::super::System::Com::CLSCTX, pactivationparams: ::core::option::Option<*const super::super::System::Com::StructuredStorage::PROPVARIANT>) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).Activate)(::windows_core::Interface::as_raw(self), &T::IID, dwclsctx, ::core::mem::transmute(pactivationparams.unwrap_or(::std::ptr::null())), &mut result__).from_abi(result__) @@ -2919,13 +2550,6 @@ impl IMMDevice { (::windows_core::Interface::vtable(self).GetState)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMMDevice, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMMDevice { - type Vtable = IMMDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMMDevice { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd666063f_1587_4e43_81f1_b948e807363f); -} #[repr(C)] #[doc(hidden)] pub struct IMMDevice_Vtbl { @@ -2941,9 +2565,8 @@ pub struct IMMDevice_Vtbl { pub GetId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppstrid: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, pub GetState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwstate: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMMDeviceActivator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMMDeviceActivator, IMMDeviceActivator_Vtbl, 0x3b0d0ea4_d0a9_4b0e_935b_09516746fac0); +::windows_core::imp::interface_hierarchy!(IMMDeviceActivator, ::windows_core::IUnknown); impl IMMDeviceActivator { #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] @@ -2954,13 +2577,6 @@ impl IMMDeviceActivator { (::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::imp::interface_hierarchy!(IMMDeviceActivator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMMDeviceActivator { - type Vtable = IMMDeviceActivator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMMDeviceActivator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3b0d0ea4_d0a9_4b0e_935b_09516746fac0); -} #[repr(C)] #[doc(hidden)] pub struct IMMDeviceActivator_Vtbl { @@ -2970,9 +2586,8 @@ pub struct IMMDeviceActivator_Vtbl { #[cfg(not(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant")))] Activate: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMMDeviceCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMMDeviceCollection, IMMDeviceCollection_Vtbl, 0x0bd7a1be_7a1a_44db_8397_cc5392387b5e); +::windows_core::imp::interface_hierarchy!(IMMDeviceCollection, ::windows_core::IUnknown); impl IMMDeviceCollection { pub unsafe fn GetCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2983,13 +2598,6 @@ impl IMMDeviceCollection { (::windows_core::Interface::vtable(self).Item)(::windows_core::Interface::as_raw(self), ndevice, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMMDeviceCollection, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMMDeviceCollection { - type Vtable = IMMDeviceCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMMDeviceCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0bd7a1be_7a1a_44db_8397_cc5392387b5e); -} #[repr(C)] #[doc(hidden)] pub struct IMMDeviceCollection_Vtbl { @@ -2997,9 +2605,8 @@ pub struct IMMDeviceCollection_Vtbl { pub GetCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcdevices: *mut u32) -> ::windows_core::HRESULT, pub Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ndevice: u32, ppdevice: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMMDeviceEnumerator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMMDeviceEnumerator, IMMDeviceEnumerator_Vtbl, 0xa95664d2_9614_4f35_a746_de8db63617e6); +::windows_core::imp::interface_hierarchy!(IMMDeviceEnumerator, ::windows_core::IUnknown); impl IMMDeviceEnumerator { pub unsafe fn EnumAudioEndpoints(&self, dataflow: EDataFlow, dwstatemask: u32) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -3029,13 +2636,6 @@ impl IMMDeviceEnumerator { (::windows_core::Interface::vtable(self).UnregisterEndpointNotificationCallback)(::windows_core::Interface::as_raw(self), pclient.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMMDeviceEnumerator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMMDeviceEnumerator { - type Vtable = IMMDeviceEnumerator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMMDeviceEnumerator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa95664d2_9614_4f35_a746_de8db63617e6); -} #[repr(C)] #[doc(hidden)] pub struct IMMDeviceEnumerator_Vtbl { @@ -3046,31 +2646,22 @@ pub struct IMMDeviceEnumerator_Vtbl { pub RegisterEndpointNotificationCallback: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pclient: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub UnregisterEndpointNotificationCallback: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pclient: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMMEndpoint(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMMEndpoint, IMMEndpoint_Vtbl, 0x1be09788_6894_4089_8586_9a2a6c265ac5); +::windows_core::imp::interface_hierarchy!(IMMEndpoint, ::windows_core::IUnknown); impl IMMEndpoint { pub unsafe fn GetDataFlow(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetDataFlow)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMMEndpoint, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMMEndpoint { - type Vtable = IMMEndpoint_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMMEndpoint { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1be09788_6894_4089_8586_9a2a6c265ac5); -} #[repr(C)] #[doc(hidden)] pub struct IMMEndpoint_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetDataFlow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdataflow: *mut EDataFlow) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMMNotificationClient(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMMNotificationClient, IMMNotificationClient_Vtbl, 0x7991eec9_7e89_4d85_8390_6c703cec60c0); +::windows_core::imp::interface_hierarchy!(IMMNotificationClient, ::windows_core::IUnknown); impl IMMNotificationClient { pub unsafe fn OnDeviceStateChanged(&self, pwstrdeviceid: P0, dwnewstate: u32) -> ::windows_core::Result<()> where @@ -3105,13 +2696,6 @@ impl IMMNotificationClient { (::windows_core::Interface::vtable(self).OnPropertyValueChanged)(::windows_core::Interface::as_raw(self), pwstrdeviceid.into_param().abi(), ::core::mem::transmute(key)).ok() } } -::windows_core::imp::interface_hierarchy!(IMMNotificationClient, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMMNotificationClient { - type Vtable = IMMNotificationClient_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMMNotificationClient { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7991eec9_7e89_4d85_8390_6c703cec60c0); -} #[repr(C)] #[doc(hidden)] pub struct IMMNotificationClient_Vtbl { @@ -3125,9 +2709,8 @@ pub struct IMMNotificationClient_Vtbl { #[cfg(not(feature = "Win32_UI_Shell_PropertiesSystem"))] OnPropertyValueChanged: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMessageFilter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMessageFilter, IMessageFilter_Vtbl, 0x00000016_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IMessageFilter, ::windows_core::IUnknown); impl IMessageFilter { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -3150,13 +2733,6 @@ impl IMessageFilter { (::windows_core::Interface::vtable(self).MessagePending)(::windows_core::Interface::as_raw(self), htaskcallee.into_param().abi(), dwtickcount, dwpendingtype) } } -::windows_core::imp::interface_hierarchy!(IMessageFilter, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMessageFilter { - type Vtable = IMessageFilter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMessageFilter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00000016_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IMessageFilter_Vtbl { @@ -3168,9 +2744,8 @@ pub struct IMessageFilter_Vtbl { pub RetryRejectedCall: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, htaskcallee: super::HTASK, dwtickcount: u32, dwrejecttype: u32) -> u32, pub MessagePending: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, htaskcallee: super::HTASK, dwtickcount: u32, dwpendingtype: u32) -> u32, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPart(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPart, IPart_Vtbl, 0xae2de0e4_5bca_4f2d_aa46_5d13f8fdb3a9); +::windows_core::imp::interface_hierarchy!(IPart, ::windows_core::IUnknown); impl IPart { pub unsafe fn GetName(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); @@ -3228,13 +2803,6 @@ impl IPart { (::windows_core::Interface::vtable(self).UnregisterControlChangeCallback)(::windows_core::Interface::as_raw(self), pnotify.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IPart, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPart { - type Vtable = IPart_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPart { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xae2de0e4_5bca_4f2d_aa46_5d13f8fdb3a9); -} #[repr(C)] #[doc(hidden)] pub struct IPart_Vtbl { @@ -3253,9 +2821,8 @@ pub struct IPart_Vtbl { pub RegisterControlChangeCallback: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, pnotify: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub UnregisterControlChangeCallback: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pnotify: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPartsList(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPartsList, IPartsList_Vtbl, 0x6daa848c_5eb0_45cc_aea5_998a2cda1ffb); +::windows_core::imp::interface_hierarchy!(IPartsList, ::windows_core::IUnknown); impl IPartsList { pub unsafe fn GetCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -3266,13 +2833,6 @@ impl IPartsList { (::windows_core::Interface::vtable(self).GetPart)(::windows_core::Interface::as_raw(self), nindex, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IPartsList, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPartsList { - type Vtable = IPartsList_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPartsList { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6daa848c_5eb0_45cc_aea5_998a2cda1ffb); -} #[repr(C)] #[doc(hidden)] pub struct IPartsList_Vtbl { @@ -3280,9 +2840,8 @@ pub struct IPartsList_Vtbl { pub GetCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcount: *mut u32) -> ::windows_core::HRESULT, pub GetPart: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nindex: u32, pppart: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPerChannelDbLevel(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPerChannelDbLevel, IPerChannelDbLevel_Vtbl, 0xc2f8e001_f205_4bc9_99bc_c13b1e048ccb); +::windows_core::imp::interface_hierarchy!(IPerChannelDbLevel, ::windows_core::IUnknown); impl IPerChannelDbLevel { pub unsafe fn GetChannelCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -3305,13 +2864,6 @@ impl IPerChannelDbLevel { (::windows_core::Interface::vtable(self).SetLevelAllChannels)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(alevelsdb.as_ptr()), alevelsdb.len().try_into().unwrap(), ::core::mem::transmute(pguideventcontext.unwrap_or(::std::ptr::null()))).ok() } } -::windows_core::imp::interface_hierarchy!(IPerChannelDbLevel, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPerChannelDbLevel { - type Vtable = IPerChannelDbLevel_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPerChannelDbLevel { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc2f8e001_f205_4bc9_99bc_c13b1e048ccb); -} #[repr(C)] #[doc(hidden)] pub struct IPerChannelDbLevel_Vtbl { @@ -3323,9 +2875,8 @@ pub struct IPerChannelDbLevel_Vtbl { pub SetLevelUniform: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fleveldb: f32, pguideventcontext: *const ::windows_core::GUID) -> ::windows_core::HRESULT, pub SetLevelAllChannels: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, alevelsdb: *const f32, cchannels: u32, pguideventcontext: *const ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISimpleAudioVolume(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISimpleAudioVolume, ISimpleAudioVolume_Vtbl, 0x87ce5498_68d6_44e5_9215_6da47ef883d8); +::windows_core::imp::interface_hierarchy!(ISimpleAudioVolume, ::windows_core::IUnknown); impl ISimpleAudioVolume { pub unsafe fn SetMasterVolume(&self, flevel: f32, eventcontext: *const ::windows_core::GUID) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetMasterVolume)(::windows_core::Interface::as_raw(self), flevel, eventcontext).ok() @@ -3345,13 +2896,6 @@ impl ISimpleAudioVolume { (::windows_core::Interface::vtable(self).GetMute)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISimpleAudioVolume, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISimpleAudioVolume { - type Vtable = ISimpleAudioVolume_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISimpleAudioVolume { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x87ce5498_68d6_44e5_9215_6da47ef883d8); -} #[repr(C)] #[doc(hidden)] pub struct ISimpleAudioVolume_Vtbl { @@ -3361,9 +2905,8 @@ pub struct ISimpleAudioVolume_Vtbl { pub SetMute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bmute: super::super::Foundation::BOOL, eventcontext: *const ::windows_core::GUID) -> ::windows_core::HRESULT, pub GetMute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbmute: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialAudioClient(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpatialAudioClient, ISpatialAudioClient_Vtbl, 0xbbf8e066_aaaa_49be_9a4d_fd2a858ea27f); +::windows_core::imp::interface_hierarchy!(ISpatialAudioClient, ::windows_core::IUnknown); impl ISpatialAudioClient { pub unsafe fn GetStaticObjectPosition(&self, r#type: AudioObjectType, x: *mut f32, y: *mut f32, z: *mut f32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetStaticObjectPosition)(::windows_core::Interface::as_raw(self), r#type, x, y, z).ok() @@ -3396,19 +2939,12 @@ impl ISpatialAudioClient { #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn ActivateSpatialAudioStream(&self, activationparams: *const super::super::System::Com::StructuredStorage::PROPVARIANT) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).ActivateSpatialAudioStream)(::windows_core::Interface::as_raw(self), activationparams, &T::IID, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISpatialAudioClient, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialAudioClient { - type Vtable = ISpatialAudioClient_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialAudioClient { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbbf8e066_aaaa_49be_9a4d_fd2a858ea27f); -} #[repr(C)] #[doc(hidden)] pub struct ISpatialAudioClient_Vtbl { @@ -3428,9 +2964,8 @@ pub struct ISpatialAudioClient_Vtbl { #[cfg(not(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant")))] ActivateSpatialAudioStream: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialAudioClient2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpatialAudioClient2, ISpatialAudioClient2_Vtbl, 0xcaabe452_a66a_4bee_a93e_e320463f6a53); +::windows_core::imp::interface_hierarchy!(ISpatialAudioClient2, ::windows_core::IUnknown, ISpatialAudioClient); impl ISpatialAudioClient2 { pub unsafe fn GetStaticObjectPosition(&self, r#type: AudioObjectType, x: *mut f32, y: *mut f32, z: *mut f32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.GetStaticObjectPosition)(::windows_core::Interface::as_raw(self), r#type, x, y, z).ok() @@ -3463,7 +2998,7 @@ impl ISpatialAudioClient2 { #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] pub unsafe fn ActivateSpatialAudioStream(&self, activationparams: *const super::super::System::Com::StructuredStorage::PROPVARIANT) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.ActivateSpatialAudioStream)(::windows_core::Interface::as_raw(self), activationparams, &T::IID, &mut result__).from_abi(result__) @@ -3480,13 +3015,6 @@ impl ISpatialAudioClient2 { (::windows_core::Interface::vtable(self).GetMaxFrameCountForCategory)(::windows_core::Interface::as_raw(self), category, offloadenabled.into_param().abi(), objectformat, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISpatialAudioClient2, ::windows_core::IUnknown, ISpatialAudioClient); -unsafe impl ::windows_core::Interface for ISpatialAudioClient2 { - type Vtable = ISpatialAudioClient2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialAudioClient2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcaabe452_a66a_4bee_a93e_e320463f6a53); -} #[repr(C)] #[doc(hidden)] pub struct ISpatialAudioClient2_Vtbl { @@ -3494,9 +3022,8 @@ pub struct ISpatialAudioClient2_Vtbl { pub IsOffloadCapable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, category: AUDIO_STREAM_CATEGORY, isoffloadcapable: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub GetMaxFrameCountForCategory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, category: AUDIO_STREAM_CATEGORY, offloadenabled: super::super::Foundation::BOOL, objectformat: *const WAVEFORMATEX, framecountperbuffer: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialAudioMetadataClient(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpatialAudioMetadataClient, ISpatialAudioMetadataClient_Vtbl, 0x777d4a3b_f6ff_4a26_85dc_68d7cdeda1d4); +::windows_core::imp::interface_hierarchy!(ISpatialAudioMetadataClient, ::windows_core::IUnknown); impl ISpatialAudioMetadataClient { pub unsafe fn ActivateSpatialAudioMetadataItems(&self, maxitemcount: u16, framecount: u16, metadataitemsbuffer: ::core::option::Option<*mut ::core::option::Option>, metadataitems: *mut ::core::option::Option) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).ActivateSpatialAudioMetadataItems)(::windows_core::Interface::as_raw(self), maxitemcount, framecount, ::core::mem::transmute(metadataitemsbuffer.unwrap_or(::std::ptr::null_mut())), ::core::mem::transmute(metadataitems)).ok() @@ -3518,13 +3045,6 @@ impl ISpatialAudioMetadataClient { (::windows_core::Interface::vtable(self).ActivateSpatialAudioMetadataReader)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISpatialAudioMetadataClient, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialAudioMetadataClient { - type Vtable = ISpatialAudioMetadataClient_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialAudioMetadataClient { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x777d4a3b_f6ff_4a26_85dc_68d7cdeda1d4); -} #[repr(C)] #[doc(hidden)] pub struct ISpatialAudioMetadataClient_Vtbl { @@ -3535,9 +3055,8 @@ pub struct ISpatialAudioMetadataClient_Vtbl { pub ActivateSpatialAudioMetadataCopier: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, metadatacopier: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ActivateSpatialAudioMetadataReader: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, metadatareader: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialAudioMetadataCopier(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpatialAudioMetadataCopier, ISpatialAudioMetadataCopier_Vtbl, 0xd224b233_e251_4fd0_9ca2_d5ecf9a68404); +::windows_core::imp::interface_hierarchy!(ISpatialAudioMetadataCopier, ::windows_core::IUnknown); impl ISpatialAudioMetadataCopier { pub unsafe fn Open(&self, metadataitems: P0) -> ::windows_core::Result<()> where @@ -3556,13 +3075,6 @@ impl ISpatialAudioMetadataCopier { (::windows_core::Interface::vtable(self).Close)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ISpatialAudioMetadataCopier, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialAudioMetadataCopier { - type Vtable = ISpatialAudioMetadataCopier_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialAudioMetadataCopier { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd224b233_e251_4fd0_9ca2_d5ecf9a68404); -} #[repr(C)] #[doc(hidden)] pub struct ISpatialAudioMetadataCopier_Vtbl { @@ -3571,9 +3083,8 @@ pub struct ISpatialAudioMetadataCopier_Vtbl { pub CopyMetadataForFrames: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, copyframecount: u16, copymode: SpatialAudioMetadataCopyMode, dstmetadataitems: *mut ::core::ffi::c_void, itemscopied: *mut u16) -> ::windows_core::HRESULT, pub Close: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialAudioMetadataItems(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpatialAudioMetadataItems, ISpatialAudioMetadataItems_Vtbl, 0xbcd7c78f_3098_4f22_b547_a2f25a381269); +::windows_core::imp::interface_hierarchy!(ISpatialAudioMetadataItems, ::windows_core::IUnknown); impl ISpatialAudioMetadataItems { pub unsafe fn GetFrameCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -3596,13 +3107,6 @@ impl ISpatialAudioMetadataItems { (::windows_core::Interface::vtable(self).GetInfo)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISpatialAudioMetadataItems, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialAudioMetadataItems { - type Vtable = ISpatialAudioMetadataItems_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialAudioMetadataItems { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbcd7c78f_3098_4f22_b547_a2f25a381269); -} #[repr(C)] #[doc(hidden)] pub struct ISpatialAudioMetadataItems_Vtbl { @@ -3613,9 +3117,8 @@ pub struct ISpatialAudioMetadataItems_Vtbl { pub GetMaxValueBufferLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, maxvaluebufferlength: *mut u32) -> ::windows_core::HRESULT, pub GetInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, info: *mut SpatialAudioMetadataItemsInfo) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialAudioMetadataItemsBuffer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpatialAudioMetadataItemsBuffer, ISpatialAudioMetadataItemsBuffer_Vtbl, 0x42640a16_e1bd_42d9_9ff6_031ab71a2dba); +::windows_core::imp::interface_hierarchy!(ISpatialAudioMetadataItemsBuffer, ::windows_core::IUnknown); impl ISpatialAudioMetadataItemsBuffer { pub unsafe fn AttachToBuffer(&self, buffer: &mut [u8]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).AttachToBuffer)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(buffer.as_ptr()), buffer.len().try_into().unwrap()).ok() @@ -3627,13 +3130,6 @@ impl ISpatialAudioMetadataItemsBuffer { (::windows_core::Interface::vtable(self).DetachBuffer)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ISpatialAudioMetadataItemsBuffer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialAudioMetadataItemsBuffer { - type Vtable = ISpatialAudioMetadataItemsBuffer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialAudioMetadataItemsBuffer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x42640a16_e1bd_42d9_9ff6_031ab71a2dba); -} #[repr(C)] #[doc(hidden)] pub struct ISpatialAudioMetadataItemsBuffer_Vtbl { @@ -3642,9 +3138,8 @@ pub struct ISpatialAudioMetadataItemsBuffer_Vtbl { pub AttachToPopulatedBuffer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, buffer: *mut u8, bufferlength: u32) -> ::windows_core::HRESULT, pub DetachBuffer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialAudioMetadataReader(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpatialAudioMetadataReader, ISpatialAudioMetadataReader_Vtbl, 0xb78e86a2_31d9_4c32_94d2_7df40fc7ebec); +::windows_core::imp::interface_hierarchy!(ISpatialAudioMetadataReader, ::windows_core::IUnknown); impl ISpatialAudioMetadataReader { pub unsafe fn Open(&self, metadataitems: P0) -> ::windows_core::Result<()> where @@ -3662,13 +3157,6 @@ impl ISpatialAudioMetadataReader { (::windows_core::Interface::vtable(self).Close)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ISpatialAudioMetadataReader, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialAudioMetadataReader { - type Vtable = ISpatialAudioMetadataReader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialAudioMetadataReader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb78e86a2_31d9_4c32_94d2_7df40fc7ebec); -} #[repr(C)] #[doc(hidden)] pub struct ISpatialAudioMetadataReader_Vtbl { @@ -3678,9 +3166,8 @@ pub struct ISpatialAudioMetadataReader_Vtbl { pub ReadNextItemCommand: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, commandid: *mut u8, valuebuffer: *mut ::core::ffi::c_void, maxvaluebufferlength: u32, valuebufferlength: *mut u32) -> ::windows_core::HRESULT, pub Close: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialAudioMetadataWriter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpatialAudioMetadataWriter, ISpatialAudioMetadataWriter_Vtbl, 0x1b17ca01_2955_444d_a430_537dc589a844); +::windows_core::imp::interface_hierarchy!(ISpatialAudioMetadataWriter, ::windows_core::IUnknown); impl ISpatialAudioMetadataWriter { pub unsafe fn Open(&self, metadataitems: P0) -> ::windows_core::Result<()> where @@ -3698,13 +3185,6 @@ impl ISpatialAudioMetadataWriter { (::windows_core::Interface::vtable(self).Close)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ISpatialAudioMetadataWriter, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialAudioMetadataWriter { - type Vtable = ISpatialAudioMetadataWriter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialAudioMetadataWriter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1b17ca01_2955_444d_a430_537dc589a844); -} #[repr(C)] #[doc(hidden)] pub struct ISpatialAudioMetadataWriter_Vtbl { @@ -3714,9 +3194,8 @@ pub struct ISpatialAudioMetadataWriter_Vtbl { pub WriteNextItemCommand: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, commandid: u8, valuebuffer: *const ::core::ffi::c_void, valuebufferlength: u32) -> ::windows_core::HRESULT, pub Close: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialAudioObject(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpatialAudioObject, ISpatialAudioObject_Vtbl, 0xdde28967_521b_46e5_8f00_bd6f2bc8ab1d); +::windows_core::imp::interface_hierarchy!(ISpatialAudioObject, ::windows_core::IUnknown, ISpatialAudioObjectBase); impl ISpatialAudioObject { pub unsafe fn GetBuffer(&self, buffer: *mut *mut u8, bufferlength: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.GetBuffer)(::windows_core::Interface::as_raw(self), buffer, bufferlength).ok() @@ -3739,13 +3218,6 @@ impl ISpatialAudioObject { (::windows_core::Interface::vtable(self).SetVolume)(::windows_core::Interface::as_raw(self), volume).ok() } } -::windows_core::imp::interface_hierarchy!(ISpatialAudioObject, ::windows_core::IUnknown, ISpatialAudioObjectBase); -unsafe impl ::windows_core::Interface for ISpatialAudioObject { - type Vtable = ISpatialAudioObject_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialAudioObject { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdde28967_521b_46e5_8f00_bd6f2bc8ab1d); -} #[repr(C)] #[doc(hidden)] pub struct ISpatialAudioObject_Vtbl { @@ -3753,9 +3225,8 @@ pub struct ISpatialAudioObject_Vtbl { pub SetPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, x: f32, y: f32, z: f32) -> ::windows_core::HRESULT, pub SetVolume: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, volume: f32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialAudioObjectBase(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpatialAudioObjectBase, ISpatialAudioObjectBase_Vtbl, 0xcce0b8f2_8d4d_4efb_a8cf_3d6ecf1c30e0); +::windows_core::imp::interface_hierarchy!(ISpatialAudioObjectBase, ::windows_core::IUnknown); impl ISpatialAudioObjectBase { pub unsafe fn GetBuffer(&self, buffer: *mut *mut u8, bufferlength: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetBuffer)(::windows_core::Interface::as_raw(self), buffer, bufferlength).ok() @@ -3772,13 +3243,6 @@ impl ISpatialAudioObjectBase { (::windows_core::Interface::vtable(self).GetAudioObjectType)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISpatialAudioObjectBase, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialAudioObjectBase { - type Vtable = ISpatialAudioObjectBase_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialAudioObjectBase { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcce0b8f2_8d4d_4efb_a8cf_3d6ecf1c30e0); -} #[repr(C)] #[doc(hidden)] pub struct ISpatialAudioObjectBase_Vtbl { @@ -3788,9 +3252,8 @@ pub struct ISpatialAudioObjectBase_Vtbl { pub IsActive: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, isactive: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub GetAudioObjectType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, audioobjecttype: *mut AudioObjectType) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialAudioObjectForHrtf(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpatialAudioObjectForHrtf, ISpatialAudioObjectForHrtf_Vtbl, 0xd7436ade_1978_4e14_aba0_555bd8eb83b4); +::windows_core::imp::interface_hierarchy!(ISpatialAudioObjectForHrtf, ::windows_core::IUnknown, ISpatialAudioObjectBase); impl ISpatialAudioObjectForHrtf { pub unsafe fn GetBuffer(&self, buffer: *mut *mut u8, bufferlength: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.GetBuffer)(::windows_core::Interface::as_raw(self), buffer, bufferlength).ok() @@ -3825,13 +3288,6 @@ impl ISpatialAudioObjectForHrtf { (::windows_core::Interface::vtable(self).SetDirectivity)(::windows_core::Interface::as_raw(self), directivity).ok() } } -::windows_core::imp::interface_hierarchy!(ISpatialAudioObjectForHrtf, ::windows_core::IUnknown, ISpatialAudioObjectBase); -unsafe impl ::windows_core::Interface for ISpatialAudioObjectForHrtf { - type Vtable = ISpatialAudioObjectForHrtf_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialAudioObjectForHrtf { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd7436ade_1978_4e14_aba0_555bd8eb83b4); -} #[repr(C)] #[doc(hidden)] pub struct ISpatialAudioObjectForHrtf_Vtbl { @@ -3843,9 +3299,8 @@ pub struct ISpatialAudioObjectForHrtf_Vtbl { pub SetDistanceDecay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, distancedecay: *const SpatialAudioHrtfDistanceDecay) -> ::windows_core::HRESULT, pub SetDirectivity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, directivity: *const SpatialAudioHrtfDirectivityUnion) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialAudioObjectForMetadataCommands(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpatialAudioObjectForMetadataCommands, ISpatialAudioObjectForMetadataCommands_Vtbl, 0x0df2c94b_f5f9_472d_af6b_c46e0ac9cd05); +::windows_core::imp::interface_hierarchy!(ISpatialAudioObjectForMetadataCommands, ::windows_core::IUnknown, ISpatialAudioObjectBase); impl ISpatialAudioObjectForMetadataCommands { pub unsafe fn GetBuffer(&self, buffer: *mut *mut u8, bufferlength: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.GetBuffer)(::windows_core::Interface::as_raw(self), buffer, bufferlength).ok() @@ -3865,22 +3320,14 @@ impl ISpatialAudioObjectForMetadataCommands { (::windows_core::Interface::vtable(self).WriteNextMetadataCommand)(::windows_core::Interface::as_raw(self), commandid, ::core::mem::transmute(valuebuffer.unwrap_or(::std::ptr::null())), valuebufferlength).ok() } } -::windows_core::imp::interface_hierarchy!(ISpatialAudioObjectForMetadataCommands, ::windows_core::IUnknown, ISpatialAudioObjectBase); -unsafe impl ::windows_core::Interface for ISpatialAudioObjectForMetadataCommands { - type Vtable = ISpatialAudioObjectForMetadataCommands_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialAudioObjectForMetadataCommands { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0df2c94b_f5f9_472d_af6b_c46e0ac9cd05); -} #[repr(C)] #[doc(hidden)] pub struct ISpatialAudioObjectForMetadataCommands_Vtbl { pub base__: ISpatialAudioObjectBase_Vtbl, pub WriteNextMetadataCommand: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, commandid: u8, valuebuffer: *const ::core::ffi::c_void, valuebufferlength: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialAudioObjectForMetadataItems(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpatialAudioObjectForMetadataItems, ISpatialAudioObjectForMetadataItems_Vtbl, 0xddea49ff_3bc0_4377_8aad_9fbcfd808566); +::windows_core::imp::interface_hierarchy!(ISpatialAudioObjectForMetadataItems, ::windows_core::IUnknown, ISpatialAudioObjectBase); impl ISpatialAudioObjectForMetadataItems { pub unsafe fn GetBuffer(&self, buffer: *mut *mut u8, bufferlength: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.GetBuffer)(::windows_core::Interface::as_raw(self), buffer, bufferlength).ok() @@ -3901,22 +3348,14 @@ impl ISpatialAudioObjectForMetadataItems { (::windows_core::Interface::vtable(self).GetSpatialAudioMetadataItems)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISpatialAudioObjectForMetadataItems, ::windows_core::IUnknown, ISpatialAudioObjectBase); -unsafe impl ::windows_core::Interface for ISpatialAudioObjectForMetadataItems { - type Vtable = ISpatialAudioObjectForMetadataItems_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialAudioObjectForMetadataItems { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xddea49ff_3bc0_4377_8aad_9fbcfd808566); -} #[repr(C)] #[doc(hidden)] pub struct ISpatialAudioObjectForMetadataItems_Vtbl { pub base__: ISpatialAudioObjectBase_Vtbl, pub GetSpatialAudioMetadataItems: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, metadataitems: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialAudioObjectRenderStream(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpatialAudioObjectRenderStream, ISpatialAudioObjectRenderStream_Vtbl, 0xbab5f473_b423_477b_85f5_b5a332a04153); +::windows_core::imp::interface_hierarchy!(ISpatialAudioObjectRenderStream, ::windows_core::IUnknown, ISpatialAudioObjectRenderStreamBase); impl ISpatialAudioObjectRenderStream { pub unsafe fn GetAvailableDynamicObjectCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -3924,7 +3363,7 @@ impl ISpatialAudioObjectRenderStream { } pub unsafe fn GetService(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.GetService)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -3949,22 +3388,14 @@ impl ISpatialAudioObjectRenderStream { (::windows_core::Interface::vtable(self).ActivateSpatialAudioObject)(::windows_core::Interface::as_raw(self), r#type, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISpatialAudioObjectRenderStream, ::windows_core::IUnknown, ISpatialAudioObjectRenderStreamBase); -unsafe impl ::windows_core::Interface for ISpatialAudioObjectRenderStream { - type Vtable = ISpatialAudioObjectRenderStream_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialAudioObjectRenderStream { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbab5f473_b423_477b_85f5_b5a332a04153); -} #[repr(C)] #[doc(hidden)] pub struct ISpatialAudioObjectRenderStream_Vtbl { pub base__: ISpatialAudioObjectRenderStreamBase_Vtbl, pub ActivateSpatialAudioObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: AudioObjectType, audioobject: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialAudioObjectRenderStreamBase(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpatialAudioObjectRenderStreamBase, ISpatialAudioObjectRenderStreamBase_Vtbl, 0xfeaaf403_c1d8_450d_aa05_e0ccee7502a8); +::windows_core::imp::interface_hierarchy!(ISpatialAudioObjectRenderStreamBase, ::windows_core::IUnknown); impl ISpatialAudioObjectRenderStreamBase { pub unsafe fn GetAvailableDynamicObjectCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -3972,7 +3403,7 @@ impl ISpatialAudioObjectRenderStreamBase { } pub unsafe fn GetService(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetService)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -3993,13 +3424,6 @@ impl ISpatialAudioObjectRenderStreamBase { (::windows_core::Interface::vtable(self).EndUpdatingAudioObjects)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ISpatialAudioObjectRenderStreamBase, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialAudioObjectRenderStreamBase { - type Vtable = ISpatialAudioObjectRenderStreamBase_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialAudioObjectRenderStreamBase { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfeaaf403_c1d8_450d_aa05_e0ccee7502a8); -} #[repr(C)] #[doc(hidden)] pub struct ISpatialAudioObjectRenderStreamBase_Vtbl { @@ -4012,9 +3436,8 @@ pub struct ISpatialAudioObjectRenderStreamBase_Vtbl { pub BeginUpdatingAudioObjects: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, availabledynamicobjectcount: *mut u32, framecountperbuffer: *mut u32) -> ::windows_core::HRESULT, pub EndUpdatingAudioObjects: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialAudioObjectRenderStreamForHrtf(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpatialAudioObjectRenderStreamForHrtf, ISpatialAudioObjectRenderStreamForHrtf_Vtbl, 0xe08deef9_5363_406e_9fdc_080ee247bbe0); +::windows_core::imp::interface_hierarchy!(ISpatialAudioObjectRenderStreamForHrtf, ::windows_core::IUnknown, ISpatialAudioObjectRenderStreamBase); impl ISpatialAudioObjectRenderStreamForHrtf { pub unsafe fn GetAvailableDynamicObjectCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -4022,7 +3445,7 @@ impl ISpatialAudioObjectRenderStreamForHrtf { } pub unsafe fn GetService(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.GetService)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -4047,22 +3470,14 @@ impl ISpatialAudioObjectRenderStreamForHrtf { (::windows_core::Interface::vtable(self).ActivateSpatialAudioObjectForHrtf)(::windows_core::Interface::as_raw(self), r#type, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISpatialAudioObjectRenderStreamForHrtf, ::windows_core::IUnknown, ISpatialAudioObjectRenderStreamBase); -unsafe impl ::windows_core::Interface for ISpatialAudioObjectRenderStreamForHrtf { - type Vtable = ISpatialAudioObjectRenderStreamForHrtf_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialAudioObjectRenderStreamForHrtf { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe08deef9_5363_406e_9fdc_080ee247bbe0); -} #[repr(C)] #[doc(hidden)] pub struct ISpatialAudioObjectRenderStreamForHrtf_Vtbl { pub base__: ISpatialAudioObjectRenderStreamBase_Vtbl, pub ActivateSpatialAudioObjectForHrtf: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: AudioObjectType, audioobject: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialAudioObjectRenderStreamForMetadata(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpatialAudioObjectRenderStreamForMetadata, ISpatialAudioObjectRenderStreamForMetadata_Vtbl, 0xbbc9c907_48d5_4a2e_a0c7_f7f0d67c1fb1); +::windows_core::imp::interface_hierarchy!(ISpatialAudioObjectRenderStreamForMetadata, ::windows_core::IUnknown, ISpatialAudioObjectRenderStreamBase); impl ISpatialAudioObjectRenderStreamForMetadata { pub unsafe fn GetAvailableDynamicObjectCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -4070,7 +3485,7 @@ impl ISpatialAudioObjectRenderStreamForMetadata { } pub unsafe fn GetService(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.GetService)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -4099,13 +3514,6 @@ impl ISpatialAudioObjectRenderStreamForMetadata { (::windows_core::Interface::vtable(self).ActivateSpatialAudioObjectForMetadataItems)(::windows_core::Interface::as_raw(self), r#type, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISpatialAudioObjectRenderStreamForMetadata, ::windows_core::IUnknown, ISpatialAudioObjectRenderStreamBase); -unsafe impl ::windows_core::Interface for ISpatialAudioObjectRenderStreamForMetadata { - type Vtable = ISpatialAudioObjectRenderStreamForMetadata_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialAudioObjectRenderStreamForMetadata { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbbc9c907_48d5_4a2e_a0c7_f7f0d67c1fb1); -} #[repr(C)] #[doc(hidden)] pub struct ISpatialAudioObjectRenderStreamForMetadata_Vtbl { @@ -4113,9 +3521,8 @@ pub struct ISpatialAudioObjectRenderStreamForMetadata_Vtbl { pub ActivateSpatialAudioObjectForMetadataCommands: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: AudioObjectType, audioobject: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ActivateSpatialAudioObjectForMetadataItems: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: AudioObjectType, audioobject: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialAudioObjectRenderStreamNotify(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpatialAudioObjectRenderStreamNotify, ISpatialAudioObjectRenderStreamNotify_Vtbl, 0xdddf83e6_68d7_4c70_883f_a1836afb4a50); +::windows_core::imp::interface_hierarchy!(ISpatialAudioObjectRenderStreamNotify, ::windows_core::IUnknown); impl ISpatialAudioObjectRenderStreamNotify { pub unsafe fn OnAvailableDynamicObjectCountChange(&self, sender: P0, hnscompliancedeadlinetime: i64, availabledynamicobjectcountchange: u32) -> ::windows_core::Result<()> where @@ -4124,30 +3531,15 @@ impl ISpatialAudioObjectRenderStreamNotify { (::windows_core::Interface::vtable(self).OnAvailableDynamicObjectCountChange)(::windows_core::Interface::as_raw(self), sender.into_param().abi(), hnscompliancedeadlinetime, availabledynamicobjectcountchange).ok() } } -::windows_core::imp::interface_hierarchy!(ISpatialAudioObjectRenderStreamNotify, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpatialAudioObjectRenderStreamNotify { - type Vtable = ISpatialAudioObjectRenderStreamNotify_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialAudioObjectRenderStreamNotify { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdddf83e6_68d7_4c70_883f_a1836afb4a50); -} #[repr(C)] #[doc(hidden)] pub struct ISpatialAudioObjectRenderStreamNotify_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnAvailableDynamicObjectCountChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sender: *mut ::core::ffi::c_void, hnscompliancedeadlinetime: i64, availabledynamicobjectcountchange: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISubunit(::windows_core::IUnknown); -impl ISubunit {} +::windows_core::imp::com_interface!(ISubunit, ISubunit_Vtbl, 0x82149a85_dba6_4487_86bb_ea8f7fefcc71); ::windows_core::imp::interface_hierarchy!(ISubunit, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISubunit { - type Vtable = ISubunit_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISubunit { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x82149a85_dba6_4487_86bb_ea8f7fefcc71); -} +impl ISubunit {} #[repr(C)] #[doc(hidden)] pub struct ISubunit_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Media/DeviceManager/impl.rs b/crates/libs/windows/src/Windows/Win32/Media/DeviceManager/impl.rs index 5a4690c0f3..5b1c3a77a7 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/DeviceManager/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/DeviceManager/impl.rs @@ -22,7 +22,7 @@ impl IComponentAuthenticate_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Media_Audio\"`"] @@ -146,7 +146,7 @@ impl IMDSPDevice_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_Media_Audio\"`, `\"Win32_Media_MediaFoundation\"`, `\"Win32_System_Ole\"`"] @@ -197,7 +197,7 @@ impl IMDSPDevice2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_Media_Audio\"`, `\"Win32_Media_MediaFoundation\"`, `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -267,7 +267,7 @@ impl IMDSPDevice3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Media_Audio\"`"] @@ -352,7 +352,7 @@ impl IMDSPDeviceControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMDSPDirectTransfer_Impl: Sized { @@ -375,7 +375,7 @@ impl IMDSPDirectTransfer_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), TransferToDevice: TransferToDevice:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMDSPEnumDevice_Impl: Sized { @@ -428,7 +428,7 @@ impl IMDSPEnumDevice_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMDSPEnumStorage_Impl: Sized { @@ -481,7 +481,7 @@ impl IMDSPEnumStorage_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMDSPObject_Impl: Sized { @@ -550,7 +550,7 @@ impl IMDSPObject_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMDSPObject2_Impl: Sized + IMDSPObject_Impl { @@ -577,7 +577,7 @@ impl IMDSPObject2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IMDSPObjectInfo_Impl: Sized { @@ -669,7 +669,7 @@ impl IMDSPObjectInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMDSPRevoked_Impl: Sized { @@ -686,7 +686,7 @@ impl IMDSPRevoked_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetRevocationURL: GetRevocationURL:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Media_Audio\"`"] @@ -797,7 +797,7 @@ impl IMDSPStorage_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_Media_Audio\"`, `\"Win32_Media_MediaFoundation\"`"] @@ -854,7 +854,7 @@ impl IMDSPStorage2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_Media_Audio\"`, `\"Win32_Media_MediaFoundation\"`"] @@ -885,7 +885,7 @@ impl IMDSPStorage3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_Media_Audio\"`, `\"Win32_Media_MediaFoundation\"`"] @@ -962,7 +962,7 @@ impl IMDSPStorage4_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IMDSPStorageGlobals_Impl: Sized { @@ -1062,7 +1062,7 @@ impl IMDSPStorageGlobals_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMDServiceProvider_Impl: Sized { @@ -1101,7 +1101,7 @@ impl IMDServiceProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMDServiceProvider2_Impl: Sized + IMDServiceProvider_Impl { @@ -1118,7 +1118,7 @@ impl IMDServiceProvider2_Vtbl { Self { base__: IMDServiceProvider_Vtbl::new::(), CreateDevice: CreateDevice:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IMDServiceProvider3_Impl: Sized + IMDServiceProvider2_Impl { @@ -1135,7 +1135,7 @@ impl IMDServiceProvider3_Vtbl { Self { base__: IMDServiceProvider2_Vtbl::new::(), SetDeviceEnumPreference: SetDeviceEnumPreference:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ISCPSecureAuthenticate_Impl: Sized { @@ -1158,7 +1158,7 @@ impl ISCPSecureAuthenticate_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetSecureQuery: GetSecureQuery:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISCPSecureAuthenticate2_Impl: Sized + ISCPSecureAuthenticate_Impl { @@ -1181,7 +1181,7 @@ impl ISCPSecureAuthenticate2_Vtbl { Self { base__: ISCPSecureAuthenticate_Vtbl::new::(), GetSCPSession: GetSCPSession:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ISCPSecureExchange_Impl: Sized { @@ -1215,7 +1215,7 @@ impl ISCPSecureExchange_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISCPSecureExchange2_Impl: Sized + ISCPSecureExchange_Impl { @@ -1232,7 +1232,7 @@ impl ISCPSecureExchange2_Vtbl { Self { base__: ISCPSecureExchange_Vtbl::new::(), TransferContainerData2: TransferContainerData2:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ISCPSecureExchange3_Impl: Sized + ISCPSecureExchange2_Impl { @@ -1272,7 +1272,7 @@ impl ISCPSecureExchange3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ISCPSecureQuery_Impl: Sized { @@ -1313,7 +1313,7 @@ impl ISCPSecureQuery_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISCPSecureQuery2_Impl: Sized + ISCPSecureQuery_Impl { @@ -1350,7 +1350,7 @@ impl ISCPSecureQuery2_Vtbl { Self { base__: ISCPSecureQuery_Vtbl::new::(), MakeDecision2: MakeDecision2:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ISCPSecureQuery3_Impl: Sized + ISCPSecureQuery2_Impl { @@ -1397,7 +1397,7 @@ impl ISCPSecureQuery3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ISCPSession_Impl: Sized { @@ -1437,7 +1437,7 @@ impl ISCPSession_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Media_Audio\"`"] @@ -1561,7 +1561,7 @@ impl IWMDMDevice_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_Media_Audio\"`, `\"Win32_Media_MediaFoundation\"`, `\"Win32_System_Ole\"`"] @@ -1612,7 +1612,7 @@ impl IWMDMDevice2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_Media_Audio\"`, `\"Win32_Media_MediaFoundation\"`, `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1682,7 +1682,7 @@ impl IWMDMDevice3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Media_Audio\"`"] @@ -1767,7 +1767,7 @@ impl IWMDMDeviceControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMDMDeviceSession_Impl: Sized { @@ -1794,7 +1794,7 @@ impl IWMDMDeviceSession_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMDMEnumDevice_Impl: Sized { @@ -1847,7 +1847,7 @@ impl IWMDMEnumDevice_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMDMEnumStorage_Impl: Sized { @@ -1900,7 +1900,7 @@ impl IWMDMEnumStorage_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMDMLogger_Impl: Sized { @@ -1982,7 +1982,7 @@ impl IWMDMLogger_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMDMMetaData_Impl: Sized { @@ -2029,7 +2029,7 @@ impl IWMDMMetaData_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMDMNotification_Impl: Sized { @@ -2046,7 +2046,7 @@ impl IWMDMNotification_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), WMDMMessage: WMDMMessage:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMDMObjectInfo_Impl: Sized { @@ -2138,7 +2138,7 @@ impl IWMDMObjectInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Media_Audio\"`"] @@ -2225,7 +2225,7 @@ impl IWMDMOperation_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_Media_Audio\"`, `\"Win32_Media_MediaFoundation\"`"] @@ -2256,7 +2256,7 @@ impl IWMDMOperation2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Media_Audio\"`"] @@ -2280,7 +2280,7 @@ impl IWMDMOperation3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IWMDMProgress_Impl: Sized { @@ -2314,7 +2314,7 @@ impl IWMDMProgress_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMDMProgress2_Impl: Sized + IWMDMProgress_Impl { @@ -2331,7 +2331,7 @@ impl IWMDMProgress2_Vtbl { Self { base__: IWMDMProgress_Vtbl::new::(), End2: End2:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IWMDMProgress3_Impl: Sized + IWMDMProgress2_Impl { @@ -2365,7 +2365,7 @@ impl IWMDMProgress3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IWMDMRevoked_Impl: Sized { @@ -2382,7 +2382,7 @@ impl IWMDMRevoked_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetRevocationURL: GetRevocationURL:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Media_Audio\"`"] @@ -2480,7 +2480,7 @@ impl IWMDMStorage_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_Media_Audio\"`, `\"Win32_Media_MediaFoundation\"`"] @@ -2524,7 +2524,7 @@ impl IWMDMStorage2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_Media_Audio\"`, `\"Win32_Media_MediaFoundation\"`"] @@ -2581,7 +2581,7 @@ impl IWMDMStorage3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_Media_Audio\"`, `\"Win32_Media_MediaFoundation\"`"] @@ -2658,7 +2658,7 @@ impl IWMDMStorage4_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IWMDMStorageControl_Impl: Sized { @@ -2712,7 +2712,7 @@ impl IWMDMStorageControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMDMStorageControl2_Impl: Sized + IWMDMStorageControl_Impl { @@ -2729,7 +2729,7 @@ impl IWMDMStorageControl2_Vtbl { Self { base__: IWMDMStorageControl_Vtbl::new::(), Insert2: Insert2:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IWMDMStorageControl3_Impl: Sized + IWMDMStorageControl2_Impl { @@ -2746,7 +2746,7 @@ impl IWMDMStorageControl3_Vtbl { Self { base__: IWMDMStorageControl2_Vtbl::new::(), Insert3: Insert3:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IWMDMStorageGlobals_Impl: Sized { @@ -2820,7 +2820,7 @@ impl IWMDMStorageGlobals_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMDeviceManager_Impl: Sized { @@ -2872,7 +2872,7 @@ impl IWMDeviceManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMDeviceManager2_Impl: Sized + IWMDeviceManager_Impl { @@ -2918,7 +2918,7 @@ impl IWMDeviceManager2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IWMDeviceManager3_Impl: Sized + IWMDeviceManager2_Impl { @@ -2935,6 +2935,6 @@ impl IWMDeviceManager3_Vtbl { Self { base__: IWMDeviceManager2_Vtbl::new::(), SetDeviceEnumPreference: SetDeviceEnumPreference:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } 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 f34dbe7bfc..13988e9c69 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/DeviceManager/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/DeviceManager/mod.rs @@ -1,6 +1,5 @@ -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IComponentAuthenticate(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IComponentAuthenticate, IComponentAuthenticate_Vtbl, 0xa9889c00_6d2b_11d3_8496_00c04f79dbc0); +::windows_core::imp::interface_hierarchy!(IComponentAuthenticate, ::windows_core::IUnknown); impl IComponentAuthenticate { pub unsafe fn SACAuth(&self, dwprotocolid: u32, dwpass: u32, pbdatain: &[u8], ppbdataout: *mut *mut u8, pdwdataoutlen: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SACAuth)(::windows_core::Interface::as_raw(self), dwprotocolid, dwpass, ::core::mem::transmute(pbdatain.as_ptr()), pbdatain.len().try_into().unwrap(), ppbdataout, pdwdataoutlen).ok() @@ -9,13 +8,6 @@ impl IComponentAuthenticate { (::windows_core::Interface::vtable(self).SACGetProtocols)(::windows_core::Interface::as_raw(self), ppdwprotocols, pdwprotocolcount).ok() } } -::windows_core::imp::interface_hierarchy!(IComponentAuthenticate, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IComponentAuthenticate { - type Vtable = IComponentAuthenticate_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IComponentAuthenticate { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa9889c00_6d2b_11d3_8496_00c04f79dbc0); -} #[repr(C)] #[doc(hidden)] pub struct IComponentAuthenticate_Vtbl { @@ -23,9 +15,8 @@ pub struct IComponentAuthenticate_Vtbl { pub SACAuth: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwprotocolid: u32, dwpass: u32, pbdatain: *const u8, dwdatainlen: u32, ppbdataout: *mut *mut u8, pdwdataoutlen: *mut u32) -> ::windows_core::HRESULT, pub SACGetProtocols: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppdwprotocols: *mut *mut u32, pdwprotocolcount: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMDSPDevice(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMDSPDevice, IMDSPDevice_Vtbl, 0x1dcb3a12_33ed_11d3_8470_00c04f79dbc0); +::windows_core::imp::interface_hierarchy!(IMDSPDevice, ::windows_core::IUnknown); impl IMDSPDevice { pub unsafe fn GetName(&self, pwszname: &mut [u16]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetName)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pwszname.as_ptr()), pwszname.len().try_into().unwrap()).ok() @@ -68,13 +59,6 @@ impl IMDSPDevice { (::windows_core::Interface::vtable(self).SendOpaqueCommand)(::windows_core::Interface::as_raw(self), pcommand).ok() } } -::windows_core::imp::interface_hierarchy!(IMDSPDevice, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMDSPDevice { - type Vtable = IMDSPDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMDSPDevice { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1dcb3a12_33ed_11d3_8470_00c04f79dbc0); -} #[repr(C)] #[doc(hidden)] pub struct IMDSPDevice_Vtbl { @@ -94,9 +78,8 @@ pub struct IMDSPDevice_Vtbl { GetFormatSupport: usize, pub SendOpaqueCommand: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcommand: *mut OPAQUECOMMAND) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMDSPDevice2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMDSPDevice2, IMDSPDevice2_Vtbl, 0x420d16ad_c97d_4e00_82aa_00e9f4335ddd); +::windows_core::imp::interface_hierarchy!(IMDSPDevice2, ::windows_core::IUnknown, IMDSPDevice); impl IMDSPDevice2 { pub unsafe fn GetName(&self, pwszname: &mut [u16]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.GetName)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pwszname.as_ptr()), pwszname.len().try_into().unwrap()).ok() @@ -159,13 +142,6 @@ impl IMDSPDevice2 { (::windows_core::Interface::vtable(self).GetCanonicalName)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pwszpnpname.as_ptr()), pwszpnpname.len().try_into().unwrap()).ok() } } -::windows_core::imp::interface_hierarchy!(IMDSPDevice2, ::windows_core::IUnknown, IMDSPDevice); -unsafe impl ::windows_core::Interface for IMDSPDevice2 { - type Vtable = IMDSPDevice2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMDSPDevice2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x420d16ad_c97d_4e00_82aa_00e9f4335ddd); -} #[repr(C)] #[doc(hidden)] pub struct IMDSPDevice2_Vtbl { @@ -181,9 +157,8 @@ pub struct IMDSPDevice2_Vtbl { GetSpecifyPropertyPages: usize, pub GetCanonicalName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwszpnpname: ::windows_core::PWSTR, nmaxchars: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMDSPDevice3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMDSPDevice3, IMDSPDevice3_Vtbl, 0x1a839845_fc55_487c_976f_ee38ac0e8c4e); +::windows_core::imp::interface_hierarchy!(IMDSPDevice3, ::windows_core::IUnknown, IMDSPDevice, IMDSPDevice2); impl IMDSPDevice3 { pub unsafe fn GetName(&self, pwszname: &mut [u16]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.GetName)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pwszname.as_ptr()), pwszname.len().try_into().unwrap()).ok() @@ -279,13 +254,6 @@ impl IMDSPDevice3 { (::windows_core::Interface::vtable(self).FindStorage)(::windows_core::Interface::as_raw(self), findscope, pwszuniqueid.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMDSPDevice3, ::windows_core::IUnknown, IMDSPDevice, IMDSPDevice2); -unsafe impl ::windows_core::Interface for IMDSPDevice3 { - type Vtable = IMDSPDevice3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMDSPDevice3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1a839845_fc55_487c_976f_ee38ac0e8c4e); -} #[repr(C)] #[doc(hidden)] pub struct IMDSPDevice3_Vtbl { @@ -305,9 +273,8 @@ pub struct IMDSPDevice3_Vtbl { pub DeviceIoControl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwiocontrolcode: u32, lpinbuffer: *const u8, ninbuffersize: u32, lpoutbuffer: *mut u8, pnoutbuffersize: *mut u32) -> ::windows_core::HRESULT, pub FindStorage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, findscope: WMDM_FIND_SCOPE, pwszuniqueid: ::windows_core::PCWSTR, ppstorage: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMDSPDeviceControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMDSPDeviceControl, IMDSPDeviceControl_Vtbl, 0x1dcb3a14_33ed_11d3_8470_00c04f79dbc0); +::windows_core::imp::interface_hierarchy!(IMDSPDeviceControl, ::windows_core::IUnknown); impl IMDSPDeviceControl { pub unsafe fn GetDCStatus(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -338,13 +305,6 @@ impl IMDSPDeviceControl { (::windows_core::Interface::vtable(self).Seek)(::windows_core::Interface::as_raw(self), fumode, noffset).ok() } } -::windows_core::imp::interface_hierarchy!(IMDSPDeviceControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMDSPDeviceControl { - type Vtable = IMDSPDeviceControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMDSPDeviceControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1dcb3a14_33ed_11d3_8470_00c04f79dbc0); -} #[repr(C)] #[doc(hidden)] pub struct IMDSPDeviceControl_Vtbl { @@ -361,9 +321,8 @@ pub struct IMDSPDeviceControl_Vtbl { pub Stop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Seek: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fumode: u32, noffset: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMDSPDirectTransfer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMDSPDirectTransfer, IMDSPDirectTransfer_Vtbl, 0xc2fe57a8_9304_478c_9ee4_47e397b912d7); +::windows_core::imp::interface_hierarchy!(IMDSPDirectTransfer, ::windows_core::IUnknown); impl IMDSPDirectTransfer { pub unsafe fn TransferToDevice(&self, pwszsourcefilepath: P0, psourceoperation: P1, fuflags: u32, pwszdestinationname: P2, psourcemetadata: P3, ptransferprogress: P4) -> ::windows_core::Result where @@ -377,22 +336,14 @@ impl IMDSPDirectTransfer { (::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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMDSPDirectTransfer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMDSPDirectTransfer { - type Vtable = IMDSPDirectTransfer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMDSPDirectTransfer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc2fe57a8_9304_478c_9ee4_47e397b912d7); -} #[repr(C)] #[doc(hidden)] pub struct IMDSPDirectTransfer_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub TransferToDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwszsourcefilepath: ::windows_core::PCWSTR, psourceoperation: *mut ::core::ffi::c_void, fuflags: u32, pwszdestinationname: ::windows_core::PCWSTR, psourcemetadata: *mut ::core::ffi::c_void, ptransferprogress: *mut ::core::ffi::c_void, ppnewobject: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMDSPEnumDevice(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMDSPEnumDevice, IMDSPEnumDevice_Vtbl, 0x1dcb3a11_33ed_11d3_8470_00c04f79dbc0); +::windows_core::imp::interface_hierarchy!(IMDSPEnumDevice, ::windows_core::IUnknown); impl IMDSPEnumDevice { pub unsafe fn Next(&self, ppdevice: &mut [::core::option::Option], pceltfetched: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), ppdevice.len().try_into().unwrap(), ::core::mem::transmute(ppdevice.as_ptr()), pceltfetched).ok() @@ -409,13 +360,6 @@ impl IMDSPEnumDevice { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMDSPEnumDevice, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMDSPEnumDevice { - type Vtable = IMDSPEnumDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMDSPEnumDevice { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1dcb3a11_33ed_11d3_8470_00c04f79dbc0); -} #[repr(C)] #[doc(hidden)] pub struct IMDSPEnumDevice_Vtbl { @@ -425,9 +369,8 @@ pub struct IMDSPEnumDevice_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenumdevice: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMDSPEnumStorage(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMDSPEnumStorage, IMDSPEnumStorage_Vtbl, 0x1dcb3a15_33ed_11d3_8470_00c04f79dbc0); +::windows_core::imp::interface_hierarchy!(IMDSPEnumStorage, ::windows_core::IUnknown); impl IMDSPEnumStorage { pub unsafe fn Next(&self, ppstorage: &mut [::core::option::Option], pceltfetched: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), ppstorage.len().try_into().unwrap(), ::core::mem::transmute(ppstorage.as_ptr()), pceltfetched).ok() @@ -444,13 +387,6 @@ impl IMDSPEnumStorage { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMDSPEnumStorage, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMDSPEnumStorage { - type Vtable = IMDSPEnumStorage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMDSPEnumStorage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1dcb3a15_33ed_11d3_8470_00c04f79dbc0); -} #[repr(C)] #[doc(hidden)] pub struct IMDSPEnumStorage_Vtbl { @@ -460,9 +396,8 @@ pub struct IMDSPEnumStorage_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenumstorage: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMDSPObject(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMDSPObject, IMDSPObject_Vtbl, 0x1dcb3a18_33ed_11d3_8470_00c04f79dbc0); +::windows_core::imp::interface_hierarchy!(IMDSPObject, ::windows_core::IUnknown); impl IMDSPObject { pub unsafe fn Open(&self, fumode: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Open)(::windows_core::Interface::as_raw(self), fumode).ok() @@ -500,13 +435,6 @@ impl IMDSPObject { (::windows_core::Interface::vtable(self).Close)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IMDSPObject, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMDSPObject { - type Vtable = IMDSPObject_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMDSPObject { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1dcb3a18_33ed_11d3_8470_00c04f79dbc0); -} #[repr(C)] #[doc(hidden)] pub struct IMDSPObject_Vtbl { @@ -520,9 +448,8 @@ pub struct IMDSPObject_Vtbl { pub Move: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fumode: u32, pprogress: *mut ::core::ffi::c_void, ptarget: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Close: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMDSPObject2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMDSPObject2, IMDSPObject2_Vtbl, 0x3f34cd3e_5907_4341_9af9_97f4187c3aa5); +::windows_core::imp::interface_hierarchy!(IMDSPObject2, ::windows_core::IUnknown, IMDSPObject); impl IMDSPObject2 { pub unsafe fn Open(&self, fumode: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.Open)(::windows_core::Interface::as_raw(self), fumode).ok() @@ -566,13 +493,6 @@ impl IMDSPObject2 { (::windows_core::Interface::vtable(self).WriteOnClearChannel)(::windows_core::Interface::as_raw(self), pdata, pdwsize).ok() } } -::windows_core::imp::interface_hierarchy!(IMDSPObject2, ::windows_core::IUnknown, IMDSPObject); -unsafe impl ::windows_core::Interface for IMDSPObject2 { - type Vtable = IMDSPObject2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMDSPObject2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3f34cd3e_5907_4341_9af9_97f4187c3aa5); -} #[repr(C)] #[doc(hidden)] pub struct IMDSPObject2_Vtbl { @@ -580,9 +500,8 @@ pub struct IMDSPObject2_Vtbl { pub ReadOnClearChannel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdata: *mut u8, pdwsize: *mut u32) -> ::windows_core::HRESULT, pub WriteOnClearChannel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdata: *const u8, pdwsize: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMDSPObjectInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMDSPObjectInfo, IMDSPObjectInfo_Vtbl, 0x1dcb3a19_33ed_11d3_8470_00c04f79dbc0); +::windows_core::imp::interface_hierarchy!(IMDSPObjectInfo, ::windows_core::IUnknown); impl IMDSPObjectInfo { pub unsafe fn GetPlayLength(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -611,13 +530,6 @@ impl IMDSPObjectInfo { (::windows_core::Interface::vtable(self).GetLongestPlayPosition)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMDSPObjectInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMDSPObjectInfo { - type Vtable = IMDSPObjectInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMDSPObjectInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1dcb3a19_33ed_11d3_8470_00c04f79dbc0); -} #[repr(C)] #[doc(hidden)] pub struct IMDSPObjectInfo_Vtbl { @@ -630,30 +542,21 @@ pub struct IMDSPObjectInfo_Vtbl { pub GetLastPlayPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwlastpos: *mut u32) -> ::windows_core::HRESULT, pub GetLongestPlayPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwlongestpos: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMDSPRevoked(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMDSPRevoked, IMDSPRevoked_Vtbl, 0xa4e8f2d4_3f31_464d_b53d_4fc335998184); +::windows_core::imp::interface_hierarchy!(IMDSPRevoked, ::windows_core::IUnknown); impl IMDSPRevoked { pub unsafe fn GetRevocationURL(&self, ppwszrevocationurl: *mut ::windows_core::PWSTR, pdwbufferlen: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetRevocationURL)(::windows_core::Interface::as_raw(self), ppwszrevocationurl, pdwbufferlen).ok() } } -::windows_core::imp::interface_hierarchy!(IMDSPRevoked, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMDSPRevoked { - type Vtable = IMDSPRevoked_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMDSPRevoked { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa4e8f2d4_3f31_464d_b53d_4fc335998184); -} #[repr(C)] #[doc(hidden)] pub struct IMDSPRevoked_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetRevocationURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppwszrevocationurl: *mut ::windows_core::PWSTR, pdwbufferlen: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMDSPStorage(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMDSPStorage, IMDSPStorage_Vtbl, 0x1dcb3a16_33ed_11d3_8470_00c04f79dbc0); +::windows_core::imp::interface_hierarchy!(IMDSPStorage, ::windows_core::IUnknown); impl IMDSPStorage { #[doc = "Required features: `\"Win32_Media_Audio\"`"] #[cfg(feature = "Win32_Media_Audio")] @@ -699,13 +602,6 @@ impl IMDSPStorage { (::windows_core::Interface::vtable(self).SendOpaqueCommand)(::windows_core::Interface::as_raw(self), pcommand).ok() } } -::windows_core::imp::interface_hierarchy!(IMDSPStorage, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMDSPStorage { - type Vtable = IMDSPStorage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMDSPStorage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1dcb3a16_33ed_11d3_8470_00c04f79dbc0); -} #[repr(C)] #[doc(hidden)] pub struct IMDSPStorage_Vtbl { @@ -730,9 +626,8 @@ pub struct IMDSPStorage_Vtbl { pub EnumStorage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenumstorage: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SendOpaqueCommand: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcommand: *mut OPAQUECOMMAND) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMDSPStorage2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMDSPStorage2, IMDSPStorage2_Vtbl, 0x0a5e07a5_6454_4451_9c36_1c6ae7e2b1d6); +::windows_core::imp::interface_hierarchy!(IMDSPStorage2, ::windows_core::IUnknown, IMDSPStorage); impl IMDSPStorage2 { #[doc = "Required features: `\"Win32_Media_Audio\"`"] #[cfg(feature = "Win32_Media_Audio")] @@ -804,13 +699,6 @@ impl IMDSPStorage2 { (::windows_core::Interface::vtable(self).GetAttributes2)(::windows_core::Interface::as_raw(self), pdwattributes, pdwattributesex, ::core::mem::transmute(paudioformat.unwrap_or(::std::ptr::null_mut())), ::core::mem::transmute(pvideoformat.unwrap_or(::std::ptr::null_mut()))).ok() } } -::windows_core::imp::interface_hierarchy!(IMDSPStorage2, ::windows_core::IUnknown, IMDSPStorage); -unsafe impl ::windows_core::Interface for IMDSPStorage2 { - type Vtable = IMDSPStorage2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMDSPStorage2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0a5e07a5_6454_4451_9c36_1c6ae7e2b1d6); -} #[repr(C)] #[doc(hidden)] pub struct IMDSPStorage2_Vtbl { @@ -829,9 +717,8 @@ pub struct IMDSPStorage2_Vtbl { #[cfg(not(all(feature = "Win32_Graphics_Gdi", feature = "Win32_Media_Audio", feature = "Win32_Media_MediaFoundation")))] GetAttributes2: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMDSPStorage3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMDSPStorage3, IMDSPStorage3_Vtbl, 0x6c669867_97ed_4a67_9706_1c5529d2a414); +::windows_core::imp::interface_hierarchy!(IMDSPStorage3, ::windows_core::IUnknown, IMDSPStorage, IMDSPStorage2); impl IMDSPStorage3 { #[doc = "Required features: `\"Win32_Media_Audio\"`"] #[cfg(feature = "Win32_Media_Audio")] @@ -915,13 +802,6 @@ impl IMDSPStorage3 { (::windows_core::Interface::vtable(self).SetMetadata)(::windows_core::Interface::as_raw(self), pmetadata.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMDSPStorage3, ::windows_core::IUnknown, IMDSPStorage, IMDSPStorage2); -unsafe impl ::windows_core::Interface for IMDSPStorage3 { - type Vtable = IMDSPStorage3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMDSPStorage3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6c669867_97ed_4a67_9706_1c5529d2a414); -} #[repr(C)] #[doc(hidden)] pub struct IMDSPStorage3_Vtbl { @@ -929,9 +809,8 @@ pub struct IMDSPStorage3_Vtbl { pub GetMetadata: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pmetadata: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetMetadata: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pmetadata: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMDSPStorage4(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMDSPStorage4, IMDSPStorage4_Vtbl, 0x3133b2c4_515c_481b_b1ce_39327ecb4f74); +::windows_core::imp::interface_hierarchy!(IMDSPStorage4, ::windows_core::IUnknown, IMDSPStorage, IMDSPStorage2, IMDSPStorage3); impl IMDSPStorage4 { #[doc = "Required features: `\"Win32_Media_Audio\"`"] #[cfg(feature = "Win32_Media_Audio")] @@ -1046,13 +925,6 @@ impl IMDSPStorage4 { (::windows_core::Interface::vtable(self).GetParent)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMDSPStorage4, ::windows_core::IUnknown, IMDSPStorage, IMDSPStorage2, IMDSPStorage3); -unsafe impl ::windows_core::Interface for IMDSPStorage4 { - type Vtable = IMDSPStorage4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMDSPStorage4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3133b2c4_515c_481b_b1ce_39327ecb4f74); -} #[repr(C)] #[doc(hidden)] pub struct IMDSPStorage4_Vtbl { @@ -1064,9 +936,8 @@ pub struct IMDSPStorage4_Vtbl { pub FindStorage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, findscope: WMDM_FIND_SCOPE, pwszuniqueid: ::windows_core::PCWSTR, ppstorage: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetParent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppstorage: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMDSPStorageGlobals(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMDSPStorageGlobals, IMDSPStorageGlobals_Vtbl, 0x1dcb3a17_33ed_11d3_8470_00c04f79dbc0); +::windows_core::imp::interface_hierarchy!(IMDSPStorageGlobals, ::windows_core::IUnknown); impl IMDSPStorageGlobals { pub unsafe fn GetCapabilities(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1103,13 +974,6 @@ impl IMDSPStorageGlobals { (::windows_core::Interface::vtable(self).GetRootStorage)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMDSPStorageGlobals, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMDSPStorageGlobals { - type Vtable = IMDSPStorageGlobals_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMDSPStorageGlobals { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1dcb3a17_33ed_11d3_8470_00c04f79dbc0); -} #[repr(C)] #[doc(hidden)] pub struct IMDSPStorageGlobals_Vtbl { @@ -1124,9 +988,8 @@ pub struct IMDSPStorageGlobals_Vtbl { pub GetDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppdevice: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetRootStorage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pproot: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMDServiceProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMDServiceProvider, IMDServiceProvider_Vtbl, 0x1dcb3a10_33ed_11d3_8470_00c04f79dbc0); +::windows_core::imp::interface_hierarchy!(IMDServiceProvider, ::windows_core::IUnknown); impl IMDServiceProvider { pub unsafe fn GetDeviceCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1137,13 +1000,6 @@ impl IMDServiceProvider { (::windows_core::Interface::vtable(self).EnumDevices)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMDServiceProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMDServiceProvider { - type Vtable = IMDServiceProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMDServiceProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1dcb3a10_33ed_11d3_8470_00c04f79dbc0); -} #[repr(C)] #[doc(hidden)] pub struct IMDServiceProvider_Vtbl { @@ -1151,9 +1007,8 @@ pub struct IMDServiceProvider_Vtbl { pub GetDeviceCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwcount: *mut u32) -> ::windows_core::HRESULT, pub EnumDevices: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenumdevice: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMDServiceProvider2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMDServiceProvider2, IMDServiceProvider2_Vtbl, 0xb2fa24b7_cda3_4694_9862_413ae1a34819); +::windows_core::imp::interface_hierarchy!(IMDServiceProvider2, ::windows_core::IUnknown, IMDServiceProvider); impl IMDServiceProvider2 { pub unsafe fn GetDeviceCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1170,22 +1025,14 @@ impl IMDServiceProvider2 { (::windows_core::Interface::vtable(self).CreateDevice)(::windows_core::Interface::as_raw(self), pwszdevicepath.into_param().abi(), pdwcount, pppdevicearray).ok() } } -::windows_core::imp::interface_hierarchy!(IMDServiceProvider2, ::windows_core::IUnknown, IMDServiceProvider); -unsafe impl ::windows_core::Interface for IMDServiceProvider2 { - type Vtable = IMDServiceProvider2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMDServiceProvider2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb2fa24b7_cda3_4694_9862_413ae1a34819); -} #[repr(C)] #[doc(hidden)] pub struct IMDServiceProvider2_Vtbl { pub base__: IMDServiceProvider_Vtbl, pub CreateDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwszdevicepath: ::windows_core::PCWSTR, pdwcount: *mut u32, pppdevicearray: *mut *mut ::core::option::Option) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMDServiceProvider3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMDServiceProvider3, IMDServiceProvider3_Vtbl, 0x4ed13ef3_a971_4d19_9f51_0e1826b2da57); +::windows_core::imp::interface_hierarchy!(IMDServiceProvider3, ::windows_core::IUnknown, IMDServiceProvider, IMDServiceProvider2); impl IMDServiceProvider3 { pub unsafe fn GetDeviceCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1205,44 +1052,28 @@ impl IMDServiceProvider3 { (::windows_core::Interface::vtable(self).SetDeviceEnumPreference)(::windows_core::Interface::as_raw(self), dwenumpref).ok() } } -::windows_core::imp::interface_hierarchy!(IMDServiceProvider3, ::windows_core::IUnknown, IMDServiceProvider, IMDServiceProvider2); -unsafe impl ::windows_core::Interface for IMDServiceProvider3 { - type Vtable = IMDServiceProvider3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMDServiceProvider3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4ed13ef3_a971_4d19_9f51_0e1826b2da57); -} #[repr(C)] #[doc(hidden)] pub struct IMDServiceProvider3_Vtbl { pub base__: IMDServiceProvider2_Vtbl, pub SetDeviceEnumPreference: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwenumpref: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISCPSecureAuthenticate(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISCPSecureAuthenticate, ISCPSecureAuthenticate_Vtbl, 0x1dcb3a0f_33ed_11d3_8470_00c04f79dbc0); +::windows_core::imp::interface_hierarchy!(ISCPSecureAuthenticate, ::windows_core::IUnknown); impl ISCPSecureAuthenticate { pub unsafe fn GetSecureQuery(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetSecureQuery)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISCPSecureAuthenticate, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISCPSecureAuthenticate { - type Vtable = ISCPSecureAuthenticate_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISCPSecureAuthenticate { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1dcb3a0f_33ed_11d3_8470_00c04f79dbc0); -} #[repr(C)] #[doc(hidden)] pub struct ISCPSecureAuthenticate_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetSecureQuery: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppsecurequery: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISCPSecureAuthenticate2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISCPSecureAuthenticate2, ISCPSecureAuthenticate2_Vtbl, 0xb580cfae_1672_47e2_acaa_44bbecbcae5b); +::windows_core::imp::interface_hierarchy!(ISCPSecureAuthenticate2, ::windows_core::IUnknown, ISCPSecureAuthenticate); impl ISCPSecureAuthenticate2 { pub unsafe fn GetSecureQuery(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1253,22 +1084,14 @@ impl ISCPSecureAuthenticate2 { (::windows_core::Interface::vtable(self).GetSCPSession)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISCPSecureAuthenticate2, ::windows_core::IUnknown, ISCPSecureAuthenticate); -unsafe impl ::windows_core::Interface for ISCPSecureAuthenticate2 { - type Vtable = ISCPSecureAuthenticate2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISCPSecureAuthenticate2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb580cfae_1672_47e2_acaa_44bbecbcae5b); -} #[repr(C)] #[doc(hidden)] pub struct ISCPSecureAuthenticate2_Vtbl { pub base__: ISCPSecureAuthenticate_Vtbl, pub GetSCPSession: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppscpsession: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISCPSecureExchange(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISCPSecureExchange, ISCPSecureExchange_Vtbl, 0x1dcb3a0e_33ed_11d3_8470_00c04f79dbc0); +::windows_core::imp::interface_hierarchy!(ISCPSecureExchange, ::windows_core::IUnknown); impl ISCPSecureExchange { pub unsafe fn TransferContainerData(&self, pdata: &[u8], pfureadyflags: *mut u32, abmac: &mut [u8; 8]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).TransferContainerData)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pdata.as_ptr()), pdata.len().try_into().unwrap(), pfureadyflags, ::core::mem::transmute(abmac.as_ptr())).ok() @@ -1280,13 +1103,6 @@ impl ISCPSecureExchange { (::windows_core::Interface::vtable(self).TransferComplete)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ISCPSecureExchange, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISCPSecureExchange { - type Vtable = ISCPSecureExchange_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISCPSecureExchange { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1dcb3a0e_33ed_11d3_8470_00c04f79dbc0); -} #[repr(C)] #[doc(hidden)] pub struct ISCPSecureExchange_Vtbl { @@ -1295,9 +1111,8 @@ pub struct ISCPSecureExchange_Vtbl { pub ObjectData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdata: *mut u8, pdwsize: *mut u32, abmac: *mut u8) -> ::windows_core::HRESULT, pub TransferComplete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISCPSecureExchange2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISCPSecureExchange2, ISCPSecureExchange2_Vtbl, 0x6c62fc7b_2690_483f_9d44_0a20cb35577c); +::windows_core::imp::interface_hierarchy!(ISCPSecureExchange2, ::windows_core::IUnknown, ISCPSecureExchange); impl ISCPSecureExchange2 { pub unsafe fn TransferContainerData(&self, pdata: &[u8], pfureadyflags: *mut u32, abmac: &mut [u8; 8]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.TransferContainerData)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pdata.as_ptr()), pdata.len().try_into().unwrap(), pfureadyflags, ::core::mem::transmute(abmac.as_ptr())).ok() @@ -1315,22 +1130,14 @@ impl ISCPSecureExchange2 { (::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::imp::interface_hierarchy!(ISCPSecureExchange2, ::windows_core::IUnknown, ISCPSecureExchange); -unsafe impl ::windows_core::Interface for ISCPSecureExchange2 { - type Vtable = ISCPSecureExchange2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISCPSecureExchange2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6c62fc7b_2690_483f_9d44_0a20cb35577c); -} #[repr(C)] #[doc(hidden)] pub struct ISCPSecureExchange2_Vtbl { pub base__: ISCPSecureExchange_Vtbl, pub TransferContainerData2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdata: *const u8, dwsize: u32, pprogresscallback: *mut ::core::ffi::c_void, pfureadyflags: *mut u32, abmac: *mut u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISCPSecureExchange3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISCPSecureExchange3, ISCPSecureExchange3_Vtbl, 0xab4e77e4_8908_4b17_bd2a_b1dbe6dd69e1); +::windows_core::imp::interface_hierarchy!(ISCPSecureExchange3, ::windows_core::IUnknown, ISCPSecureExchange, ISCPSecureExchange2); impl ISCPSecureExchange3 { pub unsafe fn TransferContainerData(&self, pdata: &[u8], pfureadyflags: *mut u32, abmac: &mut [u8; 8]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.TransferContainerData)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pdata.as_ptr()), pdata.len().try_into().unwrap(), pfureadyflags, ::core::mem::transmute(abmac.as_ptr())).ok() @@ -1368,13 +1175,6 @@ impl ISCPSecureExchange3 { (::windows_core::Interface::vtable(self).TransferCompleteForDevice)(::windows_core::Interface::as_raw(self), pdevice.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ISCPSecureExchange3, ::windows_core::IUnknown, ISCPSecureExchange, ISCPSecureExchange2); -unsafe impl ::windows_core::Interface for ISCPSecureExchange3 { - type Vtable = ISCPSecureExchange3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISCPSecureExchange3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xab4e77e4_8908_4b17_bd2a_b1dbe6dd69e1); -} #[repr(C)] #[doc(hidden)] pub struct ISCPSecureExchange3_Vtbl { @@ -1383,9 +1183,8 @@ pub struct ISCPSecureExchange3_Vtbl { pub GetObjectDataOnClearChannel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdevice: *mut ::core::ffi::c_void, pdata: *mut u8, pdwsize: *mut u32) -> ::windows_core::HRESULT, pub TransferCompleteForDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdevice: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISCPSecureQuery(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISCPSecureQuery, ISCPSecureQuery_Vtbl, 0x1dcb3a0d_33ed_11d3_8470_00c04f79dbc0); +::windows_core::imp::interface_hierarchy!(ISCPSecureQuery, ::windows_core::IUnknown); impl ISCPSecureQuery { pub unsafe fn GetDataDemands(&self, pfuflags: *mut u32, pdwminrightsdata: *mut u32, pdwminexaminedata: *mut u32, pdwmindecidedata: *mut u32, abmac: &mut [u8; 8]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetDataDemands)(::windows_core::Interface::as_raw(self), pfuflags, pdwminrightsdata, pdwminexaminedata, pdwmindecidedata, ::core::mem::transmute(abmac.as_ptr())).ok() @@ -1409,13 +1208,6 @@ impl ISCPSecureQuery { (::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::imp::interface_hierarchy!(ISCPSecureQuery, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISCPSecureQuery { - type Vtable = ISCPSecureQuery_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISCPSecureQuery { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1dcb3a0d_33ed_11d3_8470_00c04f79dbc0); -} #[repr(C)] #[doc(hidden)] pub struct ISCPSecureQuery_Vtbl { @@ -1425,9 +1217,8 @@ pub struct ISCPSecureQuery_Vtbl { pub MakeDecision: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fuflags: u32, pdata: *const u8, dwsize: u32, dwappsec: u32, pbspsessionkey: *const u8, dwsessionkeylen: u32, pstorageglobals: *mut ::core::ffi::c_void, ppexchange: *mut *mut ::core::ffi::c_void, abmac: *mut u8) -> ::windows_core::HRESULT, pub GetRights: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdata: *const u8, dwsize: u32, pbspsessionkey: *const u8, dwsessionkeylen: u32, pstgglobals: *mut ::core::ffi::c_void, pprights: *mut *mut WMDMRIGHTS, pnrightscount: *mut u32, abmac: *mut u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISCPSecureQuery2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISCPSecureQuery2, ISCPSecureQuery2_Vtbl, 0xebe17e25_4fd7_4632_af46_6d93d4fcc72e); +::windows_core::imp::interface_hierarchy!(ISCPSecureQuery2, ::windows_core::IUnknown, ISCPSecureQuery); impl ISCPSecureQuery2 { pub unsafe fn GetDataDemands(&self, pfuflags: *mut u32, pdwminrightsdata: *mut u32, pdwminexaminedata: *mut u32, pdwmindecidedata: *mut u32, abmac: &mut [u8; 8]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.GetDataDemands)(::windows_core::Interface::as_raw(self), pfuflags, pdwminrightsdata, pdwminexaminedata, pdwmindecidedata, ::core::mem::transmute(abmac.as_ptr())).ok() @@ -1479,22 +1270,14 @@ impl ISCPSecureQuery2 { .ok() } } -::windows_core::imp::interface_hierarchy!(ISCPSecureQuery2, ::windows_core::IUnknown, ISCPSecureQuery); -unsafe impl ::windows_core::Interface for ISCPSecureQuery2 { - type Vtable = ISCPSecureQuery2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISCPSecureQuery2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xebe17e25_4fd7_4632_af46_6d93d4fcc72e); -} #[repr(C)] #[doc(hidden)] pub struct ISCPSecureQuery2_Vtbl { pub base__: ISCPSecureQuery_Vtbl, pub MakeDecision2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fuflags: u32, pdata: *const u8, dwsize: u32, dwappsec: u32, pbspsessionkey: *const u8, dwsessionkeylen: u32, pstorageglobals: *mut ::core::ffi::c_void, pappcertapp: *const u8, dwappcertapplen: u32, pappcertsp: *const u8, dwappcertsplen: u32, pszrevocationurl: *mut ::windows_core::PWSTR, pdwrevocationurllen: *mut u32, pdwrevocationbitflag: *mut u32, pqwfilesize: *mut u64, punknown: *mut ::core::ffi::c_void, ppexchange: *mut *mut ::core::ffi::c_void, abmac: *mut u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISCPSecureQuery3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISCPSecureQuery3, ISCPSecureQuery3_Vtbl, 0xb7edd1a2_4dab_484b_b3c5_ad39b8b4c0b1); +::windows_core::imp::interface_hierarchy!(ISCPSecureQuery3, ::windows_core::IUnknown, ISCPSecureQuery, ISCPSecureQuery2); impl ISCPSecureQuery3 { pub unsafe fn GetDataDemands(&self, pfuflags: *mut u32, pdwminrightsdata: *mut u32, pdwminexaminedata: *mut u32, pdwmindecidedata: *mut u32, abmac: &mut [u8; 8]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.GetDataDemands)(::windows_core::Interface::as_raw(self), pfuflags, pdwminrightsdata, pdwminexaminedata, pdwmindecidedata, ::core::mem::transmute(abmac.as_ptr())).ok() @@ -1582,13 +1365,6 @@ impl ISCPSecureQuery3 { .ok() } } -::windows_core::imp::interface_hierarchy!(ISCPSecureQuery3, ::windows_core::IUnknown, ISCPSecureQuery, ISCPSecureQuery2); -unsafe impl ::windows_core::Interface for ISCPSecureQuery3 { - type Vtable = ISCPSecureQuery3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISCPSecureQuery3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb7edd1a2_4dab_484b_b3c5_ad39b8b4c0b1); -} #[repr(C)] #[doc(hidden)] pub struct ISCPSecureQuery3_Vtbl { @@ -1596,9 +1372,8 @@ pub struct ISCPSecureQuery3_Vtbl { pub GetRightsOnClearChannel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdata: *const u8, dwsize: u32, pbspsessionkey: *const u8, dwsessionkeylen: u32, pstgglobals: *mut ::core::ffi::c_void, pprogresscallback: *mut ::core::ffi::c_void, pprights: *mut *mut WMDMRIGHTS, pnrightscount: *mut u32) -> ::windows_core::HRESULT, pub MakeDecisionOnClearChannel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fuflags: u32, pdata: *const u8, dwsize: u32, dwappsec: u32, pbspsessionkey: *const u8, dwsessionkeylen: u32, pstorageglobals: *mut ::core::ffi::c_void, pprogresscallback: *mut ::core::ffi::c_void, pappcertapp: *const u8, dwappcertapplen: u32, pappcertsp: *const u8, dwappcertsplen: u32, pszrevocationurl: *mut ::windows_core::PWSTR, pdwrevocationurllen: *mut u32, pdwrevocationbitflag: *mut u32, pqwfilesize: *mut u64, punknown: *mut ::core::ffi::c_void, ppexchange: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISCPSession(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISCPSession, ISCPSession_Vtbl, 0x88a3e6ed_eee4_4619_bbb3_fd4fb62715d1); +::windows_core::imp::interface_hierarchy!(ISCPSession, ::windows_core::IUnknown); impl ISCPSession { pub unsafe fn BeginSession(&self, pidevice: P0, pctx: &[u8]) -> ::windows_core::Result<()> where @@ -1614,13 +1389,6 @@ impl ISCPSession { (::windows_core::Interface::vtable(self).GetSecureQuery)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISCPSession, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISCPSession { - type Vtable = ISCPSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISCPSession { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x88a3e6ed_eee4_4619_bbb3_fd4fb62715d1); -} #[repr(C)] #[doc(hidden)] pub struct ISCPSession_Vtbl { @@ -1629,9 +1397,8 @@ pub struct ISCPSession_Vtbl { pub EndSession: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pctx: *const u8, dwsizectx: u32) -> ::windows_core::HRESULT, pub GetSecureQuery: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppsecurequery: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMDMDevice(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMDMDevice, IWMDMDevice_Vtbl, 0x1dcb3a02_33ed_11d3_8470_00c04f79dbc0); +::windows_core::imp::interface_hierarchy!(IWMDMDevice, ::windows_core::IUnknown); impl IWMDMDevice { pub unsafe fn GetName(&self, pwszname: &mut [u16]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetName)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pwszname.as_ptr()), pwszname.len().try_into().unwrap()).ok() @@ -1674,13 +1441,6 @@ impl IWMDMDevice { (::windows_core::Interface::vtable(self).SendOpaqueCommand)(::windows_core::Interface::as_raw(self), pcommand).ok() } } -::windows_core::imp::interface_hierarchy!(IWMDMDevice, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMDMDevice { - type Vtable = IWMDMDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMDMDevice { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1dcb3a02_33ed_11d3_8470_00c04f79dbc0); -} #[repr(C)] #[doc(hidden)] pub struct IWMDMDevice_Vtbl { @@ -1700,9 +1460,8 @@ pub struct IWMDMDevice_Vtbl { GetFormatSupport: usize, pub SendOpaqueCommand: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcommand: *mut OPAQUECOMMAND) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMDMDevice2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMDMDevice2, IWMDMDevice2_Vtbl, 0xe34f3d37_9d67_4fc1_9252_62d28b2f8b55); +::windows_core::imp::interface_hierarchy!(IWMDMDevice2, ::windows_core::IUnknown, IWMDMDevice); impl IWMDMDevice2 { pub unsafe fn GetName(&self, pwszname: &mut [u16]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.GetName)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pwszname.as_ptr()), pwszname.len().try_into().unwrap()).ok() @@ -1765,13 +1524,6 @@ impl IWMDMDevice2 { (::windows_core::Interface::vtable(self).GetCanonicalName)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pwszpnpname.as_ptr()), pwszpnpname.len().try_into().unwrap()).ok() } } -::windows_core::imp::interface_hierarchy!(IWMDMDevice2, ::windows_core::IUnknown, IWMDMDevice); -unsafe impl ::windows_core::Interface for IWMDMDevice2 { - type Vtable = IWMDMDevice2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMDMDevice2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe34f3d37_9d67_4fc1_9252_62d28b2f8b55); -} #[repr(C)] #[doc(hidden)] pub struct IWMDMDevice2_Vtbl { @@ -1787,9 +1539,8 @@ pub struct IWMDMDevice2_Vtbl { GetSpecifyPropertyPages: usize, pub GetCanonicalName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwszpnpname: ::windows_core::PWSTR, nmaxchars: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMDMDevice3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMDMDevice3, IWMDMDevice3_Vtbl, 0x6c03e4fe_05db_4dda_9e3c_06233a6d5d65); +::windows_core::imp::interface_hierarchy!(IWMDMDevice3, ::windows_core::IUnknown, IWMDMDevice, IWMDMDevice2); impl IWMDMDevice3 { pub unsafe fn GetName(&self, pwszname: &mut [u16]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.GetName)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pwszname.as_ptr()), pwszname.len().try_into().unwrap()).ok() @@ -1885,13 +1636,6 @@ impl IWMDMDevice3 { (::windows_core::Interface::vtable(self).FindStorage)(::windows_core::Interface::as_raw(self), findscope, pwszuniqueid.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWMDMDevice3, ::windows_core::IUnknown, IWMDMDevice, IWMDMDevice2); -unsafe impl ::windows_core::Interface for IWMDMDevice3 { - type Vtable = IWMDMDevice3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMDMDevice3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6c03e4fe_05db_4dda_9e3c_06233a6d5d65); -} #[repr(C)] #[doc(hidden)] pub struct IWMDMDevice3_Vtbl { @@ -1911,9 +1655,8 @@ pub struct IWMDMDevice3_Vtbl { pub DeviceIoControl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwiocontrolcode: u32, lpinbuffer: *const u8, ninbuffersize: u32, lpoutbuffer: *mut u8, pnoutbuffersize: *mut u32) -> ::windows_core::HRESULT, pub FindStorage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, findscope: WMDM_FIND_SCOPE, pwszuniqueid: ::windows_core::PCWSTR, ppstorage: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMDMDeviceControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMDMDeviceControl, IWMDMDeviceControl_Vtbl, 0x1dcb3a04_33ed_11d3_8470_00c04f79dbc0); +::windows_core::imp::interface_hierarchy!(IWMDMDeviceControl, ::windows_core::IUnknown); impl IWMDMDeviceControl { pub unsafe fn GetStatus(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1944,13 +1687,6 @@ impl IWMDMDeviceControl { (::windows_core::Interface::vtable(self).Seek)(::windows_core::Interface::as_raw(self), fumode, noffset).ok() } } -::windows_core::imp::interface_hierarchy!(IWMDMDeviceControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMDMDeviceControl { - type Vtable = IWMDMDeviceControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMDMDeviceControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1dcb3a04_33ed_11d3_8470_00c04f79dbc0); -} #[repr(C)] #[doc(hidden)] pub struct IWMDMDeviceControl_Vtbl { @@ -1967,9 +1703,8 @@ pub struct IWMDMDeviceControl_Vtbl { pub Stop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Seek: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fumode: u32, noffset: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMDMDeviceSession(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMDMDeviceSession, IWMDMDeviceSession_Vtbl, 0x82af0a65_9d96_412c_83e5_3c43e4b06cc7); +::windows_core::imp::interface_hierarchy!(IWMDMDeviceSession, ::windows_core::IUnknown); impl IWMDMDeviceSession { pub unsafe fn BeginSession(&self, r#type: WMDM_SESSION_TYPE, pctx: ::core::option::Option<&[u8]>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).BeginSession)(::windows_core::Interface::as_raw(self), r#type, ::core::mem::transmute(pctx.as_deref().map_or(::core::ptr::null(), |slice| slice.as_ptr())), pctx.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())).ok() @@ -1978,13 +1713,6 @@ impl IWMDMDeviceSession { (::windows_core::Interface::vtable(self).EndSession)(::windows_core::Interface::as_raw(self), r#type, ::core::mem::transmute(pctx.as_deref().map_or(::core::ptr::null(), |slice| slice.as_ptr())), pctx.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())).ok() } } -::windows_core::imp::interface_hierarchy!(IWMDMDeviceSession, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMDMDeviceSession { - type Vtable = IWMDMDeviceSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMDMDeviceSession { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x82af0a65_9d96_412c_83e5_3c43e4b06cc7); -} #[repr(C)] #[doc(hidden)] pub struct IWMDMDeviceSession_Vtbl { @@ -1992,9 +1720,8 @@ pub struct IWMDMDeviceSession_Vtbl { pub BeginSession: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: WMDM_SESSION_TYPE, pctx: *const u8, dwsizectx: u32) -> ::windows_core::HRESULT, pub EndSession: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: WMDM_SESSION_TYPE, pctx: *const u8, dwsizectx: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMDMEnumDevice(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMDMEnumDevice, IWMDMEnumDevice_Vtbl, 0x1dcb3a01_33ed_11d3_8470_00c04f79dbc0); +::windows_core::imp::interface_hierarchy!(IWMDMEnumDevice, ::windows_core::IUnknown); impl IWMDMEnumDevice { pub unsafe fn Next(&self, ppdevice: &mut [::core::option::Option], pceltfetched: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), ppdevice.len().try_into().unwrap(), ::core::mem::transmute(ppdevice.as_ptr()), pceltfetched).ok() @@ -2011,13 +1738,6 @@ impl IWMDMEnumDevice { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWMDMEnumDevice, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMDMEnumDevice { - type Vtable = IWMDMEnumDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMDMEnumDevice { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1dcb3a01_33ed_11d3_8470_00c04f79dbc0); -} #[repr(C)] #[doc(hidden)] pub struct IWMDMEnumDevice_Vtbl { @@ -2027,9 +1747,8 @@ pub struct IWMDMEnumDevice_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenumdevice: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMDMEnumStorage(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMDMEnumStorage, IWMDMEnumStorage_Vtbl, 0x1dcb3a05_33ed_11d3_8470_00c04f79dbc0); +::windows_core::imp::interface_hierarchy!(IWMDMEnumStorage, ::windows_core::IUnknown); impl IWMDMEnumStorage { pub unsafe fn Next(&self, ppstorage: &mut [::core::option::Option], pceltfetched: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), ppstorage.len().try_into().unwrap(), ::core::mem::transmute(ppstorage.as_ptr()), pceltfetched).ok() @@ -2046,13 +1765,6 @@ impl IWMDMEnumStorage { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWMDMEnumStorage, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMDMEnumStorage { - type Vtable = IWMDMEnumStorage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMDMEnumStorage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1dcb3a05_33ed_11d3_8470_00c04f79dbc0); -} #[repr(C)] #[doc(hidden)] pub struct IWMDMEnumStorage_Vtbl { @@ -2062,9 +1774,8 @@ pub struct IWMDMEnumStorage_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenumstorage: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMDMLogger(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMDMLogger, IWMDMLogger_Vtbl, 0x110a3200_5a79_11d3_8d78_444553540000); +::windows_core::imp::interface_hierarchy!(IWMDMLogger, ::windows_core::IUnknown); impl IWMDMLogger { pub unsafe fn IsEnabled(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2109,13 +1820,6 @@ impl IWMDMLogger { (::windows_core::Interface::vtable(self).SetSizeParams)(::windows_core::Interface::as_raw(self), dwmaxsize, dwshrinktosize).ok() } } -::windows_core::imp::interface_hierarchy!(IWMDMLogger, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMDMLogger { - type Vtable = IWMDMLogger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMDMLogger { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x110a3200_5a79_11d3_8d78_444553540000); -} #[repr(C)] #[doc(hidden)] pub struct IWMDMLogger_Vtbl { @@ -2130,9 +1834,8 @@ pub struct IWMDMLogger_Vtbl { pub GetSizeParams: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwmaxsize: *mut u32, pdwshrinktosize: *mut u32) -> ::windows_core::HRESULT, pub SetSizeParams: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwmaxsize: u32, dwshrinktosize: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMDMMetaData(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMDMMetaData, IWMDMMetaData_Vtbl, 0xec3b0663_0951_460a_9a80_0dceed3c043c); +::windows_core::imp::interface_hierarchy!(IWMDMMetaData, ::windows_core::IUnknown); impl IWMDMMetaData { pub unsafe fn AddItem(&self, r#type: WMDM_TAG_DATATYPE, pwsztagname: P0, pvalue: ::core::option::Option<&[u8]>) -> ::windows_core::Result<()> where @@ -2154,13 +1857,6 @@ impl IWMDMMetaData { (::windows_core::Interface::vtable(self).GetItemCount)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWMDMMetaData, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMDMMetaData { - type Vtable = IWMDMMetaData_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMDMMetaData { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xec3b0663_0951_460a_9a80_0dceed3c043c); -} #[repr(C)] #[doc(hidden)] pub struct IWMDMMetaData_Vtbl { @@ -2170,9 +1866,8 @@ pub struct IWMDMMetaData_Vtbl { pub QueryByIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, iindex: u32, ppwszname: *mut *mut u16, ptype: *mut WMDM_TAG_DATATYPE, ppvalue: *mut *mut u8, pcblength: *mut u32) -> ::windows_core::HRESULT, pub GetItemCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, icount: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMDMNotification(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMDMNotification, IWMDMNotification_Vtbl, 0x3f5e95c0_0f43_4ed4_93d2_c89a45d59b81); +::windows_core::imp::interface_hierarchy!(IWMDMNotification, ::windows_core::IUnknown); impl IWMDMNotification { pub unsafe fn WMDMMessage(&self, dwmessagetype: u32, pwszcanonicalname: P0) -> ::windows_core::Result<()> where @@ -2181,22 +1876,14 @@ impl IWMDMNotification { (::windows_core::Interface::vtable(self).WMDMMessage)(::windows_core::Interface::as_raw(self), dwmessagetype, pwszcanonicalname.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IWMDMNotification, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMDMNotification { - type Vtable = IWMDMNotification_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMDMNotification { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3f5e95c0_0f43_4ed4_93d2_c89a45d59b81); -} #[repr(C)] #[doc(hidden)] pub struct IWMDMNotification_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub WMDMMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwmessagetype: u32, pwszcanonicalname: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMDMObjectInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMDMObjectInfo, IWMDMObjectInfo_Vtbl, 0x1dcb3a09_33ed_11d3_8470_00c04f79dbc0); +::windows_core::imp::interface_hierarchy!(IWMDMObjectInfo, ::windows_core::IUnknown); impl IWMDMObjectInfo { pub unsafe fn GetPlayLength(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2225,13 +1912,6 @@ impl IWMDMObjectInfo { (::windows_core::Interface::vtable(self).GetLongestPlayPosition)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWMDMObjectInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMDMObjectInfo { - type Vtable = IWMDMObjectInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMDMObjectInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1dcb3a09_33ed_11d3_8470_00c04f79dbc0); -} #[repr(C)] #[doc(hidden)] pub struct IWMDMObjectInfo_Vtbl { @@ -2244,9 +1924,8 @@ pub struct IWMDMObjectInfo_Vtbl { pub GetLastPlayPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwlastpos: *mut u32) -> ::windows_core::HRESULT, pub GetLongestPlayPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwlongestpos: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMDMOperation(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMDMOperation, IWMDMOperation_Vtbl, 0x1dcb3a0b_33ed_11d3_8470_00c04f79dbc0); +::windows_core::imp::interface_hierarchy!(IWMDMOperation, ::windows_core::IUnknown); impl IWMDMOperation { pub unsafe fn BeginRead(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).BeginRead)(::windows_core::Interface::as_raw(self)).ok() @@ -2286,13 +1965,6 @@ impl IWMDMOperation { (::windows_core::Interface::vtable(self).End)(::windows_core::Interface::as_raw(self), phcompletioncode, pnewobject.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IWMDMOperation, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMDMOperation { - type Vtable = IWMDMOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMDMOperation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1dcb3a0b_33ed_11d3_8470_00c04f79dbc0); -} #[repr(C)] #[doc(hidden)] pub struct IWMDMOperation_Vtbl { @@ -2314,9 +1986,8 @@ pub struct IWMDMOperation_Vtbl { pub TransferObjectData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdata: *mut u8, pdwsize: *mut u32, abmac: *mut u8) -> ::windows_core::HRESULT, pub End: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phcompletioncode: *const ::windows_core::HRESULT, pnewobject: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMDMOperation2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMDMOperation2, IWMDMOperation2_Vtbl, 0x33445b48_7df7_425c_ad8f_0fc6d82f9f75); +::windows_core::imp::interface_hierarchy!(IWMDMOperation2, ::windows_core::IUnknown, IWMDMOperation); impl IWMDMOperation2 { pub unsafe fn BeginRead(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.BeginRead)(::windows_core::Interface::as_raw(self)).ok() @@ -2366,13 +2037,6 @@ impl IWMDMOperation2 { (::windows_core::Interface::vtable(self).GetObjectAttributes2)(::windows_core::Interface::as_raw(self), pdwattributes, pdwattributesex, ::core::mem::transmute(paudioformat.unwrap_or(::std::ptr::null_mut())), ::core::mem::transmute(pvideoformat.unwrap_or(::std::ptr::null_mut()))).ok() } } -::windows_core::imp::interface_hierarchy!(IWMDMOperation2, ::windows_core::IUnknown, IWMDMOperation); -unsafe impl ::windows_core::Interface for IWMDMOperation2 { - type Vtable = IWMDMOperation2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMDMOperation2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x33445b48_7df7_425c_ad8f_0fc6d82f9f75); -} #[repr(C)] #[doc(hidden)] pub struct IWMDMOperation2_Vtbl { @@ -2386,9 +2050,8 @@ pub struct IWMDMOperation2_Vtbl { #[cfg(not(all(feature = "Win32_Graphics_Gdi", feature = "Win32_Media_Audio", feature = "Win32_Media_MediaFoundation")))] GetObjectAttributes2: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMDMOperation3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMDMOperation3, IWMDMOperation3_Vtbl, 0xd1f9b46a_9ca8_46d8_9d0f_1ec9bae54919); +::windows_core::imp::interface_hierarchy!(IWMDMOperation3, ::windows_core::IUnknown, IWMDMOperation); impl IWMDMOperation3 { pub unsafe fn BeginRead(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.BeginRead)(::windows_core::Interface::as_raw(self)).ok() @@ -2431,22 +2094,14 @@ impl IWMDMOperation3 { (::windows_core::Interface::vtable(self).TransferObjectDataOnClearChannel)(::windows_core::Interface::as_raw(self), pdata, pdwsize).ok() } } -::windows_core::imp::interface_hierarchy!(IWMDMOperation3, ::windows_core::IUnknown, IWMDMOperation); -unsafe impl ::windows_core::Interface for IWMDMOperation3 { - type Vtable = IWMDMOperation3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMDMOperation3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd1f9b46a_9ca8_46d8_9d0f_1ec9bae54919); -} #[repr(C)] #[doc(hidden)] pub struct IWMDMOperation3_Vtbl { pub base__: IWMDMOperation_Vtbl, pub TransferObjectDataOnClearChannel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdata: *mut u8, pdwsize: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMDMProgress(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMDMProgress, IWMDMProgress_Vtbl, 0x1dcb3a0c_33ed_11d3_8470_00c04f79dbc0); +::windows_core::imp::interface_hierarchy!(IWMDMProgress, ::windows_core::IUnknown); impl IWMDMProgress { pub unsafe fn Begin(&self, dwestimatedticks: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Begin)(::windows_core::Interface::as_raw(self), dwestimatedticks).ok() @@ -2458,13 +2113,6 @@ impl IWMDMProgress { (::windows_core::Interface::vtable(self).End)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IWMDMProgress, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMDMProgress { - type Vtable = IWMDMProgress_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMDMProgress { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1dcb3a0c_33ed_11d3_8470_00c04f79dbc0); -} #[repr(C)] #[doc(hidden)] pub struct IWMDMProgress_Vtbl { @@ -2473,9 +2121,8 @@ pub struct IWMDMProgress_Vtbl { pub Progress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwtranspiredticks: u32) -> ::windows_core::HRESULT, pub End: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMDMProgress2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMDMProgress2, IWMDMProgress2_Vtbl, 0x3a43f550_b383_4e92_b04a_e6bbc660fefc); +::windows_core::imp::interface_hierarchy!(IWMDMProgress2, ::windows_core::IUnknown, IWMDMProgress); impl IWMDMProgress2 { pub unsafe fn Begin(&self, dwestimatedticks: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.Begin)(::windows_core::Interface::as_raw(self), dwestimatedticks).ok() @@ -2490,22 +2137,14 @@ impl IWMDMProgress2 { (::windows_core::Interface::vtable(self).End2)(::windows_core::Interface::as_raw(self), hrcompletioncode).ok() } } -::windows_core::imp::interface_hierarchy!(IWMDMProgress2, ::windows_core::IUnknown, IWMDMProgress); -unsafe impl ::windows_core::Interface for IWMDMProgress2 { - type Vtable = IWMDMProgress2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMDMProgress2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3a43f550_b383_4e92_b04a_e6bbc660fefc); -} #[repr(C)] #[doc(hidden)] pub struct IWMDMProgress2_Vtbl { pub base__: IWMDMProgress_Vtbl, pub End2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hrcompletioncode: ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMDMProgress3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMDMProgress3, IWMDMProgress3_Vtbl, 0x21de01cb_3bb4_4929_b21a_17af3f80f658); +::windows_core::imp::interface_hierarchy!(IWMDMProgress3, ::windows_core::IUnknown, IWMDMProgress, IWMDMProgress2); impl IWMDMProgress3 { pub unsafe fn Begin(&self, dwestimatedticks: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.Begin)(::windows_core::Interface::as_raw(self), dwestimatedticks).ok() @@ -2529,13 +2168,6 @@ impl IWMDMProgress3 { (::windows_core::Interface::vtable(self).End3)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(eventid), hrcompletioncode, ::core::mem::transmute(pcontext.unwrap_or(::std::ptr::null_mut()))).ok() } } -::windows_core::imp::interface_hierarchy!(IWMDMProgress3, ::windows_core::IUnknown, IWMDMProgress, IWMDMProgress2); -unsafe impl ::windows_core::Interface for IWMDMProgress3 { - type Vtable = IWMDMProgress3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMDMProgress3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x21de01cb_3bb4_4929_b21a_17af3f80f658); -} #[repr(C)] #[doc(hidden)] pub struct IWMDMProgress3_Vtbl { @@ -2544,30 +2176,21 @@ pub struct IWMDMProgress3_Vtbl { pub Progress3: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventid: ::windows_core::GUID, dwtranspiredticks: u32, pcontext: *mut OPAQUECOMMAND) -> ::windows_core::HRESULT, pub End3: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventid: ::windows_core::GUID, hrcompletioncode: ::windows_core::HRESULT, pcontext: *mut OPAQUECOMMAND) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMDMRevoked(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMDMRevoked, IWMDMRevoked_Vtbl, 0xebeccedb_88ee_4e55_b6a4_8d9f07d696aa); +::windows_core::imp::interface_hierarchy!(IWMDMRevoked, ::windows_core::IUnknown); impl IWMDMRevoked { pub unsafe fn GetRevocationURL(&self, ppwszrevocationurl: *mut ::windows_core::PWSTR, pdwbufferlen: *mut u32, pdwrevokedbitflag: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetRevocationURL)(::windows_core::Interface::as_raw(self), ppwszrevocationurl, pdwbufferlen, pdwrevokedbitflag).ok() } } -::windows_core::imp::interface_hierarchy!(IWMDMRevoked, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMDMRevoked { - type Vtable = IWMDMRevoked_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMDMRevoked { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xebeccedb_88ee_4e55_b6a4_8d9f07d696aa); -} #[repr(C)] #[doc(hidden)] pub struct IWMDMRevoked_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetRevocationURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppwszrevocationurl: *mut ::windows_core::PWSTR, pdwbufferlen: *mut u32, pdwrevokedbitflag: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMDMStorage(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMDMStorage, IWMDMStorage_Vtbl, 0x1dcb3a06_33ed_11d3_8470_00c04f79dbc0); +::windows_core::imp::interface_hierarchy!(IWMDMStorage, ::windows_core::IUnknown); impl IWMDMStorage { #[doc = "Required features: `\"Win32_Media_Audio\"`"] #[cfg(feature = "Win32_Media_Audio")] @@ -2604,13 +2227,6 @@ impl IWMDMStorage { (::windows_core::Interface::vtable(self).SendOpaqueCommand)(::windows_core::Interface::as_raw(self), pcommand).ok() } } -::windows_core::imp::interface_hierarchy!(IWMDMStorage, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMDMStorage { - type Vtable = IWMDMStorage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMDMStorage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1dcb3a06_33ed_11d3_8470_00c04f79dbc0); -} #[repr(C)] #[doc(hidden)] pub struct IWMDMStorage_Vtbl { @@ -2631,9 +2247,8 @@ pub struct IWMDMStorage_Vtbl { pub EnumStorage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, penumstorage: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SendOpaqueCommand: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcommand: *mut OPAQUECOMMAND) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMDMStorage2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMDMStorage2, IWMDMStorage2_Vtbl, 0x1ed5a144_5cd5_4683_9eff_72cbdb2d9533); +::windows_core::imp::interface_hierarchy!(IWMDMStorage2, ::windows_core::IUnknown, IWMDMStorage); impl IWMDMStorage2 { #[doc = "Required features: `\"Win32_Media_Audio\"`"] #[cfg(feature = "Win32_Media_Audio")] @@ -2687,13 +2302,6 @@ impl IWMDMStorage2 { (::windows_core::Interface::vtable(self).GetAttributes2)(::windows_core::Interface::as_raw(self), pdwattributes, pdwattributesex, ::core::mem::transmute(paudioformat.unwrap_or(::std::ptr::null_mut())), ::core::mem::transmute(pvideoformat.unwrap_or(::std::ptr::null_mut()))).ok() } } -::windows_core::imp::interface_hierarchy!(IWMDMStorage2, ::windows_core::IUnknown, IWMDMStorage); -unsafe impl ::windows_core::Interface for IWMDMStorage2 { - type Vtable = IWMDMStorage2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMDMStorage2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1ed5a144_5cd5_4683_9eff_72cbdb2d9533); -} #[repr(C)] #[doc(hidden)] pub struct IWMDMStorage2_Vtbl { @@ -2708,9 +2316,8 @@ pub struct IWMDMStorage2_Vtbl { #[cfg(not(all(feature = "Win32_Graphics_Gdi", feature = "Win32_Media_Audio", feature = "Win32_Media_MediaFoundation")))] GetAttributes2: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMDMStorage3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMDMStorage3, IWMDMStorage3_Vtbl, 0x97717eea_926a_464e_96a4_247b0216026e); +::windows_core::imp::interface_hierarchy!(IWMDMStorage3, ::windows_core::IUnknown, IWMDMStorage, IWMDMStorage2); impl IWMDMStorage3 { #[doc = "Required features: `\"Win32_Media_Audio\"`"] #[cfg(feature = "Win32_Media_Audio")] @@ -2781,13 +2388,6 @@ impl IWMDMStorage3 { (::windows_core::Interface::vtable(self).SetEnumPreference)(::windows_core::Interface::as_raw(self), pmode, pviews.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), ::core::mem::transmute(pviews.as_deref().map_or(::core::ptr::null(), |slice| slice.as_ptr()))).ok() } } -::windows_core::imp::interface_hierarchy!(IWMDMStorage3, ::windows_core::IUnknown, IWMDMStorage, IWMDMStorage2); -unsafe impl ::windows_core::Interface for IWMDMStorage3 { - type Vtable = IWMDMStorage3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMDMStorage3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x97717eea_926a_464e_96a4_247b0216026e); -} #[repr(C)] #[doc(hidden)] pub struct IWMDMStorage3_Vtbl { @@ -2797,9 +2397,8 @@ pub struct IWMDMStorage3_Vtbl { pub CreateEmptyMetadataObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppmetadata: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetEnumPreference: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pmode: *mut WMDM_STORAGE_ENUM_MODE, nviews: u32, pviews: *const WMDMMetadataView) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMDMStorage4(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMDMStorage4, IWMDMStorage4_Vtbl, 0xc225bac5_a03a_40b8_9a23_91cf478c64a6); +::windows_core::imp::interface_hierarchy!(IWMDMStorage4, ::windows_core::IUnknown, IWMDMStorage, IWMDMStorage2, IWMDMStorage3); impl IWMDMStorage4 { #[doc = "Required features: `\"Win32_Media_Audio\"`"] #[cfg(feature = "Win32_Media_Audio")] @@ -2897,13 +2496,6 @@ impl IWMDMStorage4 { (::windows_core::Interface::vtable(self).GetParent)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWMDMStorage4, ::windows_core::IUnknown, IWMDMStorage, IWMDMStorage2, IWMDMStorage3); -unsafe impl ::windows_core::Interface for IWMDMStorage4 { - type Vtable = IWMDMStorage4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMDMStorage4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc225bac5_a03a_40b8_9a23_91cf478c64a6); -} #[repr(C)] #[doc(hidden)] pub struct IWMDMStorage4_Vtbl { @@ -2915,9 +2507,8 @@ pub struct IWMDMStorage4_Vtbl { pub FindStorage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, findscope: WMDM_FIND_SCOPE, pwszuniqueid: ::windows_core::PCWSTR, ppstorage: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetParent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppstorage: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMDMStorageControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMDMStorageControl, IWMDMStorageControl_Vtbl, 0x1dcb3a08_33ed_11d3_8470_00c04f79dbc0); +::windows_core::imp::interface_hierarchy!(IWMDMStorageControl, ::windows_core::IUnknown); impl IWMDMStorageControl { pub unsafe fn Insert(&self, fumode: u32, pwszfile: P0, poperation: P1, pprogress: P2) -> ::windows_core::Result where @@ -2957,13 +2548,6 @@ impl IWMDMStorageControl { (::windows_core::Interface::vtable(self).Move)(::windows_core::Interface::as_raw(self), fumode, ptargetobject.into_param().abi(), pprogress.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IWMDMStorageControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMDMStorageControl { - type Vtable = IWMDMStorageControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMDMStorageControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1dcb3a08_33ed_11d3_8470_00c04f79dbc0); -} #[repr(C)] #[doc(hidden)] pub struct IWMDMStorageControl_Vtbl { @@ -2974,9 +2558,8 @@ pub struct IWMDMStorageControl_Vtbl { pub Read: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fumode: u32, pwszfile: ::windows_core::PCWSTR, pprogress: *mut ::core::ffi::c_void, poperation: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Move: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fumode: u32, ptargetobject: *mut ::core::ffi::c_void, pprogress: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMDMStorageControl2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMDMStorageControl2, IWMDMStorageControl2_Vtbl, 0x972c2e88_bd6c_4125_8e09_84f837e637b6); +::windows_core::imp::interface_hierarchy!(IWMDMStorageControl2, ::windows_core::IUnknown, IWMDMStorageControl); impl IWMDMStorageControl2 { pub unsafe fn Insert(&self, fumode: u32, pwszfile: P0, poperation: P1, pprogress: P2) -> ::windows_core::Result where @@ -3026,22 +2609,14 @@ impl IWMDMStorageControl2 { (::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::imp::interface_hierarchy!(IWMDMStorageControl2, ::windows_core::IUnknown, IWMDMStorageControl); -unsafe impl ::windows_core::Interface for IWMDMStorageControl2 { - type Vtable = IWMDMStorageControl2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMDMStorageControl2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x972c2e88_bd6c_4125_8e09_84f837e637b6); -} #[repr(C)] #[doc(hidden)] pub struct IWMDMStorageControl2_Vtbl { pub base__: IWMDMStorageControl_Vtbl, pub Insert2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fumode: u32, pwszfilesource: ::windows_core::PCWSTR, pwszfiledest: ::windows_core::PCWSTR, poperation: *mut ::core::ffi::c_void, pprogress: *mut ::core::ffi::c_void, punknown: *mut ::core::ffi::c_void, ppnewobject: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMDMStorageControl3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMDMStorageControl3, IWMDMStorageControl3_Vtbl, 0xb3266365_d4f3_4696_8d53_bd27ec60993a); +::windows_core::imp::interface_hierarchy!(IWMDMStorageControl3, ::windows_core::IUnknown, IWMDMStorageControl, IWMDMStorageControl2); impl IWMDMStorageControl3 { pub unsafe fn Insert(&self, fumode: u32, pwszfile: P0, poperation: P1, pprogress: P2) -> ::windows_core::Result where @@ -3102,22 +2677,14 @@ impl IWMDMStorageControl3 { (::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::imp::interface_hierarchy!(IWMDMStorageControl3, ::windows_core::IUnknown, IWMDMStorageControl, IWMDMStorageControl2); -unsafe impl ::windows_core::Interface for IWMDMStorageControl3 { - type Vtable = IWMDMStorageControl3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMDMStorageControl3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb3266365_d4f3_4696_8d53_bd27ec60993a); -} #[repr(C)] #[doc(hidden)] pub struct IWMDMStorageControl3_Vtbl { pub base__: IWMDMStorageControl2_Vtbl, pub Insert3: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fumode: u32, futype: u32, pwszfilesource: ::windows_core::PCWSTR, pwszfiledest: ::windows_core::PCWSTR, poperation: *mut ::core::ffi::c_void, pprogress: *mut ::core::ffi::c_void, pmetadata: *mut ::core::ffi::c_void, punknown: *mut ::core::ffi::c_void, ppnewobject: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMDMStorageGlobals(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMDMStorageGlobals, IWMDMStorageGlobals_Vtbl, 0x1dcb3a07_33ed_11d3_8470_00c04f79dbc0); +::windows_core::imp::interface_hierarchy!(IWMDMStorageGlobals, ::windows_core::IUnknown); impl IWMDMStorageGlobals { pub unsafe fn GetCapabilities(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -3146,13 +2713,6 @@ impl IWMDMStorageGlobals { (::windows_core::Interface::vtable(self).Initialize)(::windows_core::Interface::as_raw(self), fumode, pprogress.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IWMDMStorageGlobals, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMDMStorageGlobals { - type Vtable = IWMDMStorageGlobals_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMDMStorageGlobals { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1dcb3a07_33ed_11d3_8470_00c04f79dbc0); -} #[repr(C)] #[doc(hidden)] pub struct IWMDMStorageGlobals_Vtbl { @@ -3165,9 +2725,8 @@ pub struct IWMDMStorageGlobals_Vtbl { pub GetStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwstatus: *mut u32) -> ::windows_core::HRESULT, pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fumode: u32, pprogress: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMDeviceManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMDeviceManager, IWMDeviceManager_Vtbl, 0x1dcb3a00_33ed_11d3_8470_00c04f79dbc0); +::windows_core::imp::interface_hierarchy!(IWMDeviceManager, ::windows_core::IUnknown); impl IWMDeviceManager { pub unsafe fn GetRevision(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -3182,13 +2741,6 @@ impl IWMDeviceManager { (::windows_core::Interface::vtable(self).EnumDevices)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWMDeviceManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMDeviceManager { - type Vtable = IWMDeviceManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMDeviceManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1dcb3a00_33ed_11d3_8470_00c04f79dbc0); -} #[repr(C)] #[doc(hidden)] pub struct IWMDeviceManager_Vtbl { @@ -3197,9 +2749,8 @@ pub struct IWMDeviceManager_Vtbl { pub GetDeviceCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwcount: *mut u32) -> ::windows_core::HRESULT, pub EnumDevices: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenumdevice: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMDeviceManager2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMDeviceManager2, IWMDeviceManager2_Vtbl, 0x923e5249_8731_4c5b_9b1c_b8b60b6e46af); +::windows_core::imp::interface_hierarchy!(IWMDeviceManager2, ::windows_core::IUnknown, IWMDeviceManager); impl IWMDeviceManager2 { pub unsafe fn GetRevision(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -3228,13 +2779,6 @@ impl IWMDeviceManager2 { (::windows_core::Interface::vtable(self).Reinitialize)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IWMDeviceManager2, ::windows_core::IUnknown, IWMDeviceManager); -unsafe impl ::windows_core::Interface for IWMDeviceManager2 { - type Vtable = IWMDeviceManager2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMDeviceManager2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x923e5249_8731_4c5b_9b1c_b8b60b6e46af); -} #[repr(C)] #[doc(hidden)] pub struct IWMDeviceManager2_Vtbl { @@ -3243,9 +2787,8 @@ pub struct IWMDeviceManager2_Vtbl { pub EnumDevices2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenumdevice: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Reinitialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMDeviceManager3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMDeviceManager3, IWMDeviceManager3_Vtbl, 0xaf185c41_100d_46ed_be2e_9ce8c44594ef); +::windows_core::imp::interface_hierarchy!(IWMDeviceManager3, ::windows_core::IUnknown, IWMDeviceManager, IWMDeviceManager2); impl IWMDeviceManager3 { pub unsafe fn GetRevision(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -3277,13 +2820,6 @@ impl IWMDeviceManager3 { (::windows_core::Interface::vtable(self).SetDeviceEnumPreference)(::windows_core::Interface::as_raw(self), dwenumpref).ok() } } -::windows_core::imp::interface_hierarchy!(IWMDeviceManager3, ::windows_core::IUnknown, IWMDeviceManager, IWMDeviceManager2); -unsafe impl ::windows_core::Interface for IWMDeviceManager3 { - type Vtable = IWMDeviceManager3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMDeviceManager3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaf185c41_100d_46ed_be2e_9ce8c44594ef); -} #[repr(C)] #[doc(hidden)] pub struct IWMDeviceManager3_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Media/DirectShow/Tv/impl.rs b/crates/libs/windows/src/Windows/Win32/Media/DirectShow/Tv/impl.rs index d7e28c118b..7d1a9cf4d1 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/DirectShow/Tv/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/DirectShow/Tv/impl.rs @@ -32,7 +32,7 @@ impl IATSCChannelTuneRequest_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Media_MediaFoundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -69,7 +69,7 @@ impl IATSCComponentType_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -126,7 +126,7 @@ impl IATSCLocator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -163,7 +163,7 @@ impl IATSCLocator2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -260,7 +260,7 @@ impl IATSCTuningSpace_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IATSC_EIT_Impl: Sized { @@ -424,7 +424,7 @@ impl IATSC_EIT_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IATSC_ETT_Impl: Sized { @@ -490,7 +490,7 @@ impl IATSC_ETT_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IATSC_MGT_Impl: Sized { @@ -648,7 +648,7 @@ impl IATSC_MGT_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IATSC_STT_Impl: Sized { @@ -753,7 +753,7 @@ impl IATSC_STT_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IATSC_VCT_Impl: Sized { @@ -1080,7 +1080,7 @@ impl IATSC_VCT_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Media_MediaFoundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1117,7 +1117,7 @@ impl IAnalogAudioComponentType_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1154,7 +1154,7 @@ impl IAnalogLocator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1231,7 +1231,7 @@ impl IAnalogRadioTuningSpace_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1268,7 +1268,7 @@ impl IAnalogRadioTuningSpace2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1365,7 +1365,7 @@ impl IAnalogTVTuningSpace_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IAtscContentAdvisoryDescriptor_Impl: Sized { @@ -1476,7 +1476,7 @@ impl IAtscContentAdvisoryDescriptor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAtscPsipParser_Impl: Sized { @@ -1626,7 +1626,7 @@ impl IAtscPsipParser_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAttributeGet_Impl: Sized { @@ -1666,7 +1666,7 @@ impl IAttributeGet_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAttributeSet_Impl: Sized { @@ -1683,7 +1683,7 @@ impl IAttributeSet_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), SetAttrib: SetAttrib:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1697,7 +1697,7 @@ impl IAuxInTuningSpace_Vtbl { Self { base__: ITuningSpace_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1734,7 +1734,7 @@ impl IAuxInTuningSpace2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1829,7 +1829,7 @@ impl IBDAComparable_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1856,7 +1856,7 @@ impl IBDACreateTuneRequestEx_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CreateTuneRequestEx: CreateTuneRequestEx:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IBDA_TIF_REGISTRATION_Impl: Sized { @@ -1883,7 +1883,7 @@ impl IBDA_TIF_REGISTRATION_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICAT_Impl: Sized { @@ -1983,7 +1983,7 @@ impl ICAT_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICaptionServiceDescriptor_Impl: Sized { @@ -2068,7 +2068,7 @@ impl ICaptionServiceDescriptor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2105,7 +2105,7 @@ impl IChannelIDTuneRequest_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2142,7 +2142,7 @@ impl IChannelTuneRequest_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2252,7 +2252,7 @@ impl IComponent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Media_MediaFoundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2442,7 +2442,7 @@ impl IComponentType_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2551,7 +2551,7 @@ impl IComponentTypes_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2660,7 +2660,7 @@ impl IComponents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2762,7 +2762,7 @@ impl IComponentsOld_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Registry\"`"] @@ -2783,7 +2783,7 @@ impl ICreatePropBagOnRegKey_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Create: Create:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDTFilter_Impl: Sized { @@ -2876,7 +2876,7 @@ impl IDTFilter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDTFilter2_Impl: Sized + IDTFilter_Impl { @@ -2922,7 +2922,7 @@ impl IDTFilter2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDTFilter3_Impl: Sized + IDTFilter2_Impl { @@ -2968,7 +2968,7 @@ impl IDTFilter3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDTFilterConfig_Impl: Sized { @@ -2991,7 +2991,7 @@ impl IDTFilterConfig_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetSecureChannelObject: GetSecureChannelObject:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3005,7 +3005,7 @@ impl IDTFilterEvents_Vtbl { Self { base__: super::super::super::System::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDTFilterLicenseRenewal_Impl: Sized { @@ -3022,7 +3022,7 @@ impl IDTFilterLicenseRenewal_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetLicenseRenewalData: GetLicenseRenewalData:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3036,7 +3036,7 @@ impl IDVBCLocator_Vtbl { Self { base__: IDigitalLocator_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3153,7 +3153,7 @@ impl IDVBSLocator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3310,7 +3310,7 @@ impl IDVBSLocator2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3427,7 +3427,7 @@ impl IDVBSTuningSpace_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3584,7 +3584,7 @@ impl IDVBTLocator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3621,7 +3621,7 @@ impl IDVBTLocator2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3698,7 +3698,7 @@ impl IDVBTuneRequest_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3735,7 +3735,7 @@ impl IDVBTuningSpace_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3772,7 +3772,7 @@ impl IDVBTuningSpace2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDVB_BAT_Impl: Sized { @@ -3951,7 +3951,7 @@ impl IDVB_BAT_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDVB_DIT_Impl: Sized { @@ -3984,7 +3984,7 @@ impl IDVB_DIT_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDVB_EIT_Impl: Sized { @@ -4240,7 +4240,7 @@ impl IDVB_EIT_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDVB_EIT2_Impl: Sized + IDVB_EIT_Impl { @@ -4273,7 +4273,7 @@ impl IDVB_EIT2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDVB_NIT_Impl: Sized { @@ -4471,7 +4471,7 @@ impl IDVB_NIT_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDVB_RST_Impl: Sized { @@ -4569,7 +4569,7 @@ impl IDVB_RST_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDVB_SDT_Impl: Sized { @@ -4786,7 +4786,7 @@ impl IDVB_SDT_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDVB_SIT_Impl: Sized { @@ -4958,7 +4958,7 @@ impl IDVB_SIT_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDVB_ST_Impl: Sized { @@ -5004,7 +5004,7 @@ impl IDVB_ST_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDVB_TDT_Impl: Sized { @@ -5037,7 +5037,7 @@ impl IDVB_TDT_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDVB_TOT_Impl: Sized { @@ -5103,7 +5103,7 @@ impl IDVB_TOT_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5117,7 +5117,7 @@ impl IDigitalCableLocator_Vtbl { Self { base__: IATSCLocator2_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5174,7 +5174,7 @@ impl IDigitalCableTuneRequest_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5271,7 +5271,7 @@ impl IDigitalCableTuningSpace_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5285,7 +5285,7 @@ impl IDigitalLocator_Vtbl { Self { base__: ILocator_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDvbCableDeliverySystemDescriptor_Impl: Sized { @@ -5389,7 +5389,7 @@ impl IDvbCableDeliverySystemDescriptor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDvbComponentDescriptor_Impl: Sized { @@ -5487,7 +5487,7 @@ impl IDvbComponentDescriptor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDvbContentDescriptor_Impl: Sized { @@ -5553,7 +5553,7 @@ impl IDvbContentDescriptor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDvbContentIdentifierDescriptor_Impl: Sized { @@ -5612,7 +5612,7 @@ impl IDvbContentIdentifierDescriptor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDvbDataBroadcastDescriptor_Impl: Sized { @@ -5730,7 +5730,7 @@ impl IDvbDataBroadcastDescriptor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDvbDataBroadcastIDDescriptor_Impl: Sized { @@ -5789,7 +5789,7 @@ impl IDvbDataBroadcastIDDescriptor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDvbDefaultAuthorityDescriptor_Impl: Sized { @@ -5835,7 +5835,7 @@ impl IDvbDefaultAuthorityDescriptor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDvbExtendedEventDescriptor_Impl: Sized { @@ -5967,7 +5967,7 @@ impl IDvbExtendedEventDescriptor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDvbFrequencyListDescriptor_Impl: Sized { @@ -6045,7 +6045,7 @@ impl IDvbFrequencyListDescriptor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDvbHDSimulcastLogicalChannelDescriptor_Impl: Sized + IDvbLogicalChannelDescriptor2_Impl {} @@ -6055,7 +6055,7 @@ impl IDvbHDSimulcastLogicalChannelDescriptor_Vtbl { Self { base__: IDvbLogicalChannelDescriptor2_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDvbLinkageDescriptor_Impl: Sized { @@ -6166,7 +6166,7 @@ impl IDvbLinkageDescriptor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDvbLogicalChannel2Descriptor_Impl: Sized + IDvbLogicalChannelDescriptor2_Impl { @@ -6277,7 +6277,7 @@ impl IDvbLogicalChannel2Descriptor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDvbLogicalChannelDescriptor_Impl: Sized { @@ -6355,7 +6355,7 @@ impl IDvbLogicalChannelDescriptor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDvbLogicalChannelDescriptor2_Impl: Sized + IDvbLogicalChannelDescriptor_Impl { @@ -6381,7 +6381,7 @@ impl IDvbLogicalChannelDescriptor2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDvbMultilingualServiceNameDescriptor_Impl: Sized { @@ -6472,7 +6472,7 @@ impl IDvbMultilingualServiceNameDescriptor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDvbNetworkNameDescriptor_Impl: Sized { @@ -6537,7 +6537,7 @@ impl IDvbNetworkNameDescriptor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDvbParentalRatingDescriptor_Impl: Sized { @@ -6596,7 +6596,7 @@ impl IDvbParentalRatingDescriptor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDvbPrivateDataSpecifierDescriptor_Impl: Sized { @@ -6648,7 +6648,7 @@ impl IDvbPrivateDataSpecifierDescriptor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDvbSatelliteDeliverySystemDescriptor_Impl: Sized { @@ -6778,7 +6778,7 @@ impl IDvbSatelliteDeliverySystemDescriptor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDvbServiceAttributeDescriptor_Impl: Sized { @@ -6869,7 +6869,7 @@ impl IDvbServiceAttributeDescriptor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDvbServiceDescriptor_Impl: Sized { @@ -6986,7 +6986,7 @@ impl IDvbServiceDescriptor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDvbServiceDescriptor2_Impl: Sized + IDvbServiceDescriptor_Impl { @@ -7025,7 +7025,7 @@ impl IDvbServiceDescriptor2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDvbServiceListDescriptor_Impl: Sized { @@ -7103,7 +7103,7 @@ impl IDvbServiceListDescriptor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDvbShortEventDescriptor_Impl: Sized { @@ -7175,7 +7175,7 @@ impl IDvbShortEventDescriptor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDvbSiParser_Impl: Sized { @@ -7377,7 +7377,7 @@ impl IDvbSiParser_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDvbSiParser2_Impl: Sized + IDvbSiParser_Impl { @@ -7400,7 +7400,7 @@ impl IDvbSiParser2_Vtbl { Self { base__: IDvbSiParser_Vtbl::new::(), GetEIT2: GetEIT2:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDvbSubtitlingDescriptor_Impl: Sized { @@ -7504,7 +7504,7 @@ impl IDvbSubtitlingDescriptor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDvbTeletextDescriptor_Impl: Sized { @@ -7608,7 +7608,7 @@ impl IDvbTeletextDescriptor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDvbTerrestrial2DeliverySystemDescriptor_Impl: Sized { @@ -7790,7 +7790,7 @@ impl IDvbTerrestrial2DeliverySystemDescriptor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDvbTerrestrialDeliverySystemDescriptor_Impl: Sized { @@ -7946,7 +7946,7 @@ impl IDvbTerrestrialDeliverySystemDescriptor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -7973,7 +7973,7 @@ impl IESCloseMmiEvent_Vtbl { Self { base__: super::IESEvent_Vtbl::new::(), GetDialogNumber: GetDialogNumber:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IESEventFactory_Impl: Sized { @@ -7996,7 +7996,7 @@ impl IESEventFactory_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CreateESEvent: CreateESEvent:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IESEventService_Impl: Sized { @@ -8013,7 +8013,7 @@ impl IESEventService_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), FireESEvent: FireESEvent:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IESEventServiceConfiguration_Impl: Sized { @@ -8068,7 +8068,7 @@ impl IESEventServiceConfiguration_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -8163,7 +8163,7 @@ impl IESFileExpiryDateEvent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -8232,7 +8232,7 @@ impl IESIsdbCasResponseEvent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -8392,7 +8392,7 @@ impl IESLicenseRenewalResultEvent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -8449,7 +8449,7 @@ impl IESOpenMmiEvent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -8518,7 +8518,7 @@ impl IESRequestTunerEvent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -8545,7 +8545,7 @@ impl IESValueUpdatedEvent_Vtbl { Self { base__: super::IESEvent_Vtbl::new::(), GetValueNames: GetValueNames:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IETFilter_Impl: Sized { @@ -8605,7 +8605,7 @@ impl IETFilter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IETFilterConfig_Impl: Sized { @@ -8638,7 +8638,7 @@ impl IETFilterConfig_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -8652,7 +8652,7 @@ impl IETFilterEvents_Vtbl { Self { base__: super::super::super::System::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -8703,7 +8703,7 @@ impl IEnumComponentTypes_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -8754,7 +8754,7 @@ impl IEnumComponents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumGuideDataProperties_Impl: Sized { @@ -8801,7 +8801,7 @@ impl IEnumGuideDataProperties_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -8852,7 +8852,7 @@ impl IEnumMSVidGraphSegment_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumStreamBufferRecordingAttrib_Impl: Sized { @@ -8899,7 +8899,7 @@ impl IEnumStreamBufferRecordingAttrib_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -8950,7 +8950,7 @@ impl IEnumTuneRequests_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -9001,7 +9001,7 @@ impl IEnumTuningSpaces_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -9072,7 +9072,7 @@ impl IEvalRat_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IGenericDescriptor_Impl: Sized { @@ -9131,7 +9131,7 @@ impl IGenericDescriptor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IGenericDescriptor2_Impl: Sized + IGenericDescriptor_Impl { @@ -9164,7 +9164,7 @@ impl IGenericDescriptor2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IGpnvsCommonBase_Impl: Sized { @@ -9187,7 +9187,7 @@ impl IGpnvsCommonBase_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetValueUpdateName: GetValueUpdateName:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -9282,7 +9282,7 @@ impl IGuideData_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -9348,7 +9348,7 @@ impl IGuideDataEvent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IGuideDataLoader_Impl: Sized { @@ -9375,7 +9375,7 @@ impl IGuideDataLoader_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -9431,7 +9431,7 @@ impl IGuideDataProperty_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -9445,7 +9445,7 @@ impl IISDBSLocator_Vtbl { Self { base__: IDVBSLocator_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IISDB_BIT_Impl: Sized { @@ -9609,7 +9609,7 @@ impl IISDB_BIT_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IISDB_CDT_Impl: Sized { @@ -9766,7 +9766,7 @@ impl IISDB_CDT_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IISDB_EMM_Impl: Sized { @@ -9846,7 +9846,7 @@ impl IISDB_EMM_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IISDB_LDT_Impl: Sized { @@ -9990,7 +9990,7 @@ impl IISDB_LDT_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IISDB_NBIT_Impl: Sized { @@ -10186,7 +10186,7 @@ impl IISDB_NBIT_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IISDB_SDT_Impl: Sized + IDVB_SDT_Impl { @@ -10209,7 +10209,7 @@ impl IISDB_SDT_Vtbl { Self { base__: IDVB_SDT_Vtbl::new::(), GetRecordEITUserDefinedFlags: GetRecordEITUserDefinedFlags:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IISDB_SDTT_Impl: Sized { @@ -10470,7 +10470,7 @@ impl IISDB_SDTT_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IIsdbAudioComponentDescriptor_Impl: Sized { @@ -10653,7 +10653,7 @@ impl IIsdbAudioComponentDescriptor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IIsdbCAContractInformationDescriptor_Impl: Sized { @@ -10783,7 +10783,7 @@ impl IIsdbCAContractInformationDescriptor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IIsdbCADescriptor_Impl: Sized { @@ -10868,7 +10868,7 @@ impl IIsdbCADescriptor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IIsdbCAServiceDescriptor_Impl: Sized { @@ -10953,7 +10953,7 @@ impl IIsdbCAServiceDescriptor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IIsdbComponentGroupDescriptor_Impl: Sized { @@ -11109,7 +11109,7 @@ impl IIsdbComponentGroupDescriptor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IIsdbDataContentDescriptor_Impl: Sized { @@ -11246,7 +11246,7 @@ impl IIsdbDataContentDescriptor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IIsdbDigitalCopyControlDescriptor_Impl: Sized { @@ -11312,7 +11312,7 @@ impl IIsdbDigitalCopyControlDescriptor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IIsdbDownloadContentDescriptor_Impl: Sized { @@ -11534,7 +11534,7 @@ impl IIsdbDownloadContentDescriptor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IIsdbEmergencyInformationDescriptor_Impl: Sized { @@ -11632,7 +11632,7 @@ impl IIsdbEmergencyInformationDescriptor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IIsdbEventGroupDescriptor_Impl: Sized { @@ -11724,7 +11724,7 @@ impl IIsdbEventGroupDescriptor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IIsdbHierarchicalTransmissionDescriptor_Impl: Sized { @@ -11815,7 +11815,7 @@ impl IIsdbHierarchicalTransmissionDescriptor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IIsdbLogoTransmissionDescriptor_Impl: Sized { @@ -11919,7 +11919,7 @@ impl IIsdbLogoTransmissionDescriptor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IIsdbSIParameterDescriptor_Impl: Sized { @@ -12030,7 +12030,7 @@ impl IIsdbSIParameterDescriptor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IIsdbSeriesDescriptor_Impl: Sized { @@ -12154,7 +12154,7 @@ impl IIsdbSeriesDescriptor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IIsdbSiParser2_Impl: Sized + IDvbSiParser2_Impl { @@ -12258,7 +12258,7 @@ impl IIsdbSiParser2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IIsdbTSInformationDescriptor_Impl: Sized { @@ -12375,7 +12375,7 @@ impl IIsdbTSInformationDescriptor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IIsdbTerrestrialDeliverySystemDescriptor_Impl: Sized { @@ -12479,7 +12479,7 @@ impl IIsdbTerrestrialDeliverySystemDescriptor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Media_MediaFoundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -12516,7 +12516,7 @@ impl ILanguageComponentType_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -12686,7 +12686,7 @@ impl ILocator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -12763,7 +12763,7 @@ impl IMPEG2Component_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Media_MediaFoundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -12800,7 +12800,7 @@ impl IMPEG2ComponentType_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -12857,7 +12857,7 @@ impl IMPEG2TuneRequest_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -12887,7 +12887,7 @@ impl IMPEG2TuneRequestFactory_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IMPEG2TuneRequestSupport_Impl: Sized {} @@ -12897,7 +12897,7 @@ impl IMPEG2TuneRequestSupport_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMPEG2_TIF_CONTROL_Impl: Sized { @@ -12958,7 +12958,7 @@ impl IMPEG2_TIF_CONTROL_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -12995,7 +12995,7 @@ impl IMSEventBinder_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -13105,7 +13105,7 @@ impl IMSVidAnalogTuner_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -13161,7 +13161,7 @@ impl IMSVidAnalogTuner2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -13175,7 +13175,7 @@ impl IMSVidAnalogTunerEvent_Vtbl { Self { base__: IMSVidTunerEvent_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -13232,7 +13232,7 @@ impl IMSVidAudioRenderer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -13302,7 +13302,7 @@ impl IMSVidAudioRendererDevices_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -13316,7 +13316,7 @@ impl IMSVidAudioRendererEvent_Vtbl { Self { base__: IMSVidOutputDeviceEvent_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -13389,7 +13389,7 @@ impl IMSVidAudioRendererEvent2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -13426,7 +13426,7 @@ impl IMSVidClosedCaptioning_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -13463,7 +13463,7 @@ impl IMSVidClosedCaptioning2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -13490,7 +13490,7 @@ impl IMSVidClosedCaptioning3_Vtbl { Self { base__: IMSVidClosedCaptioning2_Vtbl::new::(), TeleTextFilter: TeleTextFilter:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -13540,7 +13540,7 @@ impl IMSVidCompositionSegment_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -13984,7 +13984,7 @@ impl IMSVidCtl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -13998,7 +13998,7 @@ impl IMSVidDataServices_Vtbl { Self { base__: IMSVidFeature_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -14012,7 +14012,7 @@ impl IMSVidDataServicesEvent_Vtbl { Self { base__: IMSVidDeviceEvent_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -14140,7 +14140,7 @@ impl IMSVidDevice_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IMSVidDevice2_Impl: Sized { @@ -14163,7 +14163,7 @@ impl IMSVidDevice2_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), DevicePath: DevicePath:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -14184,7 +14184,7 @@ impl IMSVidDeviceEvent_Vtbl { Self { base__: super::super::super::System::Com::IDispatch_Vtbl::new::(), StateChange: StateChange:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_DirectDraw\"`, `\"Win32_Graphics_Gdi\"`, `\"Win32_Media_MediaFoundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -14241,7 +14241,7 @@ impl IMSVidEVR_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -14262,7 +14262,7 @@ impl IMSVidEVREvent_Vtbl { Self { base__: IMSVidOutputDeviceEvent_Vtbl::new::(), OnUserEvent: OnUserEvent:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -14305,7 +14305,7 @@ impl IMSVidEncoder_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -14319,7 +14319,7 @@ impl IMSVidFeature_Vtbl { Self { base__: IMSVidDevice_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -14333,7 +14333,7 @@ impl IMSVidFeatureEvent_Vtbl { Self { base__: IMSVidDeviceEvent_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -14403,7 +14403,7 @@ impl IMSVidFeatures_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -14440,7 +14440,7 @@ impl IMSVidFilePlayback_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -14471,7 +14471,7 @@ impl IMSVidFilePlayback2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -14485,7 +14485,7 @@ impl IMSVidFilePlaybackEvent_Vtbl { Self { base__: IMSVidPlaybackEvent_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -14529,7 +14529,7 @@ impl IMSVidGenericSink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -14560,7 +14560,7 @@ impl IMSVidGenericSink2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -14712,7 +14712,7 @@ impl IMSVidGraphSegment_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -14854,7 +14854,7 @@ impl IMSVidGraphSegmentContainer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMSVidGraphSegmentUserInput_Impl: Sized { @@ -14923,7 +14923,7 @@ impl IMSVidGraphSegmentUserInput_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -14960,7 +14960,7 @@ impl IMSVidInputDevice_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -14974,7 +14974,7 @@ impl IMSVidInputDeviceEvent_Vtbl { Self { base__: super::super::super::System::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -15044,7 +15044,7 @@ impl IMSVidInputDevices_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -15058,7 +15058,7 @@ impl IMSVidOutputDevice_Vtbl { Self { base__: IMSVidDevice_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -15072,7 +15072,7 @@ impl IMSVidOutputDeviceEvent_Vtbl { Self { base__: IMSVidDeviceEvent_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -15142,7 +15142,7 @@ impl IMSVidOutputDevices_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -15293,7 +15293,7 @@ impl IMSVidPlayback_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -15314,7 +15314,7 @@ impl IMSVidPlaybackEvent_Vtbl { Self { base__: IMSVidInputDeviceEvent_Vtbl::new::(), EndOfMedia: EndOfMedia:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -15438,7 +15438,7 @@ impl IMSVidRect_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -15547,7 +15547,7 @@ impl IMSVidStreamBufferRecordingControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -15630,7 +15630,7 @@ impl IMSVidStreamBufferSink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -15651,7 +15651,7 @@ impl IMSVidStreamBufferSink2_Vtbl { Self { base__: IMSVidStreamBufferSink_Vtbl::new::(), UnlockProfile: UnlockProfile:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -15866,7 +15866,7 @@ impl IMSVidStreamBufferSink3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -15904,7 +15904,7 @@ impl IMSVidStreamBufferSinkEvent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -15935,7 +15935,7 @@ impl IMSVidStreamBufferSinkEvent2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -15956,7 +15956,7 @@ impl IMSVidStreamBufferSinkEvent3_Vtbl { Self { base__: IMSVidStreamBufferSinkEvent2_Vtbl::new::(), LicenseChange: LicenseChange:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -15977,7 +15977,7 @@ impl IMSVidStreamBufferSinkEvent4_Vtbl { Self { base__: IMSVidStreamBufferSinkEvent3_Vtbl::new::(), WriteFailureClear: WriteFailureClear:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -16061,7 +16061,7 @@ impl IMSVidStreamBufferSource_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -16137,7 +16137,7 @@ impl IMSVidStreamBufferSource2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -16217,7 +16217,7 @@ impl IMSVidStreamBufferSourceEvent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -16238,7 +16238,7 @@ impl IMSVidStreamBufferSourceEvent2_Vtbl { Self { base__: IMSVidStreamBufferSourceEvent_Vtbl::new::(), RateChange: RateChange:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -16290,7 +16290,7 @@ impl IMSVidStreamBufferSourceEvent3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -16370,7 +16370,7 @@ impl IMSVidStreamBufferV2SourceEvent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -16427,7 +16427,7 @@ impl IMSVidTuner_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -16448,7 +16448,7 @@ impl IMSVidTunerEvent_Vtbl { Self { base__: IMSVidInputDeviceEvent_Vtbl::new::(), TuneChanged: TuneChanged:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_DirectDraw\"`, `\"Win32_Graphics_Gdi\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -16518,7 +16518,7 @@ impl IMSVidVMR9_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_System_Com\"`"] @@ -16730,7 +16730,7 @@ impl IMSVidVRGraphSegment_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -16744,7 +16744,7 @@ impl IMSVidVideoInputDevice_Vtbl { Self { base__: IMSVidInputDevice_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_DirectDraw\"`, `\"Win32_Graphics_Gdi\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -17073,7 +17073,7 @@ impl IMSVidVideoRenderer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_DirectDraw\"`, `\"Win32_Graphics_Gdi\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -17163,7 +17163,7 @@ impl IMSVidVideoRenderer2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -17233,7 +17233,7 @@ impl IMSVidVideoRendererDevices_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -17254,7 +17254,7 @@ impl IMSVidVideoRendererEvent_Vtbl { Self { base__: IMSVidOutputDeviceEvent_Vtbl::new::(), OverlayUnavailable: OverlayUnavailable:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -17275,7 +17275,7 @@ impl IMSVidVideoRendererEvent2_Vtbl { Self { base__: IMSVidOutputDeviceEvent_Vtbl::new::(), OverlayUnavailable: OverlayUnavailable:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -18263,7 +18263,7 @@ impl IMSVidWebDVD_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -18294,7 +18294,7 @@ impl IMSVidWebDVD2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -18451,7 +18451,7 @@ impl IMSVidWebDVDAdm_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -18629,7 +18629,7 @@ impl IMSVidWebDVDEvent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -18656,7 +18656,7 @@ impl IMSVidXDS_Vtbl { Self { base__: IMSVidFeature_Vtbl::new::(), ChannelChangeInterface: ChannelChangeInterface:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -18677,7 +18677,7 @@ impl IMSVidXDSEvent_Vtbl { Self { base__: IMSVidFeatureEvent_Vtbl::new::(), RatingChange: RatingChange:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IMceBurnerControl_Impl: Sized { @@ -18694,7 +18694,7 @@ impl IMceBurnerControl_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetBurnerNoDecryption: GetBurnerNoDecryption:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMpeg2Data_Impl: Sized { @@ -18746,7 +18746,7 @@ impl IMpeg2Data_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMpeg2Stream_Impl: Sized { @@ -18773,7 +18773,7 @@ impl IMpeg2Stream_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMpeg2TableFilter_Impl: Sized { @@ -18828,7 +18828,7 @@ impl IMpeg2TableFilter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPAT_Impl: Sized { @@ -18960,7 +18960,7 @@ impl IPAT_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPBDAAttributesDescriptor_Impl: Sized { @@ -19006,7 +19006,7 @@ impl IPBDAAttributesDescriptor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPBDAEntitlementDescriptor_Impl: Sized { @@ -19052,7 +19052,7 @@ impl IPBDAEntitlementDescriptor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPBDASiParser_Impl: Sized { @@ -19098,7 +19098,7 @@ impl IPBDASiParser_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPBDA_EIT_Impl: Sized { @@ -19242,7 +19242,7 @@ impl IPBDA_EIT_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPBDA_Services_Impl: Sized { @@ -19288,7 +19288,7 @@ impl IPBDA_Services_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPMT_Impl: Sized { @@ -19500,7 +19500,7 @@ impl IPMT_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPSITables_Impl: Sized { @@ -19523,7 +19523,7 @@ impl IPSITables_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetTable: GetTable:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPTFilterLicenseRenewal_Impl: Sized { @@ -19550,7 +19550,7 @@ impl IPTFilterLicenseRenewal_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -19594,7 +19594,7 @@ impl IPersistTuneXml_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -19621,7 +19621,7 @@ impl IPersistTuneXmlUtility_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Deserialize: Deserialize:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -19648,7 +19648,7 @@ impl IPersistTuneXmlUtility2_Vtbl { Self { base__: IPersistTuneXmlUtility_Vtbl::new::(), Serialize: Serialize:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IRegisterTuner_Impl: Sized { @@ -19675,7 +19675,7 @@ impl IRegisterTuner_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISBE2Crossbar_Impl: Sized { @@ -19728,7 +19728,7 @@ impl ISBE2Crossbar_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISBE2EnumStream_Impl: Sized { @@ -19775,7 +19775,7 @@ impl ISBE2EnumStream_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISBE2FileScan_Impl: Sized { @@ -19792,7 +19792,7 @@ impl ISBE2FileScan_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), RepairFile: RepairFile:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISBE2GlobalEvent_Impl: Sized { @@ -19809,7 +19809,7 @@ impl ISBE2GlobalEvent_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetEvent: GetEvent:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISBE2GlobalEvent2_Impl: Sized + ISBE2GlobalEvent_Impl { @@ -19826,7 +19826,7 @@ impl ISBE2GlobalEvent2_Vtbl { Self { base__: ISBE2GlobalEvent_Vtbl::new::(), GetEventEx: GetEventEx:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Media_MediaFoundation\"`"] @@ -19883,7 +19883,7 @@ impl ISBE2MediaTypeProfile_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISBE2SpanningEvent_Impl: Sized { @@ -19900,7 +19900,7 @@ impl ISBE2SpanningEvent_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetEvent: GetEvent:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISBE2StreamMap_Impl: Sized { @@ -19940,7 +19940,7 @@ impl ISBE2StreamMap_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISCTE_EAS_Impl: Sized { @@ -20306,7 +20306,7 @@ impl ISCTE_EAS_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISIInbandEPG_Impl: Sized { @@ -20346,7 +20346,7 @@ impl ISIInbandEPG_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISIInbandEPGEvent_Impl: Sized { @@ -20363,7 +20363,7 @@ impl ISIInbandEPGEvent_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), SIObjectEvent: SIObjectEvent:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -20415,7 +20415,7 @@ impl IScanningTuner_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -20494,7 +20494,7 @@ impl IScanningTunerEx_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ISectionList_Impl: Sized { @@ -20562,7 +20562,7 @@ impl ISectionList_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IServiceLocationDescriptor_Impl: Sized { @@ -20634,7 +20634,7 @@ impl IServiceLocationDescriptor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IStreamBufferConfigure_Impl: Sized { @@ -20701,7 +20701,7 @@ impl IStreamBufferConfigure_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IStreamBufferConfigure2_Impl: Sized + IStreamBufferConfigure_Impl { @@ -20748,7 +20748,7 @@ impl IStreamBufferConfigure2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IStreamBufferConfigure3_Impl: Sized + IStreamBufferConfigure2_Impl { @@ -20801,7 +20801,7 @@ impl IStreamBufferConfigure3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IStreamBufferDataCounters_Impl: Sized { @@ -20828,7 +20828,7 @@ impl IStreamBufferDataCounters_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Registry\"`"] @@ -20859,7 +20859,7 @@ impl IStreamBufferInitialize_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IStreamBufferMediaSeeking_Impl: Sized + super::IMediaSeeking_Impl {} @@ -20869,7 +20869,7 @@ impl IStreamBufferMediaSeeking_Vtbl { Self { base__: super::IMediaSeeking_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IStreamBufferMediaSeeking2_Impl: Sized + IStreamBufferMediaSeeking_Impl { @@ -20886,7 +20886,7 @@ impl IStreamBufferMediaSeeking2_Vtbl { Self { base__: IStreamBufferMediaSeeking_Vtbl::new::(), SetRateEx: SetRateEx:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IStreamBufferRecComp_Impl: Sized { @@ -20947,7 +20947,7 @@ impl IStreamBufferRecComp_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IStreamBufferRecordControl_Impl: Sized { @@ -20981,7 +20981,7 @@ impl IStreamBufferRecordControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IStreamBufferRecordingAttribute_Impl: Sized { @@ -21041,7 +21041,7 @@ impl IStreamBufferRecordingAttribute_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IStreamBufferSink_Impl: Sized { @@ -21081,7 +21081,7 @@ impl IStreamBufferSink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IStreamBufferSink2_Impl: Sized + IStreamBufferSink_Impl { @@ -21098,7 +21098,7 @@ impl IStreamBufferSink2_Vtbl { Self { base__: IStreamBufferSink_Vtbl::new::(), UnlockProfile: UnlockProfile:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IStreamBufferSink3_Impl: Sized + IStreamBufferSink2_Impl { @@ -21115,7 +21115,7 @@ impl IStreamBufferSink3_Vtbl { Self { base__: IStreamBufferSink2_Vtbl::new::(), SetAvailableFilter: SetAvailableFilter:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IStreamBufferSource_Impl: Sized { @@ -21132,7 +21132,7 @@ impl IStreamBufferSource_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), SetStreamSink: SetStreamSink:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITSDT_Impl: Sized { @@ -21232,7 +21232,7 @@ impl ITSDT_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -21308,7 +21308,7 @@ impl ITuneRequest_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -21398,7 +21398,7 @@ impl ITuneRequestInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -21425,7 +21425,7 @@ impl ITuneRequestInfoEx_Vtbl { Self { base__: ITuneRequestInfo_Vtbl::new::(), CreateComponentListEx: CreateComponentListEx:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -21542,7 +21542,7 @@ impl ITuner_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITunerCap_Impl: Sized { @@ -21576,7 +21576,7 @@ impl ITunerCap_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITunerCapEx_Impl: Sized { @@ -21599,7 +21599,7 @@ impl ITunerCapEx_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Has608_708Caption: Has608_708Caption:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -21821,7 +21821,7 @@ impl ITuningSpace_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -21989,7 +21989,7 @@ impl ITuningSpaceContainer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -22058,7 +22058,7 @@ impl ITuningSpaces_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IXDSCodec_Impl: Sized { @@ -22138,7 +22138,7 @@ impl IXDSCodec_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IXDSCodecConfig_Impl: Sized { @@ -22171,7 +22171,7 @@ impl IXDSCodecConfig_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -22185,7 +22185,7 @@ impl IXDSCodecEvents_Vtbl { Self { base__: super::super::super::System::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -22216,7 +22216,7 @@ impl IXDSToRat_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -22230,6 +22230,6 @@ impl _IMSVidCtlEvents_Vtbl { Self { base__: super::super::super::System::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &<_IMSVidCtlEvents as ::windows_core::ComInterface>::IID || iid == &::IID + iid == &<_IMSVidCtlEvents as ::windows_core::Interface>::IID || iid == &::IID } } 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 3e9c309ef9..4271761d17 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 @@ -1,8 +1,12 @@ -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IATSCChannelTuneRequest(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IATSCChannelTuneRequest, + IATSCChannelTuneRequest_Vtbl, + 0x0369b4e1_45b6_11d3_b650_00c04f79498e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IATSCChannelTuneRequest, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ITuneRequest, IChannelTuneRequest); #[cfg(feature = "Win32_System_Com")] impl IATSCChannelTuneRequest { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -53,16 +57,6 @@ impl IATSCChannelTuneRequest { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IATSCChannelTuneRequest, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ITuneRequest, IChannelTuneRequest); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IATSCChannelTuneRequest { - type Vtable = IATSCChannelTuneRequest_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IATSCChannelTuneRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0369b4e1_45b6_11d3_b650_00c04f79498e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IATSCChannelTuneRequest_Vtbl { @@ -70,11 +64,15 @@ pub struct IATSCChannelTuneRequest_Vtbl { pub MinorChannel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, minorchannel: *mut i32) -> ::windows_core::HRESULT, pub SetMinorChannel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, minorchannel: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IATSCComponentType(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IATSCComponentType, + IATSCComponentType_Vtbl, + 0xfc189e4d_7bd4_4125_b3b3_3a76a332cc96 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IATSCComponentType, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IComponentType, ILanguageComponentType, IMPEG2ComponentType); #[cfg(feature = "Win32_System_Com")] impl IATSCComponentType { pub unsafe fn Category(&self) -> ::windows_core::Result { @@ -175,16 +173,6 @@ impl IATSCComponentType { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IATSCComponentType, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IComponentType, ILanguageComponentType, IMPEG2ComponentType); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IATSCComponentType { - type Vtable = IATSCComponentType_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IATSCComponentType { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfc189e4d_7bd4_4125_b3b3_3a76a332cc96); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IATSCComponentType_Vtbl { @@ -192,11 +180,15 @@ pub struct IATSCComponentType_Vtbl { pub Flags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: *mut i32) -> ::windows_core::HRESULT, pub SetFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IATSCLocator(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IATSCLocator, + IATSCLocator_Vtbl, + 0xbf8d986f_8c2b_4131_94d7_4d3d9fcc21ef +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IATSCLocator, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ILocator, IDigitalLocator); #[cfg(feature = "Win32_System_Com")] impl IATSCLocator { pub unsafe fn CarrierFrequency(&self) -> ::windows_core::Result { @@ -270,16 +262,6 @@ impl IATSCLocator { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IATSCLocator, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ILocator, IDigitalLocator); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IATSCLocator { - type Vtable = IATSCLocator_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IATSCLocator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbf8d986f_8c2b_4131_94d7_4d3d9fcc21ef); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IATSCLocator_Vtbl { @@ -289,11 +271,15 @@ pub struct IATSCLocator_Vtbl { pub TSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, tsid: *mut i32) -> ::windows_core::HRESULT, pub SetTSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, tsid: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IATSCLocator2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IATSCLocator2, + IATSCLocator2_Vtbl, + 0x612aa885_66cf_4090_ba0a_566f5312e4ca +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IATSCLocator2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ILocator, IDigitalLocator, IATSCLocator); #[cfg(feature = "Win32_System_Com")] impl IATSCLocator2 { pub unsafe fn CarrierFrequency(&self) -> ::windows_core::Result { @@ -374,16 +360,6 @@ impl IATSCLocator2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IATSCLocator2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ILocator, IDigitalLocator, IATSCLocator); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IATSCLocator2 { - type Vtable = IATSCLocator2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IATSCLocator2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x612aa885_66cf_4090_ba0a_566f5312e4ca); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IATSCLocator2_Vtbl { @@ -391,11 +367,15 @@ pub struct IATSCLocator2_Vtbl { pub ProgramNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, programnumber: *mut i32) -> ::windows_core::HRESULT, pub SetProgramNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, programnumber: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IATSCTuningSpace(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IATSCTuningSpace, + IATSCTuningSpace_Vtbl, + 0x0369b4e2_45b6_11d3_b650_00c04f79498e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IATSCTuningSpace, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ITuningSpace, IAnalogTVTuningSpace); #[cfg(feature = "Win32_System_Com")] impl IATSCTuningSpace { pub unsafe fn UniqueName(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -559,16 +539,6 @@ impl IATSCTuningSpace { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IATSCTuningSpace, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ITuningSpace, IAnalogTVTuningSpace); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IATSCTuningSpace { - type Vtable = IATSCTuningSpace_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IATSCTuningSpace { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0369b4e2_45b6_11d3_b650_00c04f79498e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IATSCTuningSpace_Vtbl { @@ -582,9 +552,8 @@ pub struct IATSCTuningSpace_Vtbl { pub MaxPhysicalChannel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, maxphysicalchannelval: *mut i32) -> ::windows_core::HRESULT, pub SetMaxPhysicalChannel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newmaxphysicalchannelval: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IATSC_EIT(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IATSC_EIT, IATSC_EIT_Vtbl, 0xd7c212d7_76a2_4b4b_aa56_846879a80096); +::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 @@ -640,13 +609,6 @@ impl IATSC_EIT { (::windows_core::Interface::vtable(self).GetRecordDescriptorByTag)(::windows_core::Interface::as_raw(self), dwrecordindex, btag, pdwcookie, ::core::mem::transmute(ppdescriptor)).ok() } } -::windows_core::imp::interface_hierarchy!(IATSC_EIT, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IATSC_EIT { - type Vtable = IATSC_EIT_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IATSC_EIT { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd7c212d7_76a2_4b4b_aa56_846879a80096); -} #[repr(C)] #[doc(hidden)] pub struct IATSC_EIT_Vtbl { @@ -665,9 +627,8 @@ pub struct IATSC_EIT_Vtbl { pub GetRecordDescriptorByIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwrecordindex: u32, dwindex: u32, ppdescriptor: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetRecordDescriptorByTag: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwrecordindex: u32, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IATSC_ETT(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IATSC_ETT, IATSC_ETT_Vtbl, 0x5a142cc9_b8cf_4a86_a040_e9cadf3ef3e7); +::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 @@ -692,13 +653,6 @@ impl IATSC_ETT { (::windows_core::Interface::vtable(self).GetExtendedMessageText)(::windows_core::Interface::as_raw(self), pdwlength, pptext).ok() } } -::windows_core::imp::interface_hierarchy!(IATSC_ETT, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IATSC_ETT { - type Vtable = IATSC_ETT_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IATSC_ETT { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5a142cc9_b8cf_4a86_a040_e9cadf3ef3e7); -} #[repr(C)] #[doc(hidden)] pub struct IATSC_ETT_Vtbl { @@ -709,9 +663,8 @@ pub struct IATSC_ETT_Vtbl { pub GetEtmId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwval: *mut u32) -> ::windows_core::HRESULT, pub GetExtendedMessageText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwlength: *mut u32, pptext: *mut *mut u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IATSC_MGT(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IATSC_MGT, IATSC_MGT_Vtbl, 0x8877dabd_c137_4073_97e3_779407a5d87a); +::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 @@ -766,13 +719,6 @@ impl IATSC_MGT { (::windows_core::Interface::vtable(self).GetTableDescriptorByTag)(::windows_core::Interface::as_raw(self), btag, pdwcookie, ::core::mem::transmute(ppdescriptor)).ok() } } -::windows_core::imp::interface_hierarchy!(IATSC_MGT, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IATSC_MGT { - type Vtable = IATSC_MGT_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IATSC_MGT { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8877dabd_c137_4073_97e3_779407a5d87a); -} #[repr(C)] #[doc(hidden)] pub struct IATSC_MGT_Vtbl { @@ -791,9 +737,8 @@ pub struct IATSC_MGT_Vtbl { pub GetTableDescriptorByIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwindex: u32, ppdescriptor: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetTableDescriptorByTag: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IATSC_STT(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IATSC_STT, IATSC_STT_Vtbl, 0x6bf42423_217d_4d6f_81e1_3a7b360ec896); +::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 @@ -830,13 +775,6 @@ impl IATSC_STT { (::windows_core::Interface::vtable(self).GetTableDescriptorByTag)(::windows_core::Interface::as_raw(self), btag, pdwcookie, ::core::mem::transmute(ppdescriptor)).ok() } } -::windows_core::imp::interface_hierarchy!(IATSC_STT, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IATSC_STT { - type Vtable = IATSC_STT_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IATSC_STT { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6bf42423_217d_4d6f_81e1_3a7b360ec896); -} #[repr(C)] #[doc(hidden)] pub struct IATSC_STT_Vtbl { @@ -850,9 +788,8 @@ pub struct IATSC_STT_Vtbl { pub GetTableDescriptorByIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwindex: u32, ppdescriptor: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetTableDescriptorByTag: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IATSC_VCT(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IATSC_VCT, IATSC_VCT_Vtbl, 0x26879a18_32f9_46c6_91f0_fb6479270e8c); +::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 @@ -959,13 +896,6 @@ impl IATSC_VCT { (::windows_core::Interface::vtable(self).GetTableDescriptorByTag)(::windows_core::Interface::as_raw(self), btag, pdwcookie, ::core::mem::transmute(ppdescriptor)).ok() } } -::windows_core::imp::interface_hierarchy!(IATSC_VCT, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IATSC_VCT { - type Vtable = IATSC_VCT_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IATSC_VCT { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x26879a18_32f9_46c6_91f0_fb6479270e8c); -} #[repr(C)] #[doc(hidden)] pub struct IATSC_VCT_Vtbl { @@ -997,11 +927,15 @@ pub struct IATSC_VCT_Vtbl { pub GetTableDescriptorByIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwindex: u32, ppdescriptor: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetTableDescriptorByTag: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAnalogAudioComponentType(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IAnalogAudioComponentType, + IAnalogAudioComponentType_Vtbl, + 0x2cfeb2a8_1787_4a24_a941_c6eaec39c842 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IAnalogAudioComponentType, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IComponentType); #[cfg(feature = "Win32_System_Com")] impl IAnalogAudioComponentType { pub unsafe fn Category(&self) -> ::windows_core::Result { @@ -1088,16 +1022,6 @@ impl IAnalogAudioComponentType { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IAnalogAudioComponentType, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IComponentType); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IAnalogAudioComponentType { - type Vtable = IAnalogAudioComponentType_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IAnalogAudioComponentType { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2cfeb2a8_1787_4a24_a941_c6eaec39c842); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IAnalogAudioComponentType_Vtbl { @@ -1105,11 +1029,15 @@ pub struct IAnalogAudioComponentType_Vtbl { pub AnalogAudioMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mode: *mut super::TVAudioMode) -> ::windows_core::HRESULT, pub SetAnalogAudioMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mode: super::TVAudioMode) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAnalogLocator(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IAnalogLocator, + IAnalogLocator_Vtbl, + 0x34d1f26b_e339_430d_abce_738cb48984dc +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IAnalogLocator, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ILocator); #[cfg(feature = "Win32_System_Com")] impl IAnalogLocator { pub unsafe fn CarrierFrequency(&self) -> ::windows_core::Result { @@ -1176,16 +1104,6 @@ impl IAnalogLocator { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IAnalogLocator, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ILocator); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IAnalogLocator { - type Vtable = IAnalogLocator_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IAnalogLocator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x34d1f26b_e339_430d_abce_738cb48984dc); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IAnalogLocator_Vtbl { @@ -1193,11 +1111,15 @@ pub struct IAnalogLocator_Vtbl { pub VideoStandard: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, avs: *mut super::AnalogVideoStandard) -> ::windows_core::HRESULT, pub SetVideoStandard: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, avs: super::AnalogVideoStandard) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAnalogRadioTuningSpace(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IAnalogRadioTuningSpace, + IAnalogRadioTuningSpace_Vtbl, + 0x2a6e293b_2595_11d3_b64c_00c04f79498e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IAnalogRadioTuningSpace, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ITuningSpace); #[cfg(feature = "Win32_System_Com")] impl IAnalogRadioTuningSpace { pub unsafe fn UniqueName(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -1326,16 +1248,6 @@ impl IAnalogRadioTuningSpace { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IAnalogRadioTuningSpace, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ITuningSpace); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IAnalogRadioTuningSpace { - type Vtable = IAnalogRadioTuningSpace_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IAnalogRadioTuningSpace { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2a6e293b_2595_11d3_b64c_00c04f79498e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IAnalogRadioTuningSpace_Vtbl { @@ -1347,11 +1259,15 @@ pub struct IAnalogRadioTuningSpace_Vtbl { pub Step: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, stepval: *mut i32) -> ::windows_core::HRESULT, pub SetStep: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newstepval: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAnalogRadioTuningSpace2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IAnalogRadioTuningSpace2, + IAnalogRadioTuningSpace2_Vtbl, + 0x39dd45da_2da8_46ba_8a8a_87e2b73d983a +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IAnalogRadioTuningSpace2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ITuningSpace, IAnalogRadioTuningSpace); #[cfg(feature = "Win32_System_Com")] impl IAnalogRadioTuningSpace2 { pub unsafe fn UniqueName(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -1487,16 +1403,6 @@ impl IAnalogRadioTuningSpace2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IAnalogRadioTuningSpace2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ITuningSpace, IAnalogRadioTuningSpace); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IAnalogRadioTuningSpace2 { - type Vtable = IAnalogRadioTuningSpace2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IAnalogRadioTuningSpace2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x39dd45da_2da8_46ba_8a8a_87e2b73d983a); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IAnalogRadioTuningSpace2_Vtbl { @@ -1504,11 +1410,15 @@ pub struct IAnalogRadioTuningSpace2_Vtbl { pub CountryCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, countrycodeval: *mut i32) -> ::windows_core::HRESULT, pub SetCountryCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newcountrycodeval: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAnalogTVTuningSpace(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IAnalogTVTuningSpace, + IAnalogTVTuningSpace_Vtbl, + 0x2a6e293c_2595_11d3_b64c_00c04f79498e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IAnalogTVTuningSpace, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ITuningSpace); #[cfg(feature = "Win32_System_Com")] impl IAnalogTVTuningSpace { pub unsafe fn UniqueName(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -1644,16 +1554,6 @@ impl IAnalogTVTuningSpace { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IAnalogTVTuningSpace, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ITuningSpace); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IAnalogTVTuningSpace { - type Vtable = IAnalogTVTuningSpace_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IAnalogTVTuningSpace { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2a6e293c_2595_11d3_b64c_00c04f79498e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IAnalogTVTuningSpace_Vtbl { @@ -1667,9 +1567,8 @@ pub struct IAnalogTVTuningSpace_Vtbl { pub CountryCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, countrycodeval: *mut i32) -> ::windows_core::HRESULT, pub SetCountryCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newcountrycodeval: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAtscContentAdvisoryDescriptor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAtscContentAdvisoryDescriptor, IAtscContentAdvisoryDescriptor_Vtbl, 0xff76e60c_0283_43ea_ba32_b422238547ee); +::windows_core::imp::interface_hierarchy!(IAtscContentAdvisoryDescriptor, ::windows_core::IUnknown); impl IAtscContentAdvisoryDescriptor { pub unsafe fn GetTag(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1703,13 +1602,6 @@ impl IAtscContentAdvisoryDescriptor { (::windows_core::Interface::vtable(self).GetRecordRatingDescriptionText)(::windows_core::Interface::as_raw(self), bindex, pblength, pptext).ok() } } -::windows_core::imp::interface_hierarchy!(IAtscContentAdvisoryDescriptor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAtscContentAdvisoryDescriptor { - type Vtable = IAtscContentAdvisoryDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAtscContentAdvisoryDescriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xff76e60c_0283_43ea_ba32_b422238547ee); -} #[repr(C)] #[doc(hidden)] pub struct IAtscContentAdvisoryDescriptor_Vtbl { @@ -1723,9 +1615,8 @@ pub struct IAtscContentAdvisoryDescriptor_Vtbl { pub GetRecordRatingValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bindexouter: u8, bindexinner: u8, pbval: *mut u8) -> ::windows_core::HRESULT, pub GetRecordRatingDescriptionText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bindex: u8, pblength: *mut u8, pptext: *mut *mut u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAtscPsipParser(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAtscPsipParser, IAtscPsipParser_Vtbl, 0xb2c98995_5eb2_4fb1_b406_f3e8e2026a9a); +::windows_core::imp::interface_hierarchy!(IAtscPsipParser, ::windows_core::IUnknown); impl IAtscPsipParser { pub unsafe fn Initialize(&self, punkmpeg2data: P0) -> ::windows_core::Result<()> where @@ -1777,13 +1668,6 @@ impl IAtscPsipParser { (::windows_core::Interface::vtable(self).GetEAS)(::windows_core::Interface::as_raw(self), pid, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAtscPsipParser, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAtscPsipParser { - type Vtable = IAtscPsipParser_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAtscPsipParser { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb2c98995_5eb2_4fb1_b406_f3e8e2026a9a); -} #[repr(C)] #[doc(hidden)] pub struct IAtscPsipParser_Vtbl { @@ -1800,9 +1684,8 @@ pub struct IAtscPsipParser_Vtbl { pub GetSTT: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppstt: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetEAS: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pid: u16, ppeas: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAttributeGet(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAttributeGet, IAttributeGet_Vtbl, 0x52dbd1ec_e48f_4528_9232_f442a68f0ae1); +::windows_core::imp::interface_hierarchy!(IAttributeGet, ::windows_core::IUnknown); impl IAttributeGet { pub unsafe fn GetCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1815,13 +1698,6 @@ impl IAttributeGet { (::windows_core::Interface::vtable(self).GetAttrib)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(guidattribute), pbattribute, pdwattributelength).ok() } } -::windows_core::imp::interface_hierarchy!(IAttributeGet, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAttributeGet { - type Vtable = IAttributeGet_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAttributeGet { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x52dbd1ec_e48f_4528_9232_f442a68f0ae1); -} #[repr(C)] #[doc(hidden)] pub struct IAttributeGet_Vtbl { @@ -1830,32 +1706,28 @@ pub struct IAttributeGet_Vtbl { pub GetAttribIndexed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lindex: i32, pguidattribute: *mut ::windows_core::GUID, pbattribute: *mut u8, pdwattributelength: *mut u32) -> ::windows_core::HRESULT, pub GetAttrib: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guidattribute: ::windows_core::GUID, pbattribute: *mut u8, pdwattributelength: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAttributeSet(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAttributeSet, IAttributeSet_Vtbl, 0x583ec3cc_4960_4857_982b_41a33ea0a006); +::windows_core::imp::interface_hierarchy!(IAttributeSet, ::windows_core::IUnknown); impl IAttributeSet { pub unsafe fn SetAttrib(&self, guidattribute: ::windows_core::GUID, pbattribute: *const u8, dwattributelength: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetAttrib)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(guidattribute), pbattribute, dwattributelength).ok() } } -::windows_core::imp::interface_hierarchy!(IAttributeSet, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAttributeSet { - type Vtable = IAttributeSet_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAttributeSet { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x583ec3cc_4960_4857_982b_41a33ea0a006); -} #[repr(C)] #[doc(hidden)] pub struct IAttributeSet_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub SetAttrib: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guidattribute: ::windows_core::GUID, pbattribute: *const u8, dwattributelength: u32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAuxInTuningSpace(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IAuxInTuningSpace, + IAuxInTuningSpace_Vtbl, + 0xe48244b8_7e17_4f76_a763_5090ff1e2f30 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IAuxInTuningSpace, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ITuningSpace); #[cfg(feature = "Win32_System_Com")] impl IAuxInTuningSpace { pub unsafe fn UniqueName(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -1963,26 +1835,20 @@ impl IAuxInTuningSpace { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IAuxInTuningSpace, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ITuningSpace); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IAuxInTuningSpace { - type Vtable = IAuxInTuningSpace_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IAuxInTuningSpace { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe48244b8_7e17_4f76_a763_5090ff1e2f30); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IAuxInTuningSpace_Vtbl { pub base__: ITuningSpace_Vtbl, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAuxInTuningSpace2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IAuxInTuningSpace2, + IAuxInTuningSpace2_Vtbl, + 0xb10931ed_8bfe_4ab0_9dce_e469c29a9729 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IAuxInTuningSpace2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ITuningSpace, IAuxInTuningSpace); #[cfg(feature = "Win32_System_Com")] impl IAuxInTuningSpace2 { pub unsafe fn UniqueName(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -2097,16 +1963,6 @@ impl IAuxInTuningSpace2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IAuxInTuningSpace2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ITuningSpace, IAuxInTuningSpace); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IAuxInTuningSpace2 { - type Vtable = IAuxInTuningSpace2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IAuxInTuningSpace2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb10931ed_8bfe_4ab0_9dce_e469c29a9729); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IAuxInTuningSpace2_Vtbl { @@ -2114,9 +1970,8 @@ pub struct IAuxInTuningSpace2_Vtbl { pub CountryCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, countrycodeval: *mut i32) -> ::windows_core::HRESULT, pub SetCountryCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newcountrycodeval: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBDAComparable(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBDAComparable, IBDAComparable_Vtbl, 0xb34505e0_2f0e_497b_80bc_d43f3b24ed7f); +::windows_core::imp::interface_hierarchy!(IBDAComparable, ::windows_core::IUnknown); impl IBDAComparable { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -2153,13 +2008,6 @@ impl IBDAComparable { (::windows_core::Interface::vtable(self).HashEquivalentIncremental)(::windows_core::Interface::as_raw(self), partialresult, dwflags, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IBDAComparable, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBDAComparable { - type Vtable = IBDAComparable_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBDAComparable { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb34505e0_2f0e_497b_80bc_d43f3b24ed7f); -} #[repr(C)] #[doc(hidden)] pub struct IBDAComparable_Vtbl { @@ -2177,9 +2025,8 @@ pub struct IBDAComparable_Vtbl { pub HashEquivalent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwflags: u32, result: *mut i64) -> ::windows_core::HRESULT, pub HashEquivalentIncremental: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, partialresult: i64, dwflags: u32, result: *mut i64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBDACreateTuneRequestEx(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBDACreateTuneRequestEx, IBDACreateTuneRequestEx_Vtbl, 0xc0a4a1d4_2b3c_491a_ba22_499fbadd4d12); +::windows_core::imp::interface_hierarchy!(IBDACreateTuneRequestEx, ::windows_core::IUnknown); impl IBDACreateTuneRequestEx { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -2188,13 +2035,6 @@ impl IBDACreateTuneRequestEx { (::windows_core::Interface::vtable(self).CreateTuneRequestEx)(::windows_core::Interface::as_raw(self), tunerequestiid, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IBDACreateTuneRequestEx, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBDACreateTuneRequestEx { - type Vtable = IBDACreateTuneRequestEx_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBDACreateTuneRequestEx { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc0a4a1d4_2b3c_491a_ba22_499fbadd4d12); -} #[repr(C)] #[doc(hidden)] pub struct IBDACreateTuneRequestEx_Vtbl { @@ -2204,9 +2044,8 @@ pub struct IBDACreateTuneRequestEx_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] CreateTuneRequestEx: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBDA_TIF_REGISTRATION(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBDA_TIF_REGISTRATION, IBDA_TIF_REGISTRATION_Vtbl, 0xdfef4a68_ee61_415f_9ccb_cd95f2f98a3a); +::windows_core::imp::interface_hierarchy!(IBDA_TIF_REGISTRATION, ::windows_core::IUnknown); impl IBDA_TIF_REGISTRATION { pub unsafe fn RegisterTIFEx(&self, ptifinputpin: P0, ppvregistrationcontext: *mut u32, ppmpeg2datacontrol: *mut ::core::option::Option<::windows_core::IUnknown>) -> ::windows_core::Result<()> where @@ -2218,13 +2057,6 @@ impl IBDA_TIF_REGISTRATION { (::windows_core::Interface::vtable(self).UnregisterTIF)(::windows_core::Interface::as_raw(self), pvregistrationcontext).ok() } } -::windows_core::imp::interface_hierarchy!(IBDA_TIF_REGISTRATION, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBDA_TIF_REGISTRATION { - type Vtable = IBDA_TIF_REGISTRATION_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBDA_TIF_REGISTRATION { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdfef4a68_ee61_415f_9ccb_cd95f2f98a3a); -} #[repr(C)] #[doc(hidden)] pub struct IBDA_TIF_REGISTRATION_Vtbl { @@ -2232,9 +2064,8 @@ pub struct IBDA_TIF_REGISTRATION_Vtbl { pub RegisterTIFEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptifinputpin: *mut ::core::ffi::c_void, ppvregistrationcontext: *mut u32, ppmpeg2datacontrol: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub UnregisterTIF: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvregistrationcontext: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICAT(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICAT, ICAT_Vtbl, 0x7c6995fb_2a31_4bd7_953e_b1ad7fb7d31c); +::windows_core::imp::interface_hierarchy!(ICAT, ::windows_core::IUnknown); impl ICAT { pub unsafe fn Initialize(&self, psectionlist: P0, pmpegdata: P1) -> ::windows_core::Result<()> where @@ -2278,13 +2109,6 @@ impl ICAT { (::windows_core::Interface::vtable(self).ConvertNextToCurrent)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ICAT, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICAT { - type Vtable = ICAT_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICAT { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7c6995fb_2a31_4bd7_953e_b1ad7fb7d31c); -} #[repr(C)] #[doc(hidden)] pub struct ICAT_Vtbl { @@ -2299,9 +2123,8 @@ pub struct ICAT_Vtbl { pub RegisterForWhenCurrent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hnexttableiscurrent: super::super::super::Foundation::HANDLE) -> ::windows_core::HRESULT, pub ConvertNextToCurrent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICaptionServiceDescriptor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICaptionServiceDescriptor, ICaptionServiceDescriptor_Vtbl, 0x40834007_6834_46f0_bd45_d5f6a6be258c); +::windows_core::imp::interface_hierarchy!(ICaptionServiceDescriptor, ::windows_core::IUnknown); impl ICaptionServiceDescriptor { pub unsafe fn GetNumberOfServices(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2327,13 +2150,6 @@ impl ICaptionServiceDescriptor { (::windows_core::Interface::vtable(self).GetWideAspectRatio)(::windows_core::Interface::as_raw(self), bindex, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ICaptionServiceDescriptor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICaptionServiceDescriptor { - type Vtable = ICaptionServiceDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICaptionServiceDescriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x40834007_6834_46f0_bd45_d5f6a6be258c); -} #[repr(C)] #[doc(hidden)] pub struct ICaptionServiceDescriptor_Vtbl { @@ -2345,11 +2161,15 @@ pub struct ICaptionServiceDescriptor_Vtbl { pub GetEasyReader: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bindex: u8, pbval: *mut u8) -> ::windows_core::HRESULT, pub GetWideAspectRatio: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bindex: u8, pbval: *mut u8) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IChannelIDTuneRequest(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IChannelIDTuneRequest, + IChannelIDTuneRequest_Vtbl, + 0x156eff60_86f4_4e28_89fc_109799fd57ee +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IChannelIDTuneRequest, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ITuneRequest); #[cfg(feature = "Win32_System_Com")] impl IChannelIDTuneRequest { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2396,16 +2216,6 @@ impl IChannelIDTuneRequest { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IChannelIDTuneRequest, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ITuneRequest); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IChannelIDTuneRequest { - type Vtable = IChannelIDTuneRequest_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IChannelIDTuneRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x156eff60_86f4_4e28_89fc_109799fd57ee); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IChannelIDTuneRequest_Vtbl { @@ -2413,11 +2223,15 @@ pub struct IChannelIDTuneRequest_Vtbl { pub ChannelID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, channelid: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SetChannelID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, channelid: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IChannelTuneRequest(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IChannelTuneRequest, + IChannelTuneRequest_Vtbl, + 0x0369b4e0_45b6_11d3_b650_00c04f79498e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IChannelTuneRequest, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ITuneRequest); #[cfg(feature = "Win32_System_Com")] impl IChannelTuneRequest { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2461,16 +2275,6 @@ impl IChannelTuneRequest { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IChannelTuneRequest, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ITuneRequest); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IChannelTuneRequest { - type Vtable = IChannelTuneRequest_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IChannelTuneRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0369b4e0_45b6_11d3_b650_00c04f79498e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IChannelTuneRequest_Vtbl { @@ -2478,11 +2282,15 @@ pub struct IChannelTuneRequest_Vtbl { pub Channel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, channel: *mut i32) -> ::windows_core::HRESULT, pub SetChannel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, channel: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IComponent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IComponent, + IComponent_Vtbl, + 0x1a5576fc_0e19_11d3_9d8e_00c04f72d980 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IComponent, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IComponent { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2531,16 +2339,6 @@ impl IComponent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IComponent, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IComponent { - type Vtable = IComponent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IComponent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1a5576fc_0e19_11d3_9d8e_00c04f72d980); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IComponent_Vtbl { @@ -2564,11 +2362,15 @@ pub struct IComponent_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Clone: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IComponentType(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IComponentType, + IComponentType_Vtbl, + 0x6a340dc0_0311_11d3_9d8e_00c04f72d980 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IComponentType, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IComponentType { pub unsafe fn Category(&self) -> ::windows_core::Result { @@ -2648,16 +2450,6 @@ impl IComponentType { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IComponentType, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IComponentType { - type Vtable = IComponentType_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IComponentType { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6a340dc0_0311_11d3_9d8e_00c04f72d980); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IComponentType_Vtbl { @@ -2689,11 +2481,15 @@ pub struct IComponentType_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Clone: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IComponentTypes(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IComponentTypes, + IComponentTypes_Vtbl, + 0x0dc13d4a_0313_11d3_9d8e_00c04f72d980 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IComponentTypes, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IComponentTypes { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -2746,16 +2542,6 @@ impl IComponentTypes { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IComponentTypes, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IComponentTypes { - type Vtable = IComponentTypes_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IComponentTypes { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0dc13d4a_0313_11d3_9d8e_00c04f72d980); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IComponentTypes_Vtbl { @@ -2787,11 +2573,15 @@ pub struct IComponentTypes_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Clone: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IComponents(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IComponents, + IComponents_Vtbl, + 0x39a48091_fffe_4182_a161_3ff802640e26 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IComponents, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IComponents { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -2844,16 +2634,6 @@ impl IComponents { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IComponents, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IComponents { - type Vtable = IComponents_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IComponents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x39a48091_fffe_4182_a161_3ff802640e26); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IComponents_Vtbl { @@ -2885,11 +2665,15 @@ pub struct IComponents_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] put_Item: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IComponentsOld(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IComponentsOld, + IComponentsOld_Vtbl, + 0xfcd01846_0e19_11d3_9d8e_00c04f72d980 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IComponentsOld, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IComponentsOld { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -2934,16 +2718,6 @@ impl IComponentsOld { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IComponentsOld, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IComponentsOld { - type Vtable = IComponentsOld_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IComponentsOld { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfcd01846_0e19_11d3_9d8e_00c04f72d980); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IComponentsOld_Vtbl { @@ -2971,9 +2745,8 @@ pub struct IComponentsOld_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Clone: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICreatePropBagOnRegKey(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICreatePropBagOnRegKey, ICreatePropBagOnRegKey_Vtbl, 0x8a674b48_1f63_11d3_b64c_00c04f79498e); +::windows_core::imp::interface_hierarchy!(ICreatePropBagOnRegKey, ::windows_core::IUnknown); impl ICreatePropBagOnRegKey { #[doc = "Required features: `\"Win32_System_Registry\"`"] #[cfg(feature = "Win32_System_Registry")] @@ -2985,13 +2758,6 @@ impl ICreatePropBagOnRegKey { (::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::imp::interface_hierarchy!(ICreatePropBagOnRegKey, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICreatePropBagOnRegKey { - type Vtable = ICreatePropBagOnRegKey_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICreatePropBagOnRegKey { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8a674b48_1f63_11d3_b64c_00c04f79498e); -} #[repr(C)] #[doc(hidden)] pub struct ICreatePropBagOnRegKey_Vtbl { @@ -3001,9 +2767,8 @@ pub struct ICreatePropBagOnRegKey_Vtbl { #[cfg(not(feature = "Win32_System_Registry"))] Create: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDTFilter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDTFilter, IDTFilter_Vtbl, 0xc4c4c4b2_0049_4e2b_98fb_9537f6ce516d); +::windows_core::imp::interface_hierarchy!(IDTFilter, ::windows_core::IUnknown); impl IDTFilter { pub unsafe fn EvalRatObjOK(&self) -> ::windows_core::Result<::windows_core::HRESULT> { let mut result__ = ::std::mem::zeroed(); @@ -3037,13 +2802,6 @@ impl IDTFilter { (::windows_core::Interface::vtable(self).SetBlockUnRatedDelay)(::windows_core::Interface::as_raw(self), msecsdelaybeforeblock).ok() } } -::windows_core::imp::interface_hierarchy!(IDTFilter, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDTFilter { - type Vtable = IDTFilter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDTFilter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc4c4c4b2_0049_4e2b_98fb_9537f6ce516d); -} #[repr(C)] #[doc(hidden)] pub struct IDTFilter_Vtbl { @@ -3057,9 +2815,8 @@ pub struct IDTFilter_Vtbl { pub BlockUnRatedDelay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pmsecsdelaybeforeblock: *mut i32) -> ::windows_core::HRESULT, pub SetBlockUnRatedDelay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, msecsdelaybeforeblock: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDTFilter2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDTFilter2, IDTFilter2_Vtbl, 0xc4c4c4b4_0049_4e2b_98fb_9537f6ce516d); +::windows_core::imp::interface_hierarchy!(IDTFilter2, ::windows_core::IUnknown, IDTFilter); impl IDTFilter2 { pub unsafe fn EvalRatObjOK(&self) -> ::windows_core::Result<::windows_core::HRESULT> { let mut result__ = ::std::mem::zeroed(); @@ -3104,13 +2861,6 @@ impl IDTFilter2 { (::windows_core::Interface::vtable(self).GetLastErrorCode)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IDTFilter2, ::windows_core::IUnknown, IDTFilter); -unsafe impl ::windows_core::Interface for IDTFilter2 { - type Vtable = IDTFilter2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDTFilter2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc4c4c4b4_0049_4e2b_98fb_9537f6ce516d); -} #[repr(C)] #[doc(hidden)] pub struct IDTFilter2_Vtbl { @@ -3119,9 +2869,8 @@ pub struct IDTFilter2_Vtbl { pub GetCurrLicenseExpDate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prottype: *const ProtType, lpdatetime: *mut i32) -> ::windows_core::HRESULT, pub GetLastErrorCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDTFilter3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDTFilter3, IDTFilter3_Vtbl, 0x513998cc_e929_4cdf_9fbd_bad1e0314866); +::windows_core::imp::interface_hierarchy!(IDTFilter3, ::windows_core::IUnknown, IDTFilter, IDTFilter2); impl IDTFilter3 { pub unsafe fn EvalRatObjOK(&self) -> ::windows_core::Result<::windows_core::HRESULT> { let mut result__ = ::std::mem::zeroed(); @@ -3180,13 +2929,6 @@ impl IDTFilter3 { (::windows_core::Interface::vtable(self).SetRights)(::windows_core::Interface::as_raw(self), bstrrights.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IDTFilter3, ::windows_core::IUnknown, IDTFilter, IDTFilter2); -unsafe impl ::windows_core::Interface for IDTFilter3 { - type Vtable = IDTFilter3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDTFilter3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x513998cc_e929_4cdf_9fbd_bad1e0314866); -} #[repr(C)] #[doc(hidden)] pub struct IDTFilter3_Vtbl { @@ -3195,77 +2937,59 @@ pub struct IDTFilter3_Vtbl { pub LicenseHasExpirationDate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pflicensehasexpirationdate: *mut super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub SetRights: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrrights: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDTFilterConfig(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDTFilterConfig, IDTFilterConfig_Vtbl, 0xc4c4c4d2_0049_4e2b_98fb_9537f6ce516d); +::windows_core::imp::interface_hierarchy!(IDTFilterConfig, ::windows_core::IUnknown); impl IDTFilterConfig { pub unsafe fn GetSecureChannelObject(&self) -> ::windows_core::Result<::windows_core::IUnknown> { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetSecureChannelObject)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDTFilterConfig, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDTFilterConfig { - type Vtable = IDTFilterConfig_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDTFilterConfig { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc4c4c4d2_0049_4e2b_98fb_9537f6ce516d); -} #[repr(C)] #[doc(hidden)] pub struct IDTFilterConfig_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetSecureChannelObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppunkdrmsecurechannel: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] -#[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDTFilterEvents(::windows_core::IUnknown); #[cfg(feature = "Win32_System_Com")] -impl IDTFilterEvents {} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IDTFilterEvents, + IDTFilterEvents_Vtbl, + 0xc4c4c4c2_0049_4e2b_98fb_9537f6ce516d +); #[cfg(feature = "Win32_System_Com")] ::windows_core::imp::interface_hierarchy!(IDTFilterEvents, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IDTFilterEvents { - type Vtable = IDTFilterEvents_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IDTFilterEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc4c4c4c2_0049_4e2b_98fb_9537f6ce516d); -} +impl IDTFilterEvents {} #[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IDTFilterEvents_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDTFilterLicenseRenewal(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDTFilterLicenseRenewal, IDTFilterLicenseRenewal_Vtbl, 0x8a78b317_e405_4a43_994a_620d8f5ce25e); +::windows_core::imp::interface_hierarchy!(IDTFilterLicenseRenewal, ::windows_core::IUnknown); impl IDTFilterLicenseRenewal { pub unsafe fn GetLicenseRenewalData(&self, ppwszfilename: *mut ::windows_core::PWSTR, ppwszexpiredkid: *mut ::windows_core::PWSTR, ppwsztunerid: *mut ::windows_core::PWSTR) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetLicenseRenewalData)(::windows_core::Interface::as_raw(self), ppwszfilename, ppwszexpiredkid, ppwsztunerid).ok() } } -::windows_core::imp::interface_hierarchy!(IDTFilterLicenseRenewal, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDTFilterLicenseRenewal { - type Vtable = IDTFilterLicenseRenewal_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDTFilterLicenseRenewal { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8a78b317_e405_4a43_994a_620d8f5ce25e); -} #[repr(C)] #[doc(hidden)] pub struct IDTFilterLicenseRenewal_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetLicenseRenewalData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppwszfilename: *mut ::windows_core::PWSTR, ppwszexpiredkid: *mut ::windows_core::PWSTR, ppwsztunerid: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDVBCLocator(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IDVBCLocator, + IDVBCLocator_Vtbl, + 0x6e42f36e_1dd2_43c4_9f78_69d25ae39034 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IDVBCLocator, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ILocator, IDigitalLocator); #[cfg(feature = "Win32_System_Com")] impl IDVBCLocator { pub unsafe fn CarrierFrequency(&self) -> ::windows_core::Result { @@ -3325,26 +3049,20 @@ impl IDVBCLocator { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IDVBCLocator, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ILocator, IDigitalLocator); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IDVBCLocator { - type Vtable = IDVBCLocator_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IDVBCLocator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6e42f36e_1dd2_43c4_9f78_69d25ae39034); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IDVBCLocator_Vtbl { pub base__: IDigitalLocator_Vtbl, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDVBSLocator(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IDVBSLocator, + IDVBSLocator_Vtbl, + 0x3d7c353c_0d04_45f1_a742_f97cc1188dc8 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IDVBSLocator, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ILocator, IDigitalLocator); #[cfg(feature = "Win32_System_Com")] impl IDVBSLocator { pub unsafe fn CarrierFrequency(&self) -> ::windows_core::Result { @@ -3442,16 +3160,6 @@ impl IDVBSLocator { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IDVBSLocator, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ILocator, IDigitalLocator); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IDVBSLocator { - type Vtable = IDVBSLocator_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IDVBSLocator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3d7c353c_0d04_45f1_a742_f97cc1188dc8); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IDVBSLocator_Vtbl { @@ -3467,11 +3175,15 @@ pub struct IDVBSLocator_Vtbl { pub Elevation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, elevation: *mut i32) -> ::windows_core::HRESULT, pub SetElevation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, elevation: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDVBSLocator2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IDVBSLocator2, + IDVBSLocator2_Vtbl, + 0x6044634a_1733_4f99_b982_5fb12afce4f0 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IDVBSLocator2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ILocator, IDigitalLocator, IDVBSLocator); #[cfg(feature = "Win32_System_Com")] impl IDVBSLocator2 { pub unsafe fn CarrierFrequency(&self) -> ::windows_core::Result { @@ -3618,16 +3330,6 @@ impl IDVBSLocator2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IDVBSLocator2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ILocator, IDigitalLocator, IDVBSLocator); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IDVBSLocator2 { - type Vtable = IDVBSLocator2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IDVBSLocator2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6044634a_1733_4f99_b982_5fb12afce4f0); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IDVBSLocator2_Vtbl { @@ -3647,11 +3349,15 @@ pub struct IDVBSLocator2_Vtbl { pub SignalPilot: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pilotval: *mut super::Pilot) -> ::windows_core::HRESULT, pub SetSignalPilot: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pilotval: super::Pilot) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDVBSTuningSpace(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IDVBSTuningSpace, + IDVBSTuningSpace_Vtbl, + 0xcdf7be60_d954_42fd_a972_78971958e470 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IDVBSTuningSpace, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ITuningSpace, IDVBTuningSpace, IDVBTuningSpace2); #[cfg(feature = "Win32_System_Com")] impl IDVBSTuningSpace { pub unsafe fn UniqueName(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -3811,16 +3517,6 @@ impl IDVBSTuningSpace { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IDVBSTuningSpace, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ITuningSpace, IDVBTuningSpace, IDVBTuningSpace2); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IDVBSTuningSpace { - type Vtable = IDVBSTuningSpace_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IDVBSTuningSpace { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcdf7be60_d954_42fd_a972_78971958e470); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IDVBSTuningSpace_Vtbl { @@ -3836,11 +3532,15 @@ pub struct IDVBSTuningSpace_Vtbl { pub SpectralInversion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, spectralinversionval: *mut super::SpectralInversion) -> ::windows_core::HRESULT, pub SetSpectralInversion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, spectralinversionval: super::SpectralInversion) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDVBTLocator(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IDVBTLocator, + IDVBTLocator_Vtbl, + 0x8664da16_dda2_42ac_926a_c18f9127c302 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IDVBTLocator, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ILocator, IDigitalLocator); #[cfg(feature = "Win32_System_Com")] impl IDVBTLocator { pub unsafe fn CarrierFrequency(&self) -> ::windows_core::Result { @@ -3952,16 +3652,6 @@ impl IDVBTLocator { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IDVBTLocator, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ILocator, IDigitalLocator); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IDVBTLocator { - type Vtable = IDVBTLocator_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IDVBTLocator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8664da16_dda2_42ac_926a_c18f9127c302); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IDVBTLocator_Vtbl { @@ -3981,11 +3671,15 @@ pub struct IDVBTLocator_Vtbl { pub OtherFrequencyInUse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, otherfrequencyinuseval: *mut super::super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub SetOtherFrequencyInUse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, otherfrequencyinuseval: super::super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDVBTLocator2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IDVBTLocator2, + IDVBTLocator2_Vtbl, + 0x448a2edf_ae95_4b43_a3cc_747843c453d4 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IDVBTLocator2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ILocator, IDigitalLocator, IDVBTLocator); #[cfg(feature = "Win32_System_Com")] impl IDVBTLocator2 { pub unsafe fn CarrierFrequency(&self) -> ::windows_core::Result { @@ -4104,16 +3798,6 @@ impl IDVBTLocator2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IDVBTLocator2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ILocator, IDigitalLocator, IDVBTLocator); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IDVBTLocator2 { - type Vtable = IDVBTLocator2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IDVBTLocator2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x448a2edf_ae95_4b43_a3cc_747843c453d4); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IDVBTLocator2_Vtbl { @@ -4121,11 +3805,15 @@ pub struct IDVBTLocator2_Vtbl { pub PhysicalLayerPipeId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, physicallayerpipeidval: *mut i32) -> ::windows_core::HRESULT, pub SetPhysicalLayerPipeId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, physicallayerpipeidval: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDVBTuneRequest(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IDVBTuneRequest, + IDVBTuneRequest_Vtbl, + 0x0d6f567e_a636_42bb_83ba_ce4c1704afa2 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IDVBTuneRequest, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ITuneRequest); #[cfg(feature = "Win32_System_Com")] impl IDVBTuneRequest { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -4183,16 +3871,6 @@ impl IDVBTuneRequest { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IDVBTuneRequest, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ITuneRequest); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IDVBTuneRequest { - type Vtable = IDVBTuneRequest_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IDVBTuneRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0d6f567e_a636_42bb_83ba_ce4c1704afa2); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IDVBTuneRequest_Vtbl { @@ -4204,11 +3882,15 @@ pub struct IDVBTuneRequest_Vtbl { pub SID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sid: *mut i32) -> ::windows_core::HRESULT, pub SetSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sid: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDVBTuningSpace(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IDVBTuningSpace, + IDVBTuningSpace_Vtbl, + 0xada0b268_3b19_4e5b_acc4_49f852be13ba +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IDVBTuningSpace, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ITuningSpace); #[cfg(feature = "Win32_System_Com")] impl IDVBTuningSpace { pub unsafe fn UniqueName(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -4323,16 +4005,6 @@ impl IDVBTuningSpace { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IDVBTuningSpace, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ITuningSpace); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IDVBTuningSpace { - type Vtable = IDVBTuningSpace_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IDVBTuningSpace { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xada0b268_3b19_4e5b_acc4_49f852be13ba); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IDVBTuningSpace_Vtbl { @@ -4340,11 +4012,15 @@ pub struct IDVBTuningSpace_Vtbl { pub SystemType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, systype: *mut super::DVBSystemType) -> ::windows_core::HRESULT, pub SetSystemType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, systype: super::DVBSystemType) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDVBTuningSpace2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IDVBTuningSpace2, + IDVBTuningSpace2_Vtbl, + 0x843188b4_ce62_43db_966b_8145a094e040 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IDVBTuningSpace2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ITuningSpace, IDVBTuningSpace); #[cfg(feature = "Win32_System_Com")] impl IDVBTuningSpace2 { pub unsafe fn UniqueName(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -4466,16 +4142,6 @@ impl IDVBTuningSpace2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IDVBTuningSpace2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ITuningSpace, IDVBTuningSpace); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IDVBTuningSpace2 { - type Vtable = IDVBTuningSpace2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IDVBTuningSpace2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x843188b4_ce62_43db_966b_8145a094e040); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IDVBTuningSpace2_Vtbl { @@ -4483,9 +4149,8 @@ pub struct IDVBTuningSpace2_Vtbl { pub NetworkID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, networkid: *mut i32) -> ::windows_core::HRESULT, pub SetNetworkID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, networkid: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDVB_BAT(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDVB_BAT, IDVB_BAT_Vtbl, 0xece9bb0c_43b6_4558_a0ec_1812c34cd6ca); +::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 @@ -4555,13 +4220,6 @@ impl IDVB_BAT { (::windows_core::Interface::vtable(self).ConvertNextToCurrent)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IDVB_BAT, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDVB_BAT { - type Vtable = IDVB_BAT_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDVB_BAT { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xece9bb0c_43b6_4558_a0ec_1812c34cd6ca); -} #[repr(C)] #[doc(hidden)] pub struct IDVB_BAT_Vtbl { @@ -4583,9 +4241,8 @@ pub struct IDVB_BAT_Vtbl { pub RegisterForWhenCurrent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hnexttableiscurrent: super::super::super::Foundation::HANDLE) -> ::windows_core::HRESULT, pub ConvertNextToCurrent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDVB_DIT(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDVB_DIT, IDVB_DIT_Vtbl, 0x91bffdf9_9432_410f_86ef_1c228ed0ad70); +::windows_core::imp::interface_hierarchy!(IDVB_DIT, ::windows_core::IUnknown); impl IDVB_DIT { pub unsafe fn Initialize(&self, psectionlist: P0) -> ::windows_core::Result<()> where @@ -4598,13 +4255,6 @@ impl IDVB_DIT { (::windows_core::Interface::vtable(self).GetTransitionFlag)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDVB_DIT, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDVB_DIT { - type Vtable = IDVB_DIT_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDVB_DIT { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x91bffdf9_9432_410f_86ef_1c228ed0ad70); -} #[repr(C)] #[doc(hidden)] pub struct IDVB_DIT_Vtbl { @@ -4612,9 +4262,8 @@ pub struct IDVB_DIT_Vtbl { pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psectionlist: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetTransitionFlag: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfval: *mut super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDVB_EIT(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDVB_EIT, IDVB_EIT_Vtbl, 0x442db029_02cb_4495_8b92_1c13375bce99); +::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 @@ -4706,13 +4355,6 @@ impl IDVB_EIT { (::windows_core::Interface::vtable(self).GetVersionHash)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDVB_EIT, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDVB_EIT { - type Vtable = IDVB_EIT_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDVB_EIT { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x442db029_02cb_4495_8b92_1c13375bce99); -} #[repr(C)] #[doc(hidden)] pub struct IDVB_EIT_Vtbl { @@ -4739,9 +4381,8 @@ pub struct IDVB_EIT_Vtbl { pub ConvertNextToCurrent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetVersionHash: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwversionhash: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDVB_EIT2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDVB_EIT2, IDVB_EIT2_Vtbl, 0x61a389e0_9b9e_4ba0_aeea_5ddd159820ea); +::windows_core::imp::interface_hierarchy!(IDVB_EIT2, ::windows_core::IUnknown, IDVB_EIT); impl IDVB_EIT2 { pub unsafe fn Initialize(&self, psectionlist: P0, pmpegdata: P1) -> ::windows_core::Result<()> where @@ -4840,13 +4481,6 @@ impl IDVB_EIT2 { (::windows_core::Interface::vtable(self).GetRecordSection)(::windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDVB_EIT2, ::windows_core::IUnknown, IDVB_EIT); -unsafe impl ::windows_core::Interface for IDVB_EIT2 { - type Vtable = IDVB_EIT2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDVB_EIT2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x61a389e0_9b9e_4ba0_aeea_5ddd159820ea); -} #[repr(C)] #[doc(hidden)] pub struct IDVB_EIT2_Vtbl { @@ -4854,9 +4488,8 @@ pub struct IDVB_EIT2_Vtbl { pub GetSegmentInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbtid: *mut u8, pbsegment: *mut u8) -> ::windows_core::HRESULT, pub GetRecordSection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwrecordindex: u32, pbval: *mut u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDVB_NIT(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDVB_NIT, IDVB_NIT_Vtbl, 0xc64935f4_29e4_4e22_911a_63f7f55cb097); +::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 @@ -4931,13 +4564,6 @@ impl IDVB_NIT { (::windows_core::Interface::vtable(self).GetVersionHash)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDVB_NIT, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDVB_NIT { - type Vtable = IDVB_NIT_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDVB_NIT { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc64935f4_29e4_4e22_911a_63f7f55cb097); -} #[repr(C)] #[doc(hidden)] pub struct IDVB_NIT_Vtbl { @@ -4960,9 +4586,8 @@ pub struct IDVB_NIT_Vtbl { pub ConvertNextToCurrent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetVersionHash: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwversionhash: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDVB_RST(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDVB_RST, IDVB_RST_Vtbl, 0xf47dcd04_1e23_4fb7_9f96_b40eead10b2b); +::windows_core::imp::interface_hierarchy!(IDVB_RST, ::windows_core::IUnknown); impl IDVB_RST { pub unsafe fn Initialize(&self, psectionlist: P0) -> ::windows_core::Result<()> where @@ -4995,13 +4620,6 @@ impl IDVB_RST { (::windows_core::Interface::vtable(self).GetRecordRunningStatus)(::windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDVB_RST, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDVB_RST { - type Vtable = IDVB_RST_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDVB_RST { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf47dcd04_1e23_4fb7_9f96_b40eead10b2b); -} #[repr(C)] #[doc(hidden)] pub struct IDVB_RST_Vtbl { @@ -5014,9 +4632,8 @@ pub struct IDVB_RST_Vtbl { pub GetRecordEventId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwrecordindex: u32, pwval: *mut u16) -> ::windows_core::HRESULT, pub GetRecordRunningStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwrecordindex: u32, pbval: *mut u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDVB_SDT(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDVB_SDT, IDVB_SDT_Vtbl, 0x02cad8d3_fe43_48e2_90bd_450ed9a8a5fd); +::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 @@ -5096,13 +4713,6 @@ impl IDVB_SDT { (::windows_core::Interface::vtable(self).GetVersionHash)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDVB_SDT, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDVB_SDT { - type Vtable = IDVB_SDT_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDVB_SDT { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x02cad8d3_fe43_48e2_90bd_450ed9a8a5fd); -} #[repr(C)] #[doc(hidden)] pub struct IDVB_SDT_Vtbl { @@ -5126,9 +4736,8 @@ pub struct IDVB_SDT_Vtbl { pub ConvertNextToCurrent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetVersionHash: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwversionhash: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDVB_SIT(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDVB_SIT, IDVB_SIT_Vtbl, 0x68cdce53_8bea_45c2_9d9d_acf575a089b5); +::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 @@ -5195,13 +4804,6 @@ impl IDVB_SIT { (::windows_core::Interface::vtable(self).ConvertNextToCurrent)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IDVB_SIT, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDVB_SIT { - type Vtable = IDVB_SIT_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDVB_SIT { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x68cdce53_8bea_45c2_9d9d_acf575a089b5); -} #[repr(C)] #[doc(hidden)] pub struct IDVB_SIT_Vtbl { @@ -5222,9 +4824,8 @@ pub struct IDVB_SIT_Vtbl { pub RegisterForWhenCurrent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hnexttableiscurrent: super::super::super::Foundation::HANDLE) -> ::windows_core::HRESULT, pub ConvertNextToCurrent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDVB_ST(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDVB_ST, IDVB_ST_Vtbl, 0x4d5b9f23_2a02_45de_bcda_5d5dbfbfbe62); +::windows_core::imp::interface_hierarchy!(IDVB_ST, ::windows_core::IUnknown); impl IDVB_ST { pub unsafe fn Initialize(&self, psectionlist: P0) -> ::windows_core::Result<()> where @@ -5241,13 +4842,6 @@ impl IDVB_ST { (::windows_core::Interface::vtable(self).GetData)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDVB_ST, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDVB_ST { - type Vtable = IDVB_ST_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDVB_ST { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4d5b9f23_2a02_45de_bcda_5d5dbfbfbe62); -} #[repr(C)] #[doc(hidden)] pub struct IDVB_ST_Vtbl { @@ -5256,9 +4850,8 @@ pub struct IDVB_ST_Vtbl { pub GetDataLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwval: *mut u16) -> ::windows_core::HRESULT, pub GetData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppdata: *mut *mut u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDVB_TDT(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDVB_TDT, IDVB_TDT_Vtbl, 0x0780dc7d_d55c_4aef_97e6_6b75906e2796); +::windows_core::imp::interface_hierarchy!(IDVB_TDT, ::windows_core::IUnknown); impl IDVB_TDT { pub unsafe fn Initialize(&self, psectionlist: P0) -> ::windows_core::Result<()> where @@ -5271,13 +4864,6 @@ impl IDVB_TDT { (::windows_core::Interface::vtable(self).GetUTCTime)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDVB_TDT, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDVB_TDT { - type Vtable = IDVB_TDT_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDVB_TDT { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0780dc7d_d55c_4aef_97e6_6b75906e2796); -} #[repr(C)] #[doc(hidden)] pub struct IDVB_TDT_Vtbl { @@ -5285,9 +4871,8 @@ pub struct IDVB_TDT_Vtbl { pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psectionlist: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetUTCTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pmdtval: *mut MPEG_DATE_AND_TIME) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDVB_TOT(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDVB_TOT, IDVB_TOT_Vtbl, 0x83295d6a_faba_4ee1_9b15_8067696910ae); +::windows_core::imp::interface_hierarchy!(IDVB_TOT, ::windows_core::IUnknown); impl IDVB_TOT { pub unsafe fn Initialize(&self, psectionlist: P0) -> ::windows_core::Result<()> where @@ -5311,13 +4896,6 @@ impl IDVB_TOT { (::windows_core::Interface::vtable(self).GetTableDescriptorByTag)(::windows_core::Interface::as_raw(self), btag, ::core::mem::transmute(pdwcookie.unwrap_or(::std::ptr::null_mut())), ::core::mem::transmute(ppdescriptor)).ok() } } -::windows_core::imp::interface_hierarchy!(IDVB_TOT, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDVB_TOT { - type Vtable = IDVB_TOT_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDVB_TOT { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x83295d6a_faba_4ee1_9b15_8067696910ae); -} #[repr(C)] #[doc(hidden)] pub struct IDVB_TOT_Vtbl { @@ -5328,11 +4906,15 @@ pub struct IDVB_TOT_Vtbl { pub GetTableDescriptorByIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwindex: u32, ppdescriptor: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetTableDescriptorByTag: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDigitalCableLocator(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IDigitalCableLocator, + IDigitalCableLocator_Vtbl, + 0x48f66a11_171a_419a_9525_beeecd51584c +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IDigitalCableLocator, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ILocator, IDigitalLocator, IATSCLocator, IATSCLocator2); #[cfg(feature = "Win32_System_Com")] impl IDigitalCableLocator { pub unsafe fn CarrierFrequency(&self) -> ::windows_core::Result { @@ -5413,26 +4995,20 @@ impl IDigitalCableLocator { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IDigitalCableLocator, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ILocator, IDigitalLocator, IATSCLocator, IATSCLocator2); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IDigitalCableLocator { - type Vtable = IDigitalCableLocator_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IDigitalCableLocator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x48f66a11_171a_419a_9525_beeecd51584c); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IDigitalCableLocator_Vtbl { pub base__: IATSCLocator2_Vtbl, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDigitalCableTuneRequest(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IDigitalCableTuneRequest, + IDigitalCableTuneRequest_Vtbl, + 0xbad7753b_6b37_4810_ae57_3ce0c4a9e6cb +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IDigitalCableTuneRequest, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ITuneRequest, IChannelTuneRequest, IATSCChannelTuneRequest); #[cfg(feature = "Win32_System_Com")] impl IDigitalCableTuneRequest { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -5497,16 +5073,6 @@ impl IDigitalCableTuneRequest { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IDigitalCableTuneRequest, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ITuneRequest, IChannelTuneRequest, IATSCChannelTuneRequest); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IDigitalCableTuneRequest { - type Vtable = IDigitalCableTuneRequest_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IDigitalCableTuneRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbad7753b_6b37_4810_ae57_3ce0c4a9e6cb); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IDigitalCableTuneRequest_Vtbl { @@ -5516,11 +5082,15 @@ pub struct IDigitalCableTuneRequest_Vtbl { pub SourceID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psourceid: *mut i32) -> ::windows_core::HRESULT, pub SetSourceID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sourceid: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDigitalCableTuningSpace(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IDigitalCableTuningSpace, + IDigitalCableTuningSpace_Vtbl, + 0x013f9f9c_b449_4ec7_a6d2_9d4f2fc70ae5 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IDigitalCableTuningSpace, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ITuningSpace, IAnalogTVTuningSpace, IATSCTuningSpace); #[cfg(feature = "Win32_System_Com")] impl IDigitalCableTuningSpace { pub unsafe fn UniqueName(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -5712,16 +5282,6 @@ impl IDigitalCableTuningSpace { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IDigitalCableTuningSpace, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ITuningSpace, IAnalogTVTuningSpace, IATSCTuningSpace); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IDigitalCableTuningSpace { - type Vtable = IDigitalCableTuningSpace_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IDigitalCableTuningSpace { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x013f9f9c_b449_4ec7_a6d2_9d4f2fc70ae5); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IDigitalCableTuningSpace_Vtbl { @@ -5735,11 +5295,15 @@ pub struct IDigitalCableTuningSpace_Vtbl { pub MaxSourceID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, maxsourceidval: *mut i32) -> ::windows_core::HRESULT, pub SetMaxSourceID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newmaxsourceidval: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDigitalLocator(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IDigitalLocator, + IDigitalLocator_Vtbl, + 0x19b595d8_839a_47f0_96df_4f194f3c768c +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IDigitalLocator, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ILocator); #[cfg(feature = "Win32_System_Com")] impl IDigitalLocator { pub unsafe fn CarrierFrequency(&self) -> ::windows_core::Result { @@ -5799,24 +5363,13 @@ impl IDigitalLocator { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IDigitalLocator, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ILocator); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IDigitalLocator { - type Vtable = IDigitalLocator_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IDigitalLocator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x19b595d8_839a_47f0_96df_4f194f3c768c); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IDigitalLocator_Vtbl { pub base__: ILocator_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDvbCableDeliverySystemDescriptor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDvbCableDeliverySystemDescriptor, IDvbCableDeliverySystemDescriptor_Vtbl, 0xdfb98e36_9e1a_4862_9946_993a4e59017b); +::windows_core::imp::interface_hierarchy!(IDvbCableDeliverySystemDescriptor, ::windows_core::IUnknown); impl IDvbCableDeliverySystemDescriptor { pub unsafe fn GetTag(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -5847,13 +5400,6 @@ impl IDvbCableDeliverySystemDescriptor { (::windows_core::Interface::vtable(self).GetFECInner)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDvbCableDeliverySystemDescriptor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDvbCableDeliverySystemDescriptor { - type Vtable = IDvbCableDeliverySystemDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDvbCableDeliverySystemDescriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdfb98e36_9e1a_4862_9946_993a4e59017b); -} #[repr(C)] #[doc(hidden)] pub struct IDvbCableDeliverySystemDescriptor_Vtbl { @@ -5866,9 +5412,8 @@ pub struct IDvbCableDeliverySystemDescriptor_Vtbl { pub GetSymbolRate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwval: *mut u32) -> ::windows_core::HRESULT, pub GetFECInner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbval: *mut u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDvbComponentDescriptor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDvbComponentDescriptor, IDvbComponentDescriptor_Vtbl, 0x91e405cf_80e7_457f_9096_1b9d1ce32141); +::windows_core::imp::interface_hierarchy!(IDvbComponentDescriptor, ::windows_core::IUnknown); impl IDvbComponentDescriptor { pub unsafe fn GetTag(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -5898,13 +5443,6 @@ impl IDvbComponentDescriptor { (::windows_core::Interface::vtable(self).GetTextW)(::windows_core::Interface::as_raw(self), convmode, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDvbComponentDescriptor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDvbComponentDescriptor { - type Vtable = IDvbComponentDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDvbComponentDescriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x91e405cf_80e7_457f_9096_1b9d1ce32141); -} #[repr(C)] #[doc(hidden)] pub struct IDvbComponentDescriptor_Vtbl { @@ -5917,9 +5455,8 @@ pub struct IDvbComponentDescriptor_Vtbl { pub GetLanguageCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszcode: *mut u8) -> ::windows_core::HRESULT, pub GetTextW: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrtext: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDvbContentDescriptor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDvbContentDescriptor, IDvbContentDescriptor_Vtbl, 0x2e883881_a467_412a_9d63_6f2b6da05bf0); +::windows_core::imp::interface_hierarchy!(IDvbContentDescriptor, ::windows_core::IUnknown); impl IDvbContentDescriptor { pub unsafe fn GetTag(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -5940,13 +5477,6 @@ impl IDvbContentDescriptor { (::windows_core::Interface::vtable(self).GetRecordUserNibbles)(::windows_core::Interface::as_raw(self), brecordindex, pbval1, pbval2).ok() } } -::windows_core::imp::interface_hierarchy!(IDvbContentDescriptor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDvbContentDescriptor { - type Vtable = IDvbContentDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDvbContentDescriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2e883881_a467_412a_9d63_6f2b6da05bf0); -} #[repr(C)] #[doc(hidden)] pub struct IDvbContentDescriptor_Vtbl { @@ -5957,9 +5487,8 @@ pub struct IDvbContentDescriptor_Vtbl { pub GetRecordContentNibbles: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, brecordindex: u8, pbvallevel1: *mut u8, pbvallevel2: *mut u8) -> ::windows_core::HRESULT, pub GetRecordUserNibbles: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, brecordindex: u8, pbval1: *mut u8, pbval2: *mut u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDvbContentIdentifierDescriptor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDvbContentIdentifierDescriptor, IDvbContentIdentifierDescriptor_Vtbl, 0x05e0c1ea_f661_4053_9fbf_d93b28359838); +::windows_core::imp::interface_hierarchy!(IDvbContentIdentifierDescriptor, ::windows_core::IUnknown); impl IDvbContentIdentifierDescriptor { pub unsafe fn GetTag(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -5977,13 +5506,6 @@ impl IDvbContentIdentifierDescriptor { (::windows_core::Interface::vtable(self).GetRecordCrid)(::windows_core::Interface::as_raw(self), brecordindex, pbtype, pblocation, pblength, ppbbytes).ok() } } -::windows_core::imp::interface_hierarchy!(IDvbContentIdentifierDescriptor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDvbContentIdentifierDescriptor { - type Vtable = IDvbContentIdentifierDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDvbContentIdentifierDescriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x05e0c1ea_f661_4053_9fbf_d93b28359838); -} #[repr(C)] #[doc(hidden)] pub struct IDvbContentIdentifierDescriptor_Vtbl { @@ -5993,9 +5515,8 @@ pub struct IDvbContentIdentifierDescriptor_Vtbl { pub GetCountOfRecords: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbval: *mut u8) -> ::windows_core::HRESULT, pub GetRecordCrid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, brecordindex: u8, pbtype: *mut u8, pblocation: *mut u8, pblength: *mut u8, ppbbytes: *mut *mut u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDvbDataBroadcastDescriptor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDvbDataBroadcastDescriptor, IDvbDataBroadcastDescriptor_Vtbl, 0xd1ebc1d6_8b60_4c20_9caf_e59382e7c400); +::windows_core::imp::interface_hierarchy!(IDvbDataBroadcastDescriptor, ::windows_core::IUnknown); impl IDvbDataBroadcastDescriptor { pub unsafe fn GetTag(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -6032,13 +5553,6 @@ impl IDvbDataBroadcastDescriptor { (::windows_core::Interface::vtable(self).GetText)(::windows_core::Interface::as_raw(self), pblen, pbval).ok() } } -::windows_core::imp::interface_hierarchy!(IDvbDataBroadcastDescriptor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDvbDataBroadcastDescriptor { - type Vtable = IDvbDataBroadcastDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDvbDataBroadcastDescriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd1ebc1d6_8b60_4c20_9caf_e59382e7c400); -} #[repr(C)] #[doc(hidden)] pub struct IDvbDataBroadcastDescriptor_Vtbl { @@ -6053,9 +5567,8 @@ pub struct IDvbDataBroadcastDescriptor_Vtbl { pub GetTextLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbval: *mut u8) -> ::windows_core::HRESULT, pub GetText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pblen: *mut u8, pbval: *mut u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDvbDataBroadcastIDDescriptor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDvbDataBroadcastIDDescriptor, IDvbDataBroadcastIDDescriptor_Vtbl, 0x5f26f518_65c8_4048_91f2_9290f59f7b90); +::windows_core::imp::interface_hierarchy!(IDvbDataBroadcastIDDescriptor, ::windows_core::IUnknown); impl IDvbDataBroadcastIDDescriptor { pub unsafe fn GetTag(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -6073,13 +5586,6 @@ impl IDvbDataBroadcastIDDescriptor { (::windows_core::Interface::vtable(self).GetIDSelectorBytes)(::windows_core::Interface::as_raw(self), pblen, pbval).ok() } } -::windows_core::imp::interface_hierarchy!(IDvbDataBroadcastIDDescriptor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDvbDataBroadcastIDDescriptor { - type Vtable = IDvbDataBroadcastIDDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDvbDataBroadcastIDDescriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5f26f518_65c8_4048_91f2_9290f59f7b90); -} #[repr(C)] #[doc(hidden)] pub struct IDvbDataBroadcastIDDescriptor_Vtbl { @@ -6089,9 +5595,8 @@ pub struct IDvbDataBroadcastIDDescriptor_Vtbl { pub GetDataBroadcastID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwval: *mut u16) -> ::windows_core::HRESULT, pub GetIDSelectorBytes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pblen: *mut u8, pbval: *mut u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDvbDefaultAuthorityDescriptor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDvbDefaultAuthorityDescriptor, IDvbDefaultAuthorityDescriptor_Vtbl, 0x05ec24d1_3a31_44e7_b408_67c60a352276); +::windows_core::imp::interface_hierarchy!(IDvbDefaultAuthorityDescriptor, ::windows_core::IUnknown); impl IDvbDefaultAuthorityDescriptor { pub unsafe fn GetTag(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -6105,13 +5610,6 @@ impl IDvbDefaultAuthorityDescriptor { (::windows_core::Interface::vtable(self).GetDefaultAuthority)(::windows_core::Interface::as_raw(self), pblength, ppbbytes).ok() } } -::windows_core::imp::interface_hierarchy!(IDvbDefaultAuthorityDescriptor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDvbDefaultAuthorityDescriptor { - type Vtable = IDvbDefaultAuthorityDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDvbDefaultAuthorityDescriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x05ec24d1_3a31_44e7_b408_67c60a352276); -} #[repr(C)] #[doc(hidden)] pub struct IDvbDefaultAuthorityDescriptor_Vtbl { @@ -6120,9 +5618,8 @@ pub struct IDvbDefaultAuthorityDescriptor_Vtbl { pub GetLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbval: *mut u8) -> ::windows_core::HRESULT, pub GetDefaultAuthority: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pblength: *mut u8, ppbbytes: *mut *mut u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDvbExtendedEventDescriptor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDvbExtendedEventDescriptor, IDvbExtendedEventDescriptor_Vtbl, 0xc9b22eca_85f4_499f_b1db_efa93a91ee57); +::windows_core::imp::interface_hierarchy!(IDvbExtendedEventDescriptor, ::windows_core::IUnknown); impl IDvbExtendedEventDescriptor { pub unsafe fn GetTag(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -6171,13 +5668,6 @@ impl IDvbExtendedEventDescriptor { (::windows_core::Interface::vtable(self).GetRecordItemRawBytes)(::windows_core::Interface::as_raw(self), brecordindex, ppbrawitem, pbitemlength).ok() } } -::windows_core::imp::interface_hierarchy!(IDvbExtendedEventDescriptor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDvbExtendedEventDescriptor { - type Vtable = IDvbExtendedEventDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDvbExtendedEventDescriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc9b22eca_85f4_499f_b1db_efa93a91ee57); -} #[repr(C)] #[doc(hidden)] pub struct IDvbExtendedEventDescriptor_Vtbl { @@ -6194,9 +5684,8 @@ pub struct IDvbExtendedEventDescriptor_Vtbl { pub GetConcatenatedTextW: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, followingdescriptor: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrtext: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub GetRecordItemRawBytes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, brecordindex: u8, ppbrawitem: *mut *mut u8, pbitemlength: *mut u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDvbFrequencyListDescriptor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDvbFrequencyListDescriptor, IDvbFrequencyListDescriptor_Vtbl, 0x1cadb613_e1dd_4512_afa8_bb7a007ef8b1); +::windows_core::imp::interface_hierarchy!(IDvbFrequencyListDescriptor, ::windows_core::IUnknown); impl IDvbFrequencyListDescriptor { pub unsafe fn GetTag(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -6219,13 +5708,6 @@ impl IDvbFrequencyListDescriptor { (::windows_core::Interface::vtable(self).GetRecordCentreFrequency)(::windows_core::Interface::as_raw(self), brecordindex, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDvbFrequencyListDescriptor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDvbFrequencyListDescriptor { - type Vtable = IDvbFrequencyListDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDvbFrequencyListDescriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1cadb613_e1dd_4512_afa8_bb7a007ef8b1); -} #[repr(C)] #[doc(hidden)] pub struct IDvbFrequencyListDescriptor_Vtbl { @@ -6236,9 +5718,8 @@ pub struct IDvbFrequencyListDescriptor_Vtbl { pub GetCountOfRecords: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbval: *mut u8) -> ::windows_core::HRESULT, pub GetRecordCentreFrequency: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, brecordindex: u8, pdwval: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDvbHDSimulcastLogicalChannelDescriptor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDvbHDSimulcastLogicalChannelDescriptor, IDvbHDSimulcastLogicalChannelDescriptor_Vtbl, 0x1ea8b738_a307_4680_9e26_d0a908c824f4); +::windows_core::imp::interface_hierarchy!(IDvbHDSimulcastLogicalChannelDescriptor, ::windows_core::IUnknown, IDvbLogicalChannelDescriptor, IDvbLogicalChannelDescriptor2); impl IDvbHDSimulcastLogicalChannelDescriptor { pub unsafe fn GetTag(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -6265,21 +5746,13 @@ impl IDvbHDSimulcastLogicalChannelDescriptor { (::windows_core::Interface::vtable(self).base__.GetRecordLogicalChannelAndVisibility)(::windows_core::Interface::as_raw(self), brecordindex, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDvbHDSimulcastLogicalChannelDescriptor, ::windows_core::IUnknown, IDvbLogicalChannelDescriptor, IDvbLogicalChannelDescriptor2); -unsafe impl ::windows_core::Interface for IDvbHDSimulcastLogicalChannelDescriptor { - type Vtable = IDvbHDSimulcastLogicalChannelDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDvbHDSimulcastLogicalChannelDescriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1ea8b738_a307_4680_9e26_d0a908c824f4); -} #[repr(C)] #[doc(hidden)] pub struct IDvbHDSimulcastLogicalChannelDescriptor_Vtbl { pub base__: IDvbLogicalChannelDescriptor2_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDvbLinkageDescriptor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDvbLinkageDescriptor, IDvbLinkageDescriptor_Vtbl, 0x1cdf8b31_994a_46fc_acfd_6a6be8934dd5); +::windows_core::imp::interface_hierarchy!(IDvbLinkageDescriptor, ::windows_core::IUnknown); impl IDvbLinkageDescriptor { pub unsafe fn GetTag(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -6313,13 +5786,6 @@ impl IDvbLinkageDescriptor { (::windows_core::Interface::vtable(self).GetPrivateData)(::windows_core::Interface::as_raw(self), pblen, pbdata).ok() } } -::windows_core::imp::interface_hierarchy!(IDvbLinkageDescriptor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDvbLinkageDescriptor { - type Vtable = IDvbLinkageDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDvbLinkageDescriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1cdf8b31_994a_46fc_acfd_6a6be8934dd5); -} #[repr(C)] #[doc(hidden)] pub struct IDvbLinkageDescriptor_Vtbl { @@ -6333,9 +5799,8 @@ pub struct IDvbLinkageDescriptor_Vtbl { pub GetPrivateDataLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbval: *mut u8) -> ::windows_core::HRESULT, pub GetPrivateData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pblen: *mut u8, pbdata: *mut u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDvbLogicalChannel2Descriptor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDvbLogicalChannel2Descriptor, IDvbLogicalChannel2Descriptor_Vtbl, 0xf69c3747_8a30_4980_998c_01fe7f0ba35a); +::windows_core::imp::interface_hierarchy!(IDvbLogicalChannel2Descriptor, ::windows_core::IUnknown, IDvbLogicalChannelDescriptor, IDvbLogicalChannelDescriptor2); impl IDvbLogicalChannel2Descriptor { pub unsafe fn GetTag(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -6393,13 +5858,6 @@ impl IDvbLogicalChannel2Descriptor { (::windows_core::Interface::vtable(self).GetListRecordLogicalChannelAndVisibility)(::windows_core::Interface::as_raw(self), blistindex, brecordindex, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDvbLogicalChannel2Descriptor, ::windows_core::IUnknown, IDvbLogicalChannelDescriptor, IDvbLogicalChannelDescriptor2); -unsafe impl ::windows_core::Interface for IDvbLogicalChannel2Descriptor { - type Vtable = IDvbLogicalChannel2Descriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDvbLogicalChannel2Descriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf69c3747_8a30_4980_998c_01fe7f0ba35a); -} #[repr(C)] #[doc(hidden)] pub struct IDvbLogicalChannel2Descriptor_Vtbl { @@ -6413,9 +5871,8 @@ pub struct IDvbLogicalChannel2Descriptor_Vtbl { pub GetListRecordLogicalChannelNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, blistindex: u8, brecordindex: u8, pwval: *mut u16) -> ::windows_core::HRESULT, pub GetListRecordLogicalChannelAndVisibility: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, blistindex: u8, brecordindex: u8, pwval: *mut u16) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDvbLogicalChannelDescriptor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDvbLogicalChannelDescriptor, IDvbLogicalChannelDescriptor_Vtbl, 0xcf1edaff_3ffd_4cf7_8201_35756acbf85f); +::windows_core::imp::interface_hierarchy!(IDvbLogicalChannelDescriptor, ::windows_core::IUnknown); impl IDvbLogicalChannelDescriptor { pub unsafe fn GetTag(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -6438,13 +5895,6 @@ impl IDvbLogicalChannelDescriptor { (::windows_core::Interface::vtable(self).GetRecordLogicalChannelNumber)(::windows_core::Interface::as_raw(self), brecordindex, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDvbLogicalChannelDescriptor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDvbLogicalChannelDescriptor { - type Vtable = IDvbLogicalChannelDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDvbLogicalChannelDescriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcf1edaff_3ffd_4cf7_8201_35756acbf85f); -} #[repr(C)] #[doc(hidden)] pub struct IDvbLogicalChannelDescriptor_Vtbl { @@ -6455,9 +5905,8 @@ pub struct IDvbLogicalChannelDescriptor_Vtbl { pub GetRecordServiceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, brecordindex: u8, pwval: *mut u16) -> ::windows_core::HRESULT, pub GetRecordLogicalChannelNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, brecordindex: u8, pwval: *mut u16) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDvbLogicalChannelDescriptor2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDvbLogicalChannelDescriptor2, IDvbLogicalChannelDescriptor2_Vtbl, 0x43aca974_4be8_4b98_bc17_9eafd788b1d7); +::windows_core::imp::interface_hierarchy!(IDvbLogicalChannelDescriptor2, ::windows_core::IUnknown, IDvbLogicalChannelDescriptor); impl IDvbLogicalChannelDescriptor2 { pub unsafe fn GetTag(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -6484,22 +5933,14 @@ impl IDvbLogicalChannelDescriptor2 { (::windows_core::Interface::vtable(self).GetRecordLogicalChannelAndVisibility)(::windows_core::Interface::as_raw(self), brecordindex, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDvbLogicalChannelDescriptor2, ::windows_core::IUnknown, IDvbLogicalChannelDescriptor); -unsafe impl ::windows_core::Interface for IDvbLogicalChannelDescriptor2 { - type Vtable = IDvbLogicalChannelDescriptor2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDvbLogicalChannelDescriptor2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x43aca974_4be8_4b98_bc17_9eafd788b1d7); -} #[repr(C)] #[doc(hidden)] pub struct IDvbLogicalChannelDescriptor2_Vtbl { pub base__: IDvbLogicalChannelDescriptor_Vtbl, pub GetRecordLogicalChannelAndVisibility: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, brecordindex: u8, pwval: *mut u16) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDvbMultilingualServiceNameDescriptor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDvbMultilingualServiceNameDescriptor, IDvbMultilingualServiceNameDescriptor_Vtbl, 0x2d80433b_b32c_47ef_987f_e78ebb773e34); +::windows_core::imp::interface_hierarchy!(IDvbMultilingualServiceNameDescriptor, ::windows_core::IUnknown); impl IDvbMultilingualServiceNameDescriptor { pub unsafe fn GetTag(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -6526,13 +5967,6 @@ impl IDvbMultilingualServiceNameDescriptor { (::windows_core::Interface::vtable(self).GetRecordServiceNameW)(::windows_core::Interface::as_raw(self), brecordindex, convmode, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDvbMultilingualServiceNameDescriptor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDvbMultilingualServiceNameDescriptor { - type Vtable = IDvbMultilingualServiceNameDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDvbMultilingualServiceNameDescriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2d80433b_b32c_47ef_987f_e78ebb773e34); -} #[repr(C)] #[doc(hidden)] pub struct IDvbMultilingualServiceNameDescriptor_Vtbl { @@ -6544,9 +5978,8 @@ pub struct IDvbMultilingualServiceNameDescriptor_Vtbl { pub GetRecordServiceProviderNameW: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, brecordindex: u8, convmode: DVB_STRCONV_MODE, pbstrname: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub GetRecordServiceNameW: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, brecordindex: u8, convmode: DVB_STRCONV_MODE, pbstrname: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDvbNetworkNameDescriptor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDvbNetworkNameDescriptor, IDvbNetworkNameDescriptor_Vtbl, 0x5b2a80cf_35b9_446c_b3e4_048b761dbc51); +::windows_core::imp::interface_hierarchy!(IDvbNetworkNameDescriptor, ::windows_core::IUnknown); impl IDvbNetworkNameDescriptor { pub unsafe fn GetTag(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -6565,13 +5998,6 @@ impl IDvbNetworkNameDescriptor { (::windows_core::Interface::vtable(self).GetNetworkNameW)(::windows_core::Interface::as_raw(self), convmode, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDvbNetworkNameDescriptor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDvbNetworkNameDescriptor { - type Vtable = IDvbNetworkNameDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDvbNetworkNameDescriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5b2a80cf_35b9_446c_b3e4_048b761dbc51); -} #[repr(C)] #[doc(hidden)] pub struct IDvbNetworkNameDescriptor_Vtbl { @@ -6581,9 +6007,8 @@ pub struct IDvbNetworkNameDescriptor_Vtbl { pub GetNetworkName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszname: *mut *mut u8) -> ::windows_core::HRESULT, pub GetNetworkNameW: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrname: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDvbParentalRatingDescriptor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDvbParentalRatingDescriptor, IDvbParentalRatingDescriptor_Vtbl, 0x3ad9dde1_fb1b_4186_937f_22e6b5a72a10); +::windows_core::imp::interface_hierarchy!(IDvbParentalRatingDescriptor, ::windows_core::IUnknown); impl IDvbParentalRatingDescriptor { pub unsafe fn GetTag(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -6601,13 +6026,6 @@ impl IDvbParentalRatingDescriptor { (::windows_core::Interface::vtable(self).GetRecordRating)(::windows_core::Interface::as_raw(self), brecordindex, ::core::mem::transmute(pszcountrycode.as_ptr()), pbval).ok() } } -::windows_core::imp::interface_hierarchy!(IDvbParentalRatingDescriptor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDvbParentalRatingDescriptor { - type Vtable = IDvbParentalRatingDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDvbParentalRatingDescriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3ad9dde1_fb1b_4186_937f_22e6b5a72a10); -} #[repr(C)] #[doc(hidden)] pub struct IDvbParentalRatingDescriptor_Vtbl { @@ -6617,9 +6035,8 @@ pub struct IDvbParentalRatingDescriptor_Vtbl { pub GetCountOfRecords: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbval: *mut u8) -> ::windows_core::HRESULT, pub GetRecordRating: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, brecordindex: u8, pszcountrycode: *mut u8, pbval: *mut u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDvbPrivateDataSpecifierDescriptor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDvbPrivateDataSpecifierDescriptor, IDvbPrivateDataSpecifierDescriptor_Vtbl, 0x5660a019_e75a_4b82_9b4c_ed2256d165a2); +::windows_core::imp::interface_hierarchy!(IDvbPrivateDataSpecifierDescriptor, ::windows_core::IUnknown); impl IDvbPrivateDataSpecifierDescriptor { pub unsafe fn GetTag(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -6634,13 +6051,6 @@ impl IDvbPrivateDataSpecifierDescriptor { (::windows_core::Interface::vtable(self).GetPrivateDataSpecifier)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDvbPrivateDataSpecifierDescriptor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDvbPrivateDataSpecifierDescriptor { - type Vtable = IDvbPrivateDataSpecifierDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDvbPrivateDataSpecifierDescriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5660a019_e75a_4b82_9b4c_ed2256d165a2); -} #[repr(C)] #[doc(hidden)] pub struct IDvbPrivateDataSpecifierDescriptor_Vtbl { @@ -6649,9 +6059,8 @@ pub struct IDvbPrivateDataSpecifierDescriptor_Vtbl { pub GetLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbval: *mut u8) -> ::windows_core::HRESULT, pub GetPrivateDataSpecifier: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwval: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDvbSatelliteDeliverySystemDescriptor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDvbSatelliteDeliverySystemDescriptor, IDvbSatelliteDeliverySystemDescriptor_Vtbl, 0x02f2225a_805b_4ec5_a9a6_f9b5913cd470); +::windows_core::imp::interface_hierarchy!(IDvbSatelliteDeliverySystemDescriptor, ::windows_core::IUnknown); impl IDvbSatelliteDeliverySystemDescriptor { pub unsafe fn GetTag(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -6690,13 +6099,6 @@ impl IDvbSatelliteDeliverySystemDescriptor { (::windows_core::Interface::vtable(self).GetFECInner)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDvbSatelliteDeliverySystemDescriptor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDvbSatelliteDeliverySystemDescriptor { - type Vtable = IDvbSatelliteDeliverySystemDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDvbSatelliteDeliverySystemDescriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x02f2225a_805b_4ec5_a9a6_f9b5913cd470); -} #[repr(C)] #[doc(hidden)] pub struct IDvbSatelliteDeliverySystemDescriptor_Vtbl { @@ -6711,9 +6113,8 @@ pub struct IDvbSatelliteDeliverySystemDescriptor_Vtbl { pub GetSymbolRate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwval: *mut u32) -> ::windows_core::HRESULT, pub GetFECInner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbval: *mut u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDvbServiceAttributeDescriptor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDvbServiceAttributeDescriptor, IDvbServiceAttributeDescriptor_Vtbl, 0x0f37bd92_d6a1_4854_b950_3a969d27f30e); +::windows_core::imp::interface_hierarchy!(IDvbServiceAttributeDescriptor, ::windows_core::IUnknown); impl IDvbServiceAttributeDescriptor { pub unsafe fn GetTag(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -6740,13 +6141,6 @@ impl IDvbServiceAttributeDescriptor { (::windows_core::Interface::vtable(self).GetRecordVisibleServiceFlag)(::windows_core::Interface::as_raw(self), brecordindex, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDvbServiceAttributeDescriptor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDvbServiceAttributeDescriptor { - type Vtable = IDvbServiceAttributeDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDvbServiceAttributeDescriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0f37bd92_d6a1_4854_b950_3a969d27f30e); -} #[repr(C)] #[doc(hidden)] pub struct IDvbServiceAttributeDescriptor_Vtbl { @@ -6758,9 +6152,8 @@ pub struct IDvbServiceAttributeDescriptor_Vtbl { pub GetRecordNumericSelectionFlag: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, brecordindex: u8, pfval: *mut super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub GetRecordVisibleServiceFlag: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, brecordindex: u8, pfval: *mut super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDvbServiceDescriptor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDvbServiceDescriptor, IDvbServiceDescriptor_Vtbl, 0xf9c7fbcf_e2d6_464d_b32d_2ef526e49290); +::windows_core::imp::interface_hierarchy!(IDvbServiceDescriptor, ::windows_core::IUnknown); impl IDvbServiceDescriptor { pub unsafe fn GetTag(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -6795,13 +6188,6 @@ impl IDvbServiceDescriptor { (::windows_core::Interface::vtable(self).GetServiceNameEmphasized)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDvbServiceDescriptor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDvbServiceDescriptor { - type Vtable = IDvbServiceDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDvbServiceDescriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf9c7fbcf_e2d6_464d_b32d_2ef526e49290); -} #[repr(C)] #[doc(hidden)] pub struct IDvbServiceDescriptor_Vtbl { @@ -6815,9 +6201,8 @@ pub struct IDvbServiceDescriptor_Vtbl { pub GetProcessedServiceName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub GetServiceNameEmphasized: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDvbServiceDescriptor2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDvbServiceDescriptor2, IDvbServiceDescriptor2_Vtbl, 0xd6c76506_85ab_487c_9b2b_36416511e4a2); +::windows_core::imp::interface_hierarchy!(IDvbServiceDescriptor2, ::windows_core::IUnknown, IDvbServiceDescriptor); impl IDvbServiceDescriptor2 { pub unsafe fn GetTag(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -6860,13 +6245,6 @@ impl IDvbServiceDescriptor2 { (::windows_core::Interface::vtable(self).GetServiceNameW)(::windows_core::Interface::as_raw(self), convmode, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDvbServiceDescriptor2, ::windows_core::IUnknown, IDvbServiceDescriptor); -unsafe impl ::windows_core::Interface for IDvbServiceDescriptor2 { - type Vtable = IDvbServiceDescriptor2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDvbServiceDescriptor2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd6c76506_85ab_487c_9b2b_36416511e4a2); -} #[repr(C)] #[doc(hidden)] pub struct IDvbServiceDescriptor2_Vtbl { @@ -6874,9 +6252,8 @@ pub struct IDvbServiceDescriptor2_Vtbl { pub GetServiceProviderNameW2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrname: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub GetServiceNameW: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrname: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDvbServiceListDescriptor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDvbServiceListDescriptor, IDvbServiceListDescriptor_Vtbl, 0x05db0d8f_6008_491a_acd3_7090952707d0); +::windows_core::imp::interface_hierarchy!(IDvbServiceListDescriptor, ::windows_core::IUnknown); impl IDvbServiceListDescriptor { pub unsafe fn GetTag(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -6899,13 +6276,6 @@ impl IDvbServiceListDescriptor { (::windows_core::Interface::vtable(self).GetRecordServiceType)(::windows_core::Interface::as_raw(self), brecordindex, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDvbServiceListDescriptor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDvbServiceListDescriptor { - type Vtable = IDvbServiceListDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDvbServiceListDescriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x05db0d8f_6008_491a_acd3_7090952707d0); -} #[repr(C)] #[doc(hidden)] pub struct IDvbServiceListDescriptor_Vtbl { @@ -6916,9 +6286,8 @@ pub struct IDvbServiceListDescriptor_Vtbl { pub GetRecordServiceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, brecordindex: u8, pwval: *mut u16) -> ::windows_core::HRESULT, pub GetRecordServiceType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, brecordindex: u8, pbval: *mut u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDvbShortEventDescriptor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDvbShortEventDescriptor, IDvbShortEventDescriptor_Vtbl, 0xb170be92_5b75_458e_9c6e_b0008231491a); +::windows_core::imp::interface_hierarchy!(IDvbShortEventDescriptor, ::windows_core::IUnknown); impl IDvbShortEventDescriptor { pub unsafe fn GetTag(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -6940,13 +6309,6 @@ impl IDvbShortEventDescriptor { (::windows_core::Interface::vtable(self).GetTextW)(::windows_core::Interface::as_raw(self), convmode, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDvbShortEventDescriptor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDvbShortEventDescriptor { - type Vtable = IDvbShortEventDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDvbShortEventDescriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb170be92_5b75_458e_9c6e_b0008231491a); -} #[repr(C)] #[doc(hidden)] pub struct IDvbShortEventDescriptor_Vtbl { @@ -6957,9 +6319,8 @@ pub struct IDvbShortEventDescriptor_Vtbl { pub GetEventNameW: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrname: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub GetTextW: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrtext: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDvbSiParser(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDvbSiParser, IDvbSiParser_Vtbl, 0xb758a7bd_14dc_449d_b828_35909acb3b1e); +::windows_core::imp::interface_hierarchy!(IDvbSiParser, ::windows_core::IUnknown); impl IDvbSiParser { pub unsafe fn Initialize(&self, punkmpeg2data: P0) -> ::windows_core::Result<()> where @@ -7024,13 +6385,6 @@ impl IDvbSiParser { (::windows_core::Interface::vtable(self).GetSIT)(::windows_core::Interface::as_raw(self), dwtimeout, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDvbSiParser, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDvbSiParser { - type Vtable = IDvbSiParser_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDvbSiParser { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb758a7bd_14dc_449d_b828_35909acb3b1e); -} #[repr(C)] #[doc(hidden)] pub struct IDvbSiParser_Vtbl { @@ -7051,9 +6405,8 @@ pub struct IDvbSiParser_Vtbl { pub GetDIT: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwtimeout: u32, ppdit: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetSIT: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwtimeout: u32, ppsit: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDvbSiParser2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDvbSiParser2, IDvbSiParser2_Vtbl, 0x0ac5525f_f816_42f4_93ba_4c0f32f46e54); +::windows_core::imp::interface_hierarchy!(IDvbSiParser2, ::windows_core::IUnknown, IDvbSiParser); impl IDvbSiParser2 { pub unsafe fn Initialize(&self, punkmpeg2data: P0) -> ::windows_core::Result<()> where @@ -7122,22 +6475,14 @@ impl IDvbSiParser2 { (::windows_core::Interface::vtable(self).GetEIT2)(::windows_core::Interface::as_raw(self), tableid, ::core::mem::transmute(pwserviceid.unwrap_or(::std::ptr::null())), ::core::mem::transmute(pbsegment.unwrap_or(::std::ptr::null())), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDvbSiParser2, ::windows_core::IUnknown, IDvbSiParser); -unsafe impl ::windows_core::Interface for IDvbSiParser2 { - type Vtable = IDvbSiParser2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDvbSiParser2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0ac5525f_f816_42f4_93ba_4c0f32f46e54); -} #[repr(C)] #[doc(hidden)] pub struct IDvbSiParser2_Vtbl { pub base__: IDvbSiParser_Vtbl, pub GetEIT2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, tableid: u8, pwserviceid: *const u16, pbsegment: *const u8, ppeit: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDvbSubtitlingDescriptor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDvbSubtitlingDescriptor, IDvbSubtitlingDescriptor_Vtbl, 0x9b25fe1d_fa23_4e50_9784_6df8b26f8a49); +::windows_core::imp::interface_hierarchy!(IDvbSubtitlingDescriptor, ::windows_core::IUnknown); impl IDvbSubtitlingDescriptor { pub unsafe fn GetTag(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -7168,13 +6513,6 @@ impl IDvbSubtitlingDescriptor { (::windows_core::Interface::vtable(self).GetRecordAncillaryPageID)(::windows_core::Interface::as_raw(self), brecordindex, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDvbSubtitlingDescriptor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDvbSubtitlingDescriptor { - type Vtable = IDvbSubtitlingDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDvbSubtitlingDescriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9b25fe1d_fa23_4e50_9784_6df8b26f8a49); -} #[repr(C)] #[doc(hidden)] pub struct IDvbSubtitlingDescriptor_Vtbl { @@ -7187,9 +6525,8 @@ pub struct IDvbSubtitlingDescriptor_Vtbl { pub GetRecordCompositionPageID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, brecordindex: u8, pwval: *mut u16) -> ::windows_core::HRESULT, pub GetRecordAncillaryPageID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, brecordindex: u8, pwval: *mut u16) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDvbTeletextDescriptor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDvbTeletextDescriptor, IDvbTeletextDescriptor_Vtbl, 0x9cd29d47_69c6_4f92_98a9_210af1b7303a); +::windows_core::imp::interface_hierarchy!(IDvbTeletextDescriptor, ::windows_core::IUnknown); impl IDvbTeletextDescriptor { pub unsafe fn GetTag(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -7220,13 +6557,6 @@ impl IDvbTeletextDescriptor { (::windows_core::Interface::vtable(self).GetRecordPageNumber)(::windows_core::Interface::as_raw(self), brecordindex, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDvbTeletextDescriptor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDvbTeletextDescriptor { - type Vtable = IDvbTeletextDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDvbTeletextDescriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9cd29d47_69c6_4f92_98a9_210af1b7303a); -} #[repr(C)] #[doc(hidden)] pub struct IDvbTeletextDescriptor_Vtbl { @@ -7239,9 +6569,8 @@ pub struct IDvbTeletextDescriptor_Vtbl { pub GetRecordMagazineNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, brecordindex: u8, pbval: *mut u8) -> ::windows_core::HRESULT, pub GetRecordPageNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, brecordindex: u8, pbval: *mut u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDvbTerrestrial2DeliverySystemDescriptor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDvbTerrestrial2DeliverySystemDescriptor, IDvbTerrestrial2DeliverySystemDescriptor_Vtbl, 0x20ee9be9_cd57_49ab_8f6e_1d07aeb8e482); +::windows_core::imp::interface_hierarchy!(IDvbTerrestrial2DeliverySystemDescriptor, ::windows_core::IUnknown); impl IDvbTerrestrial2DeliverySystemDescriptor { pub unsafe fn GetTag(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -7296,13 +6625,6 @@ impl IDvbTerrestrial2DeliverySystemDescriptor { (::windows_core::Interface::vtable(self).GetTFSFlag)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDvbTerrestrial2DeliverySystemDescriptor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDvbTerrestrial2DeliverySystemDescriptor { - type Vtable = IDvbTerrestrial2DeliverySystemDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDvbTerrestrial2DeliverySystemDescriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x20ee9be9_cd57_49ab_8f6e_1d07aeb8e482); -} #[repr(C)] #[doc(hidden)] pub struct IDvbTerrestrial2DeliverySystemDescriptor_Vtbl { @@ -7321,9 +6643,8 @@ pub struct IDvbTerrestrial2DeliverySystemDescriptor_Vtbl { pub GetOtherFrequencyFlag: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbval: *mut u8) -> ::windows_core::HRESULT, pub GetTFSFlag: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbval: *mut u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDvbTerrestrialDeliverySystemDescriptor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDvbTerrestrialDeliverySystemDescriptor, IDvbTerrestrialDeliverySystemDescriptor_Vtbl, 0xed7e1b91_d12e_420c_b41d_a49d84fe1823); +::windows_core::imp::interface_hierarchy!(IDvbTerrestrialDeliverySystemDescriptor, ::windows_core::IUnknown); impl IDvbTerrestrialDeliverySystemDescriptor { pub unsafe fn GetTag(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -7370,13 +6691,6 @@ impl IDvbTerrestrialDeliverySystemDescriptor { (::windows_core::Interface::vtable(self).GetOtherFrequencyFlag)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDvbTerrestrialDeliverySystemDescriptor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDvbTerrestrialDeliverySystemDescriptor { - type Vtable = IDvbTerrestrialDeliverySystemDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDvbTerrestrialDeliverySystemDescriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xed7e1b91_d12e_420c_b41d_a49d84fe1823); -} #[repr(C)] #[doc(hidden)] pub struct IDvbTerrestrialDeliverySystemDescriptor_Vtbl { @@ -7393,9 +6707,8 @@ pub struct IDvbTerrestrialDeliverySystemDescriptor_Vtbl { pub GetTransmissionMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbval: *mut u8) -> ::windows_core::HRESULT, pub GetOtherFrequencyFlag: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbval: *mut u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IESCloseMmiEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IESCloseMmiEvent, IESCloseMmiEvent_Vtbl, 0x6b80e96f_55e2_45aa_b754_0c23c8e7d5c1); +::windows_core::imp::interface_hierarchy!(IESCloseMmiEvent, ::windows_core::IUnknown, super::IESEvent); impl IESCloseMmiEvent { pub unsafe fn GetEventId(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -7423,22 +6736,14 @@ impl IESCloseMmiEvent { (::windows_core::Interface::vtable(self).GetDialogNumber)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IESCloseMmiEvent, ::windows_core::IUnknown, super::IESEvent); -unsafe impl ::windows_core::Interface for IESCloseMmiEvent { - type Vtable = IESCloseMmiEvent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IESCloseMmiEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6b80e96f_55e2_45aa_b754_0c23c8e7d5c1); -} #[repr(C)] #[doc(hidden)] pub struct IESCloseMmiEvent_Vtbl { pub base__: super::IESEvent_Vtbl, pub GetDialogNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdialognumber: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IESEventFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IESEventFactory, IESEventFactory_Vtbl, 0x506a09b8_7f86_4e04_ac05_3303bfe8fc49); +::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 @@ -7450,22 +6755,14 @@ impl IESEventFactory { (::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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IESEventFactory, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IESEventFactory { - type Vtable = IESEventFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IESEventFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x506a09b8_7f86_4e04_ac05_3303bfe8fc49); -} #[repr(C)] #[doc(hidden)] pub struct IESEventFactory_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub CreateESEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pserviceprovider: *mut ::core::ffi::c_void, dweventid: u32, guideventtype: ::windows_core::GUID, dweventdatalength: u32, peventdata: *const u8, bstrbaseurl: ::std::mem::MaybeUninit<::windows_core::BSTR>, pinitcontext: *mut ::core::ffi::c_void, ppesevent: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IESEventService(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IESEventService, IESEventService_Vtbl, 0xed89a619_4c06_4b2f_99eb_c7669b13047c); +::windows_core::imp::interface_hierarchy!(IESEventService, ::windows_core::IUnknown); impl IESEventService { pub unsafe fn FireESEvent(&self, pesevent: P0) -> ::windows_core::Result<()> where @@ -7474,22 +6771,14 @@ impl IESEventService { (::windows_core::Interface::vtable(self).FireESEvent)(::windows_core::Interface::as_raw(self), pesevent.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IESEventService, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IESEventService { - type Vtable = IESEventService_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IESEventService { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xed89a619_4c06_4b2f_99eb_c7669b13047c); -} #[repr(C)] #[doc(hidden)] pub struct IESEventService_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub FireESEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pesevent: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IESEventServiceConfiguration(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IESEventServiceConfiguration, IESEventServiceConfiguration_Vtbl, 0x33b9daae_9309_491d_a051_bcad2a70cd66); +::windows_core::imp::interface_hierarchy!(IESEventServiceConfiguration, ::windows_core::IUnknown); impl IESEventServiceConfiguration { pub unsafe fn SetParent(&self, peventservice: P0) -> ::windows_core::Result<()> where @@ -7522,13 +6811,6 @@ impl IESEventServiceConfiguration { (::windows_core::Interface::vtable(self).RemoveGraph)(::windows_core::Interface::as_raw(self), pgraph.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IESEventServiceConfiguration, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IESEventServiceConfiguration { - type Vtable = IESEventServiceConfiguration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IESEventServiceConfiguration { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x33b9daae_9309_491d_a051_bcad2a70cd66); -} #[repr(C)] #[doc(hidden)] pub struct IESEventServiceConfiguration_Vtbl { @@ -7540,9 +6822,8 @@ pub struct IESEventServiceConfiguration_Vtbl { pub SetGraph: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pgraph: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RemoveGraph: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pgraph: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IESFileExpiryDateEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IESFileExpiryDateEvent, IESFileExpiryDateEvent_Vtbl, 0xba9edcb6_4d36_4cfe_8c56_87a6b0ca48e1); +::windows_core::imp::interface_hierarchy!(IESFileExpiryDateEvent, ::windows_core::IUnknown, super::IESEvent); impl IESFileExpiryDateEvent { pub unsafe fn GetEventId(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -7590,13 +6871,6 @@ impl IESFileExpiryDateEvent { (::windows_core::Interface::vtable(self).DoesExpireAfterFirstUse)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IESFileExpiryDateEvent, ::windows_core::IUnknown, super::IESEvent); -unsafe impl ::windows_core::Interface for IESFileExpiryDateEvent { - type Vtable = IESFileExpiryDateEvent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IESFileExpiryDateEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xba9edcb6_4d36_4cfe_8c56_87a6b0ca48e1); -} #[repr(C)] #[doc(hidden)] pub struct IESFileExpiryDateEvent_Vtbl { @@ -7608,9 +6882,8 @@ pub struct IESFileExpiryDateEvent_Vtbl { pub IsEntitlementTokenPresent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfenttokenpresent: *mut super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub DoesExpireAfterFirstUse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfexpireafterfirstuse: *mut super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IESIsdbCasResponseEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IESIsdbCasResponseEvent, IESIsdbCasResponseEvent_Vtbl, 0x2017cb03_dc0f_4c24_83ca_36307b2cd19f); +::windows_core::imp::interface_hierarchy!(IESIsdbCasResponseEvent, ::windows_core::IUnknown, super::IESEvent); impl IESIsdbCasResponseEvent { pub unsafe fn GetEventId(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -7652,13 +6925,6 @@ impl IESIsdbCasResponseEvent { (::windows_core::Interface::vtable(self).GetResponseData)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IESIsdbCasResponseEvent, ::windows_core::IUnknown, super::IESEvent); -unsafe impl ::windows_core::Interface for IESIsdbCasResponseEvent { - type Vtable = IESIsdbCasResponseEvent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IESIsdbCasResponseEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2017cb03_dc0f_4c24_83ca_36307b2cd19f); -} #[repr(C)] #[doc(hidden)] pub struct IESIsdbCasResponseEvent_Vtbl { @@ -7671,9 +6937,8 @@ pub struct IESIsdbCasResponseEvent_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetResponseData: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IESLicenseRenewalResultEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IESLicenseRenewalResultEvent, IESLicenseRenewalResultEvent_Vtbl, 0xd5a48ef5_a81b_4df0_acaa_5e35e7ea45d4); +::windows_core::imp::interface_hierarchy!(IESLicenseRenewalResultEvent, ::windows_core::IUnknown, super::IESEvent); impl IESLicenseRenewalResultEvent { pub unsafe fn GetEventId(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -7743,13 +7008,6 @@ impl IESLicenseRenewalResultEvent { (::windows_core::Interface::vtable(self).GetExpiryDate)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IESLicenseRenewalResultEvent, ::windows_core::IUnknown, super::IESEvent); -unsafe impl ::windows_core::Interface for IESLicenseRenewalResultEvent { - type Vtable = IESLicenseRenewalResultEvent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IESLicenseRenewalResultEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd5a48ef5_a81b_4df0_acaa_5e35e7ea45d4); -} #[repr(C)] #[doc(hidden)] pub struct IESLicenseRenewalResultEvent_Vtbl { @@ -7769,9 +7027,8 @@ pub struct IESLicenseRenewalResultEvent_Vtbl { GetEntitlementToken: usize, pub GetExpiryDate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pqwexpirydate: *mut u64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IESOpenMmiEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IESOpenMmiEvent, IESOpenMmiEvent_Vtbl, 0xba4b6526_1a35_4635_8b56_3ec612746a8c); +::windows_core::imp::interface_hierarchy!(IESOpenMmiEvent, ::windows_core::IUnknown, super::IESEvent); impl IESOpenMmiEvent { pub unsafe fn GetEventId(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -7811,13 +7068,6 @@ impl IESOpenMmiEvent { (::windows_core::Interface::vtable(self).GetDialogStringData)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pbstrbaseurl), ::core::mem::transmute(pbstrdata)).ok() } } -::windows_core::imp::interface_hierarchy!(IESOpenMmiEvent, ::windows_core::IUnknown, super::IESEvent); -unsafe impl ::windows_core::Interface for IESOpenMmiEvent { - type Vtable = IESOpenMmiEvent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IESOpenMmiEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xba4b6526_1a35_4635_8b56_3ec612746a8c); -} #[repr(C)] #[doc(hidden)] pub struct IESOpenMmiEvent_Vtbl { @@ -7830,9 +7080,8 @@ pub struct IESOpenMmiEvent_Vtbl { GetDialogData: usize, pub GetDialogStringData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrbaseurl: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>, pbstrdata: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IESRequestTunerEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IESRequestTunerEvent, IESRequestTunerEvent_Vtbl, 0x54c7a5e8_c3bb_4f51_af14_e0e2c0e34c6d); +::windows_core::imp::interface_hierarchy!(IESRequestTunerEvent, ::windows_core::IUnknown, super::IESEvent); impl IESRequestTunerEvent { pub unsafe fn GetEventId(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -7872,13 +7121,6 @@ impl IESRequestTunerEvent { (::windows_core::Interface::vtable(self).GetEstimatedTime)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IESRequestTunerEvent, ::windows_core::IUnknown, super::IESEvent); -unsafe impl ::windows_core::Interface for IESRequestTunerEvent { - type Vtable = IESRequestTunerEvent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IESRequestTunerEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x54c7a5e8_c3bb_4f51_af14_e0e2c0e34c6d); -} #[repr(C)] #[doc(hidden)] pub struct IESRequestTunerEvent_Vtbl { @@ -7888,9 +7130,8 @@ pub struct IESRequestTunerEvent_Vtbl { pub GetConsequences: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbyconsequences: *mut u8) -> ::windows_core::HRESULT, pub GetEstimatedTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwestimatedtime: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IESValueUpdatedEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IESValueUpdatedEvent, IESValueUpdatedEvent_Vtbl, 0x8a24c46e_bb63_4664_8602_5d9c718c146d); +::windows_core::imp::interface_hierarchy!(IESValueUpdatedEvent, ::windows_core::IUnknown, super::IESEvent); impl IESValueUpdatedEvent { pub unsafe fn GetEventId(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -7920,13 +7161,6 @@ impl IESValueUpdatedEvent { (::windows_core::Interface::vtable(self).GetValueNames)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IESValueUpdatedEvent, ::windows_core::IUnknown, super::IESEvent); -unsafe impl ::windows_core::Interface for IESValueUpdatedEvent { - type Vtable = IESValueUpdatedEvent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IESValueUpdatedEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8a24c46e_bb63_4664_8602_5d9c718c146d); -} #[repr(C)] #[doc(hidden)] pub struct IESValueUpdatedEvent_Vtbl { @@ -7936,9 +7170,8 @@ pub struct IESValueUpdatedEvent_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetValueNames: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IETFilter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IETFilter, IETFilter_Vtbl, 0xc4c4c4b1_0049_4e2b_98fb_9537f6ce516d); +::windows_core::imp::interface_hierarchy!(IETFilter, ::windows_core::IUnknown); impl IETFilter { pub unsafe fn EvalRatObjOK(&self) -> ::windows_core::Result<::windows_core::HRESULT> { let mut result__ = ::std::mem::zeroed(); @@ -7961,13 +7194,6 @@ impl IETFilter { (::windows_core::Interface::vtable(self).SetRecordingOn)(::windows_core::Interface::as_raw(self), frecstate.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IETFilter, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IETFilter { - type Vtable = IETFilter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IETFilter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc4c4c4b1_0049_4e2b_98fb_9537f6ce516d); -} #[repr(C)] #[doc(hidden)] pub struct IETFilter_Vtbl { @@ -7978,9 +7204,8 @@ pub struct IETFilter_Vtbl { pub GetLastErrorCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetRecordingOn: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, frecstate: super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IETFilterConfig(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IETFilterConfig, IETFilterConfig_Vtbl, 0xc4c4c4d1_0049_4e2b_98fb_9537f6ce516d); +::windows_core::imp::interface_hierarchy!(IETFilterConfig, ::windows_core::IUnknown); impl IETFilterConfig { pub unsafe fn InitLicense(&self, licenseid: i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).InitLicense)(::windows_core::Interface::as_raw(self), licenseid).ok() @@ -7990,13 +7215,6 @@ impl IETFilterConfig { (::windows_core::Interface::vtable(self).GetSecureChannelObject)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IETFilterConfig, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IETFilterConfig { - type Vtable = IETFilterConfig_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IETFilterConfig { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc4c4c4d1_0049_4e2b_98fb_9537f6ce516d); -} #[repr(C)] #[doc(hidden)] pub struct IETFilterConfig_Vtbl { @@ -8004,32 +7222,25 @@ pub struct IETFilterConfig_Vtbl { pub InitLicense: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, licenseid: i32) -> ::windows_core::HRESULT, pub GetSecureChannelObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppunkdrmsecurechannel: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] -#[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IETFilterEvents(::windows_core::IUnknown); #[cfg(feature = "Win32_System_Com")] -impl IETFilterEvents {} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IETFilterEvents, + IETFilterEvents_Vtbl, + 0xc4c4c4c1_0049_4e2b_98fb_9537f6ce516d +); #[cfg(feature = "Win32_System_Com")] ::windows_core::imp::interface_hierarchy!(IETFilterEvents, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IETFilterEvents { - type Vtable = IETFilterEvents_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IETFilterEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc4c4c4c1_0049_4e2b_98fb_9537f6ce516d); -} +impl IETFilterEvents {} #[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IETFilterEvents_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumComponentTypes(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumComponentTypes, IEnumComponentTypes_Vtbl, 0x8a674b4a_1f63_11d3_b64c_00c04f79498e); +::windows_core::imp::interface_hierarchy!(IEnumComponentTypes, ::windows_core::IUnknown); impl IEnumComponentTypes { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -8047,13 +7258,6 @@ impl IEnumComponentTypes { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumComponentTypes, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumComponentTypes { - type Vtable = IEnumComponentTypes_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumComponentTypes { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8a674b4a_1f63_11d3_b64c_00c04f79498e); -} #[repr(C)] #[doc(hidden)] pub struct IEnumComponentTypes_Vtbl { @@ -8066,9 +7270,8 @@ pub struct IEnumComponentTypes_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumComponents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumComponents, IEnumComponents_Vtbl, 0x2a6e2939_2595_11d3_b64c_00c04f79498e); +::windows_core::imp::interface_hierarchy!(IEnumComponents, ::windows_core::IUnknown); impl IEnumComponents { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -8086,13 +7289,6 @@ impl IEnumComponents { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumComponents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumComponents { - type Vtable = IEnumComponents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumComponents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2a6e2939_2595_11d3_b64c_00c04f79498e); -} #[repr(C)] #[doc(hidden)] pub struct IEnumComponents_Vtbl { @@ -8105,9 +7301,8 @@ pub struct IEnumComponents_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumGuideDataProperties(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumGuideDataProperties, IEnumGuideDataProperties_Vtbl, 0xae44423b_4571_475c_ad2c_f40a771d80ef); +::windows_core::imp::interface_hierarchy!(IEnumGuideDataProperties, ::windows_core::IUnknown); impl IEnumGuideDataProperties { pub unsafe fn Next(&self, celt: u32, ppprop: *mut ::core::option::Option, pcelt: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), celt, ::core::mem::transmute(ppprop), pcelt).ok() @@ -8123,13 +7318,6 @@ impl IEnumGuideDataProperties { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumGuideDataProperties, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumGuideDataProperties { - type Vtable = IEnumGuideDataProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumGuideDataProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xae44423b_4571_475c_ad2c_f40a771d80ef); -} #[repr(C)] #[doc(hidden)] pub struct IEnumGuideDataProperties_Vtbl { @@ -8139,9 +7327,8 @@ pub struct IEnumGuideDataProperties_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumMSVidGraphSegment(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumMSVidGraphSegment, IEnumMSVidGraphSegment_Vtbl, 0x3dd2903e_e0aa_11d2_b63a_00c04f79498e); +::windows_core::imp::interface_hierarchy!(IEnumMSVidGraphSegment, ::windows_core::IUnknown); impl IEnumMSVidGraphSegment { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -8159,13 +7346,6 @@ impl IEnumMSVidGraphSegment { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumMSVidGraphSegment, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumMSVidGraphSegment { - type Vtable = IEnumMSVidGraphSegment_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumMSVidGraphSegment { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3dd2903e_e0aa_11d2_b63a_00c04f79498e); -} #[repr(C)] #[doc(hidden)] pub struct IEnumMSVidGraphSegment_Vtbl { @@ -8178,9 +7358,8 @@ pub struct IEnumMSVidGraphSegment_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumStreamBufferRecordingAttrib(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumStreamBufferRecordingAttrib, IEnumStreamBufferRecordingAttrib_Vtbl, 0xc18a9162_1e82_4142_8c73_5690fa62fe33); +::windows_core::imp::interface_hierarchy!(IEnumStreamBufferRecordingAttrib, ::windows_core::IUnknown); impl IEnumStreamBufferRecordingAttrib { pub unsafe fn Next(&self, pstreambufferattribute: &mut [STREAMBUFFER_ATTRIBUTE], pcreceived: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), pstreambufferattribute.len().try_into().unwrap(), ::core::mem::transmute(pstreambufferattribute.as_ptr()), pcreceived).ok() @@ -8196,13 +7375,6 @@ impl IEnumStreamBufferRecordingAttrib { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumStreamBufferRecordingAttrib, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumStreamBufferRecordingAttrib { - type Vtable = IEnumStreamBufferRecordingAttrib_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumStreamBufferRecordingAttrib { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc18a9162_1e82_4142_8c73_5690fa62fe33); -} #[repr(C)] #[doc(hidden)] pub struct IEnumStreamBufferRecordingAttrib_Vtbl { @@ -8212,9 +7384,8 @@ pub struct IEnumStreamBufferRecordingAttrib_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppienumstreambufferattrib: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumTuneRequests(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumTuneRequests, IEnumTuneRequests_Vtbl, 0x1993299c_ced6_4788_87a3_420067dce0c7); +::windows_core::imp::interface_hierarchy!(IEnumTuneRequests, ::windows_core::IUnknown); impl IEnumTuneRequests { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -8232,13 +7403,6 @@ impl IEnumTuneRequests { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumTuneRequests, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumTuneRequests { - type Vtable = IEnumTuneRequests_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumTuneRequests { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1993299c_ced6_4788_87a3_420067dce0c7); -} #[repr(C)] #[doc(hidden)] pub struct IEnumTuneRequests_Vtbl { @@ -8251,9 +7415,8 @@ pub struct IEnumTuneRequests_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumTuningSpaces(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumTuningSpaces, IEnumTuningSpaces_Vtbl, 0x8b8eb248_fc2b_11d2_9d8c_00c04f72d980); +::windows_core::imp::interface_hierarchy!(IEnumTuningSpaces, ::windows_core::IUnknown); impl IEnumTuningSpaces { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -8271,13 +7434,6 @@ impl IEnumTuningSpaces { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumTuningSpaces, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumTuningSpaces { - type Vtable = IEnumTuningSpaces_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumTuningSpaces { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8b8eb248_fc2b_11d2_9d8c_00c04f72d980); -} #[repr(C)] #[doc(hidden)] pub struct IEnumTuningSpaces_Vtbl { @@ -8290,11 +7446,15 @@ pub struct IEnumTuningSpaces_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEvalRat(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IEvalRat, + IEvalRat_Vtbl, + 0xc5c5c5b1_3abc_11d6_b25b_00c04fa0c026 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IEvalRat, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IEvalRat { pub unsafe fn get_BlockedRatingAttributes(&self, ensystem: EnTvRat_System, enlevel: EnTvRat_GenericLevel) -> ::windows_core::Result { @@ -8322,16 +7482,6 @@ impl IEvalRat { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IEvalRat, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IEvalRat { - type Vtable = IEvalRat_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IEvalRat { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc5c5c5b1_3abc_11d6_b25b_00c04fa0c026); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IEvalRat_Vtbl { @@ -8343,9 +7493,8 @@ pub struct IEvalRat_Vtbl { pub MostRestrictiveRating: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ensystem1: EnTvRat_System, enenlevel1: EnTvRat_GenericLevel, lbfenattr1: i32, ensystem2: EnTvRat_System, enenlevel2: EnTvRat_GenericLevel, lbfenattr2: i32, pensystem: *mut EnTvRat_System, penenlevel: *mut EnTvRat_GenericLevel, plbfenattr: *mut i32) -> ::windows_core::HRESULT, pub TestRating: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enshowsystem: EnTvRat_System, enshowlevel: EnTvRat_GenericLevel, lbfenshowattributes: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGenericDescriptor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IGenericDescriptor, IGenericDescriptor_Vtbl, 0x6a5918f8_a77a_4f61_aed0_5702bdcda3e6); +::windows_core::imp::interface_hierarchy!(IGenericDescriptor, ::windows_core::IUnknown); impl IGenericDescriptor { pub unsafe fn Initialize(&self, pbdesc: *const u8, bcount: i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Initialize)(::windows_core::Interface::as_raw(self), pbdesc, bcount).ok() @@ -8363,13 +7512,6 @@ impl IGenericDescriptor { (::windows_core::Interface::vtable(self).GetBody)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IGenericDescriptor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGenericDescriptor { - type Vtable = IGenericDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGenericDescriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6a5918f8_a77a_4f61_aed0_5702bdcda3e6); -} #[repr(C)] #[doc(hidden)] pub struct IGenericDescriptor_Vtbl { @@ -8379,9 +7521,8 @@ pub struct IGenericDescriptor_Vtbl { pub GetLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbval: *mut u8) -> ::windows_core::HRESULT, pub GetBody: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppbval: *mut *mut u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGenericDescriptor2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IGenericDescriptor2, IGenericDescriptor2_Vtbl, 0xbf02fb7e_9792_4e10_a68d_033a2cc246a5); +::windows_core::imp::interface_hierarchy!(IGenericDescriptor2, ::windows_core::IUnknown, IGenericDescriptor); impl IGenericDescriptor2 { pub unsafe fn Initialize(&self, pbdesc: *const u8, bcount: i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.Initialize)(::windows_core::Interface::as_raw(self), pbdesc, bcount).ok() @@ -8406,13 +7547,6 @@ impl IGenericDescriptor2 { (::windows_core::Interface::vtable(self).GetLength2)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IGenericDescriptor2, ::windows_core::IUnknown, IGenericDescriptor); -unsafe impl ::windows_core::Interface for IGenericDescriptor2 { - type Vtable = IGenericDescriptor2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGenericDescriptor2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbf02fb7e_9792_4e10_a68d_033a2cc246a5); -} #[repr(C)] #[doc(hidden)] pub struct IGenericDescriptor2_Vtbl { @@ -8420,31 +7554,22 @@ pub struct IGenericDescriptor2_Vtbl { pub Initialize2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbdesc: *const u8, wcount: u16) -> ::windows_core::HRESULT, pub GetLength2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwval: *mut u16) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGpnvsCommonBase(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IGpnvsCommonBase, IGpnvsCommonBase_Vtbl, 0x907e0b5c_e42d_4f04_91f0_26f401f36907); +::windows_core::imp::interface_hierarchy!(IGpnvsCommonBase, ::windows_core::IUnknown); impl IGpnvsCommonBase { pub unsafe fn GetValueUpdateName(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetValueUpdateName)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IGpnvsCommonBase, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGpnvsCommonBase { - type Vtable = IGpnvsCommonBase_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGpnvsCommonBase { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x907e0b5c_e42d_4f04_91f0_26f401f36907); -} #[repr(C)] #[doc(hidden)] pub struct IGpnvsCommonBase_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetValueUpdateName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGuideData(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IGuideData, IGuideData_Vtbl, 0x61571138_5b01_43cd_aeaf_60b784a0bf93); +::windows_core::imp::interface_hierarchy!(IGuideData, ::windows_core::IUnknown); impl IGuideData { pub unsafe fn GetServices(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -8484,13 +7609,6 @@ impl IGuideData { (::windows_core::Interface::vtable(self).GetScheduleEntryProperties)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(varscheduleentrydescriptionid), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IGuideData, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGuideData { - type Vtable = IGuideData_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGuideData { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x61571138_5b01_43cd_aeaf_60b784a0bf93); -} #[repr(C)] #[doc(hidden)] pub struct IGuideData_Vtbl { @@ -8517,9 +7635,8 @@ pub struct IGuideData_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] GetScheduleEntryProperties: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGuideDataEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IGuideDataEvent, IGuideDataEvent_Vtbl, 0xefda0c80_f395_42c3_9b3c_56b37dec7bb7); +::windows_core::imp::interface_hierarchy!(IGuideDataEvent, ::windows_core::IUnknown); impl IGuideDataEvent { pub unsafe fn GuideDataAcquired(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GuideDataAcquired)(::windows_core::Interface::as_raw(self)).ok() @@ -8555,13 +7672,6 @@ impl IGuideDataEvent { (::windows_core::Interface::vtable(self).ScheduleDeleted)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(varscheduleentrydescriptionid)).ok() } } -::windows_core::imp::interface_hierarchy!(IGuideDataEvent, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGuideDataEvent { - type Vtable = IGuideDataEvent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGuideDataEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xefda0c80_f395_42c3_9b3c_56b37dec7bb7); -} #[repr(C)] #[doc(hidden)] pub struct IGuideDataEvent_Vtbl { @@ -8592,9 +7702,8 @@ pub struct IGuideDataEvent_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] ScheduleDeleted: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGuideDataLoader(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IGuideDataLoader, IGuideDataLoader_Vtbl, 0x4764ff7c_fa95_4525_af4d_d32236db9e38); +::windows_core::imp::interface_hierarchy!(IGuideDataLoader, ::windows_core::IUnknown); impl IGuideDataLoader { pub unsafe fn Init(&self, pguidestore: P0) -> ::windows_core::Result<()> where @@ -8606,13 +7715,6 @@ impl IGuideDataLoader { (::windows_core::Interface::vtable(self).Terminate)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IGuideDataLoader, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGuideDataLoader { - type Vtable = IGuideDataLoader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGuideDataLoader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4764ff7c_fa95_4525_af4d_d32236db9e38); -} #[repr(C)] #[doc(hidden)] pub struct IGuideDataLoader_Vtbl { @@ -8620,9 +7722,8 @@ pub struct IGuideDataLoader_Vtbl { pub Init: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pguidestore: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Terminate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGuideDataProperty(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IGuideDataProperty, IGuideDataProperty_Vtbl, 0x88ec5e58_bb73_41d6_99ce_66c524b8b591); +::windows_core::imp::interface_hierarchy!(IGuideDataProperty, ::windows_core::IUnknown); impl IGuideDataProperty { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -8639,13 +7740,6 @@ impl IGuideDataProperty { (::windows_core::Interface::vtable(self).Value)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IGuideDataProperty, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGuideDataProperty { - type Vtable = IGuideDataProperty_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGuideDataProperty { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x88ec5e58_bb73_41d6_99ce_66c524b8b591); -} #[repr(C)] #[doc(hidden)] pub struct IGuideDataProperty_Vtbl { @@ -8657,11 +7751,15 @@ pub struct IGuideDataProperty_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] Value: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IISDBSLocator(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IISDBSLocator, + IISDBSLocator_Vtbl, + 0xc9897087_e29c_473f_9e4b_7072123dea14 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IISDBSLocator, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ILocator, IDigitalLocator, IDVBSLocator); #[cfg(feature = "Win32_System_Com")] impl IISDBSLocator { pub unsafe fn CarrierFrequency(&self) -> ::windows_core::Result { @@ -8759,24 +7857,13 @@ impl IISDBSLocator { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IISDBSLocator, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ILocator, IDigitalLocator, IDVBSLocator); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IISDBSLocator { - type Vtable = IISDBSLocator_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IISDBSLocator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc9897087_e29c_473f_9e4b_7072123dea14); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IISDBSLocator_Vtbl { pub base__: IDVBSLocator_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IISDB_BIT(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IISDB_BIT, IISDB_BIT_Vtbl, 0x537cd71e_0e46_4173_9001_ba043f3e49e2); +::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 @@ -8832,13 +7919,6 @@ impl IISDB_BIT { (::windows_core::Interface::vtable(self).GetVersionHash)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IISDB_BIT, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IISDB_BIT { - type Vtable = IISDB_BIT_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IISDB_BIT { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x537cd71e_0e46_4173_9001_ba043f3e49e2); -} #[repr(C)] #[doc(hidden)] pub struct IISDB_BIT_Vtbl { @@ -8857,9 +7937,8 @@ pub struct IISDB_BIT_Vtbl { pub GetRecordDescriptorByTag: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwrecordindex: u32, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetVersionHash: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwversionhash: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IISDB_CDT(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IISDB_CDT, IISDB_CDT_Vtbl, 0x25fa92c2_8b80_4787_a841_3a0e8f17984b); +::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 @@ -8912,13 +7991,6 @@ impl IISDB_CDT { (::windows_core::Interface::vtable(self).GetVersionHash)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IISDB_CDT, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IISDB_CDT { - type Vtable = IISDB_CDT_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IISDB_CDT { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x25fa92c2_8b80_4787_a841_3a0e8f17984b); -} #[repr(C)] #[doc(hidden)] pub struct IISDB_CDT_Vtbl { @@ -8936,9 +8008,8 @@ pub struct IISDB_CDT_Vtbl { pub GetDataModule: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbdata: *mut *mut u8) -> ::windows_core::HRESULT, pub GetVersionHash: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwversionhash: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IISDB_EMM(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IISDB_EMM, IISDB_EMM_Vtbl, 0x0edb556d_43ad_4938_9668_321b2ffecfd3); +::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 @@ -8972,13 +8043,6 @@ impl IISDB_EMM { (::windows_core::Interface::vtable(self).GetVersionHash)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IISDB_EMM, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IISDB_EMM { - type Vtable = IISDB_EMM_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IISDB_EMM { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0edb556d_43ad_4938_9668_321b2ffecfd3); -} #[repr(C)] #[doc(hidden)] pub struct IISDB_EMM_Vtbl { @@ -8991,9 +8055,8 @@ pub struct IISDB_EMM_Vtbl { pub GetIndividualEmmMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punknown: *mut ::core::ffi::c_void, pwlength: *mut u16, ppbmessage: *mut *mut u8) -> ::windows_core::HRESULT, pub GetVersionHash: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwversionhash: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IISDB_LDT(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IISDB_LDT, IISDB_LDT_Vtbl, 0x141a546b_02ff_4fb9_a3a3_2f074b74a9a9); +::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 @@ -9042,13 +8105,6 @@ impl IISDB_LDT { (::windows_core::Interface::vtable(self).GetVersionHash)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IISDB_LDT, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IISDB_LDT { - type Vtable = IISDB_LDT_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IISDB_LDT { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x141a546b_02ff_4fb9_a3a3_2f074b74a9a9); -} #[repr(C)] #[doc(hidden)] pub struct IISDB_LDT_Vtbl { @@ -9065,9 +8121,8 @@ pub struct IISDB_LDT_Vtbl { pub GetRecordDescriptorByTag: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwrecordindex: u32, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetVersionHash: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwversionhash: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IISDB_NBIT(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IISDB_NBIT, IISDB_NBIT_Vtbl, 0x1b1863ef_08f1_40b7_a559_3b1eff8cafa6); +::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 @@ -9132,13 +8187,6 @@ impl IISDB_NBIT { (::windows_core::Interface::vtable(self).GetVersionHash)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IISDB_NBIT, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IISDB_NBIT { - type Vtable = IISDB_NBIT_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IISDB_NBIT { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1b1863ef_08f1_40b7_a559_3b1eff8cafa6); -} #[repr(C)] #[doc(hidden)] pub struct IISDB_NBIT_Vtbl { @@ -9159,9 +8207,8 @@ pub struct IISDB_NBIT_Vtbl { pub GetRecordDescriptorByTag: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwrecordindex: u32, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetVersionHash: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwversionhash: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IISDB_SDT(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IISDB_SDT, IISDB_SDT_Vtbl, 0x3f3dc9a2_bb32_4fb9_ae9e_d856848927a3); +::windows_core::imp::interface_hierarchy!(IISDB_SDT, ::windows_core::IUnknown, IDVB_SDT); impl IISDB_SDT { pub unsafe fn Initialize(&self, psectionlist: P0, pmpegdata: P1) -> ::windows_core::Result<()> where @@ -9245,22 +8292,14 @@ impl IISDB_SDT { (::windows_core::Interface::vtable(self).GetRecordEITUserDefinedFlags)(::windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IISDB_SDT, ::windows_core::IUnknown, IDVB_SDT); -unsafe impl ::windows_core::Interface for IISDB_SDT { - type Vtable = IISDB_SDT_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IISDB_SDT { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3f3dc9a2_bb32_4fb9_ae9e_d856848927a3); -} #[repr(C)] #[doc(hidden)] pub struct IISDB_SDT_Vtbl { pub base__: IDVB_SDT_Vtbl, pub GetRecordEITUserDefinedFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwrecordindex: u32, pbval: *mut u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IISDB_SDTT(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IISDB_SDTT, IISDB_SDTT_Vtbl, 0xee60ef2d_813a_4dc7_bf92_ea13dac85313); +::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 @@ -9345,13 +8384,6 @@ impl IISDB_SDTT { (::windows_core::Interface::vtable(self).GetVersionHash)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IISDB_SDTT, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IISDB_SDTT { - type Vtable = IISDB_SDTT_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IISDB_SDTT { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xee60ef2d_813a_4dc7_bf92_ea13dac85313); -} #[repr(C)] #[doc(hidden)] pub struct IISDB_SDTT_Vtbl { @@ -9377,9 +8409,8 @@ pub struct IISDB_SDTT_Vtbl { pub GetRecordDescriptorByTag: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwrecordindex: u32, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetVersionHash: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwversionhash: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIsdbAudioComponentDescriptor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IIsdbAudioComponentDescriptor, IIsdbAudioComponentDescriptor_Vtbl, 0x679d2002_2425_4be4_a4c7_d6632a574f4d); +::windows_core::imp::interface_hierarchy!(IIsdbAudioComponentDescriptor, ::windows_core::IUnknown); impl IIsdbAudioComponentDescriptor { pub unsafe fn GetTag(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -9436,13 +8467,6 @@ impl IIsdbAudioComponentDescriptor { (::windows_core::Interface::vtable(self).GetTextW)(::windows_core::Interface::as_raw(self), convmode, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IIsdbAudioComponentDescriptor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIsdbAudioComponentDescriptor { - type Vtable = IIsdbAudioComponentDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIsdbAudioComponentDescriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x679d2002_2425_4be4_a4c7_d6632a574f4d); -} #[repr(C)] #[doc(hidden)] pub struct IIsdbAudioComponentDescriptor_Vtbl { @@ -9462,9 +8486,8 @@ pub struct IIsdbAudioComponentDescriptor_Vtbl { pub GetLanguageCode2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszcode: *mut u8) -> ::windows_core::HRESULT, pub GetTextW: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrtext: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIsdbCAContractInformationDescriptor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IIsdbCAContractInformationDescriptor, IIsdbCAContractInformationDescriptor_Vtbl, 0x08e18b25_a28f_4e92_821e_4fced5cc2291); +::windows_core::imp::interface_hierarchy!(IIsdbCAContractInformationDescriptor, ::windows_core::IUnknown); impl IIsdbCAContractInformationDescriptor { pub unsafe fn GetTag(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -9503,13 +8526,6 @@ impl IIsdbCAContractInformationDescriptor { (::windows_core::Interface::vtable(self).GetFeeNameW)(::windows_core::Interface::as_raw(self), convmode, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IIsdbCAContractInformationDescriptor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIsdbCAContractInformationDescriptor { - type Vtable = IIsdbCAContractInformationDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIsdbCAContractInformationDescriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x08e18b25_a28f_4e92_821e_4fced5cc2291); -} #[repr(C)] #[doc(hidden)] pub struct IIsdbCAContractInformationDescriptor_Vtbl { @@ -9524,9 +8540,8 @@ pub struct IIsdbCAContractInformationDescriptor_Vtbl { pub GetContractVerificationInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bbuflength: u8, pbbuf: *mut u8) -> ::windows_core::HRESULT, pub GetFeeNameW: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrname: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIsdbCADescriptor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IIsdbCADescriptor, IIsdbCADescriptor_Vtbl, 0x0570aa47_52bc_42ae_8ca5_969f41e81aea); +::windows_core::imp::interface_hierarchy!(IIsdbCADescriptor, ::windows_core::IUnknown); impl IIsdbCADescriptor { pub unsafe fn GetTag(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -9552,13 +8567,6 @@ impl IIsdbCADescriptor { (::windows_core::Interface::vtable(self).GetPrivateDataBytes)(::windows_core::Interface::as_raw(self), pbbufferlength, pbbuffer).ok() } } -::windows_core::imp::interface_hierarchy!(IIsdbCADescriptor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIsdbCADescriptor { - type Vtable = IIsdbCADescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIsdbCADescriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0570aa47_52bc_42ae_8ca5_969f41e81aea); -} #[repr(C)] #[doc(hidden)] pub struct IIsdbCADescriptor_Vtbl { @@ -9570,9 +8578,8 @@ pub struct IIsdbCADescriptor_Vtbl { pub GetCAPID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwval: *mut u16) -> ::windows_core::HRESULT, pub GetPrivateDataBytes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbbufferlength: *mut u8, pbbuffer: *mut u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIsdbCAServiceDescriptor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IIsdbCAServiceDescriptor, IIsdbCAServiceDescriptor_Vtbl, 0x39cbeb97_ff0b_42a7_9ab9_7b9cfe70a77a); +::windows_core::imp::interface_hierarchy!(IIsdbCAServiceDescriptor, ::windows_core::IUnknown); impl IIsdbCAServiceDescriptor { pub unsafe fn GetTag(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -9598,13 +8605,6 @@ impl IIsdbCAServiceDescriptor { (::windows_core::Interface::vtable(self).GetServiceIds)(::windows_core::Interface::as_raw(self), pbnumserviceids, pwserviceids).ok() } } -::windows_core::imp::interface_hierarchy!(IIsdbCAServiceDescriptor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIsdbCAServiceDescriptor { - type Vtable = IIsdbCAServiceDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIsdbCAServiceDescriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x39cbeb97_ff0b_42a7_9ab9_7b9cfe70a77a); -} #[repr(C)] #[doc(hidden)] pub struct IIsdbCAServiceDescriptor_Vtbl { @@ -9616,9 +8616,8 @@ pub struct IIsdbCAServiceDescriptor_Vtbl { pub GetMessageControl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbval: *mut u8) -> ::windows_core::HRESULT, pub GetServiceIds: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbnumserviceids: *mut u8, pwserviceids: *mut u16) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIsdbComponentGroupDescriptor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IIsdbComponentGroupDescriptor, IIsdbComponentGroupDescriptor_Vtbl, 0xa494f17f_c592_47d8_8943_64c9a34be7b9); +::windows_core::imp::interface_hierarchy!(IIsdbComponentGroupDescriptor, ::windows_core::IUnknown); impl IIsdbComponentGroupDescriptor { pub unsafe fn GetTag(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -9665,13 +8664,6 @@ impl IIsdbComponentGroupDescriptor { (::windows_core::Interface::vtable(self).GetRecordTextW)(::windows_core::Interface::as_raw(self), brecordindex, convmode, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IIsdbComponentGroupDescriptor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIsdbComponentGroupDescriptor { - type Vtable = IIsdbComponentGroupDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIsdbComponentGroupDescriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa494f17f_c592_47d8_8943_64c9a34be7b9); -} #[repr(C)] #[doc(hidden)] pub struct IIsdbComponentGroupDescriptor_Vtbl { @@ -9688,9 +8680,8 @@ pub struct IIsdbComponentGroupDescriptor_Vtbl { pub GetRecordTotalBitRate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, brecordindex: u8, pbval: *mut u8) -> ::windows_core::HRESULT, pub GetRecordTextW: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, brecordindex: u8, convmode: DVB_STRCONV_MODE, pbstrtext: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIsdbDataContentDescriptor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IIsdbDataContentDescriptor, IIsdbDataContentDescriptor_Vtbl, 0xa428100a_e646_4bd6_aa14_6087bdc08cd5); +::windows_core::imp::interface_hierarchy!(IIsdbDataContentDescriptor, ::windows_core::IUnknown); impl IIsdbDataContentDescriptor { pub unsafe fn GetTag(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -9732,13 +8723,6 @@ impl IIsdbDataContentDescriptor { (::windows_core::Interface::vtable(self).GetTextW)(::windows_core::Interface::as_raw(self), convmode, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IIsdbDataContentDescriptor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIsdbDataContentDescriptor { - type Vtable = IIsdbDataContentDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIsdbDataContentDescriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa428100a_e646_4bd6_aa14_6087bdc08cd5); -} #[repr(C)] #[doc(hidden)] pub struct IIsdbDataContentDescriptor_Vtbl { @@ -9754,9 +8738,8 @@ pub struct IIsdbDataContentDescriptor_Vtbl { pub GetLanguageCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszcode: *mut u8) -> ::windows_core::HRESULT, pub GetTextW: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrtext: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIsdbDigitalCopyControlDescriptor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IIsdbDigitalCopyControlDescriptor, IIsdbDigitalCopyControlDescriptor_Vtbl, 0x1a28417e_266a_4bb8_a4bd_d782bcfb8161); +::windows_core::imp::interface_hierarchy!(IIsdbDigitalCopyControlDescriptor, ::windows_core::IUnknown); impl IIsdbDigitalCopyControlDescriptor { pub unsafe fn GetTag(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -9777,13 +8760,6 @@ impl IIsdbDigitalCopyControlDescriptor { (::windows_core::Interface::vtable(self).GetRecordCopyControl)(::windows_core::Interface::as_raw(self), brecordindex, pbcomponenttag, pbdigitalrecordingcontroldata, pbcopycontroltype, pbapscontroldata, pbmaximumbitrate).ok() } } -::windows_core::imp::interface_hierarchy!(IIsdbDigitalCopyControlDescriptor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIsdbDigitalCopyControlDescriptor { - type Vtable = IIsdbDigitalCopyControlDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIsdbDigitalCopyControlDescriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1a28417e_266a_4bb8_a4bd_d782bcfb8161); -} #[repr(C)] #[doc(hidden)] pub struct IIsdbDigitalCopyControlDescriptor_Vtbl { @@ -9794,9 +8770,8 @@ pub struct IIsdbDigitalCopyControlDescriptor_Vtbl { pub GetCountOfRecords: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbval: *mut u8) -> ::windows_core::HRESULT, pub GetRecordCopyControl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, brecordindex: u8, pbcomponenttag: *mut u8, pbdigitalrecordingcontroldata: *mut u8, pbcopycontroltype: *mut u8, pbapscontroldata: *mut u8, pbmaximumbitrate: *mut u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIsdbDownloadContentDescriptor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IIsdbDownloadContentDescriptor, IIsdbDownloadContentDescriptor_Vtbl, 0x5298661e_cb88_4f5f_a1de_5f440c185b92); +::windows_core::imp::interface_hierarchy!(IIsdbDownloadContentDescriptor, ::windows_core::IUnknown); impl IIsdbDownloadContentDescriptor { pub unsafe fn GetTag(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -9865,13 +8840,6 @@ impl IIsdbDownloadContentDescriptor { (::windows_core::Interface::vtable(self).GetTextW)(::windows_core::Interface::as_raw(self), convmode, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IIsdbDownloadContentDescriptor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIsdbDownloadContentDescriptor { - type Vtable = IIsdbDownloadContentDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIsdbDownloadContentDescriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5298661e_cb88_4f5f_a1de_5f440c185b92); -} #[repr(C)] #[doc(hidden)] pub struct IIsdbDownloadContentDescriptor_Vtbl { @@ -9894,9 +8862,8 @@ pub struct IIsdbDownloadContentDescriptor_Vtbl { pub GetTextLanguageCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, szcode: *mut u8) -> ::windows_core::HRESULT, pub GetTextW: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrname: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIsdbEmergencyInformationDescriptor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IIsdbEmergencyInformationDescriptor, IIsdbEmergencyInformationDescriptor_Vtbl, 0xba6fa681_b973_4da1_9207_ac3e7f0341eb); +::windows_core::imp::interface_hierarchy!(IIsdbEmergencyInformationDescriptor, ::windows_core::IUnknown); impl IIsdbEmergencyInformationDescriptor { pub unsafe fn GetTag(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -9926,13 +8893,6 @@ impl IIsdbEmergencyInformationDescriptor { (::windows_core::Interface::vtable(self).GetAreaCode)(::windows_core::Interface::as_raw(self), brecordindex, ppwval, pbnumareacodes).ok() } } -::windows_core::imp::interface_hierarchy!(IIsdbEmergencyInformationDescriptor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIsdbEmergencyInformationDescriptor { - type Vtable = IIsdbEmergencyInformationDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIsdbEmergencyInformationDescriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xba6fa681_b973_4da1_9207_ac3e7f0341eb); -} #[repr(C)] #[doc(hidden)] pub struct IIsdbEmergencyInformationDescriptor_Vtbl { @@ -9945,9 +8905,8 @@ pub struct IIsdbEmergencyInformationDescriptor_Vtbl { pub GetSignalLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, brecordindex: u8, pbval: *mut u8) -> ::windows_core::HRESULT, pub GetAreaCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, brecordindex: u8, ppwval: *mut *mut u16, pbnumareacodes: *mut u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIsdbEventGroupDescriptor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IIsdbEventGroupDescriptor, IIsdbEventGroupDescriptor_Vtbl, 0x94b06780_2e2a_44dc_a966_cc56fdabc6c2); +::windows_core::imp::interface_hierarchy!(IIsdbEventGroupDescriptor, ::windows_core::IUnknown); impl IIsdbEventGroupDescriptor { pub unsafe fn GetTag(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -9976,13 +8935,6 @@ impl IIsdbEventGroupDescriptor { (::windows_core::Interface::vtable(self).GetRefRecordEvent)(::windows_core::Interface::as_raw(self), brecordindex, pworiginalnetworkid, pwtransportstreamid, pwserviceid, pweventid).ok() } } -::windows_core::imp::interface_hierarchy!(IIsdbEventGroupDescriptor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIsdbEventGroupDescriptor { - type Vtable = IIsdbEventGroupDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIsdbEventGroupDescriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x94b06780_2e2a_44dc_a966_cc56fdabc6c2); -} #[repr(C)] #[doc(hidden)] pub struct IIsdbEventGroupDescriptor_Vtbl { @@ -9995,9 +8947,8 @@ pub struct IIsdbEventGroupDescriptor_Vtbl { pub GetCountOfRefRecords: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbval: *mut u8) -> ::windows_core::HRESULT, pub GetRefRecordEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, brecordindex: u8, pworiginalnetworkid: *mut u16, pwtransportstreamid: *mut u16, pwserviceid: *mut u16, pweventid: *mut u16) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIsdbHierarchicalTransmissionDescriptor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IIsdbHierarchicalTransmissionDescriptor, IIsdbHierarchicalTransmissionDescriptor_Vtbl, 0xb7b3ae90_ee0b_446d_8769_f7e2aa266aa6); +::windows_core::imp::interface_hierarchy!(IIsdbHierarchicalTransmissionDescriptor, ::windows_core::IUnknown); impl IIsdbHierarchicalTransmissionDescriptor { pub unsafe fn GetTag(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -10024,13 +8975,6 @@ impl IIsdbHierarchicalTransmissionDescriptor { (::windows_core::Interface::vtable(self).GetReferencePid)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IIsdbHierarchicalTransmissionDescriptor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIsdbHierarchicalTransmissionDescriptor { - type Vtable = IIsdbHierarchicalTransmissionDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIsdbHierarchicalTransmissionDescriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb7b3ae90_ee0b_446d_8769_f7e2aa266aa6); -} #[repr(C)] #[doc(hidden)] pub struct IIsdbHierarchicalTransmissionDescriptor_Vtbl { @@ -10042,9 +8986,8 @@ pub struct IIsdbHierarchicalTransmissionDescriptor_Vtbl { pub GetFutureUse2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbval: *mut u8) -> ::windows_core::HRESULT, pub GetReferencePid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwval: *mut u16) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIsdbLogoTransmissionDescriptor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IIsdbLogoTransmissionDescriptor, IIsdbLogoTransmissionDescriptor_Vtbl, 0xe0103f49_4ae1_4f07_9098_756db1fa88cd); +::windows_core::imp::interface_hierarchy!(IIsdbLogoTransmissionDescriptor, ::windows_core::IUnknown); impl IIsdbLogoTransmissionDescriptor { pub unsafe fn GetTag(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -10075,13 +9018,6 @@ impl IIsdbLogoTransmissionDescriptor { (::windows_core::Interface::vtable(self).GetLogoCharW)(::windows_core::Interface::as_raw(self), convmode, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IIsdbLogoTransmissionDescriptor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIsdbLogoTransmissionDescriptor { - type Vtable = IIsdbLogoTransmissionDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIsdbLogoTransmissionDescriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe0103f49_4ae1_4f07_9098_756db1fa88cd); -} #[repr(C)] #[doc(hidden)] pub struct IIsdbLogoTransmissionDescriptor_Vtbl { @@ -10094,9 +9030,8 @@ pub struct IIsdbLogoTransmissionDescriptor_Vtbl { pub GetDownloadDataId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwval: *mut u16) -> ::windows_core::HRESULT, pub GetLogoCharW: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrchar: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIsdbSIParameterDescriptor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IIsdbSIParameterDescriptor, IIsdbSIParameterDescriptor_Vtbl, 0xf837dc36_867c_426a_9111_f62093951a45); +::windows_core::imp::interface_hierarchy!(IIsdbSIParameterDescriptor, ::windows_core::IUnknown); impl IIsdbSIParameterDescriptor { pub unsafe fn GetTag(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -10130,13 +9065,6 @@ impl IIsdbSIParameterDescriptor { (::windows_core::Interface::vtable(self).GetTableDescriptionBytes)(::windows_core::Interface::as_raw(self), brecordindex, pbbufferlength, pbbuffer).ok() } } -::windows_core::imp::interface_hierarchy!(IIsdbSIParameterDescriptor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIsdbSIParameterDescriptor { - type Vtable = IIsdbSIParameterDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIsdbSIParameterDescriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf837dc36_867c_426a_9111_f62093951a45); -} #[repr(C)] #[doc(hidden)] pub struct IIsdbSIParameterDescriptor_Vtbl { @@ -10150,9 +9078,8 @@ pub struct IIsdbSIParameterDescriptor_Vtbl { pub GetTableDescriptionLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, brecordindex: u8, pbval: *mut u8) -> ::windows_core::HRESULT, pub GetTableDescriptionBytes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, brecordindex: u8, pbbufferlength: *mut u8, pbbuffer: *mut u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIsdbSeriesDescriptor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IIsdbSeriesDescriptor, IIsdbSeriesDescriptor_Vtbl, 0x07ef6370_1660_4f26_87fc_614adab24b11); +::windows_core::imp::interface_hierarchy!(IIsdbSeriesDescriptor, ::windows_core::IUnknown); impl IIsdbSeriesDescriptor { pub unsafe fn GetTag(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -10190,13 +9117,6 @@ impl IIsdbSeriesDescriptor { (::windows_core::Interface::vtable(self).GetSeriesNameW)(::windows_core::Interface::as_raw(self), convmode, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IIsdbSeriesDescriptor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIsdbSeriesDescriptor { - type Vtable = IIsdbSeriesDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIsdbSeriesDescriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x07ef6370_1660_4f26_87fc_614adab24b11); -} #[repr(C)] #[doc(hidden)] pub struct IIsdbSeriesDescriptor_Vtbl { @@ -10211,9 +9131,8 @@ pub struct IIsdbSeriesDescriptor_Vtbl { pub GetLastEpisodeNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwval: *mut u16) -> ::windows_core::HRESULT, pub GetSeriesNameW: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrname: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIsdbSiParser2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IIsdbSiParser2, IIsdbSiParser2_Vtbl, 0x900e4bb7_18cd_453f_98be_3be6aa211772); +::windows_core::imp::interface_hierarchy!(IIsdbSiParser2, ::windows_core::IUnknown, IDvbSiParser, IDvbSiParser2); impl IIsdbSiParser2 { pub unsafe fn Initialize(&self, punkmpeg2data: P0) -> ::windows_core::Result<()> where @@ -10310,13 +9229,6 @@ impl IIsdbSiParser2 { (::windows_core::Interface::vtable(self).GetEMM)(::windows_core::Interface::as_raw(self), pid, wtableidext, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IIsdbSiParser2, ::windows_core::IUnknown, IDvbSiParser, IDvbSiParser2); -unsafe impl ::windows_core::Interface for IIsdbSiParser2 { - type Vtable = IIsdbSiParser2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIsdbSiParser2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x900e4bb7_18cd_453f_98be_3be6aa211772); -} #[repr(C)] #[doc(hidden)] pub struct IIsdbSiParser2_Vtbl { @@ -10329,9 +9241,8 @@ pub struct IIsdbSiParser2_Vtbl { pub GetCDT: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, tableid: u8, bsectionnumber: u8, pwdownloaddataid: *const u16, ppcdt: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetEMM: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pid: u16, wtableidext: u16, ppemm: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIsdbTSInformationDescriptor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IIsdbTSInformationDescriptor, IIsdbTSInformationDescriptor_Vtbl, 0xd7ad183e_38f5_4210_b55f_ec8d601bbd47); +::windows_core::imp::interface_hierarchy!(IIsdbTSInformationDescriptor, ::windows_core::IUnknown); impl IIsdbTSInformationDescriptor { pub unsafe fn GetTag(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -10366,13 +9277,6 @@ impl IIsdbTSInformationDescriptor { (::windows_core::Interface::vtable(self).GetRecordServiceIdByIndex)(::windows_core::Interface::as_raw(self), brecordindex, bserviceindex, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IIsdbTSInformationDescriptor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIsdbTSInformationDescriptor { - type Vtable = IIsdbTSInformationDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIsdbTSInformationDescriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd7ad183e_38f5_4210_b55f_ec8d601bbd47); -} #[repr(C)] #[doc(hidden)] pub struct IIsdbTSInformationDescriptor_Vtbl { @@ -10386,9 +9290,8 @@ pub struct IIsdbTSInformationDescriptor_Vtbl { pub GetRecordNumberOfServices: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, brecordindex: u8, pbval: *mut u8) -> ::windows_core::HRESULT, pub GetRecordServiceIdByIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, brecordindex: u8, bserviceindex: u8, pdwval: *mut u16) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIsdbTerrestrialDeliverySystemDescriptor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IIsdbTerrestrialDeliverySystemDescriptor, IIsdbTerrestrialDeliverySystemDescriptor_Vtbl, 0x39fae0a6_d151_44dd_a28a_765de5991670); +::windows_core::imp::interface_hierarchy!(IIsdbTerrestrialDeliverySystemDescriptor, ::windows_core::IUnknown); impl IIsdbTerrestrialDeliverySystemDescriptor { pub unsafe fn GetTag(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -10419,13 +9322,6 @@ impl IIsdbTerrestrialDeliverySystemDescriptor { (::windows_core::Interface::vtable(self).GetRecordFrequency)(::windows_core::Interface::as_raw(self), brecordindex, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IIsdbTerrestrialDeliverySystemDescriptor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIsdbTerrestrialDeliverySystemDescriptor { - type Vtable = IIsdbTerrestrialDeliverySystemDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIsdbTerrestrialDeliverySystemDescriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x39fae0a6_d151_44dd_a28a_765de5991670); -} #[repr(C)] #[doc(hidden)] pub struct IIsdbTerrestrialDeliverySystemDescriptor_Vtbl { @@ -10438,11 +9334,15 @@ pub struct IIsdbTerrestrialDeliverySystemDescriptor_Vtbl { pub GetCountOfRecords: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbval: *mut u8) -> ::windows_core::HRESULT, pub GetRecordFrequency: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, brecordindex: u8, pdwval: *mut u32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILanguageComponentType(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ILanguageComponentType, + ILanguageComponentType_Vtbl, + 0xb874c8ba_0fa2_11d3_9d8e_00c04f72d980 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ILanguageComponentType, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IComponentType); #[cfg(feature = "Win32_System_Com")] impl ILanguageComponentType { pub unsafe fn Category(&self) -> ::windows_core::Result { @@ -10529,16 +9429,6 @@ impl ILanguageComponentType { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ILanguageComponentType, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IComponentType); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ILanguageComponentType { - type Vtable = ILanguageComponentType_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ILanguageComponentType { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb874c8ba_0fa2_11d3_9d8e_00c04f72d980); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ILanguageComponentType_Vtbl { @@ -10546,11 +9436,15 @@ pub struct ILanguageComponentType_Vtbl { pub LangID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, langid: *mut i32) -> ::windows_core::HRESULT, pub SetLangID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, langid: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILocator(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ILocator, + ILocator_Vtbl, + 0x286d7f89_760c_4f89_80c4_66841d2507aa +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ILocator, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ILocator { pub unsafe fn CarrierFrequency(&self) -> ::windows_core::Result { @@ -10610,16 +9504,6 @@ impl ILocator { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ILocator, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ILocator { - type Vtable = ILocator_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ILocator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x286d7f89_760c_4f89_80c4_66841d2507aa); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ILocator_Vtbl { @@ -10643,11 +9527,15 @@ pub struct ILocator_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Clone: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMPEG2Component(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMPEG2Component, + IMPEG2Component_Vtbl, + 0x1493e353_1eb6_473c_802d_8e6b8ec9d2a9 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMPEG2Component, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IComponent); #[cfg(feature = "Win32_System_Com")] impl IMPEG2Component { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -10717,16 +9605,6 @@ impl IMPEG2Component { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMPEG2Component, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IComponent); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMPEG2Component { - type Vtable = IMPEG2Component_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMPEG2Component { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1493e353_1eb6_473c_802d_8e6b8ec9d2a9); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMPEG2Component_Vtbl { @@ -10738,11 +9616,15 @@ pub struct IMPEG2Component_Vtbl { pub ProgramNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, programnumber: *mut i32) -> ::windows_core::HRESULT, pub SetProgramNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, programnumber: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMPEG2ComponentType(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMPEG2ComponentType, + IMPEG2ComponentType_Vtbl, + 0x2c073d84_b51c_48c9_aa9f_68971e1f6e38 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMPEG2ComponentType, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IComponentType, ILanguageComponentType); #[cfg(feature = "Win32_System_Com")] impl IMPEG2ComponentType { pub unsafe fn Category(&self) -> ::windows_core::Result { @@ -10836,16 +9718,6 @@ impl IMPEG2ComponentType { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMPEG2ComponentType, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IComponentType, ILanguageComponentType); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMPEG2ComponentType { - type Vtable = IMPEG2ComponentType_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMPEG2ComponentType { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2c073d84_b51c_48c9_aa9f_68971e1f6e38); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMPEG2ComponentType_Vtbl { @@ -10853,11 +9725,15 @@ pub struct IMPEG2ComponentType_Vtbl { pub StreamType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mp2streamtype: *mut super::MPEG2StreamType) -> ::windows_core::HRESULT, pub SetStreamType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mp2streamtype: super::MPEG2StreamType) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMPEG2TuneRequest(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMPEG2TuneRequest, + IMPEG2TuneRequest_Vtbl, + 0xeb7d987f_8a01_42ad_b8ae_574deee44d1a +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMPEG2TuneRequest, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ITuneRequest); #[cfg(feature = "Win32_System_Com")] impl IMPEG2TuneRequest { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -10908,16 +9784,6 @@ impl IMPEG2TuneRequest { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMPEG2TuneRequest, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ITuneRequest); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMPEG2TuneRequest { - type Vtable = IMPEG2TuneRequest_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMPEG2TuneRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeb7d987f_8a01_42ad_b8ae_574deee44d1a); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMPEG2TuneRequest_Vtbl { @@ -10927,11 +9793,15 @@ pub struct IMPEG2TuneRequest_Vtbl { pub ProgNo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, progno: *mut i32) -> ::windows_core::HRESULT, pub SetProgNo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, progno: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMPEG2TuneRequestFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMPEG2TuneRequestFactory, + IMPEG2TuneRequestFactory_Vtbl, + 0x14e11abd_ee37_4893_9ea1_6964de933e39 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMPEG2TuneRequestFactory, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMPEG2TuneRequestFactory { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -10945,16 +9815,6 @@ impl IMPEG2TuneRequestFactory { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMPEG2TuneRequestFactory, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMPEG2TuneRequestFactory { - type Vtable = IMPEG2TuneRequestFactory_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMPEG2TuneRequestFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x14e11abd_ee37_4893_9ea1_6964de933e39); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMPEG2TuneRequestFactory_Vtbl { @@ -10964,25 +9824,16 @@ pub struct IMPEG2TuneRequestFactory_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] CreateTuneRequest: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMPEG2TuneRequestSupport(::windows_core::IUnknown); -impl IMPEG2TuneRequestSupport {} +::windows_core::imp::com_interface!(IMPEG2TuneRequestSupport, IMPEG2TuneRequestSupport_Vtbl, 0x1b9d5fc3_5bbc_4b6c_bb18_b9d10e3eeebf); ::windows_core::imp::interface_hierarchy!(IMPEG2TuneRequestSupport, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMPEG2TuneRequestSupport { - type Vtable = IMPEG2TuneRequestSupport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMPEG2TuneRequestSupport { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1b9d5fc3_5bbc_4b6c_bb18_b9d10e3eeebf); -} +impl IMPEG2TuneRequestSupport {} #[repr(C)] #[doc(hidden)] pub struct IMPEG2TuneRequestSupport_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMPEG2_TIF_CONTROL(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMPEG2_TIF_CONTROL, IMPEG2_TIF_CONTROL_Vtbl, 0xf9bac2f9_4149_4916_b2ef_faa202326862); +::windows_core::imp::interface_hierarchy!(IMPEG2_TIF_CONTROL, ::windows_core::IUnknown); impl IMPEG2_TIF_CONTROL { pub unsafe fn RegisterTIF(&self, punktif: P0, ppvregistrationcontext: *mut u32) -> ::windows_core::Result<()> where @@ -11007,13 +9858,6 @@ impl IMPEG2_TIF_CONTROL { (::windows_core::Interface::vtable(self).GetPIDs)(::windows_core::Interface::as_raw(self), pulcpids, pulpids).ok() } } -::windows_core::imp::interface_hierarchy!(IMPEG2_TIF_CONTROL, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMPEG2_TIF_CONTROL { - type Vtable = IMPEG2_TIF_CONTROL_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMPEG2_TIF_CONTROL { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf9bac2f9_4149_4916_b2ef_faa202326862); -} #[repr(C)] #[doc(hidden)] pub struct IMPEG2_TIF_CONTROL_Vtbl { @@ -11025,11 +9869,15 @@ pub struct IMPEG2_TIF_CONTROL_Vtbl { pub GetPIDCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pulcpids: *mut u32) -> ::windows_core::HRESULT, pub GetPIDs: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pulcpids: *mut u32, pulpids: *mut u32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSEventBinder(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSEventBinder, + IMSEventBinder_Vtbl, + 0xc3a9f406_2222_436d_86d5_ba3229279efb +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSEventBinder, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMSEventBinder { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -11048,16 +9896,6 @@ impl IMSEventBinder { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSEventBinder, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSEventBinder { - type Vtable = IMSEventBinder_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSEventBinder { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc3a9f406_2222_436d_86d5_ba3229279efb); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSEventBinder_Vtbl { @@ -11068,11 +9906,15 @@ pub struct IMSEventBinder_Vtbl { Bind: usize, pub Unbind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cancelcookie: u32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSVidAnalogTuner(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSVidAnalogTuner, + IMSVidAnalogTuner_Vtbl, + 0x1c15d47e_911d_11d2_b632_00c04f79498e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSVidAnalogTuner, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDevice, IMSVidInputDevice, IMSVidVideoInputDevice, IMSVidTuner); #[cfg(feature = "Win32_System_Com")] impl IMSVidAnalogTuner { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -11194,16 +10036,6 @@ impl IMSVidAnalogTuner { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSVidAnalogTuner, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDevice, IMSVidInputDevice, IMSVidVideoInputDevice, IMSVidTuner); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSVidAnalogTuner { - type Vtable = IMSVidAnalogTuner_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSVidAnalogTuner { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1c15d47e_911d_11d2_b632_00c04f79498e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSVidAnalogTuner_Vtbl { @@ -11218,11 +10050,15 @@ pub struct IMSVidAnalogTuner_Vtbl { pub SetSAP: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fsapon: super::super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub ChannelAvailable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nchannel: i32, signalstrength: *mut i32, fsignalpresent: *mut super::super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSVidAnalogTuner2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSVidAnalogTuner2, + IMSVidAnalogTuner2_Vtbl, + 0x37647bf7_3dde_4cc8_a4dc_0d534d3d0037 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSVidAnalogTuner2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDevice, IMSVidInputDevice, IMSVidVideoInputDevice, IMSVidTuner, IMSVidAnalogTuner); #[cfg(feature = "Win32_System_Com")] impl IMSVidAnalogTuner2 { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -11356,16 +10192,6 @@ impl IMSVidAnalogTuner2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSVidAnalogTuner2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDevice, IMSVidInputDevice, IMSVidVideoInputDevice, IMSVidTuner, IMSVidAnalogTuner); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSVidAnalogTuner2 { - type Vtable = IMSVidAnalogTuner2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSVidAnalogTuner2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x37647bf7_3dde_4cc8_a4dc_0d534d3d0037); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSVidAnalogTuner2_Vtbl { @@ -11374,11 +10200,15 @@ pub struct IMSVidAnalogTuner2_Vtbl { pub TunerModes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, modes: *mut i32) -> ::windows_core::HRESULT, pub NumAuxInputs: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, inputs: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSVidAnalogTunerEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSVidAnalogTunerEvent, + IMSVidAnalogTunerEvent_Vtbl, + 0x1c15d486_911d_11d2_b632_00c04f79498e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSVidAnalogTunerEvent, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidInputDeviceEvent, IMSVidTunerEvent); #[cfg(feature = "Win32_System_Com")] impl IMSVidAnalogTunerEvent { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -11391,28 +10221,22 @@ impl IMSVidAnalogTunerEvent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSVidAnalogTunerEvent, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidInputDeviceEvent, IMSVidTunerEvent); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSVidAnalogTunerEvent { - type Vtable = IMSVidAnalogTunerEvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSVidAnalogTunerEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1c15d486_911d_11d2_b632_00c04f79498e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSVidAnalogTunerEvent_Vtbl { pub base__: IMSVidTunerEvent_Vtbl, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSVidAudioRenderer(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSVidAudioRenderer, + IMSVidAudioRenderer_Vtbl, + 0x37b0353f_a4c8_11d2_b634_00c04f79498e +); #[cfg(feature = "Win32_System_Com")] -impl IMSVidAudioRenderer { +::windows_core::imp::interface_hierarchy!(IMSVidAudioRenderer, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDevice, IMSVidOutputDevice); +#[cfg(feature = "Win32_System_Com")] +impl IMSVidAudioRenderer { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).base__.base__.Name)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) @@ -11472,16 +10296,6 @@ impl IMSVidAudioRenderer { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSVidAudioRenderer, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDevice, IMSVidOutputDevice); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSVidAudioRenderer { - type Vtable = IMSVidAudioRenderer_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSVidAudioRenderer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x37b0353f_a4c8_11d2_b634_00c04f79498e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSVidAudioRenderer_Vtbl { @@ -11491,11 +10305,15 @@ pub struct IMSVidAudioRenderer_Vtbl { pub SetBalance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lbal: i32) -> ::windows_core::HRESULT, pub Balance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lbal: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSVidAudioRendererDevices(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSVidAudioRendererDevices, + IMSVidAudioRendererDevices_Vtbl, + 0xc5702cd4_9b79_11d3_b654_00c04f79498e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSVidAudioRendererDevices, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMSVidAudioRendererDevices { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -11529,16 +10347,6 @@ impl IMSVidAudioRendererDevices { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSVidAudioRendererDevices, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSVidAudioRendererDevices { - type Vtable = IMSVidAudioRendererDevices_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSVidAudioRendererDevices { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc5702cd4_9b79_11d3_b654_00c04f79498e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSVidAudioRendererDevices_Vtbl { @@ -11561,11 +10369,15 @@ pub struct IMSVidAudioRendererDevices_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] Remove: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSVidAudioRendererEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSVidAudioRendererEvent, + IMSVidAudioRendererEvent_Vtbl, + 0x37b03541_a4c8_11d2_b634_00c04f79498e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSVidAudioRendererEvent, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDeviceEvent, IMSVidOutputDeviceEvent); #[cfg(feature = "Win32_System_Com")] impl IMSVidAudioRendererEvent { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -11578,26 +10390,20 @@ impl IMSVidAudioRendererEvent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSVidAudioRendererEvent, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDeviceEvent, IMSVidOutputDeviceEvent); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSVidAudioRendererEvent { - type Vtable = IMSVidAudioRendererEvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSVidAudioRendererEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x37b03541_a4c8_11d2_b634_00c04f79498e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSVidAudioRendererEvent_Vtbl { pub base__: IMSVidOutputDeviceEvent_Vtbl, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSVidAudioRendererEvent2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSVidAudioRendererEvent2, + IMSVidAudioRendererEvent2_Vtbl, + 0xe3f55729_353b_4c43_a028_50f79aa9a907 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSVidAudioRendererEvent2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDeviceEvent, IMSVidOutputDeviceEvent, IMSVidAudioRendererEvent); #[cfg(feature = "Win32_System_Com")] impl IMSVidAudioRendererEvent2 { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -11634,16 +10440,6 @@ impl IMSVidAudioRendererEvent2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSVidAudioRendererEvent2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDeviceEvent, IMSVidOutputDeviceEvent, IMSVidAudioRendererEvent); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSVidAudioRendererEvent2 { - type Vtable = IMSVidAudioRendererEvent2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSVidAudioRendererEvent2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe3f55729_353b_4c43_a028_50f79aa9a907); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSVidAudioRendererEvent2_Vtbl { @@ -11657,11 +10453,15 @@ pub struct IMSVidAudioRendererEvent2_Vtbl { pub AVDecCommonInputFormat: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub AVDecCommonOutputFormat: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSVidClosedCaptioning(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSVidClosedCaptioning, + IMSVidClosedCaptioning_Vtbl, + 0x99652ea1_c1f7_414f_bb7b_1c967de75983 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSVidClosedCaptioning, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDevice, IMSVidFeature); #[cfg(feature = "Win32_System_Com")] impl IMSVidClosedCaptioning { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -11719,16 +10519,6 @@ impl IMSVidClosedCaptioning { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSVidClosedCaptioning, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDevice, IMSVidFeature); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSVidClosedCaptioning { - type Vtable = IMSVidClosedCaptioning_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSVidClosedCaptioning { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x99652ea1_c1f7_414f_bb7b_1c967de75983); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSVidClosedCaptioning_Vtbl { @@ -11736,11 +10526,15 @@ pub struct IMSVidClosedCaptioning_Vtbl { pub Enable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, on: *mut super::super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub SetEnable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, on: super::super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSVidClosedCaptioning2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSVidClosedCaptioning2, + IMSVidClosedCaptioning2_Vtbl, + 0xe00cb864_a029_4310_9987_a873f5887d97 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSVidClosedCaptioning2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDevice, IMSVidFeature, IMSVidClosedCaptioning); #[cfg(feature = "Win32_System_Com")] impl IMSVidClosedCaptioning2 { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -11805,16 +10599,6 @@ impl IMSVidClosedCaptioning2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSVidClosedCaptioning2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDevice, IMSVidFeature, IMSVidClosedCaptioning); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSVidClosedCaptioning2 { - type Vtable = IMSVidClosedCaptioning2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSVidClosedCaptioning2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe00cb864_a029_4310_9987_a873f5887d97); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSVidClosedCaptioning2_Vtbl { @@ -11822,11 +10606,15 @@ pub struct IMSVidClosedCaptioning2_Vtbl { pub Service: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, on: *mut MSVidCCService) -> ::windows_core::HRESULT, pub SetService: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, on: MSVidCCService) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSVidClosedCaptioning3(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSVidClosedCaptioning3, + IMSVidClosedCaptioning3_Vtbl, + 0xc8638e8a_7625_4c51_9366_2f40a9831fc0 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSVidClosedCaptioning3, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDevice, IMSVidFeature, IMSVidClosedCaptioning, IMSVidClosedCaptioning2); #[cfg(feature = "Win32_System_Com")] impl IMSVidClosedCaptioning3 { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -11895,27 +10683,21 @@ impl IMSVidClosedCaptioning3 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSVidClosedCaptioning3, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDevice, IMSVidFeature, IMSVidClosedCaptioning, IMSVidClosedCaptioning2); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSVidClosedCaptioning3 { - type Vtable = IMSVidClosedCaptioning3_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSVidClosedCaptioning3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc8638e8a_7625_4c51_9366_2f40a9831fc0); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSVidClosedCaptioning3_Vtbl { pub base__: IMSVidClosedCaptioning2_Vtbl, pub TeleTextFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punkttfilter: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSVidCompositionSegment(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSVidCompositionSegment, + IMSVidCompositionSegment_Vtbl, + 0x1c15d483_911d_11d2_b632_00c04f79498e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSVidCompositionSegment, ::windows_core::IUnknown, super::super::super::System::Com::IPersist, IMSVidGraphSegment); #[cfg(feature = "Win32_System_Com")] impl IMSVidCompositionSegment { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -12003,16 +10785,6 @@ impl IMSVidCompositionSegment { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSVidCompositionSegment, ::windows_core::IUnknown, super::super::super::System::Com::IPersist, IMSVidGraphSegment); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSVidCompositionSegment { - type Vtable = IMSVidCompositionSegment_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSVidCompositionSegment { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1c15d483_911d_11d2_b632_00c04f79498e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSVidCompositionSegment_Vtbl { @@ -12030,11 +10802,15 @@ pub struct IMSVidCompositionSegment_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Down: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSVidCtl(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSVidCtl, + IMSVidCtl_Vtbl, + 0xb0edf162_910a_11d2_b632_00c04f79498e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSVidCtl, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMSVidCtl { pub unsafe fn AutoSize(&self) -> ::windows_core::Result { @@ -12260,16 +11036,6 @@ impl IMSVidCtl { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSVidCtl, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSVidCtl { - type Vtable = IMSVidCtl_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSVidCtl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb0edf162_910a_11d2_b632_00c04f79498e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSVidCtl_Vtbl { @@ -12375,11 +11141,15 @@ pub struct IMSVidCtl_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] ViewNext: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSVidDataServices(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSVidDataServices, + IMSVidDataServices_Vtbl, + 0x334125c1_77e5_11d3_b653_00c04f79498e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSVidDataServices, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDevice, IMSVidFeature); #[cfg(feature = "Win32_System_Com")] impl IMSVidDataServices { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -12427,26 +11197,20 @@ impl IMSVidDataServices { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSVidDataServices, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDevice, IMSVidFeature); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSVidDataServices { - type Vtable = IMSVidDataServices_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSVidDataServices { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x334125c1_77e5_11d3_b653_00c04f79498e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSVidDataServices_Vtbl { pub base__: IMSVidFeature_Vtbl, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSVidDataServicesEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSVidDataServicesEvent, + IMSVidDataServicesEvent_Vtbl, + 0x334125c2_77e5_11d3_b653_00c04f79498e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSVidDataServicesEvent, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDeviceEvent); #[cfg(feature = "Win32_System_Com")] impl IMSVidDataServicesEvent { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -12459,26 +11223,20 @@ impl IMSVidDataServicesEvent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSVidDataServicesEvent, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDeviceEvent); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSVidDataServicesEvent { - type Vtable = IMSVidDataServicesEvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSVidDataServicesEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x334125c2_77e5_11d3_b653_00c04f79498e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSVidDataServicesEvent_Vtbl { pub base__: IMSVidDeviceEvent_Vtbl, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSVidDevice(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSVidDevice, + IMSVidDevice_Vtbl, + 0x1c15d47c_911d_11d2_b632_00c04f79498e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSVidDevice, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMSVidDevice { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -12526,16 +11284,6 @@ impl IMSVidDevice { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSVidDevice, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSVidDevice { - type Vtable = IMSVidDevice_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSVidDevice { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1c15d47c_911d_11d2_b632_00c04f79498e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSVidDevice_Vtbl { @@ -12553,33 +11301,29 @@ pub struct IMSVidDevice_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] IsEqualDevice: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSVidDevice2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMSVidDevice2, IMSVidDevice2_Vtbl, 0x87bd2783_ebc0_478c_b4a0_e8e7f43ab78e); +::windows_core::imp::interface_hierarchy!(IMSVidDevice2, ::windows_core::IUnknown); impl IMSVidDevice2 { pub unsafe fn DevicePath(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).DevicePath)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMSVidDevice2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMSVidDevice2 { - type Vtable = IMSVidDevice2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMSVidDevice2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x87bd2783_ebc0_478c_b4a0_e8e7f43ab78e); -} #[repr(C)] #[doc(hidden)] pub struct IMSVidDevice2_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub DevicePath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, devpath: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSVidDeviceEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSVidDeviceEvent, + IMSVidDeviceEvent_Vtbl, + 0x1c15d480_911d_11d2_b632_00c04f79498e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSVidDeviceEvent, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMSVidDeviceEvent { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -12592,16 +11336,6 @@ impl IMSVidDeviceEvent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSVidDeviceEvent, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSVidDeviceEvent { - type Vtable = IMSVidDeviceEvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSVidDeviceEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1c15d480_911d_11d2_b632_00c04f79498e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSVidDeviceEvent_Vtbl { @@ -12611,11 +11345,15 @@ pub struct IMSVidDeviceEvent_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] StateChange: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSVidEVR(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSVidEVR, + IMSVidEVR_Vtbl, + 0x15e496ae_82a8_4cf9_a6b6_c561dc60398f +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSVidEVR, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDevice, IMSVidOutputDevice, IMSVidVideoRenderer); #[cfg(feature = "Win32_System_Com")] impl IMSVidEVR { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -12843,16 +11581,6 @@ impl IMSVidEVR { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSVidEVR, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDevice, IMSVidOutputDevice, IMSVidVideoRenderer); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSVidEVR { - type Vtable = IMSVidEVR_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSVidEVR { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x15e496ae_82a8_4cf9_a6b6_c561dc60398f); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSVidEVR_Vtbl { @@ -12868,11 +11596,15 @@ pub struct IMSVidEVR_Vtbl { pub SetSuppressEffects: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bsuppress: super::super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub SuppressEffects: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bsuppress: *mut super::super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSVidEVREvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSVidEVREvent, + IMSVidEVREvent_Vtbl, + 0x349abb10_883c_4f22_8714_cecaeee45d62 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSVidEVREvent, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDeviceEvent, IMSVidOutputDeviceEvent); #[cfg(feature = "Win32_System_Com")] impl IMSVidEVREvent { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -12888,27 +11620,21 @@ impl IMSVidEVREvent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSVidEVREvent, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDeviceEvent, IMSVidOutputDeviceEvent); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSVidEVREvent { - type Vtable = IMSVidEVREvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSVidEVREvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x349abb10_883c_4f22_8714_cecaeee45d62); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSVidEVREvent_Vtbl { pub base__: IMSVidOutputDeviceEvent_Vtbl, pub OnUserEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, leventcode: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSVidEncoder(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSVidEncoder, + IMSVidEncoder_Vtbl, + 0xc0020fd4_bee7_43d9_a495_9f213117103d +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSVidEncoder, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDevice, IMSVidFeature); #[cfg(feature = "Win32_System_Com")] impl IMSVidEncoder { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -12964,16 +11690,6 @@ impl IMSVidEncoder { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSVidEncoder, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDevice, IMSVidFeature); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSVidEncoder { - type Vtable = IMSVidEncoder_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSVidEncoder { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc0020fd4_bee7_43d9_a495_9f213117103d); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSVidEncoder_Vtbl { @@ -12981,11 +11697,15 @@ pub struct IMSVidEncoder_Vtbl { pub VideoEncoderInterface: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppencint: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub AudioEncoderInterface: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppencint: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSVidFeature(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSVidFeature, + IMSVidFeature_Vtbl, + 0x37b03547_a4c8_11d2_b634_00c04f79498e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSVidFeature, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDevice); #[cfg(feature = "Win32_System_Com")] impl IMSVidFeature { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -13033,26 +11753,20 @@ impl IMSVidFeature { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSVidFeature, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDevice); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSVidFeature { - type Vtable = IMSVidFeature_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSVidFeature { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x37b03547_a4c8_11d2_b634_00c04f79498e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSVidFeature_Vtbl { pub base__: IMSVidDevice_Vtbl, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSVidFeatureEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSVidFeatureEvent, + IMSVidFeatureEvent_Vtbl, + 0x3dd2903c_e0aa_11d2_b63a_00c04f79498e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSVidFeatureEvent, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDeviceEvent); #[cfg(feature = "Win32_System_Com")] impl IMSVidFeatureEvent { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -13065,26 +11779,20 @@ impl IMSVidFeatureEvent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSVidFeatureEvent, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDeviceEvent); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSVidFeatureEvent { - type Vtable = IMSVidFeatureEvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSVidFeatureEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3dd2903c_e0aa_11d2_b63a_00c04f79498e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSVidFeatureEvent_Vtbl { pub base__: IMSVidDeviceEvent_Vtbl, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSVidFeatures(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSVidFeatures, + IMSVidFeatures_Vtbl, + 0xc5702cd5_9b79_11d3_b654_00c04f79498e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSVidFeatures, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMSVidFeatures { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -13118,16 +11826,6 @@ impl IMSVidFeatures { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSVidFeatures, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSVidFeatures { - type Vtable = IMSVidFeatures_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSVidFeatures { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc5702cd5_9b79_11d3_b654_00c04f79498e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSVidFeatures_Vtbl { @@ -13150,11 +11848,15 @@ pub struct IMSVidFeatures_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] Remove: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSVidFilePlayback(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSVidFilePlayback, + IMSVidFilePlayback_Vtbl, + 0x37b03539_a4c8_11d2_b634_00c04f79498e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSVidFilePlayback, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDevice, IMSVidInputDevice, IMSVidPlayback); #[cfg(feature = "Win32_System_Com")] impl IMSVidFilePlayback { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -13277,16 +11979,6 @@ impl IMSVidFilePlayback { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSVidFilePlayback, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDevice, IMSVidInputDevice, IMSVidPlayback); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSVidFilePlayback { - type Vtable = IMSVidFilePlayback_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSVidFilePlayback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x37b03539_a4c8_11d2_b634_00c04f79498e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSVidFilePlayback_Vtbl { @@ -13294,11 +11986,15 @@ pub struct IMSVidFilePlayback_Vtbl { pub FileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filename: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SetFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filename: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSVidFilePlayback2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSVidFilePlayback2, + IMSVidFilePlayback2_Vtbl, + 0x2f7e44af_6e52_4660_bc08_d8d542587d72 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSVidFilePlayback2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDevice, IMSVidInputDevice, IMSVidPlayback, IMSVidFilePlayback); #[cfg(feature = "Win32_System_Com")] impl IMSVidFilePlayback2 { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -13430,16 +12126,6 @@ impl IMSVidFilePlayback2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSVidFilePlayback2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDevice, IMSVidInputDevice, IMSVidPlayback, IMSVidFilePlayback); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSVidFilePlayback2 { - type Vtable = IMSVidFilePlayback2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSVidFilePlayback2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2f7e44af_6e52_4660_bc08_d8d542587d72); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSVidFilePlayback2_Vtbl { @@ -13447,11 +12133,15 @@ pub struct IMSVidFilePlayback2_Vtbl { pub Set_SourceFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filename: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub Set__SourceFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filename: ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSVidFilePlaybackEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSVidFilePlaybackEvent, + IMSVidFilePlaybackEvent_Vtbl, + 0x37b0353a_a4c8_11d2_b634_00c04f79498e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSVidFilePlaybackEvent, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidInputDeviceEvent, IMSVidPlaybackEvent); #[cfg(feature = "Win32_System_Com")] impl IMSVidFilePlaybackEvent { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -13464,26 +12154,20 @@ impl IMSVidFilePlaybackEvent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSVidFilePlaybackEvent, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidInputDeviceEvent, IMSVidPlaybackEvent); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSVidFilePlaybackEvent { - type Vtable = IMSVidFilePlaybackEvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSVidFilePlaybackEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x37b0353a_a4c8_11d2_b634_00c04f79498e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSVidFilePlaybackEvent_Vtbl { pub base__: IMSVidPlaybackEvent_Vtbl, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSVidGenericSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSVidGenericSink, + IMSVidGenericSink_Vtbl, + 0x6c29b41d_455b_4c33_963a_0d28e5e555ea +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSVidGenericSink, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDevice, IMSVidOutputDevice); #[cfg(feature = "Win32_System_Com")] impl IMSVidGenericSink { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -13544,16 +12228,6 @@ impl IMSVidGenericSink { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSVidGenericSink, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDevice, IMSVidOutputDevice); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSVidGenericSink { - type Vtable = IMSVidGenericSink_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSVidGenericSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6c29b41d_455b_4c33_963a_0d28e5e555ea); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSVidGenericSink_Vtbl { @@ -13562,11 +12236,15 @@ pub struct IMSVidGenericSink_Vtbl { pub SinkStreams: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstreams: *mut MSVidSinkStreams) -> ::windows_core::HRESULT, pub SetSinkStreams: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, streams: MSVidSinkStreams) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSVidGenericSink2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSVidGenericSink2, + IMSVidGenericSink2_Vtbl, + 0x6b5a28f3_47f1_4092_b168_60cabec08f1c +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSVidGenericSink2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDevice, IMSVidOutputDevice, IMSVidGenericSink); #[cfg(feature = "Win32_System_Com")] impl IMSVidGenericSink2 { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -13636,16 +12314,6 @@ impl IMSVidGenericSink2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSVidGenericSink2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDevice, IMSVidOutputDevice, IMSVidGenericSink); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSVidGenericSink2 { - type Vtable = IMSVidGenericSink2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSVidGenericSink2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6b5a28f3_47f1_4092_b168_60cabec08f1c); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSVidGenericSink2_Vtbl { @@ -13653,11 +12321,15 @@ pub struct IMSVidGenericSink2_Vtbl { pub AddFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub ResetFilterList: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSVidGraphSegment(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSVidGraphSegment, + IMSVidGraphSegment_Vtbl, + 0x238dec54_adeb_4005_a349_f772b9afebc4 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSVidGraphSegment, ::windows_core::IUnknown, super::super::super::System::Com::IPersist); #[cfg(feature = "Win32_System_Com")] impl IMSVidGraphSegment { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -13724,16 +12396,6 @@ impl IMSVidGraphSegment { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSVidGraphSegment, ::windows_core::IUnknown, super::super::super::System::Com::IPersist); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSVidGraphSegment { - type Vtable = IMSVidGraphSegment_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSVidGraphSegment { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x238dec54_adeb_4005_a349_f772b9afebc4); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSVidGraphSegment_Vtbl { @@ -13754,9 +12416,8 @@ pub struct IMSVidGraphSegment_Vtbl { pub OnEventNotify: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, leventcode: i32, leventparm1: isize, leventparm2: isize) -> ::windows_core::HRESULT, pub Decompose: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSVidGraphSegmentContainer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMSVidGraphSegmentContainer, IMSVidGraphSegmentContainer_Vtbl, 0x3dd2903d_e0aa_11d2_b63a_00c04f79498e); +::windows_core::imp::interface_hierarchy!(IMSVidGraphSegmentContainer, ::windows_core::IUnknown); impl IMSVidGraphSegmentContainer { pub unsafe fn Graph(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -13811,13 +12472,6 @@ impl IMSVidGraphSegmentContainer { (::windows_core::Interface::vtable(self).GetFocus)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IMSVidGraphSegmentContainer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMSVidGraphSegmentContainer { - type Vtable = IMSVidGraphSegmentContainer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMSVidGraphSegmentContainer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3dd2903d_e0aa_11d2_b63a_00c04f79498e); -} #[repr(C)] #[doc(hidden)] pub struct IMSVidGraphSegmentContainer_Vtbl { @@ -13846,9 +12500,8 @@ pub struct IMSVidGraphSegmentContainer_Vtbl { pub IsWindowless: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetFocus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSVidGraphSegmentUserInput(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMSVidGraphSegmentUserInput, IMSVidGraphSegmentUserInput_Vtbl, 0x301c060e_20d9_4587_9b03_f82ed9a9943c); +::windows_core::imp::interface_hierarchy!(IMSVidGraphSegmentUserInput, ::windows_core::IUnknown); impl IMSVidGraphSegmentUserInput { pub unsafe fn Click(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Click)(::windows_core::Interface::as_raw(self)).ok() @@ -13875,13 +12528,6 @@ impl IMSVidGraphSegmentUserInput { (::windows_core::Interface::vtable(self).MouseUp)(::windows_core::Interface::as_raw(self), buttonstate, shiftstate, x, y).ok() } } -::windows_core::imp::interface_hierarchy!(IMSVidGraphSegmentUserInput, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMSVidGraphSegmentUserInput { - type Vtable = IMSVidGraphSegmentUserInput_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMSVidGraphSegmentUserInput { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x301c060e_20d9_4587_9b03_f82ed9a9943c); -} #[repr(C)] #[doc(hidden)] pub struct IMSVidGraphSegmentUserInput_Vtbl { @@ -13895,11 +12541,15 @@ pub struct IMSVidGraphSegmentUserInput_Vtbl { pub MouseMove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, buttonstate: i16, shiftstate: i16, x: i32, y: i32) -> ::windows_core::HRESULT, pub MouseUp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, buttonstate: i16, shiftstate: i16, x: i32, y: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSVidInputDevice(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSVidInputDevice, + IMSVidInputDevice_Vtbl, + 0x37b0353d_a4c8_11d2_b634_00c04f79498e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSVidInputDevice, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDevice); #[cfg(feature = "Win32_System_Com")] impl IMSVidInputDevice { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -13958,16 +12608,6 @@ impl IMSVidInputDevice { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSVidInputDevice, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDevice); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSVidInputDevice { - type Vtable = IMSVidInputDevice_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSVidInputDevice { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x37b0353d_a4c8_11d2_b634_00c04f79498e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSVidInputDevice_Vtbl { @@ -13981,34 +12621,32 @@ pub struct IMSVidInputDevice_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] View: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] -#[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSVidInputDeviceEvent(::windows_core::IUnknown); #[cfg(feature = "Win32_System_Com")] -impl IMSVidInputDeviceEvent {} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSVidInputDeviceEvent, + IMSVidInputDeviceEvent_Vtbl, + 0x37b0353e_a4c8_11d2_b634_00c04f79498e +); #[cfg(feature = "Win32_System_Com")] ::windows_core::imp::interface_hierarchy!(IMSVidInputDeviceEvent, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSVidInputDeviceEvent { - type Vtable = IMSVidInputDeviceEvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSVidInputDeviceEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x37b0353e_a4c8_11d2_b634_00c04f79498e); -} +impl IMSVidInputDeviceEvent {} #[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSVidInputDeviceEvent_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSVidInputDevices(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSVidInputDevices, + IMSVidInputDevices_Vtbl, + 0xc5702cd1_9b79_11d3_b654_00c04f79498e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSVidInputDevices, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMSVidInputDevices { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -14042,16 +12680,6 @@ impl IMSVidInputDevices { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSVidInputDevices, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSVidInputDevices { - type Vtable = IMSVidInputDevices_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSVidInputDevices { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc5702cd1_9b79_11d3_b654_00c04f79498e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSVidInputDevices_Vtbl { @@ -14074,11 +12702,15 @@ pub struct IMSVidInputDevices_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] Remove: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSVidOutputDevice(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSVidOutputDevice, + IMSVidOutputDevice_Vtbl, + 0x37b03546_a4c8_11d2_b634_00c04f79498e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSVidOutputDevice, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDevice); #[cfg(feature = "Win32_System_Com")] impl IMSVidOutputDevice { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -14126,26 +12758,20 @@ impl IMSVidOutputDevice { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSVidOutputDevice, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDevice); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSVidOutputDevice { - type Vtable = IMSVidOutputDevice_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSVidOutputDevice { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x37b03546_a4c8_11d2_b634_00c04f79498e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSVidOutputDevice_Vtbl { pub base__: IMSVidDevice_Vtbl, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSVidOutputDeviceEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSVidOutputDeviceEvent, + IMSVidOutputDeviceEvent_Vtbl, + 0x2e6a14e2_571c_11d3_b652_00c04f79498e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSVidOutputDeviceEvent, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDeviceEvent); #[cfg(feature = "Win32_System_Com")] impl IMSVidOutputDeviceEvent { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -14158,26 +12784,20 @@ impl IMSVidOutputDeviceEvent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSVidOutputDeviceEvent, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDeviceEvent); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSVidOutputDeviceEvent { - type Vtable = IMSVidOutputDeviceEvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSVidOutputDeviceEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2e6a14e2_571c_11d3_b652_00c04f79498e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSVidOutputDeviceEvent_Vtbl { pub base__: IMSVidDeviceEvent_Vtbl, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSVidOutputDevices(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSVidOutputDevices, + IMSVidOutputDevices_Vtbl, + 0xc5702cd2_9b79_11d3_b654_00c04f79498e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSVidOutputDevices, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMSVidOutputDevices { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -14211,16 +12831,6 @@ impl IMSVidOutputDevices { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSVidOutputDevices, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSVidOutputDevices { - type Vtable = IMSVidOutputDevices_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSVidOutputDevices { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc5702cd2_9b79_11d3_b654_00c04f79498e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSVidOutputDevices_Vtbl { @@ -14243,11 +12853,15 @@ pub struct IMSVidOutputDevices_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] Remove: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSVidPlayback(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSVidPlayback, + IMSVidPlayback_Vtbl, + 0x37b03538_a4c8_11d2_b634_00c04f79498e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSVidPlayback, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDevice, IMSVidInputDevice); #[cfg(feature = "Win32_System_Com")] impl IMSVidPlayback { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -14360,16 +12974,6 @@ impl IMSVidPlayback { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSVidPlayback, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDevice, IMSVidInputDevice); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSVidPlayback { - type Vtable = IMSVidPlayback_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSVidPlayback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x37b03538_a4c8_11d2_b634_00c04f79498e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSVidPlayback_Vtbl { @@ -14389,11 +12993,15 @@ pub struct IMSVidPlayback_Vtbl { pub PositionMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpositionmode: *mut PositionModeList) -> ::windows_core::HRESULT, pub Length: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, llength: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSVidPlaybackEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSVidPlaybackEvent, + IMSVidPlaybackEvent_Vtbl, + 0x37b0353b_a4c8_11d2_b634_00c04f79498e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSVidPlaybackEvent, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidInputDeviceEvent); #[cfg(feature = "Win32_System_Com")] impl IMSVidPlaybackEvent { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -14406,16 +13014,6 @@ impl IMSVidPlaybackEvent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSVidPlaybackEvent, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidInputDeviceEvent); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSVidPlaybackEvent { - type Vtable = IMSVidPlaybackEvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSVidPlaybackEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x37b0353b_a4c8_11d2_b634_00c04f79498e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSVidPlaybackEvent_Vtbl { @@ -14425,11 +13023,15 @@ pub struct IMSVidPlaybackEvent_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] EndOfMedia: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSVidRect(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSVidRect, + IMSVidRect_Vtbl, + 0x7f5000a6_a440_47ca_8acc_c0e75531a2c2 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSVidRect, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMSVidRect { pub unsafe fn Top(&self) -> ::windows_core::Result { @@ -14480,16 +13082,6 @@ impl IMSVidRect { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSVidRect, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSVidRect { - type Vtable = IMSVidRect_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSVidRect { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7f5000a6_a440_47ca_8acc_c0e75531a2c2); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSVidRect_Vtbl { @@ -14509,11 +13101,15 @@ pub struct IMSVidRect_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] SetRect: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSVidStreamBufferRecordingControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSVidStreamBufferRecordingControl, + IMSVidStreamBufferRecordingControl_Vtbl, + 0x160621aa_bbbc_4326_a824_c395aebc6e74 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSVidStreamBufferRecordingControl, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMSVidStreamBufferRecordingControl { pub unsafe fn StartTime(&self) -> ::windows_core::Result { @@ -14548,16 +13144,6 @@ impl IMSVidStreamBufferRecordingControl { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSVidStreamBufferRecordingControl, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSVidStreamBufferRecordingControl { - type Vtable = IMSVidStreamBufferRecordingControl_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSVidStreamBufferRecordingControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x160621aa_bbbc_4326_a824_c395aebc6e74); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSVidStreamBufferRecordingControl_Vtbl { @@ -14571,11 +13157,15 @@ pub struct IMSVidStreamBufferRecordingControl_Vtbl { pub RecordingType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwtype: *mut RecordingType) -> ::windows_core::HRESULT, pub RecordingAttribute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, precordingattribute: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSVidStreamBufferSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSVidStreamBufferSink, + IMSVidStreamBufferSink_Vtbl, + 0x159dbb45_cd1b_4dab_83ea_5cb1f4f21d07 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSVidStreamBufferSink, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDevice, IMSVidOutputDevice); #[cfg(feature = "Win32_System_Com")] impl IMSVidStreamBufferSink { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -14658,16 +13248,6 @@ impl IMSVidStreamBufferSink { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSVidStreamBufferSink, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDevice, IMSVidOutputDevice); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSVidStreamBufferSink { - type Vtable = IMSVidStreamBufferSink_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSVidStreamBufferSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x159dbb45_cd1b_4dab_83ea_5cb1f4f21d07); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSVidStreamBufferSink_Vtbl { @@ -14685,11 +13265,15 @@ pub struct IMSVidStreamBufferSink_Vtbl { pub NameSetLock: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SBESink: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sbeconfig: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSVidStreamBufferSink2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSVidStreamBufferSink2, + IMSVidStreamBufferSink2_Vtbl, + 0x2ca9fc63_c131_4e5a_955a_544a47c67146 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSVidStreamBufferSink2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDevice, IMSVidOutputDevice, IMSVidStreamBufferSink); #[cfg(feature = "Win32_System_Com")] impl IMSVidStreamBufferSink2 { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -14775,27 +13359,21 @@ impl IMSVidStreamBufferSink2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSVidStreamBufferSink2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDevice, IMSVidOutputDevice, IMSVidStreamBufferSink); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSVidStreamBufferSink2 { - type Vtable = IMSVidStreamBufferSink2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSVidStreamBufferSink2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2ca9fc63_c131_4e5a_955a_544a47c67146); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSVidStreamBufferSink2_Vtbl { pub base__: IMSVidStreamBufferSink_Vtbl, pub UnlockProfile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSVidStreamBufferSink3(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSVidStreamBufferSink3, + IMSVidStreamBufferSink3_Vtbl, + 0x4f8721d7_7d59_4d8b_99f5_a77775586bd5 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSVidStreamBufferSink3, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDevice, IMSVidOutputDevice, IMSVidStreamBufferSink, IMSVidStreamBufferSink2); #[cfg(feature = "Win32_System_Com")] impl IMSVidStreamBufferSink3 { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -14956,16 +13534,6 @@ impl IMSVidStreamBufferSink3 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSVidStreamBufferSink3, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDevice, IMSVidOutputDevice, IMSVidStreamBufferSink, IMSVidStreamBufferSink2); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSVidStreamBufferSink3 { - type Vtable = IMSVidStreamBufferSink3_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSVidStreamBufferSink3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4f8721d7_7d59_4d8b_99f5_a77775586bd5); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSVidStreamBufferSink3_Vtbl { @@ -14989,11 +13557,15 @@ pub struct IMSVidStreamBufferSink3_Vtbl { pub _DataAnalysisFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pguid: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, pub LicenseErrorCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hres: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSVidStreamBufferSinkEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSVidStreamBufferSinkEvent, + IMSVidStreamBufferSinkEvent_Vtbl, + 0xf798a36b_b05b_4bbe_9703_eaea7d61cd51 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSVidStreamBufferSinkEvent, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDeviceEvent, IMSVidOutputDeviceEvent); #[cfg(feature = "Win32_System_Com")] impl IMSVidStreamBufferSinkEvent { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -15015,16 +13587,6 @@ impl IMSVidStreamBufferSinkEvent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSVidStreamBufferSinkEvent, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDeviceEvent, IMSVidOutputDeviceEvent); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSVidStreamBufferSinkEvent { - type Vtable = IMSVidStreamBufferSinkEvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSVidStreamBufferSinkEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf798a36b_b05b_4bbe_9703_eaea7d61cd51); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSVidStreamBufferSinkEvent_Vtbl { @@ -15033,11 +13595,15 @@ pub struct IMSVidStreamBufferSinkEvent_Vtbl { pub CertificateSuccess: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub WriteFailure: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSVidStreamBufferSinkEvent2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSVidStreamBufferSinkEvent2, + IMSVidStreamBufferSinkEvent2_Vtbl, + 0x3d7a5166_72d7_484b_a06f_286187b80ca1 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSVidStreamBufferSinkEvent2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDeviceEvent, IMSVidOutputDeviceEvent, IMSVidStreamBufferSinkEvent); #[cfg(feature = "Win32_System_Com")] impl IMSVidStreamBufferSinkEvent2 { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -15065,16 +13631,6 @@ impl IMSVidStreamBufferSinkEvent2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSVidStreamBufferSinkEvent2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDeviceEvent, IMSVidOutputDeviceEvent, IMSVidStreamBufferSinkEvent); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSVidStreamBufferSinkEvent2 { - type Vtable = IMSVidStreamBufferSinkEvent2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSVidStreamBufferSinkEvent2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3d7a5166_72d7_484b_a06f_286187b80ca1); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSVidStreamBufferSinkEvent2_Vtbl { @@ -15082,11 +13638,15 @@ pub struct IMSVidStreamBufferSinkEvent2_Vtbl { pub EncryptionOn: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub EncryptionOff: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSVidStreamBufferSinkEvent3(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSVidStreamBufferSinkEvent3, + IMSVidStreamBufferSinkEvent3_Vtbl, + 0x735ad8d5_c259_48e9_81e7_d27953665b23 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSVidStreamBufferSinkEvent3, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDeviceEvent, IMSVidOutputDeviceEvent, IMSVidStreamBufferSinkEvent, IMSVidStreamBufferSinkEvent2); #[cfg(feature = "Win32_System_Com")] impl IMSVidStreamBufferSinkEvent3 { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -15117,27 +13677,21 @@ impl IMSVidStreamBufferSinkEvent3 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSVidStreamBufferSinkEvent3, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDeviceEvent, IMSVidOutputDeviceEvent, IMSVidStreamBufferSinkEvent, IMSVidStreamBufferSinkEvent2); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSVidStreamBufferSinkEvent3 { - type Vtable = IMSVidStreamBufferSinkEvent3_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSVidStreamBufferSinkEvent3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x735ad8d5_c259_48e9_81e7_d27953665b23); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSVidStreamBufferSinkEvent3_Vtbl { pub base__: IMSVidStreamBufferSinkEvent2_Vtbl, pub LicenseChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwprot: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSVidStreamBufferSinkEvent4(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSVidStreamBufferSinkEvent4, + IMSVidStreamBufferSinkEvent4_Vtbl, + 0x1b01dcb0_daf0_412c_a5d1_590c7f62e2b8 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSVidStreamBufferSinkEvent4, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDeviceEvent, IMSVidOutputDeviceEvent, IMSVidStreamBufferSinkEvent, IMSVidStreamBufferSinkEvent2, IMSVidStreamBufferSinkEvent3); #[cfg(feature = "Win32_System_Com")] impl IMSVidStreamBufferSinkEvent4 { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -15171,27 +13725,21 @@ impl IMSVidStreamBufferSinkEvent4 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSVidStreamBufferSinkEvent4, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDeviceEvent, IMSVidOutputDeviceEvent, IMSVidStreamBufferSinkEvent, IMSVidStreamBufferSinkEvent2, IMSVidStreamBufferSinkEvent3); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSVidStreamBufferSinkEvent4 { - type Vtable = IMSVidStreamBufferSinkEvent4_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSVidStreamBufferSinkEvent4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1b01dcb0_daf0_412c_a5d1_590c7f62e2b8); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSVidStreamBufferSinkEvent4_Vtbl { pub base__: IMSVidStreamBufferSinkEvent3_Vtbl, pub WriteFailureClear: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSVidStreamBufferSource(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSVidStreamBufferSource, + IMSVidStreamBufferSource_Vtbl, + 0xeb0c8cf9_6950_4772_87b1_47d11cf3a02f +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSVidStreamBufferSource, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDevice, IMSVidInputDevice, IMSVidPlayback, IMSVidFilePlayback); #[cfg(feature = "Win32_System_Com")] impl IMSVidStreamBufferSource { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -15341,16 +13889,6 @@ impl IMSVidStreamBufferSource { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSVidStreamBufferSource, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDevice, IMSVidInputDevice, IMSVidPlayback, IMSVidFilePlayback); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSVidStreamBufferSource { - type Vtable = IMSVidStreamBufferSource_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSVidStreamBufferSource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeb0c8cf9_6950_4772_87b1_47d11cf3a02f); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSVidStreamBufferSource_Vtbl { @@ -15363,11 +13901,15 @@ pub struct IMSVidStreamBufferSource_Vtbl { pub SetUnratedDelay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwdelay: i32) -> ::windows_core::HRESULT, pub SBESource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sbefilter: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSVidStreamBufferSource2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSVidStreamBufferSource2, + IMSVidStreamBufferSource2_Vtbl, + 0xe4ba9059_b1ce_40d8_b9a0_d4ea4a9989d3 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSVidStreamBufferSource2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDevice, IMSVidInputDevice, IMSVidPlayback, IMSVidFilePlayback, IMSVidStreamBufferSource); #[cfg(feature = "Win32_System_Com")] impl IMSVidStreamBufferSource2 { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -15536,16 +14078,6 @@ impl IMSVidStreamBufferSource2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSVidStreamBufferSource2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDevice, IMSVidInputDevice, IMSVidPlayback, IMSVidFilePlayback, IMSVidStreamBufferSource); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSVidStreamBufferSource2 { - type Vtable = IMSVidStreamBufferSource2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSVidStreamBufferSource2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe4ba9059_b1ce_40d8_b9a0_d4ea4a9989d3); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSVidStreamBufferSource2_Vtbl { @@ -15556,11 +14088,15 @@ pub struct IMSVidStreamBufferSource2_Vtbl { pub CCCounter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppunk: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub WSTCounter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppunk: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSVidStreamBufferSourceEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSVidStreamBufferSourceEvent, + IMSVidStreamBufferSourceEvent_Vtbl, + 0x50ce8a7d_9c28_4da8_9042_cdfa7116f979 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSVidStreamBufferSourceEvent, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidInputDeviceEvent, IMSVidPlaybackEvent, IMSVidFilePlaybackEvent); #[cfg(feature = "Win32_System_Com")] impl IMSVidStreamBufferSourceEvent { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -15600,16 +14136,6 @@ impl IMSVidStreamBufferSourceEvent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSVidStreamBufferSourceEvent, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidInputDeviceEvent, IMSVidPlaybackEvent, IMSVidFilePlaybackEvent); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSVidStreamBufferSourceEvent { - type Vtable = IMSVidStreamBufferSourceEvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSVidStreamBufferSourceEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x50ce8a7d_9c28_4da8_9042_cdfa7116f979); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSVidStreamBufferSourceEvent_Vtbl { @@ -15624,11 +14150,15 @@ pub struct IMSVidStreamBufferSourceEvent_Vtbl { pub ContentBecomingStale: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub StaleFileDeleted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSVidStreamBufferSourceEvent2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSVidStreamBufferSourceEvent2, + IMSVidStreamBufferSourceEvent2_Vtbl, + 0x7aef50ce_8e22_4ba8_bc06_a92a458b4ef2 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSVidStreamBufferSourceEvent2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidInputDeviceEvent, IMSVidPlaybackEvent, IMSVidFilePlaybackEvent, IMSVidStreamBufferSourceEvent); #[cfg(feature = "Win32_System_Com")] impl IMSVidStreamBufferSourceEvent2 { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -15671,27 +14201,21 @@ impl IMSVidStreamBufferSourceEvent2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSVidStreamBufferSourceEvent2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidInputDeviceEvent, IMSVidPlaybackEvent, IMSVidFilePlaybackEvent, IMSVidStreamBufferSourceEvent); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSVidStreamBufferSourceEvent2 { - type Vtable = IMSVidStreamBufferSourceEvent2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSVidStreamBufferSourceEvent2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7aef50ce_8e22_4ba8_bc06_a92a458b4ef2); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSVidStreamBufferSourceEvent2_Vtbl { pub base__: IMSVidStreamBufferSourceEvent_Vtbl, pub RateChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, qwnewrate: f64, qwoldrate: f64) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSVidStreamBufferSourceEvent3(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSVidStreamBufferSourceEvent3, + IMSVidStreamBufferSourceEvent3_Vtbl, + 0xceabd6ab_9b90_4570_adf1_3ce76e00a763 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSVidStreamBufferSourceEvent3, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidInputDeviceEvent, IMSVidPlaybackEvent, IMSVidFilePlaybackEvent, IMSVidStreamBufferSourceEvent, IMSVidStreamBufferSourceEvent2); #[cfg(feature = "Win32_System_Com")] impl IMSVidStreamBufferSourceEvent3 { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -15752,17 +14276,7 @@ impl IMSVidStreamBufferSourceEvent3 { } pub unsafe fn ContentPrimarilyAudio(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).ContentPrimarilyAudio)(::windows_core::Interface::as_raw(self)).ok() - } -} -#[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSVidStreamBufferSourceEvent3, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidInputDeviceEvent, IMSVidPlaybackEvent, IMSVidFilePlaybackEvent, IMSVidStreamBufferSourceEvent, IMSVidStreamBufferSourceEvent2); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSVidStreamBufferSourceEvent3 { - type Vtable = IMSVidStreamBufferSourceEvent3_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSVidStreamBufferSourceEvent3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xceabd6ab_9b90_4570_adf1_3ce76e00a763); + } } #[cfg(feature = "Win32_System_Com")] #[repr(C)] @@ -15775,11 +14289,15 @@ pub struct IMSVidStreamBufferSourceEvent3_Vtbl { pub COPPUnblocked: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ContentPrimarilyAudio: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSVidStreamBufferV2SourceEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSVidStreamBufferV2SourceEvent, + IMSVidStreamBufferV2SourceEvent_Vtbl, + 0x49c771f9_41b2_4cf7_9f9a_a313a8f6027e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSVidStreamBufferV2SourceEvent, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidInputDeviceEvent, IMSVidPlaybackEvent, IMSVidFilePlaybackEvent); #[cfg(feature = "Win32_System_Com")] impl IMSVidStreamBufferV2SourceEvent { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -15825,16 +14343,6 @@ impl IMSVidStreamBufferV2SourceEvent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSVidStreamBufferV2SourceEvent, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidInputDeviceEvent, IMSVidPlaybackEvent, IMSVidFilePlaybackEvent); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSVidStreamBufferV2SourceEvent { - type Vtable = IMSVidStreamBufferV2SourceEvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSVidStreamBufferV2SourceEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x49c771f9_41b2_4cf7_9f9a_a313a8f6027e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSVidStreamBufferV2SourceEvent_Vtbl { @@ -15849,11 +14357,15 @@ pub struct IMSVidStreamBufferV2SourceEvent_Vtbl { pub BroadcastEventEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guid: ::std::mem::MaybeUninit<::windows_core::BSTR>, param1: u32, param2: u32, param3: u32, param4: u32) -> ::windows_core::HRESULT, pub ContentPrimarilyAudio: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSVidTuner(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSVidTuner, + IMSVidTuner_Vtbl, + 0x1c15d47d_911d_11d2_b632_00c04f79498e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSVidTuner, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDevice, IMSVidInputDevice, IMSVidVideoInputDevice); #[cfg(feature = "Win32_System_Com")] impl IMSVidTuner { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -15940,16 +14452,6 @@ impl IMSVidTuner { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSVidTuner, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDevice, IMSVidInputDevice, IMSVidVideoInputDevice); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSVidTuner { - type Vtable = IMSVidTuner_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSVidTuner { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1c15d47d_911d_11d2_b632_00c04f79498e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSVidTuner_Vtbl { @@ -15971,11 +14473,15 @@ pub struct IMSVidTuner_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] SetTuningSpace: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSVidTunerEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSVidTunerEvent, + IMSVidTunerEvent_Vtbl, + 0x1c15d485_911d_11d2_b632_00c04f79498e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSVidTunerEvent, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidInputDeviceEvent); #[cfg(feature = "Win32_System_Com")] impl IMSVidTunerEvent { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -15988,16 +14494,6 @@ impl IMSVidTunerEvent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSVidTunerEvent, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidInputDeviceEvent); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSVidTunerEvent { - type Vtable = IMSVidTunerEvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSVidTunerEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1c15d485_911d_11d2_b632_00c04f79498e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSVidTunerEvent_Vtbl { @@ -16007,11 +14503,15 @@ pub struct IMSVidTunerEvent_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] TuneChanged: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSVidVMR9(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSVidVMR9, + IMSVidVMR9_Vtbl, + 0xd58b0015_ebef_44bb_bbdd_3f3699d76ea1 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSVidVMR9, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDevice, IMSVidOutputDevice, IMSVidVideoRenderer); #[cfg(feature = "Win32_System_Com")] impl IMSVidVMR9 { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -16239,16 +14739,6 @@ impl IMSVidVMR9 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSVidVMR9, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDevice, IMSVidOutputDevice, IMSVidVideoRenderer); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSVidVMR9 { - type Vtable = IMSVidVMR9_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSVidVMR9 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd58b0015_ebef_44bb_bbdd_3f3699d76ea1); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSVidVMR9_Vtbl { @@ -16259,11 +14749,15 @@ pub struct IMSVidVMR9_Vtbl { pub SuppressEffects: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bsuppress: *mut super::super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub Allocator: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, allocpresent: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSVidVRGraphSegment(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSVidVRGraphSegment, + IMSVidVRGraphSegment_Vtbl, + 0xdd47de3f_9874_4f7b_8b22_7cb2688461e7 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSVidVRGraphSegment, ::windows_core::IUnknown, super::super::super::System::Com::IPersist, IMSVidGraphSegment); #[cfg(feature = "Win32_System_Com")] impl IMSVidVRGraphSegment { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -16418,16 +14912,6 @@ impl IMSVidVRGraphSegment { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSVidVRGraphSegment, ::windows_core::IUnknown, super::super::super::System::Com::IPersist, IMSVidGraphSegment); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSVidVRGraphSegment { - type Vtable = IMSVidVRGraphSegment_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSVidVRGraphSegment { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdd47de3f_9874_4f7b_8b22_7cb2688461e7); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSVidVRGraphSegment_Vtbl { @@ -16457,11 +14941,15 @@ pub struct IMSVidVRGraphSegment_Vtbl { #[cfg(not(feature = "Win32_Graphics_Gdi"))] RePaint: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSVidVideoInputDevice(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSVidVideoInputDevice, + IMSVidVideoInputDevice_Vtbl, + 0x1c15d47f_911d_11d2_b632_00c04f79498e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSVidVideoInputDevice, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDevice, IMSVidInputDevice); #[cfg(feature = "Win32_System_Com")] impl IMSVidVideoInputDevice { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -16520,26 +15008,20 @@ impl IMSVidVideoInputDevice { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSVidVideoInputDevice, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDevice, IMSVidInputDevice); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSVidVideoInputDevice { - type Vtable = IMSVidVideoInputDevice_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSVidVideoInputDevice { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1c15d47f_911d_11d2_b632_00c04f79498e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSVidVideoInputDevice_Vtbl { pub base__: IMSVidInputDevice_Vtbl, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSVidVideoRenderer(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSVidVideoRenderer, + IMSVidVideoRenderer_Vtbl, + 0x37b03540_a4c8_11d2_b634_00c04f79498e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSVidVideoRenderer, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDevice, IMSVidOutputDevice); #[cfg(feature = "Win32_System_Com")] impl IMSVidVideoRenderer { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -16743,16 +15225,6 @@ impl IMSVidVideoRenderer { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSVidVideoRenderer, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDevice, IMSVidOutputDevice); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSVidVideoRenderer { - type Vtable = IMSVidVideoRenderer_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSVidVideoRenderer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x37b03540_a4c8_11d2_b634_00c04f79498e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSVidVideoRenderer_Vtbl { @@ -16824,11 +15296,15 @@ pub struct IMSVidVideoRenderer_Vtbl { pub DecimateInput: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdeci: *mut super::super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub SetDecimateInput: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdeci: super::super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSVidVideoRenderer2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSVidVideoRenderer2, + IMSVidVideoRenderer2_Vtbl, + 0x6bdd5c1e_2810_4159_94bc_05511ae8549b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSVidVideoRenderer2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDevice, IMSVidOutputDevice, IMSVidVideoRenderer); #[cfg(feature = "Win32_System_Com")] impl IMSVidVideoRenderer2 { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -17066,16 +15542,6 @@ impl IMSVidVideoRenderer2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSVidVideoRenderer2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDevice, IMSVidOutputDevice, IMSVidVideoRenderer); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSVidVideoRenderer2 { - type Vtable = IMSVidVideoRenderer2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSVidVideoRenderer2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6bdd5c1e_2810_4159_94bc_05511ae8549b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSVidVideoRenderer2_Vtbl { @@ -17088,11 +15554,15 @@ pub struct IMSVidVideoRenderer2_Vtbl { pub SetSuppressEffects: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bsuppress: super::super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub SuppressEffects: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bsuppress: *mut super::super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSVidVideoRendererDevices(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSVidVideoRendererDevices, + IMSVidVideoRendererDevices_Vtbl, + 0xc5702cd3_9b79_11d3_b654_00c04f79498e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSVidVideoRendererDevices, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMSVidVideoRendererDevices { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -17126,16 +15596,6 @@ impl IMSVidVideoRendererDevices { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSVidVideoRendererDevices, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSVidVideoRendererDevices { - type Vtable = IMSVidVideoRendererDevices_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSVidVideoRendererDevices { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc5702cd3_9b79_11d3_b654_00c04f79498e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSVidVideoRendererDevices_Vtbl { @@ -17158,11 +15618,15 @@ pub struct IMSVidVideoRendererDevices_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] Remove: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSVidVideoRendererEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSVidVideoRendererEvent, + IMSVidVideoRendererEvent_Vtbl, + 0x37b03545_a4c8_11d2_b634_00c04f79498e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSVidVideoRendererEvent, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDeviceEvent, IMSVidOutputDeviceEvent); #[cfg(feature = "Win32_System_Com")] impl IMSVidVideoRendererEvent { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -17178,27 +15642,21 @@ impl IMSVidVideoRendererEvent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSVidVideoRendererEvent, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDeviceEvent, IMSVidOutputDeviceEvent); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSVidVideoRendererEvent { - type Vtable = IMSVidVideoRendererEvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSVidVideoRendererEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x37b03545_a4c8_11d2_b634_00c04f79498e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSVidVideoRendererEvent_Vtbl { pub base__: IMSVidOutputDeviceEvent_Vtbl, pub OverlayUnavailable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSVidVideoRendererEvent2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSVidVideoRendererEvent2, + IMSVidVideoRendererEvent2_Vtbl, + 0x7145ed66_4730_4fdb_8a53_fde7508d3e5e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSVidVideoRendererEvent2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDeviceEvent, IMSVidOutputDeviceEvent); #[cfg(feature = "Win32_System_Com")] impl IMSVidVideoRendererEvent2 { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -17214,27 +15672,21 @@ impl IMSVidVideoRendererEvent2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSVidVideoRendererEvent2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDeviceEvent, IMSVidOutputDeviceEvent); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSVidVideoRendererEvent2 { - type Vtable = IMSVidVideoRendererEvent2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSVidVideoRendererEvent2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7145ed66_4730_4fdb_8a53_fde7508d3e5e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSVidVideoRendererEvent2_Vtbl { pub base__: IMSVidOutputDeviceEvent_Vtbl, pub OverlayUnavailable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSVidWebDVD(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSVidWebDVD, + IMSVidWebDVD_Vtbl, + 0xcf45f88b_ac56_4ee2_a73a_ed04e2885d3c +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSVidWebDVD, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDevice, IMSVidInputDevice, IMSVidPlayback); #[cfg(feature = "Win32_System_Com")] impl IMSVidWebDVD { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -17729,16 +16181,6 @@ impl IMSVidWebDVD { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSVidWebDVD, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDevice, IMSVidInputDevice, IMSVidPlayback); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSVidWebDVD { - type Vtable = IMSVidWebDVD_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSVidWebDVD { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcf45f88b_ac56_4ee2_a73a_ed04e2885d3c); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSVidWebDVD_Vtbl { @@ -17851,11 +16293,15 @@ pub struct IMSVidWebDVD_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] SetDVDScreenInMouseCoordinates: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSVidWebDVD2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSVidWebDVD2, + IMSVidWebDVD2_Vtbl, + 0x7027212f_ee9a_4a7c_8b67_f023714cdaff +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSVidWebDVD2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDevice, IMSVidInputDevice, IMSVidPlayback, IMSVidWebDVD); #[cfg(feature = "Win32_System_Com")] impl IMSVidWebDVD2 { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -18356,16 +16802,6 @@ impl IMSVidWebDVD2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSVidWebDVD2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDevice, IMSVidInputDevice, IMSVidPlayback, IMSVidWebDVD); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSVidWebDVD2 { - type Vtable = IMSVidWebDVD2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSVidWebDVD2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7027212f_ee9a_4a7c_8b67_f023714cdaff); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSVidWebDVD2_Vtbl { @@ -18373,11 +16809,15 @@ pub struct IMSVidWebDVD2_Vtbl { pub get_Bookmark: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppdata: *mut *mut u8, pdatalength: *mut u32) -> ::windows_core::HRESULT, pub put_Bookmark: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdata: *const u8, dwdatalength: u32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSVidWebDVDAdm(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSVidWebDVDAdm, + IMSVidWebDVDAdm_Vtbl, + 0xb8be681a_eb2c_47f0_b415_94d5452f0e05 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSVidWebDVDAdm, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMSVidWebDVDAdm { pub unsafe fn ChangePassword(&self, strusername: P0, strold: P1, strnew: P2) -> ::windows_core::Result<()> @@ -18451,16 +16891,6 @@ impl IMSVidWebDVDAdm { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSVidWebDVDAdm, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSVidWebDVDAdm { - type Vtable = IMSVidWebDVDAdm_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSVidWebDVDAdm { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb8be681a_eb2c_47f0_b415_94d5452f0e05); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSVidWebDVDAdm_Vtbl { @@ -18480,11 +16910,15 @@ pub struct IMSVidWebDVDAdm_Vtbl { pub BookmarkOnStop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub SetBookmarkOnStop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: super::super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSVidWebDVDEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSVidWebDVDEvent, + IMSVidWebDVDEvent_Vtbl, + 0xb4f7a674_9b83_49cb_a357_c63b871be958 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSVidWebDVDEvent, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidInputDeviceEvent, IMSVidPlaybackEvent); #[cfg(feature = "Win32_System_Com")] impl IMSVidWebDVDEvent { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -18634,16 +17068,6 @@ impl IMSVidWebDVDEvent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSVidWebDVDEvent, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidInputDeviceEvent, IMSVidPlaybackEvent); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSVidWebDVDEvent { - type Vtable = IMSVidWebDVDEvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSVidWebDVDEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb4f7a674_9b83_49cb_a357_c63b871be958); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSVidWebDVDEvent_Vtbl { @@ -18675,11 +17099,15 @@ pub struct IMSVidWebDVDEvent_Vtbl { pub ChangeKaraokePresMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, benabled: super::super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub ChangeVideoPresMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, benabled: super::super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSVidXDS(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSVidXDS, + IMSVidXDS_Vtbl, + 0x11ebc158_e712_4d1f_8bb3_01ed5274c4ce +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSVidXDS, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDevice, IMSVidFeature); #[cfg(feature = "Win32_System_Com")] impl IMSVidXDS { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -18731,27 +17159,21 @@ impl IMSVidXDS { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSVidXDS, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDevice, IMSVidFeature); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSVidXDS { - type Vtable = IMSVidXDS_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSVidXDS { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x11ebc158_e712_4d1f_8bb3_01ed5274c4ce); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSVidXDS_Vtbl { pub base__: IMSVidFeature_Vtbl, pub ChannelChangeInterface: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punkcc: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSVidXDSEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSVidXDSEvent, + IMSVidXDSEvent_Vtbl, + 0x6db2317d_3b23_41ec_ba4b_701f407eaf3a +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSVidXDSEvent, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDeviceEvent, IMSVidFeatureEvent); #[cfg(feature = "Win32_System_Com")] impl IMSVidXDSEvent { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -18767,46 +17189,27 @@ impl IMSVidXDSEvent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSVidXDSEvent, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IMSVidDeviceEvent, IMSVidFeatureEvent); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSVidXDSEvent { - type Vtable = IMSVidXDSEvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSVidXDSEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6db2317d_3b23_41ec_ba4b_701f407eaf3a); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSVidXDSEvent_Vtbl { pub base__: IMSVidFeatureEvent_Vtbl, pub RatingChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prevratingsystem: EnTvRat_System, prevlevel: EnTvRat_GenericLevel, prevattributes: BfEnTvRat_GenericAttributes, newratingsystem: EnTvRat_System, newlevel: EnTvRat_GenericLevel, newattributes: BfEnTvRat_GenericAttributes) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMceBurnerControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMceBurnerControl, IMceBurnerControl_Vtbl, 0x5a86b91a_e71e_46c1_88a9_9bb338710552); +::windows_core::imp::interface_hierarchy!(IMceBurnerControl, ::windows_core::IUnknown); impl IMceBurnerControl { pub unsafe fn GetBurnerNoDecryption(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetBurnerNoDecryption)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IMceBurnerControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMceBurnerControl { - type Vtable = IMceBurnerControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMceBurnerControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5a86b91a_e71e_46c1_88a9_9bb338710552); -} #[repr(C)] #[doc(hidden)] pub struct IMceBurnerControl_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetBurnerNoDecryption: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMpeg2Data(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMpeg2Data, IMpeg2Data_Vtbl, 0x9b396d40_f380_4e3c_a514_1a82bf6ebfe6); +::windows_core::imp::interface_hierarchy!(IMpeg2Data, ::windows_core::IUnknown); impl IMpeg2Data { pub unsafe fn GetSection(&self, pid: u16, tid: u8, pfilter: *const MPEG2_FILTER, dwtimeout: u32) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -18824,13 +17227,6 @@ impl IMpeg2Data { (::windows_core::Interface::vtable(self).GetStreamOfSections)(::windows_core::Interface::as_raw(self), pid, tid, pfilter, hdatareadyevent.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMpeg2Data, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMpeg2Data { - type Vtable = IMpeg2Data_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMpeg2Data { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9b396d40_f380_4e3c_a514_1a82bf6ebfe6); -} #[repr(C)] #[doc(hidden)] pub struct IMpeg2Data_Vtbl { @@ -18839,9 +17235,8 @@ pub struct IMpeg2Data_Vtbl { pub GetTable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pid: u16, tid: u8, pfilter: *const MPEG2_FILTER, dwtimeout: u32, ppsectionlist: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetStreamOfSections: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pid: u16, tid: u8, pfilter: *const MPEG2_FILTER, hdatareadyevent: super::super::super::Foundation::HANDLE, ppmpegstream: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMpeg2Stream(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMpeg2Stream, IMpeg2Stream_Vtbl, 0x400cc286_32a0_4ce4_9041_39571125a635); +::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 @@ -18854,13 +17249,6 @@ impl IMpeg2Stream { (::windows_core::Interface::vtable(self).SupplyDataBuffer)(::windows_core::Interface::as_raw(self), pstreambuffer).ok() } } -::windows_core::imp::interface_hierarchy!(IMpeg2Stream, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMpeg2Stream { - type Vtable = IMpeg2Stream_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMpeg2Stream { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x400cc286_32a0_4ce4_9041_39571125a635); -} #[repr(C)] #[doc(hidden)] pub struct IMpeg2Stream_Vtbl { @@ -18868,9 +17256,8 @@ pub struct IMpeg2Stream_Vtbl { pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, requesttype: MPEG_REQUEST_TYPE, pmpeg2data: *mut ::core::ffi::c_void, pcontext: *const MPEG_CONTEXT, pid: u16, tid: u8, pfilter: *const MPEG2_FILTER, hdatareadyevent: super::super::super::Foundation::HANDLE) -> ::windows_core::HRESULT, pub SupplyDataBuffer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstreambuffer: *const MPEG_STREAM_BUFFER) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMpeg2TableFilter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMpeg2TableFilter, IMpeg2TableFilter_Vtbl, 0xbdcdd913_9ecd_4fb2_81ae_adf747ea75a5); +::windows_core::imp::interface_hierarchy!(IMpeg2TableFilter, ::windows_core::IUnknown); impl IMpeg2TableFilter { pub unsafe fn AddPID(&self, p: u16) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).AddPID)(::windows_core::Interface::as_raw(self), p).ok() @@ -18891,13 +17278,6 @@ impl IMpeg2TableFilter { (::windows_core::Interface::vtable(self).RemoveExtension)(::windows_core::Interface::as_raw(self), p, t, e).ok() } } -::windows_core::imp::interface_hierarchy!(IMpeg2TableFilter, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMpeg2TableFilter { - type Vtable = IMpeg2TableFilter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMpeg2TableFilter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbdcdd913_9ecd_4fb2_81ae_adf747ea75a5); -} #[repr(C)] #[doc(hidden)] pub struct IMpeg2TableFilter_Vtbl { @@ -18909,9 +17289,8 @@ pub struct IMpeg2TableFilter_Vtbl { pub RemoveTable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, p: u16, t: u8) -> ::windows_core::HRESULT, pub RemoveExtension: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, p: u16, t: u8, e: u16) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPAT(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPAT, IPAT_Vtbl, 0x6623b511_4b5f_43c3_9a01_e8ff84188060); +::windows_core::imp::interface_hierarchy!(IPAT, ::windows_core::IUnknown); impl IPAT { pub unsafe fn Initialize(&self, psectionlist: P0, pmpegdata: P1) -> ::windows_core::Result<()> where @@ -18964,13 +17343,6 @@ impl IPAT { (::windows_core::Interface::vtable(self).ConvertNextToCurrent)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IPAT, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPAT { - type Vtable = IPAT_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPAT { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6623b511_4b5f_43c3_9a01_e8ff84188060); -} #[repr(C)] #[doc(hidden)] pub struct IPAT_Vtbl { @@ -18987,9 +17359,8 @@ pub struct IPAT_Vtbl { pub RegisterForWhenCurrent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hnexttableiscurrent: super::super::super::Foundation::HANDLE) -> ::windows_core::HRESULT, pub ConvertNextToCurrent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPBDAAttributesDescriptor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPBDAAttributesDescriptor, IPBDAAttributesDescriptor_Vtbl, 0x313b3620_3263_45a6_9533_968befbeac03); +::windows_core::imp::interface_hierarchy!(IPBDAAttributesDescriptor, ::windows_core::IUnknown); impl IPBDAAttributesDescriptor { pub unsafe fn GetTag(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -19003,13 +17374,6 @@ impl IPBDAAttributesDescriptor { (::windows_core::Interface::vtable(self).GetAttributePayload)(::windows_core::Interface::as_raw(self), ppbattributebuffer, pdwattributelength).ok() } } -::windows_core::imp::interface_hierarchy!(IPBDAAttributesDescriptor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPBDAAttributesDescriptor { - type Vtable = IPBDAAttributesDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPBDAAttributesDescriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x313b3620_3263_45a6_9533_968befbeac03); -} #[repr(C)] #[doc(hidden)] pub struct IPBDAAttributesDescriptor_Vtbl { @@ -19018,9 +17382,8 @@ pub struct IPBDAAttributesDescriptor_Vtbl { pub GetLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwval: *mut u16) -> ::windows_core::HRESULT, pub GetAttributePayload: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppbattributebuffer: *mut *mut u8, pdwattributelength: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPBDAEntitlementDescriptor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPBDAEntitlementDescriptor, IPBDAEntitlementDescriptor_Vtbl, 0x22632497_0de3_4587_aadc_d8d99017e760); +::windows_core::imp::interface_hierarchy!(IPBDAEntitlementDescriptor, ::windows_core::IUnknown); impl IPBDAEntitlementDescriptor { pub unsafe fn GetTag(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -19034,13 +17397,6 @@ impl IPBDAEntitlementDescriptor { (::windows_core::Interface::vtable(self).GetToken)(::windows_core::Interface::as_raw(self), ppbtokenbuffer, pdwtokenlength).ok() } } -::windows_core::imp::interface_hierarchy!(IPBDAEntitlementDescriptor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPBDAEntitlementDescriptor { - type Vtable = IPBDAEntitlementDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPBDAEntitlementDescriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x22632497_0de3_4587_aadc_d8d99017e760); -} #[repr(C)] #[doc(hidden)] pub struct IPBDAEntitlementDescriptor_Vtbl { @@ -19049,9 +17405,8 @@ pub struct IPBDAEntitlementDescriptor_Vtbl { pub GetLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwval: *mut u16) -> ::windows_core::HRESULT, pub GetToken: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppbtokenbuffer: *mut *mut u8, pdwtokenlength: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPBDASiParser(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPBDASiParser, IPBDASiParser_Vtbl, 0x9de49a74_aba2_4a18_93e1_21f17f95c3c3); +::windows_core::imp::interface_hierarchy!(IPBDASiParser, ::windows_core::IUnknown); impl IPBDASiParser { pub unsafe fn Initialize(&self, punk: P0) -> ::windows_core::Result<()> where @@ -19068,13 +17423,6 @@ impl IPBDASiParser { (::windows_core::Interface::vtable(self).GetServices)(::windows_core::Interface::as_raw(self), dwsize, pbuffer, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IPBDASiParser, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPBDASiParser { - type Vtable = IPBDASiParser_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPBDASiParser { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9de49a74_aba2_4a18_93e1_21f17f95c3c3); -} #[repr(C)] #[doc(hidden)] pub struct IPBDASiParser_Vtbl { @@ -19083,9 +17431,8 @@ pub struct IPBDASiParser_Vtbl { pub GetEIT: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwsize: u32, pbuffer: *const u8, ppeit: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetServices: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwsize: u32, pbuffer: *const u8, ppservices: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPBDA_EIT(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPBDA_EIT, IPBDA_EIT_Vtbl, 0xa35f2dea_098f_4ebd_984c_2bd4c3c8ce0a); +::windows_core::imp::interface_hierarchy!(IPBDA_EIT, ::windows_core::IUnknown); impl IPBDA_EIT { pub unsafe fn Initialize(&self, pbuffer: &[u8]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Initialize)(::windows_core::Interface::as_raw(self), pbuffer.len().try_into().unwrap(), ::core::mem::transmute(pbuffer.as_ptr())).ok() @@ -19130,13 +17477,6 @@ impl IPBDA_EIT { (::windows_core::Interface::vtable(self).GetRecordDescriptorByTag)(::windows_core::Interface::as_raw(self), dwrecordindex, btag, pdwcookie, ::core::mem::transmute(ppdescriptor)).ok() } } -::windows_core::imp::interface_hierarchy!(IPBDA_EIT, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPBDA_EIT { - type Vtable = IPBDA_EIT_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPBDA_EIT { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa35f2dea_098f_4ebd_984c_2bd4c3c8ce0a); -} #[repr(C)] #[doc(hidden)] pub struct IPBDA_EIT_Vtbl { @@ -19153,9 +17493,8 @@ pub struct IPBDA_EIT_Vtbl { pub GetRecordDescriptorByIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwrecordindex: u32, dwindex: u32, ppdescriptor: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetRecordDescriptorByTag: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwrecordindex: u32, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPBDA_Services(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPBDA_Services, IPBDA_Services_Vtbl, 0x944eab37_eed4_4850_afd2_77e7efeb4427); +::windows_core::imp::interface_hierarchy!(IPBDA_Services, ::windows_core::IUnknown); impl IPBDA_Services { pub unsafe fn Initialize(&self, pbuffer: &[u8]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Initialize)(::windows_core::Interface::as_raw(self), pbuffer.len().try_into().unwrap(), ::core::mem::transmute(pbuffer.as_ptr())).ok() @@ -19169,13 +17508,6 @@ impl IPBDA_Services { (::windows_core::Interface::vtable(self).GetRecordByIndex)(::windows_core::Interface::as_raw(self), dwrecordindex, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IPBDA_Services, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPBDA_Services { - type Vtable = IPBDA_Services_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPBDA_Services { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x944eab37_eed4_4850_afd2_77e7efeb4427); -} #[repr(C)] #[doc(hidden)] pub struct IPBDA_Services_Vtbl { @@ -19184,9 +17516,8 @@ pub struct IPBDA_Services_Vtbl { pub GetCountOfRecords: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwval: *mut u32) -> ::windows_core::HRESULT, pub GetRecordByIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwrecordindex: u32, pul64serviceidx: *mut u64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPMT(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPMT, IPMT_Vtbl, 0x01f3b398_9527_4736_94db_5195878e97a8); +::windows_core::imp::interface_hierarchy!(IPMT, ::windows_core::IUnknown); impl IPMT { pub unsafe fn Initialize(&self, psectionlist: P0, pmpegdata: P1) -> ::windows_core::Result<()> where @@ -19267,13 +17598,6 @@ impl IPMT { (::windows_core::Interface::vtable(self).ConvertNextToCurrent)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IPMT, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPMT { - type Vtable = IPMT_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPMT { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x01f3b398_9527_4736_94db_5195878e97a8); -} #[repr(C)] #[doc(hidden)] pub struct IPMT_Vtbl { @@ -19298,31 +17622,22 @@ pub struct IPMT_Vtbl { pub RegisterForWhenCurrent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hnexttableiscurrent: super::super::super::Foundation::HANDLE) -> ::windows_core::HRESULT, pub ConvertNextToCurrent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPSITables(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPSITables, IPSITables_Vtbl, 0x919f24c5_7b14_42ac_a4b0_2ae08daf00ac); +::windows_core::imp::interface_hierarchy!(IPSITables, ::windows_core::IUnknown); impl IPSITables { pub unsafe fn GetTable(&self, dwtsid: u32, dwtid_pid: u32, dwhashedver: u32, dwpara4: u32) -> ::windows_core::Result<::windows_core::IUnknown> { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetTable)(::windows_core::Interface::as_raw(self), dwtsid, dwtid_pid, dwhashedver, dwpara4, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IPSITables, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPSITables { - type Vtable = IPSITables_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPSITables { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x919f24c5_7b14_42ac_a4b0_2ae08daf00ac); -} #[repr(C)] #[doc(hidden)] pub struct IPSITables_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetTable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwtsid: u32, dwtid_pid: u32, dwhashedver: u32, dwpara4: u32, ppiunknown: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPTFilterLicenseRenewal(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPTFilterLicenseRenewal, IPTFilterLicenseRenewal_Vtbl, 0x26d836a5_0c15_44c7_ac59_b0da8728f240); +::windows_core::imp::interface_hierarchy!(IPTFilterLicenseRenewal, ::windows_core::IUnknown); impl IPTFilterLicenseRenewal { pub unsafe fn RenewLicenses(&self, wszfilename: P0, wszexpiredkid: P1, dwcallersid: u32, bhighpriority: P2) -> ::windows_core::Result<()> where @@ -19336,13 +17651,6 @@ impl IPTFilterLicenseRenewal { (::windows_core::Interface::vtable(self).CancelLicenseRenewal)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IPTFilterLicenseRenewal, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPTFilterLicenseRenewal { - type Vtable = IPTFilterLicenseRenewal_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPTFilterLicenseRenewal { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x26d836a5_0c15_44c7_ac59_b0da8728f240); -} #[repr(C)] #[doc(hidden)] pub struct IPTFilterLicenseRenewal_Vtbl { @@ -19350,11 +17658,15 @@ pub struct IPTFilterLicenseRenewal_Vtbl { pub RenewLicenses: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wszfilename: ::windows_core::PCWSTR, wszexpiredkid: ::windows_core::PCWSTR, dwcallersid: u32, bhighpriority: super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub CancelLicenseRenewal: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPersistTuneXml(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IPersistTuneXml, + IPersistTuneXml_Vtbl, + 0x0754cd31_8d15_47a9_8215_d20064157244 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IPersistTuneXml, ::windows_core::IUnknown, super::super::super::System::Com::IPersist); #[cfg(feature = "Win32_System_Com")] impl IPersistTuneXml { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -19379,16 +17691,6 @@ impl IPersistTuneXml { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IPersistTuneXml, ::windows_core::IUnknown, super::super::super::System::Com::IPersist); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IPersistTuneXml { - type Vtable = IPersistTuneXml_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IPersistTuneXml { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0754cd31_8d15_47a9_8215_d20064157244); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IPersistTuneXml_Vtbl { @@ -19403,9 +17705,8 @@ pub struct IPersistTuneXml_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] Save: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPersistTuneXmlUtility(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPersistTuneXmlUtility, IPersistTuneXmlUtility_Vtbl, 0x990237ae_ac11_4614_be8f_dd217a4cb4cb); +::windows_core::imp::interface_hierarchy!(IPersistTuneXmlUtility, ::windows_core::IUnknown); impl IPersistTuneXmlUtility { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -19414,13 +17715,6 @@ impl IPersistTuneXmlUtility { (::windows_core::Interface::vtable(self).Deserialize)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(varvalue), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IPersistTuneXmlUtility, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPersistTuneXmlUtility { - type Vtable = IPersistTuneXmlUtility_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPersistTuneXmlUtility { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x990237ae_ac11_4614_be8f_dd217a4cb4cb); -} #[repr(C)] #[doc(hidden)] pub struct IPersistTuneXmlUtility_Vtbl { @@ -19430,9 +17724,8 @@ pub struct IPersistTuneXmlUtility_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] Deserialize: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPersistTuneXmlUtility2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPersistTuneXmlUtility2, IPersistTuneXmlUtility2_Vtbl, 0x992e165f_ea24_4b2f_9a1d_009d92120451); +::windows_core::imp::interface_hierarchy!(IPersistTuneXmlUtility2, ::windows_core::IUnknown, IPersistTuneXmlUtility); impl IPersistTuneXmlUtility2 { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -19450,13 +17743,6 @@ impl IPersistTuneXmlUtility2 { (::windows_core::Interface::vtable(self).Serialize)(::windows_core::Interface::as_raw(self), pitunerequest.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IPersistTuneXmlUtility2, ::windows_core::IUnknown, IPersistTuneXmlUtility); -unsafe impl ::windows_core::Interface for IPersistTuneXmlUtility2 { - type Vtable = IPersistTuneXmlUtility2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPersistTuneXmlUtility2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x992e165f_ea24_4b2f_9a1d_009d92120451); -} #[repr(C)] #[doc(hidden)] pub struct IPersistTuneXmlUtility2_Vtbl { @@ -19466,9 +17752,8 @@ pub struct IPersistTuneXmlUtility2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Serialize: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRegisterTuner(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRegisterTuner, IRegisterTuner_Vtbl, 0x359b3901_572c_4854_bb49_cdef66606a25); +::windows_core::imp::interface_hierarchy!(IRegisterTuner, ::windows_core::IUnknown); impl IRegisterTuner { pub unsafe fn Register(&self, ptuner: P0, pgraph: P1) -> ::windows_core::Result<()> where @@ -19481,13 +17766,6 @@ impl IRegisterTuner { (::windows_core::Interface::vtable(self).Unregister)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IRegisterTuner, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRegisterTuner { - type Vtable = IRegisterTuner_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRegisterTuner { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x359b3901_572c_4854_bb49_cdef66606a25); -} #[repr(C)] #[doc(hidden)] pub struct IRegisterTuner_Vtbl { @@ -19495,9 +17773,8 @@ pub struct IRegisterTuner_Vtbl { pub Register: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptuner: *mut ::core::ffi::c_void, pgraph: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Unregister: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISBE2Crossbar(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISBE2Crossbar, ISBE2Crossbar_Vtbl, 0x547b6d26_3226_487e_8253_8aa168749434); +::windows_core::imp::interface_hierarchy!(ISBE2Crossbar, ::windows_core::IUnknown); impl ISBE2Crossbar { pub unsafe fn EnableDefaultMode(&self, defaultflags: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).EnableDefaultMode)(::windows_core::Interface::as_raw(self), defaultflags).ok() @@ -19517,13 +17794,6 @@ impl ISBE2Crossbar { (::windows_core::Interface::vtable(self).EnumStreams)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISBE2Crossbar, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISBE2Crossbar { - type Vtable = ISBE2Crossbar_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISBE2Crossbar { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x547b6d26_3226_487e_8253_8aa168749434); -} #[repr(C)] #[doc(hidden)] pub struct ISBE2Crossbar_Vtbl { @@ -19533,9 +17803,8 @@ pub struct ISBE2Crossbar_Vtbl { pub SetOutputProfile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pprofile: *mut ::core::ffi::c_void, pcoutputpins: *mut u32, ppoutputpins: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub EnumStreams: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppstreams: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISBE2EnumStream(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISBE2EnumStream, ISBE2EnumStream_Vtbl, 0xf7611092_9fbc_46ec_a7c7_548ea78b71a4); +::windows_core::imp::interface_hierarchy!(ISBE2EnumStream, ::windows_core::IUnknown); impl ISBE2EnumStream { pub unsafe fn Next(&self, pstreamdesc: &mut [SBE2_STREAM_DESC], pcreceived: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), pstreamdesc.len().try_into().unwrap(), ::core::mem::transmute(pstreamdesc.as_ptr()), pcreceived).ok() @@ -19551,13 +17820,6 @@ impl ISBE2EnumStream { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISBE2EnumStream, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISBE2EnumStream { - type Vtable = ISBE2EnumStream_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISBE2EnumStream { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf7611092_9fbc_46ec_a7c7_548ea78b71a4); -} #[repr(C)] #[doc(hidden)] pub struct ISBE2EnumStream_Vtbl { @@ -19567,9 +17829,8 @@ pub struct ISBE2EnumStream_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppienumstream: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISBE2FileScan(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISBE2FileScan, ISBE2FileScan_Vtbl, 0x3e2bf5a5_4f96_4899_a1a3_75e8be9a5ac0); +::windows_core::imp::interface_hierarchy!(ISBE2FileScan, ::windows_core::IUnknown); impl ISBE2FileScan { pub unsafe fn RepairFile(&self, filename: P0) -> ::windows_core::Result<()> where @@ -19578,43 +17839,27 @@ impl ISBE2FileScan { (::windows_core::Interface::vtable(self).RepairFile)(::windows_core::Interface::as_raw(self), filename.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ISBE2FileScan, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISBE2FileScan { - type Vtable = ISBE2FileScan_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISBE2FileScan { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3e2bf5a5_4f96_4899_a1a3_75e8be9a5ac0); -} #[repr(C)] #[doc(hidden)] pub struct ISBE2FileScan_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub RepairFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filename: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISBE2GlobalEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISBE2GlobalEvent, ISBE2GlobalEvent_Vtbl, 0xcaede759_b6b1_11db_a578_0018f3fa24c6); +::windows_core::imp::interface_hierarchy!(ISBE2GlobalEvent, ::windows_core::IUnknown); impl ISBE2GlobalEvent { pub unsafe fn GetEvent(&self, idevt: *const ::windows_core::GUID, param1: u32, param2: u32, param3: u32, param4: u32, pspanning: *mut super::super::super::Foundation::BOOL, pcb: *mut u32, pb: *mut u8) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetEvent)(::windows_core::Interface::as_raw(self), idevt, param1, param2, param3, param4, pspanning, pcb, pb).ok() } } -::windows_core::imp::interface_hierarchy!(ISBE2GlobalEvent, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISBE2GlobalEvent { - type Vtable = ISBE2GlobalEvent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISBE2GlobalEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcaede759_b6b1_11db_a578_0018f3fa24c6); -} #[repr(C)] #[doc(hidden)] pub struct ISBE2GlobalEvent_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, idevt: *const ::windows_core::GUID, param1: u32, param2: u32, param3: u32, param4: u32, pspanning: *mut super::super::super::Foundation::BOOL, pcb: *mut u32, pb: *mut u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISBE2GlobalEvent2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISBE2GlobalEvent2, ISBE2GlobalEvent2_Vtbl, 0x6d8309bf_00fe_4506_8b03_f8c65b5c9b39); +::windows_core::imp::interface_hierarchy!(ISBE2GlobalEvent2, ::windows_core::IUnknown, ISBE2GlobalEvent); impl ISBE2GlobalEvent2 { pub unsafe fn GetEvent(&self, idevt: *const ::windows_core::GUID, param1: u32, param2: u32, param3: u32, param4: u32, pspanning: *mut super::super::super::Foundation::BOOL, pcb: *mut u32, pb: *mut u8) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.GetEvent)(::windows_core::Interface::as_raw(self), idevt, param1, param2, param3, param4, pspanning, pcb, pb).ok() @@ -19623,22 +17868,14 @@ impl ISBE2GlobalEvent2 { (::windows_core::Interface::vtable(self).GetEventEx)(::windows_core::Interface::as_raw(self), idevt, param1, param2, param3, param4, pspanning, pcb, pb, pstreamtime).ok() } } -::windows_core::imp::interface_hierarchy!(ISBE2GlobalEvent2, ::windows_core::IUnknown, ISBE2GlobalEvent); -unsafe impl ::windows_core::Interface for ISBE2GlobalEvent2 { - type Vtable = ISBE2GlobalEvent2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISBE2GlobalEvent2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6d8309bf_00fe_4506_8b03_f8c65b5c9b39); -} #[repr(C)] #[doc(hidden)] pub struct ISBE2GlobalEvent2_Vtbl { pub base__: ISBE2GlobalEvent_Vtbl, pub GetEventEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, idevt: *const ::windows_core::GUID, param1: u32, param2: u32, param3: u32, param4: u32, pspanning: *mut super::super::super::Foundation::BOOL, pcb: *mut u32, pb: *mut u8, pstreamtime: *mut i64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISBE2MediaTypeProfile(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISBE2MediaTypeProfile, ISBE2MediaTypeProfile_Vtbl, 0xf238267d_4671_40d7_997e_25dc32cfed2a); +::windows_core::imp::interface_hierarchy!(ISBE2MediaTypeProfile, ::windows_core::IUnknown); impl ISBE2MediaTypeProfile { pub unsafe fn GetStreamCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -19659,13 +17896,6 @@ impl ISBE2MediaTypeProfile { (::windows_core::Interface::vtable(self).DeleteStream)(::windows_core::Interface::as_raw(self), index).ok() } } -::windows_core::imp::interface_hierarchy!(ISBE2MediaTypeProfile, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISBE2MediaTypeProfile { - type Vtable = ISBE2MediaTypeProfile_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISBE2MediaTypeProfile { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf238267d_4671_40d7_997e_25dc32cfed2a); -} #[repr(C)] #[doc(hidden)] pub struct ISBE2MediaTypeProfile_Vtbl { @@ -19681,30 +17911,21 @@ pub struct ISBE2MediaTypeProfile_Vtbl { AddStream: usize, pub DeleteStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISBE2SpanningEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISBE2SpanningEvent, ISBE2SpanningEvent_Vtbl, 0xcaede760_b6b1_11db_a578_0018f3fa24c6); +::windows_core::imp::interface_hierarchy!(ISBE2SpanningEvent, ::windows_core::IUnknown); impl ISBE2SpanningEvent { pub unsafe fn GetEvent(&self, idevt: *const ::windows_core::GUID, streamid: u32, pcb: *mut u32, pb: *mut u8) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetEvent)(::windows_core::Interface::as_raw(self), idevt, streamid, pcb, pb).ok() } } -::windows_core::imp::interface_hierarchy!(ISBE2SpanningEvent, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISBE2SpanningEvent { - type Vtable = ISBE2SpanningEvent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISBE2SpanningEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcaede760_b6b1_11db_a578_0018f3fa24c6); -} #[repr(C)] #[doc(hidden)] pub struct ISBE2SpanningEvent_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, idevt: *const ::windows_core::GUID, streamid: u32, pcb: *mut u32, pb: *mut u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISBE2StreamMap(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISBE2StreamMap, ISBE2StreamMap_Vtbl, 0x667c7745_85b1_4c55_ae55_4e25056159fc); +::windows_core::imp::interface_hierarchy!(ISBE2StreamMap, ::windows_core::IUnknown); impl ISBE2StreamMap { pub unsafe fn MapStream(&self, stream: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).MapStream)(::windows_core::Interface::as_raw(self), stream).ok() @@ -19717,13 +17938,6 @@ impl ISBE2StreamMap { (::windows_core::Interface::vtable(self).EnumMappedStreams)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISBE2StreamMap, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISBE2StreamMap { - type Vtable = ISBE2StreamMap_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISBE2StreamMap { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x667c7745_85b1_4c55_ae55_4e25056159fc); -} #[repr(C)] #[doc(hidden)] pub struct ISBE2StreamMap_Vtbl { @@ -19732,9 +17946,8 @@ pub struct ISBE2StreamMap_Vtbl { pub UnmapStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, stream: u32) -> ::windows_core::HRESULT, pub EnumMappedStreams: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppstreams: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISCTE_EAS(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISCTE_EAS, ISCTE_EAS_Vtbl, 0x1ff544d6_161d_4fae_9faa_4f9f492ae999); +::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 @@ -19859,13 +18072,6 @@ impl ISCTE_EAS { (::windows_core::Interface::vtable(self).GetTableDescriptorByTag)(::windows_core::Interface::as_raw(self), btag, pdwcookie, ::core::mem::transmute(ppdescriptor)).ok() } } -::windows_core::imp::interface_hierarchy!(ISCTE_EAS, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISCTE_EAS { - type Vtable = ISCTE_EAS_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISCTE_EAS { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1ff544d6_161d_4fae_9faa_4f9f492ae999); -} #[repr(C)] #[doc(hidden)] pub struct ISCTE_EAS_Vtbl { @@ -19900,9 +18106,8 @@ pub struct ISCTE_EAS_Vtbl { pub GetTableDescriptorByIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwindex: u32, ppdescriptor: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetTableDescriptorByTag: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISIInbandEPG(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISIInbandEPG, ISIInbandEPG_Vtbl, 0xf90ad9d0_b854_4b68_9cc1_b2cc96119d85); +::windows_core::imp::interface_hierarchy!(ISIInbandEPG, ::windows_core::IUnknown); impl ISIInbandEPG { pub unsafe fn StartSIEPGScan(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).StartSIEPGScan)(::windows_core::Interface::as_raw(self)).ok() @@ -19915,13 +18120,6 @@ impl ISIInbandEPG { (::windows_core::Interface::vtable(self).IsSIEPGScanRunning)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISIInbandEPG, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISIInbandEPG { - type Vtable = ISIInbandEPG_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISIInbandEPG { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf90ad9d0_b854_4b68_9cc1_b2cc96119d85); -} #[repr(C)] #[doc(hidden)] pub struct ISIInbandEPG_Vtbl { @@ -19930,9 +18128,8 @@ pub struct ISIInbandEPG_Vtbl { pub StopSIEPGScan: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub IsSIEPGScanRunning: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, brunning: *mut super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISIInbandEPGEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISIInbandEPGEvent, ISIInbandEPGEvent_Vtbl, 0x7e47913a_5a89_423d_9a2b_e15168858934); +::windows_core::imp::interface_hierarchy!(ISIInbandEPGEvent, ::windows_core::IUnknown); impl ISIInbandEPGEvent { pub unsafe fn SIObjectEvent(&self, pidvb_eit: P0, dwtable_id: u32, dwservice_id: u32) -> ::windows_core::Result<()> where @@ -19941,22 +18138,14 @@ impl ISIInbandEPGEvent { (::windows_core::Interface::vtable(self).SIObjectEvent)(::windows_core::Interface::as_raw(self), pidvb_eit.into_param().abi(), dwtable_id, dwservice_id).ok() } } -::windows_core::imp::interface_hierarchy!(ISIInbandEPGEvent, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISIInbandEPGEvent { - type Vtable = ISIInbandEPGEvent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISIInbandEPGEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7e47913a_5a89_423d_9a2b_e15168858934); -} #[repr(C)] #[doc(hidden)] pub struct ISIInbandEPGEvent_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub SIObjectEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pidvb_eit: *mut ::core::ffi::c_void, dwtable_id: u32, dwservice_id: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IScanningTuner(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IScanningTuner, IScanningTuner_Vtbl, 0x1dfd0a5c_0284_11d3_9d8e_00c04f72d980); +::windows_core::imp::interface_hierarchy!(IScanningTuner, ::windows_core::IUnknown, ITuner); impl IScanningTuner { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -20035,13 +18224,6 @@ impl IScanningTuner { (::windows_core::Interface::vtable(self).AutoProgram)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IScanningTuner, ::windows_core::IUnknown, ITuner); -unsafe impl ::windows_core::Interface for IScanningTuner { - type Vtable = IScanningTuner_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IScanningTuner { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1dfd0a5c_0284_11d3_9d8e_00c04f72d980); -} #[repr(C)] #[doc(hidden)] pub struct IScanningTuner_Vtbl { @@ -20052,9 +18234,8 @@ pub struct IScanningTuner_Vtbl { pub ScanDown: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, millisecondspause: i32) -> ::windows_core::HRESULT, pub AutoProgram: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IScanningTunerEx(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IScanningTunerEx, IScanningTunerEx_Vtbl, 0x04bbd195_0e2d_4593_9bd5_4f908bc33cf5); +::windows_core::imp::interface_hierarchy!(IScanningTunerEx, ::windows_core::IUnknown, ITuner, IScanningTuner); impl IScanningTunerEx { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -20163,13 +18344,6 @@ impl IScanningTunerEx { (::windows_core::Interface::vtable(self).SetScanSignalTypeFilter)(::windows_core::Interface::as_raw(self), scanmodulationtypes, analogvideostandard).ok() } } -::windows_core::imp::interface_hierarchy!(IScanningTunerEx, ::windows_core::IUnknown, ITuner, IScanningTuner); -unsafe impl ::windows_core::Interface for IScanningTunerEx { - type Vtable = IScanningTunerEx_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IScanningTunerEx { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x04bbd195_0e2d_4593_9bd5_4f908bc33cf5); -} #[repr(C)] #[doc(hidden)] pub struct IScanningTunerEx_Vtbl { @@ -20186,9 +18360,8 @@ pub struct IScanningTunerEx_Vtbl { pub GetCurrentTunerStandardCapability: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, currentbroadcaststandard: ::windows_core::GUID, settlingtime: *mut i32, tvstandardssupported: *mut i32) -> ::windows_core::HRESULT, pub SetScanSignalTypeFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, scanmodulationtypes: i32, analogvideostandard: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISectionList(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISectionList, ISectionList_Vtbl, 0xafec1eb5_2a64_46c6_bf4b_ae3ccb6afdb0); +::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 @@ -20217,13 +18390,6 @@ impl ISectionList { (::windows_core::Interface::vtable(self).GetTableIdentifier)(::windows_core::Interface::as_raw(self), ptableid).ok() } } -::windows_core::imp::interface_hierarchy!(ISectionList, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISectionList { - type Vtable = ISectionList_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISectionList { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xafec1eb5_2a64_46c6_bf4b_ae3ccb6afdb0); -} #[repr(C)] #[doc(hidden)] pub struct ISectionList_Vtbl { @@ -20236,9 +18402,8 @@ pub struct ISectionList_Vtbl { pub GetProgramIdentifier: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppid: *const u16) -> ::windows_core::HRESULT, pub GetTableIdentifier: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptableid: *const u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IServiceLocationDescriptor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IServiceLocationDescriptor, IServiceLocationDescriptor_Vtbl, 0x58c3c827_9d91_4215_bff3_820a49f0904c); +::windows_core::imp::interface_hierarchy!(IServiceLocationDescriptor, ::windows_core::IUnknown); impl IServiceLocationDescriptor { pub unsafe fn GetPCR_PID(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -20260,13 +18425,6 @@ impl IServiceLocationDescriptor { (::windows_core::Interface::vtable(self).GetElementLanguageCode)(::windows_core::Interface::as_raw(self), bindex, ::core::mem::transmute(langcode.as_ptr())).ok() } } -::windows_core::imp::interface_hierarchy!(IServiceLocationDescriptor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IServiceLocationDescriptor { - type Vtable = IServiceLocationDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IServiceLocationDescriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x58c3c827_9d91_4215_bff3_820a49f0904c); -} #[repr(C)] #[doc(hidden)] pub struct IServiceLocationDescriptor_Vtbl { @@ -20277,9 +18435,8 @@ pub struct IServiceLocationDescriptor_Vtbl { pub GetElementPID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bindex: u8, pwval: *mut u16) -> ::windows_core::HRESULT, pub GetElementLanguageCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bindex: u8, langcode: *mut u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStreamBufferConfigure(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IStreamBufferConfigure, IStreamBufferConfigure_Vtbl, 0xce14dfae_4098_4af7_bbf7_d6511f835414); +::windows_core::imp::interface_hierarchy!(IStreamBufferConfigure, ::windows_core::IUnknown); impl IStreamBufferConfigure { pub unsafe fn SetDirectory(&self, pszdirectoryname: P0) -> ::windows_core::Result<()> where @@ -20305,13 +18462,6 @@ impl IStreamBufferConfigure { (::windows_core::Interface::vtable(self).GetBackingFileDuration)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IStreamBufferConfigure, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStreamBufferConfigure { - type Vtable = IStreamBufferConfigure_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStreamBufferConfigure { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xce14dfae_4098_4af7_bbf7_d6511f835414); -} #[repr(C)] #[doc(hidden)] pub struct IStreamBufferConfigure_Vtbl { @@ -20323,9 +18473,8 @@ pub struct IStreamBufferConfigure_Vtbl { pub SetBackingFileDuration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwseconds: u32) -> ::windows_core::HRESULT, pub GetBackingFileDuration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwseconds: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStreamBufferConfigure2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IStreamBufferConfigure2, IStreamBufferConfigure2_Vtbl, 0x53e037bf_3992_4282_ae34_2487b4dae06b); +::windows_core::imp::interface_hierarchy!(IStreamBufferConfigure2, ::windows_core::IUnknown, IStreamBufferConfigure); impl IStreamBufferConfigure2 { pub unsafe fn SetDirectory(&self, pszdirectoryname: P0) -> ::windows_core::Result<()> where @@ -20364,13 +18513,6 @@ impl IStreamBufferConfigure2 { (::windows_core::Interface::vtable(self).GetFFTransitionRates)(::windows_core::Interface::as_raw(self), pdwmaxfullframerate, pdwmaxnonskippingrate).ok() } } -::windows_core::imp::interface_hierarchy!(IStreamBufferConfigure2, ::windows_core::IUnknown, IStreamBufferConfigure); -unsafe impl ::windows_core::Interface for IStreamBufferConfigure2 { - type Vtable = IStreamBufferConfigure2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStreamBufferConfigure2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x53e037bf_3992_4282_ae34_2487b4dae06b); -} #[repr(C)] #[doc(hidden)] pub struct IStreamBufferConfigure2_Vtbl { @@ -20380,9 +18522,8 @@ pub struct IStreamBufferConfigure2_Vtbl { pub SetFFTransitionRates: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwmaxfullframerate: u32, dwmaxnonskippingrate: u32) -> ::windows_core::HRESULT, pub GetFFTransitionRates: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwmaxfullframerate: *mut u32, pdwmaxnonskippingrate: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStreamBufferConfigure3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IStreamBufferConfigure3, IStreamBufferConfigure3_Vtbl, 0x7e2d2a1e_7192_4bd7_80c1_061fd1d10402); +::windows_core::imp::interface_hierarchy!(IStreamBufferConfigure3, ::windows_core::IUnknown, IStreamBufferConfigure, IStreamBufferConfigure2); impl IStreamBufferConfigure3 { pub unsafe fn SetDirectory(&self, pszdirectoryname: P0) -> ::windows_core::Result<()> where @@ -20441,13 +18582,6 @@ impl IStreamBufferConfigure3 { (::windows_core::Interface::vtable(self).GetNamespace)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IStreamBufferConfigure3, ::windows_core::IUnknown, IStreamBufferConfigure, IStreamBufferConfigure2); -unsafe impl ::windows_core::Interface for IStreamBufferConfigure3 { - type Vtable = IStreamBufferConfigure3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStreamBufferConfigure3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7e2d2a1e_7192_4bd7_80c1_061fd1d10402); -} #[repr(C)] #[doc(hidden)] pub struct IStreamBufferConfigure3_Vtbl { @@ -20457,9 +18591,8 @@ pub struct IStreamBufferConfigure3_Vtbl { pub SetNamespace: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psznamespace: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub GetNamespace: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppsznamespace: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStreamBufferDataCounters(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IStreamBufferDataCounters, IStreamBufferDataCounters_Vtbl, 0x9d2a2563_31ab_402e_9a6b_adb903489440); +::windows_core::imp::interface_hierarchy!(IStreamBufferDataCounters, ::windows_core::IUnknown); impl IStreamBufferDataCounters { pub unsafe fn GetData(&self, ppindata: *mut SBE_PIN_DATA) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetData)(::windows_core::Interface::as_raw(self), ppindata).ok() @@ -20468,13 +18601,6 @@ impl IStreamBufferDataCounters { (::windows_core::Interface::vtable(self).ResetData)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IStreamBufferDataCounters, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStreamBufferDataCounters { - type Vtable = IStreamBufferDataCounters_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStreamBufferDataCounters { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9d2a2563_31ab_402e_9a6b_adb903489440); -} #[repr(C)] #[doc(hidden)] pub struct IStreamBufferDataCounters_Vtbl { @@ -20482,9 +18608,8 @@ pub struct IStreamBufferDataCounters_Vtbl { pub GetData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppindata: *mut SBE_PIN_DATA) -> ::windows_core::HRESULT, pub ResetData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStreamBufferInitialize(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IStreamBufferInitialize, IStreamBufferInitialize_Vtbl, 0x9ce50f2d_6ba7_40fb_a034_50b1a674ec78); +::windows_core::imp::interface_hierarchy!(IStreamBufferInitialize, ::windows_core::IUnknown); impl IStreamBufferInitialize { #[doc = "Required features: `\"Win32_System_Registry\"`"] #[cfg(feature = "Win32_System_Registry")] @@ -20498,13 +18623,6 @@ impl IStreamBufferInitialize { (::windows_core::Interface::vtable(self).SetSIDs)(::windows_core::Interface::as_raw(self), csids, ppsid).ok() } } -::windows_core::imp::interface_hierarchy!(IStreamBufferInitialize, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStreamBufferInitialize { - type Vtable = IStreamBufferInitialize_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStreamBufferInitialize { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9ce50f2d_6ba7_40fb_a034_50b1a674ec78); -} #[repr(C)] #[doc(hidden)] pub struct IStreamBufferInitialize_Vtbl { @@ -20515,9 +18633,8 @@ pub struct IStreamBufferInitialize_Vtbl { SetHKEY: usize, pub SetSIDs: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, csids: u32, ppsid: *mut super::super::super::Foundation::PSID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStreamBufferMediaSeeking(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IStreamBufferMediaSeeking, IStreamBufferMediaSeeking_Vtbl, 0xf61f5c26_863d_4afa_b0ba_2f81dc978596); +::windows_core::imp::interface_hierarchy!(IStreamBufferMediaSeeking, ::windows_core::IUnknown, super::IMediaSeeking); impl IStreamBufferMediaSeeking { pub unsafe fn GetCapabilities(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -20579,21 +18696,13 @@ impl IStreamBufferMediaSeeking { (::windows_core::Interface::vtable(self).base__.GetPreroll)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IStreamBufferMediaSeeking, ::windows_core::IUnknown, super::IMediaSeeking); -unsafe impl ::windows_core::Interface for IStreamBufferMediaSeeking { - type Vtable = IStreamBufferMediaSeeking_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStreamBufferMediaSeeking { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf61f5c26_863d_4afa_b0ba_2f81dc978596); -} #[repr(C)] #[doc(hidden)] pub struct IStreamBufferMediaSeeking_Vtbl { pub base__: super::IMediaSeeking_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStreamBufferMediaSeeking2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IStreamBufferMediaSeeking2, IStreamBufferMediaSeeking2_Vtbl, 0x3a439ab0_155f_470a_86a6_9ea54afd6eaf); +::windows_core::imp::interface_hierarchy!(IStreamBufferMediaSeeking2, ::windows_core::IUnknown, super::IMediaSeeking, IStreamBufferMediaSeeking); impl IStreamBufferMediaSeeking2 { pub unsafe fn GetCapabilities(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -20658,22 +18767,14 @@ impl IStreamBufferMediaSeeking2 { (::windows_core::Interface::vtable(self).SetRateEx)(::windows_core::Interface::as_raw(self), drate, dwframespersec).ok() } } -::windows_core::imp::interface_hierarchy!(IStreamBufferMediaSeeking2, ::windows_core::IUnknown, super::IMediaSeeking, IStreamBufferMediaSeeking); -unsafe impl ::windows_core::Interface for IStreamBufferMediaSeeking2 { - type Vtable = IStreamBufferMediaSeeking2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStreamBufferMediaSeeking2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3a439ab0_155f_470a_86a6_9ea54afd6eaf); -} #[repr(C)] #[doc(hidden)] pub struct IStreamBufferMediaSeeking2_Vtbl { pub base__: IStreamBufferMediaSeeking_Vtbl, pub SetRateEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, drate: f64, dwframespersec: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStreamBufferRecComp(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IStreamBufferRecComp, IStreamBufferRecComp_Vtbl, 0x9e259a9b_8815_42ae_b09f_221970b154fd); +::windows_core::imp::interface_hierarchy!(IStreamBufferRecComp, ::windows_core::IUnknown); impl IStreamBufferRecComp { pub unsafe fn Initialize(&self, psztargetfilename: P0, pszsbrecprofileref: P1) -> ::windows_core::Result<()> where @@ -20705,13 +18806,6 @@ impl IStreamBufferRecComp { (::windows_core::Interface::vtable(self).Cancel)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IStreamBufferRecComp, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStreamBufferRecComp { - type Vtable = IStreamBufferRecComp_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStreamBufferRecComp { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9e259a9b_8815_42ae_b09f_221970b154fd); -} #[repr(C)] #[doc(hidden)] pub struct IStreamBufferRecComp_Vtbl { @@ -20723,9 +18817,8 @@ pub struct IStreamBufferRecComp_Vtbl { pub Close: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Cancel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStreamBufferRecordControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IStreamBufferRecordControl, IStreamBufferRecordControl_Vtbl, 0xba9b6c99_f3c7_4ff2_92db_cfdd4851bf31); +::windows_core::imp::interface_hierarchy!(IStreamBufferRecordControl, ::windows_core::IUnknown); impl IStreamBufferRecordControl { pub unsafe fn Start(&self, prtstart: *mut i64) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Start)(::windows_core::Interface::as_raw(self), prtstart).ok() @@ -20737,13 +18830,6 @@ impl IStreamBufferRecordControl { (::windows_core::Interface::vtable(self).GetRecordingStatus)(::windows_core::Interface::as_raw(self), phresult, pbstarted, pbstopped).ok() } } -::windows_core::imp::interface_hierarchy!(IStreamBufferRecordControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStreamBufferRecordControl { - type Vtable = IStreamBufferRecordControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStreamBufferRecordControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xba9b6c99_f3c7_4ff2_92db_cfdd4851bf31); -} #[repr(C)] #[doc(hidden)] pub struct IStreamBufferRecordControl_Vtbl { @@ -20752,9 +18838,8 @@ pub struct IStreamBufferRecordControl_Vtbl { pub Stop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rtstop: i64) -> ::windows_core::HRESULT, pub GetRecordingStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phresult: *mut ::windows_core::HRESULT, pbstarted: *mut super::super::super::Foundation::BOOL, pbstopped: *mut super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStreamBufferRecordingAttribute(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IStreamBufferRecordingAttribute, IStreamBufferRecordingAttribute_Vtbl, 0x16ca4e03_fe69_4705_bd41_5b7dfc0c95f3); +::windows_core::imp::interface_hierarchy!(IStreamBufferRecordingAttribute, ::windows_core::IUnknown); impl IStreamBufferRecordingAttribute { pub unsafe fn SetAttribute(&self, ulreserved: u32, pszattributename: P0, streambufferattributetype: STREAMBUFFER_ATTR_DATATYPE, pbattribute: &[u8]) -> ::windows_core::Result<()> where @@ -20780,13 +18865,6 @@ impl IStreamBufferRecordingAttribute { (::windows_core::Interface::vtable(self).EnumAttributes)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IStreamBufferRecordingAttribute, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStreamBufferRecordingAttribute { - type Vtable = IStreamBufferRecordingAttribute_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStreamBufferRecordingAttribute { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x16ca4e03_fe69_4705_bd41_5b7dfc0c95f3); -} #[repr(C)] #[doc(hidden)] pub struct IStreamBufferRecordingAttribute_Vtbl { @@ -20797,9 +18875,8 @@ pub struct IStreamBufferRecordingAttribute_Vtbl { pub GetAttributeByIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, windex: u16, pulreserved: *const u32, pszattributename: ::windows_core::PWSTR, pcchnamelength: *mut u16, pstreambufferattributetype: *mut STREAMBUFFER_ATTR_DATATYPE, pbattribute: *mut u8, pcblength: *mut u16) -> ::windows_core::HRESULT, pub EnumAttributes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppienumstreambufferattrib: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStreamBufferSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IStreamBufferSink, IStreamBufferSink_Vtbl, 0xafd1f242_7efd_45ee_ba4e_407a25c9a77a); +::windows_core::imp::interface_hierarchy!(IStreamBufferSink, ::windows_core::IUnknown); impl IStreamBufferSink { pub unsafe fn LockProfile(&self, pszstreambufferfilename: P0) -> ::windows_core::Result<()> where @@ -20818,13 +18895,6 @@ impl IStreamBufferSink { (::windows_core::Interface::vtable(self).IsProfileLocked)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IStreamBufferSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStreamBufferSink { - type Vtable = IStreamBufferSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStreamBufferSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xafd1f242_7efd_45ee_ba4e_407a25c9a77a); -} #[repr(C)] #[doc(hidden)] pub struct IStreamBufferSink_Vtbl { @@ -20833,9 +18903,8 @@ pub struct IStreamBufferSink_Vtbl { pub CreateRecorder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszfilename: ::windows_core::PCWSTR, dwrecordtype: u32, precordingiunknown: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub IsProfileLocked: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStreamBufferSink2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IStreamBufferSink2, IStreamBufferSink2_Vtbl, 0xdb94a660_f4fb_4bfa_bcc6_fe159a4eea93); +::windows_core::imp::interface_hierarchy!(IStreamBufferSink2, ::windows_core::IUnknown, IStreamBufferSink); impl IStreamBufferSink2 { pub unsafe fn LockProfile(&self, pszstreambufferfilename: P0) -> ::windows_core::Result<()> where @@ -20857,22 +18926,14 @@ impl IStreamBufferSink2 { (::windows_core::Interface::vtable(self).UnlockProfile)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IStreamBufferSink2, ::windows_core::IUnknown, IStreamBufferSink); -unsafe impl ::windows_core::Interface for IStreamBufferSink2 { - type Vtable = IStreamBufferSink2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStreamBufferSink2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdb94a660_f4fb_4bfa_bcc6_fe159a4eea93); -} #[repr(C)] #[doc(hidden)] pub struct IStreamBufferSink2_Vtbl { pub base__: IStreamBufferSink_Vtbl, pub UnlockProfile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStreamBufferSink3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IStreamBufferSink3, IStreamBufferSink3_Vtbl, 0x974723f2_887a_4452_9366_2cff3057bc8f); +::windows_core::imp::interface_hierarchy!(IStreamBufferSink3, ::windows_core::IUnknown, IStreamBufferSink, IStreamBufferSink2); impl IStreamBufferSink3 { pub unsafe fn LockProfile(&self, pszstreambufferfilename: P0) -> ::windows_core::Result<()> where @@ -20897,22 +18958,14 @@ impl IStreamBufferSink3 { (::windows_core::Interface::vtable(self).SetAvailableFilter)(::windows_core::Interface::as_raw(self), prtmin).ok() } } -::windows_core::imp::interface_hierarchy!(IStreamBufferSink3, ::windows_core::IUnknown, IStreamBufferSink, IStreamBufferSink2); -unsafe impl ::windows_core::Interface for IStreamBufferSink3 { - type Vtable = IStreamBufferSink3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStreamBufferSink3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x974723f2_887a_4452_9366_2cff3057bc8f); -} #[repr(C)] #[doc(hidden)] pub struct IStreamBufferSink3_Vtbl { pub base__: IStreamBufferSink2_Vtbl, pub SetAvailableFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prtmin: *mut i64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStreamBufferSource(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IStreamBufferSource, IStreamBufferSource_Vtbl, 0x1c5bd776_6ced_4f44_8164_5eab0e98db12); +::windows_core::imp::interface_hierarchy!(IStreamBufferSource, ::windows_core::IUnknown); impl IStreamBufferSource { pub unsafe fn SetStreamSink(&self, pistreambuffersink: P0) -> ::windows_core::Result<()> where @@ -20921,22 +18974,14 @@ impl IStreamBufferSource { (::windows_core::Interface::vtable(self).SetStreamSink)(::windows_core::Interface::as_raw(self), pistreambuffersink.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IStreamBufferSource, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStreamBufferSource { - type Vtable = IStreamBufferSource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStreamBufferSource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1c5bd776_6ced_4f44_8164_5eab0e98db12); -} #[repr(C)] #[doc(hidden)] pub struct IStreamBufferSource_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub SetStreamSink: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pistreambuffersink: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITSDT(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITSDT, ITSDT_Vtbl, 0xd19bdb43_405b_4a7c_a791_c89110c33165); +::windows_core::imp::interface_hierarchy!(ITSDT, ::windows_core::IUnknown); impl ITSDT { pub unsafe fn Initialize(&self, psectionlist: P0, pmpegdata: P1) -> ::windows_core::Result<()> where @@ -20980,13 +19025,6 @@ impl ITSDT { (::windows_core::Interface::vtable(self).ConvertNextToCurrent)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ITSDT, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITSDT { - type Vtable = ITSDT_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITSDT { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd19bdb43_405b_4a7c_a791_c89110c33165); -} #[repr(C)] #[doc(hidden)] pub struct ITSDT_Vtbl { @@ -21001,11 +19039,15 @@ pub struct ITSDT_Vtbl { pub RegisterForWhenCurrent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hnexttableiscurrent: super::super::super::Foundation::HANDLE) -> ::windows_core::HRESULT, pub ConvertNextToCurrent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITuneRequest(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITuneRequest, + ITuneRequest_Vtbl, + 0x07ddc146_fc3d_11d2_9d8c_00c04f72d980 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITuneRequest, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITuneRequest { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -21042,16 +19084,6 @@ impl ITuneRequest { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITuneRequest, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITuneRequest { - type Vtable = ITuneRequest_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITuneRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x07ddc146_fc3d_11d2_9d8c_00c04f72d980); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITuneRequest_Vtbl { @@ -21077,9 +19109,8 @@ pub struct ITuneRequest_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] SetLocator: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITuneRequestInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITuneRequestInfo, ITuneRequestInfo_Vtbl, 0xa3b152df_7a90_4218_ac54_9830bee8c0b6); +::windows_core::imp::interface_hierarchy!(ITuneRequestInfo, ::windows_core::IUnknown); impl ITuneRequestInfo { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -21142,13 +19173,6 @@ impl ITuneRequestInfo { (::windows_core::Interface::vtable(self).GetPreviousLocator)(::windows_core::Interface::as_raw(self), currentrequest.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITuneRequestInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITuneRequestInfo { - type Vtable = ITuneRequestInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITuneRequestInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa3b152df_7a90_4218_ac54_9830bee8c0b6); -} #[repr(C)] #[doc(hidden)] pub struct ITuneRequestInfo_Vtbl { @@ -21182,9 +19206,8 @@ pub struct ITuneRequestInfo_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetPreviousLocator: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITuneRequestInfoEx(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITuneRequestInfoEx, ITuneRequestInfoEx_Vtbl, 0xee957c52_b0d0_4e78_8dd1_b87a08bfd893); +::windows_core::imp::interface_hierarchy!(ITuneRequestInfoEx, ::windows_core::IUnknown, ITuneRequestInfo); impl ITuneRequestInfoEx { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -21256,13 +19279,6 @@ impl ITuneRequestInfoEx { (::windows_core::Interface::vtable(self).CreateComponentListEx)(::windows_core::Interface::as_raw(self), currentrequest.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITuneRequestInfoEx, ::windows_core::IUnknown, ITuneRequestInfo); -unsafe impl ::windows_core::Interface for ITuneRequestInfoEx { - type Vtable = ITuneRequestInfoEx_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITuneRequestInfoEx { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xee957c52_b0d0_4e78_8dd1_b87a08bfd893); -} #[repr(C)] #[doc(hidden)] pub struct ITuneRequestInfoEx_Vtbl { @@ -21272,9 +19288,8 @@ pub struct ITuneRequestInfoEx_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] CreateComponentListEx: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITuner(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITuner, ITuner_Vtbl, 0x28c52640_018a_11d3_9d8e_00c04f72d980); +::windows_core::imp::interface_hierarchy!(ITuner, ::windows_core::IUnknown); impl ITuner { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -21338,13 +19353,6 @@ impl ITuner { (::windows_core::Interface::vtable(self).TriggerSignalEvents)(::windows_core::Interface::as_raw(self), interval).ok() } } -::windows_core::imp::interface_hierarchy!(ITuner, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITuner { - type Vtable = ITuner_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITuner { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x28c52640_018a_11d3_9d8e_00c04f72d980); -} #[repr(C)] #[doc(hidden)] pub struct ITuner_Vtbl { @@ -21381,9 +19389,8 @@ pub struct ITuner_Vtbl { pub SignalStrength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strength: *mut i32) -> ::windows_core::HRESULT, pub TriggerSignalEvents: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, interval: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITunerCap(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITunerCap, ITunerCap_Vtbl, 0xe60dfa45_8d56_4e65_a8ab_d6be9412c249); +::windows_core::imp::interface_hierarchy!(ITunerCap, ::windows_core::IUnknown); impl ITunerCap { pub unsafe fn get_SupportedNetworkTypes(&self, ulcnetworktypesmax: u32, pulcnetworktypes: *mut u32, pguidnetworktypes: *mut ::windows_core::GUID) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).get_SupportedNetworkTypes)(::windows_core::Interface::as_raw(self), ulcnetworktypesmax, pulcnetworktypes, pguidnetworktypes).ok() @@ -21395,13 +19402,6 @@ impl ITunerCap { (::windows_core::Interface::vtable(self).get_AuxInputCount)(::windows_core::Interface::as_raw(self), pulcompositecount, pulsvideocount).ok() } } -::windows_core::imp::interface_hierarchy!(ITunerCap, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITunerCap { - type Vtable = ITunerCap_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITunerCap { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe60dfa45_8d56_4e65_a8ab_d6be9412c249); -} #[repr(C)] #[doc(hidden)] pub struct ITunerCap_Vtbl { @@ -21410,33 +19410,29 @@ pub struct ITunerCap_Vtbl { pub get_SupportedVideoFormats: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pulamtunermodetype: *mut u32, pulanalogvideostandard: *mut u32) -> ::windows_core::HRESULT, pub get_AuxInputCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pulcompositecount: *mut u32, pulsvideocount: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITunerCapEx(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITunerCapEx, ITunerCapEx_Vtbl, 0xed3e0c66_18c8_4ea6_9300_f6841fdd35dc); +::windows_core::imp::interface_hierarchy!(ITunerCapEx, ::windows_core::IUnknown); impl ITunerCapEx { pub unsafe fn Has608_708Caption(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).Has608_708Caption)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITunerCapEx, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITunerCapEx { - type Vtable = ITunerCapEx_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITunerCapEx { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xed3e0c66_18c8_4ea6_9300_f6841fdd35dc); -} #[repr(C)] #[doc(hidden)] pub struct ITunerCapEx_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Has608_708Caption: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbhascaption: *mut super::super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITuningSpace(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITuningSpace, + ITuningSpace_Vtbl, + 0x061c6e30_e622_11d2_9493_00c04f72d980 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITuningSpace, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITuningSpace { pub unsafe fn UniqueName(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -21544,16 +19540,6 @@ impl ITuningSpace { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITuningSpace, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITuningSpace { - type Vtable = ITuningSpace_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITuningSpace { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x061c6e30_e622_11d2_9493_00c04f72d980); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITuningSpace_Vtbl { @@ -21602,11 +19588,15 @@ pub struct ITuningSpace_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Clone: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITuningSpaceContainer(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITuningSpaceContainer, + ITuningSpaceContainer_Vtbl, + 0x5b692e84_e2f1_11d2_9493_00c04f72d980 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITuningSpaceContainer, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITuningSpaceContainer { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -21693,16 +19683,6 @@ impl ITuningSpaceContainer { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITuningSpaceContainer, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITuningSpaceContainer { - type Vtable = ITuningSpaceContainer_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITuningSpaceContainer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5b692e84_e2f1_11d2_9493_00c04f72d980); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITuningSpaceContainer_Vtbl { @@ -21748,11 +19728,15 @@ pub struct ITuningSpaceContainer_Vtbl { pub MaxCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, maxcount: *mut i32) -> ::windows_core::HRESULT, pub SetMaxCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, maxcount: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITuningSpaces(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITuningSpaces, + ITuningSpaces_Vtbl, + 0x901284e4_33fe_4b69_8d63_634a596f3756 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITuningSpaces, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITuningSpaces { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -21777,16 +19761,6 @@ impl ITuningSpaces { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITuningSpaces, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITuningSpaces { - type Vtable = ITuningSpaces_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITuningSpaces { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x901284e4_33fe_4b69_8d63_634a596f3756); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITuningSpaces_Vtbl { @@ -21802,9 +19776,8 @@ pub struct ITuningSpaces_Vtbl { get_Item: usize, pub EnumTuningSpaces: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXDSCodec(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXDSCodec, IXDSCodec_Vtbl, 0xc4c4c4b3_0049_4e2b_98fb_9537f6ce516d); +::windows_core::imp::interface_hierarchy!(IXDSCodec, ::windows_core::IUnknown); impl IXDSCodec { pub unsafe fn XDSToRatObjOK(&self) -> ::windows_core::Result<::windows_core::HRESULT> { let mut result__ = ::std::mem::zeroed(); @@ -21831,13 +19804,6 @@ impl IXDSCodec { (::windows_core::Interface::vtable(self).GetLastErrorCode)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IXDSCodec, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXDSCodec { - type Vtable = IXDSCodec_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXDSCodec { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc4c4c4b3_0049_4e2b_98fb_9537f6ce516d); -} #[repr(C)] #[doc(hidden)] pub struct IXDSCodec_Vtbl { @@ -21850,9 +19816,8 @@ pub struct IXDSCodec_Vtbl { pub GetCurrLicenseExpDate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prottype: *const ProtType, lpdatetime: *mut i32) -> ::windows_core::HRESULT, pub GetLastErrorCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXDSCodecConfig(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXDSCodecConfig, IXDSCodecConfig_Vtbl, 0xc4c4c4d3_0049_4e2b_98fb_9537f6ce516d); +::windows_core::imp::interface_hierarchy!(IXDSCodecConfig, ::windows_core::IUnknown); impl IXDSCodecConfig { pub unsafe fn GetSecureChannelObject(&self) -> ::windows_core::Result<::windows_core::IUnknown> { let mut result__ = ::std::mem::zeroed(); @@ -21862,13 +19827,6 @@ impl IXDSCodecConfig { (::windows_core::Interface::vtable(self).SetPauseBufferTime)(::windows_core::Interface::as_raw(self), dwpausebuffertime).ok() } } -::windows_core::imp::interface_hierarchy!(IXDSCodecConfig, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXDSCodecConfig { - type Vtable = IXDSCodecConfig_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXDSCodecConfig { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc4c4c4d3_0049_4e2b_98fb_9537f6ce516d); -} #[repr(C)] #[doc(hidden)] pub struct IXDSCodecConfig_Vtbl { @@ -21876,34 +19834,32 @@ pub struct IXDSCodecConfig_Vtbl { pub GetSecureChannelObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppunkdrmsecurechannel: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetPauseBufferTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwpausebuffertime: u32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] -#[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXDSCodecEvents(::windows_core::IUnknown); #[cfg(feature = "Win32_System_Com")] -impl IXDSCodecEvents {} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IXDSCodecEvents, + IXDSCodecEvents_Vtbl, + 0xc4c4c4c3_0049_4e2b_98fb_9537f6ce516d +); #[cfg(feature = "Win32_System_Com")] ::windows_core::imp::interface_hierarchy!(IXDSCodecEvents, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IXDSCodecEvents { - type Vtable = IXDSCodecEvents_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IXDSCodecEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc4c4c4c3_0049_4e2b_98fb_9537f6ce516d); -} +impl IXDSCodecEvents {} #[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IXDSCodecEvents_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXDSToRat(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IXDSToRat, + IXDSToRat_Vtbl, + 0xc5c5c5b0_3abc_11d6_b25b_00c04fa0c026 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IXDSToRat, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IXDSToRat { pub unsafe fn Init(&self) -> ::windows_core::Result<()> { @@ -21914,16 +19870,6 @@ impl IXDSToRat { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IXDSToRat, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IXDSToRat { - type Vtable = IXDSToRat_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IXDSToRat { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc5c5c5b0_3abc_11d6_b25b_00c04fa0c026); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IXDSToRat_Vtbl { @@ -21931,23 +19877,17 @@ pub struct IXDSToRat_Vtbl { pub Init: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ParseXDSBytePair: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, byte1: u8, byte2: u8, pensystem: *mut EnTvRat_System, penlevel: *mut EnTvRat_GenericLevel, plbfenattributes: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct _IMSVidCtlEvents(::windows_core::IUnknown); -#[cfg(feature = "Win32_System_Com")] -impl _IMSVidCtlEvents {} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + _IMSVidCtlEvents, + _IMSVidCtlEvents_Vtbl, + 0xb0edf164_910a_11d2_b632_00c04f79498e +); #[cfg(feature = "Win32_System_Com")] ::windows_core::imp::interface_hierarchy!(_IMSVidCtlEvents, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for _IMSVidCtlEvents { - type Vtable = _IMSVidCtlEvents_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for _IMSVidCtlEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb0edf164_910a_11d2_b632_00c04f79498e); -} +impl _IMSVidCtlEvents {} #[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] diff --git a/crates/libs/windows/src/Windows/Win32/Media/DirectShow/Xml/impl.rs b/crates/libs/windows/src/Windows/Win32/Media/DirectShow/Xml/impl.rs index 06a44ca58e..184d323e1b 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/DirectShow/Xml/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/DirectShow/Xml/impl.rs @@ -33,6 +33,6 @@ impl IXMLGraphBuilder_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 b23562ff79..a4fc48761d 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 @@ -1,6 +1,5 @@ -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXMLGraphBuilder(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXMLGraphBuilder, IXMLGraphBuilder_Vtbl, 0x1bb05960_5fbf_11d2_a521_44df07c10000); +::windows_core::imp::interface_hierarchy!(IXMLGraphBuilder, ::windows_core::IUnknown); impl IXMLGraphBuilder { #[doc = "Required features: `\"Win32_Data_Xml_MsXml\"`, `\"Win32_System_Com\"`"] #[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_System_Com"))] @@ -26,13 +25,6 @@ impl IXMLGraphBuilder { (::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::imp::interface_hierarchy!(IXMLGraphBuilder, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXMLGraphBuilder { - type Vtable = IXMLGraphBuilder_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXMLGraphBuilder { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1bb05960_5fbf_11d2_a521_44df07c10000); -} #[repr(C)] #[doc(hidden)] pub struct IXMLGraphBuilder_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Media/DirectShow/impl.rs b/crates/libs/windows/src/Windows/Win32/Media/DirectShow/impl.rs index 6fe5515503..0d65a32b07 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/DirectShow/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/DirectShow/impl.rs @@ -107,7 +107,7 @@ impl IAMAnalogVideoDecoder_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAMAnalogVideoEncoder_Impl: Sized { @@ -193,7 +193,7 @@ impl IAMAnalogVideoEncoder_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAMAsyncReaderTimestampScaling_Impl: Sized { @@ -226,7 +226,7 @@ impl IAMAsyncReaderTimestampScaling_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAMAudioInputMixer_Impl: Sized { @@ -405,7 +405,7 @@ impl IAMAudioInputMixer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAMAudioRendererStats_Impl: Sized { @@ -422,7 +422,7 @@ impl IAMAudioRendererStats_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetStatParam: GetStatParam:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAMBufferNegotiation_Impl: Sized { @@ -455,7 +455,7 @@ impl IAMBufferNegotiation_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAMCameraControl_Impl: Sized { @@ -489,7 +489,7 @@ impl IAMCameraControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAMCertifiedOutputProtection_Impl: Sized { @@ -530,7 +530,7 @@ impl IAMCertifiedOutputProtection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -589,7 +589,7 @@ impl IAMChannelInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IAMClockAdjust_Impl: Sized { @@ -606,7 +606,7 @@ impl IAMClockAdjust_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), SetClockDelta: SetClockDelta:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAMClockSlave_Impl: Sized { @@ -639,7 +639,7 @@ impl IAMClockSlave_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -695,7 +695,7 @@ impl IAMCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IAMCopyCaptureFileProgress_Impl: Sized { @@ -712,7 +712,7 @@ impl IAMCopyCaptureFileProgress_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Progress: Progress:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAMCrossbar_Impl: Sized { @@ -766,7 +766,7 @@ impl IAMCrossbar_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAMDecoderCaps_Impl: Sized { @@ -789,7 +789,7 @@ impl IAMDecoderCaps_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetDecoderCaps: GetDecoderCaps:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAMDevMemoryAllocator_Impl: Sized { @@ -837,7 +837,7 @@ impl IAMDevMemoryAllocator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAMDevMemoryControl_Impl: Sized { @@ -877,7 +877,7 @@ impl IAMDevMemoryControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAMDeviceRemoval_Impl: Sized { @@ -911,7 +911,7 @@ impl IAMDeviceRemoval_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Media_Audio_DirectSound\"`"] @@ -1002,7 +1002,7 @@ impl IAMDirectSound_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAMDroppedFrames_Impl: Sized { @@ -1061,7 +1061,7 @@ impl IAMDroppedFrames_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAMExtDevice_Impl: Sized { @@ -1160,7 +1160,7 @@ impl IAMExtDevice_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAMExtTransport_Impl: Sized { @@ -1435,7 +1435,7 @@ impl IAMExtTransport_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1473,7 +1473,7 @@ impl IAMExtendedErrorInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1539,7 +1539,7 @@ impl IAMExtendedSeeking_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IAMFilterGraphCallback_Impl: Sized { @@ -1556,7 +1556,7 @@ impl IAMFilterGraphCallback_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), UnableToRender: UnableToRender:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAMFilterMiscFlags_Impl: Sized { @@ -1573,7 +1573,7 @@ impl IAMFilterMiscFlags_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetMiscFlags: GetMiscFlags:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1604,7 +1604,7 @@ impl IAMGraphBuilderCallback_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAMGraphStreams_Impl: Sized { @@ -1638,7 +1638,7 @@ impl IAMGraphStreams_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAMLatency_Impl: Sized { @@ -1661,7 +1661,7 @@ impl IAMLatency_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetLatency: GetLatency:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] @@ -1769,7 +1769,7 @@ impl IAMLine21Decoder_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1877,7 +1877,7 @@ impl IAMMediaContent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1915,7 +1915,7 @@ impl IAMMediaContent2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1967,7 +1967,7 @@ impl IAMMediaStream_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Media_MediaFoundation\"`"] @@ -2115,7 +2115,7 @@ impl IAMMediaTypeSample_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Media_MediaFoundation\"`"] @@ -2179,7 +2179,7 @@ impl IAMMediaTypeStream_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2263,7 +2263,7 @@ impl IAMMultiMediaStream_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2434,7 +2434,7 @@ impl IAMNetShowConfig_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2514,7 +2514,7 @@ impl IAMNetShowExProps_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2545,7 +2545,7 @@ impl IAMNetShowPreroll_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2611,7 +2611,7 @@ impl IAMNetworkStatus_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IAMOpenProgress_Impl: Sized { @@ -2638,7 +2638,7 @@ impl IAMOpenProgress_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAMOverlayFX_Impl: Sized { @@ -2684,7 +2684,7 @@ impl IAMOverlayFX_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAMParse_Impl: Sized { @@ -2724,7 +2724,7 @@ impl IAMParse_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAMPhysicalPinInfo_Impl: Sized { @@ -2741,7 +2741,7 @@ impl IAMPhysicalPinInfo_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetPhysicalType: GetPhysicalType:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAMPlayList_Impl: Sized { @@ -2807,7 +2807,7 @@ impl IAMPlayList_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAMPlayListItem_Impl: Sized { @@ -2963,7 +2963,7 @@ impl IAMPlayListItem_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAMPluginControl_Impl: Sized { @@ -3037,7 +3037,7 @@ impl IAMPluginControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAMPushSource_Impl: Sized + IAMLatency_Impl { @@ -3110,7 +3110,7 @@ impl IAMPushSource_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IAMRebuild_Impl: Sized { @@ -3127,7 +3127,7 @@ impl IAMRebuild_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), RebuildNow: RebuildNow:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAMResourceControl_Impl: Sized { @@ -3144,7 +3144,7 @@ impl IAMResourceControl_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Reserve: Reserve:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3215,7 +3215,7 @@ impl IAMStats_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Media_MediaFoundation\"`"] @@ -3266,7 +3266,7 @@ impl IAMStreamConfig_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAMStreamControl_Impl: Sized { @@ -3300,7 +3300,7 @@ impl IAMStreamControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Media_MediaFoundation\"`"] @@ -3344,7 +3344,7 @@ impl IAMStreamSelect_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAMTVAudio_Impl: Sized { @@ -3417,7 +3417,7 @@ impl IAMTVAudio_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAMTVAudioNotification_Impl: Sized { @@ -3434,7 +3434,7 @@ impl IAMTVAudioNotification_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnEvent: OnEvent:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAMTVTuner_Impl: Sized + IAMTuner_Impl { @@ -3572,7 +3572,7 @@ impl IAMTVTuner_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IAMTimecodeDisplay_Impl: Sized { @@ -3625,7 +3625,7 @@ impl IAMTimecodeDisplay_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAMTimecodeGenerator_Impl: Sized { @@ -3692,7 +3692,7 @@ impl IAMTimecodeGenerator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAMTimecodeReader_Impl: Sized { @@ -3752,7 +3752,7 @@ impl IAMTimecodeReader_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAMTuner_Impl: Sized { @@ -3900,7 +3900,7 @@ impl IAMTuner_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAMTunerNotification_Impl: Sized { @@ -3917,7 +3917,7 @@ impl IAMTunerNotification_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnEvent: OnEvent:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAMVfwCaptureDialogs_Impl: Sized { @@ -3951,7 +3951,7 @@ impl IAMVfwCaptureDialogs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAMVfwCompressDialogs_Impl: Sized { @@ -3992,7 +3992,7 @@ impl IAMVfwCompressDialogs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_DirectDraw\"`"] @@ -4093,7 +4093,7 @@ impl IAMVideoAccelerator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_DirectDraw\"`"] @@ -4131,7 +4131,7 @@ impl IAMVideoAcceleratorNotify_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAMVideoCompression_Impl: Sized { @@ -4245,7 +4245,7 @@ impl IAMVideoCompression_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAMVideoControl_Impl: Sized { @@ -4324,7 +4324,7 @@ impl IAMVideoControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAMVideoDecimationProperties_Impl: Sized { @@ -4357,7 +4357,7 @@ impl IAMVideoDecimationProperties_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAMVideoProcAmp_Impl: Sized { @@ -4391,7 +4391,7 @@ impl IAMVideoProcAmp_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAMWMBufferPass_Impl: Sized { @@ -4408,7 +4408,7 @@ impl IAMWMBufferPass_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), SetNotify: SetNotify:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Media_WindowsMediaFormat\"`"] @@ -4429,7 +4429,7 @@ impl IAMWMBufferPassCallback_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Notify: Notify:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] @@ -4572,7 +4572,7 @@ impl IAMWstDecoder_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAMovieSetup_Impl: Sized { @@ -4599,7 +4599,7 @@ impl IAMovieSetup_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAsyncReader_Impl: Sized { @@ -4674,7 +4674,7 @@ impl IAsyncReader_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Media_Audio\"`"] @@ -4705,7 +4705,7 @@ impl IAudioData_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Media_Audio\"`"] @@ -4749,7 +4749,7 @@ impl IAudioMediaStream_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IAudioStreamSample_Impl: Sized + IStreamSample_Impl { @@ -4772,7 +4772,7 @@ impl IAudioStreamSample_Vtbl { Self { base__: IStreamSample_Vtbl::new::(), GetAudioData: GetAudioData:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IBDA_AUX_Impl: Sized { @@ -4805,7 +4805,7 @@ impl IBDA_AUX_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IBDA_AutoDemodulate_Impl: Sized { @@ -4822,7 +4822,7 @@ impl IBDA_AutoDemodulate_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), put_AutoDemodulate: put_AutoDemodulate:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IBDA_AutoDemodulateEx_Impl: Sized + IBDA_AutoDemodulate_Impl { @@ -4856,7 +4856,7 @@ impl IBDA_AutoDemodulateEx_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IBDA_ConditionalAccess_Impl: Sized { @@ -4951,7 +4951,7 @@ impl IBDA_ConditionalAccess_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IBDA_ConditionalAccessEx_Impl: Sized { @@ -5017,7 +5017,7 @@ impl IBDA_ConditionalAccessEx_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IBDA_DRIDRMService_Impl: Sized { @@ -5051,7 +5051,7 @@ impl IBDA_DRIDRMService_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IBDA_DRIWMDRMSession_Impl: Sized { @@ -5113,7 +5113,7 @@ impl IBDA_DRIWMDRMSession_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IBDA_DRM_Impl: Sized { @@ -5140,7 +5140,7 @@ impl IBDA_DRM_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IBDA_DRMService_Impl: Sized { @@ -5167,7 +5167,7 @@ impl IBDA_DRMService_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IBDA_DeviceControl_Impl: Sized { @@ -5208,7 +5208,7 @@ impl IBDA_DeviceControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5222,7 +5222,7 @@ impl IBDA_DiagnosticProperties_Vtbl { Self { base__: super::super::System::Com::StructuredStorage::IPropertyBag_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IBDA_DigitalDemodulator_Impl: Sized { @@ -5333,7 +5333,7 @@ impl IBDA_DigitalDemodulator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IBDA_DigitalDemodulator2_Impl: Sized + IBDA_DigitalDemodulator_Impl { @@ -5402,7 +5402,7 @@ impl IBDA_DigitalDemodulator2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IBDA_DigitalDemodulator3_Impl: Sized + IBDA_DigitalDemodulator2_Impl { @@ -5443,7 +5443,7 @@ impl IBDA_DigitalDemodulator3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IBDA_DiseqCommand_Impl: Sized { @@ -5498,7 +5498,7 @@ impl IBDA_DiseqCommand_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IBDA_EasMessage_Impl: Sized { @@ -5515,7 +5515,7 @@ impl IBDA_EasMessage_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), get_EasMessage: get_EasMessage:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IBDA_Encoder_Impl: Sized { @@ -5584,7 +5584,7 @@ impl IBDA_Encoder_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IBDA_EthernetFilter_Impl: Sized { @@ -5638,7 +5638,7 @@ impl IBDA_EthernetFilter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IBDA_EventingService_Impl: Sized { @@ -5655,7 +5655,7 @@ impl IBDA_EventingService_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CompleteEvent: CompleteEvent:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IBDA_FDC_Impl: Sized { @@ -5729,7 +5729,7 @@ impl IBDA_FDC_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IBDA_FrequencyFilter_Impl: Sized { @@ -5826,7 +5826,7 @@ impl IBDA_FrequencyFilter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IBDA_GuideDataDeliveryService_Impl: Sized { @@ -5899,7 +5899,7 @@ impl IBDA_GuideDataDeliveryService_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IBDA_IPSinkControl_Impl: Sized { @@ -5926,7 +5926,7 @@ impl IBDA_IPSinkControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IBDA_IPSinkInfo_Impl: Sized { @@ -5972,7 +5972,7 @@ impl IBDA_IPSinkInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IBDA_IPV4Filter_Impl: Sized { @@ -6026,7 +6026,7 @@ impl IBDA_IPV4Filter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IBDA_IPV6Filter_Impl: Sized { @@ -6080,7 +6080,7 @@ impl IBDA_IPV6Filter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IBDA_ISDBConditionalAccess_Impl: Sized { @@ -6097,7 +6097,7 @@ impl IBDA_ISDBConditionalAccess_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), SetIsdbCasRequest: SetIsdbCasRequest:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IBDA_LNBInfo_Impl: Sized { @@ -6152,7 +6152,7 @@ impl IBDA_LNBInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IBDA_MUX_Impl: Sized { @@ -6179,7 +6179,7 @@ impl IBDA_MUX_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IBDA_NameValueService_Impl: Sized { @@ -6225,7 +6225,7 @@ impl IBDA_NameValueService_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IBDA_NetworkProvider_Impl: Sized { @@ -6287,7 +6287,7 @@ impl IBDA_NetworkProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IBDA_NullTransform_Impl: Sized { @@ -6310,7 +6310,7 @@ impl IBDA_NullTransform_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Start: Start::, Stop: Stop:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IBDA_PinControl_Impl: Sized { @@ -6344,7 +6344,7 @@ impl IBDA_PinControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IBDA_SignalProperties_Impl: Sized { @@ -6399,7 +6399,7 @@ impl IBDA_SignalProperties_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IBDA_SignalStatistics_Impl: Sized { @@ -6482,7 +6482,7 @@ impl IBDA_SignalStatistics_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Media_MediaFoundation\"`"] @@ -6576,7 +6576,7 @@ impl IBDA_Topology_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IBDA_TransportStreamInfo_Impl: Sized { @@ -6599,7 +6599,7 @@ impl IBDA_TransportStreamInfo_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), PatTableTickCount: PatTableTickCount:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IBDA_TransportStreamSelector_Impl: Sized { @@ -6626,7 +6626,7 @@ impl IBDA_TransportStreamSelector_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IBDA_UserActivityService_Impl: Sized { @@ -6666,7 +6666,7 @@ impl IBDA_UserActivityService_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IBDA_VoidTransform_Impl: Sized { @@ -6689,7 +6689,7 @@ impl IBDA_VoidTransform_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Start: Start::, Stop: Stop:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IBDA_WMDRMSession_Impl: Sized { @@ -6758,7 +6758,7 @@ impl IBDA_WMDRMSession_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IBDA_WMDRMTuner_Impl: Sized { @@ -6819,7 +6819,7 @@ impl IBDA_WMDRMTuner_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IBPCSatelliteTuner_Impl: Sized + IAMTuner_Impl { @@ -6853,7 +6853,7 @@ impl IBPCSatelliteTuner_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -6923,7 +6923,7 @@ impl IBaseFilter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IBaseVideoMixer_Impl: Sized { @@ -7009,7 +7009,7 @@ impl IBaseVideoMixer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -7066,7 +7066,7 @@ impl IBasicAudio_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -7385,7 +7385,7 @@ impl IBasicVideo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -7406,7 +7406,7 @@ impl IBasicVideo2_Vtbl { Self { base__: IBasicVideo_Vtbl::new::(), GetPreferredAspectRatio: GetPreferredAspectRatio:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IBroadcastEvent_Impl: Sized { @@ -7423,7 +7423,7 @@ impl IBroadcastEvent_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Fire: Fire:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IBroadcastEventEx_Impl: Sized + IBroadcastEvent_Impl { @@ -7440,7 +7440,7 @@ impl IBroadcastEventEx_Vtbl { Self { base__: IBroadcastEvent_Vtbl::new::(), FireEx: FireEx:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IBufferingTime_Impl: Sized { @@ -7467,7 +7467,7 @@ impl IBufferingTime_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICCSubStreamFiltering_Impl: Sized { @@ -7500,7 +7500,7 @@ impl ICCSubStreamFiltering_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICameraControl_Impl: Sized { @@ -7870,7 +7870,7 @@ impl ICameraControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -7949,7 +7949,7 @@ impl ICaptureGraphBuilder_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -8041,7 +8041,7 @@ impl ICaptureGraphBuilder2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Media_WindowsMediaFormat\"`"] @@ -8138,7 +8138,7 @@ impl IConfigAsfWriter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Media_WindowsMediaFormat\"`"] @@ -8189,7 +8189,7 @@ impl IConfigAsfWriter2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IConfigAviMux_Impl: Sized { @@ -8242,7 +8242,7 @@ impl IConfigAviMux_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IConfigInterleaving_Impl: Sized { @@ -8289,7 +8289,7 @@ impl IConfigInterleaving_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -8310,7 +8310,7 @@ impl ICreateDevEnum_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CreateClassEnumerator: CreateClassEnumerator:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_DirectDraw\"`"] @@ -8376,7 +8376,7 @@ impl IDDrawExclModeVideo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDDrawExclModeVideoCallback_Impl: Sized { @@ -8410,7 +8410,7 @@ impl IDDrawExclModeVideoCallback_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDMOWrapperFilter_Impl: Sized { @@ -8427,7 +8427,7 @@ impl IDMOWrapperFilter_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Init: Init:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDShowPlugin_Impl: Sized { @@ -8454,7 +8454,7 @@ impl IDShowPlugin_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDVEnc_Impl: Sized { @@ -8481,7 +8481,7 @@ impl IDVEnc_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDVRGB219_Impl: Sized { @@ -8498,7 +8498,7 @@ impl IDVRGB219_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), SetRGB219: SetRGB219:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDVSplitter_Impl: Sized { @@ -8518,7 +8518,7 @@ impl IDVSplitter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDecimateVideoImage_Impl: Sized { @@ -8545,7 +8545,7 @@ impl IDecimateVideoImage_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDeferredCommand_Impl: Sized { @@ -8598,7 +8598,7 @@ impl IDeferredCommand_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_DirectDraw\"`"] @@ -8629,7 +8629,7 @@ impl IDirectDrawMediaSample_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_DirectDraw\"`"] @@ -8656,7 +8656,7 @@ impl IDirectDrawMediaSampleAllocator_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetDirectDraw: GetDirectDraw:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_DirectDraw\"`"] @@ -8733,7 +8733,7 @@ impl IDirectDrawMediaStream_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_DirectDraw\"`"] @@ -8764,7 +8764,7 @@ impl IDirectDrawStreamSample_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_DirectDraw\"`"] @@ -8929,7 +8929,7 @@ impl IDirectDrawVideo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDistributorNotify_Impl: Sized { @@ -8977,7 +8977,7 @@ impl IDistributorNotify_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] @@ -9015,7 +9015,7 @@ impl IDrawVideoImage_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDvdCmd_Impl: Sized { @@ -9042,7 +9042,7 @@ impl IDvdCmd_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDvdControl_Impl: Sized { @@ -9300,7 +9300,7 @@ impl IDvdControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDvdControl2_Impl: Sized { @@ -9719,7 +9719,7 @@ impl IDvdControl2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDvdGraphBuilder_Impl: Sized { @@ -9759,7 +9759,7 @@ impl IDvdGraphBuilder_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDvdInfo_Impl: Sized { @@ -10011,7 +10011,7 @@ impl IDvdInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDvdInfo2_Impl: Sized { @@ -10411,7 +10411,7 @@ impl IDvdInfo2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDvdState_Impl: Sized { @@ -10450,7 +10450,7 @@ impl IDvdState_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -10526,7 +10526,7 @@ impl IESEvent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IESEvents_Impl: Sized { @@ -10543,7 +10543,7 @@ impl IESEvents_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnESEventReceived: OnESEventReceived:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -10621,7 +10621,7 @@ impl IEncoderAPI_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -10672,7 +10672,7 @@ impl IEnumFilters_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Media_MediaFoundation\"`"] @@ -10723,7 +10723,7 @@ impl IEnumMediaTypes_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumPIDMap_Impl: Sized { @@ -10770,7 +10770,7 @@ impl IEnumPIDMap_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumPins_Impl: Sized { @@ -10817,7 +10817,7 @@ impl IEnumPins_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumRegFilters_Impl: Sized { @@ -10864,7 +10864,7 @@ impl IEnumRegFilters_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumStreamIdMap_Impl: Sized { @@ -10911,7 +10911,7 @@ impl IEnumStreamIdMap_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Media_MediaFoundation\"`"] @@ -10942,7 +10942,7 @@ impl IFileSinkFilter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Media_MediaFoundation\"`"] @@ -10979,7 +10979,7 @@ impl IFileSinkFilter2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Media_MediaFoundation\"`"] @@ -11010,7 +11010,7 @@ impl IFileSourceFilter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -11055,7 +11055,7 @@ impl IFilterChain_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Media_MediaFoundation\"`, `\"Win32_System_Com\"`"] @@ -11140,7 +11140,7 @@ impl IFilterGraph_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Media_MediaFoundation\"`, `\"Win32_System_Com\"`"] @@ -11184,7 +11184,7 @@ impl IFilterGraph2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Media_MediaFoundation\"`, `\"Win32_System_Com\"`"] @@ -11205,7 +11205,7 @@ impl IFilterGraph3_Vtbl { Self { base__: IFilterGraph2_Vtbl::new::(), SetSyncSourceEx: SetSyncSourceEx:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -11320,7 +11320,7 @@ impl IFilterInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IFilterMapper_Impl: Sized { @@ -11395,7 +11395,7 @@ impl IFilterMapper_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -11457,7 +11457,7 @@ impl IFilterMapper2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -11484,7 +11484,7 @@ impl IFilterMapper3_Vtbl { Self { base__: IFilterMapper2_Vtbl::new::(), GetICreateDevEnum: GetICreateDevEnum:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IFrequencyMap_Impl: Sized { @@ -11545,7 +11545,7 @@ impl IFrequencyMap_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IFullScreenVideo_Impl: Sized { @@ -11713,7 +11713,7 @@ impl IFullScreenVideo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_WindowsAndMessaging\"`"] @@ -11764,7 +11764,7 @@ impl IFullScreenVideoEx_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Registry\"`"] @@ -11791,7 +11791,7 @@ impl IGetCapabilitiesKey_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetCapabilitiesKey: GetCapabilitiesKey:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Media_MediaFoundation\"`, `\"Win32_System_Com\"`"] @@ -11863,7 +11863,7 @@ impl IGraphBuilder_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Media_MediaFoundation\"`, `\"Win32_System_Com\"`"] @@ -11968,7 +11968,7 @@ impl IGraphConfig_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IGraphConfigCallback_Impl: Sized { @@ -11985,7 +11985,7 @@ impl IGraphConfigCallback_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Reconfigure: Reconfigure:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IGraphVersion_Impl: Sized { @@ -12008,7 +12008,7 @@ impl IGraphVersion_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), QueryVersion: QueryVersion:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IIPDVDec_Impl: Sized { @@ -12041,7 +12041,7 @@ impl IIPDVDec_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMPEG2PIDMap_Impl: Sized { @@ -12081,7 +12081,7 @@ impl IMPEG2PIDMap_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMPEG2StreamIdMap_Impl: Sized { @@ -12121,7 +12121,7 @@ impl IMPEG2StreamIdMap_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -12225,7 +12225,7 @@ impl IMediaControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -12296,7 +12296,7 @@ impl IMediaEvent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -12340,7 +12340,7 @@ impl IMediaEventEx_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IMediaEventSink_Impl: Sized { @@ -12357,7 +12357,7 @@ impl IMediaEventSink_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Notify: Notify:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -12428,7 +12428,7 @@ impl IMediaFilter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IMediaParamInfo_Impl: Sized { @@ -12507,7 +12507,7 @@ impl IMediaParamInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMediaParams_Impl: Sized { @@ -12561,7 +12561,7 @@ impl IMediaParams_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -12697,7 +12697,7 @@ impl IMediaPosition_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -12721,7 +12721,7 @@ impl IMediaPropertyBag_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Media_MediaFoundation\"`"] @@ -12862,7 +12862,7 @@ impl IMediaSample_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Media_MediaFoundation\"`"] @@ -12893,7 +12893,7 @@ impl IMediaSample2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IMediaSample2Config_Impl: Sized { @@ -12916,7 +12916,7 @@ impl IMediaSample2Config_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetSurface: GetSurface:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMediaSeeking_Impl: Sized { @@ -13096,7 +13096,7 @@ impl IMediaSeeking_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMediaStream_Impl: Sized { @@ -13169,7 +13169,7 @@ impl IMediaStream_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -13267,7 +13267,7 @@ impl IMediaStreamFilter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -13310,7 +13310,7 @@ impl IMediaTypeInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IMemAllocator_Impl: Sized { @@ -13377,7 +13377,7 @@ impl IMemAllocator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMemAllocatorCallbackTemp_Impl: Sized + IMemAllocator_Impl { @@ -13410,7 +13410,7 @@ impl IMemAllocatorCallbackTemp_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IMemAllocatorNotifyCallbackTemp_Impl: Sized { @@ -13427,7 +13427,7 @@ impl IMemAllocatorNotifyCallbackTemp_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), NotifyRelease: NotifyRelease:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMemInputPin_Impl: Sized { @@ -13500,7 +13500,7 @@ impl IMemInputPin_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMemoryData_Impl: Sized { @@ -13534,7 +13534,7 @@ impl IMemoryData_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] @@ -13613,7 +13613,7 @@ impl IMixerOCX_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMixerOCXNotify_Impl: Sized { @@ -13647,7 +13647,7 @@ impl IMixerOCXNotify_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMixerPinConfig_Impl: Sized { @@ -13744,7 +13744,7 @@ impl IMixerPinConfig_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_DirectDraw\"`"] @@ -13775,7 +13775,7 @@ impl IMixerPinConfig2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Media_MediaFoundation\"`"] @@ -13819,7 +13819,7 @@ impl IMpeg2Demultiplexer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Media_Audio\"`"] @@ -13957,7 +13957,7 @@ impl IMpegAudioDecoder_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMultiMediaStream_Impl: Sized { @@ -14069,7 +14069,7 @@ impl IMultiMediaStream_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] @@ -14174,7 +14174,7 @@ impl IOverlay_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] @@ -14219,7 +14219,7 @@ impl IOverlayNotify_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] @@ -14240,7 +14240,7 @@ impl IOverlayNotify2_Vtbl { Self { base__: IOverlayNotify_Vtbl::new::(), OnDisplayChange: OnDisplayChange:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`"] @@ -14278,7 +14278,7 @@ impl IPersistMediaPropertyBag_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Media_MediaFoundation\"`, `\"Win32_System_Com\"`"] @@ -14424,7 +14424,7 @@ impl IPin_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Media_MediaFoundation\"`"] @@ -14469,7 +14469,7 @@ impl IPinConnection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPinFlowControl_Impl: Sized { @@ -14486,7 +14486,7 @@ impl IPinFlowControl_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Block: Block:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -14642,7 +14642,7 @@ impl IPinInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IQualProp_Impl: Sized { @@ -14733,7 +14733,7 @@ impl IQualProp_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -14764,7 +14764,7 @@ impl IQualityControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -14795,7 +14795,7 @@ impl IQueueCommand_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -14838,7 +14838,7 @@ impl IRegFilterInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IRegisterServiceProvider_Impl: Sized { @@ -14855,7 +14855,7 @@ impl IRegisterServiceProvider_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), RegisterService: RegisterService:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IResourceConsumer_Impl: Sized { @@ -14882,7 +14882,7 @@ impl IResourceConsumer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IResourceManager_Impl: Sized { @@ -14963,7 +14963,7 @@ impl IResourceManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISeekingPassThru_Impl: Sized { @@ -14980,7 +14980,7 @@ impl ISeekingPassThru_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Init: Init:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISelector_Impl: Sized { @@ -15026,7 +15026,7 @@ impl ISelector_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Ole\"`"] @@ -15053,7 +15053,7 @@ impl ISpecifyParticularPages_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetPages: GetPages:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IStreamBuilder_Impl: Sized { @@ -15080,7 +15080,7 @@ impl IStreamBuilder_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IStreamSample_Impl: Sized { @@ -15128,7 +15128,7 @@ impl IStreamSample_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVMRAspectRatioControl_Impl: Sized { @@ -15161,7 +15161,7 @@ impl IVMRAspectRatioControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVMRAspectRatioControl9_Impl: Sized { @@ -15194,7 +15194,7 @@ impl IVMRAspectRatioControl9_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVMRDeinterlaceControl_Impl: Sized { @@ -15274,7 +15274,7 @@ impl IVMRDeinterlaceControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVMRDeinterlaceControl9_Impl: Sized { @@ -15354,7 +15354,7 @@ impl IVMRDeinterlaceControl9_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVMRFilterConfig_Impl: Sized { @@ -15434,7 +15434,7 @@ impl IVMRFilterConfig_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVMRFilterConfig9_Impl: Sized { @@ -15514,7 +15514,7 @@ impl IVMRFilterConfig9_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_DirectDraw\"`, `\"Win32_Media_MediaFoundation\"`"] @@ -15559,7 +15559,7 @@ impl IVMRImageCompositor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D9\"`, `\"Win32_Media_MediaFoundation\"`"] @@ -15604,7 +15604,7 @@ impl IVMRImageCompositor9_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_DirectDraw\"`"] @@ -15642,7 +15642,7 @@ impl IVMRImagePresenter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D9\"`"] @@ -15680,7 +15680,7 @@ impl IVMRImagePresenter9_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVMRImagePresenterConfig_Impl: Sized { @@ -15713,7 +15713,7 @@ impl IVMRImagePresenterConfig_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVMRImagePresenterConfig9_Impl: Sized { @@ -15746,7 +15746,7 @@ impl IVMRImagePresenterConfig9_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_DirectDraw\"`"] @@ -15777,7 +15777,7 @@ impl IVMRImagePresenterExclModeConfig_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_DirectDraw\"`, `\"Win32_Graphics_Gdi\"`"] @@ -15815,7 +15815,7 @@ impl IVMRMixerBitmap_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D9\"`, `\"Win32_Graphics_Gdi\"`"] @@ -15853,7 +15853,7 @@ impl IVMRMixerBitmap9_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVMRMixerControl_Impl: Sized { @@ -15960,7 +15960,7 @@ impl IVMRMixerControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVMRMixerControl9_Impl: Sized { @@ -16088,7 +16088,7 @@ impl IVMRMixerControl9_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] @@ -16140,7 +16140,7 @@ impl IVMRMonitorConfig_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] @@ -16204,7 +16204,7 @@ impl IVMRMonitorConfig9_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_DirectDraw\"`"] @@ -16261,7 +16261,7 @@ impl IVMRSurface_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D9\"`"] @@ -16318,7 +16318,7 @@ impl IVMRSurface9_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_DirectDraw\"`, `\"Win32_Graphics_Gdi\"`"] @@ -16363,7 +16363,7 @@ impl IVMRSurfaceAllocator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D9\"`"] @@ -16414,7 +16414,7 @@ impl IVMRSurfaceAllocator9_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D9\"`"] @@ -16435,7 +16435,7 @@ impl IVMRSurfaceAllocatorEx9_Vtbl { Self { base__: IVMRSurfaceAllocator9_Vtbl::new::(), GetSurfaceEx: GetSurfaceEx:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_DirectDraw\"`, `\"Win32_Graphics_Gdi\"`"] @@ -16494,7 +16494,7 @@ impl IVMRSurfaceAllocatorNotify_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D9\"`, `\"Win32_Graphics_Gdi\"`"] @@ -16546,7 +16546,7 @@ impl IVMRSurfaceAllocatorNotify9_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_DirectDraw\"`"] @@ -16603,7 +16603,7 @@ impl IVMRVideoStreamControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVMRVideoStreamControl9_Impl: Sized { @@ -16636,7 +16636,7 @@ impl IVMRVideoStreamControl9_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] @@ -16782,7 +16782,7 @@ impl IVMRWindowlessControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] @@ -16908,7 +16908,7 @@ impl IVMRWindowlessControl9_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_DirectDraw\"`"] @@ -17022,7 +17022,7 @@ impl IVPBaseConfig_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVPBaseNotify_Impl: Sized { @@ -17039,7 +17039,7 @@ impl IVPBaseNotify_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), RenegotiateVPParameters: RenegotiateVPParameters:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_DirectDraw\"`"] @@ -17070,7 +17070,7 @@ impl IVPConfig_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IVPManager_Impl: Sized { @@ -17103,7 +17103,7 @@ impl IVPManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVPNotify_Impl: Sized + IVPBaseNotify_Impl { @@ -17130,7 +17130,7 @@ impl IVPNotify_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IVPNotify2_Impl: Sized + IVPNotify_Impl { @@ -17157,7 +17157,7 @@ impl IVPNotify2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_DirectDraw\"`"] @@ -17171,7 +17171,7 @@ impl IVPVBIConfig_Vtbl { Self { base__: IVPBaseConfig_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IVPVBINotify_Impl: Sized + IVPBaseNotify_Impl {} @@ -17181,7 +17181,7 @@ impl IVPVBINotify_Vtbl { Self { base__: IVPBaseNotify_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -17195,7 +17195,7 @@ impl IVideoEncoder_Vtbl { Self { base__: IEncoderAPI_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IVideoFrameStep_Impl: Sized { @@ -17229,7 +17229,7 @@ impl IVideoFrameStep_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVideoProcAmp_Impl: Sized { @@ -17515,7 +17515,7 @@ impl IVideoProcAmp_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`, `\"Win32_UI_WindowsAndMessaging\"`"] @@ -17901,7 +17901,7 @@ impl IVideoWindow_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Media_MediaFoundation\"`, `\"Win32_Media_WindowsMediaFormat\"`"] @@ -17939,7 +17939,7 @@ impl IWMCodecAMVideoAccelerator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Media_MediaFoundation\"`, `\"Win32_Media_WindowsMediaFormat\"`"] @@ -17970,6 +17970,6 @@ impl IWMCodecVideoAccelerator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 e4a5fe9cc5..60296eab15 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/DirectShow/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/DirectShow/mod.rs @@ -14,9 +14,8 @@ pub unsafe fn AMGetErrorTextW(hr: ::windows_core::HRESULT, pbuffer: &mut [u16]) ::windows_targets::link!("quartz.dll" "system" fn AMGetErrorTextW(hr : ::windows_core::HRESULT, pbuffer : ::windows_core::PWSTR, maxlen : u32) -> u32); AMGetErrorTextW(hr, ::core::mem::transmute(pbuffer.as_ptr()), pbuffer.len().try_into().unwrap()) } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMAnalogVideoDecoder(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAMAnalogVideoDecoder, IAMAnalogVideoDecoder_Vtbl, 0xc6e13350_30ac_11d0_a18c_00a0c9118956); +::windows_core::imp::interface_hierarchy!(IAMAnalogVideoDecoder, ::windows_core::IUnknown); impl IAMAnalogVideoDecoder { pub unsafe fn AvailableTVFormats(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -52,13 +51,6 @@ impl IAMAnalogVideoDecoder { (::windows_core::Interface::vtable(self).OutputEnable)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAMAnalogVideoDecoder, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAMAnalogVideoDecoder { - type Vtable = IAMAnalogVideoDecoder_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAMAnalogVideoDecoder { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc6e13350_30ac_11d0_a18c_00a0c9118956); -} #[repr(C)] #[doc(hidden)] pub struct IAMAnalogVideoDecoder_Vtbl { @@ -73,9 +65,8 @@ pub struct IAMAnalogVideoDecoder_Vtbl { pub SetOutputEnable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, loutputenable: i32) -> ::windows_core::HRESULT, pub OutputEnable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ploutputenable: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMAnalogVideoEncoder(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAMAnalogVideoEncoder, IAMAnalogVideoEncoder_Vtbl, 0xc6e133b0_30ac_11d0_a18c_00a0c9118956); +::windows_core::imp::interface_hierarchy!(IAMAnalogVideoEncoder, ::windows_core::IUnknown); impl IAMAnalogVideoEncoder { pub unsafe fn AvailableTVFormats(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -103,13 +94,6 @@ impl IAMAnalogVideoEncoder { (::windows_core::Interface::vtable(self).CCEnable)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAMAnalogVideoEncoder, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAMAnalogVideoEncoder { - type Vtable = IAMAnalogVideoEncoder_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAMAnalogVideoEncoder { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc6e133b0_30ac_11d0_a18c_00a0c9118956); -} #[repr(C)] #[doc(hidden)] pub struct IAMAnalogVideoEncoder_Vtbl { @@ -122,9 +106,8 @@ pub struct IAMAnalogVideoEncoder_Vtbl { pub SetCCEnable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lccenable: i32) -> ::windows_core::HRESULT, pub CCEnable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lccenable: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMAsyncReaderTimestampScaling(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAMAsyncReaderTimestampScaling, IAMAsyncReaderTimestampScaling_Vtbl, 0xcf7b26fc_9a00_485b_8147_3e789d5e8f67); +::windows_core::imp::interface_hierarchy!(IAMAsyncReaderTimestampScaling, ::windows_core::IUnknown); impl IAMAsyncReaderTimestampScaling { pub unsafe fn GetTimestampMode(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -137,13 +120,6 @@ impl IAMAsyncReaderTimestampScaling { (::windows_core::Interface::vtable(self).SetTimestampMode)(::windows_core::Interface::as_raw(self), fraw.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IAMAsyncReaderTimestampScaling, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAMAsyncReaderTimestampScaling { - type Vtable = IAMAsyncReaderTimestampScaling_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAMAsyncReaderTimestampScaling { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcf7b26fc_9a00_485b_8147_3e789d5e8f67); -} #[repr(C)] #[doc(hidden)] pub struct IAMAsyncReaderTimestampScaling_Vtbl { @@ -151,9 +127,8 @@ pub struct IAMAsyncReaderTimestampScaling_Vtbl { pub GetTimestampMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfraw: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub SetTimestampMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fraw: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMAudioInputMixer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAMAudioInputMixer, IAMAudioInputMixer_Vtbl, 0x54c39221_8380_11d0_b3f0_00aa003761c5); +::windows_core::imp::interface_hierarchy!(IAMAudioInputMixer, ::windows_core::IUnknown); impl IAMAudioInputMixer { pub unsafe fn SetEnable(&self, fenable: P0) -> ::windows_core::Result<()> where @@ -222,13 +197,6 @@ impl IAMAudioInputMixer { (::windows_core::Interface::vtable(self).BassRange)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAMAudioInputMixer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAMAudioInputMixer { - type Vtable = IAMAudioInputMixer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAMAudioInputMixer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x54c39221_8380_11d0_b3f0_00aa003761c5); -} #[repr(C)] #[doc(hidden)] pub struct IAMAudioInputMixer_Vtbl { @@ -250,30 +218,21 @@ pub struct IAMAudioInputMixer_Vtbl { pub Bass: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbass: *mut f64) -> ::windows_core::HRESULT, pub BassRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prange: *mut f64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMAudioRendererStats(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAMAudioRendererStats, IAMAudioRendererStats_Vtbl, 0x22320cb2_d41a_11d2_bf7c_d7cb9df0bf93); +::windows_core::imp::interface_hierarchy!(IAMAudioRendererStats, ::windows_core::IUnknown); impl IAMAudioRendererStats { pub unsafe fn GetStatParam(&self, dwparam: u32, pdwparam1: *mut u32, pdwparam2: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetStatParam)(::windows_core::Interface::as_raw(self), dwparam, pdwparam1, pdwparam2).ok() } } -::windows_core::imp::interface_hierarchy!(IAMAudioRendererStats, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAMAudioRendererStats { - type Vtable = IAMAudioRendererStats_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAMAudioRendererStats { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x22320cb2_d41a_11d2_bf7c_d7cb9df0bf93); -} #[repr(C)] #[doc(hidden)] pub struct IAMAudioRendererStats_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetStatParam: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwparam: u32, pdwparam1: *mut u32, pdwparam2: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMBufferNegotiation(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAMBufferNegotiation, IAMBufferNegotiation_Vtbl, 0x56ed71a0_af5f_11d0_b3f0_00aa003761c5); +::windows_core::imp::interface_hierarchy!(IAMBufferNegotiation, ::windows_core::IUnknown); impl IAMBufferNegotiation { pub unsafe fn SuggestAllocatorProperties(&self, pprop: *const ALLOCATOR_PROPERTIES) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SuggestAllocatorProperties)(::windows_core::Interface::as_raw(self), pprop).ok() @@ -283,13 +242,6 @@ impl IAMBufferNegotiation { (::windows_core::Interface::vtable(self).GetAllocatorProperties)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAMBufferNegotiation, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAMBufferNegotiation { - type Vtable = IAMBufferNegotiation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAMBufferNegotiation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x56ed71a0_af5f_11d0_b3f0_00aa003761c5); -} #[repr(C)] #[doc(hidden)] pub struct IAMBufferNegotiation_Vtbl { @@ -297,9 +249,8 @@ pub struct IAMBufferNegotiation_Vtbl { pub SuggestAllocatorProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pprop: *const ALLOCATOR_PROPERTIES) -> ::windows_core::HRESULT, pub GetAllocatorProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pprop: *mut ALLOCATOR_PROPERTIES) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMCameraControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAMCameraControl, IAMCameraControl_Vtbl, 0xc6e13370_30ac_11d0_a18c_00a0c9118956); +::windows_core::imp::interface_hierarchy!(IAMCameraControl, ::windows_core::IUnknown); impl IAMCameraControl { pub unsafe fn GetRange(&self, property: i32, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflags: *mut i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetRange)(::windows_core::Interface::as_raw(self), property, pmin, pmax, psteppingdelta, pdefault, pcapsflags).ok() @@ -311,13 +262,6 @@ impl IAMCameraControl { (::windows_core::Interface::vtable(self).Get)(::windows_core::Interface::as_raw(self), property, lvalue, flags).ok() } } -::windows_core::imp::interface_hierarchy!(IAMCameraControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAMCameraControl { - type Vtable = IAMCameraControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAMCameraControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc6e13370_30ac_11d0_a18c_00a0c9118956); -} #[repr(C)] #[doc(hidden)] pub struct IAMCameraControl_Vtbl { @@ -326,9 +270,8 @@ pub struct IAMCameraControl_Vtbl { pub Set: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, property: i32, lvalue: i32, flags: i32) -> ::windows_core::HRESULT, pub Get: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, property: i32, lvalue: *mut i32, flags: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMCertifiedOutputProtection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAMCertifiedOutputProtection, IAMCertifiedOutputProtection_Vtbl, 0x6feded3e_0ff1_4901_a2f1_43f7012c8515); +::windows_core::imp::interface_hierarchy!(IAMCertifiedOutputProtection, ::windows_core::IUnknown); impl IAMCertifiedOutputProtection { pub unsafe fn KeyExchange(&self, prandom: *mut ::windows_core::GUID, varlencertgh: *mut *mut u8, pdwlengthcertgh: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).KeyExchange)(::windows_core::Interface::as_raw(self), prandom, varlencertgh, pdwlengthcertgh).ok() @@ -343,13 +286,6 @@ impl IAMCertifiedOutputProtection { (::windows_core::Interface::vtable(self).ProtectionStatus)(::windows_core::Interface::as_raw(self), pstatusinput, pstatusoutput).ok() } } -::windows_core::imp::interface_hierarchy!(IAMCertifiedOutputProtection, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAMCertifiedOutputProtection { - type Vtable = IAMCertifiedOutputProtection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAMCertifiedOutputProtection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6feded3e_0ff1_4901_a2f1_43f7012c8515); -} #[repr(C)] #[doc(hidden)] pub struct IAMCertifiedOutputProtection_Vtbl { @@ -359,11 +295,15 @@ pub struct IAMCertifiedOutputProtection_Vtbl { pub ProtectionCommand: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cmd: *const AMCOPPCommand) -> ::windows_core::HRESULT, pub ProtectionStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstatusinput: *const AMCOPPStatusInput, pstatusoutput: *mut AMCOPPStatusOutput) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMChannelInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IAMChannelInfo, + IAMChannelInfo_Vtbl, + 0xfa2aa8f2_8b62_11d0_a520_000000000000 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IAMChannelInfo, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IAMChannelInfo { pub unsafe fn ChannelName(&self, pbstrchannelname: *mut ::windows_core::BSTR) -> ::windows_core::Result<()> { @@ -386,16 +326,6 @@ impl IAMChannelInfo { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IAMChannelInfo, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IAMChannelInfo { - type Vtable = IAMChannelInfo_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IAMChannelInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfa2aa8f2_8b62_11d0_a520_000000000000); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IAMChannelInfo_Vtbl { @@ -407,30 +337,21 @@ pub struct IAMChannelInfo_Vtbl { pub ContactPhone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcontactphone: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub ContactEmail: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcontactemail: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMClockAdjust(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAMClockAdjust, IAMClockAdjust_Vtbl, 0x4d5466b0_a49c_11d1_abe8_00a0c905f375); +::windows_core::imp::interface_hierarchy!(IAMClockAdjust, ::windows_core::IUnknown); impl IAMClockAdjust { pub unsafe fn SetClockDelta(&self, rtdelta: i64) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetClockDelta)(::windows_core::Interface::as_raw(self), rtdelta).ok() } } -::windows_core::imp::interface_hierarchy!(IAMClockAdjust, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAMClockAdjust { - type Vtable = IAMClockAdjust_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAMClockAdjust { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4d5466b0_a49c_11d1_abe8_00a0c905f375); -} #[repr(C)] #[doc(hidden)] pub struct IAMClockAdjust_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub SetClockDelta: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rtdelta: i64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMClockSlave(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAMClockSlave, IAMClockSlave_Vtbl, 0x9fd52741_176d_4b36_8f51_ca8f933223be); +::windows_core::imp::interface_hierarchy!(IAMClockSlave, ::windows_core::IUnknown); impl IAMClockSlave { pub unsafe fn SetErrorTolerance(&self, dwtolerance: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetErrorTolerance)(::windows_core::Interface::as_raw(self), dwtolerance).ok() @@ -440,13 +361,6 @@ impl IAMClockSlave { (::windows_core::Interface::vtable(self).GetErrorTolerance)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAMClockSlave, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAMClockSlave { - type Vtable = IAMClockSlave_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAMClockSlave { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9fd52741_176d_4b36_8f51_ca8f933223be); -} #[repr(C)] #[doc(hidden)] pub struct IAMClockSlave_Vtbl { @@ -454,11 +368,15 @@ pub struct IAMClockSlave_Vtbl { pub SetErrorTolerance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwtolerance: u32) -> ::windows_core::HRESULT, pub GetErrorTolerance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwtolerance: *mut u32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IAMCollection, + IAMCollection_Vtbl, + 0x56a868b9_0ad4_11ce_b03a_0020af0ba770 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IAMCollection, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IAMCollection { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -475,16 +393,6 @@ impl IAMCollection { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IAMCollection, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IAMCollection { - type Vtable = IAMCollection_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IAMCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x56a868b9_0ad4_11ce_b03a_0020af0ba770); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IAMCollection_Vtbl { @@ -493,30 +401,21 @@ pub struct IAMCollection_Vtbl { pub Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, litem: i32, ppunk: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppunk: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMCopyCaptureFileProgress(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAMCopyCaptureFileProgress, IAMCopyCaptureFileProgress_Vtbl, 0x670d1d20_a068_11d0_b3f0_00aa003761c5); +::windows_core::imp::interface_hierarchy!(IAMCopyCaptureFileProgress, ::windows_core::IUnknown); impl IAMCopyCaptureFileProgress { pub unsafe fn Progress(&self, iprogress: i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Progress)(::windows_core::Interface::as_raw(self), iprogress).ok() } } -::windows_core::imp::interface_hierarchy!(IAMCopyCaptureFileProgress, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAMCopyCaptureFileProgress { - type Vtable = IAMCopyCaptureFileProgress_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAMCopyCaptureFileProgress { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x670d1d20_a068_11d0_b3f0_00aa003761c5); -} #[repr(C)] #[doc(hidden)] pub struct IAMCopyCaptureFileProgress_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Progress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, iprogress: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMCrossbar(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAMCrossbar, IAMCrossbar_Vtbl, 0xc6e13380_30ac_11d0_a18c_00a0c9118956); +::windows_core::imp::interface_hierarchy!(IAMCrossbar, ::windows_core::IUnknown); impl IAMCrossbar { pub unsafe fn get_PinCounts(&self, outputpincount: *mut i32, inputpincount: *mut i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).get_PinCounts)(::windows_core::Interface::as_raw(self), outputpincount, inputpincount).ok() @@ -538,13 +437,6 @@ impl IAMCrossbar { (::windows_core::Interface::vtable(self).get_CrossbarPinInfo)(::windows_core::Interface::as_raw(self), isinputpin.into_param().abi(), pinindex, pinindexrelated, physicaltype).ok() } } -::windows_core::imp::interface_hierarchy!(IAMCrossbar, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAMCrossbar { - type Vtable = IAMCrossbar_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAMCrossbar { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc6e13380_30ac_11d0_a18c_00a0c9118956); -} #[repr(C)] #[doc(hidden)] pub struct IAMCrossbar_Vtbl { @@ -555,31 +447,22 @@ pub struct IAMCrossbar_Vtbl { pub get_IsRoutedTo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, outputpinindex: i32, inputpinindex: *mut i32) -> ::windows_core::HRESULT, pub get_CrossbarPinInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, isinputpin: super::super::Foundation::BOOL, pinindex: i32, pinindexrelated: *mut i32, physicaltype: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMDecoderCaps(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAMDecoderCaps, IAMDecoderCaps_Vtbl, 0xc0dff467_d499_4986_972b_e1d9090fa941); +::windows_core::imp::interface_hierarchy!(IAMDecoderCaps, ::windows_core::IUnknown); impl IAMDecoderCaps { pub unsafe fn GetDecoderCaps(&self, dwcapindex: u32) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetDecoderCaps)(::windows_core::Interface::as_raw(self), dwcapindex, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAMDecoderCaps, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAMDecoderCaps { - type Vtable = IAMDecoderCaps_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAMDecoderCaps { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc0dff467_d499_4986_972b_e1d9090fa941); -} #[repr(C)] #[doc(hidden)] pub struct IAMDecoderCaps_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetDecoderCaps: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwcapindex: u32, lpdwcap: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMDevMemoryAllocator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAMDevMemoryAllocator, IAMDevMemoryAllocator_Vtbl, 0xc6545bf0_e76b_11d0_bd52_00a0c911ce86); +::windows_core::imp::interface_hierarchy!(IAMDevMemoryAllocator, ::windows_core::IUnknown); impl IAMDevMemoryAllocator { pub unsafe fn GetInfo(&self, pdwcbtotalfree: *mut u32, pdwcblargestfree: *mut u32, pdwcbtotalmemory: *mut u32, pdwcbminimumchunk: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetInfo)(::windows_core::Interface::as_raw(self), pdwcbtotalfree, pdwcblargestfree, pdwcbtotalmemory, pdwcbminimumchunk).ok() @@ -600,13 +483,6 @@ impl IAMDevMemoryAllocator { (::windows_core::Interface::vtable(self).GetDevMemoryObject)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(ppunkinnner), punkouter.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IAMDevMemoryAllocator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAMDevMemoryAllocator { - type Vtable = IAMDevMemoryAllocator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAMDevMemoryAllocator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc6545bf0_e76b_11d0_bd52_00a0c911ce86); -} #[repr(C)] #[doc(hidden)] pub struct IAMDevMemoryAllocator_Vtbl { @@ -617,9 +493,8 @@ pub struct IAMDevMemoryAllocator_Vtbl { pub Free: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbuffer: *const u8) -> ::windows_core::HRESULT, pub GetDevMemoryObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppunkinnner: *mut *mut ::core::ffi::c_void, punkouter: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMDevMemoryControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAMDevMemoryControl, IAMDevMemoryControl_Vtbl, 0xc6545bf1_e76b_11d0_bd52_00a0c911ce86); +::windows_core::imp::interface_hierarchy!(IAMDevMemoryControl, ::windows_core::IUnknown); impl IAMDevMemoryControl { pub unsafe fn QueryWriteSync(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).QueryWriteSync)(::windows_core::Interface::as_raw(self)).ok() @@ -632,13 +507,6 @@ impl IAMDevMemoryControl { (::windows_core::Interface::vtable(self).GetDevId)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAMDevMemoryControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAMDevMemoryControl { - type Vtable = IAMDevMemoryControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAMDevMemoryControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc6545bf1_e76b_11d0_bd52_00a0c911ce86); -} #[repr(C)] #[doc(hidden)] pub struct IAMDevMemoryControl_Vtbl { @@ -647,9 +515,8 @@ pub struct IAMDevMemoryControl_Vtbl { pub WriteSync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDevId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwdevid: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMDeviceRemoval(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAMDeviceRemoval, IAMDeviceRemoval_Vtbl, 0xf90a6130_b658_11d2_ae49_0000f8754b99); +::windows_core::imp::interface_hierarchy!(IAMDeviceRemoval, ::windows_core::IUnknown); impl IAMDeviceRemoval { pub unsafe fn DeviceInfo(&self, pclsidinterfaceclass: *mut ::windows_core::GUID, pwszsymboliclink: *mut ::windows_core::PWSTR) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).DeviceInfo)(::windows_core::Interface::as_raw(self), pclsidinterfaceclass, pwszsymboliclink).ok() @@ -661,13 +528,6 @@ impl IAMDeviceRemoval { (::windows_core::Interface::vtable(self).Disassociate)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IAMDeviceRemoval, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAMDeviceRemoval { - type Vtable = IAMDeviceRemoval_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAMDeviceRemoval { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf90a6130_b658_11d2_ae49_0000f8754b99); -} #[repr(C)] #[doc(hidden)] pub struct IAMDeviceRemoval_Vtbl { @@ -676,9 +536,8 @@ pub struct IAMDeviceRemoval_Vtbl { pub Reassociate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Disassociate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMDirectSound(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAMDirectSound, IAMDirectSound_Vtbl, 0x546f4260_d53e_11cf_b3f0_00aa003761c5); +::windows_core::imp::interface_hierarchy!(IAMDirectSound, ::windows_core::IUnknown); impl IAMDirectSound { #[doc = "Required features: `\"Win32_Media_Audio_DirectSound\"`"] #[cfg(feature = "Win32_Media_Audio_DirectSound")] @@ -733,13 +592,6 @@ impl IAMDirectSound { (::windows_core::Interface::vtable(self).GetFocusWindow)(::windows_core::Interface::as_raw(self), param0, param1).ok() } } -::windows_core::imp::interface_hierarchy!(IAMDirectSound, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAMDirectSound { - type Vtable = IAMDirectSound_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAMDirectSound { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x546f4260_d53e_11cf_b3f0_00aa003761c5); -} #[repr(C)] #[doc(hidden)] pub struct IAMDirectSound_Vtbl { @@ -771,9 +623,8 @@ pub struct IAMDirectSound_Vtbl { pub SetFocusWindow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: super::super::Foundation::HWND, param1: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub GetFocusWindow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: *mut super::super::Foundation::HWND, param1: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMDroppedFrames(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAMDroppedFrames, IAMDroppedFrames_Vtbl, 0xc6e13344_30ac_11d0_a18c_00a0c9118956); +::windows_core::imp::interface_hierarchy!(IAMDroppedFrames, ::windows_core::IUnknown); impl IAMDroppedFrames { pub unsafe fn GetNumDropped(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -791,13 +642,6 @@ impl IAMDroppedFrames { (::windows_core::Interface::vtable(self).GetAverageFrameSize)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAMDroppedFrames, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAMDroppedFrames { - type Vtable = IAMDroppedFrames_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAMDroppedFrames { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc6e13344_30ac_11d0_a18c_00a0c9118956); -} #[repr(C)] #[doc(hidden)] pub struct IAMDroppedFrames_Vtbl { @@ -807,9 +651,8 @@ pub struct IAMDroppedFrames_Vtbl { pub GetDroppedInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lsize: i32, plarray: *mut i32, plnumcopied: *mut i32) -> ::windows_core::HRESULT, pub GetAverageFrameSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plaveragesize: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMExtDevice(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAMExtDevice, IAMExtDevice_Vtbl, 0xb5730a90_1a2c_11cf_8c23_00aa006b6814); +::windows_core::imp::interface_hierarchy!(IAMExtDevice, ::windows_core::IUnknown); impl IAMExtDevice { pub unsafe fn GetCapability(&self, capability: i32, pvalue: *mut i32, pdblvalue: *mut f64) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetCapability)(::windows_core::Interface::as_raw(self), capability, pvalue, pdblvalue).ok() @@ -841,13 +684,6 @@ impl IAMExtDevice { (::windows_core::Interface::vtable(self).DevicePort)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAMExtDevice, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAMExtDevice { - type Vtable = IAMExtDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAMExtDevice { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb5730a90_1a2c_11cf_8c23_00aa006b6814); -} #[repr(C)] #[doc(hidden)] pub struct IAMExtDevice_Vtbl { @@ -861,9 +697,8 @@ pub struct IAMExtDevice_Vtbl { pub SetDevicePort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, deviceport: i32) -> ::windows_core::HRESULT, pub DevicePort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdeviceport: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMExtTransport(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAMExtTransport, IAMExtTransport_Vtbl, 0xa03cd5f0_3045_11cf_8c44_00aa006b6814); +::windows_core::imp::interface_hierarchy!(IAMExtTransport, ::windows_core::IUnknown); impl IAMExtTransport { pub unsafe fn GetCapability(&self, capability: i32, pvalue: *mut i32, pdblvalue: *mut f64) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetCapability)(::windows_core::Interface::as_raw(self), capability, pvalue, pdblvalue).ok() @@ -964,13 +799,6 @@ impl IAMExtTransport { (::windows_core::Interface::vtable(self).SetEditStart)(::windows_core::Interface::as_raw(self), value).ok() } } -::windows_core::imp::interface_hierarchy!(IAMExtTransport, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAMExtTransport { - type Vtable = IAMExtTransport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAMExtTransport { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa03cd5f0_3045_11cf_8c44_00aa006b6814); -} #[repr(C)] #[doc(hidden)] pub struct IAMExtTransport_Vtbl { @@ -1004,11 +832,15 @@ pub struct IAMExtTransport_Vtbl { pub EditStart: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut i32) -> ::windows_core::HRESULT, pub SetEditStart: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMExtendedErrorInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IAMExtendedErrorInfo, + IAMExtendedErrorInfo_Vtbl, + 0xfa2aa8f6_8b62_11d0_a520_000000000000 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IAMExtendedErrorInfo, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IAMExtendedErrorInfo { pub unsafe fn HasError(&self, phaserror: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::Result<()> { @@ -1022,16 +854,6 @@ impl IAMExtendedErrorInfo { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IAMExtendedErrorInfo, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IAMExtendedErrorInfo { - type Vtable = IAMExtendedErrorInfo_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IAMExtendedErrorInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfa2aa8f6_8b62_11d0_a520_000000000000); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IAMExtendedErrorInfo_Vtbl { @@ -1040,11 +862,15 @@ pub struct IAMExtendedErrorInfo_Vtbl { pub ErrorDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrerrordescription: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub ErrorCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, perrorcode: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMExtendedSeeking(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IAMExtendedSeeking, + IAMExtendedSeeking_Vtbl, + 0xfa2aa8f9_8b62_11d0_a520_000000000000 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IAMExtendedSeeking, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IAMExtendedSeeking { pub unsafe fn ExSeekCapabilities(&self, pexcapabilities: *mut i32) -> ::windows_core::Result<()> { @@ -1070,16 +896,6 @@ impl IAMExtendedSeeking { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IAMExtendedSeeking, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IAMExtendedSeeking { - type Vtable = IAMExtendedSeeking_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IAMExtendedSeeking { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfa2aa8f9_8b62_11d0_a520_000000000000); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IAMExtendedSeeking_Vtbl { @@ -1092,9 +908,8 @@ pub struct IAMExtendedSeeking_Vtbl { pub SetPlaybackSpeed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, speed: f64) -> ::windows_core::HRESULT, pub PlaybackSpeed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pspeed: *mut f64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMFilterGraphCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAMFilterGraphCallback, IAMFilterGraphCallback_Vtbl, 0x56a868fd_0ad4_11ce_b0a3_0020af0ba770); +::windows_core::imp::interface_hierarchy!(IAMFilterGraphCallback, ::windows_core::IUnknown); impl IAMFilterGraphCallback { pub unsafe fn UnableToRender(&self, ppin: P0) -> ::windows_core::Result<()> where @@ -1103,43 +918,27 @@ impl IAMFilterGraphCallback { (::windows_core::Interface::vtable(self).UnableToRender)(::windows_core::Interface::as_raw(self), ppin.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IAMFilterGraphCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAMFilterGraphCallback { - type Vtable = IAMFilterGraphCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAMFilterGraphCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x56a868fd_0ad4_11ce_b0a3_0020af0ba770); -} #[repr(C)] #[doc(hidden)] pub struct IAMFilterGraphCallback_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub UnableToRender: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppin: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMFilterMiscFlags(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAMFilterMiscFlags, IAMFilterMiscFlags_Vtbl, 0x2dd74950_a890_11d1_abe8_00a0c905f375); +::windows_core::imp::interface_hierarchy!(IAMFilterMiscFlags, ::windows_core::IUnknown); impl IAMFilterMiscFlags { pub unsafe fn GetMiscFlags(&self) -> u32 { (::windows_core::Interface::vtable(self).GetMiscFlags)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(IAMFilterMiscFlags, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAMFilterMiscFlags { - type Vtable = IAMFilterMiscFlags_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAMFilterMiscFlags { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2dd74950_a890_11d1_abe8_00a0c905f375); -} #[repr(C)] #[doc(hidden)] pub struct IAMFilterMiscFlags_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetMiscFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> u32, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMGraphBuilderCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAMGraphBuilderCallback, IAMGraphBuilderCallback_Vtbl, 0x4995f511_9ddb_4f12_bd3b_f04611807b79); +::windows_core::imp::interface_hierarchy!(IAMGraphBuilderCallback, ::windows_core::IUnknown); impl IAMGraphBuilderCallback { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -1158,13 +957,6 @@ impl IAMGraphBuilderCallback { (::windows_core::Interface::vtable(self).CreatedFilter)(::windows_core::Interface::as_raw(self), pfil.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IAMGraphBuilderCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAMGraphBuilderCallback { - type Vtable = IAMGraphBuilderCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAMGraphBuilderCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4995f511_9ddb_4f12_bd3b_f04611807b79); -} #[repr(C)] #[doc(hidden)] pub struct IAMGraphBuilderCallback_Vtbl { @@ -1178,9 +970,8 @@ pub struct IAMGraphBuilderCallback_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] CreatedFilter: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMGraphStreams(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAMGraphStreams, IAMGraphStreams_Vtbl, 0x632105fa_072e_11d3_8af9_00c04fb6bd3d); +::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 @@ -1198,13 +989,6 @@ impl IAMGraphStreams { (::windows_core::Interface::vtable(self).SetMaxGraphLatency)(::windows_core::Interface::as_raw(self), rtmaxgraphlatency).ok() } } -::windows_core::imp::interface_hierarchy!(IAMGraphStreams, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAMGraphStreams { - type Vtable = IAMGraphStreams_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAMGraphStreams { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x632105fa_072e_11d3_8af9_00c04fb6bd3d); -} #[repr(C)] #[doc(hidden)] pub struct IAMGraphStreams_Vtbl { @@ -1213,31 +997,22 @@ pub struct IAMGraphStreams_Vtbl { pub SyncUsingStreamOffset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, busestreamoffset: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub SetMaxGraphLatency: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rtmaxgraphlatency: i64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMLatency(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAMLatency, IAMLatency_Vtbl, 0x62ea93ba_ec62_11d2_b770_00c04fb6bd3d); +::windows_core::imp::interface_hierarchy!(IAMLatency, ::windows_core::IUnknown); impl IAMLatency { pub unsafe fn GetLatency(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetLatency)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAMLatency, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAMLatency { - type Vtable = IAMLatency_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAMLatency { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x62ea93ba_ec62_11d2_b770_00c04fb6bd3d); -} #[repr(C)] #[doc(hidden)] pub struct IAMLatency_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetLatency: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prtlatency: *mut i64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMLine21Decoder(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAMLine21Decoder, IAMLine21Decoder_Vtbl, 0x6e8d4a21_310c_11d0_b79a_00aa003767a7); +::windows_core::imp::interface_hierarchy!(IAMLine21Decoder, ::windows_core::IUnknown); impl IAMLine21Decoder { pub unsafe fn GetDecoderLevel(&self, lplevel: *mut AM_LINE21_CCLEVEL) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetDecoderLevel)(::windows_core::Interface::as_raw(self), lplevel).ok() @@ -1286,13 +1061,6 @@ impl IAMLine21Decoder { (::windows_core::Interface::vtable(self).SetDrawBackgroundMode)(::windows_core::Interface::as_raw(self), mode).ok() } } -::windows_core::imp::interface_hierarchy!(IAMLine21Decoder, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAMLine21Decoder { - type Vtable = IAMLine21Decoder_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAMLine21Decoder { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6e8d4a21_310c_11d0_b79a_00aa003767a7); -} #[repr(C)] #[doc(hidden)] pub struct IAMLine21Decoder_Vtbl { @@ -1317,11 +1085,15 @@ pub struct IAMLine21Decoder_Vtbl { pub GetDrawBackgroundMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpmode: *mut AM_LINE21_DRAWBGMODE) -> ::windows_core::HRESULT, pub SetDrawBackgroundMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mode: AM_LINE21_DRAWBGMODE) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMMediaContent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IAMMediaContent, + IAMMediaContent_Vtbl, + 0xfa2aa8f4_8b62_11d0_a520_000000000000 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IAMMediaContent, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IAMMediaContent { pub unsafe fn AuthorName(&self, pbstrauthorname: *mut ::windows_core::BSTR) -> ::windows_core::Result<()> { @@ -1365,16 +1137,6 @@ impl IAMMediaContent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IAMMediaContent, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IAMMediaContent { - type Vtable = IAMMediaContent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IAMMediaContent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfa2aa8f4_8b62_11d0_a520_000000000000); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IAMMediaContent_Vtbl { @@ -1393,11 +1155,15 @@ pub struct IAMMediaContent_Vtbl { pub MoreInfoBannerURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrmoreinfobannerurl: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub MoreInfoText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrmoreinfotext: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMMediaContent2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IAMMediaContent2, + IAMMediaContent2_Vtbl, + 0xce8f78c1_74d9_11d2_b09d_00a0c9a81117 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IAMMediaContent2, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IAMMediaContent2 { pub unsafe fn get_MediaParameter(&self, entrynum: i32, bstrname: P0, pbstrvalue: *mut ::windows_core::BSTR) -> ::windows_core::Result<()> @@ -1414,16 +1180,6 @@ impl IAMMediaContent2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IAMMediaContent2, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IAMMediaContent2 { - type Vtable = IAMMediaContent2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IAMMediaContent2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xce8f78c1_74d9_11d2_b09d_00a0c9a81117); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IAMMediaContent2_Vtbl { @@ -1432,9 +1188,8 @@ pub struct IAMMediaContent2_Vtbl { pub get_MediaParameterName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, entrynum: i32, index: i32, pbstrname: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub PlaylistCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pnumberentries: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMMediaStream(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAMMediaStream, IAMMediaStream_Vtbl, 0xbebe595d_9a6f_11d0_8fde_00c04fd9189d); +::windows_core::imp::interface_hierarchy!(IAMMediaStream, ::windows_core::IUnknown, IMediaStream); impl IAMMediaStream { pub unsafe fn GetMultiMediaStream(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1493,13 +1248,6 @@ impl IAMMediaStream { (::windows_core::Interface::vtable(self).JoinFilterGraph)(::windows_core::Interface::as_raw(self), pfiltergraph.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IAMMediaStream, ::windows_core::IUnknown, IMediaStream); -unsafe impl ::windows_core::Interface for IAMMediaStream { - type Vtable = IAMMediaStream_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAMMediaStream { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbebe595d_9a6f_11d0_8fde_00c04fd9189d); -} #[repr(C)] #[doc(hidden)] pub struct IAMMediaStream_Vtbl { @@ -1513,9 +1261,8 @@ pub struct IAMMediaStream_Vtbl { JoinFilter: usize, pub JoinFilterGraph: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfiltergraph: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMMediaTypeSample(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAMMediaTypeSample, IAMMediaTypeSample_Vtbl, 0xab6b4afb_f6e4_11d0_900d_00c04fd9189d); +::windows_core::imp::interface_hierarchy!(IAMMediaTypeSample, ::windows_core::IUnknown, IStreamSample); impl IAMMediaTypeSample { pub unsafe fn GetMediaStream(&self, ppmediastream: *const ::core::option::Option) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.GetMediaStream)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(ppmediastream)).ok() @@ -1602,13 +1349,6 @@ impl IAMMediaTypeSample { (::windows_core::Interface::vtable(self).SetMediaTime)(::windows_core::Interface::as_raw(self), ptimestart, ptimeend).ok() } } -::windows_core::imp::interface_hierarchy!(IAMMediaTypeSample, ::windows_core::IUnknown, IStreamSample); -unsafe impl ::windows_core::Interface for IAMMediaTypeSample { - type Vtable = IAMMediaTypeSample_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAMMediaTypeSample { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xab6b4afb_f6e4_11d0_900d_00c04fd9189d); -} #[repr(C)] #[doc(hidden)] pub struct IAMMediaTypeSample_Vtbl { @@ -1637,9 +1377,8 @@ pub struct IAMMediaTypeSample_Vtbl { pub GetMediaTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptimestart: *mut i64, ptimeend: *mut i64) -> ::windows_core::HRESULT, pub SetMediaTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptimestart: *const i64, ptimeend: *const i64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMMediaTypeStream(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAMMediaTypeStream, IAMMediaTypeStream_Vtbl, 0xab6b4afa_f6e4_11d0_900d_00c04fd9189d); +::windows_core::imp::interface_hierarchy!(IAMMediaTypeStream, ::windows_core::IUnknown, IMediaStream); impl IAMMediaTypeStream { pub unsafe fn GetMultiMediaStream(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1693,13 +1432,6 @@ impl IAMMediaTypeStream { (::windows_core::Interface::vtable(self).SetStreamAllocatorRequirements)(::windows_core::Interface::as_raw(self), pprops).ok() } } -::windows_core::imp::interface_hierarchy!(IAMMediaTypeStream, ::windows_core::IUnknown, IMediaStream); -unsafe impl ::windows_core::Interface for IAMMediaTypeStream { - type Vtable = IAMMediaTypeStream_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAMMediaTypeStream { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xab6b4afa_f6e4_11d0_900d_00c04fd9189d); -} #[repr(C)] #[doc(hidden)] pub struct IAMMediaTypeStream_Vtbl { @@ -1716,9 +1448,8 @@ pub struct IAMMediaTypeStream_Vtbl { pub GetStreamAllocatorRequirements: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pprops: *mut ALLOCATOR_PROPERTIES) -> ::windows_core::HRESULT, pub SetStreamAllocatorRequirements: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pprops: *const ALLOCATOR_PROPERTIES) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMMultiMediaStream(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAMMultiMediaStream, IAMMultiMediaStream_Vtbl, 0xbebe595c_9a6f_11d0_8fde_00c04fd9189d); +::windows_core::imp::interface_hierarchy!(IAMMultiMediaStream, ::windows_core::IUnknown, IMultiMediaStream); impl IAMMultiMediaStream { pub unsafe fn GetInformation(&self, pdwflags: *mut MMSSF_GET_INFORMATION_FLAGS, pstreamtype: *mut STREAM_TYPE) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.GetInformation)(::windows_core::Interface::as_raw(self), pdwflags, pstreamtype).ok() @@ -1795,13 +1526,6 @@ impl IAMMultiMediaStream { (::windows_core::Interface::vtable(self).Render)(::windows_core::Interface::as_raw(self), dwflags).ok() } } -::windows_core::imp::interface_hierarchy!(IAMMultiMediaStream, ::windows_core::IUnknown, IMultiMediaStream); -unsafe impl ::windows_core::Interface for IAMMultiMediaStream { - type Vtable = IAMMultiMediaStream_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAMMultiMediaStream { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbebe595c_9a6f_11d0_8fde_00c04fd9189d); -} #[repr(C)] #[doc(hidden)] pub struct IAMMultiMediaStream_Vtbl { @@ -1820,11 +1544,15 @@ pub struct IAMMultiMediaStream_Vtbl { OpenMoniker: usize, pub Render: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwflags: u32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMNetShowConfig(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IAMNetShowConfig, + IAMNetShowConfig_Vtbl, + 0xfa2aa8f1_8b62_11d0_a520_000000000000 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IAMNetShowConfig, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IAMNetShowConfig { pub unsafe fn BufferingTime(&self, pbufferingtime: *mut f64) -> ::windows_core::Result<()> { @@ -1919,16 +1647,6 @@ impl IAMNetShowConfig { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IAMNetShowConfig, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IAMNetShowConfig { - type Vtable = IAMNetShowConfig_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IAMNetShowConfig { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfa2aa8f1_8b62_11d0_a520_000000000000); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IAMNetShowConfig_Vtbl { @@ -1956,11 +1674,15 @@ pub struct IAMNetShowConfig_Vtbl { pub EnableHTTP: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, penablehttp: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub SetEnableHTTP: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enablehttp: super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMNetShowExProps(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IAMNetShowExProps, + IAMNetShowExProps_Vtbl, + 0xfa2aa8f5_8b62_11d0_a520_000000000000 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IAMNetShowExProps, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IAMNetShowExProps { pub unsafe fn SourceProtocol(&self, psourceprotocol: *mut i32) -> ::windows_core::Result<()> { @@ -1992,16 +1714,6 @@ impl IAMNetShowExProps { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IAMNetShowExProps, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IAMNetShowExProps { - type Vtable = IAMNetShowExProps_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IAMNetShowExProps { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfa2aa8f5_8b62_11d0_a520_000000000000); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IAMNetShowExProps_Vtbl { @@ -2016,11 +1728,15 @@ pub struct IAMNetShowExProps_Vtbl { pub CreationDate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcreationdate: *mut f64) -> ::windows_core::HRESULT, pub SourceLink: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsourcelink: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMNetShowPreroll(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IAMNetShowPreroll, + IAMNetShowPreroll_Vtbl, + 0xaae7e4e2_6388_11d1_8d93_006097c9a2b2 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IAMNetShowPreroll, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IAMNetShowPreroll { pub unsafe fn SetPreroll(&self, fpreroll: P0) -> ::windows_core::Result<()> @@ -2034,16 +1750,6 @@ impl IAMNetShowPreroll { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IAMNetShowPreroll, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IAMNetShowPreroll { - type Vtable = IAMNetShowPreroll_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IAMNetShowPreroll { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaae7e4e2_6388_11d1_8d93_006097c9a2b2); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IAMNetShowPreroll_Vtbl { @@ -2051,11 +1757,15 @@ pub struct IAMNetShowPreroll_Vtbl { pub SetPreroll: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fpreroll: super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub Preroll: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfpreroll: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMNetworkStatus(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IAMNetworkStatus, + IAMNetworkStatus_Vtbl, + 0xfa2aa8f3_8b62_11d0_a520_000000000000 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IAMNetworkStatus, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IAMNetworkStatus { pub unsafe fn ReceivedPackets(&self, preceivedpackets: *mut i32) -> ::windows_core::Result<()> { @@ -2081,16 +1791,6 @@ impl IAMNetworkStatus { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IAMNetworkStatus, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IAMNetworkStatus { - type Vtable = IAMNetworkStatus_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IAMNetworkStatus { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfa2aa8f3_8b62_11d0_a520_000000000000); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IAMNetworkStatus_Vtbl { @@ -2103,9 +1803,8 @@ pub struct IAMNetworkStatus_Vtbl { pub IsBroadcast: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pisbroadcast: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub BufferingProgress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbufferingprogress: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMOpenProgress(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAMOpenProgress, IAMOpenProgress_Vtbl, 0x8e1c39a1_de53_11cf_aa63_0080c744528d); +::windows_core::imp::interface_hierarchy!(IAMOpenProgress, ::windows_core::IUnknown); impl IAMOpenProgress { pub unsafe fn QueryProgress(&self, plltotal: *mut i64, pllcurrent: *mut i64) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).QueryProgress)(::windows_core::Interface::as_raw(self), plltotal, pllcurrent).ok() @@ -2114,13 +1813,6 @@ impl IAMOpenProgress { (::windows_core::Interface::vtable(self).AbortOperation)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IAMOpenProgress, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAMOpenProgress { - type Vtable = IAMOpenProgress_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAMOpenProgress { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8e1c39a1_de53_11cf_aa63_0080c744528d); -} #[repr(C)] #[doc(hidden)] pub struct IAMOpenProgress_Vtbl { @@ -2128,9 +1820,8 @@ pub struct IAMOpenProgress_Vtbl { pub QueryProgress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plltotal: *mut i64, pllcurrent: *mut i64) -> ::windows_core::HRESULT, pub AbortOperation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMOverlayFX(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAMOverlayFX, IAMOverlayFX_Vtbl, 0x62fae250_7e65_4460_bfc9_6398b322073c); +::windows_core::imp::interface_hierarchy!(IAMOverlayFX, ::windows_core::IUnknown); impl IAMOverlayFX { pub unsafe fn QueryOverlayFXCaps(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2144,13 +1835,6 @@ impl IAMOverlayFX { (::windows_core::Interface::vtable(self).GetOverlayFX)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAMOverlayFX, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAMOverlayFX { - type Vtable = IAMOverlayFX_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAMOverlayFX { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x62fae250_7e65_4460_bfc9_6398b322073c); -} #[repr(C)] #[doc(hidden)] pub struct IAMOverlayFX_Vtbl { @@ -2159,9 +1843,8 @@ pub struct IAMOverlayFX_Vtbl { pub SetOverlayFX: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwoverlayfx: u32) -> ::windows_core::HRESULT, pub GetOverlayFX: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpdwoverlayfx: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMParse(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAMParse, IAMParse_Vtbl, 0xc47a3420_005c_11d2_9038_00a0c9697298); +::windows_core::imp::interface_hierarchy!(IAMParse, ::windows_core::IUnknown); impl IAMParse { pub unsafe fn GetParseTime(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2174,13 +1857,6 @@ impl IAMParse { (::windows_core::Interface::vtable(self).Flush)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IAMParse, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAMParse { - type Vtable = IAMParse_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAMParse { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc47a3420_005c_11d2_9038_00a0c9697298); -} #[repr(C)] #[doc(hidden)] pub struct IAMParse_Vtbl { @@ -2189,30 +1865,21 @@ pub struct IAMParse_Vtbl { pub SetParseTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rtcurrent: i64) -> ::windows_core::HRESULT, pub Flush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMPhysicalPinInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAMPhysicalPinInfo, IAMPhysicalPinInfo_Vtbl, 0xf938c991_3029_11cf_8c44_00aa006b6814); +::windows_core::imp::interface_hierarchy!(IAMPhysicalPinInfo, ::windows_core::IUnknown); impl IAMPhysicalPinInfo { pub unsafe fn GetPhysicalType(&self, ptype: *mut i32, ppsztype: *mut ::windows_core::PWSTR) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetPhysicalType)(::windows_core::Interface::as_raw(self), ptype, ppsztype).ok() } } -::windows_core::imp::interface_hierarchy!(IAMPhysicalPinInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAMPhysicalPinInfo { - type Vtable = IAMPhysicalPinInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAMPhysicalPinInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf938c991_3029_11cf_8c44_00aa006b6814); -} #[repr(C)] #[doc(hidden)] pub struct IAMPhysicalPinInfo_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetPhysicalType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptype: *mut i32, ppsztype: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMPlayList(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAMPlayList, IAMPlayList_Vtbl, 0x56a868fe_0ad4_11ce_b03a_0020af0ba770); +::windows_core::imp::interface_hierarchy!(IAMPlayList, ::windows_core::IUnknown); impl IAMPlayList { pub unsafe fn GetFlags(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2236,13 +1903,6 @@ impl IAMPlayList { (::windows_core::Interface::vtable(self).GetRepeatInfo)(::windows_core::Interface::as_raw(self), pdwrepeatcount, pdwrepeatstart, pdwrepeatend).ok() } } -::windows_core::imp::interface_hierarchy!(IAMPlayList, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAMPlayList { - type Vtable = IAMPlayList_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAMPlayList { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x56a868fe_0ad4_11ce_b03a_0020af0ba770); -} #[repr(C)] #[doc(hidden)] pub struct IAMPlayList_Vtbl { @@ -2253,9 +1913,8 @@ pub struct IAMPlayList_Vtbl { pub GetNamedEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwszeventname: ::windows_core::PCWSTR, dwitemindex: u32, ppitem: *mut *mut ::core::ffi::c_void, pdwflags: *mut u32) -> ::windows_core::HRESULT, pub GetRepeatInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwrepeatcount: *mut u32, pdwrepeatstart: *mut u32, pdwrepeatend: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMPlayListItem(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAMPlayListItem, IAMPlayListItem_Vtbl, 0x56a868ff_0ad4_11ce_b03a_0020af0ba770); +::windows_core::imp::interface_hierarchy!(IAMPlayListItem, ::windows_core::IUnknown); impl IAMPlayListItem { pub unsafe fn GetFlags(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2302,13 +1961,6 @@ impl IAMPlayListItem { (::windows_core::Interface::vtable(self).GetScanDuration)(::windows_core::Interface::as_raw(self), dwsourceindex, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAMPlayListItem, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAMPlayListItem { - type Vtable = IAMPlayListItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAMPlayListItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x56a868ff_0ad4_11ce_b03a_0020af0ba770); -} #[repr(C)] #[doc(hidden)] pub struct IAMPlayListItem_Vtbl { @@ -2325,9 +1977,8 @@ pub struct IAMPlayListItem_Vtbl { pub GetLinkURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrurl: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub GetScanDuration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwsourceindex: u32, prtscanduration: *mut i64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMPluginControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAMPluginControl, IAMPluginControl_Vtbl, 0x0e26a181_f40c_4635_8786_976284b52981); +::windows_core::imp::interface_hierarchy!(IAMPluginControl, ::windows_core::IUnknown); impl IAMPluginControl { pub unsafe fn GetPreferredClsid(&self, subtype: *const ::windows_core::GUID) -> ::windows_core::Result<::windows_core::GUID> { let mut result__ = ::std::mem::zeroed(); @@ -2359,13 +2010,6 @@ impl IAMPluginControl { (::windows_core::Interface::vtable(self).IsLegacyDisabled)(::windows_core::Interface::as_raw(self), dllname.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IAMPluginControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAMPluginControl { - type Vtable = IAMPluginControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAMPluginControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0e26a181_f40c_4635_8786_976284b52981); -} #[repr(C)] #[doc(hidden)] pub struct IAMPluginControl_Vtbl { @@ -2378,9 +2022,8 @@ pub struct IAMPluginControl_Vtbl { pub SetDisabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, clsid: *const ::windows_core::GUID, disabled: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub IsLegacyDisabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dllname: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMPushSource(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAMPushSource, IAMPushSource_Vtbl, 0xf185fe76_e64e_11d2_b76e_00c04fb6bd3d); +::windows_core::imp::interface_hierarchy!(IAMPushSource, ::windows_core::IUnknown, IAMLatency); impl IAMPushSource { pub unsafe fn GetLatency(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2408,13 +2051,6 @@ impl IAMPushSource { (::windows_core::Interface::vtable(self).SetMaxStreamOffset)(::windows_core::Interface::as_raw(self), rtmaxoffset).ok() } } -::windows_core::imp::interface_hierarchy!(IAMPushSource, ::windows_core::IUnknown, IAMLatency); -unsafe impl ::windows_core::Interface for IAMPushSource { - type Vtable = IAMPushSource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAMPushSource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf185fe76_e64e_11d2_b76e_00c04fb6bd3d); -} #[repr(C)] #[doc(hidden)] pub struct IAMPushSource_Vtbl { @@ -2426,53 +2062,41 @@ pub struct IAMPushSource_Vtbl { pub GetMaxStreamOffset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prtmaxoffset: *mut i64) -> ::windows_core::HRESULT, pub SetMaxStreamOffset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rtmaxoffset: i64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMRebuild(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAMRebuild, IAMRebuild_Vtbl, 0x02ef04dd_7580_11d1_bece_00c04fb6e937); +::windows_core::imp::interface_hierarchy!(IAMRebuild, ::windows_core::IUnknown); impl IAMRebuild { pub unsafe fn RebuildNow(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).RebuildNow)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IAMRebuild, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAMRebuild { - type Vtable = IAMRebuild_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAMRebuild { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x02ef04dd_7580_11d1_bece_00c04fb6e937); -} #[repr(C)] #[doc(hidden)] pub struct IAMRebuild_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub RebuildNow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMResourceControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAMResourceControl, IAMResourceControl_Vtbl, 0x8389d2d0_77d7_11d1_abe6_00a0c905f375); +::windows_core::imp::interface_hierarchy!(IAMResourceControl, ::windows_core::IUnknown); impl IAMResourceControl { pub unsafe fn Reserve(&self, dwflags: u32, pvreserved: ::core::option::Option<*const ::core::ffi::c_void>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Reserve)(::windows_core::Interface::as_raw(self), dwflags, ::core::mem::transmute(pvreserved.unwrap_or(::std::ptr::null()))).ok() } } -::windows_core::imp::interface_hierarchy!(IAMResourceControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAMResourceControl { - type Vtable = IAMResourceControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAMResourceControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8389d2d0_77d7_11d1_abe6_00a0c905f375); -} #[repr(C)] #[doc(hidden)] pub struct IAMResourceControl_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Reserve: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwflags: u32, pvreserved: *const ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMStats(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IAMStats, + IAMStats_Vtbl, + 0xbc9bcf80_dcd2_11d2_abf6_00a0c905f375 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IAMStats, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IAMStats { pub unsafe fn Reset(&self) -> ::windows_core::Result<()> { @@ -2503,16 +2127,6 @@ impl IAMStats { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IAMStats, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IAMStats { - type Vtable = IAMStats_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IAMStats { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbc9bcf80_dcd2_11d2_abf6_00a0c905f375); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IAMStats_Vtbl { @@ -2524,9 +2138,8 @@ pub struct IAMStats_Vtbl { pub GetIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, szname: ::std::mem::MaybeUninit<::windows_core::BSTR>, lcreate: i32, plindex: *mut i32) -> ::windows_core::HRESULT, pub AddValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lindex: i32, dvalue: f64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMStreamConfig(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAMStreamConfig, IAMStreamConfig_Vtbl, 0xc6e13340_30ac_11d0_a18c_00a0c9118956); +::windows_core::imp::interface_hierarchy!(IAMStreamConfig, ::windows_core::IUnknown); impl IAMStreamConfig { #[doc = "Required features: `\"Win32_Media_MediaFoundation\"`"] #[cfg(feature = "Win32_Media_MediaFoundation")] @@ -2548,13 +2161,6 @@ impl IAMStreamConfig { (::windows_core::Interface::vtable(self).GetStreamCaps)(::windows_core::Interface::as_raw(self), iindex, ppmt, pscc).ok() } } -::windows_core::imp::interface_hierarchy!(IAMStreamConfig, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAMStreamConfig { - type Vtable = IAMStreamConfig_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAMStreamConfig { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc6e13340_30ac_11d0_a18c_00a0c9118956); -} #[repr(C)] #[doc(hidden)] pub struct IAMStreamConfig_Vtbl { @@ -2573,9 +2179,8 @@ pub struct IAMStreamConfig_Vtbl { #[cfg(not(feature = "Win32_Media_MediaFoundation"))] GetStreamCaps: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMStreamControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAMStreamControl, IAMStreamControl_Vtbl, 0x36b73881_c2c8_11cf_8b46_00805f6cef60); +::windows_core::imp::interface_hierarchy!(IAMStreamControl, ::windows_core::IUnknown); impl IAMStreamControl { pub unsafe fn StartAt(&self, ptstart: ::core::option::Option<*const i64>, dwcookie: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).StartAt)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(ptstart.unwrap_or(::std::ptr::null())), dwcookie).ok() @@ -2590,13 +2195,6 @@ impl IAMStreamControl { (::windows_core::Interface::vtable(self).GetInfo)(::windows_core::Interface::as_raw(self), pinfo).ok() } } -::windows_core::imp::interface_hierarchy!(IAMStreamControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAMStreamControl { - type Vtable = IAMStreamControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAMStreamControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x36b73881_c2c8_11cf_8b46_00805f6cef60); -} #[repr(C)] #[doc(hidden)] pub struct IAMStreamControl_Vtbl { @@ -2605,9 +2203,8 @@ pub struct IAMStreamControl_Vtbl { pub StopAt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptstop: *const i64, bsendextra: super::super::Foundation::BOOL, dwcookie: u32) -> ::windows_core::HRESULT, pub GetInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinfo: *mut AM_STREAM_INFO) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMStreamSelect(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAMStreamSelect, IAMStreamSelect_Vtbl, 0xc1960960_17f5_11d1_abe1_00a0c905f375); +::windows_core::imp::interface_hierarchy!(IAMStreamSelect, ::windows_core::IUnknown); impl IAMStreamSelect { pub unsafe fn Count(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2633,13 +2230,6 @@ impl IAMStreamSelect { (::windows_core::Interface::vtable(self).Enable)(::windows_core::Interface::as_raw(self), lindex, dwflags).ok() } } -::windows_core::imp::interface_hierarchy!(IAMStreamSelect, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAMStreamSelect { - type Vtable = IAMStreamSelect_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAMStreamSelect { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc1960960_17f5_11d1_abe1_00a0c905f375); -} #[repr(C)] #[doc(hidden)] pub struct IAMStreamSelect_Vtbl { @@ -2651,9 +2241,8 @@ pub struct IAMStreamSelect_Vtbl { Info: usize, pub Enable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lindex: i32, dwflags: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMTVAudio(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAMTVAudio, IAMTVAudio_Vtbl, 0x83ec1c30_23d1_11d1_99e6_00a0c9560266); +::windows_core::imp::interface_hierarchy!(IAMTVAudio, ::windows_core::IUnknown); impl IAMTVAudio { pub unsafe fn GetHardwareSupportedTVAudioModes(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2683,13 +2272,6 @@ impl IAMTVAudio { (::windows_core::Interface::vtable(self).UnRegisterNotificationCallBack)(::windows_core::Interface::as_raw(self), pnotify.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IAMTVAudio, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAMTVAudio { - type Vtable = IAMTVAudio_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAMTVAudio { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x83ec1c30_23d1_11d1_99e6_00a0c9560266); -} #[repr(C)] #[doc(hidden)] pub struct IAMTVAudio_Vtbl { @@ -2701,30 +2283,21 @@ pub struct IAMTVAudio_Vtbl { pub RegisterNotificationCallBack: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pnotify: *mut ::core::ffi::c_void, levents: i32) -> ::windows_core::HRESULT, pub UnRegisterNotificationCallBack: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pnotify: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMTVAudioNotification(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAMTVAudioNotification, IAMTVAudioNotification_Vtbl, 0x83ec1c33_23d1_11d1_99e6_00a0c9560266); +::windows_core::imp::interface_hierarchy!(IAMTVAudioNotification, ::windows_core::IUnknown); impl IAMTVAudioNotification { pub unsafe fn OnEvent(&self, event: AMTVAudioEventType) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnEvent)(::windows_core::Interface::as_raw(self), event).ok() } } -::windows_core::imp::interface_hierarchy!(IAMTVAudioNotification, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAMTVAudioNotification { - type Vtable = IAMTVAudioNotification_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAMTVAudioNotification { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x83ec1c33_23d1_11d1_99e6_00a0c9560266); -} #[repr(C)] #[doc(hidden)] pub struct IAMTVAudioNotification_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, event: AMTVAudioEventType) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMTVTuner(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAMTVTuner, IAMTVTuner_Vtbl, 0x211a8766_03ac_11d1_8d13_00aa00bd8339); +::windows_core::imp::interface_hierarchy!(IAMTVTuner, ::windows_core::IUnknown, IAMTuner); impl IAMTVTuner { pub unsafe fn put_Channel(&self, lchannel: i32, lvideosubchannel: i32, laudiosubchannel: i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.put_Channel)(::windows_core::Interface::as_raw(self), lchannel, lvideosubchannel, laudiosubchannel).ok() @@ -2827,13 +2400,6 @@ impl IAMTVTuner { (::windows_core::Interface::vtable(self).AudioFrequency)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAMTVTuner, ::windows_core::IUnknown, IAMTuner); -unsafe impl ::windows_core::Interface for IAMTVTuner { - type Vtable = IAMTVTuner_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAMTVTuner { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x211a8766_03ac_11d1_8d13_00aa00bd8339); -} #[repr(C)] #[doc(hidden)] pub struct IAMTVTuner_Vtbl { @@ -2850,9 +2416,8 @@ pub struct IAMTVTuner_Vtbl { pub VideoFrequency: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lfreq: *mut i32) -> ::windows_core::HRESULT, pub AudioFrequency: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lfreq: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMTimecodeDisplay(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAMTimecodeDisplay, IAMTimecodeDisplay_Vtbl, 0x9b496ce2_811b_11cf_8c77_00aa006b6814); +::windows_core::imp::interface_hierarchy!(IAMTimecodeDisplay, ::windows_core::IUnknown); impl IAMTimecodeDisplay { pub unsafe fn GetTCDisplayEnable(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2869,13 +2434,6 @@ impl IAMTimecodeDisplay { (::windows_core::Interface::vtable(self).SetTCDisplay)(::windows_core::Interface::as_raw(self), param, value).ok() } } -::windows_core::imp::interface_hierarchy!(IAMTimecodeDisplay, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAMTimecodeDisplay { - type Vtable = IAMTimecodeDisplay_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAMTimecodeDisplay { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9b496ce2_811b_11cf_8c77_00aa006b6814); -} #[repr(C)] #[doc(hidden)] pub struct IAMTimecodeDisplay_Vtbl { @@ -2885,9 +2443,8 @@ pub struct IAMTimecodeDisplay_Vtbl { pub GetTCDisplay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param: i32, pvalue: *mut i32) -> ::windows_core::HRESULT, pub SetTCDisplay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param: i32, value: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMTimecodeGenerator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAMTimecodeGenerator, IAMTimecodeGenerator_Vtbl, 0x9b496ce0_811b_11cf_8c77_00aa006b6814); +::windows_core::imp::interface_hierarchy!(IAMTimecodeGenerator, ::windows_core::IUnknown); impl IAMTimecodeGenerator { pub unsafe fn GetTCGMode(&self, param: i32) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2910,13 +2467,6 @@ impl IAMTimecodeGenerator { (::windows_core::Interface::vtable(self).GetTimecode)(::windows_core::Interface::as_raw(self), ptimecodesample).ok() } } -::windows_core::imp::interface_hierarchy!(IAMTimecodeGenerator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAMTimecodeGenerator { - type Vtable = IAMTimecodeGenerator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAMTimecodeGenerator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9b496ce0_811b_11cf_8c77_00aa006b6814); -} #[repr(C)] #[doc(hidden)] pub struct IAMTimecodeGenerator_Vtbl { @@ -2928,9 +2478,8 @@ pub struct IAMTimecodeGenerator_Vtbl { pub SetTimecode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptimecodesample: *const super::TIMECODE_SAMPLE) -> ::windows_core::HRESULT, pub GetTimecode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptimecodesample: *mut super::TIMECODE_SAMPLE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMTimecodeReader(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAMTimecodeReader, IAMTimecodeReader_Vtbl, 0x9b496ce1_811b_11cf_8c77_00aa006b6814); +::windows_core::imp::interface_hierarchy!(IAMTimecodeReader, ::windows_core::IUnknown); impl IAMTimecodeReader { pub unsafe fn GetTCRMode(&self, param: i32) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2950,13 +2499,6 @@ impl IAMTimecodeReader { (::windows_core::Interface::vtable(self).GetTimecode)(::windows_core::Interface::as_raw(self), ptimecodesample).ok() } } -::windows_core::imp::interface_hierarchy!(IAMTimecodeReader, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAMTimecodeReader { - type Vtable = IAMTimecodeReader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAMTimecodeReader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9b496ce1_811b_11cf_8c77_00aa006b6814); -} #[repr(C)] #[doc(hidden)] pub struct IAMTimecodeReader_Vtbl { @@ -2967,9 +2509,8 @@ pub struct IAMTimecodeReader_Vtbl { pub VITCLine: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pline: *mut i32) -> ::windows_core::HRESULT, pub GetTimecode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptimecodesample: *mut super::TIMECODE_SAMPLE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMTuner(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAMTuner, IAMTuner_Vtbl, 0x211a8761_03ac_11d1_8d13_00aa00bd8339); +::windows_core::imp::interface_hierarchy!(IAMTuner, ::windows_core::IUnknown); impl IAMTuner { pub unsafe fn put_Channel(&self, lchannel: i32, lvideosubchannel: i32, laudiosubchannel: i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).put_Channel)(::windows_core::Interface::as_raw(self), lchannel, lvideosubchannel, laudiosubchannel).ok() @@ -3031,13 +2572,6 @@ impl IAMTuner { (::windows_core::Interface::vtable(self).UnRegisterNotificationCallBack)(::windows_core::Interface::as_raw(self), pnotify.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IAMTuner, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAMTuner { - type Vtable = IAMTuner_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAMTuner { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x211a8761_03ac_11d1_8d13_00aa00bd8339); -} #[repr(C)] #[doc(hidden)] pub struct IAMTuner_Vtbl { @@ -3058,30 +2592,21 @@ pub struct IAMTuner_Vtbl { pub RegisterNotificationCallBack: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pnotify: *mut ::core::ffi::c_void, levents: i32) -> ::windows_core::HRESULT, pub UnRegisterNotificationCallBack: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pnotify: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMTunerNotification(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAMTunerNotification, IAMTunerNotification_Vtbl, 0x211a8760_03ac_11d1_8d13_00aa00bd8339); +::windows_core::imp::interface_hierarchy!(IAMTunerNotification, ::windows_core::IUnknown); impl IAMTunerNotification { pub unsafe fn OnEvent(&self, event: AMTunerEventType) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnEvent)(::windows_core::Interface::as_raw(self), event).ok() } } -::windows_core::imp::interface_hierarchy!(IAMTunerNotification, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAMTunerNotification { - type Vtable = IAMTunerNotification_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAMTunerNotification { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x211a8760_03ac_11d1_8d13_00aa00bd8339); -} #[repr(C)] #[doc(hidden)] pub struct IAMTunerNotification_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, event: AMTunerEventType) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMVfwCaptureDialogs(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAMVfwCaptureDialogs, IAMVfwCaptureDialogs_Vtbl, 0xd8d715a0_6e5e_11d0_b3f0_00aa003761c5); +::windows_core::imp::interface_hierarchy!(IAMVfwCaptureDialogs, ::windows_core::IUnknown); impl IAMVfwCaptureDialogs { pub unsafe fn HasDialog(&self, idialog: i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).HasDialog)(::windows_core::Interface::as_raw(self), idialog).ok() @@ -3096,13 +2621,6 @@ impl IAMVfwCaptureDialogs { (::windows_core::Interface::vtable(self).SendDriverMessage)(::windows_core::Interface::as_raw(self), idialog, umsg, dw1, dw2).ok() } } -::windows_core::imp::interface_hierarchy!(IAMVfwCaptureDialogs, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAMVfwCaptureDialogs { - type Vtable = IAMVfwCaptureDialogs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAMVfwCaptureDialogs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd8d715a0_6e5e_11d0_b3f0_00aa003761c5); -} #[repr(C)] #[doc(hidden)] pub struct IAMVfwCaptureDialogs_Vtbl { @@ -3111,9 +2629,8 @@ pub struct IAMVfwCaptureDialogs_Vtbl { pub ShowDialog: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, idialog: i32, hwnd: super::super::Foundation::HWND) -> ::windows_core::HRESULT, pub SendDriverMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, idialog: i32, umsg: i32, dw1: i32, dw2: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMVfwCompressDialogs(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAMVfwCompressDialogs, IAMVfwCompressDialogs_Vtbl, 0xd8d715a3_6e5e_11d0_b3f0_00aa003761c5); +::windows_core::imp::interface_hierarchy!(IAMVfwCompressDialogs, ::windows_core::IUnknown); impl IAMVfwCompressDialogs { pub unsafe fn ShowDialog(&self, idialog: i32, hwnd: P0) -> ::windows_core::Result<()> where @@ -3131,13 +2648,6 @@ impl IAMVfwCompressDialogs { (::windows_core::Interface::vtable(self).SendDriverMessage)(::windows_core::Interface::as_raw(self), umsg, dw1, dw2).ok() } } -::windows_core::imp::interface_hierarchy!(IAMVfwCompressDialogs, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAMVfwCompressDialogs { - type Vtable = IAMVfwCompressDialogs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAMVfwCompressDialogs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd8d715a3_6e5e_11d0_b3f0_00aa003761c5); -} #[repr(C)] #[doc(hidden)] pub struct IAMVfwCompressDialogs_Vtbl { @@ -3147,9 +2657,8 @@ pub struct IAMVfwCompressDialogs_Vtbl { pub SetState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstate: *const ::core::ffi::c_void, cbstate: i32) -> ::windows_core::HRESULT, pub SendDriverMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, umsg: i32, dw1: i32, dw2: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMVideoAccelerator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAMVideoAccelerator, IAMVideoAccelerator_Vtbl, 0x256a6a22_fbad_11d1_82bf_00a0c9696c8f); +::windows_core::imp::interface_hierarchy!(IAMVideoAccelerator, ::windows_core::IUnknown); impl IAMVideoAccelerator { pub unsafe fn GetVideoAcceleratorGUIDs(&self, pdwnumguidssupported: *mut u32, pguidssupported: ::core::option::Option<*mut ::windows_core::GUID>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetVideoAcceleratorGUIDs)(::windows_core::Interface::as_raw(self), pdwnumguidssupported, ::core::mem::transmute(pguidssupported.unwrap_or(::std::ptr::null_mut()))).ok() @@ -3202,13 +2711,6 @@ impl IAMVideoAccelerator { (::windows_core::Interface::vtable(self).DisplayFrame)(::windows_core::Interface::as_raw(self), dwfliptoindex, pmediasample.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IAMVideoAccelerator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAMVideoAccelerator { - type Vtable = IAMVideoAccelerator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAMVideoAccelerator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x256a6a22_fbad_11d1_82bf_00a0c9696c8f); -} #[repr(C)] #[doc(hidden)] pub struct IAMVideoAccelerator_Vtbl { @@ -3238,9 +2740,8 @@ pub struct IAMVideoAccelerator_Vtbl { pub QueryRenderStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwtypeindex: u32, dwbufferindex: u32, dwflags: u32) -> ::windows_core::HRESULT, pub DisplayFrame: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwfliptoindex: u32, pmediasample: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMVideoAcceleratorNotify(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAMVideoAcceleratorNotify, IAMVideoAcceleratorNotify_Vtbl, 0x256a6a21_fbad_11d1_82bf_00a0c9696c8f); +::windows_core::imp::interface_hierarchy!(IAMVideoAcceleratorNotify, ::windows_core::IUnknown); impl IAMVideoAcceleratorNotify { #[doc = "Required features: `\"Win32_Graphics_DirectDraw\"`"] #[cfg(feature = "Win32_Graphics_DirectDraw")] @@ -3254,13 +2755,6 @@ impl IAMVideoAcceleratorNotify { (::windows_core::Interface::vtable(self).GetCreateVideoAcceleratorData)(::windows_core::Interface::as_raw(self), pguid, pdwsizemiscdata, ppmiscdata).ok() } } -::windows_core::imp::interface_hierarchy!(IAMVideoAcceleratorNotify, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAMVideoAcceleratorNotify { - type Vtable = IAMVideoAcceleratorNotify_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAMVideoAcceleratorNotify { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x256a6a21_fbad_11d1_82bf_00a0c9696c8f); -} #[repr(C)] #[doc(hidden)] pub struct IAMVideoAcceleratorNotify_Vtbl { @@ -3272,9 +2766,8 @@ pub struct IAMVideoAcceleratorNotify_Vtbl { pub SetUncompSurfacesInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwactualuncompsurfacesallocated: u32) -> ::windows_core::HRESULT, pub GetCreateVideoAcceleratorData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pguid: *const ::windows_core::GUID, pdwsizemiscdata: *mut u32, ppmiscdata: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMVideoCompression(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAMVideoCompression, IAMVideoCompression_Vtbl, 0xc6e13343_30ac_11d0_a18c_00a0c9118956); +::windows_core::imp::interface_hierarchy!(IAMVideoCompression, ::windows_core::IUnknown); impl IAMVideoCompression { pub unsafe fn SetKeyFrameRate(&self, keyframerate: i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetKeyFrameRate)(::windows_core::Interface::as_raw(self), keyframerate).ok() @@ -3325,13 +2818,6 @@ impl IAMVideoCompression { (::windows_core::Interface::vtable(self).OverrideFrameSize)(::windows_core::Interface::as_raw(self), framenumber, size).ok() } } -::windows_core::imp::interface_hierarchy!(IAMVideoCompression, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAMVideoCompression { - type Vtable = IAMVideoCompression_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAMVideoCompression { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc6e13343_30ac_11d0_a18c_00a0c9118956); -} #[repr(C)] #[doc(hidden)] pub struct IAMVideoCompression_Vtbl { @@ -3348,9 +2834,8 @@ pub struct IAMVideoCompression_Vtbl { pub OverrideKeyFrame: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, framenumber: i32) -> ::windows_core::HRESULT, pub OverrideFrameSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, framenumber: i32, size: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMVideoControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAMVideoControl, IAMVideoControl_Vtbl, 0x6a2e0670_28e4_11d0_a18c_00a0c9118956); +::windows_core::imp::interface_hierarchy!(IAMVideoControl, ::windows_core::IUnknown); impl IAMVideoControl { pub unsafe fn GetCaps(&self, ppin: P0) -> ::windows_core::Result where @@ -3393,13 +2878,6 @@ impl IAMVideoControl { (::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::imp::interface_hierarchy!(IAMVideoControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAMVideoControl { - type Vtable = IAMVideoControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAMVideoControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6a2e0670_28e4_11d0_a18c_00a0c9118956); -} #[repr(C)] #[doc(hidden)] pub struct IAMVideoControl_Vtbl { @@ -3411,9 +2889,8 @@ pub struct IAMVideoControl_Vtbl { pub GetMaxAvailableFrameRate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppin: *mut ::core::ffi::c_void, iindex: i32, dimensions: super::super::Foundation::SIZE, maxavailableframerate: *mut i64) -> ::windows_core::HRESULT, pub GetFrameRateList: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppin: *mut ::core::ffi::c_void, iindex: i32, dimensions: super::super::Foundation::SIZE, listsize: *mut i32, framerates: *mut *mut i64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMVideoDecimationProperties(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAMVideoDecimationProperties, IAMVideoDecimationProperties_Vtbl, 0x60d32930_13da_11d3_9ec6_c4fcaef5c7be); +::windows_core::imp::interface_hierarchy!(IAMVideoDecimationProperties, ::windows_core::IUnknown); impl IAMVideoDecimationProperties { pub unsafe fn QueryDecimationUsage(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -3423,13 +2900,6 @@ impl IAMVideoDecimationProperties { (::windows_core::Interface::vtable(self).SetDecimationUsage)(::windows_core::Interface::as_raw(self), usage).ok() } } -::windows_core::imp::interface_hierarchy!(IAMVideoDecimationProperties, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAMVideoDecimationProperties { - type Vtable = IAMVideoDecimationProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAMVideoDecimationProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x60d32930_13da_11d3_9ec6_c4fcaef5c7be); -} #[repr(C)] #[doc(hidden)] pub struct IAMVideoDecimationProperties_Vtbl { @@ -3437,9 +2907,8 @@ pub struct IAMVideoDecimationProperties_Vtbl { pub QueryDecimationUsage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpusage: *mut DECIMATION_USAGE) -> ::windows_core::HRESULT, pub SetDecimationUsage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, usage: DECIMATION_USAGE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMVideoProcAmp(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAMVideoProcAmp, IAMVideoProcAmp_Vtbl, 0xc6e13360_30ac_11d0_a18c_00a0c9118956); +::windows_core::imp::interface_hierarchy!(IAMVideoProcAmp, ::windows_core::IUnknown); impl IAMVideoProcAmp { pub unsafe fn GetRange(&self, property: i32, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflags: *mut i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetRange)(::windows_core::Interface::as_raw(self), property, pmin, pmax, psteppingdelta, pdefault, pcapsflags).ok() @@ -3451,13 +2920,6 @@ impl IAMVideoProcAmp { (::windows_core::Interface::vtable(self).Get)(::windows_core::Interface::as_raw(self), property, lvalue, flags).ok() } } -::windows_core::imp::interface_hierarchy!(IAMVideoProcAmp, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAMVideoProcAmp { - type Vtable = IAMVideoProcAmp_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAMVideoProcAmp { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc6e13360_30ac_11d0_a18c_00a0c9118956); -} #[repr(C)] #[doc(hidden)] pub struct IAMVideoProcAmp_Vtbl { @@ -3466,9 +2928,8 @@ pub struct IAMVideoProcAmp_Vtbl { pub Set: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, property: i32, lvalue: i32, flags: i32) -> ::windows_core::HRESULT, pub Get: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, property: i32, lvalue: *mut i32, flags: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMWMBufferPass(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAMWMBufferPass, IAMWMBufferPass_Vtbl, 0x6dd816d7_e740_4123_9e24_2444412644d8); +::windows_core::imp::interface_hierarchy!(IAMWMBufferPass, ::windows_core::IUnknown); impl IAMWMBufferPass { pub unsafe fn SetNotify(&self, pcallback: P0) -> ::windows_core::Result<()> where @@ -3477,22 +2938,14 @@ impl IAMWMBufferPass { (::windows_core::Interface::vtable(self).SetNotify)(::windows_core::Interface::as_raw(self), pcallback.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IAMWMBufferPass, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAMWMBufferPass { - type Vtable = IAMWMBufferPass_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAMWMBufferPass { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6dd816d7_e740_4123_9e24_2444412644d8); -} #[repr(C)] #[doc(hidden)] pub struct IAMWMBufferPass_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub SetNotify: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcallback: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMWMBufferPassCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAMWMBufferPassCallback, IAMWMBufferPassCallback_Vtbl, 0xb25b8372_d2d2_44b2_8653_1b8dae332489); +::windows_core::imp::interface_hierarchy!(IAMWMBufferPassCallback, ::windows_core::IUnknown); impl IAMWMBufferPassCallback { #[doc = "Required features: `\"Win32_Media_WindowsMediaFormat\"`"] #[cfg(feature = "Win32_Media_WindowsMediaFormat")] @@ -3504,13 +2957,6 @@ impl IAMWMBufferPassCallback { (::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::imp::interface_hierarchy!(IAMWMBufferPassCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAMWMBufferPassCallback { - type Vtable = IAMWMBufferPassCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAMWMBufferPassCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb25b8372_d2d2_44b2_8653_1b8dae332489); -} #[repr(C)] #[doc(hidden)] pub struct IAMWMBufferPassCallback_Vtbl { @@ -3520,9 +2966,8 @@ pub struct IAMWMBufferPassCallback_Vtbl { #[cfg(not(feature = "Win32_Media_WindowsMediaFormat"))] Notify: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMWstDecoder(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAMWstDecoder, IAMWstDecoder_Vtbl, 0xc056de21_75c2_11d3_a184_00105aef9f33); +::windows_core::imp::interface_hierarchy!(IAMWstDecoder, ::windows_core::IUnknown); impl IAMWstDecoder { pub unsafe fn GetDecoderLevel(&self, lplevel: *mut AM_WST_LEVEL) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetDecoderLevel)(::windows_core::Interface::as_raw(self), lplevel).ok() @@ -3592,13 +3037,6 @@ impl IAMWstDecoder { (::windows_core::Interface::vtable(self).SetCurrentPage)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(wstpage)).ok() } } -::windows_core::imp::interface_hierarchy!(IAMWstDecoder, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAMWstDecoder { - type Vtable = IAMWstDecoder_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAMWstDecoder { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc056de21_75c2_11d3_a184_00105aef9f33); -} #[repr(C)] #[doc(hidden)] pub struct IAMWstDecoder_Vtbl { @@ -3628,9 +3066,8 @@ pub struct IAMWstDecoder_Vtbl { pub GetCurrentPage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwstpage: *mut AM_WST_PAGE) -> ::windows_core::HRESULT, pub SetCurrentPage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wstpage: AM_WST_PAGE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAMovieSetup(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAMovieSetup, IAMovieSetup_Vtbl, 0xa3d8cec0_7e5a_11cf_bbc5_00805f6cef20); +::windows_core::imp::interface_hierarchy!(IAMovieSetup, ::windows_core::IUnknown); impl IAMovieSetup { pub unsafe fn Register(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Register)(::windows_core::Interface::as_raw(self)).ok() @@ -3639,13 +3076,6 @@ impl IAMovieSetup { (::windows_core::Interface::vtable(self).Unregister)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IAMovieSetup, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAMovieSetup { - type Vtable = IAMovieSetup_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAMovieSetup { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa3d8cec0_7e5a_11cf_bbc5_00805f6cef20); -} #[repr(C)] #[doc(hidden)] pub struct IAMovieSetup_Vtbl { @@ -3653,9 +3083,8 @@ pub struct IAMovieSetup_Vtbl { pub Register: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Unregister: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAsyncReader(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAsyncReader, IAsyncReader_Vtbl, 0x56a868aa_0ad4_11ce_b03a_0020af0ba770); +::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 @@ -3692,13 +3121,6 @@ impl IAsyncReader { (::windows_core::Interface::vtable(self).EndFlush)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IAsyncReader, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAsyncReader { - type Vtable = IAsyncReader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAsyncReader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x56a868aa_0ad4_11ce_b03a_0020af0ba770); -} #[repr(C)] #[doc(hidden)] pub struct IAsyncReader_Vtbl { @@ -3712,9 +3134,8 @@ pub struct IAsyncReader_Vtbl { pub BeginFlush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub EndFlush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioData(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioData, IAudioData_Vtbl, 0x54c719c0_af60_11d0_8212_00c04fc32c45); +::windows_core::imp::interface_hierarchy!(IAudioData, ::windows_core::IUnknown, IMemoryData); impl IAudioData { pub unsafe fn SetBuffer(&self, cbsize: u32, pbdata: *const u8, dwflags: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.SetBuffer)(::windows_core::Interface::as_raw(self), cbsize, pbdata, dwflags).ok() @@ -3736,13 +3157,6 @@ impl IAudioData { (::windows_core::Interface::vtable(self).SetFormat)(::windows_core::Interface::as_raw(self), lpwaveformat).ok() } } -::windows_core::imp::interface_hierarchy!(IAudioData, ::windows_core::IUnknown, IMemoryData); -unsafe impl ::windows_core::Interface for IAudioData { - type Vtable = IAudioData_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioData { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x54c719c0_af60_11d0_8212_00c04fc32c45); -} #[repr(C)] #[doc(hidden)] pub struct IAudioData_Vtbl { @@ -3756,9 +3170,8 @@ pub struct IAudioData_Vtbl { #[cfg(not(feature = "Win32_Media_Audio"))] SetFormat: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioMediaStream(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioMediaStream, IAudioMediaStream_Vtbl, 0xf7537560_a3be_11d0_8212_00c04fc32c45); +::windows_core::imp::interface_hierarchy!(IAudioMediaStream, ::windows_core::IUnknown, IMediaStream); impl IAudioMediaStream { pub unsafe fn GetMultiMediaStream(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -3805,13 +3218,6 @@ impl IAudioMediaStream { (::windows_core::Interface::vtable(self).CreateSample)(::windows_core::Interface::as_raw(self), paudiodata.into_param().abi(), dwflags, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAudioMediaStream, ::windows_core::IUnknown, IMediaStream); -unsafe impl ::windows_core::Interface for IAudioMediaStream { - type Vtable = IAudioMediaStream_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioMediaStream { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf7537560_a3be_11d0_8212_00c04fc32c45); -} #[repr(C)] #[doc(hidden)] pub struct IAudioMediaStream_Vtbl { @@ -3826,9 +3232,8 @@ pub struct IAudioMediaStream_Vtbl { SetFormat: usize, pub CreateSample: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, paudiodata: *mut ::core::ffi::c_void, dwflags: u32, ppsample: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioStreamSample(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioStreamSample, IAudioStreamSample_Vtbl, 0x345fee00_aba5_11d0_8212_00c04fc32c45); +::windows_core::imp::interface_hierarchy!(IAudioStreamSample, ::windows_core::IUnknown, IStreamSample); impl IAudioStreamSample { pub unsafe fn GetMediaStream(&self, ppmediastream: *const ::core::option::Option) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.GetMediaStream)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(ppmediastream)).ok() @@ -3853,22 +3258,14 @@ impl IAudioStreamSample { (::windows_core::Interface::vtable(self).GetAudioData)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAudioStreamSample, ::windows_core::IUnknown, IStreamSample); -unsafe impl ::windows_core::Interface for IAudioStreamSample { - type Vtable = IAudioStreamSample_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioStreamSample { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x345fee00_aba5_11d0_8212_00c04fc32c45); -} #[repr(C)] #[doc(hidden)] pub struct IAudioStreamSample_Vtbl { pub base__: IStreamSample_Vtbl, pub GetAudioData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppaudio: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBDA_AUX(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBDA_AUX, IBDA_AUX_Vtbl, 0x7def4c09_6e66_4567_a819_f0e17f4a81ab); +::windows_core::imp::interface_hierarchy!(IBDA_AUX, ::windows_core::IUnknown); impl IBDA_AUX { pub unsafe fn QueryCapabilities(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -3878,13 +3275,6 @@ impl IBDA_AUX { (::windows_core::Interface::vtable(self).EnumCapability)(::windows_core::Interface::as_raw(self), dwindex, dwinputid, pconnectortype, conntypenum, numvideostds, analogstds).ok() } } -::windows_core::imp::interface_hierarchy!(IBDA_AUX, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBDA_AUX { - type Vtable = IBDA_AUX_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBDA_AUX { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7def4c09_6e66_4567_a819_f0e17f4a81ab); -} #[repr(C)] #[doc(hidden)] pub struct IBDA_AUX_Vtbl { @@ -3892,30 +3282,21 @@ pub struct IBDA_AUX_Vtbl { pub QueryCapabilities: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwnumauxinputsbstr: *mut u32) -> ::windows_core::HRESULT, pub EnumCapability: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwindex: u32, dwinputid: *mut u32, pconnectortype: *mut ::windows_core::GUID, conntypenum: *mut u32, numvideostds: *mut u32, analogstds: *mut u64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBDA_AutoDemodulate(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBDA_AutoDemodulate, IBDA_AutoDemodulate_Vtbl, 0xddf15b12_bd25_11d2_9ca0_00c04f7971e0); +::windows_core::imp::interface_hierarchy!(IBDA_AutoDemodulate, ::windows_core::IUnknown); impl IBDA_AutoDemodulate { pub unsafe fn put_AutoDemodulate(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).put_AutoDemodulate)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IBDA_AutoDemodulate, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBDA_AutoDemodulate { - type Vtable = IBDA_AutoDemodulate_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBDA_AutoDemodulate { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xddf15b12_bd25_11d2_9ca0_00c04f7971e0); -} #[repr(C)] #[doc(hidden)] pub struct IBDA_AutoDemodulate_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub put_AutoDemodulate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBDA_AutoDemodulateEx(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBDA_AutoDemodulateEx, IBDA_AutoDemodulateEx_Vtbl, 0x34518d13_1182_48e6_b28f_b24987787326); +::windows_core::imp::interface_hierarchy!(IBDA_AutoDemodulateEx, ::windows_core::IUnknown, IBDA_AutoDemodulate); impl IBDA_AutoDemodulateEx { pub unsafe fn put_AutoDemodulate(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.put_AutoDemodulate)(::windows_core::Interface::as_raw(self)).ok() @@ -3930,13 +3311,6 @@ impl IBDA_AutoDemodulateEx { (::windows_core::Interface::vtable(self).get_AuxInputCount)(::windows_core::Interface::as_raw(self), pulcompositecount, pulsvideocount).ok() } } -::windows_core::imp::interface_hierarchy!(IBDA_AutoDemodulateEx, ::windows_core::IUnknown, IBDA_AutoDemodulate); -unsafe impl ::windows_core::Interface for IBDA_AutoDemodulateEx { - type Vtable = IBDA_AutoDemodulateEx_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBDA_AutoDemodulateEx { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x34518d13_1182_48e6_b28f_b24987787326); -} #[repr(C)] #[doc(hidden)] pub struct IBDA_AutoDemodulateEx_Vtbl { @@ -3945,9 +3319,8 @@ pub struct IBDA_AutoDemodulateEx_Vtbl { pub get_SupportedVideoFormats: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pulamtunermodetype: *mut u32, pulanalogvideostandard: *mut u32) -> ::windows_core::HRESULT, pub get_AuxInputCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pulcompositecount: *mut u32, pulsvideocount: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBDA_ConditionalAccess(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBDA_ConditionalAccess, IBDA_ConditionalAccess_Vtbl, 0xcd51f1e0_7be9_4123_8482_a2a796c0a6b0); +::windows_core::imp::interface_hierarchy!(IBDA_ConditionalAccess, ::windows_core::IUnknown); impl IBDA_ConditionalAccess { pub unsafe fn get_SmartCardStatus(&self, pcardstatus: *mut SmartCardStatusType, pcardassociation: *mut SmartCardAssociationType, pbstrcarderror: *mut ::windows_core::BSTR, pfooblocked: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).get_SmartCardStatus)(::windows_core::Interface::as_raw(self), pcardstatus, pcardassociation, ::core::mem::transmute(pbstrcarderror), pfooblocked).ok() @@ -3982,13 +3355,6 @@ impl IBDA_ConditionalAccess { (::windows_core::Interface::vtable(self).InformUIClosed)(::windows_core::Interface::as_raw(self), bydialognumber, closereason).ok() } } -::windows_core::imp::interface_hierarchy!(IBDA_ConditionalAccess, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBDA_ConditionalAccess { - type Vtable = IBDA_ConditionalAccess_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBDA_ConditionalAccess { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcd51f1e0_7be9_4123_8482_a2a796c0a6b0); -} #[repr(C)] #[doc(hidden)] pub struct IBDA_ConditionalAccess_Vtbl { @@ -4004,9 +3370,8 @@ pub struct IBDA_ConditionalAccess_Vtbl { pub GetModuleUI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bydialognumber: u8, pbstrurl: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub InformUIClosed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bydialognumber: u8, closereason: UICloseReasonType) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBDA_ConditionalAccessEx(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBDA_ConditionalAccessEx, IBDA_ConditionalAccessEx_Vtbl, 0x497c3418_23cb_44ba_bb62_769f506fcea7); +::windows_core::imp::interface_hierarchy!(IBDA_ConditionalAccessEx, ::windows_core::IUnknown); impl IBDA_ConditionalAccessEx { pub unsafe fn CheckEntitlementToken(&self, uldialogrequest: u32, bstrlanguage: P0, requesttype: BDA_CONDITIONALACCESS_REQUESTTYPE, pbentitlementtoken: &[u8]) -> ::windows_core::Result where @@ -4036,13 +3401,6 @@ impl IBDA_ConditionalAccessEx { (::windows_core::Interface::vtable(self).CreateDialogRequestNumber)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IBDA_ConditionalAccessEx, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBDA_ConditionalAccessEx { - type Vtable = IBDA_ConditionalAccessEx_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBDA_ConditionalAccessEx { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x497c3418_23cb_44ba_bb62_769f506fcea7); -} #[repr(C)] #[doc(hidden)] pub struct IBDA_ConditionalAccessEx_Vtbl { @@ -4053,9 +3411,8 @@ pub struct IBDA_ConditionalAccessEx_Vtbl { pub CloseMmiDialog: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uldialogrequest: u32, bstrlanguage: ::std::mem::MaybeUninit<::windows_core::BSTR>, uldialognumber: u32, reasoncode: BDA_CONDITIONALACCESS_MMICLOSEREASON, pulsessionresult: *mut u32) -> ::windows_core::HRESULT, pub CreateDialogRequestNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, puldialogrequestnumber: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBDA_DRIDRMService(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBDA_DRIDRMService, IBDA_DRIDRMService_Vtbl, 0x1f9bc2a5_44a3_4c52_aab1_0bbce5a1381d); +::windows_core::imp::interface_hierarchy!(IBDA_DRIDRMService, ::windows_core::IUnknown); impl IBDA_DRIDRMService { pub unsafe fn SetDRM(&self, bstrnewdrm: P0) -> ::windows_core::Result<()> where @@ -4070,13 +3427,6 @@ impl IBDA_DRIDRMService { (::windows_core::Interface::vtable(self).GetPairingStatus)(::windows_core::Interface::as_raw(self), penumpairingstatus).ok() } } -::windows_core::imp::interface_hierarchy!(IBDA_DRIDRMService, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBDA_DRIDRMService { - type Vtable = IBDA_DRIDRMService_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBDA_DRIDRMService { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1f9bc2a5_44a3_4c52_aab1_0bbce5a1381d); -} #[repr(C)] #[doc(hidden)] pub struct IBDA_DRIDRMService_Vtbl { @@ -4085,9 +3435,8 @@ pub struct IBDA_DRIDRMService_Vtbl { pub GetDRMStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdrmuuidlist: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>, drmuuid: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, pub GetPairingStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, penumpairingstatus: *mut BDA_DrmPairingError) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBDA_DRIWMDRMSession(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBDA_DRIWMDRMSession, IBDA_DRIWMDRMSession_Vtbl, 0x05c690f8_56db_4bb2_b053_79c12098bb26); +::windows_core::imp::interface_hierarchy!(IBDA_DRIWMDRMSession, ::windows_core::IUnknown); impl IBDA_DRIWMDRMSession { pub unsafe fn AcknowledgeLicense(&self, hrlicenseack: ::windows_core::HRESULT) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).AcknowledgeLicense)(::windows_core::Interface::as_raw(self), hrlicenseack).ok() @@ -4111,13 +3460,6 @@ impl IBDA_DRIWMDRMSession { (::windows_core::Interface::vtable(self).GetLastCardeaError)(::windows_core::Interface::as_raw(self), pdwerror).ok() } } -::windows_core::imp::interface_hierarchy!(IBDA_DRIWMDRMSession, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBDA_DRIWMDRMSession { - type Vtable = IBDA_DRIWMDRMSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBDA_DRIWMDRMSession { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x05c690f8_56db_4bb2_b053_79c12098bb26); -} #[repr(C)] #[doc(hidden)] pub struct IBDA_DRIWMDRMSession_Vtbl { @@ -4130,9 +3472,8 @@ pub struct IBDA_DRIWMDRMSession_Vtbl { pub GetHMSAssociationData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetLastCardeaError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwerror: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBDA_DRM(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBDA_DRM, IBDA_DRM_Vtbl, 0xf98d88b0_1992_4cd6_a6d9_b9afab99330d); +::windows_core::imp::interface_hierarchy!(IBDA_DRM, ::windows_core::IUnknown); impl IBDA_DRM { pub unsafe fn GetDRMPairingStatus(&self, pdwstatus: *mut u32, pherror: *mut ::windows_core::HRESULT) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetDRMPairingStatus)(::windows_core::Interface::as_raw(self), pdwstatus, pherror).ok() @@ -4144,13 +3485,6 @@ impl IBDA_DRM { (::windows_core::Interface::vtable(self).PerformDRMPairing)(::windows_core::Interface::as_raw(self), fsync.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IBDA_DRM, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBDA_DRM { - type Vtable = IBDA_DRM_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBDA_DRM { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf98d88b0_1992_4cd6_a6d9_b9afab99330d); -} #[repr(C)] #[doc(hidden)] pub struct IBDA_DRM_Vtbl { @@ -4158,9 +3492,8 @@ pub struct IBDA_DRM_Vtbl { pub GetDRMPairingStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwstatus: *mut u32, pherror: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, pub PerformDRMPairing: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fsync: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBDA_DRMService(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBDA_DRMService, IBDA_DRMService_Vtbl, 0xbff6b5bb_b0ae_484c_9dca_73528fb0b46e); +::windows_core::imp::interface_hierarchy!(IBDA_DRMService, ::windows_core::IUnknown); impl IBDA_DRMService { pub unsafe fn SetDRM(&self, puuidnewdrm: *const ::windows_core::GUID) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetDRM)(::windows_core::Interface::as_raw(self), puuidnewdrm).ok() @@ -4169,13 +3502,6 @@ impl IBDA_DRMService { (::windows_core::Interface::vtable(self).GetDRMStatus)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pbstrdrmuuidlist), drmuuid).ok() } } -::windows_core::imp::interface_hierarchy!(IBDA_DRMService, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBDA_DRMService { - type Vtable = IBDA_DRMService_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBDA_DRMService { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbff6b5bb_b0ae_484c_9dca_73528fb0b46e); -} #[repr(C)] #[doc(hidden)] pub struct IBDA_DRMService_Vtbl { @@ -4183,9 +3509,8 @@ pub struct IBDA_DRMService_Vtbl { pub SetDRM: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, puuidnewdrm: *const ::windows_core::GUID) -> ::windows_core::HRESULT, pub GetDRMStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdrmuuidlist: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>, drmuuid: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBDA_DeviceControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBDA_DeviceControl, IBDA_DeviceControl_Vtbl, 0xfd0a5af3_b41d_11d2_9c95_00c04f7971e0); +::windows_core::imp::interface_hierarchy!(IBDA_DeviceControl, ::windows_core::IUnknown); impl IBDA_DeviceControl { pub unsafe fn StartChanges(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).StartChanges)(::windows_core::Interface::as_raw(self)).ok() @@ -4200,13 +3525,6 @@ impl IBDA_DeviceControl { (::windows_core::Interface::vtable(self).GetChangeState)(::windows_core::Interface::as_raw(self), pstate).ok() } } -::windows_core::imp::interface_hierarchy!(IBDA_DeviceControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBDA_DeviceControl { - type Vtable = IBDA_DeviceControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBDA_DeviceControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfd0a5af3_b41d_11d2_9c95_00c04f7971e0); -} #[repr(C)] #[doc(hidden)] pub struct IBDA_DeviceControl_Vtbl { @@ -4216,11 +3534,15 @@ pub struct IBDA_DeviceControl_Vtbl { pub CommitChanges: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetChangeState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstate: *mut u32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`"] #[cfg(feature = "Win32_System_Com_StructuredStorage")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBDA_DiagnosticProperties(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`"] + IBDA_DiagnosticProperties, + IBDA_DiagnosticProperties_Vtbl, + 0x20e80cb5_c543_4c1b_8eb3_49e719eee7d4 +); +#[cfg(feature = "Win32_System_Com_StructuredStorage")] +::windows_core::imp::interface_hierarchy!(IBDA_DiagnosticProperties, ::windows_core::IUnknown, super::super::System::Com::StructuredStorage::IPropertyBag); #[cfg(feature = "Win32_System_Com_StructuredStorage")] impl IBDA_DiagnosticProperties { #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4242,24 +3564,13 @@ impl IBDA_DiagnosticProperties { } } #[cfg(feature = "Win32_System_Com_StructuredStorage")] -::windows_core::imp::interface_hierarchy!(IBDA_DiagnosticProperties, ::windows_core::IUnknown, super::super::System::Com::StructuredStorage::IPropertyBag); -#[cfg(feature = "Win32_System_Com_StructuredStorage")] -unsafe impl ::windows_core::Interface for IBDA_DiagnosticProperties { - type Vtable = IBDA_DiagnosticProperties_Vtbl; -} -#[cfg(feature = "Win32_System_Com_StructuredStorage")] -unsafe impl ::windows_core::ComInterface for IBDA_DiagnosticProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x20e80cb5_c543_4c1b_8eb3_49e719eee7d4); -} -#[cfg(feature = "Win32_System_Com_StructuredStorage")] #[repr(C)] #[doc(hidden)] pub struct IBDA_DiagnosticProperties_Vtbl { pub base__: super::super::System::Com::StructuredStorage::IPropertyBag_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBDA_DigitalDemodulator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBDA_DigitalDemodulator, IBDA_DigitalDemodulator_Vtbl, 0xef30f379_985b_4d10_b640_a79d5e04e1e0); +::windows_core::imp::interface_hierarchy!(IBDA_DigitalDemodulator, ::windows_core::IUnknown); impl IBDA_DigitalDemodulator { pub unsafe fn SetModulationType(&self, pmodulationtype: *const ModulationType) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetModulationType)(::windows_core::Interface::as_raw(self), pmodulationtype).ok() @@ -4304,13 +3615,6 @@ impl IBDA_DigitalDemodulator { (::windows_core::Interface::vtable(self).SpectralInversion)(::windows_core::Interface::as_raw(self), pspectralinversion).ok() } } -::windows_core::imp::interface_hierarchy!(IBDA_DigitalDemodulator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBDA_DigitalDemodulator { - type Vtable = IBDA_DigitalDemodulator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBDA_DigitalDemodulator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xef30f379_985b_4d10_b640_a79d5e04e1e0); -} #[repr(C)] #[doc(hidden)] pub struct IBDA_DigitalDemodulator_Vtbl { @@ -4330,9 +3634,8 @@ pub struct IBDA_DigitalDemodulator_Vtbl { pub SetSpectralInversion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pspectralinversion: *const SpectralInversion) -> ::windows_core::HRESULT, pub SpectralInversion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pspectralinversion: *mut SpectralInversion) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBDA_DigitalDemodulator2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBDA_DigitalDemodulator2, IBDA_DigitalDemodulator2_Vtbl, 0x525ed3ee_5cf3_4e1e_9a06_5368a84f9a6e); +::windows_core::imp::interface_hierarchy!(IBDA_DigitalDemodulator2, ::windows_core::IUnknown, IBDA_DigitalDemodulator); impl IBDA_DigitalDemodulator2 { pub unsafe fn SetModulationType(&self, pmodulationtype: *const ModulationType) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.SetModulationType)(::windows_core::Interface::as_raw(self), pmodulationtype).ok() @@ -4401,13 +3704,6 @@ impl IBDA_DigitalDemodulator2 { (::windows_core::Interface::vtable(self).Pilot)(::windows_core::Interface::as_raw(self), ppilot).ok() } } -::windows_core::imp::interface_hierarchy!(IBDA_DigitalDemodulator2, ::windows_core::IUnknown, IBDA_DigitalDemodulator); -unsafe impl ::windows_core::Interface for IBDA_DigitalDemodulator2 { - type Vtable = IBDA_DigitalDemodulator2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBDA_DigitalDemodulator2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x525ed3ee_5cf3_4e1e_9a06_5368a84f9a6e); -} #[repr(C)] #[doc(hidden)] pub struct IBDA_DigitalDemodulator2_Vtbl { @@ -4421,9 +3717,8 @@ pub struct IBDA_DigitalDemodulator2_Vtbl { pub SetPilot: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppilot: *const Pilot) -> ::windows_core::HRESULT, pub Pilot: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppilot: *mut Pilot) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBDA_DigitalDemodulator3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBDA_DigitalDemodulator3, IBDA_DigitalDemodulator3_Vtbl, 0x13f19604_7d32_4359_93a2_a05205d90ac9); +::windows_core::imp::interface_hierarchy!(IBDA_DigitalDemodulator3, ::windows_core::IUnknown, IBDA_DigitalDemodulator, IBDA_DigitalDemodulator2); impl IBDA_DigitalDemodulator3 { pub unsafe fn SetModulationType(&self, pmodulationtype: *const ModulationType) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.SetModulationType)(::windows_core::Interface::as_raw(self), pmodulationtype).ok() @@ -4504,13 +3799,6 @@ impl IBDA_DigitalDemodulator3 { (::windows_core::Interface::vtable(self).PLPNumber)(::windows_core::Interface::as_raw(self), pplpnumber).ok() } } -::windows_core::imp::interface_hierarchy!(IBDA_DigitalDemodulator3, ::windows_core::IUnknown, IBDA_DigitalDemodulator, IBDA_DigitalDemodulator2); -unsafe impl ::windows_core::Interface for IBDA_DigitalDemodulator3 { - type Vtable = IBDA_DigitalDemodulator3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBDA_DigitalDemodulator3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x13f19604_7d32_4359_93a2_a05205d90ac9); -} #[repr(C)] #[doc(hidden)] pub struct IBDA_DigitalDemodulator3_Vtbl { @@ -4520,9 +3808,8 @@ pub struct IBDA_DigitalDemodulator3_Vtbl { pub SetPLPNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pplpnumber: *const u32) -> ::windows_core::HRESULT, pub PLPNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pplpnumber: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBDA_DiseqCommand(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBDA_DiseqCommand, IBDA_DiseqCommand_Vtbl, 0xf84e2ab0_3c6b_45e3_a0fc_8669d4b81f11); +::windows_core::imp::interface_hierarchy!(IBDA_DiseqCommand, ::windows_core::IUnknown); impl IBDA_DiseqCommand { pub unsafe fn SetEnableDiseqCommands(&self, benable: P0) -> ::windows_core::Result<()> where @@ -4549,13 +3836,6 @@ impl IBDA_DiseqCommand { (::windows_core::Interface::vtable(self).get_DiseqResponse)(::windows_core::Interface::as_raw(self), ulrequestid, pulcbresponselen, pbresponse).ok() } } -::windows_core::imp::interface_hierarchy!(IBDA_DiseqCommand, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBDA_DiseqCommand { - type Vtable = IBDA_DiseqCommand_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBDA_DiseqCommand { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf84e2ab0_3c6b_45e3_a0fc_8669d4b81f11); -} #[repr(C)] #[doc(hidden)] pub struct IBDA_DiseqCommand_Vtbl { @@ -4567,30 +3847,21 @@ pub struct IBDA_DiseqCommand_Vtbl { pub put_DiseqSendCommand: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulrequestid: u32, ulcbcommandlen: u32, pbcommand: *const u8) -> ::windows_core::HRESULT, pub get_DiseqResponse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulrequestid: u32, pulcbresponselen: *mut u32, pbresponse: *mut u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBDA_EasMessage(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBDA_EasMessage, IBDA_EasMessage_Vtbl, 0xd806973d_3ebe_46de_8fbb_6358fe784208); +::windows_core::imp::interface_hierarchy!(IBDA_EasMessage, ::windows_core::IUnknown); impl IBDA_EasMessage { pub unsafe fn get_EasMessage(&self, uleventid: u32, ppeasobject: *mut ::core::option::Option<::windows_core::IUnknown>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).get_EasMessage)(::windows_core::Interface::as_raw(self), uleventid, ::core::mem::transmute(ppeasobject)).ok() } } -::windows_core::imp::interface_hierarchy!(IBDA_EasMessage, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBDA_EasMessage { - type Vtable = IBDA_EasMessage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBDA_EasMessage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd806973d_3ebe_46de_8fbb_6358fe784208); -} #[repr(C)] #[doc(hidden)] pub struct IBDA_EasMessage_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub get_EasMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uleventid: u32, ppeasobject: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBDA_Encoder(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBDA_Encoder, IBDA_Encoder_Vtbl, 0x3a8bad59_59fe_4559_a0ba_396cfaa98ae3); +::windows_core::imp::interface_hierarchy!(IBDA_Encoder, ::windows_core::IUnknown); impl IBDA_Encoder { pub unsafe fn QueryCapabilities(&self, numaudiofmts: *mut u32, numvideofmts: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).QueryCapabilities)(::windows_core::Interface::as_raw(self), numaudiofmts, numvideofmts).ok() @@ -4608,13 +3879,6 @@ impl IBDA_Encoder { (::windows_core::Interface::vtable(self).GetState)(::windows_core::Interface::as_raw(self), audiobitratemax, audiobitratemin, audiobitratemode, audiobitratestepping, audiobitrate, audiomethodid, availableaudioprograms, audioprogram, videobitratemax, videobitratemin, videobitratemode, videobitrate, videobitratestepping, videomethodid, signalsourceid, signalformat, signallock, signallevel, signaltonoiseratio).ok() } } -::windows_core::imp::interface_hierarchy!(IBDA_Encoder, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBDA_Encoder { - type Vtable = IBDA_Encoder_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBDA_Encoder { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3a8bad59_59fe_4559_a0ba_396cfaa98ae3); -} #[repr(C)] #[doc(hidden)] pub struct IBDA_Encoder_Vtbl { @@ -4625,9 +3889,8 @@ pub struct IBDA_Encoder_Vtbl { pub SetParameters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, audiobitratemode: u32, audiobitrate: u32, audiomethodid: u32, audioprogram: u32, videobitratemode: u32, videobitrate: u32, videomethodid: u32) -> ::windows_core::HRESULT, pub GetState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, audiobitratemax: *mut u32, audiobitratemin: *mut u32, audiobitratemode: *mut u32, audiobitratestepping: *mut u32, audiobitrate: *mut u32, audiomethodid: *mut u32, availableaudioprograms: *mut u32, audioprogram: *mut u32, videobitratemax: *mut u32, videobitratemin: *mut u32, videobitratemode: *mut u32, videobitrate: *mut u32, videobitratestepping: *mut u32, videomethodid: *mut u32, signalsourceid: *mut u32, signalformat: *mut u64, signallock: *mut super::super::Foundation::BOOL, signallevel: *mut i32, signaltonoiseratio: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBDA_EthernetFilter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBDA_EthernetFilter, IBDA_EthernetFilter_Vtbl, 0x71985f43_1ca1_11d3_9cc8_00c04f7971e0); +::windows_core::imp::interface_hierarchy!(IBDA_EthernetFilter, ::windows_core::IUnknown); impl IBDA_EthernetFilter { pub unsafe fn GetMulticastListSize(&self, pulcbaddresses: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetMulticastListSize)(::windows_core::Interface::as_raw(self), pulcbaddresses).ok() @@ -4646,13 +3909,6 @@ impl IBDA_EthernetFilter { (::windows_core::Interface::vtable(self).GetMulticastMode)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IBDA_EthernetFilter, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBDA_EthernetFilter { - type Vtable = IBDA_EthernetFilter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBDA_EthernetFilter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x71985f43_1ca1_11d3_9cc8_00c04f7971e0); -} #[repr(C)] #[doc(hidden)] pub struct IBDA_EthernetFilter_Vtbl { @@ -4663,30 +3919,21 @@ pub struct IBDA_EthernetFilter_Vtbl { pub PutMulticastMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulmodemask: u32) -> ::windows_core::HRESULT, pub GetMulticastMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pulmodemask: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBDA_EventingService(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBDA_EventingService, IBDA_EventingService_Vtbl, 0x207c413f_00dc_4c61_bad6_6fee1ff07064); +::windows_core::imp::interface_hierarchy!(IBDA_EventingService, ::windows_core::IUnknown); impl IBDA_EventingService { pub unsafe fn CompleteEvent(&self, uleventid: u32, uleventresult: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).CompleteEvent)(::windows_core::Interface::as_raw(self), uleventid, uleventresult).ok() } } -::windows_core::imp::interface_hierarchy!(IBDA_EventingService, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBDA_EventingService { - type Vtable = IBDA_EventingService_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBDA_EventingService { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x207c413f_00dc_4c61_bad6_6fee1ff07064); -} #[repr(C)] #[doc(hidden)] pub struct IBDA_EventingService_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub CompleteEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uleventid: u32, uleventresult: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBDA_FDC(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBDA_FDC, IBDA_FDC_Vtbl, 0x138adc7e_58ae_437f_b0b4_c9fe19d5b4ac); +::windows_core::imp::interface_hierarchy!(IBDA_FDC, ::windows_core::IUnknown); impl IBDA_FDC { pub unsafe fn GetStatus(&self, currentbitrate: *mut u32, carrierlock: *mut super::super::Foundation::BOOL, currentfrequency: *mut u32, currentspectruminversion: *mut super::super::Foundation::BOOL, currentpidlist: *mut ::windows_core::BSTR, currenttidlist: *mut ::windows_core::BSTR, overflow: *mut super::super::Foundation::BOOL) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetStatus)(::windows_core::Interface::as_raw(self), currentbitrate, carrierlock, currentfrequency, currentspectruminversion, ::core::mem::transmute(currentpidlist), ::core::mem::transmute(currenttidlist), overflow).ok() @@ -4727,13 +3974,6 @@ impl IBDA_FDC { (::windows_core::Interface::vtable(self).GetTableSection)(::windows_core::Interface::as_raw(self), pid, maxbuffersize, actualsize, secbuffer).ok() } } -::windows_core::imp::interface_hierarchy!(IBDA_FDC, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBDA_FDC { - type Vtable = IBDA_FDC_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBDA_FDC { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x138adc7e_58ae_437f_b0b4_c9fe19d5b4ac); -} #[repr(C)] #[doc(hidden)] pub struct IBDA_FDC_Vtbl { @@ -4746,9 +3986,8 @@ pub struct IBDA_FDC_Vtbl { pub RemoveTid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, tidstoremove: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub GetTableSection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pid: *mut u32, maxbuffersize: u32, actualsize: *mut u32, secbuffer: *mut u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBDA_FrequencyFilter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBDA_FrequencyFilter, IBDA_FrequencyFilter_Vtbl, 0x71985f47_1ca1_11d3_9cc8_00c04f7971e0); +::windows_core::imp::interface_hierarchy!(IBDA_FrequencyFilter, ::windows_core::IUnknown); impl IBDA_FrequencyFilter { pub unsafe fn SetAutotune(&self, ultransponder: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetAutotune)(::windows_core::Interface::as_raw(self), ultransponder).ok() @@ -4787,13 +4026,6 @@ impl IBDA_FrequencyFilter { (::windows_core::Interface::vtable(self).FrequencyMultiplier)(::windows_core::Interface::as_raw(self), pulmultiplier).ok() } } -::windows_core::imp::interface_hierarchy!(IBDA_FrequencyFilter, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBDA_FrequencyFilter { - type Vtable = IBDA_FrequencyFilter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBDA_FrequencyFilter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x71985f47_1ca1_11d3_9cc8_00c04f7971e0); -} #[repr(C)] #[doc(hidden)] pub struct IBDA_FrequencyFilter_Vtbl { @@ -4811,9 +4043,8 @@ pub struct IBDA_FrequencyFilter_Vtbl { pub SetFrequencyMultiplier: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulmultiplier: u32) -> ::windows_core::HRESULT, pub FrequencyMultiplier: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pulmultiplier: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBDA_GuideDataDeliveryService(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBDA_GuideDataDeliveryService, IBDA_GuideDataDeliveryService_Vtbl, 0xc0afcb73_23e7_4bc6_bafa_fdc167b4719f); +::windows_core::imp::interface_hierarchy!(IBDA_GuideDataDeliveryService, ::windows_core::IUnknown); impl IBDA_GuideDataDeliveryService { pub unsafe fn GetGuideDataType(&self) -> ::windows_core::Result<::windows_core::GUID> { let mut result__ = ::std::mem::zeroed(); @@ -4840,13 +4071,6 @@ impl IBDA_GuideDataDeliveryService { (::windows_core::Interface::vtable(self).GetServiceInfoFromTuneXml)(::windows_core::Interface::as_raw(self), bstrtunexml.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IBDA_GuideDataDeliveryService, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBDA_GuideDataDeliveryService { - type Vtable = IBDA_GuideDataDeliveryService_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBDA_GuideDataDeliveryService { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc0afcb73_23e7_4bc6_bafa_fdc167b4719f); -} #[repr(C)] #[doc(hidden)] pub struct IBDA_GuideDataDeliveryService_Vtbl { @@ -4858,23 +4082,15 @@ pub struct IBDA_GuideDataDeliveryService_Vtbl { pub GetServices: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pulcbbufferlen: *mut u32, pbbuffer: *mut u8) -> ::windows_core::HRESULT, pub GetServiceInfoFromTuneXml: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtunexml: ::std::mem::MaybeUninit<::windows_core::BSTR>, pbstrservicedescription: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBDA_IPSinkControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBDA_IPSinkControl, IBDA_IPSinkControl_Vtbl, 0x3f4dc8e2_4050_11d3_8f4b_00c04f7971e2); +::windows_core::imp::interface_hierarchy!(IBDA_IPSinkControl, ::windows_core::IUnknown); impl IBDA_IPSinkControl { pub unsafe fn GetMulticastList(&self, pulcbsize: *mut u32, pbbuffer: *mut *mut u8) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetMulticastList)(::windows_core::Interface::as_raw(self), pulcbsize, pbbuffer).ok() } pub unsafe fn GetAdapterIPAddress(&self, pulcbsize: *mut u32, pbbuffer: *mut *mut u8) -> ::windows_core::Result<()> { - (::windows_core::Interface::vtable(self).GetAdapterIPAddress)(::windows_core::Interface::as_raw(self), pulcbsize, pbbuffer).ok() - } -} -::windows_core::imp::interface_hierarchy!(IBDA_IPSinkControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBDA_IPSinkControl { - type Vtable = IBDA_IPSinkControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBDA_IPSinkControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3f4dc8e2_4050_11d3_8f4b_00c04f7971e2); + (::windows_core::Interface::vtable(self).GetAdapterIPAddress)(::windows_core::Interface::as_raw(self), pulcbsize, pbbuffer).ok() + } } #[repr(C)] #[doc(hidden)] @@ -4883,9 +4099,8 @@ pub struct IBDA_IPSinkControl_Vtbl { pub GetMulticastList: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pulcbsize: *mut u32, pbbuffer: *mut *mut u8) -> ::windows_core::HRESULT, pub GetAdapterIPAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pulcbsize: *mut u32, pbbuffer: *mut *mut u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBDA_IPSinkInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBDA_IPSinkInfo, IBDA_IPSinkInfo_Vtbl, 0xa750108f_492e_4d51_95f7_649b23ff7ad7); +::windows_core::imp::interface_hierarchy!(IBDA_IPSinkInfo, ::windows_core::IUnknown); impl IBDA_IPSinkInfo { pub unsafe fn get_MulticastList(&self, pulcbaddresses: *mut u32, ppbaddresslist: *mut *mut u8) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).get_MulticastList)(::windows_core::Interface::as_raw(self), pulcbaddresses, ppbaddresslist).ok() @@ -4899,13 +4114,6 @@ impl IBDA_IPSinkInfo { (::windows_core::Interface::vtable(self).AdapterDescription)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IBDA_IPSinkInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBDA_IPSinkInfo { - type Vtable = IBDA_IPSinkInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBDA_IPSinkInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa750108f_492e_4d51_95f7_649b23ff7ad7); -} #[repr(C)] #[doc(hidden)] pub struct IBDA_IPSinkInfo_Vtbl { @@ -4914,9 +4122,8 @@ pub struct IBDA_IPSinkInfo_Vtbl { pub AdapterIPAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrbuffer: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub AdapterDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrbuffer: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBDA_IPV4Filter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBDA_IPV4Filter, IBDA_IPV4Filter_Vtbl, 0x71985f44_1ca1_11d3_9cc8_00c04f7971e0); +::windows_core::imp::interface_hierarchy!(IBDA_IPV4Filter, ::windows_core::IUnknown); impl IBDA_IPV4Filter { pub unsafe fn GetMulticastListSize(&self, pulcbaddresses: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetMulticastListSize)(::windows_core::Interface::as_raw(self), pulcbaddresses).ok() @@ -4935,13 +4142,6 @@ impl IBDA_IPV4Filter { (::windows_core::Interface::vtable(self).GetMulticastMode)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IBDA_IPV4Filter, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBDA_IPV4Filter { - type Vtable = IBDA_IPV4Filter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBDA_IPV4Filter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x71985f44_1ca1_11d3_9cc8_00c04f7971e0); -} #[repr(C)] #[doc(hidden)] pub struct IBDA_IPV4Filter_Vtbl { @@ -4952,9 +4152,8 @@ pub struct IBDA_IPV4Filter_Vtbl { pub PutMulticastMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulmodemask: u32) -> ::windows_core::HRESULT, pub GetMulticastMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pulmodemask: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBDA_IPV6Filter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBDA_IPV6Filter, IBDA_IPV6Filter_Vtbl, 0xe1785a74_2a23_4fb3_9245_a8f88017ef33); +::windows_core::imp::interface_hierarchy!(IBDA_IPV6Filter, ::windows_core::IUnknown); impl IBDA_IPV6Filter { pub unsafe fn GetMulticastListSize(&self, pulcbaddresses: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetMulticastListSize)(::windows_core::Interface::as_raw(self), pulcbaddresses).ok() @@ -4973,13 +4172,6 @@ impl IBDA_IPV6Filter { (::windows_core::Interface::vtable(self).GetMulticastMode)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IBDA_IPV6Filter, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBDA_IPV6Filter { - type Vtable = IBDA_IPV6Filter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBDA_IPV6Filter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe1785a74_2a23_4fb3_9245_a8f88017ef33); -} #[repr(C)] #[doc(hidden)] pub struct IBDA_IPV6Filter_Vtbl { @@ -4990,30 +4182,21 @@ pub struct IBDA_IPV6Filter_Vtbl { pub PutMulticastMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulmodemask: u32) -> ::windows_core::HRESULT, pub GetMulticastMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pulmodemask: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBDA_ISDBConditionalAccess(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBDA_ISDBConditionalAccess, IBDA_ISDBConditionalAccess_Vtbl, 0x5e68c627_16c2_4e6c_b1e2_d00170cdaa0f); +::windows_core::imp::interface_hierarchy!(IBDA_ISDBConditionalAccess, ::windows_core::IUnknown); impl IBDA_ISDBConditionalAccess { pub unsafe fn SetIsdbCasRequest(&self, ulrequestid: u32, pbrequestbuffer: &[u8]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetIsdbCasRequest)(::windows_core::Interface::as_raw(self), ulrequestid, pbrequestbuffer.len().try_into().unwrap(), ::core::mem::transmute(pbrequestbuffer.as_ptr())).ok() } } -::windows_core::imp::interface_hierarchy!(IBDA_ISDBConditionalAccess, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBDA_ISDBConditionalAccess { - type Vtable = IBDA_ISDBConditionalAccess_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBDA_ISDBConditionalAccess { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5e68c627_16c2_4e6c_b1e2_d00170cdaa0f); -} #[repr(C)] #[doc(hidden)] pub struct IBDA_ISDBConditionalAccess_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub SetIsdbCasRequest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulrequestid: u32, ulcbrequestbufferlen: u32, pbrequestbuffer: *const u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBDA_LNBInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBDA_LNBInfo, IBDA_LNBInfo_Vtbl, 0x992cf102_49f9_4719_a664_c4f23e2408f4); +::windows_core::imp::interface_hierarchy!(IBDA_LNBInfo, ::windows_core::IUnknown); impl IBDA_LNBInfo { pub unsafe fn SetLocalOscilatorFrequencyLowBand(&self, ulloflow: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetLocalOscilatorFrequencyLowBand)(::windows_core::Interface::as_raw(self), ulloflow).ok() @@ -5034,13 +4217,6 @@ impl IBDA_LNBInfo { (::windows_core::Interface::vtable(self).HighLowSwitchFrequency)(::windows_core::Interface::as_raw(self), pulswitchfrequency).ok() } } -::windows_core::imp::interface_hierarchy!(IBDA_LNBInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBDA_LNBInfo { - type Vtable = IBDA_LNBInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBDA_LNBInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x992cf102_49f9_4719_a664_c4f23e2408f4); -} #[repr(C)] #[doc(hidden)] pub struct IBDA_LNBInfo_Vtbl { @@ -5052,9 +4228,8 @@ pub struct IBDA_LNBInfo_Vtbl { pub SetHighLowSwitchFrequency: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulswitchfrequency: u32) -> ::windows_core::HRESULT, pub HighLowSwitchFrequency: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pulswitchfrequency: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBDA_MUX(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBDA_MUX, IBDA_MUX_Vtbl, 0x942aafec_4c05_4c74_b8eb_8706c2a4943f); +::windows_core::imp::interface_hierarchy!(IBDA_MUX, ::windows_core::IUnknown); impl IBDA_MUX { pub unsafe fn SetPidList(&self, pbpidlistbuffer: &[BDA_MUX_PIDLISTITEM]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetPidList)(::windows_core::Interface::as_raw(self), pbpidlistbuffer.len().try_into().unwrap(), ::core::mem::transmute(pbpidlistbuffer.as_ptr())).ok() @@ -5063,13 +4238,6 @@ impl IBDA_MUX { (::windows_core::Interface::vtable(self).GetPidList)(::windows_core::Interface::as_raw(self), pulpidlistcount, pbpidlistbuffer).ok() } } -::windows_core::imp::interface_hierarchy!(IBDA_MUX, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBDA_MUX { - type Vtable = IBDA_MUX_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBDA_MUX { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x942aafec_4c05_4c74_b8eb_8706c2a4943f); -} #[repr(C)] #[doc(hidden)] pub struct IBDA_MUX_Vtbl { @@ -5077,9 +4245,8 @@ pub struct IBDA_MUX_Vtbl { pub SetPidList: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulpidlistcount: u32, pbpidlistbuffer: *const BDA_MUX_PIDLISTITEM) -> ::windows_core::HRESULT, pub GetPidList: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pulpidlistcount: *mut u32, pbpidlistbuffer: *mut BDA_MUX_PIDLISTITEM) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBDA_NameValueService(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBDA_NameValueService, IBDA_NameValueService_Vtbl, 0x7f0b3150_7b81_4ad4_98e3_7e9097094301); +::windows_core::imp::interface_hierarchy!(IBDA_NameValueService, ::windows_core::IUnknown); impl IBDA_NameValueService { pub unsafe fn GetValueNameByIndex(&self, ulindex: u32) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -5102,13 +4269,6 @@ impl IBDA_NameValueService { (::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::imp::interface_hierarchy!(IBDA_NameValueService, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBDA_NameValueService { - type Vtable = IBDA_NameValueService_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBDA_NameValueService { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7f0b3150_7b81_4ad4_98e3_7e9097094301); -} #[repr(C)] #[doc(hidden)] pub struct IBDA_NameValueService_Vtbl { @@ -5117,9 +4277,8 @@ pub struct IBDA_NameValueService_Vtbl { pub GetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstrlanguage: ::std::mem::MaybeUninit<::windows_core::BSTR>, pbstrvalue: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uldialogrequest: u32, bstrlanguage: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstrname: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstrvalue: ::std::mem::MaybeUninit<::windows_core::BSTR>, ulreserved: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBDA_NetworkProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBDA_NetworkProvider, IBDA_NetworkProvider_Vtbl, 0xfd501041_8ebe_11ce_8183_00aa00577da2); +::windows_core::imp::interface_hierarchy!(IBDA_NetworkProvider, ::windows_core::IUnknown); impl IBDA_NetworkProvider { pub unsafe fn PutSignalSource(&self, ulsignalsource: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).PutSignalSource)(::windows_core::Interface::as_raw(self), ulsignalsource).ok() @@ -5146,13 +4305,6 @@ impl IBDA_NetworkProvider { (::windows_core::Interface::vtable(self).UnRegisterDeviceFilter)(::windows_core::Interface::as_raw(self), pvregistrationcontext).ok() } } -::windows_core::imp::interface_hierarchy!(IBDA_NetworkProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBDA_NetworkProvider { - type Vtable = IBDA_NetworkProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBDA_NetworkProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfd501041_8ebe_11ce_8183_00aa00577da2); -} #[repr(C)] #[doc(hidden)] pub struct IBDA_NetworkProvider_Vtbl { @@ -5165,9 +4317,8 @@ pub struct IBDA_NetworkProvider_Vtbl { pub RegisterDeviceFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punkfiltercontrol: *mut ::core::ffi::c_void, ppvregisitrationcontext: *mut u32) -> ::windows_core::HRESULT, pub UnRegisterDeviceFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvregistrationcontext: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBDA_NullTransform(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBDA_NullTransform, IBDA_NullTransform_Vtbl, 0xddf15b0d_bd25_11d2_9ca0_00c04f7971e0); +::windows_core::imp::interface_hierarchy!(IBDA_NullTransform, ::windows_core::IUnknown); impl IBDA_NullTransform { pub unsafe fn Start(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Start)(::windows_core::Interface::as_raw(self)).ok() @@ -5176,13 +4327,6 @@ impl IBDA_NullTransform { (::windows_core::Interface::vtable(self).Stop)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IBDA_NullTransform, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBDA_NullTransform { - type Vtable = IBDA_NullTransform_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBDA_NullTransform { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xddf15b0d_bd25_11d2_9ca0_00c04f7971e0); -} #[repr(C)] #[doc(hidden)] pub struct IBDA_NullTransform_Vtbl { @@ -5190,9 +4334,8 @@ pub struct IBDA_NullTransform_Vtbl { pub Start: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Stop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBDA_PinControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBDA_PinControl, IBDA_PinControl_Vtbl, 0x0ded49d5_a8b7_4d5d_97a1_12b0c195874d); +::windows_core::imp::interface_hierarchy!(IBDA_PinControl, ::windows_core::IUnknown); impl IBDA_PinControl { pub unsafe fn GetPinID(&self, pulpinid: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetPinID)(::windows_core::Interface::as_raw(self), pulpinid).ok() @@ -5204,13 +4347,6 @@ impl IBDA_PinControl { (::windows_core::Interface::vtable(self).RegistrationContext)(::windows_core::Interface::as_raw(self), pulregistrationctx).ok() } } -::windows_core::imp::interface_hierarchy!(IBDA_PinControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBDA_PinControl { - type Vtable = IBDA_PinControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBDA_PinControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0ded49d5_a8b7_4d5d_97a1_12b0c195874d); -} #[repr(C)] #[doc(hidden)] pub struct IBDA_PinControl_Vtbl { @@ -5219,9 +4355,8 @@ pub struct IBDA_PinControl_Vtbl { pub GetPinType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pulpintype: *mut u32) -> ::windows_core::HRESULT, pub RegistrationContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pulregistrationctx: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBDA_SignalProperties(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBDA_SignalProperties, IBDA_SignalProperties_Vtbl, 0xd2f1644b_b409_11d2_bc69_00a0c9ee9e16); +::windows_core::imp::interface_hierarchy!(IBDA_SignalProperties, ::windows_core::IUnknown); impl IBDA_SignalProperties { pub unsafe fn PutNetworkType(&self, guidnetworktype: *const ::windows_core::GUID) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).PutNetworkType)(::windows_core::Interface::as_raw(self), guidnetworktype).ok() @@ -5242,13 +4377,6 @@ impl IBDA_SignalProperties { (::windows_core::Interface::vtable(self).GetTuningSpace)(::windows_core::Interface::as_raw(self), pguidtuingspace).ok() } } -::windows_core::imp::interface_hierarchy!(IBDA_SignalProperties, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBDA_SignalProperties { - type Vtable = IBDA_SignalProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBDA_SignalProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd2f1644b_b409_11d2_bc69_00a0c9ee9e16); -} #[repr(C)] #[doc(hidden)] pub struct IBDA_SignalProperties_Vtbl { @@ -5260,9 +4388,8 @@ pub struct IBDA_SignalProperties_Vtbl { pub PutTuningSpace: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guidtuningspace: *const ::windows_core::GUID) -> ::windows_core::HRESULT, pub GetTuningSpace: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pguidtuingspace: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBDA_SignalStatistics(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBDA_SignalStatistics, IBDA_SignalStatistics_Vtbl, 0x1347d106_cf3a_428a_a5cb_ac0d9a2a4338); +::windows_core::imp::interface_hierarchy!(IBDA_SignalStatistics, ::windows_core::IUnknown); impl IBDA_SignalStatistics { pub unsafe fn SetSignalStrength(&self, ldbstrength: i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetSignalStrength)(::windows_core::Interface::as_raw(self), ldbstrength).ok() @@ -5301,13 +4428,6 @@ impl IBDA_SignalStatistics { (::windows_core::Interface::vtable(self).SampleTime)(::windows_core::Interface::as_raw(self), plmssampletime).ok() } } -::windows_core::imp::interface_hierarchy!(IBDA_SignalStatistics, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBDA_SignalStatistics { - type Vtable = IBDA_SignalStatistics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBDA_SignalStatistics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1347d106_cf3a_428a_a5cb_ac0d9a2a4338); -} #[repr(C)] #[doc(hidden)] pub struct IBDA_SignalStatistics_Vtbl { @@ -5323,9 +4443,8 @@ pub struct IBDA_SignalStatistics_Vtbl { pub SetSampleTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lmssampletime: i32) -> ::windows_core::HRESULT, pub SampleTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plmssampletime: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBDA_Topology(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBDA_Topology, IBDA_Topology_Vtbl, 0x79b56888_7fea_4690_b45d_38fd3c7849be); +::windows_core::imp::interface_hierarchy!(IBDA_Topology, ::windows_core::IUnknown); impl IBDA_Topology { pub unsafe fn GetNodeTypes(&self, pulcnodetypes: *mut u32, rgulnodetypes: &mut [u32]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetNodeTypes)(::windows_core::Interface::as_raw(self), pulcnodetypes, rgulnodetypes.len().try_into().unwrap(), ::core::mem::transmute(rgulnodetypes.as_ptr())).ok() @@ -5363,13 +4482,6 @@ impl IBDA_Topology { (::windows_core::Interface::vtable(self).GetControlNode)(::windows_core::Interface::as_raw(self), ulinputpinid, uloutputpinid, ulnodetype, ::core::mem::transmute(ppcontrolnode)).ok() } } -::windows_core::imp::interface_hierarchy!(IBDA_Topology, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBDA_Topology { - type Vtable = IBDA_Topology_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBDA_Topology { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x79b56888_7fea_4690_b45d_38fd3c7849be); -} #[repr(C)] #[doc(hidden)] pub struct IBDA_Topology_Vtbl { @@ -5389,31 +4501,22 @@ pub struct IBDA_Topology_Vtbl { pub CreateTopology: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulinputpinid: u32, uloutputpinid: u32) -> ::windows_core::HRESULT, pub GetControlNode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulinputpinid: u32, uloutputpinid: u32, ulnodetype: u32, ppcontrolnode: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBDA_TransportStreamInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBDA_TransportStreamInfo, IBDA_TransportStreamInfo_Vtbl, 0x8e882535_5f86_47ab_86cf_c281a72a0549); +::windows_core::imp::interface_hierarchy!(IBDA_TransportStreamInfo, ::windows_core::IUnknown); impl IBDA_TransportStreamInfo { pub unsafe fn PatTableTickCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).PatTableTickCount)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IBDA_TransportStreamInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBDA_TransportStreamInfo { - type Vtable = IBDA_TransportStreamInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBDA_TransportStreamInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8e882535_5f86_47ab_86cf_c281a72a0549); -} #[repr(C)] #[doc(hidden)] pub struct IBDA_TransportStreamInfo_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub PatTableTickCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppattickcount: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBDA_TransportStreamSelector(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBDA_TransportStreamSelector, IBDA_TransportStreamSelector_Vtbl, 0x1dcfafe9_b45e_41b3_bb2a_561eb129ae98); +::windows_core::imp::interface_hierarchy!(IBDA_TransportStreamSelector, ::windows_core::IUnknown); impl IBDA_TransportStreamSelector { pub unsafe fn SetTSID(&self, ustsid: u16) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetTSID)(::windows_core::Interface::as_raw(self), ustsid).ok() @@ -5422,13 +4525,6 @@ impl IBDA_TransportStreamSelector { (::windows_core::Interface::vtable(self).GetTSInformation)(::windows_core::Interface::as_raw(self), pultsinformationbufferlen, pbtsinformationbuffer).ok() } } -::windows_core::imp::interface_hierarchy!(IBDA_TransportStreamSelector, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBDA_TransportStreamSelector { - type Vtable = IBDA_TransportStreamSelector_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBDA_TransportStreamSelector { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1dcfafe9_b45e_41b3_bb2a_561eb129ae98); -} #[repr(C)] #[doc(hidden)] pub struct IBDA_TransportStreamSelector_Vtbl { @@ -5436,9 +4532,8 @@ pub struct IBDA_TransportStreamSelector_Vtbl { pub SetTSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ustsid: u16) -> ::windows_core::HRESULT, pub GetTSInformation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pultsinformationbufferlen: *mut u32, pbtsinformationbuffer: *mut u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBDA_UserActivityService(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBDA_UserActivityService, IBDA_UserActivityService_Vtbl, 0x53b14189_e478_4b7a_a1ff_506db4b99dfe); +::windows_core::imp::interface_hierarchy!(IBDA_UserActivityService, ::windows_core::IUnknown); impl IBDA_UserActivityService { pub unsafe fn SetCurrentTunerUseReason(&self, dwusereason: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetCurrentTunerUseReason)(::windows_core::Interface::as_raw(self), dwusereason).ok() @@ -5451,13 +4546,6 @@ impl IBDA_UserActivityService { (::windows_core::Interface::vtable(self).UserActivityDetected)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IBDA_UserActivityService, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBDA_UserActivityService { - type Vtable = IBDA_UserActivityService_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBDA_UserActivityService { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x53b14189_e478_4b7a_a1ff_506db4b99dfe); -} #[repr(C)] #[doc(hidden)] pub struct IBDA_UserActivityService_Vtbl { @@ -5466,9 +4554,8 @@ pub struct IBDA_UserActivityService_Vtbl { pub GetUserActivityInterval: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwactivityinterval: *mut u32) -> ::windows_core::HRESULT, pub UserActivityDetected: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBDA_VoidTransform(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBDA_VoidTransform, IBDA_VoidTransform_Vtbl, 0x71985f46_1ca1_11d3_9cc8_00c04f7971e0); +::windows_core::imp::interface_hierarchy!(IBDA_VoidTransform, ::windows_core::IUnknown); impl IBDA_VoidTransform { pub unsafe fn Start(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Start)(::windows_core::Interface::as_raw(self)).ok() @@ -5477,13 +4564,6 @@ impl IBDA_VoidTransform { (::windows_core::Interface::vtable(self).Stop)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IBDA_VoidTransform, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBDA_VoidTransform { - type Vtable = IBDA_VoidTransform_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBDA_VoidTransform { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x71985f46_1ca1_11d3_9cc8_00c04f7971e0); -} #[repr(C)] #[doc(hidden)] pub struct IBDA_VoidTransform_Vtbl { @@ -5491,9 +4571,8 @@ pub struct IBDA_VoidTransform_Vtbl { pub Start: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Stop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBDA_WMDRMSession(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBDA_WMDRMSession, IBDA_WMDRMSession_Vtbl, 0x4be6fa3d_07cd_4139_8b80_8c18ba3aec88); +::windows_core::imp::interface_hierarchy!(IBDA_WMDRMSession, ::windows_core::IUnknown); impl IBDA_WMDRMSession { pub unsafe fn GetStatus(&self, maxcapturetoken: *mut u32, maxstreamingpid: *mut u32, maxlicense: *mut u32, minsecuritylevel: *mut u32, revinfosequencenumber: *mut u32, revinfoissuedtime: *mut u64, revinfottl: *mut u32, revlistversion: *mut u32, ulstate: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetStatus)(::windows_core::Interface::as_raw(self), maxcapturetoken, maxstreamingpid, maxlicense, minsecuritylevel, revinfosequencenumber, revinfoissuedtime, revinfottl, revlistversion, ulstate).ok() @@ -5520,13 +4599,6 @@ impl IBDA_WMDRMSession { (::windows_core::Interface::vtable(self).GetKeyInfo)(::windows_core::Interface::as_raw(self), pulkeyinfolen, pbkeyinfo).ok() } } -::windows_core::imp::interface_hierarchy!(IBDA_WMDRMSession, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBDA_WMDRMSession { - type Vtable = IBDA_WMDRMSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBDA_WMDRMSession { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4be6fa3d_07cd_4139_8b80_8c18ba3aec88); -} #[repr(C)] #[doc(hidden)] pub struct IBDA_WMDRMSession_Vtbl { @@ -5540,9 +4612,8 @@ pub struct IBDA_WMDRMSession_Vtbl { pub RenewLicense: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulinxmrlicenselen: u32, pbinxmrlicense: *const u8, ulentitlementtokenlen: u32, pbentitlementtoken: *const u8, puldescramblestatus: *mut u32, puloutxmrlicenselen: *mut u32, pboutxmrlicense: *mut u8) -> ::windows_core::HRESULT, pub GetKeyInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pulkeyinfolen: *mut u32, pbkeyinfo: *mut u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBDA_WMDRMTuner(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBDA_WMDRMTuner, IBDA_WMDRMTuner_Vtbl, 0x86d979cf_a8a7_4f94_b5fb_14c0aca68fe6); +::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 @@ -5567,13 +4638,6 @@ impl IBDA_WMDRMTuner { (::windows_core::Interface::vtable(self).GetStartCodeProfile)(::windows_core::Interface::as_raw(self), pulstartcodeprofilelen, pbstartcodeprofile).ok() } } -::windows_core::imp::interface_hierarchy!(IBDA_WMDRMTuner, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBDA_WMDRMTuner { - type Vtable = IBDA_WMDRMTuner_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBDA_WMDRMTuner { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x86d979cf_a8a7_4f94_b5fb_14c0aca68fe6); -} #[repr(C)] #[doc(hidden)] pub struct IBDA_WMDRMTuner_Vtbl { @@ -5585,9 +4649,8 @@ pub struct IBDA_WMDRMTuner_Vtbl { pub SetSyncValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulsyncvalue: u32) -> ::windows_core::HRESULT, pub GetStartCodeProfile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pulstartcodeprofilelen: *mut u32, pbstartcodeprofile: *mut u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBPCSatelliteTuner(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBPCSatelliteTuner, IBPCSatelliteTuner_Vtbl, 0x211a8765_03ac_11d1_8d13_00aa00bd8339); +::windows_core::imp::interface_hierarchy!(IBPCSatelliteTuner, ::windows_core::IUnknown, IAMTuner); impl IBPCSatelliteTuner { pub unsafe fn put_Channel(&self, lchannel: i32, lvideosubchannel: i32, laudiosubchannel: i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.put_Channel)(::windows_core::Interface::as_raw(self), lchannel, lvideosubchannel, laudiosubchannel).ok() @@ -5658,13 +4721,6 @@ impl IBPCSatelliteTuner { (::windows_core::Interface::vtable(self).IsTapingPermitted)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IBPCSatelliteTuner, ::windows_core::IUnknown, IAMTuner); -unsafe impl ::windows_core::Interface for IBPCSatelliteTuner { - type Vtable = IBPCSatelliteTuner_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBPCSatelliteTuner { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x211a8765_03ac_11d1_8d13_00aa00bd8339); -} #[repr(C)] #[doc(hidden)] pub struct IBPCSatelliteTuner_Vtbl { @@ -5673,11 +4729,15 @@ pub struct IBPCSatelliteTuner_Vtbl { pub put_DefaultSubChannelTypes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ldefaultvideotype: i32, ldefaultaudiotype: i32) -> ::windows_core::HRESULT, pub IsTapingPermitted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBaseFilter(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IBaseFilter, + IBaseFilter_Vtbl, + 0x56a86895_0ad4_11ce_b03a_0020af0ba770 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IBaseFilter, ::windows_core::IUnknown, super::super::System::Com::IPersist, IMediaFilter); #[cfg(feature = "Win32_System_Com")] impl IBaseFilter { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -5736,16 +4796,6 @@ impl IBaseFilter { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IBaseFilter, ::windows_core::IUnknown, super::super::System::Com::IPersist, IMediaFilter); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IBaseFilter { - type Vtable = IBaseFilter_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IBaseFilter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x56a86895_0ad4_11ce_b03a_0020af0ba770); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IBaseFilter_Vtbl { @@ -5756,9 +4806,8 @@ pub struct IBaseFilter_Vtbl { pub JoinFilterGraph: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pgraph: *mut ::core::ffi::c_void, pname: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub QueryVendorInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvendorinfo: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBaseVideoMixer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBaseVideoMixer, IBaseVideoMixer_Vtbl, 0x61ded640_e912_11ce_a099_00aa00479a58); +::windows_core::imp::interface_hierarchy!(IBaseVideoMixer, ::windows_core::IUnknown); impl IBaseVideoMixer { pub unsafe fn SetLeadPin(&self, ipin: i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetLeadPin)(::windows_core::Interface::as_raw(self), ipin).ok() @@ -5786,13 +4835,6 @@ impl IBaseVideoMixer { (::windows_core::Interface::vtable(self).SetClockPeriod)(::windows_core::Interface::as_raw(self), bvalue).ok() } } -::windows_core::imp::interface_hierarchy!(IBaseVideoMixer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBaseVideoMixer { - type Vtable = IBaseVideoMixer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBaseVideoMixer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x61ded640_e912_11ce_a099_00aa00479a58); -} #[repr(C)] #[doc(hidden)] pub struct IBaseVideoMixer_Vtbl { @@ -5805,11 +4847,15 @@ pub struct IBaseVideoMixer_Vtbl { pub GetClockPeriod: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbvalue: *mut i32) -> ::windows_core::HRESULT, pub SetClockPeriod: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bvalue: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBasicAudio(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IBasicAudio, + IBasicAudio_Vtbl, + 0x56a868b3_0ad4_11ce_b03a_0020af0ba770 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IBasicAudio, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IBasicAudio { pub unsafe fn SetVolume(&self, lvolume: i32) -> ::windows_core::Result<()> { @@ -5828,16 +4874,6 @@ impl IBasicAudio { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IBasicAudio, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IBasicAudio { - type Vtable = IBasicAudio_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IBasicAudio { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x56a868b3_0ad4_11ce_b03a_0020af0ba770); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IBasicAudio_Vtbl { @@ -5847,11 +4883,15 @@ pub struct IBasicAudio_Vtbl { pub SetBalance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lbalance: i32) -> ::windows_core::HRESULT, pub Balance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plbalance: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBasicVideo(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IBasicVideo, + IBasicVideo_Vtbl, + 0x56a868b5_0ad4_11ce_b03a_0020af0ba770 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IBasicVideo, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IBasicVideo { pub unsafe fn AvgTimePerFrame(&self) -> ::windows_core::Result { @@ -5965,16 +5005,6 @@ impl IBasicVideo { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IBasicVideo, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IBasicVideo { - type Vtable = IBasicVideo_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IBasicVideo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x56a868b5_0ad4_11ce_b03a_0020af0ba770); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IBasicVideo_Vtbl { @@ -6012,11 +5042,15 @@ pub struct IBasicVideo_Vtbl { pub IsUsingDefaultSource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub IsUsingDefaultDestination: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBasicVideo2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IBasicVideo2, + IBasicVideo2_Vtbl, + 0x329bb360_f6ea_11d1_9038_00a0c9697298 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IBasicVideo2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IBasicVideo); #[cfg(feature = "Win32_System_Com")] impl IBasicVideo2 { pub unsafe fn AvgTimePerFrame(&self) -> ::windows_core::Result { @@ -6133,46 +5167,27 @@ impl IBasicVideo2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IBasicVideo2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IBasicVideo); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IBasicVideo2 { - type Vtable = IBasicVideo2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IBasicVideo2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x329bb360_f6ea_11d1_9038_00a0c9697298); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IBasicVideo2_Vtbl { pub base__: IBasicVideo_Vtbl, pub GetPreferredAspectRatio: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plaspectx: *mut i32, plaspecty: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBroadcastEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBroadcastEvent, IBroadcastEvent_Vtbl, 0x3b21263f_26e8_489d_aac4_924f7efd9511); +::windows_core::imp::interface_hierarchy!(IBroadcastEvent, ::windows_core::IUnknown); impl IBroadcastEvent { pub unsafe fn Fire(&self, eventid: ::windows_core::GUID) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Fire)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(eventid)).ok() } } -::windows_core::imp::interface_hierarchy!(IBroadcastEvent, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBroadcastEvent { - type Vtable = IBroadcastEvent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBroadcastEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3b21263f_26e8_489d_aac4_924f7efd9511); -} #[repr(C)] #[doc(hidden)] pub struct IBroadcastEvent_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Fire: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventid: ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBroadcastEventEx(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBroadcastEventEx, IBroadcastEventEx_Vtbl, 0x3d9e3887_1929_423f_8021_43682de95448); +::windows_core::imp::interface_hierarchy!(IBroadcastEventEx, ::windows_core::IUnknown, IBroadcastEvent); impl IBroadcastEventEx { pub unsafe fn Fire(&self, eventid: ::windows_core::GUID) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.Fire)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(eventid)).ok() @@ -6181,22 +5196,14 @@ impl IBroadcastEventEx { (::windows_core::Interface::vtable(self).FireEx)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(eventid), param1, param2, param3, param4).ok() } } -::windows_core::imp::interface_hierarchy!(IBroadcastEventEx, ::windows_core::IUnknown, IBroadcastEvent); -unsafe impl ::windows_core::Interface for IBroadcastEventEx { - type Vtable = IBroadcastEventEx_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBroadcastEventEx { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3d9e3887_1929_423f_8021_43682de95448); -} #[repr(C)] #[doc(hidden)] pub struct IBroadcastEventEx_Vtbl { pub base__: IBroadcastEvent_Vtbl, pub FireEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventid: ::windows_core::GUID, param1: u32, param2: u32, param3: u32, param4: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBufferingTime(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBufferingTime, IBufferingTime_Vtbl, 0x1e00486a_78dd_11d2_8dd3_006097c9a2b2); +::windows_core::imp::interface_hierarchy!(IBufferingTime, ::windows_core::IUnknown); impl IBufferingTime { pub unsafe fn GetBufferingTime(&self, pdwmilliseconds: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetBufferingTime)(::windows_core::Interface::as_raw(self), pdwmilliseconds).ok() @@ -6205,13 +5212,6 @@ impl IBufferingTime { (::windows_core::Interface::vtable(self).SetBufferingTime)(::windows_core::Interface::as_raw(self), dwmilliseconds).ok() } } -::windows_core::imp::interface_hierarchy!(IBufferingTime, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBufferingTime { - type Vtable = IBufferingTime_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBufferingTime { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1e00486a_78dd_11d2_8dd3_006097c9a2b2); -} #[repr(C)] #[doc(hidden)] pub struct IBufferingTime_Vtbl { @@ -6219,9 +5219,8 @@ pub struct IBufferingTime_Vtbl { pub GetBufferingTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwmilliseconds: *mut u32) -> ::windows_core::HRESULT, pub SetBufferingTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwmilliseconds: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICCSubStreamFiltering(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICCSubStreamFiltering, ICCSubStreamFiltering_Vtbl, 0x4b2bd7ea_8347_467b_8dbf_62f784929cc3); +::windows_core::imp::interface_hierarchy!(ICCSubStreamFiltering, ::windows_core::IUnknown); impl ICCSubStreamFiltering { pub unsafe fn SubstreamTypes(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -6231,13 +5230,6 @@ impl ICCSubStreamFiltering { (::windows_core::Interface::vtable(self).SetSubstreamTypes)(::windows_core::Interface::as_raw(self), types).ok() } } -::windows_core::imp::interface_hierarchy!(ICCSubStreamFiltering, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICCSubStreamFiltering { - type Vtable = ICCSubStreamFiltering_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICCSubStreamFiltering { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4b2bd7ea_8347_467b_8dbf_62f784929cc3); -} #[repr(C)] #[doc(hidden)] pub struct ICCSubStreamFiltering_Vtbl { @@ -6245,9 +5237,8 @@ pub struct ICCSubStreamFiltering_Vtbl { pub SubstreamTypes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptypes: *mut i32) -> ::windows_core::HRESULT, pub SetSubstreamTypes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, types: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICameraControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICameraControl, ICameraControl_Vtbl, 0x2ba1785d_4d1b_44ef_85e8_c7f1d3f20184); +::windows_core::imp::interface_hierarchy!(ICameraControl, ::windows_core::IUnknown); impl ICameraControl { pub unsafe fn get_Exposure(&self, pvalue: *mut i32, pflags: *mut i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).get_Exposure)(::windows_core::Interface::as_raw(self), pvalue, pflags).ok() @@ -6403,13 +5394,6 @@ impl ICameraControl { (::windows_core::Interface::vtable(self).put_PrivacyMode)(::windows_core::Interface::as_raw(self), value, flags).ok() } } -::windows_core::imp::interface_hierarchy!(ICameraControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICameraControl { - type Vtable = ICameraControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICameraControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2ba1785d_4d1b_44ef_85e8_c7f1d3f20184); -} #[repr(C)] #[doc(hidden)] pub struct ICameraControl_Vtbl { @@ -6466,9 +5450,8 @@ pub struct ICameraControl_Vtbl { pub get_PrivacyMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut i32, pflags: *mut i32) -> ::windows_core::HRESULT, pub put_PrivacyMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i32, flags: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICaptureGraphBuilder(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICaptureGraphBuilder, ICaptureGraphBuilder_Vtbl, 0xbf87b6e0_8c27_11d0_b3f0_00aa003761c5); +::windows_core::imp::interface_hierarchy!(ICaptureGraphBuilder, ::windows_core::IUnknown); impl ICaptureGraphBuilder { pub unsafe fn SetFiltergraph(&self, pfg: P0) -> ::windows_core::Result<()> where @@ -6529,13 +5512,6 @@ impl ICaptureGraphBuilder { (::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::imp::interface_hierarchy!(ICaptureGraphBuilder, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICaptureGraphBuilder { - type Vtable = ICaptureGraphBuilder_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICaptureGraphBuilder { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbf87b6e0_8c27_11d0_b3f0_00aa003761c5); -} #[repr(C)] #[doc(hidden)] pub struct ICaptureGraphBuilder_Vtbl { @@ -6561,9 +5537,8 @@ pub struct ICaptureGraphBuilder_Vtbl { pub AllocCapFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpstr: ::windows_core::PCWSTR, dwlsize: u64) -> ::windows_core::HRESULT, pub CopyCaptureFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpwstrold: ::windows_core::PCWSTR, lpwstrnew: ::windows_core::PCWSTR, fallowescabort: i32, pcallback: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICaptureGraphBuilder2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICaptureGraphBuilder2, ICaptureGraphBuilder2_Vtbl, 0x93e5a4e0_2d50_11d2_abfa_00a0c9c6e38d); +::windows_core::imp::interface_hierarchy!(ICaptureGraphBuilder2, ::windows_core::IUnknown); impl ICaptureGraphBuilder2 { pub unsafe fn SetFiltergraph(&self, pfg: P0) -> ::windows_core::Result<()> where @@ -6632,13 +5607,6 @@ impl ICaptureGraphBuilder2 { (::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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ICaptureGraphBuilder2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICaptureGraphBuilder2 { - type Vtable = ICaptureGraphBuilder2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICaptureGraphBuilder2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x93e5a4e0_2d50_11d2_abfa_00a0c9c6e38d); -} #[repr(C)] #[doc(hidden)] pub struct ICaptureGraphBuilder2_Vtbl { @@ -6665,9 +5633,8 @@ pub struct ICaptureGraphBuilder2_Vtbl { pub CopyCaptureFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpwstrold: ::windows_core::PCWSTR, lpwstrnew: ::windows_core::PCWSTR, fallowescabort: i32, pcallback: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub FindPin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psource: *mut ::core::ffi::c_void, pindir: PIN_DIRECTION, pcategory: *const ::windows_core::GUID, ptype: *const ::windows_core::GUID, funconnected: super::super::Foundation::BOOL, num: i32, pppin: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IConfigAsfWriter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IConfigAsfWriter, IConfigAsfWriter_Vtbl, 0x45086030_f7e4_486a_b504_826bb5792a3b); +::windows_core::imp::interface_hierarchy!(IConfigAsfWriter, ::windows_core::IUnknown); impl IConfigAsfWriter { pub unsafe fn ConfigureFilterUsingProfileId(&self, dwprofileid: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).ConfigureFilterUsingProfileId)(::windows_core::Interface::as_raw(self), dwprofileid).ok() @@ -6708,13 +5675,6 @@ impl IConfigAsfWriter { (::windows_core::Interface::vtable(self).GetIndexMode)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IConfigAsfWriter, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IConfigAsfWriter { - type Vtable = IConfigAsfWriter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IConfigAsfWriter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x45086030_f7e4_486a_b504_826bb5792a3b); -} #[repr(C)] #[doc(hidden)] pub struct IConfigAsfWriter_Vtbl { @@ -6734,9 +5694,8 @@ pub struct IConfigAsfWriter_Vtbl { pub SetIndexMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bindexfile: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub GetIndexMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbindexfile: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IConfigAsfWriter2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IConfigAsfWriter2, IConfigAsfWriter2_Vtbl, 0x7989ccaa_53f0_44f0_884a_f3b03f6ae066); +::windows_core::imp::interface_hierarchy!(IConfigAsfWriter2, ::windows_core::IUnknown, IConfigAsfWriter); impl IConfigAsfWriter2 { pub unsafe fn ConfigureFilterUsingProfileId(&self, dwprofileid: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.ConfigureFilterUsingProfileId)(::windows_core::Interface::as_raw(self), dwprofileid).ok() @@ -6793,13 +5752,6 @@ impl IConfigAsfWriter2 { (::windows_core::Interface::vtable(self).ResetMultiPassState)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IConfigAsfWriter2, ::windows_core::IUnknown, IConfigAsfWriter); -unsafe impl ::windows_core::Interface for IConfigAsfWriter2 { - type Vtable = IConfigAsfWriter2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IConfigAsfWriter2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7989ccaa_53f0_44f0_884a_f3b03f6ae066); -} #[repr(C)] #[doc(hidden)] pub struct IConfigAsfWriter2_Vtbl { @@ -6809,9 +5761,8 @@ pub struct IConfigAsfWriter2_Vtbl { pub GetParam: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwparam: u32, pdwparam1: *mut u32, pdwparam2: *mut u32) -> ::windows_core::HRESULT, pub ResetMultiPassState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IConfigAviMux(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IConfigAviMux, IConfigAviMux_Vtbl, 0x5acd6aa0_f482_11ce_8b67_00aa00a3f1a6); +::windows_core::imp::interface_hierarchy!(IConfigAviMux, ::windows_core::IUnknown); impl IConfigAviMux { pub unsafe fn SetMasterStream(&self, istream: i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetMasterStream)(::windows_core::Interface::as_raw(self), istream).ok() @@ -6831,13 +5782,6 @@ impl IConfigAviMux { (::windows_core::Interface::vtable(self).GetOutputCompatibilityIndex)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IConfigAviMux, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IConfigAviMux { - type Vtable = IConfigAviMux_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IConfigAviMux { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5acd6aa0_f482_11ce_8b67_00aa00a3f1a6); -} #[repr(C)] #[doc(hidden)] pub struct IConfigAviMux_Vtbl { @@ -6847,9 +5791,8 @@ pub struct IConfigAviMux_Vtbl { pub SetOutputCompatibilityIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, foldindex: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub GetOutputCompatibilityIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfoldindex: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IConfigInterleaving(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IConfigInterleaving, IConfigInterleaving_Vtbl, 0xbee3d220_157b_11d0_bd23_00a0c911ce86); +::windows_core::imp::interface_hierarchy!(IConfigInterleaving, ::windows_core::IUnknown); impl IConfigInterleaving { pub unsafe fn SetMode(&self, mode: InterleavingMode) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetMode)(::windows_core::Interface::as_raw(self), mode).ok() @@ -6865,13 +5808,6 @@ impl IConfigInterleaving { (::windows_core::Interface::vtable(self).get_Interleaving)(::windows_core::Interface::as_raw(self), prtinterleave, prtpreroll).ok() } } -::windows_core::imp::interface_hierarchy!(IConfigInterleaving, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IConfigInterleaving { - type Vtable = IConfigInterleaving_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IConfigInterleaving { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbee3d220_157b_11d0_bd23_00a0c911ce86); -} #[repr(C)] #[doc(hidden)] pub struct IConfigInterleaving_Vtbl { @@ -6881,9 +5817,8 @@ pub struct IConfigInterleaving_Vtbl { pub put_Interleaving: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prtinterleave: *const i64, prtpreroll: *const i64) -> ::windows_core::HRESULT, pub get_Interleaving: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prtinterleave: *mut i64, prtpreroll: *mut i64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICreateDevEnum(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICreateDevEnum, ICreateDevEnum_Vtbl, 0x29840822_5b84_11d0_bd3b_00a0c911ce86); +::windows_core::imp::interface_hierarchy!(ICreateDevEnum, ::windows_core::IUnknown); impl ICreateDevEnum { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -6891,13 +5826,6 @@ impl ICreateDevEnum { (::windows_core::Interface::vtable(self).CreateClassEnumerator)(::windows_core::Interface::as_raw(self), clsiddeviceclass, ::core::mem::transmute(ppenummoniker), dwflags).ok() } } -::windows_core::imp::interface_hierarchy!(ICreateDevEnum, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICreateDevEnum { - type Vtable = ICreateDevEnum_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICreateDevEnum { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x29840822_5b84_11d0_bd3b_00a0c911ce86); -} #[repr(C)] #[doc(hidden)] pub struct ICreateDevEnum_Vtbl { @@ -6907,9 +5835,8 @@ pub struct ICreateDevEnum_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] CreateClassEnumerator: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDDrawExclModeVideo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDDrawExclModeVideo, IDDrawExclModeVideo_Vtbl, 0x153acc21_d83b_11d1_82bf_00a0c9696c8f); +::windows_core::imp::interface_hierarchy!(IDDrawExclModeVideo, ::windows_core::IUnknown); impl IDDrawExclModeVideo { #[doc = "Required features: `\"Win32_Graphics_DirectDraw\"`"] #[cfg(feature = "Win32_Graphics_DirectDraw")] @@ -6950,13 +5877,6 @@ impl IDDrawExclModeVideo { (::windows_core::Interface::vtable(self).SetCallbackInterface)(::windows_core::Interface::as_raw(self), pcallback.into_param().abi(), dwflags).ok() } } -::windows_core::imp::interface_hierarchy!(IDDrawExclModeVideo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDDrawExclModeVideo { - type Vtable = IDDrawExclModeVideo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDDrawExclModeVideo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x153acc21_d83b_11d1_82bf_00a0c9696c8f); -} #[repr(C)] #[doc(hidden)] pub struct IDDrawExclModeVideo_Vtbl { @@ -6981,9 +5901,8 @@ pub struct IDDrawExclModeVideo_Vtbl { pub GetNativeVideoProps: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwvideowidth: *mut u32, pdwvideoheight: *mut u32, pdwpictaspectratiox: *mut u32, pdwpictaspectratioy: *mut u32) -> ::windows_core::HRESULT, pub SetCallbackInterface: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcallback: *mut ::core::ffi::c_void, dwflags: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDDrawExclModeVideoCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDDrawExclModeVideoCallback, IDDrawExclModeVideoCallback_Vtbl, 0x913c24a0_20ab_11d2_9038_00a0c9697298); +::windows_core::imp::interface_hierarchy!(IDDrawExclModeVideoCallback, ::windows_core::IUnknown); 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 @@ -7000,13 +5919,6 @@ impl IDDrawExclModeVideoCallback { (::windows_core::Interface::vtable(self).OnUpdateSize)(::windows_core::Interface::as_raw(self), dwwidth, dwheight, dwarwidth, dwarheight).ok() } } -::windows_core::imp::interface_hierarchy!(IDDrawExclModeVideoCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDDrawExclModeVideoCallback { - type Vtable = IDDrawExclModeVideoCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDDrawExclModeVideoCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x913c24a0_20ab_11d2_9038_00a0c9697298); -} #[repr(C)] #[doc(hidden)] pub struct IDDrawExclModeVideoCallback_Vtbl { @@ -7015,30 +5927,21 @@ pub struct IDDrawExclModeVideoCallback_Vtbl { pub OnUpdateColorKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pkey: *const COLORKEY, dwcolor: u32) -> ::windows_core::HRESULT, pub OnUpdateSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwwidth: u32, dwheight: u32, dwarwidth: u32, dwarheight: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDMOWrapperFilter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDMOWrapperFilter, IDMOWrapperFilter_Vtbl, 0x52d6f586_9f0f_4824_8fc8_e32ca04930c2); +::windows_core::imp::interface_hierarchy!(IDMOWrapperFilter, ::windows_core::IUnknown); impl IDMOWrapperFilter { pub unsafe fn Init(&self, clsiddmo: *const ::windows_core::GUID, catdmo: *const ::windows_core::GUID) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Init)(::windows_core::Interface::as_raw(self), clsiddmo, catdmo).ok() } } -::windows_core::imp::interface_hierarchy!(IDMOWrapperFilter, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDMOWrapperFilter { - type Vtable = IDMOWrapperFilter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDMOWrapperFilter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x52d6f586_9f0f_4824_8fc8_e32ca04930c2); -} #[repr(C)] #[doc(hidden)] pub struct IDMOWrapperFilter_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Init: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, clsiddmo: *const ::windows_core::GUID, catdmo: *const ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDShowPlugin(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDShowPlugin, IDShowPlugin_Vtbl, 0x4746b7c8_700e_11d1_becc_00c04fb6e937); +::windows_core::imp::interface_hierarchy!(IDShowPlugin, ::windows_core::IUnknown); impl IDShowPlugin { pub unsafe fn URL(&self, purl: *mut ::windows_core::BSTR) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).URL)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(purl)).ok() @@ -7047,13 +5950,6 @@ impl IDShowPlugin { (::windows_core::Interface::vtable(self).UserAgent)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(puseragent)).ok() } } -::windows_core::imp::interface_hierarchy!(IDShowPlugin, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDShowPlugin { - type Vtable = IDShowPlugin_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDShowPlugin { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4746b7c8_700e_11d1_becc_00c04fb6e937); -} #[repr(C)] #[doc(hidden)] pub struct IDShowPlugin_Vtbl { @@ -7061,9 +5957,8 @@ pub struct IDShowPlugin_Vtbl { pub URL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, purl: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub UserAgent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, puseragent: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDVEnc(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDVEnc, IDVEnc_Vtbl, 0xd18e17a0_aacb_11d0_afb0_00aa00b67a42); +::windows_core::imp::interface_hierarchy!(IDVEnc, ::windows_core::IUnknown); impl IDVEnc { pub unsafe fn get_IFormatResolution(&self, videoformat: *mut i32, dvformat: *mut i32, resolution: *mut i32, fdvinfo: u8, sdvinfo: *mut DVINFO) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).get_IFormatResolution)(::windows_core::Interface::as_raw(self), videoformat, dvformat, resolution, fdvinfo, sdvinfo).ok() @@ -7072,13 +5967,6 @@ impl IDVEnc { (::windows_core::Interface::vtable(self).put_IFormatResolution)(::windows_core::Interface::as_raw(self), videoformat, dvformat, resolution, fdvinfo, sdvinfo).ok() } } -::windows_core::imp::interface_hierarchy!(IDVEnc, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDVEnc { - type Vtable = IDVEnc_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDVEnc { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd18e17a0_aacb_11d0_afb0_00aa00b67a42); -} #[repr(C)] #[doc(hidden)] pub struct IDVEnc_Vtbl { @@ -7086,9 +5974,8 @@ pub struct IDVEnc_Vtbl { pub get_IFormatResolution: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, videoformat: *mut i32, dvformat: *mut i32, resolution: *mut i32, fdvinfo: u8, sdvinfo: *mut DVINFO) -> ::windows_core::HRESULT, pub put_IFormatResolution: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, videoformat: i32, dvformat: i32, resolution: i32, fdvinfo: u8, sdvinfo: *const DVINFO) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDVRGB219(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDVRGB219, IDVRGB219_Vtbl, 0x58473a19_2bc8_4663_8012_25f81babddd1); +::windows_core::imp::interface_hierarchy!(IDVRGB219, ::windows_core::IUnknown); impl IDVRGB219 { pub unsafe fn SetRGB219(&self, bstate: P0) -> ::windows_core::Result<()> where @@ -7097,43 +5984,27 @@ impl IDVRGB219 { (::windows_core::Interface::vtable(self).SetRGB219)(::windows_core::Interface::as_raw(self), bstate.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IDVRGB219, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDVRGB219 { - type Vtable = IDVRGB219_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDVRGB219 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x58473a19_2bc8_4663_8012_25f81babddd1); -} #[repr(C)] #[doc(hidden)] pub struct IDVRGB219_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub SetRGB219: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstate: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDVSplitter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDVSplitter, IDVSplitter_Vtbl, 0x92a3a302_da7c_4a1f_ba7e_1802bb5d2d02); +::windows_core::imp::interface_hierarchy!(IDVSplitter, ::windows_core::IUnknown); impl IDVSplitter { pub unsafe fn DiscardAlternateVideoFrames(&self, ndiscard: i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).DiscardAlternateVideoFrames)(::windows_core::Interface::as_raw(self), ndiscard).ok() } } -::windows_core::imp::interface_hierarchy!(IDVSplitter, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDVSplitter { - type Vtable = IDVSplitter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDVSplitter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x92a3a302_da7c_4a1f_ba7e_1802bb5d2d02); -} #[repr(C)] #[doc(hidden)] pub struct IDVSplitter_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub DiscardAlternateVideoFrames: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ndiscard: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDecimateVideoImage(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDecimateVideoImage, IDecimateVideoImage_Vtbl, 0x2e5ea3e0_e924_11d2_b6da_00a0c995e8df); +::windows_core::imp::interface_hierarchy!(IDecimateVideoImage, ::windows_core::IUnknown); impl IDecimateVideoImage { pub unsafe fn SetDecimationImageSize(&self, lwidth: i32, lheight: i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetDecimationImageSize)(::windows_core::Interface::as_raw(self), lwidth, lheight).ok() @@ -7142,13 +6013,6 @@ impl IDecimateVideoImage { (::windows_core::Interface::vtable(self).ResetDecimationImageSize)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IDecimateVideoImage, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDecimateVideoImage { - type Vtable = IDecimateVideoImage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDecimateVideoImage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2e5ea3e0_e924_11d2_b6da_00a0c995e8df); -} #[repr(C)] #[doc(hidden)] pub struct IDecimateVideoImage_Vtbl { @@ -7156,9 +6020,8 @@ pub struct IDecimateVideoImage_Vtbl { pub SetDecimationImageSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lwidth: i32, lheight: i32) -> ::windows_core::HRESULT, pub ResetDecimationImageSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDeferredCommand(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDeferredCommand, IDeferredCommand_Vtbl, 0x56a868b8_0ad4_11ce_b03a_0020af0ba770); +::windows_core::imp::interface_hierarchy!(IDeferredCommand, ::windows_core::IUnknown); impl IDeferredCommand { pub unsafe fn Cancel(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Cancel)(::windows_core::Interface::as_raw(self)).ok() @@ -7175,13 +6038,6 @@ impl IDeferredCommand { (::windows_core::Interface::vtable(self).GetHResult)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDeferredCommand, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDeferredCommand { - type Vtable = IDeferredCommand_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDeferredCommand { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x56a868b8_0ad4_11ce_b03a_0020af0ba770); -} #[repr(C)] #[doc(hidden)] pub struct IDeferredCommand_Vtbl { @@ -7191,9 +6047,8 @@ pub struct IDeferredCommand_Vtbl { pub Postpone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newtime: f64) -> ::windows_core::HRESULT, pub GetHResult: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phrresult: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectDrawMediaSample(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectDrawMediaSample, IDirectDrawMediaSample_Vtbl, 0xab6b4afe_f6e4_11d0_900d_00c04fd9189d); +::windows_core::imp::interface_hierarchy!(IDirectDrawMediaSample, ::windows_core::IUnknown); impl IDirectDrawMediaSample { #[doc = "Required features: `\"Win32_Graphics_DirectDraw\"`"] #[cfg(feature = "Win32_Graphics_DirectDraw")] @@ -7204,13 +6059,6 @@ impl IDirectDrawMediaSample { (::windows_core::Interface::vtable(self).LockMediaSamplePointer)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectDrawMediaSample, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectDrawMediaSample { - type Vtable = IDirectDrawMediaSample_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectDrawMediaSample { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xab6b4afe_f6e4_11d0_900d_00c04fd9189d); -} #[repr(C)] #[doc(hidden)] pub struct IDirectDrawMediaSample_Vtbl { @@ -7221,9 +6069,8 @@ pub struct IDirectDrawMediaSample_Vtbl { GetSurfaceAndReleaseLock: usize, pub LockMediaSamplePointer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectDrawMediaSampleAllocator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectDrawMediaSampleAllocator, IDirectDrawMediaSampleAllocator_Vtbl, 0xab6b4afc_f6e4_11d0_900d_00c04fd9189d); +::windows_core::imp::interface_hierarchy!(IDirectDrawMediaSampleAllocator, ::windows_core::IUnknown); impl IDirectDrawMediaSampleAllocator { #[doc = "Required features: `\"Win32_Graphics_DirectDraw\"`"] #[cfg(feature = "Win32_Graphics_DirectDraw")] @@ -7232,13 +6079,6 @@ impl IDirectDrawMediaSampleAllocator { (::windows_core::Interface::vtable(self).GetDirectDraw)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDirectDrawMediaSampleAllocator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectDrawMediaSampleAllocator { - type Vtable = IDirectDrawMediaSampleAllocator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectDrawMediaSampleAllocator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xab6b4afc_f6e4_11d0_900d_00c04fd9189d); -} #[repr(C)] #[doc(hidden)] pub struct IDirectDrawMediaSampleAllocator_Vtbl { @@ -7248,9 +6088,8 @@ pub struct IDirectDrawMediaSampleAllocator_Vtbl { #[cfg(not(feature = "Win32_Graphics_DirectDraw"))] GetDirectDraw: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectDrawMediaStream(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectDrawMediaStream, IDirectDrawMediaStream_Vtbl, 0xf4104fce_9a70_11d0_8fde_00c04fd9189d); +::windows_core::imp::interface_hierarchy!(IDirectDrawMediaStream, ::windows_core::IUnknown, IMediaStream); impl IDirectDrawMediaStream { pub unsafe fn GetMultiMediaStream(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -7320,13 +6159,6 @@ impl IDirectDrawMediaStream { (::windows_core::Interface::vtable(self).GetTimePerFrame)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDirectDrawMediaStream, ::windows_core::IUnknown, IMediaStream); -unsafe impl ::windows_core::Interface for IDirectDrawMediaStream { - type Vtable = IDirectDrawMediaStream_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectDrawMediaStream { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf4104fce_9a70_11d0_8fde_00c04fd9189d); -} #[repr(C)] #[doc(hidden)] pub struct IDirectDrawMediaStream_Vtbl { @@ -7353,9 +6185,8 @@ pub struct IDirectDrawMediaStream_Vtbl { CreateSample: usize, pub GetTimePerFrame: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pframetime: *mut i64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectDrawStreamSample(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectDrawStreamSample, IDirectDrawStreamSample_Vtbl, 0xf4104fcf_9a70_11d0_8fde_00c04fd9189d); +::windows_core::imp::interface_hierarchy!(IDirectDrawStreamSample, ::windows_core::IUnknown, IStreamSample); impl IDirectDrawStreamSample { pub unsafe fn GetMediaStream(&self, ppmediastream: *const ::core::option::Option) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.GetMediaStream)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(ppmediastream)).ok() @@ -7384,13 +6215,6 @@ impl IDirectDrawStreamSample { (::windows_core::Interface::vtable(self).SetRect)(::windows_core::Interface::as_raw(self), prect).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectDrawStreamSample, ::windows_core::IUnknown, IStreamSample); -unsafe impl ::windows_core::Interface for IDirectDrawStreamSample { - type Vtable = IDirectDrawStreamSample_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectDrawStreamSample { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf4104fcf_9a70_11d0_8fde_00c04fd9189d); -} #[repr(C)] #[doc(hidden)] pub struct IDirectDrawStreamSample_Vtbl { @@ -7401,9 +6225,8 @@ pub struct IDirectDrawStreamSample_Vtbl { GetSurface: usize, pub SetRect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prect: *const super::super::Foundation::RECT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectDrawVideo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectDrawVideo, IDirectDrawVideo_Vtbl, 0x36d39eb0_dd75_11ce_bf0e_00aa0055595a); +::windows_core::imp::interface_hierarchy!(IDirectDrawVideo, ::windows_core::IUnknown); impl IDirectDrawVideo { pub unsafe fn GetSwitches(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -7473,13 +6296,6 @@ impl IDirectDrawVideo { (::windows_core::Interface::vtable(self).WillUseFullScreen)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDirectDrawVideo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectDrawVideo { - type Vtable = IDirectDrawVideo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectDrawVideo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x36d39eb0_dd75_11ce_bf0e_00aa0055595a); -} #[repr(C)] #[doc(hidden)] pub struct IDirectDrawVideo_Vtbl { @@ -7516,9 +6332,8 @@ pub struct IDirectDrawVideo_Vtbl { pub UseWhenFullScreen: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, usewhenfullscreen: i32) -> ::windows_core::HRESULT, pub WillUseFullScreen: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, usewhenfullscreen: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDistributorNotify(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDistributorNotify, IDistributorNotify_Vtbl, 0x56a868af_0ad4_11ce_b03a_0020af0ba770); +::windows_core::imp::interface_hierarchy!(IDistributorNotify, ::windows_core::IUnknown); impl IDistributorNotify { pub unsafe fn Stop(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Stop)(::windows_core::Interface::as_raw(self)).ok() @@ -7539,13 +6354,6 @@ impl IDistributorNotify { (::windows_core::Interface::vtable(self).NotifyGraphChange)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IDistributorNotify, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDistributorNotify { - type Vtable = IDistributorNotify_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDistributorNotify { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x56a868af_0ad4_11ce_b03a_0020af0ba770); -} #[repr(C)] #[doc(hidden)] pub struct IDistributorNotify_Vtbl { @@ -7556,9 +6364,8 @@ pub struct IDistributorNotify_Vtbl { pub SetSyncSource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pclock: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub NotifyGraphChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDrawVideoImage(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDrawVideoImage, IDrawVideoImage_Vtbl, 0x48efb120_ab49_11d2_aed2_00a0c995e8d5); +::windows_core::imp::interface_hierarchy!(IDrawVideoImage, ::windows_core::IUnknown); impl IDrawVideoImage { pub unsafe fn DrawVideoImageBegin(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).DrawVideoImageBegin)(::windows_core::Interface::as_raw(self)).ok() @@ -7575,13 +6382,6 @@ impl IDrawVideoImage { (::windows_core::Interface::vtable(self).DrawVideoImageDraw)(::windows_core::Interface::as_raw(self), hdc.into_param().abi(), lprcsrc, lprcdst).ok() } } -::windows_core::imp::interface_hierarchy!(IDrawVideoImage, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDrawVideoImage { - type Vtable = IDrawVideoImage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDrawVideoImage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x48efb120_ab49_11d2_aed2_00a0c995e8d5); -} #[repr(C)] #[doc(hidden)] pub struct IDrawVideoImage_Vtbl { @@ -7593,9 +6393,8 @@ pub struct IDrawVideoImage_Vtbl { #[cfg(not(feature = "Win32_Graphics_Gdi"))] DrawVideoImageDraw: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDvdCmd(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDvdCmd, IDvdCmd_Vtbl, 0x5a4a97e4_94ee_4a55_9751_74b5643aa27d); +::windows_core::imp::interface_hierarchy!(IDvdCmd, ::windows_core::IUnknown); impl IDvdCmd { pub unsafe fn WaitForStart(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).WaitForStart)(::windows_core::Interface::as_raw(self)).ok() @@ -7604,13 +6403,6 @@ impl IDvdCmd { (::windows_core::Interface::vtable(self).WaitForEnd)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IDvdCmd, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDvdCmd { - type Vtable = IDvdCmd_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDvdCmd { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5a4a97e4_94ee_4a55_9751_74b5643aa27d); -} #[repr(C)] #[doc(hidden)] pub struct IDvdCmd_Vtbl { @@ -7618,9 +6410,8 @@ pub struct IDvdCmd_Vtbl { pub WaitForStart: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub WaitForEnd: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDvdControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDvdControl, IDvdControl_Vtbl, 0xa70efe61_e2a3_11d0_a9be_00aa0061be93); +::windows_core::imp::interface_hierarchy!(IDvdControl, ::windows_core::IUnknown); impl IDvdControl { pub unsafe fn TitlePlay(&self, ultitle: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).TitlePlay)(::windows_core::Interface::as_raw(self), ultitle).ok() @@ -7734,13 +6525,6 @@ impl IDvdControl { (::windows_core::Interface::vtable(self).ChapterPlayAutoStop)(::windows_core::Interface::as_raw(self), ultitle, ulchapter, ulchapterstoplay).ok() } } -::windows_core::imp::interface_hierarchy!(IDvdControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDvdControl { - type Vtable = IDvdControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDvdControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa70efe61_e2a3_11d0_a9be_00aa0061be93); -} #[repr(C)] #[doc(hidden)] pub struct IDvdControl_Vtbl { @@ -7781,9 +6565,8 @@ pub struct IDvdControl_Vtbl { pub MouseSelect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, point: super::super::Foundation::POINT) -> ::windows_core::HRESULT, pub ChapterPlayAutoStop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ultitle: u32, ulchapter: u32, ulchapterstoplay: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDvdControl2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDvdControl2, IDvdControl2_Vtbl, 0x33bc7430_eec0_11d2_8201_00a0c9d74842); +::windows_core::imp::interface_hierarchy!(IDvdControl2, ::windows_core::IUnknown); impl IDvdControl2 { pub unsafe fn PlayTitle(&self, ultitle: u32, dwflags: u32) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -7945,13 +6728,6 @@ impl IDvdControl2 { (::windows_core::Interface::vtable(self).SelectDefaultSubpictureLanguage)(::windows_core::Interface::as_raw(self), language, subpictureextension).ok() } } -::windows_core::imp::interface_hierarchy!(IDvdControl2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDvdControl2 { - type Vtable = IDvdControl2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDvdControl2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x33bc7430_eec0_11d2_8201_00a0c9d74842); -} #[repr(C)] #[doc(hidden)] pub struct IDvdControl2_Vtbl { @@ -7997,9 +6773,8 @@ pub struct IDvdControl2_Vtbl { pub SelectDefaultAudioLanguage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, language: u32, audioextension: DVD_AUDIO_LANG_EXT) -> ::windows_core::HRESULT, pub SelectDefaultSubpictureLanguage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, language: u32, subpictureextension: DVD_SUBPICTURE_LANG_EXT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDvdGraphBuilder(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDvdGraphBuilder, IDvdGraphBuilder_Vtbl, 0xfcc152b6_f372_11d0_8e00_00c04fd7c08b); +::windows_core::imp::interface_hierarchy!(IDvdGraphBuilder, ::windows_core::IUnknown); impl IDvdGraphBuilder { pub unsafe fn GetFiltergraph(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -8015,13 +6790,6 @@ impl IDvdGraphBuilder { (::windows_core::Interface::vtable(self).RenderDvdVideoVolume)(::windows_core::Interface::as_raw(self), lpcwszpathname.into_param().abi(), dwflags, pstatus).ok() } } -::windows_core::imp::interface_hierarchy!(IDvdGraphBuilder, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDvdGraphBuilder { - type Vtable = IDvdGraphBuilder_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDvdGraphBuilder { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfcc152b6_f372_11d0_8e00_00c04fd7c08b); -} #[repr(C)] #[doc(hidden)] pub struct IDvdGraphBuilder_Vtbl { @@ -8030,9 +6798,8 @@ pub struct IDvdGraphBuilder_Vtbl { pub GetDvdInterface: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppvif: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RenderDvdVideoVolume: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpcwszpathname: ::windows_core::PCWSTR, dwflags: u32, pstatus: *mut AM_DVD_RENDERSTATUS) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDvdInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDvdInfo, IDvdInfo_Vtbl, 0xa70efe60_e2a3_11d0_a9be_00aa0061be93); +::windows_core::imp::interface_hierarchy!(IDvdInfo, ::windows_core::IUnknown); impl IDvdInfo { pub unsafe fn GetCurrentDomain(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -8117,13 +6884,6 @@ impl IDvdInfo { (::windows_core::Interface::vtable(self).GetRoot)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(proot.as_ptr()), proot.len().try_into().unwrap(), pulactualsize).ok() } } -::windows_core::imp::interface_hierarchy!(IDvdInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDvdInfo { - type Vtable = IDvdInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDvdInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa70efe60_e2a3_11d0_a9be_00aa0061be93); -} #[repr(C)] #[doc(hidden)] pub struct IDvdInfo_Vtbl { @@ -8152,9 +6912,8 @@ pub struct IDvdInfo_Vtbl { pub GetTitleParentalLevels: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ultitle: u32, pulparentallevels: *mut u32) -> ::windows_core::HRESULT, pub GetRoot: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, proot: ::windows_core::PSTR, ulbufsize: u32, pulactualsize: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDvdInfo2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDvdInfo2, IDvdInfo2_Vtbl, 0x34151510_eec0_11d2_8201_00a0c9d74842); +::windows_core::imp::interface_hierarchy!(IDvdInfo2, ::windows_core::IUnknown); impl IDvdInfo2 { pub unsafe fn GetCurrentDomain(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -8296,13 +7055,6 @@ impl IDvdInfo2 { (::windows_core::Interface::vtable(self).IsSubpictureStreamEnabled)(::windows_core::Interface::as_raw(self), ulstreamnum, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDvdInfo2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDvdInfo2 { - type Vtable = IDvdInfo2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDvdInfo2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x34151510_eec0_11d2_8201_00a0c9d74842); -} #[repr(C)] #[doc(hidden)] pub struct IDvdInfo2_Vtbl { @@ -8347,9 +7099,8 @@ pub struct IDvdInfo2_Vtbl { pub GetButtonRect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulbutton: u32, prect: *mut super::super::Foundation::RECT) -> ::windows_core::HRESULT, pub IsSubpictureStreamEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulstreamnum: u32, pbenabled: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDvdState(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDvdState, IDvdState_Vtbl, 0x86303d6d_1c4a_4087_ab42_f711167048ef); +::windows_core::imp::interface_hierarchy!(IDvdState, ::windows_core::IUnknown); impl IDvdState { pub unsafe fn GetDiscID(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -8360,13 +7111,6 @@ impl IDvdState { (::windows_core::Interface::vtable(self).GetParentalLevel)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDvdState, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDvdState { - type Vtable = IDvdState_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDvdState { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x86303d6d_1c4a_4087_ab42_f711167048ef); -} #[repr(C)] #[doc(hidden)] pub struct IDvdState_Vtbl { @@ -8374,9 +7118,8 @@ pub struct IDvdState_Vtbl { pub GetDiscID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pulluniqueid: *mut u64) -> ::windows_core::HRESULT, pub GetParentalLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pulparentallevel: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IESEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IESEvent, IESEvent_Vtbl, 0x1f0e5357_af43_44e6_8547_654c645145d2); +::windows_core::imp::interface_hierarchy!(IESEvent, ::windows_core::IUnknown); impl IESEvent { pub unsafe fn GetEventId(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -8400,13 +7143,6 @@ impl IESEvent { (::windows_core::Interface::vtable(self).GetStringData)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IESEvent, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IESEvent { - type Vtable = IESEvent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IESEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1f0e5357_af43_44e6_8547_654c645145d2); -} #[repr(C)] #[doc(hidden)] pub struct IESEvent_Vtbl { @@ -8420,9 +7156,8 @@ pub struct IESEvent_Vtbl { GetData: usize, pub GetStringData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdata: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IESEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IESEvents, IESEvents_Vtbl, 0xabd414bf_cfe5_4e5e_af5b_4b4e49c5bfeb); +::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 @@ -8431,22 +7166,14 @@ impl IESEvents { (::windows_core::Interface::vtable(self).OnESEventReceived)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(guideventtype), pesevent.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IESEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IESEvents { - type Vtable = IESEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IESEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xabd414bf_cfe5_4e5e_af5b_4b4e49c5bfeb); -} #[repr(C)] #[doc(hidden)] pub struct IESEvents_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnESEventReceived: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guideventtype: ::windows_core::GUID, pesevent: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEncoderAPI(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEncoderAPI, IEncoderAPI_Vtbl, 0x70423839_6acc_4b23_b079_21dbf08156a5); +::windows_core::imp::interface_hierarchy!(IEncoderAPI, ::windows_core::IUnknown); impl IEncoderAPI { pub unsafe fn IsSupported(&self, api: *const ::windows_core::GUID) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).IsSupported)(::windows_core::Interface::as_raw(self), api).ok() @@ -8482,13 +7209,6 @@ impl IEncoderAPI { (::windows_core::Interface::vtable(self).SetValue)(::windows_core::Interface::as_raw(self), api, value).ok() } } -::windows_core::imp::interface_hierarchy!(IEncoderAPI, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEncoderAPI { - type Vtable = IEncoderAPI_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEncoderAPI { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x70423839_6acc_4b23_b079_21dbf08156a5); -} #[repr(C)] #[doc(hidden)] pub struct IEncoderAPI_Vtbl { @@ -8516,9 +7236,8 @@ pub struct IEncoderAPI_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] SetValue: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumFilters(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumFilters, IEnumFilters_Vtbl, 0x56a86893_0ad4_11ce_b03a_0020af0ba770); +::windows_core::imp::interface_hierarchy!(IEnumFilters, ::windows_core::IUnknown); impl IEnumFilters { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -8536,13 +7255,6 @@ impl IEnumFilters { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumFilters, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumFilters { - type Vtable = IEnumFilters_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumFilters { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x56a86893_0ad4_11ce_b03a_0020af0ba770); -} #[repr(C)] #[doc(hidden)] pub struct IEnumFilters_Vtbl { @@ -8555,9 +7267,8 @@ pub struct IEnumFilters_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumMediaTypes(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumMediaTypes, IEnumMediaTypes_Vtbl, 0x89c31040_846b_11ce_97d3_00aa0055595a); +::windows_core::imp::interface_hierarchy!(IEnumMediaTypes, ::windows_core::IUnknown); impl IEnumMediaTypes { #[doc = "Required features: `\"Win32_Media_MediaFoundation\"`"] #[cfg(feature = "Win32_Media_MediaFoundation")] @@ -8575,13 +7286,6 @@ impl IEnumMediaTypes { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumMediaTypes, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumMediaTypes { - type Vtable = IEnumMediaTypes_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumMediaTypes { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x89c31040_846b_11ce_97d3_00aa0055595a); -} #[repr(C)] #[doc(hidden)] pub struct IEnumMediaTypes_Vtbl { @@ -8594,9 +7298,8 @@ pub struct IEnumMediaTypes_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumPIDMap(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumPIDMap, IEnumPIDMap_Vtbl, 0xafb6c2a2_2c41_11d3_8a60_0000f81e0e4a); +::windows_core::imp::interface_hierarchy!(IEnumPIDMap, ::windows_core::IUnknown); impl IEnumPIDMap { pub unsafe fn Next(&self, ppidmap: &mut [PID_MAP], pcreceived: *mut u32) -> ::windows_core::HRESULT { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), ppidmap.len().try_into().unwrap(), ::core::mem::transmute(ppidmap.as_ptr()), pcreceived) @@ -8612,13 +7315,6 @@ impl IEnumPIDMap { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumPIDMap, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumPIDMap { - type Vtable = IEnumPIDMap_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumPIDMap { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xafb6c2a2_2c41_11d3_8a60_0000f81e0e4a); -} #[repr(C)] #[doc(hidden)] pub struct IEnumPIDMap_Vtbl { @@ -8628,9 +7324,8 @@ pub struct IEnumPIDMap_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppienumpidmap: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumPins(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumPins, IEnumPins_Vtbl, 0x56a86892_0ad4_11ce_b03a_0020af0ba770); +::windows_core::imp::interface_hierarchy!(IEnumPins, ::windows_core::IUnknown); impl IEnumPins { pub unsafe fn Next(&self, pppins: &mut [::core::option::Option], pcfetched: ::core::option::Option<*mut u32>) -> ::windows_core::HRESULT { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), pppins.len().try_into().unwrap(), ::core::mem::transmute(pppins.as_ptr()), ::core::mem::transmute(pcfetched.unwrap_or(::std::ptr::null_mut()))) @@ -8646,13 +7341,6 @@ impl IEnumPins { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumPins, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumPins { - type Vtable = IEnumPins_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumPins { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x56a86892_0ad4_11ce_b03a_0020af0ba770); -} #[repr(C)] #[doc(hidden)] pub struct IEnumPins_Vtbl { @@ -8662,9 +7350,8 @@ pub struct IEnumPins_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumRegFilters(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumRegFilters, IEnumRegFilters_Vtbl, 0x56a868a4_0ad4_11ce_b03a_0020af0ba770); +::windows_core::imp::interface_hierarchy!(IEnumRegFilters, ::windows_core::IUnknown); impl IEnumRegFilters { pub unsafe fn Next(&self, apregfilter: &mut [*mut REGFILTER], pcfetched: ::core::option::Option<*mut u32>) -> ::windows_core::HRESULT { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), apregfilter.len().try_into().unwrap(), ::core::mem::transmute(apregfilter.as_ptr()), ::core::mem::transmute(pcfetched.unwrap_or(::std::ptr::null_mut()))) @@ -8680,13 +7367,6 @@ impl IEnumRegFilters { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumRegFilters, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumRegFilters { - type Vtable = IEnumRegFilters_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumRegFilters { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x56a868a4_0ad4_11ce_b03a_0020af0ba770); -} #[repr(C)] #[doc(hidden)] pub struct IEnumRegFilters_Vtbl { @@ -8696,9 +7376,8 @@ pub struct IEnumRegFilters_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumStreamIdMap(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumStreamIdMap, IEnumStreamIdMap_Vtbl, 0x945c1566_6202_46fc_96c7_d87f289c6534); +::windows_core::imp::interface_hierarchy!(IEnumStreamIdMap, ::windows_core::IUnknown); impl IEnumStreamIdMap { pub unsafe fn Next(&self, pstreamidmap: &mut [STREAM_ID_MAP], pcreceived: ::core::option::Option<*mut u32>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), pstreamidmap.len().try_into().unwrap(), ::core::mem::transmute(pstreamidmap.as_ptr()), ::core::mem::transmute(pcreceived.unwrap_or(::std::ptr::null_mut()))).ok() @@ -8714,13 +7393,6 @@ impl IEnumStreamIdMap { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumStreamIdMap, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumStreamIdMap { - type Vtable = IEnumStreamIdMap_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumStreamIdMap { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x945c1566_6202_46fc_96c7_d87f289c6534); -} #[repr(C)] #[doc(hidden)] pub struct IEnumStreamIdMap_Vtbl { @@ -8730,9 +7402,8 @@ pub struct IEnumStreamIdMap_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppienumstreamidmap: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFileSinkFilter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFileSinkFilter, IFileSinkFilter_Vtbl, 0xa2104830_7c70_11cf_8bce_00aa00a3f1a6); +::windows_core::imp::interface_hierarchy!(IFileSinkFilter, ::windows_core::IUnknown); impl IFileSinkFilter { #[doc = "Required features: `\"Win32_Media_MediaFoundation\"`"] #[cfg(feature = "Win32_Media_MediaFoundation")] @@ -8748,13 +7419,6 @@ impl IFileSinkFilter { (::windows_core::Interface::vtable(self).GetCurFile)(::windows_core::Interface::as_raw(self), ppszfilename, pmt).ok() } } -::windows_core::imp::interface_hierarchy!(IFileSinkFilter, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFileSinkFilter { - type Vtable = IFileSinkFilter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFileSinkFilter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa2104830_7c70_11cf_8bce_00aa00a3f1a6); -} #[repr(C)] #[doc(hidden)] pub struct IFileSinkFilter_Vtbl { @@ -8768,9 +7432,8 @@ pub struct IFileSinkFilter_Vtbl { #[cfg(not(feature = "Win32_Media_MediaFoundation"))] GetCurFile: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFileSinkFilter2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFileSinkFilter2, IFileSinkFilter2_Vtbl, 0x00855b90_ce1b_11d0_bd4f_00a0c911ce86); +::windows_core::imp::interface_hierarchy!(IFileSinkFilter2, ::windows_core::IUnknown, IFileSinkFilter); impl IFileSinkFilter2 { #[doc = "Required features: `\"Win32_Media_MediaFoundation\"`"] #[cfg(feature = "Win32_Media_MediaFoundation")] @@ -8793,13 +7456,6 @@ impl IFileSinkFilter2 { (::windows_core::Interface::vtable(self).GetMode)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IFileSinkFilter2, ::windows_core::IUnknown, IFileSinkFilter); -unsafe impl ::windows_core::Interface for IFileSinkFilter2 { - type Vtable = IFileSinkFilter2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFileSinkFilter2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00855b90_ce1b_11d0_bd4f_00a0c911ce86); -} #[repr(C)] #[doc(hidden)] pub struct IFileSinkFilter2_Vtbl { @@ -8807,9 +7463,8 @@ pub struct IFileSinkFilter2_Vtbl { pub SetMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwflags: u32) -> ::windows_core::HRESULT, pub GetMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwflags: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFileSourceFilter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFileSourceFilter, IFileSourceFilter_Vtbl, 0x56a868a6_0ad4_11ce_b03a_0020af0ba770); +::windows_core::imp::interface_hierarchy!(IFileSourceFilter, ::windows_core::IUnknown); impl IFileSourceFilter { #[doc = "Required features: `\"Win32_Media_MediaFoundation\"`"] #[cfg(feature = "Win32_Media_MediaFoundation")] @@ -8825,13 +7480,6 @@ impl IFileSourceFilter { (::windows_core::Interface::vtable(self).GetCurFile)(::windows_core::Interface::as_raw(self), ppszfilename, ::core::mem::transmute(pmt.unwrap_or(::std::ptr::null_mut()))).ok() } } -::windows_core::imp::interface_hierarchy!(IFileSourceFilter, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFileSourceFilter { - type Vtable = IFileSourceFilter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFileSourceFilter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x56a868a6_0ad4_11ce_b03a_0020af0ba770); -} #[repr(C)] #[doc(hidden)] pub struct IFileSourceFilter_Vtbl { @@ -8845,9 +7493,8 @@ pub struct IFileSourceFilter_Vtbl { #[cfg(not(feature = "Win32_Media_MediaFoundation"))] GetCurFile: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFilterChain(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFilterChain, IFilterChain_Vtbl, 0xdcfbdcf6_0dc2_45f5_9ab2_7c330ea09c29); +::windows_core::imp::interface_hierarchy!(IFilterChain, ::windows_core::IUnknown); impl IFilterChain { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -8886,13 +7533,6 @@ impl IFilterChain { (::windows_core::Interface::vtable(self).RemoveChain)(::windows_core::Interface::as_raw(self), pstartfilter.into_param().abi(), pendfilter.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IFilterChain, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFilterChain { - type Vtable = IFilterChain_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFilterChain { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdcfbdcf6_0dc2_45f5_9ab2_7c330ea09c29); -} #[repr(C)] #[doc(hidden)] pub struct IFilterChain_Vtbl { @@ -8914,9 +7554,8 @@ pub struct IFilterChain_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] RemoveChain: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFilterGraph(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFilterGraph, IFilterGraph_Vtbl, 0x56a8689f_0ad4_11ce_b03a_0020af0ba770); +::windows_core::imp::interface_hierarchy!(IFilterGraph, ::windows_core::IUnknown); impl IFilterGraph { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -8973,13 +7612,6 @@ impl IFilterGraph { (::windows_core::Interface::vtable(self).SetDefaultSyncSource)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IFilterGraph, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFilterGraph { - type Vtable = IFilterGraph_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFilterGraph { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x56a8689f_0ad4_11ce_b03a_0020af0ba770); -} #[repr(C)] #[doc(hidden)] pub struct IFilterGraph_Vtbl { @@ -9005,9 +7637,8 @@ pub struct IFilterGraph_Vtbl { pub Disconnect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppin: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetDefaultSyncSource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFilterGraph2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFilterGraph2, IFilterGraph2_Vtbl, 0x36b73882_c2c8_11cf_8b46_00805f6cef60); +::windows_core::imp::interface_hierarchy!(IFilterGraph2, ::windows_core::IUnknown, IFilterGraph, IGraphBuilder); impl IFilterGraph2 { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -9128,13 +7759,6 @@ impl IFilterGraph2 { (::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::imp::interface_hierarchy!(IFilterGraph2, ::windows_core::IUnknown, IFilterGraph, IGraphBuilder); -unsafe impl ::windows_core::Interface for IFilterGraph2 { - type Vtable = IFilterGraph2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFilterGraph2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x36b73882_c2c8_11cf_8b46_00805f6cef60); -} #[repr(C)] #[doc(hidden)] pub struct IFilterGraph2_Vtbl { @@ -9149,9 +7773,8 @@ pub struct IFilterGraph2_Vtbl { ReconnectEx: usize, pub RenderEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppinout: *mut ::core::ffi::c_void, dwflags: u32, pvcontext: *const u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFilterGraph3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFilterGraph3, IFilterGraph3_Vtbl, 0xaaf38154_b80b_422f_91e6_b66467509a07); +::windows_core::imp::interface_hierarchy!(IFilterGraph3, ::windows_core::IUnknown, IFilterGraph, IGraphBuilder, IFilterGraph2); impl IFilterGraph3 { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -9282,13 +7905,6 @@ impl IFilterGraph3 { (::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::imp::interface_hierarchy!(IFilterGraph3, ::windows_core::IUnknown, IFilterGraph, IGraphBuilder, IFilterGraph2); -unsafe impl ::windows_core::Interface for IFilterGraph3 { - type Vtable = IFilterGraph3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFilterGraph3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaaf38154_b80b_422f_91e6_b66467509a07); -} #[repr(C)] #[doc(hidden)] pub struct IFilterGraph3_Vtbl { @@ -9298,11 +7914,15 @@ pub struct IFilterGraph3_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] SetSyncSourceEx: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFilterInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFilterInfo, + IFilterInfo_Vtbl, + 0x56a868ba_0ad4_11ce_b03a_0020af0ba770 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFilterInfo, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFilterInfo { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -9348,16 +7968,6 @@ impl IFilterInfo { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFilterInfo, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFilterInfo { - type Vtable = IFilterInfo_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFilterInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x56a868ba_0ad4_11ce_b03a_0020af0ba770); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFilterInfo_Vtbl { @@ -9377,9 +7987,8 @@ pub struct IFilterInfo_Vtbl { pub Filename: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrfilename: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SetFilename: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strfilename: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFilterMapper(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFilterMapper, IFilterMapper_Vtbl, 0x56a868a3_0ad4_11ce_b03a_0020af0ba770); +::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 @@ -9432,13 +8041,6 @@ impl IFilterMapper { (::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::imp::interface_hierarchy!(IFilterMapper, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFilterMapper { - type Vtable = IFilterMapper_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFilterMapper { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x56a868a3_0ad4_11ce_b03a_0020af0ba770); -} #[repr(C)] #[doc(hidden)] pub struct IFilterMapper_Vtbl { @@ -9452,9 +8054,8 @@ pub struct IFilterMapper_Vtbl { pub UnregisterPin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filter: ::windows_core::GUID, name: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub EnumMatchingFilters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void, dwmerit: u32, binputneeded: super::super::Foundation::BOOL, clsinmaj: ::windows_core::GUID, clsinsub: ::windows_core::GUID, brender: super::super::Foundation::BOOL, boututneeded: super::super::Foundation::BOOL, clsoutmaj: ::windows_core::GUID, clsoutsub: ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFilterMapper2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFilterMapper2, IFilterMapper2_Vtbl, 0xb79bb0b0_33c1_11d1_abe1_00a0c905f375); +::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 @@ -9507,13 +8108,6 @@ impl IFilterMapper2 { .ok() } } -::windows_core::imp::interface_hierarchy!(IFilterMapper2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFilterMapper2 { - type Vtable = IFilterMapper2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFilterMapper2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb79bb0b0_33c1_11d1_abe1_00a0c905f375); -} #[repr(C)] #[doc(hidden)] pub struct IFilterMapper2_Vtbl { @@ -9529,9 +8123,8 @@ pub struct IFilterMapper2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] EnumMatchingFilters: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFilterMapper3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFilterMapper3, IFilterMapper3_Vtbl, 0xb79bb0b1_33c1_11d1_abe1_00a0c905f375); +::windows_core::imp::interface_hierarchy!(IFilterMapper3, ::windows_core::IUnknown, IFilterMapper2); impl IFilterMapper3 { pub unsafe fn CreateCategory(&self, clsidcategory: *const ::windows_core::GUID, dwcategorymerit: u32, description: P0) -> ::windows_core::Result<()> where @@ -9588,22 +8181,14 @@ impl IFilterMapper3 { (::windows_core::Interface::vtable(self).GetICreateDevEnum)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IFilterMapper3, ::windows_core::IUnknown, IFilterMapper2); -unsafe impl ::windows_core::Interface for IFilterMapper3 { - type Vtable = IFilterMapper3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFilterMapper3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb79bb0b1_33c1_11d1_abe1_00a0c905f375); -} #[repr(C)] #[doc(hidden)] pub struct IFilterMapper3_Vtbl { pub base__: IFilterMapper2_Vtbl, pub GetICreateDevEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFrequencyMap(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFrequencyMap, IFrequencyMap_Vtbl, 0x06fb45c1_693c_4ea7_b79f_7a6a54d8def2); +::windows_core::imp::interface_hierarchy!(IFrequencyMap, ::windows_core::IUnknown); impl IFrequencyMap { pub unsafe fn get_FrequencyMapping(&self, ulcount: *mut u32, ppullist: *mut *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).get_FrequencyMapping)(::windows_core::Interface::as_raw(self), ulcount, ppullist).ok() @@ -9625,13 +8210,6 @@ impl IFrequencyMap { (::windows_core::Interface::vtable(self).get_CountryCodeList)(::windows_core::Interface::as_raw(self), pulcount, ppullist).ok() } } -::windows_core::imp::interface_hierarchy!(IFrequencyMap, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFrequencyMap { - type Vtable = IFrequencyMap_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFrequencyMap { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x06fb45c1_693c_4ea7_b79f_7a6a54d8def2); -} #[repr(C)] #[doc(hidden)] pub struct IFrequencyMap_Vtbl { @@ -9643,9 +8221,8 @@ pub struct IFrequencyMap_Vtbl { pub get_DefaultFrequencyMapping: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulcountrycode: u32, pulcount: *mut u32, ppullist: *mut *mut u32) -> ::windows_core::HRESULT, pub get_CountryCodeList: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pulcount: *mut u32, ppullist: *mut *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFullScreenVideo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFullScreenVideo, IFullScreenVideo_Vtbl, 0xdd1d7110_7836_11cf_bf47_00aa0055595a); +::windows_core::imp::interface_hierarchy!(IFullScreenVideo, ::windows_core::IUnknown); impl IFullScreenVideo { pub unsafe fn CountModes(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -9711,13 +8288,6 @@ impl IFullScreenVideo { (::windows_core::Interface::vtable(self).SetDefault)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IFullScreenVideo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFullScreenVideo { - type Vtable = IFullScreenVideo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFullScreenVideo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdd1d7110_7836_11cf_bf47_00aa0055595a); -} #[repr(C)] #[doc(hidden)] pub struct IFullScreenVideo_Vtbl { @@ -9740,9 +8310,8 @@ pub struct IFullScreenVideo_Vtbl { pub GetCaption: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrcaption: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SetDefault: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFullScreenVideoEx(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFullScreenVideoEx, IFullScreenVideoEx_Vtbl, 0x53479470_f1dd_11cf_bc42_00aa00ac74f6); +::windows_core::imp::interface_hierarchy!(IFullScreenVideoEx, ::windows_core::IUnknown, IFullScreenVideo); impl IFullScreenVideoEx { pub unsafe fn CountModes(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -9829,13 +8398,6 @@ impl IFullScreenVideoEx { (::windows_core::Interface::vtable(self).IsKeepPixelAspectRatio)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IFullScreenVideoEx, ::windows_core::IUnknown, IFullScreenVideo); -unsafe impl ::windows_core::Interface for IFullScreenVideoEx { - type Vtable = IFullScreenVideoEx_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFullScreenVideoEx { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x53479470_f1dd_11cf_bc42_00aa00ac74f6); -} #[repr(C)] #[doc(hidden)] pub struct IFullScreenVideoEx_Vtbl { @@ -9851,9 +8413,8 @@ pub struct IFullScreenVideoEx_Vtbl { pub KeepPixelAspectRatio: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, keepaspect: i32) -> ::windows_core::HRESULT, pub IsKeepPixelAspectRatio: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pkeepaspect: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGetCapabilitiesKey(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IGetCapabilitiesKey, IGetCapabilitiesKey_Vtbl, 0xa8809222_07bb_48ea_951c_33158100625b); +::windows_core::imp::interface_hierarchy!(IGetCapabilitiesKey, ::windows_core::IUnknown); impl IGetCapabilitiesKey { #[doc = "Required features: `\"Win32_System_Registry\"`"] #[cfg(feature = "Win32_System_Registry")] @@ -9862,13 +8423,6 @@ impl IGetCapabilitiesKey { (::windows_core::Interface::vtable(self).GetCapabilitiesKey)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IGetCapabilitiesKey, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGetCapabilitiesKey { - type Vtable = IGetCapabilitiesKey_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGetCapabilitiesKey { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa8809222_07bb_48ea_951c_33158100625b); -} #[repr(C)] #[doc(hidden)] pub struct IGetCapabilitiesKey_Vtbl { @@ -9878,9 +8432,8 @@ pub struct IGetCapabilitiesKey_Vtbl { #[cfg(not(feature = "Win32_System_Registry"))] GetCapabilitiesKey: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGraphBuilder(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IGraphBuilder, IGraphBuilder_Vtbl, 0x56a868a9_0ad4_11ce_b03a_0020af0ba770); +::windows_core::imp::interface_hierarchy!(IGraphBuilder, ::windows_core::IUnknown, IFilterGraph); impl IGraphBuilder { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -9976,13 +8529,6 @@ impl IGraphBuilder { (::windows_core::Interface::vtable(self).ShouldOperationContinue)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IGraphBuilder, ::windows_core::IUnknown, IFilterGraph); -unsafe impl ::windows_core::Interface for IGraphBuilder { - type Vtable = IGraphBuilder_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGraphBuilder { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x56a868a9_0ad4_11ce_b03a_0020af0ba770); -} #[repr(C)] #[doc(hidden)] pub struct IGraphBuilder_Vtbl { @@ -9998,9 +8544,8 @@ pub struct IGraphBuilder_Vtbl { pub Abort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ShouldOperationContinue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGraphConfig(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IGraphConfig, IGraphConfig_Vtbl, 0x03a1eb8e_32bf_4245_8502_114d08a9cb88); +::windows_core::imp::interface_hierarchy!(IGraphConfig, ::windows_core::IUnknown); impl IGraphConfig { #[doc = "Required features: `\"Win32_Media_MediaFoundation\"`, `\"Win32_System_Com\"`"] #[cfg(all(feature = "Win32_Media_MediaFoundation", feature = "Win32_System_Com"))] @@ -10078,13 +8623,6 @@ impl IGraphConfig { (::windows_core::Interface::vtable(self).RemoveFilterEx)(::windows_core::Interface::as_raw(self), pfilter.into_param().abi(), flags).ok() } } -::windows_core::imp::interface_hierarchy!(IGraphConfig, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGraphConfig { - type Vtable = IGraphConfig_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGraphConfig { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x03a1eb8e_32bf_4245_8502_114d08a9cb88); -} #[repr(C)] #[doc(hidden)] pub struct IGraphConfig_Vtbl { @@ -10118,52 +8656,35 @@ pub struct IGraphConfig_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] RemoveFilterEx: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGraphConfigCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IGraphConfigCallback, IGraphConfigCallback_Vtbl, 0xade0fd60_d19d_11d2_abf6_00a0c905f375); +::windows_core::imp::interface_hierarchy!(IGraphConfigCallback, ::windows_core::IUnknown); impl IGraphConfigCallback { pub unsafe fn Reconfigure(&self, pvcontext: *mut ::core::ffi::c_void, dwflags: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Reconfigure)(::windows_core::Interface::as_raw(self), pvcontext, dwflags).ok() } } -::windows_core::imp::interface_hierarchy!(IGraphConfigCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGraphConfigCallback { - type Vtable = IGraphConfigCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGraphConfigCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xade0fd60_d19d_11d2_abf6_00a0c905f375); -} #[repr(C)] #[doc(hidden)] pub struct IGraphConfigCallback_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Reconfigure: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvcontext: *mut ::core::ffi::c_void, dwflags: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGraphVersion(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IGraphVersion, IGraphVersion_Vtbl, 0x56a868ab_0ad4_11ce_b03a_0020af0ba770); +::windows_core::imp::interface_hierarchy!(IGraphVersion, ::windows_core::IUnknown); impl IGraphVersion { pub unsafe fn QueryVersion(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).QueryVersion)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IGraphVersion, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGraphVersion { - type Vtable = IGraphVersion_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGraphVersion { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x56a868ab_0ad4_11ce_b03a_0020af0ba770); -} #[repr(C)] #[doc(hidden)] pub struct IGraphVersion_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub QueryVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pversion: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIPDVDec(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IIPDVDec, IIPDVDec_Vtbl, 0xb8e8bd60_0bfe_11d0_af91_00aa00b67a42); +::windows_core::imp::interface_hierarchy!(IIPDVDec, ::windows_core::IUnknown); impl IIPDVDec { pub unsafe fn IPDisplay(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -10173,13 +8694,6 @@ impl IIPDVDec { (::windows_core::Interface::vtable(self).SetIPDisplay)(::windows_core::Interface::as_raw(self), displaypix).ok() } } -::windows_core::imp::interface_hierarchy!(IIPDVDec, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIPDVDec { - type Vtable = IIPDVDec_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIPDVDec { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb8e8bd60_0bfe_11d0_af91_00aa00b67a42); -} #[repr(C)] #[doc(hidden)] pub struct IIPDVDec_Vtbl { @@ -10187,9 +8701,8 @@ pub struct IIPDVDec_Vtbl { pub IPDisplay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, displaypix: *mut i32) -> ::windows_core::HRESULT, pub SetIPDisplay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, displaypix: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMPEG2PIDMap(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMPEG2PIDMap, IMPEG2PIDMap_Vtbl, 0xafb6c2a1_2c41_11d3_8a60_0000f81e0e4a); +::windows_core::imp::interface_hierarchy!(IMPEG2PIDMap, ::windows_core::IUnknown); impl IMPEG2PIDMap { pub unsafe fn MapPID(&self, culpid: u32, pulpid: *const u32, mediasamplecontent: MEDIA_SAMPLE_CONTENT) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).MapPID)(::windows_core::Interface::as_raw(self), culpid, pulpid, mediasamplecontent).ok() @@ -10202,13 +8715,6 @@ impl IMPEG2PIDMap { (::windows_core::Interface::vtable(self).EnumPIDMap)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMPEG2PIDMap, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMPEG2PIDMap { - type Vtable = IMPEG2PIDMap_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMPEG2PIDMap { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xafb6c2a1_2c41_11d3_8a60_0000f81e0e4a); -} #[repr(C)] #[doc(hidden)] pub struct IMPEG2PIDMap_Vtbl { @@ -10217,9 +8723,8 @@ pub struct IMPEG2PIDMap_Vtbl { pub UnmapPID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, culpid: u32, pulpid: *const u32) -> ::windows_core::HRESULT, pub EnumPIDMap: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pienumpidmap: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMPEG2StreamIdMap(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMPEG2StreamIdMap, IMPEG2StreamIdMap_Vtbl, 0xd0e04c47_25b8_4369_925a_362a01d95444); +::windows_core::imp::interface_hierarchy!(IMPEG2StreamIdMap, ::windows_core::IUnknown); impl IMPEG2StreamIdMap { pub unsafe fn MapStreamId(&self, ulstreamid: u32, mediasamplecontent: u32, ulsubstreamfiltervalue: u32, idataoffset: i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).MapStreamId)(::windows_core::Interface::as_raw(self), ulstreamid, mediasamplecontent, ulsubstreamfiltervalue, idataoffset).ok() @@ -10232,13 +8737,6 @@ impl IMPEG2StreamIdMap { (::windows_core::Interface::vtable(self).EnumStreamIdMap)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMPEG2StreamIdMap, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMPEG2StreamIdMap { - type Vtable = IMPEG2StreamIdMap_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMPEG2StreamIdMap { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd0e04c47_25b8_4369_925a_362a01d95444); -} #[repr(C)] #[doc(hidden)] pub struct IMPEG2StreamIdMap_Vtbl { @@ -10247,11 +8745,15 @@ pub struct IMPEG2StreamIdMap_Vtbl { pub UnmapStreamId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, culstreamid: u32, pulstreamid: *const u32) -> ::windows_core::HRESULT, pub EnumStreamIdMap: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppienumstreamidmap: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMediaControl, + IMediaControl_Vtbl, + 0x56a868b1_0ad4_11ce_b03a_0020af0ba770 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMediaControl, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMediaControl { pub unsafe fn Run(&self) -> ::windows_core::Result<()> { @@ -10299,16 +8801,6 @@ impl IMediaControl { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMediaControl, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMediaControl { - type Vtable = IMediaControl_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMediaControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x56a868b1_0ad4_11ce_b03a_0020af0ba770); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMediaControl_Vtbl { @@ -10332,11 +8824,15 @@ pub struct IMediaControl_Vtbl { RegFilterCollection: usize, pub StopWhenReady: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMediaEvent, + IMediaEvent_Vtbl, + 0x56a868b6_0ad4_11ce_b03a_0020af0ba770 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMediaEvent, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMediaEvent { pub unsafe fn GetEventHandle(&self) -> ::windows_core::Result { @@ -10356,19 +8852,9 @@ impl IMediaEvent { pub unsafe fn RestoreDefaultHandling(&self, levcode: i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).RestoreDefaultHandling)(::windows_core::Interface::as_raw(self), levcode).ok() } - pub unsafe fn FreeEventParams(&self, levcode: i32, lparam1: isize, lparam2: isize) -> ::windows_core::Result<()> { - (::windows_core::Interface::vtable(self).FreeEventParams)(::windows_core::Interface::as_raw(self), levcode, lparam1, lparam2).ok() - } -} -#[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMediaEvent, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMediaEvent { - type Vtable = IMediaEvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMediaEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x56a868b6_0ad4_11ce_b03a_0020af0ba770); + pub unsafe fn FreeEventParams(&self, levcode: i32, lparam1: isize, lparam2: isize) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).FreeEventParams)(::windows_core::Interface::as_raw(self), levcode, lparam1, lparam2).ok() + } } #[cfg(feature = "Win32_System_Com")] #[repr(C)] @@ -10382,11 +8868,15 @@ pub struct IMediaEvent_Vtbl { pub RestoreDefaultHandling: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, levcode: i32) -> ::windows_core::HRESULT, pub FreeEventParams: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, levcode: i32, lparam1: isize, lparam2: isize) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaEventEx(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMediaEventEx, + IMediaEventEx_Vtbl, + 0x56a868c0_0ad4_11ce_b03a_0020af0ba770 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMediaEventEx, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IMediaEvent); #[cfg(feature = "Win32_System_Com")] impl IMediaEventEx { pub unsafe fn GetEventHandle(&self) -> ::windows_core::Result { @@ -10421,16 +8911,6 @@ impl IMediaEventEx { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMediaEventEx, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IMediaEvent); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMediaEventEx { - type Vtable = IMediaEventEx_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMediaEventEx { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x56a868c0_0ad4_11ce_b03a_0020af0ba770); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMediaEventEx_Vtbl { @@ -10439,32 +8919,28 @@ pub struct IMediaEventEx_Vtbl { pub SetNotifyFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lnonotifyflags: i32) -> ::windows_core::HRESULT, pub GetNotifyFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lplnonotifyflags: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaEventSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMediaEventSink, IMediaEventSink_Vtbl, 0x56a868a2_0ad4_11ce_b03a_0020af0ba770); +::windows_core::imp::interface_hierarchy!(IMediaEventSink, ::windows_core::IUnknown); impl IMediaEventSink { pub unsafe fn Notify(&self, eventcode: i32, eventparam1: isize, eventparam2: isize) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Notify)(::windows_core::Interface::as_raw(self), eventcode, eventparam1, eventparam2).ok() } } -::windows_core::imp::interface_hierarchy!(IMediaEventSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaEventSink { - type Vtable = IMediaEventSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaEventSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x56a868a2_0ad4_11ce_b03a_0020af0ba770); -} #[repr(C)] #[doc(hidden)] pub struct IMediaEventSink_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Notify: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventcode: i32, eventparam1: isize, eventparam2: isize) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaFilter(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMediaFilter, + IMediaFilter_Vtbl, + 0x56a86899_0ad4_11ce_b03a_0020af0ba770 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMediaFilter, ::windows_core::IUnknown, super::super::System::Com::IPersist); #[cfg(feature = "Win32_System_Com")] impl IMediaFilter { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -10498,16 +8974,6 @@ impl IMediaFilter { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMediaFilter, ::windows_core::IUnknown, super::super::System::Com::IPersist); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMediaFilter { - type Vtable = IMediaFilter_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMediaFilter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x56a86899_0ad4_11ce_b03a_0020af0ba770); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMediaFilter_Vtbl { @@ -10519,9 +8985,8 @@ pub struct IMediaFilter_Vtbl { pub SetSyncSource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pclock: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetSyncSource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pclock: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaParamInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMediaParamInfo, IMediaParamInfo_Vtbl, 0x6d6cbb60_a223_44aa_842f_a2f06750be6d); +::windows_core::imp::interface_hierarchy!(IMediaParamInfo, ::windows_core::IUnknown); impl IMediaParamInfo { pub unsafe fn GetParamCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -10546,13 +9011,6 @@ impl IMediaParamInfo { (::windows_core::Interface::vtable(self).GetCurrentTimeFormat)(::windows_core::Interface::as_raw(self), pguidtimeformat, ptimedata).ok() } } -::windows_core::imp::interface_hierarchy!(IMediaParamInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaParamInfo { - type Vtable = IMediaParamInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaParamInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6d6cbb60_a223_44aa_842f_a2f06750be6d); -} #[repr(C)] #[doc(hidden)] pub struct IMediaParamInfo_Vtbl { @@ -10564,9 +9022,8 @@ pub struct IMediaParamInfo_Vtbl { pub GetSupportedTimeFormat: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwformatindex: u32, pguidtimeformat: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, pub GetCurrentTimeFormat: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pguidtimeformat: *mut ::windows_core::GUID, ptimedata: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaParams(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMediaParams, IMediaParams_Vtbl, 0x6d6cbb61_a223_44aa_842f_a2f06750be6e); +::windows_core::imp::interface_hierarchy!(IMediaParams, ::windows_core::IUnknown); impl IMediaParams { pub unsafe fn GetParam(&self, dwparamindex: u32) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -10585,13 +9042,6 @@ impl IMediaParams { (::windows_core::Interface::vtable(self).SetTimeFormat)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(guidtimeformat), mptimedata).ok() } } -::windows_core::imp::interface_hierarchy!(IMediaParams, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaParams { - type Vtable = IMediaParams_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaParams { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6d6cbb61_a223_44aa_842f_a2f06750be6e); -} #[repr(C)] #[doc(hidden)] pub struct IMediaParams_Vtbl { @@ -10602,11 +9052,15 @@ pub struct IMediaParams_Vtbl { pub FlushEnvelope: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwparamindex: u32, reftimestart: i64, reftimeend: i64) -> ::windows_core::HRESULT, pub SetTimeFormat: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guidtimeformat: ::windows_core::GUID, mptimedata: u32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaPosition(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMediaPosition, + IMediaPosition_Vtbl, + 0x56a868b2_0ad4_11ce_b03a_0020af0ba770 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMediaPosition, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMediaPosition { pub unsafe fn Duration(&self) -> ::windows_core::Result { @@ -10651,16 +9105,6 @@ impl IMediaPosition { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMediaPosition, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMediaPosition { - type Vtable = IMediaPosition_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMediaPosition { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x56a868b2_0ad4_11ce_b03a_0020af0ba770); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMediaPosition_Vtbl { @@ -10677,11 +9121,15 @@ pub struct IMediaPosition_Vtbl { pub CanSeekForward: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcanseekforward: *mut i32) -> ::windows_core::HRESULT, pub CanSeekBackward: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcanseekbackward: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`"] #[cfg(feature = "Win32_System_Com_StructuredStorage")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaPropertyBag(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`"] + IMediaPropertyBag, + IMediaPropertyBag_Vtbl, + 0x6025a880_c0d5_11d0_bd4e_00a0c911ce86 +); +#[cfg(feature = "Win32_System_Com_StructuredStorage")] +::windows_core::imp::interface_hierarchy!(IMediaPropertyBag, ::windows_core::IUnknown, super::super::System::Com::StructuredStorage::IPropertyBag); #[cfg(feature = "Win32_System_Com_StructuredStorage")] impl IMediaPropertyBag { #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -10708,16 +9156,6 @@ impl IMediaPropertyBag { } } #[cfg(feature = "Win32_System_Com_StructuredStorage")] -::windows_core::imp::interface_hierarchy!(IMediaPropertyBag, ::windows_core::IUnknown, super::super::System::Com::StructuredStorage::IPropertyBag); -#[cfg(feature = "Win32_System_Com_StructuredStorage")] -unsafe impl ::windows_core::Interface for IMediaPropertyBag { - type Vtable = IMediaPropertyBag_Vtbl; -} -#[cfg(feature = "Win32_System_Com_StructuredStorage")] -unsafe impl ::windows_core::ComInterface for IMediaPropertyBag { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6025a880_c0d5_11d0_bd4e_00a0c911ce86); -} -#[cfg(feature = "Win32_System_Com_StructuredStorage")] #[repr(C)] #[doc(hidden)] pub struct IMediaPropertyBag_Vtbl { @@ -10727,9 +9165,8 @@ pub struct IMediaPropertyBag_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] EnumProperty: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaSample(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMediaSample, IMediaSample_Vtbl, 0x56a8689a_0ad4_11ce_b03a_0020af0ba770); +::windows_core::imp::interface_hierarchy!(IMediaSample, ::windows_core::IUnknown); impl IMediaSample { pub unsafe fn GetPointer(&self) -> ::windows_core::Result<*mut u8> { let mut result__ = ::std::mem::zeroed(); @@ -10795,13 +9232,6 @@ impl IMediaSample { (::windows_core::Interface::vtable(self).SetMediaTime)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(ptimestart.unwrap_or(::std::ptr::null())), ::core::mem::transmute(ptimeend.unwrap_or(::std::ptr::null()))).ok() } } -::windows_core::imp::interface_hierarchy!(IMediaSample, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaSample { - type Vtable = IMediaSample_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaSample { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x56a8689a_0ad4_11ce_b03a_0020af0ba770); -} #[repr(C)] #[doc(hidden)] pub struct IMediaSample_Vtbl { @@ -10829,9 +9259,8 @@ pub struct IMediaSample_Vtbl { pub GetMediaTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptimestart: *mut i64, ptimeend: *mut i64) -> ::windows_core::HRESULT, pub SetMediaTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptimestart: *const i64, ptimeend: *const i64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaSample2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMediaSample2, IMediaSample2_Vtbl, 0x36b73884_c2c8_11cf_8b46_00805f6cef60); +::windows_core::imp::interface_hierarchy!(IMediaSample2, ::windows_core::IUnknown, IMediaSample); impl IMediaSample2 { pub unsafe fn GetPointer(&self) -> ::windows_core::Result<*mut u8> { let mut result__ = ::std::mem::zeroed(); @@ -10903,13 +9332,6 @@ impl IMediaSample2 { (::windows_core::Interface::vtable(self).SetProperties)(::windows_core::Interface::as_raw(self), pbproperties.len().try_into().unwrap(), ::core::mem::transmute(pbproperties.as_ptr())).ok() } } -::windows_core::imp::interface_hierarchy!(IMediaSample2, ::windows_core::IUnknown, IMediaSample); -unsafe impl ::windows_core::Interface for IMediaSample2 { - type Vtable = IMediaSample2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaSample2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x36b73884_c2c8_11cf_8b46_00805f6cef60); -} #[repr(C)] #[doc(hidden)] pub struct IMediaSample2_Vtbl { @@ -10917,31 +9339,22 @@ pub struct IMediaSample2_Vtbl { pub GetProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cbproperties: u32, pbproperties: *mut u8) -> ::windows_core::HRESULT, pub SetProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cbproperties: u32, pbproperties: *const u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaSample2Config(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMediaSample2Config, IMediaSample2Config_Vtbl, 0x68961e68_832b_41ea_bc91_63593f3e70e3); +::windows_core::imp::interface_hierarchy!(IMediaSample2Config, ::windows_core::IUnknown); impl IMediaSample2Config { pub unsafe fn GetSurface(&self) -> ::windows_core::Result<::windows_core::IUnknown> { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetSurface)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMediaSample2Config, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaSample2Config { - type Vtable = IMediaSample2Config_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaSample2Config { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x68961e68_832b_41ea_bc91_63593f3e70e3); -} #[repr(C)] #[doc(hidden)] pub struct IMediaSample2Config_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetSurface: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppdirect3dsurface9: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaSeeking(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMediaSeeking, IMediaSeeking_Vtbl, 0x36b73880_c2c8_11cf_8b46_00805f6cef60); +::windows_core::imp::interface_hierarchy!(IMediaSeeking, ::windows_core::IUnknown); impl IMediaSeeking { pub unsafe fn GetCapabilities(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -11003,13 +9416,6 @@ impl IMediaSeeking { (::windows_core::Interface::vtable(self).GetPreroll)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMediaSeeking, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaSeeking { - type Vtable = IMediaSeeking_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaSeeking { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x36b73880_c2c8_11cf_8b46_00805f6cef60); -} #[repr(C)] #[doc(hidden)] pub struct IMediaSeeking_Vtbl { @@ -11032,9 +9438,8 @@ pub struct IMediaSeeking_Vtbl { pub GetRate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdrate: *mut f64) -> ::windows_core::HRESULT, pub GetPreroll: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pllpreroll: *mut i64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaStream(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMediaStream, IMediaStream_Vtbl, 0xb502d1bd_9a57_11d0_8fde_00c04fd9189d); +::windows_core::imp::interface_hierarchy!(IMediaStream, ::windows_core::IUnknown); impl IMediaStream { pub unsafe fn GetMultiMediaStream(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -11064,13 +9469,6 @@ impl IMediaStream { (::windows_core::Interface::vtable(self).SendEndOfStream)(::windows_core::Interface::as_raw(self), dwflags).ok() } } -::windows_core::imp::interface_hierarchy!(IMediaStream, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaStream { - type Vtable = IMediaStream_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaStream { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb502d1bd_9a57_11d0_8fde_00c04fd9189d); -} #[repr(C)] #[doc(hidden)] pub struct IMediaStream_Vtbl { @@ -11082,11 +9480,15 @@ pub struct IMediaStream_Vtbl { pub CreateSharedSample: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pexistingsample: *mut ::core::ffi::c_void, dwflags: u32, ppnewsample: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SendEndOfStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwflags: u32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaStreamFilter(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMediaStreamFilter, + IMediaStreamFilter_Vtbl, + 0xbebe595e_9a6f_11d0_8fde_00c04fd9189d +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMediaStreamFilter, ::windows_core::IUnknown, super::super::System::Com::IPersist, IMediaFilter, IBaseFilter); #[cfg(feature = "Win32_System_Com")] impl IMediaStreamFilter { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -11184,16 +9586,6 @@ impl IMediaStreamFilter { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMediaStreamFilter, ::windows_core::IUnknown, super::super::System::Com::IPersist, IMediaFilter, IBaseFilter); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMediaStreamFilter { - type Vtable = IMediaStreamFilter_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMediaStreamFilter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbebe595e_9a6f_11d0_8fde_00c04fd9189d); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMediaStreamFilter_Vtbl { @@ -11208,11 +9600,15 @@ pub struct IMediaStreamFilter_Vtbl { pub Flush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bcanceleos: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub EndOfStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaTypeInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMediaTypeInfo, + IMediaTypeInfo_Vtbl, + 0x56a868bc_0ad4_11ce_b03a_0020af0ba770 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMediaTypeInfo, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMediaTypeInfo { pub unsafe fn Type(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -11225,16 +9621,6 @@ impl IMediaTypeInfo { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMediaTypeInfo, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMediaTypeInfo { - type Vtable = IMediaTypeInfo_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMediaTypeInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x56a868bc_0ad4_11ce_b03a_0020af0ba770); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMediaTypeInfo_Vtbl { @@ -11242,9 +9628,8 @@ pub struct IMediaTypeInfo_Vtbl { pub Type: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strtype: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub Subtype: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strtype: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMemAllocator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMemAllocator, IMemAllocator_Vtbl, 0x56a8689c_0ad4_11ce_b03a_0020af0ba770); +::windows_core::imp::interface_hierarchy!(IMemAllocator, ::windows_core::IUnknown); impl IMemAllocator { pub unsafe fn SetProperties(&self, prequest: *const ALLOCATOR_PROPERTIES) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -11270,13 +9655,6 @@ impl IMemAllocator { (::windows_core::Interface::vtable(self).ReleaseBuffer)(::windows_core::Interface::as_raw(self), pbuffer.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMemAllocator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMemAllocator { - type Vtable = IMemAllocator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMemAllocator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x56a8689c_0ad4_11ce_b03a_0020af0ba770); -} #[repr(C)] #[doc(hidden)] pub struct IMemAllocator_Vtbl { @@ -11288,9 +9666,8 @@ pub struct IMemAllocator_Vtbl { pub GetBuffer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppbuffer: *mut *mut ::core::ffi::c_void, pstarttime: *const i64, pendtime: *const i64, dwflags: u32) -> ::windows_core::HRESULT, pub ReleaseBuffer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbuffer: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMemAllocatorCallbackTemp(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMemAllocatorCallbackTemp, IMemAllocatorCallbackTemp_Vtbl, 0x379a0cf0_c1de_11d2_abf5_00a0c905f375); +::windows_core::imp::interface_hierarchy!(IMemAllocatorCallbackTemp, ::windows_core::IUnknown, IMemAllocator); impl IMemAllocatorCallbackTemp { pub unsafe fn SetProperties(&self, prequest: *const ALLOCATOR_PROPERTIES) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -11326,13 +9703,6 @@ impl IMemAllocatorCallbackTemp { (::windows_core::Interface::vtable(self).GetFreeCount)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMemAllocatorCallbackTemp, ::windows_core::IUnknown, IMemAllocator); -unsafe impl ::windows_core::Interface for IMemAllocatorCallbackTemp { - type Vtable = IMemAllocatorCallbackTemp_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMemAllocatorCallbackTemp { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x379a0cf0_c1de_11d2_abf5_00a0c905f375); -} #[repr(C)] #[doc(hidden)] pub struct IMemAllocatorCallbackTemp_Vtbl { @@ -11340,30 +9710,21 @@ pub struct IMemAllocatorCallbackTemp_Vtbl { pub SetNotify: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pnotify: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetFreeCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plbuffersfree: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMemAllocatorNotifyCallbackTemp(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMemAllocatorNotifyCallbackTemp, IMemAllocatorNotifyCallbackTemp_Vtbl, 0x92980b30_c1de_11d2_abf5_00a0c905f375); +::windows_core::imp::interface_hierarchy!(IMemAllocatorNotifyCallbackTemp, ::windows_core::IUnknown); impl IMemAllocatorNotifyCallbackTemp { pub unsafe fn NotifyRelease(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).NotifyRelease)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IMemAllocatorNotifyCallbackTemp, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMemAllocatorNotifyCallbackTemp { - type Vtable = IMemAllocatorNotifyCallbackTemp_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMemAllocatorNotifyCallbackTemp { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x92980b30_c1de_11d2_abf5_00a0c905f375); -} #[repr(C)] #[doc(hidden)] pub struct IMemAllocatorNotifyCallbackTemp_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub NotifyRelease: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMemInputPin(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMemInputPin, IMemInputPin_Vtbl, 0x56a8689d_0ad4_11ce_b03a_0020af0ba770); +::windows_core::imp::interface_hierarchy!(IMemInputPin, ::windows_core::IUnknown); impl IMemInputPin { pub unsafe fn GetAllocator(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -11394,13 +9755,6 @@ impl IMemInputPin { (::windows_core::Interface::vtable(self).ReceiveCanBlock)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IMemInputPin, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMemInputPin { - type Vtable = IMemInputPin_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMemInputPin { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x56a8689d_0ad4_11ce_b03a_0020af0ba770); -} #[repr(C)] #[doc(hidden)] pub struct IMemInputPin_Vtbl { @@ -11412,9 +9766,8 @@ pub struct IMemInputPin_Vtbl { pub ReceiveMultiple: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psamples: *const *mut ::core::ffi::c_void, nsamples: i32, nsamplesprocessed: *mut i32) -> ::windows_core::HRESULT, pub ReceiveCanBlock: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMemoryData(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMemoryData, IMemoryData_Vtbl, 0x327fc560_af60_11d0_8212_00c04fc32c45); +::windows_core::imp::interface_hierarchy!(IMemoryData, ::windows_core::IUnknown); impl IMemoryData { pub unsafe fn SetBuffer(&self, cbsize: u32, pbdata: *const u8, dwflags: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetBuffer)(::windows_core::Interface::as_raw(self), cbsize, pbdata, dwflags).ok() @@ -11426,13 +9779,6 @@ impl IMemoryData { (::windows_core::Interface::vtable(self).SetActual)(::windows_core::Interface::as_raw(self), cbdatavalid).ok() } } -::windows_core::imp::interface_hierarchy!(IMemoryData, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMemoryData { - type Vtable = IMemoryData_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMemoryData { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x327fc560_af60_11d0_8212_00c04fc32c45); -} #[repr(C)] #[doc(hidden)] pub struct IMemoryData_Vtbl { @@ -11441,9 +9787,8 @@ pub struct IMemoryData_Vtbl { pub GetInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwlength: *mut u32, ppbdata: *mut *mut u8, pcbactualdata: *mut u32) -> ::windows_core::HRESULT, pub SetActual: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cbdatavalid: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMixerOCX(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMixerOCX, IMixerOCX_Vtbl, 0x81a3bd32_dee1_11d1_8508_00a0c91f9ca0); +::windows_core::imp::interface_hierarchy!(IMixerOCX, ::windows_core::IUnknown); impl IMixerOCX { pub unsafe fn OnDisplayChange(&self, ulbitsperpixel: u32, ulscreenwidth: u32, ulscreenheight: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnDisplayChange)(::windows_core::Interface::as_raw(self), ulbitsperpixel, ulscreenwidth, ulscreenheight).ok() @@ -11479,13 +9824,6 @@ impl IMixerOCX { (::windows_core::Interface::vtable(self).UnAdvise)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IMixerOCX, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMixerOCX { - type Vtable = IMixerOCX_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMixerOCX { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x81a3bd32_dee1_11d1_8508_00a0c91f9ca0); -} #[repr(C)] #[doc(hidden)] pub struct IMixerOCX_Vtbl { @@ -11502,9 +9840,8 @@ pub struct IMixerOCX_Vtbl { pub Advise: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pmdns: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub UnAdvise: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMixerOCXNotify(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMixerOCXNotify, IMixerOCXNotify_Vtbl, 0x81a3bd31_dee1_11d1_8508_00a0c91f9ca0); +::windows_core::imp::interface_hierarchy!(IMixerOCXNotify, ::windows_core::IUnknown); impl IMixerOCXNotify { pub unsafe fn OnInvalidateRect(&self, lpcrect: *const super::super::Foundation::RECT) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnInvalidateRect)(::windows_core::Interface::as_raw(self), lpcrect).ok() @@ -11516,13 +9853,6 @@ impl IMixerOCXNotify { (::windows_core::Interface::vtable(self).OnDataChange)(::windows_core::Interface::as_raw(self), uldataflags).ok() } } -::windows_core::imp::interface_hierarchy!(IMixerOCXNotify, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMixerOCXNotify { - type Vtable = IMixerOCXNotify_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMixerOCXNotify { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x81a3bd31_dee1_11d1_8508_00a0c91f9ca0); -} #[repr(C)] #[doc(hidden)] pub struct IMixerOCXNotify_Vtbl { @@ -11531,9 +9861,8 @@ pub struct IMixerOCXNotify_Vtbl { pub OnStatusChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulstatusflags: u32) -> ::windows_core::HRESULT, pub OnDataChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uldataflags: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMixerPinConfig(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMixerPinConfig, IMixerPinConfig_Vtbl, 0x593cdde1_0759_11d1_9e69_00c04fd7c15b); +::windows_core::imp::interface_hierarchy!(IMixerPinConfig, ::windows_core::IUnknown); impl IMixerPinConfig { pub unsafe fn SetRelativePosition(&self, dwleft: u32, dwtop: u32, dwright: u32, dwbottom: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetRelativePosition)(::windows_core::Interface::as_raw(self), dwleft, dwtop, dwright, dwbottom).ok() @@ -11575,13 +9904,6 @@ impl IMixerPinConfig { (::windows_core::Interface::vtable(self).GetStreamTransparent)(::windows_core::Interface::as_raw(self), pbstreamtransparent).ok() } } -::windows_core::imp::interface_hierarchy!(IMixerPinConfig, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMixerPinConfig { - type Vtable = IMixerPinConfig_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMixerPinConfig { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x593cdde1_0759_11d1_9e69_00c04fd7c15b); -} #[repr(C)] #[doc(hidden)] pub struct IMixerPinConfig_Vtbl { @@ -11599,9 +9921,8 @@ pub struct IMixerPinConfig_Vtbl { pub SetStreamTransparent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstreamtransparent: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub GetStreamTransparent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstreamtransparent: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMixerPinConfig2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMixerPinConfig2, IMixerPinConfig2_Vtbl, 0xebf47182_8764_11d1_9e69_00c04fd7c15b); +::windows_core::imp::interface_hierarchy!(IMixerPinConfig2, ::windows_core::IUnknown, IMixerPinConfig); impl IMixerPinConfig2 { pub unsafe fn SetRelativePosition(&self, dwleft: u32, dwtop: u32, dwright: u32, dwbottom: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.SetRelativePosition)(::windows_core::Interface::as_raw(self), dwleft, dwtop, dwright, dwbottom).ok() @@ -11653,13 +9974,6 @@ impl IMixerPinConfig2 { (::windows_core::Interface::vtable(self).GetOverlaySurfaceColorControls)(::windows_core::Interface::as_raw(self), pcolorcontrol).ok() } } -::windows_core::imp::interface_hierarchy!(IMixerPinConfig2, ::windows_core::IUnknown, IMixerPinConfig); -unsafe impl ::windows_core::Interface for IMixerPinConfig2 { - type Vtable = IMixerPinConfig2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMixerPinConfig2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xebf47182_8764_11d1_9e69_00c04fd7c15b); -} #[repr(C)] #[doc(hidden)] pub struct IMixerPinConfig2_Vtbl { @@ -11673,9 +9987,8 @@ pub struct IMixerPinConfig2_Vtbl { #[cfg(not(feature = "Win32_Graphics_DirectDraw"))] GetOverlaySurfaceColorControls: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMpeg2Demultiplexer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMpeg2Demultiplexer, IMpeg2Demultiplexer_Vtbl, 0x436eee9c_264f_4242_90e1_4e330c107512); +::windows_core::imp::interface_hierarchy!(IMpeg2Demultiplexer, ::windows_core::IUnknown); impl IMpeg2Demultiplexer { #[doc = "Required features: `\"Win32_Media_MediaFoundation\"`"] #[cfg(feature = "Win32_Media_MediaFoundation")] @@ -11701,13 +10014,6 @@ impl IMpeg2Demultiplexer { (::windows_core::Interface::vtable(self).DeleteOutputPin)(::windows_core::Interface::as_raw(self), pszpinname.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMpeg2Demultiplexer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMpeg2Demultiplexer { - type Vtable = IMpeg2Demultiplexer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMpeg2Demultiplexer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x436eee9c_264f_4242_90e1_4e330c107512); -} #[repr(C)] #[doc(hidden)] pub struct IMpeg2Demultiplexer_Vtbl { @@ -11722,9 +10028,8 @@ pub struct IMpeg2Demultiplexer_Vtbl { SetOutputPinMediaType: usize, pub DeleteOutputPin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszpinname: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMpegAudioDecoder(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMpegAudioDecoder, IMpegAudioDecoder_Vtbl, 0xb45dd570_3c77_11d1_abe1_00a0c905f375); +::windows_core::imp::interface_hierarchy!(IMpegAudioDecoder, ::windows_core::IUnknown); impl IMpegAudioDecoder { pub unsafe fn FrequencyDivider(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -11773,13 +10078,6 @@ impl IMpegAudioDecoder { (::windows_core::Interface::vtable(self).AudioFormat)(::windows_core::Interface::as_raw(self), lpfmt).ok() } } -::windows_core::imp::interface_hierarchy!(IMpegAudioDecoder, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMpegAudioDecoder { - type Vtable = IMpegAudioDecoder_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMpegAudioDecoder { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb45dd570_3c77_11d1_abe1_00a0c905f375); -} #[repr(C)] #[doc(hidden)] pub struct IMpegAudioDecoder_Vtbl { @@ -11801,9 +10099,8 @@ pub struct IMpegAudioDecoder_Vtbl { #[cfg(not(feature = "Win32_Media_Audio"))] AudioFormat: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMultiMediaStream(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMultiMediaStream, IMultiMediaStream_Vtbl, 0xb502d1bc_9a57_11d0_8fde_00c04fd9189d); +::windows_core::imp::interface_hierarchy!(IMultiMediaStream, ::windows_core::IUnknown); impl IMultiMediaStream { pub unsafe fn GetInformation(&self, pdwflags: *mut MMSSF_GET_INFORMATION_FLAGS, pstreamtype: *mut STREAM_TYPE) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetInformation)(::windows_core::Interface::as_raw(self), pdwflags, pstreamtype).ok() @@ -11839,13 +10136,6 @@ impl IMultiMediaStream { (::windows_core::Interface::vtable(self).GetEndOfStreamEventHandle)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMultiMediaStream, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMultiMediaStream { - type Vtable = IMultiMediaStream_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMultiMediaStream { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb502d1bc_9a57_11d0_8fde_00c04fd9189d); -} #[repr(C)] #[doc(hidden)] pub struct IMultiMediaStream_Vtbl { @@ -11860,9 +10150,8 @@ pub struct IMultiMediaStream_Vtbl { pub Seek: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, seektime: i64) -> ::windows_core::HRESULT, pub GetEndOfStreamEventHandle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pheos: *mut super::super::Foundation::HANDLE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOverlay(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOverlay, IOverlay_Vtbl, 0x56a868a1_0ad4_11ce_b03a_0020af0ba770); +::windows_core::imp::interface_hierarchy!(IOverlay, ::windows_core::IUnknown); impl IOverlay { #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] #[cfg(feature = "Win32_Graphics_Gdi")] @@ -11907,13 +10196,6 @@ impl IOverlay { (::windows_core::Interface::vtable(self).Unadvise)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IOverlay, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOverlay { - type Vtable = IOverlay_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOverlay { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x56a868a1_0ad4_11ce_b03a_0020af0ba770); -} #[repr(C)] #[doc(hidden)] pub struct IOverlay_Vtbl { @@ -11938,9 +10220,8 @@ pub struct IOverlay_Vtbl { pub Advise: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, poverlaynotify: *mut ::core::ffi::c_void, dwinterests: u32) -> ::windows_core::HRESULT, pub Unadvise: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOverlayNotify(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOverlayNotify, IOverlayNotify_Vtbl, 0x56a868a0_0ad4_11ce_b03a_0020af0ba770); +::windows_core::imp::interface_hierarchy!(IOverlayNotify, ::windows_core::IUnknown); impl IOverlayNotify { #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] #[cfg(feature = "Win32_Graphics_Gdi")] @@ -11959,13 +10240,6 @@ impl IOverlayNotify { (::windows_core::Interface::vtable(self).OnPositionChange)(::windows_core::Interface::as_raw(self), psourcerect, pdestinationrect).ok() } } -::windows_core::imp::interface_hierarchy!(IOverlayNotify, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOverlayNotify { - type Vtable = IOverlayNotify_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOverlayNotify { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x56a868a0_0ad4_11ce_b03a_0020af0ba770); -} #[repr(C)] #[doc(hidden)] pub struct IOverlayNotify_Vtbl { @@ -11981,9 +10255,8 @@ pub struct IOverlayNotify_Vtbl { pub OnColorKeyChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcolorkey: *const COLORKEY) -> ::windows_core::HRESULT, pub OnPositionChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psourcerect: *const super::super::Foundation::RECT, pdestinationrect: *const super::super::Foundation::RECT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOverlayNotify2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOverlayNotify2, IOverlayNotify2_Vtbl, 0x680efa10_d535_11d1_87c8_00a0c9223196); +::windows_core::imp::interface_hierarchy!(IOverlayNotify2, ::windows_core::IUnknown, IOverlayNotify); impl IOverlayNotify2 { #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] #[cfg(feature = "Win32_Graphics_Gdi")] @@ -12010,13 +10283,6 @@ impl IOverlayNotify2 { (::windows_core::Interface::vtable(self).OnDisplayChange)(::windows_core::Interface::as_raw(self), hmonitor.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IOverlayNotify2, ::windows_core::IUnknown, IOverlayNotify); -unsafe impl ::windows_core::Interface for IOverlayNotify2 { - type Vtable = IOverlayNotify2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOverlayNotify2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x680efa10_d535_11d1_87c8_00a0c9223196); -} #[repr(C)] #[doc(hidden)] pub struct IOverlayNotify2_Vtbl { @@ -12026,11 +10292,15 @@ pub struct IOverlayNotify2_Vtbl { #[cfg(not(feature = "Win32_Graphics_Gdi"))] OnDisplayChange: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPersistMediaPropertyBag(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IPersistMediaPropertyBag, + IPersistMediaPropertyBag_Vtbl, + 0x5738e040_b67f_11d0_bd4d_00a0c911ce86 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IPersistMediaPropertyBag, ::windows_core::IUnknown, super::super::System::Com::IPersist); #[cfg(feature = "Win32_System_Com")] impl IPersistMediaPropertyBag { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -12063,16 +10333,6 @@ impl IPersistMediaPropertyBag { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IPersistMediaPropertyBag, ::windows_core::IUnknown, super::super::System::Com::IPersist); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IPersistMediaPropertyBag { - type Vtable = IPersistMediaPropertyBag_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IPersistMediaPropertyBag { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5738e040_b67f_11d0_bd4d_00a0c911ce86); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IPersistMediaPropertyBag_Vtbl { @@ -12087,9 +10347,8 @@ pub struct IPersistMediaPropertyBag_Vtbl { #[cfg(not(feature = "Win32_System_Com_StructuredStorage"))] Save: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPin(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPin, IPin_Vtbl, 0x56a86891_0ad4_11ce_b03a_0020af0ba770); +::windows_core::imp::interface_hierarchy!(IPin, ::windows_core::IUnknown); impl IPin { #[doc = "Required features: `\"Win32_Media_MediaFoundation\"`"] #[cfg(feature = "Win32_Media_MediaFoundation")] @@ -12157,13 +10416,6 @@ impl IPin { (::windows_core::Interface::vtable(self).NewSegment)(::windows_core::Interface::as_raw(self), tstart, tstop, drate).ok() } } -::windows_core::imp::interface_hierarchy!(IPin, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPin { - type Vtable = IPin_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPin { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x56a86891_0ad4_11ce_b03a_0020af0ba770); -} #[repr(C)] #[doc(hidden)] pub struct IPin_Vtbl { @@ -12199,9 +10451,8 @@ pub struct IPin_Vtbl { pub EndFlush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub NewSegment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, tstart: i64, tstop: i64, drate: f64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPinConnection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPinConnection, IPinConnection_Vtbl, 0x4a9a62d3_27d4_403d_91e9_89f540e55534); +::windows_core::imp::interface_hierarchy!(IPinConnection, ::windows_core::IUnknown); impl IPinConnection { #[doc = "Required features: `\"Win32_Media_MediaFoundation\"`"] #[cfg(feature = "Win32_Media_MediaFoundation")] @@ -12221,13 +10472,6 @@ impl IPinConnection { (::windows_core::Interface::vtable(self).DynamicDisconnect)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IPinConnection, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPinConnection { - type Vtable = IPinConnection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPinConnection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4a9a62d3_27d4_403d_91e9_89f540e55534); -} #[repr(C)] #[doc(hidden)] pub struct IPinConnection_Vtbl { @@ -12240,9 +10484,8 @@ pub struct IPinConnection_Vtbl { pub IsEndPin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub DynamicDisconnect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPinFlowControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPinFlowControl, IPinFlowControl_Vtbl, 0xc56e9858_dbf3_4f6b_8119_384af2060deb); +::windows_core::imp::interface_hierarchy!(IPinFlowControl, ::windows_core::IUnknown); impl IPinFlowControl { pub unsafe fn Block(&self, dwblockflags: u32, hevent: P0) -> ::windows_core::Result<()> where @@ -12251,24 +10494,21 @@ impl IPinFlowControl { (::windows_core::Interface::vtable(self).Block)(::windows_core::Interface::as_raw(self), dwblockflags, hevent.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IPinFlowControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPinFlowControl { - type Vtable = IPinFlowControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPinFlowControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc56e9858_dbf3_4f6b_8119_384af2060deb); -} #[repr(C)] #[doc(hidden)] pub struct IPinFlowControl_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Block: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwblockflags: u32, hevent: super::super::Foundation::HANDLE) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPinInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IPinInfo, + IPinInfo_Vtbl, + 0x56a868bd_0ad4_11ce_b03a_0020af0ba770 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IPinInfo, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IPinInfo { pub unsafe fn Pin(&self) -> ::windows_core::Result<::windows_core::IUnknown> { @@ -12340,16 +10580,6 @@ impl IPinInfo { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IPinInfo, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IPinInfo { - type Vtable = IPinInfo_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IPinInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x56a868bd_0ad4_11ce_b03a_0020af0ba770); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IPinInfo_Vtbl { @@ -12383,9 +10613,8 @@ pub struct IPinInfo_Vtbl { pub Disconnect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Render: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IQualProp(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IQualProp, IQualProp_Vtbl, 0x1bd0ecb0_f8e2_11ce_aac6_0020af0b99a3); +::windows_core::imp::interface_hierarchy!(IQualProp, ::windows_core::IUnknown); impl IQualProp { pub unsafe fn FramesDroppedInRenderer(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -12412,13 +10641,6 @@ impl IQualProp { (::windows_core::Interface::vtable(self).DevSyncOffset)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IQualProp, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IQualProp { - type Vtable = IQualProp_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IQualProp { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1bd0ecb0_f8e2_11ce_aac6_0020af0b99a3); -} #[repr(C)] #[doc(hidden)] pub struct IQualProp_Vtbl { @@ -12430,9 +10652,8 @@ pub struct IQualProp_Vtbl { pub AvgSyncOffset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, piavg: *mut i32) -> ::windows_core::HRESULT, pub DevSyncOffset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pidev: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IQualityControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IQualityControl, IQualityControl_Vtbl, 0x56a868a5_0ad4_11ce_b03a_0020af0ba770); +::windows_core::imp::interface_hierarchy!(IQualityControl, ::windows_core::IUnknown); impl IQualityControl { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -12449,13 +10670,6 @@ impl IQualityControl { (::windows_core::Interface::vtable(self).SetSink)(::windows_core::Interface::as_raw(self), piqc.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IQualityControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IQualityControl { - type Vtable = IQualityControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IQualityControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x56a868a5_0ad4_11ce_b03a_0020af0ba770); -} #[repr(C)] #[doc(hidden)] pub struct IQualityControl_Vtbl { @@ -12466,9 +10680,8 @@ pub struct IQualityControl_Vtbl { Notify: usize, pub SetSink: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, piqc: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IQueueCommand(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IQueueCommand, IQueueCommand_Vtbl, 0x56a868b7_0ad4_11ce_b03a_0020af0ba770); +::windows_core::imp::interface_hierarchy!(IQueueCommand, ::windows_core::IUnknown); impl IQueueCommand { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -12481,13 +10694,6 @@ impl IQueueCommand { (::windows_core::Interface::vtable(self).InvokeAtPresentationTime)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pcmd), time, iid, dispidmethod, wflags, cargs, pdispparams, pvarresult, puargerr).ok() } } -::windows_core::imp::interface_hierarchy!(IQueueCommand, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IQueueCommand { - type Vtable = IQueueCommand_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IQueueCommand { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x56a868b7_0ad4_11ce_b03a_0020af0ba770); -} #[repr(C)] #[doc(hidden)] pub struct IQueueCommand_Vtbl { @@ -12501,11 +10707,15 @@ pub struct IQueueCommand_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] InvokeAtPresentationTime: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRegFilterInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IRegFilterInfo, + IRegFilterInfo_Vtbl, + 0x56a868bb_0ad4_11ce_b03a_0020af0ba770 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IRegFilterInfo, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IRegFilterInfo { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -12520,16 +10730,6 @@ impl IRegFilterInfo { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IRegFilterInfo, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IRegFilterInfo { - type Vtable = IRegFilterInfo_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IRegFilterInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x56a868bb_0ad4_11ce_b03a_0020af0ba770); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IRegFilterInfo_Vtbl { @@ -12540,9 +10740,8 @@ pub struct IRegFilterInfo_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Filter: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRegisterServiceProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRegisterServiceProvider, IRegisterServiceProvider_Vtbl, 0x7b3a2f01_0751_48dd_b556_004785171c54); +::windows_core::imp::interface_hierarchy!(IRegisterServiceProvider, ::windows_core::IUnknown); impl IRegisterServiceProvider { pub unsafe fn RegisterService(&self, guidservice: *const ::windows_core::GUID, punkobject: P0) -> ::windows_core::Result<()> where @@ -12551,22 +10750,14 @@ impl IRegisterServiceProvider { (::windows_core::Interface::vtable(self).RegisterService)(::windows_core::Interface::as_raw(self), guidservice, punkobject.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IRegisterServiceProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRegisterServiceProvider { - type Vtable = IRegisterServiceProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRegisterServiceProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7b3a2f01_0751_48dd_b556_004785171c54); -} #[repr(C)] #[doc(hidden)] pub struct IRegisterServiceProvider_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub RegisterService: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guidservice: *const ::windows_core::GUID, punkobject: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IResourceConsumer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IResourceConsumer, IResourceConsumer_Vtbl, 0x56a868ad_0ad4_11ce_b03a_0020af0ba770); +::windows_core::imp::interface_hierarchy!(IResourceConsumer, ::windows_core::IUnknown); impl IResourceConsumer { pub unsafe fn AcquireResource(&self, idresource: i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).AcquireResource)(::windows_core::Interface::as_raw(self), idresource).ok() @@ -12575,13 +10766,6 @@ impl IResourceConsumer { (::windows_core::Interface::vtable(self).ReleaseResource)(::windows_core::Interface::as_raw(self), idresource).ok() } } -::windows_core::imp::interface_hierarchy!(IResourceConsumer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IResourceConsumer { - type Vtable = IResourceConsumer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IResourceConsumer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x56a868ad_0ad4_11ce_b03a_0020af0ba770); -} #[repr(C)] #[doc(hidden)] pub struct IResourceConsumer_Vtbl { @@ -12589,9 +10773,8 @@ pub struct IResourceConsumer_Vtbl { pub AcquireResource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, idresource: i32) -> ::windows_core::HRESULT, pub ReleaseResource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, idresource: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IResourceManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IResourceManager, IResourceManager_Vtbl, 0x56a868ac_0ad4_11ce_b03a_0020af0ba770); +::windows_core::imp::interface_hierarchy!(IResourceManager, ::windows_core::IUnknown); impl IResourceManager { pub unsafe fn Register(&self, pname: P0, cresource: i32) -> ::windows_core::Result where @@ -12646,13 +10829,6 @@ impl IResourceManager { (::windows_core::Interface::vtable(self).ReleaseFocus)(::windows_core::Interface::as_raw(self), pfocusobject.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IResourceManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IResourceManager { - type Vtable = IResourceManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IResourceManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x56a868ac_0ad4_11ce_b03a_0020af0ba770); -} #[repr(C)] #[doc(hidden)] pub struct IResourceManager_Vtbl { @@ -12666,9 +10842,8 @@ pub struct IResourceManager_Vtbl { pub SetFocus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfocusobject: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ReleaseFocus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfocusobject: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISeekingPassThru(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISeekingPassThru, ISeekingPassThru_Vtbl, 0x36b73883_c2c8_11cf_8b46_00805f6cef60); +::windows_core::imp::interface_hierarchy!(ISeekingPassThru, ::windows_core::IUnknown); impl ISeekingPassThru { pub unsafe fn Init(&self, bsupportrendering: P0, ppin: P1) -> ::windows_core::Result<()> where @@ -12678,22 +10853,14 @@ impl ISeekingPassThru { (::windows_core::Interface::vtable(self).Init)(::windows_core::Interface::as_raw(self), bsupportrendering.into_param().abi(), ppin.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ISeekingPassThru, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISeekingPassThru { - type Vtable = ISeekingPassThru_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISeekingPassThru { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x36b73883_c2c8_11cf_8b46_00805f6cef60); -} #[repr(C)] #[doc(hidden)] pub struct ISeekingPassThru_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Init: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bsupportrendering: super::super::Foundation::BOOL, ppin: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISelector(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISelector, ISelector_Vtbl, 0x1abdaeca_68b6_4f83_9371_b413907c7b9f); +::windows_core::imp::interface_hierarchy!(ISelector, ::windows_core::IUnknown); impl ISelector { pub unsafe fn NumSources(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -12707,13 +10874,6 @@ impl ISelector { (::windows_core::Interface::vtable(self).SetSourceNodeId)(::windows_core::Interface::as_raw(self), dwpinid).ok() } } -::windows_core::imp::interface_hierarchy!(ISelector, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISelector { - type Vtable = ISelector_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISelector { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1abdaeca_68b6_4f83_9371_b413907c7b9f); -} #[repr(C)] #[doc(hidden)] pub struct ISelector_Vtbl { @@ -12722,9 +10882,8 @@ pub struct ISelector_Vtbl { pub SourceNodeId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwpinid: *mut u32) -> ::windows_core::HRESULT, pub SetSourceNodeId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwpinid: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpecifyParticularPages(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpecifyParticularPages, ISpecifyParticularPages_Vtbl, 0x4c437b91_6e9e_11d1_a704_006097c4e476); +::windows_core::imp::interface_hierarchy!(ISpecifyParticularPages, ::windows_core::IUnknown); impl ISpecifyParticularPages { #[doc = "Required features: `\"Win32_System_Ole\"`"] #[cfg(feature = "Win32_System_Ole")] @@ -12733,13 +10892,6 @@ impl ISpecifyParticularPages { (::windows_core::Interface::vtable(self).GetPages)(::windows_core::Interface::as_raw(self), guidwhatpages, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISpecifyParticularPages, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpecifyParticularPages { - type Vtable = ISpecifyParticularPages_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpecifyParticularPages { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4c437b91_6e9e_11d1_a704_006097c4e476); -} #[repr(C)] #[doc(hidden)] pub struct ISpecifyParticularPages_Vtbl { @@ -12749,9 +10901,8 @@ pub struct ISpecifyParticularPages_Vtbl { #[cfg(not(feature = "Win32_System_Ole"))] GetPages: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStreamBuilder(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IStreamBuilder, IStreamBuilder_Vtbl, 0x56a868bf_0ad4_11ce_b03a_0020af0ba770); +::windows_core::imp::interface_hierarchy!(IStreamBuilder, ::windows_core::IUnknown); impl IStreamBuilder { pub unsafe fn Render(&self, ppinout: P0, pgraph: P1) -> ::windows_core::Result<()> where @@ -12768,13 +10919,6 @@ impl IStreamBuilder { (::windows_core::Interface::vtable(self).Backout)(::windows_core::Interface::as_raw(self), ppinout.into_param().abi(), pgraph.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IStreamBuilder, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStreamBuilder { - type Vtable = IStreamBuilder_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStreamBuilder { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x56a868bf_0ad4_11ce_b03a_0020af0ba770); -} #[repr(C)] #[doc(hidden)] pub struct IStreamBuilder_Vtbl { @@ -12782,9 +10926,8 @@ pub struct IStreamBuilder_Vtbl { pub Render: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppinout: *mut ::core::ffi::c_void, pgraph: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Backout: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppinout: *mut ::core::ffi::c_void, pgraph: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStreamSample(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IStreamSample, IStreamSample_Vtbl, 0xb502d1be_9a57_11d0_8fde_00c04fd9189d); +::windows_core::imp::interface_hierarchy!(IStreamSample, ::windows_core::IUnknown); impl IStreamSample { pub unsafe fn GetMediaStream(&self, ppmediastream: *const ::core::option::Option) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetMediaStream)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(ppmediastream)).ok() @@ -12805,13 +10948,6 @@ impl IStreamSample { (::windows_core::Interface::vtable(self).CompletionStatus)(::windows_core::Interface::as_raw(self), dwflags, dwmilliseconds).ok() } } -::windows_core::imp::interface_hierarchy!(IStreamSample, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStreamSample { - type Vtable = IStreamSample_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStreamSample { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb502d1be_9a57_11d0_8fde_00c04fd9189d); -} #[repr(C)] #[doc(hidden)] pub struct IStreamSample_Vtbl { @@ -12822,9 +10958,8 @@ pub struct IStreamSample_Vtbl { pub Update: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwflags: u32, hevent: super::super::Foundation::HANDLE, pfnapc: super::super::Foundation::PAPCFUNC, dwapcdata: usize) -> ::windows_core::HRESULT, pub CompletionStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwflags: u32, dwmilliseconds: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVMRAspectRatioControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVMRAspectRatioControl, IVMRAspectRatioControl_Vtbl, 0xede80b5c_bad6_4623_b537_65586c9f8dfd); +::windows_core::imp::interface_hierarchy!(IVMRAspectRatioControl, ::windows_core::IUnknown); impl IVMRAspectRatioControl { pub unsafe fn GetAspectRatioMode(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -12834,13 +10969,6 @@ impl IVMRAspectRatioControl { (::windows_core::Interface::vtable(self).SetAspectRatioMode)(::windows_core::Interface::as_raw(self), dwarmode).ok() } } -::windows_core::imp::interface_hierarchy!(IVMRAspectRatioControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVMRAspectRatioControl { - type Vtable = IVMRAspectRatioControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVMRAspectRatioControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xede80b5c_bad6_4623_b537_65586c9f8dfd); -} #[repr(C)] #[doc(hidden)] pub struct IVMRAspectRatioControl_Vtbl { @@ -12848,9 +10976,8 @@ pub struct IVMRAspectRatioControl_Vtbl { pub GetAspectRatioMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpdwarmode: *mut u32) -> ::windows_core::HRESULT, pub SetAspectRatioMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwarmode: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVMRAspectRatioControl9(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVMRAspectRatioControl9, IVMRAspectRatioControl9_Vtbl, 0x00d96c29_bbde_4efc_9901_bb5036392146); +::windows_core::imp::interface_hierarchy!(IVMRAspectRatioControl9, ::windows_core::IUnknown); impl IVMRAspectRatioControl9 { pub unsafe fn GetAspectRatioMode(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -12860,13 +10987,6 @@ impl IVMRAspectRatioControl9 { (::windows_core::Interface::vtable(self).SetAspectRatioMode)(::windows_core::Interface::as_raw(self), dwarmode).ok() } } -::windows_core::imp::interface_hierarchy!(IVMRAspectRatioControl9, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVMRAspectRatioControl9 { - type Vtable = IVMRAspectRatioControl9_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVMRAspectRatioControl9 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00d96c29_bbde_4efc_9901_bb5036392146); -} #[repr(C)] #[doc(hidden)] pub struct IVMRAspectRatioControl9_Vtbl { @@ -12874,9 +10994,8 @@ pub struct IVMRAspectRatioControl9_Vtbl { pub GetAspectRatioMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpdwarmode: *mut u32) -> ::windows_core::HRESULT, pub SetAspectRatioMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwarmode: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVMRDeinterlaceControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVMRDeinterlaceControl, IVMRDeinterlaceControl_Vtbl, 0xbb057577_0db8_4e6a_87a7_1a8c9a505a0f); +::windows_core::imp::interface_hierarchy!(IVMRDeinterlaceControl, ::windows_core::IUnknown); impl IVMRDeinterlaceControl { pub unsafe fn GetNumberOfDeinterlaceModes(&self, lpvideodescription: *const VMRVideoDesc, lpdwnumdeinterlacemodes: *mut u32, lpdeinterlacemodes: *mut ::windows_core::GUID) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetNumberOfDeinterlaceModes)(::windows_core::Interface::as_raw(self), lpvideodescription, lpdwnumdeinterlacemodes, lpdeinterlacemodes).ok() @@ -12903,13 +11022,6 @@ impl IVMRDeinterlaceControl { (::windows_core::Interface::vtable(self).GetActualDeinterlaceMode)(::windows_core::Interface::as_raw(self), dwstreamid, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IVMRDeinterlaceControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVMRDeinterlaceControl { - type Vtable = IVMRDeinterlaceControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVMRDeinterlaceControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbb057577_0db8_4e6a_87a7_1a8c9a505a0f); -} #[repr(C)] #[doc(hidden)] pub struct IVMRDeinterlaceControl_Vtbl { @@ -12922,9 +11034,8 @@ pub struct IVMRDeinterlaceControl_Vtbl { pub SetDeinterlacePrefs: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwdeinterlaceprefs: u32) -> ::windows_core::HRESULT, pub GetActualDeinterlaceMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwstreamid: u32, lpdeinterlacemode: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVMRDeinterlaceControl9(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVMRDeinterlaceControl9, IVMRDeinterlaceControl9_Vtbl, 0xa215fb8d_13c2_4f7f_993c_003d6271a459); +::windows_core::imp::interface_hierarchy!(IVMRDeinterlaceControl9, ::windows_core::IUnknown); impl IVMRDeinterlaceControl9 { pub unsafe fn GetNumberOfDeinterlaceModes(&self, lpvideodescription: *const VMR9VideoDesc, lpdwnumdeinterlacemodes: *mut u32, lpdeinterlacemodes: *mut ::windows_core::GUID) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetNumberOfDeinterlaceModes)(::windows_core::Interface::as_raw(self), lpvideodescription, lpdwnumdeinterlacemodes, lpdeinterlacemodes).ok() @@ -12951,13 +11062,6 @@ impl IVMRDeinterlaceControl9 { (::windows_core::Interface::vtable(self).GetActualDeinterlaceMode)(::windows_core::Interface::as_raw(self), dwstreamid, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IVMRDeinterlaceControl9, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVMRDeinterlaceControl9 { - type Vtable = IVMRDeinterlaceControl9_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVMRDeinterlaceControl9 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa215fb8d_13c2_4f7f_993c_003d6271a459); -} #[repr(C)] #[doc(hidden)] pub struct IVMRDeinterlaceControl9_Vtbl { @@ -12970,9 +11074,8 @@ pub struct IVMRDeinterlaceControl9_Vtbl { pub SetDeinterlacePrefs: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwdeinterlaceprefs: u32) -> ::windows_core::HRESULT, pub GetActualDeinterlaceMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwstreamid: u32, lpdeinterlacemode: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVMRFilterConfig(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVMRFilterConfig, IVMRFilterConfig_Vtbl, 0x9e5530c5_7034_48b4_bb46_0b8a6efc8e36); +::windows_core::imp::interface_hierarchy!(IVMRFilterConfig, ::windows_core::IUnknown); impl IVMRFilterConfig { pub unsafe fn SetImageCompositor(&self, lpvmrimgcompositor: P0) -> ::windows_core::Result<()> where @@ -13002,13 +11105,6 @@ impl IVMRFilterConfig { (::windows_core::Interface::vtable(self).GetRenderingMode)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IVMRFilterConfig, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVMRFilterConfig { - type Vtable = IVMRFilterConfig_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVMRFilterConfig { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9e5530c5_7034_48b4_bb46_0b8a6efc8e36); -} #[repr(C)] #[doc(hidden)] pub struct IVMRFilterConfig_Vtbl { @@ -13021,9 +11117,8 @@ pub struct IVMRFilterConfig_Vtbl { pub SetRenderingMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mode: u32) -> ::windows_core::HRESULT, pub GetRenderingMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pmode: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVMRFilterConfig9(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVMRFilterConfig9, IVMRFilterConfig9_Vtbl, 0x5a804648_4f66_4867_9c43_4f5c822cf1b8); +::windows_core::imp::interface_hierarchy!(IVMRFilterConfig9, ::windows_core::IUnknown); impl IVMRFilterConfig9 { pub unsafe fn SetImageCompositor(&self, lpvmrimgcompositor: P0) -> ::windows_core::Result<()> where @@ -13053,13 +11148,6 @@ impl IVMRFilterConfig9 { (::windows_core::Interface::vtable(self).GetRenderingMode)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IVMRFilterConfig9, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVMRFilterConfig9 { - type Vtable = IVMRFilterConfig9_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVMRFilterConfig9 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5a804648_4f66_4867_9c43_4f5c822cf1b8); -} #[repr(C)] #[doc(hidden)] pub struct IVMRFilterConfig9_Vtbl { @@ -13072,9 +11160,8 @@ pub struct IVMRFilterConfig9_Vtbl { pub SetRenderingMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mode: u32) -> ::windows_core::HRESULT, pub GetRenderingMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pmode: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVMRImageCompositor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVMRImageCompositor, IVMRImageCompositor_Vtbl, 0x7a4fb5af_479f_4074_bb40_ce6722e43c82); +::windows_core::imp::interface_hierarchy!(IVMRImageCompositor, ::windows_core::IUnknown); impl IVMRImageCompositor { #[doc = "Required features: `\"Win32_Graphics_DirectDraw\"`"] #[cfg(feature = "Win32_Graphics_DirectDraw")] @@ -13112,13 +11199,6 @@ impl IVMRImageCompositor { (::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::imp::interface_hierarchy!(IVMRImageCompositor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVMRImageCompositor { - type Vtable = IVMRImageCompositor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVMRImageCompositor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7a4fb5af_479f_4074_bb40_ce6722e43c82); -} #[repr(C)] #[doc(hidden)] pub struct IVMRImageCompositor_Vtbl { @@ -13140,9 +11220,8 @@ pub struct IVMRImageCompositor_Vtbl { #[cfg(not(all(feature = "Win32_Graphics_DirectDraw", feature = "Win32_Media_MediaFoundation")))] CompositeImage: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVMRImageCompositor9(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVMRImageCompositor9, IVMRImageCompositor9_Vtbl, 0x4a5c89eb_df51_4654_ac2a_e48e02bbabf6); +::windows_core::imp::interface_hierarchy!(IVMRImageCompositor9, ::windows_core::IUnknown); impl IVMRImageCompositor9 { pub unsafe fn InitCompositionDevice(&self, pd3ddevice: P0) -> ::windows_core::Result<()> where @@ -13174,13 +11253,6 @@ impl IVMRImageCompositor9 { (::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::imp::interface_hierarchy!(IVMRImageCompositor9, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVMRImageCompositor9 { - type Vtable = IVMRImageCompositor9_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVMRImageCompositor9 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4a5c89eb_df51_4654_ac2a_e48e02bbabf6); -} #[repr(C)] #[doc(hidden)] pub struct IVMRImageCompositor9_Vtbl { @@ -13196,9 +11268,8 @@ pub struct IVMRImageCompositor9_Vtbl { #[cfg(not(all(feature = "Win32_Graphics_Direct3D9", feature = "Win32_Media_MediaFoundation")))] CompositeImage: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVMRImagePresenter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVMRImagePresenter, IVMRImagePresenter_Vtbl, 0xce704fe7_e71e_41fb_baa2_c4403e1182f5); +::windows_core::imp::interface_hierarchy!(IVMRImagePresenter, ::windows_core::IUnknown); impl IVMRImagePresenter { pub unsafe fn StartPresenting(&self, dwuserid: usize) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).StartPresenting)(::windows_core::Interface::as_raw(self), dwuserid).ok() @@ -13212,13 +11283,6 @@ impl IVMRImagePresenter { (::windows_core::Interface::vtable(self).PresentImage)(::windows_core::Interface::as_raw(self), dwuserid, lppresinfo).ok() } } -::windows_core::imp::interface_hierarchy!(IVMRImagePresenter, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVMRImagePresenter { - type Vtable = IVMRImagePresenter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVMRImagePresenter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xce704fe7_e71e_41fb_baa2_c4403e1182f5); -} #[repr(C)] #[doc(hidden)] pub struct IVMRImagePresenter_Vtbl { @@ -13230,9 +11294,8 @@ pub struct IVMRImagePresenter_Vtbl { #[cfg(not(feature = "Win32_Graphics_DirectDraw"))] PresentImage: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVMRImagePresenter9(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVMRImagePresenter9, IVMRImagePresenter9_Vtbl, 0x69188c61_12a3_40f0_8ffc_342e7b433fd7); +::windows_core::imp::interface_hierarchy!(IVMRImagePresenter9, ::windows_core::IUnknown); impl IVMRImagePresenter9 { pub unsafe fn StartPresenting(&self, dwuserid: usize) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).StartPresenting)(::windows_core::Interface::as_raw(self), dwuserid).ok() @@ -13246,13 +11309,6 @@ impl IVMRImagePresenter9 { (::windows_core::Interface::vtable(self).PresentImage)(::windows_core::Interface::as_raw(self), dwuserid, lppresinfo).ok() } } -::windows_core::imp::interface_hierarchy!(IVMRImagePresenter9, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVMRImagePresenter9 { - type Vtable = IVMRImagePresenter9_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVMRImagePresenter9 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x69188c61_12a3_40f0_8ffc_342e7b433fd7); -} #[repr(C)] #[doc(hidden)] pub struct IVMRImagePresenter9_Vtbl { @@ -13264,9 +11320,8 @@ pub struct IVMRImagePresenter9_Vtbl { #[cfg(not(feature = "Win32_Graphics_Direct3D9"))] PresentImage: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVMRImagePresenterConfig(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVMRImagePresenterConfig, IVMRImagePresenterConfig_Vtbl, 0x9f3a1c85_8555_49ba_935f_be5b5b29d178); +::windows_core::imp::interface_hierarchy!(IVMRImagePresenterConfig, ::windows_core::IUnknown); impl IVMRImagePresenterConfig { pub unsafe fn SetRenderingPrefs(&self, dwrenderflags: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetRenderingPrefs)(::windows_core::Interface::as_raw(self), dwrenderflags).ok() @@ -13276,13 +11331,6 @@ impl IVMRImagePresenterConfig { (::windows_core::Interface::vtable(self).GetRenderingPrefs)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IVMRImagePresenterConfig, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVMRImagePresenterConfig { - type Vtable = IVMRImagePresenterConfig_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVMRImagePresenterConfig { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9f3a1c85_8555_49ba_935f_be5b5b29d178); -} #[repr(C)] #[doc(hidden)] pub struct IVMRImagePresenterConfig_Vtbl { @@ -13290,9 +11338,8 @@ pub struct IVMRImagePresenterConfig_Vtbl { pub SetRenderingPrefs: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwrenderflags: u32) -> ::windows_core::HRESULT, pub GetRenderingPrefs: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwrenderflags: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVMRImagePresenterConfig9(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVMRImagePresenterConfig9, IVMRImagePresenterConfig9_Vtbl, 0x45c15cab_6e22_420a_8043_ae1f0ac02c7d); +::windows_core::imp::interface_hierarchy!(IVMRImagePresenterConfig9, ::windows_core::IUnknown); impl IVMRImagePresenterConfig9 { pub unsafe fn SetRenderingPrefs(&self, dwrenderflags: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetRenderingPrefs)(::windows_core::Interface::as_raw(self), dwrenderflags).ok() @@ -13302,13 +11349,6 @@ impl IVMRImagePresenterConfig9 { (::windows_core::Interface::vtable(self).GetRenderingPrefs)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IVMRImagePresenterConfig9, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVMRImagePresenterConfig9 { - type Vtable = IVMRImagePresenterConfig9_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVMRImagePresenterConfig9 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x45c15cab_6e22_420a_8043_ae1f0ac02c7d); -} #[repr(C)] #[doc(hidden)] pub struct IVMRImagePresenterConfig9_Vtbl { @@ -13316,9 +11356,8 @@ pub struct IVMRImagePresenterConfig9_Vtbl { pub SetRenderingPrefs: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwrenderflags: u32) -> ::windows_core::HRESULT, pub GetRenderingPrefs: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwrenderflags: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVMRImagePresenterExclModeConfig(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVMRImagePresenterExclModeConfig, IVMRImagePresenterExclModeConfig_Vtbl, 0xe6f7ce40_4673_44f1_8f77_5499d68cb4ea); +::windows_core::imp::interface_hierarchy!(IVMRImagePresenterExclModeConfig, ::windows_core::IUnknown, IVMRImagePresenterConfig); impl IVMRImagePresenterExclModeConfig { pub unsafe fn SetRenderingPrefs(&self, dwrenderflags: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.SetRenderingPrefs)(::windows_core::Interface::as_raw(self), dwrenderflags).ok() @@ -13342,13 +11381,6 @@ impl IVMRImagePresenterExclModeConfig { (::windows_core::Interface::vtable(self).GetXlcModeDDObjAndPrimarySurface)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(lpddobj), ::core::mem::transmute(lpprimarysurf)).ok() } } -::windows_core::imp::interface_hierarchy!(IVMRImagePresenterExclModeConfig, ::windows_core::IUnknown, IVMRImagePresenterConfig); -unsafe impl ::windows_core::Interface for IVMRImagePresenterExclModeConfig { - type Vtable = IVMRImagePresenterExclModeConfig_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVMRImagePresenterExclModeConfig { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe6f7ce40_4673_44f1_8f77_5499d68cb4ea); -} #[repr(C)] #[doc(hidden)] pub struct IVMRImagePresenterExclModeConfig_Vtbl { @@ -13362,9 +11394,8 @@ pub struct IVMRImagePresenterExclModeConfig_Vtbl { #[cfg(not(feature = "Win32_Graphics_DirectDraw"))] GetXlcModeDDObjAndPrimarySurface: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVMRMixerBitmap(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVMRMixerBitmap, IVMRMixerBitmap_Vtbl, 0x1e673275_0257_40aa_af20_7c608d4a0428); +::windows_core::imp::interface_hierarchy!(IVMRMixerBitmap, ::windows_core::IUnknown); impl IVMRMixerBitmap { #[doc = "Required features: `\"Win32_Graphics_DirectDraw\"`, `\"Win32_Graphics_Gdi\"`"] #[cfg(all(feature = "Win32_Graphics_DirectDraw", feature = "Win32_Graphics_Gdi"))] @@ -13382,13 +11413,6 @@ impl IVMRMixerBitmap { (::windows_core::Interface::vtable(self).GetAlphaBitmapParameters)(::windows_core::Interface::as_raw(self), pbmpparms).ok() } } -::windows_core::imp::interface_hierarchy!(IVMRMixerBitmap, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVMRMixerBitmap { - type Vtable = IVMRMixerBitmap_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVMRMixerBitmap { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1e673275_0257_40aa_af20_7c608d4a0428); -} #[repr(C)] #[doc(hidden)] pub struct IVMRMixerBitmap_Vtbl { @@ -13406,9 +11430,8 @@ pub struct IVMRMixerBitmap_Vtbl { #[cfg(not(all(feature = "Win32_Graphics_DirectDraw", feature = "Win32_Graphics_Gdi")))] GetAlphaBitmapParameters: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVMRMixerBitmap9(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVMRMixerBitmap9, IVMRMixerBitmap9_Vtbl, 0xced175e5_1935_4820_81bd_ff6ad00c9108); +::windows_core::imp::interface_hierarchy!(IVMRMixerBitmap9, ::windows_core::IUnknown); impl IVMRMixerBitmap9 { #[doc = "Required features: `\"Win32_Graphics_Direct3D9\"`, `\"Win32_Graphics_Gdi\"`"] #[cfg(all(feature = "Win32_Graphics_Direct3D9", feature = "Win32_Graphics_Gdi"))] @@ -13426,13 +11449,6 @@ impl IVMRMixerBitmap9 { (::windows_core::Interface::vtable(self).GetAlphaBitmapParameters)(::windows_core::Interface::as_raw(self), pbmpparms).ok() } } -::windows_core::imp::interface_hierarchy!(IVMRMixerBitmap9, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVMRMixerBitmap9 { - type Vtable = IVMRMixerBitmap9_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVMRMixerBitmap9 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xced175e5_1935_4820_81bd_ff6ad00c9108); -} #[repr(C)] #[doc(hidden)] pub struct IVMRMixerBitmap9_Vtbl { @@ -13450,9 +11466,8 @@ pub struct IVMRMixerBitmap9_Vtbl { #[cfg(not(all(feature = "Win32_Graphics_Direct3D9", feature = "Win32_Graphics_Gdi")))] GetAlphaBitmapParameters: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVMRMixerControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVMRMixerControl, IVMRMixerControl_Vtbl, 0x1c1a17b0_bed0_415d_974b_dc6696131599); +::windows_core::imp::interface_hierarchy!(IVMRMixerControl, ::windows_core::IUnknown); impl IVMRMixerControl { pub unsafe fn SetAlpha(&self, dwstreamid: u32, alpha: f32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetAlpha)(::windows_core::Interface::as_raw(self), dwstreamid, alpha).ok() @@ -13492,13 +11507,6 @@ impl IVMRMixerControl { (::windows_core::Interface::vtable(self).GetMixingPrefs)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IVMRMixerControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVMRMixerControl { - type Vtable = IVMRMixerControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVMRMixerControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1c1a17b0_bed0_415d_974b_dc6696131599); -} #[repr(C)] #[doc(hidden)] pub struct IVMRMixerControl_Vtbl { @@ -13514,9 +11522,8 @@ pub struct IVMRMixerControl_Vtbl { pub SetMixingPrefs: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwmixerprefs: u32) -> ::windows_core::HRESULT, pub GetMixingPrefs: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwmixerprefs: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVMRMixerControl9(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVMRMixerControl9, IVMRMixerControl9_Vtbl, 0x1a777eaa_47c8_4930_b2c9_8fee1c1b0f3b); +::windows_core::imp::interface_hierarchy!(IVMRMixerControl9, ::windows_core::IUnknown); impl IVMRMixerControl9 { pub unsafe fn SetAlpha(&self, dwstreamid: u32, alpha: f32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetAlpha)(::windows_core::Interface::as_raw(self), dwstreamid, alpha).ok() @@ -13565,13 +11572,6 @@ impl IVMRMixerControl9 { (::windows_core::Interface::vtable(self).GetProcAmpControlRange)(::windows_core::Interface::as_raw(self), dwstreamid, lpclrcontrol).ok() } } -::windows_core::imp::interface_hierarchy!(IVMRMixerControl9, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVMRMixerControl9 { - type Vtable = IVMRMixerControl9_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVMRMixerControl9 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1a777eaa_47c8_4930_b2c9_8fee1c1b0f3b); -} #[repr(C)] #[doc(hidden)] pub struct IVMRMixerControl9_Vtbl { @@ -13590,9 +11590,8 @@ pub struct IVMRMixerControl9_Vtbl { pub GetProcAmpControl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwstreamid: u32, lpclrcontrol: *mut VMR9ProcAmpControl) -> ::windows_core::HRESULT, pub GetProcAmpControlRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwstreamid: u32, lpclrcontrol: *mut VMR9ProcAmpControlRange) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVMRMonitorConfig(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVMRMonitorConfig, IVMRMonitorConfig_Vtbl, 0x9cf0b1b6_fbaa_4b7f_88cf_cf1f130a0dce); +::windows_core::imp::interface_hierarchy!(IVMRMonitorConfig, ::windows_core::IUnknown); impl IVMRMonitorConfig { pub unsafe fn SetMonitor(&self, pguid: *const VMRGUID) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetMonitor)(::windows_core::Interface::as_raw(self), pguid).ok() @@ -13612,13 +11611,6 @@ impl IVMRMonitorConfig { (::windows_core::Interface::vtable(self).GetAvailableMonitors)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pinfo.as_ptr()), pinfo.len().try_into().unwrap(), pdwnumdevices).ok() } } -::windows_core::imp::interface_hierarchy!(IVMRMonitorConfig, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVMRMonitorConfig { - type Vtable = IVMRMonitorConfig_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVMRMonitorConfig { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9cf0b1b6_fbaa_4b7f_88cf_cf1f130a0dce); -} #[repr(C)] #[doc(hidden)] pub struct IVMRMonitorConfig_Vtbl { @@ -13632,9 +11624,8 @@ pub struct IVMRMonitorConfig_Vtbl { #[cfg(not(feature = "Win32_Graphics_Gdi"))] GetAvailableMonitors: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVMRMonitorConfig9(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVMRMonitorConfig9, IVMRMonitorConfig9_Vtbl, 0x46c2e457_8ba0_4eef_b80b_0680f0978749); +::windows_core::imp::interface_hierarchy!(IVMRMonitorConfig9, ::windows_core::IUnknown); impl IVMRMonitorConfig9 { pub unsafe fn SetMonitor(&self, udev: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetMonitor)(::windows_core::Interface::as_raw(self), udev).ok() @@ -13656,13 +11647,6 @@ impl IVMRMonitorConfig9 { (::windows_core::Interface::vtable(self).GetAvailableMonitors)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pinfo.as_ptr()), pinfo.len().try_into().unwrap(), pdwnumdevices).ok() } } -::windows_core::imp::interface_hierarchy!(IVMRMonitorConfig9, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVMRMonitorConfig9 { - type Vtable = IVMRMonitorConfig9_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVMRMonitorConfig9 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x46c2e457_8ba0_4eef_b80b_0680f0978749); -} #[repr(C)] #[doc(hidden)] pub struct IVMRMonitorConfig9_Vtbl { @@ -13676,9 +11660,8 @@ pub struct IVMRMonitorConfig9_Vtbl { #[cfg(not(feature = "Win32_Graphics_Gdi"))] GetAvailableMonitors: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVMRSurface(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVMRSurface, IVMRSurface_Vtbl, 0xa9849bbe_9ec8_4263_b764_62730f0d15d0); +::windows_core::imp::interface_hierarchy!(IVMRSurface, ::windows_core::IUnknown); impl IVMRSurface { pub unsafe fn IsSurfaceLocked(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).IsSurfaceLocked)(::windows_core::Interface::as_raw(self)).ok() @@ -13697,13 +11680,6 @@ impl IVMRSurface { (::windows_core::Interface::vtable(self).GetSurface)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IVMRSurface, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVMRSurface { - type Vtable = IVMRSurface_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVMRSurface { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa9849bbe_9ec8_4263_b764_62730f0d15d0); -} #[repr(C)] #[doc(hidden)] pub struct IVMRSurface_Vtbl { @@ -13716,9 +11692,8 @@ pub struct IVMRSurface_Vtbl { #[cfg(not(feature = "Win32_Graphics_DirectDraw"))] GetSurface: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVMRSurface9(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVMRSurface9, IVMRSurface9_Vtbl, 0xdfc581a1_6e1f_4c3a_8d0a_5e9792ea2afc); +::windows_core::imp::interface_hierarchy!(IVMRSurface9, ::windows_core::IUnknown); impl IVMRSurface9 { pub unsafe fn IsSurfaceLocked(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).IsSurfaceLocked)(::windows_core::Interface::as_raw(self)).ok() @@ -13737,13 +11712,6 @@ impl IVMRSurface9 { (::windows_core::Interface::vtable(self).GetSurface)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IVMRSurface9, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVMRSurface9 { - type Vtable = IVMRSurface9_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVMRSurface9 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdfc581a1_6e1f_4c3a_8d0a_5e9792ea2afc); -} #[repr(C)] #[doc(hidden)] pub struct IVMRSurface9_Vtbl { @@ -13756,9 +11724,8 @@ pub struct IVMRSurface9_Vtbl { #[cfg(not(feature = "Win32_Graphics_Direct3D9"))] GetSurface: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVMRSurfaceAllocator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVMRSurfaceAllocator, IVMRSurfaceAllocator_Vtbl, 0x31ce832e_4484_458b_8cca_f4d7e3db0b52); +::windows_core::imp::interface_hierarchy!(IVMRSurfaceAllocator, ::windows_core::IUnknown); impl IVMRSurfaceAllocator { #[doc = "Required features: `\"Win32_Graphics_DirectDraw\"`, `\"Win32_Graphics_Gdi\"`"] #[cfg(all(feature = "Win32_Graphics_DirectDraw", feature = "Win32_Graphics_Gdi"))] @@ -13783,13 +11750,6 @@ impl IVMRSurfaceAllocator { (::windows_core::Interface::vtable(self).AdviseNotify)(::windows_core::Interface::as_raw(self), lpivmrsurfallocnotify.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IVMRSurfaceAllocator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVMRSurfaceAllocator { - type Vtable = IVMRSurfaceAllocator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVMRSurfaceAllocator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x31ce832e_4484_458b_8cca_f4d7e3db0b52); -} #[repr(C)] #[doc(hidden)] pub struct IVMRSurfaceAllocator_Vtbl { @@ -13805,9 +11765,8 @@ pub struct IVMRSurfaceAllocator_Vtbl { PrepareSurface: usize, pub AdviseNotify: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpivmrsurfallocnotify: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVMRSurfaceAllocator9(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVMRSurfaceAllocator9, IVMRSurfaceAllocator9_Vtbl, 0x8d5148ea_3f5d_46cf_9df1_d1b896eedb1f); +::windows_core::imp::interface_hierarchy!(IVMRSurfaceAllocator9, ::windows_core::IUnknown); impl IVMRSurfaceAllocator9 { #[doc = "Required features: `\"Win32_Graphics_Direct3D9\"`"] #[cfg(feature = "Win32_Graphics_Direct3D9")] @@ -13830,13 +11789,6 @@ impl IVMRSurfaceAllocator9 { (::windows_core::Interface::vtable(self).AdviseNotify)(::windows_core::Interface::as_raw(self), lpivmrsurfallocnotify.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IVMRSurfaceAllocator9, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVMRSurfaceAllocator9 { - type Vtable = IVMRSurfaceAllocator9_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVMRSurfaceAllocator9 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8d5148ea_3f5d_46cf_9df1_d1b896eedb1f); -} #[repr(C)] #[doc(hidden)] pub struct IVMRSurfaceAllocator9_Vtbl { @@ -13852,9 +11804,8 @@ pub struct IVMRSurfaceAllocator9_Vtbl { GetSurface: usize, pub AdviseNotify: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpivmrsurfallocnotify: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVMRSurfaceAllocatorEx9(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVMRSurfaceAllocatorEx9, IVMRSurfaceAllocatorEx9_Vtbl, 0x6de9a68a_a928_4522_bf57_655ae3866456); +::windows_core::imp::interface_hierarchy!(IVMRSurfaceAllocatorEx9, ::windows_core::IUnknown, IVMRSurfaceAllocator9); impl IVMRSurfaceAllocatorEx9 { #[doc = "Required features: `\"Win32_Graphics_Direct3D9\"`"] #[cfg(feature = "Win32_Graphics_Direct3D9")] @@ -13882,13 +11833,6 @@ impl IVMRSurfaceAllocatorEx9 { (::windows_core::Interface::vtable(self).GetSurfaceEx)(::windows_core::Interface::as_raw(self), dwuserid, surfaceindex, surfaceflags, ::core::mem::transmute(lplpsurface), lprcdst).ok() } } -::windows_core::imp::interface_hierarchy!(IVMRSurfaceAllocatorEx9, ::windows_core::IUnknown, IVMRSurfaceAllocator9); -unsafe impl ::windows_core::Interface for IVMRSurfaceAllocatorEx9 { - type Vtable = IVMRSurfaceAllocatorEx9_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVMRSurfaceAllocatorEx9 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6de9a68a_a928_4522_bf57_655ae3866456); -} #[repr(C)] #[doc(hidden)] pub struct IVMRSurfaceAllocatorEx9_Vtbl { @@ -13898,9 +11842,8 @@ pub struct IVMRSurfaceAllocatorEx9_Vtbl { #[cfg(not(feature = "Win32_Graphics_Direct3D9"))] GetSurfaceEx: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVMRSurfaceAllocatorNotify(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVMRSurfaceAllocatorNotify, IVMRSurfaceAllocatorNotify_Vtbl, 0xaada05a8_5a4e_4729_af0b_cea27aed51e2); +::windows_core::imp::interface_hierarchy!(IVMRSurfaceAllocatorNotify, ::windows_core::IUnknown); impl IVMRSurfaceAllocatorNotify { pub unsafe fn AdviseSurfaceAllocator(&self, dwuserid: usize, lpivrmsurfaceallocator: P0) -> ::windows_core::Result<()> where @@ -13939,13 +11882,6 @@ impl IVMRSurfaceAllocatorNotify { (::windows_core::Interface::vtable(self).SetBorderColor)(::windows_core::Interface::as_raw(self), clrborder.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IVMRSurfaceAllocatorNotify, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVMRSurfaceAllocatorNotify { - type Vtable = IVMRSurfaceAllocatorNotify_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVMRSurfaceAllocatorNotify { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaada05a8_5a4e_4729_af0b_cea27aed51e2); -} #[repr(C)] #[doc(hidden)] pub struct IVMRSurfaceAllocatorNotify_Vtbl { @@ -13963,9 +11899,8 @@ pub struct IVMRSurfaceAllocatorNotify_Vtbl { pub NotifyEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventcode: i32, param1: isize, param2: isize) -> ::windows_core::HRESULT, pub SetBorderColor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, clrborder: super::super::Foundation::COLORREF) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVMRSurfaceAllocatorNotify9(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVMRSurfaceAllocatorNotify9, IVMRSurfaceAllocatorNotify9_Vtbl, 0xdca3f5df_bb3a_4d03_bd81_84614bfbfa0c); +::windows_core::imp::interface_hierarchy!(IVMRSurfaceAllocatorNotify9, ::windows_core::IUnknown); impl IVMRSurfaceAllocatorNotify9 { pub unsafe fn AdviseSurfaceAllocator(&self, dwuserid: usize, lpivrmsurfaceallocator: P0) -> ::windows_core::Result<()> where @@ -14000,13 +11935,6 @@ impl IVMRSurfaceAllocatorNotify9 { (::windows_core::Interface::vtable(self).NotifyEvent)(::windows_core::Interface::as_raw(self), eventcode, param1, param2).ok() } } -::windows_core::imp::interface_hierarchy!(IVMRSurfaceAllocatorNotify9, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVMRSurfaceAllocatorNotify9 { - type Vtable = IVMRSurfaceAllocatorNotify9_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVMRSurfaceAllocatorNotify9 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdca3f5df_bb3a_4d03_bd81_84614bfbfa0c); -} #[repr(C)] #[doc(hidden)] pub struct IVMRSurfaceAllocatorNotify9_Vtbl { @@ -14026,9 +11954,8 @@ pub struct IVMRSurfaceAllocatorNotify9_Vtbl { AllocateSurfaceHelper: usize, pub NotifyEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventcode: i32, param1: isize, param2: isize) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVMRVideoStreamControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVMRVideoStreamControl, IVMRVideoStreamControl_Vtbl, 0x058d1f11_2a54_4bef_bd54_df706626b727); +::windows_core::imp::interface_hierarchy!(IVMRVideoStreamControl, ::windows_core::IUnknown); impl IVMRVideoStreamControl { #[doc = "Required features: `\"Win32_Graphics_DirectDraw\"`"] #[cfg(feature = "Win32_Graphics_DirectDraw")] @@ -14052,13 +11979,6 @@ impl IVMRVideoStreamControl { (::windows_core::Interface::vtable(self).GetStreamActiveState)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IVMRVideoStreamControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVMRVideoStreamControl { - type Vtable = IVMRVideoStreamControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVMRVideoStreamControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x058d1f11_2a54_4bef_bd54_df706626b727); -} #[repr(C)] #[doc(hidden)] pub struct IVMRVideoStreamControl_Vtbl { @@ -14074,9 +11994,8 @@ pub struct IVMRVideoStreamControl_Vtbl { pub SetStreamActiveState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, factive: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub GetStreamActiveState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpfactive: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVMRVideoStreamControl9(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVMRVideoStreamControl9, IVMRVideoStreamControl9_Vtbl, 0xd0cfe38b_93e7_4772_8957_0400c49a4485); +::windows_core::imp::interface_hierarchy!(IVMRVideoStreamControl9, ::windows_core::IUnknown); impl IVMRVideoStreamControl9 { pub unsafe fn SetStreamActiveState(&self, factive: P0) -> ::windows_core::Result<()> where @@ -14089,13 +12008,6 @@ impl IVMRVideoStreamControl9 { (::windows_core::Interface::vtable(self).GetStreamActiveState)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IVMRVideoStreamControl9, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVMRVideoStreamControl9 { - type Vtable = IVMRVideoStreamControl9_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVMRVideoStreamControl9 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd0cfe38b_93e7_4772_8957_0400c49a4485); -} #[repr(C)] #[doc(hidden)] pub struct IVMRVideoStreamControl9_Vtbl { @@ -14103,9 +12015,8 @@ pub struct IVMRVideoStreamControl9_Vtbl { pub SetStreamActiveState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, factive: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub GetStreamActiveState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpfactive: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVMRWindowlessControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVMRWindowlessControl, IVMRWindowlessControl_Vtbl, 0x0eb1088c_4dcd_46f0_878f_39dae86a51b7); +::windows_core::imp::interface_hierarchy!(IVMRWindowlessControl, ::windows_core::IUnknown); impl IVMRWindowlessControl { pub unsafe fn GetNativeVideoSize(&self, lpwidth: *mut i32, lpheight: *mut i32, lparwidth: *mut i32, lparheight: *mut i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetNativeVideoSize)(::windows_core::Interface::as_raw(self), lpwidth, lpheight, lparwidth, lparheight).ok() @@ -14172,13 +12083,6 @@ impl IVMRWindowlessControl { (::windows_core::Interface::vtable(self).GetColorKey)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IVMRWindowlessControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVMRWindowlessControl { - type Vtable = IVMRWindowlessControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVMRWindowlessControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0eb1088c_4dcd_46f0_878f_39dae86a51b7); -} #[repr(C)] #[doc(hidden)] pub struct IVMRWindowlessControl_Vtbl { @@ -14202,9 +12106,8 @@ pub struct IVMRWindowlessControl_Vtbl { pub SetColorKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, clr: super::super::Foundation::COLORREF) -> ::windows_core::HRESULT, pub GetColorKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpclr: *mut super::super::Foundation::COLORREF) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVMRWindowlessControl9(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVMRWindowlessControl9, IVMRWindowlessControl9_Vtbl, 0x8f537d09_f85e_4414_b23b_502e54c79927); +::windows_core::imp::interface_hierarchy!(IVMRWindowlessControl9, ::windows_core::IUnknown); impl IVMRWindowlessControl9 { pub unsafe fn GetNativeVideoSize(&self, lpwidth: *mut i32, lpheight: *mut i32, lparwidth: *mut i32, lparheight: *mut i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetNativeVideoSize)(::windows_core::Interface::as_raw(self), lpwidth, lpheight, lparwidth, lparheight).ok() @@ -14261,13 +12164,6 @@ impl IVMRWindowlessControl9 { (::windows_core::Interface::vtable(self).GetBorderColor)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IVMRWindowlessControl9, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVMRWindowlessControl9 { - type Vtable = IVMRWindowlessControl9_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVMRWindowlessControl9 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8f537d09_f85e_4414_b23b_502e54c79927); -} #[repr(C)] #[doc(hidden)] pub struct IVMRWindowlessControl9_Vtbl { @@ -14289,9 +12185,8 @@ pub struct IVMRWindowlessControl9_Vtbl { pub SetBorderColor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, clr: super::super::Foundation::COLORREF) -> ::windows_core::HRESULT, pub GetBorderColor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpclr: *mut super::super::Foundation::COLORREF) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVPBaseConfig(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVPBaseConfig, IVPBaseConfig_Vtbl, 0); +::windows_core::imp::interface_hierarchy!(IVPBaseConfig, ::windows_core::IUnknown); impl IVPBaseConfig { #[doc = "Required features: `\"Win32_Graphics_DirectDraw\"`"] #[cfg(feature = "Win32_Graphics_DirectDraw")] @@ -14342,13 +12237,6 @@ impl IVPBaseConfig { (::windows_core::Interface::vtable(self).SetSurfaceParameters)(::windows_core::Interface::as_raw(self), dwpitch, dwxorigin, dwyorigin).ok() } } -::windows_core::imp::interface_hierarchy!(IVPBaseConfig, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVPBaseConfig { - type Vtable = IVPBaseConfig_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVPBaseConfig { - const IID: ::windows_core::GUID = ::windows_core::GUID::zeroed(); -} #[repr(C)] #[doc(hidden)] pub struct IVPBaseConfig_Vtbl { @@ -14379,30 +12267,21 @@ pub struct IVPBaseConfig_Vtbl { pub SetDDSurfaceKernelHandles: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, chandles: u32, rgddkernelhandles: *mut usize) -> ::windows_core::HRESULT, pub SetSurfaceParameters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwpitch: u32, dwxorigin: u32, dwyorigin: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVPBaseNotify(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVPBaseNotify, IVPBaseNotify_Vtbl, 0); +::windows_core::imp::interface_hierarchy!(IVPBaseNotify, ::windows_core::IUnknown); impl IVPBaseNotify { pub unsafe fn RenegotiateVPParameters(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).RenegotiateVPParameters)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IVPBaseNotify, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVPBaseNotify { - type Vtable = IVPBaseNotify_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVPBaseNotify { - const IID: ::windows_core::GUID = ::windows_core::GUID::zeroed(); -} #[repr(C)] #[doc(hidden)] pub struct IVPBaseNotify_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub RenegotiateVPParameters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVPConfig(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVPConfig, IVPConfig_Vtbl, 0xbc29a660_30e3_11d0_9e69_00c04fd7c15b); +::windows_core::imp::interface_hierarchy!(IVPConfig, ::windows_core::IUnknown, IVPBaseConfig); impl IVPConfig { #[doc = "Required features: `\"Win32_Graphics_DirectDraw\"`"] #[cfg(feature = "Win32_Graphics_DirectDraw")] @@ -14459,13 +12338,6 @@ impl IVPConfig { (::windows_core::Interface::vtable(self).SetScalingFactors)(::windows_core::Interface::as_raw(self), pamvpsize).ok() } } -::windows_core::imp::interface_hierarchy!(IVPConfig, ::windows_core::IUnknown, IVPBaseConfig); -unsafe impl ::windows_core::Interface for IVPConfig { - type Vtable = IVPConfig_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVPConfig { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbc29a660_30e3_11d0_9e69_00c04fd7c15b); -} #[repr(C)] #[doc(hidden)] pub struct IVPConfig_Vtbl { @@ -14473,9 +12345,8 @@ pub struct IVPConfig_Vtbl { pub IsVPDecimationAllowed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbisdecimationallowed: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub SetScalingFactors: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pamvpsize: *mut AMVPSIZE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVPManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVPManager, IVPManager_Vtbl, 0xaac18c18_e186_46d2_825d_a1f8dc8e395a); +::windows_core::imp::interface_hierarchy!(IVPManager, ::windows_core::IUnknown); impl IVPManager { pub unsafe fn SetVideoPortIndex(&self, dwvideoportindex: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetVideoPortIndex)(::windows_core::Interface::as_raw(self), dwvideoportindex).ok() @@ -14485,13 +12356,6 @@ impl IVPManager { (::windows_core::Interface::vtable(self).GetVideoPortIndex)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IVPManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVPManager { - type Vtable = IVPManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVPManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaac18c18_e186_46d2_825d_a1f8dc8e395a); -} #[repr(C)] #[doc(hidden)] pub struct IVPManager_Vtbl { @@ -14499,9 +12363,8 @@ pub struct IVPManager_Vtbl { pub SetVideoPortIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwvideoportindex: u32) -> ::windows_core::HRESULT, pub GetVideoPortIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwvideoportindex: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVPNotify(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVPNotify, IVPNotify_Vtbl, 0xc76794a1_d6c5_11d0_9e69_00c04fd7c15b); +::windows_core::imp::interface_hierarchy!(IVPNotify, ::windows_core::IUnknown, IVPBaseNotify); impl IVPNotify { pub unsafe fn RenegotiateVPParameters(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.RenegotiateVPParameters)(::windows_core::Interface::as_raw(self)).ok() @@ -14513,13 +12376,6 @@ impl IVPNotify { (::windows_core::Interface::vtable(self).GetDeinterlaceMode)(::windows_core::Interface::as_raw(self), pmode).ok() } } -::windows_core::imp::interface_hierarchy!(IVPNotify, ::windows_core::IUnknown, IVPBaseNotify); -unsafe impl ::windows_core::Interface for IVPNotify { - type Vtable = IVPNotify_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVPNotify { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc76794a1_d6c5_11d0_9e69_00c04fd7c15b); -} #[repr(C)] #[doc(hidden)] pub struct IVPNotify_Vtbl { @@ -14527,9 +12383,8 @@ pub struct IVPNotify_Vtbl { pub SetDeinterlaceMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mode: AMVP_MODE) -> ::windows_core::HRESULT, pub GetDeinterlaceMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pmode: *mut AMVP_MODE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVPNotify2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVPNotify2, IVPNotify2_Vtbl, 0xebf47183_8764_11d1_9e69_00c04fd7c15b); +::windows_core::imp::interface_hierarchy!(IVPNotify2, ::windows_core::IUnknown, IVPBaseNotify, IVPNotify); impl IVPNotify2 { pub unsafe fn RenegotiateVPParameters(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.RenegotiateVPParameters)(::windows_core::Interface::as_raw(self)).ok() @@ -14550,13 +12405,6 @@ impl IVPNotify2 { (::windows_core::Interface::vtable(self).GetVPSyncMaster)(::windows_core::Interface::as_raw(self), pbvpsyncmaster).ok() } } -::windows_core::imp::interface_hierarchy!(IVPNotify2, ::windows_core::IUnknown, IVPBaseNotify, IVPNotify); -unsafe impl ::windows_core::Interface for IVPNotify2 { - type Vtable = IVPNotify2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVPNotify2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xebf47183_8764_11d1_9e69_00c04fd7c15b); -} #[repr(C)] #[doc(hidden)] pub struct IVPNotify2_Vtbl { @@ -14564,9 +12412,8 @@ pub struct IVPNotify2_Vtbl { pub SetVPSyncMaster: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bvpsyncmaster: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub GetVPSyncMaster: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbvpsyncmaster: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVPVBIConfig(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVPVBIConfig, IVPVBIConfig_Vtbl, 0xec529b00_1a1f_11d1_bad9_00609744111a); +::windows_core::imp::interface_hierarchy!(IVPVBIConfig, ::windows_core::IUnknown, IVPBaseConfig); impl IVPVBIConfig { #[doc = "Required features: `\"Win32_Graphics_DirectDraw\"`"] #[cfg(feature = "Win32_Graphics_DirectDraw")] @@ -14617,41 +12464,25 @@ impl IVPVBIConfig { (::windows_core::Interface::vtable(self).base__.SetSurfaceParameters)(::windows_core::Interface::as_raw(self), dwpitch, dwxorigin, dwyorigin).ok() } } -::windows_core::imp::interface_hierarchy!(IVPVBIConfig, ::windows_core::IUnknown, IVPBaseConfig); -unsafe impl ::windows_core::Interface for IVPVBIConfig { - type Vtable = IVPVBIConfig_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVPVBIConfig { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xec529b00_1a1f_11d1_bad9_00609744111a); -} #[repr(C)] #[doc(hidden)] pub struct IVPVBIConfig_Vtbl { pub base__: IVPBaseConfig_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVPVBINotify(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVPVBINotify, IVPVBINotify_Vtbl, 0xec529b01_1a1f_11d1_bad9_00609744111a); +::windows_core::imp::interface_hierarchy!(IVPVBINotify, ::windows_core::IUnknown, IVPBaseNotify); impl IVPVBINotify { pub unsafe fn RenegotiateVPParameters(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.RenegotiateVPParameters)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IVPVBINotify, ::windows_core::IUnknown, IVPBaseNotify); -unsafe impl ::windows_core::Interface for IVPVBINotify { - type Vtable = IVPVBINotify_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVPVBINotify { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xec529b01_1a1f_11d1_bad9_00609744111a); -} #[repr(C)] #[doc(hidden)] pub struct IVPVBINotify_Vtbl { pub base__: IVPBaseNotify_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVideoEncoder(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVideoEncoder, IVideoEncoder_Vtbl, 0x02997c3b_8e1b_460e_9270_545e0de9563e); +::windows_core::imp::interface_hierarchy!(IVideoEncoder, ::windows_core::IUnknown, IEncoderAPI); impl IVideoEncoder { pub unsafe fn IsSupported(&self, api: *const ::windows_core::GUID) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.IsSupported)(::windows_core::Interface::as_raw(self), api).ok() @@ -14687,21 +12518,13 @@ impl IVideoEncoder { (::windows_core::Interface::vtable(self).base__.SetValue)(::windows_core::Interface::as_raw(self), api, value).ok() } } -::windows_core::imp::interface_hierarchy!(IVideoEncoder, ::windows_core::IUnknown, IEncoderAPI); -unsafe impl ::windows_core::Interface for IVideoEncoder { - type Vtable = IVideoEncoder_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVideoEncoder { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x02997c3b_8e1b_460e_9270_545e0de9563e); -} #[repr(C)] #[doc(hidden)] pub struct IVideoEncoder_Vtbl { pub base__: IEncoderAPI_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVideoFrameStep(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVideoFrameStep, IVideoFrameStep_Vtbl, 0xe46a9787_2b71_444d_a4b5_1fab7b708d6a); +::windows_core::imp::interface_hierarchy!(IVideoFrameStep, ::windows_core::IUnknown); impl IVideoFrameStep { pub unsafe fn Step(&self, dwframes: u32, pstepobject: P0) -> ::windows_core::Result<()> where @@ -14719,13 +12542,6 @@ impl IVideoFrameStep { (::windows_core::Interface::vtable(self).CancelStep)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IVideoFrameStep, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVideoFrameStep { - type Vtable = IVideoFrameStep_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVideoFrameStep { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe46a9787_2b71_444d_a4b5_1fab7b708d6a); -} #[repr(C)] #[doc(hidden)] pub struct IVideoFrameStep_Vtbl { @@ -14734,9 +12550,8 @@ pub struct IVideoFrameStep_Vtbl { pub CanStep: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bmultiple: i32, pstepobject: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CancelStep: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVideoProcAmp(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVideoProcAmp, IVideoProcAmp_Vtbl, 0x4050560e_42a7_413a_85c2_09269a2d0f44); +::windows_core::imp::interface_hierarchy!(IVideoProcAmp, ::windows_core::IUnknown); impl IVideoProcAmp { pub unsafe fn get_BacklightCompensation(&self, pvalue: *mut i32, pflags: *mut i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).get_BacklightCompensation)(::windows_core::Interface::as_raw(self), pvalue, pflags).ok() @@ -14856,13 +12671,6 @@ impl IVideoProcAmp { (::windows_core::Interface::vtable(self).getRange_WhiteBalanceComponent)(::windows_core::Interface::as_raw(self), pmin, pmax, psteppingdelta, pdefault, pcapsflag).ok() } } -::windows_core::imp::interface_hierarchy!(IVideoProcAmp, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVideoProcAmp { - type Vtable = IVideoProcAmp_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVideoProcAmp { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4050560e_42a7_413a_85c2_09269a2d0f44); -} #[repr(C)] #[doc(hidden)] pub struct IVideoProcAmp_Vtbl { @@ -14907,11 +12715,15 @@ pub struct IVideoProcAmp_Vtbl { pub put_WhiteBalanceComponent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value1: i32, value2: i32, flags: i32) -> ::windows_core::HRESULT, pub getRange_WhiteBalanceComponent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pmin: *mut i32, pmax: *mut i32, psteppingdelta: *mut i32, pdefault: *mut i32, pcapsflag: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVideoWindow(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IVideoWindow, + IVideoWindow_Vtbl, + 0x56a868b4_0ad4_11ce_b03a_0020af0ba770 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IVideoWindow, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IVideoWindow { pub unsafe fn SetCaption(&self, strcaption: P0) -> ::windows_core::Result<()> @@ -15054,16 +12866,6 @@ impl IVideoWindow { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IVideoWindow, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IVideoWindow { - type Vtable = IVideoWindow_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IVideoWindow { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x56a868b4_0ad4_11ce_b03a_0020af0ba770); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IVideoWindow_Vtbl { @@ -15111,9 +12913,8 @@ pub struct IVideoWindow_Vtbl { pub HideCursor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hidecursor: OA_BOOL) -> ::windows_core::HRESULT, pub IsCursorHidden: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cursorhidden: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMCodecAMVideoAccelerator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMCodecAMVideoAccelerator, IWMCodecAMVideoAccelerator_Vtbl, 0xd98ee251_34e0_4a2d_9312_9b4c788d9fa1); +::windows_core::imp::interface_hierarchy!(IWMCodecAMVideoAccelerator, ::windows_core::IUnknown); impl IWMCodecAMVideoAccelerator { pub unsafe fn SetAcceleratorInterface(&self, piamva: P0) -> ::windows_core::Result<()> where @@ -15135,13 +12936,6 @@ impl IWMCodecAMVideoAccelerator { (::windows_core::Interface::vtable(self).SetPlayerNotify)(::windows_core::Interface::as_raw(self), phook.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IWMCodecAMVideoAccelerator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMCodecAMVideoAccelerator { - type Vtable = IWMCodecAMVideoAccelerator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMCodecAMVideoAccelerator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd98ee251_34e0_4a2d_9312_9b4c788d9fa1); -} #[repr(C)] #[doc(hidden)] pub struct IWMCodecAMVideoAccelerator_Vtbl { @@ -15156,9 +12950,8 @@ pub struct IWMCodecAMVideoAccelerator_Vtbl { #[cfg(not(feature = "Win32_Media_WindowsMediaFormat"))] SetPlayerNotify: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMCodecVideoAccelerator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMCodecVideoAccelerator, IWMCodecVideoAccelerator_Vtbl, 0x990641b0_739f_4e94_a808_9888da8f75af); +::windows_core::imp::interface_hierarchy!(IWMCodecVideoAccelerator, ::windows_core::IUnknown); impl IWMCodecVideoAccelerator { #[doc = "Required features: `\"Win32_Media_MediaFoundation\"`"] #[cfg(feature = "Win32_Media_MediaFoundation")] @@ -15177,13 +12970,6 @@ impl IWMCodecVideoAccelerator { (::windows_core::Interface::vtable(self).SetPlayerNotify)(::windows_core::Interface::as_raw(self), phook.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IWMCodecVideoAccelerator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMCodecVideoAccelerator { - type Vtable = IWMCodecVideoAccelerator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMCodecVideoAccelerator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x990641b0_739f_4e94_a808_9888da8f75af); -} #[repr(C)] #[doc(hidden)] pub struct IWMCodecVideoAccelerator_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Media/DxMediaObjects/impl.rs b/crates/libs/windows/src/Windows/Win32/Media/DxMediaObjects/impl.rs index 282bb41b20..903b229f27 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/DxMediaObjects/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/DxMediaObjects/impl.rs @@ -35,7 +35,7 @@ impl IDMOQualityControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDMOVideoOutputOptimizations_Impl: Sized { @@ -94,7 +94,7 @@ impl IDMOVideoOutputOptimizations_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumDMO_Impl: Sized { @@ -141,7 +141,7 @@ impl IEnumDMO_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMediaBuffer_Impl: Sized { @@ -181,7 +181,7 @@ impl IMediaBuffer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMediaObject_Impl: Sized { @@ -365,7 +365,7 @@ impl IMediaObject_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMediaObjectInPlace_Impl: Sized { @@ -411,6 +411,6 @@ impl IMediaObjectInPlace_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 0b49fc437e..422a62628c 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/DxMediaObjects/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/DxMediaObjects/mod.rs @@ -57,9 +57,8 @@ pub unsafe fn MoInitMediaType(pmt: *mut DMO_MEDIA_TYPE, cbformat: u32) -> ::wind ::windows_targets::link!("msdmo.dll" "system" fn MoInitMediaType(pmt : *mut DMO_MEDIA_TYPE, cbformat : u32) -> ::windows_core::HRESULT); MoInitMediaType(pmt, cbformat).ok() } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDMOQualityControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDMOQualityControl, IDMOQualityControl_Vtbl, 0x65abea96_cf36_453f_af8a_705e98f16260); +::windows_core::imp::interface_hierarchy!(IDMOQualityControl, ::windows_core::IUnknown); impl IDMOQualityControl { pub unsafe fn SetNow(&self, rtnow: i64) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetNow)(::windows_core::Interface::as_raw(self), rtnow).ok() @@ -72,13 +71,6 @@ impl IDMOQualityControl { (::windows_core::Interface::vtable(self).GetStatus)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDMOQualityControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDMOQualityControl { - type Vtable = IDMOQualityControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDMOQualityControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x65abea96_cf36_453f_af8a_705e98f16260); -} #[repr(C)] #[doc(hidden)] pub struct IDMOQualityControl_Vtbl { @@ -87,9 +79,8 @@ pub struct IDMOQualityControl_Vtbl { pub SetStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwflags: u32) -> ::windows_core::HRESULT, pub GetStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwflags: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDMOVideoOutputOptimizations(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDMOVideoOutputOptimizations, IDMOVideoOutputOptimizations_Vtbl, 0xbe8f4f4e_5b16_4d29_b350_7f6b5d9298ac); +::windows_core::imp::interface_hierarchy!(IDMOVideoOutputOptimizations, ::windows_core::IUnknown); impl IDMOVideoOutputOptimizations { pub unsafe fn QueryOperationModePreferences(&self, uloutputstreamindex: u32) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -107,13 +98,6 @@ impl IDMOVideoOutputOptimizations { (::windows_core::Interface::vtable(self).GetCurrentSampleRequirements)(::windows_core::Interface::as_raw(self), uloutputstreamindex, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDMOVideoOutputOptimizations, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDMOVideoOutputOptimizations { - type Vtable = IDMOVideoOutputOptimizations_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDMOVideoOutputOptimizations { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbe8f4f4e_5b16_4d29_b350_7f6b5d9298ac); -} #[repr(C)] #[doc(hidden)] pub struct IDMOVideoOutputOptimizations_Vtbl { @@ -123,9 +107,8 @@ pub struct IDMOVideoOutputOptimizations_Vtbl { pub GetCurrentOperationMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uloutputstreamindex: u32, pdwenabledfeatures: *mut u32) -> ::windows_core::HRESULT, pub GetCurrentSampleRequirements: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uloutputstreamindex: u32, pdwrequestedfeatures: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumDMO(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumDMO, IEnumDMO_Vtbl, 0x2c3cd98a_2bfa_4a53_9c27_5249ba64ba0f); +::windows_core::imp::interface_hierarchy!(IEnumDMO, ::windows_core::IUnknown); impl IEnumDMO { pub unsafe fn Next(&self, citemstofetch: u32, pclsid: *mut ::windows_core::GUID, names: *mut ::windows_core::PWSTR, pcitemsfetched: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), citemstofetch, pclsid, names, pcitemsfetched).ok() @@ -141,13 +124,6 @@ impl IEnumDMO { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumDMO, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumDMO { - type Vtable = IEnumDMO_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumDMO { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2c3cd98a_2bfa_4a53_9c27_5249ba64ba0f); -} #[repr(C)] #[doc(hidden)] pub struct IEnumDMO_Vtbl { @@ -157,9 +133,8 @@ pub struct IEnumDMO_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaBuffer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMediaBuffer, IMediaBuffer_Vtbl, 0x59eff8b9_938c_4a26_82f2_95cb84cdc837); +::windows_core::imp::interface_hierarchy!(IMediaBuffer, ::windows_core::IUnknown); impl IMediaBuffer { pub unsafe fn SetLength(&self, cblength: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetLength)(::windows_core::Interface::as_raw(self), cblength).ok() @@ -172,13 +147,6 @@ impl IMediaBuffer { (::windows_core::Interface::vtable(self).GetBufferAndLength)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(ppbuffer.unwrap_or(::std::ptr::null_mut())), ::core::mem::transmute(pcblength.unwrap_or(::std::ptr::null_mut()))).ok() } } -::windows_core::imp::interface_hierarchy!(IMediaBuffer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaBuffer { - type Vtable = IMediaBuffer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaBuffer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x59eff8b9_938c_4a26_82f2_95cb84cdc837); -} #[repr(C)] #[doc(hidden)] pub struct IMediaBuffer_Vtbl { @@ -187,9 +155,8 @@ pub struct IMediaBuffer_Vtbl { pub GetMaxLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcbmaxlength: *mut u32) -> ::windows_core::HRESULT, pub GetBufferAndLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppbuffer: *mut *mut u8, pcblength: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaObject(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMediaObject, IMediaObject_Vtbl, 0xd8ad0f58_5494_4102_97c5_ec798e59bcf4); +::windows_core::imp::interface_hierarchy!(IMediaObject, ::windows_core::IUnknown); impl IMediaObject { pub unsafe fn GetStreamCount(&self, pcinputstreams: *mut u32, pcoutputstreams: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetStreamCount)(::windows_core::Interface::as_raw(self), pcinputstreams, pcoutputstreams).ok() @@ -262,13 +229,6 @@ impl IMediaObject { (::windows_core::Interface::vtable(self).Lock)(::windows_core::Interface::as_raw(self), block).ok() } } -::windows_core::imp::interface_hierarchy!(IMediaObject, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaObject { - type Vtable = IMediaObject_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaObject { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd8ad0f58_5494_4102_97c5_ec798e59bcf4); -} #[repr(C)] #[doc(hidden)] pub struct IMediaObject_Vtbl { @@ -295,9 +255,8 @@ pub struct IMediaObject_Vtbl { pub ProcessOutput: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwflags: u32, coutputbuffercount: u32, poutputbuffers: *mut DMO_OUTPUT_DATA_BUFFER, pdwstatus: *mut u32) -> ::windows_core::HRESULT, pub Lock: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, block: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaObjectInPlace(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMediaObjectInPlace, IMediaObjectInPlace_Vtbl, 0x651b9ad0_0fc7_4aa9_9538_d89931010741); +::windows_core::imp::interface_hierarchy!(IMediaObjectInPlace, ::windows_core::IUnknown); impl IMediaObjectInPlace { pub unsafe fn Process(&self, pdata: &mut [u8], reftimestart: i64, dwflags: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Process)(::windows_core::Interface::as_raw(self), pdata.len().try_into().unwrap(), ::core::mem::transmute(pdata.as_ptr()), reftimestart, dwflags).ok() @@ -311,13 +270,6 @@ impl IMediaObjectInPlace { (::windows_core::Interface::vtable(self).GetLatency)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMediaObjectInPlace, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaObjectInPlace { - type Vtable = IMediaObjectInPlace_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaObjectInPlace { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x651b9ad0_0fc7_4aa9_9538_d89931010741); -} #[repr(C)] #[doc(hidden)] pub struct IMediaObjectInPlace_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Media/KernelStreaming/impl.rs b/crates/libs/windows/src/Windows/Win32/Media/KernelStreaming/impl.rs index 5855522e5d..a846675110 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/KernelStreaming/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/KernelStreaming/impl.rs @@ -22,7 +22,7 @@ impl IKsAggregateControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IKsAllocator_Impl: Sized { @@ -63,7 +63,7 @@ impl IKsAllocator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IKsAllocatorEx_Impl: Sized + IKsAllocator_Impl { @@ -104,7 +104,7 @@ impl IKsAllocatorEx_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IKsClockPropertySet_Impl: Sized { @@ -223,7 +223,7 @@ impl IKsClockPropertySet_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IKsControl_Impl: Sized { @@ -257,7 +257,7 @@ impl IKsControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Media_MediaFoundation\"`"] @@ -278,7 +278,7 @@ impl IKsDataTypeCompletion_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), KsCompleteMediaType: KsCompleteMediaType:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Media_DirectShow\"`, `\"Win32_Media_MediaFoundation\"`"] @@ -336,7 +336,7 @@ impl IKsDataTypeHandler_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IKsFormatSupport_Impl: Sized { @@ -369,7 +369,7 @@ impl IKsFormatSupport_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Media_DirectShow\"`"] @@ -407,7 +407,7 @@ impl IKsInterfaceHandler_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IKsJackContainerId_Impl: Sized { @@ -430,7 +430,7 @@ impl IKsJackContainerId_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetJackContainerId: GetJackContainerId:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IKsJackDescription_Impl: Sized { @@ -463,7 +463,7 @@ impl IKsJackDescription_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IKsJackDescription2_Impl: Sized { @@ -502,7 +502,7 @@ impl IKsJackDescription2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IKsJackDescription3_Impl: Sized { @@ -541,7 +541,7 @@ impl IKsJackDescription3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IKsJackSinkInformation_Impl: Sized { @@ -558,7 +558,7 @@ impl IKsJackSinkInformation_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetJackSinkInformation: GetJackSinkInformation:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IKsNodeControl_Impl: Sized { @@ -585,7 +585,7 @@ impl IKsNodeControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IKsNotifyEvent_Impl: Sized { @@ -602,7 +602,7 @@ impl IKsNotifyEvent_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), KsNotifyEvent: KsNotifyEvent:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IKsObject_Impl: Sized { @@ -619,7 +619,7 @@ impl IKsObject_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), KsGetObjectHandle: KsGetObjectHandle:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Media_DirectShow\"`"] @@ -739,7 +739,7 @@ impl IKsPin_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Media_DirectShow\"`"] @@ -760,7 +760,7 @@ impl IKsPinEx_Vtbl { Self { base__: IKsPin_Vtbl::new::(), KsNotifyError: KsNotifyError:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IKsPinFactory_Impl: Sized { @@ -783,7 +783,7 @@ impl IKsPinFactory_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), KsPinFactory: KsPinFactory:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Media_DirectShow\"`"] @@ -877,7 +877,7 @@ impl IKsPinPipe_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IKsPropertySet_Impl: Sized { @@ -917,7 +917,7 @@ impl IKsPropertySet_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IKsQualityForwarder_Impl: Sized + IKsObject_Impl { @@ -934,7 +934,7 @@ impl IKsQualityForwarder_Vtbl { Self { base__: IKsObject_Vtbl::new::(), KsFlushClient: KsFlushClient:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IKsTopology_Impl: Sized { @@ -951,7 +951,7 @@ impl IKsTopology_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CreateNodeInstance: CreateNodeInstance:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IKsTopologyInfo_Impl: Sized { @@ -1056,6 +1056,6 @@ impl IKsTopologyInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 a1d22f6012..d8a0c4adfe 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/KernelStreaming/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/KernelStreaming/mod.rs @@ -112,9 +112,8 @@ where ::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() } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKsAggregateControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IKsAggregateControl, IKsAggregateControl_Vtbl, 0x7f40eac0_3947_11d2_874e_00a0c9223196); +::windows_core::imp::interface_hierarchy!(IKsAggregateControl, ::windows_core::IUnknown); impl IKsAggregateControl { pub unsafe fn KsAddAggregate(&self, aggregateclass: *const ::windows_core::GUID) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).KsAddAggregate)(::windows_core::Interface::as_raw(self), aggregateclass).ok() @@ -123,13 +122,6 @@ impl IKsAggregateControl { (::windows_core::Interface::vtable(self).KsRemoveAggregate)(::windows_core::Interface::as_raw(self), aggregateclass).ok() } } -::windows_core::imp::interface_hierarchy!(IKsAggregateControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKsAggregateControl { - type Vtable = IKsAggregateControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKsAggregateControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7f40eac0_3947_11d2_874e_00a0c9223196); -} #[repr(C)] #[doc(hidden)] pub struct IKsAggregateControl_Vtbl { @@ -137,9 +129,8 @@ pub struct IKsAggregateControl_Vtbl { pub KsAddAggregate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, aggregateclass: *const ::windows_core::GUID) -> ::windows_core::HRESULT, pub KsRemoveAggregate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, aggregateclass: *const ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKsAllocator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IKsAllocator, IKsAllocator_Vtbl, 0x8da64899_c0d9_11d0_8413_0000f822fe8a); +::windows_core::imp::interface_hierarchy!(IKsAllocator, ::windows_core::IUnknown); impl IKsAllocator { pub unsafe fn KsGetAllocatorHandle(&self) -> super::super::Foundation::HANDLE { (::windows_core::Interface::vtable(self).KsGetAllocatorHandle)(::windows_core::Interface::as_raw(self)) @@ -154,13 +145,6 @@ impl IKsAllocator { (::windows_core::Interface::vtable(self).KsSetAllocatorMode)(::windows_core::Interface::as_raw(self), mode) } } -::windows_core::imp::interface_hierarchy!(IKsAllocator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKsAllocator { - type Vtable = IKsAllocator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKsAllocator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8da64899_c0d9_11d0_8413_0000f822fe8a); -} #[repr(C)] #[doc(hidden)] pub struct IKsAllocator_Vtbl { @@ -170,9 +154,8 @@ pub struct IKsAllocator_Vtbl { pub KsGetAllocatorStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, allocatorstatus: *mut KSSTREAMALLOCATOR_STATUS) -> ::windows_core::HRESULT, pub KsSetAllocatorMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mode: KSALLOCATORMODE), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKsAllocatorEx(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IKsAllocatorEx, IKsAllocatorEx_Vtbl, 0x091bb63a_603f_11d1_b067_00a0c9062802); +::windows_core::imp::interface_hierarchy!(IKsAllocatorEx, ::windows_core::IUnknown, IKsAllocator); impl IKsAllocatorEx { pub unsafe fn KsGetAllocatorHandle(&self) -> super::super::Foundation::HANDLE { (::windows_core::Interface::vtable(self).base__.KsGetAllocatorHandle)(::windows_core::Interface::as_raw(self)) @@ -205,13 +188,6 @@ impl IKsAllocatorEx { (::windows_core::Interface::vtable(self).KsCreateAllocatorAndGetHandle)(::windows_core::Interface::as_raw(self), kspin.into_param().abi()) } } -::windows_core::imp::interface_hierarchy!(IKsAllocatorEx, ::windows_core::IUnknown, IKsAllocator); -unsafe impl ::windows_core::Interface for IKsAllocatorEx { - type Vtable = IKsAllocatorEx_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKsAllocatorEx { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x091bb63a_603f_11d1_b067_00a0c9062802); -} #[repr(C)] #[doc(hidden)] pub struct IKsAllocatorEx_Vtbl { @@ -221,9 +197,8 @@ pub struct IKsAllocatorEx_Vtbl { pub KsSetAllocatorHandle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, allocatorhandle: super::super::Foundation::HANDLE), pub KsCreateAllocatorAndGetHandle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, kspin: *mut ::core::ffi::c_void) -> super::super::Foundation::HANDLE, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKsClockPropertySet(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IKsClockPropertySet, IKsClockPropertySet_Vtbl, 0x5c5cbd84_e755_11d0_ac18_00a0c9223196); +::windows_core::imp::interface_hierarchy!(IKsClockPropertySet, ::windows_core::IUnknown); impl IKsClockPropertySet { pub unsafe fn KsGetTime(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -262,13 +237,6 @@ impl IKsClockPropertySet { (::windows_core::Interface::vtable(self).KsGetState)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IKsClockPropertySet, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKsClockPropertySet { - type Vtable = IKsClockPropertySet_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKsClockPropertySet { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5c5cbd84_e755_11d0_ac18_00a0c9223196); -} #[repr(C)] #[doc(hidden)] pub struct IKsClockPropertySet_Vtbl { @@ -284,9 +252,8 @@ pub struct IKsClockPropertySet_Vtbl { pub KsGetResolution: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, resolution: *mut KSRESOLUTION) -> ::windows_core::HRESULT, pub KsGetState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, state: *mut KSSTATE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKsControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IKsControl, IKsControl_Vtbl, 0x28f54685_06fd_11d2_b27a_00a0c9223196); +::windows_core::imp::interface_hierarchy!(IKsControl, ::windows_core::IUnknown); impl IKsControl { pub unsafe fn KsProperty(&self, property: *const KSIDENTIFIER, propertylength: u32, propertydata: *mut ::core::ffi::c_void, datalength: u32, bytesreturned: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).KsProperty)(::windows_core::Interface::as_raw(self), property, propertylength, propertydata, datalength, bytesreturned).ok() @@ -298,13 +265,6 @@ impl IKsControl { (::windows_core::Interface::vtable(self).KsEvent)(::windows_core::Interface::as_raw(self), event, eventlength, eventdata, datalength, bytesreturned).ok() } } -::windows_core::imp::interface_hierarchy!(IKsControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKsControl { - type Vtable = IKsControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKsControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x28f54685_06fd_11d2_b27a_00a0c9223196); -} #[repr(C)] #[doc(hidden)] pub struct IKsControl_Vtbl { @@ -313,9 +273,8 @@ pub struct IKsControl_Vtbl { pub KsMethod: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, method: *const KSIDENTIFIER, methodlength: u32, methoddata: *mut ::core::ffi::c_void, datalength: u32, bytesreturned: *mut u32) -> ::windows_core::HRESULT, pub KsEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, event: *const KSIDENTIFIER, eventlength: u32, eventdata: *mut ::core::ffi::c_void, datalength: u32, bytesreturned: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKsDataTypeCompletion(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IKsDataTypeCompletion, IKsDataTypeCompletion_Vtbl, 0x827d1a0e_0f73_11d2_b27a_00a0c9223196); +::windows_core::imp::interface_hierarchy!(IKsDataTypeCompletion, ::windows_core::IUnknown); impl IKsDataTypeCompletion { #[doc = "Required features: `\"Win32_Media_MediaFoundation\"`"] #[cfg(feature = "Win32_Media_MediaFoundation")] @@ -326,13 +285,6 @@ impl IKsDataTypeCompletion { (::windows_core::Interface::vtable(self).KsCompleteMediaType)(::windows_core::Interface::as_raw(self), filterhandle.into_param().abi(), pinfactoryid, ammediatype).ok() } } -::windows_core::imp::interface_hierarchy!(IKsDataTypeCompletion, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKsDataTypeCompletion { - type Vtable = IKsDataTypeCompletion_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKsDataTypeCompletion { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x827d1a0e_0f73_11d2_b27a_00a0c9223196); -} #[repr(C)] #[doc(hidden)] pub struct IKsDataTypeCompletion_Vtbl { @@ -342,9 +294,8 @@ pub struct IKsDataTypeCompletion_Vtbl { #[cfg(not(feature = "Win32_Media_MediaFoundation"))] KsCompleteMediaType: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKsDataTypeHandler(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IKsDataTypeHandler, IKsDataTypeHandler_Vtbl, 0x5ffbaa02_49a3_11d0_9f36_00aa00a216a1); +::windows_core::imp::interface_hierarchy!(IKsDataTypeHandler, ::windows_core::IUnknown); impl IKsDataTypeHandler { #[doc = "Required features: `\"Win32_Media_DirectShow\"`"] #[cfg(feature = "Win32_Media_DirectShow")] @@ -376,13 +327,6 @@ impl IKsDataTypeHandler { (::windows_core::Interface::vtable(self).KsSetMediaType)(::windows_core::Interface::as_raw(self), ammediatype).ok() } } -::windows_core::imp::interface_hierarchy!(IKsDataTypeHandler, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKsDataTypeHandler { - type Vtable = IKsDataTypeHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKsDataTypeHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5ffbaa02_49a3_11d0_9f36_00aa00a216a1); -} #[repr(C)] #[doc(hidden)] pub struct IKsDataTypeHandler_Vtbl { @@ -402,9 +346,8 @@ pub struct IKsDataTypeHandler_Vtbl { #[cfg(not(feature = "Win32_Media_MediaFoundation"))] KsSetMediaType: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKsFormatSupport(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IKsFormatSupport, IKsFormatSupport_Vtbl, 0x3cb4a69d_bb6f_4d2b_95b7_452d2c155db5); +::windows_core::imp::interface_hierarchy!(IKsFormatSupport, ::windows_core::IUnknown); impl IKsFormatSupport { pub unsafe fn IsFormatSupported(&self, pksformat: *mut KSDATAFORMAT, cbformat: u32, pbsupported: *mut super::super::Foundation::BOOL) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).IsFormatSupported)(::windows_core::Interface::as_raw(self), pksformat, cbformat, pbsupported).ok() @@ -414,13 +357,6 @@ impl IKsFormatSupport { (::windows_core::Interface::vtable(self).GetDevicePreferredFormat)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IKsFormatSupport, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKsFormatSupport { - type Vtable = IKsFormatSupport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKsFormatSupport { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3cb4a69d_bb6f_4d2b_95b7_452d2c155db5); -} #[repr(C)] #[doc(hidden)] pub struct IKsFormatSupport_Vtbl { @@ -428,9 +364,8 @@ pub struct IKsFormatSupport_Vtbl { pub IsFormatSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pksformat: *mut KSDATAFORMAT, cbformat: u32, pbsupported: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub GetDevicePreferredFormat: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppksformat: *mut *mut KSDATAFORMAT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKsInterfaceHandler(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IKsInterfaceHandler, IKsInterfaceHandler_Vtbl, 0xd3abc7e0_9a61_11d0_a40d_00a0c9223196); +::windows_core::imp::interface_hierarchy!(IKsInterfaceHandler, ::windows_core::IUnknown); impl IKsInterfaceHandler { pub unsafe fn KsSetPin(&self, kspin: P0) -> ::windows_core::Result<()> where @@ -450,13 +385,6 @@ impl IKsInterfaceHandler { (::windows_core::Interface::vtable(self).KsCompleteIo)(::windows_core::Interface::as_raw(self), streamsegment).ok() } } -::windows_core::imp::interface_hierarchy!(IKsInterfaceHandler, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKsInterfaceHandler { - type Vtable = IKsInterfaceHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKsInterfaceHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd3abc7e0_9a61_11d0_a40d_00a0c9223196); -} #[repr(C)] #[doc(hidden)] pub struct IKsInterfaceHandler_Vtbl { @@ -468,31 +396,22 @@ pub struct IKsInterfaceHandler_Vtbl { KsProcessMediaSamples: usize, pub KsCompleteIo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, streamsegment: *mut KSSTREAM_SEGMENT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKsJackContainerId(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IKsJackContainerId, IKsJackContainerId_Vtbl, 0xc99af463_d629_4ec4_8c00_e54d68154248); +::windows_core::imp::interface_hierarchy!(IKsJackContainerId, ::windows_core::IUnknown); impl IKsJackContainerId { pub unsafe fn GetJackContainerId(&self) -> ::windows_core::Result<::windows_core::GUID> { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetJackContainerId)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IKsJackContainerId, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKsJackContainerId { - type Vtable = IKsJackContainerId_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKsJackContainerId { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc99af463_d629_4ec4_8c00_e54d68154248); -} #[repr(C)] #[doc(hidden)] pub struct IKsJackContainerId_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetJackContainerId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pjackcontainerid: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKsJackDescription(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IKsJackDescription, IKsJackDescription_Vtbl, 0x4509f757_2d46_4637_8e62_ce7db944f57b); +::windows_core::imp::interface_hierarchy!(IKsJackDescription, ::windows_core::IUnknown); impl IKsJackDescription { pub unsafe fn GetJackCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -502,13 +421,6 @@ impl IKsJackDescription { (::windows_core::Interface::vtable(self).GetJackDescription)(::windows_core::Interface::as_raw(self), njack, pdescription).ok() } } -::windows_core::imp::interface_hierarchy!(IKsJackDescription, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKsJackDescription { - type Vtable = IKsJackDescription_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKsJackDescription { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4509f757_2d46_4637_8e62_ce7db944f57b); -} #[repr(C)] #[doc(hidden)] pub struct IKsJackDescription_Vtbl { @@ -516,9 +428,8 @@ pub struct IKsJackDescription_Vtbl { pub GetJackCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcjacks: *mut u32) -> ::windows_core::HRESULT, pub GetJackDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, njack: u32, pdescription: *mut KSJACK_DESCRIPTION) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKsJackDescription2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IKsJackDescription2, IKsJackDescription2_Vtbl, 0x478f3a9b_e0c9_4827_9228_6f5505ffe76a); +::windows_core::imp::interface_hierarchy!(IKsJackDescription2, ::windows_core::IUnknown); impl IKsJackDescription2 { pub unsafe fn GetJackCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -529,13 +440,6 @@ impl IKsJackDescription2 { (::windows_core::Interface::vtable(self).GetJackDescription2)(::windows_core::Interface::as_raw(self), njack, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IKsJackDescription2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKsJackDescription2 { - type Vtable = IKsJackDescription2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKsJackDescription2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x478f3a9b_e0c9_4827_9228_6f5505ffe76a); -} #[repr(C)] #[doc(hidden)] pub struct IKsJackDescription2_Vtbl { @@ -543,9 +447,8 @@ pub struct IKsJackDescription2_Vtbl { pub GetJackCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcjacks: *mut u32) -> ::windows_core::HRESULT, pub GetJackDescription2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, njack: u32, pdescription2: *mut KSJACK_DESCRIPTION2) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKsJackDescription3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IKsJackDescription3, IKsJackDescription3_Vtbl, 0xe3f6778b_6660_4cc8_a291_ecc4192d9967); +::windows_core::imp::interface_hierarchy!(IKsJackDescription3, ::windows_core::IUnknown); impl IKsJackDescription3 { pub unsafe fn GetJackCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -556,13 +459,6 @@ impl IKsJackDescription3 { (::windows_core::Interface::vtable(self).GetJackDescription3)(::windows_core::Interface::as_raw(self), njack, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IKsJackDescription3, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKsJackDescription3 { - type Vtable = IKsJackDescription3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKsJackDescription3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe3f6778b_6660_4cc8_a291_ecc4192d9967); -} #[repr(C)] #[doc(hidden)] pub struct IKsJackDescription3_Vtbl { @@ -570,30 +466,21 @@ pub struct IKsJackDescription3_Vtbl { pub GetJackCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcjacks: *mut u32) -> ::windows_core::HRESULT, pub GetJackDescription3: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, njack: u32, pdescription3: *mut KSJACK_DESCRIPTION3) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKsJackSinkInformation(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IKsJackSinkInformation, IKsJackSinkInformation_Vtbl, 0xd9bd72ed_290f_4581_9ff3_61027a8fe532); +::windows_core::imp::interface_hierarchy!(IKsJackSinkInformation, ::windows_core::IUnknown); impl IKsJackSinkInformation { pub unsafe fn GetJackSinkInformation(&self, pjacksinkinformation: *mut KSJACK_SINK_INFORMATION) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetJackSinkInformation)(::windows_core::Interface::as_raw(self), pjacksinkinformation).ok() } } -::windows_core::imp::interface_hierarchy!(IKsJackSinkInformation, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKsJackSinkInformation { - type Vtable = IKsJackSinkInformation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKsJackSinkInformation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd9bd72ed_290f_4581_9ff3_61027a8fe532); -} #[repr(C)] #[doc(hidden)] pub struct IKsJackSinkInformation_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetJackSinkInformation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pjacksinkinformation: *mut KSJACK_SINK_INFORMATION) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKsNodeControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IKsNodeControl, IKsNodeControl_Vtbl, 0x11737c14_24a7_4bb5_81a0_0d003813b0c4); +::windows_core::imp::interface_hierarchy!(IKsNodeControl, ::windows_core::IUnknown); impl IKsNodeControl { pub unsafe fn SetNodeId(&self, dwnodeid: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetNodeId)(::windows_core::Interface::as_raw(self), dwnodeid).ok() @@ -602,13 +489,6 @@ impl IKsNodeControl { (::windows_core::Interface::vtable(self).SetKsControl)(::windows_core::Interface::as_raw(self), pkscontrol).ok() } } -::windows_core::imp::interface_hierarchy!(IKsNodeControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKsNodeControl { - type Vtable = IKsNodeControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKsNodeControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x11737c14_24a7_4bb5_81a0_0d003813b0c4); -} #[repr(C)] #[doc(hidden)] pub struct IKsNodeControl_Vtbl { @@ -616,51 +496,34 @@ pub struct IKsNodeControl_Vtbl { pub SetNodeId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwnodeid: u32) -> ::windows_core::HRESULT, pub SetKsControl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pkscontrol: *const ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKsNotifyEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IKsNotifyEvent, IKsNotifyEvent_Vtbl, 0x412bd695_f84b_46c1_ac73_54196dbc8fa7); +::windows_core::imp::interface_hierarchy!(IKsNotifyEvent, ::windows_core::IUnknown); impl IKsNotifyEvent { pub unsafe fn KsNotifyEvent(&self, event: u32, lparam1: usize, lparam2: usize) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).KsNotifyEvent)(::windows_core::Interface::as_raw(self), event, lparam1, lparam2).ok() } } -::windows_core::imp::interface_hierarchy!(IKsNotifyEvent, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKsNotifyEvent { - type Vtable = IKsNotifyEvent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKsNotifyEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x412bd695_f84b_46c1_ac73_54196dbc8fa7); -} #[repr(C)] #[doc(hidden)] pub struct IKsNotifyEvent_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub KsNotifyEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, event: u32, lparam1: usize, lparam2: usize) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKsObject(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IKsObject, IKsObject_Vtbl, 0x423c13a2_2070_11d0_9ef7_00aa00a216a1); +::windows_core::imp::interface_hierarchy!(IKsObject, ::windows_core::IUnknown); impl IKsObject { pub unsafe fn KsGetObjectHandle(&self) -> super::super::Foundation::HANDLE { (::windows_core::Interface::vtable(self).KsGetObjectHandle)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(IKsObject, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKsObject { - type Vtable = IKsObject_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKsObject { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x423c13a2_2070_11d0_9ef7_00aa00a216a1); -} #[repr(C)] #[doc(hidden)] pub struct IKsObject_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub KsGetObjectHandle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> super::super::Foundation::HANDLE, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKsPin(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IKsPin, IKsPin_Vtbl, 0xb61178d1_a2d9_11cf_9e53_00aa00a216a1); +::windows_core::imp::interface_hierarchy!(IKsPin, ::windows_core::IUnknown); impl IKsPin { pub unsafe fn KsQueryMediums(&self) -> ::windows_core::Result<*mut KSMULTIPLE_ITEM> { let mut result__ = ::std::mem::zeroed(); @@ -716,13 +579,6 @@ impl IKsPin { (::windows_core::Interface::vtable(self).KsQualityNotify)(::windows_core::Interface::as_raw(self), proportion, timedelta).ok() } } -::windows_core::imp::interface_hierarchy!(IKsPin, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKsPin { - type Vtable = IKsPin_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKsPin { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb61178d1_a2d9_11cf_9e53_00aa00a216a1); -} #[repr(C)] #[doc(hidden)] pub struct IKsPin_Vtbl { @@ -750,9 +606,8 @@ pub struct IKsPin_Vtbl { pub KsDecrementPendingIoCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> i32, pub KsQualityNotify: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, proportion: u32, timedelta: i64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKsPinEx(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IKsPinEx, IKsPinEx_Vtbl, 0x7bb38260_d19c_11d2_b38a_00a0c95ec22e); +::windows_core::imp::interface_hierarchy!(IKsPinEx, ::windows_core::IUnknown, IKsPin); impl IKsPinEx { pub unsafe fn KsQueryMediums(&self) -> ::windows_core::Result<*mut KSMULTIPLE_ITEM> { let mut result__ = ::std::mem::zeroed(); @@ -816,13 +671,6 @@ impl IKsPinEx { (::windows_core::Interface::vtable(self).KsNotifyError)(::windows_core::Interface::as_raw(self), sample.into_param().abi(), hr) } } -::windows_core::imp::interface_hierarchy!(IKsPinEx, ::windows_core::IUnknown, IKsPin); -unsafe impl ::windows_core::Interface for IKsPinEx { - type Vtable = IKsPinEx_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKsPinEx { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7bb38260_d19c_11d2_b38a_00a0c95ec22e); -} #[repr(C)] #[doc(hidden)] pub struct IKsPinEx_Vtbl { @@ -832,31 +680,22 @@ pub struct IKsPinEx_Vtbl { #[cfg(not(feature = "Win32_Media_DirectShow"))] KsNotifyError: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKsPinFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IKsPinFactory, IKsPinFactory_Vtbl, 0xcd5ebe6b_8b6e_11d1_8ae0_00a0c9223196); +::windows_core::imp::interface_hierarchy!(IKsPinFactory, ::windows_core::IUnknown); impl IKsPinFactory { pub unsafe fn KsPinFactory(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).KsPinFactory)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IKsPinFactory, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKsPinFactory { - type Vtable = IKsPinFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKsPinFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcd5ebe6b_8b6e_11d1_8ae0_00a0c9223196); -} #[repr(C)] #[doc(hidden)] pub struct IKsPinFactory_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub KsPinFactory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinfactory: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKsPinPipe(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IKsPinPipe, IKsPinPipe_Vtbl, 0xe539cd90_a8b4_11d1_8189_00a0c9062802); +::windows_core::imp::interface_hierarchy!(IKsPinPipe, ::windows_core::IUnknown); impl IKsPinPipe { pub unsafe fn KsGetPinFramingCache(&self, framingex: *mut *mut KSALLOCATOR_FRAMING_EX, framingprop: *mut FRAMING_PROP, option: FRAMING_CACHE_OPS) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).KsGetPinFramingCache)(::windows_core::Interface::as_raw(self), framingex, framingprop, option).ok() @@ -899,13 +738,6 @@ impl IKsPinPipe { (::windows_core::Interface::vtable(self).KsGetFilterName)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(IKsPinPipe, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKsPinPipe { - type Vtable = IKsPinPipe_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKsPinPipe { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe539cd90_a8b4_11d1_8189_00a0c9062802); -} #[repr(C)] #[doc(hidden)] pub struct IKsPinPipe_Vtbl { @@ -925,9 +757,8 @@ pub struct IKsPinPipe_Vtbl { pub KsGetPinName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::PWSTR, pub KsGetFilterName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::PWSTR, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKsPropertySet(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IKsPropertySet, IKsPropertySet_Vtbl, 0x31efac30_515c_11d0_a9aa_00aa0061be93); +::windows_core::imp::interface_hierarchy!(IKsPropertySet, ::windows_core::IUnknown); impl IKsPropertySet { pub unsafe fn Set(&self, guidpropset: *const ::windows_core::GUID, dwpropid: u32, pinstancedata: *const ::core::ffi::c_void, cbinstancedata: u32, ppropdata: *const ::core::ffi::c_void, cbpropdata: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Set)(::windows_core::Interface::as_raw(self), guidpropset, dwpropid, pinstancedata, cbinstancedata, ppropdata, cbpropdata).ok() @@ -940,13 +771,6 @@ impl IKsPropertySet { (::windows_core::Interface::vtable(self).QuerySupported)(::windows_core::Interface::as_raw(self), guidpropset, dwpropid, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IKsPropertySet, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKsPropertySet { - type Vtable = IKsPropertySet_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKsPropertySet { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x31efac30_515c_11d0_a9aa_00aa0061be93); -} #[repr(C)] #[doc(hidden)] pub struct IKsPropertySet_Vtbl { @@ -955,9 +779,8 @@ pub struct IKsPropertySet_Vtbl { pub Get: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guidpropset: *const ::windows_core::GUID, dwpropid: u32, pinstancedata: *const ::core::ffi::c_void, cbinstancedata: u32, ppropdata: *mut ::core::ffi::c_void, cbpropdata: u32, pcbreturned: *mut u32) -> ::windows_core::HRESULT, pub QuerySupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guidpropset: *const ::windows_core::GUID, dwpropid: u32, ptypesupport: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKsQualityForwarder(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IKsQualityForwarder, IKsQualityForwarder_Vtbl, 0x97ebaacb_95bd_11d0_a3ea_00a0c9223196); +::windows_core::imp::interface_hierarchy!(IKsQualityForwarder, ::windows_core::IUnknown, IKsObject); impl IKsQualityForwarder { pub unsafe fn KsGetObjectHandle(&self) -> super::super::Foundation::HANDLE { (::windows_core::Interface::vtable(self).base__.KsGetObjectHandle)(::windows_core::Interface::as_raw(self)) @@ -969,22 +792,14 @@ impl IKsQualityForwarder { (::windows_core::Interface::vtable(self).KsFlushClient)(::windows_core::Interface::as_raw(self), pin.into_param().abi()) } } -::windows_core::imp::interface_hierarchy!(IKsQualityForwarder, ::windows_core::IUnknown, IKsObject); -unsafe impl ::windows_core::Interface for IKsQualityForwarder { - type Vtable = IKsQualityForwarder_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKsQualityForwarder { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x97ebaacb_95bd_11d0_a3ea_00a0c9223196); -} #[repr(C)] #[doc(hidden)] pub struct IKsQualityForwarder_Vtbl { pub base__: IKsObject_Vtbl, pub KsFlushClient: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pin: *mut ::core::ffi::c_void), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKsTopology(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IKsTopology, IKsTopology_Vtbl, 0x28f54683_06fd_11d2_b27a_00a0c9223196); +::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 @@ -993,22 +808,14 @@ impl IKsTopology { (::windows_core::Interface::vtable(self).CreateNodeInstance)(::windows_core::Interface::as_raw(self), nodeid, flags, desiredaccess, unkouter.into_param().abi(), interfaceid, interface).ok() } } -::windows_core::imp::interface_hierarchy!(IKsTopology, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKsTopology { - type Vtable = IKsTopology_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKsTopology { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x28f54683_06fd_11d2_b27a_00a0c9223196); -} #[repr(C)] #[doc(hidden)] pub struct IKsTopology_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub CreateNodeInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nodeid: u32, flags: u32, desiredaccess: u32, unkouter: *mut ::core::ffi::c_void, interfaceid: *const ::windows_core::GUID, interface: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKsTopologyInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IKsTopologyInfo, IKsTopologyInfo_Vtbl, 0x720d4ac0_7533_11d0_a5d6_28db04c10000); +::windows_core::imp::interface_hierarchy!(IKsTopologyInfo, ::windows_core::IUnknown); impl IKsTopologyInfo { pub unsafe fn NumCategories(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1041,13 +848,6 @@ impl IKsTopologyInfo { (::windows_core::Interface::vtable(self).CreateNodeInstance)(::windows_core::Interface::as_raw(self), dwnodeid, iid, ppvobject).ok() } } -::windows_core::imp::interface_hierarchy!(IKsTopologyInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKsTopologyInfo { - type Vtable = IKsTopologyInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKsTopologyInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x720d4ac0_7533_11d0_a5d6_28db04c10000); -} #[repr(C)] #[doc(hidden)] pub struct IKsTopologyInfo_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Media/LibrarySharingServices/impl.rs b/crates/libs/windows/src/Windows/Win32/Media/LibrarySharingServices/impl.rs index 3fd9fddcb5..cad9fdb8d8 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/LibrarySharingServices/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/LibrarySharingServices/impl.rs @@ -58,7 +58,7 @@ impl IWindowsMediaLibrarySharingDevice_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -114,7 +114,7 @@ impl IWindowsMediaLibrarySharingDeviceProperties_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -157,7 +157,7 @@ impl IWindowsMediaLibrarySharingDeviceProperty_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -213,7 +213,7 @@ impl IWindowsMediaLibrarySharingDevices_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -417,6 +417,6 @@ impl IWindowsMediaLibrarySharingServices_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } 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 56f25b8e14..b1bdab8371 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/LibrarySharingServices/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/LibrarySharingServices/mod.rs @@ -1,8 +1,12 @@ -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWindowsMediaLibrarySharingDevice(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWindowsMediaLibrarySharingDevice, + IWindowsMediaLibrarySharingDevice_Vtbl, + 0x3dccc293_4fd9_4191_a25b_8e57c5d27bd4 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWindowsMediaLibrarySharingDevice, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IWindowsMediaLibrarySharingDevice { pub unsafe fn DeviceID(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -24,16 +28,6 @@ impl IWindowsMediaLibrarySharingDevice { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWindowsMediaLibrarySharingDevice, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWindowsMediaLibrarySharingDevice { - type Vtable = IWindowsMediaLibrarySharingDevice_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWindowsMediaLibrarySharingDevice { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3dccc293_4fd9_4191_a25b_8e57c5d27bd4); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWindowsMediaLibrarySharingDevice_Vtbl { @@ -46,11 +40,15 @@ pub struct IWindowsMediaLibrarySharingDevice_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Properties: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWindowsMediaLibrarySharingDeviceProperties(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWindowsMediaLibrarySharingDeviceProperties, + IWindowsMediaLibrarySharingDeviceProperties_Vtbl, + 0xc4623214_6b06_40c5_a623_b2ff4c076bfd +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWindowsMediaLibrarySharingDeviceProperties, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IWindowsMediaLibrarySharingDeviceProperties { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -74,16 +72,6 @@ impl IWindowsMediaLibrarySharingDeviceProperties { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWindowsMediaLibrarySharingDeviceProperties, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWindowsMediaLibrarySharingDeviceProperties { - type Vtable = IWindowsMediaLibrarySharingDeviceProperties_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWindowsMediaLibrarySharingDeviceProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc4623214_6b06_40c5_a623_b2ff4c076bfd); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWindowsMediaLibrarySharingDeviceProperties_Vtbl { @@ -98,11 +86,15 @@ pub struct IWindowsMediaLibrarySharingDeviceProperties_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetProperty: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWindowsMediaLibrarySharingDeviceProperty(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWindowsMediaLibrarySharingDeviceProperty, + IWindowsMediaLibrarySharingDeviceProperty_Vtbl, + 0x81e26927_7a7d_40a7_81d4_bddc02960e3e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWindowsMediaLibrarySharingDeviceProperty, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IWindowsMediaLibrarySharingDeviceProperty { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -117,16 +109,6 @@ impl IWindowsMediaLibrarySharingDeviceProperty { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWindowsMediaLibrarySharingDeviceProperty, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWindowsMediaLibrarySharingDeviceProperty { - type Vtable = IWindowsMediaLibrarySharingDeviceProperty_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWindowsMediaLibrarySharingDeviceProperty { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x81e26927_7a7d_40a7_81d4_bddc02960e3e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWindowsMediaLibrarySharingDeviceProperty_Vtbl { @@ -137,11 +119,15 @@ pub struct IWindowsMediaLibrarySharingDeviceProperty_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] Value: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWindowsMediaLibrarySharingDevices(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWindowsMediaLibrarySharingDevices, + IWindowsMediaLibrarySharingDevices_Vtbl, + 0x1803f9d6_fe6d_4546_bf5b_992fe8ec12d1 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWindowsMediaLibrarySharingDevices, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IWindowsMediaLibrarySharingDevices { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -165,16 +151,6 @@ impl IWindowsMediaLibrarySharingDevices { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWindowsMediaLibrarySharingDevices, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWindowsMediaLibrarySharingDevices { - type Vtable = IWindowsMediaLibrarySharingDevices_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWindowsMediaLibrarySharingDevices { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1803f9d6_fe6d_4546_bf5b_992fe8ec12d1); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWindowsMediaLibrarySharingDevices_Vtbl { @@ -189,11 +165,15 @@ pub struct IWindowsMediaLibrarySharingDevices_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetDevice: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWindowsMediaLibrarySharingServices(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWindowsMediaLibrarySharingServices, + IWindowsMediaLibrarySharingServices_Vtbl, + 0x01f5f85e_0a81_40da_a7c8_21ef3af8440c +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWindowsMediaLibrarySharingServices, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IWindowsMediaLibrarySharingServices { pub unsafe fn showShareMediaCPL(&self, device: P0) -> ::windows_core::Result<()> @@ -299,16 +279,6 @@ impl IWindowsMediaLibrarySharingServices { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWindowsMediaLibrarySharingServices, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWindowsMediaLibrarySharingServices { - type Vtable = IWindowsMediaLibrarySharingServices_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWindowsMediaLibrarySharingServices { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x01f5f85e_0a81_40da_a7c8_21ef3af8440c); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWindowsMediaLibrarySharingServices_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Media/MediaFoundation/impl.rs b/crates/libs/windows/src/Windows/Win32/Media/MediaFoundation/impl.rs index cab6060ff8..175762caf2 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/MediaFoundation/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/MediaFoundation/impl.rs @@ -21,7 +21,7 @@ impl IAdvancedMediaCapture_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAdvancedMediaCaptureInitializationSettings_Impl: Sized { @@ -38,7 +38,7 @@ impl IAdvancedMediaCaptureInitializationSettings_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), SetDirectxDeviceManager: SetDirectxDeviceManager:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAdvancedMediaCaptureSettings_Impl: Sized { @@ -61,7 +61,7 @@ impl IAdvancedMediaCaptureSettings_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetDirectxDeviceManager: GetDirectxDeviceManager:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAudioSourceProvider_Impl: Sized { @@ -78,7 +78,7 @@ impl IAudioSourceProvider_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), ProvideInput: ProvideInput:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IClusterDetector_Impl: Sized { @@ -111,7 +111,7 @@ impl IClusterDetector_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -245,7 +245,7 @@ impl ICodecAPI_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`, `\"Win32_Graphics_Dxgi_Common\"`"] @@ -360,7 +360,7 @@ impl ID3D12VideoDecodeCommandList_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`, `\"Win32_Graphics_Dxgi_Common\"`"] @@ -381,7 +381,7 @@ impl ID3D12VideoDecodeCommandList1_Vtbl { Self { base__: ID3D12VideoDecodeCommandList_Vtbl::new::(), DecodeFrame1: DecodeFrame1:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`, `\"Win32_Graphics_Dxgi_Common\"`"] @@ -419,7 +419,7 @@ impl ID3D12VideoDecodeCommandList2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`, `\"Win32_Graphics_Dxgi_Common\"`"] @@ -440,7 +440,7 @@ impl ID3D12VideoDecodeCommandList3_Vtbl { Self { base__: ID3D12VideoDecodeCommandList2_Vtbl::new::(), Barrier: Barrier:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] @@ -461,7 +461,7 @@ impl ID3D12VideoDecoder_Vtbl { Self { base__: super::super::Graphics::Direct3D12::ID3D12Pageable_Vtbl::new::(), GetDesc: GetDesc:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] @@ -485,7 +485,7 @@ impl ID3D12VideoDecoder1_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`, `\"Win32_Graphics_Dxgi_Common\"`"] @@ -506,7 +506,7 @@ impl ID3D12VideoDecoderHeap_Vtbl { Self { base__: super::super::Graphics::Direct3D12::ID3D12Pageable_Vtbl::new::(), GetDesc: GetDesc:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`, `\"Win32_Graphics_Dxgi_Common\"`"] @@ -530,7 +530,7 @@ impl ID3D12VideoDecoderHeap1_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] @@ -575,7 +575,7 @@ impl ID3D12VideoDevice_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`, `\"Win32_Graphics_Dxgi_Common\"`"] @@ -606,7 +606,7 @@ impl ID3D12VideoDevice1_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`, `\"Win32_Graphics_Dxgi_Common\"`"] @@ -658,7 +658,7 @@ impl ID3D12VideoDevice2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`, `\"Win32_Graphics_Dxgi_Common\"`"] @@ -689,7 +689,7 @@ impl ID3D12VideoDevice3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] @@ -818,7 +818,7 @@ impl ID3D12VideoEncodeCommandList_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] @@ -849,7 +849,7 @@ impl ID3D12VideoEncodeCommandList1_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`, `\"Win32_Graphics_Dxgi_Common\"`"] @@ -880,7 +880,7 @@ impl ID3D12VideoEncodeCommandList2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`, `\"Win32_Graphics_Dxgi_Common\"`"] @@ -901,7 +901,7 @@ impl ID3D12VideoEncodeCommandList3_Vtbl { Self { base__: ID3D12VideoEncodeCommandList2_Vtbl::new::(), Barrier: Barrier:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`, `\"Win32_Graphics_Dxgi_Common\"`"] @@ -967,7 +967,7 @@ impl ID3D12VideoEncoder_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] @@ -1033,7 +1033,7 @@ impl ID3D12VideoEncoderHeap_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] @@ -1064,7 +1064,7 @@ impl ID3D12VideoExtensionCommand_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`, `\"Win32_Graphics_Dxgi_Common\"`"] @@ -1095,7 +1095,7 @@ impl ID3D12VideoMotionEstimator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`, `\"Win32_Graphics_Dxgi_Common\"`"] @@ -1126,7 +1126,7 @@ impl ID3D12VideoMotionVectorHeap_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] @@ -1241,7 +1241,7 @@ impl ID3D12VideoProcessCommandList_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] @@ -1262,7 +1262,7 @@ impl ID3D12VideoProcessCommandList1_Vtbl { Self { base__: ID3D12VideoProcessCommandList_Vtbl::new::(), ProcessFrames1: ProcessFrames1:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] @@ -1300,7 +1300,7 @@ impl ID3D12VideoProcessCommandList2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] @@ -1321,7 +1321,7 @@ impl ID3D12VideoProcessCommandList3_Vtbl { Self { base__: ID3D12VideoProcessCommandList2_Vtbl::new::(), Barrier: Barrier:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`, `\"Win32_Graphics_Dxgi_Common\"`"] @@ -1366,7 +1366,7 @@ impl ID3D12VideoProcessor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`, `\"Win32_Graphics_Dxgi_Common\"`"] @@ -1390,7 +1390,7 @@ impl ID3D12VideoProcessor1_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D9\"`"] @@ -1475,7 +1475,7 @@ impl IDXVAHD_Device_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D9\"`"] @@ -1527,7 +1527,7 @@ impl IDXVAHD_VideoProcessor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D9\"`"] @@ -1548,7 +1548,7 @@ impl IDirect3D9ExOverlayExtension_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CheckDeviceOverlayType: CheckDeviceOverlayType:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D9\"`"] @@ -1600,7 +1600,7 @@ impl IDirect3DAuthenticatedChannel9_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D9\"`"] @@ -1680,7 +1680,7 @@ impl IDirect3DCryptoSession9_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D9\"`"] @@ -1718,7 +1718,7 @@ impl IDirect3DDevice9Video_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D9\"`"] @@ -1790,7 +1790,7 @@ impl IDirect3DDeviceManager9_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D9\"`"] @@ -1811,7 +1811,7 @@ impl IDirectXVideoAccelerationService_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CreateSurface: CreateSurface:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D9\"`"] @@ -1883,7 +1883,7 @@ impl IDirectXVideoDecoder_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D9\"`"] @@ -1934,7 +1934,7 @@ impl IDirectXVideoDecoderService_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDirectXVideoMemoryConfiguration_Impl: Sized { @@ -1967,7 +1967,7 @@ impl IDirectXVideoMemoryConfiguration_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D9\"`"] @@ -2044,7 +2044,7 @@ impl IDirectXVideoProcessor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D9\"`"] @@ -2135,7 +2135,7 @@ impl IDirectXVideoProcessorService_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IEVRFilterConfig_Impl: Sized { @@ -2168,7 +2168,7 @@ impl IEVRFilterConfig_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEVRFilterConfigEx_Impl: Sized + IEVRFilterConfig_Impl { @@ -2201,7 +2201,7 @@ impl IEVRFilterConfigEx_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IEVRTrustedVideoPlugin_Impl: Sized { @@ -2254,7 +2254,7 @@ impl IEVRTrustedVideoPlugin_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEVRVideoStreamControl_Impl: Sized { @@ -2287,7 +2287,7 @@ impl IEVRVideoStreamControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IFileClient_Impl: Sized { @@ -2321,7 +2321,7 @@ impl IFileClient_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IFileIo_Impl: Sized { @@ -2404,7 +2404,7 @@ impl IFileIo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMF2DBuffer_Impl: Sized { @@ -2478,7 +2478,7 @@ impl IMF2DBuffer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMF2DBuffer2_Impl: Sized + IMF2DBuffer_Impl { @@ -2505,7 +2505,7 @@ impl IMF2DBuffer2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -2601,7 +2601,7 @@ impl IMFASFContentInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] @@ -2733,7 +2733,7 @@ impl IMFASFIndexer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFASFMultiplexer_Impl: Sized { @@ -2821,7 +2821,7 @@ impl IMFASFMultiplexer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFASFMutualExclusion_Impl: Sized { @@ -2921,7 +2921,7 @@ impl IMFASFMutualExclusion_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] @@ -3104,7 +3104,7 @@ impl IMFASFProfile_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IMFASFSplitter_Impl: Sized { @@ -3192,7 +3192,7 @@ impl IMFASFSplitter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] @@ -3303,7 +3303,7 @@ impl IMFASFStreamConfig_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IMFASFStreamPrioritization_Impl: Sized { @@ -3363,7 +3363,7 @@ impl IMFASFStreamPrioritization_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFASFStreamSelector_Impl: Sized { @@ -3534,7 +3534,7 @@ impl IMFASFStreamSelector_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] @@ -3572,7 +3572,7 @@ impl IMFActivate_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IMFAsyncCallback_Impl: Sized { @@ -3599,7 +3599,7 @@ impl IMFAsyncCallback_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFAsyncCallbackLogging_Impl: Sized + IMFAsyncCallback_Impl { @@ -3626,7 +3626,7 @@ impl IMFAsyncCallbackLogging_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IMFAsyncResult_Impl: Sized { @@ -3686,7 +3686,7 @@ impl IMFAsyncResult_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] @@ -3973,7 +3973,7 @@ impl IMFAttributes_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Media_Audio\"`, `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] @@ -3994,7 +3994,7 @@ impl IMFAudioMediaType_Vtbl { Self { base__: IMFMediaType_Vtbl::new::(), GetAudioFormat: GetAudioFormat:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IMFAudioPolicy_Impl: Sized { @@ -4067,7 +4067,7 @@ impl IMFAudioPolicy_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFAudioStreamVolume_Impl: Sized { @@ -4127,7 +4127,7 @@ impl IMFAudioStreamVolume_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFBufferListNotify_Impl: Sized { @@ -4154,7 +4154,7 @@ impl IMFBufferListNotify_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFByteStream_Impl: Sized { @@ -4320,7 +4320,7 @@ impl IMFByteStream_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFByteStreamBuffering_Impl: Sized { @@ -4354,7 +4354,7 @@ impl IMFByteStreamBuffering_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFByteStreamCacheControl_Impl: Sized { @@ -4371,7 +4371,7 @@ impl IMFByteStreamCacheControl_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), StopBackgroundTransfer: StopBackgroundTransfer:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFByteStreamCacheControl2_Impl: Sized + IMFByteStreamCacheControl_Impl { @@ -4411,7 +4411,7 @@ impl IMFByteStreamCacheControl2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -4462,7 +4462,7 @@ impl IMFByteStreamHandler_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFByteStreamProxyClassFactory_Impl: Sized { @@ -4479,7 +4479,7 @@ impl IMFByteStreamProxyClassFactory_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CreateByteStreamProxy: CreateByteStreamProxy:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFByteStreamTimeSeek_Impl: Sized { @@ -4519,7 +4519,7 @@ impl IMFByteStreamTimeSeek_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFCameraConfigurationManager_Impl: Sized { @@ -4559,7 +4559,7 @@ impl IMFCameraConfigurationManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFCameraControlDefaults_Impl: Sized { @@ -4606,7 +4606,7 @@ impl IMFCameraControlDefaults_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] @@ -4683,7 +4683,7 @@ impl IMFCameraControlDefaultsCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IMFCameraControlMonitor_Impl: Sized { @@ -4731,7 +4731,7 @@ impl IMFCameraControlMonitor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFCameraControlNotify_Impl: Sized { @@ -4758,7 +4758,7 @@ impl IMFCameraControlNotify_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFCameraOcclusionStateMonitor_Impl: Sized { @@ -4792,7 +4792,7 @@ impl IMFCameraOcclusionStateMonitor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFCameraOcclusionStateReport_Impl: Sized { @@ -4815,7 +4815,7 @@ impl IMFCameraOcclusionStateReport_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetOcclusionState: GetOcclusionState:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFCameraOcclusionStateReportCallback_Impl: Sized { @@ -4832,7 +4832,7 @@ impl IMFCameraOcclusionStateReportCallback_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnOcclusionStateReport: OnOcclusionStateReport:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFCameraSyncObject_Impl: Sized { @@ -4859,7 +4859,7 @@ impl IMFCameraSyncObject_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFCaptureEngine_Impl: Sized { @@ -4940,7 +4940,7 @@ impl IMFCaptureEngine_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFCaptureEngineClassFactory_Impl: Sized { @@ -4957,7 +4957,7 @@ impl IMFCaptureEngineClassFactory_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CreateInstance: CreateInstance:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFCaptureEngineOnEventCallback_Impl: Sized { @@ -4974,7 +4974,7 @@ impl IMFCaptureEngineOnEventCallback_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnEvent: OnEvent:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFCaptureEngineOnSampleCallback_Impl: Sized { @@ -4991,7 +4991,7 @@ impl IMFCaptureEngineOnSampleCallback_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnSample: OnSample:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFCaptureEngineOnSampleCallback2_Impl: Sized + IMFCaptureEngineOnSampleCallback_Impl { @@ -5011,7 +5011,7 @@ impl IMFCaptureEngineOnSampleCallback2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IMFCapturePhotoConfirmation_Impl: Sized { @@ -5051,7 +5051,7 @@ impl IMFCapturePhotoConfirmation_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFCapturePhotoSink_Impl: Sized + IMFCaptureSink_Impl { @@ -5085,7 +5085,7 @@ impl IMFCapturePhotoSink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IMFCapturePreviewSink_Impl: Sized + IMFCaptureSink_Impl { @@ -5173,7 +5173,7 @@ impl IMFCapturePreviewSink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IMFCaptureRecordSink_Impl: Sized + IMFCaptureSink_Impl { @@ -5234,7 +5234,7 @@ impl IMFCaptureRecordSink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IMFCaptureSink_Impl: Sized { @@ -5282,7 +5282,7 @@ impl IMFCaptureSink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFCaptureSink2_Impl: Sized + IMFCaptureSink_Impl { @@ -5299,7 +5299,7 @@ impl IMFCaptureSink2_Vtbl { Self { base__: IMFCaptureSink_Vtbl::new::(), SetOutputMediaType: SetOutputMediaType:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IMFCaptureSource_Impl: Sized { @@ -5440,7 +5440,7 @@ impl IMFCaptureSource_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFCdmSuspendNotify_Impl: Sized { @@ -5463,7 +5463,7 @@ impl IMFCdmSuspendNotify_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Begin: Begin::, End: End:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFClock_Impl: Sized { @@ -5529,7 +5529,7 @@ impl IMFClock_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFClockConsumer_Impl: Sized { @@ -5562,7 +5562,7 @@ impl IMFClockConsumer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFClockStateSink_Impl: Sized { @@ -5610,7 +5610,7 @@ impl IMFClockStateSink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFCollection_Impl: Sized { @@ -5683,7 +5683,7 @@ impl IMFCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFContentDecryptionModule_Impl: Sized { @@ -5763,7 +5763,7 @@ impl IMFContentDecryptionModule_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -5819,7 +5819,7 @@ impl IMFContentDecryptionModuleAccess_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -5856,7 +5856,7 @@ impl IMFContentDecryptionModuleFactory_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFContentDecryptionModuleSession_Impl: Sized { @@ -5943,7 +5943,7 @@ impl IMFContentDecryptionModuleSession_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFContentDecryptionModuleSessionCallbacks_Impl: Sized { @@ -5970,7 +5970,7 @@ impl IMFContentDecryptionModuleSessionCallbacks_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFContentDecryptorContext_Impl: Sized { @@ -5993,7 +5993,7 @@ impl IMFContentDecryptorContext_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), InitializeHardwareKey: InitializeHardwareKey:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFContentEnabler_Impl: Sized { @@ -6067,7 +6067,7 @@ impl IMFContentEnabler_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFContentProtectionDevice_Impl: Sized { @@ -6094,7 +6094,7 @@ impl IMFContentProtectionDevice_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFContentProtectionManager_Impl: Sized { @@ -6121,7 +6121,7 @@ impl IMFContentProtectionManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFD3D12SynchronizationObject_Impl: Sized { @@ -6148,7 +6148,7 @@ impl IMFD3D12SynchronizationObject_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] @@ -6193,7 +6193,7 @@ impl IMFD3D12SynchronizationObjectCommands_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFDLNASinkInit_Impl: Sized { @@ -6210,7 +6210,7 @@ impl IMFDLNASinkInit_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Initialize: Initialize:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFDRMNetHelper_Impl: Sized { @@ -6237,7 +6237,7 @@ impl IMFDRMNetHelper_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFDXGIBuffer_Impl: Sized { @@ -6284,7 +6284,7 @@ impl IMFDXGIBuffer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFDXGIDeviceManager_Impl: Sized { @@ -6352,7 +6352,7 @@ impl IMFDXGIDeviceManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFDXGIDeviceManagerSource_Impl: Sized { @@ -6375,7 +6375,7 @@ impl IMFDXGIDeviceManagerSource_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetManager: GetManager:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFDesiredSample_Impl: Sized { @@ -6409,7 +6409,7 @@ impl IMFDesiredSample_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFDeviceTransform_Impl: Sized { @@ -6610,7 +6610,7 @@ impl IMFDeviceTransform_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFDeviceTransformCallback_Impl: Sized { @@ -6627,7 +6627,7 @@ impl IMFDeviceTransformCallback_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnBufferSent: OnBufferSent:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFExtendedCameraControl_Impl: Sized { @@ -6682,7 +6682,7 @@ impl IMFExtendedCameraControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFExtendedCameraController_Impl: Sized { @@ -6705,7 +6705,7 @@ impl IMFExtendedCameraController_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetExtendedCameraControl: GetExtendedCameraControl:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFExtendedCameraIntrinsicModel_Impl: Sized { @@ -6745,7 +6745,7 @@ impl IMFExtendedCameraIntrinsicModel_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFExtendedCameraIntrinsics_Impl: Sized { @@ -6818,7 +6818,7 @@ impl IMFExtendedCameraIntrinsics_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFExtendedCameraIntrinsicsDistortionModel6KT_Impl: Sized { @@ -6845,7 +6845,7 @@ impl IMFExtendedCameraIntrinsicsDistortionModel6KT_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFExtendedCameraIntrinsicsDistortionModelArcTan_Impl: Sized { @@ -6872,7 +6872,7 @@ impl IMFExtendedCameraIntrinsicsDistortionModelArcTan_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFExtendedDRMTypeSupport_Impl: Sized { @@ -6895,7 +6895,7 @@ impl IMFExtendedDRMTypeSupport_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), IsTypeSupportedEx: IsTypeSupportedEx:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFFieldOfUseMFTUnlock_Impl: Sized { @@ -6912,7 +6912,7 @@ impl IMFFieldOfUseMFTUnlock_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Unlock: Unlock:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFFinalizableMediaSink_Impl: Sized + IMFMediaSink_Impl { @@ -6939,7 +6939,7 @@ impl IMFFinalizableMediaSink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IMFGetService_Impl: Sized { @@ -6956,7 +6956,7 @@ impl IMFGetService_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetService: GetService:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFHDCPStatus_Impl: Sized { @@ -6979,7 +6979,7 @@ impl IMFHDCPStatus_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Query: Query::, Set: Set:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFHttpDownloadRequest_Impl: Sized { @@ -7146,7 +7146,7 @@ impl IMFHttpDownloadRequest_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFHttpDownloadSession_Impl: Sized { @@ -7186,7 +7186,7 @@ impl IMFHttpDownloadSession_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFHttpDownloadSessionProvider_Impl: Sized { @@ -7209,7 +7209,7 @@ impl IMFHttpDownloadSessionProvider_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CreateHttpDownloadSession: CreateHttpDownloadSession:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFImageSharingEngine_Impl: Sized { @@ -7243,7 +7243,7 @@ impl IMFImageSharingEngine_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFImageSharingEngineClassFactory_Impl: Sized { @@ -7266,7 +7266,7 @@ impl IMFImageSharingEngineClassFactory_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CreateInstanceFromUDN: CreateInstanceFromUDN:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFInputTrustAuthority_Impl: Sized { @@ -7333,7 +7333,7 @@ impl IMFInputTrustAuthority_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFLocalMFTRegistration_Impl: Sized { @@ -7350,7 +7350,7 @@ impl IMFLocalMFTRegistration_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), RegisterMFTs: RegisterMFTs:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFMediaBuffer_Impl: Sized { @@ -7410,7 +7410,7 @@ impl IMFMediaBuffer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFMediaEngine_Impl: Sized { @@ -7759,7 +7759,7 @@ impl IMFMediaEngine_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFMediaEngineAudioEndpointId_Impl: Sized { @@ -7792,7 +7792,7 @@ impl IMFMediaEngineAudioEndpointId_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFMediaEngineClassFactory_Impl: Sized { @@ -7844,7 +7844,7 @@ impl IMFMediaEngineClassFactory_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFMediaEngineClassFactory2_Impl: Sized { @@ -7867,7 +7867,7 @@ impl IMFMediaEngineClassFactory2_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CreateMediaKeys2: CreateMediaKeys2:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -7897,7 +7897,7 @@ impl IMFMediaEngineClassFactory3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFMediaEngineClassFactory4_Impl: Sized { @@ -7917,7 +7917,7 @@ impl IMFMediaEngineClassFactory4_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFMediaEngineClassFactoryEx_Impl: Sized + IMFMediaEngineClassFactory_Impl { @@ -7969,7 +7969,7 @@ impl IMFMediaEngineClassFactoryEx_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IMFMediaEngineEME_Impl: Sized { @@ -8002,7 +8002,7 @@ impl IMFMediaEngineEME_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFMediaEngineEMENotify_Impl: Sized { @@ -8029,7 +8029,7 @@ impl IMFMediaEngineEMENotify_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] @@ -8389,7 +8389,7 @@ impl IMFMediaEngineEx_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IMFMediaEngineExtension_Impl: Sized { @@ -8442,7 +8442,7 @@ impl IMFMediaEngineExtension_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFMediaEngineNeedKeyNotify_Impl: Sized { @@ -8459,7 +8459,7 @@ impl IMFMediaEngineNeedKeyNotify_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), NeedKey: NeedKey:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFMediaEngineNotify_Impl: Sized { @@ -8476,7 +8476,7 @@ impl IMFMediaEngineNotify_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), EventNotify: EventNotify:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFMediaEngineOPMInfo_Impl: Sized { @@ -8493,7 +8493,7 @@ impl IMFMediaEngineOPMInfo_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetOPMInfo: GetOPMInfo:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFMediaEngineProtectedContent_Impl: Sized { @@ -8560,7 +8560,7 @@ impl IMFMediaEngineProtectedContent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFMediaEngineSrcElements_Impl: Sized { @@ -8633,7 +8633,7 @@ impl IMFMediaEngineSrcElements_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFMediaEngineSrcElementsEx_Impl: Sized + IMFMediaEngineSrcElements_Impl { @@ -8666,7 +8666,7 @@ impl IMFMediaEngineSrcElementsEx_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IMFMediaEngineSupportsSourceTransfer_Impl: Sized { @@ -8706,7 +8706,7 @@ impl IMFMediaEngineSupportsSourceTransfer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFMediaEngineTransferSource_Impl: Sized { @@ -8726,7 +8726,7 @@ impl IMFMediaEngineTransferSource_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFMediaEngineWebSupport_Impl: Sized { @@ -8766,7 +8766,7 @@ impl IMFMediaEngineWebSupport_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFMediaError_Impl: Sized { @@ -8807,7 +8807,7 @@ impl IMFMediaError_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] @@ -8876,7 +8876,7 @@ impl IMFMediaEvent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] @@ -8933,7 +8933,7 @@ impl IMFMediaEventGenerator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] @@ -9011,7 +9011,7 @@ impl IMFMediaEventQueue_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFMediaKeySession_Impl: Sized { @@ -9071,7 +9071,7 @@ impl IMFMediaKeySession_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFMediaKeySession2_Impl: Sized + IMFMediaKeySession_Impl { @@ -9138,7 +9138,7 @@ impl IMFMediaKeySession2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IMFMediaKeySessionNotify_Impl: Sized { @@ -9172,7 +9172,7 @@ impl IMFMediaKeySessionNotify_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFMediaKeySessionNotify2_Impl: Sized + IMFMediaKeySessionNotify_Impl { @@ -9199,7 +9199,7 @@ impl IMFMediaKeySessionNotify2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -9255,7 +9255,7 @@ impl IMFMediaKeySystemAccess_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFMediaKeys_Impl: Sized { @@ -9314,7 +9314,7 @@ impl IMFMediaKeys_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFMediaKeys2_Impl: Sized + IMFMediaKeys_Impl { @@ -9360,7 +9360,7 @@ impl IMFMediaKeys2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] @@ -9465,7 +9465,7 @@ impl IMFMediaSession_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IMFMediaSharingEngine_Impl: Sized + IMFMediaEngine_Impl { @@ -9482,7 +9482,7 @@ impl IMFMediaSharingEngine_Vtbl { Self { base__: IMFMediaEngine_Vtbl::new::(), GetDevice: GetDevice:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IMFMediaSharingEngineClassFactory_Impl: Sized { @@ -9505,7 +9505,7 @@ impl IMFMediaSharingEngineClassFactory_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CreateInstance: CreateInstance:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFMediaSink_Impl: Sized { @@ -9617,7 +9617,7 @@ impl IMFMediaSink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFMediaSinkPreroll_Impl: Sized { @@ -9634,7 +9634,7 @@ impl IMFMediaSinkPreroll_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), NotifyPreroll: NotifyPreroll:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] @@ -9705,7 +9705,7 @@ impl IMFMediaSource_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] @@ -9726,7 +9726,7 @@ impl IMFMediaSource2_Vtbl { Self { base__: IMFMediaSourceEx_Vtbl::new::(), SetMediaType: SetMediaType:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] @@ -9776,7 +9776,7 @@ impl IMFMediaSourceEx_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IMFMediaSourceExtension_Impl: Sized { @@ -9865,7 +9865,7 @@ impl IMFMediaSourceExtension_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFMediaSourceExtensionLiveSeekableRange_Impl: Sized { @@ -9892,7 +9892,7 @@ impl IMFMediaSourceExtensionLiveSeekableRange_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFMediaSourceExtensionNotify_Impl: Sized { @@ -9926,7 +9926,7 @@ impl IMFMediaSourceExtensionNotify_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFMediaSourcePresentationProvider_Impl: Sized { @@ -9943,7 +9943,7 @@ impl IMFMediaSourcePresentationProvider_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), ForceEndOfPresentation: ForceEndOfPresentation:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFMediaSourceTopologyProvider_Impl: Sized { @@ -9966,7 +9966,7 @@ impl IMFMediaSourceTopologyProvider_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetMediaSourceTopology: GetMediaSourceTopology:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] @@ -10016,7 +10016,7 @@ impl IMFMediaStream_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] @@ -10053,7 +10053,7 @@ impl IMFMediaStream2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IMFMediaStreamSourceSampleRequest_Impl: Sized { @@ -10070,7 +10070,7 @@ impl IMFMediaStreamSourceSampleRequest_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), SetSample: SetSample:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFMediaTimeRange_Impl: Sized { @@ -10137,7 +10137,7 @@ impl IMFMediaTimeRange_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] @@ -10207,7 +10207,7 @@ impl IMFMediaType_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IMFMediaTypeHandler_Impl: Sized { @@ -10286,7 +10286,7 @@ impl IMFMediaTypeHandler_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] @@ -10376,7 +10376,7 @@ impl IMFMetadata_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFMetadataProvider_Impl: Sized { @@ -10399,7 +10399,7 @@ impl IMFMetadataProvider_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetMFMetadata: GetMFMetadata:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFMuxStreamAttributesManager_Impl: Sized { @@ -10438,7 +10438,7 @@ impl IMFMuxStreamAttributesManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFMuxStreamMediaTypeManager_Impl: Sized { @@ -10517,7 +10517,7 @@ impl IMFMuxStreamMediaTypeManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFMuxStreamSampleManager_Impl: Sized { @@ -10563,7 +10563,7 @@ impl IMFMuxStreamSampleManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFNetCredential_Impl: Sized { @@ -10617,7 +10617,7 @@ impl IMFNetCredential_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFNetCredentialCache_Impl: Sized { @@ -10651,7 +10651,7 @@ impl IMFNetCredentialCache_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFNetCredentialManager_Impl: Sized { @@ -10691,7 +10691,7 @@ impl IMFNetCredentialManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFNetCrossOriginSupport_Impl: Sized { @@ -10743,7 +10743,7 @@ impl IMFNetCrossOriginSupport_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFNetProxyLocator_Impl: Sized { @@ -10797,7 +10797,7 @@ impl IMFNetProxyLocator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFNetProxyLocatorFactory_Impl: Sized { @@ -10820,7 +10820,7 @@ impl IMFNetProxyLocatorFactory_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CreateProxyLocator: CreateProxyLocator:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFNetResourceFilter_Impl: Sized { @@ -10853,7 +10853,7 @@ impl IMFNetResourceFilter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFNetSchemeHandlerConfig_Impl: Sized { @@ -10899,7 +10899,7 @@ impl IMFNetSchemeHandlerConfig_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFObjectReferenceStream_Impl: Sized { @@ -10926,7 +10926,7 @@ impl IMFObjectReferenceStream_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] @@ -10982,7 +10982,7 @@ impl IMFOutputPolicy_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] @@ -11038,7 +11038,7 @@ impl IMFOutputSchema_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IMFOutputTrustAuthority_Impl: Sized { @@ -11071,7 +11071,7 @@ impl IMFOutputTrustAuthority_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFPMPClient_Impl: Sized { @@ -11088,7 +11088,7 @@ impl IMFPMPClient_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), SetPMPHost: SetPMPHost:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFPMPClientApp_Impl: Sized { @@ -11105,7 +11105,7 @@ impl IMFPMPClientApp_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), SetPMPHost: SetPMPHost:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -11143,7 +11143,7 @@ impl IMFPMPHost_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -11181,7 +11181,7 @@ impl IMFPMPHostApp_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFPMPServer_Impl: Sized { @@ -11215,7 +11215,7 @@ impl IMFPMPServer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`, `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -11437,7 +11437,7 @@ impl IMFPMediaItem_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] @@ -11778,7 +11778,7 @@ impl IMFPMediaPlayer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -11799,7 +11799,7 @@ impl IMFPMediaPlayerCallback_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnMediaPlayerEvent: OnMediaPlayerEvent:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFPluginControl_Impl: Sized { @@ -11866,7 +11866,7 @@ impl IMFPluginControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFPluginControl2_Impl: Sized + IMFPluginControl_Impl { @@ -11883,7 +11883,7 @@ impl IMFPluginControl2_Vtbl { Self { base__: IMFPluginControl_Vtbl::new::(), SetPolicy: SetPolicy:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IMFPresentationClock_Impl: Sized + IMFClock_Impl { @@ -11964,7 +11964,7 @@ impl IMFPresentationClock_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] @@ -12028,7 +12028,7 @@ impl IMFPresentationDescriptor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IMFPresentationTimeSource_Impl: Sized + IMFClock_Impl { @@ -12051,7 +12051,7 @@ impl IMFPresentationTimeSource_Vtbl { Self { base__: IMFClock_Vtbl::new::(), GetUnderlyingClock: GetUnderlyingClock:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IMFProtectedEnvironmentAccess_Impl: Sized { @@ -12078,7 +12078,7 @@ impl IMFProtectedEnvironmentAccess_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFQualityAdvise_Impl: Sized { @@ -12138,7 +12138,7 @@ impl IMFQualityAdvise_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFQualityAdvise2_Impl: Sized + IMFQualityAdvise_Impl { @@ -12161,7 +12161,7 @@ impl IMFQualityAdvise2_Vtbl { Self { base__: IMFQualityAdvise_Vtbl::new::(), NotifyQualityEvent: NotifyQualityEvent:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IMFQualityAdviseLimits_Impl: Sized { @@ -12200,7 +12200,7 @@ impl IMFQualityAdviseLimits_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFQualityManager_Impl: Sized { @@ -12255,7 +12255,7 @@ impl IMFQualityManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFRateControl_Impl: Sized { @@ -12282,7 +12282,7 @@ impl IMFRateControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFRateSupport_Impl: Sized { @@ -12328,7 +12328,7 @@ impl IMFRateSupport_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFReadWriteClassFactory_Impl: Sized { @@ -12355,7 +12355,7 @@ impl IMFReadWriteClassFactory_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFRealTimeClient_Impl: Sized { @@ -12389,7 +12389,7 @@ impl IMFRealTimeClient_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFRealTimeClientEx_Impl: Sized { @@ -12423,7 +12423,7 @@ impl IMFRealTimeClientEx_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFRelativePanelReport_Impl: Sized { @@ -12446,7 +12446,7 @@ impl IMFRelativePanelReport_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetRelativePanel: GetRelativePanel:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFRelativePanelWatcher_Impl: Sized + IMFShutdown_Impl { @@ -12492,7 +12492,7 @@ impl IMFRelativePanelWatcher_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IMFRemoteAsyncCallback_Impl: Sized { @@ -12509,7 +12509,7 @@ impl IMFRemoteAsyncCallback_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Invoke: Invoke:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFRemoteDesktopPlugin_Impl: Sized { @@ -12526,7 +12526,7 @@ impl IMFRemoteDesktopPlugin_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), UpdateTopology: UpdateTopology:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFRemoteProxy_Impl: Sized { @@ -12553,7 +12553,7 @@ impl IMFRemoteProxy_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] @@ -12616,7 +12616,7 @@ impl IMFSAMIStyle_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFSSLCertificateManager_Impl: Sized { @@ -12670,7 +12670,7 @@ impl IMFSSLCertificateManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] @@ -12827,7 +12827,7 @@ impl IMFSample_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IMFSampleAllocatorControl_Impl: Sized { @@ -12854,7 +12854,7 @@ impl IMFSampleAllocatorControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFSampleGrabberSinkCallback_Impl: Sized + IMFClockStateSink_Impl { @@ -12888,7 +12888,7 @@ impl IMFSampleGrabberSinkCallback_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IMFSampleGrabberSinkCallback2_Impl: Sized + IMFSampleGrabberSinkCallback_Impl { @@ -12905,7 +12905,7 @@ impl IMFSampleGrabberSinkCallback2_Vtbl { Self { base__: IMFSampleGrabberSinkCallback_Vtbl::new::(), OnProcessSampleEx: OnProcessSampleEx:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IMFSampleOutputStream_Impl: Sized { @@ -12939,7 +12939,7 @@ impl IMFSampleOutputStream_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFSampleProtection_Impl: Sized { @@ -12999,7 +12999,7 @@ impl IMFSampleProtection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFSaveJob_Impl: Sized { @@ -13046,7 +13046,7 @@ impl IMFSaveJob_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -13084,7 +13084,7 @@ impl IMFSchemeHandler_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFSecureBuffer_Impl: Sized { @@ -13107,7 +13107,7 @@ impl IMFSecureBuffer_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetIdentifier: GetIdentifier:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFSecureChannel_Impl: Sized { @@ -13134,7 +13134,7 @@ impl IMFSecureChannel_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] @@ -13155,7 +13155,7 @@ impl IMFSeekInfo_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetNearestKeyFrames: GetNearestKeyFrames:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFSensorActivitiesReport_Impl: Sized { @@ -13207,7 +13207,7 @@ impl IMFSensorActivitiesReport_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFSensorActivitiesReportCallback_Impl: Sized { @@ -13224,7 +13224,7 @@ impl IMFSensorActivitiesReportCallback_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnActivitiesReport: OnActivitiesReport:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFSensorActivityMonitor_Impl: Sized { @@ -13247,7 +13247,7 @@ impl IMFSensorActivityMonitor_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Start: Start::, Stop: Stop:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFSensorActivityReport_Impl: Sized { @@ -13300,7 +13300,7 @@ impl IMFSensorActivityReport_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFSensorDevice_Impl: Sized { @@ -13418,7 +13418,7 @@ impl IMFSensorDevice_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFSensorGroup_Impl: Sized { @@ -13523,7 +13523,7 @@ impl IMFSensorGroup_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFSensorProcessActivity_Impl: Sized { @@ -13588,7 +13588,7 @@ impl IMFSensorProcessActivity_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFSensorProfile_Impl: Sized { @@ -13635,7 +13635,7 @@ impl IMFSensorProfile_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFSensorProfileCollection_Impl: Sized { @@ -13702,7 +13702,7 @@ impl IMFSensorProfileCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] @@ -13758,7 +13758,7 @@ impl IMFSensorStream_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IMFSensorTransformFactory_Impl: Sized { @@ -13824,7 +13824,7 @@ impl IMFSensorTransformFactory_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFSequencerSource_Impl: Sized { @@ -13878,7 +13878,7 @@ impl IMFSequencerSource_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFSharingEngineClassFactory_Impl: Sized { @@ -13901,7 +13901,7 @@ impl IMFSharingEngineClassFactory_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CreateInstance: CreateInstance:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFShutdown_Impl: Sized { @@ -13934,7 +13934,7 @@ impl IMFShutdown_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFSignedLibrary_Impl: Sized { @@ -13951,7 +13951,7 @@ impl IMFSignedLibrary_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetProcedureAddress: GetProcedureAddress:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFSimpleAudioVolume_Impl: Sized { @@ -14004,7 +14004,7 @@ impl IMFSimpleAudioVolume_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFSinkWriter_Impl: Sized { @@ -14100,7 +14100,7 @@ impl IMFSinkWriter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFSinkWriterCallback_Impl: Sized { @@ -14127,7 +14127,7 @@ impl IMFSinkWriterCallback_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFSinkWriterCallback2_Impl: Sized + IMFSinkWriterCallback_Impl { @@ -14154,7 +14154,7 @@ impl IMFSinkWriterCallback2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IMFSinkWriterEncoderConfig_Impl: Sized { @@ -14181,7 +14181,7 @@ impl IMFSinkWriterEncoderConfig_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFSinkWriterEx_Impl: Sized + IMFSinkWriter_Impl { @@ -14198,7 +14198,7 @@ impl IMFSinkWriterEx_Vtbl { Self { base__: IMFSinkWriter_Vtbl::new::(), GetTransformForStream: GetTransformForStream:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IMFSourceBuffer_Impl: Sized { @@ -14301,7 +14301,7 @@ impl IMFSourceBuffer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFSourceBufferAppendMode_Impl: Sized { @@ -14328,7 +14328,7 @@ impl IMFSourceBufferAppendMode_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFSourceBufferList_Impl: Sized { @@ -14355,7 +14355,7 @@ impl IMFSourceBufferList_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFSourceBufferNotify_Impl: Sized { @@ -14403,7 +14403,7 @@ impl IMFSourceBufferNotify_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFSourceOpenMonitor_Impl: Sized { @@ -14420,7 +14420,7 @@ impl IMFSourceOpenMonitor_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnSourceEvent: OnSourceEvent:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] @@ -14531,7 +14531,7 @@ impl IMFSourceReader_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFSourceReaderCallback_Impl: Sized { @@ -14565,7 +14565,7 @@ impl IMFSourceReaderCallback_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFSourceReaderCallback2_Impl: Sized + IMFSourceReaderCallback_Impl { @@ -14592,7 +14592,7 @@ impl IMFSourceReaderCallback2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] @@ -14643,7 +14643,7 @@ impl IMFSourceReaderEx_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -14709,7 +14709,7 @@ impl IMFSourceResolver_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Media_Audio\"`"] @@ -14779,7 +14779,7 @@ impl IMFSpatialAudioObjectBuffer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] @@ -14829,7 +14829,7 @@ impl IMFSpatialAudioSample_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] @@ -14872,7 +14872,7 @@ impl IMFStreamDescriptor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] @@ -14949,7 +14949,7 @@ impl IMFStreamSink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IMFStreamingSinkConfig_Impl: Sized { @@ -14966,7 +14966,7 @@ impl IMFStreamingSinkConfig_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), StartStreaming: StartStreaming:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFSystemId_Impl: Sized { @@ -14993,7 +14993,7 @@ impl IMFSystemId_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] @@ -15050,7 +15050,7 @@ impl IMFTimecodeTranslate_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFTimedText_Impl: Sized { @@ -15209,7 +15209,7 @@ impl IMFTimedText_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFTimedTextBinary_Impl: Sized { @@ -15226,7 +15226,7 @@ impl IMFTimedTextBinary_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetData: GetData:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFTimedTextBouten_Impl: Sized { @@ -15278,7 +15278,7 @@ impl IMFTimedTextBouten_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFTimedTextCue_Impl: Sized { @@ -15398,7 +15398,7 @@ impl IMFTimedTextCue_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFTimedTextCueList_Impl: Sized { @@ -15478,7 +15478,7 @@ impl IMFTimedTextCueList_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFTimedTextFormattedText_Impl: Sized { @@ -15518,7 +15518,7 @@ impl IMFTimedTextFormattedText_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFTimedTextNotify_Impl: Sized { @@ -15580,7 +15580,7 @@ impl IMFTimedTextNotify_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFTimedTextRegion_Impl: Sized { @@ -15725,7 +15725,7 @@ impl IMFTimedTextRegion_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFTimedTextRuby_Impl: Sized { @@ -15790,7 +15790,7 @@ impl IMFTimedTextRuby_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFTimedTextStyle_Impl: Sized { @@ -15954,7 +15954,7 @@ impl IMFTimedTextStyle_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFTimedTextStyle2_Impl: Sized { @@ -16019,7 +16019,7 @@ impl IMFTimedTextStyle2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFTimedTextTrack_Impl: Sized { @@ -16153,7 +16153,7 @@ impl IMFTimedTextTrack_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFTimedTextTrackList_Impl: Sized { @@ -16199,7 +16199,7 @@ impl IMFTimedTextTrackList_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFTimer_Impl: Sized { @@ -16232,7 +16232,7 @@ impl IMFTimer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFTopoLoader_Impl: Sized { @@ -16249,7 +16249,7 @@ impl IMFTopoLoader_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Load: Load:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] @@ -16372,7 +16372,7 @@ impl IMFTopology_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] @@ -16543,7 +16543,7 @@ impl IMFTopologyNode_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IMFTopologyNodeAttributeEditor_Impl: Sized { @@ -16560,7 +16560,7 @@ impl IMFTopologyNodeAttributeEditor_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), UpdateNodeAttributes: UpdateNodeAttributes:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFTopologyServiceLookup_Impl: Sized { @@ -16577,7 +16577,7 @@ impl IMFTopologyServiceLookup_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), LookupService: LookupService:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFTopologyServiceLookupClient_Impl: Sized { @@ -16604,7 +16604,7 @@ impl IMFTopologyServiceLookupClient_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFTrackedSample_Impl: Sized { @@ -16621,7 +16621,7 @@ impl IMFTrackedSample_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), SetAllocator: SetAllocator:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFTranscodeProfile_Impl: Sized { @@ -16694,7 +16694,7 @@ impl IMFTranscodeProfile_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFTranscodeSinkInfoProvider_Impl: Sized { @@ -16741,7 +16741,7 @@ impl IMFTranscodeSinkInfoProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFTransform_Impl: Sized { @@ -16975,7 +16975,7 @@ impl IMFTransform_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFTrustedInput_Impl: Sized { @@ -16998,7 +16998,7 @@ impl IMFTrustedInput_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetInputTrustAuthority: GetInputTrustAuthority:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFTrustedOutput_Impl: Sized { @@ -17050,7 +17050,7 @@ impl IMFTrustedOutput_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFVideoCaptureSampleAllocator_Impl: Sized + IMFVideoSampleAllocator_Impl { @@ -17070,7 +17070,7 @@ impl IMFVideoCaptureSampleAllocator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IMFVideoDeviceID_Impl: Sized { @@ -17093,7 +17093,7 @@ impl IMFVideoDeviceID_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetDeviceID: GetDeviceID:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] @@ -17252,7 +17252,7 @@ impl IMFVideoDisplayControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] @@ -17283,7 +17283,7 @@ impl IMFVideoMediaType_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D9\"`, `\"Win32_Graphics_Gdi\"`"] @@ -17328,7 +17328,7 @@ impl IMFVideoMixerBitmap_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFVideoMixerControl_Impl: Sized { @@ -17381,7 +17381,7 @@ impl IMFVideoMixerControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFVideoMixerControl2_Impl: Sized + IMFVideoMixerControl_Impl { @@ -17414,7 +17414,7 @@ impl IMFVideoMixerControl2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IMFVideoPositionMapper_Impl: Sized { @@ -17434,7 +17434,7 @@ impl IMFVideoPositionMapper_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFVideoPresenter_Impl: Sized + IMFClockStateSink_Impl { @@ -17467,7 +17467,7 @@ impl IMFVideoPresenter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D9\"`"] @@ -17604,7 +17604,7 @@ impl IMFVideoProcessor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFVideoProcessorControl_Impl: Sized { @@ -17659,7 +17659,7 @@ impl IMFVideoProcessorControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFVideoProcessorControl2_Impl: Sized + IMFVideoProcessorControl_Impl { @@ -17699,7 +17699,7 @@ impl IMFVideoProcessorControl2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IMFVideoProcessorControl3_Impl: Sized + IMFVideoProcessorControl2_Impl { @@ -17746,7 +17746,7 @@ impl IMFVideoProcessorControl3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IMFVideoRenderer_Impl: Sized { @@ -17763,7 +17763,7 @@ impl IMFVideoRenderer_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), InitializeRenderer: InitializeRenderer:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFVideoRendererEffectControl_Impl: Sized { @@ -17783,7 +17783,7 @@ impl IMFVideoRendererEffectControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFVideoSampleAllocator_Impl: Sized { @@ -17830,7 +17830,7 @@ impl IMFVideoSampleAllocator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFVideoSampleAllocatorCallback_Impl: Sized { @@ -17863,7 +17863,7 @@ impl IMFVideoSampleAllocatorCallback_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFVideoSampleAllocatorEx_Impl: Sized + IMFVideoSampleAllocator_Impl { @@ -17883,7 +17883,7 @@ impl IMFVideoSampleAllocatorEx_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IMFVideoSampleAllocatorNotify_Impl: Sized { @@ -17900,7 +17900,7 @@ impl IMFVideoSampleAllocatorNotify_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), NotifyRelease: NotifyRelease:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFVideoSampleAllocatorNotifyEx_Impl: Sized + IMFVideoSampleAllocatorNotify_Impl { @@ -17917,7 +17917,7 @@ impl IMFVideoSampleAllocatorNotifyEx_Vtbl { Self { base__: IMFVideoSampleAllocatorNotify_Vtbl::new::(), NotifyPrune: NotifyPrune:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Devices_Properties\"`, `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] @@ -18029,7 +18029,7 @@ impl IMFVirtualCamera_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IMFWorkQueueServices_Impl: Sized { @@ -18144,7 +18144,7 @@ impl IMFWorkQueueServices_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMFWorkQueueServicesEx_Impl: Sized + IMFWorkQueueServices_Impl { @@ -18190,7 +18190,7 @@ impl IMFWorkQueueServicesEx_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IOPMVideoOutput_Impl: Sized { @@ -18238,7 +18238,7 @@ impl IOPMVideoOutput_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPlayToControl_Impl: Sized { @@ -18265,7 +18265,7 @@ impl IPlayToControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPlayToControlWithCapabilities_Impl: Sized + IPlayToControl_Impl { @@ -18288,7 +18288,7 @@ impl IPlayToControlWithCapabilities_Vtbl { Self { base__: IPlayToControl_Vtbl::new::(), GetCapabilities: GetCapabilities:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IPlayToSourceClassFactory_Impl: Sized { @@ -18311,7 +18311,7 @@ impl IPlayToSourceClassFactory_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CreateInstance: CreateInstance:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IToc_Impl: Sized { @@ -18407,7 +18407,7 @@ impl IToc_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITocCollection_Impl: Sized { @@ -18461,7 +18461,7 @@ impl ITocCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITocEntry_Impl: Sized { @@ -18530,7 +18530,7 @@ impl ITocEntry_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITocEntryList_Impl: Sized { @@ -18584,7 +18584,7 @@ impl ITocEntryList_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITocParser_Impl: Sized { @@ -18665,7 +18665,7 @@ impl ITocParser_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IValidateBinding_Impl: Sized { @@ -18682,7 +18682,7 @@ impl IValidateBinding_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetIdentifier: GetIdentifier:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMCodecLeakyBucket_Impl: Sized { @@ -18723,7 +18723,7 @@ impl IWMCodecLeakyBucket_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMCodecOutputTimestamp_Impl: Sized { @@ -18740,7 +18740,7 @@ impl IWMCodecOutputTimestamp_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetNextOutputTime: GetNextOutputTime:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Media_DxMediaObjects\"`"] @@ -18771,7 +18771,7 @@ impl IWMCodecPrivateData_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Media_DxMediaObjects\"`"] @@ -18802,7 +18802,7 @@ impl IWMCodecProps_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Media_DxMediaObjects\"`"] @@ -18833,7 +18833,7 @@ impl IWMCodecStrings_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMColorConvProps_Impl: Sized { @@ -18860,7 +18860,7 @@ impl IWMColorConvProps_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMColorLegalizerProps_Impl: Sized { @@ -18877,7 +18877,7 @@ impl IWMColorLegalizerProps_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), SetColorLegalizerQuality: SetColorLegalizerQuality:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMFrameInterpProps_Impl: Sized { @@ -18918,7 +18918,7 @@ impl IWMFrameInterpProps_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMInterlaceProps_Impl: Sized { @@ -18952,7 +18952,7 @@ impl IWMInterlaceProps_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMResamplerProps_Impl: Sized { @@ -18979,7 +18979,7 @@ impl IWMResamplerProps_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMResizerProps_Impl: Sized { @@ -19027,7 +19027,7 @@ impl IWMResizerProps_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMSampleExtensionSupport_Impl: Sized { @@ -19044,7 +19044,7 @@ impl IWMSampleExtensionSupport_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), SetUseSampleExtensions: SetUseSampleExtensions:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMValidate_Impl: Sized { @@ -19061,7 +19061,7 @@ impl IWMValidate_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), SetIdentifier: SetIdentifier:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMVideoDecoderHurryup_Impl: Sized { @@ -19088,7 +19088,7 @@ impl IWMVideoDecoderHurryup_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Media_DxMediaObjects\"`"] @@ -19126,7 +19126,7 @@ impl IWMVideoDecoderReconBuffer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMVideoForceKeyFrame_Impl: Sized { @@ -19143,7 +19143,7 @@ impl IWMVideoForceKeyFrame_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), SetKeyFrame: SetKeyFrame:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait MFASYNCRESULT_Impl: Sized + IMFAsyncResult_Impl {} @@ -19153,6 +19153,6 @@ impl MFASYNCRESULT_Vtbl { Self { base__: IMFAsyncResult_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } 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 defb818c62..a6d6e8037e 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/MediaFoundation/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/MediaFoundation/mod.rs @@ -1902,31 +1902,22 @@ pub unsafe fn OPMXboxGetHDCPStatusAndType(phdcpstatus: *mut OPM_HDCP_STATUS, phd ::windows_targets::link!("opmxbox.dll" "system" fn OPMXboxGetHDCPStatusAndType(phdcpstatus : *mut OPM_HDCP_STATUS, phdcptype : *mut OPM_HDCP_TYPE) -> ::windows_core::HRESULT); OPMXboxGetHDCPStatusAndType(phdcpstatus, phdcptype).ok() } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAdvancedMediaCapture(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAdvancedMediaCapture, IAdvancedMediaCapture_Vtbl, 0xd0751585_d216_4344_b5bf_463b68f977bb); +::windows_core::imp::interface_hierarchy!(IAdvancedMediaCapture, ::windows_core::IUnknown); impl IAdvancedMediaCapture { pub unsafe fn GetAdvancedMediaCaptureSettings(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetAdvancedMediaCaptureSettings)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAdvancedMediaCapture, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAdvancedMediaCapture { - type Vtable = IAdvancedMediaCapture_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAdvancedMediaCapture { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd0751585_d216_4344_b5bf_463b68f977bb); -} #[repr(C)] #[doc(hidden)] pub struct IAdvancedMediaCapture_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetAdvancedMediaCaptureSettings: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAdvancedMediaCaptureInitializationSettings(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAdvancedMediaCaptureInitializationSettings, IAdvancedMediaCaptureInitializationSettings_Vtbl, 0x3de21209_8ba6_4f2a_a577_2819b56ff14d); +::windows_core::imp::interface_hierarchy!(IAdvancedMediaCaptureInitializationSettings, ::windows_core::IUnknown); impl IAdvancedMediaCaptureInitializationSettings { pub unsafe fn SetDirectxDeviceManager(&self, value: P0) -> ::windows_core::Result<()> where @@ -1935,65 +1926,41 @@ impl IAdvancedMediaCaptureInitializationSettings { (::windows_core::Interface::vtable(self).SetDirectxDeviceManager)(::windows_core::Interface::as_raw(self), value.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IAdvancedMediaCaptureInitializationSettings, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAdvancedMediaCaptureInitializationSettings { - type Vtable = IAdvancedMediaCaptureInitializationSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAdvancedMediaCaptureInitializationSettings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3de21209_8ba6_4f2a_a577_2819b56ff14d); -} #[repr(C)] #[doc(hidden)] pub struct IAdvancedMediaCaptureInitializationSettings_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub SetDirectxDeviceManager: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAdvancedMediaCaptureSettings(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAdvancedMediaCaptureSettings, IAdvancedMediaCaptureSettings_Vtbl, 0x24e0485f_a33e_4aa1_b564_6019b1d14f65); +::windows_core::imp::interface_hierarchy!(IAdvancedMediaCaptureSettings, ::windows_core::IUnknown); impl IAdvancedMediaCaptureSettings { pub unsafe fn GetDirectxDeviceManager(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetDirectxDeviceManager)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAdvancedMediaCaptureSettings, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAdvancedMediaCaptureSettings { - type Vtable = IAdvancedMediaCaptureSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAdvancedMediaCaptureSettings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x24e0485f_a33e_4aa1_b564_6019b1d14f65); -} #[repr(C)] #[doc(hidden)] pub struct IAdvancedMediaCaptureSettings_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetDirectxDeviceManager: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioSourceProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioSourceProvider, IAudioSourceProvider_Vtbl, 0xebbaf249_afc2_4582_91c6_b60df2e84954); +::windows_core::imp::interface_hierarchy!(IAudioSourceProvider, ::windows_core::IUnknown); impl IAudioSourceProvider { pub unsafe fn ProvideInput(&self, dwsamplecount: u32, pdwchannelcount: *mut u32, pinterleavedaudiodata: ::core::option::Option<*mut f32>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).ProvideInput)(::windows_core::Interface::as_raw(self), dwsamplecount, pdwchannelcount, ::core::mem::transmute(pinterleavedaudiodata.unwrap_or(::std::ptr::null_mut()))).ok() } } -::windows_core::imp::interface_hierarchy!(IAudioSourceProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioSourceProvider { - type Vtable = IAudioSourceProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioSourceProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xebbaf249_afc2_4582_91c6_b60df2e84954); -} #[repr(C)] #[doc(hidden)] pub struct IAudioSourceProvider_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub ProvideInput: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwsamplecount: u32, pdwchannelcount: *mut u32, pinterleavedaudiodata: *mut f32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IClusterDetector(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IClusterDetector, IClusterDetector_Vtbl, 0x3f07f7b7_c680_41d9_9423_915107ec9ff9); +::windows_core::imp::interface_hierarchy!(IClusterDetector, ::windows_core::IUnknown); impl IClusterDetector { pub unsafe fn Initialize(&self, wbaseentrylevel: u16, wclusterentrylevel: u16) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Initialize)(::windows_core::Interface::as_raw(self), wbaseentrylevel, wclusterentrylevel).ok() @@ -2006,13 +1973,6 @@ impl IClusterDetector { (::windows_core::Interface::vtable(self).Detect)(::windows_core::Interface::as_raw(self), dwmaxnumclusters, fminclusterduration, fmaxclusterduration, psrctoc.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IClusterDetector, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IClusterDetector { - type Vtable = IClusterDetector_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IClusterDetector { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3f07f7b7_c680_41d9_9423_915107ec9ff9); -} #[repr(C)] #[doc(hidden)] pub struct IClusterDetector_Vtbl { @@ -2020,9 +1980,8 @@ pub struct IClusterDetector_Vtbl { pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wbaseentrylevel: u16, wclusterentrylevel: u16) -> ::windows_core::HRESULT, pub Detect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwmaxnumclusters: u32, fminclusterduration: f32, fmaxclusterduration: f32, psrctoc: *mut ::core::ffi::c_void, ppdsttoc: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICodecAPI(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICodecAPI, ICodecAPI_Vtbl, 0x901db4c7_31ce_41a2_85dc_8fa0bf41b8da); +::windows_core::imp::interface_hierarchy!(ICodecAPI, ::windows_core::IUnknown); impl ICodecAPI { pub unsafe fn IsSupported(&self, api: *const ::windows_core::GUID) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).IsSupported)(::windows_core::Interface::as_raw(self), api).ok() @@ -2099,13 +2058,6 @@ impl ICodecAPI { (::windows_core::Interface::vtable(self).SetAllSettingsWithNotify)(::windows_core::Interface::as_raw(self), __midl__icodecapi0002.into_param().abi(), changedparam, changedparamcount).ok() } } -::windows_core::imp::interface_hierarchy!(ICodecAPI, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICodecAPI { - type Vtable = ICodecAPI_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICodecAPI { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x901db4c7_31ce_41a2_85dc_8fa0bf41b8da); -} #[repr(C)] #[doc(hidden)] pub struct ICodecAPI_Vtbl { @@ -2153,11 +2105,15 @@ pub struct ICodecAPI_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] SetAllSettingsWithNotify: usize, } -#[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] #[cfg(feature = "Win32_Graphics_Direct3D12")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12VideoDecodeCommandList(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] + ID3D12VideoDecodeCommandList, + ID3D12VideoDecodeCommandList_Vtbl, + 0x3b60536e_ad29_4e64_a269_f853837e5e53 +); +#[cfg(feature = "Win32_Graphics_Direct3D12")] +::windows_core::imp::interface_hierarchy!(ID3D12VideoDecodeCommandList, ::windows_core::IUnknown, super::super::Graphics::Direct3D12::ID3D12Object, super::super::Graphics::Direct3D12::ID3D12DeviceChild, super::super::Graphics::Direct3D12::ID3D12CommandList); #[cfg(feature = "Win32_Graphics_Direct3D12")] impl ID3D12VideoDecodeCommandList { #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] @@ -2190,7 +2146,7 @@ impl ID3D12VideoDecodeCommandList { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn GetDevice(&self, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _).ok() } @@ -2283,20 +2239,10 @@ impl ID3D12VideoDecodeCommandList { } } #[cfg(feature = "Win32_Graphics_Direct3D12")] -::windows_core::imp::interface_hierarchy!(ID3D12VideoDecodeCommandList, ::windows_core::IUnknown, super::super::Graphics::Direct3D12::ID3D12Object, super::super::Graphics::Direct3D12::ID3D12DeviceChild, super::super::Graphics::Direct3D12::ID3D12CommandList); -#[cfg(feature = "Win32_Graphics_Direct3D12")] unsafe impl ::core::marker::Send for ID3D12VideoDecodeCommandList {} #[cfg(feature = "Win32_Graphics_Direct3D12")] unsafe impl ::core::marker::Sync for ID3D12VideoDecodeCommandList {} #[cfg(feature = "Win32_Graphics_Direct3D12")] -unsafe impl ::windows_core::Interface for ID3D12VideoDecodeCommandList { - type Vtable = ID3D12VideoDecodeCommandList_Vtbl; -} -#[cfg(feature = "Win32_Graphics_Direct3D12")] -unsafe impl ::windows_core::ComInterface for ID3D12VideoDecodeCommandList { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3b60536e_ad29_4e64_a269_f853837e5e53); -} -#[cfg(feature = "Win32_Graphics_Direct3D12")] #[repr(C)] #[doc(hidden)] pub struct ID3D12VideoDecodeCommandList_Vtbl { @@ -2343,11 +2289,15 @@ pub struct ID3D12VideoDecodeCommandList_Vtbl { #[cfg(not(feature = "Win32_Graphics_Direct3D12"))] WriteBufferImmediate: usize, } -#[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] #[cfg(feature = "Win32_Graphics_Direct3D12")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12VideoDecodeCommandList1(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] + ID3D12VideoDecodeCommandList1, + ID3D12VideoDecodeCommandList1_Vtbl, + 0xd52f011b_b56e_453c_a05a_a7f311c8f472 +); +#[cfg(feature = "Win32_Graphics_Direct3D12")] +::windows_core::imp::interface_hierarchy!(ID3D12VideoDecodeCommandList1, ::windows_core::IUnknown, super::super::Graphics::Direct3D12::ID3D12Object, super::super::Graphics::Direct3D12::ID3D12DeviceChild, super::super::Graphics::Direct3D12::ID3D12CommandList, ID3D12VideoDecodeCommandList); #[cfg(feature = "Win32_Graphics_Direct3D12")] impl ID3D12VideoDecodeCommandList1 { #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] @@ -2380,7 +2330,7 @@ impl ID3D12VideoDecodeCommandList1 { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn GetDevice(&self, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _).ok() } @@ -2481,20 +2431,10 @@ impl ID3D12VideoDecodeCommandList1 { } } #[cfg(feature = "Win32_Graphics_Direct3D12")] -::windows_core::imp::interface_hierarchy!(ID3D12VideoDecodeCommandList1, ::windows_core::IUnknown, super::super::Graphics::Direct3D12::ID3D12Object, super::super::Graphics::Direct3D12::ID3D12DeviceChild, super::super::Graphics::Direct3D12::ID3D12CommandList, ID3D12VideoDecodeCommandList); -#[cfg(feature = "Win32_Graphics_Direct3D12")] unsafe impl ::core::marker::Send for ID3D12VideoDecodeCommandList1 {} #[cfg(feature = "Win32_Graphics_Direct3D12")] unsafe impl ::core::marker::Sync for ID3D12VideoDecodeCommandList1 {} #[cfg(feature = "Win32_Graphics_Direct3D12")] -unsafe impl ::windows_core::Interface for ID3D12VideoDecodeCommandList1 { - type Vtable = ID3D12VideoDecodeCommandList1_Vtbl; -} -#[cfg(feature = "Win32_Graphics_Direct3D12")] -unsafe impl ::windows_core::ComInterface for ID3D12VideoDecodeCommandList1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd52f011b_b56e_453c_a05a_a7f311c8f472); -} -#[cfg(feature = "Win32_Graphics_Direct3D12")] #[repr(C)] #[doc(hidden)] pub struct ID3D12VideoDecodeCommandList1_Vtbl { @@ -2504,11 +2444,15 @@ pub struct ID3D12VideoDecodeCommandList1_Vtbl { #[cfg(not(all(feature = "Win32_Graphics_Direct3D12", feature = "Win32_Graphics_Dxgi_Common")))] DecodeFrame1: usize, } -#[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] #[cfg(feature = "Win32_Graphics_Direct3D12")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12VideoDecodeCommandList2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] + ID3D12VideoDecodeCommandList2, + ID3D12VideoDecodeCommandList2_Vtbl, + 0x6e120880_c114_4153_8036_d247051e1729 +); +#[cfg(feature = "Win32_Graphics_Direct3D12")] +::windows_core::imp::interface_hierarchy!(ID3D12VideoDecodeCommandList2, ::windows_core::IUnknown, super::super::Graphics::Direct3D12::ID3D12Object, super::super::Graphics::Direct3D12::ID3D12DeviceChild, super::super::Graphics::Direct3D12::ID3D12CommandList, ID3D12VideoDecodeCommandList, ID3D12VideoDecodeCommandList1); #[cfg(feature = "Win32_Graphics_Direct3D12")] impl ID3D12VideoDecodeCommandList2 { #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] @@ -2541,7 +2485,7 @@ impl ID3D12VideoDecodeCommandList2 { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn GetDevice(&self, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _).ok() } @@ -2666,20 +2610,10 @@ impl ID3D12VideoDecodeCommandList2 { } } #[cfg(feature = "Win32_Graphics_Direct3D12")] -::windows_core::imp::interface_hierarchy!(ID3D12VideoDecodeCommandList2, ::windows_core::IUnknown, super::super::Graphics::Direct3D12::ID3D12Object, super::super::Graphics::Direct3D12::ID3D12DeviceChild, super::super::Graphics::Direct3D12::ID3D12CommandList, ID3D12VideoDecodeCommandList, ID3D12VideoDecodeCommandList1); -#[cfg(feature = "Win32_Graphics_Direct3D12")] unsafe impl ::core::marker::Send for ID3D12VideoDecodeCommandList2 {} #[cfg(feature = "Win32_Graphics_Direct3D12")] unsafe impl ::core::marker::Sync for ID3D12VideoDecodeCommandList2 {} #[cfg(feature = "Win32_Graphics_Direct3D12")] -unsafe impl ::windows_core::Interface for ID3D12VideoDecodeCommandList2 { - type Vtable = ID3D12VideoDecodeCommandList2_Vtbl; -} -#[cfg(feature = "Win32_Graphics_Direct3D12")] -unsafe impl ::windows_core::ComInterface for ID3D12VideoDecodeCommandList2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6e120880_c114_4153_8036_d247051e1729); -} -#[cfg(feature = "Win32_Graphics_Direct3D12")] #[repr(C)] #[doc(hidden)] pub struct ID3D12VideoDecodeCommandList2_Vtbl { @@ -2697,11 +2631,15 @@ pub struct ID3D12VideoDecodeCommandList2_Vtbl { #[cfg(not(feature = "Win32_Graphics_Direct3D12"))] ExecuteExtensionCommand: usize, } -#[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] #[cfg(feature = "Win32_Graphics_Direct3D12")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12VideoDecodeCommandList3(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] + ID3D12VideoDecodeCommandList3, + ID3D12VideoDecodeCommandList3_Vtbl, + 0x2aee8c37_9562_42da_8abf_61efeb2e4513 +); +#[cfg(feature = "Win32_Graphics_Direct3D12")] +::windows_core::imp::interface_hierarchy!(ID3D12VideoDecodeCommandList3, ::windows_core::IUnknown, super::super::Graphics::Direct3D12::ID3D12Object, super::super::Graphics::Direct3D12::ID3D12DeviceChild, super::super::Graphics::Direct3D12::ID3D12CommandList, ID3D12VideoDecodeCommandList, ID3D12VideoDecodeCommandList1, ID3D12VideoDecodeCommandList2); #[cfg(feature = "Win32_Graphics_Direct3D12")] impl ID3D12VideoDecodeCommandList3 { #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] @@ -2734,7 +2672,7 @@ impl ID3D12VideoDecodeCommandList3 { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn GetDevice(&self, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _).ok() } @@ -2864,20 +2802,10 @@ impl ID3D12VideoDecodeCommandList3 { } } #[cfg(feature = "Win32_Graphics_Direct3D12")] -::windows_core::imp::interface_hierarchy!(ID3D12VideoDecodeCommandList3, ::windows_core::IUnknown, super::super::Graphics::Direct3D12::ID3D12Object, super::super::Graphics::Direct3D12::ID3D12DeviceChild, super::super::Graphics::Direct3D12::ID3D12CommandList, ID3D12VideoDecodeCommandList, ID3D12VideoDecodeCommandList1, ID3D12VideoDecodeCommandList2); -#[cfg(feature = "Win32_Graphics_Direct3D12")] unsafe impl ::core::marker::Send for ID3D12VideoDecodeCommandList3 {} #[cfg(feature = "Win32_Graphics_Direct3D12")] unsafe impl ::core::marker::Sync for ID3D12VideoDecodeCommandList3 {} #[cfg(feature = "Win32_Graphics_Direct3D12")] -unsafe impl ::windows_core::Interface for ID3D12VideoDecodeCommandList3 { - type Vtable = ID3D12VideoDecodeCommandList3_Vtbl; -} -#[cfg(feature = "Win32_Graphics_Direct3D12")] -unsafe impl ::windows_core::ComInterface for ID3D12VideoDecodeCommandList3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2aee8c37_9562_42da_8abf_61efeb2e4513); -} -#[cfg(feature = "Win32_Graphics_Direct3D12")] #[repr(C)] #[doc(hidden)] pub struct ID3D12VideoDecodeCommandList3_Vtbl { @@ -2887,11 +2815,15 @@ pub struct ID3D12VideoDecodeCommandList3_Vtbl { #[cfg(not(feature = "Win32_Graphics_Direct3D12"))] Barrier: usize, } -#[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] #[cfg(feature = "Win32_Graphics_Direct3D12")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12VideoDecoder(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] + ID3D12VideoDecoder, + ID3D12VideoDecoder_Vtbl, + 0xc59b6bdc_7720_4074_a136_17a156037470 +); +#[cfg(feature = "Win32_Graphics_Direct3D12")] +::windows_core::imp::interface_hierarchy!(ID3D12VideoDecoder, ::windows_core::IUnknown, super::super::Graphics::Direct3D12::ID3D12Object, super::super::Graphics::Direct3D12::ID3D12DeviceChild, super::super::Graphics::Direct3D12::ID3D12Pageable); #[cfg(feature = "Win32_Graphics_Direct3D12")] impl ID3D12VideoDecoder { #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] @@ -2924,7 +2856,7 @@ impl ID3D12VideoDecoder { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn GetDevice(&self, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _).ok() } @@ -2935,31 +2867,25 @@ impl ID3D12VideoDecoder { } } #[cfg(feature = "Win32_Graphics_Direct3D12")] -::windows_core::imp::interface_hierarchy!(ID3D12VideoDecoder, ::windows_core::IUnknown, super::super::Graphics::Direct3D12::ID3D12Object, super::super::Graphics::Direct3D12::ID3D12DeviceChild, super::super::Graphics::Direct3D12::ID3D12Pageable); -#[cfg(feature = "Win32_Graphics_Direct3D12")] unsafe impl ::core::marker::Send for ID3D12VideoDecoder {} #[cfg(feature = "Win32_Graphics_Direct3D12")] unsafe impl ::core::marker::Sync for ID3D12VideoDecoder {} #[cfg(feature = "Win32_Graphics_Direct3D12")] -unsafe impl ::windows_core::Interface for ID3D12VideoDecoder { - type Vtable = ID3D12VideoDecoder_Vtbl; -} -#[cfg(feature = "Win32_Graphics_Direct3D12")] -unsafe impl ::windows_core::ComInterface for ID3D12VideoDecoder { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc59b6bdc_7720_4074_a136_17a156037470); -} -#[cfg(feature = "Win32_Graphics_Direct3D12")] #[repr(C)] #[doc(hidden)] pub struct ID3D12VideoDecoder_Vtbl { pub base__: super::super::Graphics::Direct3D12::ID3D12Pageable_Vtbl, pub GetDesc: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut D3D12_VIDEO_DECODER_DESC), } -#[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] #[cfg(feature = "Win32_Graphics_Direct3D12")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12VideoDecoder1(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] + ID3D12VideoDecoder1, + ID3D12VideoDecoder1_Vtbl, + 0x79a2e5fb_ccd2_469a_9fde_195d10951f7e +); +#[cfg(feature = "Win32_Graphics_Direct3D12")] +::windows_core::imp::interface_hierarchy!(ID3D12VideoDecoder1, ::windows_core::IUnknown, super::super::Graphics::Direct3D12::ID3D12Object, super::super::Graphics::Direct3D12::ID3D12DeviceChild, super::super::Graphics::Direct3D12::ID3D12Pageable, ID3D12VideoDecoder); #[cfg(feature = "Win32_Graphics_Direct3D12")] impl ID3D12VideoDecoder1 { #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] @@ -2992,7 +2918,7 @@ impl ID3D12VideoDecoder1 { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn GetDevice(&self, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _).ok() } @@ -3003,37 +2929,31 @@ impl ID3D12VideoDecoder1 { } pub unsafe fn GetProtectedResourceSession(&self, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).GetProtectedResourceSession)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _).ok() } } #[cfg(feature = "Win32_Graphics_Direct3D12")] -::windows_core::imp::interface_hierarchy!(ID3D12VideoDecoder1, ::windows_core::IUnknown, super::super::Graphics::Direct3D12::ID3D12Object, super::super::Graphics::Direct3D12::ID3D12DeviceChild, super::super::Graphics::Direct3D12::ID3D12Pageable, ID3D12VideoDecoder); -#[cfg(feature = "Win32_Graphics_Direct3D12")] unsafe impl ::core::marker::Send for ID3D12VideoDecoder1 {} #[cfg(feature = "Win32_Graphics_Direct3D12")] unsafe impl ::core::marker::Sync for ID3D12VideoDecoder1 {} #[cfg(feature = "Win32_Graphics_Direct3D12")] -unsafe impl ::windows_core::Interface for ID3D12VideoDecoder1 { - type Vtable = ID3D12VideoDecoder1_Vtbl; -} -#[cfg(feature = "Win32_Graphics_Direct3D12")] -unsafe impl ::windows_core::ComInterface for ID3D12VideoDecoder1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x79a2e5fb_ccd2_469a_9fde_195d10951f7e); -} -#[cfg(feature = "Win32_Graphics_Direct3D12")] #[repr(C)] #[doc(hidden)] pub struct ID3D12VideoDecoder1_Vtbl { pub base__: ID3D12VideoDecoder_Vtbl, pub GetProtectedResourceSession: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppprotectedsession: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] #[cfg(feature = "Win32_Graphics_Direct3D12")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12VideoDecoderHeap(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] + ID3D12VideoDecoderHeap, + ID3D12VideoDecoderHeap_Vtbl, + 0x0946b7c9_ebf6_4047_bb73_8683e27dbb1f +); +#[cfg(feature = "Win32_Graphics_Direct3D12")] +::windows_core::imp::interface_hierarchy!(ID3D12VideoDecoderHeap, ::windows_core::IUnknown, super::super::Graphics::Direct3D12::ID3D12Object, super::super::Graphics::Direct3D12::ID3D12DeviceChild, super::super::Graphics::Direct3D12::ID3D12Pageable); #[cfg(feature = "Win32_Graphics_Direct3D12")] impl ID3D12VideoDecoderHeap { #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] @@ -3066,7 +2986,7 @@ impl ID3D12VideoDecoderHeap { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn GetDevice(&self, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _).ok() } @@ -3079,20 +2999,10 @@ impl ID3D12VideoDecoderHeap { } } #[cfg(feature = "Win32_Graphics_Direct3D12")] -::windows_core::imp::interface_hierarchy!(ID3D12VideoDecoderHeap, ::windows_core::IUnknown, super::super::Graphics::Direct3D12::ID3D12Object, super::super::Graphics::Direct3D12::ID3D12DeviceChild, super::super::Graphics::Direct3D12::ID3D12Pageable); -#[cfg(feature = "Win32_Graphics_Direct3D12")] unsafe impl ::core::marker::Send for ID3D12VideoDecoderHeap {} #[cfg(feature = "Win32_Graphics_Direct3D12")] unsafe impl ::core::marker::Sync for ID3D12VideoDecoderHeap {} #[cfg(feature = "Win32_Graphics_Direct3D12")] -unsafe impl ::windows_core::Interface for ID3D12VideoDecoderHeap { - type Vtable = ID3D12VideoDecoderHeap_Vtbl; -} -#[cfg(feature = "Win32_Graphics_Direct3D12")] -unsafe impl ::windows_core::ComInterface for ID3D12VideoDecoderHeap { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0946b7c9_ebf6_4047_bb73_8683e27dbb1f); -} -#[cfg(feature = "Win32_Graphics_Direct3D12")] #[repr(C)] #[doc(hidden)] pub struct ID3D12VideoDecoderHeap_Vtbl { @@ -3102,11 +3012,15 @@ pub struct ID3D12VideoDecoderHeap_Vtbl { #[cfg(not(feature = "Win32_Graphics_Dxgi_Common"))] GetDesc: usize, } -#[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] #[cfg(feature = "Win32_Graphics_Direct3D12")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12VideoDecoderHeap1(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] + ID3D12VideoDecoderHeap1, + ID3D12VideoDecoderHeap1_Vtbl, + 0xda1d98c5_539f_41b2_bf6b_1198a03b6d26 +); +#[cfg(feature = "Win32_Graphics_Direct3D12")] +::windows_core::imp::interface_hierarchy!(ID3D12VideoDecoderHeap1, ::windows_core::IUnknown, super::super::Graphics::Direct3D12::ID3D12Object, super::super::Graphics::Direct3D12::ID3D12DeviceChild, super::super::Graphics::Direct3D12::ID3D12Pageable, ID3D12VideoDecoderHeap); #[cfg(feature = "Win32_Graphics_Direct3D12")] impl ID3D12VideoDecoderHeap1 { #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] @@ -3139,7 +3053,7 @@ impl ID3D12VideoDecoderHeap1 { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn GetDevice(&self, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _).ok() } @@ -3152,42 +3066,31 @@ impl ID3D12VideoDecoderHeap1 { } pub unsafe fn GetProtectedResourceSession(&self, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).GetProtectedResourceSession)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _).ok() } } #[cfg(feature = "Win32_Graphics_Direct3D12")] -::windows_core::imp::interface_hierarchy!(ID3D12VideoDecoderHeap1, ::windows_core::IUnknown, super::super::Graphics::Direct3D12::ID3D12Object, super::super::Graphics::Direct3D12::ID3D12DeviceChild, super::super::Graphics::Direct3D12::ID3D12Pageable, ID3D12VideoDecoderHeap); -#[cfg(feature = "Win32_Graphics_Direct3D12")] unsafe impl ::core::marker::Send for ID3D12VideoDecoderHeap1 {} #[cfg(feature = "Win32_Graphics_Direct3D12")] unsafe impl ::core::marker::Sync for ID3D12VideoDecoderHeap1 {} #[cfg(feature = "Win32_Graphics_Direct3D12")] -unsafe impl ::windows_core::Interface for ID3D12VideoDecoderHeap1 { - type Vtable = ID3D12VideoDecoderHeap1_Vtbl; -} -#[cfg(feature = "Win32_Graphics_Direct3D12")] -unsafe impl ::windows_core::ComInterface for ID3D12VideoDecoderHeap1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xda1d98c5_539f_41b2_bf6b_1198a03b6d26); -} -#[cfg(feature = "Win32_Graphics_Direct3D12")] #[repr(C)] #[doc(hidden)] pub struct ID3D12VideoDecoderHeap1_Vtbl { pub base__: ID3D12VideoDecoderHeap_Vtbl, pub GetProtectedResourceSession: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppprotectedsession: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12VideoDevice(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12VideoDevice, ID3D12VideoDevice_Vtbl, 0x1f052807_0b46_4acc_8a89_364f793718a4); +::windows_core::imp::interface_hierarchy!(ID3D12VideoDevice, ::windows_core::IUnknown); impl ID3D12VideoDevice { pub unsafe fn CheckFeatureSupport(&self, featurevideo: D3D12_FEATURE_VIDEO, pfeaturesupportdata: *mut ::core::ffi::c_void, featuresupportdatasize: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).CheckFeatureSupport)(::windows_core::Interface::as_raw(self), featurevideo, pfeaturesupportdata, featuresupportdatasize).ok() } pub unsafe fn CreateVideoDecoder(&self, pdesc: *const D3D12_VIDEO_DECODER_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).CreateVideoDecoder)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) @@ -3196,7 +3099,7 @@ impl ID3D12VideoDevice { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateVideoDecoderHeap(&self, pvideodecoderheapdesc: *const D3D12_VIDEO_DECODER_HEAP_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).CreateVideoDecoderHeap)(::windows_core::Interface::as_raw(self), pvideodecoderheapdesc, &T::IID, &mut result__).from_abi(result__) @@ -3205,21 +3108,14 @@ impl ID3D12VideoDevice { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateVideoProcessor(&self, nodemask: u32, poutputstreamdesc: *const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC, pinputstreamdescs: &[D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC]) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).CreateVideoProcessor)(::windows_core::Interface::as_raw(self), nodemask, poutputstreamdesc, pinputstreamdescs.len().try_into().unwrap(), ::core::mem::transmute(pinputstreamdescs.as_ptr()), &T::IID, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ID3D12VideoDevice, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for ID3D12VideoDevice {} unsafe impl ::core::marker::Sync for ID3D12VideoDevice {} -unsafe impl ::windows_core::Interface for ID3D12VideoDevice { - type Vtable = ID3D12VideoDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12VideoDevice { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1f052807_0b46_4acc_8a89_364f793718a4); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12VideoDevice_Vtbl { @@ -3235,16 +3131,15 @@ pub struct ID3D12VideoDevice_Vtbl { #[cfg(not(feature = "Win32_Graphics_Dxgi_Common"))] CreateVideoProcessor: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12VideoDevice1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12VideoDevice1, ID3D12VideoDevice1_Vtbl, 0x981611ad_a144_4c83_9890_f30e26d658ab); +::windows_core::imp::interface_hierarchy!(ID3D12VideoDevice1, ::windows_core::IUnknown, ID3D12VideoDevice); impl ID3D12VideoDevice1 { pub unsafe fn CheckFeatureSupport(&self, featurevideo: D3D12_FEATURE_VIDEO, pfeaturesupportdata: *mut ::core::ffi::c_void, featuresupportdatasize: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.CheckFeatureSupport)(::windows_core::Interface::as_raw(self), featurevideo, pfeaturesupportdata, featuresupportdatasize).ok() } pub unsafe fn CreateVideoDecoder(&self, pdesc: *const D3D12_VIDEO_DECODER_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.CreateVideoDecoder)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) @@ -3253,7 +3148,7 @@ impl ID3D12VideoDevice1 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateVideoDecoderHeap(&self, pvideodecoderheapdesc: *const D3D12_VIDEO_DECODER_HEAP_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.CreateVideoDecoderHeap)(::windows_core::Interface::as_raw(self), pvideodecoderheapdesc, &T::IID, &mut result__).from_abi(result__) @@ -3262,7 +3157,7 @@ impl ID3D12VideoDevice1 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateVideoProcessor(&self, nodemask: u32, poutputstreamdesc: *const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC, pinputstreamdescs: &[D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC]) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.CreateVideoProcessor)(::windows_core::Interface::as_raw(self), nodemask, poutputstreamdesc, pinputstreamdescs.len().try_into().unwrap(), ::core::mem::transmute(pinputstreamdescs.as_ptr()), &T::IID, &mut result__).from_abi(result__) @@ -3272,7 +3167,7 @@ impl ID3D12VideoDevice1 { pub unsafe fn CreateVideoMotionEstimator(&self, pdesc: *const D3D12_VIDEO_MOTION_ESTIMATOR_DESC, pprotectedresourcesession: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -3282,21 +3177,14 @@ impl ID3D12VideoDevice1 { pub unsafe fn CreateVideoMotionVectorHeap(&self, pdesc: *const D3D12_VIDEO_MOTION_VECTOR_HEAP_DESC, pprotectedresourcesession: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ID3D12VideoDevice1, ::windows_core::IUnknown, ID3D12VideoDevice); unsafe impl ::core::marker::Send for ID3D12VideoDevice1 {} unsafe impl ::core::marker::Sync for ID3D12VideoDevice1 {} -unsafe impl ::windows_core::Interface for ID3D12VideoDevice1 { - type Vtable = ID3D12VideoDevice1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12VideoDevice1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x981611ad_a144_4c83_9890_f30e26d658ab); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12VideoDevice1_Vtbl { @@ -3310,16 +3198,15 @@ pub struct ID3D12VideoDevice1_Vtbl { #[cfg(not(all(feature = "Win32_Graphics_Direct3D12", feature = "Win32_Graphics_Dxgi_Common")))] CreateVideoMotionVectorHeap: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12VideoDevice2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12VideoDevice2, ID3D12VideoDevice2_Vtbl, 0xf019ac49_f838_4a95_9b17_579437c8f513); +::windows_core::imp::interface_hierarchy!(ID3D12VideoDevice2, ::windows_core::IUnknown, ID3D12VideoDevice, ID3D12VideoDevice1); impl ID3D12VideoDevice2 { pub unsafe fn CheckFeatureSupport(&self, featurevideo: D3D12_FEATURE_VIDEO, pfeaturesupportdata: *mut ::core::ffi::c_void, featuresupportdatasize: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.CheckFeatureSupport)(::windows_core::Interface::as_raw(self), featurevideo, pfeaturesupportdata, featuresupportdatasize).ok() } pub unsafe fn CreateVideoDecoder(&self, pdesc: *const D3D12_VIDEO_DECODER_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.CreateVideoDecoder)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) @@ -3328,7 +3215,7 @@ impl ID3D12VideoDevice2 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateVideoDecoderHeap(&self, pvideodecoderheapdesc: *const D3D12_VIDEO_DECODER_HEAP_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.CreateVideoDecoderHeap)(::windows_core::Interface::as_raw(self), pvideodecoderheapdesc, &T::IID, &mut result__).from_abi(result__) @@ -3337,7 +3224,7 @@ impl ID3D12VideoDevice2 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateVideoProcessor(&self, nodemask: u32, poutputstreamdesc: *const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC, pinputstreamdescs: &[D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC]) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.CreateVideoProcessor)(::windows_core::Interface::as_raw(self), nodemask, poutputstreamdesc, pinputstreamdescs.len().try_into().unwrap(), ::core::mem::transmute(pinputstreamdescs.as_ptr()), &T::IID, &mut result__).from_abi(result__) @@ -3347,7 +3234,7 @@ impl ID3D12VideoDevice2 { pub unsafe fn CreateVideoMotionEstimator(&self, pdesc: *const D3D12_VIDEO_MOTION_ESTIMATOR_DESC, pprotectedresourcesession: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -3357,7 +3244,7 @@ impl ID3D12VideoDevice2 { pub unsafe fn CreateVideoMotionVectorHeap(&self, pdesc: *const D3D12_VIDEO_MOTION_VECTOR_HEAP_DESC, pprotectedresourcesession: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -3367,7 +3254,7 @@ impl ID3D12VideoDevice2 { pub unsafe fn CreateVideoDecoder1(&self, pdesc: *const D3D12_VIDEO_DECODER_DESC, pprotectedresourcesession: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -3377,7 +3264,7 @@ impl ID3D12VideoDevice2 { pub unsafe fn CreateVideoDecoderHeap1(&self, pvideodecoderheapdesc: *const D3D12_VIDEO_DECODER_HEAP_DESC, pprotectedresourcesession: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -3387,7 +3274,7 @@ impl ID3D12VideoDevice2 { 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, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -3397,7 +3284,7 @@ impl ID3D12VideoDevice2 { 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, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -3411,15 +3298,8 @@ impl ID3D12VideoDevice2 { (::windows_core::Interface::vtable(self).ExecuteExtensionCommand)(::windows_core::Interface::as_raw(self), pextensioncommand.into_param().abi(), pexecutionparameters, executionparameterssizeinbytes, poutputdata, outputdatasizeinbytes).ok() } } -::windows_core::imp::interface_hierarchy!(ID3D12VideoDevice2, ::windows_core::IUnknown, ID3D12VideoDevice, ID3D12VideoDevice1); unsafe impl ::core::marker::Send for ID3D12VideoDevice2 {} unsafe impl ::core::marker::Sync for ID3D12VideoDevice2 {} -unsafe impl ::windows_core::Interface for ID3D12VideoDevice2 { - type Vtable = ID3D12VideoDevice2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12VideoDevice2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf019ac49_f838_4a95_9b17_579437c8f513); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12VideoDevice2_Vtbl { @@ -3445,16 +3325,15 @@ pub struct ID3D12VideoDevice2_Vtbl { #[cfg(not(feature = "Win32_Graphics_Direct3D12"))] ExecuteExtensionCommand: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12VideoDevice3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ID3D12VideoDevice3, ID3D12VideoDevice3_Vtbl, 0x4243adb4_3a32_4666_973c_0ccc5625dc44); +::windows_core::imp::interface_hierarchy!(ID3D12VideoDevice3, ::windows_core::IUnknown, ID3D12VideoDevice, ID3D12VideoDevice1, ID3D12VideoDevice2); impl ID3D12VideoDevice3 { pub unsafe fn CheckFeatureSupport(&self, featurevideo: D3D12_FEATURE_VIDEO, pfeaturesupportdata: *mut ::core::ffi::c_void, featuresupportdatasize: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.CheckFeatureSupport)(::windows_core::Interface::as_raw(self), featurevideo, pfeaturesupportdata, featuresupportdatasize).ok() } pub unsafe fn CreateVideoDecoder(&self, pdesc: *const D3D12_VIDEO_DECODER_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.CreateVideoDecoder)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) @@ -3463,7 +3342,7 @@ impl ID3D12VideoDevice3 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateVideoDecoderHeap(&self, pvideodecoderheapdesc: *const D3D12_VIDEO_DECODER_HEAP_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.CreateVideoDecoderHeap)(::windows_core::Interface::as_raw(self), pvideodecoderheapdesc, &T::IID, &mut result__).from_abi(result__) @@ -3472,7 +3351,7 @@ impl ID3D12VideoDevice3 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateVideoProcessor(&self, nodemask: u32, poutputstreamdesc: *const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC, pinputstreamdescs: &[D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC]) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.CreateVideoProcessor)(::windows_core::Interface::as_raw(self), nodemask, poutputstreamdesc, pinputstreamdescs.len().try_into().unwrap(), ::core::mem::transmute(pinputstreamdescs.as_ptr()), &T::IID, &mut result__).from_abi(result__) @@ -3482,7 +3361,7 @@ impl ID3D12VideoDevice3 { pub unsafe fn CreateVideoMotionEstimator(&self, pdesc: *const D3D12_VIDEO_MOTION_ESTIMATOR_DESC, pprotectedresourcesession: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -3492,7 +3371,7 @@ impl ID3D12VideoDevice3 { pub unsafe fn CreateVideoMotionVectorHeap(&self, pdesc: *const D3D12_VIDEO_MOTION_VECTOR_HEAP_DESC, pprotectedresourcesession: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -3502,7 +3381,7 @@ impl ID3D12VideoDevice3 { pub unsafe fn CreateVideoDecoder1(&self, pdesc: *const D3D12_VIDEO_DECODER_DESC, pprotectedresourcesession: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -3512,7 +3391,7 @@ impl ID3D12VideoDevice3 { pub unsafe fn CreateVideoDecoderHeap1(&self, pvideodecoderheapdesc: *const D3D12_VIDEO_DECODER_HEAP_DESC, pprotectedresourcesession: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -3522,7 +3401,7 @@ impl ID3D12VideoDevice3 { 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, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -3532,7 +3411,7 @@ impl ID3D12VideoDevice3 { 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, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -3549,28 +3428,21 @@ impl ID3D12VideoDevice3 { #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub unsafe fn CreateVideoEncoder(&self, pdesc: *const D3D12_VIDEO_ENCODER_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).CreateVideoEncoder)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) } pub unsafe fn CreateVideoEncoderHeap(&self, pdesc: *const D3D12_VIDEO_ENCODER_HEAP_DESC) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).CreateVideoEncoderHeap)(::windows_core::Interface::as_raw(self), pdesc, &T::IID, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ID3D12VideoDevice3, ::windows_core::IUnknown, ID3D12VideoDevice, ID3D12VideoDevice1, ID3D12VideoDevice2); unsafe impl ::core::marker::Send for ID3D12VideoDevice3 {} unsafe impl ::core::marker::Sync for ID3D12VideoDevice3 {} -unsafe impl ::windows_core::Interface for ID3D12VideoDevice3 { - type Vtable = ID3D12VideoDevice3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ID3D12VideoDevice3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4243adb4_3a32_4666_973c_0ccc5625dc44); -} #[repr(C)] #[doc(hidden)] pub struct ID3D12VideoDevice3_Vtbl { @@ -3581,11 +3453,15 @@ pub struct ID3D12VideoDevice3_Vtbl { CreateVideoEncoder: usize, pub CreateVideoEncoderHeap: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdesc: *const D3D12_VIDEO_ENCODER_HEAP_DESC, riid: *const ::windows_core::GUID, ppvideoencoderheap: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] #[cfg(feature = "Win32_Graphics_Direct3D12")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12VideoEncodeCommandList(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] + ID3D12VideoEncodeCommandList, + ID3D12VideoEncodeCommandList_Vtbl, + 0x8455293a_0cbd_4831_9b39_fbdbab724723 +); +#[cfg(feature = "Win32_Graphics_Direct3D12")] +::windows_core::imp::interface_hierarchy!(ID3D12VideoEncodeCommandList, ::windows_core::IUnknown, super::super::Graphics::Direct3D12::ID3D12Object, super::super::Graphics::Direct3D12::ID3D12DeviceChild, super::super::Graphics::Direct3D12::ID3D12CommandList); #[cfg(feature = "Win32_Graphics_Direct3D12")] impl ID3D12VideoEncodeCommandList { #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] @@ -3618,7 +3494,7 @@ impl ID3D12VideoEncodeCommandList { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn GetDevice(&self, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _).ok() } @@ -3724,20 +3600,10 @@ impl ID3D12VideoEncodeCommandList { } } #[cfg(feature = "Win32_Graphics_Direct3D12")] -::windows_core::imp::interface_hierarchy!(ID3D12VideoEncodeCommandList, ::windows_core::IUnknown, super::super::Graphics::Direct3D12::ID3D12Object, super::super::Graphics::Direct3D12::ID3D12DeviceChild, super::super::Graphics::Direct3D12::ID3D12CommandList); -#[cfg(feature = "Win32_Graphics_Direct3D12")] unsafe impl ::core::marker::Send for ID3D12VideoEncodeCommandList {} #[cfg(feature = "Win32_Graphics_Direct3D12")] unsafe impl ::core::marker::Sync for ID3D12VideoEncodeCommandList {} #[cfg(feature = "Win32_Graphics_Direct3D12")] -unsafe impl ::windows_core::Interface for ID3D12VideoEncodeCommandList { - type Vtable = ID3D12VideoEncodeCommandList_Vtbl; -} -#[cfg(feature = "Win32_Graphics_Direct3D12")] -unsafe impl ::windows_core::ComInterface for ID3D12VideoEncodeCommandList { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8455293a_0cbd_4831_9b39_fbdbab724723); -} -#[cfg(feature = "Win32_Graphics_Direct3D12")] #[repr(C)] #[doc(hidden)] pub struct ID3D12VideoEncodeCommandList_Vtbl { @@ -3792,11 +3658,15 @@ pub struct ID3D12VideoEncodeCommandList_Vtbl { #[cfg(not(feature = "Win32_Graphics_Direct3D12"))] SetProtectedResourceSession: usize, } -#[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] #[cfg(feature = "Win32_Graphics_Direct3D12")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12VideoEncodeCommandList1(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] + ID3D12VideoEncodeCommandList1, + ID3D12VideoEncodeCommandList1_Vtbl, + 0x94971eca_2bdb_4769_88cf_3675ea757ebc +); +#[cfg(feature = "Win32_Graphics_Direct3D12")] +::windows_core::imp::interface_hierarchy!(ID3D12VideoEncodeCommandList1, ::windows_core::IUnknown, super::super::Graphics::Direct3D12::ID3D12Object, super::super::Graphics::Direct3D12::ID3D12DeviceChild, super::super::Graphics::Direct3D12::ID3D12CommandList, ID3D12VideoEncodeCommandList); #[cfg(feature = "Win32_Graphics_Direct3D12")] impl ID3D12VideoEncodeCommandList1 { #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] @@ -3829,7 +3699,7 @@ impl ID3D12VideoEncodeCommandList1 { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn GetDevice(&self, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _).ok() } @@ -3951,20 +3821,10 @@ impl ID3D12VideoEncodeCommandList1 { } } #[cfg(feature = "Win32_Graphics_Direct3D12")] -::windows_core::imp::interface_hierarchy!(ID3D12VideoEncodeCommandList1, ::windows_core::IUnknown, super::super::Graphics::Direct3D12::ID3D12Object, super::super::Graphics::Direct3D12::ID3D12DeviceChild, super::super::Graphics::Direct3D12::ID3D12CommandList, ID3D12VideoEncodeCommandList); -#[cfg(feature = "Win32_Graphics_Direct3D12")] unsafe impl ::core::marker::Send for ID3D12VideoEncodeCommandList1 {} #[cfg(feature = "Win32_Graphics_Direct3D12")] unsafe impl ::core::marker::Sync for ID3D12VideoEncodeCommandList1 {} #[cfg(feature = "Win32_Graphics_Direct3D12")] -unsafe impl ::windows_core::Interface for ID3D12VideoEncodeCommandList1 { - type Vtable = ID3D12VideoEncodeCommandList1_Vtbl; -} -#[cfg(feature = "Win32_Graphics_Direct3D12")] -unsafe impl ::windows_core::ComInterface for ID3D12VideoEncodeCommandList1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x94971eca_2bdb_4769_88cf_3675ea757ebc); -} -#[cfg(feature = "Win32_Graphics_Direct3D12")] #[repr(C)] #[doc(hidden)] pub struct ID3D12VideoEncodeCommandList1_Vtbl { @@ -3978,11 +3838,15 @@ pub struct ID3D12VideoEncodeCommandList1_Vtbl { #[cfg(not(feature = "Win32_Graphics_Direct3D12"))] ExecuteExtensionCommand: usize, } -#[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] #[cfg(feature = "Win32_Graphics_Direct3D12")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12VideoEncodeCommandList2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] + ID3D12VideoEncodeCommandList2, + ID3D12VideoEncodeCommandList2_Vtbl, + 0x895491e2_e701_46a9_9a1f_8d3480ed867a +); +#[cfg(feature = "Win32_Graphics_Direct3D12")] +::windows_core::imp::interface_hierarchy!(ID3D12VideoEncodeCommandList2, ::windows_core::IUnknown, super::super::Graphics::Direct3D12::ID3D12Object, super::super::Graphics::Direct3D12::ID3D12DeviceChild, super::super::Graphics::Direct3D12::ID3D12CommandList, ID3D12VideoEncodeCommandList, ID3D12VideoEncodeCommandList1); #[cfg(feature = "Win32_Graphics_Direct3D12")] impl ID3D12VideoEncodeCommandList2 { #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] @@ -4015,7 +3879,7 @@ impl ID3D12VideoEncodeCommandList2 { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn GetDevice(&self, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _).ok() } @@ -4151,20 +4015,10 @@ impl ID3D12VideoEncodeCommandList2 { } } #[cfg(feature = "Win32_Graphics_Direct3D12")] -::windows_core::imp::interface_hierarchy!(ID3D12VideoEncodeCommandList2, ::windows_core::IUnknown, super::super::Graphics::Direct3D12::ID3D12Object, super::super::Graphics::Direct3D12::ID3D12DeviceChild, super::super::Graphics::Direct3D12::ID3D12CommandList, ID3D12VideoEncodeCommandList, ID3D12VideoEncodeCommandList1); -#[cfg(feature = "Win32_Graphics_Direct3D12")] unsafe impl ::core::marker::Send for ID3D12VideoEncodeCommandList2 {} #[cfg(feature = "Win32_Graphics_Direct3D12")] unsafe impl ::core::marker::Sync for ID3D12VideoEncodeCommandList2 {} #[cfg(feature = "Win32_Graphics_Direct3D12")] -unsafe impl ::windows_core::Interface for ID3D12VideoEncodeCommandList2 { - type Vtable = ID3D12VideoEncodeCommandList2_Vtbl; -} -#[cfg(feature = "Win32_Graphics_Direct3D12")] -unsafe impl ::windows_core::ComInterface for ID3D12VideoEncodeCommandList2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x895491e2_e701_46a9_9a1f_8d3480ed867a); -} -#[cfg(feature = "Win32_Graphics_Direct3D12")] #[repr(C)] #[doc(hidden)] pub struct ID3D12VideoEncodeCommandList2_Vtbl { @@ -4178,11 +4032,15 @@ pub struct ID3D12VideoEncodeCommandList2_Vtbl { #[cfg(not(all(feature = "Win32_Graphics_Direct3D12", feature = "Win32_Graphics_Dxgi_Common")))] ResolveEncoderOutputMetadata: usize, } -#[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] #[cfg(feature = "Win32_Graphics_Direct3D12")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12VideoEncodeCommandList3(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] + ID3D12VideoEncodeCommandList3, + ID3D12VideoEncodeCommandList3_Vtbl, + 0x7f027b22_1515_4e85_aa0d_026486580576 +); +#[cfg(feature = "Win32_Graphics_Direct3D12")] +::windows_core::imp::interface_hierarchy!(ID3D12VideoEncodeCommandList3, ::windows_core::IUnknown, super::super::Graphics::Direct3D12::ID3D12Object, super::super::Graphics::Direct3D12::ID3D12DeviceChild, super::super::Graphics::Direct3D12::ID3D12CommandList, ID3D12VideoEncodeCommandList, ID3D12VideoEncodeCommandList1, ID3D12VideoEncodeCommandList2); #[cfg(feature = "Win32_Graphics_Direct3D12")] impl ID3D12VideoEncodeCommandList3 { #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] @@ -4215,7 +4073,7 @@ impl ID3D12VideoEncodeCommandList3 { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn GetDevice(&self, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _).ok() } @@ -4356,20 +4214,10 @@ impl ID3D12VideoEncodeCommandList3 { } } #[cfg(feature = "Win32_Graphics_Direct3D12")] -::windows_core::imp::interface_hierarchy!(ID3D12VideoEncodeCommandList3, ::windows_core::IUnknown, super::super::Graphics::Direct3D12::ID3D12Object, super::super::Graphics::Direct3D12::ID3D12DeviceChild, super::super::Graphics::Direct3D12::ID3D12CommandList, ID3D12VideoEncodeCommandList, ID3D12VideoEncodeCommandList1, ID3D12VideoEncodeCommandList2); -#[cfg(feature = "Win32_Graphics_Direct3D12")] unsafe impl ::core::marker::Send for ID3D12VideoEncodeCommandList3 {} #[cfg(feature = "Win32_Graphics_Direct3D12")] unsafe impl ::core::marker::Sync for ID3D12VideoEncodeCommandList3 {} #[cfg(feature = "Win32_Graphics_Direct3D12")] -unsafe impl ::windows_core::Interface for ID3D12VideoEncodeCommandList3 { - type Vtable = ID3D12VideoEncodeCommandList3_Vtbl; -} -#[cfg(feature = "Win32_Graphics_Direct3D12")] -unsafe impl ::windows_core::ComInterface for ID3D12VideoEncodeCommandList3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7f027b22_1515_4e85_aa0d_026486580576); -} -#[cfg(feature = "Win32_Graphics_Direct3D12")] #[repr(C)] #[doc(hidden)] pub struct ID3D12VideoEncodeCommandList3_Vtbl { @@ -4379,11 +4227,15 @@ pub struct ID3D12VideoEncodeCommandList3_Vtbl { #[cfg(not(feature = "Win32_Graphics_Direct3D12"))] Barrier: usize, } -#[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] #[cfg(feature = "Win32_Graphics_Direct3D12")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12VideoEncoder(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] + ID3D12VideoEncoder, + ID3D12VideoEncoder_Vtbl, + 0x2e0d212d_8df9_44a6_a770_bb289b182737 +); +#[cfg(feature = "Win32_Graphics_Direct3D12")] +::windows_core::imp::interface_hierarchy!(ID3D12VideoEncoder, ::windows_core::IUnknown, super::super::Graphics::Direct3D12::ID3D12Object, super::super::Graphics::Direct3D12::ID3D12DeviceChild, super::super::Graphics::Direct3D12::ID3D12Pageable); #[cfg(feature = "Win32_Graphics_Direct3D12")] impl ID3D12VideoEncoder { #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] @@ -4416,7 +4268,7 @@ impl ID3D12VideoEncoder { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn GetDevice(&self, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _).ok() } @@ -4445,20 +4297,10 @@ impl ID3D12VideoEncoder { } } #[cfg(feature = "Win32_Graphics_Direct3D12")] -::windows_core::imp::interface_hierarchy!(ID3D12VideoEncoder, ::windows_core::IUnknown, super::super::Graphics::Direct3D12::ID3D12Object, super::super::Graphics::Direct3D12::ID3D12DeviceChild, super::super::Graphics::Direct3D12::ID3D12Pageable); -#[cfg(feature = "Win32_Graphics_Direct3D12")] unsafe impl ::core::marker::Send for ID3D12VideoEncoder {} #[cfg(feature = "Win32_Graphics_Direct3D12")] unsafe impl ::core::marker::Sync for ID3D12VideoEncoder {} #[cfg(feature = "Win32_Graphics_Direct3D12")] -unsafe impl ::windows_core::Interface for ID3D12VideoEncoder { - type Vtable = ID3D12VideoEncoder_Vtbl; -} -#[cfg(feature = "Win32_Graphics_Direct3D12")] -unsafe impl ::windows_core::ComInterface for ID3D12VideoEncoder { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2e0d212d_8df9_44a6_a770_bb289b182737); -} -#[cfg(feature = "Win32_Graphics_Direct3D12")] #[repr(C)] #[doc(hidden)] pub struct ID3D12VideoEncoder_Vtbl { @@ -4474,11 +4316,15 @@ pub struct ID3D12VideoEncoder_Vtbl { GetInputFormat: usize, pub GetMaxMotionEstimationPrecision: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> D3D12_VIDEO_ENCODER_MOTION_ESTIMATION_PRECISION_MODE, } -#[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] #[cfg(feature = "Win32_Graphics_Direct3D12")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12VideoEncoderHeap(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] + ID3D12VideoEncoderHeap, + ID3D12VideoEncoderHeap_Vtbl, + 0x22b35d96_876a_44c0_b25e_fb8c9c7f1c4a +); +#[cfg(feature = "Win32_Graphics_Direct3D12")] +::windows_core::imp::interface_hierarchy!(ID3D12VideoEncoderHeap, ::windows_core::IUnknown, super::super::Graphics::Direct3D12::ID3D12Object, super::super::Graphics::Direct3D12::ID3D12DeviceChild, super::super::Graphics::Direct3D12::ID3D12Pageable); #[cfg(feature = "Win32_Graphics_Direct3D12")] impl ID3D12VideoEncoderHeap { #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] @@ -4511,7 +4357,7 @@ impl ID3D12VideoEncoderHeap { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn GetDevice(&self, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _).ok() } @@ -4538,20 +4384,10 @@ impl ID3D12VideoEncoderHeap { } } #[cfg(feature = "Win32_Graphics_Direct3D12")] -::windows_core::imp::interface_hierarchy!(ID3D12VideoEncoderHeap, ::windows_core::IUnknown, super::super::Graphics::Direct3D12::ID3D12Object, super::super::Graphics::Direct3D12::ID3D12DeviceChild, super::super::Graphics::Direct3D12::ID3D12Pageable); -#[cfg(feature = "Win32_Graphics_Direct3D12")] unsafe impl ::core::marker::Send for ID3D12VideoEncoderHeap {} #[cfg(feature = "Win32_Graphics_Direct3D12")] unsafe impl ::core::marker::Sync for ID3D12VideoEncoderHeap {} #[cfg(feature = "Win32_Graphics_Direct3D12")] -unsafe impl ::windows_core::Interface for ID3D12VideoEncoderHeap { - type Vtable = ID3D12VideoEncoderHeap_Vtbl; -} -#[cfg(feature = "Win32_Graphics_Direct3D12")] -unsafe impl ::windows_core::ComInterface for ID3D12VideoEncoderHeap { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x22b35d96_876a_44c0_b25e_fb8c9c7f1c4a); -} -#[cfg(feature = "Win32_Graphics_Direct3D12")] #[repr(C)] #[doc(hidden)] pub struct ID3D12VideoEncoderHeap_Vtbl { @@ -4564,11 +4400,15 @@ pub struct ID3D12VideoEncoderHeap_Vtbl { pub GetResolutionListCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> u32, pub GetResolutionList: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, resolutionslistcount: u32, presolutionlist: *mut D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_DESC) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] #[cfg(feature = "Win32_Graphics_Direct3D12")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12VideoExtensionCommand(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] + ID3D12VideoExtensionCommand, + ID3D12VideoExtensionCommand_Vtbl, + 0x554e41e8_ae8e_4a8c_b7d2_5b4f274a30e4 +); +#[cfg(feature = "Win32_Graphics_Direct3D12")] +::windows_core::imp::interface_hierarchy!(ID3D12VideoExtensionCommand, ::windows_core::IUnknown, super::super::Graphics::Direct3D12::ID3D12Object, super::super::Graphics::Direct3D12::ID3D12DeviceChild, super::super::Graphics::Direct3D12::ID3D12Pageable); #[cfg(feature = "Win32_Graphics_Direct3D12")] impl ID3D12VideoExtensionCommand { #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] @@ -4601,7 +4441,7 @@ impl ID3D12VideoExtensionCommand { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn GetDevice(&self, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _).ok() } @@ -4612,26 +4452,16 @@ impl ID3D12VideoExtensionCommand { } pub unsafe fn GetProtectedResourceSession(&self, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).GetProtectedResourceSession)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _).ok() } } #[cfg(feature = "Win32_Graphics_Direct3D12")] -::windows_core::imp::interface_hierarchy!(ID3D12VideoExtensionCommand, ::windows_core::IUnknown, super::super::Graphics::Direct3D12::ID3D12Object, super::super::Graphics::Direct3D12::ID3D12DeviceChild, super::super::Graphics::Direct3D12::ID3D12Pageable); -#[cfg(feature = "Win32_Graphics_Direct3D12")] unsafe impl ::core::marker::Send for ID3D12VideoExtensionCommand {} #[cfg(feature = "Win32_Graphics_Direct3D12")] unsafe impl ::core::marker::Sync for ID3D12VideoExtensionCommand {} #[cfg(feature = "Win32_Graphics_Direct3D12")] -unsafe impl ::windows_core::Interface for ID3D12VideoExtensionCommand { - type Vtable = ID3D12VideoExtensionCommand_Vtbl; -} -#[cfg(feature = "Win32_Graphics_Direct3D12")] -unsafe impl ::windows_core::ComInterface for ID3D12VideoExtensionCommand { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x554e41e8_ae8e_4a8c_b7d2_5b4f274a30e4); -} -#[cfg(feature = "Win32_Graphics_Direct3D12")] #[repr(C)] #[doc(hidden)] pub struct ID3D12VideoExtensionCommand_Vtbl { @@ -4639,11 +4469,15 @@ pub struct ID3D12VideoExtensionCommand_Vtbl { pub GetDesc: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut D3D12_VIDEO_EXTENSION_COMMAND_DESC), pub GetProtectedResourceSession: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppprotectedsession: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] #[cfg(feature = "Win32_Graphics_Direct3D12")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12VideoMotionEstimator(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] + ID3D12VideoMotionEstimator, + ID3D12VideoMotionEstimator_Vtbl, + 0x33fdae0e_098b_428f_87bb_34b695de08f8 +); +#[cfg(feature = "Win32_Graphics_Direct3D12")] +::windows_core::imp::interface_hierarchy!(ID3D12VideoMotionEstimator, ::windows_core::IUnknown, super::super::Graphics::Direct3D12::ID3D12Object, super::super::Graphics::Direct3D12::ID3D12DeviceChild, super::super::Graphics::Direct3D12::ID3D12Pageable); #[cfg(feature = "Win32_Graphics_Direct3D12")] impl ID3D12VideoMotionEstimator { #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] @@ -4676,7 +4510,7 @@ impl ID3D12VideoMotionEstimator { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn GetDevice(&self, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _).ok() } @@ -4689,26 +4523,16 @@ impl ID3D12VideoMotionEstimator { } pub unsafe fn GetProtectedResourceSession(&self, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).GetProtectedResourceSession)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _).ok() } } #[cfg(feature = "Win32_Graphics_Direct3D12")] -::windows_core::imp::interface_hierarchy!(ID3D12VideoMotionEstimator, ::windows_core::IUnknown, super::super::Graphics::Direct3D12::ID3D12Object, super::super::Graphics::Direct3D12::ID3D12DeviceChild, super::super::Graphics::Direct3D12::ID3D12Pageable); -#[cfg(feature = "Win32_Graphics_Direct3D12")] unsafe impl ::core::marker::Send for ID3D12VideoMotionEstimator {} #[cfg(feature = "Win32_Graphics_Direct3D12")] unsafe impl ::core::marker::Sync for ID3D12VideoMotionEstimator {} #[cfg(feature = "Win32_Graphics_Direct3D12")] -unsafe impl ::windows_core::Interface for ID3D12VideoMotionEstimator { - type Vtable = ID3D12VideoMotionEstimator_Vtbl; -} -#[cfg(feature = "Win32_Graphics_Direct3D12")] -unsafe impl ::windows_core::ComInterface for ID3D12VideoMotionEstimator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x33fdae0e_098b_428f_87bb_34b695de08f8); -} -#[cfg(feature = "Win32_Graphics_Direct3D12")] #[repr(C)] #[doc(hidden)] pub struct ID3D12VideoMotionEstimator_Vtbl { @@ -4719,11 +4543,15 @@ pub struct ID3D12VideoMotionEstimator_Vtbl { GetDesc: usize, pub GetProtectedResourceSession: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppprotectedsession: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] #[cfg(feature = "Win32_Graphics_Direct3D12")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12VideoMotionVectorHeap(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] + ID3D12VideoMotionVectorHeap, + ID3D12VideoMotionVectorHeap_Vtbl, + 0x5be17987_743a_4061_834b_23d22daea505 +); +#[cfg(feature = "Win32_Graphics_Direct3D12")] +::windows_core::imp::interface_hierarchy!(ID3D12VideoMotionVectorHeap, ::windows_core::IUnknown, super::super::Graphics::Direct3D12::ID3D12Object, super::super::Graphics::Direct3D12::ID3D12DeviceChild, super::super::Graphics::Direct3D12::ID3D12Pageable); #[cfg(feature = "Win32_Graphics_Direct3D12")] impl ID3D12VideoMotionVectorHeap { #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] @@ -4756,7 +4584,7 @@ impl ID3D12VideoMotionVectorHeap { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn GetDevice(&self, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _).ok() } @@ -4769,26 +4597,16 @@ impl ID3D12VideoMotionVectorHeap { } pub unsafe fn GetProtectedResourceSession(&self, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).GetProtectedResourceSession)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _).ok() } } #[cfg(feature = "Win32_Graphics_Direct3D12")] -::windows_core::imp::interface_hierarchy!(ID3D12VideoMotionVectorHeap, ::windows_core::IUnknown, super::super::Graphics::Direct3D12::ID3D12Object, super::super::Graphics::Direct3D12::ID3D12DeviceChild, super::super::Graphics::Direct3D12::ID3D12Pageable); -#[cfg(feature = "Win32_Graphics_Direct3D12")] unsafe impl ::core::marker::Send for ID3D12VideoMotionVectorHeap {} #[cfg(feature = "Win32_Graphics_Direct3D12")] unsafe impl ::core::marker::Sync for ID3D12VideoMotionVectorHeap {} #[cfg(feature = "Win32_Graphics_Direct3D12")] -unsafe impl ::windows_core::Interface for ID3D12VideoMotionVectorHeap { - type Vtable = ID3D12VideoMotionVectorHeap_Vtbl; -} -#[cfg(feature = "Win32_Graphics_Direct3D12")] -unsafe impl ::windows_core::ComInterface for ID3D12VideoMotionVectorHeap { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5be17987_743a_4061_834b_23d22daea505); -} -#[cfg(feature = "Win32_Graphics_Direct3D12")] #[repr(C)] #[doc(hidden)] pub struct ID3D12VideoMotionVectorHeap_Vtbl { @@ -4799,11 +4617,15 @@ pub struct ID3D12VideoMotionVectorHeap_Vtbl { GetDesc: usize, pub GetProtectedResourceSession: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppprotectedsession: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] #[cfg(feature = "Win32_Graphics_Direct3D12")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12VideoProcessCommandList(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] + ID3D12VideoProcessCommandList, + ID3D12VideoProcessCommandList_Vtbl, + 0xaeb2543a_167f_4682_acc8_d159ed4a6209 +); +#[cfg(feature = "Win32_Graphics_Direct3D12")] +::windows_core::imp::interface_hierarchy!(ID3D12VideoProcessCommandList, ::windows_core::IUnknown, super::super::Graphics::Direct3D12::ID3D12Object, super::super::Graphics::Direct3D12::ID3D12DeviceChild, super::super::Graphics::Direct3D12::ID3D12CommandList); #[cfg(feature = "Win32_Graphics_Direct3D12")] impl ID3D12VideoProcessCommandList { #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] @@ -4836,7 +4658,7 @@ impl ID3D12VideoProcessCommandList { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn GetDevice(&self, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _).ok() } @@ -4929,20 +4751,10 @@ impl ID3D12VideoProcessCommandList { } } #[cfg(feature = "Win32_Graphics_Direct3D12")] -::windows_core::imp::interface_hierarchy!(ID3D12VideoProcessCommandList, ::windows_core::IUnknown, super::super::Graphics::Direct3D12::ID3D12Object, super::super::Graphics::Direct3D12::ID3D12DeviceChild, super::super::Graphics::Direct3D12::ID3D12CommandList); -#[cfg(feature = "Win32_Graphics_Direct3D12")] unsafe impl ::core::marker::Send for ID3D12VideoProcessCommandList {} #[cfg(feature = "Win32_Graphics_Direct3D12")] unsafe impl ::core::marker::Sync for ID3D12VideoProcessCommandList {} #[cfg(feature = "Win32_Graphics_Direct3D12")] -unsafe impl ::windows_core::Interface for ID3D12VideoProcessCommandList { - type Vtable = ID3D12VideoProcessCommandList_Vtbl; -} -#[cfg(feature = "Win32_Graphics_Direct3D12")] -unsafe impl ::windows_core::ComInterface for ID3D12VideoProcessCommandList { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaeb2543a_167f_4682_acc8_d159ed4a6209); -} -#[cfg(feature = "Win32_Graphics_Direct3D12")] #[repr(C)] #[doc(hidden)] pub struct ID3D12VideoProcessCommandList_Vtbl { @@ -4989,11 +4801,15 @@ pub struct ID3D12VideoProcessCommandList_Vtbl { #[cfg(not(feature = "Win32_Graphics_Direct3D12"))] WriteBufferImmediate: usize, } -#[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] #[cfg(feature = "Win32_Graphics_Direct3D12")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12VideoProcessCommandList1(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] + ID3D12VideoProcessCommandList1, + ID3D12VideoProcessCommandList1_Vtbl, + 0x542c5c4d_7596_434f_8c93_4efa6766f267 +); +#[cfg(feature = "Win32_Graphics_Direct3D12")] +::windows_core::imp::interface_hierarchy!(ID3D12VideoProcessCommandList1, ::windows_core::IUnknown, super::super::Graphics::Direct3D12::ID3D12Object, super::super::Graphics::Direct3D12::ID3D12DeviceChild, super::super::Graphics::Direct3D12::ID3D12CommandList, ID3D12VideoProcessCommandList); #[cfg(feature = "Win32_Graphics_Direct3D12")] impl ID3D12VideoProcessCommandList1 { #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] @@ -5026,7 +4842,7 @@ impl ID3D12VideoProcessCommandList1 { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn GetDevice(&self, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _).ok() } @@ -5127,20 +4943,10 @@ impl ID3D12VideoProcessCommandList1 { } } #[cfg(feature = "Win32_Graphics_Direct3D12")] -::windows_core::imp::interface_hierarchy!(ID3D12VideoProcessCommandList1, ::windows_core::IUnknown, super::super::Graphics::Direct3D12::ID3D12Object, super::super::Graphics::Direct3D12::ID3D12DeviceChild, super::super::Graphics::Direct3D12::ID3D12CommandList, ID3D12VideoProcessCommandList); -#[cfg(feature = "Win32_Graphics_Direct3D12")] unsafe impl ::core::marker::Send for ID3D12VideoProcessCommandList1 {} #[cfg(feature = "Win32_Graphics_Direct3D12")] unsafe impl ::core::marker::Sync for ID3D12VideoProcessCommandList1 {} #[cfg(feature = "Win32_Graphics_Direct3D12")] -unsafe impl ::windows_core::Interface for ID3D12VideoProcessCommandList1 { - type Vtable = ID3D12VideoProcessCommandList1_Vtbl; -} -#[cfg(feature = "Win32_Graphics_Direct3D12")] -unsafe impl ::windows_core::ComInterface for ID3D12VideoProcessCommandList1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x542c5c4d_7596_434f_8c93_4efa6766f267); -} -#[cfg(feature = "Win32_Graphics_Direct3D12")] #[repr(C)] #[doc(hidden)] pub struct ID3D12VideoProcessCommandList1_Vtbl { @@ -5150,11 +4956,15 @@ pub struct ID3D12VideoProcessCommandList1_Vtbl { #[cfg(not(feature = "Win32_Graphics_Direct3D12"))] ProcessFrames1: usize, } -#[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] #[cfg(feature = "Win32_Graphics_Direct3D12")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12VideoProcessCommandList2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] + ID3D12VideoProcessCommandList2, + ID3D12VideoProcessCommandList2_Vtbl, + 0xdb525ae4_6ad6_473c_baa7_59b2e37082e4 +); +#[cfg(feature = "Win32_Graphics_Direct3D12")] +::windows_core::imp::interface_hierarchy!(ID3D12VideoProcessCommandList2, ::windows_core::IUnknown, super::super::Graphics::Direct3D12::ID3D12Object, super::super::Graphics::Direct3D12::ID3D12DeviceChild, super::super::Graphics::Direct3D12::ID3D12CommandList, ID3D12VideoProcessCommandList, ID3D12VideoProcessCommandList1); #[cfg(feature = "Win32_Graphics_Direct3D12")] impl ID3D12VideoProcessCommandList2 { #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] @@ -5187,7 +4997,7 @@ impl ID3D12VideoProcessCommandList2 { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn GetDevice(&self, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _).ok() } @@ -5312,20 +5122,10 @@ impl ID3D12VideoProcessCommandList2 { } } #[cfg(feature = "Win32_Graphics_Direct3D12")] -::windows_core::imp::interface_hierarchy!(ID3D12VideoProcessCommandList2, ::windows_core::IUnknown, super::super::Graphics::Direct3D12::ID3D12Object, super::super::Graphics::Direct3D12::ID3D12DeviceChild, super::super::Graphics::Direct3D12::ID3D12CommandList, ID3D12VideoProcessCommandList, ID3D12VideoProcessCommandList1); -#[cfg(feature = "Win32_Graphics_Direct3D12")] unsafe impl ::core::marker::Send for ID3D12VideoProcessCommandList2 {} #[cfg(feature = "Win32_Graphics_Direct3D12")] unsafe impl ::core::marker::Sync for ID3D12VideoProcessCommandList2 {} #[cfg(feature = "Win32_Graphics_Direct3D12")] -unsafe impl ::windows_core::Interface for ID3D12VideoProcessCommandList2 { - type Vtable = ID3D12VideoProcessCommandList2_Vtbl; -} -#[cfg(feature = "Win32_Graphics_Direct3D12")] -unsafe impl ::windows_core::ComInterface for ID3D12VideoProcessCommandList2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdb525ae4_6ad6_473c_baa7_59b2e37082e4); -} -#[cfg(feature = "Win32_Graphics_Direct3D12")] #[repr(C)] #[doc(hidden)] pub struct ID3D12VideoProcessCommandList2_Vtbl { @@ -5343,11 +5143,15 @@ pub struct ID3D12VideoProcessCommandList2_Vtbl { #[cfg(not(feature = "Win32_Graphics_Direct3D12"))] ExecuteExtensionCommand: usize, } -#[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] #[cfg(feature = "Win32_Graphics_Direct3D12")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12VideoProcessCommandList3(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] + ID3D12VideoProcessCommandList3, + ID3D12VideoProcessCommandList3_Vtbl, + 0x1a0a4ca4_9f08_40ce_9558_b411fd2666ff +); +#[cfg(feature = "Win32_Graphics_Direct3D12")] +::windows_core::imp::interface_hierarchy!(ID3D12VideoProcessCommandList3, ::windows_core::IUnknown, super::super::Graphics::Direct3D12::ID3D12Object, super::super::Graphics::Direct3D12::ID3D12DeviceChild, super::super::Graphics::Direct3D12::ID3D12CommandList, ID3D12VideoProcessCommandList, ID3D12VideoProcessCommandList1, ID3D12VideoProcessCommandList2); #[cfg(feature = "Win32_Graphics_Direct3D12")] impl ID3D12VideoProcessCommandList3 { #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] @@ -5380,7 +5184,7 @@ impl ID3D12VideoProcessCommandList3 { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn GetDevice(&self, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _).ok() } @@ -5510,20 +5314,10 @@ impl ID3D12VideoProcessCommandList3 { } } #[cfg(feature = "Win32_Graphics_Direct3D12")] -::windows_core::imp::interface_hierarchy!(ID3D12VideoProcessCommandList3, ::windows_core::IUnknown, super::super::Graphics::Direct3D12::ID3D12Object, super::super::Graphics::Direct3D12::ID3D12DeviceChild, super::super::Graphics::Direct3D12::ID3D12CommandList, ID3D12VideoProcessCommandList, ID3D12VideoProcessCommandList1, ID3D12VideoProcessCommandList2); -#[cfg(feature = "Win32_Graphics_Direct3D12")] unsafe impl ::core::marker::Send for ID3D12VideoProcessCommandList3 {} #[cfg(feature = "Win32_Graphics_Direct3D12")] unsafe impl ::core::marker::Sync for ID3D12VideoProcessCommandList3 {} #[cfg(feature = "Win32_Graphics_Direct3D12")] -unsafe impl ::windows_core::Interface for ID3D12VideoProcessCommandList3 { - type Vtable = ID3D12VideoProcessCommandList3_Vtbl; -} -#[cfg(feature = "Win32_Graphics_Direct3D12")] -unsafe impl ::windows_core::ComInterface for ID3D12VideoProcessCommandList3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1a0a4ca4_9f08_40ce_9558_b411fd2666ff); -} -#[cfg(feature = "Win32_Graphics_Direct3D12")] #[repr(C)] #[doc(hidden)] pub struct ID3D12VideoProcessCommandList3_Vtbl { @@ -5533,11 +5327,15 @@ pub struct ID3D12VideoProcessCommandList3_Vtbl { #[cfg(not(feature = "Win32_Graphics_Direct3D12"))] Barrier: usize, } -#[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] #[cfg(feature = "Win32_Graphics_Direct3D12")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12VideoProcessor(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] + ID3D12VideoProcessor, + ID3D12VideoProcessor_Vtbl, + 0x304fdb32_bede_410a_8545_943ac6a46138 +); +#[cfg(feature = "Win32_Graphics_Direct3D12")] +::windows_core::imp::interface_hierarchy!(ID3D12VideoProcessor, ::windows_core::IUnknown, super::super::Graphics::Direct3D12::ID3D12Object, super::super::Graphics::Direct3D12::ID3D12DeviceChild, super::super::Graphics::Direct3D12::ID3D12Pageable); #[cfg(feature = "Win32_Graphics_Direct3D12")] impl ID3D12VideoProcessor { #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] @@ -5570,7 +5368,7 @@ impl ID3D12VideoProcessor { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn GetDevice(&self, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _).ok() } @@ -5594,20 +5392,10 @@ impl ID3D12VideoProcessor { } } #[cfg(feature = "Win32_Graphics_Direct3D12")] -::windows_core::imp::interface_hierarchy!(ID3D12VideoProcessor, ::windows_core::IUnknown, super::super::Graphics::Direct3D12::ID3D12Object, super::super::Graphics::Direct3D12::ID3D12DeviceChild, super::super::Graphics::Direct3D12::ID3D12Pageable); -#[cfg(feature = "Win32_Graphics_Direct3D12")] unsafe impl ::core::marker::Send for ID3D12VideoProcessor {} #[cfg(feature = "Win32_Graphics_Direct3D12")] unsafe impl ::core::marker::Sync for ID3D12VideoProcessor {} #[cfg(feature = "Win32_Graphics_Direct3D12")] -unsafe impl ::windows_core::Interface for ID3D12VideoProcessor { - type Vtable = ID3D12VideoProcessor_Vtbl; -} -#[cfg(feature = "Win32_Graphics_Direct3D12")] -unsafe impl ::windows_core::ComInterface for ID3D12VideoProcessor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x304fdb32_bede_410a_8545_943ac6a46138); -} -#[cfg(feature = "Win32_Graphics_Direct3D12")] #[repr(C)] #[doc(hidden)] pub struct ID3D12VideoProcessor_Vtbl { @@ -5623,11 +5411,15 @@ pub struct ID3D12VideoProcessor_Vtbl { #[cfg(not(feature = "Win32_Graphics_Dxgi_Common"))] GetOutputStreamDesc: usize, } -#[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] #[cfg(feature = "Win32_Graphics_Direct3D12")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ID3D12VideoProcessor1(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] + ID3D12VideoProcessor1, + ID3D12VideoProcessor1_Vtbl, + 0xf3cfe615_553f_425c_86d8_ee8c1b1fb01c +); +#[cfg(feature = "Win32_Graphics_Direct3D12")] +::windows_core::imp::interface_hierarchy!(ID3D12VideoProcessor1, ::windows_core::IUnknown, super::super::Graphics::Direct3D12::ID3D12Object, super::super::Graphics::Direct3D12::ID3D12DeviceChild, super::super::Graphics::Direct3D12::ID3D12Pageable, ID3D12VideoProcessor); #[cfg(feature = "Win32_Graphics_Direct3D12")] impl ID3D12VideoProcessor1 { #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] @@ -5660,7 +5452,7 @@ impl ID3D12VideoProcessor1 { #[cfg(feature = "Win32_Graphics_Direct3D12")] pub unsafe fn GetDevice(&self, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).base__.base__.base__.GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _).ok() } @@ -5684,35 +5476,24 @@ impl ID3D12VideoProcessor1 { } pub unsafe fn GetProtectedResourceSession(&self, result__: *mut ::core::option::Option) -> ::windows_core::Result<()> where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { (::windows_core::Interface::vtable(self).GetProtectedResourceSession)(::windows_core::Interface::as_raw(self), &T::IID, result__ as *mut _ as *mut _).ok() } } #[cfg(feature = "Win32_Graphics_Direct3D12")] -::windows_core::imp::interface_hierarchy!(ID3D12VideoProcessor1, ::windows_core::IUnknown, super::super::Graphics::Direct3D12::ID3D12Object, super::super::Graphics::Direct3D12::ID3D12DeviceChild, super::super::Graphics::Direct3D12::ID3D12Pageable, ID3D12VideoProcessor); -#[cfg(feature = "Win32_Graphics_Direct3D12")] unsafe impl ::core::marker::Send for ID3D12VideoProcessor1 {} #[cfg(feature = "Win32_Graphics_Direct3D12")] unsafe impl ::core::marker::Sync for ID3D12VideoProcessor1 {} #[cfg(feature = "Win32_Graphics_Direct3D12")] -unsafe impl ::windows_core::Interface for ID3D12VideoProcessor1 { - type Vtable = ID3D12VideoProcessor1_Vtbl; -} -#[cfg(feature = "Win32_Graphics_Direct3D12")] -unsafe impl ::windows_core::ComInterface for ID3D12VideoProcessor1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf3cfe615_553f_425c_86d8_ee8c1b1fb01c); -} -#[cfg(feature = "Win32_Graphics_Direct3D12")] #[repr(C)] #[doc(hidden)] pub struct ID3D12VideoProcessor1_Vtbl { pub base__: ID3D12VideoProcessor_Vtbl, pub GetProtectedResourceSession: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppprotectedsession: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDXVAHD_Device(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDXVAHD_Device, IDXVAHD_Device_Vtbl, 0x95f12dfd_d77e_49be_815f_57d579634d6d); +::windows_core::imp::interface_hierarchy!(IDXVAHD_Device, ::windows_core::IUnknown); impl IDXVAHD_Device { #[doc = "Required features: `\"Win32_Graphics_Direct3D9\"`"] #[cfg(feature = "Win32_Graphics_Direct3D9")] @@ -5749,13 +5530,6 @@ impl IDXVAHD_Device { (::windows_core::Interface::vtable(self).CreateVideoProcessor)(::windows_core::Interface::as_raw(self), pvpguid, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDXVAHD_Device, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDXVAHD_Device { - type Vtable = IDXVAHD_Device_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDXVAHD_Device { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x95f12dfd_d77e_49be_815f_57d579634d6d); -} #[repr(C)] #[doc(hidden)] pub struct IDXVAHD_Device_Vtbl { @@ -5781,9 +5555,8 @@ pub struct IDXVAHD_Device_Vtbl { pub GetVideoProcessorFilterRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filter: DXVAHD_FILTER, prange: *mut DXVAHD_FILTER_RANGE_DATA) -> ::windows_core::HRESULT, pub CreateVideoProcessor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvpguid: *const ::windows_core::GUID, ppvideoprocessor: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDXVAHD_VideoProcessor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDXVAHD_VideoProcessor, IDXVAHD_VideoProcessor_Vtbl, 0x95f4edf4_6e03_4cd7_be1b_3075d665aa52); +::windows_core::imp::interface_hierarchy!(IDXVAHD_VideoProcessor, ::windows_core::IUnknown); impl IDXVAHD_VideoProcessor { pub unsafe fn SetVideoProcessBltState(&self, state: DXVAHD_BLT_STATE, datasize: u32, pdata: *const ::core::ffi::c_void) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetVideoProcessBltState)(::windows_core::Interface::as_raw(self), state, datasize, pdata).ok() @@ -5806,13 +5579,6 @@ impl IDXVAHD_VideoProcessor { (::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::imp::interface_hierarchy!(IDXVAHD_VideoProcessor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDXVAHD_VideoProcessor { - type Vtable = IDXVAHD_VideoProcessor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDXVAHD_VideoProcessor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x95f4edf4_6e03_4cd7_be1b_3075d665aa52); -} #[repr(C)] #[doc(hidden)] pub struct IDXVAHD_VideoProcessor_Vtbl { @@ -5826,9 +5592,8 @@ pub struct IDXVAHD_VideoProcessor_Vtbl { #[cfg(not(feature = "Win32_Graphics_Direct3D9"))] VideoProcessBltHD: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirect3D9ExOverlayExtension(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirect3D9ExOverlayExtension, IDirect3D9ExOverlayExtension_Vtbl, 0x187aeb13_aaf5_4c59_876d_e059088c0df8); +::windows_core::imp::interface_hierarchy!(IDirect3D9ExOverlayExtension, ::windows_core::IUnknown); impl IDirect3D9ExOverlayExtension { #[doc = "Required features: `\"Win32_Graphics_Direct3D9\"`"] #[cfg(feature = "Win32_Graphics_Direct3D9")] @@ -5836,13 +5601,6 @@ impl IDirect3D9ExOverlayExtension { (::windows_core::Interface::vtable(self).CheckDeviceOverlayType)(::windows_core::Interface::as_raw(self), adapter, devtype, overlaywidth, overlayheight, overlayformat, pdisplaymode, displayrotation, poverlaycaps).ok() } } -::windows_core::imp::interface_hierarchy!(IDirect3D9ExOverlayExtension, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirect3D9ExOverlayExtension { - type Vtable = IDirect3D9ExOverlayExtension_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirect3D9ExOverlayExtension { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x187aeb13_aaf5_4c59_876d_e059088c0df8); -} #[repr(C)] #[doc(hidden)] pub struct IDirect3D9ExOverlayExtension_Vtbl { @@ -5852,9 +5610,8 @@ pub struct IDirect3D9ExOverlayExtension_Vtbl { #[cfg(not(feature = "Win32_Graphics_Direct3D9"))] CheckDeviceOverlayType: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirect3DAuthenticatedChannel9(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirect3DAuthenticatedChannel9, IDirect3DAuthenticatedChannel9_Vtbl, 0xff24beee_da21_4beb_98b5_d2f899f98af9); +::windows_core::imp::interface_hierarchy!(IDirect3DAuthenticatedChannel9, ::windows_core::IUnknown); impl IDirect3DAuthenticatedChannel9 { pub unsafe fn GetCertificateSize(&self, pcertificatesize: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetCertificateSize)(::windows_core::Interface::as_raw(self), pcertificatesize).ok() @@ -5874,13 +5631,6 @@ impl IDirect3DAuthenticatedChannel9 { (::windows_core::Interface::vtable(self).Configure)(::windows_core::Interface::as_raw(self), inputsize, pinput, poutput).ok() } } -::windows_core::imp::interface_hierarchy!(IDirect3DAuthenticatedChannel9, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirect3DAuthenticatedChannel9 { - type Vtable = IDirect3DAuthenticatedChannel9_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirect3DAuthenticatedChannel9 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xff24beee_da21_4beb_98b5_d2f899f98af9); -} #[repr(C)] #[doc(hidden)] pub struct IDirect3DAuthenticatedChannel9_Vtbl { @@ -5894,9 +5644,8 @@ pub struct IDirect3DAuthenticatedChannel9_Vtbl { #[cfg(not(feature = "Win32_Graphics_Direct3D9"))] Configure: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirect3DCryptoSession9(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirect3DCryptoSession9, IDirect3DCryptoSession9_Vtbl, 0xfa0ab799_7a9c_48ca_8c5b_237e71a54434); +::windows_core::imp::interface_hierarchy!(IDirect3DCryptoSession9, ::windows_core::IUnknown); impl IDirect3DCryptoSession9 { pub unsafe fn GetCertificateSize(&self, pcertificatesize: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetCertificateSize)(::windows_core::Interface::as_raw(self), pcertificatesize).ok() @@ -5943,13 +5692,6 @@ impl IDirect3DCryptoSession9 { (::windows_core::Interface::vtable(self).GetEncryptionBltKey)(::windows_core::Interface::as_raw(self), preadbackkey, keysize).ok() } } -::windows_core::imp::interface_hierarchy!(IDirect3DCryptoSession9, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirect3DCryptoSession9 { - type Vtable = IDirect3DCryptoSession9_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirect3DCryptoSession9 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfa0ab799_7a9c_48ca_8c5b_237e71a54434); -} #[repr(C)] #[doc(hidden)] pub struct IDirect3DCryptoSession9_Vtbl { @@ -5973,9 +5715,8 @@ pub struct IDirect3DCryptoSession9_Vtbl { pub FinishSessionKeyRefresh: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetEncryptionBltKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, preadbackkey: *mut ::core::ffi::c_void, keysize: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirect3DDevice9Video(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirect3DDevice9Video, IDirect3DDevice9Video_Vtbl, 0x26dc4561_a1ee_4ae7_96da_118a36c0ec95); +::windows_core::imp::interface_hierarchy!(IDirect3DDevice9Video, ::windows_core::IUnknown); impl IDirect3DDevice9Video { pub unsafe fn GetContentProtectionCaps(&self, pcryptotype: *const ::windows_core::GUID, pdecodeprofile: *const ::windows_core::GUID, pcaps: *mut D3DCONTENTPROTECTIONCAPS) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetContentProtectionCaps)(::windows_core::Interface::as_raw(self), pcryptotype, pdecodeprofile, pcaps).ok() @@ -5989,13 +5730,6 @@ impl IDirect3DDevice9Video { (::windows_core::Interface::vtable(self).CreateCryptoSession)(::windows_core::Interface::as_raw(self), pcryptotype, pdecodeprofile, ::core::mem::transmute(ppcryptosession), pcryptohandle).ok() } } -::windows_core::imp::interface_hierarchy!(IDirect3DDevice9Video, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirect3DDevice9Video { - type Vtable = IDirect3DDevice9Video_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirect3DDevice9Video { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x26dc4561_a1ee_4ae7_96da_118a36c0ec95); -} #[repr(C)] #[doc(hidden)] pub struct IDirect3DDevice9Video_Vtbl { @@ -6007,9 +5741,8 @@ pub struct IDirect3DDevice9Video_Vtbl { CreateAuthenticatedChannel: usize, pub CreateCryptoSession: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcryptotype: *const ::windows_core::GUID, pdecodeprofile: *const ::windows_core::GUID, ppcryptosession: *mut *mut ::core::ffi::c_void, pcryptohandle: *mut super::super::Foundation::HANDLE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirect3DDeviceManager9(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirect3DDeviceManager9, IDirect3DDeviceManager9_Vtbl, 0xa0cade0f_06d5_4cf4_a1c7_f3cdd725aa75); +::windows_core::imp::interface_hierarchy!(IDirect3DDeviceManager9, ::windows_core::IUnknown); impl IDirect3DDeviceManager9 { #[doc = "Required features: `\"Win32_Graphics_Direct3D9\"`"] #[cfg(feature = "Win32_Graphics_Direct3D9")] @@ -6058,13 +5791,6 @@ impl IDirect3DDeviceManager9 { (::windows_core::Interface::vtable(self).GetVideoService)(::windows_core::Interface::as_raw(self), hdevice.into_param().abi(), riid, ppservice).ok() } } -::windows_core::imp::interface_hierarchy!(IDirect3DDeviceManager9, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirect3DDeviceManager9 { - type Vtable = IDirect3DDeviceManager9_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirect3DDeviceManager9 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa0cade0f_06d5_4cf4_a1c7_f3cdd725aa75); -} #[repr(C)] #[doc(hidden)] pub struct IDirect3DDeviceManager9_Vtbl { @@ -6083,9 +5809,8 @@ pub struct IDirect3DDeviceManager9_Vtbl { pub UnlockDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hdevice: super::super::Foundation::HANDLE, fsavestate: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub GetVideoService: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hdevice: super::super::Foundation::HANDLE, riid: *const ::windows_core::GUID, ppservice: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectXVideoAccelerationService(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectXVideoAccelerationService, IDirectXVideoAccelerationService_Vtbl, 0xfc51a550_d5e7_11d9_af55_00054e43ff02); +::windows_core::imp::interface_hierarchy!(IDirectXVideoAccelerationService, ::windows_core::IUnknown); impl IDirectXVideoAccelerationService { #[doc = "Required features: `\"Win32_Graphics_Direct3D9\"`"] #[cfg(feature = "Win32_Graphics_Direct3D9")] @@ -6093,13 +5818,6 @@ impl IDirectXVideoAccelerationService { (::windows_core::Interface::vtable(self).CreateSurface)(::windows_core::Interface::as_raw(self), width, height, backbuffers, format, pool, usage, dxvatype.0 as _, ::core::mem::transmute(ppsurface), ::core::mem::transmute(psharedhandle.unwrap_or(::std::ptr::null_mut()))).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectXVideoAccelerationService, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectXVideoAccelerationService { - type Vtable = IDirectXVideoAccelerationService_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectXVideoAccelerationService { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfc51a550_d5e7_11d9_af55_00054e43ff02); -} #[repr(C)] #[doc(hidden)] pub struct IDirectXVideoAccelerationService_Vtbl { @@ -6109,9 +5827,8 @@ pub struct IDirectXVideoAccelerationService_Vtbl { #[cfg(not(feature = "Win32_Graphics_Direct3D9"))] CreateSurface: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectXVideoDecoder(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectXVideoDecoder, IDirectXVideoDecoder_Vtbl, 0xf2b0810a_fd00_43c9_918c_df94e2d8ef7d); +::windows_core::imp::interface_hierarchy!(IDirectXVideoDecoder, ::windows_core::IUnknown); impl IDirectXVideoDecoder { pub unsafe fn GetVideoDecoderService(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -6143,13 +5860,6 @@ impl IDirectXVideoDecoder { (::windows_core::Interface::vtable(self).Execute)(::windows_core::Interface::as_raw(self), pexecuteparams).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectXVideoDecoder, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectXVideoDecoder { - type Vtable = IDirectXVideoDecoder_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectXVideoDecoder { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf2b0810a_fd00_43c9_918c_df94e2d8ef7d); -} #[repr(C)] #[doc(hidden)] pub struct IDirectXVideoDecoder_Vtbl { @@ -6168,9 +5878,8 @@ pub struct IDirectXVideoDecoder_Vtbl { pub EndFrame: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phandlecomplete: *mut super::super::Foundation::HANDLE) -> ::windows_core::HRESULT, pub Execute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pexecuteparams: *const DXVA2_DecodeExecuteParams) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectXVideoDecoderService(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectXVideoDecoderService, IDirectXVideoDecoderService_Vtbl, 0xfc51a551_d5e7_11d9_af55_00054e43ff02); +::windows_core::imp::interface_hierarchy!(IDirectXVideoDecoderService, ::windows_core::IUnknown, IDirectXVideoAccelerationService); impl IDirectXVideoDecoderService { #[doc = "Required features: `\"Win32_Graphics_Direct3D9\"`"] #[cfg(feature = "Win32_Graphics_Direct3D9")] @@ -6197,13 +5906,6 @@ impl IDirectXVideoDecoderService { (::windows_core::Interface::vtable(self).CreateVideoDecoder)(::windows_core::Interface::as_raw(self), guid, pvideodesc, pconfig, ::core::mem::transmute(ppdecoderrendertargets.as_ptr()), ppdecoderrendertargets.len().try_into().unwrap(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDirectXVideoDecoderService, ::windows_core::IUnknown, IDirectXVideoAccelerationService); -unsafe impl ::windows_core::Interface for IDirectXVideoDecoderService { - type Vtable = IDirectXVideoDecoderService_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectXVideoDecoderService { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfc51a551_d5e7_11d9_af55_00054e43ff02); -} #[repr(C)] #[doc(hidden)] pub struct IDirectXVideoDecoderService_Vtbl { @@ -6222,9 +5924,8 @@ pub struct IDirectXVideoDecoderService_Vtbl { #[cfg(not(feature = "Win32_Graphics_Direct3D9"))] CreateVideoDecoder: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectXVideoMemoryConfiguration(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectXVideoMemoryConfiguration, IDirectXVideoMemoryConfiguration_Vtbl, 0xb7f916dd_db3b_49c1_84d7_e45ef99ec726); +::windows_core::imp::interface_hierarchy!(IDirectXVideoMemoryConfiguration, ::windows_core::IUnknown); impl IDirectXVideoMemoryConfiguration { pub unsafe fn GetAvailableSurfaceTypeByIndex(&self, dwtypeindex: u32) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -6234,13 +5935,6 @@ impl IDirectXVideoMemoryConfiguration { (::windows_core::Interface::vtable(self).SetSurfaceType)(::windows_core::Interface::as_raw(self), dwtype).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectXVideoMemoryConfiguration, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectXVideoMemoryConfiguration { - type Vtable = IDirectXVideoMemoryConfiguration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectXVideoMemoryConfiguration { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb7f916dd_db3b_49c1_84d7_e45ef99ec726); -} #[repr(C)] #[doc(hidden)] pub struct IDirectXVideoMemoryConfiguration_Vtbl { @@ -6248,9 +5942,8 @@ pub struct IDirectXVideoMemoryConfiguration_Vtbl { pub GetAvailableSurfaceTypeByIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwtypeindex: u32, pdwtype: *mut DXVA2_SurfaceType) -> ::windows_core::HRESULT, pub SetSurfaceType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwtype: DXVA2_SurfaceType) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectXVideoProcessor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectXVideoProcessor, IDirectXVideoProcessor_Vtbl, 0x8c3a39f0_916e_4690_804f_4c8001355d25); +::windows_core::imp::interface_hierarchy!(IDirectXVideoProcessor, ::windows_core::IUnknown); impl IDirectXVideoProcessor { pub unsafe fn GetVideoProcessorService(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -6283,13 +5976,6 @@ impl IDirectXVideoProcessor { (::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::imp::interface_hierarchy!(IDirectXVideoProcessor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectXVideoProcessor { - type Vtable = IDirectXVideoProcessor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectXVideoProcessor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8c3a39f0_916e_4690_804f_4c8001355d25); -} #[repr(C)] #[doc(hidden)] pub struct IDirectXVideoProcessor_Vtbl { @@ -6310,9 +5996,8 @@ pub struct IDirectXVideoProcessor_Vtbl { #[cfg(not(feature = "Win32_Graphics_Direct3D9"))] VideoProcessBlt: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectXVideoProcessorService(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectXVideoProcessorService, IDirectXVideoProcessorService_Vtbl, 0xfc51a552_d5e7_11d9_af55_00054e43ff02); +::windows_core::imp::interface_hierarchy!(IDirectXVideoProcessorService, ::windows_core::IUnknown, IDirectXVideoAccelerationService); impl IDirectXVideoProcessorService { #[doc = "Required features: `\"Win32_Graphics_Direct3D9\"`"] #[cfg(feature = "Win32_Graphics_Direct3D9")] @@ -6361,13 +6046,6 @@ impl IDirectXVideoProcessorService { (::windows_core::Interface::vtable(self).CreateVideoProcessor)(::windows_core::Interface::as_raw(self), videoprocdeviceguid, pvideodesc, rendertargetformat, maxnumsubstreams, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDirectXVideoProcessorService, ::windows_core::IUnknown, IDirectXVideoAccelerationService); -unsafe impl ::windows_core::Interface for IDirectXVideoProcessorService { - type Vtable = IDirectXVideoProcessorService_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectXVideoProcessorService { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfc51a552_d5e7_11d9_af55_00054e43ff02); -} #[repr(C)] #[doc(hidden)] pub struct IDirectXVideoProcessorService_Vtbl { @@ -6402,9 +6080,8 @@ pub struct IDirectXVideoProcessorService_Vtbl { #[cfg(not(feature = "Win32_Graphics_Direct3D9"))] CreateVideoProcessor: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEVRFilterConfig(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEVRFilterConfig, IEVRFilterConfig_Vtbl, 0x83e91e85_82c1_4ea7_801d_85dc50b75086); +::windows_core::imp::interface_hierarchy!(IEVRFilterConfig, ::windows_core::IUnknown); impl IEVRFilterConfig { pub unsafe fn SetNumberOfStreams(&self, dwmaxstreams: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetNumberOfStreams)(::windows_core::Interface::as_raw(self), dwmaxstreams).ok() @@ -6414,13 +6091,6 @@ impl IEVRFilterConfig { (::windows_core::Interface::vtable(self).GetNumberOfStreams)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEVRFilterConfig, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEVRFilterConfig { - type Vtable = IEVRFilterConfig_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEVRFilterConfig { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x83e91e85_82c1_4ea7_801d_85dc50b75086); -} #[repr(C)] #[doc(hidden)] pub struct IEVRFilterConfig_Vtbl { @@ -6428,9 +6098,8 @@ pub struct IEVRFilterConfig_Vtbl { pub SetNumberOfStreams: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwmaxstreams: u32) -> ::windows_core::HRESULT, pub GetNumberOfStreams: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwmaxstreams: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEVRFilterConfigEx(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEVRFilterConfigEx, IEVRFilterConfigEx_Vtbl, 0xaea36028_796d_454f_beee_b48071e24304); +::windows_core::imp::interface_hierarchy!(IEVRFilterConfigEx, ::windows_core::IUnknown, IEVRFilterConfig); impl IEVRFilterConfigEx { pub unsafe fn SetNumberOfStreams(&self, dwmaxstreams: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.SetNumberOfStreams)(::windows_core::Interface::as_raw(self), dwmaxstreams).ok() @@ -6447,13 +6116,6 @@ impl IEVRFilterConfigEx { (::windows_core::Interface::vtable(self).GetConfigPrefs)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEVRFilterConfigEx, ::windows_core::IUnknown, IEVRFilterConfig); -unsafe impl ::windows_core::Interface for IEVRFilterConfigEx { - type Vtable = IEVRFilterConfigEx_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEVRFilterConfigEx { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaea36028_796d_454f_beee_b48071e24304); -} #[repr(C)] #[doc(hidden)] pub struct IEVRFilterConfigEx_Vtbl { @@ -6461,9 +6123,8 @@ pub struct IEVRFilterConfigEx_Vtbl { pub SetConfigPrefs: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwconfigflags: u32) -> ::windows_core::HRESULT, pub GetConfigPrefs: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwconfigflags: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEVRTrustedVideoPlugin(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEVRTrustedVideoPlugin, IEVRTrustedVideoPlugin_Vtbl, 0x83a4ce40_7710_494b_a893_a472049af630); +::windows_core::imp::interface_hierarchy!(IEVRTrustedVideoPlugin, ::windows_core::IUnknown); impl IEVRTrustedVideoPlugin { pub unsafe fn IsInTrustedVideoMode(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -6483,13 +6144,6 @@ impl IEVRTrustedVideoPlugin { (::windows_core::Interface::vtable(self).DisableImageExport)(::windows_core::Interface::as_raw(self), bdisable.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IEVRTrustedVideoPlugin, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEVRTrustedVideoPlugin { - type Vtable = IEVRTrustedVideoPlugin_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEVRTrustedVideoPlugin { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x83a4ce40_7710_494b_a893_a472049af630); -} #[repr(C)] #[doc(hidden)] pub struct IEVRTrustedVideoPlugin_Vtbl { @@ -6499,9 +6153,8 @@ pub struct IEVRTrustedVideoPlugin_Vtbl { pub SetConstriction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwkpix: u32) -> ::windows_core::HRESULT, pub DisableImageExport: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bdisable: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEVRVideoStreamControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEVRVideoStreamControl, IEVRVideoStreamControl_Vtbl, 0xd0cfe38b_93e7_4772_8957_0400c49a4485); +::windows_core::imp::interface_hierarchy!(IEVRVideoStreamControl, ::windows_core::IUnknown); impl IEVRVideoStreamControl { pub unsafe fn SetStreamActiveState(&self, factive: P0) -> ::windows_core::Result<()> where @@ -6514,13 +6167,6 @@ impl IEVRVideoStreamControl { (::windows_core::Interface::vtable(self).GetStreamActiveState)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEVRVideoStreamControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEVRVideoStreamControl { - type Vtable = IEVRVideoStreamControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEVRVideoStreamControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd0cfe38b_93e7_4772_8957_0400c49a4485); -} #[repr(C)] #[doc(hidden)] pub struct IEVRVideoStreamControl_Vtbl { @@ -6528,9 +6174,8 @@ pub struct IEVRVideoStreamControl_Vtbl { pub SetStreamActiveState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, factive: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub GetStreamActiveState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpfactive: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFileClient(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFileClient, IFileClient_Vtbl, 0xbfccd196_1244_4840_ab44_480975c4ffe4); +::windows_core::imp::interface_hierarchy!(IFileClient, ::windows_core::IUnknown); impl IFileClient { pub unsafe fn GetObjectDiskSize(&self, pqwsize: *mut u64) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetObjectDiskSize)(::windows_core::Interface::as_raw(self), pqwsize).ok() @@ -6548,13 +6193,6 @@ impl IFileClient { (::windows_core::Interface::vtable(self).Read)(::windows_core::Interface::as_raw(self), pfio.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IFileClient, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFileClient { - type Vtable = IFileClient_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFileClient { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbfccd196_1244_4840_ab44_480975c4ffe4); -} #[repr(C)] #[doc(hidden)] pub struct IFileClient_Vtbl { @@ -6563,9 +6201,8 @@ pub struct IFileClient_Vtbl { pub Write: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfio: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Read: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfio: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFileIo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFileIo, IFileIo_Vtbl, 0x11993196_1244_4840_ab44_480975c4ffe4); +::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 @@ -6601,13 +6238,6 @@ impl IFileIo { (::windows_core::Interface::vtable(self).Close)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IFileIo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFileIo { - type Vtable = IFileIo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFileIo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x11993196_1244_4840_ab44_480975c4ffe4); -} #[repr(C)] #[doc(hidden)] pub struct IFileIo_Vtbl { @@ -6623,9 +6253,8 @@ pub struct IFileIo_Vtbl { pub Seek: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eseekorigin: SEEK_ORIGIN, qwseekoffset: u64, dwseekflags: u32, pqwcurrentposition: *mut u64) -> ::windows_core::HRESULT, pub Close: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMF2DBuffer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMF2DBuffer, IMF2DBuffer_Vtbl, 0x7dc9d5f9_9ed9_44ec_9bbf_0600bb589fbb); +::windows_core::imp::interface_hierarchy!(IMF2DBuffer, ::windows_core::IUnknown); impl IMF2DBuffer { pub unsafe fn Lock2D(&self, ppbscanline0: *mut *mut u8, plpitch: *mut i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Lock2D)(::windows_core::Interface::as_raw(self), ppbscanline0, plpitch).ok() @@ -6651,13 +6280,6 @@ impl IMF2DBuffer { (::windows_core::Interface::vtable(self).ContiguousCopyFrom)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pbsrcbuffer.as_ptr()), pbsrcbuffer.len().try_into().unwrap()).ok() } } -::windows_core::imp::interface_hierarchy!(IMF2DBuffer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMF2DBuffer { - type Vtable = IMF2DBuffer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMF2DBuffer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7dc9d5f9_9ed9_44ec_9bbf_0600bb589fbb); -} #[repr(C)] #[doc(hidden)] pub struct IMF2DBuffer_Vtbl { @@ -6670,9 +6292,8 @@ pub struct IMF2DBuffer_Vtbl { pub ContiguousCopyTo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbdestbuffer: *mut u8, cbdestbuffer: u32) -> ::windows_core::HRESULT, pub ContiguousCopyFrom: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbsrcbuffer: *const u8, cbsrcbuffer: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMF2DBuffer2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMF2DBuffer2, IMF2DBuffer2_Vtbl, 0x33ae5ea6_4316_436f_8ddd_d73d22f829ec); +::windows_core::imp::interface_hierarchy!(IMF2DBuffer2, ::windows_core::IUnknown, IMF2DBuffer); impl IMF2DBuffer2 { pub unsafe fn Lock2D(&self, ppbscanline0: *mut *mut u8, plpitch: *mut i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.Lock2D)(::windows_core::Interface::as_raw(self), ppbscanline0, plpitch).ok() @@ -6707,13 +6328,6 @@ impl IMF2DBuffer2 { (::windows_core::Interface::vtable(self).Copy2DTo)(::windows_core::Interface::as_raw(self), pdestbuffer.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMF2DBuffer2, ::windows_core::IUnknown, IMF2DBuffer); -unsafe impl ::windows_core::Interface for IMF2DBuffer2 { - type Vtable = IMF2DBuffer2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMF2DBuffer2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x33ae5ea6_4316_436f_8ddd_d73d22f829ec); -} #[repr(C)] #[doc(hidden)] pub struct IMF2DBuffer2_Vtbl { @@ -6721,9 +6335,8 @@ pub struct IMF2DBuffer2_Vtbl { pub Lock2DSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lockflags: MF2DBuffer_LockFlags, ppbscanline0: *mut *mut u8, plpitch: *mut i32, ppbbufferstart: *mut *mut u8, pcbbufferlength: *mut u32) -> ::windows_core::HRESULT, pub Copy2DTo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdestbuffer: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFASFContentInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFASFContentInfo, IMFASFContentInfo_Vtbl, 0xb1dca5cd_d5da_4451_8e9e_db5c59914ead); +::windows_core::imp::interface_hierarchy!(IMFASFContentInfo, ::windows_core::IUnknown); impl IMFASFContentInfo { pub unsafe fn GetHeaderSize(&self, pistartofcontent: P0) -> ::windows_core::Result where @@ -6766,13 +6379,6 @@ impl IMFASFContentInfo { (::windows_core::Interface::vtable(self).GetEncodingConfigurationPropertyStore)(::windows_core::Interface::as_raw(self), wstreamnumber, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFASFContentInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFASFContentInfo { - type Vtable = IMFASFContentInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFASFContentInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb1dca5cd_d5da_4451_8e9e_db5c59914ead); -} #[repr(C)] #[doc(hidden)] pub struct IMFASFContentInfo_Vtbl { @@ -6788,9 +6394,8 @@ pub struct IMFASFContentInfo_Vtbl { #[cfg(not(feature = "Win32_UI_Shell_PropertiesSystem"))] GetEncodingConfigurationPropertyStore: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFASFIndexer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFASFIndexer, IMFASFIndexer_Vtbl, 0x53590f48_dc3b_4297_813f_787761ad7b3e); +::windows_core::imp::interface_hierarchy!(IMFASFIndexer, ::windows_core::IUnknown); impl IMFASFIndexer { pub unsafe fn SetFlags(&self, dwflags: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetFlags)(::windows_core::Interface::as_raw(self), dwflags).ok() @@ -6856,13 +6461,6 @@ impl IMFASFIndexer { (::windows_core::Interface::vtable(self).GetCompletedIndex)(::windows_core::Interface::as_raw(self), piindexbuffer.into_param().abi(), cboffsetwithinindex).ok() } } -::windows_core::imp::interface_hierarchy!(IMFASFIndexer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFASFIndexer { - type Vtable = IMFASFIndexer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFASFIndexer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x53590f48_dc3b_4297_813f_787761ad7b3e); -} #[repr(C)] #[doc(hidden)] pub struct IMFASFIndexer_Vtbl { @@ -6884,9 +6482,8 @@ pub struct IMFASFIndexer_Vtbl { pub GetIndexWriteSpace: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcbindexwritespace: *mut u64) -> ::windows_core::HRESULT, pub GetCompletedIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, piindexbuffer: *mut ::core::ffi::c_void, cboffsetwithinindex: u64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFASFMultiplexer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFASFMultiplexer, IMFASFMultiplexer_Vtbl, 0x57bdd80a_9b38_4838_b737_c58f670d7d4f); +::windows_core::imp::interface_hierarchy!(IMFASFMultiplexer, ::windows_core::IUnknown); impl IMFASFMultiplexer { pub unsafe fn Initialize(&self, picontentinfo: P0) -> ::windows_core::Result<()> where @@ -6927,13 +6524,6 @@ impl IMFASFMultiplexer { (::windows_core::Interface::vtable(self).SetSyncTolerance)(::windows_core::Interface::as_raw(self), mssynctolerance).ok() } } -::windows_core::imp::interface_hierarchy!(IMFASFMultiplexer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFASFMultiplexer { - type Vtable = IMFASFMultiplexer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFASFMultiplexer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x57bdd80a_9b38_4838_b737_c58f670d7d4f); -} #[repr(C)] #[doc(hidden)] pub struct IMFASFMultiplexer_Vtbl { @@ -6948,9 +6538,8 @@ pub struct IMFASFMultiplexer_Vtbl { pub GetStatistics: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wstreamnumber: u16, pmuxstats: *mut ASF_MUX_STATISTICS) -> ::windows_core::HRESULT, pub SetSyncTolerance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mssynctolerance: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFASFMutualExclusion(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFASFMutualExclusion, IMFASFMutualExclusion_Vtbl, 0x12558291_e399_11d5_bc2a_00b0d0f3f4ab); +::windows_core::imp::interface_hierarchy!(IMFASFMutualExclusion, ::windows_core::IUnknown); impl IMFASFMutualExclusion { pub unsafe fn GetType(&self) -> ::windows_core::Result<::windows_core::GUID> { let mut result__ = ::std::mem::zeroed(); @@ -6984,13 +6573,6 @@ impl IMFASFMutualExclusion { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFASFMutualExclusion, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFASFMutualExclusion { - type Vtable = IMFASFMutualExclusion_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFASFMutualExclusion { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x12558291_e399_11d5_bc2a_00b0d0f3f4ab); -} #[repr(C)] #[doc(hidden)] pub struct IMFASFMutualExclusion_Vtbl { @@ -7005,9 +6587,8 @@ pub struct IMFASFMutualExclusion_Vtbl { pub AddRecord: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwrecordnumber: *mut u32) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppimutex: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFASFProfile(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFASFProfile, IMFASFProfile_Vtbl, 0xd267bf6a_028b_4e0d_903d_43f0ef82d0d4); +::windows_core::imp::interface_hierarchy!(IMFASFProfile, ::windows_core::IUnknown, IMFAttributes); impl IMFASFProfile { #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] @@ -7069,7 +6650,7 @@ impl IMFASFProfile { } pub unsafe fn GetUnknown(&self, guidkey: *const ::windows_core::GUID) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.GetUnknown)(::windows_core::Interface::as_raw(self), guidkey, &T::IID, &mut result__).from_abi(result__) @@ -7203,13 +6784,6 @@ impl IMFASFProfile { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFASFProfile, ::windows_core::IUnknown, IMFAttributes); -unsafe impl ::windows_core::Interface for IMFASFProfile { - type Vtable = IMFASFProfile_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFASFProfile { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd267bf6a_028b_4e0d_903d_43f0ef82d0d4); -} #[repr(C)] #[doc(hidden)] pub struct IMFASFProfile_Vtbl { @@ -7231,9 +6805,8 @@ pub struct IMFASFProfile_Vtbl { pub CreateStreamPrioritization: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppistreamprioritization: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppiprofile: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFASFSplitter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFASFSplitter, IMFASFSplitter_Vtbl, 0x12558295_e399_11d5_bc2a_00b0d0f3f4ab); +::windows_core::imp::interface_hierarchy!(IMFASFSplitter, ::windows_core::IUnknown); impl IMFASFSplitter { pub unsafe fn Initialize(&self, picontentinfo: P0) -> ::windows_core::Result<()> where @@ -7271,13 +6844,6 @@ impl IMFASFSplitter { (::windows_core::Interface::vtable(self).GetLastSendTime)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFASFSplitter, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFASFSplitter { - type Vtable = IMFASFSplitter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFASFSplitter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x12558295_e399_11d5_bc2a_00b0d0f3f4ab); -} #[repr(C)] #[doc(hidden)] pub struct IMFASFSplitter_Vtbl { @@ -7292,9 +6858,8 @@ pub struct IMFASFSplitter_Vtbl { pub Flush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetLastSendTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwlastsendtime: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFASFStreamConfig(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFASFStreamConfig, IMFASFStreamConfig_Vtbl, 0x9e8ae8d2_dbbd_4200_9aca_06e6df484913); +::windows_core::imp::interface_hierarchy!(IMFASFStreamConfig, ::windows_core::IUnknown, IMFAttributes); impl IMFASFStreamConfig { #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] @@ -7356,7 +6921,7 @@ impl IMFASFStreamConfig { } pub unsafe fn GetUnknown(&self, guidkey: *const ::windows_core::GUID) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.GetUnknown)(::windows_core::Interface::as_raw(self), guidkey, &T::IID, &mut result__).from_abi(result__) @@ -7458,13 +7023,6 @@ impl IMFASFStreamConfig { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFASFStreamConfig, ::windows_core::IUnknown, IMFAttributes); -unsafe impl ::windows_core::Interface for IMFASFStreamConfig { - type Vtable = IMFASFStreamConfig_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFASFStreamConfig { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9e8ae8d2_dbbd_4200_9aca_06e6df484913); -} #[repr(C)] #[doc(hidden)] pub struct IMFASFStreamConfig_Vtbl { @@ -7480,9 +7038,8 @@ pub struct IMFASFStreamConfig_Vtbl { pub RemoveAllPayloadExtensions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppistreamconfig: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFASFStreamPrioritization(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFASFStreamPrioritization, IMFASFStreamPrioritization_Vtbl, 0x699bdc27_bbaf_49ff_8e38_9c39c9b5e088); +::windows_core::imp::interface_hierarchy!(IMFASFStreamPrioritization, ::windows_core::IUnknown); impl IMFASFStreamPrioritization { pub unsafe fn GetStreamCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -7502,13 +7059,6 @@ impl IMFASFStreamPrioritization { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFASFStreamPrioritization, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFASFStreamPrioritization { - type Vtable = IMFASFStreamPrioritization_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFASFStreamPrioritization { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x699bdc27_bbaf_49ff_8e38_9c39c9b5e088); -} #[repr(C)] #[doc(hidden)] pub struct IMFASFStreamPrioritization_Vtbl { @@ -7519,9 +7069,8 @@ pub struct IMFASFStreamPrioritization_Vtbl { pub RemoveStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwstreamindex: u32) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppistreamprioritization: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFASFStreamSelector(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFASFStreamSelector, IMFASFStreamSelector_Vtbl, 0xd01bad4a_4fa0_4a60_9349_c27e62da9d41); +::windows_core::imp::interface_hierarchy!(IMFASFStreamSelector, ::windows_core::IUnknown); impl IMFASFStreamSelector { pub unsafe fn GetStreamCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -7576,13 +7125,6 @@ impl IMFASFStreamSelector { (::windows_core::Interface::vtable(self).SetStreamSelectorFlags)(::windows_core::Interface::as_raw(self), dwstreamselectorflags).ok() } } -::windows_core::imp::interface_hierarchy!(IMFASFStreamSelector, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFASFStreamSelector { - type Vtable = IMFASFStreamSelector_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFASFStreamSelector { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd01bad4a_4fa0_4a60_9349_c27e62da9d41); -} #[repr(C)] #[doc(hidden)] pub struct IMFASFStreamSelector_Vtbl { @@ -7602,9 +7144,8 @@ pub struct IMFASFStreamSelector_Vtbl { pub BitrateToStepNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwbitrate: u32, pdwstepnum: *mut u32) -> ::windows_core::HRESULT, pub SetStreamSelectorFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwstreamselectorflags: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFActivate(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFActivate, IMFActivate_Vtbl, 0x7fee9e9a_4a89_47a6_899c_b6a53a70fb67); +::windows_core::imp::interface_hierarchy!(IMFActivate, ::windows_core::IUnknown, IMFAttributes); impl IMFActivate { #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] @@ -7666,7 +7207,7 @@ impl IMFActivate { } pub unsafe fn GetUnknown(&self, guidkey: *const ::windows_core::GUID) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.GetUnknown)(::windows_core::Interface::as_raw(self), guidkey, &T::IID, &mut result__).from_abi(result__) @@ -7732,7 +7273,7 @@ impl IMFActivate { } pub unsafe fn ActivateObject(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).ActivateObject)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -7744,13 +7285,6 @@ impl IMFActivate { (::windows_core::Interface::vtable(self).DetachObject)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IMFActivate, ::windows_core::IUnknown, IMFAttributes); -unsafe impl ::windows_core::Interface for IMFActivate { - type Vtable = IMFActivate_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFActivate { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7fee9e9a_4a89_47a6_899c_b6a53a70fb67); -} #[repr(C)] #[doc(hidden)] pub struct IMFActivate_Vtbl { @@ -7759,9 +7293,8 @@ pub struct IMFActivate_Vtbl { pub ShutdownObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub DetachObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFAsyncCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFAsyncCallback, IMFAsyncCallback_Vtbl, 0xa27003cf_2354_4f2a_8d6a_ab7cff15437e); +::windows_core::imp::interface_hierarchy!(IMFAsyncCallback, ::windows_core::IUnknown); impl IMFAsyncCallback { pub unsafe fn GetParameters(&self, pdwflags: *mut u32, pdwqueue: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetParameters)(::windows_core::Interface::as_raw(self), pdwflags, pdwqueue).ok() @@ -7773,13 +7306,6 @@ impl IMFAsyncCallback { (::windows_core::Interface::vtable(self).Invoke)(::windows_core::Interface::as_raw(self), pasyncresult.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMFAsyncCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFAsyncCallback { - type Vtable = IMFAsyncCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFAsyncCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa27003cf_2354_4f2a_8d6a_ab7cff15437e); -} #[repr(C)] #[doc(hidden)] pub struct IMFAsyncCallback_Vtbl { @@ -7787,9 +7313,8 @@ pub struct IMFAsyncCallback_Vtbl { pub GetParameters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwflags: *mut u32, pdwqueue: *mut u32) -> ::windows_core::HRESULT, pub Invoke: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pasyncresult: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFAsyncCallbackLogging(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFAsyncCallbackLogging, IMFAsyncCallbackLogging_Vtbl, 0xc7a4dca1_f5f0_47b6_b92b_bf0106d25791); +::windows_core::imp::interface_hierarchy!(IMFAsyncCallbackLogging, ::windows_core::IUnknown, IMFAsyncCallback); impl IMFAsyncCallbackLogging { pub unsafe fn GetParameters(&self, pdwflags: *mut u32, pdwqueue: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.GetParameters)(::windows_core::Interface::as_raw(self), pdwflags, pdwqueue).ok() @@ -7807,13 +7332,6 @@ impl IMFAsyncCallbackLogging { (::windows_core::Interface::vtable(self).GetObjectTag)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(IMFAsyncCallbackLogging, ::windows_core::IUnknown, IMFAsyncCallback); -unsafe impl ::windows_core::Interface for IMFAsyncCallbackLogging { - type Vtable = IMFAsyncCallbackLogging_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFAsyncCallbackLogging { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc7a4dca1_f5f0_47b6_b92b_bf0106d25791); -} #[repr(C)] #[doc(hidden)] pub struct IMFAsyncCallbackLogging_Vtbl { @@ -7821,9 +7339,8 @@ pub struct IMFAsyncCallbackLogging_Vtbl { pub GetObjectPointer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> *mut ::core::ffi::c_void, pub GetObjectTag: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> u32, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFAsyncResult(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFAsyncResult, IMFAsyncResult_Vtbl, 0xac6b7889_0740_4d51_8619_905994a55cc6); +::windows_core::imp::interface_hierarchy!(IMFAsyncResult, ::windows_core::IUnknown); impl IMFAsyncResult { pub unsafe fn GetState(&self) -> ::windows_core::Result<::windows_core::IUnknown> { let mut result__ = ::std::mem::zeroed(); @@ -7843,13 +7360,6 @@ impl IMFAsyncResult { (::windows_core::Interface::vtable(self).GetStateNoAddRef)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(IMFAsyncResult, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFAsyncResult { - type Vtable = IMFAsyncResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFAsyncResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xac6b7889_0740_4d51_8619_905994a55cc6); -} #[repr(C)] #[doc(hidden)] pub struct IMFAsyncResult_Vtbl { @@ -7860,9 +7370,8 @@ pub struct IMFAsyncResult_Vtbl { pub GetObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppobject: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetStateNoAddRef: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::core::option::Option<::windows_core::IUnknown>, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFAttributes(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFAttributes, IMFAttributes_Vtbl, 0x2cd2d921_c447_44a7_a13c_4adabfc247e3); +::windows_core::imp::interface_hierarchy!(IMFAttributes, ::windows_core::IUnknown); impl IMFAttributes { #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] @@ -7924,7 +7433,7 @@ impl IMFAttributes { } pub unsafe fn GetUnknown(&self, guidkey: *const ::windows_core::GUID) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetUnknown)(::windows_core::Interface::as_raw(self), guidkey, &T::IID, &mut result__).from_abi(result__) @@ -7989,13 +7498,6 @@ impl IMFAttributes { (::windows_core::Interface::vtable(self).CopyAllItems)(::windows_core::Interface::as_raw(self), pdest.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMFAttributes, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFAttributes { - type Vtable = IMFAttributes_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFAttributes { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2cd2d921_c447_44a7_a13c_4adabfc247e3); -} #[repr(C)] #[doc(hidden)] pub struct IMFAttributes_Vtbl { @@ -8043,9 +7545,8 @@ pub struct IMFAttributes_Vtbl { GetItemByIndex: usize, pub CopyAllItems: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdest: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFAudioMediaType(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFAudioMediaType, IMFAudioMediaType_Vtbl, 0x26a0adc3_ce26_4672_9304_69552edd3faf); +::windows_core::imp::interface_hierarchy!(IMFAudioMediaType, ::windows_core::IUnknown, IMFAttributes, IMFMediaType); impl IMFAudioMediaType { #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] @@ -8107,7 +7608,7 @@ impl IMFAudioMediaType { } pub unsafe fn GetUnknown(&self, guidkey: *const ::windows_core::GUID) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.GetUnknown)(::windows_core::Interface::as_raw(self), guidkey, &T::IID, &mut result__).from_abi(result__) @@ -8198,13 +7699,6 @@ impl IMFAudioMediaType { (::windows_core::Interface::vtable(self).GetAudioFormat)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(IMFAudioMediaType, ::windows_core::IUnknown, IMFAttributes, IMFMediaType); -unsafe impl ::windows_core::Interface for IMFAudioMediaType { - type Vtable = IMFAudioMediaType_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFAudioMediaType { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x26a0adc3_ce26_4672_9304_69552edd3faf); -} #[repr(C)] #[doc(hidden)] pub struct IMFAudioMediaType_Vtbl { @@ -8214,9 +7708,8 @@ pub struct IMFAudioMediaType_Vtbl { #[cfg(not(feature = "Win32_Media_Audio"))] GetAudioFormat: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFAudioPolicy(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFAudioPolicy, IMFAudioPolicy_Vtbl, 0xa0638c2b_6465_4395_9ae7_a321a9fd2856); +::windows_core::imp::interface_hierarchy!(IMFAudioPolicy, ::windows_core::IUnknown); impl IMFAudioPolicy { pub unsafe fn SetGroupingParam(&self, rguidclass: *const ::windows_core::GUID) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetGroupingParam)(::windows_core::Interface::as_raw(self), rguidclass).ok() @@ -8246,13 +7739,6 @@ impl IMFAudioPolicy { (::windows_core::Interface::vtable(self).GetIconPath)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFAudioPolicy, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFAudioPolicy { - type Vtable = IMFAudioPolicy_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFAudioPolicy { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa0638c2b_6465_4395_9ae7_a321a9fd2856); -} #[repr(C)] #[doc(hidden)] pub struct IMFAudioPolicy_Vtbl { @@ -8264,9 +7750,8 @@ pub struct IMFAudioPolicy_Vtbl { pub SetIconPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszpath: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub GetIconPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszpath: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFAudioStreamVolume(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFAudioStreamVolume, IMFAudioStreamVolume_Vtbl, 0x76b1bbdb_4ec8_4f36_b106_70a9316df593); +::windows_core::imp::interface_hierarchy!(IMFAudioStreamVolume, ::windows_core::IUnknown); impl IMFAudioStreamVolume { pub unsafe fn GetChannelCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -8286,13 +7771,6 @@ impl IMFAudioStreamVolume { (::windows_core::Interface::vtable(self).GetAllVolumes)(::windows_core::Interface::as_raw(self), pfvolumes.len().try_into().unwrap(), ::core::mem::transmute(pfvolumes.as_ptr())).ok() } } -::windows_core::imp::interface_hierarchy!(IMFAudioStreamVolume, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFAudioStreamVolume { - type Vtable = IMFAudioStreamVolume_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFAudioStreamVolume { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x76b1bbdb_4ec8_4f36_b106_70a9316df593); -} #[repr(C)] #[doc(hidden)] pub struct IMFAudioStreamVolume_Vtbl { @@ -8303,9 +7781,8 @@ pub struct IMFAudioStreamVolume_Vtbl { pub SetAllVolumes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwcount: u32, pfvolumes: *const f32) -> ::windows_core::HRESULT, pub GetAllVolumes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwcount: u32, pfvolumes: *mut f32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFBufferListNotify(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFBufferListNotify, IMFBufferListNotify_Vtbl, 0x24cd47f7_81d8_4785_adb2_af697a963cd2); +::windows_core::imp::interface_hierarchy!(IMFBufferListNotify, ::windows_core::IUnknown); impl IMFBufferListNotify { pub unsafe fn OnAddSourceBuffer(&self) { (::windows_core::Interface::vtable(self).OnAddSourceBuffer)(::windows_core::Interface::as_raw(self)) @@ -8314,13 +7791,6 @@ impl IMFBufferListNotify { (::windows_core::Interface::vtable(self).OnRemoveSourceBuffer)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(IMFBufferListNotify, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFBufferListNotify { - type Vtable = IMFBufferListNotify_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFBufferListNotify { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x24cd47f7_81d8_4785_adb2_af697a963cd2); -} #[repr(C)] #[doc(hidden)] pub struct IMFBufferListNotify_Vtbl { @@ -8328,9 +7798,8 @@ pub struct IMFBufferListNotify_Vtbl { pub OnAddSourceBuffer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), pub OnRemoveSourceBuffer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFByteStream(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFByteStream, IMFByteStream_Vtbl, 0xad4c1b00_4bf7_422f_9175_756693d9130d); +::windows_core::imp::interface_hierarchy!(IMFByteStream, ::windows_core::IUnknown); impl IMFByteStream { pub unsafe fn GetCapabilities(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -8400,13 +7869,6 @@ impl IMFByteStream { (::windows_core::Interface::vtable(self).Close)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IMFByteStream, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFByteStream { - type Vtable = IMFByteStream_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFByteStream { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xad4c1b00_4bf7_422f_9175_756693d9130d); -} #[repr(C)] #[doc(hidden)] pub struct IMFByteStream_Vtbl { @@ -8427,9 +7889,8 @@ pub struct IMFByteStream_Vtbl { pub Flush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Close: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFByteStreamBuffering(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFByteStreamBuffering, IMFByteStreamBuffering_Vtbl, 0x6d66d782_1d4f_4db7_8c63_cb8c77f1ef5e); +::windows_core::imp::interface_hierarchy!(IMFByteStreamBuffering, ::windows_core::IUnknown); impl IMFByteStreamBuffering { pub unsafe fn SetBufferingParams(&self, pparams: *const MFBYTESTREAM_BUFFERING_PARAMS) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetBufferingParams)(::windows_core::Interface::as_raw(self), pparams).ok() @@ -8444,13 +7905,6 @@ impl IMFByteStreamBuffering { (::windows_core::Interface::vtable(self).StopBuffering)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IMFByteStreamBuffering, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFByteStreamBuffering { - type Vtable = IMFByteStreamBuffering_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFByteStreamBuffering { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6d66d782_1d4f_4db7_8c63_cb8c77f1ef5e); -} #[repr(C)] #[doc(hidden)] pub struct IMFByteStreamBuffering_Vtbl { @@ -8459,30 +7913,21 @@ pub struct IMFByteStreamBuffering_Vtbl { pub EnableBuffering: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub StopBuffering: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFByteStreamCacheControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFByteStreamCacheControl, IMFByteStreamCacheControl_Vtbl, 0xf5042ea4_7a96_4a75_aa7b_2be1ef7f88d5); +::windows_core::imp::interface_hierarchy!(IMFByteStreamCacheControl, ::windows_core::IUnknown); impl IMFByteStreamCacheControl { pub unsafe fn StopBackgroundTransfer(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).StopBackgroundTransfer)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IMFByteStreamCacheControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFByteStreamCacheControl { - type Vtable = IMFByteStreamCacheControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFByteStreamCacheControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf5042ea4_7a96_4a75_aa7b_2be1ef7f88d5); -} #[repr(C)] #[doc(hidden)] pub struct IMFByteStreamCacheControl_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub StopBackgroundTransfer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFByteStreamCacheControl2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFByteStreamCacheControl2, IMFByteStreamCacheControl2_Vtbl, 0x71ce469c_f34b_49ea_a56b_2d2a10e51149); +::windows_core::imp::interface_hierarchy!(IMFByteStreamCacheControl2, ::windows_core::IUnknown, IMFByteStreamCacheControl); impl IMFByteStreamCacheControl2 { pub unsafe fn StopBackgroundTransfer(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.StopBackgroundTransfer)(::windows_core::Interface::as_raw(self)).ok() @@ -8498,13 +7943,6 @@ impl IMFByteStreamCacheControl2 { (::windows_core::Interface::vtable(self).IsBackgroundTransferActive)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFByteStreamCacheControl2, ::windows_core::IUnknown, IMFByteStreamCacheControl); -unsafe impl ::windows_core::Interface for IMFByteStreamCacheControl2 { - type Vtable = IMFByteStreamCacheControl2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFByteStreamCacheControl2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x71ce469c_f34b_49ea_a56b_2d2a10e51149); -} #[repr(C)] #[doc(hidden)] pub struct IMFByteStreamCacheControl2_Vtbl { @@ -8513,9 +7951,8 @@ pub struct IMFByteStreamCacheControl2_Vtbl { pub SetCacheLimit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, qwbytes: u64) -> ::windows_core::HRESULT, pub IsBackgroundTransferActive: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfactive: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFByteStreamHandler(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFByteStreamHandler, IMFByteStreamHandler_Vtbl, 0xbb420aa4_765b_4a1f_91fe_d6a8a143924c); +::windows_core::imp::interface_hierarchy!(IMFByteStreamHandler, ::windows_core::IUnknown); impl IMFByteStreamHandler { #[doc = "Required features: `\"Win32_UI_Shell_PropertiesSystem\"`"] #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] @@ -8546,13 +7983,6 @@ impl IMFByteStreamHandler { (::windows_core::Interface::vtable(self).GetMaxNumberOfBytesRequiredForResolution)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFByteStreamHandler, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFByteStreamHandler { - type Vtable = IMFByteStreamHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFByteStreamHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbb420aa4_765b_4a1f_91fe_d6a8a143924c); -} #[repr(C)] #[doc(hidden)] pub struct IMFByteStreamHandler_Vtbl { @@ -8565,36 +7995,27 @@ pub struct IMFByteStreamHandler_Vtbl { pub CancelObjectCreation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, piunknowncancelcookie: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetMaxNumberOfBytesRequiredForResolution: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pqwbytes: *mut u64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFByteStreamProxyClassFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFByteStreamProxyClassFactory, IMFByteStreamProxyClassFactory_Vtbl, 0xa6b43f84_5c0a_42e8_a44d_b1857a76992f); +::windows_core::imp::interface_hierarchy!(IMFByteStreamProxyClassFactory, ::windows_core::IUnknown); impl IMFByteStreamProxyClassFactory { pub unsafe fn CreateByteStreamProxy(&self, pbytestream: P0, pattributes: P1) -> ::windows_core::Result where P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFByteStreamProxyClassFactory, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFByteStreamProxyClassFactory { - type Vtable = IMFByteStreamProxyClassFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFByteStreamProxyClassFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa6b43f84_5c0a_42e8_a44d_b1857a76992f); -} #[repr(C)] #[doc(hidden)] pub struct IMFByteStreamProxyClassFactory_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub CreateByteStreamProxy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbytestream: *mut ::core::ffi::c_void, pattributes: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppvobject: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFByteStreamTimeSeek(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFByteStreamTimeSeek, IMFByteStreamTimeSeek_Vtbl, 0x64976bfa_fb61_4041_9069_8c9a5f659beb); +::windows_core::imp::interface_hierarchy!(IMFByteStreamTimeSeek, ::windows_core::IUnknown); impl IMFByteStreamTimeSeek { pub unsafe fn IsTimeSeekSupported(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -8607,13 +8028,6 @@ impl IMFByteStreamTimeSeek { (::windows_core::Interface::vtable(self).GetTimeSeekResult)(::windows_core::Interface::as_raw(self), pqwstarttime, pqwstoptime, pqwduration).ok() } } -::windows_core::imp::interface_hierarchy!(IMFByteStreamTimeSeek, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFByteStreamTimeSeek { - type Vtable = IMFByteStreamTimeSeek_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFByteStreamTimeSeek { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x64976bfa_fb61_4041_9069_8c9a5f659beb); -} #[repr(C)] #[doc(hidden)] pub struct IMFByteStreamTimeSeek_Vtbl { @@ -8622,9 +8036,8 @@ pub struct IMFByteStreamTimeSeek_Vtbl { pub TimeSeek: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, qwtimeposition: u64) -> ::windows_core::HRESULT, pub GetTimeSeekResult: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pqwstarttime: *mut u64, pqwstoptime: *mut u64, pqwduration: *mut u64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFCameraConfigurationManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFCameraConfigurationManager, IMFCameraConfigurationManager_Vtbl, 0xa624f617_4704_4206_8a6d_ebda4a093985); +::windows_core::imp::interface_hierarchy!(IMFCameraConfigurationManager, ::windows_core::IUnknown); impl IMFCameraConfigurationManager { pub unsafe fn LoadDefaults(&self, cameraattributes: P0) -> ::windows_core::Result where @@ -8643,13 +8056,6 @@ impl IMFCameraConfigurationManager { (::windows_core::Interface::vtable(self).Shutdown)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(IMFCameraConfigurationManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFCameraConfigurationManager { - type Vtable = IMFCameraConfigurationManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFCameraConfigurationManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa624f617_4704_4206_8a6d_ebda4a093985); -} #[repr(C)] #[doc(hidden)] pub struct IMFCameraConfigurationManager_Vtbl { @@ -8658,9 +8064,8 @@ pub struct IMFCameraConfigurationManager_Vtbl { pub SaveDefaults: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, configurations: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Shutdown: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFCameraControlDefaults(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFCameraControlDefaults, IMFCameraControlDefaults_Vtbl, 0x75510662_b034_48f4_88a7_8de61daa4af9); +::windows_core::imp::interface_hierarchy!(IMFCameraControlDefaults, ::windows_core::IUnknown); impl IMFCameraControlDefaults { pub unsafe fn GetType(&self) -> MF_CAMERA_CONTROL_CONFIGURATION_TYPE { (::windows_core::Interface::vtable(self).GetType)(::windows_core::Interface::as_raw(self)) @@ -8676,13 +8081,6 @@ impl IMFCameraControlDefaults { (::windows_core::Interface::vtable(self).UnlockControlData)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IMFCameraControlDefaults, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFCameraControlDefaults { - type Vtable = IMFCameraControlDefaults_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFCameraControlDefaults { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x75510662_b034_48f4_88a7_8de61daa4af9); -} #[repr(C)] #[doc(hidden)] pub struct IMFCameraControlDefaults_Vtbl { @@ -8692,9 +8090,8 @@ pub struct IMFCameraControlDefaults_Vtbl { pub LockControlData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, control: *mut *mut ::core::ffi::c_void, controlsize: *mut u32, data: *mut *mut ::core::ffi::c_void, datasize: *mut u32) -> ::windows_core::HRESULT, pub UnlockControlData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFCameraControlDefaultsCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFCameraControlDefaultsCollection, IMFCameraControlDefaultsCollection_Vtbl, 0x92d43d0f_54a8_4bae_96da_356d259a5c26); +::windows_core::imp::interface_hierarchy!(IMFCameraControlDefaultsCollection, ::windows_core::IUnknown, IMFAttributes); impl IMFCameraControlDefaultsCollection { #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] @@ -8756,7 +8153,7 @@ impl IMFCameraControlDefaultsCollection { } pub unsafe fn GetUnknown(&self, guidkey: *const ::windows_core::GUID) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.GetUnknown)(::windows_core::Interface::as_raw(self), guidkey, &T::IID, &mut result__).from_abi(result__) @@ -8842,13 +8239,6 @@ impl IMFCameraControlDefaultsCollection { (::windows_core::Interface::vtable(self).RemoveAllControls)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IMFCameraControlDefaultsCollection, ::windows_core::IUnknown, IMFAttributes); -unsafe impl ::windows_core::Interface for IMFCameraControlDefaultsCollection { - type Vtable = IMFCameraControlDefaultsCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFCameraControlDefaultsCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x92d43d0f_54a8_4bae_96da_356d259a5c26); -} #[repr(C)] #[doc(hidden)] pub struct IMFCameraControlDefaultsCollection_Vtbl { @@ -8860,9 +8250,8 @@ pub struct IMFCameraControlDefaultsCollection_Vtbl { pub RemoveControl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, controlset: *const ::windows_core::GUID, constrolid: u32) -> ::windows_core::HRESULT, pub RemoveAllControls: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFCameraControlMonitor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFCameraControlMonitor, IMFCameraControlMonitor_Vtbl, 0x4d46f2c9_28ba_4970_8c7b_1f0c9d80af69); +::windows_core::imp::interface_hierarchy!(IMFCameraControlMonitor, ::windows_core::IUnknown); impl IMFCameraControlMonitor { pub unsafe fn Start(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Start)(::windows_core::Interface::as_raw(self)).ok() @@ -8880,13 +8269,6 @@ impl IMFCameraControlMonitor { (::windows_core::Interface::vtable(self).Shutdown)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(IMFCameraControlMonitor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFCameraControlMonitor { - type Vtable = IMFCameraControlMonitor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFCameraControlMonitor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4d46f2c9_28ba_4970_8c7b_1f0c9d80af69); -} #[repr(C)] #[doc(hidden)] pub struct IMFCameraControlMonitor_Vtbl { @@ -8897,9 +8279,8 @@ pub struct IMFCameraControlMonitor_Vtbl { pub RemoveControlSubscription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, controlset: ::windows_core::GUID, id: u32) -> ::windows_core::HRESULT, pub Shutdown: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFCameraControlNotify(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFCameraControlNotify, IMFCameraControlNotify_Vtbl, 0xe8f2540d_558a_4449_8b64_4863467a9fe8); +::windows_core::imp::interface_hierarchy!(IMFCameraControlNotify, ::windows_core::IUnknown); impl IMFCameraControlNotify { pub unsafe fn OnChange(&self, controlset: *const ::windows_core::GUID, id: u32) { (::windows_core::Interface::vtable(self).OnChange)(::windows_core::Interface::as_raw(self), controlset, id) @@ -8908,13 +8289,6 @@ impl IMFCameraControlNotify { (::windows_core::Interface::vtable(self).OnError)(::windows_core::Interface::as_raw(self), hrstatus) } } -::windows_core::imp::interface_hierarchy!(IMFCameraControlNotify, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFCameraControlNotify { - type Vtable = IMFCameraControlNotify_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFCameraControlNotify { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe8f2540d_558a_4449_8b64_4863467a9fe8); -} #[repr(C)] #[doc(hidden)] pub struct IMFCameraControlNotify_Vtbl { @@ -8922,9 +8296,8 @@ pub struct IMFCameraControlNotify_Vtbl { pub OnChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, controlset: *const ::windows_core::GUID, id: u32), pub OnError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hrstatus: ::windows_core::HRESULT), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFCameraOcclusionStateMonitor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFCameraOcclusionStateMonitor, IMFCameraOcclusionStateMonitor_Vtbl, 0xcc692f46_c697_47e2_a72d_7b064617749b); +::windows_core::imp::interface_hierarchy!(IMFCameraOcclusionStateMonitor, ::windows_core::IUnknown); impl IMFCameraOcclusionStateMonitor { pub unsafe fn Start(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Start)(::windows_core::Interface::as_raw(self)).ok() @@ -8936,13 +8309,6 @@ impl IMFCameraOcclusionStateMonitor { (::windows_core::Interface::vtable(self).GetSupportedStates)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(IMFCameraOcclusionStateMonitor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFCameraOcclusionStateMonitor { - type Vtable = IMFCameraOcclusionStateMonitor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFCameraOcclusionStateMonitor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcc692f46_c697_47e2_a72d_7b064617749b); -} #[repr(C)] #[doc(hidden)] pub struct IMFCameraOcclusionStateMonitor_Vtbl { @@ -8951,31 +8317,22 @@ pub struct IMFCameraOcclusionStateMonitor_Vtbl { pub Stop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetSupportedStates: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> u32, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFCameraOcclusionStateReport(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFCameraOcclusionStateReport, IMFCameraOcclusionStateReport_Vtbl, 0x1640b2cf_74da_4462_a43b_b76d3bdc1434); +::windows_core::imp::interface_hierarchy!(IMFCameraOcclusionStateReport, ::windows_core::IUnknown); impl IMFCameraOcclusionStateReport { pub unsafe fn GetOcclusionState(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetOcclusionState)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFCameraOcclusionStateReport, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFCameraOcclusionStateReport { - type Vtable = IMFCameraOcclusionStateReport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFCameraOcclusionStateReport { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1640b2cf_74da_4462_a43b_b76d3bdc1434); -} #[repr(C)] #[doc(hidden)] pub struct IMFCameraOcclusionStateReport_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetOcclusionState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, occlusionstate: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFCameraOcclusionStateReportCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFCameraOcclusionStateReportCallback, IMFCameraOcclusionStateReportCallback_Vtbl, 0x6e5841c7_3889_4019_9035_783fb19b5948); +::windows_core::imp::interface_hierarchy!(IMFCameraOcclusionStateReportCallback, ::windows_core::IUnknown); impl IMFCameraOcclusionStateReportCallback { pub unsafe fn OnOcclusionStateReport(&self, occlusionstatereport: P0) -> ::windows_core::Result<()> where @@ -8984,22 +8341,14 @@ impl IMFCameraOcclusionStateReportCallback { (::windows_core::Interface::vtable(self).OnOcclusionStateReport)(::windows_core::Interface::as_raw(self), occlusionstatereport.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMFCameraOcclusionStateReportCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFCameraOcclusionStateReportCallback { - type Vtable = IMFCameraOcclusionStateReportCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFCameraOcclusionStateReportCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6e5841c7_3889_4019_9035_783fb19b5948); -} #[repr(C)] #[doc(hidden)] pub struct IMFCameraOcclusionStateReportCallback_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnOcclusionStateReport: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, occlusionstatereport: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFCameraSyncObject(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFCameraSyncObject, IMFCameraSyncObject_Vtbl, 0x6338b23a_3042_49d2_a3ea_ec0fed815407); +::windows_core::imp::interface_hierarchy!(IMFCameraSyncObject, ::windows_core::IUnknown); impl IMFCameraSyncObject { pub unsafe fn WaitOnSignal(&self, timeoutinms: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).WaitOnSignal)(::windows_core::Interface::as_raw(self), timeoutinms).ok() @@ -9008,13 +8357,6 @@ impl IMFCameraSyncObject { (::windows_core::Interface::vtable(self).Shutdown)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(IMFCameraSyncObject, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFCameraSyncObject { - type Vtable = IMFCameraSyncObject_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFCameraSyncObject { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6338b23a_3042_49d2_a3ea_ec0fed815407); -} #[repr(C)] #[doc(hidden)] pub struct IMFCameraSyncObject_Vtbl { @@ -9022,9 +8364,8 @@ pub struct IMFCameraSyncObject_Vtbl { pub WaitOnSignal: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, timeoutinms: u32) -> ::windows_core::HRESULT, pub Shutdown: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFCaptureEngine(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFCaptureEngine, IMFCaptureEngine_Vtbl, 0xa6bba433_176b_48b2_b375_53aa03473207); +::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 @@ -9063,13 +8404,6 @@ impl IMFCaptureEngine { (::windows_core::Interface::vtable(self).GetSource)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFCaptureEngine, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFCaptureEngine { - type Vtable = IMFCaptureEngine_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFCaptureEngine { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa6bba433_176b_48b2_b375_53aa03473207); -} #[repr(C)] #[doc(hidden)] pub struct IMFCaptureEngine_Vtbl { @@ -9083,34 +8417,25 @@ pub struct IMFCaptureEngine_Vtbl { pub GetSink: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mfcaptureenginesinktype: MF_CAPTURE_ENGINE_SINK_TYPE, ppsink: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetSource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppsource: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFCaptureEngineClassFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFCaptureEngineClassFactory, IMFCaptureEngineClassFactory_Vtbl, 0x8f02d140_56fc_4302_a705_3a97c78be779); +::windows_core::imp::interface_hierarchy!(IMFCaptureEngineClassFactory, ::windows_core::IUnknown); impl IMFCaptureEngineClassFactory { pub unsafe fn CreateInstance(&self, clsid: *const ::windows_core::GUID) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).CreateInstance)(::windows_core::Interface::as_raw(self), clsid, &T::IID, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFCaptureEngineClassFactory, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFCaptureEngineClassFactory { - type Vtable = IMFCaptureEngineClassFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFCaptureEngineClassFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8f02d140_56fc_4302_a705_3a97c78be779); -} #[repr(C)] #[doc(hidden)] pub struct IMFCaptureEngineClassFactory_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, clsid: *const ::windows_core::GUID, riid: *const ::windows_core::GUID, ppvobject: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFCaptureEngineOnEventCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFCaptureEngineOnEventCallback, IMFCaptureEngineOnEventCallback_Vtbl, 0xaeda51c0_9025_4983_9012_de597b88b089); +::windows_core::imp::interface_hierarchy!(IMFCaptureEngineOnEventCallback, ::windows_core::IUnknown); impl IMFCaptureEngineOnEventCallback { pub unsafe fn OnEvent(&self, pevent: P0) -> ::windows_core::Result<()> where @@ -9119,22 +8444,14 @@ impl IMFCaptureEngineOnEventCallback { (::windows_core::Interface::vtable(self).OnEvent)(::windows_core::Interface::as_raw(self), pevent.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMFCaptureEngineOnEventCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFCaptureEngineOnEventCallback { - type Vtable = IMFCaptureEngineOnEventCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFCaptureEngineOnEventCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaeda51c0_9025_4983_9012_de597b88b089); -} #[repr(C)] #[doc(hidden)] pub struct IMFCaptureEngineOnEventCallback_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pevent: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFCaptureEngineOnSampleCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFCaptureEngineOnSampleCallback, IMFCaptureEngineOnSampleCallback_Vtbl, 0x52150b82_ab39_4467_980f_e48bf0822ecd); +::windows_core::imp::interface_hierarchy!(IMFCaptureEngineOnSampleCallback, ::windows_core::IUnknown); impl IMFCaptureEngineOnSampleCallback { pub unsafe fn OnSample(&self, psample: P0) -> ::windows_core::Result<()> where @@ -9143,22 +8460,14 @@ impl IMFCaptureEngineOnSampleCallback { (::windows_core::Interface::vtable(self).OnSample)(::windows_core::Interface::as_raw(self), psample.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMFCaptureEngineOnSampleCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFCaptureEngineOnSampleCallback { - type Vtable = IMFCaptureEngineOnSampleCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFCaptureEngineOnSampleCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x52150b82_ab39_4467_980f_e48bf0822ecd); -} #[repr(C)] #[doc(hidden)] pub struct IMFCaptureEngineOnSampleCallback_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnSample: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psample: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFCaptureEngineOnSampleCallback2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFCaptureEngineOnSampleCallback2, IMFCaptureEngineOnSampleCallback2_Vtbl, 0xe37ceed7_340f_4514_9f4d_9c2ae026100b); +::windows_core::imp::interface_hierarchy!(IMFCaptureEngineOnSampleCallback2, ::windows_core::IUnknown, IMFCaptureEngineOnSampleCallback); impl IMFCaptureEngineOnSampleCallback2 { pub unsafe fn OnSample(&self, psample: P0) -> ::windows_core::Result<()> where @@ -9173,22 +8482,14 @@ impl IMFCaptureEngineOnSampleCallback2 { (::windows_core::Interface::vtable(self).OnSynchronizedEvent)(::windows_core::Interface::as_raw(self), pevent.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMFCaptureEngineOnSampleCallback2, ::windows_core::IUnknown, IMFCaptureEngineOnSampleCallback); -unsafe impl ::windows_core::Interface for IMFCaptureEngineOnSampleCallback2 { - type Vtable = IMFCaptureEngineOnSampleCallback2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFCaptureEngineOnSampleCallback2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe37ceed7_340f_4514_9f4d_9c2ae026100b); -} #[repr(C)] #[doc(hidden)] pub struct IMFCaptureEngineOnSampleCallback2_Vtbl { pub base__: IMFCaptureEngineOnSampleCallback_Vtbl, pub OnSynchronizedEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pevent: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFCapturePhotoConfirmation(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFCapturePhotoConfirmation, IMFCapturePhotoConfirmation_Vtbl, 0x19f68549_ca8a_4706_a4ef_481dbc95e12c); +::windows_core::imp::interface_hierarchy!(IMFCapturePhotoConfirmation, ::windows_core::IUnknown); impl IMFCapturePhotoConfirmation { pub unsafe fn SetPhotoConfirmationCallback(&self, pnotificationcallback: P0) -> ::windows_core::Result<()> where @@ -9204,13 +8505,6 @@ impl IMFCapturePhotoConfirmation { (::windows_core::Interface::vtable(self).GetPixelFormat)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFCapturePhotoConfirmation, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFCapturePhotoConfirmation { - type Vtable = IMFCapturePhotoConfirmation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFCapturePhotoConfirmation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x19f68549_ca8a_4706_a4ef_481dbc95e12c); -} #[repr(C)] #[doc(hidden)] pub struct IMFCapturePhotoConfirmation_Vtbl { @@ -9219,9 +8513,8 @@ pub struct IMFCapturePhotoConfirmation_Vtbl { pub SetPixelFormat: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, subtype: ::windows_core::GUID) -> ::windows_core::HRESULT, pub GetPixelFormat: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, subtype: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFCapturePhotoSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFCapturePhotoSink, IMFCapturePhotoSink_Vtbl, 0xd2d43cc8_48bb_4aa7_95db_10c06977e777); +::windows_core::imp::interface_hierarchy!(IMFCapturePhotoSink, ::windows_core::IUnknown, IMFCaptureSink); impl IMFCapturePhotoSink { pub unsafe fn GetOutputMediaType(&self, dwsinkstreamindex: u32, ppmediatype: ::core::option::Option<*mut ::core::option::Option>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.GetOutputMediaType)(::windows_core::Interface::as_raw(self), dwsinkstreamindex, ::core::mem::transmute(ppmediatype.unwrap_or(::std::ptr::null_mut()))).ok() @@ -9261,13 +8554,6 @@ impl IMFCapturePhotoSink { (::windows_core::Interface::vtable(self).SetOutputByteStream)(::windows_core::Interface::as_raw(self), pbytestream.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMFCapturePhotoSink, ::windows_core::IUnknown, IMFCaptureSink); -unsafe impl ::windows_core::Interface for IMFCapturePhotoSink { - type Vtable = IMFCapturePhotoSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFCapturePhotoSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd2d43cc8_48bb_4aa7_95db_10c06977e777); -} #[repr(C)] #[doc(hidden)] pub struct IMFCapturePhotoSink_Vtbl { @@ -9276,9 +8562,8 @@ pub struct IMFCapturePhotoSink_Vtbl { pub SetSampleCallback: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcallback: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetOutputByteStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbytestream: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFCapturePreviewSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFCapturePreviewSink, IMFCapturePreviewSink_Vtbl, 0x77346cfd_5b49_4d73_ace0_5b52a859f2e0); +::windows_core::imp::interface_hierarchy!(IMFCapturePreviewSink, ::windows_core::IUnknown, IMFCaptureSink); impl IMFCapturePreviewSink { pub unsafe fn GetOutputMediaType(&self, dwsinkstreamindex: u32, ppmediatype: ::core::option::Option<*mut ::core::option::Option>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.GetOutputMediaType)(::windows_core::Interface::as_raw(self), dwsinkstreamindex, ::core::mem::transmute(ppmediatype.unwrap_or(::std::ptr::null_mut()))).ok() @@ -9344,13 +8629,6 @@ impl IMFCapturePreviewSink { (::windows_core::Interface::vtable(self).SetCustomSink)(::windows_core::Interface::as_raw(self), pmediasink.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMFCapturePreviewSink, ::windows_core::IUnknown, IMFCaptureSink); -unsafe impl ::windows_core::Interface for IMFCapturePreviewSink { - type Vtable = IMFCapturePreviewSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFCapturePreviewSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x77346cfd_5b49_4d73_ace0_5b52a859f2e0); -} #[repr(C)] #[doc(hidden)] pub struct IMFCapturePreviewSink_Vtbl { @@ -9365,9 +8643,8 @@ pub struct IMFCapturePreviewSink_Vtbl { pub SetRotation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwstreamindex: u32, dwrotationvalue: u32) -> ::windows_core::HRESULT, pub SetCustomSink: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pmediasink: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFCaptureRecordSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFCaptureRecordSink, IMFCaptureRecordSink_Vtbl, 0x3323b55a_f92a_4fe2_8edc_e9bfc0634d77); +::windows_core::imp::interface_hierarchy!(IMFCaptureRecordSink, ::windows_core::IUnknown, IMFCaptureSink); impl IMFCaptureRecordSink { pub unsafe fn GetOutputMediaType(&self, dwsinkstreamindex: u32, ppmediatype: ::core::option::Option<*mut ::core::option::Option>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.GetOutputMediaType)(::windows_core::Interface::as_raw(self), dwsinkstreamindex, ::core::mem::transmute(ppmediatype.unwrap_or(::std::ptr::null_mut()))).ok() @@ -9420,13 +8697,6 @@ impl IMFCaptureRecordSink { (::windows_core::Interface::vtable(self).SetRotation)(::windows_core::Interface::as_raw(self), dwstreamindex, dwrotationvalue).ok() } } -::windows_core::imp::interface_hierarchy!(IMFCaptureRecordSink, ::windows_core::IUnknown, IMFCaptureSink); -unsafe impl ::windows_core::Interface for IMFCaptureRecordSink { - type Vtable = IMFCaptureRecordSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFCaptureRecordSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3323b55a_f92a_4fe2_8edc_e9bfc0634d77); -} #[repr(C)] #[doc(hidden)] pub struct IMFCaptureRecordSink_Vtbl { @@ -9438,9 +8708,8 @@ pub struct IMFCaptureRecordSink_Vtbl { pub GetRotation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwstreamindex: u32, pdwrotationvalue: *mut u32) -> ::windows_core::HRESULT, pub SetRotation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwstreamindex: u32, dwrotationvalue: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFCaptureSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFCaptureSink, IMFCaptureSink_Vtbl, 0x72d6135b_35e9_412c_b926_fd5265f2a885); +::windows_core::imp::interface_hierarchy!(IMFCaptureSink, ::windows_core::IUnknown); impl IMFCaptureSink { pub unsafe fn GetOutputMediaType(&self, dwsinkstreamindex: u32, ppmediatype: ::core::option::Option<*mut ::core::option::Option>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetOutputMediaType)(::windows_core::Interface::as_raw(self), dwsinkstreamindex, ::core::mem::transmute(ppmediatype.unwrap_or(::std::ptr::null_mut()))).ok() @@ -9462,13 +8731,6 @@ impl IMFCaptureSink { (::windows_core::Interface::vtable(self).RemoveAllStreams)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IMFCaptureSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFCaptureSink { - type Vtable = IMFCaptureSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFCaptureSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x72d6135b_35e9_412c_b926_fd5265f2a885); -} #[repr(C)] #[doc(hidden)] pub struct IMFCaptureSink_Vtbl { @@ -9479,9 +8741,8 @@ pub struct IMFCaptureSink_Vtbl { pub Prepare: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RemoveAllStreams: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFCaptureSink2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFCaptureSink2, IMFCaptureSink2_Vtbl, 0xf9e4219e_6197_4b5e_b888_bee310ab2c59); +::windows_core::imp::interface_hierarchy!(IMFCaptureSink2, ::windows_core::IUnknown, IMFCaptureSink); impl IMFCaptureSink2 { pub unsafe fn GetOutputMediaType(&self, dwsinkstreamindex: u32, ppmediatype: ::core::option::Option<*mut ::core::option::Option>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.GetOutputMediaType)(::windows_core::Interface::as_raw(self), dwsinkstreamindex, ::core::mem::transmute(ppmediatype.unwrap_or(::std::ptr::null_mut()))).ok() @@ -9510,22 +8771,14 @@ impl IMFCaptureSink2 { (::windows_core::Interface::vtable(self).SetOutputMediaType)(::windows_core::Interface::as_raw(self), dwstreamindex, pmediatype.into_param().abi(), pencodingattributes.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMFCaptureSink2, ::windows_core::IUnknown, IMFCaptureSink); -unsafe impl ::windows_core::Interface for IMFCaptureSink2 { - type Vtable = IMFCaptureSink2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFCaptureSink2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf9e4219e_6197_4b5e_b888_bee310ab2c59); -} #[repr(C)] #[doc(hidden)] pub struct IMFCaptureSink2_Vtbl { pub base__: IMFCaptureSink_Vtbl, pub SetOutputMediaType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwstreamindex: u32, pmediatype: *mut ::core::ffi::c_void, pencodingattributes: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFCaptureSource(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFCaptureSource, IMFCaptureSource_Vtbl, 0x439a42a8_0d2c_4505_be83_f79b2a05d5c4); +::windows_core::imp::interface_hierarchy!(IMFCaptureSource, ::windows_core::IUnknown); impl IMFCaptureSource { pub unsafe fn GetCaptureDeviceSource(&self, mfcaptureenginedevicetype: MF_CAPTURE_ENGINE_DEVICE_TYPE, ppmediasource: ::core::option::Option<*mut ::core::option::Option>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetCaptureDeviceSource)(::windows_core::Interface::as_raw(self), mfcaptureenginedevicetype, ::core::mem::transmute(ppmediasource.unwrap_or(::std::ptr::null_mut()))).ok() @@ -9587,13 +8840,6 @@ impl IMFCaptureSource { (::windows_core::Interface::vtable(self).GetStreamIndexFromFriendlyName)(::windows_core::Interface::as_raw(self), uifriendlyname, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFCaptureSource, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFCaptureSource { - type Vtable = IMFCaptureSource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFCaptureSource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x439a42a8_0d2c_4505_be83_f79b2a05d5c4); -} #[repr(C)] #[doc(hidden)] pub struct IMFCaptureSource_Vtbl { @@ -9613,9 +8859,8 @@ pub struct IMFCaptureSource_Vtbl { pub SetMirrorState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwstreamindex: u32, fmirrorstate: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub GetStreamIndexFromFriendlyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uifriendlyname: u32, pdwactualstreamindex: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFCdmSuspendNotify(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFCdmSuspendNotify, IMFCdmSuspendNotify_Vtbl, 0x7a5645d2_43bd_47fd_87b7_dcd24cc7d692); +::windows_core::imp::interface_hierarchy!(IMFCdmSuspendNotify, ::windows_core::IUnknown); impl IMFCdmSuspendNotify { pub unsafe fn Begin(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Begin)(::windows_core::Interface::as_raw(self)).ok() @@ -9624,13 +8869,6 @@ impl IMFCdmSuspendNotify { (::windows_core::Interface::vtable(self).End)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IMFCdmSuspendNotify, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFCdmSuspendNotify { - type Vtable = IMFCdmSuspendNotify_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFCdmSuspendNotify { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7a5645d2_43bd_47fd_87b7_dcd24cc7d692); -} #[repr(C)] #[doc(hidden)] pub struct IMFCdmSuspendNotify_Vtbl { @@ -9638,9 +8876,8 @@ pub struct IMFCdmSuspendNotify_Vtbl { pub Begin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub End: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFClock(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFClock, IMFClock_Vtbl, 0x2eb1e945_18b8_4139_9b1a_d5d584818530); +::windows_core::imp::interface_hierarchy!(IMFClock, ::windows_core::IUnknown); impl IMFClock { pub unsafe fn GetClockCharacteristics(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -9661,13 +8898,6 @@ impl IMFClock { (::windows_core::Interface::vtable(self).GetProperties)(::windows_core::Interface::as_raw(self), pclockproperties).ok() } } -::windows_core::imp::interface_hierarchy!(IMFClock, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFClock { - type Vtable = IMFClock_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFClock { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2eb1e945_18b8_4139_9b1a_d5d584818530); -} #[repr(C)] #[doc(hidden)] pub struct IMFClock_Vtbl { @@ -9678,9 +8908,8 @@ pub struct IMFClock_Vtbl { pub GetState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwreserved: u32, peclockstate: *mut MFCLOCK_STATE) -> ::windows_core::HRESULT, pub GetProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pclockproperties: *mut MFCLOCK_PROPERTIES) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFClockConsumer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFClockConsumer, IMFClockConsumer_Vtbl, 0x6ef2a662_47c0_4666_b13d_cbb717f2fa2c); +::windows_core::imp::interface_hierarchy!(IMFClockConsumer, ::windows_core::IUnknown); impl IMFClockConsumer { pub unsafe fn SetPresentationClock(&self, ppresentationclock: P0) -> ::windows_core::Result<()> where @@ -9693,13 +8922,6 @@ impl IMFClockConsumer { (::windows_core::Interface::vtable(self).GetPresentationClock)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFClockConsumer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFClockConsumer { - type Vtable = IMFClockConsumer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFClockConsumer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6ef2a662_47c0_4666_b13d_cbb717f2fa2c); -} #[repr(C)] #[doc(hidden)] pub struct IMFClockConsumer_Vtbl { @@ -9707,9 +8929,8 @@ pub struct IMFClockConsumer_Vtbl { pub SetPresentationClock: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppresentationclock: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetPresentationClock: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pppresentationclock: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFClockStateSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFClockStateSink, IMFClockStateSink_Vtbl, 0xf6696e82_74f7_4f3d_a178_8a5e09c3659f); +::windows_core::imp::interface_hierarchy!(IMFClockStateSink, ::windows_core::IUnknown); impl IMFClockStateSink { pub unsafe fn OnClockStart(&self, hnssystemtime: i64, llclockstartoffset: i64) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnClockStart)(::windows_core::Interface::as_raw(self), hnssystemtime, llclockstartoffset).ok() @@ -9727,13 +8948,6 @@ impl IMFClockStateSink { (::windows_core::Interface::vtable(self).OnClockSetRate)(::windows_core::Interface::as_raw(self), hnssystemtime, flrate).ok() } } -::windows_core::imp::interface_hierarchy!(IMFClockStateSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFClockStateSink { - type Vtable = IMFClockStateSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFClockStateSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf6696e82_74f7_4f3d_a178_8a5e09c3659f); -} #[repr(C)] #[doc(hidden)] pub struct IMFClockStateSink_Vtbl { @@ -9744,9 +8958,8 @@ pub struct IMFClockStateSink_Vtbl { pub OnClockRestart: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hnssystemtime: i64) -> ::windows_core::HRESULT, pub OnClockSetRate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hnssystemtime: i64, flrate: f32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFCollection, IMFCollection_Vtbl, 0x5bc8a76b_869a_46a3_9b03_fa218a66aebe); +::windows_core::imp::interface_hierarchy!(IMFCollection, ::windows_core::IUnknown); impl IMFCollection { pub unsafe fn GetElementCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -9776,13 +8989,6 @@ impl IMFCollection { (::windows_core::Interface::vtable(self).RemoveAllElements)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IMFCollection, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFCollection { - type Vtable = IMFCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5bc8a76b_869a_46a3_9b03_fa218a66aebe); -} #[repr(C)] #[doc(hidden)] pub struct IMFCollection_Vtbl { @@ -9794,9 +9000,8 @@ pub struct IMFCollection_Vtbl { pub InsertElementAt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwindex: u32, punknown: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RemoveAllElements: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFContentDecryptionModule(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFContentDecryptionModule, IMFContentDecryptionModule_Vtbl, 0x87be986c_10be_4943_bf48_4b54ce1983a2); +::windows_core::imp::interface_hierarchy!(IMFContentDecryptionModule, ::windows_core::IUnknown); impl IMFContentDecryptionModule { pub unsafe fn SetContentEnabler(&self, contentenabler: P0, result: P1) -> ::windows_core::Result<()> where @@ -9833,13 +9038,6 @@ impl IMFContentDecryptionModule { (::windows_core::Interface::vtable(self).GetProtectionSystemIds)(::windows_core::Interface::as_raw(self), systemids, count).ok() } } -::windows_core::imp::interface_hierarchy!(IMFContentDecryptionModule, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFContentDecryptionModule { - type Vtable = IMFContentDecryptionModule_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFContentDecryptionModule { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x87be986c_10be_4943_bf48_4b54ce1983a2); -} #[repr(C)] #[doc(hidden)] pub struct IMFContentDecryptionModule_Vtbl { @@ -9852,9 +9050,8 @@ pub struct IMFContentDecryptionModule_Vtbl { pub CreateTrustedInput: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, contentinitdata: *const u8, contentinitdatasize: u32, trustedinput: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetProtectionSystemIds: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, systemids: *mut *mut ::windows_core::GUID, count: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFContentDecryptionModuleAccess(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFContentDecryptionModuleAccess, IMFContentDecryptionModuleAccess_Vtbl, 0xa853d1f4_e2a0_4303_9edc_f1a68ee43136); +::windows_core::imp::interface_hierarchy!(IMFContentDecryptionModuleAccess, ::windows_core::IUnknown); impl IMFContentDecryptionModuleAccess { #[doc = "Required features: `\"Win32_UI_Shell_PropertiesSystem\"`"] #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] @@ -9876,13 +9073,6 @@ impl IMFContentDecryptionModuleAccess { (::windows_core::Interface::vtable(self).GetKeySystem)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFContentDecryptionModuleAccess, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFContentDecryptionModuleAccess { - type Vtable = IMFContentDecryptionModuleAccess_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFContentDecryptionModuleAccess { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa853d1f4_e2a0_4303_9edc_f1a68ee43136); -} #[repr(C)] #[doc(hidden)] pub struct IMFContentDecryptionModuleAccess_Vtbl { @@ -9897,9 +9087,8 @@ pub struct IMFContentDecryptionModuleAccess_Vtbl { GetConfiguration: usize, pub GetKeySystem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, keysystem: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFContentDecryptionModuleFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFContentDecryptionModuleFactory, IMFContentDecryptionModuleFactory_Vtbl, 0x7d5abf16_4cbb_4e08_b977_9ba59049943e); +::windows_core::imp::interface_hierarchy!(IMFContentDecryptionModuleFactory, ::windows_core::IUnknown); impl IMFContentDecryptionModuleFactory { pub unsafe fn IsTypeSupported(&self, keysystem: P0, contenttype: P1) -> super::super::Foundation::BOOL where @@ -9918,13 +9107,6 @@ impl IMFContentDecryptionModuleFactory { (::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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFContentDecryptionModuleFactory, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFContentDecryptionModuleFactory { - type Vtable = IMFContentDecryptionModuleFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFContentDecryptionModuleFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7d5abf16_4cbb_4e08_b977_9ba59049943e); -} #[repr(C)] #[doc(hidden)] pub struct IMFContentDecryptionModuleFactory_Vtbl { @@ -9935,9 +9117,8 @@ pub struct IMFContentDecryptionModuleFactory_Vtbl { #[cfg(not(feature = "Win32_UI_Shell_PropertiesSystem"))] CreateContentDecryptionModuleAccess: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFContentDecryptionModuleSession(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFContentDecryptionModuleSession, IMFContentDecryptionModuleSession_Vtbl, 0x4e233efd_1dd2_49e8_b577_d63eee4c0d33); +::windows_core::imp::interface_hierarchy!(IMFContentDecryptionModuleSession, ::windows_core::IUnknown); impl IMFContentDecryptionModuleSession { pub unsafe fn GetSessionId(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); @@ -9973,13 +9154,6 @@ impl IMFContentDecryptionModuleSession { (::windows_core::Interface::vtable(self).Remove)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IMFContentDecryptionModuleSession, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFContentDecryptionModuleSession { - type Vtable = IMFContentDecryptionModuleSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFContentDecryptionModuleSession { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4e233efd_1dd2_49e8_b577_d63eee4c0d33); -} #[repr(C)] #[doc(hidden)] pub struct IMFContentDecryptionModuleSession_Vtbl { @@ -9993,9 +9167,8 @@ pub struct IMFContentDecryptionModuleSession_Vtbl { pub Close: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFContentDecryptionModuleSessionCallbacks(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFContentDecryptionModuleSessionCallbacks, IMFContentDecryptionModuleSessionCallbacks_Vtbl, 0x3f96ee40_ad81_4096_8470_59a4b770f89a); +::windows_core::imp::interface_hierarchy!(IMFContentDecryptionModuleSessionCallbacks, ::windows_core::IUnknown); impl IMFContentDecryptionModuleSessionCallbacks { pub unsafe fn KeyMessage(&self, messagetype: MF_MEDIAKEYSESSION_MESSAGETYPE, message: &[u8], destinationurl: P0) -> ::windows_core::Result<()> where @@ -10007,13 +9180,6 @@ impl IMFContentDecryptionModuleSessionCallbacks { (::windows_core::Interface::vtable(self).KeyStatusChanged)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IMFContentDecryptionModuleSessionCallbacks, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFContentDecryptionModuleSessionCallbacks { - type Vtable = IMFContentDecryptionModuleSessionCallbacks_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFContentDecryptionModuleSessionCallbacks { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3f96ee40_ad81_4096_8470_59a4b770f89a); -} #[repr(C)] #[doc(hidden)] pub struct IMFContentDecryptionModuleSessionCallbacks_Vtbl { @@ -10021,31 +9187,22 @@ pub struct IMFContentDecryptionModuleSessionCallbacks_Vtbl { pub KeyMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, messagetype: MF_MEDIAKEYSESSION_MESSAGETYPE, message: *const u8, messagesize: u32, destinationurl: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub KeyStatusChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFContentDecryptorContext(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFContentDecryptorContext, IMFContentDecryptorContext_Vtbl, 0x7ec4b1bd_43fb_4763_85d2_64fcb5c5f4cb); +::windows_core::imp::interface_hierarchy!(IMFContentDecryptorContext, ::windows_core::IUnknown); impl IMFContentDecryptorContext { pub unsafe fn InitializeHardwareKey(&self, inputprivatedata: ::core::option::Option<&[u8]>) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).InitializeHardwareKey)(::windows_core::Interface::as_raw(self), inputprivatedata.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), ::core::mem::transmute(inputprivatedata.as_deref().map_or(::core::ptr::null(), |slice| slice.as_ptr())), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFContentDecryptorContext, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFContentDecryptorContext { - type Vtable = IMFContentDecryptorContext_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFContentDecryptorContext { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7ec4b1bd_43fb_4763_85d2_64fcb5c5f4cb); -} #[repr(C)] #[doc(hidden)] pub struct IMFContentDecryptorContext_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub InitializeHardwareKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, inputprivatedatabytecount: u32, inputprivatedata: *const ::core::ffi::c_void, outputprivatedata: *mut u64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFContentEnabler(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFContentEnabler, IMFContentEnabler_Vtbl, 0xd3c4ef59_49ce_4381_9071_d5bcd044c770); +::windows_core::imp::interface_hierarchy!(IMFContentEnabler, ::windows_core::IUnknown); impl IMFContentEnabler { pub unsafe fn GetEnableType(&self) -> ::windows_core::Result<::windows_core::GUID> { let mut result__ = ::std::mem::zeroed(); @@ -10071,13 +9228,6 @@ impl IMFContentEnabler { (::windows_core::Interface::vtable(self).Cancel)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IMFContentEnabler, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFContentEnabler { - type Vtable = IMFContentEnabler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFContentEnabler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd3c4ef59_49ce_4381_9071_d5bcd044c770); -} #[repr(C)] #[doc(hidden)] pub struct IMFContentEnabler_Vtbl { @@ -10090,9 +9240,8 @@ pub struct IMFContentEnabler_Vtbl { pub MonitorEnable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Cancel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFContentProtectionDevice(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFContentProtectionDevice, IMFContentProtectionDevice_Vtbl, 0xe6257174_a060_4c9a_a088_3b1b471cad28); +::windows_core::imp::interface_hierarchy!(IMFContentProtectionDevice, ::windows_core::IUnknown); impl IMFContentProtectionDevice { pub unsafe fn InvokeFunction(&self, functionid: u32, inputbuffer: &[u8], outputbufferbytecount: *mut u32, outputbuffer: *mut u8) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).InvokeFunction)(::windows_core::Interface::as_raw(self), functionid, inputbuffer.len().try_into().unwrap(), ::core::mem::transmute(inputbuffer.as_ptr()), outputbufferbytecount, outputbuffer).ok() @@ -10101,13 +9250,6 @@ impl IMFContentProtectionDevice { (::windows_core::Interface::vtable(self).GetPrivateDataByteCount)(::windows_core::Interface::as_raw(self), privateinputbytecount, privateoutputbytecount).ok() } } -::windows_core::imp::interface_hierarchy!(IMFContentProtectionDevice, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFContentProtectionDevice { - type Vtable = IMFContentProtectionDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFContentProtectionDevice { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe6257174_a060_4c9a_a088_3b1b471cad28); -} #[repr(C)] #[doc(hidden)] pub struct IMFContentProtectionDevice_Vtbl { @@ -10115,9 +9257,8 @@ pub struct IMFContentProtectionDevice_Vtbl { pub InvokeFunction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, functionid: u32, inputbufferbytecount: u32, inputbuffer: *const u8, outputbufferbytecount: *mut u32, outputbuffer: *mut u8) -> ::windows_core::HRESULT, pub GetPrivateDataByteCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, privateinputbytecount: *mut u32, privateoutputbytecount: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFContentProtectionManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFContentProtectionManager, IMFContentProtectionManager_Vtbl, 0xacf92459_6a61_42bd_b57c_b43e51203cb0); +::windows_core::imp::interface_hierarchy!(IMFContentProtectionManager, ::windows_core::IUnknown); impl IMFContentProtectionManager { pub unsafe fn BeginEnableContent(&self, penableractivate: P0, ptopo: P1, pcallback: P2, punkstate: P3) -> ::windows_core::Result<()> where @@ -10135,13 +9276,6 @@ impl IMFContentProtectionManager { (::windows_core::Interface::vtable(self).EndEnableContent)(::windows_core::Interface::as_raw(self), presult.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMFContentProtectionManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFContentProtectionManager { - type Vtable = IMFContentProtectionManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFContentProtectionManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xacf92459_6a61_42bd_b57c_b43e51203cb0); -} #[repr(C)] #[doc(hidden)] pub struct IMFContentProtectionManager_Vtbl { @@ -10149,9 +9283,8 @@ pub struct IMFContentProtectionManager_Vtbl { pub BeginEnableContent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, penableractivate: *mut ::core::ffi::c_void, ptopo: *mut ::core::ffi::c_void, pcallback: *mut ::core::ffi::c_void, punkstate: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub EndEnableContent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, presult: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFD3D12SynchronizationObject(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFD3D12SynchronizationObject, IMFD3D12SynchronizationObject_Vtbl, 0x802302b0_82de_45e1_b421_f19ee5bdaf23); +::windows_core::imp::interface_hierarchy!(IMFD3D12SynchronizationObject, ::windows_core::IUnknown); impl IMFD3D12SynchronizationObject { pub unsafe fn SignalEventOnFinalResourceRelease(&self, hevent: P0) -> ::windows_core::Result<()> where @@ -10163,13 +9296,6 @@ impl IMFD3D12SynchronizationObject { (::windows_core::Interface::vtable(self).Reset)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IMFD3D12SynchronizationObject, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFD3D12SynchronizationObject { - type Vtable = IMFD3D12SynchronizationObject_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFD3D12SynchronizationObject { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x802302b0_82de_45e1_b421_f19ee5bdaf23); -} #[repr(C)] #[doc(hidden)] pub struct IMFD3D12SynchronizationObject_Vtbl { @@ -10177,9 +9303,8 @@ pub struct IMFD3D12SynchronizationObject_Vtbl { pub SignalEventOnFinalResourceRelease: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hevent: super::super::Foundation::HANDLE) -> ::windows_core::HRESULT, pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFD3D12SynchronizationObjectCommands(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFD3D12SynchronizationObjectCommands, IMFD3D12SynchronizationObjectCommands_Vtbl, 0x09d0f835_92ff_4e53_8efa_40faa551f233); +::windows_core::imp::interface_hierarchy!(IMFD3D12SynchronizationObjectCommands, ::windows_core::IUnknown); impl IMFD3D12SynchronizationObjectCommands { #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] #[cfg(feature = "Win32_Graphics_Direct3D12")] @@ -10212,13 +9337,6 @@ impl IMFD3D12SynchronizationObjectCommands { (::windows_core::Interface::vtable(self).EnqueueResourceRelease)(::windows_core::Interface::as_raw(self), pconsumercommandqueue.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMFD3D12SynchronizationObjectCommands, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFD3D12SynchronizationObjectCommands { - type Vtable = IMFD3D12SynchronizationObjectCommands_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFD3D12SynchronizationObjectCommands { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x09d0f835_92ff_4e53_8efa_40faa551f233); -} #[repr(C)] #[doc(hidden)] pub struct IMFD3D12SynchronizationObjectCommands_Vtbl { @@ -10237,9 +9355,8 @@ pub struct IMFD3D12SynchronizationObjectCommands_Vtbl { #[cfg(not(feature = "Win32_Graphics_Direct3D12"))] EnqueueResourceRelease: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFDLNASinkInit(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFDLNASinkInit, IMFDLNASinkInit_Vtbl, 0x0c012799_1b61_4c10_bda9_04445be5f561); +::windows_core::imp::interface_hierarchy!(IMFDLNASinkInit, ::windows_core::IUnknown); impl IMFDLNASinkInit { pub unsafe fn Initialize(&self, pbytestream: P0, fpal: P1) -> ::windows_core::Result<()> where @@ -10249,22 +9366,14 @@ impl IMFDLNASinkInit { (::windows_core::Interface::vtable(self).Initialize)(::windows_core::Interface::as_raw(self), pbytestream.into_param().abi(), fpal.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMFDLNASinkInit, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFDLNASinkInit { - type Vtable = IMFDLNASinkInit_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFDLNASinkInit { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c012799_1b61_4c10_bda9_04445be5f561); -} #[repr(C)] #[doc(hidden)] pub struct IMFDLNASinkInit_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbytestream: *mut ::core::ffi::c_void, fpal: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFDRMNetHelper(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFDRMNetHelper, IMFDRMNetHelper_Vtbl, 0x3d1ff0ea_679a_4190_8d46_7fa69e8c7e15); +::windows_core::imp::interface_hierarchy!(IMFDRMNetHelper, ::windows_core::IUnknown); impl IMFDRMNetHelper { pub unsafe fn ProcessLicenseRequest(&self, plicenserequest: &[u8], pplicenseresponse: *mut *mut u8, pcblicenseresponse: *mut u32, pbstrkid: *mut ::windows_core::BSTR) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).ProcessLicenseRequest)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(plicenserequest.as_ptr()), plicenserequest.len().try_into().unwrap(), pplicenseresponse, pcblicenseresponse, ::core::mem::transmute(pbstrkid)).ok() @@ -10273,13 +9382,6 @@ impl IMFDRMNetHelper { (::windows_core::Interface::vtable(self).GetChainedLicenseResponse)(::windows_core::Interface::as_raw(self), pplicenseresponse, pcblicenseresponse).ok() } } -::windows_core::imp::interface_hierarchy!(IMFDRMNetHelper, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFDRMNetHelper { - type Vtable = IMFDRMNetHelper_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFDRMNetHelper { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3d1ff0ea_679a_4190_8d46_7fa69e8c7e15); -} #[repr(C)] #[doc(hidden)] pub struct IMFDRMNetHelper_Vtbl { @@ -10287,9 +9389,8 @@ pub struct IMFDRMNetHelper_Vtbl { pub ProcessLicenseRequest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plicenserequest: *const u8, cblicenserequest: u32, pplicenseresponse: *mut *mut u8, pcblicenseresponse: *mut u32, pbstrkid: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub GetChainedLicenseResponse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pplicenseresponse: *mut *mut u8, pcblicenseresponse: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFDXGIBuffer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFDXGIBuffer, IMFDXGIBuffer_Vtbl, 0xe7174cfa_1c9e_48b1_8866_626226bfc258); +::windows_core::imp::interface_hierarchy!(IMFDXGIBuffer, ::windows_core::IUnknown); impl IMFDXGIBuffer { pub unsafe fn GetResource(&self, riid: *const ::windows_core::GUID, ppvobject: *mut *mut ::core::ffi::c_void) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetResource)(::windows_core::Interface::as_raw(self), riid, ppvobject).ok() @@ -10308,13 +9409,6 @@ impl IMFDXGIBuffer { (::windows_core::Interface::vtable(self).SetUnknown)(::windows_core::Interface::as_raw(self), guid, punkdata.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMFDXGIBuffer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFDXGIBuffer { - type Vtable = IMFDXGIBuffer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFDXGIBuffer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe7174cfa_1c9e_48b1_8866_626226bfc258); -} #[repr(C)] #[doc(hidden)] pub struct IMFDXGIBuffer_Vtbl { @@ -10324,9 +9418,8 @@ pub struct IMFDXGIBuffer_Vtbl { pub GetUnknown: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guid: *const ::windows_core::GUID, riid: *const ::windows_core::GUID, ppvobject: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetUnknown: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guid: *const ::windows_core::GUID, punkdata: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFDXGIDeviceManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFDXGIDeviceManager, IMFDXGIDeviceManager_Vtbl, 0xeb533d5d_2db6_40f8_97a9_494692014f07); +::windows_core::imp::interface_hierarchy!(IMFDXGIDeviceManager, ::windows_core::IUnknown); impl IMFDXGIDeviceManager { pub unsafe fn CloseDeviceHandle(&self, hdevice: P0) -> ::windows_core::Result<()> where @@ -10371,13 +9464,6 @@ impl IMFDXGIDeviceManager { (::windows_core::Interface::vtable(self).UnlockDevice)(::windows_core::Interface::as_raw(self), hdevice.into_param().abi(), fsavestate.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMFDXGIDeviceManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFDXGIDeviceManager { - type Vtable = IMFDXGIDeviceManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFDXGIDeviceManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeb533d5d_2db6_40f8_97a9_494692014f07); -} #[repr(C)] #[doc(hidden)] pub struct IMFDXGIDeviceManager_Vtbl { @@ -10390,31 +9476,22 @@ pub struct IMFDXGIDeviceManager_Vtbl { pub TestDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hdevice: super::super::Foundation::HANDLE) -> ::windows_core::HRESULT, pub UnlockDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hdevice: super::super::Foundation::HANDLE, fsavestate: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFDXGIDeviceManagerSource(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFDXGIDeviceManagerSource, IMFDXGIDeviceManagerSource_Vtbl, 0x20bc074b_7a8d_4609_8c3b_64a0a3b5d7ce); +::windows_core::imp::interface_hierarchy!(IMFDXGIDeviceManagerSource, ::windows_core::IUnknown); impl IMFDXGIDeviceManagerSource { pub unsafe fn GetManager(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetManager)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFDXGIDeviceManagerSource, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFDXGIDeviceManagerSource { - type Vtable = IMFDXGIDeviceManagerSource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFDXGIDeviceManagerSource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x20bc074b_7a8d_4609_8c3b_64a0a3b5d7ce); -} #[repr(C)] #[doc(hidden)] pub struct IMFDXGIDeviceManagerSource_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetManager: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppmanager: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFDesiredSample(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFDesiredSample, IMFDesiredSample_Vtbl, 0x56c294d0_753e_4260_8d61_a3d8820b1d54); +::windows_core::imp::interface_hierarchy!(IMFDesiredSample, ::windows_core::IUnknown); impl IMFDesiredSample { pub unsafe fn GetDesiredSampleTimeAndDuration(&self, phnssampletime: *mut i64, phnssampleduration: *mut i64) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetDesiredSampleTimeAndDuration)(::windows_core::Interface::as_raw(self), phnssampletime, phnssampleduration).ok() @@ -10426,13 +9503,6 @@ impl IMFDesiredSample { (::windows_core::Interface::vtable(self).Clear)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(IMFDesiredSample, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFDesiredSample { - type Vtable = IMFDesiredSample_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFDesiredSample { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x56c294d0_753e_4260_8d61_a3d8820b1d54); -} #[repr(C)] #[doc(hidden)] pub struct IMFDesiredSample_Vtbl { @@ -10441,9 +9511,8 @@ pub struct IMFDesiredSample_Vtbl { pub SetDesiredSampleTimeAndDuration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hnssampletime: i64, hnssampleduration: i64), pub Clear: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFDeviceTransform(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFDeviceTransform, IMFDeviceTransform_Vtbl, 0xd818fbd8_fc46_42f2_87ac_1ea2d1f9bf32); +::windows_core::imp::interface_hierarchy!(IMFDeviceTransform, ::windows_core::IUnknown); impl IMFDeviceTransform { pub unsafe fn InitializeTransform(&self, pattributes: P0) -> ::windows_core::Result<()> where @@ -10529,13 +9598,6 @@ impl IMFDeviceTransform { (::windows_core::Interface::vtable(self).FlushOutputStream)(::windows_core::Interface::as_raw(self), dwstreamindex, dwflags).ok() } } -::windows_core::imp::interface_hierarchy!(IMFDeviceTransform, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFDeviceTransform { - type Vtable = IMFDeviceTransform_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFDeviceTransform { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd818fbd8_fc46_42f2_87ac_1ea2d1f9bf32); -} #[repr(C)] #[doc(hidden)] pub struct IMFDeviceTransform_Vtbl { @@ -10561,9 +9623,8 @@ pub struct IMFDeviceTransform_Vtbl { pub FlushInputStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwstreamindex: u32, dwflags: u32) -> ::windows_core::HRESULT, pub FlushOutputStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwstreamindex: u32, dwflags: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFDeviceTransformCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFDeviceTransformCallback, IMFDeviceTransformCallback_Vtbl, 0x6d5cb646_29ec_41fb_8179_8c4c6d750811); +::windows_core::imp::interface_hierarchy!(IMFDeviceTransformCallback, ::windows_core::IUnknown); impl IMFDeviceTransformCallback { pub unsafe fn OnBufferSent(&self, pcallbackattributes: P0, pinid: u32) -> ::windows_core::Result<()> where @@ -10572,22 +9633,14 @@ impl IMFDeviceTransformCallback { (::windows_core::Interface::vtable(self).OnBufferSent)(::windows_core::Interface::as_raw(self), pcallbackattributes.into_param().abi(), pinid).ok() } } -::windows_core::imp::interface_hierarchy!(IMFDeviceTransformCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFDeviceTransformCallback { - type Vtable = IMFDeviceTransformCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFDeviceTransformCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6d5cb646_29ec_41fb_8179_8c4c6d750811); -} #[repr(C)] #[doc(hidden)] pub struct IMFDeviceTransformCallback_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnBufferSent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcallbackattributes: *mut ::core::ffi::c_void, pinid: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFExtendedCameraControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFExtendedCameraControl, IMFExtendedCameraControl_Vtbl, 0x38e33520_fca1_4845_a27a_68b7c6ab3789); +::windows_core::imp::interface_hierarchy!(IMFExtendedCameraControl, ::windows_core::IUnknown); impl IMFExtendedCameraControl { pub unsafe fn GetCapabilities(&self) -> u64 { (::windows_core::Interface::vtable(self).GetCapabilities)(::windows_core::Interface::as_raw(self)) @@ -10608,13 +9661,6 @@ impl IMFExtendedCameraControl { (::windows_core::Interface::vtable(self).CommitSettings)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IMFExtendedCameraControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFExtendedCameraControl { - type Vtable = IMFExtendedCameraControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFExtendedCameraControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x38e33520_fca1_4845_a27a_68b7c6ab3789); -} #[repr(C)] #[doc(hidden)] pub struct IMFExtendedCameraControl_Vtbl { @@ -10626,31 +9672,22 @@ pub struct IMFExtendedCameraControl_Vtbl { pub UnlockPayload: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CommitSettings: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFExtendedCameraController(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFExtendedCameraController, IMFExtendedCameraController_Vtbl, 0xb91ebfee_ca03_4af4_8a82_a31752f4a0fc); +::windows_core::imp::interface_hierarchy!(IMFExtendedCameraController, ::windows_core::IUnknown); impl IMFExtendedCameraController { pub unsafe fn GetExtendedCameraControl(&self, dwstreamindex: u32, ulpropertyid: u32) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetExtendedCameraControl)(::windows_core::Interface::as_raw(self), dwstreamindex, ulpropertyid, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFExtendedCameraController, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFExtendedCameraController { - type Vtable = IMFExtendedCameraController_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFExtendedCameraController { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb91ebfee_ca03_4af4_8a82_a31752f4a0fc); -} #[repr(C)] #[doc(hidden)] pub struct IMFExtendedCameraController_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetExtendedCameraControl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwstreamindex: u32, ulpropertyid: u32, ppcontrol: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFExtendedCameraIntrinsicModel(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFExtendedCameraIntrinsicModel, IMFExtendedCameraIntrinsicModel_Vtbl, 0x5c595e64_4630_4231_855a_12842f733245); +::windows_core::imp::interface_hierarchy!(IMFExtendedCameraIntrinsicModel, ::windows_core::IUnknown); impl IMFExtendedCameraIntrinsicModel { pub unsafe fn GetModel(&self, pintrinsicmodel: *mut MFExtendedCameraIntrinsic_IntrinsicModel) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetModel)(::windows_core::Interface::as_raw(self), pintrinsicmodel).ok() @@ -10663,13 +9700,6 @@ impl IMFExtendedCameraIntrinsicModel { (::windows_core::Interface::vtable(self).GetDistortionModelType)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFExtendedCameraIntrinsicModel, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFExtendedCameraIntrinsicModel { - type Vtable = IMFExtendedCameraIntrinsicModel_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFExtendedCameraIntrinsicModel { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5c595e64_4630_4231_855a_12842f733245); -} #[repr(C)] #[doc(hidden)] pub struct IMFExtendedCameraIntrinsicModel_Vtbl { @@ -10678,9 +9708,8 @@ pub struct IMFExtendedCameraIntrinsicModel_Vtbl { pub SetModel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pintrinsicmodel: *const MFExtendedCameraIntrinsic_IntrinsicModel) -> ::windows_core::HRESULT, pub GetDistortionModelType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdistortionmodeltype: *mut MFCameraIntrinsic_DistortionModelType) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFExtendedCameraIntrinsics(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFExtendedCameraIntrinsics, IMFExtendedCameraIntrinsics_Vtbl, 0x687f6dac_6987_4750_a16a_734d1e7a10fe); +::windows_core::imp::interface_hierarchy!(IMFExtendedCameraIntrinsics, ::windows_core::IUnknown); impl IMFExtendedCameraIntrinsics { pub unsafe fn InitializeFromBuffer(&self, pbbuffer: &[u8]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).InitializeFromBuffer)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pbbuffer.as_ptr()), pbbuffer.len().try_into().unwrap()).ok() @@ -10707,13 +9736,6 @@ impl IMFExtendedCameraIntrinsics { (::windows_core::Interface::vtable(self).AddIntrinsicModel)(::windows_core::Interface::as_raw(self), pintrinsicmodel.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMFExtendedCameraIntrinsics, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFExtendedCameraIntrinsics { - type Vtable = IMFExtendedCameraIntrinsics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFExtendedCameraIntrinsics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x687f6dac_6987_4750_a16a_734d1e7a10fe); -} #[repr(C)] #[doc(hidden)] pub struct IMFExtendedCameraIntrinsics_Vtbl { @@ -10725,9 +9747,8 @@ pub struct IMFExtendedCameraIntrinsics_Vtbl { pub GetIntrinsicModelByIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwindex: u32, ppintrinsicmodel: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub AddIntrinsicModel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pintrinsicmodel: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFExtendedCameraIntrinsicsDistortionModel6KT(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFExtendedCameraIntrinsicsDistortionModel6KT, IMFExtendedCameraIntrinsicsDistortionModel6KT_Vtbl, 0x74c2653b_5f55_4eb1_9f0f_18b8f68b7d3d); +::windows_core::imp::interface_hierarchy!(IMFExtendedCameraIntrinsicsDistortionModel6KT, ::windows_core::IUnknown); impl IMFExtendedCameraIntrinsicsDistortionModel6KT { pub unsafe fn GetDistortionModel(&self, pdistortionmodel: *mut MFCameraIntrinsic_DistortionModel6KT) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetDistortionModel)(::windows_core::Interface::as_raw(self), pdistortionmodel).ok() @@ -10736,13 +9757,6 @@ impl IMFExtendedCameraIntrinsicsDistortionModel6KT { (::windows_core::Interface::vtable(self).SetDistortionModel)(::windows_core::Interface::as_raw(self), pdistortionmodel).ok() } } -::windows_core::imp::interface_hierarchy!(IMFExtendedCameraIntrinsicsDistortionModel6KT, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFExtendedCameraIntrinsicsDistortionModel6KT { - type Vtable = IMFExtendedCameraIntrinsicsDistortionModel6KT_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFExtendedCameraIntrinsicsDistortionModel6KT { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x74c2653b_5f55_4eb1_9f0f_18b8f68b7d3d); -} #[repr(C)] #[doc(hidden)] pub struct IMFExtendedCameraIntrinsicsDistortionModel6KT_Vtbl { @@ -10750,9 +9764,8 @@ pub struct IMFExtendedCameraIntrinsicsDistortionModel6KT_Vtbl { pub GetDistortionModel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdistortionmodel: *mut MFCameraIntrinsic_DistortionModel6KT) -> ::windows_core::HRESULT, pub SetDistortionModel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdistortionmodel: *const MFCameraIntrinsic_DistortionModel6KT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFExtendedCameraIntrinsicsDistortionModelArcTan(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFExtendedCameraIntrinsicsDistortionModelArcTan, IMFExtendedCameraIntrinsicsDistortionModelArcTan_Vtbl, 0x812d5f95_b572_45dc_bafc_ae24199ddda8); +::windows_core::imp::interface_hierarchy!(IMFExtendedCameraIntrinsicsDistortionModelArcTan, ::windows_core::IUnknown); impl IMFExtendedCameraIntrinsicsDistortionModelArcTan { pub unsafe fn GetDistortionModel(&self, pdistortionmodel: *mut MFCameraIntrinsic_DistortionModelArcTan) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetDistortionModel)(::windows_core::Interface::as_raw(self), pdistortionmodel).ok() @@ -10761,13 +9774,6 @@ impl IMFExtendedCameraIntrinsicsDistortionModelArcTan { (::windows_core::Interface::vtable(self).SetDistortionModel)(::windows_core::Interface::as_raw(self), pdistortionmodel).ok() } } -::windows_core::imp::interface_hierarchy!(IMFExtendedCameraIntrinsicsDistortionModelArcTan, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFExtendedCameraIntrinsicsDistortionModelArcTan { - type Vtable = IMFExtendedCameraIntrinsicsDistortionModelArcTan_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFExtendedCameraIntrinsicsDistortionModelArcTan { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x812d5f95_b572_45dc_bafc_ae24199ddda8); -} #[repr(C)] #[doc(hidden)] pub struct IMFExtendedCameraIntrinsicsDistortionModelArcTan_Vtbl { @@ -10775,9 +9781,8 @@ pub struct IMFExtendedCameraIntrinsicsDistortionModelArcTan_Vtbl { pub GetDistortionModel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdistortionmodel: *mut MFCameraIntrinsic_DistortionModelArcTan) -> ::windows_core::HRESULT, pub SetDistortionModel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdistortionmodel: *const MFCameraIntrinsic_DistortionModelArcTan) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFExtendedDRMTypeSupport(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFExtendedDRMTypeSupport, IMFExtendedDRMTypeSupport_Vtbl, 0x332ec562_3758_468d_a784_e38f23552128); +::windows_core::imp::interface_hierarchy!(IMFExtendedDRMTypeSupport, ::windows_core::IUnknown); impl IMFExtendedDRMTypeSupport { pub unsafe fn IsTypeSupportedEx(&self, r#type: P0, keysystem: P1) -> ::windows_core::Result where @@ -10788,22 +9793,14 @@ impl IMFExtendedDRMTypeSupport { (::windows_core::Interface::vtable(self).IsTypeSupportedEx)(::windows_core::Interface::as_raw(self), r#type.into_param().abi(), keysystem.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFExtendedDRMTypeSupport, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFExtendedDRMTypeSupport { - type Vtable = IMFExtendedDRMTypeSupport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFExtendedDRMTypeSupport { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x332ec562_3758_468d_a784_e38f23552128); -} #[repr(C)] #[doc(hidden)] pub struct IMFExtendedDRMTypeSupport_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub IsTypeSupportedEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: ::std::mem::MaybeUninit<::windows_core::BSTR>, keysystem: ::std::mem::MaybeUninit<::windows_core::BSTR>, panswer: *mut MF_MEDIA_ENGINE_CANPLAY) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFFieldOfUseMFTUnlock(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFFieldOfUseMFTUnlock, IMFFieldOfUseMFTUnlock_Vtbl, 0x508e71d3_ec66_4fc3_8775_b4b9ed6ba847); +::windows_core::imp::interface_hierarchy!(IMFFieldOfUseMFTUnlock, ::windows_core::IUnknown); impl IMFFieldOfUseMFTUnlock { pub unsafe fn Unlock(&self, punkmft: P0) -> ::windows_core::Result<()> where @@ -10812,22 +9809,14 @@ impl IMFFieldOfUseMFTUnlock { (::windows_core::Interface::vtable(self).Unlock)(::windows_core::Interface::as_raw(self), punkmft.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMFFieldOfUseMFTUnlock, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFFieldOfUseMFTUnlock { - type Vtable = IMFFieldOfUseMFTUnlock_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFFieldOfUseMFTUnlock { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x508e71d3_ec66_4fc3_8775_b4b9ed6ba847); -} #[repr(C)] #[doc(hidden)] pub struct IMFFieldOfUseMFTUnlock_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Unlock: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punkmft: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFFinalizableMediaSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFFinalizableMediaSink, IMFFinalizableMediaSink_Vtbl, 0xeaecb74a_9a50_42ce_9541_6a7f57aa4ad7); +::windows_core::imp::interface_hierarchy!(IMFFinalizableMediaSink, ::windows_core::IUnknown, IMFMediaSink); impl IMFFinalizableMediaSink { pub unsafe fn GetCharacteristics(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -10882,13 +9871,6 @@ impl IMFFinalizableMediaSink { (::windows_core::Interface::vtable(self).EndFinalize)(::windows_core::Interface::as_raw(self), presult.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMFFinalizableMediaSink, ::windows_core::IUnknown, IMFMediaSink); -unsafe impl ::windows_core::Interface for IMFFinalizableMediaSink { - type Vtable = IMFFinalizableMediaSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFFinalizableMediaSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeaecb74a_9a50_42ce_9541_6a7f57aa4ad7); -} #[repr(C)] #[doc(hidden)] pub struct IMFFinalizableMediaSink_Vtbl { @@ -10896,34 +9878,25 @@ pub struct IMFFinalizableMediaSink_Vtbl { pub BeginFinalize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcallback: *mut ::core::ffi::c_void, punkstate: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub EndFinalize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, presult: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFGetService(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFGetService, IMFGetService_Vtbl, 0xfa993888_4383_415a_a930_dd472a8cf6f7); +::windows_core::imp::interface_hierarchy!(IMFGetService, ::windows_core::IUnknown); impl IMFGetService { pub unsafe fn GetService(&self, guidservice: *const ::windows_core::GUID) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetService)(::windows_core::Interface::as_raw(self), guidservice, &T::IID, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFGetService, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFGetService { - type Vtable = IMFGetService_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFGetService { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfa993888_4383_415a_a930_dd472a8cf6f7); -} #[repr(C)] #[doc(hidden)] pub struct IMFGetService_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetService: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guidservice: *const ::windows_core::GUID, riid: *const ::windows_core::GUID, ppvobject: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFHDCPStatus(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFHDCPStatus, IMFHDCPStatus_Vtbl, 0xde400f54_5bf1_40cf_8964_0bea136b1e3d); +::windows_core::imp::interface_hierarchy!(IMFHDCPStatus, ::windows_core::IUnknown); impl IMFHDCPStatus { pub unsafe fn Query(&self, pstatus: *mut MF_HDCP_STATUS, pfstatus: *mut super::super::Foundation::BOOL) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Query)(::windows_core::Interface::as_raw(self), pstatus, pfstatus).ok() @@ -10932,13 +9905,6 @@ impl IMFHDCPStatus { (::windows_core::Interface::vtable(self).Set)(::windows_core::Interface::as_raw(self), status).ok() } } -::windows_core::imp::interface_hierarchy!(IMFHDCPStatus, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFHDCPStatus { - type Vtable = IMFHDCPStatus_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFHDCPStatus { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xde400f54_5bf1_40cf_8964_0bea136b1e3d); -} #[repr(C)] #[doc(hidden)] pub struct IMFHDCPStatus_Vtbl { @@ -10946,9 +9912,8 @@ pub struct IMFHDCPStatus_Vtbl { pub Query: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstatus: *mut MF_HDCP_STATUS, pfstatus: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub Set: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, status: MF_HDCP_STATUS) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFHttpDownloadRequest(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFHttpDownloadRequest, IMFHttpDownloadRequest_Vtbl, 0xf779fddf_26e7_4270_8a8b_b983d1859de0); +::windows_core::imp::interface_hierarchy!(IMFHttpDownloadRequest, ::windows_core::IUnknown); impl IMFHttpDownloadRequest { pub unsafe fn AddHeader(&self, szheader: P0) -> ::windows_core::Result<()> where @@ -11033,13 +9998,6 @@ impl IMFHttpDownloadRequest { (::windows_core::Interface::vtable(self).Close)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IMFHttpDownloadRequest, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFHttpDownloadRequest { - type Vtable = IMFHttpDownloadRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFHttpDownloadRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf779fddf_26e7_4270_8a8b_b983d1859de0); -} #[repr(C)] #[doc(hidden)] pub struct IMFHttpDownloadRequest_Vtbl { @@ -11061,9 +10019,8 @@ pub struct IMFHttpDownloadRequest_Vtbl { pub GetRangeEndOffset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pqwrangeend: *mut u64) -> ::windows_core::HRESULT, pub Close: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFHttpDownloadSession(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFHttpDownloadSession, IMFHttpDownloadSession_Vtbl, 0x71fa9a2c_53ce_4662_a132_1a7e8cbf62db); +::windows_core::imp::interface_hierarchy!(IMFHttpDownloadSession, ::windows_core::IUnknown); impl IMFHttpDownloadSession { pub unsafe fn SetServer(&self, szservername: P0, nport: u32) -> ::windows_core::Result<()> where @@ -11086,13 +10043,6 @@ impl IMFHttpDownloadSession { (::windows_core::Interface::vtable(self).Close)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IMFHttpDownloadSession, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFHttpDownloadSession { - type Vtable = IMFHttpDownloadSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFHttpDownloadSession { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x71fa9a2c_53ce_4662_a132_1a7e8cbf62db); -} #[repr(C)] #[doc(hidden)] pub struct IMFHttpDownloadSession_Vtbl { @@ -11101,9 +10051,8 @@ pub struct IMFHttpDownloadSession_Vtbl { pub CreateRequest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, szobjectname: ::windows_core::PCWSTR, fbypassproxycache: super::super::Foundation::BOOL, fsecure: super::super::Foundation::BOOL, szverb: ::windows_core::PCWSTR, szreferrer: ::windows_core::PCWSTR, pprequest: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Close: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFHttpDownloadSessionProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFHttpDownloadSessionProvider, IMFHttpDownloadSessionProvider_Vtbl, 0x1b4cf4b9_3a16_4115_839d_03cc5c99df01); +::windows_core::imp::interface_hierarchy!(IMFHttpDownloadSessionProvider, ::windows_core::IUnknown); impl IMFHttpDownloadSessionProvider { pub unsafe fn CreateHttpDownloadSession(&self, wszscheme: P0) -> ::windows_core::Result where @@ -11113,22 +10062,14 @@ impl IMFHttpDownloadSessionProvider { (::windows_core::Interface::vtable(self).CreateHttpDownloadSession)(::windows_core::Interface::as_raw(self), wszscheme.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFHttpDownloadSessionProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFHttpDownloadSessionProvider { - type Vtable = IMFHttpDownloadSessionProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFHttpDownloadSessionProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1b4cf4b9_3a16_4115_839d_03cc5c99df01); -} #[repr(C)] #[doc(hidden)] pub struct IMFHttpDownloadSessionProvider_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub CreateHttpDownloadSession: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wszscheme: ::windows_core::PCWSTR, ppdownloadsession: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFImageSharingEngine(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFImageSharingEngine, IMFImageSharingEngine_Vtbl, 0xcfa0ae8e_7e1c_44d2_ae68_fc4c148a6354); +::windows_core::imp::interface_hierarchy!(IMFImageSharingEngine, ::windows_core::IUnknown); impl IMFImageSharingEngine { pub unsafe fn SetSource(&self, pstream: P0) -> ::windows_core::Result<()> where @@ -11143,13 +10084,6 @@ impl IMFImageSharingEngine { (::windows_core::Interface::vtable(self).Shutdown)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IMFImageSharingEngine, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFImageSharingEngine { - type Vtable = IMFImageSharingEngine_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFImageSharingEngine { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcfa0ae8e_7e1c_44d2_ae68_fc4c148a6354); -} #[repr(C)] #[doc(hidden)] pub struct IMFImageSharingEngine_Vtbl { @@ -11158,9 +10092,8 @@ pub struct IMFImageSharingEngine_Vtbl { pub GetDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdevice: *mut DEVICE_INFO) -> ::windows_core::HRESULT, pub Shutdown: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFImageSharingEngineClassFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFImageSharingEngineClassFactory, IMFImageSharingEngineClassFactory_Vtbl, 0x1fc55727_a7fb_4fc8_83ae_8af024990af1); +::windows_core::imp::interface_hierarchy!(IMFImageSharingEngineClassFactory, ::windows_core::IUnknown); impl IMFImageSharingEngineClassFactory { pub unsafe fn CreateInstanceFromUDN(&self, puniquedevicename: P0) -> ::windows_core::Result where @@ -11170,22 +10103,14 @@ impl IMFImageSharingEngineClassFactory { (::windows_core::Interface::vtable(self).CreateInstanceFromUDN)(::windows_core::Interface::as_raw(self), puniquedevicename.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFImageSharingEngineClassFactory, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFImageSharingEngineClassFactory { - type Vtable = IMFImageSharingEngineClassFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFImageSharingEngineClassFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1fc55727_a7fb_4fc8_83ae_8af024990af1); -} #[repr(C)] #[doc(hidden)] pub struct IMFImageSharingEngineClassFactory_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub CreateInstanceFromUDN: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, puniquedevicename: ::std::mem::MaybeUninit<::windows_core::BSTR>, ppengine: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFInputTrustAuthority(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFInputTrustAuthority, IMFInputTrustAuthority_Vtbl, 0xd19f8e98_b126_4446_890c_5dcb7ad71453); +::windows_core::imp::interface_hierarchy!(IMFInputTrustAuthority, ::windows_core::IUnknown); impl IMFInputTrustAuthority { pub unsafe fn GetDecrypter(&self, riid: *const ::windows_core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetDecrypter)(::windows_core::Interface::as_raw(self), riid, ppv).ok() @@ -11208,13 +10133,6 @@ impl IMFInputTrustAuthority { (::windows_core::Interface::vtable(self).Reset)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IMFInputTrustAuthority, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFInputTrustAuthority { - type Vtable = IMFInputTrustAuthority_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFInputTrustAuthority { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd19f8e98_b126_4446_890c_5dcb7ad71453); -} #[repr(C)] #[doc(hidden)] pub struct IMFInputTrustAuthority_Vtbl { @@ -11226,30 +10144,21 @@ pub struct IMFInputTrustAuthority_Vtbl { pub UpdateAccess: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pparam: *const MFINPUTTRUSTAUTHORITY_ACCESS_PARAMS) -> ::windows_core::HRESULT, pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFLocalMFTRegistration(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFLocalMFTRegistration, IMFLocalMFTRegistration_Vtbl, 0x149c4d73_b4be_4f8d_8b87_079e926b6add); +::windows_core::imp::interface_hierarchy!(IMFLocalMFTRegistration, ::windows_core::IUnknown); impl IMFLocalMFTRegistration { pub unsafe fn RegisterMFTs(&self, pmfts: &[MFT_REGISTRATION_INFO]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).RegisterMFTs)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pmfts.as_ptr()), pmfts.len().try_into().unwrap()).ok() } } -::windows_core::imp::interface_hierarchy!(IMFLocalMFTRegistration, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFLocalMFTRegistration { - type Vtable = IMFLocalMFTRegistration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFLocalMFTRegistration { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x149c4d73_b4be_4f8d_8b87_079e926b6add); -} #[repr(C)] #[doc(hidden)] pub struct IMFLocalMFTRegistration_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub RegisterMFTs: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pmfts: *const MFT_REGISTRATION_INFO, cmfts: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFMediaBuffer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFMediaBuffer, IMFMediaBuffer_Vtbl, 0x045fa593_8799_42b8_bc8d_8968c6453507); +::windows_core::imp::interface_hierarchy!(IMFMediaBuffer, ::windows_core::IUnknown); impl IMFMediaBuffer { pub unsafe fn Lock(&self, ppbbuffer: *mut *mut u8, pcbmaxlength: ::core::option::Option<*mut u32>, pcbcurrentlength: ::core::option::Option<*mut u32>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Lock)(::windows_core::Interface::as_raw(self), ppbbuffer, ::core::mem::transmute(pcbmaxlength.unwrap_or(::std::ptr::null_mut())), ::core::mem::transmute(pcbcurrentlength.unwrap_or(::std::ptr::null_mut()))).ok() @@ -11269,13 +10178,6 @@ impl IMFMediaBuffer { (::windows_core::Interface::vtable(self).GetMaxLength)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFMediaBuffer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFMediaBuffer { - type Vtable = IMFMediaBuffer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFMediaBuffer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x045fa593_8799_42b8_bc8d_8968c6453507); -} #[repr(C)] #[doc(hidden)] pub struct IMFMediaBuffer_Vtbl { @@ -11286,9 +10188,8 @@ pub struct IMFMediaBuffer_Vtbl { pub SetCurrentLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cbcurrentlength: u32) -> ::windows_core::HRESULT, pub GetMaxLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcbmaxlength: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFMediaEngine(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFMediaEngine, IMFMediaEngine_Vtbl, 0x98a1b0bb_03eb_4935_ae7c_93c1fa0e1c93); +::windows_core::imp::interface_hierarchy!(IMFMediaEngine, ::windows_core::IUnknown); impl IMFMediaEngine { pub unsafe fn GetError(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -11445,13 +10346,6 @@ impl IMFMediaEngine { (::windows_core::Interface::vtable(self).OnVideoStreamTick)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFMediaEngine, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFMediaEngine { - type Vtable = IMFMediaEngine_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFMediaEngine { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x98a1b0bb_03eb_4935_ae7c_93c1fa0e1c93); -} #[repr(C)] #[doc(hidden)] pub struct IMFMediaEngine_Vtbl { @@ -11499,9 +10393,8 @@ pub struct IMFMediaEngine_Vtbl { pub TransferVideoFrame: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdstsurf: *mut ::core::ffi::c_void, psrc: *const MFVideoNormalizedRect, pdst: *const super::super::Foundation::RECT, pborderclr: *const MFARGB) -> ::windows_core::HRESULT, pub OnVideoStreamTick: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppts: *mut i64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFMediaEngineAudioEndpointId(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFMediaEngineAudioEndpointId, IMFMediaEngineAudioEndpointId_Vtbl, 0x7a3bac98_0e76_49fb_8c20_8a86fd98eaf2); +::windows_core::imp::interface_hierarchy!(IMFMediaEngineAudioEndpointId, ::windows_core::IUnknown); impl IMFMediaEngineAudioEndpointId { pub unsafe fn SetAudioEndpointId(&self, pszendpointid: P0) -> ::windows_core::Result<()> where @@ -11514,13 +10407,6 @@ impl IMFMediaEngineAudioEndpointId { (::windows_core::Interface::vtable(self).GetAudioEndpointId)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFMediaEngineAudioEndpointId, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFMediaEngineAudioEndpointId { - type Vtable = IMFMediaEngineAudioEndpointId_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFMediaEngineAudioEndpointId { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7a3bac98_0e76_49fb_8c20_8a86fd98eaf2); -} #[repr(C)] #[doc(hidden)] pub struct IMFMediaEngineAudioEndpointId_Vtbl { @@ -11528,9 +10414,8 @@ pub struct IMFMediaEngineAudioEndpointId_Vtbl { pub SetAudioEndpointId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszendpointid: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub GetAudioEndpointId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppszendpointid: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFMediaEngineClassFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFMediaEngineClassFactory, IMFMediaEngineClassFactory_Vtbl, 0x4d645ace_26aa_4688_9be1_df3516990b93); +::windows_core::imp::interface_hierarchy!(IMFMediaEngineClassFactory, ::windows_core::IUnknown); impl IMFMediaEngineClassFactory { pub unsafe fn CreateInstance(&self, dwflags: u32, pattr: P0) -> ::windows_core::Result where @@ -11548,13 +10433,6 @@ impl IMFMediaEngineClassFactory { (::windows_core::Interface::vtable(self).CreateError)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFMediaEngineClassFactory, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFMediaEngineClassFactory { - type Vtable = IMFMediaEngineClassFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFMediaEngineClassFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4d645ace_26aa_4688_9be1_df3516990b93); -} #[repr(C)] #[doc(hidden)] pub struct IMFMediaEngineClassFactory_Vtbl { @@ -11563,9 +10441,8 @@ pub struct IMFMediaEngineClassFactory_Vtbl { pub CreateTimeRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pptimerange: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pperror: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFMediaEngineClassFactory2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFMediaEngineClassFactory2, IMFMediaEngineClassFactory2_Vtbl, 0x09083cef_867f_4bf6_8776_dee3a7b42fca); +::windows_core::imp::interface_hierarchy!(IMFMediaEngineClassFactory2, ::windows_core::IUnknown); impl IMFMediaEngineClassFactory2 { pub unsafe fn CreateMediaKeys2(&self, keysystem: P0, defaultcdmstorepath: P1, inprivatecdmstorepath: P2) -> ::windows_core::Result where @@ -11577,22 +10454,14 @@ impl IMFMediaEngineClassFactory2 { (::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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFMediaEngineClassFactory2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFMediaEngineClassFactory2 { - type Vtable = IMFMediaEngineClassFactory2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFMediaEngineClassFactory2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x09083cef_867f_4bf6_8776_dee3a7b42fca); -} #[repr(C)] #[doc(hidden)] pub struct IMFMediaEngineClassFactory2_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub CreateMediaKeys2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, keysystem: ::std::mem::MaybeUninit<::windows_core::BSTR>, defaultcdmstorepath: ::std::mem::MaybeUninit<::windows_core::BSTR>, inprivatecdmstorepath: ::std::mem::MaybeUninit<::windows_core::BSTR>, ppkeys: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFMediaEngineClassFactory3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFMediaEngineClassFactory3, IMFMediaEngineClassFactory3_Vtbl, 0x3787614f_65f7_4003_b673_ead8293a0e60); +::windows_core::imp::interface_hierarchy!(IMFMediaEngineClassFactory3, ::windows_core::IUnknown); impl IMFMediaEngineClassFactory3 { #[doc = "Required features: `\"Win32_UI_Shell_PropertiesSystem\"`"] #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] @@ -11604,13 +10473,6 @@ impl IMFMediaEngineClassFactory3 { (::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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFMediaEngineClassFactory3, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFMediaEngineClassFactory3 { - type Vtable = IMFMediaEngineClassFactory3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFMediaEngineClassFactory3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3787614f_65f7_4003_b673_ead8293a0e60); -} #[repr(C)] #[doc(hidden)] pub struct IMFMediaEngineClassFactory3_Vtbl { @@ -11620,9 +10482,8 @@ pub struct IMFMediaEngineClassFactory3_Vtbl { #[cfg(not(feature = "Win32_UI_Shell_PropertiesSystem"))] CreateMediaKeySystemAccess: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFMediaEngineClassFactory4(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFMediaEngineClassFactory4, IMFMediaEngineClassFactory4_Vtbl, 0xfbe256c1_43cf_4a9b_8cb8_ce8632a34186); +::windows_core::imp::interface_hierarchy!(IMFMediaEngineClassFactory4, ::windows_core::IUnknown); 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 @@ -11631,22 +10492,14 @@ impl IMFMediaEngineClassFactory4 { (::windows_core::Interface::vtable(self).CreateContentDecryptionModuleFactory)(::windows_core::Interface::as_raw(self), keysystem.into_param().abi(), riid, ppvobject).ok() } } -::windows_core::imp::interface_hierarchy!(IMFMediaEngineClassFactory4, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFMediaEngineClassFactory4 { - type Vtable = IMFMediaEngineClassFactory4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFMediaEngineClassFactory4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfbe256c1_43cf_4a9b_8cb8_ce8632a34186); -} #[repr(C)] #[doc(hidden)] pub struct IMFMediaEngineClassFactory4_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub CreateContentDecryptionModuleFactory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, keysystem: ::windows_core::PCWSTR, riid: *const ::windows_core::GUID, ppvobject: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFMediaEngineClassFactoryEx(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFMediaEngineClassFactoryEx, IMFMediaEngineClassFactoryEx_Vtbl, 0xc56156c6_ea5b_48a5_9df8_fbe035d0929e); +::windows_core::imp::interface_hierarchy!(IMFMediaEngineClassFactoryEx, ::windows_core::IUnknown, IMFMediaEngineClassFactory); impl IMFMediaEngineClassFactoryEx { pub unsafe fn CreateInstance(&self, dwflags: u32, pattr: P0) -> ::windows_core::Result where @@ -11687,13 +10540,6 @@ impl IMFMediaEngineClassFactoryEx { (::windows_core::Interface::vtable(self).IsTypeSupported)(::windows_core::Interface::as_raw(self), r#type.into_param().abi(), keysystem.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFMediaEngineClassFactoryEx, ::windows_core::IUnknown, IMFMediaEngineClassFactory); -unsafe impl ::windows_core::Interface for IMFMediaEngineClassFactoryEx { - type Vtable = IMFMediaEngineClassFactoryEx_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFMediaEngineClassFactoryEx { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc56156c6_ea5b_48a5_9df8_fbe035d0929e); -} #[repr(C)] #[doc(hidden)] pub struct IMFMediaEngineClassFactoryEx_Vtbl { @@ -11702,9 +10548,8 @@ pub struct IMFMediaEngineClassFactoryEx_Vtbl { pub CreateMediaKeys: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, keysystem: ::std::mem::MaybeUninit<::windows_core::BSTR>, cdmstorepath: ::std::mem::MaybeUninit<::windows_core::BSTR>, ppkeys: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub IsTypeSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: ::std::mem::MaybeUninit<::windows_core::BSTR>, keysystem: ::std::mem::MaybeUninit<::windows_core::BSTR>, issupported: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFMediaEngineEME(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFMediaEngineEME, IMFMediaEngineEME_Vtbl, 0x50dc93e4_ba4f_4275_ae66_83e836e57469); +::windows_core::imp::interface_hierarchy!(IMFMediaEngineEME, ::windows_core::IUnknown); impl IMFMediaEngineEME { pub unsafe fn Keys(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -11717,13 +10562,6 @@ impl IMFMediaEngineEME { (::windows_core::Interface::vtable(self).SetMediaKeys)(::windows_core::Interface::as_raw(self), keys.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMFMediaEngineEME, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFMediaEngineEME { - type Vtable = IMFMediaEngineEME_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFMediaEngineEME { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x50dc93e4_ba4f_4275_ae66_83e836e57469); -} #[repr(C)] #[doc(hidden)] pub struct IMFMediaEngineEME_Vtbl { @@ -11731,9 +10569,8 @@ pub struct IMFMediaEngineEME_Vtbl { pub Keys: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, keys: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetMediaKeys: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, keys: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFMediaEngineEMENotify(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFMediaEngineEMENotify, IMFMediaEngineEMENotify_Vtbl, 0x9e184d15_cdb7_4f86_b49e_566689f4a601); +::windows_core::imp::interface_hierarchy!(IMFMediaEngineEMENotify, ::windows_core::IUnknown); impl IMFMediaEngineEMENotify { pub unsafe fn Encrypted(&self, pbinitdata: ::core::option::Option<&[u8]>, bstrinitdatatype: P0) where @@ -11745,13 +10582,6 @@ impl IMFMediaEngineEMENotify { (::windows_core::Interface::vtable(self).WaitingForKey)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(IMFMediaEngineEMENotify, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFMediaEngineEMENotify { - type Vtable = IMFMediaEngineEMENotify_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFMediaEngineEMENotify { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9e184d15_cdb7_4f86_b49e_566689f4a601); -} #[repr(C)] #[doc(hidden)] pub struct IMFMediaEngineEMENotify_Vtbl { @@ -11759,9 +10589,8 @@ pub struct IMFMediaEngineEMENotify_Vtbl { pub Encrypted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbinitdata: *const u8, cb: u32, bstrinitdatatype: ::std::mem::MaybeUninit<::windows_core::BSTR>), pub WaitingForKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFMediaEngineEx(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFMediaEngineEx, IMFMediaEngineEx_Vtbl, 0x83015ead_b1e6_40d0_a98a_37145ffe1ad1); +::windows_core::imp::interface_hierarchy!(IMFMediaEngineEx, ::windows_core::IUnknown, IMFMediaEngine); impl IMFMediaEngineEx { pub unsafe fn GetError(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -12079,13 +10908,6 @@ impl IMFMediaEngineEx { (::windows_core::Interface::vtable(self).EnableTimeUpdateTimer)(::windows_core::Interface::as_raw(self), fenabletimer.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMFMediaEngineEx, ::windows_core::IUnknown, IMFMediaEngine); -unsafe impl ::windows_core::Interface for IMFMediaEngineEx { - type Vtable = IMFMediaEngineEx_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFMediaEngineEx { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x83015ead_b1e6_40d0_a98a_37145ffe1ad1); -} #[repr(C)] #[doc(hidden)] pub struct IMFMediaEngineEx_Vtbl { @@ -12137,9 +10959,8 @@ pub struct IMFMediaEngineEx_Vtbl { pub SetCurrentTimeEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, seektime: f64, seekmode: MF_MEDIA_ENGINE_SEEK_MODE) -> ::windows_core::HRESULT, pub EnableTimeUpdateTimer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fenabletimer: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFMediaEngineExtension(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFMediaEngineExtension, IMFMediaEngineExtension_Vtbl, 0x2f69d622_20b5_41e9_afdf_89ced1dda04e); +::windows_core::imp::interface_hierarchy!(IMFMediaEngineExtension, ::windows_core::IUnknown); impl IMFMediaEngineExtension { pub unsafe fn CanPlayType(&self, audioonly: P0, mimetype: P1) -> ::windows_core::Result where @@ -12172,13 +10993,6 @@ impl IMFMediaEngineExtension { (::windows_core::Interface::vtable(self).EndCreateObject)(::windows_core::Interface::as_raw(self), presult.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFMediaEngineExtension, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFMediaEngineExtension { - type Vtable = IMFMediaEngineExtension_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFMediaEngineExtension { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2f69d622_20b5_41e9_afdf_89ced1dda04e); -} #[repr(C)] #[doc(hidden)] pub struct IMFMediaEngineExtension_Vtbl { @@ -12188,72 +11002,47 @@ pub struct IMFMediaEngineExtension_Vtbl { pub CancelObjectCreation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, piunknowncancelcookie: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub EndCreateObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, presult: *mut ::core::ffi::c_void, ppobject: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFMediaEngineNeedKeyNotify(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFMediaEngineNeedKeyNotify, IMFMediaEngineNeedKeyNotify_Vtbl, 0x46a30204_a696_4b18_8804_246b8f031bb1); +::windows_core::imp::interface_hierarchy!(IMFMediaEngineNeedKeyNotify, ::windows_core::IUnknown); impl IMFMediaEngineNeedKeyNotify { pub unsafe fn NeedKey(&self, initdata: ::core::option::Option<&[u8]>) { (::windows_core::Interface::vtable(self).NeedKey)(::windows_core::Interface::as_raw(self), ::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())) } } -::windows_core::imp::interface_hierarchy!(IMFMediaEngineNeedKeyNotify, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFMediaEngineNeedKeyNotify { - type Vtable = IMFMediaEngineNeedKeyNotify_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFMediaEngineNeedKeyNotify { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x46a30204_a696_4b18_8804_246b8f031bb1); -} #[repr(C)] #[doc(hidden)] pub struct IMFMediaEngineNeedKeyNotify_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub NeedKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, initdata: *const u8, cb: u32), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFMediaEngineNotify(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFMediaEngineNotify, IMFMediaEngineNotify_Vtbl, 0xfee7c112_e776_42b5_9bbf_0048524e2bd5); +::windows_core::imp::interface_hierarchy!(IMFMediaEngineNotify, ::windows_core::IUnknown); impl IMFMediaEngineNotify { pub unsafe fn EventNotify(&self, event: u32, param1: usize, param2: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).EventNotify)(::windows_core::Interface::as_raw(self), event, param1, param2).ok() } } -::windows_core::imp::interface_hierarchy!(IMFMediaEngineNotify, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFMediaEngineNotify { - type Vtable = IMFMediaEngineNotify_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFMediaEngineNotify { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfee7c112_e776_42b5_9bbf_0048524e2bd5); -} #[repr(C)] #[doc(hidden)] pub struct IMFMediaEngineNotify_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub EventNotify: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, event: u32, param1: usize, param2: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFMediaEngineOPMInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFMediaEngineOPMInfo, IMFMediaEngineOPMInfo_Vtbl, 0x765763e6_6c01_4b01_bb0f_b829f60ed28c); +::windows_core::imp::interface_hierarchy!(IMFMediaEngineOPMInfo, ::windows_core::IUnknown); impl IMFMediaEngineOPMInfo { pub unsafe fn GetOPMInfo(&self, pstatus: *mut MF_MEDIA_ENGINE_OPM_STATUS, pconstricted: *mut super::super::Foundation::BOOL) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetOPMInfo)(::windows_core::Interface::as_raw(self), pstatus, pconstricted).ok() } } -::windows_core::imp::interface_hierarchy!(IMFMediaEngineOPMInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFMediaEngineOPMInfo { - type Vtable = IMFMediaEngineOPMInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFMediaEngineOPMInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x765763e6_6c01_4b01_bb0f_b829f60ed28c); -} #[repr(C)] #[doc(hidden)] pub struct IMFMediaEngineOPMInfo_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetOPMInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstatus: *mut MF_MEDIA_ENGINE_OPM_STATUS, pconstricted: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFMediaEngineProtectedContent(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFMediaEngineProtectedContent, IMFMediaEngineProtectedContent_Vtbl, 0x9f8021e8_9c8c_487e_bb5c_79aa4779938c); +::windows_core::imp::interface_hierarchy!(IMFMediaEngineProtectedContent, ::windows_core::IUnknown); impl IMFMediaEngineProtectedContent { pub unsafe fn ShareResources(&self, punkdevicecontext: P0) -> ::windows_core::Result<()> where @@ -12288,13 +11077,6 @@ impl IMFMediaEngineProtectedContent { (::windows_core::Interface::vtable(self).SetApplicationCertificate)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pbblob.as_ptr()), pbblob.len().try_into().unwrap()).ok() } } -::windows_core::imp::interface_hierarchy!(IMFMediaEngineProtectedContent, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFMediaEngineProtectedContent { - type Vtable = IMFMediaEngineProtectedContent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFMediaEngineProtectedContent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9f8021e8_9c8c_487e_bb5c_79aa4779938c); -} #[repr(C)] #[doc(hidden)] pub struct IMFMediaEngineProtectedContent_Vtbl { @@ -12306,9 +11088,8 @@ pub struct IMFMediaEngineProtectedContent_Vtbl { pub SetContentProtectionManager: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcpm: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetApplicationCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbblob: *const u8, cbblob: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFMediaEngineSrcElements(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFMediaEngineSrcElements, IMFMediaEngineSrcElements_Vtbl, 0x7a5e5354_b114_4c72_b991_3131d75032ea); +::windows_core::imp::interface_hierarchy!(IMFMediaEngineSrcElements, ::windows_core::IUnknown); impl IMFMediaEngineSrcElements { pub unsafe fn GetLength(&self) -> u32 { (::windows_core::Interface::vtable(self).GetLength)(::windows_core::Interface::as_raw(self)) @@ -12337,13 +11118,6 @@ impl IMFMediaEngineSrcElements { (::windows_core::Interface::vtable(self).RemoveAllElements)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IMFMediaEngineSrcElements, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFMediaEngineSrcElements { - type Vtable = IMFMediaEngineSrcElements_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFMediaEngineSrcElements { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7a5e5354_b114_4c72_b991_3131d75032ea); -} #[repr(C)] #[doc(hidden)] pub struct IMFMediaEngineSrcElements_Vtbl { @@ -12355,9 +11129,8 @@ pub struct IMFMediaEngineSrcElements_Vtbl { pub AddElement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, purl: ::std::mem::MaybeUninit<::windows_core::BSTR>, ptype: ::std::mem::MaybeUninit<::windows_core::BSTR>, pmedia: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub RemoveAllElements: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFMediaEngineSrcElementsEx(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFMediaEngineSrcElementsEx, IMFMediaEngineSrcElementsEx_Vtbl, 0x654a6bb3_e1a3_424a_9908_53a43a0dfda0); +::windows_core::imp::interface_hierarchy!(IMFMediaEngineSrcElementsEx, ::windows_core::IUnknown, IMFMediaEngineSrcElements); impl IMFMediaEngineSrcElementsEx { pub unsafe fn GetLength(&self) -> u32 { (::windows_core::Interface::vtable(self).base__.GetLength)(::windows_core::Interface::as_raw(self)) @@ -12399,13 +11172,6 @@ impl IMFMediaEngineSrcElementsEx { (::windows_core::Interface::vtable(self).GetKeySystem)(::windows_core::Interface::as_raw(self), index, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFMediaEngineSrcElementsEx, ::windows_core::IUnknown, IMFMediaEngineSrcElements); -unsafe impl ::windows_core::Interface for IMFMediaEngineSrcElementsEx { - type Vtable = IMFMediaEngineSrcElementsEx_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFMediaEngineSrcElementsEx { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x654a6bb3_e1a3_424a_9908_53a43a0dfda0); -} #[repr(C)] #[doc(hidden)] pub struct IMFMediaEngineSrcElementsEx_Vtbl { @@ -12413,9 +11179,8 @@ pub struct IMFMediaEngineSrcElementsEx_Vtbl { pub AddElementEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, purl: ::std::mem::MaybeUninit<::windows_core::BSTR>, ptype: ::std::mem::MaybeUninit<::windows_core::BSTR>, pmedia: ::std::mem::MaybeUninit<::windows_core::BSTR>, keysystem: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub GetKeySystem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, ptype: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFMediaEngineSupportsSourceTransfer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFMediaEngineSupportsSourceTransfer, IMFMediaEngineSupportsSourceTransfer_Vtbl, 0xa724b056_1b2e_4642_a6f3_db9420c52908); +::windows_core::imp::interface_hierarchy!(IMFMediaEngineSupportsSourceTransfer, ::windows_core::IUnknown); impl IMFMediaEngineSupportsSourceTransfer { pub unsafe fn ShouldTransferSource(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -12433,13 +11198,6 @@ impl IMFMediaEngineSupportsSourceTransfer { (::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::imp::interface_hierarchy!(IMFMediaEngineSupportsSourceTransfer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFMediaEngineSupportsSourceTransfer { - type Vtable = IMFMediaEngineSupportsSourceTransfer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFMediaEngineSupportsSourceTransfer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa724b056_1b2e_4642_a6f3_db9420c52908); -} #[repr(C)] #[doc(hidden)] pub struct IMFMediaEngineSupportsSourceTransfer_Vtbl { @@ -12448,9 +11206,8 @@ pub struct IMFMediaEngineSupportsSourceTransfer_Vtbl { pub DetachMediaSource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppbytestream: *mut *mut ::core::ffi::c_void, ppmediasource: *mut *mut ::core::ffi::c_void, ppmse: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub AttachMediaSource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbytestream: *mut ::core::ffi::c_void, pmediasource: *mut ::core::ffi::c_void, pmse: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFMediaEngineTransferSource(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFMediaEngineTransferSource, IMFMediaEngineTransferSource_Vtbl, 0x24230452_fe54_40cc_94f3_fcc394c340d6); +::windows_core::imp::interface_hierarchy!(IMFMediaEngineTransferSource, ::windows_core::IUnknown); impl IMFMediaEngineTransferSource { pub unsafe fn TransferSourceToMediaEngine(&self, destination: P0) -> ::windows_core::Result<()> where @@ -12459,22 +11216,14 @@ impl IMFMediaEngineTransferSource { (::windows_core::Interface::vtable(self).TransferSourceToMediaEngine)(::windows_core::Interface::as_raw(self), destination.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMFMediaEngineTransferSource, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFMediaEngineTransferSource { - type Vtable = IMFMediaEngineTransferSource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFMediaEngineTransferSource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x24230452_fe54_40cc_94f3_fcc394c340d6); -} #[repr(C)] #[doc(hidden)] pub struct IMFMediaEngineTransferSource_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub TransferSourceToMediaEngine: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, destination: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFMediaEngineWebSupport(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFMediaEngineWebSupport, IMFMediaEngineWebSupport_Vtbl, 0xba2743a1_07e0_48ef_84b6_9a2ed023ca6c); +::windows_core::imp::interface_hierarchy!(IMFMediaEngineWebSupport, ::windows_core::IUnknown); impl IMFMediaEngineWebSupport { pub unsafe fn ShouldDelayTheLoadEvent(&self) -> super::super::Foundation::BOOL { (::windows_core::Interface::vtable(self).ShouldDelayTheLoadEvent)(::windows_core::Interface::as_raw(self)) @@ -12487,13 +11236,6 @@ impl IMFMediaEngineWebSupport { (::windows_core::Interface::vtable(self).DisconnectWebAudio)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IMFMediaEngineWebSupport, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFMediaEngineWebSupport { - type Vtable = IMFMediaEngineWebSupport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFMediaEngineWebSupport { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xba2743a1_07e0_48ef_84b6_9a2ed023ca6c); -} #[repr(C)] #[doc(hidden)] pub struct IMFMediaEngineWebSupport_Vtbl { @@ -12502,9 +11244,8 @@ pub struct IMFMediaEngineWebSupport_Vtbl { pub ConnectWebAudio: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwsamplerate: u32, ppsourceprovider: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub DisconnectWebAudio: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFMediaError(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFMediaError, IMFMediaError_Vtbl, 0xfc0e10d2_ab2a_4501_a951_06bb1075184c); +::windows_core::imp::interface_hierarchy!(IMFMediaError, ::windows_core::IUnknown); impl IMFMediaError { pub unsafe fn GetErrorCode(&self) -> u16 { (::windows_core::Interface::vtable(self).GetErrorCode)(::windows_core::Interface::as_raw(self)) @@ -12519,13 +11260,6 @@ impl IMFMediaError { (::windows_core::Interface::vtable(self).SetExtendedErrorCode)(::windows_core::Interface::as_raw(self), error).ok() } } -::windows_core::imp::interface_hierarchy!(IMFMediaError, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFMediaError { - type Vtable = IMFMediaError_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFMediaError { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfc0e10d2_ab2a_4501_a951_06bb1075184c); -} #[repr(C)] #[doc(hidden)] pub struct IMFMediaError_Vtbl { @@ -12535,9 +11269,8 @@ pub struct IMFMediaError_Vtbl { pub SetErrorCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, error: MF_MEDIA_ENGINE_ERR) -> ::windows_core::HRESULT, pub SetExtendedErrorCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, error: ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFMediaEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFMediaEvent, IMFMediaEvent_Vtbl, 0xdf598932_f10c_4e39_bba2_c308f101daa3); +::windows_core::imp::interface_hierarchy!(IMFMediaEvent, ::windows_core::IUnknown, IMFAttributes); impl IMFMediaEvent { #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] @@ -12599,7 +11332,7 @@ impl IMFMediaEvent { } pub unsafe fn GetUnknown(&self, guidkey: *const ::windows_core::GUID) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.GetUnknown)(::windows_core::Interface::as_raw(self), guidkey, &T::IID, &mut result__).from_abi(result__) @@ -12682,13 +11415,6 @@ impl IMFMediaEvent { (::windows_core::Interface::vtable(self).GetValue)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFMediaEvent, ::windows_core::IUnknown, IMFAttributes); -unsafe impl ::windows_core::Interface for IMFMediaEvent { - type Vtable = IMFMediaEvent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFMediaEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdf598932_f10c_4e39_bba2_c308f101daa3); -} #[repr(C)] #[doc(hidden)] pub struct IMFMediaEvent_Vtbl { @@ -12701,9 +11427,8 @@ pub struct IMFMediaEvent_Vtbl { #[cfg(not(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant")))] GetValue: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFMediaEventGenerator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFMediaEventGenerator, IMFMediaEventGenerator_Vtbl, 0x2cd0bd52_bcd5_4b89_b62c_eadc0c031e7d); +::windows_core::imp::interface_hierarchy!(IMFMediaEventGenerator, ::windows_core::IUnknown); impl IMFMediaEventGenerator { pub unsafe fn GetEvent(&self, dwflags: MEDIA_EVENT_GENERATOR_GET_EVENT_FLAGS) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -12729,13 +11454,6 @@ impl IMFMediaEventGenerator { (::windows_core::Interface::vtable(self).QueueEvent)(::windows_core::Interface::as_raw(self), met, guidextendedtype, hrstatus, pvvalue).ok() } } -::windows_core::imp::interface_hierarchy!(IMFMediaEventGenerator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFMediaEventGenerator { - type Vtable = IMFMediaEventGenerator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFMediaEventGenerator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2cd0bd52_bcd5_4b89_b62c_eadc0c031e7d); -} #[repr(C)] #[doc(hidden)] pub struct IMFMediaEventGenerator_Vtbl { @@ -12748,9 +11466,8 @@ pub struct IMFMediaEventGenerator_Vtbl { #[cfg(not(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant")))] QueueEvent: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFMediaEventQueue(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFMediaEventQueue, IMFMediaEventQueue_Vtbl, 0x36f846fc_2256_48b6_b58e_e2b638316581); +::windows_core::imp::interface_hierarchy!(IMFMediaEventQueue, ::windows_core::IUnknown); impl IMFMediaEventQueue { pub unsafe fn GetEvent(&self, dwflags: u32) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -12791,13 +11508,6 @@ impl IMFMediaEventQueue { (::windows_core::Interface::vtable(self).Shutdown)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IMFMediaEventQueue, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFMediaEventQueue { - type Vtable = IMFMediaEventQueue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFMediaEventQueue { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x36f846fc_2256_48b6_b58e_e2b638316581); -} #[repr(C)] #[doc(hidden)] pub struct IMFMediaEventQueue_Vtbl { @@ -12813,9 +11523,8 @@ pub struct IMFMediaEventQueue_Vtbl { pub QueueEventParamUnk: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, met: u32, guidextendedtype: *const ::windows_core::GUID, hrstatus: ::windows_core::HRESULT, punk: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Shutdown: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFMediaKeySession(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFMediaKeySession, IMFMediaKeySession_Vtbl, 0x24fa67d5_d1d0_4dc5_995c_c0efdc191fb5); +::windows_core::imp::interface_hierarchy!(IMFMediaKeySession, ::windows_core::IUnknown); impl IMFMediaKeySession { pub unsafe fn GetError(&self, code: *mut u16, systemcode: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetError)(::windows_core::Interface::as_raw(self), code, systemcode).ok() @@ -12835,13 +11544,6 @@ impl IMFMediaKeySession { (::windows_core::Interface::vtable(self).Close)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IMFMediaKeySession, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFMediaKeySession { - type Vtable = IMFMediaKeySession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFMediaKeySession { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x24fa67d5_d1d0_4dc5_995c_c0efdc191fb5); -} #[repr(C)] #[doc(hidden)] pub struct IMFMediaKeySession_Vtbl { @@ -12852,9 +11554,8 @@ pub struct IMFMediaKeySession_Vtbl { pub Update: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, key: *const u8, cb: u32) -> ::windows_core::HRESULT, pub Close: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFMediaKeySession2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFMediaKeySession2, IMFMediaKeySession2_Vtbl, 0xe9707e05_6d55_4636_b185_3de21210bd75); +::windows_core::imp::interface_hierarchy!(IMFMediaKeySession2, ::windows_core::IUnknown, IMFMediaKeySession); impl IMFMediaKeySession2 { pub unsafe fn GetError(&self, code: *mut u16, systemcode: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.GetError)(::windows_core::Interface::as_raw(self), code, systemcode).ok() @@ -12900,13 +11601,6 @@ impl IMFMediaKeySession2 { (::windows_core::Interface::vtable(self).Shutdown)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IMFMediaKeySession2, ::windows_core::IUnknown, IMFMediaKeySession); -unsafe impl ::windows_core::Interface for IMFMediaKeySession2 { - type Vtable = IMFMediaKeySession2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFMediaKeySession2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe9707e05_6d55_4636_b185_3de21210bd75); -} #[repr(C)] #[doc(hidden)] pub struct IMFMediaKeySession2_Vtbl { @@ -12918,9 +11612,8 @@ pub struct IMFMediaKeySession2_Vtbl { pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Shutdown: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFMediaKeySessionNotify(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFMediaKeySessionNotify, IMFMediaKeySessionNotify_Vtbl, 0x6a0083f9_8947_4c1d_9ce0_cdee22b23135); +::windows_core::imp::interface_hierarchy!(IMFMediaKeySessionNotify, ::windows_core::IUnknown); impl IMFMediaKeySessionNotify { pub unsafe fn KeyMessage(&self, destinationurl: P0, message: &[u8]) where @@ -12935,13 +11628,6 @@ impl IMFMediaKeySessionNotify { (::windows_core::Interface::vtable(self).KeyError)(::windows_core::Interface::as_raw(self), code, systemcode) } } -::windows_core::imp::interface_hierarchy!(IMFMediaKeySessionNotify, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFMediaKeySessionNotify { - type Vtable = IMFMediaKeySessionNotify_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFMediaKeySessionNotify { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6a0083f9_8947_4c1d_9ce0_cdee22b23135); -} #[repr(C)] #[doc(hidden)] pub struct IMFMediaKeySessionNotify_Vtbl { @@ -12950,9 +11636,8 @@ pub struct IMFMediaKeySessionNotify_Vtbl { pub KeyAdded: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), pub KeyError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, code: u16, systemcode: u32), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFMediaKeySessionNotify2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFMediaKeySessionNotify2, IMFMediaKeySessionNotify2_Vtbl, 0xc3a9e92a_da88_46b0_a110_6cf953026cb9); +::windows_core::imp::interface_hierarchy!(IMFMediaKeySessionNotify2, ::windows_core::IUnknown, IMFMediaKeySessionNotify); impl IMFMediaKeySessionNotify2 { pub unsafe fn KeyMessage(&self, destinationurl: P0, message: &[u8]) where @@ -12976,13 +11661,6 @@ impl IMFMediaKeySessionNotify2 { (::windows_core::Interface::vtable(self).KeyStatusChange)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(IMFMediaKeySessionNotify2, ::windows_core::IUnknown, IMFMediaKeySessionNotify); -unsafe impl ::windows_core::Interface for IMFMediaKeySessionNotify2 { - type Vtable = IMFMediaKeySessionNotify2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFMediaKeySessionNotify2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc3a9e92a_da88_46b0_a110_6cf953026cb9); -} #[repr(C)] #[doc(hidden)] pub struct IMFMediaKeySessionNotify2_Vtbl { @@ -12990,9 +11668,8 @@ pub struct IMFMediaKeySessionNotify2_Vtbl { pub KeyMessage2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, emessagetype: MF_MEDIAKEYSESSION_MESSAGETYPE, destinationurl: ::std::mem::MaybeUninit<::windows_core::BSTR>, pbmessage: *const u8, cbmessage: u32), pub KeyStatusChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFMediaKeySystemAccess(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFMediaKeySystemAccess, IMFMediaKeySystemAccess_Vtbl, 0xaec63fda_7a97_4944_b35c_6c6df8085cc3); +::windows_core::imp::interface_hierarchy!(IMFMediaKeySystemAccess, ::windows_core::IUnknown); impl IMFMediaKeySystemAccess { #[doc = "Required features: `\"Win32_UI_Shell_PropertiesSystem\"`"] #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] @@ -13014,13 +11691,6 @@ impl IMFMediaKeySystemAccess { (::windows_core::Interface::vtable(self).KeySystem)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFMediaKeySystemAccess, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFMediaKeySystemAccess { - type Vtable = IMFMediaKeySystemAccess_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFMediaKeySystemAccess { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaec63fda_7a97_4944_b35c_6c6df8085cc3); -} #[repr(C)] #[doc(hidden)] pub struct IMFMediaKeySystemAccess_Vtbl { @@ -13035,9 +11705,8 @@ pub struct IMFMediaKeySystemAccess_Vtbl { SupportedConfiguration: usize, pub KeySystem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pkeysystem: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFMediaKeys(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFMediaKeys, IMFMediaKeys_Vtbl, 0x5cb31c05_61ff_418f_afda_caaf41421a38); +::windows_core::imp::interface_hierarchy!(IMFMediaKeys, ::windows_core::IUnknown); impl IMFMediaKeys { pub unsafe fn CreateSession(&self, mimetype: P0, initdata: ::core::option::Option<&[u8]>, customdata: ::core::option::Option<&[u8]>, notify: P1) -> ::windows_core::Result where @@ -13059,13 +11728,6 @@ impl IMFMediaKeys { (::windows_core::Interface::vtable(self).GetSuspendNotify)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFMediaKeys, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFMediaKeys { - type Vtable = IMFMediaKeys_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFMediaKeys { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5cb31c05_61ff_418f_afda_caaf41421a38); -} #[repr(C)] #[doc(hidden)] pub struct IMFMediaKeys_Vtbl { @@ -13075,9 +11737,8 @@ pub struct IMFMediaKeys_Vtbl { pub Shutdown: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetSuspendNotify: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, notify: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFMediaKeys2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFMediaKeys2, IMFMediaKeys2_Vtbl, 0x45892507_ad66_4de2_83a2_acbb13cd8d43); +::windows_core::imp::interface_hierarchy!(IMFMediaKeys2, ::windows_core::IUnknown, IMFMediaKeys); impl IMFMediaKeys2 { pub unsafe fn CreateSession(&self, mimetype: P0, initdata: ::core::option::Option<&[u8]>, customdata: ::core::option::Option<&[u8]>, notify: P1) -> ::windows_core::Result where @@ -13113,13 +11774,6 @@ impl IMFMediaKeys2 { (::windows_core::Interface::vtable(self).GetDOMException)(::windows_core::Interface::as_raw(self), systemcode, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFMediaKeys2, ::windows_core::IUnknown, IMFMediaKeys); -unsafe impl ::windows_core::Interface for IMFMediaKeys2 { - type Vtable = IMFMediaKeys2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFMediaKeys2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x45892507_ad66_4de2_83a2_acbb13cd8d43); -} #[repr(C)] #[doc(hidden)] pub struct IMFMediaKeys2_Vtbl { @@ -13128,9 +11782,8 @@ pub struct IMFMediaKeys2_Vtbl { pub SetServerCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbservercertificate: *const u8, cb: u32) -> ::windows_core::HRESULT, pub GetDOMException: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, systemcode: ::windows_core::HRESULT, code: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFMediaSession(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFMediaSession, IMFMediaSession_Vtbl, 0x90377834_21d0_4dee_8214_ba2e3e6c1127); +::windows_core::imp::interface_hierarchy!(IMFMediaSession, ::windows_core::IUnknown, IMFMediaEventGenerator); impl IMFMediaSession { pub unsafe fn GetEvent(&self, dwflags: MEDIA_EVENT_GENERATOR_GET_EVENT_FLAGS) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -13194,13 +11847,6 @@ impl IMFMediaSession { (::windows_core::Interface::vtable(self).GetFullTopology)(::windows_core::Interface::as_raw(self), dwgetfulltopologyflags, topoid, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFMediaSession, ::windows_core::IUnknown, IMFMediaEventGenerator); -unsafe impl ::windows_core::Interface for IMFMediaSession { - type Vtable = IMFMediaSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFMediaSession { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x90377834_21d0_4dee_8214_ba2e3e6c1127); -} #[repr(C)] #[doc(hidden)] pub struct IMFMediaSession_Vtbl { @@ -13219,9 +11865,8 @@ pub struct IMFMediaSession_Vtbl { pub GetSessionCapabilities: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwcaps: *mut u32) -> ::windows_core::HRESULT, pub GetFullTopology: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwgetfulltopologyflags: u32, topoid: u64, ppfulltopology: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFMediaSharingEngine(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFMediaSharingEngine, IMFMediaSharingEngine_Vtbl, 0x8d3ce1bf_2367_40e0_9eee_40d377cc1b46); +::windows_core::imp::interface_hierarchy!(IMFMediaSharingEngine, ::windows_core::IUnknown, IMFMediaEngine); impl IMFMediaSharingEngine { pub unsafe fn GetError(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -13381,22 +12026,14 @@ impl IMFMediaSharingEngine { (::windows_core::Interface::vtable(self).GetDevice)(::windows_core::Interface::as_raw(self), pdevice).ok() } } -::windows_core::imp::interface_hierarchy!(IMFMediaSharingEngine, ::windows_core::IUnknown, IMFMediaEngine); -unsafe impl ::windows_core::Interface for IMFMediaSharingEngine { - type Vtable = IMFMediaSharingEngine_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFMediaSharingEngine { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8d3ce1bf_2367_40e0_9eee_40d377cc1b46); -} #[repr(C)] #[doc(hidden)] pub struct IMFMediaSharingEngine_Vtbl { pub base__: IMFMediaEngine_Vtbl, pub GetDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdevice: *mut DEVICE_INFO) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFMediaSharingEngineClassFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFMediaSharingEngineClassFactory, IMFMediaSharingEngineClassFactory_Vtbl, 0x524d2bc4_b2b1_4fe5_8fac_fa4e4512b4e0); +::windows_core::imp::interface_hierarchy!(IMFMediaSharingEngineClassFactory, ::windows_core::IUnknown); impl IMFMediaSharingEngineClassFactory { pub unsafe fn CreateInstance(&self, dwflags: u32, pattr: P0) -> ::windows_core::Result where @@ -13406,22 +12043,14 @@ impl IMFMediaSharingEngineClassFactory { (::windows_core::Interface::vtable(self).CreateInstance)(::windows_core::Interface::as_raw(self), dwflags, pattr.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFMediaSharingEngineClassFactory, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFMediaSharingEngineClassFactory { - type Vtable = IMFMediaSharingEngineClassFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFMediaSharingEngineClassFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x524d2bc4_b2b1_4fe5_8fac_fa4e4512b4e0); -} #[repr(C)] #[doc(hidden)] pub struct IMFMediaSharingEngineClassFactory_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwflags: u32, pattr: *mut ::core::ffi::c_void, ppengine: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFMediaSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFMediaSink, IMFMediaSink_Vtbl, 0x6ef2a660_47c0_4666_b13d_cbb717f2fa2c); +::windows_core::imp::interface_hierarchy!(IMFMediaSink, ::windows_core::IUnknown); impl IMFMediaSink { pub unsafe fn GetCharacteristics(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -13463,13 +12092,6 @@ impl IMFMediaSink { (::windows_core::Interface::vtable(self).Shutdown)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IMFMediaSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFMediaSink { - type Vtable = IMFMediaSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFMediaSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6ef2a660_47c0_4666_b13d_cbb717f2fa2c); -} #[repr(C)] #[doc(hidden)] pub struct IMFMediaSink_Vtbl { @@ -13484,30 +12106,21 @@ pub struct IMFMediaSink_Vtbl { pub GetPresentationClock: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pppresentationclock: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Shutdown: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFMediaSinkPreroll(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFMediaSinkPreroll, IMFMediaSinkPreroll_Vtbl, 0x5dfd4b2a_7674_4110_a4e6_8a68fd5f3688); +::windows_core::imp::interface_hierarchy!(IMFMediaSinkPreroll, ::windows_core::IUnknown); impl IMFMediaSinkPreroll { pub unsafe fn NotifyPreroll(&self, hnsupcomingstarttime: i64) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).NotifyPreroll)(::windows_core::Interface::as_raw(self), hnsupcomingstarttime).ok() } } -::windows_core::imp::interface_hierarchy!(IMFMediaSinkPreroll, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFMediaSinkPreroll { - type Vtable = IMFMediaSinkPreroll_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFMediaSinkPreroll { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5dfd4b2a_7674_4110_a4e6_8a68fd5f3688); -} #[repr(C)] #[doc(hidden)] pub struct IMFMediaSinkPreroll_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub NotifyPreroll: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hnsupcomingstarttime: i64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFMediaSource(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFMediaSource, IMFMediaSource_Vtbl, 0x279a808d_aec7_40c8_9c6b_a6b492c78a66); +::windows_core::imp::interface_hierarchy!(IMFMediaSource, ::windows_core::IUnknown, IMFMediaEventGenerator); impl IMFMediaSource { pub unsafe fn GetEvent(&self, dwflags: MEDIA_EVENT_GENERATOR_GET_EVENT_FLAGS) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -13558,13 +12171,6 @@ impl IMFMediaSource { (::windows_core::Interface::vtable(self).Shutdown)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IMFMediaSource, ::windows_core::IUnknown, IMFMediaEventGenerator); -unsafe impl ::windows_core::Interface for IMFMediaSource { - type Vtable = IMFMediaSource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFMediaSource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x279a808d_aec7_40c8_9c6b_a6b492c78a66); -} #[repr(C)] #[doc(hidden)] pub struct IMFMediaSource_Vtbl { @@ -13579,9 +12185,8 @@ pub struct IMFMediaSource_Vtbl { pub Pause: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Shutdown: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFMediaSource2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFMediaSource2, IMFMediaSource2_Vtbl, 0xfbb03414_d13b_4786_8319_5ac51fc0a136); +::windows_core::imp::interface_hierarchy!(IMFMediaSource2, ::windows_core::IUnknown, IMFMediaEventGenerator, IMFMediaSource, IMFMediaSourceEx); impl IMFMediaSource2 { pub unsafe fn GetEvent(&self, dwflags: MEDIA_EVENT_GENERATOR_GET_EVENT_FLAGS) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -13652,22 +12257,14 @@ impl IMFMediaSource2 { (::windows_core::Interface::vtable(self).SetMediaType)(::windows_core::Interface::as_raw(self), dwstreamid, pmediatype.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMFMediaSource2, ::windows_core::IUnknown, IMFMediaEventGenerator, IMFMediaSource, IMFMediaSourceEx); -unsafe impl ::windows_core::Interface for IMFMediaSource2 { - type Vtable = IMFMediaSource2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFMediaSource2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfbb03414_d13b_4786_8319_5ac51fc0a136); -} #[repr(C)] #[doc(hidden)] pub struct IMFMediaSource2_Vtbl { pub base__: IMFMediaSourceEx_Vtbl, pub SetMediaType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwstreamid: u32, pmediatype: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFMediaSourceEx(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFMediaSourceEx, IMFMediaSourceEx_Vtbl, 0x3c9b2eb9_86d5_4514_a394_f56664f9f0d8); +::windows_core::imp::interface_hierarchy!(IMFMediaSourceEx, ::windows_core::IUnknown, IMFMediaEventGenerator, IMFMediaSource); impl IMFMediaSourceEx { pub unsafe fn GetEvent(&self, dwflags: MEDIA_EVENT_GENERATOR_GET_EVENT_FLAGS) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -13732,13 +12329,6 @@ impl IMFMediaSourceEx { (::windows_core::Interface::vtable(self).SetD3DManager)(::windows_core::Interface::as_raw(self), pmanager.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMFMediaSourceEx, ::windows_core::IUnknown, IMFMediaEventGenerator, IMFMediaSource); -unsafe impl ::windows_core::Interface for IMFMediaSourceEx { - type Vtable = IMFMediaSourceEx_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFMediaSourceEx { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3c9b2eb9_86d5_4514_a394_f56664f9f0d8); -} #[repr(C)] #[doc(hidden)] pub struct IMFMediaSourceEx_Vtbl { @@ -13747,9 +12337,8 @@ pub struct IMFMediaSourceEx_Vtbl { pub GetStreamAttributes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwstreamidentifier: u32, ppattributes: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetD3DManager: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pmanager: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFMediaSourceExtension(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFMediaSourceExtension, IMFMediaSourceExtension_Vtbl, 0xe467b94e_a713_4562_a802_816a42e9008a); +::windows_core::imp::interface_hierarchy!(IMFMediaSourceExtension, ::windows_core::IUnknown); impl IMFMediaSourceExtension { pub unsafe fn GetSourceBuffers(&self) -> ::core::option::Option { (::windows_core::Interface::vtable(self).GetSourceBuffers)(::windows_core::Interface::as_raw(self)) @@ -13793,13 +12382,6 @@ impl IMFMediaSourceExtension { (::windows_core::Interface::vtable(self).GetSourceBuffer)(::windows_core::Interface::as_raw(self), dwstreamindex) } } -::windows_core::imp::interface_hierarchy!(IMFMediaSourceExtension, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFMediaSourceExtension { - type Vtable = IMFMediaSourceExtension_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFMediaSourceExtension { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe467b94e_a713_4562_a802_816a42e9008a); -} #[repr(C)] #[doc(hidden)] pub struct IMFMediaSourceExtension_Vtbl { @@ -13815,9 +12397,8 @@ pub struct IMFMediaSourceExtension_Vtbl { pub IsTypeSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> super::super::Foundation::BOOL, pub GetSourceBuffer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwstreamindex: u32) -> ::core::option::Option, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFMediaSourceExtensionLiveSeekableRange(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFMediaSourceExtensionLiveSeekableRange, IMFMediaSourceExtensionLiveSeekableRange_Vtbl, 0x5d1abfd6_450a_4d92_9efc_d6b6cbc1f4da); +::windows_core::imp::interface_hierarchy!(IMFMediaSourceExtensionLiveSeekableRange, ::windows_core::IUnknown); impl IMFMediaSourceExtensionLiveSeekableRange { pub unsafe fn SetLiveSeekableRange(&self, start: f64, end: f64) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetLiveSeekableRange)(::windows_core::Interface::as_raw(self), start, end).ok() @@ -13826,13 +12407,6 @@ impl IMFMediaSourceExtensionLiveSeekableRange { (::windows_core::Interface::vtable(self).ClearLiveSeekableRange)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IMFMediaSourceExtensionLiveSeekableRange, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFMediaSourceExtensionLiveSeekableRange { - type Vtable = IMFMediaSourceExtensionLiveSeekableRange_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFMediaSourceExtensionLiveSeekableRange { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5d1abfd6_450a_4d92_9efc_d6b6cbc1f4da); -} #[repr(C)] #[doc(hidden)] pub struct IMFMediaSourceExtensionLiveSeekableRange_Vtbl { @@ -13840,9 +12414,8 @@ pub struct IMFMediaSourceExtensionLiveSeekableRange_Vtbl { pub SetLiveSeekableRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, start: f64, end: f64) -> ::windows_core::HRESULT, pub ClearLiveSeekableRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFMediaSourceExtensionNotify(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFMediaSourceExtensionNotify, IMFMediaSourceExtensionNotify_Vtbl, 0xa7901327_05dd_4469_a7b7_0e01979e361d); +::windows_core::imp::interface_hierarchy!(IMFMediaSourceExtensionNotify, ::windows_core::IUnknown); impl IMFMediaSourceExtensionNotify { pub unsafe fn OnSourceOpen(&self) { (::windows_core::Interface::vtable(self).OnSourceOpen)(::windows_core::Interface::as_raw(self)) @@ -13854,13 +12427,6 @@ impl IMFMediaSourceExtensionNotify { (::windows_core::Interface::vtable(self).OnSourceClose)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(IMFMediaSourceExtensionNotify, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFMediaSourceExtensionNotify { - type Vtable = IMFMediaSourceExtensionNotify_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFMediaSourceExtensionNotify { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa7901327_05dd_4469_a7b7_0e01979e361d); -} #[repr(C)] #[doc(hidden)] pub struct IMFMediaSourceExtensionNotify_Vtbl { @@ -13869,9 +12435,8 @@ pub struct IMFMediaSourceExtensionNotify_Vtbl { pub OnSourceEnded: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), pub OnSourceClose: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFMediaSourcePresentationProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFMediaSourcePresentationProvider, IMFMediaSourcePresentationProvider_Vtbl, 0x0e1d600a_c9f3_442d_8c51_a42d2d49452f); +::windows_core::imp::interface_hierarchy!(IMFMediaSourcePresentationProvider, ::windows_core::IUnknown); impl IMFMediaSourcePresentationProvider { pub unsafe fn ForceEndOfPresentation(&self, ppresentationdescriptor: P0) -> ::windows_core::Result<()> where @@ -13880,22 +12445,14 @@ impl IMFMediaSourcePresentationProvider { (::windows_core::Interface::vtable(self).ForceEndOfPresentation)(::windows_core::Interface::as_raw(self), ppresentationdescriptor.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMFMediaSourcePresentationProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFMediaSourcePresentationProvider { - type Vtable = IMFMediaSourcePresentationProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFMediaSourcePresentationProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0e1d600a_c9f3_442d_8c51_a42d2d49452f); -} #[repr(C)] #[doc(hidden)] pub struct IMFMediaSourcePresentationProvider_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub ForceEndOfPresentation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppresentationdescriptor: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFMediaSourceTopologyProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFMediaSourceTopologyProvider, IMFMediaSourceTopologyProvider_Vtbl, 0x0e1d6009_c9f3_442d_8c51_a42d2d49452f); +::windows_core::imp::interface_hierarchy!(IMFMediaSourceTopologyProvider, ::windows_core::IUnknown); impl IMFMediaSourceTopologyProvider { pub unsafe fn GetMediaSourceTopology(&self, ppresentationdescriptor: P0) -> ::windows_core::Result where @@ -13905,22 +12462,14 @@ impl IMFMediaSourceTopologyProvider { (::windows_core::Interface::vtable(self).GetMediaSourceTopology)(::windows_core::Interface::as_raw(self), ppresentationdescriptor.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFMediaSourceTopologyProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFMediaSourceTopologyProvider { - type Vtable = IMFMediaSourceTopologyProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFMediaSourceTopologyProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0e1d6009_c9f3_442d_8c51_a42d2d49452f); -} #[repr(C)] #[doc(hidden)] pub struct IMFMediaSourceTopologyProvider_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetMediaSourceTopology: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppresentationdescriptor: *mut ::core::ffi::c_void, pptopology: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFMediaStream(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFMediaStream, IMFMediaStream_Vtbl, 0xd182108f_4ec6_443f_aa42_a71106ec825f); +::windows_core::imp::interface_hierarchy!(IMFMediaStream, ::windows_core::IUnknown, IMFMediaEventGenerator); impl IMFMediaStream { pub unsafe fn GetEvent(&self, dwflags: MEDIA_EVENT_GENERATOR_GET_EVENT_FLAGS) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -13960,13 +12509,6 @@ impl IMFMediaStream { (::windows_core::Interface::vtable(self).RequestSample)(::windows_core::Interface::as_raw(self), ptoken.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMFMediaStream, ::windows_core::IUnknown, IMFMediaEventGenerator); -unsafe impl ::windows_core::Interface for IMFMediaStream { - type Vtable = IMFMediaStream_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFMediaStream { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd182108f_4ec6_443f_aa42_a71106ec825f); -} #[repr(C)] #[doc(hidden)] pub struct IMFMediaStream_Vtbl { @@ -13975,9 +12517,8 @@ pub struct IMFMediaStream_Vtbl { pub GetStreamDescriptor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppstreamdescriptor: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RequestSample: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptoken: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFMediaStream2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFMediaStream2, IMFMediaStream2_Vtbl, 0xc5bc37d6_75c7_46a1_a132_81b5f723c20f); +::windows_core::imp::interface_hierarchy!(IMFMediaStream2, ::windows_core::IUnknown, IMFMediaEventGenerator, IMFMediaStream); impl IMFMediaStream2 { pub unsafe fn GetEvent(&self, dwflags: MEDIA_EVENT_GENERATOR_GET_EVENT_FLAGS) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -14024,13 +12565,6 @@ impl IMFMediaStream2 { (::windows_core::Interface::vtable(self).GetStreamState)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFMediaStream2, ::windows_core::IUnknown, IMFMediaEventGenerator, IMFMediaStream); -unsafe impl ::windows_core::Interface for IMFMediaStream2 { - type Vtable = IMFMediaStream2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFMediaStream2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc5bc37d6_75c7_46a1_a132_81b5f723c20f); -} #[repr(C)] #[doc(hidden)] pub struct IMFMediaStream2_Vtbl { @@ -14038,9 +12572,8 @@ pub struct IMFMediaStream2_Vtbl { pub SetStreamState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: MF_STREAM_STATE) -> ::windows_core::HRESULT, pub GetStreamState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut MF_STREAM_STATE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFMediaStreamSourceSampleRequest(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFMediaStreamSourceSampleRequest, IMFMediaStreamSourceSampleRequest_Vtbl, 0x380b9af9_a85b_4e78_a2af_ea5ce645c6b4); +::windows_core::imp::interface_hierarchy!(IMFMediaStreamSourceSampleRequest, ::windows_core::IUnknown); impl IMFMediaStreamSourceSampleRequest { pub unsafe fn SetSample(&self, value: P0) -> ::windows_core::Result<()> where @@ -14049,22 +12582,14 @@ impl IMFMediaStreamSourceSampleRequest { (::windows_core::Interface::vtable(self).SetSample)(::windows_core::Interface::as_raw(self), value.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMFMediaStreamSourceSampleRequest, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFMediaStreamSourceSampleRequest { - type Vtable = IMFMediaStreamSourceSampleRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFMediaStreamSourceSampleRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x380b9af9_a85b_4e78_a2af_ea5ce645c6b4); -} #[repr(C)] #[doc(hidden)] pub struct IMFMediaStreamSourceSampleRequest_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub SetSample: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFMediaTimeRange(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFMediaTimeRange, IMFMediaTimeRange_Vtbl, 0xdb71a2fc_078a_414e_9df9_8c2531b0aa6c); +::windows_core::imp::interface_hierarchy!(IMFMediaTimeRange, ::windows_core::IUnknown); impl IMFMediaTimeRange { pub unsafe fn GetLength(&self) -> u32 { (::windows_core::Interface::vtable(self).GetLength)(::windows_core::Interface::as_raw(self)) @@ -14087,13 +12612,6 @@ impl IMFMediaTimeRange { (::windows_core::Interface::vtable(self).Clear)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IMFMediaTimeRange, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFMediaTimeRange { - type Vtable = IMFMediaTimeRange_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFMediaTimeRange { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdb71a2fc_078a_414e_9df9_8c2531b0aa6c); -} #[repr(C)] #[doc(hidden)] pub struct IMFMediaTimeRange_Vtbl { @@ -14105,9 +12623,8 @@ pub struct IMFMediaTimeRange_Vtbl { pub AddRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, starttime: f64, endtime: f64) -> ::windows_core::HRESULT, pub Clear: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFMediaType(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFMediaType, IMFMediaType_Vtbl, 0x44ae0fa8_ea31_4109_8d2e_4cae4997c555); +::windows_core::imp::interface_hierarchy!(IMFMediaType, ::windows_core::IUnknown, IMFAttributes); impl IMFMediaType { #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] @@ -14169,7 +12686,7 @@ impl IMFMediaType { } pub unsafe fn GetUnknown(&self, guidkey: *const ::windows_core::GUID) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.GetUnknown)(::windows_core::Interface::as_raw(self), guidkey, &T::IID, &mut result__).from_abi(result__) @@ -14255,13 +12772,6 @@ impl IMFMediaType { (::windows_core::Interface::vtable(self).FreeRepresentation)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(guidrepresentation), pvrepresentation).ok() } } -::windows_core::imp::interface_hierarchy!(IMFMediaType, ::windows_core::IUnknown, IMFAttributes); -unsafe impl ::windows_core::Interface for IMFMediaType { - type Vtable = IMFMediaType_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFMediaType { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x44ae0fa8_ea31_4109_8d2e_4cae4997c555); -} #[repr(C)] #[doc(hidden)] pub struct IMFMediaType_Vtbl { @@ -14272,9 +12782,8 @@ pub struct IMFMediaType_Vtbl { pub GetRepresentation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guidrepresentation: ::windows_core::GUID, ppvrepresentation: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub FreeRepresentation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guidrepresentation: ::windows_core::GUID, pvrepresentation: *const ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFMediaTypeHandler(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFMediaTypeHandler, IMFMediaTypeHandler_Vtbl, 0xe93dcf6c_4b07_4e1e_8123_aa16ed6eadf5); +::windows_core::imp::interface_hierarchy!(IMFMediaTypeHandler, ::windows_core::IUnknown); impl IMFMediaTypeHandler { pub unsafe fn IsMediaTypeSupported(&self, pmediatype: P0, ppmediatype: ::core::option::Option<*mut ::core::option::Option>) -> ::windows_core::Result<()> where @@ -14305,13 +12814,6 @@ impl IMFMediaTypeHandler { (::windows_core::Interface::vtable(self).GetMajorType)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFMediaTypeHandler, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFMediaTypeHandler { - type Vtable = IMFMediaTypeHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFMediaTypeHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe93dcf6c_4b07_4e1e_8123_aa16ed6eadf5); -} #[repr(C)] #[doc(hidden)] pub struct IMFMediaTypeHandler_Vtbl { @@ -14323,9 +12825,8 @@ pub struct IMFMediaTypeHandler_Vtbl { pub GetCurrentMediaType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppmediatype: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetMajorType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pguidmajortype: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFMetadata(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFMetadata, IMFMetadata_Vtbl, 0xf88cfb8c_ef16_4991_b450_cb8c69e51704); +::windows_core::imp::interface_hierarchy!(IMFMetadata, ::windows_core::IUnknown); impl IMFMetadata { pub unsafe fn SetLanguage(&self, pwszrfc1766: P0) -> ::windows_core::Result<()> where @@ -14373,13 +12874,6 @@ impl IMFMetadata { (::windows_core::Interface::vtable(self).GetAllPropertyNames)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFMetadata, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFMetadata { - type Vtable = IMFMetadata_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFMetadata { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf88cfb8c_ef16_4991_b450_cb8c69e51704); -} #[repr(C)] #[doc(hidden)] pub struct IMFMetadata_Vtbl { @@ -14404,9 +12898,8 @@ pub struct IMFMetadata_Vtbl { #[cfg(not(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant")))] GetAllPropertyNames: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFMetadataProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFMetadataProvider, IMFMetadataProvider_Vtbl, 0x56181d2d_e221_4adb_b1c8_3cee6a53f76f); +::windows_core::imp::interface_hierarchy!(IMFMetadataProvider, ::windows_core::IUnknown); impl IMFMetadataProvider { pub unsafe fn GetMFMetadata(&self, ppresentationdescriptor: P0, dwstreamidentifier: u32, dwflags: u32) -> ::windows_core::Result where @@ -14416,22 +12909,14 @@ impl IMFMetadataProvider { (::windows_core::Interface::vtable(self).GetMFMetadata)(::windows_core::Interface::as_raw(self), ppresentationdescriptor.into_param().abi(), dwstreamidentifier, dwflags, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFMetadataProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFMetadataProvider { - type Vtable = IMFMetadataProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFMetadataProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x56181d2d_e221_4adb_b1c8_3cee6a53f76f); -} #[repr(C)] #[doc(hidden)] pub struct IMFMetadataProvider_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetMFMetadata: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppresentationdescriptor: *mut ::core::ffi::c_void, dwstreamidentifier: u32, dwflags: u32, ppmfmetadata: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFMuxStreamAttributesManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFMuxStreamAttributesManager, IMFMuxStreamAttributesManager_Vtbl, 0xce8bd576_e440_43b3_be34_1e53f565f7e8); +::windows_core::imp::interface_hierarchy!(IMFMuxStreamAttributesManager, ::windows_core::IUnknown); impl IMFMuxStreamAttributesManager { pub unsafe fn GetStreamCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -14442,13 +12927,6 @@ impl IMFMuxStreamAttributesManager { (::windows_core::Interface::vtable(self).GetAttributes)(::windows_core::Interface::as_raw(self), dwmuxstreamindex, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFMuxStreamAttributesManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFMuxStreamAttributesManager { - type Vtable = IMFMuxStreamAttributesManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFMuxStreamAttributesManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xce8bd576_e440_43b3_be34_1e53f565f7e8); -} #[repr(C)] #[doc(hidden)] pub struct IMFMuxStreamAttributesManager_Vtbl { @@ -14456,9 +12934,8 @@ pub struct IMFMuxStreamAttributesManager_Vtbl { pub GetStreamCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwmuxstreamcount: *mut u32) -> ::windows_core::HRESULT, pub GetAttributes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwmuxstreamindex: u32, ppstreamattributes: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFMuxStreamMediaTypeManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFMuxStreamMediaTypeManager, IMFMuxStreamMediaTypeManager_Vtbl, 0x505a2c72_42f7_4690_aeab_8f513d0ffdb8); +::windows_core::imp::interface_hierarchy!(IMFMuxStreamMediaTypeManager, ::windows_core::IUnknown); impl IMFMuxStreamMediaTypeManager { pub unsafe fn GetStreamCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -14483,13 +12960,6 @@ impl IMFMuxStreamMediaTypeManager { (::windows_core::Interface::vtable(self).GetStreamConfiguration)(::windows_core::Interface::as_raw(self), ulindex, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFMuxStreamMediaTypeManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFMuxStreamMediaTypeManager { - type Vtable = IMFMuxStreamMediaTypeManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFMuxStreamMediaTypeManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x505a2c72_42f7_4690_aeab_8f513d0ffdb8); -} #[repr(C)] #[doc(hidden)] pub struct IMFMuxStreamMediaTypeManager_Vtbl { @@ -14501,9 +12971,8 @@ pub struct IMFMuxStreamMediaTypeManager_Vtbl { pub RemoveStreamConfiguration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ullstreammask: u64) -> ::windows_core::HRESULT, pub GetStreamConfiguration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulindex: u32, pullstreammask: *mut u64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFMuxStreamSampleManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFMuxStreamSampleManager, IMFMuxStreamSampleManager_Vtbl, 0x74abbc19_b1cc_4e41_bb8b_9d9b86a8f6ca); +::windows_core::imp::interface_hierarchy!(IMFMuxStreamSampleManager, ::windows_core::IUnknown); impl IMFMuxStreamSampleManager { pub unsafe fn GetStreamCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -14517,13 +12986,6 @@ impl IMFMuxStreamSampleManager { (::windows_core::Interface::vtable(self).GetStreamConfiguration)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(IMFMuxStreamSampleManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFMuxStreamSampleManager { - type Vtable = IMFMuxStreamSampleManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFMuxStreamSampleManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x74abbc19_b1cc_4e41_bb8b_9d9b86a8f6ca); -} #[repr(C)] #[doc(hidden)] pub struct IMFMuxStreamSampleManager_Vtbl { @@ -14532,9 +12994,8 @@ pub struct IMFMuxStreamSampleManager_Vtbl { pub GetSample: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwmuxstreamindex: u32, ppsample: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetStreamConfiguration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> u64, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFNetCredential(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFNetCredential, IMFNetCredential_Vtbl, 0x5b87ef6a_7ed8_434f_ba0e_184fac1628d1); +::windows_core::imp::interface_hierarchy!(IMFNetCredential, ::windows_core::IUnknown); impl IMFNetCredential { pub unsafe fn SetUser(&self, pbdata: &[u8], fdataisencrypted: P0) -> ::windows_core::Result<()> where @@ -14565,13 +13026,6 @@ impl IMFNetCredential { (::windows_core::Interface::vtable(self).LoggedOnUser)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFNetCredential, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFNetCredential { - type Vtable = IMFNetCredential_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFNetCredential { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5b87ef6a_7ed8_434f_ba0e_184fac1628d1); -} #[repr(C)] #[doc(hidden)] pub struct IMFNetCredential_Vtbl { @@ -14582,9 +13036,8 @@ pub struct IMFNetCredential_Vtbl { pub GetPassword: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbdata: *mut u8, pcbdata: *mut u32, fencryptdata: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub LoggedOnUser: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfloggedonuser: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFNetCredentialCache(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFNetCredentialCache, IMFNetCredentialCache_Vtbl, 0x5b87ef6c_7ed8_434f_ba0e_184fac1628d1); +::windows_core::imp::interface_hierarchy!(IMFNetCredentialCache, ::windows_core::IUnknown); impl IMFNetCredentialCache { pub unsafe fn GetCredential(&self, pszurl: P0, pszrealm: P1, dwauthenticationflags: u32, ppcred: *mut ::core::option::Option, pdwrequirementsflags: *mut u32) -> ::windows_core::Result<()> where @@ -14607,13 +13060,6 @@ impl IMFNetCredentialCache { (::windows_core::Interface::vtable(self).SetUserOptions)(::windows_core::Interface::as_raw(self), pcred.into_param().abi(), dwoptionsflags).ok() } } -::windows_core::imp::interface_hierarchy!(IMFNetCredentialCache, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFNetCredentialCache { - type Vtable = IMFNetCredentialCache_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFNetCredentialCache { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5b87ef6c_7ed8_434f_ba0e_184fac1628d1); -} #[repr(C)] #[doc(hidden)] pub struct IMFNetCredentialCache_Vtbl { @@ -14622,9 +13068,8 @@ pub struct IMFNetCredentialCache_Vtbl { pub SetGood: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcred: *mut ::core::ffi::c_void, fgood: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub SetUserOptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcred: *mut ::core::ffi::c_void, dwoptionsflags: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFNetCredentialManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFNetCredentialManager, IMFNetCredentialManager_Vtbl, 0x5b87ef6b_7ed8_434f_ba0e_184fac1628d1); +::windows_core::imp::interface_hierarchy!(IMFNetCredentialManager, ::windows_core::IUnknown); impl IMFNetCredentialManager { pub unsafe fn BeginGetCredentials(&self, pparam: *const MFNetCredentialManagerGetParam, pcallback: P0, pstate: P1) -> ::windows_core::Result<()> where @@ -14648,13 +13093,6 @@ impl IMFNetCredentialManager { (::windows_core::Interface::vtable(self).SetGood)(::windows_core::Interface::as_raw(self), pcred.into_param().abi(), fgood.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMFNetCredentialManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFNetCredentialManager { - type Vtable = IMFNetCredentialManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFNetCredentialManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5b87ef6b_7ed8_434f_ba0e_184fac1628d1); -} #[repr(C)] #[doc(hidden)] pub struct IMFNetCredentialManager_Vtbl { @@ -14663,9 +13101,8 @@ pub struct IMFNetCredentialManager_Vtbl { pub EndGetCredentials: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, presult: *mut ::core::ffi::c_void, ppcred: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetGood: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcred: *mut ::core::ffi::c_void, fgood: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFNetCrossOriginSupport(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFNetCrossOriginSupport, IMFNetCrossOriginSupport_Vtbl, 0xbc2b7d44_a72d_49d5_8376_1480dee58b22); +::windows_core::imp::interface_hierarchy!(IMFNetCrossOriginSupport, ::windows_core::IUnknown); impl IMFNetCrossOriginSupport { pub unsafe fn GetCrossOriginPolicy(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -14683,13 +13120,6 @@ impl IMFNetCrossOriginSupport { (::windows_core::Interface::vtable(self).IsSameOrigin)(::windows_core::Interface::as_raw(self), wszurl.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFNetCrossOriginSupport, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFNetCrossOriginSupport { - type Vtable = IMFNetCrossOriginSupport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFNetCrossOriginSupport { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbc2b7d44_a72d_49d5_8376_1480dee58b22); -} #[repr(C)] #[doc(hidden)] pub struct IMFNetCrossOriginSupport_Vtbl { @@ -14698,9 +13128,8 @@ pub struct IMFNetCrossOriginSupport_Vtbl { pub GetSourceOrigin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wszsourceorigin: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, pub IsSameOrigin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wszurl: ::windows_core::PCWSTR, pfissameorigin: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFNetProxyLocator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFNetProxyLocator, IMFNetProxyLocator_Vtbl, 0xe9cd0383_a268_4bb4_82de_658d53574d41); +::windows_core::imp::interface_hierarchy!(IMFNetProxyLocator, ::windows_core::IUnknown); impl IMFNetProxyLocator { pub unsafe fn FindFirstProxy(&self, pszhost: P0, pszurl: P1, freserved: P2) -> ::windows_core::Result<()> where @@ -14724,13 +13153,6 @@ impl IMFNetProxyLocator { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFNetProxyLocator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFNetProxyLocator { - type Vtable = IMFNetProxyLocator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFNetProxyLocator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe9cd0383_a268_4bb4_82de_658d53574d41); -} #[repr(C)] #[doc(hidden)] pub struct IMFNetProxyLocator_Vtbl { @@ -14741,9 +13163,8 @@ pub struct IMFNetProxyLocator_Vtbl { pub GetCurrentProxy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszstr: ::windows_core::PWSTR, pcchstr: *mut u32) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppproxylocator: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFNetProxyLocatorFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFNetProxyLocatorFactory, IMFNetProxyLocatorFactory_Vtbl, 0xe9cd0384_a268_4bb4_82de_658d53574d41); +::windows_core::imp::interface_hierarchy!(IMFNetProxyLocatorFactory, ::windows_core::IUnknown); impl IMFNetProxyLocatorFactory { pub unsafe fn CreateProxyLocator(&self, pszprotocol: P0) -> ::windows_core::Result where @@ -14753,22 +13174,14 @@ impl IMFNetProxyLocatorFactory { (::windows_core::Interface::vtable(self).CreateProxyLocator)(::windows_core::Interface::as_raw(self), pszprotocol.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFNetProxyLocatorFactory, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFNetProxyLocatorFactory { - type Vtable = IMFNetProxyLocatorFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFNetProxyLocatorFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe9cd0384_a268_4bb4_82de_658d53574d41); -} #[repr(C)] #[doc(hidden)] pub struct IMFNetProxyLocatorFactory_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub CreateProxyLocator: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszprotocol: ::windows_core::PCWSTR, ppproxylocator: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFNetResourceFilter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFNetResourceFilter, IMFNetResourceFilter_Vtbl, 0x091878a3_bf11_4a5c_bc9f_33995b06ef2d); +::windows_core::imp::interface_hierarchy!(IMFNetResourceFilter, ::windows_core::IUnknown); impl IMFNetResourceFilter { pub unsafe fn OnRedirect(&self, pszurl: P0) -> ::windows_core::Result where @@ -14784,13 +13197,6 @@ impl IMFNetResourceFilter { (::windows_core::Interface::vtable(self).OnSendingRequest)(::windows_core::Interface::as_raw(self), pszurl.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMFNetResourceFilter, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFNetResourceFilter { - type Vtable = IMFNetResourceFilter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFNetResourceFilter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x091878a3_bf11_4a5c_bc9f_33995b06ef2d); -} #[repr(C)] #[doc(hidden)] pub struct IMFNetResourceFilter_Vtbl { @@ -14798,9 +13204,8 @@ pub struct IMFNetResourceFilter_Vtbl { pub OnRedirect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszurl: ::windows_core::PCWSTR, pvbcancel: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub OnSendingRequest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszurl: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFNetSchemeHandlerConfig(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFNetSchemeHandlerConfig, IMFNetSchemeHandlerConfig_Vtbl, 0x7be19e73_c9bf_468a_ac5a_a5e8653bec87); +::windows_core::imp::interface_hierarchy!(IMFNetSchemeHandlerConfig, ::windows_core::IUnknown); impl IMFNetSchemeHandlerConfig { pub unsafe fn GetNumberOfSupportedProtocols(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -14814,13 +13219,6 @@ impl IMFNetSchemeHandlerConfig { (::windows_core::Interface::vtable(self).ResetProtocolRolloverSettings)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IMFNetSchemeHandlerConfig, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFNetSchemeHandlerConfig { - type Vtable = IMFNetSchemeHandlerConfig_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFNetSchemeHandlerConfig { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7be19e73_c9bf_468a_ac5a_a5e8653bec87); -} #[repr(C)] #[doc(hidden)] pub struct IMFNetSchemeHandlerConfig_Vtbl { @@ -14829,9 +13227,8 @@ pub struct IMFNetSchemeHandlerConfig_Vtbl { pub GetSupportedProtocolType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nprotocolindex: u32, pnprotocoltype: *mut MFNETSOURCE_PROTOCOL_TYPE) -> ::windows_core::HRESULT, pub ResetProtocolRolloverSettings: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFObjectReferenceStream(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFObjectReferenceStream, IMFObjectReferenceStream_Vtbl, 0x09ef5be3_c8a7_469e_8b70_73bf25bb193f); +::windows_core::imp::interface_hierarchy!(IMFObjectReferenceStream, ::windows_core::IUnknown); impl IMFObjectReferenceStream { pub unsafe fn SaveReference(&self, riid: *const ::windows_core::GUID, punk: P0) -> ::windows_core::Result<()> where @@ -14843,13 +13240,6 @@ impl IMFObjectReferenceStream { (::windows_core::Interface::vtable(self).LoadReference)(::windows_core::Interface::as_raw(self), riid, ppv).ok() } } -::windows_core::imp::interface_hierarchy!(IMFObjectReferenceStream, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFObjectReferenceStream { - type Vtable = IMFObjectReferenceStream_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFObjectReferenceStream { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x09ef5be3_c8a7_469e_8b70_73bf25bb193f); -} #[repr(C)] #[doc(hidden)] pub struct IMFObjectReferenceStream_Vtbl { @@ -14857,9 +13247,8 @@ pub struct IMFObjectReferenceStream_Vtbl { pub SaveReference: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, punk: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub LoadReference: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFOutputPolicy(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFOutputPolicy, IMFOutputPolicy_Vtbl, 0x7f00f10a_daed_41af_ab26_5fdfa4dfba3c); +::windows_core::imp::interface_hierarchy!(IMFOutputPolicy, ::windows_core::IUnknown, IMFAttributes); impl IMFOutputPolicy { #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] @@ -14921,7 +13310,7 @@ impl IMFOutputPolicy { } pub unsafe fn GetUnknown(&self, guidkey: *const ::windows_core::GUID) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.GetUnknown)(::windows_core::Interface::as_raw(self), guidkey, &T::IID, &mut result__).from_abi(result__) @@ -14998,13 +13387,6 @@ impl IMFOutputPolicy { (::windows_core::Interface::vtable(self).GetMinimumGRLVersion)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFOutputPolicy, ::windows_core::IUnknown, IMFAttributes); -unsafe impl ::windows_core::Interface for IMFOutputPolicy { - type Vtable = IMFOutputPolicy_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFOutputPolicy { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7f00f10a_daed_41af_ab26_5fdfa4dfba3c); -} #[repr(C)] #[doc(hidden)] pub struct IMFOutputPolicy_Vtbl { @@ -15013,9 +13395,8 @@ pub struct IMFOutputPolicy_Vtbl { pub GetOriginatorID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pguidoriginatorid: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, pub GetMinimumGRLVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwminimumgrlversion: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFOutputSchema(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFOutputSchema, IMFOutputSchema_Vtbl, 0x7be0fc5b_abd9_44fb_a5c8_f50136e71599); +::windows_core::imp::interface_hierarchy!(IMFOutputSchema, ::windows_core::IUnknown, IMFAttributes); impl IMFOutputSchema { #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] @@ -15077,7 +13458,7 @@ impl IMFOutputSchema { } pub unsafe fn GetUnknown(&self, guidkey: *const ::windows_core::GUID) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.GetUnknown)(::windows_core::Interface::as_raw(self), guidkey, &T::IID, &mut result__).from_abi(result__) @@ -15154,13 +13535,6 @@ impl IMFOutputSchema { (::windows_core::Interface::vtable(self).GetOriginatorID)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFOutputSchema, ::windows_core::IUnknown, IMFAttributes); -unsafe impl ::windows_core::Interface for IMFOutputSchema { - type Vtable = IMFOutputSchema_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFOutputSchema { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7be0fc5b_abd9_44fb_a5c8_f50136e71599); -} #[repr(C)] #[doc(hidden)] pub struct IMFOutputSchema_Vtbl { @@ -15169,9 +13543,8 @@ pub struct IMFOutputSchema_Vtbl { pub GetConfigurationData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwval: *mut u32) -> ::windows_core::HRESULT, pub GetOriginatorID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pguidoriginatorid: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFOutputTrustAuthority(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFOutputTrustAuthority, IMFOutputTrustAuthority_Vtbl, 0xd19f8e94_b126_4446_890c_5dcb7ad71453); +::windows_core::imp::interface_hierarchy!(IMFOutputTrustAuthority, ::windows_core::IUnknown); impl IMFOutputTrustAuthority { pub unsafe fn GetAction(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -15181,13 +13554,6 @@ impl IMFOutputTrustAuthority { (::windows_core::Interface::vtable(self).SetPolicy)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pppolicy.as_deref().map_or(::core::ptr::null(), |slice| slice.as_ptr())), pppolicy.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), ::core::mem::transmute(ppbticket.unwrap_or(::std::ptr::null_mut())), ::core::mem::transmute(pcbticket.unwrap_or(::std::ptr::null_mut()))).ok() } } -::windows_core::imp::interface_hierarchy!(IMFOutputTrustAuthority, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFOutputTrustAuthority { - type Vtable = IMFOutputTrustAuthority_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFOutputTrustAuthority { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd19f8e94_b126_4446_890c_5dcb7ad71453); -} #[repr(C)] #[doc(hidden)] pub struct IMFOutputTrustAuthority_Vtbl { @@ -15195,9 +13561,8 @@ pub struct IMFOutputTrustAuthority_Vtbl { pub GetAction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, paction: *mut MFPOLICYMANAGER_ACTION) -> ::windows_core::HRESULT, pub SetPolicy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pppolicy: *const *mut ::core::ffi::c_void, npolicy: u32, ppbticket: *mut *mut u8, pcbticket: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFPMPClient(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFPMPClient, IMFPMPClient_Vtbl, 0x6c4e655d_ead8_4421_b6b9_54dcdbbdf820); +::windows_core::imp::interface_hierarchy!(IMFPMPClient, ::windows_core::IUnknown); impl IMFPMPClient { pub unsafe fn SetPMPHost(&self, ppmphost: P0) -> ::windows_core::Result<()> where @@ -15206,36 +13571,21 @@ impl IMFPMPClient { (::windows_core::Interface::vtable(self).SetPMPHost)(::windows_core::Interface::as_raw(self), ppmphost.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMFPMPClient, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFPMPClient { - type Vtable = IMFPMPClient_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFPMPClient { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6c4e655d_ead8_4421_b6b9_54dcdbbdf820); -} #[repr(C)] #[doc(hidden)] pub struct IMFPMPClient_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub SetPMPHost: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppmphost: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFPMPClientApp(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFPMPClientApp, IMFPMPClientApp_Vtbl, 0xc004f646_be2c_48f3_93a2_a0983eba1108); +::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, { (::windows_core::Interface::vtable(self).SetPMPHost)(::windows_core::Interface::as_raw(self), ppmphost.into_param().abi()).ok() - } -} -::windows_core::imp::interface_hierarchy!(IMFPMPClientApp, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFPMPClientApp { - type Vtable = IMFPMPClientApp_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFPMPClientApp { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc004f646_be2c_48f3_93a2_a0983eba1108); + } } #[repr(C)] #[doc(hidden)] @@ -15243,9 +13593,8 @@ pub struct IMFPMPClientApp_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub SetPMPHost: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppmphost: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFPMPHost(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFPMPHost, IMFPMPHost_Vtbl, 0xf70ca1a9_fdc7_4782_b994_adffb1c98606); +::windows_core::imp::interface_hierarchy!(IMFPMPHost, ::windows_core::IUnknown); impl IMFPMPHost { pub unsafe fn LockProcess(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).LockProcess)(::windows_core::Interface::as_raw(self)).ok() @@ -15258,19 +13607,12 @@ impl IMFPMPHost { pub unsafe fn CreateObjectByCLSID(&self, clsid: *const ::windows_core::GUID, pstream: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFPMPHost, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFPMPHost { - type Vtable = IMFPMPHost_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFPMPHost { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf70ca1a9_fdc7_4782_b994_adffb1c98606); -} #[repr(C)] #[doc(hidden)] pub struct IMFPMPHost_Vtbl { @@ -15282,9 +13624,8 @@ pub struct IMFPMPHost_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] CreateObjectByCLSID: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFPMPHostApp(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFPMPHostApp, IMFPMPHostApp_Vtbl, 0x84d2054a_3aa1_4728_a3b0_440a418cf49c); +::windows_core::imp::interface_hierarchy!(IMFPMPHostApp, ::windows_core::IUnknown); impl IMFPMPHostApp { pub unsafe fn LockProcess(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).LockProcess)(::windows_core::Interface::as_raw(self)).ok() @@ -15298,19 +13639,12 @@ impl IMFPMPHostApp { where P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, P1: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFPMPHostApp, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFPMPHostApp { - type Vtable = IMFPMPHostApp_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFPMPHostApp { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x84d2054a_3aa1_4728_a3b0_440a418cf49c); -} #[repr(C)] #[doc(hidden)] pub struct IMFPMPHostApp_Vtbl { @@ -15322,9 +13656,8 @@ pub struct IMFPMPHostApp_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] ActivateClassById: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFPMPServer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFPMPServer, IMFPMPServer_Vtbl, 0x994e23af_1cc2_493c_b9fa_46f1cb040fa4); +::windows_core::imp::interface_hierarchy!(IMFPMPServer, ::windows_core::IUnknown); impl IMFPMPServer { pub unsafe fn LockProcess(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).LockProcess)(::windows_core::Interface::as_raw(self)).ok() @@ -15334,19 +13667,12 @@ impl IMFPMPServer { } pub unsafe fn CreateObjectByCLSID(&self, clsid: *const ::windows_core::GUID) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).CreateObjectByCLSID)(::windows_core::Interface::as_raw(self), clsid, &T::IID, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFPMPServer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFPMPServer { - type Vtable = IMFPMPServer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFPMPServer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x994e23af_1cc2_493c_b9fa_46f1cb040fa4); -} #[repr(C)] #[doc(hidden)] pub struct IMFPMPServer_Vtbl { @@ -15355,9 +13681,8 @@ pub struct IMFPMPServer_Vtbl { pub UnlockProcess: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateObjectByCLSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, clsid: *const ::windows_core::GUID, riid: *const ::windows_core::GUID, ppobject: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFPMediaItem(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFPMediaItem, IMFPMediaItem_Vtbl, 0x90eb3e6b_ecbf_45cc_b1da_c6fe3ea70d57); +::windows_core::imp::interface_hierarchy!(IMFPMediaItem, ::windows_core::IUnknown); impl IMFPMediaItem { pub unsafe fn GetMediaPlayer(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -15447,13 +13772,6 @@ impl IMFPMediaItem { (::windows_core::Interface::vtable(self).GetMetadata)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFPMediaItem, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFPMediaItem { - type Vtable = IMFPMediaItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFPMediaItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x90eb3e6b_ecbf_45cc_b1da_c6fe3ea70d57); -} #[repr(C)] #[doc(hidden)] pub struct IMFPMediaItem_Vtbl { @@ -15496,9 +13814,8 @@ pub struct IMFPMediaItem_Vtbl { #[cfg(not(feature = "Win32_UI_Shell_PropertiesSystem"))] GetMetadata: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFPMediaPlayer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFPMediaPlayer, IMFPMediaPlayer_Vtbl, 0xa714590a_58af_430a_85bf_44f5ec838d85); +::windows_core::imp::interface_hierarchy!(IMFPMediaPlayer, ::windows_core::IUnknown); impl IMFPMediaPlayer { pub unsafe fn Play(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Play)(::windows_core::Interface::as_raw(self)).ok() @@ -15654,13 +13971,6 @@ impl IMFPMediaPlayer { (::windows_core::Interface::vtable(self).Shutdown)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IMFPMediaPlayer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFPMediaPlayer { - type Vtable = IMFPMediaPlayer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFPMediaPlayer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa714590a_58af_430a_85bf_44f5ec838d85); -} #[repr(C)] #[doc(hidden)] pub struct IMFPMediaPlayer_Vtbl { @@ -15711,9 +14021,8 @@ pub struct IMFPMediaPlayer_Vtbl { pub RemoveAllEffects: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Shutdown: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFPMediaPlayerCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFPMediaPlayerCallback, IMFPMediaPlayerCallback_Vtbl, 0x766c8ffb_5fdb_4fea_a28d_b912996f51bd); +::windows_core::imp::interface_hierarchy!(IMFPMediaPlayerCallback, ::windows_core::IUnknown); impl IMFPMediaPlayerCallback { #[doc = "Required features: `\"Win32_UI_Shell_PropertiesSystem\"`"] #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] @@ -15721,13 +14030,6 @@ impl IMFPMediaPlayerCallback { (::windows_core::Interface::vtable(self).OnMediaPlayerEvent)(::windows_core::Interface::as_raw(self), peventheader) } } -::windows_core::imp::interface_hierarchy!(IMFPMediaPlayerCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFPMediaPlayerCallback { - type Vtable = IMFPMediaPlayerCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFPMediaPlayerCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x766c8ffb_5fdb_4fea_a28d_b912996f51bd); -} #[repr(C)] #[doc(hidden)] pub struct IMFPMediaPlayerCallback_Vtbl { @@ -15737,9 +14039,8 @@ pub struct IMFPMediaPlayerCallback_Vtbl { #[cfg(not(feature = "Win32_UI_Shell_PropertiesSystem"))] OnMediaPlayerEvent: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFPluginControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFPluginControl, IMFPluginControl_Vtbl, 0x5c6c44bf_1db6_435b_9249_e8cd10fdec96); +::windows_core::imp::interface_hierarchy!(IMFPluginControl, ::windows_core::IUnknown); impl IMFPluginControl { pub unsafe fn GetPreferredClsid(&self, plugintype: u32, selector: P0) -> ::windows_core::Result<::windows_core::GUID> where @@ -15771,13 +14072,6 @@ impl IMFPluginControl { (::windows_core::Interface::vtable(self).SetDisabled)(::windows_core::Interface::as_raw(self), plugintype, clsid, disabled.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMFPluginControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFPluginControl { - type Vtable = IMFPluginControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFPluginControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5c6c44bf_1db6_435b_9249_e8cd10fdec96); -} #[repr(C)] #[doc(hidden)] pub struct IMFPluginControl_Vtbl { @@ -15789,9 +14083,8 @@ pub struct IMFPluginControl_Vtbl { pub GetDisabledByIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plugintype: u32, index: u32, clsid: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, pub SetDisabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plugintype: u32, clsid: *const ::windows_core::GUID, disabled: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFPluginControl2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFPluginControl2, IMFPluginControl2_Vtbl, 0xc6982083_3ddc_45cb_af5e_0f7a8ce4de77); +::windows_core::imp::interface_hierarchy!(IMFPluginControl2, ::windows_core::IUnknown, IMFPluginControl); impl IMFPluginControl2 { pub unsafe fn GetPreferredClsid(&self, plugintype: u32, selector: P0) -> ::windows_core::Result<::windows_core::GUID> where @@ -15826,22 +14119,14 @@ impl IMFPluginControl2 { (::windows_core::Interface::vtable(self).SetPolicy)(::windows_core::Interface::as_raw(self), policy).ok() } } -::windows_core::imp::interface_hierarchy!(IMFPluginControl2, ::windows_core::IUnknown, IMFPluginControl); -unsafe impl ::windows_core::Interface for IMFPluginControl2 { - type Vtable = IMFPluginControl2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFPluginControl2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc6982083_3ddc_45cb_af5e_0f7a8ce4de77); -} #[repr(C)] #[doc(hidden)] pub struct IMFPluginControl2_Vtbl { pub base__: IMFPluginControl_Vtbl, pub SetPolicy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, policy: MF_PLUGIN_CONTROL_POLICY) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFPresentationClock(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFPresentationClock, IMFPresentationClock_Vtbl, 0x868ce85c_8ea9_4f55_ab82_b009a910a805); +::windows_core::imp::interface_hierarchy!(IMFPresentationClock, ::windows_core::IUnknown, IMFClock); impl IMFPresentationClock { pub unsafe fn GetClockCharacteristics(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -15897,13 +14182,6 @@ impl IMFPresentationClock { (::windows_core::Interface::vtable(self).Pause)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IMFPresentationClock, ::windows_core::IUnknown, IMFClock); -unsafe impl ::windows_core::Interface for IMFPresentationClock { - type Vtable = IMFPresentationClock_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFPresentationClock { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x868ce85c_8ea9_4f55_ab82_b009a910a805); -} #[repr(C)] #[doc(hidden)] pub struct IMFPresentationClock_Vtbl { @@ -15917,9 +14195,8 @@ pub struct IMFPresentationClock_Vtbl { pub Stop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Pause: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFPresentationDescriptor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFPresentationDescriptor, IMFPresentationDescriptor_Vtbl, 0x03cb2711_24d7_4db6_a17f_f3a7a479a536); +::windows_core::imp::interface_hierarchy!(IMFPresentationDescriptor, ::windows_core::IUnknown, IMFAttributes); impl IMFPresentationDescriptor { #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] @@ -15981,7 +14258,7 @@ impl IMFPresentationDescriptor { } pub unsafe fn GetUnknown(&self, guidkey: *const ::windows_core::GUID) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.GetUnknown)(::windows_core::Interface::as_raw(self), guidkey, &T::IID, &mut result__).from_abi(result__) @@ -16063,13 +14340,6 @@ impl IMFPresentationDescriptor { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFPresentationDescriptor, ::windows_core::IUnknown, IMFAttributes); -unsafe impl ::windows_core::Interface for IMFPresentationDescriptor { - type Vtable = IMFPresentationDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFPresentationDescriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x03cb2711_24d7_4db6_a17f_f3a7a479a536); -} #[repr(C)] #[doc(hidden)] pub struct IMFPresentationDescriptor_Vtbl { @@ -16080,9 +14350,8 @@ pub struct IMFPresentationDescriptor_Vtbl { pub DeselectStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwdescriptorindex: u32) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pppresentationdescriptor: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFPresentationTimeSource(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFPresentationTimeSource, IMFPresentationTimeSource_Vtbl, 0x7ff12cce_f76f_41c2_863b_1666c8e5e139); +::windows_core::imp::interface_hierarchy!(IMFPresentationTimeSource, ::windows_core::IUnknown, IMFClock); impl IMFPresentationTimeSource { pub unsafe fn GetClockCharacteristics(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -16107,22 +14376,14 @@ impl IMFPresentationTimeSource { (::windows_core::Interface::vtable(self).GetUnderlyingClock)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFPresentationTimeSource, ::windows_core::IUnknown, IMFClock); -unsafe impl ::windows_core::Interface for IMFPresentationTimeSource { - type Vtable = IMFPresentationTimeSource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFPresentationTimeSource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7ff12cce_f76f_41c2_863b_1666c8e5e139); -} #[repr(C)] #[doc(hidden)] pub struct IMFPresentationTimeSource_Vtbl { pub base__: IMFClock_Vtbl, pub GetUnderlyingClock: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppclock: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFProtectedEnvironmentAccess(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFProtectedEnvironmentAccess, IMFProtectedEnvironmentAccess_Vtbl, 0xef5dc845_f0d9_4ec9_b00c_cb5183d38434); +::windows_core::imp::interface_hierarchy!(IMFProtectedEnvironmentAccess, ::windows_core::IUnknown); impl IMFProtectedEnvironmentAccess { pub unsafe fn Call(&self, input: &[u8], output: &mut [u8]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Call)(::windows_core::Interface::as_raw(self), input.len().try_into().unwrap(), ::core::mem::transmute(input.as_ptr()), output.len().try_into().unwrap(), ::core::mem::transmute(output.as_ptr())).ok() @@ -16131,13 +14392,6 @@ impl IMFProtectedEnvironmentAccess { (::windows_core::Interface::vtable(self).ReadGRL)(::windows_core::Interface::as_raw(self), outputlength, output).ok() } } -::windows_core::imp::interface_hierarchy!(IMFProtectedEnvironmentAccess, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFProtectedEnvironmentAccess { - type Vtable = IMFProtectedEnvironmentAccess_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFProtectedEnvironmentAccess { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xef5dc845_f0d9_4ec9_b00c_cb5183d38434); -} #[repr(C)] #[doc(hidden)] pub struct IMFProtectedEnvironmentAccess_Vtbl { @@ -16145,9 +14399,8 @@ pub struct IMFProtectedEnvironmentAccess_Vtbl { pub Call: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, inputlength: u32, input: *const u8, outputlength: u32, output: *mut u8) -> ::windows_core::HRESULT, pub ReadGRL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, outputlength: *mut u32, output: *mut *mut u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFQualityAdvise(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFQualityAdvise, IMFQualityAdvise_Vtbl, 0xec15e2e9_e36b_4f7c_8758_77d452ef4ce7); +::windows_core::imp::interface_hierarchy!(IMFQualityAdvise, ::windows_core::IUnknown); impl IMFQualityAdvise { pub unsafe fn SetDropMode(&self, edropmode: MF_QUALITY_DROP_MODE) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetDropMode)(::windows_core::Interface::as_raw(self), edropmode).ok() @@ -16167,13 +14420,6 @@ impl IMFQualityAdvise { (::windows_core::Interface::vtable(self).DropTime)(::windows_core::Interface::as_raw(self), hnsamounttodrop).ok() } } -::windows_core::imp::interface_hierarchy!(IMFQualityAdvise, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFQualityAdvise { - type Vtable = IMFQualityAdvise_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFQualityAdvise { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xec15e2e9_e36b_4f7c_8758_77d452ef4ce7); -} #[repr(C)] #[doc(hidden)] pub struct IMFQualityAdvise_Vtbl { @@ -16184,9 +14430,8 @@ pub struct IMFQualityAdvise_Vtbl { pub GetQualityLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pequalitylevel: *mut MF_QUALITY_LEVEL) -> ::windows_core::HRESULT, pub DropTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hnsamounttodrop: i64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFQualityAdvise2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFQualityAdvise2, IMFQualityAdvise2_Vtbl, 0xf3706f0d_8ea2_4886_8000_7155e9ec2eae); +::windows_core::imp::interface_hierarchy!(IMFQualityAdvise2, ::windows_core::IUnknown, IMFQualityAdvise); impl IMFQualityAdvise2 { pub unsafe fn SetDropMode(&self, edropmode: MF_QUALITY_DROP_MODE) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.SetDropMode)(::windows_core::Interface::as_raw(self), edropmode).ok() @@ -16213,22 +14458,14 @@ impl IMFQualityAdvise2 { (::windows_core::Interface::vtable(self).NotifyQualityEvent)(::windows_core::Interface::as_raw(self), pevent.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFQualityAdvise2, ::windows_core::IUnknown, IMFQualityAdvise); -unsafe impl ::windows_core::Interface for IMFQualityAdvise2 { - type Vtable = IMFQualityAdvise2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFQualityAdvise2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf3706f0d_8ea2_4886_8000_7155e9ec2eae); -} #[repr(C)] #[doc(hidden)] pub struct IMFQualityAdvise2_Vtbl { pub base__: IMFQualityAdvise_Vtbl, pub NotifyQualityEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pevent: *mut ::core::ffi::c_void, pdwflags: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFQualityAdviseLimits(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFQualityAdviseLimits, IMFQualityAdviseLimits_Vtbl, 0xdfcd8e4d_30b5_4567_acaa_8eb5b7853dc9); +::windows_core::imp::interface_hierarchy!(IMFQualityAdviseLimits, ::windows_core::IUnknown); impl IMFQualityAdviseLimits { pub unsafe fn GetMaximumDropMode(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -16239,13 +14476,6 @@ impl IMFQualityAdviseLimits { (::windows_core::Interface::vtable(self).GetMinimumQualityLevel)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFQualityAdviseLimits, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFQualityAdviseLimits { - type Vtable = IMFQualityAdviseLimits_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFQualityAdviseLimits { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdfcd8e4d_30b5_4567_acaa_8eb5b7853dc9); -} #[repr(C)] #[doc(hidden)] pub struct IMFQualityAdviseLimits_Vtbl { @@ -16253,9 +14483,8 @@ pub struct IMFQualityAdviseLimits_Vtbl { pub GetMaximumDropMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pedropmode: *mut MF_QUALITY_DROP_MODE) -> ::windows_core::HRESULT, pub GetMinimumQualityLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pequalitylevel: *mut MF_QUALITY_LEVEL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFQualityManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFQualityManager, IMFQualityManager_Vtbl, 0x8d009d86_5b9f_4115_b1fc_9f80d52ab8ab); +::windows_core::imp::interface_hierarchy!(IMFQualityManager, ::windows_core::IUnknown); impl IMFQualityManager { pub unsafe fn NotifyTopology(&self, ptopology: P0) -> ::windows_core::Result<()> where @@ -16294,13 +14523,6 @@ impl IMFQualityManager { (::windows_core::Interface::vtable(self).Shutdown)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IMFQualityManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFQualityManager { - type Vtable = IMFQualityManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFQualityManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8d009d86_5b9f_4115_b1fc_9f80d52ab8ab); -} #[repr(C)] #[doc(hidden)] pub struct IMFQualityManager_Vtbl { @@ -16312,9 +14534,8 @@ pub struct IMFQualityManager_Vtbl { pub NotifyQualityEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pobject: *mut ::core::ffi::c_void, pevent: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Shutdown: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFRateControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFRateControl, IMFRateControl_Vtbl, 0x88ddcd21_03c3_4275_91ed_55ee3929328f); +::windows_core::imp::interface_hierarchy!(IMFRateControl, ::windows_core::IUnknown); impl IMFRateControl { pub unsafe fn SetRate(&self, fthin: P0, flrate: f32) -> ::windows_core::Result<()> where @@ -16326,13 +14547,6 @@ impl IMFRateControl { (::windows_core::Interface::vtable(self).GetRate)(::windows_core::Interface::as_raw(self), pfthin, pflrate).ok() } } -::windows_core::imp::interface_hierarchy!(IMFRateControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFRateControl { - type Vtable = IMFRateControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFRateControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x88ddcd21_03c3_4275_91ed_55ee3929328f); -} #[repr(C)] #[doc(hidden)] pub struct IMFRateControl_Vtbl { @@ -16340,9 +14554,8 @@ pub struct IMFRateControl_Vtbl { pub SetRate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fthin: super::super::Foundation::BOOL, flrate: f32) -> ::windows_core::HRESULT, pub GetRate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfthin: *mut super::super::Foundation::BOOL, pflrate: *mut f32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFRateSupport(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFRateSupport, IMFRateSupport_Vtbl, 0x0a9ccdbc_d797_4563_9667_94ec5d79292d); +::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 @@ -16365,13 +14578,6 @@ impl IMFRateSupport { (::windows_core::Interface::vtable(self).IsRateSupported)(::windows_core::Interface::as_raw(self), fthin.into_param().abi(), flrate, pflnearestsupportedrate).ok() } } -::windows_core::imp::interface_hierarchy!(IMFRateSupport, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFRateSupport { - type Vtable = IMFRateSupport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFRateSupport { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0a9ccdbc_d797_4563_9667_94ec5d79292d); -} #[repr(C)] #[doc(hidden)] pub struct IMFRateSupport_Vtbl { @@ -16380,15 +14586,14 @@ pub struct IMFRateSupport_Vtbl { pub GetFastestRate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, edirection: MFRATE_DIRECTION, fthin: super::super::Foundation::BOOL, pflrate: *mut f32) -> ::windows_core::HRESULT, pub IsRateSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fthin: super::super::Foundation::BOOL, flrate: f32, pflnearestsupportedrate: *mut f32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFReadWriteClassFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFReadWriteClassFactory, IMFReadWriteClassFactory_Vtbl, 0xe7fe2e12_661c_40da_92f9_4f002ab67627); +::windows_core::imp::interface_hierarchy!(IMFReadWriteClassFactory, ::windows_core::IUnknown); impl IMFReadWriteClassFactory { pub unsafe fn CreateInstanceFromURL(&self, clsid: *const ::windows_core::GUID, pwszurl: P0, pattributes: P1) -> ::windows_core::Result where P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, P1: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -16397,19 +14602,12 @@ impl IMFReadWriteClassFactory { where P0: ::windows_core::IntoParam<::windows_core::IUnknown>, P1: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFReadWriteClassFactory, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFReadWriteClassFactory { - type Vtable = IMFReadWriteClassFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFReadWriteClassFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe7fe2e12_661c_40da_92f9_4f002ab67627); -} #[repr(C)] #[doc(hidden)] pub struct IMFReadWriteClassFactory_Vtbl { @@ -16417,9 +14615,8 @@ pub struct IMFReadWriteClassFactory_Vtbl { pub CreateInstanceFromURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, clsid: *const ::windows_core::GUID, pwszurl: ::windows_core::PCWSTR, pattributes: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppvobject: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateInstanceFromObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, clsid: *const ::windows_core::GUID, punkobject: *mut ::core::ffi::c_void, pattributes: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppvobject: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFRealTimeClient(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFRealTimeClient, IMFRealTimeClient_Vtbl, 0x2347d60b_3fb5_480c_8803_8df3adcd3ef0); +::windows_core::imp::interface_hierarchy!(IMFRealTimeClient, ::windows_core::IUnknown); impl IMFRealTimeClient { pub unsafe fn RegisterThreads(&self, dwtaskindex: u32, wszclass: P0) -> ::windows_core::Result<()> where @@ -16434,13 +14631,6 @@ impl IMFRealTimeClient { (::windows_core::Interface::vtable(self).SetWorkQueue)(::windows_core::Interface::as_raw(self), dwworkqueueid).ok() } } -::windows_core::imp::interface_hierarchy!(IMFRealTimeClient, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFRealTimeClient { - type Vtable = IMFRealTimeClient_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFRealTimeClient { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2347d60b_3fb5_480c_8803_8df3adcd3ef0); -} #[repr(C)] #[doc(hidden)] pub struct IMFRealTimeClient_Vtbl { @@ -16449,9 +14639,8 @@ pub struct IMFRealTimeClient_Vtbl { pub UnregisterThreads: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetWorkQueue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwworkqueueid: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFRealTimeClientEx(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFRealTimeClientEx, IMFRealTimeClientEx_Vtbl, 0x03910848_ab16_4611_b100_17b88ae2f248); +::windows_core::imp::interface_hierarchy!(IMFRealTimeClientEx, ::windows_core::IUnknown); impl IMFRealTimeClientEx { pub unsafe fn RegisterThreadsEx(&self, pdwtaskindex: *mut u32, wszclassname: P0, lbasepriority: i32) -> ::windows_core::Result<()> where @@ -16466,13 +14655,6 @@ impl IMFRealTimeClientEx { (::windows_core::Interface::vtable(self).SetWorkQueueEx)(::windows_core::Interface::as_raw(self), dwmultithreadedworkqueueid, lworkitembasepriority).ok() } } -::windows_core::imp::interface_hierarchy!(IMFRealTimeClientEx, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFRealTimeClientEx { - type Vtable = IMFRealTimeClientEx_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFRealTimeClientEx { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x03910848_ab16_4611_b100_17b88ae2f248); -} #[repr(C)] #[doc(hidden)] pub struct IMFRealTimeClientEx_Vtbl { @@ -16481,31 +14663,22 @@ pub struct IMFRealTimeClientEx_Vtbl { pub UnregisterThreads: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetWorkQueueEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwmultithreadedworkqueueid: u32, lworkitembasepriority: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFRelativePanelReport(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFRelativePanelReport, IMFRelativePanelReport_Vtbl, 0xf25362ea_2c0e_447f_81e2_755914cdc0c3); +::windows_core::imp::interface_hierarchy!(IMFRelativePanelReport, ::windows_core::IUnknown); impl IMFRelativePanelReport { pub unsafe fn GetRelativePanel(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetRelativePanel)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFRelativePanelReport, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFRelativePanelReport { - type Vtable = IMFRelativePanelReport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFRelativePanelReport { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf25362ea_2c0e_447f_81e2_755914cdc0c3); -} #[repr(C)] #[doc(hidden)] pub struct IMFRelativePanelReport_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetRelativePanel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, panel: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFRelativePanelWatcher(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFRelativePanelWatcher, IMFRelativePanelWatcher_Vtbl, 0x421af7f6_573e_4ad0_8fda_2e57cedb18c6); +::windows_core::imp::interface_hierarchy!(IMFRelativePanelWatcher, ::windows_core::IUnknown, IMFShutdown); impl IMFRelativePanelWatcher { pub unsafe fn Shutdown(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.Shutdown)(::windows_core::Interface::as_raw(self)).ok() @@ -16533,13 +14706,6 @@ impl IMFRelativePanelWatcher { (::windows_core::Interface::vtable(self).GetReport)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFRelativePanelWatcher, ::windows_core::IUnknown, IMFShutdown); -unsafe impl ::windows_core::Interface for IMFRelativePanelWatcher { - type Vtable = IMFRelativePanelWatcher_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFRelativePanelWatcher { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x421af7f6_573e_4ad0_8fda_2e57cedb18c6); -} #[repr(C)] #[doc(hidden)] pub struct IMFRelativePanelWatcher_Vtbl { @@ -16548,9 +14714,8 @@ pub struct IMFRelativePanelWatcher_Vtbl { pub EndGetReport: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, presult: *mut ::core::ffi::c_void, pprelativepanelreport: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetReport: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pprelativepanelreport: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFRemoteAsyncCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFRemoteAsyncCallback, IMFRemoteAsyncCallback_Vtbl, 0xa27003d0_2354_4f2a_8d6a_ab7cff15437e); +::windows_core::imp::interface_hierarchy!(IMFRemoteAsyncCallback, ::windows_core::IUnknown); impl IMFRemoteAsyncCallback { pub unsafe fn Invoke(&self, hr: ::windows_core::HRESULT, premoteresult: P0) -> ::windows_core::Result<()> where @@ -16559,22 +14724,14 @@ impl IMFRemoteAsyncCallback { (::windows_core::Interface::vtable(self).Invoke)(::windows_core::Interface::as_raw(self), hr, premoteresult.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMFRemoteAsyncCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFRemoteAsyncCallback { - type Vtable = IMFRemoteAsyncCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFRemoteAsyncCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa27003d0_2354_4f2a_8d6a_ab7cff15437e); -} #[repr(C)] #[doc(hidden)] pub struct IMFRemoteAsyncCallback_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Invoke: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hr: ::windows_core::HRESULT, premoteresult: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFRemoteDesktopPlugin(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFRemoteDesktopPlugin, IMFRemoteDesktopPlugin_Vtbl, 0x1cde6309_cae0_4940_907e_c1ec9c3d1d4a); +::windows_core::imp::interface_hierarchy!(IMFRemoteDesktopPlugin, ::windows_core::IUnknown); impl IMFRemoteDesktopPlugin { pub unsafe fn UpdateTopology(&self, ptopology: P0) -> ::windows_core::Result<()> where @@ -16583,22 +14740,14 @@ impl IMFRemoteDesktopPlugin { (::windows_core::Interface::vtable(self).UpdateTopology)(::windows_core::Interface::as_raw(self), ptopology.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMFRemoteDesktopPlugin, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFRemoteDesktopPlugin { - type Vtable = IMFRemoteDesktopPlugin_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFRemoteDesktopPlugin { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1cde6309_cae0_4940_907e_c1ec9c3d1d4a); -} #[repr(C)] #[doc(hidden)] pub struct IMFRemoteDesktopPlugin_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub UpdateTopology: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptopology: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFRemoteProxy(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFRemoteProxy, IMFRemoteProxy_Vtbl, 0x994e23ad_1cc2_493c_b9fa_46f1cb040fa4); +::windows_core::imp::interface_hierarchy!(IMFRemoteProxy, ::windows_core::IUnknown); impl IMFRemoteProxy { pub unsafe fn GetRemoteObject(&self, riid: *const ::windows_core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetRemoteObject)(::windows_core::Interface::as_raw(self), riid, ppv).ok() @@ -16607,13 +14756,6 @@ impl IMFRemoteProxy { (::windows_core::Interface::vtable(self).GetRemoteHost)(::windows_core::Interface::as_raw(self), riid, ppv).ok() } } -::windows_core::imp::interface_hierarchy!(IMFRemoteProxy, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFRemoteProxy { - type Vtable = IMFRemoteProxy_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFRemoteProxy { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x994e23ad_1cc2_493c_b9fa_46f1cb040fa4); -} #[repr(C)] #[doc(hidden)] pub struct IMFRemoteProxy_Vtbl { @@ -16621,9 +14763,8 @@ pub struct IMFRemoteProxy_Vtbl { pub GetRemoteObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetRemoteHost: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFSAMIStyle(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFSAMIStyle, IMFSAMIStyle_Vtbl, 0xa7e025dd_5303_4a62_89d6_e747e1efac73); +::windows_core::imp::interface_hierarchy!(IMFSAMIStyle, ::windows_core::IUnknown); impl IMFSAMIStyle { pub unsafe fn GetStyleCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -16646,13 +14787,6 @@ impl IMFSAMIStyle { (::windows_core::Interface::vtable(self).GetSelectedStyle)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFSAMIStyle, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFSAMIStyle { - type Vtable = IMFSAMIStyle_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFSAMIStyle { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa7e025dd_5303_4a62_89d6_e747e1efac73); -} #[repr(C)] #[doc(hidden)] pub struct IMFSAMIStyle_Vtbl { @@ -16665,9 +14799,8 @@ pub struct IMFSAMIStyle_Vtbl { pub SetSelectedStyle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwszstyle: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub GetSelectedStyle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppwszstyle: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFSSLCertificateManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFSSLCertificateManager, IMFSSLCertificateManager_Vtbl, 0x61f7d887_1230_4a8b_aeba_8ad434d1a64d); +::windows_core::imp::interface_hierarchy!(IMFSSLCertificateManager, ::windows_core::IUnknown); impl IMFSSLCertificateManager { pub unsafe fn GetClientCertificate(&self, pszurl: P0, ppbdata: *mut *mut u8, pcbdata: *mut u32) -> ::windows_core::Result<()> where @@ -16703,13 +14836,6 @@ impl IMFSSLCertificateManager { (::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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFSSLCertificateManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFSSLCertificateManager { - type Vtable = IMFSSLCertificateManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFSSLCertificateManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x61f7d887_1230_4a8b_aeba_8ad434d1a64d); -} #[repr(C)] #[doc(hidden)] pub struct IMFSSLCertificateManager_Vtbl { @@ -16720,9 +14846,8 @@ pub struct IMFSSLCertificateManager_Vtbl { pub GetCertificatePolicy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszurl: ::windows_core::PCWSTR, pfoverrideautomaticcheck: *mut super::super::Foundation::BOOL, pfclientcertificateavailable: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub OnServerCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszurl: ::windows_core::PCWSTR, pbdata: *const u8, cbdata: u32, pfisgood: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFSample(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFSample, IMFSample_Vtbl, 0xc40a00f2_b93a_4d80_ae8c_5a1c634f58e4); +::windows_core::imp::interface_hierarchy!(IMFSample, ::windows_core::IUnknown, IMFAttributes); impl IMFSample { #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] @@ -16784,7 +14909,7 @@ impl IMFSample { } pub unsafe fn GetUnknown(&self, guidkey: *const ::windows_core::GUID) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.GetUnknown)(::windows_core::Interface::as_raw(self), guidkey, &T::IID, &mut result__).from_abi(result__) @@ -16904,13 +15029,6 @@ impl IMFSample { (::windows_core::Interface::vtable(self).CopyToBuffer)(::windows_core::Interface::as_raw(self), pbuffer.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMFSample, ::windows_core::IUnknown, IMFAttributes); -unsafe impl ::windows_core::Interface for IMFSample { - type Vtable = IMFSample_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFSample { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc40a00f2_b93a_4d80_ae8c_5a1c634f58e4); -} #[repr(C)] #[doc(hidden)] pub struct IMFSample_Vtbl { @@ -16930,9 +15048,8 @@ pub struct IMFSample_Vtbl { pub GetTotalLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcbtotallength: *mut u32) -> ::windows_core::HRESULT, pub CopyToBuffer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbuffer: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFSampleAllocatorControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFSampleAllocatorControl, IMFSampleAllocatorControl_Vtbl, 0xda62b958_3a38_4a97_bd27_149c640c0771); +::windows_core::imp::interface_hierarchy!(IMFSampleAllocatorControl, ::windows_core::IUnknown); impl IMFSampleAllocatorControl { pub unsafe fn SetDefaultAllocator(&self, dwoutputstreamid: u32, pallocator: P0) -> ::windows_core::Result<()> where @@ -16944,13 +15061,6 @@ impl IMFSampleAllocatorControl { (::windows_core::Interface::vtable(self).GetAllocatorUsage)(::windows_core::Interface::as_raw(self), dwoutputstreamid, pdwinputstreamid, peusage).ok() } } -::windows_core::imp::interface_hierarchy!(IMFSampleAllocatorControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFSampleAllocatorControl { - type Vtable = IMFSampleAllocatorControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFSampleAllocatorControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xda62b958_3a38_4a97_bd27_149c640c0771); -} #[repr(C)] #[doc(hidden)] pub struct IMFSampleAllocatorControl_Vtbl { @@ -16958,9 +15068,8 @@ pub struct IMFSampleAllocatorControl_Vtbl { pub SetDefaultAllocator: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwoutputstreamid: u32, pallocator: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetAllocatorUsage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwoutputstreamid: u32, pdwinputstreamid: *mut u32, peusage: *mut MFSampleAllocatorUsage) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFSampleGrabberSinkCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFSampleGrabberSinkCallback, IMFSampleGrabberSinkCallback_Vtbl, 0x8c7b80bf_ee42_4b59_b1df_55668e1bdca8); +::windows_core::imp::interface_hierarchy!(IMFSampleGrabberSinkCallback, ::windows_core::IUnknown, IMFClockStateSink); impl IMFSampleGrabberSinkCallback { pub unsafe fn OnClockStart(&self, hnssystemtime: i64, llclockstartoffset: i64) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.OnClockStart)(::windows_core::Interface::as_raw(self), hnssystemtime, llclockstartoffset).ok() @@ -16990,13 +15099,6 @@ impl IMFSampleGrabberSinkCallback { (::windows_core::Interface::vtable(self).OnShutdown)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IMFSampleGrabberSinkCallback, ::windows_core::IUnknown, IMFClockStateSink); -unsafe impl ::windows_core::Interface for IMFSampleGrabberSinkCallback { - type Vtable = IMFSampleGrabberSinkCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFSampleGrabberSinkCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8c7b80bf_ee42_4b59_b1df_55668e1bdca8); -} #[repr(C)] #[doc(hidden)] pub struct IMFSampleGrabberSinkCallback_Vtbl { @@ -17005,9 +15107,8 @@ pub struct IMFSampleGrabberSinkCallback_Vtbl { pub OnProcessSample: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guidmajormediatype: *const ::windows_core::GUID, dwsampleflags: u32, llsampletime: i64, llsampleduration: i64, psamplebuffer: *const u8, dwsamplesize: u32) -> ::windows_core::HRESULT, pub OnShutdown: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFSampleGrabberSinkCallback2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFSampleGrabberSinkCallback2, IMFSampleGrabberSinkCallback2_Vtbl, 0xca86aa50_c46e_429e_ab27_16d6ac6844cb); +::windows_core::imp::interface_hierarchy!(IMFSampleGrabberSinkCallback2, ::windows_core::IUnknown, IMFClockStateSink, IMFSampleGrabberSinkCallback); impl IMFSampleGrabberSinkCallback2 { pub unsafe fn OnClockStart(&self, hnssystemtime: i64, llclockstartoffset: i64) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.OnClockStart)(::windows_core::Interface::as_raw(self), hnssystemtime, llclockstartoffset).ok() @@ -17043,22 +15144,14 @@ impl IMFSampleGrabberSinkCallback2 { (::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::imp::interface_hierarchy!(IMFSampleGrabberSinkCallback2, ::windows_core::IUnknown, IMFClockStateSink, IMFSampleGrabberSinkCallback); -unsafe impl ::windows_core::Interface for IMFSampleGrabberSinkCallback2 { - type Vtable = IMFSampleGrabberSinkCallback2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFSampleGrabberSinkCallback2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xca86aa50_c46e_429e_ab27_16d6ac6844cb); -} #[repr(C)] #[doc(hidden)] pub struct IMFSampleGrabberSinkCallback2_Vtbl { pub base__: IMFSampleGrabberSinkCallback_Vtbl, pub OnProcessSampleEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guidmajormediatype: *const ::windows_core::GUID, dwsampleflags: u32, llsampletime: i64, llsampleduration: i64, psamplebuffer: *const u8, dwsamplesize: u32, pattributes: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFSampleOutputStream(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFSampleOutputStream, IMFSampleOutputStream_Vtbl, 0x8feed468_6f7e_440d_869a_49bdd283ad0d); +::windows_core::imp::interface_hierarchy!(IMFSampleOutputStream, ::windows_core::IUnknown); impl IMFSampleOutputStream { pub unsafe fn BeginWriteSample(&self, psample: P0, pcallback: P1, punkstate: P2) -> ::windows_core::Result<()> where @@ -17078,13 +15171,6 @@ impl IMFSampleOutputStream { (::windows_core::Interface::vtable(self).Close)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IMFSampleOutputStream, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFSampleOutputStream { - type Vtable = IMFSampleOutputStream_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFSampleOutputStream { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8feed468_6f7e_440d_869a_49bdd283ad0d); -} #[repr(C)] #[doc(hidden)] pub struct IMFSampleOutputStream_Vtbl { @@ -17093,9 +15179,8 @@ pub struct IMFSampleOutputStream_Vtbl { pub EndWriteSample: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, presult: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Close: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFSampleProtection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFSampleProtection, IMFSampleProtection_Vtbl, 0x8e36395f_c7b9_43c4_a54d_512b4af63c95); +::windows_core::imp::interface_hierarchy!(IMFSampleProtection, ::windows_core::IUnknown); impl IMFSampleProtection { pub unsafe fn GetInputProtectionVersion(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -17115,13 +15200,6 @@ impl IMFSampleProtection { (::windows_core::Interface::vtable(self).InitInputProtection)(::windows_core::Interface::as_raw(self), dwversion, dwinputid, pbseed, cbseed).ok() } } -::windows_core::imp::interface_hierarchy!(IMFSampleProtection, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFSampleProtection { - type Vtable = IMFSampleProtection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFSampleProtection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8e36395f_c7b9_43c4_a54d_512b4af63c95); -} #[repr(C)] #[doc(hidden)] pub struct IMFSampleProtection_Vtbl { @@ -17132,9 +15210,8 @@ pub struct IMFSampleProtection_Vtbl { pub InitOutputProtection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwversion: u32, dwoutputid: u32, pbcert: *const u8, cbcert: u32, ppbseed: *mut *mut u8, pcbseed: *mut u32) -> ::windows_core::HRESULT, pub InitInputProtection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwversion: u32, dwinputid: u32, pbseed: *const u8, cbseed: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFSaveJob(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFSaveJob, IMFSaveJob_Vtbl, 0xe9931663_80bf_4c6e_98af_5dcf58747d1f); +::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 @@ -17158,13 +15235,6 @@ impl IMFSaveJob { (::windows_core::Interface::vtable(self).GetProgress)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFSaveJob, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFSaveJob { - type Vtable = IMFSaveJob_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFSaveJob { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe9931663_80bf_4c6e_98af_5dcf58747d1f); -} #[repr(C)] #[doc(hidden)] pub struct IMFSaveJob_Vtbl { @@ -17174,9 +15244,8 @@ pub struct IMFSaveJob_Vtbl { pub CancelSave: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetProgress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwpercentcomplete: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFSchemeHandler(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFSchemeHandler, IMFSchemeHandler_Vtbl, 0x6d4c7b74_52a0_4bb7_b0db_55f29f47a668); +::windows_core::imp::interface_hierarchy!(IMFSchemeHandler, ::windows_core::IUnknown); impl IMFSchemeHandler { #[doc = "Required features: `\"Win32_UI_Shell_PropertiesSystem\"`"] #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] @@ -17202,13 +15271,6 @@ impl IMFSchemeHandler { (::windows_core::Interface::vtable(self).CancelObjectCreation)(::windows_core::Interface::as_raw(self), piunknowncancelcookie.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMFSchemeHandler, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFSchemeHandler { - type Vtable = IMFSchemeHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFSchemeHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6d4c7b74_52a0_4bb7_b0db_55f29f47a668); -} #[repr(C)] #[doc(hidden)] pub struct IMFSchemeHandler_Vtbl { @@ -17220,31 +15282,22 @@ pub struct IMFSchemeHandler_Vtbl { pub EndCreateObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, presult: *mut ::core::ffi::c_void, pobjecttype: *mut MF_OBJECT_TYPE, ppobject: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CancelObjectCreation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, piunknowncancelcookie: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFSecureBuffer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFSecureBuffer, IMFSecureBuffer_Vtbl, 0xc1209904_e584_4752_a2d6_7f21693f8b21); +::windows_core::imp::interface_hierarchy!(IMFSecureBuffer, ::windows_core::IUnknown); impl IMFSecureBuffer { pub unsafe fn GetIdentifier(&self) -> ::windows_core::Result<::windows_core::GUID> { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetIdentifier)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFSecureBuffer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFSecureBuffer { - type Vtable = IMFSecureBuffer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFSecureBuffer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc1209904_e584_4752_a2d6_7f21693f8b21); -} #[repr(C)] #[doc(hidden)] pub struct IMFSecureBuffer_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetIdentifier: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pguididentifier: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFSecureChannel(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFSecureChannel, IMFSecureChannel_Vtbl, 0xd0ae555d_3b12_4d97_b060_0990bc5aeb67); +::windows_core::imp::interface_hierarchy!(IMFSecureChannel, ::windows_core::IUnknown); impl IMFSecureChannel { pub unsafe fn GetCertificate(&self, ppcert: *mut *mut u8, pcbcert: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetCertificate)(::windows_core::Interface::as_raw(self), ppcert, pcbcert).ok() @@ -17253,13 +15306,6 @@ impl IMFSecureChannel { (::windows_core::Interface::vtable(self).SetupSession)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pbencryptedsessionkey.as_ptr()), pbencryptedsessionkey.len().try_into().unwrap()).ok() } } -::windows_core::imp::interface_hierarchy!(IMFSecureChannel, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFSecureChannel { - type Vtable = IMFSecureChannel_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFSecureChannel { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd0ae555d_3b12_4d97_b060_0990bc5aeb67); -} #[repr(C)] #[doc(hidden)] pub struct IMFSecureChannel_Vtbl { @@ -17267,9 +15313,8 @@ pub struct IMFSecureChannel_Vtbl { pub GetCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppcert: *mut *mut u8, pcbcert: *mut u32) -> ::windows_core::HRESULT, pub SetupSession: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbencryptedsessionkey: *const u8, cbsessionkey: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFSeekInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFSeekInfo, IMFSeekInfo_Vtbl, 0x26afea53_d9ed_42b5_ab80_e64f9ee34779); +::windows_core::imp::interface_hierarchy!(IMFSeekInfo, ::windows_core::IUnknown); impl IMFSeekInfo { #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] @@ -17277,13 +15322,6 @@ impl IMFSeekInfo { (::windows_core::Interface::vtable(self).GetNearestKeyFrames)(::windows_core::Interface::as_raw(self), pguidtimeformat, pvarstartposition, pvarpreviouskeyframe, pvarnextkeyframe).ok() } } -::windows_core::imp::interface_hierarchy!(IMFSeekInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFSeekInfo { - type Vtable = IMFSeekInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFSeekInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x26afea53_d9ed_42b5_ab80_e64f9ee34779); -} #[repr(C)] #[doc(hidden)] pub struct IMFSeekInfo_Vtbl { @@ -17293,9 +15331,8 @@ pub struct IMFSeekInfo_Vtbl { #[cfg(not(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant")))] GetNearestKeyFrames: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFSensorActivitiesReport(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFSensorActivitiesReport, IMFSensorActivitiesReport_Vtbl, 0x683f7a5e_4a19_43cd_b1a9_dbf4ab3f7777); +::windows_core::imp::interface_hierarchy!(IMFSensorActivitiesReport, ::windows_core::IUnknown); impl IMFSensorActivitiesReport { pub unsafe fn GetCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -17313,13 +15350,6 @@ impl IMFSensorActivitiesReport { (::windows_core::Interface::vtable(self).GetActivityReportByDeviceName)(::windows_core::Interface::as_raw(self), symbolicname.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFSensorActivitiesReport, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFSensorActivitiesReport { - type Vtable = IMFSensorActivitiesReport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFSensorActivitiesReport { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x683f7a5e_4a19_43cd_b1a9_dbf4ab3f7777); -} #[repr(C)] #[doc(hidden)] pub struct IMFSensorActivitiesReport_Vtbl { @@ -17328,9 +15358,8 @@ pub struct IMFSensorActivitiesReport_Vtbl { pub GetActivityReport: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, sensoractivityreport: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetActivityReportByDeviceName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, symbolicname: ::windows_core::PCWSTR, sensoractivityreport: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFSensorActivitiesReportCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFSensorActivitiesReportCallback, IMFSensorActivitiesReportCallback_Vtbl, 0xde5072ee_dbe3_46dc_8a87_b6f631194751); +::windows_core::imp::interface_hierarchy!(IMFSensorActivitiesReportCallback, ::windows_core::IUnknown); impl IMFSensorActivitiesReportCallback { pub unsafe fn OnActivitiesReport(&self, sensoractivitiesreport: P0) -> ::windows_core::Result<()> where @@ -17339,22 +15368,14 @@ impl IMFSensorActivitiesReportCallback { (::windows_core::Interface::vtable(self).OnActivitiesReport)(::windows_core::Interface::as_raw(self), sensoractivitiesreport.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMFSensorActivitiesReportCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFSensorActivitiesReportCallback { - type Vtable = IMFSensorActivitiesReportCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFSensorActivitiesReportCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xde5072ee_dbe3_46dc_8a87_b6f631194751); -} #[repr(C)] #[doc(hidden)] pub struct IMFSensorActivitiesReportCallback_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnActivitiesReport: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sensoractivitiesreport: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFSensorActivityMonitor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFSensorActivityMonitor, IMFSensorActivityMonitor_Vtbl, 0xd0cef145_b3f4_4340_a2e5_7a5080ca05cb); +::windows_core::imp::interface_hierarchy!(IMFSensorActivityMonitor, ::windows_core::IUnknown); impl IMFSensorActivityMonitor { pub unsafe fn Start(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Start)(::windows_core::Interface::as_raw(self)).ok() @@ -17363,13 +15384,6 @@ impl IMFSensorActivityMonitor { (::windows_core::Interface::vtable(self).Stop)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IMFSensorActivityMonitor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFSensorActivityMonitor { - type Vtable = IMFSensorActivityMonitor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFSensorActivityMonitor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd0cef145_b3f4_4340_a2e5_7a5080ca05cb); -} #[repr(C)] #[doc(hidden)] pub struct IMFSensorActivityMonitor_Vtbl { @@ -17377,9 +15391,8 @@ pub struct IMFSensorActivityMonitor_Vtbl { pub Start: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Stop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFSensorActivityReport(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFSensorActivityReport, IMFSensorActivityReport_Vtbl, 0x3e8c4be1_a8c2_4528_90de_2851bde5fead); +::windows_core::imp::interface_hierarchy!(IMFSensorActivityReport, ::windows_core::IUnknown); impl IMFSensorActivityReport { pub unsafe fn GetFriendlyName(&self, friendlyname: &mut [u16], pcchwritten: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetFriendlyName)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(friendlyname.as_ptr()), friendlyname.len().try_into().unwrap(), pcchwritten).ok() @@ -17396,13 +15409,6 @@ impl IMFSensorActivityReport { (::windows_core::Interface::vtable(self).GetProcessActivity)(::windows_core::Interface::as_raw(self), index, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFSensorActivityReport, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFSensorActivityReport { - type Vtable = IMFSensorActivityReport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFSensorActivityReport { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3e8c4be1_a8c2_4528_90de_2851bde5fead); -} #[repr(C)] #[doc(hidden)] pub struct IMFSensorActivityReport_Vtbl { @@ -17412,9 +15418,8 @@ pub struct IMFSensorActivityReport_Vtbl { pub GetProcessCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pccount: *mut u32) -> ::windows_core::HRESULT, pub GetProcessActivity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, ppprocessactivity: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFSensorDevice(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFSensorDevice, IMFSensorDevice_Vtbl, 0xfb9f48f2_2a18_4e28_9730_786f30f04dc4); +::windows_core::imp::interface_hierarchy!(IMFSensorDevice, ::windows_core::IUnknown); impl IMFSensorDevice { pub unsafe fn GetDeviceId(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -17451,13 +15456,6 @@ impl IMFSensorDevice { (::windows_core::Interface::vtable(self).GetSensorDeviceMode)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFSensorDevice, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFSensorDevice { - type Vtable = IMFSensorDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFSensorDevice { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfb9f48f2_2a18_4e28_9730_786f30f04dc4); -} #[repr(C)] #[doc(hidden)] pub struct IMFSensorDevice_Vtbl { @@ -17472,9 +15470,8 @@ pub struct IMFSensorDevice_Vtbl { pub SetSensorDeviceMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, emode: MFSensorDeviceMode) -> ::windows_core::HRESULT, pub GetSensorDeviceMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pemode: *mut MFSensorDeviceMode) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFSensorGroup(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFSensorGroup, IMFSensorGroup_Vtbl, 0x4110243a_9757_461f_89f1_f22345bcab4e); +::windows_core::imp::interface_hierarchy!(IMFSensorGroup, ::windows_core::IUnknown); impl IMFSensorGroup { pub unsafe fn GetSymbolicLink(&self, symboliclink: &mut [u16], pcchwritten: *mut i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetSymbolicLink)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(symboliclink.as_ptr()), symboliclink.len().try_into().unwrap(), pcchwritten).ok() @@ -17507,13 +15504,6 @@ impl IMFSensorGroup { (::windows_core::Interface::vtable(self).CreateMediaSource)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFSensorGroup, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFSensorGroup { - type Vtable = IMFSensorGroup_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFSensorGroup { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4110243a_9757_461f_89f1_f22345bcab4e); -} #[repr(C)] #[doc(hidden)] pub struct IMFSensorGroup_Vtbl { @@ -17527,9 +15517,8 @@ pub struct IMFSensorGroup_Vtbl { pub GetDefaultSensorDeviceIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwindex: *mut u32) -> ::windows_core::HRESULT, pub CreateMediaSource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppsource: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFSensorProcessActivity(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFSensorProcessActivity, IMFSensorProcessActivity_Vtbl, 0x39dc7f4a_b141_4719_813c_a7f46162a2b8); +::windows_core::imp::interface_hierarchy!(IMFSensorProcessActivity, ::windows_core::IUnknown); impl IMFSensorProcessActivity { pub unsafe fn GetProcessId(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -17548,13 +15537,6 @@ impl IMFSensorProcessActivity { (::windows_core::Interface::vtable(self).GetReportTime)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFSensorProcessActivity, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFSensorProcessActivity { - type Vtable = IMFSensorProcessActivity_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFSensorProcessActivity { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x39dc7f4a_b141_4719_813c_a7f46162a2b8); -} #[repr(C)] #[doc(hidden)] pub struct IMFSensorProcessActivity_Vtbl { @@ -17564,9 +15546,8 @@ pub struct IMFSensorProcessActivity_Vtbl { pub GetStreamingMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pmode: *mut MFSensorDeviceMode) -> ::windows_core::HRESULT, pub GetReportTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pft: *mut super::super::Foundation::FILETIME) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFSensorProfile(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFSensorProfile, IMFSensorProfile_Vtbl, 0x22f765d1_8dab_4107_846d_56baf72215e7); +::windows_core::imp::interface_hierarchy!(IMFSensorProfile, ::windows_core::IUnknown); impl IMFSensorProfile { pub unsafe fn GetProfileId(&self, pid: *mut SENSORPROFILEID) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetProfileId)(::windows_core::Interface::as_raw(self), pid).ok() @@ -17591,13 +15572,6 @@ impl IMFSensorProfile { (::windows_core::Interface::vtable(self).AddBlockedControl)(::windows_core::Interface::as_raw(self), wzblockedcontrol.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMFSensorProfile, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFSensorProfile { - type Vtable = IMFSensorProfile_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFSensorProfile { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x22f765d1_8dab_4107_846d_56baf72215e7); -} #[repr(C)] #[doc(hidden)] pub struct IMFSensorProfile_Vtbl { @@ -17607,9 +15581,8 @@ pub struct IMFSensorProfile_Vtbl { pub IsMediaTypeSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, streamid: u32, pmediatype: *mut ::core::ffi::c_void, pfsupported: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub AddBlockedControl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wzblockedcontrol: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFSensorProfileCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFSensorProfileCollection, IMFSensorProfileCollection_Vtbl, 0xc95ea55b_0187_48be_9353_8d2507662351); +::windows_core::imp::interface_hierarchy!(IMFSensorProfileCollection, ::windows_core::IUnknown); impl IMFSensorProfileCollection { pub unsafe fn GetProfileCount(&self) -> u32 { (::windows_core::Interface::vtable(self).GetProfileCount)(::windows_core::Interface::as_raw(self)) @@ -17635,13 +15608,6 @@ impl IMFSensorProfileCollection { (::windows_core::Interface::vtable(self).RemoveProfile)(::windows_core::Interface::as_raw(self), profileid) } } -::windows_core::imp::interface_hierarchy!(IMFSensorProfileCollection, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFSensorProfileCollection { - type Vtable = IMFSensorProfileCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFSensorProfileCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc95ea55b_0187_48be_9353_8d2507662351); -} #[repr(C)] #[doc(hidden)] pub struct IMFSensorProfileCollection_Vtbl { @@ -17653,9 +15619,8 @@ pub struct IMFSensorProfileCollection_Vtbl { pub RemoveProfileByIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32), pub RemoveProfile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, profileid: *const SENSORPROFILEID), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFSensorStream(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFSensorStream, IMFSensorStream_Vtbl, 0xe9a42171_c56e_498a_8b39_eda5a070b7fc); +::windows_core::imp::interface_hierarchy!(IMFSensorStream, ::windows_core::IUnknown, IMFAttributes); impl IMFSensorStream { #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] @@ -17717,7 +15682,7 @@ impl IMFSensorStream { } pub unsafe fn GetUnknown(&self, guidkey: *const ::windows_core::GUID) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.GetUnknown)(::windows_core::Interface::as_raw(self), guidkey, &T::IID, &mut result__).from_abi(result__) @@ -17794,13 +15759,6 @@ impl IMFSensorStream { (::windows_core::Interface::vtable(self).CloneSensorStream)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFSensorStream, ::windows_core::IUnknown, IMFAttributes); -unsafe impl ::windows_core::Interface for IMFSensorStream { - type Vtable = IMFSensorStream_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFSensorStream { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe9a42171_c56e_498a_8b39_eda5a070b7fc); -} #[repr(C)] #[doc(hidden)] pub struct IMFSensorStream_Vtbl { @@ -17809,9 +15767,8 @@ pub struct IMFSensorStream_Vtbl { pub GetMediaType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwindex: u32, ppmediatype: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CloneSensorStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppstream: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFSensorTransformFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFSensorTransformFactory, IMFSensorTransformFactory_Vtbl, 0xeed9c2ee_66b4_4f18_a697_ac7d3960215c); +::windows_core::imp::interface_hierarchy!(IMFSensorTransformFactory, ::windows_core::IUnknown); impl IMFSensorTransformFactory { pub unsafe fn GetFactoryAttributes(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -17839,13 +15796,6 @@ impl IMFSensorTransformFactory { (::windows_core::Interface::vtable(self).CreateTransform)(::windows_core::Interface::as_raw(self), guidsensortransformid, pattributes.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFSensorTransformFactory, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFSensorTransformFactory { - type Vtable = IMFSensorTransformFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFSensorTransformFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeed9c2ee_66b4_4f18_a697_ac7d3960215c); -} #[repr(C)] #[doc(hidden)] pub struct IMFSensorTransformFactory_Vtbl { @@ -17856,9 +15806,8 @@ pub struct IMFSensorTransformFactory_Vtbl { pub GetTransformInformation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, transformindex: u32, pguidtransformid: *mut ::windows_core::GUID, ppattributes: *mut *mut ::core::ffi::c_void, ppstreaminformation: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateTransform: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guidsensortransformid: *const ::windows_core::GUID, pattributes: *mut ::core::ffi::c_void, ppdevicemft: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFSequencerSource(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFSequencerSource, IMFSequencerSource_Vtbl, 0x197cd219_19cb_4de1_a64c_acf2edcbe59e); +::windows_core::imp::interface_hierarchy!(IMFSequencerSource, ::windows_core::IUnknown); impl IMFSequencerSource { pub unsafe fn AppendTopology(&self, ptopology: P0, dwflags: u32) -> ::windows_core::Result where @@ -17886,13 +15835,6 @@ impl IMFSequencerSource { (::windows_core::Interface::vtable(self).UpdateTopologyFlags)(::windows_core::Interface::as_raw(self), dwid, dwflags).ok() } } -::windows_core::imp::interface_hierarchy!(IMFSequencerSource, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFSequencerSource { - type Vtable = IMFSequencerSource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFSequencerSource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x197cd219_19cb_4de1_a64c_acf2edcbe59e); -} #[repr(C)] #[doc(hidden)] pub struct IMFSequencerSource_Vtbl { @@ -17903,9 +15845,8 @@ pub struct IMFSequencerSource_Vtbl { pub UpdateTopology: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwid: u32, ptopology: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub UpdateTopologyFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwid: u32, dwflags: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFSharingEngineClassFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFSharingEngineClassFactory, IMFSharingEngineClassFactory_Vtbl, 0x2ba61f92_8305_413b_9733_faf15f259384); +::windows_core::imp::interface_hierarchy!(IMFSharingEngineClassFactory, ::windows_core::IUnknown); impl IMFSharingEngineClassFactory { pub unsafe fn CreateInstance(&self, dwflags: u32, pattr: P0) -> ::windows_core::Result<::windows_core::IUnknown> where @@ -17915,22 +15856,14 @@ impl IMFSharingEngineClassFactory { (::windows_core::Interface::vtable(self).CreateInstance)(::windows_core::Interface::as_raw(self), dwflags, pattr.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFSharingEngineClassFactory, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFSharingEngineClassFactory { - type Vtable = IMFSharingEngineClassFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFSharingEngineClassFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2ba61f92_8305_413b_9733_faf15f259384); -} #[repr(C)] #[doc(hidden)] pub struct IMFSharingEngineClassFactory_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwflags: u32, pattr: *mut ::core::ffi::c_void, ppengine: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFShutdown(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFShutdown, IMFShutdown_Vtbl, 0x97ec2ea4_0e42_4937_97ac_9d6d328824e1); +::windows_core::imp::interface_hierarchy!(IMFShutdown, ::windows_core::IUnknown); impl IMFShutdown { pub unsafe fn Shutdown(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Shutdown)(::windows_core::Interface::as_raw(self)).ok() @@ -17940,13 +15873,6 @@ impl IMFShutdown { (::windows_core::Interface::vtable(self).GetShutdownStatus)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFShutdown, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFShutdown { - type Vtable = IMFShutdown_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFShutdown { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x97ec2ea4_0e42_4937_97ac_9d6d328824e1); -} #[repr(C)] #[doc(hidden)] pub struct IMFShutdown_Vtbl { @@ -17954,9 +15880,8 @@ pub struct IMFShutdown_Vtbl { pub Shutdown: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetShutdownStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstatus: *mut MFSHUTDOWN_STATUS) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFSignedLibrary(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFSignedLibrary, IMFSignedLibrary_Vtbl, 0x4a724bca_ff6a_4c07_8e0d_7a358421cf06); +::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 @@ -17965,22 +15890,14 @@ impl IMFSignedLibrary { (::windows_core::Interface::vtable(self).GetProcedureAddress)(::windows_core::Interface::as_raw(self), name.into_param().abi(), address).ok() } } -::windows_core::imp::interface_hierarchy!(IMFSignedLibrary, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFSignedLibrary { - type Vtable = IMFSignedLibrary_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFSignedLibrary { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4a724bca_ff6a_4c07_8e0d_7a358421cf06); -} #[repr(C)] #[doc(hidden)] pub struct IMFSignedLibrary_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetProcedureAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::windows_core::PCSTR, address: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFSimpleAudioVolume(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFSimpleAudioVolume, IMFSimpleAudioVolume_Vtbl, 0x089edf13_cf71_4338_8d13_9e569dbdc319); +::windows_core::imp::interface_hierarchy!(IMFSimpleAudioVolume, ::windows_core::IUnknown); impl IMFSimpleAudioVolume { pub unsafe fn SetMasterVolume(&self, flevel: f32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetMasterVolume)(::windows_core::Interface::as_raw(self), flevel).ok() @@ -18000,13 +15917,6 @@ impl IMFSimpleAudioVolume { (::windows_core::Interface::vtable(self).GetMute)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFSimpleAudioVolume, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFSimpleAudioVolume { - type Vtable = IMFSimpleAudioVolume_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFSimpleAudioVolume { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x089edf13_cf71_4338_8d13_9e569dbdc319); -} #[repr(C)] #[doc(hidden)] pub struct IMFSimpleAudioVolume_Vtbl { @@ -18016,9 +15926,8 @@ pub struct IMFSimpleAudioVolume_Vtbl { pub SetMute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bmute: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub GetMute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbmute: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFSinkWriter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFSinkWriter, IMFSinkWriter_Vtbl, 0x3137f1cd_fe5e_4805_a5d8_fb477448cb3d); +::windows_core::imp::interface_hierarchy!(IMFSinkWriter, ::windows_core::IUnknown); impl IMFSinkWriter { pub unsafe fn AddStream(&self, ptargetmediatype: P0) -> ::windows_core::Result where @@ -18065,13 +15974,6 @@ impl IMFSinkWriter { (::windows_core::Interface::vtable(self).GetStatistics)(::windows_core::Interface::as_raw(self), dwstreamindex, pstats).ok() } } -::windows_core::imp::interface_hierarchy!(IMFSinkWriter, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFSinkWriter { - type Vtable = IMFSinkWriter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFSinkWriter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3137f1cd_fe5e_4805_a5d8_fb477448cb3d); -} #[repr(C)] #[doc(hidden)] pub struct IMFSinkWriter_Vtbl { @@ -18088,9 +15990,8 @@ pub struct IMFSinkWriter_Vtbl { pub GetServiceForStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwstreamindex: u32, guidservice: *const ::windows_core::GUID, riid: *const ::windows_core::GUID, ppvobject: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetStatistics: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwstreamindex: u32, pstats: *mut MF_SINK_WRITER_STATISTICS) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFSinkWriterCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFSinkWriterCallback, IMFSinkWriterCallback_Vtbl, 0x666f76de_33d2_41b9_a458_29ed0a972c58); +::windows_core::imp::interface_hierarchy!(IMFSinkWriterCallback, ::windows_core::IUnknown); impl IMFSinkWriterCallback { pub unsafe fn OnFinalize(&self, hrstatus: ::windows_core::HRESULT) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnFinalize)(::windows_core::Interface::as_raw(self), hrstatus).ok() @@ -18099,13 +16000,6 @@ impl IMFSinkWriterCallback { (::windows_core::Interface::vtable(self).OnMarker)(::windows_core::Interface::as_raw(self), dwstreamindex, pvcontext).ok() } } -::windows_core::imp::interface_hierarchy!(IMFSinkWriterCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFSinkWriterCallback { - type Vtable = IMFSinkWriterCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFSinkWriterCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x666f76de_33d2_41b9_a458_29ed0a972c58); -} #[repr(C)] #[doc(hidden)] pub struct IMFSinkWriterCallback_Vtbl { @@ -18113,9 +16007,8 @@ pub struct IMFSinkWriterCallback_Vtbl { pub OnFinalize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hrstatus: ::windows_core::HRESULT) -> ::windows_core::HRESULT, pub OnMarker: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwstreamindex: u32, pvcontext: *const ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFSinkWriterCallback2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFSinkWriterCallback2, IMFSinkWriterCallback2_Vtbl, 0x2456bd58_c067_4513_84fe_8d0c88ffdc61); +::windows_core::imp::interface_hierarchy!(IMFSinkWriterCallback2, ::windows_core::IUnknown, IMFSinkWriterCallback); impl IMFSinkWriterCallback2 { pub unsafe fn OnFinalize(&self, hrstatus: ::windows_core::HRESULT) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.OnFinalize)(::windows_core::Interface::as_raw(self), hrstatus).ok() @@ -18130,13 +16023,6 @@ impl IMFSinkWriterCallback2 { (::windows_core::Interface::vtable(self).OnStreamError)(::windows_core::Interface::as_raw(self), dwstreamindex, hrstatus).ok() } } -::windows_core::imp::interface_hierarchy!(IMFSinkWriterCallback2, ::windows_core::IUnknown, IMFSinkWriterCallback); -unsafe impl ::windows_core::Interface for IMFSinkWriterCallback2 { - type Vtable = IMFSinkWriterCallback2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFSinkWriterCallback2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2456bd58_c067_4513_84fe_8d0c88ffdc61); -} #[repr(C)] #[doc(hidden)] pub struct IMFSinkWriterCallback2_Vtbl { @@ -18144,9 +16030,8 @@ pub struct IMFSinkWriterCallback2_Vtbl { pub OnTransformChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub OnStreamError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwstreamindex: u32, hrstatus: ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFSinkWriterEncoderConfig(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFSinkWriterEncoderConfig, IMFSinkWriterEncoderConfig_Vtbl, 0x17c3779e_3cde_4ede_8c60_3899f5f53ad6); +::windows_core::imp::interface_hierarchy!(IMFSinkWriterEncoderConfig, ::windows_core::IUnknown); impl IMFSinkWriterEncoderConfig { pub unsafe fn SetTargetMediaType(&self, dwstreamindex: u32, ptargetmediatype: P0, pencodingparameters: P1) -> ::windows_core::Result<()> where @@ -18162,13 +16047,6 @@ impl IMFSinkWriterEncoderConfig { (::windows_core::Interface::vtable(self).PlaceEncodingParameters)(::windows_core::Interface::as_raw(self), dwstreamindex, pencodingparameters.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMFSinkWriterEncoderConfig, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFSinkWriterEncoderConfig { - type Vtable = IMFSinkWriterEncoderConfig_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFSinkWriterEncoderConfig { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x17c3779e_3cde_4ede_8c60_3899f5f53ad6); -} #[repr(C)] #[doc(hidden)] pub struct IMFSinkWriterEncoderConfig_Vtbl { @@ -18176,9 +16054,8 @@ pub struct IMFSinkWriterEncoderConfig_Vtbl { pub SetTargetMediaType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwstreamindex: u32, ptargetmediatype: *mut ::core::ffi::c_void, pencodingparameters: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub PlaceEncodingParameters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwstreamindex: u32, pencodingparameters: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFSinkWriterEx(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFSinkWriterEx, IMFSinkWriterEx_Vtbl, 0x588d72ab_5bc1_496a_8714_b70617141b25); +::windows_core::imp::interface_hierarchy!(IMFSinkWriterEx, ::windows_core::IUnknown, IMFSinkWriter); impl IMFSinkWriterEx { pub unsafe fn AddStream(&self, ptargetmediatype: P0) -> ::windows_core::Result where @@ -18228,22 +16105,14 @@ impl IMFSinkWriterEx { (::windows_core::Interface::vtable(self).GetTransformForStream)(::windows_core::Interface::as_raw(self), dwstreamindex, dwtransformindex, ::core::mem::transmute(pguidcategory.unwrap_or(::std::ptr::null_mut())), ::core::mem::transmute(pptransform)).ok() } } -::windows_core::imp::interface_hierarchy!(IMFSinkWriterEx, ::windows_core::IUnknown, IMFSinkWriter); -unsafe impl ::windows_core::Interface for IMFSinkWriterEx { - type Vtable = IMFSinkWriterEx_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFSinkWriterEx { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x588d72ab_5bc1_496a_8714_b70617141b25); -} #[repr(C)] #[doc(hidden)] pub struct IMFSinkWriterEx_Vtbl { pub base__: IMFSinkWriter_Vtbl, pub GetTransformForStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwstreamindex: u32, dwtransformindex: u32, pguidcategory: *mut ::windows_core::GUID, pptransform: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFSourceBuffer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFSourceBuffer, IMFSourceBuffer_Vtbl, 0xe2cd3a4b_af25_4d3d_9110_da0e6f8ee877); +::windows_core::imp::interface_hierarchy!(IMFSourceBuffer, ::windows_core::IUnknown); impl IMFSourceBuffer { pub unsafe fn GetUpdating(&self) -> super::super::Foundation::BOOL { (::windows_core::Interface::vtable(self).GetUpdating)(::windows_core::Interface::as_raw(self)) @@ -18286,13 +16155,6 @@ impl IMFSourceBuffer { (::windows_core::Interface::vtable(self).Remove)(::windows_core::Interface::as_raw(self), start, end).ok() } } -::windows_core::imp::interface_hierarchy!(IMFSourceBuffer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFSourceBuffer { - type Vtable = IMFSourceBuffer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFSourceBuffer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe2cd3a4b_af25_4d3d_9110_da0e6f8ee877); -} #[repr(C)] #[doc(hidden)] pub struct IMFSourceBuffer_Vtbl { @@ -18310,9 +16172,8 @@ pub struct IMFSourceBuffer_Vtbl { pub Abort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, start: f64, end: f64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFSourceBufferAppendMode(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFSourceBufferAppendMode, IMFSourceBufferAppendMode_Vtbl, 0x19666fb4_babe_4c55_bc03_0a074da37e2a); +::windows_core::imp::interface_hierarchy!(IMFSourceBufferAppendMode, ::windows_core::IUnknown); impl IMFSourceBufferAppendMode { pub unsafe fn GetAppendMode(&self) -> MF_MSE_APPEND_MODE { (::windows_core::Interface::vtable(self).GetAppendMode)(::windows_core::Interface::as_raw(self)) @@ -18321,13 +16182,6 @@ impl IMFSourceBufferAppendMode { (::windows_core::Interface::vtable(self).SetAppendMode)(::windows_core::Interface::as_raw(self), mode).ok() } } -::windows_core::imp::interface_hierarchy!(IMFSourceBufferAppendMode, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFSourceBufferAppendMode { - type Vtable = IMFSourceBufferAppendMode_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFSourceBufferAppendMode { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x19666fb4_babe_4c55_bc03_0a074da37e2a); -} #[repr(C)] #[doc(hidden)] pub struct IMFSourceBufferAppendMode_Vtbl { @@ -18335,9 +16189,8 @@ pub struct IMFSourceBufferAppendMode_Vtbl { pub GetAppendMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> MF_MSE_APPEND_MODE, pub SetAppendMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mode: MF_MSE_APPEND_MODE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFSourceBufferList(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFSourceBufferList, IMFSourceBufferList_Vtbl, 0x249981f8_8325_41f3_b80c_3b9e3aad0cbe); +::windows_core::imp::interface_hierarchy!(IMFSourceBufferList, ::windows_core::IUnknown); impl IMFSourceBufferList { pub unsafe fn GetLength(&self) -> u32 { (::windows_core::Interface::vtable(self).GetLength)(::windows_core::Interface::as_raw(self)) @@ -18346,13 +16199,6 @@ impl IMFSourceBufferList { (::windows_core::Interface::vtable(self).GetSourceBuffer)(::windows_core::Interface::as_raw(self), index) } } -::windows_core::imp::interface_hierarchy!(IMFSourceBufferList, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFSourceBufferList { - type Vtable = IMFSourceBufferList_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFSourceBufferList { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x249981f8_8325_41f3_b80c_3b9e3aad0cbe); -} #[repr(C)] #[doc(hidden)] pub struct IMFSourceBufferList_Vtbl { @@ -18360,9 +16206,8 @@ pub struct IMFSourceBufferList_Vtbl { pub GetLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> u32, pub GetSourceBuffer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32) -> ::core::option::Option, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFSourceBufferNotify(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFSourceBufferNotify, IMFSourceBufferNotify_Vtbl, 0x87e47623_2ceb_45d6_9b88_d8520c4dcbbc); +::windows_core::imp::interface_hierarchy!(IMFSourceBufferNotify, ::windows_core::IUnknown); impl IMFSourceBufferNotify { pub unsafe fn OnUpdateStart(&self) { (::windows_core::Interface::vtable(self).OnUpdateStart)(::windows_core::Interface::as_raw(self)) @@ -18380,13 +16225,6 @@ impl IMFSourceBufferNotify { (::windows_core::Interface::vtable(self).OnUpdateEnd)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(IMFSourceBufferNotify, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFSourceBufferNotify { - type Vtable = IMFSourceBufferNotify_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFSourceBufferNotify { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x87e47623_2ceb_45d6_9b88_d8520c4dcbbc); -} #[repr(C)] #[doc(hidden)] pub struct IMFSourceBufferNotify_Vtbl { @@ -18397,9 +16235,8 @@ pub struct IMFSourceBufferNotify_Vtbl { pub OnUpdate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), pub OnUpdateEnd: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFSourceOpenMonitor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFSourceOpenMonitor, IMFSourceOpenMonitor_Vtbl, 0x059054b3_027c_494c_a27d_9113291cf87f); +::windows_core::imp::interface_hierarchy!(IMFSourceOpenMonitor, ::windows_core::IUnknown); impl IMFSourceOpenMonitor { pub unsafe fn OnSourceEvent(&self, pevent: P0) -> ::windows_core::Result<()> where @@ -18408,22 +16245,14 @@ impl IMFSourceOpenMonitor { (::windows_core::Interface::vtable(self).OnSourceEvent)(::windows_core::Interface::as_raw(self), pevent.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMFSourceOpenMonitor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFSourceOpenMonitor { - type Vtable = IMFSourceOpenMonitor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFSourceOpenMonitor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x059054b3_027c_494c_a27d_9113291cf87f); -} #[repr(C)] #[doc(hidden)] pub struct IMFSourceOpenMonitor_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnSourceEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pevent: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFSourceReader(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFSourceReader, IMFSourceReader_Vtbl, 0x70ae66f2_c809_4e4f_8915_bdcb406b7993); +::windows_core::imp::interface_hierarchy!(IMFSourceReader, ::windows_core::IUnknown); impl IMFSourceReader { pub unsafe fn GetStreamSelection(&self, dwstreamindex: u32) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -18470,13 +16299,6 @@ impl IMFSourceReader { (::windows_core::Interface::vtable(self).GetPresentationAttribute)(::windows_core::Interface::as_raw(self), dwstreamindex, guidattribute, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFSourceReader, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFSourceReader { - type Vtable = IMFSourceReader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFSourceReader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x70ae66f2_c809_4e4f_8915_bdcb406b7993); -} #[repr(C)] #[doc(hidden)] pub struct IMFSourceReader_Vtbl { @@ -18498,9 +16320,8 @@ pub struct IMFSourceReader_Vtbl { #[cfg(not(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant")))] GetPresentationAttribute: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFSourceReaderCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFSourceReaderCallback, IMFSourceReaderCallback_Vtbl, 0xdeec8d99_fa1d_4d82_84c2_2c8969944867); +::windows_core::imp::interface_hierarchy!(IMFSourceReaderCallback, ::windows_core::IUnknown); impl IMFSourceReaderCallback { pub unsafe fn OnReadSample(&self, hrstatus: ::windows_core::HRESULT, dwstreamindex: u32, dwstreamflags: u32, lltimestamp: i64, psample: P0) -> ::windows_core::Result<()> where @@ -18518,13 +16339,6 @@ impl IMFSourceReaderCallback { (::windows_core::Interface::vtable(self).OnEvent)(::windows_core::Interface::as_raw(self), dwstreamindex, pevent.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMFSourceReaderCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFSourceReaderCallback { - type Vtable = IMFSourceReaderCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFSourceReaderCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdeec8d99_fa1d_4d82_84c2_2c8969944867); -} #[repr(C)] #[doc(hidden)] pub struct IMFSourceReaderCallback_Vtbl { @@ -18533,9 +16347,8 @@ pub struct IMFSourceReaderCallback_Vtbl { pub OnFlush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwstreamindex: u32) -> ::windows_core::HRESULT, pub OnEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwstreamindex: u32, pevent: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFSourceReaderCallback2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFSourceReaderCallback2, IMFSourceReaderCallback2_Vtbl, 0xcf839fe6_8c2a_4dd2_b6ea_c22d6961af05); +::windows_core::imp::interface_hierarchy!(IMFSourceReaderCallback2, ::windows_core::IUnknown, IMFSourceReaderCallback); impl IMFSourceReaderCallback2 { pub unsafe fn OnReadSample(&self, hrstatus: ::windows_core::HRESULT, dwstreamindex: u32, dwstreamflags: u32, lltimestamp: i64, psample: P0) -> ::windows_core::Result<()> where @@ -18559,13 +16372,6 @@ impl IMFSourceReaderCallback2 { (::windows_core::Interface::vtable(self).OnStreamError)(::windows_core::Interface::as_raw(self), dwstreamindex, hrstatus).ok() } } -::windows_core::imp::interface_hierarchy!(IMFSourceReaderCallback2, ::windows_core::IUnknown, IMFSourceReaderCallback); -unsafe impl ::windows_core::Interface for IMFSourceReaderCallback2 { - type Vtable = IMFSourceReaderCallback2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFSourceReaderCallback2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcf839fe6_8c2a_4dd2_b6ea_c22d6961af05); -} #[repr(C)] #[doc(hidden)] pub struct IMFSourceReaderCallback2_Vtbl { @@ -18573,9 +16379,8 @@ pub struct IMFSourceReaderCallback2_Vtbl { pub OnTransformChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub OnStreamError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwstreamindex: u32, hrstatus: ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFSourceReaderEx(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFSourceReaderEx, IMFSourceReaderEx_Vtbl, 0x7b981cf0_560e_4116_9875_b099895f23d7); +::windows_core::imp::interface_hierarchy!(IMFSourceReaderEx, ::windows_core::IUnknown, IMFSourceReader); impl IMFSourceReaderEx { pub unsafe fn GetStreamSelection(&self, dwstreamindex: u32) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -18641,13 +16446,6 @@ impl IMFSourceReaderEx { (::windows_core::Interface::vtable(self).GetTransformForStream)(::windows_core::Interface::as_raw(self), dwstreamindex, dwtransformindex, ::core::mem::transmute(pguidcategory.unwrap_or(::std::ptr::null_mut())), ::core::mem::transmute(pptransform)).ok() } } -::windows_core::imp::interface_hierarchy!(IMFSourceReaderEx, ::windows_core::IUnknown, IMFSourceReader); -unsafe impl ::windows_core::Interface for IMFSourceReaderEx { - type Vtable = IMFSourceReaderEx_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFSourceReaderEx { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7b981cf0_560e_4116_9875_b099895f23d7); -} #[repr(C)] #[doc(hidden)] pub struct IMFSourceReaderEx_Vtbl { @@ -18657,9 +16455,8 @@ pub struct IMFSourceReaderEx_Vtbl { pub RemoveAllTransformsForStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwstreamindex: u32) -> ::windows_core::HRESULT, pub GetTransformForStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwstreamindex: u32, dwtransformindex: u32, pguidcategory: *mut ::windows_core::GUID, pptransform: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFSourceResolver(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFSourceResolver, IMFSourceResolver_Vtbl, 0xfbe5a32d_a497_4b61_bb85_97b1a848a6e3); +::windows_core::imp::interface_hierarchy!(IMFSourceResolver, ::windows_core::IUnknown); impl IMFSourceResolver { #[doc = "Required features: `\"Win32_UI_Shell_PropertiesSystem\"`"] #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] @@ -18722,13 +16519,6 @@ impl IMFSourceResolver { (::windows_core::Interface::vtable(self).CancelObjectCreation)(::windows_core::Interface::as_raw(self), piunknowncancelcookie.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMFSourceResolver, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFSourceResolver { - type Vtable = IMFSourceResolver_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFSourceResolver { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfbe5a32d_a497_4b61_bb85_97b1a848a6e3); -} #[repr(C)] #[doc(hidden)] pub struct IMFSourceResolver_Vtbl { @@ -18753,9 +16543,8 @@ pub struct IMFSourceResolver_Vtbl { pub EndCreateObjectFromByteStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, presult: *mut ::core::ffi::c_void, pobjecttype: *mut MF_OBJECT_TYPE, ppobject: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CancelObjectCreation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, piunknowncancelcookie: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFSpatialAudioObjectBuffer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFSpatialAudioObjectBuffer, IMFSpatialAudioObjectBuffer_Vtbl, 0xd396ec8c_605e_4249_978d_72ad1c312872); +::windows_core::imp::interface_hierarchy!(IMFSpatialAudioObjectBuffer, ::windows_core::IUnknown, IMFMediaBuffer); impl IMFSpatialAudioObjectBuffer { pub unsafe fn Lock(&self, ppbbuffer: *mut *mut u8, pcbmaxlength: ::core::option::Option<*mut u32>, pcbcurrentlength: ::core::option::Option<*mut u32>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.Lock)(::windows_core::Interface::as_raw(self), ppbbuffer, ::core::mem::transmute(pcbmaxlength.unwrap_or(::std::ptr::null_mut())), ::core::mem::transmute(pcbcurrentlength.unwrap_or(::std::ptr::null_mut()))).ok() @@ -18799,13 +16588,6 @@ impl IMFSpatialAudioObjectBuffer { (::windows_core::Interface::vtable(self).GetMetadataItems)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFSpatialAudioObjectBuffer, ::windows_core::IUnknown, IMFMediaBuffer); -unsafe impl ::windows_core::Interface for IMFSpatialAudioObjectBuffer { - type Vtable = IMFSpatialAudioObjectBuffer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFSpatialAudioObjectBuffer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd396ec8c_605e_4249_978d_72ad1c312872); -} #[repr(C)] #[doc(hidden)] pub struct IMFSpatialAudioObjectBuffer_Vtbl { @@ -18825,9 +16607,8 @@ pub struct IMFSpatialAudioObjectBuffer_Vtbl { #[cfg(not(feature = "Win32_Media_Audio"))] GetMetadataItems: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFSpatialAudioSample(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFSpatialAudioSample, IMFSpatialAudioSample_Vtbl, 0xabf28a9b_3393_4290_ba79_5ffc46d986b2); +::windows_core::imp::interface_hierarchy!(IMFSpatialAudioSample, ::windows_core::IUnknown, IMFAttributes, IMFSample); impl IMFSpatialAudioSample { #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] @@ -18889,7 +16670,7 @@ impl IMFSpatialAudioSample { } pub unsafe fn GetUnknown(&self, guidkey: *const ::windows_core::GUID) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.GetUnknown)(::windows_core::Interface::as_raw(self), guidkey, &T::IID, &mut result__).from_abi(result__) @@ -19023,13 +16804,6 @@ impl IMFSpatialAudioSample { (::windows_core::Interface::vtable(self).GetSpatialAudioObjectByIndex)(::windows_core::Interface::as_raw(self), dwindex, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFSpatialAudioSample, ::windows_core::IUnknown, IMFAttributes, IMFSample); -unsafe impl ::windows_core::Interface for IMFSpatialAudioSample { - type Vtable = IMFSpatialAudioSample_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFSpatialAudioSample { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xabf28a9b_3393_4290_ba79_5ffc46d986b2); -} #[repr(C)] #[doc(hidden)] pub struct IMFSpatialAudioSample_Vtbl { @@ -19038,9 +16812,8 @@ pub struct IMFSpatialAudioSample_Vtbl { pub AddSpatialAudioObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, paudioobjbuffer: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetSpatialAudioObjectByIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwindex: u32, ppaudioobjbuffer: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFStreamDescriptor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFStreamDescriptor, IMFStreamDescriptor_Vtbl, 0x56c03d9c_9dbb_45f5_ab4b_d80f47c05938); +::windows_core::imp::interface_hierarchy!(IMFStreamDescriptor, ::windows_core::IUnknown, IMFAttributes); impl IMFStreamDescriptor { #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] @@ -19102,7 +16875,7 @@ impl IMFStreamDescriptor { } pub unsafe fn GetUnknown(&self, guidkey: *const ::windows_core::GUID) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.GetUnknown)(::windows_core::Interface::as_raw(self), guidkey, &T::IID, &mut result__).from_abi(result__) @@ -19175,13 +16948,6 @@ impl IMFStreamDescriptor { (::windows_core::Interface::vtable(self).GetMediaTypeHandler)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFStreamDescriptor, ::windows_core::IUnknown, IMFAttributes); -unsafe impl ::windows_core::Interface for IMFStreamDescriptor { - type Vtable = IMFStreamDescriptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFStreamDescriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x56c03d9c_9dbb_45f5_ab4b_d80f47c05938); -} #[repr(C)] #[doc(hidden)] pub struct IMFStreamDescriptor_Vtbl { @@ -19189,9 +16955,8 @@ pub struct IMFStreamDescriptor_Vtbl { pub GetStreamIdentifier: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwstreamidentifier: *mut u32) -> ::windows_core::HRESULT, pub GetMediaTypeHandler: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppmediatypehandler: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFStreamSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFStreamSink, IMFStreamSink_Vtbl, 0x0a97b3cf_8e7c_4a3d_8f8c_0c843dc247fb); +::windows_core::imp::interface_hierarchy!(IMFStreamSink, ::windows_core::IUnknown, IMFMediaEventGenerator); impl IMFStreamSink { pub unsafe fn GetEvent(&self, dwflags: MEDIA_EVENT_GENERATOR_GET_EVENT_FLAGS) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -19243,13 +17008,6 @@ impl IMFStreamSink { (::windows_core::Interface::vtable(self).Flush)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IMFStreamSink, ::windows_core::IUnknown, IMFMediaEventGenerator); -unsafe impl ::windows_core::Interface for IMFStreamSink { - type Vtable = IMFStreamSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFStreamSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0a97b3cf_8e7c_4a3d_8f8c_0c843dc247fb); -} #[repr(C)] #[doc(hidden)] pub struct IMFStreamSink_Vtbl { @@ -19264,9 +17022,8 @@ pub struct IMFStreamSink_Vtbl { PlaceMarker: usize, pub Flush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFStreamingSinkConfig(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFStreamingSinkConfig, IMFStreamingSinkConfig_Vtbl, 0x9db7aa41_3cc5_40d4_8509_555804ad34cc); +::windows_core::imp::interface_hierarchy!(IMFStreamingSinkConfig, ::windows_core::IUnknown); impl IMFStreamingSinkConfig { pub unsafe fn StartStreaming(&self, fseekoffsetisbyteoffset: P0, qwseekoffset: u64) -> ::windows_core::Result<()> where @@ -19275,22 +17032,14 @@ impl IMFStreamingSinkConfig { (::windows_core::Interface::vtable(self).StartStreaming)(::windows_core::Interface::as_raw(self), fseekoffsetisbyteoffset.into_param().abi(), qwseekoffset).ok() } } -::windows_core::imp::interface_hierarchy!(IMFStreamingSinkConfig, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFStreamingSinkConfig { - type Vtable = IMFStreamingSinkConfig_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFStreamingSinkConfig { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9db7aa41_3cc5_40d4_8509_555804ad34cc); -} #[repr(C)] #[doc(hidden)] pub struct IMFStreamingSinkConfig_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub StartStreaming: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fseekoffsetisbyteoffset: super::super::Foundation::BOOL, qwseekoffset: u64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFSystemId(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFSystemId, IMFSystemId_Vtbl, 0xfff4af3a_1fc1_4ef9_a29b_d26c49e2f31a); +::windows_core::imp::interface_hierarchy!(IMFSystemId, ::windows_core::IUnknown); impl IMFSystemId { pub unsafe fn GetData(&self, size: *mut u32, data: *mut *mut u8) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetData)(::windows_core::Interface::as_raw(self), size, data).ok() @@ -19299,13 +17048,6 @@ impl IMFSystemId { (::windows_core::Interface::vtable(self).Setup)(::windows_core::Interface::as_raw(self), stage, pbin.len().try_into().unwrap(), ::core::mem::transmute(pbin.as_ptr()), pcbout, ppbout).ok() } } -::windows_core::imp::interface_hierarchy!(IMFSystemId, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFSystemId { - type Vtable = IMFSystemId_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFSystemId { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfff4af3a_1fc1_4ef9_a29b_d26c49e2f31a); -} #[repr(C)] #[doc(hidden)] pub struct IMFSystemId_Vtbl { @@ -19313,9 +17055,8 @@ pub struct IMFSystemId_Vtbl { pub GetData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, size: *mut u32, data: *mut *mut u8) -> ::windows_core::HRESULT, pub Setup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, stage: u32, cbin: u32, pbin: *const u8, pcbout: *mut u32, ppbout: *mut *mut u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFTimecodeTranslate(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFTimecodeTranslate, IMFTimecodeTranslate_Vtbl, 0xab9d8661_f7e8_4ef4_9861_89f334f94e74); +::windows_core::imp::interface_hierarchy!(IMFTimecodeTranslate, ::windows_core::IUnknown); impl IMFTimecodeTranslate { #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] @@ -19350,13 +17091,6 @@ impl IMFTimecodeTranslate { (::windows_core::Interface::vtable(self).EndConvertHNSToTimecode)(::windows_core::Interface::as_raw(self), presult.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFTimecodeTranslate, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFTimecodeTranslate { - type Vtable = IMFTimecodeTranslate_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFTimecodeTranslate { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xab9d8661_f7e8_4ef4_9861_89f334f94e74); -} #[repr(C)] #[doc(hidden)] pub struct IMFTimecodeTranslate_Vtbl { @@ -19372,9 +17106,8 @@ pub struct IMFTimecodeTranslate_Vtbl { #[cfg(not(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant")))] EndConvertHNSToTimecode: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFTimedText(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFTimedText, IMFTimedText_Vtbl, 0x1f2a94c9_a3df_430d_9d0f_acd85ddc29af); +::windows_core::imp::interface_hierarchy!(IMFTimedText, ::windows_core::IUnknown); impl IMFTimedText { pub unsafe fn RegisterNotifications(&self, notify: P0) -> ::windows_core::Result<()> where @@ -19455,13 +17188,6 @@ impl IMFTimedText { (::windows_core::Interface::vtable(self).IsInBandEnabled)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(IMFTimedText, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFTimedText { - type Vtable = IMFTimedText_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFTimedText { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1f2a94c9_a3df_430d_9d0f_acd85ddc29af); -} #[repr(C)] #[doc(hidden)] pub struct IMFTimedText_Vtbl { @@ -19481,30 +17207,21 @@ pub struct IMFTimedText_Vtbl { pub SetInBandEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enabled: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub IsInBandEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFTimedTextBinary(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFTimedTextBinary, IMFTimedTextBinary_Vtbl, 0x4ae3a412_0545_43c4_bf6f_6b97a5c6c432); +::windows_core::imp::interface_hierarchy!(IMFTimedTextBinary, ::windows_core::IUnknown); impl IMFTimedTextBinary { pub unsafe fn GetData(&self, data: *mut *mut u8, length: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetData)(::windows_core::Interface::as_raw(self), data, length).ok() } } -::windows_core::imp::interface_hierarchy!(IMFTimedTextBinary, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFTimedTextBinary { - type Vtable = IMFTimedTextBinary_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFTimedTextBinary { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4ae3a412_0545_43c4_bf6f_6b97a5c6c432); -} #[repr(C)] #[doc(hidden)] pub struct IMFTimedTextBinary_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, data: *mut *mut u8, length: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFTimedTextBouten(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFTimedTextBouten, IMFTimedTextBouten_Vtbl, 0x3c5f3e8a_90c0_464e_8136_898d2975f847); +::windows_core::imp::interface_hierarchy!(IMFTimedTextBouten, ::windows_core::IUnknown); impl IMFTimedTextBouten { pub unsafe fn GetBoutenType(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -19519,13 +17236,6 @@ impl IMFTimedTextBouten { (::windows_core::Interface::vtable(self).GetBoutenPosition)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFTimedTextBouten, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFTimedTextBouten { - type Vtable = IMFTimedTextBouten_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFTimedTextBouten { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3c5f3e8a_90c0_464e_8136_898d2975f847); -} #[repr(C)] #[doc(hidden)] pub struct IMFTimedTextBouten_Vtbl { @@ -19534,9 +17244,8 @@ pub struct IMFTimedTextBouten_Vtbl { pub GetBoutenColor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut MFARGB) -> ::windows_core::HRESULT, pub GetBoutenPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut MF_TIMED_TEXT_BOUTEN_POSITION) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFTimedTextCue(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFTimedTextCue, IMFTimedTextCue_Vtbl, 0x1e560447_9a2b_43e1_a94c_b0aaabfbfbc9); +::windows_core::imp::interface_hierarchy!(IMFTimedTextCue, ::windows_core::IUnknown); impl IMFTimedTextCue { pub unsafe fn GetId(&self) -> u32 { (::windows_core::Interface::vtable(self).GetId)(::windows_core::Interface::as_raw(self)) @@ -19577,13 +17286,6 @@ impl IMFTimedTextCue { (::windows_core::Interface::vtable(self).GetLine)(::windows_core::Interface::as_raw(self), index, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFTimedTextCue, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFTimedTextCue { - type Vtable = IMFTimedTextCue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFTimedTextCue { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1e560447_9a2b_43e1_a94c_b0aaabfbfbc9); -} #[repr(C)] #[doc(hidden)] pub struct IMFTimedTextCue_Vtbl { @@ -19600,9 +17302,8 @@ pub struct IMFTimedTextCue_Vtbl { pub GetLineCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> u32, pub GetLine: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, line: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFTimedTextCueList(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFTimedTextCueList, IMFTimedTextCueList_Vtbl, 0xad128745_211b_40a0_9981_fe65f166d0fd); +::windows_core::imp::interface_hierarchy!(IMFTimedTextCueList, ::windows_core::IUnknown); impl IMFTimedTextCueList { pub unsafe fn GetLength(&self) -> u32 { (::windows_core::Interface::vtable(self).GetLength)(::windows_core::Interface::as_raw(self)) @@ -19638,13 +17339,6 @@ impl IMFTimedTextCueList { (::windows_core::Interface::vtable(self).RemoveCue)(::windows_core::Interface::as_raw(self), cue.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMFTimedTextCueList, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFTimedTextCueList { - type Vtable = IMFTimedTextCueList_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFTimedTextCueList { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xad128745_211b_40a0_9981_fe65f166d0fd); -} #[repr(C)] #[doc(hidden)] pub struct IMFTimedTextCueList_Vtbl { @@ -19657,9 +17351,8 @@ pub struct IMFTimedTextCueList_Vtbl { pub AddDataCue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, start: f64, duration: f64, data: *const u8, datasize: u32, cue: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RemoveCue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cue: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFTimedTextFormattedText(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFTimedTextFormattedText, IMFTimedTextFormattedText_Vtbl, 0xe13af3c1_4d47_4354_b1f5_e83ae0ecae60); +::windows_core::imp::interface_hierarchy!(IMFTimedTextFormattedText, ::windows_core::IUnknown); impl IMFTimedTextFormattedText { pub unsafe fn GetText(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); @@ -19672,13 +17365,6 @@ impl IMFTimedTextFormattedText { (::windows_core::Interface::vtable(self).GetSubformatting)(::windows_core::Interface::as_raw(self), index, firstchar, charlength, ::core::mem::transmute(style)).ok() } } -::windows_core::imp::interface_hierarchy!(IMFTimedTextFormattedText, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFTimedTextFormattedText { - type Vtable = IMFTimedTextFormattedText_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFTimedTextFormattedText { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe13af3c1_4d47_4354_b1f5_e83ae0ecae60); -} #[repr(C)] #[doc(hidden)] pub struct IMFTimedTextFormattedText_Vtbl { @@ -19687,9 +17373,8 @@ pub struct IMFTimedTextFormattedText_Vtbl { pub GetSubformattingCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> u32, pub GetSubformatting: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, firstchar: *mut u32, charlength: *mut u32, style: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFTimedTextNotify(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFTimedTextNotify, IMFTimedTextNotify_Vtbl, 0xdf6b87b6_ce12_45db_aba7_432fe054e57d); +::windows_core::imp::interface_hierarchy!(IMFTimedTextNotify, ::windows_core::IUnknown); impl IMFTimedTextNotify { pub unsafe fn TrackAdded(&self, trackid: u32) { (::windows_core::Interface::vtable(self).TrackAdded)(::windows_core::Interface::as_raw(self), trackid) @@ -19719,13 +17404,6 @@ impl IMFTimedTextNotify { (::windows_core::Interface::vtable(self).Reset)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(IMFTimedTextNotify, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFTimedTextNotify { - type Vtable = IMFTimedTextNotify_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFTimedTextNotify { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdf6b87b6_ce12_45db_aba7_432fe054e57d); -} #[repr(C)] #[doc(hidden)] pub struct IMFTimedTextNotify_Vtbl { @@ -19738,9 +17416,8 @@ pub struct IMFTimedTextNotify_Vtbl { pub Cue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cueevent: MF_TIMED_TEXT_CUE_EVENT, currenttime: f64, cue: *mut ::core::ffi::c_void), pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFTimedTextRegion(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFTimedTextRegion, IMFTimedTextRegion_Vtbl, 0xc8d22afc_bc47_4bdf_9b04_787e49ce3f58); +::windows_core::imp::interface_hierarchy!(IMFTimedTextRegion, ::windows_core::IUnknown); impl IMFTimedTextRegion { pub unsafe fn GetName(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); @@ -19787,13 +17464,6 @@ impl IMFTimedTextRegion { (::windows_core::Interface::vtable(self).GetScrollMode)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFTimedTextRegion, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFTimedTextRegion { - type Vtable = IMFTimedTextRegion_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFTimedTextRegion { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc8d22afc_bc47_4bdf_9b04_787e49ce3f58); -} #[repr(C)] #[doc(hidden)] pub struct IMFTimedTextRegion_Vtbl { @@ -19811,9 +17481,8 @@ pub struct IMFTimedTextRegion_Vtbl { pub GetZIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, zindex: *mut i32) -> ::windows_core::HRESULT, pub GetScrollMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, scrollmode: *mut MF_TIMED_TEXT_SCROLL_MODE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFTimedTextRuby(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFTimedTextRuby, IMFTimedTextRuby_Vtbl, 0x76c6a6f5_4955_4de5_b27b_14b734cc14b4); +::windows_core::imp::interface_hierarchy!(IMFTimedTextRuby, ::windows_core::IUnknown); impl IMFTimedTextRuby { pub unsafe fn GetRubyText(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); @@ -19832,13 +17501,6 @@ impl IMFTimedTextRuby { (::windows_core::Interface::vtable(self).GetRubyReserve)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFTimedTextRuby, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFTimedTextRuby { - type Vtable = IMFTimedTextRuby_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFTimedTextRuby { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x76c6a6f5_4955_4de5_b27b_14b734cc14b4); -} #[repr(C)] #[doc(hidden)] pub struct IMFTimedTextRuby_Vtbl { @@ -19848,9 +17510,8 @@ pub struct IMFTimedTextRuby_Vtbl { pub GetRubyAlign: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut MF_TIMED_TEXT_RUBY_ALIGN) -> ::windows_core::HRESULT, pub GetRubyReserve: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut MF_TIMED_TEXT_RUBY_RESERVE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFTimedTextStyle(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFTimedTextStyle, IMFTimedTextStyle_Vtbl, 0x09b2455d_b834_4f01_a347_9052e21c450e); +::windows_core::imp::interface_hierarchy!(IMFTimedTextStyle, ::windows_core::IUnknown); impl IMFTimedTextStyle { pub unsafe fn GetName(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); @@ -19902,13 +17563,6 @@ impl IMFTimedTextStyle { (::windows_core::Interface::vtable(self).GetTextOutline)(::windows_core::Interface::as_raw(self), color, thickness, blurradius, unittype).ok() } } -::windows_core::imp::interface_hierarchy!(IMFTimedTextStyle, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFTimedTextStyle { - type Vtable = IMFTimedTextStyle_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFTimedTextStyle { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x09b2455d_b834_4f01_a347_9052e21c450e); -} #[repr(C)] #[doc(hidden)] pub struct IMFTimedTextStyle_Vtbl { @@ -19927,9 +17581,8 @@ pub struct IMFTimedTextStyle_Vtbl { pub GetTextDecoration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, textdecoration: *mut u32) -> ::windows_core::HRESULT, pub GetTextOutline: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, color: *mut MFARGB, thickness: *mut f64, blurradius: *mut f64, unittype: *mut MF_TIMED_TEXT_UNIT_TYPE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFTimedTextStyle2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFTimedTextStyle2, IMFTimedTextStyle2_Vtbl, 0xdb639199_c809_4c89_bfca_d0bbb9729d6e); +::windows_core::imp::interface_hierarchy!(IMFTimedTextStyle2, ::windows_core::IUnknown); impl IMFTimedTextStyle2 { pub unsafe fn GetRuby(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -19948,13 +17601,6 @@ impl IMFTimedTextStyle2 { (::windows_core::Interface::vtable(self).GetFontAngleInDegrees)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFTimedTextStyle2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFTimedTextStyle2 { - type Vtable = IMFTimedTextStyle2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFTimedTextStyle2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdb639199_c809_4c89_bfca_d0bbb9729d6e); -} #[repr(C)] #[doc(hidden)] pub struct IMFTimedTextStyle2_Vtbl { @@ -19964,9 +17610,8 @@ pub struct IMFTimedTextStyle2_Vtbl { pub IsTextCombined: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub GetFontAngleInDegrees: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut f64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFTimedTextTrack(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFTimedTextTrack, IMFTimedTextTrack_Vtbl, 0x8822c32d_654e_4233_bf21_d7f2e67d30d4); +::windows_core::imp::interface_hierarchy!(IMFTimedTextTrack, ::windows_core::IUnknown); impl IMFTimedTextTrack { pub unsafe fn GetId(&self) -> u32 { (::windows_core::Interface::vtable(self).GetId)(::windows_core::Interface::as_raw(self)) @@ -20016,13 +17661,6 @@ impl IMFTimedTextTrack { (::windows_core::Interface::vtable(self).GetCueList)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFTimedTextTrack, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFTimedTextTrack { - type Vtable = IMFTimedTextTrack_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFTimedTextTrack { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8822c32d_654e_4233_bf21_d7f2e67d30d4); -} #[repr(C)] #[doc(hidden)] pub struct IMFTimedTextTrack_Vtbl { @@ -20041,9 +17679,8 @@ pub struct IMFTimedTextTrack_Vtbl { pub GetReadyState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> MF_TIMED_TEXT_TRACK_READY_STATE, pub GetCueList: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cues: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFTimedTextTrackList(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFTimedTextTrackList, IMFTimedTextTrackList_Vtbl, 0x23ff334c_442c_445f_bccc_edc438aa11e2); +::windows_core::imp::interface_hierarchy!(IMFTimedTextTrackList, ::windows_core::IUnknown); impl IMFTimedTextTrackList { pub unsafe fn GetLength(&self) -> u32 { (::windows_core::Interface::vtable(self).GetLength)(::windows_core::Interface::as_raw(self)) @@ -20057,13 +17694,6 @@ impl IMFTimedTextTrackList { (::windows_core::Interface::vtable(self).GetTrackById)(::windows_core::Interface::as_raw(self), trackid, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFTimedTextTrackList, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFTimedTextTrackList { - type Vtable = IMFTimedTextTrackList_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFTimedTextTrackList { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x23ff334c_442c_445f_bccc_edc438aa11e2); -} #[repr(C)] #[doc(hidden)] pub struct IMFTimedTextTrackList_Vtbl { @@ -20072,9 +17702,8 @@ pub struct IMFTimedTextTrackList_Vtbl { pub GetTrack: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, track: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetTrackById: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, trackid: u32, track: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFTimer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFTimer, IMFTimer_Vtbl, 0xe56e4cbd_8f70_49d8_a0f8_edb3d6ab9bf2); +::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<::windows_core::IUnknown> where @@ -20091,13 +17720,6 @@ impl IMFTimer { (::windows_core::Interface::vtable(self).CancelTimer)(::windows_core::Interface::as_raw(self), punkkey.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMFTimer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFTimer { - type Vtable = IMFTimer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFTimer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe56e4cbd_8f70_49d8_a0f8_edb3d6ab9bf2); -} #[repr(C)] #[doc(hidden)] pub struct IMFTimer_Vtbl { @@ -20105,9 +17727,8 @@ pub struct IMFTimer_Vtbl { pub SetTimer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwflags: u32, llclocktime: i64, pcallback: *mut ::core::ffi::c_void, punkstate: *mut ::core::ffi::c_void, ppunkkey: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CancelTimer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punkkey: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFTopoLoader(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFTopoLoader, IMFTopoLoader_Vtbl, 0xde9a6157_f660_4643_b56a_df9f7998c7cd); +::windows_core::imp::interface_hierarchy!(IMFTopoLoader, ::windows_core::IUnknown); impl IMFTopoLoader { pub unsafe fn Load(&self, pinputtopo: P0, ppoutputtopo: *mut ::core::option::Option, pcurrenttopo: P1) -> ::windows_core::Result<()> where @@ -20117,22 +17738,14 @@ impl IMFTopoLoader { (::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::imp::interface_hierarchy!(IMFTopoLoader, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFTopoLoader { - type Vtable = IMFTopoLoader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFTopoLoader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xde9a6157_f660_4643_b56a_df9f7998c7cd); -} #[repr(C)] #[doc(hidden)] pub struct IMFTopoLoader_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Load: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinputtopo: *mut ::core::ffi::c_void, ppoutputtopo: *mut *mut ::core::ffi::c_void, pcurrenttopo: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFTopology(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFTopology, IMFTopology_Vtbl, 0x83cf873a_f6da_4bc8_823f_bacfd55dc433); +::windows_core::imp::interface_hierarchy!(IMFTopology, ::windows_core::IUnknown, IMFAttributes); impl IMFTopology { #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] @@ -20194,7 +17807,7 @@ impl IMFTopology { } pub unsafe fn GetUnknown(&self, guidkey: *const ::windows_core::GUID) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.GetUnknown)(::windows_core::Interface::as_raw(self), guidkey, &T::IID, &mut result__).from_abi(result__) @@ -20304,13 +17917,6 @@ impl IMFTopology { (::windows_core::Interface::vtable(self).GetOutputNodeCollection)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFTopology, ::windows_core::IUnknown, IMFAttributes); -unsafe impl ::windows_core::Interface for IMFTopology { - type Vtable = IMFTopology_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFTopology { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x83cf873a_f6da_4bc8_823f_bacfd55dc433); -} #[repr(C)] #[doc(hidden)] pub struct IMFTopology_Vtbl { @@ -20326,9 +17932,8 @@ pub struct IMFTopology_Vtbl { pub GetSourceNodeCollection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppcollection: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetOutputNodeCollection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppcollection: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFTopologyNode(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFTopologyNode, IMFTopologyNode_Vtbl, 0x83cf873a_f6da_4bc8_823f_bacfd55dc430); +::windows_core::imp::interface_hierarchy!(IMFTopologyNode, ::windows_core::IUnknown, IMFAttributes); impl IMFTopologyNode { #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] @@ -20390,7 +17995,7 @@ impl IMFTopologyNode { } pub unsafe fn GetUnknown(&self, guidkey: *const ::windows_core::GUID) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.GetUnknown)(::windows_core::Interface::as_raw(self), guidkey, &T::IID, &mut result__).from_abi(result__) @@ -20525,13 +18130,6 @@ impl IMFTopologyNode { (::windows_core::Interface::vtable(self).CloneFrom)(::windows_core::Interface::as_raw(self), pnode.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMFTopologyNode, ::windows_core::IUnknown, IMFAttributes); -unsafe impl ::windows_core::Interface for IMFTopologyNode { - type Vtable = IMFTopologyNode_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFTopologyNode { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x83cf873a_f6da_4bc8_823f_bacfd55dc430); -} #[repr(C)] #[doc(hidden)] pub struct IMFTopologyNode_Vtbl { @@ -20553,51 +18151,34 @@ pub struct IMFTopologyNode_Vtbl { pub GetInputPrefType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwinputindex: u32, pptype: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CloneFrom: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pnode: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFTopologyNodeAttributeEditor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFTopologyNodeAttributeEditor, IMFTopologyNodeAttributeEditor_Vtbl, 0x676aa6dd_238a_410d_bb99_65668d01605a); +::windows_core::imp::interface_hierarchy!(IMFTopologyNodeAttributeEditor, ::windows_core::IUnknown); impl IMFTopologyNodeAttributeEditor { pub unsafe fn UpdateNodeAttributes(&self, topoid: u64, pupdates: &[MFTOPONODE_ATTRIBUTE_UPDATE]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).UpdateNodeAttributes)(::windows_core::Interface::as_raw(self), topoid, pupdates.len().try_into().unwrap(), ::core::mem::transmute(pupdates.as_ptr())).ok() } } -::windows_core::imp::interface_hierarchy!(IMFTopologyNodeAttributeEditor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFTopologyNodeAttributeEditor { - type Vtable = IMFTopologyNodeAttributeEditor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFTopologyNodeAttributeEditor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x676aa6dd_238a_410d_bb99_65668d01605a); -} #[repr(C)] #[doc(hidden)] pub struct IMFTopologyNodeAttributeEditor_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub UpdateNodeAttributes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, topoid: u64, cupdates: u32, pupdates: *const MFTOPONODE_ATTRIBUTE_UPDATE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFTopologyServiceLookup(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFTopologyServiceLookup, IMFTopologyServiceLookup_Vtbl, 0xfa993889_4383_415a_a930_dd472a8cf6f7); +::windows_core::imp::interface_hierarchy!(IMFTopologyServiceLookup, ::windows_core::IUnknown); impl IMFTopologyServiceLookup { pub unsafe fn LookupService(&self, r#type: MF_SERVICE_LOOKUP_TYPE, dwindex: u32, guidservice: *const ::windows_core::GUID, riid: *const ::windows_core::GUID, ppvobjects: *mut *mut ::core::ffi::c_void, pnobjects: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).LookupService)(::windows_core::Interface::as_raw(self), r#type, dwindex, guidservice, riid, ppvobjects, pnobjects).ok() } } -::windows_core::imp::interface_hierarchy!(IMFTopologyServiceLookup, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFTopologyServiceLookup { - type Vtable = IMFTopologyServiceLookup_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFTopologyServiceLookup { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfa993889_4383_415a_a930_dd472a8cf6f7); -} #[repr(C)] #[doc(hidden)] pub struct IMFTopologyServiceLookup_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub LookupService: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: MF_SERVICE_LOOKUP_TYPE, dwindex: u32, guidservice: *const ::windows_core::GUID, riid: *const ::windows_core::GUID, ppvobjects: *mut *mut ::core::ffi::c_void, pnobjects: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFTopologyServiceLookupClient(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFTopologyServiceLookupClient, IMFTopologyServiceLookupClient_Vtbl, 0xfa99388a_4383_415a_a930_dd472a8cf6f7); +::windows_core::imp::interface_hierarchy!(IMFTopologyServiceLookupClient, ::windows_core::IUnknown); impl IMFTopologyServiceLookupClient { pub unsafe fn InitServicePointers(&self, plookup: P0) -> ::windows_core::Result<()> where @@ -20609,13 +18190,6 @@ impl IMFTopologyServiceLookupClient { (::windows_core::Interface::vtable(self).ReleaseServicePointers)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IMFTopologyServiceLookupClient, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFTopologyServiceLookupClient { - type Vtable = IMFTopologyServiceLookupClient_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFTopologyServiceLookupClient { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfa99388a_4383_415a_a930_dd472a8cf6f7); -} #[repr(C)] #[doc(hidden)] pub struct IMFTopologyServiceLookupClient_Vtbl { @@ -20623,9 +18197,8 @@ pub struct IMFTopologyServiceLookupClient_Vtbl { pub InitServicePointers: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plookup: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ReleaseServicePointers: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFTrackedSample(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFTrackedSample, IMFTrackedSample_Vtbl, 0x245bf8e9_0755_40f7_88a5_ae0f18d55e17); +::windows_core::imp::interface_hierarchy!(IMFTrackedSample, ::windows_core::IUnknown); impl IMFTrackedSample { pub unsafe fn SetAllocator(&self, psampleallocator: P0, punkstate: P1) -> ::windows_core::Result<()> where @@ -20635,22 +18208,14 @@ impl IMFTrackedSample { (::windows_core::Interface::vtable(self).SetAllocator)(::windows_core::Interface::as_raw(self), psampleallocator.into_param().abi(), punkstate.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMFTrackedSample, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFTrackedSample { - type Vtable = IMFTrackedSample_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFTrackedSample { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x245bf8e9_0755_40f7_88a5_ae0f18d55e17); -} #[repr(C)] #[doc(hidden)] pub struct IMFTrackedSample_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub SetAllocator: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psampleallocator: *mut ::core::ffi::c_void, punkstate: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFTranscodeProfile(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFTranscodeProfile, IMFTranscodeProfile_Vtbl, 0x4adfdba3_7ab0_4953_a62b_461e7ff3da1e); +::windows_core::imp::interface_hierarchy!(IMFTranscodeProfile, ::windows_core::IUnknown); impl IMFTranscodeProfile { pub unsafe fn SetAudioAttributes(&self, pattrs: P0) -> ::windows_core::Result<()> where @@ -20683,13 +18248,6 @@ impl IMFTranscodeProfile { (::windows_core::Interface::vtable(self).GetContainerAttributes)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFTranscodeProfile, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFTranscodeProfile { - type Vtable = IMFTranscodeProfile_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFTranscodeProfile { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4adfdba3_7ab0_4953_a62b_461e7ff3da1e); -} #[repr(C)] #[doc(hidden)] pub struct IMFTranscodeProfile_Vtbl { @@ -20701,9 +18259,8 @@ pub struct IMFTranscodeProfile_Vtbl { pub SetContainerAttributes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pattrs: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetContainerAttributes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppattrs: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFTranscodeSinkInfoProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFTranscodeSinkInfoProvider, IMFTranscodeSinkInfoProvider_Vtbl, 0x8cffcd2e_5a03_4a3a_aff7_edcd107c620e); +::windows_core::imp::interface_hierarchy!(IMFTranscodeSinkInfoProvider, ::windows_core::IUnknown); impl IMFTranscodeSinkInfoProvider { pub unsafe fn SetOutputFile(&self, pwszfilename: P0) -> ::windows_core::Result<()> where @@ -20728,13 +18285,6 @@ impl IMFTranscodeSinkInfoProvider { (::windows_core::Interface::vtable(self).GetSinkInfo)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFTranscodeSinkInfoProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFTranscodeSinkInfoProvider { - type Vtable = IMFTranscodeSinkInfoProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFTranscodeSinkInfoProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8cffcd2e_5a03_4a3a_aff7_edcd107c620e); -} #[repr(C)] #[doc(hidden)] pub struct IMFTranscodeSinkInfoProvider_Vtbl { @@ -20744,9 +18294,8 @@ pub struct IMFTranscodeSinkInfoProvider_Vtbl { pub SetProfile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pprofile: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetSinkInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psinkinfo: *mut MF_TRANSCODE_SINK_INFO) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFTransform(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFTransform, IMFTransform_Vtbl, 0xbf94c121_5b05_4e6f_8000_ba598961414d); +::windows_core::imp::interface_hierarchy!(IMFTransform, ::windows_core::IUnknown); impl IMFTransform { pub unsafe fn GetStreamLimits(&self, pdwinputminimum: *mut u32, pdwinputmaximum: *mut u32, pdwoutputminimum: *mut u32, pdwoutputmaximum: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetStreamLimits)(::windows_core::Interface::as_raw(self), pdwinputminimum, pdwinputmaximum, pdwoutputminimum, pdwoutputmaximum).ok() @@ -20840,13 +18389,6 @@ impl IMFTransform { (::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() } } -::windows_core::imp::interface_hierarchy!(IMFTransform, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFTransform { - type Vtable = IMFTransform_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFTransform { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbf94c121_5b05_4e6f_8000_ba598961414d); -} #[repr(C)] #[doc(hidden)] pub struct IMFTransform_Vtbl { @@ -20875,21 +18417,13 @@ pub struct IMFTransform_Vtbl { pub ProcessInput: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwinputstreamid: u32, psample: *mut ::core::ffi::c_void, dwflags: u32) -> ::windows_core::HRESULT, pub ProcessOutput: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwflags: u32, coutputbuffercount: u32, poutputsamples: *mut MFT_OUTPUT_DATA_BUFFER, pdwstatus: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFTrustedInput(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFTrustedInput, IMFTrustedInput_Vtbl, 0x542612c4_a1b8_4632_b521_de11ea64a0b0); +::windows_core::imp::interface_hierarchy!(IMFTrustedInput, ::windows_core::IUnknown); impl IMFTrustedInput { pub unsafe fn GetInputTrustAuthority(&self, dwstreamid: u32, riid: *const ::windows_core::GUID) -> ::windows_core::Result<::windows_core::IUnknown> { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetInputTrustAuthority)(::windows_core::Interface::as_raw(self), dwstreamid, riid, &mut result__).from_abi(result__) - } -} -::windows_core::imp::interface_hierarchy!(IMFTrustedInput, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFTrustedInput { - type Vtable = IMFTrustedInput_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFTrustedInput { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x542612c4_a1b8_4632_b521_de11ea64a0b0); + } } #[repr(C)] #[doc(hidden)] @@ -20897,9 +18431,8 @@ pub struct IMFTrustedInput_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetInputTrustAuthority: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwstreamid: u32, riid: *const ::windows_core::GUID, ppunkobject: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFTrustedOutput(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFTrustedOutput, IMFTrustedOutput_Vtbl, 0xd19f8e95_b126_4446_890c_5dcb7ad71453); +::windows_core::imp::interface_hierarchy!(IMFTrustedOutput, ::windows_core::IUnknown); impl IMFTrustedOutput { pub unsafe fn GetOutputTrustAuthorityCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -20914,13 +18447,6 @@ impl IMFTrustedOutput { (::windows_core::Interface::vtable(self).IsFinal)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFTrustedOutput, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFTrustedOutput { - type Vtable = IMFTrustedOutput_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFTrustedOutput { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd19f8e95_b126_4446_890c_5dcb7ad71453); -} #[repr(C)] #[doc(hidden)] pub struct IMFTrustedOutput_Vtbl { @@ -20929,9 +18455,8 @@ pub struct IMFTrustedOutput_Vtbl { pub GetOutputTrustAuthorityByIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwindex: u32, ppauthority: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub IsFinal: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfisfinal: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFVideoCaptureSampleAllocator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFVideoCaptureSampleAllocator, IMFVideoCaptureSampleAllocator_Vtbl, 0x725b77c7_ca9f_4fe5_9d72_9946bf9b3c70); +::windows_core::imp::interface_hierarchy!(IMFVideoCaptureSampleAllocator, ::windows_core::IUnknown, IMFVideoSampleAllocator); impl IMFVideoCaptureSampleAllocator { pub unsafe fn SetDirectXManager(&self, pmanager: P0) -> ::windows_core::Result<()> where @@ -20960,44 +18485,28 @@ impl IMFVideoCaptureSampleAllocator { (::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::imp::interface_hierarchy!(IMFVideoCaptureSampleAllocator, ::windows_core::IUnknown, IMFVideoSampleAllocator); -unsafe impl ::windows_core::Interface for IMFVideoCaptureSampleAllocator { - type Vtable = IMFVideoCaptureSampleAllocator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFVideoCaptureSampleAllocator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x725b77c7_ca9f_4fe5_9d72_9946bf9b3c70); -} #[repr(C)] #[doc(hidden)] pub struct IMFVideoCaptureSampleAllocator_Vtbl { pub base__: IMFVideoSampleAllocator_Vtbl, pub InitializeCaptureSampleAllocator: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cbsamplesize: u32, cbcapturemetadatasize: u32, cbalignment: u32, cminimumsamples: u32, pattributes: *mut ::core::ffi::c_void, pmediatype: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFVideoDeviceID(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFVideoDeviceID, IMFVideoDeviceID_Vtbl, 0xa38d9567_5a9c_4f3c_b293_8eb415b279ba); +::windows_core::imp::interface_hierarchy!(IMFVideoDeviceID, ::windows_core::IUnknown); impl IMFVideoDeviceID { pub unsafe fn GetDeviceID(&self) -> ::windows_core::Result<::windows_core::GUID> { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetDeviceID)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFVideoDeviceID, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFVideoDeviceID { - type Vtable = IMFVideoDeviceID_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFVideoDeviceID { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa38d9567_5a9c_4f3c_b293_8eb415b279ba); -} #[repr(C)] #[doc(hidden)] pub struct IMFVideoDeviceID_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetDeviceID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdeviceid: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFVideoDisplayControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFVideoDisplayControl, IMFVideoDisplayControl_Vtbl, 0xa490b1e4_ab84_4d31_a1b2_181e03b1077a); +::windows_core::imp::interface_hierarchy!(IMFVideoDisplayControl, ::windows_core::IUnknown); impl IMFVideoDisplayControl { pub unsafe fn GetNativeVideoSize(&self, pszvideo: *mut super::super::Foundation::SIZE, pszarvideo: *mut super::super::Foundation::SIZE) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetNativeVideoSize)(::windows_core::Interface::as_raw(self), pszvideo, pszarvideo).ok() @@ -21064,13 +18573,6 @@ impl IMFVideoDisplayControl { (::windows_core::Interface::vtable(self).GetFullscreen)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFVideoDisplayControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFVideoDisplayControl { - type Vtable = IMFVideoDisplayControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFVideoDisplayControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa490b1e4_ab84_4d31_a1b2_181e03b1077a); -} #[repr(C)] #[doc(hidden)] pub struct IMFVideoDisplayControl_Vtbl { @@ -21095,9 +18597,8 @@ pub struct IMFVideoDisplayControl_Vtbl { pub SetFullscreen: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ffullscreen: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub GetFullscreen: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pffullscreen: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFVideoMediaType(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFVideoMediaType, IMFVideoMediaType_Vtbl, 0xb99f381f_a8f9_47a2_a5af_ca3a225a3890); +::windows_core::imp::interface_hierarchy!(IMFVideoMediaType, ::windows_core::IUnknown, IMFAttributes, IMFMediaType); impl IMFVideoMediaType { #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] @@ -21159,7 +18660,7 @@ impl IMFVideoMediaType { } pub unsafe fn GetUnknown(&self, guidkey: *const ::windows_core::GUID) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.GetUnknown)(::windows_core::Interface::as_raw(self), guidkey, &T::IID, &mut result__).from_abi(result__) @@ -21251,13 +18752,6 @@ impl IMFVideoMediaType { (::windows_core::Interface::vtable(self).GetVideoRepresentation)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(guidrepresentation), ppvrepresentation, lstride).ok() } } -::windows_core::imp::interface_hierarchy!(IMFVideoMediaType, ::windows_core::IUnknown, IMFAttributes, IMFMediaType); -unsafe impl ::windows_core::Interface for IMFVideoMediaType { - type Vtable = IMFVideoMediaType_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFVideoMediaType { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb99f381f_a8f9_47a2_a5af_ca3a225a3890); -} #[repr(C)] #[doc(hidden)] pub struct IMFVideoMediaType_Vtbl { @@ -21265,9 +18759,8 @@ pub struct IMFVideoMediaType_Vtbl { pub GetVideoFormat: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> *mut MFVIDEOFORMAT, pub GetVideoRepresentation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guidrepresentation: ::windows_core::GUID, ppvrepresentation: *mut *mut ::core::ffi::c_void, lstride: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFVideoMixerBitmap(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFVideoMixerBitmap, IMFVideoMixerBitmap_Vtbl, 0x814c7b20_0fdb_4eec_af8f_f957c8f69edc); +::windows_core::imp::interface_hierarchy!(IMFVideoMixerBitmap, ::windows_core::IUnknown); impl IMFVideoMixerBitmap { #[doc = "Required features: `\"Win32_Graphics_Direct3D9\"`, `\"Win32_Graphics_Gdi\"`"] #[cfg(all(feature = "Win32_Graphics_Direct3D9", feature = "Win32_Graphics_Gdi"))] @@ -21284,13 +18777,6 @@ impl IMFVideoMixerBitmap { (::windows_core::Interface::vtable(self).GetAlphaBitmapParameters)(::windows_core::Interface::as_raw(self), pbmpparms).ok() } } -::windows_core::imp::interface_hierarchy!(IMFVideoMixerBitmap, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFVideoMixerBitmap { - type Vtable = IMFVideoMixerBitmap_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFVideoMixerBitmap { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x814c7b20_0fdb_4eec_af8f_f957c8f69edc); -} #[repr(C)] #[doc(hidden)] pub struct IMFVideoMixerBitmap_Vtbl { @@ -21303,9 +18789,8 @@ pub struct IMFVideoMixerBitmap_Vtbl { pub UpdateAlphaBitmapParameters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbmpparms: *const MFVideoAlphaBitmapParams) -> ::windows_core::HRESULT, pub GetAlphaBitmapParameters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbmpparms: *mut MFVideoAlphaBitmapParams) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFVideoMixerControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFVideoMixerControl, IMFVideoMixerControl_Vtbl, 0xa5c6c53f_c202_4aa5_9695_175ba8c508a5); +::windows_core::imp::interface_hierarchy!(IMFVideoMixerControl, ::windows_core::IUnknown); impl IMFVideoMixerControl { pub unsafe fn SetStreamZOrder(&self, dwstreamid: u32, dwz: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetStreamZOrder)(::windows_core::Interface::as_raw(self), dwstreamid, dwz).ok() @@ -21322,13 +18807,6 @@ impl IMFVideoMixerControl { (::windows_core::Interface::vtable(self).GetStreamOutputRect)(::windows_core::Interface::as_raw(self), dwstreamid, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFVideoMixerControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFVideoMixerControl { - type Vtable = IMFVideoMixerControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFVideoMixerControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa5c6c53f_c202_4aa5_9695_175ba8c508a5); -} #[repr(C)] #[doc(hidden)] pub struct IMFVideoMixerControl_Vtbl { @@ -21338,9 +18816,8 @@ pub struct IMFVideoMixerControl_Vtbl { pub SetStreamOutputRect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwstreamid: u32, pnrcoutput: *const MFVideoNormalizedRect) -> ::windows_core::HRESULT, pub GetStreamOutputRect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwstreamid: u32, pnrcoutput: *mut MFVideoNormalizedRect) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFVideoMixerControl2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFVideoMixerControl2, IMFVideoMixerControl2_Vtbl, 0x8459616d_966e_4930_b658_54fa7e5a16d3); +::windows_core::imp::interface_hierarchy!(IMFVideoMixerControl2, ::windows_core::IUnknown, IMFVideoMixerControl); impl IMFVideoMixerControl2 { pub unsafe fn SetStreamZOrder(&self, dwstreamid: u32, dwz: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.SetStreamZOrder)(::windows_core::Interface::as_raw(self), dwstreamid, dwz).ok() @@ -21364,13 +18841,6 @@ impl IMFVideoMixerControl2 { (::windows_core::Interface::vtable(self).GetMixingPrefs)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFVideoMixerControl2, ::windows_core::IUnknown, IMFVideoMixerControl); -unsafe impl ::windows_core::Interface for IMFVideoMixerControl2 { - type Vtable = IMFVideoMixerControl2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFVideoMixerControl2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8459616d_966e_4930_b658_54fa7e5a16d3); -} #[repr(C)] #[doc(hidden)] pub struct IMFVideoMixerControl2_Vtbl { @@ -21378,30 +18848,21 @@ pub struct IMFVideoMixerControl2_Vtbl { pub SetMixingPrefs: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwmixflags: u32) -> ::windows_core::HRESULT, pub GetMixingPrefs: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwmixflags: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFVideoPositionMapper(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFVideoPositionMapper, IMFVideoPositionMapper_Vtbl, 0x1f6a9f17_e70b_4e24_8ae4_0b2c3ba7a4ae); +::windows_core::imp::interface_hierarchy!(IMFVideoPositionMapper, ::windows_core::IUnknown); impl IMFVideoPositionMapper { pub unsafe fn MapOutputCoordinateToInputStream(&self, xout: f32, yout: f32, dwoutputstreamindex: u32, dwinputstreamindex: u32, pxin: *mut f32, pyin: *mut f32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).MapOutputCoordinateToInputStream)(::windows_core::Interface::as_raw(self), xout, yout, dwoutputstreamindex, dwinputstreamindex, pxin, pyin).ok() } } -::windows_core::imp::interface_hierarchy!(IMFVideoPositionMapper, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFVideoPositionMapper { - type Vtable = IMFVideoPositionMapper_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFVideoPositionMapper { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1f6a9f17_e70b_4e24_8ae4_0b2c3ba7a4ae); -} #[repr(C)] #[doc(hidden)] pub struct IMFVideoPositionMapper_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub MapOutputCoordinateToInputStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, xout: f32, yout: f32, dwoutputstreamindex: u32, dwinputstreamindex: u32, pxin: *mut f32, pyin: *mut f32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFVideoPresenter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFVideoPresenter, IMFVideoPresenter_Vtbl, 0x29aff080_182a_4a5d_af3b_448f3a6346cb); +::windows_core::imp::interface_hierarchy!(IMFVideoPresenter, ::windows_core::IUnknown, IMFClockStateSink); impl IMFVideoPresenter { pub unsafe fn OnClockStart(&self, hnssystemtime: i64, llclockstartoffset: i64) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.OnClockStart)(::windows_core::Interface::as_raw(self), hnssystemtime, llclockstartoffset).ok() @@ -21426,13 +18887,6 @@ impl IMFVideoPresenter { (::windows_core::Interface::vtable(self).GetCurrentMediaType)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFVideoPresenter, ::windows_core::IUnknown, IMFClockStateSink); -unsafe impl ::windows_core::Interface for IMFVideoPresenter { - type Vtable = IMFVideoPresenter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFVideoPresenter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x29aff080_182a_4a5d_af3b_448f3a6346cb); -} #[repr(C)] #[doc(hidden)] pub struct IMFVideoPresenter_Vtbl { @@ -21440,9 +18894,8 @@ pub struct IMFVideoPresenter_Vtbl { pub ProcessMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, emessage: MFVP_MESSAGE_TYPE, ulparam: usize) -> ::windows_core::HRESULT, pub GetCurrentMediaType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppmediatype: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFVideoProcessor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFVideoProcessor, IMFVideoProcessor_Vtbl, 0x6ab0000c_fece_4d1f_a2ac_a9573530656e); +::windows_core::imp::interface_hierarchy!(IMFVideoProcessor, ::windows_core::IUnknown); impl IMFVideoProcessor { pub unsafe fn GetAvailableVideoProcessorModes(&self, lpdwnumprocessingmodes: *mut u32, ppvideoprocessingmodes: *mut *mut ::windows_core::GUID) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetAvailableVideoProcessorModes)(::windows_core::Interface::as_raw(self), lpdwnumprocessingmodes, ppvideoprocessingmodes).ok() @@ -21492,13 +18945,6 @@ impl IMFVideoProcessor { (::windows_core::Interface::vtable(self).SetBackgroundColor)(::windows_core::Interface::as_raw(self), clrbkg.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMFVideoProcessor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFVideoProcessor { - type Vtable = IMFVideoProcessor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFVideoProcessor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6ab0000c_fece_4d1f_a2ac_a9573530656e); -} #[repr(C)] #[doc(hidden)] pub struct IMFVideoProcessor_Vtbl { @@ -21519,9 +18965,8 @@ pub struct IMFVideoProcessor_Vtbl { pub GetBackgroundColor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpclrbkg: *mut super::super::Foundation::COLORREF) -> ::windows_core::HRESULT, pub SetBackgroundColor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, clrbkg: super::super::Foundation::COLORREF) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFVideoProcessorControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFVideoProcessorControl, IMFVideoProcessorControl_Vtbl, 0xa3f675d5_6119_4f7f_a100_1d8b280f0efb); +::windows_core::imp::interface_hierarchy!(IMFVideoProcessorControl, ::windows_core::IUnknown); impl IMFVideoProcessorControl { pub unsafe fn SetBorderColor(&self, pbordercolor: ::core::option::Option<*const MFARGB>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetBorderColor)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pbordercolor.unwrap_or(::std::ptr::null()))).ok() @@ -21542,13 +18987,6 @@ impl IMFVideoProcessorControl { (::windows_core::Interface::vtable(self).SetConstrictionSize)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pconstrictionsize.unwrap_or(::std::ptr::null()))).ok() } } -::windows_core::imp::interface_hierarchy!(IMFVideoProcessorControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFVideoProcessorControl { - type Vtable = IMFVideoProcessorControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFVideoProcessorControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa3f675d5_6119_4f7f_a100_1d8b280f0efb); -} #[repr(C)] #[doc(hidden)] pub struct IMFVideoProcessorControl_Vtbl { @@ -21560,9 +18998,8 @@ pub struct IMFVideoProcessorControl_Vtbl { pub SetRotation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, erotation: MF_VIDEO_PROCESSOR_ROTATION) -> ::windows_core::HRESULT, pub SetConstrictionSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pconstrictionsize: *const super::super::Foundation::SIZE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFVideoProcessorControl2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFVideoProcessorControl2, IMFVideoProcessorControl2_Vtbl, 0xbde633d3_e1dc_4a7f_a693_bbae399c4a20); +::windows_core::imp::interface_hierarchy!(IMFVideoProcessorControl2, ::windows_core::IUnknown, IMFVideoProcessorControl); impl IMFVideoProcessorControl2 { pub unsafe fn SetBorderColor(&self, pbordercolor: ::core::option::Option<*const MFARGB>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.SetBorderColor)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pbordercolor.unwrap_or(::std::ptr::null()))).ok() @@ -21596,13 +19033,6 @@ impl IMFVideoProcessorControl2 { (::windows_core::Interface::vtable(self).GetSupportedHardwareEffects)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFVideoProcessorControl2, ::windows_core::IUnknown, IMFVideoProcessorControl); -unsafe impl ::windows_core::Interface for IMFVideoProcessorControl2 { - type Vtable = IMFVideoProcessorControl2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFVideoProcessorControl2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbde633d3_e1dc_4a7f_a693_bbae399c4a20); -} #[repr(C)] #[doc(hidden)] pub struct IMFVideoProcessorControl2_Vtbl { @@ -21611,9 +19041,8 @@ pub struct IMFVideoProcessorControl2_Vtbl { pub EnableHardwareEffects: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fenabled: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub GetSupportedHardwareEffects: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, puisupport: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFVideoProcessorControl3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFVideoProcessorControl3, IMFVideoProcessorControl3_Vtbl, 0x2424b3f2_eb23_40f1_91aa_74bddeea0883); +::windows_core::imp::interface_hierarchy!(IMFVideoProcessorControl3, ::windows_core::IUnknown, IMFVideoProcessorControl, IMFVideoProcessorControl2); impl IMFVideoProcessorControl3 { pub unsafe fn SetBorderColor(&self, pbordercolor: ::core::option::Option<*const MFARGB>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.SetBorderColor)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pbordercolor.unwrap_or(::std::ptr::null()))).ok() @@ -21666,13 +19095,6 @@ impl IMFVideoProcessorControl3 { (::windows_core::Interface::vtable(self).SetOutputDevice)(::windows_core::Interface::as_raw(self), poutputdevice.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMFVideoProcessorControl3, ::windows_core::IUnknown, IMFVideoProcessorControl, IMFVideoProcessorControl2); -unsafe impl ::windows_core::Interface for IMFVideoProcessorControl3 { - type Vtable = IMFVideoProcessorControl3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFVideoProcessorControl3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2424b3f2_eb23_40f1_91aa_74bddeea0883); -} #[repr(C)] #[doc(hidden)] pub struct IMFVideoProcessorControl3_Vtbl { @@ -21682,9 +19104,8 @@ pub struct IMFVideoProcessorControl3_Vtbl { pub SetSphericalVideoProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, x: f32, y: f32, z: f32, w: f32, fieldofview: f32) -> ::windows_core::HRESULT, pub SetOutputDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, poutputdevice: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFVideoRenderer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFVideoRenderer, IMFVideoRenderer_Vtbl, 0xdfdfd197_a9ca_43d8_b341_6af3503792cd); +::windows_core::imp::interface_hierarchy!(IMFVideoRenderer, ::windows_core::IUnknown); impl IMFVideoRenderer { pub unsafe fn InitializeRenderer(&self, pvideomixer: P0, pvideopresenter: P1) -> ::windows_core::Result<()> where @@ -21694,22 +19115,14 @@ impl IMFVideoRenderer { (::windows_core::Interface::vtable(self).InitializeRenderer)(::windows_core::Interface::as_raw(self), pvideomixer.into_param().abi(), pvideopresenter.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMFVideoRenderer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFVideoRenderer { - type Vtable = IMFVideoRenderer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFVideoRenderer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdfdfd197_a9ca_43d8_b341_6af3503792cd); -} #[repr(C)] #[doc(hidden)] pub struct IMFVideoRenderer_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub InitializeRenderer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvideomixer: *mut ::core::ffi::c_void, pvideopresenter: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFVideoRendererEffectControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFVideoRendererEffectControl, IMFVideoRendererEffectControl_Vtbl, 0x604d33d7_cf23_41d5_8224_5bbbb1a87475); +::windows_core::imp::interface_hierarchy!(IMFVideoRendererEffectControl, ::windows_core::IUnknown); impl IMFVideoRendererEffectControl { pub unsafe fn OnAppServiceConnectionEstablished(&self, pappserviceconnection: P0) -> ::windows_core::Result<()> where @@ -21718,22 +19131,14 @@ impl IMFVideoRendererEffectControl { (::windows_core::Interface::vtable(self).OnAppServiceConnectionEstablished)(::windows_core::Interface::as_raw(self), pappserviceconnection.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMFVideoRendererEffectControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFVideoRendererEffectControl { - type Vtable = IMFVideoRendererEffectControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFVideoRendererEffectControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x604d33d7_cf23_41d5_8224_5bbbb1a87475); -} #[repr(C)] #[doc(hidden)] pub struct IMFVideoRendererEffectControl_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnAppServiceConnectionEstablished: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pappserviceconnection: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFVideoSampleAllocator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFVideoSampleAllocator, IMFVideoSampleAllocator_Vtbl, 0x86cbc910_e533_4751_8e3b_f19b5b806a03); +::windows_core::imp::interface_hierarchy!(IMFVideoSampleAllocator, ::windows_core::IUnknown); impl IMFVideoSampleAllocator { pub unsafe fn SetDirectXManager(&self, pmanager: P0) -> ::windows_core::Result<()> where @@ -21755,13 +19160,6 @@ impl IMFVideoSampleAllocator { (::windows_core::Interface::vtable(self).AllocateSample)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFVideoSampleAllocator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFVideoSampleAllocator { - type Vtable = IMFVideoSampleAllocator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFVideoSampleAllocator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x86cbc910_e533_4751_8e3b_f19b5b806a03); -} #[repr(C)] #[doc(hidden)] pub struct IMFVideoSampleAllocator_Vtbl { @@ -21771,9 +19169,8 @@ pub struct IMFVideoSampleAllocator_Vtbl { pub InitializeSampleAllocator: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, crequestedframes: u32, pmediatype: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub AllocateSample: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppsample: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFVideoSampleAllocatorCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFVideoSampleAllocatorCallback, IMFVideoSampleAllocatorCallback_Vtbl, 0x992388b4_3372_4f67_8b6f_c84c071f4751); +::windows_core::imp::interface_hierarchy!(IMFVideoSampleAllocatorCallback, ::windows_core::IUnknown); impl IMFVideoSampleAllocatorCallback { pub unsafe fn SetCallback(&self, pnotify: P0) -> ::windows_core::Result<()> where @@ -21786,13 +19183,6 @@ impl IMFVideoSampleAllocatorCallback { (::windows_core::Interface::vtable(self).GetFreeSampleCount)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFVideoSampleAllocatorCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFVideoSampleAllocatorCallback { - type Vtable = IMFVideoSampleAllocatorCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFVideoSampleAllocatorCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x992388b4_3372_4f67_8b6f_c84c071f4751); -} #[repr(C)] #[doc(hidden)] pub struct IMFVideoSampleAllocatorCallback_Vtbl { @@ -21800,9 +19190,8 @@ pub struct IMFVideoSampleAllocatorCallback_Vtbl { pub SetCallback: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pnotify: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetFreeSampleCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plsamples: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFVideoSampleAllocatorEx(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFVideoSampleAllocatorEx, IMFVideoSampleAllocatorEx_Vtbl, 0x545b3a48_3283_4f62_866f_a62d8f598f9f); +::windows_core::imp::interface_hierarchy!(IMFVideoSampleAllocatorEx, ::windows_core::IUnknown, IMFVideoSampleAllocator); impl IMFVideoSampleAllocatorEx { pub unsafe fn SetDirectXManager(&self, pmanager: P0) -> ::windows_core::Result<()> where @@ -21831,43 +19220,27 @@ impl IMFVideoSampleAllocatorEx { (::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::imp::interface_hierarchy!(IMFVideoSampleAllocatorEx, ::windows_core::IUnknown, IMFVideoSampleAllocator); -unsafe impl ::windows_core::Interface for IMFVideoSampleAllocatorEx { - type Vtable = IMFVideoSampleAllocatorEx_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFVideoSampleAllocatorEx { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x545b3a48_3283_4f62_866f_a62d8f598f9f); -} #[repr(C)] #[doc(hidden)] pub struct IMFVideoSampleAllocatorEx_Vtbl { pub base__: IMFVideoSampleAllocator_Vtbl, pub InitializeSampleAllocatorEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cinitialsamples: u32, cmaximumsamples: u32, pattributes: *mut ::core::ffi::c_void, pmediatype: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFVideoSampleAllocatorNotify(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFVideoSampleAllocatorNotify, IMFVideoSampleAllocatorNotify_Vtbl, 0xa792cdbe_c374_4e89_8335_278e7b9956a4); +::windows_core::imp::interface_hierarchy!(IMFVideoSampleAllocatorNotify, ::windows_core::IUnknown); impl IMFVideoSampleAllocatorNotify { pub unsafe fn NotifyRelease(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).NotifyRelease)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IMFVideoSampleAllocatorNotify, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFVideoSampleAllocatorNotify { - type Vtable = IMFVideoSampleAllocatorNotify_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFVideoSampleAllocatorNotify { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa792cdbe_c374_4e89_8335_278e7b9956a4); -} #[repr(C)] #[doc(hidden)] pub struct IMFVideoSampleAllocatorNotify_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub NotifyRelease: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFVideoSampleAllocatorNotifyEx(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFVideoSampleAllocatorNotifyEx, IMFVideoSampleAllocatorNotifyEx_Vtbl, 0x3978aa1a_6d5b_4b7f_a340_90899189ae34); +::windows_core::imp::interface_hierarchy!(IMFVideoSampleAllocatorNotifyEx, ::windows_core::IUnknown, IMFVideoSampleAllocatorNotify); impl IMFVideoSampleAllocatorNotifyEx { pub unsafe fn NotifyRelease(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.NotifyRelease)(::windows_core::Interface::as_raw(self)).ok() @@ -21879,22 +19252,14 @@ impl IMFVideoSampleAllocatorNotifyEx { (::windows_core::Interface::vtable(self).NotifyPrune)(::windows_core::Interface::as_raw(self), __midl__imfvideosampleallocatornotifyex0000.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMFVideoSampleAllocatorNotifyEx, ::windows_core::IUnknown, IMFVideoSampleAllocatorNotify); -unsafe impl ::windows_core::Interface for IMFVideoSampleAllocatorNotifyEx { - type Vtable = IMFVideoSampleAllocatorNotifyEx_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFVideoSampleAllocatorNotifyEx { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3978aa1a_6d5b_4b7f_a340_90899189ae34); -} #[repr(C)] #[doc(hidden)] pub struct IMFVideoSampleAllocatorNotifyEx_Vtbl { pub base__: IMFVideoSampleAllocatorNotify_Vtbl, pub NotifyPrune: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, __midl__imfvideosampleallocatornotifyex0000: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFVirtualCamera(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFVirtualCamera, IMFVirtualCamera_Vtbl, 0x1c08a864_ef6c_4c75_af59_5f2d68da9563); +::windows_core::imp::interface_hierarchy!(IMFVirtualCamera, ::windows_core::IUnknown, IMFAttributes); impl IMFVirtualCamera { #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] @@ -21956,7 +19321,7 @@ impl IMFVirtualCamera { } pub unsafe fn GetUnknown(&self, guidkey: *const ::windows_core::GUID) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.GetUnknown)(::windows_core::Interface::as_raw(self), guidkey, &T::IID, &mut result__).from_abi(result__) @@ -22075,13 +19440,6 @@ impl IMFVirtualCamera { (::windows_core::Interface::vtable(self).Shutdown)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IMFVirtualCamera, ::windows_core::IUnknown, IMFAttributes); -unsafe impl ::windows_core::Interface for IMFVirtualCamera { - type Vtable = IMFVirtualCamera_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFVirtualCamera { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1c08a864_ef6c_4c75_af59_5f2d68da9563); -} #[repr(C)] #[doc(hidden)] pub struct IMFVirtualCamera_Vtbl { @@ -22101,9 +19459,8 @@ pub struct IMFVirtualCamera_Vtbl { pub CreateSyncSemaphore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, kseventset: *const ::windows_core::GUID, kseventid: u32, kseventflags: u32, semaphorehandle: super::super::Foundation::HANDLE, semaphoreadjustment: i32, camerasyncobject: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Shutdown: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFWorkQueueServices(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFWorkQueueServices, IMFWorkQueueServices_Vtbl, 0x35fe1bb8_a3a9_40fe_bbec_eb569c9ccca3); +::windows_core::imp::interface_hierarchy!(IMFWorkQueueServices, ::windows_core::IUnknown); impl IMFWorkQueueServices { pub unsafe fn BeginRegisterTopologyWorkQueuesWithMMCSS(&self, pcallback: P0, pstate: P1) -> ::windows_core::Result<()> where @@ -22174,13 +19531,6 @@ impl IMFWorkQueueServices { (::windows_core::Interface::vtable(self).GetPlatformWorkQueueMMCSSTaskId)(::windows_core::Interface::as_raw(self), dwplatformworkqueueid, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFWorkQueueServices, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMFWorkQueueServices { - type Vtable = IMFWorkQueueServices_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFWorkQueueServices { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x35fe1bb8_a3a9_40fe_bbec_eb569c9ccca3); -} #[repr(C)] #[doc(hidden)] pub struct IMFWorkQueueServices_Vtbl { @@ -22198,9 +19548,8 @@ pub struct IMFWorkQueueServices_Vtbl { pub GetPlaftormWorkQueueMMCSSClass: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwplatformworkqueueid: u32, pwszclass: ::windows_core::PWSTR, pcchclass: *mut u32) -> ::windows_core::HRESULT, pub GetPlatformWorkQueueMMCSSTaskId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwplatformworkqueueid: u32, pdwtaskid: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMFWorkQueueServicesEx(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMFWorkQueueServicesEx, IMFWorkQueueServicesEx_Vtbl, 0x96bf961b_40fe_42f1_ba9d_320238b49700); +::windows_core::imp::interface_hierarchy!(IMFWorkQueueServicesEx, ::windows_core::IUnknown, IMFWorkQueueServices); impl IMFWorkQueueServicesEx { pub unsafe fn BeginRegisterTopologyWorkQueuesWithMMCSS(&self, pcallback: P0, pstate: P1) -> ::windows_core::Result<()> where @@ -22287,13 +19636,6 @@ impl IMFWorkQueueServicesEx { (::windows_core::Interface::vtable(self).GetPlatformWorkQueueMMCSSPriority)(::windows_core::Interface::as_raw(self), dwplatformworkqueueid, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMFWorkQueueServicesEx, ::windows_core::IUnknown, IMFWorkQueueServices); -unsafe impl ::windows_core::Interface for IMFWorkQueueServicesEx { - type Vtable = IMFWorkQueueServicesEx_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMFWorkQueueServicesEx { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x96bf961b_40fe_42f1_ba9d_320238b49700); -} #[repr(C)] #[doc(hidden)] pub struct IMFWorkQueueServicesEx_Vtbl { @@ -22302,9 +19644,8 @@ pub struct IMFWorkQueueServicesEx_Vtbl { pub BeginRegisterPlatformWorkQueueWithMMCSSEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwplatformworkqueue: u32, wszclass: ::windows_core::PCWSTR, dwtaskid: u32, lpriority: i32, pcallback: *mut ::core::ffi::c_void, pstate: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetPlatformWorkQueueMMCSSPriority: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwplatformworkqueueid: u32, plpriority: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOPMVideoOutput(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOPMVideoOutput, IOPMVideoOutput_Vtbl, 0x0a15159d_41c7_4456_93e1_284cd61d4e8d); +::windows_core::imp::interface_hierarchy!(IOPMVideoOutput, ::windows_core::IUnknown); impl IOPMVideoOutput { pub unsafe fn StartInitialization(&self, prnrandomnumber: *mut OPM_RANDOM_NUMBER, ppbcertificate: *mut *mut u8, pulcertificatelength: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).StartInitialization)(::windows_core::Interface::as_raw(self), prnrandomnumber, ppbcertificate, pulcertificatelength).ok() @@ -22322,13 +19663,6 @@ impl IOPMVideoOutput { (::windows_core::Interface::vtable(self).Configure)(::windows_core::Interface::as_raw(self), pparameters, pbadditionalparameters.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), ::core::mem::transmute(pbadditionalparameters.as_deref().map_or(::core::ptr::null(), |slice| slice.as_ptr()))).ok() } } -::windows_core::imp::interface_hierarchy!(IOPMVideoOutput, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOPMVideoOutput { - type Vtable = IOPMVideoOutput_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOPMVideoOutput { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0a15159d_41c7_4456_93e1_284cd61d4e8d); -} #[repr(C)] #[doc(hidden)] pub struct IOPMVideoOutput_Vtbl { @@ -22339,9 +19673,8 @@ pub struct IOPMVideoOutput_Vtbl { pub COPPCompatibleGetInformation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pparameters: *const OPM_COPP_COMPATIBLE_GET_INFO_PARAMETERS, prequestedinformation: *mut OPM_REQUESTED_INFORMATION) -> ::windows_core::HRESULT, pub Configure: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pparameters: *const OPM_CONFIGURE_PARAMETERS, uladditionalparameterssize: u32, pbadditionalparameters: *const u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlayToControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPlayToControl, IPlayToControl_Vtbl, 0x607574eb_f4b6_45c1_b08c_cb715122901d); +::windows_core::imp::interface_hierarchy!(IPlayToControl, ::windows_core::IUnknown); impl IPlayToControl { pub unsafe fn Connect(&self, pfactory: P0) -> ::windows_core::Result<()> where @@ -22353,13 +19686,6 @@ impl IPlayToControl { (::windows_core::Interface::vtable(self).Disconnect)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IPlayToControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPlayToControl { - type Vtable = IPlayToControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPlayToControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x607574eb_f4b6_45c1_b08c_cb715122901d); -} #[repr(C)] #[doc(hidden)] pub struct IPlayToControl_Vtbl { @@ -22367,9 +19693,8 @@ pub struct IPlayToControl_Vtbl { pub Connect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfactory: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Disconnect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlayToControlWithCapabilities(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPlayToControlWithCapabilities, IPlayToControlWithCapabilities_Vtbl, 0xaa9dd80f_c50a_4220_91c1_332287f82a34); +::windows_core::imp::interface_hierarchy!(IPlayToControlWithCapabilities, ::windows_core::IUnknown, IPlayToControl); impl IPlayToControlWithCapabilities { pub unsafe fn Connect(&self, pfactory: P0) -> ::windows_core::Result<()> where @@ -22385,22 +19710,14 @@ impl IPlayToControlWithCapabilities { (::windows_core::Interface::vtable(self).GetCapabilities)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IPlayToControlWithCapabilities, ::windows_core::IUnknown, IPlayToControl); -unsafe impl ::windows_core::Interface for IPlayToControlWithCapabilities { - type Vtable = IPlayToControlWithCapabilities_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPlayToControlWithCapabilities { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaa9dd80f_c50a_4220_91c1_332287f82a34); -} #[repr(C)] #[doc(hidden)] pub struct IPlayToControlWithCapabilities_Vtbl { pub base__: IPlayToControl_Vtbl, pub GetCapabilities: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcapabilities: *mut PLAYTO_SOURCE_CREATEFLAGS) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlayToSourceClassFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPlayToSourceClassFactory, IPlayToSourceClassFactory_Vtbl, 0x842b32a3_9b9b_4d1c_b3f3_49193248a554); +::windows_core::imp::interface_hierarchy!(IPlayToSourceClassFactory, ::windows_core::IUnknown); impl IPlayToSourceClassFactory { pub unsafe fn CreateInstance(&self, dwflags: u32, pcontrol: P0) -> ::windows_core::Result<::windows_core::IInspectable> where @@ -22410,22 +19727,14 @@ impl IPlayToSourceClassFactory { (::windows_core::Interface::vtable(self).CreateInstance)(::windows_core::Interface::as_raw(self), dwflags, pcontrol.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IPlayToSourceClassFactory, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPlayToSourceClassFactory { - type Vtable = IPlayToSourceClassFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPlayToSourceClassFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x842b32a3_9b9b_4d1c_b3f3_49193248a554); -} #[repr(C)] #[doc(hidden)] pub struct IPlayToSourceClassFactory_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwflags: u32, pcontrol: *mut ::core::ffi::c_void, ppsource: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IToc(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IToc, IToc_Vtbl, 0xd6f05441_a919_423b_91a0_89d5b4a8ab77); +::windows_core::imp::interface_hierarchy!(IToc, ::windows_core::IUnknown); impl IToc { pub unsafe fn SetDescriptor(&self, pdescriptor: *mut TOC_DESCRIPTOR) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetDescriptor)(::windows_core::Interface::as_raw(self), pdescriptor).ok() @@ -22471,13 +19780,6 @@ impl IToc { (::windows_core::Interface::vtable(self).RemoveEntryListByIndex)(::windows_core::Interface::as_raw(self), wentrylistindex).ok() } } -::windows_core::imp::interface_hierarchy!(IToc, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IToc { - type Vtable = IToc_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IToc { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd6f05441_a919_423b_91a0_89d5b4a8ab77); -} #[repr(C)] #[doc(hidden)] pub struct IToc_Vtbl { @@ -22494,9 +19796,8 @@ pub struct IToc_Vtbl { pub AddEntryListByIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wentrylistindex: u16, pentrylist: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RemoveEntryListByIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wentrylistindex: u16) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITocCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITocCollection, ITocCollection_Vtbl, 0x23fee831_ae96_42df_b170_25a04847a3ca); +::windows_core::imp::interface_hierarchy!(ITocCollection, ::windows_core::IUnknown); impl ITocCollection { pub unsafe fn GetEntryCount(&self, pdwentrycount: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetEntryCount)(::windows_core::Interface::as_raw(self), pdwentrycount).ok() @@ -22521,13 +19822,6 @@ impl ITocCollection { (::windows_core::Interface::vtable(self).RemoveEntryByIndex)(::windows_core::Interface::as_raw(self), dwentryindex).ok() } } -::windows_core::imp::interface_hierarchy!(ITocCollection, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITocCollection { - type Vtable = ITocCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITocCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x23fee831_ae96_42df_b170_25a04847a3ca); -} #[repr(C)] #[doc(hidden)] pub struct ITocCollection_Vtbl { @@ -22538,9 +19832,8 @@ pub struct ITocCollection_Vtbl { pub AddEntryByIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwentryindex: u32, ptoc: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RemoveEntryByIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwentryindex: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITocEntry(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITocEntry, ITocEntry_Vtbl, 0xf22f5e06_585c_4def_8523_6555cfbc0cb3); +::windows_core::imp::interface_hierarchy!(ITocEntry, ::windows_core::IUnknown); impl ITocEntry { pub unsafe fn SetTitle(&self, pwsztitle: P0) -> ::windows_core::Result<()> where @@ -22570,13 +19863,6 @@ impl ITocEntry { (::windows_core::Interface::vtable(self).GetDescriptionData)(::windows_core::Interface::as_raw(self), pdwdescriptiondatasize, pbtdescriptiondata, pguidtype).ok() } } -::windows_core::imp::interface_hierarchy!(ITocEntry, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITocEntry { - type Vtable = ITocEntry_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITocEntry { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf22f5e06_585c_4def_8523_6555cfbc0cb3); -} #[repr(C)] #[doc(hidden)] pub struct ITocEntry_Vtbl { @@ -22590,9 +19876,8 @@ pub struct ITocEntry_Vtbl { pub SetDescriptionData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwdescriptiondatasize: u32, pbtdescriptiondata: *mut u8, pguidtype: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, pub GetDescriptionData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwdescriptiondatasize: *mut u32, pbtdescriptiondata: *mut u8, pguidtype: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITocEntryList(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITocEntryList, ITocEntryList_Vtbl, 0x3a8cccbd_0efd_43a3_b838_f38a552ba237); +::windows_core::imp::interface_hierarchy!(ITocEntryList, ::windows_core::IUnknown); impl ITocEntryList { pub unsafe fn GetEntryCount(&self, pdwentrycount: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetEntryCount)(::windows_core::Interface::as_raw(self), pdwentrycount).ok() @@ -22617,13 +19902,6 @@ impl ITocEntryList { (::windows_core::Interface::vtable(self).RemoveEntryByIndex)(::windows_core::Interface::as_raw(self), dwentryindex).ok() } } -::windows_core::imp::interface_hierarchy!(ITocEntryList, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITocEntryList { - type Vtable = ITocEntryList_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITocEntryList { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3a8cccbd_0efd_43a3_b838_f38a552ba237); -} #[repr(C)] #[doc(hidden)] pub struct ITocEntryList_Vtbl { @@ -22634,9 +19912,8 @@ pub struct ITocEntryList_Vtbl { pub AddEntryByIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwentryindex: u32, pentry: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RemoveEntryByIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwentryindex: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITocParser(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITocParser, ITocParser_Vtbl, 0xecfb9a55_9298_4f49_887f_0b36206599d2); +::windows_core::imp::interface_hierarchy!(ITocParser, ::windows_core::IUnknown); impl ITocParser { pub unsafe fn Init(&self, pwszfilename: P0) -> ::windows_core::Result<()> where @@ -22671,13 +19948,6 @@ impl ITocParser { (::windows_core::Interface::vtable(self).Commit)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ITocParser, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITocParser { - type Vtable = ITocParser_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITocParser { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xecfb9a55_9298_4f49_887f_0b36206599d2); -} #[repr(C)] #[doc(hidden)] pub struct ITocParser_Vtbl { @@ -22691,30 +19961,21 @@ pub struct ITocParser_Vtbl { pub RemoveTocByType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enumtocpostype: TOC_POS_TYPE, guidtoctype: ::windows_core::GUID) -> ::windows_core::HRESULT, pub Commit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IValidateBinding(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IValidateBinding, IValidateBinding_Vtbl, 0x04a578b2_e778_422a_a805_b3ee54d90bd9); +::windows_core::imp::interface_hierarchy!(IValidateBinding, ::windows_core::IUnknown); impl IValidateBinding { pub unsafe fn GetIdentifier(&self, guidlicensorid: ::windows_core::GUID, pbephemeron: &[u8], ppbblobvalidationid: *mut *mut u8, pcbblobsize: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetIdentifier)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(guidlicensorid), ::core::mem::transmute(pbephemeron.as_ptr()), pbephemeron.len().try_into().unwrap(), ppbblobvalidationid, pcbblobsize).ok() } } -::windows_core::imp::interface_hierarchy!(IValidateBinding, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IValidateBinding { - type Vtable = IValidateBinding_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IValidateBinding { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x04a578b2_e778_422a_a805_b3ee54d90bd9); -} #[repr(C)] #[doc(hidden)] pub struct IValidateBinding_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetIdentifier: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guidlicensorid: ::windows_core::GUID, pbephemeron: *const u8, cbephemeron: u32, ppbblobvalidationid: *mut *mut u8, pcbblobsize: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMCodecLeakyBucket(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMCodecLeakyBucket, IWMCodecLeakyBucket_Vtbl, 0xa81ba647_6227_43b7_b231_c7b15135dd7d); +::windows_core::imp::interface_hierarchy!(IWMCodecLeakyBucket, ::windows_core::IUnknown); impl IWMCodecLeakyBucket { pub unsafe fn SetBufferSizeBits(&self, ulbuffersize: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetBufferSizeBits)(::windows_core::Interface::as_raw(self), ulbuffersize).ok() @@ -22729,13 +19990,6 @@ impl IWMCodecLeakyBucket { (::windows_core::Interface::vtable(self).GetBufferFullnessBits)(::windows_core::Interface::as_raw(self), pulbufferfullness).ok() } } -::windows_core::imp::interface_hierarchy!(IWMCodecLeakyBucket, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMCodecLeakyBucket { - type Vtable = IWMCodecLeakyBucket_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMCodecLeakyBucket { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa81ba647_6227_43b7_b231_c7b15135dd7d); -} #[repr(C)] #[doc(hidden)] pub struct IWMCodecLeakyBucket_Vtbl { @@ -22745,30 +19999,21 @@ pub struct IWMCodecLeakyBucket_Vtbl { pub SetBufferFullnessBits: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulbufferfullness: u32) -> ::windows_core::HRESULT, pub GetBufferFullnessBits: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pulbufferfullness: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMCodecOutputTimestamp(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMCodecOutputTimestamp, IWMCodecOutputTimestamp_Vtbl, 0xb72adf95_7adc_4a72_bc05_577d8ea6bf68); +::windows_core::imp::interface_hierarchy!(IWMCodecOutputTimestamp, ::windows_core::IUnknown); impl IWMCodecOutputTimestamp { pub unsafe fn GetNextOutputTime(&self, prttime: *mut i64) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetNextOutputTime)(::windows_core::Interface::as_raw(self), prttime).ok() } } -::windows_core::imp::interface_hierarchy!(IWMCodecOutputTimestamp, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMCodecOutputTimestamp { - type Vtable = IWMCodecOutputTimestamp_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMCodecOutputTimestamp { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb72adf95_7adc_4a72_bc05_577d8ea6bf68); -} #[repr(C)] #[doc(hidden)] pub struct IWMCodecOutputTimestamp_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetNextOutputTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prttime: *mut i64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMCodecPrivateData(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMCodecPrivateData, IWMCodecPrivateData_Vtbl, 0x73f0be8e_57f7_4f01_aa66_9f57340cfe0e); +::windows_core::imp::interface_hierarchy!(IWMCodecPrivateData, ::windows_core::IUnknown); impl IWMCodecPrivateData { #[doc = "Required features: `\"Win32_Media_DxMediaObjects\"`"] #[cfg(feature = "Win32_Media_DxMediaObjects")] @@ -22779,13 +20024,6 @@ impl IWMCodecPrivateData { (::windows_core::Interface::vtable(self).GetPrivateData)(::windows_core::Interface::as_raw(self), pbdata, pcbdata).ok() } } -::windows_core::imp::interface_hierarchy!(IWMCodecPrivateData, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMCodecPrivateData { - type Vtable = IWMCodecPrivateData_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMCodecPrivateData { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x73f0be8e_57f7_4f01_aa66_9f57340cfe0e); -} #[repr(C)] #[doc(hidden)] pub struct IWMCodecPrivateData_Vtbl { @@ -22796,9 +20034,8 @@ pub struct IWMCodecPrivateData_Vtbl { SetPartialOutputType: usize, pub GetPrivateData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbdata: *mut u8, pcbdata: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMCodecProps(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMCodecProps, IWMCodecProps_Vtbl, 0x2573e11a_f01a_4fdd_a98d_63b8e0ba9589); +::windows_core::imp::interface_hierarchy!(IWMCodecProps, ::windows_core::IUnknown); impl IWMCodecProps { #[doc = "Required features: `\"Win32_Media_DxMediaObjects\"`"] #[cfg(feature = "Win32_Media_DxMediaObjects")] @@ -22815,13 +20052,6 @@ impl IWMCodecProps { (::windows_core::Interface::vtable(self).GetCodecProp)(::windows_core::Interface::as_raw(self), dwformat, pszname.into_param().abi(), ptype, pvalue, pdwsize).ok() } } -::windows_core::imp::interface_hierarchy!(IWMCodecProps, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMCodecProps { - type Vtable = IWMCodecProps_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMCodecProps { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2573e11a_f01a_4fdd_a98d_63b8e0ba9589); -} #[repr(C)] #[doc(hidden)] pub struct IWMCodecProps_Vtbl { @@ -22832,9 +20062,8 @@ pub struct IWMCodecProps_Vtbl { GetFormatProp: usize, pub GetCodecProp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwformat: u32, pszname: ::windows_core::PCWSTR, ptype: *mut WMT_PROP_DATATYPE, pvalue: *mut u8, pdwsize: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMCodecStrings(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMCodecStrings, IWMCodecStrings_Vtbl, 0xa7b2504b_e58a_47fb_958b_cac7165a057d); +::windows_core::imp::interface_hierarchy!(IWMCodecStrings, ::windows_core::IUnknown); impl IWMCodecStrings { #[doc = "Required features: `\"Win32_Media_DxMediaObjects\"`"] #[cfg(feature = "Win32_Media_DxMediaObjects")] @@ -22847,13 +20076,6 @@ impl IWMCodecStrings { (::windows_core::Interface::vtable(self).GetDescription)(::windows_core::Interface::as_raw(self), pmt, szdescription.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), ::core::mem::transmute(szdescription.as_deref().map_or(::core::ptr::null(), |slice| slice.as_ptr())), pcchlength).ok() } } -::windows_core::imp::interface_hierarchy!(IWMCodecStrings, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMCodecStrings { - type Vtable = IWMCodecStrings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMCodecStrings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa7b2504b_e58a_47fb_958b_cac7165a057d); -} #[repr(C)] #[doc(hidden)] pub struct IWMCodecStrings_Vtbl { @@ -22867,9 +20089,8 @@ pub struct IWMCodecStrings_Vtbl { #[cfg(not(feature = "Win32_Media_DxMediaObjects"))] GetDescription: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMColorConvProps(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMColorConvProps, IWMColorConvProps_Vtbl, 0xe6a49e22_c099_421d_aad3_c061fb4ae85b); +::windows_core::imp::interface_hierarchy!(IWMColorConvProps, ::windows_core::IUnknown); impl IWMColorConvProps { pub unsafe fn SetMode(&self, lmode: i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetMode)(::windows_core::Interface::as_raw(self), lmode).ok() @@ -22878,13 +20099,6 @@ impl IWMColorConvProps { (::windows_core::Interface::vtable(self).SetFullCroppingParam)(::windows_core::Interface::as_raw(self), lsrccropleft, lsrccroptop, ldstcropleft, ldstcroptop, lcropwidth, lcropheight).ok() } } -::windows_core::imp::interface_hierarchy!(IWMColorConvProps, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMColorConvProps { - type Vtable = IWMColorConvProps_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMColorConvProps { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe6a49e22_c099_421d_aad3_c061fb4ae85b); -} #[repr(C)] #[doc(hidden)] pub struct IWMColorConvProps_Vtbl { @@ -22892,30 +20106,21 @@ pub struct IWMColorConvProps_Vtbl { pub SetMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lmode: i32) -> ::windows_core::HRESULT, pub SetFullCroppingParam: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lsrccropleft: i32, lsrccroptop: i32, ldstcropleft: i32, ldstcroptop: i32, lcropwidth: i32, lcropheight: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMColorLegalizerProps(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMColorLegalizerProps, IWMColorLegalizerProps_Vtbl, 0x776c93b3_b72d_4508_b6d0_208785f553e7); +::windows_core::imp::interface_hierarchy!(IWMColorLegalizerProps, ::windows_core::IUnknown); impl IWMColorLegalizerProps { pub unsafe fn SetColorLegalizerQuality(&self, lquality: i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetColorLegalizerQuality)(::windows_core::Interface::as_raw(self), lquality).ok() } } -::windows_core::imp::interface_hierarchy!(IWMColorLegalizerProps, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMColorLegalizerProps { - type Vtable = IWMColorLegalizerProps_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMColorLegalizerProps { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x776c93b3_b72d_4508_b6d0_208785f553e7); -} #[repr(C)] #[doc(hidden)] pub struct IWMColorLegalizerProps_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub SetColorLegalizerQuality: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lquality: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMFrameInterpProps(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMFrameInterpProps, IWMFrameInterpProps_Vtbl, 0x4c06bb9b_626c_4614_8329_cc6a21b93fa0); +::windows_core::imp::interface_hierarchy!(IWMFrameInterpProps, ::windows_core::IUnknown); impl IWMFrameInterpProps { pub unsafe fn SetFrameRateIn(&self, lframerate: i32, lscale: i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetFrameRateIn)(::windows_core::Interface::as_raw(self), lframerate, lscale).ok() @@ -22933,13 +20138,6 @@ impl IWMFrameInterpProps { (::windows_core::Interface::vtable(self).SetComplexityLevel)(::windows_core::Interface::as_raw(self), icomplexity).ok() } } -::windows_core::imp::interface_hierarchy!(IWMFrameInterpProps, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMFrameInterpProps { - type Vtable = IWMFrameInterpProps_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMFrameInterpProps { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4c06bb9b_626c_4614_8329_cc6a21b93fa0); -} #[repr(C)] #[doc(hidden)] pub struct IWMFrameInterpProps_Vtbl { @@ -22949,9 +20147,8 @@ pub struct IWMFrameInterpProps_Vtbl { pub SetFrameInterpEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bfienabled: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub SetComplexityLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, icomplexity: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMInterlaceProps(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMInterlaceProps, IWMInterlaceProps_Vtbl, 0x7b12e5d1_bd22_48ea_bc06_98e893221c89); +::windows_core::imp::interface_hierarchy!(IWMInterlaceProps, ::windows_core::IUnknown); impl IWMInterlaceProps { pub unsafe fn SetProcessType(&self, iprocesstype: i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetProcessType)(::windows_core::Interface::as_raw(self), iprocesstype).ok() @@ -22963,13 +20160,6 @@ impl IWMInterlaceProps { (::windows_core::Interface::vtable(self).SetLastFrame)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IWMInterlaceProps, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMInterlaceProps { - type Vtable = IWMInterlaceProps_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMInterlaceProps { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7b12e5d1_bd22_48ea_bc06_98e893221c89); -} #[repr(C)] #[doc(hidden)] pub struct IWMInterlaceProps_Vtbl { @@ -22978,9 +20168,8 @@ pub struct IWMInterlaceProps_Vtbl { pub SetInitInverseTeleCinePattern: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, iinitpattern: i32) -> ::windows_core::HRESULT, pub SetLastFrame: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMResamplerProps(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMResamplerProps, IWMResamplerProps_Vtbl, 0xe7e9984f_f09f_4da4_903f_6e2e0efe56b5); +::windows_core::imp::interface_hierarchy!(IWMResamplerProps, ::windows_core::IUnknown); impl IWMResamplerProps { pub unsafe fn SetHalfFilterLength(&self, lhalffilterlen: i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetHalfFilterLength)(::windows_core::Interface::as_raw(self), lhalffilterlen).ok() @@ -22989,13 +20178,6 @@ impl IWMResamplerProps { (::windows_core::Interface::vtable(self).SetUserChannelMtx)(::windows_core::Interface::as_raw(self), userchannelmtx).ok() } } -::windows_core::imp::interface_hierarchy!(IWMResamplerProps, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMResamplerProps { - type Vtable = IWMResamplerProps_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMResamplerProps { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe7e9984f_f09f_4da4_903f_6e2e0efe56b5); -} #[repr(C)] #[doc(hidden)] pub struct IWMResamplerProps_Vtbl { @@ -23003,9 +20185,8 @@ pub struct IWMResamplerProps_Vtbl { pub SetHalfFilterLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lhalffilterlen: i32) -> ::windows_core::HRESULT, pub SetUserChannelMtx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, userchannelmtx: *mut f32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMResizerProps(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMResizerProps, IWMResizerProps_Vtbl, 0x57665d4c_0414_4faa_905b_10e546f81c33); +::windows_core::imp::interface_hierarchy!(IWMResizerProps, ::windows_core::IUnknown); impl IWMResizerProps { pub unsafe fn SetResizerQuality(&self, lquality: i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetResizerQuality)(::windows_core::Interface::as_raw(self), lquality).ok() @@ -23023,13 +20204,6 @@ impl IWMResizerProps { (::windows_core::Interface::vtable(self).GetFullCropRegion)(::windows_core::Interface::as_raw(self), lcliporixsrc, lcliporiysrc, lclipwidthsrc, lclipheightsrc, lcliporixdst, lcliporiydst, lclipwidthdst, lclipheightdst).ok() } } -::windows_core::imp::interface_hierarchy!(IWMResizerProps, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMResizerProps { - type Vtable = IWMResizerProps_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMResizerProps { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x57665d4c_0414_4faa_905b_10e546f81c33); -} #[repr(C)] #[doc(hidden)] pub struct IWMResizerProps_Vtbl { @@ -23040,9 +20214,8 @@ pub struct IWMResizerProps_Vtbl { pub SetFullCropRegion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lcliporixsrc: i32, lcliporiysrc: i32, lclipwidthsrc: i32, lclipheightsrc: i32, lcliporixdst: i32, lcliporiydst: i32, lclipwidthdst: i32, lclipheightdst: i32) -> ::windows_core::HRESULT, pub GetFullCropRegion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lcliporixsrc: *mut i32, lcliporiysrc: *mut i32, lclipwidthsrc: *mut i32, lclipheightsrc: *mut i32, lcliporixdst: *mut i32, lcliporiydst: *mut i32, lclipwidthdst: *mut i32, lclipheightdst: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMSampleExtensionSupport(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMSampleExtensionSupport, IWMSampleExtensionSupport_Vtbl, 0x9bca9884_0604_4c2a_87da_793ff4d586c3); +::windows_core::imp::interface_hierarchy!(IWMSampleExtensionSupport, ::windows_core::IUnknown); impl IWMSampleExtensionSupport { pub unsafe fn SetUseSampleExtensions(&self, fuseextensions: P0) -> ::windows_core::Result<()> where @@ -23051,43 +20224,27 @@ impl IWMSampleExtensionSupport { (::windows_core::Interface::vtable(self).SetUseSampleExtensions)(::windows_core::Interface::as_raw(self), fuseextensions.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IWMSampleExtensionSupport, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMSampleExtensionSupport { - type Vtable = IWMSampleExtensionSupport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMSampleExtensionSupport { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9bca9884_0604_4c2a_87da_793ff4d586c3); -} #[repr(C)] #[doc(hidden)] pub struct IWMSampleExtensionSupport_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub SetUseSampleExtensions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fuseextensions: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMValidate(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMValidate, IWMValidate_Vtbl, 0xcee3def2_3808_414d_be66_fafd472210bc); +::windows_core::imp::interface_hierarchy!(IWMValidate, ::windows_core::IUnknown); impl IWMValidate { pub unsafe fn SetIdentifier(&self, guidvalidationid: ::windows_core::GUID) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetIdentifier)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(guidvalidationid)).ok() } } -::windows_core::imp::interface_hierarchy!(IWMValidate, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMValidate { - type Vtable = IWMValidate_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMValidate { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcee3def2_3808_414d_be66_fafd472210bc); -} #[repr(C)] #[doc(hidden)] pub struct IWMValidate_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub SetIdentifier: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guidvalidationid: ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMVideoDecoderHurryup(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMVideoDecoderHurryup, IWMVideoDecoderHurryup_Vtbl, 0x352bb3bd_2d4d_4323_9e71_dcdcfbd53ca6); +::windows_core::imp::interface_hierarchy!(IWMVideoDecoderHurryup, ::windows_core::IUnknown); impl IWMVideoDecoderHurryup { pub unsafe fn SetHurryup(&self, lhurryup: i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetHurryup)(::windows_core::Interface::as_raw(self), lhurryup).ok() @@ -23096,13 +20253,6 @@ impl IWMVideoDecoderHurryup { (::windows_core::Interface::vtable(self).GetHurryup)(::windows_core::Interface::as_raw(self), plhurryup).ok() } } -::windows_core::imp::interface_hierarchy!(IWMVideoDecoderHurryup, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMVideoDecoderHurryup { - type Vtable = IWMVideoDecoderHurryup_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMVideoDecoderHurryup { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x352bb3bd_2d4d_4323_9e71_dcdcfbd53ca6); -} #[repr(C)] #[doc(hidden)] pub struct IWMVideoDecoderHurryup_Vtbl { @@ -23110,9 +20260,8 @@ pub struct IWMVideoDecoderHurryup_Vtbl { pub SetHurryup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lhurryup: i32) -> ::windows_core::HRESULT, pub GetHurryup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plhurryup: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMVideoDecoderReconBuffer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMVideoDecoderReconBuffer, IWMVideoDecoderReconBuffer_Vtbl, 0x45bda2ac_88e2_4923_98ba_3949080711a3); +::windows_core::imp::interface_hierarchy!(IWMVideoDecoderReconBuffer, ::windows_core::IUnknown); impl IWMVideoDecoderReconBuffer { pub unsafe fn GetReconstructedVideoFrameSize(&self, pdwsize: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetReconstructedVideoFrameSize)(::windows_core::Interface::as_raw(self), pdwsize).ok() @@ -23134,13 +20283,6 @@ impl IWMVideoDecoderReconBuffer { (::windows_core::Interface::vtable(self).SetReconstructedVideoFrame)(::windows_core::Interface::as_raw(self), pbuf.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IWMVideoDecoderReconBuffer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMVideoDecoderReconBuffer { - type Vtable = IWMVideoDecoderReconBuffer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMVideoDecoderReconBuffer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x45bda2ac_88e2_4923_98ba_3949080711a3); -} #[repr(C)] #[doc(hidden)] pub struct IWMVideoDecoderReconBuffer_Vtbl { @@ -23155,30 +20297,21 @@ pub struct IWMVideoDecoderReconBuffer_Vtbl { #[cfg(not(feature = "Win32_Media_DxMediaObjects"))] SetReconstructedVideoFrame: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMVideoForceKeyFrame(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMVideoForceKeyFrame, IWMVideoForceKeyFrame_Vtbl, 0x9f8496be_5b9a_41b9_a9e8_f21cd80596c2); +::windows_core::imp::interface_hierarchy!(IWMVideoForceKeyFrame, ::windows_core::IUnknown); impl IWMVideoForceKeyFrame { pub unsafe fn SetKeyFrame(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetKeyFrame)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IWMVideoForceKeyFrame, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMVideoForceKeyFrame { - type Vtable = IWMVideoForceKeyFrame_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMVideoForceKeyFrame { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9f8496be_5b9a_41b9_a9e8_f21cd80596c2); -} #[repr(C)] #[doc(hidden)] pub struct IWMVideoForceKeyFrame_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub SetKeyFrame: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct MFASYNCRESULT(::windows_core::IUnknown); +::windows_core::imp::com_interface!(MFASYNCRESULT, MFASYNCRESULT_Vtbl, 0); +::windows_core::imp::interface_hierarchy!(MFASYNCRESULT, ::windows_core::IUnknown, IMFAsyncResult); impl MFASYNCRESULT { pub unsafe fn GetState(&self) -> ::windows_core::Result<::windows_core::IUnknown> { let mut result__ = ::std::mem::zeroed(); @@ -23198,13 +20331,6 @@ impl MFASYNCRESULT { (::windows_core::Interface::vtable(self).base__.GetStateNoAddRef)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(MFASYNCRESULT, ::windows_core::IUnknown, IMFAsyncResult); -unsafe impl ::windows_core::Interface for MFASYNCRESULT { - type Vtable = MFASYNCRESULT_Vtbl; -} -unsafe impl ::windows_core::ComInterface for MFASYNCRESULT { - const IID: ::windows_core::GUID = ::windows_core::GUID::zeroed(); -} #[repr(C)] #[doc(hidden)] pub struct MFASYNCRESULT_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Media/MediaPlayer/impl.rs b/crates/libs/windows/src/Windows/Win32/Media/MediaPlayer/impl.rs index 380f943a92..3cd19b14f1 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/MediaPlayer/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/MediaPlayer/impl.rs @@ -506,7 +506,7 @@ impl IFeed_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -589,7 +589,7 @@ impl IFeed2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -751,7 +751,7 @@ impl IFeedEnclosure_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -824,7 +824,7 @@ impl IFeedEvents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1057,7 +1057,7 @@ impl IFeedFolder_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1186,7 +1186,7 @@ impl IFeedFolderEvents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1412,7 +1412,7 @@ impl IFeedItem_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1439,7 +1439,7 @@ impl IFeedItem2_Vtbl { Self { base__: IFeedItem_Vtbl::new::(), EffectiveId: EffectiveId:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1495,7 +1495,7 @@ impl IFeedsEnum_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1690,7 +1690,7 @@ impl IFeedsManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IWMPAudioRenderConfig_Impl: Sized { @@ -1717,7 +1717,7 @@ impl IWMPAudioRenderConfig_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1761,7 +1761,7 @@ impl IWMPCdrom_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1882,7 +1882,7 @@ impl IWMPCdromBurn_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1932,7 +1932,7 @@ impl IWMPCdromCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IWMPCdromRip_Impl: Sized { @@ -1973,7 +1973,7 @@ impl IWMPCdromRip_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2046,7 +2046,7 @@ impl IWMPClosedCaption_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2098,7 +2098,7 @@ impl IWMPClosedCaption2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IWMPContentContainer_Impl: Sized { @@ -2189,7 +2189,7 @@ impl IWMPContentContainer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMPContentContainerList_Impl: Sized { @@ -2241,7 +2241,7 @@ impl IWMPContentContainerList_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2443,7 +2443,7 @@ impl IWMPContentPartner_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2551,7 +2551,7 @@ impl IWMPContentPartnerCallback_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2686,7 +2686,7 @@ impl IWMPControls_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2707,7 +2707,7 @@ impl IWMPControls2_Vtbl { Self { base__: IWMPControls_Vtbl::new::(), step: step:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2794,7 +2794,7 @@ impl IWMPControls3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IWMPConvert_Impl: Sized { @@ -2821,7 +2821,7 @@ impl IWMPConvert_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3045,7 +3045,7 @@ impl IWMPCore_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3072,7 +3072,7 @@ impl IWMPCore2_Vtbl { Self { base__: IWMPCore_Vtbl::new::(), dvd: dvd:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3115,7 +3115,7 @@ impl IWMPCore3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3174,7 +3174,7 @@ impl IWMPDVD_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3245,7 +3245,7 @@ impl IWMPDownloadCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3318,7 +3318,7 @@ impl IWMPDownloadItem_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3339,7 +3339,7 @@ impl IWMPDownloadItem2_Vtbl { Self { base__: IWMPDownloadItem_Vtbl::new::(), getItemInfo: getItemInfo:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3382,7 +3382,7 @@ impl IWMPDownloadManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] @@ -3476,7 +3476,7 @@ impl IWMPEffects_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_System_Com\"`"] @@ -3535,7 +3535,7 @@ impl IWMPEffects2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3586,7 +3586,7 @@ impl IWMPError_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3638,7 +3638,7 @@ impl IWMPErrorItem_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3659,7 +3659,7 @@ impl IWMPErrorItem2_Vtbl { Self { base__: IWMPErrorItem_Vtbl::new::(), condition: condition:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3991,7 +3991,7 @@ impl IWMPEvents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -4050,7 +4050,7 @@ impl IWMPEvents2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -4144,7 +4144,7 @@ impl IWMPEvents3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -4165,7 +4165,7 @@ impl IWMPEvents4_Vtbl { Self { base__: IWMPEvents3_Vtbl::new::(), DeviceEstimation: DeviceEstimation:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IWMPFolderMonitorServices_Impl: Sized { @@ -4255,7 +4255,7 @@ impl IWMPFolderMonitorServices_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMPGraphCreation_Impl: Sized { @@ -4289,7 +4289,7 @@ impl IWMPGraphCreation_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -4340,7 +4340,7 @@ impl IWMPLibrary_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -4361,7 +4361,7 @@ impl IWMPLibrary2_Vtbl { Self { base__: IWMPLibrary_Vtbl::new::(), getItemInfo: getItemInfo:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IWMPLibraryServices_Impl: Sized { @@ -4394,7 +4394,7 @@ impl IWMPLibraryServices_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMPLibrarySharingServices_Impl: Sized { @@ -4428,7 +4428,7 @@ impl IWMPLibrarySharingServices_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4571,7 +4571,7 @@ impl IWMPMedia_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4598,7 +4598,7 @@ impl IWMPMedia2_Vtbl { Self { base__: IWMPMedia_Vtbl::new::(), error: error:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4629,7 +4629,7 @@ impl IWMPMedia3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4778,7 +4778,7 @@ impl IWMPMediaCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4847,7 +4847,7 @@ impl IWMPMediaCollection2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IWMPMediaPluginRegistrar_Impl: Sized { @@ -4874,7 +4874,7 @@ impl IWMPMediaPluginRegistrar_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4919,7 +4919,7 @@ impl IWMPMetadataPicture_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4950,7 +4950,7 @@ impl IWMPMetadataText_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5163,7 +5163,7 @@ impl IWMPNetwork_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IWMPNodeRealEstate_Impl: Sized { @@ -5225,7 +5225,7 @@ impl IWMPNodeRealEstate_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMPNodeRealEstateHost_Impl: Sized { @@ -5252,7 +5252,7 @@ impl IWMPNodeRealEstateHost_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMPNodeWindowed_Impl: Sized { @@ -5279,7 +5279,7 @@ impl IWMPNodeWindowed_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMPNodeWindowedHost_Impl: Sized { @@ -5299,7 +5299,7 @@ impl IWMPNodeWindowedHost_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMPNodeWindowless_Impl: Sized + IWMPWindowMessageSink_Impl { @@ -5316,7 +5316,7 @@ impl IWMPNodeWindowless_Vtbl { Self { base__: IWMPWindowMessageSink_Vtbl::new::(), OnDraw: OnDraw:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IWMPNodeWindowlessHost_Impl: Sized { @@ -5333,7 +5333,7 @@ impl IWMPNodeWindowlessHost_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), InvalidateRect: InvalidateRect:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5406,7 +5406,7 @@ impl IWMPPlayer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5507,7 +5507,7 @@ impl IWMPPlayer2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5608,7 +5608,7 @@ impl IWMPPlayer3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5736,7 +5736,7 @@ impl IWMPPlayer4_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5781,7 +5781,7 @@ impl IWMPPlayerApplication_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IWMPPlayerServices_Impl: Sized { @@ -5815,7 +5815,7 @@ impl IWMPPlayerServices_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMPPlayerServices2_Impl: Sized + IWMPPlayerServices_Impl { @@ -5835,7 +5835,7 @@ impl IWMPPlayerServices2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5956,7 +5956,7 @@ impl IWMPPlaylist_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5993,7 +5993,7 @@ impl IWMPPlaylistArray_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6083,7 +6083,7 @@ impl IWMPPlaylistCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IWMPPlugin_Impl: Sized { @@ -6138,7 +6138,7 @@ impl IWMPPlugin_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMPPluginEnable_Impl: Sized { @@ -6165,7 +6165,7 @@ impl IWMPPluginEnable_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`, `\"Win32_UI_WindowsAndMessaging\"`"] @@ -6231,7 +6231,7 @@ impl IWMPPluginUI_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6262,7 +6262,7 @@ impl IWMPQuery_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -6307,7 +6307,7 @@ impl IWMPRemoteMediaServices_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMPRenderConfig_Impl: Sized { @@ -6334,7 +6334,7 @@ impl IWMPRenderConfig_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMPServices_Impl: Sized { @@ -6361,7 +6361,7 @@ impl IWMPServices_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6539,7 +6539,7 @@ impl IWMPSettings_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6577,7 +6577,7 @@ impl IWMPSettings2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IWMPSkinManager_Impl: Sized { @@ -6594,7 +6594,7 @@ impl IWMPSkinManager_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), SetVisualStyle: SetVisualStyle:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6625,7 +6625,7 @@ impl IWMPStringCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6670,7 +6670,7 @@ impl IWMPStringCollection2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -6715,7 +6715,7 @@ impl IWMPSubscriptionService_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -6760,7 +6760,7 @@ impl IWMPSubscriptionService2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IWMPSubscriptionServiceCallback_Impl: Sized { @@ -6777,7 +6777,7 @@ impl IWMPSubscriptionServiceCallback_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), onComplete: onComplete:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMPSyncDevice_Impl: Sized { @@ -6902,7 +6902,7 @@ impl IWMPSyncDevice_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMPSyncDevice2_Impl: Sized + IWMPSyncDevice_Impl { @@ -6919,7 +6919,7 @@ impl IWMPSyncDevice2_Vtbl { Self { base__: IWMPSyncDevice_Vtbl::new::(), setItemInfo: setItemInfo:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -6950,7 +6950,7 @@ impl IWMPSyncDevice3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IWMPSyncServices_Impl: Sized { @@ -6983,7 +6983,7 @@ impl IWMPSyncServices_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMPTranscodePolicy_Impl: Sized { @@ -7000,7 +7000,7 @@ impl IWMPTranscodePolicy_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), allowTranscode: allowTranscode:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMPUserEventSink_Impl: Sized { @@ -7017,7 +7017,7 @@ impl IWMPUserEventSink_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), NotifyUserEvent: NotifyUserEvent:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Media_MediaFoundation\"`"] @@ -7038,7 +7038,7 @@ impl IWMPVideoRenderConfig_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), SetpresenterActivate: SetpresenterActivate:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMPWindowMessageSink_Impl: Sized { @@ -7055,7 +7055,7 @@ impl IWMPWindowMessageSink_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnWindowMessage: OnWindowMessage:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -7548,7 +7548,7 @@ impl IXFeed_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -7625,7 +7625,7 @@ impl IXFeed2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IXFeedEnclosure_Impl: Sized { @@ -7777,7 +7777,7 @@ impl IXFeedEnclosure_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IXFeedEvents_Impl: Sized { @@ -7846,7 +7846,7 @@ impl IXFeedEvents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IXFeedFolder_Impl: Sized { @@ -8027,7 +8027,7 @@ impl IXFeedFolder_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IXFeedFolderEvents_Impl: Sized { @@ -8152,7 +8152,7 @@ impl IXFeedFolderEvents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -8366,7 +8366,7 @@ impl IXFeedItem_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -8393,7 +8393,7 @@ impl IXFeedItem2_Vtbl { Self { base__: IXFeedItem_Vtbl::new::(), EffectiveId: EffectiveId:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IXFeedsEnum_Impl: Sized { @@ -8422,7 +8422,7 @@ impl IXFeedsEnum_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Count: Count::, Item: Item:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -8593,7 +8593,7 @@ impl IXFeedsManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -8607,6 +8607,6 @@ impl _WMPOCXEvents_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &<_WMPOCXEvents as ::windows_core::ComInterface>::IID || iid == &::IID + iid == &<_WMPOCXEvents as ::windows_core::Interface>::IID || iid == &::IID } } 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 3bd0a0088f..e84a1ca848 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/MediaPlayer/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/MediaPlayer/mod.rs @@ -1,8 +1,12 @@ -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFeed(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFeed, + IFeed_Vtbl, + 0xf7f915d8_2ede_42bc_98e7_a5d05063a757 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFeed, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFeed { pub unsafe fn Xml(&self, count: i32, sortproperty: FEEDS_XML_SORT_PROPERTY, sortorder: FEEDS_XML_SORT_ORDER, filterflags: FEEDS_XML_FILTER_FLAGS, includeflags: FEEDS_XML_INCLUDE_FLAGS) -> ::windows_core::Result<::windows_core::BSTR> { @@ -194,16 +198,6 @@ impl IFeed { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFeed, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFeed { - type Vtable = IFeed_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFeed { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf7f915d8_2ede_42bc_98e7_a5d05063a757); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFeed_Vtbl { @@ -265,11 +259,15 @@ pub struct IFeed_Vtbl { pub UnreadItemCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, count: *mut i32) -> ::windows_core::HRESULT, pub ItemCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, count: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFeed2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFeed2, + IFeed2_Vtbl, + 0x33f2ea09_1398_4ab9_b6a4_f94b49d0a42e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFeed2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFeed); #[cfg(feature = "Win32_System_Com")] impl IFeed2 { pub unsafe fn Xml(&self, count: i32, sortproperty: FEEDS_XML_SORT_PROPERTY, sortorder: FEEDS_XML_SORT_ORDER, filterflags: FEEDS_XML_FILTER_FLAGS, includeflags: FEEDS_XML_INCLUDE_FLAGS) -> ::windows_core::Result<::windows_core::BSTR> { @@ -489,16 +487,6 @@ impl IFeed2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFeed2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFeed); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFeed2 { - type Vtable = IFeed2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFeed2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x33f2ea09_1398_4ab9_b6a4_f94b49d0a42e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFeed2_Vtbl { @@ -513,11 +501,15 @@ pub struct IFeed2_Vtbl { pub SetCredentials: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, username: ::std::mem::MaybeUninit<::windows_core::BSTR>, password: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub ClearCredentials: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFeedEnclosure(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFeedEnclosure, + IFeedEnclosure_Vtbl, + 0x361c26f7_90a4_4e67_ae09_3a36a546436a +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFeedEnclosure, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFeedEnclosure { pub unsafe fn Url(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -578,16 +570,6 @@ impl IFeedEnclosure { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFeedEnclosure, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFeedEnclosure { - type Vtable = IFeedEnclosure_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFeedEnclosure { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x361c26f7_90a4_4e67_ae09_3a36a546436a); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFeedEnclosure_Vtbl { @@ -609,11 +591,15 @@ pub struct IFeedEnclosure_Vtbl { pub RemoveFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, downloadurl: ::std::mem::MaybeUninit<::windows_core::BSTR>, downloadfilepath: ::std::mem::MaybeUninit<::windows_core::BSTR>, downloadmimetype: ::std::mem::MaybeUninit<::windows_core::BSTR>, enclosurefilename: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFeedEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFeedEvents, + IFeedEvents_Vtbl, + 0xabf35c99_0681_47ea_9a8c_1436a375a99e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFeedEvents, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFeedEvents { pub unsafe fn Error(&self) -> ::windows_core::Result<()> { @@ -665,16 +651,6 @@ impl IFeedEvents { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFeedEvents, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFeedEvents { - type Vtable = IFeedEvents_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFeedEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xabf35c99_0681_47ea_9a8c_1436a375a99e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFeedEvents_Vtbl { @@ -688,11 +664,15 @@ pub struct IFeedEvents_Vtbl { pub FeedDownloadCompleted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::std::mem::MaybeUninit<::windows_core::BSTR>, error: FEEDS_DOWNLOAD_ERROR) -> ::windows_core::HRESULT, pub FeedItemCountChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::std::mem::MaybeUninit<::windows_core::BSTR>, itemcounttype: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFeedFolder(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFeedFolder, + IFeedFolder_Vtbl, + 0x81f04ad1_4194_4d7d_86d6_11813cec163c +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFeedFolder, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFeedFolder { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -807,16 +787,6 @@ impl IFeedFolder { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFeedFolder, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFeedFolder { - type Vtable = IFeedFolder_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFeedFolder { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x81f04ad1_4194_4d7d_86d6_11813cec163c); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFeedFolder_Vtbl { @@ -864,11 +834,15 @@ pub struct IFeedFolder_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetWatcher: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFeedFolderEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFeedFolderEvents, + IFeedFolderEvents_Vtbl, + 0x20a59fa6_a844_4630_9e98_175f70b4d55b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFeedFolderEvents, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFeedFolderEvents { pub unsafe fn Error(&self) -> ::windows_core::Result<()> { @@ -972,16 +946,6 @@ impl IFeedFolderEvents { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFeedFolderEvents, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFeedFolderEvents { - type Vtable = IFeedFolderEvents_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFeedFolderEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x20a59fa6_a844_4630_9e98_175f70b4d55b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFeedFolderEvents_Vtbl { @@ -1003,11 +967,15 @@ pub struct IFeedFolderEvents_Vtbl { pub FeedDownloadCompleted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::std::mem::MaybeUninit<::windows_core::BSTR>, error: FEEDS_DOWNLOAD_ERROR) -> ::windows_core::HRESULT, pub FeedItemCountChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::std::mem::MaybeUninit<::windows_core::BSTR>, itemcounttype: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFeedItem(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFeedItem, + IFeedItem_Vtbl, + 0x0a1e6cad_0a47_4da2_a13d_5baaa5c8bd4f +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFeedItem, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFeedItem { pub unsafe fn Xml(&self, includeflags: FEEDS_XML_INCLUDE_FLAGS) -> ::windows_core::Result<::windows_core::BSTR> { @@ -1085,16 +1053,6 @@ impl IFeedItem { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFeedItem, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFeedItem { - type Vtable = IFeedItem_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFeedItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0a1e6cad_0a47_4da2_a13d_5baaa5c8bd4f); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFeedItem_Vtbl { @@ -1123,11 +1081,15 @@ pub struct IFeedItem_Vtbl { pub LastDownloadTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lastdownload: *mut f64) -> ::windows_core::HRESULT, pub Modified: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, modified: *mut f64) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFeedItem2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFeedItem2, + IFeedItem2_Vtbl, + 0x79ac9ef4_f9c1_4d2b_a50b_a7ffba4dcf37 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFeedItem2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFeedItem); #[cfg(feature = "Win32_System_Com")] impl IFeedItem2 { pub unsafe fn Xml(&self, includeflags: FEEDS_XML_INCLUDE_FLAGS) -> ::windows_core::Result<::windows_core::BSTR> { @@ -1209,27 +1171,21 @@ impl IFeedItem2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFeedItem2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFeedItem); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFeedItem2 { - type Vtable = IFeedItem2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFeedItem2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x79ac9ef4_f9c1_4d2b_a50b_a7ffba4dcf37); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFeedItem2_Vtbl { pub base__: IFeedItem_Vtbl, pub EffectiveId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, effectiveid: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFeedsEnum(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFeedsEnum, + IFeedsEnum_Vtbl, + 0xe3cd0028_2eed_4c60_8fae_a3225309a836 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFeedsEnum, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFeedsEnum { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -1250,16 +1206,6 @@ impl IFeedsEnum { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFeedsEnum, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFeedsEnum { - type Vtable = IFeedsEnum_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFeedsEnum { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe3cd0028_2eed_4c60_8fae_a3225309a836); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFeedsEnum_Vtbl { @@ -1274,11 +1220,15 @@ pub struct IFeedsEnum_Vtbl { #[cfg(not(feature = "Win32_System_Ole"))] _NewEnum: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFeedsManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFeedsManager, + IFeedsManager_Vtbl, + 0xa74029cc_1f1a_4906_88f0_810638d86591 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFeedsManager, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFeedsManager { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1377,16 +1327,6 @@ impl IFeedsManager { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFeedsManager, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFeedsManager { - type Vtable = IFeedsManager_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFeedsManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa74029cc_1f1a_4906_88f0_810638d86591); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFeedsManager_Vtbl { @@ -1420,9 +1360,8 @@ pub struct IFeedsManager_Vtbl { pub Normalize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, feedxmlin: ::std::mem::MaybeUninit<::windows_core::BSTR>, feedxmlout: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub ItemCountLimit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, itemcountlimit: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPAudioRenderConfig(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMPAudioRenderConfig, IWMPAudioRenderConfig_Vtbl, 0xe79c6349_5997_4ce4_917c_22a3391ec564); +::windows_core::imp::interface_hierarchy!(IWMPAudioRenderConfig, ::windows_core::IUnknown); impl IWMPAudioRenderConfig { pub unsafe fn audioOutputDevice(&self, pbstroutputdevice: *mut ::windows_core::BSTR) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).audioOutputDevice)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pbstroutputdevice)).ok() @@ -1434,13 +1373,6 @@ impl IWMPAudioRenderConfig { (::windows_core::Interface::vtable(self).SetaudioOutputDevice)(::windows_core::Interface::as_raw(self), bstroutputdevice.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IWMPAudioRenderConfig, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMPAudioRenderConfig { - type Vtable = IWMPAudioRenderConfig_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMPAudioRenderConfig { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe79c6349_5997_4ce4_917c_22a3391ec564); -} #[repr(C)] #[doc(hidden)] pub struct IWMPAudioRenderConfig_Vtbl { @@ -1448,11 +1380,15 @@ pub struct IWMPAudioRenderConfig_Vtbl { pub audioOutputDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstroutputdevice: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SetaudioOutputDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstroutputdevice: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPCdrom(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWMPCdrom, + IWMPCdrom_Vtbl, + 0xcfab6e98_8730_11d3_b388_00c04f68574b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWMPCdrom, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IWMPCdrom { pub unsafe fn driveSpecifier(&self, pbstrdrive: *mut ::windows_core::BSTR) -> ::windows_core::Result<()> { @@ -1469,16 +1405,6 @@ impl IWMPCdrom { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWMPCdrom, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWMPCdrom { - type Vtable = IWMPCdrom_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWMPCdrom { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcfab6e98_8730_11d3_b388_00c04f68574b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWMPCdrom_Vtbl { @@ -1490,9 +1416,8 @@ pub struct IWMPCdrom_Vtbl { playlist: usize, pub eject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPCdromBurn(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMPCdromBurn, IWMPCdromBurn_Vtbl, 0xbd94dbeb_417f_4928_aa06_087d56ed9b59); +::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 @@ -1554,13 +1479,6 @@ impl IWMPCdromBurn { (::windows_core::Interface::vtable(self).erase)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IWMPCdromBurn, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMPCdromBurn { - type Vtable = IWMPCdromBurn_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMPCdromBurn { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbd94dbeb_417f_4928_aa06_087d56ed9b59); -} #[repr(C)] #[doc(hidden)] pub struct IWMPCdromBurn_Vtbl { @@ -1586,11 +1504,15 @@ pub struct IWMPCdromBurn_Vtbl { pub stopBurn: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub erase: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPCdromCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWMPCdromCollection, + IWMPCdromCollection_Vtbl, + 0xee4c8fe2_34b2_11d3_a3bf_006097c9b344 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWMPCdromCollection, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IWMPCdromCollection { pub unsafe fn count(&self, plcount: *mut i32) -> ::windows_core::Result<()> { @@ -1613,16 +1535,6 @@ impl IWMPCdromCollection { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWMPCdromCollection, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWMPCdromCollection { - type Vtable = IWMPCdromCollection_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWMPCdromCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xee4c8fe2_34b2_11d3_a3bf_006097c9b344); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWMPCdromCollection_Vtbl { @@ -1637,9 +1549,8 @@ pub struct IWMPCdromCollection_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] getByDriveSpecifier: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPCdromRip(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMPCdromRip, IWMPCdromRip_Vtbl, 0x56e2294f_69ed_4629_a869_aea72c0dcc2c); +::windows_core::imp::interface_hierarchy!(IWMPCdromRip, ::windows_core::IUnknown); impl IWMPCdromRip { pub unsafe fn ripState(&self, pwmprs: *mut WMPRipState) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).ripState)(::windows_core::Interface::as_raw(self), pwmprs).ok() @@ -1654,13 +1565,6 @@ impl IWMPCdromRip { (::windows_core::Interface::vtable(self).stopRip)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IWMPCdromRip, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMPCdromRip { - type Vtable = IWMPCdromRip_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMPCdromRip { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x56e2294f_69ed_4629_a869_aea72c0dcc2c); -} #[repr(C)] #[doc(hidden)] pub struct IWMPCdromRip_Vtbl { @@ -1670,11 +1574,15 @@ pub struct IWMPCdromRip_Vtbl { pub startRip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub stopRip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPClosedCaption(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWMPClosedCaption, + IWMPClosedCaption_Vtbl, + 0x4f2df574_c588_11d3_9ed0_00c04fb6e937 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWMPClosedCaption, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IWMPClosedCaption { pub unsafe fn SAMIStyle(&self, pbstrsamistyle: *mut ::windows_core::BSTR) -> ::windows_core::Result<()> { @@ -1715,16 +1623,6 @@ impl IWMPClosedCaption { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWMPClosedCaption, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWMPClosedCaption { - type Vtable = IWMPClosedCaption_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWMPClosedCaption { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4f2df574_c588_11d3_9ed0_00c04fb6e937); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWMPClosedCaption_Vtbl { @@ -1738,11 +1636,15 @@ pub struct IWMPClosedCaption_Vtbl { pub captioningId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcaptioningid: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SetcaptioningId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrcaptioningid: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPClosedCaption2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWMPClosedCaption2, + IWMPClosedCaption2_Vtbl, + 0x350ba78b_6bc8_4113_a5f5_312056934eb6 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWMPClosedCaption2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IWMPClosedCaption); #[cfg(feature = "Win32_System_Com")] impl IWMPClosedCaption2 { pub unsafe fn SAMIStyle(&self, pbstrsamistyle: *mut ::windows_core::BSTR) -> ::windows_core::Result<()> { @@ -1798,16 +1700,6 @@ impl IWMPClosedCaption2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWMPClosedCaption2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IWMPClosedCaption); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWMPClosedCaption2 { - type Vtable = IWMPClosedCaption2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWMPClosedCaption2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x350ba78b_6bc8_4113_a5f5_312056934eb6); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWMPClosedCaption2_Vtbl { @@ -1818,9 +1710,8 @@ pub struct IWMPClosedCaption2_Vtbl { pub SAMIStyleCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plcount: *mut i32) -> ::windows_core::HRESULT, pub getSAMIStyleName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nindex: i32, pbstrname: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPContentContainer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMPContentContainer, IWMPContentContainer_Vtbl, 0xad7f4d9c_1a9f_4ed2_9815_ecc0b58cb616); +::windows_core::imp::interface_hierarchy!(IWMPContentContainer, ::windows_core::IUnknown); impl IWMPContentContainer { pub unsafe fn GetID(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1847,13 +1738,6 @@ impl IWMPContentContainer { (::windows_core::Interface::vtable(self).GetContentID)(::windows_core::Interface::as_raw(self), idxcontent, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWMPContentContainer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMPContentContainer { - type Vtable = IWMPContentContainer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMPContentContainer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xad7f4d9c_1a9f_4ed2_9815_ecc0b58cb616); -} #[repr(C)] #[doc(hidden)] pub struct IWMPContentContainer_Vtbl { @@ -1865,9 +1749,8 @@ pub struct IWMPContentContainer_Vtbl { pub GetContentPrice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, idxcontent: u32, pbstrprice: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub GetContentID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, idxcontent: u32, pcontentid: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPContentContainerList(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMPContentContainerList, IWMPContentContainerList_Vtbl, 0xa9937f78_0802_4af8_8b8d_e3f045bc8ab5); +::windows_core::imp::interface_hierarchy!(IWMPContentContainerList, ::windows_core::IUnknown); impl IWMPContentContainerList { pub unsafe fn GetTransactionType(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1882,13 +1765,6 @@ impl IWMPContentContainerList { (::windows_core::Interface::vtable(self).GetContainer)(::windows_core::Interface::as_raw(self), idxcontainer, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWMPContentContainerList, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMPContentContainerList { - type Vtable = IWMPContentContainerList_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMPContentContainerList { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa9937f78_0802_4af8_8b8d_e3f045bc8ab5); -} #[repr(C)] #[doc(hidden)] pub struct IWMPContentContainerList_Vtbl { @@ -1897,9 +1773,8 @@ pub struct IWMPContentContainerList_Vtbl { pub GetContainerCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pccontainer: *mut u32) -> ::windows_core::HRESULT, pub GetContainer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, idxcontainer: u32, ppcontent: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPContentPartner(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMPContentPartner, IWMPContentPartner_Vtbl, 0x55455073_41b5_4e75_87b8_f13bdb291d08); +::windows_core::imp::interface_hierarchy!(IWMPContentPartner, ::windows_core::IUnknown); impl IWMPContentPartner { pub unsafe fn SetCallback(&self, pcallback: P0) -> ::windows_core::Result<()> where @@ -2068,13 +1943,6 @@ impl IWMPContentPartner { (::windows_core::Interface::vtable(self).VerifyPermission)(::windows_core::Interface::as_raw(self), bstrpermission.into_param().abi(), pcontext).ok() } } -::windows_core::imp::interface_hierarchy!(IWMPContentPartner, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMPContentPartner { - type Vtable = IWMPContentPartner_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMPContentPartner { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x55455073_41b5_4e75_87b8_f13bdb291d08); -} #[repr(C)] #[doc(hidden)] pub struct IWMPContentPartner_Vtbl { @@ -2142,9 +2010,8 @@ pub struct IWMPContentPartner_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] VerifyPermission: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPContentPartnerCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMPContentPartnerCallback, IWMPContentPartnerCallback_Vtbl, 0x9e8f7da2_0695_403c_b697_da10fafaa676); +::windows_core::imp::interface_hierarchy!(IWMPContentPartnerCallback, ::windows_core::IUnknown); impl IWMPContentPartnerCallback { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -2213,13 +2080,6 @@ impl IWMPContentPartnerCallback { (::windows_core::Interface::vtable(self).VerifyPermissionComplete)(::windows_core::Interface::as_raw(self), bstrpermission.into_param().abi(), pcontext, hrpermission).ok() } } -::windows_core::imp::interface_hierarchy!(IWMPContentPartnerCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMPContentPartnerCallback { - type Vtable = IWMPContentPartnerCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMPContentPartnerCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9e8f7da2_0695_403c_b697_da10fafaa676); -} #[repr(C)] #[doc(hidden)] pub struct IWMPContentPartnerCallback_Vtbl { @@ -2244,11 +2104,15 @@ pub struct IWMPContentPartnerCallback_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] VerifyPermissionComplete: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPControls(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWMPControls, + IWMPControls_Vtbl, + 0x74c09e02_f828_11d2_a74b_00a0c905f36e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWMPControls, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IWMPControls { pub unsafe fn get_isAvailable(&self, bstritem: P0, pisavailable: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::Result<()> @@ -2317,16 +2181,6 @@ impl IWMPControls { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWMPControls, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWMPControls { - type Vtable = IWMPControls_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWMPControls { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x74c09e02_f828_11d2_a74b_00a0c905f36e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWMPControls_Vtbl { @@ -2357,11 +2211,15 @@ pub struct IWMPControls_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] playItem: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPControls2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWMPControls2, + IWMPControls2_Vtbl, + 0x6f030d25_0890_480f_9775_1f7e40ab5b8e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWMPControls2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IWMPControls); #[cfg(feature = "Win32_System_Com")] impl IWMPControls2 { pub unsafe fn get_isAvailable(&self, bstritem: P0, pisavailable: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::Result<()> @@ -2433,27 +2291,21 @@ impl IWMPControls2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWMPControls2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IWMPControls); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWMPControls2 { - type Vtable = IWMPControls2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWMPControls2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6f030d25_0890_480f_9775_1f7e40ab5b8e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWMPControls2_Vtbl { pub base__: IWMPControls_Vtbl, pub step: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lstep: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPControls3(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWMPControls3, + IWMPControls3_Vtbl, + 0xa1d1110e_d545_476a_9a78_ac3e4cb1e6bd +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWMPControls3, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IWMPControls, IWMPControls2); #[cfg(feature = "Win32_System_Com")] impl IWMPControls3 { pub unsafe fn get_isAvailable(&self, bstritem: P0, pisavailable: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::Result<()> @@ -2558,16 +2410,6 @@ impl IWMPControls3 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWMPControls3, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IWMPControls, IWMPControls2); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWMPControls3 { - type Vtable = IWMPControls3_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWMPControls3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa1d1110e_d545_476a_9a78_ac3e4cb1e6bd); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWMPControls3_Vtbl { @@ -2583,9 +2425,8 @@ pub struct IWMPControls3_Vtbl { pub currentPositionTimecode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtimecode: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SetcurrentPositionTimecode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtimecode: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPConvert(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMPConvert, IWMPConvert_Vtbl, 0xd683162f_57d4_4108_8373_4a9676d1c2e9); +::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 @@ -2598,13 +2439,6 @@ impl IWMPConvert { (::windows_core::Interface::vtable(self).GetErrorURL)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pbstrurl)).ok() } } -::windows_core::imp::interface_hierarchy!(IWMPConvert, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMPConvert { - type Vtable = IWMPConvert_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMPConvert { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd683162f_57d4_4108_8373_4a9676d1c2e9); -} #[repr(C)] #[doc(hidden)] pub struct IWMPConvert_Vtbl { @@ -2612,11 +2446,15 @@ pub struct IWMPConvert_Vtbl { pub ConvertFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrinputfile: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstrdestinationfolder: ::std::mem::MaybeUninit<::windows_core::BSTR>, pbstroutputfile: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub GetErrorURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrurl: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPCore(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWMPCore, + IWMPCore_Vtbl, + 0xd84cca99_cce2_11d2_9ecc_0000f8085981 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWMPCore, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IWMPCore { pub unsafe fn close(&self) -> ::windows_core::Result<()> { @@ -2730,16 +2568,6 @@ impl IWMPCore { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWMPCore, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWMPCore { - type Vtable = IWMPCore_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWMPCore { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd84cca99_cce2_11d2_9ecc_0000f8085981); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWMPCore_Vtbl { @@ -2802,11 +2630,15 @@ pub struct IWMPCore_Vtbl { error: usize, pub status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrstatus: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPCore2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWMPCore2, + IWMPCore2_Vtbl, + 0xbc17e5b7_7561_4c18_bb90_17d485775659 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWMPCore2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IWMPCore); #[cfg(feature = "Win32_System_Com")] impl IWMPCore2 { pub unsafe fn close(&self) -> ::windows_core::Result<()> { @@ -2926,16 +2758,6 @@ impl IWMPCore2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWMPCore2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IWMPCore); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWMPCore2 { - type Vtable = IWMPCore2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWMPCore2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbc17e5b7_7561_4c18_bb90_17d485775659); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWMPCore2_Vtbl { @@ -2945,11 +2767,15 @@ pub struct IWMPCore2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] dvd: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPCore3(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWMPCore3, + IWMPCore3_Vtbl, + 0x7587c667_628f_499f_88e7_6a6f4e888464 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWMPCore3, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IWMPCore, IWMPCore2); #[cfg(feature = "Win32_System_Com")] impl IWMPCore3 { pub unsafe fn close(&self) -> ::windows_core::Result<()> { @@ -3088,16 +2914,6 @@ impl IWMPCore3 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWMPCore3, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IWMPCore, IWMPCore2); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWMPCore3 { - type Vtable = IWMPCore3_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWMPCore3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7587c667_628f_499f_88e7_6a6f4e888464); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWMPCore3_Vtbl { @@ -3111,11 +2927,15 @@ pub struct IWMPCore3_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] newMedia: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPDVD(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWMPDVD, + IWMPDVD_Vtbl, + 0x8da61686_4668_4a5c_ae5d_803193293dbe +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWMPDVD, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IWMPDVD { pub unsafe fn get_isAvailable(&self, bstritem: P0, pisavailable: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::Result<()> @@ -3141,16 +2961,6 @@ impl IWMPDVD { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWMPDVD, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWMPDVD { - type Vtable = IWMPDVD_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWMPDVD { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8da61686_4668_4a5c_ae5d_803193293dbe); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWMPDVD_Vtbl { @@ -3162,11 +2972,15 @@ pub struct IWMPDVD_Vtbl { pub back: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub resume: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPDownloadCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWMPDownloadCollection, + IWMPDownloadCollection_Vtbl, + 0x0a319c7f_85f9_436c_b88e_82fd88000e1c +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWMPDownloadCollection, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IWMPDownloadCollection { pub unsafe fn id(&self, plid: *mut i32) -> ::windows_core::Result<()> { @@ -3199,16 +3013,6 @@ impl IWMPDownloadCollection { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWMPDownloadCollection, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWMPDownloadCollection { - type Vtable = IWMPDownloadCollection_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWMPDownloadCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0a319c7f_85f9_436c_b88e_82fd88000e1c); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWMPDownloadCollection_Vtbl { @@ -3226,11 +3030,15 @@ pub struct IWMPDownloadCollection_Vtbl { pub removeItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, litem: i32) -> ::windows_core::HRESULT, pub Clear: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPDownloadItem(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWMPDownloadItem, + IWMPDownloadItem_Vtbl, + 0xc9470e8e_3f6b_46a9_a0a9_452815c34297 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWMPDownloadItem, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IWMPDownloadItem { pub unsafe fn sourceURL(&self, pbstrurl: *mut ::windows_core::BSTR) -> ::windows_core::Result<()> { @@ -3259,16 +3067,6 @@ impl IWMPDownloadItem { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWMPDownloadItem, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWMPDownloadItem { - type Vtable = IWMPDownloadItem_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWMPDownloadItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc9470e8e_3f6b_46a9_a0a9_452815c34297); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWMPDownloadItem_Vtbl { @@ -3282,11 +3080,15 @@ pub struct IWMPDownloadItem_Vtbl { pub resume: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub cancel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPDownloadItem2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWMPDownloadItem2, + IWMPDownloadItem2_Vtbl, + 0x9fbb3336_6da3_479d_b8ff_67d46e20a987 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWMPDownloadItem2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IWMPDownloadItem); #[cfg(feature = "Win32_System_Com")] impl IWMPDownloadItem2 { pub unsafe fn sourceURL(&self, pbstrurl: *mut ::windows_core::BSTR) -> ::windows_core::Result<()> { @@ -3321,27 +3123,21 @@ impl IWMPDownloadItem2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWMPDownloadItem2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IWMPDownloadItem); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWMPDownloadItem2 { - type Vtable = IWMPDownloadItem2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWMPDownloadItem2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9fbb3336_6da3_479d_b8ff_67d46e20a987); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWMPDownloadItem2_Vtbl { pub base__: IWMPDownloadItem_Vtbl, pub getItemInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstritemname: ::std::mem::MaybeUninit<::windows_core::BSTR>, pbstrval: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPDownloadManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWMPDownloadManager, + IWMPDownloadManager_Vtbl, + 0xe15e9ad1_8f20_4cc4_9ec7_1a328ca86a0d +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWMPDownloadManager, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IWMPDownloadManager { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3358,16 +3154,6 @@ impl IWMPDownloadManager { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWMPDownloadManager, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWMPDownloadManager { - type Vtable = IWMPDownloadManager_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWMPDownloadManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe15e9ad1_8f20_4cc4_9ec7_1a328ca86a0d); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWMPDownloadManager_Vtbl { @@ -3381,9 +3167,8 @@ pub struct IWMPDownloadManager_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] createDownloadCollection: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPEffects(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMPEffects, IWMPEffects_Vtbl, 0xd3984c13_c3cb_48e2_8be5_5168340b4f35); +::windows_core::imp::interface_hierarchy!(IWMPEffects, ::windows_core::IUnknown); impl IWMPEffects { #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] #[cfg(feature = "Win32_Graphics_Gdi")] @@ -3433,13 +3218,6 @@ impl IWMPEffects { (::windows_core::Interface::vtable(self).RenderFullScreen)(::windows_core::Interface::as_raw(self), plevels).ok() } } -::windows_core::imp::interface_hierarchy!(IWMPEffects, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMPEffects { - type Vtable = IWMPEffects_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMPEffects { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd3984c13_c3cb_48e2_8be5_5168340b4f35); -} #[repr(C)] #[doc(hidden)] pub struct IWMPEffects_Vtbl { @@ -3459,9 +3237,8 @@ pub struct IWMPEffects_Vtbl { pub GoFullscreen: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ffullscreen: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub RenderFullScreen: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plevels: *mut TimedLevel) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPEffects2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMPEffects2, IWMPEffects2_Vtbl, 0x695386ec_aa3c_4618_a5e1_dd9a8b987632); +::windows_core::imp::interface_hierarchy!(IWMPEffects2, ::windows_core::IUnknown, IWMPEffects); impl IWMPEffects2 { #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] #[cfg(feature = "Win32_Graphics_Gdi")] @@ -3549,13 +3326,6 @@ impl IWMPEffects2 { (::windows_core::Interface::vtable(self).RenderWindowed)(::windows_core::Interface::as_raw(self), pdata, frequiredrender.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IWMPEffects2, ::windows_core::IUnknown, IWMPEffects); -unsafe impl ::windows_core::Interface for IWMPEffects2 { - type Vtable = IWMPEffects2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMPEffects2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x695386ec_aa3c_4618_a5e1_dd9a8b987632); -} #[repr(C)] #[doc(hidden)] pub struct IWMPEffects2_Vtbl { @@ -3573,11 +3343,15 @@ pub struct IWMPEffects2_Vtbl { pub OnWindowMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, plresultparam: *mut super::super::Foundation::LRESULT) -> ::windows_core::HRESULT, pub RenderWindowed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdata: *mut TimedLevel, frequiredrender: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPError(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWMPError, + IWMPError_Vtbl, + 0xa12dcf7d_14ab_4c1b_a8cd_63909f06025b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWMPError, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IWMPError { pub unsafe fn clearErrorQueue(&self) -> ::windows_core::Result<()> { @@ -3597,16 +3371,6 @@ impl IWMPError { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWMPError, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWMPError { - type Vtable = IWMPError_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWMPError { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa12dcf7d_14ab_4c1b_a8cd_63909f06025b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWMPError_Vtbl { @@ -3619,11 +3383,15 @@ pub struct IWMPError_Vtbl { get_item: usize, pub webHelp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPErrorItem(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWMPErrorItem, + IWMPErrorItem_Vtbl, + 0x3614c646_3b3b_4de7_a81e_930e3f2127b3 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWMPErrorItem, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IWMPErrorItem { pub unsafe fn errorCode(&self, phr: *mut i32) -> ::windows_core::Result<()> { @@ -3645,16 +3413,6 @@ impl IWMPErrorItem { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWMPErrorItem, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWMPErrorItem { - type Vtable = IWMPErrorItem_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWMPErrorItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3614c646_3b3b_4de7_a81e_930e3f2127b3); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWMPErrorItem_Vtbl { @@ -3668,11 +3426,15 @@ pub struct IWMPErrorItem_Vtbl { pub remedy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plremedy: *mut i32) -> ::windows_core::HRESULT, pub customUrl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcustomurl: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPErrorItem2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWMPErrorItem2, + IWMPErrorItem2_Vtbl, + 0xf75ccec0_c67c_475c_931e_8719870bee7d +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWMPErrorItem2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IWMPErrorItem); #[cfg(feature = "Win32_System_Com")] impl IWMPErrorItem2 { pub unsafe fn errorCode(&self, phr: *mut i32) -> ::windows_core::Result<()> { @@ -3697,25 +3459,14 @@ impl IWMPErrorItem2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWMPErrorItem2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IWMPErrorItem); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWMPErrorItem2 { - type Vtable = IWMPErrorItem2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWMPErrorItem2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf75ccec0_c67c_475c_931e_8719870bee7d); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWMPErrorItem2_Vtbl { pub base__: IWMPErrorItem_Vtbl, pub condition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plcondition: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMPEvents, IWMPEvents_Vtbl, 0x19a6627b_da9e_47c1_bb23_00b5e668236a); +::windows_core::imp::interface_hierarchy!(IWMPEvents, ::windows_core::IUnknown); impl IWMPEvents { pub unsafe fn OpenStateChange(&self, newstate: i32) { (::windows_core::Interface::vtable(self).OpenStateChange)(::windows_core::Interface::as_raw(self), newstate) @@ -3924,13 +3675,6 @@ impl IWMPEvents { (::windows_core::Interface::vtable(self).MouseUp)(::windows_core::Interface::as_raw(self), nbutton, nshiftstate, fx, fy) } } -::windows_core::imp::interface_hierarchy!(IWMPEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMPEvents { - type Vtable = IWMPEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMPEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x19a6627b_da9e_47c1_bb23_00b5e668236a); -} #[repr(C)] #[doc(hidden)] pub struct IWMPEvents_Vtbl { @@ -3996,9 +3740,8 @@ pub struct IWMPEvents_Vtbl { pub MouseMove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nbutton: i16, nshiftstate: i16, fx: i32, fy: i32), pub MouseUp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nbutton: i16, nshiftstate: i16, fx: i32, fy: i32), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPEvents2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMPEvents2, IWMPEvents2_Vtbl, 0x1e7601fa_47ea_4107_9ea9_9004ed9684ff); +::windows_core::imp::interface_hierarchy!(IWMPEvents2, ::windows_core::IUnknown, IWMPEvents); impl IWMPEvents2 { pub unsafe fn OpenStateChange(&self, newstate: i32) { (::windows_core::Interface::vtable(self).base__.OpenStateChange)(::windows_core::Interface::as_raw(self), newstate) @@ -4246,13 +3989,6 @@ impl IWMPEvents2 { (::windows_core::Interface::vtable(self).CreatePartnershipComplete)(::windows_core::Interface::as_raw(self), pdevice.into_param().abi(), hrresult) } } -::windows_core::imp::interface_hierarchy!(IWMPEvents2, ::windows_core::IUnknown, IWMPEvents); -unsafe impl ::windows_core::Interface for IWMPEvents2 { - type Vtable = IWMPEvents2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMPEvents2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1e7601fa_47ea_4107_9ea9_9004ed9684ff); -} #[repr(C)] #[doc(hidden)] pub struct IWMPEvents2_Vtbl { @@ -4267,9 +4003,8 @@ pub struct IWMPEvents2_Vtbl { DeviceSyncError: usize, pub CreatePartnershipComplete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdevice: *mut ::core::ffi::c_void, hrresult: ::windows_core::HRESULT), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPEvents3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMPEvents3, IWMPEvents3_Vtbl, 0x1f504270_a66b_4223_8e96_26a06c63d69f); +::windows_core::imp::interface_hierarchy!(IWMPEvents3, ::windows_core::IUnknown, IWMPEvents, IWMPEvents2); impl IWMPEvents3 { pub unsafe fn OpenStateChange(&self, newstate: i32) { (::windows_core::Interface::vtable(self).base__.base__.OpenStateChange)(::windows_core::Interface::as_raw(self), newstate) @@ -4592,13 +4327,6 @@ impl IWMPEvents3 { (::windows_core::Interface::vtable(self).MediaCollectionMediaRemoved)(::windows_core::Interface::as_raw(self), pdispmedia.into_param().abi()) } } -::windows_core::imp::interface_hierarchy!(IWMPEvents3, ::windows_core::IUnknown, IWMPEvents, IWMPEvents2); -unsafe impl ::windows_core::Interface for IWMPEvents3 { - type Vtable = IWMPEvents3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMPEvents3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1f504270_a66b_4223_8e96_26a06c63d69f); -} #[repr(C)] #[doc(hidden)] pub struct IWMPEvents3_Vtbl { @@ -4630,9 +4358,8 @@ pub struct IWMPEvents3_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] MediaCollectionMediaRemoved: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPEvents4(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMPEvents4, IWMPEvents4_Vtbl, 0x26dabcfa_306b_404d_9a6f_630a8405048d); +::windows_core::imp::interface_hierarchy!(IWMPEvents4, ::windows_core::IUnknown, IWMPEvents, IWMPEvents2, IWMPEvents3); impl IWMPEvents4 { pub unsafe fn OpenStateChange(&self, newstate: i32) { (::windows_core::Interface::vtable(self).base__.base__.base__.OpenStateChange)(::windows_core::Interface::as_raw(self), newstate) @@ -4961,22 +4688,14 @@ impl IWMPEvents4 { (::windows_core::Interface::vtable(self).DeviceEstimation)(::windows_core::Interface::as_raw(self), pdevice.into_param().abi(), hrresult, qwestimatedusedspace, qwestimatedspace) } } -::windows_core::imp::interface_hierarchy!(IWMPEvents4, ::windows_core::IUnknown, IWMPEvents, IWMPEvents2, IWMPEvents3); -unsafe impl ::windows_core::Interface for IWMPEvents4 { - type Vtable = IWMPEvents4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMPEvents4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x26dabcfa_306b_404d_9a6f_630a8405048d); -} #[repr(C)] #[doc(hidden)] pub struct IWMPEvents4_Vtbl { pub base__: IWMPEvents3_Vtbl, pub DeviceEstimation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdevice: *mut ::core::ffi::c_void, hrresult: ::windows_core::HRESULT, qwestimatedusedspace: i64, qwestimatedspace: i64), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPFolderMonitorServices(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMPFolderMonitorServices, IWMPFolderMonitorServices_Vtbl, 0x788c8743_e57f_439d_a468_5bc77f2e59c6); +::windows_core::imp::interface_hierarchy!(IWMPFolderMonitorServices, ::windows_core::IUnknown); impl IWMPFolderMonitorServices { pub unsafe fn count(&self, plcount: *mut i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).count)(::windows_core::Interface::as_raw(self), plcount).ok() @@ -5015,13 +4734,6 @@ impl IWMPFolderMonitorServices { (::windows_core::Interface::vtable(self).stopScan)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IWMPFolderMonitorServices, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMPFolderMonitorServices { - type Vtable = IWMPFolderMonitorServices_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMPFolderMonitorServices { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x788c8743_e57f_439d_a468_5bc77f2e59c6); -} #[repr(C)] #[doc(hidden)] pub struct IWMPFolderMonitorServices_Vtbl { @@ -5038,9 +4750,8 @@ pub struct IWMPFolderMonitorServices_Vtbl { pub startScan: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub stopScan: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPGraphCreation(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMPGraphCreation, IWMPGraphCreation_Vtbl, 0xbfb377e5_c594_4369_a970_de896d5ece74); +::windows_core::imp::interface_hierarchy!(IWMPGraphCreation, ::windows_core::IUnknown); impl IWMPGraphCreation { pub unsafe fn GraphCreationPreRender(&self, pfiltergraph: P0, preserved: P1) -> ::windows_core::Result<()> where @@ -5059,13 +4770,6 @@ impl IWMPGraphCreation { (::windows_core::Interface::vtable(self).GetGraphCreationFlags)(::windows_core::Interface::as_raw(self), pdwflags).ok() } } -::windows_core::imp::interface_hierarchy!(IWMPGraphCreation, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMPGraphCreation { - type Vtable = IWMPGraphCreation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMPGraphCreation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbfb377e5_c594_4369_a970_de896d5ece74); -} #[repr(C)] #[doc(hidden)] pub struct IWMPGraphCreation_Vtbl { @@ -5074,9 +4778,8 @@ pub struct IWMPGraphCreation_Vtbl { pub GraphCreationPostRender: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfiltergraph: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetGraphCreationFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwflags: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPLibrary(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMPLibrary, IWMPLibrary_Vtbl, 0x3df47861_7df1_4c1f_a81b_4c26f0f7a7c6); +::windows_core::imp::interface_hierarchy!(IWMPLibrary, ::windows_core::IUnknown); impl IWMPLibrary { pub unsafe fn name(&self, pbstrname: *mut ::windows_core::BSTR) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).name)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pbstrname)).ok() @@ -5097,13 +4800,6 @@ impl IWMPLibrary { (::windows_core::Interface::vtable(self).isIdentical)(::windows_core::Interface::as_raw(self), piwmplibrary.into_param().abi(), pvbool).ok() } } -::windows_core::imp::interface_hierarchy!(IWMPLibrary, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMPLibrary { - type Vtable = IWMPLibrary_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMPLibrary { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3df47861_7df1_4c1f_a81b_4c26f0f7a7c6); -} #[repr(C)] #[doc(hidden)] pub struct IWMPLibrary_Vtbl { @@ -5116,9 +4812,8 @@ pub struct IWMPLibrary_Vtbl { mediaCollection: usize, pub isIdentical: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, piwmplibrary: *mut ::core::ffi::c_void, pvbool: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPLibrary2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMPLibrary2, IWMPLibrary2_Vtbl, 0xdd578a4e_79b1_426c_bf8f_3add9072500b); +::windows_core::imp::interface_hierarchy!(IWMPLibrary2, ::windows_core::IUnknown, IWMPLibrary); impl IWMPLibrary2 { pub unsafe fn name(&self, pbstrname: *mut ::windows_core::BSTR) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.name)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pbstrname)).ok() @@ -5145,22 +4840,14 @@ impl IWMPLibrary2 { (::windows_core::Interface::vtable(self).getItemInfo)(::windows_core::Interface::as_raw(self), bstritemname.into_param().abi(), ::core::mem::transmute(pbstrval)).ok() } } -::windows_core::imp::interface_hierarchy!(IWMPLibrary2, ::windows_core::IUnknown, IWMPLibrary); -unsafe impl ::windows_core::Interface for IWMPLibrary2 { - type Vtable = IWMPLibrary2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMPLibrary2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdd578a4e_79b1_426c_bf8f_3add9072500b); -} #[repr(C)] #[doc(hidden)] pub struct IWMPLibrary2_Vtbl { pub base__: IWMPLibrary_Vtbl, pub getItemInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstritemname: ::std::mem::MaybeUninit<::windows_core::BSTR>, pbstrval: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPLibraryServices(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMPLibraryServices, IWMPLibraryServices_Vtbl, 0x39c2f8d5_1cf2_4d5e_ae09_d73492cf9eaa); +::windows_core::imp::interface_hierarchy!(IWMPLibraryServices, ::windows_core::IUnknown); impl IWMPLibraryServices { pub unsafe fn getCountByType(&self, wmplt: WMPLibraryType, plcount: *mut i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).getCountByType)(::windows_core::Interface::as_raw(self), wmplt, plcount).ok() @@ -5170,13 +4857,6 @@ impl IWMPLibraryServices { (::windows_core::Interface::vtable(self).getLibraryByType)(::windows_core::Interface::as_raw(self), wmplt, lindex, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWMPLibraryServices, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMPLibraryServices { - type Vtable = IWMPLibraryServices_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMPLibraryServices { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x39c2f8d5_1cf2_4d5e_ae09_d73492cf9eaa); -} #[repr(C)] #[doc(hidden)] pub struct IWMPLibraryServices_Vtbl { @@ -5184,9 +4864,8 @@ pub struct IWMPLibraryServices_Vtbl { pub getCountByType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wmplt: WMPLibraryType, plcount: *mut i32) -> ::windows_core::HRESULT, pub getLibraryByType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wmplt: WMPLibraryType, lindex: i32, ppiwmplibrary: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPLibrarySharingServices(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMPLibrarySharingServices, IWMPLibrarySharingServices_Vtbl, 0x82cba86b_9f04_474b_a365_d6dd1466e541); +::windows_core::imp::interface_hierarchy!(IWMPLibrarySharingServices, ::windows_core::IUnknown); impl IWMPLibrarySharingServices { pub unsafe fn isLibraryShared(&self, pvbshared: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).isLibraryShared)(::windows_core::Interface::as_raw(self), pvbshared).ok() @@ -5198,13 +4877,6 @@ impl IWMPLibrarySharingServices { (::windows_core::Interface::vtable(self).showLibrarySharing)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IWMPLibrarySharingServices, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMPLibrarySharingServices { - type Vtable = IWMPLibrarySharingServices_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMPLibrarySharingServices { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x82cba86b_9f04_474b_a365_d6dd1466e541); -} #[repr(C)] #[doc(hidden)] pub struct IWMPLibrarySharingServices_Vtbl { @@ -5213,11 +4885,15 @@ pub struct IWMPLibrarySharingServices_Vtbl { pub isLibrarySharingEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvbenabled: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub showLibrarySharing: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPMedia(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWMPMedia, + IWMPMedia_Vtbl, + 0x94d55e95_3fac_11d3_b155_00c04f79faa6 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWMPMedia, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IWMPMedia { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -5299,16 +4975,6 @@ impl IWMPMedia { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWMPMedia, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWMPMedia { - type Vtable = IWMPMedia_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWMPMedia { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x94d55e95_3fac_11d3_b155_00c04f79faa6); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWMPMedia_Vtbl { @@ -5338,11 +5004,15 @@ pub struct IWMPMedia_Vtbl { isMemberOf: usize, pub isReadOnlyItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstritemname: ::std::mem::MaybeUninit<::windows_core::BSTR>, pvarfisreadonly: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPMedia2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWMPMedia2, + IWMPMedia2_Vtbl, + 0xab7c88bb_143e_4ea4_acc3_e4350b2106c3 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWMPMedia2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IWMPMedia); #[cfg(feature = "Win32_System_Com")] impl IWMPMedia2 { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -5430,16 +5100,6 @@ impl IWMPMedia2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWMPMedia2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IWMPMedia); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWMPMedia2 { - type Vtable = IWMPMedia2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWMPMedia2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xab7c88bb_143e_4ea4_acc3_e4350b2106c3); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWMPMedia2_Vtbl { @@ -5449,11 +5109,15 @@ pub struct IWMPMedia2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] error: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPMedia3(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWMPMedia3, + IWMPMedia3_Vtbl, + 0xf118efc7_f03a_4fb4_99c9_1c02a5c1065b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWMPMedia3, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IWMPMedia, IWMPMedia2); #[cfg(feature = "Win32_System_Com")] impl IWMPMedia3 { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -5557,16 +5221,6 @@ impl IWMPMedia3 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWMPMedia3, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IWMPMedia, IWMPMedia2); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWMPMedia3 { - type Vtable = IWMPMedia3_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWMPMedia3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf118efc7_f03a_4fb4_99c9_1c02a5c1065b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWMPMedia3_Vtbl { @@ -5577,11 +5231,15 @@ pub struct IWMPMedia3_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] getItemInfoByType: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPMediaCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWMPMediaCollection, + IWMPMediaCollection_Vtbl, + 0x8363bc22_b4b4_4b19_989d_1cd765749dd1 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWMPMediaCollection, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IWMPMediaCollection { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -5689,16 +5347,6 @@ impl IWMPMediaCollection { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWMPMediaCollection, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWMPMediaCollection { - type Vtable = IWMPMediaCollection_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWMPMediaCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8363bc22_b4b4_4b19_989d_1cd765749dd1); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWMPMediaCollection_Vtbl { @@ -5749,11 +5397,15 @@ pub struct IWMPMediaCollection_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] isDeleted: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPMediaCollection2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWMPMediaCollection2, + IWMPMediaCollection2_Vtbl, + 0x8ba957f5_fd8c_4791_b82d_f840401ee474 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWMPMediaCollection2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IWMPMediaCollection); #[cfg(feature = "Win32_System_Com")] impl IWMPMediaCollection2 { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -5903,16 +5555,6 @@ impl IWMPMediaCollection2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWMPMediaCollection2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IWMPMediaCollection); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWMPMediaCollection2 { - type Vtable = IWMPMediaCollection2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWMPMediaCollection2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8ba957f5_fd8c_4791_b82d_f840401ee474); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWMPMediaCollection2_Vtbl { @@ -5934,9 +5576,8 @@ pub struct IWMPMediaCollection2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] getByAttributeAndMediaType: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPMediaPluginRegistrar(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMPMediaPluginRegistrar, IWMPMediaPluginRegistrar_Vtbl, 0x68e27045_05bd_40b2_9720_23088c78e390); +::windows_core::imp::interface_hierarchy!(IWMPMediaPluginRegistrar, ::windows_core::IUnknown); 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 @@ -5950,13 +5591,6 @@ impl IWMPMediaPluginRegistrar { (::windows_core::Interface::vtable(self).WMPUnRegisterPlayerPlugin)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(guidplugintype), ::core::mem::transmute(clsid)).ok() } } -::windows_core::imp::interface_hierarchy!(IWMPMediaPluginRegistrar, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMPMediaPluginRegistrar { - type Vtable = IWMPMediaPluginRegistrar_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMPMediaPluginRegistrar { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x68e27045_05bd_40b2_9720_23088c78e390); -} #[repr(C)] #[doc(hidden)] pub struct IWMPMediaPluginRegistrar_Vtbl { @@ -5964,11 +5598,15 @@ pub struct IWMPMediaPluginRegistrar_Vtbl { pub WMPRegisterPlayerPlugin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwszfriendlyname: ::windows_core::PCWSTR, pwszdescription: ::windows_core::PCWSTR, pwszuninstallstring: ::windows_core::PCWSTR, dwpriority: u32, guidplugintype: ::windows_core::GUID, clsid: ::windows_core::GUID, cmediatypes: u32, pmediatypes: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub WMPUnRegisterPlayerPlugin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guidplugintype: ::windows_core::GUID, clsid: ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPMetadataPicture(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWMPMetadataPicture, + IWMPMetadataPicture_Vtbl, + 0x5c29bbe0_f87d_4c45_aa28_a70f0230ffa9 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWMPMetadataPicture, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IWMPMetadataPicture { pub unsafe fn mimeType(&self, pbstrmimetype: *mut ::windows_core::BSTR) -> ::windows_core::Result<()> { @@ -5985,16 +5623,6 @@ impl IWMPMetadataPicture { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWMPMetadataPicture, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWMPMetadataPicture { - type Vtable = IWMPMetadataPicture_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWMPMetadataPicture { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5c29bbe0_f87d_4c45_aa28_a70f0230ffa9); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWMPMetadataPicture_Vtbl { @@ -6004,11 +5632,15 @@ pub struct IWMPMetadataPicture_Vtbl { pub description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdescription: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub URL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrurl: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPMetadataText(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWMPMetadataText, + IWMPMetadataText_Vtbl, + 0x769a72db_13d2_45e2_9c48_53ca9d5b7450 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWMPMetadataText, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IWMPMetadataText { pub unsafe fn description(&self, pbstrdescription: *mut ::windows_core::BSTR) -> ::windows_core::Result<()> { @@ -6019,16 +5651,6 @@ impl IWMPMetadataText { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWMPMetadataText, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWMPMetadataText { - type Vtable = IWMPMetadataText_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWMPMetadataText { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x769a72db_13d2_45e2_9c48_53ca9d5b7450); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWMPMetadataText_Vtbl { @@ -6036,11 +5658,15 @@ pub struct IWMPMetadataText_Vtbl { pub description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdescription: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub text: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtext: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPNetwork(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWMPNetwork, + IWMPNetwork_Vtbl, + 0xec21b779_edef_462d_bba4_ad9dde2b29a7 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWMPNetwork, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IWMPNetwork { pub unsafe fn bandWidth(&self, plbandwidth: *mut i32) -> ::windows_core::Result<()> { @@ -6162,16 +5788,6 @@ impl IWMPNetwork { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWMPNetwork, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWMPNetwork { - type Vtable = IWMPNetwork_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWMPNetwork { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xec21b779_edef_462d_bba4_ad9dde2b29a7); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWMPNetwork_Vtbl { @@ -6205,9 +5821,8 @@ pub struct IWMPNetwork_Vtbl { pub encodedFrameRate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plframerate: *mut i32) -> ::windows_core::HRESULT, pub framesSkipped: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plframes: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPNodeRealEstate(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMPNodeRealEstate, IWMPNodeRealEstate_Vtbl, 0x42751198_5a50_4460_bcb4_709f8bdc8e59); +::windows_core::imp::interface_hierarchy!(IWMPNodeRealEstate, ::windows_core::IUnknown); impl IWMPNodeRealEstate { pub unsafe fn GetDesiredSize(&self, psize: *mut super::super::Foundation::SIZE) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetDesiredSize)(::windows_core::Interface::as_raw(self), psize).ok() @@ -6237,13 +5852,6 @@ impl IWMPNodeRealEstate { (::windows_core::Interface::vtable(self).GetFullScreen)(::windows_core::Interface::as_raw(self), pffullscreen).ok() } } -::windows_core::imp::interface_hierarchy!(IWMPNodeRealEstate, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMPNodeRealEstate { - type Vtable = IWMPNodeRealEstate_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMPNodeRealEstate { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x42751198_5a50_4460_bcb4_709f8bdc8e59); -} #[repr(C)] #[doc(hidden)] pub struct IWMPNodeRealEstate_Vtbl { @@ -6256,9 +5864,8 @@ pub struct IWMPNodeRealEstate_Vtbl { pub SetFullScreen: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ffullscreen: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub GetFullScreen: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pffullscreen: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPNodeRealEstateHost(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMPNodeRealEstateHost, IWMPNodeRealEstateHost_Vtbl, 0x1491087d_2c6b_44c8_b019_b3c929d2ada9); +::windows_core::imp::interface_hierarchy!(IWMPNodeRealEstateHost, ::windows_core::IUnknown); impl IWMPNodeRealEstateHost { pub unsafe fn OnDesiredSizeChange(&self, psize: *mut super::super::Foundation::SIZE) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnDesiredSizeChange)(::windows_core::Interface::as_raw(self), psize).ok() @@ -6270,13 +5877,6 @@ impl IWMPNodeRealEstateHost { (::windows_core::Interface::vtable(self).OnFullScreenTransition)(::windows_core::Interface::as_raw(self), ffullscreen.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IWMPNodeRealEstateHost, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMPNodeRealEstateHost { - type Vtable = IWMPNodeRealEstateHost_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMPNodeRealEstateHost { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1491087d_2c6b_44c8_b019_b3c929d2ada9); -} #[repr(C)] #[doc(hidden)] pub struct IWMPNodeRealEstateHost_Vtbl { @@ -6284,9 +5884,8 @@ pub struct IWMPNodeRealEstateHost_Vtbl { pub OnDesiredSizeChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psize: *mut super::super::Foundation::SIZE) -> ::windows_core::HRESULT, pub OnFullScreenTransition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ffullscreen: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPNodeWindowed(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMPNodeWindowed, IWMPNodeWindowed_Vtbl, 0x96740bfa_c56a_45d1_a3a4_762914d4ade9); +::windows_core::imp::interface_hierarchy!(IWMPNodeWindowed, ::windows_core::IUnknown); impl IWMPNodeWindowed { pub unsafe fn SetOwnerWindow(&self, hwnd: isize) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetOwnerWindow)(::windows_core::Interface::as_raw(self), hwnd).ok() @@ -6295,13 +5894,6 @@ impl IWMPNodeWindowed { (::windows_core::Interface::vtable(self).GetOwnerWindow)(::windows_core::Interface::as_raw(self), phwnd).ok() } } -::windows_core::imp::interface_hierarchy!(IWMPNodeWindowed, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMPNodeWindowed { - type Vtable = IWMPNodeWindowed_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMPNodeWindowed { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x96740bfa_c56a_45d1_a3a4_762914d4ade9); -} #[repr(C)] #[doc(hidden)] pub struct IWMPNodeWindowed_Vtbl { @@ -6309,9 +5901,8 @@ pub struct IWMPNodeWindowed_Vtbl { pub SetOwnerWindow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwnd: isize) -> ::windows_core::HRESULT, pub GetOwnerWindow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phwnd: *mut isize) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPNodeWindowedHost(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMPNodeWindowedHost, IWMPNodeWindowedHost_Vtbl, 0xa300415a_54aa_4081_adbf_3b13610d8958); +::windows_core::imp::interface_hierarchy!(IWMPNodeWindowedHost, ::windows_core::IUnknown); 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 @@ -6321,22 +5912,14 @@ impl IWMPNodeWindowedHost { (::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::imp::interface_hierarchy!(IWMPNodeWindowedHost, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMPNodeWindowedHost { - type Vtable = IWMPNodeWindowedHost_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMPNodeWindowedHost { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa300415a_54aa_4081_adbf_3b13610d8958); -} #[repr(C)] #[doc(hidden)] pub struct IWMPNodeWindowedHost_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnWindowMessageFromRenderer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, plret: *mut super::super::Foundation::LRESULT, pfhandled: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPNodeWindowless(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMPNodeWindowless, IWMPNodeWindowless_Vtbl, 0x9b9199ad_780c_4eda_b816_261eba5d1575); +::windows_core::imp::interface_hierarchy!(IWMPNodeWindowless, ::windows_core::IUnknown, IWMPWindowMessageSink); 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 @@ -6349,22 +5932,14 @@ impl IWMPNodeWindowless { (::windows_core::Interface::vtable(self).OnDraw)(::windows_core::Interface::as_raw(self), hdc, prcdraw).ok() } } -::windows_core::imp::interface_hierarchy!(IWMPNodeWindowless, ::windows_core::IUnknown, IWMPWindowMessageSink); -unsafe impl ::windows_core::Interface for IWMPNodeWindowless { - type Vtable = IWMPNodeWindowless_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMPNodeWindowless { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9b9199ad_780c_4eda_b816_261eba5d1575); -} #[repr(C)] #[doc(hidden)] pub struct IWMPNodeWindowless_Vtbl { pub base__: IWMPWindowMessageSink_Vtbl, pub OnDraw: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hdc: isize, prcdraw: *const super::super::Foundation::RECT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPNodeWindowlessHost(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMPNodeWindowlessHost, IWMPNodeWindowlessHost_Vtbl, 0xbe7017c6_ce34_4901_8106_770381aa6e3e); +::windows_core::imp::interface_hierarchy!(IWMPNodeWindowlessHost, ::windows_core::IUnknown); impl IWMPNodeWindowlessHost { pub unsafe fn InvalidateRect(&self, prc: *const super::super::Foundation::RECT, ferase: P0) -> ::windows_core::Result<()> where @@ -6373,24 +5948,21 @@ impl IWMPNodeWindowlessHost { (::windows_core::Interface::vtable(self).InvalidateRect)(::windows_core::Interface::as_raw(self), prc, ferase.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IWMPNodeWindowlessHost, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMPNodeWindowlessHost { - type Vtable = IWMPNodeWindowlessHost_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMPNodeWindowlessHost { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbe7017c6_ce34_4901_8106_770381aa6e3e); -} #[repr(C)] #[doc(hidden)] pub struct IWMPNodeWindowlessHost_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub InvalidateRect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prc: *const super::super::Foundation::RECT, ferase: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPPlayer(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWMPPlayer, + IWMPPlayer_Vtbl, + 0x6bf52a4f_394a_11d3_b153_00c04f79faa6 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWMPPlayer, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IWMPCore); #[cfg(feature = "Win32_System_Com")] impl IWMPPlayer { pub unsafe fn close(&self) -> ::windows_core::Result<()> { @@ -6540,16 +6112,6 @@ impl IWMPPlayer { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWMPPlayer, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IWMPCore); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWMPPlayer { - type Vtable = IWMPPlayer_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWMPPlayer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6bf52a4f_394a_11d3_b153_00c04f79faa6); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWMPPlayer_Vtbl { @@ -6563,11 +6125,15 @@ pub struct IWMPPlayer_Vtbl { pub SetuiMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrmode: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub uiMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrmode: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPPlayer2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWMPPlayer2, + IWMPPlayer2_Vtbl, + 0x0e6b01d1_d407_4c85_bf5f_1c01f6150280 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWMPPlayer2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IWMPCore); #[cfg(feature = "Win32_System_Com")] impl IWMPPlayer2 { pub unsafe fn close(&self) -> ::windows_core::Result<()> { @@ -6735,16 +6301,6 @@ impl IWMPPlayer2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWMPPlayer2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IWMPCore); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWMPPlayer2 { - type Vtable = IWMPPlayer2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWMPPlayer2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0e6b01d1_d407_4c85_bf5f_1c01f6150280); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWMPPlayer2_Vtbl { @@ -6762,11 +6318,15 @@ pub struct IWMPPlayer2_Vtbl { pub windowlessVideo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbenabled: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub SetwindowlessVideo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, benabled: super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPPlayer3(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWMPPlayer3, + IWMPPlayer3_Vtbl, + 0x54062b68_052a_4c25_a39f_8b63346511d4 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWMPPlayer3, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IWMPCore, IWMPCore2); #[cfg(feature = "Win32_System_Com")] impl IWMPPlayer3 { pub unsafe fn close(&self) -> ::windows_core::Result<()> { @@ -6940,16 +6500,6 @@ impl IWMPPlayer3 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWMPPlayer3, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IWMPCore, IWMPCore2); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWMPPlayer3 { - type Vtable = IWMPPlayer3_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWMPPlayer3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x54062b68_052a_4c25_a39f_8b63346511d4); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWMPPlayer3_Vtbl { @@ -6967,11 +6517,15 @@ pub struct IWMPPlayer3_Vtbl { pub windowlessVideo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbenabled: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub SetwindowlessVideo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, benabled: super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPPlayer4(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWMPPlayer4, + IWMPPlayer4_Vtbl, + 0x6c497d62_8919_413c_82db_e935fb3ec584 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWMPPlayer4, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IWMPCore, IWMPCore2, IWMPCore3); #[cfg(feature = "Win32_System_Com")] impl IWMPPlayer4 { pub unsafe fn close(&self) -> ::windows_core::Result<()> { @@ -7179,16 +6733,6 @@ impl IWMPPlayer4 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWMPPlayer4, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IWMPCore, IWMPCore2, IWMPCore3); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWMPPlayer4 { - type Vtable = IWMPPlayer4_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWMPPlayer4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6c497d62_8919_413c_82db_e935fb3ec584); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWMPPlayer4_Vtbl { @@ -7212,11 +6756,15 @@ pub struct IWMPPlayer4_Vtbl { playerApplication: usize, pub openPlayer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrurl: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPPlayerApplication(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWMPPlayerApplication, + IWMPPlayerApplication_Vtbl, + 0x40897764_ceab_47be_ad4a_8e28537f9bbf +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWMPPlayerApplication, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IWMPPlayerApplication { pub unsafe fn switchToPlayerApplication(&self) -> ::windows_core::Result<()> { @@ -7233,16 +6781,6 @@ impl IWMPPlayerApplication { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWMPPlayerApplication, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWMPPlayerApplication { - type Vtable = IWMPPlayerApplication_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWMPPlayerApplication { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x40897764_ceab_47be_ad4a_8e28537f9bbf); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWMPPlayerApplication_Vtbl { @@ -7252,9 +6790,8 @@ pub struct IWMPPlayerApplication_Vtbl { pub playerDocked: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbplayerdocked: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub hasDisplay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbhasdisplay: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPPlayerServices(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMPPlayerServices, IWMPPlayerServices_Vtbl, 0x1d01fbdb_ade2_4c8d_9842_c190b95c3306); +::windows_core::imp::interface_hierarchy!(IWMPPlayerServices, ::windows_core::IUnknown); impl IWMPPlayerServices { pub unsafe fn activateUIPlugin(&self, bstrplugin: P0) -> ::windows_core::Result<()> where @@ -7277,13 +6814,6 @@ impl IWMPPlayerServices { (::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::imp::interface_hierarchy!(IWMPPlayerServices, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMPPlayerServices { - type Vtable = IWMPPlayerServices_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMPPlayerServices { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1d01fbdb_ade2_4c8d_9842_c190b95c3306); -} #[repr(C)] #[doc(hidden)] pub struct IWMPPlayerServices_Vtbl { @@ -7292,9 +6822,8 @@ pub struct IWMPPlayerServices_Vtbl { pub setTaskPane: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtaskpane: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub setTaskPaneURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtaskpane: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstrurl: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstrfriendlyname: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPPlayerServices2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMPPlayerServices2, IWMPPlayerServices2_Vtbl, 0x1bb1592f_f040_418a_9f71_17c7512b4d70); +::windows_core::imp::interface_hierarchy!(IWMPPlayerServices2, ::windows_core::IUnknown, IWMPPlayerServices); impl IWMPPlayerServices2 { pub unsafe fn activateUIPlugin(&self, bstrplugin: P0) -> ::windows_core::Result<()> where @@ -7323,24 +6852,21 @@ impl IWMPPlayerServices2 { (::windows_core::Interface::vtable(self).setBackgroundProcessingPriority)(::windows_core::Interface::as_raw(self), bstrpriority.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IWMPPlayerServices2, ::windows_core::IUnknown, IWMPPlayerServices); -unsafe impl ::windows_core::Interface for IWMPPlayerServices2 { - type Vtable = IWMPPlayerServices2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMPPlayerServices2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1bb1592f_f040_418a_9f71_17c7512b4d70); -} #[repr(C)] #[doc(hidden)] pub struct IWMPPlayerServices2_Vtbl { pub base__: IWMPPlayerServices_Vtbl, pub setBackgroundProcessingPriority: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpriority: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPPlaylist(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWMPPlaylist, + IWMPPlaylist_Vtbl, + 0xd5f0f4f1_130c_11d3_b14e_00c04f79faa6 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWMPPlaylist, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IWMPPlaylist { pub unsafe fn count(&self, plcount: *mut i32) -> ::windows_core::Result<()> { @@ -7420,16 +6946,6 @@ impl IWMPPlaylist { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWMPPlaylist, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWMPPlaylist { - type Vtable = IWMPPlaylist_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWMPPlaylist { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd5f0f4f1_130c_11d3_b14e_00c04f79faa6); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWMPPlaylist_Vtbl { @@ -7464,11 +6980,15 @@ pub struct IWMPPlaylist_Vtbl { removeItem: usize, pub moveItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lindexold: i32, lindexnew: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPPlaylistArray(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWMPPlaylistArray, + IWMPPlaylistArray_Vtbl, + 0x679409c0_99f7_11d3_9fb7_00105aa620bb +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWMPPlaylistArray, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IWMPPlaylistArray { pub unsafe fn count(&self, plcount: *mut i32) -> ::windows_core::Result<()> { @@ -7482,16 +7002,6 @@ impl IWMPPlaylistArray { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWMPPlaylistArray, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWMPPlaylistArray { - type Vtable = IWMPPlaylistArray_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWMPPlaylistArray { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x679409c0_99f7_11d3_9fb7_00105aa620bb); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWMPPlaylistArray_Vtbl { @@ -7502,11 +7012,15 @@ pub struct IWMPPlaylistArray_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] item: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPPlaylistCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWMPPlaylistCollection, + IWMPPlaylistCollection_Vtbl, + 0x10a13217_23a7_439b_b1c0_d847c79b7774 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWMPPlaylistCollection, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IWMPPlaylistCollection { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -7569,16 +7083,6 @@ impl IWMPPlaylistCollection { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWMPPlaylistCollection, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWMPPlaylistCollection { - type Vtable = IWMPPlaylistCollection_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWMPPlaylistCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x10a13217_23a7_439b_b1c0_d847c79b7774); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWMPPlaylistCollection_Vtbl { @@ -7612,9 +7116,8 @@ pub struct IWMPPlaylistCollection_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] importPlaylist: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPPlugin(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMPPlugin, IWMPPlugin_Vtbl, 0xf1392a70_024c_42bb_a998_73dfdfe7d5a7); +::windows_core::imp::interface_hierarchy!(IWMPPlugin, ::windows_core::IUnknown); impl IWMPPlugin { pub unsafe fn Init(&self, dwplaybackcontext: usize) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Init)(::windows_core::Interface::as_raw(self), dwplaybackcontext).ok() @@ -7638,13 +7141,6 @@ impl IWMPPlugin { (::windows_core::Interface::vtable(self).UnAdviseWMPServices)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IWMPPlugin, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMPPlugin { - type Vtable = IWMPPlugin_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMPPlugin { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf1392a70_024c_42bb_a998_73dfdfe7d5a7); -} #[repr(C)] #[doc(hidden)] pub struct IWMPPlugin_Vtbl { @@ -7656,9 +7152,8 @@ pub struct IWMPPlugin_Vtbl { pub AdviseWMPServices: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwmpservices: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub UnAdviseWMPServices: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPPluginEnable(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMPPluginEnable, IWMPPluginEnable_Vtbl, 0x5fca444c_7ad1_479d_a4ef_40566a5309d6); +::windows_core::imp::interface_hierarchy!(IWMPPluginEnable, ::windows_core::IUnknown); impl IWMPPluginEnable { pub unsafe fn SetEnable(&self, fenable: P0) -> ::windows_core::Result<()> where @@ -7670,13 +7165,6 @@ impl IWMPPluginEnable { (::windows_core::Interface::vtable(self).GetEnable)(::windows_core::Interface::as_raw(self), pfenable).ok() } } -::windows_core::imp::interface_hierarchy!(IWMPPluginEnable, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMPPluginEnable { - type Vtable = IWMPPluginEnable_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMPPluginEnable { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5fca444c_7ad1_479d_a4ef_40566a5309d6); -} #[repr(C)] #[doc(hidden)] pub struct IWMPPluginEnable_Vtbl { @@ -7684,9 +7172,8 @@ pub struct IWMPPluginEnable_Vtbl { pub SetEnable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub GetEnable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfenable: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPPluginUI(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMPPluginUI, IWMPPluginUI_Vtbl, 0x4c5e8f9f_ad3e_4bf9_9753_fcd30d6d38dd); +::windows_core::imp::interface_hierarchy!(IWMPPluginUI, ::windows_core::IUnknown); impl IWMPPluginUI { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -7733,13 +7220,6 @@ impl IWMPPluginUI { (::windows_core::Interface::vtable(self).TranslateAccelerator)(::windows_core::Interface::as_raw(self), lpmsg).ok() } } -::windows_core::imp::interface_hierarchy!(IWMPPluginUI, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMPPluginUI { - type Vtable = IWMPPluginUI_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMPPluginUI { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4c5e8f9f_ad3e_4bf9_9753_fcd30d6d38dd); -} #[repr(C)] #[doc(hidden)] pub struct IWMPPluginUI_Vtbl { @@ -7764,11 +7244,15 @@ pub struct IWMPPluginUI_Vtbl { #[cfg(not(feature = "Win32_UI_WindowsAndMessaging"))] TranslateAccelerator: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPQuery(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWMPQuery, + IWMPQuery_Vtbl, + 0xa00918f3_a6b0_4bfb_9189_fd834c7bc5a5 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWMPQuery, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IWMPQuery { pub unsafe fn addCondition(&self, bstrattribute: P0, bstroperator: P1, bstrvalue: P2) -> ::windows_core::Result<()> @@ -7784,16 +7268,6 @@ impl IWMPQuery { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWMPQuery, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWMPQuery { - type Vtable = IWMPQuery_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWMPQuery { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa00918f3_a6b0_4bfb_9189_fd834c7bc5a5); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWMPQuery_Vtbl { @@ -7801,9 +7275,8 @@ pub struct IWMPQuery_Vtbl { pub addCondition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrattribute: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstroperator: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstrvalue: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub beginNextGroup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPRemoteMediaServices(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMPRemoteMediaServices, IWMPRemoteMediaServices_Vtbl, 0xcbb92747_741f_44fe_ab5b_f1a48f3b2a59); +::windows_core::imp::interface_hierarchy!(IWMPRemoteMediaServices, ::windows_core::IUnknown); impl IWMPRemoteMediaServices { pub unsafe fn GetServiceType(&self, pbstrtype: *mut ::windows_core::BSTR) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetServiceType)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pbstrtype)).ok() @@ -7820,13 +7293,6 @@ impl IWMPRemoteMediaServices { (::windows_core::Interface::vtable(self).GetCustomUIMode)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pbstrfile)).ok() } } -::windows_core::imp::interface_hierarchy!(IWMPRemoteMediaServices, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMPRemoteMediaServices { - type Vtable = IWMPRemoteMediaServices_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMPRemoteMediaServices { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcbb92747_741f_44fe_ab5b_f1a48f3b2a59); -} #[repr(C)] #[doc(hidden)] pub struct IWMPRemoteMediaServices_Vtbl { @@ -7839,9 +7305,8 @@ pub struct IWMPRemoteMediaServices_Vtbl { GetScriptableObject: usize, pub GetCustomUIMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrfile: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPRenderConfig(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMPRenderConfig, IWMPRenderConfig_Vtbl, 0x959506c1_0314_4ec5_9e61_8528db5e5478); +::windows_core::imp::interface_hierarchy!(IWMPRenderConfig, ::windows_core::IUnknown); impl IWMPRenderConfig { pub unsafe fn SetinProcOnly(&self, finproc: P0) -> ::windows_core::Result<()> where @@ -7853,13 +7318,6 @@ impl IWMPRenderConfig { (::windows_core::Interface::vtable(self).inProcOnly)(::windows_core::Interface::as_raw(self), pfinproc).ok() } } -::windows_core::imp::interface_hierarchy!(IWMPRenderConfig, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMPRenderConfig { - type Vtable = IWMPRenderConfig_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMPRenderConfig { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x959506c1_0314_4ec5_9e61_8528db5e5478); -} #[repr(C)] #[doc(hidden)] pub struct IWMPRenderConfig_Vtbl { @@ -7867,9 +7325,8 @@ pub struct IWMPRenderConfig_Vtbl { pub SetinProcOnly: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, finproc: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub inProcOnly: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfinproc: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPServices(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMPServices, IWMPServices_Vtbl, 0xafb6b76b_1e20_4198_83b3_191db6e0b149); +::windows_core::imp::interface_hierarchy!(IWMPServices, ::windows_core::IUnknown); impl IWMPServices { pub unsafe fn GetStreamTime(&self, prt: *mut i64) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetStreamTime)(::windows_core::Interface::as_raw(self), prt).ok() @@ -7878,13 +7335,6 @@ impl IWMPServices { (::windows_core::Interface::vtable(self).GetStreamState)(::windows_core::Interface::as_raw(self), pstate).ok() } } -::windows_core::imp::interface_hierarchy!(IWMPServices, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMPServices { - type Vtable = IWMPServices_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMPServices { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xafb6b76b_1e20_4198_83b3_191db6e0b149); -} #[repr(C)] #[doc(hidden)] pub struct IWMPServices_Vtbl { @@ -7892,11 +7342,15 @@ pub struct IWMPServices_Vtbl { pub GetStreamTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prt: *mut i64) -> ::windows_core::HRESULT, pub GetStreamState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstate: *mut WMPServices_StreamState) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPSettings(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWMPSettings, + IWMPSettings_Vtbl, + 0x9104d1ab_80c9_4fed_abf0_2e6417a6df14 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWMPSettings, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IWMPSettings { pub unsafe fn get_isAvailable(&self, bstritem: P0, pisavailable: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::Result<()> @@ -7998,16 +7452,6 @@ impl IWMPSettings { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWMPSettings, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWMPSettings { - type Vtable = IWMPSettings_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWMPSettings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9104d1ab_80c9_4fed_abf0_2e6417a6df14); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWMPSettings_Vtbl { @@ -8036,11 +7480,15 @@ pub struct IWMPSettings_Vtbl { pub enableErrorDialogs: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfenableerrordialogs: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub SetenableErrorDialogs: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fenableerrordialogs: super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPSettings2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWMPSettings2, + IWMPSettings2_Vtbl, + 0xfda937a4_eece_4da5_a0b6_39bf89ade2c2 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWMPSettings2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IWMPSettings); #[cfg(feature = "Win32_System_Com")] impl IWMPSettings2 { pub unsafe fn get_isAvailable(&self, bstritem: P0, pisavailable: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::Result<()> @@ -8154,16 +7602,6 @@ impl IWMPSettings2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWMPSettings2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IWMPSettings); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWMPSettings2 { - type Vtable = IWMPSettings2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWMPSettings2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfda937a4_eece_4da5_a0b6_39bf89ade2c2); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWMPSettings2_Vtbl { @@ -8172,9 +7610,8 @@ pub struct IWMPSettings2_Vtbl { pub mediaAccessRights: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrrights: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub requestMediaAccessRights: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdesiredaccess: ::std::mem::MaybeUninit<::windows_core::BSTR>, pvbaccepted: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPSkinManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMPSkinManager, IWMPSkinManager_Vtbl, 0x076f2fa6_ed30_448b_8cc5_3f3ef3529c7a); +::windows_core::imp::interface_hierarchy!(IWMPSkinManager, ::windows_core::IUnknown); impl IWMPSkinManager { pub unsafe fn SetVisualStyle(&self, bstrpath: P0) -> ::windows_core::Result<()> where @@ -8183,24 +7620,21 @@ impl IWMPSkinManager { (::windows_core::Interface::vtable(self).SetVisualStyle)(::windows_core::Interface::as_raw(self), bstrpath.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IWMPSkinManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMPSkinManager { - type Vtable = IWMPSkinManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMPSkinManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x076f2fa6_ed30_448b_8cc5_3f3ef3529c7a); -} #[repr(C)] #[doc(hidden)] pub struct IWMPSkinManager_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub SetVisualStyle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpath: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPStringCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWMPStringCollection, + IWMPStringCollection_Vtbl, + 0x4a976298_8c0d_11d3_b389_00c04f68574b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWMPStringCollection, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IWMPStringCollection { pub unsafe fn count(&self, plcount: *mut i32) -> ::windows_core::Result<()> { @@ -8211,16 +7645,6 @@ impl IWMPStringCollection { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWMPStringCollection, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWMPStringCollection { - type Vtable = IWMPStringCollection_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWMPStringCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4a976298_8c0d_11d3_b389_00c04f68574b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWMPStringCollection_Vtbl { @@ -8228,11 +7652,15 @@ pub struct IWMPStringCollection_Vtbl { pub count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plcount: *mut i32) -> ::windows_core::HRESULT, pub item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lindex: i32, pbstrstring: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPStringCollection2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWMPStringCollection2, + IWMPStringCollection2_Vtbl, + 0x46ad648d_53f1_4a74_92e2_2a1b68d63fd4 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWMPStringCollection2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IWMPStringCollection); #[cfg(feature = "Win32_System_Com")] impl IWMPStringCollection2 { pub unsafe fn count(&self, plcount: *mut i32) -> ::windows_core::Result<()> { @@ -8273,16 +7701,6 @@ impl IWMPStringCollection2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWMPStringCollection2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IWMPStringCollection); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWMPStringCollection2 { - type Vtable = IWMPStringCollection2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWMPStringCollection2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x46ad648d_53f1_4a74_92e2_2a1b68d63fd4); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWMPStringCollection2_Vtbl { @@ -8298,9 +7716,8 @@ pub struct IWMPStringCollection2_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] getItemInfoByType: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPSubscriptionService(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMPSubscriptionService, IWMPSubscriptionService_Vtbl, 0x376055f8_2a59_4a73_9501_dca5273a7a10); +::windows_core::imp::interface_hierarchy!(IWMPSubscriptionService, ::windows_core::IUnknown); impl IWMPSubscriptionService { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -8336,13 +7753,6 @@ impl IWMPSubscriptionService { (::windows_core::Interface::vtable(self).startBackgroundProcessing)(::windows_core::Interface::as_raw(self), hwnd.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IWMPSubscriptionService, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMPSubscriptionService { - type Vtable = IWMPSubscriptionService_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMPSubscriptionService { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x376055f8_2a59_4a73_9501_dca5273a7a10); -} #[repr(C)] #[doc(hidden)] pub struct IWMPSubscriptionService_Vtbl { @@ -8361,9 +7771,8 @@ pub struct IWMPSubscriptionService_Vtbl { allowPDATransfer: usize, pub startBackgroundProcessing: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwnd: super::super::Foundation::HWND) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPSubscriptionService2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMPSubscriptionService2, IWMPSubscriptionService2_Vtbl, 0xa94c120e_d600_4ec6_b05e_ec9d56d84de0); +::windows_core::imp::interface_hierarchy!(IWMPSubscriptionService2, ::windows_core::IUnknown, IWMPSubscriptionService); impl IWMPSubscriptionService2 { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -8420,13 +7829,6 @@ impl IWMPSubscriptionService2 { (::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::imp::interface_hierarchy!(IWMPSubscriptionService2, ::windows_core::IUnknown, IWMPSubscriptionService); -unsafe impl ::windows_core::Interface for IWMPSubscriptionService2 { - type Vtable = IWMPSubscriptionService2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMPSubscriptionService2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa94c120e_d600_4ec6_b05e_ec9d56d84de0); -} #[repr(C)] #[doc(hidden)] pub struct IWMPSubscriptionService2_Vtbl { @@ -8436,30 +7838,21 @@ pub struct IWMPSubscriptionService2_Vtbl { pub deviceAvailable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdevicename: ::std::mem::MaybeUninit<::windows_core::BSTR>, pcb: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub prepareForSync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrfilename: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstrdevicename: ::std::mem::MaybeUninit<::windows_core::BSTR>, pcb: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPSubscriptionServiceCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMPSubscriptionServiceCallback, IWMPSubscriptionServiceCallback_Vtbl, 0xdd01d127_2dc2_4c3a_876e_63312079f9b0); +::windows_core::imp::interface_hierarchy!(IWMPSubscriptionServiceCallback, ::windows_core::IUnknown); impl IWMPSubscriptionServiceCallback { pub unsafe fn onComplete(&self, hrresult: ::windows_core::HRESULT) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).onComplete)(::windows_core::Interface::as_raw(self), hrresult).ok() } } -::windows_core::imp::interface_hierarchy!(IWMPSubscriptionServiceCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMPSubscriptionServiceCallback { - type Vtable = IWMPSubscriptionServiceCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMPSubscriptionServiceCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdd01d127_2dc2_4c3a_876e_63312079f9b0); -} #[repr(C)] #[doc(hidden)] pub struct IWMPSubscriptionServiceCallback_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub onComplete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hrresult: ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPSyncDevice(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMPSyncDevice, IWMPSyncDevice_Vtbl, 0x82a2986c_0293_4fd0_b279_b21b86c058be); +::windows_core::imp::interface_hierarchy!(IWMPSyncDevice, ::windows_core::IUnknown); impl IWMPSyncDevice { pub unsafe fn friendlyName(&self, pbstrname: *mut ::windows_core::BSTR) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).friendlyName)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pbstrname)).ok() @@ -8522,13 +7915,6 @@ impl IWMPSyncDevice { (::windows_core::Interface::vtable(self).isIdentical)(::windows_core::Interface::as_raw(self), pdevice.into_param().abi(), pvbool).ok() } } -::windows_core::imp::interface_hierarchy!(IWMPSyncDevice, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMPSyncDevice { - type Vtable = IWMPSyncDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMPSyncDevice { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x82a2986c_0293_4fd0_b279_b21b86c058be); -} #[repr(C)] #[doc(hidden)] pub struct IWMPSyncDevice_Vtbl { @@ -8550,9 +7936,8 @@ pub struct IWMPSyncDevice_Vtbl { pub showSettings: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub isIdentical: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdevice: *mut ::core::ffi::c_void, pvbool: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPSyncDevice2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMPSyncDevice2, IWMPSyncDevice2_Vtbl, 0x88afb4b2_140a_44d2_91e6_4543da467cd1); +::windows_core::imp::interface_hierarchy!(IWMPSyncDevice2, ::windows_core::IUnknown, IWMPSyncDevice); impl IWMPSyncDevice2 { pub unsafe fn friendlyName(&self, pbstrname: *mut ::windows_core::BSTR) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.friendlyName)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pbstrname)).ok() @@ -8622,22 +8007,14 @@ impl IWMPSyncDevice2 { (::windows_core::Interface::vtable(self).setItemInfo)(::windows_core::Interface::as_raw(self), bstritemname.into_param().abi(), bstrval.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IWMPSyncDevice2, ::windows_core::IUnknown, IWMPSyncDevice); -unsafe impl ::windows_core::Interface for IWMPSyncDevice2 { - type Vtable = IWMPSyncDevice2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMPSyncDevice2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x88afb4b2_140a_44d2_91e6_4543da467cd1); -} #[repr(C)] #[doc(hidden)] pub struct IWMPSyncDevice2_Vtbl { pub base__: IWMPSyncDevice_Vtbl, pub setItemInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstritemname: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstrval: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPSyncDevice3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMPSyncDevice3, IWMPSyncDevice3_Vtbl, 0xb22c85f9_263c_4372_a0da_b518db9b4098); +::windows_core::imp::interface_hierarchy!(IWMPSyncDevice3, ::windows_core::IUnknown, IWMPSyncDevice, IWMPSyncDevice2); impl IWMPSyncDevice3 { pub unsafe fn friendlyName(&self, pbstrname: *mut ::windows_core::BSTR) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.friendlyName)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pbstrname)).ok() @@ -8719,13 +8096,6 @@ impl IWMPSyncDevice3 { (::windows_core::Interface::vtable(self).cancelEstimation)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IWMPSyncDevice3, ::windows_core::IUnknown, IWMPSyncDevice, IWMPSyncDevice2); -unsafe impl ::windows_core::Interface for IWMPSyncDevice3 { - type Vtable = IWMPSyncDevice3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMPSyncDevice3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb22c85f9_263c_4372_a0da_b518db9b4098); -} #[repr(C)] #[doc(hidden)] pub struct IWMPSyncDevice3_Vtbl { @@ -8736,9 +8106,8 @@ pub struct IWMPSyncDevice3_Vtbl { estimateSyncSize: usize, pub cancelEstimation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPSyncServices(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMPSyncServices, IWMPSyncServices_Vtbl, 0x8b5050ff_e0a4_4808_b3a8_893a9e1ed894); +::windows_core::imp::interface_hierarchy!(IWMPSyncServices, ::windows_core::IUnknown); impl IWMPSyncServices { pub unsafe fn deviceCount(&self, plcount: *mut i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).deviceCount)(::windows_core::Interface::as_raw(self), plcount).ok() @@ -8748,13 +8117,6 @@ impl IWMPSyncServices { (::windows_core::Interface::vtable(self).getDevice)(::windows_core::Interface::as_raw(self), lindex, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWMPSyncServices, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMPSyncServices { - type Vtable = IWMPSyncServices_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMPSyncServices { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8b5050ff_e0a4_4808_b3a8_893a9e1ed894); -} #[repr(C)] #[doc(hidden)] pub struct IWMPSyncServices_Vtbl { @@ -8762,51 +8124,34 @@ pub struct IWMPSyncServices_Vtbl { pub deviceCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plcount: *mut i32) -> ::windows_core::HRESULT, pub getDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lindex: i32, ppdevice: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPTranscodePolicy(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMPTranscodePolicy, IWMPTranscodePolicy_Vtbl, 0xb64cbac3_401c_4327_a3e8_b9feb3a8c25c); +::windows_core::imp::interface_hierarchy!(IWMPTranscodePolicy, ::windows_core::IUnknown); impl IWMPTranscodePolicy { pub unsafe fn allowTranscode(&self, pvballow: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).allowTranscode)(::windows_core::Interface::as_raw(self), pvballow).ok() } } -::windows_core::imp::interface_hierarchy!(IWMPTranscodePolicy, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMPTranscodePolicy { - type Vtable = IWMPTranscodePolicy_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMPTranscodePolicy { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb64cbac3_401c_4327_a3e8_b9feb3a8c25c); -} #[repr(C)] #[doc(hidden)] pub struct IWMPTranscodePolicy_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub allowTranscode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvballow: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPUserEventSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMPUserEventSink, IWMPUserEventSink_Vtbl, 0xcfccfa72_c343_48c3_a2de_b7a4402e39f2); +::windows_core::imp::interface_hierarchy!(IWMPUserEventSink, ::windows_core::IUnknown); impl IWMPUserEventSink { pub unsafe fn NotifyUserEvent(&self, eventcode: i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).NotifyUserEvent)(::windows_core::Interface::as_raw(self), eventcode).ok() } } -::windows_core::imp::interface_hierarchy!(IWMPUserEventSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMPUserEventSink { - type Vtable = IWMPUserEventSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMPUserEventSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcfccfa72_c343_48c3_a2de_b7a4402e39f2); -} #[repr(C)] #[doc(hidden)] pub struct IWMPUserEventSink_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub NotifyUserEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventcode: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPVideoRenderConfig(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMPVideoRenderConfig, IWMPVideoRenderConfig_Vtbl, 0x6d6cf803_1ec0_4c8d_b3ca_f18e27282074); +::windows_core::imp::interface_hierarchy!(IWMPVideoRenderConfig, ::windows_core::IUnknown); impl IWMPVideoRenderConfig { #[doc = "Required features: `\"Win32_Media_MediaFoundation\"`"] #[cfg(feature = "Win32_Media_MediaFoundation")] @@ -8817,13 +8162,6 @@ impl IWMPVideoRenderConfig { (::windows_core::Interface::vtable(self).SetpresenterActivate)(::windows_core::Interface::as_raw(self), pactivate.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IWMPVideoRenderConfig, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMPVideoRenderConfig { - type Vtable = IWMPVideoRenderConfig_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMPVideoRenderConfig { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6d6cf803_1ec0_4c8d_b3ca_f18e27282074); -} #[repr(C)] #[doc(hidden)] pub struct IWMPVideoRenderConfig_Vtbl { @@ -8833,9 +8171,8 @@ pub struct IWMPVideoRenderConfig_Vtbl { #[cfg(not(feature = "Win32_Media_MediaFoundation"))] SetpresenterActivate: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPWindowMessageSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMPWindowMessageSink, IWMPWindowMessageSink_Vtbl, 0x3a0daa30_908d_4789_ba87_aed879b5c49b); +::windows_core::imp::interface_hierarchy!(IWMPWindowMessageSink, ::windows_core::IUnknown); 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 @@ -8845,22 +8182,14 @@ impl IWMPWindowMessageSink { (::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::imp::interface_hierarchy!(IWMPWindowMessageSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMPWindowMessageSink { - type Vtable = IWMPWindowMessageSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMPWindowMessageSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3a0daa30_908d_4789_ba87_aed879b5c49b); -} #[repr(C)] #[doc(hidden)] pub struct IWMPWindowMessageSink_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnWindowMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, plret: *mut super::super::Foundation::LRESULT, pfhandled: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXFeed(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXFeed, IXFeed_Vtbl, 0xa44179a4_e0f6_403b_af8d_d080f425a451); +::windows_core::imp::interface_hierarchy!(IXFeed, ::windows_core::IUnknown); impl IXFeed { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -8904,7 +8233,7 @@ impl IXFeed { } pub unsafe fn Parent(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).Parent)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -8953,7 +8282,7 @@ impl IXFeed { } pub unsafe fn GetItem(&self, uiid: u32) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetItem)(::windows_core::Interface::as_raw(self), uiid, &T::IID, &mut result__).from_abi(result__) @@ -9041,7 +8370,7 @@ impl IXFeed { } pub unsafe fn GetWatcher(&self, scope: FEEDS_EVENTS_SCOPE, mask: FEEDS_EVENTS_MASK) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetWatcher)(::windows_core::Interface::as_raw(self), scope, mask, &T::IID, &mut result__).from_abi(result__) @@ -9055,13 +8384,6 @@ impl IXFeed { (::windows_core::Interface::vtable(self).ItemCount)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IXFeed, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXFeed { - type Vtable = IXFeed_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXFeed { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa44179a4_e0f6_403b_af8d_d080f425a451); -} #[repr(C)] #[doc(hidden)] pub struct IXFeed_Vtbl { @@ -9117,9 +8439,8 @@ pub struct IXFeed_Vtbl { pub UnreadItemCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, puiunreaditemcount: *mut u32) -> ::windows_core::HRESULT, pub ItemCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, puiitemcount: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXFeed2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXFeed2, IXFeed2_Vtbl, 0xce528e77_3716_4eb7_956d_f5e37502e12a); +::windows_core::imp::interface_hierarchy!(IXFeed2, ::windows_core::IUnknown, IXFeed); impl IXFeed2 { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -9163,7 +8484,7 @@ impl IXFeed2 { } pub unsafe fn Parent(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.Parent)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -9212,7 +8533,7 @@ impl IXFeed2 { } pub unsafe fn GetItem(&self, uiid: u32) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.GetItem)(::windows_core::Interface::as_raw(self), uiid, &T::IID, &mut result__).from_abi(result__) @@ -9300,7 +8621,7 @@ impl IXFeed2 { } pub unsafe fn GetWatcher(&self, scope: FEEDS_EVENTS_SCOPE, mask: FEEDS_EVENTS_MASK) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.GetWatcher)(::windows_core::Interface::as_raw(self), scope, mask, &T::IID, &mut result__).from_abi(result__) @@ -9315,7 +8636,7 @@ impl IXFeed2 { } pub unsafe fn GetItemByEffectiveId(&self, uieffectiveid: u32) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetItemByEffectiveId)(::windows_core::Interface::as_raw(self), uieffectiveid, &T::IID, &mut result__).from_abi(result__) @@ -9343,13 +8664,6 @@ impl IXFeed2 { (::windows_core::Interface::vtable(self).ClearCredentials)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IXFeed2, ::windows_core::IUnknown, IXFeed); -unsafe impl ::windows_core::Interface for IXFeed2 { - type Vtable = IXFeed2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXFeed2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xce528e77_3716_4eb7_956d_f5e37502e12a); -} #[repr(C)] #[doc(hidden)] pub struct IXFeed2_Vtbl { @@ -9361,9 +8675,8 @@ pub struct IXFeed2_Vtbl { pub SetCredentials: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszusername: ::windows_core::PCWSTR, pszpassword: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub ClearCredentials: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXFeedEnclosure(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXFeedEnclosure, IXFeedEnclosure_Vtbl, 0xbfbfb953_644f_4792_b69c_dfaca4cbf89a); +::windows_core::imp::interface_hierarchy!(IXFeedEnclosure, ::windows_core::IUnknown); impl IXFeedEnclosure { pub unsafe fn Url(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); @@ -9397,7 +8710,7 @@ impl IXFeedEnclosure { } pub unsafe fn Parent(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).Parent)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -9423,13 +8736,6 @@ impl IXFeedEnclosure { (::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::imp::interface_hierarchy!(IXFeedEnclosure, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXFeedEnclosure { - type Vtable = IXFeedEnclosure_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXFeedEnclosure { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbfbfb953_644f_4792_b69c_dfaca4cbf89a); -} #[repr(C)] #[doc(hidden)] pub struct IXFeedEnclosure_Vtbl { @@ -9448,9 +8754,8 @@ pub struct IXFeedEnclosure_Vtbl { pub RemoveFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszdownloadurl: ::windows_core::PCWSTR, pszdownloadfilepath: ::windows_core::PCWSTR, pszdownloadmimetype: ::windows_core::PCWSTR, pszenclosurefilename: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXFeedEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXFeedEvents, IXFeedEvents_Vtbl, 0x1630852e_1263_465b_98e5_fe60ffec4ac2); +::windows_core::imp::interface_hierarchy!(IXFeedEvents, ::windows_core::IUnknown); impl IXFeedEvents { pub unsafe fn Error(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Error)(::windows_core::Interface::as_raw(self)).ok() @@ -9500,13 +8805,6 @@ impl IXFeedEvents { (::windows_core::Interface::vtable(self).FeedItemCountChanged)(::windows_core::Interface::as_raw(self), pszpath.into_param().abi(), feicfflags).ok() } } -::windows_core::imp::interface_hierarchy!(IXFeedEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXFeedEvents { - type Vtable = IXFeedEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXFeedEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1630852e_1263_465b_98e5_fe60ffec4ac2); -} #[repr(C)] #[doc(hidden)] pub struct IXFeedEvents_Vtbl { @@ -9520,9 +8818,8 @@ pub struct IXFeedEvents_Vtbl { pub FeedDownloadCompleted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszpath: ::windows_core::PCWSTR, fde: FEEDS_DOWNLOAD_ERROR) -> ::windows_core::HRESULT, pub FeedItemCountChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszpath: ::windows_core::PCWSTR, feicfflags: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXFeedFolder(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXFeedFolder, IXFeedFolder_Vtbl, 0x4c963678_3a51_4b88_8531_98b90b6508f2); +::windows_core::imp::interface_hierarchy!(IXFeedFolder, ::windows_core::IUnknown); impl IXFeedFolder { pub unsafe fn Feeds(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -9536,7 +8833,7 @@ impl IXFeedFolder { where P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -9544,7 +8841,7 @@ impl IXFeedFolder { pub unsafe fn CreateSubfolder(&self, pszname: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -9564,7 +8861,7 @@ impl IXFeedFolder { pub unsafe fn GetFeed(&self, pszname: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -9572,7 +8869,7 @@ impl IXFeedFolder { pub unsafe fn GetSubfolder(&self, pszname: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -9602,7 +8899,7 @@ impl IXFeedFolder { } pub unsafe fn Parent(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).Parent)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -9613,7 +8910,7 @@ impl IXFeedFolder { } pub unsafe fn GetWatcher(&self, scope: FEEDS_EVENTS_SCOPE, mask: FEEDS_EVENTS_MASK) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetWatcher)(::windows_core::Interface::as_raw(self), scope, mask, &T::IID, &mut result__).from_abi(result__) @@ -9627,13 +8924,6 @@ impl IXFeedFolder { (::windows_core::Interface::vtable(self).TotalItemCount)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IXFeedFolder, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXFeedFolder { - type Vtable = IXFeedFolder_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXFeedFolder { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4c963678_3a51_4b88_8531_98b90b6508f2); -} #[repr(C)] #[doc(hidden)] pub struct IXFeedFolder_Vtbl { @@ -9657,9 +8947,8 @@ pub struct IXFeedFolder_Vtbl { pub TotalUnreadItemCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, puitotalunreaditemcount: *mut u32) -> ::windows_core::HRESULT, pub TotalItemCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, puitotalitemcount: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXFeedFolderEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXFeedFolderEvents, IXFeedFolderEvents_Vtbl, 0x7964b769_234a_4bb1_a5f4_90454c8ad07e); +::windows_core::imp::interface_hierarchy!(IXFeedFolderEvents, ::windows_core::IUnknown); impl IXFeedFolderEvents { pub unsafe fn Error(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Error)(::windows_core::Interface::as_raw(self)).ok() @@ -9761,13 +9050,6 @@ impl IXFeedFolderEvents { (::windows_core::Interface::vtable(self).FeedItemCountChanged)(::windows_core::Interface::as_raw(self), pszpath.into_param().abi(), feicfflags).ok() } } -::windows_core::imp::interface_hierarchy!(IXFeedFolderEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXFeedFolderEvents { - type Vtable = IXFeedFolderEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXFeedFolderEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7964b769_234a_4bb1_a5f4_90454c8ad07e); -} #[repr(C)] #[doc(hidden)] pub struct IXFeedFolderEvents_Vtbl { @@ -9789,9 +9071,8 @@ pub struct IXFeedFolderEvents_Vtbl { pub FeedDownloadCompleted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszpath: ::windows_core::PCWSTR, fde: FEEDS_DOWNLOAD_ERROR) -> ::windows_core::HRESULT, pub FeedItemCountChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszpath: ::windows_core::PCWSTR, feicfflags: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXFeedItem(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXFeedItem, IXFeedItem_Vtbl, 0xe757b2f5_e73e_434e_a1bf_2bd7c3e60fcb); +::windows_core::imp::interface_hierarchy!(IXFeedItem, ::windows_core::IUnknown); impl IXFeedItem { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -9829,7 +9110,7 @@ impl IXFeedItem { } pub unsafe fn Enclosure(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).Enclosure)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -9850,7 +9131,7 @@ impl IXFeedItem { } pub unsafe fn Parent(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).Parent)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -9871,13 +9152,6 @@ impl IXFeedItem { (::windows_core::Interface::vtable(self).Modified)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IXFeedItem, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXFeedItem { - type Vtable = IXFeedItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXFeedItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe757b2f5_e73e_434e_a1bf_2bd7c3e60fcb); -} #[repr(C)] #[doc(hidden)] pub struct IXFeedItem_Vtbl { @@ -9903,9 +9177,8 @@ pub struct IXFeedItem_Vtbl { pub LastDownloadTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstlastdownloadtime: *mut super::super::Foundation::SYSTEMTIME) -> ::windows_core::HRESULT, pub Modified: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstmodifiedtime: *mut super::super::Foundation::SYSTEMTIME) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXFeedItem2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXFeedItem2, IXFeedItem2_Vtbl, 0x6cda2dc7_9013_4522_9970_2a9dd9ead5a3); +::windows_core::imp::interface_hierarchy!(IXFeedItem2, ::windows_core::IUnknown, IXFeedItem); impl IXFeedItem2 { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -9943,7 +9216,7 @@ impl IXFeedItem2 { } pub unsafe fn Enclosure(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.Enclosure)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -9964,7 +9237,7 @@ impl IXFeedItem2 { } pub unsafe fn Parent(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.Parent)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -9989,22 +9262,14 @@ impl IXFeedItem2 { (::windows_core::Interface::vtable(self).EffectiveId)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IXFeedItem2, ::windows_core::IUnknown, IXFeedItem); -unsafe impl ::windows_core::Interface for IXFeedItem2 { - type Vtable = IXFeedItem2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXFeedItem2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6cda2dc7_9013_4522_9970_2a9dd9ead5a3); -} #[repr(C)] #[doc(hidden)] pub struct IXFeedItem2_Vtbl { pub base__: IXFeedItem_Vtbl, pub EffectiveId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, puieffectiveid: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXFeedsEnum(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXFeedsEnum, IXFeedsEnum_Vtbl, 0xdc43a9d5_5015_4301_8c96_a47434b4d658); +::windows_core::imp::interface_hierarchy!(IXFeedsEnum, ::windows_core::IUnknown); impl IXFeedsEnum { pub unsafe fn Count(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -10012,19 +9277,12 @@ impl IXFeedsEnum { } pub unsafe fn Item(&self, uiindex: u32) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).Item)(::windows_core::Interface::as_raw(self), uiindex, &T::IID, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IXFeedsEnum, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXFeedsEnum { - type Vtable = IXFeedsEnum_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXFeedsEnum { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdc43a9d5_5015_4301_8c96_a47434b4d658); -} #[repr(C)] #[doc(hidden)] pub struct IXFeedsEnum_Vtbl { @@ -10032,13 +9290,12 @@ pub struct IXFeedsEnum_Vtbl { pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, puicount: *mut u32) -> ::windows_core::HRESULT, pub Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uiindex: u32, riid: *const ::windows_core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXFeedsManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXFeedsManager, IXFeedsManager_Vtbl, 0x5357e238_fb12_4aca_a930_cab7832b84bf); +::windows_core::imp::interface_hierarchy!(IXFeedsManager, ::windows_core::IUnknown); impl IXFeedsManager { pub unsafe fn RootFolder(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).RootFolder)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -10060,7 +9317,7 @@ impl IXFeedsManager { pub unsafe fn GetFeed(&self, pszpath: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -10068,7 +9325,7 @@ impl IXFeedsManager { pub unsafe fn GetFeedByUrl(&self, pszurl: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -10083,7 +9340,7 @@ impl IXFeedsManager { pub unsafe fn GetFolder(&self, pszpath: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -10131,13 +9388,6 @@ impl IXFeedsManager { (::windows_core::Interface::vtable(self).ItemCountLimit)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IXFeedsManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXFeedsManager { - type Vtable = IXFeedsManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXFeedsManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5357e238_fb12_4aca_a930_cab7832b84bf); -} #[repr(C)] #[doc(hidden)] pub struct IXFeedsManager_Vtbl { @@ -10162,23 +9412,17 @@ pub struct IXFeedsManager_Vtbl { Normalize: usize, pub ItemCountLimit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, puiitemcountlimit: *mut u32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct _WMPOCXEvents(::windows_core::IUnknown); -#[cfg(feature = "Win32_System_Com")] -impl _WMPOCXEvents {} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + _WMPOCXEvents, + _WMPOCXEvents_Vtbl, + 0x6bf52a51_394a_11d3_b153_00c04f79faa6 +); #[cfg(feature = "Win32_System_Com")] ::windows_core::imp::interface_hierarchy!(_WMPOCXEvents, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for _WMPOCXEvents { - type Vtable = _WMPOCXEvents_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for _WMPOCXEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6bf52a51_394a_11d3_b153_00c04f79faa6); -} +impl _WMPOCXEvents {} #[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] diff --git a/crates/libs/windows/src/Windows/Win32/Media/Multimedia/impl.rs b/crates/libs/windows/src/Windows/Win32/Media/Multimedia/impl.rs index 8ace82e77e..7469f99641 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/Multimedia/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/Multimedia/impl.rs @@ -49,7 +49,7 @@ impl IAVIEditStream_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAVIFile_Impl: Sized { @@ -111,7 +111,7 @@ impl IAVIFile_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -132,7 +132,7 @@ impl IAVIPersistFile_Vtbl { Self { base__: super::super::System::Com::IPersistFile_Vtbl::new::(), Reserved1: Reserved1:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IAVIStream_Impl: Sized { @@ -222,7 +222,7 @@ impl IAVIStream_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAVIStreaming_Impl: Sized { @@ -245,7 +245,7 @@ impl IAVIStreaming_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Begin: Begin::, End: End:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] @@ -290,6 +290,6 @@ impl IGetFrame_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 068f66bbee..2cb8e4e960 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/Multimedia/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/Multimedia/mod.rs @@ -1260,9 +1260,8 @@ where ::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) } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAVIEditStream(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAVIEditStream, IAVIEditStream_Vtbl, 0x00020024_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IAVIEditStream, ::windows_core::IUnknown); impl IAVIEditStream { pub unsafe fn Cut(&self, plstart: *mut i32, pllength: *mut i32, ppresult: *mut ::core::option::Option) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Cut)(::windows_core::Interface::as_raw(self), plstart, pllength, ::core::mem::transmute(ppresult)).ok() @@ -1284,13 +1283,6 @@ impl IAVIEditStream { (::windows_core::Interface::vtable(self).SetInfo)(::windows_core::Interface::as_raw(self), lpinfo, cbinfo).ok() } } -::windows_core::imp::interface_hierarchy!(IAVIEditStream, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAVIEditStream { - type Vtable = IAVIEditStream_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAVIEditStream { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00020024_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IAVIEditStream_Vtbl { @@ -1301,9 +1293,8 @@ pub struct IAVIEditStream_Vtbl { pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppresult: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpinfo: *const AVISTREAMINFOW, cbinfo: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAVIFile(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAVIFile, IAVIFile_Vtbl, 0x00020020_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IAVIFile, ::windows_core::IUnknown); impl IAVIFile { pub unsafe fn Info(&self, pfi: *mut AVIFILEINFOW, lsize: i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Info)(::windows_core::Interface::as_raw(self), pfi, lsize).ok() @@ -1327,13 +1318,6 @@ impl IAVIFile { (::windows_core::Interface::vtable(self).DeleteStream)(::windows_core::Interface::as_raw(self), fcctype, lparam).ok() } } -::windows_core::imp::interface_hierarchy!(IAVIFile, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAVIFile { - type Vtable = IAVIFile_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAVIFile { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00020020_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IAVIFile_Vtbl { @@ -1346,11 +1330,15 @@ pub struct IAVIFile_Vtbl { pub EndRecord: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub DeleteStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fcctype: u32, lparam: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAVIPersistFile(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IAVIPersistFile, + IAVIPersistFile_Vtbl, + 0x00020025_0000_0000_c000_000000000046 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IAVIPersistFile, ::windows_core::IUnknown, super::super::System::Com::IPersist, super::super::System::Com::IPersistFile); #[cfg(feature = "Win32_System_Com")] impl IAVIPersistFile { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1400,25 +1388,14 @@ impl IAVIPersistFile { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IAVIPersistFile, ::windows_core::IUnknown, super::super::System::Com::IPersist, super::super::System::Com::IPersistFile); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IAVIPersistFile { - type Vtable = IAVIPersistFile_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IAVIPersistFile { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00020025_0000_0000_c000_000000000046); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IAVIPersistFile_Vtbl { pub base__: super::super::System::Com::IPersistFile_Vtbl, pub Reserved1: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAVIStream(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAVIStream, IAVIStream_Vtbl, 0x00020021_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IAVIStream, ::windows_core::IUnknown); impl IAVIStream { pub unsafe fn Create(&self, lparam1: P0, lparam2: P1) -> ::windows_core::Result<()> where @@ -1458,13 +1435,6 @@ impl IAVIStream { (::windows_core::Interface::vtable(self).SetInfo)(::windows_core::Interface::as_raw(self), lpinfo, cbinfo).ok() } } -::windows_core::imp::interface_hierarchy!(IAVIStream, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAVIStream { - type Vtable = IAVIStream_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAVIStream { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00020021_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IAVIStream_Vtbl { @@ -1481,9 +1451,8 @@ pub struct IAVIStream_Vtbl { pub WriteData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fcc: u32, lp: *const ::core::ffi::c_void, cb: i32) -> ::windows_core::HRESULT, pub SetInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpinfo: *const AVISTREAMINFOW, cbinfo: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAVIStreaming(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAVIStreaming, IAVIStreaming_Vtbl, 0x00020022_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IAVIStreaming, ::windows_core::IUnknown); impl IAVIStreaming { pub unsafe fn Begin(&self, lstart: i32, lend: i32, lrate: i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Begin)(::windows_core::Interface::as_raw(self), lstart, lend, lrate).ok() @@ -1492,13 +1461,6 @@ impl IAVIStreaming { (::windows_core::Interface::vtable(self).End)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IAVIStreaming, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAVIStreaming { - type Vtable = IAVIStreaming_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAVIStreaming { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00020022_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IAVIStreaming_Vtbl { @@ -1506,9 +1468,8 @@ pub struct IAVIStreaming_Vtbl { pub Begin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lstart: i32, lend: i32, lrate: i32) -> ::windows_core::HRESULT, pub End: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGetFrame(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IGetFrame, IGetFrame_Vtbl, 0x00020023_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IGetFrame, ::windows_core::IUnknown); impl IGetFrame { pub unsafe fn GetFrame(&self, lpos: i32) -> *mut ::core::ffi::c_void { (::windows_core::Interface::vtable(self).GetFrame)(::windows_core::Interface::as_raw(self), lpos) @@ -1525,13 +1486,6 @@ impl IGetFrame { (::windows_core::Interface::vtable(self).SetFormat)(::windows_core::Interface::as_raw(self), lpbi, ::core::mem::transmute(lpbits.unwrap_or(::std::ptr::null())), x, y, dx, dy).ok() } } -::windows_core::imp::interface_hierarchy!(IGetFrame, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGetFrame { - type Vtable = IGetFrame_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGetFrame { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00020023_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IGetFrame_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Media/PictureAcquisition/impl.rs b/crates/libs/windows/src/Windows/Win32/Media/PictureAcquisition/impl.rs index f095668120..89976e55b6 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/PictureAcquisition/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/PictureAcquisition/impl.rs @@ -45,7 +45,7 @@ impl IPhotoAcquire_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPhotoAcquireDeviceSelectionDialog_Impl: Sized { @@ -79,7 +79,7 @@ impl IPhotoAcquireDeviceSelectionDialog_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`, `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -201,7 +201,7 @@ impl IPhotoAcquireItem_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPhotoAcquireOptionsDialog_Impl: Sized { @@ -255,7 +255,7 @@ impl IPhotoAcquireOptionsDialog_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -300,7 +300,7 @@ impl IPhotoAcquirePlugin_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] @@ -468,7 +468,7 @@ impl IPhotoAcquireProgressCB_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPhotoAcquireSettings_Impl: Sized { @@ -608,7 +608,7 @@ impl IPhotoAcquireSettings_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_WindowsAndMessaging\"`"] @@ -711,7 +711,7 @@ impl IPhotoAcquireSource_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPhotoProgressActionCB_Impl: Sized { @@ -728,7 +728,7 @@ impl IPhotoProgressActionCB_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), DoAction: DoAction:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`, `\"Win32_UI_WindowsAndMessaging\"`"] @@ -889,7 +889,7 @@ impl IPhotoProgressDialog_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_UI_WindowsAndMessaging\"`"] @@ -1030,6 +1030,6 @@ impl IUserInputString_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 ad193737c8..0609b5618d 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/PictureAcquisition/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/PictureAcquisition/mod.rs @@ -1,6 +1,5 @@ -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhotoAcquire(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPhotoAcquire, IPhotoAcquire_Vtbl, 0x00f23353_e31b_4955_a8ad_ca5ebf31e2ce); +::windows_core::imp::interface_hierarchy!(IPhotoAcquire, ::windows_core::IUnknown); impl IPhotoAcquire { pub unsafe fn CreatePhotoSource(&self, pszdevice: P0) -> ::windows_core::Result where @@ -26,13 +25,6 @@ impl IPhotoAcquire { (::windows_core::Interface::vtable(self).EnumResults)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IPhotoAcquire, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhotoAcquire { - type Vtable = IPhotoAcquire_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhotoAcquire { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00f23353_e31b_4955_a8ad_ca5ebf31e2ce); -} #[repr(C)] #[doc(hidden)] pub struct IPhotoAcquire_Vtbl { @@ -44,9 +36,8 @@ pub struct IPhotoAcquire_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] EnumResults: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhotoAcquireDeviceSelectionDialog(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPhotoAcquireDeviceSelectionDialog, IPhotoAcquireDeviceSelectionDialog_Vtbl, 0x00f28837_55dd_4f37_aaf5_6855a9640467); +::windows_core::imp::interface_hierarchy!(IPhotoAcquireDeviceSelectionDialog, ::windows_core::IUnknown); impl IPhotoAcquireDeviceSelectionDialog { pub unsafe fn SetTitle(&self, psztitle: P0) -> ::windows_core::Result<()> where @@ -67,13 +58,6 @@ impl IPhotoAcquireDeviceSelectionDialog { (::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::imp::interface_hierarchy!(IPhotoAcquireDeviceSelectionDialog, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhotoAcquireDeviceSelectionDialog { - type Vtable = IPhotoAcquireDeviceSelectionDialog_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhotoAcquireDeviceSelectionDialog { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00f28837_55dd_4f37_aaf5_6855a9640467); -} #[repr(C)] #[doc(hidden)] pub struct IPhotoAcquireDeviceSelectionDialog_Vtbl { @@ -82,9 +66,8 @@ pub struct IPhotoAcquireDeviceSelectionDialog_Vtbl { pub SetSubmitButtonText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszsubmitbuttontext: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub DoModal: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwndparent: super::super::Foundation::HWND, dwdeviceflags: u32, pbstrdeviceid: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>, pndevicetype: *mut DEVICE_SELECTION_DEVICE_TYPE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhotoAcquireItem(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPhotoAcquireItem, IPhotoAcquireItem_Vtbl, 0x00f21c97_28bf_4c02_b842_5e4e90139a30); +::windows_core::imp::interface_hierarchy!(IPhotoAcquireItem, ::windows_core::IUnknown); impl IPhotoAcquireItem { pub unsafe fn GetItemName(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -129,13 +112,6 @@ impl IPhotoAcquireItem { (::windows_core::Interface::vtable(self).GetSubItemAt)(::windows_core::Interface::as_raw(self), nitemindex, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IPhotoAcquireItem, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhotoAcquireItem { - type Vtable = IPhotoAcquireItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhotoAcquireItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00f21c97_28bf_4c02_b842_5e4e90139a30); -} #[repr(C)] #[doc(hidden)] pub struct IPhotoAcquireItem_Vtbl { @@ -162,9 +138,8 @@ pub struct IPhotoAcquireItem_Vtbl { pub GetSubItemCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pncount: *mut u32) -> ::windows_core::HRESULT, pub GetSubItemAt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nitemindex: u32, ppphotoacquireitem: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhotoAcquireOptionsDialog(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPhotoAcquireOptionsDialog, IPhotoAcquireOptionsDialog_Vtbl, 0x00f2b3ee_bf64_47ee_89f4_4dedd79643f2); +::windows_core::imp::interface_hierarchy!(IPhotoAcquireOptionsDialog, ::windows_core::IUnknown); impl IPhotoAcquireOptionsDialog { pub unsafe fn Initialize(&self, pszregistryroot: P0) -> ::windows_core::Result<()> where @@ -192,13 +167,6 @@ impl IPhotoAcquireOptionsDialog { (::windows_core::Interface::vtable(self).SaveData)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IPhotoAcquireOptionsDialog, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhotoAcquireOptionsDialog { - type Vtable = IPhotoAcquireOptionsDialog_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhotoAcquireOptionsDialog { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00f2b3ee_bf64_47ee_89f4_4dedd79643f2); -} #[repr(C)] #[doc(hidden)] pub struct IPhotoAcquireOptionsDialog_Vtbl { @@ -209,9 +177,8 @@ pub struct IPhotoAcquireOptionsDialog_Vtbl { pub DoModal: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwndparent: super::super::Foundation::HWND, ppnreturncode: *mut isize) -> ::windows_core::HRESULT, pub SaveData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhotoAcquirePlugin(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPhotoAcquirePlugin, IPhotoAcquirePlugin_Vtbl, 0x00f2dceb_ecb8_4f77_8e47_e7a987c83dd0); +::windows_core::imp::interface_hierarchy!(IPhotoAcquirePlugin, ::windows_core::IUnknown); impl IPhotoAcquirePlugin { pub unsafe fn Initialize(&self, pphotoacquiresource: P0, pphotoacquireprogresscb: P1) -> ::windows_core::Result<()> where @@ -241,13 +208,6 @@ impl IPhotoAcquirePlugin { (::windows_core::Interface::vtable(self).DisplayConfigureDialog)(::windows_core::Interface::as_raw(self), hwndparent.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IPhotoAcquirePlugin, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhotoAcquirePlugin { - type Vtable = IPhotoAcquirePlugin_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhotoAcquirePlugin { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00f2dceb_ecb8_4f77_8e47_e7a987c83dd0); -} #[repr(C)] #[doc(hidden)] pub struct IPhotoAcquirePlugin_Vtbl { @@ -260,9 +220,8 @@ pub struct IPhotoAcquirePlugin_Vtbl { pub TransferComplete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hr: ::windows_core::HRESULT) -> ::windows_core::HRESULT, pub DisplayConfigureDialog: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwndparent: super::super::Foundation::HWND) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhotoAcquireProgressCB(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPhotoAcquireProgressCB, IPhotoAcquireProgressCB_Vtbl, 0x00f2ce1e_935e_4248_892c_130f32c45cb4); +::windows_core::imp::interface_hierarchy!(IPhotoAcquireProgressCB, ::windows_core::IUnknown); impl IPhotoAcquireProgressCB { pub unsafe fn Cancelled(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -363,13 +322,6 @@ impl IPhotoAcquireProgressCB { (::windows_core::Interface::vtable(self).GetUserInput)(::windows_core::Interface::as_raw(self), riidtype, punknown.into_param().abi(), ppropvarresult, ::core::mem::transmute(ppropvardefault.unwrap_or(::std::ptr::null()))).ok() } } -::windows_core::imp::interface_hierarchy!(IPhotoAcquireProgressCB, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhotoAcquireProgressCB { - type Vtable = IPhotoAcquireProgressCB_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhotoAcquireProgressCB { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00f2ce1e_935e_4248_892c_130f32c45cb4); -} #[repr(C)] #[doc(hidden)] pub struct IPhotoAcquireProgressCB_Vtbl { @@ -397,9 +349,8 @@ pub struct IPhotoAcquireProgressCB_Vtbl { #[cfg(not(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant")))] GetUserInput: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhotoAcquireSettings(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPhotoAcquireSettings, IPhotoAcquireSettings_Vtbl, 0x00f2b868_dd67_487c_9553_049240767e91); +::windows_core::imp::interface_hierarchy!(IPhotoAcquireSettings, ::windows_core::IUnknown); impl IPhotoAcquireSettings { pub unsafe fn InitializeFromRegistry(&self, pszregistrykey: P0) -> ::windows_core::Result<()> where @@ -459,13 +410,6 @@ impl IPhotoAcquireSettings { (::windows_core::Interface::vtable(self).GetAcquisitionTime)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IPhotoAcquireSettings, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhotoAcquireSettings { - type Vtable = IPhotoAcquireSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhotoAcquireSettings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00f2b868_dd67_487c_9553_049240767e91); -} #[repr(C)] #[doc(hidden)] pub struct IPhotoAcquireSettings_Vtbl { @@ -484,9 +428,8 @@ pub struct IPhotoAcquireSettings_Vtbl { pub GetGroupTag: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrgrouptag: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub GetAcquisitionTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pftacquisitiontime: *mut super::super::Foundation::FILETIME) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhotoAcquireSource(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPhotoAcquireSource, IPhotoAcquireSource_Vtbl, 0x00f2c703_8613_4282_a53b_6ec59c5883ac); +::windows_core::imp::interface_hierarchy!(IPhotoAcquireSource, ::windows_core::IUnknown); impl IPhotoAcquireSource { pub unsafe fn GetFriendlyName(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -524,13 +467,6 @@ impl IPhotoAcquireSource { (::windows_core::Interface::vtable(self).BindToObject)(::windows_core::Interface::as_raw(self), riid, ppv).ok() } } -::windows_core::imp::interface_hierarchy!(IPhotoAcquireSource, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhotoAcquireSource { - type Vtable = IPhotoAcquireSource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhotoAcquireSource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00f2c703_8613_4282_a53b_6ec59c5883ac); -} #[repr(C)] #[doc(hidden)] pub struct IPhotoAcquireSource_Vtbl { @@ -547,9 +483,8 @@ pub struct IPhotoAcquireSource_Vtbl { pub GetDeviceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdeviceid: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub BindToObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhotoProgressActionCB(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPhotoProgressActionCB, IPhotoProgressActionCB_Vtbl, 0x00f242d0_b206_4e7d_b4c1_4755bcbb9c9f); +::windows_core::imp::interface_hierarchy!(IPhotoProgressActionCB, ::windows_core::IUnknown); impl IPhotoProgressActionCB { pub unsafe fn DoAction(&self, hwndparent: P0) -> ::windows_core::Result<()> where @@ -558,22 +493,14 @@ impl IPhotoProgressActionCB { (::windows_core::Interface::vtable(self).DoAction)(::windows_core::Interface::as_raw(self), hwndparent.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IPhotoProgressActionCB, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhotoProgressActionCB { - type Vtable = IPhotoProgressActionCB_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhotoProgressActionCB { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00f242d0_b206_4e7d_b4c1_4755bcbb9c9f); -} #[repr(C)] #[doc(hidden)] pub struct IPhotoProgressActionCB_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub DoAction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwndparent: super::super::Foundation::HWND) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhotoProgressDialog(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPhotoProgressDialog, IPhotoProgressDialog_Vtbl, 0x00f246f9_0750_4f08_9381_2cd8e906a4ae); +::windows_core::imp::interface_hierarchy!(IPhotoProgressDialog, ::windows_core::IUnknown); impl IPhotoProgressDialog { pub unsafe fn Create(&self, hwndparent: P0) -> ::windows_core::Result<()> where @@ -677,13 +604,6 @@ impl IPhotoProgressDialog { (::windows_core::Interface::vtable(self).GetUserInput)(::windows_core::Interface::as_raw(self), riidtype, punknown.into_param().abi(), ppropvarresult, ::core::mem::transmute(ppropvardefault.unwrap_or(::std::ptr::null()))).ok() } } -::windows_core::imp::interface_hierarchy!(IPhotoProgressDialog, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhotoProgressDialog { - type Vtable = IPhotoProgressDialog_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhotoProgressDialog { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00f246f9_0750_4f08_9381_2cd8e906a4ae); -} #[repr(C)] #[doc(hidden)] pub struct IPhotoProgressDialog_Vtbl { @@ -713,9 +633,8 @@ pub struct IPhotoProgressDialog_Vtbl { #[cfg(not(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant")))] GetUserInput: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserInputString(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUserInputString, IUserInputString_Vtbl, 0x00f243a1_205b_45ba_ae26_abbc53aa7a6f); +::windows_core::imp::interface_hierarchy!(IUserInputString, ::windows_core::IUnknown); impl IUserInputString { pub unsafe fn GetSubmitButtonText(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -759,13 +678,6 @@ impl IUserInputString { (::windows_core::Interface::vtable(self).GetImage)(::windows_core::Interface::as_raw(self), nsize, ::core::mem::transmute(phbitmap.unwrap_or(::std::ptr::null_mut())), ::core::mem::transmute(phicon.unwrap_or(::std::ptr::null_mut()))).ok() } } -::windows_core::imp::interface_hierarchy!(IUserInputString, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserInputString { - type Vtable = IUserInputString_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserInputString { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00f243a1_205b_45ba_ae26_abbc53aa7a6f); -} #[repr(C)] #[doc(hidden)] pub struct IUserInputString_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Media/Speech/impl.rs b/crates/libs/windows/src/Windows/Win32/Media/Speech/impl.rs index 07a071ab53..463fc5bbcc 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/Speech/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/Speech/impl.rs @@ -62,7 +62,7 @@ impl IEnumSpObjectTokens_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Media_Audio\"`, `\"Win32_System_Com\"`"] @@ -156,7 +156,7 @@ impl ISpAudio_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ISpContainerLexicon_Impl: Sized + ISpLexicon_Impl { @@ -173,7 +173,7 @@ impl ISpContainerLexicon_Vtbl { Self { base__: ISpLexicon_Vtbl::new::(), AddLexicon: AddLexicon:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ISpDataKey_Impl: Sized { @@ -300,7 +300,7 @@ impl ISpDataKey_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISpDisplayAlternates_Impl: Sized { @@ -327,7 +327,7 @@ impl ISpDisplayAlternates_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISpEnginePronunciation_Impl: Sized { @@ -354,7 +354,7 @@ impl ISpEnginePronunciation_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISpEventSink_Impl: Sized { @@ -381,7 +381,7 @@ impl ISpEventSink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISpEventSource_Impl: Sized + ISpNotifySource_Impl { @@ -415,7 +415,7 @@ impl ISpEventSource_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ISpEventSource2_Impl: Sized + ISpEventSource_Impl { @@ -432,7 +432,7 @@ impl ISpEventSource2_Vtbl { Self { base__: ISpEventSource_Vtbl::new::(), GetEventsEx: GetEventsEx:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -505,7 +505,7 @@ impl ISpGrammarBuilder_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISpGrammarBuilder2_Impl: Sized { @@ -532,7 +532,7 @@ impl ISpGrammarBuilder2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISpLexicon_Impl: Sized { @@ -587,7 +587,7 @@ impl ISpLexicon_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Media_Audio\"`, `\"Win32_System_Com\"`"] @@ -639,7 +639,7 @@ impl ISpMMSysAudio_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ISpNotifyCallback_Impl: Sized { @@ -681,7 +681,7 @@ impl ISpNotifySink_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Notify: Notify:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISpNotifySource_Impl: Sized { @@ -743,7 +743,7 @@ impl ISpNotifySource_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISpNotifyTranslator_Impl: Sized + ISpNotifySink_Impl { @@ -798,7 +798,7 @@ impl ISpNotifyTranslator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ISpObjectToken_Impl: Sized + ISpDataKey_Impl { @@ -899,7 +899,7 @@ impl ISpObjectToken_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ISpObjectTokenCategory_Impl: Sized + ISpDataKey_Impl { @@ -978,7 +978,7 @@ impl ISpObjectTokenCategory_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ISpObjectTokenInit_Impl: Sized + ISpObjectToken_Impl { @@ -995,7 +995,7 @@ impl ISpObjectTokenInit_Vtbl { Self { base__: ISpObjectToken_Vtbl::new::(), InitFromDataKey: InitFromDataKey:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ISpObjectWithToken_Impl: Sized { @@ -1028,7 +1028,7 @@ impl ISpObjectWithToken_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISpPhoneConverter_Impl: Sized + ISpObjectWithToken_Impl { @@ -1061,7 +1061,7 @@ impl ISpPhoneConverter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ISpPhoneticAlphabetConverter_Impl: Sized { @@ -1121,7 +1121,7 @@ impl ISpPhoneticAlphabetConverter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISpPhoneticAlphabetSelection_Impl: Sized { @@ -1154,7 +1154,7 @@ impl ISpPhoneticAlphabetSelection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1211,7 +1211,7 @@ impl ISpPhrase_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1255,7 +1255,7 @@ impl ISpPhrase2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1286,7 +1286,7 @@ impl ISpPhraseAlt_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ISpProperties_Impl: Sized { @@ -1333,7 +1333,7 @@ impl ISpProperties_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Media_Audio\"`"] @@ -1500,7 +1500,7 @@ impl ISpRecoContext_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ISpRecoContext2_Impl: Sized { @@ -1534,7 +1534,7 @@ impl ISpRecoContext2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1683,7 +1683,7 @@ impl ISpRecoGrammar_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_Urlmon\"`"] @@ -1756,7 +1756,7 @@ impl ISpRecoGrammar2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Media_Audio\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1834,7 +1834,7 @@ impl ISpRecoResult_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Media_Audio\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1878,7 +1878,7 @@ impl ISpRecoResult2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Media_Audio\"`, `\"Win32_System_Com\"`"] @@ -2037,7 +2037,7 @@ impl ISpRecognizer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ISpRecognizer2_Impl: Sized { @@ -2071,7 +2071,7 @@ impl ISpRecognizer2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Registry\"`"] @@ -2092,7 +2092,7 @@ impl ISpRegDataKey_Vtbl { Self { base__: ISpDataKey_Vtbl::new::(), SetKey: SetKey:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2123,7 +2123,7 @@ impl ISpResourceManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ISpSerializeState_Impl: Sized { @@ -2150,7 +2150,7 @@ impl ISpSerializeState_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISpShortcut_Impl: Sized { @@ -2225,7 +2225,7 @@ impl ISpShortcut_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Media_Audio\"`, `\"Win32_System_Com\"`"] @@ -2276,7 +2276,7 @@ impl ISpStream_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Media_Audio\"`, `\"Win32_System_Com\"`"] @@ -2303,7 +2303,7 @@ impl ISpStreamFormat_Vtbl { Self { base__: super::super::System::Com::IStream_Vtbl::new::(), GetFormat: GetFormat:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Media_Audio\"`, `\"Win32_System_Com\"`"] @@ -2380,7 +2380,7 @@ impl ISpStreamFormatConverter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ISpTranscript_Impl: Sized { @@ -2413,7 +2413,7 @@ impl ISpTranscript_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2623,7 +2623,7 @@ impl ISpVoice_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Media_Audio\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2654,7 +2654,7 @@ impl ISpXMLRecoResult_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2770,7 +2770,7 @@ impl ISpeechAudio_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2847,7 +2847,7 @@ impl ISpeechAudioBufferInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2924,7 +2924,7 @@ impl ISpeechAudioFormat_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3006,7 +3006,7 @@ impl ISpeechAudioStatus_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3076,7 +3076,7 @@ impl ISpeechBaseStream_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3113,7 +3113,7 @@ impl ISpeechCustomStream_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3256,7 +3256,7 @@ impl ISpeechDataKey_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3283,7 +3283,7 @@ impl ISpeechFileStream_Vtbl { Self { base__: ISpeechBaseStream_Vtbl::new::(), Open: Open::, Close: Close:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3379,7 +3379,7 @@ impl ISpeechGrammarRule_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3443,7 +3443,7 @@ impl ISpeechGrammarRuleState_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3564,7 +3564,7 @@ impl ISpeechGrammarRuleStateTransition_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3620,7 +3620,7 @@ impl ISpeechGrammarRuleStateTransitions_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3729,7 +3729,7 @@ impl ISpeechGrammarRules_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3814,7 +3814,7 @@ impl ISpeechLexicon_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3896,7 +3896,7 @@ impl ISpeechLexiconPronunciation_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3952,7 +3952,7 @@ impl ISpeechLexiconPronunciations_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4021,7 +4021,7 @@ impl ISpeechLexiconWord_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4077,7 +4077,7 @@ impl ISpeechLexiconWords_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4147,7 +4147,7 @@ impl ISpeechMMSysAudio_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4184,7 +4184,7 @@ impl ISpeechMemoryStream_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4346,7 +4346,7 @@ impl ISpeechObjectToken_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4429,7 +4429,7 @@ impl ISpeechObjectTokenCategory_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4485,7 +4485,7 @@ impl ISpeechObjectTokens_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4548,7 +4548,7 @@ impl ISpeechPhoneConverter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4624,7 +4624,7 @@ impl ISpeechPhraseAlternate_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4680,7 +4680,7 @@ impl ISpeechPhraseAlternates_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4866,7 +4866,7 @@ impl ISpeechPhraseElement_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4922,7 +4922,7 @@ impl ISpeechPhraseElements_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5147,7 +5147,7 @@ impl ISpeechPhraseInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5177,7 +5177,7 @@ impl ISpeechPhraseInfoBuilder_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5233,7 +5233,7 @@ impl ISpeechPhraseProperties_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5367,7 +5367,7 @@ impl ISpeechPhraseProperty_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5436,7 +5436,7 @@ impl ISpeechPhraseReplacement_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5492,7 +5492,7 @@ impl ISpeechPhraseReplacements_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5613,7 +5613,7 @@ impl ISpeechPhraseRule_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5669,7 +5669,7 @@ impl ISpeechPhraseRules_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5939,7 +5939,7 @@ impl ISpeechRecoContext_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6119,7 +6119,7 @@ impl ISpeechRecoGrammar_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6254,7 +6254,7 @@ impl ISpeechRecoResult_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6275,7 +6275,7 @@ impl ISpeechRecoResult2_Vtbl { Self { base__: ISpeechRecoResult_Vtbl::new::(), SetTextFeedback: SetTextFeedback:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6437,7 +6437,7 @@ impl ISpeechRecoResultDispatch_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6506,7 +6506,7 @@ impl ISpeechRecoResultTimes_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6801,7 +6801,7 @@ impl ISpeechRecognizer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6896,7 +6896,7 @@ impl ISpeechRecognizerStatus_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6934,7 +6934,7 @@ impl ISpeechResourceLoader_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -7031,7 +7031,7 @@ impl ISpeechTextSelectionInformation_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -7386,7 +7386,7 @@ impl ISpeechVoice_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -7559,7 +7559,7 @@ impl ISpeechVoiceStatus_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -7716,7 +7716,7 @@ impl ISpeechWaveFormatEx_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -7753,7 +7753,7 @@ impl ISpeechXMLRecoResult_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -7767,7 +7767,7 @@ impl _ISpeechRecoContextEvents_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &<_ISpeechRecoContextEvents as ::windows_core::ComInterface>::IID || iid == &::IID + iid == &<_ISpeechRecoContextEvents as ::windows_core::Interface>::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -7781,6 +7781,6 @@ impl _ISpeechVoiceEvents_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &<_ISpeechVoiceEvents as ::windows_core::ComInterface>::IID || iid == &::IID + iid == &<_ISpeechVoiceEvents as ::windows_core::Interface>::IID || iid == &::IID } } 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 1ce2d2a9d2..2a75e7d589 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/Speech/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/Speech/mod.rs @@ -1,6 +1,5 @@ -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumSpObjectTokens(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumSpObjectTokens, IEnumSpObjectTokens_Vtbl, 0x06b64f9e_7fda_11d2_b4f2_00c04f797396); +::windows_core::imp::interface_hierarchy!(IEnumSpObjectTokens, ::windows_core::IUnknown); impl IEnumSpObjectTokens { pub unsafe fn Next(&self, celt: u32, pelt: *mut ::core::option::Option, pceltfetched: ::core::option::Option<*mut u32>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), celt, ::core::mem::transmute(pelt), ::core::mem::transmute(pceltfetched.unwrap_or(::std::ptr::null_mut()))).ok() @@ -23,13 +22,6 @@ impl IEnumSpObjectTokens { (::windows_core::Interface::vtable(self).GetCount)(::windows_core::Interface::as_raw(self), pcount).ok() } } -::windows_core::imp::interface_hierarchy!(IEnumSpObjectTokens, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumSpObjectTokens { - type Vtable = IEnumSpObjectTokens_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumSpObjectTokens { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x06b64f9e_7fda_11d2_b4f2_00c04f797396); -} #[repr(C)] #[doc(hidden)] pub struct IEnumSpObjectTokens_Vtbl { @@ -41,11 +33,15 @@ pub struct IEnumSpObjectTokens_Vtbl { pub Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, pptoken: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcount: *mut u32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpAudio(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISpAudio, + ISpAudio_Vtbl, + 0xc05c768f_fae8_4ec2_8e07_338321c12452 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISpAudio, ::windows_core::IUnknown, super::super::System::Com::ISequentialStream, super::super::System::Com::IStream, ISpStreamFormat); #[cfg(feature = "Win32_System_Com")] impl ISpAudio { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -152,16 +148,6 @@ impl ISpAudio { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISpAudio, ::windows_core::IUnknown, super::super::System::Com::ISequentialStream, super::super::System::Com::IStream, ISpStreamFormat); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISpAudio { - type Vtable = ISpAudio_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISpAudio { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc05c768f_fae8_4ec2_8e07_338321c12452); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISpAudio_Vtbl { @@ -184,9 +170,8 @@ pub struct ISpAudio_Vtbl { pub GetBufferNotifySize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcbsize: *mut u32) -> ::windows_core::HRESULT, pub SetBufferNotifySize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cbsize: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpContainerLexicon(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpContainerLexicon, ISpContainerLexicon_Vtbl, 0x8565572f_c094_41cc_b56e_10bd9c3ff044); +::windows_core::imp::interface_hierarchy!(ISpContainerLexicon, ::windows_core::IUnknown, ISpLexicon); impl ISpContainerLexicon { pub unsafe fn GetPronunciations(&self, pszword: P0, langid: u16, dwflags: u32, pwordpronunciationlist: *mut SPWORDPRONUNCIATIONLIST) -> ::windows_core::Result<()> where @@ -222,22 +207,14 @@ impl ISpContainerLexicon { (::windows_core::Interface::vtable(self).AddLexicon)(::windows_core::Interface::as_raw(self), paddlexicon.into_param().abi(), dwflags).ok() } } -::windows_core::imp::interface_hierarchy!(ISpContainerLexicon, ::windows_core::IUnknown, ISpLexicon); -unsafe impl ::windows_core::Interface for ISpContainerLexicon { - type Vtable = ISpContainerLexicon_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpContainerLexicon { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8565572f_c094_41cc_b56e_10bd9c3ff044); -} #[repr(C)] #[doc(hidden)] pub struct ISpContainerLexicon_Vtbl { pub base__: ISpLexicon_Vtbl, pub AddLexicon: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, paddlexicon: *mut ::core::ffi::c_void, dwflags: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpDataKey(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpDataKey, ISpDataKey_Vtbl, 0x14056581_e16c_11d2_bb90_00c04f8ee6c0); +::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 @@ -312,13 +289,6 @@ impl ISpDataKey { (::windows_core::Interface::vtable(self).EnumValues)(::windows_core::Interface::as_raw(self), index, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISpDataKey, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpDataKey { - type Vtable = ISpDataKey_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpDataKey { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x14056581_e16c_11d2_bb90_00c04f8ee6c0); -} #[repr(C)] #[doc(hidden)] pub struct ISpDataKey_Vtbl { @@ -336,9 +306,8 @@ pub struct ISpDataKey_Vtbl { pub EnumKeys: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, ppszsubkeyname: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, pub EnumValues: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, ppszvaluename: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpDisplayAlternates(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpDisplayAlternates, ISpDisplayAlternates_Vtbl, 0xc8d7c7e2_0dde_44b7_afe3_b0c991fbeb5e); +::windows_core::imp::interface_hierarchy!(ISpDisplayAlternates, ::windows_core::IUnknown); impl ISpDisplayAlternates { pub unsafe fn GetDisplayAlternates(&self, pphrase: *const SPDISPLAYPHRASE, crequestcount: u32, ppcomemphrases: *mut *mut SPDISPLAYPHRASE, pcphrasesreturned: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetDisplayAlternates)(::windows_core::Interface::as_raw(self), pphrase, crequestcount, ppcomemphrases, pcphrasesreturned).ok() @@ -347,13 +316,6 @@ impl ISpDisplayAlternates { (::windows_core::Interface::vtable(self).SetFullStopTrailSpace)(::windows_core::Interface::as_raw(self), ultrailspace).ok() } } -::windows_core::imp::interface_hierarchy!(ISpDisplayAlternates, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpDisplayAlternates { - type Vtable = ISpDisplayAlternates_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpDisplayAlternates { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc8d7c7e2_0dde_44b7_afe3_b0c991fbeb5e); -} #[repr(C)] #[doc(hidden)] pub struct ISpDisplayAlternates_Vtbl { @@ -361,9 +323,8 @@ pub struct ISpDisplayAlternates_Vtbl { pub GetDisplayAlternates: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pphrase: *const SPDISPLAYPHRASE, crequestcount: u32, ppcomemphrases: *mut *mut SPDISPLAYPHRASE, pcphrasesreturned: *mut u32) -> ::windows_core::HRESULT, pub SetFullStopTrailSpace: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ultrailspace: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpEnginePronunciation(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpEnginePronunciation, ISpEnginePronunciation_Vtbl, 0xc360ce4b_76d1_4214_ad68_52657d5083da); +::windows_core::imp::interface_hierarchy!(ISpEnginePronunciation, ::windows_core::IUnknown); impl ISpEnginePronunciation { pub unsafe fn Normalize(&self, pszword: P0, pszleftcontext: P1, pszrightcontext: P2, langid: u16, pnormalizationlist: *mut SPNORMALIZATIONLIST) -> ::windows_core::Result<()> where @@ -382,13 +343,6 @@ impl ISpEnginePronunciation { (::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::imp::interface_hierarchy!(ISpEnginePronunciation, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpEnginePronunciation { - type Vtable = ISpEnginePronunciation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpEnginePronunciation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc360ce4b_76d1_4214_ad68_52657d5083da); -} #[repr(C)] #[doc(hidden)] pub struct ISpEnginePronunciation_Vtbl { @@ -396,9 +350,8 @@ pub struct ISpEnginePronunciation_Vtbl { pub Normalize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszword: ::windows_core::PCWSTR, pszleftcontext: ::windows_core::PCWSTR, pszrightcontext: ::windows_core::PCWSTR, langid: u16, pnormalizationlist: *mut SPNORMALIZATIONLIST) -> ::windows_core::HRESULT, pub GetPronunciations: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszword: ::windows_core::PCWSTR, pszleftcontext: ::windows_core::PCWSTR, pszrightcontext: ::windows_core::PCWSTR, langid: u16, penginepronunciationlist: *mut SPWORDPRONUNCIATIONLIST) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpEventSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpEventSink, ISpEventSink_Vtbl, 0xbe7a9cc9_5f9e_11d2_960f_00c04f8ee628); +::windows_core::imp::interface_hierarchy!(ISpEventSink, ::windows_core::IUnknown); impl ISpEventSink { pub unsafe fn AddEvents(&self, peventarray: *const SPEVENT, ulcount: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).AddEvents)(::windows_core::Interface::as_raw(self), peventarray, ulcount).ok() @@ -407,13 +360,6 @@ impl ISpEventSink { (::windows_core::Interface::vtable(self).GetEventInterest)(::windows_core::Interface::as_raw(self), pulleventinterest).ok() } } -::windows_core::imp::interface_hierarchy!(ISpEventSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpEventSink { - type Vtable = ISpEventSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpEventSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbe7a9cc9_5f9e_11d2_960f_00c04f8ee628); -} #[repr(C)] #[doc(hidden)] pub struct ISpEventSink_Vtbl { @@ -421,9 +367,8 @@ pub struct ISpEventSink_Vtbl { pub AddEvents: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, peventarray: *const SPEVENT, ulcount: u32) -> ::windows_core::HRESULT, pub GetEventInterest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pulleventinterest: *mut u64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpEventSource(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpEventSource, ISpEventSource_Vtbl, 0xbe7a9cce_5f9e_11d2_960f_00c04f8ee628); +::windows_core::imp::interface_hierarchy!(ISpEventSource, ::windows_core::IUnknown, ISpNotifySource); impl ISpEventSource { pub unsafe fn SetNotifySink(&self, pnotifysink: P0) -> ::windows_core::Result<()> where @@ -473,13 +418,6 @@ impl ISpEventSource { (::windows_core::Interface::vtable(self).GetInfo)(::windows_core::Interface::as_raw(self), pinfo).ok() } } -::windows_core::imp::interface_hierarchy!(ISpEventSource, ::windows_core::IUnknown, ISpNotifySource); -unsafe impl ::windows_core::Interface for ISpEventSource { - type Vtable = ISpEventSource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpEventSource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbe7a9cce_5f9e_11d2_960f_00c04f8ee628); -} #[repr(C)] #[doc(hidden)] pub struct ISpEventSource_Vtbl { @@ -488,9 +426,8 @@ pub struct ISpEventSource_Vtbl { pub GetEvents: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulcount: u32, peventarray: *mut SPEVENT, pulfetched: *mut u32) -> ::windows_core::HRESULT, pub GetInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinfo: *mut SPEVENTSOURCEINFO) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpEventSource2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpEventSource2, ISpEventSource2_Vtbl, 0x2373a435_6a4b_429e_a6ac_d4231a61975b); +::windows_core::imp::interface_hierarchy!(ISpEventSource2, ::windows_core::IUnknown, ISpNotifySource, ISpEventSource); impl ISpEventSource2 { pub unsafe fn SetNotifySink(&self, pnotifysink: P0) -> ::windows_core::Result<()> where @@ -543,22 +480,14 @@ impl ISpEventSource2 { (::windows_core::Interface::vtable(self).GetEventsEx)(::windows_core::Interface::as_raw(self), ulcount, peventarray, pulfetched).ok() } } -::windows_core::imp::interface_hierarchy!(ISpEventSource2, ::windows_core::IUnknown, ISpNotifySource, ISpEventSource); -unsafe impl ::windows_core::Interface for ISpEventSource2 { - type Vtable = ISpEventSource2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpEventSource2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2373a435_6a4b_429e_a6ac_d4231a61975b); -} #[repr(C)] #[doc(hidden)] pub struct ISpEventSource2_Vtbl { pub base__: ISpEventSource_Vtbl, pub GetEventsEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulcount: u32, peventarray: *mut SPEVENTEX, pulfetched: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpGrammarBuilder(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpGrammarBuilder, ISpGrammarBuilder_Vtbl, 0x8137828f_591a_4a42_be58_49ea7ebaac68); +::windows_core::imp::interface_hierarchy!(ISpGrammarBuilder, ::windows_core::IUnknown); impl ISpGrammarBuilder { pub unsafe fn ResetGrammar(&self, newlanguage: u16) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).ResetGrammar)(::windows_core::Interface::as_raw(self), newlanguage).ok() @@ -615,13 +544,6 @@ impl ISpGrammarBuilder { (::windows_core::Interface::vtable(self).Commit)(::windows_core::Interface::as_raw(self), dwreserved).ok() } } -::windows_core::imp::interface_hierarchy!(ISpGrammarBuilder, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpGrammarBuilder { - type Vtable = ISpGrammarBuilder_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpGrammarBuilder { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8137828f_591a_4a42_be58_49ea7ebaac68); -} #[repr(C)] #[doc(hidden)] pub struct ISpGrammarBuilder_Vtbl { @@ -641,9 +563,8 @@ pub struct ISpGrammarBuilder_Vtbl { pub AddResource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hrulestate: SPSTATEHANDLE, pszresourcename: ::windows_core::PCWSTR, pszresourcevalue: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub Commit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwreserved: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpGrammarBuilder2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpGrammarBuilder2, ISpGrammarBuilder2_Vtbl, 0x8ab10026_20cc_4b20_8c22_a49c9ba78f60); +::windows_core::imp::interface_hierarchy!(ISpGrammarBuilder2, ::windows_core::IUnknown); impl ISpGrammarBuilder2 { pub unsafe fn AddTextSubset(&self, hfromstate: P0, htostate: P1, psz: P2, ematchmode: SPMATCHINGMODE) -> ::windows_core::Result<()> where @@ -657,13 +578,6 @@ impl ISpGrammarBuilder2 { (::windows_core::Interface::vtable(self).SetPhoneticAlphabet)(::windows_core::Interface::as_raw(self), phoneticalphabet).ok() } } -::windows_core::imp::interface_hierarchy!(ISpGrammarBuilder2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpGrammarBuilder2 { - type Vtable = ISpGrammarBuilder2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpGrammarBuilder2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8ab10026_20cc_4b20_8c22_a49c9ba78f60); -} #[repr(C)] #[doc(hidden)] pub struct ISpGrammarBuilder2_Vtbl { @@ -671,9 +585,8 @@ pub struct ISpGrammarBuilder2_Vtbl { pub AddTextSubset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hfromstate: SPSTATEHANDLE, htostate: SPSTATEHANDLE, psz: ::windows_core::PCWSTR, ematchmode: SPMATCHINGMODE) -> ::windows_core::HRESULT, pub SetPhoneticAlphabet: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phoneticalphabet: PHONETICALPHABET) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpLexicon(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpLexicon, ISpLexicon_Vtbl, 0xda41a7c2_5383_4db2_916b_6c1719e3db58); +::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 @@ -703,13 +616,6 @@ impl ISpLexicon { (::windows_core::Interface::vtable(self).GetWords)(::windows_core::Interface::as_raw(self), dwflags, pdwgeneration, ::core::mem::transmute(pdwcookie.unwrap_or(::std::ptr::null_mut())), pwordlist).ok() } } -::windows_core::imp::interface_hierarchy!(ISpLexicon, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpLexicon { - type Vtable = ISpLexicon_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpLexicon { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xda41a7c2_5383_4db2_916b_6c1719e3db58); -} #[repr(C)] #[doc(hidden)] pub struct ISpLexicon_Vtbl { @@ -721,11 +627,15 @@ pub struct ISpLexicon_Vtbl { pub GetGenerationChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwflags: u32, pdwgeneration: *mut u32, pwordlist: *mut SPWORDLIST) -> ::windows_core::HRESULT, pub GetWords: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwflags: u32, pdwgeneration: *mut u32, pdwcookie: *mut u32, pwordlist: *mut SPWORDLIST) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpMMSysAudio(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISpMMSysAudio, + ISpMMSysAudio_Vtbl, + 0x15806f6e_1d70_4b48_98e6_3b1a007509ab +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISpMMSysAudio, ::windows_core::IUnknown, super::super::System::Com::ISequentialStream, super::super::System::Com::IStream, ISpStreamFormat, ISpAudio); #[cfg(feature = "Win32_System_Com")] impl ISpMMSysAudio { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -847,16 +757,6 @@ impl ISpMMSysAudio { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISpMMSysAudio, ::windows_core::IUnknown, super::super::System::Com::ISequentialStream, super::super::System::Com::IStream, ISpStreamFormat, ISpAudio); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISpMMSysAudio { - type Vtable = ISpMMSysAudio_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISpMMSysAudio { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x15806f6e_1d70_4b48_98e6_3b1a007509ab); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISpMMSysAudio_Vtbl { @@ -867,9 +767,7 @@ pub struct ISpMMSysAudio_Vtbl { pub GetLineId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pulineid: *mut u32) -> ::windows_core::HRESULT, pub SetLineId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulineid: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpNotifyCallback(::std::ptr::NonNull<::std::ffi::c_void>); +::windows_core::imp::interface!(ISpNotifyCallback, ISpNotifyCallback_Vtbl); impl ISpNotifyCallback { pub unsafe fn NotifyCallback(&self, wparam: P0, lparam: P1) -> ::windows_core::Result<()> where @@ -879,38 +777,26 @@ impl ISpNotifyCallback { (::windows_core::Interface::vtable(self).NotifyCallback)(::windows_core::Interface::as_raw(self), wparam.into_param().abi(), lparam.into_param().abi()).ok() } } -unsafe impl ::windows_core::Interface for ISpNotifyCallback { - type Vtable = ISpNotifyCallback_Vtbl; -} #[repr(C)] #[doc(hidden)] pub struct ISpNotifyCallback_Vtbl { pub NotifyCallback: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpNotifySink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpNotifySink, ISpNotifySink_Vtbl, 0x259684dc_37c3_11d2_9603_00c04f8ee628); +::windows_core::imp::interface_hierarchy!(ISpNotifySink, ::windows_core::IUnknown); impl ISpNotifySink { pub unsafe fn Notify(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Notify)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ISpNotifySink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpNotifySink { - type Vtable = ISpNotifySink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpNotifySink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x259684dc_37c3_11d2_9603_00c04f8ee628); -} #[repr(C)] #[doc(hidden)] pub struct ISpNotifySink_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Notify: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpNotifySource(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpNotifySource, ISpNotifySource_Vtbl, 0x5eff4aef_8487_11d2_961c_00c04f8ee628); +::windows_core::imp::interface_hierarchy!(ISpNotifySource, ::windows_core::IUnknown); impl ISpNotifySource { pub unsafe fn SetNotifySink(&self, pnotifysink: P0) -> ::windows_core::Result<()> where @@ -951,13 +837,6 @@ impl ISpNotifySource { (::windows_core::Interface::vtable(self).GetNotifyEventHandle)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(ISpNotifySource, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpNotifySource { - type Vtable = ISpNotifySource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpNotifySource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5eff4aef_8487_11d2_961c_00c04f8ee628); -} #[repr(C)] #[doc(hidden)] pub struct ISpNotifySource_Vtbl { @@ -970,9 +849,8 @@ pub struct ISpNotifySource_Vtbl { pub WaitForNotifyEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwmilliseconds: u32) -> ::windows_core::HRESULT, pub GetNotifyEventHandle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> super::super::Foundation::HANDLE, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpNotifyTranslator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpNotifyTranslator, ISpNotifyTranslator_Vtbl, 0xaca16614_5d3d_11d2_960e_00c04f8ee628); +::windows_core::imp::interface_hierarchy!(ISpNotifyTranslator, ::windows_core::IUnknown, ISpNotifySink); impl ISpNotifyTranslator { pub unsafe fn Notify(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.Notify)(::windows_core::Interface::as_raw(self)).ok() @@ -1014,13 +892,6 @@ impl ISpNotifyTranslator { (::windows_core::Interface::vtable(self).GetEventHandle)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(ISpNotifyTranslator, ::windows_core::IUnknown, ISpNotifySink); -unsafe impl ::windows_core::Interface for ISpNotifyTranslator { - type Vtable = ISpNotifyTranslator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpNotifyTranslator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaca16614_5d3d_11d2_960e_00c04f8ee628); -} #[repr(C)] #[doc(hidden)] pub struct ISpNotifyTranslator_Vtbl { @@ -1032,9 +903,8 @@ pub struct ISpNotifyTranslator_Vtbl { pub Wait: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwmilliseconds: u32) -> ::windows_core::HRESULT, pub GetEventHandle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> super::super::Foundation::HANDLE, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpObjectToken(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpObjectToken, ISpObjectToken_Vtbl, 0x14056589_e16c_11d2_bb90_00c04f8ee6c0); +::windows_core::imp::interface_hierarchy!(ISpObjectToken, ::windows_core::IUnknown, ISpDataKey); impl ISpObjectToken { pub unsafe fn SetData(&self, pszvaluename: P0, cbdata: u32, pdata: *const u8) -> ::windows_core::Result<()> where @@ -1171,13 +1041,6 @@ impl ISpObjectToken { (::windows_core::Interface::vtable(self).MatchesAttributes)(::windows_core::Interface::as_raw(self), pszattributes.into_param().abi(), pfmatches).ok() } } -::windows_core::imp::interface_hierarchy!(ISpObjectToken, ::windows_core::IUnknown, ISpDataKey); -unsafe impl ::windows_core::Interface for ISpObjectToken { - type Vtable = ISpObjectToken_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpObjectToken { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x14056589_e16c_11d2_bb90_00c04f8ee6c0); -} #[repr(C)] #[doc(hidden)] pub struct ISpObjectToken_Vtbl { @@ -1193,9 +1056,8 @@ pub struct ISpObjectToken_Vtbl { pub DisplayUI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwndparent: super::super::Foundation::HWND, psztitle: ::windows_core::PCWSTR, psztypeofui: ::windows_core::PCWSTR, pvextradata: *mut ::core::ffi::c_void, cbextradata: u32, punkobject: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub MatchesAttributes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszattributes: ::windows_core::PCWSTR, pfmatches: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpObjectTokenCategory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpObjectTokenCategory, ISpObjectTokenCategory_Vtbl, 0x2d3d3845_39af_4850_bbf9_40b49780011d); +::windows_core::imp::interface_hierarchy!(ISpObjectTokenCategory, ::windows_core::IUnknown, ISpDataKey); impl ISpObjectTokenCategory { pub unsafe fn SetData(&self, pszvaluename: P0, cbdata: u32, pdata: *const u8) -> ::windows_core::Result<()> where @@ -1303,13 +1165,6 @@ impl ISpObjectTokenCategory { (::windows_core::Interface::vtable(self).GetDefaultTokenId)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISpObjectTokenCategory, ::windows_core::IUnknown, ISpDataKey); -unsafe impl ::windows_core::Interface for ISpObjectTokenCategory { - type Vtable = ISpObjectTokenCategory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpObjectTokenCategory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2d3d3845_39af_4850_bbf9_40b49780011d); -} #[repr(C)] #[doc(hidden)] pub struct ISpObjectTokenCategory_Vtbl { @@ -1321,9 +1176,8 @@ pub struct ISpObjectTokenCategory_Vtbl { pub SetDefaultTokenId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psztokenid: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub GetDefaultTokenId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppszcomemtokenid: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpObjectTokenInit(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpObjectTokenInit, ISpObjectTokenInit_Vtbl, 0xb8aab0cf_346f_49d8_9499_c8b03f161d51); +::windows_core::imp::interface_hierarchy!(ISpObjectTokenInit, ::windows_core::IUnknown, ISpDataKey, ISpObjectToken); impl ISpObjectTokenInit { pub unsafe fn SetData(&self, pszvaluename: P0, cbdata: u32, pdata: *const u8) -> ::windows_core::Result<()> where @@ -1468,22 +1322,14 @@ impl ISpObjectTokenInit { (::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::imp::interface_hierarchy!(ISpObjectTokenInit, ::windows_core::IUnknown, ISpDataKey, ISpObjectToken); -unsafe impl ::windows_core::Interface for ISpObjectTokenInit { - type Vtable = ISpObjectTokenInit_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpObjectTokenInit { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb8aab0cf_346f_49d8_9499_c8b03f161d51); -} #[repr(C)] #[doc(hidden)] pub struct ISpObjectTokenInit_Vtbl { pub base__: ISpObjectToken_Vtbl, pub InitFromDataKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszcategoryid: ::windows_core::PCWSTR, psztokenid: ::windows_core::PCWSTR, pdatakey: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpObjectWithToken(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpObjectWithToken, ISpObjectWithToken_Vtbl, 0x5b559f40_e952_11d2_bb91_00c04f8ee6c0); +::windows_core::imp::interface_hierarchy!(ISpObjectWithToken, ::windows_core::IUnknown); impl ISpObjectWithToken { pub unsafe fn SetObjectToken(&self, ptoken: P0) -> ::windows_core::Result<()> where @@ -1496,13 +1342,6 @@ impl ISpObjectWithToken { (::windows_core::Interface::vtable(self).GetObjectToken)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISpObjectWithToken, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpObjectWithToken { - type Vtable = ISpObjectWithToken_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpObjectWithToken { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5b559f40_e952_11d2_bb91_00c04f8ee6c0); -} #[repr(C)] #[doc(hidden)] pub struct ISpObjectWithToken_Vtbl { @@ -1510,9 +1349,8 @@ pub struct ISpObjectWithToken_Vtbl { pub SetObjectToken: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptoken: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetObjectToken: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pptoken: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpPhoneConverter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpPhoneConverter, ISpPhoneConverter_Vtbl, 0x8445c581_0cac_4a38_abfe_9b2ce2826455); +::windows_core::imp::interface_hierarchy!(ISpPhoneConverter, ::windows_core::IUnknown, ISpObjectWithToken); impl ISpPhoneConverter { pub unsafe fn SetObjectToken(&self, ptoken: P0) -> ::windows_core::Result<()> where @@ -1535,13 +1373,6 @@ impl ISpPhoneConverter { (::windows_core::Interface::vtable(self).IdToPhone)(::windows_core::Interface::as_raw(self), pid, ::core::mem::transmute(pszphone)).ok() } } -::windows_core::imp::interface_hierarchy!(ISpPhoneConverter, ::windows_core::IUnknown, ISpObjectWithToken); -unsafe impl ::windows_core::Interface for ISpPhoneConverter { - type Vtable = ISpPhoneConverter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpPhoneConverter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8445c581_0cac_4a38_abfe_9b2ce2826455); -} #[repr(C)] #[doc(hidden)] pub struct ISpPhoneConverter_Vtbl { @@ -1549,9 +1380,8 @@ pub struct ISpPhoneConverter_Vtbl { pub PhoneToId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszphone: ::windows_core::PCWSTR, pid: *mut u16) -> ::windows_core::HRESULT, pub IdToPhone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pid: *const u16, pszphone: ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpPhoneticAlphabetConverter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpPhoneticAlphabetConverter, ISpPhoneticAlphabetConverter_Vtbl, 0x133adcd4_19b4_4020_9fdc_842e78253b17); +::windows_core::imp::interface_hierarchy!(ISpPhoneticAlphabetConverter, ::windows_core::IUnknown); impl ISpPhoneticAlphabetConverter { pub unsafe fn GetLangId(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1574,13 +1404,6 @@ impl ISpPhoneticAlphabetConverter { (::windows_core::Interface::vtable(self).GetMaxConvertLength)(::windows_core::Interface::as_raw(self), csrclength, bsapi2ups.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISpPhoneticAlphabetConverter, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpPhoneticAlphabetConverter { - type Vtable = ISpPhoneticAlphabetConverter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpPhoneticAlphabetConverter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x133adcd4_19b4_4020_9fdc_842e78253b17); -} #[repr(C)] #[doc(hidden)] pub struct ISpPhoneticAlphabetConverter_Vtbl { @@ -1591,9 +1414,8 @@ pub struct ISpPhoneticAlphabetConverter_Vtbl { pub UPS2SAPI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszupsid: *const u16, pszsapiid: *mut u16, cmaxlength: u32) -> ::windows_core::HRESULT, pub GetMaxConvertLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, csrclength: u32, bsapi2ups: super::super::Foundation::BOOL, pcmaxdestlength: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpPhoneticAlphabetSelection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpPhoneticAlphabetSelection, ISpPhoneticAlphabetSelection_Vtbl, 0xb2745efd_42ce_48ca_81f1_a96e02538a90); +::windows_core::imp::interface_hierarchy!(ISpPhoneticAlphabetSelection, ::windows_core::IUnknown); impl ISpPhoneticAlphabetSelection { pub unsafe fn IsAlphabetUPS(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1606,13 +1428,6 @@ impl ISpPhoneticAlphabetSelection { (::windows_core::Interface::vtable(self).SetAlphabetToUPS)(::windows_core::Interface::as_raw(self), fforceups.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ISpPhoneticAlphabetSelection, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpPhoneticAlphabetSelection { - type Vtable = ISpPhoneticAlphabetSelection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpPhoneticAlphabetSelection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb2745efd_42ce_48ca_81f1_a96e02538a90); -} #[repr(C)] #[doc(hidden)] pub struct ISpPhoneticAlphabetSelection_Vtbl { @@ -1620,9 +1435,8 @@ pub struct ISpPhoneticAlphabetSelection_Vtbl { pub IsAlphabetUPS: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfisups: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub SetAlphabetToUPS: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fforceups: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpPhrase(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpPhrase, ISpPhrase_Vtbl, 0x1a5c0354_b621_4b5a_8791_d306ed379e53); +::windows_core::imp::interface_hierarchy!(ISpPhrase, ::windows_core::IUnknown); impl ISpPhrase { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -1644,13 +1458,6 @@ impl ISpPhrase { (::windows_core::Interface::vtable(self).Discard)(::windows_core::Interface::as_raw(self), dwvaluetypes).ok() } } -::windows_core::imp::interface_hierarchy!(ISpPhrase, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpPhrase { - type Vtable = ISpPhrase_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpPhrase { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1a5c0354_b621_4b5a_8791_d306ed379e53); -} #[repr(C)] #[doc(hidden)] pub struct ISpPhrase_Vtbl { @@ -1663,9 +1470,8 @@ pub struct ISpPhrase_Vtbl { pub GetText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulstart: u32, ulcount: u32, fusetextreplacements: super::super::Foundation::BOOL, ppszcomemtext: *mut ::windows_core::PWSTR, pbdisplayattributes: *mut u8) -> ::windows_core::HRESULT, pub Discard: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwvaluetypes: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpPhrase2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpPhrase2, ISpPhrase2_Vtbl, 0xf264da52_e457_4696_b856_a737b717af79); +::windows_core::imp::interface_hierarchy!(ISpPhrase2, ::windows_core::IUnknown, ISpPhrase); impl ISpPhrase2 { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -1699,13 +1505,6 @@ impl ISpPhrase2 { (::windows_core::Interface::vtable(self).GetAudio)(::windows_core::Interface::as_raw(self), ulstartelement, celements, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISpPhrase2, ::windows_core::IUnknown, ISpPhrase); -unsafe impl ::windows_core::Interface for ISpPhrase2 { - type Vtable = ISpPhrase2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpPhrase2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf264da52_e457_4696_b856_a737b717af79); -} #[repr(C)] #[doc(hidden)] pub struct ISpPhrase2_Vtbl { @@ -1717,9 +1516,8 @@ pub struct ISpPhrase2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetAudio: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpPhraseAlt(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpPhraseAlt, ISpPhraseAlt_Vtbl, 0x8fcebc98_4e49_4067_9c6c_d86a0e092e3d); +::windows_core::imp::interface_hierarchy!(ISpPhraseAlt, ::windows_core::IUnknown, ISpPhrase); impl ISpPhraseAlt { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -1747,13 +1545,6 @@ impl ISpPhraseAlt { (::windows_core::Interface::vtable(self).Commit)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ISpPhraseAlt, ::windows_core::IUnknown, ISpPhrase); -unsafe impl ::windows_core::Interface for ISpPhraseAlt { - type Vtable = ISpPhraseAlt_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpPhraseAlt { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8fcebc98_4e49_4067_9c6c_d86a0e092e3d); -} #[repr(C)] #[doc(hidden)] pub struct ISpPhraseAlt_Vtbl { @@ -1761,9 +1552,8 @@ pub struct ISpPhraseAlt_Vtbl { pub GetAltInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppparent: *mut *mut ::core::ffi::c_void, pulstartelementinparent: *mut u32, pcelementsinparent: *mut u32, pcelementsinalt: *mut u32) -> ::windows_core::HRESULT, pub Commit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpProperties(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpProperties, ISpProperties_Vtbl, 0x5b4fb971_b115_4de1_ad97_e482e3bf6ee4); +::windows_core::imp::interface_hierarchy!(ISpProperties, ::windows_core::IUnknown); impl ISpProperties { pub unsafe fn SetPropertyNum(&self, pname: P0, lvalue: i32) -> ::windows_core::Result<()> where @@ -1792,13 +1582,6 @@ impl ISpProperties { (::windows_core::Interface::vtable(self).GetPropertyString)(::windows_core::Interface::as_raw(self), pname.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISpProperties, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpProperties { - type Vtable = ISpProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5b4fb971_b115_4de1_ad97_e482e3bf6ee4); -} #[repr(C)] #[doc(hidden)] pub struct ISpProperties_Vtbl { @@ -1808,9 +1591,8 @@ pub struct ISpProperties_Vtbl { pub SetPropertyString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pname: ::windows_core::PCWSTR, pvalue: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub GetPropertyString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pname: ::windows_core::PCWSTR, ppcomemvalue: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpRecoContext(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpRecoContext, ISpRecoContext_Vtbl, 0xf740a62f_7c15_489e_8234_940a33d9272d); +::windows_core::imp::interface_hierarchy!(ISpRecoContext, ::windows_core::IUnknown, ISpNotifySource, ISpEventSource); impl ISpRecoContext { pub unsafe fn SetNotifySink(&self, pnotifysink: P0) -> ::windows_core::Result<()> where @@ -1932,13 +1714,6 @@ impl ISpRecoContext { (::windows_core::Interface::vtable(self).GetContextState)(::windows_core::Interface::as_raw(self), pecontextstate).ok() } } -::windows_core::imp::interface_hierarchy!(ISpRecoContext, ::windows_core::IUnknown, ISpNotifySource, ISpEventSource); -unsafe impl ::windows_core::Interface for ISpRecoContext { - type Vtable = ISpRecoContext_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpRecoContext { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf740a62f_7c15_489e_8234_940a33d9272d); -} #[repr(C)] #[doc(hidden)] pub struct ISpRecoContext_Vtbl { @@ -1968,9 +1743,8 @@ pub struct ISpRecoContext_Vtbl { pub SetContextState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, econtextstate: SPCONTEXTSTATE) -> ::windows_core::HRESULT, pub GetContextState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pecontextstate: *mut SPCONTEXTSTATE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpRecoContext2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpRecoContext2, ISpRecoContext2_Vtbl, 0xbead311c_52ff_437f_9464_6b21054ca73d); +::windows_core::imp::interface_hierarchy!(ISpRecoContext2, ::windows_core::IUnknown); impl ISpRecoContext2 { pub unsafe fn SetGrammarOptions(&self, egrammaroptions: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetGrammarOptions)(::windows_core::Interface::as_raw(self), egrammaroptions).ok() @@ -1986,13 +1760,6 @@ impl ISpRecoContext2 { (::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::imp::interface_hierarchy!(ISpRecoContext2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpRecoContext2 { - type Vtable = ISpRecoContext2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpRecoContext2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbead311c_52ff_437f_9464_6b21054ca73d); -} #[repr(C)] #[doc(hidden)] pub struct ISpRecoContext2_Vtbl { @@ -2001,9 +1768,8 @@ pub struct ISpRecoContext2_Vtbl { pub GetGrammarOptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pegrammaroptions: *mut u32) -> ::windows_core::HRESULT, pub SetAdaptationData2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, padaptationdata: ::windows_core::PCWSTR, cch: u32, ptopicname: ::windows_core::PCWSTR, eadaptationsettings: u32, erelevance: SPADAPTATIONRELEVANCE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpRecoGrammar(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpRecoGrammar, ISpRecoGrammar_Vtbl, 0x2177db29_7f45_47d0_8554_067e91c80502); +::windows_core::imp::interface_hierarchy!(ISpRecoGrammar, ::windows_core::IUnknown, ISpGrammarBuilder); impl ISpRecoGrammar { pub unsafe fn ResetGrammar(&self, newlanguage: u16) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.ResetGrammar)(::windows_core::Interface::as_raw(self), newlanguage).ok() @@ -2143,13 +1909,6 @@ impl ISpRecoGrammar { (::windows_core::Interface::vtable(self).GetGrammarState)(::windows_core::Interface::as_raw(self), pegrammarstate).ok() } } -::windows_core::imp::interface_hierarchy!(ISpRecoGrammar, ::windows_core::IUnknown, ISpGrammarBuilder); -unsafe impl ::windows_core::Interface for ISpRecoGrammar { - type Vtable = ISpRecoGrammar_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpRecoGrammar { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2177db29_7f45_47d0_8554_067e91c80502); -} #[repr(C)] #[doc(hidden)] pub struct ISpRecoGrammar_Vtbl { @@ -2176,9 +1935,8 @@ pub struct ISpRecoGrammar_Vtbl { SaveCmd: usize, pub GetGrammarState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pegrammarstate: *mut SPGRAMMARSTATE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpRecoGrammar2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpRecoGrammar2, ISpRecoGrammar2_Vtbl, 0x4b37bc9e_9ed6_44a3_93d3_18f022b79ec3); +::windows_core::imp::interface_hierarchy!(ISpRecoGrammar2, ::windows_core::IUnknown); impl ISpRecoGrammar2 { pub unsafe fn GetRules(&self, ppcomemrules: *mut *mut SPRULE, punumrules: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetRules)(::windows_core::Interface::as_raw(self), ppcomemrules, punumrules).ok() @@ -2230,13 +1988,6 @@ impl ISpRecoGrammar2 { (::windows_core::Interface::vtable(self).SetSMLSecurityManager)(::windows_core::Interface::as_raw(self), psmlsecuritymanager.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ISpRecoGrammar2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpRecoGrammar2 { - type Vtable = ISpRecoGrammar2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpRecoGrammar2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4b37bc9e_9ed6_44a3_93d3_18f022b79ec3); -} #[repr(C)] #[doc(hidden)] pub struct ISpRecoGrammar2_Vtbl { @@ -2256,9 +2007,8 @@ pub struct ISpRecoGrammar2_Vtbl { #[cfg(not(feature = "Win32_System_Com_Urlmon"))] SetSMLSecurityManager: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpRecoResult(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpRecoResult, ISpRecoResult_Vtbl, 0x20b053be_e235_43cd_9a2a_8d17a48b7842); +::windows_core::imp::interface_hierarchy!(ISpRecoResult, ::windows_core::IUnknown, ISpPhrase); impl ISpRecoResult { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -2307,13 +2057,6 @@ impl ISpRecoResult { (::windows_core::Interface::vtable(self).GetRecoContext)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISpRecoResult, ::windows_core::IUnknown, ISpPhrase); -unsafe impl ::windows_core::Interface for ISpRecoResult { - type Vtable = ISpRecoResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpRecoResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x20b053be_e235_43cd_9a2a_8d17a48b7842); -} #[repr(C)] #[doc(hidden)] pub struct ISpRecoResult_Vtbl { @@ -2332,9 +2075,8 @@ pub struct ISpRecoResult_Vtbl { ScaleAudio: usize, pub GetRecoContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pprecocontext: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpRecoResult2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpRecoResult2, ISpRecoResult2_Vtbl, 0x27cac6c4_88f2_41f2_8817_0c95e59f1e6e); +::windows_core::imp::interface_hierarchy!(ISpRecoResult2, ::windows_core::IUnknown, ISpPhrase, ISpRecoResult); impl ISpRecoResult2 { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -2403,13 +2145,6 @@ impl ISpRecoResult2 { (::windows_core::Interface::vtable(self).SetTextFeedback)(::windows_core::Interface::as_raw(self), pszfeedback.into_param().abi(), fsuccessful.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ISpRecoResult2, ::windows_core::IUnknown, ISpPhrase, ISpRecoResult); -unsafe impl ::windows_core::Interface for ISpRecoResult2 { - type Vtable = ISpRecoResult2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpRecoResult2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x27cac6c4_88f2_41f2_8817_0c95e59f1e6e); -} #[repr(C)] #[doc(hidden)] pub struct ISpRecoResult2_Vtbl { @@ -2418,9 +2153,8 @@ pub struct ISpRecoResult2_Vtbl { pub CommitText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulstartelement: u32, celements: u32, pszcorrecteddata: ::windows_core::PCWSTR, ecommitflags: u32) -> ::windows_core::HRESULT, pub SetTextFeedback: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszfeedback: ::windows_core::PCWSTR, fsuccessful: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpRecognizer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpRecognizer, ISpRecognizer_Vtbl, 0xc2b5f241_daa0_4507_9e16_5a1eaa2b7a5c); +::windows_core::imp::interface_hierarchy!(ISpRecognizer, ::windows_core::IUnknown, ISpProperties); impl ISpRecognizer { pub unsafe fn SetPropertyNum(&self, pname: P0, lvalue: i32) -> ::windows_core::Result<()> where @@ -2527,13 +2261,6 @@ impl ISpRecognizer { (::windows_core::Interface::vtable(self).EmulateRecognition)(::windows_core::Interface::as_raw(self), pphrase.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ISpRecognizer, ::windows_core::IUnknown, ISpProperties); -unsafe impl ::windows_core::Interface for ISpRecognizer { - type Vtable = ISpRecognizer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpRecognizer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc2b5f241_daa0_4507_9e16_5a1eaa2b7a5c); -} #[repr(C)] #[doc(hidden)] pub struct ISpRecognizer_Vtbl { @@ -2561,9 +2288,8 @@ pub struct ISpRecognizer_Vtbl { pub DisplayUI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwndparent: super::super::Foundation::HWND, psztitle: ::windows_core::PCWSTR, psztypeofui: ::windows_core::PCWSTR, pvextradata: *mut ::core::ffi::c_void, cbextradata: u32) -> ::windows_core::HRESULT, pub EmulateRecognition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pphrase: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpRecognizer2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpRecognizer2, ISpRecognizer2_Vtbl, 0x8fc6d974_c81e_4098_93c5_0147f61ed4d3); +::windows_core::imp::interface_hierarchy!(ISpRecognizer2, ::windows_core::IUnknown); impl ISpRecognizer2 { pub unsafe fn EmulateRecognitionEx(&self, pphrase: P0, dwcompareflags: u32) -> ::windows_core::Result<()> where @@ -2582,13 +2308,6 @@ impl ISpRecognizer2 { (::windows_core::Interface::vtable(self).ResetAcousticModelAdaptation)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ISpRecognizer2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpRecognizer2 { - type Vtable = ISpRecognizer2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpRecognizer2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8fc6d974_c81e_4098_93c5_0147f61ed4d3); -} #[repr(C)] #[doc(hidden)] pub struct ISpRecognizer2_Vtbl { @@ -2597,9 +2316,8 @@ pub struct ISpRecognizer2_Vtbl { pub SetTrainingState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fdoingtraining: super::super::Foundation::BOOL, fadaptfromtrainingdata: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub ResetAcousticModelAdaptation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpRegDataKey(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpRegDataKey, ISpRegDataKey_Vtbl, 0x92a66e2b_c830_4149_83df_6fc2ba1e7a5b); +::windows_core::imp::interface_hierarchy!(ISpRegDataKey, ::windows_core::IUnknown, ISpDataKey); impl ISpRegDataKey { pub unsafe fn SetData(&self, pszvaluename: P0, cbdata: u32, pdata: *const u8) -> ::windows_core::Result<()> where @@ -2683,13 +2401,6 @@ impl ISpRegDataKey { (::windows_core::Interface::vtable(self).SetKey)(::windows_core::Interface::as_raw(self), hkey.into_param().abi(), freadonly.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ISpRegDataKey, ::windows_core::IUnknown, ISpDataKey); -unsafe impl ::windows_core::Interface for ISpRegDataKey { - type Vtable = ISpRegDataKey_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpRegDataKey { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x92a66e2b_c830_4149_83df_6fc2ba1e7a5b); -} #[repr(C)] #[doc(hidden)] pub struct ISpRegDataKey_Vtbl { @@ -2699,18 +2410,22 @@ pub struct ISpRegDataKey_Vtbl { #[cfg(not(feature = "Win32_System_Registry"))] SetKey: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpResourceManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISpResourceManager, + ISpResourceManager_Vtbl, + 0x93384e18_5014_43d5_adbb_a78e055926bd +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISpResourceManager, ::windows_core::IUnknown, super::super::System::Com::IServiceProvider); #[cfg(feature = "Win32_System_Com")] impl ISpResourceManager { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] pub unsafe fn QueryService(&self, guidservice: *const ::windows_core::GUID) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.QueryService)(::windows_core::Interface::as_raw(self), guidservice, &T::IID, &mut result__).from_abi(result__) @@ -2729,16 +2444,6 @@ impl ISpResourceManager { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISpResourceManager, ::windows_core::IUnknown, super::super::System::Com::IServiceProvider); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISpResourceManager { - type Vtable = ISpResourceManager_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISpResourceManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x93384e18_5014_43d5_adbb_a78e055926bd); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISpResourceManager_Vtbl { @@ -2746,9 +2451,8 @@ pub struct ISpResourceManager_Vtbl { pub SetObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guidserviceid: *const ::windows_core::GUID, punkobject: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guidserviceid: *const ::windows_core::GUID, objectclsid: *const ::windows_core::GUID, objectiid: *const ::windows_core::GUID, freleasewhenlastexternalrefreleased: super::super::Foundation::BOOL, ppobject: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpSerializeState(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpSerializeState, ISpSerializeState_Vtbl, 0x21b501a0_0ec7_46c9_92c3_a2bc784c54b9); +::windows_core::imp::interface_hierarchy!(ISpSerializeState, ::windows_core::IUnknown); impl ISpSerializeState { pub unsafe fn GetSerializedState(&self, ppbdata: *mut *mut u8, pulsize: *mut u32, dwreserved: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetSerializedState)(::windows_core::Interface::as_raw(self), ppbdata, pulsize, dwreserved).ok() @@ -2757,13 +2461,6 @@ impl ISpSerializeState { (::windows_core::Interface::vtable(self).SetSerializedState)(::windows_core::Interface::as_raw(self), pbdata, ulsize, dwreserved).ok() } } -::windows_core::imp::interface_hierarchy!(ISpSerializeState, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpSerializeState { - type Vtable = ISpSerializeState_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpSerializeState { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x21b501a0_0ec7_46c9_92c3_a2bc784c54b9); -} #[repr(C)] #[doc(hidden)] pub struct ISpSerializeState_Vtbl { @@ -2771,9 +2468,8 @@ pub struct ISpSerializeState_Vtbl { pub GetSerializedState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppbdata: *mut *mut u8, pulsize: *mut u32, dwreserved: u32) -> ::windows_core::HRESULT, pub SetSerializedState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbdata: *const u8, ulsize: u32, dwreserved: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpShortcut(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpShortcut, ISpShortcut_Vtbl, 0x3df681e2_ea56_11d9_8bde_f66bad1e3f3a); +::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 @@ -2809,13 +2505,6 @@ impl ISpShortcut { (::windows_core::Interface::vtable(self).GetGenerationChange)(::windows_core::Interface::as_raw(self), pdwgeneration, pshortcutpairlist).ok() } } -::windows_core::imp::interface_hierarchy!(ISpShortcut, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpShortcut { - type Vtable = ISpShortcut_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpShortcut { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3df681e2_ea56_11d9_8bde_f66bad1e3f3a); -} #[repr(C)] #[doc(hidden)] pub struct ISpShortcut_Vtbl { @@ -2829,11 +2518,15 @@ pub struct ISpShortcut_Vtbl { pub GetShortcutsForGeneration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwgeneration: *mut u32, pdwcookie: *mut u32, pshortcutpairlist: *mut SPSHORTCUTPAIRLIST) -> ::windows_core::HRESULT, pub GetGenerationChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwgeneration: *mut u32, pshortcutpairlist: *mut SPSHORTCUTPAIRLIST) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpStream(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISpStream, + ISpStream_Vtbl, + 0x12e3cca9_7518_44c5_a5e7_ba5a79cb929e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISpStream, ::windows_core::IUnknown, super::super::System::Com::ISequentialStream, super::super::System::Com::IStream, ISpStreamFormat); #[cfg(feature = "Win32_System_Com")] impl ISpStream { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2928,16 +2621,6 @@ impl ISpStream { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISpStream, ::windows_core::IUnknown, super::super::System::Com::ISequentialStream, super::super::System::Com::IStream, ISpStreamFormat); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISpStream { - type Vtable = ISpStream_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISpStream { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x12e3cca9_7518_44c5_a5e7_ba5a79cb929e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISpStream_Vtbl { @@ -2956,11 +2639,15 @@ pub struct ISpStream_Vtbl { BindToFile: usize, pub Close: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpStreamFormat(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISpStreamFormat, + ISpStreamFormat_Vtbl, + 0xbed530be_2606_4f4d_a1c0_54c5cda5566f +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISpStreamFormat, ::windows_core::IUnknown, super::super::System::Com::ISequentialStream, super::super::System::Com::IStream); #[cfg(feature = "Win32_System_Com")] impl ISpStreamFormat { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3030,16 +2717,6 @@ impl ISpStreamFormat { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISpStreamFormat, ::windows_core::IUnknown, super::super::System::Com::ISequentialStream, super::super::System::Com::IStream); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISpStreamFormat { - type Vtable = ISpStreamFormat_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISpStreamFormat { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbed530be_2606_4f4d_a1c0_54c5cda5566f); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISpStreamFormat_Vtbl { @@ -3049,11 +2726,15 @@ pub struct ISpStreamFormat_Vtbl { #[cfg(not(feature = "Win32_Media_Audio"))] GetFormat: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpStreamFormatConverter(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISpStreamFormatConverter, + ISpStreamFormatConverter_Vtbl, + 0x678a932c_ea71_4446_9b41_78fda6280a29 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISpStreamFormatConverter, ::windows_core::IUnknown, super::super::System::Com::ISequentialStream, super::super::System::Com::IStream, ISpStreamFormat); #[cfg(feature = "Win32_System_Com")] impl ISpStreamFormatConverter { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3155,16 +2836,6 @@ impl ISpStreamFormatConverter { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISpStreamFormatConverter, ::windows_core::IUnknown, super::super::System::Com::ISequentialStream, super::super::System::Com::IStream, ISpStreamFormat); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISpStreamFormatConverter { - type Vtable = ISpStreamFormatConverter_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISpStreamFormatConverter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x678a932c_ea71_4446_9b41_78fda6280a29); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISpStreamFormatConverter_Vtbl { @@ -3185,9 +2856,8 @@ pub struct ISpStreamFormatConverter_Vtbl { pub ScaleConvertedToBaseOffset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulloffsetconvertedstream: u64, pulloffsetbasestream: *mut u64) -> ::windows_core::HRESULT, pub ScaleBaseToConvertedOffset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulloffsetbasestream: u64, pulloffsetconvertedstream: *mut u64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpTranscript(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpTranscript, ISpTranscript_Vtbl, 0x10f63bce_201a_11d3_ac70_00c04f8ee6c0); +::windows_core::imp::interface_hierarchy!(ISpTranscript, ::windows_core::IUnknown); impl ISpTranscript { pub unsafe fn GetTranscript(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); @@ -3200,13 +2870,6 @@ impl ISpTranscript { (::windows_core::Interface::vtable(self).AppendTranscript)(::windows_core::Interface::as_raw(self), psztranscript.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ISpTranscript, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpTranscript { - type Vtable = ISpTranscript_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpTranscript { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x10f63bce_201a_11d3_ac70_00c04f8ee6c0); -} #[repr(C)] #[doc(hidden)] pub struct ISpTranscript_Vtbl { @@ -3214,9 +2877,8 @@ pub struct ISpTranscript_Vtbl { pub GetTranscript: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppsztranscript: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, pub AppendTranscript: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psztranscript: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpVoice(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpVoice, ISpVoice_Vtbl, 0x6c44df74_72b9_4992_a1ec_ef996e0422d4); +::windows_core::imp::interface_hierarchy!(ISpVoice, ::windows_core::IUnknown, ISpNotifySource, ISpEventSource); impl ISpVoice { pub unsafe fn SetNotifySink(&self, pnotifysink: P0) -> ::windows_core::Result<()> where @@ -3372,13 +3034,6 @@ impl ISpVoice { (::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::imp::interface_hierarchy!(ISpVoice, ::windows_core::IUnknown, ISpNotifySource, ISpEventSource); -unsafe impl ::windows_core::Interface for ISpVoice { - type Vtable = ISpVoice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpVoice { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6c44df74_72b9_4992_a1ec_ef996e0422d4); -} #[repr(C)] #[doc(hidden)] pub struct ISpVoice_Vtbl { @@ -3415,9 +3070,8 @@ pub struct ISpVoice_Vtbl { pub IsUISupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psztypeofui: ::windows_core::PCWSTR, pvextradata: *mut ::core::ffi::c_void, cbextradata: u32, pfsupported: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub DisplayUI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwndparent: super::super::Foundation::HWND, psztitle: ::windows_core::PCWSTR, psztypeofui: ::windows_core::PCWSTR, pvextradata: *mut ::core::ffi::c_void, cbextradata: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpXMLRecoResult(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpXMLRecoResult, ISpXMLRecoResult_Vtbl, 0xae39362b_45a8_4074_9b9e_ccf49aa2d0b6); +::windows_core::imp::interface_hierarchy!(ISpXMLRecoResult, ::windows_core::IUnknown, ISpPhrase, ISpRecoResult); impl ISpXMLRecoResult { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -3472,13 +3126,6 @@ impl ISpXMLRecoResult { (::windows_core::Interface::vtable(self).GetXMLErrorInfo)(::windows_core::Interface::as_raw(self), psemanticerrorinfo).ok() } } -::windows_core::imp::interface_hierarchy!(ISpXMLRecoResult, ::windows_core::IUnknown, ISpPhrase, ISpRecoResult); -unsafe impl ::windows_core::Interface for ISpXMLRecoResult { - type Vtable = ISpXMLRecoResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpXMLRecoResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xae39362b_45a8_4074_9b9e_ccf49aa2d0b6); -} #[repr(C)] #[doc(hidden)] pub struct ISpXMLRecoResult_Vtbl { @@ -3486,11 +3133,15 @@ pub struct ISpXMLRecoResult_Vtbl { pub GetXMLResult: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppszcomemxmlresult: *mut ::windows_core::PWSTR, options: SPXMLRESULTOPTIONS) -> ::windows_core::HRESULT, pub GetXMLErrorInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psemanticerrorinfo: *mut SPSEMANTICERRORINFO) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechAudio(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISpeechAudio, + ISpeechAudio_Vtbl, + 0xcff8e175_019e_11d3_a08e_00c04f8ef9b5 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISpeechAudio, ::windows_core::IUnknown, super::super::System::Com::IDispatch, ISpeechBaseStream); #[cfg(feature = "Win32_System_Com")] impl ISpeechAudio { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3565,16 +3216,6 @@ impl ISpeechAudio { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISpeechAudio, ::windows_core::IUnknown, super::super::System::Com::IDispatch, ISpeechBaseStream); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISpeechAudio { - type Vtable = ISpeechAudio_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISpeechAudio { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcff8e175_019e_11d3_a08e_00c04f8ef9b5); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISpeechAudio_Vtbl { @@ -3598,11 +3239,15 @@ pub struct ISpeechAudio_Vtbl { pub EventHandle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventhandle: *mut i32) -> ::windows_core::HRESULT, pub SetState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, state: SpeechAudioState) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechAudioBufferInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISpeechAudioBufferInfo, + ISpeechAudioBufferInfo_Vtbl, + 0x11b103d8_1142_4edf_a093_82fb3915f8cc +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISpeechAudioBufferInfo, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISpeechAudioBufferInfo { pub unsafe fn MinNotification(&self) -> ::windows_core::Result { @@ -3628,16 +3273,6 @@ impl ISpeechAudioBufferInfo { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISpeechAudioBufferInfo, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISpeechAudioBufferInfo { - type Vtable = ISpeechAudioBufferInfo_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISpeechAudioBufferInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x11b103d8_1142_4edf_a093_82fb3915f8cc); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISpeechAudioBufferInfo_Vtbl { @@ -3649,11 +3284,15 @@ pub struct ISpeechAudioBufferInfo_Vtbl { pub EventBias: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventbias: *mut i32) -> ::windows_core::HRESULT, pub SetEventBias: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventbias: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechAudioFormat(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISpeechAudioFormat, + ISpeechAudioFormat_Vtbl, + 0xe6e9c590_3e18_40e3_8299_061f98bde7c7 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISpeechAudioFormat, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISpeechAudioFormat { pub unsafe fn Type(&self) -> ::windows_core::Result { @@ -3689,16 +3328,6 @@ impl ISpeechAudioFormat { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISpeechAudioFormat, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISpeechAudioFormat { - type Vtable = ISpeechAudioFormat_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISpeechAudioFormat { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe6e9c590_3e18_40e3_8299_061f98bde7c7); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISpeechAudioFormat_Vtbl { @@ -3716,11 +3345,15 @@ pub struct ISpeechAudioFormat_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] SetWaveFormatEx: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechAudioStatus(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISpeechAudioStatus, + ISpeechAudioStatus_Vtbl, + 0xc62d9c91_7458_47f6_862d_1ef86fb0b278 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISpeechAudioStatus, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISpeechAudioStatus { pub unsafe fn FreeBufferSpace(&self) -> ::windows_core::Result { @@ -3749,16 +3382,6 @@ impl ISpeechAudioStatus { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISpeechAudioStatus, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISpeechAudioStatus { - type Vtable = ISpeechAudioStatus_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISpeechAudioStatus { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc62d9c91_7458_47f6_862d_1ef86fb0b278); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISpeechAudioStatus_Vtbl { @@ -3775,11 +3398,15 @@ pub struct ISpeechAudioStatus_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] CurrentDevicePosition: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechBaseStream(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISpeechBaseStream, + ISpeechBaseStream_Vtbl, + 0x6450336f_7d49_4ced_8097_49d6dee37294 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISpeechBaseStream, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISpeechBaseStream { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3815,16 +3442,6 @@ impl ISpeechBaseStream { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISpeechBaseStream, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISpeechBaseStream { - type Vtable = ISpeechBaseStream_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISpeechBaseStream { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6450336f_7d49_4ced_8097_49d6dee37294); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISpeechBaseStream_Vtbl { @@ -3850,11 +3467,15 @@ pub struct ISpeechBaseStream_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] Seek: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechCustomStream(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISpeechCustomStream, + ISpeechCustomStream_Vtbl, + 0x1a9e9f4f_104f_4db8_a115_efd7fd0c97ae +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISpeechCustomStream, ::windows_core::IUnknown, super::super::System::Com::IDispatch, ISpeechBaseStream); #[cfg(feature = "Win32_System_Com")] impl ISpeechCustomStream { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3900,16 +3521,6 @@ impl ISpeechCustomStream { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISpeechCustomStream, ::windows_core::IUnknown, super::super::System::Com::IDispatch, ISpeechBaseStream); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISpeechCustomStream { - type Vtable = ISpeechCustomStream_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISpeechCustomStream { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1a9e9f4f_104f_4db8_a115_efd7fd0c97ae); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISpeechCustomStream_Vtbl { @@ -3917,11 +3528,15 @@ pub struct ISpeechCustomStream_Vtbl { pub BaseStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppunkstream: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub putref_BaseStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punkstream: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechDataKey(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISpeechDataKey, + ISpeechDataKey_Vtbl, + 0xce17c09b_4efa_44d5_a4c9_59d9585ab0cd +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISpeechDataKey, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISpeechDataKey { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4008,16 +3623,6 @@ impl ISpeechDataKey { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISpeechDataKey, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISpeechDataKey { - type Vtable = ISpeechDataKey_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISpeechDataKey { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xce17c09b_4efa_44d5_a4c9_59d9585ab0cd); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISpeechDataKey_Vtbl { @@ -4047,11 +3652,15 @@ pub struct ISpeechDataKey_Vtbl { pub EnumKeys: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32, subkeyname: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub EnumValues: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32, valuename: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechFileStream(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISpeechFileStream, + ISpeechFileStream_Vtbl, + 0xaf67f125_ab39_4e93_b4a2_cc2e66e182a7 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISpeechFileStream, ::windows_core::IUnknown, super::super::System::Com::IDispatch, ISpeechBaseStream); #[cfg(feature = "Win32_System_Com")] impl ISpeechFileStream { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -4097,16 +3706,6 @@ impl ISpeechFileStream { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISpeechFileStream, ::windows_core::IUnknown, super::super::System::Com::IDispatch, ISpeechBaseStream); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISpeechFileStream { - type Vtable = ISpeechFileStream_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISpeechFileStream { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaf67f125_ab39_4e93_b4a2_cc2e66e182a7); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISpeechFileStream_Vtbl { @@ -4114,11 +3713,15 @@ pub struct ISpeechFileStream_Vtbl { pub Open: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filename: ::std::mem::MaybeUninit<::windows_core::BSTR>, filemode: SpeechStreamFileMode, doevents: super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub Close: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechGrammarRule(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISpeechGrammarRule, + ISpeechGrammarRule_Vtbl, + 0xafe719cf_5dd1_44f2_999c_7a399f1cfccc +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISpeechGrammarRule, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISpeechGrammarRule { pub unsafe fn Attributes(&self) -> ::windows_core::Result { @@ -4157,16 +3760,6 @@ impl ISpeechGrammarRule { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISpeechGrammarRule, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISpeechGrammarRule { - type Vtable = ISpeechGrammarRule_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISpeechGrammarRule { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xafe719cf_5dd1_44f2_999c_7a399f1cfccc); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISpeechGrammarRule_Vtbl { @@ -4185,11 +3778,15 @@ pub struct ISpeechGrammarRule_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] AddState: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechGrammarRuleState(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISpeechGrammarRuleState, + ISpeechGrammarRuleState_Vtbl, + 0xd4286f2c_ee67_45ae_b928_28d695362eda +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISpeechGrammarRuleState, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISpeechGrammarRuleState { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -4236,16 +3833,6 @@ impl ISpeechGrammarRuleState { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISpeechGrammarRuleState, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISpeechGrammarRuleState { - type Vtable = ISpeechGrammarRuleState_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISpeechGrammarRuleState { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd4286f2c_ee67_45ae_b928_28d695362eda); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISpeechGrammarRuleState_Vtbl { @@ -4271,11 +3858,15 @@ pub struct ISpeechGrammarRuleState_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] AddSpecialTransition: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechGrammarRuleStateTransition(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISpeechGrammarRuleStateTransition, + ISpeechGrammarRuleStateTransition_Vtbl, + 0xcafd1db1_41d1_4a06_9863_e2e81da17a9a +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISpeechGrammarRuleStateTransition, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISpeechGrammarRuleStateTransition { pub unsafe fn Type(&self) -> ::windows_core::Result { @@ -4320,16 +3911,6 @@ impl ISpeechGrammarRuleStateTransition { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISpeechGrammarRuleStateTransition, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISpeechGrammarRuleStateTransition { - type Vtable = ISpeechGrammarRuleStateTransition_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISpeechGrammarRuleStateTransition { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcafd1db1_41d1_4a06_9863_e2e81da17a9a); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISpeechGrammarRuleStateTransition_Vtbl { @@ -4355,11 +3936,15 @@ pub struct ISpeechGrammarRuleStateTransition_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] NextState: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechGrammarRuleStateTransitions(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISpeechGrammarRuleStateTransitions, + ISpeechGrammarRuleStateTransitions_Vtbl, + 0xeabce657_75bc_44a2_aa7f_c56476742963 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISpeechGrammarRuleStateTransitions, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISpeechGrammarRuleStateTransitions { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -4378,16 +3963,6 @@ impl ISpeechGrammarRuleStateTransitions { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISpeechGrammarRuleStateTransitions, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISpeechGrammarRuleStateTransitions { - type Vtable = ISpeechGrammarRuleStateTransitions_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISpeechGrammarRuleStateTransitions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeabce657_75bc_44a2_aa7f_c56476742963); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISpeechGrammarRuleStateTransitions_Vtbl { @@ -4399,11 +3974,15 @@ pub struct ISpeechGrammarRuleStateTransitions_Vtbl { Item: usize, pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enumvariant: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechGrammarRules(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISpeechGrammarRules, + ISpeechGrammarRules_Vtbl, + 0x6ffa3b44_fc2d_40d1_8afc_32911c7f1ad1 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISpeechGrammarRules, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISpeechGrammarRules { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -4449,16 +4028,6 @@ impl ISpeechGrammarRules { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISpeechGrammarRules, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISpeechGrammarRules { - type Vtable = ISpeechGrammarRules_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISpeechGrammarRules { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6ffa3b44_fc2d_40d1_8afc_32911c7f1ad1); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISpeechGrammarRules_Vtbl { @@ -4484,11 +4053,15 @@ pub struct ISpeechGrammarRules_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] CommitAndSave: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechLexicon(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISpeechLexicon, + ISpeechLexicon_Vtbl, + 0x3da7627a_c7ae_4b23_8708_638c50362c25 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISpeechLexicon, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISpeechLexicon { pub unsafe fn GenerationId(&self) -> ::windows_core::Result { @@ -4546,16 +4119,6 @@ impl ISpeechLexicon { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISpeechLexicon, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISpeechLexicon { - type Vtable = ISpeechLexicon_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISpeechLexicon { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3da7627a_c7ae_4b23_8708_638c50362c25); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISpeechLexicon_Vtbl { @@ -4584,11 +4147,15 @@ pub struct ISpeechLexicon_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetGenerationChange: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechLexiconPronunciation(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISpeechLexiconPronunciation, + ISpeechLexiconPronunciation_Vtbl, + 0x95252c5d_9e43_4f4a_9899_48ee73352f9f +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISpeechLexiconPronunciation, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISpeechLexiconPronunciation { pub unsafe fn Type(&self) -> ::windows_core::Result { @@ -4615,16 +4182,6 @@ impl ISpeechLexiconPronunciation { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISpeechLexiconPronunciation, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISpeechLexiconPronunciation { - type Vtable = ISpeechLexiconPronunciation_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISpeechLexiconPronunciation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x95252c5d_9e43_4f4a_9899_48ee73352f9f); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISpeechLexiconPronunciation_Vtbl { @@ -4638,11 +4195,15 @@ pub struct ISpeechLexiconPronunciation_Vtbl { PhoneIds: usize, pub Symbolic: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, symbolic: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechLexiconPronunciations(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISpeechLexiconPronunciations, + ISpeechLexiconPronunciations_Vtbl, + 0x72829128_5682_4704_a0d4_3e2bb6f2ead3 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISpeechLexiconPronunciations, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISpeechLexiconPronunciations { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -4661,16 +4222,6 @@ impl ISpeechLexiconPronunciations { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISpeechLexiconPronunciations, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISpeechLexiconPronunciations { - type Vtable = ISpeechLexiconPronunciations_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISpeechLexiconPronunciations { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x72829128_5682_4704_a0d4_3e2bb6f2ead3); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISpeechLexiconPronunciations_Vtbl { @@ -4682,11 +4233,15 @@ pub struct ISpeechLexiconPronunciations_Vtbl { Item: usize, pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enumvariant: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechLexiconWord(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISpeechLexiconWord, + ISpeechLexiconWord_Vtbl, + 0x4e5b933c_c9be_48ed_8842_1ee51bb1d4ff +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISpeechLexiconWord, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISpeechLexiconWord { pub unsafe fn LangId(&self) -> ::windows_core::Result { @@ -4709,16 +4264,6 @@ impl ISpeechLexiconWord { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISpeechLexiconWord, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISpeechLexiconWord { - type Vtable = ISpeechLexiconWord_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISpeechLexiconWord { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4e5b933c_c9be_48ed_8842_1ee51bb1d4ff); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISpeechLexiconWord_Vtbl { @@ -4731,11 +4276,15 @@ pub struct ISpeechLexiconWord_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Pronunciations: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechLexiconWords(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISpeechLexiconWords, + ISpeechLexiconWords_Vtbl, + 0x8d199862_415e_47d5_ac4f_faa608b424e6 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISpeechLexiconWords, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISpeechLexiconWords { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -4754,16 +4303,6 @@ impl ISpeechLexiconWords { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISpeechLexiconWords, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISpeechLexiconWords { - type Vtable = ISpeechLexiconWords_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISpeechLexiconWords { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8d199862_415e_47d5_ac4f_faa608b424e6); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISpeechLexiconWords_Vtbl { @@ -4775,11 +4314,15 @@ pub struct ISpeechLexiconWords_Vtbl { Item: usize, pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enumvariant: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechMMSysAudio(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISpeechMMSysAudio, + ISpeechMMSysAudio_Vtbl, + 0x3c76af6d_1fd7_4831_81d1_3b71d5a13c44 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISpeechMMSysAudio, ::windows_core::IUnknown, super::super::System::Com::IDispatch, ISpeechBaseStream, ISpeechAudio); #[cfg(feature = "Win32_System_Com")] impl ISpeechMMSysAudio { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -4872,16 +4415,6 @@ impl ISpeechMMSysAudio { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISpeechMMSysAudio, ::windows_core::IUnknown, super::super::System::Com::IDispatch, ISpeechBaseStream, ISpeechAudio); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISpeechMMSysAudio { - type Vtable = ISpeechMMSysAudio_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISpeechMMSysAudio { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3c76af6d_1fd7_4831_81d1_3b71d5a13c44); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISpeechMMSysAudio_Vtbl { @@ -4892,11 +4425,15 @@ pub struct ISpeechMMSysAudio_Vtbl { pub SetLineId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lineid: i32) -> ::windows_core::HRESULT, pub MMHandle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handle: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechMemoryStream(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISpeechMemoryStream, + ISpeechMemoryStream_Vtbl, + 0xeeb14b68_808b_4abe_a5ea_b51da7588008 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISpeechMemoryStream, ::windows_core::IUnknown, super::super::System::Com::IDispatch, ISpeechBaseStream); #[cfg(feature = "Win32_System_Com")] impl ISpeechMemoryStream { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -4943,16 +4480,6 @@ impl ISpeechMemoryStream { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISpeechMemoryStream, ::windows_core::IUnknown, super::super::System::Com::IDispatch, ISpeechBaseStream); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISpeechMemoryStream { - type Vtable = ISpeechMemoryStream_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISpeechMemoryStream { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeeb14b68_808b_4abe_a5ea_b51da7588008); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISpeechMemoryStream_Vtbl { @@ -4966,11 +4493,15 @@ pub struct ISpeechMemoryStream_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] GetData: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechObjectToken(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISpeechObjectToken, + ISpeechObjectToken_Vtbl, + 0xc74a3adc_b727_4500_a84a_b526721c8b8c +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISpeechObjectToken, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISpeechObjectToken { pub unsafe fn Id(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -5067,16 +4598,6 @@ impl ISpeechObjectToken { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISpeechObjectToken, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISpeechObjectToken { - type Vtable = ISpeechObjectToken_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISpeechObjectToken { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc74a3adc_b727_4500_a84a_b526721c8b8c); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISpeechObjectToken_Vtbl { @@ -5107,11 +4628,15 @@ pub struct ISpeechObjectToken_Vtbl { DisplayUI: usize, pub MatchesAttributes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, attributes: ::std::mem::MaybeUninit<::windows_core::BSTR>, matches: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechObjectTokenCategory(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISpeechObjectTokenCategory, + ISpeechObjectTokenCategory_Vtbl, + 0xca7eac50_2d01_4145_86d4_5ae7d70f4469 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISpeechObjectTokenCategory, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISpeechObjectTokenCategory { pub unsafe fn Id(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -5153,16 +4678,6 @@ impl ISpeechObjectTokenCategory { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISpeechObjectTokenCategory, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISpeechObjectTokenCategory { - type Vtable = ISpeechObjectTokenCategory_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISpeechObjectTokenCategory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xca7eac50_2d01_4145_86d4_5ae7d70f4469); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISpeechObjectTokenCategory_Vtbl { @@ -5180,11 +4695,15 @@ pub struct ISpeechObjectTokenCategory_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] EnumerateTokens: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechObjectTokens(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISpeechObjectTokens, + ISpeechObjectTokens_Vtbl, + 0x9285b776_2e7b_4bc0_b53e_580eb6fa967f +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISpeechObjectTokens, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISpeechObjectTokens { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -5203,16 +4722,6 @@ impl ISpeechObjectTokens { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISpeechObjectTokens, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISpeechObjectTokens { - type Vtable = ISpeechObjectTokens_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISpeechObjectTokens { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9285b776_2e7b_4bc0_b53e_580eb6fa967f); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISpeechObjectTokens_Vtbl { @@ -5224,11 +4733,15 @@ pub struct ISpeechObjectTokens_Vtbl { Item: usize, pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenumvariant: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechPhoneConverter(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISpeechPhoneConverter, + ISpeechPhoneConverter_Vtbl, + 0xc3e4f353_433f_43d6_89a1_6a62a7054c3d +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISpeechPhoneConverter, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISpeechPhoneConverter { pub unsafe fn LanguageId(&self) -> ::windows_core::Result { @@ -5255,16 +4768,6 @@ impl ISpeechPhoneConverter { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISpeechPhoneConverter, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISpeechPhoneConverter { - type Vtable = ISpeechPhoneConverter_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISpeechPhoneConverter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc3e4f353_433f_43d6_89a1_6a62a7054c3d); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISpeechPhoneConverter_Vtbl { @@ -5280,11 +4783,15 @@ pub struct ISpeechPhoneConverter_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] IdToPhone: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechPhraseAlternate(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISpeechPhraseAlternate, + ISpeechPhraseAlternate_Vtbl, + 0x27864a2a_2b9f_4cb8_92d3_0d2722fd1e73 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISpeechPhraseAlternate, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISpeechPhraseAlternate { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -5312,16 +4819,6 @@ impl ISpeechPhraseAlternate { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISpeechPhraseAlternate, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISpeechPhraseAlternate { - type Vtable = ISpeechPhraseAlternate_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISpeechPhraseAlternate { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x27864a2a_2b9f_4cb8_92d3_0d2722fd1e73); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISpeechPhraseAlternate_Vtbl { @@ -5338,11 +4835,15 @@ pub struct ISpeechPhraseAlternate_Vtbl { PhraseInfo: usize, pub Commit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechPhraseAlternates(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISpeechPhraseAlternates, + ISpeechPhraseAlternates_Vtbl, + 0xb238b6d5_f276_4c3d_a6c1_2974801c3cc2 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISpeechPhraseAlternates, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISpeechPhraseAlternates { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -5361,16 +4862,6 @@ impl ISpeechPhraseAlternates { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISpeechPhraseAlternates, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISpeechPhraseAlternates { - type Vtable = ISpeechPhraseAlternates_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISpeechPhraseAlternates { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb238b6d5_f276_4c3d_a6c1_2974801c3cc2); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISpeechPhraseAlternates_Vtbl { @@ -5382,11 +4873,15 @@ pub struct ISpeechPhraseAlternates_Vtbl { Item: usize, pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enumvariant: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechPhraseElement(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISpeechPhraseElement, + ISpeechPhraseElement_Vtbl, + 0xe6176f96_e373_4801_b223_3b62c068c0b4 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISpeechPhraseElement, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISpeechPhraseElement { pub unsafe fn AudioTimeOffset(&self) -> ::windows_core::Result { @@ -5445,16 +4940,6 @@ impl ISpeechPhraseElement { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISpeechPhraseElement, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISpeechPhraseElement { - type Vtable = ISpeechPhraseElement_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISpeechPhraseElement { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe6176f96_e373_4801_b223_3b62c068c0b4); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISpeechPhraseElement_Vtbl { @@ -5476,11 +4961,15 @@ pub struct ISpeechPhraseElement_Vtbl { pub ActualConfidence: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, actualconfidence: *mut SpeechEngineConfidence) -> ::windows_core::HRESULT, pub EngineConfidence: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, engineconfidence: *mut f32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechPhraseElements(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISpeechPhraseElements, + ISpeechPhraseElements_Vtbl, + 0x0626b328_3478_467d_a0b3_d0853b93dda3 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISpeechPhraseElements, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISpeechPhraseElements { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -5499,16 +4988,6 @@ impl ISpeechPhraseElements { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISpeechPhraseElements, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISpeechPhraseElements { - type Vtable = ISpeechPhraseElements_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISpeechPhraseElements { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0626b328_3478_467d_a0b3_d0853b93dda3); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISpeechPhraseElements_Vtbl { @@ -5520,11 +4999,15 @@ pub struct ISpeechPhraseElements_Vtbl { Item: usize, pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enumvariant: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechPhraseInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISpeechPhraseInfo, + ISpeechPhraseInfo_Vtbl, + 0x961559cf_4e67_4662_8bf0_d93f1fcd61b3 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISpeechPhraseInfo, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISpeechPhraseInfo { pub unsafe fn LanguageId(&self) -> ::windows_core::Result { @@ -5617,16 +5100,6 @@ impl ISpeechPhraseInfo { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISpeechPhraseInfo, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISpeechPhraseInfo { - type Vtable = ISpeechPhraseInfo_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISpeechPhraseInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x961559cf_4e67_4662_8bf0_d93f1fcd61b3); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISpeechPhraseInfo_Vtbl { @@ -5675,11 +5148,15 @@ pub struct ISpeechPhraseInfo_Vtbl { pub GetText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, startelement: i32, elements: i32, usereplacements: super::super::Foundation::VARIANT_BOOL, text: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub GetDisplayAttributes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, startelement: i32, elements: i32, usereplacements: super::super::Foundation::VARIANT_BOOL, displayattributes: *mut SpeechDisplayAttributes) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechPhraseInfoBuilder(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISpeechPhraseInfoBuilder, + ISpeechPhraseInfoBuilder_Vtbl, + 0x3b151836_df3a_4e0a_846c_d2adc9334333 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISpeechPhraseInfoBuilder, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISpeechPhraseInfoBuilder { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5690,16 +5167,6 @@ impl ISpeechPhraseInfoBuilder { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISpeechPhraseInfoBuilder, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISpeechPhraseInfoBuilder { - type Vtable = ISpeechPhraseInfoBuilder_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISpeechPhraseInfoBuilder { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3b151836_df3a_4e0a_846c_d2adc9334333); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISpeechPhraseInfoBuilder_Vtbl { @@ -5709,11 +5176,15 @@ pub struct ISpeechPhraseInfoBuilder_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] RestorePhraseFromMemory: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechPhraseProperties(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISpeechPhraseProperties, + ISpeechPhraseProperties_Vtbl, + 0x08166b47_102e_4b23_a599_bdb98dbfd1f4 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISpeechPhraseProperties, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISpeechPhraseProperties { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -5732,16 +5203,6 @@ impl ISpeechPhraseProperties { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISpeechPhraseProperties, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISpeechPhraseProperties { - type Vtable = ISpeechPhraseProperties_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISpeechPhraseProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x08166b47_102e_4b23_a599_bdb98dbfd1f4); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISpeechPhraseProperties_Vtbl { @@ -5753,11 +5214,15 @@ pub struct ISpeechPhraseProperties_Vtbl { Item: usize, pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enumvariant: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechPhraseProperty(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISpeechPhraseProperty, + ISpeechPhraseProperty_Vtbl, + 0xce563d48_961e_4732_a2e1_378a42b430be +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISpeechPhraseProperty, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISpeechPhraseProperty { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -5804,16 +5269,6 @@ impl ISpeechPhraseProperty { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISpeechPhraseProperty, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISpeechPhraseProperty { - type Vtable = ISpeechPhraseProperty_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISpeechPhraseProperty { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xce563d48_961e_4732_a2e1_378a42b430be); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISpeechPhraseProperty_Vtbl { @@ -5837,11 +5292,15 @@ pub struct ISpeechPhraseProperty_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Children: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechPhraseReplacement(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISpeechPhraseReplacement, + ISpeechPhraseReplacement_Vtbl, + 0x2890a410_53a7_4fb5_94ec_06d4998e3d02 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISpeechPhraseReplacement, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISpeechPhraseReplacement { pub unsafe fn DisplayAttributes(&self) -> ::windows_core::Result { @@ -5862,16 +5321,6 @@ impl ISpeechPhraseReplacement { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISpeechPhraseReplacement, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISpeechPhraseReplacement { - type Vtable = ISpeechPhraseReplacement_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISpeechPhraseReplacement { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2890a410_53a7_4fb5_94ec_06d4998e3d02); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISpeechPhraseReplacement_Vtbl { @@ -5881,11 +5330,15 @@ pub struct ISpeechPhraseReplacement_Vtbl { pub FirstElement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, firstelement: *mut i32) -> ::windows_core::HRESULT, pub NumberOfElements: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, numberofelements: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechPhraseReplacements(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISpeechPhraseReplacements, + ISpeechPhraseReplacements_Vtbl, + 0x38bc662f_2257_4525_959e_2069d2596c05 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISpeechPhraseReplacements, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISpeechPhraseReplacements { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -5904,16 +5357,6 @@ impl ISpeechPhraseReplacements { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISpeechPhraseReplacements, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISpeechPhraseReplacements { - type Vtable = ISpeechPhraseReplacements_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISpeechPhraseReplacements { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x38bc662f_2257_4525_959e_2069d2596c05); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISpeechPhraseReplacements_Vtbl { @@ -5925,11 +5368,15 @@ pub struct ISpeechPhraseReplacements_Vtbl { Item: usize, pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enumvariant: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechPhraseRule(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISpeechPhraseRule, + ISpeechPhraseRule_Vtbl, + 0xa7bfe112_a4a0_48d9_b602_c313843f6964 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISpeechPhraseRule, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISpeechPhraseRule { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -5970,16 +5417,6 @@ impl ISpeechPhraseRule { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISpeechPhraseRule, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISpeechPhraseRule { - type Vtable = ISpeechPhraseRule_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISpeechPhraseRule { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa7bfe112_a4a0_48d9_b602_c313843f6964); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISpeechPhraseRule_Vtbl { @@ -5999,11 +5436,15 @@ pub struct ISpeechPhraseRule_Vtbl { pub Confidence: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, actualconfidence: *mut SpeechEngineConfidence) -> ::windows_core::HRESULT, pub EngineConfidence: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, engineconfidence: *mut f32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechPhraseRules(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISpeechPhraseRules, + ISpeechPhraseRules_Vtbl, + 0x9047d593_01dd_4b72_81a3_e4a0ca69f407 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISpeechPhraseRules, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISpeechPhraseRules { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -6022,16 +5463,6 @@ impl ISpeechPhraseRules { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISpeechPhraseRules, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISpeechPhraseRules { - type Vtable = ISpeechPhraseRules_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISpeechPhraseRules { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9047d593_01dd_4b72_81a3_e4a0ca69f407); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISpeechPhraseRules_Vtbl { @@ -6043,11 +5474,15 @@ pub struct ISpeechPhraseRules_Vtbl { Item: usize, pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enumvariant: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechRecoContext(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISpeechRecoContext, + ISpeechRecoContext_Vtbl, + 0x580aa49d_7e1e_4809_b8e2_57da806104b8 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISpeechRecoContext, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISpeechRecoContext { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -6168,16 +5603,6 @@ impl ISpeechRecoContext { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISpeechRecoContext, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISpeechRecoContext { - type Vtable = ISpeechRecoContext_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISpeechRecoContext { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x580aa49d_7e1e_4809_b8e2_57da806104b8); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISpeechRecoContext_Vtbl { @@ -6232,11 +5657,15 @@ pub struct ISpeechRecoContext_Vtbl { Bookmark: usize, pub SetAdaptationData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, adaptationstring: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechRecoGrammar(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISpeechRecoGrammar, + ISpeechRecoGrammar_Vtbl, + 0xb6d6f79f_2158_4e50_b5bc_9a9ccd852a09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISpeechRecoGrammar, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISpeechRecoGrammar { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6346,16 +5775,6 @@ impl ISpeechRecoGrammar { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISpeechRecoGrammar, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISpeechRecoGrammar { - type Vtable = ISpeechRecoGrammar_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISpeechRecoGrammar { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb6d6f79f_2158_4e50_b5bc_9a9ccd852a09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISpeechRecoGrammar_Vtbl { @@ -6404,11 +5823,15 @@ pub struct ISpeechRecoGrammar_Vtbl { SetTextSelection: usize, pub IsPronounceable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, word: ::std::mem::MaybeUninit<::windows_core::BSTR>, wordpronounceable: *mut SpeechWordPronounceable) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechRecoResult(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISpeechRecoResult, + ISpeechRecoResult_Vtbl, + 0xed2879cf_ced9_4ee6_a534_de0191d5468d +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISpeechRecoResult, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISpeechRecoResult { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -6470,16 +5893,6 @@ impl ISpeechRecoResult { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISpeechRecoResult, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISpeechRecoResult { - type Vtable = ISpeechRecoResult_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISpeechRecoResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xed2879cf_ced9_4ee6_a534_de0191d5468d); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISpeechRecoResult_Vtbl { @@ -6519,11 +5932,15 @@ pub struct ISpeechRecoResult_Vtbl { SaveToMemory: usize, pub DiscardResultInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, valuetypes: SpeechDiscardType) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechRecoResult2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISpeechRecoResult2, + ISpeechRecoResult2_Vtbl, + 0x8e0a246d_d3c8_45de_8657_04290c458c3c +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISpeechRecoResult2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, ISpeechRecoResult); #[cfg(feature = "Win32_System_Com")] impl ISpeechRecoResult2 { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -6592,27 +6009,21 @@ impl ISpeechRecoResult2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISpeechRecoResult2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, ISpeechRecoResult); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISpeechRecoResult2 { - type Vtable = ISpeechRecoResult2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISpeechRecoResult2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8e0a246d_d3c8_45de_8657_04290c458c3c); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISpeechRecoResult2_Vtbl { pub base__: ISpeechRecoResult_Vtbl, pub SetTextFeedback: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, feedback: ::std::mem::MaybeUninit<::windows_core::BSTR>, wassuccessful: super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechRecoResultDispatch(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISpeechRecoResultDispatch, + ISpeechRecoResultDispatch_Vtbl, + 0x6d60eb64_aced_40a6_bbf3_4e557f71dee2 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISpeechRecoResultDispatch, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISpeechRecoResultDispatch { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -6688,16 +6099,6 @@ impl ISpeechRecoResultDispatch { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISpeechRecoResultDispatch, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISpeechRecoResultDispatch { - type Vtable = ISpeechRecoResultDispatch_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISpeechRecoResultDispatch { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6d60eb64_aced_40a6_bbf3_4e557f71dee2); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISpeechRecoResultDispatch_Vtbl { @@ -6740,11 +6141,15 @@ pub struct ISpeechRecoResultDispatch_Vtbl { pub GetXMLErrorInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, linenumber: *mut i32, scriptline: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>, source: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>, description: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>, resultcode: *mut ::windows_core::HRESULT, iserror: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub SetTextFeedback: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, feedback: ::std::mem::MaybeUninit<::windows_core::BSTR>, wassuccessful: super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechRecoResultTimes(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISpeechRecoResultTimes, + ISpeechRecoResultTimes_Vtbl, + 0x62b3b8fb_f6e7_41be_bdcb_056b1c29efc0 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISpeechRecoResultTimes, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISpeechRecoResultTimes { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6771,16 +6176,6 @@ impl ISpeechRecoResultTimes { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISpeechRecoResultTimes, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISpeechRecoResultTimes { - type Vtable = ISpeechRecoResultTimes_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISpeechRecoResultTimes { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x62b3b8fb_f6e7_41be_bdcb_056b1c29efc0); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISpeechRecoResultTimes_Vtbl { @@ -6799,11 +6194,15 @@ pub struct ISpeechRecoResultTimes_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] OffsetFromStart: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechRecognizer(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISpeechRecognizer, + ISpeechRecognizer_Vtbl, + 0x2d5f1c0c_bd75_4b08_9478_3b11fea2586c +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISpeechRecognizer, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISpeechRecognizer { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -6983,16 +6382,6 @@ impl ISpeechRecognizer { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISpeechRecognizer, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISpeechRecognizer { - type Vtable = ISpeechRecognizer_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISpeechRecognizer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2d5f1c0c_bd75_4b08_9478_3b11fea2586c); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISpeechRecognizer_Vtbl { @@ -7075,11 +6464,15 @@ pub struct ISpeechRecognizer_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetProfiles: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechRecognizerStatus(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISpeechRecognizerStatus, + ISpeechRecognizerStatus_Vtbl, + 0xbff9e781_53ec_484e_bb8a_0e1b5551e35c +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISpeechRecognizerStatus, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISpeechRecognizerStatus { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -7114,16 +6507,6 @@ impl ISpeechRecognizerStatus { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISpeechRecognizerStatus, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISpeechRecognizerStatus { - type Vtable = ISpeechRecognizerStatus_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISpeechRecognizerStatus { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbff9e781_53ec_484e_bb8a_0e1b5551e35c); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISpeechRecognizerStatus_Vtbl { @@ -7144,11 +6527,15 @@ pub struct ISpeechRecognizerStatus_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] SupportedLanguages: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechResourceLoader(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISpeechResourceLoader, + ISpeechResourceLoader_Vtbl, + 0xb9ac5783_fcd0_4b21_b119_b4f8da8fd2c3 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISpeechResourceLoader, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISpeechResourceLoader { pub unsafe fn LoadResource(&self, bstrresourceuri: P0, falwaysreload: P1, pstream: *mut ::core::option::Option<::windows_core::IUnknown>, pbstrmimetype: ::core::option::Option<*mut ::windows_core::BSTR>, pfmodified: *mut super::super::Foundation::VARIANT_BOOL, pbstrredirecturl: ::core::option::Option<*mut ::windows_core::BSTR>) -> ::windows_core::Result<()> @@ -7172,16 +6559,6 @@ impl ISpeechResourceLoader { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISpeechResourceLoader, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISpeechResourceLoader { - type Vtable = ISpeechResourceLoader_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISpeechResourceLoader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb9ac5783_fcd0_4b21_b119_b4f8da8fd2c3); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISpeechResourceLoader_Vtbl { @@ -7190,11 +6567,15 @@ pub struct ISpeechResourceLoader_Vtbl { pub GetLocalCopy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrresourceuri: ::std::mem::MaybeUninit<::windows_core::BSTR>, pbstrlocalpath: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>, pbstrmimetype: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>, pbstrredirecturl: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub ReleaseLocalCopy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrlocalpath: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechTextSelectionInformation(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISpeechTextSelectionInformation, + ISpeechTextSelectionInformation_Vtbl, + 0x3b9c7e7a_6eee_4ded_9092_11657279adbe +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISpeechTextSelectionInformation, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISpeechTextSelectionInformation { pub unsafe fn SetActiveOffset(&self, activeoffset: i32) -> ::windows_core::Result<()> { @@ -7227,16 +6608,6 @@ impl ISpeechTextSelectionInformation { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISpeechTextSelectionInformation, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISpeechTextSelectionInformation { - type Vtable = ISpeechTextSelectionInformation_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISpeechTextSelectionInformation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3b9c7e7a_6eee_4ded_9092_11657279adbe); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISpeechTextSelectionInformation_Vtbl { @@ -7250,11 +6621,15 @@ pub struct ISpeechTextSelectionInformation_Vtbl { pub SetSelectionLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, selectionlength: i32) -> ::windows_core::HRESULT, pub SelectionLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, selectionlength: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechVoice(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISpeechVoice, + ISpeechVoice_Vtbl, + 0x269316d8_57bd_11d2_9eee_00c04f797396 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISpeechVoice, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISpeechVoice { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -7434,16 +6809,6 @@ impl ISpeechVoice { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISpeechVoice, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISpeechVoice { - type Vtable = ISpeechVoice_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISpeechVoice { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x269316d8_57bd_11d2_9eee_00c04f797396); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISpeechVoice_Vtbl { @@ -7517,11 +6882,15 @@ pub struct ISpeechVoice_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] DisplayUI: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechVoiceStatus(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISpeechVoiceStatus, + ISpeechVoiceStatus_Vtbl, + 0x8be47b07_57f6_11d2_9eee_00c04f797396 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISpeechVoiceStatus, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISpeechVoiceStatus { pub unsafe fn CurrentStreamNumber(&self) -> ::windows_core::Result { @@ -7574,16 +6943,6 @@ impl ISpeechVoiceStatus { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISpeechVoiceStatus, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISpeechVoiceStatus { - type Vtable = ISpeechVoiceStatus_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISpeechVoiceStatus { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8be47b07_57f6_11d2_9eee_00c04f797396); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISpeechVoiceStatus_Vtbl { @@ -7601,11 +6960,15 @@ pub struct ISpeechVoiceStatus_Vtbl { pub PhonemeId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phoneid: *mut i16) -> ::windows_core::HRESULT, pub VisemeId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, visemeid: *mut i16) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechWaveFormatEx(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISpeechWaveFormatEx, + ISpeechWaveFormatEx_Vtbl, + 0x7a1ef0d5_1581_4741_88e4_209a49f11a10 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISpeechWaveFormatEx, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISpeechWaveFormatEx { pub unsafe fn FormatTag(&self) -> ::windows_core::Result { @@ -7663,16 +7026,6 @@ impl ISpeechWaveFormatEx { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISpeechWaveFormatEx, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISpeechWaveFormatEx { - type Vtable = ISpeechWaveFormatEx_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISpeechWaveFormatEx { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7a1ef0d5_1581_4741_88e4_209a49f11a10); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISpeechWaveFormatEx_Vtbl { @@ -7698,11 +7051,15 @@ pub struct ISpeechWaveFormatEx_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] SetExtraData: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechXMLRecoResult(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISpeechXMLRecoResult, + ISpeechXMLRecoResult_Vtbl, + 0xaaec54af_8f85_4924_944d_b79d39d72e19 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISpeechXMLRecoResult, ::windows_core::IUnknown, super::super::System::Com::IDispatch, ISpeechRecoResult); #[cfg(feature = "Win32_System_Com")] impl ISpeechXMLRecoResult { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -7771,16 +7128,6 @@ impl ISpeechXMLRecoResult { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISpeechXMLRecoResult, ::windows_core::IUnknown, super::super::System::Com::IDispatch, ISpeechRecoResult); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISpeechXMLRecoResult { - type Vtable = ISpeechXMLRecoResult_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISpeechXMLRecoResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaaec54af_8f85_4924_944d_b79d39d72e19); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISpeechXMLRecoResult_Vtbl { @@ -7788,46 +7135,34 @@ pub struct ISpeechXMLRecoResult_Vtbl { pub GetXMLResult: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, options: SPXMLRESULTOPTIONS, presult: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub GetXMLErrorInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, linenumber: *mut i32, scriptline: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>, source: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>, description: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>, resultcode: *mut i32, iserror: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct _ISpeechRecoContextEvents(::windows_core::IUnknown); -#[cfg(feature = "Win32_System_Com")] -impl _ISpeechRecoContextEvents {} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + _ISpeechRecoContextEvents, + _ISpeechRecoContextEvents_Vtbl, + 0x7b8fcb42_0e9d_4f00_a048_7b04d6179d3d +); #[cfg(feature = "Win32_System_Com")] ::windows_core::imp::interface_hierarchy!(_ISpeechRecoContextEvents, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for _ISpeechRecoContextEvents { - type Vtable = _ISpeechRecoContextEvents_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for _ISpeechRecoContextEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7b8fcb42_0e9d_4f00_a048_7b04d6179d3d); -} +impl _ISpeechRecoContextEvents {} #[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct _ISpeechRecoContextEvents_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct _ISpeechVoiceEvents(::windows_core::IUnknown); -#[cfg(feature = "Win32_System_Com")] -impl _ISpeechVoiceEvents {} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + _ISpeechVoiceEvents, + _ISpeechVoiceEvents_Vtbl, + 0xa372acd1_3bef_4bbd_8ffb_cb3e2b416af8 +); #[cfg(feature = "Win32_System_Com")] ::windows_core::imp::interface_hierarchy!(_ISpeechVoiceEvents, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for _ISpeechVoiceEvents { - type Vtable = _ISpeechVoiceEvents_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for _ISpeechVoiceEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa372acd1_3bef_4bbd_8ffb_cb3e2b416af8); -} +impl _ISpeechVoiceEvents {} #[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] diff --git a/crates/libs/windows/src/Windows/Win32/Media/WindowsMediaFormat/impl.rs b/crates/libs/windows/src/Windows/Win32/Media/WindowsMediaFormat/impl.rs index 5c35b07dc5..152bd9ca28 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/WindowsMediaFormat/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/WindowsMediaFormat/impl.rs @@ -92,7 +92,7 @@ impl INSNetSourceCreator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait INSSBuffer_Impl: Sized { @@ -158,7 +158,7 @@ impl INSSBuffer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait INSSBuffer2_Impl: Sized + INSSBuffer_Impl { @@ -191,7 +191,7 @@ impl INSSBuffer2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait INSSBuffer3_Impl: Sized + INSSBuffer2_Impl { @@ -218,7 +218,7 @@ impl INSSBuffer3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait INSSBuffer4_Impl: Sized + INSSBuffer3_Impl { @@ -251,7 +251,7 @@ impl INSSBuffer4_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IWMAddressAccess_Impl: Sized { @@ -304,7 +304,7 @@ impl IWMAddressAccess_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMAddressAccess2_Impl: Sized + IWMAddressAccess_Impl { @@ -331,7 +331,7 @@ impl IWMAddressAccess2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IWMAuthorizer_Impl: Sized { @@ -383,7 +383,7 @@ impl IWMAuthorizer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMBackupRestoreProps_Impl: Sized { @@ -444,7 +444,7 @@ impl IWMBackupRestoreProps_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMBandwidthSharing_Impl: Sized + IWMStreamList_Impl { @@ -491,7 +491,7 @@ impl IWMBandwidthSharing_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IWMClientConnections_Impl: Sized { @@ -530,7 +530,7 @@ impl IWMClientConnections_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMClientConnections2_Impl: Sized + IWMClientConnections_Impl { @@ -547,7 +547,7 @@ impl IWMClientConnections2_Vtbl { Self { base__: IWMClientConnections_Vtbl::new::(), GetClientInfo: GetClientInfo:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IWMCodecInfo_Impl: Sized { @@ -599,7 +599,7 @@ impl IWMCodecInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMCodecInfo2_Impl: Sized + IWMCodecInfo_Impl { @@ -626,7 +626,7 @@ impl IWMCodecInfo2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IWMCodecInfo3_Impl: Sized + IWMCodecInfo2_Impl { @@ -667,7 +667,7 @@ impl IWMCodecInfo3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IWMCredentialCallback_Impl: Sized { @@ -684,7 +684,7 @@ impl IWMCredentialCallback_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), AcquireCredentials: AcquireCredentials:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMDRMEditor_Impl: Sized { @@ -701,7 +701,7 @@ impl IWMDRMEditor_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetDRMProperty: GetDRMProperty:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMDRMMessageParser_Impl: Sized { @@ -728,7 +728,7 @@ impl IWMDRMMessageParser_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMDRMReader_Impl: Sized { @@ -797,7 +797,7 @@ impl IWMDRMReader_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMDRMReader2_Impl: Sized + IWMDRMReader_Impl { @@ -838,7 +838,7 @@ impl IWMDRMReader2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IWMDRMReader3_Impl: Sized + IWMDRMReader2_Impl { @@ -855,7 +855,7 @@ impl IWMDRMReader3_Vtbl { Self { base__: IWMDRMReader2_Vtbl::new::(), GetInclusionList: GetInclusionList:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IWMDRMTranscryptionManager_Impl: Sized { @@ -878,7 +878,7 @@ impl IWMDRMTranscryptionManager_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CreateTranscryptor: CreateTranscryptor:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMDRMTranscryptor_Impl: Sized { @@ -919,7 +919,7 @@ impl IWMDRMTranscryptor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMDRMTranscryptor2_Impl: Sized + IWMDRMTranscryptor_Impl { @@ -972,7 +972,7 @@ impl IWMDRMTranscryptor2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IWMDRMWriter_Impl: Sized { @@ -1013,7 +1013,7 @@ impl IWMDRMWriter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMDRMWriter2_Impl: Sized + IWMDRMWriter_Impl { @@ -1030,7 +1030,7 @@ impl IWMDRMWriter2_Vtbl { Self { base__: IWMDRMWriter_Vtbl::new::(), SetWMDRMNetEncryption: SetWMDRMNetEncryption:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IWMDRMWriter3_Impl: Sized + IWMDRMWriter2_Impl { @@ -1047,7 +1047,7 @@ impl IWMDRMWriter3_Vtbl { Self { base__: IWMDRMWriter2_Vtbl::new::(), SetProtectStreamSamples: SetProtectStreamSamples:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IWMDeviceRegistration_Impl: Sized { @@ -1132,7 +1132,7 @@ impl IWMDeviceRegistration_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMGetSecureChannel_Impl: Sized { @@ -1158,7 +1158,7 @@ impl IWMGetSecureChannel_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMHeaderInfo_Impl: Sized { @@ -1273,7 +1273,7 @@ impl IWMHeaderInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMHeaderInfo2_Impl: Sized + IWMHeaderInfo_Impl { @@ -1306,7 +1306,7 @@ impl IWMHeaderInfo2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IWMHeaderInfo3_Impl: Sized + IWMHeaderInfo2_Impl { @@ -1374,7 +1374,7 @@ impl IWMHeaderInfo3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IWMIStreamProps_Impl: Sized { @@ -1391,7 +1391,7 @@ impl IWMIStreamProps_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetProperty: GetProperty:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMImageInfo_Impl: Sized { @@ -1424,7 +1424,7 @@ impl IWMImageInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMIndexer_Impl: Sized { @@ -1451,7 +1451,7 @@ impl IWMIndexer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMIndexer2_Impl: Sized + IWMIndexer_Impl { @@ -1468,7 +1468,7 @@ impl IWMIndexer2_Vtbl { Self { base__: IWMIndexer_Vtbl::new::(), Configure: Configure:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IWMInputMediaProps_Impl: Sized + IWMMediaProps_Impl { @@ -1495,7 +1495,7 @@ impl IWMInputMediaProps_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IWMLanguageList_Impl: Sized { @@ -1541,7 +1541,7 @@ impl IWMLanguageList_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMLicenseBackup_Impl: Sized { @@ -1568,7 +1568,7 @@ impl IWMLicenseBackup_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMLicenseRestore_Impl: Sized { @@ -1595,7 +1595,7 @@ impl IWMLicenseRestore_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMLicenseRevocationAgent_Impl: Sized { @@ -1622,7 +1622,7 @@ impl IWMLicenseRevocationAgent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMMediaProps_Impl: Sized { @@ -1662,7 +1662,7 @@ impl IWMMediaProps_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMMetadataEditor_Impl: Sized { @@ -1696,7 +1696,7 @@ impl IWMMetadataEditor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMMetadataEditor2_Impl: Sized + IWMMetadataEditor_Impl { @@ -1713,7 +1713,7 @@ impl IWMMetadataEditor2_Vtbl { Self { base__: IWMMetadataEditor_Vtbl::new::(), OpenEx: OpenEx:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IWMMutualExclusion_Impl: Sized + IWMStreamList_Impl { @@ -1746,7 +1746,7 @@ impl IWMMutualExclusion_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IWMMutualExclusion2_Impl: Sized + IWMMutualExclusion_Impl { @@ -1835,7 +1835,7 @@ impl IWMMutualExclusion2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IWMOutputMediaProps_Impl: Sized + IWMMediaProps_Impl { @@ -1862,7 +1862,7 @@ impl IWMOutputMediaProps_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IWMPacketSize_Impl: Sized { @@ -1895,7 +1895,7 @@ impl IWMPacketSize_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMPacketSize2_Impl: Sized + IWMPacketSize_Impl { @@ -1928,7 +1928,7 @@ impl IWMPacketSize2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IWMPlayerHook_Impl: Sized { @@ -1945,7 +1945,7 @@ impl IWMPlayerHook_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), PreDecode: PreDecode:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMPlayerTimestampHook_Impl: Sized { @@ -1968,7 +1968,7 @@ impl IWMPlayerTimestampHook_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), MapTimestamp: MapTimestamp:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMProfile_Impl: Sized { @@ -2155,7 +2155,7 @@ impl IWMProfile_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMProfile2_Impl: Sized + IWMProfile_Impl { @@ -2178,7 +2178,7 @@ impl IWMProfile2_Vtbl { Self { base__: IWMProfile_Vtbl::new::(), GetProfileID: GetProfileID:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IWMProfile3_Impl: Sized + IWMProfile2_Impl { @@ -2317,7 +2317,7 @@ impl IWMProfile3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IWMProfileManager_Impl: Sized { @@ -2402,7 +2402,7 @@ impl IWMProfileManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMProfileManager2_Impl: Sized + IWMProfileManager_Impl { @@ -2429,7 +2429,7 @@ impl IWMProfileManager2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IWMProfileManagerLanguage_Impl: Sized { @@ -2456,7 +2456,7 @@ impl IWMProfileManagerLanguage_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMPropertyVault_Impl: Sized { @@ -2511,7 +2511,7 @@ impl IWMPropertyVault_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMProximityDetection_Impl: Sized { @@ -2528,7 +2528,7 @@ impl IWMProximityDetection_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), StartDetection: StartDetection:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMReader_Impl: Sized { @@ -2642,7 +2642,7 @@ impl IWMReader_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMReaderAccelerator_Impl: Sized { @@ -2669,7 +2669,7 @@ impl IWMReaderAccelerator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMReaderAdvanced_Impl: Sized { @@ -2876,7 +2876,7 @@ impl IWMReaderAdvanced_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3016,7 +3016,7 @@ impl IWMReaderAdvanced2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3047,7 +3047,7 @@ impl IWMReaderAdvanced3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3151,7 +3151,7 @@ impl IWMReaderAdvanced4_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3172,7 +3172,7 @@ impl IWMReaderAdvanced5_Vtbl { Self { base__: IWMReaderAdvanced4_Vtbl::new::(), SetPlayerHook: SetPlayerHook:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3193,7 +3193,7 @@ impl IWMReaderAdvanced6_Vtbl { Self { base__: IWMReaderAdvanced5_Vtbl::new::(), SetProtectStreamSamples: SetProtectStreamSamples:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IWMReaderAllocatorEx_Impl: Sized { @@ -3220,7 +3220,7 @@ impl IWMReaderAllocatorEx_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMReaderCallback_Impl: Sized + IWMStatusCallback_Impl { @@ -3237,7 +3237,7 @@ impl IWMReaderCallback_Vtbl { Self { base__: IWMStatusCallback_Vtbl::new::(), OnSample: OnSample:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IWMReaderCallbackAdvanced_Impl: Sized { @@ -3292,7 +3292,7 @@ impl IWMReaderCallbackAdvanced_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMReaderNetworkConfig_Impl: Sized { @@ -3608,7 +3608,7 @@ impl IWMReaderNetworkConfig_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMReaderNetworkConfig2_Impl: Sized + IWMReaderNetworkConfig_Impl { @@ -3754,7 +3754,7 @@ impl IWMReaderNetworkConfig2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IWMReaderPlaylistBurn_Impl: Sized { @@ -3801,7 +3801,7 @@ impl IWMReaderPlaylistBurn_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMReaderStreamClock_Impl: Sized { @@ -3841,7 +3841,7 @@ impl IWMReaderStreamClock_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMReaderTimecode_Impl: Sized { @@ -3874,7 +3874,7 @@ impl IWMReaderTimecode_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMReaderTypeNegotiation_Impl: Sized { @@ -3891,7 +3891,7 @@ impl IWMReaderTypeNegotiation_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), TryOutputProps: TryOutputProps:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMRegisterCallback_Impl: Sized { @@ -3918,7 +3918,7 @@ impl IWMRegisterCallback_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMRegisteredDevice_Impl: Sized { @@ -4083,7 +4083,7 @@ impl IWMRegisteredDevice_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMSBufferAllocator_Impl: Sized { @@ -4122,7 +4122,7 @@ impl IWMSBufferAllocator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMSInternalAdminNetSource_Impl: Sized { @@ -4230,7 +4230,7 @@ impl IWMSInternalAdminNetSource_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMSInternalAdminNetSource2_Impl: Sized { @@ -4271,7 +4271,7 @@ impl IWMSInternalAdminNetSource2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMSInternalAdminNetSource3_Impl: Sized + IWMSInternalAdminNetSource2_Impl { @@ -4345,7 +4345,7 @@ impl IWMSInternalAdminNetSource3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IWMSecureChannel_Impl: Sized + IWMAuthorizer_Impl { @@ -4441,7 +4441,7 @@ impl IWMSecureChannel_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IWMStatusCallback_Impl: Sized { @@ -4458,7 +4458,7 @@ impl IWMStatusCallback_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnStatus: OnStatus:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMStreamConfig_Impl: Sized { @@ -4572,7 +4572,7 @@ impl IWMStreamConfig_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMStreamConfig2_Impl: Sized + IWMStreamConfig_Impl { @@ -4639,7 +4639,7 @@ impl IWMStreamConfig2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IWMStreamConfig3_Impl: Sized + IWMStreamConfig2_Impl { @@ -4666,7 +4666,7 @@ impl IWMStreamConfig3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IWMStreamList_Impl: Sized { @@ -4700,7 +4700,7 @@ impl IWMStreamList_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMStreamPrioritization_Impl: Sized { @@ -4727,7 +4727,7 @@ impl IWMStreamPrioritization_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -4951,7 +4951,7 @@ impl IWMSyncReader_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -5028,7 +5028,7 @@ impl IWMSyncReader2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IWMVideoMediaProps_Impl: Sized + IWMMediaProps_Impl { @@ -5081,7 +5081,7 @@ impl IWMVideoMediaProps_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IWMWatermarkInfo_Impl: Sized { @@ -5114,7 +5114,7 @@ impl IWMWatermarkInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMWriter_Impl: Sized { @@ -5248,7 +5248,7 @@ impl IWMWriter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMWriterAdvanced_Impl: Sized { @@ -5368,7 +5368,7 @@ impl IWMWriterAdvanced_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMWriterAdvanced2_Impl: Sized + IWMWriterAdvanced_Impl { @@ -5395,7 +5395,7 @@ impl IWMWriterAdvanced2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IWMWriterAdvanced3_Impl: Sized + IWMWriterAdvanced2_Impl { @@ -5422,7 +5422,7 @@ impl IWMWriterAdvanced3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IWMWriterFileSink_Impl: Sized + IWMWriterSink_Impl { @@ -5439,7 +5439,7 @@ impl IWMWriterFileSink_Vtbl { Self { base__: IWMWriterSink_Vtbl::new::(), Open: Open:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IWMWriterFileSink2_Impl: Sized + IWMWriterFileSink_Impl { @@ -5525,7 +5525,7 @@ impl IWMWriterFileSink2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IWMWriterFileSink3_Impl: Sized + IWMWriterFileSink2_Impl { @@ -5612,7 +5612,7 @@ impl IWMWriterFileSink3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IWMWriterNetworkSink_Impl: Sized + IWMWriterSink_Impl { @@ -5693,7 +5693,7 @@ impl IWMWriterNetworkSink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IWMWriterPostView_Impl: Sized { @@ -5799,7 +5799,7 @@ impl IWMWriterPostView_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMWriterPostViewCallback_Impl: Sized + IWMStatusCallback_Impl { @@ -5826,7 +5826,7 @@ impl IWMWriterPostViewCallback_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IWMWriterPreprocess_Impl: Sized { @@ -5880,7 +5880,7 @@ impl IWMWriterPreprocess_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWMWriterPushSink_Impl: Sized + IWMWriterSink_Impl { @@ -5914,7 +5914,7 @@ impl IWMWriterPushSink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IWMWriterSink_Impl: Sized { @@ -5974,6 +5974,6 @@ impl IWMWriterSink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 cccb8f780b..c808736655 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/WindowsMediaFormat/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/WindowsMediaFormat/mod.rs @@ -78,9 +78,8 @@ where ::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() } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INSNetSourceCreator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INSNetSourceCreator, INSNetSourceCreator_Vtbl, 0x0c0e4080_9081_11d2_beec_0060082f2054); +::windows_core::imp::interface_hierarchy!(INSNetSourceCreator, ::windows_core::IUnknown); impl INSNetSourceCreator { pub unsafe fn Initialize(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Initialize)(::windows_core::Interface::as_raw(self)).ok() @@ -125,13 +124,6 @@ impl INSNetSourceCreator { (::windows_core::Interface::vtable(self).Shutdown)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(INSNetSourceCreator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INSNetSourceCreator { - type Vtable = INSNetSourceCreator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INSNetSourceCreator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c0e4080_9081_11d2_beec_0060082f2054); -} #[repr(C)] #[doc(hidden)] pub struct INSNetSourceCreator_Vtbl { @@ -148,9 +140,8 @@ pub struct INSNetSourceCreator_Vtbl { pub GetProtocolName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwprotocolnum: u32, pwszprotocolname: ::windows_core::PWSTR, pcchprotocolname: *mut u16) -> ::windows_core::HRESULT, pub Shutdown: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INSSBuffer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INSSBuffer, INSSBuffer_Vtbl, 0xe1cd3524_03d7_11d2_9eed_006097d2d7cf); +::windows_core::imp::interface_hierarchy!(INSSBuffer, ::windows_core::IUnknown); impl INSSBuffer { pub unsafe fn GetLength(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -171,13 +162,6 @@ impl INSSBuffer { (::windows_core::Interface::vtable(self).GetBufferAndLength)(::windows_core::Interface::as_raw(self), ppdwbuffer, pdwlength).ok() } } -::windows_core::imp::interface_hierarchy!(INSSBuffer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INSSBuffer { - type Vtable = INSSBuffer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INSSBuffer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe1cd3524_03d7_11d2_9eed_006097d2d7cf); -} #[repr(C)] #[doc(hidden)] pub struct INSSBuffer_Vtbl { @@ -188,9 +172,8 @@ pub struct INSSBuffer_Vtbl { pub GetBuffer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppdwbuffer: *mut *mut u8) -> ::windows_core::HRESULT, pub GetBufferAndLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppdwbuffer: *mut *mut u8, pdwlength: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INSSBuffer2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INSSBuffer2, INSSBuffer2_Vtbl, 0x4f528693_1035_43fe_b428_757561ad3a68); +::windows_core::imp::interface_hierarchy!(INSSBuffer2, ::windows_core::IUnknown, INSSBuffer); impl INSSBuffer2 { pub unsafe fn GetLength(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -218,13 +201,6 @@ impl INSSBuffer2 { (::windows_core::Interface::vtable(self).SetSampleProperties)(::windows_core::Interface::as_raw(self), cbproperties, pbproperties).ok() } } -::windows_core::imp::interface_hierarchy!(INSSBuffer2, ::windows_core::IUnknown, INSSBuffer); -unsafe impl ::windows_core::Interface for INSSBuffer2 { - type Vtable = INSSBuffer2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INSSBuffer2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4f528693_1035_43fe_b428_757561ad3a68); -} #[repr(C)] #[doc(hidden)] pub struct INSSBuffer2_Vtbl { @@ -232,9 +208,8 @@ pub struct INSSBuffer2_Vtbl { pub GetSampleProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cbproperties: u32, pbproperties: *mut u8) -> ::windows_core::HRESULT, pub SetSampleProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cbproperties: u32, pbproperties: *const u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INSSBuffer3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INSSBuffer3, INSSBuffer3_Vtbl, 0xc87ceaaf_75be_4bc4_84eb_ac2798507672); +::windows_core::imp::interface_hierarchy!(INSSBuffer3, ::windows_core::IUnknown, INSSBuffer, INSSBuffer2); impl INSSBuffer3 { pub unsafe fn GetLength(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -268,13 +243,6 @@ impl INSSBuffer3 { (::windows_core::Interface::vtable(self).GetProperty)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(guidbufferproperty), pvbufferproperty, pdwbufferpropertysize).ok() } } -::windows_core::imp::interface_hierarchy!(INSSBuffer3, ::windows_core::IUnknown, INSSBuffer, INSSBuffer2); -unsafe impl ::windows_core::Interface for INSSBuffer3 { - type Vtable = INSSBuffer3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INSSBuffer3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc87ceaaf_75be_4bc4_84eb_ac2798507672); -} #[repr(C)] #[doc(hidden)] pub struct INSSBuffer3_Vtbl { @@ -282,9 +250,8 @@ pub struct INSSBuffer3_Vtbl { pub SetProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guidbufferproperty: ::windows_core::GUID, pvbufferproperty: *const ::core::ffi::c_void, dwbufferpropertysize: u32) -> ::windows_core::HRESULT, pub GetProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guidbufferproperty: ::windows_core::GUID, pvbufferproperty: *mut ::core::ffi::c_void, pdwbufferpropertysize: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INSSBuffer4(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INSSBuffer4, INSSBuffer4_Vtbl, 0xb6b8fd5a_32e2_49d4_a910_c26cc85465ed); +::windows_core::imp::interface_hierarchy!(INSSBuffer4, ::windows_core::IUnknown, INSSBuffer, INSSBuffer2, INSSBuffer3); impl INSSBuffer4 { pub unsafe fn GetLength(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -325,13 +292,6 @@ impl INSSBuffer4 { (::windows_core::Interface::vtable(self).GetPropertyByIndex)(::windows_core::Interface::as_raw(self), dwbufferpropertyindex, pguidbufferproperty, pvbufferproperty, pdwbufferpropertysize).ok() } } -::windows_core::imp::interface_hierarchy!(INSSBuffer4, ::windows_core::IUnknown, INSSBuffer, INSSBuffer2, INSSBuffer3); -unsafe impl ::windows_core::Interface for INSSBuffer4 { - type Vtable = INSSBuffer4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INSSBuffer4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb6b8fd5a_32e2_49d4_a910_c26cc85465ed); -} #[repr(C)] #[doc(hidden)] pub struct INSSBuffer4_Vtbl { @@ -339,9 +299,8 @@ pub struct INSSBuffer4_Vtbl { pub GetPropertyCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcbufferproperties: *mut u32) -> ::windows_core::HRESULT, pub GetPropertyByIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwbufferpropertyindex: u32, pguidbufferproperty: *mut ::windows_core::GUID, pvbufferproperty: *mut ::core::ffi::c_void, pdwbufferpropertysize: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMAddressAccess(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMAddressAccess, IWMAddressAccess_Vtbl, 0xbb3c6389_1633_4e92_af14_9f3173ba39d0); +::windows_core::imp::interface_hierarchy!(IWMAddressAccess, ::windows_core::IUnknown); impl IWMAddressAccess { pub unsafe fn GetAccessEntryCount(&self, aetype: WM_AETYPE) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -358,13 +317,6 @@ impl IWMAddressAccess { (::windows_core::Interface::vtable(self).RemoveAccessEntry)(::windows_core::Interface::as_raw(self), aetype, dwentrynum).ok() } } -::windows_core::imp::interface_hierarchy!(IWMAddressAccess, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMAddressAccess { - type Vtable = IWMAddressAccess_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMAddressAccess { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbb3c6389_1633_4e92_af14_9f3173ba39d0); -} #[repr(C)] #[doc(hidden)] pub struct IWMAddressAccess_Vtbl { @@ -374,9 +326,8 @@ pub struct IWMAddressAccess_Vtbl { pub AddAccessEntry: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, aetype: WM_AETYPE, paddraccessentry: *const WM_ADDRESS_ACCESSENTRY) -> ::windows_core::HRESULT, pub RemoveAccessEntry: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, aetype: WM_AETYPE, dwentrynum: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMAddressAccess2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMAddressAccess2, IWMAddressAccess2_Vtbl, 0x65a83fc2_3e98_4d4d_81b5_2a742886b33d); +::windows_core::imp::interface_hierarchy!(IWMAddressAccess2, ::windows_core::IUnknown, IWMAddressAccess); impl IWMAddressAccess2 { pub unsafe fn GetAccessEntryCount(&self, aetype: WM_AETYPE) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -403,13 +354,6 @@ impl IWMAddressAccess2 { (::windows_core::Interface::vtable(self).AddAccessEntryEx)(::windows_core::Interface::as_raw(self), aetype, bstraddress.into_param().abi(), bstrmask.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IWMAddressAccess2, ::windows_core::IUnknown, IWMAddressAccess); -unsafe impl ::windows_core::Interface for IWMAddressAccess2 { - type Vtable = IWMAddressAccess2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMAddressAccess2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x65a83fc2_3e98_4d4d_81b5_2a742886b33d); -} #[repr(C)] #[doc(hidden)] pub struct IWMAddressAccess2_Vtbl { @@ -417,9 +361,8 @@ pub struct IWMAddressAccess2_Vtbl { pub GetAccessEntryEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, aetype: WM_AETYPE, dwentrynum: u32, pbstraddress: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>, pbstrmask: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub AddAccessEntryEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, aetype: WM_AETYPE, bstraddress: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstrmask: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMAuthorizer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMAuthorizer, IWMAuthorizer_Vtbl, 0xd9b67d36_a9ad_4eb4_baef_db284ef5504c); +::windows_core::imp::interface_hierarchy!(IWMAuthorizer, ::windows_core::IUnknown); impl IWMAuthorizer { pub unsafe fn GetCertCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -434,13 +377,6 @@ impl IWMAuthorizer { (::windows_core::Interface::vtable(self).GetSharedData)(::windows_core::Interface::as_raw(self), dwcertindex, pbshareddata, pbcert, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWMAuthorizer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMAuthorizer { - type Vtable = IWMAuthorizer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMAuthorizer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd9b67d36_a9ad_4eb4_baef_db284ef5504c); -} #[repr(C)] #[doc(hidden)] pub struct IWMAuthorizer_Vtbl { @@ -449,9 +385,8 @@ pub struct IWMAuthorizer_Vtbl { pub GetCert: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwindex: u32, ppbcertdata: *mut *mut u8) -> ::windows_core::HRESULT, pub GetSharedData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwcertindex: u32, pbshareddata: *const u8, pbcert: *const u8, ppbshareddata: *mut *mut u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMBackupRestoreProps(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMBackupRestoreProps, IWMBackupRestoreProps_Vtbl, 0x3c8e0da6_996f_4ff3_a1af_4838f9377e2e); +::windows_core::imp::interface_hierarchy!(IWMBackupRestoreProps, ::windows_core::IUnknown); impl IWMBackupRestoreProps { pub unsafe fn GetPropCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -482,13 +417,6 @@ impl IWMBackupRestoreProps { (::windows_core::Interface::vtable(self).RemoveAllProps)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IWMBackupRestoreProps, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMBackupRestoreProps { - type Vtable = IWMBackupRestoreProps_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMBackupRestoreProps { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3c8e0da6_996f_4ff3_a1af_4838f9377e2e); -} #[repr(C)] #[doc(hidden)] pub struct IWMBackupRestoreProps_Vtbl { @@ -500,9 +428,8 @@ pub struct IWMBackupRestoreProps_Vtbl { pub RemoveProp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcwszname: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub RemoveAllProps: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMBandwidthSharing(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMBandwidthSharing, IWMBandwidthSharing_Vtbl, 0xad694af1_f8d9_42f8_bc47_70311b0c4f9e); +::windows_core::imp::interface_hierarchy!(IWMBandwidthSharing, ::windows_core::IUnknown, IWMStreamList); impl IWMBandwidthSharing { pub unsafe fn GetStreams(&self, pwstreamnumarray: *mut u16, pcstreams: *mut u16) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.GetStreams)(::windows_core::Interface::as_raw(self), pwstreamnumarray, pcstreams).ok() @@ -527,13 +454,6 @@ impl IWMBandwidthSharing { (::windows_core::Interface::vtable(self).SetBandwidth)(::windows_core::Interface::as_raw(self), dwbitrate, msbufferwindow).ok() } } -::windows_core::imp::interface_hierarchy!(IWMBandwidthSharing, ::windows_core::IUnknown, IWMStreamList); -unsafe impl ::windows_core::Interface for IWMBandwidthSharing { - type Vtable = IWMBandwidthSharing_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMBandwidthSharing { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xad694af1_f8d9_42f8_bc47_70311b0c4f9e); -} #[repr(C)] #[doc(hidden)] pub struct IWMBandwidthSharing_Vtbl { @@ -543,9 +463,8 @@ pub struct IWMBandwidthSharing_Vtbl { pub GetBandwidth: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwbitrate: *mut u32, pmsbufferwindow: *mut u32) -> ::windows_core::HRESULT, pub SetBandwidth: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwbitrate: u32, msbufferwindow: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMClientConnections(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMClientConnections, IWMClientConnections_Vtbl, 0x73c66010_a299_41df_b1f0_ccf03b09c1c6); +::windows_core::imp::interface_hierarchy!(IWMClientConnections, ::windows_core::IUnknown); impl IWMClientConnections { pub unsafe fn GetClientCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -556,13 +475,6 @@ impl IWMClientConnections { (::windows_core::Interface::vtable(self).GetClientProperties)(::windows_core::Interface::as_raw(self), dwclientnum, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWMClientConnections, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMClientConnections { - type Vtable = IWMClientConnections_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMClientConnections { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x73c66010_a299_41df_b1f0_ccf03b09c1c6); -} #[repr(C)] #[doc(hidden)] pub struct IWMClientConnections_Vtbl { @@ -570,9 +482,8 @@ pub struct IWMClientConnections_Vtbl { pub GetClientCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcclients: *mut u32) -> ::windows_core::HRESULT, pub GetClientProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwclientnum: u32, pclientproperties: *mut WM_CLIENT_PROPERTIES) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMClientConnections2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMClientConnections2, IWMClientConnections2_Vtbl, 0x4091571e_4701_4593_bb3d_d5f5f0c74246); +::windows_core::imp::interface_hierarchy!(IWMClientConnections2, ::windows_core::IUnknown, IWMClientConnections); impl IWMClientConnections2 { pub unsafe fn GetClientCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -586,22 +497,14 @@ impl IWMClientConnections2 { (::windows_core::Interface::vtable(self).GetClientInfo)(::windows_core::Interface::as_raw(self), dwclientnum, ::core::mem::transmute(pwsznetworkaddress), pcchnetworkaddress, ::core::mem::transmute(pwszport), pcchport, ::core::mem::transmute(pwszdnsname), pcchdnsname).ok() } } -::windows_core::imp::interface_hierarchy!(IWMClientConnections2, ::windows_core::IUnknown, IWMClientConnections); -unsafe impl ::windows_core::Interface for IWMClientConnections2 { - type Vtable = IWMClientConnections2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMClientConnections2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4091571e_4701_4593_bb3d_d5f5f0c74246); -} #[repr(C)] #[doc(hidden)] pub struct IWMClientConnections2_Vtbl { pub base__: IWMClientConnections_Vtbl, pub GetClientInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwclientnum: u32, pwsznetworkaddress: ::windows_core::PWSTR, pcchnetworkaddress: *mut u32, pwszport: ::windows_core::PWSTR, pcchport: *mut u32, pwszdnsname: ::windows_core::PWSTR, pcchdnsname: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMCodecInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMCodecInfo, IWMCodecInfo_Vtbl, 0xa970f41e_34de_4a98_b3ba_e4b3ca7528f0); +::windows_core::imp::interface_hierarchy!(IWMCodecInfo, ::windows_core::IUnknown); impl IWMCodecInfo { pub unsafe fn GetCodecInfoCount(&self, guidtype: *const ::windows_core::GUID) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -616,13 +519,6 @@ impl IWMCodecInfo { (::windows_core::Interface::vtable(self).GetCodecFormat)(::windows_core::Interface::as_raw(self), guidtype, dwcodecindex, dwformatindex, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWMCodecInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMCodecInfo { - type Vtable = IWMCodecInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMCodecInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa970f41e_34de_4a98_b3ba_e4b3ca7528f0); -} #[repr(C)] #[doc(hidden)] pub struct IWMCodecInfo_Vtbl { @@ -631,9 +527,8 @@ pub struct IWMCodecInfo_Vtbl { pub GetCodecFormatCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guidtype: *const ::windows_core::GUID, dwcodecindex: u32, pcformat: *mut u32) -> ::windows_core::HRESULT, pub GetCodecFormat: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guidtype: *const ::windows_core::GUID, dwcodecindex: u32, dwformatindex: u32, ppistreamconfig: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMCodecInfo2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMCodecInfo2, IWMCodecInfo2_Vtbl, 0xaa65e273_b686_4056_91ec_dd768d4df710); +::windows_core::imp::interface_hierarchy!(IWMCodecInfo2, ::windows_core::IUnknown, IWMCodecInfo); impl IWMCodecInfo2 { pub unsafe fn GetCodecInfoCount(&self, guidtype: *const ::windows_core::GUID) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -654,13 +549,6 @@ impl IWMCodecInfo2 { (::windows_core::Interface::vtable(self).GetCodecFormatDesc)(::windows_core::Interface::as_raw(self), guidtype, dwcodecindex, dwformatindex, ::core::mem::transmute(ppistreamconfig), ::core::mem::transmute(wszdesc), pcchdesc).ok() } } -::windows_core::imp::interface_hierarchy!(IWMCodecInfo2, ::windows_core::IUnknown, IWMCodecInfo); -unsafe impl ::windows_core::Interface for IWMCodecInfo2 { - type Vtable = IWMCodecInfo2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMCodecInfo2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaa65e273_b686_4056_91ec_dd768d4df710); -} #[repr(C)] #[doc(hidden)] pub struct IWMCodecInfo2_Vtbl { @@ -668,9 +556,8 @@ pub struct IWMCodecInfo2_Vtbl { pub GetCodecName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guidtype: *const ::windows_core::GUID, dwcodecindex: u32, wszname: ::windows_core::PWSTR, pcchname: *mut u32) -> ::windows_core::HRESULT, pub GetCodecFormatDesc: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guidtype: *const ::windows_core::GUID, dwcodecindex: u32, dwformatindex: u32, ppistreamconfig: *mut *mut ::core::ffi::c_void, wszdesc: ::windows_core::PWSTR, pcchdesc: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMCodecInfo3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMCodecInfo3, IWMCodecInfo3_Vtbl, 0x7e51f487_4d93_4f98_8ab4_27d0565adc51); +::windows_core::imp::interface_hierarchy!(IWMCodecInfo3, ::windows_core::IUnknown, IWMCodecInfo, IWMCodecInfo2); impl IWMCodecInfo3 { pub unsafe fn GetCodecInfoCount(&self, guidtype: *const ::windows_core::GUID) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -715,13 +602,6 @@ impl IWMCodecInfo3 { (::windows_core::Interface::vtable(self).GetCodecEnumerationSetting)(::windows_core::Interface::as_raw(self), guidtype, dwcodecindex, pszname.into_param().abi(), ptype, pvalue, pdwsize).ok() } } -::windows_core::imp::interface_hierarchy!(IWMCodecInfo3, ::windows_core::IUnknown, IWMCodecInfo, IWMCodecInfo2); -unsafe impl ::windows_core::Interface for IWMCodecInfo3 { - type Vtable = IWMCodecInfo3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMCodecInfo3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7e51f487_4d93_4f98_8ab4_27d0565adc51); -} #[repr(C)] #[doc(hidden)] pub struct IWMCodecInfo3_Vtbl { @@ -731,9 +611,8 @@ pub struct IWMCodecInfo3_Vtbl { pub SetCodecEnumerationSetting: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guidtype: *const ::windows_core::GUID, dwcodecindex: u32, pszname: ::windows_core::PCWSTR, r#type: WMT_ATTR_DATATYPE, pvalue: *const u8, dwsize: u32) -> ::windows_core::HRESULT, pub GetCodecEnumerationSetting: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guidtype: *const ::windows_core::GUID, dwcodecindex: u32, pszname: ::windows_core::PCWSTR, ptype: *mut WMT_ATTR_DATATYPE, pvalue: *mut u8, pdwsize: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMCredentialCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMCredentialCallback, IWMCredentialCallback_Vtbl, 0x342e0eb7_e651_450c_975b_2ace2c90c48e); +::windows_core::imp::interface_hierarchy!(IWMCredentialCallback, ::windows_core::IUnknown); 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 @@ -743,22 +622,14 @@ impl IWMCredentialCallback { (::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::imp::interface_hierarchy!(IWMCredentialCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMCredentialCallback { - type Vtable = IWMCredentialCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMCredentialCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x342e0eb7_e651_450c_975b_2ace2c90c48e); -} #[repr(C)] #[doc(hidden)] pub struct IWMCredentialCallback_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub AcquireCredentials: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwszrealm: ::windows_core::PCWSTR, pwszsite: ::windows_core::PCWSTR, pwszuser: ::windows_core::PWSTR, cchuser: u32, pwszpassword: ::windows_core::PWSTR, cchpassword: u32, hrstatus: ::windows_core::HRESULT, pdwflags: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMDRMEditor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMDRMEditor, IWMDRMEditor_Vtbl, 0xff130ebc_a6c3_42a6_b401_c3382c3e08b3); +::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 @@ -767,22 +638,14 @@ impl IWMDRMEditor { (::windows_core::Interface::vtable(self).GetDRMProperty)(::windows_core::Interface::as_raw(self), pwstrname.into_param().abi(), pdwtype, pvalue, pcblength).ok() } } -::windows_core::imp::interface_hierarchy!(IWMDRMEditor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMDRMEditor { - type Vtable = IWMDRMEditor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMDRMEditor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xff130ebc_a6c3_42a6_b401_c3382c3e08b3); -} #[repr(C)] #[doc(hidden)] pub struct IWMDRMEditor_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetDRMProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwstrname: ::windows_core::PCWSTR, pdwtype: *mut WMT_ATTR_DATATYPE, pvalue: *mut u8, pcblength: *mut u16) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMDRMMessageParser(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMDRMMessageParser, IWMDRMMessageParser_Vtbl, 0xa73a0072_25a0_4c99_b4a5_ede8101a6c39); +::windows_core::imp::interface_hierarchy!(IWMDRMMessageParser, ::windows_core::IUnknown); impl IWMDRMMessageParser { pub unsafe fn ParseRegistrationReqMsg(&self, pbregistrationreqmsg: &[u8], ppdevicecert: *mut ::core::option::Option, pdeviceserialnumber: *mut DRM_VAL16) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).ParseRegistrationReqMsg)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pbregistrationreqmsg.as_ptr()), pbregistrationreqmsg.len().try_into().unwrap(), ::core::mem::transmute(ppdevicecert), pdeviceserialnumber).ok() @@ -791,13 +654,6 @@ impl IWMDRMMessageParser { (::windows_core::Interface::vtable(self).ParseLicenseRequestMsg)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pblicenserequestmsg.as_ptr()), pblicenserequestmsg.len().try_into().unwrap(), ::core::mem::transmute(ppdevicecert), pdeviceserialnumber, ::core::mem::transmute(pbstraction)).ok() } } -::windows_core::imp::interface_hierarchy!(IWMDRMMessageParser, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMDRMMessageParser { - type Vtable = IWMDRMMessageParser_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMDRMMessageParser { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa73a0072_25a0_4c99_b4a5_ede8101a6c39); -} #[repr(C)] #[doc(hidden)] pub struct IWMDRMMessageParser_Vtbl { @@ -805,9 +661,8 @@ pub struct IWMDRMMessageParser_Vtbl { pub ParseRegistrationReqMsg: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbregistrationreqmsg: *const u8, cbregistrationreqmsg: u32, ppdevicecert: *mut *mut ::core::ffi::c_void, pdeviceserialnumber: *mut DRM_VAL16) -> ::windows_core::HRESULT, pub ParseLicenseRequestMsg: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pblicenserequestmsg: *const u8, cblicenserequestmsg: u32, ppdevicecert: *mut *mut ::core::ffi::c_void, pdeviceserialnumber: *mut DRM_VAL16, pbstraction: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMDRMReader(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMDRMReader, IWMDRMReader_Vtbl, 0xd2827540_3ee7_432c_b14c_dc17f085d3b3); +::windows_core::imp::interface_hierarchy!(IWMDRMReader, ::windows_core::IUnknown); impl IWMDRMReader { pub unsafe fn AcquireLicense(&self, dwflags: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).AcquireLicense)(::windows_core::Interface::as_raw(self), dwflags).ok() @@ -840,13 +695,6 @@ impl IWMDRMReader { (::windows_core::Interface::vtable(self).GetDRMProperty)(::windows_core::Interface::as_raw(self), pwstrname.into_param().abi(), pdwtype, pvalue, pcblength).ok() } } -::windows_core::imp::interface_hierarchy!(IWMDRMReader, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMDRMReader { - type Vtable = IWMDRMReader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMDRMReader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd2827540_3ee7_432c_b14c_dc17f085d3b3); -} #[repr(C)] #[doc(hidden)] pub struct IWMDRMReader_Vtbl { @@ -860,9 +708,8 @@ pub struct IWMDRMReader_Vtbl { pub SetDRMProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwstrname: ::windows_core::PCWSTR, dwtype: WMT_ATTR_DATATYPE, pvalue: *const u8, cblength: u16) -> ::windows_core::HRESULT, pub GetDRMProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwstrname: ::windows_core::PCWSTR, pdwtype: *mut WMT_ATTR_DATATYPE, pvalue: *mut u8, pcblength: *mut u16) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMDRMReader2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMDRMReader2, IWMDRMReader2_Vtbl, 0xbefe7a75_9f1d_4075_b9d9_a3c37bda49a0); +::windows_core::imp::interface_hierarchy!(IWMDRMReader2, ::windows_core::IUnknown, IWMDRMReader); impl IWMDRMReader2 { pub unsafe fn AcquireLicense(&self, dwflags: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.AcquireLicense)(::windows_core::Interface::as_raw(self), dwflags).ok() @@ -910,13 +757,6 @@ impl IWMDRMReader2 { (::windows_core::Interface::vtable(self).TryNextLicense)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IWMDRMReader2, ::windows_core::IUnknown, IWMDRMReader); -unsafe impl ::windows_core::Interface for IWMDRMReader2 { - type Vtable = IWMDRMReader2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMDRMReader2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbefe7a75_9f1d_4075_b9d9_a3c37bda49a0); -} #[repr(C)] #[doc(hidden)] pub struct IWMDRMReader2_Vtbl { @@ -926,9 +766,8 @@ pub struct IWMDRMReader2_Vtbl { pub GetCopyOutputLevels: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcopyopl: *mut DRM_COPY_OPL, pcblength: *mut u32, pdwminappcompliancelevel: *mut u32) -> ::windows_core::HRESULT, pub TryNextLicense: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMDRMReader3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMDRMReader3, IWMDRMReader3_Vtbl, 0xe08672de_f1e7_4ff4_a0a3_fc4b08e4caf8); +::windows_core::imp::interface_hierarchy!(IWMDRMReader3, ::windows_core::IUnknown, IWMDRMReader, IWMDRMReader2); impl IWMDRMReader3 { pub unsafe fn AcquireLicense(&self, dwflags: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.AcquireLicense)(::windows_core::Interface::as_raw(self), dwflags).ok() @@ -979,44 +818,28 @@ impl IWMDRMReader3 { (::windows_core::Interface::vtable(self).GetInclusionList)(::windows_core::Interface::as_raw(self), ppguids, pcguids).ok() } } -::windows_core::imp::interface_hierarchy!(IWMDRMReader3, ::windows_core::IUnknown, IWMDRMReader, IWMDRMReader2); -unsafe impl ::windows_core::Interface for IWMDRMReader3 { - type Vtable = IWMDRMReader3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMDRMReader3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe08672de_f1e7_4ff4_a0a3_fc4b08e4caf8); -} #[repr(C)] #[doc(hidden)] pub struct IWMDRMReader3_Vtbl { pub base__: IWMDRMReader2_Vtbl, pub GetInclusionList: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppguids: *mut *mut ::windows_core::GUID, pcguids: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMDRMTranscryptionManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMDRMTranscryptionManager, IWMDRMTranscryptionManager_Vtbl, 0xb1a887b2_a4f0_407a_b02e_efbd23bbecdf); +::windows_core::imp::interface_hierarchy!(IWMDRMTranscryptionManager, ::windows_core::IUnknown); impl IWMDRMTranscryptionManager { pub unsafe fn CreateTranscryptor(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).CreateTranscryptor)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWMDRMTranscryptionManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMDRMTranscryptionManager { - type Vtable = IWMDRMTranscryptionManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMDRMTranscryptionManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb1a887b2_a4f0_407a_b02e_efbd23bbecdf); -} #[repr(C)] #[doc(hidden)] pub struct IWMDRMTranscryptionManager_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub CreateTranscryptor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pptranscryptor: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMDRMTranscryptor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMDRMTranscryptor, IWMDRMTranscryptor_Vtbl, 0x69059850_6e6f_4bb2_806f_71863ddfc471); +::windows_core::imp::interface_hierarchy!(IWMDRMTranscryptor, ::windows_core::IUnknown); impl IWMDRMTranscryptor { pub unsafe fn Initialize(&self, bstrfilename: P0, pblicenserequestmsg: *mut u8, cblicenserequestmsg: u32, pplicenseresponsemsg: *mut ::core::option::Option, pcallback: P1, pvcontext: *const ::core::ffi::c_void) -> ::windows_core::Result<()> where @@ -1035,13 +858,6 @@ impl IWMDRMTranscryptor { (::windows_core::Interface::vtable(self).Close)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IWMDRMTranscryptor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMDRMTranscryptor { - type Vtable = IWMDRMTranscryptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMDRMTranscryptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x69059850_6e6f_4bb2_806f_71863ddfc471); -} #[repr(C)] #[doc(hidden)] pub struct IWMDRMTranscryptor_Vtbl { @@ -1051,9 +867,8 @@ pub struct IWMDRMTranscryptor_Vtbl { pub Read: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbdata: *const u8, pcbdata: *const u32) -> ::windows_core::HRESULT, pub Close: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMDRMTranscryptor2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMDRMTranscryptor2, IWMDRMTranscryptor2_Vtbl, 0xe0da439f_d331_496a_bece_18e5bac5dd23); +::windows_core::imp::interface_hierarchy!(IWMDRMTranscryptor2, ::windows_core::IUnknown, IWMDRMTranscryptor); impl IWMDRMTranscryptor2 { pub unsafe fn Initialize(&self, bstrfilename: P0, pblicenserequestmsg: *mut u8, cblicenserequestmsg: u32, pplicenseresponsemsg: *mut ::core::option::Option, pcallback: P1, pvcontext: *const ::core::ffi::c_void) -> ::windows_core::Result<()> where @@ -1092,13 +907,6 @@ impl IWMDRMTranscryptor2 { (::windows_core::Interface::vtable(self).GetDuration)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWMDRMTranscryptor2, ::windows_core::IUnknown, IWMDRMTranscryptor); -unsafe impl ::windows_core::Interface for IWMDRMTranscryptor2 { - type Vtable = IWMDRMTranscryptor2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMDRMTranscryptor2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe0da439f_d331_496a_bece_18e5bac5dd23); -} #[repr(C)] #[doc(hidden)] pub struct IWMDRMTranscryptor2_Vtbl { @@ -1108,9 +916,8 @@ pub struct IWMDRMTranscryptor2_Vtbl { pub GetSeekStartTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcnstime: *mut u64) -> ::windows_core::HRESULT, pub GetDuration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcnsduration: *mut u64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMDRMWriter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMDRMWriter, IWMDRMWriter_Vtbl, 0xd6ea5dd0_12a0_43f4_90ab_a3fd451e6a07); +::windows_core::imp::interface_hierarchy!(IWMDRMWriter, ::windows_core::IUnknown); impl IWMDRMWriter { pub unsafe fn GenerateKeySeed(&self, pwszkeyseed: ::windows_core::PWSTR, pcwchlength: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GenerateKeySeed)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pwszkeyseed), pcwchlength).ok() @@ -1128,13 +935,6 @@ impl IWMDRMWriter { (::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::imp::interface_hierarchy!(IWMDRMWriter, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMDRMWriter { - type Vtable = IWMDRMWriter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMDRMWriter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd6ea5dd0_12a0_43f4_90ab_a3fd451e6a07); -} #[repr(C)] #[doc(hidden)] pub struct IWMDRMWriter_Vtbl { @@ -1144,9 +944,8 @@ pub struct IWMDRMWriter_Vtbl { pub GenerateSigningKeyPair: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwszprivkey: ::windows_core::PWSTR, pcwchprivkeylength: *mut u32, pwszpubkey: ::windows_core::PWSTR, pcwchpubkeylength: *mut u32) -> ::windows_core::HRESULT, pub SetDRMAttribute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wstreamnum: u16, pszname: ::windows_core::PCWSTR, r#type: WMT_ATTR_DATATYPE, pvalue: *const u8, cblength: u16) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMDRMWriter2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMDRMWriter2, IWMDRMWriter2_Vtbl, 0x38ee7a94_40e2_4e10_aa3f_33fd3210ed5b); +::windows_core::imp::interface_hierarchy!(IWMDRMWriter2, ::windows_core::IUnknown, IWMDRMWriter); impl IWMDRMWriter2 { pub unsafe fn GenerateKeySeed(&self, pwszkeyseed: ::windows_core::PWSTR, pcwchlength: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.GenerateKeySeed)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pwszkeyseed), pcwchlength).ok() @@ -1170,22 +969,14 @@ impl IWMDRMWriter2 { (::windows_core::Interface::vtable(self).SetWMDRMNetEncryption)(::windows_core::Interface::as_raw(self), fsamplesencrypted.into_param().abi(), pbkeyid, cbkeyid).ok() } } -::windows_core::imp::interface_hierarchy!(IWMDRMWriter2, ::windows_core::IUnknown, IWMDRMWriter); -unsafe impl ::windows_core::Interface for IWMDRMWriter2 { - type Vtable = IWMDRMWriter2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMDRMWriter2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x38ee7a94_40e2_4e10_aa3f_33fd3210ed5b); -} #[repr(C)] #[doc(hidden)] pub struct IWMDRMWriter2_Vtbl { pub base__: IWMDRMWriter_Vtbl, pub SetWMDRMNetEncryption: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fsamplesencrypted: super::super::Foundation::BOOL, pbkeyid: *const u8, cbkeyid: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMDRMWriter3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMDRMWriter3, IWMDRMWriter3_Vtbl, 0xa7184082_a4aa_4dde_ac9c_e75dbd1117ce); +::windows_core::imp::interface_hierarchy!(IWMDRMWriter3, ::windows_core::IUnknown, IWMDRMWriter, IWMDRMWriter2); impl IWMDRMWriter3 { pub unsafe fn GenerateKeySeed(&self, pwszkeyseed: ::windows_core::PWSTR, pcwchlength: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.GenerateKeySeed)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pwszkeyseed), pcwchlength).ok() @@ -1212,22 +1003,14 @@ impl IWMDRMWriter3 { (::windows_core::Interface::vtable(self).SetProtectStreamSamples)(::windows_core::Interface::as_raw(self), pimportinitstruct).ok() } } -::windows_core::imp::interface_hierarchy!(IWMDRMWriter3, ::windows_core::IUnknown, IWMDRMWriter, IWMDRMWriter2); -unsafe impl ::windows_core::Interface for IWMDRMWriter3 { - type Vtable = IWMDRMWriter3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMDRMWriter3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa7184082_a4aa_4dde_ac9c_e75dbd1117ce); -} #[repr(C)] #[doc(hidden)] pub struct IWMDRMWriter3_Vtbl { pub base__: IWMDRMWriter2_Vtbl, pub SetProtectStreamSamples: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pimportinitstruct: *const WMDRM_IMPORT_INIT_STRUCT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMDeviceRegistration(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMDeviceRegistration, IWMDeviceRegistration_Vtbl, 0xf6211f03_8d21_4e94_93e6_8510805f2d99); +::windows_core::imp::interface_hierarchy!(IWMDeviceRegistration, ::windows_core::IUnknown); impl IWMDeviceRegistration { pub unsafe fn RegisterDevice(&self, dwregistertype: u32, pbcertificate: &[u8], serialnumber: DRM_VAL16) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1253,13 +1036,6 @@ impl IWMDeviceRegistration { (::windows_core::Interface::vtable(self).GetRegisteredDeviceByID)(::windows_core::Interface::as_raw(self), dwregistertype, ::core::mem::transmute(pbcertificate.as_ptr()), pbcertificate.len().try_into().unwrap(), ::core::mem::transmute(serialnumber), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWMDeviceRegistration, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMDeviceRegistration { - type Vtable = IWMDeviceRegistration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMDeviceRegistration { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf6211f03_8d21_4e94_93e6_8510805f2d99); -} #[repr(C)] #[doc(hidden)] pub struct IWMDeviceRegistration_Vtbl { @@ -1271,31 +1047,22 @@ pub struct IWMDeviceRegistration_Vtbl { pub GetNextRegisteredDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppdevice: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetRegisteredDeviceByID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwregistertype: u32, pbcertificate: *const u8, cbcertificate: u32, serialnumber: DRM_VAL16, ppdevice: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMGetSecureChannel(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMGetSecureChannel, IWMGetSecureChannel_Vtbl, 0x94bc0598_c3d2_11d3_bedf_00c04f612986); +::windows_core::imp::interface_hierarchy!(IWMGetSecureChannel, ::windows_core::IUnknown); impl IWMGetSecureChannel { pub unsafe fn GetPeerSecureChannelInterface(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetPeerSecureChannelInterface)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWMGetSecureChannel, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMGetSecureChannel { - type Vtable = IWMGetSecureChannel_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMGetSecureChannel { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x94bc0598_c3d2_11d3_bedf_00c04f612986); -} #[repr(C)] #[doc(hidden)] pub struct IWMGetSecureChannel_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetPeerSecureChannelInterface: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pppeer: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMHeaderInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMHeaderInfo, IWMHeaderInfo_Vtbl, 0x96406bda_2b2b_11d3_b36b_00c04f6108ff); +::windows_core::imp::interface_hierarchy!(IWMHeaderInfo, ::windows_core::IUnknown); impl IWMHeaderInfo { pub unsafe fn GetAttributeCount(&self, wstreamnum: u16) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1350,13 +1117,6 @@ impl IWMHeaderInfo { (::windows_core::Interface::vtable(self).RemoveScript)(::windows_core::Interface::as_raw(self), windex).ok() } } -::windows_core::imp::interface_hierarchy!(IWMHeaderInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMHeaderInfo { - type Vtable = IWMHeaderInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMHeaderInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x96406bda_2b2b_11d3_b36b_00c04f6108ff); -} #[repr(C)] #[doc(hidden)] pub struct IWMHeaderInfo_Vtbl { @@ -1374,9 +1134,8 @@ pub struct IWMHeaderInfo_Vtbl { pub AddScript: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwsztype: ::windows_core::PCWSTR, pwszcommand: ::windows_core::PCWSTR, cnsscripttime: u64) -> ::windows_core::HRESULT, pub RemoveScript: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, windex: u16) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMHeaderInfo2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMHeaderInfo2, IWMHeaderInfo2_Vtbl, 0x15cf9781_454e_482e_b393_85fae487a810); +::windows_core::imp::interface_hierarchy!(IWMHeaderInfo2, ::windows_core::IUnknown, IWMHeaderInfo); impl IWMHeaderInfo2 { pub unsafe fn GetAttributeCount(&self, wstreamnum: u16) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1438,13 +1197,6 @@ impl IWMHeaderInfo2 { (::windows_core::Interface::vtable(self).GetCodecInfo)(::windows_core::Interface::as_raw(self), windex, pcchname, ::core::mem::transmute(pwszname), pcchdescription, ::core::mem::transmute(pwszdescription), pcodectype, pcbcodecinfo, pbcodecinfo).ok() } } -::windows_core::imp::interface_hierarchy!(IWMHeaderInfo2, ::windows_core::IUnknown, IWMHeaderInfo); -unsafe impl ::windows_core::Interface for IWMHeaderInfo2 { - type Vtable = IWMHeaderInfo2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMHeaderInfo2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x15cf9781_454e_482e_b393_85fae487a810); -} #[repr(C)] #[doc(hidden)] pub struct IWMHeaderInfo2_Vtbl { @@ -1452,9 +1204,8 @@ pub struct IWMHeaderInfo2_Vtbl { pub GetCodecInfoCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pccodecinfos: *mut u32) -> ::windows_core::HRESULT, pub GetCodecInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, windex: u32, pcchname: *mut u16, pwszname: ::windows_core::PWSTR, pcchdescription: *mut u16, pwszdescription: ::windows_core::PWSTR, pcodectype: *mut WMT_CODEC_INFO_TYPE, pcbcodecinfo: *mut u16, pbcodecinfo: *mut u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMHeaderInfo3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMHeaderInfo3, IWMHeaderInfo3_Vtbl, 0x15cc68e3_27cc_4ecd_b222_3f5d02d80bd5); +::windows_core::imp::interface_hierarchy!(IWMHeaderInfo3, ::windows_core::IUnknown, IWMHeaderInfo, IWMHeaderInfo2); impl IWMHeaderInfo3 { pub unsafe fn GetAttributeCount(&self, wstreamnum: u16) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1548,13 +1299,6 @@ impl IWMHeaderInfo3 { (::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::imp::interface_hierarchy!(IWMHeaderInfo3, ::windows_core::IUnknown, IWMHeaderInfo, IWMHeaderInfo2); -unsafe impl ::windows_core::Interface for IWMHeaderInfo3 { - type Vtable = IWMHeaderInfo3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMHeaderInfo3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x15cc68e3_27cc_4ecd_b222_3f5d02d80bd5); -} #[repr(C)] #[doc(hidden)] pub struct IWMHeaderInfo3_Vtbl { @@ -1567,9 +1311,8 @@ pub struct IWMHeaderInfo3_Vtbl { pub DeleteAttribute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wstreamnum: u16, windex: u16) -> ::windows_core::HRESULT, pub AddCodecInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwszname: ::windows_core::PCWSTR, pwszdescription: ::windows_core::PCWSTR, codectype: WMT_CODEC_INFO_TYPE, cbcodecinfo: u16, pbcodecinfo: *const u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMIStreamProps(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMIStreamProps, IWMIStreamProps_Vtbl, 0x6816dad3_2b4b_4c8e_8149_874c3483a753); +::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 @@ -1578,22 +1321,14 @@ impl IWMIStreamProps { (::windows_core::Interface::vtable(self).GetProperty)(::windows_core::Interface::as_raw(self), pszname.into_param().abi(), ptype, pvalue, pdwsize).ok() } } -::windows_core::imp::interface_hierarchy!(IWMIStreamProps, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMIStreamProps { - type Vtable = IWMIStreamProps_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMIStreamProps { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6816dad3_2b4b_4c8e_8149_874c3483a753); -} #[repr(C)] #[doc(hidden)] pub struct IWMIStreamProps_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszname: ::windows_core::PCWSTR, ptype: *mut WMT_ATTR_DATATYPE, pvalue: *mut u8, pdwsize: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMImageInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMImageInfo, IWMImageInfo_Vtbl, 0x9f0aa3b6_7267_4d89_88f2_ba915aa5c4c6); +::windows_core::imp::interface_hierarchy!(IWMImageInfo, ::windows_core::IUnknown); impl IWMImageInfo { pub unsafe fn GetImageCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1603,13 +1338,6 @@ impl IWMImageInfo { (::windows_core::Interface::vtable(self).GetImage)(::windows_core::Interface::as_raw(self), windex, pcchmimetype, ::core::mem::transmute(pwszmimetype), pcchdescription, ::core::mem::transmute(pwszdescription), pimagetype, pcbimagedata, pbimagedata).ok() } } -::windows_core::imp::interface_hierarchy!(IWMImageInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMImageInfo { - type Vtable = IWMImageInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMImageInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9f0aa3b6_7267_4d89_88f2_ba915aa5c4c6); -} #[repr(C)] #[doc(hidden)] pub struct IWMImageInfo_Vtbl { @@ -1617,9 +1345,8 @@ pub struct IWMImageInfo_Vtbl { pub GetImageCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcimages: *mut u32) -> ::windows_core::HRESULT, pub GetImage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, windex: u32, pcchmimetype: *mut u16, pwszmimetype: ::windows_core::PWSTR, pcchdescription: *mut u16, pwszdescription: ::windows_core::PWSTR, pimagetype: *mut u16, pcbimagedata: *mut u32, pbimagedata: *mut u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMIndexer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMIndexer, IWMIndexer_Vtbl, 0x6d7cdc71_9888_11d3_8edc_00c04f6109cf); +::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 @@ -1632,13 +1359,6 @@ impl IWMIndexer { (::windows_core::Interface::vtable(self).Cancel)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IWMIndexer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMIndexer { - type Vtable = IWMIndexer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMIndexer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6d7cdc71_9888_11d3_8edc_00c04f6109cf); -} #[repr(C)] #[doc(hidden)] pub struct IWMIndexer_Vtbl { @@ -1646,9 +1366,8 @@ pub struct IWMIndexer_Vtbl { pub StartIndexing: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwszurl: ::windows_core::PCWSTR, pcallback: *mut ::core::ffi::c_void, pvcontext: *const ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Cancel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMIndexer2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMIndexer2, IWMIndexer2_Vtbl, 0xb70f1e42_6255_4df0_a6b9_02b212d9e2bb); +::windows_core::imp::interface_hierarchy!(IWMIndexer2, ::windows_core::IUnknown, IWMIndexer); impl IWMIndexer2 { pub unsafe fn StartIndexing(&self, pwszurl: P0, pcallback: P1, pvcontext: *const ::core::ffi::c_void) -> ::windows_core::Result<()> where @@ -1664,22 +1383,14 @@ impl IWMIndexer2 { (::windows_core::Interface::vtable(self).Configure)(::windows_core::Interface::as_raw(self), wstreamnum, nindexertype, pvinterval, pvindextype).ok() } } -::windows_core::imp::interface_hierarchy!(IWMIndexer2, ::windows_core::IUnknown, IWMIndexer); -unsafe impl ::windows_core::Interface for IWMIndexer2 { - type Vtable = IWMIndexer2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMIndexer2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb70f1e42_6255_4df0_a6b9_02b212d9e2bb); -} #[repr(C)] #[doc(hidden)] pub struct IWMIndexer2_Vtbl { pub base__: IWMIndexer_Vtbl, pub Configure: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wstreamnum: u16, nindexertype: WMT_INDEXER_TYPE, pvinterval: *const ::core::ffi::c_void, pvindextype: *const ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMInputMediaProps(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMInputMediaProps, IWMInputMediaProps_Vtbl, 0x96406bd5_2b2b_11d3_b36b_00c04f6108ff); +::windows_core::imp::interface_hierarchy!(IWMInputMediaProps, ::windows_core::IUnknown, IWMMediaProps); impl IWMInputMediaProps { pub unsafe fn GetType(&self) -> ::windows_core::Result<::windows_core::GUID> { let mut result__ = ::std::mem::zeroed(); @@ -1698,13 +1409,6 @@ impl IWMInputMediaProps { (::windows_core::Interface::vtable(self).GetGroupName)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pwszname), pcchname).ok() } } -::windows_core::imp::interface_hierarchy!(IWMInputMediaProps, ::windows_core::IUnknown, IWMMediaProps); -unsafe impl ::windows_core::Interface for IWMInputMediaProps { - type Vtable = IWMInputMediaProps_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMInputMediaProps { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x96406bd5_2b2b_11d3_b36b_00c04f6108ff); -} #[repr(C)] #[doc(hidden)] pub struct IWMInputMediaProps_Vtbl { @@ -1712,9 +1416,8 @@ pub struct IWMInputMediaProps_Vtbl { pub GetConnectionName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwszname: ::windows_core::PWSTR, pcchname: *mut u16) -> ::windows_core::HRESULT, pub GetGroupName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwszname: ::windows_core::PWSTR, pcchname: *mut u16) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMLanguageList(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMLanguageList, IWMLanguageList_Vtbl, 0xdf683f00_2d49_4d8e_92b7_fb19f6a0dc57); +::windows_core::imp::interface_hierarchy!(IWMLanguageList, ::windows_core::IUnknown); impl IWMLanguageList { pub unsafe fn GetLanguageCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1731,13 +1434,6 @@ impl IWMLanguageList { (::windows_core::Interface::vtable(self).AddLanguageByRFC1766String)(::windows_core::Interface::as_raw(self), pwszlanguagestring.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWMLanguageList, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMLanguageList { - type Vtable = IWMLanguageList_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMLanguageList { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdf683f00_2d49_4d8e_92b7_fb19f6a0dc57); -} #[repr(C)] #[doc(hidden)] pub struct IWMLanguageList_Vtbl { @@ -1746,9 +1442,8 @@ pub struct IWMLanguageList_Vtbl { pub GetLanguageDetails: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, windex: u16, pwszlanguagestring: ::windows_core::PWSTR, pcchlanguagestringlength: *mut u16) -> ::windows_core::HRESULT, pub AddLanguageByRFC1766String: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwszlanguagestring: ::windows_core::PCWSTR, pwindex: *mut u16) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMLicenseBackup(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMLicenseBackup, IWMLicenseBackup_Vtbl, 0x05e5ac9f_3fb6_4508_bb43_a4067ba1ebe8); +::windows_core::imp::interface_hierarchy!(IWMLicenseBackup, ::windows_core::IUnknown); impl IWMLicenseBackup { pub unsafe fn BackupLicenses(&self, dwflags: u32, pcallback: P0) -> ::windows_core::Result<()> where @@ -1760,13 +1455,6 @@ impl IWMLicenseBackup { (::windows_core::Interface::vtable(self).CancelLicenseBackup)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IWMLicenseBackup, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMLicenseBackup { - type Vtable = IWMLicenseBackup_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMLicenseBackup { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x05e5ac9f_3fb6_4508_bb43_a4067ba1ebe8); -} #[repr(C)] #[doc(hidden)] pub struct IWMLicenseBackup_Vtbl { @@ -1774,9 +1462,8 @@ pub struct IWMLicenseBackup_Vtbl { pub BackupLicenses: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwflags: u32, pcallback: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CancelLicenseBackup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMLicenseRestore(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMLicenseRestore, IWMLicenseRestore_Vtbl, 0xc70b6334_a22e_4efb_a245_15e65a004a13); +::windows_core::imp::interface_hierarchy!(IWMLicenseRestore, ::windows_core::IUnknown); impl IWMLicenseRestore { pub unsafe fn RestoreLicenses(&self, dwflags: u32, pcallback: P0) -> ::windows_core::Result<()> where @@ -1788,13 +1475,6 @@ impl IWMLicenseRestore { (::windows_core::Interface::vtable(self).CancelLicenseRestore)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IWMLicenseRestore, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMLicenseRestore { - type Vtable = IWMLicenseRestore_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMLicenseRestore { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc70b6334_a22e_4efb_a245_15e65a004a13); -} #[repr(C)] #[doc(hidden)] pub struct IWMLicenseRestore_Vtbl { @@ -1802,9 +1482,8 @@ pub struct IWMLicenseRestore_Vtbl { pub RestoreLicenses: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwflags: u32, pcallback: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CancelLicenseRestore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMLicenseRevocationAgent(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMLicenseRevocationAgent, IWMLicenseRevocationAgent_Vtbl, 0x6967f2c9_4e26_4b57_8894_799880f7ac7b); +::windows_core::imp::interface_hierarchy!(IWMLicenseRevocationAgent, ::windows_core::IUnknown); impl IWMLicenseRevocationAgent { pub unsafe fn GetLRBChallenge(&self, pmachineid: *const u8, dwmachineidlength: u32, pchallenge: *const u8, dwchallengelength: u32, pchallengeoutput: *mut u8, pdwchallengeoutputlength: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetLRBChallenge)(::windows_core::Interface::as_raw(self), pmachineid, dwmachineidlength, pchallenge, dwchallengelength, pchallengeoutput, pdwchallengeoutputlength).ok() @@ -1813,13 +1492,6 @@ impl IWMLicenseRevocationAgent { (::windows_core::Interface::vtable(self).ProcessLRB)(::windows_core::Interface::as_raw(self), psignedlrb, dwsignedlrblength, psignedack, pdwsignedacklength).ok() } } -::windows_core::imp::interface_hierarchy!(IWMLicenseRevocationAgent, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMLicenseRevocationAgent { - type Vtable = IWMLicenseRevocationAgent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMLicenseRevocationAgent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6967f2c9_4e26_4b57_8894_799880f7ac7b); -} #[repr(C)] #[doc(hidden)] pub struct IWMLicenseRevocationAgent_Vtbl { @@ -1827,9 +1499,8 @@ pub struct IWMLicenseRevocationAgent_Vtbl { pub GetLRBChallenge: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pmachineid: *const u8, dwmachineidlength: u32, pchallenge: *const u8, dwchallengelength: u32, pchallengeoutput: *mut u8, pdwchallengeoutputlength: *mut u32) -> ::windows_core::HRESULT, pub ProcessLRB: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psignedlrb: *const u8, dwsignedlrblength: u32, psignedack: *mut u8, pdwsignedacklength: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMMediaProps(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMMediaProps, IWMMediaProps_Vtbl, 0x96406bce_2b2b_11d3_b36b_00c04f6108ff); +::windows_core::imp::interface_hierarchy!(IWMMediaProps, ::windows_core::IUnknown); impl IWMMediaProps { pub unsafe fn GetType(&self) -> ::windows_core::Result<::windows_core::GUID> { let mut result__ = ::std::mem::zeroed(); @@ -1842,13 +1513,6 @@ impl IWMMediaProps { (::windows_core::Interface::vtable(self).SetMediaType)(::windows_core::Interface::as_raw(self), ptype).ok() } } -::windows_core::imp::interface_hierarchy!(IWMMediaProps, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMMediaProps { - type Vtable = IWMMediaProps_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMMediaProps { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x96406bce_2b2b_11d3_b36b_00c04f6108ff); -} #[repr(C)] #[doc(hidden)] pub struct IWMMediaProps_Vtbl { @@ -1857,9 +1521,8 @@ pub struct IWMMediaProps_Vtbl { pub GetMediaType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptype: *mut WM_MEDIA_TYPE, pcbtype: *mut u32) -> ::windows_core::HRESULT, pub SetMediaType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptype: *const WM_MEDIA_TYPE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMMetadataEditor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMMetadataEditor, IWMMetadataEditor_Vtbl, 0x96406bd9_2b2b_11d3_b36b_00c04f6108ff); +::windows_core::imp::interface_hierarchy!(IWMMetadataEditor, ::windows_core::IUnknown); impl IWMMetadataEditor { pub unsafe fn Open(&self, pwszfilename: P0) -> ::windows_core::Result<()> where @@ -1874,13 +1537,6 @@ impl IWMMetadataEditor { (::windows_core::Interface::vtable(self).Flush)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IWMMetadataEditor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMMetadataEditor { - type Vtable = IWMMetadataEditor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMMetadataEditor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x96406bd9_2b2b_11d3_b36b_00c04f6108ff); -} #[repr(C)] #[doc(hidden)] pub struct IWMMetadataEditor_Vtbl { @@ -1889,9 +1545,8 @@ pub struct IWMMetadataEditor_Vtbl { pub Close: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Flush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMMetadataEditor2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMMetadataEditor2, IWMMetadataEditor2_Vtbl, 0x203cffe3_2e18_4fdf_b59d_6e71530534cf); +::windows_core::imp::interface_hierarchy!(IWMMetadataEditor2, ::windows_core::IUnknown, IWMMetadataEditor); impl IWMMetadataEditor2 { pub unsafe fn Open(&self, pwszfilename: P0) -> ::windows_core::Result<()> where @@ -1912,22 +1567,14 @@ impl IWMMetadataEditor2 { (::windows_core::Interface::vtable(self).OpenEx)(::windows_core::Interface::as_raw(self), pwszfilename.into_param().abi(), dwdesiredaccess, dwsharemode).ok() } } -::windows_core::imp::interface_hierarchy!(IWMMetadataEditor2, ::windows_core::IUnknown, IWMMetadataEditor); -unsafe impl ::windows_core::Interface for IWMMetadataEditor2 { - type Vtable = IWMMetadataEditor2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMMetadataEditor2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x203cffe3_2e18_4fdf_b59d_6e71530534cf); -} #[repr(C)] #[doc(hidden)] pub struct IWMMetadataEditor2_Vtbl { pub base__: IWMMetadataEditor_Vtbl, pub OpenEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwszfilename: ::windows_core::PCWSTR, dwdesiredaccess: u32, dwsharemode: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMMutualExclusion(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMMutualExclusion, IWMMutualExclusion_Vtbl, 0x96406bde_2b2b_11d3_b36b_00c04f6108ff); +::windows_core::imp::interface_hierarchy!(IWMMutualExclusion, ::windows_core::IUnknown, IWMStreamList); impl IWMMutualExclusion { pub unsafe fn GetStreams(&self, pwstreamnumarray: *mut u16, pcstreams: *mut u16) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.GetStreams)(::windows_core::Interface::as_raw(self), pwstreamnumarray, pcstreams).ok() @@ -1946,13 +1593,6 @@ impl IWMMutualExclusion { (::windows_core::Interface::vtable(self).SetType)(::windows_core::Interface::as_raw(self), guidtype).ok() } } -::windows_core::imp::interface_hierarchy!(IWMMutualExclusion, ::windows_core::IUnknown, IWMStreamList); -unsafe impl ::windows_core::Interface for IWMMutualExclusion { - type Vtable = IWMMutualExclusion_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMMutualExclusion { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x96406bde_2b2b_11d3_b36b_00c04f6108ff); -} #[repr(C)] #[doc(hidden)] pub struct IWMMutualExclusion_Vtbl { @@ -1960,9 +1600,8 @@ pub struct IWMMutualExclusion_Vtbl { pub GetType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pguidtype: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, pub SetType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guidtype: *const ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMMutualExclusion2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMMutualExclusion2, IWMMutualExclusion2_Vtbl, 0x0302b57d_89d1_4ba2_85c9_166f2c53eb91); +::windows_core::imp::interface_hierarchy!(IWMMutualExclusion2, ::windows_core::IUnknown, IWMStreamList, IWMMutualExclusion); impl IWMMutualExclusion2 { pub unsafe fn GetStreams(&self, pwstreamnumarray: *mut u16, pcstreams: *mut u16) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.GetStreams)(::windows_core::Interface::as_raw(self), pwstreamnumarray, pcstreams).ok() @@ -2018,13 +1657,6 @@ impl IWMMutualExclusion2 { (::windows_core::Interface::vtable(self).RemoveStreamForRecord)(::windows_core::Interface::as_raw(self), wrecordnumber, wstreamnumber).ok() } } -::windows_core::imp::interface_hierarchy!(IWMMutualExclusion2, ::windows_core::IUnknown, IWMStreamList, IWMMutualExclusion); -unsafe impl ::windows_core::Interface for IWMMutualExclusion2 { - type Vtable = IWMMutualExclusion2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMMutualExclusion2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0302b57d_89d1_4ba2_85c9_166f2c53eb91); -} #[repr(C)] #[doc(hidden)] pub struct IWMMutualExclusion2_Vtbl { @@ -2040,9 +1672,8 @@ pub struct IWMMutualExclusion2_Vtbl { pub AddStreamForRecord: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wrecordnumber: u16, wstreamnumber: u16) -> ::windows_core::HRESULT, pub RemoveStreamForRecord: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wrecordnumber: u16, wstreamnumber: u16) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMOutputMediaProps(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMOutputMediaProps, IWMOutputMediaProps_Vtbl, 0x96406bd7_2b2b_11d3_b36b_00c04f6108ff); +::windows_core::imp::interface_hierarchy!(IWMOutputMediaProps, ::windows_core::IUnknown, IWMMediaProps); impl IWMOutputMediaProps { pub unsafe fn GetType(&self) -> ::windows_core::Result<::windows_core::GUID> { let mut result__ = ::std::mem::zeroed(); @@ -2061,13 +1692,6 @@ impl IWMOutputMediaProps { (::windows_core::Interface::vtable(self).GetConnectionName)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pwszname), pcchname).ok() } } -::windows_core::imp::interface_hierarchy!(IWMOutputMediaProps, ::windows_core::IUnknown, IWMMediaProps); -unsafe impl ::windows_core::Interface for IWMOutputMediaProps { - type Vtable = IWMOutputMediaProps_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMOutputMediaProps { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x96406bd7_2b2b_11d3_b36b_00c04f6108ff); -} #[repr(C)] #[doc(hidden)] pub struct IWMOutputMediaProps_Vtbl { @@ -2075,9 +1699,8 @@ pub struct IWMOutputMediaProps_Vtbl { pub GetStreamGroupName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwszname: ::windows_core::PWSTR, pcchname: *mut u16) -> ::windows_core::HRESULT, pub GetConnectionName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwszname: ::windows_core::PWSTR, pcchname: *mut u16) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPacketSize(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMPacketSize, IWMPacketSize_Vtbl, 0xcdfb97ab_188f_40b3_b643_5b7903975c59); +::windows_core::imp::interface_hierarchy!(IWMPacketSize, ::windows_core::IUnknown); impl IWMPacketSize { pub unsafe fn GetMaxPacketSize(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2087,13 +1710,6 @@ impl IWMPacketSize { (::windows_core::Interface::vtable(self).SetMaxPacketSize)(::windows_core::Interface::as_raw(self), dwmaxpacketsize).ok() } } -::windows_core::imp::interface_hierarchy!(IWMPacketSize, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMPacketSize { - type Vtable = IWMPacketSize_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMPacketSize { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcdfb97ab_188f_40b3_b643_5b7903975c59); -} #[repr(C)] #[doc(hidden)] pub struct IWMPacketSize_Vtbl { @@ -2101,9 +1717,8 @@ pub struct IWMPacketSize_Vtbl { pub GetMaxPacketSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwmaxpacketsize: *mut u32) -> ::windows_core::HRESULT, pub SetMaxPacketSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwmaxpacketsize: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPacketSize2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMPacketSize2, IWMPacketSize2_Vtbl, 0x8bfc2b9e_b646_4233_a877_1c6a079669dc); +::windows_core::imp::interface_hierarchy!(IWMPacketSize2, ::windows_core::IUnknown, IWMPacketSize); impl IWMPacketSize2 { pub unsafe fn GetMaxPacketSize(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2120,13 +1735,6 @@ impl IWMPacketSize2 { (::windows_core::Interface::vtable(self).SetMinPacketSize)(::windows_core::Interface::as_raw(self), dwminpacketsize).ok() } } -::windows_core::imp::interface_hierarchy!(IWMPacketSize2, ::windows_core::IUnknown, IWMPacketSize); -unsafe impl ::windows_core::Interface for IWMPacketSize2 { - type Vtable = IWMPacketSize2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMPacketSize2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8bfc2b9e_b646_4233_a877_1c6a079669dc); -} #[repr(C)] #[doc(hidden)] pub struct IWMPacketSize2_Vtbl { @@ -2134,52 +1742,35 @@ pub struct IWMPacketSize2_Vtbl { pub GetMinPacketSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwminpacketsize: *mut u32) -> ::windows_core::HRESULT, pub SetMinPacketSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwminpacketsize: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPlayerHook(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMPlayerHook, IWMPlayerHook_Vtbl, 0xe5b7ca9a_0f1c_4f66_9002_74ec50d8b304); +::windows_core::imp::interface_hierarchy!(IWMPlayerHook, ::windows_core::IUnknown); impl IWMPlayerHook { pub unsafe fn PreDecode(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).PreDecode)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IWMPlayerHook, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMPlayerHook { - type Vtable = IWMPlayerHook_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMPlayerHook { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe5b7ca9a_0f1c_4f66_9002_74ec50d8b304); -} #[repr(C)] #[doc(hidden)] pub struct IWMPlayerHook_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub PreDecode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPlayerTimestampHook(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMPlayerTimestampHook, IWMPlayerTimestampHook_Vtbl, 0x28580dda_d98e_48d0_b7ae_69e473a02825); +::windows_core::imp::interface_hierarchy!(IWMPlayerTimestampHook, ::windows_core::IUnknown); impl IWMPlayerTimestampHook { pub unsafe fn MapTimestamp(&self, rtin: i64) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).MapTimestamp)(::windows_core::Interface::as_raw(self), rtin, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWMPlayerTimestampHook, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMPlayerTimestampHook { - type Vtable = IWMPlayerTimestampHook_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMPlayerTimestampHook { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x28580dda_d98e_48d0_b7ae_69e473a02825); -} #[repr(C)] #[doc(hidden)] pub struct IWMPlayerTimestampHook_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub MapTimestamp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rtin: i64, prtout: *mut i64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMProfile(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMProfile, IWMProfile_Vtbl, 0x96406bdb_2b2b_11d3_b36b_00c04f6108ff); +::windows_core::imp::interface_hierarchy!(IWMProfile, ::windows_core::IUnknown); impl IWMProfile { pub unsafe fn GetVersion(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2265,13 +1856,6 @@ impl IWMProfile { (::windows_core::Interface::vtable(self).CreateNewMutualExclusion)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWMProfile, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMProfile { - type Vtable = IWMProfile_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMProfile { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x96406bdb_2b2b_11d3_b36b_00c04f6108ff); -} #[repr(C)] #[doc(hidden)] pub struct IWMProfile_Vtbl { @@ -2295,9 +1879,8 @@ pub struct IWMProfile_Vtbl { pub AddMutualExclusion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pme: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateNewMutualExclusion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppme: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMProfile2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMProfile2, IWMProfile2_Vtbl, 0x07e72d33_d94e_4be7_8843_60ae5ff7e5f5); +::windows_core::imp::interface_hierarchy!(IWMProfile2, ::windows_core::IUnknown, IWMProfile); impl IWMProfile2 { pub unsafe fn GetVersion(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2387,22 +1970,14 @@ impl IWMProfile2 { (::windows_core::Interface::vtable(self).GetProfileID)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWMProfile2, ::windows_core::IUnknown, IWMProfile); -unsafe impl ::windows_core::Interface for IWMProfile2 { - type Vtable = IWMProfile2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMProfile2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x07e72d33_d94e_4be7_8843_60ae5ff7e5f5); -} #[repr(C)] #[doc(hidden)] pub struct IWMProfile2_Vtbl { pub base__: IWMProfile_Vtbl, pub GetProfileID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pguidid: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMProfile3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMProfile3, IWMProfile3_Vtbl, 0x00ef96cc_a461_4546_8bcd_c9a28f0e06f5); +::windows_core::imp::interface_hierarchy!(IWMProfile3, ::windows_core::IUnknown, IWMProfile, IWMProfile2); impl IWMProfile3 { pub unsafe fn GetVersion(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2544,13 +2119,6 @@ impl IWMProfile3 { (::windows_core::Interface::vtable(self).GetExpectedPacketCount)(::windows_core::Interface::as_raw(self), msduration, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWMProfile3, ::windows_core::IUnknown, IWMProfile, IWMProfile2); -unsafe impl ::windows_core::Interface for IWMProfile3 { - type Vtable = IWMProfile3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMProfile3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00ef96cc_a461_4546_8bcd_c9a28f0e06f5); -} #[repr(C)] #[doc(hidden)] pub struct IWMProfile3_Vtbl { @@ -2568,9 +2136,8 @@ pub struct IWMProfile3_Vtbl { pub CreateNewStreamPrioritization: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppsp: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetExpectedPacketCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, msduration: u64, pcpackets: *mut u64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMProfileManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMProfileManager, IWMProfileManager_Vtbl, 0xd16679f2_6ca0_472d_8d31_2f5d55aee155); +::windows_core::imp::interface_hierarchy!(IWMProfileManager, ::windows_core::IUnknown); impl IWMProfileManager { pub unsafe fn CreateEmptyProfile(&self, dwversion: WMT_VERSION) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2601,14 +2168,7 @@ impl IWMProfileManager { pub unsafe fn LoadSystemProfile(&self, dwprofileindex: u32) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).LoadSystemProfile)(::windows_core::Interface::as_raw(self), dwprofileindex, &mut result__).from_abi(result__) - } -} -::windows_core::imp::interface_hierarchy!(IWMProfileManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMProfileManager { - type Vtable = IWMProfileManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMProfileManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd16679f2_6ca0_472d_8d31_2f5d55aee155); + } } #[repr(C)] #[doc(hidden)] @@ -2621,9 +2181,8 @@ pub struct IWMProfileManager_Vtbl { pub GetSystemProfileCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcprofiles: *mut u32) -> ::windows_core::HRESULT, pub LoadSystemProfile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwprofileindex: u32, ppprofile: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMProfileManager2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMProfileManager2, IWMProfileManager2_Vtbl, 0x7a924e51_73c1_494d_8019_23d37ed9b89a); +::windows_core::imp::interface_hierarchy!(IWMProfileManager2, ::windows_core::IUnknown, IWMProfileManager); impl IWMProfileManager2 { pub unsafe fn CreateEmptyProfile(&self, dwversion: WMT_VERSION) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2662,13 +2221,6 @@ impl IWMProfileManager2 { (::windows_core::Interface::vtable(self).SetSystemProfileVersion)(::windows_core::Interface::as_raw(self), dwversion).ok() } } -::windows_core::imp::interface_hierarchy!(IWMProfileManager2, ::windows_core::IUnknown, IWMProfileManager); -unsafe impl ::windows_core::Interface for IWMProfileManager2 { - type Vtable = IWMProfileManager2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMProfileManager2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7a924e51_73c1_494d_8019_23d37ed9b89a); -} #[repr(C)] #[doc(hidden)] pub struct IWMProfileManager2_Vtbl { @@ -2676,9 +2228,8 @@ pub struct IWMProfileManager2_Vtbl { pub GetSystemProfileVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwversion: *mut WMT_VERSION) -> ::windows_core::HRESULT, pub SetSystemProfileVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwversion: WMT_VERSION) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMProfileManagerLanguage(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMProfileManagerLanguage, IWMProfileManagerLanguage_Vtbl, 0xba4dcc78_7ee0_4ab8_b27a_dbce8bc51454); +::windows_core::imp::interface_hierarchy!(IWMProfileManagerLanguage, ::windows_core::IUnknown); impl IWMProfileManagerLanguage { pub unsafe fn GetUserLanguageID(&self, wlangid: *mut u16) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetUserLanguageID)(::windows_core::Interface::as_raw(self), wlangid).ok() @@ -2687,13 +2238,6 @@ impl IWMProfileManagerLanguage { (::windows_core::Interface::vtable(self).SetUserLanguageID)(::windows_core::Interface::as_raw(self), wlangid).ok() } } -::windows_core::imp::interface_hierarchy!(IWMProfileManagerLanguage, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMProfileManagerLanguage { - type Vtable = IWMProfileManagerLanguage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMProfileManagerLanguage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xba4dcc78_7ee0_4ab8_b27a_dbce8bc51454); -} #[repr(C)] #[doc(hidden)] pub struct IWMProfileManagerLanguage_Vtbl { @@ -2701,9 +2245,8 @@ pub struct IWMProfileManagerLanguage_Vtbl { pub GetUserLanguageID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wlangid: *mut u16) -> ::windows_core::HRESULT, pub SetUserLanguageID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wlangid: u16) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMPropertyVault(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMPropertyVault, IWMPropertyVault_Vtbl, 0x72995a79_5090_42a4_9c8c_d9d0b6d34be5); +::windows_core::imp::interface_hierarchy!(IWMPropertyVault, ::windows_core::IUnknown); impl IWMPropertyVault { pub unsafe fn GetPropertyCount(&self, pdwcount: *const u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetPropertyCount)(::windows_core::Interface::as_raw(self), pdwcount).ok() @@ -2733,13 +2276,6 @@ impl IWMPropertyVault { (::windows_core::Interface::vtable(self).Clear)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IWMPropertyVault, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMPropertyVault { - type Vtable = IWMPropertyVault_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMPropertyVault { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x72995a79_5090_42a4_9c8c_d9d0b6d34be5); -} #[repr(C)] #[doc(hidden)] pub struct IWMPropertyVault_Vtbl { @@ -2751,9 +2287,8 @@ pub struct IWMPropertyVault_Vtbl { pub CopyPropertiesFrom: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, piwmpropertyvault: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clear: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMProximityDetection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMProximityDetection, IWMProximityDetection_Vtbl, 0x6a9fd8ee_b651_4bf0_b849_7d4ece79a2b1); +::windows_core::imp::interface_hierarchy!(IWMProximityDetection, ::windows_core::IUnknown); impl IWMProximityDetection { pub unsafe fn StartDetection(&self, pbregistrationmsg: &[u8], pblocaladdress: &[u8], dwextraportsallowed: u32, ppregistrationresponsemsg: *mut ::core::option::Option, pcallback: P0, pvcontext: *const ::core::ffi::c_void) -> ::windows_core::Result<()> where @@ -2762,22 +2297,14 @@ impl IWMProximityDetection { (::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::imp::interface_hierarchy!(IWMProximityDetection, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMProximityDetection { - type Vtable = IWMProximityDetection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMProximityDetection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6a9fd8ee_b651_4bf0_b849_7d4ece79a2b1); -} #[repr(C)] #[doc(hidden)] pub struct IWMProximityDetection_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub StartDetection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbregistrationmsg: *const u8, cbregistrationmsg: u32, pblocaladdress: *const u8, cblocaladdress: u32, dwextraportsallowed: u32, ppregistrationresponsemsg: *mut *mut ::core::ffi::c_void, pcallback: *mut ::core::ffi::c_void, pvcontext: *const ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMReader(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMReader, IWMReader_Vtbl, 0x96406bd6_2b2b_11d3_b36b_00c04f6108ff); +::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 @@ -2824,13 +2351,6 @@ impl IWMReader { (::windows_core::Interface::vtable(self).Resume)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IWMReader, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMReader { - type Vtable = IWMReader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMReader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x96406bd6_2b2b_11d3_b36b_00c04f6108ff); -} #[repr(C)] #[doc(hidden)] pub struct IWMReader_Vtbl { @@ -2847,9 +2367,8 @@ pub struct IWMReader_Vtbl { pub Pause: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Resume: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMReaderAccelerator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMReaderAccelerator, IWMReaderAccelerator_Vtbl, 0xbddc4d08_944d_4d52_a612_46c3fda07dd4); +::windows_core::imp::interface_hierarchy!(IWMReaderAccelerator, ::windows_core::IUnknown); impl IWMReaderAccelerator { pub unsafe fn GetCodecInterface(&self, dwoutputnum: u32, riid: *const ::windows_core::GUID, ppvcodecinterface: *mut *mut ::core::ffi::c_void) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetCodecInterface)(::windows_core::Interface::as_raw(self), dwoutputnum, riid, ppvcodecinterface).ok() @@ -2858,13 +2377,6 @@ impl IWMReaderAccelerator { (::windows_core::Interface::vtable(self).Notify)(::windows_core::Interface::as_raw(self), dwoutputnum, psubtype).ok() } } -::windows_core::imp::interface_hierarchy!(IWMReaderAccelerator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMReaderAccelerator { - type Vtable = IWMReaderAccelerator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMReaderAccelerator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbddc4d08_944d_4d52_a612_46c3fda07dd4); -} #[repr(C)] #[doc(hidden)] pub struct IWMReaderAccelerator_Vtbl { @@ -2872,9 +2384,8 @@ pub struct IWMReaderAccelerator_Vtbl { pub GetCodecInterface: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwoutputnum: u32, riid: *const ::windows_core::GUID, ppvcodecinterface: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Notify: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwoutputnum: u32, psubtype: *const WM_MEDIA_TYPE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMReaderAdvanced(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMReaderAdvanced, IWMReaderAdvanced_Vtbl, 0x96406bea_2b2b_11d3_b36b_00c04f6108ff); +::windows_core::imp::interface_hierarchy!(IWMReaderAdvanced, ::windows_core::IUnknown); impl IWMReaderAdvanced { pub unsafe fn SetUserProvidedClock(&self, fuserclock: P0) -> ::windows_core::Result<()> where @@ -2964,13 +2475,6 @@ impl IWMReaderAdvanced { (::windows_core::Interface::vtable(self).NotifyLateDelivery)(::windows_core::Interface::as_raw(self), cnslateness).ok() } } -::windows_core::imp::interface_hierarchy!(IWMReaderAdvanced, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMReaderAdvanced { - type Vtable = IWMReaderAdvanced_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMReaderAdvanced { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x96406bea_2b2b_11d3_b36b_00c04f6108ff); -} #[repr(C)] #[doc(hidden)] pub struct IWMReaderAdvanced_Vtbl { @@ -2996,9 +2500,8 @@ pub struct IWMReaderAdvanced_Vtbl { pub GetMaxStreamSampleSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wstream: u16, pcbmax: *mut u32) -> ::windows_core::HRESULT, pub NotifyLateDelivery: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cnslateness: u64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMReaderAdvanced2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMReaderAdvanced2, IWMReaderAdvanced2_Vtbl, 0xae14a945_b90c_4d0d_9127_80d665f7d73e); +::windows_core::imp::interface_hierarchy!(IWMReaderAdvanced2, ::windows_core::IUnknown, IWMReaderAdvanced); impl IWMReaderAdvanced2 { pub unsafe fn SetUserProvidedClock(&self, fuserclock: P0) -> ::windows_core::Result<()> where @@ -3154,13 +2657,6 @@ impl IWMReaderAdvanced2 { (::windows_core::Interface::vtable(self).OpenStream)(::windows_core::Interface::as_raw(self), pstream.into_param().abi(), pcallback.into_param().abi(), pvcontext).ok() } } -::windows_core::imp::interface_hierarchy!(IWMReaderAdvanced2, ::windows_core::IUnknown, IWMReaderAdvanced); -unsafe impl ::windows_core::Interface for IWMReaderAdvanced2 { - type Vtable = IWMReaderAdvanced2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMReaderAdvanced2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xae14a945_b90c_4d0d_9127_80d665f7d73e); -} #[repr(C)] #[doc(hidden)] pub struct IWMReaderAdvanced2_Vtbl { @@ -3184,9 +2680,8 @@ pub struct IWMReaderAdvanced2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] OpenStream: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMReaderAdvanced3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMReaderAdvanced3, IWMReaderAdvanced3_Vtbl, 0x5dc0674b_f04b_4a4e_9f2a_b1afde2c8100); +::windows_core::imp::interface_hierarchy!(IWMReaderAdvanced3, ::windows_core::IUnknown, IWMReaderAdvanced, IWMReaderAdvanced2); impl IWMReaderAdvanced3 { pub unsafe fn SetUserProvidedClock(&self, fuserclock: P0) -> ::windows_core::Result<()> where @@ -3348,13 +2843,6 @@ impl IWMReaderAdvanced3 { (::windows_core::Interface::vtable(self).StartAtPosition)(::windows_core::Interface::as_raw(self), wstreamnum, pvoffsetstart, pvduration, dwoffsetformat, frate, pvcontext).ok() } } -::windows_core::imp::interface_hierarchy!(IWMReaderAdvanced3, ::windows_core::IUnknown, IWMReaderAdvanced, IWMReaderAdvanced2); -unsafe impl ::windows_core::Interface for IWMReaderAdvanced3 { - type Vtable = IWMReaderAdvanced3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMReaderAdvanced3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5dc0674b_f04b_4a4e_9f2a_b1afde2c8100); -} #[repr(C)] #[doc(hidden)] pub struct IWMReaderAdvanced3_Vtbl { @@ -3362,9 +2850,8 @@ pub struct IWMReaderAdvanced3_Vtbl { pub StopNetStreaming: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub StartAtPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wstreamnum: u16, pvoffsetstart: *const ::core::ffi::c_void, pvduration: *const ::core::ffi::c_void, dwoffsetformat: WMT_OFFSET_FORMAT, frate: f32, pvcontext: *const ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMReaderAdvanced4(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMReaderAdvanced4, IWMReaderAdvanced4_Vtbl, 0x945a76a2_12ae_4d48_bd3c_cd1d90399b85); +::windows_core::imp::interface_hierarchy!(IWMReaderAdvanced4, ::windows_core::IUnknown, IWMReaderAdvanced, IWMReaderAdvanced2, IWMReaderAdvanced3); impl IWMReaderAdvanced4 { pub unsafe fn SetUserProvidedClock(&self, fuserclock: P0) -> ::windows_core::Result<()> where @@ -3562,13 +3049,6 @@ impl IWMReaderAdvanced4 { (::windows_core::Interface::vtable(self).GetURL)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pwszurl), pcchurl).ok() } } -::windows_core::imp::interface_hierarchy!(IWMReaderAdvanced4, ::windows_core::IUnknown, IWMReaderAdvanced, IWMReaderAdvanced2, IWMReaderAdvanced3); -unsafe impl ::windows_core::Interface for IWMReaderAdvanced4 { - type Vtable = IWMReaderAdvanced4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMReaderAdvanced4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x945a76a2_12ae_4d48_bd3c_cd1d90399b85); -} #[repr(C)] #[doc(hidden)] pub struct IWMReaderAdvanced4_Vtbl { @@ -3583,9 +3063,8 @@ pub struct IWMReaderAdvanced4_Vtbl { pub CancelSaveFileAs: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwszurl: ::windows_core::PWSTR, pcchurl: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMReaderAdvanced5(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMReaderAdvanced5, IWMReaderAdvanced5_Vtbl, 0x24c44db0_55d1_49ae_a5cc_f13815e36363); +::windows_core::imp::interface_hierarchy!(IWMReaderAdvanced5, ::windows_core::IUnknown, IWMReaderAdvanced, IWMReaderAdvanced2, IWMReaderAdvanced3, IWMReaderAdvanced4); impl IWMReaderAdvanced5 { pub unsafe fn SetUserProvidedClock(&self, fuserclock: P0) -> ::windows_core::Result<()> where @@ -3789,22 +3268,14 @@ impl IWMReaderAdvanced5 { (::windows_core::Interface::vtable(self).SetPlayerHook)(::windows_core::Interface::as_raw(self), dwoutputnum, phook.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IWMReaderAdvanced5, ::windows_core::IUnknown, IWMReaderAdvanced, IWMReaderAdvanced2, IWMReaderAdvanced3, IWMReaderAdvanced4); -unsafe impl ::windows_core::Interface for IWMReaderAdvanced5 { - type Vtable = IWMReaderAdvanced5_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMReaderAdvanced5 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x24c44db0_55d1_49ae_a5cc_f13815e36363); -} #[repr(C)] #[doc(hidden)] pub struct IWMReaderAdvanced5_Vtbl { pub base__: IWMReaderAdvanced4_Vtbl, pub SetPlayerHook: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwoutputnum: u32, phook: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMReaderAdvanced6(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMReaderAdvanced6, IWMReaderAdvanced6_Vtbl, 0x18a2e7f8_428f_4acd_8a00_e64639bc93de); +::windows_core::imp::interface_hierarchy!(IWMReaderAdvanced6, ::windows_core::IUnknown, IWMReaderAdvanced, IWMReaderAdvanced2, IWMReaderAdvanced3, IWMReaderAdvanced4, IWMReaderAdvanced5); impl IWMReaderAdvanced6 { pub unsafe fn SetUserProvidedClock(&self, fuserclock: P0) -> ::windows_core::Result<()> where @@ -4011,22 +3482,14 @@ impl IWMReaderAdvanced6 { (::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() } } -::windows_core::imp::interface_hierarchy!(IWMReaderAdvanced6, ::windows_core::IUnknown, IWMReaderAdvanced, IWMReaderAdvanced2, IWMReaderAdvanced3, IWMReaderAdvanced4, IWMReaderAdvanced5); -unsafe impl ::windows_core::Interface for IWMReaderAdvanced6 { - type Vtable = IWMReaderAdvanced6_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMReaderAdvanced6 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x18a2e7f8_428f_4acd_8a00_e64639bc93de); -} #[repr(C)] #[doc(hidden)] pub struct IWMReaderAdvanced6_Vtbl { pub base__: IWMReaderAdvanced5_Vtbl, pub SetProtectStreamSamples: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbcertificate: *const u8, cbcertificate: u32, dwcertificatetype: u32, dwflags: u32, pbinitializationvector: *mut u8, pcbinitializationvector: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMReaderAllocatorEx(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMReaderAllocatorEx, IWMReaderAllocatorEx_Vtbl, 0x9f762fa7_a22e_428d_93c9_ac82f3aafe5a); +::windows_core::imp::interface_hierarchy!(IWMReaderAllocatorEx, ::windows_core::IUnknown); impl IWMReaderAllocatorEx { pub unsafe fn AllocateForStreamEx(&self, wstreamnum: u16, cbbuffer: u32, ppbuffer: *mut ::core::option::Option, dwflags: u32, cnssampletime: u64, cnssampleduration: u64, pvcontext: *const ::core::ffi::c_void) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).AllocateForStreamEx)(::windows_core::Interface::as_raw(self), wstreamnum, cbbuffer, ::core::mem::transmute(ppbuffer), dwflags, cnssampletime, cnssampleduration, pvcontext).ok() @@ -4035,13 +3498,6 @@ impl IWMReaderAllocatorEx { (::windows_core::Interface::vtable(self).AllocateForOutputEx)(::windows_core::Interface::as_raw(self), dwoutputnum, cbbuffer, ::core::mem::transmute(ppbuffer), dwflags, cnssampletime, cnssampleduration, pvcontext).ok() } } -::windows_core::imp::interface_hierarchy!(IWMReaderAllocatorEx, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMReaderAllocatorEx { - type Vtable = IWMReaderAllocatorEx_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMReaderAllocatorEx { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9f762fa7_a22e_428d_93c9_ac82f3aafe5a); -} #[repr(C)] #[doc(hidden)] pub struct IWMReaderAllocatorEx_Vtbl { @@ -4049,9 +3505,8 @@ pub struct IWMReaderAllocatorEx_Vtbl { pub AllocateForStreamEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wstreamnum: u16, cbbuffer: u32, ppbuffer: *mut *mut ::core::ffi::c_void, dwflags: u32, cnssampletime: u64, cnssampleduration: u64, pvcontext: *const ::core::ffi::c_void) -> ::windows_core::HRESULT, pub AllocateForOutputEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwoutputnum: u32, cbbuffer: u32, ppbuffer: *mut *mut ::core::ffi::c_void, dwflags: u32, cnssampletime: u64, cnssampleduration: u64, pvcontext: *const ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMReaderCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMReaderCallback, IWMReaderCallback_Vtbl, 0x96406bd8_2b2b_11d3_b36b_00c04f6108ff); +::windows_core::imp::interface_hierarchy!(IWMReaderCallback, ::windows_core::IUnknown, IWMStatusCallback); impl IWMReaderCallback { pub unsafe fn OnStatus(&self, status: WMT_STATUS, hr: ::windows_core::HRESULT, dwtype: WMT_ATTR_DATATYPE, pvalue: *const u8, pvcontext: *const ::core::ffi::c_void) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.OnStatus)(::windows_core::Interface::as_raw(self), status, hr, dwtype, pvalue, pvcontext).ok() @@ -4063,22 +3518,14 @@ impl IWMReaderCallback { (::windows_core::Interface::vtable(self).OnSample)(::windows_core::Interface::as_raw(self), dwoutputnum, cnssampletime, cnssampleduration, dwflags, psample.into_param().abi(), pvcontext).ok() } } -::windows_core::imp::interface_hierarchy!(IWMReaderCallback, ::windows_core::IUnknown, IWMStatusCallback); -unsafe impl ::windows_core::Interface for IWMReaderCallback { - type Vtable = IWMReaderCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMReaderCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x96406bd8_2b2b_11d3_b36b_00c04f6108ff); -} #[repr(C)] #[doc(hidden)] pub struct IWMReaderCallback_Vtbl { pub base__: IWMStatusCallback_Vtbl, pub OnSample: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwoutputnum: u32, cnssampletime: u64, cnssampleduration: u64, dwflags: u32, psample: *mut ::core::ffi::c_void, pvcontext: *const ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMReaderCallbackAdvanced(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMReaderCallbackAdvanced, IWMReaderCallbackAdvanced_Vtbl, 0x96406beb_2b2b_11d3_b36b_00c04f6108ff); +::windows_core::imp::interface_hierarchy!(IWMReaderCallbackAdvanced, ::windows_core::IUnknown); 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 @@ -4102,13 +3549,6 @@ impl IWMReaderCallbackAdvanced { (::windows_core::Interface::vtable(self).AllocateForOutput)(::windows_core::Interface::as_raw(self), dwoutputnum, cbbuffer, ::core::mem::transmute(ppbuffer), pvcontext).ok() } } -::windows_core::imp::interface_hierarchy!(IWMReaderCallbackAdvanced, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMReaderCallbackAdvanced { - type Vtable = IWMReaderCallbackAdvanced_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMReaderCallbackAdvanced { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x96406beb_2b2b_11d3_b36b_00c04f6108ff); -} #[repr(C)] #[doc(hidden)] pub struct IWMReaderCallbackAdvanced_Vtbl { @@ -4120,9 +3560,8 @@ pub struct IWMReaderCallbackAdvanced_Vtbl { pub AllocateForStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wstreamnum: u16, cbbuffer: u32, ppbuffer: *mut *mut ::core::ffi::c_void, pvcontext: *const ::core::ffi::c_void) -> ::windows_core::HRESULT, pub AllocateForOutput: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwoutputnum: u32, cbbuffer: u32, ppbuffer: *mut *mut ::core::ffi::c_void, pvcontext: *const ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMReaderNetworkConfig(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMReaderNetworkConfig, IWMReaderNetworkConfig_Vtbl, 0x96406bec_2b2b_11d3_b36b_00c04f6108ff); +::windows_core::imp::interface_hierarchy!(IWMReaderNetworkConfig, ::windows_core::IUnknown); impl IWMReaderNetworkConfig { pub unsafe fn GetBufferingTime(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -4287,13 +3726,6 @@ impl IWMReaderNetworkConfig { (::windows_core::Interface::vtable(self).ResetLoggingUrlList)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IWMReaderNetworkConfig, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMReaderNetworkConfig { - type Vtable = IWMReaderNetworkConfig_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMReaderNetworkConfig { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x96406bec_2b2b_11d3_b36b_00c04f6108ff); -} #[repr(C)] #[doc(hidden)] pub struct IWMReaderNetworkConfig_Vtbl { @@ -4332,9 +3764,8 @@ pub struct IWMReaderNetworkConfig_Vtbl { pub GetLoggingUrlCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwurlcount: *mut u32) -> ::windows_core::HRESULT, pub ResetLoggingUrlList: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMReaderNetworkConfig2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMReaderNetworkConfig2, IWMReaderNetworkConfig2_Vtbl, 0xd979a853_042b_4050_8387_c939db22013f); +::windows_core::imp::interface_hierarchy!(IWMReaderNetworkConfig2, ::windows_core::IUnknown, IWMReaderNetworkConfig); impl IWMReaderNetworkConfig2 { pub unsafe fn GetBufferingTime(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -4557,13 +3988,6 @@ impl IWMReaderNetworkConfig2 { (::windows_core::Interface::vtable(self).GetMaxNetPacketSize)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWMReaderNetworkConfig2, ::windows_core::IUnknown, IWMReaderNetworkConfig); -unsafe impl ::windows_core::Interface for IWMReaderNetworkConfig2 { - type Vtable = IWMReaderNetworkConfig2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMReaderNetworkConfig2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd979a853_042b_4050_8387_c939db22013f); -} #[repr(C)] #[doc(hidden)] pub struct IWMReaderNetworkConfig2_Vtbl { @@ -4582,9 +4006,8 @@ pub struct IWMReaderNetworkConfig2_Vtbl { pub SetEnableThinning: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fenablethinning: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub GetMaxNetPacketSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwmaxnetpacketsize: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMReaderPlaylistBurn(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMReaderPlaylistBurn, IWMReaderPlaylistBurn_Vtbl, 0xf28c0300_9baa_4477_a846_1744d9cbf533); +::windows_core::imp::interface_hierarchy!(IWMReaderPlaylistBurn, ::windows_core::IUnknown); 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 @@ -4603,13 +4026,6 @@ impl IWMReaderPlaylistBurn { (::windows_core::Interface::vtable(self).EndPlaylistBurn)(::windows_core::Interface::as_raw(self), hrburnresult).ok() } } -::windows_core::imp::interface_hierarchy!(IWMReaderPlaylistBurn, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMReaderPlaylistBurn { - type Vtable = IWMReaderPlaylistBurn_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMReaderPlaylistBurn { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf28c0300_9baa_4477_a846_1744d9cbf533); -} #[repr(C)] #[doc(hidden)] pub struct IWMReaderPlaylistBurn_Vtbl { @@ -4619,9 +4035,8 @@ pub struct IWMReaderPlaylistBurn_Vtbl { pub Cancel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub EndPlaylistBurn: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hrburnresult: ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMReaderStreamClock(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMReaderStreamClock, IWMReaderStreamClock_Vtbl, 0x96406bed_2b2b_11d3_b36b_00c04f6108ff); +::windows_core::imp::interface_hierarchy!(IWMReaderStreamClock, ::windows_core::IUnknown); impl IWMReaderStreamClock { pub unsafe fn GetTime(&self, pcnsnow: *const u64) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetTime)(::windows_core::Interface::as_raw(self), pcnsnow).ok() @@ -4634,13 +4049,6 @@ impl IWMReaderStreamClock { (::windows_core::Interface::vtable(self).KillTimer)(::windows_core::Interface::as_raw(self), dwtimerid).ok() } } -::windows_core::imp::interface_hierarchy!(IWMReaderStreamClock, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMReaderStreamClock { - type Vtable = IWMReaderStreamClock_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMReaderStreamClock { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x96406bed_2b2b_11d3_b36b_00c04f6108ff); -} #[repr(C)] #[doc(hidden)] pub struct IWMReaderStreamClock_Vtbl { @@ -4649,9 +4057,8 @@ pub struct IWMReaderStreamClock_Vtbl { pub SetTimer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cnswhen: u64, pvparam: *const ::core::ffi::c_void, pdwtimerid: *mut u32) -> ::windows_core::HRESULT, pub KillTimer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwtimerid: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMReaderTimecode(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMReaderTimecode, IWMReaderTimecode_Vtbl, 0xf369e2f0_e081_4fe6_8450_b810b2f410d1); +::windows_core::imp::interface_hierarchy!(IWMReaderTimecode, ::windows_core::IUnknown); impl IWMReaderTimecode { pub unsafe fn GetTimecodeRangeCount(&self, wstreamnum: u16) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -4661,13 +4068,6 @@ impl IWMReaderTimecode { (::windows_core::Interface::vtable(self).GetTimecodeRangeBounds)(::windows_core::Interface::as_raw(self), wstreamnum, wrangenum, pstarttimecode, pendtimecode).ok() } } -::windows_core::imp::interface_hierarchy!(IWMReaderTimecode, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMReaderTimecode { - type Vtable = IWMReaderTimecode_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMReaderTimecode { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf369e2f0_e081_4fe6_8450_b810b2f410d1); -} #[repr(C)] #[doc(hidden)] pub struct IWMReaderTimecode_Vtbl { @@ -4675,9 +4075,8 @@ pub struct IWMReaderTimecode_Vtbl { pub GetTimecodeRangeCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wstreamnum: u16, pwrangecount: *mut u16) -> ::windows_core::HRESULT, pub GetTimecodeRangeBounds: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wstreamnum: u16, wrangenum: u16, pstarttimecode: *mut u32, pendtimecode: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMReaderTypeNegotiation(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMReaderTypeNegotiation, IWMReaderTypeNegotiation_Vtbl, 0xfdbe5592_81a1_41ea_93bd_735cad1adc05); +::windows_core::imp::interface_hierarchy!(IWMReaderTypeNegotiation, ::windows_core::IUnknown); impl IWMReaderTypeNegotiation { pub unsafe fn TryOutputProps(&self, dwoutputnum: u32, poutput: P0) -> ::windows_core::Result<()> where @@ -4686,22 +4085,14 @@ impl IWMReaderTypeNegotiation { (::windows_core::Interface::vtable(self).TryOutputProps)(::windows_core::Interface::as_raw(self), dwoutputnum, poutput.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IWMReaderTypeNegotiation, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMReaderTypeNegotiation { - type Vtable = IWMReaderTypeNegotiation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMReaderTypeNegotiation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfdbe5592_81a1_41ea_93bd_735cad1adc05); -} #[repr(C)] #[doc(hidden)] pub struct IWMReaderTypeNegotiation_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub TryOutputProps: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwoutputnum: u32, poutput: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMRegisterCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMRegisterCallback, IWMRegisterCallback_Vtbl, 0xcf4b1f99_4de2_4e49_a363_252740d99bc1); +::windows_core::imp::interface_hierarchy!(IWMRegisterCallback, ::windows_core::IUnknown); impl IWMRegisterCallback { pub unsafe fn Advise(&self, pcallback: P0, pvcontext: *const ::core::ffi::c_void) -> ::windows_core::Result<()> where @@ -4716,13 +4107,6 @@ impl IWMRegisterCallback { (::windows_core::Interface::vtable(self).Unadvise)(::windows_core::Interface::as_raw(self), pcallback.into_param().abi(), pvcontext).ok() } } -::windows_core::imp::interface_hierarchy!(IWMRegisterCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMRegisterCallback { - type Vtable = IWMRegisterCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMRegisterCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcf4b1f99_4de2_4e49_a363_252740d99bc1); -} #[repr(C)] #[doc(hidden)] pub struct IWMRegisterCallback_Vtbl { @@ -4730,9 +4114,8 @@ pub struct IWMRegisterCallback_Vtbl { pub Advise: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcallback: *mut ::core::ffi::c_void, pvcontext: *const ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Unadvise: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcallback: *mut ::core::ffi::c_void, pvcontext: *const ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMRegisteredDevice(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMRegisteredDevice, IWMRegisteredDevice_Vtbl, 0xa4503bec_5508_4148_97ac_bfa75760a70d); +::windows_core::imp::interface_hierarchy!(IWMRegisteredDevice, ::windows_core::IUnknown); impl IWMRegisteredDevice { pub unsafe fn GetDeviceSerialNumber(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -4796,13 +4179,6 @@ impl IWMRegisteredDevice { (::windows_core::Interface::vtable(self).Close)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IWMRegisteredDevice, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMRegisteredDevice { - type Vtable = IWMRegisteredDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMRegisteredDevice { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa4503bec_5508_4148_97ac_bfa75760a70d); -} #[repr(C)] #[doc(hidden)] pub struct IWMRegisteredDevice_Vtbl { @@ -4822,9 +4198,8 @@ pub struct IWMRegisteredDevice_Vtbl { pub Open: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Close: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMSBufferAllocator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMSBufferAllocator, IWMSBufferAllocator_Vtbl, 0x61103ca4_2033_11d2_9ef1_006097d2d7cf); +::windows_core::imp::interface_hierarchy!(IWMSBufferAllocator, ::windows_core::IUnknown); impl IWMSBufferAllocator { pub unsafe fn AllocateBuffer(&self, dwmaxbuffersize: u32) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -4835,13 +4210,6 @@ impl IWMSBufferAllocator { (::windows_core::Interface::vtable(self).AllocatePageSizeBuffer)(::windows_core::Interface::as_raw(self), dwmaxbuffersize, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWMSBufferAllocator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMSBufferAllocator { - type Vtable = IWMSBufferAllocator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMSBufferAllocator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x61103ca4_2033_11d2_9ef1_006097d2d7cf); -} #[repr(C)] #[doc(hidden)] pub struct IWMSBufferAllocator_Vtbl { @@ -4849,9 +4217,8 @@ pub struct IWMSBufferAllocator_Vtbl { pub AllocateBuffer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwmaxbuffersize: u32, ppbuffer: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub AllocatePageSizeBuffer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwmaxbuffersize: u32, ppbuffer: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMSInternalAdminNetSource(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMSInternalAdminNetSource, IWMSInternalAdminNetSource_Vtbl, 0x8bb23e5f_d127_4afb_8d02_ae5b66d54c78); +::windows_core::imp::interface_hierarchy!(IWMSInternalAdminNetSource, ::windows_core::IUnknown); impl IWMSInternalAdminNetSource { pub unsafe fn Initialize(&self, psharednamespace: P0, pnamespacenode: P1, pnetsourcecreator: P2, fembeddedinserver: P3) -> ::windows_core::Result<()> where @@ -4913,13 +4280,6 @@ impl IWMSInternalAdminNetSource { (::windows_core::Interface::vtable(self).IsUsingIE)(::windows_core::Interface::as_raw(self), dwproxycontext, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWMSInternalAdminNetSource, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMSInternalAdminNetSource { - type Vtable = IWMSInternalAdminNetSource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMSInternalAdminNetSource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8bb23e5f_d127_4afb_8d02_ae5b66d54c78); -} #[repr(C)] #[doc(hidden)] pub struct IWMSInternalAdminNetSource_Vtbl { @@ -4936,9 +4296,8 @@ pub struct IWMSInternalAdminNetSource_Vtbl { pub ShutdownProxyContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwproxycontext: u32) -> ::windows_core::HRESULT, pub IsUsingIE: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwproxycontext: u32, pfisusingie: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMSInternalAdminNetSource2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMSInternalAdminNetSource2, IWMSInternalAdminNetSource2_Vtbl, 0xe74d58c3_cf77_4b51_af17_744687c43eae); +::windows_core::imp::interface_hierarchy!(IWMSInternalAdminNetSource2, ::windows_core::IUnknown); 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 @@ -4977,13 +4336,6 @@ impl IWMSInternalAdminNetSource2 { (::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::imp::interface_hierarchy!(IWMSInternalAdminNetSource2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMSInternalAdminNetSource2 { - type Vtable = IWMSInternalAdminNetSource2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMSInternalAdminNetSource2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe74d58c3_cf77_4b51_af17_744687c43eae); -} #[repr(C)] #[doc(hidden)] pub struct IWMSInternalAdminNetSource2_Vtbl { @@ -4993,9 +4345,8 @@ pub struct IWMSInternalAdminNetSource2_Vtbl { pub DeleteCredentialsEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrrealm: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstrurl: ::std::mem::MaybeUninit<::windows_core::BSTR>, fproxy: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub FindProxyForURLEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprotocol: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstrhost: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstrurl: ::std::mem::MaybeUninit<::windows_core::BSTR>, pfproxyenabled: *mut super::super::Foundation::BOOL, pbstrproxyserver: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>, pdwproxyport: *mut u32, pdwproxycontext: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMSInternalAdminNetSource3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMSInternalAdminNetSource3, IWMSInternalAdminNetSource3_Vtbl, 0x6b63d08e_4590_44af_9eb3_57ff1e73bf80); +::windows_core::imp::interface_hierarchy!(IWMSInternalAdminNetSource3, ::windows_core::IUnknown, IWMSInternalAdminNetSource2); 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 @@ -5078,13 +4429,6 @@ impl IWMSInternalAdminNetSource3 { (::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::imp::interface_hierarchy!(IWMSInternalAdminNetSource3, ::windows_core::IUnknown, IWMSInternalAdminNetSource2); -unsafe impl ::windows_core::Interface for IWMSInternalAdminNetSource3 { - type Vtable = IWMSInternalAdminNetSource3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMSInternalAdminNetSource3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6b63d08e_4590_44af_9eb3_57ff1e73bf80); -} #[repr(C)] #[doc(hidden)] pub struct IWMSInternalAdminNetSource3_Vtbl { @@ -5097,9 +4441,8 @@ pub struct IWMSInternalAdminNetSource3_Vtbl { pub SetCredentialsEx2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrrealm: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstrurl: ::std::mem::MaybeUninit<::windows_core::BSTR>, fproxy: super::super::Foundation::BOOL, bstrname: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstrpassword: ::std::mem::MaybeUninit<::windows_core::BSTR>, fpersist: super::super::Foundation::BOOL, fconfirmedgood: super::super::Foundation::BOOL, fcleartextauthentication: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub GetCredentialsEx2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrrealm: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstrurl: ::std::mem::MaybeUninit<::windows_core::BSTR>, fproxy: super::super::Foundation::BOOL, fcleartextauthentication: super::super::Foundation::BOOL, pdwurlpolicy: *mut NETSOURCE_URLCREDPOLICY_SETTINGS, pbstrname: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>, pbstrpassword: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>, pfconfirmedgood: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMSecureChannel(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMSecureChannel, IWMSecureChannel_Vtbl, 0x2720598a_d0f2_4189_bd10_91c46ef0936f); +::windows_core::imp::interface_hierarchy!(IWMSecureChannel, ::windows_core::IUnknown, IWMAuthorizer); impl IWMSecureChannel { pub unsafe fn GetCertCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -5154,13 +4497,6 @@ impl IWMSecureChannel { (::windows_core::Interface::vtable(self).WMSC_SetSharedData)(::windows_core::Interface::as_raw(self), dwcertindex, pbshareddata).ok() } } -::windows_core::imp::interface_hierarchy!(IWMSecureChannel, ::windows_core::IUnknown, IWMAuthorizer); -unsafe impl ::windows_core::Interface for IWMSecureChannel { - type Vtable = IWMSecureChannel_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMSecureChannel { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2720598a_d0f2_4189_bd10_91c46ef0936f); -} #[repr(C)] #[doc(hidden)] pub struct IWMSecureChannel_Vtbl { @@ -5177,30 +4513,21 @@ pub struct IWMSecureChannel_Vtbl { pub WMSC_Unlock: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub WMSC_SetSharedData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwcertindex: u32, pbshareddata: *const u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMStatusCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMStatusCallback, IWMStatusCallback_Vtbl, 0x6d7cdc70_9888_11d3_8edc_00c04f6109cf); +::windows_core::imp::interface_hierarchy!(IWMStatusCallback, ::windows_core::IUnknown); impl IWMStatusCallback { pub unsafe fn OnStatus(&self, status: WMT_STATUS, hr: ::windows_core::HRESULT, dwtype: WMT_ATTR_DATATYPE, pvalue: *const u8, pvcontext: *const ::core::ffi::c_void) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnStatus)(::windows_core::Interface::as_raw(self), status, hr, dwtype, pvalue, pvcontext).ok() } } -::windows_core::imp::interface_hierarchy!(IWMStatusCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMStatusCallback { - type Vtable = IWMStatusCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMStatusCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6d7cdc70_9888_11d3_8edc_00c04f6109cf); -} #[repr(C)] #[doc(hidden)] pub struct IWMStatusCallback_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, status: WMT_STATUS, hr: ::windows_core::HRESULT, dwtype: WMT_ATTR_DATATYPE, pvalue: *const u8, pvcontext: *const ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMStreamConfig(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMStreamConfig, IWMStreamConfig_Vtbl, 0x96406bdc_2b2b_11d3_b36b_00c04f6108ff); +::windows_core::imp::interface_hierarchy!(IWMStreamConfig, ::windows_core::IUnknown); impl IWMStreamConfig { pub unsafe fn GetStreamType(&self) -> ::windows_core::Result<::windows_core::GUID> { let mut result__ = ::std::mem::zeroed(); @@ -5246,13 +4573,6 @@ impl IWMStreamConfig { (::windows_core::Interface::vtable(self).SetBufferWindow)(::windows_core::Interface::as_raw(self), msbufferwindow).ok() } } -::windows_core::imp::interface_hierarchy!(IWMStreamConfig, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMStreamConfig { - type Vtable = IWMStreamConfig_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMStreamConfig { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x96406bdc_2b2b_11d3_b36b_00c04f6108ff); -} #[repr(C)] #[doc(hidden)] pub struct IWMStreamConfig_Vtbl { @@ -5269,9 +4589,8 @@ pub struct IWMStreamConfig_Vtbl { pub GetBufferWindow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pmsbufferwindow: *mut u32) -> ::windows_core::HRESULT, pub SetBufferWindow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, msbufferwindow: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMStreamConfig2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMStreamConfig2, IWMStreamConfig2_Vtbl, 0x7688d8cb_fc0d_43bd_9459_5a8dec200cfa); +::windows_core::imp::interface_hierarchy!(IWMStreamConfig2, ::windows_core::IUnknown, IWMStreamConfig); impl IWMStreamConfig2 { pub unsafe fn GetStreamType(&self) -> ::windows_core::Result<::windows_core::GUID> { let mut result__ = ::std::mem::zeroed(); @@ -5337,13 +4656,6 @@ impl IWMStreamConfig2 { (::windows_core::Interface::vtable(self).RemoveAllDataUnitExtensions)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IWMStreamConfig2, ::windows_core::IUnknown, IWMStreamConfig); -unsafe impl ::windows_core::Interface for IWMStreamConfig2 { - type Vtable = IWMStreamConfig2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMStreamConfig2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7688d8cb_fc0d_43bd_9459_5a8dec200cfa); -} #[repr(C)] #[doc(hidden)] pub struct IWMStreamConfig2_Vtbl { @@ -5355,9 +4667,8 @@ pub struct IWMStreamConfig2_Vtbl { pub GetDataUnitExtension: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wdataunitextensionnumber: u16, pguidextensionsystemid: *mut ::windows_core::GUID, pcbextensiondatasize: *mut u16, pbextensionsysteminfo: *mut u8, pcbextensionsysteminfo: *mut u32) -> ::windows_core::HRESULT, pub RemoveAllDataUnitExtensions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMStreamConfig3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMStreamConfig3, IWMStreamConfig3_Vtbl, 0xcb164104_3aa9_45a7_9ac9_4daee131d6e1); +::windows_core::imp::interface_hierarchy!(IWMStreamConfig3, ::windows_core::IUnknown, IWMStreamConfig, IWMStreamConfig2); impl IWMStreamConfig3 { pub unsafe fn GetStreamType(&self) -> ::windows_core::Result<::windows_core::GUID> { let mut result__ = ::std::mem::zeroed(); @@ -5432,13 +4743,6 @@ impl IWMStreamConfig3 { (::windows_core::Interface::vtable(self).SetLanguage)(::windows_core::Interface::as_raw(self), pwszlanguagestring.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IWMStreamConfig3, ::windows_core::IUnknown, IWMStreamConfig, IWMStreamConfig2); -unsafe impl ::windows_core::Interface for IWMStreamConfig3 { - type Vtable = IWMStreamConfig3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMStreamConfig3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcb164104_3aa9_45a7_9ac9_4daee131d6e1); -} #[repr(C)] #[doc(hidden)] pub struct IWMStreamConfig3_Vtbl { @@ -5446,9 +4750,8 @@ pub struct IWMStreamConfig3_Vtbl { pub GetLanguage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwszlanguagestring: ::windows_core::PWSTR, pcchlanguagestringlength: *mut u16) -> ::windows_core::HRESULT, pub SetLanguage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwszlanguagestring: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMStreamList(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMStreamList, IWMStreamList_Vtbl, 0x96406bdd_2b2b_11d3_b36b_00c04f6108ff); +::windows_core::imp::interface_hierarchy!(IWMStreamList, ::windows_core::IUnknown); impl IWMStreamList { pub unsafe fn GetStreams(&self, pwstreamnumarray: *mut u16, pcstreams: *mut u16) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetStreams)(::windows_core::Interface::as_raw(self), pwstreamnumarray, pcstreams).ok() @@ -5460,13 +4763,6 @@ impl IWMStreamList { (::windows_core::Interface::vtable(self).RemoveStream)(::windows_core::Interface::as_raw(self), wstreamnum).ok() } } -::windows_core::imp::interface_hierarchy!(IWMStreamList, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMStreamList { - type Vtable = IWMStreamList_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMStreamList { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x96406bdd_2b2b_11d3_b36b_00c04f6108ff); -} #[repr(C)] #[doc(hidden)] pub struct IWMStreamList_Vtbl { @@ -5475,9 +4771,8 @@ pub struct IWMStreamList_Vtbl { pub AddStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wstreamnum: u16) -> ::windows_core::HRESULT, pub RemoveStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wstreamnum: u16) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMStreamPrioritization(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMStreamPrioritization, IWMStreamPrioritization_Vtbl, 0x8c1c6090_f9a8_4748_8ec3_dd1108ba1e77); +::windows_core::imp::interface_hierarchy!(IWMStreamPrioritization, ::windows_core::IUnknown); impl IWMStreamPrioritization { pub unsafe fn GetPriorityRecords(&self, precordarray: *mut WM_STREAM_PRIORITY_RECORD, pcrecords: *mut u16) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetPriorityRecords)(::windows_core::Interface::as_raw(self), precordarray, pcrecords).ok() @@ -5486,13 +4781,6 @@ impl IWMStreamPrioritization { (::windows_core::Interface::vtable(self).SetPriorityRecords)(::windows_core::Interface::as_raw(self), precordarray, crecords).ok() } } -::windows_core::imp::interface_hierarchy!(IWMStreamPrioritization, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMStreamPrioritization { - type Vtable = IWMStreamPrioritization_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMStreamPrioritization { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8c1c6090_f9a8_4748_8ec3_dd1108ba1e77); -} #[repr(C)] #[doc(hidden)] pub struct IWMStreamPrioritization_Vtbl { @@ -5500,9 +4788,8 @@ pub struct IWMStreamPrioritization_Vtbl { pub GetPriorityRecords: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, precordarray: *mut WM_STREAM_PRIORITY_RECORD, pcrecords: *mut u16) -> ::windows_core::HRESULT, pub SetPriorityRecords: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, precordarray: *const WM_STREAM_PRIORITY_RECORD, crecords: u16) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMSyncReader(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMSyncReader, IWMSyncReader_Vtbl, 0x9397f121_7705_4dc9_b049_98b698188414); +::windows_core::imp::interface_hierarchy!(IWMSyncReader, ::windows_core::IUnknown); impl IWMSyncReader { pub unsafe fn Open(&self, pwszfilename: P0) -> ::windows_core::Result<()> where @@ -5598,13 +4885,6 @@ impl IWMSyncReader { (::windows_core::Interface::vtable(self).OpenStream)(::windows_core::Interface::as_raw(self), pstream.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IWMSyncReader, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMSyncReader { - type Vtable = IWMSyncReader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMSyncReader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9397f121_7705_4dc9_b049_98b698188414); -} #[repr(C)] #[doc(hidden)] pub struct IWMSyncReader_Vtbl { @@ -5634,9 +4914,8 @@ pub struct IWMSyncReader_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] OpenStream: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMSyncReader2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMSyncReader2, IWMSyncReader2_Vtbl, 0xfaed3d21_1b6b_4af7_8cb6_3e189bbc187b); +::windows_core::imp::interface_hierarchy!(IWMSyncReader2, ::windows_core::IUnknown, IWMSyncReader); impl IWMSyncReader2 { pub unsafe fn Open(&self, pwszfilename: P0) -> ::windows_core::Result<()> where @@ -5759,13 +5038,6 @@ impl IWMSyncReader2 { (::windows_core::Interface::vtable(self).GetAllocateForStream)(::windows_core::Interface::as_raw(self), dwsreamnum, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWMSyncReader2, ::windows_core::IUnknown, IWMSyncReader); -unsafe impl ::windows_core::Interface for IWMSyncReader2 { - type Vtable = IWMSyncReader2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMSyncReader2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfaed3d21_1b6b_4af7_8cb6_3e189bbc187b); -} #[repr(C)] #[doc(hidden)] pub struct IWMSyncReader2_Vtbl { @@ -5777,9 +5049,8 @@ pub struct IWMSyncReader2_Vtbl { pub SetAllocateForStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wstreamnum: u16, pallocator: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetAllocateForStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwsreamnum: u16, ppallocator: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMVideoMediaProps(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMVideoMediaProps, IWMVideoMediaProps_Vtbl, 0x96406bcf_2b2b_11d3_b36b_00c04f6108ff); +::windows_core::imp::interface_hierarchy!(IWMVideoMediaProps, ::windows_core::IUnknown, IWMMediaProps); impl IWMVideoMediaProps { pub unsafe fn GetType(&self) -> ::windows_core::Result<::windows_core::GUID> { let mut result__ = ::std::mem::zeroed(); @@ -5806,13 +5077,6 @@ impl IWMVideoMediaProps { (::windows_core::Interface::vtable(self).SetQuality)(::windows_core::Interface::as_raw(self), dwquality).ok() } } -::windows_core::imp::interface_hierarchy!(IWMVideoMediaProps, ::windows_core::IUnknown, IWMMediaProps); -unsafe impl ::windows_core::Interface for IWMVideoMediaProps { - type Vtable = IWMVideoMediaProps_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMVideoMediaProps { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x96406bcf_2b2b_11d3_b36b_00c04f6108ff); -} #[repr(C)] #[doc(hidden)] pub struct IWMVideoMediaProps_Vtbl { @@ -5822,9 +5086,8 @@ pub struct IWMVideoMediaProps_Vtbl { pub GetQuality: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwquality: *mut u32) -> ::windows_core::HRESULT, pub SetQuality: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwquality: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMWatermarkInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMWatermarkInfo, IWMWatermarkInfo_Vtbl, 0x6f497062_f2e2_4624_8ea7_9dd40d81fc8d); +::windows_core::imp::interface_hierarchy!(IWMWatermarkInfo, ::windows_core::IUnknown); impl IWMWatermarkInfo { pub unsafe fn GetWatermarkEntryCount(&self, wmettype: WMT_WATERMARK_ENTRY_TYPE) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -5834,13 +5097,6 @@ impl IWMWatermarkInfo { (::windows_core::Interface::vtable(self).GetWatermarkEntry)(::windows_core::Interface::as_raw(self), wmettype, dwentrynum, pentry).ok() } } -::windows_core::imp::interface_hierarchy!(IWMWatermarkInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMWatermarkInfo { - type Vtable = IWMWatermarkInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMWatermarkInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6f497062_f2e2_4624_8ea7_9dd40d81fc8d); -} #[repr(C)] #[doc(hidden)] pub struct IWMWatermarkInfo_Vtbl { @@ -5848,9 +5104,8 @@ pub struct IWMWatermarkInfo_Vtbl { pub GetWatermarkEntryCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wmettype: WMT_WATERMARK_ENTRY_TYPE, pdwcount: *mut u32) -> ::windows_core::HRESULT, pub GetWatermarkEntry: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wmettype: WMT_WATERMARK_ENTRY_TYPE, dwentrynum: u32, pentry: *mut WMT_WATERMARK_ENTRY) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMWriter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMWriter, IWMWriter_Vtbl, 0x96406bd4_2b2b_11d3_b36b_00c04f6108ff); +::windows_core::imp::interface_hierarchy!(IWMWriter, ::windows_core::IUnknown); impl IWMWriter { pub unsafe fn SetProfileByID(&self, guidprofile: *const ::windows_core::GUID) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetProfileByID)(::windows_core::Interface::as_raw(self), guidprofile).ok() @@ -5909,13 +5164,6 @@ impl IWMWriter { (::windows_core::Interface::vtable(self).Flush)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IWMWriter, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMWriter { - type Vtable = IWMWriter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMWriter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x96406bd4_2b2b_11d3_b36b_00c04f6108ff); -} #[repr(C)] #[doc(hidden)] pub struct IWMWriter_Vtbl { @@ -5934,9 +5182,8 @@ pub struct IWMWriter_Vtbl { pub WriteSample: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwinputnum: u32, cnssampletime: u64, dwflags: u32, psample: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Flush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMWriterAdvanced(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMWriterAdvanced, IWMWriterAdvanced_Vtbl, 0x96406be3_2b2b_11d3_b36b_00c04f6108ff); +::windows_core::imp::interface_hierarchy!(IWMWriterAdvanced, ::windows_core::IUnknown); impl IWMWriterAdvanced { pub unsafe fn GetSinkCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -5989,13 +5236,6 @@ impl IWMWriterAdvanced { (::windows_core::Interface::vtable(self).GetSyncTolerance)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWMWriterAdvanced, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMWriterAdvanced { - type Vtable = IWMWriterAdvanced_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMWriterAdvanced { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x96406be3_2b2b_11d3_b36b_00c04f6108ff); -} #[repr(C)] #[doc(hidden)] pub struct IWMWriterAdvanced_Vtbl { @@ -6012,9 +5252,8 @@ pub struct IWMWriterAdvanced_Vtbl { pub SetSyncTolerance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mswindow: u32) -> ::windows_core::HRESULT, pub GetSyncTolerance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pmswindow: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMWriterAdvanced2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMWriterAdvanced2, IWMWriterAdvanced2_Vtbl, 0x962dc1ec_c046_4db8_9cc7_26ceae500817); +::windows_core::imp::interface_hierarchy!(IWMWriterAdvanced2, ::windows_core::IUnknown, IWMWriterAdvanced); impl IWMWriterAdvanced2 { pub unsafe fn GetSinkCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -6079,13 +5318,6 @@ impl IWMWriterAdvanced2 { (::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::imp::interface_hierarchy!(IWMWriterAdvanced2, ::windows_core::IUnknown, IWMWriterAdvanced); -unsafe impl ::windows_core::Interface for IWMWriterAdvanced2 { - type Vtable = IWMWriterAdvanced2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMWriterAdvanced2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x962dc1ec_c046_4db8_9cc7_26ceae500817); -} #[repr(C)] #[doc(hidden)] pub struct IWMWriterAdvanced2_Vtbl { @@ -6093,9 +5325,8 @@ pub struct IWMWriterAdvanced2_Vtbl { pub GetInputSetting: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwinputnum: u32, pszname: ::windows_core::PCWSTR, ptype: *mut WMT_ATTR_DATATYPE, pvalue: *mut u8, pcblength: *mut u16) -> ::windows_core::HRESULT, pub SetInputSetting: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwinputnum: u32, pszname: ::windows_core::PCWSTR, r#type: WMT_ATTR_DATATYPE, pvalue: *const u8, cblength: u16) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMWriterAdvanced3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMWriterAdvanced3, IWMWriterAdvanced3_Vtbl, 0x2cd6492d_7c37_4e76_9d3b_59261183a22e); +::windows_core::imp::interface_hierarchy!(IWMWriterAdvanced3, ::windows_core::IUnknown, IWMWriterAdvanced, IWMWriterAdvanced2); impl IWMWriterAdvanced3 { pub unsafe fn GetSinkCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -6166,13 +5397,6 @@ impl IWMWriterAdvanced3 { (::windows_core::Interface::vtable(self).SetNonBlocking)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IWMWriterAdvanced3, ::windows_core::IUnknown, IWMWriterAdvanced, IWMWriterAdvanced2); -unsafe impl ::windows_core::Interface for IWMWriterAdvanced3 { - type Vtable = IWMWriterAdvanced3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMWriterAdvanced3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2cd6492d_7c37_4e76_9d3b_59261183a22e); -} #[repr(C)] #[doc(hidden)] pub struct IWMWriterAdvanced3_Vtbl { @@ -6180,9 +5404,8 @@ pub struct IWMWriterAdvanced3_Vtbl { pub GetStatisticsEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wstreamnum: u16, pstats: *mut WM_WRITER_STATISTICS_EX) -> ::windows_core::HRESULT, pub SetNonBlocking: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMWriterFileSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMWriterFileSink, IWMWriterFileSink_Vtbl, 0x96406be5_2b2b_11d3_b36b_00c04f6108ff); +::windows_core::imp::interface_hierarchy!(IWMWriterFileSink, ::windows_core::IUnknown, IWMWriterSink); impl IWMWriterFileSink { pub unsafe fn OnHeader(&self, pheader: P0) -> ::windows_core::Result<()> where @@ -6214,22 +5437,14 @@ impl IWMWriterFileSink { (::windows_core::Interface::vtable(self).Open)(::windows_core::Interface::as_raw(self), pwszfilename.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IWMWriterFileSink, ::windows_core::IUnknown, IWMWriterSink); -unsafe impl ::windows_core::Interface for IWMWriterFileSink { - type Vtable = IWMWriterFileSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMWriterFileSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x96406be5_2b2b_11d3_b36b_00c04f6108ff); -} #[repr(C)] #[doc(hidden)] pub struct IWMWriterFileSink_Vtbl { pub base__: IWMWriterSink_Vtbl, pub Open: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwszfilename: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMWriterFileSink2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMWriterFileSink2, IWMWriterFileSink2_Vtbl, 0x14282ba7_4aef_4205_8ce5_c229035a05bc); +::windows_core::imp::interface_hierarchy!(IWMWriterFileSink2, ::windows_core::IUnknown, IWMWriterSink, IWMWriterFileSink); impl IWMWriterFileSink2 { pub unsafe fn OnHeader(&self, pheader: P0) -> ::windows_core::Result<()> where @@ -6286,13 +5501,6 @@ impl IWMWriterFileSink2 { (::windows_core::Interface::vtable(self).IsClosed)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWMWriterFileSink2, ::windows_core::IUnknown, IWMWriterSink, IWMWriterFileSink); -unsafe impl ::windows_core::Interface for IWMWriterFileSink2 { - type Vtable = IWMWriterFileSink2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMWriterFileSink2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x14282ba7_4aef_4205_8ce5_c229035a05bc); -} #[repr(C)] #[doc(hidden)] pub struct IWMWriterFileSink2_Vtbl { @@ -6305,9 +5513,8 @@ pub struct IWMWriterFileSink2_Vtbl { pub Close: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub IsClosed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfclosed: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMWriterFileSink3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMWriterFileSink3, IWMWriterFileSink3_Vtbl, 0x3fea4feb_2945_47a7_a1dd_c53a8fc4c45c); +::windows_core::imp::interface_hierarchy!(IWMWriterFileSink3, ::windows_core::IUnknown, IWMWriterSink, IWMWriterFileSink, IWMWriterFileSink2); impl IWMWriterFileSink3 { pub unsafe fn OnHeader(&self, pheader: P0) -> ::windows_core::Result<()> where @@ -6401,13 +5608,6 @@ impl IWMWriterFileSink3 { (::windows_core::Interface::vtable(self).CompleteOperations)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IWMWriterFileSink3, ::windows_core::IUnknown, IWMWriterSink, IWMWriterFileSink, IWMWriterFileSink2); -unsafe impl ::windows_core::Interface for IWMWriterFileSink3 { - type Vtable = IWMWriterFileSink3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMWriterFileSink3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3fea4feb_2945_47a7_a1dd_c53a8fc4c45c); -} #[repr(C)] #[doc(hidden)] pub struct IWMWriterFileSink3_Vtbl { @@ -6421,9 +5621,8 @@ pub struct IWMWriterFileSink3_Vtbl { pub GetUnbufferedIO: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfunbufferedio: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub CompleteOperations: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMWriterNetworkSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMWriterNetworkSink, IWMWriterNetworkSink_Vtbl, 0x96406be7_2b2b_11d3_b36b_00c04f6108ff); +::windows_core::imp::interface_hierarchy!(IWMWriterNetworkSink, ::windows_core::IUnknown, IWMWriterSink); impl IWMWriterNetworkSink { pub unsafe fn OnHeader(&self, pheader: P0) -> ::windows_core::Result<()> where @@ -6475,13 +5674,6 @@ impl IWMWriterNetworkSink { (::windows_core::Interface::vtable(self).Close)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IWMWriterNetworkSink, ::windows_core::IUnknown, IWMWriterSink); -unsafe impl ::windows_core::Interface for IWMWriterNetworkSink { - type Vtable = IWMWriterNetworkSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMWriterNetworkSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x96406be7_2b2b_11d3_b36b_00c04f6108ff); -} #[repr(C)] #[doc(hidden)] pub struct IWMWriterNetworkSink_Vtbl { @@ -6495,9 +5687,8 @@ pub struct IWMWriterNetworkSink_Vtbl { pub Disconnect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Close: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMWriterPostView(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMWriterPostView, IWMWriterPostView_Vtbl, 0x81e20ce4_75ef_491a_8004_fc53c45bdc3e); +::windows_core::imp::interface_hierarchy!(IWMWriterPostView, ::windows_core::IUnknown); impl IWMWriterPostView { pub unsafe fn SetPostViewCallback(&self, pcallback: P0, pvcontext: *mut ::core::ffi::c_void) -> ::windows_core::Result<()> where @@ -6544,13 +5735,6 @@ impl IWMWriterPostView { (::windows_core::Interface::vtable(self).GetAllocateForPostView)(::windows_core::Interface::as_raw(self), wstreamnumber, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWMWriterPostView, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMWriterPostView { - type Vtable = IWMWriterPostView_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMWriterPostView { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x81e20ce4_75ef_491a_8004_fc53c45bdc3e); -} #[repr(C)] #[doc(hidden)] pub struct IWMWriterPostView_Vtbl { @@ -6565,9 +5749,8 @@ pub struct IWMWriterPostView_Vtbl { pub SetAllocateForPostView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wstreamnumber: u16, fallocate: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub GetAllocateForPostView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wstreamnumber: u16, pfallocate: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMWriterPostViewCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMWriterPostViewCallback, IWMWriterPostViewCallback_Vtbl, 0xd9d6549d_a193_4f24_b308_03123d9b7f8d); +::windows_core::imp::interface_hierarchy!(IWMWriterPostViewCallback, ::windows_core::IUnknown, IWMStatusCallback); impl IWMWriterPostViewCallback { pub unsafe fn OnStatus(&self, status: WMT_STATUS, hr: ::windows_core::HRESULT, dwtype: WMT_ATTR_DATATYPE, pvalue: *const u8, pvcontext: *const ::core::ffi::c_void) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.OnStatus)(::windows_core::Interface::as_raw(self), status, hr, dwtype, pvalue, pvcontext).ok() @@ -6582,13 +5765,6 @@ impl IWMWriterPostViewCallback { (::windows_core::Interface::vtable(self).AllocateForPostView)(::windows_core::Interface::as_raw(self), wstreamnum, cbbuffer, ::core::mem::transmute(ppbuffer), pvcontext).ok() } } -::windows_core::imp::interface_hierarchy!(IWMWriterPostViewCallback, ::windows_core::IUnknown, IWMStatusCallback); -unsafe impl ::windows_core::Interface for IWMWriterPostViewCallback { - type Vtable = IWMWriterPostViewCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMWriterPostViewCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd9d6549d_a193_4f24_b308_03123d9b7f8d); -} #[repr(C)] #[doc(hidden)] pub struct IWMWriterPostViewCallback_Vtbl { @@ -6596,9 +5772,8 @@ pub struct IWMWriterPostViewCallback_Vtbl { pub OnPostViewSample: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wstreamnumber: u16, cnssampletime: u64, cnssampleduration: u64, dwflags: u32, psample: *mut ::core::ffi::c_void, pvcontext: *const ::core::ffi::c_void) -> ::windows_core::HRESULT, pub AllocateForPostView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wstreamnum: u16, cbbuffer: u32, ppbuffer: *mut *mut ::core::ffi::c_void, pvcontext: *const ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMWriterPreprocess(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMWriterPreprocess, IWMWriterPreprocess_Vtbl, 0xfc54a285_38c4_45b5_aa23_85b9f7cb424b); +::windows_core::imp::interface_hierarchy!(IWMWriterPreprocess, ::windows_core::IUnknown); impl IWMWriterPreprocess { pub unsafe fn GetMaxPreprocessingPasses(&self, dwinputnum: u32, dwflags: u32) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -6620,13 +5795,6 @@ impl IWMWriterPreprocess { (::windows_core::Interface::vtable(self).EndPreprocessingPass)(::windows_core::Interface::as_raw(self), dwinputnum, dwflags).ok() } } -::windows_core::imp::interface_hierarchy!(IWMWriterPreprocess, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMWriterPreprocess { - type Vtable = IWMWriterPreprocess_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMWriterPreprocess { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfc54a285_38c4_45b5_aa23_85b9f7cb424b); -} #[repr(C)] #[doc(hidden)] pub struct IWMWriterPreprocess_Vtbl { @@ -6637,9 +5805,8 @@ pub struct IWMWriterPreprocess_Vtbl { pub PreprocessSample: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwinputnum: u32, cnssampletime: u64, dwflags: u32, psample: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub EndPreprocessingPass: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwinputnum: u32, dwflags: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMWriterPushSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMWriterPushSink, IWMWriterPushSink_Vtbl, 0xdc10e6a5_072c_467d_bf57_6330a9dde12a); +::windows_core::imp::interface_hierarchy!(IWMWriterPushSink, ::windows_core::IUnknown, IWMWriterSink); impl IWMWriterPushSink { pub unsafe fn OnHeader(&self, pheader: P0) -> ::windows_core::Result<()> where @@ -6679,13 +5846,6 @@ impl IWMWriterPushSink { (::windows_core::Interface::vtable(self).EndSession)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IWMWriterPushSink, ::windows_core::IUnknown, IWMWriterSink); -unsafe impl ::windows_core::Interface for IWMWriterPushSink { - type Vtable = IWMWriterPushSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMWriterPushSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdc10e6a5_072c_467d_bf57_6330a9dde12a); -} #[repr(C)] #[doc(hidden)] pub struct IWMWriterPushSink_Vtbl { @@ -6694,9 +5854,8 @@ pub struct IWMWriterPushSink_Vtbl { pub Disconnect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub EndSession: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMWriterSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWMWriterSink, IWMWriterSink_Vtbl, 0x96406be4_2b2b_11d3_b36b_00c04f6108ff); +::windows_core::imp::interface_hierarchy!(IWMWriterSink, ::windows_core::IUnknown); impl IWMWriterSink { pub unsafe fn OnHeader(&self, pheader: P0) -> ::windows_core::Result<()> where @@ -6722,13 +5881,6 @@ impl IWMWriterSink { (::windows_core::Interface::vtable(self).OnEndWriting)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IWMWriterSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWMWriterSink { - type Vtable = IWMWriterSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWMWriterSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x96406be4_2b2b_11d3_b36b_00c04f6108ff); -} #[repr(C)] #[doc(hidden)] pub struct IWMWriterSink_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Media/impl.rs b/crates/libs/windows/src/Windows/Win32/Media/impl.rs index f4c82b0f51..7a47bdcdd3 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/impl.rs @@ -54,7 +54,7 @@ impl IReferenceClock_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IReferenceClock2_Impl: Sized + IReferenceClock_Impl {} @@ -64,7 +64,7 @@ impl IReferenceClock2_Vtbl { Self { base__: IReferenceClock_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IReferenceClockTimerControl_Impl: Sized { @@ -97,6 +97,6 @@ impl IReferenceClockTimerControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/Win32/Media/mod.rs b/crates/libs/windows/src/Windows/Win32/Media/mod.rs index f035b88d4d..376c7b6ebb 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/mod.rs @@ -72,9 +72,8 @@ pub unsafe fn timeSetEvent(udelay: u32, uresolution: u32, fptc: LPTIMECALLBACK, ::windows_targets::link!("winmm.dll" "system" fn timeSetEvent(udelay : u32, uresolution : u32, fptc : LPTIMECALLBACK, dwuser : usize, fuevent : u32) -> u32); timeSetEvent(udelay, uresolution, fptc, dwuser, fuevent) } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IReferenceClock(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IReferenceClock, IReferenceClock_Vtbl, 0x56a86897_0ad4_11ce_b03a_0020af0ba770); +::windows_core::imp::interface_hierarchy!(IReferenceClock, ::windows_core::IUnknown); impl IReferenceClock { pub unsafe fn GetTime(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -98,13 +97,6 @@ impl IReferenceClock { (::windows_core::Interface::vtable(self).Unadvise)(::windows_core::Interface::as_raw(self), dwadvisecookie).ok() } } -::windows_core::imp::interface_hierarchy!(IReferenceClock, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IReferenceClock { - type Vtable = IReferenceClock_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IReferenceClock { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x56a86897_0ad4_11ce_b03a_0020af0ba770); -} #[repr(C)] #[doc(hidden)] pub struct IReferenceClock_Vtbl { @@ -114,9 +106,8 @@ pub struct IReferenceClock_Vtbl { pub AdvisePeriodic: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, starttime: i64, periodtime: i64, hsemaphore: super::Foundation::HANDLE, pdwadvisecookie: *mut usize) -> ::windows_core::HRESULT, pub Unadvise: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwadvisecookie: usize) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IReferenceClock2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IReferenceClock2, IReferenceClock2_Vtbl, 0x36b73885_c2c8_11cf_8b46_00805f6cef60); +::windows_core::imp::interface_hierarchy!(IReferenceClock2, ::windows_core::IUnknown, IReferenceClock); impl IReferenceClock2 { pub unsafe fn GetTime(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -140,21 +131,13 @@ impl IReferenceClock2 { (::windows_core::Interface::vtable(self).base__.Unadvise)(::windows_core::Interface::as_raw(self), dwadvisecookie).ok() } } -::windows_core::imp::interface_hierarchy!(IReferenceClock2, ::windows_core::IUnknown, IReferenceClock); -unsafe impl ::windows_core::Interface for IReferenceClock2 { - type Vtable = IReferenceClock2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IReferenceClock2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x36b73885_c2c8_11cf_8b46_00805f6cef60); -} #[repr(C)] #[doc(hidden)] pub struct IReferenceClock2_Vtbl { pub base__: IReferenceClock_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IReferenceClockTimerControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IReferenceClockTimerControl, IReferenceClockTimerControl_Vtbl, 0xebec459c_2eca_4d42_a8af_30df557614b8); +::windows_core::imp::interface_hierarchy!(IReferenceClockTimerControl, ::windows_core::IUnknown); impl IReferenceClockTimerControl { pub unsafe fn SetDefaultTimerResolution(&self, timerresolution: i64) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetDefaultTimerResolution)(::windows_core::Interface::as_raw(self), timerresolution).ok() @@ -164,13 +147,6 @@ impl IReferenceClockTimerControl { (::windows_core::Interface::vtable(self).GetDefaultTimerResolution)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IReferenceClockTimerControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IReferenceClockTimerControl { - type Vtable = IReferenceClockTimerControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IReferenceClockTimerControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xebec459c_2eca_4d42_a8af_30df557614b8); -} #[repr(C)] #[doc(hidden)] pub struct IReferenceClockTimerControl_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/NetworkManagement/MobileBroadband/impl.rs b/crates/libs/windows/src/Windows/Win32/NetworkManagement/MobileBroadband/impl.rs index 8d60756d0d..127eb0699f 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/MobileBroadband/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/MobileBroadband/impl.rs @@ -9,7 +9,7 @@ impl IDummyMBNUCMExt_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IMbnConnection_Impl: Sized { @@ -107,7 +107,7 @@ impl IMbnConnection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -150,7 +150,7 @@ impl IMbnConnectionContext_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMbnConnectionContextEvents_Impl: Sized { @@ -177,7 +177,7 @@ impl IMbnConnectionContextEvents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMbnConnectionEvents_Impl: Sized { @@ -218,7 +218,7 @@ impl IMbnConnectionEvents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -261,7 +261,7 @@ impl IMbnConnectionManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMbnConnectionManagerEvents_Impl: Sized { @@ -288,7 +288,7 @@ impl IMbnConnectionManagerEvents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMbnConnectionProfile_Impl: Sized { @@ -328,7 +328,7 @@ impl IMbnConnectionProfile_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMbnConnectionProfileEvents_Impl: Sized { @@ -345,7 +345,7 @@ impl IMbnConnectionProfileEvents_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnProfileUpdate: OnProfileUpdate:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -395,7 +395,7 @@ impl IMbnConnectionProfileManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMbnConnectionProfileManagerEvents_Impl: Sized { @@ -422,7 +422,7 @@ impl IMbnConnectionProfileManagerEvents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -595,7 +595,7 @@ impl IMbnDeviceService_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMbnDeviceServiceStateEvents_Impl: Sized { @@ -612,7 +612,7 @@ impl IMbnDeviceServiceStateEvents_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnSessionsStateChange: OnSessionsStateChange:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -681,7 +681,7 @@ impl IMbnDeviceServicesContext_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -775,7 +775,7 @@ impl IMbnDeviceServicesEvents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMbnDeviceServicesManager_Impl: Sized { @@ -798,7 +798,7 @@ impl IMbnDeviceServicesManager_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetDeviceServicesContext: GetDeviceServicesContext:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -946,7 +946,7 @@ impl IMbnInterface_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMbnInterfaceEvents_Impl: Sized { @@ -1015,7 +1015,7 @@ impl IMbnInterfaceEvents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1058,7 +1058,7 @@ impl IMbnInterfaceManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMbnInterfaceManagerEvents_Impl: Sized { @@ -1085,7 +1085,7 @@ impl IMbnInterfaceManagerEvents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1174,7 +1174,7 @@ impl IMbnMultiCarrier_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMbnMultiCarrierEvents_Impl: Sized { @@ -1222,7 +1222,7 @@ impl IMbnMultiCarrierEvents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMbnPin_Impl: Sized { @@ -1378,7 +1378,7 @@ impl IMbnPin_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMbnPinEvents_Impl: Sized { @@ -1426,7 +1426,7 @@ impl IMbnPinEvents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1482,7 +1482,7 @@ impl IMbnPinManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMbnPinManagerEvents_Impl: Sized { @@ -1509,7 +1509,7 @@ impl IMbnPinManagerEvents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMbnRadio_Impl: Sized { @@ -1561,7 +1561,7 @@ impl IMbnRadio_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMbnRadioEvents_Impl: Sized { @@ -1588,7 +1588,7 @@ impl IMbnRadioEvents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMbnRegistration_Impl: Sized { @@ -1731,7 +1731,7 @@ impl IMbnRegistration_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMbnRegistrationEvents_Impl: Sized { @@ -1772,7 +1772,7 @@ impl IMbnRegistrationEvents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1799,7 +1799,7 @@ impl IMbnServiceActivation_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Activate: Activate:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1820,7 +1820,7 @@ impl IMbnServiceActivationEvents_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnActivationComplete: OnActivationComplete:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMbnSignal_Impl: Sized { @@ -1859,7 +1859,7 @@ impl IMbnSignal_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMbnSignalEvents_Impl: Sized { @@ -1876,7 +1876,7 @@ impl IMbnSignalEvents_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnSignalStateChange: OnSignalStateChange:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1997,7 +1997,7 @@ impl IMbnSms_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMbnSmsConfiguration_Impl: Sized { @@ -2076,7 +2076,7 @@ impl IMbnSmsConfiguration_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2142,7 +2142,7 @@ impl IMbnSmsEvents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2211,7 +2211,7 @@ impl IMbnSmsReadMsgPdu_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2332,7 +2332,7 @@ impl IMbnSmsReadMsgTextCdma_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2388,7 +2388,7 @@ impl IMbnSubscriberInformation_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2419,7 +2419,7 @@ impl IMbnVendorSpecificEvents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2446,6 +2446,6 @@ impl IMbnVendorSpecificOperation_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), SetVendorSpecific: SetVendorSpecific:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 302ed20e57..c64e976a69 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/MobileBroadband/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/MobileBroadband/mod.rs @@ -1,29 +1,22 @@ -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDummyMBNUCMExt(::windows_core::IUnknown); -#[cfg(feature = "Win32_System_Com")] -impl IDummyMBNUCMExt {} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IDummyMBNUCMExt, + IDummyMBNUCMExt_Vtbl, + 0xdcbbbab6_ffff_4bbb_aaee_338e368af6fa +); #[cfg(feature = "Win32_System_Com")] ::windows_core::imp::interface_hierarchy!(IDummyMBNUCMExt, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IDummyMBNUCMExt { - type Vtable = IDummyMBNUCMExt_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IDummyMBNUCMExt { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdcbbbab6_ffff_4bbb_aaee_338e368af6fa); -} +impl IDummyMBNUCMExt {} #[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IDummyMBNUCMExt_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMbnConnection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMbnConnection, IMbnConnection_Vtbl, 0xdcbbbab6_200d_4bbb_aaee_338e368af6fa); +::windows_core::imp::interface_hierarchy!(IMbnConnection, ::windows_core::IUnknown); impl IMbnConnection { pub unsafe fn ConnectionID(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -56,13 +49,6 @@ impl IMbnConnection { (::windows_core::Interface::vtable(self).GetActivationNetworkError)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMbnConnection, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMbnConnection { - type Vtable = IMbnConnection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMbnConnection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdcbbbab6_200d_4bbb_aaee_338e368af6fa); -} #[repr(C)] #[doc(hidden)] pub struct IMbnConnection_Vtbl { @@ -75,9 +61,8 @@ pub struct IMbnConnection_Vtbl { pub GetVoiceCallState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, voicecallstate: *mut MBN_VOICE_CALL_STATE) -> ::windows_core::HRESULT, pub GetActivationNetworkError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, networkerror: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMbnConnectionContext(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMbnConnectionContext, IMbnConnectionContext_Vtbl, 0xdcbbbab6_200b_4bbb_aaee_338e368af6fa); +::windows_core::imp::interface_hierarchy!(IMbnConnectionContext, ::windows_core::IUnknown); impl IMbnConnectionContext { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -93,13 +78,6 @@ impl IMbnConnectionContext { (::windows_core::Interface::vtable(self).SetProvisionedContext)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(provisionedcontexts), providerid.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMbnConnectionContext, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMbnConnectionContext { - type Vtable = IMbnConnectionContext_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMbnConnectionContext { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdcbbbab6_200b_4bbb_aaee_338e368af6fa); -} #[repr(C)] #[doc(hidden)] pub struct IMbnConnectionContext_Vtbl { @@ -110,9 +88,8 @@ pub struct IMbnConnectionContext_Vtbl { GetProvisionedContexts: usize, pub SetProvisionedContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, provisionedcontexts: MBN_CONTEXT, providerid: ::windows_core::PCWSTR, requestid: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMbnConnectionContextEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMbnConnectionContextEvents, IMbnConnectionContextEvents_Vtbl, 0xdcbbbab6_200c_4bbb_aaee_338e368af6fa); +::windows_core::imp::interface_hierarchy!(IMbnConnectionContextEvents, ::windows_core::IUnknown); impl IMbnConnectionContextEvents { pub unsafe fn OnProvisionedContextListChange(&self, newinterface: P0) -> ::windows_core::Result<()> where @@ -127,13 +104,6 @@ impl IMbnConnectionContextEvents { (::windows_core::Interface::vtable(self).OnSetProvisionedContextComplete)(::windows_core::Interface::as_raw(self), newinterface.into_param().abi(), requestid, status).ok() } } -::windows_core::imp::interface_hierarchy!(IMbnConnectionContextEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMbnConnectionContextEvents { - type Vtable = IMbnConnectionContextEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMbnConnectionContextEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdcbbbab6_200c_4bbb_aaee_338e368af6fa); -} #[repr(C)] #[doc(hidden)] pub struct IMbnConnectionContextEvents_Vtbl { @@ -141,9 +111,8 @@ pub struct IMbnConnectionContextEvents_Vtbl { pub OnProvisionedContextListChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newinterface: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub OnSetProvisionedContextComplete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newinterface: *mut ::core::ffi::c_void, requestid: u32, status: ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMbnConnectionEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMbnConnectionEvents, IMbnConnectionEvents_Vtbl, 0xdcbbbab6_200e_4bbb_aaee_338e368af6fa); +::windows_core::imp::interface_hierarchy!(IMbnConnectionEvents, ::windows_core::IUnknown); impl IMbnConnectionEvents { pub unsafe fn OnConnectComplete(&self, newconnection: P0, requestid: u32, status: ::windows_core::HRESULT) -> ::windows_core::Result<()> where @@ -170,13 +139,6 @@ impl IMbnConnectionEvents { (::windows_core::Interface::vtable(self).OnVoiceCallStateChange)(::windows_core::Interface::as_raw(self), newconnection.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMbnConnectionEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMbnConnectionEvents { - type Vtable = IMbnConnectionEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMbnConnectionEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdcbbbab6_200e_4bbb_aaee_338e368af6fa); -} #[repr(C)] #[doc(hidden)] pub struct IMbnConnectionEvents_Vtbl { @@ -186,9 +148,8 @@ pub struct IMbnConnectionEvents_Vtbl { pub OnConnectStateChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newconnection: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub OnVoiceCallStateChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newconnection: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMbnConnectionManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMbnConnectionManager, IMbnConnectionManager_Vtbl, 0xdcbbbab6_201d_4bbb_aaee_338e368af6fa); +::windows_core::imp::interface_hierarchy!(IMbnConnectionManager, ::windows_core::IUnknown); impl IMbnConnectionManager { pub unsafe fn GetConnection(&self, connectionid: P0) -> ::windows_core::Result where @@ -204,13 +165,6 @@ impl IMbnConnectionManager { (::windows_core::Interface::vtable(self).GetConnections)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMbnConnectionManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMbnConnectionManager { - type Vtable = IMbnConnectionManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMbnConnectionManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdcbbbab6_201d_4bbb_aaee_338e368af6fa); -} #[repr(C)] #[doc(hidden)] pub struct IMbnConnectionManager_Vtbl { @@ -221,9 +175,8 @@ pub struct IMbnConnectionManager_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetConnections: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMbnConnectionManagerEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMbnConnectionManagerEvents, IMbnConnectionManagerEvents_Vtbl, 0xdcbbbab6_201e_4bbb_aaee_338e368af6fa); +::windows_core::imp::interface_hierarchy!(IMbnConnectionManagerEvents, ::windows_core::IUnknown); impl IMbnConnectionManagerEvents { pub unsafe fn OnConnectionArrival(&self, newconnection: P0) -> ::windows_core::Result<()> where @@ -238,13 +191,6 @@ impl IMbnConnectionManagerEvents { (::windows_core::Interface::vtable(self).OnConnectionRemoval)(::windows_core::Interface::as_raw(self), oldconnection.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMbnConnectionManagerEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMbnConnectionManagerEvents { - type Vtable = IMbnConnectionManagerEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMbnConnectionManagerEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdcbbbab6_201e_4bbb_aaee_338e368af6fa); -} #[repr(C)] #[doc(hidden)] pub struct IMbnConnectionManagerEvents_Vtbl { @@ -252,9 +198,8 @@ pub struct IMbnConnectionManagerEvents_Vtbl { pub OnConnectionArrival: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newconnection: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub OnConnectionRemoval: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, oldconnection: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMbnConnectionProfile(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMbnConnectionProfile, IMbnConnectionProfile_Vtbl, 0xdcbbbab6_2010_4bbb_aaee_338e368af6fa); +::windows_core::imp::interface_hierarchy!(IMbnConnectionProfile, ::windows_core::IUnknown); impl IMbnConnectionProfile { pub unsafe fn GetProfileXmlData(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -270,13 +215,6 @@ impl IMbnConnectionProfile { (::windows_core::Interface::vtable(self).Delete)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IMbnConnectionProfile, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMbnConnectionProfile { - type Vtable = IMbnConnectionProfile_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMbnConnectionProfile { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdcbbbab6_2010_4bbb_aaee_338e368af6fa); -} #[repr(C)] #[doc(hidden)] pub struct IMbnConnectionProfile_Vtbl { @@ -285,9 +223,8 @@ pub struct IMbnConnectionProfile_Vtbl { pub UpdateProfile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strprofile: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub Delete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMbnConnectionProfileEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMbnConnectionProfileEvents, IMbnConnectionProfileEvents_Vtbl, 0xdcbbbab6_2011_4bbb_aaee_338e368af6fa); +::windows_core::imp::interface_hierarchy!(IMbnConnectionProfileEvents, ::windows_core::IUnknown); impl IMbnConnectionProfileEvents { pub unsafe fn OnProfileUpdate(&self, newprofile: P0) -> ::windows_core::Result<()> where @@ -296,22 +233,14 @@ impl IMbnConnectionProfileEvents { (::windows_core::Interface::vtable(self).OnProfileUpdate)(::windows_core::Interface::as_raw(self), newprofile.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMbnConnectionProfileEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMbnConnectionProfileEvents { - type Vtable = IMbnConnectionProfileEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMbnConnectionProfileEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdcbbbab6_2011_4bbb_aaee_338e368af6fa); -} #[repr(C)] #[doc(hidden)] pub struct IMbnConnectionProfileEvents_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnProfileUpdate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newprofile: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMbnConnectionProfileManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMbnConnectionProfileManager, IMbnConnectionProfileManager_Vtbl, 0xdcbbbab6_200f_4bbb_aaee_338e368af6fa); +::windows_core::imp::interface_hierarchy!(IMbnConnectionProfileManager, ::windows_core::IUnknown); impl IMbnConnectionProfileManager { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -337,13 +266,6 @@ impl IMbnConnectionProfileManager { (::windows_core::Interface::vtable(self).CreateConnectionProfile)(::windows_core::Interface::as_raw(self), xmlprofile.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMbnConnectionProfileManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMbnConnectionProfileManager { - type Vtable = IMbnConnectionProfileManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMbnConnectionProfileManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdcbbbab6_200f_4bbb_aaee_338e368af6fa); -} #[repr(C)] #[doc(hidden)] pub struct IMbnConnectionProfileManager_Vtbl { @@ -355,9 +277,8 @@ pub struct IMbnConnectionProfileManager_Vtbl { pub GetConnectionProfile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mbninterface: *mut ::core::ffi::c_void, profilename: ::windows_core::PCWSTR, connectionprofile: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateConnectionProfile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, xmlprofile: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMbnConnectionProfileManagerEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMbnConnectionProfileManagerEvents, IMbnConnectionProfileManagerEvents_Vtbl, 0xdcbbbab6_201f_4bbb_aaee_338e368af6fa); +::windows_core::imp::interface_hierarchy!(IMbnConnectionProfileManagerEvents, ::windows_core::IUnknown); impl IMbnConnectionProfileManagerEvents { pub unsafe fn OnConnectionProfileArrival(&self, newconnectionprofile: P0) -> ::windows_core::Result<()> where @@ -372,13 +293,6 @@ impl IMbnConnectionProfileManagerEvents { (::windows_core::Interface::vtable(self).OnConnectionProfileRemoval)(::windows_core::Interface::as_raw(self), oldconnectionprofile.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMbnConnectionProfileManagerEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMbnConnectionProfileManagerEvents { - type Vtable = IMbnConnectionProfileManagerEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMbnConnectionProfileManagerEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdcbbbab6_201f_4bbb_aaee_338e368af6fa); -} #[repr(C)] #[doc(hidden)] pub struct IMbnConnectionProfileManagerEvents_Vtbl { @@ -386,9 +300,8 @@ pub struct IMbnConnectionProfileManagerEvents_Vtbl { pub OnConnectionProfileArrival: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newconnectionprofile: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub OnConnectionProfileRemoval: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, oldconnectionprofile: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMbnDeviceService(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMbnDeviceService, IMbnDeviceService_Vtbl, 0xb3bb9a71_dc70_4be9_a4da_7886ae8b191b); +::windows_core::imp::interface_hierarchy!(IMbnDeviceService, ::windows_core::IUnknown); impl IMbnDeviceService { pub unsafe fn QuerySupportedCommands(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -445,13 +358,6 @@ impl IMbnDeviceService { (::windows_core::Interface::vtable(self).IsDataSessionOpen)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMbnDeviceService, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMbnDeviceService { - type Vtable = IMbnDeviceService_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMbnDeviceService { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb3bb9a71_dc70_4be9_a4da_7886ae8b191b); -} #[repr(C)] #[doc(hidden)] pub struct IMbnDeviceService_Vtbl { @@ -478,9 +384,8 @@ pub struct IMbnDeviceService_Vtbl { pub IsCommandSessionOpen: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub IsDataSessionOpen: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMbnDeviceServiceStateEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMbnDeviceServiceStateEvents, IMbnDeviceServiceStateEvents_Vtbl, 0x5d3ff196_89ee_49d8_8b60_33ffddffc58d); +::windows_core::imp::interface_hierarchy!(IMbnDeviceServiceStateEvents, ::windows_core::IUnknown); impl IMbnDeviceServiceStateEvents { pub unsafe fn OnSessionsStateChange(&self, interfaceid: P0, statechange: MBN_DEVICE_SERVICE_SESSIONS_STATE) -> ::windows_core::Result<()> where @@ -489,22 +394,14 @@ impl IMbnDeviceServiceStateEvents { (::windows_core::Interface::vtable(self).OnSessionsStateChange)(::windows_core::Interface::as_raw(self), interfaceid.into_param().abi(), statechange).ok() } } -::windows_core::imp::interface_hierarchy!(IMbnDeviceServiceStateEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMbnDeviceServiceStateEvents { - type Vtable = IMbnDeviceServiceStateEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMbnDeviceServiceStateEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5d3ff196_89ee_49d8_8b60_33ffddffc58d); -} #[repr(C)] #[doc(hidden)] pub struct IMbnDeviceServiceStateEvents_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnSessionsStateChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, interfaceid: ::std::mem::MaybeUninit<::windows_core::BSTR>, statechange: MBN_DEVICE_SERVICE_SESSIONS_STATE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMbnDeviceServicesContext(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMbnDeviceServicesContext, IMbnDeviceServicesContext_Vtbl, 0xfc5ac347_1592_4068_80bb_6a57580150d8); +::windows_core::imp::interface_hierarchy!(IMbnDeviceServicesContext, ::windows_core::IUnknown); impl IMbnDeviceServicesContext { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -528,13 +425,6 @@ impl IMbnDeviceServicesContext { (::windows_core::Interface::vtable(self).MaxDataSize)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMbnDeviceServicesContext, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMbnDeviceServicesContext { - type Vtable = IMbnDeviceServicesContext_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMbnDeviceServicesContext { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfc5ac347_1592_4068_80bb_6a57580150d8); -} #[repr(C)] #[doc(hidden)] pub struct IMbnDeviceServicesContext_Vtbl { @@ -547,9 +437,8 @@ pub struct IMbnDeviceServicesContext_Vtbl { pub MaxCommandSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, maxcommandsize: *mut u32) -> ::windows_core::HRESULT, pub MaxDataSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, maxdatasize: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMbnDeviceServicesEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMbnDeviceServicesEvents, IMbnDeviceServicesEvents_Vtbl, 0x0a900c19_6824_4e97_b76e_cf239d0ca642); +::windows_core::imp::interface_hierarchy!(IMbnDeviceServicesEvents, ::windows_core::IUnknown); impl IMbnDeviceServicesEvents { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -628,13 +517,6 @@ impl IMbnDeviceServicesEvents { (::windows_core::Interface::vtable(self).OnInterfaceStateChange)(::windows_core::Interface::as_raw(self), interfaceid.into_param().abi(), statechange).ok() } } -::windows_core::imp::interface_hierarchy!(IMbnDeviceServicesEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMbnDeviceServicesEvents { - type Vtable = IMbnDeviceServicesEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMbnDeviceServicesEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0a900c19_6824_4e97_b76e_cf239d0ca642); -} #[repr(C)] #[doc(hidden)] pub struct IMbnDeviceServicesEvents_Vtbl { @@ -666,9 +548,8 @@ pub struct IMbnDeviceServicesEvents_Vtbl { OnReadData: usize, pub OnInterfaceStateChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, interfaceid: ::std::mem::MaybeUninit<::windows_core::BSTR>, statechange: MBN_DEVICE_SERVICES_INTERFACE_STATE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMbnDeviceServicesManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMbnDeviceServicesManager, IMbnDeviceServicesManager_Vtbl, 0x20a26258_6811_4478_ac1d_13324e45e41c); +::windows_core::imp::interface_hierarchy!(IMbnDeviceServicesManager, ::windows_core::IUnknown); impl IMbnDeviceServicesManager { pub unsafe fn GetDeviceServicesContext(&self, networkinterfaceid: P0) -> ::windows_core::Result where @@ -678,22 +559,14 @@ impl IMbnDeviceServicesManager { (::windows_core::Interface::vtable(self).GetDeviceServicesContext)(::windows_core::Interface::as_raw(self), networkinterfaceid.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMbnDeviceServicesManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMbnDeviceServicesManager { - type Vtable = IMbnDeviceServicesManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMbnDeviceServicesManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x20a26258_6811_4478_ac1d_13324e45e41c); -} #[repr(C)] #[doc(hidden)] pub struct IMbnDeviceServicesManager_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetDeviceServicesContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, networkinterfaceid: ::std::mem::MaybeUninit<::windows_core::BSTR>, mbndevicescontext: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMbnInterface(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMbnInterface, IMbnInterface_Vtbl, 0xdcbbbab6_2001_4bbb_aaee_338e368af6fa); +::windows_core::imp::interface_hierarchy!(IMbnInterface, ::windows_core::IUnknown); impl IMbnInterface { pub unsafe fn InterfaceID(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -744,13 +617,6 @@ impl IMbnInterface { (::windows_core::Interface::vtable(self).GetConnection)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMbnInterface, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMbnInterface { - type Vtable = IMbnInterface_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMbnInterface { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdcbbbab6_2001_4bbb_aaee_338e368af6fa); -} #[repr(C)] #[doc(hidden)] pub struct IMbnInterface_Vtbl { @@ -776,9 +642,8 @@ pub struct IMbnInterface_Vtbl { pub ScanNetwork: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, requestid: *mut u32) -> ::windows_core::HRESULT, pub GetConnection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mbnconnection: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMbnInterfaceEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMbnInterfaceEvents, IMbnInterfaceEvents_Vtbl, 0xdcbbbab6_2002_4bbb_aaee_338e368af6fa); +::windows_core::imp::interface_hierarchy!(IMbnInterfaceEvents, ::windows_core::IUnknown); impl IMbnInterfaceEvents { pub unsafe fn OnInterfaceCapabilityAvailable(&self, newinterface: P0) -> ::windows_core::Result<()> where @@ -829,13 +694,6 @@ impl IMbnInterfaceEvents { (::windows_core::Interface::vtable(self).OnScanNetworkComplete)(::windows_core::Interface::as_raw(self), newinterface.into_param().abi(), requestid, status).ok() } } -::windows_core::imp::interface_hierarchy!(IMbnInterfaceEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMbnInterfaceEvents { - type Vtable = IMbnInterfaceEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMbnInterfaceEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdcbbbab6_2002_4bbb_aaee_338e368af6fa); -} #[repr(C)] #[doc(hidden)] pub struct IMbnInterfaceEvents_Vtbl { @@ -849,9 +707,8 @@ pub struct IMbnInterfaceEvents_Vtbl { pub OnSetPreferredProvidersComplete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newinterface: *mut ::core::ffi::c_void, requestid: u32, status: ::windows_core::HRESULT) -> ::windows_core::HRESULT, pub OnScanNetworkComplete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newinterface: *mut ::core::ffi::c_void, requestid: u32, status: ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMbnInterfaceManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMbnInterfaceManager, IMbnInterfaceManager_Vtbl, 0xdcbbbab6_201b_4bbb_aaee_338e368af6fa); +::windows_core::imp::interface_hierarchy!(IMbnInterfaceManager, ::windows_core::IUnknown); impl IMbnInterfaceManager { pub unsafe fn GetInterface(&self, interfaceid: P0) -> ::windows_core::Result where @@ -867,13 +724,6 @@ impl IMbnInterfaceManager { (::windows_core::Interface::vtable(self).GetInterfaces)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMbnInterfaceManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMbnInterfaceManager { - type Vtable = IMbnInterfaceManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMbnInterfaceManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdcbbbab6_201b_4bbb_aaee_338e368af6fa); -} #[repr(C)] #[doc(hidden)] pub struct IMbnInterfaceManager_Vtbl { @@ -884,9 +734,8 @@ pub struct IMbnInterfaceManager_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetInterfaces: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMbnInterfaceManagerEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMbnInterfaceManagerEvents, IMbnInterfaceManagerEvents_Vtbl, 0xdcbbbab6_201c_4bbb_aaee_338e368af6fa); +::windows_core::imp::interface_hierarchy!(IMbnInterfaceManagerEvents, ::windows_core::IUnknown); impl IMbnInterfaceManagerEvents { pub unsafe fn OnInterfaceArrival(&self, newinterface: P0) -> ::windows_core::Result<()> where @@ -901,13 +750,6 @@ impl IMbnInterfaceManagerEvents { (::windows_core::Interface::vtable(self).OnInterfaceRemoval)(::windows_core::Interface::as_raw(self), oldinterface.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMbnInterfaceManagerEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMbnInterfaceManagerEvents { - type Vtable = IMbnInterfaceManagerEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMbnInterfaceManagerEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdcbbbab6_201c_4bbb_aaee_338e368af6fa); -} #[repr(C)] #[doc(hidden)] pub struct IMbnInterfaceManagerEvents_Vtbl { @@ -915,9 +757,8 @@ pub struct IMbnInterfaceManagerEvents_Vtbl { pub OnInterfaceArrival: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newinterface: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub OnInterfaceRemoval: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, oldinterface: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMbnMultiCarrier(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMbnMultiCarrier, IMbnMultiCarrier_Vtbl, 0xdcbbbab6_2020_4bbb_aaee_338e368af6fa); +::windows_core::imp::interface_hierarchy!(IMbnMultiCarrier, ::windows_core::IUnknown); impl IMbnMultiCarrier { pub unsafe fn SetHomeProvider(&self, homeprovider: *const MBN_PROVIDER2) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -949,13 +790,6 @@ impl IMbnMultiCarrier { (::windows_core::Interface::vtable(self).ScanNetwork)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMbnMultiCarrier, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMbnMultiCarrier { - type Vtable = IMbnMultiCarrier_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMbnMultiCarrier { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdcbbbab6_2020_4bbb_aaee_338e368af6fa); -} #[repr(C)] #[doc(hidden)] pub struct IMbnMultiCarrier_Vtbl { @@ -976,9 +810,8 @@ pub struct IMbnMultiCarrier_Vtbl { pub GetCurrentCellularClass: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, currentcellularclass: *mut MBN_CELLULAR_CLASS) -> ::windows_core::HRESULT, pub ScanNetwork: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, requestid: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMbnMultiCarrierEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMbnMultiCarrierEvents, IMbnMultiCarrierEvents_Vtbl, 0xdcdddab6_2021_4bbb_aaee_338e368af6fa); +::windows_core::imp::interface_hierarchy!(IMbnMultiCarrierEvents, ::windows_core::IUnknown); impl IMbnMultiCarrierEvents { pub unsafe fn OnSetHomeProviderComplete(&self, mbninterface: P0, requestid: u32, status: ::windows_core::HRESULT) -> ::windows_core::Result<()> where @@ -1011,13 +844,6 @@ impl IMbnMultiCarrierEvents { (::windows_core::Interface::vtable(self).OnInterfaceCapabilityChange)(::windows_core::Interface::as_raw(self), mbninterface.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMbnMultiCarrierEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMbnMultiCarrierEvents { - type Vtable = IMbnMultiCarrierEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMbnMultiCarrierEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdcdddab6_2021_4bbb_aaee_338e368af6fa); -} #[repr(C)] #[doc(hidden)] pub struct IMbnMultiCarrierEvents_Vtbl { @@ -1028,9 +854,8 @@ pub struct IMbnMultiCarrierEvents_Vtbl { pub OnScanNetworkComplete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mbninterface: *mut ::core::ffi::c_void, requestid: u32, status: ::windows_core::HRESULT) -> ::windows_core::HRESULT, pub OnInterfaceCapabilityChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mbninterface: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMbnPin(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMbnPin, IMbnPin_Vtbl, 0xdcbbbab6_2007_4bbb_aaee_338e368af6fa); +::windows_core::imp::interface_hierarchy!(IMbnPin, ::windows_core::IUnknown); impl IMbnPin { pub unsafe fn PinType(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1094,13 +919,6 @@ impl IMbnPin { (::windows_core::Interface::vtable(self).GetPinManager)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMbnPin, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMbnPin { - type Vtable = IMbnPin_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMbnPin { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdcbbbab6_2007_4bbb_aaee_338e368af6fa); -} #[repr(C)] #[doc(hidden)] pub struct IMbnPin_Vtbl { @@ -1117,9 +935,8 @@ pub struct IMbnPin_Vtbl { pub Unblock: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, puk: ::windows_core::PCWSTR, newpin: ::windows_core::PCWSTR, requestid: *mut u32) -> ::windows_core::HRESULT, pub GetPinManager: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinmanager: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMbnPinEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMbnPinEvents, IMbnPinEvents_Vtbl, 0xdcbbbab6_2008_4bbb_aaee_338e368af6fa); +::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 @@ -1152,13 +969,6 @@ impl IMbnPinEvents { (::windows_core::Interface::vtable(self).OnUnblockComplete)(::windows_core::Interface::as_raw(self), pin.into_param().abi(), pininfo, requestid, status).ok() } } -::windows_core::imp::interface_hierarchy!(IMbnPinEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMbnPinEvents { - type Vtable = IMbnPinEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMbnPinEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdcbbbab6_2008_4bbb_aaee_338e368af6fa); -} #[repr(C)] #[doc(hidden)] pub struct IMbnPinEvents_Vtbl { @@ -1169,9 +979,8 @@ pub struct IMbnPinEvents_Vtbl { pub OnChangeComplete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pin: *mut ::core::ffi::c_void, pininfo: *const MBN_PIN_INFO, requestid: u32, status: ::windows_core::HRESULT) -> ::windows_core::HRESULT, pub OnUnblockComplete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pin: *mut ::core::ffi::c_void, pininfo: *const MBN_PIN_INFO, requestid: u32, status: ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMbnPinManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMbnPinManager, IMbnPinManager_Vtbl, 0xdcbbbab6_2005_4bbb_aaee_338e368af6fa); +::windows_core::imp::interface_hierarchy!(IMbnPinManager, ::windows_core::IUnknown); impl IMbnPinManager { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -1188,13 +997,6 @@ impl IMbnPinManager { (::windows_core::Interface::vtable(self).GetPinState)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMbnPinManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMbnPinManager { - type Vtable = IMbnPinManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMbnPinManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdcbbbab6_2005_4bbb_aaee_338e368af6fa); -} #[repr(C)] #[doc(hidden)] pub struct IMbnPinManager_Vtbl { @@ -1206,9 +1008,8 @@ pub struct IMbnPinManager_Vtbl { pub GetPin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pintype: MBN_PIN_TYPE, pin: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetPinState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, requestid: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMbnPinManagerEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMbnPinManagerEvents, IMbnPinManagerEvents_Vtbl, 0xdcbbbab6_2006_4bbb_aaee_338e368af6fa); +::windows_core::imp::interface_hierarchy!(IMbnPinManagerEvents, ::windows_core::IUnknown); impl IMbnPinManagerEvents { pub unsafe fn OnPinListAvailable(&self, pinmanager: P0) -> ::windows_core::Result<()> where @@ -1223,13 +1024,6 @@ impl IMbnPinManagerEvents { (::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::imp::interface_hierarchy!(IMbnPinManagerEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMbnPinManagerEvents { - type Vtable = IMbnPinManagerEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMbnPinManagerEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdcbbbab6_2006_4bbb_aaee_338e368af6fa); -} #[repr(C)] #[doc(hidden)] pub struct IMbnPinManagerEvents_Vtbl { @@ -1237,9 +1031,8 @@ pub struct IMbnPinManagerEvents_Vtbl { pub OnPinListAvailable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinmanager: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub OnGetPinStateComplete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinmanager: *mut ::core::ffi::c_void, pininfo: MBN_PIN_INFO, requestid: u32, status: ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMbnRadio(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMbnRadio, IMbnRadio_Vtbl, 0xdccccab6_201f_4bbb_aaee_338e368af6fa); +::windows_core::imp::interface_hierarchy!(IMbnRadio, ::windows_core::IUnknown); impl IMbnRadio { pub unsafe fn SoftwareRadioState(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1254,13 +1047,6 @@ impl IMbnRadio { (::windows_core::Interface::vtable(self).SetSoftwareRadioState)(::windows_core::Interface::as_raw(self), radiostate, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMbnRadio, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMbnRadio { - type Vtable = IMbnRadio_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMbnRadio { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdccccab6_201f_4bbb_aaee_338e368af6fa); -} #[repr(C)] #[doc(hidden)] pub struct IMbnRadio_Vtbl { @@ -1269,9 +1055,8 @@ pub struct IMbnRadio_Vtbl { pub HardwareRadioState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hardwareradiostate: *mut MBN_RADIO) -> ::windows_core::HRESULT, pub SetSoftwareRadioState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, radiostate: MBN_RADIO, requestid: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMbnRadioEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMbnRadioEvents, IMbnRadioEvents_Vtbl, 0xdcdddab6_201f_4bbb_aaee_338e368af6fa); +::windows_core::imp::interface_hierarchy!(IMbnRadioEvents, ::windows_core::IUnknown); impl IMbnRadioEvents { pub unsafe fn OnRadioStateChange(&self, newinterface: P0) -> ::windows_core::Result<()> where @@ -1286,13 +1071,6 @@ impl IMbnRadioEvents { (::windows_core::Interface::vtable(self).OnSetSoftwareRadioStateComplete)(::windows_core::Interface::as_raw(self), newinterface.into_param().abi(), requestid, status).ok() } } -::windows_core::imp::interface_hierarchy!(IMbnRadioEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMbnRadioEvents { - type Vtable = IMbnRadioEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMbnRadioEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdcdddab6_201f_4bbb_aaee_338e368af6fa); -} #[repr(C)] #[doc(hidden)] pub struct IMbnRadioEvents_Vtbl { @@ -1300,9 +1078,8 @@ pub struct IMbnRadioEvents_Vtbl { pub OnRadioStateChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newinterface: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub OnSetSoftwareRadioStateComplete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newinterface: *mut ::core::ffi::c_void, requestid: u32, status: ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMbnRegistration(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMbnRegistration, IMbnRegistration_Vtbl, 0xdcbbbab6_2009_4bbb_aaee_338e368af6fa); +::windows_core::imp::interface_hierarchy!(IMbnRegistration, ::windows_core::IUnknown); impl IMbnRegistration { pub unsafe fn GetRegisterState(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1348,13 +1125,6 @@ impl IMbnRegistration { (::windows_core::Interface::vtable(self).SetRegisterMode)(::windows_core::Interface::as_raw(self), registermode, providerid.into_param().abi(), dataclass, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMbnRegistration, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMbnRegistration { - type Vtable = IMbnRegistration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMbnRegistration { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdcbbbab6_2009_4bbb_aaee_338e368af6fa); -} #[repr(C)] #[doc(hidden)] pub struct IMbnRegistration_Vtbl { @@ -1370,9 +1140,8 @@ pub struct IMbnRegistration_Vtbl { pub GetPacketAttachNetworkError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, packetattachnetworkerror: *mut u32) -> ::windows_core::HRESULT, pub SetRegisterMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, registermode: MBN_REGISTER_MODE, providerid: ::windows_core::PCWSTR, dataclass: u32, requestid: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMbnRegistrationEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMbnRegistrationEvents, IMbnRegistrationEvents_Vtbl, 0xdcbbbab6_200a_4bbb_aaee_338e368af6fa); +::windows_core::imp::interface_hierarchy!(IMbnRegistrationEvents, ::windows_core::IUnknown); impl IMbnRegistrationEvents { pub unsafe fn OnRegisterModeAvailable(&self, newinterface: P0) -> ::windows_core::Result<()> where @@ -1399,13 +1168,6 @@ impl IMbnRegistrationEvents { (::windows_core::Interface::vtable(self).OnSetRegisterModeComplete)(::windows_core::Interface::as_raw(self), newinterface.into_param().abi(), requestid, status).ok() } } -::windows_core::imp::interface_hierarchy!(IMbnRegistrationEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMbnRegistrationEvents { - type Vtable = IMbnRegistrationEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMbnRegistrationEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdcbbbab6_200a_4bbb_aaee_338e368af6fa); -} #[repr(C)] #[doc(hidden)] pub struct IMbnRegistrationEvents_Vtbl { @@ -1415,9 +1177,8 @@ pub struct IMbnRegistrationEvents_Vtbl { pub OnPacketServiceStateChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newinterface: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub OnSetRegisterModeComplete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newinterface: *mut ::core::ffi::c_void, requestid: u32, status: ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMbnServiceActivation(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMbnServiceActivation, IMbnServiceActivation_Vtbl, 0xdcbbbab6_2017_4bbb_aaee_338e368af6fa); +::windows_core::imp::interface_hierarchy!(IMbnServiceActivation, ::windows_core::IUnknown); impl IMbnServiceActivation { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -1426,13 +1187,6 @@ impl IMbnServiceActivation { (::windows_core::Interface::vtable(self).Activate)(::windows_core::Interface::as_raw(self), vendorspecificdata, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMbnServiceActivation, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMbnServiceActivation { - type Vtable = IMbnServiceActivation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMbnServiceActivation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdcbbbab6_2017_4bbb_aaee_338e368af6fa); -} #[repr(C)] #[doc(hidden)] pub struct IMbnServiceActivation_Vtbl { @@ -1442,9 +1196,8 @@ pub struct IMbnServiceActivation_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Activate: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMbnServiceActivationEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMbnServiceActivationEvents, IMbnServiceActivationEvents_Vtbl, 0xdcbbbab6_2018_4bbb_aaee_338e368af6fa); +::windows_core::imp::interface_hierarchy!(IMbnServiceActivationEvents, ::windows_core::IUnknown); impl IMbnServiceActivationEvents { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -1455,13 +1208,6 @@ impl IMbnServiceActivationEvents { (::windows_core::Interface::vtable(self).OnActivationComplete)(::windows_core::Interface::as_raw(self), serviceactivation.into_param().abi(), vendorspecificdata, requestid, status, networkerror).ok() } } -::windows_core::imp::interface_hierarchy!(IMbnServiceActivationEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMbnServiceActivationEvents { - type Vtable = IMbnServiceActivationEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMbnServiceActivationEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdcbbbab6_2018_4bbb_aaee_338e368af6fa); -} #[repr(C)] #[doc(hidden)] pub struct IMbnServiceActivationEvents_Vtbl { @@ -1471,9 +1217,8 @@ pub struct IMbnServiceActivationEvents_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] OnActivationComplete: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMbnSignal(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMbnSignal, IMbnSignal_Vtbl, 0xdcbbbab6_2003_4bbb_aaee_338e368af6fa); +::windows_core::imp::interface_hierarchy!(IMbnSignal, ::windows_core::IUnknown); impl IMbnSignal { pub unsafe fn GetSignalStrength(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1484,13 +1229,6 @@ impl IMbnSignal { (::windows_core::Interface::vtable(self).GetSignalError)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMbnSignal, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMbnSignal { - type Vtable = IMbnSignal_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMbnSignal { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdcbbbab6_2003_4bbb_aaee_338e368af6fa); -} #[repr(C)] #[doc(hidden)] pub struct IMbnSignal_Vtbl { @@ -1498,9 +1236,8 @@ pub struct IMbnSignal_Vtbl { pub GetSignalStrength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, signalstrength: *mut u32) -> ::windows_core::HRESULT, pub GetSignalError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, signalerror: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMbnSignalEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMbnSignalEvents, IMbnSignalEvents_Vtbl, 0xdcbbbab6_2004_4bbb_aaee_338e368af6fa); +::windows_core::imp::interface_hierarchy!(IMbnSignalEvents, ::windows_core::IUnknown); impl IMbnSignalEvents { pub unsafe fn OnSignalStateChange(&self, newinterface: P0) -> ::windows_core::Result<()> where @@ -1509,22 +1246,14 @@ impl IMbnSignalEvents { (::windows_core::Interface::vtable(self).OnSignalStateChange)(::windows_core::Interface::as_raw(self), newinterface.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMbnSignalEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMbnSignalEvents { - type Vtable = IMbnSignalEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMbnSignalEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdcbbbab6_2004_4bbb_aaee_338e368af6fa); -} #[repr(C)] #[doc(hidden)] pub struct IMbnSignalEvents_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnSignalStateChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newinterface: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMbnSms(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMbnSms, IMbnSms_Vtbl, 0xdcbbbab6_2015_4bbb_aaee_338e368af6fa); +::windows_core::imp::interface_hierarchy!(IMbnSms, ::windows_core::IUnknown); impl IMbnSms { pub unsafe fn GetSmsConfiguration(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1572,13 +1301,6 @@ impl IMbnSms { (::windows_core::Interface::vtable(self).GetSmsStatus)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMbnSms, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMbnSms { - type Vtable = IMbnSms_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMbnSms { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdcbbbab6_2015_4bbb_aaee_338e368af6fa); -} #[repr(C)] #[doc(hidden)] pub struct IMbnSms_Vtbl { @@ -1598,9 +1320,8 @@ pub struct IMbnSms_Vtbl { pub SmsDelete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, smsfilter: *const MBN_SMS_FILTER, requestid: *mut u32) -> ::windows_core::HRESULT, pub GetSmsStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, smsstatusinfo: *mut MBN_SMS_STATUS_INFO) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMbnSmsConfiguration(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMbnSmsConfiguration, IMbnSmsConfiguration_Vtbl, 0xdcbbbab6_2012_4bbb_aaee_338e368af6fa); +::windows_core::imp::interface_hierarchy!(IMbnSmsConfiguration, ::windows_core::IUnknown); impl IMbnSmsConfiguration { pub unsafe fn ServiceCenterAddress(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -1628,13 +1349,6 @@ impl IMbnSmsConfiguration { (::windows_core::Interface::vtable(self).SetSmsFormat)(::windows_core::Interface::as_raw(self), smsformat).ok() } } -::windows_core::imp::interface_hierarchy!(IMbnSmsConfiguration, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMbnSmsConfiguration { - type Vtable = IMbnSmsConfiguration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMbnSmsConfiguration { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdcbbbab6_2012_4bbb_aaee_338e368af6fa); -} #[repr(C)] #[doc(hidden)] pub struct IMbnSmsConfiguration_Vtbl { @@ -1646,9 +1360,8 @@ pub struct IMbnSmsConfiguration_Vtbl { pub SmsFormat: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, smsformat: *mut MBN_SMS_FORMAT) -> ::windows_core::HRESULT, pub SetSmsFormat: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, smsformat: MBN_SMS_FORMAT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMbnSmsEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMbnSmsEvents, IMbnSmsEvents_Vtbl, 0xdcbbbab6_2016_4bbb_aaee_338e368af6fa); +::windows_core::imp::interface_hierarchy!(IMbnSmsEvents, ::windows_core::IUnknown); impl IMbnSmsEvents { pub unsafe fn OnSmsConfigurationChange(&self, sms: P0) -> ::windows_core::Result<()> where @@ -1698,13 +1411,6 @@ impl IMbnSmsEvents { (::windows_core::Interface::vtable(self).OnSmsStatusChange)(::windows_core::Interface::as_raw(self), sms.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMbnSmsEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMbnSmsEvents { - type Vtable = IMbnSmsEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMbnSmsEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdcbbbab6_2016_4bbb_aaee_338e368af6fa); -} #[repr(C)] #[doc(hidden)] pub struct IMbnSmsEvents_Vtbl { @@ -1723,9 +1429,8 @@ pub struct IMbnSmsEvents_Vtbl { pub OnSmsDeleteComplete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sms: *mut ::core::ffi::c_void, requestid: u32, status: ::windows_core::HRESULT) -> ::windows_core::HRESULT, pub OnSmsStatusChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sms: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMbnSmsReadMsgPdu(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMbnSmsReadMsgPdu, IMbnSmsReadMsgPdu_Vtbl, 0xdcbbbab6_2013_4bbb_aaee_338e368af6fa); +::windows_core::imp::interface_hierarchy!(IMbnSmsReadMsgPdu, ::windows_core::IUnknown); impl IMbnSmsReadMsgPdu { pub unsafe fn Index(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1746,13 +1451,6 @@ impl IMbnSmsReadMsgPdu { (::windows_core::Interface::vtable(self).Message)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMbnSmsReadMsgPdu, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMbnSmsReadMsgPdu { - type Vtable = IMbnSmsReadMsgPdu_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMbnSmsReadMsgPdu { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdcbbbab6_2013_4bbb_aaee_338e368af6fa); -} #[repr(C)] #[doc(hidden)] pub struct IMbnSmsReadMsgPdu_Vtbl { @@ -1765,9 +1463,8 @@ pub struct IMbnSmsReadMsgPdu_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Message: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMbnSmsReadMsgTextCdma(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMbnSmsReadMsgTextCdma, IMbnSmsReadMsgTextCdma_Vtbl, 0xdcbbbab6_2014_4bbb_aaee_338e368af6fa); +::windows_core::imp::interface_hierarchy!(IMbnSmsReadMsgTextCdma, ::windows_core::IUnknown); impl IMbnSmsReadMsgTextCdma { pub unsafe fn Index(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1804,13 +1501,6 @@ impl IMbnSmsReadMsgTextCdma { (::windows_core::Interface::vtable(self).Message)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMbnSmsReadMsgTextCdma, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMbnSmsReadMsgTextCdma { - type Vtable = IMbnSmsReadMsgTextCdma_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMbnSmsReadMsgTextCdma { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdcbbbab6_2014_4bbb_aaee_338e368af6fa); -} #[repr(C)] #[doc(hidden)] pub struct IMbnSmsReadMsgTextCdma_Vtbl { @@ -1827,9 +1517,8 @@ pub struct IMbnSmsReadMsgTextCdma_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Message: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMbnSubscriberInformation(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMbnSubscriberInformation, IMbnSubscriberInformation_Vtbl, 0x459ecc43_bcf5_11dc_a8a8_001321f1405f); +::windows_core::imp::interface_hierarchy!(IMbnSubscriberInformation, ::windows_core::IUnknown); impl IMbnSubscriberInformation { pub unsafe fn SubscriberID(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -1846,13 +1535,6 @@ impl IMbnSubscriberInformation { (::windows_core::Interface::vtable(self).TelephoneNumbers)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMbnSubscriberInformation, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMbnSubscriberInformation { - type Vtable = IMbnSubscriberInformation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMbnSubscriberInformation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x459ecc43_bcf5_11dc_a8a8_001321f1405f); -} #[repr(C)] #[doc(hidden)] pub struct IMbnSubscriberInformation_Vtbl { @@ -1864,9 +1546,8 @@ pub struct IMbnSubscriberInformation_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] TelephoneNumbers: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMbnVendorSpecificEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMbnVendorSpecificEvents, IMbnVendorSpecificEvents_Vtbl, 0xdcbbbab6_201a_4bbb_aaee_338e368af6fa); +::windows_core::imp::interface_hierarchy!(IMbnVendorSpecificEvents, ::windows_core::IUnknown); impl IMbnVendorSpecificEvents { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -1885,13 +1566,6 @@ impl IMbnVendorSpecificEvents { (::windows_core::Interface::vtable(self).OnSetVendorSpecificComplete)(::windows_core::Interface::as_raw(self), vendoroperation.into_param().abi(), vendorspecificdata, requestid).ok() } } -::windows_core::imp::interface_hierarchy!(IMbnVendorSpecificEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMbnVendorSpecificEvents { - type Vtable = IMbnVendorSpecificEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMbnVendorSpecificEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdcbbbab6_201a_4bbb_aaee_338e368af6fa); -} #[repr(C)] #[doc(hidden)] pub struct IMbnVendorSpecificEvents_Vtbl { @@ -1905,9 +1579,8 @@ pub struct IMbnVendorSpecificEvents_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] OnSetVendorSpecificComplete: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMbnVendorSpecificOperation(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMbnVendorSpecificOperation, IMbnVendorSpecificOperation_Vtbl, 0xdcbbbab6_2019_4bbb_aaee_338e368af6fa); +::windows_core::imp::interface_hierarchy!(IMbnVendorSpecificOperation, ::windows_core::IUnknown); impl IMbnVendorSpecificOperation { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -1916,13 +1589,6 @@ impl IMbnVendorSpecificOperation { (::windows_core::Interface::vtable(self).SetVendorSpecific)(::windows_core::Interface::as_raw(self), vendorspecificdata, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMbnVendorSpecificOperation, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMbnVendorSpecificOperation { - type Vtable = IMbnVendorSpecificOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMbnVendorSpecificOperation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdcbbbab6_2019_4bbb_aaee_338e368af6fa); -} #[repr(C)] #[doc(hidden)] pub struct IMbnVendorSpecificOperation_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetManagement/impl.rs b/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetManagement/impl.rs index b3da25b924..e48410e03a 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetManagement/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetManagement/impl.rs @@ -36,7 +36,7 @@ impl IEnumNetCfgBindingInterface_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumNetCfgBindingPath_Impl: Sized { @@ -77,7 +77,7 @@ impl IEnumNetCfgBindingPath_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumNetCfgComponent_Impl: Sized { @@ -118,7 +118,7 @@ impl IEnumNetCfgComponent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait INetCfg_Impl: Sized { @@ -180,7 +180,7 @@ impl INetCfg_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait INetCfgBindingInterface_Impl: Sized { @@ -214,7 +214,7 @@ impl INetCfgBindingInterface_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait INetCfgBindingPath_Impl: Sized { @@ -289,7 +289,7 @@ impl INetCfgBindingPath_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait INetCfgClass_Impl: Sized { @@ -316,7 +316,7 @@ impl INetCfgClass_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait INetCfgClassSetup_Impl: Sized { @@ -350,7 +350,7 @@ impl INetCfgClassSetup_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait INetCfgClassSetup2_Impl: Sized + INetCfgClassSetup_Impl { @@ -370,7 +370,7 @@ impl INetCfgClassSetup2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Registry\"`"] @@ -483,7 +483,7 @@ impl INetCfgComponent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait INetCfgComponentBindings_Impl: Sized { @@ -552,7 +552,7 @@ impl INetCfgComponentBindings_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait INetCfgComponentControl_Impl: Sized { @@ -593,7 +593,7 @@ impl INetCfgComponentControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait INetCfgComponentNotifyBinding_Impl: Sized { @@ -620,7 +620,7 @@ impl INetCfgComponentNotifyBinding_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait INetCfgComponentNotifyGlobal_Impl: Sized { @@ -667,7 +667,7 @@ impl INetCfgComponentNotifyGlobal_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait INetCfgComponentPropertyUi_Impl: Sized { @@ -722,7 +722,7 @@ impl INetCfgComponentPropertyUi_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait INetCfgComponentSetup_Impl: Sized { @@ -763,7 +763,7 @@ impl INetCfgComponentSetup_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait INetCfgComponentSysPrep_Impl: Sized { @@ -790,7 +790,7 @@ impl INetCfgComponentSysPrep_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait INetCfgComponentUpperEdge_Impl: Sized { @@ -824,7 +824,7 @@ impl INetCfgComponentUpperEdge_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait INetCfgLock_Impl: Sized { @@ -858,7 +858,7 @@ impl INetCfgLock_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait INetCfgPnpReconfigCallback_Impl: Sized { @@ -875,7 +875,7 @@ impl INetCfgPnpReconfigCallback_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), SendPnpReconfig: SendPnpReconfig:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait INetCfgSysPrep_Impl: Sized { @@ -916,7 +916,7 @@ impl INetCfgSysPrep_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait INetLanConnectionUiInfo_Impl: Sized { @@ -939,7 +939,7 @@ impl INetLanConnectionUiInfo_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetDeviceGuid: GetDeviceGuid:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait INetRasConnectionIpUiInfo_Impl: Sized { @@ -956,7 +956,7 @@ impl INetRasConnectionIpUiInfo_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetUiInfo: GetUiInfo:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Data_Xml_MsXml\"`, `\"Win32_System_Com\"`"] @@ -989,7 +989,7 @@ impl IProvisioningDomain_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Add: Add::, Query: Query:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IProvisioningProfileWireless_Impl: Sized { @@ -1012,6 +1012,6 @@ impl IProvisioningProfileWireless_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CreateProfile: CreateProfile:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 4a672affe5..a520a05255 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetManagement/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetManagement/mod.rs @@ -1446,9 +1446,8 @@ where ::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) } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumNetCfgBindingInterface(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumNetCfgBindingInterface, IEnumNetCfgBindingInterface_Vtbl, 0xc0e8ae90_306e_11d1_aacf_00805fc1270e); +::windows_core::imp::interface_hierarchy!(IEnumNetCfgBindingInterface, ::windows_core::IUnknown); impl IEnumNetCfgBindingInterface { pub unsafe fn Next(&self, rgelt: &mut [::core::option::Option], pceltfetched: ::core::option::Option<*mut u32>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), ::core::mem::transmute(rgelt.as_ptr()), ::core::mem::transmute(pceltfetched.unwrap_or(::std::ptr::null_mut()))).ok() @@ -1463,13 +1462,6 @@ impl IEnumNetCfgBindingInterface { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(ppenum.unwrap_or(::std::ptr::null()))).ok() } } -::windows_core::imp::interface_hierarchy!(IEnumNetCfgBindingInterface, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumNetCfgBindingInterface { - type Vtable = IEnumNetCfgBindingInterface_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumNetCfgBindingInterface { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc0e8ae90_306e_11d1_aacf_00805fc1270e); -} #[repr(C)] #[doc(hidden)] pub struct IEnumNetCfgBindingInterface_Vtbl { @@ -1479,9 +1471,8 @@ pub struct IEnumNetCfgBindingInterface_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *const *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumNetCfgBindingPath(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumNetCfgBindingPath, IEnumNetCfgBindingPath_Vtbl, 0xc0e8ae91_306e_11d1_aacf_00805fc1270e); +::windows_core::imp::interface_hierarchy!(IEnumNetCfgBindingPath, ::windows_core::IUnknown); impl IEnumNetCfgBindingPath { pub unsafe fn Next(&self, rgelt: &mut [::core::option::Option], pceltfetched: ::core::option::Option<*mut u32>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), ::core::mem::transmute(rgelt.as_ptr()), ::core::mem::transmute(pceltfetched.unwrap_or(::std::ptr::null_mut()))).ok() @@ -1496,13 +1487,6 @@ impl IEnumNetCfgBindingPath { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(ppenum.unwrap_or(::std::ptr::null()))).ok() } } -::windows_core::imp::interface_hierarchy!(IEnumNetCfgBindingPath, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumNetCfgBindingPath { - type Vtable = IEnumNetCfgBindingPath_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumNetCfgBindingPath { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc0e8ae91_306e_11d1_aacf_00805fc1270e); -} #[repr(C)] #[doc(hidden)] pub struct IEnumNetCfgBindingPath_Vtbl { @@ -1512,9 +1496,8 @@ pub struct IEnumNetCfgBindingPath_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *const *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumNetCfgComponent(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumNetCfgComponent, IEnumNetCfgComponent_Vtbl, 0xc0e8ae92_306e_11d1_aacf_00805fc1270e); +::windows_core::imp::interface_hierarchy!(IEnumNetCfgComponent, ::windows_core::IUnknown); impl IEnumNetCfgComponent { pub unsafe fn Next(&self, rgelt: &mut [::core::option::Option], pceltfetched: ::core::option::Option<*mut u32>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), ::core::mem::transmute(rgelt.as_ptr()), ::core::mem::transmute(pceltfetched.unwrap_or(::std::ptr::null_mut()))).ok() @@ -1529,13 +1512,6 @@ impl IEnumNetCfgComponent { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(ppenum.unwrap_or(::std::ptr::null()))).ok() } } -::windows_core::imp::interface_hierarchy!(IEnumNetCfgComponent, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumNetCfgComponent { - type Vtable = IEnumNetCfgComponent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumNetCfgComponent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc0e8ae92_306e_11d1_aacf_00805fc1270e); -} #[repr(C)] #[doc(hidden)] pub struct IEnumNetCfgComponent_Vtbl { @@ -1545,9 +1521,8 @@ pub struct IEnumNetCfgComponent_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *const *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetCfg(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INetCfg, INetCfg_Vtbl, 0xc0e8ae93_306e_11d1_aacf_00805fc1270e); +::windows_core::imp::interface_hierarchy!(INetCfg, ::windows_core::IUnknown); impl INetCfg { pub unsafe fn Initialize(&self, pvreserved: ::core::option::Option<*const ::core::ffi::c_void>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Initialize)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pvreserved.unwrap_or(::std::ptr::null()))).ok() @@ -1574,13 +1549,6 @@ impl INetCfg { (::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() } } -::windows_core::imp::interface_hierarchy!(INetCfg, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INetCfg { - type Vtable = INetCfg_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INetCfg { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc0e8ae93_306e_11d1_aacf_00805fc1270e); -} #[repr(C)] #[doc(hidden)] pub struct INetCfg_Vtbl { @@ -1593,9 +1561,8 @@ pub struct INetCfg_Vtbl { pub FindComponent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszwinfid: ::windows_core::PCWSTR, pcomponent: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub QueryNetCfgClass: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pguidclass: *const ::windows_core::GUID, riid: *const ::windows_core::GUID, ppvobject: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetCfgBindingInterface(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INetCfgBindingInterface, INetCfgBindingInterface_Vtbl, 0xc0e8ae94_306e_11d1_aacf_00805fc1270e); +::windows_core::imp::interface_hierarchy!(INetCfgBindingInterface, ::windows_core::IUnknown); impl INetCfgBindingInterface { pub unsafe fn GetName(&self, ppszwinterfacename: ::core::option::Option<*mut ::windows_core::PWSTR>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetName)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(ppszwinterfacename.unwrap_or(::std::ptr::null_mut()))).ok() @@ -1607,13 +1574,6 @@ impl INetCfgBindingInterface { (::windows_core::Interface::vtable(self).GetLowerComponent)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(ppnccitem.unwrap_or(::std::ptr::null_mut()))).ok() } } -::windows_core::imp::interface_hierarchy!(INetCfgBindingInterface, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INetCfgBindingInterface { - type Vtable = INetCfgBindingInterface_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INetCfgBindingInterface { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc0e8ae94_306e_11d1_aacf_00805fc1270e); -} #[repr(C)] #[doc(hidden)] pub struct INetCfgBindingInterface_Vtbl { @@ -1622,9 +1582,8 @@ pub struct INetCfgBindingInterface_Vtbl { pub GetUpperComponent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppnccitem: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetLowerComponent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppnccitem: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetCfgBindingPath(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INetCfgBindingPath, INetCfgBindingPath_Vtbl, 0xc0e8ae96_306e_11d1_aacf_00805fc1270e); +::windows_core::imp::interface_hierarchy!(INetCfgBindingPath, ::windows_core::IUnknown); impl INetCfgBindingPath { pub unsafe fn IsSamePathAs(&self, ppath: P0) -> ::windows_core::Result<()> where @@ -1661,13 +1620,6 @@ impl INetCfgBindingPath { (::windows_core::Interface::vtable(self).EnumBindingInterfaces)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(ppenuminterface.unwrap_or(::std::ptr::null_mut()))).ok() } } -::windows_core::imp::interface_hierarchy!(INetCfgBindingPath, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INetCfgBindingPath { - type Vtable = INetCfgBindingPath_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INetCfgBindingPath { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc0e8ae96_306e_11d1_aacf_00805fc1270e); -} #[repr(C)] #[doc(hidden)] pub struct INetCfgBindingPath_Vtbl { @@ -1681,9 +1633,8 @@ pub struct INetCfgBindingPath_Vtbl { pub GetDepth: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcinterfaces: *mut u32) -> ::windows_core::HRESULT, pub EnumBindingInterfaces: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenuminterface: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetCfgClass(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INetCfgClass, INetCfgClass_Vtbl, 0xc0e8ae97_306e_11d1_aacf_00805fc1270e); +::windows_core::imp::interface_hierarchy!(INetCfgClass, ::windows_core::IUnknown); impl INetCfgClass { pub unsafe fn FindComponent(&self, pszwinfid: P0, ppnccitem: ::core::option::Option<*mut ::core::option::Option>) -> ::windows_core::Result<()> where @@ -1695,13 +1646,6 @@ impl INetCfgClass { (::windows_core::Interface::vtable(self).EnumComponents)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(ppenumcomponent.unwrap_or(::std::ptr::null_mut()))).ok() } } -::windows_core::imp::interface_hierarchy!(INetCfgClass, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INetCfgClass { - type Vtable = INetCfgClass_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INetCfgClass { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc0e8ae97_306e_11d1_aacf_00805fc1270e); -} #[repr(C)] #[doc(hidden)] pub struct INetCfgClass_Vtbl { @@ -1709,9 +1653,8 @@ pub struct INetCfgClass_Vtbl { pub FindComponent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszwinfid: ::windows_core::PCWSTR, ppnccitem: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub EnumComponents: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenumcomponent: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetCfgClassSetup(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INetCfgClassSetup, INetCfgClassSetup_Vtbl, 0xc0e8ae9d_306e_11d1_aacf_00805fc1270e); +::windows_core::imp::interface_hierarchy!(INetCfgClassSetup, ::windows_core::IUnknown); impl INetCfgClassSetup { pub unsafe fn SelectAndInstall(&self, hwndparent: P0, pobotoken: ::core::option::Option<*const OBO_TOKEN>, ppnccitem: ::core::option::Option<*mut ::core::option::Option>) -> ::windows_core::Result<()> where @@ -1734,13 +1677,6 @@ impl INetCfgClassSetup { (::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::imp::interface_hierarchy!(INetCfgClassSetup, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INetCfgClassSetup { - type Vtable = INetCfgClassSetup_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INetCfgClassSetup { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc0e8ae9d_306e_11d1_aacf_00805fc1270e); -} #[repr(C)] #[doc(hidden)] pub struct INetCfgClassSetup_Vtbl { @@ -1749,9 +1685,8 @@ pub struct INetCfgClassSetup_Vtbl { pub Install: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszwinfid: ::windows_core::PCWSTR, pobotoken: *const OBO_TOKEN, dwsetupflags: u32, dwupgradefrombuildno: u32, pszwanswerfile: ::windows_core::PCWSTR, pszwanswersections: ::windows_core::PCWSTR, ppnccitem: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub DeInstall: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcomponent: *mut ::core::ffi::c_void, pobotoken: *const OBO_TOKEN, pmszwrefs: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetCfgClassSetup2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INetCfgClassSetup2, INetCfgClassSetup2_Vtbl, 0xc0e8aea0_306e_11d1_aacf_00805fc1270e); +::windows_core::imp::interface_hierarchy!(INetCfgClassSetup2, ::windows_core::IUnknown, INetCfgClassSetup); impl INetCfgClassSetup2 { pub unsafe fn SelectAndInstall(&self, hwndparent: P0, pobotoken: ::core::option::Option<*const OBO_TOKEN>, ppnccitem: ::core::option::Option<*mut ::core::option::Option>) -> ::windows_core::Result<()> where @@ -1780,22 +1715,14 @@ impl INetCfgClassSetup2 { (::windows_core::Interface::vtable(self).UpdateNonEnumeratedComponent)(::windows_core::Interface::as_raw(self), picomp.into_param().abi(), dwsetupflags, dwupgradefrombuildno).ok() } } -::windows_core::imp::interface_hierarchy!(INetCfgClassSetup2, ::windows_core::IUnknown, INetCfgClassSetup); -unsafe impl ::windows_core::Interface for INetCfgClassSetup2 { - type Vtable = INetCfgClassSetup2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INetCfgClassSetup2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc0e8aea0_306e_11d1_aacf_00805fc1270e); -} #[repr(C)] #[doc(hidden)] pub struct INetCfgClassSetup2_Vtbl { pub base__: INetCfgClassSetup_Vtbl, pub UpdateNonEnumeratedComponent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, picomp: *mut ::core::ffi::c_void, dwsetupflags: u32, dwupgradefrombuildno: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetCfgComponent(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INetCfgComponent, INetCfgComponent_Vtbl, 0xc0e8ae99_306e_11d1_aacf_00805fc1270e); +::windows_core::imp::interface_hierarchy!(INetCfgComponent, ::windows_core::IUnknown); impl INetCfgComponent { pub unsafe fn GetDisplayName(&self, ppszwdisplayname: ::core::option::Option<*mut ::windows_core::PWSTR>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetDisplayName)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(ppszwdisplayname.unwrap_or(::std::ptr::null_mut()))).ok() @@ -1845,13 +1772,6 @@ impl INetCfgComponent { (::windows_core::Interface::vtable(self).RaisePropertyUi)(::windows_core::Interface::as_raw(self), hwndparent.into_param().abi(), dwflags, punkcontext.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(INetCfgComponent, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INetCfgComponent { - type Vtable = INetCfgComponent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INetCfgComponent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc0e8ae99_306e_11d1_aacf_00805fc1270e); -} #[repr(C)] #[doc(hidden)] pub struct INetCfgComponent_Vtbl { @@ -1872,9 +1792,8 @@ pub struct INetCfgComponent_Vtbl { OpenParamKey: usize, pub RaisePropertyUi: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwndparent: super::super::Foundation::HWND, dwflags: u32, punkcontext: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetCfgComponentBindings(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INetCfgComponentBindings, INetCfgComponentBindings_Vtbl, 0xc0e8ae9e_306e_11d1_aacf_00805fc1270e); +::windows_core::imp::interface_hierarchy!(INetCfgComponentBindings, ::windows_core::IUnknown); impl INetCfgComponentBindings { pub unsafe fn BindTo(&self, pnccitem: P0) -> ::windows_core::Result<()> where @@ -1924,13 +1843,6 @@ impl INetCfgComponentBindings { (::windows_core::Interface::vtable(self).MoveAfter)(::windows_core::Interface::as_raw(self), pncbitemsrc.into_param().abi(), pncbitemdest.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(INetCfgComponentBindings, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INetCfgComponentBindings { - type Vtable = INetCfgComponentBindings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INetCfgComponentBindings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc0e8ae9e_306e_11d1_aacf_00805fc1270e); -} #[repr(C)] #[doc(hidden)] pub struct INetCfgComponentBindings_Vtbl { @@ -1944,9 +1856,8 @@ pub struct INetCfgComponentBindings_Vtbl { pub MoveBefore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pncbitemsrc: *mut ::core::ffi::c_void, pncbitemdest: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub MoveAfter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pncbitemsrc: *mut ::core::ffi::c_void, pncbitemdest: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetCfgComponentControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INetCfgComponentControl, INetCfgComponentControl_Vtbl, 0x932238df_bea1_11d0_9298_00c04fc99dcf); +::windows_core::imp::interface_hierarchy!(INetCfgComponentControl, ::windows_core::IUnknown); impl INetCfgComponentControl { pub unsafe fn Initialize(&self, picomp: P0, pinetcfg: P1, finstalling: P2) -> ::windows_core::Result<()> where @@ -1969,13 +1880,6 @@ impl INetCfgComponentControl { (::windows_core::Interface::vtable(self).CancelChanges)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(INetCfgComponentControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INetCfgComponentControl { - type Vtable = INetCfgComponentControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INetCfgComponentControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x932238df_bea1_11d0_9298_00c04fc99dcf); -} #[repr(C)] #[doc(hidden)] pub struct INetCfgComponentControl_Vtbl { @@ -1985,9 +1889,8 @@ pub struct INetCfgComponentControl_Vtbl { pub ApplyPnpChanges: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, picallback: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CancelChanges: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetCfgComponentNotifyBinding(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INetCfgComponentNotifyBinding, INetCfgComponentNotifyBinding_Vtbl, 0x932238e1_bea1_11d0_9298_00c04fc99dcf); +::windows_core::imp::interface_hierarchy!(INetCfgComponentNotifyBinding, ::windows_core::IUnknown); impl INetCfgComponentNotifyBinding { pub unsafe fn QueryBindingPath(&self, dwchangeflag: u32, pipath: P0) -> ::windows_core::Result<()> where @@ -2002,13 +1905,6 @@ impl INetCfgComponentNotifyBinding { (::windows_core::Interface::vtable(self).NotifyBindingPath)(::windows_core::Interface::as_raw(self), dwchangeflag, pipath.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(INetCfgComponentNotifyBinding, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INetCfgComponentNotifyBinding { - type Vtable = INetCfgComponentNotifyBinding_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INetCfgComponentNotifyBinding { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x932238e1_bea1_11d0_9298_00c04fc99dcf); -} #[repr(C)] #[doc(hidden)] pub struct INetCfgComponentNotifyBinding_Vtbl { @@ -2016,9 +1912,8 @@ pub struct INetCfgComponentNotifyBinding_Vtbl { pub QueryBindingPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwchangeflag: u32, pipath: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub NotifyBindingPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwchangeflag: u32, pipath: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetCfgComponentNotifyGlobal(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INetCfgComponentNotifyGlobal, INetCfgComponentNotifyGlobal_Vtbl, 0x932238e2_bea1_11d0_9298_00c04fc99dcf); +::windows_core::imp::interface_hierarchy!(INetCfgComponentNotifyGlobal, ::windows_core::IUnknown); impl INetCfgComponentNotifyGlobal { pub unsafe fn GetSupportedNotifications(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2043,13 +1938,6 @@ impl INetCfgComponentNotifyGlobal { (::windows_core::Interface::vtable(self).SysNotifyComponent)(::windows_core::Interface::as_raw(self), dwchangeflag, picomp.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(INetCfgComponentNotifyGlobal, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INetCfgComponentNotifyGlobal { - type Vtable = INetCfgComponentNotifyGlobal_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INetCfgComponentNotifyGlobal { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x932238e2_bea1_11d0_9298_00c04fc99dcf); -} #[repr(C)] #[doc(hidden)] pub struct INetCfgComponentNotifyGlobal_Vtbl { @@ -2059,9 +1947,8 @@ pub struct INetCfgComponentNotifyGlobal_Vtbl { pub SysNotifyBindingPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwchangeflag: u32, pipath: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SysNotifyComponent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwchangeflag: u32, picomp: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetCfgComponentPropertyUi(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INetCfgComponentPropertyUi, INetCfgComponentPropertyUi_Vtbl, 0x932238e0_bea1_11d0_9298_00c04fc99dcf); +::windows_core::imp::interface_hierarchy!(INetCfgComponentPropertyUi, ::windows_core::IUnknown); impl INetCfgComponentPropertyUi { pub unsafe fn QueryPropertyUi(&self, punkreserved: P0) -> ::windows_core::Result<()> where @@ -2094,13 +1981,6 @@ impl INetCfgComponentPropertyUi { (::windows_core::Interface::vtable(self).CancelProperties)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(INetCfgComponentPropertyUi, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INetCfgComponentPropertyUi { - type Vtable = INetCfgComponentPropertyUi_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INetCfgComponentPropertyUi { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x932238e0_bea1_11d0_9298_00c04fc99dcf); -} #[repr(C)] #[doc(hidden)] pub struct INetCfgComponentPropertyUi_Vtbl { @@ -2112,9 +1992,8 @@ pub struct INetCfgComponentPropertyUi_Vtbl { pub ApplyProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CancelProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetCfgComponentSetup(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INetCfgComponentSetup, INetCfgComponentSetup_Vtbl, 0x932238e3_bea1_11d0_9298_00c04fc99dcf); +::windows_core::imp::interface_hierarchy!(INetCfgComponentSetup, ::windows_core::IUnknown); impl INetCfgComponentSetup { pub unsafe fn Install(&self, dwsetupflags: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Install)(::windows_core::Interface::as_raw(self), dwsetupflags).ok() @@ -2133,13 +2012,6 @@ impl INetCfgComponentSetup { (::windows_core::Interface::vtable(self).Removing)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(INetCfgComponentSetup, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INetCfgComponentSetup { - type Vtable = INetCfgComponentSetup_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INetCfgComponentSetup { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x932238e3_bea1_11d0_9298_00c04fc99dcf); -} #[repr(C)] #[doc(hidden)] pub struct INetCfgComponentSetup_Vtbl { @@ -2149,9 +2021,8 @@ pub struct INetCfgComponentSetup_Vtbl { pub ReadAnswerFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszwanswerfile: ::windows_core::PCWSTR, pszwanswersections: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub Removing: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetCfgComponentSysPrep(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INetCfgComponentSysPrep, INetCfgComponentSysPrep_Vtbl, 0xc0e8ae9a_306e_11d1_aacf_00805fc1270e); +::windows_core::imp::interface_hierarchy!(INetCfgComponentSysPrep, ::windows_core::IUnknown); impl INetCfgComponentSysPrep { pub unsafe fn SaveAdapterParameters(&self, pncsp: P0, pszwanswersections: P1, padapterinstanceguid: *const ::windows_core::GUID) -> ::windows_core::Result<()> where @@ -2168,13 +2039,6 @@ impl INetCfgComponentSysPrep { (::windows_core::Interface::vtable(self).RestoreAdapterParameters)(::windows_core::Interface::as_raw(self), pszwanswerfile.into_param().abi(), pszwanswersection.into_param().abi(), padapterinstanceguid).ok() } } -::windows_core::imp::interface_hierarchy!(INetCfgComponentSysPrep, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INetCfgComponentSysPrep { - type Vtable = INetCfgComponentSysPrep_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INetCfgComponentSysPrep { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc0e8ae9a_306e_11d1_aacf_00805fc1270e); -} #[repr(C)] #[doc(hidden)] pub struct INetCfgComponentSysPrep_Vtbl { @@ -2182,9 +2046,8 @@ pub struct INetCfgComponentSysPrep_Vtbl { pub SaveAdapterParameters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pncsp: *mut ::core::ffi::c_void, pszwanswersections: ::windows_core::PCWSTR, padapterinstanceguid: *const ::windows_core::GUID) -> ::windows_core::HRESULT, pub RestoreAdapterParameters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszwanswerfile: ::windows_core::PCWSTR, pszwanswersection: ::windows_core::PCWSTR, padapterinstanceguid: *const ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetCfgComponentUpperEdge(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INetCfgComponentUpperEdge, INetCfgComponentUpperEdge_Vtbl, 0x932238e4_bea1_11d0_9298_00c04fc99dcf); +::windows_core::imp::interface_hierarchy!(INetCfgComponentUpperEdge, ::windows_core::IUnknown); impl INetCfgComponentUpperEdge { pub unsafe fn GetInterfaceIdsForAdapter(&self, padapter: P0, pdwnuminterfaces: *mut u32, ppguidinterfaceids: ::core::option::Option<*mut *mut ::windows_core::GUID>) -> ::windows_core::Result<()> where @@ -2205,13 +2068,6 @@ impl INetCfgComponentUpperEdge { (::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::imp::interface_hierarchy!(INetCfgComponentUpperEdge, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INetCfgComponentUpperEdge { - type Vtable = INetCfgComponentUpperEdge_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INetCfgComponentUpperEdge { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x932238e4_bea1_11d0_9298_00c04fc99dcf); -} #[repr(C)] #[doc(hidden)] pub struct INetCfgComponentUpperEdge_Vtbl { @@ -2220,9 +2076,8 @@ pub struct INetCfgComponentUpperEdge_Vtbl { pub AddInterfacesToAdapter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, padapter: *mut ::core::ffi::c_void, dwnuminterfaces: u32) -> ::windows_core::HRESULT, pub RemoveInterfacesFromAdapter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, padapter: *mut ::core::ffi::c_void, dwnuminterfaces: u32, pguidinterfaceids: *const ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetCfgLock(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INetCfgLock, INetCfgLock_Vtbl, 0xc0e8ae9f_306e_11d1_aacf_00805fc1270e); +::windows_core::imp::interface_hierarchy!(INetCfgLock, ::windows_core::IUnknown); impl INetCfgLock { pub unsafe fn AcquireWriteLock(&self, cmstimeout: u32, pszwclientdescription: P0, ppszwclientdescription: ::core::option::Option<*mut ::windows_core::PWSTR>) -> ::windows_core::Result<()> where @@ -2237,13 +2092,6 @@ impl INetCfgLock { (::windows_core::Interface::vtable(self).IsWriteLocked)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(ppszwclientdescription.unwrap_or(::std::ptr::null_mut()))).ok() } } -::windows_core::imp::interface_hierarchy!(INetCfgLock, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INetCfgLock { - type Vtable = INetCfgLock_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INetCfgLock { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc0e8ae9f_306e_11d1_aacf_00805fc1270e); -} #[repr(C)] #[doc(hidden)] pub struct INetCfgLock_Vtbl { @@ -2252,9 +2100,8 @@ pub struct INetCfgLock_Vtbl { pub ReleaseWriteLock: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub IsWriteLocked: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppszwclientdescription: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetCfgPnpReconfigCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INetCfgPnpReconfigCallback, INetCfgPnpReconfigCallback_Vtbl, 0x8d84bd35_e227_11d2_b700_00a0c98a6a85); +::windows_core::imp::interface_hierarchy!(INetCfgPnpReconfigCallback, ::windows_core::IUnknown); 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 @@ -2264,22 +2111,14 @@ impl INetCfgPnpReconfigCallback { (::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::imp::interface_hierarchy!(INetCfgPnpReconfigCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INetCfgPnpReconfigCallback { - type Vtable = INetCfgPnpReconfigCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INetCfgPnpReconfigCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8d84bd35_e227_11d2_b700_00a0c98a6a85); -} #[repr(C)] #[doc(hidden)] pub struct INetCfgPnpReconfigCallback_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub SendPnpReconfig: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, layer: NCPNP_RECONFIG_LAYER, pszwupper: ::windows_core::PCWSTR, pszwlower: ::windows_core::PCWSTR, pvdata: *const ::core::ffi::c_void, dwsizeofdata: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetCfgSysPrep(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INetCfgSysPrep, INetCfgSysPrep_Vtbl, 0xc0e8ae98_306e_11d1_aacf_00805fc1270e); +::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 @@ -2313,13 +2152,6 @@ impl INetCfgSysPrep { (::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::imp::interface_hierarchy!(INetCfgSysPrep, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INetCfgSysPrep { - type Vtable = INetCfgSysPrep_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INetCfgSysPrep { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc0e8ae98_306e_11d1_aacf_00805fc1270e); -} #[repr(C)] #[doc(hidden)] pub struct INetCfgSysPrep_Vtbl { @@ -2329,52 +2161,35 @@ pub struct INetCfgSysPrep_Vtbl { pub HrSetupSetFirstStringAsBool: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwszsection: ::windows_core::PCWSTR, pwszkey: ::windows_core::PCWSTR, fvalue: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub HrSetupSetFirstMultiSzField: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwszsection: ::windows_core::PCWSTR, pwszkey: ::windows_core::PCWSTR, pmszvalue: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetLanConnectionUiInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INetLanConnectionUiInfo, INetLanConnectionUiInfo_Vtbl, 0xc08956a6_1cd3_11d1_b1c5_00805fc1270e); +::windows_core::imp::interface_hierarchy!(INetLanConnectionUiInfo, ::windows_core::IUnknown); impl INetLanConnectionUiInfo { pub unsafe fn GetDeviceGuid(&self) -> ::windows_core::Result<::windows_core::GUID> { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetDeviceGuid)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(INetLanConnectionUiInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INetLanConnectionUiInfo { - type Vtable = INetLanConnectionUiInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INetLanConnectionUiInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc08956a6_1cd3_11d1_b1c5_00805fc1270e); -} #[repr(C)] #[doc(hidden)] pub struct INetLanConnectionUiInfo_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetDeviceGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pguid: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetRasConnectionIpUiInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INetRasConnectionIpUiInfo, INetRasConnectionIpUiInfo_Vtbl, 0xfaedcf58_31fe_11d1_aad2_00805fc1270e); +::windows_core::imp::interface_hierarchy!(INetRasConnectionIpUiInfo, ::windows_core::IUnknown); impl INetRasConnectionIpUiInfo { pub unsafe fn GetUiInfo(&self, pinfo: *mut RASCON_IPUI) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetUiInfo)(::windows_core::Interface::as_raw(self), pinfo).ok() } } -::windows_core::imp::interface_hierarchy!(INetRasConnectionIpUiInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INetRasConnectionIpUiInfo { - type Vtable = INetRasConnectionIpUiInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INetRasConnectionIpUiInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfaedcf58_31fe_11d1_aad2_00805fc1270e); -} #[repr(C)] #[doc(hidden)] pub struct INetRasConnectionIpUiInfo_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetUiInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinfo: *mut RASCON_IPUI) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProvisioningDomain(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IProvisioningDomain, IProvisioningDomain_Vtbl, 0xc96fbd50_24dd_11d8_89fb_00904b2ea9c6); +::windows_core::imp::interface_hierarchy!(IProvisioningDomain, ::windows_core::IUnknown); impl IProvisioningDomain { pub unsafe fn Add(&self, pszwpathtofolder: P0) -> ::windows_core::Result<()> where @@ -2394,13 +2209,6 @@ impl IProvisioningDomain { (::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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IProvisioningDomain, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProvisioningDomain { - type Vtable = IProvisioningDomain_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProvisioningDomain { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc96fbd50_24dd_11d8_89fb_00904b2ea9c6); -} #[repr(C)] #[doc(hidden)] pub struct IProvisioningDomain_Vtbl { @@ -2411,9 +2219,8 @@ pub struct IProvisioningDomain_Vtbl { #[cfg(not(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_System_Com")))] Query: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProvisioningProfileWireless(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IProvisioningProfileWireless, IProvisioningProfileWireless_Vtbl, 0xc96fbd51_24dd_11d8_89fb_00904b2ea9c6); +::windows_core::imp::interface_hierarchy!(IProvisioningProfileWireless, ::windows_core::IUnknown); impl IProvisioningProfileWireless { pub unsafe fn CreateProfile(&self, bstrxmlwirelessconfigprofile: P0, bstrxmlconnectionconfigprofile: P1, padapterinstanceguid: *const ::windows_core::GUID) -> ::windows_core::Result where @@ -2424,13 +2231,6 @@ impl IProvisioningProfileWireless { (::windows_core::Interface::vtable(self).CreateProfile)(::windows_core::Interface::as_raw(self), bstrxmlwirelessconfigprofile.into_param().abi(), bstrxmlconnectionconfigprofile.into_param().abi(), padapterinstanceguid, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IProvisioningProfileWireless, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProvisioningProfileWireless { - type Vtable = IProvisioningProfileWireless_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProvisioningProfileWireless { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc96fbd51_24dd_11d8_89fb_00904b2ea9c6); -} #[repr(C)] #[doc(hidden)] pub struct IProvisioningProfileWireless_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetworkDiagnosticsFramework/impl.rs b/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetworkDiagnosticsFramework/impl.rs index 5ad2dab509..217e11a818 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetworkDiagnosticsFramework/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetworkDiagnosticsFramework/impl.rs @@ -12,7 +12,7 @@ impl INetDiagExtensibleHelper_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), ResolveAttributes: ResolveAttributes:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait INetDiagHelper_Impl: Sized { @@ -169,7 +169,7 @@ impl INetDiagHelper_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait INetDiagHelperEx_Impl: Sized { @@ -203,7 +203,7 @@ impl INetDiagHelperEx_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait INetDiagHelperInfo_Impl: Sized { @@ -220,7 +220,7 @@ impl INetDiagHelperInfo_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetAttributeInfo: GetAttributeInfo:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait INetDiagHelperUtilFactory_Impl: Sized { @@ -237,6 +237,6 @@ impl INetDiagHelperUtilFactory_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CreateUtilityInstance: CreateUtilityInstance:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 22bf59b6c5..4c252c648a 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetworkDiagnosticsFramework/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetworkDiagnosticsFramework/mod.rs @@ -121,30 +121,21 @@ pub unsafe fn NdfRepairIncident(handle: *const ::core::ffi::c_void, repairex: *c ::windows_targets::link!("ndfapi.dll" "system" fn NdfRepairIncident(handle : *const ::core::ffi::c_void, repairex : *const RepairInfoEx, dwwait : u32) -> ::windows_core::HRESULT); NdfRepairIncident(handle, repairex, dwwait).ok() } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetDiagExtensibleHelper(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INetDiagExtensibleHelper, INetDiagExtensibleHelper_Vtbl, 0xc0b35748_ebf5_11d8_bbe9_505054503030); +::windows_core::imp::interface_hierarchy!(INetDiagExtensibleHelper, ::windows_core::IUnknown); impl INetDiagExtensibleHelper { pub unsafe fn ResolveAttributes(&self, rgkeyattributes: &[HELPER_ATTRIBUTE], pcelt: *mut u32, prgmatchvalues: *mut *mut HELPER_ATTRIBUTE) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).ResolveAttributes)(::windows_core::Interface::as_raw(self), rgkeyattributes.len().try_into().unwrap(), ::core::mem::transmute(rgkeyattributes.as_ptr()), pcelt, prgmatchvalues).ok() } } -::windows_core::imp::interface_hierarchy!(INetDiagExtensibleHelper, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INetDiagExtensibleHelper { - type Vtable = INetDiagExtensibleHelper_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INetDiagExtensibleHelper { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc0b35748_ebf5_11d8_bbe9_505054503030); -} #[repr(C)] #[doc(hidden)] pub struct INetDiagExtensibleHelper_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub ResolveAttributes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, celt: u32, rgkeyattributes: *const HELPER_ATTRIBUTE, pcelt: *mut u32, prgmatchvalues: *mut *mut HELPER_ATTRIBUTE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetDiagHelper(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INetDiagHelper, INetDiagHelper_Vtbl, 0xc0b35746_ebf5_11d8_bbe9_505054503030); +::windows_core::imp::interface_hierarchy!(INetDiagHelper, ::windows_core::IUnknown); impl INetDiagHelper { pub unsafe fn Initialize(&self, rgattributes: &[HELPER_ATTRIBUTE]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Initialize)(::windows_core::Interface::as_raw(self), rgattributes.len().try_into().unwrap(), ::core::mem::transmute(rgattributes.as_ptr())).ok() @@ -210,13 +201,6 @@ impl INetDiagHelper { (::windows_core::Interface::vtable(self).Cleanup)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(INetDiagHelper, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INetDiagHelper { - type Vtable = INetDiagHelper_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INetDiagHelper { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc0b35746_ebf5_11d8_bbe9_505054503030); -} #[repr(C)] #[doc(hidden)] pub struct INetDiagHelper_Vtbl { @@ -240,9 +224,8 @@ pub struct INetDiagHelper_Vtbl { pub Cancel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Cleanup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetDiagHelperEx(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INetDiagHelperEx, INetDiagHelperEx_Vtbl, 0x972dab4d_e4e3_4fc6_ae54_5f65ccde4a15); +::windows_core::imp::interface_hierarchy!(INetDiagHelperEx, ::windows_core::IUnknown); impl INetDiagHelperEx { pub unsafe fn ReconfirmLowHealth(&self, presults: &[HypothesisResult], ppwszupdateddescription: *mut ::windows_core::PWSTR, pupdatedstatus: *mut DIAGNOSIS_STATUS) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).ReconfirmLowHealth)(::windows_core::Interface::as_raw(self), presults.len().try_into().unwrap(), ::core::mem::transmute(presults.as_ptr()), ppwszupdateddescription, pupdatedstatus).ok() @@ -257,13 +240,6 @@ impl INetDiagHelperEx { (::windows_core::Interface::vtable(self).ReproduceFailure)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(INetDiagHelperEx, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INetDiagHelperEx { - type Vtable = INetDiagHelperEx_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INetDiagHelperEx { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x972dab4d_e4e3_4fc6_ae54_5f65ccde4a15); -} #[repr(C)] #[doc(hidden)] pub struct INetDiagHelperEx_Vtbl { @@ -272,46 +248,30 @@ pub struct INetDiagHelperEx_Vtbl { pub SetUtilities: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, putilities: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ReproduceFailure: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetDiagHelperInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INetDiagHelperInfo, INetDiagHelperInfo_Vtbl, 0xc0b35747_ebf5_11d8_bbe9_505054503030); +::windows_core::imp::interface_hierarchy!(INetDiagHelperInfo, ::windows_core::IUnknown); impl INetDiagHelperInfo { pub unsafe fn GetAttributeInfo(&self, pcelt: *mut u32, pprgattributeinfos: *mut *mut HelperAttributeInfo) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetAttributeInfo)(::windows_core::Interface::as_raw(self), pcelt, pprgattributeinfos).ok() } } -::windows_core::imp::interface_hierarchy!(INetDiagHelperInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INetDiagHelperInfo { - type Vtable = INetDiagHelperInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INetDiagHelperInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc0b35747_ebf5_11d8_bbe9_505054503030); -} #[repr(C)] #[doc(hidden)] pub struct INetDiagHelperInfo_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetAttributeInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcelt: *mut u32, pprgattributeinfos: *mut *mut HelperAttributeInfo) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetDiagHelperUtilFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INetDiagHelperUtilFactory, INetDiagHelperUtilFactory_Vtbl, 0x104613fb_bc57_4178_95ba_88809698354a); +::windows_core::imp::interface_hierarchy!(INetDiagHelperUtilFactory, ::windows_core::IUnknown); impl INetDiagHelperUtilFactory { pub unsafe fn CreateUtilityInstance(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).CreateUtilityInstance)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(INetDiagHelperUtilFactory, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INetDiagHelperUtilFactory { - type Vtable = INetDiagHelperUtilFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INetDiagHelperUtilFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x104613fb_bc57_4178_95ba_88809698354a); -} #[repr(C)] #[doc(hidden)] pub struct INetDiagHelperUtilFactory_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetworkPolicyServer/impl.rs b/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetworkPolicyServer/impl.rs index 5a81c9d3d9..1998c0fb52 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetworkPolicyServer/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetworkPolicyServer/impl.rs @@ -79,7 +79,7 @@ impl ISdo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -176,7 +176,7 @@ impl ISdoCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -246,7 +246,7 @@ impl ISdoDictionaryOld_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -374,7 +374,7 @@ impl ISdoMachine_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -432,7 +432,7 @@ impl ISdoMachine2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -483,7 +483,7 @@ impl ISdoServiceControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -521,6 +521,6 @@ impl ITemplateSdo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } 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 5d815d39e7..b8dc4f9c9e 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetworkPolicyServer/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetworkPolicyServer/mod.rs @@ -1,8 +1,12 @@ -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISdo(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISdo, + ISdo_Vtbl, + 0x56bc53de_96db_11d1_bf3f_000000000000 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISdo, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISdo { pub unsafe fn GetPropertyInfo(&self, id: i32) -> ::windows_core::Result<::windows_core::IUnknown> { @@ -35,16 +39,6 @@ impl ISdo { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISdo, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISdo { - type Vtable = ISdo_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISdo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x56bc53de_96db_11d1_bf3f_000000000000); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISdo_Vtbl { @@ -63,11 +57,15 @@ pub struct ISdo_Vtbl { pub Restore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenumvariant: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISdoCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISdoCollection, + ISdoCollection_Vtbl, + 0x56bc53e2_96db_11d1_bf3f_000000000000 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISdoCollection, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISdoCollection { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -115,16 +113,6 @@ impl ISdoCollection { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISdoCollection, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISdoCollection { - type Vtable = ISdoCollection_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISdoCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x56bc53e2_96db_11d1_bf3f_000000000000); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISdoCollection_Vtbl { @@ -147,11 +135,15 @@ pub struct ISdoCollection_Vtbl { Item: usize, pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenumvariant: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISdoDictionaryOld(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISdoDictionaryOld, + ISdoDictionaryOld_Vtbl, + 0xd432e5f4_53d8_11d2_9a3a_00c04fb998ac +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISdoDictionaryOld, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISdoDictionaryOld { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -185,16 +177,6 @@ impl ISdoDictionaryOld { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISdoDictionaryOld, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISdoDictionaryOld { - type Vtable = ISdoDictionaryOld_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISdoDictionaryOld { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd432e5f4_53d8_11d2_9a3a_00c04fb998ac); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISdoDictionaryOld_Vtbl { @@ -217,11 +199,15 @@ pub struct ISdoDictionaryOld_Vtbl { CreateAttribute: usize, pub GetAttributeID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrattributename: ::std::mem::MaybeUninit<::windows_core::BSTR>, pid: *mut ATTRIBUTEID) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISdoMachine(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISdoMachine, + ISdoMachine_Vtbl, + 0x479f6e75_49a2_11d2_8eca_00c04fc2f519 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISdoMachine, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISdoMachine { pub unsafe fn Attach(&self, bstrcomputername: P0) -> ::windows_core::Result<()> @@ -270,16 +256,6 @@ impl ISdoMachine { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISdoMachine, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISdoMachine { - type Vtable = ISdoMachine_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISdoMachine { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x479f6e75_49a2_11d2_8eca_00c04fc2f519); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISdoMachine_Vtbl { @@ -294,11 +270,15 @@ pub struct ISdoMachine_Vtbl { pub GetAttachedComputer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrcomputername: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub GetSDOSchema: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppsdoschema: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISdoMachine2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISdoMachine2, + ISdoMachine2_Vtbl, + 0x518e5ffe_d8ce_4f7e_a5db_b40a35419d3b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISdoMachine2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, ISdoMachine); #[cfg(feature = "Win32_System_Com")] impl ISdoMachine2 { pub unsafe fn Attach(&self, bstrcomputername: P0) -> ::windows_core::Result<()> @@ -374,16 +354,6 @@ impl ISdoMachine2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISdoMachine2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, ISdoMachine); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISdoMachine2 { - type Vtable = ISdoMachine2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISdoMachine2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x518e5ffe_d8ce_4f7e_a5db_b40a35419d3b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISdoMachine2_Vtbl { @@ -394,11 +364,15 @@ pub struct ISdoMachine2_Vtbl { pub ImportRemoteTemplates: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plocaltemplatesroot: *mut ::core::ffi::c_void, bstrremotemachinename: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub Reload: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISdoServiceControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISdoServiceControl, + ISdoServiceControl_Vtbl, + 0x479f6e74_49a2_11d2_8eca_00c04fc2f519 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISdoServiceControl, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISdoServiceControl { pub unsafe fn StartService(&self) -> ::windows_core::Result<()> { @@ -416,16 +390,6 @@ impl ISdoServiceControl { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISdoServiceControl, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISdoServiceControl { - type Vtable = ISdoServiceControl_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISdoServiceControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x479f6e74_49a2_11d2_8eca_00c04fc2f519); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISdoServiceControl_Vtbl { @@ -435,11 +399,15 @@ pub struct ISdoServiceControl_Vtbl { pub GetServiceStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, status: *mut i32) -> ::windows_core::HRESULT, pub ResetService: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITemplateSdo(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITemplateSdo, + ITemplateSdo_Vtbl, + 0x8aa85302_d2e2_4e20_8b1f_a571e437d6c9 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITemplateSdo, ::windows_core::IUnknown, super::super::System::Com::IDispatch, ISdo); #[cfg(feature = "Win32_System_Com")] impl ITemplateSdo { pub unsafe fn GetPropertyInfo(&self, id: i32) -> ::windows_core::Result<::windows_core::IUnknown> { @@ -498,16 +466,6 @@ impl ITemplateSdo { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITemplateSdo, ::windows_core::IUnknown, super::super::System::Com::IDispatch, ISdo); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITemplateSdo { - type Vtable = ITemplateSdo_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITemplateSdo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8aa85302_d2e2_4e20_8b1f_a571e437d6c9); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITemplateSdo_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/NetworkManagement/WiFi/impl.rs b/crates/libs/windows/src/Windows/Win32/NetworkManagement/WiFi/impl.rs index 001618c411..09620988fc 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/WiFi/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/WiFi/impl.rs @@ -95,7 +95,7 @@ impl IDot11AdHocInterface_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDot11AdHocInterfaceNotificationSink_Impl: Sized { @@ -112,7 +112,7 @@ impl IDot11AdHocInterfaceNotificationSink_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnConnectionStatusChange: OnConnectionStatusChange:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDot11AdHocManager_Impl: Sized { @@ -184,7 +184,7 @@ impl IDot11AdHocManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDot11AdHocManagerNotificationSink_Impl: Sized { @@ -225,7 +225,7 @@ impl IDot11AdHocManagerNotificationSink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDot11AdHocNetwork_Impl: Sized { @@ -346,7 +346,7 @@ impl IDot11AdHocNetwork_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDot11AdHocNetworkNotificationSink_Impl: Sized { @@ -373,7 +373,7 @@ impl IDot11AdHocNetworkNotificationSink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDot11AdHocSecuritySettings_Impl: Sized { @@ -400,7 +400,7 @@ impl IDot11AdHocSecuritySettings_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumDot11AdHocInterfaces_Impl: Sized { @@ -447,7 +447,7 @@ impl IEnumDot11AdHocInterfaces_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumDot11AdHocNetworks_Impl: Sized { @@ -494,7 +494,7 @@ impl IEnumDot11AdHocNetworks_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumDot11AdHocSecuritySettings_Impl: Sized { @@ -541,6 +541,6 @@ impl IEnumDot11AdHocSecuritySettings_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 cde91372de..8f9c54c424 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/WiFi/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/WiFi/mod.rs @@ -499,9 +499,8 @@ where ::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()))) } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDot11AdHocInterface(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDot11AdHocInterface, IDot11AdHocInterface_Vtbl, 0x8f10cc2b_cf0d_42a0_acbe_e2de7007384d); +::windows_core::imp::interface_hierarchy!(IDot11AdHocInterface, ::windows_core::IUnknown); impl IDot11AdHocInterface { pub unsafe fn GetDeviceSignature(&self, psignature: *mut ::windows_core::GUID) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetDeviceSignature)(::windows_core::Interface::as_raw(self), psignature).ok() @@ -535,13 +534,6 @@ impl IDot11AdHocInterface { (::windows_core::Interface::vtable(self).GetStatus)(::windows_core::Interface::as_raw(self), pstate).ok() } } -::windows_core::imp::interface_hierarchy!(IDot11AdHocInterface, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDot11AdHocInterface { - type Vtable = IDot11AdHocInterface_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDot11AdHocInterface { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8f10cc2b_cf0d_42a0_acbe_e2de7007384d); -} #[repr(C)] #[doc(hidden)] pub struct IDot11AdHocInterface_Vtbl { @@ -556,30 +548,21 @@ pub struct IDot11AdHocInterface_Vtbl { pub GetIEnumDot11AdHocNetworks: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfilterguid: *const ::windows_core::GUID, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstate: *mut DOT11_ADHOC_NETWORK_CONNECTION_STATUS) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDot11AdHocInterfaceNotificationSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDot11AdHocInterfaceNotificationSink, IDot11AdHocInterfaceNotificationSink_Vtbl, 0x8f10cc2f_cf0d_42a0_acbe_e2de7007384d); +::windows_core::imp::interface_hierarchy!(IDot11AdHocInterfaceNotificationSink, ::windows_core::IUnknown); impl IDot11AdHocInterfaceNotificationSink { pub unsafe fn OnConnectionStatusChange(&self, estatus: DOT11_ADHOC_NETWORK_CONNECTION_STATUS) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnConnectionStatusChange)(::windows_core::Interface::as_raw(self), estatus).ok() } } -::windows_core::imp::interface_hierarchy!(IDot11AdHocInterfaceNotificationSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDot11AdHocInterfaceNotificationSink { - type Vtable = IDot11AdHocInterfaceNotificationSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDot11AdHocInterfaceNotificationSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8f10cc2f_cf0d_42a0_acbe_e2de7007384d); -} #[repr(C)] #[doc(hidden)] pub struct IDot11AdHocInterfaceNotificationSink_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnConnectionStatusChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, estatus: DOT11_ADHOC_NETWORK_CONNECTION_STATUS) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDot11AdHocManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDot11AdHocManager, IDot11AdHocManager_Vtbl, 0x8f10cc26_cf0d_42a0_acbe_e2de7007384d); +::windows_core::imp::interface_hierarchy!(IDot11AdHocManager, ::windows_core::IUnknown); 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 @@ -612,13 +595,6 @@ impl IDot11AdHocManager { (::windows_core::Interface::vtable(self).GetNetwork)(::windows_core::Interface::as_raw(self), networksignature, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDot11AdHocManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDot11AdHocManager { - type Vtable = IDot11AdHocManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDot11AdHocManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8f10cc26_cf0d_42a0_acbe_e2de7007384d); -} #[repr(C)] #[doc(hidden)] pub struct IDot11AdHocManager_Vtbl { @@ -629,9 +605,8 @@ pub struct IDot11AdHocManager_Vtbl { pub GetIEnumDot11AdHocInterfaces: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetNetwork: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, networksignature: *const ::windows_core::GUID, pnetwork: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDot11AdHocManagerNotificationSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDot11AdHocManagerNotificationSink, IDot11AdHocManagerNotificationSink_Vtbl, 0x8f10cc27_cf0d_42a0_acbe_e2de7007384d); +::windows_core::imp::interface_hierarchy!(IDot11AdHocManagerNotificationSink, ::windows_core::IUnknown); impl IDot11AdHocManagerNotificationSink { pub unsafe fn OnNetworkAdd(&self, piadhocnetwork: P0) -> ::windows_core::Result<()> where @@ -652,13 +627,6 @@ impl IDot11AdHocManagerNotificationSink { (::windows_core::Interface::vtable(self).OnInterfaceRemove)(::windows_core::Interface::as_raw(self), signature).ok() } } -::windows_core::imp::interface_hierarchy!(IDot11AdHocManagerNotificationSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDot11AdHocManagerNotificationSink { - type Vtable = IDot11AdHocManagerNotificationSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDot11AdHocManagerNotificationSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8f10cc27_cf0d_42a0_acbe_e2de7007384d); -} #[repr(C)] #[doc(hidden)] pub struct IDot11AdHocManagerNotificationSink_Vtbl { @@ -668,9 +636,8 @@ pub struct IDot11AdHocManagerNotificationSink_Vtbl { pub OnInterfaceAdd: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, piadhocinterface: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub OnInterfaceRemove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, signature: *const ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDot11AdHocNetwork(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDot11AdHocNetwork, IDot11AdHocNetwork_Vtbl, 0x8f10cc29_cf0d_42a0_acbe_e2de7007384d); +::windows_core::imp::interface_hierarchy!(IDot11AdHocNetwork, ::windows_core::IUnknown); impl IDot11AdHocNetwork { pub unsafe fn GetStatus(&self, estatus: *mut DOT11_ADHOC_NETWORK_CONNECTION_STATUS) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetStatus)(::windows_core::Interface::as_raw(self), estatus).ok() @@ -718,13 +685,6 @@ impl IDot11AdHocNetwork { (::windows_core::Interface::vtable(self).Disconnect)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IDot11AdHocNetwork, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDot11AdHocNetwork { - type Vtable = IDot11AdHocNetwork_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDot11AdHocNetwork { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8f10cc29_cf0d_42a0_acbe_e2de7007384d); -} #[repr(C)] #[doc(hidden)] pub struct IDot11AdHocNetwork_Vtbl { @@ -742,9 +702,8 @@ pub struct IDot11AdHocNetwork_Vtbl { pub Connect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, passphrase: ::windows_core::PCWSTR, geographicalid: i32, fsaveprofile: super::super::Foundation::BOOLEAN, fmakesavedprofileuserspecific: super::super::Foundation::BOOLEAN) -> ::windows_core::HRESULT, pub Disconnect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDot11AdHocNetworkNotificationSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDot11AdHocNetworkNotificationSink, IDot11AdHocNetworkNotificationSink_Vtbl, 0x8f10cc2a_cf0d_42a0_acbe_e2de7007384d); +::windows_core::imp::interface_hierarchy!(IDot11AdHocNetworkNotificationSink, ::windows_core::IUnknown); impl IDot11AdHocNetworkNotificationSink { pub unsafe fn OnStatusChange(&self, estatus: DOT11_ADHOC_NETWORK_CONNECTION_STATUS) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnStatusChange)(::windows_core::Interface::as_raw(self), estatus).ok() @@ -753,13 +712,6 @@ impl IDot11AdHocNetworkNotificationSink { (::windows_core::Interface::vtable(self).OnConnectFail)(::windows_core::Interface::as_raw(self), efailreason).ok() } } -::windows_core::imp::interface_hierarchy!(IDot11AdHocNetworkNotificationSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDot11AdHocNetworkNotificationSink { - type Vtable = IDot11AdHocNetworkNotificationSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDot11AdHocNetworkNotificationSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8f10cc2a_cf0d_42a0_acbe_e2de7007384d); -} #[repr(C)] #[doc(hidden)] pub struct IDot11AdHocNetworkNotificationSink_Vtbl { @@ -767,9 +719,8 @@ pub struct IDot11AdHocNetworkNotificationSink_Vtbl { pub OnStatusChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, estatus: DOT11_ADHOC_NETWORK_CONNECTION_STATUS) -> ::windows_core::HRESULT, pub OnConnectFail: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, efailreason: DOT11_ADHOC_CONNECT_FAIL_REASON) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDot11AdHocSecuritySettings(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDot11AdHocSecuritySettings, IDot11AdHocSecuritySettings_Vtbl, 0x8f10cc2e_cf0d_42a0_acbe_e2de7007384d); +::windows_core::imp::interface_hierarchy!(IDot11AdHocSecuritySettings, ::windows_core::IUnknown); impl IDot11AdHocSecuritySettings { pub unsafe fn GetDot11AuthAlgorithm(&self, pauth: *mut DOT11_ADHOC_AUTH_ALGORITHM) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetDot11AuthAlgorithm)(::windows_core::Interface::as_raw(self), pauth).ok() @@ -778,13 +729,6 @@ impl IDot11AdHocSecuritySettings { (::windows_core::Interface::vtable(self).GetDot11CipherAlgorithm)(::windows_core::Interface::as_raw(self), pcipher).ok() } } -::windows_core::imp::interface_hierarchy!(IDot11AdHocSecuritySettings, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDot11AdHocSecuritySettings { - type Vtable = IDot11AdHocSecuritySettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDot11AdHocSecuritySettings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8f10cc2e_cf0d_42a0_acbe_e2de7007384d); -} #[repr(C)] #[doc(hidden)] pub struct IDot11AdHocSecuritySettings_Vtbl { @@ -792,9 +736,8 @@ pub struct IDot11AdHocSecuritySettings_Vtbl { pub GetDot11AuthAlgorithm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pauth: *mut DOT11_ADHOC_AUTH_ALGORITHM) -> ::windows_core::HRESULT, pub GetDot11CipherAlgorithm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcipher: *mut DOT11_ADHOC_CIPHER_ALGORITHM) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumDot11AdHocInterfaces(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumDot11AdHocInterfaces, IEnumDot11AdHocInterfaces_Vtbl, 0x8f10cc2c_cf0d_42a0_acbe_e2de7007384d); +::windows_core::imp::interface_hierarchy!(IEnumDot11AdHocInterfaces, ::windows_core::IUnknown); impl IEnumDot11AdHocInterfaces { pub unsafe fn Next(&self, rgelt: &mut [::core::option::Option], pceltfetched: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), ::core::mem::transmute(rgelt.as_ptr()), pceltfetched).ok() @@ -810,13 +753,6 @@ impl IEnumDot11AdHocInterfaces { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumDot11AdHocInterfaces, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumDot11AdHocInterfaces { - type Vtable = IEnumDot11AdHocInterfaces_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumDot11AdHocInterfaces { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8f10cc2c_cf0d_42a0_acbe_e2de7007384d); -} #[repr(C)] #[doc(hidden)] pub struct IEnumDot11AdHocInterfaces_Vtbl { @@ -826,9 +762,8 @@ pub struct IEnumDot11AdHocInterfaces_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumDot11AdHocNetworks(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumDot11AdHocNetworks, IEnumDot11AdHocNetworks_Vtbl, 0x8f10cc28_cf0d_42a0_acbe_e2de7007384d); +::windows_core::imp::interface_hierarchy!(IEnumDot11AdHocNetworks, ::windows_core::IUnknown); impl IEnumDot11AdHocNetworks { pub unsafe fn Next(&self, rgelt: &mut [::core::option::Option], pceltfetched: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), ::core::mem::transmute(rgelt.as_ptr()), pceltfetched).ok() @@ -844,13 +779,6 @@ impl IEnumDot11AdHocNetworks { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumDot11AdHocNetworks, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumDot11AdHocNetworks { - type Vtable = IEnumDot11AdHocNetworks_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumDot11AdHocNetworks { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8f10cc28_cf0d_42a0_acbe_e2de7007384d); -} #[repr(C)] #[doc(hidden)] pub struct IEnumDot11AdHocNetworks_Vtbl { @@ -860,9 +788,8 @@ pub struct IEnumDot11AdHocNetworks_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumDot11AdHocSecuritySettings(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumDot11AdHocSecuritySettings, IEnumDot11AdHocSecuritySettings_Vtbl, 0x8f10cc2d_cf0d_42a0_acbe_e2de7007384d); +::windows_core::imp::interface_hierarchy!(IEnumDot11AdHocSecuritySettings, ::windows_core::IUnknown); impl IEnumDot11AdHocSecuritySettings { pub unsafe fn Next(&self, rgelt: &mut [::core::option::Option], pceltfetched: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), ::core::mem::transmute(rgelt.as_ptr()), pceltfetched).ok() @@ -878,13 +805,6 @@ impl IEnumDot11AdHocSecuritySettings { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumDot11AdHocSecuritySettings, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumDot11AdHocSecuritySettings { - type Vtable = IEnumDot11AdHocSecuritySettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumDot11AdHocSecuritySettings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8f10cc2d_cf0d_42a0_acbe_e2de7007384d); -} #[repr(C)] #[doc(hidden)] pub struct IEnumDot11AdHocSecuritySettings_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsConnectNow/impl.rs b/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsConnectNow/impl.rs index af00c23398..730e735b89 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsConnectNow/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsConnectNow/impl.rs @@ -22,7 +22,7 @@ impl IWCNConnectNotify_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWCNDevice_Impl: Sized { @@ -118,6 +118,6 @@ impl IWCNDevice_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 a557c31ba8..eea7ae83a8 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsConnectNow/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsConnectNow/mod.rs @@ -1,6 +1,5 @@ -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWCNConnectNotify(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWCNConnectNotify, IWCNConnectNotify_Vtbl, 0xc100be9f_d33a_4a4b_bf23_bbef4663d017); +::windows_core::imp::interface_hierarchy!(IWCNConnectNotify, ::windows_core::IUnknown); impl IWCNConnectNotify { pub unsafe fn ConnectSucceeded(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).ConnectSucceeded)(::windows_core::Interface::as_raw(self)).ok() @@ -9,13 +8,6 @@ impl IWCNConnectNotify { (::windows_core::Interface::vtable(self).ConnectFailed)(::windows_core::Interface::as_raw(self), hrfailure).ok() } } -::windows_core::imp::interface_hierarchy!(IWCNConnectNotify, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWCNConnectNotify { - type Vtable = IWCNConnectNotify_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWCNConnectNotify { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc100be9f_d33a_4a4b_bf23_bbef4663d017); -} #[repr(C)] #[doc(hidden)] pub struct IWCNConnectNotify_Vtbl { @@ -23,9 +15,8 @@ pub struct IWCNConnectNotify_Vtbl { pub ConnectSucceeded: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ConnectFailed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hrfailure: ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWCNDevice(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWCNDevice, IWCNDevice_Vtbl, 0xc100be9c_d33a_4a4b_bf23_bbef4663d017); +::windows_core::imp::interface_hierarchy!(IWCNDevice, ::windows_core::IUnknown); impl IWCNDevice { pub unsafe fn SetPassword(&self, r#type: WCN_PASSWORD_TYPE, pbpassword: &[u8]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetPassword)(::windows_core::Interface::as_raw(self), r#type, pbpassword.len().try_into().unwrap(), ::core::mem::transmute(pbpassword.as_ptr())).ok() @@ -79,13 +70,6 @@ impl IWCNDevice { .ok() } } -::windows_core::imp::interface_hierarchy!(IWCNDevice, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWCNDevice { - type Vtable = IWCNDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWCNDevice { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc100be9c_d33a_4a4b_bf23_bbef4663d017); -} #[repr(C)] #[doc(hidden)] pub struct IWCNDevice_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsFirewall/impl.rs b/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsFirewall/impl.rs index 7675eb0686..8c0344852a 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsFirewall/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsFirewall/impl.rs @@ -170,7 +170,7 @@ impl IDynamicPortMapping_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -246,7 +246,7 @@ impl IDynamicPortMappingCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IEnumNetConnection_Impl: Sized { @@ -293,7 +293,7 @@ impl IEnumNetConnection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -344,7 +344,7 @@ impl IEnumNetSharingEveryConnection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -395,7 +395,7 @@ impl IEnumNetSharingPortMapping_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -446,7 +446,7 @@ impl IEnumNetSharingPrivateConnection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -497,7 +497,7 @@ impl IEnumNetSharingPublicConnection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -528,7 +528,7 @@ impl INATEventManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait INATExternalIPAddressCallback_Impl: Sized { @@ -545,7 +545,7 @@ impl INATExternalIPAddressCallback_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), NewExternalIPAddress: NewExternalIPAddress:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait INATNumberOfEntriesCallback_Impl: Sized { @@ -562,7 +562,7 @@ impl INATNumberOfEntriesCallback_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), NewNumberOfEntries: NewNumberOfEntries:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait INetConnection_Impl: Sized { @@ -642,7 +642,7 @@ impl INetConnection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait INetConnectionConnectUi_Impl: Sized { @@ -676,7 +676,7 @@ impl INetConnectionConnectUi_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait INetConnectionManager_Impl: Sized { @@ -699,7 +699,7 @@ impl INetConnectionManager_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), EnumConnections: EnumConnections:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -794,7 +794,7 @@ impl INetConnectionProps_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -931,7 +931,7 @@ impl INetFwAuthorizedApplication_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1001,7 +1001,7 @@ impl INetFwAuthorizedApplications_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1218,7 +1218,7 @@ impl INetFwIcmpSettings_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1282,7 +1282,7 @@ impl INetFwMgr_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1452,7 +1452,7 @@ impl INetFwOpenPort_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1522,7 +1522,7 @@ impl INetFwOpenPorts_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1565,7 +1565,7 @@ impl INetFwPolicy_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1814,7 +1814,7 @@ impl INetFwPolicy2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1884,7 +1884,7 @@ impl INetFwProduct_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1953,7 +1953,7 @@ impl INetFwProducts_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2128,7 +2128,7 @@ impl INetFwProfile_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2225,7 +2225,7 @@ impl INetFwRemoteAdminSettings_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2602,7 +2602,7 @@ impl INetFwRule_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2639,7 +2639,7 @@ impl INetFwRule2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2776,7 +2776,7 @@ impl INetFwRule3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2846,7 +2846,7 @@ impl INetFwRules_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2995,7 +2995,7 @@ impl INetFwService_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3045,7 +3045,7 @@ impl INetFwServiceRestriction_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3101,7 +3101,7 @@ impl INetFwServices_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3218,7 +3218,7 @@ impl INetSharingConfiguration_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3261,7 +3261,7 @@ impl INetSharingEveryConnectionCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3356,7 +3356,7 @@ impl INetSharingManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3407,7 +3407,7 @@ impl INetSharingPortMapping_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3450,7 +3450,7 @@ impl INetSharingPortMappingCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3571,7 +3571,7 @@ impl INetSharingPortMappingProps_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3614,7 +3614,7 @@ impl INetSharingPrivateConnectionCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3657,7 +3657,7 @@ impl INetSharingPublicConnectionCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3793,7 +3793,7 @@ impl IStaticPortMapping_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3869,7 +3869,7 @@ impl IStaticPortMappingCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3925,6 +3925,6 @@ impl IUPnPNAT_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } 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 e706d68965..01a82036b8 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsFirewall/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsFirewall/mod.rs @@ -99,11 +99,15 @@ where ::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()) } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDynamicPortMapping(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IDynamicPortMapping, + IDynamicPortMapping_Vtbl, + 0x4fc80282_23b6_4378_9a27_cd8f17c9400c +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IDynamicPortMapping, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IDynamicPortMapping { pub unsafe fn ExternalIPAddress(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -169,16 +173,6 @@ impl IDynamicPortMapping { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IDynamicPortMapping, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IDynamicPortMapping { - type Vtable = IDynamicPortMapping_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IDynamicPortMapping { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4fc80282_23b6_4378_9a27_cd8f17c9400c); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IDynamicPortMapping_Vtbl { @@ -198,11 +192,15 @@ pub struct IDynamicPortMapping_Vtbl { pub EditDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdescription: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub EditInternalPort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, linternalport: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDynamicPortMappingCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IDynamicPortMappingCollection, + IDynamicPortMappingCollection_Vtbl, + 0xb60de00f_156e_4e8d_9ec1_3a2342c10899 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IDynamicPortMappingCollection, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IDynamicPortMappingCollection { pub unsafe fn _NewEnum(&self) -> ::windows_core::Result<::windows_core::IUnknown> { @@ -245,16 +243,6 @@ impl IDynamicPortMappingCollection { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IDynamicPortMappingCollection, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IDynamicPortMappingCollection { - type Vtable = IDynamicPortMappingCollection_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IDynamicPortMappingCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb60de00f_156e_4e8d_9ec1_3a2342c10899); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IDynamicPortMappingCollection_Vtbl { @@ -271,9 +259,8 @@ pub struct IDynamicPortMappingCollection_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Add: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumNetConnection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumNetConnection, IEnumNetConnection_Vtbl, 0xc08956a0_1cd3_11d1_b1c5_00805fc1270e); +::windows_core::imp::interface_hierarchy!(IEnumNetConnection, ::windows_core::IUnknown); impl IEnumNetConnection { pub unsafe fn Next(&self, rgelt: &mut [::core::option::Option], pceltfetched: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), ::core::mem::transmute(rgelt.as_ptr()), pceltfetched).ok() @@ -289,13 +276,6 @@ impl IEnumNetConnection { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumNetConnection, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumNetConnection { - type Vtable = IEnumNetConnection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumNetConnection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc08956a0_1cd3_11d1_b1c5_00805fc1270e); -} #[repr(C)] #[doc(hidden)] pub struct IEnumNetConnection_Vtbl { @@ -305,9 +285,8 @@ pub struct IEnumNetConnection_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumNetSharingEveryConnection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumNetSharingEveryConnection, IEnumNetSharingEveryConnection_Vtbl, 0xc08956b8_1cd3_11d1_b1c5_00805fc1270e); +::windows_core::imp::interface_hierarchy!(IEnumNetSharingEveryConnection, ::windows_core::IUnknown); impl IEnumNetSharingEveryConnection { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -325,13 +304,6 @@ impl IEnumNetSharingEveryConnection { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumNetSharingEveryConnection, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumNetSharingEveryConnection { - type Vtable = IEnumNetSharingEveryConnection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumNetSharingEveryConnection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc08956b8_1cd3_11d1_b1c5_00805fc1270e); -} #[repr(C)] #[doc(hidden)] pub struct IEnumNetSharingEveryConnection_Vtbl { @@ -344,9 +316,8 @@ pub struct IEnumNetSharingEveryConnection_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumNetSharingPortMapping(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumNetSharingPortMapping, IEnumNetSharingPortMapping_Vtbl, 0xc08956b0_1cd3_11d1_b1c5_00805fc1270e); +::windows_core::imp::interface_hierarchy!(IEnumNetSharingPortMapping, ::windows_core::IUnknown); impl IEnumNetSharingPortMapping { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -364,13 +335,6 @@ impl IEnumNetSharingPortMapping { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumNetSharingPortMapping, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumNetSharingPortMapping { - type Vtable = IEnumNetSharingPortMapping_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumNetSharingPortMapping { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc08956b0_1cd3_11d1_b1c5_00805fc1270e); -} #[repr(C)] #[doc(hidden)] pub struct IEnumNetSharingPortMapping_Vtbl { @@ -383,9 +347,8 @@ pub struct IEnumNetSharingPortMapping_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumNetSharingPrivateConnection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumNetSharingPrivateConnection, IEnumNetSharingPrivateConnection_Vtbl, 0xc08956b5_1cd3_11d1_b1c5_00805fc1270e); +::windows_core::imp::interface_hierarchy!(IEnumNetSharingPrivateConnection, ::windows_core::IUnknown); impl IEnumNetSharingPrivateConnection { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -403,13 +366,6 @@ impl IEnumNetSharingPrivateConnection { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumNetSharingPrivateConnection, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumNetSharingPrivateConnection { - type Vtable = IEnumNetSharingPrivateConnection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumNetSharingPrivateConnection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc08956b5_1cd3_11d1_b1c5_00805fc1270e); -} #[repr(C)] #[doc(hidden)] pub struct IEnumNetSharingPrivateConnection_Vtbl { @@ -422,9 +378,8 @@ pub struct IEnumNetSharingPrivateConnection_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumNetSharingPublicConnection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumNetSharingPublicConnection, IEnumNetSharingPublicConnection_Vtbl, 0xc08956b4_1cd3_11d1_b1c5_00805fc1270e); +::windows_core::imp::interface_hierarchy!(IEnumNetSharingPublicConnection, ::windows_core::IUnknown); impl IEnumNetSharingPublicConnection { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -442,13 +397,6 @@ impl IEnumNetSharingPublicConnection { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumNetSharingPublicConnection, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumNetSharingPublicConnection { - type Vtable = IEnumNetSharingPublicConnection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumNetSharingPublicConnection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc08956b4_1cd3_11d1_b1c5_00805fc1270e); -} #[repr(C)] #[doc(hidden)] pub struct IEnumNetSharingPublicConnection_Vtbl { @@ -461,11 +409,15 @@ pub struct IEnumNetSharingPublicConnection_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INATEventManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + INATEventManager, + INATEventManager_Vtbl, + 0x624bd588_9060_4109_b0b0_1adbbcac32df +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(INATEventManager, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl INATEventManager { pub unsafe fn SetExternalIPAddressCallback(&self, punk: P0) -> ::windows_core::Result<()> @@ -482,16 +434,6 @@ impl INATEventManager { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(INATEventManager, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for INATEventManager { - type Vtable = INATEventManager_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for INATEventManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x624bd588_9060_4109_b0b0_1adbbcac32df); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct INATEventManager_Vtbl { @@ -499,9 +441,8 @@ pub struct INATEventManager_Vtbl { pub SetExternalIPAddressCallback: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punk: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetNumberOfEntriesCallback: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punk: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INATExternalIPAddressCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INATExternalIPAddressCallback, INATExternalIPAddressCallback_Vtbl, 0x9c416740_a34e_446f_ba06_abd04c3149ae); +::windows_core::imp::interface_hierarchy!(INATExternalIPAddressCallback, ::windows_core::IUnknown); impl INATExternalIPAddressCallback { pub unsafe fn NewExternalIPAddress(&self, bstrnewexternalipaddress: P0) -> ::windows_core::Result<()> where @@ -510,43 +451,27 @@ impl INATExternalIPAddressCallback { (::windows_core::Interface::vtable(self).NewExternalIPAddress)(::windows_core::Interface::as_raw(self), bstrnewexternalipaddress.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(INATExternalIPAddressCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INATExternalIPAddressCallback { - type Vtable = INATExternalIPAddressCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INATExternalIPAddressCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9c416740_a34e_446f_ba06_abd04c3149ae); -} #[repr(C)] #[doc(hidden)] pub struct INATExternalIPAddressCallback_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub NewExternalIPAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrnewexternalipaddress: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INATNumberOfEntriesCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INATNumberOfEntriesCallback, INATNumberOfEntriesCallback_Vtbl, 0xc83a0a74_91ee_41b6_b67a_67e0f00bbd78); +::windows_core::imp::interface_hierarchy!(INATNumberOfEntriesCallback, ::windows_core::IUnknown); impl INATNumberOfEntriesCallback { pub unsafe fn NewNumberOfEntries(&self, lnewnumberofentries: i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).NewNumberOfEntries)(::windows_core::Interface::as_raw(self), lnewnumberofentries).ok() } } -::windows_core::imp::interface_hierarchy!(INATNumberOfEntriesCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INATNumberOfEntriesCallback { - type Vtable = INATNumberOfEntriesCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INATNumberOfEntriesCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc83a0a74_91ee_41b6_b67a_67e0f00bbd78); -} #[repr(C)] #[doc(hidden)] pub struct INATNumberOfEntriesCallback_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub NewNumberOfEntries: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lnewnumberofentries: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetConnection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INetConnection, INetConnection_Vtbl, 0xc08956a1_1cd3_11d1_b1c5_00805fc1270e); +::windows_core::imp::interface_hierarchy!(INetConnection, ::windows_core::IUnknown); impl INetConnection { pub unsafe fn Connect(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Connect)(::windows_core::Interface::as_raw(self)).ok() @@ -579,13 +504,6 @@ impl INetConnection { (::windows_core::Interface::vtable(self).Rename)(::windows_core::Interface::as_raw(self), pszwnewname.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(INetConnection, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INetConnection { - type Vtable = INetConnection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INetConnection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc08956a1_1cd3_11d1_b1c5_00805fc1270e); -} #[repr(C)] #[doc(hidden)] pub struct INetConnection_Vtbl { @@ -598,9 +516,8 @@ pub struct INetConnection_Vtbl { pub GetUiObjectClassId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pclsid: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, pub Rename: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszwnewname: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetConnectionConnectUi(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INetConnectionConnectUi, INetConnectionConnectUi_Vtbl, 0xc08956a3_1cd3_11d1_b1c5_00805fc1270e); +::windows_core::imp::interface_hierarchy!(INetConnectionConnectUi, ::windows_core::IUnknown); impl INetConnectionConnectUi { pub unsafe fn SetConnection(&self, pcon: P0) -> ::windows_core::Result<()> where @@ -621,13 +538,6 @@ impl INetConnectionConnectUi { (::windows_core::Interface::vtable(self).Disconnect)(::windows_core::Interface::as_raw(self), hwndparent.into_param().abi(), dwflags).ok() } } -::windows_core::imp::interface_hierarchy!(INetConnectionConnectUi, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INetConnectionConnectUi { - type Vtable = INetConnectionConnectUi_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INetConnectionConnectUi { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc08956a3_1cd3_11d1_b1c5_00805fc1270e); -} #[repr(C)] #[doc(hidden)] pub struct INetConnectionConnectUi_Vtbl { @@ -636,33 +546,29 @@ pub struct INetConnectionConnectUi_Vtbl { pub Connect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwndparent: super::super::Foundation::HWND, dwflags: u32) -> ::windows_core::HRESULT, pub Disconnect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwndparent: super::super::Foundation::HWND, dwflags: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetConnectionManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INetConnectionManager, INetConnectionManager_Vtbl, 0xc08956a2_1cd3_11d1_b1c5_00805fc1270e); +::windows_core::imp::interface_hierarchy!(INetConnectionManager, ::windows_core::IUnknown); impl INetConnectionManager { pub unsafe fn EnumConnections(&self, flags: NETCONMGR_ENUM_FLAGS) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).EnumConnections)(::windows_core::Interface::as_raw(self), flags, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(INetConnectionManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INetConnectionManager { - type Vtable = INetConnectionManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INetConnectionManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc08956a2_1cd3_11d1_b1c5_00805fc1270e); -} #[repr(C)] #[doc(hidden)] pub struct INetConnectionManager_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub EnumConnections: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: NETCONMGR_ENUM_FLAGS, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetConnectionProps(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + INetConnectionProps, + INetConnectionProps_Vtbl, + 0xf4277c95_ce5b_463d_8167_5662d9bcaa72 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(INetConnectionProps, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl INetConnectionProps { pub unsafe fn Guid(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -691,16 +597,6 @@ impl INetConnectionProps { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(INetConnectionProps, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for INetConnectionProps { - type Vtable = INetConnectionProps_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for INetConnectionProps { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf4277c95_ce5b_463d_8167_5662d9bcaa72); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct INetConnectionProps_Vtbl { @@ -712,11 +608,15 @@ pub struct INetConnectionProps_Vtbl { pub MediaType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pmediatype: *mut NETCON_MEDIATYPE) -> ::windows_core::HRESULT, pub Characteristics: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwflags: *mut u32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetFwAuthorizedApplication(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + INetFwAuthorizedApplication, + INetFwAuthorizedApplication_Vtbl, + 0xb5e64ffa_c2c5_444e_a301_fb5e00018050 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(INetFwAuthorizedApplication, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl INetFwAuthorizedApplication { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -775,16 +675,6 @@ impl INetFwAuthorizedApplication { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(INetFwAuthorizedApplication, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for INetFwAuthorizedApplication { - type Vtable = INetFwAuthorizedApplication_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for INetFwAuthorizedApplication { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb5e64ffa_c2c5_444e_a301_fb5e00018050); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct INetFwAuthorizedApplication_Vtbl { @@ -802,11 +692,15 @@ pub struct INetFwAuthorizedApplication_Vtbl { pub Enabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enabled: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub SetEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enabled: super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetFwAuthorizedApplications(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + INetFwAuthorizedApplications, + INetFwAuthorizedApplications_Vtbl, + 0x644efd52_ccf9_486c_97a2_39f352570b30 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(INetFwAuthorizedApplications, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl INetFwAuthorizedApplications { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -842,16 +736,6 @@ impl INetFwAuthorizedApplications { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(INetFwAuthorizedApplications, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for INetFwAuthorizedApplications { - type Vtable = INetFwAuthorizedApplications_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for INetFwAuthorizedApplications { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x644efd52_ccf9_486c_97a2_39f352570b30); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct INetFwAuthorizedApplications_Vtbl { @@ -868,11 +752,15 @@ pub struct INetFwAuthorizedApplications_Vtbl { Item: usize, pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetFwIcmpSettings(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + INetFwIcmpSettings, + INetFwIcmpSettings_Vtbl, + 0xa6207b2e_7cdd_426a_951e_5e1cbc5afead +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(INetFwIcmpSettings, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl INetFwIcmpSettings { pub unsafe fn AllowOutboundDestinationUnreachable(&self) -> ::windows_core::Result { @@ -977,16 +865,6 @@ impl INetFwIcmpSettings { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(INetFwIcmpSettings, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for INetFwIcmpSettings { - type Vtable = INetFwIcmpSettings_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for INetFwIcmpSettings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa6207b2e_7cdd_426a_951e_5e1cbc5afead); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct INetFwIcmpSettings_Vtbl { @@ -1012,11 +890,15 @@ pub struct INetFwIcmpSettings_Vtbl { pub AllowOutboundPacketTooBig: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, allow: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub SetAllowOutboundPacketTooBig: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, allow: super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetFwMgr(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + INetFwMgr, + INetFwMgr_Vtbl, + 0xf7898af5_cac4_4632_a2ec_da06e5111af2 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(INetFwMgr, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl INetFwMgr { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1051,16 +933,6 @@ impl INetFwMgr { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(INetFwMgr, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for INetFwMgr { - type Vtable = INetFwMgr_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for INetFwMgr { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf7898af5_cac4_4632_a2ec_da06e5111af2); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct INetFwMgr_Vtbl { @@ -1080,11 +952,15 @@ pub struct INetFwMgr_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] IsIcmpTypeAllowed: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetFwOpenPort(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + INetFwOpenPort, + INetFwOpenPort_Vtbl, + 0xe0483ba0_47ff_4d9c_a6d6_7741d0b195f7 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(INetFwOpenPort, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl INetFwOpenPort { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -1151,16 +1027,6 @@ impl INetFwOpenPort { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(INetFwOpenPort, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for INetFwOpenPort { - type Vtable = INetFwOpenPort_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for INetFwOpenPort { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe0483ba0_47ff_4d9c_a6d6_7741d0b195f7); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct INetFwOpenPort_Vtbl { @@ -1181,11 +1047,15 @@ pub struct INetFwOpenPort_Vtbl { pub SetEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enabled: super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub BuiltIn: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, builtin: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetFwOpenPorts(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + INetFwOpenPorts, + INetFwOpenPorts_Vtbl, + 0xc0e9d7fa_e07e_430a_b19a_090ce82d92e2 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(INetFwOpenPorts, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl INetFwOpenPorts { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -1215,16 +1085,6 @@ impl INetFwOpenPorts { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(INetFwOpenPorts, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for INetFwOpenPorts { - type Vtable = INetFwOpenPorts_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for INetFwOpenPorts { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc0e9d7fa_e07e_430a_b19a_090ce82d92e2); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct INetFwOpenPorts_Vtbl { @@ -1241,11 +1101,15 @@ pub struct INetFwOpenPorts_Vtbl { Item: usize, pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetFwPolicy(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + INetFwPolicy, + INetFwPolicy_Vtbl, + 0xd46d2478_9ac9_4008_9dc7_5563ce5536cc +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(INetFwPolicy, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl INetFwPolicy { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1262,16 +1126,6 @@ impl INetFwPolicy { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(INetFwPolicy, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for INetFwPolicy { - type Vtable = INetFwPolicy_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for INetFwPolicy { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd46d2478_9ac9_4008_9dc7_5563ce5536cc); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct INetFwPolicy_Vtbl { @@ -1285,11 +1139,15 @@ pub struct INetFwPolicy_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetProfileByType: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetFwPolicy2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + INetFwPolicy2, + INetFwPolicy2_Vtbl, + 0x98325047_c671_4174_8d81_defcd3f03186 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(INetFwPolicy2, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl INetFwPolicy2 { pub unsafe fn CurrentProfileTypes(&self) -> ::windows_core::Result { @@ -1403,16 +1261,6 @@ impl INetFwPolicy2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(INetFwPolicy2, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for INetFwPolicy2 { - type Vtable = INetFwPolicy2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for INetFwPolicy2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x98325047_c671_4174_8d81_defcd3f03186); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct INetFwPolicy2_Vtbl { @@ -1452,11 +1300,15 @@ pub struct INetFwPolicy2_Vtbl { pub get_IsRuleGroupCurrentlyEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, group: ::std::mem::MaybeUninit<::windows_core::BSTR>, enabled: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub LocalPolicyModifyState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, modifystate: *mut NET_FW_MODIFY_STATE) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetFwProduct(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + INetFwProduct, + INetFwProduct_Vtbl, + 0x71881699_18f4_458b_b892_3ffce5e07f75 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(INetFwProduct, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl INetFwProduct { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1486,16 +1338,6 @@ impl INetFwProduct { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(INetFwProduct, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for INetFwProduct { - type Vtable = INetFwProduct_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for INetFwProduct { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x71881699_18f4_458b_b892_3ffce5e07f75); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct INetFwProduct_Vtbl { @@ -1512,11 +1354,15 @@ pub struct INetFwProduct_Vtbl { pub SetDisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, displayname: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub PathToSignedProductExe: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetFwProducts(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + INetFwProducts, + INetFwProducts_Vtbl, + 0x39eb36e0_2097_40bd_8af2_63a13b525362 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(INetFwProducts, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl INetFwProducts { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -1544,16 +1390,6 @@ impl INetFwProducts { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(INetFwProducts, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for INetFwProducts { - type Vtable = INetFwProducts_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for INetFwProducts { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x39eb36e0_2097_40bd_8af2_63a13b525362); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct INetFwProducts_Vtbl { @@ -1569,11 +1405,15 @@ pub struct INetFwProducts_Vtbl { Item: usize, pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetFwProfile(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + INetFwProfile, + INetFwProfile_Vtbl, + 0x174a0dda_e9f9_449d_993b_21ab667ca456 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(INetFwProfile, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl INetFwProfile { pub unsafe fn Type(&self) -> ::windows_core::Result { @@ -1652,16 +1492,6 @@ impl INetFwProfile { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(INetFwProfile, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for INetFwProfile { - type Vtable = INetFwProfile_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for INetFwProfile { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x174a0dda_e9f9_449d_993b_21ab667ca456); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct INetFwProfile_Vtbl { @@ -1696,11 +1526,15 @@ pub struct INetFwProfile_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] AuthorizedApplications: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetFwRemoteAdminSettings(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + INetFwRemoteAdminSettings, + INetFwRemoteAdminSettings_Vtbl, + 0xd4becddf_6f73_4a83_b832_9c66874cd20e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(INetFwRemoteAdminSettings, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl INetFwRemoteAdminSettings { pub unsafe fn IpVersion(&self) -> ::windows_core::Result { @@ -1739,16 +1573,6 @@ impl INetFwRemoteAdminSettings { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(INetFwRemoteAdminSettings, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for INetFwRemoteAdminSettings { - type Vtable = INetFwRemoteAdminSettings_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for INetFwRemoteAdminSettings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd4becddf_6f73_4a83_b832_9c66874cd20e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct INetFwRemoteAdminSettings_Vtbl { @@ -1762,11 +1586,15 @@ pub struct INetFwRemoteAdminSettings_Vtbl { pub Enabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enabled: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub SetEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enabled: super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetFwRule(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + INetFwRule, + INetFwRule_Vtbl, + 0xaf230d27_baba_4e42_aced_f524f22cfce2 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(INetFwRule, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl INetFwRule { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -1940,16 +1768,6 @@ impl INetFwRule { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(INetFwRule, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for INetFwRule { - type Vtable = INetFwRule_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for INetFwRule { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaf230d27_baba_4e42_aced_f524f22cfce2); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct INetFwRule_Vtbl { @@ -1997,11 +1815,15 @@ pub struct INetFwRule_Vtbl { pub Action: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, action: *mut NET_FW_ACTION) -> ::windows_core::HRESULT, pub SetAction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, action: NET_FW_ACTION) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetFwRule2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + INetFwRule2, + INetFwRule2_Vtbl, + 0x9c27c8da_189b_4dde_89f7_8b39a316782c +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(INetFwRule2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, INetFwRule); #[cfg(feature = "Win32_System_Com")] impl INetFwRule2 { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -2182,16 +2004,6 @@ impl INetFwRule2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(INetFwRule2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, INetFwRule); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for INetFwRule2 { - type Vtable = INetFwRule2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for INetFwRule2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9c27c8da_189b_4dde_89f7_8b39a316782c); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct INetFwRule2_Vtbl { @@ -2199,11 +2011,15 @@ pub struct INetFwRule2_Vtbl { pub EdgeTraversalOptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, loptions: *mut i32) -> ::windows_core::HRESULT, pub SetEdgeTraversalOptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, loptions: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetFwRule3(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + INetFwRule3, + INetFwRule3_Vtbl, + 0xb21563ff_d696_4222_ab46_4e89b73ab34a +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(INetFwRule3, ::windows_core::IUnknown, super::super::System::Com::IDispatch, INetFwRule, INetFwRule2); #[cfg(feature = "Win32_System_Com")] impl INetFwRule3 { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -2441,16 +2257,6 @@ impl INetFwRule3 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(INetFwRule3, ::windows_core::IUnknown, super::super::System::Com::IDispatch, INetFwRule, INetFwRule2); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for INetFwRule3 { - type Vtable = INetFwRule3_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for INetFwRule3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb21563ff_d696_4222_ab46_4e89b73ab34a); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct INetFwRule3_Vtbl { @@ -2468,11 +2274,15 @@ pub struct INetFwRule3_Vtbl { pub SecureFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, loptions: *mut i32) -> ::windows_core::HRESULT, pub SetSecureFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, loptions: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetFwRules(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + INetFwRules, + INetFwRules_Vtbl, + 0x9c4c6277_5027_441e_afae_ca1f542da009 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(INetFwRules, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl INetFwRules { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -2508,16 +2318,6 @@ impl INetFwRules { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(INetFwRules, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for INetFwRules { - type Vtable = INetFwRules_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for INetFwRules { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9c4c6277_5027_441e_afae_ca1f542da009); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct INetFwRules_Vtbl { @@ -2534,11 +2334,15 @@ pub struct INetFwRules_Vtbl { Item: usize, pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetFwService(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + INetFwService, + INetFwService_Vtbl, + 0x79fd57c8_908e_4a36_9888_d5b3f0a444cf +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(INetFwService, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl INetFwService { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -2595,16 +2399,6 @@ impl INetFwService { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(INetFwService, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for INetFwService { - type Vtable = INetFwService_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for INetFwService { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x79fd57c8_908e_4a36_9888_d5b3f0a444cf); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct INetFwService_Vtbl { @@ -2625,11 +2419,15 @@ pub struct INetFwService_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GloballyOpenPorts: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetFwServiceRestriction(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + INetFwServiceRestriction, + INetFwServiceRestriction_Vtbl, + 0x8267bbe3_f890_491c_b7b6_2db1ef0e5d2b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(INetFwServiceRestriction, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl INetFwServiceRestriction { pub unsafe fn RestrictService(&self, servicename: P0, appname: P1, restrictservice: P2, servicesidrestricted: P3) -> ::windows_core::Result<()> @@ -2657,16 +2455,6 @@ impl INetFwServiceRestriction { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(INetFwServiceRestriction, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for INetFwServiceRestriction { - type Vtable = INetFwServiceRestriction_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for INetFwServiceRestriction { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8267bbe3_f890_491c_b7b6_2db1ef0e5d2b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct INetFwServiceRestriction_Vtbl { @@ -2678,11 +2466,15 @@ pub struct INetFwServiceRestriction_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Rules: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetFwServices(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + INetFwServices, + INetFwServices_Vtbl, + 0x79649bb4_903e_421b_94c9_79848e79f6ee +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(INetFwServices, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl INetFwServices { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -2701,16 +2493,6 @@ impl INetFwServices { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(INetFwServices, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for INetFwServices { - type Vtable = INetFwServices_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for INetFwServices { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x79649bb4_903e_421b_94c9_79848e79f6ee); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct INetFwServices_Vtbl { @@ -2722,11 +2504,15 @@ pub struct INetFwServices_Vtbl { Item: usize, pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetSharingConfiguration(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + INetSharingConfiguration, + INetSharingConfiguration_Vtbl, + 0xc08956b6_1cd3_11d1_b1c5_00805fc1270e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(INetSharingConfiguration, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl INetSharingConfiguration { pub unsafe fn SharingEnabled(&self) -> ::windows_core::Result { @@ -2779,16 +2565,6 @@ impl INetSharingConfiguration { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(INetSharingConfiguration, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for INetSharingConfiguration { - type Vtable = INetSharingConfiguration_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for INetSharingConfiguration { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc08956b6_1cd3_11d1_b1c5_00805fc1270e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct INetSharingConfiguration_Vtbl { @@ -2813,11 +2589,15 @@ pub struct INetSharingConfiguration_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] RemovePortMapping: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetSharingEveryConnectionCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + INetSharingEveryConnectionCollection, + INetSharingEveryConnectionCollection_Vtbl, + 0x33c4643c_7811_46fa_a89a_768597bd7223 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(INetSharingEveryConnectionCollection, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl INetSharingEveryConnectionCollection { pub unsafe fn _NewEnum(&self) -> ::windows_core::Result<::windows_core::IUnknown> { @@ -2830,16 +2610,6 @@ impl INetSharingEveryConnectionCollection { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(INetSharingEveryConnectionCollection, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for INetSharingEveryConnectionCollection { - type Vtable = INetSharingEveryConnectionCollection_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for INetSharingEveryConnectionCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x33c4643c_7811_46fa_a89a_768597bd7223); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct INetSharingEveryConnectionCollection_Vtbl { @@ -2847,11 +2617,15 @@ pub struct INetSharingEveryConnectionCollection_Vtbl { pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetSharingManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + INetSharingManager, + INetSharingManager_Vtbl, + 0xc08956b7_1cd3_11d1_b1c5_00805fc1270e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(INetSharingManager, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl INetSharingManager { pub unsafe fn SharingInstalled(&self) -> ::windows_core::Result { @@ -2896,16 +2670,6 @@ impl INetSharingManager { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(INetSharingManager, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for INetSharingManager { - type Vtable = INetSharingManager_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for INetSharingManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc08956b7_1cd3_11d1_b1c5_00805fc1270e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct INetSharingManager_Vtbl { @@ -2932,11 +2696,15 @@ pub struct INetSharingManager_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] get_NetConnectionProps: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetSharingPortMapping(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + INetSharingPortMapping, + INetSharingPortMapping_Vtbl, + 0xc08956b1_1cd3_11d1_b1c5_00805fc1270e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(INetSharingPortMapping, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl INetSharingPortMapping { pub unsafe fn Disable(&self) -> ::windows_core::Result<()> { @@ -2956,16 +2724,6 @@ impl INetSharingPortMapping { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(INetSharingPortMapping, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for INetSharingPortMapping { - type Vtable = INetSharingPortMapping_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for INetSharingPortMapping { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc08956b1_1cd3_11d1_b1c5_00805fc1270e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct INetSharingPortMapping_Vtbl { @@ -2978,11 +2736,15 @@ pub struct INetSharingPortMapping_Vtbl { Properties: usize, pub Delete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetSharingPortMappingCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + INetSharingPortMappingCollection, + INetSharingPortMappingCollection_Vtbl, + 0x02e4a2de_da20_4e34_89c8_ac22275a010b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(INetSharingPortMappingCollection, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl INetSharingPortMappingCollection { pub unsafe fn _NewEnum(&self) -> ::windows_core::Result<::windows_core::IUnknown> { @@ -2995,16 +2757,6 @@ impl INetSharingPortMappingCollection { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(INetSharingPortMappingCollection, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for INetSharingPortMappingCollection { - type Vtable = INetSharingPortMappingCollection_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for INetSharingPortMappingCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x02e4a2de_da20_4e34_89c8_ac22275a010b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct INetSharingPortMappingCollection_Vtbl { @@ -3012,11 +2764,15 @@ pub struct INetSharingPortMappingCollection_Vtbl { pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetSharingPortMappingProps(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + INetSharingPortMappingProps, + INetSharingPortMappingProps_Vtbl, + 0x24b7e9b5_e38f_4685_851b_00892cf5f940 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(INetSharingPortMappingProps, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl INetSharingPortMappingProps { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -3053,16 +2809,6 @@ impl INetSharingPortMappingProps { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(INetSharingPortMappingProps, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for INetSharingPortMappingProps { - type Vtable = INetSharingPortMappingProps_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for INetSharingPortMappingProps { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x24b7e9b5_e38f_4685_851b_00892cf5f940); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct INetSharingPortMappingProps_Vtbl { @@ -3076,11 +2822,15 @@ pub struct INetSharingPortMappingProps_Vtbl { pub TargetIPAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtargetipaddress: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub Enabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbool: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetSharingPrivateConnectionCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + INetSharingPrivateConnectionCollection, + INetSharingPrivateConnectionCollection_Vtbl, + 0x38ae69e0_4409_402a_a2cb_e965c727f840 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(INetSharingPrivateConnectionCollection, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl INetSharingPrivateConnectionCollection { pub unsafe fn _NewEnum(&self) -> ::windows_core::Result<::windows_core::IUnknown> { @@ -3093,16 +2843,6 @@ impl INetSharingPrivateConnectionCollection { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(INetSharingPrivateConnectionCollection, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for INetSharingPrivateConnectionCollection { - type Vtable = INetSharingPrivateConnectionCollection_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for INetSharingPrivateConnectionCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x38ae69e0_4409_402a_a2cb_e965c727f840); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct INetSharingPrivateConnectionCollection_Vtbl { @@ -3110,11 +2850,15 @@ pub struct INetSharingPrivateConnectionCollection_Vtbl { pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetSharingPublicConnectionCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + INetSharingPublicConnectionCollection, + INetSharingPublicConnectionCollection_Vtbl, + 0x7d7a6355_f372_4971_a149_bfc927be762a +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(INetSharingPublicConnectionCollection, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl INetSharingPublicConnectionCollection { pub unsafe fn _NewEnum(&self) -> ::windows_core::Result<::windows_core::IUnknown> { @@ -3127,16 +2871,6 @@ impl INetSharingPublicConnectionCollection { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(INetSharingPublicConnectionCollection, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for INetSharingPublicConnectionCollection { - type Vtable = INetSharingPublicConnectionCollection_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for INetSharingPublicConnectionCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7d7a6355_f372_4971_a149_bfc927be762a); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct INetSharingPublicConnectionCollection_Vtbl { @@ -3144,11 +2878,15 @@ pub struct INetSharingPublicConnectionCollection_Vtbl { pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStaticPortMapping(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IStaticPortMapping, + IStaticPortMapping_Vtbl, + 0x6f10711f_729b_41e5_93b8_f21d0f818df1 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IStaticPortMapping, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IStaticPortMapping { pub unsafe fn ExternalIPAddress(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -3202,16 +2940,6 @@ impl IStaticPortMapping { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IStaticPortMapping, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IStaticPortMapping { - type Vtable = IStaticPortMapping_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IStaticPortMapping { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6f10711f_729b_41e5_93b8_f21d0f818df1); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IStaticPortMapping_Vtbl { @@ -3228,11 +2956,15 @@ pub struct IStaticPortMapping_Vtbl { pub EditDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdescription: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub EditInternalPort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, linternalport: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStaticPortMappingCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IStaticPortMappingCollection, + IStaticPortMappingCollection_Vtbl, + 0xcd1f3e77_66d6_4664_82c7_36dbb641d0f1 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IStaticPortMappingCollection, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IStaticPortMappingCollection { pub unsafe fn _NewEnum(&self) -> ::windows_core::Result<::windows_core::IUnknown> { @@ -3272,16 +3004,6 @@ impl IStaticPortMappingCollection { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IStaticPortMappingCollection, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IStaticPortMappingCollection { - type Vtable = IStaticPortMappingCollection_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IStaticPortMappingCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcd1f3e77_66d6_4664_82c7_36dbb641d0f1); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IStaticPortMappingCollection_Vtbl { @@ -3298,11 +3020,15 @@ pub struct IStaticPortMappingCollection_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Add: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUPnPNAT(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IUPnPNAT, + IUPnPNAT_Vtbl, + 0xb171c812_cc76_485a_94d8_b6b3a2794e99 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IUPnPNAT, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IUPnPNAT { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3325,16 +3051,6 @@ impl IUPnPNAT { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IUPnPNAT, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IUPnPNAT { - type Vtable = IUPnPNAT_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IUPnPNAT { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb171c812_cc76_485a_94d8_b6b3a2794e99); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IUPnPNAT_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Networking/ActiveDirectory/impl.rs b/crates/libs/windows/src/Windows/Win32/Networking/ActiveDirectory/impl.rs index 657bd45b9a..e59570e805 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/ActiveDirectory/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/ActiveDirectory/impl.rs @@ -151,7 +151,7 @@ impl IADs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -331,7 +331,7 @@ impl IADsADSystemInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -488,7 +488,7 @@ impl IADsAccessControlEntry_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -585,7 +585,7 @@ impl IADsAccessControlList_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -675,7 +675,7 @@ impl IADsAcl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IADsAggregatee_Impl: Sized { @@ -716,7 +716,7 @@ impl IADsAggregatee_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IADsAggregator_Impl: Sized { @@ -743,7 +743,7 @@ impl IADsAggregator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -800,7 +800,7 @@ impl IADsBackLink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -837,7 +837,7 @@ impl IADsCaseIgnoreList_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1160,7 +1160,7 @@ impl IADsClass_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1217,7 +1217,7 @@ impl IADsCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1560,7 +1560,7 @@ impl IADsComputer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1593,7 +1593,7 @@ impl IADsComputerOperations_Vtbl { Self { base__: IADs_Vtbl::new::(), Status: Status::, Shutdown: Shutdown:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1735,7 +1735,7 @@ impl IADsContainer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1792,7 +1792,7 @@ impl IADsDNWithBinary_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1849,7 +1849,7 @@ impl IADsDNWithString_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1870,7 +1870,7 @@ impl IADsDeleteOps_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::(), DeleteObject: DeleteObject:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2060,7 +2060,7 @@ impl IADsDomain_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2117,7 +2117,7 @@ impl IADsEmail_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2161,7 +2161,7 @@ impl IADsExtension_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2218,7 +2218,7 @@ impl IADsFaxNumber_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2275,7 +2275,7 @@ impl IADsFileService_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2318,7 +2318,7 @@ impl IADsFileServiceOperations_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2428,7 +2428,7 @@ impl IADsFileShare_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2505,7 +2505,7 @@ impl IADsGroup_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2562,7 +2562,7 @@ impl IADsHold_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2619,7 +2619,7 @@ impl IADsLargeInteger_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2716,7 +2716,7 @@ impl IADsLocality_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2779,7 +2779,7 @@ impl IADsMembers_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2857,7 +2857,7 @@ impl IADsNameTranslate_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2894,7 +2894,7 @@ impl IADsNamespaces_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2951,7 +2951,7 @@ impl IADsNetAddress_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3088,7 +3088,7 @@ impl IADsO_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3245,7 +3245,7 @@ impl IADsOU_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3282,7 +3282,7 @@ impl IADsObjectOptions_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3319,7 +3319,7 @@ impl IADsOctetList_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3346,7 +3346,7 @@ impl IADsOpenDSObject_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::(), OpenDSObject: OpenDSObject:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3423,7 +3423,7 @@ impl IADsPath_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3553,7 +3553,7 @@ impl IADsPathname_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3590,7 +3590,7 @@ impl IADsPostalAddress_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3805,7 +3805,7 @@ impl IADsPrintJob_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3895,7 +3895,7 @@ impl IADsPrintJobOperations_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4172,7 +4172,7 @@ impl IADsPrintQueue_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4236,7 +4236,7 @@ impl IADsPrintQueueOperations_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4366,7 +4366,7 @@ impl IADsProperty_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4470,7 +4470,7 @@ impl IADsPropertyEntry_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4568,7 +4568,7 @@ impl IADsPropertyList_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4832,7 +4832,7 @@ impl IADsPropertyValue_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4863,7 +4863,7 @@ impl IADsPropertyValue2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4980,7 +4980,7 @@ impl IADsReplicaPointer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5049,7 +5049,7 @@ impl IADsResource_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5279,7 +5279,7 @@ impl IADsSecurityDescriptor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5349,7 +5349,7 @@ impl IADsSecurityUtility_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5606,7 +5606,7 @@ impl IADsService_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5671,7 +5671,7 @@ impl IADsServiceOperations_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5766,7 +5766,7 @@ impl IADsSession_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5803,7 +5803,7 @@ impl IADsSyntax_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5860,7 +5860,7 @@ impl IADsTimestamp_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5937,7 +5937,7 @@ impl IADsTypedName_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6879,7 +6879,7 @@ impl IADsUser_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6948,7 +6948,7 @@ impl IADsWinNTSystemInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`"] @@ -6969,7 +6969,7 @@ impl ICommonQuery_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OpenQueryWindow: OpenQueryWindow:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -7039,7 +7039,7 @@ impl IDirectoryObject_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDirectorySchemaMgmt_Impl: Sized { @@ -7108,7 +7108,7 @@ impl IDirectorySchemaMgmt_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDirectorySearch_Impl: Sized { @@ -7197,7 +7197,7 @@ impl IDirectorySearch_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -7234,7 +7234,7 @@ impl IDsAdminCreateObj_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDsAdminNewObj_Impl: Sized { @@ -7261,7 +7261,7 @@ impl IDsAdminNewObj_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_UI_Controls\"`, `\"Win32_UI_WindowsAndMessaging\"`"] @@ -7320,7 +7320,7 @@ impl IDsAdminNewObjExt_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDsAdminNewObjPrimarySite_Impl: Sized { @@ -7347,7 +7347,7 @@ impl IDsAdminNewObjPrimarySite_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -7392,7 +7392,7 @@ impl IDsAdminNotifyHandler_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDsBrowseDomainTree_Impl: Sized { @@ -7440,7 +7440,7 @@ impl IDsBrowseDomainTree_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_WindowsAndMessaging\"`"] @@ -7534,7 +7534,7 @@ impl IDsDisplaySpecifier_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -7571,7 +7571,7 @@ impl IDsObjectPicker_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -7592,7 +7592,7 @@ impl IDsObjectPickerCredentials_Vtbl { Self { base__: IDsObjectPicker_Vtbl::new::(), SetCredentials: SetCredentials:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -7658,7 +7658,7 @@ impl IPersistQuery_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -7728,7 +7728,7 @@ impl IPrivateDispatch_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPrivateUnknown_Impl: Sized { @@ -7755,7 +7755,7 @@ impl IPrivateUnknown_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Registry\"`, `\"Win32_UI_WindowsAndMessaging\"`"] @@ -7793,6 +7793,6 @@ impl IQueryForm_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 3aae625a16..d273713952 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/ActiveDirectory/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/ActiveDirectory/mod.rs @@ -1323,11 +1323,15 @@ where ::windows_targets::link!("activeds.dll" "system" fn SecurityDescriptorToBinarySD(vvarsecdes : super::super::System::Variant:: VARIANT, ppsecuritydescriptor : *mut super::super::Security:: PSECURITY_DESCRIPTOR, pdwsdlength : *mut u32, pszservername : ::windows_core::PCWSTR, username : ::windows_core::PCWSTR, password : ::windows_core::PCWSTR, dwflags : u32) -> ::windows_core::HRESULT); SecurityDescriptorToBinarySD(::core::mem::transmute(vvarsecdes), ppsecuritydescriptor, pdwsdlength, pszservername.into_param().abi(), username.into_param().abi(), password.into_param().abi(), dwflags).ok() } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IADs(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IADs, + IADs_Vtbl, + 0xfd8256d0_fd15_11ce_abc4_02608c9e7553 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IADs, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IADs { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -1401,16 +1405,6 @@ impl IADs { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IADs, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IADs { - type Vtable = IADs_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IADs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfd8256d0_fd15_11ce_abc4_02608c9e7553); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IADs_Vtbl { @@ -1444,11 +1438,15 @@ pub struct IADs_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] GetInfoEx: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IADsADSystemInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IADsADSystemInfo, + IADsADSystemInfo_Vtbl, + 0x5bb11929_afd1_11d2_9cb9_0000f87a369e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IADsADSystemInfo, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IADsADSystemInfo { pub unsafe fn UserName(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -1509,16 +1507,6 @@ impl IADsADSystemInfo { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IADsADSystemInfo, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IADsADSystemInfo { - type Vtable = IADsADSystemInfo_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IADsADSystemInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5bb11929_afd1_11d2_9cb9_0000f87a369e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IADsADSystemInfo_Vtbl { @@ -1540,11 +1528,15 @@ pub struct IADsADSystemInfo_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] GetTrees: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IADsAccessControlEntry(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IADsAccessControlEntry, + IADsAccessControlEntry_Vtbl, + 0xb4f3a14c_9bdd_11d0_852c_00c04fd8d503 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IADsAccessControlEntry, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IADsAccessControlEntry { pub unsafe fn AccessMask(&self) -> ::windows_core::Result { @@ -1607,16 +1599,6 @@ impl IADsAccessControlEntry { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IADsAccessControlEntry, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IADsAccessControlEntry { - type Vtable = IADsAccessControlEntry_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IADsAccessControlEntry { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb4f3a14c_9bdd_11d0_852c_00c04fd8d503); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IADsAccessControlEntry_Vtbl { @@ -1636,11 +1618,15 @@ pub struct IADsAccessControlEntry_Vtbl { pub Trustee: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SetTrustee: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtrustee: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IADsAccessControlList(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IADsAccessControlList, + IADsAccessControlList_Vtbl, + 0xb7ee91cc_9bdd_11d0_852c_00c04fd8d503 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IADsAccessControlList, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IADsAccessControlList { pub unsafe fn AclRevision(&self) -> ::windows_core::Result { @@ -1685,16 +1671,6 @@ impl IADsAccessControlList { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IADsAccessControlList, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IADsAccessControlList { - type Vtable = IADsAccessControlList_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IADsAccessControlList { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb7ee91cc_9bdd_11d0_852c_00c04fd8d503); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IADsAccessControlList_Vtbl { @@ -1717,11 +1693,15 @@ pub struct IADsAccessControlList_Vtbl { CopyAccessList: usize, pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IADsAcl(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IADsAcl, + IADsAcl_Vtbl, + 0x8452d3ab_0869_11d1_a377_00c04fb950dc +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IADsAcl, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IADsAcl { pub unsafe fn ProtectedAttrName(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -1759,16 +1739,6 @@ impl IADsAcl { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IADsAcl, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IADsAcl { - type Vtable = IADsAcl_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IADsAcl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8452d3ab_0869_11d1_a377_00c04fb950dc); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IADsAcl_Vtbl { @@ -1784,9 +1754,8 @@ pub struct IADsAcl_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] CopyAcl: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IADsAggregatee(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IADsAggregatee, IADsAggregatee_Vtbl, 0x1346ce8c_9039_11d0_8528_00c04fd8d503); +::windows_core::imp::interface_hierarchy!(IADsAggregatee, ::windows_core::IUnknown); impl IADsAggregatee { pub unsafe fn ConnectAsAggregatee(&self, pouterunknown: P0) -> ::windows_core::Result<()> where @@ -1804,13 +1773,6 @@ impl IADsAggregatee { (::windows_core::Interface::vtable(self).RestoreInterface)(::windows_core::Interface::as_raw(self), riid).ok() } } -::windows_core::imp::interface_hierarchy!(IADsAggregatee, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IADsAggregatee { - type Vtable = IADsAggregatee_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IADsAggregatee { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1346ce8c_9039_11d0_8528_00c04fd8d503); -} #[repr(C)] #[doc(hidden)] pub struct IADsAggregatee_Vtbl { @@ -1820,9 +1782,8 @@ pub struct IADsAggregatee_Vtbl { pub RelinquishInterface: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID) -> ::windows_core::HRESULT, pub RestoreInterface: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IADsAggregator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IADsAggregator, IADsAggregator_Vtbl, 0x52db5fb0_941f_11d0_8529_00c04fd8d503); +::windows_core::imp::interface_hierarchy!(IADsAggregator, ::windows_core::IUnknown); impl IADsAggregator { pub unsafe fn ConnectAsAggregator(&self, paggregatee: P0) -> ::windows_core::Result<()> where @@ -1834,13 +1795,6 @@ impl IADsAggregator { (::windows_core::Interface::vtable(self).DisconnectAsAggregator)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IADsAggregator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IADsAggregator { - type Vtable = IADsAggregator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IADsAggregator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x52db5fb0_941f_11d0_8529_00c04fd8d503); -} #[repr(C)] #[doc(hidden)] pub struct IADsAggregator_Vtbl { @@ -1848,11 +1802,15 @@ pub struct IADsAggregator_Vtbl { pub ConnectAsAggregator: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, paggregatee: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub DisconnectAsAggregator: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IADsBackLink(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IADsBackLink, + IADsBackLink_Vtbl, + 0xfd1302bd_4080_11d1_a3ac_00c04fb950dc +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IADsBackLink, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IADsBackLink { pub unsafe fn RemoteID(&self) -> ::windows_core::Result { @@ -1874,16 +1832,6 @@ impl IADsBackLink { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IADsBackLink, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IADsBackLink { - type Vtable = IADsBackLink_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IADsBackLink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfd1302bd_4080_11d1_a3ac_00c04fb950dc); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IADsBackLink_Vtbl { @@ -1893,11 +1841,15 @@ pub struct IADsBackLink_Vtbl { pub ObjectName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SetObjectName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrobjectname: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IADsCaseIgnoreList(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IADsCaseIgnoreList, + IADsCaseIgnoreList_Vtbl, + 0x7b66b533_4680_11d1_a3b4_00c04fb950dc +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IADsCaseIgnoreList, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IADsCaseIgnoreList { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1913,16 +1865,6 @@ impl IADsCaseIgnoreList { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IADsCaseIgnoreList, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IADsCaseIgnoreList { - type Vtable = IADsCaseIgnoreList_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IADsCaseIgnoreList { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7b66b533_4680_11d1_a3b4_00c04fb950dc); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IADsCaseIgnoreList_Vtbl { @@ -1936,11 +1878,15 @@ pub struct IADsCaseIgnoreList_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] SetCaseIgnoreList: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IADsClass(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IADsClass, + IADsClass_Vtbl, + 0xc8f93dd0_4ae0_11cf_9e73_00aa004a5691 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IADsClass, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IADs); #[cfg(feature = "Win32_System_Com")] impl IADsClass { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -2168,16 +2114,6 @@ impl IADsClass { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IADsClass, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IADs); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IADsClass { - type Vtable = IADsClass_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IADsClass { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc8f93dd0_4ae0_11cf_9e73_00aa004a5691); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IADsClass_Vtbl { @@ -2258,11 +2194,15 @@ pub struct IADsClass_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Qualifiers: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IADsCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IADsCollection, + IADsCollection_Vtbl, + 0x72b945e0_253b_11cf_a988_00aa006bc149 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IADsCollection, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IADsCollection { pub unsafe fn _NewEnum(&self) -> ::windows_core::Result<::windows_core::IUnknown> { @@ -2294,16 +2234,6 @@ impl IADsCollection { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IADsCollection, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IADsCollection { - type Vtable = IADsCollection_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IADsCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x72b945e0_253b_11cf_a988_00aa006bc149); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IADsCollection_Vtbl { @@ -2319,11 +2249,15 @@ pub struct IADsCollection_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] GetObject: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IADsComputer(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IADsComputer, + IADsComputer_Vtbl, + 0xefe3cc70_1d9f_11cf_b1f3_02608c9e7553 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IADsComputer, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IADs); #[cfg(feature = "Win32_System_Com")] impl IADsComputer { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -2556,16 +2490,6 @@ impl IADsComputer { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IADsComputer, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IADs); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IADsComputer { - type Vtable = IADsComputer_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IADsComputer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xefe3cc70_1d9f_11cf_b1f3_02608c9e7553); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IADsComputer_Vtbl { @@ -2609,11 +2533,15 @@ pub struct IADsComputer_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] SetNetAddresses: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IADsComputerOperations(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IADsComputerOperations, + IADsComputerOperations_Vtbl, + 0xef497680_1d9f_11cf_b1f3_02608c9e7553 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IADsComputerOperations, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IADs); #[cfg(feature = "Win32_System_Com")] impl IADsComputerOperations { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -2699,16 +2627,6 @@ impl IADsComputerOperations { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IADsComputerOperations, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IADs); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IADsComputerOperations { - type Vtable = IADsComputerOperations_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IADsComputerOperations { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xef497680_1d9f_11cf_b1f3_02608c9e7553); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IADsComputerOperations_Vtbl { @@ -2719,11 +2637,15 @@ pub struct IADsComputerOperations_Vtbl { Status: usize, pub Shutdown: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, breboot: super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IADsContainer(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IADsContainer, + IADsContainer_Vtbl, + 0x001677d0_fd16_11ce_abc4_02608c9e7553 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IADsContainer, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IADsContainer { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -2805,16 +2727,6 @@ impl IADsContainer { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IADsContainer, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IADsContainer { - type Vtable = IADsContainer_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IADsContainer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x001677d0_fd16_11ce_abc4_02608c9e7553); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IADsContainer_Vtbl { @@ -2855,11 +2767,15 @@ pub struct IADsContainer_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] MoveHere: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IADsDNWithBinary(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IADsDNWithBinary, + IADsDNWithBinary_Vtbl, + 0x7e99c0a2_f935_11d2_ba96_00c04fb6d0d1 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IADsDNWithBinary, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IADsDNWithBinary { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2885,16 +2801,6 @@ impl IADsDNWithBinary { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IADsDNWithBinary, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IADsDNWithBinary { - type Vtable = IADsDNWithBinary_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IADsDNWithBinary { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7e99c0a2_f935_11d2_ba96_00c04fb6d0d1); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IADsDNWithBinary_Vtbl { @@ -2910,11 +2816,15 @@ pub struct IADsDNWithBinary_Vtbl { pub DNString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SetDNString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdnstring: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IADsDNWithString(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IADsDNWithString, + IADsDNWithString_Vtbl, + 0x370df02e_f934_11d2_ba96_00c04fb6d0d1 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IADsDNWithString, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IADsDNWithString { pub unsafe fn StringValue(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -2939,16 +2849,6 @@ impl IADsDNWithString { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IADsDNWithString, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IADsDNWithString { - type Vtable = IADsDNWithString_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IADsDNWithString { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x370df02e_f934_11d2_ba96_00c04fb6d0d1); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IADsDNWithString_Vtbl { @@ -2958,11 +2858,15 @@ pub struct IADsDNWithString_Vtbl { pub DNString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SetDNString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdnstring: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IADsDeleteOps(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IADsDeleteOps, + IADsDeleteOps_Vtbl, + 0xb2bd0902_8878_11d1_8c21_00c04fd8d503 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IADsDeleteOps, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IADsDeleteOps { pub unsafe fn DeleteObject(&self, lnflags: i32) -> ::windows_core::Result<()> { @@ -2970,27 +2874,21 @@ impl IADsDeleteOps { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IADsDeleteOps, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IADsDeleteOps { - type Vtable = IADsDeleteOps_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IADsDeleteOps { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb2bd0902_8878_11d1_8c21_00c04fd8d503); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IADsDeleteOps_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, pub DeleteObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lnflags: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IADsDomain(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IADsDomain, + IADsDomain_Vtbl, + 0x00e4c220_fd16_11ce_abc4_02608c9e7553 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IADsDomain, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IADs); #[cfg(feature = "Win32_System_Com")] impl IADsDomain { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -3124,16 +3022,6 @@ impl IADsDomain { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IADsDomain, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IADs); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IADsDomain { - type Vtable = IADsDomain_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IADsDomain { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00e4c220_fd16_11ce_abc4_02608c9e7553); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IADsDomain_Vtbl { @@ -3156,11 +3044,15 @@ pub struct IADsDomain_Vtbl { pub LockoutObservationInterval: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows_core::HRESULT, pub SetLockoutObservationInterval: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lnlockoutobservationinterval: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IADsEmail(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IADsEmail, + IADsEmail_Vtbl, + 0x97af011a_478e_11d1_a3b4_00c04fb950dc +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IADsEmail, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IADsEmail { pub unsafe fn Type(&self) -> ::windows_core::Result { @@ -3182,16 +3074,6 @@ impl IADsEmail { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IADsEmail, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IADsEmail { - type Vtable = IADsEmail_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IADsEmail { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x97af011a_478e_11d1_a3b4_00c04fb950dc); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IADsEmail_Vtbl { @@ -3201,9 +3083,8 @@ pub struct IADsEmail_Vtbl { pub Address: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SetAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstraddress: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IADsExtension(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IADsExtension, IADsExtension_Vtbl, 0x3d35553c_d2b0_11d1_b17b_0000f87593a0); +::windows_core::imp::interface_hierarchy!(IADsExtension, ::windows_core::IUnknown); impl IADsExtension { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -3220,13 +3101,6 @@ impl IADsExtension { (::windows_core::Interface::vtable(self).PrivateInvoke)(::windows_core::Interface::as_raw(self), dispidmember, riid, lcid, wflags, pdispparams, pvarresult, pexcepinfo, puargerr).ok() } } -::windows_core::imp::interface_hierarchy!(IADsExtension, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IADsExtension { - type Vtable = IADsExtension_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IADsExtension { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3d35553c_d2b0_11d1_b17b_0000f87593a0); -} #[repr(C)] #[doc(hidden)] pub struct IADsExtension_Vtbl { @@ -3241,11 +3115,15 @@ pub struct IADsExtension_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] PrivateInvoke: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IADsFaxNumber(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IADsFaxNumber, + IADsFaxNumber_Vtbl, + 0xa910dea9_4680_11d1_a3b4_00c04fb950dc +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IADsFaxNumber, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IADsFaxNumber { pub unsafe fn TelephoneNumber(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -3271,16 +3149,6 @@ impl IADsFaxNumber { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IADsFaxNumber, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IADsFaxNumber { - type Vtable = IADsFaxNumber_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IADsFaxNumber { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa910dea9_4680_11d1_a3b4_00c04fb950dc); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IADsFaxNumber_Vtbl { @@ -3296,11 +3164,15 @@ pub struct IADsFaxNumber_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] SetParameters: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IADsFileService(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IADsFileService, + IADsFileService_Vtbl, + 0xa89d1900_31ca_11cf_a98a_00aa006bc149 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IADsFileService, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IADs, IADsService); #[cfg(feature = "Win32_System_Com")] impl IADsFileService { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -3503,16 +3375,6 @@ impl IADsFileService { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IADsFileService, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IADs, IADsService); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IADsFileService { - type Vtable = IADsFileService_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IADsFileService { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa89d1900_31ca_11cf_a98a_00aa006bc149); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IADsFileService_Vtbl { @@ -3522,11 +3384,15 @@ pub struct IADsFileService_Vtbl { pub MaxUserCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows_core::HRESULT, pub SetMaxUserCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lnmaxusercount: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IADsFileServiceOperations(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IADsFileServiceOperations, + IADsFileServiceOperations_Vtbl, + 0xa02ded10_31ca_11cf_a98a_00aa006bc149 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IADsFileServiceOperations, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IADs, IADsServiceOperations); #[cfg(feature = "Win32_System_Com")] impl IADsFileServiceOperations { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -3634,16 +3500,6 @@ impl IADsFileServiceOperations { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IADsFileServiceOperations, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IADs, IADsServiceOperations); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IADsFileServiceOperations { - type Vtable = IADsFileServiceOperations_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IADsFileServiceOperations { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa02ded10_31ca_11cf_a98a_00aa006bc149); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IADsFileServiceOperations_Vtbl { @@ -3657,11 +3513,15 @@ pub struct IADsFileServiceOperations_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Resources: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IADsFileShare(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IADsFileShare, + IADsFileShare_Vtbl, + 0xeb6dcaf0_4b83_11cf_a995_00aa006bc149 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IADsFileShare, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IADs); #[cfg(feature = "Win32_System_Com")] impl IADsFileShare { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -3776,16 +3636,6 @@ impl IADsFileShare { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IADsFileShare, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IADs); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IADsFileShare { - type Vtable = IADsFileShare_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IADsFileShare { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeb6dcaf0_4b83_11cf_a995_00aa006bc149); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IADsFileShare_Vtbl { @@ -3800,11 +3650,15 @@ pub struct IADsFileShare_Vtbl { pub MaxUserCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows_core::HRESULT, pub SetMaxUserCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lnmaxusercount: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IADsGroup(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IADsGroup, + IADsGroup_Vtbl, + 0x27636b00_410f_11cf_b1ff_02608c9e7553 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IADsGroup, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IADs); #[cfg(feature = "Win32_System_Com")] impl IADsGroup { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -3913,16 +3767,6 @@ impl IADsGroup { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IADsGroup, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IADs); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IADsGroup { - type Vtable = IADsGroup_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IADsGroup { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x27636b00_410f_11cf_b1ff_02608c9e7553); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IADsGroup_Vtbl { @@ -3937,11 +3781,15 @@ pub struct IADsGroup_Vtbl { pub Add: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrnewitem: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstritemtoberemoved: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IADsHold(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IADsHold, + IADsHold_Vtbl, + 0xb3eb3b37_4080_11d1_a3ac_00c04fb950dc +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IADsHold, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IADsHold { pub unsafe fn ObjectName(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -3963,16 +3811,6 @@ impl IADsHold { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IADsHold, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IADsHold { - type Vtable = IADsHold_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IADsHold { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb3eb3b37_4080_11d1_a3ac_00c04fb950dc); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IADsHold_Vtbl { @@ -3982,11 +3820,15 @@ pub struct IADsHold_Vtbl { pub Amount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows_core::HRESULT, pub SetAmount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lnamount: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IADsLargeInteger(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IADsLargeInteger, + IADsLargeInteger_Vtbl, + 0x9068270b_0939_11d1_8be1_00c04fd8d503 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IADsLargeInteger, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IADsLargeInteger { pub unsafe fn HighPart(&self) -> ::windows_core::Result { @@ -4005,16 +3847,6 @@ impl IADsLargeInteger { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IADsLargeInteger, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IADsLargeInteger { - type Vtable = IADsLargeInteger_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IADsLargeInteger { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9068270b_0939_11d1_8be1_00c04fd8d503); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IADsLargeInteger_Vtbl { @@ -4024,11 +3856,15 @@ pub struct IADsLargeInteger_Vtbl { pub LowPart: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows_core::HRESULT, pub SetLowPart: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lnlowpart: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IADsLocality(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IADsLocality, + IADsLocality_Vtbl, + 0xa05e03a2_effe_11cf_8abc_00c04fd8d503 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IADsLocality, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IADs); #[cfg(feature = "Win32_System_Com")] impl IADsLocality { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -4143,16 +3979,6 @@ impl IADsLocality { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IADsLocality, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IADs); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IADsLocality { - type Vtable = IADsLocality_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IADsLocality { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa05e03a2_effe_11cf_8abc_00c04fd8d503); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IADsLocality_Vtbl { @@ -4172,11 +3998,15 @@ pub struct IADsLocality_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] SetSeeAlso: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IADsMembers(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IADsMembers, + IADsMembers_Vtbl, + 0x451a0030_72ec_11cf_b03b_00aa006e0975 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IADsMembers, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IADsMembers { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -4200,16 +4030,6 @@ impl IADsMembers { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IADsMembers, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IADsMembers { - type Vtable = IADsMembers_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IADsMembers { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x451a0030_72ec_11cf_b03b_00aa006e0975); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IADsMembers_Vtbl { @@ -4225,11 +4045,15 @@ pub struct IADsMembers_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] SetFilter: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IADsNameTranslate(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IADsNameTranslate, + IADsNameTranslate_Vtbl, + 0xb1b272a3_3625_11d1_a3a4_00c04fb950dc +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IADsNameTranslate, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IADsNameTranslate { pub unsafe fn SetChaseReferral(&self, lnchasereferral: i32) -> ::windows_core::Result<()> { @@ -4273,16 +4097,6 @@ impl IADsNameTranslate { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IADsNameTranslate, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IADsNameTranslate { - type Vtable = IADsNameTranslate_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IADsNameTranslate { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb1b272a3_3625_11d1_a3a4_00c04fb950dc); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IADsNameTranslate_Vtbl { @@ -4301,11 +4115,15 @@ pub struct IADsNameTranslate_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] GetEx: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IADsNamespaces(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IADsNamespaces, + IADsNamespaces_Vtbl, + 0x28b96ba0_b330_11cf_a9ad_00aa006bc149 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IADsNamespaces, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IADs); #[cfg(feature = "Win32_System_Com")] impl IADsNamespaces { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -4389,16 +4207,6 @@ impl IADsNamespaces { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IADsNamespaces, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IADs); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IADsNamespaces { - type Vtable = IADsNamespaces_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IADsNamespaces { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x28b96ba0_b330_11cf_a9ad_00aa006bc149); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IADsNamespaces_Vtbl { @@ -4406,11 +4214,15 @@ pub struct IADsNamespaces_Vtbl { pub DefaultContainer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SetDefaultContainer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdefaultcontainer: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IADsNetAddress(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IADsNetAddress, + IADsNetAddress_Vtbl, + 0xb21a50a9_4080_11d1_a3ac_00c04fb950dc +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IADsNetAddress, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IADsNetAddress { pub unsafe fn AddressType(&self) -> ::windows_core::Result { @@ -4433,16 +4245,6 @@ impl IADsNetAddress { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IADsNetAddress, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IADsNetAddress { - type Vtable = IADsNetAddress_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IADsNetAddress { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb21a50a9_4080_11d1_a3ac_00c04fb950dc); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IADsNetAddress_Vtbl { @@ -4458,11 +4260,15 @@ pub struct IADsNetAddress_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] SetAddress: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IADsO(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IADsO, + IADsO_Vtbl, + 0xa1cd2dc6_effe_11cf_8abc_00c04fd8d503 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IADsO, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IADs); #[cfg(feature = "Win32_System_Com")] impl IADsO { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -4597,16 +4403,6 @@ impl IADsO { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IADsO, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IADs); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IADsO { - type Vtable = IADsO_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IADsO { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa1cd2dc6_effe_11cf_8abc_00c04fd8d503); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IADsO_Vtbl { @@ -4630,11 +4426,15 @@ pub struct IADsO_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] SetSeeAlso: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IADsOU(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IADsOU, + IADsOU_Vtbl, + 0xa2f733b8_effe_11cf_8abc_00c04fd8d503 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IADsOU, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IADs); #[cfg(feature = "Win32_System_Com")] impl IADsOU { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -4779,16 +4579,6 @@ impl IADsOU { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IADsOU, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IADs); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IADsOU { - type Vtable = IADsOU_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IADsOU { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa2f733b8_effe_11cf_8abc_00c04fd8d503); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IADsOU_Vtbl { @@ -4814,11 +4604,15 @@ pub struct IADsOU_Vtbl { pub BusinessCategory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SetBusinessCategory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrbusinesscategory: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IADsObjectOptions(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IADsObjectOptions, + IADsObjectOptions_Vtbl, + 0x46f14fda_232b_11d1_a808_00c04fd8d5a8 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IADsObjectOptions, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IADsObjectOptions { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4834,16 +4628,6 @@ impl IADsObjectOptions { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IADsObjectOptions, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IADsObjectOptions { - type Vtable = IADsObjectOptions_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IADsObjectOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x46f14fda_232b_11d1_a808_00c04fd8d5a8); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IADsObjectOptions_Vtbl { @@ -4857,11 +4641,15 @@ pub struct IADsObjectOptions_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] SetOption: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IADsOctetList(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IADsOctetList, + IADsOctetList_Vtbl, + 0x7b28b80f_4680_11d1_a3b4_00c04fb950dc +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IADsOctetList, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IADsOctetList { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4877,16 +4665,6 @@ impl IADsOctetList { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IADsOctetList, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IADsOctetList { - type Vtable = IADsOctetList_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IADsOctetList { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7b28b80f_4680_11d1_a3b4_00c04fb950dc); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IADsOctetList_Vtbl { @@ -4900,11 +4678,15 @@ pub struct IADsOctetList_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] SetOctetList: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IADsOpenDSObject(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IADsOpenDSObject, + IADsOpenDSObject_Vtbl, + 0xddf2891e_0f9c_11d0_8ad4_00c04fd8d503 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IADsOpenDSObject, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IADsOpenDSObject { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -4920,16 +4702,6 @@ impl IADsOpenDSObject { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IADsOpenDSObject, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IADsOpenDSObject { - type Vtable = IADsOpenDSObject_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IADsOpenDSObject { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xddf2891e_0f9c_11d0_8ad4_00c04fd8d503); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IADsOpenDSObject_Vtbl { @@ -4939,11 +4711,15 @@ pub struct IADsOpenDSObject_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] OpenDSObject: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IADsPath(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IADsPath, + IADsPath_Vtbl, + 0xb287fcd5_4080_11d1_a3ac_00c04fb950dc +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IADsPath, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IADsPath { pub unsafe fn Type(&self) -> ::windows_core::Result { @@ -4975,16 +4751,6 @@ impl IADsPath { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IADsPath, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IADsPath { - type Vtable = IADsPath_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IADsPath { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb287fcd5_4080_11d1_a3ac_00c04fb950dc); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IADsPath_Vtbl { @@ -4996,11 +4762,15 @@ pub struct IADsPath_Vtbl { pub Path: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SetPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpath: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IADsPathname(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IADsPathname, + IADsPathname_Vtbl, + 0xd592aed4_f420_11d0_a36e_00c04fb950dc +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IADsPathname, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IADsPathname { pub unsafe fn Set(&self, bstradspath: P0, lnsettype: i32) -> ::windows_core::Result<()> @@ -5055,16 +4825,6 @@ impl IADsPathname { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IADsPathname, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IADsPathname { - type Vtable = IADsPathname_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IADsPathname { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd592aed4_f420_11d0_a36e_00c04fb950dc); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IADsPathname_Vtbl { @@ -5084,11 +4844,15 @@ pub struct IADsPathname_Vtbl { pub EscapedMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows_core::HRESULT, pub SetEscapedMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lnescapedmode: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IADsPostalAddress(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IADsPostalAddress, + IADsPostalAddress_Vtbl, + 0x7adecf29_4680_11d1_a3b4_00c04fb950dc +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IADsPostalAddress, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IADsPostalAddress { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5104,16 +4868,6 @@ impl IADsPostalAddress { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IADsPostalAddress, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IADsPostalAddress { - type Vtable = IADsPostalAddress_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IADsPostalAddress { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7adecf29_4680_11d1_a3b4_00c04fb950dc); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IADsPostalAddress_Vtbl { @@ -5127,11 +4881,15 @@ pub struct IADsPostalAddress_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] SetPostalAddress: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IADsPrintJob(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IADsPrintJob, + IADsPrintJob_Vtbl, + 0x32fb6780_1ed0_11cf_a988_00aa006bc149 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IADsPrintJob, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IADs); #[cfg(feature = "Win32_System_Com")] impl IADsPrintJob { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -5280,16 +5038,6 @@ impl IADsPrintJob { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IADsPrintJob, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IADs); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IADsPrintJob { - type Vtable = IADsPrintJob_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IADsPrintJob { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x32fb6780_1ed0_11cf_a988_00aa006bc149); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IADsPrintJob_Vtbl { @@ -5313,11 +5061,15 @@ pub struct IADsPrintJob_Vtbl { pub NotifyPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SetNotifyPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrnotifypath: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IADsPrintJobOperations(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IADsPrintJobOperations, + IADsPrintJobOperations_Vtbl, + 0x9a52db30_1ecf_11cf_a988_00aa006bc149 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IADsPrintJobOperations, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IADs); #[cfg(feature = "Win32_System_Com")] impl IADsPrintJobOperations { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -5416,16 +5168,6 @@ impl IADsPrintJobOperations { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IADsPrintJobOperations, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IADs); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IADsPrintJobOperations { - type Vtable = IADsPrintJobOperations_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IADsPrintJobOperations { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9a52db30_1ecf_11cf_a988_00aa006bc149); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IADsPrintJobOperations_Vtbl { @@ -5438,11 +5180,15 @@ pub struct IADsPrintJobOperations_Vtbl { pub Pause: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Resume: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IADsPrintQueue(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IADsPrintQueue, + IADsPrintQueue_Vtbl, + 0xb15160d0_1226_11cf_a985_00aa006bc149 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IADsPrintQueue, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IADs); #[cfg(feature = "Win32_System_Com")] impl IADsPrintQueue { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -5636,16 +5382,6 @@ impl IADsPrintQueue { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IADsPrintQueue, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IADs); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IADsPrintQueue { - type Vtable = IADsPrintQueue_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IADsPrintQueue { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb15160d0_1226_11cf_a985_00aa006bc149); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IADsPrintQueue_Vtbl { @@ -5689,11 +5425,15 @@ pub struct IADsPrintQueue_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] SetNetAddresses: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IADsPrintQueueOperations(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IADsPrintQueueOperations, + IADsPrintQueueOperations_Vtbl, + 0x124be5c0_156e_11cf_a986_00aa006bc149 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IADsPrintQueueOperations, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IADs); #[cfg(feature = "Win32_System_Com")] impl IADsPrintQueueOperations { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -5786,16 +5526,6 @@ impl IADsPrintQueueOperations { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IADsPrintQueueOperations, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IADs); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IADsPrintQueueOperations { - type Vtable = IADsPrintQueueOperations_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IADsPrintQueueOperations { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x124be5c0_156e_11cf_a986_00aa006bc149); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IADsPrintQueueOperations_Vtbl { @@ -5809,11 +5539,15 @@ pub struct IADsPrintQueueOperations_Vtbl { pub Resume: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Purge: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IADsProperty(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IADsProperty, + IADsProperty_Vtbl, + 0xc8f93dd3_4ae0_11cf_9e73_00aa004a5691 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IADsProperty, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IADs); #[cfg(feature = "Win32_System_Com")] impl IADsProperty { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -5937,16 +5671,6 @@ impl IADsProperty { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IADsProperty, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IADs); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IADsProperty { - type Vtable = IADsProperty_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IADsProperty { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc8f93dd3_4ae0_11cf_9e73_00aa004a5691); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IADsProperty_Vtbl { @@ -5966,11 +5690,15 @@ pub struct IADsProperty_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Qualifiers: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IADsPropertyEntry(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IADsPropertyEntry, + IADsPropertyEntry_Vtbl, + 0x05792c8e_941f_11d0_8529_00c04fd8d503 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IADsPropertyEntry, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IADsPropertyEntry { pub unsafe fn Clear(&self) -> ::windows_core::Result<()> { @@ -6013,16 +5741,6 @@ impl IADsPropertyEntry { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IADsPropertyEntry, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IADsPropertyEntry { - type Vtable = IADsPropertyEntry_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IADsPropertyEntry { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x05792c8e_941f_11d0_8529_00c04fd8d503); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IADsPropertyEntry_Vtbl { @@ -6043,11 +5761,15 @@ pub struct IADsPropertyEntry_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] SetValues: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IADsPropertyList(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IADsPropertyList, + IADsPropertyList_Vtbl, + 0xc6f602b6_8f69_11d0_8528_00c04fd8d503 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IADsPropertyList, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IADsPropertyList { pub unsafe fn PropertyCount(&self) -> ::windows_core::Result { @@ -6095,16 +5817,6 @@ impl IADsPropertyList { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IADsPropertyList, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IADsPropertyList { - type Vtable = IADsPropertyList_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IADsPropertyList { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc6f602b6_8f69_11d0_8528_00c04fd8d503); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IADsPropertyList_Vtbl { @@ -6134,11 +5846,15 @@ pub struct IADsPropertyList_Vtbl { ResetPropertyItem: usize, pub PurgePropertyList: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IADsPropertyValue(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IADsPropertyValue, + IADsPropertyValue_Vtbl, + 0x79fa9ad0_a97c_11d0_8534_00c04fd8d503 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IADsPropertyValue, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IADsPropertyValue { pub unsafe fn Clear(&self) -> ::windows_core::Result<()> { @@ -6263,16 +5979,6 @@ impl IADsPropertyValue { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IADsPropertyValue, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IADsPropertyValue { - type Vtable = IADsPropertyValue_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IADsPropertyValue { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x79fa9ad0_a97c_11d0_8534_00c04fd8d503); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IADsPropertyValue_Vtbl { @@ -6321,11 +6027,15 @@ pub struct IADsPropertyValue_Vtbl { pub UTCTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut f64) -> ::windows_core::HRESULT, pub SetUTCTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dautctime: f64) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IADsPropertyValue2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IADsPropertyValue2, + IADsPropertyValue2_Vtbl, + 0x306e831c_5bc7_11d1_a3b8_00c04fb950dc +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IADsPropertyValue2, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IADsPropertyValue2 { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6340,16 +6050,6 @@ impl IADsPropertyValue2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IADsPropertyValue2, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IADsPropertyValue2 { - type Vtable = IADsPropertyValue2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IADsPropertyValue2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x306e831c_5bc7_11d1_a3b8_00c04fb950dc); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IADsPropertyValue2_Vtbl { @@ -6363,11 +6063,15 @@ pub struct IADsPropertyValue2_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] PutObjectProperty: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IADsReplicaPointer(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IADsReplicaPointer, + IADsReplicaPointer_Vtbl, + 0xf60fb803_4080_11d1_a3ac_00c04fb950dc +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IADsReplicaPointer, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IADsReplicaPointer { pub unsafe fn ServerName(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -6414,16 +6118,6 @@ impl IADsReplicaPointer { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IADsReplicaPointer, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IADsReplicaPointer { - type Vtable = IADsReplicaPointer_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IADsReplicaPointer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf60fb803_4080_11d1_a3ac_00c04fb950dc); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IADsReplicaPointer_Vtbl { @@ -6445,11 +6139,15 @@ pub struct IADsReplicaPointer_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] SetReplicaAddressHints: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IADsResource(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IADsResource, + IADsResource_Vtbl, + 0x34a05b20_4aab_11cf_ae2c_00aa006ebfb9 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IADsResource, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IADs); #[cfg(feature = "Win32_System_Com")] impl IADsResource { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -6539,16 +6237,6 @@ impl IADsResource { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IADsResource, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IADs); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IADsResource { - type Vtable = IADsResource_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IADsResource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x34a05b20_4aab_11cf_ae2c_00aa006ebfb9); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IADsResource_Vtbl { @@ -6558,11 +6246,15 @@ pub struct IADsResource_Vtbl { pub Path: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub LockCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IADsSecurityDescriptor(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IADsSecurityDescriptor, + IADsSecurityDescriptor_Vtbl, + 0xb8c787ca_9bdd_11d0_852c_00c04fd8d503 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IADsSecurityDescriptor, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IADsSecurityDescriptor { pub unsafe fn Revision(&self) -> ::windows_core::Result { @@ -6675,16 +6367,6 @@ impl IADsSecurityDescriptor { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IADsSecurityDescriptor, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IADsSecurityDescriptor { - type Vtable = IADsSecurityDescriptor_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IADsSecurityDescriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb8c787ca_9bdd_11d0_852c_00c04fd8d503); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IADsSecurityDescriptor_Vtbl { @@ -6726,11 +6408,15 @@ pub struct IADsSecurityDescriptor_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] CopySecurityDescriptor: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IADsSecurityUtility(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IADsSecurityUtility, + IADsSecurityUtility_Vtbl, + 0xa63251b2_5f21_474b_ab52_4a8efad10895 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IADsSecurityUtility, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IADsSecurityUtility { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6759,16 +6445,6 @@ impl IADsSecurityUtility { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IADsSecurityUtility, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IADsSecurityUtility { - type Vtable = IADsSecurityUtility_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IADsSecurityUtility { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa63251b2_5f21_474b_ab52_4a8efad10895); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IADsSecurityUtility_Vtbl { @@ -6788,11 +6464,15 @@ pub struct IADsSecurityUtility_Vtbl { pub SecurityMask: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows_core::HRESULT, pub SetSecurityMask: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lnsecuritymask: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IADsService(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IADsService, + IADsService_Vtbl, + 0x68af66e0_31ca_11cf_a98a_00aa006bc149 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IADsService, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IADs); #[cfg(feature = "Win32_System_Com")] impl IADsService { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -6978,16 +6658,6 @@ impl IADsService { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IADsService, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IADs); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IADsService { - type Vtable = IADsService_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IADsService { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x68af66e0_31ca_11cf_a98a_00aa006bc149); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IADsService_Vtbl { @@ -7023,11 +6693,15 @@ pub struct IADsService_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] SetDependencies: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IADsServiceOperations(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IADsServiceOperations, + IADsServiceOperations_Vtbl, + 0x5d7b33f0_31ca_11cf_a98a_00aa006bc149 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IADsServiceOperations, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IADs); #[cfg(feature = "Win32_System_Com")] impl IADsServiceOperations { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -7123,16 +6797,6 @@ impl IADsServiceOperations { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IADsServiceOperations, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IADs); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IADsServiceOperations { - type Vtable = IADsServiceOperations_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IADsServiceOperations { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5d7b33f0_31ca_11cf_a98a_00aa006bc149); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IADsServiceOperations_Vtbl { @@ -7144,11 +6808,15 @@ pub struct IADsServiceOperations_Vtbl { pub Continue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetPassword: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrnewpassword: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IADsSession(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IADsSession, + IADsSession_Vtbl, + 0x398b7da0_4aab_11cf_ae2c_00aa006ebfb9 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IADsSession, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IADs); #[cfg(feature = "Win32_System_Com")] impl IADsSession { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -7246,16 +6914,6 @@ impl IADsSession { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IADsSession, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IADs); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IADsSession { - type Vtable = IADsSession_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IADsSession { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x398b7da0_4aab_11cf_ae2c_00aa006ebfb9); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IADsSession_Vtbl { @@ -7267,11 +6925,15 @@ pub struct IADsSession_Vtbl { pub ConnectTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows_core::HRESULT, pub IdleTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IADsSyntax(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IADsSyntax, + IADsSyntax_Vtbl, + 0xc8f93dd2_4ae0_11cf_9e73_00aa004a5691 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IADsSyntax, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IADs); #[cfg(feature = "Win32_System_Com")] impl IADsSyntax { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -7352,16 +7014,6 @@ impl IADsSyntax { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IADsSyntax, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IADs); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IADsSyntax { - type Vtable = IADsSyntax_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IADsSyntax { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc8f93dd2_4ae0_11cf_9e73_00aa004a5691); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IADsSyntax_Vtbl { @@ -7369,11 +7021,15 @@ pub struct IADsSyntax_Vtbl { pub OleAutoDataType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows_core::HRESULT, pub SetOleAutoDataType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lnoleautodatatype: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IADsTimestamp(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IADsTimestamp, + IADsTimestamp_Vtbl, + 0xb2f5a901_4080_11d1_a3ac_00c04fb950dc +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IADsTimestamp, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IADsTimestamp { pub unsafe fn WholeSeconds(&self) -> ::windows_core::Result { @@ -7392,16 +7048,6 @@ impl IADsTimestamp { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IADsTimestamp, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IADsTimestamp { - type Vtable = IADsTimestamp_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IADsTimestamp { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb2f5a901_4080_11d1_a3ac_00c04fb950dc); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IADsTimestamp_Vtbl { @@ -7411,11 +7057,15 @@ pub struct IADsTimestamp_Vtbl { pub EventID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows_core::HRESULT, pub SetEventID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lneventid: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IADsTypedName(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IADsTypedName, + IADsTypedName_Vtbl, + 0xb371a349_4080_11d1_a3ac_00c04fb950dc +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IADsTypedName, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IADsTypedName { pub unsafe fn ObjectName(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -7444,16 +7094,6 @@ impl IADsTypedName { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IADsTypedName, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IADsTypedName { - type Vtable = IADsTypedName_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IADsTypedName { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb371a349_4080_11d1_a3ac_00c04fb950dc); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IADsTypedName_Vtbl { @@ -7465,11 +7105,15 @@ pub struct IADsTypedName_Vtbl { pub Interval: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows_core::HRESULT, pub SetInterval: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lninterval: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IADsUser(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IADsUser, + IADsUser_Vtbl, + 0x3e37e320_17e2_11cf_abc4_02608c9e7553 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IADsUser, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IADs); #[cfg(feature = "Win32_System_Com")] impl IADsUser { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -7988,16 +7632,6 @@ impl IADsUser { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IADsUser, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IADs); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IADsUser { - type Vtable = IADsUser_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IADsUser { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3e37e320_17e2_11cf_abc4_02608c9e7553); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IADsUser_Vtbl { @@ -8175,11 +7809,15 @@ pub struct IADsUser_Vtbl { pub SetPassword: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newpassword: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub ChangePassword: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstroldpassword: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstrnewpassword: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IADsWinNTSystemInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IADsWinNTSystemInfo, + IADsWinNTSystemInfo_Vtbl, + 0x6c6d65dc_afd1_11d2_9cb9_0000f87a369e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IADsWinNTSystemInfo, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IADsWinNTSystemInfo { pub unsafe fn UserName(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -8200,16 +7838,6 @@ impl IADsWinNTSystemInfo { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IADsWinNTSystemInfo, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IADsWinNTSystemInfo { - type Vtable = IADsWinNTSystemInfo_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IADsWinNTSystemInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6c6d65dc_afd1_11d2_9cb9_0000f87a369e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IADsWinNTSystemInfo_Vtbl { @@ -8219,9 +7847,8 @@ pub struct IADsWinNTSystemInfo_Vtbl { pub DomainName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub PDC: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICommonQuery(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICommonQuery, ICommonQuery_Vtbl, 0xab50dec0_6f1d_11d0_a1c4_00aa00c16e65); +::windows_core::imp::interface_hierarchy!(ICommonQuery, ::windows_core::IUnknown); impl ICommonQuery { #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`"] #[cfg(feature = "Win32_System_Com_StructuredStorage")] @@ -8232,13 +7859,6 @@ impl ICommonQuery { (::windows_core::Interface::vtable(self).OpenQueryWindow)(::windows_core::Interface::as_raw(self), hwndparent.into_param().abi(), pquerywnd, ::core::mem::transmute(ppdataobject)).ok() } } -::windows_core::imp::interface_hierarchy!(ICommonQuery, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICommonQuery { - type Vtable = ICommonQuery_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICommonQuery { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xab50dec0_6f1d_11d0_a1c4_00aa00c16e65); -} #[repr(C)] #[doc(hidden)] pub struct ICommonQuery_Vtbl { @@ -8248,9 +7868,8 @@ pub struct ICommonQuery_Vtbl { #[cfg(not(feature = "Win32_System_Com_StructuredStorage"))] OpenQueryWindow: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectoryObject(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectoryObject, IDirectoryObject_Vtbl, 0xe798de2c_22e4_11d0_84fe_00c04fd8d503); +::windows_core::imp::interface_hierarchy!(IDirectoryObject, ::windows_core::IUnknown); impl IDirectoryObject { pub unsafe fn GetObjectInformation(&self) -> ::windows_core::Result<*mut ADS_OBJECT_INFO> { let mut result__ = ::std::mem::zeroed(); @@ -8279,13 +7898,6 @@ impl IDirectoryObject { (::windows_core::Interface::vtable(self).DeleteDSObject)(::windows_core::Interface::as_raw(self), pszrdnname.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectoryObject, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectoryObject { - type Vtable = IDirectoryObject_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectoryObject { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe798de2c_22e4_11d0_84fe_00c04fd8d503); -} #[repr(C)] #[doc(hidden)] pub struct IDirectoryObject_Vtbl { @@ -8299,9 +7911,8 @@ pub struct IDirectoryObject_Vtbl { CreateDSObject: usize, pub DeleteDSObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszrdnname: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectorySchemaMgmt(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectorySchemaMgmt, IDirectorySchemaMgmt_Vtbl, 0x75db3b9c_a4d8_11d0_a79c_00c04fd8d5a8); +::windows_core::imp::interface_hierarchy!(IDirectorySchemaMgmt, ::windows_core::IUnknown); impl IDirectorySchemaMgmt { pub unsafe fn EnumAttributes(&self, ppszattrnames: *const ::windows_core::PCWSTR, dwnumattributes: u32, ppattrdefinition: *const *const ADS_ATTR_DEF, pdwnumattributes: *const u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).EnumAttributes)(::windows_core::Interface::as_raw(self), ppszattrnames, dwnumattributes, ppattrdefinition, pdwnumattributes).ok() @@ -8346,13 +7957,6 @@ impl IDirectorySchemaMgmt { (::windows_core::Interface::vtable(self).DeleteClassDefinition)(::windows_core::Interface::as_raw(self), pszclassname.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectorySchemaMgmt, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectorySchemaMgmt { - type Vtable = IDirectorySchemaMgmt_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectorySchemaMgmt { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x75db3b9c_a4d8_11d0_a79c_00c04fd8d5a8); -} #[repr(C)] #[doc(hidden)] pub struct IDirectorySchemaMgmt_Vtbl { @@ -8366,9 +7970,8 @@ pub struct IDirectorySchemaMgmt_Vtbl { pub CreateClassDefinition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszclassname: ::windows_core::PCWSTR, pclassdefinition: *const ADS_CLASS_DEF) -> ::windows_core::HRESULT, pub DeleteClassDefinition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszclassname: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectorySearch(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectorySearch, IDirectorySearch_Vtbl, 0x109ba8ec_92f0_11d0_a790_00c04fd8d5a8); +::windows_core::imp::interface_hierarchy!(IDirectorySearch, ::windows_core::IUnknown); impl IDirectorySearch { pub unsafe fn SetSearchPreference(&self, psearchprefs: *const ADS_SEARCHPREF_INFO, dwnumprefs: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetSearchPreference)(::windows_core::Interface::as_raw(self), psearchprefs, dwnumprefs).ok() @@ -8427,13 +8030,6 @@ impl IDirectorySearch { (::windows_core::Interface::vtable(self).CloseSearchHandle)(::windows_core::Interface::as_raw(self), hsearchresult.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectorySearch, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectorySearch { - type Vtable = IDirectorySearch_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectorySearch { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x109ba8ec_92f0_11d0_a790_00c04fd8d5a8); -} #[repr(C)] #[doc(hidden)] pub struct IDirectorySearch_Vtbl { @@ -8449,9 +8045,8 @@ pub struct IDirectorySearch_Vtbl { pub FreeColumn: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psearchcolumn: *const ADS_SEARCH_COLUMN) -> ::windows_core::HRESULT, pub CloseSearchHandle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hsearchresult: ADS_SEARCH_HANDLE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDsAdminCreateObj(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDsAdminCreateObj, IDsAdminCreateObj_Vtbl, 0x53554a38_f902_11d2_82b9_00c04f68928b); +::windows_core::imp::interface_hierarchy!(IDsAdminCreateObj, ::windows_core::IUnknown); impl IDsAdminCreateObj { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -8473,13 +8068,6 @@ impl IDsAdminCreateObj { (::windows_core::Interface::vtable(self).CreateModal)(::windows_core::Interface::as_raw(self), hwndparent.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDsAdminCreateObj, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDsAdminCreateObj { - type Vtable = IDsAdminCreateObj_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDsAdminCreateObj { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x53554a38_f902_11d2_82b9_00c04f68928b); -} #[repr(C)] #[doc(hidden)] pub struct IDsAdminCreateObj_Vtbl { @@ -8493,9 +8081,8 @@ pub struct IDsAdminCreateObj_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] CreateModal: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDsAdminNewObj(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDsAdminNewObj, IDsAdminNewObj_Vtbl, 0xf2573587_e6fc_11d2_82af_00c04f68928b); +::windows_core::imp::interface_hierarchy!(IDsAdminNewObj, ::windows_core::IUnknown); impl IDsAdminNewObj { pub unsafe fn SetButtons(&self, ncurrindex: u32, bvalid: P0) -> ::windows_core::Result<()> where @@ -8507,13 +8094,6 @@ impl IDsAdminNewObj { (::windows_core::Interface::vtable(self).GetPageCounts)(::windows_core::Interface::as_raw(self), pntotal, pnstartindex).ok() } } -::windows_core::imp::interface_hierarchy!(IDsAdminNewObj, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDsAdminNewObj { - type Vtable = IDsAdminNewObj_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDsAdminNewObj { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf2573587_e6fc_11d2_82af_00c04f68928b); -} #[repr(C)] #[doc(hidden)] pub struct IDsAdminNewObj_Vtbl { @@ -8521,9 +8101,8 @@ pub struct IDsAdminNewObj_Vtbl { pub SetButtons: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ncurrindex: u32, bvalid: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub GetPageCounts: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pntotal: *mut i32, pnstartindex: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDsAdminNewObjExt(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDsAdminNewObjExt, IDsAdminNewObjExt_Vtbl, 0x6088eae2_e7bf_11d2_82af_00c04f68928b); +::windows_core::imp::interface_hierarchy!(IDsAdminNewObjExt, ::windows_core::IUnknown); impl IDsAdminNewObjExt { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_UI_WindowsAndMessaging\"`"] #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_WindowsAndMessaging"))] @@ -8568,13 +8147,6 @@ impl IDsAdminNewObjExt { (::windows_core::Interface::vtable(self).GetSummaryInfo)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pbstrtext)).ok() } } -::windows_core::imp::interface_hierarchy!(IDsAdminNewObjExt, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDsAdminNewObjExt { - type Vtable = IDsAdminNewObjExt_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDsAdminNewObjExt { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6088eae2_e7bf_11d2_82af_00c04f68928b); -} #[repr(C)] #[doc(hidden)] pub struct IDsAdminNewObjExt_Vtbl { @@ -8595,9 +8167,8 @@ pub struct IDsAdminNewObjExt_Vtbl { pub OnError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwnd: super::super::Foundation::HWND, hr: ::windows_core::HRESULT, ucontext: u32) -> ::windows_core::HRESULT, pub GetSummaryInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtext: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDsAdminNewObjPrimarySite(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDsAdminNewObjPrimarySite, IDsAdminNewObjPrimarySite_Vtbl, 0xbe2b487e_f904_11d2_82b9_00c04f68928b); +::windows_core::imp::interface_hierarchy!(IDsAdminNewObjPrimarySite, ::windows_core::IUnknown); impl IDsAdminNewObjPrimarySite { pub unsafe fn CreateNew(&self, pszname: P0) -> ::windows_core::Result<()> where @@ -8609,13 +8180,6 @@ impl IDsAdminNewObjPrimarySite { (::windows_core::Interface::vtable(self).Commit)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IDsAdminNewObjPrimarySite, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDsAdminNewObjPrimarySite { - type Vtable = IDsAdminNewObjPrimarySite_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDsAdminNewObjPrimarySite { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbe2b487e_f904_11d2_82b9_00c04f68928b); -} #[repr(C)] #[doc(hidden)] pub struct IDsAdminNewObjPrimarySite_Vtbl { @@ -8623,9 +8187,8 @@ pub struct IDsAdminNewObjPrimarySite_Vtbl { pub CreateNew: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszname: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub Commit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDsAdminNotifyHandler(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDsAdminNotifyHandler, IDsAdminNotifyHandler_Vtbl, 0xe4a2b8b3_5a18_11d2_97c1_00a0c9a06d2d); +::windows_core::imp::interface_hierarchy!(IDsAdminNotifyHandler, ::windows_core::IUnknown); impl IDsAdminNotifyHandler { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -8651,13 +8214,6 @@ impl IDsAdminNotifyHandler { (::windows_core::Interface::vtable(self).End)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IDsAdminNotifyHandler, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDsAdminNotifyHandler { - type Vtable = IDsAdminNotifyHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDsAdminNotifyHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe4a2b8b3_5a18_11d2_97c1_00a0c9a06d2d); -} #[repr(C)] #[doc(hidden)] pub struct IDsAdminNotifyHandler_Vtbl { @@ -8673,9 +8229,8 @@ pub struct IDsAdminNotifyHandler_Vtbl { pub Notify: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nitem: u32, uflags: u32) -> ::windows_core::HRESULT, pub End: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDsBrowseDomainTree(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDsBrowseDomainTree, IDsBrowseDomainTree_Vtbl, 0x7cabcf1e_78f5_11d2_960c_00c04fa31a86); +::windows_core::imp::interface_hierarchy!(IDsBrowseDomainTree, ::windows_core::IUnknown); impl IDsBrowseDomainTree { pub unsafe fn BrowseTo(&self, hwndparent: P0, ppsztargetpath: *mut ::windows_core::PWSTR, dwflags: u32) -> ::windows_core::Result<()> where @@ -8701,13 +8256,6 @@ impl IDsBrowseDomainTree { (::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::imp::interface_hierarchy!(IDsBrowseDomainTree, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDsBrowseDomainTree { - type Vtable = IDsBrowseDomainTree_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDsBrowseDomainTree { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7cabcf1e_78f5_11d2_960c_00c04fa31a86); -} #[repr(C)] #[doc(hidden)] pub struct IDsBrowseDomainTree_Vtbl { @@ -8718,9 +8266,8 @@ pub struct IDsBrowseDomainTree_Vtbl { pub FlushCachedDomains: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetComputer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszcomputername: ::windows_core::PCWSTR, pszusername: ::windows_core::PCWSTR, pszpassword: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDsDisplaySpecifier(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDsDisplaySpecifier, IDsDisplaySpecifier_Vtbl, 0x1ab4a8c0_6a0b_11d2_ad49_00c04fa31a86); +::windows_core::imp::interface_hierarchy!(IDsDisplaySpecifier, ::windows_core::IUnknown); impl IDsDisplaySpecifier { pub unsafe fn SetServer(&self, pszserver: P0, pszusername: P1, pszpassword: P2, dwflags: u32) -> ::windows_core::Result<()> where @@ -8793,13 +8340,6 @@ impl IDsDisplaySpecifier { (::windows_core::Interface::vtable(self).GetAttributeADsType)(::windows_core::Interface::as_raw(self), pszattributename.into_param().abi()) } } -::windows_core::imp::interface_hierarchy!(IDsDisplaySpecifier, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDsDisplaySpecifier { - type Vtable = IDsDisplaySpecifier_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDsDisplaySpecifier { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1ab4a8c0_6a0b_11d2_ad49_00c04fa31a86); -} #[repr(C)] #[doc(hidden)] pub struct IDsDisplaySpecifier_Vtbl { @@ -8819,9 +8359,8 @@ pub struct IDsDisplaySpecifier_Vtbl { pub EnumClassAttributes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszobjectclass: ::windows_core::PCWSTR, pcbenum: LPDSENUMATTRIBUTES, lparam: super::super::Foundation::LPARAM) -> ::windows_core::HRESULT, pub GetAttributeADsType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszattributename: ::windows_core::PCWSTR) -> ADSTYPE, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDsObjectPicker(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDsObjectPicker, IDsObjectPicker_Vtbl, 0x0c87e64e_3b7a_11d2_b9e0_00c04fd8dbf7); +::windows_core::imp::interface_hierarchy!(IDsObjectPicker, ::windows_core::IUnknown); impl IDsObjectPicker { pub unsafe fn Initialize(&self, pinitinfo: *mut DSOP_INIT_INFO) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Initialize)(::windows_core::Interface::as_raw(self), pinitinfo).ok() @@ -8836,13 +8375,6 @@ impl IDsObjectPicker { (::windows_core::Interface::vtable(self).InvokeDialog)(::windows_core::Interface::as_raw(self), hwndparent.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDsObjectPicker, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDsObjectPicker { - type Vtable = IDsObjectPicker_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDsObjectPicker { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c87e64e_3b7a_11d2_b9e0_00c04fd8dbf7); -} #[repr(C)] #[doc(hidden)] pub struct IDsObjectPicker_Vtbl { @@ -8853,9 +8385,8 @@ pub struct IDsObjectPicker_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] InvokeDialog: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDsObjectPickerCredentials(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDsObjectPickerCredentials, IDsObjectPickerCredentials_Vtbl, 0xe2d3ec9b_d041_445a_8f16_4748de8fb1cf); +::windows_core::imp::interface_hierarchy!(IDsObjectPickerCredentials, ::windows_core::IUnknown, IDsObjectPicker); impl IDsObjectPickerCredentials { pub unsafe fn Initialize(&self, pinitinfo: *mut DSOP_INIT_INFO) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.Initialize)(::windows_core::Interface::as_raw(self), pinitinfo).ok() @@ -8877,24 +8408,21 @@ impl IDsObjectPickerCredentials { (::windows_core::Interface::vtable(self).SetCredentials)(::windows_core::Interface::as_raw(self), szusername.into_param().abi(), szpassword.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IDsObjectPickerCredentials, ::windows_core::IUnknown, IDsObjectPicker); -unsafe impl ::windows_core::Interface for IDsObjectPickerCredentials { - type Vtable = IDsObjectPickerCredentials_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDsObjectPickerCredentials { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe2d3ec9b_d041_445a_8f16_4748de8fb1cf); -} #[repr(C)] #[doc(hidden)] pub struct IDsObjectPickerCredentials_Vtbl { pub base__: IDsObjectPicker_Vtbl, pub SetCredentials: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, szusername: ::windows_core::PCWSTR, szpassword: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPersistQuery(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IPersistQuery, + IPersistQuery_Vtbl, + 0x1a3114b8_a62e_11d0_a6c5_00a0c906af45 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IPersistQuery, ::windows_core::IUnknown, super::super::System::Com::IPersist); #[cfg(feature = "Win32_System_Com")] impl IPersistQuery { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -8951,16 +8479,6 @@ impl IPersistQuery { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IPersistQuery, ::windows_core::IUnknown, super::super::System::Com::IPersist); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IPersistQuery { - type Vtable = IPersistQuery_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IPersistQuery { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1a3114b8_a62e_11d0_a6c5_00a0c906af45); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IPersistQuery_Vtbl { @@ -8973,9 +8491,8 @@ pub struct IPersistQuery_Vtbl { pub ReadStruct: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psection: ::windows_core::PCWSTR, pvaluename: ::windows_core::PCWSTR, pstruct: *mut ::core::ffi::c_void, cbstruct: u32) -> ::windows_core::HRESULT, pub Clear: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrivateDispatch(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPrivateDispatch, IPrivateDispatch_Vtbl, 0x86ab4bbe_65f6_11d1_8c13_00c04fd8d503); +::windows_core::imp::interface_hierarchy!(IPrivateDispatch, ::windows_core::IUnknown); impl IPrivateDispatch { pub unsafe fn ADSIInitializeDispatchManager(&self, dwextensionid: i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).ADSIInitializeDispatchManager)(::windows_core::Interface::as_raw(self), dwextensionid).ok() @@ -9000,13 +8517,6 @@ impl IPrivateDispatch { (::windows_core::Interface::vtable(self).ADSIInvoke)(::windows_core::Interface::as_raw(self), dispidmember, riid, lcid, wflags, pdispparams, pvarresult, pexcepinfo, puargerr).ok() } } -::windows_core::imp::interface_hierarchy!(IPrivateDispatch, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrivateDispatch { - type Vtable = IPrivateDispatch_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrivateDispatch { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x86ab4bbe_65f6_11d1_8c13_00c04fd8d503); -} #[repr(C)] #[doc(hidden)] pub struct IPrivateDispatch_Vtbl { @@ -9023,9 +8533,8 @@ pub struct IPrivateDispatch_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] ADSIInvoke: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrivateUnknown(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPrivateUnknown, IPrivateUnknown_Vtbl, 0x89126bab_6ead_11d1_8c18_00c04fd8d503); +::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 @@ -9038,13 +8547,6 @@ impl IPrivateUnknown { (::windows_core::Interface::vtable(self).ADSIReleaseObject)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IPrivateUnknown, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrivateUnknown { - type Vtable = IPrivateUnknown_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrivateUnknown { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x89126bab_6ead_11d1_8c18_00c04fd8d503); -} #[repr(C)] #[doc(hidden)] pub struct IPrivateUnknown_Vtbl { @@ -9052,9 +8554,8 @@ pub struct IPrivateUnknown_Vtbl { pub ADSIInitializeObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpszusername: ::std::mem::MaybeUninit<::windows_core::BSTR>, lpszpassword: ::std::mem::MaybeUninit<::windows_core::BSTR>, lnreserved: i32) -> ::windows_core::HRESULT, pub ADSIReleaseObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IQueryForm(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IQueryForm, IQueryForm_Vtbl, 0x8cfcee30_39bd_11d0_b8d1_00a024ab2dbb); +::windows_core::imp::interface_hierarchy!(IQueryForm, ::windows_core::IUnknown); impl IQueryForm { #[doc = "Required features: `\"Win32_System_Registry\"`"] #[cfg(feature = "Win32_System_Registry")] @@ -9081,13 +8582,6 @@ impl IQueryForm { (::windows_core::Interface::vtable(self).AddPages)(::windows_core::Interface::as_raw(self), paddpagesproc, lparam.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IQueryForm, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IQueryForm { - type Vtable = IQueryForm_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IQueryForm { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8cfcee30_39bd_11d0_b8d1_00a024ab2dbb); -} #[repr(C)] #[doc(hidden)] pub struct IQueryForm_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Networking/BackgroundIntelligentTransferService/impl.rs b/crates/libs/windows/src/Windows/Win32/Networking/BackgroundIntelligentTransferService/impl.rs index b558f510ed..07f13ae35a 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/BackgroundIntelligentTransferService/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/BackgroundIntelligentTransferService/impl.rs @@ -50,7 +50,7 @@ impl AsyncIBackgroundCopyCallback_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -107,7 +107,7 @@ impl IBITSExtensionSetup_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -134,7 +134,7 @@ impl IBITSExtensionSetupFactory_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::(), GetObject: GetObject:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IBackgroundCopyCallback_Impl: Sized { @@ -168,7 +168,7 @@ impl IBackgroundCopyCallback_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IBackgroundCopyCallback1_Impl: Sized { @@ -202,7 +202,7 @@ impl IBackgroundCopyCallback1_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IBackgroundCopyCallback2_Impl: Sized + IBackgroundCopyCallback_Impl { @@ -219,7 +219,7 @@ impl IBackgroundCopyCallback2_Vtbl { Self { base__: IBackgroundCopyCallback_Vtbl::new::(), FileTransferred: FileTransferred:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IBackgroundCopyCallback3_Impl: Sized + IBackgroundCopyCallback2_Impl { @@ -236,7 +236,7 @@ impl IBackgroundCopyCallback3_Vtbl { Self { base__: IBackgroundCopyCallback2_Vtbl::new::(), FileRangesTransferred: FileRangesTransferred:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IBackgroundCopyError_Impl: Sized { @@ -308,7 +308,7 @@ impl IBackgroundCopyError_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IBackgroundCopyFile_Impl: Sized { @@ -354,7 +354,7 @@ impl IBackgroundCopyFile_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IBackgroundCopyFile2_Impl: Sized + IBackgroundCopyFile_Impl { @@ -381,7 +381,7 @@ impl IBackgroundCopyFile2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IBackgroundCopyFile3_Impl: Sized + IBackgroundCopyFile2_Impl { @@ -440,7 +440,7 @@ impl IBackgroundCopyFile3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IBackgroundCopyFile4_Impl: Sized + IBackgroundCopyFile3_Impl { @@ -457,7 +457,7 @@ impl IBackgroundCopyFile4_Vtbl { Self { base__: IBackgroundCopyFile3_Vtbl::new::(), GetPeerDownloadStats: GetPeerDownloadStats:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IBackgroundCopyFile5_Impl: Sized + IBackgroundCopyFile4_Impl { @@ -490,7 +490,7 @@ impl IBackgroundCopyFile5_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IBackgroundCopyFile6_Impl: Sized + IBackgroundCopyFile5_Impl { @@ -524,7 +524,7 @@ impl IBackgroundCopyFile6_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -694,7 +694,7 @@ impl IBackgroundCopyGroup_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IBackgroundCopyJob_Impl: Sized { @@ -1015,7 +1015,7 @@ impl IBackgroundCopyJob_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IBackgroundCopyJob1_Impl: Sized { @@ -1108,7 +1108,7 @@ impl IBackgroundCopyJob1_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IBackgroundCopyJob2_Impl: Sized + IBackgroundCopyJob_Impl { @@ -1183,7 +1183,7 @@ impl IBackgroundCopyJob2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IBackgroundCopyJob3_Impl: Sized + IBackgroundCopyJob2_Impl { @@ -1230,7 +1230,7 @@ impl IBackgroundCopyJob3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IBackgroundCopyJob4_Impl: Sized + IBackgroundCopyJob3_Impl { @@ -1309,7 +1309,7 @@ impl IBackgroundCopyJob4_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IBackgroundCopyJob5_Impl: Sized + IBackgroundCopyJob4_Impl { @@ -1342,7 +1342,7 @@ impl IBackgroundCopyJob5_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IBackgroundCopyJobHttpOptions_Impl: Sized { @@ -1423,7 +1423,7 @@ impl IBackgroundCopyJobHttpOptions_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IBackgroundCopyJobHttpOptions2_Impl: Sized + IBackgroundCopyJobHttpOptions_Impl { @@ -1456,7 +1456,7 @@ impl IBackgroundCopyJobHttpOptions2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IBackgroundCopyJobHttpOptions3_Impl: Sized + IBackgroundCopyJobHttpOptions2_Impl { @@ -1483,7 +1483,7 @@ impl IBackgroundCopyJobHttpOptions3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IBackgroundCopyManager_Impl: Sized { @@ -1542,7 +1542,7 @@ impl IBackgroundCopyManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IBackgroundCopyQMgr_Impl: Sized { @@ -1594,7 +1594,7 @@ impl IBackgroundCopyQMgr_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IBackgroundCopyServerCertificateValidationCallback_Impl: Sized { @@ -1611,7 +1611,7 @@ impl IBackgroundCopyServerCertificateValidationCallback_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), ValidateServerCertificate: ValidateServerCertificate:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IBitsPeer_Impl: Sized { @@ -1663,7 +1663,7 @@ impl IBitsPeer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IBitsPeerCacheAdministration_Impl: Sized { @@ -1810,7 +1810,7 @@ impl IBitsPeerCacheAdministration_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IBitsPeerCacheRecord_Impl: Sized { @@ -1902,7 +1902,7 @@ impl IBitsPeerCacheRecord_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IBitsTokenOptions_Impl: Sized { @@ -1962,7 +1962,7 @@ impl IBitsTokenOptions_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumBackgroundCopyFiles_Impl: Sized { @@ -2022,7 +2022,7 @@ impl IEnumBackgroundCopyFiles_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumBackgroundCopyGroups_Impl: Sized { @@ -2082,7 +2082,7 @@ impl IEnumBackgroundCopyGroups_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumBackgroundCopyJobs_Impl: Sized { @@ -2142,7 +2142,7 @@ impl IEnumBackgroundCopyJobs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumBackgroundCopyJobs1_Impl: Sized { @@ -2202,7 +2202,7 @@ impl IEnumBackgroundCopyJobs1_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumBitsPeerCacheRecords_Impl: Sized { @@ -2262,7 +2262,7 @@ impl IEnumBitsPeerCacheRecords_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumBitsPeers_Impl: Sized { @@ -2322,6 +2322,6 @@ impl IEnumBitsPeers_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 378228690f..dd0ba26197 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/BackgroundIntelligentTransferService/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/BackgroundIntelligentTransferService/mod.rs @@ -1,6 +1,5 @@ -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct AsyncIBackgroundCopyCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(AsyncIBackgroundCopyCallback, AsyncIBackgroundCopyCallback_Vtbl, 0xca29d251_b4bb_4679_a3d9_ae8006119d54); +::windows_core::imp::interface_hierarchy!(AsyncIBackgroundCopyCallback, ::windows_core::IUnknown); impl AsyncIBackgroundCopyCallback { pub unsafe fn Begin_JobTransferred(&self, pjob: P0) -> ::windows_core::Result<()> where @@ -31,13 +30,6 @@ impl AsyncIBackgroundCopyCallback { (::windows_core::Interface::vtable(self).Finish_JobModification)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(AsyncIBackgroundCopyCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for AsyncIBackgroundCopyCallback { - type Vtable = AsyncIBackgroundCopyCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AsyncIBackgroundCopyCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xca29d251_b4bb_4679_a3d9_ae8006119d54); -} #[repr(C)] #[doc(hidden)] pub struct AsyncIBackgroundCopyCallback_Vtbl { @@ -49,11 +41,15 @@ pub struct AsyncIBackgroundCopyCallback_Vtbl { pub Begin_JobModification: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pjob: *mut ::core::ffi::c_void, dwreserved: u32) -> ::windows_core::HRESULT, pub Finish_JobModification: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBITSExtensionSetup(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IBITSExtensionSetup, + IBITSExtensionSetup_Vtbl, + 0x29cfbbf7_09e4_4b97_b0bc_f2287e3d8eb3 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IBITSExtensionSetup, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IBITSExtensionSetup { pub unsafe fn EnableBITSUploads(&self) -> ::windows_core::Result<()> { @@ -72,16 +68,6 @@ impl IBITSExtensionSetup { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IBITSExtensionSetup, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IBITSExtensionSetup { - type Vtable = IBITSExtensionSetup_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IBITSExtensionSetup { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x29cfbbf7_09e4_4b97_b0bc_f2287e3d8eb3); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IBITSExtensionSetup_Vtbl { @@ -91,11 +77,15 @@ pub struct IBITSExtensionSetup_Vtbl { pub GetCleanupTaskName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptaskname: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub GetCleanupTask: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppunk: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBITSExtensionSetupFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IBITSExtensionSetupFactory, + IBITSExtensionSetupFactory_Vtbl, + 0xd5d2d542_5503_4e64_8b48_72ef91a32ee1 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IBITSExtensionSetupFactory, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IBITSExtensionSetupFactory { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -109,16 +99,6 @@ impl IBITSExtensionSetupFactory { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IBITSExtensionSetupFactory, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IBITSExtensionSetupFactory { - type Vtable = IBITSExtensionSetupFactory_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IBITSExtensionSetupFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd5d2d542_5503_4e64_8b48_72ef91a32ee1); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IBITSExtensionSetupFactory_Vtbl { @@ -128,9 +108,8 @@ pub struct IBITSExtensionSetupFactory_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetObject: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundCopyCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBackgroundCopyCallback, IBackgroundCopyCallback_Vtbl, 0x97ea99c7_0186_4ad4_8df9_c5b4e0ed6b22); +::windows_core::imp::interface_hierarchy!(IBackgroundCopyCallback, ::windows_core::IUnknown); impl IBackgroundCopyCallback { pub unsafe fn JobTransferred(&self, pjob: P0) -> ::windows_core::Result<()> where @@ -152,13 +131,6 @@ impl IBackgroundCopyCallback { (::windows_core::Interface::vtable(self).JobModification)(::windows_core::Interface::as_raw(self), pjob.into_param().abi(), dwreserved).ok() } } -::windows_core::imp::interface_hierarchy!(IBackgroundCopyCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBackgroundCopyCallback { - type Vtable = IBackgroundCopyCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundCopyCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x97ea99c7_0186_4ad4_8df9_c5b4e0ed6b22); -} #[repr(C)] #[doc(hidden)] pub struct IBackgroundCopyCallback_Vtbl { @@ -167,9 +139,8 @@ pub struct IBackgroundCopyCallback_Vtbl { pub JobError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pjob: *mut ::core::ffi::c_void, perror: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub JobModification: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pjob: *mut ::core::ffi::c_void, dwreserved: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundCopyCallback1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBackgroundCopyCallback1, IBackgroundCopyCallback1_Vtbl, 0x084f6593_3800_4e08_9b59_99fa59addf82); +::windows_core::imp::interface_hierarchy!(IBackgroundCopyCallback1, ::windows_core::IUnknown); 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 @@ -193,13 +164,6 @@ impl IBackgroundCopyCallback1 { (::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::imp::interface_hierarchy!(IBackgroundCopyCallback1, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBackgroundCopyCallback1 { - type Vtable = IBackgroundCopyCallback1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundCopyCallback1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x084f6593_3800_4e08_9b59_99fa59addf82); -} #[repr(C)] #[doc(hidden)] pub struct IBackgroundCopyCallback1_Vtbl { @@ -208,9 +172,8 @@ pub struct IBackgroundCopyCallback1_Vtbl { pub OnProgress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, progresstype: u32, pgroup: *mut ::core::ffi::c_void, pjob: *mut ::core::ffi::c_void, dwfileindex: u32, dwprogressvalue: u32) -> ::windows_core::HRESULT, pub OnProgressEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, progresstype: u32, pgroup: *mut ::core::ffi::c_void, pjob: *mut ::core::ffi::c_void, dwfileindex: u32, dwprogressvalue: u32, dwbytearraysize: u32, pbyte: *const u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundCopyCallback2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBackgroundCopyCallback2, IBackgroundCopyCallback2_Vtbl, 0x659cdeac_489e_11d9_a9cd_000d56965251); +::windows_core::imp::interface_hierarchy!(IBackgroundCopyCallback2, ::windows_core::IUnknown, IBackgroundCopyCallback); impl IBackgroundCopyCallback2 { pub unsafe fn JobTransferred(&self, pjob: P0) -> ::windows_core::Result<()> where @@ -239,22 +202,14 @@ impl IBackgroundCopyCallback2 { (::windows_core::Interface::vtable(self).FileTransferred)(::windows_core::Interface::as_raw(self), pjob.into_param().abi(), pfile.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IBackgroundCopyCallback2, ::windows_core::IUnknown, IBackgroundCopyCallback); -unsafe impl ::windows_core::Interface for IBackgroundCopyCallback2 { - type Vtable = IBackgroundCopyCallback2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundCopyCallback2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x659cdeac_489e_11d9_a9cd_000d56965251); -} #[repr(C)] #[doc(hidden)] pub struct IBackgroundCopyCallback2_Vtbl { pub base__: IBackgroundCopyCallback_Vtbl, pub FileTransferred: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pjob: *mut ::core::ffi::c_void, pfile: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundCopyCallback3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBackgroundCopyCallback3, IBackgroundCopyCallback3_Vtbl, 0x98c97bd2_e32b_4ad8_a528_95fd8b16bd42); +::windows_core::imp::interface_hierarchy!(IBackgroundCopyCallback3, ::windows_core::IUnknown, IBackgroundCopyCallback, IBackgroundCopyCallback2); impl IBackgroundCopyCallback3 { pub unsafe fn JobTransferred(&self, pjob: P0) -> ::windows_core::Result<()> where @@ -290,22 +245,14 @@ impl IBackgroundCopyCallback3 { (::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::imp::interface_hierarchy!(IBackgroundCopyCallback3, ::windows_core::IUnknown, IBackgroundCopyCallback, IBackgroundCopyCallback2); -unsafe impl ::windows_core::Interface for IBackgroundCopyCallback3 { - type Vtable = IBackgroundCopyCallback3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundCopyCallback3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x98c97bd2_e32b_4ad8_a528_95fd8b16bd42); -} #[repr(C)] #[doc(hidden)] pub struct IBackgroundCopyCallback3_Vtbl { pub base__: IBackgroundCopyCallback2_Vtbl, pub FileRangesTransferred: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, job: *mut ::core::ffi::c_void, file: *mut ::core::ffi::c_void, rangecount: u32, ranges: *const BG_FILE_RANGE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundCopyError(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBackgroundCopyError, IBackgroundCopyError_Vtbl, 0x19c613a0_fcb8_4f28_81ae_897c3d078f81); +::windows_core::imp::interface_hierarchy!(IBackgroundCopyError, ::windows_core::IUnknown); impl IBackgroundCopyError { pub unsafe fn GetError(&self, pcontext: *mut BG_ERROR_CONTEXT, pcode: *mut ::windows_core::HRESULT) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetError)(::windows_core::Interface::as_raw(self), pcontext, pcode).ok() @@ -327,13 +274,6 @@ impl IBackgroundCopyError { (::windows_core::Interface::vtable(self).GetProtocol)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IBackgroundCopyError, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBackgroundCopyError { - type Vtable = IBackgroundCopyError_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundCopyError { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x19c613a0_fcb8_4f28_81ae_897c3d078f81); -} #[repr(C)] #[doc(hidden)] pub struct IBackgroundCopyError_Vtbl { @@ -344,9 +284,8 @@ pub struct IBackgroundCopyError_Vtbl { pub GetErrorContextDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, languageid: u32, pcontextdescription: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, pub GetProtocol: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pprotocol: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundCopyFile(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBackgroundCopyFile, IBackgroundCopyFile_Vtbl, 0x01b7bd23_fb88_4a77_8490_5891d3e4653a); +::windows_core::imp::interface_hierarchy!(IBackgroundCopyFile, ::windows_core::IUnknown); impl IBackgroundCopyFile { pub unsafe fn GetRemoteName(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); @@ -360,13 +299,6 @@ impl IBackgroundCopyFile { (::windows_core::Interface::vtable(self).GetProgress)(::windows_core::Interface::as_raw(self), pval).ok() } } -::windows_core::imp::interface_hierarchy!(IBackgroundCopyFile, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBackgroundCopyFile { - type Vtable = IBackgroundCopyFile_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundCopyFile { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x01b7bd23_fb88_4a77_8490_5891d3e4653a); -} #[repr(C)] #[doc(hidden)] pub struct IBackgroundCopyFile_Vtbl { @@ -375,9 +307,8 @@ pub struct IBackgroundCopyFile_Vtbl { pub GetLocalName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, pub GetProgress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut BG_FILE_PROGRESS) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundCopyFile2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBackgroundCopyFile2, IBackgroundCopyFile2_Vtbl, 0x83e81b93_0873_474d_8a8c_f2018b1a939c); +::windows_core::imp::interface_hierarchy!(IBackgroundCopyFile2, ::windows_core::IUnknown, IBackgroundCopyFile); impl IBackgroundCopyFile2 { pub unsafe fn GetRemoteName(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); @@ -400,13 +331,6 @@ impl IBackgroundCopyFile2 { (::windows_core::Interface::vtable(self).SetRemoteName)(::windows_core::Interface::as_raw(self), val.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IBackgroundCopyFile2, ::windows_core::IUnknown, IBackgroundCopyFile); -unsafe impl ::windows_core::Interface for IBackgroundCopyFile2 { - type Vtable = IBackgroundCopyFile2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundCopyFile2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x83e81b93_0873_474d_8a8c_f2018b1a939c); -} #[repr(C)] #[doc(hidden)] pub struct IBackgroundCopyFile2_Vtbl { @@ -414,9 +338,8 @@ pub struct IBackgroundCopyFile2_Vtbl { pub GetFileRanges: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rangecount: *mut u32, ranges: *mut *mut BG_FILE_RANGE) -> ::windows_core::HRESULT, pub SetRemoteName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, val: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundCopyFile3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBackgroundCopyFile3, IBackgroundCopyFile3_Vtbl, 0x659cdeaa_489e_11d9_a9cd_000d56965251); +::windows_core::imp::interface_hierarchy!(IBackgroundCopyFile3, ::windows_core::IUnknown, IBackgroundCopyFile, IBackgroundCopyFile2); impl IBackgroundCopyFile3 { pub unsafe fn GetRemoteName(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); @@ -457,13 +380,6 @@ impl IBackgroundCopyFile3 { (::windows_core::Interface::vtable(self).IsDownloadedFromPeer)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IBackgroundCopyFile3, ::windows_core::IUnknown, IBackgroundCopyFile, IBackgroundCopyFile2); -unsafe impl ::windows_core::Interface for IBackgroundCopyFile3 { - type Vtable = IBackgroundCopyFile3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundCopyFile3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x659cdeaa_489e_11d9_a9cd_000d56965251); -} #[repr(C)] #[doc(hidden)] pub struct IBackgroundCopyFile3_Vtbl { @@ -473,9 +389,8 @@ pub struct IBackgroundCopyFile3_Vtbl { pub GetValidationState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstate: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub IsDownloadedFromPeer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundCopyFile4(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBackgroundCopyFile4, IBackgroundCopyFile4_Vtbl, 0xef7e0655_7888_4960_b0e5_730846e03492); +::windows_core::imp::interface_hierarchy!(IBackgroundCopyFile4, ::windows_core::IUnknown, IBackgroundCopyFile, IBackgroundCopyFile2, IBackgroundCopyFile3); impl IBackgroundCopyFile4 { pub unsafe fn GetRemoteName(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); @@ -519,22 +434,14 @@ impl IBackgroundCopyFile4 { (::windows_core::Interface::vtable(self).GetPeerDownloadStats)(::windows_core::Interface::as_raw(self), pfromorigin, pfrompeers).ok() } } -::windows_core::imp::interface_hierarchy!(IBackgroundCopyFile4, ::windows_core::IUnknown, IBackgroundCopyFile, IBackgroundCopyFile2, IBackgroundCopyFile3); -unsafe impl ::windows_core::Interface for IBackgroundCopyFile4 { - type Vtable = IBackgroundCopyFile4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundCopyFile4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xef7e0655_7888_4960_b0e5_730846e03492); -} #[repr(C)] #[doc(hidden)] pub struct IBackgroundCopyFile4_Vtbl { pub base__: IBackgroundCopyFile3_Vtbl, pub GetPeerDownloadStats: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfromorigin: *mut u64, pfrompeers: *mut u64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundCopyFile5(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBackgroundCopyFile5, IBackgroundCopyFile5_Vtbl, 0x85c1657f_dafc_40e8_8834_df18ea25717e); +::windows_core::imp::interface_hierarchy!(IBackgroundCopyFile5, ::windows_core::IUnknown, IBackgroundCopyFile, IBackgroundCopyFile2, IBackgroundCopyFile3, IBackgroundCopyFile4); impl IBackgroundCopyFile5 { pub unsafe fn GetRemoteName(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); @@ -585,13 +492,6 @@ impl IBackgroundCopyFile5 { (::windows_core::Interface::vtable(self).GetProperty)(::windows_core::Interface::as_raw(self), propertyid, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IBackgroundCopyFile5, ::windows_core::IUnknown, IBackgroundCopyFile, IBackgroundCopyFile2, IBackgroundCopyFile3, IBackgroundCopyFile4); -unsafe impl ::windows_core::Interface for IBackgroundCopyFile5 { - type Vtable = IBackgroundCopyFile5_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundCopyFile5 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x85c1657f_dafc_40e8_8834_df18ea25717e); -} #[repr(C)] #[doc(hidden)] pub struct IBackgroundCopyFile5_Vtbl { @@ -599,9 +499,8 @@ pub struct IBackgroundCopyFile5_Vtbl { pub SetProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertyid: BITS_FILE_PROPERTY_ID, propertyvalue: BITS_FILE_PROPERTY_VALUE) -> ::windows_core::HRESULT, pub GetProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertyid: BITS_FILE_PROPERTY_ID, propertyvalue: *mut BITS_FILE_PROPERTY_VALUE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundCopyFile6(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBackgroundCopyFile6, IBackgroundCopyFile6_Vtbl, 0xcf6784f7_d677_49fd_9368_cb47aee9d1ad); +::windows_core::imp::interface_hierarchy!(IBackgroundCopyFile6, ::windows_core::IUnknown, IBackgroundCopyFile, IBackgroundCopyFile2, IBackgroundCopyFile3, IBackgroundCopyFile4, IBackgroundCopyFile5); impl IBackgroundCopyFile6 { pub unsafe fn GetRemoteName(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); @@ -661,13 +560,6 @@ impl IBackgroundCopyFile6 { (::windows_core::Interface::vtable(self).GetFilledFileRanges)(::windows_core::Interface::as_raw(self), rangecount, ranges).ok() } } -::windows_core::imp::interface_hierarchy!(IBackgroundCopyFile6, ::windows_core::IUnknown, IBackgroundCopyFile, IBackgroundCopyFile2, IBackgroundCopyFile3, IBackgroundCopyFile4, IBackgroundCopyFile5); -unsafe impl ::windows_core::Interface for IBackgroundCopyFile6 { - type Vtable = IBackgroundCopyFile6_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundCopyFile6 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcf6784f7_d677_49fd_9368_cb47aee9d1ad); -} #[repr(C)] #[doc(hidden)] pub struct IBackgroundCopyFile6_Vtbl { @@ -676,9 +568,8 @@ pub struct IBackgroundCopyFile6_Vtbl { pub RequestFileRanges: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rangecount: u32, ranges: *const BG_FILE_RANGE) -> ::windows_core::HRESULT, pub GetFilledFileRanges: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rangecount: *mut u32, ranges: *mut *mut BG_FILE_RANGE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundCopyGroup(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBackgroundCopyGroup, IBackgroundCopyGroup_Vtbl, 0x1ded80a7_53ea_424f_8a04_17fea9adc4f5); +::windows_core::imp::interface_hierarchy!(IBackgroundCopyGroup, ::windows_core::IUnknown); impl IBackgroundCopyGroup { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -741,13 +632,6 @@ impl IBackgroundCopyGroup { (::windows_core::Interface::vtable(self).SetNotificationPointer)(::windows_core::Interface::as_raw(self), iid, punk.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IBackgroundCopyGroup, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBackgroundCopyGroup { - type Vtable = IBackgroundCopyGroup_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundCopyGroup { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1ded80a7_53ea_424f_8a04_17fea9adc4f5); -} #[repr(C)] #[doc(hidden)] pub struct IBackgroundCopyGroup_Vtbl { @@ -774,9 +658,8 @@ pub struct IBackgroundCopyGroup_Vtbl { pub QueryNewJobInterface: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, iid: *const ::windows_core::GUID, punk: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetNotificationPointer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, iid: *const ::windows_core::GUID, punk: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundCopyJob(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBackgroundCopyJob, IBackgroundCopyJob_Vtbl, 0x37668d37_507e_4160_9316_26306d150b12); +::windows_core::imp::interface_hierarchy!(IBackgroundCopyJob, ::windows_core::IUnknown); impl IBackgroundCopyJob { pub unsafe fn AddFileSet(&self, pfileset: &[BG_FILE_INFO]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).AddFileSet)(::windows_core::Interface::as_raw(self), pfileset.len().try_into().unwrap(), ::core::mem::transmute(pfileset.as_ptr())).ok() @@ -906,13 +789,6 @@ impl IBackgroundCopyJob { (::windows_core::Interface::vtable(self).TakeOwnership)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IBackgroundCopyJob, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBackgroundCopyJob { - type Vtable = IBackgroundCopyJob_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundCopyJob { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x37668d37_507e_4160_9316_26306d150b12); -} #[repr(C)] #[doc(hidden)] pub struct IBackgroundCopyJob_Vtbl { @@ -950,9 +826,8 @@ pub struct IBackgroundCopyJob_Vtbl { pub GetProxySettings: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pproxyusage: *mut BG_JOB_PROXY_USAGE, pproxylist: *mut ::windows_core::PWSTR, pproxybypasslist: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, pub TakeOwnership: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundCopyJob1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBackgroundCopyJob1, IBackgroundCopyJob1_Vtbl, 0x59f5553c_2031_4629_bb18_2645a6970947); +::windows_core::imp::interface_hierarchy!(IBackgroundCopyJob1, ::windows_core::IUnknown); impl IBackgroundCopyJob1 { pub unsafe fn CancelJob(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).CancelJob)(::windows_core::Interface::as_raw(self)).ok() @@ -983,13 +858,6 @@ impl IBackgroundCopyJob1 { (::windows_core::Interface::vtable(self).JobID)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IBackgroundCopyJob1, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBackgroundCopyJob1 { - type Vtable = IBackgroundCopyJob1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundCopyJob1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x59f5553c_2031_4629_bb18_2645a6970947); -} #[repr(C)] #[doc(hidden)] pub struct IBackgroundCopyJob1_Vtbl { @@ -1003,9 +871,8 @@ pub struct IBackgroundCopyJob1_Vtbl { pub SwitchToForeground: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub JobID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pguidjobid: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundCopyJob2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBackgroundCopyJob2, IBackgroundCopyJob2_Vtbl, 0x54b50739_686f_45eb_9dff_d6a9a0faa9af); +::windows_core::imp::interface_hierarchy!(IBackgroundCopyJob2, ::windows_core::IUnknown, IBackgroundCopyJob); impl IBackgroundCopyJob2 { pub unsafe fn AddFileSet(&self, pfileset: &[BG_FILE_INFO]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.AddFileSet)(::windows_core::Interface::as_raw(self), pfileset.len().try_into().unwrap(), ::core::mem::transmute(pfileset.as_ptr())).ok() @@ -1167,13 +1034,6 @@ impl IBackgroundCopyJob2 { (::windows_core::Interface::vtable(self).RemoveCredentials)(::windows_core::Interface::as_raw(self), target, scheme).ok() } } -::windows_core::imp::interface_hierarchy!(IBackgroundCopyJob2, ::windows_core::IUnknown, IBackgroundCopyJob); -unsafe impl ::windows_core::Interface for IBackgroundCopyJob2 { - type Vtable = IBackgroundCopyJob2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundCopyJob2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x54b50739_686f_45eb_9dff_d6a9a0faa9af); -} #[repr(C)] #[doc(hidden)] pub struct IBackgroundCopyJob2_Vtbl { @@ -1187,9 +1047,8 @@ pub struct IBackgroundCopyJob2_Vtbl { pub SetCredentials: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, credentials: *const BG_AUTH_CREDENTIALS) -> ::windows_core::HRESULT, pub RemoveCredentials: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, target: BG_AUTH_TARGET, scheme: BG_AUTH_SCHEME) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundCopyJob3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBackgroundCopyJob3, IBackgroundCopyJob3_Vtbl, 0x443c8934_90ff_48ed_bcde_26f5c7450042); +::windows_core::imp::interface_hierarchy!(IBackgroundCopyJob3, ::windows_core::IUnknown, IBackgroundCopyJob, IBackgroundCopyJob2); impl IBackgroundCopyJob3 { pub unsafe fn AddFileSet(&self, pfileset: &[BG_FILE_INFO]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.AddFileSet)(::windows_core::Interface::as_raw(self), pfileset.len().try_into().unwrap(), ::core::mem::transmute(pfileset.as_ptr())).ok() @@ -1372,13 +1231,6 @@ impl IBackgroundCopyJob3 { (::windows_core::Interface::vtable(self).GetFileACLFlags)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IBackgroundCopyJob3, ::windows_core::IUnknown, IBackgroundCopyJob, IBackgroundCopyJob2); -unsafe impl ::windows_core::Interface for IBackgroundCopyJob3 { - type Vtable = IBackgroundCopyJob3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundCopyJob3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x443c8934_90ff_48ed_bcde_26f5c7450042); -} #[repr(C)] #[doc(hidden)] pub struct IBackgroundCopyJob3_Vtbl { @@ -1388,9 +1240,8 @@ pub struct IBackgroundCopyJob3_Vtbl { pub SetFileACLFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: u32) -> ::windows_core::HRESULT, pub GetFileACLFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundCopyJob4(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBackgroundCopyJob4, IBackgroundCopyJob4_Vtbl, 0x659cdeae_489e_11d9_a9cd_000d56965251); +::windows_core::imp::interface_hierarchy!(IBackgroundCopyJob4, ::windows_core::IUnknown, IBackgroundCopyJob, IBackgroundCopyJob2, IBackgroundCopyJob3); impl IBackgroundCopyJob4 { pub unsafe fn AddFileSet(&self, pfileset: &[BG_FILE_INFO]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.AddFileSet)(::windows_core::Interface::as_raw(self), pfileset.len().try_into().unwrap(), ::core::mem::transmute(pfileset.as_ptr())).ok() @@ -1595,13 +1446,6 @@ impl IBackgroundCopyJob4 { (::windows_core::Interface::vtable(self).GetMaximumDownloadTime)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IBackgroundCopyJob4, ::windows_core::IUnknown, IBackgroundCopyJob, IBackgroundCopyJob2, IBackgroundCopyJob3); -unsafe impl ::windows_core::Interface for IBackgroundCopyJob4 { - type Vtable = IBackgroundCopyJob4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundCopyJob4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x659cdeae_489e_11d9_a9cd_000d56965251); -} #[repr(C)] #[doc(hidden)] pub struct IBackgroundCopyJob4_Vtbl { @@ -1613,9 +1457,8 @@ pub struct IBackgroundCopyJob4_Vtbl { pub SetMaximumDownloadTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, timeout: u32) -> ::windows_core::HRESULT, pub GetMaximumDownloadTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptimeout: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundCopyJob5(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBackgroundCopyJob5, IBackgroundCopyJob5_Vtbl, 0xe847030c_bbba_4657_af6d_484aa42bf1fe); +::windows_core::imp::interface_hierarchy!(IBackgroundCopyJob5, ::windows_core::IUnknown, IBackgroundCopyJob, IBackgroundCopyJob2, IBackgroundCopyJob3, IBackgroundCopyJob4); impl IBackgroundCopyJob5 { pub unsafe fn AddFileSet(&self, pfileset: &[BG_FILE_INFO]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.AddFileSet)(::windows_core::Interface::as_raw(self), pfileset.len().try_into().unwrap(), ::core::mem::transmute(pfileset.as_ptr())).ok() @@ -1827,13 +1670,6 @@ impl IBackgroundCopyJob5 { (::windows_core::Interface::vtable(self).GetProperty)(::windows_core::Interface::as_raw(self), propertyid, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IBackgroundCopyJob5, ::windows_core::IUnknown, IBackgroundCopyJob, IBackgroundCopyJob2, IBackgroundCopyJob3, IBackgroundCopyJob4); -unsafe impl ::windows_core::Interface for IBackgroundCopyJob5 { - type Vtable = IBackgroundCopyJob5_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundCopyJob5 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe847030c_bbba_4657_af6d_484aa42bf1fe); -} #[repr(C)] #[doc(hidden)] pub struct IBackgroundCopyJob5_Vtbl { @@ -1841,9 +1677,8 @@ pub struct IBackgroundCopyJob5_Vtbl { pub SetProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertyid: BITS_JOB_PROPERTY_ID, propertyvalue: BITS_JOB_PROPERTY_VALUE) -> ::windows_core::HRESULT, pub GetProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertyid: BITS_JOB_PROPERTY_ID, propertyvalue: *mut BITS_JOB_PROPERTY_VALUE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundCopyJobHttpOptions(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBackgroundCopyJobHttpOptions, IBackgroundCopyJobHttpOptions_Vtbl, 0xf1bd1079_9f01_4bdc_8036_f09b70095066); +::windows_core::imp::interface_hierarchy!(IBackgroundCopyJobHttpOptions, ::windows_core::IUnknown); impl IBackgroundCopyJobHttpOptions { pub unsafe fn SetClientCertificateByID(&self, storelocation: BG_CERT_STORE_LOCATION, storename: P0, pcerthashblob: &[u8; 20]) -> ::windows_core::Result<()> where @@ -1882,13 +1717,6 @@ impl IBackgroundCopyJobHttpOptions { (::windows_core::Interface::vtable(self).GetSecurityFlags)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IBackgroundCopyJobHttpOptions, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBackgroundCopyJobHttpOptions { - type Vtable = IBackgroundCopyJobHttpOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundCopyJobHttpOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf1bd1079_9f01_4bdc_8036_f09b70095066); -} #[repr(C)] #[doc(hidden)] pub struct IBackgroundCopyJobHttpOptions_Vtbl { @@ -1902,9 +1730,8 @@ pub struct IBackgroundCopyJobHttpOptions_Vtbl { pub SetSecurityFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: u32) -> ::windows_core::HRESULT, pub GetSecurityFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pflags: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundCopyJobHttpOptions2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBackgroundCopyJobHttpOptions2, IBackgroundCopyJobHttpOptions2_Vtbl, 0xb591a192_a405_4fc3_8323_4c5c542578fc); +::windows_core::imp::interface_hierarchy!(IBackgroundCopyJobHttpOptions2, ::windows_core::IUnknown, IBackgroundCopyJobHttpOptions); impl IBackgroundCopyJobHttpOptions2 { pub unsafe fn SetClientCertificateByID(&self, storelocation: BG_CERT_STORE_LOCATION, storename: P0, pcerthashblob: &[u8; 20]) -> ::windows_core::Result<()> where @@ -1953,13 +1780,6 @@ impl IBackgroundCopyJobHttpOptions2 { (::windows_core::Interface::vtable(self).GetHttpMethod)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IBackgroundCopyJobHttpOptions2, ::windows_core::IUnknown, IBackgroundCopyJobHttpOptions); -unsafe impl ::windows_core::Interface for IBackgroundCopyJobHttpOptions2 { - type Vtable = IBackgroundCopyJobHttpOptions2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundCopyJobHttpOptions2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb591a192_a405_4fc3_8323_4c5c542578fc); -} #[repr(C)] #[doc(hidden)] pub struct IBackgroundCopyJobHttpOptions2_Vtbl { @@ -1967,9 +1787,8 @@ pub struct IBackgroundCopyJobHttpOptions2_Vtbl { pub SetHttpMethod: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, method: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub GetHttpMethod: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, method: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundCopyJobHttpOptions3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBackgroundCopyJobHttpOptions3, IBackgroundCopyJobHttpOptions3_Vtbl, 0x8a9263d3_fd4c_4eda_9b28_30132a4d4e3c); +::windows_core::imp::interface_hierarchy!(IBackgroundCopyJobHttpOptions3, ::windows_core::IUnknown, IBackgroundCopyJobHttpOptions, IBackgroundCopyJobHttpOptions2); impl IBackgroundCopyJobHttpOptions3 { pub unsafe fn SetClientCertificateByID(&self, storelocation: BG_CERT_STORE_LOCATION, storename: P0, pcerthashblob: &[u8; 20]) -> ::windows_core::Result<()> where @@ -2027,13 +1846,6 @@ impl IBackgroundCopyJobHttpOptions3 { (::windows_core::Interface::vtable(self).MakeCustomHeadersWriteOnly)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IBackgroundCopyJobHttpOptions3, ::windows_core::IUnknown, IBackgroundCopyJobHttpOptions, IBackgroundCopyJobHttpOptions2); -unsafe impl ::windows_core::Interface for IBackgroundCopyJobHttpOptions3 { - type Vtable = IBackgroundCopyJobHttpOptions3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundCopyJobHttpOptions3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8a9263d3_fd4c_4eda_9b28_30132a4d4e3c); -} #[repr(C)] #[doc(hidden)] pub struct IBackgroundCopyJobHttpOptions3_Vtbl { @@ -2041,9 +1853,8 @@ pub struct IBackgroundCopyJobHttpOptions3_Vtbl { pub SetServerCertificateValidationInterface: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, certvalidationcallback: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub MakeCustomHeadersWriteOnly: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundCopyManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBackgroundCopyManager, IBackgroundCopyManager_Vtbl, 0x5ce34c0d_0dc9_4c1f_897c_daa1b78cee7c); +::windows_core::imp::interface_hierarchy!(IBackgroundCopyManager, ::windows_core::IUnknown); impl IBackgroundCopyManager { pub unsafe fn CreateJob(&self, displayname: P0, r#type: BG_JOB_TYPE, pjobid: *mut ::windows_core::GUID, ppjob: *mut ::core::option::Option) -> ::windows_core::Result<()> where @@ -2064,13 +1875,6 @@ impl IBackgroundCopyManager { (::windows_core::Interface::vtable(self).GetErrorDescription)(::windows_core::Interface::as_raw(self), hresult, languageid, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IBackgroundCopyManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBackgroundCopyManager { - type Vtable = IBackgroundCopyManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundCopyManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5ce34c0d_0dc9_4c1f_897c_daa1b78cee7c); -} #[repr(C)] #[doc(hidden)] pub struct IBackgroundCopyManager_Vtbl { @@ -2080,9 +1884,8 @@ pub struct IBackgroundCopyManager_Vtbl { pub EnumJobs: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwflags: u32, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetErrorDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hresult: ::windows_core::HRESULT, languageid: u32, perrordescription: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundCopyQMgr(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBackgroundCopyQMgr, IBackgroundCopyQMgr_Vtbl, 0x16f41c69_09f5_41d2_8cd8_3c08c47bc8a8); +::windows_core::imp::interface_hierarchy!(IBackgroundCopyQMgr, ::windows_core::IUnknown); impl IBackgroundCopyQMgr { pub unsafe fn CreateGroup(&self, guidgroupid: ::windows_core::GUID) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2097,13 +1900,6 @@ impl IBackgroundCopyQMgr { (::windows_core::Interface::vtable(self).EnumGroups)(::windows_core::Interface::as_raw(self), dwflags, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IBackgroundCopyQMgr, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBackgroundCopyQMgr { - type Vtable = IBackgroundCopyQMgr_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundCopyQMgr { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x16f41c69_09f5_41d2_8cd8_3c08c47bc8a8); -} #[repr(C)] #[doc(hidden)] pub struct IBackgroundCopyQMgr_Vtbl { @@ -2112,9 +1908,8 @@ pub struct IBackgroundCopyQMgr_Vtbl { pub GetGroup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, groupid: ::windows_core::GUID, ppgroup: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub EnumGroups: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwflags: u32, ppenumgroups: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBackgroundCopyServerCertificateValidationCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBackgroundCopyServerCertificateValidationCallback, IBackgroundCopyServerCertificateValidationCallback_Vtbl, 0x4cec0d02_def7_4158_813a_c32a46945ff7); +::windows_core::imp::interface_hierarchy!(IBackgroundCopyServerCertificateValidationCallback, ::windows_core::IUnknown); impl IBackgroundCopyServerCertificateValidationCallback { pub unsafe fn ValidateServerCertificate(&self, job: P0, file: P1, certdata: &[u8], certencodingtype: u32, certstoredata: &[u8]) -> ::windows_core::Result<()> where @@ -2124,22 +1919,14 @@ impl IBackgroundCopyServerCertificateValidationCallback { (::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::imp::interface_hierarchy!(IBackgroundCopyServerCertificateValidationCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBackgroundCopyServerCertificateValidationCallback { - type Vtable = IBackgroundCopyServerCertificateValidationCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBackgroundCopyServerCertificateValidationCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4cec0d02_def7_4158_813a_c32a46945ff7); -} #[repr(C)] #[doc(hidden)] pub struct IBackgroundCopyServerCertificateValidationCallback_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub ValidateServerCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, job: *mut ::core::ffi::c_void, file: *mut ::core::ffi::c_void, certlength: u32, certdata: *const u8, certencodingtype: u32, certstorelength: u32, certstoredata: *const u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBitsPeer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBitsPeer, IBitsPeer_Vtbl, 0x659cdea2_489e_11d9_a9cd_000d56965251); +::windows_core::imp::interface_hierarchy!(IBitsPeer, ::windows_core::IUnknown); impl IBitsPeer { pub unsafe fn GetPeerName(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); @@ -2154,13 +1941,6 @@ impl IBitsPeer { (::windows_core::Interface::vtable(self).IsAvailable)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IBitsPeer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBitsPeer { - type Vtable = IBitsPeer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBitsPeer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x659cdea2_489e_11d9_a9cd_000d56965251); -} #[repr(C)] #[doc(hidden)] pub struct IBitsPeer_Vtbl { @@ -2169,9 +1949,8 @@ pub struct IBitsPeer_Vtbl { pub IsAuthenticated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pauth: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub IsAvailable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ponline: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBitsPeerCacheAdministration(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBitsPeerCacheAdministration, IBitsPeerCacheAdministration_Vtbl, 0x659cdead_489e_11d9_a9cd_000d56965251); +::windows_core::imp::interface_hierarchy!(IBitsPeerCacheAdministration, ::windows_core::IUnknown); impl IBitsPeerCacheAdministration { pub unsafe fn GetMaximumCacheSize(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2225,13 +2004,6 @@ impl IBitsPeerCacheAdministration { (::windows_core::Interface::vtable(self).DiscoverPeers)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IBitsPeerCacheAdministration, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBitsPeerCacheAdministration { - type Vtable = IBitsPeerCacheAdministration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBitsPeerCacheAdministration { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x659cdead_489e_11d9_a9cd_000d56965251); -} #[repr(C)] #[doc(hidden)] pub struct IBitsPeerCacheAdministration_Vtbl { @@ -2251,9 +2023,8 @@ pub struct IBitsPeerCacheAdministration_Vtbl { pub ClearPeers: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub DiscoverPeers: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBitsPeerCacheRecord(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBitsPeerCacheRecord, IBitsPeerCacheRecord_Vtbl, 0x659cdeaf_489e_11d9_a9cd_000d56965251); +::windows_core::imp::interface_hierarchy!(IBitsPeerCacheRecord, ::windows_core::IUnknown); impl IBitsPeerCacheRecord { pub unsafe fn GetId(&self) -> ::windows_core::Result<::windows_core::GUID> { let mut result__ = ::std::mem::zeroed(); @@ -2282,13 +2053,6 @@ impl IBitsPeerCacheRecord { (::windows_core::Interface::vtable(self).GetFileRanges)(::windows_core::Interface::as_raw(self), prangecount, ppranges).ok() } } -::windows_core::imp::interface_hierarchy!(IBitsPeerCacheRecord, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBitsPeerCacheRecord { - type Vtable = IBitsPeerCacheRecord_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBitsPeerCacheRecord { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x659cdeaf_489e_11d9_a9cd_000d56965251); -} #[repr(C)] #[doc(hidden)] pub struct IBitsPeerCacheRecord_Vtbl { @@ -2301,9 +2065,8 @@ pub struct IBitsPeerCacheRecord_Vtbl { pub IsFileValidated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetFileRanges: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prangecount: *mut u32, ppranges: *mut *mut BG_FILE_RANGE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBitsTokenOptions(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBitsTokenOptions, IBitsTokenOptions_Vtbl, 0x9a2584c3_f7d2_457a_9a5e_22b67bffc7d2); +::windows_core::imp::interface_hierarchy!(IBitsTokenOptions, ::windows_core::IUnknown); impl IBitsTokenOptions { pub unsafe fn SetHelperTokenFlags(&self, usageflags: BG_TOKEN) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetHelperTokenFlags)(::windows_core::Interface::as_raw(self), usageflags).ok() @@ -2323,13 +2086,6 @@ impl IBitsTokenOptions { (::windows_core::Interface::vtable(self).GetHelperTokenSid)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IBitsTokenOptions, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBitsTokenOptions { - type Vtable = IBitsTokenOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBitsTokenOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9a2584c3_f7d2_457a_9a5e_22b67bffc7d2); -} #[repr(C)] #[doc(hidden)] pub struct IBitsTokenOptions_Vtbl { @@ -2340,9 +2096,8 @@ pub struct IBitsTokenOptions_Vtbl { pub ClearHelperToken: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetHelperTokenSid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psid: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumBackgroundCopyFiles(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumBackgroundCopyFiles, IEnumBackgroundCopyFiles_Vtbl, 0xca51e165_c365_424c_8d41_24aaa4ff3c40); +::windows_core::imp::interface_hierarchy!(IEnumBackgroundCopyFiles, ::windows_core::IUnknown); impl IEnumBackgroundCopyFiles { pub unsafe fn Next(&self, rgelt: &mut [::core::option::Option], pceltfetched: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), ::core::mem::transmute(rgelt.as_ptr()), pceltfetched).ok() @@ -2362,13 +2117,6 @@ impl IEnumBackgroundCopyFiles { (::windows_core::Interface::vtable(self).GetCount)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumBackgroundCopyFiles, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumBackgroundCopyFiles { - type Vtable = IEnumBackgroundCopyFiles_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumBackgroundCopyFiles { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xca51e165_c365_424c_8d41_24aaa4ff3c40); -} #[repr(C)] #[doc(hidden)] pub struct IEnumBackgroundCopyFiles_Vtbl { @@ -2379,9 +2127,8 @@ pub struct IEnumBackgroundCopyFiles_Vtbl { pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pucount: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumBackgroundCopyGroups(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumBackgroundCopyGroups, IEnumBackgroundCopyGroups_Vtbl, 0xd993e603_4aa4_47c5_8665_c20d39c2ba4f); +::windows_core::imp::interface_hierarchy!(IEnumBackgroundCopyGroups, ::windows_core::IUnknown); impl IEnumBackgroundCopyGroups { pub unsafe fn Next(&self, rgelt: &mut [::windows_core::GUID], pceltfetched: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), ::core::mem::transmute(rgelt.as_ptr()), pceltfetched).ok() @@ -2401,13 +2148,6 @@ impl IEnumBackgroundCopyGroups { (::windows_core::Interface::vtable(self).GetCount)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumBackgroundCopyGroups, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumBackgroundCopyGroups { - type Vtable = IEnumBackgroundCopyGroups_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumBackgroundCopyGroups { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd993e603_4aa4_47c5_8665_c20d39c2ba4f); -} #[repr(C)] #[doc(hidden)] pub struct IEnumBackgroundCopyGroups_Vtbl { @@ -2418,9 +2158,8 @@ pub struct IEnumBackgroundCopyGroups_Vtbl { pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pucount: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumBackgroundCopyJobs(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumBackgroundCopyJobs, IEnumBackgroundCopyJobs_Vtbl, 0x1af4f612_3b71_466f_8f58_7b6f73ac57ad); +::windows_core::imp::interface_hierarchy!(IEnumBackgroundCopyJobs, ::windows_core::IUnknown); impl IEnumBackgroundCopyJobs { pub unsafe fn Next(&self, rgelt: &mut [::core::option::Option], pceltfetched: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), ::core::mem::transmute(rgelt.as_ptr()), pceltfetched).ok() @@ -2440,13 +2179,6 @@ impl IEnumBackgroundCopyJobs { (::windows_core::Interface::vtable(self).GetCount)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumBackgroundCopyJobs, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumBackgroundCopyJobs { - type Vtable = IEnumBackgroundCopyJobs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumBackgroundCopyJobs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1af4f612_3b71_466f_8f58_7b6f73ac57ad); -} #[repr(C)] #[doc(hidden)] pub struct IEnumBackgroundCopyJobs_Vtbl { @@ -2457,9 +2189,8 @@ pub struct IEnumBackgroundCopyJobs_Vtbl { pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pucount: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumBackgroundCopyJobs1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumBackgroundCopyJobs1, IEnumBackgroundCopyJobs1_Vtbl, 0x8baeba9d_8f1c_42c4_b82c_09ae79980d25); +::windows_core::imp::interface_hierarchy!(IEnumBackgroundCopyJobs1, ::windows_core::IUnknown); impl IEnumBackgroundCopyJobs1 { pub unsafe fn Next(&self, rgelt: &mut [::windows_core::GUID], pceltfetched: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), ::core::mem::transmute(rgelt.as_ptr()), pceltfetched).ok() @@ -2479,13 +2210,6 @@ impl IEnumBackgroundCopyJobs1 { (::windows_core::Interface::vtable(self).GetCount)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumBackgroundCopyJobs1, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumBackgroundCopyJobs1 { - type Vtable = IEnumBackgroundCopyJobs1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumBackgroundCopyJobs1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8baeba9d_8f1c_42c4_b82c_09ae79980d25); -} #[repr(C)] #[doc(hidden)] pub struct IEnumBackgroundCopyJobs1_Vtbl { @@ -2496,9 +2220,8 @@ pub struct IEnumBackgroundCopyJobs1_Vtbl { pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pucount: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumBitsPeerCacheRecords(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumBitsPeerCacheRecords, IEnumBitsPeerCacheRecords_Vtbl, 0x659cdea4_489e_11d9_a9cd_000d56965251); +::windows_core::imp::interface_hierarchy!(IEnumBitsPeerCacheRecords, ::windows_core::IUnknown); impl IEnumBitsPeerCacheRecords { pub unsafe fn Next(&self, rgelt: &mut [::core::option::Option], pceltfetched: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), ::core::mem::transmute(rgelt.as_ptr()), pceltfetched).ok() @@ -2518,13 +2241,6 @@ impl IEnumBitsPeerCacheRecords { (::windows_core::Interface::vtable(self).GetCount)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumBitsPeerCacheRecords, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumBitsPeerCacheRecords { - type Vtable = IEnumBitsPeerCacheRecords_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumBitsPeerCacheRecords { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x659cdea4_489e_11d9_a9cd_000d56965251); -} #[repr(C)] #[doc(hidden)] pub struct IEnumBitsPeerCacheRecords_Vtbl { @@ -2535,9 +2251,8 @@ pub struct IEnumBitsPeerCacheRecords_Vtbl { pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pucount: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumBitsPeers(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumBitsPeers, IEnumBitsPeers_Vtbl, 0x659cdea5_489e_11d9_a9cd_000d56965251); +::windows_core::imp::interface_hierarchy!(IEnumBitsPeers, ::windows_core::IUnknown); impl IEnumBitsPeers { pub unsafe fn Next(&self, rgelt: &mut [::core::option::Option], pceltfetched: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), ::core::mem::transmute(rgelt.as_ptr()), pceltfetched).ok() @@ -2557,13 +2272,6 @@ impl IEnumBitsPeers { (::windows_core::Interface::vtable(self).GetCount)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumBitsPeers, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumBitsPeers { - type Vtable = IEnumBitsPeers_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumBitsPeers { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x659cdea5_489e_11d9_a9cd_000d56965251); -} #[repr(C)] #[doc(hidden)] pub struct IEnumBitsPeers_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Networking/Clustering/impl.rs b/crates/libs/windows/src/Windows/Win32/Networking/Clustering/impl.rs index 451f7c5f80..6f5e261473 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/Clustering/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/Clustering/impl.rs @@ -29,7 +29,7 @@ impl IGetClusterDataInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IGetClusterGroupInfo_Impl: Sized { @@ -46,7 +46,7 @@ impl IGetClusterGroupInfo_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetGroupHandle: GetGroupHandle:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IGetClusterNetInterfaceInfo_Impl: Sized { @@ -63,7 +63,7 @@ impl IGetClusterNetInterfaceInfo_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetNetInterfaceHandle: GetNetInterfaceHandle:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IGetClusterNetworkInfo_Impl: Sized { @@ -80,7 +80,7 @@ impl IGetClusterNetworkInfo_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetNetworkHandle: GetNetworkHandle:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IGetClusterNodeInfo_Impl: Sized { @@ -97,7 +97,7 @@ impl IGetClusterNodeInfo_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetNodeHandle: GetNodeHandle:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IGetClusterObjectInfo_Impl: Sized { @@ -124,7 +124,7 @@ impl IGetClusterObjectInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IGetClusterResourceInfo_Impl: Sized { @@ -158,7 +158,7 @@ impl IGetClusterResourceInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_UI_WindowsAndMessaging\"`"] @@ -203,7 +203,7 @@ impl IGetClusterUIInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -259,7 +259,7 @@ impl ISClusApplication_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -336,7 +336,7 @@ impl ISClusCryptoKeys_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -405,7 +405,7 @@ impl ISClusDisk_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -461,7 +461,7 @@ impl ISClusDisks_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -582,7 +582,7 @@ impl ISClusNetInterface_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -645,7 +645,7 @@ impl ISClusNetInterfaces_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -799,7 +799,7 @@ impl ISClusNetwork_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -862,7 +862,7 @@ impl ISClusNetworkNetInterfaces_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -925,7 +925,7 @@ impl ISClusNetworks_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1106,7 +1106,7 @@ impl ISClusNode_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1169,7 +1169,7 @@ impl ISClusNodeNetInterfaces_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1232,7 +1232,7 @@ impl ISClusNodes_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1340,7 +1340,7 @@ impl ISClusPartition_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1422,7 +1422,7 @@ impl ISClusPartitionEx_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1478,7 +1478,7 @@ impl ISClusPartitions_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1626,7 +1626,7 @@ impl ISClusProperties_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1814,7 +1814,7 @@ impl ISClusProperty_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1930,7 +1930,7 @@ impl ISClusPropertyValue_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2006,7 +2006,7 @@ impl ISClusPropertyValueData_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2082,7 +2082,7 @@ impl ISClusPropertyValues_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2109,7 +2109,7 @@ impl ISClusRefObject_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::(), Handle: Handle:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2186,7 +2186,7 @@ impl ISClusRegistryKeys_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2283,7 +2283,7 @@ impl ISClusResDependencies_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2380,7 +2380,7 @@ impl ISClusResDependents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2593,7 +2593,7 @@ impl ISClusResGroup_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2697,7 +2697,7 @@ impl ISClusResGroupPreferredOwnerNodes_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2780,7 +2780,7 @@ impl ISClusResGroupResources_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2863,7 +2863,7 @@ impl ISClusResGroups_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2953,7 +2953,7 @@ impl ISClusResPossibleOwnerNodes_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3094,7 +3094,7 @@ impl ISClusResType_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3157,7 +3157,7 @@ impl ISClusResTypePossibleOwnerNodes_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3240,7 +3240,7 @@ impl ISClusResTypeResources_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3323,7 +3323,7 @@ impl ISClusResTypes_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3708,7 +3708,7 @@ impl ISClusResource_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3791,7 +3791,7 @@ impl ISClusResources_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3860,7 +3860,7 @@ impl ISClusScsiAddress_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4007,7 +4007,7 @@ impl ISClusVersion_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4267,7 +4267,7 @@ impl ISCluster_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4343,7 +4343,7 @@ impl ISClusterNames_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4406,7 +4406,7 @@ impl ISDomainNames_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IWCContextMenuCallback_Impl: Sized { @@ -4423,7 +4423,7 @@ impl IWCContextMenuCallback_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), AddExtensionMenuItem: AddExtensionMenuItem:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWCPropertySheetCallback_Impl: Sized { @@ -4440,7 +4440,7 @@ impl IWCPropertySheetCallback_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), AddPropertySheetPage: AddPropertySheetPage:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWCWizard97Callback_Impl: Sized { @@ -4467,7 +4467,7 @@ impl IWCWizard97Callback_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWCWizardCallback_Impl: Sized { @@ -4494,7 +4494,7 @@ impl IWCWizardCallback_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWEExtendContextMenu_Impl: Sized { @@ -4511,7 +4511,7 @@ impl IWEExtendContextMenu_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), AddContextMenuItems: AddContextMenuItems:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWEExtendPropertySheet_Impl: Sized { @@ -4528,7 +4528,7 @@ impl IWEExtendPropertySheet_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CreatePropertySheetPages: CreatePropertySheetPages:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWEExtendWizard_Impl: Sized { @@ -4545,7 +4545,7 @@ impl IWEExtendWizard_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CreateWizardPages: CreateWizardPages:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWEExtendWizard97_Impl: Sized { @@ -4562,7 +4562,7 @@ impl IWEExtendWizard97_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CreateWizard97Pages: CreateWizard97Pages:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWEInvokeCommand_Impl: Sized { @@ -4579,6 +4579,6 @@ impl IWEInvokeCommand_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), InvokeCommand: InvokeCommand:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 6752191030..7a6e6d2c13 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/Clustering/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/Clustering/mod.rs @@ -3557,9 +3557,8 @@ where ::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()) } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGetClusterDataInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IGetClusterDataInfo, IGetClusterDataInfo_Vtbl, 0x97dede51_fc6b_11cf_b5f5_00a0c90ab505); +::windows_core::imp::interface_hierarchy!(IGetClusterDataInfo, ::windows_core::IUnknown); impl IGetClusterDataInfo { pub unsafe fn GetClusterName(&self, lpszname: &::windows_core::BSTR, pcchname: *mut i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetClusterName)(::windows_core::Interface::as_raw(self), ::core::mem::transmute_copy(lpszname), pcchname).ok() @@ -3571,13 +3570,6 @@ impl IGetClusterDataInfo { (::windows_core::Interface::vtable(self).GetObjectCount)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(IGetClusterDataInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGetClusterDataInfo { - type Vtable = IGetClusterDataInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGetClusterDataInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x97dede51_fc6b_11cf_b5f5_00a0c90ab505); -} #[repr(C)] #[doc(hidden)] pub struct IGetClusterDataInfo_Vtbl { @@ -3586,93 +3578,60 @@ pub struct IGetClusterDataInfo_Vtbl { pub GetClusterHandle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> HCLUSTER, pub GetObjectCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> i32, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGetClusterGroupInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IGetClusterGroupInfo, IGetClusterGroupInfo_Vtbl, 0x97dede54_fc6b_11cf_b5f5_00a0c90ab505); +::windows_core::imp::interface_hierarchy!(IGetClusterGroupInfo, ::windows_core::IUnknown); impl IGetClusterGroupInfo { pub unsafe fn GetGroupHandle(&self, lobjindex: i32) -> HGROUP { (::windows_core::Interface::vtable(self).GetGroupHandle)(::windows_core::Interface::as_raw(self), lobjindex) } } -::windows_core::imp::interface_hierarchy!(IGetClusterGroupInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGetClusterGroupInfo { - type Vtable = IGetClusterGroupInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGetClusterGroupInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x97dede54_fc6b_11cf_b5f5_00a0c90ab505); -} #[repr(C)] #[doc(hidden)] pub struct IGetClusterGroupInfo_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetGroupHandle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lobjindex: i32) -> HGROUP, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGetClusterNetInterfaceInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IGetClusterNetInterfaceInfo, IGetClusterNetInterfaceInfo_Vtbl, 0x97dede57_fc6b_11cf_b5f5_00a0c90ab505); +::windows_core::imp::interface_hierarchy!(IGetClusterNetInterfaceInfo, ::windows_core::IUnknown); impl IGetClusterNetInterfaceInfo { pub unsafe fn GetNetInterfaceHandle(&self, lobjindex: i32) -> HNETINTERFACE { (::windows_core::Interface::vtable(self).GetNetInterfaceHandle)(::windows_core::Interface::as_raw(self), lobjindex) } } -::windows_core::imp::interface_hierarchy!(IGetClusterNetInterfaceInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGetClusterNetInterfaceInfo { - type Vtable = IGetClusterNetInterfaceInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGetClusterNetInterfaceInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x97dede57_fc6b_11cf_b5f5_00a0c90ab505); -} #[repr(C)] #[doc(hidden)] pub struct IGetClusterNetInterfaceInfo_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetNetInterfaceHandle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lobjindex: i32) -> HNETINTERFACE, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGetClusterNetworkInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IGetClusterNetworkInfo, IGetClusterNetworkInfo_Vtbl, 0x97dede56_fc6b_11cf_b5f5_00a0c90ab505); +::windows_core::imp::interface_hierarchy!(IGetClusterNetworkInfo, ::windows_core::IUnknown); impl IGetClusterNetworkInfo { pub unsafe fn GetNetworkHandle(&self, lobjindex: i32) -> HNETWORK { (::windows_core::Interface::vtable(self).GetNetworkHandle)(::windows_core::Interface::as_raw(self), lobjindex) } } -::windows_core::imp::interface_hierarchy!(IGetClusterNetworkInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGetClusterNetworkInfo { - type Vtable = IGetClusterNetworkInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGetClusterNetworkInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x97dede56_fc6b_11cf_b5f5_00a0c90ab505); -} #[repr(C)] #[doc(hidden)] pub struct IGetClusterNetworkInfo_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetNetworkHandle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lobjindex: i32) -> HNETWORK, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGetClusterNodeInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IGetClusterNodeInfo, IGetClusterNodeInfo_Vtbl, 0x97dede53_fc6b_11cf_b5f5_00a0c90ab505); +::windows_core::imp::interface_hierarchy!(IGetClusterNodeInfo, ::windows_core::IUnknown); impl IGetClusterNodeInfo { pub unsafe fn GetNodeHandle(&self, lobjindex: i32) -> HNODE { (::windows_core::Interface::vtable(self).GetNodeHandle)(::windows_core::Interface::as_raw(self), lobjindex) } } -::windows_core::imp::interface_hierarchy!(IGetClusterNodeInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGetClusterNodeInfo { - type Vtable = IGetClusterNodeInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGetClusterNodeInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x97dede53_fc6b_11cf_b5f5_00a0c90ab505); -} #[repr(C)] #[doc(hidden)] pub struct IGetClusterNodeInfo_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetNodeHandle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lobjindex: i32) -> HNODE, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGetClusterObjectInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IGetClusterObjectInfo, IGetClusterObjectInfo_Vtbl, 0x97dede52_fc6b_11cf_b5f5_00a0c90ab505); +::windows_core::imp::interface_hierarchy!(IGetClusterObjectInfo, ::windows_core::IUnknown); impl IGetClusterObjectInfo { pub unsafe fn GetObjectName(&self, lobjindex: i32, lpszname: &::windows_core::BSTR, pcchname: *mut i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetObjectName)(::windows_core::Interface::as_raw(self), lobjindex, ::core::mem::transmute_copy(lpszname), pcchname).ok() @@ -3681,13 +3640,6 @@ impl IGetClusterObjectInfo { (::windows_core::Interface::vtable(self).GetObjectType)(::windows_core::Interface::as_raw(self), lobjindex) } } -::windows_core::imp::interface_hierarchy!(IGetClusterObjectInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGetClusterObjectInfo { - type Vtable = IGetClusterObjectInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGetClusterObjectInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x97dede52_fc6b_11cf_b5f5_00a0c90ab505); -} #[repr(C)] #[doc(hidden)] pub struct IGetClusterObjectInfo_Vtbl { @@ -3695,9 +3647,8 @@ pub struct IGetClusterObjectInfo_Vtbl { pub GetObjectName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lobjindex: i32, lpszname: ::std::mem::MaybeUninit<::windows_core::BSTR>, pcchname: *mut i32) -> ::windows_core::HRESULT, pub GetObjectType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lobjindex: i32) -> CLUADMEX_OBJECT_TYPE, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGetClusterResourceInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IGetClusterResourceInfo, IGetClusterResourceInfo_Vtbl, 0x97dede55_fc6b_11cf_b5f5_00a0c90ab505); +::windows_core::imp::interface_hierarchy!(IGetClusterResourceInfo, ::windows_core::IUnknown); impl IGetClusterResourceInfo { pub unsafe fn GetResourceHandle(&self, lobjindex: i32) -> HRESOURCE { (::windows_core::Interface::vtable(self).GetResourceHandle)(::windows_core::Interface::as_raw(self), lobjindex) @@ -3709,13 +3660,6 @@ impl IGetClusterResourceInfo { (::windows_core::Interface::vtable(self).GetResourceNetworkName)(::windows_core::Interface::as_raw(self), lobjindex, ::core::mem::transmute_copy(lpsznetname), pcchnetname) } } -::windows_core::imp::interface_hierarchy!(IGetClusterResourceInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGetClusterResourceInfo { - type Vtable = IGetClusterResourceInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGetClusterResourceInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x97dede55_fc6b_11cf_b5f5_00a0c90ab505); -} #[repr(C)] #[doc(hidden)] pub struct IGetClusterResourceInfo_Vtbl { @@ -3724,9 +3668,8 @@ pub struct IGetClusterResourceInfo_Vtbl { pub GetResourceTypeName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lobjindex: i32, lpszrestypename: ::std::mem::MaybeUninit<::windows_core::BSTR>, pcchrestypename: *mut i32) -> ::windows_core::HRESULT, pub GetResourceNetworkName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lobjindex: i32, lpsznetname: ::std::mem::MaybeUninit<::windows_core::BSTR>, pcchnetname: *mut u32) -> super::super::Foundation::BOOL, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGetClusterUIInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IGetClusterUIInfo, IGetClusterUIInfo_Vtbl, 0x97dede50_fc6b_11cf_b5f5_00a0c90ab505); +::windows_core::imp::interface_hierarchy!(IGetClusterUIInfo, ::windows_core::IUnknown); impl IGetClusterUIInfo { pub unsafe fn GetClusterName(&self, lpszname: &::windows_core::BSTR, pcchname: *mut i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetClusterName)(::windows_core::Interface::as_raw(self), ::core::mem::transmute_copy(lpszname), pcchname).ok() @@ -3745,13 +3688,6 @@ impl IGetClusterUIInfo { (::windows_core::Interface::vtable(self).GetIcon)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(IGetClusterUIInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGetClusterUIInfo { - type Vtable = IGetClusterUIInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGetClusterUIInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x97dede50_fc6b_11cf_b5f5_00a0c90ab505); -} #[repr(C)] #[doc(hidden)] pub struct IGetClusterUIInfo_Vtbl { @@ -3767,11 +3703,15 @@ pub struct IGetClusterUIInfo_Vtbl { #[cfg(not(feature = "Win32_UI_WindowsAndMessaging"))] GetIcon: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISClusApplication(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISClusApplication, + ISClusApplication_Vtbl, + 0xf2e606e6_2631_11d1_89f1_00a0c90d061e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISClusApplication, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISClusApplication { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3800,16 +3740,6 @@ impl ISClusApplication { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISClusApplication, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISClusApplication { - type Vtable = ISClusApplication_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISClusApplication { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf2e606e6_2631_11d1_89f1_00a0c90d061e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISClusApplication_Vtbl { @@ -3827,11 +3757,15 @@ pub struct ISClusApplication_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] OpenCluster: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISClusCryptoKeys(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISClusCryptoKeys, + ISClusCryptoKeys_Vtbl, + 0xf2e6072c_2631_11d1_89f1_00a0c90d061e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISClusCryptoKeys, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISClusCryptoKeys { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -3864,16 +3798,6 @@ impl ISClusCryptoKeys { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISClusCryptoKeys, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISClusCryptoKeys { - type Vtable = ISClusCryptoKeys_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISClusCryptoKeys { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf2e6072c_2631_11d1_89f1_00a0c90d061e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISClusCryptoKeys_Vtbl { @@ -3891,11 +3815,15 @@ pub struct ISClusCryptoKeys_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] RemoveItem: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISClusDisk(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISClusDisk, + ISClusDisk_Vtbl, + 0xf2e60724_2631_11d1_89f1_00a0c90d061e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISClusDisk, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISClusDisk { pub unsafe fn Signature(&self) -> ::windows_core::Result { @@ -3920,16 +3848,6 @@ impl ISClusDisk { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISClusDisk, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISClusDisk { - type Vtable = ISClusDisk_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISClusDisk { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf2e60724_2631_11d1_89f1_00a0c90d061e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISClusDisk_Vtbl { @@ -3945,11 +3863,15 @@ pub struct ISClusDisk_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Partitions: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISClusDisks(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISClusDisks, + ISClusDisks_Vtbl, + 0xf2e60726_2631_11d1_89f1_00a0c90d061e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISClusDisks, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISClusDisks { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -3968,16 +3890,6 @@ impl ISClusDisks { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISClusDisks, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISClusDisks { - type Vtable = ISClusDisks_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISClusDisks { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf2e60726_2631_11d1_89f1_00a0c90d061e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISClusDisks_Vtbl { @@ -3989,11 +3901,15 @@ pub struct ISClusDisks_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] get_Item: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISClusNetInterface(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISClusNetInterface, + ISClusNetInterface_Vtbl, + 0xf2e606ee_2631_11d1_89f1_00a0c90d061e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISClusNetInterface, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISClusNetInterface { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -4040,16 +3956,6 @@ impl ISClusNetInterface { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISClusNetInterface, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISClusNetInterface { - type Vtable = ISClusNetInterface_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISClusNetInterface { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf2e606ee_2631_11d1_89f1_00a0c90d061e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISClusNetInterface_Vtbl { @@ -4078,11 +3984,15 @@ pub struct ISClusNetInterface_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Cluster: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISClusNetInterfaces(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISClusNetInterfaces, + ISClusNetInterfaces_Vtbl, + 0xf2e606f0_2631_11d1_89f1_00a0c90d061e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISClusNetInterfaces, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISClusNetInterfaces { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -4104,16 +4014,6 @@ impl ISClusNetInterfaces { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISClusNetInterfaces, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISClusNetInterfaces { - type Vtable = ISClusNetInterfaces_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISClusNetInterfaces { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf2e606f0_2631_11d1_89f1_00a0c90d061e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISClusNetInterfaces_Vtbl { @@ -4126,11 +4026,15 @@ pub struct ISClusNetInterfaces_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] get_Item: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISClusNetwork(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISClusNetwork, + ISClusNetwork_Vtbl, + 0xf2e606f2_2631_11d1_89f1_00a0c90d061e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISClusNetwork, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISClusNetwork { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -4193,16 +4097,6 @@ impl ISClusNetwork { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISClusNetwork, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISClusNetwork { - type Vtable = ISClusNetwork_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISClusNetwork { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf2e606f2_2631_11d1_89f1_00a0c90d061e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISClusNetwork_Vtbl { @@ -4237,11 +4131,15 @@ pub struct ISClusNetwork_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Cluster: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISClusNetworkNetInterfaces(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISClusNetworkNetInterfaces, + ISClusNetworkNetInterfaces_Vtbl, + 0xf2e606f6_2631_11d1_89f1_00a0c90d061e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISClusNetworkNetInterfaces, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISClusNetworkNetInterfaces { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -4263,16 +4161,6 @@ impl ISClusNetworkNetInterfaces { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISClusNetworkNetInterfaces, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISClusNetworkNetInterfaces { - type Vtable = ISClusNetworkNetInterfaces_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISClusNetworkNetInterfaces { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf2e606f6_2631_11d1_89f1_00a0c90d061e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISClusNetworkNetInterfaces_Vtbl { @@ -4285,11 +4173,15 @@ pub struct ISClusNetworkNetInterfaces_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] get_Item: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISClusNetworks(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISClusNetworks, + ISClusNetworks_Vtbl, + 0xf2e606f4_2631_11d1_89f1_00a0c90d061e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISClusNetworks, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISClusNetworks { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -4311,16 +4203,6 @@ impl ISClusNetworks { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISClusNetworks, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISClusNetworks { - type Vtable = ISClusNetworks_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISClusNetworks { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf2e606f4_2631_11d1_89f1_00a0c90d061e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISClusNetworks_Vtbl { @@ -4333,11 +4215,15 @@ pub struct ISClusNetworks_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] get_Item: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISClusNode(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISClusNode, + ISClusNode_Vtbl, + 0xf2e606f8_2631_11d1_89f1_00a0c90d061e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISClusNode, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISClusNode { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -4409,16 +4295,6 @@ impl ISClusNode { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISClusNode, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISClusNode { - type Vtable = ISClusNode_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISClusNode { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf2e606f8_2631_11d1_89f1_00a0c90d061e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISClusNode_Vtbl { @@ -4459,11 +4335,15 @@ pub struct ISClusNode_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] NetInterfaces: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISClusNodeNetInterfaces(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISClusNodeNetInterfaces, + ISClusNodeNetInterfaces_Vtbl, + 0xf2e606fc_2631_11d1_89f1_00a0c90d061e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISClusNodeNetInterfaces, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISClusNodeNetInterfaces { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -4485,16 +4365,6 @@ impl ISClusNodeNetInterfaces { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISClusNodeNetInterfaces, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISClusNodeNetInterfaces { - type Vtable = ISClusNodeNetInterfaces_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISClusNodeNetInterfaces { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf2e606fc_2631_11d1_89f1_00a0c90d061e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISClusNodeNetInterfaces_Vtbl { @@ -4507,11 +4377,15 @@ pub struct ISClusNodeNetInterfaces_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] get_Item: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISClusNodes(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISClusNodes, + ISClusNodes_Vtbl, + 0xf2e606fa_2631_11d1_89f1_00a0c90d061e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISClusNodes, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISClusNodes { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -4533,16 +4407,6 @@ impl ISClusNodes { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISClusNodes, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISClusNodes { - type Vtable = ISClusNodes_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISClusNodes { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf2e606fa_2631_11d1_89f1_00a0c90d061e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISClusNodes_Vtbl { @@ -4555,11 +4419,15 @@ pub struct ISClusNodes_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] get_Item: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISClusPartition(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISClusPartition, + ISClusPartition_Vtbl, + 0xf2e60720_2631_11d1_89f1_00a0c90d061e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISClusPartition, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISClusPartition { pub unsafe fn Flags(&self) -> ::windows_core::Result { @@ -4592,16 +4460,6 @@ impl ISClusPartition { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISClusPartition, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISClusPartition { - type Vtable = ISClusPartition_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISClusPartition { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf2e60720_2631_11d1_89f1_00a0c90d061e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISClusPartition_Vtbl { @@ -4614,11 +4472,15 @@ pub struct ISClusPartition_Vtbl { pub FileSystemFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plfilesystemflags: *mut i32) -> ::windows_core::HRESULT, pub FileSystem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrfilesystem: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISClusPartitionEx(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISClusPartitionEx, + ISClusPartitionEx_Vtbl, + 0x8802d4fe_b32e_4ad1_9dbd_64f18e1166ce +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISClusPartitionEx, ::windows_core::IUnknown, super::super::System::Com::IDispatch, ISClusPartition); #[cfg(feature = "Win32_System_Com")] impl ISClusPartitionEx { pub unsafe fn Flags(&self) -> ::windows_core::Result { @@ -4671,16 +4533,6 @@ impl ISClusPartitionEx { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISClusPartitionEx, ::windows_core::IUnknown, super::super::System::Com::IDispatch, ISClusPartition); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISClusPartitionEx { - type Vtable = ISClusPartitionEx_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISClusPartitionEx { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8802d4fe_b32e_4ad1_9dbd_64f18e1166ce); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISClusPartitionEx_Vtbl { @@ -4691,11 +4543,15 @@ pub struct ISClusPartitionEx_Vtbl { pub PartitionNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plpartitionnumber: *mut i32) -> ::windows_core::HRESULT, pub VolumeGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrvolumeguid: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISClusPartitions(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISClusPartitions, + ISClusPartitions_Vtbl, + 0xf2e60722_2631_11d1_89f1_00a0c90d061e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISClusPartitions, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISClusPartitions { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -4714,16 +4570,6 @@ impl ISClusPartitions { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISClusPartitions, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISClusPartitions { - type Vtable = ISClusPartitions_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISClusPartitions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf2e60722_2631_11d1_89f1_00a0c90d061e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISClusPartitions_Vtbl { @@ -4735,11 +4581,15 @@ pub struct ISClusPartitions_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] get_Item: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISClusProperties(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISClusProperties, + ISClusProperties_Vtbl, + 0xf2e60700_2631_11d1_89f1_00a0c90d061e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISClusProperties, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISClusProperties { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -4805,16 +4655,6 @@ impl ISClusProperties { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISClusProperties, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISClusProperties { - type Vtable = ISClusProperties_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISClusProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf2e60700_2631_11d1_89f1_00a0c90d061e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISClusProperties_Vtbl { @@ -4855,11 +4695,15 @@ pub struct ISClusProperties_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] Modified: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISClusProperty(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISClusProperty, + ISClusProperty_Vtbl, + 0xf2e606fe_2631_11d1_89f1_00a0c90d061e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISClusProperty, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISClusProperty { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -4934,16 +4778,6 @@ impl ISClusProperty { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISClusProperty, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISClusProperty { - type Vtable = ISClusProperty_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISClusProperty { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf2e606fe_2631_11d1_89f1_00a0c90d061e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISClusProperty_Vtbl { @@ -4985,11 +4819,15 @@ pub struct ISClusProperty_Vtbl { Modified: usize, pub UseDefaultValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISClusPropertyValue(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISClusPropertyValue, + ISClusPropertyValue_Vtbl, + 0xf2e6071a_2631_11d1_89f1_00a0c90d061e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISClusPropertyValue, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISClusPropertyValue { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5033,16 +4871,6 @@ impl ISClusPropertyValue { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISClusPropertyValue, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISClusPropertyValue { - type Vtable = ISClusPropertyValue_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISClusPropertyValue { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf2e6071a_2631_11d1_89f1_00a0c90d061e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISClusPropertyValue_Vtbl { @@ -5066,11 +4894,15 @@ pub struct ISClusPropertyValue_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Data: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISClusPropertyValueData(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISClusPropertyValueData, + ISClusPropertyValueData_Vtbl, + 0xf2e6071e_2631_11d1_89f1_00a0c90d061e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISClusPropertyValueData, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISClusPropertyValueData { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -5100,16 +4932,6 @@ impl ISClusPropertyValueData { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISClusPropertyValueData, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISClusPropertyValueData { - type Vtable = ISClusPropertyValueData_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISClusPropertyValueData { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf2e6071e_2631_11d1_89f1_00a0c90d061e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISClusPropertyValueData_Vtbl { @@ -5129,11 +4951,15 @@ pub struct ISClusPropertyValueData_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] RemoveItem: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISClusPropertyValues(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISClusPropertyValues, + ISClusPropertyValues_Vtbl, + 0xf2e6071c_2631_11d1_89f1_00a0c90d061e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISClusPropertyValues, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISClusPropertyValues { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -5166,16 +4992,6 @@ impl ISClusPropertyValues { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISClusPropertyValues, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISClusPropertyValues { - type Vtable = ISClusPropertyValues_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISClusPropertyValues { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf2e6071c_2631_11d1_89f1_00a0c90d061e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISClusPropertyValues_Vtbl { @@ -5195,11 +5011,15 @@ pub struct ISClusPropertyValues_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] RemoveItem: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISClusRefObject(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISClusRefObject, + ISClusRefObject_Vtbl, + 0xf2e60702_2631_11d1_89f1_00a0c90d061e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISClusRefObject, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISClusRefObject { pub unsafe fn Handle(&self) -> ::windows_core::Result { @@ -5208,27 +5028,21 @@ impl ISClusRefObject { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISClusRefObject, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISClusRefObject { - type Vtable = ISClusRefObject_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISClusRefObject { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf2e60702_2631_11d1_89f1_00a0c90d061e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISClusRefObject_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, pub Handle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phandle: *mut usize) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISClusRegistryKeys(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISClusRegistryKeys, + ISClusRegistryKeys_Vtbl, + 0xf2e6072a_2631_11d1_89f1_00a0c90d061e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISClusRegistryKeys, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISClusRegistryKeys { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -5261,16 +5075,6 @@ impl ISClusRegistryKeys { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISClusRegistryKeys, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISClusRegistryKeys { - type Vtable = ISClusRegistryKeys_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISClusRegistryKeys { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf2e6072a_2631_11d1_89f1_00a0c90d061e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISClusRegistryKeys_Vtbl { @@ -5288,11 +5092,15 @@ pub struct ISClusRegistryKeys_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] RemoveItem: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISClusResDependencies(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISClusResDependencies, + ISClusResDependencies_Vtbl, + 0xf2e60704_2631_11d1_89f1_00a0c90d061e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISClusResDependencies, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISClusResDependencies { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -5342,16 +5150,6 @@ impl ISClusResDependencies { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISClusResDependencies, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISClusResDependencies { - type Vtable = ISClusResDependencies_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISClusResDependencies { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf2e60704_2631_11d1_89f1_00a0c90d061e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISClusResDependencies_Vtbl { @@ -5380,11 +5178,15 @@ pub struct ISClusResDependencies_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] RemoveItem: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISClusResDependents(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISClusResDependents, + ISClusResDependents_Vtbl, + 0xf2e6072e_2631_11d1_89f1_00a0c90d061e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISClusResDependents, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISClusResDependents { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -5434,16 +5236,6 @@ impl ISClusResDependents { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISClusResDependents, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISClusResDependents { - type Vtable = ISClusResDependents_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISClusResDependents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf2e6072e_2631_11d1_89f1_00a0c90d061e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISClusResDependents_Vtbl { @@ -5472,11 +5264,15 @@ pub struct ISClusResDependents_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] RemoveItem: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISClusResGroup(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISClusResGroup, + ISClusResGroup_Vtbl, + 0xf2e60706_2631_11d1_89f1_00a0c90d061e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISClusResGroup, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISClusResGroup { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -5568,16 +5364,6 @@ impl ISClusResGroup { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISClusResGroup, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISClusResGroup { - type Vtable = ISClusResGroup_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISClusResGroup { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf2e60706_2631_11d1_89f1_00a0c90d061e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISClusResGroup_Vtbl { @@ -5632,11 +5418,15 @@ pub struct ISClusResGroup_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Cluster: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISClusResGroupPreferredOwnerNodes(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISClusResGroupPreferredOwnerNodes, + ISClusResGroupPreferredOwnerNodes_Vtbl, + 0xf2e606e8_2631_11d1_89f1_00a0c90d061e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISClusResGroupPreferredOwnerNodes, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISClusResGroupPreferredOwnerNodes { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -5688,16 +5478,6 @@ impl ISClusResGroupPreferredOwnerNodes { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISClusResGroupPreferredOwnerNodes, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISClusResGroupPreferredOwnerNodes { - type Vtable = ISClusResGroupPreferredOwnerNodes_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISClusResGroupPreferredOwnerNodes { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf2e606e8_2631_11d1_89f1_00a0c90d061e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISClusResGroupPreferredOwnerNodes_Vtbl { @@ -5727,11 +5507,15 @@ pub struct ISClusResGroupPreferredOwnerNodes_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] AddItem: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISClusResGroupResources(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISClusResGroupResources, + ISClusResGroupResources_Vtbl, + 0xf2e606ea_2631_11d1_89f1_00a0c90d061e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISClusResGroupResources, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISClusResGroupResources { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -5768,16 +5552,6 @@ impl ISClusResGroupResources { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISClusResGroupResources, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISClusResGroupResources { - type Vtable = ISClusResGroupResources_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISClusResGroupResources { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf2e606ea_2631_11d1_89f1_00a0c90d061e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISClusResGroupResources_Vtbl { @@ -5798,11 +5572,15 @@ pub struct ISClusResGroupResources_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] DeleteItem: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISClusResGroups(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISClusResGroups, + ISClusResGroups_Vtbl, + 0xf2e60708_2631_11d1_89f1_00a0c90d061e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISClusResGroups, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISClusResGroups { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -5838,16 +5616,6 @@ impl ISClusResGroups { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISClusResGroups, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISClusResGroups { - type Vtable = ISClusResGroups_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISClusResGroups { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf2e60708_2631_11d1_89f1_00a0c90d061e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISClusResGroups_Vtbl { @@ -5868,11 +5636,15 @@ pub struct ISClusResGroups_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] DeleteItem: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISClusResPossibleOwnerNodes(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISClusResPossibleOwnerNodes, + ISClusResPossibleOwnerNodes_Vtbl, + 0xf2e6070e_2631_11d1_89f1_00a0c90d061e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISClusResPossibleOwnerNodes, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISClusResPossibleOwnerNodes { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -5913,16 +5685,6 @@ impl ISClusResPossibleOwnerNodes { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISClusResPossibleOwnerNodes, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISClusResPossibleOwnerNodes { - type Vtable = ISClusResPossibleOwnerNodes_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISClusResPossibleOwnerNodes { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf2e6070e_2631_11d1_89f1_00a0c90d061e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISClusResPossibleOwnerNodes_Vtbl { @@ -5947,11 +5709,15 @@ pub struct ISClusResPossibleOwnerNodes_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] Modified: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISClusResType(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISClusResType, + ISClusResType_Vtbl, + 0xf2e60710_2631_11d1_89f1_00a0c90d061e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISClusResType, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISClusResType { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -6011,16 +5777,6 @@ impl ISClusResType { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISClusResType, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISClusResType { - type Vtable = ISClusResType_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISClusResType { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf2e60710_2631_11d1_89f1_00a0c90d061e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISClusResType_Vtbl { @@ -6060,11 +5816,15 @@ pub struct ISClusResType_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] AvailableDisks: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISClusResTypePossibleOwnerNodes(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISClusResTypePossibleOwnerNodes, + ISClusResTypePossibleOwnerNodes_Vtbl, + 0xf2e60718_2631_11d1_89f1_00a0c90d061e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISClusResTypePossibleOwnerNodes, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISClusResTypePossibleOwnerNodes { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -6086,16 +5846,6 @@ impl ISClusResTypePossibleOwnerNodes { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISClusResTypePossibleOwnerNodes, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISClusResTypePossibleOwnerNodes { - type Vtable = ISClusResTypePossibleOwnerNodes_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISClusResTypePossibleOwnerNodes { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf2e60718_2631_11d1_89f1_00a0c90d061e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISClusResTypePossibleOwnerNodes_Vtbl { @@ -6108,11 +5858,15 @@ pub struct ISClusResTypePossibleOwnerNodes_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] get_Item: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISClusResTypeResources(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISClusResTypeResources, + ISClusResTypeResources_Vtbl, + 0xf2e60714_2631_11d1_89f1_00a0c90d061e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISClusResTypeResources, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISClusResTypeResources { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -6149,16 +5903,6 @@ impl ISClusResTypeResources { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISClusResTypeResources, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISClusResTypeResources { - type Vtable = ISClusResTypeResources_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISClusResTypeResources { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf2e60714_2631_11d1_89f1_00a0c90d061e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISClusResTypeResources_Vtbl { @@ -6179,11 +5923,15 @@ pub struct ISClusResTypeResources_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] DeleteItem: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISClusResTypes(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISClusResTypes, + ISClusResTypes_Vtbl, + 0xf2e60712_2631_11d1_89f1_00a0c90d061e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISClusResTypes, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISClusResTypes { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -6221,16 +5969,6 @@ impl ISClusResTypes { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISClusResTypes, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISClusResTypes { - type Vtable = ISClusResTypes_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISClusResTypes { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf2e60712_2631_11d1_89f1_00a0c90d061e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISClusResTypes_Vtbl { @@ -6251,11 +5989,15 @@ pub struct ISClusResTypes_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] DeleteItem: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISClusResource(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISClusResource, + ISClusResource_Vtbl, + 0xf2e6070a_2631_11d1_89f1_00a0c90d061e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISClusResource, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISClusResource { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -6441,16 +6183,6 @@ impl ISClusResource { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISClusResource, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISClusResource { - type Vtable = ISClusResource_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISClusResource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf2e6070a_2631_11d1_89f1_00a0c90d061e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISClusResource_Vtbl { @@ -6548,11 +6280,15 @@ pub struct ISClusResource_Vtbl { pub MaintenanceMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbmaintenancemode: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub SetMaintenanceMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bmaintenancemode: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISClusResources(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISClusResources, + ISClusResources_Vtbl, + 0xf2e6070c_2631_11d1_89f1_00a0c90d061e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISClusResources, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISClusResources { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -6590,16 +6326,6 @@ impl ISClusResources { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISClusResources, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISClusResources { - type Vtable = ISClusResources_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISClusResources { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf2e6070c_2631_11d1_89f1_00a0c90d061e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISClusResources_Vtbl { @@ -6620,11 +6346,15 @@ pub struct ISClusResources_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] DeleteItem: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISClusScsiAddress(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISClusScsiAddress, + ISClusScsiAddress_Vtbl, + 0xf2e60728_2631_11d1_89f1_00a0c90d061e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISClusScsiAddress, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISClusScsiAddress { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6653,16 +6383,6 @@ impl ISClusScsiAddress { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISClusScsiAddress, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISClusScsiAddress { - type Vtable = ISClusScsiAddress_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISClusScsiAddress { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf2e60728_2631_11d1_89f1_00a0c90d061e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISClusScsiAddress_Vtbl { @@ -6684,11 +6404,15 @@ pub struct ISClusScsiAddress_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] Lun: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISClusVersion(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISClusVersion, + ISClusVersion_Vtbl, + 0xf2e60716_2631_11d1_89f1_00a0c90d061e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISClusVersion, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISClusVersion { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -6735,16 +6459,6 @@ impl ISClusVersion { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISClusVersion, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISClusVersion { - type Vtable = ISClusVersion_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISClusVersion { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf2e60716_2631_11d1_89f1_00a0c90d061e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISClusVersion_Vtbl { @@ -6763,11 +6477,15 @@ pub struct ISClusVersion_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] MixedVersion: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISCluster(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISCluster, + ISCluster_Vtbl, + 0xf2e606e4_2631_11d1_89f1_00a0c90d061e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISCluster, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISCluster { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -6889,16 +6607,6 @@ impl ISCluster { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISCluster, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISCluster { - type Vtable = ISCluster_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISCluster { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf2e606e4_2631_11d1_89f1_00a0c90d061e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISCluster_Vtbl { @@ -6964,11 +6672,15 @@ pub struct ISCluster_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] NetInterfaces: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISClusterNames(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISClusterNames, + ISClusterNames_Vtbl, + 0xf2e606ec_2631_11d1_89f1_00a0c90d061e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISClusterNames, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISClusterNames { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -6994,16 +6706,6 @@ impl ISClusterNames { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISClusterNames, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISClusterNames { - type Vtable = ISClusterNames_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISClusterNames { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf2e606ec_2631_11d1_89f1_00a0c90d061e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISClusterNames_Vtbl { @@ -7017,11 +6719,15 @@ pub struct ISClusterNames_Vtbl { get_Item: usize, pub DomainName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdomainname: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISDomainNames(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISDomainNames, + ISDomainNames_Vtbl, + 0xf2e606e2_2631_11d1_89f1_00a0c90d061e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISDomainNames, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISDomainNames { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -7043,16 +6749,6 @@ impl ISDomainNames { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISDomainNames, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISDomainNames { - type Vtable = ISDomainNames_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISDomainNames { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf2e606e2_2631_11d1_89f1_00a0c90d061e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISDomainNames_Vtbl { @@ -7065,9 +6761,8 @@ pub struct ISDomainNames_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] get_Item: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWCContextMenuCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWCContextMenuCallback, IWCContextMenuCallback_Vtbl, 0x97dede64_fc6b_11cf_b5f5_00a0c90ab505); +::windows_core::imp::interface_hierarchy!(IWCContextMenuCallback, ::windows_core::IUnknown); impl IWCContextMenuCallback { pub unsafe fn AddExtensionMenuItem(&self, lpszname: P0, lpszstatusbartext: P1, ncommandid: u32, nsubmenucommandid: u32, uflags: u32) -> ::windows_core::Result<()> where @@ -7077,43 +6772,27 @@ impl IWCContextMenuCallback { (::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::imp::interface_hierarchy!(IWCContextMenuCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWCContextMenuCallback { - type Vtable = IWCContextMenuCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWCContextMenuCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x97dede64_fc6b_11cf_b5f5_00a0c90ab505); -} #[repr(C)] #[doc(hidden)] pub struct IWCContextMenuCallback_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub AddExtensionMenuItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpszname: ::std::mem::MaybeUninit<::windows_core::BSTR>, lpszstatusbartext: ::std::mem::MaybeUninit<::windows_core::BSTR>, ncommandid: u32, nsubmenucommandid: u32, uflags: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWCPropertySheetCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWCPropertySheetCallback, IWCPropertySheetCallback_Vtbl, 0x97dede60_fc6b_11cf_b5f5_00a0c90ab505); +::windows_core::imp::interface_hierarchy!(IWCPropertySheetCallback, ::windows_core::IUnknown); impl IWCPropertySheetCallback { pub unsafe fn AddPropertySheetPage(&self, hpage: *const i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).AddPropertySheetPage)(::windows_core::Interface::as_raw(self), hpage).ok() } } -::windows_core::imp::interface_hierarchy!(IWCPropertySheetCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWCPropertySheetCallback { - type Vtable = IWCPropertySheetCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWCPropertySheetCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x97dede60_fc6b_11cf_b5f5_00a0c90ab505); -} #[repr(C)] #[doc(hidden)] pub struct IWCPropertySheetCallback_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub AddPropertySheetPage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hpage: *const i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWCWizard97Callback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWCWizard97Callback, IWCWizard97Callback_Vtbl, 0x97dede67_fc6b_11cf_b5f5_00a0c90ab505); +::windows_core::imp::interface_hierarchy!(IWCWizard97Callback, ::windows_core::IUnknown); impl IWCWizard97Callback { pub unsafe fn AddWizard97Page(&self, hpage: *const i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).AddWizard97Page)(::windows_core::Interface::as_raw(self), hpage).ok() @@ -7125,13 +6804,6 @@ impl IWCWizard97Callback { (::windows_core::Interface::vtable(self).EnableNext)(::windows_core::Interface::as_raw(self), hpage, benable.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IWCWizard97Callback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWCWizard97Callback { - type Vtable = IWCWizard97Callback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWCWizard97Callback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x97dede67_fc6b_11cf_b5f5_00a0c90ab505); -} #[repr(C)] #[doc(hidden)] pub struct IWCWizard97Callback_Vtbl { @@ -7139,9 +6811,8 @@ pub struct IWCWizard97Callback_Vtbl { pub AddWizard97Page: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hpage: *const i32) -> ::windows_core::HRESULT, pub EnableNext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hpage: *const i32, benable: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWCWizardCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWCWizardCallback, IWCWizardCallback_Vtbl, 0x97dede62_fc6b_11cf_b5f5_00a0c90ab505); +::windows_core::imp::interface_hierarchy!(IWCWizardCallback, ::windows_core::IUnknown); impl IWCWizardCallback { pub unsafe fn AddWizardPage(&self, hpage: *const i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).AddWizardPage)(::windows_core::Interface::as_raw(self), hpage).ok() @@ -7153,13 +6824,6 @@ impl IWCWizardCallback { (::windows_core::Interface::vtable(self).EnableNext)(::windows_core::Interface::as_raw(self), hpage, benable.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IWCWizardCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWCWizardCallback { - type Vtable = IWCWizardCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWCWizardCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x97dede62_fc6b_11cf_b5f5_00a0c90ab505); -} #[repr(C)] #[doc(hidden)] pub struct IWCWizardCallback_Vtbl { @@ -7167,9 +6831,8 @@ pub struct IWCWizardCallback_Vtbl { pub AddWizardPage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hpage: *const i32) -> ::windows_core::HRESULT, pub EnableNext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hpage: *const i32, benable: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWEExtendContextMenu(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWEExtendContextMenu, IWEExtendContextMenu_Vtbl, 0x97dede65_fc6b_11cf_b5f5_00a0c90ab505); +::windows_core::imp::interface_hierarchy!(IWEExtendContextMenu, ::windows_core::IUnknown); impl IWEExtendContextMenu { pub unsafe fn AddContextMenuItems(&self, pidata: P0, picallback: P1) -> ::windows_core::Result<()> where @@ -7179,22 +6842,14 @@ impl IWEExtendContextMenu { (::windows_core::Interface::vtable(self).AddContextMenuItems)(::windows_core::Interface::as_raw(self), pidata.into_param().abi(), picallback.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IWEExtendContextMenu, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWEExtendContextMenu { - type Vtable = IWEExtendContextMenu_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWEExtendContextMenu { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x97dede65_fc6b_11cf_b5f5_00a0c90ab505); -} #[repr(C)] #[doc(hidden)] pub struct IWEExtendContextMenu_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub AddContextMenuItems: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pidata: *mut ::core::ffi::c_void, picallback: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWEExtendPropertySheet(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWEExtendPropertySheet, IWEExtendPropertySheet_Vtbl, 0x97dede61_fc6b_11cf_b5f5_00a0c90ab505); +::windows_core::imp::interface_hierarchy!(IWEExtendPropertySheet, ::windows_core::IUnknown); impl IWEExtendPropertySheet { pub unsafe fn CreatePropertySheetPages(&self, pidata: P0, picallback: P1) -> ::windows_core::Result<()> where @@ -7204,22 +6859,14 @@ impl IWEExtendPropertySheet { (::windows_core::Interface::vtable(self).CreatePropertySheetPages)(::windows_core::Interface::as_raw(self), pidata.into_param().abi(), picallback.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IWEExtendPropertySheet, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWEExtendPropertySheet { - type Vtable = IWEExtendPropertySheet_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWEExtendPropertySheet { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x97dede61_fc6b_11cf_b5f5_00a0c90ab505); -} #[repr(C)] #[doc(hidden)] pub struct IWEExtendPropertySheet_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub CreatePropertySheetPages: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pidata: *mut ::core::ffi::c_void, picallback: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWEExtendWizard(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWEExtendWizard, IWEExtendWizard_Vtbl, 0x97dede63_fc6b_11cf_b5f5_00a0c90ab505); +::windows_core::imp::interface_hierarchy!(IWEExtendWizard, ::windows_core::IUnknown); impl IWEExtendWizard { pub unsafe fn CreateWizardPages(&self, pidata: P0, picallback: P1) -> ::windows_core::Result<()> where @@ -7229,22 +6876,14 @@ impl IWEExtendWizard { (::windows_core::Interface::vtable(self).CreateWizardPages)(::windows_core::Interface::as_raw(self), pidata.into_param().abi(), picallback.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IWEExtendWizard, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWEExtendWizard { - type Vtable = IWEExtendWizard_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWEExtendWizard { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x97dede63_fc6b_11cf_b5f5_00a0c90ab505); -} #[repr(C)] #[doc(hidden)] pub struct IWEExtendWizard_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub CreateWizardPages: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pidata: *mut ::core::ffi::c_void, picallback: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWEExtendWizard97(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWEExtendWizard97, IWEExtendWizard97_Vtbl, 0x97dede68_fc6b_11cf_b5f5_00a0c90ab505); +::windows_core::imp::interface_hierarchy!(IWEExtendWizard97, ::windows_core::IUnknown); impl IWEExtendWizard97 { pub unsafe fn CreateWizard97Pages(&self, pidata: P0, picallback: P1) -> ::windows_core::Result<()> where @@ -7254,22 +6893,14 @@ impl IWEExtendWizard97 { (::windows_core::Interface::vtable(self).CreateWizard97Pages)(::windows_core::Interface::as_raw(self), pidata.into_param().abi(), picallback.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IWEExtendWizard97, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWEExtendWizard97 { - type Vtable = IWEExtendWizard97_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWEExtendWizard97 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x97dede68_fc6b_11cf_b5f5_00a0c90ab505); -} #[repr(C)] #[doc(hidden)] pub struct IWEExtendWizard97_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub CreateWizard97Pages: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pidata: *mut ::core::ffi::c_void, picallback: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWEInvokeCommand(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWEInvokeCommand, IWEInvokeCommand_Vtbl, 0x97dede66_fc6b_11cf_b5f5_00a0c90ab505); +::windows_core::imp::interface_hierarchy!(IWEInvokeCommand, ::windows_core::IUnknown); impl IWEInvokeCommand { pub unsafe fn InvokeCommand(&self, ncommandid: u32, pidata: P0) -> ::windows_core::Result<()> where @@ -7278,13 +6909,6 @@ impl IWEInvokeCommand { (::windows_core::Interface::vtable(self).InvokeCommand)(::windows_core::Interface::as_raw(self), ncommandid, pidata.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IWEInvokeCommand, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWEInvokeCommand { - type Vtable = IWEInvokeCommand_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWEInvokeCommand { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x97dede66_fc6b_11cf_b5f5_00a0c90ab505); -} #[repr(C)] #[doc(hidden)] pub struct IWEInvokeCommand_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Networking/NetworkListManager/impl.rs b/crates/libs/windows/src/Windows/Win32/Networking/NetworkListManager/impl.rs index 540ab09e49..e50e2bd986 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/NetworkListManager/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/NetworkListManager/impl.rs @@ -59,7 +59,7 @@ impl IEnumNetworkConnections_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -123,7 +123,7 @@ impl IEnumNetworks_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -285,7 +285,7 @@ impl INetwork_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -312,7 +312,7 @@ impl INetwork2_Vtbl { Self { base__: INetwork_Vtbl::new::(), IsDomainAuthenticatedBy: IsDomainAuthenticatedBy:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -420,7 +420,7 @@ impl INetworkConnection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -447,7 +447,7 @@ impl INetworkConnection2_Vtbl { Self { base__: INetworkConnection_Vtbl::new::(), IsDomainAuthenticatedBy: IsDomainAuthenticatedBy:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait INetworkConnectionCost_Impl: Sized { @@ -480,7 +480,7 @@ impl INetworkConnectionCost_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait INetworkConnectionCostEvents_Impl: Sized { @@ -507,7 +507,7 @@ impl INetworkConnectionCostEvents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait INetworkConnectionEvents_Impl: Sized { @@ -534,7 +534,7 @@ impl INetworkConnectionEvents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait INetworkCostManager_Impl: Sized { @@ -568,7 +568,7 @@ impl INetworkCostManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait INetworkCostManagerEvents_Impl: Sized { @@ -595,7 +595,7 @@ impl INetworkCostManagerEvents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait INetworkEvents_Impl: Sized { @@ -636,7 +636,7 @@ impl INetworkEvents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -758,7 +758,7 @@ impl INetworkListManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait INetworkListManagerEvents_Impl: Sized { @@ -775,6 +775,6 @@ impl INetworkListManagerEvents_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), ConnectivityChanged: ConnectivityChanged:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 ff2b2dac4f..4bfcf99d6b 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/NetworkListManager/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/NetworkListManager/mod.rs @@ -1,8 +1,12 @@ -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumNetworkConnections(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IEnumNetworkConnections, + IEnumNetworkConnections_Vtbl, + 0xdcb00006_570f_4a9b_8d69_199fdba5723b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IEnumNetworkConnections, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IEnumNetworkConnections { #[doc = "Required features: `\"Win32_System_Ole\"`"] @@ -30,16 +34,6 @@ impl IEnumNetworkConnections { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IEnumNetworkConnections, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IEnumNetworkConnections { - type Vtable = IEnumNetworkConnections_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IEnumNetworkConnections { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdcb00006_570f_4a9b_8d69_199fdba5723b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IEnumNetworkConnections_Vtbl { @@ -59,11 +53,15 @@ pub struct IEnumNetworkConnections_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Clone: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumNetworks(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IEnumNetworks, + IEnumNetworks_Vtbl, + 0xdcb00003_570f_4a9b_8d69_199fdba5723b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IEnumNetworks, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IEnumNetworks { #[doc = "Required features: `\"Win32_System_Ole\"`"] @@ -91,16 +89,6 @@ impl IEnumNetworks { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IEnumNetworks, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IEnumNetworks { - type Vtable = IEnumNetworks_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IEnumNetworks { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdcb00003_570f_4a9b_8d69_199fdba5723b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IEnumNetworks_Vtbl { @@ -120,11 +108,15 @@ pub struct IEnumNetworks_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Clone: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetwork(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + INetwork, + INetwork_Vtbl, + 0xdcb00002_570f_4a9b_8d69_199fdba5723b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(INetwork, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl INetwork { pub unsafe fn GetName(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -185,16 +177,6 @@ impl INetwork { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(INetwork, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for INetwork { - type Vtable = INetwork_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for INetwork { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdcb00002_570f_4a9b_8d69_199fdba5723b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct INetwork_Vtbl { @@ -216,11 +198,15 @@ pub struct INetwork_Vtbl { pub GetCategory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcategory: *mut NLM_NETWORK_CATEGORY) -> ::windows_core::HRESULT, pub SetCategory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newcategory: NLM_NETWORK_CATEGORY) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetwork2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + INetwork2, + INetwork2_Vtbl, + 0xb5550abb_3391_4310_804f_25dcc325ed81 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(INetwork2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, INetwork); #[cfg(feature = "Win32_System_Com")] impl INetwork2 { pub unsafe fn GetName(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -285,27 +271,21 @@ impl INetwork2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(INetwork2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, INetwork); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for INetwork2 { - type Vtable = INetwork2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for INetwork2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb5550abb_3391_4310_804f_25dcc325ed81); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct INetwork2_Vtbl { pub base__: INetwork_Vtbl, pub IsDomainAuthenticatedBy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, domainauthenticationkind: NLM_DOMAIN_AUTHENTICATION_KIND, pvalue: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetworkConnection(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + INetworkConnection, + INetworkConnection_Vtbl, + 0xdcb00005_570f_4a9b_8d69_199fdba5723b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(INetworkConnection, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl INetworkConnection { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -340,16 +320,6 @@ impl INetworkConnection { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(INetworkConnection, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for INetworkConnection { - type Vtable = INetworkConnection_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for INetworkConnection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdcb00005_570f_4a9b_8d69_199fdba5723b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct INetworkConnection_Vtbl { @@ -365,11 +335,15 @@ pub struct INetworkConnection_Vtbl { pub GetAdapterId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pgdadapterid: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, pub GetDomainType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdomaintype: *mut NLM_DOMAIN_TYPE) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetworkConnection2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + INetworkConnection2, + INetworkConnection2_Vtbl, + 0x00e676ed_5a35_4738_92eb_8581738d0f0a +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(INetworkConnection2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, INetworkConnection); #[cfg(feature = "Win32_System_Com")] impl INetworkConnection2 { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -408,25 +382,14 @@ impl INetworkConnection2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(INetworkConnection2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, INetworkConnection); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for INetworkConnection2 { - type Vtable = INetworkConnection2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for INetworkConnection2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00e676ed_5a35_4738_92eb_8581738d0f0a); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct INetworkConnection2_Vtbl { pub base__: INetworkConnection_Vtbl, pub IsDomainAuthenticatedBy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, domainauthenticationkind: NLM_DOMAIN_AUTHENTICATION_KIND, pvalue: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetworkConnectionCost(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INetworkConnectionCost, INetworkConnectionCost_Vtbl, 0xdcb0000a_570f_4a9b_8d69_199fdba5723b); +::windows_core::imp::interface_hierarchy!(INetworkConnectionCost, ::windows_core::IUnknown); impl INetworkConnectionCost { pub unsafe fn GetCost(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -436,13 +399,6 @@ impl INetworkConnectionCost { (::windows_core::Interface::vtable(self).GetDataPlanStatus)(::windows_core::Interface::as_raw(self), pdataplanstatus).ok() } } -::windows_core::imp::interface_hierarchy!(INetworkConnectionCost, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INetworkConnectionCost { - type Vtable = INetworkConnectionCost_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INetworkConnectionCost { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdcb0000a_570f_4a9b_8d69_199fdba5723b); -} #[repr(C)] #[doc(hidden)] pub struct INetworkConnectionCost_Vtbl { @@ -450,9 +406,8 @@ pub struct INetworkConnectionCost_Vtbl { pub GetCost: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcost: *mut u32) -> ::windows_core::HRESULT, pub GetDataPlanStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdataplanstatus: *mut NLM_DATAPLAN_STATUS) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetworkConnectionCostEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INetworkConnectionCostEvents, INetworkConnectionCostEvents_Vtbl, 0xdcb0000b_570f_4a9b_8d69_199fdba5723b); +::windows_core::imp::interface_hierarchy!(INetworkConnectionCostEvents, ::windows_core::IUnknown); impl INetworkConnectionCostEvents { pub unsafe fn ConnectionCostChanged(&self, connectionid: ::windows_core::GUID, newcost: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).ConnectionCostChanged)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(connectionid), newcost).ok() @@ -461,13 +416,6 @@ impl INetworkConnectionCostEvents { (::windows_core::Interface::vtable(self).ConnectionDataPlanStatusChanged)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(connectionid)).ok() } } -::windows_core::imp::interface_hierarchy!(INetworkConnectionCostEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INetworkConnectionCostEvents { - type Vtable = INetworkConnectionCostEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INetworkConnectionCostEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdcb0000b_570f_4a9b_8d69_199fdba5723b); -} #[repr(C)] #[doc(hidden)] pub struct INetworkConnectionCostEvents_Vtbl { @@ -475,9 +423,8 @@ pub struct INetworkConnectionCostEvents_Vtbl { pub ConnectionCostChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, connectionid: ::windows_core::GUID, newcost: u32) -> ::windows_core::HRESULT, pub ConnectionDataPlanStatusChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, connectionid: ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetworkConnectionEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INetworkConnectionEvents, INetworkConnectionEvents_Vtbl, 0xdcb00007_570f_4a9b_8d69_199fdba5723b); +::windows_core::imp::interface_hierarchy!(INetworkConnectionEvents, ::windows_core::IUnknown); impl INetworkConnectionEvents { pub unsafe fn NetworkConnectionConnectivityChanged(&self, connectionid: ::windows_core::GUID, newconnectivity: NLM_CONNECTIVITY) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).NetworkConnectionConnectivityChanged)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(connectionid), newconnectivity).ok() @@ -486,13 +433,6 @@ impl INetworkConnectionEvents { (::windows_core::Interface::vtable(self).NetworkConnectionPropertyChanged)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(connectionid), flags).ok() } } -::windows_core::imp::interface_hierarchy!(INetworkConnectionEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INetworkConnectionEvents { - type Vtable = INetworkConnectionEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INetworkConnectionEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdcb00007_570f_4a9b_8d69_199fdba5723b); -} #[repr(C)] #[doc(hidden)] pub struct INetworkConnectionEvents_Vtbl { @@ -500,9 +440,8 @@ pub struct INetworkConnectionEvents_Vtbl { pub NetworkConnectionConnectivityChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, connectionid: ::windows_core::GUID, newconnectivity: NLM_CONNECTIVITY) -> ::windows_core::HRESULT, pub NetworkConnectionPropertyChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, connectionid: ::windows_core::GUID, flags: NLM_CONNECTION_PROPERTY_CHANGE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetworkCostManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INetworkCostManager, INetworkCostManager_Vtbl, 0xdcb00008_570f_4a9b_8d69_199fdba5723b); +::windows_core::imp::interface_hierarchy!(INetworkCostManager, ::windows_core::IUnknown); impl INetworkCostManager { pub unsafe fn GetCost(&self, pcost: *mut u32, pdestipaddr: *const NLM_SOCKADDR) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetCost)(::windows_core::Interface::as_raw(self), pcost, pdestipaddr).ok() @@ -517,13 +456,6 @@ impl INetworkCostManager { (::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::imp::interface_hierarchy!(INetworkCostManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INetworkCostManager { - type Vtable = INetworkCostManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INetworkCostManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdcb00008_570f_4a9b_8d69_199fdba5723b); -} #[repr(C)] #[doc(hidden)] pub struct INetworkCostManager_Vtbl { @@ -532,9 +464,8 @@ pub struct INetworkCostManager_Vtbl { pub GetDataPlanStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdataplanstatus: *mut NLM_DATAPLAN_STATUS, pdestipaddr: *const NLM_SOCKADDR) -> ::windows_core::HRESULT, pub SetDestinationAddresses: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, length: u32, pdestipaddrlist: *const NLM_SOCKADDR, bappend: super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetworkCostManagerEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INetworkCostManagerEvents, INetworkCostManagerEvents_Vtbl, 0xdcb00009_570f_4a9b_8d69_199fdba5723b); +::windows_core::imp::interface_hierarchy!(INetworkCostManagerEvents, ::windows_core::IUnknown); impl INetworkCostManagerEvents { pub unsafe fn CostChanged(&self, newcost: u32, pdestaddr: *const NLM_SOCKADDR) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).CostChanged)(::windows_core::Interface::as_raw(self), newcost, pdestaddr).ok() @@ -543,13 +474,6 @@ impl INetworkCostManagerEvents { (::windows_core::Interface::vtable(self).DataPlanStatusChanged)(::windows_core::Interface::as_raw(self), pdestaddr).ok() } } -::windows_core::imp::interface_hierarchy!(INetworkCostManagerEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INetworkCostManagerEvents { - type Vtable = INetworkCostManagerEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INetworkCostManagerEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdcb00009_570f_4a9b_8d69_199fdba5723b); -} #[repr(C)] #[doc(hidden)] pub struct INetworkCostManagerEvents_Vtbl { @@ -557,9 +481,8 @@ pub struct INetworkCostManagerEvents_Vtbl { pub CostChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newcost: u32, pdestaddr: *const NLM_SOCKADDR) -> ::windows_core::HRESULT, pub DataPlanStatusChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdestaddr: *const NLM_SOCKADDR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetworkEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INetworkEvents, INetworkEvents_Vtbl, 0xdcb00004_570f_4a9b_8d69_199fdba5723b); +::windows_core::imp::interface_hierarchy!(INetworkEvents, ::windows_core::IUnknown); impl INetworkEvents { pub unsafe fn NetworkAdded(&self, networkid: ::windows_core::GUID) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).NetworkAdded)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(networkid)).ok() @@ -574,13 +497,6 @@ impl INetworkEvents { (::windows_core::Interface::vtable(self).NetworkPropertyChanged)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(networkid), flags).ok() } } -::windows_core::imp::interface_hierarchy!(INetworkEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INetworkEvents { - type Vtable = INetworkEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INetworkEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdcb00004_570f_4a9b_8d69_199fdba5723b); -} #[repr(C)] #[doc(hidden)] pub struct INetworkEvents_Vtbl { @@ -590,11 +506,15 @@ pub struct INetworkEvents_Vtbl { pub NetworkConnectivityChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, networkid: ::windows_core::GUID, newconnectivity: NLM_CONNECTIVITY) -> ::windows_core::HRESULT, pub NetworkPropertyChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, networkid: ::windows_core::GUID, flags: NLM_NETWORK_PROPERTY_CHANGE) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetworkListManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + INetworkListManager, + INetworkListManager_Vtbl, + 0xdcb00000_570f_4a9b_8d69_199fdba5723b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(INetworkListManager, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl INetworkListManager { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -641,16 +561,6 @@ impl INetworkListManager { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(INetworkListManager, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for INetworkListManager { - type Vtable = INetworkListManager_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for INetworkListManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdcb00000_570f_4a9b_8d69_199fdba5723b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct INetworkListManager_Vtbl { @@ -677,21 +587,13 @@ pub struct INetworkListManager_Vtbl { pub SetSimulatedProfileInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psimulatedinfo: *const NLM_SIMULATED_PROFILE_INFO) -> ::windows_core::HRESULT, pub ClearSimulatedProfileInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetworkListManagerEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INetworkListManagerEvents, INetworkListManagerEvents_Vtbl, 0xdcb00001_570f_4a9b_8d69_199fdba5723b); +::windows_core::imp::interface_hierarchy!(INetworkListManagerEvents, ::windows_core::IUnknown); impl INetworkListManagerEvents { pub unsafe fn ConnectivityChanged(&self, newconnectivity: NLM_CONNECTIVITY) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).ConnectivityChanged)(::windows_core::Interface::as_raw(self), newconnectivity).ok() } } -::windows_core::imp::interface_hierarchy!(INetworkListManagerEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INetworkListManagerEvents { - type Vtable = INetworkListManagerEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INetworkListManagerEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdcb00001_570f_4a9b_8d69_199fdba5723b); -} #[repr(C)] #[doc(hidden)] pub struct INetworkListManagerEvents_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Networking/RemoteDifferentialCompression/impl.rs b/crates/libs/windows/src/Windows/Win32/Networking/RemoteDifferentialCompression/impl.rs index 981ffc1016..b1bceee25d 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/RemoteDifferentialCompression/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/RemoteDifferentialCompression/impl.rs @@ -28,7 +28,7 @@ impl IFindSimilarResults_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRdcComparator_Impl: Sized { @@ -45,7 +45,7 @@ impl IRdcComparator_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Process: Process:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRdcFileReader_Impl: Sized { @@ -91,7 +91,7 @@ impl IRdcFileReader_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRdcFileWriter_Impl: Sized + IRdcFileReader_Impl { @@ -131,7 +131,7 @@ impl IRdcFileWriter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IRdcGenerator_Impl: Sized { @@ -164,7 +164,7 @@ impl IRdcGenerator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRdcGeneratorFilterMaxParameters_Impl: Sized { @@ -217,7 +217,7 @@ impl IRdcGeneratorFilterMaxParameters_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRdcGeneratorParameters_Impl: Sized { @@ -270,7 +270,7 @@ impl IRdcGeneratorParameters_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRdcLibrary_Impl: Sized { @@ -368,7 +368,7 @@ impl IRdcLibrary_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRdcSignatureReader_Impl: Sized { @@ -401,7 +401,7 @@ impl IRdcSignatureReader_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRdcSimilarityGenerator_Impl: Sized { @@ -434,7 +434,7 @@ impl IRdcSimilarityGenerator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISimilarity_Impl: Sized { @@ -520,7 +520,7 @@ impl ISimilarity_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISimilarityFileIdTable_Impl: Sized { @@ -606,7 +606,7 @@ impl ISimilarityFileIdTable_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISimilarityReportProgress_Impl: Sized { @@ -623,7 +623,7 @@ impl ISimilarityReportProgress_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), ReportProgress: ReportProgress:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISimilarityTableDumpState_Impl: Sized { @@ -640,7 +640,7 @@ impl ISimilarityTableDumpState_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetNextData: GetNextData:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISimilarityTraitsMappedView_Impl: Sized { @@ -687,7 +687,7 @@ impl ISimilarityTraitsMappedView_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISimilarityTraitsMapping_Impl: Sized { @@ -773,7 +773,7 @@ impl ISimilarityTraitsMapping_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISimilarityTraitsTable_Impl: Sized { @@ -859,6 +859,6 @@ impl ISimilarityTraitsTable_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 41f64c3e1a..d2f3ab54bf 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/RemoteDifferentialCompression/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/RemoteDifferentialCompression/mod.rs @@ -1,6 +1,5 @@ -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFindSimilarResults(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFindSimilarResults, IFindSimilarResults_Vtbl, 0x96236a81_9dbc_11da_9e3f_0011114ae311); +::windows_core::imp::interface_hierarchy!(IFindSimilarResults, ::windows_core::IUnknown); impl IFindSimilarResults { pub unsafe fn GetSize(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -10,13 +9,6 @@ impl IFindSimilarResults { (::windows_core::Interface::vtable(self).GetNextFileId)(::windows_core::Interface::as_raw(self), numtraitsmatched, similarityfileid).ok() } } -::windows_core::imp::interface_hierarchy!(IFindSimilarResults, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFindSimilarResults { - type Vtable = IFindSimilarResults_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFindSimilarResults { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x96236a81_9dbc_11da_9e3f_0011114ae311); -} #[repr(C)] #[doc(hidden)] pub struct IFindSimilarResults_Vtbl { @@ -24,9 +16,8 @@ pub struct IFindSimilarResults_Vtbl { pub GetSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, size: *mut u32) -> ::windows_core::HRESULT, pub GetNextFileId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, numtraitsmatched: *mut u32, similarityfileid: *mut SimilarityFileId) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRdcComparator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRdcComparator, IRdcComparator_Vtbl, 0x96236a77_9dbc_11da_9e3f_0011114ae311); +::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 @@ -35,22 +26,14 @@ impl IRdcComparator { (::windows_core::Interface::vtable(self).Process)(::windows_core::Interface::as_raw(self), endofinput.into_param().abi(), endofoutput, inputbuffer, outputbuffer, rdc_errorcode).ok() } } -::windows_core::imp::interface_hierarchy!(IRdcComparator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRdcComparator { - type Vtable = IRdcComparator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRdcComparator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x96236a77_9dbc_11da_9e3f_0011114ae311); -} #[repr(C)] #[doc(hidden)] pub struct IRdcComparator_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Process: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, endofinput: super::super::Foundation::BOOL, endofoutput: *mut super::super::Foundation::BOOL, inputbuffer: *mut RdcBufferPointer, outputbuffer: *mut RdcNeedPointer, rdc_errorcode: *mut RDC_ErrorCode) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRdcFileReader(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRdcFileReader, IRdcFileReader_Vtbl, 0x96236a74_9dbc_11da_9e3f_0011114ae311); +::windows_core::imp::interface_hierarchy!(IRdcFileReader, ::windows_core::IUnknown); impl IRdcFileReader { pub unsafe fn GetFileSize(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -64,13 +47,6 @@ impl IRdcFileReader { (::windows_core::Interface::vtable(self).GetFilePosition)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IRdcFileReader, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRdcFileReader { - type Vtable = IRdcFileReader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRdcFileReader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x96236a74_9dbc_11da_9e3f_0011114ae311); -} #[repr(C)] #[doc(hidden)] pub struct IRdcFileReader_Vtbl { @@ -79,9 +55,8 @@ pub struct IRdcFileReader_Vtbl { pub Read: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, offsetfilestart: u64, bytestoread: u32, bytesactuallyread: *mut u32, buffer: *mut u8, eof: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub GetFilePosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, offsetfromstart: *mut u64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRdcFileWriter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRdcFileWriter, IRdcFileWriter_Vtbl, 0x96236a75_9dbc_11da_9e3f_0011114ae311); +::windows_core::imp::interface_hierarchy!(IRdcFileWriter, ::windows_core::IUnknown, IRdcFileReader); impl IRdcFileWriter { pub unsafe fn GetFileSize(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -105,13 +80,6 @@ impl IRdcFileWriter { (::windows_core::Interface::vtable(self).DeleteOnClose)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IRdcFileWriter, ::windows_core::IUnknown, IRdcFileReader); -unsafe impl ::windows_core::Interface for IRdcFileWriter { - type Vtable = IRdcFileWriter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRdcFileWriter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x96236a75_9dbc_11da_9e3f_0011114ae311); -} #[repr(C)] #[doc(hidden)] pub struct IRdcFileWriter_Vtbl { @@ -120,9 +88,8 @@ pub struct IRdcFileWriter_Vtbl { pub Truncate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub DeleteOnClose: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRdcGenerator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRdcGenerator, IRdcGenerator_Vtbl, 0x96236a73_9dbc_11da_9e3f_0011114ae311); +::windows_core::imp::interface_hierarchy!(IRdcGenerator, ::windows_core::IUnknown); impl IRdcGenerator { pub unsafe fn GetGeneratorParameters(&self, level: u32) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -135,13 +102,6 @@ impl IRdcGenerator { (::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::imp::interface_hierarchy!(IRdcGenerator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRdcGenerator { - type Vtable = IRdcGenerator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRdcGenerator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x96236a73_9dbc_11da_9e3f_0011114ae311); -} #[repr(C)] #[doc(hidden)] pub struct IRdcGenerator_Vtbl { @@ -149,9 +109,8 @@ pub struct IRdcGenerator_Vtbl { pub GetGeneratorParameters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, level: u32, igeneratorparameters: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Process: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, endofinput: super::super::Foundation::BOOL, endofoutput: *mut super::super::Foundation::BOOL, inputbuffer: *mut RdcBufferPointer, depth: u32, outputbuffers: *mut *mut RdcBufferPointer, rdc_errorcode: *mut RDC_ErrorCode) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRdcGeneratorFilterMaxParameters(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRdcGeneratorFilterMaxParameters, IRdcGeneratorFilterMaxParameters_Vtbl, 0x96236a72_9dbc_11da_9e3f_0011114ae311); +::windows_core::imp::interface_hierarchy!(IRdcGeneratorFilterMaxParameters, ::windows_core::IUnknown); impl IRdcGeneratorFilterMaxParameters { pub unsafe fn GetHorizonSize(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -168,13 +127,6 @@ impl IRdcGeneratorFilterMaxParameters { (::windows_core::Interface::vtable(self).SetHashWindowSize)(::windows_core::Interface::as_raw(self), hashwindowsize).ok() } } -::windows_core::imp::interface_hierarchy!(IRdcGeneratorFilterMaxParameters, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRdcGeneratorFilterMaxParameters { - type Vtable = IRdcGeneratorFilterMaxParameters_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRdcGeneratorFilterMaxParameters { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x96236a72_9dbc_11da_9e3f_0011114ae311); -} #[repr(C)] #[doc(hidden)] pub struct IRdcGeneratorFilterMaxParameters_Vtbl { @@ -184,9 +136,8 @@ pub struct IRdcGeneratorFilterMaxParameters_Vtbl { pub GetHashWindowSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hashwindowsize: *mut u32) -> ::windows_core::HRESULT, pub SetHashWindowSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hashwindowsize: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRdcGeneratorParameters(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRdcGeneratorParameters, IRdcGeneratorParameters_Vtbl, 0x96236a71_9dbc_11da_9e3f_0011114ae311); +::windows_core::imp::interface_hierarchy!(IRdcGeneratorParameters, ::windows_core::IUnknown); impl IRdcGeneratorParameters { pub unsafe fn GetGeneratorParametersType(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -203,13 +154,6 @@ impl IRdcGeneratorParameters { (::windows_core::Interface::vtable(self).Serialize)(::windows_core::Interface::as_raw(self), size, parametersblob, byteswritten).ok() } } -::windows_core::imp::interface_hierarchy!(IRdcGeneratorParameters, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRdcGeneratorParameters { - type Vtable = IRdcGeneratorParameters_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRdcGeneratorParameters { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x96236a71_9dbc_11da_9e3f_0011114ae311); -} #[repr(C)] #[doc(hidden)] pub struct IRdcGeneratorParameters_Vtbl { @@ -219,9 +163,8 @@ pub struct IRdcGeneratorParameters_Vtbl { pub GetSerializeSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, size: *mut u32) -> ::windows_core::HRESULT, pub Serialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, size: u32, parametersblob: *mut u8, byteswritten: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRdcLibrary(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRdcLibrary, IRdcLibrary_Vtbl, 0x96236a78_9dbc_11da_9e3f_0011114ae311); +::windows_core::imp::interface_hierarchy!(IRdcLibrary, ::windows_core::IUnknown); impl IRdcLibrary { pub unsafe fn ComputeDefaultRecursionDepth(&self, filesize: u64) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -257,13 +200,6 @@ impl IRdcLibrary { (::windows_core::Interface::vtable(self).GetRDCVersion)(::windows_core::Interface::as_raw(self), currentversion, minimumcompatibleappversion).ok() } } -::windows_core::imp::interface_hierarchy!(IRdcLibrary, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRdcLibrary { - type Vtable = IRdcLibrary_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRdcLibrary { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x96236a78_9dbc_11da_9e3f_0011114ae311); -} #[repr(C)] #[doc(hidden)] pub struct IRdcLibrary_Vtbl { @@ -276,9 +212,8 @@ pub struct IRdcLibrary_Vtbl { pub CreateSignatureReader: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ifilereader: *mut ::core::ffi::c_void, isignaturereader: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetRDCVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, currentversion: *mut u32, minimumcompatibleappversion: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRdcSignatureReader(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRdcSignatureReader, IRdcSignatureReader_Vtbl, 0x96236a76_9dbc_11da_9e3f_0011114ae311); +::windows_core::imp::interface_hierarchy!(IRdcSignatureReader, ::windows_core::IUnknown); impl IRdcSignatureReader { pub unsafe fn ReadHeader(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -288,13 +223,6 @@ impl IRdcSignatureReader { (::windows_core::Interface::vtable(self).ReadSignatures)(::windows_core::Interface::as_raw(self), rdcsignaturepointer, endofoutput).ok() } } -::windows_core::imp::interface_hierarchy!(IRdcSignatureReader, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRdcSignatureReader { - type Vtable = IRdcSignatureReader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRdcSignatureReader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x96236a76_9dbc_11da_9e3f_0011114ae311); -} #[repr(C)] #[doc(hidden)] pub struct IRdcSignatureReader_Vtbl { @@ -302,9 +230,8 @@ pub struct IRdcSignatureReader_Vtbl { pub ReadHeader: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rdc_errorcode: *mut RDC_ErrorCode) -> ::windows_core::HRESULT, pub ReadSignatures: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rdcsignaturepointer: *mut RdcSignaturePointer, endofoutput: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRdcSimilarityGenerator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRdcSimilarityGenerator, IRdcSimilarityGenerator_Vtbl, 0x96236a80_9dbc_11da_9e3f_0011114ae311); +::windows_core::imp::interface_hierarchy!(IRdcSimilarityGenerator, ::windows_core::IUnknown); impl IRdcSimilarityGenerator { pub unsafe fn EnableSimilarity(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).EnableSimilarity)(::windows_core::Interface::as_raw(self)).ok() @@ -314,13 +241,6 @@ impl IRdcSimilarityGenerator { (::windows_core::Interface::vtable(self).Results)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IRdcSimilarityGenerator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRdcSimilarityGenerator { - type Vtable = IRdcSimilarityGenerator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRdcSimilarityGenerator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x96236a80_9dbc_11da_9e3f_0011114ae311); -} #[repr(C)] #[doc(hidden)] pub struct IRdcSimilarityGenerator_Vtbl { @@ -328,9 +248,8 @@ pub struct IRdcSimilarityGenerator_Vtbl { pub EnableSimilarity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Results: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, similaritydata: *mut SimilarityData) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISimilarity(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISimilarity, ISimilarity_Vtbl, 0x96236a83_9dbc_11da_9e3f_0011114ae311); +::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 @@ -374,13 +293,6 @@ impl ISimilarity { (::windows_core::Interface::vtable(self).GetRecordCount)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISimilarity, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISimilarity { - type Vtable = ISimilarity_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISimilarity { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x96236a83_9dbc_11da_9e3f_0011114ae311); -} #[repr(C)] #[doc(hidden)] pub struct ISimilarity_Vtbl { @@ -393,9 +305,8 @@ pub struct ISimilarity_Vtbl { pub CopyAndSwap: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newsimilaritytables: *mut ::core::ffi::c_void, reportprogress: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetRecordCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, recordcount: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISimilarityFileIdTable(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISimilarityFileIdTable, ISimilarityFileIdTable_Vtbl, 0x96236a7f_9dbc_11da_9e3f_0011114ae311); +::windows_core::imp::interface_hierarchy!(ISimilarityFileIdTable, ::windows_core::IUnknown); impl ISimilarityFileIdTable { pub unsafe fn CreateTable(&self, path: P0, truncate: P1, securitydescriptor: *const u8, recordsize: u32) -> ::windows_core::Result where @@ -434,13 +345,6 @@ impl ISimilarityFileIdTable { (::windows_core::Interface::vtable(self).GetRecordCount)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISimilarityFileIdTable, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISimilarityFileIdTable { - type Vtable = ISimilarityFileIdTable_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISimilarityFileIdTable { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x96236a7f_9dbc_11da_9e3f_0011114ae311); -} #[repr(C)] #[doc(hidden)] pub struct ISimilarityFileIdTable_Vtbl { @@ -453,51 +357,34 @@ pub struct ISimilarityFileIdTable_Vtbl { pub Invalidate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, similarityfileindex: u32) -> ::windows_core::HRESULT, pub GetRecordCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, recordcount: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISimilarityReportProgress(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISimilarityReportProgress, ISimilarityReportProgress_Vtbl, 0x96236a7a_9dbc_11da_9e3f_0011114ae311); +::windows_core::imp::interface_hierarchy!(ISimilarityReportProgress, ::windows_core::IUnknown); impl ISimilarityReportProgress { pub unsafe fn ReportProgress(&self, percentcompleted: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).ReportProgress)(::windows_core::Interface::as_raw(self), percentcompleted).ok() } } -::windows_core::imp::interface_hierarchy!(ISimilarityReportProgress, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISimilarityReportProgress { - type Vtable = ISimilarityReportProgress_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISimilarityReportProgress { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x96236a7a_9dbc_11da_9e3f_0011114ae311); -} #[repr(C)] #[doc(hidden)] pub struct ISimilarityReportProgress_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub ReportProgress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, percentcompleted: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISimilarityTableDumpState(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISimilarityTableDumpState, ISimilarityTableDumpState_Vtbl, 0x96236a7b_9dbc_11da_9e3f_0011114ae311); +::windows_core::imp::interface_hierarchy!(ISimilarityTableDumpState, ::windows_core::IUnknown); impl ISimilarityTableDumpState { pub unsafe fn GetNextData(&self, resultssize: u32, resultsused: *mut u32, eof: *mut super::super::Foundation::BOOL, results: *mut SimilarityDumpData) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetNextData)(::windows_core::Interface::as_raw(self), resultssize, resultsused, eof, results).ok() } } -::windows_core::imp::interface_hierarchy!(ISimilarityTableDumpState, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISimilarityTableDumpState { - type Vtable = ISimilarityTableDumpState_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISimilarityTableDumpState { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x96236a7b_9dbc_11da_9e3f_0011114ae311); -} #[repr(C)] #[doc(hidden)] pub struct ISimilarityTableDumpState_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetNextData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, resultssize: u32, resultsused: *mut u32, eof: *mut super::super::Foundation::BOOL, results: *mut SimilarityDumpData) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISimilarityTraitsMappedView(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISimilarityTraitsMappedView, ISimilarityTraitsMappedView_Vtbl, 0x96236a7c_9dbc_11da_9e3f_0011114ae311); +::windows_core::imp::interface_hierarchy!(ISimilarityTraitsMappedView, ::windows_core::IUnknown); impl ISimilarityTraitsMappedView { pub unsafe fn Flush(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Flush)(::windows_core::Interface::as_raw(self)).ok() @@ -516,13 +403,6 @@ impl ISimilarityTraitsMappedView { (::windows_core::Interface::vtable(self).GetView)(::windows_core::Interface::as_raw(self), mappedpagebegin, mappedpageend) } } -::windows_core::imp::interface_hierarchy!(ISimilarityTraitsMappedView, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISimilarityTraitsMappedView { - type Vtable = ISimilarityTraitsMappedView_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISimilarityTraitsMappedView { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x96236a7c_9dbc_11da_9e3f_0011114ae311); -} #[repr(C)] #[doc(hidden)] pub struct ISimilarityTraitsMappedView_Vtbl { @@ -532,9 +412,8 @@ pub struct ISimilarityTraitsMappedView_Vtbl { pub Get: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u64, dirty: super::super::Foundation::BOOL, numelements: u32, viewinfo: *mut SimilarityMappedViewInfo) -> ::windows_core::HRESULT, pub GetView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mappedpagebegin: *mut *mut u8, mappedpageend: *mut *mut u8), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISimilarityTraitsMapping(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISimilarityTraitsMapping, ISimilarityTraitsMapping_Vtbl, 0x96236a7d_9dbc_11da_9e3f_0011114ae311); +::windows_core::imp::interface_hierarchy!(ISimilarityTraitsMapping, ::windows_core::IUnknown); impl ISimilarityTraitsMapping { pub unsafe fn CloseMapping(&self) { (::windows_core::Interface::vtable(self).CloseMapping)(::windows_core::Interface::as_raw(self)) @@ -564,13 +443,6 @@ impl ISimilarityTraitsMapping { (::windows_core::Interface::vtable(self).CreateView)(::windows_core::Interface::as_raw(self), minimummappedpages, accessmode, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISimilarityTraitsMapping, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISimilarityTraitsMapping { - type Vtable = ISimilarityTraitsMapping_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISimilarityTraitsMapping { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x96236a7d_9dbc_11da_9e3f_0011114ae311); -} #[repr(C)] #[doc(hidden)] pub struct ISimilarityTraitsMapping_Vtbl { @@ -583,9 +455,8 @@ pub struct ISimilarityTraitsMapping_Vtbl { pub GetPageSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pagesize: *mut u32), pub CreateView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, minimummappedpages: u32, accessmode: RdcMappingAccessMode, mappedview: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISimilarityTraitsTable(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISimilarityTraitsTable, ISimilarityTraitsTable_Vtbl, 0x96236a7e_9dbc_11da_9e3f_0011114ae311); +::windows_core::imp::interface_hierarchy!(ISimilarityTraitsTable, ::windows_core::IUnknown); impl ISimilarityTraitsTable { pub unsafe fn CreateTable(&self, path: P0, truncate: P1, securitydescriptor: *const u8) -> ::windows_core::Result where @@ -624,13 +495,6 @@ impl ISimilarityTraitsTable { (::windows_core::Interface::vtable(self).GetLastIndex)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISimilarityTraitsTable, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISimilarityTraitsTable { - type Vtable = ISimilarityTraitsTable_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISimilarityTraitsTable { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x96236a7e_9dbc_11da_9e3f_0011114ae311); -} #[repr(C)] #[doc(hidden)] pub struct ISimilarityTraitsTable_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Networking/WinHttp/impl.rs b/crates/libs/windows/src/Windows/Win32/Networking/WinHttp/impl.rs index 0744eefdbc..94b7e43f3f 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/WinHttp/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/WinHttp/impl.rs @@ -199,7 +199,7 @@ impl IWinHttpRequest_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -244,6 +244,6 @@ impl IWinHttpRequestEvents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 d73187f3ba..11aa678f89 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/WinHttp/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/WinHttp/mod.rs @@ -322,11 +322,15 @@ where ::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) } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWinHttpRequest(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWinHttpRequest, + IWinHttpRequest_Vtbl, + 0x016fe2ec_b2c8_45f8_b23b_39e53a75396b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWinHttpRequest, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IWinHttpRequest { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -431,16 +435,6 @@ impl IWinHttpRequest { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWinHttpRequest, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWinHttpRequest { - type Vtable = IWinHttpRequest_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWinHttpRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x016fe2ec_b2c8_45f8_b23b_39e53a75396b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWinHttpRequest_Vtbl { @@ -489,9 +483,8 @@ pub struct IWinHttpRequest_Vtbl { pub SetClientCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, clientcertificate: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SetAutoLogonPolicy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, autologonpolicy: WinHttpRequestAutoLogonPolicy) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWinHttpRequestEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWinHttpRequestEvents, IWinHttpRequestEvents_Vtbl, 0xf97f4e15_b787_4212_80d1_d380cbbf982e); +::windows_core::imp::interface_hierarchy!(IWinHttpRequestEvents, ::windows_core::IUnknown); impl IWinHttpRequestEvents { pub unsafe fn OnResponseStart(&self, status: i32, contenttype: P0) where @@ -514,13 +507,6 @@ impl IWinHttpRequestEvents { (::windows_core::Interface::vtable(self).OnError)(::windows_core::Interface::as_raw(self), errornumber, errordescription.into_param().abi()) } } -::windows_core::imp::interface_hierarchy!(IWinHttpRequestEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWinHttpRequestEvents { - type Vtable = IWinHttpRequestEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWinHttpRequestEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf97f4e15_b787_4212_80d1_d380cbbf982e); -} #[repr(C)] #[doc(hidden)] pub struct IWinHttpRequestEvents_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Networking/WinInet/impl.rs b/crates/libs/windows/src/Windows/Win32/Networking/WinInet/impl.rs index 7557a226e2..b92a352f95 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/WinInet/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/WinInet/impl.rs @@ -32,7 +32,7 @@ impl IDialBranding_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDialEngine_Impl: Sized { @@ -106,7 +106,7 @@ impl IDialEngine_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDialEventSink_Impl: Sized { @@ -123,7 +123,7 @@ impl IDialEventSink_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnEvent: OnEvent:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IProofOfPossessionCookieInfoManager_Impl: Sized { @@ -140,7 +140,7 @@ impl IProofOfPossessionCookieInfoManager_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetCookieInfoForUri: GetCookieInfoForUri:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IProofOfPossessionCookieInfoManager2_Impl: Sized { @@ -160,6 +160,6 @@ impl IProofOfPossessionCookieInfoManager2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 8533643f82..44e9029187 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/WinInet/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/WinInet/mod.rs @@ -2144,9 +2144,8 @@ where ::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()) } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDialBranding(::windows_core::IUnknown); +::windows_core::imp::com_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 @@ -2161,13 +2160,6 @@ impl IDialBranding { (::windows_core::Interface::vtable(self).GetBitmap)(::windows_core::Interface::as_raw(self), dwindex, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDialBranding, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDialBranding { - type Vtable = IDialBranding_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDialBranding { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8aecafa9_4306_43cc_8c5a_765f2979cc16); -} #[repr(C)] #[doc(hidden)] pub struct IDialBranding_Vtbl { @@ -2178,9 +2170,8 @@ pub struct IDialBranding_Vtbl { #[cfg(not(feature = "Win32_Graphics_Gdi"))] GetBitmap: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDialEngine(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDialEngine, IDialEngine_Vtbl, 0x39fd782b_7905_40d5_9148_3c9b190423d5); +::windows_core::imp::interface_hierarchy!(IDialEngine, ::windows_core::IUnknown); impl IDialEngine { pub unsafe fn Initialize(&self, pwzconnectoid: P0, pides: P1) -> ::windows_core::Result<()> where @@ -2218,13 +2209,6 @@ impl IDialEngine { (::windows_core::Interface::vtable(self).GetConnectHandle)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDialEngine, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDialEngine { - type Vtable = IDialEngine_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDialEngine { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x39fd782b_7905_40d5_9148_3c9b190423d5); -} #[repr(C)] #[doc(hidden)] pub struct IDialEngine_Vtbl { @@ -2237,30 +2221,21 @@ pub struct IDialEngine_Vtbl { pub GetConnectedState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwstate: *mut u32) -> ::windows_core::HRESULT, pub GetConnectHandle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwhandle: *mut usize) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDialEventSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDialEventSink, IDialEventSink_Vtbl, 0x2d86f4ff_6e2d_4488_b2e9_6934afd41bea); +::windows_core::imp::interface_hierarchy!(IDialEventSink, ::windows_core::IUnknown); impl IDialEventSink { pub unsafe fn OnEvent(&self, dwevent: u32, dwstatus: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnEvent)(::windows_core::Interface::as_raw(self), dwevent, dwstatus).ok() } } -::windows_core::imp::interface_hierarchy!(IDialEventSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDialEventSink { - type Vtable = IDialEventSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDialEventSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2d86f4ff_6e2d_4488_b2e9_6934afd41bea); -} #[repr(C)] #[doc(hidden)] pub struct IDialEventSink_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwevent: u32, dwstatus: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProofOfPossessionCookieInfoManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IProofOfPossessionCookieInfoManager, IProofOfPossessionCookieInfoManager_Vtbl, 0xcdaece56_4edf_43df_b113_88e4556fa1bb); +::windows_core::imp::interface_hierarchy!(IProofOfPossessionCookieInfoManager, ::windows_core::IUnknown); impl IProofOfPossessionCookieInfoManager { pub unsafe fn GetCookieInfoForUri(&self, uri: P0, cookieinfocount: *mut u32, cookieinfo: *mut *mut ProofOfPossessionCookieInfo) -> ::windows_core::Result<()> where @@ -2269,22 +2244,14 @@ impl IProofOfPossessionCookieInfoManager { (::windows_core::Interface::vtable(self).GetCookieInfoForUri)(::windows_core::Interface::as_raw(self), uri.into_param().abi(), cookieinfocount, cookieinfo).ok() } } -::windows_core::imp::interface_hierarchy!(IProofOfPossessionCookieInfoManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProofOfPossessionCookieInfoManager { - type Vtable = IProofOfPossessionCookieInfoManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProofOfPossessionCookieInfoManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcdaece56_4edf_43df_b113_88e4556fa1bb); -} #[repr(C)] #[doc(hidden)] pub struct IProofOfPossessionCookieInfoManager_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetCookieInfoForUri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uri: ::windows_core::PCWSTR, cookieinfocount: *mut u32, cookieinfo: *mut *mut ProofOfPossessionCookieInfo) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProofOfPossessionCookieInfoManager2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IProofOfPossessionCookieInfoManager2, IProofOfPossessionCookieInfoManager2_Vtbl, 0x15e41407_b42f_4ae7_9966_34a087b2d713); +::windows_core::imp::interface_hierarchy!(IProofOfPossessionCookieInfoManager2, ::windows_core::IUnknown); impl IProofOfPossessionCookieInfoManager2 { pub unsafe fn GetCookieInfoWithUriForAccount(&self, webaccount: P0, uri: P1, cookieinfocount: *mut u32, cookieinfo: *mut *mut ProofOfPossessionCookieInfo) -> ::windows_core::Result<()> where @@ -2294,13 +2261,6 @@ impl IProofOfPossessionCookieInfoManager2 { (::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::imp::interface_hierarchy!(IProofOfPossessionCookieInfoManager2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProofOfPossessionCookieInfoManager2 { - type Vtable = IProofOfPossessionCookieInfoManager2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProofOfPossessionCookieInfoManager2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x15e41407_b42f_4ae7_9966_34a087b2d713); -} #[repr(C)] #[doc(hidden)] pub struct IProofOfPossessionCookieInfoManager2_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Networking/WindowsWebServices/impl.rs b/crates/libs/windows/src/Windows/Win32/Networking/WindowsWebServices/impl.rs index 5d5c056f0c..dd769d680a 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/WindowsWebServices/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/WindowsWebServices/impl.rs @@ -28,6 +28,6 @@ impl IContentPrefetcherTaskTrigger_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 cd4b357d97..4425ece065 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/WindowsWebServices/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/WindowsWebServices/mod.rs @@ -1087,9 +1087,8 @@ pub unsafe fn WsXmlStringEquals(string1: *const WS_XML_STRING, string2: *const W ::windows_targets::link!("webservices.dll" "system" fn WsXmlStringEquals(string1 : *const WS_XML_STRING, string2 : *const WS_XML_STRING, error : *const WS_ERROR) -> ::windows_core::HRESULT); WsXmlStringEquals(string1, string2, ::core::mem::transmute(error.unwrap_or(::std::ptr::null()))).ok() } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContentPrefetcherTaskTrigger(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IContentPrefetcherTaskTrigger, IContentPrefetcherTaskTrigger_Vtbl, 0x1b35a14a_6094_4799_a60e_e474e15d4dc9); +::windows_core::imp::interface_hierarchy!(IContentPrefetcherTaskTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IContentPrefetcherTaskTrigger { pub unsafe fn TriggerContentPrefetcherTask(&self, packagefullname: P0) -> ::windows_core::Result<()> where @@ -1105,13 +1104,6 @@ impl IContentPrefetcherTaskTrigger { (::windows_core::Interface::vtable(self).IsRegisteredForContentPrefetch)(::windows_core::Interface::as_raw(self), packagefullname.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IContentPrefetcherTaskTrigger, ::windows_core::IUnknown, ::windows_core::IInspectable); -unsafe impl ::windows_core::Interface for IContentPrefetcherTaskTrigger { - type Vtable = IContentPrefetcherTaskTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContentPrefetcherTaskTrigger { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1b35a14a_6094_4799_a60e_e474e15d4dc9); -} #[repr(C)] #[doc(hidden)] pub struct IContentPrefetcherTaskTrigger_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Security/Authentication/Identity/Provider/impl.rs b/crates/libs/windows/src/Windows/Win32/Security/Authentication/Identity/Provider/impl.rs index f0409189ab..98472a5598 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/Authentication/Identity/Provider/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/Authentication/Identity/Provider/impl.rs @@ -60,7 +60,7 @@ impl AsyncIAssociatedIdentityProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -159,7 +159,7 @@ impl AsyncIConnectedIdentityProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait AsyncIIdentityAdvise_Impl: Sized { @@ -186,7 +186,7 @@ impl AsyncIIdentityAdvise_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -231,7 +231,7 @@ impl AsyncIIdentityAuthentication_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`, `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -390,7 +390,7 @@ impl AsyncIIdentityProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`, `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -503,7 +503,7 @@ impl AsyncIIdentityStore_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait AsyncIIdentityStoreEx_Impl: Sized { @@ -544,7 +544,7 @@ impl AsyncIIdentityStoreEx_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -588,7 +588,7 @@ impl IAssociatedIdentityProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -652,7 +652,7 @@ impl IConnectedIdentityProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IIdentityAdvise_Impl: Sized { @@ -669,7 +669,7 @@ impl IIdentityAdvise_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), IdentityUpdated: IdentityUpdated:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -700,7 +700,7 @@ impl IIdentityAuthentication_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`, `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -797,7 +797,7 @@ impl IIdentityProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`, `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -868,7 +868,7 @@ impl IIdentityStore_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IIdentityStoreEx_Impl: Sized { @@ -895,6 +895,6 @@ impl IIdentityStoreEx_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 e794e65b85..1e45b338bc 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 @@ -1,6 +1,5 @@ -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct AsyncIAssociatedIdentityProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(AsyncIAssociatedIdentityProvider, AsyncIAssociatedIdentityProvider_Vtbl, 0x2834d6ed_297e_4e72_8a51_961e86f05152); +::windows_core::imp::interface_hierarchy!(AsyncIAssociatedIdentityProvider, ::windows_core::IUnknown); impl AsyncIAssociatedIdentityProvider { pub unsafe fn Begin_AssociateIdentity(&self, hwndparent: P0) -> ::windows_core::Result<()> where @@ -35,13 +34,6 @@ impl AsyncIAssociatedIdentityProvider { (::windows_core::Interface::vtable(self).Finish_ChangeCredential)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(AsyncIAssociatedIdentityProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for AsyncIAssociatedIdentityProvider { - type Vtable = AsyncIAssociatedIdentityProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AsyncIAssociatedIdentityProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2834d6ed_297e_4e72_8a51_961e86f05152); -} #[repr(C)] #[doc(hidden)] pub struct AsyncIAssociatedIdentityProvider_Vtbl { @@ -56,9 +48,8 @@ pub struct AsyncIAssociatedIdentityProvider_Vtbl { pub Begin_ChangeCredential: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwndparent: super::super::super::super::Foundation::HWND, lpszuniqueid: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub Finish_ChangeCredential: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct AsyncIConnectedIdentityProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(AsyncIConnectedIdentityProvider, AsyncIConnectedIdentityProvider_Vtbl, 0x9ce55141_bce9_4e15_824d_43d79f512f93); +::windows_core::imp::interface_hierarchy!(AsyncIConnectedIdentityProvider, ::windows_core::IUnknown); impl AsyncIConnectedIdentityProvider { pub unsafe fn Begin_ConnectIdentity(&self, authbuffer: &[u8]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Begin_ConnectIdentity)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(authbuffer.as_ptr()), authbuffer.len().try_into().unwrap()).ok() @@ -100,13 +91,6 @@ impl AsyncIConnectedIdentityProvider { (::windows_core::Interface::vtable(self).Finish_GetAccountState)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(AsyncIConnectedIdentityProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for AsyncIConnectedIdentityProvider { - type Vtable = AsyncIConnectedIdentityProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AsyncIConnectedIdentityProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9ce55141_bce9_4e15_824d_43d79f512f93); -} #[repr(C)] #[doc(hidden)] pub struct AsyncIConnectedIdentityProvider_Vtbl { @@ -128,9 +112,8 @@ pub struct AsyncIConnectedIdentityProvider_Vtbl { pub Begin_GetAccountState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Finish_GetAccountState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstate: *mut ACCOUNT_STATE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct AsyncIIdentityAdvise(::windows_core::IUnknown); +::windows_core::imp::com_interface!(AsyncIIdentityAdvise, AsyncIIdentityAdvise_Vtbl, 0x3ab4c8da_d038_4830_8dd9_3253c55a127f); +::windows_core::imp::interface_hierarchy!(AsyncIIdentityAdvise, ::windows_core::IUnknown); impl AsyncIIdentityAdvise { pub unsafe fn Begin_IdentityUpdated(&self, dwidentityupdateevents: u32, lpszuniqueid: P0) -> ::windows_core::Result<()> where @@ -142,13 +125,6 @@ impl AsyncIIdentityAdvise { (::windows_core::Interface::vtable(self).Finish_IdentityUpdated)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(AsyncIIdentityAdvise, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for AsyncIIdentityAdvise { - type Vtable = AsyncIIdentityAdvise_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AsyncIIdentityAdvise { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3ab4c8da_d038_4830_8dd9_3253c55a127f); -} #[repr(C)] #[doc(hidden)] pub struct AsyncIIdentityAdvise_Vtbl { @@ -156,9 +132,8 @@ pub struct AsyncIIdentityAdvise_Vtbl { pub Begin_IdentityUpdated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwidentityupdateevents: u32, lpszuniqueid: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub Finish_IdentityUpdated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct AsyncIIdentityAuthentication(::windows_core::IUnknown); +::windows_core::imp::com_interface!(AsyncIIdentityAuthentication, AsyncIIdentityAuthentication_Vtbl, 0xf9a2f918_feca_4e9c_9633_61cbf13ed34d); +::windows_core::imp::interface_hierarchy!(AsyncIIdentityAuthentication, ::windows_core::IUnknown); impl AsyncIIdentityAuthentication { pub unsafe fn Begin_SetIdentityCredential(&self, credbuffer: ::core::option::Option<&[u8]>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Begin_SetIdentityCredential)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(credbuffer.as_deref().map_or(::core::ptr::null(), |slice| slice.as_ptr())), credbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())).ok() @@ -177,13 +152,6 @@ impl AsyncIIdentityAuthentication { (::windows_core::Interface::vtable(self).Finish_ValidateIdentityCredential)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(ppidentityproperties.unwrap_or(::std::ptr::null_mut()))).ok() } } -::windows_core::imp::interface_hierarchy!(AsyncIIdentityAuthentication, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for AsyncIIdentityAuthentication { - type Vtable = AsyncIIdentityAuthentication_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AsyncIIdentityAuthentication { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf9a2f918_feca_4e9c_9633_61cbf13ed34d); -} #[repr(C)] #[doc(hidden)] pub struct AsyncIIdentityAuthentication_Vtbl { @@ -199,9 +167,8 @@ pub struct AsyncIIdentityAuthentication_Vtbl { #[cfg(not(feature = "Win32_UI_Shell_PropertiesSystem"))] Finish_ValidateIdentityCredential: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct AsyncIIdentityProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(AsyncIIdentityProvider, AsyncIIdentityProvider_Vtbl, 0xc6fc9901_c433_4646_8f48_4e4687aae2a0); +::windows_core::imp::interface_hierarchy!(AsyncIIdentityProvider, ::windows_core::IUnknown); impl AsyncIIdentityProvider { #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`, `\"Win32_UI_Shell_PropertiesSystem\"`"] #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant", feature = "Win32_UI_Shell_PropertiesSystem"))] @@ -288,13 +255,6 @@ impl AsyncIIdentityProvider { (::windows_core::Interface::vtable(self).Finish_UnAdvise)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(AsyncIIdentityProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for AsyncIIdentityProvider { - type Vtable = AsyncIIdentityProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AsyncIIdentityProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc6fc9901_c433_4646_8f48_4e4687aae2a0); -} #[repr(C)] #[doc(hidden)] pub struct AsyncIIdentityProvider_Vtbl { @@ -340,9 +300,8 @@ pub struct AsyncIIdentityProvider_Vtbl { pub Begin_UnAdvise: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwcookie: u32) -> ::windows_core::HRESULT, pub Finish_UnAdvise: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct AsyncIIdentityStore(::windows_core::IUnknown); +::windows_core::imp::com_interface!(AsyncIIdentityStore, AsyncIIdentityStore_Vtbl, 0xeefa1616_48de_4872_aa64_6e6206535a51); +::windows_core::imp::interface_hierarchy!(AsyncIIdentityStore, ::windows_core::IUnknown); impl AsyncIIdentityStore { pub unsafe fn Begin_GetCount(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Begin_GetCount)(::windows_core::Interface::as_raw(self)).ok() @@ -393,13 +352,6 @@ impl AsyncIIdentityStore { (::windows_core::Interface::vtable(self).Finish_Reset)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(AsyncIIdentityStore, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for AsyncIIdentityStore { - type Vtable = AsyncIIdentityStore_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AsyncIIdentityStore { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeefa1616_48de_4872_aa64_6e6206535a51); -} #[repr(C)] #[doc(hidden)] pub struct AsyncIIdentityStore_Vtbl { @@ -423,9 +375,8 @@ pub struct AsyncIIdentityStore_Vtbl { pub Begin_Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Finish_Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct AsyncIIdentityStoreEx(::windows_core::IUnknown); +::windows_core::imp::com_interface!(AsyncIIdentityStoreEx, AsyncIIdentityStoreEx_Vtbl, 0xfca3af9a_8a07_4eae_8632_ec3de658a36a); +::windows_core::imp::interface_hierarchy!(AsyncIIdentityStoreEx, ::windows_core::IUnknown); impl AsyncIIdentityStoreEx { pub unsafe fn Begin_CreateConnectedIdentity(&self, localname: P0, connectedname: P1, providerguid: *const ::windows_core::GUID) -> ::windows_core::Result<()> where @@ -447,13 +398,6 @@ impl AsyncIIdentityStoreEx { (::windows_core::Interface::vtable(self).Finish_DeleteConnectedIdentity)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(AsyncIIdentityStoreEx, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for AsyncIIdentityStoreEx { - type Vtable = AsyncIIdentityStoreEx_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AsyncIIdentityStoreEx { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfca3af9a_8a07_4eae_8632_ec3de658a36a); -} #[repr(C)] #[doc(hidden)] pub struct AsyncIIdentityStoreEx_Vtbl { @@ -463,9 +407,8 @@ pub struct AsyncIIdentityStoreEx_Vtbl { pub Begin_DeleteConnectedIdentity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, connectedname: ::windows_core::PCWSTR, providerguid: *const ::windows_core::GUID) -> ::windows_core::HRESULT, pub Finish_DeleteConnectedIdentity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAssociatedIdentityProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAssociatedIdentityProvider, IAssociatedIdentityProvider_Vtbl, 0x2af066b3_4cbb_4cba_a798_204b6af68cc0); +::windows_core::imp::interface_hierarchy!(IAssociatedIdentityProvider, ::windows_core::IUnknown); impl IAssociatedIdentityProvider { #[doc = "Required features: `\"Win32_UI_Shell_PropertiesSystem\"`"] #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] @@ -491,13 +434,6 @@ impl IAssociatedIdentityProvider { (::windows_core::Interface::vtable(self).ChangeCredential)(::windows_core::Interface::as_raw(self), hwndparent.into_param().abi(), lpszuniqueid.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IAssociatedIdentityProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAssociatedIdentityProvider { - type Vtable = IAssociatedIdentityProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAssociatedIdentityProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2af066b3_4cbb_4cba_a798_204b6af68cc0); -} #[repr(C)] #[doc(hidden)] pub struct IAssociatedIdentityProvider_Vtbl { @@ -509,9 +445,8 @@ pub struct IAssociatedIdentityProvider_Vtbl { pub DisassociateIdentity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwndparent: super::super::super::super::Foundation::HWND, lpszuniqueid: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub ChangeCredential: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwndparent: super::super::super::super::Foundation::HWND, lpszuniqueid: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IConnectedIdentityProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IConnectedIdentityProvider, IConnectedIdentityProvider_Vtbl, 0xb7417b54_e08c_429b_96c8_678d1369ecb1); +::windows_core::imp::interface_hierarchy!(IConnectedIdentityProvider, ::windows_core::IUnknown); impl IConnectedIdentityProvider { pub unsafe fn ConnectIdentity(&self, authbuffer: &[u8]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).ConnectIdentity)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(authbuffer.as_ptr()), authbuffer.len().try_into().unwrap()).ok() @@ -536,13 +471,6 @@ impl IConnectedIdentityProvider { (::windows_core::Interface::vtable(self).GetAccountState)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IConnectedIdentityProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IConnectedIdentityProvider { - type Vtable = IConnectedIdentityProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IConnectedIdentityProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb7417b54_e08c_429b_96c8_678d1369ecb1); -} #[repr(C)] #[doc(hidden)] pub struct IConnectedIdentityProvider_Vtbl { @@ -556,9 +484,8 @@ pub struct IConnectedIdentityProvider_Vtbl { GetUrl: usize, pub GetAccountState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstate: *mut ACCOUNT_STATE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIdentityAdvise(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IIdentityAdvise, IIdentityAdvise_Vtbl, 0x4e982fed_d14b_440c_b8d6_bb386453d386); +::windows_core::imp::interface_hierarchy!(IIdentityAdvise, ::windows_core::IUnknown); impl IIdentityAdvise { pub unsafe fn IdentityUpdated(&self, dwidentityupdateevents: IdentityUpdateEvent, lpszuniqueid: P0) -> ::windows_core::Result<()> where @@ -567,22 +494,14 @@ impl IIdentityAdvise { (::windows_core::Interface::vtable(self).IdentityUpdated)(::windows_core::Interface::as_raw(self), dwidentityupdateevents.0 as _, lpszuniqueid.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IIdentityAdvise, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIdentityAdvise { - type Vtable = IIdentityAdvise_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIdentityAdvise { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4e982fed_d14b_440c_b8d6_bb386453d386); -} #[repr(C)] #[doc(hidden)] pub struct IIdentityAdvise_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub IdentityUpdated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwidentityupdateevents: u32, lpszuniqueid: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIdentityAuthentication(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IIdentityAuthentication, IIdentityAuthentication_Vtbl, 0x5e7ef254_979f_43b5_b74e_06e4eb7df0f9); +::windows_core::imp::interface_hierarchy!(IIdentityAuthentication, ::windows_core::IUnknown); impl IIdentityAuthentication { pub unsafe fn SetIdentityCredential(&self, credbuffer: ::core::option::Option<&[u8]>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetIdentityCredential)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(credbuffer.as_deref().map_or(::core::ptr::null(), |slice| slice.as_ptr())), credbuffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap())).ok() @@ -593,13 +512,6 @@ impl IIdentityAuthentication { (::windows_core::Interface::vtable(self).ValidateIdentityCredential)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(credbuffer.as_ptr()), credbuffer.len().try_into().unwrap(), ::core::mem::transmute(ppidentityproperties.unwrap_or(::std::ptr::null_mut()))).ok() } } -::windows_core::imp::interface_hierarchy!(IIdentityAuthentication, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIdentityAuthentication { - type Vtable = IIdentityAuthentication_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIdentityAuthentication { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5e7ef254_979f_43b5_b74e_06e4eb7df0f9); -} #[repr(C)] #[doc(hidden)] pub struct IIdentityAuthentication_Vtbl { @@ -610,9 +522,8 @@ pub struct IIdentityAuthentication_Vtbl { #[cfg(not(feature = "Win32_UI_Shell_PropertiesSystem"))] ValidateIdentityCredential: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIdentityProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IIdentityProvider, IIdentityProvider_Vtbl, 0x0d1b9e0c_e8ba_4f55_a81b_bce934b948f5); +::windows_core::imp::interface_hierarchy!(IIdentityProvider, ::windows_core::IUnknown); impl IIdentityProvider { #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`, `\"Win32_UI_Shell_PropertiesSystem\"`"] #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant", feature = "Win32_UI_Shell_PropertiesSystem"))] @@ -670,13 +581,6 @@ impl IIdentityProvider { (::windows_core::Interface::vtable(self).UnAdvise)(::windows_core::Interface::as_raw(self), dwcookie).ok() } } -::windows_core::imp::interface_hierarchy!(IIdentityProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIdentityProvider { - type Vtable = IIdentityProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIdentityProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0d1b9e0c_e8ba_4f55_a81b_bce934b948f5); -} #[repr(C)] #[doc(hidden)] pub struct IIdentityProvider_Vtbl { @@ -708,9 +612,8 @@ pub struct IIdentityProvider_Vtbl { pub Advise: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pidentityadvise: *mut ::core::ffi::c_void, dwidentityupdateevents: u32, pdwcookie: *mut u32) -> ::windows_core::HRESULT, pub UnAdvise: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwcookie: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIdentityStore(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IIdentityStore, IIdentityStore_Vtbl, 0xdf586fa5_6f35_44f1_b209_b38e169772eb); +::windows_core::imp::interface_hierarchy!(IIdentityStore, ::windows_core::IUnknown); impl IIdentityStore { pub unsafe fn GetCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -741,13 +644,6 @@ impl IIdentityStore { (::windows_core::Interface::vtable(self).Reset)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IIdentityStore, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIdentityStore { - type Vtable = IIdentityStore_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIdentityStore { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdf586fa5_6f35_44f1_b209_b38e169772eb); -} #[repr(C)] #[doc(hidden)] pub struct IIdentityStore_Vtbl { @@ -762,9 +658,8 @@ pub struct IIdentityStore_Vtbl { EnumerateIdentities: usize, pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIdentityStoreEx(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IIdentityStoreEx, IIdentityStoreEx_Vtbl, 0xf9f9eb98_8f7f_4e38_9577_6980114ce32b); +::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 @@ -780,13 +675,6 @@ impl IIdentityStoreEx { (::windows_core::Interface::vtable(self).DeleteConnectedIdentity)(::windows_core::Interface::as_raw(self), connectedname.into_param().abi(), providerguid).ok() } } -::windows_core::imp::interface_hierarchy!(IIdentityStoreEx, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIdentityStoreEx { - type Vtable = IIdentityStoreEx_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIdentityStoreEx { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf9f9eb98_8f7f_4e38_9577_6980114ce32b); -} #[repr(C)] #[doc(hidden)] pub struct IIdentityStoreEx_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Security/Authentication/Identity/impl.rs b/crates/libs/windows/src/Windows/Win32/Security/Authentication/Identity/impl.rs index 61c87d3c62..e365b017a5 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/Authentication/Identity/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/Authentication/Identity/impl.rs @@ -12,6 +12,6 @@ impl ICcgDomainAuthCredentials_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetPasswordCredentials: GetPasswordCredentials:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 f099ad67d2..c280f1debf 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 @@ -1580,9 +1580,8 @@ pub unsafe fn VerifySignature(phcontext: *const super::super::Credentials::SecHa let mut result__ = ::std::mem::zeroed(); VerifySignature(phcontext, pmessage, messageseqno, &mut result__).from_abi(result__) } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICcgDomainAuthCredentials(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICcgDomainAuthCredentials, ICcgDomainAuthCredentials_Vtbl, 0x6ecda518_2010_4437_8bc3_46e752b7b172); +::windows_core::imp::interface_hierarchy!(ICcgDomainAuthCredentials, ::windows_core::IUnknown); 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 @@ -1591,13 +1590,6 @@ impl ICcgDomainAuthCredentials { (::windows_core::Interface::vtable(self).GetPasswordCredentials)(::windows_core::Interface::as_raw(self), plugininput.into_param().abi(), domainname, username, password).ok() } } -::windows_core::imp::interface_hierarchy!(ICcgDomainAuthCredentials, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICcgDomainAuthCredentials { - type Vtable = ICcgDomainAuthCredentials_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICcgDomainAuthCredentials { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6ecda518_2010_4437_8bc3_46e752b7b172); -} #[repr(C)] #[doc(hidden)] pub struct ICcgDomainAuthCredentials_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Security/Authorization/UI/impl.rs b/crates/libs/windows/src/Windows/Win32/Security/Authorization/UI/impl.rs index da2450c0e5..d3cd90265b 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/Authorization/UI/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/Authorization/UI/impl.rs @@ -12,7 +12,7 @@ impl IEffectivePermission_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetEffectivePermission: GetEffectivePermission:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEffectivePermission2_Impl: Sized { @@ -80,7 +80,7 @@ impl IEffectivePermission2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Controls\"`"] @@ -146,7 +146,7 @@ impl ISecurityInformation_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -183,7 +183,7 @@ impl ISecurityInformation2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISecurityInformation3_Impl: Sized { @@ -216,7 +216,7 @@ impl ISecurityInformation3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISecurityInformation4_Impl: Sized { @@ -233,7 +233,7 @@ impl ISecurityInformation4_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetSecondarySecurity: GetSecondarySecurity:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISecurityObjectTypeInfo_Impl: Sized { @@ -250,6 +250,6 @@ impl ISecurityObjectTypeInfo_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetInheritSource: GetInheritSource:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 67ef389eea..2397d9ee66 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 @@ -27,9 +27,8 @@ where ::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() } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEffectivePermission(::windows_core::IUnknown); +::windows_core::imp::com_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 @@ -40,22 +39,14 @@ impl IEffectivePermission { (::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::imp::interface_hierarchy!(IEffectivePermission, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEffectivePermission { - type Vtable = IEffectivePermission_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEffectivePermission { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3853dc76_9f35_407c_88a1_d19344365fbc); -} #[repr(C)] #[doc(hidden)] pub struct IEffectivePermission_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetEffectivePermission: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pguidobjecttype: *const ::windows_core::GUID, pusersid: super::super::super::Foundation::PSID, pszservername: ::windows_core::PCWSTR, psd: super::super::PSECURITY_DESCRIPTOR, ppobjecttypelist: *mut *mut super::super::OBJECT_TYPE_LIST, pcobjecttypelistlength: *mut u32, ppgrantedaccesslist: *mut *mut u32, pcgrantedaccesslistlength: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEffectivePermission2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEffectivePermission2, IEffectivePermission2_Vtbl, 0x941fabca_dd47_4fca_90bb_b0e10255f20d); +::windows_core::imp::interface_hierarchy!(IEffectivePermission2, ::windows_core::IUnknown); impl IEffectivePermission2 { pub unsafe fn ComputeEffectivePermissionWithSecondarySecurity( &self, @@ -99,13 +90,6 @@ impl IEffectivePermission2 { .ok() } } -::windows_core::imp::interface_hierarchy!(IEffectivePermission2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEffectivePermission2 { - type Vtable = IEffectivePermission2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEffectivePermission2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x941fabca_dd47_4fca_90bb_b0e10255f20d); -} #[repr(C)] #[doc(hidden)] pub struct IEffectivePermission2_Vtbl { @@ -128,9 +112,8 @@ pub struct IEffectivePermission2_Vtbl { peffpermresultlists: *mut EFFPERM_RESULT_LIST, ) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISecurityInformation(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISecurityInformation, ISecurityInformation_Vtbl, 0x965fc360_16ff_11d0_91cb_00aa00bbb723); +::windows_core::imp::interface_hierarchy!(ISecurityInformation, ::windows_core::IUnknown); impl ISecurityInformation { pub unsafe fn GetObjectInformation(&self, pobjectinfo: *mut SI_OBJECT_INFO) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetObjectInformation)(::windows_core::Interface::as_raw(self), pobjectinfo).ok() @@ -165,13 +148,6 @@ impl ISecurityInformation { (::windows_core::Interface::vtable(self).PropertySheetPageCallback)(::windows_core::Interface::as_raw(self), hwnd.into_param().abi(), umsg, upage).ok() } } -::windows_core::imp::interface_hierarchy!(ISecurityInformation, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISecurityInformation { - type Vtable = ISecurityInformation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISecurityInformation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x965fc360_16ff_11d0_91cb_00aa00bbb723); -} #[repr(C)] #[doc(hidden)] pub struct ISecurityInformation_Vtbl { @@ -187,9 +163,8 @@ pub struct ISecurityInformation_Vtbl { #[cfg(not(feature = "Win32_UI_Controls"))] PropertySheetPageCallback: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISecurityInformation2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISecurityInformation2, ISecurityInformation2_Vtbl, 0xc3ccfdb4_6f88_11d2_a3ce_00c04fb1782a); +::windows_core::imp::interface_hierarchy!(ISecurityInformation2, ::windows_core::IUnknown); impl ISecurityInformation2 { pub unsafe fn IsDaclCanonical(&self, pdacl: *const super::super::ACL) -> super::super::super::Foundation::BOOL { (::windows_core::Interface::vtable(self).IsDaclCanonical)(::windows_core::Interface::as_raw(self), pdacl) @@ -201,13 +176,6 @@ impl ISecurityInformation2 { (::windows_core::Interface::vtable(self).LookupSids)(::windows_core::Interface::as_raw(self), csids, rgpsids, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISecurityInformation2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISecurityInformation2 { - type Vtable = ISecurityInformation2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISecurityInformation2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc3ccfdb4_6f88_11d2_a3ce_00c04fb1782a); -} #[repr(C)] #[doc(hidden)] pub struct ISecurityInformation2_Vtbl { @@ -218,9 +186,8 @@ pub struct ISecurityInformation2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] LookupSids: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISecurityInformation3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISecurityInformation3, ISecurityInformation3_Vtbl, 0xe2cdc9cc_31bd_4f8f_8c8b_b641af516a1a); +::windows_core::imp::interface_hierarchy!(ISecurityInformation3, ::windows_core::IUnknown); impl ISecurityInformation3 { pub unsafe fn GetFullResourceName(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); @@ -233,13 +200,6 @@ impl ISecurityInformation3 { (::windows_core::Interface::vtable(self).OpenElevatedEditor)(::windows_core::Interface::as_raw(self), hwnd.into_param().abi(), upage).ok() } } -::windows_core::imp::interface_hierarchy!(ISecurityInformation3, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISecurityInformation3 { - type Vtable = ISecurityInformation3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISecurityInformation3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe2cdc9cc_31bd_4f8f_8c8b_b641af516a1a); -} #[repr(C)] #[doc(hidden)] pub struct ISecurityInformation3_Vtbl { @@ -247,42 +207,26 @@ pub struct ISecurityInformation3_Vtbl { pub GetFullResourceName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppszresourcename: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, pub OpenElevatedEditor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwnd: super::super::super::Foundation::HWND, upage: SI_PAGE_TYPE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISecurityInformation4(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISecurityInformation4, ISecurityInformation4_Vtbl, 0xea961070_cd14_4621_ace4_f63c03e583e4); +::windows_core::imp::interface_hierarchy!(ISecurityInformation4, ::windows_core::IUnknown); impl ISecurityInformation4 { pub unsafe fn GetSecondarySecurity(&self, psecurityobjects: *mut *mut SECURITY_OBJECT, psecurityobjectcount: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetSecondarySecurity)(::windows_core::Interface::as_raw(self), psecurityobjects, psecurityobjectcount).ok() } } -::windows_core::imp::interface_hierarchy!(ISecurityInformation4, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISecurityInformation4 { - type Vtable = ISecurityInformation4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISecurityInformation4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xea961070_cd14_4621_ace4_f63c03e583e4); -} #[repr(C)] #[doc(hidden)] pub struct ISecurityInformation4_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetSecondarySecurity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psecurityobjects: *mut *mut SECURITY_OBJECT, psecurityobjectcount: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISecurityObjectTypeInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISecurityObjectTypeInfo, ISecurityObjectTypeInfo_Vtbl, 0xfc3066eb_79ef_444b_9111_d18a75ebf2fa); +::windows_core::imp::interface_hierarchy!(ISecurityObjectTypeInfo, ::windows_core::IUnknown); impl ISecurityObjectTypeInfo { pub unsafe fn GetInheritSource(&self, si: u32, pacl: *mut super::super::ACL, ppinheritarray: *mut *mut super::INHERITED_FROMA) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetInheritSource)(::windows_core::Interface::as_raw(self), si, pacl, ppinheritarray).ok() } } -::windows_core::imp::interface_hierarchy!(ISecurityObjectTypeInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISecurityObjectTypeInfo { - type Vtable = ISecurityObjectTypeInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISecurityObjectTypeInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfc3066eb_79ef_444b_9111_d18a75ebf2fa); -} #[repr(C)] #[doc(hidden)] pub struct ISecurityObjectTypeInfo_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Security/Authorization/impl.rs b/crates/libs/windows/src/Windows/Win32/Security/Authorization/impl.rs index 72e6313264..b0d4cba835 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/Authorization/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/Authorization/impl.rs @@ -637,7 +637,7 @@ impl IAzApplication_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -680,7 +680,7 @@ impl IAzApplication2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -855,7 +855,7 @@ impl IAzApplication3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1168,7 +1168,7 @@ impl IAzApplicationGroup_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1258,7 +1258,7 @@ impl IAzApplicationGroup2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1314,7 +1314,7 @@ impl IAzApplicationGroups_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1370,7 +1370,7 @@ impl IAzApplications_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1876,7 +1876,7 @@ impl IAzAuthorizationStore_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1919,7 +1919,7 @@ impl IAzAuthorizationStore2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1989,7 +1989,7 @@ impl IAzAuthorizationStore3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2046,7 +2046,7 @@ impl IAzBizRuleContext_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2111,7 +2111,7 @@ impl IAzBizRuleInterfaces_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2182,7 +2182,7 @@ impl IAzBizRuleParameters_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2362,7 +2362,7 @@ impl IAzClientContext_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2427,7 +2427,7 @@ impl IAzClientContext2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2548,7 +2548,7 @@ impl IAzClientContext3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2579,7 +2579,7 @@ impl IAzNameResolver_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2616,7 +2616,7 @@ impl IAzObjectPicker_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2753,7 +2753,7 @@ impl IAzOperation_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2780,7 +2780,7 @@ impl IAzOperation2_Vtbl { Self { base__: IAzOperation_Vtbl::new::(), RoleAssignments: RoleAssignments:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2836,7 +2836,7 @@ impl IAzOperations_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2879,7 +2879,7 @@ impl IAzPrincipalLocator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3145,7 +3145,7 @@ impl IAzRole_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3202,7 +3202,7 @@ impl IAzRoleAssignment_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3258,7 +3258,7 @@ impl IAzRoleAssignments_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3315,7 +3315,7 @@ impl IAzRoleDefinition_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3371,7 +3371,7 @@ impl IAzRoleDefinitions_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3427,7 +3427,7 @@ impl IAzRoles_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3830,7 +3830,7 @@ impl IAzScope_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3939,7 +3939,7 @@ impl IAzScope2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3995,7 +3995,7 @@ impl IAzScopes_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4260,7 +4260,7 @@ impl IAzTask_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4287,7 +4287,7 @@ impl IAzTask2_Vtbl { Self { base__: IAzTask_Vtbl::new::(), RoleAssignments: RoleAssignments:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4343,6 +4343,6 @@ impl IAzTasks_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } 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 67362e2555..7e2ddd3810 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/Authorization/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/Authorization/mod.rs @@ -704,11 +704,15 @@ where ::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()))).ok() } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAzApplication(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IAzApplication, + IAzApplication_Vtbl, + 0x987bc7c7_b813_4d27_bede_6ba5ae867e95 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IAzApplication, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IAzApplication { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -1130,16 +1134,6 @@ impl IAzApplication { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IAzApplication, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IAzApplication { - type Vtable = IAzApplication_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IAzApplication { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x987bc7c7_b813_4d27_bede_6ba5ae867e95); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IAzApplication_Vtbl { @@ -1344,11 +1338,15 @@ pub struct IAzApplication_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] DeleteDelegatedPolicyUserName: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAzApplication2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IAzApplication2, + IAzApplication2_Vtbl, + 0x086a68af_a249_437c_b18d_d4d86d6a9660 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IAzApplication2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IAzApplication); #[cfg(feature = "Win32_System_Com")] impl IAzApplication2 { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -1785,16 +1783,6 @@ impl IAzApplication2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IAzApplication2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IAzApplication); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IAzApplication2 { - type Vtable = IAzApplication2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IAzApplication2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x086a68af_a249_437c_b18d_d4d86d6a9660); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IAzApplication2_Vtbl { @@ -1808,11 +1796,15 @@ pub struct IAzApplication2_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] InitializeClientContext2: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAzApplication3(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IAzApplication3, + IAzApplication3_Vtbl, + 0x181c845e_7196_4a7d_ac2e_020c0bb7a303 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IAzApplication3, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IAzApplication, IAzApplication2); #[cfg(feature = "Win32_System_Com")] impl IAzApplication3 { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -2350,16 +2342,6 @@ impl IAzApplication3 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IAzApplication3, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IAzApplication, IAzApplication2); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IAzApplication3 { - type Vtable = IAzApplication3_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IAzApplication3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x181c845e_7196_4a7d_ac2e_020c0bb7a303); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IAzApplication3_Vtbl { @@ -2403,11 +2385,15 @@ pub struct IAzApplication3_Vtbl { pub BizRulesEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbenabled: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub SetBizRulesEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, benabled: super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAzApplicationGroup(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IAzApplicationGroup, + IAzApplicationGroup_Vtbl, + 0xf1b744cd_58a6_4e06_9fbf_36f6d779e21e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IAzApplicationGroup, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IAzApplicationGroup { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -2611,16 +2597,6 @@ impl IAzApplicationGroup { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IAzApplicationGroup, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IAzApplicationGroup { - type Vtable = IAzApplicationGroup_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IAzApplicationGroup { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf1b744cd_58a6_4e06_9fbf_36f6d779e21e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IAzApplicationGroup_Vtbl { @@ -2727,11 +2703,15 @@ pub struct IAzApplicationGroup_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] NonMembersName: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAzApplicationGroup2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IAzApplicationGroup2, + IAzApplicationGroup2_Vtbl, + 0x3f0613fc_b71a_464e_a11d_5b881a56cefa +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IAzApplicationGroup2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IAzApplicationGroup); #[cfg(feature = "Win32_System_Com")] impl IAzApplicationGroup2 { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -2975,16 +2955,6 @@ impl IAzApplicationGroup2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IAzApplicationGroup2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IAzApplicationGroup); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IAzApplicationGroup2 { - type Vtable = IAzApplicationGroup2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IAzApplicationGroup2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3f0613fc_b71a_464e_a11d_5b881a56cefa); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IAzApplicationGroup2_Vtbl { @@ -3000,11 +2970,15 @@ pub struct IAzApplicationGroup2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] RoleAssignments: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAzApplicationGroups(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IAzApplicationGroups, + IAzApplicationGroups_Vtbl, + 0x4ce66ad5_9f3c_469d_a911_b99887a7e685 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IAzApplicationGroups, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IAzApplicationGroups { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3023,16 +2997,6 @@ impl IAzApplicationGroups { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IAzApplicationGroups, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IAzApplicationGroups { - type Vtable = IAzApplicationGroups_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IAzApplicationGroups { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4ce66ad5_9f3c_469d_a911_b99887a7e685); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IAzApplicationGroups_Vtbl { @@ -3044,11 +3008,15 @@ pub struct IAzApplicationGroups_Vtbl { pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plcount: *mut i32) -> ::windows_core::HRESULT, pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenumptr: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAzApplications(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IAzApplications, + IAzApplications_Vtbl, + 0x929b11a9_95c5_4a84_a29a_20ad42c2f16c +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IAzApplications, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IAzApplications { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3067,16 +3035,6 @@ impl IAzApplications { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IAzApplications, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IAzApplications { - type Vtable = IAzApplications_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IAzApplications { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x929b11a9_95c5_4a84_a29a_20ad42c2f16c); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IAzApplications_Vtbl { @@ -3088,11 +3046,15 @@ pub struct IAzApplications_Vtbl { pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plcount: *mut i32) -> ::windows_core::HRESULT, pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenumptr: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAzAuthorizationStore(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IAzAuthorizationStore, + IAzAuthorizationStore_Vtbl, + 0xedbd9ca9_9b82_4f6a_9e8b_98301e450f14 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IAzAuthorizationStore, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IAzAuthorizationStore { pub unsafe fn Description(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -3412,16 +3374,6 @@ impl IAzAuthorizationStore { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IAzAuthorizationStore, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IAzAuthorizationStore { - type Vtable = IAzAuthorizationStore_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IAzAuthorizationStore { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xedbd9ca9_9b82_4f6a_9e8b_98301e450f14); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IAzAuthorizationStore_Vtbl { @@ -3580,11 +3532,15 @@ pub struct IAzAuthorizationStore_Vtbl { DeleteDelegatedPolicyUserName: usize, pub CloseApplication: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrapplicationname: ::std::mem::MaybeUninit<::windows_core::BSTR>, lflag: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAzAuthorizationStore2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IAzAuthorizationStore2, + IAzAuthorizationStore2_Vtbl, + 0xb11e5584_d577_4273_b6c5_0973e0f8e80d +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IAzAuthorizationStore2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IAzAuthorizationStore); #[cfg(feature = "Win32_System_Com")] impl IAzAuthorizationStore2 { pub unsafe fn Description(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -3922,16 +3878,6 @@ impl IAzAuthorizationStore2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IAzAuthorizationStore2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IAzAuthorizationStore); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IAzAuthorizationStore2 { - type Vtable = IAzAuthorizationStore2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IAzAuthorizationStore2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb11e5584_d577_4273_b6c5_0973e0f8e80d); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IAzAuthorizationStore2_Vtbl { @@ -3945,11 +3891,15 @@ pub struct IAzAuthorizationStore2_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] CreateApplication2: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAzAuthorizationStore3(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IAzAuthorizationStore3, + IAzAuthorizationStore3_Vtbl, + 0xabc08425_0c86_4fa0_9be3_7189956c926e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IAzAuthorizationStore3, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IAzAuthorizationStore, IAzAuthorizationStore2); #[cfg(feature = "Win32_System_Com")] impl IAzAuthorizationStore3 { pub unsafe fn Description(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -4305,16 +4255,6 @@ impl IAzAuthorizationStore3 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IAzAuthorizationStore3, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IAzAuthorizationStore, IAzAuthorizationStore2); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IAzAuthorizationStore3 { - type Vtable = IAzAuthorizationStore3_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IAzAuthorizationStore3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xabc08425_0c86_4fa0_9be3_7189956c926e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IAzAuthorizationStore3_Vtbl { @@ -4325,11 +4265,15 @@ pub struct IAzAuthorizationStore3_Vtbl { pub IsFunctionalLevelUpgradeSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lfunctionallevel: i32, pbsupported: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub GetSchemaVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plmajorversion: *mut i32, plminorversion: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAzBizRuleContext(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IAzBizRuleContext, + IAzBizRuleContext_Vtbl, + 0xe192f17d_d59f_455e_a152_940316cd77b2 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IAzBizRuleContext, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IAzBizRuleContext { pub unsafe fn SetBusinessRuleResult(&self, bresult: P0) -> ::windows_core::Result<()> @@ -4359,16 +4303,6 @@ impl IAzBizRuleContext { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IAzBizRuleContext, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IAzBizRuleContext { - type Vtable = IAzBizRuleContext_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IAzBizRuleContext { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe192f17d_d59f_455e_a152_940316cd77b2); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IAzBizRuleContext_Vtbl { @@ -4381,11 +4315,15 @@ pub struct IAzBizRuleContext_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] GetParameter: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAzBizRuleInterfaces(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IAzBizRuleInterfaces, + IAzBizRuleInterfaces_Vtbl, + 0xe94128c7_e9da_44cc_b0bd_53036f3aab3d +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IAzBizRuleInterfaces, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IAzBizRuleInterfaces { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4424,16 +4362,6 @@ impl IAzBizRuleInterfaces { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IAzBizRuleInterfaces, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IAzBizRuleInterfaces { - type Vtable = IAzBizRuleInterfaces_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IAzBizRuleInterfaces { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe94128c7_e9da_44cc_b0bd_53036f3aab3d); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IAzBizRuleInterfaces_Vtbl { @@ -4454,11 +4382,15 @@ pub struct IAzBizRuleInterfaces_Vtbl { pub RemoveAll: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plcount: *mut u32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAzBizRuleParameters(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IAzBizRuleParameters, + IAzBizRuleParameters_Vtbl, + 0xfc17685f_e25d_4dcd_bae1_276ec9533cb5 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IAzBizRuleParameters, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IAzBizRuleParameters { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4498,16 +4430,6 @@ impl IAzBizRuleParameters { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IAzBizRuleParameters, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IAzBizRuleParameters { - type Vtable = IAzBizRuleParameters_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IAzBizRuleParameters { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfc17685f_e25d_4dcd_bae1_276ec9533cb5); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IAzBizRuleParameters_Vtbl { @@ -4528,11 +4450,15 @@ pub struct IAzBizRuleParameters_Vtbl { pub RemoveAll: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plcount: *mut u32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAzClientContext(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IAzClientContext, + IAzClientContext_Vtbl, + 0xeff1f00b_488a_466d_afd9_a401c5f9eef5 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IAzClientContext, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IAzClientContext { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4603,16 +4529,6 @@ impl IAzClientContext { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IAzClientContext, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IAzClientContext { - type Vtable = IAzClientContext_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IAzClientContext { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeff1f00b_488a_466d_afd9_a401c5f9eef5); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IAzClientContext_Vtbl { @@ -4640,11 +4556,15 @@ pub struct IAzClientContext_Vtbl { pub RoleForAccessCheck: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrprop: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SetRoleForAccessCheck: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprop: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAzClientContext2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IAzClientContext2, + IAzClientContext2_Vtbl, + 0x2b0c92b8_208a_488a_8f81_e4edb22111cd +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IAzClientContext2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IAzClientContext); #[cfg(feature = "Win32_System_Com")] impl IAzClientContext2 { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4748,16 +4668,6 @@ impl IAzClientContext2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IAzClientContext2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IAzClientContext); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IAzClientContext2 { - type Vtable = IAzClientContext2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IAzClientContext2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2b0c92b8_208a_488a_8f81_e4edb22111cd); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IAzClientContext2_Vtbl { @@ -4781,11 +4691,15 @@ pub struct IAzClientContext2_Vtbl { pub SetLDAPQueryDN: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrldapquerydn: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub LDAPQueryDN: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrldapquerydn: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAzClientContext3(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IAzClientContext3, + IAzClientContext3_Vtbl, + 0x11894fde_1deb_4b4b_8907_6d1cda1f5d4f +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IAzClientContext3, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IAzClientContext, IAzClientContext2); #[cfg(feature = "Win32_System_Com")] impl IAzClientContext3 { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4950,16 +4864,6 @@ impl IAzClientContext3 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IAzClientContext3, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IAzClientContext, IAzClientContext2); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IAzClientContext3 { - type Vtable = IAzClientContext3_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IAzClientContext3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x11894fde_1deb_4b4b_8907_6d1cda1f5d4f); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IAzClientContext3_Vtbl { @@ -4991,11 +4895,15 @@ pub struct IAzClientContext3_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] Sids: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAzNameResolver(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IAzNameResolver, + IAzNameResolver_Vtbl, + 0x504d0f15_73e2_43df_a870_a64f40714f53 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IAzNameResolver, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IAzNameResolver { pub unsafe fn NameFromSid(&self, bstrsid: P0, psidtype: *mut i32, pbstrname: *mut ::windows_core::BSTR) -> ::windows_core::Result<()> @@ -5011,16 +4919,6 @@ impl IAzNameResolver { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IAzNameResolver, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IAzNameResolver { - type Vtable = IAzNameResolver_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IAzNameResolver { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x504d0f15_73e2_43df_a870_a64f40714f53); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IAzNameResolver_Vtbl { @@ -5031,11 +4929,15 @@ pub struct IAzNameResolver_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] NamesFromSids: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAzObjectPicker(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IAzObjectPicker, + IAzObjectPicker_Vtbl, + 0x63130a48_699a_42d8_bf01_c62ac3fb79f9 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IAzObjectPicker, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IAzObjectPicker { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5053,16 +4955,6 @@ impl IAzObjectPicker { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IAzObjectPicker, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IAzObjectPicker { - type Vtable = IAzObjectPicker_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IAzObjectPicker { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x63130a48_699a_42d8_bf01_c62ac3fb79f9); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IAzObjectPicker_Vtbl { @@ -5073,11 +4965,15 @@ pub struct IAzObjectPicker_Vtbl { GetPrincipals: usize, pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAzOperation(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IAzOperation, + IAzOperation_Vtbl, + 0x5e56b24f_ea01_4d61_be44_c49b5e4eaf74 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IAzOperation, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IAzOperation { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -5139,16 +5035,6 @@ impl IAzOperation { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IAzOperation, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IAzOperation { - type Vtable = IAzOperation_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IAzOperation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5e56b24f_ea01_4d61_be44_c49b5e4eaf74); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IAzOperation_Vtbl { @@ -5175,11 +5061,15 @@ pub struct IAzOperation_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] Submit: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAzOperation2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IAzOperation2, + IAzOperation2_Vtbl, + 0x1f5ea01f_44a2_4184_9c48_a75b4dcc8ccc +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IAzOperation2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IAzOperation); #[cfg(feature = "Win32_System_Com")] impl IAzOperation2 { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -5251,16 +5141,6 @@ impl IAzOperation2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IAzOperation2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IAzOperation); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IAzOperation2 { - type Vtable = IAzOperation2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IAzOperation2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1f5ea01f_44a2_4184_9c48_a75b4dcc8ccc); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IAzOperation2_Vtbl { @@ -5270,11 +5150,15 @@ pub struct IAzOperation2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] RoleAssignments: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAzOperations(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IAzOperations, + IAzOperations_Vtbl, + 0x90ef9c07_9706_49d9_af80_0438a5f3ec35 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IAzOperations, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IAzOperations { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5293,16 +5177,6 @@ impl IAzOperations { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IAzOperations, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IAzOperations { - type Vtable = IAzOperations_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IAzOperations { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x90ef9c07_9706_49d9_af80_0438a5f3ec35); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IAzOperations_Vtbl { @@ -5314,11 +5188,15 @@ pub struct IAzOperations_Vtbl { pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plcount: *mut i32) -> ::windows_core::HRESULT, pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenumptr: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAzPrincipalLocator(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IAzPrincipalLocator, + IAzPrincipalLocator_Vtbl, + 0xe5c3507d_ad6a_4992_9c7f_74ab480b44cc +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IAzPrincipalLocator, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IAzPrincipalLocator { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -5335,16 +5213,6 @@ impl IAzPrincipalLocator { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IAzPrincipalLocator, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IAzPrincipalLocator { - type Vtable = IAzPrincipalLocator_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IAzPrincipalLocator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe5c3507d_ad6a_4992_9c7f_74ab480b44cc); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IAzPrincipalLocator_Vtbl { @@ -5358,11 +5226,15 @@ pub struct IAzPrincipalLocator_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] ObjectPicker: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAzRole(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IAzRole, + IAzRole_Vtbl, + 0x859e0d8d_62d7_41d8_a034_c0cd5d43fdfa +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IAzRole, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IAzRole { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -5537,16 +5409,6 @@ impl IAzRole { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IAzRole, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IAzRole { - type Vtable = IAzRole_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IAzRole { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x859e0d8d_62d7_41d8_a034_c0cd5d43fdfa); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IAzRole_Vtbl { @@ -5639,11 +5501,15 @@ pub struct IAzRole_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] MembersName: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAzRoleAssignment(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IAzRoleAssignment, + IAzRoleAssignment_Vtbl, + 0x55647d31_0d5a_4fa3_b4ac_2b5f9ad5ab76 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IAzRoleAssignment, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IAzRole); #[cfg(feature = "Win32_System_Com")] impl IAzRoleAssignment { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -5842,16 +5708,6 @@ impl IAzRoleAssignment { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IAzRoleAssignment, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IAzRole); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IAzRoleAssignment { - type Vtable = IAzRoleAssignment_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IAzRoleAssignment { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x55647d31_0d5a_4fa3_b4ac_2b5f9ad5ab76); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IAzRoleAssignment_Vtbl { @@ -5867,11 +5723,15 @@ pub struct IAzRoleAssignment_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Scope: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAzRoleAssignments(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IAzRoleAssignments, + IAzRoleAssignments_Vtbl, + 0x9c80b900_fceb_4d73_a0f4_c83b0bbf2481 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IAzRoleAssignments, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IAzRoleAssignments { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5890,16 +5750,6 @@ impl IAzRoleAssignments { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IAzRoleAssignments, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IAzRoleAssignments { - type Vtable = IAzRoleAssignments_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IAzRoleAssignments { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9c80b900_fceb_4d73_a0f4_c83b0bbf2481); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IAzRoleAssignments_Vtbl { @@ -5911,11 +5761,15 @@ pub struct IAzRoleAssignments_Vtbl { pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plcount: *mut i32) -> ::windows_core::HRESULT, pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenumptr: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAzRoleDefinition(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IAzRoleDefinition, + IAzRoleDefinition_Vtbl, + 0xd97fcea1_2599_44f1_9fc3_58e9fbe09466 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IAzRoleDefinition, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IAzTask); #[cfg(feature = "Win32_System_Com")] impl IAzRoleDefinition { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -6092,16 +5946,6 @@ impl IAzRoleDefinition { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IAzRoleDefinition, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IAzTask); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IAzRoleDefinition { - type Vtable = IAzRoleDefinition_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IAzRoleDefinition { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd97fcea1_2599_44f1_9fc3_58e9fbe09466); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IAzRoleDefinition_Vtbl { @@ -6117,11 +5961,15 @@ pub struct IAzRoleDefinition_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] RoleDefinitions: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAzRoleDefinitions(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IAzRoleDefinitions, + IAzRoleDefinitions_Vtbl, + 0x881f25a5_d755_4550_957a_d503a3b34001 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IAzRoleDefinitions, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IAzRoleDefinitions { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6140,16 +5988,6 @@ impl IAzRoleDefinitions { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IAzRoleDefinitions, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IAzRoleDefinitions { - type Vtable = IAzRoleDefinitions_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IAzRoleDefinitions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x881f25a5_d755_4550_957a_d503a3b34001); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IAzRoleDefinitions_Vtbl { @@ -6161,11 +5999,15 @@ pub struct IAzRoleDefinitions_Vtbl { pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plcount: *mut i32) -> ::windows_core::HRESULT, pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenumptr: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAzRoles(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IAzRoles, + IAzRoles_Vtbl, + 0x95e0f119_13b4_4dae_b65f_2f7d60d822e4 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IAzRoles, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IAzRoles { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6184,16 +6026,6 @@ impl IAzRoles { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IAzRoles, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IAzRoles { - type Vtable = IAzRoles_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IAzRoles { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x95e0f119_13b4_4dae_b65f_2f7d60d822e4); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IAzRoles_Vtbl { @@ -6205,11 +6037,15 @@ pub struct IAzRoles_Vtbl { pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plcount: *mut i32) -> ::windows_core::HRESULT, pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenumptr: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAzScope(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IAzScope, + IAzScope_Vtbl, + 0x00e52487_e08d_4514_b62e_877d5645f5ab +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IAzScope, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IAzScope { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -6466,16 +6302,6 @@ impl IAzScope { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IAzScope, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IAzScope { - type Vtable = IAzScope_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IAzScope { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00e52487_e08d_4514_b62e_877d5645f5ab); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IAzScope_Vtbl { @@ -6606,11 +6432,15 @@ pub struct IAzScope_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] DeletePolicyReaderName: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAzScope2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IAzScope2, + IAzScope2_Vtbl, + 0xee9fe8c9_c9f3_40e2_aa12_d1d8599727fd +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IAzScope2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IAzScope); #[cfg(feature = "Win32_System_Com")] impl IAzScope2 { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -6927,16 +6757,6 @@ impl IAzScope2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IAzScope2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IAzScope); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IAzScope2 { - type Vtable = IAzScope2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IAzScope2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xee9fe8c9_c9f3_40e2_aa12_d1d8599727fd); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IAzScope2_Vtbl { @@ -6968,11 +6788,15 @@ pub struct IAzScope2_Vtbl { OpenRoleAssignment: usize, pub DeleteRoleAssignment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrroleassignmentname: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAzScopes(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IAzScopes, + IAzScopes_Vtbl, + 0x78e14853_9f5e_406d_9b91_6bdba6973510 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IAzScopes, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IAzScopes { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6991,16 +6815,6 @@ impl IAzScopes { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IAzScopes, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IAzScopes { - type Vtable = IAzScopes_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IAzScopes { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x78e14853_9f5e_406d_9b91_6bdba6973510); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IAzScopes_Vtbl { @@ -7012,11 +6826,15 @@ pub struct IAzScopes_Vtbl { pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plcount: *mut i32) -> ::windows_core::HRESULT, pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenumptr: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAzTask(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IAzTask, + IAzTask_Vtbl, + 0xcb94e592_2e0e_4a6c_a336_b89a6dc1e388 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IAzTask, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IAzTask { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -7165,16 +6983,6 @@ impl IAzTask { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IAzTask, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IAzTask { - type Vtable = IAzTask_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IAzTask { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcb94e592_2e0e_4a6c_a336_b89a6dc1e388); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IAzTask_Vtbl { @@ -7239,11 +7047,15 @@ pub struct IAzTask_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] Submit: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAzTask2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IAzTask2, + IAzTask2_Vtbl, + 0x03a9a5ee_48c8_4832_9025_aad503c46526 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IAzTask2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IAzTask); #[cfg(feature = "Win32_System_Com")] impl IAzTask2 { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -7402,16 +7214,6 @@ impl IAzTask2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IAzTask2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IAzTask); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IAzTask2 { - type Vtable = IAzTask2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IAzTask2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x03a9a5ee_48c8_4832_9025_aad503c46526); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IAzTask2_Vtbl { @@ -7421,11 +7223,15 @@ pub struct IAzTask2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] RoleAssignments: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAzTasks(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IAzTasks, + IAzTasks_Vtbl, + 0xb338ccab_4c85_4388_8c0a_c58592bad398 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IAzTasks, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IAzTasks { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -7444,16 +7250,6 @@ impl IAzTasks { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IAzTasks, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IAzTasks { - type Vtable = IAzTasks_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IAzTasks { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb338ccab_4c85_4388_8c0a_c58592bad398); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IAzTasks_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Security/ConfigurationSnapin/impl.rs b/crates/libs/windows/src/Windows/Win32/Security/ConfigurationSnapin/impl.rs index 7e5602323e..85476ad7b9 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/ConfigurationSnapin/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/ConfigurationSnapin/impl.rs @@ -36,7 +36,7 @@ impl ISceSvcAttachmentData_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISceSvcAttachmentPersistInfo_Impl: Sized { @@ -70,6 +70,6 @@ impl ISceSvcAttachmentPersistInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 4d41a20763..ef7d1f9453 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/ConfigurationSnapin/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/ConfigurationSnapin/mod.rs @@ -1,6 +1,5 @@ -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISceSvcAttachmentData(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISceSvcAttachmentData, ISceSvcAttachmentData_Vtbl, 0x17c35fde_200d_11d1_affb_00c04fb984f9); +::windows_core::imp::interface_hierarchy!(ISceSvcAttachmentData, ::windows_core::IUnknown); impl ISceSvcAttachmentData { pub unsafe fn GetData(&self, scesvchandle: *mut ::core::ffi::c_void, scetype: SCESVC_INFO_TYPE, ppvdata: *mut *mut ::core::ffi::c_void, psceenumhandle: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetData)(::windows_core::Interface::as_raw(self), scesvchandle, scetype, ppvdata, psceenumhandle).ok() @@ -18,13 +17,6 @@ impl ISceSvcAttachmentData { (::windows_core::Interface::vtable(self).CloseHandle)(::windows_core::Interface::as_raw(self), scesvchandle).ok() } } -::windows_core::imp::interface_hierarchy!(ISceSvcAttachmentData, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISceSvcAttachmentData { - type Vtable = ISceSvcAttachmentData_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISceSvcAttachmentData { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x17c35fde_200d_11d1_affb_00c04fb984f9); -} #[repr(C)] #[doc(hidden)] pub struct ISceSvcAttachmentData_Vtbl { @@ -34,9 +26,8 @@ pub struct ISceSvcAttachmentData_Vtbl { pub FreeBuffer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvdata: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CloseHandle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, scesvchandle: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISceSvcAttachmentPersistInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISceSvcAttachmentPersistInfo, ISceSvcAttachmentPersistInfo_Vtbl, 0x6d90e0d0_200d_11d1_affb_00c04fb984f9); +::windows_core::imp::interface_hierarchy!(ISceSvcAttachmentPersistInfo, ::windows_core::IUnknown); impl ISceSvcAttachmentPersistInfo { pub unsafe fn Save(&self, lptemplatename: *mut i8, scesvchandle: *mut *mut ::core::ffi::c_void, ppvdata: *mut *mut ::core::ffi::c_void, pboverwriteall: *mut super::super::Foundation::BOOL) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Save)(::windows_core::Interface::as_raw(self), lptemplatename, scesvchandle, ppvdata, pboverwriteall).ok() @@ -48,13 +39,6 @@ impl ISceSvcAttachmentPersistInfo { (::windows_core::Interface::vtable(self).FreeBuffer)(::windows_core::Interface::as_raw(self), pvdata).ok() } } -::windows_core::imp::interface_hierarchy!(ISceSvcAttachmentPersistInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISceSvcAttachmentPersistInfo { - type Vtable = ISceSvcAttachmentPersistInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISceSvcAttachmentPersistInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6d90e0d0_200d_11d1_affb_00c04fb984f9); -} #[repr(C)] #[doc(hidden)] pub struct ISceSvcAttachmentPersistInfo_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Security/Cryptography/Certificates/impl.rs b/crates/libs/windows/src/Windows/Win32/Security/Cryptography/Certificates/impl.rs index 45b029586d..5bd7eaef00 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/Cryptography/Certificates/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/Cryptography/Certificates/impl.rs @@ -85,7 +85,7 @@ impl IAlternativeName_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -162,7 +162,7 @@ impl IAlternativeNames_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -218,7 +218,7 @@ impl IBinaryConverter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -261,7 +261,7 @@ impl IBinaryConverter2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -838,7 +838,7 @@ impl ICEnroll_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -909,7 +909,7 @@ impl ICEnroll2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1072,7 +1072,7 @@ impl ICEnroll3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1404,7 +1404,7 @@ impl ICEnroll4_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1521,7 +1521,7 @@ impl ICertAdmin_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1657,7 +1657,7 @@ impl ICertAdmin2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1726,7 +1726,7 @@ impl ICertConfig_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1747,7 +1747,7 @@ impl ICertConfig2_Vtbl { Self { base__: ICertConfig_Vtbl::new::(), SetSharedFolder: SetSharedFolder:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1837,7 +1837,7 @@ impl ICertEncodeAltName_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1894,7 +1894,7 @@ impl ICertEncodeAltName2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1957,7 +1957,7 @@ impl ICertEncodeBitString_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2007,7 +2007,7 @@ impl ICertEncodeBitString2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2117,7 +2117,7 @@ impl ICertEncodeCRLDistInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2154,7 +2154,7 @@ impl ICertEncodeCRLDistInfo2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2231,7 +2231,7 @@ impl ICertEncodeDateArray_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2268,7 +2268,7 @@ impl ICertEncodeDateArray2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2345,7 +2345,7 @@ impl ICertEncodeLongArray_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2382,7 +2382,7 @@ impl ICertEncodeLongArray2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2472,7 +2472,7 @@ impl ICertEncodeStringArray_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2509,7 +2509,7 @@ impl ICertEncodeStringArray2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2559,7 +2559,7 @@ impl ICertExit_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2586,7 +2586,7 @@ impl ICertExit2_Vtbl { Self { base__: ICertExit_Vtbl::new::(), GetManageModule: GetManageModule:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2613,7 +2613,7 @@ impl ICertGetConfig_Vtbl { Self { base__: super::super::super::System::Com::IDispatch_Vtbl::new::(), GetConfig: GetConfig:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2657,7 +2657,7 @@ impl ICertManageModule_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2714,7 +2714,7 @@ impl ICertPolicy_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2741,7 +2741,7 @@ impl ICertPolicy2_Vtbl { Self { base__: ICertPolicy_Vtbl::new::(), GetManageModule: GetManageModule:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2825,7 +2825,7 @@ impl ICertProperties_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2903,7 +2903,7 @@ impl ICertProperty_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2940,7 +2940,7 @@ impl ICertPropertyArchived_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2977,7 +2977,7 @@ impl ICertPropertyArchivedKeyHash_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3014,7 +3014,7 @@ impl ICertPropertyAutoEnroll_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3071,7 +3071,7 @@ impl ICertPropertyBackedUp_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3108,7 +3108,7 @@ impl ICertPropertyDescription_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3184,7 +3184,7 @@ impl ICertPropertyEnrollment_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3312,7 +3312,7 @@ impl ICertPropertyEnrollmentPolicyServer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3349,7 +3349,7 @@ impl ICertPropertyFriendlyName_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3386,7 +3386,7 @@ impl ICertPropertyKeyProvInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3430,7 +3430,7 @@ impl ICertPropertyRenewal_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3474,7 +3474,7 @@ impl ICertPropertyRequestOriginator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3511,7 +3511,7 @@ impl ICertPropertySHA1Hash_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3619,7 +3619,7 @@ impl ICertRequest_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3714,7 +3714,7 @@ impl ICertRequest2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3777,7 +3777,7 @@ impl ICertRequest3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ICertRequestD_Impl: Sized { @@ -3817,7 +3817,7 @@ impl ICertRequestD_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICertRequestD2_Impl: Sized + ICertRequestD_Impl { @@ -3864,7 +3864,7 @@ impl ICertRequestD2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4007,7 +4007,7 @@ impl ICertServerExit_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4164,7 +4164,7 @@ impl ICertServerPolicy_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4249,7 +4249,7 @@ impl ICertView_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4270,7 +4270,7 @@ impl ICertView2_Vtbl { Self { base__: ICertView_Vtbl::new::(), SetTable: SetTable:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4320,7 +4320,7 @@ impl ICertificateAttestationChallenge_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4351,7 +4351,7 @@ impl ICertificateAttestationChallenge2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4428,7 +4428,7 @@ impl ICertificatePolicies_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4478,7 +4478,7 @@ impl ICertificatePolicy_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4575,7 +4575,7 @@ impl ICertificationAuthorities_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4602,7 +4602,7 @@ impl ICertificationAuthority_Vtbl { Self { base__: super::super::super::System::Com::IDispatch_Vtbl::new::(), get_Property: get_Property:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4659,7 +4659,7 @@ impl ICryptAttribute_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4756,7 +4756,7 @@ impl ICryptAttributes_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4903,7 +4903,7 @@ impl ICspAlgorithm_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5006,7 +5006,7 @@ impl ICspAlgorithms_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5232,7 +5232,7 @@ impl ICspInformation_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5381,7 +5381,7 @@ impl ICspInformations_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5477,7 +5477,7 @@ impl ICspStatus_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5606,7 +5606,7 @@ impl ICspStatuses_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IEnroll_Impl: Sized { @@ -6109,7 +6109,7 @@ impl IEnroll_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnroll2_Impl: Sized + IEnroll_Impl { @@ -6248,7 +6248,7 @@ impl IEnroll2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IEnroll4_Impl: Sized + IEnroll2_Impl { @@ -6485,7 +6485,7 @@ impl IEnroll4_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6550,7 +6550,7 @@ impl IEnumCERTVIEWATTRIBUTE_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6643,7 +6643,7 @@ impl IEnumCERTVIEWCOLUMN_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6715,7 +6715,7 @@ impl IEnumCERTVIEWEXTENSION_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6812,7 +6812,7 @@ impl IEnumCERTVIEWROW_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait INDESPolicy_Impl: Sized { @@ -6866,7 +6866,7 @@ impl INDESPolicy_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6989,7 +6989,7 @@ impl IOCSPAdmin_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -7264,7 +7264,7 @@ impl IOCSPCAConfiguration_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -7353,7 +7353,7 @@ impl IOCSPCAConfigurationCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -7416,7 +7416,7 @@ impl IOCSPProperty_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -7525,7 +7525,7 @@ impl IOCSPPropertyCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -7622,7 +7622,7 @@ impl IObjectId_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -7706,7 +7706,7 @@ impl IObjectIds_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -7782,7 +7782,7 @@ impl IPolicyQualifier_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -7859,7 +7859,7 @@ impl IPolicyQualifiers_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -7989,7 +7989,7 @@ impl ISignerCertificate_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -8079,7 +8079,7 @@ impl ISignerCertificates_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -8170,7 +8170,7 @@ impl ISmimeCapabilities_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -8220,7 +8220,7 @@ impl ISmimeCapability_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -8277,7 +8277,7 @@ impl IX500DistinguishedName_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -8327,7 +8327,7 @@ impl IX509Attribute_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -8397,7 +8397,7 @@ impl IX509AttributeArchiveKey_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -8441,7 +8441,7 @@ impl IX509AttributeArchiveKeyHash_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -8524,7 +8524,7 @@ impl IX509AttributeClientId_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -8594,7 +8594,7 @@ impl IX509AttributeCspProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -8638,7 +8638,7 @@ impl IX509AttributeExtensions_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -8682,7 +8682,7 @@ impl IX509AttributeOSVersion_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -8726,7 +8726,7 @@ impl IX509AttributeRenewalCertificate_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -8803,7 +8803,7 @@ impl IX509Attributes_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -9073,7 +9073,7 @@ impl IX509CertificateRequest_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -9197,7 +9197,7 @@ impl IX509CertificateRequestCertificate_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -9254,7 +9254,7 @@ impl IX509CertificateRequestCertificate2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -9528,7 +9528,7 @@ impl IX509CertificateRequestCmc_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -9599,7 +9599,7 @@ impl IX509CertificateRequestCmc2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -9926,7 +9926,7 @@ impl IX509CertificateRequestPkcs10_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -9990,7 +9990,7 @@ impl IX509CertificateRequestPkcs10V2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -10120,7 +10120,7 @@ impl IX509CertificateRequestPkcs10V3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -10177,7 +10177,7 @@ impl IX509CertificateRequestPkcs10V4_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -10262,7 +10262,7 @@ impl IX509CertificateRequestPkcs7_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -10319,7 +10319,7 @@ impl IX509CertificateRequestPkcs7V2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -10655,7 +10655,7 @@ impl IX509CertificateRevocationList_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -10752,7 +10752,7 @@ impl IX509CertificateRevocationListEntries_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -10848,7 +10848,7 @@ impl IX509CertificateRevocationListEntry_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -10875,7 +10875,7 @@ impl IX509CertificateTemplate_Vtbl { Self { base__: super::super::super::System::Com::IDispatch_Vtbl::new::(), get_Property: get_Property:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -10939,7 +10939,7 @@ impl IX509CertificateTemplateWritable_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -11042,7 +11042,7 @@ impl IX509CertificateTemplates_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -11172,7 +11172,7 @@ impl IX509EndorsementKey_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -11434,7 +11434,7 @@ impl IX509Enrollment_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -11504,7 +11504,7 @@ impl IX509Enrollment2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -11555,7 +11555,7 @@ impl IX509EnrollmentHelper_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -11848,7 +11848,7 @@ impl IX509EnrollmentPolicyServer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -11985,7 +11985,7 @@ impl IX509EnrollmentStatus_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -12012,7 +12012,7 @@ impl IX509EnrollmentWebClassFactory_Vtbl { Self { base__: super::super::super::System::Com::IDispatch_Vtbl::new::(), CreateObject: CreateObject:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -12082,7 +12082,7 @@ impl IX509Extension_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -12126,7 +12126,7 @@ impl IX509ExtensionAlternativeNames_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -12170,7 +12170,7 @@ impl IX509ExtensionAuthorityKeyIdentifier_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -12227,7 +12227,7 @@ impl IX509ExtensionBasicConstraints_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -12271,7 +12271,7 @@ impl IX509ExtensionCertificatePolicies_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -12315,7 +12315,7 @@ impl IX509ExtensionEnhancedKeyUsage_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -12359,7 +12359,7 @@ impl IX509ExtensionKeyUsage_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -12403,7 +12403,7 @@ impl IX509ExtensionMSApplicationPolicies_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -12447,7 +12447,7 @@ impl IX509ExtensionSmimeCapabilities_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -12491,7 +12491,7 @@ impl IX509ExtensionSubjectKeyIdentifier_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -12561,7 +12561,7 @@ impl IX509ExtensionTemplate_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -12605,7 +12605,7 @@ impl IX509ExtensionTemplateName_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -12702,7 +12702,7 @@ impl IX509Extensions_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -12729,7 +12729,7 @@ impl IX509MachineEnrollmentFactory_Vtbl { Self { base__: super::super::super::System::Com::IDispatch_Vtbl::new::(), CreateObject: CreateObject:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -12779,7 +12779,7 @@ impl IX509NameValuePair_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -12856,7 +12856,7 @@ impl IX509NameValuePairs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -12940,7 +12940,7 @@ impl IX509PolicyServerListManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -13098,7 +13098,7 @@ impl IX509PolicyServerUrl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -13689,7 +13689,7 @@ impl IX509PrivateKey_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -13806,7 +13806,7 @@ impl IX509PrivateKey2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -13902,7 +13902,7 @@ impl IX509PublicKey_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -14151,7 +14151,7 @@ impl IX509SCEPEnrollment_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -14240,7 +14240,7 @@ impl IX509SCEPEnrollment2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -14323,7 +14323,7 @@ impl IX509SCEPEnrollmentHelper_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -14473,6 +14473,6 @@ impl IX509SignatureInformation_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } 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 6cda99142d..f9c69d495b 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 @@ -167,11 +167,15 @@ where ::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()))) } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAlternativeName(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IAlternativeName, + IAlternativeName_Vtbl, + 0x728ab313_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IAlternativeName, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IAlternativeName { pub unsafe fn InitializeFromString(&self, r#type: AlternativeNameType, strvalue: P0) -> ::windows_core::Result<()> @@ -216,16 +220,6 @@ impl IAlternativeName { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IAlternativeName, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IAlternativeName { - type Vtable = IAlternativeName_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IAlternativeName { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab313_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IAlternativeName_Vtbl { @@ -244,11 +238,15 @@ pub struct IAlternativeName_Vtbl { ObjectId: usize, pub get_RawData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAlternativeNames(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IAlternativeNames, + IAlternativeNames_Vtbl, + 0x728ab314_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IAlternativeNames, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IAlternativeNames { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -281,16 +279,6 @@ impl IAlternativeNames { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IAlternativeNames, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IAlternativeNames { - type Vtable = IAlternativeNames_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IAlternativeNames { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab314_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IAlternativeNames_Vtbl { @@ -308,11 +296,15 @@ pub struct IAlternativeNames_Vtbl { pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32) -> ::windows_core::HRESULT, pub Clear: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBinaryConverter(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IBinaryConverter, + IBinaryConverter_Vtbl, + 0x728ab302_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IBinaryConverter, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IBinaryConverter { pub unsafe fn StringToString(&self, strencodedin: P0, encodingin: EncodingType, encoding: EncodingType) -> ::windows_core::Result<::windows_core::BSTR> @@ -339,16 +331,6 @@ impl IBinaryConverter { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IBinaryConverter, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IBinaryConverter { - type Vtable = IBinaryConverter_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IBinaryConverter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab302_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IBinaryConverter_Vtbl { @@ -363,11 +345,15 @@ pub struct IBinaryConverter_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] StringToVariantByteArray: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBinaryConverter2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IBinaryConverter2, + IBinaryConverter2_Vtbl, + 0x8d7928b4_4e17_428d_9a17_728df00d1b2b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IBinaryConverter2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IBinaryConverter); #[cfg(feature = "Win32_System_Com")] impl IBinaryConverter2 { pub unsafe fn StringToString(&self, strencodedin: P0, encodingin: EncodingType, encoding: EncodingType) -> ::windows_core::Result<::windows_core::BSTR> @@ -406,16 +392,6 @@ impl IBinaryConverter2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IBinaryConverter2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IBinaryConverter); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IBinaryConverter2 { - type Vtable = IBinaryConverter2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IBinaryConverter2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8d7928b4_4e17_428d_9a17_728df00d1b2b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IBinaryConverter2_Vtbl { @@ -429,11 +405,15 @@ pub struct IBinaryConverter2_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] VariantArrayToStringArray: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICEnroll(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICEnroll, + ICEnroll_Vtbl, + 0x43f8f288_7a20_11d0_8f06_00c04fc295e1 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICEnroll, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ICEnroll { pub unsafe fn createFilePKCS10(&self, dnname: P0, usage: P1, wszpkcs10filename: P2) -> ::windows_core::Result<()> @@ -703,16 +683,6 @@ impl ICEnroll { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICEnroll, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICEnroll { - type Vtable = ICEnroll_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICEnroll { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x43f8f288_7a20_11d0_8f06_00c04fc295e1); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICEnroll_Vtbl { @@ -774,11 +744,15 @@ pub struct ICEnroll_Vtbl { pub HashAlgorithm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstr: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SetHashAlgorithm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstr: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICEnroll2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICEnroll2, + ICEnroll2_Vtbl, + 0x704ca730_c90b_11d1_9bec_00c04fc295e1 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICEnroll2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ICEnroll); #[cfg(feature = "Win32_System_Com")] impl ICEnroll2 { pub unsafe fn createFilePKCS10(&self, dnname: P0, usage: P1, wszpkcs10filename: P2) -> ::windows_core::Result<()> @@ -1081,16 +1055,6 @@ impl ICEnroll2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICEnroll2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ICEnroll); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICEnroll2 { - type Vtable = ICEnroll2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICEnroll2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x704ca730_c90b_11d1_9bec_00c04fc295e1); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICEnroll2_Vtbl { @@ -1102,11 +1066,15 @@ pub struct ICEnroll2_Vtbl { pub EnableT61DNEncoding: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fbool: *mut super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub SetEnableT61DNEncoding: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fbool: super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICEnroll3(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICEnroll3, + ICEnroll3_Vtbl, + 0xc28c2d95_b7de_11d2_a421_00c04f79fe8e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICEnroll3, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ICEnroll, ICEnroll2); #[cfg(feature = "Win32_System_Com")] impl ICEnroll3 { pub unsafe fn createFilePKCS10(&self, dnname: P0, usage: P1, wszpkcs10filename: P2) -> ::windows_core::Result<()> @@ -1475,16 +1443,6 @@ impl ICEnroll3 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICEnroll3, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ICEnroll, ICEnroll2); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICEnroll3 { - type Vtable = ICEnroll3_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICEnroll3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc28c2d95_b7de_11d2_a421_00c04f79fe8e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICEnroll3_Vtbl { @@ -1504,11 +1462,15 @@ pub struct ICEnroll3_Vtbl { pub SetEnableSMIMECapabilities: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fenablesmimecapabilities: super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub EnableSMIMECapabilities: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fenablesmimecapabilities: *mut super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICEnroll4(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICEnroll4, + ICEnroll4_Vtbl, + 0xc1f1188a_2eb5_4a80_841b_7e729a356d90 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICEnroll4, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ICEnroll, ICEnroll2, ICEnroll3); #[cfg(feature = "Win32_System_Com")] impl ICEnroll4 { pub unsafe fn createFilePKCS10(&self, dnname: P0, usage: P1, wszpkcs10filename: P2) -> ::windows_core::Result<()> @@ -2071,16 +2033,6 @@ impl ICEnroll4 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICEnroll4, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ICEnroll, ICEnroll2, ICEnroll3); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICEnroll4 { - type Vtable = ICEnroll4_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICEnroll4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc1f1188a_2eb5_4a80_841b_7e729a356d90); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICEnroll4_Vtbl { @@ -2122,11 +2074,15 @@ pub struct ICEnroll4_Vtbl { pub SetIncludeSubjectKeyID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, finclude: super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub IncludeSubjectKeyID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfinclude: *mut super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertAdmin(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICertAdmin, + ICertAdmin_Vtbl, + 0x34df6950_7fb6_11d0_8817_00a0c903b83c +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICertAdmin, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ICertAdmin { pub unsafe fn IsValidCertificate(&self, strconfig: P0, strserialnumber: P1) -> ::windows_core::Result @@ -2200,16 +2156,6 @@ impl ICertAdmin { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICertAdmin, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICertAdmin { - type Vtable = ICertAdmin_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICertAdmin { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x34df6950_7fb6_11d0_8817_00a0c903b83c); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICertAdmin_Vtbl { @@ -2228,11 +2174,15 @@ pub struct ICertAdmin_Vtbl { pub GetCRL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strconfig: ::std::mem::MaybeUninit<::windows_core::BSTR>, flags: i32, pstrcrl: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub ImportCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strconfig: ::std::mem::MaybeUninit<::windows_core::BSTR>, strcertificate: ::std::mem::MaybeUninit<::windows_core::BSTR>, flags: CERT_IMPORT_FLAGS, prequestid: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertAdmin2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICertAdmin2, + ICertAdmin2_Vtbl, + 0xf7c3ac41_b8ce_4fb4_aa58_3d1dc0e36b39 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICertAdmin2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ICertAdmin); #[cfg(feature = "Win32_System_Com")] impl ICertAdmin2 { pub unsafe fn IsValidCertificate(&self, strconfig: P0, strserialnumber: P1) -> ::windows_core::Result @@ -2393,16 +2343,6 @@ impl ICertAdmin2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICertAdmin2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ICertAdmin); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICertAdmin2 { - type Vtable = ICertAdmin2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICertAdmin2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf7c3ac41_b8ce_4fb4_aa58_3d1dc0e36b39); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICertAdmin2_Vtbl { @@ -2431,11 +2371,15 @@ pub struct ICertAdmin2_Vtbl { pub GetMyRoles: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strconfig: ::std::mem::MaybeUninit<::windows_core::BSTR>, proles: *mut CERTADMIN_GET_ROLES_FLAGS) -> ::windows_core::HRESULT, pub DeleteRow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strconfig: ::std::mem::MaybeUninit<::windows_core::BSTR>, flags: CERT_DELETE_ROW_FLAGS, date: f64, table: CVRC_TABLE, rowid: i32, pcdeleted: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertConfig(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICertConfig, + ICertConfig_Vtbl, + 0x372fce34_4324_11d0_8810_00a0c903b83c +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICertConfig, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ICertConfig { pub unsafe fn Reset(&self, index: i32) -> ::windows_core::Result { @@ -2459,16 +2403,6 @@ impl ICertConfig { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICertConfig, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICertConfig { - type Vtable = ICertConfig_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICertConfig { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x372fce34_4324_11d0_8810_00a0c903b83c); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICertConfig_Vtbl { @@ -2478,11 +2412,15 @@ pub struct ICertConfig_Vtbl { pub GetField: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strfieldname: ::std::mem::MaybeUninit<::windows_core::BSTR>, pstrout: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub GetConfig: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: i32, pstrout: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertConfig2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICertConfig2, + ICertConfig2_Vtbl, + 0x7a18edde_7e78_4163_8ded_78e2c9cee924 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICertConfig2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ICertConfig); #[cfg(feature = "Win32_System_Com")] impl ICertConfig2 { pub unsafe fn Reset(&self, index: i32) -> ::windows_core::Result { @@ -2512,27 +2450,21 @@ impl ICertConfig2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICertConfig2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ICertConfig); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICertConfig2 { - type Vtable = ICertConfig2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICertConfig2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7a18edde_7e78_4163_8ded_78e2c9cee924); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICertConfig2_Vtbl { pub base__: ICertConfig_Vtbl, pub SetSharedFolder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strsharedfolder: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertEncodeAltName(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICertEncodeAltName, + ICertEncodeAltName_Vtbl, + 0x1c9a8c70_1271_11d1_9bd4_00c04fb683fa +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICertEncodeAltName, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ICertEncodeAltName { pub unsafe fn Decode(&self, strbinary: P0) -> ::windows_core::Result<()> @@ -2568,16 +2500,6 @@ impl ICertEncodeAltName { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICertEncodeAltName, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICertEncodeAltName { - type Vtable = ICertEncodeAltName_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICertEncodeAltName { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1c9a8c70_1271_11d1_9bd4_00c04fb683fa); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICertEncodeAltName_Vtbl { @@ -2590,11 +2512,15 @@ pub struct ICertEncodeAltName_Vtbl { pub SetNameEntry: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nameindex: i32, namechoice: CERT_ALT_NAME, strname: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub Encode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrbinary: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertEncodeAltName2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICertEncodeAltName2, + ICertEncodeAltName2_Vtbl, + 0xf67fe177_5ef1_4535_b4ce_29df15e2e0c3 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICertEncodeAltName2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ICertEncodeAltName); #[cfg(feature = "Win32_System_Com")] impl ICertEncodeAltName2 { pub unsafe fn Decode(&self, strbinary: P0) -> ::windows_core::Result<()> @@ -2650,16 +2576,6 @@ impl ICertEncodeAltName2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICertEncodeAltName2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ICertEncodeAltName); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICertEncodeAltName2 { - type Vtable = ICertEncodeAltName2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICertEncodeAltName2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf67fe177_5ef1_4535_b4ce_29df15e2e0c3); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICertEncodeAltName2_Vtbl { @@ -2669,11 +2585,15 @@ pub struct ICertEncodeAltName2_Vtbl { pub GetNameBlob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nameindex: i32, encoding: EncodingType, pstrname: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SetNameEntryBlob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nameindex: i32, namechoice: i32, strname: ::std::mem::MaybeUninit<::windows_core::BSTR>, encoding: EncodingType) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertEncodeBitString(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICertEncodeBitString, + ICertEncodeBitString_Vtbl, + 0x6db525be_1278_11d1_9bd4_00c04fb683fa +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICertEncodeBitString, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ICertEncodeBitString { pub unsafe fn Decode(&self, strbinary: P0) -> ::windows_core::Result<()> @@ -2699,16 +2619,6 @@ impl ICertEncodeBitString { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICertEncodeBitString, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICertEncodeBitString { - type Vtable = ICertEncodeBitString_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICertEncodeBitString { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6db525be_1278_11d1_9bd4_00c04fb683fa); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICertEncodeBitString_Vtbl { @@ -2718,11 +2628,15 @@ pub struct ICertEncodeBitString_Vtbl { pub GetBitString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrbitstring: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub Encode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bitcount: i32, strbitstring: ::std::mem::MaybeUninit<::windows_core::BSTR>, pstrbinary: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertEncodeBitString2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICertEncodeBitString2, + ICertEncodeBitString2_Vtbl, + 0xe070d6e7_23ef_4dd2_8242_ebd9c928cb30 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICertEncodeBitString2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ICertEncodeBitString); #[cfg(feature = "Win32_System_Com")] impl ICertEncodeBitString2 { pub unsafe fn Decode(&self, strbinary: P0) -> ::windows_core::Result<()> @@ -2765,16 +2679,6 @@ impl ICertEncodeBitString2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICertEncodeBitString2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ICertEncodeBitString); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICertEncodeBitString2 { - type Vtable = ICertEncodeBitString2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICertEncodeBitString2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe070d6e7_23ef_4dd2_8242_ebd9c928cb30); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICertEncodeBitString2_Vtbl { @@ -2783,11 +2687,15 @@ pub struct ICertEncodeBitString2_Vtbl { pub EncodeBlob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bitcount: i32, strbitstring: ::std::mem::MaybeUninit<::windows_core::BSTR>, encodingin: EncodingType, encoding: EncodingType, pstrencodeddata: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub GetBitStringBlob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pstrbitstring: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertEncodeCRLDistInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICertEncodeCRLDistInfo, + ICertEncodeCRLDistInfo_Vtbl, + 0x01958640_bbff_11d0_8825_00a0c903b83c +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICertEncodeCRLDistInfo, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ICertEncodeCRLDistInfo { pub unsafe fn Decode(&self, strbinary: P0) -> ::windows_core::Result<()> @@ -2830,16 +2738,6 @@ impl ICertEncodeCRLDistInfo { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICertEncodeCRLDistInfo, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICertEncodeCRLDistInfo { - type Vtable = ICertEncodeCRLDistInfo_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICertEncodeCRLDistInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x01958640_bbff_11d0_8825_00a0c903b83c); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICertEncodeCRLDistInfo_Vtbl { @@ -2854,11 +2752,15 @@ pub struct ICertEncodeCRLDistInfo_Vtbl { pub SetNameEntry: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, distpointindex: i32, nameindex: i32, namechoice: CERT_ALT_NAME, strname: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub Encode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrbinary: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertEncodeCRLDistInfo2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICertEncodeCRLDistInfo2, + ICertEncodeCRLDistInfo2_Vtbl, + 0xb4275d4b_3e30_446f_ad36_09d03120b078 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICertEncodeCRLDistInfo2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ICertEncodeCRLDistInfo); #[cfg(feature = "Win32_System_Com")] impl ICertEncodeCRLDistInfo2 { pub unsafe fn Decode(&self, strbinary: P0) -> ::windows_core::Result<()> @@ -2911,16 +2813,6 @@ impl ICertEncodeCRLDistInfo2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICertEncodeCRLDistInfo2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ICertEncodeCRLDistInfo); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICertEncodeCRLDistInfo2 { - type Vtable = ICertEncodeCRLDistInfo2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICertEncodeCRLDistInfo2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb4275d4b_3e30_446f_ad36_09d03120b078); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICertEncodeCRLDistInfo2_Vtbl { @@ -2928,11 +2820,15 @@ pub struct ICertEncodeCRLDistInfo2_Vtbl { pub DecodeBlob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strencodeddata: ::std::mem::MaybeUninit<::windows_core::BSTR>, encoding: EncodingType) -> ::windows_core::HRESULT, pub EncodeBlob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pstrencodeddata: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertEncodeDateArray(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICertEncodeDateArray, + ICertEncodeDateArray_Vtbl, + 0x2f9469a0_a470_11d0_8821_00a0c903b83c +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICertEncodeDateArray, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ICertEncodeDateArray { pub unsafe fn Decode(&self, strbinary: P0) -> ::windows_core::Result<()> @@ -2961,16 +2857,6 @@ impl ICertEncodeDateArray { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICertEncodeDateArray, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICertEncodeDateArray { - type Vtable = ICertEncodeDateArray_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICertEncodeDateArray { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2f9469a0_a470_11d0_8821_00a0c903b83c); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICertEncodeDateArray_Vtbl { @@ -2982,11 +2868,15 @@ pub struct ICertEncodeDateArray_Vtbl { pub SetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32, value: f64) -> ::windows_core::HRESULT, pub Encode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrbinary: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertEncodeDateArray2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICertEncodeDateArray2, + ICertEncodeDateArray2_Vtbl, + 0x99a4edb5_2b8e_448d_bf95_bba8d7789dc8 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICertEncodeDateArray2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ICertEncodeDateArray); #[cfg(feature = "Win32_System_Com")] impl ICertEncodeDateArray2 { pub unsafe fn Decode(&self, strbinary: P0) -> ::windows_core::Result<()> @@ -3025,16 +2915,6 @@ impl ICertEncodeDateArray2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICertEncodeDateArray2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ICertEncodeDateArray); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICertEncodeDateArray2 { - type Vtable = ICertEncodeDateArray2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICertEncodeDateArray2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x99a4edb5_2b8e_448d_bf95_bba8d7789dc8); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICertEncodeDateArray2_Vtbl { @@ -3042,11 +2922,15 @@ pub struct ICertEncodeDateArray2_Vtbl { pub DecodeBlob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strencodeddata: ::std::mem::MaybeUninit<::windows_core::BSTR>, encoding: EncodingType) -> ::windows_core::HRESULT, pub EncodeBlob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pstrencodeddata: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertEncodeLongArray(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICertEncodeLongArray, + ICertEncodeLongArray_Vtbl, + 0x15e2f230_a0a2_11d0_8821_00a0c903b83c +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICertEncodeLongArray, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ICertEncodeLongArray { pub unsafe fn Decode(&self, strbinary: P0) -> ::windows_core::Result<()> @@ -3075,16 +2959,6 @@ impl ICertEncodeLongArray { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICertEncodeLongArray, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICertEncodeLongArray { - type Vtable = ICertEncodeLongArray_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICertEncodeLongArray { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x15e2f230_a0a2_11d0_8821_00a0c903b83c); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICertEncodeLongArray_Vtbl { @@ -3096,11 +2970,15 @@ pub struct ICertEncodeLongArray_Vtbl { pub SetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32, value: i32) -> ::windows_core::HRESULT, pub Encode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrbinary: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertEncodeLongArray2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICertEncodeLongArray2, + ICertEncodeLongArray2_Vtbl, + 0x4efde84a_bd9b_4fc2_a108_c347d478840f +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICertEncodeLongArray2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ICertEncodeLongArray); #[cfg(feature = "Win32_System_Com")] impl ICertEncodeLongArray2 { pub unsafe fn Decode(&self, strbinary: P0) -> ::windows_core::Result<()> @@ -3139,16 +3017,6 @@ impl ICertEncodeLongArray2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICertEncodeLongArray2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ICertEncodeLongArray); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICertEncodeLongArray2 { - type Vtable = ICertEncodeLongArray2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICertEncodeLongArray2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4efde84a_bd9b_4fc2_a108_c347d478840f); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICertEncodeLongArray2_Vtbl { @@ -3156,11 +3024,15 @@ pub struct ICertEncodeLongArray2_Vtbl { pub DecodeBlob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strencodeddata: ::std::mem::MaybeUninit<::windows_core::BSTR>, encoding: EncodingType) -> ::windows_core::HRESULT, pub EncodeBlob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pstrencodeddata: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertEncodeStringArray(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICertEncodeStringArray, + ICertEncodeStringArray_Vtbl, + 0x12a88820_7494_11d0_8816_00a0c903b83c +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICertEncodeStringArray, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ICertEncodeStringArray { pub unsafe fn Decode(&self, strbinary: P0) -> ::windows_core::Result<()> @@ -3196,16 +3068,6 @@ impl ICertEncodeStringArray { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICertEncodeStringArray, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICertEncodeStringArray { - type Vtable = ICertEncodeStringArray_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICertEncodeStringArray { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x12a88820_7494_11d0_8816_00a0c903b83c); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICertEncodeStringArray_Vtbl { @@ -3218,11 +3080,15 @@ pub struct ICertEncodeStringArray_Vtbl { pub SetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32, str: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub Encode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrbinary: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertEncodeStringArray2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICertEncodeStringArray2, + ICertEncodeStringArray2_Vtbl, + 0x9c680d93_9b7d_4e95_9018_4ffe10ba5ada +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICertEncodeStringArray2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ICertEncodeStringArray); #[cfg(feature = "Win32_System_Com")] impl ICertEncodeStringArray2 { pub unsafe fn Decode(&self, strbinary: P0) -> ::windows_core::Result<()> @@ -3268,16 +3134,6 @@ impl ICertEncodeStringArray2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICertEncodeStringArray2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ICertEncodeStringArray); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICertEncodeStringArray2 { - type Vtable = ICertEncodeStringArray2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICertEncodeStringArray2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9c680d93_9b7d_4e95_9018_4ffe10ba5ada); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICertEncodeStringArray2_Vtbl { @@ -3285,11 +3141,15 @@ pub struct ICertEncodeStringArray2_Vtbl { pub DecodeBlob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strencodeddata: ::std::mem::MaybeUninit<::windows_core::BSTR>, encoding: EncodingType) -> ::windows_core::HRESULT, pub EncodeBlob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pstrencodeddata: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertExit(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICertExit, + ICertExit_Vtbl, + 0xe19ae1a0_7364_11d0_8816_00a0c903b83c +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICertExit, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ICertExit { pub unsafe fn Initialize(&self, strconfig: P0) -> ::windows_core::Result @@ -3308,16 +3168,6 @@ impl ICertExit { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICertExit, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICertExit { - type Vtable = ICertExit_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICertExit { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe19ae1a0_7364_11d0_8816_00a0c903b83c); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICertExit_Vtbl { @@ -3326,11 +3176,15 @@ pub struct ICertExit_Vtbl { pub Notify: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, exitevent: i32, context: i32) -> ::windows_core::HRESULT, pub GetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrdescription: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertExit2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICertExit2, + ICertExit2_Vtbl, + 0x0abf484b_d049_464d_a7ed_552e7529b0ff +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICertExit2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ICertExit); #[cfg(feature = "Win32_System_Com")] impl ICertExit2 { pub unsafe fn Initialize(&self, strconfig: P0) -> ::windows_core::Result @@ -3355,16 +3209,6 @@ impl ICertExit2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICertExit2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ICertExit); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICertExit2 { - type Vtable = ICertExit2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICertExit2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0abf484b_d049_464d_a7ed_552e7529b0ff); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICertExit2_Vtbl { @@ -3374,11 +3218,15 @@ pub struct ICertExit2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetManageModule: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertGetConfig(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICertGetConfig, + ICertGetConfig_Vtbl, + 0xc7ea09c0_ce17_11d0_8833_00a0c903b83c +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICertGetConfig, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ICertGetConfig { pub unsafe fn GetConfig(&self, flags: CERT_GET_CONFIG_FLAGS) -> ::windows_core::Result<::windows_core::BSTR> { @@ -3387,27 +3235,21 @@ impl ICertGetConfig { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICertGetConfig, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICertGetConfig { - type Vtable = ICertGetConfig_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICertGetConfig { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc7ea09c0_ce17_11d0_8833_00a0c903b83c); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICertGetConfig_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, pub GetConfig: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: CERT_GET_CONFIG_FLAGS, pstrout: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertManageModule(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICertManageModule, + ICertManageModule_Vtbl, + 0xe7d7ad42_bd3d_11d1_9a4d_00c04fc297eb +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICertManageModule, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ICertManageModule { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3440,16 +3282,6 @@ impl ICertManageModule { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICertManageModule, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICertManageModule { - type Vtable = ICertManageModule_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICertManageModule { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe7d7ad42_bd3d_11d1_9a4d_00c04fc297eb); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICertManageModule_Vtbl { @@ -3464,11 +3296,15 @@ pub struct ICertManageModule_Vtbl { SetProperty: usize, pub Configure: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strconfig: ::std::mem::MaybeUninit<::windows_core::BSTR>, strstoragelocation: ::std::mem::MaybeUninit<::windows_core::BSTR>, flags: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertPolicy(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICertPolicy, + ICertPolicy_Vtbl, + 0x38bb5a00_7636_11d0_b413_00a0c91bbf8c +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICertPolicy, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ICertPolicy { pub unsafe fn Initialize(&self, strconfig: P0) -> ::windows_core::Result<()> @@ -3493,16 +3329,6 @@ impl ICertPolicy { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICertPolicy, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICertPolicy { - type Vtable = ICertPolicy_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICertPolicy { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x38bb5a00_7636_11d0_b413_00a0c91bbf8c); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICertPolicy_Vtbl { @@ -3512,11 +3338,15 @@ pub struct ICertPolicy_Vtbl { pub GetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrdescription: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub ShutDown: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertPolicy2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICertPolicy2, + ICertPolicy2_Vtbl, + 0x3db4910e_8001_4bf1_aa1b_f43a808317a0 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICertPolicy2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ICertPolicy); #[cfg(feature = "Win32_System_Com")] impl ICertPolicy2 { pub unsafe fn Initialize(&self, strconfig: P0) -> ::windows_core::Result<()> @@ -3547,16 +3377,6 @@ impl ICertPolicy2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICertPolicy2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ICertPolicy); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICertPolicy2 { - type Vtable = ICertPolicy2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICertPolicy2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3db4910e_8001_4bf1_aa1b_f43a808317a0); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICertPolicy2_Vtbl { @@ -3566,11 +3386,15 @@ pub struct ICertPolicy2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetManageModule: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertProperties(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICertProperties, + ICertProperties_Vtbl, + 0x728ab32f_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICertProperties, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ICertProperties { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3610,16 +3434,6 @@ impl ICertProperties { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICertProperties, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICertProperties { - type Vtable = ICertProperties_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICertProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab32f_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICertProperties_Vtbl { @@ -3638,11 +3452,15 @@ pub struct ICertProperties_Vtbl { pub Clear: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub InitializeFromCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, machinecontext: super::super::super::Foundation::VARIANT_BOOL, encoding: EncodingType, strcertificate: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertProperty(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICertProperty, + ICertProperty_Vtbl, + 0x728ab32e_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICertProperty, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ICertProperty { pub unsafe fn InitializeFromCertificate(&self, machinecontext: P0, encoding: EncodingType, strcertificate: P1) -> ::windows_core::Result<()> @@ -3685,16 +3503,6 @@ impl ICertProperty { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICertProperty, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICertProperty { - type Vtable = ICertProperty_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICertProperty { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab32e_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICertProperty_Vtbl { @@ -3707,11 +3515,15 @@ pub struct ICertProperty_Vtbl { pub RemoveFromCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, machinecontext: super::super::super::Foundation::VARIANT_BOOL, encoding: EncodingType, strcertificate: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SetValueOnCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, machinecontext: super::super::super::Foundation::VARIANT_BOOL, encoding: EncodingType, strcertificate: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertPropertyArchived(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICertPropertyArchived, + ICertPropertyArchived_Vtbl, + 0x728ab337_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICertPropertyArchived, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ICertProperty); #[cfg(feature = "Win32_System_Com")] impl ICertPropertyArchived { pub unsafe fn InitializeFromCertificate(&self, machinecontext: P0, encoding: EncodingType, strcertificate: P1) -> ::windows_core::Result<()> @@ -3764,16 +3576,6 @@ impl ICertPropertyArchived { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICertPropertyArchived, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ICertProperty); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICertPropertyArchived { - type Vtable = ICertPropertyArchived_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICertPropertyArchived { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab337_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICertPropertyArchived_Vtbl { @@ -3781,11 +3583,15 @@ pub struct ICertPropertyArchived_Vtbl { pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, archivedvalue: super::super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub Archived: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertPropertyArchivedKeyHash(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICertPropertyArchivedKeyHash, + ICertPropertyArchivedKeyHash_Vtbl, + 0x728ab33b_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICertPropertyArchivedKeyHash, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ICertProperty); #[cfg(feature = "Win32_System_Com")] impl ICertPropertyArchivedKeyHash { pub unsafe fn InitializeFromCertificate(&self, machinecontext: P0, encoding: EncodingType, strcertificate: P1) -> ::windows_core::Result<()> @@ -3838,16 +3644,6 @@ impl ICertPropertyArchivedKeyHash { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICertPropertyArchivedKeyHash, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ICertProperty); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICertPropertyArchivedKeyHash { - type Vtable = ICertPropertyArchivedKeyHash_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICertPropertyArchivedKeyHash { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab33b_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICertPropertyArchivedKeyHash_Vtbl { @@ -3855,11 +3651,15 @@ pub struct ICertPropertyArchivedKeyHash_Vtbl { pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, strarchivedkeyhashvalue: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub get_ArchivedKeyHash: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertPropertyAutoEnroll(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICertPropertyAutoEnroll, + ICertPropertyAutoEnroll_Vtbl, + 0x728ab332_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICertPropertyAutoEnroll, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ICertProperty); #[cfg(feature = "Win32_System_Com")] impl ICertPropertyAutoEnroll { pub unsafe fn InitializeFromCertificate(&self, machinecontext: P0, encoding: EncodingType, strcertificate: P1) -> ::windows_core::Result<()> @@ -3912,16 +3712,6 @@ impl ICertPropertyAutoEnroll { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICertPropertyAutoEnroll, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ICertProperty); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICertPropertyAutoEnroll { - type Vtable = ICertPropertyAutoEnroll_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICertPropertyAutoEnroll { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab332_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICertPropertyAutoEnroll_Vtbl { @@ -3929,11 +3719,15 @@ pub struct ICertPropertyAutoEnroll_Vtbl { pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strtemplatename: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub TemplateName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertPropertyBackedUp(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICertPropertyBackedUp, + ICertPropertyBackedUp_Vtbl, + 0x728ab338_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICertPropertyBackedUp, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ICertProperty); #[cfg(feature = "Win32_System_Com")] impl ICertPropertyBackedUp { pub unsafe fn InitializeFromCertificate(&self, machinecontext: P0, encoding: EncodingType, strcertificate: P1) -> ::windows_core::Result<()> @@ -3996,16 +3790,6 @@ impl ICertPropertyBackedUp { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICertPropertyBackedUp, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ICertProperty); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICertPropertyBackedUp { - type Vtable = ICertPropertyBackedUp_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICertPropertyBackedUp { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab338_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICertPropertyBackedUp_Vtbl { @@ -4015,11 +3799,15 @@ pub struct ICertPropertyBackedUp_Vtbl { pub BackedUpValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub BackedUpTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdate: *mut f64) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertPropertyDescription(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICertPropertyDescription, + ICertPropertyDescription_Vtbl, + 0x728ab331_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICertPropertyDescription, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ICertProperty); #[cfg(feature = "Win32_System_Com")] impl ICertPropertyDescription { pub unsafe fn InitializeFromCertificate(&self, machinecontext: P0, encoding: EncodingType, strcertificate: P1) -> ::windows_core::Result<()> @@ -4072,16 +3860,6 @@ impl ICertPropertyDescription { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICertPropertyDescription, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ICertProperty); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICertPropertyDescription { - type Vtable = ICertPropertyDescription_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICertPropertyDescription { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab331_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICertPropertyDescription_Vtbl { @@ -4089,11 +3867,15 @@ pub struct ICertPropertyDescription_Vtbl { pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strdescription: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertPropertyEnrollment(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICertPropertyEnrollment, + ICertPropertyEnrollment_Vtbl, + 0x728ab339_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICertPropertyEnrollment, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ICertProperty); #[cfg(feature = "Win32_System_Com")] impl ICertPropertyEnrollment { pub unsafe fn InitializeFromCertificate(&self, machinecontext: P0, encoding: EncodingType, strcertificate: P1) -> ::windows_core::Result<()> @@ -4160,16 +3942,6 @@ impl ICertPropertyEnrollment { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICertPropertyEnrollment, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ICertProperty); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICertPropertyEnrollment { - type Vtable = ICertPropertyEnrollment_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICertPropertyEnrollment { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab339_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICertPropertyEnrollment_Vtbl { @@ -4180,11 +3952,15 @@ pub struct ICertPropertyEnrollment_Vtbl { pub CAName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub FriendlyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertPropertyEnrollmentPolicyServer(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICertPropertyEnrollmentPolicyServer, + ICertPropertyEnrollmentPolicyServer_Vtbl, + 0x728ab34a_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICertPropertyEnrollmentPolicyServer, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ICertProperty); #[cfg(feature = "Win32_System_Com")] impl ICertPropertyEnrollmentPolicyServer { pub unsafe fn InitializeFromCertificate(&self, machinecontext: P0, encoding: EncodingType, strcertificate: P1) -> ::windows_core::Result<()> @@ -4268,16 +4044,6 @@ impl ICertPropertyEnrollmentPolicyServer { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICertPropertyEnrollmentPolicyServer, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ICertProperty); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICertPropertyEnrollmentPolicyServer { - type Vtable = ICertPropertyEnrollmentPolicyServer_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICertPropertyEnrollmentPolicyServer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab34a_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICertPropertyEnrollmentPolicyServer_Vtbl { @@ -4292,11 +4058,15 @@ pub struct ICertPropertyEnrollmentPolicyServer_Vtbl { pub GetAuthentication: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut X509EnrollmentAuthFlags) -> ::windows_core::HRESULT, pub GetEnrollmentServerAuthentication: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut X509EnrollmentAuthFlags) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertPropertyFriendlyName(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICertPropertyFriendlyName, + ICertPropertyFriendlyName_Vtbl, + 0x728ab330_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICertPropertyFriendlyName, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ICertProperty); #[cfg(feature = "Win32_System_Com")] impl ICertPropertyFriendlyName { pub unsafe fn InitializeFromCertificate(&self, machinecontext: P0, encoding: EncodingType, strcertificate: P1) -> ::windows_core::Result<()> @@ -4349,16 +4119,6 @@ impl ICertPropertyFriendlyName { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICertPropertyFriendlyName, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ICertProperty); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICertPropertyFriendlyName { - type Vtable = ICertPropertyFriendlyName_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICertPropertyFriendlyName { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab330_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICertPropertyFriendlyName_Vtbl { @@ -4366,11 +4126,15 @@ pub struct ICertPropertyFriendlyName_Vtbl { pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strfriendlyname: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub FriendlyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertPropertyKeyProvInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICertPropertyKeyProvInfo, + ICertPropertyKeyProvInfo_Vtbl, + 0x728ab336_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICertPropertyKeyProvInfo, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ICertProperty); #[cfg(feature = "Win32_System_Com")] impl ICertPropertyKeyProvInfo { pub unsafe fn InitializeFromCertificate(&self, machinecontext: P0, encoding: EncodingType, strcertificate: P1) -> ::windows_core::Result<()> @@ -4427,16 +4191,6 @@ impl ICertPropertyKeyProvInfo { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICertPropertyKeyProvInfo, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ICertProperty); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICertPropertyKeyProvInfo { - type Vtable = ICertPropertyKeyProvInfo_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICertPropertyKeyProvInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab336_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICertPropertyKeyProvInfo_Vtbl { @@ -4450,11 +4204,15 @@ pub struct ICertPropertyKeyProvInfo_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] PrivateKey: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertPropertyRenewal(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICertPropertyRenewal, + ICertPropertyRenewal_Vtbl, + 0x728ab33a_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICertPropertyRenewal, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ICertProperty); #[cfg(feature = "Win32_System_Com")] impl ICertPropertyRenewal { pub unsafe fn InitializeFromCertificate(&self, machinecontext: P0, encoding: EncodingType, strcertificate: P1) -> ::windows_core::Result<()> @@ -4514,16 +4272,6 @@ impl ICertPropertyRenewal { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICertPropertyRenewal, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ICertProperty); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICertPropertyRenewal { - type Vtable = ICertPropertyRenewal_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICertPropertyRenewal { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab33a_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICertPropertyRenewal_Vtbl { @@ -4532,11 +4280,15 @@ pub struct ICertPropertyRenewal_Vtbl { pub InitializeFromCertificateHash: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, machinecontext: super::super::super::Foundation::VARIANT_BOOL, encoding: EncodingType, strcertificate: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub get_Renewal: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertPropertyRequestOriginator(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICertPropertyRequestOriginator, + ICertPropertyRequestOriginator_Vtbl, + 0x728ab333_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICertPropertyRequestOriginator, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ICertProperty); #[cfg(feature = "Win32_System_Com")] impl ICertPropertyRequestOriginator { pub unsafe fn InitializeFromCertificate(&self, machinecontext: P0, encoding: EncodingType, strcertificate: P1) -> ::windows_core::Result<()> @@ -4592,16 +4344,6 @@ impl ICertPropertyRequestOriginator { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICertPropertyRequestOriginator, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ICertProperty); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICertPropertyRequestOriginator { - type Vtable = ICertPropertyRequestOriginator_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICertPropertyRequestOriginator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab333_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICertPropertyRequestOriginator_Vtbl { @@ -4610,11 +4352,15 @@ pub struct ICertPropertyRequestOriginator_Vtbl { pub InitializeFromLocalRequestOriginator: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RequestOriginator: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertPropertySHA1Hash(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICertPropertySHA1Hash, + ICertPropertySHA1Hash_Vtbl, + 0x728ab334_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICertPropertySHA1Hash, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ICertProperty); #[cfg(feature = "Win32_System_Com")] impl ICertPropertySHA1Hash { pub unsafe fn InitializeFromCertificate(&self, machinecontext: P0, encoding: EncodingType, strcertificate: P1) -> ::windows_core::Result<()> @@ -4667,16 +4413,6 @@ impl ICertPropertySHA1Hash { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICertPropertySHA1Hash, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ICertProperty); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICertPropertySHA1Hash { - type Vtable = ICertPropertySHA1Hash_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICertPropertySHA1Hash { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab334_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICertPropertySHA1Hash_Vtbl { @@ -4684,11 +4420,15 @@ pub struct ICertPropertySHA1Hash_Vtbl { pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, strrenewalvalue: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub get_SHA1Hash: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertRequest(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICertRequest, + ICertRequest_Vtbl, + 0x014e4840_5523_11d0_8812_00a0c903b83c +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICertRequest, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ICertRequest { pub unsafe fn Submit(&self, flags: i32, strrequest: P0, strattributes: P1, strconfig: P2) -> ::windows_core::Result @@ -4732,16 +4472,6 @@ impl ICertRequest { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICertRequest, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICertRequest { - type Vtable = ICertRequest_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICertRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x014e4840_5523_11d0_8812_00a0c903b83c); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICertRequest_Vtbl { @@ -4754,11 +4484,15 @@ pub struct ICertRequest_Vtbl { pub GetCACertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fexchangecertificate: i32, strconfig: ::std::mem::MaybeUninit<::windows_core::BSTR>, flags: i32, pstrcertificate: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub GetCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: i32, pstrcertificate: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertRequest2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICertRequest2, + ICertRequest2_Vtbl, + 0xa4772988_4a85_4fa9_824e_b5cf5c16405a +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICertRequest2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ICertRequest); #[cfg(feature = "Win32_System_Com")] impl ICertRequest2 { pub unsafe fn Submit(&self, flags: i32, strrequest: P0, strattributes: P1, strconfig: P2) -> ::windows_core::Result @@ -4843,16 +4577,6 @@ impl ICertRequest2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICertRequest2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ICertRequest); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICertRequest2 { - type Vtable = ICertRequest2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICertRequest2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa4772988_4a85_4fa9_824e_b5cf5c16405a); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICertRequest2_Vtbl { @@ -4870,11 +4594,15 @@ pub struct ICertRequest2_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] GetFullResponseProperty: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertRequest3(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICertRequest3, + ICertRequest3_Vtbl, + 0xafc8f92b_33a2_4861_bf36_2933b7cd67b3 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICertRequest3, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ICertRequest, ICertRequest2); #[cfg(feature = "Win32_System_Com")] impl ICertRequest3 { pub unsafe fn Submit(&self, flags: i32, strrequest: P0, strattributes: P1, strconfig: P2) -> ::windows_core::Result @@ -4983,16 +4711,6 @@ impl ICertRequest3 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICertRequest3, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ICertRequest, ICertRequest2); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICertRequest3 { - type Vtable = ICertRequest3_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICertRequest3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xafc8f92b_33a2_4861_bf36_2933b7cd67b3); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICertRequest3_Vtbl { @@ -5002,9 +4720,8 @@ pub struct ICertRequest3_Vtbl { pub GetIssuedCertificate2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strconfig: ::std::mem::MaybeUninit<::windows_core::BSTR>, strrequestid: ::std::mem::MaybeUninit<::windows_core::BSTR>, strserialnumber: ::std::mem::MaybeUninit<::windows_core::BSTR>, pdisposition: *mut CR_DISP) -> ::windows_core::HRESULT, pub GetRefreshPolicy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertRequestD(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICertRequestD, ICertRequestD_Vtbl, 0xd99e6e70_fc88_11d0_b498_00a0c90312f3); +::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 @@ -5027,13 +4744,6 @@ impl ICertRequestD { (::windows_core::Interface::vtable(self).Ping)(::windows_core::Interface::as_raw(self), pwszauthority.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ICertRequestD, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICertRequestD { - type Vtable = ICertRequestD_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICertRequestD { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd99e6e70_fc88_11d0_b498_00a0c90312f3); -} #[repr(C)] #[doc(hidden)] pub struct ICertRequestD_Vtbl { @@ -5042,9 +4752,8 @@ pub struct ICertRequestD_Vtbl { pub GetCACert: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fchain: u32, pwszauthority: ::windows_core::PCWSTR, pctbout: *mut CERTTRANSBLOB) -> ::windows_core::HRESULT, pub Ping: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwszauthority: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertRequestD2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICertRequestD2, ICertRequestD2_Vtbl, 0x5422fd3a_d4b8_4cef_a12e_e87d4ca22e90); +::windows_core::imp::interface_hierarchy!(ICertRequestD2, ::windows_core::IUnknown, ICertRequestD); 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 @@ -5094,13 +4803,6 @@ impl ICertRequestD2 { (::windows_core::Interface::vtable(self).Ping2)(::windows_core::Interface::as_raw(self), pwszauthority.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ICertRequestD2, ::windows_core::IUnknown, ICertRequestD); -unsafe impl ::windows_core::Interface for ICertRequestD2 { - type Vtable = ICertRequestD2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICertRequestD2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5422fd3a_d4b8_4cef_a12e_e87d4ca22e90); -} #[repr(C)] #[doc(hidden)] pub struct ICertRequestD2_Vtbl { @@ -5110,11 +4812,15 @@ pub struct ICertRequestD2_Vtbl { pub GetCAPropertyInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwszauthority: ::windows_core::PCWSTR, pcproperty: *mut i32, pctbpropinfo: *mut CERTTRANSBLOB) -> ::windows_core::HRESULT, pub Ping2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwszauthority: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertServerExit(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICertServerExit, + ICertServerExit_Vtbl, + 0x4ba9eb90_732c_11d0_8816_00a0c903b83c +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICertServerExit, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ICertServerExit { pub unsafe fn SetContext(&self, context: i32) -> ::windows_core::Result<()> { @@ -5180,16 +4886,6 @@ impl ICertServerExit { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICertServerExit, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICertServerExit { - type Vtable = ICertServerExit_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICertServerExit { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4ba9eb90_732c_11d0_8816_00a0c903b83c); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICertServerExit_Vtbl { @@ -5216,11 +4912,15 @@ pub struct ICertServerExit_Vtbl { pub EnumerateAttributes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrattributename: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub EnumerateAttributesClose: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertServerPolicy(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICertServerPolicy, + ICertServerPolicy_Vtbl, + 0xaa000922_ffbe_11cf_8800_00a0c903b83c +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICertServerPolicy, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ICertServerPolicy { pub unsafe fn SetContext(&self, context: i32) -> ::windows_core::Result<()> { @@ -5302,16 +5002,6 @@ impl ICertServerPolicy { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICertServerPolicy, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICertServerPolicy { - type Vtable = ICertServerPolicy_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICertServerPolicy { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaa000922_ffbe_11cf_8800_00a0c903b83c); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICertServerPolicy_Vtbl { @@ -5346,11 +5036,15 @@ pub struct ICertServerPolicy_Vtbl { pub EnumerateAttributes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrattributename: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub EnumerateAttributesClose: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertView(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICertView, + ICertView_Vtbl, + 0xc3fac344_1e84_11d1_9bd6_00c04fb683fa +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICertView, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ICertView { pub unsafe fn OpenConnection(&self, strconfig: P0) -> ::windows_core::Result<()> @@ -5393,16 +5087,6 @@ impl ICertView { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICertView, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICertView { - type Vtable = ICertView_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICertView { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc3fac344_1e84_11d1_9bd6_00c04fb683fa); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICertView_Vtbl { @@ -5425,11 +5109,15 @@ pub struct ICertView_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] OpenView: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertView2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICertView2, + ICertView2_Vtbl, + 0xd594b282_8851_4b61_9c66_3edadf848863 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICertView2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ICertView); #[cfg(feature = "Win32_System_Com")] impl ICertView2 { pub unsafe fn OpenConnection(&self, strconfig: P0) -> ::windows_core::Result<()> @@ -5475,27 +5163,21 @@ impl ICertView2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICertView2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ICertView); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICertView2 { - type Vtable = ICertView2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICertView2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd594b282_8851_4b61_9c66_3edadf848863); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICertView2_Vtbl { pub base__: ICertView_Vtbl, pub SetTable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, table: CVRC_TABLE) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertificateAttestationChallenge(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICertificateAttestationChallenge, + ICertificateAttestationChallenge_Vtbl, + 0x6f175a7c_4a3a_40ae_9dba_592fd6bbf9b8 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICertificateAttestationChallenge, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ICertificateAttestationChallenge { pub unsafe fn Initialize(&self, encoding: EncodingType, strpendingfullcmcresponsewithchallenge: P0) -> ::windows_core::Result<()> @@ -5514,16 +5196,6 @@ impl ICertificateAttestationChallenge { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICertificateAttestationChallenge, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICertificateAttestationChallenge { - type Vtable = ICertificateAttestationChallenge_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICertificateAttestationChallenge { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6f175a7c_4a3a_40ae_9dba_592fd6bbf9b8); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICertificateAttestationChallenge_Vtbl { @@ -5532,11 +5204,15 @@ pub struct ICertificateAttestationChallenge_Vtbl { pub DecryptChallenge: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pstrenvelopedpkcs7reencryptedtoca: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub RequestID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrrequestid: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertificateAttestationChallenge2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICertificateAttestationChallenge2, + ICertificateAttestationChallenge2_Vtbl, + 0x4631334d_e266_47d6_bd79_be53cb2e2753 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICertificateAttestationChallenge2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ICertificateAttestationChallenge); #[cfg(feature = "Win32_System_Com")] impl ICertificateAttestationChallenge2 { pub unsafe fn Initialize(&self, encoding: EncodingType, strpendingfullcmcresponsewithchallenge: P0) -> ::windows_core::Result<()> @@ -5567,16 +5243,6 @@ impl ICertificateAttestationChallenge2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICertificateAttestationChallenge2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ICertificateAttestationChallenge); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICertificateAttestationChallenge2 { - type Vtable = ICertificateAttestationChallenge2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICertificateAttestationChallenge2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4631334d_e266_47d6_bd79_be53cb2e2753); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICertificateAttestationChallenge2_Vtbl { @@ -5584,11 +5250,15 @@ pub struct ICertificateAttestationChallenge2_Vtbl { pub SetKeyContainerName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub put_KeyBlob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, value: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertificatePolicies(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICertificatePolicies, + ICertificatePolicies_Vtbl, + 0x728ab31f_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICertificatePolicies, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ICertificatePolicies { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -5621,16 +5291,6 @@ impl ICertificatePolicies { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICertificatePolicies, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICertificatePolicies { - type Vtable = ICertificatePolicies_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICertificatePolicies { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab31f_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICertificatePolicies_Vtbl { @@ -5648,11 +5308,15 @@ pub struct ICertificatePolicies_Vtbl { pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32) -> ::windows_core::HRESULT, pub Clear: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertificatePolicy(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICertificatePolicy, + ICertificatePolicy_Vtbl, + 0x728ab31e_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICertificatePolicy, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ICertificatePolicy { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -5677,16 +5341,6 @@ impl ICertificatePolicy { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICertificatePolicy, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICertificatePolicy { - type Vtable = ICertificatePolicy_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICertificatePolicy { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab31e_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICertificatePolicy_Vtbl { @@ -5704,11 +5358,15 @@ pub struct ICertificatePolicy_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] PolicyQualifiers: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertificationAuthorities(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICertificationAuthorities, + ICertificationAuthorities_Vtbl, + 0x13b79005_2181_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICertificationAuthorities, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ICertificationAuthorities { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -5753,16 +5411,6 @@ impl ICertificationAuthorities { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICertificationAuthorities, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICertificationAuthorities { - type Vtable = ICertificationAuthorities_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICertificationAuthorities { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x13b79005_2181_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICertificationAuthorities_Vtbl { @@ -5785,11 +5433,15 @@ pub struct ICertificationAuthorities_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] get_ItemByName: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertificationAuthority(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICertificationAuthority, + ICertificationAuthority_Vtbl, + 0x835d1f61_1e95_4bc8_b4d3_976c42b968f7 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICertificationAuthority, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ICertificationAuthority { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5800,16 +5452,6 @@ impl ICertificationAuthority { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICertificationAuthority, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICertificationAuthority { - type Vtable = ICertificationAuthority_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICertificationAuthority { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x835d1f61_1e95_4bc8_b4d3_976c42b968f7); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICertificationAuthority_Vtbl { @@ -5819,11 +5461,15 @@ pub struct ICertificationAuthority_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] get_Property: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICryptAttribute(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICryptAttribute, + ICryptAttribute_Vtbl, + 0x728ab32c_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICryptAttribute, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ICryptAttribute { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -5856,16 +5502,6 @@ impl ICryptAttribute { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICryptAttribute, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICryptAttribute { - type Vtable = ICryptAttribute_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICryptAttribute { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab32c_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICryptAttribute_Vtbl { @@ -5887,11 +5523,15 @@ pub struct ICryptAttribute_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Values: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICryptAttributes(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICryptAttributes, + ICryptAttributes_Vtbl, + 0x728ab32d_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICryptAttributes, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ICryptAttributes { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -5941,16 +5581,6 @@ impl ICryptAttributes { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICryptAttributes, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICryptAttributes { - type Vtable = ICryptAttributes_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICryptAttributes { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab32d_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICryptAttributes_Vtbl { @@ -5976,11 +5606,15 @@ pub struct ICryptAttributes_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] AddRange: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICspAlgorithm(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICspAlgorithm, + ICspAlgorithm_Vtbl, + 0x728ab305_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICspAlgorithm, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ICspAlgorithm { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -6027,16 +5661,6 @@ impl ICspAlgorithm { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICspAlgorithm, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICspAlgorithm { - type Vtable = ICspAlgorithm_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICspAlgorithm { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab305_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICspAlgorithm_Vtbl { @@ -6055,11 +5679,15 @@ pub struct ICspAlgorithm_Vtbl { pub Type: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut AlgorithmType) -> ::windows_core::HRESULT, pub Operations: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut AlgorithmOperationFlags) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICspAlgorithms(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICspAlgorithms, + ICspAlgorithms_Vtbl, + 0x728ab306_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICspAlgorithms, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ICspAlgorithms { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -6110,16 +5738,6 @@ impl ICspAlgorithms { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICspAlgorithms, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICspAlgorithms { - type Vtable = ICspAlgorithms_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICspAlgorithms { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab306_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICspAlgorithms_Vtbl { @@ -6145,11 +5763,15 @@ pub struct ICspAlgorithms_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] get_IndexByObjectId: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICspInformation(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICspInformation, + ICspInformation_Vtbl, + 0x728ab307_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICspInformation, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ICspInformation { pub unsafe fn InitializeFromName(&self, strname: P0) -> ::windows_core::Result<()> @@ -6239,16 +5861,6 @@ impl ICspInformation { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICspInformation, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICspInformation { - type Vtable = ICspInformation_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICspInformation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab307_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICspInformation_Vtbl { @@ -6280,11 +5892,15 @@ pub struct ICspInformation_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetCspStatusFromOperations: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICspInformations(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICspInformations, + ICspInformations_Vtbl, + 0x728ab308_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICspInformations, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ICspInformations { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -6365,16 +5981,6 @@ impl ICspInformations { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICspInformations, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICspInformations { - type Vtable = ICspInformations_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICspInformations { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab308_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICspInformations_Vtbl { @@ -6413,11 +6019,15 @@ pub struct ICspInformations_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetHashAlgorithms: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICspStatus(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICspStatus, + ICspStatus_Vtbl, + 0x728ab309_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICspStatus, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ICspStatus { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -6460,16 +6070,6 @@ impl ICspStatus { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICspStatus, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICspStatus { - type Vtable = ICspStatus_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICspStatus { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab309_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICspStatus_Vtbl { @@ -6494,11 +6094,15 @@ pub struct ICspStatus_Vtbl { EnrollmentStatus: usize, pub DisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICspStatuses(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICspStatuses, + ICspStatuses_Vtbl, + 0x728ab30a_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICspStatuses, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ICspStatuses { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -6566,16 +6170,6 @@ impl ICspStatuses { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICspStatuses, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICspStatuses { - type Vtable = ICspStatuses_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICspStatuses { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab30a_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICspStatuses_Vtbl { @@ -6609,9 +6203,8 @@ pub struct ICspStatuses_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] get_ItemByProvider: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnroll(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnroll, IEnroll_Vtbl, 0xacaa7838_4585_11d1_ab57_00c04fc295e1); +::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 @@ -6897,13 +6490,6 @@ impl IEnroll { (::windows_core::Interface::vtable(self).CreatePKCS7RequestFromRequest)(::windows_core::Interface::as_raw(self), prequest, psigningcertcontext, ppkcs7blob).ok() } } -::windows_core::imp::interface_hierarchy!(IEnroll, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnroll { - type Vtable = IEnroll_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnroll { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xacaa7838_4585_11d1_ab57_00c04fc295e1); -} #[repr(C)] #[doc(hidden)] pub struct IEnroll_Vtbl { @@ -6979,9 +6565,8 @@ pub struct IEnroll_Vtbl { pub AddAuthenticatedAttributesToPKCS7Request: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pattributes: *mut super::CRYPT_ATTRIBUTES) -> ::windows_core::HRESULT, pub CreatePKCS7RequestFromRequest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prequest: *mut super::CRYPT_INTEGER_BLOB, psigningcertcontext: *const super::CERT_CONTEXT, ppkcs7blob: *mut super::CRYPT_INTEGER_BLOB) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnroll2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnroll2, IEnroll2_Vtbl, 0xc080e199_b7df_11d2_a421_00c04f79fe8e); +::windows_core::imp::interface_hierarchy!(IEnroll2, ::windows_core::IUnknown, IEnroll); impl IEnroll2 { pub unsafe fn createFilePKCS10WStr(&self, dnname: P0, usage: P1, wszpkcs10filename: P2) -> ::windows_core::Result<()> where @@ -7346,13 +6931,6 @@ impl IEnroll2 { (::windows_core::Interface::vtable(self).EnableSMIMECapabilities)(::windows_core::Interface::as_raw(self), fenablesmimecapabilities).ok() } } -::windows_core::imp::interface_hierarchy!(IEnroll2, ::windows_core::IUnknown, IEnroll); -unsafe impl ::windows_core::Interface for IEnroll2 { - type Vtable = IEnroll2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnroll2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc080e199_b7df_11d2_a421_00c04f79fe8e); -} #[repr(C)] #[doc(hidden)] pub struct IEnroll2_Vtbl { @@ -7376,9 +6954,8 @@ pub struct IEnroll2_Vtbl { pub SetEnableSMIMECapabilities: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fenablesmimecapabilities: super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub EnableSMIMECapabilities: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fenablesmimecapabilities: *mut super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnroll4(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnroll4, IEnroll4_Vtbl, 0xf8053fe5_78f4_448f_a0db_41d61b73446b); +::windows_core::imp::interface_hierarchy!(IEnroll4, ::windows_core::IUnknown, IEnroll, IEnroll2); impl IEnroll4 { pub unsafe fn createFilePKCS10WStr(&self, dnname: P0, usage: P1, wszpkcs10filename: P2) -> ::windows_core::Result<()> where @@ -7889,13 +7466,6 @@ impl IEnroll4 { (::windows_core::Interface::vtable(self).IncludeSubjectKeyID)(::windows_core::Interface::as_raw(self), pfinclude).ok() } } -::windows_core::imp::interface_hierarchy!(IEnroll4, ::windows_core::IUnknown, IEnroll, IEnroll2); -unsafe impl ::windows_core::Interface for IEnroll4 { - type Vtable = IEnroll4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnroll4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf8053fe5_78f4_448f_a0db_41d61b73446b); -} #[repr(C)] #[doc(hidden)] pub struct IEnroll4_Vtbl { @@ -7933,11 +7503,15 @@ pub struct IEnroll4_Vtbl { pub SetIncludeSubjectKeyID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, finclude: super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub IncludeSubjectKeyID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfinclude: *mut super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumCERTVIEWATTRIBUTE(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IEnumCERTVIEWATTRIBUTE, + IEnumCERTVIEWATTRIBUTE_Vtbl, + 0xe77db656_7653_11d1_9bde_00c04fb683fa +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IEnumCERTVIEWATTRIBUTE, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IEnumCERTVIEWATTRIBUTE { pub unsafe fn Next(&self, pindex: *mut i32) -> ::windows_core::Result<()> { @@ -7963,16 +7537,6 @@ impl IEnumCERTVIEWATTRIBUTE { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IEnumCERTVIEWATTRIBUTE, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IEnumCERTVIEWATTRIBUTE { - type Vtable = IEnumCERTVIEWATTRIBUTE_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IEnumCERTVIEWATTRIBUTE { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe77db656_7653_11d1_9bde_00c04fb683fa); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IEnumCERTVIEWATTRIBUTE_Vtbl { @@ -7987,11 +7551,15 @@ pub struct IEnumCERTVIEWATTRIBUTE_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Clone: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumCERTVIEWCOLUMN(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IEnumCERTVIEWCOLUMN, + IEnumCERTVIEWCOLUMN_Vtbl, + 0x9c735be2_57a5_11d1_9bdb_00c04fb683fa +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IEnumCERTVIEWCOLUMN, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IEnumCERTVIEWCOLUMN { pub unsafe fn Next(&self, pindex: *mut i32) -> ::windows_core::Result<()> { @@ -8031,16 +7599,6 @@ impl IEnumCERTVIEWCOLUMN { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IEnumCERTVIEWCOLUMN, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IEnumCERTVIEWCOLUMN { - type Vtable = IEnumCERTVIEWCOLUMN_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IEnumCERTVIEWCOLUMN { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9c735be2_57a5_11d1_9bdb_00c04fb683fa); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IEnumCERTVIEWCOLUMN_Vtbl { @@ -8062,11 +7620,15 @@ pub struct IEnumCERTVIEWCOLUMN_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Clone: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumCERTVIEWEXTENSION(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IEnumCERTVIEWEXTENSION, + IEnumCERTVIEWEXTENSION_Vtbl, + 0xe7dd1466_7653_11d1_9bde_00c04fb683fa +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IEnumCERTVIEWEXTENSION, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IEnumCERTVIEWEXTENSION { pub unsafe fn Next(&self, pindex: *mut i32) -> ::windows_core::Result<()> { @@ -8097,16 +7659,6 @@ impl IEnumCERTVIEWEXTENSION { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IEnumCERTVIEWEXTENSION, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IEnumCERTVIEWEXTENSION { - type Vtable = IEnumCERTVIEWEXTENSION_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IEnumCERTVIEWEXTENSION { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe7dd1466_7653_11d1_9bde_00c04fb683fa); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IEnumCERTVIEWEXTENSION_Vtbl { @@ -8125,11 +7677,15 @@ pub struct IEnumCERTVIEWEXTENSION_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Clone: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumCERTVIEWROW(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IEnumCERTVIEWROW, + IEnumCERTVIEWROW_Vtbl, + 0xd1157f4c_5af2_11d1_9bdc_00c04fb683fa +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IEnumCERTVIEWROW, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IEnumCERTVIEWROW { pub unsafe fn Next(&self, pindex: *mut i32) -> ::windows_core::Result<()> { @@ -8170,16 +7726,6 @@ impl IEnumCERTVIEWROW { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IEnumCERTVIEWROW, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IEnumCERTVIEWROW { - type Vtable = IEnumCERTVIEWROW_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IEnumCERTVIEWROW { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd1157f4c_5af2_11d1_9bdc_00c04fb683fa); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IEnumCERTVIEWROW_Vtbl { @@ -8205,9 +7751,8 @@ pub struct IEnumCERTVIEWROW_Vtbl { Clone: usize, pub GetMaxIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pindex: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INDESPolicy(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INDESPolicy, INDESPolicy_Vtbl, 0x13ca515d_431d_46cc_8c2e_1da269bbd625); +::windows_core::imp::interface_hierarchy!(INDESPolicy, ::windows_core::IUnknown); impl INDESPolicy { pub unsafe fn Initialize(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Initialize)(::windows_core::Interface::as_raw(self)).ok() @@ -8238,13 +7783,6 @@ impl INDESPolicy { (::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::imp::interface_hierarchy!(INDESPolicy, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INDESPolicy { - type Vtable = INDESPolicy_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INDESPolicy { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x13ca515d_431d_46cc_8c2e_1da269bbd625); -} #[repr(C)] #[doc(hidden)] pub struct INDESPolicy_Vtbl { @@ -8255,11 +7793,15 @@ pub struct INDESPolicy_Vtbl { pub VerifyRequest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pctbrequest: *mut CERTTRANSBLOB, pctbsigningcertencoded: *mut CERTTRANSBLOB, pwsztemplate: ::windows_core::PCWSTR, pwsztransactionid: ::windows_core::PCWSTR, pfverified: *mut super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub Notify: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwszchallenge: ::windows_core::PCWSTR, pwsztransactionid: ::windows_core::PCWSTR, disposition: X509SCEPDisposition, lasthresult: i32, pctbissuedcertencoded: *mut CERTTRANSBLOB) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOCSPAdmin(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IOCSPAdmin, + IOCSPAdmin_Vtbl, + 0x322e830d_67db_4fe9_9577_4596d9f09294 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IOCSPAdmin, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IOCSPAdmin { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -8336,16 +7878,6 @@ impl IOCSPAdmin { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IOCSPAdmin, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IOCSPAdmin { - type Vtable = IOCSPAdmin_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IOCSPAdmin { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x322e830d_67db_4fe9_9577_4596d9f09294); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IOCSPAdmin_Vtbl { @@ -8373,11 +7905,15 @@ pub struct IOCSPAdmin_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] GetHashAlgorithms: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOCSPCAConfiguration(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IOCSPCAConfiguration, + IOCSPCAConfiguration_Vtbl, + 0xaec92b40_3d46_433f_87d1_b84d5c1e790d +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IOCSPCAConfiguration, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IOCSPCAConfiguration { pub unsafe fn Identifier(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -8495,16 +8031,6 @@ impl IOCSPCAConfiguration { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IOCSPCAConfiguration, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IOCSPCAConfiguration { - type Vtable = IOCSPCAConfiguration_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IOCSPCAConfiguration { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaec92b40_3d46_433f_87d1_b84d5c1e790d); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IOCSPCAConfiguration_Vtbl { @@ -8555,11 +8081,15 @@ pub struct IOCSPCAConfiguration_Vtbl { pub CAConfig: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SetCAConfig: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOCSPCAConfigurationCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IOCSPCAConfigurationCollection, + IOCSPCAConfigurationCollection_Vtbl, + 0x2bebea0b_5ece_4f28_a91c_86b4bb20f0d3 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IOCSPCAConfigurationCollection, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IOCSPCAConfigurationCollection { pub unsafe fn _NewEnum(&self) -> ::windows_core::Result<::windows_core::IUnknown> { @@ -8602,16 +8132,6 @@ impl IOCSPCAConfigurationCollection { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IOCSPCAConfigurationCollection, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IOCSPCAConfigurationCollection { - type Vtable = IOCSPCAConfigurationCollection_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IOCSPCAConfigurationCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2bebea0b_5ece_4f28_a91c_86b4bb20f0d3); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IOCSPCAConfigurationCollection_Vtbl { @@ -8632,11 +8152,15 @@ pub struct IOCSPCAConfigurationCollection_Vtbl { CreateCAConfiguration: usize, pub DeleteCAConfiguration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstridentifier: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOCSPProperty(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IOCSPProperty, + IOCSPProperty_Vtbl, + 0x66fb7839_5f04_4c25_ad18_9ff1a8376ee0 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IOCSPProperty, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IOCSPProperty { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -8660,16 +8184,6 @@ impl IOCSPProperty { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IOCSPProperty, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IOCSPProperty { - type Vtable = IOCSPProperty_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IOCSPProperty { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x66fb7839_5f04_4c25_ad18_9ff1a8376ee0); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IOCSPProperty_Vtbl { @@ -8685,11 +8199,15 @@ pub struct IOCSPProperty_Vtbl { SetValue: usize, pub Modified: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOCSPPropertyCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IOCSPPropertyCollection, + IOCSPPropertyCollection_Vtbl, + 0x2597c18d_54e6_4b74_9fa9_a6bfda99cbbe +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IOCSPPropertyCollection, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IOCSPPropertyCollection { pub unsafe fn _NewEnum(&self) -> ::windows_core::Result<::windows_core::IUnknown> { @@ -8743,16 +8261,6 @@ impl IOCSPPropertyCollection { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IOCSPPropertyCollection, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IOCSPPropertyCollection { - type Vtable = IOCSPPropertyCollection_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IOCSPPropertyCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2597c18d_54e6_4b74_9fa9_a6bfda99cbbe); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IOCSPPropertyCollection_Vtbl { @@ -8781,11 +8289,15 @@ pub struct IOCSPPropertyCollection_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] GetAllProperties: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IObjectId(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IObjectId, + IObjectId_Vtbl, + 0x728ab300_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IObjectId, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IObjectId { pub unsafe fn InitializeFromName(&self, name: CERTENROLL_OBJECTID) -> ::windows_core::Result<()> { @@ -8827,16 +8339,6 @@ impl IObjectId { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IObjectId, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IObjectId { - type Vtable = IObjectId_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IObjectId { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab300_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IObjectId_Vtbl { @@ -8850,11 +8352,15 @@ pub struct IObjectId_Vtbl { pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub GetAlgorithmName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, groupid: ObjectIdGroupId, keyflags: ObjectIdPublicKeyFlags, pstralgorithmname: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IObjectIds(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IObjectIds, + IObjectIds_Vtbl, + 0x728ab301_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IObjectIds, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IObjectIds { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -8895,16 +8401,6 @@ impl IObjectIds { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IObjectIds, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IObjectIds { - type Vtable = IObjectIds_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IObjectIds { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab301_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IObjectIds_Vtbl { @@ -8926,11 +8422,15 @@ pub struct IObjectIds_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] AddRange: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPolicyQualifier(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IPolicyQualifier, + IPolicyQualifier_Vtbl, + 0x728ab31c_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IPolicyQualifier, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IPolicyQualifier { pub unsafe fn InitializeEncode(&self, strqualifier: P0, r#type: PolicyQualifierType) -> ::windows_core::Result<()> @@ -8959,16 +8459,6 @@ impl IPolicyQualifier { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IPolicyQualifier, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IPolicyQualifier { - type Vtable = IPolicyQualifier_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IPolicyQualifier { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab31c_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IPolicyQualifier_Vtbl { @@ -8982,11 +8472,15 @@ pub struct IPolicyQualifier_Vtbl { pub Type: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut PolicyQualifierType) -> ::windows_core::HRESULT, pub get_RawData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPolicyQualifiers(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IPolicyQualifiers, + IPolicyQualifiers_Vtbl, + 0x728ab31d_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IPolicyQualifiers, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IPolicyQualifiers { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -9019,16 +8513,6 @@ impl IPolicyQualifiers { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IPolicyQualifiers, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IPolicyQualifiers { - type Vtable = IPolicyQualifiers_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IPolicyQualifiers { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab31d_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IPolicyQualifiers_Vtbl { @@ -9046,11 +8530,15 @@ pub struct IPolicyQualifiers_Vtbl { pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32) -> ::windows_core::HRESULT, pub Clear: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISignerCertificate(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISignerCertificate, + ISignerCertificate_Vtbl, + 0x728ab33d_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISignerCertificate, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISignerCertificate { pub unsafe fn Initialize(&self, machinecontext: P0, verifytype: X509PrivateKeyVerify, encoding: EncodingType, strcertificate: P1) -> ::windows_core::Result<()> @@ -9111,16 +8599,6 @@ impl ISignerCertificate { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISignerCertificate, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISignerCertificate { - type Vtable = ISignerCertificate_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISignerCertificate { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab33d_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISignerCertificate_Vtbl { @@ -9143,11 +8621,15 @@ pub struct ISignerCertificate_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] SignatureInformation: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISignerCertificates(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISignerCertificates, + ISignerCertificates_Vtbl, + 0x728ab33e_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISignerCertificates, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISignerCertificates { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -9189,16 +8671,6 @@ impl ISignerCertificates { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISignerCertificates, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISignerCertificates { - type Vtable = ISignerCertificates_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISignerCertificates { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab33e_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISignerCertificates_Vtbl { @@ -9220,11 +8692,15 @@ pub struct ISignerCertificates_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Find: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmimeCapabilities(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISmimeCapabilities, + ISmimeCapabilities_Vtbl, + 0x728ab31a_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISmimeCapabilities, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISmimeCapabilities { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -9271,16 +8747,6 @@ impl ISmimeCapabilities { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISmimeCapabilities, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISmimeCapabilities { - type Vtable = ISmimeCapabilities_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISmimeCapabilities { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab31a_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISmimeCapabilities_Vtbl { @@ -9303,11 +8769,15 @@ pub struct ISmimeCapabilities_Vtbl { AddFromCsp: usize, pub AddAvailableSmimeCapabilities: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, machinecontext: super::super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISmimeCapability(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISmimeCapability, + ISmimeCapability_Vtbl, + 0x728ab319_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISmimeCapability, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISmimeCapability { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -9330,16 +8800,6 @@ impl ISmimeCapability { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISmimeCapability, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISmimeCapability { - type Vtable = ISmimeCapability_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISmimeCapability { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab319_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISmimeCapability_Vtbl { @@ -9354,11 +8814,15 @@ pub struct ISmimeCapability_Vtbl { ObjectId: usize, pub BitCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IX500DistinguishedName(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IX500DistinguishedName, + IX500DistinguishedName_Vtbl, + 0x728ab303_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IX500DistinguishedName, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IX500DistinguishedName { pub unsafe fn Decode(&self, strencodedname: P0, encoding: EncodingType, nameflags: X500NameFlags) -> ::windows_core::Result<()> @@ -9383,16 +8847,6 @@ impl IX500DistinguishedName { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IX500DistinguishedName, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IX500DistinguishedName { - type Vtable = IX500DistinguishedName_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IX500DistinguishedName { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab303_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IX500DistinguishedName_Vtbl { @@ -9402,11 +8856,15 @@ pub struct IX500DistinguishedName_Vtbl { pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub get_EncodedName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IX509Attribute(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IX509Attribute, + IX509Attribute_Vtbl, + 0x728ab322_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IX509Attribute, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IX509Attribute { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -9430,16 +8888,6 @@ impl IX509Attribute { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IX509Attribute, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IX509Attribute { - type Vtable = IX509Attribute_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IX509Attribute { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab322_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IX509Attribute_Vtbl { @@ -9454,11 +8902,15 @@ pub struct IX509Attribute_Vtbl { ObjectId: usize, pub get_RawData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IX509AttributeArchiveKey(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IX509AttributeArchiveKey, + IX509AttributeArchiveKey_Vtbl, + 0x728ab327_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IX509AttributeArchiveKey, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IX509Attribute); #[cfg(feature = "Win32_System_Com")] impl IX509AttributeArchiveKey { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -9512,16 +8964,6 @@ impl IX509AttributeArchiveKey { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IX509AttributeArchiveKey, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IX509Attribute); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IX509AttributeArchiveKey { - type Vtable = IX509AttributeArchiveKey_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IX509AttributeArchiveKey { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab327_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IX509AttributeArchiveKey_Vtbl { @@ -9538,11 +8980,15 @@ pub struct IX509AttributeArchiveKey_Vtbl { EncryptionAlgorithm: usize, pub EncryptionStrength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IX509AttributeArchiveKeyHash(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IX509AttributeArchiveKeyHash, + IX509AttributeArchiveKeyHash_Vtbl, + 0x728ab328_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IX509AttributeArchiveKeyHash, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IX509Attribute); #[cfg(feature = "Win32_System_Com")] impl IX509AttributeArchiveKeyHash { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -9582,16 +9028,6 @@ impl IX509AttributeArchiveKeyHash { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IX509AttributeArchiveKeyHash, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IX509Attribute); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IX509AttributeArchiveKeyHash { - type Vtable = IX509AttributeArchiveKeyHash_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IX509AttributeArchiveKeyHash { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab328_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IX509AttributeArchiveKeyHash_Vtbl { @@ -9600,11 +9036,15 @@ pub struct IX509AttributeArchiveKeyHash_Vtbl { pub InitializeDecode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub get_EncryptedKeyHashBlob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IX509AttributeClientId(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IX509AttributeClientId, + IX509AttributeClientId_Vtbl, + 0x728ab325_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IX509AttributeClientId, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IX509Attribute); #[cfg(feature = "Win32_System_Com")] impl IX509AttributeClientId { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -9658,16 +9098,6 @@ impl IX509AttributeClientId { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IX509AttributeClientId, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IX509Attribute); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IX509AttributeClientId { - type Vtable = IX509AttributeClientId_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IX509AttributeClientId { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab325_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IX509AttributeClientId_Vtbl { @@ -9679,11 +9109,15 @@ pub struct IX509AttributeClientId_Vtbl { pub UserSamName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub ProcessName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IX509AttributeCspProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IX509AttributeCspProvider, + IX509AttributeCspProvider_Vtbl, + 0x728ab32b_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IX509AttributeCspProvider, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IX509Attribute); #[cfg(feature = "Win32_System_Com")] impl IX509AttributeCspProvider { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -9732,16 +9166,6 @@ impl IX509AttributeCspProvider { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IX509AttributeCspProvider, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IX509Attribute); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IX509AttributeCspProvider { - type Vtable = IX509AttributeCspProvider_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IX509AttributeCspProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab32b_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IX509AttributeCspProvider_Vtbl { @@ -9752,11 +9176,15 @@ pub struct IX509AttributeCspProvider_Vtbl { pub ProviderName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub get_Signature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IX509AttributeExtensions(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IX509AttributeExtensions, + IX509AttributeExtensions_Vtbl, + 0x728ab324_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IX509AttributeExtensions, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IX509Attribute); #[cfg(feature = "Win32_System_Com")] impl IX509AttributeExtensions { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -9800,16 +9228,6 @@ impl IX509AttributeExtensions { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IX509AttributeExtensions, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IX509Attribute); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IX509AttributeExtensions { - type Vtable = IX509AttributeExtensions_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IX509AttributeExtensions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab324_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IX509AttributeExtensions_Vtbl { @@ -9824,11 +9242,15 @@ pub struct IX509AttributeExtensions_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] X509Extensions: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IX509AttributeOSVersion(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IX509AttributeOSVersion, + IX509AttributeOSVersion_Vtbl, + 0x728ab32a_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IX509AttributeOSVersion, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IX509Attribute); #[cfg(feature = "Win32_System_Com")] impl IX509AttributeOSVersion { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -9864,18 +9286,8 @@ impl IX509AttributeOSVersion { } pub unsafe fn OSVersion(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); - (::windows_core::Interface::vtable(self).OSVersion)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) - } -} -#[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IX509AttributeOSVersion, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IX509Attribute); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IX509AttributeOSVersion { - type Vtable = IX509AttributeOSVersion_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IX509AttributeOSVersion { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab32a_217d_11da_b2a4_000e7bbb2b09); + (::windows_core::Interface::vtable(self).OSVersion)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) + } } #[cfg(feature = "Win32_System_Com")] #[repr(C)] @@ -9886,11 +9298,15 @@ pub struct IX509AttributeOSVersion_Vtbl { pub InitializeDecode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub OSVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IX509AttributeRenewalCertificate(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IX509AttributeRenewalCertificate, + IX509AttributeRenewalCertificate_Vtbl, + 0x728ab326_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IX509AttributeRenewalCertificate, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IX509Attribute); #[cfg(feature = "Win32_System_Com")] impl IX509AttributeRenewalCertificate { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -9930,16 +9346,6 @@ impl IX509AttributeRenewalCertificate { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IX509AttributeRenewalCertificate, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IX509Attribute); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IX509AttributeRenewalCertificate { - type Vtable = IX509AttributeRenewalCertificate_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IX509AttributeRenewalCertificate { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab326_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IX509AttributeRenewalCertificate_Vtbl { @@ -9948,11 +9354,15 @@ pub struct IX509AttributeRenewalCertificate_Vtbl { pub InitializeDecode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub get_RenewalCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IX509Attributes(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IX509Attributes, + IX509Attributes_Vtbl, + 0x728ab323_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IX509Attributes, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IX509Attributes { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -9985,16 +9395,6 @@ impl IX509Attributes { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IX509Attributes, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IX509Attributes { - type Vtable = IX509Attributes_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IX509Attributes { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab323_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IX509Attributes_Vtbl { @@ -10012,11 +9412,15 @@ pub struct IX509Attributes_Vtbl { pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32) -> ::windows_core::HRESULT, pub Clear: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IX509CertificateRequest(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IX509CertificateRequest, + IX509CertificateRequest_Vtbl, + 0x728ab341_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IX509CertificateRequest, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IX509CertificateRequest { pub unsafe fn Initialize(&self, context: X509CertificateEnrollmentContext) -> ::windows_core::Result<()> { @@ -10140,16 +9544,6 @@ impl IX509CertificateRequest { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IX509CertificateRequest, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IX509CertificateRequest { - type Vtable = IX509CertificateRequest_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IX509CertificateRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab341_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IX509CertificateRequest_Vtbl { @@ -10195,11 +9589,15 @@ pub struct IX509CertificateRequest_Vtbl { pub SetAlternateSignatureAlgorithm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub get_RawData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IX509CertificateRequestCertificate(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IX509CertificateRequestCertificate, + IX509CertificateRequestCertificate_Vtbl, + 0x728ab343_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IX509CertificateRequestCertificate, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IX509CertificateRequest, IX509CertificateRequestPkcs10); #[cfg(feature = "Win32_System_Com")] impl IX509CertificateRequestCertificate { pub unsafe fn Initialize(&self, context: X509CertificateEnrollmentContext) -> ::windows_core::Result<()> { @@ -10540,16 +9938,6 @@ impl IX509CertificateRequestCertificate { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IX509CertificateRequestCertificate, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IX509CertificateRequest, IX509CertificateRequestPkcs10); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IX509CertificateRequestCertificate { - type Vtable = IX509CertificateRequestCertificate_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IX509CertificateRequestCertificate { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab343_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IX509CertificateRequestCertificate_Vtbl { @@ -10581,11 +9969,15 @@ pub struct IX509CertificateRequestCertificate_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] SetSignerCertificate: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IX509CertificateRequestCertificate2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IX509CertificateRequestCertificate2, + IX509CertificateRequestCertificate2_Vtbl, + 0x728ab35a_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IX509CertificateRequestCertificate2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IX509CertificateRequest, IX509CertificateRequestPkcs10, IX509CertificateRequestCertificate); #[cfg(feature = "Win32_System_Com")] impl IX509CertificateRequestCertificate2 { pub unsafe fn Initialize(&self, context: X509CertificateEnrollmentContext) -> ::windows_core::Result<()> { @@ -10957,16 +10349,6 @@ impl IX509CertificateRequestCertificate2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IX509CertificateRequestCertificate2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IX509CertificateRequest, IX509CertificateRequestPkcs10, IX509CertificateRequestCertificate); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IX509CertificateRequestCertificate2 { - type Vtable = IX509CertificateRequestCertificate2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IX509CertificateRequestCertificate2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab35a_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IX509CertificateRequestCertificate2_Vtbl { @@ -10988,11 +10370,15 @@ pub struct IX509CertificateRequestCertificate2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Template: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IX509CertificateRequestCmc(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IX509CertificateRequestCmc, + IX509CertificateRequestCmc_Vtbl, + 0x728ab345_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IX509CertificateRequestCmc, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IX509CertificateRequest, IX509CertificateRequestPkcs7); #[cfg(feature = "Win32_System_Com")] impl IX509CertificateRequestCmc { pub unsafe fn Initialize(&self, context: X509CertificateEnrollmentContext) -> ::windows_core::Result<()> { @@ -11290,16 +10676,6 @@ impl IX509CertificateRequestCmc { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IX509CertificateRequestCmc, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IX509CertificateRequest, IX509CertificateRequestPkcs7); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IX509CertificateRequestCmc { - type Vtable = IX509CertificateRequestCmc_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IX509CertificateRequestCmc { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab345_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IX509CertificateRequestCmc_Vtbl { @@ -11361,11 +10737,15 @@ pub struct IX509CertificateRequestCmc_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] SignerCertificates: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IX509CertificateRequestCmc2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IX509CertificateRequestCmc2, + IX509CertificateRequestCmc2_Vtbl, + 0x728ab35d_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IX509CertificateRequestCmc2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IX509CertificateRequest, IX509CertificateRequestPkcs7, IX509CertificateRequestCmc); #[cfg(feature = "Win32_System_Com")] impl IX509CertificateRequestCmc2 { pub unsafe fn Initialize(&self, context: X509CertificateEnrollmentContext) -> ::windows_core::Result<()> { @@ -11706,16 +11086,6 @@ impl IX509CertificateRequestCmc2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IX509CertificateRequestCmc2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IX509CertificateRequest, IX509CertificateRequestPkcs7, IX509CertificateRequestCmc); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IX509CertificateRequestCmc2 { - type Vtable = IX509CertificateRequestCmc2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IX509CertificateRequestCmc2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab35d_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IX509CertificateRequestCmc2_Vtbl { @@ -11742,11 +11112,15 @@ pub struct IX509CertificateRequestCmc2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] CheckCertificateSignature: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IX509CertificateRequestPkcs10(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IX509CertificateRequestPkcs10, + IX509CertificateRequestPkcs10_Vtbl, + 0x728ab342_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IX509CertificateRequestPkcs10, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IX509CertificateRequest); #[cfg(feature = "Win32_System_Com")] impl IX509CertificateRequestPkcs10 { pub unsafe fn Initialize(&self, context: X509CertificateEnrollmentContext) -> ::windows_core::Result<()> { @@ -12027,16 +11401,6 @@ impl IX509CertificateRequestPkcs10 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IX509CertificateRequestPkcs10, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IX509CertificateRequest); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IX509CertificateRequestPkcs10 { - type Vtable = IX509CertificateRequestPkcs10_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IX509CertificateRequestPkcs10 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab342_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IX509CertificateRequestPkcs10_Vtbl { @@ -12112,11 +11476,15 @@ pub struct IX509CertificateRequestPkcs10_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetCspStatuses: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IX509CertificateRequestPkcs10V2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IX509CertificateRequestPkcs10V2, + IX509CertificateRequestPkcs10V2_Vtbl, + 0x728ab35b_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IX509CertificateRequestPkcs10V2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IX509CertificateRequest, IX509CertificateRequestPkcs10); #[cfg(feature = "Win32_System_Com")] impl IX509CertificateRequestPkcs10V2 { pub unsafe fn Initialize(&self, context: X509CertificateEnrollmentContext) -> ::windows_core::Result<()> { @@ -12438,16 +11806,6 @@ impl IX509CertificateRequestPkcs10V2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IX509CertificateRequestPkcs10V2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IX509CertificateRequest, IX509CertificateRequestPkcs10); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IX509CertificateRequestPkcs10V2 { - type Vtable = IX509CertificateRequestPkcs10V2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IX509CertificateRequestPkcs10V2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab35b_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IX509CertificateRequestPkcs10V2_Vtbl { @@ -12473,11 +11831,15 @@ pub struct IX509CertificateRequestPkcs10V2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Template: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IX509CertificateRequestPkcs10V3(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IX509CertificateRequestPkcs10V3, + IX509CertificateRequestPkcs10V3_Vtbl, + 0x54ea9942_3d66_4530_b76e_7c9170d3ec52 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IX509CertificateRequestPkcs10V3, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IX509CertificateRequest, IX509CertificateRequestPkcs10, IX509CertificateRequestPkcs10V2); #[cfg(feature = "Win32_System_Com")] impl IX509CertificateRequestPkcs10V3 { pub unsafe fn Initialize(&self, context: X509CertificateEnrollmentContext) -> ::windows_core::Result<()> { @@ -12856,16 +12218,6 @@ impl IX509CertificateRequestPkcs10V3 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IX509CertificateRequestPkcs10V3, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IX509CertificateRequest, IX509CertificateRequestPkcs10, IX509CertificateRequestPkcs10V2); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IX509CertificateRequestPkcs10V3 { - type Vtable = IX509CertificateRequestPkcs10V3_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IX509CertificateRequestPkcs10V3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x54ea9942_3d66_4530_b76e_7c9170d3ec52); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IX509CertificateRequestPkcs10V3_Vtbl { @@ -12891,11 +12243,15 @@ pub struct IX509CertificateRequestPkcs10V3_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] NameValuePairs: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IX509CertificateRequestPkcs10V4(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IX509CertificateRequestPkcs10V4, + IX509CertificateRequestPkcs10V4_Vtbl, + 0x728ab363_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IX509CertificateRequestPkcs10V4, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IX509CertificateRequest, IX509CertificateRequestPkcs10, IX509CertificateRequestPkcs10V2, IX509CertificateRequestPkcs10V3); #[cfg(feature = "Win32_System_Com")] impl IX509CertificateRequestPkcs10V4 { pub unsafe fn Initialize(&self, context: X509CertificateEnrollmentContext) -> ::windows_core::Result<()> { @@ -13291,16 +12647,6 @@ impl IX509CertificateRequestPkcs10V4 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IX509CertificateRequestPkcs10V4, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IX509CertificateRequest, IX509CertificateRequestPkcs10, IX509CertificateRequestPkcs10V2, IX509CertificateRequestPkcs10V3); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IX509CertificateRequestPkcs10V4 { - type Vtable = IX509CertificateRequestPkcs10V4_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IX509CertificateRequestPkcs10V4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab363_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IX509CertificateRequestPkcs10V4_Vtbl { @@ -13310,11 +12656,15 @@ pub struct IX509CertificateRequestPkcs10V4_Vtbl { pub AttestPrivateKeyPreferred: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub SetAttestPrivateKeyPreferred: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IX509CertificateRequestPkcs7(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IX509CertificateRequestPkcs7, + IX509CertificateRequestPkcs7_Vtbl, + 0x728ab344_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IX509CertificateRequestPkcs7, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IX509CertificateRequest); #[cfg(feature = "Win32_System_Com")] impl IX509CertificateRequestPkcs7 { pub unsafe fn Initialize(&self, context: X509CertificateEnrollmentContext) -> ::windows_core::Result<()> { @@ -13489,16 +12839,6 @@ impl IX509CertificateRequestPkcs7 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IX509CertificateRequestPkcs7, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IX509CertificateRequest); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IX509CertificateRequestPkcs7 { - type Vtable = IX509CertificateRequestPkcs7_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IX509CertificateRequestPkcs7 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab344_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IX509CertificateRequestPkcs7_Vtbl { @@ -13521,11 +12861,15 @@ pub struct IX509CertificateRequestPkcs7_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] SetSignerCertificate: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IX509CertificateRequestPkcs7V2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IX509CertificateRequestPkcs7V2, + IX509CertificateRequestPkcs7V2_Vtbl, + 0x728ab35c_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IX509CertificateRequestPkcs7V2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IX509CertificateRequest, IX509CertificateRequestPkcs7); #[cfg(feature = "Win32_System_Com")] impl IX509CertificateRequestPkcs7V2 { pub unsafe fn Initialize(&self, context: X509CertificateEnrollmentContext) -> ::windows_core::Result<()> { @@ -13727,16 +13071,6 @@ impl IX509CertificateRequestPkcs7V2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IX509CertificateRequestPkcs7V2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IX509CertificateRequest, IX509CertificateRequestPkcs7); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IX509CertificateRequestPkcs7V2 { - type Vtable = IX509CertificateRequestPkcs7V2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IX509CertificateRequestPkcs7V2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab35c_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IX509CertificateRequestPkcs7V2_Vtbl { @@ -13755,11 +13089,15 @@ pub struct IX509CertificateRequestPkcs7V2_Vtbl { Template: usize, pub CheckCertificateSignature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, validatecertificatechain: super::super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IX509CertificateRevocationList(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IX509CertificateRevocationList, + IX509CertificateRevocationList_Vtbl, + 0x728ab360_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IX509CertificateRevocationList, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IX509CertificateRevocationList { pub unsafe fn Initialize(&self) -> ::windows_core::Result<()> { @@ -13917,16 +13255,6 @@ impl IX509CertificateRevocationList { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IX509CertificateRevocationList, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IX509CertificateRevocationList { - type Vtable = IX509CertificateRevocationList_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IX509CertificateRevocationList { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab360_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IX509CertificateRevocationList_Vtbl { @@ -13996,11 +13324,15 @@ pub struct IX509CertificateRevocationList_Vtbl { pub get_RawDataToBeSigned: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub get_Signature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IX509CertificateRevocationListEntries(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IX509CertificateRevocationListEntries, + IX509CertificateRevocationListEntries_Vtbl, + 0x728ab35f_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IX509CertificateRevocationListEntries, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IX509CertificateRevocationListEntries { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -14048,16 +13380,6 @@ impl IX509CertificateRevocationListEntries { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IX509CertificateRevocationListEntries, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IX509CertificateRevocationListEntries { - type Vtable = IX509CertificateRevocationListEntries_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IX509CertificateRevocationListEntries { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab35f_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IX509CertificateRevocationListEntries_Vtbl { @@ -14080,11 +13402,15 @@ pub struct IX509CertificateRevocationListEntries_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] AddRange: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IX509CertificateRevocationListEntry(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IX509CertificateRevocationListEntry, + IX509CertificateRevocationListEntry_Vtbl, + 0x728ab35e_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IX509CertificateRevocationListEntry, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IX509CertificateRevocationListEntry { pub unsafe fn Initialize(&self, encoding: EncodingType, serialnumber: P0, revocationdate: f64) -> ::windows_core::Result<()> @@ -14122,16 +13448,6 @@ impl IX509CertificateRevocationListEntry { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IX509CertificateRevocationListEntry, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IX509CertificateRevocationListEntry { - type Vtable = IX509CertificateRevocationListEntry_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IX509CertificateRevocationListEntry { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab35e_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IX509CertificateRevocationListEntry_Vtbl { @@ -14150,11 +13466,15 @@ pub struct IX509CertificateRevocationListEntry_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] CriticalExtensions: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IX509CertificateTemplate(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IX509CertificateTemplate, + IX509CertificateTemplate_Vtbl, + 0x54244a13_555a_4e22_896d_1b0e52f76406 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IX509CertificateTemplate, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IX509CertificateTemplate { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -14165,16 +13485,6 @@ impl IX509CertificateTemplate { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IX509CertificateTemplate, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IX509CertificateTemplate { - type Vtable = IX509CertificateTemplate_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IX509CertificateTemplate { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x54244a13_555a_4e22_896d_1b0e52f76406); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IX509CertificateTemplate_Vtbl { @@ -14184,11 +13494,15 @@ pub struct IX509CertificateTemplate_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] get_Property: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IX509CertificateTemplateWritable(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IX509CertificateTemplateWritable, + IX509CertificateTemplateWritable_Vtbl, + 0xf49466a7_395a_4e9e_b6e7_32b331600dc0 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IX509CertificateTemplateWritable, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IX509CertificateTemplateWritable { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -14224,16 +13538,6 @@ impl IX509CertificateTemplateWritable { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IX509CertificateTemplateWritable, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IX509CertificateTemplateWritable { - type Vtable = IX509CertificateTemplateWritable_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IX509CertificateTemplateWritable { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf49466a7_395a_4e9e_b6e7_32b331600dc0); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IX509CertificateTemplateWritable_Vtbl { @@ -14256,11 +13560,15 @@ pub struct IX509CertificateTemplateWritable_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Template: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IX509CertificateTemplates(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IX509CertificateTemplates, + IX509CertificateTemplates_Vtbl, + 0x13b79003_2181_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IX509CertificateTemplates, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IX509CertificateTemplates { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -14311,16 +13619,6 @@ impl IX509CertificateTemplates { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IX509CertificateTemplates, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IX509CertificateTemplates { - type Vtable = IX509CertificateTemplates_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IX509CertificateTemplates { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x13b79003_2181_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IX509CertificateTemplates_Vtbl { @@ -14346,11 +13644,15 @@ pub struct IX509CertificateTemplates_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] get_ItemByOid: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IX509EndorsementKey(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IX509EndorsementKey, + IX509EndorsementKey_Vtbl, + 0xb11cd855_f4c4_4fc6_b710_4422237f09e9 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IX509EndorsementKey, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IX509EndorsementKey { pub unsafe fn ProviderName(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -14411,16 +13713,6 @@ impl IX509EndorsementKey { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IX509EndorsementKey, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IX509EndorsementKey { - type Vtable = IX509EndorsementKey_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IX509EndorsementKey { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb11cd855_f4c4_4fc6_b710_4422237f09e9); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IX509EndorsementKey_Vtbl { @@ -14440,11 +13732,15 @@ pub struct IX509EndorsementKey_Vtbl { pub Open: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Close: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IX509Enrollment(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IX509Enrollment, + IX509Enrollment_Vtbl, + 0x728ab346_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IX509Enrollment, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IX509Enrollment { pub unsafe fn Initialize(&self, context: X509CertificateEnrollmentContext) -> ::windows_core::Result<()> { @@ -14562,16 +13858,6 @@ impl IX509Enrollment { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IX509Enrollment, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IX509Enrollment { - type Vtable = IX509Enrollment_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IX509Enrollment { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab346_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IX509Enrollment_Vtbl { @@ -14612,11 +13898,15 @@ pub struct IX509Enrollment_Vtbl { pub RequestId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut i32) -> ::windows_core::HRESULT, pub CAConfigString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IX509Enrollment2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IX509Enrollment2, + IX509Enrollment2_Vtbl, + 0x728ab350_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IX509Enrollment2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IX509Enrollment); #[cfg(feature = "Win32_System_Com")] impl IX509Enrollment2 { pub unsafe fn Initialize(&self, context: X509CertificateEnrollmentContext) -> ::windows_core::Result<()> { @@ -14768,16 +14058,6 @@ impl IX509Enrollment2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IX509Enrollment2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IX509Enrollment); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IX509Enrollment2 { - type Vtable = IX509Enrollment2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IX509Enrollment2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab350_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IX509Enrollment2_Vtbl { @@ -14797,11 +14077,15 @@ pub struct IX509Enrollment2_Vtbl { Template: usize, pub RequestIdString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IX509EnrollmentHelper(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IX509EnrollmentHelper, + IX509EnrollmentHelper_Vtbl, + 0x728ab351_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IX509EnrollmentHelper, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IX509EnrollmentHelper { pub unsafe fn AddPolicyServer(&self, strenrollmentpolicyserveruri: P0, strenrollmentpolicyid: P1, enrollmentpolicyserverflags: PolicyServerUrlFlags, authflags: X509EnrollmentAuthFlags, strcredential: P2, strpassword: P3) -> ::windows_core::Result<()> @@ -14834,16 +14118,6 @@ impl IX509EnrollmentHelper { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IX509EnrollmentHelper, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IX509EnrollmentHelper { - type Vtable = IX509EnrollmentHelper_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IX509EnrollmentHelper { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab351_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IX509EnrollmentHelper_Vtbl { @@ -14853,11 +14127,15 @@ pub struct IX509EnrollmentHelper_Vtbl { pub Enroll: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strenrollmentpolicyserveruri: ::std::mem::MaybeUninit<::windows_core::BSTR>, strtemplatename: ::std::mem::MaybeUninit<::windows_core::BSTR>, encoding: EncodingType, enrollflags: WebEnrollmentFlags, pstrcertificate: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: X509CertificateEnrollmentContext) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IX509EnrollmentPolicyServer(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IX509EnrollmentPolicyServer, + IX509EnrollmentPolicyServer_Vtbl, + 0x13b79026_2181_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IX509EnrollmentPolicyServer, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IX509EnrollmentPolicyServer { pub unsafe fn Initialize(&self, bstrpolicyserverurl: P0, bstrpolicyserverid: P1, authflags: X509EnrollmentAuthFlags, fisuntrusted: P2, context: X509CertificateEnrollmentContext) -> ::windows_core::Result<()> @@ -14976,16 +14254,6 @@ impl IX509EnrollmentPolicyServer { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IX509EnrollmentPolicyServer, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IX509EnrollmentPolicyServer { - type Vtable = IX509EnrollmentPolicyServer_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IX509EnrollmentPolicyServer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x13b79026_2181_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IX509EnrollmentPolicyServer_Vtbl { @@ -15033,11 +14301,15 @@ pub struct IX509EnrollmentPolicyServer_Vtbl { pub Cost: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut u32) -> ::windows_core::HRESULT, pub SetCost: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: u32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IX509EnrollmentStatus(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IX509EnrollmentStatus, + IX509EnrollmentStatus_Vtbl, + 0x728ab304_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IX509EnrollmentStatus, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IX509EnrollmentStatus { pub unsafe fn AppendText(&self, strtext: P0) -> ::windows_core::Result<()> @@ -15090,16 +14362,6 @@ impl IX509EnrollmentStatus { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IX509EnrollmentStatus, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IX509EnrollmentStatus { - type Vtable = IX509EnrollmentStatus_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IX509EnrollmentStatus { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab304_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IX509EnrollmentStatus_Vtbl { @@ -15117,11 +14379,15 @@ pub struct IX509EnrollmentStatus_Vtbl { pub SetError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::windows_core::HRESULT) -> ::windows_core::HRESULT, pub ErrorText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IX509EnrollmentWebClassFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IX509EnrollmentWebClassFactory, + IX509EnrollmentWebClassFactory_Vtbl, + 0x728ab349_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IX509EnrollmentWebClassFactory, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IX509EnrollmentWebClassFactory { pub unsafe fn CreateObject(&self, strprogid: P0) -> ::windows_core::Result<::windows_core::IUnknown> @@ -15133,27 +14399,21 @@ impl IX509EnrollmentWebClassFactory { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IX509EnrollmentWebClassFactory, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IX509EnrollmentWebClassFactory { - type Vtable = IX509EnrollmentWebClassFactory_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IX509EnrollmentWebClassFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab349_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IX509EnrollmentWebClassFactory_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, pub CreateObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strprogid: ::std::mem::MaybeUninit<::windows_core::BSTR>, ppiunknown: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IX509Extension(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IX509Extension, + IX509Extension_Vtbl, + 0x728ab30d_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IX509Extension, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IX509Extension { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -15187,16 +14447,6 @@ impl IX509Extension { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IX509Extension, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IX509Extension { - type Vtable = IX509Extension_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IX509Extension { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab30d_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IX509Extension_Vtbl { @@ -15213,11 +14463,15 @@ pub struct IX509Extension_Vtbl { pub Critical: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub SetCritical: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IX509ExtensionAlternativeNames(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IX509ExtensionAlternativeNames, + IX509ExtensionAlternativeNames_Vtbl, + 0x728ab315_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IX509ExtensionAlternativeNames, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IX509Extension); #[cfg(feature = "Win32_System_Com")] impl IX509ExtensionAlternativeNames { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -15271,16 +14525,6 @@ impl IX509ExtensionAlternativeNames { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IX509ExtensionAlternativeNames, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IX509Extension); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IX509ExtensionAlternativeNames { - type Vtable = IX509ExtensionAlternativeNames_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IX509ExtensionAlternativeNames { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab315_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IX509ExtensionAlternativeNames_Vtbl { @@ -15295,11 +14539,15 @@ pub struct IX509ExtensionAlternativeNames_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] AlternativeNames: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IX509ExtensionAuthorityKeyIdentifier(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IX509ExtensionAuthorityKeyIdentifier, + IX509ExtensionAuthorityKeyIdentifier_Vtbl, + 0x728ab318_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IX509ExtensionAuthorityKeyIdentifier, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IX509Extension); #[cfg(feature = "Win32_System_Com")] impl IX509ExtensionAuthorityKeyIdentifier { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -15349,16 +14597,6 @@ impl IX509ExtensionAuthorityKeyIdentifier { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IX509ExtensionAuthorityKeyIdentifier, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IX509Extension); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IX509ExtensionAuthorityKeyIdentifier { - type Vtable = IX509ExtensionAuthorityKeyIdentifier_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IX509ExtensionAuthorityKeyIdentifier { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab318_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IX509ExtensionAuthorityKeyIdentifier_Vtbl { @@ -15367,11 +14605,15 @@ pub struct IX509ExtensionAuthorityKeyIdentifier_Vtbl { pub InitializeDecode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub get_AuthorityKeyIdentifier: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IX509ExtensionBasicConstraints(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IX509ExtensionBasicConstraints, + IX509ExtensionBasicConstraints_Vtbl, + 0x728ab316_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IX509ExtensionBasicConstraints, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IX509Extension); #[cfg(feature = "Win32_System_Com")] impl IX509ExtensionBasicConstraints { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -15425,16 +14667,6 @@ impl IX509ExtensionBasicConstraints { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IX509ExtensionBasicConstraints, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IX509Extension); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IX509ExtensionBasicConstraints { - type Vtable = IX509ExtensionBasicConstraints_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IX509ExtensionBasicConstraints { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab316_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IX509ExtensionBasicConstraints_Vtbl { @@ -15444,11 +14676,15 @@ pub struct IX509ExtensionBasicConstraints_Vtbl { pub IsCA: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub PathLenConstraint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IX509ExtensionCertificatePolicies(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IX509ExtensionCertificatePolicies, + IX509ExtensionCertificatePolicies_Vtbl, + 0x728ab320_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IX509ExtensionCertificatePolicies, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IX509Extension); #[cfg(feature = "Win32_System_Com")] impl IX509ExtensionCertificatePolicies { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -15502,16 +14738,6 @@ impl IX509ExtensionCertificatePolicies { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IX509ExtensionCertificatePolicies, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IX509Extension); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IX509ExtensionCertificatePolicies { - type Vtable = IX509ExtensionCertificatePolicies_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IX509ExtensionCertificatePolicies { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab320_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IX509ExtensionCertificatePolicies_Vtbl { @@ -15526,11 +14752,15 @@ pub struct IX509ExtensionCertificatePolicies_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Policies: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IX509ExtensionEnhancedKeyUsage(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IX509ExtensionEnhancedKeyUsage, + IX509ExtensionEnhancedKeyUsage_Vtbl, + 0x728ab310_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IX509ExtensionEnhancedKeyUsage, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IX509Extension); #[cfg(feature = "Win32_System_Com")] impl IX509ExtensionEnhancedKeyUsage { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -15584,16 +14814,6 @@ impl IX509ExtensionEnhancedKeyUsage { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IX509ExtensionEnhancedKeyUsage, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IX509Extension); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IX509ExtensionEnhancedKeyUsage { - type Vtable = IX509ExtensionEnhancedKeyUsage_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IX509ExtensionEnhancedKeyUsage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab310_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IX509ExtensionEnhancedKeyUsage_Vtbl { @@ -15608,11 +14828,15 @@ pub struct IX509ExtensionEnhancedKeyUsage_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] EnhancedKeyUsage: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IX509ExtensionKeyUsage(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IX509ExtensionKeyUsage, + IX509ExtensionKeyUsage_Vtbl, + 0x728ab30f_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IX509ExtensionKeyUsage, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IX509Extension); #[cfg(feature = "Win32_System_Com")] impl IX509ExtensionKeyUsage { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -15659,16 +14883,6 @@ impl IX509ExtensionKeyUsage { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IX509ExtensionKeyUsage, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IX509Extension); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IX509ExtensionKeyUsage { - type Vtable = IX509ExtensionKeyUsage_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IX509ExtensionKeyUsage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab30f_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IX509ExtensionKeyUsage_Vtbl { @@ -15677,11 +14891,15 @@ pub struct IX509ExtensionKeyUsage_Vtbl { pub InitializeDecode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub KeyUsage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut X509KeyUsageFlags) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IX509ExtensionMSApplicationPolicies(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IX509ExtensionMSApplicationPolicies, + IX509ExtensionMSApplicationPolicies_Vtbl, + 0x728ab321_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IX509ExtensionMSApplicationPolicies, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IX509Extension); #[cfg(feature = "Win32_System_Com")] impl IX509ExtensionMSApplicationPolicies { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -15735,16 +14953,6 @@ impl IX509ExtensionMSApplicationPolicies { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IX509ExtensionMSApplicationPolicies, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IX509Extension); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IX509ExtensionMSApplicationPolicies { - type Vtable = IX509ExtensionMSApplicationPolicies_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IX509ExtensionMSApplicationPolicies { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab321_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IX509ExtensionMSApplicationPolicies_Vtbl { @@ -15759,11 +14967,15 @@ pub struct IX509ExtensionMSApplicationPolicies_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Policies: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IX509ExtensionSmimeCapabilities(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IX509ExtensionSmimeCapabilities, + IX509ExtensionSmimeCapabilities_Vtbl, + 0x728ab31b_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IX509ExtensionSmimeCapabilities, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IX509Extension); #[cfg(feature = "Win32_System_Com")] impl IX509ExtensionSmimeCapabilities { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -15817,16 +15029,6 @@ impl IX509ExtensionSmimeCapabilities { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IX509ExtensionSmimeCapabilities, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IX509Extension); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IX509ExtensionSmimeCapabilities { - type Vtable = IX509ExtensionSmimeCapabilities_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IX509ExtensionSmimeCapabilities { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab31b_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IX509ExtensionSmimeCapabilities_Vtbl { @@ -15841,11 +15043,15 @@ pub struct IX509ExtensionSmimeCapabilities_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] SmimeCapabilities: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IX509ExtensionSubjectKeyIdentifier(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IX509ExtensionSubjectKeyIdentifier, + IX509ExtensionSubjectKeyIdentifier_Vtbl, + 0x728ab317_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IX509ExtensionSubjectKeyIdentifier, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IX509Extension); #[cfg(feature = "Win32_System_Com")] impl IX509ExtensionSubjectKeyIdentifier { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -15895,16 +15101,6 @@ impl IX509ExtensionSubjectKeyIdentifier { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IX509ExtensionSubjectKeyIdentifier, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IX509Extension); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IX509ExtensionSubjectKeyIdentifier { - type Vtable = IX509ExtensionSubjectKeyIdentifier_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IX509ExtensionSubjectKeyIdentifier { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab317_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IX509ExtensionSubjectKeyIdentifier_Vtbl { @@ -15913,11 +15109,15 @@ pub struct IX509ExtensionSubjectKeyIdentifier_Vtbl { pub InitializeDecode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub get_SubjectKeyIdentifier: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IX509ExtensionTemplate(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IX509ExtensionTemplate, + IX509ExtensionTemplate_Vtbl, + 0x728ab312_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IX509ExtensionTemplate, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IX509Extension); #[cfg(feature = "Win32_System_Com")] impl IX509ExtensionTemplate { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -15979,16 +15179,6 @@ impl IX509ExtensionTemplate { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IX509ExtensionTemplate, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IX509Extension); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IX509ExtensionTemplate { - type Vtable = IX509ExtensionTemplate_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IX509ExtensionTemplate { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab312_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IX509ExtensionTemplate_Vtbl { @@ -16005,11 +15195,15 @@ pub struct IX509ExtensionTemplate_Vtbl { pub MajorVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut i32) -> ::windows_core::HRESULT, pub MinorVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IX509ExtensionTemplateName(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IX509ExtensionTemplateName, + IX509ExtensionTemplateName_Vtbl, + 0x728ab311_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IX509ExtensionTemplateName, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IX509Extension); #[cfg(feature = "Win32_System_Com")] impl IX509ExtensionTemplateName { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -16059,16 +15253,6 @@ impl IX509ExtensionTemplateName { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IX509ExtensionTemplateName, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IX509Extension); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IX509ExtensionTemplateName { - type Vtable = IX509ExtensionTemplateName_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IX509ExtensionTemplateName { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab311_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IX509ExtensionTemplateName_Vtbl { @@ -16077,11 +15261,15 @@ pub struct IX509ExtensionTemplateName_Vtbl { pub InitializeDecode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub TemplateName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IX509Extensions(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IX509Extensions, + IX509Extensions_Vtbl, + 0x728ab30e_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IX509Extensions, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IX509Extensions { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -16131,16 +15319,6 @@ impl IX509Extensions { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IX509Extensions, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IX509Extensions { - type Vtable = IX509Extensions_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IX509Extensions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab30e_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IX509Extensions_Vtbl { @@ -16166,11 +15344,15 @@ pub struct IX509Extensions_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] AddRange: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IX509MachineEnrollmentFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IX509MachineEnrollmentFactory, + IX509MachineEnrollmentFactory_Vtbl, + 0x728ab352_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IX509MachineEnrollmentFactory, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IX509MachineEnrollmentFactory { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -16184,16 +15366,6 @@ impl IX509MachineEnrollmentFactory { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IX509MachineEnrollmentFactory, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IX509MachineEnrollmentFactory { - type Vtable = IX509MachineEnrollmentFactory_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IX509MachineEnrollmentFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab352_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IX509MachineEnrollmentFactory_Vtbl { @@ -16203,11 +15375,15 @@ pub struct IX509MachineEnrollmentFactory_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] CreateObject: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IX509NameValuePair(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IX509NameValuePair, + IX509NameValuePair_Vtbl, + 0x728ab33f_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IX509NameValuePair, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IX509NameValuePair { pub unsafe fn Initialize(&self, strname: P0, strvalue: P1) -> ::windows_core::Result<()> @@ -16227,16 +15403,6 @@ impl IX509NameValuePair { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IX509NameValuePair, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IX509NameValuePair { - type Vtable = IX509NameValuePair_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IX509NameValuePair { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab33f_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IX509NameValuePair_Vtbl { @@ -16245,11 +15411,15 @@ pub struct IX509NameValuePair_Vtbl { pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IX509NameValuePairs(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IX509NameValuePairs, + IX509NameValuePairs_Vtbl, + 0x728ab340_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IX509NameValuePairs, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IX509NameValuePairs { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -16282,16 +15452,6 @@ impl IX509NameValuePairs { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IX509NameValuePairs, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IX509NameValuePairs { - type Vtable = IX509NameValuePairs_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IX509NameValuePairs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab340_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IX509NameValuePairs_Vtbl { @@ -16309,11 +15469,15 @@ pub struct IX509NameValuePairs_Vtbl { pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32) -> ::windows_core::HRESULT, pub Clear: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IX509PolicyServerListManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IX509PolicyServerListManager, + IX509PolicyServerListManager_Vtbl, + 0x884e204b_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IX509PolicyServerListManager, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IX509PolicyServerListManager { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -16349,16 +15513,6 @@ impl IX509PolicyServerListManager { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IX509PolicyServerListManager, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IX509PolicyServerListManager { - type Vtable = IX509PolicyServerListManager_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IX509PolicyServerListManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x884e204b_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IX509PolicyServerListManager_Vtbl { @@ -16377,11 +15531,15 @@ pub struct IX509PolicyServerListManager_Vtbl { pub Clear: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: X509CertificateEnrollmentContext, flags: PolicyServerUrlFlags) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IX509PolicyServerUrl(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IX509PolicyServerUrl, + IX509PolicyServerUrl_Vtbl, + 0x884e204a_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IX509PolicyServerUrl, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IX509PolicyServerUrl { pub unsafe fn Initialize(&self, context: X509CertificateEnrollmentContext) -> ::windows_core::Result<()> { @@ -16446,16 +15604,6 @@ impl IX509PolicyServerUrl { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IX509PolicyServerUrl, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IX509PolicyServerUrl { - type Vtable = IX509PolicyServerUrl_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IX509PolicyServerUrl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x884e204a_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IX509PolicyServerUrl_Vtbl { @@ -16476,11 +15624,15 @@ pub struct IX509PolicyServerUrl_Vtbl { pub UpdateRegistry: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: X509CertificateEnrollmentContext) -> ::windows_core::HRESULT, pub RemoveFromRegistry: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: X509CertificateEnrollmentContext) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IX509PrivateKey(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IX509PrivateKey, + IX509PrivateKey_Vtbl, + 0x728ab30c_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IX509PrivateKey, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IX509PrivateKey { pub unsafe fn Open(&self) -> ::windows_core::Result<()> { @@ -16759,16 +15911,6 @@ impl IX509PrivateKey { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IX509PrivateKey, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IX509PrivateKey { - type Vtable = IX509PrivateKey_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IX509PrivateKey { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab30c_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IX509PrivateKey_Vtbl { @@ -16853,11 +15995,15 @@ pub struct IX509PrivateKey_Vtbl { pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IX509PrivateKey2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IX509PrivateKey2, + IX509PrivateKey2_Vtbl, + 0x728ab362_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IX509PrivateKey2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IX509PrivateKey); #[cfg(feature = "Win32_System_Com")] impl IX509PrivateKey2 { pub unsafe fn Open(&self) -> ::windows_core::Result<()> { @@ -17180,16 +16326,6 @@ impl IX509PrivateKey2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IX509PrivateKey2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IX509PrivateKey); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IX509PrivateKey2 { - type Vtable = IX509PrivateKey2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IX509PrivateKey2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab362_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IX509PrivateKey2_Vtbl { @@ -17205,11 +16341,15 @@ pub struct IX509PrivateKey2_Vtbl { pub ParametersExportType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut X509KeyParametersExportType) -> ::windows_core::HRESULT, pub SetParametersExportType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: X509KeyParametersExportType) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IX509PublicKey(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IX509PublicKey, + IX509PublicKey_Vtbl, + 0x728ab30b_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IX509PublicKey, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IX509PublicKey { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -17252,16 +16392,6 @@ impl IX509PublicKey { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IX509PublicKey, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IX509PublicKey { - type Vtable = IX509PublicKey_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IX509PublicKey { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab30b_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IX509PublicKey_Vtbl { @@ -17280,11 +16410,15 @@ pub struct IX509PublicKey_Vtbl { pub get_EncodedParameters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub ComputeKeyIdentifier: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, algorithm: KeyIdentifierHashAlgorithm, encoding: EncodingType, pvalue: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IX509SCEPEnrollment(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IX509SCEPEnrollment, + IX509SCEPEnrollment_Vtbl, + 0x728ab361_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IX509SCEPEnrollment, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IX509SCEPEnrollment { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -17412,16 +16546,6 @@ impl IX509SCEPEnrollment { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IX509SCEPEnrollment, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IX509SCEPEnrollment { - type Vtable = IX509SCEPEnrollment_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IX509SCEPEnrollment { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab361_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IX509SCEPEnrollment_Vtbl { @@ -17470,11 +16594,15 @@ pub struct IX509SCEPEnrollment_Vtbl { pub SetSilent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub DeleteRequest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IX509SCEPEnrollment2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IX509SCEPEnrollment2, + IX509SCEPEnrollment2_Vtbl, + 0x728ab364_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IX509SCEPEnrollment2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IX509SCEPEnrollment); #[cfg(feature = "Win32_System_Com")] impl IX509SCEPEnrollment2 { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -17631,16 +16759,6 @@ impl IX509SCEPEnrollment2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IX509SCEPEnrollment2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, IX509SCEPEnrollment); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IX509SCEPEnrollment2 { - type Vtable = IX509SCEPEnrollment2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IX509SCEPEnrollment2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab364_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IX509SCEPEnrollment2_Vtbl { @@ -17652,11 +16770,15 @@ pub struct IX509SCEPEnrollment2_Vtbl { pub ActivityId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SetActivityId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IX509SCEPEnrollmentHelper(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IX509SCEPEnrollmentHelper, + IX509SCEPEnrollmentHelper_Vtbl, + 0x728ab365_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IX509SCEPEnrollmentHelper, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IX509SCEPEnrollmentHelper { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -17698,16 +16820,6 @@ impl IX509SCEPEnrollmentHelper { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IX509SCEPEnrollmentHelper, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IX509SCEPEnrollmentHelper { - type Vtable = IX509SCEPEnrollmentHelper_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IX509SCEPEnrollmentHelper { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab365_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IX509SCEPEnrollmentHelper_Vtbl { @@ -17725,11 +16837,15 @@ pub struct IX509SCEPEnrollmentHelper_Vtbl { X509SCEPEnrollment: usize, pub ResultMessageText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IX509SignatureInformation(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IX509SignatureInformation, + IX509SignatureInformation_Vtbl, + 0x728ab33c_217d_11da_b2a4_000e7bbb2b09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IX509SignatureInformation, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IX509SignatureInformation { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -17809,16 +16925,6 @@ impl IX509SignatureInformation { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IX509SignatureInformation, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IX509SignatureInformation { - type Vtable = IX509SignatureInformation_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IX509SignatureInformation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x728ab33c_217d_11da_b2a4_000e7bbb2b09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IX509SignatureInformation_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Security/Cryptography/impl.rs b/crates/libs/windows/src/Windows/Win32/Security/Cryptography/impl.rs index b0269ca0cc..ceddeea306 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/Cryptography/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/Cryptography/impl.rs @@ -218,7 +218,7 @@ impl ICertSrvSetup_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -355,7 +355,7 @@ impl ICertSrvSetupKeyInformation_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -418,7 +418,7 @@ impl ICertSrvSetupKeyInformationCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -489,7 +489,7 @@ impl ICertificateEnrollmentPolicyServerSetup_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -567,7 +567,7 @@ impl ICertificateEnrollmentServerSetup_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -704,6 +704,6 @@ impl IMSCEPSetup_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } 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 121cca0878..5e6e3289e2 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/Cryptography/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/Cryptography/mod.rs @@ -2862,11 +2862,15 @@ where 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__).from_abi(result__) } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertSrvSetup(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICertSrvSetup, + ICertSrvSetup_Vtbl, + 0xb760a1bb_4784_44c0_8f12_555f0780ff25 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICertSrvSetup, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ICertSrvSetup { pub unsafe fn CAErrorId(&self) -> ::windows_core::Result { @@ -2999,16 +3003,6 @@ impl ICertSrvSetup { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICertSrvSetup, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICertSrvSetup { - type Vtable = ICertSrvSetup_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICertSrvSetup { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb760a1bb_4784_44c0_8f12_555f0780ff25); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICertSrvSetup_Vtbl { @@ -3061,11 +3055,15 @@ pub struct ICertSrvSetup_Vtbl { pub PreUnInstall: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bclientonly: super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub PostUnInstall: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertSrvSetupKeyInformation(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICertSrvSetupKeyInformation, + ICertSrvSetupKeyInformation_Vtbl, + 0x6ba73778_36da_4c39_8a85_bcfa7d000793 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICertSrvSetupKeyInformation, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ICertSrvSetupKeyInformation { pub unsafe fn ProviderName(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -3128,16 +3126,6 @@ impl ICertSrvSetupKeyInformation { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICertSrvSetupKeyInformation, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICertSrvSetupKeyInformation { - type Vtable = ICertSrvSetupKeyInformation_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICertSrvSetupKeyInformation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6ba73778_36da_4c39_8a85_bcfa7d000793); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICertSrvSetupKeyInformation_Vtbl { @@ -3161,11 +3149,15 @@ pub struct ICertSrvSetupKeyInformation_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] SetExistingCACertificate: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertSrvSetupKeyInformationCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICertSrvSetupKeyInformationCollection, + ICertSrvSetupKeyInformationCollection_Vtbl, + 0xe65c8b00_e58f_41f9_a9ec_a28d7427c844 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICertSrvSetupKeyInformationCollection, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ICertSrvSetupKeyInformationCollection { pub unsafe fn _NewEnum(&self) -> ::windows_core::Result<::windows_core::IUnknown> { @@ -3192,16 +3184,6 @@ impl ICertSrvSetupKeyInformationCollection { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICertSrvSetupKeyInformationCollection, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICertSrvSetupKeyInformationCollection { - type Vtable = ICertSrvSetupKeyInformationCollection_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICertSrvSetupKeyInformationCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe65c8b00_e58f_41f9_a9ec_a28d7427c844); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICertSrvSetupKeyInformationCollection_Vtbl { @@ -3217,11 +3199,15 @@ pub struct ICertSrvSetupKeyInformationCollection_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Add: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertificateEnrollmentPolicyServerSetup(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICertificateEnrollmentPolicyServerSetup, + ICertificateEnrollmentPolicyServerSetup_Vtbl, + 0x859252cc_238c_4a88_b8fd_a37e7d04e68b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICertificateEnrollmentPolicyServerSetup, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ICertificateEnrollmentPolicyServerSetup { pub unsafe fn ErrorString(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -3252,16 +3238,6 @@ impl ICertificateEnrollmentPolicyServerSetup { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICertificateEnrollmentPolicyServerSetup, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICertificateEnrollmentPolicyServerSetup { - type Vtable = ICertificateEnrollmentPolicyServerSetup_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICertificateEnrollmentPolicyServerSetup { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x859252cc_238c_4a88_b8fd_a37e7d04e68b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICertificateEnrollmentPolicyServerSetup_Vtbl { @@ -3282,11 +3258,15 @@ pub struct ICertificateEnrollmentPolicyServerSetup_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] UnInstall: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICertificateEnrollmentServerSetup(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICertificateEnrollmentServerSetup, + ICertificateEnrollmentServerSetup_Vtbl, + 0x70027fdb_9dd9_4921_8944_b35cb31bd2ec +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICertificateEnrollmentServerSetup, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ICertificateEnrollmentServerSetup { pub unsafe fn ErrorString(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -3324,16 +3304,6 @@ impl ICertificateEnrollmentServerSetup { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICertificateEnrollmentServerSetup, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICertificateEnrollmentServerSetup { - type Vtable = ICertificateEnrollmentServerSetup_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICertificateEnrollmentServerSetup { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x70027fdb_9dd9_4921_8944_b35cb31bd2ec); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICertificateEnrollmentServerSetup_Vtbl { @@ -3355,11 +3325,15 @@ pub struct ICertificateEnrollmentServerSetup_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] UnInstall: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSCEPSetup(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSCEPSetup, + IMSCEPSetup_Vtbl, + 0x4f7761bb_9f3b_4592_9ee0_9a73259c313e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSCEPSetup, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMSCEPSetup { pub unsafe fn MSCEPErrorId(&self) -> ::windows_core::Result { @@ -3425,16 +3399,6 @@ impl IMSCEPSetup { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSCEPSetup, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSCEPSetup { - type Vtable = IMSCEPSetup_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSCEPSetup { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4f7761bb_9f3b_4592_9ee0_9a73259c313e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSCEPSetup_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Security/EnterpriseData/impl.rs b/crates/libs/windows/src/Windows/Win32/Security/EnterpriseData/impl.rs index ce6feb7658..513304f6a4 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/EnterpriseData/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/EnterpriseData/impl.rs @@ -22,7 +22,7 @@ impl IProtectionPolicyManagerInterop_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IProtectionPolicyManagerInterop2_Impl: Sized { @@ -70,7 +70,7 @@ impl IProtectionPolicyManagerInterop2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IProtectionPolicyManagerInterop3_Impl: Sized { @@ -125,6 +125,6 @@ impl IProtectionPolicyManagerInterop3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 70e5670acc..e3e4fbab41 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/EnterpriseData/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/EnterpriseData/mod.rs @@ -94,14 +94,13 @@ where ::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() } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProtectionPolicyManagerInterop(::windows_core::IUnknown); +::windows_core::imp::com_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, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -109,19 +108,12 @@ impl IProtectionPolicyManagerInterop { pub unsafe fn GetForWindow(&self, appwindow: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IProtectionPolicyManagerInterop, ::windows_core::IUnknown, ::windows_core::IInspectable); -unsafe impl ::windows_core::Interface for IProtectionPolicyManagerInterop { - type Vtable = IProtectionPolicyManagerInterop_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProtectionPolicyManagerInterop { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4652651d_c1fe_4ba1_9f0a_c0f56596f721); -} #[repr(C)] #[doc(hidden)] pub struct IProtectionPolicyManagerInterop_Vtbl { @@ -129,14 +121,13 @@ pub struct IProtectionPolicyManagerInterop_Vtbl { pub RequestAccessForWindowAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, appwindow: super::super::Foundation::HWND, sourceidentity: ::std::mem::MaybeUninit<::windows_core::HSTRING>, targetidentity: ::std::mem::MaybeUninit<::windows_core::HSTRING>, riid: *const ::windows_core::GUID, asyncoperation: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetForWindow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, appwindow: super::super::Foundation::HWND, riid: *const ::windows_core::GUID, result: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProtectionPolicyManagerInterop2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IProtectionPolicyManagerInterop2, IProtectionPolicyManagerInterop2_Vtbl, 0x157cfbe4_a78d_4156_b384_61fdac41e686); +::windows_core::imp::interface_hierarchy!(IProtectionPolicyManagerInterop2, ::windows_core::IUnknown, ::windows_core::IInspectable); 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, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -145,7 +136,7 @@ impl IProtectionPolicyManagerInterop2 { where P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam<::windows_core::IUnknown>, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -154,7 +145,7 @@ impl IProtectionPolicyManagerInterop2 { where P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam<::windows_core::IUnknown>, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -163,7 +154,7 @@ impl IProtectionPolicyManagerInterop2 { where P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam<::windows_core::IUnknown>, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -172,19 +163,12 @@ impl IProtectionPolicyManagerInterop2 { where P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam<::windows_core::IUnknown>, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IProtectionPolicyManagerInterop2, ::windows_core::IUnknown, ::windows_core::IInspectable); -unsafe impl ::windows_core::Interface for IProtectionPolicyManagerInterop2 { - type Vtable = IProtectionPolicyManagerInterop2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProtectionPolicyManagerInterop2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x157cfbe4_a78d_4156_b384_61fdac41e686); -} #[repr(C)] #[doc(hidden)] pub struct IProtectionPolicyManagerInterop2_Vtbl { @@ -195,15 +179,14 @@ pub struct IProtectionPolicyManagerInterop2_Vtbl { pub RequestAccessForAppWithAuditingInfoForWindowAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, appwindow: super::super::Foundation::HWND, sourceidentity: ::std::mem::MaybeUninit<::windows_core::HSTRING>, apppackagefamilyname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, auditinfounk: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, asyncoperation: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RequestAccessForAppWithMessageForWindowAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, appwindow: super::super::Foundation::HWND, sourceidentity: ::std::mem::MaybeUninit<::windows_core::HSTRING>, apppackagefamilyname: ::std::mem::MaybeUninit<::windows_core::HSTRING>, auditinfounk: *mut ::core::ffi::c_void, messagefromapp: ::std::mem::MaybeUninit<::windows_core::HSTRING>, riid: *const ::windows_core::GUID, asyncoperation: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProtectionPolicyManagerInterop3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IProtectionPolicyManagerInterop3, IProtectionPolicyManagerInterop3_Vtbl, 0xc1c03933_b398_4d93_b0fd_2972adf802c2); +::windows_core::imp::interface_hierarchy!(IProtectionPolicyManagerInterop3, ::windows_core::IUnknown, ::windows_core::IInspectable); 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<::windows_core::IUnknown>, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -212,7 +195,7 @@ impl IProtectionPolicyManagerInterop3 { where P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam<::windows_core::IUnknown>, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -222,7 +205,7 @@ impl IProtectionPolicyManagerInterop3 { P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam<::windows_core::IUnknown>, P2: ::windows_core::IntoParam<::windows_core::IUnknown>, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -232,7 +215,7 @@ impl IProtectionPolicyManagerInterop3 { P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam<::windows_core::IUnknown>, P2: ::windows_core::IntoParam<::windows_core::IUnknown>, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -242,7 +225,7 @@ impl IProtectionPolicyManagerInterop3 { P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam<::windows_core::IUnknown>, P2: ::windows_core::IntoParam<::windows_core::IUnknown>, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -252,19 +235,12 @@ impl IProtectionPolicyManagerInterop3 { P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam<::windows_core::IUnknown>, P2: ::windows_core::IntoParam<::windows_core::IUnknown>, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IProtectionPolicyManagerInterop3, ::windows_core::IUnknown, ::windows_core::IInspectable); -unsafe impl ::windows_core::Interface for IProtectionPolicyManagerInterop3 { - type Vtable = IProtectionPolicyManagerInterop3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProtectionPolicyManagerInterop3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc1c03933_b398_4d93_b0fd_2972adf802c2); -} #[repr(C)] #[doc(hidden)] pub struct IProtectionPolicyManagerInterop3_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Security/ExtensibleAuthenticationProtocol/impl.rs b/crates/libs/windows/src/Windows/Win32/Security/ExtensibleAuthenticationProtocol/impl.rs index 773d738383..837d46b212 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/ExtensibleAuthenticationProtocol/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/ExtensibleAuthenticationProtocol/impl.rs @@ -49,7 +49,7 @@ impl IAccountingProviderConfig_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAuthenticationProviderConfig_Impl: Sized { @@ -103,7 +103,7 @@ impl IAuthenticationProviderConfig_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEAPProviderConfig_Impl: Sized { @@ -158,7 +158,7 @@ impl IEAPProviderConfig_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEAPProviderConfig2_Impl: Sized + IEAPProviderConfig_Impl { @@ -185,7 +185,7 @@ impl IEAPProviderConfig2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IEAPProviderConfig3_Impl: Sized + IEAPProviderConfig2_Impl { @@ -205,7 +205,7 @@ impl IEAPProviderConfig3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IRouterProtocolConfig_Impl: Sized { @@ -232,6 +232,6 @@ impl IRouterProtocolConfig_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 de7f2da5db..a0333be19c 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/ExtensibleAuthenticationProtocol/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/ExtensibleAuthenticationProtocol/mod.rs @@ -197,9 +197,8 @@ pub unsafe fn EapHostPeerUninitialize() { ::windows_targets::link!("eappprxy.dll" "system" fn EapHostPeerUninitialize()); EapHostPeerUninitialize() } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAccountingProviderConfig(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAccountingProviderConfig, IAccountingProviderConfig_Vtbl, 0x66a2db18_d706_11d0_a37b_00c04fc9da04); +::windows_core::imp::interface_hierarchy!(IAccountingProviderConfig, ::windows_core::IUnknown); impl IAccountingProviderConfig { pub unsafe fn Initialize(&self, pszmachinename: P0) -> ::windows_core::Result where @@ -224,13 +223,6 @@ impl IAccountingProviderConfig { (::windows_core::Interface::vtable(self).Deactivate)(::windows_core::Interface::as_raw(self), uconnectionparam, ureserved1, ureserved2).ok() } } -::windows_core::imp::interface_hierarchy!(IAccountingProviderConfig, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAccountingProviderConfig { - type Vtable = IAccountingProviderConfig_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAccountingProviderConfig { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x66a2db18_d706_11d0_a37b_00c04fc9da04); -} #[repr(C)] #[doc(hidden)] pub struct IAccountingProviderConfig_Vtbl { @@ -241,9 +233,8 @@ pub struct IAccountingProviderConfig_Vtbl { pub Activate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uconnectionparam: usize, ureserved1: usize, ureserved2: usize) -> ::windows_core::HRESULT, pub Deactivate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uconnectionparam: usize, ureserved1: usize, ureserved2: usize) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAuthenticationProviderConfig(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAuthenticationProviderConfig, IAuthenticationProviderConfig_Vtbl, 0x66a2db17_d706_11d0_a37b_00c04fc9da04); +::windows_core::imp::interface_hierarchy!(IAuthenticationProviderConfig, ::windows_core::IUnknown); impl IAuthenticationProviderConfig { pub unsafe fn Initialize(&self, pszmachinename: P0) -> ::windows_core::Result where @@ -268,13 +259,6 @@ impl IAuthenticationProviderConfig { (::windows_core::Interface::vtable(self).Deactivate)(::windows_core::Interface::as_raw(self), uconnectionparam, ureserved1, ureserved2).ok() } } -::windows_core::imp::interface_hierarchy!(IAuthenticationProviderConfig, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAuthenticationProviderConfig { - type Vtable = IAuthenticationProviderConfig_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAuthenticationProviderConfig { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x66a2db17_d706_11d0_a37b_00c04fc9da04); -} #[repr(C)] #[doc(hidden)] pub struct IAuthenticationProviderConfig_Vtbl { @@ -285,9 +269,8 @@ pub struct IAuthenticationProviderConfig_Vtbl { pub Activate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uconnectionparam: usize, ureserved1: usize, ureserved2: usize) -> ::windows_core::HRESULT, pub Deactivate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uconnectionparam: usize, ureserved1: usize, ureserved2: usize) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEAPProviderConfig(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEAPProviderConfig, IEAPProviderConfig_Vtbl, 0x66a2db19_d706_11d0_a37b_00c04fc9da04); +::windows_core::imp::interface_hierarchy!(IEAPProviderConfig, ::windows_core::IUnknown); impl IEAPProviderConfig { pub unsafe fn Initialize(&self, pszmachinename: P0, dweaptypeid: u32) -> ::windows_core::Result where @@ -318,13 +301,6 @@ impl IEAPProviderConfig { (::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::imp::interface_hierarchy!(IEAPProviderConfig, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEAPProviderConfig { - type Vtable = IEAPProviderConfig_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEAPProviderConfig { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x66a2db19_d706_11d0_a37b_00c04fc9da04); -} #[repr(C)] #[doc(hidden)] pub struct IEAPProviderConfig_Vtbl { @@ -335,9 +311,8 @@ pub struct IEAPProviderConfig_Vtbl { pub RouterInvokeConfigUI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dweaptypeid: u32, uconnectionparam: usize, hwndparent: super::super::Foundation::HWND, dwflags: u32, pconnectiondatain: *const u8, dwsizeofconnectiondatain: u32, ppconnectiondataout: *mut *mut u8, pdwsizeofconnectiondataout: *mut u32) -> ::windows_core::HRESULT, pub RouterInvokeCredentialsUI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dweaptypeid: u32, uconnectionparam: usize, hwndparent: super::super::Foundation::HWND, dwflags: u32, pconnectiondatain: *const u8, dwsizeofconnectiondatain: u32, puserdatain: *const u8, dwsizeofuserdatain: u32, ppuserdataout: *mut *mut u8, pdwsizeofuserdataout: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEAPProviderConfig2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEAPProviderConfig2, IEAPProviderConfig2_Vtbl, 0xd565917a_85c4_4466_856e_671c3742ea9a); +::windows_core::imp::interface_hierarchy!(IEAPProviderConfig2, ::windows_core::IUnknown, IEAPProviderConfig); impl IEAPProviderConfig2 { pub unsafe fn Initialize(&self, pszmachinename: P0, dweaptypeid: u32) -> ::windows_core::Result where @@ -377,13 +352,6 @@ impl IEAPProviderConfig2 { (::windows_core::Interface::vtable(self).GetGlobalConfig)(::windows_core::Interface::as_raw(self), dweaptypeid, ppconfigdataout, pdwsizeofconfigdataout).ok() } } -::windows_core::imp::interface_hierarchy!(IEAPProviderConfig2, ::windows_core::IUnknown, IEAPProviderConfig); -unsafe impl ::windows_core::Interface for IEAPProviderConfig2 { - type Vtable = IEAPProviderConfig2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEAPProviderConfig2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd565917a_85c4_4466_856e_671c3742ea9a); -} #[repr(C)] #[doc(hidden)] pub struct IEAPProviderConfig2_Vtbl { @@ -391,9 +359,8 @@ pub struct IEAPProviderConfig2_Vtbl { pub ServerInvokeConfigUI2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dweaptypeid: u32, uconnectionparam: usize, hwnd: super::super::Foundation::HWND, pconfigdatain: *const u8, dwsizeofconfigdatain: u32, ppconfigdataout: *mut *mut u8, pdwsizeofconfigdataout: *mut u32) -> ::windows_core::HRESULT, pub GetGlobalConfig: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dweaptypeid: u32, ppconfigdataout: *mut *mut u8, pdwsizeofconfigdataout: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEAPProviderConfig3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEAPProviderConfig3, IEAPProviderConfig3_Vtbl, 0xb78ecd12_68bb_4f86_9bf0_8438dd3be982); +::windows_core::imp::interface_hierarchy!(IEAPProviderConfig3, ::windows_core::IUnknown, IEAPProviderConfig, IEAPProviderConfig2); impl IEAPProviderConfig3 { pub unsafe fn Initialize(&self, pszmachinename: P0, dweaptypeid: u32) -> ::windows_core::Result where @@ -439,22 +406,14 @@ impl IEAPProviderConfig3 { (::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::imp::interface_hierarchy!(IEAPProviderConfig3, ::windows_core::IUnknown, IEAPProviderConfig, IEAPProviderConfig2); -unsafe impl ::windows_core::Interface for IEAPProviderConfig3 { - type Vtable = IEAPProviderConfig3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEAPProviderConfig3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb78ecd12_68bb_4f86_9bf0_8438dd3be982); -} #[repr(C)] #[doc(hidden)] pub struct IEAPProviderConfig3_Vtbl { pub base__: IEAPProviderConfig2_Vtbl, pub ServerInvokeCertificateConfigUI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dweaptypeid: u32, uconnectionparam: usize, hwnd: super::super::Foundation::HWND, pconfigdatain: *const u8, dwsizeofconfigdatain: u32, ppconfigdataout: *mut *mut u8, pdwsizeofconfigdataout: *mut u32, ureserved: usize) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRouterProtocolConfig(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRouterProtocolConfig, IRouterProtocolConfig_Vtbl, 0x66a2db16_d706_11d0_a37b_00c04fc9da04); +::windows_core::imp::interface_hierarchy!(IRouterProtocolConfig, ::windows_core::IUnknown); 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 @@ -473,13 +432,6 @@ impl IRouterProtocolConfig { (::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::imp::interface_hierarchy!(IRouterProtocolConfig, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRouterProtocolConfig { - type Vtable = IRouterProtocolConfig_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRouterProtocolConfig { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x66a2db16_d706_11d0_a37b_00c04fc9da04); -} #[repr(C)] #[doc(hidden)] pub struct IRouterProtocolConfig_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Security/Isolation/impl.rs b/crates/libs/windows/src/Windows/Win32/Security/Isolation/impl.rs index 4fecc86606..8007850994 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/Isolation/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/Isolation/impl.rs @@ -12,6 +12,6 @@ impl IIsolatedAppLauncher_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Launch: Launch:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 3480990ae9..5ba622af5f 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/Isolation/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/Isolation/mod.rs @@ -86,9 +86,8 @@ pub unsafe fn IsProcessInWDAGContainer(reserved: *const ::core::ffi::c_void) -> let mut result__ = ::std::mem::zeroed(); IsProcessInWDAGContainer(reserved, &mut result__).from_abi(result__) } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIsolatedAppLauncher(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IIsolatedAppLauncher, IIsolatedAppLauncher_Vtbl, 0xf686878f_7b42_4cc4_96fb_f4f3b6e3d24d); +::windows_core::imp::interface_hierarchy!(IIsolatedAppLauncher, ::windows_core::IUnknown); impl IIsolatedAppLauncher { pub unsafe fn Launch(&self, appusermodelid: P0, arguments: P1, telemetryparameters: *const IsolatedAppLauncherTelemetryParameters) -> ::windows_core::Result<()> where @@ -98,13 +97,6 @@ impl IIsolatedAppLauncher { (::windows_core::Interface::vtable(self).Launch)(::windows_core::Interface::as_raw(self), appusermodelid.into_param().abi(), arguments.into_param().abi(), telemetryparameters).ok() } } -::windows_core::imp::interface_hierarchy!(IIsolatedAppLauncher, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIsolatedAppLauncher { - type Vtable = IIsolatedAppLauncher_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIsolatedAppLauncher { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf686878f_7b42_4cc4_96fb_f4f3b6e3d24d); -} #[repr(C)] #[doc(hidden)] pub struct IIsolatedAppLauncher_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Security/Tpm/impl.rs b/crates/libs/windows/src/Windows/Win32/Security/Tpm/impl.rs index 9eb578fb46..b17bd3e80a 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/Tpm/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/Tpm/impl.rs @@ -44,7 +44,7 @@ impl ITpmVirtualSmartCardManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITpmVirtualSmartCardManager2_Impl: Sized + ITpmVirtualSmartCardManager_Impl { @@ -82,7 +82,7 @@ impl ITpmVirtualSmartCardManager2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ITpmVirtualSmartCardManager3_Impl: Sized + ITpmVirtualSmartCardManager2_Impl { @@ -124,7 +124,7 @@ impl ITpmVirtualSmartCardManager3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ITpmVirtualSmartCardManagerStatusCallback_Impl: Sized { @@ -151,6 +151,6 @@ impl ITpmVirtualSmartCardManagerStatusCallback_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 ab9be1994b..9c0b70ce66 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/Tpm/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/Tpm/mod.rs @@ -1,6 +1,5 @@ -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITpmVirtualSmartCardManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITpmVirtualSmartCardManager, ITpmVirtualSmartCardManager_Vtbl, 0x112b1dff_d9dc_41f7_869f_d67fee7cb591); +::windows_core::imp::interface_hierarchy!(ITpmVirtualSmartCardManager, ::windows_core::IUnknown); 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 @@ -36,13 +35,6 @@ impl ITpmVirtualSmartCardManager { (::windows_core::Interface::vtable(self).DestroyVirtualSmartCard)(::windows_core::Interface::as_raw(self), pszinstanceid.into_param().abi(), pstatuscallback.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITpmVirtualSmartCardManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITpmVirtualSmartCardManager { - type Vtable = ITpmVirtualSmartCardManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITpmVirtualSmartCardManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x112b1dff_d9dc_41f7_869f_d67fee7cb591); -} #[repr(C)] #[doc(hidden)] pub struct ITpmVirtualSmartCardManager_Vtbl { @@ -50,9 +42,8 @@ pub struct ITpmVirtualSmartCardManager_Vtbl { pub CreateVirtualSmartCard: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszfriendlyname: ::windows_core::PCWSTR, badminalgid: u8, pbadminkey: *const u8, cbadminkey: u32, pbadminkcv: *const u8, cbadminkcv: u32, pbpuk: *const u8, cbpuk: u32, pbpin: *const u8, cbpin: u32, fgenerate: super::super::Foundation::BOOL, pstatuscallback: *mut ::core::ffi::c_void, ppszinstanceid: *mut ::windows_core::PWSTR, pfneedreboot: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub DestroyVirtualSmartCard: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszinstanceid: ::windows_core::PCWSTR, pstatuscallback: *mut ::core::ffi::c_void, pfneedreboot: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITpmVirtualSmartCardManager2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITpmVirtualSmartCardManager2, ITpmVirtualSmartCardManager2_Vtbl, 0xfdf8a2b9_02de_47f4_bc26_aa85ab5e5267); +::windows_core::imp::interface_hierarchy!(ITpmVirtualSmartCardManager2, ::windows_core::IUnknown, ITpmVirtualSmartCardManager); 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 @@ -115,22 +106,14 @@ impl ITpmVirtualSmartCardManager2 { .ok() } } -::windows_core::imp::interface_hierarchy!(ITpmVirtualSmartCardManager2, ::windows_core::IUnknown, ITpmVirtualSmartCardManager); -unsafe impl ::windows_core::Interface for ITpmVirtualSmartCardManager2 { - type Vtable = ITpmVirtualSmartCardManager2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITpmVirtualSmartCardManager2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfdf8a2b9_02de_47f4_bc26_aa85ab5e5267); -} #[repr(C)] #[doc(hidden)] pub struct ITpmVirtualSmartCardManager2_Vtbl { pub base__: ITpmVirtualSmartCardManager_Vtbl, pub CreateVirtualSmartCardWithPinPolicy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszfriendlyname: ::windows_core::PCWSTR, badminalgid: u8, pbadminkey: *const u8, cbadminkey: u32, pbadminkcv: *const u8, cbadminkcv: u32, pbpuk: *const u8, cbpuk: u32, pbpin: *const u8, cbpin: u32, pbpinpolicy: *const u8, cbpinpolicy: u32, fgenerate: super::super::Foundation::BOOL, pstatuscallback: *mut ::core::ffi::c_void, ppszinstanceid: *mut ::windows_core::PWSTR, pfneedreboot: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITpmVirtualSmartCardManager3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITpmVirtualSmartCardManager3, ITpmVirtualSmartCardManager3_Vtbl, 0x3c745a97_f375_4150_be17_5950f694c699); +::windows_core::imp::interface_hierarchy!(ITpmVirtualSmartCardManager3, ::windows_core::IUnknown, ITpmVirtualSmartCardManager, ITpmVirtualSmartCardManager2); 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 @@ -221,22 +204,14 @@ impl ITpmVirtualSmartCardManager3 { .from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITpmVirtualSmartCardManager3, ::windows_core::IUnknown, ITpmVirtualSmartCardManager, ITpmVirtualSmartCardManager2); -unsafe impl ::windows_core::Interface for ITpmVirtualSmartCardManager3 { - type Vtable = ITpmVirtualSmartCardManager3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITpmVirtualSmartCardManager3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3c745a97_f375_4150_be17_5950f694c699); -} #[repr(C)] #[doc(hidden)] pub struct ITpmVirtualSmartCardManager3_Vtbl { pub base__: ITpmVirtualSmartCardManager2_Vtbl, pub CreateVirtualSmartCardWithAttestation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszfriendlyname: ::windows_core::PCWSTR, badminalgid: u8, pbadminkey: *const u8, cbadminkey: u32, pbadminkcv: *const u8, cbadminkcv: u32, pbpuk: *const u8, cbpuk: u32, pbpin: *const u8, cbpin: u32, pbpinpolicy: *const u8, cbpinpolicy: u32, attestationtype: TPMVSC_ATTESTATION_TYPE, fgenerate: super::super::Foundation::BOOL, pstatuscallback: *mut ::core::ffi::c_void, ppszinstanceid: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITpmVirtualSmartCardManagerStatusCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITpmVirtualSmartCardManagerStatusCallback, ITpmVirtualSmartCardManagerStatusCallback_Vtbl, 0x1a1bb35f_abb8_451c_a1ae_33d98f1bef4a); +::windows_core::imp::interface_hierarchy!(ITpmVirtualSmartCardManagerStatusCallback, ::windows_core::IUnknown); impl ITpmVirtualSmartCardManagerStatusCallback { pub unsafe fn ReportProgress(&self, status: TPMVSCMGR_STATUS) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).ReportProgress)(::windows_core::Interface::as_raw(self), status).ok() @@ -245,13 +220,6 @@ impl ITpmVirtualSmartCardManagerStatusCallback { (::windows_core::Interface::vtable(self).ReportError)(::windows_core::Interface::as_raw(self), error).ok() } } -::windows_core::imp::interface_hierarchy!(ITpmVirtualSmartCardManagerStatusCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITpmVirtualSmartCardManagerStatusCallback { - type Vtable = ITpmVirtualSmartCardManagerStatusCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITpmVirtualSmartCardManagerStatusCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1a1bb35f_abb8_451c_a1ae_33d98f1bef4a); -} #[repr(C)] #[doc(hidden)] pub struct ITpmVirtualSmartCardManagerStatusCallback_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Storage/DataDeduplication/impl.rs b/crates/libs/windows/src/Windows/Win32/Storage/DataDeduplication/impl.rs index d497e08666..9e877df979 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/DataDeduplication/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/DataDeduplication/impl.rs @@ -12,7 +12,7 @@ impl IDedupBackupSupport_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), RestoreFiles: RestoreFiles:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -63,7 +63,7 @@ impl IDedupChunkLibrary_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -212,7 +212,7 @@ impl IDedupDataPort_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDedupDataPortManager_Impl: Sized { @@ -258,7 +258,7 @@ impl IDedupDataPortManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDedupIterateChunksHash32_Impl: Sized { @@ -299,7 +299,7 @@ impl IDedupIterateChunksHash32_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDedupReadFileCallback_Impl: Sized { @@ -333,6 +333,6 @@ impl IDedupReadFileCallback_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 4f2679ff8a..3a9f74a6e6 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/DataDeduplication/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/DataDeduplication/mod.rs @@ -1,6 +1,5 @@ -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDedupBackupSupport(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDedupBackupSupport, IDedupBackupSupport_Vtbl, 0xc719d963_2b2d_415e_acf7_7eb7ca596ff4); +::windows_core::imp::interface_hierarchy!(IDedupBackupSupport, ::windows_core::IUnknown); 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 @@ -9,22 +8,14 @@ impl IDedupBackupSupport { (::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::imp::interface_hierarchy!(IDedupBackupSupport, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDedupBackupSupport { - type Vtable = IDedupBackupSupport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDedupBackupSupport { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc719d963_2b2d_415e_acf7_7eb7ca596ff4); -} #[repr(C)] #[doc(hidden)] pub struct IDedupBackupSupport_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub RestoreFiles: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, numberoffiles: u32, filefullpaths: *const ::std::mem::MaybeUninit<::windows_core::BSTR>, store: *mut ::core::ffi::c_void, flags: u32, fileresults: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDedupChunkLibrary(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDedupChunkLibrary, IDedupChunkLibrary_Vtbl, 0xbb5144d7_2720_4dcc_8777_78597416ec23); +::windows_core::imp::interface_hierarchy!(IDedupChunkLibrary, ::windows_core::IUnknown); impl IDedupChunkLibrary { pub unsafe fn InitializeForPushBuffers(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).InitializeForPushBuffers)(::windows_core::Interface::as_raw(self)).ok() @@ -42,13 +33,6 @@ impl IDedupChunkLibrary { (::windows_core::Interface::vtable(self).StartChunking)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(iiditeratorinterfaceid), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDedupChunkLibrary, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDedupChunkLibrary { - type Vtable = IDedupChunkLibrary_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDedupChunkLibrary { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbb5144d7_2720_4dcc_8777_78597416ec23); -} #[repr(C)] #[doc(hidden)] pub struct IDedupChunkLibrary_Vtbl { @@ -61,9 +45,8 @@ pub struct IDedupChunkLibrary_Vtbl { SetParameter: usize, pub StartChunking: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, iiditeratorinterfaceid: ::windows_core::GUID, ppchunksenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDedupDataPort(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDedupDataPort, IDedupDataPort_Vtbl, 0x7963d734_40a9_4ea3_bbf6_5a89d26f7ae8); +::windows_core::imp::interface_hierarchy!(IDedupDataPort, ::windows_core::IUnknown); impl IDedupDataPort { pub unsafe fn GetStatus(&self, pstatus: *mut DedupDataPortVolumeStatus, pdataheadroommb: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetStatus)(::windows_core::Interface::as_raw(self), pstatus, pdataheadroommb).ok() @@ -120,13 +103,6 @@ impl IDedupDataPort { (::windows_core::Interface::vtable(self).GetRequestResults)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(requestid), maxwaitms, pbatchresult, pbatchcount, pstatus, ppitemresults).ok() } } -::windows_core::imp::interface_hierarchy!(IDedupDataPort, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDedupDataPort { - type Vtable = IDedupDataPort_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDedupDataPort { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7963d734_40a9_4ea3_bbf6_5a89d26f7ae8); -} #[repr(C)] #[doc(hidden)] pub struct IDedupDataPort_Vtbl { @@ -150,9 +126,8 @@ pub struct IDedupDataPort_Vtbl { pub GetRequestStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, requestid: ::windows_core::GUID, pstatus: *mut DedupDataPortRequestStatus) -> ::windows_core::HRESULT, pub GetRequestResults: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, requestid: ::windows_core::GUID, maxwaitms: u32, pbatchresult: *mut ::windows_core::HRESULT, pbatchcount: *mut u32, pstatus: *mut DedupDataPortRequestStatus, ppitemresults: *mut *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDedupDataPortManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDedupDataPortManager, IDedupDataPortManager_Vtbl, 0x44677452_b90a_445e_8192_cdcfe81511fb); +::windows_core::imp::interface_hierarchy!(IDedupDataPortManager, ::windows_core::IUnknown); impl IDedupDataPortManager { pub unsafe fn GetConfiguration(&self, pminchunksize: *mut u32, pmaxchunksize: *mut u32, pchunkingalgorithm: *mut DedupChunkingAlgorithm, phashingalgorithm: *mut DedupHashingAlgorithm, pcompressionalgorithm: *mut DedupCompressionAlgorithm) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetConfiguration)(::windows_core::Interface::as_raw(self), pminchunksize, pmaxchunksize, pchunkingalgorithm, phashingalgorithm, pcompressionalgorithm).ok() @@ -172,13 +147,6 @@ impl IDedupDataPortManager { (::windows_core::Interface::vtable(self).GetVolumeDataPort)(::windows_core::Interface::as_raw(self), options, path.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDedupDataPortManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDedupDataPortManager { - type Vtable = IDedupDataPortManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDedupDataPortManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x44677452_b90a_445e_8192_cdcfe81511fb); -} #[repr(C)] #[doc(hidden)] pub struct IDedupDataPortManager_Vtbl { @@ -187,9 +155,8 @@ pub struct IDedupDataPortManager_Vtbl { pub GetVolumeStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, options: u32, path: ::std::mem::MaybeUninit<::windows_core::BSTR>, pstatus: *mut DedupDataPortVolumeStatus) -> ::windows_core::HRESULT, pub GetVolumeDataPort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, options: u32, path: ::std::mem::MaybeUninit<::windows_core::BSTR>, ppdataport: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDedupIterateChunksHash32(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDedupIterateChunksHash32, IDedupIterateChunksHash32_Vtbl, 0x90b584d3_72aa_400f_9767_cad866a5a2d8); +::windows_core::imp::interface_hierarchy!(IDedupIterateChunksHash32, ::windows_core::IUnknown); impl IDedupIterateChunksHash32 { pub unsafe fn PushBuffer(&self, pbuffer: &[u8]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).PushBuffer)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pbuffer.as_ptr()), pbuffer.len().try_into().unwrap()).ok() @@ -204,13 +171,6 @@ impl IDedupIterateChunksHash32 { (::windows_core::Interface::vtable(self).Reset)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IDedupIterateChunksHash32, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDedupIterateChunksHash32 { - type Vtable = IDedupIterateChunksHash32_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDedupIterateChunksHash32 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x90b584d3_72aa_400f_9767_cad866a5a2d8); -} #[repr(C)] #[doc(hidden)] pub struct IDedupIterateChunksHash32_Vtbl { @@ -220,9 +180,8 @@ pub struct IDedupIterateChunksHash32_Vtbl { pub Drain: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDedupReadFileCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDedupReadFileCallback, IDedupReadFileCallback_Vtbl, 0x7bacc67a_2f1d_42d0_897e_6ff62dd533bb); +::windows_core::imp::interface_hierarchy!(IDedupReadFileCallback, ::windows_core::IUnknown); impl IDedupReadFileCallback { pub unsafe fn ReadBackupFile(&self, filefullpath: P0, fileoffset: i64, filebuffer: &mut [u8], returnedsize: *mut u32, flags: u32) -> ::windows_core::Result<()> where @@ -240,13 +199,6 @@ impl IDedupReadFileCallback { (::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::imp::interface_hierarchy!(IDedupReadFileCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDedupReadFileCallback { - type Vtable = IDedupReadFileCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDedupReadFileCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7bacc67a_2f1d_42d0_897e_6ff62dd533bb); -} #[repr(C)] #[doc(hidden)] pub struct IDedupReadFileCallback_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Storage/EnhancedStorage/impl.rs b/crates/libs/windows/src/Windows/Win32/Storage/EnhancedStorage/impl.rs index c3f91dada5..5a7113f191 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/EnhancedStorage/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/EnhancedStorage/impl.rs @@ -68,7 +68,7 @@ impl IEnhancedStorageACT_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnhancedStorageACT2_Impl: Sized + IEnhancedStorageACT_Impl { @@ -107,7 +107,7 @@ impl IEnhancedStorageACT2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IEnhancedStorageACT3_Impl: Sized + IEnhancedStorageACT2_Impl { @@ -153,7 +153,7 @@ impl IEnhancedStorageACT3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Devices_PortableDevices\"`"] @@ -223,7 +223,7 @@ impl IEnhancedStorageSilo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnhancedStorageSiloAction_Impl: Sized { @@ -269,7 +269,7 @@ impl IEnhancedStorageSiloAction_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumEnhancedStorageACT_Impl: Sized { @@ -302,6 +302,6 @@ impl IEnumEnhancedStorageACT_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 2cbdd842a9..1527b5c9ab 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/EnhancedStorage/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/EnhancedStorage/mod.rs @@ -1,6 +1,5 @@ -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnhancedStorageACT(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnhancedStorageACT, IEnhancedStorageACT_Vtbl, 0x6e7781f4_e0f2_4239_b976_a01abab52930); +::windows_core::imp::interface_hierarchy!(IEnhancedStorageACT, ::windows_core::IUnknown); impl IEnhancedStorageACT { pub unsafe fn Authorize(&self, hwndparent: u32, dwflags: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Authorize)(::windows_core::Interface::as_raw(self), hwndparent, dwflags).ok() @@ -24,13 +23,6 @@ impl IEnhancedStorageACT { (::windows_core::Interface::vtable(self).GetSilos)(::windows_core::Interface::as_raw(self), pppienhancedstoragesilos, pcenhancedstoragesilos).ok() } } -::windows_core::imp::interface_hierarchy!(IEnhancedStorageACT, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnhancedStorageACT { - type Vtable = IEnhancedStorageACT_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnhancedStorageACT { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6e7781f4_e0f2_4239_b976_a01abab52930); -} #[repr(C)] #[doc(hidden)] pub struct IEnhancedStorageACT_Vtbl { @@ -42,9 +34,8 @@ pub struct IEnhancedStorageACT_Vtbl { pub GetUniqueIdentity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppwszidentity: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, pub GetSilos: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pppienhancedstoragesilos: *mut *mut ::core::option::Option, pcenhancedstoragesilos: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnhancedStorageACT2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnhancedStorageACT2, IEnhancedStorageACT2_Vtbl, 0x4da57d2e_8eb3_41f6_a07e_98b52b88242b); +::windows_core::imp::interface_hierarchy!(IEnhancedStorageACT2, ::windows_core::IUnknown, IEnhancedStorageACT); impl IEnhancedStorageACT2 { pub unsafe fn Authorize(&self, hwndparent: u32, dwflags: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.Authorize)(::windows_core::Interface::as_raw(self), hwndparent, dwflags).ok() @@ -76,13 +67,6 @@ impl IEnhancedStorageACT2 { (::windows_core::Interface::vtable(self).IsDeviceRemovable)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnhancedStorageACT2, ::windows_core::IUnknown, IEnhancedStorageACT); -unsafe impl ::windows_core::Interface for IEnhancedStorageACT2 { - type Vtable = IEnhancedStorageACT2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnhancedStorageACT2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4da57d2e_8eb3_41f6_a07e_98b52b88242b); -} #[repr(C)] #[doc(hidden)] pub struct IEnhancedStorageACT2_Vtbl { @@ -90,9 +74,8 @@ pub struct IEnhancedStorageACT2_Vtbl { pub GetDeviceName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppwszdevicename: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, pub IsDeviceRemovable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pisdeviceremovable: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnhancedStorageACT3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnhancedStorageACT3, IEnhancedStorageACT3_Vtbl, 0x022150a1_113d_11df_bb61_001aa01bbc58); +::windows_core::imp::interface_hierarchy!(IEnhancedStorageACT3, ::windows_core::IUnknown, IEnhancedStorageACT, IEnhancedStorageACT2); impl IEnhancedStorageACT3 { pub unsafe fn Authorize(&self, hwndparent: u32, dwflags: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.Authorize)(::windows_core::Interface::as_raw(self), hwndparent, dwflags).ok() @@ -135,13 +118,6 @@ impl IEnhancedStorageACT3 { (::windows_core::Interface::vtable(self).GetShellExtSupport)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnhancedStorageACT3, ::windows_core::IUnknown, IEnhancedStorageACT, IEnhancedStorageACT2); -unsafe impl ::windows_core::Interface for IEnhancedStorageACT3 { - type Vtable = IEnhancedStorageACT3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnhancedStorageACT3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x022150a1_113d_11df_bb61_001aa01bbc58); -} #[repr(C)] #[doc(hidden)] pub struct IEnhancedStorageACT3_Vtbl { @@ -150,9 +126,8 @@ pub struct IEnhancedStorageACT3_Vtbl { pub IsQueueFrozen: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pisqueuefrozen: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub GetShellExtSupport: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pshellextsupport: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnhancedStorageSilo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnhancedStorageSilo, IEnhancedStorageSilo_Vtbl, 0x5aef78c6_2242_4703_bf49_44b29357a359); +::windows_core::imp::interface_hierarchy!(IEnhancedStorageSilo, ::windows_core::IUnknown); impl IEnhancedStorageSilo { pub unsafe fn GetInfo(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -175,13 +150,6 @@ impl IEnhancedStorageSilo { (::windows_core::Interface::vtable(self).GetDevicePath)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnhancedStorageSilo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnhancedStorageSilo { - type Vtable = IEnhancedStorageSilo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnhancedStorageSilo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5aef78c6_2242_4703_bf49_44b29357a359); -} #[repr(C)] #[doc(hidden)] pub struct IEnhancedStorageSilo_Vtbl { @@ -195,9 +163,8 @@ pub struct IEnhancedStorageSilo_Vtbl { GetPortableDevice: usize, pub GetDevicePath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppwszsilodevicepath: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnhancedStorageSiloAction(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnhancedStorageSiloAction, IEnhancedStorageSiloAction_Vtbl, 0xb6f7f311_206f_4ff8_9c4b_27efee77a86f); +::windows_core::imp::interface_hierarchy!(IEnhancedStorageSiloAction, ::windows_core::IUnknown); impl IEnhancedStorageSiloAction { pub unsafe fn GetName(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); @@ -211,13 +178,6 @@ impl IEnhancedStorageSiloAction { (::windows_core::Interface::vtable(self).Invoke)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IEnhancedStorageSiloAction, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnhancedStorageSiloAction { - type Vtable = IEnhancedStorageSiloAction_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnhancedStorageSiloAction { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb6f7f311_206f_4ff8_9c4b_27efee77a86f); -} #[repr(C)] #[doc(hidden)] pub struct IEnhancedStorageSiloAction_Vtbl { @@ -226,9 +186,8 @@ pub struct IEnhancedStorageSiloAction_Vtbl { pub GetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppwszactiondescription: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, pub Invoke: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumEnhancedStorageACT(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumEnhancedStorageACT, IEnumEnhancedStorageACT_Vtbl, 0x09b224bd_1335_4631_a7ff_cfd3a92646d7); +::windows_core::imp::interface_hierarchy!(IEnumEnhancedStorageACT, ::windows_core::IUnknown); impl IEnumEnhancedStorageACT { pub unsafe fn GetACTs(&self, pppienhancedstorageacts: *mut *mut ::core::option::Option, pcenhancedstorageacts: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetACTs)(::windows_core::Interface::as_raw(self), pppienhancedstorageacts, pcenhancedstorageacts).ok() @@ -241,13 +200,6 @@ impl IEnumEnhancedStorageACT { (::windows_core::Interface::vtable(self).GetMatchingACT)(::windows_core::Interface::as_raw(self), szvolume.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumEnhancedStorageACT, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumEnhancedStorageACT { - type Vtable = IEnumEnhancedStorageACT_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumEnhancedStorageACT { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x09b224bd_1335_4631_a7ff_cfd3a92646d7); -} #[repr(C)] #[doc(hidden)] pub struct IEnumEnhancedStorageACT_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Storage/FileHistory/impl.rs b/crates/libs/windows/src/Windows/Win32/Storage/FileHistory/impl.rs index 086b93d2cc..97d2e7f8e1 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/FileHistory/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/FileHistory/impl.rs @@ -136,7 +136,7 @@ impl IFhConfigMgr_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IFhReassociation_Impl: Sized { @@ -190,7 +190,7 @@ impl IFhReassociation_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IFhScopeIterator_Impl: Sized { @@ -223,7 +223,7 @@ impl IFhScopeIterator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IFhTarget_Impl: Sized { @@ -262,6 +262,6 @@ impl IFhTarget_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 67c6eb802f..cd9a799901 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/FileHistory/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/FileHistory/mod.rs @@ -71,9 +71,8 @@ where ::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() } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFhConfigMgr(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFhConfigMgr, IFhConfigMgr_Vtbl, 0x6a5fea5b_bf8f_4ee5_b8c3_44d8a0d7331c); +::windows_core::imp::interface_hierarchy!(IFhConfigMgr, ::windows_core::IUnknown); impl IFhConfigMgr { pub unsafe fn LoadConfiguration(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).LoadConfiguration)(::windows_core::Interface::as_raw(self)).ok() @@ -143,13 +142,6 @@ impl IFhConfigMgr { (::windows_core::Interface::vtable(self).QueryProtectionStatus)(::windows_core::Interface::as_raw(self), protectionstate, ::core::mem::transmute(protecteduntiltime)).ok() } } -::windows_core::imp::interface_hierarchy!(IFhConfigMgr, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFhConfigMgr { - type Vtable = IFhConfigMgr_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFhConfigMgr { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6a5fea5b_bf8f_4ee5_b8c3_44d8a0d7331c); -} #[repr(C)] #[doc(hidden)] pub struct IFhConfigMgr_Vtbl { @@ -169,9 +161,8 @@ pub struct IFhConfigMgr_Vtbl { pub ChangeDefaultTargetRecommendation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, recommend: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub QueryProtectionStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, protectionstate: *mut u32, protecteduntiltime: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFhReassociation(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFhReassociation, IFhReassociation_Vtbl, 0x6544a28a_f68d_47ac_91ef_16b2b36aa3ee); +::windows_core::imp::interface_hierarchy!(IFhReassociation, ::windows_core::IUnknown); impl IFhReassociation { pub unsafe fn ValidateTarget(&self, targeturl: P0) -> ::windows_core::Result where @@ -199,13 +190,6 @@ impl IFhReassociation { (::windows_core::Interface::vtable(self).PerformReassociation)(::windows_core::Interface::as_raw(self), overwriteifexists.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IFhReassociation, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFhReassociation { - type Vtable = IFhReassociation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFhReassociation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6544a28a_f68d_47ac_91ef_16b2b36aa3ee); -} #[repr(C)] #[doc(hidden)] pub struct IFhReassociation_Vtbl { @@ -216,9 +200,8 @@ pub struct IFhReassociation_Vtbl { pub SelectConfiguration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32) -> ::windows_core::HRESULT, pub PerformReassociation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, overwriteifexists: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFhScopeIterator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFhScopeIterator, IFhScopeIterator_Vtbl, 0x3197abce_532a_44c6_8615_f3666566a720); +::windows_core::imp::interface_hierarchy!(IFhScopeIterator, ::windows_core::IUnknown); impl IFhScopeIterator { pub unsafe fn MoveToNextItem(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).MoveToNextItem)(::windows_core::Interface::as_raw(self)).ok() @@ -228,13 +211,6 @@ impl IFhScopeIterator { (::windows_core::Interface::vtable(self).GetItem)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IFhScopeIterator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFhScopeIterator { - type Vtable = IFhScopeIterator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFhScopeIterator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3197abce_532a_44c6_8615_f3666566a720); -} #[repr(C)] #[doc(hidden)] pub struct IFhScopeIterator_Vtbl { @@ -242,9 +218,8 @@ pub struct IFhScopeIterator_Vtbl { pub MoveToNextItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, item: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFhTarget(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFhTarget, IFhTarget_Vtbl, 0xd87965fd_2bad_4657_bd3b_9567eb300ced); +::windows_core::imp::interface_hierarchy!(IFhTarget, ::windows_core::IUnknown); impl IFhTarget { pub unsafe fn GetStringProperty(&self, propertytype: FH_TARGET_PROPERTY_TYPE) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -255,13 +230,6 @@ impl IFhTarget { (::windows_core::Interface::vtable(self).GetNumericalProperty)(::windows_core::Interface::as_raw(self), propertytype, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IFhTarget, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFhTarget { - type Vtable = IFhTarget_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFhTarget { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd87965fd_2bad_4657_bd3b_9567eb300ced); -} #[repr(C)] #[doc(hidden)] pub struct IFhTarget_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Storage/FileServerResourceManager/impl.rs b/crates/libs/windows/src/Windows/Win32/Storage/FileServerResourceManager/impl.rs index 48d28ce1c6..69d66a55bc 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/FileServerResourceManager/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/FileServerResourceManager/impl.rs @@ -9,7 +9,7 @@ impl DIFsrmClassificationEvents_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -36,7 +36,7 @@ impl IFsrmAccessDeniedRemediationClient_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::(), Show: Show:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -106,7 +106,7 @@ impl IFsrmAction_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -263,7 +263,7 @@ impl IFsrmActionCommand_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -420,7 +420,7 @@ impl IFsrmActionEmail_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -457,7 +457,7 @@ impl IFsrmActionEmail2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -514,7 +514,7 @@ impl IFsrmActionEventLog_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -571,7 +571,7 @@ impl IFsrmActionReport_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -621,7 +621,7 @@ impl IFsrmAutoApplyQuota_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -941,7 +941,7 @@ impl IFsrmClassificationManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -962,7 +962,7 @@ impl IFsrmClassificationManager2_Vtbl { Self { base__: IFsrmClassificationManager_Vtbl::new::(), ClassifyFiles: ClassifyFiles:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1039,7 +1039,7 @@ impl IFsrmClassificationRule_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1116,7 +1116,7 @@ impl IFsrmClassifierModuleDefinition_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1181,7 +1181,7 @@ impl IFsrmClassifierModuleImplementation_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1283,7 +1283,7 @@ impl IFsrmCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1310,7 +1310,7 @@ impl IFsrmCommittableCollection_Vtbl { Self { base__: IFsrmMutableCollection_Vtbl::new::(), Commit: Commit:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1353,7 +1353,7 @@ impl IFsrmDerivedObjectsResult_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1430,7 +1430,7 @@ impl IFsrmExportImport_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1467,7 +1467,7 @@ impl IFsrmFileCondition_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1584,7 +1584,7 @@ impl IFsrmFileConditionProperty_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1661,7 +1661,7 @@ impl IFsrmFileGroup_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1698,7 +1698,7 @@ impl IFsrmFileGroupImported_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1780,7 +1780,7 @@ impl IFsrmFileGroupManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2308,7 +2308,7 @@ impl IFsrmFileManagementJob_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2390,7 +2390,7 @@ impl IFsrmFileManagementJobManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2479,7 +2479,7 @@ impl IFsrmFileScreen_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2562,7 +2562,7 @@ impl IFsrmFileScreenBase_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2612,7 +2612,7 @@ impl IFsrmFileScreenException_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2746,7 +2746,7 @@ impl IFsrmFileScreenManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2803,7 +2803,7 @@ impl IFsrmFileScreenTemplate_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2840,7 +2840,7 @@ impl IFsrmFileScreenTemplateImported_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2922,7 +2922,7 @@ impl IFsrmFileScreenTemplateManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2973,7 +2973,7 @@ impl IFsrmMutableCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3037,7 +3037,7 @@ impl IFsrmObject_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3067,7 +3067,7 @@ impl IFsrmPathMapper_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3143,7 +3143,7 @@ impl IFsrmPipelineModuleConnector_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3353,7 +3353,7 @@ impl IFsrmPipelineModuleDefinition_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3390,7 +3390,7 @@ impl IFsrmPipelineModuleImplementation_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3459,7 +3459,7 @@ impl IFsrmProperty_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3737,7 +3737,7 @@ impl IFsrmPropertyBag_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3780,7 +3780,7 @@ impl IFsrmPropertyBag2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3864,7 +3864,7 @@ impl IFsrmPropertyCondition_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3981,7 +3981,7 @@ impl IFsrmPropertyDefinition_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4057,7 +4057,7 @@ impl IFsrmPropertyDefinition2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4126,7 +4126,7 @@ impl IFsrmPropertyDefinitionValue_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4196,7 +4196,7 @@ impl IFsrmQuota_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4313,7 +4313,7 @@ impl IFsrmQuotaBase_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4480,7 +4480,7 @@ impl IFsrmQuotaManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4507,7 +4507,7 @@ impl IFsrmQuotaManagerEx_Vtbl { Self { base__: IFsrmQuotaManager_Vtbl::new::(), IsAffectedByQuota: IsAffectedByQuota:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4596,7 +4596,7 @@ impl IFsrmQuotaObject_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4653,7 +4653,7 @@ impl IFsrmQuotaTemplate_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4690,7 +4690,7 @@ impl IFsrmQuotaTemplateImported_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4772,7 +4772,7 @@ impl IFsrmQuotaTemplateManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4882,7 +4882,7 @@ impl IFsrmReport_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5084,7 +5084,7 @@ impl IFsrmReportJob_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5213,7 +5213,7 @@ impl IFsrmReportManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5258,7 +5258,7 @@ impl IFsrmReportScheduler_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5401,7 +5401,7 @@ impl IFsrmRule_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5545,7 +5545,7 @@ impl IFsrmSetting_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5622,7 +5622,7 @@ impl IFsrmStorageModuleDefinition_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5660,6 +5660,6 @@ impl IFsrmStorageModuleImplementation_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } 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 658c317dfc..cb5fabb865 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/FileServerResourceManager/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/FileServerResourceManager/mod.rs @@ -1,31 +1,29 @@ -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct DIFsrmClassificationEvents(::windows_core::IUnknown); -#[cfg(feature = "Win32_System_Com")] -impl DIFsrmClassificationEvents {} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + DIFsrmClassificationEvents, + DIFsrmClassificationEvents_Vtbl, + 0x26942db0_dabf_41d8_bbdd_b129a9f70424 +); #[cfg(feature = "Win32_System_Com")] ::windows_core::imp::interface_hierarchy!(DIFsrmClassificationEvents, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for DIFsrmClassificationEvents { - type Vtable = DIFsrmClassificationEvents_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for DIFsrmClassificationEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x26942db0_dabf_41d8_bbdd_b129a9f70424); -} +impl DIFsrmClassificationEvents {} #[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct DIFsrmClassificationEvents_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFsrmAccessDeniedRemediationClient(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFsrmAccessDeniedRemediationClient, + IFsrmAccessDeniedRemediationClient_Vtbl, + 0x40002314_590b_45a5_8e1b_8c05da527e52 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFsrmAccessDeniedRemediationClient, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFsrmAccessDeniedRemediationClient { pub unsafe fn Show(&self, parentwnd: usize, accesspath: P0, errortype: AdrClientErrorType, flags: i32, windowtitle: P1, windowmessage: P2) -> ::windows_core::Result @@ -39,27 +37,21 @@ impl IFsrmAccessDeniedRemediationClient { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFsrmAccessDeniedRemediationClient, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFsrmAccessDeniedRemediationClient { - type Vtable = IFsrmAccessDeniedRemediationClient_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFsrmAccessDeniedRemediationClient { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x40002314_590b_45a5_8e1b_8c05da527e52); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFsrmAccessDeniedRemediationClient_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, pub Show: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, parentwnd: usize, accesspath: ::std::mem::MaybeUninit<::windows_core::BSTR>, errortype: AdrClientErrorType, flags: i32, windowtitle: ::std::mem::MaybeUninit<::windows_core::BSTR>, windowmessage: ::std::mem::MaybeUninit<::windows_core::BSTR>, result: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFsrmAction(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFsrmAction, + IFsrmAction_Vtbl, + 0x6cd6408a_ae60_463b_9ef1_e117534d69dc +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFsrmAction, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFsrmAction { pub unsafe fn Id(&self) -> ::windows_core::Result<::windows_core::GUID> { @@ -82,16 +74,6 @@ impl IFsrmAction { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFsrmAction, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFsrmAction { - type Vtable = IFsrmAction_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFsrmAction { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6cd6408a_ae60_463b_9ef1_e117534d69dc); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFsrmAction_Vtbl { @@ -102,11 +84,15 @@ pub struct IFsrmAction_Vtbl { pub SetRunLimitInterval: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, minutes: i32) -> ::windows_core::HRESULT, pub Delete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFsrmActionCommand(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFsrmActionCommand, + IFsrmActionCommand_Vtbl, + 0x12937789_e247_4917_9c20_f3ee9c7ee783 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFsrmActionCommand, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsrmAction); #[cfg(feature = "Win32_System_Com")] impl IFsrmActionCommand { pub unsafe fn Id(&self) -> ::windows_core::Result<::windows_core::GUID> { @@ -193,16 +179,6 @@ impl IFsrmActionCommand { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFsrmActionCommand, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsrmAction); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFsrmActionCommand { - type Vtable = IFsrmActionCommand_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFsrmActionCommand { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x12937789_e247_4917_9c20_f3ee9c7ee783); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFsrmActionCommand_Vtbl { @@ -222,11 +198,15 @@ pub struct IFsrmActionCommand_Vtbl { pub LogResult: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, logresults: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub SetLogResult: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, logresults: super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFsrmActionEmail(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFsrmActionEmail, + IFsrmActionEmail_Vtbl, + 0xd646567d_26ae_4caa_9f84_4e0aad207fca +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFsrmActionEmail, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsrmAction); #[cfg(feature = "Win32_System_Com")] impl IFsrmActionEmail { pub unsafe fn Id(&self) -> ::windows_core::Result<::windows_core::GUID> { @@ -319,16 +299,6 @@ impl IFsrmActionEmail { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFsrmActionEmail, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsrmAction); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFsrmActionEmail { - type Vtable = IFsrmActionEmail_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFsrmActionEmail { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd646567d_26ae_4caa_9f84_4e0aad207fca); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFsrmActionEmail_Vtbl { @@ -348,11 +318,15 @@ pub struct IFsrmActionEmail_Vtbl { pub MessageText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, messagetext: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SetMessageText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, messagetext: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFsrmActionEmail2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFsrmActionEmail2, + IFsrmActionEmail2_Vtbl, + 0x8276702f_2532_4839_89bf_4872609a2ea4 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFsrmActionEmail2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsrmAction, IFsrmActionEmail); #[cfg(feature = "Win32_System_Com")] impl IFsrmActionEmail2 { pub unsafe fn Id(&self) -> ::windows_core::Result<::windows_core::GUID> { @@ -452,16 +426,6 @@ impl IFsrmActionEmail2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFsrmActionEmail2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsrmAction, IFsrmActionEmail); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFsrmActionEmail2 { - type Vtable = IFsrmActionEmail2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFsrmActionEmail2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8276702f_2532_4839_89bf_4872609a2ea4); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFsrmActionEmail2_Vtbl { @@ -469,11 +433,15 @@ pub struct IFsrmActionEmail2_Vtbl { pub AttachmentFileListSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, attachmentfilelistsize: *mut i32) -> ::windows_core::HRESULT, pub SetAttachmentFileListSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, attachmentfilelistsize: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFsrmActionEventLog(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFsrmActionEventLog, + IFsrmActionEventLog_Vtbl, + 0x4c8f96c3_5d94_4f37_a4f4_f56ab463546f +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFsrmActionEventLog, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsrmAction); #[cfg(feature = "Win32_System_Com")] impl IFsrmActionEventLog { pub unsafe fn Id(&self) -> ::windows_core::Result<::windows_core::GUID> { @@ -513,16 +481,6 @@ impl IFsrmActionEventLog { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFsrmActionEventLog, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsrmAction); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFsrmActionEventLog { - type Vtable = IFsrmActionEventLog_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFsrmActionEventLog { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4c8f96c3_5d94_4f37_a4f4_f56ab463546f); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFsrmActionEventLog_Vtbl { @@ -532,11 +490,15 @@ pub struct IFsrmActionEventLog_Vtbl { pub MessageText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, messagetext: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SetMessageText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, messagetext: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFsrmActionReport(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFsrmActionReport, + IFsrmActionReport_Vtbl, + 0x2dbe63c4_b340_48a0_a5b0_158e07fc567e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFsrmActionReport, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsrmAction); #[cfg(feature = "Win32_System_Com")] impl IFsrmActionReport { pub unsafe fn Id(&self) -> ::windows_core::Result<::windows_core::GUID> { @@ -580,16 +542,6 @@ impl IFsrmActionReport { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFsrmActionReport, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsrmAction); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFsrmActionReport { - type Vtable = IFsrmActionReport_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFsrmActionReport { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2dbe63c4_b340_48a0_a5b0_158e07fc567e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFsrmActionReport_Vtbl { @@ -605,11 +557,15 @@ pub struct IFsrmActionReport_Vtbl { pub MailTo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mailto: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SetMailTo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mailto: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFsrmAutoApplyQuota(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFsrmAutoApplyQuota, + IFsrmAutoApplyQuota_Vtbl, + 0xf82e5729_6aba_4740_bfc7_c7f58f75fb7b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFsrmAutoApplyQuota, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsrmObject, IFsrmQuotaBase, IFsrmQuotaObject); #[cfg(feature = "Win32_System_Com")] impl IFsrmAutoApplyQuota { pub unsafe fn Id(&self) -> ::windows_core::Result<::windows_core::GUID> { @@ -722,16 +678,6 @@ impl IFsrmAutoApplyQuota { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFsrmAutoApplyQuota, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsrmObject, IFsrmQuotaBase, IFsrmQuotaObject); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFsrmAutoApplyQuota { - type Vtable = IFsrmAutoApplyQuota_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFsrmAutoApplyQuota { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf82e5729_6aba_4740_bfc7_c7f58f75fb7b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFsrmAutoApplyQuota_Vtbl { @@ -749,11 +695,15 @@ pub struct IFsrmAutoApplyQuota_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] CommitAndUpdateDerived: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFsrmClassificationManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFsrmClassificationManager, + IFsrmClassificationManager_Vtbl, + 0xd2dc89da_ee91_48a0_85d8_cc72a56f7d04 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFsrmClassificationManager, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFsrmClassificationManager { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -918,16 +868,6 @@ impl IFsrmClassificationManager { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFsrmClassificationManager, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFsrmClassificationManager { - type Vtable = IFsrmClassificationManager_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFsrmClassificationManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd2dc89da_ee91_48a0_85d8_cc72a56f7d04); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFsrmClassificationManager_Vtbl { @@ -999,11 +939,15 @@ pub struct IFsrmClassificationManager_Vtbl { pub SetFileProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filepath: ::std::mem::MaybeUninit<::windows_core::BSTR>, propertyname: ::std::mem::MaybeUninit<::windows_core::BSTR>, propertyvalue: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub ClearFileProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filepath: ::std::mem::MaybeUninit<::windows_core::BSTR>, property: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFsrmClassificationManager2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFsrmClassificationManager2, + IFsrmClassificationManager2_Vtbl, + 0x0004c1c9_127e_4765_ba07_6a3147bca112 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFsrmClassificationManager2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsrmClassificationManager); #[cfg(feature = "Win32_System_Com")] impl IFsrmClassificationManager2 { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1173,16 +1117,6 @@ impl IFsrmClassificationManager2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFsrmClassificationManager2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsrmClassificationManager); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFsrmClassificationManager2 { - type Vtable = IFsrmClassificationManager2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFsrmClassificationManager2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0004c1c9_127e_4765_ba07_6a3147bca112); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFsrmClassificationManager2_Vtbl { @@ -1192,11 +1126,15 @@ pub struct IFsrmClassificationManager2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] ClassifyFiles: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFsrmClassificationRule(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFsrmClassificationRule, + IFsrmClassificationRule_Vtbl, + 0xafc052c2_5315_45ab_841b_c6db0e120148 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFsrmClassificationRule, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsrmObject, IFsrmRule); #[cfg(feature = "Win32_System_Com")] impl IFsrmClassificationRule { pub unsafe fn Id(&self) -> ::windows_core::Result<::windows_core::GUID> { @@ -1307,16 +1245,6 @@ impl IFsrmClassificationRule { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFsrmClassificationRule, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsrmObject, IFsrmRule); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFsrmClassificationRule { - type Vtable = IFsrmClassificationRule_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFsrmClassificationRule { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xafc052c2_5315_45ab_841b_c6db0e120148); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFsrmClassificationRule_Vtbl { @@ -1328,11 +1256,15 @@ pub struct IFsrmClassificationRule_Vtbl { pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFsrmClassifierModuleDefinition(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFsrmClassifierModuleDefinition, + IFsrmClassifierModuleDefinition_Vtbl, + 0xbb36ea26_6318_4b8c_8592_f72dd602e7a5 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFsrmClassifierModuleDefinition, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsrmObject, IFsrmPipelineModuleDefinition); #[cfg(feature = "Win32_System_Com")] impl IFsrmClassifierModuleDefinition { pub unsafe fn Id(&self) -> ::windows_core::Result<::windows_core::GUID> { @@ -1482,16 +1414,6 @@ impl IFsrmClassifierModuleDefinition { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFsrmClassifierModuleDefinition, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsrmObject, IFsrmPipelineModuleDefinition); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFsrmClassifierModuleDefinition { - type Vtable = IFsrmClassifierModuleDefinition_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFsrmClassifierModuleDefinition { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbb36ea26_6318_4b8c_8592_f72dd602e7a5); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFsrmClassifierModuleDefinition_Vtbl { @@ -1515,11 +1437,15 @@ pub struct IFsrmClassifierModuleDefinition_Vtbl { pub NeedsExplicitValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, needsexplicitvalue: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub SetNeedsExplicitValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, needsexplicitvalue: super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFsrmClassifierModuleImplementation(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFsrmClassifierModuleImplementation, + IFsrmClassifierModuleImplementation_Vtbl, + 0x4c968fc6_6edb_4051_9c18_73b7291ae106 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFsrmClassifierModuleImplementation, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsrmPipelineModuleImplementation); #[cfg(feature = "Win32_System_Com")] impl IFsrmClassifierModuleImplementation { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1575,16 +1501,6 @@ impl IFsrmClassifierModuleImplementation { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFsrmClassifierModuleImplementation, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsrmPipelineModuleImplementation); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFsrmClassifierModuleImplementation { - type Vtable = IFsrmClassifierModuleImplementation_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFsrmClassifierModuleImplementation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4c968fc6_6edb_4051_9c18_73b7291ae106); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFsrmClassifierModuleImplementation_Vtbl { @@ -1605,11 +1521,15 @@ pub struct IFsrmClassifierModuleImplementation_Vtbl { pub GetPropertyValueToApply: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, property: ::std::mem::MaybeUninit<::windows_core::BSTR>, value: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>, idrule: ::windows_core::GUID, idpropdef: ::windows_core::GUID) -> ::windows_core::HRESULT, pub OnEndFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFsrmCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFsrmCollection, + IFsrmCollection_Vtbl, + 0xf76fbf3b_8ddd_4b42_b05a_cb1c3ff1fee8 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFsrmCollection, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFsrmCollection { pub unsafe fn _NewEnum(&self) -> ::windows_core::Result<::windows_core::IUnknown> { @@ -1645,16 +1565,6 @@ impl IFsrmCollection { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFsrmCollection, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFsrmCollection { - type Vtable = IFsrmCollection_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFsrmCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf76fbf3b_8ddd_4b42_b05a_cb1c3ff1fee8); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFsrmCollection_Vtbl { @@ -1673,11 +1583,15 @@ pub struct IFsrmCollection_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] GetById: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFsrmCommittableCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFsrmCommittableCollection, + IFsrmCommittableCollection_Vtbl, + 0x96deb3b5_8b91_4a2a_9d93_80a35d8aa847 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFsrmCommittableCollection, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsrmCollection, IFsrmMutableCollection); #[cfg(feature = "Win32_System_Com")] impl IFsrmCommittableCollection { pub unsafe fn _NewEnum(&self) -> ::windows_core::Result<::windows_core::IUnknown> { @@ -1736,16 +1650,6 @@ impl IFsrmCommittableCollection { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFsrmCommittableCollection, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsrmCollection, IFsrmMutableCollection); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFsrmCommittableCollection { - type Vtable = IFsrmCommittableCollection_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFsrmCommittableCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x96deb3b5_8b91_4a2a_9d93_80a35d8aa847); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFsrmCommittableCollection_Vtbl { @@ -1755,11 +1659,15 @@ pub struct IFsrmCommittableCollection_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Commit: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFsrmDerivedObjectsResult(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFsrmDerivedObjectsResult, + IFsrmDerivedObjectsResult_Vtbl, + 0x39322a2d_38ee_4d0d_8095_421a80849a82 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFsrmDerivedObjectsResult, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFsrmDerivedObjectsResult { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1776,16 +1684,6 @@ impl IFsrmDerivedObjectsResult { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFsrmDerivedObjectsResult, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFsrmDerivedObjectsResult { - type Vtable = IFsrmDerivedObjectsResult_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFsrmDerivedObjectsResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x39322a2d_38ee_4d0d_8095_421a80849a82); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFsrmDerivedObjectsResult_Vtbl { @@ -1799,11 +1697,15 @@ pub struct IFsrmDerivedObjectsResult_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Results: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFsrmExportImport(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFsrmExportImport, + IFsrmExportImport_Vtbl, + 0xefcb0ab1_16c4_4a79_812c_725614c3306b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFsrmExportImport, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFsrmExportImport { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1865,16 +1767,6 @@ impl IFsrmExportImport { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFsrmExportImport, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFsrmExportImport { - type Vtable = IFsrmExportImport_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFsrmExportImport { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xefcb0ab1_16c4_4a79_812c_725614c3306b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFsrmExportImport_Vtbl { @@ -1904,11 +1796,15 @@ pub struct IFsrmExportImport_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] ImportQuotaTemplates: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFsrmFileCondition(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFsrmFileCondition, + IFsrmFileCondition_Vtbl, + 0x70684ffc_691a_4a1a_b922_97752e138cc1 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFsrmFileCondition, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFsrmFileCondition { pub unsafe fn Type(&self) -> ::windows_core::Result { @@ -1920,16 +1816,6 @@ impl IFsrmFileCondition { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFsrmFileCondition, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFsrmFileCondition { - type Vtable = IFsrmFileCondition_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFsrmFileCondition { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x70684ffc_691a_4a1a_b922_97752e138cc1); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFsrmFileCondition_Vtbl { @@ -1937,11 +1823,15 @@ pub struct IFsrmFileCondition_Vtbl { pub Type: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut FsrmFileConditionType) -> ::windows_core::HRESULT, pub Delete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFsrmFileConditionProperty(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFsrmFileConditionProperty, + IFsrmFileConditionProperty_Vtbl, + 0x81926775_b981_4479_988f_da171d627360 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFsrmFileConditionProperty, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsrmFileCondition); #[cfg(feature = "Win32_System_Com")] impl IFsrmFileConditionProperty { pub unsafe fn Type(&self) -> ::windows_core::Result { @@ -1995,16 +1885,6 @@ impl IFsrmFileConditionProperty { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFsrmFileConditionProperty, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsrmFileCondition); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFsrmFileConditionProperty { - type Vtable = IFsrmFileConditionProperty_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFsrmFileConditionProperty { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x81926775_b981_4479_988f_da171d627360); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFsrmFileConditionProperty_Vtbl { @@ -2026,11 +1906,15 @@ pub struct IFsrmFileConditionProperty_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] SetValue: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFsrmFileGroup(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFsrmFileGroup, + IFsrmFileGroup_Vtbl, + 0x8dd04909_0e34_4d55_afaa_89e1f1a1bbb9 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFsrmFileGroup, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsrmObject); #[cfg(feature = "Win32_System_Com")] impl IFsrmFileGroup { pub unsafe fn Id(&self) -> ::windows_core::Result<::windows_core::GUID> { @@ -2093,16 +1977,6 @@ impl IFsrmFileGroup { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFsrmFileGroup, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsrmObject); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFsrmFileGroup { - type Vtable = IFsrmFileGroup_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFsrmFileGroup { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8dd04909_0e34_4d55_afaa_89e1f1a1bbb9); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFsrmFileGroup_Vtbl { @@ -2126,11 +2000,15 @@ pub struct IFsrmFileGroup_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] SetNonMembers: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFsrmFileGroupImported(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFsrmFileGroupImported, + IFsrmFileGroupImported_Vtbl, + 0xad55f10b_5f11_4be7_94ef_d9ee2e470ded +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFsrmFileGroupImported, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsrmObject, IFsrmFileGroup); #[cfg(feature = "Win32_System_Com")] impl IFsrmFileGroupImported { pub unsafe fn Id(&self) -> ::windows_core::Result<::windows_core::GUID> { @@ -2203,16 +2081,6 @@ impl IFsrmFileGroupImported { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFsrmFileGroupImported, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsrmObject, IFsrmFileGroup); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFsrmFileGroupImported { - type Vtable = IFsrmFileGroupImported_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFsrmFileGroupImported { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xad55f10b_5f11_4be7_94ef_d9ee2e470ded); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFsrmFileGroupImported_Vtbl { @@ -2220,11 +2088,15 @@ pub struct IFsrmFileGroupImported_Vtbl { pub OverwriteOnCommit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, overwrite: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub SetOverwriteOnCommit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, overwrite: super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFsrmFileGroupManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFsrmFileGroupManager, + IFsrmFileGroupManager_Vtbl, + 0x426677d5_018c_485c_8a51_20b86d00bdc4 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFsrmFileGroupManager, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFsrmFileGroupManager { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2265,16 +2137,6 @@ impl IFsrmFileGroupManager { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFsrmFileGroupManager, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFsrmFileGroupManager { - type Vtable = IFsrmFileGroupManager_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFsrmFileGroupManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x426677d5_018c_485c_8a51_20b86d00bdc4); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFsrmFileGroupManager_Vtbl { @@ -2300,11 +2162,15 @@ pub struct IFsrmFileGroupManager_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] ImportFileGroups: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFsrmFileManagementJob(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFsrmFileManagementJob, + IFsrmFileManagementJob_Vtbl, + 0x0770687e_9f36_4d6f_8778_599d188461c9 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFsrmFileManagementJob, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsrmObject); #[cfg(feature = "Win32_System_Com")] impl IFsrmFileManagementJob { pub unsafe fn Id(&self) -> ::windows_core::Result<::windows_core::GUID> { @@ -2554,16 +2420,6 @@ impl IFsrmFileManagementJob { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFsrmFileManagementJob, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsrmObject); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFsrmFileManagementJob { - type Vtable = IFsrmFileManagementJob_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFsrmFileManagementJob { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0770687e_9f36_4d6f_8778_599d188461c9); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFsrmFileManagementJob_Vtbl { @@ -2657,11 +2513,15 @@ pub struct IFsrmFileManagementJob_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] CreateCustomAction: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFsrmFileManagementJobManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFsrmFileManagementJobManager, + IFsrmFileManagementJobManager_Vtbl, + 0xee321ecb_d95e_48e9_907c_c7685a013235 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFsrmFileManagementJobManager, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFsrmFileManagementJobManager { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2699,16 +2559,6 @@ impl IFsrmFileManagementJobManager { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFsrmFileManagementJobManager, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFsrmFileManagementJobManager { - type Vtable = IFsrmFileManagementJobManager_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFsrmFileManagementJobManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xee321ecb_d95e_48e9_907c_c7685a013235); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFsrmFileManagementJobManager_Vtbl { @@ -2734,11 +2584,15 @@ pub struct IFsrmFileManagementJobManager_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetFileManagementJob: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFsrmFileScreen(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFsrmFileScreen, + IFsrmFileScreen_Vtbl, + 0x5f6325d3_ce88_4733_84c1_2d6aefc5ea07 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFsrmFileScreen, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsrmObject, IFsrmFileScreenBase); #[cfg(feature = "Win32_System_Com")] impl IFsrmFileScreen { pub unsafe fn Id(&self) -> ::windows_core::Result<::windows_core::GUID> { @@ -2822,16 +2676,6 @@ impl IFsrmFileScreen { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFsrmFileScreen, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsrmObject, IFsrmFileScreenBase); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFsrmFileScreen { - type Vtable = IFsrmFileScreen_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFsrmFileScreen { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5f6325d3_ce88_4733_84c1_2d6aefc5ea07); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFsrmFileScreen_Vtbl { @@ -2843,11 +2687,15 @@ pub struct IFsrmFileScreen_Vtbl { pub UserAccount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, useraccount: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub ApplyTemplate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filescreentemplatename: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFsrmFileScreenBase(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFsrmFileScreenBase, + IFsrmFileScreenBase_Vtbl, + 0xf3637e80_5b22_4a2b_a637_bbb642b41cfc +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFsrmFileScreenBase, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsrmObject); #[cfg(feature = "Win32_System_Com")] impl IFsrmFileScreenBase { pub unsafe fn Id(&self) -> ::windows_core::Result<::windows_core::GUID> { @@ -2905,16 +2753,6 @@ impl IFsrmFileScreenBase { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFsrmFileScreenBase, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsrmObject); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFsrmFileScreenBase { - type Vtable = IFsrmFileScreenBase_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFsrmFileScreenBase { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf3637e80_5b22_4a2b_a637_bbb642b41cfc); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFsrmFileScreenBase_Vtbl { @@ -2938,11 +2776,15 @@ pub struct IFsrmFileScreenBase_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] EnumActions: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFsrmFileScreenException(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFsrmFileScreenException, + IFsrmFileScreenException_Vtbl, + 0xbee7ce02_df77_4515_9389_78f01c5afc1a +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFsrmFileScreenException, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsrmObject); #[cfg(feature = "Win32_System_Com")] impl IFsrmFileScreenException { pub unsafe fn Id(&self) -> ::windows_core::Result<::windows_core::GUID> { @@ -2985,16 +2827,6 @@ impl IFsrmFileScreenException { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFsrmFileScreenException, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsrmObject); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFsrmFileScreenException { - type Vtable = IFsrmFileScreenException_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFsrmFileScreenException { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbee7ce02_df77_4515_9389_78f01c5afc1a); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFsrmFileScreenException_Vtbl { @@ -3009,11 +2841,15 @@ pub struct IFsrmFileScreenException_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] SetAllowedFileGroups: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFsrmFileScreenManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFsrmFileScreenManager, + IFsrmFileScreenManager_Vtbl, + 0xff4fa04e_5a94_4bda_a3a0_d5b4d3c52eba +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFsrmFileScreenManager, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFsrmFileScreenManager { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3090,16 +2926,6 @@ impl IFsrmFileScreenManager { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFsrmFileScreenManager, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFsrmFileScreenManager { - type Vtable = IFsrmFileScreenManager_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFsrmFileScreenManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xff4fa04e_5a94_4bda_a3a0_d5b4d3c52eba); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFsrmFileScreenManager_Vtbl { @@ -3141,11 +2967,15 @@ pub struct IFsrmFileScreenManager_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] CreateFileScreenCollection: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFsrmFileScreenTemplate(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFsrmFileScreenTemplate, + IFsrmFileScreenTemplate_Vtbl, + 0x205bebf8_dd93_452a_95a6_32b566b35828 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFsrmFileScreenTemplate, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsrmObject, IFsrmFileScreenBase); #[cfg(feature = "Win32_System_Com")] impl IFsrmFileScreenTemplate { pub unsafe fn Id(&self) -> ::windows_core::Result<::windows_core::GUID> { @@ -3225,16 +3055,6 @@ impl IFsrmFileScreenTemplate { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFsrmFileScreenTemplate, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsrmObject, IFsrmFileScreenBase); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFsrmFileScreenTemplate { - type Vtable = IFsrmFileScreenTemplate_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFsrmFileScreenTemplate { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x205bebf8_dd93_452a_95a6_32b566b35828); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFsrmFileScreenTemplate_Vtbl { @@ -3247,11 +3067,15 @@ pub struct IFsrmFileScreenTemplate_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] CommitAndUpdateDerived: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFsrmFileScreenTemplateImported(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFsrmFileScreenTemplateImported, + IFsrmFileScreenTemplateImported_Vtbl, + 0xe1010359_3e5d_4ecd_9fe4_ef48622fdf30 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFsrmFileScreenTemplateImported, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsrmObject, IFsrmFileScreenBase, IFsrmFileScreenTemplate); #[cfg(feature = "Win32_System_Com")] impl IFsrmFileScreenTemplateImported { pub unsafe fn Id(&self) -> ::windows_core::Result<::windows_core::GUID> { @@ -3341,16 +3165,6 @@ impl IFsrmFileScreenTemplateImported { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFsrmFileScreenTemplateImported, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsrmObject, IFsrmFileScreenBase, IFsrmFileScreenTemplate); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFsrmFileScreenTemplateImported { - type Vtable = IFsrmFileScreenTemplateImported_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFsrmFileScreenTemplateImported { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe1010359_3e5d_4ecd_9fe4_ef48622fdf30); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFsrmFileScreenTemplateImported_Vtbl { @@ -3358,11 +3172,15 @@ pub struct IFsrmFileScreenTemplateImported_Vtbl { pub OverwriteOnCommit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, overwrite: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub SetOverwriteOnCommit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, overwrite: super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFsrmFileScreenTemplateManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFsrmFileScreenTemplateManager, + IFsrmFileScreenTemplateManager_Vtbl, + 0xcfe36cba_1949_4e74_a14f_f1d580ceaf13 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFsrmFileScreenTemplateManager, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFsrmFileScreenTemplateManager { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3403,16 +3221,6 @@ impl IFsrmFileScreenTemplateManager { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFsrmFileScreenTemplateManager, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFsrmFileScreenTemplateManager { - type Vtable = IFsrmFileScreenTemplateManager_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFsrmFileScreenTemplateManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcfe36cba_1949_4e74_a14f_f1d580ceaf13); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFsrmFileScreenTemplateManager_Vtbl { @@ -3438,11 +3246,15 @@ pub struct IFsrmFileScreenTemplateManager_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] ImportTemplates: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFsrmMutableCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFsrmMutableCollection, + IFsrmMutableCollection_Vtbl, + 0x1bb617b8_3886_49dc_af82_a6c90fa35dda +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFsrmMutableCollection, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsrmCollection); #[cfg(feature = "Win32_System_Com")] impl IFsrmMutableCollection { pub unsafe fn _NewEnum(&self) -> ::windows_core::Result<::windows_core::IUnknown> { @@ -3495,16 +3307,6 @@ impl IFsrmMutableCollection { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFsrmMutableCollection, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsrmCollection); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFsrmMutableCollection { - type Vtable = IFsrmMutableCollection_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFsrmMutableCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1bb617b8_3886_49dc_af82_a6c90fa35dda); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFsrmMutableCollection_Vtbl { @@ -3520,11 +3322,15 @@ pub struct IFsrmMutableCollection_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Clone: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFsrmObject(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFsrmObject, + IFsrmObject_Vtbl, + 0x22bcef93_4a3f_4183_89f9_2f8b8a628aee +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFsrmObject, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFsrmObject { pub unsafe fn Id(&self) -> ::windows_core::Result<::windows_core::GUID> { @@ -3549,16 +3355,6 @@ impl IFsrmObject { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFsrmObject, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFsrmObject { - type Vtable = IFsrmObject_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFsrmObject { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x22bcef93_4a3f_4183_89f9_2f8b8a628aee); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFsrmObject_Vtbl { @@ -3569,11 +3365,15 @@ pub struct IFsrmObject_Vtbl { pub Delete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Commit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFsrmPathMapper(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFsrmPathMapper, + IFsrmPathMapper_Vtbl, + 0x6f4dbfff_6920_4821_a6c3_b7e94c1fd60c +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFsrmPathMapper, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFsrmPathMapper { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3587,16 +3387,6 @@ impl IFsrmPathMapper { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFsrmPathMapper, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFsrmPathMapper { - type Vtable = IFsrmPathMapper_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFsrmPathMapper { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6f4dbfff_6920_4821_a6c3_b7e94c1fd60c); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFsrmPathMapper_Vtbl { @@ -3606,11 +3396,15 @@ pub struct IFsrmPathMapper_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetSharePathsForLocalPath: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFsrmPipelineModuleConnector(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFsrmPipelineModuleConnector, + IFsrmPipelineModuleConnector_Vtbl, + 0xc16014f3_9aa1_46b3_b0a7_ab146eb205f2 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFsrmPipelineModuleConnector, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFsrmPipelineModuleConnector { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3642,16 +3436,6 @@ impl IFsrmPipelineModuleConnector { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFsrmPipelineModuleConnector, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFsrmPipelineModuleConnector { - type Vtable = IFsrmPipelineModuleConnector_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFsrmPipelineModuleConnector { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc16014f3_9aa1_46b3_b0a7_ab146eb205f2); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFsrmPipelineModuleConnector_Vtbl { @@ -3668,11 +3452,15 @@ pub struct IFsrmPipelineModuleConnector_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Bind: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFsrmPipelineModuleDefinition(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFsrmPipelineModuleDefinition, + IFsrmPipelineModuleDefinition_Vtbl, + 0x515c1277_2c81_440e_8fcf_367921ed4f59 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFsrmPipelineModuleDefinition, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsrmObject); #[cfg(feature = "Win32_System_Com")] impl IFsrmPipelineModuleDefinition { pub unsafe fn Id(&self) -> ::windows_core::Result<::windows_core::GUID> { @@ -3790,16 +3578,6 @@ impl IFsrmPipelineModuleDefinition { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFsrmPipelineModuleDefinition, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsrmObject); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFsrmPipelineModuleDefinition { - type Vtable = IFsrmPipelineModuleDefinition_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFsrmPipelineModuleDefinition { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x515c1277_2c81_440e_8fcf_367921ed4f59); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFsrmPipelineModuleDefinition_Vtbl { @@ -3836,11 +3614,15 @@ pub struct IFsrmPipelineModuleDefinition_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] SetParameters: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFsrmPipelineModuleImplementation(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFsrmPipelineModuleImplementation, + IFsrmPipelineModuleImplementation_Vtbl, + 0xb7907906_2b02_4cb5_84a9_fdf54613d6cd +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFsrmPipelineModuleImplementation, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFsrmPipelineModuleImplementation { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3857,16 +3639,6 @@ impl IFsrmPipelineModuleImplementation { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFsrmPipelineModuleImplementation, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFsrmPipelineModuleImplementation { - type Vtable = IFsrmPipelineModuleImplementation_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFsrmPipelineModuleImplementation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb7907906_2b02_4cb5_84a9_fdf54613d6cd); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFsrmPipelineModuleImplementation_Vtbl { @@ -3877,11 +3649,15 @@ pub struct IFsrmPipelineModuleImplementation_Vtbl { OnLoad: usize, pub OnUnload: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFsrmProperty(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFsrmProperty, + IFsrmProperty_Vtbl, + 0x4a73fee4_4102_4fcc_9ffb_38614f9ee768 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFsrmProperty, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFsrmProperty { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -3904,16 +3680,6 @@ impl IFsrmProperty { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFsrmProperty, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFsrmProperty { - type Vtable = IFsrmProperty_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFsrmProperty { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4a73fee4_4102_4fcc_9ffb_38614f9ee768); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFsrmProperty_Vtbl { @@ -3926,11 +3692,15 @@ pub struct IFsrmProperty_Vtbl { Sources: usize, pub PropertyFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFsrmPropertyBag(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFsrmPropertyBag, + IFsrmPropertyBag_Vtbl, + 0x774589d1_d300_4f7a_9a24_f7b766800250 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFsrmPropertyBag, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFsrmPropertyBag { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -4049,16 +3819,6 @@ impl IFsrmPropertyBag { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFsrmPropertyBag, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFsrmPropertyBag { - type Vtable = IFsrmPropertyBag_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFsrmPropertyBag { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x774589d1_d300_4f7a_9a24_f7b766800250); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFsrmPropertyBag_Vtbl { @@ -4118,11 +3878,15 @@ pub struct IFsrmPropertyBag_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] GetFileStreamInterface: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFsrmPropertyBag2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFsrmPropertyBag2, + IFsrmPropertyBag2_Vtbl, + 0x0e46bdbd_2402_4fed_9c30_9266e6eb2cc9 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFsrmPropertyBag2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsrmPropertyBag); #[cfg(feature = "Win32_System_Com")] impl IFsrmPropertyBag2 { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -4253,16 +4017,6 @@ impl IFsrmPropertyBag2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFsrmPropertyBag2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsrmPropertyBag); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFsrmPropertyBag2 { - type Vtable = IFsrmPropertyBag2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFsrmPropertyBag2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0e46bdbd_2402_4fed_9c30_9266e6eb2cc9); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFsrmPropertyBag2_Vtbl { @@ -4276,11 +4030,15 @@ pub struct IFsrmPropertyBag2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetUntrustedInFileProperties: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFsrmPropertyCondition(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFsrmPropertyCondition, + IFsrmPropertyCondition_Vtbl, + 0x326af66f_2ac0_4f68_bf8c_4759f054fa29 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFsrmPropertyCondition, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFsrmPropertyCondition { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -4315,16 +4073,6 @@ impl IFsrmPropertyCondition { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFsrmPropertyCondition, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFsrmPropertyCondition { - type Vtable = IFsrmPropertyCondition_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFsrmPropertyCondition { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x326af66f_2ac0_4f68_bf8c_4759f054fa29); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFsrmPropertyCondition_Vtbl { @@ -4337,11 +4085,15 @@ pub struct IFsrmPropertyCondition_Vtbl { pub SetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub Delete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFsrmPropertyDefinition(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFsrmPropertyDefinition, + IFsrmPropertyDefinition_Vtbl, + 0xede0150f_e9a3_419c_877c_01fe5d24c5d3 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFsrmPropertyDefinition, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsrmObject); #[cfg(feature = "Win32_System_Com")] impl IFsrmPropertyDefinition { pub unsafe fn Id(&self) -> ::windows_core::Result<::windows_core::GUID> { @@ -4416,16 +4168,6 @@ impl IFsrmPropertyDefinition { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFsrmPropertyDefinition, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsrmObject); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFsrmPropertyDefinition { - type Vtable = IFsrmPropertyDefinition_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFsrmPropertyDefinition { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xede0150f_e9a3_419c_877c_01fe5d24c5d3); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFsrmPropertyDefinition_Vtbl { @@ -4459,11 +4201,15 @@ pub struct IFsrmPropertyDefinition_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] SetParameters: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFsrmPropertyDefinition2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFsrmPropertyDefinition2, + IFsrmPropertyDefinition2_Vtbl, + 0x47782152_d16c_4229_b4e1_0ddfe308b9f6 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFsrmPropertyDefinition2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsrmObject, IFsrmPropertyDefinition); #[cfg(feature = "Win32_System_Com")] impl IFsrmPropertyDefinition2 { pub unsafe fn Id(&self) -> ::windows_core::Result<::windows_core::GUID> { @@ -4562,16 +4308,6 @@ impl IFsrmPropertyDefinition2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFsrmPropertyDefinition2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsrmObject, IFsrmPropertyDefinition); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFsrmPropertyDefinition2 { - type Vtable = IFsrmPropertyDefinition2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFsrmPropertyDefinition2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x47782152_d16c_4229_b4e1_0ddfe308b9f6); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFsrmPropertyDefinition2_Vtbl { @@ -4585,11 +4321,15 @@ pub struct IFsrmPropertyDefinition2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] ValueDefinitions: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFsrmPropertyDefinitionValue(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFsrmPropertyDefinitionValue, + IFsrmPropertyDefinitionValue_Vtbl, + 0xe946d148_bd67_4178_8e22_1c44925ed710 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFsrmPropertyDefinitionValue, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFsrmPropertyDefinitionValue { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -4610,16 +4350,6 @@ impl IFsrmPropertyDefinitionValue { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFsrmPropertyDefinitionValue, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFsrmPropertyDefinitionValue { - type Vtable = IFsrmPropertyDefinitionValue_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFsrmPropertyDefinitionValue { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe946d148_bd67_4178_8e22_1c44925ed710); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFsrmPropertyDefinitionValue_Vtbl { @@ -4629,11 +4359,15 @@ pub struct IFsrmPropertyDefinitionValue_Vtbl { pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, description: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub UniqueID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uniqueid: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFsrmQuota(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFsrmQuota, + IFsrmQuota_Vtbl, + 0x377f739d_9647_4b8e_97d2_5ffce6d759cd +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFsrmQuota, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsrmObject, IFsrmQuotaBase, IFsrmQuotaObject); #[cfg(feature = "Win32_System_Com")] impl IFsrmQuota { pub unsafe fn Id(&self) -> ::windows_core::Result<::windows_core::GUID> { @@ -4751,16 +4485,6 @@ impl IFsrmQuota { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFsrmQuota, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsrmObject, IFsrmQuotaBase, IFsrmQuotaObject); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFsrmQuota { - type Vtable = IFsrmQuota_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFsrmQuota { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x377f739d_9647_4b8e_97d2_5ffce6d759cd); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFsrmQuota_Vtbl { @@ -4777,11 +4501,15 @@ pub struct IFsrmQuota_Vtbl { pub ResetPeakUsage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RefreshUsageProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFsrmQuotaBase(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFsrmQuotaBase, + IFsrmQuotaBase_Vtbl, + 0x1568a795_3924_4118_b74b_68d8f0fa5daf +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFsrmQuotaBase, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsrmObject); #[cfg(feature = "Win32_System_Com")] impl IFsrmQuotaBase { pub unsafe fn Id(&self) -> ::windows_core::Result<::windows_core::GUID> { @@ -4851,16 +4579,6 @@ impl IFsrmQuotaBase { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFsrmQuotaBase, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsrmObject); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFsrmQuotaBase { - type Vtable = IFsrmQuotaBase_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFsrmQuotaBase { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1568a795_3924_4118_b74b_68d8f0fa5daf); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFsrmQuotaBase_Vtbl { @@ -4891,11 +4609,15 @@ pub struct IFsrmQuotaBase_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] EnumThresholdActions: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFsrmQuotaManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFsrmQuotaManager, + IFsrmQuotaManager_Vtbl, + 0x8bb68c7d_19d8_4ffb_809e_be4fc1734014 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFsrmQuotaManager, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFsrmQuotaManager { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -4997,16 +4719,6 @@ impl IFsrmQuotaManager { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFsrmQuotaManager, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFsrmQuotaManager { - type Vtable = IFsrmQuotaManager_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFsrmQuotaManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8bb68c7d_19d8_4ffb_809e_be4fc1734014); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFsrmQuotaManager_Vtbl { @@ -5057,11 +4769,15 @@ pub struct IFsrmQuotaManager_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] CreateQuotaCollection: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFsrmQuotaManagerEx(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFsrmQuotaManagerEx, + IFsrmQuotaManagerEx_Vtbl, + 0x4846cb01_d430_494f_abb4_b1054999fb09 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFsrmQuotaManagerEx, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsrmQuotaManager); #[cfg(feature = "Win32_System_Com")] impl IFsrmQuotaManagerEx { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -5170,27 +4886,21 @@ impl IFsrmQuotaManagerEx { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFsrmQuotaManagerEx, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsrmQuotaManager); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFsrmQuotaManagerEx { - type Vtable = IFsrmQuotaManagerEx_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFsrmQuotaManagerEx { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4846cb01_d430_494f_abb4_b1054999fb09); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFsrmQuotaManagerEx_Vtbl { pub base__: IFsrmQuotaManager_Vtbl, pub IsAffectedByQuota: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::std::mem::MaybeUninit<::windows_core::BSTR>, options: FsrmEnumOptions, affected: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFsrmQuotaObject(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFsrmQuotaObject, + IFsrmQuotaObject_Vtbl, + 0x42dc3511_61d5_48ae_b6dc_59fc00c0a8d6 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFsrmQuotaObject, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsrmObject, IFsrmQuotaBase); #[cfg(feature = "Win32_System_Com")] impl IFsrmQuotaObject { pub unsafe fn Id(&self) -> ::windows_core::Result<::windows_core::GUID> { @@ -5286,16 +4996,6 @@ impl IFsrmQuotaObject { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFsrmQuotaObject, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsrmObject, IFsrmQuotaBase); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFsrmQuotaObject { - type Vtable = IFsrmQuotaObject_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFsrmQuotaObject { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x42dc3511_61d5_48ae_b6dc_59fc00c0a8d6); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFsrmQuotaObject_Vtbl { @@ -5307,11 +5007,15 @@ pub struct IFsrmQuotaObject_Vtbl { pub MatchesSourceTemplate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, matches: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub ApplyTemplate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, quotatemplatename: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFsrmQuotaTemplate(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFsrmQuotaTemplate, + IFsrmQuotaTemplate_Vtbl, + 0xa2efab31_295e_46bb_b976_e86d58b52e8b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFsrmQuotaTemplate, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsrmObject, IFsrmQuotaBase); #[cfg(feature = "Win32_System_Com")] impl IFsrmQuotaTemplate { pub unsafe fn Id(&self) -> ::windows_core::Result<::windows_core::GUID> { @@ -5403,16 +5107,6 @@ impl IFsrmQuotaTemplate { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFsrmQuotaTemplate, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsrmObject, IFsrmQuotaBase); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFsrmQuotaTemplate { - type Vtable = IFsrmQuotaTemplate_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFsrmQuotaTemplate { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa2efab31_295e_46bb_b976_e86d58b52e8b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFsrmQuotaTemplate_Vtbl { @@ -5425,11 +5119,15 @@ pub struct IFsrmQuotaTemplate_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] CommitAndUpdateDerived: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFsrmQuotaTemplateImported(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFsrmQuotaTemplateImported, + IFsrmQuotaTemplateImported_Vtbl, + 0x9a2bf113_a329_44cc_809a_5c00fce8da40 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFsrmQuotaTemplateImported, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsrmObject, IFsrmQuotaBase, IFsrmQuotaTemplate); #[cfg(feature = "Win32_System_Com")] impl IFsrmQuotaTemplateImported { pub unsafe fn Id(&self) -> ::windows_core::Result<::windows_core::GUID> { @@ -5531,16 +5229,6 @@ impl IFsrmQuotaTemplateImported { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFsrmQuotaTemplateImported, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsrmObject, IFsrmQuotaBase, IFsrmQuotaTemplate); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFsrmQuotaTemplateImported { - type Vtable = IFsrmQuotaTemplateImported_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFsrmQuotaTemplateImported { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9a2bf113_a329_44cc_809a_5c00fce8da40); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFsrmQuotaTemplateImported_Vtbl { @@ -5548,11 +5236,15 @@ pub struct IFsrmQuotaTemplateImported_Vtbl { pub OverwriteOnCommit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, overwrite: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub SetOverwriteOnCommit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, overwrite: super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFsrmQuotaTemplateManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFsrmQuotaTemplateManager, + IFsrmQuotaTemplateManager_Vtbl, + 0x4173ac41_172d_4d52_963c_fdc7e415f717 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFsrmQuotaTemplateManager, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFsrmQuotaTemplateManager { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -5593,16 +5285,6 @@ impl IFsrmQuotaTemplateManager { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFsrmQuotaTemplateManager, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFsrmQuotaTemplateManager { - type Vtable = IFsrmQuotaTemplateManager_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFsrmQuotaTemplateManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4173ac41_172d_4d52_963c_fdc7e415f717); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFsrmQuotaTemplateManager_Vtbl { @@ -5628,11 +5310,15 @@ pub struct IFsrmQuotaTemplateManager_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] ImportTemplates: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFsrmReport(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFsrmReport, + IFsrmReport_Vtbl, + 0xd8cc81d9_46b8_4fa4_bfa5_4aa9dec9b638 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFsrmReport, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFsrmReport { pub unsafe fn Type(&self) -> ::windows_core::Result { @@ -5679,16 +5365,6 @@ impl IFsrmReport { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFsrmReport, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFsrmReport { - type Vtable = IFsrmReport_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFsrmReport { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd8cc81d9_46b8_4fa4_bfa5_4aa9dec9b638); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFsrmReport_Vtbl { @@ -5709,11 +5385,15 @@ pub struct IFsrmReport_Vtbl { SetFilter: usize, pub Delete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFsrmReportJob(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFsrmReportJob, + IFsrmReportJob_Vtbl, + 0x38e87280_715c_4c7d_a280_ea1651a19fef +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFsrmReportJob, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsrmObject); #[cfg(feature = "Win32_System_Com")] impl IFsrmReportJob { pub unsafe fn Id(&self) -> ::windows_core::Result<::windows_core::GUID> { @@ -5818,16 +5498,6 @@ impl IFsrmReportJob { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFsrmReportJob, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsrmObject); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFsrmReportJob { - type Vtable = IFsrmReportJob_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFsrmReportJob { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x38e87280_715c_4c7d_a280_ea1651a19fef); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFsrmReportJob_Vtbl { @@ -5868,11 +5538,15 @@ pub struct IFsrmReportJob_Vtbl { pub WaitForCompletion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, waitseconds: i32, completed: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub Cancel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFsrmReportManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFsrmReportManager, + IFsrmReportManager_Vtbl, + 0x27b899fe_6ffa_4481_a184_d3daade8a02b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFsrmReportManager, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFsrmReportManager { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -5934,16 +5608,6 @@ impl IFsrmReportManager { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFsrmReportManager, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFsrmReportManager { - type Vtable = IFsrmReportManager_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFsrmReportManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x27b899fe_6ffa_4481_a184_d3daade8a02b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFsrmReportManager_Vtbl { @@ -5980,11 +5644,15 @@ pub struct IFsrmReportManager_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] SetReportSizeLimit: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFsrmReportScheduler(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFsrmReportScheduler, + IFsrmReportScheduler_Vtbl, + 0x6879caf9_6617_4484_8719_71c3d8645f94 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFsrmReportScheduler, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFsrmReportScheduler { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6018,16 +5686,6 @@ impl IFsrmReportScheduler { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFsrmReportScheduler, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFsrmReportScheduler { - type Vtable = IFsrmReportScheduler_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFsrmReportScheduler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6879caf9_6617_4484_8719_71c3d8645f94); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFsrmReportScheduler_Vtbl { @@ -6046,11 +5704,15 @@ pub struct IFsrmReportScheduler_Vtbl { ModifyScheduleTask: usize, pub DeleteScheduleTask: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, taskname: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFsrmRule(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFsrmRule, + IFsrmRule_Vtbl, + 0xcb0df960_16f5_4495_9079_3f9360d831df +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFsrmRule, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsrmObject); #[cfg(feature = "Win32_System_Com")] impl IFsrmRule { pub unsafe fn Id(&self) -> ::windows_core::Result<::windows_core::GUID> { @@ -6134,16 +5796,6 @@ impl IFsrmRule { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFsrmRule, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsrmObject); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFsrmRule { - type Vtable = IFsrmRule_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFsrmRule { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcb0df960_16f5_4495_9079_3f9360d831df); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFsrmRule_Vtbl { @@ -6176,11 +5828,15 @@ pub struct IFsrmRule_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] LastModified: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFsrmSetting(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFsrmSetting, + IFsrmSetting_Vtbl, + 0xf411d4fd_14be_4260_8c40_03b7c95e608a +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFsrmSetting, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFsrmSetting { pub unsafe fn SmtpServer(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -6248,16 +5904,6 @@ impl IFsrmSetting { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFsrmSetting, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFsrmSetting { - type Vtable = IFsrmSetting_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFsrmSetting { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf411d4fd_14be_4260_8c40_03b7c95e608a); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFsrmSetting_Vtbl { @@ -6276,11 +5922,15 @@ pub struct IFsrmSetting_Vtbl { pub SetActionRunLimitInterval: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, actiontype: FsrmActionType, delaytimeminutes: i32) -> ::windows_core::HRESULT, pub GetActionRunLimitInterval: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, actiontype: FsrmActionType, delaytimeminutes: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFsrmStorageModuleDefinition(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFsrmStorageModuleDefinition, + IFsrmStorageModuleDefinition_Vtbl, + 0x15a81350_497d_4aba_80e9_d4dbcc5521fe +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFsrmStorageModuleDefinition, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsrmObject, IFsrmPipelineModuleDefinition); #[cfg(feature = "Win32_System_Com")] impl IFsrmStorageModuleDefinition { pub unsafe fn Id(&self) -> ::windows_core::Result<::windows_core::GUID> { @@ -6422,16 +6072,6 @@ impl IFsrmStorageModuleDefinition { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFsrmStorageModuleDefinition, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsrmObject, IFsrmPipelineModuleDefinition); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFsrmStorageModuleDefinition { - type Vtable = IFsrmStorageModuleDefinition_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFsrmStorageModuleDefinition { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x15a81350_497d_4aba_80e9_d4dbcc5521fe); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFsrmStorageModuleDefinition_Vtbl { @@ -6443,11 +6083,15 @@ pub struct IFsrmStorageModuleDefinition_Vtbl { pub UpdatesFileContent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, updatesfilecontent: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub SetUpdatesFileContent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, updatesfilecontent: super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFsrmStorageModuleImplementation(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFsrmStorageModuleImplementation, + IFsrmStorageModuleImplementation_Vtbl, + 0x0af4a0da_895a_4e50_8712_a96724bcec64 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFsrmStorageModuleImplementation, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsrmPipelineModuleImplementation); #[cfg(feature = "Win32_System_Com")] impl IFsrmStorageModuleImplementation { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -6488,16 +6132,6 @@ impl IFsrmStorageModuleImplementation { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFsrmStorageModuleImplementation, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsrmPipelineModuleImplementation); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFsrmStorageModuleImplementation { - type Vtable = IFsrmStorageModuleImplementation_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFsrmStorageModuleImplementation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0af4a0da_895a_4e50_8712_a96724bcec64); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFsrmStorageModuleImplementation_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Storage/FileSystem/impl.rs b/crates/libs/windows/src/Windows/Win32/Storage/FileSystem/impl.rs index 4182af921c..035b621fd6 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/FileSystem/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/FileSystem/impl.rs @@ -189,7 +189,7 @@ impl IDiskQuotaControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDiskQuotaEvents_Impl: Sized { @@ -206,7 +206,7 @@ impl IDiskQuotaEvents_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnUserNameChanged: OnUserNameChanged:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDiskQuotaUser_Impl: Sized { @@ -324,7 +324,7 @@ impl IDiskQuotaUser_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDiskQuotaUserBatch_Impl: Sized { @@ -365,7 +365,7 @@ impl IDiskQuotaUserBatch_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumDiskQuotaUsers_Impl: Sized { @@ -412,6 +412,6 @@ impl IEnumDiskQuotaUsers_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 1c9b13079f..21c155a9f7 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/FileSystem/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/FileSystem/mod.rs @@ -3392,11 +3392,15 @@ where ::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()) } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDiskQuotaControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IDiskQuotaControl, + IDiskQuotaControl_Vtbl, + 0x7988b572_ec89_11cf_9c00_00aa00a14f56 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IDiskQuotaControl, ::windows_core::IUnknown, super::super::System::Com::IConnectionPointContainer); #[cfg(feature = "Win32_System_Com")] impl IDiskQuotaControl { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3509,16 +3513,6 @@ impl IDiskQuotaControl { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IDiskQuotaControl, ::windows_core::IUnknown, super::super::System::Com::IConnectionPointContainer); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IDiskQuotaControl { - type Vtable = IDiskQuotaControl_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IDiskQuotaControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7988b572_ec89_11cf_9c00_00aa00a14f56); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IDiskQuotaControl_Vtbl { @@ -3545,9 +3539,8 @@ pub struct IDiskQuotaControl_Vtbl { pub GiveUserNameResolutionPriority: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, puser: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ShutdownNameResolution: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDiskQuotaEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDiskQuotaEvents, IDiskQuotaEvents_Vtbl, 0x7988b579_ec89_11cf_9c00_00aa00a14f56); +::windows_core::imp::interface_hierarchy!(IDiskQuotaEvents, ::windows_core::IUnknown); impl IDiskQuotaEvents { pub unsafe fn OnUserNameChanged(&self, puser: P0) -> ::windows_core::Result<()> where @@ -3556,22 +3549,14 @@ impl IDiskQuotaEvents { (::windows_core::Interface::vtable(self).OnUserNameChanged)(::windows_core::Interface::as_raw(self), puser.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IDiskQuotaEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDiskQuotaEvents { - type Vtable = IDiskQuotaEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDiskQuotaEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7988b579_ec89_11cf_9c00_00aa00a14f56); -} #[repr(C)] #[doc(hidden)] pub struct IDiskQuotaEvents_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnUserNameChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, puser: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDiskQuotaUser(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDiskQuotaUser, IDiskQuotaUser_Vtbl, 0x7988b574_ec89_11cf_9c00_00aa00a14f56); +::windows_core::imp::interface_hierarchy!(IDiskQuotaUser, ::windows_core::IUnknown); impl IDiskQuotaUser { pub unsafe fn GetID(&self, pulid: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetID)(::windows_core::Interface::as_raw(self), pulid).ok() @@ -3639,13 +3624,6 @@ impl IDiskQuotaUser { (::windows_core::Interface::vtable(self).GetAccountStatus)(::windows_core::Interface::as_raw(self), pdwstatus).ok() } } -::windows_core::imp::interface_hierarchy!(IDiskQuotaUser, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDiskQuotaUser { - type Vtable = IDiskQuotaUser_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDiskQuotaUser { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7988b574_ec89_11cf_9c00_00aa00a14f56); -} #[repr(C)] #[doc(hidden)] pub struct IDiskQuotaUser_Vtbl { @@ -3666,9 +3644,8 @@ pub struct IDiskQuotaUser_Vtbl { pub Invalidate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetAccountStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwstatus: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDiskQuotaUserBatch(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDiskQuotaUserBatch, IDiskQuotaUserBatch_Vtbl, 0x7988b576_ec89_11cf_9c00_00aa00a14f56); +::windows_core::imp::interface_hierarchy!(IDiskQuotaUserBatch, ::windows_core::IUnknown); impl IDiskQuotaUserBatch { pub unsafe fn Add(&self, puser: P0) -> ::windows_core::Result<()> where @@ -3689,13 +3666,6 @@ impl IDiskQuotaUserBatch { (::windows_core::Interface::vtable(self).FlushToDisk)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IDiskQuotaUserBatch, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDiskQuotaUserBatch { - type Vtable = IDiskQuotaUserBatch_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDiskQuotaUserBatch { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7988b576_ec89_11cf_9c00_00aa00a14f56); -} #[repr(C)] #[doc(hidden)] pub struct IDiskQuotaUserBatch_Vtbl { @@ -3705,9 +3675,8 @@ pub struct IDiskQuotaUserBatch_Vtbl { pub RemoveAll: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub FlushToDisk: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumDiskQuotaUsers(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumDiskQuotaUsers, IEnumDiskQuotaUsers_Vtbl, 0x7988b577_ec89_11cf_9c00_00aa00a14f56); +::windows_core::imp::interface_hierarchy!(IEnumDiskQuotaUsers, ::windows_core::IUnknown); impl IEnumDiskQuotaUsers { pub unsafe fn Next(&self, cusers: u32, rgusers: *mut ::core::option::Option, pcusersfetched: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), cusers, ::core::mem::transmute(rgusers), pcusersfetched).ok() @@ -3723,13 +3692,6 @@ impl IEnumDiskQuotaUsers { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumDiskQuotaUsers, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumDiskQuotaUsers { - type Vtable = IEnumDiskQuotaUsers_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumDiskQuotaUsers { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7988b577_ec89_11cf_9c00_00aa00a14f56); -} #[repr(C)] #[doc(hidden)] pub struct IEnumDiskQuotaUsers_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Storage/Imapi/impl.rs b/crates/libs/windows/src/Windows/Win32/Storage/Imapi/impl.rs index decbf84ce5..b2d1ed77df 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/Imapi/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/Imapi/impl.rs @@ -16,7 +16,7 @@ impl DDiscFormat2DataEvents_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::(), Update: Update:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -37,7 +37,7 @@ impl DDiscFormat2EraseEvents_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::(), Update: Update:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -58,7 +58,7 @@ impl DDiscFormat2RawCDEvents_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::(), Update: Update:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -79,7 +79,7 @@ impl DDiscFormat2TrackAtOnceEvents_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::(), Update: Update:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -110,7 +110,7 @@ impl DDiscMaster2Events_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -131,7 +131,7 @@ impl DFileSystemImageEvents_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::(), Update: Update:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -152,7 +152,7 @@ impl DFileSystemImageImportEvents_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::(), UpdateImport: UpdateImport:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -173,7 +173,7 @@ impl DWriteEngine2Events_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::(), Update: Update:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -216,7 +216,7 @@ impl IBlockRange_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -243,7 +243,7 @@ impl IBlockRangeList_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::(), BlockRanges: BlockRanges:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -353,7 +353,7 @@ impl IBootOptions_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IBurnVerification_Impl: Sized { @@ -386,7 +386,7 @@ impl IBurnVerification_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -468,7 +468,7 @@ impl IDiscFormat2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -841,7 +841,7 @@ impl IDiscFormat2Data_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -910,7 +910,7 @@ impl IDiscFormat2DataEventArgs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1007,7 +1007,7 @@ impl IDiscFormat2Erase_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1276,7 +1276,7 @@ impl IDiscFormat2RawCD_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1332,7 +1332,7 @@ impl IDiscFormat2RawCDEventArgs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1620,7 +1620,7 @@ impl IDiscFormat2TrackAtOnce_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1689,7 +1689,7 @@ impl IDiscFormat2TrackAtOnceEventArgs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDiscMaster_Impl: Sized { @@ -1816,7 +1816,7 @@ impl IDiscMaster_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1885,7 +1885,7 @@ impl IDiscMaster2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDiscMasterProgressEvents_Impl: Sized { @@ -1967,7 +1967,7 @@ impl IDiscMasterProgressEvents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`"] @@ -2119,7 +2119,7 @@ impl IDiscRecorder_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2367,7 +2367,7 @@ impl IDiscRecorder2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDiscRecorder2Ex_Impl: Sized { @@ -2524,7 +2524,7 @@ impl IDiscRecorder2Ex_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumDiscMasterFormats_Impl: Sized { @@ -2571,7 +2571,7 @@ impl IEnumDiscMasterFormats_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumDiscRecorders_Impl: Sized { @@ -2618,7 +2618,7 @@ impl IEnumDiscRecorders_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2669,7 +2669,7 @@ impl IEnumFsiItems_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2720,7 +2720,7 @@ impl IEnumProgressItems_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3279,7 +3279,7 @@ impl IFileSystemImage_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3316,7 +3316,7 @@ impl IFileSystemImage2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3366,7 +3366,7 @@ impl IFileSystemImage3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3448,7 +3448,7 @@ impl IFileSystemImageResult_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3475,7 +3475,7 @@ impl IFileSystemImageResult2_Vtbl { Self { base__: IFileSystemImageResult_Vtbl::new::(), ModifiedBlocks: ModifiedBlocks:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3586,7 +3586,7 @@ impl IFsiDirectoryItem_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3607,7 +3607,7 @@ impl IFsiDirectoryItem2_Vtbl { Self { base__: IFsiDirectoryItem_Vtbl::new::(), AddTreeWithNamedStreams: AddTreeWithNamedStreams:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3683,7 +3683,7 @@ impl IFsiFileItem_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3760,7 +3760,7 @@ impl IFsiFileItem2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3909,7 +3909,7 @@ impl IFsiItem_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3978,7 +3978,7 @@ impl IFsiNamedStreams_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4042,7 +4042,7 @@ impl IIsoImageManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`"] @@ -4125,7 +4125,7 @@ impl IJolietDiscMaster_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4188,7 +4188,7 @@ impl IMultisession_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4244,7 +4244,7 @@ impl IMultisessionRandomWrite_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4326,7 +4326,7 @@ impl IMultisessionSequential_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4353,7 +4353,7 @@ impl IMultisessionSequential2_Vtbl { Self { base__: IMultisessionSequential_Vtbl::new::(), WriteUnitSize: WriteUnitSize:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4422,7 +4422,7 @@ impl IProgressItem_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4517,7 +4517,7 @@ impl IProgressItems_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4739,7 +4739,7 @@ impl IRawCDImageCreator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4895,7 +4895,7 @@ impl IRawCDImageTrackInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IRedbookDiscMaster_Impl: Sized { @@ -4994,7 +4994,7 @@ impl IRedbookDiscMaster_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -5039,7 +5039,7 @@ impl IStreamConcatenate_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -5060,7 +5060,7 @@ impl IStreamInterleave_Vtbl { Self { base__: super::super::System::Com::IStream_Vtbl::new::(), Initialize: Initialize:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -5111,7 +5111,7 @@ impl IStreamPseudoRandomBased_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5255,7 +5255,7 @@ impl IWriteEngine2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5363,7 +5363,7 @@ impl IWriteEngine2EventArgs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5419,6 +5419,6 @@ impl IWriteSpeedDescriptor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } 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 f808c8d42a..0105b841b8 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/Imapi/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/Imapi/mod.rs @@ -47,11 +47,15 @@ pub unsafe fn SetAttribIMsgOnIStg(lpobject: *mut ::core::ffi::c_void, lpproptags ::windows_targets::link!("mapi32.dll" "system" fn SetAttribIMsgOnIStg(lpobject : *mut ::core::ffi::c_void, lpproptags : *mut super::super::System::AddressBook:: SPropTagArray, lppropattrs : *mut SPropAttrArray, lpppropproblems : *mut *mut super::super::System::AddressBook:: SPropProblemArray) -> ::windows_core::HRESULT); SetAttribIMsgOnIStg(lpobject, lpproptags, lppropattrs, lpppropproblems).ok() } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct DDiscFormat2DataEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + DDiscFormat2DataEvents, + DDiscFormat2DataEvents_Vtbl, + 0x2735413c_7f64_5b0f_8f00_5d77afbe261e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(DDiscFormat2DataEvents, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl DDiscFormat2DataEvents { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -65,16 +69,6 @@ impl DDiscFormat2DataEvents { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(DDiscFormat2DataEvents, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for DDiscFormat2DataEvents { - type Vtable = DDiscFormat2DataEvents_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for DDiscFormat2DataEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2735413c_7f64_5b0f_8f00_5d77afbe261e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct DDiscFormat2DataEvents_Vtbl { @@ -84,11 +78,15 @@ pub struct DDiscFormat2DataEvents_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Update: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct DDiscFormat2EraseEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + DDiscFormat2EraseEvents, + DDiscFormat2EraseEvents_Vtbl, + 0x2735413a_7f64_5b0f_8f00_5d77afbe261e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(DDiscFormat2EraseEvents, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl DDiscFormat2EraseEvents { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -101,16 +99,6 @@ impl DDiscFormat2EraseEvents { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(DDiscFormat2EraseEvents, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for DDiscFormat2EraseEvents { - type Vtable = DDiscFormat2EraseEvents_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for DDiscFormat2EraseEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2735413a_7f64_5b0f_8f00_5d77afbe261e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct DDiscFormat2EraseEvents_Vtbl { @@ -120,11 +108,15 @@ pub struct DDiscFormat2EraseEvents_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Update: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct DDiscFormat2RawCDEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + DDiscFormat2RawCDEvents, + DDiscFormat2RawCDEvents_Vtbl, + 0x27354142_7f64_5b0f_8f00_5d77afbe261e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(DDiscFormat2RawCDEvents, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl DDiscFormat2RawCDEvents { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -138,16 +130,6 @@ impl DDiscFormat2RawCDEvents { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(DDiscFormat2RawCDEvents, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for DDiscFormat2RawCDEvents { - type Vtable = DDiscFormat2RawCDEvents_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for DDiscFormat2RawCDEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x27354142_7f64_5b0f_8f00_5d77afbe261e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct DDiscFormat2RawCDEvents_Vtbl { @@ -157,11 +139,15 @@ pub struct DDiscFormat2RawCDEvents_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Update: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct DDiscFormat2TrackAtOnceEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + DDiscFormat2TrackAtOnceEvents, + DDiscFormat2TrackAtOnceEvents_Vtbl, + 0x2735413f_7f64_5b0f_8f00_5d77afbe261e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(DDiscFormat2TrackAtOnceEvents, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl DDiscFormat2TrackAtOnceEvents { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -175,16 +161,6 @@ impl DDiscFormat2TrackAtOnceEvents { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(DDiscFormat2TrackAtOnceEvents, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for DDiscFormat2TrackAtOnceEvents { - type Vtable = DDiscFormat2TrackAtOnceEvents_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for DDiscFormat2TrackAtOnceEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2735413f_7f64_5b0f_8f00_5d77afbe261e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct DDiscFormat2TrackAtOnceEvents_Vtbl { @@ -194,11 +170,15 @@ pub struct DDiscFormat2TrackAtOnceEvents_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Update: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct DDiscMaster2Events(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + DDiscMaster2Events, + DDiscMaster2Events_Vtbl, + 0x27354131_7f64_5b0f_8f00_5d77afbe261e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(DDiscMaster2Events, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl DDiscMaster2Events { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -221,16 +201,6 @@ impl DDiscMaster2Events { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(DDiscMaster2Events, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for DDiscMaster2Events { - type Vtable = DDiscMaster2Events_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for DDiscMaster2Events { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x27354131_7f64_5b0f_8f00_5d77afbe261e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct DDiscMaster2Events_Vtbl { @@ -244,11 +214,15 @@ pub struct DDiscMaster2Events_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] NotifyDeviceRemoved: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct DFileSystemImageEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + DFileSystemImageEvents, + DFileSystemImageEvents_Vtbl, + 0x2c941fdf_975b_59be_a960_9a2a262853a5 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(DFileSystemImageEvents, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl DFileSystemImageEvents { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -262,16 +236,6 @@ impl DFileSystemImageEvents { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(DFileSystemImageEvents, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for DFileSystemImageEvents { - type Vtable = DFileSystemImageEvents_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for DFileSystemImageEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2c941fdf_975b_59be_a960_9a2a262853a5); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct DFileSystemImageEvents_Vtbl { @@ -281,11 +245,15 @@ pub struct DFileSystemImageEvents_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Update: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct DFileSystemImageImportEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + DFileSystemImageImportEvents, + DFileSystemImageImportEvents_Vtbl, + 0xd25c30f9_4087_4366_9e24_e55be286424b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(DFileSystemImageImportEvents, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl DFileSystemImageImportEvents { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -299,16 +267,6 @@ impl DFileSystemImageImportEvents { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(DFileSystemImageImportEvents, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for DFileSystemImageImportEvents { - type Vtable = DFileSystemImageImportEvents_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for DFileSystemImageImportEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd25c30f9_4087_4366_9e24_e55be286424b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct DFileSystemImageImportEvents_Vtbl { @@ -318,11 +276,15 @@ pub struct DFileSystemImageImportEvents_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] UpdateImport: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct DWriteEngine2Events(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + DWriteEngine2Events, + DWriteEngine2Events_Vtbl, + 0x27354137_7f64_5b0f_8f00_5d77afbe261e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(DWriteEngine2Events, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl DWriteEngine2Events { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -336,16 +298,6 @@ impl DWriteEngine2Events { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(DWriteEngine2Events, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for DWriteEngine2Events { - type Vtable = DWriteEngine2Events_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for DWriteEngine2Events { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x27354137_7f64_5b0f_8f00_5d77afbe261e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct DWriteEngine2Events_Vtbl { @@ -355,11 +307,15 @@ pub struct DWriteEngine2Events_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Update: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBlockRange(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IBlockRange, + IBlockRange_Vtbl, + 0xb507ca25_2204_11dd_966a_001aa01bbc58 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IBlockRange, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IBlockRange { pub unsafe fn StartLba(&self) -> ::windows_core::Result { @@ -372,16 +328,6 @@ impl IBlockRange { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IBlockRange, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IBlockRange { - type Vtable = IBlockRange_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IBlockRange { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb507ca25_2204_11dd_966a_001aa01bbc58); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IBlockRange_Vtbl { @@ -389,11 +335,15 @@ pub struct IBlockRange_Vtbl { pub StartLba: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut i32) -> ::windows_core::HRESULT, pub EndLba: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBlockRangeList(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IBlockRangeList, + IBlockRangeList_Vtbl, + 0xb507ca26_2204_11dd_966a_001aa01bbc58 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IBlockRangeList, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IBlockRangeList { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -404,16 +354,6 @@ impl IBlockRangeList { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IBlockRangeList, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IBlockRangeList { - type Vtable = IBlockRangeList_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IBlockRangeList { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb507ca26_2204_11dd_966a_001aa01bbc58); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IBlockRangeList_Vtbl { @@ -423,11 +363,15 @@ pub struct IBlockRangeList_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] BlockRanges: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBootOptions(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IBootOptions, + IBootOptions_Vtbl, + 0x2c941fd4_975b_59be_a960_9a2a262853a5 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IBootOptions, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IBootOptions { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -474,16 +418,6 @@ impl IBootOptions { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IBootOptions, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IBootOptions { - type Vtable = IBootOptions_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IBootOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2c941fd4_975b_59be_a960_9a2a262853a5); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IBootOptions_Vtbl { @@ -504,9 +438,8 @@ pub struct IBootOptions_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] AssignBootImage: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBurnVerification(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBurnVerification, IBurnVerification_Vtbl, 0xd2ffd834_958b_426d_8470_2a13879c6a91); +::windows_core::imp::interface_hierarchy!(IBurnVerification, ::windows_core::IUnknown); impl IBurnVerification { pub unsafe fn SetBurnVerificationLevel(&self, value: IMAPI_BURN_VERIFICATION_LEVEL) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetBurnVerificationLevel)(::windows_core::Interface::as_raw(self), value).ok() @@ -516,13 +449,6 @@ impl IBurnVerification { (::windows_core::Interface::vtable(self).BurnVerificationLevel)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IBurnVerification, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBurnVerification { - type Vtable = IBurnVerification_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBurnVerification { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd2ffd834_958b_426d_8470_2a13879c6a91); -} #[repr(C)] #[doc(hidden)] pub struct IBurnVerification_Vtbl { @@ -530,11 +456,15 @@ pub struct IBurnVerification_Vtbl { pub SetBurnVerificationLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: IMAPI_BURN_VERIFICATION_LEVEL) -> ::windows_core::HRESULT, pub BurnVerificationLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut IMAPI_BURN_VERIFICATION_LEVEL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDiscFormat2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IDiscFormat2, + IDiscFormat2_Vtbl, + 0x27354152_8f64_5b0f_8f00_5d77afbe261e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IDiscFormat2, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IDiscFormat2 { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -571,16 +501,6 @@ impl IDiscFormat2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IDiscFormat2, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IDiscFormat2 { - type Vtable = IDiscFormat2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IDiscFormat2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x27354152_8f64_5b0f_8f00_5d77afbe261e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IDiscFormat2_Vtbl { @@ -600,11 +520,15 @@ pub struct IDiscFormat2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] SupportedMediaTypes: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDiscFormat2Data(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IDiscFormat2Data, + IDiscFormat2Data_Vtbl, + 0x27354153_9f64_5b0f_8f00_5d77afbe261e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IDiscFormat2Data, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IDiscFormat2); #[cfg(feature = "Win32_System_Com")] impl IDiscFormat2Data { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -798,16 +722,6 @@ impl IDiscFormat2Data { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IDiscFormat2Data, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IDiscFormat2); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IDiscFormat2Data { - type Vtable = IDiscFormat2Data_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IDiscFormat2Data { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x27354153_9f64_5b0f_8f00_5d77afbe261e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IDiscFormat2Data_Vtbl { @@ -863,11 +777,15 @@ pub struct IDiscFormat2Data_Vtbl { pub CancelWrite: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetWriteSpeed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, requestedsectorspersecond: i32, rotationtypeispurecav: super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDiscFormat2DataEventArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IDiscFormat2DataEventArgs, + IDiscFormat2DataEventArgs_Vtbl, + 0x2735413d_7f64_5b0f_8f00_5d77afbe261e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IDiscFormat2DataEventArgs, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IWriteEngine2EventArgs); #[cfg(feature = "Win32_System_Com")] impl IDiscFormat2DataEventArgs { pub unsafe fn StartLba(&self) -> ::windows_core::Result { @@ -916,16 +834,6 @@ impl IDiscFormat2DataEventArgs { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IDiscFormat2DataEventArgs, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IWriteEngine2EventArgs); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IDiscFormat2DataEventArgs { - type Vtable = IDiscFormat2DataEventArgs_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IDiscFormat2DataEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2735413d_7f64_5b0f_8f00_5d77afbe261e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IDiscFormat2DataEventArgs_Vtbl { @@ -935,11 +843,15 @@ pub struct IDiscFormat2DataEventArgs_Vtbl { pub TotalTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut i32) -> ::windows_core::HRESULT, pub CurrentAction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut IMAPI_FORMAT2_DATA_WRITE_ACTION) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDiscFormat2Erase(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IDiscFormat2Erase, + IDiscFormat2Erase_Vtbl, + 0x27354156_8f64_5b0f_8f00_5d77afbe261e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IDiscFormat2Erase, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IDiscFormat2); #[cfg(feature = "Win32_System_Com")] impl IDiscFormat2Erase { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1017,16 +929,6 @@ impl IDiscFormat2Erase { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IDiscFormat2Erase, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IDiscFormat2); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IDiscFormat2Erase { - type Vtable = IDiscFormat2Erase_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IDiscFormat2Erase { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x27354156_8f64_5b0f_8f00_5d77afbe261e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IDiscFormat2Erase_Vtbl { @@ -1046,11 +948,15 @@ pub struct IDiscFormat2Erase_Vtbl { pub ClientName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub EraseMedia: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDiscFormat2RawCD(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IDiscFormat2RawCD, + IDiscFormat2RawCD_Vtbl, + 0x27354155_8f64_5b0f_8f00_5d77afbe261e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IDiscFormat2RawCD, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IDiscFormat2); #[cfg(feature = "Win32_System_Com")] impl IDiscFormat2RawCD { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1205,16 +1111,6 @@ impl IDiscFormat2RawCD { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IDiscFormat2RawCD, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IDiscFormat2); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IDiscFormat2RawCD { - type Vtable = IDiscFormat2RawCD_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IDiscFormat2RawCD { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x27354155_8f64_5b0f_8f00_5d77afbe261e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IDiscFormat2RawCD_Vtbl { @@ -1265,11 +1161,15 @@ pub struct IDiscFormat2RawCD_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] SupportedWriteSpeedDescriptors: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDiscFormat2RawCDEventArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IDiscFormat2RawCDEventArgs, + IDiscFormat2RawCDEventArgs_Vtbl, + 0x27354143_7f64_5b0f_8f00_5d77afbe261e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IDiscFormat2RawCDEventArgs, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IWriteEngine2EventArgs); #[cfg(feature = "Win32_System_Com")] impl IDiscFormat2RawCDEventArgs { pub unsafe fn StartLba(&self) -> ::windows_core::Result { @@ -1314,16 +1214,6 @@ impl IDiscFormat2RawCDEventArgs { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IDiscFormat2RawCDEventArgs, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IWriteEngine2EventArgs); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IDiscFormat2RawCDEventArgs { - type Vtable = IDiscFormat2RawCDEventArgs_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IDiscFormat2RawCDEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x27354143_7f64_5b0f_8f00_5d77afbe261e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IDiscFormat2RawCDEventArgs_Vtbl { @@ -1332,11 +1222,15 @@ pub struct IDiscFormat2RawCDEventArgs_Vtbl { pub ElapsedTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut i32) -> ::windows_core::HRESULT, pub RemainingTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDiscFormat2TrackAtOnce(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IDiscFormat2TrackAtOnce, + IDiscFormat2TrackAtOnce_Vtbl, + 0x27354154_8f64_5b0f_8f00_5d77afbe261e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IDiscFormat2TrackAtOnce, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IDiscFormat2); #[cfg(feature = "Win32_System_Com")] impl IDiscFormat2TrackAtOnce { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1494,16 +1388,6 @@ impl IDiscFormat2TrackAtOnce { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IDiscFormat2TrackAtOnce, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IDiscFormat2); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IDiscFormat2TrackAtOnce { - type Vtable = IDiscFormat2TrackAtOnce_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IDiscFormat2TrackAtOnce { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x27354154_8f64_5b0f_8f00_5d77afbe261e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IDiscFormat2TrackAtOnce_Vtbl { @@ -1552,11 +1436,15 @@ pub struct IDiscFormat2TrackAtOnce_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] SupportedWriteSpeedDescriptors: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDiscFormat2TrackAtOnceEventArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IDiscFormat2TrackAtOnceEventArgs, + IDiscFormat2TrackAtOnceEventArgs_Vtbl, + 0x27354140_7f64_5b0f_8f00_5d77afbe261e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IDiscFormat2TrackAtOnceEventArgs, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IWriteEngine2EventArgs); #[cfg(feature = "Win32_System_Com")] impl IDiscFormat2TrackAtOnceEventArgs { pub unsafe fn StartLba(&self) -> ::windows_core::Result { @@ -1605,16 +1493,6 @@ impl IDiscFormat2TrackAtOnceEventArgs { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IDiscFormat2TrackAtOnceEventArgs, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IWriteEngine2EventArgs); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IDiscFormat2TrackAtOnceEventArgs { - type Vtable = IDiscFormat2TrackAtOnceEventArgs_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IDiscFormat2TrackAtOnceEventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x27354140_7f64_5b0f_8f00_5d77afbe261e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IDiscFormat2TrackAtOnceEventArgs_Vtbl { @@ -1624,9 +1502,8 @@ pub struct IDiscFormat2TrackAtOnceEventArgs_Vtbl { pub ElapsedTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut i32) -> ::windows_core::HRESULT, pub RemainingTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDiscMaster(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDiscMaster, IDiscMaster_Vtbl, 0x520cca62_51a5_11d3_9144_00104ba11c5e); +::windows_core::imp::interface_hierarchy!(IDiscMaster, ::windows_core::IUnknown); impl IDiscMaster { pub unsafe fn Open(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Open)(::windows_core::Interface::as_raw(self)).ok() @@ -1676,13 +1553,6 @@ impl IDiscMaster { (::windows_core::Interface::vtable(self).Close)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IDiscMaster, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDiscMaster { - type Vtable = IDiscMaster_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDiscMaster { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x520cca62_51a5_11d3_9144_00104ba11c5e); -} #[repr(C)] #[doc(hidden)] pub struct IDiscMaster_Vtbl { @@ -1700,11 +1570,15 @@ pub struct IDiscMaster_Vtbl { pub RecordDisc: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bsimulate: u8, bejectafterburn: u8) -> ::windows_core::HRESULT, pub Close: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDiscMaster2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IDiscMaster2, + IDiscMaster2_Vtbl, + 0x27354130_7f64_5b0f_8f00_5d77afbe261e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IDiscMaster2, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IDiscMaster2 { #[doc = "Required features: `\"Win32_System_Ole\"`"] @@ -1727,16 +1601,6 @@ impl IDiscMaster2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IDiscMaster2, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IDiscMaster2 { - type Vtable = IDiscMaster2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IDiscMaster2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x27354130_7f64_5b0f_8f00_5d77afbe261e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IDiscMaster2_Vtbl { @@ -1749,9 +1613,8 @@ pub struct IDiscMaster2_Vtbl { pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut i32) -> ::windows_core::HRESULT, pub IsSupportedEnvironment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDiscMasterProgressEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDiscMasterProgressEvents, IDiscMasterProgressEvents_Vtbl, 0xec9e51c1_4e5d_11d3_9144_00104ba11c5e); +::windows_core::imp::interface_hierarchy!(IDiscMasterProgressEvents, ::windows_core::IUnknown); impl IDiscMasterProgressEvents { pub unsafe fn QueryCancel(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1782,13 +1645,6 @@ impl IDiscMasterProgressEvents { (::windows_core::Interface::vtable(self).NotifyEraseComplete)(::windows_core::Interface::as_raw(self), status).ok() } } -::windows_core::imp::interface_hierarchy!(IDiscMasterProgressEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDiscMasterProgressEvents { - type Vtable = IDiscMasterProgressEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDiscMasterProgressEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xec9e51c1_4e5d_11d3_9144_00104ba11c5e); -} #[repr(C)] #[doc(hidden)] pub struct IDiscMasterProgressEvents_Vtbl { @@ -1803,9 +1659,8 @@ pub struct IDiscMasterProgressEvents_Vtbl { pub NotifyBurnComplete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, status: ::windows_core::HRESULT) -> ::windows_core::HRESULT, pub NotifyEraseComplete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, status: ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDiscRecorder(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDiscRecorder, IDiscRecorder_Vtbl, 0x85ac9776_ca88_4cf2_894e_09598c078a41); +::windows_core::imp::interface_hierarchy!(IDiscRecorder, ::windows_core::IUnknown); impl IDiscRecorder { pub unsafe fn Init(&self, pbyuniqueid: &[u8], nuldrivenumber: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Init)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pbyuniqueid.as_ptr()), pbyuniqueid.len().try_into().unwrap(), nuldrivenumber).ok() @@ -1865,13 +1720,6 @@ impl IDiscRecorder { (::windows_core::Interface::vtable(self).Close)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IDiscRecorder, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDiscRecorder { - type Vtable = IDiscRecorder_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDiscRecorder { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x85ac9776_ca88_4cf2_894e_09598c078a41); -} #[repr(C)] #[doc(hidden)] pub struct IDiscRecorder_Vtbl { @@ -1898,11 +1746,15 @@ pub struct IDiscRecorder_Vtbl { pub Erase: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bfullerase: u8) -> ::windows_core::HRESULT, pub Close: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDiscRecorder2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IDiscRecorder2, + IDiscRecorder2_Vtbl, + 0x27354133_7f64_5b0f_8f00_5d77afbe261e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IDiscRecorder2, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IDiscRecorder2 { pub unsafe fn EjectMedia(&self) -> ::windows_core::Result<()> { @@ -2003,16 +1855,6 @@ impl IDiscRecorder2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IDiscRecorder2, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IDiscRecorder2 { - type Vtable = IDiscRecorder2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IDiscRecorder2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x27354133_7f64_5b0f_8f00_5d77afbe261e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IDiscRecorder2_Vtbl { @@ -2057,9 +1899,8 @@ pub struct IDiscRecorder2_Vtbl { SupportedModePages: usize, pub ExclusiveAccessOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDiscRecorder2Ex(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDiscRecorder2Ex, IDiscRecorder2Ex_Vtbl, 0x27354132_7f64_5b0f_8f00_5d77afbe261e); +::windows_core::imp::interface_hierarchy!(IDiscRecorder2Ex, ::windows_core::IUnknown); impl IDiscRecorder2Ex { pub unsafe fn SendCommandNoData(&self, cdb: &[u8], sensebuffer: &mut [u8; 18], timeout: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SendCommandNoData)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(cdb.as_ptr()), cdb.len().try_into().unwrap(), ::core::mem::transmute(sensebuffer.as_ptr()), timeout).ok() @@ -2128,13 +1969,6 @@ impl IDiscRecorder2Ex { (::windows_core::Interface::vtable(self).GetMaximumPageAlignedTransferSize)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDiscRecorder2Ex, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDiscRecorder2Ex { - type Vtable = IDiscRecorder2Ex_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDiscRecorder2Ex { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x27354132_7f64_5b0f_8f00_5d77afbe261e); -} #[repr(C)] #[doc(hidden)] pub struct IDiscRecorder2Ex_Vtbl { @@ -2158,9 +1992,8 @@ pub struct IDiscRecorder2Ex_Vtbl { pub GetMaximumNonPageAlignedTransferSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut u32) -> ::windows_core::HRESULT, pub GetMaximumPageAlignedTransferSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumDiscMasterFormats(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumDiscMasterFormats, IEnumDiscMasterFormats_Vtbl, 0xddf445e1_54ba_11d3_9144_00104ba11c5e); +::windows_core::imp::interface_hierarchy!(IEnumDiscMasterFormats, ::windows_core::IUnknown); impl IEnumDiscMasterFormats { pub unsafe fn Next(&self, lpiidformatid: &mut [::windows_core::GUID], pcfetched: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), lpiidformatid.len().try_into().unwrap(), ::core::mem::transmute(lpiidformatid.as_ptr()), pcfetched).ok() @@ -2176,13 +2009,6 @@ impl IEnumDiscMasterFormats { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumDiscMasterFormats, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumDiscMasterFormats { - type Vtable = IEnumDiscMasterFormats_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumDiscMasterFormats { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xddf445e1_54ba_11d3_9144_00104ba11c5e); -} #[repr(C)] #[doc(hidden)] pub struct IEnumDiscMasterFormats_Vtbl { @@ -2192,9 +2018,8 @@ pub struct IEnumDiscMasterFormats_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumDiscRecorders(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumDiscRecorders, IEnumDiscRecorders_Vtbl, 0x9b1921e1_54ac_11d3_9144_00104ba11c5e); +::windows_core::imp::interface_hierarchy!(IEnumDiscRecorders, ::windows_core::IUnknown); impl IEnumDiscRecorders { pub unsafe fn Next(&self, pprecorder: &mut [::core::option::Option], pcfetched: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), pprecorder.len().try_into().unwrap(), ::core::mem::transmute(pprecorder.as_ptr()), pcfetched).ok() @@ -2210,13 +2035,6 @@ impl IEnumDiscRecorders { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumDiscRecorders, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumDiscRecorders { - type Vtable = IEnumDiscRecorders_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumDiscRecorders { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9b1921e1_54ac_11d3_9144_00104ba11c5e); -} #[repr(C)] #[doc(hidden)] pub struct IEnumDiscRecorders_Vtbl { @@ -2226,9 +2044,8 @@ pub struct IEnumDiscRecorders_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumFsiItems(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumFsiItems, IEnumFsiItems_Vtbl, 0x2c941fda_975b_59be_a960_9a2a262853a5); +::windows_core::imp::interface_hierarchy!(IEnumFsiItems, ::windows_core::IUnknown); impl IEnumFsiItems { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -2246,13 +2063,6 @@ impl IEnumFsiItems { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumFsiItems, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumFsiItems { - type Vtable = IEnumFsiItems_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumFsiItems { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2c941fda_975b_59be_a960_9a2a262853a5); -} #[repr(C)] #[doc(hidden)] pub struct IEnumFsiItems_Vtbl { @@ -2265,9 +2075,8 @@ pub struct IEnumFsiItems_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumProgressItems(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumProgressItems, IEnumProgressItems_Vtbl, 0x2c941fd6_975b_59be_a960_9a2a262853a5); +::windows_core::imp::interface_hierarchy!(IEnumProgressItems, ::windows_core::IUnknown); impl IEnumProgressItems { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -2285,13 +2094,6 @@ impl IEnumProgressItems { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumProgressItems, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumProgressItems { - type Vtable = IEnumProgressItems_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumProgressItems { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2c941fd6_975b_59be_a960_9a2a262853a5); -} #[repr(C)] #[doc(hidden)] pub struct IEnumProgressItems_Vtbl { @@ -2304,11 +2106,15 @@ pub struct IEnumProgressItems_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFileSystemImage(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFileSystemImage, + IFileSystemImage_Vtbl, + 0x2c941fe1_975b_59be_a960_9a2a262853a5 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFileSystemImage, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFileSystemImage { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2557,16 +2363,6 @@ impl IFileSystemImage { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFileSystemImage, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFileSystemImage { - type Vtable = IFileSystemImage_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFileSystemImage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2c941fe1_975b_59be_a960_9a2a262853a5); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFileSystemImage_Vtbl { @@ -2661,11 +2457,15 @@ pub struct IFileSystemImage_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] SetMultisessionInterfaces: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFileSystemImage2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFileSystemImage2, + IFileSystemImage2_Vtbl, + 0xd7644b2c_1537_4767_b62f_f1387b02ddfd +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFileSystemImage2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFileSystemImage); #[cfg(feature = "Win32_System_Com")] impl IFileSystemImage2 { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2925,16 +2725,6 @@ impl IFileSystemImage2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFileSystemImage2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFileSystemImage); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFileSystemImage2 { - type Vtable = IFileSystemImage2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFileSystemImage2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd7644b2c_1537_4767_b62f_f1387b02ddfd); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFileSystemImage2_Vtbl { @@ -2948,11 +2738,15 @@ pub struct IFileSystemImage2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] SetBootImageOptionsArray: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFileSystemImage3(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFileSystemImage3, + IFileSystemImage3_Vtbl, + 0x7cff842c_7e97_4807_8304_910dd8f7c051 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFileSystemImage3, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFileSystemImage, IFileSystemImage2); #[cfg(feature = "Win32_System_Com")] impl IFileSystemImage3 { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3226,16 +3020,6 @@ impl IFileSystemImage3 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFileSystemImage3, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFileSystemImage, IFileSystemImage2); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFileSystemImage3 { - type Vtable = IFileSystemImage3_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFileSystemImage3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7cff842c_7e97_4807_8304_910dd8f7c051); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFileSystemImage3_Vtbl { @@ -3244,11 +3028,15 @@ pub struct IFileSystemImage3_Vtbl { pub SetCreateRedundantUdfMetadataFiles: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub ProbeSpecificFileSystem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filesystemtoprobe: FsiFileSystems, isappendable: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFileSystemImageResult(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFileSystemImageResult, + IFileSystemImageResult_Vtbl, + 0x2c941fd8_975b_59be_a960_9a2a262853a5 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFileSystemImageResult, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFileSystemImageResult { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3277,16 +3065,6 @@ impl IFileSystemImageResult { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFileSystemImageResult, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFileSystemImageResult { - type Vtable = IFileSystemImageResult_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFileSystemImageResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2c941fd8_975b_59be_a960_9a2a262853a5); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFileSystemImageResult_Vtbl { @@ -3303,11 +3081,15 @@ pub struct IFileSystemImageResult_Vtbl { pub BlockSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut i32) -> ::windows_core::HRESULT, pub DiscId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFileSystemImageResult2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFileSystemImageResult2, + IFileSystemImageResult2_Vtbl, + 0xb507ca29_2204_11dd_966a_001aa01bbc58 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFileSystemImageResult2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFileSystemImageResult); #[cfg(feature = "Win32_System_Com")] impl IFileSystemImageResult2 { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3342,16 +3124,6 @@ impl IFileSystemImageResult2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFileSystemImageResult2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFileSystemImageResult); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFileSystemImageResult2 { - type Vtable = IFileSystemImageResult2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFileSystemImageResult2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb507ca29_2204_11dd_966a_001aa01bbc58); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFileSystemImageResult2_Vtbl { @@ -3361,11 +3133,15 @@ pub struct IFileSystemImageResult2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] ModifiedBlocks: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFsiDirectoryItem(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFsiDirectoryItem, + IFsiDirectoryItem_Vtbl, + 0x2c941fdc_975b_59be_a960_9a2a262853a5 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFsiDirectoryItem, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsiItem); #[cfg(feature = "Win32_System_Com")] impl IFsiDirectoryItem { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -3482,16 +3258,6 @@ impl IFsiDirectoryItem { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFsiDirectoryItem, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsiItem); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFsiDirectoryItem { - type Vtable = IFsiDirectoryItem_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFsiDirectoryItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2c941fdc_975b_59be_a960_9a2a262853a5); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFsiDirectoryItem_Vtbl { @@ -3519,11 +3285,15 @@ pub struct IFsiDirectoryItem_Vtbl { pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub RemoveTree: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFsiDirectoryItem2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFsiDirectoryItem2, + IFsiDirectoryItem2_Vtbl, + 0xf7fb4b9b_6d96_4d7b_9115_201b144811ef +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFsiDirectoryItem2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsiItem, IFsiDirectoryItem); #[cfg(feature = "Win32_System_Com")] impl IFsiDirectoryItem2 { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -3647,27 +3417,21 @@ impl IFsiDirectoryItem2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFsiDirectoryItem2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsiItem, IFsiDirectoryItem); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFsiDirectoryItem2 { - type Vtable = IFsiDirectoryItem2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFsiDirectoryItem2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf7fb4b9b_6d96_4d7b_9115_201b144811ef); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFsiDirectoryItem2_Vtbl { pub base__: IFsiDirectoryItem_Vtbl, pub AddTreeWithNamedStreams: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sourcedirectory: ::std::mem::MaybeUninit<::windows_core::BSTR>, includebasedirectory: super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFsiFileItem(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFsiFileItem, + IFsiFileItem_Vtbl, + 0x2c941fdb_975b_59be_a960_9a2a262853a5 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFsiFileItem, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsiItem); #[cfg(feature = "Win32_System_Com")] impl IFsiFileItem { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -3745,16 +3509,6 @@ impl IFsiFileItem { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFsiFileItem, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsiItem); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFsiFileItem { - type Vtable = IFsiFileItem_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFsiFileItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2c941fdb_975b_59be_a960_9a2a262853a5); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFsiFileItem_Vtbl { @@ -3771,11 +3525,15 @@ pub struct IFsiFileItem_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] SetData: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFsiFileItem2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFsiFileItem2, + IFsiFileItem2_Vtbl, + 0x199d0c19_11e1_40eb_8ec2_c8c822a07792 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFsiFileItem2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsiItem, IFsiFileItem); #[cfg(feature = "Win32_System_Com")] impl IFsiFileItem2 { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -3888,16 +3646,6 @@ impl IFsiFileItem2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFsiFileItem2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IFsiItem, IFsiFileItem); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFsiFileItem2 { - type Vtable = IFsiFileItem2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFsiFileItem2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x199d0c19_11e1_40eb_8ec2_c8c822a07792); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFsiFileItem2_Vtbl { @@ -3915,11 +3663,15 @@ pub struct IFsiFileItem2_Vtbl { pub IsRealTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub SetIsRealTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFsiItem(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFsiItem, + IFsiItem_Vtbl, + 0x2c941fd9_975b_59be_a960_9a2a262853a5 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFsiItem, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFsiItem { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -3971,16 +3723,6 @@ impl IFsiItem { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFsiItem, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFsiItem { - type Vtable = IFsiItem_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFsiItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2c941fd9_975b_59be_a960_9a2a262853a5); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFsiItem_Vtbl { @@ -3998,11 +3740,15 @@ pub struct IFsiItem_Vtbl { pub FileSystemName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filesystem: FsiFileSystems, pval: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub FileSystemPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filesystem: FsiFileSystems, pval: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFsiNamedStreams(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFsiNamedStreams, + IFsiNamedStreams_Vtbl, + 0xed79ba56_5294_4250_8d46_f9aecee23459 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFsiNamedStreams, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFsiNamedStreams { #[doc = "Required features: `\"Win32_System_Ole\"`"] @@ -4027,16 +3773,6 @@ impl IFsiNamedStreams { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFsiNamedStreams, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFsiNamedStreams { - type Vtable = IFsiNamedStreams_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFsiNamedStreams { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xed79ba56_5294_4250_8d46_f9aecee23459); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFsiNamedStreams_Vtbl { @@ -4052,11 +3788,15 @@ pub struct IFsiNamedStreams_Vtbl { pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, count: *mut i32) -> ::windows_core::HRESULT, pub EnumNamedStreams: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIsoImageManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IIsoImageManager, + IIsoImageManager_Vtbl, + 0x6ca38be5_fbbb_4800_95a1_a438865eb0d4 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IIsoImageManager, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IIsoImageManager { pub unsafe fn Path(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -4088,16 +3828,6 @@ impl IIsoImageManager { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IIsoImageManager, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IIsoImageManager { - type Vtable = IIsoImageManager_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IIsoImageManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6ca38be5_fbbb_4800_95a1_a438865eb0d4); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IIsoImageManager_Vtbl { @@ -4114,9 +3844,8 @@ pub struct IIsoImageManager_Vtbl { SetStream: usize, pub Validate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IJolietDiscMaster(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IJolietDiscMaster, IJolietDiscMaster_Vtbl, 0xe3bc42ce_4e5c_11d3_9144_00104ba11c5e); +::windows_core::imp::interface_hierarchy!(IJolietDiscMaster, ::windows_core::IUnknown); impl IJolietDiscMaster { pub unsafe fn GetTotalDataBlocks(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -4153,13 +3882,6 @@ impl IJolietDiscMaster { (::windows_core::Interface::vtable(self).SetJolietProperties)(::windows_core::Interface::as_raw(self), ppropstg.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IJolietDiscMaster, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IJolietDiscMaster { - type Vtable = IJolietDiscMaster_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IJolietDiscMaster { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe3bc42ce_4e5c_11d3_9144_00104ba11c5e); -} #[repr(C)] #[doc(hidden)] pub struct IJolietDiscMaster_Vtbl { @@ -4180,11 +3902,15 @@ pub struct IJolietDiscMaster_Vtbl { #[cfg(not(feature = "Win32_System_Com_StructuredStorage"))] SetJolietProperties: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMultisession(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMultisession, + IMultisession_Vtbl, + 0x27354150_7f64_5b0f_8f00_5d77afbe261e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMultisession, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMultisession { pub unsafe fn IsSupportedOnCurrentMediaState(&self) -> ::windows_core::Result { @@ -4209,16 +3935,6 @@ impl IMultisession { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMultisession, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMultisession { - type Vtable = IMultisession_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMultisession { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x27354150_7f64_5b0f_8f00_5d77afbe261e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMultisession_Vtbl { @@ -4231,11 +3947,15 @@ pub struct IMultisession_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] ImportRecorder: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMultisessionRandomWrite(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMultisessionRandomWrite, + IMultisessionRandomWrite_Vtbl, + 0xb507ca23_2204_11dd_966a_001aa01bbc58 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMultisessionRandomWrite, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IMultisession); #[cfg(feature = "Win32_System_Com")] impl IMultisessionRandomWrite { pub unsafe fn IsSupportedOnCurrentMediaState(&self) -> ::windows_core::Result { @@ -4272,16 +3992,6 @@ impl IMultisessionRandomWrite { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMultisessionRandomWrite, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IMultisession); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMultisessionRandomWrite { - type Vtable = IMultisessionRandomWrite_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMultisessionRandomWrite { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb507ca23_2204_11dd_966a_001aa01bbc58); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMultisessionRandomWrite_Vtbl { @@ -4290,11 +4000,15 @@ pub struct IMultisessionRandomWrite_Vtbl { pub LastWrittenAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut i32) -> ::windows_core::HRESULT, pub TotalSectorsOnMedia: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMultisessionSequential(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMultisessionSequential, + IMultisessionSequential_Vtbl, + 0x27354151_7f64_5b0f_8f00_5d77afbe261e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMultisessionSequential, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IMultisession); #[cfg(feature = "Win32_System_Com")] impl IMultisessionSequential { pub unsafe fn IsSupportedOnCurrentMediaState(&self) -> ::windows_core::Result { @@ -4339,16 +4053,6 @@ impl IMultisessionSequential { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMultisessionSequential, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IMultisession); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMultisessionSequential { - type Vtable = IMultisessionSequential_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMultisessionSequential { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x27354151_7f64_5b0f_8f00_5d77afbe261e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMultisessionSequential_Vtbl { @@ -4359,11 +4063,15 @@ pub struct IMultisessionSequential_Vtbl { pub NextWritableAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut i32) -> ::windows_core::HRESULT, pub FreeSectorsOnMedia: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMultisessionSequential2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMultisessionSequential2, + IMultisessionSequential2_Vtbl, + 0xb507ca22_2204_11dd_966a_001aa01bbc58 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMultisessionSequential2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IMultisession, IMultisessionSequential); #[cfg(feature = "Win32_System_Com")] impl IMultisessionSequential2 { pub unsafe fn IsSupportedOnCurrentMediaState(&self) -> ::windows_core::Result { @@ -4412,27 +4120,21 @@ impl IMultisessionSequential2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMultisessionSequential2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IMultisession, IMultisessionSequential); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMultisessionSequential2 { - type Vtable = IMultisessionSequential2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMultisessionSequential2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb507ca22_2204_11dd_966a_001aa01bbc58); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMultisessionSequential2_Vtbl { pub base__: IMultisessionSequential_Vtbl, pub WriteUnitSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProgressItem(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IProgressItem, + IProgressItem_Vtbl, + 0x2c941fd5_975b_59be_a960_9a2a262853a5 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IProgressItem, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IProgressItem { pub unsafe fn Description(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -4453,16 +4155,6 @@ impl IProgressItem { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IProgressItem, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IProgressItem { - type Vtable = IProgressItem_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IProgressItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2c941fd5_975b_59be_a960_9a2a262853a5); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IProgressItem_Vtbl { @@ -4472,11 +4164,15 @@ pub struct IProgressItem_Vtbl { pub LastBlock: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, block: *mut u32) -> ::windows_core::HRESULT, pub BlockCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, blocks: *mut u32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProgressItems(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IProgressItems, + IProgressItems_Vtbl, + 0x2c941fd7_975b_59be_a960_9a2a262853a5 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IProgressItems, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IProgressItems { #[doc = "Required features: `\"Win32_System_Ole\"`"] @@ -4516,16 +4212,6 @@ impl IProgressItems { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IProgressItems, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IProgressItems { - type Vtable = IProgressItems_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IProgressItems { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2c941fd7_975b_59be_a960_9a2a262853a5); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IProgressItems_Vtbl { @@ -4549,11 +4235,15 @@ pub struct IProgressItems_Vtbl { ProgressItemFromDescription: usize, pub EnumProgressItems: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRawCDImageCreator(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IRawCDImageCreator, + IRawCDImageCreator_Vtbl, + 0x25983550_9d65_49ce_b335_40630d901227 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IRawCDImageCreator, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IRawCDImageCreator { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -4654,16 +4344,6 @@ impl IRawCDImageCreator { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IRawCDImageCreator, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IRawCDImageCreator { - type Vtable = IRawCDImageCreator_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IRawCDImageCreator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x25983550_9d65_49ce_b335_40630d901227); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IRawCDImageCreator_Vtbl { @@ -4706,11 +4386,15 @@ pub struct IRawCDImageCreator_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] ExpectedTableOfContents: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRawCDImageTrackInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IRawCDImageTrackInfo, + IRawCDImageTrackInfo_Vtbl, + 0x25983551_9d65_49ce_b335_40630d901227 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IRawCDImageTrackInfo, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IRawCDImageTrackInfo { pub unsafe fn StartingLba(&self) -> ::windows_core::Result { @@ -4770,16 +4454,6 @@ impl IRawCDImageTrackInfo { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IRawCDImageTrackInfo, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IRawCDImageTrackInfo { - type Vtable = IRawCDImageTrackInfo_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IRawCDImageTrackInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x25983551_9d65_49ce_b335_40630d901227); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IRawCDImageTrackInfo_Vtbl { @@ -4801,9 +4475,8 @@ pub struct IRawCDImageTrackInfo_Vtbl { pub AddTrackIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lbaoffset: i32) -> ::windows_core::HRESULT, pub ClearTrackIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lbaoffset: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRedbookDiscMaster(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRedbookDiscMaster, IRedbookDiscMaster_Vtbl, 0xe3bc42cd_4e5c_11d3_9144_00104ba11c5e); +::windows_core::imp::interface_hierarchy!(IRedbookDiscMaster, ::windows_core::IUnknown); impl IRedbookDiscMaster { pub unsafe fn GetTotalAudioTracks(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -4835,13 +4508,6 @@ impl IRedbookDiscMaster { (::windows_core::Interface::vtable(self).CloseAudioTrack)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IRedbookDiscMaster, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRedbookDiscMaster { - type Vtable = IRedbookDiscMaster_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRedbookDiscMaster { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe3bc42cd_4e5c_11d3_9144_00104ba11c5e); -} #[repr(C)] #[doc(hidden)] pub struct IRedbookDiscMaster_Vtbl { @@ -4855,11 +4521,15 @@ pub struct IRedbookDiscMaster_Vtbl { pub AddAudioTrackBlocks: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pby: *const u8, cb: i32) -> ::windows_core::HRESULT, pub CloseAudioTrack: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStreamConcatenate(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IStreamConcatenate, + IStreamConcatenate_Vtbl, + 0x27354146_7f64_5b0f_8f00_5d77afbe261e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IStreamConcatenate, ::windows_core::IUnknown, super::super::System::Com::ISequentialStream, super::super::System::Com::IStream); #[cfg(feature = "Win32_System_Com")] impl IStreamConcatenate { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -4950,16 +4620,6 @@ impl IStreamConcatenate { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IStreamConcatenate, ::windows_core::IUnknown, super::super::System::Com::ISequentialStream, super::super::System::Com::IStream); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IStreamConcatenate { - type Vtable = IStreamConcatenate_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IStreamConcatenate { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x27354146_7f64_5b0f_8f00_5d77afbe261e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IStreamConcatenate_Vtbl { @@ -4981,11 +4641,15 @@ pub struct IStreamConcatenate_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Append2: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStreamInterleave(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IStreamInterleave, + IStreamInterleave_Vtbl, + 0x27354147_7f64_5b0f_8f00_5d77afbe261e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IStreamInterleave, ::windows_core::IUnknown, super::super::System::Com::ISequentialStream, super::super::System::Com::IStream); #[cfg(feature = "Win32_System_Com")] impl IStreamInterleave { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -5054,16 +4718,6 @@ impl IStreamInterleave { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IStreamInterleave, ::windows_core::IUnknown, super::super::System::Com::ISequentialStream, super::super::System::Com::IStream); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IStreamInterleave { - type Vtable = IStreamInterleave_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IStreamInterleave { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x27354147_7f64_5b0f_8f00_5d77afbe261e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IStreamInterleave_Vtbl { @@ -5073,11 +4727,15 @@ pub struct IStreamInterleave_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Initialize: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStreamPseudoRandomBased(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IStreamPseudoRandomBased, + IStreamPseudoRandomBased_Vtbl, + 0x27354145_7f64_5b0f_8f00_5d77afbe261e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IStreamPseudoRandomBased, ::windows_core::IUnknown, super::super::System::Com::ISequentialStream, super::super::System::Com::IStream); #[cfg(feature = "Win32_System_Com")] impl IStreamPseudoRandomBased { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -5154,16 +4812,6 @@ impl IStreamPseudoRandomBased { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IStreamPseudoRandomBased, ::windows_core::IUnknown, super::super::System::Com::ISequentialStream, super::super::System::Com::IStream); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IStreamPseudoRandomBased { - type Vtable = IStreamPseudoRandomBased_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IStreamPseudoRandomBased { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x27354145_7f64_5b0f_8f00_5d77afbe261e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IStreamPseudoRandomBased_Vtbl { @@ -5173,11 +4821,15 @@ pub struct IStreamPseudoRandomBased_Vtbl { pub put_ExtendedSeed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, values: *const u32, ecount: u32) -> ::windows_core::HRESULT, pub get_ExtendedSeed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, values: *mut *mut u32, ecount: *mut u32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWriteEngine2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWriteEngine2, + IWriteEngine2_Vtbl, + 0x27354135_7f64_5b0f_8f00_5d77afbe261e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWriteEngine2, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IWriteEngine2 { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -5238,16 +4890,6 @@ impl IWriteEngine2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWriteEngine2, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWriteEngine2 { - type Vtable = IWriteEngine2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWriteEngine2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x27354135_7f64_5b0f_8f00_5d77afbe261e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWriteEngine2_Vtbl { @@ -5269,11 +4911,15 @@ pub struct IWriteEngine2_Vtbl { pub BytesPerSector: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut i32) -> ::windows_core::HRESULT, pub WriteInProgress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWriteEngine2EventArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWriteEngine2EventArgs, + IWriteEngine2EventArgs_Vtbl, + 0x27354136_7f64_5b0f_8f00_5d77afbe261e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWriteEngine2EventArgs, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IWriteEngine2EventArgs { pub unsafe fn StartLba(&self) -> ::windows_core::Result { @@ -5306,16 +4952,6 @@ impl IWriteEngine2EventArgs { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWriteEngine2EventArgs, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWriteEngine2EventArgs { - type Vtable = IWriteEngine2EventArgs_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWriteEngine2EventArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x27354136_7f64_5b0f_8f00_5d77afbe261e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWriteEngine2EventArgs_Vtbl { @@ -5328,11 +4964,15 @@ pub struct IWriteEngine2EventArgs_Vtbl { pub UsedSystemBuffer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut i32) -> ::windows_core::HRESULT, pub FreeSystemBuffer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWriteSpeedDescriptor(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWriteSpeedDescriptor, + IWriteSpeedDescriptor_Vtbl, + 0x27354144_7f64_5b0f_8f00_5d77afbe261e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWriteSpeedDescriptor, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IWriteSpeedDescriptor { pub unsafe fn MediaType(&self) -> ::windows_core::Result { @@ -5349,16 +4989,6 @@ impl IWriteSpeedDescriptor { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWriteSpeedDescriptor, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWriteSpeedDescriptor { - type Vtable = IWriteSpeedDescriptor_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWriteSpeedDescriptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x27354144_7f64_5b0f_8f00_5d77afbe261e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWriteSpeedDescriptor_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Storage/IndexServer/impl.rs b/crates/libs/windows/src/Windows/Win32/Storage/IndexServer/impl.rs index b6e26536f1..7e1fb489f2 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/IndexServer/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/IndexServer/impl.rs @@ -47,7 +47,7 @@ impl IFilter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPhraseSink_Impl: Sized { @@ -74,6 +74,6 @@ impl IPhraseSink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 1376a30855..0cd51891f1 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/IndexServer/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/IndexServer/mod.rs @@ -37,9 +37,8 @@ where ::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() } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFilter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFilter, IFilter_Vtbl, 0x89bcb740_6119_101a_bcb7_00dd010655af); +::windows_core::imp::interface_hierarchy!(IFilter, ::windows_core::IUnknown); impl IFilter { #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`"] #[cfg(feature = "Win32_System_Com_StructuredStorage")] @@ -63,13 +62,6 @@ impl IFilter { (::windows_core::Interface::vtable(self).BindRegion)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(origpos), riid, ppunk) } } -::windows_core::imp::interface_hierarchy!(IFilter, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFilter { - type Vtable = IFilter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFilter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x89bcb740_6119_101a_bcb7_00dd010655af); -} #[repr(C)] #[doc(hidden)] pub struct IFilter_Vtbl { @@ -89,9 +81,8 @@ pub struct IFilter_Vtbl { GetValue: usize, pub BindRegion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, origpos: FILTERREGION, riid: *const ::windows_core::GUID, ppunk: *mut *mut ::core::ffi::c_void) -> i32, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPhraseSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPhraseSink, IPhraseSink_Vtbl, 0xcc906ff0_c058_101a_b554_08002b33b0e6); +::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 @@ -107,13 +98,6 @@ impl IPhraseSink { (::windows_core::Interface::vtable(self).PutPhrase)(::windows_core::Interface::as_raw(self), pwcphrase.into_param().abi(), cwcphrase).ok() } } -::windows_core::imp::interface_hierarchy!(IPhraseSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPhraseSink { - type Vtable = IPhraseSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPhraseSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcc906ff0_c058_101a_b554_08002b33b0e6); -} #[repr(C)] #[doc(hidden)] pub struct IPhraseSink_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Storage/OfflineFiles/impl.rs b/crates/libs/windows/src/Windows/Win32/Storage/OfflineFiles/impl.rs index 60d59df73a..e6d858c516 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/OfflineFiles/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/OfflineFiles/impl.rs @@ -42,7 +42,7 @@ impl IEnumOfflineFilesItems_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumOfflineFilesSettings_Impl: Sized { @@ -89,7 +89,7 @@ impl IEnumOfflineFilesSettings_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IOfflineFilesCache_Impl: Sized { @@ -251,7 +251,7 @@ impl IOfflineFilesCache_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IOfflineFilesCache2_Impl: Sized + IOfflineFilesCache_Impl { @@ -268,7 +268,7 @@ impl IOfflineFilesCache2_Vtbl { Self { base__: IOfflineFilesCache_Vtbl::new::(), RenameItemEx: RenameItemEx:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IOfflineFilesChangeInfo_Impl: Sized { @@ -353,7 +353,7 @@ impl IOfflineFilesChangeInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IOfflineFilesConnectionInfo_Impl: Sized { @@ -400,7 +400,7 @@ impl IOfflineFilesConnectionInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IOfflineFilesDirectoryItem_Impl: Sized + IOfflineFilesItem_Impl {} @@ -410,7 +410,7 @@ impl IOfflineFilesDirectoryItem_Vtbl { Self { base__: IOfflineFilesItem_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IOfflineFilesDirtyInfo_Impl: Sized { @@ -449,7 +449,7 @@ impl IOfflineFilesDirtyInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -492,7 +492,7 @@ impl IOfflineFilesErrorInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IOfflineFilesEvents_Impl: Sized { @@ -680,7 +680,7 @@ impl IOfflineFilesEvents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IOfflineFilesEvents2_Impl: Sized + IOfflineFilesEvents_Impl { @@ -756,7 +756,7 @@ impl IOfflineFilesEvents2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IOfflineFilesEvents3_Impl: Sized + IOfflineFilesEvents2_Impl { @@ -790,7 +790,7 @@ impl IOfflineFilesEvents3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IOfflineFilesEvents4_Impl: Sized + IOfflineFilesEvents3_Impl { @@ -817,7 +817,7 @@ impl IOfflineFilesEvents4_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IOfflineFilesEventsFilter_Impl: Sized { @@ -851,7 +851,7 @@ impl IOfflineFilesEventsFilter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IOfflineFilesFileItem_Impl: Sized + IOfflineFilesItem_Impl { @@ -890,7 +890,7 @@ impl IOfflineFilesFileItem_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IOfflineFilesFileSysInfo_Impl: Sized { @@ -936,7 +936,7 @@ impl IOfflineFilesFileSysInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IOfflineFilesGhostInfo_Impl: Sized { @@ -959,7 +959,7 @@ impl IOfflineFilesGhostInfo_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), IsGhosted: IsGhosted:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IOfflineFilesItem_Impl: Sized { @@ -1031,7 +1031,7 @@ impl IOfflineFilesItem_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IOfflineFilesItemContainer_Impl: Sized { @@ -1070,7 +1070,7 @@ impl IOfflineFilesItemContainer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IOfflineFilesItemFilter_Impl: Sized { @@ -1104,7 +1104,7 @@ impl IOfflineFilesItemFilter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IOfflineFilesPinInfo_Impl: Sized { @@ -1158,7 +1158,7 @@ impl IOfflineFilesPinInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IOfflineFilesPinInfo2_Impl: Sized + IOfflineFilesPinInfo_Impl { @@ -1181,7 +1181,7 @@ impl IOfflineFilesPinInfo2_Vtbl { Self { base__: IOfflineFilesPinInfo_Vtbl::new::(), IsPartlyPinned: IsPartlyPinned:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IOfflineFilesProgress_Impl: Sized { @@ -1227,7 +1227,7 @@ impl IOfflineFilesProgress_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IOfflineFilesServerItem_Impl: Sized + IOfflineFilesItem_Impl {} @@ -1237,7 +1237,7 @@ impl IOfflineFilesServerItem_Vtbl { Self { base__: IOfflineFilesItem_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1341,7 +1341,7 @@ impl IOfflineFilesSetting_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IOfflineFilesShareInfo_Impl: Sized { @@ -1393,7 +1393,7 @@ impl IOfflineFilesShareInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IOfflineFilesShareItem_Impl: Sized + IOfflineFilesItem_Impl {} @@ -1403,7 +1403,7 @@ impl IOfflineFilesShareItem_Vtbl { Self { base__: IOfflineFilesItem_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IOfflineFilesSimpleProgress_Impl: Sized + IOfflineFilesProgress_Impl { @@ -1442,7 +1442,7 @@ impl IOfflineFilesSimpleProgress_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IOfflineFilesSuspend_Impl: Sized { @@ -1459,7 +1459,7 @@ impl IOfflineFilesSuspend_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), SuspendRoot: SuspendRoot:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IOfflineFilesSuspendInfo_Impl: Sized { @@ -1476,7 +1476,7 @@ impl IOfflineFilesSuspendInfo_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), IsSuspended: IsSuspended:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IOfflineFilesSyncConflictHandler_Impl: Sized { @@ -1493,7 +1493,7 @@ impl IOfflineFilesSyncConflictHandler_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), ResolveConflict: ResolveConflict:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1589,7 +1589,7 @@ impl IOfflineFilesSyncErrorInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IOfflineFilesSyncErrorItemInfo_Impl: Sized { @@ -1635,7 +1635,7 @@ impl IOfflineFilesSyncErrorItemInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IOfflineFilesSyncProgress_Impl: Sized + IOfflineFilesProgress_Impl { @@ -1674,7 +1674,7 @@ impl IOfflineFilesSyncProgress_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IOfflineFilesTransparentCacheInfo_Impl: Sized { @@ -1697,6 +1697,6 @@ impl IOfflineFilesTransparentCacheInfo_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), IsTransparentlyCached: IsTransparentlyCached:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 9e29197160..d7c6119ac8 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/OfflineFiles/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/OfflineFiles/mod.rs @@ -21,9 +21,8 @@ pub unsafe fn OfflineFilesStart() -> u32 { ::windows_targets::link!("cscapi.dll" "system" fn OfflineFilesStart() -> u32); OfflineFilesStart() } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumOfflineFilesItems(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumOfflineFilesItems, IEnumOfflineFilesItems_Vtbl, 0xda70e815_c361_4407_bc0b_0d7046e5f2cd); +::windows_core::imp::interface_hierarchy!(IEnumOfflineFilesItems, ::windows_core::IUnknown); impl IEnumOfflineFilesItems { pub unsafe fn Next(&self, rgelt: &mut [::core::option::Option], pceltfetched: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), ::core::mem::transmute(rgelt.as_ptr()), pceltfetched).ok() @@ -39,13 +38,6 @@ impl IEnumOfflineFilesItems { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumOfflineFilesItems, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumOfflineFilesItems { - type Vtable = IEnumOfflineFilesItems_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumOfflineFilesItems { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xda70e815_c361_4407_bc0b_0d7046e5f2cd); -} #[repr(C)] #[doc(hidden)] pub struct IEnumOfflineFilesItems_Vtbl { @@ -55,9 +47,8 @@ pub struct IEnumOfflineFilesItems_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumOfflineFilesSettings(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumOfflineFilesSettings, IEnumOfflineFilesSettings_Vtbl, 0x729680c4_1a38_47bc_9e5c_02c51562ac30); +::windows_core::imp::interface_hierarchy!(IEnumOfflineFilesSettings, ::windows_core::IUnknown); impl IEnumOfflineFilesSettings { pub unsafe fn Next(&self, rgelt: &mut [::core::option::Option], pceltfetched: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), ::core::mem::transmute(rgelt.as_ptr()), pceltfetched).ok() @@ -73,13 +64,6 @@ impl IEnumOfflineFilesSettings { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumOfflineFilesSettings, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumOfflineFilesSettings { - type Vtable = IEnumOfflineFilesSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumOfflineFilesSettings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x729680c4_1a38_47bc_9e5c_02c51562ac30); -} #[repr(C)] #[doc(hidden)] pub struct IEnumOfflineFilesSettings_Vtbl { @@ -89,9 +73,8 @@ pub struct IEnumOfflineFilesSettings_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOfflineFilesCache(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOfflineFilesCache, IOfflineFilesCache_Vtbl, 0x855d6203_7914_48b9_8d40_4c56f5acffc5); +::windows_core::imp::interface_hierarchy!(IOfflineFilesCache, ::windows_core::IUnknown); impl IOfflineFilesCache { pub unsafe fn Synchronize(&self, hwndparent: P0, rgpszpaths: &[::windows_core::PCWSTR], basync: P1, dwsynccontrol: u32, pisyncconflicthandler: P2, piprogress: P3, psyncid: ::core::option::Option<*const ::windows_core::GUID>) -> ::windows_core::Result<()> where @@ -208,13 +191,6 @@ impl IOfflineFilesCache { (::windows_core::Interface::vtable(self).IsPathCacheable)(::windows_core::Interface::as_raw(self), pszpath.into_param().abi(), pbcacheable, psharecachingmode).ok() } } -::windows_core::imp::interface_hierarchy!(IOfflineFilesCache, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOfflineFilesCache { - type Vtable = IOfflineFilesCache_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOfflineFilesCache { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x855d6203_7914_48b9_8d40_4c56f5acffc5); -} #[repr(C)] #[doc(hidden)] pub struct IOfflineFilesCache_Vtbl { @@ -237,9 +213,8 @@ pub struct IOfflineFilesCache_Vtbl { pub EnumSettingObjects: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub IsPathCacheable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszpath: ::windows_core::PCWSTR, pbcacheable: *mut super::super::Foundation::BOOL, psharecachingmode: *mut OFFLINEFILES_CACHING_MODE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOfflineFilesCache2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOfflineFilesCache2, IOfflineFilesCache2_Vtbl, 0x8c075039_1551_4ed9_8781_56705c04d3c0); +::windows_core::imp::interface_hierarchy!(IOfflineFilesCache2, ::windows_core::IUnknown, IOfflineFilesCache); impl IOfflineFilesCache2 { pub unsafe fn Synchronize(&self, hwndparent: P0, rgpszpaths: &[::windows_core::PCWSTR], basync: P1, dwsynccontrol: u32, pisyncconflicthandler: P2, piprogress: P3, psyncid: ::core::option::Option<*const ::windows_core::GUID>) -> ::windows_core::Result<()> where @@ -364,22 +339,14 @@ impl IOfflineFilesCache2 { (::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::imp::interface_hierarchy!(IOfflineFilesCache2, ::windows_core::IUnknown, IOfflineFilesCache); -unsafe impl ::windows_core::Interface for IOfflineFilesCache2 { - type Vtable = IOfflineFilesCache2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOfflineFilesCache2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8c075039_1551_4ed9_8781_56705c04d3c0); -} #[repr(C)] #[doc(hidden)] pub struct IOfflineFilesCache2_Vtbl { pub base__: IOfflineFilesCache_Vtbl, pub RenameItemEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszpathoriginal: ::windows_core::PCWSTR, pszpathnew: ::windows_core::PCWSTR, breplaceifexists: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOfflineFilesChangeInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOfflineFilesChangeInfo, IOfflineFilesChangeInfo_Vtbl, 0xa96e6fa4_e0d1_4c29_960b_ee508fe68c72); +::windows_core::imp::interface_hierarchy!(IOfflineFilesChangeInfo, ::windows_core::IUnknown); impl IOfflineFilesChangeInfo { pub unsafe fn IsDirty(&self, pbdirty: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT { (::windows_core::Interface::vtable(self).IsDirty)(::windows_core::Interface::as_raw(self), pbdirty) @@ -405,13 +372,6 @@ impl IOfflineFilesChangeInfo { (::windows_core::Interface::vtable(self).IsLocallyModifiedTime)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IOfflineFilesChangeInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOfflineFilesChangeInfo { - type Vtable = IOfflineFilesChangeInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOfflineFilesChangeInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa96e6fa4_e0d1_4c29_960b_ee508fe68c72); -} #[repr(C)] #[doc(hidden)] pub struct IOfflineFilesChangeInfo_Vtbl { @@ -423,9 +383,8 @@ pub struct IOfflineFilesChangeInfo_Vtbl { pub IsLocallyModifiedAttributes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pblocallymodifiedattributes: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub IsLocallyModifiedTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pblocallymodifiedtime: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOfflineFilesConnectionInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOfflineFilesConnectionInfo, IOfflineFilesConnectionInfo_Vtbl, 0xefb23a09_a867_4be8_83a6_86969a7d0856); +::windows_core::imp::interface_hierarchy!(IOfflineFilesConnectionInfo, ::windows_core::IUnknown); impl IOfflineFilesConnectionInfo { pub unsafe fn GetConnectState(&self, pconnectstate: *mut OFFLINEFILES_CONNECT_STATE, pofflinereason: *mut OFFLINEFILES_OFFLINE_REASON) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetConnectState)(::windows_core::Interface::as_raw(self), pconnectstate, pofflinereason).ok() @@ -451,13 +410,6 @@ impl IOfflineFilesConnectionInfo { (::windows_core::Interface::vtable(self).TransitionOffline)(::windows_core::Interface::as_raw(self), hwndparent.into_param().abi(), dwflags, bforceopenfilesclosed.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IOfflineFilesConnectionInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOfflineFilesConnectionInfo { - type Vtable = IOfflineFilesConnectionInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOfflineFilesConnectionInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xefb23a09_a867_4be8_83a6_86969a7d0856); -} #[repr(C)] #[doc(hidden)] pub struct IOfflineFilesConnectionInfo_Vtbl { @@ -467,9 +419,8 @@ pub struct IOfflineFilesConnectionInfo_Vtbl { pub TransitionOnline: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwndparent: super::super::Foundation::HWND, dwflags: u32) -> ::windows_core::HRESULT, pub TransitionOffline: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwndparent: super::super::Foundation::HWND, dwflags: u32, bforceopenfilesclosed: super::super::Foundation::BOOL, pbopenfilespreventedtransition: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOfflineFilesDirectoryItem(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOfflineFilesDirectoryItem, IOfflineFilesDirectoryItem_Vtbl, 0x2273597a_a08c_4a00_a37a_c1ae4e9a1cfd); +::windows_core::imp::interface_hierarchy!(IOfflineFilesDirectoryItem, ::windows_core::IUnknown, IOfflineFilesItem); impl IOfflineFilesDirectoryItem { pub unsafe fn GetItemType(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -491,21 +442,13 @@ impl IOfflineFilesDirectoryItem { (::windows_core::Interface::vtable(self).base__.IsMarkedForDeletion)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IOfflineFilesDirectoryItem, ::windows_core::IUnknown, IOfflineFilesItem); -unsafe impl ::windows_core::Interface for IOfflineFilesDirectoryItem { - type Vtable = IOfflineFilesDirectoryItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOfflineFilesDirectoryItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2273597a_a08c_4a00_a37a_c1ae4e9a1cfd); -} #[repr(C)] #[doc(hidden)] pub struct IOfflineFilesDirectoryItem_Vtbl { pub base__: IOfflineFilesItem_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOfflineFilesDirtyInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOfflineFilesDirtyInfo, IOfflineFilesDirtyInfo_Vtbl, 0x0f50ce33_bac9_4eaa_a11d_da0e527d047d); +::windows_core::imp::interface_hierarchy!(IOfflineFilesDirtyInfo, ::windows_core::IUnknown); impl IOfflineFilesDirtyInfo { pub unsafe fn LocalDirtyByteCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -516,13 +459,6 @@ impl IOfflineFilesDirtyInfo { (::windows_core::Interface::vtable(self).RemoteDirtyByteCount)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IOfflineFilesDirtyInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOfflineFilesDirtyInfo { - type Vtable = IOfflineFilesDirtyInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOfflineFilesDirtyInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0f50ce33_bac9_4eaa_a11d_da0e527d047d); -} #[repr(C)] #[doc(hidden)] pub struct IOfflineFilesDirtyInfo_Vtbl { @@ -530,9 +466,8 @@ pub struct IOfflineFilesDirtyInfo_Vtbl { pub LocalDirtyByteCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdirtybytecount: *mut i64) -> ::windows_core::HRESULT, pub RemoteDirtyByteCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdirtybytecount: *mut i64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOfflineFilesErrorInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOfflineFilesErrorInfo, IOfflineFilesErrorInfo_Vtbl, 0x7112fa5f_7571_435a_8eb7_195c7c1429bc); +::windows_core::imp::interface_hierarchy!(IOfflineFilesErrorInfo, ::windows_core::IUnknown); impl IOfflineFilesErrorInfo { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -545,13 +480,6 @@ impl IOfflineFilesErrorInfo { (::windows_core::Interface::vtable(self).GetDescription)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IOfflineFilesErrorInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOfflineFilesErrorInfo { - type Vtable = IOfflineFilesErrorInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOfflineFilesErrorInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7112fa5f_7571_435a_8eb7_195c7c1429bc); -} #[repr(C)] #[doc(hidden)] pub struct IOfflineFilesErrorInfo_Vtbl { @@ -562,9 +490,8 @@ pub struct IOfflineFilesErrorInfo_Vtbl { GetRawData: usize, pub GetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppszdescription: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOfflineFilesEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOfflineFilesEvents, IOfflineFilesEvents_Vtbl, 0xe25585c1_0caa_4eb1_873b_1cae5b77c314); +::windows_core::imp::interface_hierarchy!(IOfflineFilesEvents, ::windows_core::IUnknown); impl IOfflineFilesEvents { pub unsafe fn CacheMoved(&self, pszoldpath: P0, psznewpath: P1) -> ::windows_core::Result<()> where @@ -700,13 +627,6 @@ impl IOfflineFilesEvents { (::windows_core::Interface::vtable(self).Ping)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IOfflineFilesEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOfflineFilesEvents { - type Vtable = IOfflineFilesEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOfflineFilesEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe25585c1_0caa_4eb1_873b_1cae5b77c314); -} #[repr(C)] #[doc(hidden)] pub struct IOfflineFilesEvents_Vtbl { @@ -737,9 +657,8 @@ pub struct IOfflineFilesEvents_Vtbl { pub DataLost: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Ping: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOfflineFilesEvents2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOfflineFilesEvents2, IOfflineFilesEvents2_Vtbl, 0x1ead8f56_ff76_4faa_a795_6f6ef792498b); +::windows_core::imp::interface_hierarchy!(IOfflineFilesEvents2, ::windows_core::IUnknown, IOfflineFilesEvents); impl IOfflineFilesEvents2 { pub unsafe fn CacheMoved(&self, pszoldpath: P0, psznewpath: P1) -> ::windows_core::Result<()> where @@ -902,13 +821,6 @@ impl IOfflineFilesEvents2 { (::windows_core::Interface::vtable(self).SettingsChangesApplied)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IOfflineFilesEvents2, ::windows_core::IUnknown, IOfflineFilesEvents); -unsafe impl ::windows_core::Interface for IOfflineFilesEvents2 { - type Vtable = IOfflineFilesEvents2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOfflineFilesEvents2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1ead8f56_ff76_4faa_a795_6f6ef792498b); -} #[repr(C)] #[doc(hidden)] pub struct IOfflineFilesEvents2_Vtbl { @@ -923,9 +835,8 @@ pub struct IOfflineFilesEvents2_Vtbl { pub PreferenceChangeDetected: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SettingsChangesApplied: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOfflineFilesEvents3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOfflineFilesEvents3, IOfflineFilesEvents3_Vtbl, 0x9ba04a45_ee69_42f0_9ab1_7db5c8805808); +::windows_core::imp::interface_hierarchy!(IOfflineFilesEvents3, ::windows_core::IUnknown, IOfflineFilesEvents, IOfflineFilesEvents2); impl IOfflineFilesEvents3 { pub unsafe fn CacheMoved(&self, pszoldpath: P0, psznewpath: P1) -> ::windows_core::Result<()> where @@ -1109,13 +1020,6 @@ impl IOfflineFilesEvents3 { (::windows_core::Interface::vtable(self).PrefetchFileEnd)(::windows_core::Interface::as_raw(self), pszpath.into_param().abi(), hrresult).ok() } } -::windows_core::imp::interface_hierarchy!(IOfflineFilesEvents3, ::windows_core::IUnknown, IOfflineFilesEvents, IOfflineFilesEvents2); -unsafe impl ::windows_core::Interface for IOfflineFilesEvents3 { - type Vtable = IOfflineFilesEvents3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOfflineFilesEvents3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9ba04a45_ee69_42f0_9ab1_7db5c8805808); -} #[repr(C)] #[doc(hidden)] pub struct IOfflineFilesEvents3_Vtbl { @@ -1124,9 +1028,8 @@ pub struct IOfflineFilesEvents3_Vtbl { pub PrefetchFileBegin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszpath: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub PrefetchFileEnd: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszpath: ::windows_core::PCWSTR, hrresult: ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOfflineFilesEvents4(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOfflineFilesEvents4, IOfflineFilesEvents4_Vtbl, 0xdbd69b1e_c7d2_473e_b35f_9d8c24c0c484); +::windows_core::imp::interface_hierarchy!(IOfflineFilesEvents4, ::windows_core::IUnknown, IOfflineFilesEvents, IOfflineFilesEvents2, IOfflineFilesEvents3); impl IOfflineFilesEvents4 { pub unsafe fn CacheMoved(&self, pszoldpath: P0, psznewpath: P1) -> ::windows_core::Result<()> where @@ -1316,13 +1219,6 @@ impl IOfflineFilesEvents4 { (::windows_core::Interface::vtable(self).PrefetchCloseHandleEnd)(::windows_core::Interface::as_raw(self), dwclosedhandlecount, dwopenhandlecount, hrresult).ok() } } -::windows_core::imp::interface_hierarchy!(IOfflineFilesEvents4, ::windows_core::IUnknown, IOfflineFilesEvents, IOfflineFilesEvents2, IOfflineFilesEvents3); -unsafe impl ::windows_core::Interface for IOfflineFilesEvents4 { - type Vtable = IOfflineFilesEvents4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOfflineFilesEvents4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdbd69b1e_c7d2_473e_b35f_9d8c24c0c484); -} #[repr(C)] #[doc(hidden)] pub struct IOfflineFilesEvents4_Vtbl { @@ -1330,9 +1226,8 @@ pub struct IOfflineFilesEvents4_Vtbl { pub PrefetchCloseHandleBegin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub PrefetchCloseHandleEnd: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwclosedhandlecount: u32, dwopenhandlecount: u32, hrresult: ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOfflineFilesEventsFilter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOfflineFilesEventsFilter, IOfflineFilesEventsFilter_Vtbl, 0x33fc4e1b_0716_40fa_ba65_6e62a84a846f); +::windows_core::imp::interface_hierarchy!(IOfflineFilesEventsFilter, ::windows_core::IUnknown); impl IOfflineFilesEventsFilter { pub unsafe fn GetPathFilter(&self, ppszfilter: *mut ::windows_core::PWSTR, pmatch: *mut OFFLINEFILES_PATHFILTER_MATCH) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetPathFilter)(::windows_core::Interface::as_raw(self), ppszfilter, pmatch).ok() @@ -1344,13 +1239,6 @@ impl IOfflineFilesEventsFilter { (::windows_core::Interface::vtable(self).GetExcludedEvents)(::windows_core::Interface::as_raw(self), prgevents.len().try_into().unwrap(), ::core::mem::transmute(prgevents.as_ptr()), pcevents).ok() } } -::windows_core::imp::interface_hierarchy!(IOfflineFilesEventsFilter, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOfflineFilesEventsFilter { - type Vtable = IOfflineFilesEventsFilter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOfflineFilesEventsFilter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x33fc4e1b_0716_40fa_ba65_6e62a84a846f); -} #[repr(C)] #[doc(hidden)] pub struct IOfflineFilesEventsFilter_Vtbl { @@ -1359,9 +1247,8 @@ pub struct IOfflineFilesEventsFilter_Vtbl { pub GetIncludedEvents: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, celements: u32, prgevents: *mut OFFLINEFILES_EVENTS, pcevents: *mut u32) -> ::windows_core::HRESULT, pub GetExcludedEvents: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, celements: u32, prgevents: *mut OFFLINEFILES_EVENTS, pcevents: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOfflineFilesFileItem(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOfflineFilesFileItem, IOfflineFilesFileItem_Vtbl, 0x8dfadead_26c2_4eff_8a72_6b50723d9a00); +::windows_core::imp::interface_hierarchy!(IOfflineFilesFileItem, ::windows_core::IUnknown, IOfflineFilesItem); impl IOfflineFilesFileItem { pub unsafe fn GetItemType(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1391,13 +1278,6 @@ impl IOfflineFilesFileItem { (::windows_core::Interface::vtable(self).IsEncrypted)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IOfflineFilesFileItem, ::windows_core::IUnknown, IOfflineFilesItem); -unsafe impl ::windows_core::Interface for IOfflineFilesFileItem { - type Vtable = IOfflineFilesFileItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOfflineFilesFileItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8dfadead_26c2_4eff_8a72_6b50723d9a00); -} #[repr(C)] #[doc(hidden)] pub struct IOfflineFilesFileItem_Vtbl { @@ -1405,9 +1285,8 @@ pub struct IOfflineFilesFileItem_Vtbl { pub IsSparse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbissparse: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub IsEncrypted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbisencrypted: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOfflineFilesFileSysInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOfflineFilesFileSysInfo, IOfflineFilesFileSysInfo_Vtbl, 0xbc1a163f_7bfd_4d88_9c66_96ea9a6a3d6b); +::windows_core::imp::interface_hierarchy!(IOfflineFilesFileSysInfo, ::windows_core::IUnknown); impl IOfflineFilesFileSysInfo { pub unsafe fn GetAttributes(&self, copy: OFFLINEFILES_ITEM_COPY) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1421,13 +1300,6 @@ impl IOfflineFilesFileSysInfo { (::windows_core::Interface::vtable(self).GetFileSize)(::windows_core::Interface::as_raw(self), copy, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IOfflineFilesFileSysInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOfflineFilesFileSysInfo { - type Vtable = IOfflineFilesFileSysInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOfflineFilesFileSysInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbc1a163f_7bfd_4d88_9c66_96ea9a6a3d6b); -} #[repr(C)] #[doc(hidden)] pub struct IOfflineFilesFileSysInfo_Vtbl { @@ -1436,31 +1308,22 @@ pub struct IOfflineFilesFileSysInfo_Vtbl { pub GetTimes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, copy: OFFLINEFILES_ITEM_COPY, pftcreationtime: *mut super::super::Foundation::FILETIME, pftlastwritetime: *mut super::super::Foundation::FILETIME, pftchangetime: *mut super::super::Foundation::FILETIME, pftlastaccesstime: *mut super::super::Foundation::FILETIME) -> ::windows_core::HRESULT, pub GetFileSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, copy: OFFLINEFILES_ITEM_COPY, psize: *mut i64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOfflineFilesGhostInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOfflineFilesGhostInfo, IOfflineFilesGhostInfo_Vtbl, 0x2b09d48c_8ab5_464f_a755_a59d92f99429); +::windows_core::imp::interface_hierarchy!(IOfflineFilesGhostInfo, ::windows_core::IUnknown); impl IOfflineFilesGhostInfo { pub unsafe fn IsGhosted(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).IsGhosted)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IOfflineFilesGhostInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOfflineFilesGhostInfo { - type Vtable = IOfflineFilesGhostInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOfflineFilesGhostInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2b09d48c_8ab5_464f_a755_a59d92f99429); -} #[repr(C)] #[doc(hidden)] pub struct IOfflineFilesGhostInfo_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub IsGhosted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbghosted: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOfflineFilesItem(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOfflineFilesItem, IOfflineFilesItem_Vtbl, 0x4a753da6_e044_4f12_a718_5d14d079a906); +::windows_core::imp::interface_hierarchy!(IOfflineFilesItem, ::windows_core::IUnknown); impl IOfflineFilesItem { pub unsafe fn GetItemType(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1482,13 +1345,6 @@ impl IOfflineFilesItem { (::windows_core::Interface::vtable(self).IsMarkedForDeletion)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IOfflineFilesItem, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOfflineFilesItem { - type Vtable = IOfflineFilesItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOfflineFilesItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4a753da6_e044_4f12_a718_5d14d079a906); -} #[repr(C)] #[doc(hidden)] pub struct IOfflineFilesItem_Vtbl { @@ -1499,9 +1355,8 @@ pub struct IOfflineFilesItem_Vtbl { pub Refresh: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwqueryflags: u32) -> ::windows_core::HRESULT, pub IsMarkedForDeletion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbmarkedfordeletion: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOfflineFilesItemContainer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOfflineFilesItemContainer, IOfflineFilesItemContainer_Vtbl, 0x3836f049_9413_45dd_bf46_b5aaa82dc310); +::windows_core::imp::interface_hierarchy!(IOfflineFilesItemContainer, ::windows_core::IUnknown); impl IOfflineFilesItemContainer { pub unsafe fn EnumItems(&self, dwqueryflags: u32) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1518,13 +1373,6 @@ impl IOfflineFilesItemContainer { (::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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IOfflineFilesItemContainer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOfflineFilesItemContainer { - type Vtable = IOfflineFilesItemContainer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOfflineFilesItemContainer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3836f049_9413_45dd_bf46_b5aaa82dc310); -} #[repr(C)] #[doc(hidden)] pub struct IOfflineFilesItemContainer_Vtbl { @@ -1532,9 +1380,8 @@ pub struct IOfflineFilesItemContainer_Vtbl { pub EnumItems: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwqueryflags: u32, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub EnumItemsEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pincludefilefilter: *mut ::core::ffi::c_void, pincludedirfilter: *mut ::core::ffi::c_void, pexcludefilefilter: *mut ::core::ffi::c_void, pexcludedirfilter: *mut ::core::ffi::c_void, dwenumflags: u32, dwqueryflags: u32, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOfflineFilesItemFilter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOfflineFilesItemFilter, IOfflineFilesItemFilter_Vtbl, 0xf4b5a26c_dc05_4f20_ada4_551f1077be5c); +::windows_core::imp::interface_hierarchy!(IOfflineFilesItemFilter, ::windows_core::IUnknown); impl IOfflineFilesItemFilter { pub unsafe fn GetFilterFlags(&self, pullflags: *mut u64, pullmask: *mut u64) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetFilterFlags)(::windows_core::Interface::as_raw(self), pullflags, pullmask).ok() @@ -1546,13 +1393,6 @@ impl IOfflineFilesItemFilter { (::windows_core::Interface::vtable(self).GetPatternFilter)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pszpattern.as_ptr()), pszpattern.len().try_into().unwrap()).ok() } } -::windows_core::imp::interface_hierarchy!(IOfflineFilesItemFilter, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOfflineFilesItemFilter { - type Vtable = IOfflineFilesItemFilter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOfflineFilesItemFilter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf4b5a26c_dc05_4f20_ada4_551f1077be5c); -} #[repr(C)] #[doc(hidden)] pub struct IOfflineFilesItemFilter_Vtbl { @@ -1561,9 +1401,8 @@ pub struct IOfflineFilesItemFilter_Vtbl { pub GetTimeFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfttime: *mut super::super::Foundation::FILETIME, pbevaltimeofday: *mut super::super::Foundation::BOOL, ptimetype: *mut OFFLINEFILES_ITEM_TIME, pcompare: *mut OFFLINEFILES_COMPARE) -> ::windows_core::HRESULT, pub GetPatternFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszpattern: ::windows_core::PWSTR, cchpattern: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOfflineFilesPinInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOfflineFilesPinInfo, IOfflineFilesPinInfo_Vtbl, 0x5b2b0655_b3fd_497d_adeb_bd156bc8355b); +::windows_core::imp::interface_hierarchy!(IOfflineFilesPinInfo, ::windows_core::IUnknown); impl IOfflineFilesPinInfo { pub unsafe fn IsPinned(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1582,13 +1421,6 @@ impl IOfflineFilesPinInfo { (::windows_core::Interface::vtable(self).IsPinnedForFolderRedirection)(::windows_core::Interface::as_raw(self), pbpinnedforfolderredirection, pbinherit).ok() } } -::windows_core::imp::interface_hierarchy!(IOfflineFilesPinInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOfflineFilesPinInfo { - type Vtable = IOfflineFilesPinInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOfflineFilesPinInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5b2b0655_b3fd_497d_adeb_bd156bc8355b); -} #[repr(C)] #[doc(hidden)] pub struct IOfflineFilesPinInfo_Vtbl { @@ -1599,9 +1431,8 @@ pub struct IOfflineFilesPinInfo_Vtbl { pub IsPinnedForComputer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbpinnedforcomputer: *mut super::super::Foundation::BOOL, pbinherit: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub IsPinnedForFolderRedirection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbpinnedforfolderredirection: *mut super::super::Foundation::BOOL, pbinherit: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOfflineFilesPinInfo2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOfflineFilesPinInfo2, IOfflineFilesPinInfo2_Vtbl, 0x623c58a2_42ed_4ad7_b69a_0f1b30a72d0d); +::windows_core::imp::interface_hierarchy!(IOfflineFilesPinInfo2, ::windows_core::IUnknown, IOfflineFilesPinInfo); impl IOfflineFilesPinInfo2 { pub unsafe fn IsPinned(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1624,22 +1455,14 @@ impl IOfflineFilesPinInfo2 { (::windows_core::Interface::vtable(self).IsPartlyPinned)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IOfflineFilesPinInfo2, ::windows_core::IUnknown, IOfflineFilesPinInfo); -unsafe impl ::windows_core::Interface for IOfflineFilesPinInfo2 { - type Vtable = IOfflineFilesPinInfo2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOfflineFilesPinInfo2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x623c58a2_42ed_4ad7_b69a_0f1b30a72d0d); -} #[repr(C)] #[doc(hidden)] pub struct IOfflineFilesPinInfo2_Vtbl { pub base__: IOfflineFilesPinInfo_Vtbl, pub IsPartlyPinned: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbpartlypinned: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOfflineFilesProgress(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOfflineFilesProgress, IOfflineFilesProgress_Vtbl, 0xfad63237_c55b_4911_9850_bcf96d4c979e); +::windows_core::imp::interface_hierarchy!(IOfflineFilesProgress, ::windows_core::IUnknown); impl IOfflineFilesProgress { pub unsafe fn Begin(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1653,13 +1476,6 @@ impl IOfflineFilesProgress { (::windows_core::Interface::vtable(self).End)(::windows_core::Interface::as_raw(self), hrresult).ok() } } -::windows_core::imp::interface_hierarchy!(IOfflineFilesProgress, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOfflineFilesProgress { - type Vtable = IOfflineFilesProgress_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOfflineFilesProgress { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfad63237_c55b_4911_9850_bcf96d4c979e); -} #[repr(C)] #[doc(hidden)] pub struct IOfflineFilesProgress_Vtbl { @@ -1668,9 +1484,8 @@ pub struct IOfflineFilesProgress_Vtbl { pub QueryAbort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbabort: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub End: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hrresult: ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOfflineFilesServerItem(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOfflineFilesServerItem, IOfflineFilesServerItem_Vtbl, 0x9b1c9576_a92b_4151_8e9e_7c7b3ec2e016); +::windows_core::imp::interface_hierarchy!(IOfflineFilesServerItem, ::windows_core::IUnknown, IOfflineFilesItem); impl IOfflineFilesServerItem { pub unsafe fn GetItemType(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1692,21 +1507,13 @@ impl IOfflineFilesServerItem { (::windows_core::Interface::vtable(self).base__.IsMarkedForDeletion)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IOfflineFilesServerItem, ::windows_core::IUnknown, IOfflineFilesItem); -unsafe impl ::windows_core::Interface for IOfflineFilesServerItem { - type Vtable = IOfflineFilesServerItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOfflineFilesServerItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9b1c9576_a92b_4151_8e9e_7c7b3ec2e016); -} #[repr(C)] #[doc(hidden)] pub struct IOfflineFilesServerItem_Vtbl { pub base__: IOfflineFilesItem_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOfflineFilesSetting(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOfflineFilesSetting, IOfflineFilesSetting_Vtbl, 0xd871d3f7_f613_48a1_827e_7a34e560fff6); +::windows_core::imp::interface_hierarchy!(IOfflineFilesSetting, ::windows_core::IUnknown); impl IOfflineFilesSetting { pub unsafe fn GetName(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); @@ -1748,13 +1555,6 @@ impl IOfflineFilesSetting { (::windows_core::Interface::vtable(self).GetValue)(::windows_core::Interface::as_raw(self), pvarvalue, pbsetbypolicy).ok() } } -::windows_core::imp::interface_hierarchy!(IOfflineFilesSetting, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOfflineFilesSetting { - type Vtable = IOfflineFilesSetting_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOfflineFilesSetting { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd871d3f7_f613_48a1_827e_7a34e560fff6); -} #[repr(C)] #[doc(hidden)] pub struct IOfflineFilesSetting_Vtbl { @@ -1781,9 +1581,8 @@ pub struct IOfflineFilesSetting_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] GetValue: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOfflineFilesShareInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOfflineFilesShareInfo, IOfflineFilesShareInfo_Vtbl, 0x7bcc43e7_31ce_4ca4_8ccd_1cff2dc494da); +::windows_core::imp::interface_hierarchy!(IOfflineFilesShareInfo, ::windows_core::IUnknown); impl IOfflineFilesShareInfo { pub unsafe fn GetShareItem(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1798,13 +1597,6 @@ impl IOfflineFilesShareInfo { (::windows_core::Interface::vtable(self).IsShareDfsJunction)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IOfflineFilesShareInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOfflineFilesShareInfo { - type Vtable = IOfflineFilesShareInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOfflineFilesShareInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7bcc43e7_31ce_4ca4_8ccd_1cff2dc494da); -} #[repr(C)] #[doc(hidden)] pub struct IOfflineFilesShareInfo_Vtbl { @@ -1813,9 +1605,8 @@ pub struct IOfflineFilesShareInfo_Vtbl { pub GetShareCachingMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcachingmode: *mut OFFLINEFILES_CACHING_MODE) -> ::windows_core::HRESULT, pub IsShareDfsJunction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbisdfsjunction: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOfflineFilesShareItem(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOfflineFilesShareItem, IOfflineFilesShareItem_Vtbl, 0xbab7e48d_4804_41b5_a44d_0f199b06b145); +::windows_core::imp::interface_hierarchy!(IOfflineFilesShareItem, ::windows_core::IUnknown, IOfflineFilesItem); impl IOfflineFilesShareItem { pub unsafe fn GetItemType(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1837,21 +1628,13 @@ impl IOfflineFilesShareItem { (::windows_core::Interface::vtable(self).base__.IsMarkedForDeletion)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IOfflineFilesShareItem, ::windows_core::IUnknown, IOfflineFilesItem); -unsafe impl ::windows_core::Interface for IOfflineFilesShareItem { - type Vtable = IOfflineFilesShareItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOfflineFilesShareItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbab7e48d_4804_41b5_a44d_0f199b06b145); -} #[repr(C)] #[doc(hidden)] pub struct IOfflineFilesShareItem_Vtbl { pub base__: IOfflineFilesItem_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOfflineFilesSimpleProgress(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOfflineFilesSimpleProgress, IOfflineFilesSimpleProgress_Vtbl, 0xc34f7f9b_c43d_4f9d_a776_c0eb6de5d401); +::windows_core::imp::interface_hierarchy!(IOfflineFilesSimpleProgress, ::windows_core::IUnknown, IOfflineFilesProgress); impl IOfflineFilesSimpleProgress { pub unsafe fn Begin(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1879,13 +1662,6 @@ impl IOfflineFilesSimpleProgress { (::windows_core::Interface::vtable(self).ItemResult)(::windows_core::Interface::as_raw(self), pszfile.into_param().abi(), hrresult, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IOfflineFilesSimpleProgress, ::windows_core::IUnknown, IOfflineFilesProgress); -unsafe impl ::windows_core::Interface for IOfflineFilesSimpleProgress { - type Vtable = IOfflineFilesSimpleProgress_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOfflineFilesSimpleProgress { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc34f7f9b_c43d_4f9d_a776_c0eb6de5d401); -} #[repr(C)] #[doc(hidden)] pub struct IOfflineFilesSimpleProgress_Vtbl { @@ -1893,9 +1669,8 @@ pub struct IOfflineFilesSimpleProgress_Vtbl { pub ItemBegin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszfile: ::windows_core::PCWSTR, presponse: *mut OFFLINEFILES_OP_RESPONSE) -> ::windows_core::HRESULT, pub ItemResult: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszfile: ::windows_core::PCWSTR, hrresult: ::windows_core::HRESULT, presponse: *mut OFFLINEFILES_OP_RESPONSE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOfflineFilesSuspend(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOfflineFilesSuspend, IOfflineFilesSuspend_Vtbl, 0x62c4560f_bc0b_48ca_ad9d_34cb528d99a9); +::windows_core::imp::interface_hierarchy!(IOfflineFilesSuspend, ::windows_core::IUnknown); impl IOfflineFilesSuspend { pub unsafe fn SuspendRoot(&self, bsuspend: P0) -> ::windows_core::Result<()> where @@ -1904,43 +1679,27 @@ impl IOfflineFilesSuspend { (::windows_core::Interface::vtable(self).SuspendRoot)(::windows_core::Interface::as_raw(self), bsuspend.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IOfflineFilesSuspend, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOfflineFilesSuspend { - type Vtable = IOfflineFilesSuspend_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOfflineFilesSuspend { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x62c4560f_bc0b_48ca_ad9d_34cb528d99a9); -} #[repr(C)] #[doc(hidden)] pub struct IOfflineFilesSuspend_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub SuspendRoot: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bsuspend: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOfflineFilesSuspendInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOfflineFilesSuspendInfo, IOfflineFilesSuspendInfo_Vtbl, 0xa457c25b_4e9c_4b04_85af_8932ccd97889); +::windows_core::imp::interface_hierarchy!(IOfflineFilesSuspendInfo, ::windows_core::IUnknown); impl IOfflineFilesSuspendInfo { pub unsafe fn IsSuspended(&self, pbsuspended: *mut super::super::Foundation::BOOL, pbsuspendedroot: *mut super::super::Foundation::BOOL) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).IsSuspended)(::windows_core::Interface::as_raw(self), pbsuspended, pbsuspendedroot).ok() } } -::windows_core::imp::interface_hierarchy!(IOfflineFilesSuspendInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOfflineFilesSuspendInfo { - type Vtable = IOfflineFilesSuspendInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOfflineFilesSuspendInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa457c25b_4e9c_4b04_85af_8932ccd97889); -} #[repr(C)] #[doc(hidden)] pub struct IOfflineFilesSuspendInfo_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub IsSuspended: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbsuspended: *mut super::super::Foundation::BOOL, pbsuspendedroot: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOfflineFilesSyncConflictHandler(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOfflineFilesSyncConflictHandler, IOfflineFilesSyncConflictHandler_Vtbl, 0xb6dd5092_c65c_46b6_97b8_fadd08e7e1be); +::windows_core::imp::interface_hierarchy!(IOfflineFilesSyncConflictHandler, ::windows_core::IUnknown); 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 @@ -1949,22 +1708,14 @@ impl IOfflineFilesSyncConflictHandler { (::windows_core::Interface::vtable(self).ResolveConflict)(::windows_core::Interface::as_raw(self), pszpath.into_param().abi(), fstateknown, state, fchangedetails, pconflictresolution, ppsznewname).ok() } } -::windows_core::imp::interface_hierarchy!(IOfflineFilesSyncConflictHandler, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOfflineFilesSyncConflictHandler { - type Vtable = IOfflineFilesSyncConflictHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOfflineFilesSyncConflictHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb6dd5092_c65c_46b6_97b8_fadd08e7e1be); -} #[repr(C)] #[doc(hidden)] pub struct IOfflineFilesSyncConflictHandler_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub ResolveConflict: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszpath: ::windows_core::PCWSTR, fstateknown: u32, state: OFFLINEFILES_SYNC_STATE, fchangedetails: u32, pconflictresolution: *mut OFFLINEFILES_SYNC_CONFLICT_RESOLVE, ppsznewname: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOfflineFilesSyncErrorInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOfflineFilesSyncErrorInfo, IOfflineFilesSyncErrorInfo_Vtbl, 0x59f95e46_eb54_49d1_be76_de95458d01b0); +::windows_core::imp::interface_hierarchy!(IOfflineFilesSyncErrorInfo, ::windows_core::IUnknown, IOfflineFilesErrorInfo); impl IOfflineFilesSyncErrorInfo { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -2003,13 +1754,6 @@ impl IOfflineFilesSyncErrorInfo { (::windows_core::Interface::vtable(self).GetOriginalInfo)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IOfflineFilesSyncErrorInfo, ::windows_core::IUnknown, IOfflineFilesErrorInfo); -unsafe impl ::windows_core::Interface for IOfflineFilesSyncErrorInfo { - type Vtable = IOfflineFilesSyncErrorInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOfflineFilesSyncErrorInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x59f95e46_eb54_49d1_be76_de95458d01b0); -} #[repr(C)] #[doc(hidden)] pub struct IOfflineFilesSyncErrorInfo_Vtbl { @@ -2022,9 +1766,8 @@ pub struct IOfflineFilesSyncErrorInfo_Vtbl { pub GetRemoteInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppinfo: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetOriginalInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppinfo: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOfflineFilesSyncErrorItemInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOfflineFilesSyncErrorItemInfo, IOfflineFilesSyncErrorItemInfo_Vtbl, 0xecdbaf0d_6a18_4d55_8017_108f7660ba44); +::windows_core::imp::interface_hierarchy!(IOfflineFilesSyncErrorItemInfo, ::windows_core::IUnknown); impl IOfflineFilesSyncErrorItemInfo { pub unsafe fn GetFileAttributes(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2038,13 +1781,6 @@ impl IOfflineFilesSyncErrorItemInfo { (::windows_core::Interface::vtable(self).GetFileSize)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IOfflineFilesSyncErrorItemInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOfflineFilesSyncErrorItemInfo { - type Vtable = IOfflineFilesSyncErrorItemInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOfflineFilesSyncErrorItemInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xecdbaf0d_6a18_4d55_8017_108f7660ba44); -} #[repr(C)] #[doc(hidden)] pub struct IOfflineFilesSyncErrorItemInfo_Vtbl { @@ -2053,9 +1789,8 @@ pub struct IOfflineFilesSyncErrorItemInfo_Vtbl { pub GetFileTimes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pftlastwrite: *mut super::super::Foundation::FILETIME, pftchange: *mut super::super::Foundation::FILETIME) -> ::windows_core::HRESULT, pub GetFileSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psize: *mut i64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOfflineFilesSyncProgress(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOfflineFilesSyncProgress, IOfflineFilesSyncProgress_Vtbl, 0x6931f49a_6fc7_4c1b_b265_56793fc451b7); +::windows_core::imp::interface_hierarchy!(IOfflineFilesSyncProgress, ::windows_core::IUnknown, IOfflineFilesProgress); impl IOfflineFilesSyncProgress { pub unsafe fn Begin(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2084,13 +1819,6 @@ impl IOfflineFilesSyncProgress { (::windows_core::Interface::vtable(self).SyncItemResult)(::windows_core::Interface::as_raw(self), pszfile.into_param().abi(), hrresult, perrorinfo.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IOfflineFilesSyncProgress, ::windows_core::IUnknown, IOfflineFilesProgress); -unsafe impl ::windows_core::Interface for IOfflineFilesSyncProgress { - type Vtable = IOfflineFilesSyncProgress_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOfflineFilesSyncProgress { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6931f49a_6fc7_4c1b_b265_56793fc451b7); -} #[repr(C)] #[doc(hidden)] pub struct IOfflineFilesSyncProgress_Vtbl { @@ -2098,22 +1826,14 @@ pub struct IOfflineFilesSyncProgress_Vtbl { pub SyncItemBegin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszfile: ::windows_core::PCWSTR, presponse: *mut OFFLINEFILES_OP_RESPONSE) -> ::windows_core::HRESULT, pub SyncItemResult: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszfile: ::windows_core::PCWSTR, hrresult: ::windows_core::HRESULT, perrorinfo: *mut ::core::ffi::c_void, presponse: *mut OFFLINEFILES_OP_RESPONSE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOfflineFilesTransparentCacheInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOfflineFilesTransparentCacheInfo, IOfflineFilesTransparentCacheInfo_Vtbl, 0xbcaf4a01_5b68_4b56_a6a1_8d2786ede8e3); +::windows_core::imp::interface_hierarchy!(IOfflineFilesTransparentCacheInfo, ::windows_core::IUnknown); impl IOfflineFilesTransparentCacheInfo { pub unsafe fn IsTransparentlyCached(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).IsTransparentlyCached)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IOfflineFilesTransparentCacheInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOfflineFilesTransparentCacheInfo { - type Vtable = IOfflineFilesTransparentCacheInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOfflineFilesTransparentCacheInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbcaf4a01_5b68_4b56_a6a1_8d2786ede8e3); -} #[repr(C)] #[doc(hidden)] pub struct IOfflineFilesTransparentCacheInfo_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Storage/Packaging/Appx/impl.rs b/crates/libs/windows/src/Windows/Win32/Storage/Packaging/Appx/impl.rs index 705638d7d6..fa40334d09 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/Packaging/Appx/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/Packaging/Appx/impl.rs @@ -22,7 +22,7 @@ impl IAppxAppInstallerReader_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetXmlDom: GetXmlDom:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAppxBlockMapBlock_Impl: Sized { @@ -55,7 +55,7 @@ impl IAppxBlockMapBlock_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAppxBlockMapBlocksEnumerator_Impl: Sized { @@ -107,7 +107,7 @@ impl IAppxBlockMapBlocksEnumerator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -189,7 +189,7 @@ impl IAppxBlockMapFile_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAppxBlockMapFilesEnumerator_Impl: Sized { @@ -241,7 +241,7 @@ impl IAppxBlockMapFilesEnumerator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -310,7 +310,7 @@ impl IAppxBlockMapReader_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -366,7 +366,7 @@ impl IAppxBundleFactory_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -393,7 +393,7 @@ impl IAppxBundleFactory2_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CreateBundleReader2: CreateBundleReader2:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAppxBundleManifestOptionalBundleInfo_Impl: Sized { @@ -445,7 +445,7 @@ impl IAppxBundleManifestOptionalBundleInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAppxBundleManifestOptionalBundleInfoEnumerator_Impl: Sized { @@ -497,7 +497,7 @@ impl IAppxBundleManifestOptionalBundleInfoEnumerator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAppxBundleManifestPackageInfo_Impl: Sized { @@ -588,7 +588,7 @@ impl IAppxBundleManifestPackageInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAppxBundleManifestPackageInfo2_Impl: Sized { @@ -640,7 +640,7 @@ impl IAppxBundleManifestPackageInfo2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAppxBundleManifestPackageInfo3_Impl: Sized { @@ -663,7 +663,7 @@ impl IAppxBundleManifestPackageInfo3_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetTargetDeviceFamilies: GetTargetDeviceFamilies:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAppxBundleManifestPackageInfo4_Impl: Sized { @@ -686,7 +686,7 @@ impl IAppxBundleManifestPackageInfo4_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetIsStub: GetIsStub:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAppxBundleManifestPackageInfoEnumerator_Impl: Sized { @@ -738,7 +738,7 @@ impl IAppxBundleManifestPackageInfoEnumerator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -794,7 +794,7 @@ impl IAppxBundleManifestReader_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAppxBundleManifestReader2_Impl: Sized { @@ -817,7 +817,7 @@ impl IAppxBundleManifestReader2_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetOptionalBundles: GetOptionalBundles:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAppxBundleReader_Impl: Sized { @@ -895,7 +895,7 @@ impl IAppxBundleReader_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -926,7 +926,7 @@ impl IAppxBundleWriter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -950,7 +950,7 @@ impl IAppxBundleWriter2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -981,7 +981,7 @@ impl IAppxBundleWriter3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1019,7 +1019,7 @@ impl IAppxBundleWriter4_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAppxContentGroup_Impl: Sized { @@ -1058,7 +1058,7 @@ impl IAppxContentGroup_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAppxContentGroupFilesEnumerator_Impl: Sized { @@ -1110,7 +1110,7 @@ impl IAppxContentGroupFilesEnumerator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAppxContentGroupMapReader_Impl: Sized { @@ -1149,7 +1149,7 @@ impl IAppxContentGroupMapReader_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAppxContentGroupMapWriter_Impl: Sized { @@ -1183,7 +1183,7 @@ impl IAppxContentGroupMapWriter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAppxContentGroupsEnumerator_Impl: Sized { @@ -1235,7 +1235,7 @@ impl IAppxContentGroupsEnumerator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAppxDigestProvider_Impl: Sized { @@ -1258,7 +1258,7 @@ impl IAppxDigestProvider_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetDigest: GetDigest:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1289,7 +1289,7 @@ impl IAppxEncryptedBundleWriter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1313,7 +1313,7 @@ impl IAppxEncryptedBundleWriter2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1344,7 +1344,7 @@ impl IAppxEncryptedBundleWriter3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1375,7 +1375,7 @@ impl IAppxEncryptedPackageWriter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1396,7 +1396,7 @@ impl IAppxEncryptedPackageWriter2_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), AddPayloadFilesEncrypted: AddPayloadFilesEncrypted:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1493,7 +1493,7 @@ impl IAppxEncryptionFactory_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1523,7 +1523,7 @@ impl IAppxEncryptionFactory2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1580,7 +1580,7 @@ impl IAppxEncryptionFactory3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1601,7 +1601,7 @@ impl IAppxEncryptionFactory4_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), EncryptPackage: EncryptPackage:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1644,7 +1644,7 @@ impl IAppxEncryptionFactory5_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1726,7 +1726,7 @@ impl IAppxFactory_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1782,7 +1782,7 @@ impl IAppxFactory2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1838,7 +1838,7 @@ impl IAppxFactory3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1920,7 +1920,7 @@ impl IAppxFile_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAppxFilesEnumerator_Impl: Sized { @@ -1972,7 +1972,7 @@ impl IAppxFilesEnumerator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAppxManifestApplication_Impl: Sized { @@ -2011,7 +2011,7 @@ impl IAppxManifestApplication_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAppxManifestApplicationsEnumerator_Impl: Sized { @@ -2063,7 +2063,7 @@ impl IAppxManifestApplicationsEnumerator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAppxManifestCapabilitiesEnumerator_Impl: Sized { @@ -2115,7 +2115,7 @@ impl IAppxManifestCapabilitiesEnumerator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAppxManifestDeviceCapabilitiesEnumerator_Impl: Sized { @@ -2167,7 +2167,7 @@ impl IAppxManifestDeviceCapabilitiesEnumerator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAppxManifestDriverConstraint_Impl: Sized { @@ -2219,7 +2219,7 @@ impl IAppxManifestDriverConstraint_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAppxManifestDriverConstraintsEnumerator_Impl: Sized { @@ -2271,7 +2271,7 @@ impl IAppxManifestDriverConstraintsEnumerator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAppxManifestDriverDependenciesEnumerator_Impl: Sized { @@ -2323,7 +2323,7 @@ impl IAppxManifestDriverDependenciesEnumerator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAppxManifestDriverDependency_Impl: Sized { @@ -2346,7 +2346,7 @@ impl IAppxManifestDriverDependency_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetDriverConstraints: GetDriverConstraints:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAppxManifestHostRuntimeDependenciesEnumerator_Impl: Sized { @@ -2398,7 +2398,7 @@ impl IAppxManifestHostRuntimeDependenciesEnumerator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAppxManifestHostRuntimeDependency_Impl: Sized { @@ -2450,7 +2450,7 @@ impl IAppxManifestHostRuntimeDependency_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAppxManifestHostRuntimeDependency2_Impl: Sized { @@ -2473,7 +2473,7 @@ impl IAppxManifestHostRuntimeDependency2_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetPackageFamilyName: GetPackageFamilyName:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAppxManifestMainPackageDependenciesEnumerator_Impl: Sized { @@ -2525,7 +2525,7 @@ impl IAppxManifestMainPackageDependenciesEnumerator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAppxManifestMainPackageDependency_Impl: Sized { @@ -2577,7 +2577,7 @@ impl IAppxManifestMainPackageDependency_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAppxManifestOSPackageDependenciesEnumerator_Impl: Sized { @@ -2629,7 +2629,7 @@ impl IAppxManifestOSPackageDependenciesEnumerator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAppxManifestOSPackageDependency_Impl: Sized { @@ -2668,7 +2668,7 @@ impl IAppxManifestOSPackageDependency_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAppxManifestOptionalPackageInfo_Impl: Sized { @@ -2707,7 +2707,7 @@ impl IAppxManifestOptionalPackageInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAppxManifestPackageDependenciesEnumerator_Impl: Sized { @@ -2759,7 +2759,7 @@ impl IAppxManifestPackageDependenciesEnumerator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAppxManifestPackageDependency_Impl: Sized { @@ -2811,7 +2811,7 @@ impl IAppxManifestPackageDependency_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAppxManifestPackageDependency2_Impl: Sized + IAppxManifestPackageDependency_Impl { @@ -2837,7 +2837,7 @@ impl IAppxManifestPackageDependency2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IAppxManifestPackageDependency3_Impl: Sized { @@ -2860,7 +2860,7 @@ impl IAppxManifestPackageDependency3_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetIsOptional: GetIsOptional:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAppxManifestPackageId_Impl: Sized { @@ -2977,7 +2977,7 @@ impl IAppxManifestPackageId_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAppxManifestPackageId2_Impl: Sized + IAppxManifestPackageId_Impl { @@ -3000,7 +3000,7 @@ impl IAppxManifestPackageId2_Vtbl { Self { base__: IAppxManifestPackageId_Vtbl::new::(), GetArchitecture2: GetArchitecture2:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IAppxManifestProperties_Impl: Sized { @@ -3039,7 +3039,7 @@ impl IAppxManifestProperties_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAppxManifestQualifiedResource_Impl: Sized { @@ -3091,7 +3091,7 @@ impl IAppxManifestQualifiedResource_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAppxManifestQualifiedResourcesEnumerator_Impl: Sized { @@ -3143,7 +3143,7 @@ impl IAppxManifestQualifiedResourcesEnumerator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3277,7 +3277,7 @@ impl IAppxManifestReader_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3304,7 +3304,7 @@ impl IAppxManifestReader2_Vtbl { Self { base__: IAppxManifestReader_Vtbl::new::(), GetQualifiedResources: GetQualifiedResources:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3347,7 +3347,7 @@ impl IAppxManifestReader3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3374,7 +3374,7 @@ impl IAppxManifestReader4_Vtbl { Self { base__: IAppxManifestReader3_Vtbl::new::(), GetOptionalPackageInfo: GetOptionalPackageInfo:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IAppxManifestReader5_Impl: Sized { @@ -3400,7 +3400,7 @@ impl IAppxManifestReader5_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAppxManifestReader6_Impl: Sized { @@ -3426,7 +3426,7 @@ impl IAppxManifestReader6_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAppxManifestReader7_Impl: Sized { @@ -3478,7 +3478,7 @@ impl IAppxManifestReader7_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAppxManifestResourcesEnumerator_Impl: Sized { @@ -3530,7 +3530,7 @@ impl IAppxManifestResourcesEnumerator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAppxManifestTargetDeviceFamiliesEnumerator_Impl: Sized { @@ -3582,7 +3582,7 @@ impl IAppxManifestTargetDeviceFamiliesEnumerator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAppxManifestTargetDeviceFamily_Impl: Sized { @@ -3634,7 +3634,7 @@ impl IAppxManifestTargetDeviceFamily_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3693,7 +3693,7 @@ impl IAppxPackageEditor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAppxPackageReader_Impl: Sized { @@ -3771,7 +3771,7 @@ impl IAppxPackageReader_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3802,7 +3802,7 @@ impl IAppxPackageWriter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3823,7 +3823,7 @@ impl IAppxPackageWriter2_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Close: Close:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3844,7 +3844,7 @@ impl IAppxPackageWriter3_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), AddPayloadFiles: AddPayloadFiles:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAppxPackagingDiagnosticEventSink_Impl: Sized { @@ -3871,7 +3871,7 @@ impl IAppxPackagingDiagnosticEventSink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAppxPackagingDiagnosticEventSinkManager_Impl: Sized { @@ -3888,7 +3888,7 @@ impl IAppxPackagingDiagnosticEventSinkManager_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), SetSinkForProcess: SetSinkForProcess:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAppxSourceContentGroupMapReader_Impl: Sized { @@ -3927,6 +3927,6 @@ impl IAppxSourceContentGroupMapReader_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 6a222c0e28..7b58b1ead9 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 @@ -464,9 +464,8 @@ where ::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()).ok() } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxAppInstallerReader(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxAppInstallerReader, IAppxAppInstallerReader_Vtbl, 0xf35bc38c_1d2f_43db_a1f4_586430d1fed2); +::windows_core::imp::interface_hierarchy!(IAppxAppInstallerReader, ::windows_core::IUnknown); impl IAppxAppInstallerReader { #[doc = "Required features: `\"Win32_Data_Xml_MsXml\"`, `\"Win32_System_Com\"`"] #[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_System_Com"))] @@ -475,13 +474,6 @@ impl IAppxAppInstallerReader { (::windows_core::Interface::vtable(self).GetXmlDom)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAppxAppInstallerReader, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxAppInstallerReader { - type Vtable = IAppxAppInstallerReader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxAppInstallerReader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf35bc38c_1d2f_43db_a1f4_586430d1fed2); -} #[repr(C)] #[doc(hidden)] pub struct IAppxAppInstallerReader_Vtbl { @@ -491,9 +483,8 @@ pub struct IAppxAppInstallerReader_Vtbl { #[cfg(not(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_System_Com")))] GetXmlDom: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxBlockMapBlock(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxBlockMapBlock, IAppxBlockMapBlock_Vtbl, 0x75cf3930_3244_4fe0_a8c8_e0bcb270b889); +::windows_core::imp::interface_hierarchy!(IAppxBlockMapBlock, ::windows_core::IUnknown); impl IAppxBlockMapBlock { pub unsafe fn GetHash(&self, buffersize: *mut u32, buffer: *mut *mut u8) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetHash)(::windows_core::Interface::as_raw(self), buffersize, buffer).ok() @@ -503,13 +494,6 @@ impl IAppxBlockMapBlock { (::windows_core::Interface::vtable(self).GetCompressedSize)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAppxBlockMapBlock, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxBlockMapBlock { - type Vtable = IAppxBlockMapBlock_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxBlockMapBlock { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x75cf3930_3244_4fe0_a8c8_e0bcb270b889); -} #[repr(C)] #[doc(hidden)] pub struct IAppxBlockMapBlock_Vtbl { @@ -517,9 +501,8 @@ pub struct IAppxBlockMapBlock_Vtbl { pub GetHash: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, buffersize: *mut u32, buffer: *mut *mut u8) -> ::windows_core::HRESULT, pub GetCompressedSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, size: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxBlockMapBlocksEnumerator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxBlockMapBlocksEnumerator, IAppxBlockMapBlocksEnumerator_Vtbl, 0x6b429b5b_36ef_479e_b9eb_0c1482b49e16); +::windows_core::imp::interface_hierarchy!(IAppxBlockMapBlocksEnumerator, ::windows_core::IUnknown); impl IAppxBlockMapBlocksEnumerator { pub unsafe fn GetCurrent(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -534,13 +517,6 @@ impl IAppxBlockMapBlocksEnumerator { (::windows_core::Interface::vtable(self).MoveNext)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAppxBlockMapBlocksEnumerator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxBlockMapBlocksEnumerator { - type Vtable = IAppxBlockMapBlocksEnumerator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxBlockMapBlocksEnumerator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6b429b5b_36ef_479e_b9eb_0c1482b49e16); -} #[repr(C)] #[doc(hidden)] pub struct IAppxBlockMapBlocksEnumerator_Vtbl { @@ -549,9 +525,8 @@ pub struct IAppxBlockMapBlocksEnumerator_Vtbl { pub GetHasCurrent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub MoveNext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxBlockMapFile(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxBlockMapFile, IAppxBlockMapFile_Vtbl, 0x277672ac_4f63_42c1_8abc_beae3600eb59); +::windows_core::imp::interface_hierarchy!(IAppxBlockMapFile, ::windows_core::IUnknown); impl IAppxBlockMapFile { pub unsafe fn GetBlocks(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -579,13 +554,6 @@ impl IAppxBlockMapFile { (::windows_core::Interface::vtable(self).ValidateFileHash)(::windows_core::Interface::as_raw(self), filestream.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAppxBlockMapFile, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxBlockMapFile { - type Vtable = IAppxBlockMapFile_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxBlockMapFile { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x277672ac_4f63_42c1_8abc_beae3600eb59); -} #[repr(C)] #[doc(hidden)] pub struct IAppxBlockMapFile_Vtbl { @@ -599,9 +567,8 @@ pub struct IAppxBlockMapFile_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] ValidateFileHash: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxBlockMapFilesEnumerator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxBlockMapFilesEnumerator, IAppxBlockMapFilesEnumerator_Vtbl, 0x02b856a2_4262_4070_bacb_1a8cbbc42305); +::windows_core::imp::interface_hierarchy!(IAppxBlockMapFilesEnumerator, ::windows_core::IUnknown); impl IAppxBlockMapFilesEnumerator { pub unsafe fn GetCurrent(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -616,13 +583,6 @@ impl IAppxBlockMapFilesEnumerator { (::windows_core::Interface::vtable(self).MoveNext)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAppxBlockMapFilesEnumerator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxBlockMapFilesEnumerator { - type Vtable = IAppxBlockMapFilesEnumerator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxBlockMapFilesEnumerator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x02b856a2_4262_4070_bacb_1a8cbbc42305); -} #[repr(C)] #[doc(hidden)] pub struct IAppxBlockMapFilesEnumerator_Vtbl { @@ -631,9 +591,8 @@ pub struct IAppxBlockMapFilesEnumerator_Vtbl { pub GetHasCurrent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub MoveNext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxBlockMapReader(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxBlockMapReader, IAppxBlockMapReader_Vtbl, 0x5efec991_bca3_42d1_9ec2_e92d609ec22a); +::windows_core::imp::interface_hierarchy!(IAppxBlockMapReader, ::windows_core::IUnknown); impl IAppxBlockMapReader { pub unsafe fn GetFile(&self, filename: P0) -> ::windows_core::Result where @@ -659,13 +618,6 @@ impl IAppxBlockMapReader { (::windows_core::Interface::vtable(self).GetStream)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAppxBlockMapReader, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxBlockMapReader { - type Vtable = IAppxBlockMapReader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxBlockMapReader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5efec991_bca3_42d1_9ec2_e92d609ec22a); -} #[repr(C)] #[doc(hidden)] pub struct IAppxBlockMapReader_Vtbl { @@ -681,9 +633,8 @@ pub struct IAppxBlockMapReader_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetStream: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxBundleFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxBundleFactory, IAppxBundleFactory_Vtbl, 0xbba65864_965f_4a5f_855f_f074bdbf3a7b); +::windows_core::imp::interface_hierarchy!(IAppxBundleFactory, ::windows_core::IUnknown); impl IAppxBundleFactory { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -713,13 +664,6 @@ impl IAppxBundleFactory { (::windows_core::Interface::vtable(self).CreateBundleManifestReader)(::windows_core::Interface::as_raw(self), inputstream.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAppxBundleFactory, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxBundleFactory { - type Vtable = IAppxBundleFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxBundleFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbba65864_965f_4a5f_855f_f074bdbf3a7b); -} #[repr(C)] #[doc(hidden)] pub struct IAppxBundleFactory_Vtbl { @@ -737,9 +681,8 @@ pub struct IAppxBundleFactory_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] CreateBundleManifestReader: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxBundleFactory2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxBundleFactory2, IAppxBundleFactory2_Vtbl, 0x7325b83d_0185_42c4_82ac_be34ab1a2a8a); +::windows_core::imp::interface_hierarchy!(IAppxBundleFactory2, ::windows_core::IUnknown); impl IAppxBundleFactory2 { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -752,13 +695,6 @@ impl IAppxBundleFactory2 { (::windows_core::Interface::vtable(self).CreateBundleReader2)(::windows_core::Interface::as_raw(self), inputstream.into_param().abi(), expecteddigest.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAppxBundleFactory2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxBundleFactory2 { - type Vtable = IAppxBundleFactory2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxBundleFactory2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7325b83d_0185_42c4_82ac_be34ab1a2a8a); -} #[repr(C)] #[doc(hidden)] pub struct IAppxBundleFactory2_Vtbl { @@ -768,9 +704,8 @@ pub struct IAppxBundleFactory2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] CreateBundleReader2: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxBundleManifestOptionalBundleInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxBundleManifestOptionalBundleInfo, IAppxBundleManifestOptionalBundleInfo_Vtbl, 0x515bf2e8_bcb0_4d69_8c48_e383147b6e12); +::windows_core::imp::interface_hierarchy!(IAppxBundleManifestOptionalBundleInfo, ::windows_core::IUnknown); impl IAppxBundleManifestOptionalBundleInfo { pub unsafe fn GetPackageId(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -785,13 +720,6 @@ impl IAppxBundleManifestOptionalBundleInfo { (::windows_core::Interface::vtable(self).GetPackageInfoItems)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAppxBundleManifestOptionalBundleInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxBundleManifestOptionalBundleInfo { - type Vtable = IAppxBundleManifestOptionalBundleInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxBundleManifestOptionalBundleInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x515bf2e8_bcb0_4d69_8c48_e383147b6e12); -} #[repr(C)] #[doc(hidden)] pub struct IAppxBundleManifestOptionalBundleInfo_Vtbl { @@ -800,9 +728,8 @@ pub struct IAppxBundleManifestOptionalBundleInfo_Vtbl { pub GetFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filename: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, pub GetPackageInfoItems: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, packageinfoitems: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxBundleManifestOptionalBundleInfoEnumerator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxBundleManifestOptionalBundleInfoEnumerator, IAppxBundleManifestOptionalBundleInfoEnumerator_Vtbl, 0x9a178793_f97e_46ac_aaca_dd5ba4c177c8); +::windows_core::imp::interface_hierarchy!(IAppxBundleManifestOptionalBundleInfoEnumerator, ::windows_core::IUnknown); impl IAppxBundleManifestOptionalBundleInfoEnumerator { pub unsafe fn GetCurrent(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -817,13 +744,6 @@ impl IAppxBundleManifestOptionalBundleInfoEnumerator { (::windows_core::Interface::vtable(self).MoveNext)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAppxBundleManifestOptionalBundleInfoEnumerator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxBundleManifestOptionalBundleInfoEnumerator { - type Vtable = IAppxBundleManifestOptionalBundleInfoEnumerator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxBundleManifestOptionalBundleInfoEnumerator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9a178793_f97e_46ac_aaca_dd5ba4c177c8); -} #[repr(C)] #[doc(hidden)] pub struct IAppxBundleManifestOptionalBundleInfoEnumerator_Vtbl { @@ -832,9 +752,8 @@ pub struct IAppxBundleManifestOptionalBundleInfoEnumerator_Vtbl { pub GetHasCurrent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub MoveNext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxBundleManifestPackageInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxBundleManifestPackageInfo, IAppxBundleManifestPackageInfo_Vtbl, 0x54cd06c1_268f_40bb_8ed2_757a9ebaec8d); +::windows_core::imp::interface_hierarchy!(IAppxBundleManifestPackageInfo, ::windows_core::IUnknown); impl IAppxBundleManifestPackageInfo { pub unsafe fn GetPackageType(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -861,13 +780,6 @@ impl IAppxBundleManifestPackageInfo { (::windows_core::Interface::vtable(self).GetResources)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAppxBundleManifestPackageInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxBundleManifestPackageInfo { - type Vtable = IAppxBundleManifestPackageInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxBundleManifestPackageInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x54cd06c1_268f_40bb_8ed2_757a9ebaec8d); -} #[repr(C)] #[doc(hidden)] pub struct IAppxBundleManifestPackageInfo_Vtbl { @@ -879,9 +791,8 @@ pub struct IAppxBundleManifestPackageInfo_Vtbl { pub GetSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, size: *mut u64) -> ::windows_core::HRESULT, pub GetResources: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, resources: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxBundleManifestPackageInfo2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxBundleManifestPackageInfo2, IAppxBundleManifestPackageInfo2_Vtbl, 0x44c2acbc_b2cf_4ccb_bbdb_9c6da8c3bc9e); +::windows_core::imp::interface_hierarchy!(IAppxBundleManifestPackageInfo2, ::windows_core::IUnknown); impl IAppxBundleManifestPackageInfo2 { pub unsafe fn GetIsPackageReference(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -896,13 +807,6 @@ impl IAppxBundleManifestPackageInfo2 { (::windows_core::Interface::vtable(self).GetIsDefaultApplicablePackage)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAppxBundleManifestPackageInfo2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxBundleManifestPackageInfo2 { - type Vtable = IAppxBundleManifestPackageInfo2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxBundleManifestPackageInfo2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x44c2acbc_b2cf_4ccb_bbdb_9c6da8c3bc9e); -} #[repr(C)] #[doc(hidden)] pub struct IAppxBundleManifestPackageInfo2_Vtbl { @@ -911,53 +815,36 @@ pub struct IAppxBundleManifestPackageInfo2_Vtbl { pub GetIsNonQualifiedResourcePackage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, isnonqualifiedresourcepackage: *mut super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub GetIsDefaultApplicablePackage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, isdefaultapplicablepackage: *mut super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxBundleManifestPackageInfo3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxBundleManifestPackageInfo3, IAppxBundleManifestPackageInfo3_Vtbl, 0x6ba74b98_bb74_4296_80d0_5f4256a99675); +::windows_core::imp::interface_hierarchy!(IAppxBundleManifestPackageInfo3, ::windows_core::IUnknown); impl IAppxBundleManifestPackageInfo3 { pub unsafe fn GetTargetDeviceFamilies(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetTargetDeviceFamilies)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAppxBundleManifestPackageInfo3, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxBundleManifestPackageInfo3 { - type Vtable = IAppxBundleManifestPackageInfo3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxBundleManifestPackageInfo3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6ba74b98_bb74_4296_80d0_5f4256a99675); -} #[repr(C)] #[doc(hidden)] pub struct IAppxBundleManifestPackageInfo3_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetTargetDeviceFamilies: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, targetdevicefamilies: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxBundleManifestPackageInfo4(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxBundleManifestPackageInfo4, IAppxBundleManifestPackageInfo4_Vtbl, 0x5da6f13d_a8a7_4532_857c_1393d659371d); +::windows_core::imp::interface_hierarchy!(IAppxBundleManifestPackageInfo4, ::windows_core::IUnknown); impl IAppxBundleManifestPackageInfo4 { pub unsafe fn GetIsStub(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetIsStub)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAppxBundleManifestPackageInfo4, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxBundleManifestPackageInfo4 { - type Vtable = IAppxBundleManifestPackageInfo4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxBundleManifestPackageInfo4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5da6f13d_a8a7_4532_857c_1393d659371d); -} #[repr(C)] #[doc(hidden)] pub struct IAppxBundleManifestPackageInfo4_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetIsStub: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, isstub: *mut super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxBundleManifestPackageInfoEnumerator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxBundleManifestPackageInfoEnumerator, IAppxBundleManifestPackageInfoEnumerator_Vtbl, 0xf9b856ee_49a6_4e19_b2b0_6a2406d63a32); +::windows_core::imp::interface_hierarchy!(IAppxBundleManifestPackageInfoEnumerator, ::windows_core::IUnknown); impl IAppxBundleManifestPackageInfoEnumerator { pub unsafe fn GetCurrent(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -972,13 +859,6 @@ impl IAppxBundleManifestPackageInfoEnumerator { (::windows_core::Interface::vtable(self).MoveNext)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAppxBundleManifestPackageInfoEnumerator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxBundleManifestPackageInfoEnumerator { - type Vtable = IAppxBundleManifestPackageInfoEnumerator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxBundleManifestPackageInfoEnumerator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf9b856ee_49a6_4e19_b2b0_6a2406d63a32); -} #[repr(C)] #[doc(hidden)] pub struct IAppxBundleManifestPackageInfoEnumerator_Vtbl { @@ -987,9 +867,8 @@ pub struct IAppxBundleManifestPackageInfoEnumerator_Vtbl { pub GetHasCurrent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub MoveNext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxBundleManifestReader(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxBundleManifestReader, IAppxBundleManifestReader_Vtbl, 0xcf0ebbc1_cc99_4106_91eb_e67462e04fb0); +::windows_core::imp::interface_hierarchy!(IAppxBundleManifestReader, ::windows_core::IUnknown); impl IAppxBundleManifestReader { pub unsafe fn GetPackageId(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1006,13 +885,6 @@ impl IAppxBundleManifestReader { (::windows_core::Interface::vtable(self).GetStream)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAppxBundleManifestReader, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxBundleManifestReader { - type Vtable = IAppxBundleManifestReader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxBundleManifestReader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcf0ebbc1_cc99_4106_91eb_e67462e04fb0); -} #[repr(C)] #[doc(hidden)] pub struct IAppxBundleManifestReader_Vtbl { @@ -1024,31 +896,22 @@ pub struct IAppxBundleManifestReader_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetStream: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxBundleManifestReader2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxBundleManifestReader2, IAppxBundleManifestReader2_Vtbl, 0x5517df70_033f_4af2_8213_87d766805c02); +::windows_core::imp::interface_hierarchy!(IAppxBundleManifestReader2, ::windows_core::IUnknown); impl IAppxBundleManifestReader2 { pub unsafe fn GetOptionalBundles(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetOptionalBundles)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAppxBundleManifestReader2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxBundleManifestReader2 { - type Vtable = IAppxBundleManifestReader2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxBundleManifestReader2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5517df70_033f_4af2_8213_87d766805c02); -} #[repr(C)] #[doc(hidden)] pub struct IAppxBundleManifestReader2_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetOptionalBundles: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, optionalbundles: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxBundleReader(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxBundleReader, IAppxBundleReader_Vtbl, 0xdd75b8c0_ba76_43b0_ae0f_68656a1dc5c8); +::windows_core::imp::interface_hierarchy!(IAppxBundleReader, ::windows_core::IUnknown); impl IAppxBundleReader { pub unsafe fn GetFootprintFile(&self, filetype: APPX_BUNDLE_FOOTPRINT_FILE_TYPE) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1074,13 +937,6 @@ impl IAppxBundleReader { (::windows_core::Interface::vtable(self).GetPayloadPackage)(::windows_core::Interface::as_raw(self), filename.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAppxBundleReader, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxBundleReader { - type Vtable = IAppxBundleReader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxBundleReader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdd75b8c0_ba76_43b0_ae0f_68656a1dc5c8); -} #[repr(C)] #[doc(hidden)] pub struct IAppxBundleReader_Vtbl { @@ -1091,9 +947,8 @@ pub struct IAppxBundleReader_Vtbl { pub GetPayloadPackages: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, payloadpackages: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetPayloadPackage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filename: ::windows_core::PCWSTR, payloadpackage: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxBundleWriter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxBundleWriter, IAppxBundleWriter_Vtbl, 0xec446fe8_bfec_4c64_ab4f_49f038f0c6d2); +::windows_core::imp::interface_hierarchy!(IAppxBundleWriter, ::windows_core::IUnknown); impl IAppxBundleWriter { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -1108,13 +963,6 @@ impl IAppxBundleWriter { (::windows_core::Interface::vtable(self).Close)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IAppxBundleWriter, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxBundleWriter { - type Vtable = IAppxBundleWriter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxBundleWriter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xec446fe8_bfec_4c64_ab4f_49f038f0c6d2); -} #[repr(C)] #[doc(hidden)] pub struct IAppxBundleWriter_Vtbl { @@ -1125,9 +973,8 @@ pub struct IAppxBundleWriter_Vtbl { AddPayloadPackage: usize, pub Close: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxBundleWriter2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxBundleWriter2, IAppxBundleWriter2_Vtbl, 0x6d8fe971_01cc_49a0_b685_233851279962); +::windows_core::imp::interface_hierarchy!(IAppxBundleWriter2, ::windows_core::IUnknown); impl IAppxBundleWriter2 { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -1139,13 +986,6 @@ impl IAppxBundleWriter2 { (::windows_core::Interface::vtable(self).AddExternalPackageReference)(::windows_core::Interface::as_raw(self), filename.into_param().abi(), inputstream.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IAppxBundleWriter2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxBundleWriter2 { - type Vtable = IAppxBundleWriter2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxBundleWriter2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6d8fe971_01cc_49a0_b685_233851279962); -} #[repr(C)] #[doc(hidden)] pub struct IAppxBundleWriter2_Vtbl { @@ -1155,9 +995,8 @@ pub struct IAppxBundleWriter2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] AddExternalPackageReference: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxBundleWriter3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxBundleWriter3, IAppxBundleWriter3_Vtbl, 0xad711152_f969_4193_82d5_9ddf2786d21a); +::windows_core::imp::interface_hierarchy!(IAppxBundleWriter3, ::windows_core::IUnknown); impl IAppxBundleWriter3 { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -1175,13 +1014,6 @@ impl IAppxBundleWriter3 { (::windows_core::Interface::vtable(self).Close)(::windows_core::Interface::as_raw(self), hashmethodstring.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IAppxBundleWriter3, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxBundleWriter3 { - type Vtable = IAppxBundleWriter3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxBundleWriter3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xad711152_f969_4193_82d5_9ddf2786d21a); -} #[repr(C)] #[doc(hidden)] pub struct IAppxBundleWriter3_Vtbl { @@ -1192,9 +1024,8 @@ pub struct IAppxBundleWriter3_Vtbl { AddPackageReference: usize, pub Close: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hashmethodstring: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxBundleWriter4(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxBundleWriter4, IAppxBundleWriter4_Vtbl, 0x9cd9d523_5009_4c01_9882_dc029fbd47a3); +::windows_core::imp::interface_hierarchy!(IAppxBundleWriter4, ::windows_core::IUnknown); impl IAppxBundleWriter4 { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -1227,13 +1058,6 @@ impl IAppxBundleWriter4 { (::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::imp::interface_hierarchy!(IAppxBundleWriter4, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxBundleWriter4 { - type Vtable = IAppxBundleWriter4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxBundleWriter4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9cd9d523_5009_4c01_9882_dc029fbd47a3); -} #[repr(C)] #[doc(hidden)] pub struct IAppxBundleWriter4_Vtbl { @@ -1251,9 +1075,8 @@ pub struct IAppxBundleWriter4_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] AddExternalPackageReference: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxContentGroup(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxContentGroup, IAppxContentGroup_Vtbl, 0x328f6468_c04f_4e3c_b6fa_6b8d27f3003a); +::windows_core::imp::interface_hierarchy!(IAppxContentGroup, ::windows_core::IUnknown); impl IAppxContentGroup { pub unsafe fn GetName(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); @@ -1264,13 +1087,6 @@ impl IAppxContentGroup { (::windows_core::Interface::vtable(self).GetFiles)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAppxContentGroup, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxContentGroup { - type Vtable = IAppxContentGroup_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxContentGroup { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x328f6468_c04f_4e3c_b6fa_6b8d27f3003a); -} #[repr(C)] #[doc(hidden)] pub struct IAppxContentGroup_Vtbl { @@ -1278,9 +1094,8 @@ pub struct IAppxContentGroup_Vtbl { pub GetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, groupname: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, pub GetFiles: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enumerator: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxContentGroupFilesEnumerator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxContentGroupFilesEnumerator, IAppxContentGroupFilesEnumerator_Vtbl, 0x1a09a2fd_7440_44eb_8c84_848205a6a1cc); +::windows_core::imp::interface_hierarchy!(IAppxContentGroupFilesEnumerator, ::windows_core::IUnknown); impl IAppxContentGroupFilesEnumerator { pub unsafe fn GetCurrent(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); @@ -1295,13 +1110,6 @@ impl IAppxContentGroupFilesEnumerator { (::windows_core::Interface::vtable(self).MoveNext)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAppxContentGroupFilesEnumerator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxContentGroupFilesEnumerator { - type Vtable = IAppxContentGroupFilesEnumerator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxContentGroupFilesEnumerator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1a09a2fd_7440_44eb_8c84_848205a6a1cc); -} #[repr(C)] #[doc(hidden)] pub struct IAppxContentGroupFilesEnumerator_Vtbl { @@ -1310,9 +1118,8 @@ pub struct IAppxContentGroupFilesEnumerator_Vtbl { pub GetHasCurrent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub MoveNext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxContentGroupMapReader(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxContentGroupMapReader, IAppxContentGroupMapReader_Vtbl, 0x418726d8_dd99_4f5d_9886_157add20de01); +::windows_core::imp::interface_hierarchy!(IAppxContentGroupMapReader, ::windows_core::IUnknown); impl IAppxContentGroupMapReader { pub unsafe fn GetRequiredGroup(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1323,13 +1130,6 @@ impl IAppxContentGroupMapReader { (::windows_core::Interface::vtable(self).GetAutomaticGroups)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAppxContentGroupMapReader, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxContentGroupMapReader { - type Vtable = IAppxContentGroupMapReader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxContentGroupMapReader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x418726d8_dd99_4f5d_9886_157add20de01); -} #[repr(C)] #[doc(hidden)] pub struct IAppxContentGroupMapReader_Vtbl { @@ -1337,9 +1137,8 @@ pub struct IAppxContentGroupMapReader_Vtbl { pub GetRequiredGroup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, requiredgroup: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetAutomaticGroups: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, automaticgroupsenumerator: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxContentGroupMapWriter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxContentGroupMapWriter, IAppxContentGroupMapWriter_Vtbl, 0xd07ab776_a9de_4798_8c14_3db31e687c78); +::windows_core::imp::interface_hierarchy!(IAppxContentGroupMapWriter, ::windows_core::IUnknown); impl IAppxContentGroupMapWriter { pub unsafe fn AddAutomaticGroup(&self, groupname: P0) -> ::windows_core::Result<()> where @@ -1357,13 +1156,6 @@ impl IAppxContentGroupMapWriter { (::windows_core::Interface::vtable(self).Close)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IAppxContentGroupMapWriter, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxContentGroupMapWriter { - type Vtable = IAppxContentGroupMapWriter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxContentGroupMapWriter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd07ab776_a9de_4798_8c14_3db31e687c78); -} #[repr(C)] #[doc(hidden)] pub struct IAppxContentGroupMapWriter_Vtbl { @@ -1372,9 +1164,8 @@ pub struct IAppxContentGroupMapWriter_Vtbl { pub AddAutomaticFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filename: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub Close: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxContentGroupsEnumerator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxContentGroupsEnumerator, IAppxContentGroupsEnumerator_Vtbl, 0x3264e477_16d1_4d63_823e_7d2984696634); +::windows_core::imp::interface_hierarchy!(IAppxContentGroupsEnumerator, ::windows_core::IUnknown); impl IAppxContentGroupsEnumerator { pub unsafe fn GetCurrent(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1389,13 +1180,6 @@ impl IAppxContentGroupsEnumerator { (::windows_core::Interface::vtable(self).MoveNext)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAppxContentGroupsEnumerator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxContentGroupsEnumerator { - type Vtable = IAppxContentGroupsEnumerator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxContentGroupsEnumerator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3264e477_16d1_4d63_823e_7d2984696634); -} #[repr(C)] #[doc(hidden)] pub struct IAppxContentGroupsEnumerator_Vtbl { @@ -1404,31 +1188,22 @@ pub struct IAppxContentGroupsEnumerator_Vtbl { pub GetHasCurrent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub MoveNext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxDigestProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxDigestProvider, IAppxDigestProvider_Vtbl, 0x9fe2702b_7640_4659_8e6c_349e43c4cdbd); +::windows_core::imp::interface_hierarchy!(IAppxDigestProvider, ::windows_core::IUnknown); impl IAppxDigestProvider { pub unsafe fn GetDigest(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetDigest)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAppxDigestProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxDigestProvider { - type Vtable = IAppxDigestProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxDigestProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9fe2702b_7640_4659_8e6c_349e43c4cdbd); -} #[repr(C)] #[doc(hidden)] pub struct IAppxDigestProvider_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetDigest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, digest: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxEncryptedBundleWriter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxEncryptedBundleWriter, IAppxEncryptedBundleWriter_Vtbl, 0x80b0902f_7bf0_4117_b8c6_4279ef81ee77); +::windows_core::imp::interface_hierarchy!(IAppxEncryptedBundleWriter, ::windows_core::IUnknown); impl IAppxEncryptedBundleWriter { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -1443,13 +1218,6 @@ impl IAppxEncryptedBundleWriter { (::windows_core::Interface::vtable(self).Close)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IAppxEncryptedBundleWriter, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxEncryptedBundleWriter { - type Vtable = IAppxEncryptedBundleWriter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxEncryptedBundleWriter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x80b0902f_7bf0_4117_b8c6_4279ef81ee77); -} #[repr(C)] #[doc(hidden)] pub struct IAppxEncryptedBundleWriter_Vtbl { @@ -1460,9 +1228,8 @@ pub struct IAppxEncryptedBundleWriter_Vtbl { AddPayloadPackageEncrypted: usize, pub Close: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxEncryptedBundleWriter2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxEncryptedBundleWriter2, IAppxEncryptedBundleWriter2_Vtbl, 0xe644be82_f0fa_42b8_a956_8d1cb48ee379); +::windows_core::imp::interface_hierarchy!(IAppxEncryptedBundleWriter2, ::windows_core::IUnknown); impl IAppxEncryptedBundleWriter2 { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -1474,13 +1241,6 @@ impl IAppxEncryptedBundleWriter2 { (::windows_core::Interface::vtable(self).AddExternalPackageReference)(::windows_core::Interface::as_raw(self), filename.into_param().abi(), inputstream.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IAppxEncryptedBundleWriter2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxEncryptedBundleWriter2 { - type Vtable = IAppxEncryptedBundleWriter2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxEncryptedBundleWriter2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe644be82_f0fa_42b8_a956_8d1cb48ee379); -} #[repr(C)] #[doc(hidden)] pub struct IAppxEncryptedBundleWriter2_Vtbl { @@ -1490,9 +1250,8 @@ pub struct IAppxEncryptedBundleWriter2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] AddExternalPackageReference: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxEncryptedBundleWriter3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxEncryptedBundleWriter3, IAppxEncryptedBundleWriter3_Vtbl, 0x0d34deb3_5cae_4dd3_977c_504932a51d31); +::windows_core::imp::interface_hierarchy!(IAppxEncryptedBundleWriter3, ::windows_core::IUnknown); impl IAppxEncryptedBundleWriter3 { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -1515,13 +1274,6 @@ impl IAppxEncryptedBundleWriter3 { (::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::imp::interface_hierarchy!(IAppxEncryptedBundleWriter3, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxEncryptedBundleWriter3 { - type Vtable = IAppxEncryptedBundleWriter3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxEncryptedBundleWriter3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0d34deb3_5cae_4dd3_977c_504932a51d31); -} #[repr(C)] #[doc(hidden)] pub struct IAppxEncryptedBundleWriter3_Vtbl { @@ -1535,9 +1287,8 @@ pub struct IAppxEncryptedBundleWriter3_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] AddExternalPackageReference: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxEncryptedPackageWriter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxEncryptedPackageWriter, IAppxEncryptedPackageWriter_Vtbl, 0xf43d0b0b_1379_40e2_9b29_682ea2bf42af); +::windows_core::imp::interface_hierarchy!(IAppxEncryptedPackageWriter, ::windows_core::IUnknown); impl IAppxEncryptedPackageWriter { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -1552,13 +1303,6 @@ impl IAppxEncryptedPackageWriter { (::windows_core::Interface::vtable(self).Close)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IAppxEncryptedPackageWriter, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxEncryptedPackageWriter { - type Vtable = IAppxEncryptedPackageWriter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxEncryptedPackageWriter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf43d0b0b_1379_40e2_9b29_682ea2bf42af); -} #[repr(C)] #[doc(hidden)] pub struct IAppxEncryptedPackageWriter_Vtbl { @@ -1569,9 +1313,8 @@ pub struct IAppxEncryptedPackageWriter_Vtbl { AddPayloadFileEncrypted: usize, pub Close: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxEncryptedPackageWriter2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxEncryptedPackageWriter2, IAppxEncryptedPackageWriter2_Vtbl, 0x3e475447_3a25_40b5_8ad2_f953ae50c92d); +::windows_core::imp::interface_hierarchy!(IAppxEncryptedPackageWriter2, ::windows_core::IUnknown); impl IAppxEncryptedPackageWriter2 { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -1579,13 +1322,6 @@ impl IAppxEncryptedPackageWriter2 { (::windows_core::Interface::vtable(self).AddPayloadFilesEncrypted)(::windows_core::Interface::as_raw(self), payloadfiles.len().try_into().unwrap(), ::core::mem::transmute(payloadfiles.as_ptr()), memorylimit).ok() } } -::windows_core::imp::interface_hierarchy!(IAppxEncryptedPackageWriter2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxEncryptedPackageWriter2 { - type Vtable = IAppxEncryptedPackageWriter2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxEncryptedPackageWriter2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3e475447_3a25_40b5_8ad2_f953ae50c92d); -} #[repr(C)] #[doc(hidden)] pub struct IAppxEncryptedPackageWriter2_Vtbl { @@ -1595,9 +1331,8 @@ pub struct IAppxEncryptedPackageWriter2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] AddPayloadFilesEncrypted: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxEncryptionFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxEncryptionFactory, IAppxEncryptionFactory_Vtbl, 0x80e8e04d_8c88_44ae_a011_7cadf6fb2e72); +::windows_core::imp::interface_hierarchy!(IAppxEncryptionFactory, ::windows_core::IUnknown); impl IAppxEncryptionFactory { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -1673,13 +1408,6 @@ impl IAppxEncryptionFactory { (::windows_core::Interface::vtable(self).CreateEncryptedBundleReader)(::windows_core::Interface::as_raw(self), inputstream.into_param().abi(), keyinfo, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAppxEncryptionFactory, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxEncryptionFactory { - type Vtable = IAppxEncryptionFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxEncryptionFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x80e8e04d_8c88_44ae_a011_7cadf6fb2e72); -} #[repr(C)] #[doc(hidden)] pub struct IAppxEncryptionFactory_Vtbl { @@ -1717,9 +1445,8 @@ pub struct IAppxEncryptionFactory_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] CreateEncryptedBundleReader: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxEncryptionFactory2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxEncryptionFactory2, IAppxEncryptionFactory2_Vtbl, 0xc1b11eee_c4ba_4ab2_a55d_d015fe8ff64f); +::windows_core::imp::interface_hierarchy!(IAppxEncryptionFactory2, ::windows_core::IUnknown); impl IAppxEncryptionFactory2 { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -1733,13 +1460,6 @@ impl IAppxEncryptionFactory2 { (::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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAppxEncryptionFactory2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxEncryptionFactory2 { - type Vtable = IAppxEncryptionFactory2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxEncryptionFactory2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc1b11eee_c4ba_4ab2_a55d_d015fe8ff64f); -} #[repr(C)] #[doc(hidden)] pub struct IAppxEncryptionFactory2_Vtbl { @@ -1749,9 +1469,8 @@ pub struct IAppxEncryptionFactory2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] CreateEncryptedPackageWriter: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxEncryptionFactory3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxEncryptionFactory3, IAppxEncryptionFactory3_Vtbl, 0x09edca37_cd64_47d6_b7e8_1cb11d4f7e05); +::windows_core::imp::interface_hierarchy!(IAppxEncryptionFactory3, ::windows_core::IUnknown); impl IAppxEncryptionFactory3 { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -1792,13 +1511,6 @@ impl IAppxEncryptionFactory3 { (::windows_core::Interface::vtable(self).CreateEncryptedBundleWriter)(::windows_core::Interface::as_raw(self), outputstream.into_param().abi(), bundleversion, settings, keyinfo, exemptedfiles, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAppxEncryptionFactory3, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxEncryptionFactory3 { - type Vtable = IAppxEncryptionFactory3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxEncryptionFactory3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x09edca37_cd64_47d6_b7e8_1cb11d4f7e05); -} #[repr(C)] #[doc(hidden)] pub struct IAppxEncryptionFactory3_Vtbl { @@ -1820,9 +1532,8 @@ pub struct IAppxEncryptionFactory3_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] CreateEncryptedBundleWriter: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxEncryptionFactory4(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxEncryptionFactory4, IAppxEncryptionFactory4_Vtbl, 0xa879611f_12fd_41fe_85d5_06ae779bbaf5); +::windows_core::imp::interface_hierarchy!(IAppxEncryptionFactory4, ::windows_core::IUnknown); impl IAppxEncryptionFactory4 { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -1834,13 +1545,6 @@ impl IAppxEncryptionFactory4 { (::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::imp::interface_hierarchy!(IAppxEncryptionFactory4, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxEncryptionFactory4 { - type Vtable = IAppxEncryptionFactory4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxEncryptionFactory4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa879611f_12fd_41fe_85d5_06ae779bbaf5); -} #[repr(C)] #[doc(hidden)] pub struct IAppxEncryptionFactory4_Vtbl { @@ -1850,9 +1554,8 @@ pub struct IAppxEncryptionFactory4_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] EncryptPackage: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxEncryptionFactory5(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxEncryptionFactory5, IAppxEncryptionFactory5_Vtbl, 0x68d6e77a_f446_480f_b0f0_d91a24c60746); +::windows_core::imp::interface_hierarchy!(IAppxEncryptionFactory5, ::windows_core::IUnknown); impl IAppxEncryptionFactory5 { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -1875,13 +1578,6 @@ impl IAppxEncryptionFactory5 { (::windows_core::Interface::vtable(self).CreateEncryptedBundleReader2)(::windows_core::Interface::as_raw(self), inputstream.into_param().abi(), keyinfo, expecteddigest.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAppxEncryptionFactory5, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxEncryptionFactory5 { - type Vtable = IAppxEncryptionFactory5_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxEncryptionFactory5 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x68d6e77a_f446_480f_b0f0_d91a24c60746); -} #[repr(C)] #[doc(hidden)] pub struct IAppxEncryptionFactory5_Vtbl { @@ -1895,9 +1591,8 @@ pub struct IAppxEncryptionFactory5_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] CreateEncryptedBundleReader2: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxFactory, IAppxFactory_Vtbl, 0xbeb94909_e451_438b_b5a7_d79e767b75d8); +::windows_core::imp::interface_hierarchy!(IAppxFactory, ::windows_core::IUnknown); impl IAppxFactory { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -1946,13 +1641,6 @@ impl IAppxFactory { (::windows_core::Interface::vtable(self).CreateValidatedBlockMapReader)(::windows_core::Interface::as_raw(self), blockmapstream.into_param().abi(), signaturefilename.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAppxFactory, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxFactory { - type Vtable = IAppxFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbeb94909_e451_438b_b5a7_d79e767b75d8); -} #[repr(C)] #[doc(hidden)] pub struct IAppxFactory_Vtbl { @@ -1978,9 +1666,8 @@ pub struct IAppxFactory_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] CreateValidatedBlockMapReader: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxFactory2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxFactory2, IAppxFactory2_Vtbl, 0xf1346df2_c282_4e22_b918_743a929a8d55); +::windows_core::imp::interface_hierarchy!(IAppxFactory2, ::windows_core::IUnknown); impl IAppxFactory2 { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -2010,13 +1697,6 @@ impl IAppxFactory2 { (::windows_core::Interface::vtable(self).CreateContentGroupMapWriter)(::windows_core::Interface::as_raw(self), stream.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAppxFactory2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxFactory2 { - type Vtable = IAppxFactory2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxFactory2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf1346df2_c282_4e22_b918_743a929a8d55); -} #[repr(C)] #[doc(hidden)] pub struct IAppxFactory2_Vtbl { @@ -2034,9 +1714,8 @@ pub struct IAppxFactory2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] CreateContentGroupMapWriter: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxFactory3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxFactory3, IAppxFactory3_Vtbl, 0x776b2c05_e21d_4e24_ba1a_cd529a8bfdbb); +::windows_core::imp::interface_hierarchy!(IAppxFactory3, ::windows_core::IUnknown); impl IAppxFactory3 { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -2069,13 +1748,6 @@ impl IAppxFactory3 { (::windows_core::Interface::vtable(self).CreateAppInstallerReader)(::windows_core::Interface::as_raw(self), inputstream.into_param().abi(), expecteddigest.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAppxFactory3, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxFactory3 { - type Vtable = IAppxFactory3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxFactory3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x776b2c05_e21d_4e24_ba1a_cd529a8bfdbb); -} #[repr(C)] #[doc(hidden)] pub struct IAppxFactory3_Vtbl { @@ -2093,9 +1765,8 @@ pub struct IAppxFactory3_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] CreateAppInstallerReader: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxFile(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxFile, IAppxFile_Vtbl, 0x91df827b_94fd_468f_827b_57f41b2f6f2e); +::windows_core::imp::interface_hierarchy!(IAppxFile, ::windows_core::IUnknown); impl IAppxFile { pub unsafe fn GetCompressionOption(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2120,13 +1791,6 @@ impl IAppxFile { (::windows_core::Interface::vtable(self).GetStream)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAppxFile, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxFile { - type Vtable = IAppxFile_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxFile { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x91df827b_94fd_468f_827b_57f41b2f6f2e); -} #[repr(C)] #[doc(hidden)] pub struct IAppxFile_Vtbl { @@ -2140,9 +1804,8 @@ pub struct IAppxFile_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetStream: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxFilesEnumerator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxFilesEnumerator, IAppxFilesEnumerator_Vtbl, 0xf007eeaf_9831_411c_9847_917cdc62d1fe); +::windows_core::imp::interface_hierarchy!(IAppxFilesEnumerator, ::windows_core::IUnknown); impl IAppxFilesEnumerator { pub unsafe fn GetCurrent(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2157,13 +1820,6 @@ impl IAppxFilesEnumerator { (::windows_core::Interface::vtable(self).MoveNext)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAppxFilesEnumerator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxFilesEnumerator { - type Vtable = IAppxFilesEnumerator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxFilesEnumerator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf007eeaf_9831_411c_9847_917cdc62d1fe); -} #[repr(C)] #[doc(hidden)] pub struct IAppxFilesEnumerator_Vtbl { @@ -2172,9 +1828,8 @@ pub struct IAppxFilesEnumerator_Vtbl { pub GetHasCurrent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub MoveNext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxManifestApplication(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxManifestApplication, IAppxManifestApplication_Vtbl, 0x5da89bf4_3773_46be_b650_7e744863b7e8); +::windows_core::imp::interface_hierarchy!(IAppxManifestApplication, ::windows_core::IUnknown); impl IAppxManifestApplication { pub unsafe fn GetStringValue(&self, name: P0) -> ::windows_core::Result<::windows_core::PWSTR> where @@ -2188,13 +1843,6 @@ impl IAppxManifestApplication { (::windows_core::Interface::vtable(self).GetAppUserModelId)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAppxManifestApplication, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxManifestApplication { - type Vtable = IAppxManifestApplication_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxManifestApplication { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5da89bf4_3773_46be_b650_7e744863b7e8); -} #[repr(C)] #[doc(hidden)] pub struct IAppxManifestApplication_Vtbl { @@ -2202,9 +1850,8 @@ pub struct IAppxManifestApplication_Vtbl { pub GetStringValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::windows_core::PCWSTR, value: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, pub GetAppUserModelId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, appusermodelid: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxManifestApplicationsEnumerator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxManifestApplicationsEnumerator, IAppxManifestApplicationsEnumerator_Vtbl, 0x9eb8a55a_f04b_4d0d_808d_686185d4847a); +::windows_core::imp::interface_hierarchy!(IAppxManifestApplicationsEnumerator, ::windows_core::IUnknown); impl IAppxManifestApplicationsEnumerator { pub unsafe fn GetCurrent(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2219,13 +1866,6 @@ impl IAppxManifestApplicationsEnumerator { (::windows_core::Interface::vtable(self).MoveNext)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAppxManifestApplicationsEnumerator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxManifestApplicationsEnumerator { - type Vtable = IAppxManifestApplicationsEnumerator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxManifestApplicationsEnumerator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9eb8a55a_f04b_4d0d_808d_686185d4847a); -} #[repr(C)] #[doc(hidden)] pub struct IAppxManifestApplicationsEnumerator_Vtbl { @@ -2234,9 +1874,8 @@ pub struct IAppxManifestApplicationsEnumerator_Vtbl { pub GetHasCurrent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub MoveNext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxManifestCapabilitiesEnumerator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxManifestCapabilitiesEnumerator, IAppxManifestCapabilitiesEnumerator_Vtbl, 0x11d22258_f470_42c1_b291_8361c5437e41); +::windows_core::imp::interface_hierarchy!(IAppxManifestCapabilitiesEnumerator, ::windows_core::IUnknown); impl IAppxManifestCapabilitiesEnumerator { pub unsafe fn GetCurrent(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); @@ -2251,13 +1890,6 @@ impl IAppxManifestCapabilitiesEnumerator { (::windows_core::Interface::vtable(self).MoveNext)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAppxManifestCapabilitiesEnumerator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxManifestCapabilitiesEnumerator { - type Vtable = IAppxManifestCapabilitiesEnumerator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxManifestCapabilitiesEnumerator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x11d22258_f470_42c1_b291_8361c5437e41); -} #[repr(C)] #[doc(hidden)] pub struct IAppxManifestCapabilitiesEnumerator_Vtbl { @@ -2266,9 +1898,8 @@ pub struct IAppxManifestCapabilitiesEnumerator_Vtbl { pub GetHasCurrent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub MoveNext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxManifestDeviceCapabilitiesEnumerator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxManifestDeviceCapabilitiesEnumerator, IAppxManifestDeviceCapabilitiesEnumerator_Vtbl, 0x30204541_427b_4a1c_bacf_655bf463a540); +::windows_core::imp::interface_hierarchy!(IAppxManifestDeviceCapabilitiesEnumerator, ::windows_core::IUnknown); impl IAppxManifestDeviceCapabilitiesEnumerator { pub unsafe fn GetCurrent(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); @@ -2283,13 +1914,6 @@ impl IAppxManifestDeviceCapabilitiesEnumerator { (::windows_core::Interface::vtable(self).MoveNext)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAppxManifestDeviceCapabilitiesEnumerator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxManifestDeviceCapabilitiesEnumerator { - type Vtable = IAppxManifestDeviceCapabilitiesEnumerator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxManifestDeviceCapabilitiesEnumerator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x30204541_427b_4a1c_bacf_655bf463a540); -} #[repr(C)] #[doc(hidden)] pub struct IAppxManifestDeviceCapabilitiesEnumerator_Vtbl { @@ -2298,9 +1922,8 @@ pub struct IAppxManifestDeviceCapabilitiesEnumerator_Vtbl { pub GetHasCurrent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub MoveNext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxManifestDriverConstraint(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxManifestDriverConstraint, IAppxManifestDriverConstraint_Vtbl, 0xc031bee4_bbcc_48ea_a237_c34045c80a07); +::windows_core::imp::interface_hierarchy!(IAppxManifestDriverConstraint, ::windows_core::IUnknown); impl IAppxManifestDriverConstraint { pub unsafe fn GetName(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); @@ -2315,13 +1938,6 @@ impl IAppxManifestDriverConstraint { (::windows_core::Interface::vtable(self).GetMinDate)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAppxManifestDriverConstraint, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxManifestDriverConstraint { - type Vtable = IAppxManifestDriverConstraint_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxManifestDriverConstraint { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc031bee4_bbcc_48ea_a237_c34045c80a07); -} #[repr(C)] #[doc(hidden)] pub struct IAppxManifestDriverConstraint_Vtbl { @@ -2330,9 +1946,8 @@ pub struct IAppxManifestDriverConstraint_Vtbl { pub GetMinVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, minversion: *mut u64) -> ::windows_core::HRESULT, pub GetMinDate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mindate: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxManifestDriverConstraintsEnumerator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxManifestDriverConstraintsEnumerator, IAppxManifestDriverConstraintsEnumerator_Vtbl, 0xd402b2d1_f600_49e0_95e6_975d8da13d89); +::windows_core::imp::interface_hierarchy!(IAppxManifestDriverConstraintsEnumerator, ::windows_core::IUnknown); impl IAppxManifestDriverConstraintsEnumerator { pub unsafe fn GetCurrent(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2347,13 +1962,6 @@ impl IAppxManifestDriverConstraintsEnumerator { (::windows_core::Interface::vtable(self).MoveNext)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAppxManifestDriverConstraintsEnumerator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxManifestDriverConstraintsEnumerator { - type Vtable = IAppxManifestDriverConstraintsEnumerator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxManifestDriverConstraintsEnumerator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd402b2d1_f600_49e0_95e6_975d8da13d89); -} #[repr(C)] #[doc(hidden)] pub struct IAppxManifestDriverConstraintsEnumerator_Vtbl { @@ -2362,9 +1970,8 @@ pub struct IAppxManifestDriverConstraintsEnumerator_Vtbl { pub GetHasCurrent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub MoveNext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxManifestDriverDependenciesEnumerator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxManifestDriverDependenciesEnumerator, IAppxManifestDriverDependenciesEnumerator_Vtbl, 0xfe039db2_467f_4755_8404_8f5eb6865b33); +::windows_core::imp::interface_hierarchy!(IAppxManifestDriverDependenciesEnumerator, ::windows_core::IUnknown); impl IAppxManifestDriverDependenciesEnumerator { pub unsafe fn GetCurrent(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2379,13 +1986,6 @@ impl IAppxManifestDriverDependenciesEnumerator { (::windows_core::Interface::vtable(self).MoveNext)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAppxManifestDriverDependenciesEnumerator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxManifestDriverDependenciesEnumerator { - type Vtable = IAppxManifestDriverDependenciesEnumerator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxManifestDriverDependenciesEnumerator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfe039db2_467f_4755_8404_8f5eb6865b33); -} #[repr(C)] #[doc(hidden)] pub struct IAppxManifestDriverDependenciesEnumerator_Vtbl { @@ -2394,31 +1994,22 @@ pub struct IAppxManifestDriverDependenciesEnumerator_Vtbl { pub GetHasCurrent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub MoveNext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxManifestDriverDependency(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxManifestDriverDependency, IAppxManifestDriverDependency_Vtbl, 0x1210cb94_5a92_4602_be24_79f318af4af9); +::windows_core::imp::interface_hierarchy!(IAppxManifestDriverDependency, ::windows_core::IUnknown); impl IAppxManifestDriverDependency { pub unsafe fn GetDriverConstraints(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetDriverConstraints)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAppxManifestDriverDependency, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxManifestDriverDependency { - type Vtable = IAppxManifestDriverDependency_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxManifestDriverDependency { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1210cb94_5a92_4602_be24_79f318af4af9); -} #[repr(C)] #[doc(hidden)] pub struct IAppxManifestDriverDependency_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetDriverConstraints: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, driverconstraints: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxManifestHostRuntimeDependenciesEnumerator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxManifestHostRuntimeDependenciesEnumerator, IAppxManifestHostRuntimeDependenciesEnumerator_Vtbl, 0x6427a646_7f49_433e_b1a6_0da309f6885a); +::windows_core::imp::interface_hierarchy!(IAppxManifestHostRuntimeDependenciesEnumerator, ::windows_core::IUnknown); impl IAppxManifestHostRuntimeDependenciesEnumerator { pub unsafe fn GetCurrent(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2433,13 +2024,6 @@ impl IAppxManifestHostRuntimeDependenciesEnumerator { (::windows_core::Interface::vtable(self).MoveNext)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAppxManifestHostRuntimeDependenciesEnumerator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxManifestHostRuntimeDependenciesEnumerator { - type Vtable = IAppxManifestHostRuntimeDependenciesEnumerator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxManifestHostRuntimeDependenciesEnumerator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6427a646_7f49_433e_b1a6_0da309f6885a); -} #[repr(C)] #[doc(hidden)] pub struct IAppxManifestHostRuntimeDependenciesEnumerator_Vtbl { @@ -2448,9 +2032,8 @@ pub struct IAppxManifestHostRuntimeDependenciesEnumerator_Vtbl { pub GetHasCurrent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub MoveNext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxManifestHostRuntimeDependency(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxManifestHostRuntimeDependency, IAppxManifestHostRuntimeDependency_Vtbl, 0x3455d234_8414_410d_95c7_7b35255b8391); +::windows_core::imp::interface_hierarchy!(IAppxManifestHostRuntimeDependency, ::windows_core::IUnknown); impl IAppxManifestHostRuntimeDependency { pub unsafe fn GetName(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); @@ -2465,13 +2048,6 @@ impl IAppxManifestHostRuntimeDependency { (::windows_core::Interface::vtable(self).GetMinVersion)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAppxManifestHostRuntimeDependency, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxManifestHostRuntimeDependency { - type Vtable = IAppxManifestHostRuntimeDependency_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxManifestHostRuntimeDependency { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3455d234_8414_410d_95c7_7b35255b8391); -} #[repr(C)] #[doc(hidden)] pub struct IAppxManifestHostRuntimeDependency_Vtbl { @@ -2480,31 +2056,22 @@ pub struct IAppxManifestHostRuntimeDependency_Vtbl { pub GetPublisher: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, publisher: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, pub GetMinVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, minversion: *mut u64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxManifestHostRuntimeDependency2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxManifestHostRuntimeDependency2, IAppxManifestHostRuntimeDependency2_Vtbl, 0xc26f23a8_ee10_4ad6_b898_2b4d7aebfe6a); +::windows_core::imp::interface_hierarchy!(IAppxManifestHostRuntimeDependency2, ::windows_core::IUnknown); impl IAppxManifestHostRuntimeDependency2 { pub unsafe fn GetPackageFamilyName(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetPackageFamilyName)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAppxManifestHostRuntimeDependency2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxManifestHostRuntimeDependency2 { - type Vtable = IAppxManifestHostRuntimeDependency2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxManifestHostRuntimeDependency2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc26f23a8_ee10_4ad6_b898_2b4d7aebfe6a); -} #[repr(C)] #[doc(hidden)] pub struct IAppxManifestHostRuntimeDependency2_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetPackageFamilyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, packagefamilyname: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxManifestMainPackageDependenciesEnumerator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxManifestMainPackageDependenciesEnumerator, IAppxManifestMainPackageDependenciesEnumerator_Vtbl, 0xa99c4f00_51d2_4f0f_ba46_7ed5255ebdff); +::windows_core::imp::interface_hierarchy!(IAppxManifestMainPackageDependenciesEnumerator, ::windows_core::IUnknown); impl IAppxManifestMainPackageDependenciesEnumerator { pub unsafe fn GetCurrent(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2519,13 +2086,6 @@ impl IAppxManifestMainPackageDependenciesEnumerator { (::windows_core::Interface::vtable(self).MoveNext)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAppxManifestMainPackageDependenciesEnumerator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxManifestMainPackageDependenciesEnumerator { - type Vtable = IAppxManifestMainPackageDependenciesEnumerator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxManifestMainPackageDependenciesEnumerator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa99c4f00_51d2_4f0f_ba46_7ed5255ebdff); -} #[repr(C)] #[doc(hidden)] pub struct IAppxManifestMainPackageDependenciesEnumerator_Vtbl { @@ -2534,9 +2094,8 @@ pub struct IAppxManifestMainPackageDependenciesEnumerator_Vtbl { pub GetHasCurrent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub MoveNext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxManifestMainPackageDependency(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxManifestMainPackageDependency, IAppxManifestMainPackageDependency_Vtbl, 0x05d0611c_bc29_46d5_97e2_84b9c79bd8ae); +::windows_core::imp::interface_hierarchy!(IAppxManifestMainPackageDependency, ::windows_core::IUnknown); impl IAppxManifestMainPackageDependency { pub unsafe fn GetName(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); @@ -2551,13 +2110,6 @@ impl IAppxManifestMainPackageDependency { (::windows_core::Interface::vtable(self).GetPackageFamilyName)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAppxManifestMainPackageDependency, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxManifestMainPackageDependency { - type Vtable = IAppxManifestMainPackageDependency_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxManifestMainPackageDependency { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x05d0611c_bc29_46d5_97e2_84b9c79bd8ae); -} #[repr(C)] #[doc(hidden)] pub struct IAppxManifestMainPackageDependency_Vtbl { @@ -2566,9 +2118,8 @@ pub struct IAppxManifestMainPackageDependency_Vtbl { pub GetPublisher: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, publisher: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, pub GetPackageFamilyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, packagefamilyname: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxManifestOSPackageDependenciesEnumerator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxManifestOSPackageDependenciesEnumerator, IAppxManifestOSPackageDependenciesEnumerator_Vtbl, 0xb84e2fc3_f8ec_4bc1_8ae2_156346f5ffea); +::windows_core::imp::interface_hierarchy!(IAppxManifestOSPackageDependenciesEnumerator, ::windows_core::IUnknown); impl IAppxManifestOSPackageDependenciesEnumerator { pub unsafe fn GetCurrent(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2583,13 +2134,6 @@ impl IAppxManifestOSPackageDependenciesEnumerator { (::windows_core::Interface::vtable(self).MoveNext)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAppxManifestOSPackageDependenciesEnumerator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxManifestOSPackageDependenciesEnumerator { - type Vtable = IAppxManifestOSPackageDependenciesEnumerator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxManifestOSPackageDependenciesEnumerator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb84e2fc3_f8ec_4bc1_8ae2_156346f5ffea); -} #[repr(C)] #[doc(hidden)] pub struct IAppxManifestOSPackageDependenciesEnumerator_Vtbl { @@ -2598,9 +2142,8 @@ pub struct IAppxManifestOSPackageDependenciesEnumerator_Vtbl { pub GetHasCurrent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub MoveNext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxManifestOSPackageDependency(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxManifestOSPackageDependency, IAppxManifestOSPackageDependency_Vtbl, 0x154995ee_54a6_4f14_ac97_d8cf0519644b); +::windows_core::imp::interface_hierarchy!(IAppxManifestOSPackageDependency, ::windows_core::IUnknown); impl IAppxManifestOSPackageDependency { pub unsafe fn GetName(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); @@ -2611,13 +2154,6 @@ impl IAppxManifestOSPackageDependency { (::windows_core::Interface::vtable(self).GetVersion)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAppxManifestOSPackageDependency, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxManifestOSPackageDependency { - type Vtable = IAppxManifestOSPackageDependency_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxManifestOSPackageDependency { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x154995ee_54a6_4f14_ac97_d8cf0519644b); -} #[repr(C)] #[doc(hidden)] pub struct IAppxManifestOSPackageDependency_Vtbl { @@ -2625,9 +2161,8 @@ pub struct IAppxManifestOSPackageDependency_Vtbl { pub GetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, pub GetVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, version: *mut u64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxManifestOptionalPackageInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxManifestOptionalPackageInfo, IAppxManifestOptionalPackageInfo_Vtbl, 0x2634847d_5b5d_4fe5_a243_002ff95edc7e); +::windows_core::imp::interface_hierarchy!(IAppxManifestOptionalPackageInfo, ::windows_core::IUnknown); impl IAppxManifestOptionalPackageInfo { pub unsafe fn GetIsOptionalPackage(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2638,13 +2173,6 @@ impl IAppxManifestOptionalPackageInfo { (::windows_core::Interface::vtable(self).GetMainPackageName)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAppxManifestOptionalPackageInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxManifestOptionalPackageInfo { - type Vtable = IAppxManifestOptionalPackageInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxManifestOptionalPackageInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2634847d_5b5d_4fe5_a243_002ff95edc7e); -} #[repr(C)] #[doc(hidden)] pub struct IAppxManifestOptionalPackageInfo_Vtbl { @@ -2652,9 +2180,8 @@ pub struct IAppxManifestOptionalPackageInfo_Vtbl { pub GetIsOptionalPackage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, isoptionalpackage: *mut super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub GetMainPackageName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mainpackagename: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxManifestPackageDependenciesEnumerator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxManifestPackageDependenciesEnumerator, IAppxManifestPackageDependenciesEnumerator_Vtbl, 0xb43bbcf9_65a6_42dd_bac0_8c6741e7f5a4); +::windows_core::imp::interface_hierarchy!(IAppxManifestPackageDependenciesEnumerator, ::windows_core::IUnknown); impl IAppxManifestPackageDependenciesEnumerator { pub unsafe fn GetCurrent(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2669,13 +2196,6 @@ impl IAppxManifestPackageDependenciesEnumerator { (::windows_core::Interface::vtable(self).MoveNext)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAppxManifestPackageDependenciesEnumerator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxManifestPackageDependenciesEnumerator { - type Vtable = IAppxManifestPackageDependenciesEnumerator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxManifestPackageDependenciesEnumerator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb43bbcf9_65a6_42dd_bac0_8c6741e7f5a4); -} #[repr(C)] #[doc(hidden)] pub struct IAppxManifestPackageDependenciesEnumerator_Vtbl { @@ -2684,9 +2204,8 @@ pub struct IAppxManifestPackageDependenciesEnumerator_Vtbl { pub GetHasCurrent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub MoveNext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxManifestPackageDependency(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxManifestPackageDependency, IAppxManifestPackageDependency_Vtbl, 0xe4946b59_733e_43f0_a724_3bde4c1285a0); +::windows_core::imp::interface_hierarchy!(IAppxManifestPackageDependency, ::windows_core::IUnknown); impl IAppxManifestPackageDependency { pub unsafe fn GetName(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); @@ -2701,13 +2220,6 @@ impl IAppxManifestPackageDependency { (::windows_core::Interface::vtable(self).GetMinVersion)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAppxManifestPackageDependency, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxManifestPackageDependency { - type Vtable = IAppxManifestPackageDependency_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxManifestPackageDependency { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe4946b59_733e_43f0_a724_3bde4c1285a0); -} #[repr(C)] #[doc(hidden)] pub struct IAppxManifestPackageDependency_Vtbl { @@ -2716,9 +2228,8 @@ pub struct IAppxManifestPackageDependency_Vtbl { pub GetPublisher: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, publisher: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, pub GetMinVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, minversion: *mut u64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxManifestPackageDependency2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxManifestPackageDependency2, IAppxManifestPackageDependency2_Vtbl, 0xdda0b713_f3ff_49d3_898a_2786780c5d98); +::windows_core::imp::interface_hierarchy!(IAppxManifestPackageDependency2, ::windows_core::IUnknown, IAppxManifestPackageDependency); impl IAppxManifestPackageDependency2 { pub unsafe fn GetName(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); @@ -2737,44 +2248,28 @@ impl IAppxManifestPackageDependency2 { (::windows_core::Interface::vtable(self).GetMaxMajorVersionTested)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAppxManifestPackageDependency2, ::windows_core::IUnknown, IAppxManifestPackageDependency); -unsafe impl ::windows_core::Interface for IAppxManifestPackageDependency2 { - type Vtable = IAppxManifestPackageDependency2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxManifestPackageDependency2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdda0b713_f3ff_49d3_898a_2786780c5d98); -} #[repr(C)] #[doc(hidden)] pub struct IAppxManifestPackageDependency2_Vtbl { pub base__: IAppxManifestPackageDependency_Vtbl, pub GetMaxMajorVersionTested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, maxmajorversiontested: *mut u16) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxManifestPackageDependency3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxManifestPackageDependency3, IAppxManifestPackageDependency3_Vtbl, 0x1ac56374_6198_4d6b_92e4_749d5ab8a895); +::windows_core::imp::interface_hierarchy!(IAppxManifestPackageDependency3, ::windows_core::IUnknown); impl IAppxManifestPackageDependency3 { pub unsafe fn GetIsOptional(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetIsOptional)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAppxManifestPackageDependency3, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxManifestPackageDependency3 { - type Vtable = IAppxManifestPackageDependency3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxManifestPackageDependency3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1ac56374_6198_4d6b_92e4_749d5ab8a895); -} #[repr(C)] #[doc(hidden)] pub struct IAppxManifestPackageDependency3_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetIsOptional: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, isoptional: *mut super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxManifestPackageId(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxManifestPackageId, IAppxManifestPackageId_Vtbl, 0x283ce2d7_7153_4a91_9649_7a0f7240945f); +::windows_core::imp::interface_hierarchy!(IAppxManifestPackageId, ::windows_core::IUnknown); impl IAppxManifestPackageId { pub unsafe fn GetName(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); @@ -2812,13 +2307,6 @@ impl IAppxManifestPackageId { (::windows_core::Interface::vtable(self).GetPackageFamilyName)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAppxManifestPackageId, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxManifestPackageId { - type Vtable = IAppxManifestPackageId_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxManifestPackageId { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x283ce2d7_7153_4a91_9649_7a0f7240945f); -} #[repr(C)] #[doc(hidden)] pub struct IAppxManifestPackageId_Vtbl { @@ -2832,9 +2320,8 @@ pub struct IAppxManifestPackageId_Vtbl { pub GetPackageFullName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, packagefullname: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, pub GetPackageFamilyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, packagefamilyname: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxManifestPackageId2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxManifestPackageId2, IAppxManifestPackageId2_Vtbl, 0x2256999d_d617_42f1_880e_0ba4542319d5); +::windows_core::imp::interface_hierarchy!(IAppxManifestPackageId2, ::windows_core::IUnknown, IAppxManifestPackageId); impl IAppxManifestPackageId2 { pub unsafe fn GetName(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); @@ -2876,22 +2363,14 @@ impl IAppxManifestPackageId2 { (::windows_core::Interface::vtable(self).GetArchitecture2)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAppxManifestPackageId2, ::windows_core::IUnknown, IAppxManifestPackageId); -unsafe impl ::windows_core::Interface for IAppxManifestPackageId2 { - type Vtable = IAppxManifestPackageId2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxManifestPackageId2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2256999d_d617_42f1_880e_0ba4542319d5); -} #[repr(C)] #[doc(hidden)] pub struct IAppxManifestPackageId2_Vtbl { pub base__: IAppxManifestPackageId_Vtbl, pub GetArchitecture2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, architecture: *mut APPX_PACKAGE_ARCHITECTURE2) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxManifestProperties(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxManifestProperties, IAppxManifestProperties_Vtbl, 0x03faf64d_f26f_4b2c_aaf7_8fe7789b8bca); +::windows_core::imp::interface_hierarchy!(IAppxManifestProperties, ::windows_core::IUnknown); impl IAppxManifestProperties { pub unsafe fn GetBoolValue(&self, name: P0) -> ::windows_core::Result where @@ -2908,13 +2387,6 @@ impl IAppxManifestProperties { (::windows_core::Interface::vtable(self).GetStringValue)(::windows_core::Interface::as_raw(self), name.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAppxManifestProperties, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxManifestProperties { - type Vtable = IAppxManifestProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxManifestProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x03faf64d_f26f_4b2c_aaf7_8fe7789b8bca); -} #[repr(C)] #[doc(hidden)] pub struct IAppxManifestProperties_Vtbl { @@ -2922,9 +2394,8 @@ pub struct IAppxManifestProperties_Vtbl { pub GetBoolValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::windows_core::PCWSTR, value: *mut super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub GetStringValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::windows_core::PCWSTR, value: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxManifestQualifiedResource(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxManifestQualifiedResource, IAppxManifestQualifiedResource_Vtbl, 0x3b53a497_3c5c_48d1_9ea3_bb7eac8cd7d4); +::windows_core::imp::interface_hierarchy!(IAppxManifestQualifiedResource, ::windows_core::IUnknown); impl IAppxManifestQualifiedResource { pub unsafe fn GetLanguage(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); @@ -2939,13 +2410,6 @@ impl IAppxManifestQualifiedResource { (::windows_core::Interface::vtable(self).GetDXFeatureLevel)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAppxManifestQualifiedResource, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxManifestQualifiedResource { - type Vtable = IAppxManifestQualifiedResource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxManifestQualifiedResource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3b53a497_3c5c_48d1_9ea3_bb7eac8cd7d4); -} #[repr(C)] #[doc(hidden)] pub struct IAppxManifestQualifiedResource_Vtbl { @@ -2954,9 +2418,8 @@ pub struct IAppxManifestQualifiedResource_Vtbl { pub GetScale: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, scale: *mut u32) -> ::windows_core::HRESULT, pub GetDXFeatureLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dxfeaturelevel: *mut DX_FEATURE_LEVEL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxManifestQualifiedResourcesEnumerator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxManifestQualifiedResourcesEnumerator, IAppxManifestQualifiedResourcesEnumerator_Vtbl, 0x8ef6adfe_3762_4a8f_9373_2fc5d444c8d2); +::windows_core::imp::interface_hierarchy!(IAppxManifestQualifiedResourcesEnumerator, ::windows_core::IUnknown); impl IAppxManifestQualifiedResourcesEnumerator { pub unsafe fn GetCurrent(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2971,13 +2434,6 @@ impl IAppxManifestQualifiedResourcesEnumerator { (::windows_core::Interface::vtable(self).MoveNext)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAppxManifestQualifiedResourcesEnumerator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxManifestQualifiedResourcesEnumerator { - type Vtable = IAppxManifestQualifiedResourcesEnumerator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxManifestQualifiedResourcesEnumerator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8ef6adfe_3762_4a8f_9373_2fc5d444c8d2); -} #[repr(C)] #[doc(hidden)] pub struct IAppxManifestQualifiedResourcesEnumerator_Vtbl { @@ -2986,9 +2442,8 @@ pub struct IAppxManifestQualifiedResourcesEnumerator_Vtbl { pub GetHasCurrent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub MoveNext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxManifestReader(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxManifestReader, IAppxManifestReader_Vtbl, 0x4e1bd148_55a0_4480_a3d1_15544710637c); +::windows_core::imp::interface_hierarchy!(IAppxManifestReader, ::windows_core::IUnknown); impl IAppxManifestReader { pub unsafe fn GetPackageId(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -3032,13 +2487,6 @@ impl IAppxManifestReader { (::windows_core::Interface::vtable(self).GetStream)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAppxManifestReader, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxManifestReader { - type Vtable = IAppxManifestReader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxManifestReader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4e1bd148_55a0_4480_a3d1_15544710637c); -} #[repr(C)] #[doc(hidden)] pub struct IAppxManifestReader_Vtbl { @@ -3056,9 +2504,8 @@ pub struct IAppxManifestReader_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetStream: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxManifestReader2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxManifestReader2, IAppxManifestReader2_Vtbl, 0xd06f67bc_b31d_4eba_a8af_638e73e77b4d); +::windows_core::imp::interface_hierarchy!(IAppxManifestReader2, ::windows_core::IUnknown, IAppxManifestReader); impl IAppxManifestReader2 { pub unsafe fn GetPackageId(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -3106,22 +2553,14 @@ impl IAppxManifestReader2 { (::windows_core::Interface::vtable(self).GetQualifiedResources)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAppxManifestReader2, ::windows_core::IUnknown, IAppxManifestReader); -unsafe impl ::windows_core::Interface for IAppxManifestReader2 { - type Vtable = IAppxManifestReader2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxManifestReader2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd06f67bc_b31d_4eba_a8af_638e73e77b4d); -} #[repr(C)] #[doc(hidden)] pub struct IAppxManifestReader2_Vtbl { pub base__: IAppxManifestReader_Vtbl, pub GetQualifiedResources: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, resources: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxManifestReader3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxManifestReader3, IAppxManifestReader3_Vtbl, 0xc43825ab_69b7_400a_9709_cc37f5a72d24); +::windows_core::imp::interface_hierarchy!(IAppxManifestReader3, ::windows_core::IUnknown, IAppxManifestReader, IAppxManifestReader2); impl IAppxManifestReader3 { pub unsafe fn GetPackageId(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -3177,13 +2616,6 @@ impl IAppxManifestReader3 { (::windows_core::Interface::vtable(self).GetTargetDeviceFamilies)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAppxManifestReader3, ::windows_core::IUnknown, IAppxManifestReader, IAppxManifestReader2); -unsafe impl ::windows_core::Interface for IAppxManifestReader3 { - type Vtable = IAppxManifestReader3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxManifestReader3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc43825ab_69b7_400a_9709_cc37f5a72d24); -} #[repr(C)] #[doc(hidden)] pub struct IAppxManifestReader3_Vtbl { @@ -3191,9 +2623,8 @@ pub struct IAppxManifestReader3_Vtbl { pub GetCapabilitiesByCapabilityClass: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, capabilityclass: APPX_CAPABILITY_CLASS_TYPE, capabilities: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetTargetDeviceFamilies: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, targetdevicefamilies: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxManifestReader4(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxManifestReader4, IAppxManifestReader4_Vtbl, 0x4579bb7c_741d_4161_b5a1_47bd3b78ad9b); +::windows_core::imp::interface_hierarchy!(IAppxManifestReader4, ::windows_core::IUnknown, IAppxManifestReader, IAppxManifestReader2, IAppxManifestReader3); impl IAppxManifestReader4 { pub unsafe fn GetPackageId(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -3253,66 +2684,42 @@ impl IAppxManifestReader4 { (::windows_core::Interface::vtable(self).GetOptionalPackageInfo)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAppxManifestReader4, ::windows_core::IUnknown, IAppxManifestReader, IAppxManifestReader2, IAppxManifestReader3); -unsafe impl ::windows_core::Interface for IAppxManifestReader4 { - type Vtable = IAppxManifestReader4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxManifestReader4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4579bb7c_741d_4161_b5a1_47bd3b78ad9b); -} #[repr(C)] #[doc(hidden)] pub struct IAppxManifestReader4_Vtbl { pub base__: IAppxManifestReader3_Vtbl, pub GetOptionalPackageInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, optionalpackageinfo: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxManifestReader5(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxManifestReader5, IAppxManifestReader5_Vtbl, 0x8d7ae132_a690_4c00_b75a_6aae1feaac80); +::windows_core::imp::interface_hierarchy!(IAppxManifestReader5, ::windows_core::IUnknown); impl IAppxManifestReader5 { pub unsafe fn GetMainPackageDependencies(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetMainPackageDependencies)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAppxManifestReader5, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxManifestReader5 { - type Vtable = IAppxManifestReader5_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxManifestReader5 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8d7ae132_a690_4c00_b75a_6aae1feaac80); -} #[repr(C)] #[doc(hidden)] pub struct IAppxManifestReader5_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetMainPackageDependencies: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mainpackagedependencies: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxManifestReader6(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxManifestReader6, IAppxManifestReader6_Vtbl, 0x34deaca4_d3c0_4e3e_b312_e42625e3807e); +::windows_core::imp::interface_hierarchy!(IAppxManifestReader6, ::windows_core::IUnknown); impl IAppxManifestReader6 { pub unsafe fn GetIsNonQualifiedResourcePackage(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetIsNonQualifiedResourcePackage)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAppxManifestReader6, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxManifestReader6 { - type Vtable = IAppxManifestReader6_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxManifestReader6 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x34deaca4_d3c0_4e3e_b312_e42625e3807e); -} #[repr(C)] #[doc(hidden)] pub struct IAppxManifestReader6_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetIsNonQualifiedResourcePackage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, isnonqualifiedresourcepackage: *mut super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxManifestReader7(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxManifestReader7, IAppxManifestReader7_Vtbl, 0x8efe6f27_0ce0_4988_b32d_738eb63db3b7); +::windows_core::imp::interface_hierarchy!(IAppxManifestReader7, ::windows_core::IUnknown); impl IAppxManifestReader7 { pub unsafe fn GetDriverDependencies(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -3327,13 +2734,6 @@ impl IAppxManifestReader7 { (::windows_core::Interface::vtable(self).GetHostRuntimeDependencies)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAppxManifestReader7, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxManifestReader7 { - type Vtable = IAppxManifestReader7_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxManifestReader7 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8efe6f27_0ce0_4988_b32d_738eb63db3b7); -} #[repr(C)] #[doc(hidden)] pub struct IAppxManifestReader7_Vtbl { @@ -3342,9 +2742,8 @@ pub struct IAppxManifestReader7_Vtbl { pub GetOSPackageDependencies: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ospackagedependencies: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetHostRuntimeDependencies: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hostruntimedependencies: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxManifestResourcesEnumerator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxManifestResourcesEnumerator, IAppxManifestResourcesEnumerator_Vtbl, 0xde4dfbbd_881a_48bb_858c_d6f2baeae6ed); +::windows_core::imp::interface_hierarchy!(IAppxManifestResourcesEnumerator, ::windows_core::IUnknown); impl IAppxManifestResourcesEnumerator { pub unsafe fn GetCurrent(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); @@ -3359,13 +2758,6 @@ impl IAppxManifestResourcesEnumerator { (::windows_core::Interface::vtable(self).MoveNext)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAppxManifestResourcesEnumerator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxManifestResourcesEnumerator { - type Vtable = IAppxManifestResourcesEnumerator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxManifestResourcesEnumerator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xde4dfbbd_881a_48bb_858c_d6f2baeae6ed); -} #[repr(C)] #[doc(hidden)] pub struct IAppxManifestResourcesEnumerator_Vtbl { @@ -3374,9 +2766,8 @@ pub struct IAppxManifestResourcesEnumerator_Vtbl { pub GetHasCurrent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub MoveNext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxManifestTargetDeviceFamiliesEnumerator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxManifestTargetDeviceFamiliesEnumerator, IAppxManifestTargetDeviceFamiliesEnumerator_Vtbl, 0x36537f36_27a4_4788_88c0_733819575017); +::windows_core::imp::interface_hierarchy!(IAppxManifestTargetDeviceFamiliesEnumerator, ::windows_core::IUnknown); impl IAppxManifestTargetDeviceFamiliesEnumerator { pub unsafe fn GetCurrent(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -3391,13 +2782,6 @@ impl IAppxManifestTargetDeviceFamiliesEnumerator { (::windows_core::Interface::vtable(self).MoveNext)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAppxManifestTargetDeviceFamiliesEnumerator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxManifestTargetDeviceFamiliesEnumerator { - type Vtable = IAppxManifestTargetDeviceFamiliesEnumerator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxManifestTargetDeviceFamiliesEnumerator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x36537f36_27a4_4788_88c0_733819575017); -} #[repr(C)] #[doc(hidden)] pub struct IAppxManifestTargetDeviceFamiliesEnumerator_Vtbl { @@ -3406,9 +2790,8 @@ pub struct IAppxManifestTargetDeviceFamiliesEnumerator_Vtbl { pub GetHasCurrent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hascurrent: *mut super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub MoveNext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hasnext: *mut super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxManifestTargetDeviceFamily(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxManifestTargetDeviceFamily, IAppxManifestTargetDeviceFamily_Vtbl, 0x9091b09b_c8d5_4f31_8687_a338259faefb); +::windows_core::imp::interface_hierarchy!(IAppxManifestTargetDeviceFamily, ::windows_core::IUnknown); impl IAppxManifestTargetDeviceFamily { pub unsafe fn GetName(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); @@ -3423,13 +2806,6 @@ impl IAppxManifestTargetDeviceFamily { (::windows_core::Interface::vtable(self).GetMaxVersionTested)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAppxManifestTargetDeviceFamily, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxManifestTargetDeviceFamily { - type Vtable = IAppxManifestTargetDeviceFamily_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxManifestTargetDeviceFamily { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9091b09b_c8d5_4f31_8687_a338259faefb); -} #[repr(C)] #[doc(hidden)] pub struct IAppxManifestTargetDeviceFamily_Vtbl { @@ -3438,9 +2814,8 @@ pub struct IAppxManifestTargetDeviceFamily_Vtbl { pub GetMinVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, minversion: *mut u64) -> ::windows_core::HRESULT, pub GetMaxVersionTested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, maxversiontested: *mut u64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxPackageEditor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxPackageEditor, IAppxPackageEditor_Vtbl, 0xe2adb6dc_5e71_4416_86b6_86e5f5291a6b); +::windows_core::imp::interface_hierarchy!(IAppxPackageEditor, ::windows_core::IUnknown); impl IAppxPackageEditor { pub unsafe fn SetWorkingDirectory(&self, workingdirectory: P0) -> ::windows_core::Result<()> where @@ -3498,13 +2873,6 @@ impl IAppxPackageEditor { (::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::imp::interface_hierarchy!(IAppxPackageEditor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxPackageEditor { - type Vtable = IAppxPackageEditor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxPackageEditor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe2adb6dc_5e71_4416_86b6_86e5f5291a6b); -} #[repr(C)] #[doc(hidden)] pub struct IAppxPackageEditor_Vtbl { @@ -3531,9 +2899,8 @@ pub struct IAppxPackageEditor_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] UpdatePackageManifest: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxPackageReader(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxPackageReader, IAppxPackageReader_Vtbl, 0xb5c49650_99bc_481c_9a34_3d53a4106708); +::windows_core::imp::interface_hierarchy!(IAppxPackageReader, ::windows_core::IUnknown); impl IAppxPackageReader { pub unsafe fn GetBlockMap(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -3559,13 +2926,6 @@ impl IAppxPackageReader { (::windows_core::Interface::vtable(self).GetManifest)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAppxPackageReader, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxPackageReader { - type Vtable = IAppxPackageReader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxPackageReader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb5c49650_99bc_481c_9a34_3d53a4106708); -} #[repr(C)] #[doc(hidden)] pub struct IAppxPackageReader_Vtbl { @@ -3576,9 +2936,8 @@ pub struct IAppxPackageReader_Vtbl { pub GetPayloadFiles: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filesenumerator: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetManifest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, manifestreader: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxPackageWriter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxPackageWriter, IAppxPackageWriter_Vtbl, 0x9099e33b_246f_41e4_881a_008eb613f858); +::windows_core::imp::interface_hierarchy!(IAppxPackageWriter, ::windows_core::IUnknown); impl IAppxPackageWriter { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -3599,13 +2958,6 @@ impl IAppxPackageWriter { (::windows_core::Interface::vtable(self).Close)(::windows_core::Interface::as_raw(self), manifest.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IAppxPackageWriter, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxPackageWriter { - type Vtable = IAppxPackageWriter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxPackageWriter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9099e33b_246f_41e4_881a_008eb613f858); -} #[repr(C)] #[doc(hidden)] pub struct IAppxPackageWriter_Vtbl { @@ -3619,9 +2971,8 @@ pub struct IAppxPackageWriter_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Close: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxPackageWriter2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxPackageWriter2, IAppxPackageWriter2_Vtbl, 0x2cf5c4fd_e54c_4ea5_ba4e_f8c4b105a8c8); +::windows_core::imp::interface_hierarchy!(IAppxPackageWriter2, ::windows_core::IUnknown); impl IAppxPackageWriter2 { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -3633,13 +2984,6 @@ impl IAppxPackageWriter2 { (::windows_core::Interface::vtable(self).Close)(::windows_core::Interface::as_raw(self), manifest.into_param().abi(), contentgroupmap.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IAppxPackageWriter2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxPackageWriter2 { - type Vtable = IAppxPackageWriter2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxPackageWriter2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2cf5c4fd_e54c_4ea5_ba4e_f8c4b105a8c8); -} #[repr(C)] #[doc(hidden)] pub struct IAppxPackageWriter2_Vtbl { @@ -3649,9 +2993,8 @@ pub struct IAppxPackageWriter2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Close: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxPackageWriter3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxPackageWriter3, IAppxPackageWriter3_Vtbl, 0xa83aacd3_41c0_4501_b8a3_74164f50b2fd); +::windows_core::imp::interface_hierarchy!(IAppxPackageWriter3, ::windows_core::IUnknown); impl IAppxPackageWriter3 { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -3659,13 +3002,6 @@ impl IAppxPackageWriter3 { (::windows_core::Interface::vtable(self).AddPayloadFiles)(::windows_core::Interface::as_raw(self), payloadfiles.len().try_into().unwrap(), ::core::mem::transmute(payloadfiles.as_ptr()), memorylimit).ok() } } -::windows_core::imp::interface_hierarchy!(IAppxPackageWriter3, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxPackageWriter3 { - type Vtable = IAppxPackageWriter3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxPackageWriter3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa83aacd3_41c0_4501_b8a3_74164f50b2fd); -} #[repr(C)] #[doc(hidden)] pub struct IAppxPackageWriter3_Vtbl { @@ -3675,9 +3011,8 @@ pub struct IAppxPackageWriter3_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] AddPayloadFiles: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxPackagingDiagnosticEventSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxPackagingDiagnosticEventSink, IAppxPackagingDiagnosticEventSink_Vtbl, 0x17239d47_6adb_45d2_80f6_f9cbc3bf059d); +::windows_core::imp::interface_hierarchy!(IAppxPackagingDiagnosticEventSink, ::windows_core::IUnknown); 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 @@ -3694,13 +3029,6 @@ impl IAppxPackagingDiagnosticEventSink { (::windows_core::Interface::vtable(self).ReportError)(::windows_core::Interface::as_raw(self), errormessage.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IAppxPackagingDiagnosticEventSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxPackagingDiagnosticEventSink { - type Vtable = IAppxPackagingDiagnosticEventSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxPackagingDiagnosticEventSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x17239d47_6adb_45d2_80f6_f9cbc3bf059d); -} #[repr(C)] #[doc(hidden)] pub struct IAppxPackagingDiagnosticEventSink_Vtbl { @@ -3708,9 +3036,8 @@ pub struct IAppxPackagingDiagnosticEventSink_Vtbl { pub ReportContextChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, changetype: APPX_PACKAGING_CONTEXT_CHANGE_TYPE, contextid: i32, contextname: ::windows_core::PCSTR, contextmessage: ::windows_core::PCWSTR, detailsmessage: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub ReportError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, errormessage: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxPackagingDiagnosticEventSinkManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxPackagingDiagnosticEventSinkManager, IAppxPackagingDiagnosticEventSinkManager_Vtbl, 0x369648fa_a7eb_4909_a15d_6954a078f18a); +::windows_core::imp::interface_hierarchy!(IAppxPackagingDiagnosticEventSinkManager, ::windows_core::IUnknown); impl IAppxPackagingDiagnosticEventSinkManager { pub unsafe fn SetSinkForProcess(&self, sink: P0) -> ::windows_core::Result<()> where @@ -3719,22 +3046,14 @@ impl IAppxPackagingDiagnosticEventSinkManager { (::windows_core::Interface::vtable(self).SetSinkForProcess)(::windows_core::Interface::as_raw(self), sink.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IAppxPackagingDiagnosticEventSinkManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxPackagingDiagnosticEventSinkManager { - type Vtable = IAppxPackagingDiagnosticEventSinkManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxPackagingDiagnosticEventSinkManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x369648fa_a7eb_4909_a15d_6954a078f18a); -} #[repr(C)] #[doc(hidden)] pub struct IAppxPackagingDiagnosticEventSinkManager_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub SetSinkForProcess: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sink: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppxSourceContentGroupMapReader(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppxSourceContentGroupMapReader, IAppxSourceContentGroupMapReader_Vtbl, 0xf329791d_540b_4a9f_bc75_3282b7d73193); +::windows_core::imp::interface_hierarchy!(IAppxSourceContentGroupMapReader, ::windows_core::IUnknown); impl IAppxSourceContentGroupMapReader { pub unsafe fn GetRequiredGroup(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -3745,13 +3064,6 @@ impl IAppxSourceContentGroupMapReader { (::windows_core::Interface::vtable(self).GetAutomaticGroups)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAppxSourceContentGroupMapReader, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppxSourceContentGroupMapReader { - type Vtable = IAppxSourceContentGroupMapReader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppxSourceContentGroupMapReader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf329791d_540b_4a9f_bc75_3282b7d73193); -} #[repr(C)] #[doc(hidden)] pub struct IAppxSourceContentGroupMapReader_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Storage/Packaging/Opc/impl.rs b/crates/libs/windows/src/Windows/Win32/Storage/Packaging/Opc/impl.rs index 546452a1f0..f883f07b8a 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/Packaging/Opc/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/Packaging/Opc/impl.rs @@ -64,7 +64,7 @@ impl IOpcCertificateEnumerator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Security_Cryptography\"`"] @@ -108,7 +108,7 @@ impl IOpcCertificateSet_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -302,7 +302,7 @@ impl IOpcDigitalSignature_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IOpcDigitalSignatureEnumerator_Impl: Sized { @@ -367,7 +367,7 @@ impl IOpcDigitalSignatureEnumerator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Security_Cryptography\"`, `\"Win32_System_Com\"`"] @@ -476,7 +476,7 @@ impl IOpcDigitalSignatureManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Security\"`, `\"Win32_System_Com\"`"] @@ -578,7 +578,7 @@ impl IOpcFactory_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IOpcPackage_Impl: Sized { @@ -617,7 +617,7 @@ impl IOpcPackage_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -699,7 +699,7 @@ impl IOpcPart_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IOpcPartEnumerator_Impl: Sized { @@ -764,7 +764,7 @@ impl IOpcPartEnumerator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -840,7 +840,7 @@ impl IOpcPartSet_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -896,7 +896,7 @@ impl IOpcPartUri_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -978,7 +978,7 @@ impl IOpcRelationship_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IOpcRelationshipEnumerator_Impl: Sized { @@ -1043,7 +1043,7 @@ impl IOpcRelationshipEnumerator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IOpcRelationshipSelector_Impl: Sized { @@ -1082,7 +1082,7 @@ impl IOpcRelationshipSelector_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IOpcRelationshipSelectorEnumerator_Impl: Sized { @@ -1147,7 +1147,7 @@ impl IOpcRelationshipSelectorEnumerator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IOpcRelationshipSelectorSet_Impl: Sized { @@ -1193,7 +1193,7 @@ impl IOpcRelationshipSelectorSet_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1295,7 +1295,7 @@ impl IOpcRelationshipSet_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IOpcSignatureCustomObject_Impl: Sized { @@ -1312,7 +1312,7 @@ impl IOpcSignatureCustomObject_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetXml: GetXml:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IOpcSignatureCustomObjectEnumerator_Impl: Sized { @@ -1377,7 +1377,7 @@ impl IOpcSignatureCustomObjectEnumerator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IOpcSignatureCustomObjectSet_Impl: Sized { @@ -1423,7 +1423,7 @@ impl IOpcSignatureCustomObjectSet_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1499,7 +1499,7 @@ impl IOpcSignaturePartReference_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IOpcSignaturePartReferenceEnumerator_Impl: Sized { @@ -1564,7 +1564,7 @@ impl IOpcSignaturePartReferenceEnumerator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1614,7 +1614,7 @@ impl IOpcSignaturePartReferenceSet_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1703,7 +1703,7 @@ impl IOpcSignatureReference_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IOpcSignatureReferenceEnumerator_Impl: Sized { @@ -1768,7 +1768,7 @@ impl IOpcSignatureReferenceEnumerator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1818,7 +1818,7 @@ impl IOpcSignatureReferenceSet_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1907,7 +1907,7 @@ impl IOpcSignatureRelationshipReference_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IOpcSignatureRelationshipReferenceEnumerator_Impl: Sized { @@ -1972,7 +1972,7 @@ impl IOpcSignatureRelationshipReferenceEnumerator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2035,7 +2035,7 @@ impl IOpcSignatureRelationshipReferenceSet_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2237,7 +2237,7 @@ impl IOpcSigningOptions_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2293,6 +2293,6 @@ impl IOpcUri_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } 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 39af57a43c..1f99754c93 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 @@ -1,6 +1,5 @@ -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOpcCertificateEnumerator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOpcCertificateEnumerator, IOpcCertificateEnumerator_Vtbl, 0x85131937_8f24_421f_b439_59ab24d140b8); +::windows_core::imp::interface_hierarchy!(IOpcCertificateEnumerator, ::windows_core::IUnknown); impl IOpcCertificateEnumerator { pub unsafe fn MoveNext(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -21,13 +20,6 @@ impl IOpcCertificateEnumerator { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IOpcCertificateEnumerator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOpcCertificateEnumerator { - type Vtable = IOpcCertificateEnumerator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOpcCertificateEnumerator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x85131937_8f24_421f_b439_59ab24d140b8); -} #[repr(C)] #[doc(hidden)] pub struct IOpcCertificateEnumerator_Vtbl { @@ -40,9 +32,8 @@ pub struct IOpcCertificateEnumerator_Vtbl { GetCurrent: usize, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, copy: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOpcCertificateSet(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOpcCertificateSet, IOpcCertificateSet_Vtbl, 0x56ea4325_8e2d_4167_b1a4_e486d24c8fa7); +::windows_core::imp::interface_hierarchy!(IOpcCertificateSet, ::windows_core::IUnknown); impl IOpcCertificateSet { #[doc = "Required features: `\"Win32_Security_Cryptography\"`"] #[cfg(feature = "Win32_Security_Cryptography")] @@ -59,13 +50,6 @@ impl IOpcCertificateSet { (::windows_core::Interface::vtable(self).GetEnumerator)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IOpcCertificateSet, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOpcCertificateSet { - type Vtable = IOpcCertificateSet_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOpcCertificateSet { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x56ea4325_8e2d_4167_b1a4_e486d24c8fa7); -} #[repr(C)] #[doc(hidden)] pub struct IOpcCertificateSet_Vtbl { @@ -80,9 +64,8 @@ pub struct IOpcCertificateSet_Vtbl { Remove: usize, pub GetEnumerator: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, certificateenumerator: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOpcDigitalSignature(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOpcDigitalSignature, IOpcDigitalSignature_Vtbl, 0x52ab21dd_1cd0_4949_bc80_0c1232d00cb4); +::windows_core::imp::interface_hierarchy!(IOpcDigitalSignature, ::windows_core::IUnknown); impl IOpcDigitalSignature { pub unsafe fn GetNamespaces(&self, prefixes: *mut *mut ::windows_core::PWSTR, namespaces: *mut *mut ::windows_core::PWSTR, count: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetNamespaces)(::windows_core::Interface::as_raw(self), prefixes, namespaces, count).ok() @@ -144,13 +127,6 @@ impl IOpcDigitalSignature { (::windows_core::Interface::vtable(self).GetSignatureXml)(::windows_core::Interface::as_raw(self), signaturexml, count).ok() } } -::windows_core::imp::interface_hierarchy!(IOpcDigitalSignature, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOpcDigitalSignature { - type Vtable = IOpcDigitalSignature_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOpcDigitalSignature { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x52ab21dd_1cd0_4949_bc80_0c1232d00cb4); -} #[repr(C)] #[doc(hidden)] pub struct IOpcDigitalSignature_Vtbl { @@ -174,9 +150,8 @@ pub struct IOpcDigitalSignature_Vtbl { pub GetCustomObjectEnumerator: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, customobjectenumerator: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetSignatureXml: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, signaturexml: *mut *mut u8, count: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOpcDigitalSignatureEnumerator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOpcDigitalSignatureEnumerator, IOpcDigitalSignatureEnumerator_Vtbl, 0x967b6882_0ba3_4358_b9e7_b64c75063c5e); +::windows_core::imp::interface_hierarchy!(IOpcDigitalSignatureEnumerator, ::windows_core::IUnknown); impl IOpcDigitalSignatureEnumerator { pub unsafe fn MoveNext(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -195,13 +170,6 @@ impl IOpcDigitalSignatureEnumerator { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IOpcDigitalSignatureEnumerator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOpcDigitalSignatureEnumerator { - type Vtable = IOpcDigitalSignatureEnumerator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOpcDigitalSignatureEnumerator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x967b6882_0ba3_4358_b9e7_b64c75063c5e); -} #[repr(C)] #[doc(hidden)] pub struct IOpcDigitalSignatureEnumerator_Vtbl { @@ -211,9 +179,8 @@ pub struct IOpcDigitalSignatureEnumerator_Vtbl { pub GetCurrent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, digitalsignature: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, copy: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOpcDigitalSignatureManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOpcDigitalSignatureManager, IOpcDigitalSignatureManager_Vtbl, 0xd5e62a0b_696d_462f_94df_72e33cef2659); +::windows_core::imp::interface_hierarchy!(IOpcDigitalSignatureManager, ::windows_core::IUnknown); impl IOpcDigitalSignatureManager { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -273,13 +240,6 @@ impl IOpcDigitalSignatureManager { (::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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IOpcDigitalSignatureManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOpcDigitalSignatureManager { - type Vtable = IOpcDigitalSignatureManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOpcDigitalSignatureManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd5e62a0b_696d_462f_94df_72e33cef2659); -} #[repr(C)] #[doc(hidden)] pub struct IOpcDigitalSignatureManager_Vtbl { @@ -311,9 +271,8 @@ pub struct IOpcDigitalSignatureManager_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] ReplaceSignatureXml: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOpcFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOpcFactory, IOpcFactory_Vtbl, 0x6d0b4446_cd73_4ab3_94f4_8ccdf6116154); +::windows_core::imp::interface_hierarchy!(IOpcFactory, ::windows_core::IUnknown); impl IOpcFactory { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -369,13 +328,6 @@ impl IOpcFactory { (::windows_core::Interface::vtable(self).CreateDigitalSignatureManager)(::windows_core::Interface::as_raw(self), package.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IOpcFactory, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOpcFactory { - type Vtable = IOpcFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOpcFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6d0b4446_cd73_4ab3_94f4_8ccdf6116154); -} #[repr(C)] #[doc(hidden)] pub struct IOpcFactory_Vtbl { @@ -403,9 +355,8 @@ pub struct IOpcFactory_Vtbl { WritePackageToStream: usize, pub CreateDigitalSignatureManager: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, package: *mut ::core::ffi::c_void, signaturemanager: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOpcPackage(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOpcPackage, IOpcPackage_Vtbl, 0x42195949_3b79_4fc8_89c6_fc7fb979ee70); +::windows_core::imp::interface_hierarchy!(IOpcPackage, ::windows_core::IUnknown); impl IOpcPackage { pub unsafe fn GetPartSet(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -416,13 +367,6 @@ impl IOpcPackage { (::windows_core::Interface::vtable(self).GetRelationshipSet)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IOpcPackage, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOpcPackage { - type Vtable = IOpcPackage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOpcPackage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x42195949_3b79_4fc8_89c6_fc7fb979ee70); -} #[repr(C)] #[doc(hidden)] pub struct IOpcPackage_Vtbl { @@ -430,9 +374,8 @@ pub struct IOpcPackage_Vtbl { pub GetPartSet: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, partset: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetRelationshipSet: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, relationshipset: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOpcPart(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOpcPart, IOpcPart_Vtbl, 0x42195949_3b79_4fc8_89c6_fc7fb979ee71); +::windows_core::imp::interface_hierarchy!(IOpcPart, ::windows_core::IUnknown); impl IOpcPart { pub unsafe fn GetRelationshipSet(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -459,13 +402,6 @@ impl IOpcPart { (::windows_core::Interface::vtable(self).GetCompressionOptions)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IOpcPart, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOpcPart { - type Vtable = IOpcPart_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOpcPart { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x42195949_3b79_4fc8_89c6_fc7fb979ee71); -} #[repr(C)] #[doc(hidden)] pub struct IOpcPart_Vtbl { @@ -482,9 +418,8 @@ pub struct IOpcPart_Vtbl { pub GetContentType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, contenttype: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, pub GetCompressionOptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, compressionoptions: *mut OPC_COMPRESSION_OPTIONS) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOpcPartEnumerator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOpcPartEnumerator, IOpcPartEnumerator_Vtbl, 0x42195949_3b79_4fc8_89c6_fc7fb979ee75); +::windows_core::imp::interface_hierarchy!(IOpcPartEnumerator, ::windows_core::IUnknown); impl IOpcPartEnumerator { pub unsafe fn MoveNext(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -503,13 +438,6 @@ impl IOpcPartEnumerator { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IOpcPartEnumerator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOpcPartEnumerator { - type Vtable = IOpcPartEnumerator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOpcPartEnumerator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x42195949_3b79_4fc8_89c6_fc7fb979ee75); -} #[repr(C)] #[doc(hidden)] pub struct IOpcPartEnumerator_Vtbl { @@ -519,9 +447,8 @@ pub struct IOpcPartEnumerator_Vtbl { pub GetCurrent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, part: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, copy: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOpcPartSet(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOpcPartSet, IOpcPartSet_Vtbl, 0x42195949_3b79_4fc8_89c6_fc7fb979ee73); +::windows_core::imp::interface_hierarchy!(IOpcPartSet, ::windows_core::IUnknown); impl IOpcPartSet { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -564,13 +491,6 @@ impl IOpcPartSet { (::windows_core::Interface::vtable(self).GetEnumerator)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IOpcPartSet, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOpcPartSet { - type Vtable = IOpcPartSet_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOpcPartSet { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x42195949_3b79_4fc8_89c6_fc7fb979ee73); -} #[repr(C)] #[doc(hidden)] pub struct IOpcPartSet_Vtbl { @@ -593,11 +513,15 @@ pub struct IOpcPartSet_Vtbl { PartExists: usize, pub GetEnumerator: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, partenumerator: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOpcPartUri(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IOpcPartUri, + IOpcPartUri_Vtbl, + 0x7d3babe7_88b2_46ba_85cb_4203cb016c87 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IOpcPartUri, ::windows_core::IUnknown, super::super::super::System::Com::IUri, IOpcUri); #[cfg(feature = "Win32_System_Com")] impl IOpcPartUri { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -795,16 +719,6 @@ impl IOpcPartUri { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IOpcPartUri, ::windows_core::IUnknown, super::super::super::System::Com::IUri, IOpcUri); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IOpcPartUri { - type Vtable = IOpcPartUri_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IOpcPartUri { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7d3babe7_88b2_46ba_85cb_4203cb016c87); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IOpcPartUri_Vtbl { @@ -819,9 +733,8 @@ pub struct IOpcPartUri_Vtbl { GetSourceUri: usize, pub IsRelationshipsPartUri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, isrelationshipuri: *mut super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOpcRelationship(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOpcRelationship, IOpcRelationship_Vtbl, 0x42195949_3b79_4fc8_89c6_fc7fb979ee72); +::windows_core::imp::interface_hierarchy!(IOpcRelationship, ::windows_core::IUnknown); impl IOpcRelationship { pub unsafe fn GetId(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); @@ -848,13 +761,6 @@ impl IOpcRelationship { (::windows_core::Interface::vtable(self).GetTargetMode)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IOpcRelationship, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOpcRelationship { - type Vtable = IOpcRelationship_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOpcRelationship { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x42195949_3b79_4fc8_89c6_fc7fb979ee72); -} #[repr(C)] #[doc(hidden)] pub struct IOpcRelationship_Vtbl { @@ -871,9 +777,8 @@ pub struct IOpcRelationship_Vtbl { GetTargetUri: usize, pub GetTargetMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, targetmode: *mut OPC_URI_TARGET_MODE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOpcRelationshipEnumerator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOpcRelationshipEnumerator, IOpcRelationshipEnumerator_Vtbl, 0x42195949_3b79_4fc8_89c6_fc7fb979ee76); +::windows_core::imp::interface_hierarchy!(IOpcRelationshipEnumerator, ::windows_core::IUnknown); impl IOpcRelationshipEnumerator { pub unsafe fn MoveNext(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -892,13 +797,6 @@ impl IOpcRelationshipEnumerator { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IOpcRelationshipEnumerator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOpcRelationshipEnumerator { - type Vtable = IOpcRelationshipEnumerator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOpcRelationshipEnumerator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x42195949_3b79_4fc8_89c6_fc7fb979ee76); -} #[repr(C)] #[doc(hidden)] pub struct IOpcRelationshipEnumerator_Vtbl { @@ -908,9 +806,8 @@ pub struct IOpcRelationshipEnumerator_Vtbl { pub GetCurrent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, relationship: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, copy: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOpcRelationshipSelector(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOpcRelationshipSelector, IOpcRelationshipSelector_Vtbl, 0xf8f26c7f_b28f_4899_84c8_5d5639ede75f); +::windows_core::imp::interface_hierarchy!(IOpcRelationshipSelector, ::windows_core::IUnknown); impl IOpcRelationshipSelector { pub unsafe fn GetSelectorType(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -921,13 +818,6 @@ impl IOpcRelationshipSelector { (::windows_core::Interface::vtable(self).GetSelectionCriterion)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IOpcRelationshipSelector, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOpcRelationshipSelector { - type Vtable = IOpcRelationshipSelector_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOpcRelationshipSelector { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf8f26c7f_b28f_4899_84c8_5d5639ede75f); -} #[repr(C)] #[doc(hidden)] pub struct IOpcRelationshipSelector_Vtbl { @@ -935,9 +825,8 @@ pub struct IOpcRelationshipSelector_Vtbl { pub GetSelectorType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, selector: *mut OPC_RELATIONSHIP_SELECTOR) -> ::windows_core::HRESULT, pub GetSelectionCriterion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, selectioncriterion: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOpcRelationshipSelectorEnumerator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOpcRelationshipSelectorEnumerator, IOpcRelationshipSelectorEnumerator_Vtbl, 0x5e50a181_a91b_48ac_88d2_bca3d8f8c0b1); +::windows_core::imp::interface_hierarchy!(IOpcRelationshipSelectorEnumerator, ::windows_core::IUnknown); impl IOpcRelationshipSelectorEnumerator { pub unsafe fn MoveNext(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -956,13 +845,6 @@ impl IOpcRelationshipSelectorEnumerator { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IOpcRelationshipSelectorEnumerator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOpcRelationshipSelectorEnumerator { - type Vtable = IOpcRelationshipSelectorEnumerator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOpcRelationshipSelectorEnumerator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5e50a181_a91b_48ac_88d2_bca3d8f8c0b1); -} #[repr(C)] #[doc(hidden)] pub struct IOpcRelationshipSelectorEnumerator_Vtbl { @@ -972,9 +854,8 @@ pub struct IOpcRelationshipSelectorEnumerator_Vtbl { pub GetCurrent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, relationshipselector: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, copy: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOpcRelationshipSelectorSet(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOpcRelationshipSelectorSet, IOpcRelationshipSelectorSet_Vtbl, 0x6e34c269_a4d3_47c0_b5c4_87ff2b3b6136); +::windows_core::imp::interface_hierarchy!(IOpcRelationshipSelectorSet, ::windows_core::IUnknown); impl IOpcRelationshipSelectorSet { pub unsafe fn Create(&self, selector: OPC_RELATIONSHIP_SELECTOR, selectioncriterion: P0) -> ::windows_core::Result where @@ -994,13 +875,6 @@ impl IOpcRelationshipSelectorSet { (::windows_core::Interface::vtable(self).GetEnumerator)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IOpcRelationshipSelectorSet, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOpcRelationshipSelectorSet { - type Vtable = IOpcRelationshipSelectorSet_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOpcRelationshipSelectorSet { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6e34c269_a4d3_47c0_b5c4_87ff2b3b6136); -} #[repr(C)] #[doc(hidden)] pub struct IOpcRelationshipSelectorSet_Vtbl { @@ -1009,9 +883,8 @@ pub struct IOpcRelationshipSelectorSet_Vtbl { pub Delete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, relationshipselector: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetEnumerator: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, relationshipselectorenumerator: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOpcRelationshipSet(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOpcRelationshipSet, IOpcRelationshipSet_Vtbl, 0x42195949_3b79_4fc8_89c6_fc7fb979ee74); +::windows_core::imp::interface_hierarchy!(IOpcRelationshipSet, ::windows_core::IUnknown); impl IOpcRelationshipSet { pub unsafe fn GetRelationship(&self, relationshipidentifier: P0) -> ::windows_core::Result where @@ -1062,13 +935,6 @@ impl IOpcRelationshipSet { (::windows_core::Interface::vtable(self).GetRelationshipsContentStream)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IOpcRelationshipSet, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOpcRelationshipSet { - type Vtable = IOpcRelationshipSet_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOpcRelationshipSet { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x42195949_3b79_4fc8_89c6_fc7fb979ee74); -} #[repr(C)] #[doc(hidden)] pub struct IOpcRelationshipSet_Vtbl { @@ -1087,30 +953,21 @@ pub struct IOpcRelationshipSet_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetRelationshipsContentStream: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOpcSignatureCustomObject(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOpcSignatureCustomObject, IOpcSignatureCustomObject_Vtbl, 0x5d77a19e_62c1_44e7_becd_45da5ae51a56); +::windows_core::imp::interface_hierarchy!(IOpcSignatureCustomObject, ::windows_core::IUnknown); impl IOpcSignatureCustomObject { pub unsafe fn GetXml(&self, xmlmarkup: *mut *mut u8, count: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetXml)(::windows_core::Interface::as_raw(self), xmlmarkup, count).ok() } } -::windows_core::imp::interface_hierarchy!(IOpcSignatureCustomObject, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOpcSignatureCustomObject { - type Vtable = IOpcSignatureCustomObject_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOpcSignatureCustomObject { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5d77a19e_62c1_44e7_becd_45da5ae51a56); -} #[repr(C)] #[doc(hidden)] pub struct IOpcSignatureCustomObject_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetXml: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, xmlmarkup: *mut *mut u8, count: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOpcSignatureCustomObjectEnumerator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOpcSignatureCustomObjectEnumerator, IOpcSignatureCustomObjectEnumerator_Vtbl, 0x5ee4fe1d_e1b0_4683_8079_7ea0fcf80b4c); +::windows_core::imp::interface_hierarchy!(IOpcSignatureCustomObjectEnumerator, ::windows_core::IUnknown); impl IOpcSignatureCustomObjectEnumerator { pub unsafe fn MoveNext(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1129,13 +986,6 @@ impl IOpcSignatureCustomObjectEnumerator { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IOpcSignatureCustomObjectEnumerator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOpcSignatureCustomObjectEnumerator { - type Vtable = IOpcSignatureCustomObjectEnumerator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOpcSignatureCustomObjectEnumerator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5ee4fe1d_e1b0_4683_8079_7ea0fcf80b4c); -} #[repr(C)] #[doc(hidden)] pub struct IOpcSignatureCustomObjectEnumerator_Vtbl { @@ -1145,9 +995,8 @@ pub struct IOpcSignatureCustomObjectEnumerator_Vtbl { pub GetCurrent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, customobject: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, copy: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOpcSignatureCustomObjectSet(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOpcSignatureCustomObjectSet, IOpcSignatureCustomObjectSet_Vtbl, 0x8f792ac5_7947_4e11_bc3d_2659ff046ae1); +::windows_core::imp::interface_hierarchy!(IOpcSignatureCustomObjectSet, ::windows_core::IUnknown); impl IOpcSignatureCustomObjectSet { pub unsafe fn Create(&self, xmlmarkup: &[u8]) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1164,13 +1013,6 @@ impl IOpcSignatureCustomObjectSet { (::windows_core::Interface::vtable(self).GetEnumerator)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IOpcSignatureCustomObjectSet, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOpcSignatureCustomObjectSet { - type Vtable = IOpcSignatureCustomObjectSet_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOpcSignatureCustomObjectSet { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8f792ac5_7947_4e11_bc3d_2659ff046ae1); -} #[repr(C)] #[doc(hidden)] pub struct IOpcSignatureCustomObjectSet_Vtbl { @@ -1179,9 +1021,8 @@ pub struct IOpcSignatureCustomObjectSet_Vtbl { pub Delete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, customobject: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetEnumerator: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, customobjectenumerator: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOpcSignaturePartReference(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOpcSignaturePartReference, IOpcSignaturePartReference_Vtbl, 0xe24231ca_59f4_484e_b64b_36eeda36072c); +::windows_core::imp::interface_hierarchy!(IOpcSignaturePartReference, ::windows_core::IUnknown); impl IOpcSignaturePartReference { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -1205,13 +1046,6 @@ impl IOpcSignaturePartReference { (::windows_core::Interface::vtable(self).GetTransformMethod)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IOpcSignaturePartReference, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOpcSignaturePartReference { - type Vtable = IOpcSignaturePartReference_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOpcSignaturePartReference { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe24231ca_59f4_484e_b64b_36eeda36072c); -} #[repr(C)] #[doc(hidden)] pub struct IOpcSignaturePartReference_Vtbl { @@ -1225,9 +1059,8 @@ pub struct IOpcSignaturePartReference_Vtbl { pub GetDigestValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, digestvalue: *mut *mut u8, count: *mut u32) -> ::windows_core::HRESULT, pub GetTransformMethod: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, transformmethod: *mut OPC_CANONICALIZATION_METHOD) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOpcSignaturePartReferenceEnumerator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOpcSignaturePartReferenceEnumerator, IOpcSignaturePartReferenceEnumerator_Vtbl, 0x80eb1561_8c77_49cf_8266_459b356ee99a); +::windows_core::imp::interface_hierarchy!(IOpcSignaturePartReferenceEnumerator, ::windows_core::IUnknown); impl IOpcSignaturePartReferenceEnumerator { pub unsafe fn MoveNext(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1246,13 +1079,6 @@ impl IOpcSignaturePartReferenceEnumerator { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IOpcSignaturePartReferenceEnumerator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOpcSignaturePartReferenceEnumerator { - type Vtable = IOpcSignaturePartReferenceEnumerator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOpcSignaturePartReferenceEnumerator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x80eb1561_8c77_49cf_8266_459b356ee99a); -} #[repr(C)] #[doc(hidden)] pub struct IOpcSignaturePartReferenceEnumerator_Vtbl { @@ -1262,9 +1088,8 @@ pub struct IOpcSignaturePartReferenceEnumerator_Vtbl { pub GetCurrent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, partreference: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, copy: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOpcSignaturePartReferenceSet(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOpcSignaturePartReferenceSet, IOpcSignaturePartReferenceSet_Vtbl, 0x6c9fe28c_ecd9_4b22_9d36_7fdde670fec0); +::windows_core::imp::interface_hierarchy!(IOpcSignaturePartReferenceSet, ::windows_core::IUnknown); impl IOpcSignaturePartReferenceSet { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -1287,13 +1112,6 @@ impl IOpcSignaturePartReferenceSet { (::windows_core::Interface::vtable(self).GetEnumerator)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IOpcSignaturePartReferenceSet, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOpcSignaturePartReferenceSet { - type Vtable = IOpcSignaturePartReferenceSet_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOpcSignaturePartReferenceSet { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6c9fe28c_ecd9_4b22_9d36_7fdde670fec0); -} #[repr(C)] #[doc(hidden)] pub struct IOpcSignaturePartReferenceSet_Vtbl { @@ -1305,9 +1123,8 @@ pub struct IOpcSignaturePartReferenceSet_Vtbl { pub Delete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, partreference: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetEnumerator: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, partreferenceenumerator: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOpcSignatureReference(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOpcSignatureReference, IOpcSignatureReference_Vtbl, 0x1b47005e_3011_4edc_be6f_0f65e5ab0342); +::windows_core::imp::interface_hierarchy!(IOpcSignatureReference, ::windows_core::IUnknown); impl IOpcSignatureReference { pub unsafe fn GetId(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); @@ -1335,13 +1152,6 @@ impl IOpcSignatureReference { (::windows_core::Interface::vtable(self).GetDigestValue)(::windows_core::Interface::as_raw(self), digestvalue, count).ok() } } -::windows_core::imp::interface_hierarchy!(IOpcSignatureReference, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOpcSignatureReference { - type Vtable = IOpcSignatureReference_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOpcSignatureReference { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1b47005e_3011_4edc_be6f_0f65e5ab0342); -} #[repr(C)] #[doc(hidden)] pub struct IOpcSignatureReference_Vtbl { @@ -1356,9 +1166,8 @@ pub struct IOpcSignatureReference_Vtbl { pub GetDigestMethod: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, digestmethod: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, pub GetDigestValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, digestvalue: *mut *mut u8, count: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOpcSignatureReferenceEnumerator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOpcSignatureReferenceEnumerator, IOpcSignatureReferenceEnumerator_Vtbl, 0xcfa59a45_28b1_4868_969e_fa8097fdc12a); +::windows_core::imp::interface_hierarchy!(IOpcSignatureReferenceEnumerator, ::windows_core::IUnknown); impl IOpcSignatureReferenceEnumerator { pub unsafe fn MoveNext(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1377,13 +1186,6 @@ impl IOpcSignatureReferenceEnumerator { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IOpcSignatureReferenceEnumerator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOpcSignatureReferenceEnumerator { - type Vtable = IOpcSignatureReferenceEnumerator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOpcSignatureReferenceEnumerator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcfa59a45_28b1_4868_969e_fa8097fdc12a); -} #[repr(C)] #[doc(hidden)] pub struct IOpcSignatureReferenceEnumerator_Vtbl { @@ -1393,9 +1195,8 @@ pub struct IOpcSignatureReferenceEnumerator_Vtbl { pub GetCurrent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, reference: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, copy: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOpcSignatureReferenceSet(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOpcSignatureReferenceSet, IOpcSignatureReferenceSet_Vtbl, 0xf3b02d31_ab12_42dd_9e2f_2b16761c3c1e); +::windows_core::imp::interface_hierarchy!(IOpcSignatureReferenceSet, ::windows_core::IUnknown); impl IOpcSignatureReferenceSet { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -1420,13 +1221,6 @@ impl IOpcSignatureReferenceSet { (::windows_core::Interface::vtable(self).GetEnumerator)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IOpcSignatureReferenceSet, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOpcSignatureReferenceSet { - type Vtable = IOpcSignatureReferenceSet_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOpcSignatureReferenceSet { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf3b02d31_ab12_42dd_9e2f_2b16761c3c1e); -} #[repr(C)] #[doc(hidden)] pub struct IOpcSignatureReferenceSet_Vtbl { @@ -1438,9 +1232,8 @@ pub struct IOpcSignatureReferenceSet_Vtbl { pub Delete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, reference: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetEnumerator: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, referenceenumerator: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOpcSignatureRelationshipReference(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOpcSignatureRelationshipReference, IOpcSignatureRelationshipReference_Vtbl, 0x57babac6_9d4a_4e50_8b86_e5d4051eae7c); +::windows_core::imp::interface_hierarchy!(IOpcSignatureRelationshipReference, ::windows_core::IUnknown); impl IOpcSignatureRelationshipReference { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -1468,13 +1261,6 @@ impl IOpcSignatureRelationshipReference { (::windows_core::Interface::vtable(self).GetRelationshipSelectorEnumerator)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IOpcSignatureRelationshipReference, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOpcSignatureRelationshipReference { - type Vtable = IOpcSignatureRelationshipReference_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOpcSignatureRelationshipReference { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x57babac6_9d4a_4e50_8b86_e5d4051eae7c); -} #[repr(C)] #[doc(hidden)] pub struct IOpcSignatureRelationshipReference_Vtbl { @@ -1489,9 +1275,8 @@ pub struct IOpcSignatureRelationshipReference_Vtbl { pub GetRelationshipSigningOption: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, relationshipsigningoption: *mut OPC_RELATIONSHIPS_SIGNING_OPTION) -> ::windows_core::HRESULT, pub GetRelationshipSelectorEnumerator: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, selectorenumerator: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOpcSignatureRelationshipReferenceEnumerator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOpcSignatureRelationshipReferenceEnumerator, IOpcSignatureRelationshipReferenceEnumerator_Vtbl, 0x773ba3e4_f021_48e4_aa04_9816db5d3495); +::windows_core::imp::interface_hierarchy!(IOpcSignatureRelationshipReferenceEnumerator, ::windows_core::IUnknown); impl IOpcSignatureRelationshipReferenceEnumerator { pub unsafe fn MoveNext(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1510,13 +1295,6 @@ impl IOpcSignatureRelationshipReferenceEnumerator { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IOpcSignatureRelationshipReferenceEnumerator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOpcSignatureRelationshipReferenceEnumerator { - type Vtable = IOpcSignatureRelationshipReferenceEnumerator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOpcSignatureRelationshipReferenceEnumerator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x773ba3e4_f021_48e4_aa04_9816db5d3495); -} #[repr(C)] #[doc(hidden)] pub struct IOpcSignatureRelationshipReferenceEnumerator_Vtbl { @@ -1526,9 +1304,8 @@ pub struct IOpcSignatureRelationshipReferenceEnumerator_Vtbl { pub GetCurrent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, relationshipreference: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, copy: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOpcSignatureRelationshipReferenceSet(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOpcSignatureRelationshipReferenceSet, IOpcSignatureRelationshipReferenceSet_Vtbl, 0x9f863ca5_3631_404c_828d_807e0715069b); +::windows_core::imp::interface_hierarchy!(IOpcSignatureRelationshipReferenceSet, ::windows_core::IUnknown); impl IOpcSignatureRelationshipReferenceSet { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -1556,13 +1333,6 @@ impl IOpcSignatureRelationshipReferenceSet { (::windows_core::Interface::vtable(self).GetEnumerator)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IOpcSignatureRelationshipReferenceSet, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOpcSignatureRelationshipReferenceSet { - type Vtable = IOpcSignatureRelationshipReferenceSet_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOpcSignatureRelationshipReferenceSet { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9f863ca5_3631_404c_828d_807e0715069b); -} #[repr(C)] #[doc(hidden)] pub struct IOpcSignatureRelationshipReferenceSet_Vtbl { @@ -1575,9 +1345,8 @@ pub struct IOpcSignatureRelationshipReferenceSet_Vtbl { pub Delete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, relationshipreference: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetEnumerator: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, relationshipreferenceenumerator: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOpcSigningOptions(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOpcSigningOptions, IOpcSigningOptions_Vtbl, 0x50d2d6a5_7aeb_46c0_b241_43ab0e9b407e); +::windows_core::imp::interface_hierarchy!(IOpcSigningOptions, ::windows_core::IUnknown); impl IOpcSigningOptions { pub unsafe fn GetSignatureId(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); @@ -1658,13 +1427,6 @@ impl IOpcSigningOptions { (::windows_core::Interface::vtable(self).SetSignaturePartName)(::windows_core::Interface::as_raw(self), signaturepartname.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IOpcSigningOptions, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOpcSigningOptions { - type Vtable = IOpcSigningOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOpcSigningOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x50d2d6a5_7aeb_46c0_b241_43ab0e9b407e); -} #[repr(C)] #[doc(hidden)] pub struct IOpcSigningOptions_Vtbl { @@ -1693,11 +1455,15 @@ pub struct IOpcSigningOptions_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] SetSignaturePartName: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOpcUri(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IOpcUri, + IOpcUri_Vtbl, + 0xbc9c1b9b_d62c_49eb_aef0_3b4e0b28ebed +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IOpcUri, ::windows_core::IUnknown, super::super::super::System::Com::IUri); #[cfg(feature = "Win32_System_Com")] impl IOpcUri { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1876,16 +1642,6 @@ impl IOpcUri { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IOpcUri, ::windows_core::IUnknown, super::super::super::System::Com::IUri); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IOpcUri { - type Vtable = IOpcUri_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IOpcUri { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbc9c1b9b_d62c_49eb_aef0_3b4e0b28ebed); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IOpcUri_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Storage/VirtualDiskService/impl.rs b/crates/libs/windows/src/Windows/Win32/Storage/VirtualDiskService/impl.rs index dc37fc152a..cd1c4ff8d6 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/VirtualDiskService/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/VirtualDiskService/impl.rs @@ -42,7 +42,7 @@ impl IEnumVdsObject_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVdsAdmin_Impl: Sized { @@ -69,7 +69,7 @@ impl IVdsAdmin_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVdsAdvancedDisk_Impl: Sized { @@ -170,7 +170,7 @@ impl IVdsAdvancedDisk_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVdsAdvancedDisk2_Impl: Sized { @@ -187,7 +187,7 @@ impl IVdsAdvancedDisk2_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), ChangePartitionType: ChangePartitionType:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVdsAdvancedDisk3_Impl: Sized { @@ -220,7 +220,7 @@ impl IVdsAdvancedDisk3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVdsAdviseSink_Impl: Sized { @@ -237,7 +237,7 @@ impl IVdsAdviseSink_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnNotify: OnNotify:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVdsAsync_Impl: Sized { @@ -271,7 +271,7 @@ impl IVdsAsync_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVdsController_Impl: Sized { @@ -352,7 +352,7 @@ impl IVdsController_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVdsControllerControllerPort_Impl: Sized { @@ -375,7 +375,7 @@ impl IVdsControllerControllerPort_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), QueryControllerPorts: QueryControllerPorts:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVdsControllerPort_Impl: Sized { @@ -435,7 +435,7 @@ impl IVdsControllerPort_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVdsCreatePartitionEx_Impl: Sized { @@ -458,7 +458,7 @@ impl IVdsCreatePartitionEx_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CreatePartitionEx: CreatePartitionEx:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVdsDisk_Impl: Sized { @@ -526,7 +526,7 @@ impl IVdsDisk_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVdsDisk2_Impl: Sized { @@ -543,7 +543,7 @@ impl IVdsDisk2_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), SetSANMode: SetSANMode:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVdsDisk3_Impl: Sized { @@ -570,7 +570,7 @@ impl IVdsDisk3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVdsDiskOnline_Impl: Sized { @@ -597,7 +597,7 @@ impl IVdsDiskOnline_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVdsDiskPartitionMF_Impl: Sized { @@ -650,7 +650,7 @@ impl IVdsDiskPartitionMF_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVdsDiskPartitionMF2_Impl: Sized { @@ -673,7 +673,7 @@ impl IVdsDiskPartitionMF2_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), FormatPartitionEx2: FormatPartitionEx2:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVdsDrive_Impl: Sized { @@ -734,7 +734,7 @@ impl IVdsDrive_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVdsDrive2_Impl: Sized { @@ -751,7 +751,7 @@ impl IVdsDrive2_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetProperties2: GetProperties2:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVdsHbaPort_Impl: Sized { @@ -778,7 +778,7 @@ impl IVdsHbaPort_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVdsHwProvider_Impl: Sized { @@ -818,7 +818,7 @@ impl IVdsHwProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVdsHwProviderPrivate_Impl: Sized { @@ -841,7 +841,7 @@ impl IVdsHwProviderPrivate_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), QueryIfCreatedLun: QueryIfCreatedLun:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVdsHwProviderPrivateMpio_Impl: Sized { @@ -861,7 +861,7 @@ impl IVdsHwProviderPrivateMpio_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVdsHwProviderStoragePools_Impl: Sized { @@ -913,7 +913,7 @@ impl IVdsHwProviderStoragePools_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVdsHwProviderType_Impl: Sized { @@ -936,7 +936,7 @@ impl IVdsHwProviderType_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetProviderType: GetProviderType:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVdsHwProviderType2_Impl: Sized { @@ -959,7 +959,7 @@ impl IVdsHwProviderType2_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetProviderType2: GetProviderType2:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVdsIscsiInitiatorAdapter_Impl: Sized { @@ -1018,7 +1018,7 @@ impl IVdsIscsiInitiatorAdapter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVdsIscsiInitiatorPortal_Impl: Sized { @@ -1078,7 +1078,7 @@ impl IVdsIscsiInitiatorPortal_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVdsIscsiPortal_Impl: Sized { @@ -1158,7 +1158,7 @@ impl IVdsIscsiPortal_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVdsIscsiPortalGroup_Impl: Sized { @@ -1243,7 +1243,7 @@ impl IVdsIscsiPortalGroup_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVdsIscsiPortalLocal_Impl: Sized { @@ -1260,7 +1260,7 @@ impl IVdsIscsiPortalLocal_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), SetIpsecSecurityLocal: SetIpsecSecurityLocal:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVdsIscsiTarget_Impl: Sized { @@ -1373,7 +1373,7 @@ impl IVdsIscsiTarget_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVdsLun_Impl: Sized { @@ -1559,7 +1559,7 @@ impl IVdsLun_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVdsLun2_Impl: Sized { @@ -1586,7 +1586,7 @@ impl IVdsLun2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVdsLunControllerPorts_Impl: Sized { @@ -1619,7 +1619,7 @@ impl IVdsLunControllerPorts_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVdsLunIscsi_Impl: Sized { @@ -1652,7 +1652,7 @@ impl IVdsLunIscsi_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVdsLunMpio_Impl: Sized { @@ -1699,7 +1699,7 @@ impl IVdsLunMpio_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVdsLunNaming_Impl: Sized { @@ -1716,7 +1716,7 @@ impl IVdsLunNaming_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), SetFriendlyName: SetFriendlyName:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVdsLunNumber_Impl: Sized { @@ -1739,7 +1739,7 @@ impl IVdsLunNumber_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetLunNumber: GetLunNumber:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVdsLunPlex_Impl: Sized { @@ -1793,7 +1793,7 @@ impl IVdsLunPlex_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVdsMaintenance_Impl: Sized { @@ -1827,7 +1827,7 @@ impl IVdsMaintenance_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_Vhd\"`"] @@ -1910,7 +1910,7 @@ impl IVdsOpenVDisk_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVdsPack_Impl: Sized { @@ -2029,7 +2029,7 @@ impl IVdsPack_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVdsPack2_Impl: Sized { @@ -2052,7 +2052,7 @@ impl IVdsPack2_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CreateVolume2: CreateVolume2:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVdsProvider_Impl: Sized { @@ -2069,7 +2069,7 @@ impl IVdsProvider_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetProperties: GetProperties:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVdsProviderPrivate_Impl: Sized { @@ -2109,7 +2109,7 @@ impl IVdsProviderPrivate_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVdsProviderSupport_Impl: Sized { @@ -2132,7 +2132,7 @@ impl IVdsProviderSupport_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetVersionSupport: GetVersionSupport:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVdsRemovable_Impl: Sized { @@ -2159,7 +2159,7 @@ impl IVdsRemovable_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVdsService_Impl: Sized { @@ -2327,7 +2327,7 @@ impl IVdsService_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVdsServiceHba_Impl: Sized { @@ -2350,7 +2350,7 @@ impl IVdsServiceHba_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), QueryHbaPorts: QueryHbaPorts:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVdsServiceInitialization_Impl: Sized { @@ -2367,7 +2367,7 @@ impl IVdsServiceInitialization_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Initialize: Initialize:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVdsServiceIscsi_Impl: Sized { @@ -2441,7 +2441,7 @@ impl IVdsServiceIscsi_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVdsServiceLoader_Impl: Sized { @@ -2464,7 +2464,7 @@ impl IVdsServiceLoader_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), LoadService: LoadService:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVdsServiceSAN_Impl: Sized { @@ -2497,7 +2497,7 @@ impl IVdsServiceSAN_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVdsServiceSw_Impl: Sized { @@ -2520,7 +2520,7 @@ impl IVdsServiceSw_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetDiskObject: GetDiskObject:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVdsServiceUninstallDisk_Impl: Sized { @@ -2553,7 +2553,7 @@ impl IVdsServiceUninstallDisk_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVdsStoragePool_Impl: Sized { @@ -2626,7 +2626,7 @@ impl IVdsStoragePool_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVdsSubSystem_Impl: Sized { @@ -2765,7 +2765,7 @@ impl IVdsSubSystem_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVdsSubSystem2_Impl: Sized { @@ -2824,7 +2824,7 @@ impl IVdsSubSystem2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVdsSubSystemImportTarget_Impl: Sized { @@ -2857,7 +2857,7 @@ impl IVdsSubSystemImportTarget_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVdsSubSystemInterconnect_Impl: Sized { @@ -2880,7 +2880,7 @@ impl IVdsSubSystemInterconnect_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetSupportedInterconnects: GetSupportedInterconnects:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVdsSubSystemIscsi_Impl: Sized { @@ -2939,7 +2939,7 @@ impl IVdsSubSystemIscsi_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVdsSubSystemNaming_Impl: Sized { @@ -2956,7 +2956,7 @@ impl IVdsSubSystemNaming_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), SetFriendlyName: SetFriendlyName:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVdsSwProvider_Impl: Sized { @@ -2995,7 +2995,7 @@ impl IVdsSwProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_Vhd\"`"] @@ -3058,7 +3058,7 @@ impl IVdsVDisk_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_Vhd\"`"] @@ -3128,7 +3128,7 @@ impl IVdsVdProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVdsVolume_Impl: Sized { @@ -3260,7 +3260,7 @@ impl IVdsVolume_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVdsVolume2_Impl: Sized { @@ -3277,7 +3277,7 @@ impl IVdsVolume2_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetProperties2: GetProperties2:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVdsVolumeMF_Impl: Sized { @@ -3366,7 +3366,7 @@ impl IVdsVolumeMF_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVdsVolumeMF2_Impl: Sized { @@ -3412,7 +3412,7 @@ impl IVdsVolumeMF2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVdsVolumeMF3_Impl: Sized { @@ -3452,7 +3452,7 @@ impl IVdsVolumeMF3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVdsVolumeOnline_Impl: Sized { @@ -3469,7 +3469,7 @@ impl IVdsVolumeOnline_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Online: Online:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVdsVolumePlex_Impl: Sized { @@ -3522,7 +3522,7 @@ impl IVdsVolumePlex_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVdsVolumeShrink_Impl: Sized { @@ -3561,6 +3561,6 @@ impl IVdsVolumeShrink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 f997db291a..d77cbb822b 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/VirtualDiskService/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/VirtualDiskService/mod.rs @@ -1,6 +1,5 @@ -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumVdsObject(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumVdsObject, IEnumVdsObject_Vtbl, 0x118610b7_8d94_4030_b5b8_500889788e4e); +::windows_core::imp::interface_hierarchy!(IEnumVdsObject, ::windows_core::IUnknown); impl IEnumVdsObject { pub unsafe fn Next(&self, ppobjectarray: &mut [::core::option::Option<::windows_core::IUnknown>], pcfetched: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), ppobjectarray.len().try_into().unwrap(), ::core::mem::transmute(ppobjectarray.as_ptr()), pcfetched).ok() @@ -16,13 +15,6 @@ impl IEnumVdsObject { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumVdsObject, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumVdsObject { - type Vtable = IEnumVdsObject_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumVdsObject { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x118610b7_8d94_4030_b5b8_500889788e4e); -} #[repr(C)] #[doc(hidden)] pub struct IEnumVdsObject_Vtbl { @@ -32,9 +24,8 @@ pub struct IEnumVdsObject_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsAdmin(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsAdmin, IVdsAdmin_Vtbl, 0xd188e97d_85aa_4d33_abc6_26299a10ffc1); +::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 @@ -48,13 +39,6 @@ impl IVdsAdmin { (::windows_core::Interface::vtable(self).UnregisterProvider)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(providerid)).ok() } } -::windows_core::imp::interface_hierarchy!(IVdsAdmin, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsAdmin { - type Vtable = IVdsAdmin_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsAdmin { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd188e97d_85aa_4d33_abc6_26299a10ffc1); -} #[repr(C)] #[doc(hidden)] pub struct IVdsAdmin_Vtbl { @@ -62,9 +46,8 @@ pub struct IVdsAdmin_Vtbl { pub RegisterProvider: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, providerid: ::windows_core::GUID, providerclsid: ::windows_core::GUID, pwszname: ::windows_core::PCWSTR, r#type: VDS_PROVIDER_TYPE, pwszmachinename: ::windows_core::PCWSTR, pwszversion: ::windows_core::PCWSTR, guidversionid: ::windows_core::GUID) -> ::windows_core::HRESULT, pub UnregisterProvider: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, providerid: ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsAdvancedDisk(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsAdvancedDisk, IVdsAdvancedDisk_Vtbl, 0x6e6f6b40_977c_4069_bddd_ac710059f8c0); +::windows_core::imp::interface_hierarchy!(IVdsAdvancedDisk, ::windows_core::IUnknown); impl IVdsAdvancedDisk { pub unsafe fn GetPartitionProperties(&self, ulloffset: u64, ppartitionprop: *mut VDS_PARTITION_PROP) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetPartitionProperties)(::windows_core::Interface::as_raw(self), ulloffset, ppartitionprop).ok() @@ -115,13 +98,6 @@ impl IVdsAdvancedDisk { (::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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IVdsAdvancedDisk, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsAdvancedDisk { - type Vtable = IVdsAdvancedDisk_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsAdvancedDisk { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6e6f6b40_977c_4069_bddd_ac710059f8c0); -} #[repr(C)] #[doc(hidden)] pub struct IVdsAdvancedDisk_Vtbl { @@ -137,9 +113,8 @@ pub struct IVdsAdvancedDisk_Vtbl { pub FormatPartition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulloffset: u64, r#type: VDS_FILE_SYSTEM_TYPE, pwszlabel: ::windows_core::PCWSTR, dwunitallocationsize: u32, bforce: super::super::Foundation::BOOL, bquickformat: super::super::Foundation::BOOL, benablecompression: super::super::Foundation::BOOL, ppasync: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clean: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bforce: super::super::Foundation::BOOL, bforceoem: super::super::Foundation::BOOL, bfullclean: super::super::Foundation::BOOL, ppasync: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsAdvancedDisk2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsAdvancedDisk2, IVdsAdvancedDisk2_Vtbl, 0x9723f420_9355_42de_ab66_e31bb15beeac); +::windows_core::imp::interface_hierarchy!(IVdsAdvancedDisk2, ::windows_core::IUnknown); impl IVdsAdvancedDisk2 { pub unsafe fn ChangePartitionType(&self, ulloffset: u64, bforce: P0, para: *const CHANGE_PARTITION_TYPE_PARAMETERS) -> ::windows_core::Result<()> where @@ -148,22 +123,14 @@ impl IVdsAdvancedDisk2 { (::windows_core::Interface::vtable(self).ChangePartitionType)(::windows_core::Interface::as_raw(self), ulloffset, bforce.into_param().abi(), para).ok() } } -::windows_core::imp::interface_hierarchy!(IVdsAdvancedDisk2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsAdvancedDisk2 { - type Vtable = IVdsAdvancedDisk2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsAdvancedDisk2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9723f420_9355_42de_ab66_e31bb15beeac); -} #[repr(C)] #[doc(hidden)] pub struct IVdsAdvancedDisk2_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub ChangePartitionType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulloffset: u64, bforce: super::super::Foundation::BOOL, para: *const CHANGE_PARTITION_TYPE_PARAMETERS) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsAdvancedDisk3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsAdvancedDisk3, IVdsAdvancedDisk3_Vtbl, 0x3858c0d5_0f35_4bf5_9714_69874963bc36); +::windows_core::imp::interface_hierarchy!(IVdsAdvancedDisk3, ::windows_core::IUnknown); impl IVdsAdvancedDisk3 { pub unsafe fn GetProperties(&self, padvdiskprop: *mut VDS_ADVANCEDDISK_PROP) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetProperties)(::windows_core::Interface::as_raw(self), padvdiskprop).ok() @@ -173,13 +140,6 @@ impl IVdsAdvancedDisk3 { (::windows_core::Interface::vtable(self).GetUniqueId)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IVdsAdvancedDisk3, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsAdvancedDisk3 { - type Vtable = IVdsAdvancedDisk3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsAdvancedDisk3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3858c0d5_0f35_4bf5_9714_69874963bc36); -} #[repr(C)] #[doc(hidden)] pub struct IVdsAdvancedDisk3_Vtbl { @@ -187,30 +147,21 @@ pub struct IVdsAdvancedDisk3_Vtbl { pub GetProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, padvdiskprop: *mut VDS_ADVANCEDDISK_PROP) -> ::windows_core::HRESULT, pub GetUniqueId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppwszid: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsAdviseSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsAdviseSink, IVdsAdviseSink_Vtbl, 0x8326cd1d_cf59_4936_b786_5efc08798e25); +::windows_core::imp::interface_hierarchy!(IVdsAdviseSink, ::windows_core::IUnknown); impl IVdsAdviseSink { pub unsafe fn OnNotify(&self, pnotificationarray: &[VDS_NOTIFICATION]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnNotify)(::windows_core::Interface::as_raw(self), pnotificationarray.len().try_into().unwrap(), ::core::mem::transmute(pnotificationarray.as_ptr())).ok() } } -::windows_core::imp::interface_hierarchy!(IVdsAdviseSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsAdviseSink { - type Vtable = IVdsAdviseSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsAdviseSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8326cd1d_cf59_4936_b786_5efc08798e25); -} #[repr(C)] #[doc(hidden)] pub struct IVdsAdviseSink_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnNotify: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lnumberofnotifications: i32, pnotificationarray: *const VDS_NOTIFICATION) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsAsync(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsAsync, IVdsAsync_Vtbl, 0xd5d23b6d_5a55_4492_9889_397a3c2d2dbc); +::windows_core::imp::interface_hierarchy!(IVdsAsync, ::windows_core::IUnknown); impl IVdsAsync { pub unsafe fn Cancel(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Cancel)(::windows_core::Interface::as_raw(self)).ok() @@ -222,13 +173,6 @@ impl IVdsAsync { (::windows_core::Interface::vtable(self).QueryStatus)(::windows_core::Interface::as_raw(self), phrresult, pulpercentcompleted).ok() } } -::windows_core::imp::interface_hierarchy!(IVdsAsync, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsAsync { - type Vtable = IVdsAsync_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsAsync { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd5d23b6d_5a55_4492_9889_397a3c2d2dbc); -} #[repr(C)] #[doc(hidden)] pub struct IVdsAsync_Vtbl { @@ -237,9 +181,8 @@ pub struct IVdsAsync_Vtbl { pub Wait: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phrresult: *mut ::windows_core::HRESULT, pasyncout: *mut VDS_ASYNC_OUTPUT) -> ::windows_core::HRESULT, pub QueryStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phrresult: *mut ::windows_core::HRESULT, pulpercentcompleted: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsController(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsController, IVdsController_Vtbl, 0xcb53d96e_dffb_474a_a078_790d1e2bc082); +::windows_core::imp::interface_hierarchy!(IVdsController, ::windows_core::IUnknown); impl IVdsController { pub unsafe fn GetProperties(&self, pcontrollerprop: *mut VDS_CONTROLLER_PROP) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetProperties)(::windows_core::Interface::as_raw(self), pcontrollerprop).ok() @@ -268,13 +211,6 @@ impl IVdsController { (::windows_core::Interface::vtable(self).SetStatus)(::windows_core::Interface::as_raw(self), status).ok() } } -::windows_core::imp::interface_hierarchy!(IVdsController, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsController { - type Vtable = IVdsController_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsController { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcb53d96e_dffb_474a_a078_790d1e2bc082); -} #[repr(C)] #[doc(hidden)] pub struct IVdsController_Vtbl { @@ -288,31 +224,22 @@ pub struct IVdsController_Vtbl { pub QueryAssociatedLuns: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, status: VDS_CONTROLLER_STATUS) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsControllerControllerPort(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsControllerControllerPort, IVdsControllerControllerPort_Vtbl, 0xca5d735f_6bae_42c0_b30e_f2666045ce71); +::windows_core::imp::interface_hierarchy!(IVdsControllerControllerPort, ::windows_core::IUnknown); impl IVdsControllerControllerPort { pub unsafe fn QueryControllerPorts(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).QueryControllerPorts)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IVdsControllerControllerPort, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsControllerControllerPort { - type Vtable = IVdsControllerControllerPort_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsControllerControllerPort { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xca5d735f_6bae_42c0_b30e_f2666045ce71); -} #[repr(C)] #[doc(hidden)] pub struct IVdsControllerControllerPort_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub QueryControllerPorts: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsControllerPort(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsControllerPort, IVdsControllerPort_Vtbl, 0x18691d0d_4e7f_43e8_92e4_cf44beeed11c); +::windows_core::imp::interface_hierarchy!(IVdsControllerPort, ::windows_core::IUnknown); impl IVdsControllerPort { pub unsafe fn GetProperties(&self, pportprop: *mut VDS_PORT_PROP) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetProperties)(::windows_core::Interface::as_raw(self), pportprop).ok() @@ -332,13 +259,6 @@ impl IVdsControllerPort { (::windows_core::Interface::vtable(self).SetStatus)(::windows_core::Interface::as_raw(self), status).ok() } } -::windows_core::imp::interface_hierarchy!(IVdsControllerPort, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsControllerPort { - type Vtable = IVdsControllerPort_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsControllerPort { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x18691d0d_4e7f_43e8_92e4_cf44beeed11c); -} #[repr(C)] #[doc(hidden)] pub struct IVdsControllerPort_Vtbl { @@ -349,31 +269,22 @@ pub struct IVdsControllerPort_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, status: VDS_PORT_STATUS) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsCreatePartitionEx(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsCreatePartitionEx, IVdsCreatePartitionEx_Vtbl, 0x9882f547_cfc3_420b_9750_00dfbec50662); +::windows_core::imp::interface_hierarchy!(IVdsCreatePartitionEx, ::windows_core::IUnknown); impl IVdsCreatePartitionEx { pub unsafe fn CreatePartitionEx(&self, ulloffset: u64, ullsize: u64, ulalign: u32, para: *const CREATE_PARTITION_PARAMETERS) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).CreatePartitionEx)(::windows_core::Interface::as_raw(self), ulloffset, ullsize, ulalign, para, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IVdsCreatePartitionEx, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsCreatePartitionEx { - type Vtable = IVdsCreatePartitionEx_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsCreatePartitionEx { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9882f547_cfc3_420b_9750_00dfbec50662); -} #[repr(C)] #[doc(hidden)] pub struct IVdsCreatePartitionEx_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub CreatePartitionEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulloffset: u64, ullsize: u64, ulalign: u32, para: *const CREATE_PARTITION_PARAMETERS, ppasync: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsDisk(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsDisk, IVdsDisk_Vtbl, 0x07e5c822_f00c_47a1_8fce_b244da56fd06); +::windows_core::imp::interface_hierarchy!(IVdsDisk, ::windows_core::IUnknown); impl IVdsDisk { pub unsafe fn GetProperties(&self, pdiskproperties: *mut VDS_DISK_PROP) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetProperties)(::windows_core::Interface::as_raw(self), pdiskproperties).ok() @@ -398,13 +309,6 @@ impl IVdsDisk { (::windows_core::Interface::vtable(self).ClearFlags)(::windows_core::Interface::as_raw(self), ulflags).ok() } } -::windows_core::imp::interface_hierarchy!(IVdsDisk, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsDisk { - type Vtable = IVdsDisk_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsDisk { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x07e5c822_f00c_47a1_8fce_b244da56fd06); -} #[repr(C)] #[doc(hidden)] pub struct IVdsDisk_Vtbl { @@ -417,9 +321,8 @@ pub struct IVdsDisk_Vtbl { pub SetFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulflags: u32) -> ::windows_core::HRESULT, pub ClearFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulflags: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsDisk2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsDisk2, IVdsDisk2_Vtbl, 0x40f73c8b_687d_4a13_8d96_3d7f2e683936); +::windows_core::imp::interface_hierarchy!(IVdsDisk2, ::windows_core::IUnknown); impl IVdsDisk2 { pub unsafe fn SetSANMode(&self, benable: P0) -> ::windows_core::Result<()> where @@ -428,22 +331,14 @@ impl IVdsDisk2 { (::windows_core::Interface::vtable(self).SetSANMode)(::windows_core::Interface::as_raw(self), benable.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IVdsDisk2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsDisk2 { - type Vtable = IVdsDisk2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsDisk2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x40f73c8b_687d_4a13_8d96_3d7f2e683936); -} #[repr(C)] #[doc(hidden)] pub struct IVdsDisk2_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub SetSANMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, benable: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsDisk3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsDisk3, IVdsDisk3_Vtbl, 0x8f4b2f5d_ec15_4357_992f_473ef10975b9); +::windows_core::imp::interface_hierarchy!(IVdsDisk3, ::windows_core::IUnknown); impl IVdsDisk3 { pub unsafe fn GetProperties2(&self, pdiskproperties: *mut VDS_DISK_PROP2) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetProperties2)(::windows_core::Interface::as_raw(self), pdiskproperties).ok() @@ -452,13 +347,6 @@ impl IVdsDisk3 { (::windows_core::Interface::vtable(self).QueryFreeExtents)(::windows_core::Interface::as_raw(self), ulalign, ppfreeextentarray, plnumberoffreeextents).ok() } } -::windows_core::imp::interface_hierarchy!(IVdsDisk3, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsDisk3 { - type Vtable = IVdsDisk3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsDisk3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8f4b2f5d_ec15_4357_992f_473ef10975b9); -} #[repr(C)] #[doc(hidden)] pub struct IVdsDisk3_Vtbl { @@ -466,9 +354,8 @@ pub struct IVdsDisk3_Vtbl { pub GetProperties2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdiskproperties: *mut VDS_DISK_PROP2) -> ::windows_core::HRESULT, pub QueryFreeExtents: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulalign: u32, ppfreeextentarray: *mut *mut VDS_DISK_FREE_EXTENT, plnumberoffreeextents: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsDiskOnline(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsDiskOnline, IVdsDiskOnline_Vtbl, 0x90681b1d_6a7f_48e8_9061_31b7aa125322); +::windows_core::imp::interface_hierarchy!(IVdsDiskOnline, ::windows_core::IUnknown); impl IVdsDiskOnline { pub unsafe fn Online(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Online)(::windows_core::Interface::as_raw(self)).ok() @@ -477,13 +364,6 @@ impl IVdsDiskOnline { (::windows_core::Interface::vtable(self).Offline)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IVdsDiskOnline, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsDiskOnline { - type Vtable = IVdsDiskOnline_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsDiskOnline { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x90681b1d_6a7f_48e8_9061_31b7aa125322); -} #[repr(C)] #[doc(hidden)] pub struct IVdsDiskOnline_Vtbl { @@ -491,9 +371,8 @@ pub struct IVdsDiskOnline_Vtbl { pub Online: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Offline: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsDiskPartitionMF(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsDiskPartitionMF, IVdsDiskPartitionMF_Vtbl, 0x538684e0_ba3d_4bc0_aca9_164aff85c2a9); +::windows_core::imp::interface_hierarchy!(IVdsDiskPartitionMF, ::windows_core::IUnknown); impl IVdsDiskPartitionMF { pub unsafe fn GetPartitionFileSystemProperties(&self, ulloffset: u64, pfilesystemprop: *mut VDS_FILE_SYSTEM_PROP) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetPartitionFileSystemProperties)(::windows_core::Interface::as_raw(self), ulloffset, pfilesystemprop).ok() @@ -517,13 +396,6 @@ impl IVdsDiskPartitionMF { (::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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IVdsDiskPartitionMF, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsDiskPartitionMF { - type Vtable = IVdsDiskPartitionMF_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsDiskPartitionMF { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x538684e0_ba3d_4bc0_aca9_164aff85c2a9); -} #[repr(C)] #[doc(hidden)] pub struct IVdsDiskPartitionMF_Vtbl { @@ -533,9 +405,8 @@ pub struct IVdsDiskPartitionMF_Vtbl { pub QueryPartitionFileSystemFormatSupport: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulloffset: u64, ppfilesystemsupportprops: *mut *mut VDS_FILE_SYSTEM_FORMAT_SUPPORT_PROP, plnumberoffilesystems: *mut i32) -> ::windows_core::HRESULT, pub FormatPartitionEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulloffset: u64, pwszfilesystemtypename: ::windows_core::PCWSTR, usfilesystemrevision: u16, uldesiredunitallocationsize: u32, pwszlabel: ::windows_core::PCWSTR, bforce: super::super::Foundation::BOOL, bquickformat: super::super::Foundation::BOOL, benablecompression: super::super::Foundation::BOOL, ppasync: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsDiskPartitionMF2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsDiskPartitionMF2, IVdsDiskPartitionMF2_Vtbl, 0x9cbe50ca_f2d2_4bf4_ace1_96896b729625); +::windows_core::imp::interface_hierarchy!(IVdsDiskPartitionMF2, ::windows_core::IUnknown); impl IVdsDiskPartitionMF2 { pub unsafe fn FormatPartitionEx2(&self, ulloffset: u64, pwszfilesystemtypename: P0, usfilesystemrevision: u16, uldesiredunitallocationsize: u32, pwszlabel: P1, options: u32) -> ::windows_core::Result where @@ -546,22 +417,14 @@ impl IVdsDiskPartitionMF2 { (::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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IVdsDiskPartitionMF2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsDiskPartitionMF2 { - type Vtable = IVdsDiskPartitionMF2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsDiskPartitionMF2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9cbe50ca_f2d2_4bf4_ace1_96896b729625); -} #[repr(C)] #[doc(hidden)] pub struct IVdsDiskPartitionMF2_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub FormatPartitionEx2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulloffset: u64, pwszfilesystemtypename: ::windows_core::PCWSTR, usfilesystemrevision: u16, uldesiredunitallocationsize: u32, pwszlabel: ::windows_core::PCWSTR, options: u32, ppasync: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsDrive(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsDrive, IVdsDrive_Vtbl, 0xff24efa4_aade_4b6b_898b_eaa6a20887c7); +::windows_core::imp::interface_hierarchy!(IVdsDrive, ::windows_core::IUnknown); impl IVdsDrive { pub unsafe fn GetProperties(&self, pdriveprop: *mut VDS_DRIVE_PROP) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetProperties)(::windows_core::Interface::as_raw(self), pdriveprop).ok() @@ -583,13 +446,6 @@ impl IVdsDrive { (::windows_core::Interface::vtable(self).SetStatus)(::windows_core::Interface::as_raw(self), status).ok() } } -::windows_core::imp::interface_hierarchy!(IVdsDrive, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsDrive { - type Vtable = IVdsDrive_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsDrive { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xff24efa4_aade_4b6b_898b_eaa6a20887c7); -} #[repr(C)] #[doc(hidden)] pub struct IVdsDrive_Vtbl { @@ -601,30 +457,21 @@ pub struct IVdsDrive_Vtbl { pub ClearFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulflags: u32) -> ::windows_core::HRESULT, pub SetStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, status: VDS_DRIVE_STATUS) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsDrive2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsDrive2, IVdsDrive2_Vtbl, 0x60b5a730_addf_4436_8ca7_5769e2d1ffa4); +::windows_core::imp::interface_hierarchy!(IVdsDrive2, ::windows_core::IUnknown); impl IVdsDrive2 { pub unsafe fn GetProperties2(&self, pdriveprop2: *mut VDS_DRIVE_PROP2) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetProperties2)(::windows_core::Interface::as_raw(self), pdriveprop2).ok() } } -::windows_core::imp::interface_hierarchy!(IVdsDrive2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsDrive2 { - type Vtable = IVdsDrive2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsDrive2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x60b5a730_addf_4436_8ca7_5769e2d1ffa4); -} #[repr(C)] #[doc(hidden)] pub struct IVdsDrive2_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetProperties2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdriveprop2: *mut VDS_DRIVE_PROP2) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsHbaPort(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsHbaPort, IVdsHbaPort_Vtbl, 0x2abd757f_2851_4997_9a13_47d2a885d6ca); +::windows_core::imp::interface_hierarchy!(IVdsHbaPort, ::windows_core::IUnknown); impl IVdsHbaPort { pub unsafe fn GetProperties(&self, phbaportprop: *mut VDS_HBAPORT_PROP) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetProperties)(::windows_core::Interface::as_raw(self), phbaportprop).ok() @@ -633,13 +480,6 @@ impl IVdsHbaPort { (::windows_core::Interface::vtable(self).SetAllPathStatuses)(::windows_core::Interface::as_raw(self), status).ok() } } -::windows_core::imp::interface_hierarchy!(IVdsHbaPort, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsHbaPort { - type Vtable = IVdsHbaPort_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsHbaPort { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2abd757f_2851_4997_9a13_47d2a885d6ca); -} #[repr(C)] #[doc(hidden)] pub struct IVdsHbaPort_Vtbl { @@ -647,9 +487,8 @@ pub struct IVdsHbaPort_Vtbl { pub GetProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phbaportprop: *mut VDS_HBAPORT_PROP) -> ::windows_core::HRESULT, pub SetAllPathStatuses: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, status: VDS_PATH_STATUS) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsHwProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsHwProvider, IVdsHwProvider_Vtbl, 0xd99bdaae_b13a_4178_9fdb_e27f16b4603e); +::windows_core::imp::interface_hierarchy!(IVdsHwProvider, ::windows_core::IUnknown); impl IVdsHwProvider { pub unsafe fn QuerySubSystems(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -662,13 +501,6 @@ impl IVdsHwProvider { (::windows_core::Interface::vtable(self).Refresh)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IVdsHwProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsHwProvider { - type Vtable = IVdsHwProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsHwProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd99bdaae_b13a_4178_9fdb_e27f16b4603e); -} #[repr(C)] #[doc(hidden)] pub struct IVdsHwProvider_Vtbl { @@ -677,9 +509,8 @@ pub struct IVdsHwProvider_Vtbl { pub Reenumerate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Refresh: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsHwProviderPrivate(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsHwProviderPrivate, IVdsHwProviderPrivate_Vtbl, 0x98f17bf3_9f33_4f12_8714_8b4075092c2e); +::windows_core::imp::interface_hierarchy!(IVdsHwProviderPrivate, ::windows_core::IUnknown); impl IVdsHwProviderPrivate { pub unsafe fn QueryIfCreatedLun(&self, pwszdevicepath: P0, pvdsluninformation: *const VDS_LUN_INFORMATION) -> ::windows_core::Result<::windows_core::GUID> where @@ -689,43 +520,27 @@ impl IVdsHwProviderPrivate { (::windows_core::Interface::vtable(self).QueryIfCreatedLun)(::windows_core::Interface::as_raw(self), pwszdevicepath.into_param().abi(), pvdsluninformation, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IVdsHwProviderPrivate, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsHwProviderPrivate { - type Vtable = IVdsHwProviderPrivate_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsHwProviderPrivate { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x98f17bf3_9f33_4f12_8714_8b4075092c2e); -} #[repr(C)] #[doc(hidden)] pub struct IVdsHwProviderPrivate_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub QueryIfCreatedLun: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwszdevicepath: ::windows_core::PCWSTR, pvdsluninformation: *const VDS_LUN_INFORMATION, plunid: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsHwProviderPrivateMpio(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsHwProviderPrivateMpio, IVdsHwProviderPrivateMpio_Vtbl, 0x310a7715_ac2b_4c6f_9827_3d742f351676); +::windows_core::imp::interface_hierarchy!(IVdsHwProviderPrivateMpio, ::windows_core::IUnknown); impl IVdsHwProviderPrivateMpio { pub unsafe fn SetAllPathStatusesFromHbaPort(&self, hbaportprop: VDS_HBAPORT_PROP, status: VDS_PATH_STATUS) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetAllPathStatusesFromHbaPort)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(hbaportprop), status).ok() } } -::windows_core::imp::interface_hierarchy!(IVdsHwProviderPrivateMpio, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsHwProviderPrivateMpio { - type Vtable = IVdsHwProviderPrivateMpio_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsHwProviderPrivateMpio { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x310a7715_ac2b_4c6f_9827_3d742f351676); -} #[repr(C)] #[doc(hidden)] pub struct IVdsHwProviderPrivateMpio_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub SetAllPathStatusesFromHbaPort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hbaportprop: VDS_HBAPORT_PROP, status: VDS_PATH_STATUS) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsHwProviderStoragePools(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsHwProviderStoragePools, IVdsHwProviderStoragePools_Vtbl, 0xd5b5937a_f188_4c79_b86c_11c920ad11b8); +::windows_core::imp::interface_hierarchy!(IVdsHwProviderStoragePools, ::windows_core::IUnknown); impl IVdsHwProviderStoragePools { pub unsafe fn QueryStoragePools(&self, ulflags: u32, ullremainingfreespace: u64, ppoolattributes: *const VDS_POOL_ATTRIBUTES) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -743,13 +558,6 @@ impl IVdsHwProviderStoragePools { (::windows_core::Interface::vtable(self).QueryMaxLunCreateSizeInStoragePool)(::windows_core::Interface::as_raw(self), r#type, ::core::mem::transmute(storagepoolid), phints2, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IVdsHwProviderStoragePools, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsHwProviderStoragePools { - type Vtable = IVdsHwProviderStoragePools_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsHwProviderStoragePools { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd5b5937a_f188_4c79_b86c_11c920ad11b8); -} #[repr(C)] #[doc(hidden)] pub struct IVdsHwProviderStoragePools_Vtbl { @@ -758,53 +566,36 @@ pub struct IVdsHwProviderStoragePools_Vtbl { pub CreateLunInStoragePool: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: VDS_LUN_TYPE, ullsizeinbytes: u64, storagepoolid: ::windows_core::GUID, pwszunmaskinglist: ::windows_core::PCWSTR, phints2: *const VDS_HINTS2, ppasync: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub QueryMaxLunCreateSizeInStoragePool: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: VDS_LUN_TYPE, storagepoolid: ::windows_core::GUID, phints2: *const VDS_HINTS2, pullmaxlunsize: *mut u64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsHwProviderType(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsHwProviderType, IVdsHwProviderType_Vtbl, 0x3e0f5166_542d_4fc6_947a_012174240b7e); +::windows_core::imp::interface_hierarchy!(IVdsHwProviderType, ::windows_core::IUnknown); impl IVdsHwProviderType { pub unsafe fn GetProviderType(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetProviderType)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IVdsHwProviderType, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsHwProviderType { - type Vtable = IVdsHwProviderType_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsHwProviderType { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3e0f5166_542d_4fc6_947a_012174240b7e); -} #[repr(C)] #[doc(hidden)] pub struct IVdsHwProviderType_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetProviderType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptype: *mut VDS_HWPROVIDER_TYPE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsHwProviderType2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsHwProviderType2, IVdsHwProviderType2_Vtbl, 0x8190236f_c4d0_4e81_8011_d69512fcc984); +::windows_core::imp::interface_hierarchy!(IVdsHwProviderType2, ::windows_core::IUnknown); impl IVdsHwProviderType2 { pub unsafe fn GetProviderType2(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetProviderType2)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IVdsHwProviderType2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsHwProviderType2 { - type Vtable = IVdsHwProviderType2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsHwProviderType2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8190236f_c4d0_4e81_8011_d69512fcc984); -} #[repr(C)] #[doc(hidden)] pub struct IVdsHwProviderType2_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetProviderType2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptype: *mut VDS_HWPROVIDER_TYPE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsIscsiInitiatorAdapter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsIscsiInitiatorAdapter, IVdsIscsiInitiatorAdapter_Vtbl, 0xb07fedd4_1682_4440_9189_a39b55194dc5); +::windows_core::imp::interface_hierarchy!(IVdsIscsiInitiatorAdapter, ::windows_core::IUnknown); impl IVdsIscsiInitiatorAdapter { pub unsafe fn GetProperties(&self, pinitiatoradapterprop: *mut VDS_ISCSI_INITIATOR_ADAPTER_PROP) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetProperties)(::windows_core::Interface::as_raw(self), pinitiatoradapterprop).ok() @@ -826,13 +617,6 @@ impl IVdsIscsiInitiatorAdapter { (::windows_core::Interface::vtable(self).LogoutFromTarget)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(targetid), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IVdsIscsiInitiatorAdapter, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsIscsiInitiatorAdapter { - type Vtable = IVdsIscsiInitiatorAdapter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsIscsiInitiatorAdapter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb07fedd4_1682_4440_9189_a39b55194dc5); -} #[repr(C)] #[doc(hidden)] pub struct IVdsIscsiInitiatorAdapter_Vtbl { @@ -842,9 +626,8 @@ pub struct IVdsIscsiInitiatorAdapter_Vtbl { pub LoginToTarget: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, logintype: VDS_ISCSI_LOGIN_TYPE, targetid: ::windows_core::GUID, targetportalid: ::windows_core::GUID, initiatorportalid: ::windows_core::GUID, ulloginflags: u32, bheaderdigest: super::super::Foundation::BOOL, bdatadigest: super::super::Foundation::BOOL, authtype: VDS_ISCSI_AUTH_TYPE, ppasync: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub LogoutFromTarget: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, targetid: ::windows_core::GUID, ppasync: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsIscsiInitiatorPortal(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsIscsiInitiatorPortal, IVdsIscsiInitiatorPortal_Vtbl, 0x38a0a9ab_7cc8_4693_ac07_1f28bd03c3da); +::windows_core::imp::interface_hierarchy!(IVdsIscsiInitiatorPortal, ::windows_core::IUnknown); impl IVdsIscsiInitiatorPortal { pub unsafe fn GetProperties(&self, pinitiatorportalprop: *mut VDS_ISCSI_INITIATOR_PORTAL_PROP) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetProperties)(::windows_core::Interface::as_raw(self), pinitiatorportalprop).ok() @@ -864,13 +647,6 @@ impl IVdsIscsiInitiatorPortal { (::windows_core::Interface::vtable(self).SetIpsecSecurity)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(targetportalid), ullsecurityflags, pipseckey).ok() } } -::windows_core::imp::interface_hierarchy!(IVdsIscsiInitiatorPortal, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsIscsiInitiatorPortal { - type Vtable = IVdsIscsiInitiatorPortal_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsIscsiInitiatorPortal { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x38a0a9ab_7cc8_4693_ac07_1f28bd03c3da); -} #[repr(C)] #[doc(hidden)] pub struct IVdsIscsiInitiatorPortal_Vtbl { @@ -881,9 +657,8 @@ pub struct IVdsIscsiInitiatorPortal_Vtbl { pub GetIpsecSecurity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, targetportalid: ::windows_core::GUID, pullsecurityflags: *mut u64) -> ::windows_core::HRESULT, pub SetIpsecSecurity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, targetportalid: ::windows_core::GUID, ullsecurityflags: u64, pipseckey: *const VDS_ISCSI_IPSEC_KEY) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsIscsiPortal(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsIscsiPortal, IVdsIscsiPortal_Vtbl, 0x7fa1499d_ec85_4a8a_a47b_ff69201fcd34); +::windows_core::imp::interface_hierarchy!(IVdsIscsiPortal, ::windows_core::IUnknown); impl IVdsIscsiPortal { pub unsafe fn GetProperties(&self, pportalprop: *mut VDS_ISCSI_PORTAL_PROP) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetProperties)(::windows_core::Interface::as_raw(self), pportalprop).ok() @@ -910,13 +685,6 @@ impl IVdsIscsiPortal { (::windows_core::Interface::vtable(self).SetIpsecSecurity)(::windows_core::Interface::as_raw(self), pinitiatorportaladdress, ullsecurityflags, pipseckey).ok() } } -::windows_core::imp::interface_hierarchy!(IVdsIscsiPortal, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsIscsiPortal { - type Vtable = IVdsIscsiPortal_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsIscsiPortal { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7fa1499d_ec85_4a8a_a47b_ff69201fcd34); -} #[repr(C)] #[doc(hidden)] pub struct IVdsIscsiPortal_Vtbl { @@ -929,9 +697,8 @@ pub struct IVdsIscsiPortal_Vtbl { pub GetIpsecSecurity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinitiatorportaladdress: *const VDS_IPADDRESS, pullsecurityflags: *mut u64) -> ::windows_core::HRESULT, pub SetIpsecSecurity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinitiatorportaladdress: *const VDS_IPADDRESS, ullsecurityflags: u64, pipseckey: *const VDS_ISCSI_IPSEC_KEY) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsIscsiPortalGroup(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsIscsiPortalGroup, IVdsIscsiPortalGroup_Vtbl, 0xfef5f89d_a3dd_4b36_bf28_e7dde045c593); +::windows_core::imp::interface_hierarchy!(IVdsIscsiPortalGroup, ::windows_core::IUnknown); impl IVdsIscsiPortalGroup { pub unsafe fn GetProperties(&self, pportalgroupprop: *mut VDS_ISCSI_PORTALGROUP_PROP) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetProperties)(::windows_core::Interface::as_raw(self), pportalgroupprop).ok() @@ -957,13 +724,6 @@ impl IVdsIscsiPortalGroup { (::windows_core::Interface::vtable(self).Delete)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IVdsIscsiPortalGroup, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsIscsiPortalGroup { - type Vtable = IVdsIscsiPortalGroup_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsIscsiPortalGroup { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfef5f89d_a3dd_4b36_bf28_e7dde045c593); -} #[repr(C)] #[doc(hidden)] pub struct IVdsIscsiPortalGroup_Vtbl { @@ -975,30 +735,21 @@ pub struct IVdsIscsiPortalGroup_Vtbl { pub RemovePortal: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, portalid: ::windows_core::GUID, ppasync: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Delete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppasync: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsIscsiPortalLocal(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsIscsiPortalLocal, IVdsIscsiPortalLocal_Vtbl, 0xad837c28_52c1_421d_bf04_fae7da665396); +::windows_core::imp::interface_hierarchy!(IVdsIscsiPortalLocal, ::windows_core::IUnknown); impl IVdsIscsiPortalLocal { pub unsafe fn SetIpsecSecurityLocal(&self, ullsecurityflags: u64, pipseckey: *const VDS_ISCSI_IPSEC_KEY) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetIpsecSecurityLocal)(::windows_core::Interface::as_raw(self), ullsecurityflags, pipseckey).ok() } } -::windows_core::imp::interface_hierarchy!(IVdsIscsiPortalLocal, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsIscsiPortalLocal { - type Vtable = IVdsIscsiPortalLocal_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsIscsiPortalLocal { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xad837c28_52c1_421d_bf04_fae7da665396); -} #[repr(C)] #[doc(hidden)] pub struct IVdsIscsiPortalLocal_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub SetIpsecSecurityLocal: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ullsecurityflags: u64, pipseckey: *const VDS_ISCSI_IPSEC_KEY) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsIscsiTarget(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsIscsiTarget, IVdsIscsiTarget_Vtbl, 0xaa8f5055_83e5_4bcc_aa73_19851a36a849); +::windows_core::imp::interface_hierarchy!(IVdsIscsiTarget, ::windows_core::IUnknown); impl IVdsIscsiTarget { pub unsafe fn GetProperties(&self, ptargetprop: *mut VDS_ISCSI_TARGET_PROP) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetProperties)(::windows_core::Interface::as_raw(self), ptargetprop).ok() @@ -1045,13 +796,6 @@ impl IVdsIscsiTarget { (::windows_core::Interface::vtable(self).GetConnectedInitiators)(::windows_core::Interface::as_raw(self), pppwszinitiatorlist, plnumberofinitiators).ok() } } -::windows_core::imp::interface_hierarchy!(IVdsIscsiTarget, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsIscsiTarget { - type Vtable = IVdsIscsiTarget_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsIscsiTarget { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaa8f5055_83e5_4bcc_aa73_19851a36a849); -} #[repr(C)] #[doc(hidden)] pub struct IVdsIscsiTarget_Vtbl { @@ -1067,9 +811,8 @@ pub struct IVdsIscsiTarget_Vtbl { pub RememberInitiatorSharedSecret: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwszinitiatorname: ::windows_core::PCWSTR, pinitiatorsharedsecret: *const VDS_ISCSI_SHARED_SECRET) -> ::windows_core::HRESULT, pub GetConnectedInitiators: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pppwszinitiatorlist: *mut *mut ::windows_core::PWSTR, plnumberofinitiators: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsLun(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsLun, IVdsLun_Vtbl, 0x3540a9c7_e60f_4111_a840_8bba6c2c83d8); +::windows_core::imp::interface_hierarchy!(IVdsLun, ::windows_core::IUnknown); impl IVdsLun { pub unsafe fn GetProperties(&self, plunprop: *mut VDS_LUN_PROP) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetProperties)(::windows_core::Interface::as_raw(self), plunprop).ok() @@ -1135,13 +878,6 @@ impl IVdsLun { (::windows_core::Interface::vtable(self).QueryMaxLunExtendSize)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pdriveidarray.as_ptr()), pdriveidarray.len().try_into().unwrap(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IVdsLun, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsLun { - type Vtable = IVdsLun_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsLun { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3540a9c7_e60f_4111_a840_8bba6c2c83d8); -} #[repr(C)] #[doc(hidden)] pub struct IVdsLun_Vtbl { @@ -1164,9 +900,8 @@ pub struct IVdsLun_Vtbl { pub SetStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, status: VDS_LUN_STATUS) -> ::windows_core::HRESULT, pub QueryMaxLunExtendSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdriveidarray: *const ::windows_core::GUID, lnumberofdrives: i32, pullmaxbytestobeadded: *mut u64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsLun2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsLun2, IVdsLun2_Vtbl, 0xe5b3a735_9efb_499a_8071_4394d9ee6fcb); +::windows_core::imp::interface_hierarchy!(IVdsLun2, ::windows_core::IUnknown); impl IVdsLun2 { pub unsafe fn QueryHints2(&self, phints2: *mut VDS_HINTS2) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).QueryHints2)(::windows_core::Interface::as_raw(self), phints2).ok() @@ -1175,13 +910,6 @@ impl IVdsLun2 { (::windows_core::Interface::vtable(self).ApplyHints2)(::windows_core::Interface::as_raw(self), phints2).ok() } } -::windows_core::imp::interface_hierarchy!(IVdsLun2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsLun2 { - type Vtable = IVdsLun2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsLun2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe5b3a735_9efb_499a_8071_4394d9ee6fcb); -} #[repr(C)] #[doc(hidden)] pub struct IVdsLun2_Vtbl { @@ -1189,9 +917,8 @@ pub struct IVdsLun2_Vtbl { pub QueryHints2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phints2: *mut VDS_HINTS2) -> ::windows_core::HRESULT, pub ApplyHints2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phints2: *const VDS_HINTS2) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsLunControllerPorts(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsLunControllerPorts, IVdsLunControllerPorts_Vtbl, 0x451fe266_da6d_406a_bb60_82e534f85aeb); +::windows_core::imp::interface_hierarchy!(IVdsLunControllerPorts, ::windows_core::IUnknown); impl IVdsLunControllerPorts { pub unsafe fn AssociateControllerPorts(&self, pactivecontrollerportidarray: &[::windows_core::GUID], pinactivecontrollerportidarray: &[::windows_core::GUID]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).AssociateControllerPorts)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pactivecontrollerportidarray.as_ptr()), pactivecontrollerportidarray.len().try_into().unwrap(), ::core::mem::transmute(pinactivecontrollerportidarray.as_ptr()), pinactivecontrollerportidarray.len().try_into().unwrap()).ok() @@ -1201,13 +928,6 @@ impl IVdsLunControllerPorts { (::windows_core::Interface::vtable(self).QueryActiveControllerPorts)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IVdsLunControllerPorts, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsLunControllerPorts { - type Vtable = IVdsLunControllerPorts_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsLunControllerPorts { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x451fe266_da6d_406a_bb60_82e534f85aeb); -} #[repr(C)] #[doc(hidden)] pub struct IVdsLunControllerPorts_Vtbl { @@ -1215,9 +935,8 @@ pub struct IVdsLunControllerPorts_Vtbl { pub AssociateControllerPorts: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pactivecontrollerportidarray: *const ::windows_core::GUID, lnumberofactivecontrollerports: i32, pinactivecontrollerportidarray: *const ::windows_core::GUID, lnumberofinactivecontrollerports: i32) -> ::windows_core::HRESULT, pub QueryActiveControllerPorts: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsLunIscsi(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsLunIscsi, IVdsLunIscsi_Vtbl, 0x0d7c1e64_b59b_45ae_b86a_2c2cc6a42067); +::windows_core::imp::interface_hierarchy!(IVdsLunIscsi, ::windows_core::IUnknown); impl IVdsLunIscsi { pub unsafe fn AssociateTargets(&self, ptargetidarray: &[::windows_core::GUID]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).AssociateTargets)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(ptargetidarray.as_ptr()), ptargetidarray.len().try_into().unwrap()).ok() @@ -1227,13 +946,6 @@ impl IVdsLunIscsi { (::windows_core::Interface::vtable(self).QueryAssociatedTargets)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IVdsLunIscsi, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsLunIscsi { - type Vtable = IVdsLunIscsi_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsLunIscsi { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0d7c1e64_b59b_45ae_b86a_2c2cc6a42067); -} #[repr(C)] #[doc(hidden)] pub struct IVdsLunIscsi_Vtbl { @@ -1241,9 +953,8 @@ pub struct IVdsLunIscsi_Vtbl { pub AssociateTargets: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptargetidarray: *const ::windows_core::GUID, lnumberoftargets: i32) -> ::windows_core::HRESULT, pub QueryAssociatedTargets: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsLunMpio(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsLunMpio, IVdsLunMpio_Vtbl, 0x7c5fbae3_333a_48a1_a982_33c15788cde3); +::windows_core::imp::interface_hierarchy!(IVdsLunMpio, ::windows_core::IUnknown); impl IVdsLunMpio { pub unsafe fn GetPathInfo(&self, pppaths: *mut *mut VDS_PATH_INFO, plnumberofpaths: *mut i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetPathInfo)(::windows_core::Interface::as_raw(self), pppaths, plnumberofpaths).ok() @@ -1259,13 +970,6 @@ impl IVdsLunMpio { (::windows_core::Interface::vtable(self).GetSupportedLbPolicies)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IVdsLunMpio, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsLunMpio { - type Vtable = IVdsLunMpio_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsLunMpio { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7c5fbae3_333a_48a1_a982_33c15788cde3); -} #[repr(C)] #[doc(hidden)] pub struct IVdsLunMpio_Vtbl { @@ -1275,9 +979,8 @@ pub struct IVdsLunMpio_Vtbl { pub SetLoadBalancePolicy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, policy: VDS_LOADBALANCE_POLICY_ENUM, ppaths: *const VDS_PATH_POLICY, lnumberofpaths: i32) -> ::windows_core::HRESULT, pub GetSupportedLbPolicies: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pullbflags: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsLunNaming(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsLunNaming, IVdsLunNaming_Vtbl, 0x907504cb_6b4e_4d88_a34d_17ba661fbb06); +::windows_core::imp::interface_hierarchy!(IVdsLunNaming, ::windows_core::IUnknown); impl IVdsLunNaming { pub unsafe fn SetFriendlyName(&self, pwszfriendlyname: P0) -> ::windows_core::Result<()> where @@ -1286,44 +989,28 @@ impl IVdsLunNaming { (::windows_core::Interface::vtable(self).SetFriendlyName)(::windows_core::Interface::as_raw(self), pwszfriendlyname.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IVdsLunNaming, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsLunNaming { - type Vtable = IVdsLunNaming_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsLunNaming { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x907504cb_6b4e_4d88_a34d_17ba661fbb06); -} #[repr(C)] #[doc(hidden)] pub struct IVdsLunNaming_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub SetFriendlyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwszfriendlyname: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsLunNumber(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsLunNumber, IVdsLunNumber_Vtbl, 0xd3f95e46_54b3_41f9_b678_0f1871443a08); +::windows_core::imp::interface_hierarchy!(IVdsLunNumber, ::windows_core::IUnknown); impl IVdsLunNumber { pub unsafe fn GetLunNumber(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetLunNumber)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IVdsLunNumber, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsLunNumber { - type Vtable = IVdsLunNumber_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsLunNumber { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd3f95e46_54b3_41f9_b678_0f1871443a08); -} #[repr(C)] #[doc(hidden)] pub struct IVdsLunNumber_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetLunNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pullunnumber: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsLunPlex(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsLunPlex, IVdsLunPlex_Vtbl, 0x0ee1a790_5d2e_4abb_8c99_c481e8be2138); +::windows_core::imp::interface_hierarchy!(IVdsLunPlex, ::windows_core::IUnknown); impl IVdsLunPlex { pub unsafe fn GetProperties(&self, pplexprop: *mut VDS_LUN_PLEX_PROP) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetProperties)(::windows_core::Interface::as_raw(self), pplexprop).ok() @@ -1342,13 +1029,6 @@ impl IVdsLunPlex { (::windows_core::Interface::vtable(self).ApplyHints)(::windows_core::Interface::as_raw(self), phints).ok() } } -::windows_core::imp::interface_hierarchy!(IVdsLunPlex, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsLunPlex { - type Vtable = IVdsLunPlex_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsLunPlex { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0ee1a790_5d2e_4abb_8c99_c481e8be2138); -} #[repr(C)] #[doc(hidden)] pub struct IVdsLunPlex_Vtbl { @@ -1359,9 +1039,8 @@ pub struct IVdsLunPlex_Vtbl { pub QueryHints: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phints: *mut VDS_HINTS) -> ::windows_core::HRESULT, pub ApplyHints: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phints: *const VDS_HINTS) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsMaintenance(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsMaintenance, IVdsMaintenance_Vtbl, 0xdaebeef3_8523_47ed_a2b9_05cecce2a1ae); +::windows_core::imp::interface_hierarchy!(IVdsMaintenance, ::windows_core::IUnknown); impl IVdsMaintenance { pub unsafe fn StartMaintenance(&self, operation: VDS_MAINTENANCE_OPERATION) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).StartMaintenance)(::windows_core::Interface::as_raw(self), operation).ok() @@ -1373,13 +1052,6 @@ impl IVdsMaintenance { (::windows_core::Interface::vtable(self).PulseMaintenance)(::windows_core::Interface::as_raw(self), operation, ulcount).ok() } } -::windows_core::imp::interface_hierarchy!(IVdsMaintenance, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsMaintenance { - type Vtable = IVdsMaintenance_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsMaintenance { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdaebeef3_8523_47ed_a2b9_05cecce2a1ae); -} #[repr(C)] #[doc(hidden)] pub struct IVdsMaintenance_Vtbl { @@ -1388,9 +1060,8 @@ pub struct IVdsMaintenance_Vtbl { pub StopMaintenance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, operation: VDS_MAINTENANCE_OPERATION) -> ::windows_core::HRESULT, pub PulseMaintenance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, operation: VDS_MAINTENANCE_OPERATION, ulcount: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsOpenVDisk(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsOpenVDisk, IVdsOpenVDisk_Vtbl, 0x75c8f324_f715_4fe3_a28e_f9011b61a4a1); +::windows_core::imp::interface_hierarchy!(IVdsOpenVDisk, ::windows_core::IUnknown); impl IVdsOpenVDisk { #[doc = "Required features: `\"Win32_Storage_Vhd\"`"] #[cfg(feature = "Win32_Storage_Vhd")] @@ -1430,13 +1101,6 @@ impl IVdsOpenVDisk { (::windows_core::Interface::vtable(self).Expand)(::windows_core::Interface::as_raw(self), flags, newsize, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IVdsOpenVDisk, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsOpenVDisk { - type Vtable = IVdsOpenVDisk_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsOpenVDisk { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x75c8f324_f715_4fe3_a28e_f9011b61a4a1); -} #[repr(C)] #[doc(hidden)] pub struct IVdsOpenVDisk_Vtbl { @@ -1466,9 +1130,8 @@ pub struct IVdsOpenVDisk_Vtbl { #[cfg(not(feature = "Win32_Storage_Vhd"))] Expand: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsPack(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsPack, IVdsPack_Vtbl, 0x3b69d7f5_9d94_4648_91ca_79939ba263bf); +::windows_core::imp::interface_hierarchy!(IVdsPack, ::windows_core::IUnknown); impl IVdsPack { pub unsafe fn GetProperties(&self, ppackprop: *mut VDS_PACK_PROP) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetProperties)(::windows_core::Interface::as_raw(self), ppackprop).ok() @@ -1514,13 +1177,6 @@ impl IVdsPack { (::windows_core::Interface::vtable(self).Recover)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IVdsPack, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsPack { - type Vtable = IVdsPack_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsPack { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3b69d7f5_9d94_4648_91ca_79939ba263bf); -} #[repr(C)] #[doc(hidden)] pub struct IVdsPack_Vtbl { @@ -1536,52 +1192,35 @@ pub struct IVdsPack_Vtbl { pub RemoveMissingDisk: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, diskid: ::windows_core::GUID) -> ::windows_core::HRESULT, pub Recover: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppasync: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsPack2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsPack2, IVdsPack2_Vtbl, 0x13b50bff_290a_47dd_8558_b7c58db1a71a); +::windows_core::imp::interface_hierarchy!(IVdsPack2, ::windows_core::IUnknown); impl IVdsPack2 { pub unsafe fn CreateVolume2(&self, r#type: VDS_VOLUME_TYPE, pinputdiskarray: &[VDS_INPUT_DISK], ulstripesize: u32, ulalign: u32) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).CreateVolume2)(::windows_core::Interface::as_raw(self), r#type, ::core::mem::transmute(pinputdiskarray.as_ptr()), pinputdiskarray.len().try_into().unwrap(), ulstripesize, ulalign, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IVdsPack2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsPack2 { - type Vtable = IVdsPack2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsPack2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x13b50bff_290a_47dd_8558_b7c58db1a71a); -} #[repr(C)] #[doc(hidden)] pub struct IVdsPack2_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub CreateVolume2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: VDS_VOLUME_TYPE, pinputdiskarray: *const VDS_INPUT_DISK, lnumberofdisks: i32, ulstripesize: u32, ulalign: u32, ppasync: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsProvider, IVdsProvider_Vtbl, 0x10c5e575_7984_4e81_a56b_431f5f92ae42); +::windows_core::imp::interface_hierarchy!(IVdsProvider, ::windows_core::IUnknown); impl IVdsProvider { pub unsafe fn GetProperties(&self, pproviderprop: *mut VDS_PROVIDER_PROP) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetProperties)(::windows_core::Interface::as_raw(self), pproviderprop).ok() } } -::windows_core::imp::interface_hierarchy!(IVdsProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsProvider { - type Vtable = IVdsProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x10c5e575_7984_4e81_a56b_431f5f92ae42); -} #[repr(C)] #[doc(hidden)] pub struct IVdsProvider_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pproviderprop: *mut VDS_PROVIDER_PROP) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsProviderPrivate(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsProviderPrivate, IVdsProviderPrivate_Vtbl, 0x11f3cd41_b7e8_48ff_9472_9dff018aa292); +::windows_core::imp::interface_hierarchy!(IVdsProviderPrivate, ::windows_core::IUnknown); impl IVdsProviderPrivate { pub unsafe fn GetObject(&self, objectid: ::windows_core::GUID, r#type: VDS_OBJECT_TYPE) -> ::windows_core::Result<::windows_core::IUnknown> { let mut result__ = ::std::mem::zeroed(); @@ -1601,13 +1240,6 @@ impl IVdsProviderPrivate { (::windows_core::Interface::vtable(self).OnUnload)(::windows_core::Interface::as_raw(self), bforceunload.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IVdsProviderPrivate, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsProviderPrivate { - type Vtable = IVdsProviderPrivate_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsProviderPrivate { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x11f3cd41_b7e8_48ff_9472_9dff018aa292); -} #[repr(C)] #[doc(hidden)] pub struct IVdsProviderPrivate_Vtbl { @@ -1616,31 +1248,22 @@ pub struct IVdsProviderPrivate_Vtbl { pub OnLoad: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwszmachinename: ::windows_core::PCWSTR, pcallbackobject: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub OnUnload: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bforceunload: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsProviderSupport(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsProviderSupport, IVdsProviderSupport_Vtbl, 0x1732be13_e8f9_4a03_bfbc_5f616aa66ce1); +::windows_core::imp::interface_hierarchy!(IVdsProviderSupport, ::windows_core::IUnknown); impl IVdsProviderSupport { pub unsafe fn GetVersionSupport(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetVersionSupport)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IVdsProviderSupport, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsProviderSupport { - type Vtable = IVdsProviderSupport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsProviderSupport { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1732be13_e8f9_4a03_bfbc_5f616aa66ce1); -} #[repr(C)] #[doc(hidden)] pub struct IVdsProviderSupport_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetVersionSupport: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulversionsupport: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsRemovable(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsRemovable, IVdsRemovable_Vtbl, 0x0316560b_5db4_4ed9_bbb5_213436ddc0d9); +::windows_core::imp::interface_hierarchy!(IVdsRemovable, ::windows_core::IUnknown); impl IVdsRemovable { pub unsafe fn QueryMedia(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).QueryMedia)(::windows_core::Interface::as_raw(self)).ok() @@ -1649,13 +1272,6 @@ impl IVdsRemovable { (::windows_core::Interface::vtable(self).Eject)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IVdsRemovable, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsRemovable { - type Vtable = IVdsRemovable_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsRemovable { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0316560b_5db4_4ed9_bbb5_213436ddc0d9); -} #[repr(C)] #[doc(hidden)] pub struct IVdsRemovable_Vtbl { @@ -1663,9 +1279,8 @@ pub struct IVdsRemovable_Vtbl { pub QueryMedia: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Eject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsService(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsService, IVdsService_Vtbl, 0x0818a8ef_9ba9_40d8_a6f9_e22833cc771e); +::windows_core::imp::interface_hierarchy!(IVdsService, ::windows_core::IUnknown); impl IVdsService { pub unsafe fn IsServiceReady(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).IsServiceReady)(::windows_core::Interface::as_raw(self)).ok() @@ -1728,13 +1343,6 @@ impl IVdsService { (::windows_core::Interface::vtable(self).ClearFlags)(::windows_core::Interface::as_raw(self), ulflags).ok() } } -::windows_core::imp::interface_hierarchy!(IVdsService, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsService { - type Vtable = IVdsService_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsService { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0818a8ef_9ba9_40d8_a6f9_e22833cc771e); -} #[repr(C)] #[doc(hidden)] pub struct IVdsService_Vtbl { @@ -1757,31 +1365,22 @@ pub struct IVdsService_Vtbl { pub SetFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulflags: u32) -> ::windows_core::HRESULT, pub ClearFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulflags: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsServiceHba(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsServiceHba, IVdsServiceHba_Vtbl, 0x0ac13689_3134_47c6_a17c_4669216801be); +::windows_core::imp::interface_hierarchy!(IVdsServiceHba, ::windows_core::IUnknown); impl IVdsServiceHba { pub unsafe fn QueryHbaPorts(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).QueryHbaPorts)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IVdsServiceHba, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsServiceHba { - type Vtable = IVdsServiceHba_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsServiceHba { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0ac13689_3134_47c6_a17c_4669216801be); -} #[repr(C)] #[doc(hidden)] pub struct IVdsServiceHba_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub QueryHbaPorts: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsServiceInitialization(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsServiceInitialization, IVdsServiceInitialization_Vtbl, 0x4afc3636_db01_4052_80c3_03bbcb8d3c69); +::windows_core::imp::interface_hierarchy!(IVdsServiceInitialization, ::windows_core::IUnknown); impl IVdsServiceInitialization { pub unsafe fn Initialize(&self, pwszmachinename: P0) -> ::windows_core::Result<()> where @@ -1790,22 +1389,14 @@ impl IVdsServiceInitialization { (::windows_core::Interface::vtable(self).Initialize)(::windows_core::Interface::as_raw(self), pwszmachinename.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IVdsServiceInitialization, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsServiceInitialization { - type Vtable = IVdsServiceInitialization_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsServiceInitialization { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4afc3636_db01_4052_80c3_03bbcb8d3c69); -} #[repr(C)] #[doc(hidden)] pub struct IVdsServiceInitialization_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwszmachinename: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsServiceIscsi(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsServiceIscsi, IVdsServiceIscsi_Vtbl, 0x14fbe036_3ed7_4e10_90e9_a5ff991aff01); +::windows_core::imp::interface_hierarchy!(IVdsServiceIscsi, ::windows_core::IUnknown); impl IVdsServiceIscsi { pub unsafe fn GetInitiatorName(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); @@ -1831,13 +1422,6 @@ impl IVdsServiceIscsi { (::windows_core::Interface::vtable(self).RememberTargetSharedSecret)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(targetid), ptargetsharedsecret).ok() } } -::windows_core::imp::interface_hierarchy!(IVdsServiceIscsi, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsServiceIscsi { - type Vtable = IVdsServiceIscsi_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsServiceIscsi { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x14fbe036_3ed7_4e10_90e9_a5ff991aff01); -} #[repr(C)] #[doc(hidden)] pub struct IVdsServiceIscsi_Vtbl { @@ -1850,9 +1434,8 @@ pub struct IVdsServiceIscsi_Vtbl { pub SetInitiatorSharedSecret: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinitiatorsharedsecret: *const VDS_ISCSI_SHARED_SECRET, targetid: ::windows_core::GUID) -> ::windows_core::HRESULT, pub RememberTargetSharedSecret: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, targetid: ::windows_core::GUID, ptargetsharedsecret: *const VDS_ISCSI_SHARED_SECRET) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsServiceLoader(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsServiceLoader, IVdsServiceLoader_Vtbl, 0xe0393303_90d4_4a97_ab71_e9b671ee2729); +::windows_core::imp::interface_hierarchy!(IVdsServiceLoader, ::windows_core::IUnknown); impl IVdsServiceLoader { pub unsafe fn LoadService(&self, pwszmachinename: P0) -> ::windows_core::Result where @@ -1862,22 +1445,14 @@ impl IVdsServiceLoader { (::windows_core::Interface::vtable(self).LoadService)(::windows_core::Interface::as_raw(self), pwszmachinename.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IVdsServiceLoader, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsServiceLoader { - type Vtable = IVdsServiceLoader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsServiceLoader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe0393303_90d4_4a97_ab71_e9b671ee2729); -} #[repr(C)] #[doc(hidden)] pub struct IVdsServiceLoader_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub LoadService: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwszmachinename: ::windows_core::PCWSTR, ppservice: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsServiceSAN(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsServiceSAN, IVdsServiceSAN_Vtbl, 0xfc5d23e8_a88b_41a5_8de0_2d2f73c5a630); +::windows_core::imp::interface_hierarchy!(IVdsServiceSAN, ::windows_core::IUnknown); impl IVdsServiceSAN { pub unsafe fn GetSANPolicy(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1887,13 +1462,6 @@ impl IVdsServiceSAN { (::windows_core::Interface::vtable(self).SetSANPolicy)(::windows_core::Interface::as_raw(self), sanpolicy).ok() } } -::windows_core::imp::interface_hierarchy!(IVdsServiceSAN, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsServiceSAN { - type Vtable = IVdsServiceSAN_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsServiceSAN { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfc5d23e8_a88b_41a5_8de0_2d2f73c5a630); -} #[repr(C)] #[doc(hidden)] pub struct IVdsServiceSAN_Vtbl { @@ -1901,9 +1469,8 @@ pub struct IVdsServiceSAN_Vtbl { pub GetSANPolicy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psanpolicy: *mut VDS_SAN_POLICY) -> ::windows_core::HRESULT, pub SetSANPolicy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sanpolicy: VDS_SAN_POLICY) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsServiceSw(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsServiceSw, IVdsServiceSw_Vtbl, 0x15fc031c_0652_4306_b2c3_f558b8f837e2); +::windows_core::imp::interface_hierarchy!(IVdsServiceSw, ::windows_core::IUnknown); impl IVdsServiceSw { pub unsafe fn GetDiskObject(&self, pwszdeviceid: P0) -> ::windows_core::Result<::windows_core::IUnknown> where @@ -1913,22 +1480,14 @@ impl IVdsServiceSw { (::windows_core::Interface::vtable(self).GetDiskObject)(::windows_core::Interface::as_raw(self), pwszdeviceid.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IVdsServiceSw, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsServiceSw { - type Vtable = IVdsServiceSw_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsServiceSw { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x15fc031c_0652_4306_b2c3_f558b8f837e2); -} #[repr(C)] #[doc(hidden)] pub struct IVdsServiceSw_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetDiskObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwszdeviceid: ::windows_core::PCWSTR, ppdiskunk: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsServiceUninstallDisk(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsServiceUninstallDisk, IVdsServiceUninstallDisk_Vtbl, 0xb6b22da8_f903_4be7_b492_c09d875ac9da); +::windows_core::imp::interface_hierarchy!(IVdsServiceUninstallDisk, ::windows_core::IUnknown); impl IVdsServiceUninstallDisk { pub unsafe fn GetDiskIdFromLunInfo(&self, pluninfo: *const VDS_LUN_INFORMATION) -> ::windows_core::Result<::windows_core::GUID> { let mut result__ = ::std::mem::zeroed(); @@ -1941,13 +1500,6 @@ impl IVdsServiceUninstallDisk { (::windows_core::Interface::vtable(self).UninstallDisks)(::windows_core::Interface::as_raw(self), pdiskidarray, ulcount, bforce.into_param().abi(), pbreboot, presults).ok() } } -::windows_core::imp::interface_hierarchy!(IVdsServiceUninstallDisk, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsServiceUninstallDisk { - type Vtable = IVdsServiceUninstallDisk_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsServiceUninstallDisk { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb6b22da8_f903_4be7_b492_c09d875ac9da); -} #[repr(C)] #[doc(hidden)] pub struct IVdsServiceUninstallDisk_Vtbl { @@ -1955,9 +1507,8 @@ pub struct IVdsServiceUninstallDisk_Vtbl { pub GetDiskIdFromLunInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pluninfo: *const VDS_LUN_INFORMATION, pdiskid: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, pub UninstallDisks: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdiskidarray: *const ::windows_core::GUID, ulcount: u32, bforce: super::super::Foundation::BOOLEAN, pbreboot: *mut u8, presults: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsStoragePool(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsStoragePool, IVdsStoragePool_Vtbl, 0x932ca8cf_0eb3_4ba8_9620_22665d7f8450); +::windows_core::imp::interface_hierarchy!(IVdsStoragePool, ::windows_core::IUnknown); impl IVdsStoragePool { pub unsafe fn GetProvider(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1981,13 +1532,6 @@ impl IVdsStoragePool { (::windows_core::Interface::vtable(self).QueryAllocatedStoragePools)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IVdsStoragePool, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsStoragePool { - type Vtable = IVdsStoragePool_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsStoragePool { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x932ca8cf_0eb3_4ba8_9620_22665d7f8450); -} #[repr(C)] #[doc(hidden)] pub struct IVdsStoragePool_Vtbl { @@ -1999,9 +1543,8 @@ pub struct IVdsStoragePool_Vtbl { pub QueryAllocatedLuns: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub QueryAllocatedStoragePools: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsSubSystem(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsSubSystem, IVdsSubSystem_Vtbl, 0x6fcee2d3_6d90_4f91_80e2_a5c7caaca9d8); +::windows_core::imp::interface_hierarchy!(IVdsSubSystem, ::windows_core::IUnknown); impl IVdsSubSystem { pub unsafe fn GetProperties(&self, psubsystemprop: *mut VDS_SUB_SYSTEM_PROP) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetProperties)(::windows_core::Interface::as_raw(self), psubsystemprop).ok() @@ -2050,13 +1593,6 @@ impl IVdsSubSystem { (::windows_core::Interface::vtable(self).QueryMaxLunCreateSize)(::windows_core::Interface::as_raw(self), r#type, ::core::mem::transmute(pdriveidarray.as_ptr()), pdriveidarray.len().try_into().unwrap(), phints, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IVdsSubSystem, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsSubSystem { - type Vtable = IVdsSubSystem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsSubSystem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6fcee2d3_6d90_4f91_80e2_a5c7caaca9d8); -} #[repr(C)] #[doc(hidden)] pub struct IVdsSubSystem_Vtbl { @@ -2074,9 +1610,8 @@ pub struct IVdsSubSystem_Vtbl { pub SetStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, status: VDS_SUB_SYSTEM_STATUS) -> ::windows_core::HRESULT, pub QueryMaxLunCreateSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: VDS_LUN_TYPE, pdriveidarray: *const ::windows_core::GUID, lnumberofdrives: i32, phints: *const VDS_HINTS, pullmaxlunsize: *mut u64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsSubSystem2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsSubSystem2, IVdsSubSystem2_Vtbl, 0xbe666735_7800_4a77_9d9c_40f85b87e292); +::windows_core::imp::interface_hierarchy!(IVdsSubSystem2, ::windows_core::IUnknown); impl IVdsSubSystem2 { pub unsafe fn GetProperties2(&self, psubsystemprop2: *mut VDS_SUB_SYSTEM_PROP2) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetProperties2)(::windows_core::Interface::as_raw(self), psubsystemprop2).ok() @@ -2097,13 +1632,6 @@ impl IVdsSubSystem2 { (::windows_core::Interface::vtable(self).QueryMaxLunCreateSize2)(::windows_core::Interface::as_raw(self), r#type, ::core::mem::transmute(pdriveidarray.as_ptr()), pdriveidarray.len().try_into().unwrap(), phints2, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IVdsSubSystem2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsSubSystem2 { - type Vtable = IVdsSubSystem2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsSubSystem2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbe666735_7800_4a77_9d9c_40f85b87e292); -} #[repr(C)] #[doc(hidden)] pub struct IVdsSubSystem2_Vtbl { @@ -2113,9 +1641,8 @@ pub struct IVdsSubSystem2_Vtbl { pub CreateLun2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: VDS_LUN_TYPE, ullsizeinbytes: u64, pdriveidarray: *const ::windows_core::GUID, lnumberofdrives: i32, pwszunmaskinglist: ::windows_core::PCWSTR, phints2: *const VDS_HINTS2, ppasync: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub QueryMaxLunCreateSize2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: VDS_LUN_TYPE, pdriveidarray: *const ::windows_core::GUID, lnumberofdrives: i32, phints2: *const VDS_HINTS2, pullmaxlunsize: *mut u64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsSubSystemImportTarget(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsSubSystemImportTarget, IVdsSubSystemImportTarget_Vtbl, 0x83bfb87f_43fb_4903_baa6_127f01029eec); +::windows_core::imp::interface_hierarchy!(IVdsSubSystemImportTarget, ::windows_core::IUnknown); impl IVdsSubSystemImportTarget { pub unsafe fn GetImportTarget(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); @@ -2128,13 +1655,6 @@ impl IVdsSubSystemImportTarget { (::windows_core::Interface::vtable(self).SetImportTarget)(::windows_core::Interface::as_raw(self), pwsziscsiname.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IVdsSubSystemImportTarget, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsSubSystemImportTarget { - type Vtable = IVdsSubSystemImportTarget_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsSubSystemImportTarget { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x83bfb87f_43fb_4903_baa6_127f01029eec); -} #[repr(C)] #[doc(hidden)] pub struct IVdsSubSystemImportTarget_Vtbl { @@ -2142,31 +1662,22 @@ pub struct IVdsSubSystemImportTarget_Vtbl { pub GetImportTarget: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppwsziscsiname: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, pub SetImportTarget: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwsziscsiname: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsSubSystemInterconnect(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsSubSystemInterconnect, IVdsSubSystemInterconnect_Vtbl, 0x9e6fa560_c141_477b_83ba_0b6c38f7febf); +::windows_core::imp::interface_hierarchy!(IVdsSubSystemInterconnect, ::windows_core::IUnknown); impl IVdsSubSystemInterconnect { pub unsafe fn GetSupportedInterconnects(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetSupportedInterconnects)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IVdsSubSystemInterconnect, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsSubSystemInterconnect { - type Vtable = IVdsSubSystemInterconnect_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsSubSystemInterconnect { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9e6fa560_c141_477b_83ba_0b6c38f7febf); -} #[repr(C)] #[doc(hidden)] pub struct IVdsSubSystemInterconnect_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetSupportedInterconnects: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pulsupportedinterconnectsflag: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsSubSystemIscsi(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsSubSystemIscsi, IVdsSubSystemIscsi_Vtbl, 0x0027346f_40d0_4b45_8cec_5906dc0380c8); +::windows_core::imp::interface_hierarchy!(IVdsSubSystemIscsi, ::windows_core::IUnknown); impl IVdsSubSystemIscsi { pub unsafe fn QueryTargets(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2188,13 +1699,6 @@ impl IVdsSubSystemIscsi { (::windows_core::Interface::vtable(self).SetIpsecGroupPresharedKey)(::windows_core::Interface::as_raw(self), pipseckey).ok() } } -::windows_core::imp::interface_hierarchy!(IVdsSubSystemIscsi, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsSubSystemIscsi { - type Vtable = IVdsSubSystemIscsi_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsSubSystemIscsi { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0027346f_40d0_4b45_8cec_5906dc0380c8); -} #[repr(C)] #[doc(hidden)] pub struct IVdsSubSystemIscsi_Vtbl { @@ -2204,9 +1708,8 @@ pub struct IVdsSubSystemIscsi_Vtbl { pub CreateTarget: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwsziscsiname: ::windows_core::PCWSTR, pwszfriendlyname: ::windows_core::PCWSTR, ppasync: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetIpsecGroupPresharedKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pipseckey: *const VDS_ISCSI_IPSEC_KEY) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsSubSystemNaming(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsSubSystemNaming, IVdsSubSystemNaming_Vtbl, 0x0d70faa3_9cd4_4900_aa20_6981b6aafc75); +::windows_core::imp::interface_hierarchy!(IVdsSubSystemNaming, ::windows_core::IUnknown); impl IVdsSubSystemNaming { pub unsafe fn SetFriendlyName(&self, pwszfriendlyname: P0) -> ::windows_core::Result<()> where @@ -2215,22 +1718,14 @@ impl IVdsSubSystemNaming { (::windows_core::Interface::vtable(self).SetFriendlyName)(::windows_core::Interface::as_raw(self), pwszfriendlyname.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IVdsSubSystemNaming, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsSubSystemNaming { - type Vtable = IVdsSubSystemNaming_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsSubSystemNaming { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0d70faa3_9cd4_4900_aa20_6981b6aafc75); -} #[repr(C)] #[doc(hidden)] pub struct IVdsSubSystemNaming_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub SetFriendlyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwszfriendlyname: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsSwProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsSwProvider, IVdsSwProvider_Vtbl, 0x9aa58360_ce33_4f92_b658_ed24b14425b8); +::windows_core::imp::interface_hierarchy!(IVdsSwProvider, ::windows_core::IUnknown); impl IVdsSwProvider { pub unsafe fn QueryPacks(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2241,13 +1736,6 @@ impl IVdsSwProvider { (::windows_core::Interface::vtable(self).CreatePack)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IVdsSwProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsSwProvider { - type Vtable = IVdsSwProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsSwProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9aa58360_ce33_4f92_b658_ed24b14425b8); -} #[repr(C)] #[doc(hidden)] pub struct IVdsSwProvider_Vtbl { @@ -2255,9 +1743,8 @@ pub struct IVdsSwProvider_Vtbl { pub QueryPacks: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreatePack: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pppack: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsVDisk(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsVDisk, IVdsVDisk_Vtbl, 0x1e062b84_e5e6_4b4b_8a25_67b81e8f13e8); +::windows_core::imp::interface_hierarchy!(IVdsVDisk, ::windows_core::IUnknown); impl IVdsVDisk { #[doc = "Required features: `\"Win32_Storage_Vhd\"`"] #[cfg(feature = "Win32_Storage_Vhd")] @@ -2279,13 +1766,6 @@ impl IVdsVDisk { (::windows_core::Interface::vtable(self).GetDeviceName)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IVdsVDisk, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsVDisk { - type Vtable = IVdsVDisk_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsVDisk { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1e062b84_e5e6_4b4b_8a25_67b81e8f13e8); -} #[repr(C)] #[doc(hidden)] pub struct IVdsVDisk_Vtbl { @@ -2301,9 +1781,8 @@ pub struct IVdsVDisk_Vtbl { pub GetHostVolume: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppvolume: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeviceName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppdevicename: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsVdProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsVdProvider, IVdsVdProvider_Vtbl, 0xb481498c_8354_45f9_84a0_0bdd2832a91f); +::windows_core::imp::interface_hierarchy!(IVdsVdProvider, ::windows_core::IUnknown); impl IVdsVdProvider { pub unsafe fn QueryVDisks(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2341,13 +1820,6 @@ impl IVdsVdProvider { (::windows_core::Interface::vtable(self).GetVDiskFromDisk)(::windows_core::Interface::as_raw(self), pdisk.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IVdsVdProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsVdProvider { - type Vtable = IVdsVdProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsVdProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb481498c_8354_45f9_84a0_0bdd2832a91f); -} #[repr(C)] #[doc(hidden)] pub struct IVdsVdProvider_Vtbl { @@ -2364,9 +1836,8 @@ pub struct IVdsVdProvider_Vtbl { pub GetDiskFromVDisk: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvdisk: *mut ::core::ffi::c_void, ppdisk: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetVDiskFromDisk: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdisk: *mut ::core::ffi::c_void, ppvdisk: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsVolume(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsVolume, IVdsVolume_Vtbl, 0x88306bb2_e71f_478c_86a2_79da200a0f11); +::windows_core::imp::interface_hierarchy!(IVdsVolume, ::windows_core::IUnknown); impl IVdsVolume { pub unsafe fn GetProperties(&self, pvolumeproperties: *mut VDS_VOLUME_PROP) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetProperties)(::windows_core::Interface::as_raw(self), pvolumeproperties).ok() @@ -2415,13 +1886,6 @@ impl IVdsVolume { (::windows_core::Interface::vtable(self).ClearFlags)(::windows_core::Interface::as_raw(self), ulflags).ok() } } -::windows_core::imp::interface_hierarchy!(IVdsVolume, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsVolume { - type Vtable = IVdsVolume_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsVolume { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x88306bb2_e71f_478c_86a2_79da200a0f11); -} #[repr(C)] #[doc(hidden)] pub struct IVdsVolume_Vtbl { @@ -2438,30 +1902,21 @@ pub struct IVdsVolume_Vtbl { pub SetFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulflags: u32, brevertonclose: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub ClearFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulflags: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsVolume2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsVolume2, IVdsVolume2_Vtbl, 0x72ae6713_dcbb_4a03_b36b_371f6ac6b53d); +::windows_core::imp::interface_hierarchy!(IVdsVolume2, ::windows_core::IUnknown); impl IVdsVolume2 { pub unsafe fn GetProperties2(&self, pvolumeproperties: *mut VDS_VOLUME_PROP2) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetProperties2)(::windows_core::Interface::as_raw(self), pvolumeproperties).ok() } } -::windows_core::imp::interface_hierarchy!(IVdsVolume2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsVolume2 { - type Vtable = IVdsVolume2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsVolume2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x72ae6713_dcbb_4a03_b36b_371f6ac6b53d); -} #[repr(C)] #[doc(hidden)] pub struct IVdsVolume2_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetProperties2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvolumeproperties: *mut VDS_VOLUME_PROP2) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsVolumeMF(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsVolumeMF, IVdsVolumeMF_Vtbl, 0xee2d5ded_6236_4169_931d_b9778ce03dc6); +::windows_core::imp::interface_hierarchy!(IVdsVolumeMF, ::windows_core::IUnknown); impl IVdsVolumeMF { pub unsafe fn GetFileSystemProperties(&self, pfilesystemprop: *mut VDS_FILE_SYSTEM_PROP) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetFileSystemProperties)(::windows_core::Interface::as_raw(self), pfilesystemprop).ok() @@ -2512,13 +1967,6 @@ impl IVdsVolumeMF { (::windows_core::Interface::vtable(self).ClearFileSystemFlags)(::windows_core::Interface::as_raw(self), ulflags).ok() } } -::windows_core::imp::interface_hierarchy!(IVdsVolumeMF, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsVolumeMF { - type Vtable = IVdsVolumeMF_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsVolumeMF { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xee2d5ded_6236_4169_931d_b9778ce03dc6); -} #[repr(C)] #[doc(hidden)] pub struct IVdsVolumeMF_Vtbl { @@ -2534,9 +1982,8 @@ pub struct IVdsVolumeMF_Vtbl { pub SetFileSystemFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulflags: u32) -> ::windows_core::HRESULT, pub ClearFileSystemFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulflags: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsVolumeMF2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsVolumeMF2, IVdsVolumeMF2_Vtbl, 0x4dbcee9a_6343_4651_b85f_5e75d74d983c); +::windows_core::imp::interface_hierarchy!(IVdsVolumeMF2, ::windows_core::IUnknown); impl IVdsVolumeMF2 { pub unsafe fn GetFileSystemTypeName(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); @@ -2557,13 +2004,6 @@ impl IVdsVolumeMF2 { (::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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IVdsVolumeMF2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsVolumeMF2 { - type Vtable = IVdsVolumeMF2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsVolumeMF2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4dbcee9a_6343_4651_b85f_5e75d74d983c); -} #[repr(C)] #[doc(hidden)] pub struct IVdsVolumeMF2_Vtbl { @@ -2572,9 +2012,8 @@ pub struct IVdsVolumeMF2_Vtbl { pub QueryFileSystemFormatSupport: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppfilesystemsupportprops: *mut *mut VDS_FILE_SYSTEM_FORMAT_SUPPORT_PROP, plnumberoffilesystems: *mut i32) -> ::windows_core::HRESULT, pub FormatEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwszfilesystemtypename: ::windows_core::PCWSTR, usfilesystemrevision: u16, uldesiredunitallocationsize: u32, pwszlabel: ::windows_core::PCWSTR, bforce: super::super::Foundation::BOOL, bquickformat: super::super::Foundation::BOOL, benablecompression: super::super::Foundation::BOOL, ppasync: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsVolumeMF3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsVolumeMF3, IVdsVolumeMF3_Vtbl, 0x6788faf9_214e_4b85_ba59_266953616e09); +::windows_core::imp::interface_hierarchy!(IVdsVolumeMF3, ::windows_core::IUnknown); impl IVdsVolumeMF3 { pub unsafe fn QueryVolumeGuidPathnames(&self, pwszpatharray: *mut *mut ::windows_core::PWSTR, pulnumberofpaths: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).QueryVolumeGuidPathnames)(::windows_core::Interface::as_raw(self), pwszpatharray, pulnumberofpaths).ok() @@ -2591,13 +2030,6 @@ impl IVdsVolumeMF3 { (::windows_core::Interface::vtable(self).OfflineVolume)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IVdsVolumeMF3, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsVolumeMF3 { - type Vtable = IVdsVolumeMF3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsVolumeMF3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6788faf9_214e_4b85_ba59_266953616e09); -} #[repr(C)] #[doc(hidden)] pub struct IVdsVolumeMF3_Vtbl { @@ -2606,30 +2038,21 @@ pub struct IVdsVolumeMF3_Vtbl { pub FormatEx2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwszfilesystemtypename: ::windows_core::PCWSTR, usfilesystemrevision: u16, uldesiredunitallocationsize: u32, pwszlabel: ::windows_core::PCWSTR, options: u32, ppasync: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub OfflineVolume: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsVolumeOnline(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsVolumeOnline, IVdsVolumeOnline_Vtbl, 0x1be2275a_b315_4f70_9e44_879b3a2a53f2); +::windows_core::imp::interface_hierarchy!(IVdsVolumeOnline, ::windows_core::IUnknown); impl IVdsVolumeOnline { pub unsafe fn Online(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Online)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IVdsVolumeOnline, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsVolumeOnline { - type Vtable = IVdsVolumeOnline_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsVolumeOnline { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1be2275a_b315_4f70_9e44_879b3a2a53f2); -} #[repr(C)] #[doc(hidden)] pub struct IVdsVolumeOnline_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Online: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsVolumePlex(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsVolumePlex, IVdsVolumePlex_Vtbl, 0x4daa0135_e1d1_40f1_aaa5_3cc1e53221c3); +::windows_core::imp::interface_hierarchy!(IVdsVolumePlex, ::windows_core::IUnknown); impl IVdsVolumePlex { pub unsafe fn GetProperties(&self, pplexproperties: *mut VDS_VOLUME_PLEX_PROP) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetProperties)(::windows_core::Interface::as_raw(self), pplexproperties).ok() @@ -2646,13 +2069,6 @@ impl IVdsVolumePlex { (::windows_core::Interface::vtable(self).Repair)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pinputdiskarray.as_ptr()), pinputdiskarray.len().try_into().unwrap(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IVdsVolumePlex, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsVolumePlex { - type Vtable = IVdsVolumePlex_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsVolumePlex { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4daa0135_e1d1_40f1_aaa5_3cc1e53221c3); -} #[repr(C)] #[doc(hidden)] pub struct IVdsVolumePlex_Vtbl { @@ -2662,9 +2078,8 @@ pub struct IVdsVolumePlex_Vtbl { pub QueryExtents: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppextentarray: *mut *mut VDS_DISK_EXTENT, plnumberofextents: *mut i32) -> ::windows_core::HRESULT, pub Repair: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinputdiskarray: *const VDS_INPUT_DISK, lnumberofdisks: i32, ppasync: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVdsVolumeShrink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVdsVolumeShrink, IVdsVolumeShrink_Vtbl, 0xd68168c9_82a2_4f85_b6e9_74707c49a58f); +::windows_core::imp::interface_hierarchy!(IVdsVolumeShrink, ::windows_core::IUnknown); impl IVdsVolumeShrink { pub unsafe fn QueryMaxReclaimableBytes(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2675,13 +2090,6 @@ impl IVdsVolumeShrink { (::windows_core::Interface::vtable(self).Shrink)(::windows_core::Interface::as_raw(self), ulldesirednumberofreclaimablebytes, ullminnumberofreclaimablebytes, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IVdsVolumeShrink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVdsVolumeShrink { - type Vtable = IVdsVolumeShrink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVdsVolumeShrink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd68168c9_82a2_4f85_b6e9_74707c49a58f); -} #[repr(C)] #[doc(hidden)] pub struct IVdsVolumeShrink_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Storage/Vss/impl.rs b/crates/libs/windows/src/Windows/Win32/Storage/Vss/impl.rs index 0daeb19770..840e428c82 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/Vss/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/Vss/impl.rs @@ -42,7 +42,7 @@ impl IVssAdmin_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVssAdminEx_Impl: Sized + IVssAdmin_Impl { @@ -88,7 +88,7 @@ impl IVssAdminEx_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IVssAsync_Impl: Sized { @@ -122,7 +122,7 @@ impl IVssAsync_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVssComponent_Impl: Sized { @@ -413,7 +413,7 @@ impl IVssComponent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVssComponentEx_Impl: Sized + IVssComponent_Impl { @@ -499,7 +499,7 @@ impl IVssComponentEx_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IVssComponentEx2_Impl: Sized + IVssComponentEx_Impl { @@ -526,7 +526,7 @@ impl IVssComponentEx2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IVssCreateExpressWriterMetadata_Impl: Sized { @@ -595,7 +595,7 @@ impl IVssCreateExpressWriterMetadata_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Data_Xml_MsXml\"`, `\"Win32_System_Com\"`"] @@ -791,7 +791,7 @@ impl IVssDifferentialSoftwareSnapshotMgmt_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVssDifferentialSoftwareSnapshotMgmt2_Impl: Sized + IVssDifferentialSoftwareSnapshotMgmt_Impl { @@ -838,7 +838,7 @@ impl IVssDifferentialSoftwareSnapshotMgmt2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IVssDifferentialSoftwareSnapshotMgmt3_Impl: Sized + IVssDifferentialSoftwareSnapshotMgmt2_Impl { @@ -886,7 +886,7 @@ impl IVssDifferentialSoftwareSnapshotMgmt3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IVssEnumMgmtObject_Impl: Sized { @@ -927,7 +927,7 @@ impl IVssEnumMgmtObject_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVssEnumObject_Impl: Sized { @@ -968,7 +968,7 @@ impl IVssEnumObject_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVssExpressWriter_Impl: Sized { @@ -1015,7 +1015,7 @@ impl IVssExpressWriter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1100,7 +1100,7 @@ impl IVssFileShareSnapshotProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_VirtualDiskService\"`"] @@ -1159,7 +1159,7 @@ impl IVssHardwareSnapshotProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_VirtualDiskService\"`"] @@ -1216,7 +1216,7 @@ impl IVssHardwareSnapshotProviderEx_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IVssProviderCreateSnapshotSet_Impl: Sized { @@ -1278,7 +1278,7 @@ impl IVssProviderCreateSnapshotSet_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVssProviderNotifications_Impl: Sized { @@ -1305,7 +1305,7 @@ impl IVssProviderNotifications_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVssSnapshotMgmt_Impl: Sized { @@ -1357,7 +1357,7 @@ impl IVssSnapshotMgmt_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVssSnapshotMgmt2_Impl: Sized { @@ -1380,7 +1380,7 @@ impl IVssSnapshotMgmt2_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetMinDiffAreaSize: GetMinDiffAreaSize:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1485,7 +1485,7 @@ impl IVssSoftwareSnapshotProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVssWMDependency_Impl: Sized { @@ -1519,7 +1519,7 @@ impl IVssWMDependency_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVssWMFiledesc_Impl: Sized { @@ -1597,7 +1597,7 @@ impl IVssWMFiledesc_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVssWriterComponents_Impl: Sized { 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 59f1ca29e4..56c4d69a41 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/Vss/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/Vss/mod.rs @@ -4,9 +4,8 @@ pub unsafe fn CreateVssExpressWriterInternal() -> ::windows_core::Result ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).RegisterProvider)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pproviderid), ::core::mem::transmute(classid), pwszprovidername, eprovidertype, pwszproviderversion, ::core::mem::transmute(providerversionid)).ok() @@ -22,13 +21,6 @@ impl IVssAdmin { (::windows_core::Interface::vtable(self).AbortAllSnapshotsInProgress)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IVssAdmin, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVssAdmin { - type Vtable = IVssAdmin_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVssAdmin { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x77ed5996_2f63_11d3_8a39_00c04f72d8e3); -} #[repr(C)] #[doc(hidden)] pub struct IVssAdmin_Vtbl { @@ -38,9 +30,8 @@ pub struct IVssAdmin_Vtbl { pub QueryProviders: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub AbortAllSnapshotsInProgress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVssAdminEx(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVssAdminEx, IVssAdminEx_Vtbl, 0x7858a9f8_b1fa_41a6_964f_b9b36b8cd8d8); +::windows_core::imp::interface_hierarchy!(IVssAdminEx, ::windows_core::IUnknown, IVssAdmin); impl IVssAdminEx { pub unsafe fn RegisterProvider(&self, pproviderid: ::windows_core::GUID, classid: ::windows_core::GUID, pwszprovidername: *const u16, eprovidertype: VSS_PROVIDER_TYPE, pwszproviderversion: *const u16, providerversionid: ::windows_core::GUID) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.RegisterProvider)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pproviderid), ::core::mem::transmute(classid), pwszprovidername, eprovidertype, pwszproviderversion, ::core::mem::transmute(providerversionid)).ok() @@ -67,13 +58,6 @@ impl IVssAdminEx { (::windows_core::Interface::vtable(self).SetProviderContext)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(providerid), lcontext).ok() } } -::windows_core::imp::interface_hierarchy!(IVssAdminEx, ::windows_core::IUnknown, IVssAdmin); -unsafe impl ::windows_core::Interface for IVssAdminEx { - type Vtable = IVssAdminEx_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVssAdminEx { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7858a9f8_b1fa_41a6_964f_b9b36b8cd8d8); -} #[repr(C)] #[doc(hidden)] pub struct IVssAdminEx_Vtbl { @@ -82,9 +66,8 @@ pub struct IVssAdminEx_Vtbl { pub GetProviderContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, providerid: ::windows_core::GUID, plcontext: *mut i32) -> ::windows_core::HRESULT, pub SetProviderContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, providerid: ::windows_core::GUID, lcontext: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVssAsync(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVssAsync, IVssAsync_Vtbl, 0x507c37b4_cf5b_4e95_b0af_14eb9767467e); +::windows_core::imp::interface_hierarchy!(IVssAsync, ::windows_core::IUnknown); impl IVssAsync { pub unsafe fn Cancel(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Cancel)(::windows_core::Interface::as_raw(self)).ok() @@ -96,13 +79,6 @@ impl IVssAsync { (::windows_core::Interface::vtable(self).QueryStatus)(::windows_core::Interface::as_raw(self), phrresult, preserved).ok() } } -::windows_core::imp::interface_hierarchy!(IVssAsync, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVssAsync { - type Vtable = IVssAsync_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVssAsync { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x507c37b4_cf5b_4e95_b0af_14eb9767467e); -} #[repr(C)] #[doc(hidden)] pub struct IVssAsync_Vtbl { @@ -111,9 +87,8 @@ pub struct IVssAsync_Vtbl { pub Wait: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwmilliseconds: u32) -> ::windows_core::HRESULT, pub QueryStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phrresult: *mut ::windows_core::HRESULT, preserved: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVssComponent(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVssComponent, IVssComponent_Vtbl, 0xd2c72c96_c121_4518_b627_e5a93d010ead); +::windows_core::imp::interface_hierarchy!(IVssComponent, ::windows_core::IUnknown); impl IVssComponent { pub unsafe fn GetLogicalPath(&self, pbstrpath: *mut ::windows_core::BSTR) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetLogicalPath)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pbstrpath)).ok() @@ -272,13 +247,6 @@ impl IVssComponent { (::windows_core::Interface::vtable(self).GetDifferencedFile)(::windows_core::Interface::as_raw(self), idifferencedfile, ::core::mem::transmute(pbstrpath), ::core::mem::transmute(pbstrfilespec), pbrecursive, ::core::mem::transmute(pbstrlsnstring), pftlastmodifytime).ok() } } -::windows_core::imp::interface_hierarchy!(IVssComponent, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVssComponent { - type Vtable = IVssComponent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVssComponent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd2c72c96_c121_4518_b627_e5a93d010ead); -} #[repr(C)] #[doc(hidden)] pub struct IVssComponent_Vtbl { @@ -322,9 +290,8 @@ pub struct IVssComponent_Vtbl { pub GetDifferencedFilesCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcdifferencedfiles: *mut u32) -> ::windows_core::HRESULT, pub GetDifferencedFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, idifferencedfile: u32, pbstrpath: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>, pbstrfilespec: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>, pbrecursive: *mut super::super::Foundation::BOOL, pbstrlsnstring: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>, pftlastmodifytime: *mut super::super::Foundation::FILETIME) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVssComponentEx(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVssComponentEx, IVssComponentEx_Vtbl, 0x156c8b5e_f131_4bd7_9c97_d1923be7e1fa); +::windows_core::imp::interface_hierarchy!(IVssComponentEx, ::windows_core::IUnknown, IVssComponent); impl IVssComponentEx { pub unsafe fn GetLogicalPath(&self, pbstrpath: *mut ::windows_core::BSTR) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.GetLogicalPath)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pbstrpath)).ok() @@ -514,13 +481,6 @@ impl IVssComponentEx { (::windows_core::Interface::vtable(self).GetRestoreName)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IVssComponentEx, ::windows_core::IUnknown, IVssComponent); -unsafe impl ::windows_core::Interface for IVssComponentEx { - type Vtable = IVssComponentEx_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVssComponentEx { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x156c8b5e_f131_4bd7_9c97_d1923be7e1fa); -} #[repr(C)] #[doc(hidden)] pub struct IVssComponentEx_Vtbl { @@ -533,9 +493,8 @@ pub struct IVssComponentEx_Vtbl { pub GetRollForward: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prolltype: *mut VSS_ROLLFORWARD_TYPE, pbstrpoint: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub GetRestoreName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVssComponentEx2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVssComponentEx2, IVssComponentEx2_Vtbl, 0x3b5be0f2_07a9_4e4b_bdd3_cfdc8e2c0d2d); +::windows_core::imp::interface_hierarchy!(IVssComponentEx2, ::windows_core::IUnknown, IVssComponent, IVssComponentEx); impl IVssComponentEx2 { pub unsafe fn GetLogicalPath(&self, pbstrpath: *mut ::windows_core::BSTR) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.GetLogicalPath)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pbstrpath)).ok() @@ -734,13 +693,6 @@ impl IVssComponentEx2 { (::windows_core::Interface::vtable(self).GetFailure)(::windows_core::Interface::as_raw(self), phr, phrapplication, ::core::mem::transmute(pbstrapplicationmessage), pdwreserved).ok() } } -::windows_core::imp::interface_hierarchy!(IVssComponentEx2, ::windows_core::IUnknown, IVssComponent, IVssComponentEx); -unsafe impl ::windows_core::Interface for IVssComponentEx2 { - type Vtable = IVssComponentEx2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVssComponentEx2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3b5be0f2_07a9_4e4b_bdd3_cfdc8e2c0d2d); -} #[repr(C)] #[doc(hidden)] pub struct IVssComponentEx2_Vtbl { @@ -748,9 +700,8 @@ pub struct IVssComponentEx2_Vtbl { pub SetFailure: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hr: ::windows_core::HRESULT, hrapplication: ::windows_core::HRESULT, wszapplicationmessage: ::windows_core::PCWSTR, dwreserved: u32) -> ::windows_core::HRESULT, pub GetFailure: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phr: *mut ::windows_core::HRESULT, phrapplication: *mut ::windows_core::HRESULT, pbstrapplicationmessage: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>, pdwreserved: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVssCreateExpressWriterMetadata(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVssCreateExpressWriterMetadata, IVssCreateExpressWriterMetadata_Vtbl, 0x9c772e77_b26e_427f_92dd_c996f41ea5e3); +::windows_core::imp::interface_hierarchy!(IVssCreateExpressWriterMetadata, ::windows_core::IUnknown); impl IVssCreateExpressWriterMetadata { pub unsafe fn AddExcludeFiles(&self, wszpath: P0, wszfilespec: P1, brecursive: u8) -> ::windows_core::Result<()> where @@ -801,13 +752,6 @@ impl IVssCreateExpressWriterMetadata { (::windows_core::Interface::vtable(self).SaveAsXML)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IVssCreateExpressWriterMetadata, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVssCreateExpressWriterMetadata { - type Vtable = IVssCreateExpressWriterMetadata_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVssCreateExpressWriterMetadata { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9c772e77_b26e_427f_92dd_c996f41ea5e3); -} #[repr(C)] #[doc(hidden)] pub struct IVssCreateExpressWriterMetadata_Vtbl { @@ -820,9 +764,7 @@ pub struct IVssCreateExpressWriterMetadata_Vtbl { pub SetBackupSchema: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwschemamask: u32) -> ::windows_core::HRESULT, pub SaveAsXML: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrxml: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVssCreateWriterMetadata(::std::ptr::NonNull<::std::ffi::c_void>); +::windows_core::imp::interface!(IVssCreateWriterMetadata, IVssCreateWriterMetadata_Vtbl); impl IVssCreateWriterMetadata { pub unsafe fn AddIncludeFiles(&self, wszpath: P0, wszfilespec: P1, brecursive: u8, wszalternatelocation: P2) -> ::windows_core::Result<()> where @@ -912,9 +854,6 @@ impl IVssCreateWriterMetadata { (::windows_core::Interface::vtable(self).SaveAsXML)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pbstrxml)).ok() } } -unsafe impl ::windows_core::Interface for IVssCreateWriterMetadata { - type Vtable = IVssCreateWriterMetadata_Vtbl; -} #[repr(C)] #[doc(hidden)] pub struct IVssCreateWriterMetadata_Vtbl { @@ -934,9 +873,8 @@ pub struct IVssCreateWriterMetadata_Vtbl { GetDocument: usize, pub SaveAsXML: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrxml: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVssDifferentialSoftwareSnapshotMgmt(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVssDifferentialSoftwareSnapshotMgmt, IVssDifferentialSoftwareSnapshotMgmt_Vtbl, 0x214a0f28_b737_4026_b847_4f9e37d79529); +::windows_core::imp::interface_hierarchy!(IVssDifferentialSoftwareSnapshotMgmt, ::windows_core::IUnknown); impl IVssDifferentialSoftwareSnapshotMgmt { pub unsafe fn AddDiffArea(&self, pwszvolumename: *const u16, pwszdiffareavolumename: *const u16, llmaximumdiffspace: i64) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).AddDiffArea)(::windows_core::Interface::as_raw(self), pwszvolumename, pwszdiffareavolumename, llmaximumdiffspace).ok() @@ -961,13 +899,6 @@ impl IVssDifferentialSoftwareSnapshotMgmt { (::windows_core::Interface::vtable(self).QueryDiffAreasForSnapshot)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(snapshotid), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IVssDifferentialSoftwareSnapshotMgmt, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVssDifferentialSoftwareSnapshotMgmt { - type Vtable = IVssDifferentialSoftwareSnapshotMgmt_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVssDifferentialSoftwareSnapshotMgmt { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x214a0f28_b737_4026_b847_4f9e37d79529); -} #[repr(C)] #[doc(hidden)] pub struct IVssDifferentialSoftwareSnapshotMgmt_Vtbl { @@ -979,9 +910,8 @@ pub struct IVssDifferentialSoftwareSnapshotMgmt_Vtbl { pub QueryDiffAreasOnVolume: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwszvolumename: *const u16, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub QueryDiffAreasForSnapshot: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, snapshotid: ::windows_core::GUID, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVssDifferentialSoftwareSnapshotMgmt2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVssDifferentialSoftwareSnapshotMgmt2, IVssDifferentialSoftwareSnapshotMgmt2_Vtbl, 0x949d7353_675f_4275_8969_f044c6277815); +::windows_core::imp::interface_hierarchy!(IVssDifferentialSoftwareSnapshotMgmt2, ::windows_core::IUnknown, IVssDifferentialSoftwareSnapshotMgmt); impl IVssDifferentialSoftwareSnapshotMgmt2 { pub unsafe fn AddDiffArea(&self, pwszvolumename: *const u16, pwszdiffareavolumename: *const u16, llmaximumdiffspace: i64) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.AddDiffArea)(::windows_core::Interface::as_raw(self), pwszvolumename, pwszdiffareavolumename, llmaximumdiffspace).ok() @@ -1022,13 +952,6 @@ impl IVssDifferentialSoftwareSnapshotMgmt2 { (::windows_core::Interface::vtable(self).SetSnapshotPriority)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(idsnapshot), priority).ok() } } -::windows_core::imp::interface_hierarchy!(IVssDifferentialSoftwareSnapshotMgmt2, ::windows_core::IUnknown, IVssDifferentialSoftwareSnapshotMgmt); -unsafe impl ::windows_core::Interface for IVssDifferentialSoftwareSnapshotMgmt2 { - type Vtable = IVssDifferentialSoftwareSnapshotMgmt2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVssDifferentialSoftwareSnapshotMgmt2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x949d7353_675f_4275_8969_f044c6277815); -} #[repr(C)] #[doc(hidden)] pub struct IVssDifferentialSoftwareSnapshotMgmt2_Vtbl { @@ -1038,9 +961,8 @@ pub struct IVssDifferentialSoftwareSnapshotMgmt2_Vtbl { pub QueryMigrationStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwszvolumename: *const u16, pwszdiffareavolumename: *const u16, ppasync: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetSnapshotPriority: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, idsnapshot: ::windows_core::GUID, priority: u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVssDifferentialSoftwareSnapshotMgmt3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVssDifferentialSoftwareSnapshotMgmt3, IVssDifferentialSoftwareSnapshotMgmt3_Vtbl, 0x383f7e71_a4c5_401f_b27f_f826289f8458); +::windows_core::imp::interface_hierarchy!(IVssDifferentialSoftwareSnapshotMgmt3, ::windows_core::IUnknown, IVssDifferentialSoftwareSnapshotMgmt, IVssDifferentialSoftwareSnapshotMgmt2); impl IVssDifferentialSoftwareSnapshotMgmt3 { pub unsafe fn AddDiffArea(&self, pwszvolumename: *const u16, pwszdiffareavolumename: *const u16, llmaximumdiffspace: i64) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.AddDiffArea)(::windows_core::Interface::as_raw(self), pwszvolumename, pwszdiffareavolumename, llmaximumdiffspace).ok() @@ -1096,13 +1018,6 @@ impl IVssDifferentialSoftwareSnapshotMgmt3 { (::windows_core::Interface::vtable(self).QuerySnapshotDeltaBitmap)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(idsnapshotolder), ::core::mem::transmute(idsnapshotyounger), pcblocksizeperbit, pcbitmaplength, ppbbitmap).ok() } } -::windows_core::imp::interface_hierarchy!(IVssDifferentialSoftwareSnapshotMgmt3, ::windows_core::IUnknown, IVssDifferentialSoftwareSnapshotMgmt, IVssDifferentialSoftwareSnapshotMgmt2); -unsafe impl ::windows_core::Interface for IVssDifferentialSoftwareSnapshotMgmt3 { - type Vtable = IVssDifferentialSoftwareSnapshotMgmt3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVssDifferentialSoftwareSnapshotMgmt3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x383f7e71_a4c5_401f_b27f_f826289f8458); -} #[repr(C)] #[doc(hidden)] pub struct IVssDifferentialSoftwareSnapshotMgmt3_Vtbl { @@ -1113,9 +1028,8 @@ pub struct IVssDifferentialSoftwareSnapshotMgmt3_Vtbl { pub DeleteUnusedDiffAreas: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwszdiffareavolumename: *const u16) -> ::windows_core::HRESULT, pub QuerySnapshotDeltaBitmap: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, idsnapshotolder: ::windows_core::GUID, idsnapshotyounger: ::windows_core::GUID, pcblocksizeperbit: *mut u32, pcbitmaplength: *mut u32, ppbbitmap: *mut *mut u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVssEnumMgmtObject(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVssEnumMgmtObject, IVssEnumMgmtObject_Vtbl, 0x01954e6b_9254_4e6e_808c_c9e05d007696); +::windows_core::imp::interface_hierarchy!(IVssEnumMgmtObject, ::windows_core::IUnknown); impl IVssEnumMgmtObject { pub unsafe fn Next(&self, rgelt: &mut [VSS_MGMT_OBJECT_PROP], pceltfetched: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), ::core::mem::transmute(rgelt.as_ptr()), pceltfetched).ok() @@ -1130,13 +1044,6 @@ impl IVssEnumMgmtObject { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(ppenum)).ok() } } -::windows_core::imp::interface_hierarchy!(IVssEnumMgmtObject, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVssEnumMgmtObject { - type Vtable = IVssEnumMgmtObject_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVssEnumMgmtObject { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x01954e6b_9254_4e6e_808c_c9e05d007696); -} #[repr(C)] #[doc(hidden)] pub struct IVssEnumMgmtObject_Vtbl { @@ -1146,9 +1053,8 @@ pub struct IVssEnumMgmtObject_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVssEnumObject(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVssEnumObject, IVssEnumObject_Vtbl, 0xae1c7110_2f60_11d3_8a39_00c04f72d8e3); +::windows_core::imp::interface_hierarchy!(IVssEnumObject, ::windows_core::IUnknown); impl IVssEnumObject { pub unsafe fn Next(&self, rgelt: &mut [VSS_OBJECT_PROP], pceltfetched: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), ::core::mem::transmute(rgelt.as_ptr()), pceltfetched).ok() @@ -1163,13 +1069,6 @@ impl IVssEnumObject { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(ppenum)).ok() } } -::windows_core::imp::interface_hierarchy!(IVssEnumObject, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVssEnumObject { - type Vtable = IVssEnumObject_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVssEnumObject { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xae1c7110_2f60_11d3_8a39_00c04f72d8e3); -} #[repr(C)] #[doc(hidden)] pub struct IVssEnumObject_Vtbl { @@ -1179,9 +1078,8 @@ pub struct IVssEnumObject_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVssExpressWriter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVssExpressWriter, IVssExpressWriter_Vtbl, 0xe33affdc_59c7_47b1_97d5_4266598f6235); +::windows_core::imp::interface_hierarchy!(IVssExpressWriter, ::windows_core::IUnknown); 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 @@ -1203,13 +1101,6 @@ impl IVssExpressWriter { (::windows_core::Interface::vtable(self).Unregister)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(writerid)).ok() } } -::windows_core::imp::interface_hierarchy!(IVssExpressWriter, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVssExpressWriter { - type Vtable = IVssExpressWriter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVssExpressWriter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe33affdc_59c7_47b1_97d5_4266598f6235); -} #[repr(C)] #[doc(hidden)] pub struct IVssExpressWriter_Vtbl { @@ -1219,9 +1110,8 @@ pub struct IVssExpressWriter_Vtbl { pub Register: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Unregister: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, writerid: ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVssFileShareSnapshotProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVssFileShareSnapshotProvider, IVssFileShareSnapshotProvider_Vtbl, 0xc8636060_7c2e_11df_8c4a_0800200c9a66); +::windows_core::imp::interface_hierarchy!(IVssFileShareSnapshotProvider, ::windows_core::IUnknown); impl IVssFileShareSnapshotProvider { pub unsafe fn SetContext(&self, lcontext: i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetContext)(::windows_core::Interface::as_raw(self), lcontext).ok() @@ -1255,13 +1145,6 @@ impl IVssFileShareSnapshotProvider { (::windows_core::Interface::vtable(self).SetSnapshotProperty)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(snapshotid), esnapshotpropertyid, ::core::mem::transmute(vproperty)).ok() } } -::windows_core::imp::interface_hierarchy!(IVssFileShareSnapshotProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVssFileShareSnapshotProvider { - type Vtable = IVssFileShareSnapshotProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVssFileShareSnapshotProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc8636060_7c2e_11df_8c4a_0800200c9a66); -} #[repr(C)] #[doc(hidden)] pub struct IVssFileShareSnapshotProvider_Vtbl { @@ -1278,9 +1161,8 @@ pub struct IVssFileShareSnapshotProvider_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] SetSnapshotProperty: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVssHardwareSnapshotProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVssHardwareSnapshotProvider, IVssHardwareSnapshotProvider_Vtbl, 0x9593a157_44e9_4344_bbeb_44fbf9b06b10); +::windows_core::imp::interface_hierarchy!(IVssHardwareSnapshotProvider, ::windows_core::IUnknown); impl IVssHardwareSnapshotProvider { #[doc = "Required features: `\"Win32_Storage_VirtualDiskService\"`"] #[cfg(feature = "Win32_Storage_VirtualDiskService")] @@ -1313,13 +1195,6 @@ impl IVssHardwareSnapshotProvider { (::windows_core::Interface::vtable(self).OnLunEmpty)(::windows_core::Interface::as_raw(self), wszdevicename, pinformation).ok() } } -::windows_core::imp::interface_hierarchy!(IVssHardwareSnapshotProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVssHardwareSnapshotProvider { - type Vtable = IVssHardwareSnapshotProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVssHardwareSnapshotProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9593a157_44e9_4344_bbeb_44fbf9b06b10); -} #[repr(C)] #[doc(hidden)] pub struct IVssHardwareSnapshotProvider_Vtbl { @@ -1349,9 +1224,8 @@ pub struct IVssHardwareSnapshotProvider_Vtbl { #[cfg(not(feature = "Win32_Storage_VirtualDiskService"))] OnLunEmpty: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVssHardwareSnapshotProviderEx(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVssHardwareSnapshotProviderEx, IVssHardwareSnapshotProviderEx_Vtbl, 0x7f5ba925_cdb1_4d11_a71f_339eb7e709fd); +::windows_core::imp::interface_hierarchy!(IVssHardwareSnapshotProviderEx, ::windows_core::IUnknown, IVssHardwareSnapshotProvider); impl IVssHardwareSnapshotProviderEx { #[doc = "Required features: `\"Win32_Storage_VirtualDiskService\"`"] #[cfg(feature = "Win32_Storage_VirtualDiskService")] @@ -1404,13 +1278,6 @@ impl IVssHardwareSnapshotProviderEx { (::windows_core::Interface::vtable(self).OnReuseLuns)(::windows_core::Interface::as_raw(self), psnapshotluns, poriginalluns, dwcount).ok() } } -::windows_core::imp::interface_hierarchy!(IVssHardwareSnapshotProviderEx, ::windows_core::IUnknown, IVssHardwareSnapshotProvider); -unsafe impl ::windows_core::Interface for IVssHardwareSnapshotProviderEx { - type Vtable = IVssHardwareSnapshotProviderEx_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVssHardwareSnapshotProviderEx { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7f5ba925_cdb1_4d11_a71f_339eb7e709fd); -} #[repr(C)] #[doc(hidden)] pub struct IVssHardwareSnapshotProviderEx_Vtbl { @@ -1429,9 +1296,8 @@ pub struct IVssHardwareSnapshotProviderEx_Vtbl { #[cfg(not(feature = "Win32_Storage_VirtualDiskService"))] OnReuseLuns: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVssProviderCreateSnapshotSet(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVssProviderCreateSnapshotSet, IVssProviderCreateSnapshotSet_Vtbl, 0x5f894e5b_1e39_4778_8e23_9abad9f0e08c); +::windows_core::imp::interface_hierarchy!(IVssProviderCreateSnapshotSet, ::windows_core::IUnknown); impl IVssProviderCreateSnapshotSet { pub unsafe fn EndPrepareSnapshots(&self, snapshotsetid: ::windows_core::GUID) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).EndPrepareSnapshots)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(snapshotsetid)).ok() @@ -1455,13 +1321,6 @@ impl IVssProviderCreateSnapshotSet { (::windows_core::Interface::vtable(self).AbortSnapshots)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(snapshotsetid)).ok() } } -::windows_core::imp::interface_hierarchy!(IVssProviderCreateSnapshotSet, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVssProviderCreateSnapshotSet { - type Vtable = IVssProviderCreateSnapshotSet_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVssProviderCreateSnapshotSet { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5f894e5b_1e39_4778_8e23_9abad9f0e08c); -} #[repr(C)] #[doc(hidden)] pub struct IVssProviderCreateSnapshotSet_Vtbl { @@ -1474,9 +1333,8 @@ pub struct IVssProviderCreateSnapshotSet_Vtbl { pub PostFinalCommitSnapshots: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, snapshotsetid: ::windows_core::GUID) -> ::windows_core::HRESULT, pub AbortSnapshots: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, snapshotsetid: ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVssProviderNotifications(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVssProviderNotifications, IVssProviderNotifications_Vtbl, 0xe561901f_03a5_4afe_86d0_72baeece7004); +::windows_core::imp::interface_hierarchy!(IVssProviderNotifications, ::windows_core::IUnknown); impl IVssProviderNotifications { pub unsafe fn OnLoad(&self, pcallback: P0) -> ::windows_core::Result<()> where @@ -1491,13 +1349,6 @@ impl IVssProviderNotifications { (::windows_core::Interface::vtable(self).OnUnload)(::windows_core::Interface::as_raw(self), bforceunload.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IVssProviderNotifications, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVssProviderNotifications { - type Vtable = IVssProviderNotifications_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVssProviderNotifications { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe561901f_03a5_4afe_86d0_72baeece7004); -} #[repr(C)] #[doc(hidden)] pub struct IVssProviderNotifications_Vtbl { @@ -1505,9 +1356,8 @@ pub struct IVssProviderNotifications_Vtbl { pub OnLoad: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcallback: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub OnUnload: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bforceunload: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVssSnapshotMgmt(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVssSnapshotMgmt, IVssSnapshotMgmt_Vtbl, 0xfa7df749_66e7_4986_a27f_e2f04ae53772); +::windows_core::imp::interface_hierarchy!(IVssSnapshotMgmt, ::windows_core::IUnknown); impl IVssSnapshotMgmt { pub unsafe fn GetProviderMgmtInterface(&self, providerid: ::windows_core::GUID, interfaceid: *const ::windows_core::GUID) -> ::windows_core::Result<::windows_core::IUnknown> { let mut result__ = ::std::mem::zeroed(); @@ -1522,13 +1372,6 @@ impl IVssSnapshotMgmt { (::windows_core::Interface::vtable(self).QuerySnapshotsByVolume)(::windows_core::Interface::as_raw(self), pwszvolumename, ::core::mem::transmute(providerid), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IVssSnapshotMgmt, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVssSnapshotMgmt { - type Vtable = IVssSnapshotMgmt_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVssSnapshotMgmt { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfa7df749_66e7_4986_a27f_e2f04ae53772); -} #[repr(C)] #[doc(hidden)] pub struct IVssSnapshotMgmt_Vtbl { @@ -1537,31 +1380,22 @@ pub struct IVssSnapshotMgmt_Vtbl { pub QueryVolumesSupportedForSnapshots: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, providerid: ::windows_core::GUID, lcontext: i32, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub QuerySnapshotsByVolume: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwszvolumename: *const u16, providerid: ::windows_core::GUID, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVssSnapshotMgmt2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVssSnapshotMgmt2, IVssSnapshotMgmt2_Vtbl, 0x0f61ec39_fe82_45f2_a3f0_768b5d427102); +::windows_core::imp::interface_hierarchy!(IVssSnapshotMgmt2, ::windows_core::IUnknown); impl IVssSnapshotMgmt2 { pub unsafe fn GetMinDiffAreaSize(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetMinDiffAreaSize)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IVssSnapshotMgmt2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVssSnapshotMgmt2 { - type Vtable = IVssSnapshotMgmt2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVssSnapshotMgmt2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0f61ec39_fe82_45f2_a3f0_768b5d427102); -} #[repr(C)] #[doc(hidden)] pub struct IVssSnapshotMgmt2_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetMinDiffAreaSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pllmindiffareasize: *mut i64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVssSoftwareSnapshotProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVssSoftwareSnapshotProvider, IVssSoftwareSnapshotProvider_Vtbl, 0x609e123e_2c5a_44d3_8f01_0b1d9a47d1ff); +::windows_core::imp::interface_hierarchy!(IVssSoftwareSnapshotProvider, ::windows_core::IUnknown); impl IVssSoftwareSnapshotProvider { pub unsafe fn SetContext(&self, lcontext: i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetContext)(::windows_core::Interface::as_raw(self), lcontext).ok() @@ -1602,13 +1436,6 @@ impl IVssSoftwareSnapshotProvider { (::windows_core::Interface::vtable(self).QueryRevertStatus)(::windows_core::Interface::as_raw(self), pwszvolume, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IVssSoftwareSnapshotProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVssSoftwareSnapshotProvider { - type Vtable = IVssSoftwareSnapshotProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVssSoftwareSnapshotProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x609e123e_2c5a_44d3_8f01_0b1d9a47d1ff); -} #[repr(C)] #[doc(hidden)] pub struct IVssSoftwareSnapshotProvider_Vtbl { @@ -1627,9 +1454,8 @@ pub struct IVssSoftwareSnapshotProvider_Vtbl { pub RevertToSnapshot: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, snapshotid: ::windows_core::GUID) -> ::windows_core::HRESULT, pub QueryRevertStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwszvolume: *const u16, ppasync: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVssWMDependency(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVssWMDependency, IVssWMDependency_Vtbl, 0); +::windows_core::imp::interface_hierarchy!(IVssWMDependency, ::windows_core::IUnknown); impl IVssWMDependency { pub unsafe fn GetWriterId(&self, pwriterid: *mut ::windows_core::GUID) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetWriterId)(::windows_core::Interface::as_raw(self), pwriterid).ok() @@ -1641,13 +1467,6 @@ impl IVssWMDependency { (::windows_core::Interface::vtable(self).GetComponentName)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pbstrcomponentname)).ok() } } -::windows_core::imp::interface_hierarchy!(IVssWMDependency, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVssWMDependency { - type Vtable = IVssWMDependency_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVssWMDependency { - const IID: ::windows_core::GUID = ::windows_core::GUID::zeroed(); -} #[repr(C)] #[doc(hidden)] pub struct IVssWMDependency_Vtbl { @@ -1656,9 +1475,8 @@ pub struct IVssWMDependency_Vtbl { pub GetLogicalPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrlogicalpath: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub GetComponentName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcomponentname: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVssWMFiledesc(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVssWMFiledesc, IVssWMFiledesc_Vtbl, 0); +::windows_core::imp::interface_hierarchy!(IVssWMFiledesc, ::windows_core::IUnknown); impl IVssWMFiledesc { pub unsafe fn GetPath(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -1681,13 +1499,6 @@ impl IVssWMFiledesc { (::windows_core::Interface::vtable(self).GetBackupTypeMask)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IVssWMFiledesc, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVssWMFiledesc { - type Vtable = IVssWMFiledesc_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVssWMFiledesc { - const IID: ::windows_core::GUID = ::windows_core::GUID::zeroed(); -} #[repr(C)] #[doc(hidden)] pub struct IVssWMFiledesc_Vtbl { @@ -1698,9 +1509,7 @@ pub struct IVssWMFiledesc_Vtbl { pub GetAlternateLocation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstralternatelocation: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub GetBackupTypeMask: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwtypemask: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVssWriterComponents(::std::ptr::NonNull<::std::ffi::c_void>); +::windows_core::imp::interface!(IVssWriterComponents, IVssWriterComponents_Vtbl); impl IVssWriterComponents { pub unsafe fn GetComponentCount(&self, pccomponents: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetComponentCount)(::windows_core::Interface::as_raw(self), pccomponents).ok() @@ -1713,9 +1522,6 @@ impl IVssWriterComponents { (::windows_core::Interface::vtable(self).GetComponent)(::windows_core::Interface::as_raw(self), icomponent, &mut result__).from_abi(result__) } } -unsafe impl ::windows_core::Interface for IVssWriterComponents { - type Vtable = IVssWriterComponents_Vtbl; -} #[repr(C)] #[doc(hidden)] pub struct IVssWriterComponents_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Storage/Xps/Printing/impl.rs b/crates/libs/windows/src/Windows/Win32/Storage/Xps/Printing/impl.rs index 1682d701c2..09e8ab2aa2 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/Xps/Printing/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/Xps/Printing/impl.rs @@ -19,7 +19,7 @@ impl IPrintDocumentPackageStatusEvent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IPrintDocumentPackageTarget_Impl: Sized { @@ -53,7 +53,7 @@ impl IPrintDocumentPackageTarget_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPrintDocumentPackageTarget2_Impl: Sized { @@ -86,7 +86,7 @@ impl IPrintDocumentPackageTarget2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -116,7 +116,7 @@ impl IPrintDocumentPackageTargetFactory_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IXpsPrintJob_Impl: Sized { @@ -143,7 +143,7 @@ impl IXpsPrintJob_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -164,6 +164,6 @@ impl IXpsPrintJobStream_Vtbl { Self { base__: super::super::super::System::Com::ISequentialStream_Vtbl::new::(), Close: Close:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } 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 0ef42f51cf..2d1f165da3 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 @@ -24,11 +24,15 @@ where ::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() } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintDocumentPackageStatusEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IPrintDocumentPackageStatusEvent, + IPrintDocumentPackageStatusEvent_Vtbl, + 0xed90c8ad_5c34_4d05_a1ec_0e8a9b3ad7af +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IPrintDocumentPackageStatusEvent, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IPrintDocumentPackageStatusEvent { pub unsafe fn PackageStatusUpdated(&self, packagestatus: *const PrintDocumentPackageStatus) -> ::windows_core::Result<()> { @@ -36,32 +40,21 @@ impl IPrintDocumentPackageStatusEvent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IPrintDocumentPackageStatusEvent, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IPrintDocumentPackageStatusEvent { - type Vtable = IPrintDocumentPackageStatusEvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IPrintDocumentPackageStatusEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xed90c8ad_5c34_4d05_a1ec_0e8a9b3ad7af); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IPrintDocumentPackageStatusEvent_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, pub PackageStatusUpdated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, packagestatus: *const PrintDocumentPackageStatus) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintDocumentPackageTarget(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPrintDocumentPackageTarget, IPrintDocumentPackageTarget_Vtbl, 0x1b8efec4_3019_4c27_964e_367202156906); +::windows_core::imp::interface_hierarchy!(IPrintDocumentPackageTarget, ::windows_core::IUnknown); impl IPrintDocumentPackageTarget { pub unsafe fn GetPackageTargetTypes(&self, targetcount: *mut u32, targettypes: *mut *mut ::windows_core::GUID) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetPackageTargetTypes)(::windows_core::Interface::as_raw(self), targetcount, targettypes).ok() } pub unsafe fn GetPackageTarget(&self, guidtargettype: *const ::windows_core::GUID) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetPackageTarget)(::windows_core::Interface::as_raw(self), guidtargettype, &T::IID, &mut result__).from_abi(result__) @@ -70,13 +63,6 @@ impl IPrintDocumentPackageTarget { (::windows_core::Interface::vtable(self).Cancel)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IPrintDocumentPackageTarget, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintDocumentPackageTarget { - type Vtable = IPrintDocumentPackageTarget_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintDocumentPackageTarget { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1b8efec4_3019_4c27_964e_367202156906); -} #[repr(C)] #[doc(hidden)] pub struct IPrintDocumentPackageTarget_Vtbl { @@ -85,9 +71,8 @@ pub struct IPrintDocumentPackageTarget_Vtbl { pub GetPackageTarget: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guidtargettype: *const ::windows_core::GUID, riid: *const ::windows_core::GUID, ppvtarget: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Cancel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintDocumentPackageTarget2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPrintDocumentPackageTarget2, IPrintDocumentPackageTarget2_Vtbl, 0xc560298a_535c_48f9_866a_632540660cb4); +::windows_core::imp::interface_hierarchy!(IPrintDocumentPackageTarget2, ::windows_core::IUnknown); impl IPrintDocumentPackageTarget2 { pub unsafe fn GetIsTargetIppPrinter(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -95,19 +80,12 @@ impl IPrintDocumentPackageTarget2 { } pub unsafe fn GetTargetIppPrintDevice(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetTargetIppPrintDevice)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IPrintDocumentPackageTarget2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintDocumentPackageTarget2 { - type Vtable = IPrintDocumentPackageTarget2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintDocumentPackageTarget2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc560298a_535c_48f9_866a_632540660cb4); -} #[repr(C)] #[doc(hidden)] pub struct IPrintDocumentPackageTarget2_Vtbl { @@ -115,9 +93,8 @@ pub struct IPrintDocumentPackageTarget2_Vtbl { pub GetIsTargetIppPrinter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, isippprinter: *mut super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub GetTargetIppPrintDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppvtarget: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintDocumentPackageTargetFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPrintDocumentPackageTargetFactory, IPrintDocumentPackageTargetFactory_Vtbl, 0xd2959bf7_b31b_4a3d_9600_712eb1335ba4); +::windows_core::imp::interface_hierarchy!(IPrintDocumentPackageTargetFactory, ::windows_core::IUnknown); impl IPrintDocumentPackageTargetFactory { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -132,13 +109,6 @@ impl IPrintDocumentPackageTargetFactory { (::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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IPrintDocumentPackageTargetFactory, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintDocumentPackageTargetFactory { - type Vtable = IPrintDocumentPackageTargetFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintDocumentPackageTargetFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd2959bf7_b31b_4a3d_9600_712eb1335ba4); -} #[repr(C)] #[doc(hidden)] pub struct IPrintDocumentPackageTargetFactory_Vtbl { @@ -148,9 +118,8 @@ pub struct IPrintDocumentPackageTargetFactory_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] CreateDocumentPackageTargetForPrintJob: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsPrintJob(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsPrintJob, IXpsPrintJob_Vtbl, 0x5ab89b06_8194_425f_ab3b_d7a96e350161); +::windows_core::imp::interface_hierarchy!(IXpsPrintJob, ::windows_core::IUnknown); impl IXpsPrintJob { pub unsafe fn Cancel(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Cancel)(::windows_core::Interface::as_raw(self)).ok() @@ -159,13 +128,6 @@ impl IXpsPrintJob { (::windows_core::Interface::vtable(self).GetJobStatus)(::windows_core::Interface::as_raw(self), jobstatus).ok() } } -::windows_core::imp::interface_hierarchy!(IXpsPrintJob, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXpsPrintJob { - type Vtable = IXpsPrintJob_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsPrintJob { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5ab89b06_8194_425f_ab3b_d7a96e350161); -} #[repr(C)] #[doc(hidden)] pub struct IXpsPrintJob_Vtbl { @@ -173,11 +135,15 @@ pub struct IXpsPrintJob_Vtbl { pub Cancel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetJobStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, jobstatus: *mut XPS_JOB_STATUS) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsPrintJobStream(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IXpsPrintJobStream, + IXpsPrintJobStream_Vtbl, + 0x7a77dc5f_45d6_4dff_9307_d8cb846347ca +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IXpsPrintJobStream, ::windows_core::IUnknown, super::super::super::System::Com::ISequentialStream); #[cfg(feature = "Win32_System_Com")] impl IXpsPrintJobStream { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -195,16 +161,6 @@ impl IXpsPrintJobStream { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IXpsPrintJobStream, ::windows_core::IUnknown, super::super::super::System::Com::ISequentialStream); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IXpsPrintJobStream { - type Vtable = IXpsPrintJobStream_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IXpsPrintJobStream { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7a77dc5f_45d6_4dff_9307_d8cb846347ca); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IXpsPrintJobStream_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Storage/Xps/impl.rs b/crates/libs/windows/src/Windows/Win32/Storage/Xps/impl.rs index a5f822ba7d..bfe9e59b0a 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/Xps/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/Xps/impl.rs @@ -51,7 +51,7 @@ impl IXpsDocumentPackageTarget_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_Packaging_Opc\"`, `\"Win32_System_Com\"`"] @@ -94,7 +94,7 @@ impl IXpsDocumentPackageTarget3D_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IXpsOMBrush_Impl: Sized + IXpsOMShareable_Impl { @@ -127,7 +127,7 @@ impl IXpsOMBrush_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -283,7 +283,7 @@ impl IXpsOMCanvas_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_Packaging_Opc\"`, `\"Win32_System_Com\"`"] @@ -320,7 +320,7 @@ impl IXpsOMColorProfileResource_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_Packaging_Opc\"`, `\"Win32_System_Com\"`"] @@ -404,7 +404,7 @@ impl IXpsOMColorProfileResourceCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_Packaging_Opc\"`, `\"Win32_System_Com\"`"] @@ -767,7 +767,7 @@ impl IXpsOMCoreProperties_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IXpsOMDashCollection_Impl: Sized { @@ -834,7 +834,7 @@ impl IXpsOMDashCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IXpsOMDictionary_Impl: Sized { @@ -947,7 +947,7 @@ impl IXpsOMDictionary_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_Packaging_Opc\"`, `\"Win32_System_Com\"`"] @@ -1056,7 +1056,7 @@ impl IXpsOMDocument_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IXpsOMDocumentCollection_Impl: Sized { @@ -1123,7 +1123,7 @@ impl IXpsOMDocumentCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_Packaging_Opc\"`, `\"Win32_System_Com\"`"] @@ -1186,7 +1186,7 @@ impl IXpsOMDocumentSequence_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_Packaging_Opc\"`, `\"Win32_System_Com\"`"] @@ -1236,7 +1236,7 @@ impl IXpsOMDocumentStructureResource_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_Packaging_Opc\"`, `\"Win32_System_Com\"`"] @@ -1286,7 +1286,7 @@ impl IXpsOMFontResource_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_Packaging_Opc\"`, `\"Win32_System_Com\"`"] @@ -1370,7 +1370,7 @@ impl IXpsOMFontResourceCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IXpsOMGeometry_Impl: Sized + IXpsOMShareable_Impl { @@ -1482,7 +1482,7 @@ impl IXpsOMGeometry_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IXpsOMGeometryFigure_Impl: Sized { @@ -1648,7 +1648,7 @@ impl IXpsOMGeometryFigure_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IXpsOMGeometryFigureCollection_Impl: Sized { @@ -1715,7 +1715,7 @@ impl IXpsOMGeometryFigureCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2023,7 +2023,7 @@ impl IXpsOMGlyphs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IXpsOMGlyphsEditor_Impl: Sized { @@ -2204,7 +2204,7 @@ impl IXpsOMGlyphsEditor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IXpsOMGradientBrush_Impl: Sized + IXpsOMBrush_Impl { @@ -2323,7 +2323,7 @@ impl IXpsOMGradientBrush_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IXpsOMGradientStop_Impl: Sized { @@ -2396,7 +2396,7 @@ impl IXpsOMGradientStop_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IXpsOMGradientStopCollection_Impl: Sized { @@ -2463,7 +2463,7 @@ impl IXpsOMGradientStopCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IXpsOMImageBrush_Impl: Sized + IXpsOMTileBrush_Impl { @@ -2529,7 +2529,7 @@ impl IXpsOMImageBrush_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_Packaging_Opc\"`, `\"Win32_System_Com\"`"] @@ -2579,7 +2579,7 @@ impl IXpsOMImageResource_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_Packaging_Opc\"`, `\"Win32_System_Com\"`"] @@ -2663,7 +2663,7 @@ impl IXpsOMImageResourceCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IXpsOMLinearGradientBrush_Impl: Sized + IXpsOMGradientBrush_Impl { @@ -2729,7 +2729,7 @@ impl IXpsOMLinearGradientBrush_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IXpsOMMatrixTransform_Impl: Sized + IXpsOMShareable_Impl { @@ -2775,7 +2775,7 @@ impl IXpsOMMatrixTransform_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IXpsOMNameCollection_Impl: Sized { @@ -2814,7 +2814,7 @@ impl IXpsOMNameCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Security\"`, `\"Win32_Storage_Packaging_Opc\"`, `\"Win32_System_Com\"`"] @@ -3323,7 +3323,7 @@ impl IXpsOMObjectFactory_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Security\"`, `\"Win32_Storage_Packaging_Opc\"`, `\"Win32_System_Com\"`"] @@ -3496,7 +3496,7 @@ impl IXpsOMObjectFactory1_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Security\"`, `\"Win32_Storage_Packaging_Opc\"`, `\"Win32_System_Com\"`"] @@ -3607,7 +3607,7 @@ impl IXpsOMPackage_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Security\"`, `\"Win32_Storage_Packaging_Opc\"`, `\"Win32_System_Com\"`"] @@ -3651,7 +3651,7 @@ impl IXpsOMPackage1_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_Packaging_Opc\"`, `\"Win32_System_Com\"`"] @@ -3678,7 +3678,7 @@ impl IXpsOMPackageTarget_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CreateXpsOMPackageWriter: CreateXpsOMPackageWriter:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_Packaging_Opc\"`, `\"Win32_System_Com\"`"] @@ -3736,7 +3736,7 @@ impl IXpsOMPackageWriter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_Packaging_Opc\"`, `\"Win32_System_Com\"`"] @@ -3767,7 +3767,7 @@ impl IXpsOMPackageWriter3D_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_Packaging_Opc\"`, `\"Win32_System_Com\"`"] @@ -4016,7 +4016,7 @@ impl IXpsOMPage_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_Packaging_Opc\"`, `\"Win32_System_Com\"`"] @@ -4053,7 +4053,7 @@ impl IXpsOMPage1_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IXpsOMPageReference_Impl: Sized { @@ -4251,7 +4251,7 @@ impl IXpsOMPageReference_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IXpsOMPageReferenceCollection_Impl: Sized { @@ -4318,7 +4318,7 @@ impl IXpsOMPageReferenceCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_Packaging_Opc\"`, `\"Win32_System_Com\"`"] @@ -4355,7 +4355,7 @@ impl IXpsOMPart_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IXpsOMPartResources_Impl: Sized { @@ -4420,7 +4420,7 @@ impl IXpsOMPartResources_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_Packaging_Opc\"`, `\"Win32_System_Com\"`"] @@ -4491,7 +4491,7 @@ impl IXpsOMPartUriCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -4893,7 +4893,7 @@ impl IXpsOMPath_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_Packaging_Opc\"`, `\"Win32_System_Com\"`"] @@ -4930,7 +4930,7 @@ impl IXpsOMPrintTicketResource_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IXpsOMRadialGradientBrush_Impl: Sized + IXpsOMGradientBrush_Impl { @@ -5016,7 +5016,7 @@ impl IXpsOMRadialGradientBrush_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_Packaging_Opc\"`, `\"Win32_System_Com\"`"] @@ -5053,7 +5053,7 @@ impl IXpsOMRemoteDictionaryResource_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_Packaging_Opc\"`, `\"Win32_System_Com\"`"] @@ -5090,7 +5090,7 @@ impl IXpsOMRemoteDictionaryResource1_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_Packaging_Opc\"`, `\"Win32_System_Com\"`"] @@ -5174,7 +5174,7 @@ impl IXpsOMRemoteDictionaryResourceCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_Packaging_Opc\"`, `\"Win32_System_Com\"`"] @@ -5188,7 +5188,7 @@ impl IXpsOMResource_Vtbl { Self { base__: IXpsOMPart_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IXpsOMShareable_Impl: Sized { @@ -5227,7 +5227,7 @@ impl IXpsOMShareable_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_Packaging_Opc\"`, `\"Win32_System_Com\"`"] @@ -5277,7 +5277,7 @@ impl IXpsOMSignatureBlockResource_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_Packaging_Opc\"`, `\"Win32_System_Com\"`"] @@ -5361,7 +5361,7 @@ impl IXpsOMSignatureBlockResourceCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IXpsOMSolidColorBrush_Impl: Sized + IXpsOMBrush_Impl { @@ -5401,7 +5401,7 @@ impl IXpsOMSolidColorBrush_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_Packaging_Opc\"`, `\"Win32_System_Com\"`"] @@ -5451,7 +5451,7 @@ impl IXpsOMStoryFragmentsResource_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_Packaging_Opc\"`, `\"Win32_System_Com\"`"] @@ -5478,7 +5478,7 @@ impl IXpsOMThumbnailGenerator_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GenerateThumbnail: GenerateThumbnail:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IXpsOMTileBrush_Impl: Sized + IXpsOMBrush_Impl { @@ -5604,7 +5604,7 @@ impl IXpsOMTileBrush_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -5880,7 +5880,7 @@ impl IXpsOMVisual_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IXpsOMVisualBrush_Impl: Sized + IXpsOMTileBrush_Impl { @@ -5959,7 +5959,7 @@ impl IXpsOMVisualBrush_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IXpsOMVisualCollection_Impl: Sized { @@ -6026,7 +6026,7 @@ impl IXpsOMVisualCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Security_Cryptography\"`, `\"Win32_Storage_Packaging_Opc\"`, `\"Win32_System_Com\"`"] @@ -6181,7 +6181,7 @@ impl IXpsSignature_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_Packaging_Opc\"`, `\"Win32_System_Com\"`"] @@ -6263,7 +6263,7 @@ impl IXpsSignatureBlock_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IXpsSignatureBlockCollection_Impl: Sized { @@ -6309,7 +6309,7 @@ impl IXpsSignatureBlockCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IXpsSignatureCollection_Impl: Sized { @@ -6355,7 +6355,7 @@ impl IXpsSignatureCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Security_Cryptography\"`, `\"Win32_Storage_Packaging_Opc\"`, `\"Win32_System_Com\"`"] @@ -6485,7 +6485,7 @@ impl IXpsSignatureManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_Packaging_Opc\"`, `\"Win32_System_Com\"`"] @@ -6622,7 +6622,7 @@ impl IXpsSignatureRequest_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IXpsSignatureRequestCollection_Impl: Sized { @@ -6668,7 +6668,7 @@ impl IXpsSignatureRequestCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_Packaging_Opc\"`, `\"Win32_System_Com\"`"] @@ -6864,6 +6864,6 @@ impl IXpsSigningOptions_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 d876addcd7..6e2a421236 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/Xps/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/Xps/mod.rs @@ -124,9 +124,8 @@ where ::windows_targets::link!("gdi32.dll" "system" fn StartPage(hdc : super::super::Graphics::Gdi:: HDC) -> i32); StartPage(hdc.into_param().abi()) } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsDocumentPackageTarget(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsDocumentPackageTarget, IXpsDocumentPackageTarget_Vtbl, 0x3b0b6d38_53ad_41da_b212_d37637a6714e); +::windows_core::imp::interface_hierarchy!(IXpsDocumentPackageTarget, ::windows_core::IUnknown); impl IXpsDocumentPackageTarget { #[doc = "Required features: `\"Win32_Storage_Packaging_Opc\"`, `\"Win32_System_Com\"`"] #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] @@ -147,13 +146,6 @@ impl IXpsDocumentPackageTarget { (::windows_core::Interface::vtable(self).GetXpsType)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IXpsDocumentPackageTarget, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXpsDocumentPackageTarget { - type Vtable = IXpsDocumentPackageTarget_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsDocumentPackageTarget { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3b0b6d38_53ad_41da_b212_d37637a6714e); -} #[repr(C)] #[doc(hidden)] pub struct IXpsDocumentPackageTarget_Vtbl { @@ -165,9 +157,8 @@ pub struct IXpsDocumentPackageTarget_Vtbl { pub GetXpsOMFactory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, xpsfactory: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetXpsType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, documenttype: *mut XPS_DOCUMENT_TYPE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsDocumentPackageTarget3D(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsDocumentPackageTarget3D, IXpsDocumentPackageTarget3D_Vtbl, 0x60ba71b8_3101_4984_9199_f4ea775ff01d); +::windows_core::imp::interface_hierarchy!(IXpsDocumentPackageTarget3D, ::windows_core::IUnknown); impl IXpsDocumentPackageTarget3D { #[doc = "Required features: `\"Win32_Storage_Packaging_Opc\"`, `\"Win32_System_Com\"`"] #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] @@ -186,13 +177,6 @@ impl IXpsDocumentPackageTarget3D { (::windows_core::Interface::vtable(self).GetXpsOMFactory)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IXpsDocumentPackageTarget3D, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXpsDocumentPackageTarget3D { - type Vtable = IXpsDocumentPackageTarget3D_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsDocumentPackageTarget3D { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x60ba71b8_3101_4984_9199_f4ea775ff01d); -} #[repr(C)] #[doc(hidden)] pub struct IXpsDocumentPackageTarget3D_Vtbl { @@ -203,9 +187,8 @@ pub struct IXpsDocumentPackageTarget3D_Vtbl { GetXpsOMPackageWriter3D: usize, pub GetXpsOMFactory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, xpsfactory: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsOMBrush(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsOMBrush, IXpsOMBrush_Vtbl, 0x56a3f80c_ea4c_4187_a57b_a2a473b2b42b); +::windows_core::imp::interface_hierarchy!(IXpsOMBrush, ::windows_core::IUnknown, IXpsOMShareable); impl IXpsOMBrush { pub unsafe fn GetOwner(&self) -> ::windows_core::Result<::windows_core::IUnknown> { let mut result__ = ::std::mem::zeroed(); @@ -223,13 +206,6 @@ impl IXpsOMBrush { (::windows_core::Interface::vtable(self).SetOpacity)(::windows_core::Interface::as_raw(self), opacity).ok() } } -::windows_core::imp::interface_hierarchy!(IXpsOMBrush, ::windows_core::IUnknown, IXpsOMShareable); -unsafe impl ::windows_core::Interface for IXpsOMBrush { - type Vtable = IXpsOMBrush_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsOMBrush { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x56a3f80c_ea4c_4187_a57b_a2a473b2b42b); -} #[repr(C)] #[doc(hidden)] pub struct IXpsOMBrush_Vtbl { @@ -237,9 +213,8 @@ pub struct IXpsOMBrush_Vtbl { pub GetOpacity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, opacity: *mut f32) -> ::windows_core::HRESULT, pub SetOpacity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, opacity: f32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsOMCanvas(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsOMCanvas, IXpsOMCanvas_Vtbl, 0x221d1452_331e_47c6_87e9_6ccefb9b5ba3); +::windows_core::imp::interface_hierarchy!(IXpsOMCanvas, ::windows_core::IUnknown, IXpsOMShareable, IXpsOMVisual); impl IXpsOMCanvas { pub unsafe fn GetOwner(&self) -> ::windows_core::Result<::windows_core::IUnknown> { let mut result__ = ::std::mem::zeroed(); @@ -435,13 +410,6 @@ impl IXpsOMCanvas { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IXpsOMCanvas, ::windows_core::IUnknown, IXpsOMShareable, IXpsOMVisual); -unsafe impl ::windows_core::Interface for IXpsOMCanvas { - type Vtable = IXpsOMCanvas_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsOMCanvas { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x221d1452_331e_47c6_87e9_6ccefb9b5ba3); -} #[repr(C)] #[doc(hidden)] pub struct IXpsOMCanvas_Vtbl { @@ -460,9 +428,8 @@ pub struct IXpsOMCanvas_Vtbl { pub SetDictionaryResource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, remotedictionaryresource: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, canvas: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsOMColorProfileResource(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsOMColorProfileResource, IXpsOMColorProfileResource_Vtbl, 0x67bd7d69_1eef_4bb1_b5e7_6f4f87be8abe); +::windows_core::imp::interface_hierarchy!(IXpsOMColorProfileResource, ::windows_core::IUnknown, IXpsOMPart, IXpsOMResource); impl IXpsOMColorProfileResource { #[doc = "Required features: `\"Win32_Storage_Packaging_Opc\"`, `\"Win32_System_Com\"`"] #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] @@ -494,13 +461,6 @@ impl IXpsOMColorProfileResource { (::windows_core::Interface::vtable(self).SetContent)(::windows_core::Interface::as_raw(self), sourcestream.into_param().abi(), partname.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IXpsOMColorProfileResource, ::windows_core::IUnknown, IXpsOMPart, IXpsOMResource); -unsafe impl ::windows_core::Interface for IXpsOMColorProfileResource { - type Vtable = IXpsOMColorProfileResource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsOMColorProfileResource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x67bd7d69_1eef_4bb1_b5e7_6f4f87be8abe); -} #[repr(C)] #[doc(hidden)] pub struct IXpsOMColorProfileResource_Vtbl { @@ -514,9 +474,8 @@ pub struct IXpsOMColorProfileResource_Vtbl { #[cfg(not(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com")))] SetContent: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsOMColorProfileResourceCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsOMColorProfileResourceCollection, IXpsOMColorProfileResourceCollection_Vtbl, 0x12759630_5fba_4283_8f7d_cca849809edb); +::windows_core::imp::interface_hierarchy!(IXpsOMColorProfileResourceCollection, ::windows_core::IUnknown); impl IXpsOMColorProfileResourceCollection { pub unsafe fn GetCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -557,13 +516,6 @@ impl IXpsOMColorProfileResourceCollection { (::windows_core::Interface::vtable(self).GetByPartName)(::windows_core::Interface::as_raw(self), partname.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IXpsOMColorProfileResourceCollection, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXpsOMColorProfileResourceCollection { - type Vtable = IXpsOMColorProfileResourceCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsOMColorProfileResourceCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x12759630_5fba_4283_8f7d_cca849809edb); -} #[repr(C)] #[doc(hidden)] pub struct IXpsOMColorProfileResourceCollection_Vtbl { @@ -579,9 +531,8 @@ pub struct IXpsOMColorProfileResourceCollection_Vtbl { #[cfg(not(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com")))] GetByPartName: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsOMCoreProperties(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsOMCoreProperties, IXpsOMCoreProperties_Vtbl, 0x3340fe8f_4027_4aa1_8f5f_d35ae45fe597); +::windows_core::imp::interface_hierarchy!(IXpsOMCoreProperties, ::windows_core::IUnknown, IXpsOMPart); impl IXpsOMCoreProperties { #[doc = "Required features: `\"Win32_Storage_Packaging_Opc\"`, `\"Win32_System_Com\"`"] #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] @@ -757,13 +708,6 @@ impl IXpsOMCoreProperties { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IXpsOMCoreProperties, ::windows_core::IUnknown, IXpsOMPart); -unsafe impl ::windows_core::Interface for IXpsOMCoreProperties { - type Vtable = IXpsOMCoreProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsOMCoreProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3340fe8f_4027_4aa1_8f5f_d35ae45fe597); -} #[repr(C)] #[doc(hidden)] pub struct IXpsOMCoreProperties_Vtbl { @@ -803,9 +747,8 @@ pub struct IXpsOMCoreProperties_Vtbl { pub SetVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, version: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, coreproperties: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsOMDashCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsOMDashCollection, IXpsOMDashCollection_Vtbl, 0x081613f4_74eb_48f2_83b3_37a9ce2d7dc6); +::windows_core::imp::interface_hierarchy!(IXpsOMDashCollection, ::windows_core::IUnknown); impl IXpsOMDashCollection { pub unsafe fn GetCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -828,13 +771,6 @@ impl IXpsOMDashCollection { (::windows_core::Interface::vtable(self).Append)(::windows_core::Interface::as_raw(self), dash).ok() } } -::windows_core::imp::interface_hierarchy!(IXpsOMDashCollection, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXpsOMDashCollection { - type Vtable = IXpsOMDashCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsOMDashCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x081613f4_74eb_48f2_83b3_37a9ce2d7dc6); -} #[repr(C)] #[doc(hidden)] pub struct IXpsOMDashCollection_Vtbl { @@ -846,9 +782,8 @@ pub struct IXpsOMDashCollection_Vtbl { pub SetAt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, dash: *const XPS_DASH) -> ::windows_core::HRESULT, pub Append: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dash: *const XPS_DASH) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsOMDictionary(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsOMDictionary, IXpsOMDictionary_Vtbl, 0x897c86b8_8eaf_4ae3_bdde_56419fcf4236); +::windows_core::imp::interface_hierarchy!(IXpsOMDictionary, ::windows_core::IUnknown); impl IXpsOMDictionary { pub unsafe fn GetOwner(&self) -> ::windows_core::Result<::windows_core::IUnknown> { let mut result__ = ::std::mem::zeroed(); @@ -905,13 +840,6 @@ impl IXpsOMDictionary { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IXpsOMDictionary, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXpsOMDictionary { - type Vtable = IXpsOMDictionary_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsOMDictionary { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x897c86b8_8eaf_4ae3_bdde_56419fcf4236); -} #[repr(C)] #[doc(hidden)] pub struct IXpsOMDictionary_Vtbl { @@ -927,9 +855,8 @@ pub struct IXpsOMDictionary_Vtbl { pub SetAt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, key: ::windows_core::PCWSTR, entry: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dictionary: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsOMDocument(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsOMDocument, IXpsOMDocument_Vtbl, 0x2c2c94cb_ac5f_4254_8ee9_23948309d9f0); +::windows_core::imp::interface_hierarchy!(IXpsOMDocument, ::windows_core::IUnknown, IXpsOMPart); impl IXpsOMDocument { #[doc = "Required features: `\"Win32_Storage_Packaging_Opc\"`, `\"Win32_System_Com\"`"] #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] @@ -982,13 +909,6 @@ impl IXpsOMDocument { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IXpsOMDocument, ::windows_core::IUnknown, IXpsOMPart); -unsafe impl ::windows_core::Interface for IXpsOMDocument { - type Vtable = IXpsOMDocument_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsOMDocument { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2c2c94cb_ac5f_4254_8ee9_23948309d9f0); -} #[repr(C)] #[doc(hidden)] pub struct IXpsOMDocument_Vtbl { @@ -1002,9 +922,8 @@ pub struct IXpsOMDocument_Vtbl { pub GetSignatureBlockResources: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, signatureblockresources: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, document: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsOMDocumentCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsOMDocumentCollection, IXpsOMDocumentCollection_Vtbl, 0xd1c87f0d_e947_4754_8a25_971478f7e83e); +::windows_core::imp::interface_hierarchy!(IXpsOMDocumentCollection, ::windows_core::IUnknown); impl IXpsOMDocumentCollection { pub unsafe fn GetCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1036,13 +955,6 @@ impl IXpsOMDocumentCollection { (::windows_core::Interface::vtable(self).Append)(::windows_core::Interface::as_raw(self), document.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IXpsOMDocumentCollection, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXpsOMDocumentCollection { - type Vtable = IXpsOMDocumentCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsOMDocumentCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd1c87f0d_e947_4754_8a25_971478f7e83e); -} #[repr(C)] #[doc(hidden)] pub struct IXpsOMDocumentCollection_Vtbl { @@ -1054,9 +966,8 @@ pub struct IXpsOMDocumentCollection_Vtbl { pub SetAt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, document: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Append: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, document: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsOMDocumentSequence(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsOMDocumentSequence, IXpsOMDocumentSequence_Vtbl, 0x56492eb4_d8d5_425e_8256_4c2b64ad0264); +::windows_core::imp::interface_hierarchy!(IXpsOMDocumentSequence, ::windows_core::IUnknown, IXpsOMPart); impl IXpsOMDocumentSequence { #[doc = "Required features: `\"Win32_Storage_Packaging_Opc\"`, `\"Win32_System_Com\"`"] #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] @@ -1091,13 +1002,6 @@ impl IXpsOMDocumentSequence { (::windows_core::Interface::vtable(self).SetPrintTicketResource)(::windows_core::Interface::as_raw(self), printticketresource.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IXpsOMDocumentSequence, ::windows_core::IUnknown, IXpsOMPart); -unsafe impl ::windows_core::Interface for IXpsOMDocumentSequence { - type Vtable = IXpsOMDocumentSequence_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsOMDocumentSequence { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x56492eb4_d8d5_425e_8256_4c2b64ad0264); -} #[repr(C)] #[doc(hidden)] pub struct IXpsOMDocumentSequence_Vtbl { @@ -1107,9 +1011,8 @@ pub struct IXpsOMDocumentSequence_Vtbl { pub GetPrintTicketResource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, printticketresource: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetPrintTicketResource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, printticketresource: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsOMDocumentStructureResource(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsOMDocumentStructureResource, IXpsOMDocumentStructureResource_Vtbl, 0x85febc8a_6b63_48a9_af07_7064e4ecff30); +::windows_core::imp::interface_hierarchy!(IXpsOMDocumentStructureResource, ::windows_core::IUnknown, IXpsOMPart, IXpsOMResource); impl IXpsOMDocumentStructureResource { #[doc = "Required features: `\"Win32_Storage_Packaging_Opc\"`, `\"Win32_System_Com\"`"] #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] @@ -1145,13 +1048,6 @@ impl IXpsOMDocumentStructureResource { (::windows_core::Interface::vtable(self).SetContent)(::windows_core::Interface::as_raw(self), sourcestream.into_param().abi(), partname.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IXpsOMDocumentStructureResource, ::windows_core::IUnknown, IXpsOMPart, IXpsOMResource); -unsafe impl ::windows_core::Interface for IXpsOMDocumentStructureResource { - type Vtable = IXpsOMDocumentStructureResource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsOMDocumentStructureResource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x85febc8a_6b63_48a9_af07_7064e4ecff30); -} #[repr(C)] #[doc(hidden)] pub struct IXpsOMDocumentStructureResource_Vtbl { @@ -1166,9 +1062,8 @@ pub struct IXpsOMDocumentStructureResource_Vtbl { #[cfg(not(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com")))] SetContent: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsOMFontResource(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsOMFontResource, IXpsOMFontResource_Vtbl, 0xa8c45708_47d9_4af4_8d20_33b48c9b8485); +::windows_core::imp::interface_hierarchy!(IXpsOMFontResource, ::windows_core::IUnknown, IXpsOMPart, IXpsOMResource); impl IXpsOMFontResource { #[doc = "Required features: `\"Win32_Storage_Packaging_Opc\"`, `\"Win32_System_Com\"`"] #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] @@ -1204,13 +1099,6 @@ impl IXpsOMFontResource { (::windows_core::Interface::vtable(self).GetEmbeddingOption)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IXpsOMFontResource, ::windows_core::IUnknown, IXpsOMPart, IXpsOMResource); -unsafe impl ::windows_core::Interface for IXpsOMFontResource { - type Vtable = IXpsOMFontResource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsOMFontResource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa8c45708_47d9_4af4_8d20_33b48c9b8485); -} #[repr(C)] #[doc(hidden)] pub struct IXpsOMFontResource_Vtbl { @@ -1225,9 +1113,8 @@ pub struct IXpsOMFontResource_Vtbl { SetContent: usize, pub GetEmbeddingOption: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, embeddingoption: *mut XPS_FONT_EMBEDDING) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsOMFontResourceCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsOMFontResourceCollection, IXpsOMFontResourceCollection_Vtbl, 0x70b4a6bb_88d4_4fa8_aaf9_6d9c596fdbad); +::windows_core::imp::interface_hierarchy!(IXpsOMFontResourceCollection, ::windows_core::IUnknown); impl IXpsOMFontResourceCollection { pub unsafe fn GetCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1268,13 +1155,6 @@ impl IXpsOMFontResourceCollection { (::windows_core::Interface::vtable(self).GetByPartName)(::windows_core::Interface::as_raw(self), partname.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IXpsOMFontResourceCollection, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXpsOMFontResourceCollection { - type Vtable = IXpsOMFontResourceCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsOMFontResourceCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x70b4a6bb_88d4_4fa8_aaf9_6d9c596fdbad); -} #[repr(C)] #[doc(hidden)] pub struct IXpsOMFontResourceCollection_Vtbl { @@ -1290,9 +1170,8 @@ pub struct IXpsOMFontResourceCollection_Vtbl { #[cfg(not(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com")))] GetByPartName: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsOMGeometry(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsOMGeometry, IXpsOMGeometry_Vtbl, 0x64fcf3d7_4d58_44ba_ad73_a13af6492072); +::windows_core::imp::interface_hierarchy!(IXpsOMGeometry, ::windows_core::IUnknown, IXpsOMShareable); impl IXpsOMGeometry { pub unsafe fn GetOwner(&self) -> ::windows_core::Result<::windows_core::IUnknown> { let mut result__ = ::std::mem::zeroed(); @@ -1342,13 +1221,6 @@ impl IXpsOMGeometry { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IXpsOMGeometry, ::windows_core::IUnknown, IXpsOMShareable); -unsafe impl ::windows_core::Interface for IXpsOMGeometry { - type Vtable = IXpsOMGeometry_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsOMGeometry { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x64fcf3d7_4d58_44ba_ad73_a13af6492072); -} #[repr(C)] #[doc(hidden)] pub struct IXpsOMGeometry_Vtbl { @@ -1363,9 +1235,8 @@ pub struct IXpsOMGeometry_Vtbl { pub SetTransformLookup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lookup: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, geometry: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsOMGeometryFigure(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsOMGeometryFigure, IXpsOMGeometryFigure_Vtbl, 0xd410dc83_908c_443e_8947_b1795d3c165a); +::windows_core::imp::interface_hierarchy!(IXpsOMGeometryFigure, ::windows_core::IUnknown); impl IXpsOMGeometryFigure { pub unsafe fn GetOwner(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1427,13 +1298,6 @@ impl IXpsOMGeometryFigure { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IXpsOMGeometryFigure, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXpsOMGeometryFigure { - type Vtable = IXpsOMGeometryFigure_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsOMGeometryFigure { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd410dc83_908c_443e_8947_b1795d3c165a); -} #[repr(C)] #[doc(hidden)] pub struct IXpsOMGeometryFigure_Vtbl { @@ -1454,9 +1318,8 @@ pub struct IXpsOMGeometryFigure_Vtbl { pub GetSegmentStrokePattern: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, segmentstrokepattern: *mut XPS_SEGMENT_STROKE_PATTERN) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, geometryfigure: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsOMGeometryFigureCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsOMGeometryFigureCollection, IXpsOMGeometryFigureCollection_Vtbl, 0xfd48c3f3_a58e_4b5a_8826_1de54abe72b2); +::windows_core::imp::interface_hierarchy!(IXpsOMGeometryFigureCollection, ::windows_core::IUnknown); impl IXpsOMGeometryFigureCollection { pub unsafe fn GetCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1488,13 +1351,6 @@ impl IXpsOMGeometryFigureCollection { (::windows_core::Interface::vtable(self).Append)(::windows_core::Interface::as_raw(self), geometryfigure.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IXpsOMGeometryFigureCollection, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXpsOMGeometryFigureCollection { - type Vtable = IXpsOMGeometryFigureCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsOMGeometryFigureCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfd48c3f3_a58e_4b5a_8826_1de54abe72b2); -} #[repr(C)] #[doc(hidden)] pub struct IXpsOMGeometryFigureCollection_Vtbl { @@ -1506,9 +1362,8 @@ pub struct IXpsOMGeometryFigureCollection_Vtbl { pub SetAt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, geometryfigure: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Append: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, geometryfigure: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsOMGlyphs(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsOMGlyphs, IXpsOMGlyphs_Vtbl, 0x819b3199_0a5a_4b64_bec7_a9e17e780de2); +::windows_core::imp::interface_hierarchy!(IXpsOMGlyphs, ::windows_core::IUnknown, IXpsOMShareable, IXpsOMVisual); impl IXpsOMGlyphs { pub unsafe fn GetOwner(&self) -> ::windows_core::Result<::windows_core::IUnknown> { let mut result__ = ::std::mem::zeroed(); @@ -1749,13 +1604,6 @@ impl IXpsOMGlyphs { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IXpsOMGlyphs, ::windows_core::IUnknown, IXpsOMShareable, IXpsOMVisual); -unsafe impl ::windows_core::Interface for IXpsOMGlyphs { - type Vtable = IXpsOMGlyphs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsOMGlyphs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x819b3199_0a5a_4b64_bec7_a9e17e780de2); -} #[repr(C)] #[doc(hidden)] pub struct IXpsOMGlyphs_Vtbl { @@ -1788,9 +1636,8 @@ pub struct IXpsOMGlyphs_Vtbl { pub GetGlyphsEditor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, editor: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, glyphs: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsOMGlyphsEditor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsOMGlyphsEditor, IXpsOMGlyphsEditor_Vtbl, 0xa5ab8616_5b16_4b9f_9629_89b323ed7909); +::windows_core::imp::interface_hierarchy!(IXpsOMGlyphsEditor, ::windows_core::IUnknown); impl IXpsOMGlyphsEditor { pub unsafe fn ApplyEdits(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).ApplyEdits)(::windows_core::Interface::as_raw(self)).ok() @@ -1863,13 +1710,6 @@ impl IXpsOMGlyphsEditor { (::windows_core::Interface::vtable(self).SetDeviceFontName)(::windows_core::Interface::as_raw(self), devicefontname.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IXpsOMGlyphsEditor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXpsOMGlyphsEditor { - type Vtable = IXpsOMGlyphsEditor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsOMGlyphsEditor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa5ab8616_5b16_4b9f_9629_89b323ed7909); -} #[repr(C)] #[doc(hidden)] pub struct IXpsOMGlyphsEditor_Vtbl { @@ -1893,9 +1733,8 @@ pub struct IXpsOMGlyphsEditor_Vtbl { pub GetDeviceFontName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, devicefontname: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, pub SetDeviceFontName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, devicefontname: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsOMGradientBrush(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsOMGradientBrush, IXpsOMGradientBrush_Vtbl, 0xedb59622_61a2_42c3_bace_acf2286c06bf); +::windows_core::imp::interface_hierarchy!(IXpsOMGradientBrush, ::windows_core::IUnknown, IXpsOMShareable, IXpsOMBrush); impl IXpsOMGradientBrush { pub unsafe fn GetOwner(&self) -> ::windows_core::Result<::windows_core::IUnknown> { let mut result__ = ::std::mem::zeroed(); @@ -1955,13 +1794,6 @@ impl IXpsOMGradientBrush { (::windows_core::Interface::vtable(self).SetColorInterpolationMode)(::windows_core::Interface::as_raw(self), colorinterpolationmode).ok() } } -::windows_core::imp::interface_hierarchy!(IXpsOMGradientBrush, ::windows_core::IUnknown, IXpsOMShareable, IXpsOMBrush); -unsafe impl ::windows_core::Interface for IXpsOMGradientBrush { - type Vtable = IXpsOMGradientBrush_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsOMGradientBrush { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xedb59622_61a2_42c3_bace_acf2286c06bf); -} #[repr(C)] #[doc(hidden)] pub struct IXpsOMGradientBrush_Vtbl { @@ -1977,9 +1809,8 @@ pub struct IXpsOMGradientBrush_Vtbl { pub GetColorInterpolationMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, colorinterpolationmode: *mut XPS_COLOR_INTERPOLATION) -> ::windows_core::HRESULT, pub SetColorInterpolationMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, colorinterpolationmode: XPS_COLOR_INTERPOLATION) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsOMGradientStop(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsOMGradientStop, IXpsOMGradientStop_Vtbl, 0x5cf4f5cc_3969_49b5_a70a_5550b618fe49); +::windows_core::imp::interface_hierarchy!(IXpsOMGradientStop, ::windows_core::IUnknown); impl IXpsOMGradientStop { pub unsafe fn GetOwner(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2006,13 +1837,6 @@ impl IXpsOMGradientStop { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IXpsOMGradientStop, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXpsOMGradientStop { - type Vtable = IXpsOMGradientStop_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsOMGradientStop { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5cf4f5cc_3969_49b5_a70a_5550b618fe49); -} #[repr(C)] #[doc(hidden)] pub struct IXpsOMGradientStop_Vtbl { @@ -2024,9 +1848,8 @@ pub struct IXpsOMGradientStop_Vtbl { pub SetColor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, color: *const XPS_COLOR, colorprofile: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, gradientstop: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsOMGradientStopCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsOMGradientStopCollection, IXpsOMGradientStopCollection_Vtbl, 0xc9174c3a_3cd3_4319_bda4_11a39392ceef); +::windows_core::imp::interface_hierarchy!(IXpsOMGradientStopCollection, ::windows_core::IUnknown); impl IXpsOMGradientStopCollection { pub unsafe fn GetCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2058,13 +1881,6 @@ impl IXpsOMGradientStopCollection { (::windows_core::Interface::vtable(self).Append)(::windows_core::Interface::as_raw(self), stop.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IXpsOMGradientStopCollection, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXpsOMGradientStopCollection { - type Vtable = IXpsOMGradientStopCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsOMGradientStopCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc9174c3a_3cd3_4319_bda4_11a39392ceef); -} #[repr(C)] #[doc(hidden)] pub struct IXpsOMGradientStopCollection_Vtbl { @@ -2076,9 +1892,8 @@ pub struct IXpsOMGradientStopCollection_Vtbl { pub SetAt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, stop: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Append: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, stop: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsOMImageBrush(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsOMImageBrush, IXpsOMImageBrush_Vtbl, 0x3df0b466_d382_49ef_8550_dd94c80242e4); +::windows_core::imp::interface_hierarchy!(IXpsOMImageBrush, ::windows_core::IUnknown, IXpsOMShareable, IXpsOMBrush, IXpsOMTileBrush); impl IXpsOMImageBrush { pub unsafe fn GetOwner(&self) -> ::windows_core::Result<::windows_core::IUnknown> { let mut result__ = ::std::mem::zeroed(); @@ -2165,13 +1980,6 @@ impl IXpsOMImageBrush { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IXpsOMImageBrush, ::windows_core::IUnknown, IXpsOMShareable, IXpsOMBrush, IXpsOMTileBrush); -unsafe impl ::windows_core::Interface for IXpsOMImageBrush { - type Vtable = IXpsOMImageBrush_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsOMImageBrush { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3df0b466_d382_49ef_8550_dd94c80242e4); -} #[repr(C)] #[doc(hidden)] pub struct IXpsOMImageBrush_Vtbl { @@ -2182,9 +1990,8 @@ pub struct IXpsOMImageBrush_Vtbl { pub SetColorProfileResource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, colorprofileresource: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, imagebrush: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsOMImageResource(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsOMImageResource, IXpsOMImageResource_Vtbl, 0x3db8417d_ae50_485e_9a44_d7758f78a23f); +::windows_core::imp::interface_hierarchy!(IXpsOMImageResource, ::windows_core::IUnknown, IXpsOMPart, IXpsOMResource); impl IXpsOMImageResource { #[doc = "Required features: `\"Win32_Storage_Packaging_Opc\"`, `\"Win32_System_Com\"`"] #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] @@ -2220,13 +2027,6 @@ impl IXpsOMImageResource { (::windows_core::Interface::vtable(self).GetImageType)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IXpsOMImageResource, ::windows_core::IUnknown, IXpsOMPart, IXpsOMResource); -unsafe impl ::windows_core::Interface for IXpsOMImageResource { - type Vtable = IXpsOMImageResource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsOMImageResource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3db8417d_ae50_485e_9a44_d7758f78a23f); -} #[repr(C)] #[doc(hidden)] pub struct IXpsOMImageResource_Vtbl { @@ -2241,9 +2041,8 @@ pub struct IXpsOMImageResource_Vtbl { SetContent: usize, pub GetImageType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, imagetype: *mut XPS_IMAGE_TYPE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsOMImageResourceCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsOMImageResourceCollection, IXpsOMImageResourceCollection_Vtbl, 0x7a4a1a71_9cde_4b71_b33f_62de843eabfe); +::windows_core::imp::interface_hierarchy!(IXpsOMImageResourceCollection, ::windows_core::IUnknown); impl IXpsOMImageResourceCollection { pub unsafe fn GetCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2284,13 +2083,6 @@ impl IXpsOMImageResourceCollection { (::windows_core::Interface::vtable(self).GetByPartName)(::windows_core::Interface::as_raw(self), partname.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IXpsOMImageResourceCollection, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXpsOMImageResourceCollection { - type Vtable = IXpsOMImageResourceCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsOMImageResourceCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7a4a1a71_9cde_4b71_b33f_62de843eabfe); -} #[repr(C)] #[doc(hidden)] pub struct IXpsOMImageResourceCollection_Vtbl { @@ -2306,9 +2098,8 @@ pub struct IXpsOMImageResourceCollection_Vtbl { #[cfg(not(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com")))] GetByPartName: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsOMLinearGradientBrush(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsOMLinearGradientBrush, IXpsOMLinearGradientBrush_Vtbl, 0x005e279f_c30d_40ff_93ec_1950d3c528db); +::windows_core::imp::interface_hierarchy!(IXpsOMLinearGradientBrush, ::windows_core::IUnknown, IXpsOMShareable, IXpsOMBrush, IXpsOMGradientBrush); impl IXpsOMLinearGradientBrush { pub unsafe fn GetOwner(&self) -> ::windows_core::Result<::windows_core::IUnknown> { let mut result__ = ::std::mem::zeroed(); @@ -2386,13 +2177,6 @@ impl IXpsOMLinearGradientBrush { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IXpsOMLinearGradientBrush, ::windows_core::IUnknown, IXpsOMShareable, IXpsOMBrush, IXpsOMGradientBrush); -unsafe impl ::windows_core::Interface for IXpsOMLinearGradientBrush { - type Vtable = IXpsOMLinearGradientBrush_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsOMLinearGradientBrush { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x005e279f_c30d_40ff_93ec_1950d3c528db); -} #[repr(C)] #[doc(hidden)] pub struct IXpsOMLinearGradientBrush_Vtbl { @@ -2403,9 +2187,8 @@ pub struct IXpsOMLinearGradientBrush_Vtbl { pub SetEndPoint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, endpoint: *const XPS_POINT) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lineargradientbrush: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsOMMatrixTransform(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsOMMatrixTransform, IXpsOMMatrixTransform_Vtbl, 0xb77330ff_bb37_4501_a93e_f1b1e50bfc46); +::windows_core::imp::interface_hierarchy!(IXpsOMMatrixTransform, ::windows_core::IUnknown, IXpsOMShareable); impl IXpsOMMatrixTransform { pub unsafe fn GetOwner(&self) -> ::windows_core::Result<::windows_core::IUnknown> { let mut result__ = ::std::mem::zeroed(); @@ -2427,13 +2210,6 @@ impl IXpsOMMatrixTransform { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IXpsOMMatrixTransform, ::windows_core::IUnknown, IXpsOMShareable); -unsafe impl ::windows_core::Interface for IXpsOMMatrixTransform { - type Vtable = IXpsOMMatrixTransform_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsOMMatrixTransform { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb77330ff_bb37_4501_a93e_f1b1e50bfc46); -} #[repr(C)] #[doc(hidden)] pub struct IXpsOMMatrixTransform_Vtbl { @@ -2442,9 +2218,8 @@ pub struct IXpsOMMatrixTransform_Vtbl { pub SetMatrix: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, matrix: *const XPS_MATRIX) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, matrixtransform: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsOMNameCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsOMNameCollection, IXpsOMNameCollection_Vtbl, 0x4bddf8ec_c915_421b_a166_d173d25653d2); +::windows_core::imp::interface_hierarchy!(IXpsOMNameCollection, ::windows_core::IUnknown); impl IXpsOMNameCollection { pub unsafe fn GetCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2455,13 +2230,6 @@ impl IXpsOMNameCollection { (::windows_core::Interface::vtable(self).GetAt)(::windows_core::Interface::as_raw(self), index, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IXpsOMNameCollection, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXpsOMNameCollection { - type Vtable = IXpsOMNameCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsOMNameCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4bddf8ec_c915_421b_a166_d173d25653d2); -} #[repr(C)] #[doc(hidden)] pub struct IXpsOMNameCollection_Vtbl { @@ -2469,9 +2237,8 @@ pub struct IXpsOMNameCollection_Vtbl { pub GetCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, count: *mut u32) -> ::windows_core::HRESULT, pub GetAt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, name: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsOMObjectFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsOMObjectFactory, IXpsOMObjectFactory_Vtbl, 0xf9b2a685_a50d_4fc2_b764_b56e093ea0ca); +::windows_core::imp::interface_hierarchy!(IXpsOMObjectFactory, ::windows_core::IUnknown); impl IXpsOMObjectFactory { pub unsafe fn CreatePackage(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2769,13 +2536,6 @@ impl IXpsOMObjectFactory { (::windows_core::Interface::vtable(self).CreateReadOnlyStreamOnFile)(::windows_core::Interface::as_raw(self), filename.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IXpsOMObjectFactory, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXpsOMObjectFactory { - type Vtable = IXpsOMObjectFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsOMObjectFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf9b2a685_a50d_4fc2_b764_b56e093ea0ca); -} #[repr(C)] #[doc(hidden)] pub struct IXpsOMObjectFactory_Vtbl { @@ -2875,9 +2635,8 @@ pub struct IXpsOMObjectFactory_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] CreateReadOnlyStreamOnFile: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsOMObjectFactory1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsOMObjectFactory1, IXpsOMObjectFactory1_Vtbl, 0x0a91b617_d612_4181_bf7c_be5824e9cc8f); +::windows_core::imp::interface_hierarchy!(IXpsOMObjectFactory1, ::windows_core::IUnknown, IXpsOMObjectFactory); impl IXpsOMObjectFactory1 { pub unsafe fn CreatePackage(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -3288,13 +3047,6 @@ impl IXpsOMObjectFactory1 { (::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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IXpsOMObjectFactory1, ::windows_core::IUnknown, IXpsOMObjectFactory); -unsafe impl ::windows_core::Interface for IXpsOMObjectFactory1 { - type Vtable = IXpsOMObjectFactory1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsOMObjectFactory1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0a91b617_d612_4181_bf7c_be5824e9cc8f); -} #[repr(C)] #[doc(hidden)] pub struct IXpsOMObjectFactory1_Vtbl { @@ -3333,9 +3085,8 @@ pub struct IXpsOMObjectFactory1_Vtbl { #[cfg(not(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com")))] CreateRemoteDictionaryResourceFromStream1: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsOMPackage(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsOMPackage, IXpsOMPackage_Vtbl, 0x18c3df65_81e1_4674_91dc_fc452f5a416f); +::windows_core::imp::interface_hierarchy!(IXpsOMPackage, ::windows_core::IUnknown); impl IXpsOMPackage { pub unsafe fn GetDocumentSequence(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -3400,13 +3151,6 @@ impl IXpsOMPackage { (::windows_core::Interface::vtable(self).WriteToStream)(::windows_core::Interface::as_raw(self), stream.into_param().abi(), optimizemarkupsize.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IXpsOMPackage, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXpsOMPackage { - type Vtable = IXpsOMPackage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsOMPackage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x18c3df65_81e1_4674_91dc_fc452f5a416f); -} #[repr(C)] #[doc(hidden)] pub struct IXpsOMPackage_Vtbl { @@ -3434,9 +3178,8 @@ pub struct IXpsOMPackage_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] WriteToStream: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsOMPackage1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsOMPackage1, IXpsOMPackage1_Vtbl, 0x95a9435e_12bb_461b_8e7f_c6adb04cd96a); +::windows_core::imp::interface_hierarchy!(IXpsOMPackage1, ::windows_core::IUnknown, IXpsOMPackage); impl IXpsOMPackage1 { pub unsafe fn GetDocumentSequence(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -3523,13 +3266,6 @@ impl IXpsOMPackage1 { (::windows_core::Interface::vtable(self).WriteToStream1)(::windows_core::Interface::as_raw(self), outputstream.into_param().abi(), optimizemarkupsize.into_param().abi(), documenttype).ok() } } -::windows_core::imp::interface_hierarchy!(IXpsOMPackage1, ::windows_core::IUnknown, IXpsOMPackage); -unsafe impl ::windows_core::Interface for IXpsOMPackage1 { - type Vtable = IXpsOMPackage1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsOMPackage1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x95a9435e_12bb_461b_8e7f_c6adb04cd96a); -} #[repr(C)] #[doc(hidden)] pub struct IXpsOMPackage1_Vtbl { @@ -3544,9 +3280,8 @@ pub struct IXpsOMPackage1_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] WriteToStream1: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsOMPackageTarget(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsOMPackageTarget, IXpsOMPackageTarget_Vtbl, 0x219a9db0_4959_47d0_8034_b1ce84f41a4d); +::windows_core::imp::interface_hierarchy!(IXpsOMPackageTarget, ::windows_core::IUnknown); impl IXpsOMPackageTarget { #[doc = "Required features: `\"Win32_Storage_Packaging_Opc\"`, `\"Win32_System_Com\"`"] #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] @@ -3560,13 +3295,6 @@ impl IXpsOMPackageTarget { (::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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IXpsOMPackageTarget, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXpsOMPackageTarget { - type Vtable = IXpsOMPackageTarget_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsOMPackageTarget { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x219a9db0_4959_47d0_8034_b1ce84f41a4d); -} #[repr(C)] #[doc(hidden)] pub struct IXpsOMPackageTarget_Vtbl { @@ -3576,9 +3304,8 @@ pub struct IXpsOMPackageTarget_Vtbl { #[cfg(not(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com")))] CreateXpsOMPackageWriter: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsOMPackageWriter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsOMPackageWriter, IXpsOMPackageWriter_Vtbl, 0x4e2aa182_a443_42c6_b41b_4f8e9de73ff9); +::windows_core::imp::interface_hierarchy!(IXpsOMPackageWriter, ::windows_core::IUnknown); impl IXpsOMPackageWriter { #[doc = "Required features: `\"Win32_Storage_Packaging_Opc\"`, `\"Win32_System_Com\"`"] #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] @@ -3616,13 +3343,6 @@ impl IXpsOMPackageWriter { (::windows_core::Interface::vtable(self).IsClosed)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IXpsOMPackageWriter, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXpsOMPackageWriter { - type Vtable = IXpsOMPackageWriter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsOMPackageWriter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4e2aa182_a443_42c6_b41b_4f8e9de73ff9); -} #[repr(C)] #[doc(hidden)] pub struct IXpsOMPackageWriter_Vtbl { @@ -3636,9 +3356,8 @@ pub struct IXpsOMPackageWriter_Vtbl { pub Close: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub IsClosed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, isclosed: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsOMPackageWriter3D(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsOMPackageWriter3D, IXpsOMPackageWriter3D_Vtbl, 0xe8a45033_640e_43fa_9bdf_fddeaa31c6a0); +::windows_core::imp::interface_hierarchy!(IXpsOMPackageWriter3D, ::windows_core::IUnknown, IXpsOMPackageWriter); impl IXpsOMPackageWriter3D { #[doc = "Required features: `\"Win32_Storage_Packaging_Opc\"`, `\"Win32_System_Com\"`"] #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] @@ -3694,13 +3413,6 @@ impl IXpsOMPackageWriter3D { (::windows_core::Interface::vtable(self).SetModelPrintTicket)(::windows_core::Interface::as_raw(self), printticketpartname.into_param().abi(), printticketdata.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IXpsOMPackageWriter3D, ::windows_core::IUnknown, IXpsOMPackageWriter); -unsafe impl ::windows_core::Interface for IXpsOMPackageWriter3D { - type Vtable = IXpsOMPackageWriter3D_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsOMPackageWriter3D { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe8a45033_640e_43fa_9bdf_fddeaa31c6a0); -} #[repr(C)] #[doc(hidden)] pub struct IXpsOMPackageWriter3D_Vtbl { @@ -3714,9 +3426,8 @@ pub struct IXpsOMPackageWriter3D_Vtbl { #[cfg(not(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com")))] SetModelPrintTicket: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsOMPage(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsOMPage, IXpsOMPage_Vtbl, 0xd3e18888_f120_4fee_8c68_35296eae91d4); +::windows_core::imp::interface_hierarchy!(IXpsOMPage, ::windows_core::IUnknown, IXpsOMPart); impl IXpsOMPage { #[doc = "Required features: `\"Win32_Storage_Packaging_Opc\"`, `\"Win32_System_Com\"`"] #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] @@ -3833,13 +3544,6 @@ impl IXpsOMPage { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IXpsOMPage, ::windows_core::IUnknown, IXpsOMPart); -unsafe impl ::windows_core::Interface for IXpsOMPage { - type Vtable = IXpsOMPage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsOMPage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd3e18888_f120_4fee_8c68_35296eae91d4); -} #[repr(C)] #[doc(hidden)] pub struct IXpsOMPage_Vtbl { @@ -3870,9 +3574,8 @@ pub struct IXpsOMPage_Vtbl { pub GenerateUnusedLookupKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: XPS_OBJECT_TYPE, key: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, page: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsOMPage1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsOMPage1, IXpsOMPage1_Vtbl, 0x305b60ef_6892_4dda_9cbb_3aa65974508a); +::windows_core::imp::interface_hierarchy!(IXpsOMPage1, ::windows_core::IUnknown, IXpsOMPart, IXpsOMPage); impl IXpsOMPage1 { #[doc = "Required features: `\"Win32_Storage_Packaging_Opc\"`, `\"Win32_System_Com\"`"] #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] @@ -4002,13 +3705,6 @@ impl IXpsOMPage1 { (::windows_core::Interface::vtable(self).Write1)(::windows_core::Interface::as_raw(self), stream.into_param().abi(), optimizemarkupsize.into_param().abi(), documenttype).ok() } } -::windows_core::imp::interface_hierarchy!(IXpsOMPage1, ::windows_core::IUnknown, IXpsOMPart, IXpsOMPage); -unsafe impl ::windows_core::Interface for IXpsOMPage1 { - type Vtable = IXpsOMPage1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsOMPage1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x305b60ef_6892_4dda_9cbb_3aa65974508a); -} #[repr(C)] #[doc(hidden)] pub struct IXpsOMPage1_Vtbl { @@ -4019,9 +3715,8 @@ pub struct IXpsOMPage1_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Write1: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsOMPageReference(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsOMPageReference, IXpsOMPageReference_Vtbl, 0xed360180_6f92_4998_890d_2f208531a0a0); +::windows_core::imp::interface_hierarchy!(IXpsOMPageReference, ::windows_core::IUnknown); impl IXpsOMPageReference { pub unsafe fn GetOwner(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -4098,13 +3793,6 @@ impl IXpsOMPageReference { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IXpsOMPageReference, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXpsOMPageReference { - type Vtable = IXpsOMPageReference_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsOMPageReference { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xed360180_6f92_4998_890d_2f208531a0a0); -} #[repr(C)] #[doc(hidden)] pub struct IXpsOMPageReference_Vtbl { @@ -4127,9 +3815,8 @@ pub struct IXpsOMPageReference_Vtbl { pub HasRestrictedFonts: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, restrictedfonts: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pagereference: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsOMPageReferenceCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsOMPageReferenceCollection, IXpsOMPageReferenceCollection_Vtbl, 0xca16ba4d_e7b9_45c5_958b_f98022473745); +::windows_core::imp::interface_hierarchy!(IXpsOMPageReferenceCollection, ::windows_core::IUnknown); impl IXpsOMPageReferenceCollection { pub unsafe fn GetCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -4161,13 +3848,6 @@ impl IXpsOMPageReferenceCollection { (::windows_core::Interface::vtable(self).Append)(::windows_core::Interface::as_raw(self), pagereference.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IXpsOMPageReferenceCollection, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXpsOMPageReferenceCollection { - type Vtable = IXpsOMPageReferenceCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsOMPageReferenceCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xca16ba4d_e7b9_45c5_958b_f98022473745); -} #[repr(C)] #[doc(hidden)] pub struct IXpsOMPageReferenceCollection_Vtbl { @@ -4179,9 +3859,8 @@ pub struct IXpsOMPageReferenceCollection_Vtbl { pub SetAt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, pagereference: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Append: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pagereference: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsOMPart(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsOMPart, IXpsOMPart_Vtbl, 0x74eb2f0b_a91e_4486_afac_0fabeca3dfc6); +::windows_core::imp::interface_hierarchy!(IXpsOMPart, ::windows_core::IUnknown); impl IXpsOMPart { #[doc = "Required features: `\"Win32_Storage_Packaging_Opc\"`, `\"Win32_System_Com\"`"] #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] @@ -4198,13 +3877,6 @@ impl IXpsOMPart { (::windows_core::Interface::vtable(self).SetPartName)(::windows_core::Interface::as_raw(self), parturi.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IXpsOMPart, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXpsOMPart { - type Vtable = IXpsOMPart_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsOMPart { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x74eb2f0b_a91e_4486_afac_0fabeca3dfc6); -} #[repr(C)] #[doc(hidden)] pub struct IXpsOMPart_Vtbl { @@ -4218,9 +3890,8 @@ pub struct IXpsOMPart_Vtbl { #[cfg(not(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com")))] SetPartName: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsOMPartResources(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsOMPartResources, IXpsOMPartResources_Vtbl, 0xf4cf7729_4864_4275_99b3_a8717163ecaf); +::windows_core::imp::interface_hierarchy!(IXpsOMPartResources, ::windows_core::IUnknown); impl IXpsOMPartResources { pub unsafe fn GetFontResources(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -4239,13 +3910,6 @@ impl IXpsOMPartResources { (::windows_core::Interface::vtable(self).GetRemoteDictionaryResources)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IXpsOMPartResources, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXpsOMPartResources { - type Vtable = IXpsOMPartResources_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsOMPartResources { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf4cf7729_4864_4275_99b3_a8717163ecaf); -} #[repr(C)] #[doc(hidden)] pub struct IXpsOMPartResources_Vtbl { @@ -4255,9 +3919,8 @@ pub struct IXpsOMPartResources_Vtbl { pub GetColorProfileResources: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, colorprofileresources: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetRemoteDictionaryResources: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dictionaryresources: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsOMPartUriCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsOMPartUriCollection, IXpsOMPartUriCollection_Vtbl, 0x57c650d4_067c_4893_8c33_f62a0633730f); +::windows_core::imp::interface_hierarchy!(IXpsOMPartUriCollection, ::windows_core::IUnknown); impl IXpsOMPartUriCollection { pub unsafe fn GetCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -4297,13 +3960,6 @@ impl IXpsOMPartUriCollection { (::windows_core::Interface::vtable(self).Append)(::windows_core::Interface::as_raw(self), parturi.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IXpsOMPartUriCollection, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXpsOMPartUriCollection { - type Vtable = IXpsOMPartUriCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsOMPartUriCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x57c650d4_067c_4893_8c33_f62a0633730f); -} #[repr(C)] #[doc(hidden)] pub struct IXpsOMPartUriCollection_Vtbl { @@ -4327,9 +3983,8 @@ pub struct IXpsOMPartUriCollection_Vtbl { #[cfg(not(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com")))] Append: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsOMPath(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsOMPath, IXpsOMPath_Vtbl, 0x37d38bb6_3ee9_4110_9312_14b194163337); +::windows_core::imp::interface_hierarchy!(IXpsOMPath, ::windows_core::IUnknown, IXpsOMShareable, IXpsOMVisual); impl IXpsOMPath { pub unsafe fn GetOwner(&self) -> ::windows_core::Result<::windows_core::IUnknown> { let mut result__ = ::std::mem::zeroed(); @@ -4622,13 +4277,6 @@ impl IXpsOMPath { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IXpsOMPath, ::windows_core::IUnknown, IXpsOMShareable, IXpsOMVisual); -unsafe impl ::windows_core::Interface for IXpsOMPath { - type Vtable = IXpsOMPath_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsOMPath { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x37d38bb6_3ee9_4110_9312_14b194163337); -} #[repr(C)] #[doc(hidden)] pub struct IXpsOMPath_Vtbl { @@ -4671,9 +4319,8 @@ pub struct IXpsOMPath_Vtbl { pub SetFillBrushLookup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lookup: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsOMPrintTicketResource(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsOMPrintTicketResource, IXpsOMPrintTicketResource_Vtbl, 0xe7ff32d2_34aa_499b_bbe9_9cd4ee6c59f7); +::windows_core::imp::interface_hierarchy!(IXpsOMPrintTicketResource, ::windows_core::IUnknown, IXpsOMPart, IXpsOMResource); impl IXpsOMPrintTicketResource { #[doc = "Required features: `\"Win32_Storage_Packaging_Opc\"`, `\"Win32_System_Com\"`"] #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] @@ -4705,13 +4352,6 @@ impl IXpsOMPrintTicketResource { (::windows_core::Interface::vtable(self).SetContent)(::windows_core::Interface::as_raw(self), sourcestream.into_param().abi(), partname.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IXpsOMPrintTicketResource, ::windows_core::IUnknown, IXpsOMPart, IXpsOMResource); -unsafe impl ::windows_core::Interface for IXpsOMPrintTicketResource { - type Vtable = IXpsOMPrintTicketResource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsOMPrintTicketResource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe7ff32d2_34aa_499b_bbe9_9cd4ee6c59f7); -} #[repr(C)] #[doc(hidden)] pub struct IXpsOMPrintTicketResource_Vtbl { @@ -4725,9 +4365,8 @@ pub struct IXpsOMPrintTicketResource_Vtbl { #[cfg(not(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com")))] SetContent: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsOMRadialGradientBrush(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsOMRadialGradientBrush, IXpsOMRadialGradientBrush_Vtbl, 0x75f207e5_08bf_413c_96b1_b82b4064176b); +::windows_core::imp::interface_hierarchy!(IXpsOMRadialGradientBrush, ::windows_core::IUnknown, IXpsOMShareable, IXpsOMBrush, IXpsOMGradientBrush); impl IXpsOMRadialGradientBrush { pub unsafe fn GetOwner(&self) -> ::windows_core::Result<::windows_core::IUnknown> { let mut result__ = ::std::mem::zeroed(); @@ -4812,13 +4451,6 @@ impl IXpsOMRadialGradientBrush { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IXpsOMRadialGradientBrush, ::windows_core::IUnknown, IXpsOMShareable, IXpsOMBrush, IXpsOMGradientBrush); -unsafe impl ::windows_core::Interface for IXpsOMRadialGradientBrush { - type Vtable = IXpsOMRadialGradientBrush_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsOMRadialGradientBrush { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x75f207e5_08bf_413c_96b1_b82b4064176b); -} #[repr(C)] #[doc(hidden)] pub struct IXpsOMRadialGradientBrush_Vtbl { @@ -4831,9 +4463,8 @@ pub struct IXpsOMRadialGradientBrush_Vtbl { pub SetGradientOrigin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, origin: *const XPS_POINT) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, radialgradientbrush: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsOMRemoteDictionaryResource(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsOMRemoteDictionaryResource, IXpsOMRemoteDictionaryResource_Vtbl, 0xc9bd7cd4_e16a_4bf8_8c84_c950af7a3061); +::windows_core::imp::interface_hierarchy!(IXpsOMRemoteDictionaryResource, ::windows_core::IUnknown, IXpsOMPart, IXpsOMResource); impl IXpsOMRemoteDictionaryResource { #[doc = "Required features: `\"Win32_Storage_Packaging_Opc\"`, `\"Win32_System_Com\"`"] #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] @@ -4860,13 +4491,6 @@ impl IXpsOMRemoteDictionaryResource { (::windows_core::Interface::vtable(self).SetDictionary)(::windows_core::Interface::as_raw(self), dictionary.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IXpsOMRemoteDictionaryResource, ::windows_core::IUnknown, IXpsOMPart, IXpsOMResource); -unsafe impl ::windows_core::Interface for IXpsOMRemoteDictionaryResource { - type Vtable = IXpsOMRemoteDictionaryResource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsOMRemoteDictionaryResource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc9bd7cd4_e16a_4bf8_8c84_c950af7a3061); -} #[repr(C)] #[doc(hidden)] pub struct IXpsOMRemoteDictionaryResource_Vtbl { @@ -4874,9 +4498,8 @@ pub struct IXpsOMRemoteDictionaryResource_Vtbl { pub GetDictionary: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dictionary: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetDictionary: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dictionary: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsOMRemoteDictionaryResource1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsOMRemoteDictionaryResource1, IXpsOMRemoteDictionaryResource1_Vtbl, 0xbf8fc1d4_9d46_4141_ba5f_94bb9250d041); +::windows_core::imp::interface_hierarchy!(IXpsOMRemoteDictionaryResource1, ::windows_core::IUnknown, IXpsOMPart, IXpsOMResource, IXpsOMRemoteDictionaryResource); impl IXpsOMRemoteDictionaryResource1 { #[doc = "Required features: `\"Win32_Storage_Packaging_Opc\"`, `\"Win32_System_Com\"`"] #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] @@ -4915,13 +4538,6 @@ impl IXpsOMRemoteDictionaryResource1 { (::windows_core::Interface::vtable(self).Write1)(::windows_core::Interface::as_raw(self), stream.into_param().abi(), documenttype).ok() } } -::windows_core::imp::interface_hierarchy!(IXpsOMRemoteDictionaryResource1, ::windows_core::IUnknown, IXpsOMPart, IXpsOMResource, IXpsOMRemoteDictionaryResource); -unsafe impl ::windows_core::Interface for IXpsOMRemoteDictionaryResource1 { - type Vtable = IXpsOMRemoteDictionaryResource1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsOMRemoteDictionaryResource1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbf8fc1d4_9d46_4141_ba5f_94bb9250d041); -} #[repr(C)] #[doc(hidden)] pub struct IXpsOMRemoteDictionaryResource1_Vtbl { @@ -4932,9 +4548,8 @@ pub struct IXpsOMRemoteDictionaryResource1_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Write1: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsOMRemoteDictionaryResourceCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsOMRemoteDictionaryResourceCollection, IXpsOMRemoteDictionaryResourceCollection_Vtbl, 0x5c38db61_7fec_464a_87bd_41e3bef018be); +::windows_core::imp::interface_hierarchy!(IXpsOMRemoteDictionaryResourceCollection, ::windows_core::IUnknown); impl IXpsOMRemoteDictionaryResourceCollection { pub unsafe fn GetCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -4975,13 +4590,6 @@ impl IXpsOMRemoteDictionaryResourceCollection { (::windows_core::Interface::vtable(self).GetByPartName)(::windows_core::Interface::as_raw(self), partname.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IXpsOMRemoteDictionaryResourceCollection, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXpsOMRemoteDictionaryResourceCollection { - type Vtable = IXpsOMRemoteDictionaryResourceCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsOMRemoteDictionaryResourceCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5c38db61_7fec_464a_87bd_41e3bef018be); -} #[repr(C)] #[doc(hidden)] pub struct IXpsOMRemoteDictionaryResourceCollection_Vtbl { @@ -4997,9 +4605,8 @@ pub struct IXpsOMRemoteDictionaryResourceCollection_Vtbl { #[cfg(not(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com")))] GetByPartName: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsOMResource(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsOMResource, IXpsOMResource_Vtbl, 0xda2ac0a2_73a2_4975_ad14_74097c3ff3a5); +::windows_core::imp::interface_hierarchy!(IXpsOMResource, ::windows_core::IUnknown, IXpsOMPart); impl IXpsOMResource { #[doc = "Required features: `\"Win32_Storage_Packaging_Opc\"`, `\"Win32_System_Com\"`"] #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] @@ -5016,21 +4623,13 @@ impl IXpsOMResource { (::windows_core::Interface::vtable(self).base__.SetPartName)(::windows_core::Interface::as_raw(self), parturi.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IXpsOMResource, ::windows_core::IUnknown, IXpsOMPart); -unsafe impl ::windows_core::Interface for IXpsOMResource { - type Vtable = IXpsOMResource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsOMResource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xda2ac0a2_73a2_4975_ad14_74097c3ff3a5); -} #[repr(C)] #[doc(hidden)] pub struct IXpsOMResource_Vtbl { pub base__: IXpsOMPart_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsOMShareable(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsOMShareable, IXpsOMShareable_Vtbl, 0x7137398f_2fc1_454d_8c6a_2c3115a16ece); +::windows_core::imp::interface_hierarchy!(IXpsOMShareable, ::windows_core::IUnknown); impl IXpsOMShareable { pub unsafe fn GetOwner(&self) -> ::windows_core::Result<::windows_core::IUnknown> { let mut result__ = ::std::mem::zeroed(); @@ -5041,13 +4640,6 @@ impl IXpsOMShareable { (::windows_core::Interface::vtable(self).GetType)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IXpsOMShareable, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXpsOMShareable { - type Vtable = IXpsOMShareable_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsOMShareable { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7137398f_2fc1_454d_8c6a_2c3115a16ece); -} #[repr(C)] #[doc(hidden)] pub struct IXpsOMShareable_Vtbl { @@ -5055,9 +4647,8 @@ pub struct IXpsOMShareable_Vtbl { pub GetOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: *mut XPS_OBJECT_TYPE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsOMSignatureBlockResource(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsOMSignatureBlockResource, IXpsOMSignatureBlockResource_Vtbl, 0x4776ad35_2e04_4357_8743_ebf6c171a905); +::windows_core::imp::interface_hierarchy!(IXpsOMSignatureBlockResource, ::windows_core::IUnknown, IXpsOMPart, IXpsOMResource); impl IXpsOMSignatureBlockResource { #[doc = "Required features: `\"Win32_Storage_Packaging_Opc\"`, `\"Win32_System_Com\"`"] #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] @@ -5093,13 +4684,6 @@ impl IXpsOMSignatureBlockResource { (::windows_core::Interface::vtable(self).SetContent)(::windows_core::Interface::as_raw(self), sourcestream.into_param().abi(), partname.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IXpsOMSignatureBlockResource, ::windows_core::IUnknown, IXpsOMPart, IXpsOMResource); -unsafe impl ::windows_core::Interface for IXpsOMSignatureBlockResource { - type Vtable = IXpsOMSignatureBlockResource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsOMSignatureBlockResource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4776ad35_2e04_4357_8743_ebf6c171a905); -} #[repr(C)] #[doc(hidden)] pub struct IXpsOMSignatureBlockResource_Vtbl { @@ -5114,9 +4698,8 @@ pub struct IXpsOMSignatureBlockResource_Vtbl { #[cfg(not(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com")))] SetContent: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsOMSignatureBlockResourceCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsOMSignatureBlockResourceCollection, IXpsOMSignatureBlockResourceCollection_Vtbl, 0xab8f5d8e_351b_4d33_aaed_fa56f0022931); +::windows_core::imp::interface_hierarchy!(IXpsOMSignatureBlockResourceCollection, ::windows_core::IUnknown); impl IXpsOMSignatureBlockResourceCollection { pub unsafe fn GetCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -5157,13 +4740,6 @@ impl IXpsOMSignatureBlockResourceCollection { (::windows_core::Interface::vtable(self).GetByPartName)(::windows_core::Interface::as_raw(self), partname.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IXpsOMSignatureBlockResourceCollection, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXpsOMSignatureBlockResourceCollection { - type Vtable = IXpsOMSignatureBlockResourceCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsOMSignatureBlockResourceCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xab8f5d8e_351b_4d33_aaed_fa56f0022931); -} #[repr(C)] #[doc(hidden)] pub struct IXpsOMSignatureBlockResourceCollection_Vtbl { @@ -5179,9 +4755,8 @@ pub struct IXpsOMSignatureBlockResourceCollection_Vtbl { #[cfg(not(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com")))] GetByPartName: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsOMSolidColorBrush(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsOMSolidColorBrush, IXpsOMSolidColorBrush_Vtbl, 0xa06f9f05_3be9_4763_98a8_094fc672e488); +::windows_core::imp::interface_hierarchy!(IXpsOMSolidColorBrush, ::windows_core::IUnknown, IXpsOMShareable, IXpsOMBrush); impl IXpsOMSolidColorBrush { pub unsafe fn GetOwner(&self) -> ::windows_core::Result<::windows_core::IUnknown> { let mut result__ = ::std::mem::zeroed(); @@ -5212,13 +4787,6 @@ impl IXpsOMSolidColorBrush { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IXpsOMSolidColorBrush, ::windows_core::IUnknown, IXpsOMShareable, IXpsOMBrush); -unsafe impl ::windows_core::Interface for IXpsOMSolidColorBrush { - type Vtable = IXpsOMSolidColorBrush_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsOMSolidColorBrush { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa06f9f05_3be9_4763_98a8_094fc672e488); -} #[repr(C)] #[doc(hidden)] pub struct IXpsOMSolidColorBrush_Vtbl { @@ -5227,9 +4795,8 @@ pub struct IXpsOMSolidColorBrush_Vtbl { pub SetColor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, color: *const XPS_COLOR, colorprofile: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, solidcolorbrush: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsOMStoryFragmentsResource(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsOMStoryFragmentsResource, IXpsOMStoryFragmentsResource_Vtbl, 0xc2b3ca09_0473_4282_87ae_1780863223f0); +::windows_core::imp::interface_hierarchy!(IXpsOMStoryFragmentsResource, ::windows_core::IUnknown, IXpsOMPart, IXpsOMResource); impl IXpsOMStoryFragmentsResource { #[doc = "Required features: `\"Win32_Storage_Packaging_Opc\"`, `\"Win32_System_Com\"`"] #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] @@ -5265,13 +4832,6 @@ impl IXpsOMStoryFragmentsResource { (::windows_core::Interface::vtable(self).SetContent)(::windows_core::Interface::as_raw(self), sourcestream.into_param().abi(), partname.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IXpsOMStoryFragmentsResource, ::windows_core::IUnknown, IXpsOMPart, IXpsOMResource); -unsafe impl ::windows_core::Interface for IXpsOMStoryFragmentsResource { - type Vtable = IXpsOMStoryFragmentsResource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsOMStoryFragmentsResource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc2b3ca09_0473_4282_87ae_1780863223f0); -} #[repr(C)] #[doc(hidden)] pub struct IXpsOMStoryFragmentsResource_Vtbl { @@ -5286,9 +4846,8 @@ pub struct IXpsOMStoryFragmentsResource_Vtbl { #[cfg(not(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com")))] SetContent: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsOMThumbnailGenerator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsOMThumbnailGenerator, IXpsOMThumbnailGenerator_Vtbl, 0x15b873d5_1971_41e8_83a3_6578403064c7); +::windows_core::imp::interface_hierarchy!(IXpsOMThumbnailGenerator, ::windows_core::IUnknown); impl IXpsOMThumbnailGenerator { #[doc = "Required features: `\"Win32_Storage_Packaging_Opc\"`, `\"Win32_System_Com\"`"] #[cfg(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com"))] @@ -5301,13 +4860,6 @@ impl IXpsOMThumbnailGenerator { (::windows_core::Interface::vtable(self).GenerateThumbnail)(::windows_core::Interface::as_raw(self), page.into_param().abi(), thumbnailtype, thumbnailsize, imageresourcepartname.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IXpsOMThumbnailGenerator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXpsOMThumbnailGenerator { - type Vtable = IXpsOMThumbnailGenerator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsOMThumbnailGenerator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x15b873d5_1971_41e8_83a3_6578403064c7); -} #[repr(C)] #[doc(hidden)] pub struct IXpsOMThumbnailGenerator_Vtbl { @@ -5317,9 +4869,8 @@ pub struct IXpsOMThumbnailGenerator_Vtbl { #[cfg(not(all(feature = "Win32_Storage_Packaging_Opc", feature = "Win32_System_Com")))] GenerateThumbnail: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsOMTileBrush(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsOMTileBrush, IXpsOMTileBrush_Vtbl, 0x0fc2328d_d722_4a54_b2ec_be90218a789e); +::windows_core::imp::interface_hierarchy!(IXpsOMTileBrush, ::windows_core::IUnknown, IXpsOMShareable, IXpsOMBrush); impl IXpsOMTileBrush { pub unsafe fn GetOwner(&self) -> ::windows_core::Result<::windows_core::IUnknown> { let mut result__ = ::std::mem::zeroed(); @@ -5382,13 +4933,6 @@ impl IXpsOMTileBrush { (::windows_core::Interface::vtable(self).SetTileMode)(::windows_core::Interface::as_raw(self), tilemode).ok() } } -::windows_core::imp::interface_hierarchy!(IXpsOMTileBrush, ::windows_core::IUnknown, IXpsOMShareable, IXpsOMBrush); -unsafe impl ::windows_core::Interface for IXpsOMTileBrush { - type Vtable = IXpsOMTileBrush_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsOMTileBrush { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0fc2328d_d722_4a54_b2ec_be90218a789e); -} #[repr(C)] #[doc(hidden)] pub struct IXpsOMTileBrush_Vtbl { @@ -5405,9 +4949,8 @@ pub struct IXpsOMTileBrush_Vtbl { pub GetTileMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, tilemode: *mut XPS_TILE_MODE) -> ::windows_core::HRESULT, pub SetTileMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, tilemode: XPS_TILE_MODE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsOMVisual(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsOMVisual, IXpsOMVisual_Vtbl, 0xbc3e7333_fb0b_4af3_a819_0b4eaad0d2fd); +::windows_core::imp::interface_hierarchy!(IXpsOMVisual, ::windows_core::IUnknown, IXpsOMShareable); impl IXpsOMVisual { pub unsafe fn GetOwner(&self) -> ::windows_core::Result<::windows_core::IUnknown> { let mut result__ = ::std::mem::zeroed(); @@ -5541,13 +5084,6 @@ impl IXpsOMVisual { (::windows_core::Interface::vtable(self).SetLanguage)(::windows_core::Interface::as_raw(self), language.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IXpsOMVisual, ::windows_core::IUnknown, IXpsOMShareable); -unsafe impl ::windows_core::Interface for IXpsOMVisual { - type Vtable = IXpsOMVisual_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsOMVisual { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbc3e7333_fb0b_4af3_a819_0b4eaad0d2fd); -} #[repr(C)] #[doc(hidden)] pub struct IXpsOMVisual_Vtbl { @@ -5584,9 +5120,8 @@ pub struct IXpsOMVisual_Vtbl { pub GetLanguage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, language: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, pub SetLanguage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, language: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsOMVisualBrush(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsOMVisualBrush, IXpsOMVisualBrush_Vtbl, 0x97e294af_5b37_46b4_8057_874d2f64119b); +::windows_core::imp::interface_hierarchy!(IXpsOMVisualBrush, ::windows_core::IUnknown, IXpsOMShareable, IXpsOMBrush, IXpsOMTileBrush); impl IXpsOMVisualBrush { pub unsafe fn GetOwner(&self) -> ::windows_core::Result<::windows_core::IUnknown> { let mut result__ = ::std::mem::zeroed(); @@ -5677,13 +5212,6 @@ impl IXpsOMVisualBrush { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IXpsOMVisualBrush, ::windows_core::IUnknown, IXpsOMShareable, IXpsOMBrush, IXpsOMTileBrush); -unsafe impl ::windows_core::Interface for IXpsOMVisualBrush { - type Vtable = IXpsOMVisualBrush_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsOMVisualBrush { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x97e294af_5b37_46b4_8057_874d2f64119b); -} #[repr(C)] #[doc(hidden)] pub struct IXpsOMVisualBrush_Vtbl { @@ -5695,9 +5223,8 @@ pub struct IXpsOMVisualBrush_Vtbl { pub SetVisualLookup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lookup: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, visualbrush: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsOMVisualCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsOMVisualCollection, IXpsOMVisualCollection_Vtbl, 0x94d8abde_ab91_46a8_82b7_f5b05ef01a96); +::windows_core::imp::interface_hierarchy!(IXpsOMVisualCollection, ::windows_core::IUnknown); impl IXpsOMVisualCollection { pub unsafe fn GetCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -5729,13 +5256,6 @@ impl IXpsOMVisualCollection { (::windows_core::Interface::vtable(self).Append)(::windows_core::Interface::as_raw(self), object.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IXpsOMVisualCollection, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXpsOMVisualCollection { - type Vtable = IXpsOMVisualCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsOMVisualCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x94d8abde_ab91_46a8_82b7_f5b05ef01a96); -} #[repr(C)] #[doc(hidden)] pub struct IXpsOMVisualCollection_Vtbl { @@ -5747,9 +5267,8 @@ pub struct IXpsOMVisualCollection_Vtbl { pub SetAt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, object: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Append: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, object: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsSignature(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsSignature, IXpsSignature_Vtbl, 0x6ae4c93e_1ade_42fb_898b_3a5658284857); +::windows_core::imp::interface_hierarchy!(IXpsSignature, ::windows_core::IUnknown); impl IXpsSignature { pub unsafe fn GetSignatureId(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); @@ -5809,13 +5328,6 @@ impl IXpsSignature { (::windows_core::Interface::vtable(self).SetSignatureXml)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(signaturexml.as_ptr()), signaturexml.len().try_into().unwrap()).ok() } } -::windows_core::imp::interface_hierarchy!(IXpsSignature, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXpsSignature { - type Vtable = IXpsSignature_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsSignature { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6ae4c93e_1ade_42fb_898b_3a5658284857); -} #[repr(C)] #[doc(hidden)] pub struct IXpsSignature_Vtbl { @@ -5851,9 +5363,8 @@ pub struct IXpsSignature_Vtbl { pub GetSignatureXml: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, signaturexml: *mut *mut u8, count: *mut u32) -> ::windows_core::HRESULT, pub SetSignatureXml: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, signaturexml: *const u8, count: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsSignatureBlock(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsSignatureBlock, IXpsSignatureBlock_Vtbl, 0x151fac09_0b97_4ac6_a323_5e4297d4322b); +::windows_core::imp::interface_hierarchy!(IXpsSignatureBlock, ::windows_core::IUnknown); impl IXpsSignatureBlock { pub unsafe fn GetRequests(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -5883,13 +5394,6 @@ impl IXpsSignatureBlock { (::windows_core::Interface::vtable(self).CreateRequest)(::windows_core::Interface::as_raw(self), requestid.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IXpsSignatureBlock, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXpsSignatureBlock { - type Vtable = IXpsSignatureBlock_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsSignatureBlock { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x151fac09_0b97_4ac6_a323_5e4297d4322b); -} #[repr(C)] #[doc(hidden)] pub struct IXpsSignatureBlock_Vtbl { @@ -5906,9 +5410,8 @@ pub struct IXpsSignatureBlock_Vtbl { GetDocumentName: usize, pub CreateRequest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, requestid: ::windows_core::PCWSTR, signaturerequest: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsSignatureBlockCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsSignatureBlockCollection, IXpsSignatureBlockCollection_Vtbl, 0x23397050_fe99_467a_8dce_9237f074ffe4); +::windows_core::imp::interface_hierarchy!(IXpsSignatureBlockCollection, ::windows_core::IUnknown); impl IXpsSignatureBlockCollection { pub unsafe fn GetCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -5922,13 +5425,6 @@ impl IXpsSignatureBlockCollection { (::windows_core::Interface::vtable(self).RemoveAt)(::windows_core::Interface::as_raw(self), index).ok() } } -::windows_core::imp::interface_hierarchy!(IXpsSignatureBlockCollection, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXpsSignatureBlockCollection { - type Vtable = IXpsSignatureBlockCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsSignatureBlockCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x23397050_fe99_467a_8dce_9237f074ffe4); -} #[repr(C)] #[doc(hidden)] pub struct IXpsSignatureBlockCollection_Vtbl { @@ -5937,9 +5433,8 @@ pub struct IXpsSignatureBlockCollection_Vtbl { pub GetAt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, signatureblock: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RemoveAt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsSignatureCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsSignatureCollection, IXpsSignatureCollection_Vtbl, 0xa2d1d95d_add2_4dff_ab27_6b9c645ff322); +::windows_core::imp::interface_hierarchy!(IXpsSignatureCollection, ::windows_core::IUnknown); impl IXpsSignatureCollection { pub unsafe fn GetCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -5953,13 +5448,6 @@ impl IXpsSignatureCollection { (::windows_core::Interface::vtable(self).RemoveAt)(::windows_core::Interface::as_raw(self), index).ok() } } -::windows_core::imp::interface_hierarchy!(IXpsSignatureCollection, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXpsSignatureCollection { - type Vtable = IXpsSignatureCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsSignatureCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa2d1d95d_add2_4dff_ab27_6b9c645ff322); -} #[repr(C)] #[doc(hidden)] pub struct IXpsSignatureCollection_Vtbl { @@ -5968,9 +5456,8 @@ pub struct IXpsSignatureCollection_Vtbl { pub GetAt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, signature: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RemoveAt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsSignatureManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsSignatureManager, IXpsSignatureManager_Vtbl, 0xd3e8d338_fdc4_4afc_80b5_d532a1782ee1); +::windows_core::imp::interface_hierarchy!(IXpsSignatureManager, ::windows_core::IUnknown); impl IXpsSignatureManager { pub unsafe fn LoadPackageFile(&self, filename: P0) -> ::windows_core::Result<()> where @@ -6047,13 +5534,6 @@ impl IXpsSignatureManager { (::windows_core::Interface::vtable(self).SavePackageToStream)(::windows_core::Interface::as_raw(self), stream.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IXpsSignatureManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXpsSignatureManager { - type Vtable = IXpsSignatureManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsSignatureManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd3e8d338_fdc4_4afc_80b5_d532a1782ee1); -} #[repr(C)] #[doc(hidden)] pub struct IXpsSignatureManager_Vtbl { @@ -6091,9 +5571,8 @@ pub struct IXpsSignatureManager_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] SavePackageToStream: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsSignatureRequest(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsSignatureRequest, IXpsSignatureRequest_Vtbl, 0xac58950b_7208_4b2d_b2c4_951083d3b8eb); +::windows_core::imp::interface_hierarchy!(IXpsSignatureRequest, ::windows_core::IUnknown); impl IXpsSignatureRequest { pub unsafe fn GetIntent(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); @@ -6152,13 +5631,6 @@ impl IXpsSignatureRequest { (::windows_core::Interface::vtable(self).GetSignature)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IXpsSignatureRequest, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXpsSignatureRequest { - type Vtable = IXpsSignatureRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsSignatureRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xac58950b_7208_4b2d_b2c4_951083d3b8eb); -} #[repr(C)] #[doc(hidden)] pub struct IXpsSignatureRequest_Vtbl { @@ -6179,9 +5651,8 @@ pub struct IXpsSignatureRequest_Vtbl { pub GetRequestId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, requestid: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, pub GetSignature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, signature: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsSignatureRequestCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsSignatureRequestCollection, IXpsSignatureRequestCollection_Vtbl, 0xf0253e68_9f19_412e_9b4f_54d3b0ac6cd9); +::windows_core::imp::interface_hierarchy!(IXpsSignatureRequestCollection, ::windows_core::IUnknown); impl IXpsSignatureRequestCollection { pub unsafe fn GetCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -6195,13 +5666,6 @@ impl IXpsSignatureRequestCollection { (::windows_core::Interface::vtable(self).RemoveAt)(::windows_core::Interface::as_raw(self), index).ok() } } -::windows_core::imp::interface_hierarchy!(IXpsSignatureRequestCollection, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXpsSignatureRequestCollection { - type Vtable = IXpsSignatureRequestCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsSignatureRequestCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf0253e68_9f19_412e_9b4f_54d3b0ac6cd9); -} #[repr(C)] #[doc(hidden)] pub struct IXpsSignatureRequestCollection_Vtbl { @@ -6210,9 +5674,8 @@ pub struct IXpsSignatureRequestCollection_Vtbl { pub GetAt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, signaturerequest: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RemoveAt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXpsSigningOptions(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXpsSigningOptions, IXpsSigningOptions_Vtbl, 0x7718eae4_3215_49be_af5b_594fef7fcfa6); +::windows_core::imp::interface_hierarchy!(IXpsSigningOptions, ::windows_core::IUnknown); impl IXpsSigningOptions { pub unsafe fn GetSignatureId(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); @@ -6302,13 +5765,6 @@ impl IXpsSigningOptions { (::windows_core::Interface::vtable(self).SetFlags)(::windows_core::Interface::as_raw(self), flags).ok() } } -::windows_core::imp::interface_hierarchy!(IXpsSigningOptions, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXpsSigningOptions { - type Vtable = IXpsSigningOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXpsSigningOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7718eae4_3215_49be_af5b_594fef7fcfa6); -} #[repr(C)] #[doc(hidden)] pub struct IXpsSigningOptions_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/System/AddressBook/impl.rs b/crates/libs/windows/src/Windows/Win32/System/AddressBook/impl.rs index 19030843a5..e635deba19 100644 --- a/crates/libs/windows/src/Windows/Win32/System/AddressBook/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/AddressBook/impl.rs @@ -52,7 +52,7 @@ impl IABContainer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -195,7 +195,7 @@ impl IAddrBook_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -209,7 +209,7 @@ impl IAttach_Vtbl { Self { base__: IMAPIProp_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -266,7 +266,7 @@ impl IDistList_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -287,7 +287,7 @@ impl IMAPIAdviseSink_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnNotify: OnNotify:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -351,7 +351,7 @@ impl IMAPIContainer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IMAPIControl_Impl: Sized { @@ -391,7 +391,7 @@ impl IMAPIControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -503,7 +503,7 @@ impl IMAPIFolder_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IMAPIProgress_Impl: Sized { @@ -551,7 +551,7 @@ impl IMAPIProgress_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -645,7 +645,7 @@ impl IMAPIProp_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -690,7 +690,7 @@ impl IMAPIStatus_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -868,7 +868,7 @@ impl IMAPITable_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -882,7 +882,7 @@ impl IMailUser_Vtbl { Self { base__: IMAPIProp_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -973,7 +973,7 @@ impl IMessage_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1105,7 +1105,7 @@ impl IMsgStore_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1119,7 +1119,7 @@ impl IProfSect_Vtbl { Self { base__: IMAPIProp_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1164,7 +1164,7 @@ impl IPropData_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1240,7 +1240,7 @@ impl IProviderAdmin_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1320,7 +1320,7 @@ impl ITableData_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWABExtInit_Impl: Sized { @@ -1337,7 +1337,7 @@ impl IWABExtInit_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Initialize: Initialize:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWABObject_Impl: Sized { @@ -1453,6 +1453,6 @@ impl IWABObject_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 5fd0091258..a869944999 100644 --- a/crates/libs/windows/src/Windows/Win32/System/AddressBook/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/AddressBook/mod.rs @@ -379,9 +379,8 @@ pub unsafe fn WrapStoreEntryID(ulflags: u32, lpszdllname: *const i8, cborigentry ::windows_targets::link!("mapi32.dll" "system" fn WrapStoreEntryID(ulflags : u32, lpszdllname : *const i8, cborigentry : u32, lporigentry : *const ENTRYID, lpcbwrappedentry : *mut u32, lppwrappedentry : *mut *mut ENTRYID) -> ::windows_core::HRESULT); WrapStoreEntryID(ulflags, lpszdllname, cborigentry, lporigentry, lpcbwrappedentry, lppwrappedentry).ok() } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IABContainer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IABContainer, IABContainer_Vtbl, 0); +::windows_core::imp::interface_hierarchy!(IABContainer, ::windows_core::IUnknown, IMAPIProp, IMAPIContainer); impl IABContainer { pub unsafe fn GetLastError(&self, hresult: ::windows_core::HRESULT, ulflags: u32, lppmapierror: *mut *mut MAPIERROR) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.GetLastError)(::windows_core::Interface::as_raw(self), hresult, ulflags, lppmapierror).ok() @@ -467,13 +466,6 @@ impl IABContainer { (::windows_core::Interface::vtable(self).ResolveNames)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(lpproptagarray.unwrap_or(::std::ptr::null())), ulflags, lpadrlist, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IABContainer, ::windows_core::IUnknown, IMAPIProp, IMAPIContainer); -unsafe impl ::windows_core::Interface for IABContainer { - type Vtable = IABContainer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IABContainer { - const IID: ::windows_core::GUID = ::windows_core::GUID::zeroed(); -} #[repr(C)] #[doc(hidden)] pub struct IABContainer_Vtbl { @@ -486,9 +478,8 @@ pub struct IABContainer_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] ResolveNames: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAddrBook(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAddrBook, IAddrBook_Vtbl, 0); +::windows_core::imp::interface_hierarchy!(IAddrBook, ::windows_core::IUnknown, IMAPIProp); impl IAddrBook { pub unsafe fn GetLastError(&self, hresult: ::windows_core::HRESULT, ulflags: u32, lppmapierror: *mut *mut MAPIERROR) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.GetLastError)(::windows_core::Interface::as_raw(self), hresult, ulflags, lppmapierror).ok() @@ -605,13 +596,6 @@ impl IAddrBook { (::windows_core::Interface::vtable(self).PrepareRecips)(::windows_core::Interface::as_raw(self), ulflags, lpproptagarray, lpreciplist).ok() } } -::windows_core::imp::interface_hierarchy!(IAddrBook, ::windows_core::IUnknown, IMAPIProp); -unsafe impl ::windows_core::Interface for IAddrBook { - type Vtable = IAddrBook_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAddrBook { - const IID: ::windows_core::GUID = ::windows_core::GUID::zeroed(); -} #[repr(C)] #[doc(hidden)] pub struct IAddrBook_Vtbl { @@ -656,9 +640,8 @@ pub struct IAddrBook_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] PrepareRecips: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAttach(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAttach, IAttach_Vtbl, 0); +::windows_core::imp::interface_hierarchy!(IAttach, ::windows_core::IUnknown, IMAPIProp); impl IAttach { pub unsafe fn GetLastError(&self, hresult: ::windows_core::HRESULT, ulflags: u32, lppmapierror: *mut *mut MAPIERROR) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.GetLastError)(::windows_core::Interface::as_raw(self), hresult, ulflags, lppmapierror).ok() @@ -704,21 +687,13 @@ impl IAttach { (::windows_core::Interface::vtable(self).base__.GetIDsFromNames)(::windows_core::Interface::as_raw(self), cpropnames, lpppropnames, ulflags, lppproptags).ok() } } -::windows_core::imp::interface_hierarchy!(IAttach, ::windows_core::IUnknown, IMAPIProp); -unsafe impl ::windows_core::Interface for IAttach { - type Vtable = IAttach_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAttach { - const IID: ::windows_core::GUID = ::windows_core::GUID::zeroed(); -} #[repr(C)] #[doc(hidden)] pub struct IAttach_Vtbl { pub base__: IMAPIProp_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDistList(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDistList, IDistList_Vtbl, 0); +::windows_core::imp::interface_hierarchy!(IDistList, ::windows_core::IUnknown, IMAPIProp, IMAPIContainer); impl IDistList { pub unsafe fn GetLastError(&self, hresult: ::windows_core::HRESULT, ulflags: u32, lppmapierror: *mut *mut MAPIERROR) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.GetLastError)(::windows_core::Interface::as_raw(self), hresult, ulflags, lppmapierror).ok() @@ -804,13 +779,6 @@ impl IDistList { (::windows_core::Interface::vtable(self).ResolveNames)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(lpproptagarray.unwrap_or(::std::ptr::null())), ulflags, lpadrlist, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDistList, ::windows_core::IUnknown, IMAPIProp, IMAPIContainer); -unsafe impl ::windows_core::Interface for IDistList { - type Vtable = IDistList_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDistList { - const IID: ::windows_core::GUID = ::windows_core::GUID::zeroed(); -} #[repr(C)] #[doc(hidden)] pub struct IDistList_Vtbl { @@ -823,9 +791,8 @@ pub struct IDistList_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] ResolveNames: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMAPIAdviseSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMAPIAdviseSink, IMAPIAdviseSink_Vtbl, 0); +::windows_core::imp::interface_hierarchy!(IMAPIAdviseSink, ::windows_core::IUnknown); impl IMAPIAdviseSink { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -833,13 +800,6 @@ impl IMAPIAdviseSink { (::windows_core::Interface::vtable(self).OnNotify)(::windows_core::Interface::as_raw(self), cnotif, lpnotifications) } } -::windows_core::imp::interface_hierarchy!(IMAPIAdviseSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMAPIAdviseSink { - type Vtable = IMAPIAdviseSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMAPIAdviseSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::zeroed(); -} #[repr(C)] #[doc(hidden)] pub struct IMAPIAdviseSink_Vtbl { @@ -849,9 +809,8 @@ pub struct IMAPIAdviseSink_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] OnNotify: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMAPIContainer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMAPIContainer, IMAPIContainer_Vtbl, 0); +::windows_core::imp::interface_hierarchy!(IMAPIContainer, ::windows_core::IUnknown, IMAPIProp); impl IMAPIContainer { pub unsafe fn GetLastError(&self, hresult: ::windows_core::HRESULT, ulflags: u32, lppmapierror: *mut *mut MAPIERROR) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.GetLastError)(::windows_core::Interface::as_raw(self), hresult, ulflags, lppmapierror).ok() @@ -918,13 +877,6 @@ impl IMAPIContainer { (::windows_core::Interface::vtable(self).GetSearchCriteria)(::windows_core::Interface::as_raw(self), ulflags, lpprestriction, lppcontainerlist, ::core::mem::transmute(lpulsearchstate.unwrap_or(::std::ptr::null_mut()))).ok() } } -::windows_core::imp::interface_hierarchy!(IMAPIContainer, ::windows_core::IUnknown, IMAPIProp); -unsafe impl ::windows_core::Interface for IMAPIContainer { - type Vtable = IMAPIContainer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMAPIContainer { - const IID: ::windows_core::GUID = ::windows_core::GUID::zeroed(); -} #[repr(C)] #[doc(hidden)] pub struct IMAPIContainer_Vtbl { @@ -941,9 +893,8 @@ pub struct IMAPIContainer_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetSearchCriteria: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMAPIControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMAPIControl, IMAPIControl_Vtbl, 0); +::windows_core::imp::interface_hierarchy!(IMAPIControl, ::windows_core::IUnknown); impl IMAPIControl { pub unsafe fn GetLastError(&self, hresult: ::windows_core::HRESULT, ulflags: u32) -> ::windows_core::Result<*mut MAPIERROR> { let mut result__ = ::std::mem::zeroed(); @@ -956,13 +907,6 @@ impl IMAPIControl { (::windows_core::Interface::vtable(self).GetState)(::windows_core::Interface::as_raw(self), ulflags, lpulstate).ok() } } -::windows_core::imp::interface_hierarchy!(IMAPIControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMAPIControl { - type Vtable = IMAPIControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMAPIControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::zeroed(); -} #[repr(C)] #[doc(hidden)] pub struct IMAPIControl_Vtbl { @@ -971,9 +915,8 @@ pub struct IMAPIControl_Vtbl { pub Activate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulflags: u32, uluiparam: usize) -> ::windows_core::HRESULT, pub GetState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulflags: u32, lpulstate: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMAPIFolder(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMAPIFolder, IMAPIFolder_Vtbl, 0); +::windows_core::imp::interface_hierarchy!(IMAPIFolder, ::windows_core::IUnknown, IMAPIProp, IMAPIContainer); impl IMAPIFolder { pub unsafe fn GetLastError(&self, hresult: ::windows_core::HRESULT, ulflags: u32, lppmapierror: *mut *mut MAPIERROR) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.GetLastError)(::windows_core::Interface::as_raw(self), hresult, ulflags, lppmapierror).ok() @@ -1094,13 +1037,6 @@ impl IMAPIFolder { (::windows_core::Interface::vtable(self).EmptyFolder)(::windows_core::Interface::as_raw(self), uluiparam, lpprogress.into_param().abi(), ulflags).ok() } } -::windows_core::imp::interface_hierarchy!(IMAPIFolder, ::windows_core::IUnknown, IMAPIProp, IMAPIContainer); -unsafe impl ::windows_core::Interface for IMAPIFolder { - type Vtable = IMAPIFolder_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMAPIFolder { - const IID: ::windows_core::GUID = ::windows_core::GUID::zeroed(); -} #[repr(C)] #[doc(hidden)] pub struct IMAPIFolder_Vtbl { @@ -1117,9 +1053,8 @@ pub struct IMAPIFolder_Vtbl { pub SaveContentsSort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpsortcriteria: *const SSortOrderSet, ulflags: u32) -> ::windows_core::HRESULT, pub EmptyFolder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uluiparam: usize, lpprogress: *mut ::core::ffi::c_void, ulflags: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMAPIProgress(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMAPIProgress, IMAPIProgress_Vtbl, 0); +::windows_core::imp::interface_hierarchy!(IMAPIProgress, ::windows_core::IUnknown); impl IMAPIProgress { pub unsafe fn Progress(&self, ulvalue: u32, ulcount: u32, ultotal: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Progress)(::windows_core::Interface::as_raw(self), ulvalue, ulcount, ultotal).ok() @@ -1137,13 +1072,6 @@ impl IMAPIProgress { (::windows_core::Interface::vtable(self).SetLimits)(::windows_core::Interface::as_raw(self), lpulmin, lpulmax, lpulflags).ok() } } -::windows_core::imp::interface_hierarchy!(IMAPIProgress, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMAPIProgress { - type Vtable = IMAPIProgress_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMAPIProgress { - const IID: ::windows_core::GUID = ::windows_core::GUID::zeroed(); -} #[repr(C)] #[doc(hidden)] pub struct IMAPIProgress_Vtbl { @@ -1154,9 +1082,8 @@ pub struct IMAPIProgress_Vtbl { pub GetMin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpulmin: *mut u32) -> ::windows_core::HRESULT, pub SetLimits: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpulmin: *mut u32, lpulmax: *mut u32, lpulflags: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMAPIProp(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMAPIProp, IMAPIProp_Vtbl, 0); +::windows_core::imp::interface_hierarchy!(IMAPIProp, ::windows_core::IUnknown); impl IMAPIProp { pub unsafe fn GetLastError(&self, hresult: ::windows_core::HRESULT, ulflags: u32, lppmapierror: *mut *mut MAPIERROR) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetLastError)(::windows_core::Interface::as_raw(self), hresult, ulflags, lppmapierror).ok() @@ -1202,13 +1129,6 @@ impl IMAPIProp { (::windows_core::Interface::vtable(self).GetIDsFromNames)(::windows_core::Interface::as_raw(self), cpropnames, lpppropnames, ulflags, lppproptags).ok() } } -::windows_core::imp::interface_hierarchy!(IMAPIProp, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMAPIProp { - type Vtable = IMAPIProp_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMAPIProp { - const IID: ::windows_core::GUID = ::windows_core::GUID::zeroed(); -} #[repr(C)] #[doc(hidden)] pub struct IMAPIProp_Vtbl { @@ -1231,9 +1151,8 @@ pub struct IMAPIProp_Vtbl { pub GetNamesFromIDs: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lppproptags: *mut *mut SPropTagArray, lppropsetguid: *mut ::windows_core::GUID, ulflags: u32, lpcpropnames: *mut u32, lppppropnames: *mut *mut *mut MAPINAMEID) -> ::windows_core::HRESULT, pub GetIDsFromNames: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cpropnames: u32, lpppropnames: *mut *mut MAPINAMEID, ulflags: u32, lppproptags: *mut *mut SPropTagArray) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMAPIStatus(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMAPIStatus, IMAPIStatus_Vtbl, 0); +::windows_core::imp::interface_hierarchy!(IMAPIStatus, ::windows_core::IUnknown, IMAPIProp); impl IMAPIStatus { pub unsafe fn GetLastError(&self, hresult: ::windows_core::HRESULT, ulflags: u32, lppmapierror: *mut *mut MAPIERROR) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.GetLastError)(::windows_core::Interface::as_raw(self), hresult, ulflags, lppmapierror).ok() @@ -1291,13 +1210,6 @@ impl IMAPIStatus { (::windows_core::Interface::vtable(self).FlushQueues)(::windows_core::Interface::as_raw(self), uluiparam, lptargettransport.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), ::core::mem::transmute(lptargettransport.as_deref().map_or(::core::ptr::null(), |slice| slice.as_ptr())), ulflags).ok() } } -::windows_core::imp::interface_hierarchy!(IMAPIStatus, ::windows_core::IUnknown, IMAPIProp); -unsafe impl ::windows_core::Interface for IMAPIStatus { - type Vtable = IMAPIStatus_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMAPIStatus { - const IID: ::windows_core::GUID = ::windows_core::GUID::zeroed(); -} #[repr(C)] #[doc(hidden)] pub struct IMAPIStatus_Vtbl { @@ -1307,9 +1219,8 @@ pub struct IMAPIStatus_Vtbl { pub ChangePassword: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpoldpass: *const i8, lpnewpass: *const i8, ulflags: u32) -> ::windows_core::HRESULT, pub FlushQueues: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uluiparam: usize, cbtargettransport: u32, lptargettransport: *const ENTRYID, ulflags: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMAPITable(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMAPITable, IMAPITable_Vtbl, 0); +::windows_core::imp::interface_hierarchy!(IMAPITable, ::windows_core::IUnknown); impl IMAPITable { pub unsafe fn GetLastError(&self, hresult: ::windows_core::HRESULT, ulflags: u32, lppmapierror: *mut *mut MAPIERROR) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetLastError)(::windows_core::Interface::as_raw(self), hresult, ulflags, lppmapierror).ok() @@ -1392,13 +1303,6 @@ impl IMAPITable { (::windows_core::Interface::vtable(self).SetCollapseState)(::windows_core::Interface::as_raw(self), ulflags, cbcollapsestate, pbcollapsestate, lpbklocation).ok() } } -::windows_core::imp::interface_hierarchy!(IMAPITable, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMAPITable { - type Vtable = IMAPITable_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMAPITable { - const IID: ::windows_core::GUID = ::windows_core::GUID::zeroed(); -} #[repr(C)] #[doc(hidden)] pub struct IMAPITable_Vtbl { @@ -1439,9 +1343,8 @@ pub struct IMAPITable_Vtbl { pub GetCollapseState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulflags: u32, cbinstancekey: u32, lpbinstancekey: *mut u8, lpcbcollapsestate: *mut u32, lppbcollapsestate: *mut *mut u8) -> ::windows_core::HRESULT, pub SetCollapseState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulflags: u32, cbcollapsestate: u32, pbcollapsestate: *mut u8, lpbklocation: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMailUser(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMailUser, IMailUser_Vtbl, 0); +::windows_core::imp::interface_hierarchy!(IMailUser, ::windows_core::IUnknown, IMAPIProp); impl IMailUser { pub unsafe fn GetLastError(&self, hresult: ::windows_core::HRESULT, ulflags: u32, lppmapierror: *mut *mut MAPIERROR) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.GetLastError)(::windows_core::Interface::as_raw(self), hresult, ulflags, lppmapierror).ok() @@ -1487,21 +1390,13 @@ impl IMailUser { (::windows_core::Interface::vtable(self).base__.GetIDsFromNames)(::windows_core::Interface::as_raw(self), cpropnames, lpppropnames, ulflags, lppproptags).ok() } } -::windows_core::imp::interface_hierarchy!(IMailUser, ::windows_core::IUnknown, IMAPIProp); -unsafe impl ::windows_core::Interface for IMailUser { - type Vtable = IMailUser_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMailUser { - const IID: ::windows_core::GUID = ::windows_core::GUID::zeroed(); -} #[repr(C)] #[doc(hidden)] pub struct IMailUser_Vtbl { pub base__: IMAPIProp_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMessage(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMessage, IMessage_Vtbl, 0); +::windows_core::imp::interface_hierarchy!(IMessage, ::windows_core::IUnknown, IMAPIProp); impl IMessage { pub unsafe fn GetLastError(&self, hresult: ::windows_core::HRESULT, ulflags: u32, lppmapierror: *mut *mut MAPIERROR) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.GetLastError)(::windows_core::Interface::as_raw(self), hresult, ulflags, lppmapierror).ok() @@ -1579,13 +1474,6 @@ impl IMessage { (::windows_core::Interface::vtable(self).SetReadFlag)(::windows_core::Interface::as_raw(self), ulflags).ok() } } -::windows_core::imp::interface_hierarchy!(IMessage, ::windows_core::IUnknown, IMAPIProp); -unsafe impl ::windows_core::Interface for IMessage { - type Vtable = IMessage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMessage { - const IID: ::windows_core::GUID = ::windows_core::GUID::zeroed(); -} #[repr(C)] #[doc(hidden)] pub struct IMessage_Vtbl { @@ -1602,9 +1490,8 @@ pub struct IMessage_Vtbl { pub SubmitMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulflags: u32) -> ::windows_core::HRESULT, pub SetReadFlag: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulflags: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMsgStore(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMsgStore, IMsgStore_Vtbl, 0); +::windows_core::imp::interface_hierarchy!(IMsgStore, ::windows_core::IUnknown, IMAPIProp); impl IMsgStore { pub unsafe fn GetLastError(&self, hresult: ::windows_core::HRESULT, ulflags: u32, lppmapierror: *mut *mut MAPIERROR) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.GetLastError)(::windows_core::Interface::as_raw(self), hresult, ulflags, lppmapierror).ok() @@ -1701,13 +1588,6 @@ impl IMsgStore { (::windows_core::Interface::vtable(self).NotifyNewMail)(::windows_core::Interface::as_raw(self), lpnotification).ok() } } -::windows_core::imp::interface_hierarchy!(IMsgStore, ::windows_core::IUnknown, IMAPIProp); -unsafe impl ::windows_core::Interface for IMsgStore { - type Vtable = IMsgStore_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMsgStore { - const IID: ::windows_core::GUID = ::windows_core::GUID::zeroed(); -} #[repr(C)] #[doc(hidden)] pub struct IMsgStore_Vtbl { @@ -1729,9 +1609,8 @@ pub struct IMsgStore_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] NotifyNewMail: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProfSect(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IProfSect, IProfSect_Vtbl, 0); +::windows_core::imp::interface_hierarchy!(IProfSect, ::windows_core::IUnknown, IMAPIProp); impl IProfSect { pub unsafe fn GetLastError(&self, hresult: ::windows_core::HRESULT, ulflags: u32, lppmapierror: *mut *mut MAPIERROR) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.GetLastError)(::windows_core::Interface::as_raw(self), hresult, ulflags, lppmapierror).ok() @@ -1777,21 +1656,13 @@ impl IProfSect { (::windows_core::Interface::vtable(self).base__.GetIDsFromNames)(::windows_core::Interface::as_raw(self), cpropnames, lpppropnames, ulflags, lppproptags).ok() } } -::windows_core::imp::interface_hierarchy!(IProfSect, ::windows_core::IUnknown, IMAPIProp); -unsafe impl ::windows_core::Interface for IProfSect { - type Vtable = IProfSect_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProfSect { - const IID: ::windows_core::GUID = ::windows_core::GUID::zeroed(); -} #[repr(C)] #[doc(hidden)] pub struct IProfSect_Vtbl { pub base__: IMAPIProp_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPropData(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPropData, IPropData_Vtbl, 0); +::windows_core::imp::interface_hierarchy!(IPropData, ::windows_core::IUnknown, IMAPIProp); impl IPropData { pub unsafe fn GetLastError(&self, hresult: ::windows_core::HRESULT, ulflags: u32, lppmapierror: *mut *mut MAPIERROR) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.GetLastError)(::windows_core::Interface::as_raw(self), hresult, ulflags, lppmapierror).ok() @@ -1849,13 +1720,6 @@ impl IPropData { (::windows_core::Interface::vtable(self).HrAddObjProps)(::windows_core::Interface::as_raw(self), lppproptagarray, lprgulaccess).ok() } } -::windows_core::imp::interface_hierarchy!(IPropData, ::windows_core::IUnknown, IMAPIProp); -unsafe impl ::windows_core::Interface for IPropData { - type Vtable = IPropData_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPropData { - const IID: ::windows_core::GUID = ::windows_core::GUID::zeroed(); -} #[repr(C)] #[doc(hidden)] pub struct IPropData_Vtbl { @@ -1865,9 +1729,8 @@ pub struct IPropData_Vtbl { pub HrGetPropAccess: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lppproptagarray: *mut *mut SPropTagArray, lprgulaccess: *mut *mut u32) -> ::windows_core::HRESULT, pub HrAddObjProps: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lppproptagarray: *mut SPropTagArray, lprgulaccess: *mut *mut SPropProblemArray) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProviderAdmin(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IProviderAdmin, IProviderAdmin_Vtbl, 0); +::windows_core::imp::interface_hierarchy!(IProviderAdmin, ::windows_core::IUnknown); impl IProviderAdmin { pub unsafe fn GetLastError(&self, hresult: ::windows_core::HRESULT, ulflags: u32) -> ::windows_core::Result<*mut MAPIERROR> { let mut result__ = ::std::mem::zeroed(); @@ -1891,13 +1754,6 @@ impl IProviderAdmin { (::windows_core::Interface::vtable(self).OpenProfileSection)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(lpuid.unwrap_or(::std::ptr::null())), ::core::mem::transmute(lpinterface.unwrap_or(::std::ptr::null())), ulflags, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IProviderAdmin, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProviderAdmin { - type Vtable = IProviderAdmin_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProviderAdmin { - const IID: ::windows_core::GUID = ::windows_core::GUID::zeroed(); -} #[repr(C)] #[doc(hidden)] pub struct IProviderAdmin_Vtbl { @@ -1911,9 +1767,8 @@ pub struct IProviderAdmin_Vtbl { pub DeleteProvider: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpuid: *const MAPIUID) -> ::windows_core::HRESULT, pub OpenProfileSection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpuid: *const MAPIUID, lpinterface: *const ::windows_core::GUID, ulflags: u32, lppprofsect: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITableData(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITableData, ITableData_Vtbl, 0); +::windows_core::imp::interface_hierarchy!(ITableData, ::windows_core::IUnknown); impl ITableData { pub unsafe fn HrGetView(&self, lpssortorderset: *mut SSortOrderSet, lpfcallerrelease: *mut CALLERRELEASE, ulcallerdata: u32, lppmapitable: *mut ::core::option::Option) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).HrGetView)(::windows_core::Interface::as_raw(self), lpssortorderset, lpfcallerrelease, ulcallerdata, ::core::mem::transmute(lppmapitable)).ok() @@ -1959,13 +1814,6 @@ impl ITableData { (::windows_core::Interface::vtable(self).HrDeleteRows)(::windows_core::Interface::as_raw(self), ulflags, lprowsettodelete, crowsdeleted).ok() } } -::windows_core::imp::interface_hierarchy!(ITableData, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITableData { - type Vtable = ITableData_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITableData { - const IID: ::windows_core::GUID = ::windows_core::GUID::zeroed(); -} #[repr(C)] #[doc(hidden)] pub struct ITableData_Vtbl { @@ -2004,30 +1852,21 @@ pub struct ITableData_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] HrDeleteRows: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWABExtInit(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWABExtInit, IWABExtInit_Vtbl, 0xea22ebf0_87a4_11d1_9acf_00a0c91f9c8b); +::windows_core::imp::interface_hierarchy!(IWABExtInit, ::windows_core::IUnknown); impl IWABExtInit { pub unsafe fn Initialize(&self, lpwabextdisplay: *mut WABEXTDISPLAY) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Initialize)(::windows_core::Interface::as_raw(self), lpwabextdisplay).ok() } } -::windows_core::imp::interface_hierarchy!(IWABExtInit, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWABExtInit { - type Vtable = IWABExtInit_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWABExtInit { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xea22ebf0_87a4_11d1_9acf_00a0c91f9c8b); -} #[repr(C)] #[doc(hidden)] pub struct IWABExtInit_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpwabextdisplay: *mut WABEXTDISPLAY) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWABObject(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWABObject, IWABObject_Vtbl, 0); +::windows_core::imp::interface_hierarchy!(IWABObject, ::windows_core::IUnknown); impl IWABObject { pub unsafe fn GetLastError(&self, hresult: ::windows_core::HRESULT, ulflags: u32, lppmapierror: *mut *mut MAPIERROR) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetLastError)(::windows_core::Interface::as_raw(self), hresult, ulflags, lppmapierror).ok() @@ -2108,13 +1947,6 @@ impl IWABObject { (::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::imp::interface_hierarchy!(IWABObject, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWABObject { - type Vtable = IWABObject_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWABObject { - const IID: ::windows_core::GUID = ::windows_core::GUID::zeroed(); -} #[repr(C)] #[doc(hidden)] pub struct IWABObject_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/System/Antimalware/impl.rs b/crates/libs/windows/src/Windows/Win32/System/Antimalware/impl.rs index 54569ba90f..f5b6304d57 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Antimalware/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Antimalware/impl.rs @@ -22,7 +22,7 @@ impl IAmsiStream_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAntimalware_Impl: Sized { @@ -49,7 +49,7 @@ impl IAntimalware_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAntimalware2_Impl: Sized + IAntimalware_Impl { @@ -72,7 +72,7 @@ impl IAntimalware2_Vtbl { Self { base__: IAntimalware_Vtbl::new::(), Notify: Notify:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IAntimalwareProvider_Impl: Sized { @@ -118,7 +118,7 @@ impl IAntimalwareProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAntimalwareProvider2_Impl: Sized + IAntimalwareProvider_Impl { @@ -141,7 +141,7 @@ impl IAntimalwareProvider2_Vtbl { Self { base__: IAntimalwareProvider_Vtbl::new::(), Notify: Notify:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IAntimalwareUacProvider_Impl: Sized { @@ -180,6 +180,6 @@ impl IAntimalwareUacProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 b8988a7e28..67c6cd6384 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Antimalware/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Antimalware/mod.rs @@ -74,9 +74,8 @@ where ::windows_targets::link!("kernel32.dll" "system" fn InstallELAMCertificateInfo(elamfile : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); InstallELAMCertificateInfo(elamfile.into_param().abi()).ok() } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAmsiStream(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAmsiStream, IAmsiStream_Vtbl, 0x3e47f2e5_81d4_4d3b_897f_545096770373); +::windows_core::imp::interface_hierarchy!(IAmsiStream, ::windows_core::IUnknown); impl IAmsiStream { pub unsafe fn GetAttribute(&self, attribute: AMSI_ATTRIBUTE, data: &mut [u8], retdata: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetAttribute)(::windows_core::Interface::as_raw(self), attribute, data.len().try_into().unwrap(), ::core::mem::transmute(data.as_ptr()), retdata).ok() @@ -85,13 +84,6 @@ impl IAmsiStream { (::windows_core::Interface::vtable(self).Read)(::windows_core::Interface::as_raw(self), position, buffer.len().try_into().unwrap(), ::core::mem::transmute(buffer.as_ptr()), readsize).ok() } } -::windows_core::imp::interface_hierarchy!(IAmsiStream, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAmsiStream { - type Vtable = IAmsiStream_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAmsiStream { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3e47f2e5_81d4_4d3b_897f_545096770373); -} #[repr(C)] #[doc(hidden)] pub struct IAmsiStream_Vtbl { @@ -99,9 +91,8 @@ pub struct IAmsiStream_Vtbl { pub GetAttribute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, attribute: AMSI_ATTRIBUTE, datasize: u32, data: *mut u8, retdata: *mut u32) -> ::windows_core::HRESULT, pub Read: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, position: u64, size: u32, buffer: *mut u8, readsize: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAntimalware(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAntimalware, IAntimalware_Vtbl, 0x82d29c2e_f062_44e6_b5c9_3d9a2f24a2df); +::windows_core::imp::interface_hierarchy!(IAntimalware, ::windows_core::IUnknown); impl IAntimalware { pub unsafe fn Scan(&self, stream: P0, result: *mut AMSI_RESULT, provider: *mut ::core::option::Option) -> ::windows_core::Result<()> where @@ -113,13 +104,6 @@ impl IAntimalware { (::windows_core::Interface::vtable(self).CloseSession)(::windows_core::Interface::as_raw(self), session) } } -::windows_core::imp::interface_hierarchy!(IAntimalware, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAntimalware { - type Vtable = IAntimalware_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAntimalware { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x82d29c2e_f062_44e6_b5c9_3d9a2f24a2df); -} #[repr(C)] #[doc(hidden)] pub struct IAntimalware_Vtbl { @@ -127,9 +111,8 @@ pub struct IAntimalware_Vtbl { pub Scan: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, stream: *mut ::core::ffi::c_void, result: *mut AMSI_RESULT, provider: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CloseSession: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, session: u64), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAntimalware2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAntimalware2, IAntimalware2_Vtbl, 0x301035b5_2d42_4f56_8c65_2dcaa7fb3cdc); +::windows_core::imp::interface_hierarchy!(IAntimalware2, ::windows_core::IUnknown, IAntimalware); impl IAntimalware2 { pub unsafe fn Scan(&self, stream: P0, result: *mut AMSI_RESULT, provider: *mut ::core::option::Option) -> ::windows_core::Result<()> where @@ -149,22 +132,14 @@ impl IAntimalware2 { (::windows_core::Interface::vtable(self).Notify)(::windows_core::Interface::as_raw(self), buffer, length, contentname.into_param().abi(), appname.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAntimalware2, ::windows_core::IUnknown, IAntimalware); -unsafe impl ::windows_core::Interface for IAntimalware2 { - type Vtable = IAntimalware2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAntimalware2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x301035b5_2d42_4f56_8c65_2dcaa7fb3cdc); -} #[repr(C)] #[doc(hidden)] pub struct IAntimalware2_Vtbl { pub base__: IAntimalware_Vtbl, pub Notify: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, buffer: *const ::core::ffi::c_void, length: u32, contentname: ::windows_core::PCWSTR, appname: ::windows_core::PCWSTR, presult: *mut AMSI_RESULT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAntimalwareProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAntimalwareProvider, IAntimalwareProvider_Vtbl, 0xb2cabfe3_fe04_42b1_a5df_08d483d4d125); +::windows_core::imp::interface_hierarchy!(IAntimalwareProvider, ::windows_core::IUnknown); impl IAntimalwareProvider { pub unsafe fn Scan(&self, stream: P0) -> ::windows_core::Result where @@ -181,13 +156,6 @@ impl IAntimalwareProvider { (::windows_core::Interface::vtable(self).DisplayName)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAntimalwareProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAntimalwareProvider { - type Vtable = IAntimalwareProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAntimalwareProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb2cabfe3_fe04_42b1_a5df_08d483d4d125); -} #[repr(C)] #[doc(hidden)] pub struct IAntimalwareProvider_Vtbl { @@ -196,9 +164,8 @@ pub struct IAntimalwareProvider_Vtbl { pub CloseSession: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, session: u64), pub DisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, displayname: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAntimalwareProvider2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAntimalwareProvider2, IAntimalwareProvider2_Vtbl, 0x7c1e6570_3f73_4e0f_8ad4_98b94cd3290f); +::windows_core::imp::interface_hierarchy!(IAntimalwareProvider2, ::windows_core::IUnknown, IAntimalwareProvider); impl IAntimalwareProvider2 { pub unsafe fn Scan(&self, stream: P0) -> ::windows_core::Result where @@ -223,22 +190,14 @@ impl IAntimalwareProvider2 { (::windows_core::Interface::vtable(self).Notify)(::windows_core::Interface::as_raw(self), buffer, length, contentname.into_param().abi(), appname.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAntimalwareProvider2, ::windows_core::IUnknown, IAntimalwareProvider); -unsafe impl ::windows_core::Interface for IAntimalwareProvider2 { - type Vtable = IAntimalwareProvider2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAntimalwareProvider2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7c1e6570_3f73_4e0f_8ad4_98b94cd3290f); -} #[repr(C)] #[doc(hidden)] pub struct IAntimalwareProvider2_Vtbl { pub base__: IAntimalwareProvider_Vtbl, pub Notify: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, buffer: *const ::core::ffi::c_void, length: u32, contentname: ::windows_core::PCWSTR, appname: ::windows_core::PCWSTR, presult: *mut AMSI_RESULT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAntimalwareUacProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAntimalwareUacProvider, IAntimalwareUacProvider_Vtbl, 0xb2cabfe4_fe04_42b1_a5df_08d483d4d125); +::windows_core::imp::interface_hierarchy!(IAntimalwareUacProvider, ::windows_core::IUnknown); impl IAntimalwareUacProvider { pub unsafe fn UacScan(&self, context: *const AMSI_UAC_REQUEST_CONTEXT) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -249,13 +208,6 @@ impl IAntimalwareUacProvider { (::windows_core::Interface::vtable(self).DisplayName)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAntimalwareUacProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAntimalwareUacProvider { - type Vtable = IAntimalwareUacProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAntimalwareUacProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb2cabfe4_fe04_42b1_a5df_08d483d4d125); -} #[repr(C)] #[doc(hidden)] pub struct IAntimalwareUacProvider_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/System/ApplicationInstallationAndServicing/impl.rs b/crates/libs/windows/src/Windows/Win32/System/ApplicationInstallationAndServicing/impl.rs index 51b04f3afd..3544b05848 100644 --- a/crates/libs/windows/src/Windows/Win32/System/ApplicationInstallationAndServicing/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/ApplicationInstallationAndServicing/impl.rs @@ -49,7 +49,7 @@ impl IAssemblyCache_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -87,7 +87,7 @@ impl IAssemblyCacheItem_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAssemblyName_Impl: Sized { @@ -169,7 +169,7 @@ impl IAssemblyName_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -220,7 +220,7 @@ impl IEnumMsmDependency_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -271,7 +271,7 @@ impl IEnumMsmError_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumMsmString_Impl: Sized { @@ -318,7 +318,7 @@ impl IEnumMsmString_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -368,7 +368,7 @@ impl IMsmDependencies_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -406,7 +406,7 @@ impl IMsmDependency_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -484,7 +484,7 @@ impl IMsmError_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -534,7 +534,7 @@ impl IMsmErrors_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -561,7 +561,7 @@ impl IMsmGetFiles_Vtbl { Self { base__: super::Com::IDispatch_Vtbl::new::(), ModuleFiles: ModuleFiles:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -681,7 +681,7 @@ impl IMsmMerge_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -725,7 +725,7 @@ impl IMsmStrings_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IPMApplicationInfo_Impl: Sized { @@ -1333,7 +1333,7 @@ impl IPMApplicationInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPMApplicationInfoEnumerator_Impl: Sized { @@ -1356,7 +1356,7 @@ impl IPMApplicationInfoEnumerator_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Next: Next:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPMBackgroundServiceAgentInfo_Impl: Sized { @@ -1503,7 +1503,7 @@ impl IPMBackgroundServiceAgentInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPMBackgroundServiceAgentInfoEnumerator_Impl: Sized { @@ -1526,7 +1526,7 @@ impl IPMBackgroundServiceAgentInfoEnumerator_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Next: Next:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPMBackgroundWorkerInfo_Impl: Sized { @@ -1605,7 +1605,7 @@ impl IPMBackgroundWorkerInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPMBackgroundWorkerInfoEnumerator_Impl: Sized { @@ -1628,7 +1628,7 @@ impl IPMBackgroundWorkerInfoEnumerator_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Next: Next:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1904,7 +1904,7 @@ impl IPMDeploymentManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPMEnumerationManager_Impl: Sized { @@ -2097,7 +2097,7 @@ impl IPMEnumerationManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPMExtensionCachedFileUpdaterInfo_Impl: Sized { @@ -2120,7 +2120,7 @@ impl IPMExtensionCachedFileUpdaterInfo_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), SupportsUpdates: SupportsUpdates:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPMExtensionContractInfo_Impl: Sized { @@ -2137,7 +2137,7 @@ impl IPMExtensionContractInfo_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), get_InvocationInfo: get_InvocationInfo:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPMExtensionFileExtensionInfo_Impl: Sized { @@ -2199,7 +2199,7 @@ impl IPMExtensionFileExtensionInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPMExtensionFileOpenPickerInfo_Impl: Sized { @@ -2232,7 +2232,7 @@ impl IPMExtensionFileOpenPickerInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPMExtensionFileSavePickerInfo_Impl: Sized { @@ -2265,7 +2265,7 @@ impl IPMExtensionFileSavePickerInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPMExtensionInfo_Impl: Sized { @@ -2326,7 +2326,7 @@ impl IPMExtensionInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPMExtensionInfoEnumerator_Impl: Sized { @@ -2349,7 +2349,7 @@ impl IPMExtensionInfoEnumerator_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Next: Next:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPMExtensionProtocolInfo_Impl: Sized { @@ -2376,7 +2376,7 @@ impl IPMExtensionProtocolInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPMExtensionShareTargetInfo_Impl: Sized { @@ -2416,7 +2416,7 @@ impl IPMExtensionShareTargetInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPMLiveTileJobInfo_Impl: Sized { @@ -2657,7 +2657,7 @@ impl IPMLiveTileJobInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPMLiveTileJobInfoEnumerator_Impl: Sized { @@ -2680,7 +2680,7 @@ impl IPMLiveTileJobInfoEnumerator_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Next: Next:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPMTaskInfo_Impl: Sized { @@ -2912,7 +2912,7 @@ impl IPMTaskInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPMTaskInfoEnumerator_Impl: Sized { @@ -2935,7 +2935,7 @@ impl IPMTaskInfoEnumerator_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Next: Next:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPMTileInfo_Impl: Sized { @@ -3194,7 +3194,7 @@ impl IPMTileInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPMTileInfoEnumerator_Impl: Sized { @@ -3217,7 +3217,7 @@ impl IPMTileInfoEnumerator_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Next: Next:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPMTilePropertyEnumerator_Impl: Sized { @@ -3240,7 +3240,7 @@ impl IPMTilePropertyEnumerator_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Next: Next:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPMTilePropertyInfo_Impl: Sized { @@ -3280,7 +3280,7 @@ impl IPMTilePropertyInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IValidate_Impl: Sized { @@ -3342,6 +3342,6 @@ impl IValidate_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 f5cbb667ea..b2fcf8b70c 100644 --- a/crates/libs/windows/src/Windows/Win32/System/ApplicationInstallationAndServicing/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/ApplicationInstallationAndServicing/mod.rs @@ -2892,9 +2892,8 @@ where ::windows_targets::link!("kernel32.dll" "system" fn ZombifyActCtx(hactctx : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); ZombifyActCtx(hactctx.into_param().abi()).ok() } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAssemblyCache(::windows_core::IUnknown); +::windows_core::imp::com_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 @@ -2925,13 +2924,6 @@ impl IAssemblyCache { (::windows_core::Interface::vtable(self).InstallAssembly)(::windows_core::Interface::as_raw(self), dwflags, pszmanifestfilepath.into_param().abi(), prefdata).ok() } } -::windows_core::imp::interface_hierarchy!(IAssemblyCache, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAssemblyCache { - type Vtable = IAssemblyCache_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAssemblyCache { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe707dcde_d1cd_11d2_bab9_00c04f8eceae); -} #[repr(C)] #[doc(hidden)] pub struct IAssemblyCache_Vtbl { @@ -2942,9 +2934,8 @@ pub struct IAssemblyCache_Vtbl { pub Reserved: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppunk: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub InstallAssembly: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwflags: u32, pszmanifestfilepath: ::windows_core::PCWSTR, prefdata: *mut FUSION_INSTALL_REFERENCE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAssemblyCacheItem(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAssemblyCacheItem, IAssemblyCacheItem_Vtbl, 0x9e3aaeb4_d1cd_11d2_bab9_00c04f8eceae); +::windows_core::imp::interface_hierarchy!(IAssemblyCacheItem, ::windows_core::IUnknown); impl IAssemblyCacheItem { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -2961,13 +2952,6 @@ impl IAssemblyCacheItem { (::windows_core::Interface::vtable(self).AbortItem)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IAssemblyCacheItem, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAssemblyCacheItem { - type Vtable = IAssemblyCacheItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAssemblyCacheItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9e3aaeb4_d1cd_11d2_bab9_00c04f8eceae); -} #[repr(C)] #[doc(hidden)] pub struct IAssemblyCacheItem_Vtbl { @@ -2979,9 +2963,8 @@ pub struct IAssemblyCacheItem_Vtbl { pub Commit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwflags: u32, puldisposition: *mut u32) -> ::windows_core::HRESULT, pub AbortItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAssemblyName(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAssemblyName, IAssemblyName_Vtbl, 0xcd193bc0_b4bc_11d2_9833_00c04fc31d2e); +::windows_core::imp::interface_hierarchy!(IAssemblyName, ::windows_core::IUnknown); impl IAssemblyName { pub unsafe fn SetProperty(&self, propertyid: u32, pvproperty: *mut ::core::ffi::c_void, cbproperty: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetProperty)(::windows_core::Interface::as_raw(self), propertyid, pvproperty, cbproperty).ok() @@ -3020,13 +3003,6 @@ impl IAssemblyName { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAssemblyName, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAssemblyName { - type Vtable = IAssemblyName_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAssemblyName { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcd193bc0_b4bc_11d2_9833_00c04fc31d2e); -} #[repr(C)] #[doc(hidden)] pub struct IAssemblyName_Vtbl { @@ -3041,9 +3017,8 @@ pub struct IAssemblyName_Vtbl { pub IsEqual: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pname: *mut ::core::ffi::c_void, dwcmpflags: u32) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pname: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumMsmDependency(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumMsmDependency, IEnumMsmDependency_Vtbl, 0x0adda82c_2c26_11d2_ad65_00a0c9af11a6); +::windows_core::imp::interface_hierarchy!(IEnumMsmDependency, ::windows_core::IUnknown); impl IEnumMsmDependency { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -3061,13 +3036,6 @@ impl IEnumMsmDependency { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumMsmDependency, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumMsmDependency { - type Vtable = IEnumMsmDependency_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumMsmDependency { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0adda82c_2c26_11d2_ad65_00a0c9af11a6); -} #[repr(C)] #[doc(hidden)] pub struct IEnumMsmDependency_Vtbl { @@ -3080,9 +3048,8 @@ pub struct IEnumMsmDependency_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pemsmdependencies: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumMsmError(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumMsmError, IEnumMsmError_Vtbl, 0x0adda829_2c26_11d2_ad65_00a0c9af11a6); +::windows_core::imp::interface_hierarchy!(IEnumMsmError, ::windows_core::IUnknown); impl IEnumMsmError { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -3100,13 +3067,6 @@ impl IEnumMsmError { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumMsmError, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumMsmError { - type Vtable = IEnumMsmError_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumMsmError { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0adda829_2c26_11d2_ad65_00a0c9af11a6); -} #[repr(C)] #[doc(hidden)] pub struct IEnumMsmError_Vtbl { @@ -3119,9 +3079,8 @@ pub struct IEnumMsmError_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pemsmerrors: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumMsmString(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumMsmString, IEnumMsmString_Vtbl, 0x0adda826_2c26_11d2_ad65_00a0c9af11a6); +::windows_core::imp::interface_hierarchy!(IEnumMsmString, ::windows_core::IUnknown); impl IEnumMsmString { pub unsafe fn Next(&self, cfetch: u32, rgbstrstrings: *mut ::windows_core::BSTR, pcfetched: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), cfetch, ::core::mem::transmute(rgbstrstrings), pcfetched).ok() @@ -3137,13 +3096,6 @@ impl IEnumMsmString { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumMsmString, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumMsmString { - type Vtable = IEnumMsmString_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumMsmString { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0adda826_2c26_11d2_ad65_00a0c9af11a6); -} #[repr(C)] #[doc(hidden)] pub struct IEnumMsmString_Vtbl { @@ -3153,11 +3105,15 @@ pub struct IEnumMsmString_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pemsmstrings: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMsmDependencies(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMsmDependencies, + IMsmDependencies_Vtbl, + 0x0adda82d_2c26_11d2_ad65_00a0c9af11a6 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMsmDependencies, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMsmDependencies { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3175,16 +3131,6 @@ impl IMsmDependencies { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMsmDependencies, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMsmDependencies { - type Vtable = IMsmDependencies_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMsmDependencies { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0adda82d_2c26_11d2_ad65_00a0c9af11a6); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMsmDependencies_Vtbl { @@ -3196,11 +3142,15 @@ pub struct IMsmDependencies_Vtbl { pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, count: *mut i32) -> ::windows_core::HRESULT, pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMsmDependency(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMsmDependency, + IMsmDependency_Vtbl, + 0x0adda82b_2c26_11d2_ad65_00a0c9af11a6 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMsmDependency, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMsmDependency { pub unsafe fn Module(&self, module: *mut ::windows_core::BSTR) -> ::windows_core::Result<()> { @@ -3214,16 +3164,6 @@ impl IMsmDependency { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMsmDependency, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMsmDependency { - type Vtable = IMsmDependency_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMsmDependency { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0adda82b_2c26_11d2_ad65_00a0c9af11a6); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMsmDependency_Vtbl { @@ -3232,11 +3172,15 @@ pub struct IMsmDependency_Vtbl { pub Language: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, language: *mut i16) -> ::windows_core::HRESULT, pub Version: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, version: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMsmError(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMsmError, + IMsmError_Vtbl, + 0x0adda828_2c26_11d2_ad65_00a0c9af11a6 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMsmError, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMsmError { pub unsafe fn Type(&self, errortype: *mut msmErrorType) -> ::windows_core::Result<()> { @@ -3268,16 +3212,6 @@ impl IMsmError { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMsmError, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMsmError { - type Vtable = IMsmError_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMsmError { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0adda828_2c26_11d2_ad65_00a0c9af11a6); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMsmError_Vtbl { @@ -3296,11 +3230,15 @@ pub struct IMsmError_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] ModuleKeys: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMsmErrors(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMsmErrors, + IMsmErrors_Vtbl, + 0x0adda82a_2c26_11d2_ad65_00a0c9af11a6 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMsmErrors, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMsmErrors { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3318,16 +3256,6 @@ impl IMsmErrors { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMsmErrors, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMsmErrors { - type Vtable = IMsmErrors_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMsmErrors { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0adda82a_2c26_11d2_ad65_00a0c9af11a6); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMsmErrors_Vtbl { @@ -3339,11 +3267,15 @@ pub struct IMsmErrors_Vtbl { pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, count: *mut i32) -> ::windows_core::HRESULT, pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMsmGetFiles(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMsmGetFiles, + IMsmGetFiles_Vtbl, + 0x7041ae26_2d78_11d2_888a_00a0c981b015 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMsmGetFiles, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMsmGetFiles { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3354,16 +3286,6 @@ impl IMsmGetFiles { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMsmGetFiles, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMsmGetFiles { - type Vtable = IMsmGetFiles_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMsmGetFiles { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7041ae26_2d78_11d2_888a_00a0c981b015); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMsmGetFiles_Vtbl { @@ -3373,11 +3295,15 @@ pub struct IMsmGetFiles_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] ModuleFiles: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMsmMerge(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMsmMerge, + IMsmMerge_Vtbl, + 0x0adda82e_2c26_11d2_ad65_00a0c9af11a6 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMsmMerge, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMsmMerge { pub unsafe fn OpenDatabase(&self, path: P0) -> ::windows_core::Result<()> @@ -3455,16 +3381,6 @@ impl IMsmMerge { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMsmMerge, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMsmMerge { - type Vtable = IMsmMerge_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMsmMerge { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0adda82e_2c26_11d2_ad65_00a0c9af11a6); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMsmMerge_Vtbl { @@ -3489,11 +3405,15 @@ pub struct IMsmMerge_Vtbl { pub ExtractCAB: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filename: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub ExtractFiles: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMsmStrings(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMsmStrings, + IMsmStrings_Vtbl, + 0x0adda827_2c26_11d2_ad65_00a0c9af11a6 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMsmStrings, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMsmStrings { pub unsafe fn get_Item(&self, item: i32, r#return: *mut ::windows_core::BSTR) -> ::windows_core::Result<()> { @@ -3508,16 +3428,6 @@ impl IMsmStrings { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMsmStrings, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMsmStrings { - type Vtable = IMsmStrings_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMsmStrings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0adda827_2c26_11d2_ad65_00a0c9af11a6); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMsmStrings_Vtbl { @@ -3526,9 +3436,8 @@ pub struct IMsmStrings_Vtbl { pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, count: *mut i32) -> ::windows_core::HRESULT, pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPMApplicationInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPMApplicationInfo, IPMApplicationInfo_Vtbl, 0x50afb58a_438c_4088_9789_f8c4899829c7); +::windows_core::imp::interface_hierarchy!(IPMApplicationInfo, ::windows_core::IUnknown); impl IPMApplicationInfo { pub unsafe fn ProductID(&self) -> ::windows_core::Result<::windows_core::GUID> { let mut result__ = ::std::mem::zeroed(); @@ -3755,13 +3664,6 @@ impl IPMApplicationInfo { (::windows_core::Interface::vtable(self).set_Title)(::windows_core::Interface::as_raw(self), apptitle.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IPMApplicationInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPMApplicationInfo { - type Vtable = IPMApplicationInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPMApplicationInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x50afb58a_438c_4088_9789_f8c4899829c7); -} #[repr(C)] #[doc(hidden)] pub struct IPMApplicationInfo_Vtbl { @@ -3822,31 +3724,22 @@ pub struct IPMApplicationInfo_Vtbl { pub set_IsMdilMaintenanceNeeded: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fismdilmaintenanceneeded: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub set_Title: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, apptitle: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPMApplicationInfoEnumerator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPMApplicationInfoEnumerator, IPMApplicationInfoEnumerator_Vtbl, 0x0ec42a96_4d46_4dc6_a3d9_a7acaac0f5fa); +::windows_core::imp::interface_hierarchy!(IPMApplicationInfoEnumerator, ::windows_core::IUnknown); impl IPMApplicationInfoEnumerator { pub unsafe fn Next(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IPMApplicationInfoEnumerator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPMApplicationInfoEnumerator { - type Vtable = IPMApplicationInfoEnumerator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPMApplicationInfoEnumerator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0ec42a96_4d46_4dc6_a3d9_a7acaac0f5fa); -} #[repr(C)] #[doc(hidden)] pub struct IPMApplicationInfoEnumerator_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Next: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppappinfo: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPMBackgroundServiceAgentInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPMBackgroundServiceAgentInfo, IPMBackgroundServiceAgentInfo_Vtbl, 0x3a8b46da_928c_4879_998c_09dc96f3d490); +::windows_core::imp::interface_hierarchy!(IPMBackgroundServiceAgentInfo, ::windows_core::IUnknown); impl IPMBackgroundServiceAgentInfo { pub unsafe fn ProductID(&self) -> ::windows_core::Result<::windows_core::GUID> { let mut result__ = ::std::mem::zeroed(); @@ -3903,13 +3796,6 @@ impl IPMBackgroundServiceAgentInfo { (::windows_core::Interface::vtable(self).set_IsScheduleAllowed)(::windows_core::Interface::as_raw(self), isscheduleallowed.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IPMBackgroundServiceAgentInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPMBackgroundServiceAgentInfo { - type Vtable = IPMBackgroundServiceAgentInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPMBackgroundServiceAgentInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3a8b46da_928c_4879_998c_09dc96f3d490); -} #[repr(C)] #[doc(hidden)] pub struct IPMBackgroundServiceAgentInfo_Vtbl { @@ -3929,31 +3815,22 @@ pub struct IPMBackgroundServiceAgentInfo_Vtbl { pub set_IsScheduled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, isscheduled: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub set_IsScheduleAllowed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, isscheduleallowed: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPMBackgroundServiceAgentInfoEnumerator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPMBackgroundServiceAgentInfoEnumerator, IPMBackgroundServiceAgentInfoEnumerator_Vtbl, 0x18eb2072_ab56_43b3_872c_beafb7a6b391); +::windows_core::imp::interface_hierarchy!(IPMBackgroundServiceAgentInfoEnumerator, ::windows_core::IUnknown); impl IPMBackgroundServiceAgentInfoEnumerator { pub unsafe fn Next(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IPMBackgroundServiceAgentInfoEnumerator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPMBackgroundServiceAgentInfoEnumerator { - type Vtable = IPMBackgroundServiceAgentInfoEnumerator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPMBackgroundServiceAgentInfoEnumerator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x18eb2072_ab56_43b3_872c_beafb7a6b391); -} #[repr(C)] #[doc(hidden)] pub struct IPMBackgroundServiceAgentInfoEnumerator_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Next: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppbsainfo: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPMBackgroundWorkerInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPMBackgroundWorkerInfo, IPMBackgroundWorkerInfo_Vtbl, 0x7dd4531b_d3bf_4b6b_94f3_69c098b1497d); +::windows_core::imp::interface_hierarchy!(IPMBackgroundWorkerInfo, ::windows_core::IUnknown); impl IPMBackgroundWorkerInfo { pub unsafe fn ProductID(&self) -> ::windows_core::Result<::windows_core::GUID> { let mut result__ = ::std::mem::zeroed(); @@ -3978,13 +3855,6 @@ impl IPMBackgroundWorkerInfo { (::windows_core::Interface::vtable(self).IsBootWorker)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IPMBackgroundWorkerInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPMBackgroundWorkerInfo { - type Vtable = IPMBackgroundWorkerInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPMBackgroundWorkerInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7dd4531b_d3bf_4b6b_94f3_69c098b1497d); -} #[repr(C)] #[doc(hidden)] pub struct IPMBackgroundWorkerInfo_Vtbl { @@ -3996,31 +3866,22 @@ pub struct IPMBackgroundWorkerInfo_Vtbl { pub ExpectedRuntime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pexpectedruntime: *mut u32) -> ::windows_core::HRESULT, pub IsBootWorker: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pisbootworker: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPMBackgroundWorkerInfoEnumerator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPMBackgroundWorkerInfoEnumerator, IPMBackgroundWorkerInfoEnumerator_Vtbl, 0x87f479f8_90d8_4ec7_92b9_72787e2f636b); +::windows_core::imp::interface_hierarchy!(IPMBackgroundWorkerInfoEnumerator, ::windows_core::IUnknown); impl IPMBackgroundWorkerInfoEnumerator { pub unsafe fn Next(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IPMBackgroundWorkerInfoEnumerator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPMBackgroundWorkerInfoEnumerator { - type Vtable = IPMBackgroundWorkerInfoEnumerator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPMBackgroundWorkerInfoEnumerator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x87f479f8_90d8_4ec7_92b9_72787e2f636b); -} #[repr(C)] #[doc(hidden)] pub struct IPMBackgroundWorkerInfoEnumerator_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Next: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppbwinfo: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPMDeploymentManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPMDeploymentManager, IPMDeploymentManager_Vtbl, 0x35f785fa_1979_4a8b_bc8f_fd70eb0d1544); +::windows_core::imp::interface_hierarchy!(IPMDeploymentManager, ::windows_core::IUnknown); impl IPMDeploymentManager { pub unsafe fn ReportDownloadBegin(&self, productid: ::windows_core::GUID) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).ReportDownloadBegin)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(productid)).ok() @@ -4177,13 +4038,6 @@ impl IPMDeploymentManager { (::windows_core::Interface::vtable(self).FixJunctionsForAppsOnSDCard)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IPMDeploymentManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPMDeploymentManager { - type Vtable = IPMDeploymentManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPMDeploymentManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x35f785fa_1979_4a8b_bc8f_fd70eb0d1544); -} #[repr(C)] #[doc(hidden)] pub struct IPMDeploymentManager_Vtbl { @@ -4230,9 +4084,8 @@ pub struct IPMDeploymentManager_Vtbl { pub AddLicenseForAppx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, productid: ::windows_core::GUID, pblicense: *const u8, cblicense: u32, pbplayreadyheader: *const u8, cbplayreadyheader: u32) -> ::windows_core::HRESULT, pub FixJunctionsForAppsOnSDCard: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPMEnumerationManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPMEnumerationManager, IPMEnumerationManager_Vtbl, 0x698d57c2_292d_4cf3_b73c_d95a6922ed9a); +::windows_core::imp::interface_hierarchy!(IPMEnumerationManager, ::windows_core::IUnknown); impl IPMEnumerationManager { pub unsafe fn get_AllApplications(&self, ppappenum: *mut ::core::option::Option, filter: PM_ENUM_FILTER) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).get_AllApplications)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(ppappenum), ::core::mem::transmute(filter)).ok() @@ -4317,13 +4170,6 @@ impl IPMEnumerationManager { (::windows_core::Interface::vtable(self).get_StartAppEnumeratorBlob)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(filter), pcapps, ppappblobs).ok() } } -::windows_core::imp::interface_hierarchy!(IPMEnumerationManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPMEnumerationManager { - type Vtable = IPMEnumerationManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPMEnumerationManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x698d57c2_292d_4cf3_b73c_d95a6922ed9a); -} #[repr(C)] #[doc(hidden)] pub struct IPMEnumerationManager_Vtbl { @@ -4347,52 +4193,35 @@ pub struct IPMEnumerationManager_Vtbl { pub get_StartTileEnumeratorBlob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filter: PM_ENUM_FILTER, pctiles: *mut u32, pptileblobs: *mut *mut PM_STARTTILEBLOB) -> ::windows_core::HRESULT, pub get_StartAppEnumeratorBlob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filter: PM_ENUM_FILTER, pcapps: *mut u32, ppappblobs: *mut *mut PM_STARTAPPBLOB) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPMExtensionCachedFileUpdaterInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPMExtensionCachedFileUpdaterInfo, IPMExtensionCachedFileUpdaterInfo_Vtbl, 0xe2d77509_4e58_4ba9_af7e_b642e370e1b0); +::windows_core::imp::interface_hierarchy!(IPMExtensionCachedFileUpdaterInfo, ::windows_core::IUnknown); impl IPMExtensionCachedFileUpdaterInfo { pub unsafe fn SupportsUpdates(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).SupportsUpdates)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IPMExtensionCachedFileUpdaterInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPMExtensionCachedFileUpdaterInfo { - type Vtable = IPMExtensionCachedFileUpdaterInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPMExtensionCachedFileUpdaterInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe2d77509_4e58_4ba9_af7e_b642e370e1b0); -} #[repr(C)] #[doc(hidden)] pub struct IPMExtensionCachedFileUpdaterInfo_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub SupportsUpdates: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psupportsupdates: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPMExtensionContractInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPMExtensionContractInfo, IPMExtensionContractInfo_Vtbl, 0xe5666373_7ba1_467c_b819_b175db1c295b); +::windows_core::imp::interface_hierarchy!(IPMExtensionContractInfo, ::windows_core::IUnknown); impl IPMExtensionContractInfo { pub unsafe fn get_InvocationInfo(&self, paumid: *mut ::windows_core::BSTR, pargs: *mut ::windows_core::BSTR) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).get_InvocationInfo)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(paumid), ::core::mem::transmute(pargs)).ok() } } -::windows_core::imp::interface_hierarchy!(IPMExtensionContractInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPMExtensionContractInfo { - type Vtable = IPMExtensionContractInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPMExtensionContractInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe5666373_7ba1_467c_b819_b175db1c295b); -} #[repr(C)] #[doc(hidden)] pub struct IPMExtensionContractInfo_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub get_InvocationInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, paumid: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>, pargs: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPMExtensionFileExtensionInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPMExtensionFileExtensionInfo, IPMExtensionFileExtensionInfo_Vtbl, 0x6b87cb6c_0b88_4989_a4ec_033714f710d4); +::windows_core::imp::interface_hierarchy!(IPMExtensionFileExtensionInfo, ::windows_core::IUnknown); impl IPMExtensionFileExtensionInfo { pub unsafe fn Name(&self, pname: *mut ::windows_core::BSTR) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Name)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pname)).ok() @@ -4422,13 +4251,6 @@ impl IPMExtensionFileExtensionInfo { (::windows_core::Interface::vtable(self).get_AllFileTypes)(::windows_core::Interface::as_raw(self), pcbtypes, pptypes).ok() } } -::windows_core::imp::interface_hierarchy!(IPMExtensionFileExtensionInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPMExtensionFileExtensionInfo { - type Vtable = IPMExtensionFileExtensionInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPMExtensionFileExtensionInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6b87cb6c_0b88_4989_a4ec_033714f710d4); -} #[repr(C)] #[doc(hidden)] pub struct IPMExtensionFileExtensionInfo_Vtbl { @@ -4441,9 +4263,8 @@ pub struct IPMExtensionFileExtensionInfo_Vtbl { pub get_InvocationInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pimageurn: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>, pparameters: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub get_AllFileTypes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcbtypes: *mut u32, pptypes: *mut *mut ::windows_core::BSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPMExtensionFileOpenPickerInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPMExtensionFileOpenPickerInfo, IPMExtensionFileOpenPickerInfo_Vtbl, 0x6dc91d25_9606_420c_9a78_e034a3418345); +::windows_core::imp::interface_hierarchy!(IPMExtensionFileOpenPickerInfo, ::windows_core::IUnknown); impl IPMExtensionFileOpenPickerInfo { pub unsafe fn get_AllFileTypes(&self, pctypes: *mut u32, pptypes: *mut *mut ::windows_core::BSTR) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).get_AllFileTypes)(::windows_core::Interface::as_raw(self), pctypes, pptypes).ok() @@ -4453,13 +4274,6 @@ impl IPMExtensionFileOpenPickerInfo { (::windows_core::Interface::vtable(self).SupportsAllFileTypes)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IPMExtensionFileOpenPickerInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPMExtensionFileOpenPickerInfo { - type Vtable = IPMExtensionFileOpenPickerInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPMExtensionFileOpenPickerInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6dc91d25_9606_420c_9a78_e034a3418345); -} #[repr(C)] #[doc(hidden)] pub struct IPMExtensionFileOpenPickerInfo_Vtbl { @@ -4467,9 +4281,8 @@ pub struct IPMExtensionFileOpenPickerInfo_Vtbl { pub get_AllFileTypes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pctypes: *mut u32, pptypes: *mut *mut ::windows_core::BSTR) -> ::windows_core::HRESULT, pub SupportsAllFileTypes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psupportsalltypes: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPMExtensionFileSavePickerInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPMExtensionFileSavePickerInfo, IPMExtensionFileSavePickerInfo_Vtbl, 0x38005cba_f81a_493e_a0f8_922c8680da43); +::windows_core::imp::interface_hierarchy!(IPMExtensionFileSavePickerInfo, ::windows_core::IUnknown); impl IPMExtensionFileSavePickerInfo { pub unsafe fn get_AllFileTypes(&self, pctypes: *mut u32, pptypes: *mut *mut ::windows_core::BSTR) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).get_AllFileTypes)(::windows_core::Interface::as_raw(self), pctypes, pptypes).ok() @@ -4479,13 +4292,6 @@ impl IPMExtensionFileSavePickerInfo { (::windows_core::Interface::vtable(self).SupportsAllFileTypes)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IPMExtensionFileSavePickerInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPMExtensionFileSavePickerInfo { - type Vtable = IPMExtensionFileSavePickerInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPMExtensionFileSavePickerInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x38005cba_f81a_493e_a0f8_922c8680da43); -} #[repr(C)] #[doc(hidden)] pub struct IPMExtensionFileSavePickerInfo_Vtbl { @@ -4493,9 +4299,8 @@ pub struct IPMExtensionFileSavePickerInfo_Vtbl { pub get_AllFileTypes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pctypes: *mut u32, pptypes: *mut *mut ::windows_core::BSTR) -> ::windows_core::HRESULT, pub SupportsAllFileTypes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psupportsalltypes: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPMExtensionInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPMExtensionInfo, IPMExtensionInfo_Vtbl, 0x49acde79_9788_4d0a_8aa0_1746afdb9e9d); +::windows_core::imp::interface_hierarchy!(IPMExtensionInfo, ::windows_core::IUnknown); impl IPMExtensionInfo { pub unsafe fn SupplierPID(&self) -> ::windows_core::Result<::windows_core::GUID> { let mut result__ = ::std::mem::zeroed(); @@ -4517,13 +4322,6 @@ impl IPMExtensionInfo { (::windows_core::Interface::vtable(self).get_InvocationInfo)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pimageurn), ::core::mem::transmute(pparameters)).ok() } } -::windows_core::imp::interface_hierarchy!(IPMExtensionInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPMExtensionInfo { - type Vtable = IPMExtensionInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPMExtensionInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x49acde79_9788_4d0a_8aa0_1746afdb9e9d); -} #[repr(C)] #[doc(hidden)] pub struct IPMExtensionInfo_Vtbl { @@ -4535,31 +4333,22 @@ pub struct IPMExtensionInfo_Vtbl { pub ExtraFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfilepath: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub get_InvocationInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pimageurn: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>, pparameters: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPMExtensionInfoEnumerator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPMExtensionInfoEnumerator, IPMExtensionInfoEnumerator_Vtbl, 0x403b9e82_1171_4573_8e6f_6f33f39b83dd); +::windows_core::imp::interface_hierarchy!(IPMExtensionInfoEnumerator, ::windows_core::IUnknown); impl IPMExtensionInfoEnumerator { pub unsafe fn Next(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IPMExtensionInfoEnumerator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPMExtensionInfoEnumerator { - type Vtable = IPMExtensionInfoEnumerator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPMExtensionInfoEnumerator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x403b9e82_1171_4573_8e6f_6f33f39b83dd); -} #[repr(C)] #[doc(hidden)] pub struct IPMExtensionInfoEnumerator_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Next: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppextensioninfo: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPMExtensionProtocolInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPMExtensionProtocolInfo, IPMExtensionProtocolInfo_Vtbl, 0x1e3fa036_51eb_4453_baff_b8d8e4b46c8e); +::windows_core::imp::interface_hierarchy!(IPMExtensionProtocolInfo, ::windows_core::IUnknown); impl IPMExtensionProtocolInfo { pub unsafe fn Protocol(&self, pprotocol: *mut ::windows_core::BSTR) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Protocol)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pprotocol)).ok() @@ -4568,13 +4357,6 @@ impl IPMExtensionProtocolInfo { (::windows_core::Interface::vtable(self).get_InvocationInfo)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pimageurn), ::core::mem::transmute(pparameters)).ok() } } -::windows_core::imp::interface_hierarchy!(IPMExtensionProtocolInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPMExtensionProtocolInfo { - type Vtable = IPMExtensionProtocolInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPMExtensionProtocolInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1e3fa036_51eb_4453_baff_b8d8e4b46c8e); -} #[repr(C)] #[doc(hidden)] pub struct IPMExtensionProtocolInfo_Vtbl { @@ -4582,9 +4364,8 @@ pub struct IPMExtensionProtocolInfo_Vtbl { pub Protocol: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pprotocol: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub get_InvocationInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pimageurn: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>, pparameters: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPMExtensionShareTargetInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPMExtensionShareTargetInfo, IPMExtensionShareTargetInfo_Vtbl, 0x5471f48b_c65c_4656_8c70_242e31195fea); +::windows_core::imp::interface_hierarchy!(IPMExtensionShareTargetInfo, ::windows_core::IUnknown); impl IPMExtensionShareTargetInfo { pub unsafe fn get_AllFileTypes(&self, pctypes: *mut u32, pptypes: *mut *mut ::windows_core::BSTR) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).get_AllFileTypes)(::windows_core::Interface::as_raw(self), pctypes, pptypes).ok() @@ -4597,13 +4378,6 @@ impl IPMExtensionShareTargetInfo { (::windows_core::Interface::vtable(self).SupportsAllFileTypes)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IPMExtensionShareTargetInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPMExtensionShareTargetInfo { - type Vtable = IPMExtensionShareTargetInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPMExtensionShareTargetInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5471f48b_c65c_4656_8c70_242e31195fea); -} #[repr(C)] #[doc(hidden)] pub struct IPMExtensionShareTargetInfo_Vtbl { @@ -4612,9 +4386,8 @@ pub struct IPMExtensionShareTargetInfo_Vtbl { pub get_AllDataFormats: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcdataformats: *mut u32, ppdataformats: *mut *mut ::windows_core::BSTR) -> ::windows_core::HRESULT, pub SupportsAllFileTypes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psupportsalltypes: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPMLiveTileJobInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPMLiveTileJobInfo, IPMLiveTileJobInfo_Vtbl, 0x6009a81f_4710_4697_b5f6_2208f6057b8e); +::windows_core::imp::interface_hierarchy!(IPMLiveTileJobInfo, ::windows_core::IUnknown); impl IPMLiveTileJobInfo { pub unsafe fn ProductID(&self) -> ::windows_core::Result<::windows_core::GUID> { let mut result__ = ::std::mem::zeroed(); @@ -4702,13 +4475,6 @@ impl IPMLiveTileJobInfo { (::windows_core::Interface::vtable(self).set_DownloadState)(::windows_core::Interface::as_raw(self), uldownloadstate).ok() } } -::windows_core::imp::interface_hierarchy!(IPMLiveTileJobInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPMLiveTileJobInfo { - type Vtable = IPMLiveTileJobInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPMLiveTileJobInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6009a81f_4710_4697_b5f6_2208f6057b8e); -} #[repr(C)] #[doc(hidden)] pub struct IPMLiveTileJobInfo_Vtbl { @@ -4738,31 +4504,22 @@ pub struct IPMLiveTileJobInfo_Vtbl { pub DownloadState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdownloadstate: *mut u32) -> ::windows_core::HRESULT, pub set_DownloadState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uldownloadstate: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPMLiveTileJobInfoEnumerator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPMLiveTileJobInfoEnumerator, IPMLiveTileJobInfoEnumerator_Vtbl, 0xbc042582_9415_4f36_9f99_06f104c07c03); +::windows_core::imp::interface_hierarchy!(IPMLiveTileJobInfoEnumerator, ::windows_core::IUnknown); impl IPMLiveTileJobInfoEnumerator { pub unsafe fn Next(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IPMLiveTileJobInfoEnumerator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPMLiveTileJobInfoEnumerator { - type Vtable = IPMLiveTileJobInfoEnumerator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPMLiveTileJobInfoEnumerator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbc042582_9415_4f36_9f99_06f104c07c03); -} #[repr(C)] #[doc(hidden)] pub struct IPMLiveTileJobInfoEnumerator_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Next: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pplivetilejobinfo: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPMTaskInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPMTaskInfo, IPMTaskInfo_Vtbl, 0xbf1d8c33_1bf5_4ee0_b549_6b9dd3834942); +::windows_core::imp::interface_hierarchy!(IPMTaskInfo, ::windows_core::IUnknown); impl IPMTaskInfo { pub unsafe fn ProductID(&self) -> ::windows_core::Result<::windows_core::GUID> { let mut result__ = ::std::mem::zeroed(); @@ -4840,13 +4597,6 @@ impl IPMTaskInfo { (::windows_core::Interface::vtable(self).IsOptedForExtendedMem)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IPMTaskInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPMTaskInfo { - type Vtable = IPMTaskInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPMTaskInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbf1d8c33_1bf5_4ee0_b549_6b9dd3834942); -} #[repr(C)] #[doc(hidden)] pub struct IPMTaskInfo_Vtbl { @@ -4873,31 +4623,22 @@ pub struct IPMTaskInfo_Vtbl { pub BackgroundExecutionAbilities: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbackgroundexecutionabilities: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub IsOptedForExtendedMem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pisoptedin: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPMTaskInfoEnumerator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPMTaskInfoEnumerator, IPMTaskInfoEnumerator_Vtbl, 0x0630b0f8_0bbc_4821_be74_c7995166ed2a); +::windows_core::imp::interface_hierarchy!(IPMTaskInfoEnumerator, ::windows_core::IUnknown); impl IPMTaskInfoEnumerator { pub unsafe fn Next(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IPMTaskInfoEnumerator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPMTaskInfoEnumerator { - type Vtable = IPMTaskInfoEnumerator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPMTaskInfoEnumerator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0630b0f8_0bbc_4821_be74_c7995166ed2a); -} #[repr(C)] #[doc(hidden)] pub struct IPMTaskInfoEnumerator_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Next: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pptaskinfo: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPMTileInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPMTileInfo, IPMTileInfo_Vtbl, 0xd1604833_2b08_4001_82cd_183ad734f752); +::windows_core::imp::interface_hierarchy!(IPMTileInfo, ::windows_core::IUnknown); impl IPMTileInfo { pub unsafe fn ProductID(&self) -> ::windows_core::Result<::windows_core::GUID> { let mut result__ = ::std::mem::zeroed(); @@ -5001,13 +4742,6 @@ impl IPMTileInfo { (::windows_core::Interface::vtable(self).set_IsAutoRestoreDisabled)(::windows_core::Interface::as_raw(self), autorestoredisabled.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IPMTileInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPMTileInfo { - type Vtable = IPMTileInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPMTileInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd1604833_2b08_4001_82cd_183ad734f752); -} #[repr(C)] #[doc(hidden)] pub struct IPMTileInfo_Vtbl { @@ -5037,53 +4771,36 @@ pub struct IPMTileInfo_Vtbl { pub set_IsRestoring: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, restoring: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub set_IsAutoRestoreDisabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, autorestoredisabled: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPMTileInfoEnumerator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPMTileInfoEnumerator, IPMTileInfoEnumerator_Vtbl, 0xded83065_e462_4b2c_acb5_e39cea61c874); +::windows_core::imp::interface_hierarchy!(IPMTileInfoEnumerator, ::windows_core::IUnknown); impl IPMTileInfoEnumerator { pub unsafe fn Next(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IPMTileInfoEnumerator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPMTileInfoEnumerator { - type Vtable = IPMTileInfoEnumerator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPMTileInfoEnumerator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xded83065_e462_4b2c_acb5_e39cea61c874); -} #[repr(C)] #[doc(hidden)] pub struct IPMTileInfoEnumerator_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Next: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pptileinfo: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPMTilePropertyEnumerator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPMTilePropertyEnumerator, IPMTilePropertyEnumerator_Vtbl, 0xcc4cd629_9047_4250_aac8_930e47812421); +::windows_core::imp::interface_hierarchy!(IPMTilePropertyEnumerator, ::windows_core::IUnknown); impl IPMTilePropertyEnumerator { pub unsafe fn Next(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IPMTilePropertyEnumerator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPMTilePropertyEnumerator { - type Vtable = IPMTilePropertyEnumerator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPMTilePropertyEnumerator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcc4cd629_9047_4250_aac8_930e47812421); -} #[repr(C)] #[doc(hidden)] pub struct IPMTilePropertyEnumerator_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Next: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pppropinfo: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPMTilePropertyInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPMTilePropertyInfo, IPMTilePropertyInfo_Vtbl, 0x6c2b8017_1efa_42a7_86c0_6d4b640bf528); +::windows_core::imp::interface_hierarchy!(IPMTilePropertyInfo, ::windows_core::IUnknown); impl IPMTilePropertyInfo { pub unsafe fn PropertyID(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -5099,13 +4816,6 @@ impl IPMTilePropertyInfo { (::windows_core::Interface::vtable(self).set_Property)(::windows_core::Interface::as_raw(self), propvalue.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IPMTilePropertyInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPMTilePropertyInfo { - type Vtable = IPMTilePropertyInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPMTilePropertyInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6c2b8017_1efa_42a7_86c0_6d4b640bf528); -} #[repr(C)] #[doc(hidden)] pub struct IPMTilePropertyInfo_Vtbl { @@ -5114,9 +4824,8 @@ pub struct IPMTilePropertyInfo_Vtbl { pub PropertyValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppropvalue: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub set_Property: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propvalue: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IValidate(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IValidate, IValidate_Vtbl, 0xe482e5c6_e31e_4143_a2e6_dbc3d8e4b8d3); +::windows_core::imp::interface_hierarchy!(IValidate, ::windows_core::IUnknown); impl IValidate { pub unsafe fn OpenDatabase(&self, szdatabase: P0) -> ::windows_core::Result<()> where @@ -5149,13 +4858,6 @@ impl IValidate { (::windows_core::Interface::vtable(self).Validate)(::windows_core::Interface::as_raw(self), wzices.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IValidate, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IValidate { - type Vtable = IValidate_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IValidate { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe482e5c6_e31e_4143_a2e6_dbc3d8e4b8d3); -} #[repr(C)] #[doc(hidden)] pub struct IValidate_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/System/AssessmentTool/impl.rs b/crates/libs/windows/src/Windows/Win32/System/AssessmentTool/impl.rs index 9cb068b2e1..7edb1d0330 100644 --- a/crates/libs/windows/src/Windows/Win32/System/AssessmentTool/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/AssessmentTool/impl.rs @@ -19,7 +19,7 @@ impl IAccessibleWinSAT_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IInitiateWinSATAssessment_Impl: Sized { @@ -53,7 +53,7 @@ impl IInitiateWinSATAssessment_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -109,7 +109,7 @@ impl IProvideWinSATAssessmentInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -191,7 +191,7 @@ impl IProvideWinSATResultsInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] @@ -218,7 +218,7 @@ impl IProvideWinSATVisuals_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), get_Bitmap: get_Bitmap:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Data_Xml_MsXml\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -245,7 +245,7 @@ impl IQueryAllWinSATAssessments_Vtbl { Self { base__: super::Com::IDispatch_Vtbl::new::(), get_AllXML: get_AllXML:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IQueryOEMWinSATCustomization_Impl: Sized { @@ -268,7 +268,7 @@ impl IQueryOEMWinSATCustomization_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetOEMPrePopulationInfo: GetOEMPrePopulationInfo:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Data_Xml_MsXml\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -311,7 +311,7 @@ impl IQueryRecentWinSATAssessment_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IWinSATInitiateEvents_Impl: Sized { @@ -338,6 +338,6 @@ impl IWinSATInitiateEvents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 3cc08b17a9..6e362b7c5e 100644 --- a/crates/libs/windows/src/Windows/Win32/System/AssessmentTool/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/AssessmentTool/mod.rs @@ -1,8 +1,12 @@ -#[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_UI_Accessibility\"`"] #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Accessibility"))] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAccessibleWinSAT(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_UI_Accessibility\"`"] + IAccessibleWinSAT, + IAccessibleWinSAT_Vtbl, + 0x30e6018a_94a8_4ff8_a69a_71b67413f07b +); +#[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Accessibility"))] +::windows_core::imp::interface_hierarchy!(IAccessibleWinSAT, ::windows_core::IUnknown, super::Com::IDispatch, super::super::UI::Accessibility::IAccessible); #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Accessibility"))] impl IAccessibleWinSAT { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_UI_Accessibility\"`"] @@ -141,25 +145,14 @@ impl IAccessibleWinSAT { } } #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Accessibility"))] -::windows_core::imp::interface_hierarchy!(IAccessibleWinSAT, ::windows_core::IUnknown, super::Com::IDispatch, super::super::UI::Accessibility::IAccessible); -#[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Accessibility"))] -unsafe impl ::windows_core::Interface for IAccessibleWinSAT { - type Vtable = IAccessibleWinSAT_Vtbl; -} -#[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Accessibility"))] -unsafe impl ::windows_core::ComInterface for IAccessibleWinSAT { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x30e6018a_94a8_4ff8_a69a_71b67413f07b); -} -#[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Accessibility"))] #[repr(C)] #[doc(hidden)] pub struct IAccessibleWinSAT_Vtbl { pub base__: super::super::UI::Accessibility::IAccessible_Vtbl, pub SetAccessiblityData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wsname: ::windows_core::PCWSTR, wsvalue: ::windows_core::PCWSTR, wsdesc: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInitiateWinSATAssessment(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IInitiateWinSATAssessment, IInitiateWinSATAssessment_Vtbl, 0xd983fc50_f5bf_49d5_b5ed_cccb18aa7fc1); +::windows_core::imp::interface_hierarchy!(IInitiateWinSATAssessment, ::windows_core::IUnknown); impl IInitiateWinSATAssessment { pub unsafe fn InitiateAssessment(&self, cmdline: P0, pcallbacks: P1, callerhwnd: P2) -> ::windows_core::Result<()> where @@ -180,13 +173,6 @@ impl IInitiateWinSATAssessment { (::windows_core::Interface::vtable(self).CancelAssessment)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IInitiateWinSATAssessment, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInitiateWinSATAssessment { - type Vtable = IInitiateWinSATAssessment_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInitiateWinSATAssessment { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd983fc50_f5bf_49d5_b5ed_cccb18aa7fc1); -} #[repr(C)] #[doc(hidden)] pub struct IInitiateWinSATAssessment_Vtbl { @@ -195,11 +181,15 @@ pub struct IInitiateWinSATAssessment_Vtbl { pub InitiateFormalAssessment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcallbacks: *mut ::core::ffi::c_void, callerhwnd: super::super::Foundation::HWND) -> ::windows_core::HRESULT, pub CancelAssessment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProvideWinSATAssessmentInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IProvideWinSATAssessmentInfo, + IProvideWinSATAssessmentInfo_Vtbl, + 0x0cd1c380_52d3_4678_ac6f_e929e480be9e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IProvideWinSATAssessmentInfo, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IProvideWinSATAssessmentInfo { pub unsafe fn Score(&self) -> ::windows_core::Result { @@ -216,16 +206,6 @@ impl IProvideWinSATAssessmentInfo { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IProvideWinSATAssessmentInfo, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IProvideWinSATAssessmentInfo { - type Vtable = IProvideWinSATAssessmentInfo_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IProvideWinSATAssessmentInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0cd1c380_52d3_4678_ac6f_e929e480be9e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IProvideWinSATAssessmentInfo_Vtbl { @@ -234,11 +214,15 @@ pub struct IProvideWinSATAssessmentInfo_Vtbl { pub Title: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, title: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, description: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProvideWinSATResultsInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IProvideWinSATResultsInfo, + IProvideWinSATResultsInfo_Vtbl, + 0xf8334d5d_568e_4075_875f_9df341506640 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IProvideWinSATResultsInfo, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IProvideWinSATResultsInfo { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -267,16 +251,6 @@ impl IProvideWinSATResultsInfo { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IProvideWinSATResultsInfo, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IProvideWinSATResultsInfo { - type Vtable = IProvideWinSATResultsInfo_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IProvideWinSATResultsInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf8334d5d_568e_4075_875f_9df341506640); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IProvideWinSATResultsInfo_Vtbl { @@ -293,9 +267,8 @@ pub struct IProvideWinSATResultsInfo_Vtbl { pub SystemRating: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, level: *mut f32) -> ::windows_core::HRESULT, pub RatingStateDesc: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, description: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProvideWinSATVisuals(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IProvideWinSATVisuals, IProvideWinSATVisuals_Vtbl, 0xa9f4ade0_871a_42a3_b813_3078d25162c9); +::windows_core::imp::interface_hierarchy!(IProvideWinSATVisuals, ::windows_core::IUnknown); impl IProvideWinSATVisuals { #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] #[cfg(feature = "Win32_Graphics_Gdi")] @@ -304,13 +277,6 @@ impl IProvideWinSATVisuals { (::windows_core::Interface::vtable(self).get_Bitmap)(::windows_core::Interface::as_raw(self), bitmapsize, state, rating, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IProvideWinSATVisuals, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProvideWinSATVisuals { - type Vtable = IProvideWinSATVisuals_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProvideWinSATVisuals { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa9f4ade0_871a_42a3_b813_3078d25162c9); -} #[repr(C)] #[doc(hidden)] pub struct IProvideWinSATVisuals_Vtbl { @@ -320,11 +286,15 @@ pub struct IProvideWinSATVisuals_Vtbl { #[cfg(not(feature = "Win32_Graphics_Gdi"))] get_Bitmap: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IQueryAllWinSATAssessments(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IQueryAllWinSATAssessments, + IQueryAllWinSATAssessments_Vtbl, + 0x0b89ed1d_6398_4fea_87fc_567d8d19176f +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IQueryAllWinSATAssessments, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IQueryAllWinSATAssessments { #[doc = "Required features: `\"Win32_Data_Xml_MsXml\"`, `\"Win32_System_Com\"`"] @@ -339,16 +309,6 @@ impl IQueryAllWinSATAssessments { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IQueryAllWinSATAssessments, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IQueryAllWinSATAssessments { - type Vtable = IQueryAllWinSATAssessments_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IQueryAllWinSATAssessments { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0b89ed1d_6398_4fea_87fc_567d8d19176f); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IQueryAllWinSATAssessments_Vtbl { @@ -358,33 +318,29 @@ pub struct IQueryAllWinSATAssessments_Vtbl { #[cfg(not(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_System_Com")))] get_AllXML: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IQueryOEMWinSATCustomization(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IQueryOEMWinSATCustomization, IQueryOEMWinSATCustomization_Vtbl, 0xbc9a6a9f_ad4e_420e_9953_b34671e9df22); +::windows_core::imp::interface_hierarchy!(IQueryOEMWinSATCustomization, ::windows_core::IUnknown); impl IQueryOEMWinSATCustomization { pub unsafe fn GetOEMPrePopulationInfo(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetOEMPrePopulationInfo)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IQueryOEMWinSATCustomization, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IQueryOEMWinSATCustomization { - type Vtable = IQueryOEMWinSATCustomization_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IQueryOEMWinSATCustomization { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbc9a6a9f_ad4e_420e_9953_b34671e9df22); -} #[repr(C)] #[doc(hidden)] pub struct IQueryOEMWinSATCustomization_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetOEMPrePopulationInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, state: *mut WINSAT_OEM_CUSTOMIZATION_STATE) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IQueryRecentWinSATAssessment(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IQueryRecentWinSATAssessment, + IQueryRecentWinSATAssessment_Vtbl, + 0xf8ad5d1f_3b47_4bdc_9375_7c6b1da4eca7 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IQueryRecentWinSATAssessment, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IQueryRecentWinSATAssessment { #[doc = "Required features: `\"Win32_Data_Xml_MsXml\"`, `\"Win32_System_Com\"`"] @@ -405,16 +361,6 @@ impl IQueryRecentWinSATAssessment { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IQueryRecentWinSATAssessment, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IQueryRecentWinSATAssessment { - type Vtable = IQueryRecentWinSATAssessment_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IQueryRecentWinSATAssessment { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf8ad5d1f_3b47_4bdc_9375_7c6b1da4eca7); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IQueryRecentWinSATAssessment_Vtbl { @@ -428,9 +374,8 @@ pub struct IQueryRecentWinSATAssessment_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Info: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWinSATInitiateEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWinSATInitiateEvents, IWinSATInitiateEvents_Vtbl, 0x262a1918_ba0d_41d5_92c2_fab4633ee74f); +::windows_core::imp::interface_hierarchy!(IWinSATInitiateEvents, ::windows_core::IUnknown); impl IWinSATInitiateEvents { pub unsafe fn WinSATComplete(&self, hresult: ::windows_core::HRESULT, strdescription: P0) -> ::windows_core::Result<()> where @@ -445,13 +390,6 @@ impl IWinSATInitiateEvents { (::windows_core::Interface::vtable(self).WinSATUpdate)(::windows_core::Interface::as_raw(self), ucurrenttick, uticktotal, strcurrentstate.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IWinSATInitiateEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWinSATInitiateEvents { - type Vtable = IWinSATInitiateEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWinSATInitiateEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x262a1918_ba0d_41d5_92c2_fab4633ee74f); -} #[repr(C)] #[doc(hidden)] pub struct IWinSATInitiateEvents_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/System/ClrHosting/impl.rs b/crates/libs/windows/src/Windows/Win32/System/ClrHosting/impl.rs index f4cde8f2c6..fb26ca8657 100644 --- a/crates/libs/windows/src/Windows/Win32/System/ClrHosting/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/ClrHosting/impl.rs @@ -12,7 +12,7 @@ impl IActionOnCLREvent_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnEvent: OnEvent:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IApartmentCallback_Impl: Sized { @@ -29,7 +29,7 @@ impl IApartmentCallback_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), DoCallback: DoCallback:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAppDomainBinding_Impl: Sized { @@ -46,7 +46,7 @@ impl IAppDomainBinding_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnAppDomain: OnAppDomain:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICLRAppDomainResourceMonitor_Impl: Sized { @@ -80,7 +80,7 @@ impl ICLRAppDomainResourceMonitor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -176,7 +176,7 @@ impl ICLRAssemblyIdentityManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICLRAssemblyReferenceList_Impl: Sized { @@ -203,7 +203,7 @@ impl ICLRAssemblyReferenceList_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICLRControl_Impl: Sized { @@ -230,7 +230,7 @@ impl ICLRControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Security\"`"] @@ -308,7 +308,7 @@ impl ICLRDebugManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICLRDebugging_Impl: Sized { @@ -335,7 +335,7 @@ impl ICLRDebugging_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICLRDebuggingLibraryProvider_Impl: Sized { @@ -358,7 +358,7 @@ impl ICLRDebuggingLibraryProvider_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), ProvideLibrary: ProvideLibrary:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICLRDomainManager_Impl: Sized { @@ -385,7 +385,7 @@ impl ICLRDomainManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICLRErrorReportingManager_Impl: Sized { @@ -419,7 +419,7 @@ impl ICLRErrorReportingManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICLRGCManager_Impl: Sized { @@ -453,7 +453,7 @@ impl ICLRGCManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICLRGCManager2_Impl: Sized + ICLRGCManager_Impl { @@ -470,7 +470,7 @@ impl ICLRGCManager2_Vtbl { Self { base__: ICLRGCManager_Vtbl::new::(), SetGCStartupLimitsEx: SetGCStartupLimitsEx:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ICLRHostBindingPolicyManager_Impl: Sized { @@ -497,7 +497,7 @@ impl ICLRHostBindingPolicyManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICLRHostProtectionManager_Impl: Sized { @@ -524,7 +524,7 @@ impl ICLRHostProtectionManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICLRIoCompletionManager_Impl: Sized { @@ -541,7 +541,7 @@ impl ICLRIoCompletionManager_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnComplete: OnComplete:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICLRMemoryNotificationCallback_Impl: Sized { @@ -558,7 +558,7 @@ impl ICLRMemoryNotificationCallback_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnMemoryNotification: OnMemoryNotification:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -636,7 +636,7 @@ impl ICLRMetaHost_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -657,7 +657,7 @@ impl ICLRMetaHostPolicy_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetRequestedRuntime: GetRequestedRuntime:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICLROnEventManager_Impl: Sized { @@ -684,7 +684,7 @@ impl ICLROnEventManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICLRPolicyManager_Impl: Sized { @@ -739,7 +739,7 @@ impl ICLRPolicyManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICLRProbingAssemblyEnum_Impl: Sized { @@ -756,7 +756,7 @@ impl ICLRProbingAssemblyEnum_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Get: Get:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICLRProfiling_Impl: Sized { @@ -773,7 +773,7 @@ impl ICLRProfiling_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), AttachProfiler: AttachProfiler:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICLRReferenceAssemblyEnum_Impl: Sized { @@ -790,7 +790,7 @@ impl ICLRReferenceAssemblyEnum_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Get: Get:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICLRRuntimeHost_Impl: Sized { @@ -890,7 +890,7 @@ impl ICLRRuntimeHost_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICLRRuntimeInfo_Impl: Sized { @@ -1011,7 +1011,7 @@ impl ICLRRuntimeInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICLRStrongName_Impl: Sized { @@ -1229,7 +1229,7 @@ impl ICLRStrongName_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICLRStrongName2_Impl: Sized { @@ -1262,7 +1262,7 @@ impl ICLRStrongName2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICLRStrongName3_Impl: Sized { @@ -1296,7 +1296,7 @@ impl ICLRStrongName3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICLRSyncManager_Impl: Sized { @@ -1355,7 +1355,7 @@ impl ICLRSyncManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICLRTask_Impl: Sized { @@ -1463,7 +1463,7 @@ impl ICLRTask_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICLRTask2_Impl: Sized + ICLRTask_Impl { @@ -1490,7 +1490,7 @@ impl ICLRTask2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ICLRTaskManager_Impl: Sized { @@ -1556,7 +1556,7 @@ impl ICLRTaskManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICatalogServices_Impl: Sized { @@ -1583,7 +1583,7 @@ impl ICatalogServices_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICorConfiguration_Impl: Sized { @@ -1624,7 +1624,7 @@ impl ICorConfiguration_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICorRuntimeHost_Impl: Sized { @@ -1836,7 +1836,7 @@ impl ICorRuntimeHost_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_IO\"`, `\"Win32_System_Threading\"`"] @@ -1972,7 +1972,7 @@ impl ICorThreadpool_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebuggerInfo_Impl: Sized { @@ -1995,7 +1995,7 @@ impl IDebuggerInfo_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), IsDebuggerAttached: IsDebuggerAttached:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebuggerThreadControl_Impl: Sized { @@ -2029,7 +2029,7 @@ impl IDebuggerThreadControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IGCHost_Impl: Sized { @@ -2077,7 +2077,7 @@ impl IGCHost_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IGCHost2_Impl: Sized + IGCHost_Impl { @@ -2094,7 +2094,7 @@ impl IGCHost2_Vtbl { Self { base__: IGCHost_Vtbl::new::(), SetGCStartupLimitsEx: SetGCStartupLimitsEx:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IGCHostControl_Impl: Sized { @@ -2111,7 +2111,7 @@ impl IGCHostControl_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), RequestVirtualMemLimit: RequestVirtualMemLimit:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IGCThreadControl_Impl: Sized { @@ -2145,7 +2145,7 @@ impl IGCThreadControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IHostAssemblyManager_Impl: Sized { @@ -2184,7 +2184,7 @@ impl IHostAssemblyManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2215,7 +2215,7 @@ impl IHostAssemblyStore_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IHostAutoEvent_Impl: Sized { @@ -2238,7 +2238,7 @@ impl IHostAutoEvent_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Wait: Wait::, Set: Set:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IHostControl_Impl: Sized { @@ -2265,7 +2265,7 @@ impl IHostControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IHostCrst_Impl: Sized { @@ -2312,7 +2312,7 @@ impl IHostCrst_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IHostGCManager_Impl: Sized { @@ -2346,7 +2346,7 @@ impl IHostGCManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IHostIoCompletionManager_Impl: Sized { @@ -2466,7 +2466,7 @@ impl IHostIoCompletionManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IHostMalloc_Impl: Sized { @@ -2500,7 +2500,7 @@ impl IHostMalloc_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IHostManualEvent_Impl: Sized { @@ -2534,7 +2534,7 @@ impl IHostManualEvent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IHostMemoryManager_Impl: Sized { @@ -2629,7 +2629,7 @@ impl IHostMemoryManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IHostPolicyManager_Impl: Sized { @@ -2663,7 +2663,7 @@ impl IHostPolicyManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IHostSecurityContext_Impl: Sized { @@ -2686,7 +2686,7 @@ impl IHostSecurityContext_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Capture: Capture:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IHostSecurityManager_Impl: Sized { @@ -2753,7 +2753,7 @@ impl IHostSecurityManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IHostSemaphore_Impl: Sized { @@ -2786,7 +2786,7 @@ impl IHostSemaphore_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IHostSyncManager_Impl: Sized { @@ -2910,7 +2910,7 @@ impl IHostSyncManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IHostTask_Impl: Sized { @@ -2971,7 +2971,7 @@ impl IHostTask_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Threading\"`"] @@ -3138,7 +3138,7 @@ impl IHostTaskManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Threading\"`"] @@ -3215,7 +3215,7 @@ impl IHostThreadpoolManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IManagedObject_Impl: Sized { @@ -3248,7 +3248,7 @@ impl IManagedObject_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3275,7 +3275,7 @@ impl IObjectHandle_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Unwrap: Unwrap:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITypeName_Impl: Sized { @@ -3361,7 +3361,7 @@ impl ITypeName_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITypeNameBuilder_Impl: Sized { @@ -3464,7 +3464,7 @@ impl ITypeNameBuilder_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITypeNameFactory_Impl: Sized { @@ -3497,6 +3497,6 @@ impl ITypeNameFactory_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 da9efa4637..d92e8f0b52 100644 --- a/crates/libs/windows/src/Windows/Win32/System/ClrHosting/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/ClrHosting/mod.rs @@ -1,7 +1,7 @@ #[inline] pub unsafe fn CLRCreateInstance(clsid: *const ::windows_core::GUID) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { ::windows_targets::link!("mscoree.dll" "system" fn CLRCreateInstance(clsid : *const ::windows_core::GUID, riid : *const ::windows_core::GUID, ppinterface : *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT); let mut result__ = ::std::ptr::null_mut(); @@ -215,51 +215,34 @@ where ::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() } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActionOnCLREvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IActionOnCLREvent, IActionOnCLREvent_Vtbl, 0x607be24b_d91b_4e28_a242_61871ce56e35); +::windows_core::imp::interface_hierarchy!(IActionOnCLREvent, ::windows_core::IUnknown); impl IActionOnCLREvent { pub unsafe fn OnEvent(&self, event: EClrEvent, data: *const ::core::ffi::c_void) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnEvent)(::windows_core::Interface::as_raw(self), event, data).ok() } } -::windows_core::imp::interface_hierarchy!(IActionOnCLREvent, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IActionOnCLREvent { - type Vtable = IActionOnCLREvent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActionOnCLREvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x607be24b_d91b_4e28_a242_61871ce56e35); -} #[repr(C)] #[doc(hidden)] pub struct IActionOnCLREvent_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, event: EClrEvent, data: *const ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IApartmentCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IApartmentCallback, IApartmentCallback_Vtbl, 0x178e5337_1528_4591_b1c9_1c6e484686d8); +::windows_core::imp::interface_hierarchy!(IApartmentCallback, ::windows_core::IUnknown); impl IApartmentCallback { pub unsafe fn DoCallback(&self, pfunc: usize, pdata: usize) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).DoCallback)(::windows_core::Interface::as_raw(self), pfunc, pdata).ok() } } -::windows_core::imp::interface_hierarchy!(IApartmentCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IApartmentCallback { - type Vtable = IApartmentCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IApartmentCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x178e5337_1528_4591_b1c9_1c6e484686d8); -} #[repr(C)] #[doc(hidden)] pub struct IApartmentCallback_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub DoCallback: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfunc: usize, pdata: usize) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppDomainBinding(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppDomainBinding, IAppDomainBinding_Vtbl, 0x5c2b07a7_1e98_11d3_872f_00c04f79ed0d); +::windows_core::imp::interface_hierarchy!(IAppDomainBinding, ::windows_core::IUnknown); impl IAppDomainBinding { pub unsafe fn OnAppDomain(&self, pappdomain: P0) -> ::windows_core::Result<()> where @@ -268,22 +251,14 @@ impl IAppDomainBinding { (::windows_core::Interface::vtable(self).OnAppDomain)(::windows_core::Interface::as_raw(self), pappdomain.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IAppDomainBinding, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppDomainBinding { - type Vtable = IAppDomainBinding_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppDomainBinding { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5c2b07a7_1e98_11d3_872f_00c04f79ed0d); -} #[repr(C)] #[doc(hidden)] pub struct IAppDomainBinding_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnAppDomain: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pappdomain: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICLRAppDomainResourceMonitor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICLRAppDomainResourceMonitor, ICLRAppDomainResourceMonitor_Vtbl, 0xc62de18c_2e23_4aea_8423_b40c1fc59eae); +::windows_core::imp::interface_hierarchy!(ICLRAppDomainResourceMonitor, ::windows_core::IUnknown); impl ICLRAppDomainResourceMonitor { pub unsafe fn GetCurrentAllocated(&self, dwappdomainid: u32, pbytesallocated: *mut u64) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetCurrentAllocated)(::windows_core::Interface::as_raw(self), dwappdomainid, pbytesallocated).ok() @@ -295,13 +270,6 @@ impl ICLRAppDomainResourceMonitor { (::windows_core::Interface::vtable(self).GetCurrentCpuTime)(::windows_core::Interface::as_raw(self), dwappdomainid, pmilliseconds).ok() } } -::windows_core::imp::interface_hierarchy!(ICLRAppDomainResourceMonitor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICLRAppDomainResourceMonitor { - type Vtable = ICLRAppDomainResourceMonitor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICLRAppDomainResourceMonitor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc62de18c_2e23_4aea_8423_b40c1fc59eae); -} #[repr(C)] #[doc(hidden)] pub struct ICLRAppDomainResourceMonitor_Vtbl { @@ -310,9 +278,8 @@ pub struct ICLRAppDomainResourceMonitor_Vtbl { pub GetCurrentSurvived: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwappdomainid: u32, pappdomainbytessurvived: *mut u64, ptotalbytessurvived: *mut u64) -> ::windows_core::HRESULT, pub GetCurrentCpuTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwappdomainid: u32, pmilliseconds: *mut u64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICLRAssemblyIdentityManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICLRAssemblyIdentityManager, ICLRAssemblyIdentityManager_Vtbl, 0x15f0a9da_3ff6_4393_9da9_fdfd284e6972); +::windows_core::imp::interface_hierarchy!(ICLRAssemblyIdentityManager, ::windows_core::IUnknown); impl ICLRAssemblyIdentityManager { pub unsafe fn GetCLRAssemblyReferenceList(&self, ppwzassemblyreferences: *const ::windows_core::PCWSTR, dwnumofreferences: u32) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -365,13 +332,6 @@ impl ICLRAssemblyIdentityManager { (::windows_core::Interface::vtable(self).IsStronglyNamed)(::windows_core::Interface::as_raw(self), pwzassemblyidentity.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ICLRAssemblyIdentityManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICLRAssemblyIdentityManager { - type Vtable = ICLRAssemblyIdentityManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICLRAssemblyIdentityManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x15f0a9da_3ff6_4393_9da9_fdfd284e6972); -} #[repr(C)] #[doc(hidden)] pub struct ICLRAssemblyIdentityManager_Vtbl { @@ -390,9 +350,8 @@ pub struct ICLRAssemblyIdentityManager_Vtbl { pub GetProbingAssembliesFromReference: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwmachinetype: u32, dwflags: u32, pwzreferenceidentity: ::windows_core::PCWSTR, ppprobingassemblyenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub IsStronglyNamed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwzassemblyidentity: ::windows_core::PCWSTR, pbisstronglynamed: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICLRAssemblyReferenceList(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICLRAssemblyReferenceList, ICLRAssemblyReferenceList_Vtbl, 0x1b2c9750_2e66_4bda_8b44_0a642c5cd733); +::windows_core::imp::interface_hierarchy!(ICLRAssemblyReferenceList, ::windows_core::IUnknown); impl ICLRAssemblyReferenceList { pub unsafe fn IsStringAssemblyReferenceInList(&self, pwzassemblyname: P0) -> ::windows_core::Result<()> where @@ -407,13 +366,6 @@ impl ICLRAssemblyReferenceList { (::windows_core::Interface::vtable(self).IsAssemblyReferenceInList)(::windows_core::Interface::as_raw(self), pname.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ICLRAssemblyReferenceList, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICLRAssemblyReferenceList { - type Vtable = ICLRAssemblyReferenceList_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICLRAssemblyReferenceList { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1b2c9750_2e66_4bda_8b44_0a642c5cd733); -} #[repr(C)] #[doc(hidden)] pub struct ICLRAssemblyReferenceList_Vtbl { @@ -421,9 +373,8 @@ pub struct ICLRAssemblyReferenceList_Vtbl { pub IsStringAssemblyReferenceInList: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwzassemblyname: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub IsAssemblyReferenceInList: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pname: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICLRControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICLRControl, ICLRControl_Vtbl, 0x9065597e_d1a1_4fb2_b6ba_7e1fce230f61); +::windows_core::imp::interface_hierarchy!(ICLRControl, ::windows_core::IUnknown); impl ICLRControl { pub unsafe fn GetCLRManager(&self, riid: *const ::windows_core::GUID, ppobject: *mut *mut ::core::ffi::c_void) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetCLRManager)(::windows_core::Interface::as_raw(self), riid, ppobject).ok() @@ -436,13 +387,6 @@ impl ICLRControl { (::windows_core::Interface::vtable(self).SetAppDomainManagerType)(::windows_core::Interface::as_raw(self), pwzappdomainmanagerassembly.into_param().abi(), pwzappdomainmanagertype.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ICLRControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICLRControl { - type Vtable = ICLRControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICLRControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9065597e_d1a1_4fb2_b6ba_7e1fce230f61); -} #[repr(C)] #[doc(hidden)] pub struct ICLRControl_Vtbl { @@ -450,9 +394,8 @@ pub struct ICLRControl_Vtbl { pub GetCLRManager: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppobject: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetAppDomainManagerType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwzappdomainmanagerassembly: ::windows_core::PCWSTR, pwzappdomainmanagertype: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICLRDebugManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICLRDebugManager, ICLRDebugManager_Vtbl, 0x00dcaec6_2ac0_43a9_acf9_1e36c139b10d); +::windows_core::imp::interface_hierarchy!(ICLRDebugManager, ::windows_core::IUnknown); impl ICLRDebugManager { pub unsafe fn BeginConnection(&self, dwconnectionid: u32, szconnectionname: P0) -> ::windows_core::Result<()> where @@ -485,13 +428,6 @@ impl ICLRDebugManager { (::windows_core::Interface::vtable(self).SetSymbolReadingPolicy)(::windows_core::Interface::as_raw(self), policy).ok() } } -::windows_core::imp::interface_hierarchy!(ICLRDebugManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICLRDebugManager { - type Vtable = ICLRDebugManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICLRDebugManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00dcaec6_2ac0_43a9_acf9_1e36c139b10d); -} #[repr(C)] #[doc(hidden)] pub struct ICLRDebugManager_Vtbl { @@ -510,9 +446,8 @@ pub struct ICLRDebugManager_Vtbl { pub IsDebuggerAttached: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbattached: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub SetSymbolReadingPolicy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, policy: ESymbolReadingPolicy) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICLRDebugging(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICLRDebugging, ICLRDebugging_Vtbl, 0xd28f3c5a_9634_4206_a509_477552eefb10); +::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 ::core::option::Option<::windows_core::IUnknown>, pversion: *mut CLR_DEBUGGING_VERSION, pdwflags: *mut CLR_DEBUGGING_PROCESS_FLAGS) -> ::windows_core::Result<()> where @@ -528,13 +463,6 @@ impl ICLRDebugging { (::windows_core::Interface::vtable(self).CanUnloadNow)(::windows_core::Interface::as_raw(self), hmodule.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ICLRDebugging, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICLRDebugging { - type Vtable = ICLRDebugging_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICLRDebugging { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd28f3c5a_9634_4206_a509_477552eefb10); -} #[repr(C)] #[doc(hidden)] pub struct ICLRDebugging_Vtbl { @@ -542,9 +470,8 @@ pub struct ICLRDebugging_Vtbl { pub OpenVirtualProcess: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, modulebaseaddress: u64, pdatatarget: *mut ::core::ffi::c_void, plibraryprovider: *mut ::core::ffi::c_void, pmaxdebuggersupportedversion: *const CLR_DEBUGGING_VERSION, riidprocess: *const ::windows_core::GUID, ppprocess: *mut *mut ::core::ffi::c_void, pversion: *mut CLR_DEBUGGING_VERSION, pdwflags: *mut CLR_DEBUGGING_PROCESS_FLAGS) -> ::windows_core::HRESULT, pub CanUnloadNow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hmodule: super::super::Foundation::HMODULE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICLRDebuggingLibraryProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICLRDebuggingLibraryProvider, ICLRDebuggingLibraryProvider_Vtbl, 0x3151c08d_4d09_4f9b_8838_2880bf18fe51); +::windows_core::imp::interface_hierarchy!(ICLRDebuggingLibraryProvider, ::windows_core::IUnknown); impl ICLRDebuggingLibraryProvider { pub unsafe fn ProvideLibrary(&self, pwszfilename: P0, dwtimestamp: u32, dwsizeofimage: u32) -> ::windows_core::Result where @@ -554,22 +481,14 @@ impl ICLRDebuggingLibraryProvider { (::windows_core::Interface::vtable(self).ProvideLibrary)(::windows_core::Interface::as_raw(self), pwszfilename.into_param().abi(), dwtimestamp, dwsizeofimage, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ICLRDebuggingLibraryProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICLRDebuggingLibraryProvider { - type Vtable = ICLRDebuggingLibraryProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICLRDebuggingLibraryProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3151c08d_4d09_4f9b_8838_2880bf18fe51); -} #[repr(C)] #[doc(hidden)] pub struct ICLRDebuggingLibraryProvider_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub ProvideLibrary: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwszfilename: ::windows_core::PCWSTR, dwtimestamp: u32, dwsizeofimage: u32, phmodule: *mut super::super::Foundation::HMODULE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICLRDomainManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICLRDomainManager, ICLRDomainManager_Vtbl, 0x270d00a2_8e15_4d0b_adeb_37bc3e47df77); +::windows_core::imp::interface_hierarchy!(ICLRDomainManager, ::windows_core::IUnknown); impl ICLRDomainManager { pub unsafe fn SetAppDomainManagerType(&self, wszappdomainmanagerassembly: P0, wszappdomainmanagertype: P1, dwinitializedomainflags: EInitializeNewDomainFlags) -> ::windows_core::Result<()> where @@ -582,13 +501,6 @@ impl ICLRDomainManager { (::windows_core::Interface::vtable(self).SetPropertiesForDefaultAppDomain)(::windows_core::Interface::as_raw(self), nproperties, pwszpropertynames, pwszpropertyvalues).ok() } } -::windows_core::imp::interface_hierarchy!(ICLRDomainManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICLRDomainManager { - type Vtable = ICLRDomainManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICLRDomainManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x270d00a2_8e15_4d0b_adeb_37bc3e47df77); -} #[repr(C)] #[doc(hidden)] pub struct ICLRDomainManager_Vtbl { @@ -596,9 +508,8 @@ pub struct ICLRDomainManager_Vtbl { pub SetAppDomainManagerType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wszappdomainmanagerassembly: ::windows_core::PCWSTR, wszappdomainmanagertype: ::windows_core::PCWSTR, dwinitializedomainflags: EInitializeNewDomainFlags) -> ::windows_core::HRESULT, pub SetPropertiesForDefaultAppDomain: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nproperties: u32, pwszpropertynames: *const ::windows_core::PCWSTR, pwszpropertyvalues: *const ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICLRErrorReportingManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICLRErrorReportingManager, ICLRErrorReportingManager_Vtbl, 0x980d2f1a_bf79_4c08_812a_bb9778928f78); +::windows_core::imp::interface_hierarchy!(ICLRErrorReportingManager, ::windows_core::IUnknown); impl ICLRErrorReportingManager { pub unsafe fn GetBucketParametersForCurrentException(&self, pparams: *mut BucketParameters) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetBucketParametersForCurrentException)(::windows_core::Interface::as_raw(self), pparams).ok() @@ -610,13 +521,6 @@ impl ICLRErrorReportingManager { (::windows_core::Interface::vtable(self).EndCustomDump)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ICLRErrorReportingManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICLRErrorReportingManager { - type Vtable = ICLRErrorReportingManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICLRErrorReportingManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x980d2f1a_bf79_4c08_812a_bb9778928f78); -} #[repr(C)] #[doc(hidden)] pub struct ICLRErrorReportingManager_Vtbl { @@ -625,9 +529,8 @@ pub struct ICLRErrorReportingManager_Vtbl { pub BeginCustomDump: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwflavor: ECustomDumpFlavor, dwnumitems: u32, items: *const CustomDumpItem, dwreserved: u32) -> ::windows_core::HRESULT, pub EndCustomDump: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICLRGCManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICLRGCManager, ICLRGCManager_Vtbl, 0x54d9007e_a8e2_4885_b7bf_f998deee4f2a); +::windows_core::imp::interface_hierarchy!(ICLRGCManager, ::windows_core::IUnknown); impl ICLRGCManager { pub unsafe fn Collect(&self, generation: i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Collect)(::windows_core::Interface::as_raw(self), generation).ok() @@ -639,13 +542,6 @@ impl ICLRGCManager { (::windows_core::Interface::vtable(self).SetGCStartupLimits)(::windows_core::Interface::as_raw(self), segmentsize, maxgen0size).ok() } } -::windows_core::imp::interface_hierarchy!(ICLRGCManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICLRGCManager { - type Vtable = ICLRGCManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICLRGCManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x54d9007e_a8e2_4885_b7bf_f998deee4f2a); -} #[repr(C)] #[doc(hidden)] pub struct ICLRGCManager_Vtbl { @@ -654,9 +550,8 @@ pub struct ICLRGCManager_Vtbl { pub GetStats: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstats: *mut COR_GC_STATS) -> ::windows_core::HRESULT, pub SetGCStartupLimits: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, segmentsize: u32, maxgen0size: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICLRGCManager2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICLRGCManager2, ICLRGCManager2_Vtbl, 0x0603b793_a97a_4712_9cb4_0cd1c74c0f7c); +::windows_core::imp::interface_hierarchy!(ICLRGCManager2, ::windows_core::IUnknown, ICLRGCManager); impl ICLRGCManager2 { pub unsafe fn Collect(&self, generation: i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.Collect)(::windows_core::Interface::as_raw(self), generation).ok() @@ -671,22 +566,14 @@ impl ICLRGCManager2 { (::windows_core::Interface::vtable(self).SetGCStartupLimitsEx)(::windows_core::Interface::as_raw(self), segmentsize, maxgen0size).ok() } } -::windows_core::imp::interface_hierarchy!(ICLRGCManager2, ::windows_core::IUnknown, ICLRGCManager); -unsafe impl ::windows_core::Interface for ICLRGCManager2 { - type Vtable = ICLRGCManager2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICLRGCManager2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0603b793_a97a_4712_9cb4_0cd1c74c0f7c); -} #[repr(C)] #[doc(hidden)] pub struct ICLRGCManager2_Vtbl { pub base__: ICLRGCManager_Vtbl, pub SetGCStartupLimitsEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, segmentsize: usize, maxgen0size: usize) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICLRHostBindingPolicyManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICLRHostBindingPolicyManager, ICLRHostBindingPolicyManager_Vtbl, 0x4b3545e7_1856_48c9_a8ba_24b21a753c09); +::windows_core::imp::interface_hierarchy!(ICLRHostBindingPolicyManager, ::windows_core::IUnknown); 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 @@ -702,13 +589,6 @@ impl ICLRHostBindingPolicyManager { (::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::imp::interface_hierarchy!(ICLRHostBindingPolicyManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICLRHostBindingPolicyManager { - type Vtable = ICLRHostBindingPolicyManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICLRHostBindingPolicyManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4b3545e7_1856_48c9_a8ba_24b21a753c09); -} #[repr(C)] #[doc(hidden)] pub struct ICLRHostBindingPolicyManager_Vtbl { @@ -716,9 +596,8 @@ pub struct ICLRHostBindingPolicyManager_Vtbl { pub ModifyApplicationPolicy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwzsourceassemblyidentity: ::windows_core::PCWSTR, pwztargetassemblyidentity: ::windows_core::PCWSTR, pbapplicationpolicy: *const u8, cbapppolicysize: u32, dwpolicymodifyflags: u32, pbnewapplicationpolicy: *mut u8, pcbnewapppolicysize: *mut u32) -> ::windows_core::HRESULT, pub EvaluatePolicy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwzreferenceidentity: ::windows_core::PCWSTR, pbapplicationpolicy: *const u8, cbapppolicysize: u32, pwzpostpolicyreferenceidentity: ::windows_core::PWSTR, pcchpostpolicyreferenceidentity: *mut u32, pdwpoliciesapplied: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICLRHostProtectionManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICLRHostProtectionManager, ICLRHostProtectionManager_Vtbl, 0x89f25f5c_ceef_43e1_9cfa_a68ce863aaac); +::windows_core::imp::interface_hierarchy!(ICLRHostProtectionManager, ::windows_core::IUnknown); impl ICLRHostProtectionManager { pub unsafe fn SetProtectedCategories(&self, categories: EApiCategories) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetProtectedCategories)(::windows_core::Interface::as_raw(self), categories).ok() @@ -727,13 +606,6 @@ impl ICLRHostProtectionManager { (::windows_core::Interface::vtable(self).SetEagerSerializeGrantSets)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ICLRHostProtectionManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICLRHostProtectionManager { - type Vtable = ICLRHostProtectionManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICLRHostProtectionManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x89f25f5c_ceef_43e1_9cfa_a68ce863aaac); -} #[repr(C)] #[doc(hidden)] pub struct ICLRHostProtectionManager_Vtbl { @@ -741,56 +613,39 @@ pub struct ICLRHostProtectionManager_Vtbl { pub SetProtectedCategories: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, categories: EApiCategories) -> ::windows_core::HRESULT, pub SetEagerSerializeGrantSets: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICLRIoCompletionManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICLRIoCompletionManager, ICLRIoCompletionManager_Vtbl, 0x2d74ce86_b8d6_4c84_b3a7_9768933b3c12); +::windows_core::imp::interface_hierarchy!(ICLRIoCompletionManager, ::windows_core::IUnknown); impl ICLRIoCompletionManager { pub unsafe fn OnComplete(&self, dwerrorcode: u32, numberofbytestransferred: u32, pvoverlapped: *const ::core::ffi::c_void) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnComplete)(::windows_core::Interface::as_raw(self), dwerrorcode, numberofbytestransferred, pvoverlapped).ok() } } -::windows_core::imp::interface_hierarchy!(ICLRIoCompletionManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICLRIoCompletionManager { - type Vtable = ICLRIoCompletionManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICLRIoCompletionManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2d74ce86_b8d6_4c84_b3a7_9768933b3c12); -} #[repr(C)] #[doc(hidden)] pub struct ICLRIoCompletionManager_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnComplete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwerrorcode: u32, numberofbytestransferred: u32, pvoverlapped: *const ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICLRMemoryNotificationCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICLRMemoryNotificationCallback, ICLRMemoryNotificationCallback_Vtbl, 0x47eb8e57_0846_4546_af76_6f42fcfc2649); +::windows_core::imp::interface_hierarchy!(ICLRMemoryNotificationCallback, ::windows_core::IUnknown); impl ICLRMemoryNotificationCallback { pub unsafe fn OnMemoryNotification(&self, ememoryavailable: EMemoryAvailable) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnMemoryNotification)(::windows_core::Interface::as_raw(self), ememoryavailable).ok() } } -::windows_core::imp::interface_hierarchy!(ICLRMemoryNotificationCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICLRMemoryNotificationCallback { - type Vtable = ICLRMemoryNotificationCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICLRMemoryNotificationCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x47eb8e57_0846_4546_af76_6f42fcfc2649); -} #[repr(C)] #[doc(hidden)] pub struct ICLRMemoryNotificationCallback_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnMemoryNotification: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ememoryavailable: EMemoryAvailable) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICLRMetaHost(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICLRMetaHost, ICLRMetaHost_Vtbl, 0xd332db9e_b9b3_4125_8207_a14884f53216); +::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<::windows_core::PCWSTR>, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -821,7 +676,7 @@ impl ICLRMetaHost { } pub unsafe fn QueryLegacyV2RuntimeBinding(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).QueryLegacyV2RuntimeBinding)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -830,13 +685,6 @@ impl ICLRMetaHost { (::windows_core::Interface::vtable(self).ExitProcess)(::windows_core::Interface::as_raw(self), iexitcode).ok() } } -::windows_core::imp::interface_hierarchy!(ICLRMetaHost, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICLRMetaHost { - type Vtable = ICLRMetaHost_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICLRMetaHost { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd332db9e_b9b3_4125_8207_a14884f53216); -} #[repr(C)] #[doc(hidden)] pub struct ICLRMetaHost_Vtbl { @@ -855,9 +703,8 @@ pub struct ICLRMetaHost_Vtbl { pub QueryLegacyV2RuntimeBinding: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppunk: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ExitProcess: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, iexitcode: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICLRMetaHostPolicy(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICLRMetaHostPolicy, ICLRMetaHostPolicy_Vtbl, 0xe2190695_77b2_492e_8e14_c4b3a7fdd593); +::windows_core::imp::interface_hierarchy!(ICLRMetaHostPolicy, ::windows_core::IUnknown); impl ICLRMetaHostPolicy { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -865,19 +712,12 @@ impl ICLRMetaHostPolicy { where P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, P1: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ICLRMetaHostPolicy, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICLRMetaHostPolicy { - type Vtable = ICLRMetaHostPolicy_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICLRMetaHostPolicy { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe2190695_77b2_492e_8e14_c4b3a7fdd593); -} #[repr(C)] #[doc(hidden)] pub struct ICLRMetaHostPolicy_Vtbl { @@ -887,9 +727,8 @@ pub struct ICLRMetaHostPolicy_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetRequestedRuntime: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICLROnEventManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICLROnEventManager, ICLROnEventManager_Vtbl, 0x1d0e0132_e64f_493d_9260_025c0e32c175); +::windows_core::imp::interface_hierarchy!(ICLROnEventManager, ::windows_core::IUnknown); impl ICLROnEventManager { pub unsafe fn RegisterActionOnEvent(&self, event: EClrEvent, paction: P0) -> ::windows_core::Result<()> where @@ -904,13 +743,6 @@ impl ICLROnEventManager { (::windows_core::Interface::vtable(self).UnregisterActionOnEvent)(::windows_core::Interface::as_raw(self), event, paction.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ICLROnEventManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICLROnEventManager { - type Vtable = ICLROnEventManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICLROnEventManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1d0e0132_e64f_493d_9260_025c0e32c175); -} #[repr(C)] #[doc(hidden)] pub struct ICLROnEventManager_Vtbl { @@ -918,9 +750,8 @@ pub struct ICLROnEventManager_Vtbl { pub RegisterActionOnEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, event: EClrEvent, paction: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub UnregisterActionOnEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, event: EClrEvent, paction: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICLRPolicyManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICLRPolicyManager, ICLRPolicyManager_Vtbl, 0x7d290010_d781_45da_a6f8_aa5d711a730e); +::windows_core::imp::interface_hierarchy!(ICLRPolicyManager, ::windows_core::IUnknown); impl ICLRPolicyManager { pub unsafe fn SetDefaultAction(&self, operation: EClrOperation, action: EPolicyAction) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetDefaultAction)(::windows_core::Interface::as_raw(self), operation, action).ok() @@ -941,13 +772,6 @@ impl ICLRPolicyManager { (::windows_core::Interface::vtable(self).SetUnhandledExceptionPolicy)(::windows_core::Interface::as_raw(self), policy).ok() } } -::windows_core::imp::interface_hierarchy!(ICLRPolicyManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICLRPolicyManager { - type Vtable = ICLRPolicyManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICLRPolicyManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7d290010_d781_45da_a6f8_aa5d711a730e); -} #[repr(C)] #[doc(hidden)] pub struct ICLRPolicyManager_Vtbl { @@ -959,30 +783,21 @@ pub struct ICLRPolicyManager_Vtbl { pub SetActionOnFailure: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, failure: EClrFailure, action: EPolicyAction) -> ::windows_core::HRESULT, pub SetUnhandledExceptionPolicy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, policy: EClrUnhandledException) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICLRProbingAssemblyEnum(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICLRProbingAssemblyEnum, ICLRProbingAssemblyEnum_Vtbl, 0xd0c5fb1f_416b_4f97_81f4_7ac7dc24dd5d); +::windows_core::imp::interface_hierarchy!(ICLRProbingAssemblyEnum, ::windows_core::IUnknown); impl ICLRProbingAssemblyEnum { pub unsafe fn Get(&self, dwindex: u32, pwzbuffer: ::windows_core::PWSTR, pcchbuffersize: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Get)(::windows_core::Interface::as_raw(self), dwindex, ::core::mem::transmute(pwzbuffer), pcchbuffersize).ok() } } -::windows_core::imp::interface_hierarchy!(ICLRProbingAssemblyEnum, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICLRProbingAssemblyEnum { - type Vtable = ICLRProbingAssemblyEnum_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICLRProbingAssemblyEnum { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd0c5fb1f_416b_4f97_81f4_7ac7dc24dd5d); -} #[repr(C)] #[doc(hidden)] pub struct ICLRProbingAssemblyEnum_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Get: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwindex: u32, pwzbuffer: ::windows_core::PWSTR, pcchbuffersize: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICLRProfiling(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICLRProfiling, ICLRProfiling_Vtbl, 0xb349abe3_b56f_4689_bfcd_76bf39d888ea); +::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 @@ -991,43 +806,27 @@ impl ICLRProfiling { (::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::imp::interface_hierarchy!(ICLRProfiling, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICLRProfiling { - type Vtable = ICLRProfiling_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICLRProfiling { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb349abe3_b56f_4689_bfcd_76bf39d888ea); -} #[repr(C)] #[doc(hidden)] pub struct ICLRProfiling_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub AttachProfiler: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwprofileeprocessid: u32, dwmillisecondsmax: u32, pclsidprofiler: *const ::windows_core::GUID, wszprofilerpath: ::windows_core::PCWSTR, pvclientdata: *const ::core::ffi::c_void, cbclientdata: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICLRReferenceAssemblyEnum(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICLRReferenceAssemblyEnum, ICLRReferenceAssemblyEnum_Vtbl, 0xd509cb5d_cf32_4876_ae61_67770cf91973); +::windows_core::imp::interface_hierarchy!(ICLRReferenceAssemblyEnum, ::windows_core::IUnknown); impl ICLRReferenceAssemblyEnum { pub unsafe fn Get(&self, dwindex: u32, pwzbuffer: ::windows_core::PWSTR, pcchbuffersize: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Get)(::windows_core::Interface::as_raw(self), dwindex, ::core::mem::transmute(pwzbuffer), pcchbuffersize).ok() } } -::windows_core::imp::interface_hierarchy!(ICLRReferenceAssemblyEnum, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICLRReferenceAssemblyEnum { - type Vtable = ICLRReferenceAssemblyEnum_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICLRReferenceAssemblyEnum { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd509cb5d_cf32_4876_ae61_67770cf91973); -} #[repr(C)] #[doc(hidden)] pub struct ICLRReferenceAssemblyEnum_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Get: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwindex: u32, pwzbuffer: ::windows_core::PWSTR, pcchbuffersize: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICLRRuntimeHost(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICLRRuntimeHost, ICLRRuntimeHost_Vtbl, 0x90f1a06c_7712_4762_86b5_7a5eba6bdb02); +::windows_core::imp::interface_hierarchy!(ICLRRuntimeHost, ::windows_core::IUnknown); impl ICLRRuntimeHost { pub unsafe fn Start(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Start)(::windows_core::Interface::as_raw(self)).ok() @@ -1076,13 +875,6 @@ impl ICLRRuntimeHost { (::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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ICLRRuntimeHost, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICLRRuntimeHost { - type Vtable = ICLRRuntimeHost_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICLRRuntimeHost { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x90f1a06c_7712_4762_86b5_7a5eba6bdb02); -} #[repr(C)] #[doc(hidden)] pub struct ICLRRuntimeHost_Vtbl { @@ -1097,9 +889,8 @@ pub struct ICLRRuntimeHost_Vtbl { pub ExecuteApplication: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwzappfullname: ::windows_core::PCWSTR, dwmanifestpaths: u32, ppwzmanifestpaths: *const ::windows_core::PCWSTR, dwactivationdata: u32, ppwzactivationdata: *const ::windows_core::PCWSTR, preturnvalue: *mut i32) -> ::windows_core::HRESULT, pub ExecuteInDefaultAppDomain: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwzassemblypath: ::windows_core::PCWSTR, pwztypename: ::windows_core::PCWSTR, pwzmethodname: ::windows_core::PCWSTR, pwzargument: ::windows_core::PCWSTR, preturnvalue: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICLRRuntimeInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICLRRuntimeInfo, ICLRRuntimeInfo_Vtbl, 0xbd39d1d2_ba2f_486a_89b0_b4b0cb466891); +::windows_core::imp::interface_hierarchy!(ICLRRuntimeInfo, ::windows_core::IUnknown); impl ICLRRuntimeInfo { pub unsafe fn GetVersionString(&self, pwzbuffer: ::windows_core::PWSTR, pcchbuffer: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetVersionString)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pwzbuffer), pcchbuffer).ok() @@ -1133,7 +924,7 @@ impl ICLRRuntimeInfo { } pub unsafe fn GetInterface(&self, rclsid: *const ::windows_core::GUID) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetInterface)(::windows_core::Interface::as_raw(self), rclsid, &T::IID, &mut result__).from_abi(result__) @@ -1158,13 +949,6 @@ impl ICLRRuntimeInfo { (::windows_core::Interface::vtable(self).IsStarted)(::windows_core::Interface::as_raw(self), pbstarted, pdwstartupflags).ok() } } -::windows_core::imp::interface_hierarchy!(ICLRRuntimeInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICLRRuntimeInfo { - type Vtable = ICLRRuntimeInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICLRRuntimeInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbd39d1d2_ba2f_486a_89b0_b4b0cb466891); -} #[repr(C)] #[doc(hidden)] pub struct ICLRRuntimeInfo_Vtbl { @@ -1182,9 +966,8 @@ pub struct ICLRRuntimeInfo_Vtbl { pub BindAsLegacyV2Runtime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub IsStarted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstarted: *mut super::super::Foundation::BOOL, pdwstartupflags: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICLRStrongName(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICLRStrongName, ICLRStrongName_Vtbl, 0x9fd93ccf_3280_4391_b3a9_96e1cde77c8d); +::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 @@ -1325,13 +1108,6 @@ impl ICLRStrongName { (::windows_core::Interface::vtable(self).StrongNameTokenFromPublicKey)(::windows_core::Interface::as_raw(self), pbpublickeyblob, cbpublickeyblob, ppbstrongnametoken, pcbstrongnametoken).ok() } } -::windows_core::imp::interface_hierarchy!(ICLRStrongName, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICLRStrongName { - type Vtable = ICLRStrongName_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICLRStrongName { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9fd93ccf_3280_4391_b3a9_96e1cde77c8d); -} #[repr(C)] #[doc(hidden)] pub struct ICLRStrongName_Vtbl { @@ -1362,9 +1138,8 @@ pub struct ICLRStrongName_Vtbl { pub StrongNameTokenFromAssemblyEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwzfilepath: ::windows_core::PCWSTR, ppbstrongnametoken: *mut *mut u8, pcbstrongnametoken: *mut u32, ppbpublickeyblob: *mut *mut u8, pcbpublickeyblob: *mut u32) -> ::windows_core::HRESULT, pub StrongNameTokenFromPublicKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbpublickeyblob: *const u8, cbpublickeyblob: u32, ppbstrongnametoken: *mut *mut u8, pcbstrongnametoken: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICLRStrongName2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICLRStrongName2, ICLRStrongName2_Vtbl, 0xc22ed5c5_4b59_4975_90eb_85ea55c0069b); +::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 @@ -1381,13 +1156,6 @@ impl ICLRStrongName2 { (::windows_core::Interface::vtable(self).StrongNameSignatureVerificationEx2)(::windows_core::Interface::as_raw(self), wszfilepath.into_param().abi(), fforceverification.into_param().abi(), pbecmapublickey, cbecmapublickey, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ICLRStrongName2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICLRStrongName2 { - type Vtable = ICLRStrongName2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICLRStrongName2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc22ed5c5_4b59_4975_90eb_85ea55c0069b); -} #[repr(C)] #[doc(hidden)] pub struct ICLRStrongName2_Vtbl { @@ -1395,9 +1163,8 @@ pub struct ICLRStrongName2_Vtbl { pub StrongNameGetPublicKeyEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwzkeycontainer: ::windows_core::PCWSTR, pbkeyblob: *const u8, cbkeyblob: u32, ppbpublickeyblob: *mut *mut u8, pcbpublickeyblob: *mut u32, uhashalgid: u32, ureserved: u32) -> ::windows_core::HRESULT, pub StrongNameSignatureVerificationEx2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wszfilepath: ::windows_core::PCWSTR, fforceverification: super::super::Foundation::BOOLEAN, pbecmapublickey: *const u8, cbecmapublickey: u32, pfwasverified: *mut u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICLRStrongName3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICLRStrongName3, ICLRStrongName3_Vtbl, 0x22c7089b_bbd3_414a_b698_210f263f1fed); +::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 @@ -1418,13 +1185,6 @@ impl ICLRStrongName3 { (::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::imp::interface_hierarchy!(ICLRStrongName3, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICLRStrongName3 { - type Vtable = ICLRStrongName3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICLRStrongName3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x22c7089b_bbd3_414a_b698_210f263f1fed); -} #[repr(C)] #[doc(hidden)] pub struct ICLRStrongName3_Vtbl { @@ -1433,9 +1193,8 @@ pub struct ICLRStrongName3_Vtbl { pub StrongNameDigestSign: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wszkeycontainer: ::windows_core::PCWSTR, pbkeyblob: *const u8, cbkeyblob: u32, pbdigestblob: *const u8, cbdigestblob: u32, hashalgid: u32, ppbsignatureblob: *mut *mut u8, pcbsignatureblob: *mut u32, dwflags: u32) -> ::windows_core::HRESULT, pub StrongNameDigestEmbed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wszfilepath: ::windows_core::PCWSTR, pbsignatureblob: *const u8, cbsignatureblob: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICLRSyncManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICLRSyncManager, ICLRSyncManager_Vtbl, 0x55ff199d_ad21_48f9_a16c_f24ebbb8727d); +::windows_core::imp::interface_hierarchy!(ICLRSyncManager, ::windows_core::IUnknown); impl ICLRSyncManager { pub unsafe fn GetMonitorOwner(&self, cookie: usize) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1453,13 +1212,6 @@ impl ICLRSyncManager { (::windows_core::Interface::vtable(self).DeleteRWLockOwnerIterator)(::windows_core::Interface::as_raw(self), iterator).ok() } } -::windows_core::imp::interface_hierarchy!(ICLRSyncManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICLRSyncManager { - type Vtable = ICLRSyncManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICLRSyncManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x55ff199d_ad21_48f9_a16c_f24ebbb8727d); -} #[repr(C)] #[doc(hidden)] pub struct ICLRSyncManager_Vtbl { @@ -1469,9 +1221,8 @@ pub struct ICLRSyncManager_Vtbl { pub GetRWLockOwnerNext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, iterator: usize, ppownerhosttask: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub DeleteRWLockOwnerIterator: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, iterator: usize) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICLRTask(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICLRTask, ICLRTask_Vtbl, 0x28e66a4a_9906_4225_b231_9187c3eb8611); +::windows_core::imp::interface_hierarchy!(ICLRTask, ::windows_core::IUnknown); impl ICLRTask { pub unsafe fn SwitchIn(&self, threadhandle: P0) -> ::windows_core::Result<()> where @@ -1516,13 +1267,6 @@ impl ICLRTask { (::windows_core::Interface::vtable(self).SetTaskIdentifier)(::windows_core::Interface::as_raw(self), asked).ok() } } -::windows_core::imp::interface_hierarchy!(ICLRTask, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICLRTask { - type Vtable = ICLRTask_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICLRTask { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x28e66a4a_9906_4225_b231_9187c3eb8611); -} #[repr(C)] #[doc(hidden)] pub struct ICLRTask_Vtbl { @@ -1539,9 +1283,8 @@ pub struct ICLRTask_Vtbl { pub LocksHeld: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plockcount: *mut usize) -> ::windows_core::HRESULT, pub SetTaskIdentifier: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, asked: u64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICLRTask2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICLRTask2, ICLRTask2_Vtbl, 0x28e66a4a_9906_4225_b231_9187c3eb8612); +::windows_core::imp::interface_hierarchy!(ICLRTask2, ::windows_core::IUnknown, ICLRTask); impl ICLRTask2 { pub unsafe fn SwitchIn(&self, threadhandle: P0) -> ::windows_core::Result<()> where @@ -1592,13 +1335,6 @@ impl ICLRTask2 { (::windows_core::Interface::vtable(self).EndPreventAsyncAbort)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ICLRTask2, ::windows_core::IUnknown, ICLRTask); -unsafe impl ::windows_core::Interface for ICLRTask2 { - type Vtable = ICLRTask2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICLRTask2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x28e66a4a_9906_4225_b231_9187c3eb8612); -} #[repr(C)] #[doc(hidden)] pub struct ICLRTask2_Vtbl { @@ -1606,9 +1342,8 @@ pub struct ICLRTask2_Vtbl { pub BeginPreventAsyncAbort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub EndPreventAsyncAbort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICLRTaskManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICLRTaskManager, ICLRTaskManager_Vtbl, 0x4862efbe_3ae5_44f8_8feb_346190ee8a34); +::windows_core::imp::interface_hierarchy!(ICLRTaskManager, ::windows_core::IUnknown); impl ICLRTaskManager { pub unsafe fn CreateTask(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1629,13 +1364,6 @@ impl ICLRTaskManager { (::windows_core::Interface::vtable(self).GetCurrentTaskType)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ICLRTaskManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICLRTaskManager { - type Vtable = ICLRTaskManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICLRTaskManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4862efbe_3ae5_44f8_8feb_346190ee8a34); -} #[repr(C)] #[doc(hidden)] pub struct ICLRTaskManager_Vtbl { @@ -1646,9 +1374,8 @@ pub struct ICLRTaskManager_Vtbl { pub SetLocale: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lcid: u32) -> ::windows_core::HRESULT, pub GetCurrentTaskType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptasktype: *mut ETaskType) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICatalogServices(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICatalogServices, ICatalogServices_Vtbl, 0x04c6be1e_1db1_4058_ab7a_700cccfbf254); +::windows_core::imp::interface_hierarchy!(ICatalogServices, ::windows_core::IUnknown); impl ICatalogServices { pub unsafe fn Autodone(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Autodone)(::windows_core::Interface::as_raw(self)).ok() @@ -1657,13 +1384,6 @@ impl ICatalogServices { (::windows_core::Interface::vtable(self).NotAutodone)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ICatalogServices, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICatalogServices { - type Vtable = ICatalogServices_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICatalogServices { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x04c6be1e_1db1_4058_ab7a_700cccfbf254); -} #[repr(C)] #[doc(hidden)] pub struct ICatalogServices_Vtbl { @@ -1671,9 +1391,8 @@ pub struct ICatalogServices_Vtbl { pub Autodone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub NotAutodone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICorConfiguration(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICorConfiguration, ICorConfiguration_Vtbl, 0x5c2b07a5_1e98_11d3_872f_00c04f79ed0d); +::windows_core::imp::interface_hierarchy!(ICorConfiguration, ::windows_core::IUnknown); impl ICorConfiguration { pub unsafe fn SetGCThreadControl(&self, pgcthreadcontrol: P0) -> ::windows_core::Result<()> where @@ -1697,13 +1416,6 @@ impl ICorConfiguration { (::windows_core::Interface::vtable(self).AddDebuggerSpecialThread)(::windows_core::Interface::as_raw(self), dwspecialthreadid).ok() } } -::windows_core::imp::interface_hierarchy!(ICorConfiguration, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICorConfiguration { - type Vtable = ICorConfiguration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICorConfiguration { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5c2b07a5_1e98_11d3_872f_00c04f79ed0d); -} #[repr(C)] #[doc(hidden)] pub struct ICorConfiguration_Vtbl { @@ -1713,9 +1425,8 @@ pub struct ICorConfiguration_Vtbl { pub SetDebuggerThreadControl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdebuggerthreadcontrol: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub AddDebuggerSpecialThread: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwspecialthreadid: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICorRuntimeHost(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICorRuntimeHost, ICorRuntimeHost_Vtbl, 0xcb2f6722_ab3a_11d2_9c40_00c04fa30a3e); +::windows_core::imp::interface_hierarchy!(ICorRuntimeHost, ::windows_core::IUnknown); impl ICorRuntimeHost { pub unsafe fn CreateLogicalThreadState(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).CreateLogicalThreadState)(::windows_core::Interface::as_raw(self)).ok() @@ -1801,13 +1512,6 @@ impl ICorRuntimeHost { (::windows_core::Interface::vtable(self).CurrentDomain)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ICorRuntimeHost, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICorRuntimeHost { - type Vtable = ICorRuntimeHost_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICorRuntimeHost { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcb2f6722_ab3a_11d2_9c40_00c04fa30a3e); -} #[repr(C)] #[doc(hidden)] pub struct ICorRuntimeHost_Vtbl { @@ -1832,9 +1536,8 @@ pub struct ICorRuntimeHost_Vtbl { pub UnloadDomain: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pappdomain: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CurrentDomain: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pappdomain: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICorThreadpool(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICorThreadpool, ICorThreadpool_Vtbl, 0x84680d3a_b2c1_46e8_acc2_dbc0a359159a); +::windows_core::imp::interface_hierarchy!(ICorThreadpool, ::windows_core::IUnknown); impl ICorThreadpool { #[doc = "Required features: `\"Win32_System_Threading\"`"] #[cfg(feature = "Win32_System_Threading")] @@ -1908,13 +1611,6 @@ impl ICorThreadpool { (::windows_core::Interface::vtable(self).CorGetAvailableThreads)(::windows_core::Interface::as_raw(self), availableworkerthreads, availableiocompletionthreads).ok() } } -::windows_core::imp::interface_hierarchy!(ICorThreadpool, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICorThreadpool { - type Vtable = ICorThreadpool_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICorThreadpool { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x84680d3a_b2c1_46e8_acc2_dbc0a359159a); -} #[repr(C)] #[doc(hidden)] pub struct ICorThreadpool_Vtbl { @@ -1946,31 +1642,22 @@ pub struct ICorThreadpool_Vtbl { pub CorGetMaxThreads: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, maxworkerthreads: *mut u32, maxiocompletionthreads: *mut u32) -> ::windows_core::HRESULT, pub CorGetAvailableThreads: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, availableworkerthreads: *mut u32, availableiocompletionthreads: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebuggerInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebuggerInfo, IDebuggerInfo_Vtbl, 0xbf24142d_a47d_4d24_a66d_8c2141944e44); +::windows_core::imp::interface_hierarchy!(IDebuggerInfo, ::windows_core::IUnknown); impl IDebuggerInfo { pub unsafe fn IsDebuggerAttached(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).IsDebuggerAttached)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDebuggerInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebuggerInfo { - type Vtable = IDebuggerInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebuggerInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbf24142d_a47d_4d24_a66d_8c2141944e44); -} #[repr(C)] #[doc(hidden)] pub struct IDebuggerInfo_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub IsDebuggerAttached: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbattached: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebuggerThreadControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebuggerThreadControl, IDebuggerThreadControl_Vtbl, 0x23d86786_0bb5_4774_8fb5_e3522add6246); +::windows_core::imp::interface_hierarchy!(IDebuggerThreadControl, ::windows_core::IUnknown); impl IDebuggerThreadControl { pub unsafe fn ThreadIsBlockingForDebugger(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).ThreadIsBlockingForDebugger)(::windows_core::Interface::as_raw(self)).ok() @@ -1982,13 +1669,6 @@ impl IDebuggerThreadControl { (::windows_core::Interface::vtable(self).StartBlockingForDebugger)(::windows_core::Interface::as_raw(self), dwunused).ok() } } -::windows_core::imp::interface_hierarchy!(IDebuggerThreadControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebuggerThreadControl { - type Vtable = IDebuggerThreadControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebuggerThreadControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x23d86786_0bb5_4774_8fb5_e3522add6246); -} #[repr(C)] #[doc(hidden)] pub struct IDebuggerThreadControl_Vtbl { @@ -1997,9 +1677,8 @@ pub struct IDebuggerThreadControl_Vtbl { pub ReleaseAllRuntimeThreads: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub StartBlockingForDebugger: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwunused: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGCHost(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IGCHost, IGCHost_Vtbl, 0xfac34f6e_0dcd_47b5_8021_531bc5ecca63); +::windows_core::imp::interface_hierarchy!(IGCHost, ::windows_core::IUnknown); impl IGCHost { pub unsafe fn SetGCStartupLimits(&self, segmentsize: u32, maxgen0size: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetGCStartupLimits)(::windows_core::Interface::as_raw(self), segmentsize, maxgen0size).ok() @@ -2017,13 +1696,6 @@ impl IGCHost { (::windows_core::Interface::vtable(self).SetVirtualMemLimit)(::windows_core::Interface::as_raw(self), sztmaxvirtualmemmb).ok() } } -::windows_core::imp::interface_hierarchy!(IGCHost, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGCHost { - type Vtable = IGCHost_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGCHost { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfac34f6e_0dcd_47b5_8021_531bc5ecca63); -} #[repr(C)] #[doc(hidden)] pub struct IGCHost_Vtbl { @@ -2034,9 +1706,8 @@ pub struct IGCHost_Vtbl { pub GetThreadStats: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfibercookie: *const u32, pstats: *mut COR_GC_THREAD_STATS) -> ::windows_core::HRESULT, pub SetVirtualMemLimit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sztmaxvirtualmemmb: usize) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGCHost2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IGCHost2, IGCHost2_Vtbl, 0xa1d70cec_2dbe_4e2f_9291_fdf81438a1df); +::windows_core::imp::interface_hierarchy!(IGCHost2, ::windows_core::IUnknown, IGCHost); impl IGCHost2 { pub unsafe fn SetGCStartupLimits(&self, segmentsize: u32, maxgen0size: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.SetGCStartupLimits)(::windows_core::Interface::as_raw(self), segmentsize, maxgen0size).ok() @@ -2057,43 +1728,27 @@ impl IGCHost2 { (::windows_core::Interface::vtable(self).SetGCStartupLimitsEx)(::windows_core::Interface::as_raw(self), segmentsize, maxgen0size).ok() } } -::windows_core::imp::interface_hierarchy!(IGCHost2, ::windows_core::IUnknown, IGCHost); -unsafe impl ::windows_core::Interface for IGCHost2 { - type Vtable = IGCHost2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGCHost2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa1d70cec_2dbe_4e2f_9291_fdf81438a1df); -} #[repr(C)] #[doc(hidden)] pub struct IGCHost2_Vtbl { pub base__: IGCHost_Vtbl, pub SetGCStartupLimitsEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, segmentsize: usize, maxgen0size: usize) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGCHostControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IGCHostControl, IGCHostControl_Vtbl, 0x5513d564_8374_4cb9_aed9_0083f4160a1d); +::windows_core::imp::interface_hierarchy!(IGCHostControl, ::windows_core::IUnknown); impl IGCHostControl { pub unsafe fn RequestVirtualMemLimit(&self, sztmaxvirtualmemmb: usize, psztnewmaxvirtualmemmb: *mut usize) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).RequestVirtualMemLimit)(::windows_core::Interface::as_raw(self), sztmaxvirtualmemmb, psztnewmaxvirtualmemmb).ok() } } -::windows_core::imp::interface_hierarchy!(IGCHostControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGCHostControl { - type Vtable = IGCHostControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGCHostControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5513d564_8374_4cb9_aed9_0083f4160a1d); -} #[repr(C)] #[doc(hidden)] pub struct IGCHostControl_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub RequestVirtualMemLimit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sztmaxvirtualmemmb: usize, psztnewmaxvirtualmemmb: *mut usize) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGCThreadControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IGCThreadControl, IGCThreadControl_Vtbl, 0xf31d1788_c397_4725_87a5_6af3472c2791); +::windows_core::imp::interface_hierarchy!(IGCThreadControl, ::windows_core::IUnknown); impl IGCThreadControl { pub unsafe fn ThreadIsBlockingForSuspension(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).ThreadIsBlockingForSuspension)(::windows_core::Interface::as_raw(self)).ok() @@ -2105,13 +1760,6 @@ impl IGCThreadControl { (::windows_core::Interface::vtable(self).SuspensionEnding)(::windows_core::Interface::as_raw(self), generation).ok() } } -::windows_core::imp::interface_hierarchy!(IGCThreadControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGCThreadControl { - type Vtable = IGCThreadControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGCThreadControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf31d1788_c397_4725_87a5_6af3472c2791); -} #[repr(C)] #[doc(hidden)] pub struct IGCThreadControl_Vtbl { @@ -2120,9 +1768,8 @@ pub struct IGCThreadControl_Vtbl { pub SuspensionStarting: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SuspensionEnding: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, generation: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHostAssemblyManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IHostAssemblyManager, IHostAssemblyManager_Vtbl, 0x613dabd7_62b2_493e_9e65_c1e32a1e0c5e); +::windows_core::imp::interface_hierarchy!(IHostAssemblyManager, ::windows_core::IUnknown); impl IHostAssemblyManager { pub unsafe fn GetNonHostStoreAssemblies(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2133,13 +1780,6 @@ impl IHostAssemblyManager { (::windows_core::Interface::vtable(self).GetAssemblyStore)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IHostAssemblyManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHostAssemblyManager { - type Vtable = IHostAssemblyManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHostAssemblyManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x613dabd7_62b2_493e_9e65_c1e32a1e0c5e); -} #[repr(C)] #[doc(hidden)] pub struct IHostAssemblyManager_Vtbl { @@ -2147,9 +1787,8 @@ pub struct IHostAssemblyManager_Vtbl { pub GetNonHostStoreAssemblies: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppreferencelist: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetAssemblyStore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppassemblystore: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHostAssemblyStore(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IHostAssemblyStore, IHostAssemblyStore_Vtbl, 0x7b102a88_3f7f_496d_8fa2_c35374e01af3); +::windows_core::imp::interface_hierarchy!(IHostAssemblyStore, ::windows_core::IUnknown); impl IHostAssemblyStore { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -2162,13 +1801,6 @@ impl IHostAssemblyStore { (::windows_core::Interface::vtable(self).ProvideModule)(::windows_core::Interface::as_raw(self), pbindinfo, pdwmoduleid, ::core::mem::transmute(ppstmmoduleimage), ::core::mem::transmute(ppstmpdb)).ok() } } -::windows_core::imp::interface_hierarchy!(IHostAssemblyStore, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHostAssemblyStore { - type Vtable = IHostAssemblyStore_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHostAssemblyStore { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7b102a88_3f7f_496d_8fa2_c35374e01af3); -} #[repr(C)] #[doc(hidden)] pub struct IHostAssemblyStore_Vtbl { @@ -2182,9 +1814,8 @@ pub struct IHostAssemblyStore_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] ProvideModule: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHostAutoEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IHostAutoEvent, IHostAutoEvent_Vtbl, 0x50b0cfce_4063_4278_9673_e5cb4ed0bdb8); +::windows_core::imp::interface_hierarchy!(IHostAutoEvent, ::windows_core::IUnknown); impl IHostAutoEvent { pub unsafe fn Wait(&self, dwmilliseconds: u32, option: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Wait)(::windows_core::Interface::as_raw(self), dwmilliseconds, option).ok() @@ -2193,13 +1824,6 @@ impl IHostAutoEvent { (::windows_core::Interface::vtable(self).Set)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IHostAutoEvent, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHostAutoEvent { - type Vtable = IHostAutoEvent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHostAutoEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x50b0cfce_4063_4278_9673_e5cb4ed0bdb8); -} #[repr(C)] #[doc(hidden)] pub struct IHostAutoEvent_Vtbl { @@ -2207,9 +1831,8 @@ pub struct IHostAutoEvent_Vtbl { pub Wait: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwmilliseconds: u32, option: u32) -> ::windows_core::HRESULT, pub Set: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHostControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IHostControl, IHostControl_Vtbl, 0x02ca073c_7079_4860_880a_c2f7a449c991); +::windows_core::imp::interface_hierarchy!(IHostControl, ::windows_core::IUnknown); impl IHostControl { pub unsafe fn GetHostManager(&self, riid: *const ::windows_core::GUID, ppobject: *mut *mut ::core::ffi::c_void) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetHostManager)(::windows_core::Interface::as_raw(self), riid, ppobject).ok() @@ -2221,13 +1844,6 @@ impl IHostControl { (::windows_core::Interface::vtable(self).SetAppDomainManager)(::windows_core::Interface::as_raw(self), dwappdomainid, punkappdomainmanager.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IHostControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHostControl { - type Vtable = IHostControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHostControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x02ca073c_7079_4860_880a_c2f7a449c991); -} #[repr(C)] #[doc(hidden)] pub struct IHostControl_Vtbl { @@ -2235,9 +1851,8 @@ pub struct IHostControl_Vtbl { pub GetHostManager: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppobject: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetAppDomainManager: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwappdomainid: u32, punkappdomainmanager: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHostCrst(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IHostCrst, IHostCrst_Vtbl, 0x6df710a6_26a4_4a65_8cd5_7237b8bda8dc); +::windows_core::imp::interface_hierarchy!(IHostCrst, ::windows_core::IUnknown); impl IHostCrst { pub unsafe fn Enter(&self, option: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Enter)(::windows_core::Interface::as_raw(self), option).ok() @@ -2253,13 +1868,6 @@ impl IHostCrst { (::windows_core::Interface::vtable(self).SetSpinCount)(::windows_core::Interface::as_raw(self), dwspincount).ok() } } -::windows_core::imp::interface_hierarchy!(IHostCrst, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHostCrst { - type Vtable = IHostCrst_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHostCrst { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6df710a6_26a4_4a65_8cd5_7237b8bda8dc); -} #[repr(C)] #[doc(hidden)] pub struct IHostCrst_Vtbl { @@ -2269,9 +1877,8 @@ pub struct IHostCrst_Vtbl { pub TryEnter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, option: u32, pbsucceeded: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub SetSpinCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwspincount: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHostGCManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IHostGCManager, IHostGCManager_Vtbl, 0x5d4ec34e_f248_457b_b603_255faaba0d21); +::windows_core::imp::interface_hierarchy!(IHostGCManager, ::windows_core::IUnknown); impl IHostGCManager { pub unsafe fn ThreadIsBlockingForSuspension(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).ThreadIsBlockingForSuspension)(::windows_core::Interface::as_raw(self)).ok() @@ -2283,13 +1890,6 @@ impl IHostGCManager { (::windows_core::Interface::vtable(self).SuspensionEnding)(::windows_core::Interface::as_raw(self), generation).ok() } } -::windows_core::imp::interface_hierarchy!(IHostGCManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHostGCManager { - type Vtable = IHostGCManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHostGCManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5d4ec34e_f248_457b_b603_255faaba0d21); -} #[repr(C)] #[doc(hidden)] pub struct IHostGCManager_Vtbl { @@ -2298,9 +1898,8 @@ pub struct IHostGCManager_Vtbl { pub SuspensionStarting: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SuspensionEnding: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, generation: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHostIoCompletionManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IHostIoCompletionManager, IHostIoCompletionManager_Vtbl, 0x8bde9d80_ec06_41d6_83e6_22580effcc20); +::windows_core::imp::interface_hierarchy!(IHostIoCompletionManager, ::windows_core::IUnknown); impl IHostIoCompletionManager { pub unsafe fn CreateIoCompletionPort(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2351,13 +1950,6 @@ impl IHostIoCompletionManager { (::windows_core::Interface::vtable(self).GetMinThreads)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IHostIoCompletionManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHostIoCompletionManager { - type Vtable = IHostIoCompletionManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHostIoCompletionManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8bde9d80_ec06_41d6_83e6_22580effcc20); -} #[repr(C)] #[doc(hidden)] pub struct IHostIoCompletionManager_Vtbl { @@ -2374,9 +1966,8 @@ pub struct IHostIoCompletionManager_Vtbl { pub SetMinThreads: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwminiocompletionthreads: u32) -> ::windows_core::HRESULT, pub GetMinThreads: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwminiocompletionthreads: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHostMalloc(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IHostMalloc, IHostMalloc_Vtbl, 0x1831991c_cc53_4a31_b218_04e910446479); +::windows_core::imp::interface_hierarchy!(IHostMalloc, ::windows_core::IUnknown); impl IHostMalloc { pub unsafe fn Alloc(&self, cbsize: usize, ecriticallevel: EMemoryCriticalLevel, ppmem: *mut *mut ::core::ffi::c_void) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Alloc)(::windows_core::Interface::as_raw(self), cbsize, ecriticallevel, ppmem).ok() @@ -2388,13 +1979,6 @@ impl IHostMalloc { (::windows_core::Interface::vtable(self).Free)(::windows_core::Interface::as_raw(self), pmem).ok() } } -::windows_core::imp::interface_hierarchy!(IHostMalloc, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHostMalloc { - type Vtable = IHostMalloc_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHostMalloc { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1831991c_cc53_4a31_b218_04e910446479); -} #[repr(C)] #[doc(hidden)] pub struct IHostMalloc_Vtbl { @@ -2403,9 +1987,8 @@ pub struct IHostMalloc_Vtbl { pub DebugAlloc: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cbsize: usize, ecriticallevel: EMemoryCriticalLevel, pszfilename: *const u8, ilineno: i32, ppmem: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Free: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pmem: *const ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHostManualEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IHostManualEvent, IHostManualEvent_Vtbl, 0x1bf4ec38_affe_4fb9_85a6_525268f15b54); +::windows_core::imp::interface_hierarchy!(IHostManualEvent, ::windows_core::IUnknown); impl IHostManualEvent { pub unsafe fn Wait(&self, dwmilliseconds: u32, option: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Wait)(::windows_core::Interface::as_raw(self), dwmilliseconds, option).ok() @@ -2417,13 +2000,6 @@ impl IHostManualEvent { (::windows_core::Interface::vtable(self).Set)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IHostManualEvent, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHostManualEvent { - type Vtable = IHostManualEvent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHostManualEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1bf4ec38_affe_4fb9_85a6_525268f15b54); -} #[repr(C)] #[doc(hidden)] pub struct IHostManualEvent_Vtbl { @@ -2432,9 +2008,8 @@ pub struct IHostManualEvent_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Set: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHostMemoryManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IHostMemoryManager, IHostMemoryManager_Vtbl, 0x7bc698d1_f9e3_4460_9cde_d04248e9fa25); +::windows_core::imp::interface_hierarchy!(IHostMemoryManager, ::windows_core::IUnknown); impl IHostMemoryManager { pub unsafe fn CreateMalloc(&self, dwmalloctype: u32) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2472,13 +2047,6 @@ impl IHostMemoryManager { (::windows_core::Interface::vtable(self).ReleasedVirtualAddressSpace)(::windows_core::Interface::as_raw(self), startaddress).ok() } } -::windows_core::imp::interface_hierarchy!(IHostMemoryManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHostMemoryManager { - type Vtable = IHostMemoryManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHostMemoryManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7bc698d1_f9e3_4460_9cde_d04248e9fa25); -} #[repr(C)] #[doc(hidden)] pub struct IHostMemoryManager_Vtbl { @@ -2494,9 +2062,8 @@ pub struct IHostMemoryManager_Vtbl { pub AcquiredVirtualAddressSpace: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, startaddress: *const ::core::ffi::c_void, size: usize) -> ::windows_core::HRESULT, pub ReleasedVirtualAddressSpace: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, startaddress: *const ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHostPolicyManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IHostPolicyManager, IHostPolicyManager_Vtbl, 0x7ae49844_b1e3_4683_ba7c_1e8212ea3b79); +::windows_core::imp::interface_hierarchy!(IHostPolicyManager, ::windows_core::IUnknown); impl IHostPolicyManager { pub unsafe fn OnDefaultAction(&self, operation: EClrOperation, action: EPolicyAction) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnDefaultAction)(::windows_core::Interface::as_raw(self), operation, action).ok() @@ -2508,13 +2075,6 @@ impl IHostPolicyManager { (::windows_core::Interface::vtable(self).OnFailure)(::windows_core::Interface::as_raw(self), failure, action).ok() } } -::windows_core::imp::interface_hierarchy!(IHostPolicyManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHostPolicyManager { - type Vtable = IHostPolicyManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHostPolicyManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7ae49844_b1e3_4683_ba7c_1e8212ea3b79); -} #[repr(C)] #[doc(hidden)] pub struct IHostPolicyManager_Vtbl { @@ -2523,31 +2083,22 @@ pub struct IHostPolicyManager_Vtbl { pub OnTimeout: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, operation: EClrOperation, action: EPolicyAction) -> ::windows_core::HRESULT, pub OnFailure: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, failure: EClrFailure, action: EPolicyAction) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHostSecurityContext(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IHostSecurityContext, IHostSecurityContext_Vtbl, 0x7e573ce4_0343_4423_98d7_6318348a1d3c); +::windows_core::imp::interface_hierarchy!(IHostSecurityContext, ::windows_core::IUnknown); impl IHostSecurityContext { pub unsafe fn Capture(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).Capture)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IHostSecurityContext, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHostSecurityContext { - type Vtable = IHostSecurityContext_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHostSecurityContext { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7e573ce4_0343_4423_98d7_6318348a1d3c); -} #[repr(C)] #[doc(hidden)] pub struct IHostSecurityContext_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Capture: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppclonedcontext: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHostSecurityManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IHostSecurityManager, IHostSecurityManager_Vtbl, 0x75ad2468_a349_4d02_a764_76a68aee0c4f); +::windows_core::imp::interface_hierarchy!(IHostSecurityManager, ::windows_core::IUnknown); impl IHostSecurityManager { pub unsafe fn ImpersonateLoggedOnUser(&self, htoken: P0) -> ::windows_core::Result<()> where @@ -2582,13 +2133,6 @@ impl IHostSecurityManager { (::windows_core::Interface::vtable(self).SetSecurityContext)(::windows_core::Interface::as_raw(self), econtexttype, psecuritycontext.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IHostSecurityManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHostSecurityManager { - type Vtable = IHostSecurityManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHostSecurityManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x75ad2468_a349_4d02_a764_76a68aee0c4f); -} #[repr(C)] #[doc(hidden)] pub struct IHostSecurityManager_Vtbl { @@ -2600,9 +2144,8 @@ pub struct IHostSecurityManager_Vtbl { pub GetSecurityContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, econtexttype: EContextType, ppsecuritycontext: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetSecurityContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, econtexttype: EContextType, psecuritycontext: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHostSemaphore(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IHostSemaphore, IHostSemaphore_Vtbl, 0x855efd47_cc09_463a_a97d_16acab882661); +::windows_core::imp::interface_hierarchy!(IHostSemaphore, ::windows_core::IUnknown); impl IHostSemaphore { pub unsafe fn Wait(&self, dwmilliseconds: u32, option: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Wait)(::windows_core::Interface::as_raw(self), dwmilliseconds, option).ok() @@ -2612,13 +2155,6 @@ impl IHostSemaphore { (::windows_core::Interface::vtable(self).ReleaseSemaphore)(::windows_core::Interface::as_raw(self), lreleasecount, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IHostSemaphore, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHostSemaphore { - type Vtable = IHostSemaphore_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHostSemaphore { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x855efd47_cc09_463a_a97d_16acab882661); -} #[repr(C)] #[doc(hidden)] pub struct IHostSemaphore_Vtbl { @@ -2626,9 +2162,8 @@ pub struct IHostSemaphore_Vtbl { pub Wait: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwmilliseconds: u32, option: u32) -> ::windows_core::HRESULT, pub ReleaseSemaphore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lreleasecount: i32, lppreviouscount: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHostSyncManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IHostSyncManager, IHostSyncManager_Vtbl, 0x234330c7_5f10_4f20_9615_5122dab7a0ac); +::windows_core::imp::interface_hierarchy!(IHostSyncManager, ::windows_core::IUnknown); impl IHostSyncManager { pub unsafe fn SetCLRSyncManager(&self, pmanager: P0) -> ::windows_core::Result<()> where @@ -2675,13 +2210,6 @@ impl IHostSyncManager { (::windows_core::Interface::vtable(self).CreateSemaphoreA)(::windows_core::Interface::as_raw(self), dwinitial, dwmax, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IHostSyncManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHostSyncManager { - type Vtable = IHostSyncManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHostSyncManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x234330c7_5f10_4f20_9615_5122dab7a0ac); -} #[repr(C)] #[doc(hidden)] pub struct IHostSyncManager_Vtbl { @@ -2696,9 +2224,8 @@ pub struct IHostSyncManager_Vtbl { pub CreateRWLockReaderEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, binitialstate: super::super::Foundation::BOOL, cookie: usize, ppevent: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateSemaphoreA: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwinitial: u32, dwmax: u32, ppsemaphore: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHostTask(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IHostTask, IHostTask_Vtbl, 0xc2275828_c4b1_4b55_82c9_92135f74df1a); +::windows_core::imp::interface_hierarchy!(IHostTask, ::windows_core::IUnknown); impl IHostTask { pub unsafe fn Start(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Start)(::windows_core::Interface::as_raw(self)).ok() @@ -2723,13 +2250,6 @@ impl IHostTask { (::windows_core::Interface::vtable(self).SetCLRTask)(::windows_core::Interface::as_raw(self), pclrtask.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IHostTask, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHostTask { - type Vtable = IHostTask_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHostTask { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc2275828_c4b1_4b55_82c9_92135f74df1a); -} #[repr(C)] #[doc(hidden)] pub struct IHostTask_Vtbl { @@ -2741,9 +2261,8 @@ pub struct IHostTask_Vtbl { pub GetPriority: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppriority: *mut i32) -> ::windows_core::HRESULT, pub SetCLRTask: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pclrtask: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHostTaskManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IHostTaskManager, IHostTaskManager_Vtbl, 0x997ff24c_43b7_4352_8667_0dc04fafd354); +::windows_core::imp::interface_hierarchy!(IHostTaskManager, ::windows_core::IUnknown); impl IHostTaskManager { pub unsafe fn GetCurrentTask(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2809,13 +2328,6 @@ impl IHostTaskManager { (::windows_core::Interface::vtable(self).SetCLRTaskManager)(::windows_core::Interface::as_raw(self), ppmanager.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IHostTaskManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHostTaskManager { - type Vtable = IHostTaskManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHostTaskManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x997ff24c_43b7_4352_8667_0dc04fafd354); -} #[repr(C)] #[doc(hidden)] pub struct IHostTaskManager_Vtbl { @@ -2842,9 +2354,8 @@ pub struct IHostTaskManager_Vtbl { pub GetStackGuarantee: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pguarantee: *mut u32) -> ::windows_core::HRESULT, pub SetCLRTaskManager: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppmanager: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHostThreadpoolManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IHostThreadpoolManager, IHostThreadpoolManager_Vtbl, 0x983d50e2_cb15_466b_80fc_845dc6e8c5fd); +::windows_core::imp::interface_hierarchy!(IHostThreadpoolManager, ::windows_core::IUnknown); impl IHostThreadpoolManager { #[doc = "Required features: `\"Win32_System_Threading\"`"] #[cfg(feature = "Win32_System_Threading")] @@ -2870,13 +2381,6 @@ impl IHostThreadpoolManager { (::windows_core::Interface::vtable(self).GetMinThreads)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IHostThreadpoolManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHostThreadpoolManager { - type Vtable = IHostThreadpoolManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHostThreadpoolManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x983d50e2_cb15_466b_80fc_845dc6e8c5fd); -} #[repr(C)] #[doc(hidden)] pub struct IHostThreadpoolManager_Vtbl { @@ -2891,9 +2395,8 @@ pub struct IHostThreadpoolManager_Vtbl { pub SetMinThreads: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwminiocompletionthreads: u32) -> ::windows_core::HRESULT, pub GetMinThreads: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwminiocompletionthreads: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IManagedObject(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IManagedObject, IManagedObject_Vtbl, 0xc3fcc19e_a970_11d2_8b5a_00a0c9b7c9c4); +::windows_core::imp::interface_hierarchy!(IManagedObject, ::windows_core::IUnknown); impl IManagedObject { pub unsafe fn GetSerializedBuffer(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -2903,13 +2406,6 @@ impl IManagedObject { (::windows_core::Interface::vtable(self).GetObjectIdentity)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pbstrguid), appdomainid, pccw).ok() } } -::windows_core::imp::interface_hierarchy!(IManagedObject, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IManagedObject { - type Vtable = IManagedObject_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IManagedObject { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc3fcc19e_a970_11d2_8b5a_00a0c9b7c9c4); -} #[repr(C)] #[doc(hidden)] pub struct IManagedObject_Vtbl { @@ -2917,9 +2413,8 @@ pub struct IManagedObject_Vtbl { pub GetSerializedBuffer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstr: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub GetObjectIdentity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrguid: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>, appdomainid: *mut i32, pccw: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IObjectHandle(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IObjectHandle, IObjectHandle_Vtbl, 0xc460e2b4_e199_412a_8456_84dc3e4838c3); +::windows_core::imp::interface_hierarchy!(IObjectHandle, ::windows_core::IUnknown); impl IObjectHandle { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -2928,13 +2423,6 @@ impl IObjectHandle { (::windows_core::Interface::vtable(self).Unwrap)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IObjectHandle, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IObjectHandle { - type Vtable = IObjectHandle_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IObjectHandle { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc460e2b4_e199_412a_8456_84dc3e4838c3); -} #[repr(C)] #[doc(hidden)] pub struct IObjectHandle_Vtbl { @@ -2944,9 +2432,8 @@ pub struct IObjectHandle_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] Unwrap: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITypeName(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITypeName, ITypeName_Vtbl, 0xb81ff171_20f3_11d2_8dcc_00a0c9b00522); +::windows_core::imp::interface_hierarchy!(ITypeName, ::windows_core::IUnknown); impl ITypeName { pub unsafe fn GetNameCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2974,13 +2461,6 @@ impl ITypeName { (::windows_core::Interface::vtable(self).GetAssemblyName)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITypeName, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITypeName { - type Vtable = ITypeName_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITypeName { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb81ff171_20f3_11d2_8dcc_00a0c9b00522); -} #[repr(C)] #[doc(hidden)] pub struct ITypeName_Vtbl { @@ -2993,9 +2473,8 @@ pub struct ITypeName_Vtbl { pub GetModifiers: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, count: u32, rgmodifiers: *mut u32, pcount: *mut u32) -> ::windows_core::HRESULT, pub GetAssemblyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rgbszassemblynames: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITypeNameBuilder(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITypeNameBuilder, ITypeNameBuilder_Vtbl, 0xb81ff171_20f3_11d2_8dcc_00a0c9b00523); +::windows_core::imp::interface_hierarchy!(ITypeNameBuilder, ::windows_core::IUnknown); impl ITypeNameBuilder { pub unsafe fn OpenGenericArguments(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OpenGenericArguments)(::windows_core::Interface::as_raw(self)).ok() @@ -3041,13 +2520,6 @@ impl ITypeNameBuilder { (::windows_core::Interface::vtable(self).Clear)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ITypeNameBuilder, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITypeNameBuilder { - type Vtable = ITypeNameBuilder_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITypeNameBuilder { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb81ff171_20f3_11d2_8dcc_00a0c9b00523); -} #[repr(C)] #[doc(hidden)] pub struct ITypeNameBuilder_Vtbl { @@ -3065,9 +2537,8 @@ pub struct ITypeNameBuilder_Vtbl { pub ToString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszstringrepresentation: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub Clear: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITypeNameFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITypeNameFactory, ITypeNameFactory_Vtbl, 0xb81ff171_20f3_11d2_8dcc_00a0c9b00521); +::windows_core::imp::interface_hierarchy!(ITypeNameFactory, ::windows_core::IUnknown); impl ITypeNameFactory { pub unsafe fn ParseTypeName(&self, szname: P0, perror: *mut u32, pptypename: *mut ::core::option::Option) -> ::windows_core::Result<()> where @@ -3080,13 +2551,6 @@ impl ITypeNameFactory { (::windows_core::Interface::vtable(self).GetTypeNameBuilder)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITypeNameFactory, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITypeNameFactory { - type Vtable = ITypeNameFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITypeNameFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb81ff171_20f3_11d2_8dcc_00a0c9b00521); -} #[repr(C)] #[doc(hidden)] pub struct ITypeNameFactory_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/System/Com/CallObj/impl.rs b/crates/libs/windows/src/Windows/Win32/System/Com/CallObj/impl.rs index cc967a897f..dedd4808f5 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Com/CallObj/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Com/CallObj/impl.rs @@ -175,7 +175,7 @@ impl ICallFrame_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICallFrameEvents_Impl: Sized { @@ -192,7 +192,7 @@ impl ICallFrameEvents_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnCall: OnCall:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICallFrameWalker_Impl: Sized { @@ -209,7 +209,7 @@ impl ICallFrameWalker_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnWalkInterface: OnWalkInterface:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICallIndirect_Impl: Sized { @@ -256,7 +256,7 @@ impl ICallIndirect_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICallInterceptor_Impl: Sized + ICallIndirect_Impl { @@ -289,7 +289,7 @@ impl ICallInterceptor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ICallUnmarshal_Impl: Sized { @@ -316,7 +316,7 @@ impl ICallUnmarshal_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IInterfaceRelated_Impl: Sized { @@ -349,6 +349,6 @@ impl IInterfaceRelated_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 163e11bc22..9a1ddc472f 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 @@ -15,9 +15,8 @@ where ::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() } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICallFrame(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICallFrame, ICallFrame_Vtbl, 0xd573b4b0_894e_11d2_b8b6_00c04fb9618a); +::windows_core::imp::interface_hierarchy!(ICallFrame, ::windows_core::IUnknown); impl ICallFrame { pub unsafe fn GetInfo(&self, pinfo: *mut CALLFRAMEINFO) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetInfo)(::windows_core::Interface::as_raw(self), pinfo).ok() @@ -101,13 +100,6 @@ impl ICallFrame { (::windows_core::Interface::vtable(self).Invoke)(::windows_core::Interface::as_raw(self), pvreceiver).ok() } } -::windows_core::imp::interface_hierarchy!(ICallFrame, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICallFrame { - type Vtable = ICallFrame_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICallFrame { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd573b4b0_894e_11d2_b8b6_00c04fb9618a); -} #[repr(C)] #[doc(hidden)] pub struct ICallFrame_Vtbl { @@ -138,9 +130,8 @@ pub struct ICallFrame_Vtbl { pub ReleaseMarshalData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbuffer: *const ::core::ffi::c_void, cbbuffer: u32, ibfirstrelease: u32, datarep: u32, pcontext: *const CALLFRAME_MARSHALCONTEXT) -> ::windows_core::HRESULT, pub Invoke: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvreceiver: *const ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICallFrameEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICallFrameEvents, ICallFrameEvents_Vtbl, 0xfd5e0843_fc91_11d0_97d7_00c04fb9618a); +::windows_core::imp::interface_hierarchy!(ICallFrameEvents, ::windows_core::IUnknown); impl ICallFrameEvents { pub unsafe fn OnCall(&self, pframe: P0) -> ::windows_core::Result<()> where @@ -149,22 +140,14 @@ impl ICallFrameEvents { (::windows_core::Interface::vtable(self).OnCall)(::windows_core::Interface::as_raw(self), pframe.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ICallFrameEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICallFrameEvents { - type Vtable = ICallFrameEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICallFrameEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfd5e0843_fc91_11d0_97d7_00c04fb9618a); -} #[repr(C)] #[doc(hidden)] pub struct ICallFrameEvents_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnCall: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pframe: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICallFrameWalker(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICallFrameWalker, ICallFrameWalker_Vtbl, 0x08b23919_392d_11d2_b8a4_00c04fb9618a); +::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 @@ -174,22 +157,14 @@ impl ICallFrameWalker { (::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::imp::interface_hierarchy!(ICallFrameWalker, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICallFrameWalker { - type Vtable = ICallFrameWalker_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICallFrameWalker { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x08b23919_392d_11d2_b8a4_00c04fb9618a); -} #[repr(C)] #[doc(hidden)] pub struct ICallFrameWalker_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnWalkInterface: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, iid: *const ::windows_core::GUID, ppvinterface: *const *const ::core::ffi::c_void, fin: super::super::super::Foundation::BOOL, fout: super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICallIndirect(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICallIndirect, ICallIndirect_Vtbl, 0xd573b4b1_894e_11d2_b8b6_00c04fb9618a); +::windows_core::imp::interface_hierarchy!(ICallIndirect, ::windows_core::IUnknown); impl ICallIndirect { pub unsafe fn CallIndirect(&self, phrreturn: *mut ::windows_core::HRESULT, imethod: u32, pvargs: *const ::core::ffi::c_void, cbargs: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).CallIndirect)(::windows_core::Interface::as_raw(self), phrreturn, imethod, pvargs, cbargs).ok() @@ -205,13 +180,6 @@ impl ICallIndirect { (::windows_core::Interface::vtable(self).GetIID)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(piid.unwrap_or(::std::ptr::null_mut())), ::core::mem::transmute(pfderivesfromidispatch.unwrap_or(::std::ptr::null_mut())), ::core::mem::transmute(pcmethod.unwrap_or(::std::ptr::null_mut())), pwszinterface).ok() } } -::windows_core::imp::interface_hierarchy!(ICallIndirect, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICallIndirect { - type Vtable = ICallIndirect_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICallIndirect { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd573b4b1_894e_11d2_b8b6_00c04fb9618a); -} #[repr(C)] #[doc(hidden)] pub struct ICallIndirect_Vtbl { @@ -221,9 +189,8 @@ pub struct ICallIndirect_Vtbl { pub GetStackSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, imethod: u32, cbargs: *mut u32) -> ::windows_core::HRESULT, pub GetIID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, piid: *mut ::windows_core::GUID, pfderivesfromidispatch: *mut super::super::super::Foundation::BOOL, pcmethod: *mut u32, pwszinterface: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICallInterceptor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICallInterceptor, ICallInterceptor_Vtbl, 0x60c7ca75_896d_11d2_b8b6_00c04fb9618a); +::windows_core::imp::interface_hierarchy!(ICallInterceptor, ::windows_core::IUnknown, ICallIndirect); impl ICallInterceptor { pub unsafe fn CallIndirect(&self, phrreturn: *mut ::windows_core::HRESULT, imethod: u32, pvargs: *const ::core::ffi::c_void, cbargs: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.CallIndirect)(::windows_core::Interface::as_raw(self), phrreturn, imethod, pvargs, cbargs).ok() @@ -249,13 +216,6 @@ impl ICallInterceptor { (::windows_core::Interface::vtable(self).GetRegisteredSink)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ICallInterceptor, ::windows_core::IUnknown, ICallIndirect); -unsafe impl ::windows_core::Interface for ICallInterceptor { - type Vtable = ICallInterceptor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICallInterceptor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x60c7ca75_896d_11d2_b8b6_00c04fb9618a); -} #[repr(C)] #[doc(hidden)] pub struct ICallInterceptor_Vtbl { @@ -263,9 +223,8 @@ pub struct ICallInterceptor_Vtbl { pub RegisterSink: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psink: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetRegisteredSink: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppsink: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICallUnmarshal(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICallUnmarshal, ICallUnmarshal_Vtbl, 0x5333b003_2e42_11d2_b89d_00c04fb9618a); +::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 ::core::option::Option) -> ::windows_core::Result<()> where @@ -277,13 +236,6 @@ impl ICallUnmarshal { (::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() } } -::windows_core::imp::interface_hierarchy!(ICallUnmarshal, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICallUnmarshal { - type Vtable = ICallUnmarshal_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICallUnmarshal { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5333b003_2e42_11d2_b89d_00c04fb9618a); -} #[repr(C)] #[doc(hidden)] pub struct ICallUnmarshal_Vtbl { @@ -291,9 +243,8 @@ pub struct ICallUnmarshal_Vtbl { pub Unmarshal: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, imethod: u32, pbuffer: *const ::core::ffi::c_void, cbbuffer: u32, fforcebuffercopy: super::super::super::Foundation::BOOL, datarep: u32, pcontext: *const CALLFRAME_MARSHALCONTEXT, pcbunmarshalled: *mut u32, ppframe: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ReleaseMarshalData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, imethod: u32, pbuffer: *const ::core::ffi::c_void, cbbuffer: u32, ibfirstrelease: u32, datarep: u32, pcontext: *const CALLFRAME_MARSHALCONTEXT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInterfaceRelated(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IInterfaceRelated, IInterfaceRelated_Vtbl, 0xd1fb5a79_7706_11d1_adba_00c04fc2adc0); +::windows_core::imp::interface_hierarchy!(IInterfaceRelated, ::windows_core::IUnknown); impl IInterfaceRelated { pub unsafe fn SetIID(&self, iid: *const ::windows_core::GUID) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetIID)(::windows_core::Interface::as_raw(self), iid).ok() @@ -303,13 +254,6 @@ impl IInterfaceRelated { (::windows_core::Interface::vtable(self).GetIID)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IInterfaceRelated, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInterfaceRelated { - type Vtable = IInterfaceRelated_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInterfaceRelated { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd1fb5a79_7706_11d1_adba_00c04fc2adc0); -} #[repr(C)] #[doc(hidden)] pub struct IInterfaceRelated_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/System/Com/ChannelCredentials/impl.rs b/crates/libs/windows/src/Windows/Win32/System/Com/ChannelCredentials/impl.rs index 62e87e66f6..210bc0021a 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Com/ChannelCredentials/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Com/ChannelCredentials/impl.rs @@ -82,6 +82,6 @@ impl IChannelCredentials_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } 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 8a66b1cb09..36d26ae57a 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 @@ -1,6 +1,5 @@ -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IChannelCredentials(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IChannelCredentials, IChannelCredentials_Vtbl, 0x181b448c_c17c_4b17_ac6d_06699b93198f); +::windows_core::imp::interface_hierarchy!(IChannelCredentials, ::windows_core::IUnknown, super::IDispatch); impl IChannelCredentials { pub unsafe fn SetWindowsCredential(&self, domain: P0, username: P1, password: P2, impersonationlevel: i32, allowntlm: P3) -> ::windows_core::Result<()> where @@ -87,13 +86,6 @@ impl IChannelCredentials { (::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::imp::interface_hierarchy!(IChannelCredentials, ::windows_core::IUnknown, super::IDispatch); -unsafe impl ::windows_core::Interface for IChannelCredentials { - type Vtable = IChannelCredentials_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IChannelCredentials { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x181b448c_c17c_4b17_ac6d_06699b93198f); -} #[repr(C)] #[doc(hidden)] pub struct IChannelCredentials_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/System/Com/Events/impl.rs b/crates/libs/windows/src/Windows/Win32/System/Com/Events/impl.rs index f1535529b9..c333ab118d 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Com/Events/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Com/Events/impl.rs @@ -5,7 +5,7 @@ impl IDontSupportEventSubscription_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumEventObject_Impl: Sized { @@ -52,7 +52,7 @@ impl IEnumEventObject_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -209,7 +209,7 @@ impl IEventClass_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -306,7 +306,7 @@ impl IEventClass2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -376,7 +376,7 @@ impl IEventControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IEventObjectChange_Impl: Sized { @@ -410,7 +410,7 @@ impl IEventObjectChange_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEventObjectChange2_Impl: Sized { @@ -437,7 +437,7 @@ impl IEventObjectChange2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -520,7 +520,7 @@ impl IEventObjectCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -577,7 +577,7 @@ impl IEventProperty_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -734,7 +734,7 @@ impl IEventPublisher_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1091,7 +1091,7 @@ impl IEventSubscription_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1168,7 +1168,7 @@ impl IEventSystem_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1189,7 +1189,7 @@ impl IFiringControl_Vtbl { Self { base__: super::IDispatch_Vtbl::new::(), FireSubscription: FireSubscription:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IMultiInterfaceEventControl_Impl: Sized { @@ -1275,7 +1275,7 @@ impl IMultiInterfaceEventControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMultiInterfacePublisherFilter_Impl: Sized { @@ -1302,7 +1302,7 @@ impl IMultiInterfacePublisherFilter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPublisherFilter_Impl: Sized { @@ -1329,6 +1329,6 @@ impl IPublisherFilter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 b036f559a9..4553a2ecf1 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 @@ -1,22 +1,13 @@ -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDontSupportEventSubscription(::windows_core::IUnknown); -impl IDontSupportEventSubscription {} +::windows_core::imp::com_interface!(IDontSupportEventSubscription, IDontSupportEventSubscription_Vtbl, 0x784121f1_62a6_4b89_855f_d65f296de83a); ::windows_core::imp::interface_hierarchy!(IDontSupportEventSubscription, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDontSupportEventSubscription { - type Vtable = IDontSupportEventSubscription_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDontSupportEventSubscription { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x784121f1_62a6_4b89_855f_d65f296de83a); -} +impl IDontSupportEventSubscription {} #[repr(C)] #[doc(hidden)] pub struct IDontSupportEventSubscription_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumEventObject(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumEventObject, IEnumEventObject_Vtbl, 0xf4a07d63_2e25_11d1_9964_00c04fbbb345); +::windows_core::imp::interface_hierarchy!(IEnumEventObject, ::windows_core::IUnknown); impl IEnumEventObject { pub unsafe fn Clone(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -32,13 +23,6 @@ impl IEnumEventObject { (::windows_core::Interface::vtable(self).Skip)(::windows_core::Interface::as_raw(self), cskipelem).ok() } } -::windows_core::imp::interface_hierarchy!(IEnumEventObject, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumEventObject { - type Vtable = IEnumEventObject_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumEventObject { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf4a07d63_2e25_11d1_9964_00c04fbbb345); -} #[repr(C)] #[doc(hidden)] pub struct IEnumEventObject_Vtbl { @@ -48,9 +32,8 @@ pub struct IEnumEventObject_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Skip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cskipelem: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEventClass(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEventClass, IEventClass_Vtbl, 0xfb2b72a0_7a68_11d1_88f9_0080c7d771bf); +::windows_core::imp::interface_hierarchy!(IEventClass, ::windows_core::IUnknown, super::IDispatch); impl IEventClass { pub unsafe fn EventClassID(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -123,13 +106,6 @@ impl IEventClass { (::windows_core::Interface::vtable(self).SetTypeLib)(::windows_core::Interface::as_raw(self), bstrtypelib.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IEventClass, ::windows_core::IUnknown, super::IDispatch); -unsafe impl ::windows_core::Interface for IEventClass { - type Vtable = IEventClass_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEventClass { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfb2b72a0_7a68_11d1_88f9_0080c7d771bf); -} #[repr(C)] #[doc(hidden)] pub struct IEventClass_Vtbl { @@ -149,9 +125,8 @@ pub struct IEventClass_Vtbl { pub TypeLib: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtypelib: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SetTypeLib: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtypelib: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEventClass2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEventClass2, IEventClass2_Vtbl, 0xfb2b72a1_7a68_11d1_88f9_0080c7d771bf); +::windows_core::imp::interface_hierarchy!(IEventClass2, ::windows_core::IUnknown, super::IDispatch, IEventClass); impl IEventClass2 { pub unsafe fn EventClassID(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -264,13 +239,6 @@ impl IEventClass2 { (::windows_core::Interface::vtable(self).SetFireInParallel)(::windows_core::Interface::as_raw(self), ffireinparallel.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IEventClass2, ::windows_core::IUnknown, super::IDispatch, IEventClass); -unsafe impl ::windows_core::Interface for IEventClass2 { - type Vtable = IEventClass2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEventClass2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfb2b72a1_7a68_11d1_88f9_0080c7d771bf); -} #[repr(C)] #[doc(hidden)] pub struct IEventClass2_Vtbl { @@ -284,9 +252,8 @@ pub struct IEventClass2_Vtbl { pub FireInParallel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pffireinparallel: *mut super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub SetFireInParallel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ffireinparallel: super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEventControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEventControl, IEventControl_Vtbl, 0x0343e2f4_86f6_11d1_b760_00c04fb926af); +::windows_core::imp::interface_hierarchy!(IEventControl, ::windows_core::IUnknown, super::IDispatch); impl IEventControl { pub unsafe fn SetPublisherFilter(&self, methodname: P0, ppublisherfilter: P1) -> ::windows_core::Result<()> where @@ -322,13 +289,6 @@ impl IEventControl { (::windows_core::Interface::vtable(self).SetDefaultQuery)(::windows_core::Interface::as_raw(self), methodname.into_param().abi(), criteria.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEventControl, ::windows_core::IUnknown, super::IDispatch); -unsafe impl ::windows_core::Interface for IEventControl { - type Vtable = IEventControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEventControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0343e2f4_86f6_11d1_b760_00c04fb926af); -} #[repr(C)] #[doc(hidden)] pub struct IEventControl_Vtbl { @@ -339,9 +299,8 @@ pub struct IEventControl_Vtbl { pub GetSubscriptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, methodname: ::std::mem::MaybeUninit<::windows_core::BSTR>, optionalcriteria: ::std::mem::MaybeUninit<::windows_core::BSTR>, optionalerrorindex: *const i32, ppcollection: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetDefaultQuery: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, methodname: ::std::mem::MaybeUninit<::windows_core::BSTR>, criteria: ::std::mem::MaybeUninit<::windows_core::BSTR>, errorindex: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEventObjectChange(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEventObjectChange, IEventObjectChange_Vtbl, 0xf4a07d70_2e25_11d1_9964_00c04fbbb345); +::windows_core::imp::interface_hierarchy!(IEventObjectChange, ::windows_core::IUnknown); impl IEventObjectChange { pub unsafe fn ChangedSubscription(&self, changetype: EOC_ChangeType, bstrsubscriptionid: P0) -> ::windows_core::Result<()> where @@ -362,13 +321,6 @@ impl IEventObjectChange { (::windows_core::Interface::vtable(self).ChangedPublisher)(::windows_core::Interface::as_raw(self), changetype, bstrpublisherid.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IEventObjectChange, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEventObjectChange { - type Vtable = IEventObjectChange_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEventObjectChange { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf4a07d70_2e25_11d1_9964_00c04fbbb345); -} #[repr(C)] #[doc(hidden)] pub struct IEventObjectChange_Vtbl { @@ -377,9 +329,8 @@ pub struct IEventObjectChange_Vtbl { pub ChangedEventClass: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, changetype: EOC_ChangeType, bstreventclassid: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub ChangedPublisher: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, changetype: EOC_ChangeType, bstrpublisherid: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEventObjectChange2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEventObjectChange2, IEventObjectChange2_Vtbl, 0x7701a9c3_bd68_438f_83e0_67bf4f53a422); +::windows_core::imp::interface_hierarchy!(IEventObjectChange2, ::windows_core::IUnknown); impl IEventObjectChange2 { pub unsafe fn ChangedSubscription(&self, pinfo: *const COMEVENTSYSCHANGEINFO) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).ChangedSubscription)(::windows_core::Interface::as_raw(self), pinfo).ok() @@ -388,13 +339,6 @@ impl IEventObjectChange2 { (::windows_core::Interface::vtable(self).ChangedEventClass)(::windows_core::Interface::as_raw(self), pinfo).ok() } } -::windows_core::imp::interface_hierarchy!(IEventObjectChange2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEventObjectChange2 { - type Vtable = IEventObjectChange2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEventObjectChange2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7701a9c3_bd68_438f_83e0_67bf4f53a422); -} #[repr(C)] #[doc(hidden)] pub struct IEventObjectChange2_Vtbl { @@ -402,9 +346,8 @@ pub struct IEventObjectChange2_Vtbl { pub ChangedSubscription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinfo: *const COMEVENTSYSCHANGEINFO) -> ::windows_core::HRESULT, pub ChangedEventClass: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinfo: *const COMEVENTSYSCHANGEINFO) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEventObjectCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEventObjectCollection, IEventObjectCollection_Vtbl, 0xf89ac270_d4eb_11d1_b682_00805fc79216); +::windows_core::imp::interface_hierarchy!(IEventObjectCollection, ::windows_core::IUnknown, super::IDispatch); impl IEventObjectCollection { pub unsafe fn _NewEnum(&self) -> ::windows_core::Result<::windows_core::IUnknown> { let mut result__ = ::std::mem::zeroed(); @@ -442,13 +385,6 @@ impl IEventObjectCollection { (::windows_core::Interface::vtable(self).Remove)(::windows_core::Interface::as_raw(self), objectid.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IEventObjectCollection, ::windows_core::IUnknown, super::IDispatch); -unsafe impl ::windows_core::Interface for IEventObjectCollection { - type Vtable = IEventObjectCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEventObjectCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf89ac270_d4eb_11d1_b682_00805fc79216); -} #[repr(C)] #[doc(hidden)] pub struct IEventObjectCollection_Vtbl { @@ -466,9 +402,8 @@ pub struct IEventObjectCollection_Vtbl { Add: usize, pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, objectid: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEventProperty(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEventProperty, IEventProperty_Vtbl, 0xda538ee2_f4de_11d1_b6bb_00805fc79216); +::windows_core::imp::interface_hierarchy!(IEventProperty, ::windows_core::IUnknown, super::IDispatch); impl IEventProperty { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -492,13 +427,6 @@ impl IEventProperty { (::windows_core::Interface::vtable(self).SetValue)(::windows_core::Interface::as_raw(self), propertyvalue).ok() } } -::windows_core::imp::interface_hierarchy!(IEventProperty, ::windows_core::IUnknown, super::IDispatch); -unsafe impl ::windows_core::Interface for IEventProperty { - type Vtable = IEventProperty_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEventProperty { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xda538ee2_f4de_11d1_b6bb_00805fc79216); -} #[repr(C)] #[doc(hidden)] pub struct IEventProperty_Vtbl { @@ -514,9 +442,8 @@ pub struct IEventProperty_Vtbl { #[cfg(not(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] SetValue: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEventPublisher(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEventPublisher, IEventPublisher_Vtbl, 0xe341516b_2e32_11d1_9964_00c04fbbb345); +::windows_core::imp::interface_hierarchy!(IEventPublisher, ::windows_core::IUnknown, super::IDispatch); impl IEventPublisher { pub unsafe fn PublisherID(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -596,13 +523,6 @@ impl IEventPublisher { (::windows_core::Interface::vtable(self).GetDefaultPropertyCollection)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEventPublisher, ::windows_core::IUnknown, super::IDispatch); -unsafe impl ::windows_core::Interface for IEventPublisher { - type Vtable = IEventPublisher_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEventPublisher { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe341516b_2e32_11d1_9964_00c04fbbb345); -} #[repr(C)] #[doc(hidden)] pub struct IEventPublisher_Vtbl { @@ -628,9 +548,8 @@ pub struct IEventPublisher_Vtbl { pub RemoveDefaultProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpropertyname: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub GetDefaultPropertyCollection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, collection: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEventSubscription(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEventSubscription, IEventSubscription_Vtbl, 0x4a6b0e15_2e38_11d1_9965_00c04fbbb345); +::windows_core::imp::interface_hierarchy!(IEventSubscription, ::windows_core::IUnknown, super::IDispatch); impl IEventSubscription { pub unsafe fn SubscriptionID(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -817,13 +736,6 @@ impl IEventSubscription { (::windows_core::Interface::vtable(self).SetInterfaceID)(::windows_core::Interface::as_raw(self), bstrinterfaceid.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IEventSubscription, ::windows_core::IUnknown, super::IDispatch); -unsafe impl ::windows_core::Interface for IEventSubscription { - type Vtable = IEventSubscription_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEventSubscription { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4a6b0e15_2e38_11d1_9965_00c04fbbb345); -} #[repr(C)] #[doc(hidden)] pub struct IEventSubscription_Vtbl { @@ -875,9 +787,8 @@ pub struct IEventSubscription_Vtbl { pub InterfaceID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrinterfaceid: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SetInterfaceID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrinterfaceid: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEventSystem(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEventSystem, IEventSystem_Vtbl, 0x4e14fb9f_2e22_11d1_9964_00c04fbbb345); +::windows_core::imp::interface_hierarchy!(IEventSystem, ::windows_core::IUnknown, super::IDispatch); impl IEventSystem { pub unsafe fn Query(&self, progid: P0, querycriteria: P1, errorindex: *mut i32, ppinterface: *mut ::core::option::Option<::windows_core::IUnknown>) -> ::windows_core::Result<()> where @@ -921,13 +832,6 @@ impl IEventSystem { (::windows_core::Interface::vtable(self).RemoveS)(::windows_core::Interface::as_raw(self), progid.into_param().abi(), querycriteria.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IEventSystem, ::windows_core::IUnknown, super::IDispatch); -unsafe impl ::windows_core::Interface for IEventSystem { - type Vtable = IEventSystem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEventSystem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4e14fb9f_2e22_11d1_9964_00c04fbbb345); -} #[repr(C)] #[doc(hidden)] pub struct IEventSystem_Vtbl { @@ -939,9 +843,8 @@ pub struct IEventSystem_Vtbl { pub QueryS: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, progid: ::std::mem::MaybeUninit<::windows_core::BSTR>, querycriteria: ::std::mem::MaybeUninit<::windows_core::BSTR>, ppinterface: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RemoveS: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, progid: ::std::mem::MaybeUninit<::windows_core::BSTR>, querycriteria: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFiringControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFiringControl, IFiringControl_Vtbl, 0xe0498c93_4efe_11d1_9971_00c04fbbb345); +::windows_core::imp::interface_hierarchy!(IFiringControl, ::windows_core::IUnknown, super::IDispatch); impl IFiringControl { pub unsafe fn FireSubscription(&self, subscription: P0) -> ::windows_core::Result<()> where @@ -950,22 +853,14 @@ impl IFiringControl { (::windows_core::Interface::vtable(self).FireSubscription)(::windows_core::Interface::as_raw(self), subscription.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IFiringControl, ::windows_core::IUnknown, super::IDispatch); -unsafe impl ::windows_core::Interface for IFiringControl { - type Vtable = IFiringControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFiringControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe0498c93_4efe_11d1_9971_00c04fbbb345); -} #[repr(C)] #[doc(hidden)] pub struct IFiringControl_Vtbl { pub base__: super::IDispatch_Vtbl, pub FireSubscription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, subscription: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMultiInterfaceEventControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMultiInterfaceEventControl, IMultiInterfaceEventControl_Vtbl, 0x0343e2f5_86f6_11d1_b760_00c04fb926af); +::windows_core::imp::interface_hierarchy!(IMultiInterfaceEventControl, ::windows_core::IUnknown); impl IMultiInterfaceEventControl { pub unsafe fn SetMultiInterfacePublisherFilter(&self, classfilter: P0) -> ::windows_core::Result<()> where @@ -1010,13 +905,6 @@ impl IMultiInterfaceEventControl { (::windows_core::Interface::vtable(self).SetFireInParallel)(::windows_core::Interface::as_raw(self), ffireinparallel.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMultiInterfaceEventControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMultiInterfaceEventControl { - type Vtable = IMultiInterfaceEventControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMultiInterfaceEventControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0343e2f5_86f6_11d1_b760_00c04fb926af); -} #[repr(C)] #[doc(hidden)] pub struct IMultiInterfaceEventControl_Vtbl { @@ -1029,9 +917,8 @@ pub struct IMultiInterfaceEventControl_Vtbl { pub FireInParallel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pffireinparallel: *mut super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub SetFireInParallel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ffireinparallel: super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMultiInterfacePublisherFilter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMultiInterfacePublisherFilter, IMultiInterfacePublisherFilter_Vtbl, 0x465e5cc1_7b26_11d1_88fb_0080c7d771bf); +::windows_core::imp::interface_hierarchy!(IMultiInterfacePublisherFilter, ::windows_core::IUnknown); impl IMultiInterfacePublisherFilter { pub unsafe fn Initialize(&self, peic: P0) -> ::windows_core::Result<()> where @@ -1047,13 +934,6 @@ impl IMultiInterfacePublisherFilter { (::windows_core::Interface::vtable(self).PrepareToFire)(::windows_core::Interface::as_raw(self), iid, methodname.into_param().abi(), firingcontrol.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMultiInterfacePublisherFilter, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMultiInterfacePublisherFilter { - type Vtable = IMultiInterfacePublisherFilter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMultiInterfacePublisherFilter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x465e5cc1_7b26_11d1_88fb_0080c7d771bf); -} #[repr(C)] #[doc(hidden)] pub struct IMultiInterfacePublisherFilter_Vtbl { @@ -1061,9 +941,8 @@ pub struct IMultiInterfacePublisherFilter_Vtbl { pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, peic: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub PrepareToFire: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, iid: *const ::windows_core::GUID, methodname: ::std::mem::MaybeUninit<::windows_core::BSTR>, firingcontrol: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPublisherFilter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPublisherFilter, IPublisherFilter_Vtbl, 0x465e5cc0_7b26_11d1_88fb_0080c7d771bf); +::windows_core::imp::interface_hierarchy!(IPublisherFilter, ::windows_core::IUnknown); impl IPublisherFilter { pub unsafe fn Initialize(&self, methodname: P0, dispuserdefined: P1) -> ::windows_core::Result<()> where @@ -1080,13 +959,6 @@ impl IPublisherFilter { (::windows_core::Interface::vtable(self).PrepareToFire)(::windows_core::Interface::as_raw(self), methodname.into_param().abi(), firingcontrol.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IPublisherFilter, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPublisherFilter { - type Vtable = IPublisherFilter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPublisherFilter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x465e5cc0_7b26_11d1_88fb_0080c7d771bf); -} #[repr(C)] #[doc(hidden)] pub struct IPublisherFilter_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/System/Com/Marshal/impl.rs b/crates/libs/windows/src/Windows/Win32/System/Com/Marshal/impl.rs index 8ead5e1dd5..0ac2f007c2 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Com/Marshal/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Com/Marshal/impl.rs @@ -62,7 +62,7 @@ impl IMarshal_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMarshal2_Impl: Sized + IMarshal_Impl {} @@ -72,7 +72,7 @@ impl IMarshal2_Vtbl { Self { base__: IMarshal_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IMarshalingStream_Impl: Sized + super::IStream_Impl { @@ -98,6 +98,6 @@ impl IMarshalingStream_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } 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 ea761ae4cc..7bdf1997ec 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 @@ -151,7 +151,7 @@ where pub unsafe fn CoUnmarshalInterface(pstm: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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(); @@ -709,9 +709,8 @@ pub unsafe fn STGMEDIUM_UserUnmarshal64(param0: *const u32, param1: *const u8, p ::windows_targets::link!("ole32.dll" "system" fn STGMEDIUM_UserUnmarshal64(param0 : *const u32, param1 : *const u8, param2 : *mut super:: STGMEDIUM) -> *mut u8); STGMEDIUM_UserUnmarshal64(param0, param1, param2) } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMarshal(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMarshal, IMarshal_Vtbl, 0x00000003_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IMarshal, ::windows_core::IUnknown); impl IMarshal { pub unsafe fn GetUnmarshalClass(&self, riid: *const ::windows_core::GUID, pv: ::core::option::Option<*const ::core::ffi::c_void>, dwdestcontext: u32, pvdestcontext: ::core::option::Option<*const ::core::ffi::c_void>, mshlflags: u32) -> ::windows_core::Result<::windows_core::GUID> { let mut result__ = ::std::mem::zeroed(); @@ -743,13 +742,6 @@ impl IMarshal { (::windows_core::Interface::vtable(self).DisconnectObject)(::windows_core::Interface::as_raw(self), dwreserved).ok() } } -::windows_core::imp::interface_hierarchy!(IMarshal, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMarshal { - type Vtable = IMarshal_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMarshal { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00000003_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IMarshal_Vtbl { @@ -761,9 +753,8 @@ pub struct IMarshal_Vtbl { pub ReleaseMarshalData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstm: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub DisconnectObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwreserved: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMarshal2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMarshal2, IMarshal2_Vtbl, 0x000001cf_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IMarshal2, ::windows_core::IUnknown, IMarshal); impl IMarshal2 { pub unsafe fn GetUnmarshalClass(&self, riid: *const ::windows_core::GUID, pv: ::core::option::Option<*const ::core::ffi::c_void>, dwdestcontext: u32, pvdestcontext: ::core::option::Option<*const ::core::ffi::c_void>, mshlflags: u32) -> ::windows_core::Result<::windows_core::GUID> { let mut result__ = ::std::mem::zeroed(); @@ -795,21 +786,13 @@ impl IMarshal2 { (::windows_core::Interface::vtable(self).base__.DisconnectObject)(::windows_core::Interface::as_raw(self), dwreserved).ok() } } -::windows_core::imp::interface_hierarchy!(IMarshal2, ::windows_core::IUnknown, IMarshal); -unsafe impl ::windows_core::Interface for IMarshal2 { - type Vtable = IMarshal2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMarshal2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x000001cf_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IMarshal2_Vtbl { pub base__: IMarshal_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMarshalingStream(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMarshalingStream, IMarshalingStream_Vtbl, 0xd8f2f5e6_6102_4863_9f26_389a4676efde); +::windows_core::imp::interface_hierarchy!(IMarshalingStream, ::windows_core::IUnknown, super::ISequentialStream, super::IStream); impl IMarshalingStream { pub unsafe fn Read(&self, pv: *mut ::core::ffi::c_void, cb: u32, pcbread: ::core::option::Option<*mut u32>) -> ::windows_core::HRESULT { (::windows_core::Interface::vtable(self).base__.base__.Read)(::windows_core::Interface::as_raw(self), pv, cb, ::core::mem::transmute(pcbread.unwrap_or(::std::ptr::null_mut()))) @@ -853,13 +836,6 @@ impl IMarshalingStream { (::windows_core::Interface::vtable(self).GetMarshalingContextAttribute)(::windows_core::Interface::as_raw(self), attribute, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMarshalingStream, ::windows_core::IUnknown, super::ISequentialStream, super::IStream); -unsafe impl ::windows_core::Interface for IMarshalingStream { - type Vtable = IMarshalingStream_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMarshalingStream { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd8f2f5e6_6102_4863_9f26_389a4676efde); -} #[repr(C)] #[doc(hidden)] pub struct IMarshalingStream_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/System/Com/StructuredStorage/impl.rs b/crates/libs/windows/src/Windows/Win32/System/Com/StructuredStorage/impl.rs index e9cef92485..6d8cc4a828 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Com/StructuredStorage/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Com/StructuredStorage/impl.rs @@ -29,7 +29,7 @@ impl IDirectWriterLock_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumSTATPROPSETSTG_Impl: Sized { @@ -76,7 +76,7 @@ impl IEnumSTATPROPSETSTG_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Variant\"`"] @@ -127,7 +127,7 @@ impl IEnumSTATPROPSTG_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumSTATSTG_Impl: Sized { @@ -174,7 +174,7 @@ impl IEnumSTATSTG_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IFillLockBytes_Impl: Sized { @@ -227,7 +227,7 @@ impl IFillLockBytes_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ILayoutStorage_Impl: Sized { @@ -275,7 +275,7 @@ impl ILayoutStorage_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ILockBytes_Impl: Sized { @@ -337,7 +337,7 @@ impl ILockBytes_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPersistStorage_Impl: Sized + super::IPersist_Impl { @@ -392,7 +392,7 @@ impl IPersistStorage_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -419,7 +419,7 @@ impl IPropertyBag_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Read: Read::, Write: Write:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -477,7 +477,7 @@ impl IPropertyBag2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPropertySetStorage_Impl: Sized { @@ -536,7 +536,7 @@ impl IPropertySetStorage_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Variant\"`"] @@ -643,7 +643,7 @@ impl IPropertyStorage_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRootStorage_Impl: Sized { @@ -660,7 +660,7 @@ impl IRootStorage_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), SwitchToFile: SwitchToFile:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IStorage_Impl: Sized { @@ -808,6 +808,6 @@ impl IStorage_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 133485a030..7aa1052a8e 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 @@ -27,7 +27,7 @@ where pub unsafe fn CoGetInterfaceAndReleaseStream(pstm: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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(); @@ -735,7 +735,7 @@ pub unsafe fn PropVariantToVariant(ppropvar: *const PROPVARIANT) -> ::windows_co #[inline] pub unsafe fn PropVariantToWinRTPropertyValue(propvar: *const PROPVARIANT) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { ::windows_targets::link!("propsys.dll" "system" fn PropVariantToWinRTPropertyValue(propvar : *const PROPVARIANT, riid : *const ::windows_core::GUID, ppv : *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT); let mut result__ = ::std::ptr::null_mut(); @@ -997,9 +997,8 @@ where ::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() } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirectWriterLock(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirectWriterLock, IDirectWriterLock_Vtbl, 0x0e6d4d92_6738_11cf_9608_00aa00680db4); +::windows_core::imp::interface_hierarchy!(IDirectWriterLock, ::windows_core::IUnknown); impl IDirectWriterLock { pub unsafe fn WaitForWriteAccess(&self, dwtimeout: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).WaitForWriteAccess)(::windows_core::Interface::as_raw(self), dwtimeout).ok() @@ -1011,13 +1010,6 @@ impl IDirectWriterLock { (::windows_core::Interface::vtable(self).HaveWriteAccess)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IDirectWriterLock, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirectWriterLock { - type Vtable = IDirectWriterLock_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirectWriterLock { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0e6d4d92_6738_11cf_9608_00aa00680db4); -} #[repr(C)] #[doc(hidden)] pub struct IDirectWriterLock_Vtbl { @@ -1026,9 +1018,8 @@ pub struct IDirectWriterLock_Vtbl { pub ReleaseWriteAccess: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub HaveWriteAccess: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumSTATPROPSETSTG(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumSTATPROPSETSTG, IEnumSTATPROPSETSTG_Vtbl, 0x0000013b_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IEnumSTATPROPSETSTG, ::windows_core::IUnknown); impl IEnumSTATPROPSETSTG { pub unsafe fn Next(&self, rgelt: &mut [STATPROPSETSTG], pceltfetched: ::core::option::Option<*mut u32>) -> ::windows_core::HRESULT { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), ::core::mem::transmute(rgelt.as_ptr()), ::core::mem::transmute(pceltfetched.unwrap_or(::std::ptr::null_mut()))) @@ -1044,13 +1035,6 @@ impl IEnumSTATPROPSETSTG { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumSTATPROPSETSTG, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumSTATPROPSETSTG { - type Vtable = IEnumSTATPROPSETSTG_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumSTATPROPSETSTG { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0000013b_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IEnumSTATPROPSETSTG_Vtbl { @@ -1060,9 +1044,8 @@ pub struct IEnumSTATPROPSETSTG_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumSTATPROPSTG(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumSTATPROPSTG, IEnumSTATPROPSTG_Vtbl, 0x00000139_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IEnumSTATPROPSTG, ::windows_core::IUnknown); impl IEnumSTATPROPSTG { #[doc = "Required features: `\"Win32_System_Variant\"`"] #[cfg(feature = "Win32_System_Variant")] @@ -1080,13 +1063,6 @@ impl IEnumSTATPROPSTG { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumSTATPROPSTG, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumSTATPROPSTG { - type Vtable = IEnumSTATPROPSTG_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumSTATPROPSTG { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00000139_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IEnumSTATPROPSTG_Vtbl { @@ -1099,9 +1075,8 @@ pub struct IEnumSTATPROPSTG_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumSTATSTG(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumSTATSTG, IEnumSTATSTG_Vtbl, 0x0000000d_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IEnumSTATSTG, ::windows_core::IUnknown); impl IEnumSTATSTG { pub unsafe fn Next(&self, rgelt: &mut [super::STATSTG], pceltfetched: ::core::option::Option<*mut u32>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), ::core::mem::transmute(rgelt.as_ptr()), ::core::mem::transmute(pceltfetched.unwrap_or(::std::ptr::null_mut()))).ok() @@ -1117,13 +1092,6 @@ impl IEnumSTATSTG { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumSTATSTG, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumSTATSTG { - type Vtable = IEnumSTATSTG_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumSTATSTG { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0000000d_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IEnumSTATSTG_Vtbl { @@ -1133,9 +1101,8 @@ pub struct IEnumSTATSTG_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFillLockBytes(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFillLockBytes, IFillLockBytes_Vtbl, 0x99caf010_415e_11cf_8814_00aa00b569f5); +::windows_core::imp::interface_hierarchy!(IFillLockBytes, ::windows_core::IUnknown); impl IFillLockBytes { pub unsafe fn FillAppend(&self, pv: *const ::core::ffi::c_void, cb: u32) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1155,13 +1122,6 @@ impl IFillLockBytes { (::windows_core::Interface::vtable(self).Terminate)(::windows_core::Interface::as_raw(self), bcanceled.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IFillLockBytes, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFillLockBytes { - type Vtable = IFillLockBytes_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFillLockBytes { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x99caf010_415e_11cf_8814_00aa00b569f5); -} #[repr(C)] #[doc(hidden)] pub struct IFillLockBytes_Vtbl { @@ -1171,9 +1131,8 @@ pub struct IFillLockBytes_Vtbl { pub SetFillSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulsize: u64) -> ::windows_core::HRESULT, pub Terminate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bcanceled: super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILayoutStorage(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ILayoutStorage, ILayoutStorage_Vtbl, 0x0e6d4d90_6738_11cf_9608_00aa00680db4); +::windows_core::imp::interface_hierarchy!(ILayoutStorage, ::windows_core::IUnknown); impl ILayoutStorage { pub unsafe fn LayoutScript(&self, pstoragelayout: &[super::StorageLayout], glfinterleavedflag: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).LayoutScript)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pstoragelayout.as_ptr()), pstoragelayout.len().try_into().unwrap(), glfinterleavedflag).ok() @@ -1197,13 +1156,6 @@ impl ILayoutStorage { (::windows_core::Interface::vtable(self).ReLayoutDocfileOnILockBytes)(::windows_core::Interface::as_raw(self), pilockbytes.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ILayoutStorage, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILayoutStorage { - type Vtable = ILayoutStorage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILayoutStorage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0e6d4d90_6738_11cf_9608_00aa00680db4); -} #[repr(C)] #[doc(hidden)] pub struct ILayoutStorage_Vtbl { @@ -1214,9 +1166,8 @@ pub struct ILayoutStorage_Vtbl { pub ReLayoutDocfile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwcsnewdfname: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub ReLayoutDocfileOnILockBytes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pilockbytes: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILockBytes(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ILockBytes, ILockBytes_Vtbl, 0x0000000a_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(ILockBytes, ::windows_core::IUnknown); impl ILockBytes { pub unsafe fn ReadAt(&self, uloffset: u64, pv: *mut ::core::ffi::c_void, cb: u32, pcbread: ::core::option::Option<*mut u32>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).ReadAt)(::windows_core::Interface::as_raw(self), uloffset, pv, cb, ::core::mem::transmute(pcbread.unwrap_or(::std::ptr::null_mut()))).ok() @@ -1240,13 +1191,6 @@ impl ILockBytes { (::windows_core::Interface::vtable(self).Stat)(::windows_core::Interface::as_raw(self), pstatstg, grfstatflag).ok() } } -::windows_core::imp::interface_hierarchy!(ILockBytes, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILockBytes { - type Vtable = ILockBytes_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILockBytes { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0000000a_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct ILockBytes_Vtbl { @@ -1259,9 +1203,8 @@ pub struct ILockBytes_Vtbl { pub UnlockRegion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, liboffset: u64, cb: u64, dwlocktype: u32) -> ::windows_core::HRESULT, pub Stat: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstatstg: *mut super::STATSTG, grfstatflag: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPersistStorage(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPersistStorage, IPersistStorage_Vtbl, 0x0000010a_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IPersistStorage, ::windows_core::IUnknown, super::IPersist); impl IPersistStorage { pub unsafe fn GetClassID(&self) -> ::windows_core::Result<::windows_core::GUID> { let mut result__ = ::std::mem::zeroed(); @@ -1299,13 +1242,6 @@ impl IPersistStorage { (::windows_core::Interface::vtable(self).HandsOffStorage)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IPersistStorage, ::windows_core::IUnknown, super::IPersist); -unsafe impl ::windows_core::Interface for IPersistStorage { - type Vtable = IPersistStorage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPersistStorage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0000010a_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IPersistStorage_Vtbl { @@ -1317,9 +1253,8 @@ pub struct IPersistStorage_Vtbl { pub SaveCompleted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstgnew: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub HandsOffStorage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPropertyBag(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPropertyBag, IPropertyBag_Vtbl, 0x55272a00_42cb_11ce_8135_00aa004bb851); +::windows_core::imp::interface_hierarchy!(IPropertyBag, ::windows_core::IUnknown); impl IPropertyBag { #[doc = "Required features: `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -1339,13 +1274,6 @@ impl IPropertyBag { (::windows_core::Interface::vtable(self).Write)(::windows_core::Interface::as_raw(self), pszpropname.into_param().abi(), pvar).ok() } } -::windows_core::imp::interface_hierarchy!(IPropertyBag, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPropertyBag { - type Vtable = IPropertyBag_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPropertyBag { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x55272a00_42cb_11ce_8135_00aa004bb851); -} #[repr(C)] #[doc(hidden)] pub struct IPropertyBag_Vtbl { @@ -1359,9 +1287,8 @@ pub struct IPropertyBag_Vtbl { #[cfg(not(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] Write: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPropertyBag2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPropertyBag2, IPropertyBag2_Vtbl, 0x22f55882_280b_11d0_a8a9_00a0c90c2004); +::windows_core::imp::interface_hierarchy!(IPropertyBag2, ::windows_core::IUnknown); impl IPropertyBag2 { #[doc = "Required features: `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -1394,13 +1321,6 @@ impl IPropertyBag2 { (::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::imp::interface_hierarchy!(IPropertyBag2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPropertyBag2 { - type Vtable = IPropertyBag2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPropertyBag2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x22f55882_280b_11d0_a8a9_00a0c90c2004); -} #[repr(C)] #[doc(hidden)] pub struct IPropertyBag2_Vtbl { @@ -1420,9 +1340,8 @@ pub struct IPropertyBag2_Vtbl { GetPropertyInfo: usize, pub LoadObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrname: ::windows_core::PCWSTR, dwhint: u32, punkobject: *mut ::core::ffi::c_void, perrlog: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPropertySetStorage(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPropertySetStorage, IPropertySetStorage_Vtbl, 0x0000013a_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IPropertySetStorage, ::windows_core::IUnknown); impl IPropertySetStorage { pub unsafe fn Create(&self, rfmtid: *const ::windows_core::GUID, pclsid: *const ::windows_core::GUID, grfflags: u32, grfmode: u32) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1440,13 +1359,6 @@ impl IPropertySetStorage { (::windows_core::Interface::vtable(self).Enum)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IPropertySetStorage, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPropertySetStorage { - type Vtable = IPropertySetStorage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPropertySetStorage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0000013a_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IPropertySetStorage_Vtbl { @@ -1456,9 +1368,8 @@ pub struct IPropertySetStorage_Vtbl { pub Delete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rfmtid: *const ::windows_core::GUID) -> ::windows_core::HRESULT, pub Enum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPropertyStorage(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPropertyStorage, IPropertyStorage_Vtbl, 0x00000138_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IPropertyStorage, ::windows_core::IUnknown); impl IPropertyStorage { #[doc = "Required features: `\"Win32_System_Variant\"`"] #[cfg(feature = "Win32_System_Variant")] @@ -1502,13 +1413,6 @@ impl IPropertyStorage { (::windows_core::Interface::vtable(self).Stat)(::windows_core::Interface::as_raw(self), pstatpsstg).ok() } } -::windows_core::imp::interface_hierarchy!(IPropertyStorage, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPropertyStorage { - type Vtable = IPropertyStorage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPropertyStorage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00000138_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IPropertyStorage_Vtbl { @@ -1532,9 +1436,8 @@ pub struct IPropertyStorage_Vtbl { pub SetClass: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, clsid: *const ::windows_core::GUID) -> ::windows_core::HRESULT, pub Stat: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstatpsstg: *mut STATPROPSETSTG) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRootStorage(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRootStorage, IRootStorage_Vtbl, 0x00000012_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IRootStorage, ::windows_core::IUnknown); impl IRootStorage { pub unsafe fn SwitchToFile(&self, pszfile: P0) -> ::windows_core::Result<()> where @@ -1543,22 +1446,14 @@ impl IRootStorage { (::windows_core::Interface::vtable(self).SwitchToFile)(::windows_core::Interface::as_raw(self), pszfile.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IRootStorage, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRootStorage { - type Vtable = IRootStorage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRootStorage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00000012_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IRootStorage_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub SwitchToFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszfile: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorage(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IStorage, IStorage_Vtbl, 0x0000000b_0000_0000_c000_000000000046); +::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 @@ -1642,13 +1537,6 @@ impl IStorage { (::windows_core::Interface::vtable(self).Stat)(::windows_core::Interface::as_raw(self), pstatstg, grfstatflag).ok() } } -::windows_core::imp::interface_hierarchy!(IStorage, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorage { - type Vtable = IStorage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0000000b_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IStorage_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/System/Com/UI/impl.rs b/crates/libs/windows/src/Windows/Win32/System/Com/UI/impl.rs index b0998954a4..5a47456729 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Com/UI/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Com/UI/impl.rs @@ -16,7 +16,7 @@ impl IDummyHICONIncluder_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Dummy: Dummy:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_System_Com_StructuredStorage\"`"] @@ -47,6 +47,6 @@ impl IThumbnailExtractor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 f793e8fae9..13ce1de615 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 @@ -1,6 +1,5 @@ -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDummyHICONIncluder(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDummyHICONIncluder, IDummyHICONIncluder_Vtbl, 0x947990de_cc28_11d2_a0f7_00805f858fb1); +::windows_core::imp::interface_hierarchy!(IDummyHICONIncluder, ::windows_core::IUnknown); impl IDummyHICONIncluder { #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_UI_WindowsAndMessaging\"`"] #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging"))] @@ -12,13 +11,6 @@ impl IDummyHICONIncluder { (::windows_core::Interface::vtable(self).Dummy)(::windows_core::Interface::as_raw(self), h1.into_param().abi(), h2.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IDummyHICONIncluder, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDummyHICONIncluder { - type Vtable = IDummyHICONIncluder_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDummyHICONIncluder { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x947990de_cc28_11d2_a0f7_00805f858fb1); -} #[repr(C)] #[doc(hidden)] pub struct IDummyHICONIncluder_Vtbl { @@ -28,9 +20,8 @@ pub struct IDummyHICONIncluder_Vtbl { #[cfg(not(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging")))] Dummy: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IThumbnailExtractor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IThumbnailExtractor, IThumbnailExtractor_Vtbl, 0x969dc708_5c76_11d1_8d86_0000f804b057); +::windows_core::imp::interface_hierarchy!(IThumbnailExtractor, ::windows_core::IUnknown); impl IThumbnailExtractor { #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_System_Com_StructuredStorage\"`"] #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com_StructuredStorage"))] @@ -49,13 +40,6 @@ impl IThumbnailExtractor { (::windows_core::Interface::vtable(self).OnFileUpdated)(::windows_core::Interface::as_raw(self), pstg.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IThumbnailExtractor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IThumbnailExtractor { - type Vtable = IThumbnailExtractor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IThumbnailExtractor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x969dc708_5c76_11d1_8d86_0000f804b057); -} #[repr(C)] #[doc(hidden)] pub struct IThumbnailExtractor_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/System/Com/Urlmon/impl.rs b/crates/libs/windows/src/Windows/Win32/System/Com/Urlmon/impl.rs index 104ce28c3d..c91a7034d3 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Com/Urlmon/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Com/Urlmon/impl.rs @@ -18,7 +18,7 @@ impl IBindCallbackRedirect_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Redirect: Redirect:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IBindHttpSecurity_Impl: Sized { @@ -41,7 +41,7 @@ impl IBindHttpSecurity_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetIgnoreCertMask: GetIgnoreCertMask:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IBindProtocol_Impl: Sized { @@ -64,7 +64,7 @@ impl IBindProtocol_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CreateBinding: CreateBinding:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICatalogFileInfo_Impl: Sized { @@ -97,7 +97,7 @@ impl ICatalogFileInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICodeInstall_Impl: Sized + IWindowForBindingUI_Impl { @@ -114,7 +114,7 @@ impl ICodeInstall_Vtbl { Self { base__: IWindowForBindingUI_Vtbl::new::(), OnCodeInstallProblem: OnCodeInstallProblem:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDataFilter_Impl: Sized { @@ -148,7 +148,7 @@ impl IDataFilter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEncodingFilterFactory_Impl: Sized { @@ -187,7 +187,7 @@ impl IEncodingFilterFactory_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IGetBindHandle_Impl: Sized { @@ -210,7 +210,7 @@ impl IGetBindHandle_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetBindHandle: GetBindHandle:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IHttpNegotiate_Impl: Sized { @@ -249,7 +249,7 @@ impl IHttpNegotiate_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IHttpNegotiate2_Impl: Sized + IHttpNegotiate_Impl { @@ -266,7 +266,7 @@ impl IHttpNegotiate2_Vtbl { Self { base__: IHttpNegotiate_Vtbl::new::(), GetRootSecurityId: GetRootSecurityId:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IHttpNegotiate3_Impl: Sized + IHttpNegotiate2_Impl { @@ -286,7 +286,7 @@ impl IHttpNegotiate3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IHttpSecurity_Impl: Sized + IWindowForBindingUI_Impl { @@ -303,7 +303,7 @@ impl IHttpSecurity_Vtbl { Self { base__: IWindowForBindingUI_Vtbl::new::(), OnSecurityProblem: OnSecurityProblem:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IInternet_Impl: Sized {} @@ -313,7 +313,7 @@ impl IInternet_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_Security\"`, `\"Win32_System_Com_StructuredStorage\"`"] @@ -344,7 +344,7 @@ impl IInternetBindInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_Security\"`, `\"Win32_System_Com_StructuredStorage\"`"] @@ -365,7 +365,7 @@ impl IInternetBindInfoEx_Vtbl { Self { base__: IInternetBindInfo_Vtbl::new::(), GetBindInfoEx: GetBindInfoEx:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IInternetHostSecurityManager_Impl: Sized { @@ -399,7 +399,7 @@ impl IInternetHostSecurityManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IInternetPriority_Impl: Sized { @@ -432,7 +432,7 @@ impl IInternetPriority_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IInternetProtocol_Impl: Sized + IInternetProtocolRoot_Impl { @@ -479,7 +479,7 @@ impl IInternetProtocol_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IInternetProtocolEx_Impl: Sized + IInternetProtocol_Impl { @@ -496,7 +496,7 @@ impl IInternetProtocolEx_Vtbl { Self { base__: IInternetProtocol_Vtbl::new::(), StartEx: StartEx:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IInternetProtocolInfo_Impl: Sized { @@ -537,7 +537,7 @@ impl IInternetProtocolInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IInternetProtocolRoot_Impl: Sized { @@ -592,7 +592,7 @@ impl IInternetProtocolRoot_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IInternetProtocolSink_Impl: Sized { @@ -633,7 +633,7 @@ impl IInternetProtocolSink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IInternetProtocolSinkStackable_Impl: Sized { @@ -667,7 +667,7 @@ impl IInternetProtocolSinkStackable_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IInternetSecurityManager_Impl: Sized { @@ -742,7 +742,7 @@ impl IInternetSecurityManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IInternetSecurityManagerEx_Impl: Sized + IInternetSecurityManager_Impl { @@ -759,7 +759,7 @@ impl IInternetSecurityManagerEx_Vtbl { Self { base__: IInternetSecurityManager_Vtbl::new::(), ProcessUrlActionEx: ProcessUrlActionEx:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IInternetSecurityManagerEx2_Impl: Sized + IInternetSecurityManagerEx_Impl { @@ -800,7 +800,7 @@ impl IInternetSecurityManagerEx2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IInternetSecurityMgrSite_Impl: Sized { @@ -833,7 +833,7 @@ impl IInternetSecurityMgrSite_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IInternetSession_Impl: Sized { @@ -895,7 +895,7 @@ impl IInternetSession_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IInternetThreadSwitch_Impl: Sized { @@ -922,7 +922,7 @@ impl IInternetThreadSwitch_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IInternetZoneManager_Impl: Sized { @@ -1025,7 +1025,7 @@ impl IInternetZoneManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IInternetZoneManagerEx_Impl: Sized + IInternetZoneManager_Impl { @@ -1052,7 +1052,7 @@ impl IInternetZoneManagerEx_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IInternetZoneManagerEx2_Impl: Sized + IInternetZoneManagerEx_Impl { @@ -1093,7 +1093,7 @@ impl IInternetZoneManagerEx2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IMonikerProp_Impl: Sized { @@ -1110,7 +1110,7 @@ impl IMonikerProp_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), PutProperty: PutProperty:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPersistMoniker_Impl: Sized { @@ -1177,7 +1177,7 @@ impl IPersistMoniker_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Data_Xml_MsXml\"`"] @@ -1222,7 +1222,7 @@ impl ISoftDistExt_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUriBuilderFactory_Impl: Sized { @@ -1261,7 +1261,7 @@ impl IUriBuilderFactory_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUriContainer_Impl: Sized { @@ -1284,7 +1284,7 @@ impl IUriContainer_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetIUri: GetIUri:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWinInetCacheHints_Impl: Sized { @@ -1301,7 +1301,7 @@ impl IWinInetCacheHints_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), SetCacheExtension: SetCacheExtension:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWinInetCacheHints2_Impl: Sized + IWinInetCacheHints_Impl { @@ -1318,7 +1318,7 @@ impl IWinInetCacheHints2_Vtbl { Self { base__: IWinInetCacheHints_Vtbl::new::(), SetCacheExtension2: SetCacheExtension2:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IWinInetFileStream_Impl: Sized { @@ -1345,7 +1345,7 @@ impl IWinInetFileStream_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWinInetHttpInfo_Impl: Sized + IWinInetInfo_Impl { @@ -1362,7 +1362,7 @@ impl IWinInetHttpInfo_Vtbl { Self { base__: IWinInetInfo_Vtbl::new::(), QueryInfo: QueryInfo:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IWinInetHttpTimeouts_Impl: Sized { @@ -1379,7 +1379,7 @@ impl IWinInetHttpTimeouts_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetRequestTimeouts: GetRequestTimeouts:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWinInetInfo_Impl: Sized { @@ -1396,7 +1396,7 @@ impl IWinInetInfo_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), QueryOption: QueryOption:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWindowForBindingUI_Impl: Sized { @@ -1419,7 +1419,7 @@ impl IWindowForBindingUI_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetWindow: GetWindow:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWrappedProtocol_Impl: Sized { @@ -1436,7 +1436,7 @@ impl IWrappedProtocol_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetWrapperCode: GetWrapperCode:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IZoneIdentifier_Impl: Sized { @@ -1476,7 +1476,7 @@ impl IZoneIdentifier_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IZoneIdentifier2_Impl: Sized + IZoneIdentifier_Impl { @@ -1543,6 +1543,6 @@ impl IZoneIdentifier2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } 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 2b3d60cce6..35dececbbc 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 @@ -610,9 +610,8 @@ pub unsafe fn WriteHitLogging(lplogginginfo: *const HIT_LOGGING_INFO) -> super:: ::windows_targets::link!("urlmon.dll" "system" fn WriteHitLogging(lplogginginfo : *const HIT_LOGGING_INFO) -> super::super::super::Foundation:: BOOL); WriteHitLogging(lplogginginfo) } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBindCallbackRedirect(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBindCallbackRedirect, IBindCallbackRedirect_Vtbl, 0x11c81bc2_121e_4ed5_b9c4_b430bd54f2c0); +::windows_core::imp::interface_hierarchy!(IBindCallbackRedirect, ::windows_core::IUnknown); impl IBindCallbackRedirect { pub unsafe fn Redirect(&self, lpcurl: P0) -> ::windows_core::Result where @@ -622,44 +621,28 @@ impl IBindCallbackRedirect { (::windows_core::Interface::vtable(self).Redirect)(::windows_core::Interface::as_raw(self), lpcurl.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IBindCallbackRedirect, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBindCallbackRedirect { - type Vtable = IBindCallbackRedirect_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBindCallbackRedirect { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x11c81bc2_121e_4ed5_b9c4_b430bd54f2c0); -} #[repr(C)] #[doc(hidden)] pub struct IBindCallbackRedirect_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Redirect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpcurl: ::windows_core::PCWSTR, vbcancel: *mut super::super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBindHttpSecurity(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBindHttpSecurity, IBindHttpSecurity_Vtbl, 0xa9eda967_f50e_4a33_b358_206f6ef3086d); +::windows_core::imp::interface_hierarchy!(IBindHttpSecurity, ::windows_core::IUnknown); impl IBindHttpSecurity { pub unsafe fn GetIgnoreCertMask(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetIgnoreCertMask)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IBindHttpSecurity, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBindHttpSecurity { - type Vtable = IBindHttpSecurity_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBindHttpSecurity { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa9eda967_f50e_4a33_b358_206f6ef3086d); -} #[repr(C)] #[doc(hidden)] pub struct IBindHttpSecurity_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetIgnoreCertMask: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwignorecertmask: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBindProtocol(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBindProtocol, IBindProtocol_Vtbl, 0x79eac9cd_baf9_11ce_8c82_00aa004ba90b); +::windows_core::imp::interface_hierarchy!(IBindProtocol, ::windows_core::IUnknown); impl IBindProtocol { pub unsafe fn CreateBinding(&self, szurl: P0, pbc: P1) -> ::windows_core::Result where @@ -670,22 +653,14 @@ impl IBindProtocol { (::windows_core::Interface::vtable(self).CreateBinding)(::windows_core::Interface::as_raw(self), szurl.into_param().abi(), pbc.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IBindProtocol, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBindProtocol { - type Vtable = IBindProtocol_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBindProtocol { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x79eac9cd_baf9_11ce_8c82_00aa004ba90b); -} #[repr(C)] #[doc(hidden)] pub struct IBindProtocol_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub CreateBinding: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, szurl: ::windows_core::PCWSTR, pbc: *mut ::core::ffi::c_void, ppb: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICatalogFileInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICatalogFileInfo, ICatalogFileInfo_Vtbl, 0x711c7600_6b48_11d1_b403_00aa00b92af1); +::windows_core::imp::interface_hierarchy!(ICatalogFileInfo, ::windows_core::IUnknown); impl ICatalogFileInfo { pub unsafe fn GetCatalogFile(&self) -> ::windows_core::Result<::windows_core::PSTR> { let mut result__ = ::std::mem::zeroed(); @@ -695,13 +670,6 @@ impl ICatalogFileInfo { (::windows_core::Interface::vtable(self).GetJavaTrust)(::windows_core::Interface::as_raw(self), ppjavatrust).ok() } } -::windows_core::imp::interface_hierarchy!(ICatalogFileInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICatalogFileInfo { - type Vtable = ICatalogFileInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICatalogFileInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x711c7600_6b48_11d1_b403_00aa00b92af1); -} #[repr(C)] #[doc(hidden)] pub struct ICatalogFileInfo_Vtbl { @@ -709,9 +677,8 @@ pub struct ICatalogFileInfo_Vtbl { pub GetCatalogFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppszcatalogfile: *mut ::windows_core::PSTR) -> ::windows_core::HRESULT, pub GetJavaTrust: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppjavatrust: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICodeInstall(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICodeInstall, ICodeInstall_Vtbl, 0x79eac9d1_baf9_11ce_8c82_00aa004ba90b); +::windows_core::imp::interface_hierarchy!(ICodeInstall, ::windows_core::IUnknown, IWindowForBindingUI); impl ICodeInstall { pub unsafe fn GetWindow(&self, rguidreason: *const ::windows_core::GUID) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -725,22 +692,14 @@ impl ICodeInstall { (::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::imp::interface_hierarchy!(ICodeInstall, ::windows_core::IUnknown, IWindowForBindingUI); -unsafe impl ::windows_core::Interface for ICodeInstall { - type Vtable = ICodeInstall_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICodeInstall { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x79eac9d1_baf9_11ce_8c82_00aa004ba90b); -} #[repr(C)] #[doc(hidden)] pub struct ICodeInstall_Vtbl { pub base__: IWindowForBindingUI_Vtbl, pub OnCodeInstallProblem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulstatuscode: u32, szdestination: ::windows_core::PCWSTR, szsource: ::windows_core::PCWSTR, dwreserved: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataFilter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDataFilter, IDataFilter_Vtbl, 0x69d14c80_c18e_11d0_a9ce_006097942311); +::windows_core::imp::interface_hierarchy!(IDataFilter, ::windows_core::IUnknown); impl IDataFilter { pub unsafe fn DoEncode(&self, dwflags: u32, pbinbuffer: &[u8], pboutbuffer: &mut [u8], linbytesavailable: i32, plinbytesread: *mut i32, ploutbyteswritten: *mut i32, dwreserved: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).DoEncode)(::windows_core::Interface::as_raw(self), dwflags, pbinbuffer.len().try_into().unwrap(), ::core::mem::transmute(pbinbuffer.as_ptr()), pboutbuffer.len().try_into().unwrap(), ::core::mem::transmute(pboutbuffer.as_ptr()), linbytesavailable, plinbytesread, ploutbyteswritten, dwreserved).ok() @@ -752,13 +711,6 @@ impl IDataFilter { (::windows_core::Interface::vtable(self).SetEncodingLevel)(::windows_core::Interface::as_raw(self), dwenclevel).ok() } } -::windows_core::imp::interface_hierarchy!(IDataFilter, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDataFilter { - type Vtable = IDataFilter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDataFilter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x69d14c80_c18e_11d0_a9ce_006097942311); -} #[repr(C)] #[doc(hidden)] pub struct IDataFilter_Vtbl { @@ -767,9 +719,8 @@ pub struct IDataFilter_Vtbl { pub DoDecode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwflags: u32, linbuffersize: i32, pbinbuffer: *const u8, loutbuffersize: i32, pboutbuffer: *mut u8, linbytesavailable: i32, plinbytesread: *mut i32, ploutbyteswritten: *mut i32, dwreserved: u32) -> ::windows_core::HRESULT, pub SetEncodingLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwenclevel: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEncodingFilterFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEncodingFilterFactory, IEncodingFilterFactory_Vtbl, 0x70bdde00_c18e_11d0_a9ce_006097942311); +::windows_core::imp::interface_hierarchy!(IEncodingFilterFactory, ::windows_core::IUnknown); impl IEncodingFilterFactory { pub unsafe fn FindBestFilter(&self, pwzcodein: P0, pwzcodeout: P1, info: DATAINFO) -> ::windows_core::Result where @@ -788,13 +739,6 @@ impl IEncodingFilterFactory { (::windows_core::Interface::vtable(self).GetDefaultFilter)(::windows_core::Interface::as_raw(self), pwzcodein.into_param().abi(), pwzcodeout.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEncodingFilterFactory, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEncodingFilterFactory { - type Vtable = IEncodingFilterFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEncodingFilterFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x70bdde00_c18e_11d0_a9ce_006097942311); -} #[repr(C)] #[doc(hidden)] pub struct IEncodingFilterFactory_Vtbl { @@ -802,31 +746,22 @@ pub struct IEncodingFilterFactory_Vtbl { pub FindBestFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwzcodein: ::windows_core::PCWSTR, pwzcodeout: ::windows_core::PCWSTR, info: DATAINFO, ppdf: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDefaultFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwzcodein: ::windows_core::PCWSTR, pwzcodeout: ::windows_core::PCWSTR, ppdf: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGetBindHandle(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IGetBindHandle, IGetBindHandle_Vtbl, 0xaf0ff408_129d_4b20_91f0_02bd23d88352); +::windows_core::imp::interface_hierarchy!(IGetBindHandle, ::windows_core::IUnknown); impl IGetBindHandle { pub unsafe fn GetBindHandle(&self, enumrequestedhandle: BINDHANDLETYPES) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetBindHandle)(::windows_core::Interface::as_raw(self), enumrequestedhandle, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IGetBindHandle, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGetBindHandle { - type Vtable = IGetBindHandle_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGetBindHandle { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaf0ff408_129d_4b20_91f0_02bd23d88352); -} #[repr(C)] #[doc(hidden)] pub struct IGetBindHandle_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetBindHandle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enumrequestedhandle: BINDHANDLETYPES, prethandle: *mut super::super::super::Foundation::HANDLE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpNegotiate(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IHttpNegotiate, IHttpNegotiate_Vtbl, 0x79eac9d2_baf9_11ce_8c82_00aa004ba90b); +::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<::windows_core::PWSTR> where @@ -845,13 +780,6 @@ impl IHttpNegotiate { (::windows_core::Interface::vtable(self).OnResponse)(::windows_core::Interface::as_raw(self), dwresponsecode, szresponseheaders.into_param().abi(), szrequestheaders.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IHttpNegotiate, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHttpNegotiate { - type Vtable = IHttpNegotiate_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpNegotiate { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x79eac9d2_baf9_11ce_8c82_00aa004ba90b); -} #[repr(C)] #[doc(hidden)] pub struct IHttpNegotiate_Vtbl { @@ -859,9 +787,8 @@ pub struct IHttpNegotiate_Vtbl { pub BeginningTransaction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, szurl: ::windows_core::PCWSTR, szheaders: ::windows_core::PCWSTR, dwreserved: u32, pszadditionalheaders: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, pub OnResponse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwresponsecode: u32, szresponseheaders: ::windows_core::PCWSTR, szrequestheaders: ::windows_core::PCWSTR, pszadditionalrequestheaders: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpNegotiate2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IHttpNegotiate2, IHttpNegotiate2_Vtbl, 0x4f9f9fcb_e0f4_48eb_b7ab_fa2ea9365cb4); +::windows_core::imp::interface_hierarchy!(IHttpNegotiate2, ::windows_core::IUnknown, IHttpNegotiate); impl IHttpNegotiate2 { pub unsafe fn BeginningTransaction(&self, szurl: P0, szheaders: P1, dwreserved: u32) -> ::windows_core::Result<::windows_core::PWSTR> where @@ -883,22 +810,14 @@ impl IHttpNegotiate2 { (::windows_core::Interface::vtable(self).GetRootSecurityId)(::windows_core::Interface::as_raw(self), pbsecurityid, pcbsecurityid, dwreserved).ok() } } -::windows_core::imp::interface_hierarchy!(IHttpNegotiate2, ::windows_core::IUnknown, IHttpNegotiate); -unsafe impl ::windows_core::Interface for IHttpNegotiate2 { - type Vtable = IHttpNegotiate2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpNegotiate2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4f9f9fcb_e0f4_48eb_b7ab_fa2ea9365cb4); -} #[repr(C)] #[doc(hidden)] pub struct IHttpNegotiate2_Vtbl { pub base__: IHttpNegotiate_Vtbl, pub GetRootSecurityId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbsecurityid: *mut u8, pcbsecurityid: *mut u32, dwreserved: usize) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpNegotiate3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IHttpNegotiate3, IHttpNegotiate3_Vtbl, 0x57b6c80a_34c2_4602_bc26_66a02fc57153); +::windows_core::imp::interface_hierarchy!(IHttpNegotiate3, ::windows_core::IUnknown, IHttpNegotiate, IHttpNegotiate2); impl IHttpNegotiate3 { pub unsafe fn BeginningTransaction(&self, szurl: P0, szheaders: P1, dwreserved: u32) -> ::windows_core::Result<::windows_core::PWSTR> where @@ -923,22 +842,14 @@ impl IHttpNegotiate3 { (::windows_core::Interface::vtable(self).GetSerializedClientCertContext)(::windows_core::Interface::as_raw(self), ppbcert, pcbcert).ok() } } -::windows_core::imp::interface_hierarchy!(IHttpNegotiate3, ::windows_core::IUnknown, IHttpNegotiate, IHttpNegotiate2); -unsafe impl ::windows_core::Interface for IHttpNegotiate3 { - type Vtable = IHttpNegotiate3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpNegotiate3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x57b6c80a_34c2_4602_bc26_66a02fc57153); -} #[repr(C)] #[doc(hidden)] pub struct IHttpNegotiate3_Vtbl { pub base__: IHttpNegotiate2_Vtbl, pub GetSerializedClientCertContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppbcert: *mut *mut u8, pcbcert: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHttpSecurity(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IHttpSecurity, IHttpSecurity_Vtbl, 0x79eac9d7_bafa_11ce_8c82_00aa004ba90b); +::windows_core::imp::interface_hierarchy!(IHttpSecurity, ::windows_core::IUnknown, IWindowForBindingUI); impl IHttpSecurity { pub unsafe fn GetWindow(&self, rguidreason: *const ::windows_core::GUID) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -948,38 +859,22 @@ impl IHttpSecurity { (::windows_core::Interface::vtable(self).OnSecurityProblem)(::windows_core::Interface::as_raw(self), dwproblem).ok() } } -::windows_core::imp::interface_hierarchy!(IHttpSecurity, ::windows_core::IUnknown, IWindowForBindingUI); -unsafe impl ::windows_core::Interface for IHttpSecurity { - type Vtable = IHttpSecurity_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHttpSecurity { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x79eac9d7_bafa_11ce_8c82_00aa004ba90b); -} #[repr(C)] #[doc(hidden)] pub struct IHttpSecurity_Vtbl { pub base__: IWindowForBindingUI_Vtbl, pub OnSecurityProblem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwproblem: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInternet(::windows_core::IUnknown); -impl IInternet {} +::windows_core::imp::com_interface!(IInternet, IInternet_Vtbl, 0x79eac9e0_baf9_11ce_8c82_00aa004ba90b); ::windows_core::imp::interface_hierarchy!(IInternet, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInternet { - type Vtable = IInternet_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInternet { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x79eac9e0_baf9_11ce_8c82_00aa004ba90b); -} +impl IInternet {} #[repr(C)] #[doc(hidden)] pub struct IInternet_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInternetBindInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IInternetBindInfo, IInternetBindInfo_Vtbl, 0x79eac9e1_baf9_11ce_8c82_00aa004ba90b); +::windows_core::imp::interface_hierarchy!(IInternetBindInfo, ::windows_core::IUnknown); impl IInternetBindInfo { #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_Security\"`, `\"Win32_System_Com_StructuredStorage\"`"] #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_Security", feature = "Win32_System_Com_StructuredStorage"))] @@ -990,13 +885,6 @@ impl IInternetBindInfo { (::windows_core::Interface::vtable(self).GetBindString)(::windows_core::Interface::as_raw(self), ulstringtype, ppwzstr, cel, pcelfetched).ok() } } -::windows_core::imp::interface_hierarchy!(IInternetBindInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInternetBindInfo { - type Vtable = IInternetBindInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInternetBindInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x79eac9e1_baf9_11ce_8c82_00aa004ba90b); -} #[repr(C)] #[doc(hidden)] pub struct IInternetBindInfo_Vtbl { @@ -1007,9 +895,8 @@ pub struct IInternetBindInfo_Vtbl { GetBindInfo: usize, pub GetBindString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulstringtype: u32, ppwzstr: *mut ::windows_core::PWSTR, cel: u32, pcelfetched: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInternetBindInfoEx(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IInternetBindInfoEx, IInternetBindInfoEx_Vtbl, 0xa3e015b7_a82c_4dcd_a150_569aeeed36ab); +::windows_core::imp::interface_hierarchy!(IInternetBindInfoEx, ::windows_core::IUnknown, IInternetBindInfo); impl IInternetBindInfoEx { #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_Security\"`, `\"Win32_System_Com_StructuredStorage\"`"] #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_Security", feature = "Win32_System_Com_StructuredStorage"))] @@ -1025,13 +912,6 @@ impl IInternetBindInfoEx { (::windows_core::Interface::vtable(self).GetBindInfoEx)(::windows_core::Interface::as_raw(self), grfbindf, pbindinfo, grfbindf2, pdwreserved).ok() } } -::windows_core::imp::interface_hierarchy!(IInternetBindInfoEx, ::windows_core::IUnknown, IInternetBindInfo); -unsafe impl ::windows_core::Interface for IInternetBindInfoEx { - type Vtable = IInternetBindInfoEx_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInternetBindInfoEx { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa3e015b7_a82c_4dcd_a150_569aeeed36ab); -} #[repr(C)] #[doc(hidden)] pub struct IInternetBindInfoEx_Vtbl { @@ -1041,9 +921,8 @@ pub struct IInternetBindInfoEx_Vtbl { #[cfg(not(all(feature = "Win32_Graphics_Gdi", feature = "Win32_Security", feature = "Win32_System_Com_StructuredStorage")))] GetBindInfoEx: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInternetHostSecurityManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IInternetHostSecurityManager, IInternetHostSecurityManager_Vtbl, 0x3af280b6_cb3f_11d0_891e_00c04fb6bfc4); +::windows_core::imp::interface_hierarchy!(IInternetHostSecurityManager, ::windows_core::IUnknown); impl IInternetHostSecurityManager { pub unsafe fn GetSecurityId(&self, pbsecurityid: *mut u8, pcbsecurityid: *mut u32, dwreserved: usize) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetSecurityId)(::windows_core::Interface::as_raw(self), pbsecurityid, pcbsecurityid, dwreserved).ok() @@ -1055,13 +934,6 @@ impl IInternetHostSecurityManager { (::windows_core::Interface::vtable(self).QueryCustomPolicy)(::windows_core::Interface::as_raw(self), guidkey, pppolicy, pcbpolicy, ::core::mem::transmute(pcontext.as_ptr()), pcontext.len().try_into().unwrap(), dwreserved).ok() } } -::windows_core::imp::interface_hierarchy!(IInternetHostSecurityManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInternetHostSecurityManager { - type Vtable = IInternetHostSecurityManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInternetHostSecurityManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3af280b6_cb3f_11d0_891e_00c04fb6bfc4); -} #[repr(C)] #[doc(hidden)] pub struct IInternetHostSecurityManager_Vtbl { @@ -1070,9 +942,8 @@ pub struct IInternetHostSecurityManager_Vtbl { pub ProcessUrlAction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwaction: u32, ppolicy: *mut u8, cbpolicy: u32, pcontext: *const u8, cbcontext: u32, dwflags: u32, dwreserved: u32) -> ::windows_core::HRESULT, pub QueryCustomPolicy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guidkey: *const ::windows_core::GUID, pppolicy: *mut *mut u8, pcbpolicy: *mut u32, pcontext: *const u8, cbcontext: u32, dwreserved: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInternetPriority(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IInternetPriority, IInternetPriority_Vtbl, 0x79eac9eb_baf9_11ce_8c82_00aa004ba90b); +::windows_core::imp::interface_hierarchy!(IInternetPriority, ::windows_core::IUnknown); impl IInternetPriority { pub unsafe fn SetPriority(&self, npriority: i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetPriority)(::windows_core::Interface::as_raw(self), npriority).ok() @@ -1082,13 +953,6 @@ impl IInternetPriority { (::windows_core::Interface::vtable(self).GetPriority)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IInternetPriority, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInternetPriority { - type Vtable = IInternetPriority_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInternetPriority { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x79eac9eb_baf9_11ce_8c82_00aa004ba90b); -} #[repr(C)] #[doc(hidden)] pub struct IInternetPriority_Vtbl { @@ -1096,9 +960,8 @@ pub struct IInternetPriority_Vtbl { pub SetPriority: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, npriority: i32) -> ::windows_core::HRESULT, pub GetPriority: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pnpriority: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInternetProtocol(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IInternetProtocol, IInternetProtocol_Vtbl, 0x79eac9e4_baf9_11ce_8c82_00aa004ba90b); +::windows_core::imp::interface_hierarchy!(IInternetProtocol, ::windows_core::IUnknown, IInternetProtocolRoot); impl IInternetProtocol { pub unsafe fn Start(&self, szurl: P0, poiprotsink: P1, poibindinfo: P2, grfpi: u32, dwreserved: P3) -> ::windows_core::Result<()> where @@ -1138,13 +1001,6 @@ impl IInternetProtocol { (::windows_core::Interface::vtable(self).UnlockRequest)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IInternetProtocol, ::windows_core::IUnknown, IInternetProtocolRoot); -unsafe impl ::windows_core::Interface for IInternetProtocol { - type Vtable = IInternetProtocol_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInternetProtocol { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x79eac9e4_baf9_11ce_8c82_00aa004ba90b); -} #[repr(C)] #[doc(hidden)] pub struct IInternetProtocol_Vtbl { @@ -1154,9 +1010,8 @@ pub struct IInternetProtocol_Vtbl { pub LockRequest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwoptions: u32) -> ::windows_core::HRESULT, pub UnlockRequest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInternetProtocolEx(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IInternetProtocolEx, IInternetProtocolEx_Vtbl, 0xc7a98e66_1010_492c_a1c8_c809e1f75905); +::windows_core::imp::interface_hierarchy!(IInternetProtocolEx, ::windows_core::IUnknown, IInternetProtocolRoot, IInternetProtocol); impl IInternetProtocolEx { pub unsafe fn Start(&self, szurl: P0, poiprotsink: P1, poibindinfo: P2, grfpi: u32, dwreserved: P3) -> ::windows_core::Result<()> where @@ -1205,22 +1060,14 @@ impl IInternetProtocolEx { (::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::imp::interface_hierarchy!(IInternetProtocolEx, ::windows_core::IUnknown, IInternetProtocolRoot, IInternetProtocol); -unsafe impl ::windows_core::Interface for IInternetProtocolEx { - type Vtable = IInternetProtocolEx_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInternetProtocolEx { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc7a98e66_1010_492c_a1c8_c809e1f75905); -} #[repr(C)] #[doc(hidden)] pub struct IInternetProtocolEx_Vtbl { pub base__: IInternetProtocol_Vtbl, pub StartEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, puri: *mut ::core::ffi::c_void, poiprotsink: *mut ::core::ffi::c_void, poibindinfo: *mut ::core::ffi::c_void, grfpi: u32, dwreserved: super::super::super::Foundation::HANDLE_PTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInternetProtocolInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IInternetProtocolInfo, IInternetProtocolInfo_Vtbl, 0x79eac9ec_baf9_11ce_8c82_00aa004ba90b); +::windows_core::imp::interface_hierarchy!(IInternetProtocolInfo, ::windows_core::IUnknown); 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 @@ -1250,13 +1097,6 @@ impl IInternetProtocolInfo { (::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::imp::interface_hierarchy!(IInternetProtocolInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInternetProtocolInfo { - type Vtable = IInternetProtocolInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInternetProtocolInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x79eac9ec_baf9_11ce_8c82_00aa004ba90b); -} #[repr(C)] #[doc(hidden)] pub struct IInternetProtocolInfo_Vtbl { @@ -1266,9 +1106,8 @@ pub struct IInternetProtocolInfo_Vtbl { pub CompareUrl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwzurl1: ::windows_core::PCWSTR, pwzurl2: ::windows_core::PCWSTR, dwcompareflags: u32) -> ::windows_core::HRESULT, pub QueryInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwzurl: ::windows_core::PCWSTR, oueryoption: QUERYOPTION, dwqueryflags: u32, pbuffer: *mut ::core::ffi::c_void, cbbuffer: u32, pcbbuf: *mut u32, dwreserved: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInternetProtocolRoot(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IInternetProtocolRoot, IInternetProtocolRoot_Vtbl, 0x79eac9e3_baf9_11ce_8c82_00aa004ba90b); +::windows_core::imp::interface_hierarchy!(IInternetProtocolRoot, ::windows_core::IUnknown); impl IInternetProtocolRoot { pub unsafe fn Start(&self, szurl: P0, poiprotsink: P1, poibindinfo: P2, grfpi: u32, dwreserved: P3) -> ::windows_core::Result<()> where @@ -1295,13 +1134,6 @@ impl IInternetProtocolRoot { (::windows_core::Interface::vtable(self).Resume)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IInternetProtocolRoot, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInternetProtocolRoot { - type Vtable = IInternetProtocolRoot_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInternetProtocolRoot { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x79eac9e3_baf9_11ce_8c82_00aa004ba90b); -} #[repr(C)] #[doc(hidden)] pub struct IInternetProtocolRoot_Vtbl { @@ -1313,9 +1145,8 @@ pub struct IInternetProtocolRoot_Vtbl { pub Suspend: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Resume: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInternetProtocolSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IInternetProtocolSink, IInternetProtocolSink_Vtbl, 0x79eac9e5_baf9_11ce_8c82_00aa004ba90b); +::windows_core::imp::interface_hierarchy!(IInternetProtocolSink, ::windows_core::IUnknown); impl IInternetProtocolSink { pub unsafe fn Switch(&self, pprotocoldata: *const PROTOCOLDATA) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Switch)(::windows_core::Interface::as_raw(self), pprotocoldata).ok() @@ -1336,13 +1167,6 @@ impl IInternetProtocolSink { (::windows_core::Interface::vtable(self).ReportResult)(::windows_core::Interface::as_raw(self), hrresult, dwerror, szresult.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IInternetProtocolSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInternetProtocolSink { - type Vtable = IInternetProtocolSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInternetProtocolSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x79eac9e5_baf9_11ce_8c82_00aa004ba90b); -} #[repr(C)] #[doc(hidden)] pub struct IInternetProtocolSink_Vtbl { @@ -1352,9 +1176,8 @@ pub struct IInternetProtocolSink_Vtbl { pub ReportData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, grfbscf: u32, ulprogress: u32, ulprogressmax: u32) -> ::windows_core::HRESULT, pub ReportResult: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hrresult: ::windows_core::HRESULT, dwerror: u32, szresult: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInternetProtocolSinkStackable(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IInternetProtocolSinkStackable, IInternetProtocolSinkStackable_Vtbl, 0x79eac9f0_baf9_11ce_8c82_00aa004ba90b); +::windows_core::imp::interface_hierarchy!(IInternetProtocolSinkStackable, ::windows_core::IUnknown); impl IInternetProtocolSinkStackable { pub unsafe fn SwitchSink(&self, poiprotsink: P0) -> ::windows_core::Result<()> where @@ -1369,13 +1192,6 @@ impl IInternetProtocolSinkStackable { (::windows_core::Interface::vtable(self).RollbackSwitch)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IInternetProtocolSinkStackable, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInternetProtocolSinkStackable { - type Vtable = IInternetProtocolSinkStackable_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInternetProtocolSinkStackable { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x79eac9f0_baf9_11ce_8c82_00aa004ba90b); -} #[repr(C)] #[doc(hidden)] pub struct IInternetProtocolSinkStackable_Vtbl { @@ -1384,9 +1200,8 @@ pub struct IInternetProtocolSinkStackable_Vtbl { pub CommitSwitch: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RollbackSwitch: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInternetSecurityManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IInternetSecurityManager, IInternetSecurityManager_Vtbl, 0x79eac9ee_baf9_11ce_8c82_00aa004ba90b); +::windows_core::imp::interface_hierarchy!(IInternetSecurityManager, ::windows_core::IUnknown); impl IInternetSecurityManager { pub unsafe fn SetSecuritySite(&self, psite: P0) -> ::windows_core::Result<()> where @@ -1432,13 +1247,6 @@ impl IInternetSecurityManager { (::windows_core::Interface::vtable(self).GetZoneMappings)(::windows_core::Interface::as_raw(self), dwzone, ::core::mem::transmute(ppenumstring), dwflags).ok() } } -::windows_core::imp::interface_hierarchy!(IInternetSecurityManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInternetSecurityManager { - type Vtable = IInternetSecurityManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInternetSecurityManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x79eac9ee_baf9_11ce_8c82_00aa004ba90b); -} #[repr(C)] #[doc(hidden)] pub struct IInternetSecurityManager_Vtbl { @@ -1452,9 +1260,8 @@ pub struct IInternetSecurityManager_Vtbl { pub SetZoneMapping: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwzone: u32, lpszpattern: ::windows_core::PCWSTR, dwflags: u32) -> ::windows_core::HRESULT, pub GetZoneMappings: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwzone: u32, ppenumstring: *mut *mut ::core::ffi::c_void, dwflags: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInternetSecurityManagerEx(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IInternetSecurityManagerEx, IInternetSecurityManagerEx_Vtbl, 0xf164edf1_cc7c_4f0d_9a94_34222625c393); +::windows_core::imp::interface_hierarchy!(IInternetSecurityManagerEx, ::windows_core::IUnknown, IInternetSecurityManager); impl IInternetSecurityManagerEx { pub unsafe fn SetSecuritySite(&self, psite: P0) -> ::windows_core::Result<()> where @@ -1506,22 +1313,14 @@ impl IInternetSecurityManagerEx { (::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::imp::interface_hierarchy!(IInternetSecurityManagerEx, ::windows_core::IUnknown, IInternetSecurityManager); -unsafe impl ::windows_core::Interface for IInternetSecurityManagerEx { - type Vtable = IInternetSecurityManagerEx_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInternetSecurityManagerEx { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf164edf1_cc7c_4f0d_9a94_34222625c393); -} #[repr(C)] #[doc(hidden)] pub struct IInternetSecurityManagerEx_Vtbl { pub base__: IInternetSecurityManager_Vtbl, pub ProcessUrlActionEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwszurl: ::windows_core::PCWSTR, dwaction: u32, ppolicy: *mut u8, cbpolicy: u32, pcontext: *const u8, cbcontext: u32, dwflags: u32, dwreserved: u32, pdwoutflags: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInternetSecurityManagerEx2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IInternetSecurityManagerEx2, IInternetSecurityManagerEx2_Vtbl, 0xf1e50292_a795_4117_8e09_2b560a72ac60); +::windows_core::imp::interface_hierarchy!(IInternetSecurityManagerEx2, ::windows_core::IUnknown, IInternetSecurityManager, IInternetSecurityManagerEx); impl IInternetSecurityManagerEx2 { pub unsafe fn SetSecuritySite(&self, psite: P0) -> ::windows_core::Result<()> where @@ -1597,13 +1396,6 @@ impl IInternetSecurityManagerEx2 { (::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::imp::interface_hierarchy!(IInternetSecurityManagerEx2, ::windows_core::IUnknown, IInternetSecurityManager, IInternetSecurityManagerEx); -unsafe impl ::windows_core::Interface for IInternetSecurityManagerEx2 { - type Vtable = IInternetSecurityManagerEx2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInternetSecurityManagerEx2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf1e50292_a795_4117_8e09_2b560a72ac60); -} #[repr(C)] #[doc(hidden)] pub struct IInternetSecurityManagerEx2_Vtbl { @@ -1613,9 +1405,8 @@ pub struct IInternetSecurityManagerEx2_Vtbl { pub GetSecurityIdEx2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, puri: *mut ::core::ffi::c_void, pbsecurityid: *mut u8, pcbsecurityid: *mut u32, dwreserved: usize) -> ::windows_core::HRESULT, pub QueryCustomPolicyEx2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, puri: *mut ::core::ffi::c_void, guidkey: *const ::windows_core::GUID, pppolicy: *mut *mut u8, pcbpolicy: *mut u32, pcontext: *const u8, cbcontext: u32, dwreserved: usize) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInternetSecurityMgrSite(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IInternetSecurityMgrSite, IInternetSecurityMgrSite_Vtbl, 0x79eac9ed_baf9_11ce_8c82_00aa004ba90b); +::windows_core::imp::interface_hierarchy!(IInternetSecurityMgrSite, ::windows_core::IUnknown); impl IInternetSecurityMgrSite { pub unsafe fn GetWindow(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1628,13 +1419,6 @@ impl IInternetSecurityMgrSite { (::windows_core::Interface::vtable(self).EnableModeless)(::windows_core::Interface::as_raw(self), fenable.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IInternetSecurityMgrSite, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInternetSecurityMgrSite { - type Vtable = IInternetSecurityMgrSite_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInternetSecurityMgrSite { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x79eac9ed_baf9_11ce_8c82_00aa004ba90b); -} #[repr(C)] #[doc(hidden)] pub struct IInternetSecurityMgrSite_Vtbl { @@ -1642,9 +1426,8 @@ pub struct IInternetSecurityMgrSite_Vtbl { pub GetWindow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phwnd: *mut super::super::super::Foundation::HWND) -> ::windows_core::HRESULT, pub EnableModeless: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fenable: super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInternetSession(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IInternetSession, IInternetSession_Vtbl, 0x79eac9e7_baf9_11ce_8c82_00aa004ba90b); +::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 @@ -1689,13 +1472,6 @@ impl IInternetSession { (::windows_core::Interface::vtable(self).GetSessionOption)(::windows_core::Interface::as_raw(self), dwoption, pbuffer, pdwbufferlength, dwreserved).ok() } } -::windows_core::imp::interface_hierarchy!(IInternetSession, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInternetSession { - type Vtable = IInternetSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInternetSession { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x79eac9e7_baf9_11ce_8c82_00aa004ba90b); -} #[repr(C)] #[doc(hidden)] pub struct IInternetSession_Vtbl { @@ -1708,9 +1484,8 @@ pub struct IInternetSession_Vtbl { pub SetSessionOption: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwoption: u32, pbuffer: *const ::core::ffi::c_void, dwbufferlength: u32, dwreserved: u32) -> ::windows_core::HRESULT, pub GetSessionOption: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwoption: u32, pbuffer: *mut ::core::ffi::c_void, pdwbufferlength: *mut u32, dwreserved: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInternetThreadSwitch(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IInternetThreadSwitch, IInternetThreadSwitch_Vtbl, 0x79eac9e8_baf9_11ce_8c82_00aa004ba90b); +::windows_core::imp::interface_hierarchy!(IInternetThreadSwitch, ::windows_core::IUnknown); impl IInternetThreadSwitch { pub unsafe fn Prepare(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Prepare)(::windows_core::Interface::as_raw(self)).ok() @@ -1719,13 +1494,6 @@ impl IInternetThreadSwitch { (::windows_core::Interface::vtable(self).Continue)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IInternetThreadSwitch, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInternetThreadSwitch { - type Vtable = IInternetThreadSwitch_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInternetThreadSwitch { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x79eac9e8_baf9_11ce_8c82_00aa004ba90b); -} #[repr(C)] #[doc(hidden)] pub struct IInternetThreadSwitch_Vtbl { @@ -1733,9 +1501,8 @@ pub struct IInternetThreadSwitch_Vtbl { pub Prepare: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Continue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInternetZoneManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IInternetZoneManager, IInternetZoneManager_Vtbl, 0x79eac9ef_baf9_11ce_8c82_00aa004ba90b); +::windows_core::imp::interface_hierarchy!(IInternetZoneManager, ::windows_core::IUnknown); impl IInternetZoneManager { pub unsafe fn GetZoneAttributes(&self, dwzone: u32, pzoneattributes: *mut ZONEATTRIBUTES) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetZoneAttributes)(::windows_core::Interface::as_raw(self), dwzone, pzoneattributes).ok() @@ -1784,13 +1551,6 @@ impl IInternetZoneManager { (::windows_core::Interface::vtable(self).CopyTemplatePoliciesToZone)(::windows_core::Interface::as_raw(self), dwtemplate, dwzone, dwreserved).ok() } } -::windows_core::imp::interface_hierarchy!(IInternetZoneManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInternetZoneManager { - type Vtable = IInternetZoneManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInternetZoneManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x79eac9ef_baf9_11ce_8c82_00aa004ba90b); -} #[repr(C)] #[doc(hidden)] pub struct IInternetZoneManager_Vtbl { @@ -1808,9 +1568,8 @@ pub struct IInternetZoneManager_Vtbl { pub DestroyZoneEnumerator: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwenum: u32) -> ::windows_core::HRESULT, pub CopyTemplatePoliciesToZone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwtemplate: u32, dwzone: u32, dwreserved: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInternetZoneManagerEx(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IInternetZoneManagerEx, IInternetZoneManagerEx_Vtbl, 0xa4c23339_8e06_431e_9bf4_7e711c085648); +::windows_core::imp::interface_hierarchy!(IInternetZoneManagerEx, ::windows_core::IUnknown, IInternetZoneManager); impl IInternetZoneManagerEx { pub unsafe fn GetZoneAttributes(&self, dwzone: u32, pzoneattributes: *mut ZONEATTRIBUTES) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.GetZoneAttributes)(::windows_core::Interface::as_raw(self), dwzone, pzoneattributes).ok() @@ -1865,13 +1624,6 @@ impl IInternetZoneManagerEx { (::windows_core::Interface::vtable(self).SetZoneActionPolicyEx)(::windows_core::Interface::as_raw(self), dwzone, dwaction, ::core::mem::transmute(ppolicy.as_ptr()), ppolicy.len().try_into().unwrap(), urlzonereg, dwflags).ok() } } -::windows_core::imp::interface_hierarchy!(IInternetZoneManagerEx, ::windows_core::IUnknown, IInternetZoneManager); -unsafe impl ::windows_core::Interface for IInternetZoneManagerEx { - type Vtable = IInternetZoneManagerEx_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInternetZoneManagerEx { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa4c23339_8e06_431e_9bf4_7e711c085648); -} #[repr(C)] #[doc(hidden)] pub struct IInternetZoneManagerEx_Vtbl { @@ -1879,9 +1631,8 @@ pub struct IInternetZoneManagerEx_Vtbl { pub GetZoneActionPolicyEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwzone: u32, dwaction: u32, ppolicy: *mut u8, cbpolicy: u32, urlzonereg: URLZONEREG, dwflags: u32) -> ::windows_core::HRESULT, pub SetZoneActionPolicyEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwzone: u32, dwaction: u32, ppolicy: *const u8, cbpolicy: u32, urlzonereg: URLZONEREG, dwflags: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInternetZoneManagerEx2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IInternetZoneManagerEx2, IInternetZoneManagerEx2_Vtbl, 0xedc17559_dd5d_4846_8eef_8becba5a4abf); +::windows_core::imp::interface_hierarchy!(IInternetZoneManagerEx2, ::windows_core::IUnknown, IInternetZoneManager, IInternetZoneManagerEx); impl IInternetZoneManagerEx2 { pub unsafe fn GetZoneAttributes(&self, dwzone: u32, pzoneattributes: *mut ZONEATTRIBUTES) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.GetZoneAttributes)(::windows_core::Interface::as_raw(self), dwzone, pzoneattributes).ok() @@ -1955,13 +1706,6 @@ impl IInternetZoneManagerEx2 { (::windows_core::Interface::vtable(self).FixUnsecureSettings)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IInternetZoneManagerEx2, ::windows_core::IUnknown, IInternetZoneManager, IInternetZoneManagerEx); -unsafe impl ::windows_core::Interface for IInternetZoneManagerEx2 { - type Vtable = IInternetZoneManagerEx2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInternetZoneManagerEx2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xedc17559_dd5d_4846_8eef_8becba5a4abf); -} #[repr(C)] #[doc(hidden)] pub struct IInternetZoneManagerEx2_Vtbl { @@ -1971,9 +1715,8 @@ pub struct IInternetZoneManagerEx2_Vtbl { pub GetIESecurityState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, frespectpolicy: super::super::super::Foundation::BOOL, pdwstate: *mut u32, pfpolicyencountered: *mut super::super::super::Foundation::BOOL, fnocache: super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub FixUnsecureSettings: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMonikerProp(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMonikerProp, IMonikerProp_Vtbl, 0xa5ca5f7f_1847_4d87_9c5b_918509f7511d); +::windows_core::imp::interface_hierarchy!(IMonikerProp, ::windows_core::IUnknown); impl IMonikerProp { pub unsafe fn PutProperty(&self, mkp: MONIKERPROPERTY, val: P0) -> ::windows_core::Result<()> where @@ -1982,22 +1725,14 @@ impl IMonikerProp { (::windows_core::Interface::vtable(self).PutProperty)(::windows_core::Interface::as_raw(self), mkp, val.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMonikerProp, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMonikerProp { - type Vtable = IMonikerProp_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMonikerProp { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa5ca5f7f_1847_4d87_9c5b_918509f7511d); -} #[repr(C)] #[doc(hidden)] pub struct IMonikerProp_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub PutProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mkp: MONIKERPROPERTY, val: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPersistMoniker(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPersistMoniker, IPersistMoniker_Vtbl, 0x79eac9c9_baf9_11ce_8c82_00aa004ba90b); +::windows_core::imp::interface_hierarchy!(IPersistMoniker, ::windows_core::IUnknown); impl IPersistMoniker { pub unsafe fn GetClassID(&self) -> ::windows_core::Result<::windows_core::GUID> { let mut result__ = ::std::mem::zeroed(); @@ -2034,13 +1769,6 @@ impl IPersistMoniker { (::windows_core::Interface::vtable(self).GetCurMoniker)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IPersistMoniker, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPersistMoniker { - type Vtable = IPersistMoniker_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPersistMoniker { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x79eac9c9_baf9_11ce_8c82_00aa004ba90b); -} #[repr(C)] #[doc(hidden)] pub struct IPersistMoniker_Vtbl { @@ -2052,9 +1780,8 @@ pub struct IPersistMoniker_Vtbl { pub SaveCompleted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pimkname: *mut ::core::ffi::c_void, pibc: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetCurMoniker: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppimkname: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISoftDistExt(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISoftDistExt, ISoftDistExt_Vtbl, 0xb15b8dc1_c7e1_11d0_8680_00aa00bdcb71); +::windows_core::imp::interface_hierarchy!(ISoftDistExt, ::windows_core::IUnknown); impl ISoftDistExt { #[doc = "Required features: `\"Win32_Data_Xml_MsXml\"`"] #[cfg(feature = "Win32_Data_Xml_MsXml")] @@ -2078,13 +1805,6 @@ impl ISoftDistExt { (::windows_core::Interface::vtable(self).AsyncInstallDistributionUnit)(::windows_core::Interface::as_raw(self), pbc.into_param().abi(), pvreserved, flags, lpcbh).ok() } } -::windows_core::imp::interface_hierarchy!(ISoftDistExt, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISoftDistExt { - type Vtable = ISoftDistExt_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISoftDistExt { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb15b8dc1_c7e1_11d0_8680_00aa00bdcb71); -} #[repr(C)] #[doc(hidden)] pub struct ISoftDistExt_Vtbl { @@ -2097,9 +1817,8 @@ pub struct ISoftDistExt_Vtbl { pub GetNextCodeBase: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, szcodebase: *const ::windows_core::PCWSTR, dwmaxsize: *const u32) -> ::windows_core::HRESULT, pub AsyncInstallDistributionUnit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbc: *mut ::core::ffi::c_void, pvreserved: *const ::core::ffi::c_void, flags: u32, lpcbh: *const CODEBASEHOLD) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUriBuilderFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUriBuilderFactory, IUriBuilderFactory_Vtbl, 0xe982ce48_0b96_440c_bc37_0c869b27a29e); +::windows_core::imp::interface_hierarchy!(IUriBuilderFactory, ::windows_core::IUnknown); impl IUriBuilderFactory { pub unsafe fn CreateIUriBuilder(&self, dwflags: u32, dwreserved: usize) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2110,13 +1829,6 @@ impl IUriBuilderFactory { (::windows_core::Interface::vtable(self).CreateInitializedIUriBuilder)(::windows_core::Interface::as_raw(self), dwflags, dwreserved, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUriBuilderFactory, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUriBuilderFactory { - type Vtable = IUriBuilderFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUriBuilderFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe982ce48_0b96_440c_bc37_0c869b27a29e); -} #[repr(C)] #[doc(hidden)] pub struct IUriBuilderFactory_Vtbl { @@ -2124,31 +1836,22 @@ pub struct IUriBuilderFactory_Vtbl { pub CreateIUriBuilder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwflags: u32, dwreserved: usize, ppiuribuilder: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateInitializedIUriBuilder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwflags: u32, dwreserved: usize, ppiuribuilder: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUriContainer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUriContainer, IUriContainer_Vtbl, 0xa158a630_ed6f_45fb_b987_f68676f57752); +::windows_core::imp::interface_hierarchy!(IUriContainer, ::windows_core::IUnknown); impl IUriContainer { pub unsafe fn GetIUri(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetIUri)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUriContainer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUriContainer { - type Vtable = IUriContainer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUriContainer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa158a630_ed6f_45fb_b987_f68676f57752); -} #[repr(C)] #[doc(hidden)] pub struct IUriContainer_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetIUri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppiuri: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWinInetCacheHints(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWinInetCacheHints, IWinInetCacheHints_Vtbl, 0xdd1ec3b3_8391_4fdb_a9e6_347c3caaa7dd); +::windows_core::imp::interface_hierarchy!(IWinInetCacheHints, ::windows_core::IUnknown); 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 @@ -2157,22 +1860,14 @@ impl IWinInetCacheHints { (::windows_core::Interface::vtable(self).SetCacheExtension)(::windows_core::Interface::as_raw(self), pwzext.into_param().abi(), pszcachefile, pcbcachefile, pdwwinineterror, pdwreserved).ok() } } -::windows_core::imp::interface_hierarchy!(IWinInetCacheHints, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWinInetCacheHints { - type Vtable = IWinInetCacheHints_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWinInetCacheHints { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdd1ec3b3_8391_4fdb_a9e6_347c3caaa7dd); -} #[repr(C)] #[doc(hidden)] pub struct IWinInetCacheHints_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub SetCacheExtension: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwzext: ::windows_core::PCWSTR, pszcachefile: *mut ::core::ffi::c_void, pcbcachefile: *mut u32, pdwwinineterror: *mut u32, pdwreserved: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWinInetCacheHints2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWinInetCacheHints2, IWinInetCacheHints2_Vtbl, 0x7857aeac_d31f_49bf_884e_dd46df36780a); +::windows_core::imp::interface_hierarchy!(IWinInetCacheHints2, ::windows_core::IUnknown, IWinInetCacheHints); 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 @@ -2187,22 +1882,14 @@ impl IWinInetCacheHints2 { (::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::imp::interface_hierarchy!(IWinInetCacheHints2, ::windows_core::IUnknown, IWinInetCacheHints); -unsafe impl ::windows_core::Interface for IWinInetCacheHints2 { - type Vtable = IWinInetCacheHints2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWinInetCacheHints2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7857aeac_d31f_49bf_884e_dd46df36780a); -} #[repr(C)] #[doc(hidden)] pub struct IWinInetCacheHints2_Vtbl { pub base__: IWinInetCacheHints_Vtbl, pub SetCacheExtension2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwzext: ::windows_core::PCWSTR, pwzcachefile: ::windows_core::PWSTR, pcchcachefile: *mut u32, pdwwinineterror: *mut u32, pdwreserved: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWinInetFileStream(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWinInetFileStream, IWinInetFileStream_Vtbl, 0xf134c4b7_b1f8_4e75_b886_74b90943becb); +::windows_core::imp::interface_hierarchy!(IWinInetFileStream, ::windows_core::IUnknown); impl IWinInetFileStream { pub unsafe fn SetHandleForUnlock(&self, hwininetlockhandle: usize, dwreserved: usize) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetHandleForUnlock)(::windows_core::Interface::as_raw(self), hwininetlockhandle, dwreserved).ok() @@ -2211,13 +1898,6 @@ impl IWinInetFileStream { (::windows_core::Interface::vtable(self).SetDeleteFile)(::windows_core::Interface::as_raw(self), dwreserved).ok() } } -::windows_core::imp::interface_hierarchy!(IWinInetFileStream, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWinInetFileStream { - type Vtable = IWinInetFileStream_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWinInetFileStream { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf134c4b7_b1f8_4e75_b886_74b90943becb); -} #[repr(C)] #[doc(hidden)] pub struct IWinInetFileStream_Vtbl { @@ -2225,9 +1905,8 @@ pub struct IWinInetFileStream_Vtbl { pub SetHandleForUnlock: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwininetlockhandle: usize, dwreserved: usize) -> ::windows_core::HRESULT, pub SetDeleteFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwreserved: usize) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWinInetHttpInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWinInetHttpInfo, IWinInetHttpInfo_Vtbl, 0x79eac9d8_bafa_11ce_8c82_00aa004ba90b); +::windows_core::imp::interface_hierarchy!(IWinInetHttpInfo, ::windows_core::IUnknown, IWinInetInfo); impl IWinInetHttpInfo { pub unsafe fn QueryOption(&self, dwoption: u32, pbuffer: *mut ::core::ffi::c_void, pcbbuf: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.QueryOption)(::windows_core::Interface::as_raw(self), dwoption, pbuffer, pcbbuf).ok() @@ -2236,107 +1915,67 @@ impl IWinInetHttpInfo { (::windows_core::Interface::vtable(self).QueryInfo)(::windows_core::Interface::as_raw(self), dwoption, pbuffer, pcbbuf, pdwflags, pdwreserved).ok() } } -::windows_core::imp::interface_hierarchy!(IWinInetHttpInfo, ::windows_core::IUnknown, IWinInetInfo); -unsafe impl ::windows_core::Interface for IWinInetHttpInfo { - type Vtable = IWinInetHttpInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWinInetHttpInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x79eac9d8_bafa_11ce_8c82_00aa004ba90b); -} #[repr(C)] #[doc(hidden)] pub struct IWinInetHttpInfo_Vtbl { pub base__: IWinInetInfo_Vtbl, pub QueryInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwoption: u32, pbuffer: *mut ::core::ffi::c_void, pcbbuf: *mut u32, pdwflags: *mut u32, pdwreserved: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWinInetHttpTimeouts(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWinInetHttpTimeouts, IWinInetHttpTimeouts_Vtbl, 0xf286fa56_c1fd_4270_8e67_b3eb790a81e8); +::windows_core::imp::interface_hierarchy!(IWinInetHttpTimeouts, ::windows_core::IUnknown); impl IWinInetHttpTimeouts { pub unsafe fn GetRequestTimeouts(&self, pdwconnecttimeout: *mut u32, pdwsendtimeout: *mut u32, pdwreceivetimeout: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetRequestTimeouts)(::windows_core::Interface::as_raw(self), pdwconnecttimeout, pdwsendtimeout, pdwreceivetimeout).ok() } } -::windows_core::imp::interface_hierarchy!(IWinInetHttpTimeouts, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWinInetHttpTimeouts { - type Vtable = IWinInetHttpTimeouts_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWinInetHttpTimeouts { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf286fa56_c1fd_4270_8e67_b3eb790a81e8); -} #[repr(C)] #[doc(hidden)] pub struct IWinInetHttpTimeouts_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetRequestTimeouts: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwconnecttimeout: *mut u32, pdwsendtimeout: *mut u32, pdwreceivetimeout: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWinInetInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWinInetInfo, IWinInetInfo_Vtbl, 0x79eac9d6_bafa_11ce_8c82_00aa004ba90b); +::windows_core::imp::interface_hierarchy!(IWinInetInfo, ::windows_core::IUnknown); impl IWinInetInfo { pub unsafe fn QueryOption(&self, dwoption: u32, pbuffer: *mut ::core::ffi::c_void, pcbbuf: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).QueryOption)(::windows_core::Interface::as_raw(self), dwoption, pbuffer, pcbbuf).ok() } } -::windows_core::imp::interface_hierarchy!(IWinInetInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWinInetInfo { - type Vtable = IWinInetInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWinInetInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x79eac9d6_bafa_11ce_8c82_00aa004ba90b); -} #[repr(C)] #[doc(hidden)] pub struct IWinInetInfo_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub QueryOption: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwoption: u32, pbuffer: *mut ::core::ffi::c_void, pcbbuf: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWindowForBindingUI(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWindowForBindingUI, IWindowForBindingUI_Vtbl, 0x79eac9d5_bafa_11ce_8c82_00aa004ba90b); +::windows_core::imp::interface_hierarchy!(IWindowForBindingUI, ::windows_core::IUnknown); impl IWindowForBindingUI { pub unsafe fn GetWindow(&self, rguidreason: *const ::windows_core::GUID) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetWindow)(::windows_core::Interface::as_raw(self), rguidreason, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWindowForBindingUI, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWindowForBindingUI { - type Vtable = IWindowForBindingUI_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWindowForBindingUI { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x79eac9d5_bafa_11ce_8c82_00aa004ba90b); -} #[repr(C)] #[doc(hidden)] pub struct IWindowForBindingUI_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetWindow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rguidreason: *const ::windows_core::GUID, phwnd: *mut super::super::super::Foundation::HWND) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWrappedProtocol(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWrappedProtocol, IWrappedProtocol_Vtbl, 0x53c84785_8425_4dc5_971b_e58d9c19f9b6); +::windows_core::imp::interface_hierarchy!(IWrappedProtocol, ::windows_core::IUnknown); impl IWrappedProtocol { pub unsafe fn GetWrapperCode(&self, pncode: *mut i32, dwreserved: usize) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetWrapperCode)(::windows_core::Interface::as_raw(self), pncode, dwreserved).ok() } } -::windows_core::imp::interface_hierarchy!(IWrappedProtocol, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWrappedProtocol { - type Vtable = IWrappedProtocol_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWrappedProtocol { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x53c84785_8425_4dc5_971b_e58d9c19f9b6); -} #[repr(C)] #[doc(hidden)] pub struct IWrappedProtocol_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetWrapperCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pncode: *mut i32, dwreserved: usize) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IZoneIdentifier(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IZoneIdentifier, IZoneIdentifier_Vtbl, 0xcd45f185_1b21_48e2_967b_ead743a8914e); +::windows_core::imp::interface_hierarchy!(IZoneIdentifier, ::windows_core::IUnknown); impl IZoneIdentifier { pub unsafe fn GetId(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2349,13 +1988,6 @@ impl IZoneIdentifier { (::windows_core::Interface::vtable(self).Remove)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IZoneIdentifier, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IZoneIdentifier { - type Vtable = IZoneIdentifier_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IZoneIdentifier { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcd45f185_1b21_48e2_967b_ead743a8914e); -} #[repr(C)] #[doc(hidden)] pub struct IZoneIdentifier_Vtbl { @@ -2364,9 +1996,8 @@ pub struct IZoneIdentifier_Vtbl { pub SetId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwzone: u32) -> ::windows_core::HRESULT, pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IZoneIdentifier2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IZoneIdentifier2, IZoneIdentifier2_Vtbl, 0xeb5e760c_09ef_45c0_b510_70830ce31e6a); +::windows_core::imp::interface_hierarchy!(IZoneIdentifier2, ::windows_core::IUnknown, IZoneIdentifier); impl IZoneIdentifier2 { pub unsafe fn GetId(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2402,13 +2033,6 @@ impl IZoneIdentifier2 { (::windows_core::Interface::vtable(self).RemoveAppZoneId)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IZoneIdentifier2, ::windows_core::IUnknown, IZoneIdentifier); -unsafe impl ::windows_core::Interface for IZoneIdentifier2 { - type Vtable = IZoneIdentifier2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IZoneIdentifier2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeb5e760c_09ef_45c0_b510_70830ce31e6a); -} #[repr(C)] #[doc(hidden)] pub struct IZoneIdentifier2_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/System/Com/impl.rs b/crates/libs/windows/src/Windows/Win32/System/Com/impl.rs index f3bea97e66..48f358baed 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Com/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Com/impl.rs @@ -82,7 +82,7 @@ impl AsyncIAdviseSink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_System_Com_StructuredStorage\"`"] @@ -113,7 +113,7 @@ impl AsyncIAdviseSink2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait AsyncIMultiQI_Impl: Sized { @@ -140,7 +140,7 @@ impl AsyncIMultiQI_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait AsyncIPipeByte_Impl: Sized { @@ -181,7 +181,7 @@ impl AsyncIPipeByte_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait AsyncIPipeDouble_Impl: Sized { @@ -222,7 +222,7 @@ impl AsyncIPipeDouble_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait AsyncIPipeLong_Impl: Sized { @@ -263,7 +263,7 @@ impl AsyncIPipeLong_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait AsyncIUnknown_Impl: Sized { @@ -318,7 +318,7 @@ impl AsyncIUnknown_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IActivationFilter_Impl: Sized { @@ -341,7 +341,7 @@ impl IActivationFilter_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), HandleActivation: HandleActivation:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAddrExclusionControl_Impl: Sized { @@ -368,7 +368,7 @@ impl IAddrExclusionControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAddrTrackingControl_Impl: Sized { @@ -395,7 +395,7 @@ impl IAddrTrackingControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_System_Com_StructuredStorage\"`"] @@ -447,7 +447,7 @@ impl IAdviseSink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_System_Com_StructuredStorage\"`"] @@ -468,7 +468,7 @@ impl IAdviseSink2_Vtbl { Self { base__: IAdviseSink_Vtbl::new::(), OnLinkSrcChange: OnLinkSrcChange:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IAgileObject_Impl: Sized {} @@ -478,7 +478,7 @@ impl IAgileObject_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAsyncManager_Impl: Sized { @@ -518,7 +518,7 @@ impl IAsyncManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAsyncRpcChannelBuffer_Impl: Sized + IRpcChannelBuffer2_Impl { @@ -552,7 +552,7 @@ impl IAsyncRpcChannelBuffer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IAuthenticate_Impl: Sized { @@ -569,7 +569,7 @@ impl IAuthenticate_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Authenticate: Authenticate:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAuthenticateEx_Impl: Sized + IAuthenticate_Impl { @@ -586,7 +586,7 @@ impl IAuthenticateEx_Vtbl { Self { base__: IAuthenticate_Vtbl::new::(), AuthenticateEx: AuthenticateEx:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IBindCtx_Impl: Sized { @@ -687,7 +687,7 @@ impl IBindCtx_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IBindHost_Impl: Sized { @@ -721,7 +721,7 @@ impl IBindHost_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_Security\"`, `\"Win32_System_Com_StructuredStorage\"`"] @@ -800,7 +800,7 @@ impl IBindStatusCallback_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_Security\"`, `\"Win32_System_Com_StructuredStorage\"`"] @@ -821,7 +821,7 @@ impl IBindStatusCallbackEx_Vtbl { Self { base__: IBindStatusCallback_Vtbl::new::(), GetBindInfoEx: GetBindInfoEx:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IBinding_Impl: Sized { @@ -882,7 +882,7 @@ impl IBinding_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IBlockingLock_Impl: Sized { @@ -905,7 +905,7 @@ impl IBlockingLock_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Lock: Lock::, Unlock: Unlock:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICallFactory_Impl: Sized { @@ -928,7 +928,7 @@ impl ICallFactory_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CreateCall: CreateCall:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICancelMethodCalls_Impl: Sized { @@ -955,7 +955,7 @@ impl ICancelMethodCalls_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICatInformation_Impl: Sized { @@ -1040,7 +1040,7 @@ impl ICatInformation_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICatRegister_Impl: Sized { @@ -1095,7 +1095,7 @@ impl ICatRegister_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IChannelHook_Impl: Sized { @@ -1150,7 +1150,7 @@ impl IChannelHook_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IClassActivator_Impl: Sized { @@ -1167,7 +1167,7 @@ impl IClassActivator_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetClassObject: GetClassObject:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IClassFactory_Impl: Sized { @@ -1194,7 +1194,7 @@ impl IClassFactory_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IClientSecurity_Impl: Sized { @@ -1234,7 +1234,7 @@ impl IClientSecurity_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IComThreadingInfo_Impl: Sized { @@ -1293,7 +1293,7 @@ impl IComThreadingInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IConnectionPoint_Impl: Sized { @@ -1365,7 +1365,7 @@ impl IConnectionPoint_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IConnectionPointContainer_Impl: Sized { @@ -1404,7 +1404,7 @@ impl IConnectionPointContainer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IContext_Impl: Sized { @@ -1451,7 +1451,7 @@ impl IContext_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IContextCallback_Impl: Sized { @@ -1468,7 +1468,7 @@ impl IContextCallback_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), ContextCallback: ContextCallback:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDataAdviseHolder_Impl: Sized { @@ -1521,7 +1521,7 @@ impl IDataAdviseHolder_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_System_Com_StructuredStorage\"`"] @@ -1625,7 +1625,7 @@ impl IDataObject_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1682,7 +1682,7 @@ impl IDispatch_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumCATEGORYINFO_Impl: Sized { @@ -1729,7 +1729,7 @@ impl IEnumCATEGORYINFO_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumConnectionPoints_Impl: Sized { @@ -1776,7 +1776,7 @@ impl IEnumConnectionPoints_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumConnections_Impl: Sized { @@ -1823,7 +1823,7 @@ impl IEnumConnections_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumContextProps_Impl: Sized { @@ -1883,7 +1883,7 @@ impl IEnumContextProps_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumFORMATETC_Impl: Sized { @@ -1930,7 +1930,7 @@ impl IEnumFORMATETC_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumGUID_Impl: Sized { @@ -1977,7 +1977,7 @@ impl IEnumGUID_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumMoniker_Impl: Sized { @@ -2024,7 +2024,7 @@ impl IEnumMoniker_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumSTATDATA_Impl: Sized { @@ -2071,7 +2071,7 @@ impl IEnumSTATDATA_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumString_Impl: Sized { @@ -2118,7 +2118,7 @@ impl IEnumString_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumUnknown_Impl: Sized { @@ -2165,7 +2165,7 @@ impl IEnumUnknown_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IErrorInfo_Impl: Sized { @@ -2243,7 +2243,7 @@ impl IErrorInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IErrorLog_Impl: Sized { @@ -2260,7 +2260,7 @@ impl IErrorLog_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), AddError: AddError:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IExternalConnection_Impl: Sized { @@ -2287,7 +2287,7 @@ impl IExternalConnection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IFastRundown_Impl: Sized {} @@ -2297,7 +2297,7 @@ impl IFastRundown_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IForegroundTransfer_Impl: Sized { @@ -2314,7 +2314,7 @@ impl IForegroundTransfer_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), AllowForegroundTransfer: AllowForegroundTransfer:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IGlobalInterfaceTable_Impl: Sized { @@ -2354,7 +2354,7 @@ impl IGlobalInterfaceTable_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IGlobalOptions_Impl: Sized { @@ -2383,7 +2383,7 @@ impl IGlobalOptions_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Set: Set::, Query: Query:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IInitializeSpy_Impl: Sized { @@ -2424,7 +2424,7 @@ impl IInitializeSpy_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IInternalUnknown_Impl: Sized { @@ -2441,7 +2441,7 @@ impl IInternalUnknown_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), QueryInternalInterface: QueryInternalInterface:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMachineGlobalObjectTable_Impl: Sized { @@ -2481,7 +2481,7 @@ impl IMachineGlobalObjectTable_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMalloc_Impl: Sized { @@ -2536,7 +2536,7 @@ impl IMalloc_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMallocSpy_Impl: Sized { @@ -2633,7 +2633,7 @@ impl IMallocSpy_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMoniker_Impl: Sized + IPersistStream_Impl { @@ -2805,7 +2805,7 @@ impl IMoniker_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IMultiQI_Impl: Sized { @@ -2822,7 +2822,7 @@ impl IMultiQI_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), QueryMultipleInterfaces: QueryMultipleInterfaces:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait INoMarshal_Impl: Sized {} @@ -2832,7 +2832,7 @@ impl INoMarshal_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IOplockStorage_Impl: Sized { @@ -2859,7 +2859,7 @@ impl IOplockStorage_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPSFactoryBuffer_Impl: Sized { @@ -2892,7 +2892,7 @@ impl IPSFactoryBuffer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPersist_Impl: Sized { @@ -2915,7 +2915,7 @@ impl IPersist_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetClassID: GetClassID:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPersistFile_Impl: Sized + IPersist_Impl { @@ -2969,7 +2969,7 @@ impl IPersistFile_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IPersistMemory_Impl: Sized + IPersist_Impl { @@ -3023,7 +3023,7 @@ impl IPersistMemory_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IPersistStream_Impl: Sized + IPersist_Impl { @@ -3070,7 +3070,7 @@ impl IPersistStream_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IPersistStreamInit_Impl: Sized + IPersist_Impl { @@ -3124,7 +3124,7 @@ impl IPersistStreamInit_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IPipeByte_Impl: Sized { @@ -3147,7 +3147,7 @@ impl IPipeByte_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Pull: Pull::, Push: Push:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPipeDouble_Impl: Sized { @@ -3170,7 +3170,7 @@ impl IPipeDouble_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Pull: Pull::, Push: Push:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPipeLong_Impl: Sized { @@ -3193,7 +3193,7 @@ impl IPipeLong_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Pull: Pull::, Push: Push:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IProcessInitControl_Impl: Sized { @@ -3210,7 +3210,7 @@ impl IProcessInitControl_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), ResetInitializerTimeout: ResetInitializerTimeout:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IProcessLock_Impl: Sized { @@ -3237,7 +3237,7 @@ impl IProcessLock_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IProgressNotify_Impl: Sized { @@ -3254,7 +3254,7 @@ impl IProgressNotify_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnProgress: OnProgress:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IROTData_Impl: Sized { @@ -3271,7 +3271,7 @@ impl IROTData_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetComparisonData: GetComparisonData:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IReleaseMarshalBuffers_Impl: Sized { @@ -3288,7 +3288,7 @@ impl IReleaseMarshalBuffers_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), ReleaseMarshalBuffer: ReleaseMarshalBuffer:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRpcChannelBuffer_Impl: Sized { @@ -3336,7 +3336,7 @@ impl IRpcChannelBuffer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRpcChannelBuffer2_Impl: Sized + IRpcChannelBuffer_Impl { @@ -3359,7 +3359,7 @@ impl IRpcChannelBuffer2_Vtbl { Self { base__: IRpcChannelBuffer_Vtbl::new::(), GetProtocolVersion: GetProtocolVersion:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IRpcChannelBuffer3_Impl: Sized + IRpcChannelBuffer2_Impl { @@ -3427,7 +3427,7 @@ impl IRpcChannelBuffer3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IRpcHelper_Impl: Sized { @@ -3466,7 +3466,7 @@ impl IRpcHelper_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRpcOptions_Impl: Sized { @@ -3495,7 +3495,7 @@ impl IRpcOptions_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Set: Set::, Query: Query:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRpcProxyBuffer_Impl: Sized { @@ -3522,7 +3522,7 @@ impl IRpcProxyBuffer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRpcStubBuffer_Impl: Sized { @@ -3584,7 +3584,7 @@ impl IRpcStubBuffer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRpcSyntaxNegotiate_Impl: Sized { @@ -3601,7 +3601,7 @@ impl IRpcSyntaxNegotiate_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), NegotiateSyntax: NegotiateSyntax:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRunnableObject_Impl: Sized { @@ -3655,7 +3655,7 @@ impl IRunnableObject_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRunningObjectTable_Impl: Sized { @@ -3741,7 +3741,7 @@ impl IRunningObjectTable_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISequentialStream_Impl: Sized { @@ -3764,7 +3764,7 @@ impl ISequentialStream_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Read: Read::, Write: Write:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IServerSecurity_Impl: Sized { @@ -3805,7 +3805,7 @@ impl IServerSecurity_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IServiceProvider_Impl: Sized { @@ -3822,7 +3822,7 @@ impl IServiceProvider_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), QueryService: QueryService:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IStdMarshalInfo_Impl: Sized { @@ -3845,7 +3845,7 @@ impl IStdMarshalInfo_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetClassForHandler: GetClassForHandler:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IStream_Impl: Sized + ISequentialStream_Impl { @@ -3927,7 +3927,7 @@ impl IStream_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ISupportAllowLowerTrustActivation_Impl: Sized {} @@ -3937,7 +3937,7 @@ impl ISupportAllowLowerTrustActivation_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISupportErrorInfo_Impl: Sized { @@ -3957,7 +3957,7 @@ impl ISupportErrorInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISurrogate_Impl: Sized { @@ -3984,7 +3984,7 @@ impl ISurrogate_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISurrogateService_Impl: Sized { @@ -4038,7 +4038,7 @@ impl ISurrogateService_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISynchronize_Impl: Sized { @@ -4072,7 +4072,7 @@ impl ISynchronize_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISynchronizeContainer_Impl: Sized { @@ -4105,7 +4105,7 @@ impl ISynchronizeContainer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISynchronizeEvent_Impl: Sized + ISynchronizeHandle_Impl { @@ -4122,7 +4122,7 @@ impl ISynchronizeEvent_Vtbl { Self { base__: ISynchronizeHandle_Vtbl::new::(), SetEventHandle: SetEventHandle:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ISynchronizeHandle_Impl: Sized { @@ -4145,7 +4145,7 @@ impl ISynchronizeHandle_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetHandle: GetHandle:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISynchronizeMutex_Impl: Sized + ISynchronize_Impl { @@ -4162,7 +4162,7 @@ impl ISynchronizeMutex_Vtbl { Self { base__: ISynchronize_Vtbl::new::(), ReleaseMutex: ReleaseMutex:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ITimeAndNoticeControl_Impl: Sized { @@ -4179,7 +4179,7 @@ impl ITimeAndNoticeControl_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), SuppressChanges: SuppressChanges:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4210,7 +4210,7 @@ impl ITypeComp_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4408,7 +4408,7 @@ impl ITypeInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4614,7 +4614,7 @@ impl ITypeInfo2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ITypeLib_Impl: Sized { @@ -4727,7 +4727,7 @@ impl ITypeLib_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4784,7 +4784,7 @@ impl ITypeLib2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ITypeLibRegistration_Impl: Sized { @@ -4901,7 +4901,7 @@ impl ITypeLibRegistration_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITypeLibRegistrationReader_Impl: Sized { @@ -4924,7 +4924,7 @@ impl ITypeLibRegistrationReader_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), EnumTypeLibRegistrations: EnumTypeLibRegistrations:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUri_Impl: Sized { @@ -5244,7 +5244,7 @@ impl IUri_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUriBuilder_Impl: Sized { @@ -5448,7 +5448,7 @@ impl IUriBuilder_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUrlMon_Impl: Sized { @@ -5465,7 +5465,7 @@ impl IUrlMon_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), AsyncGetClassBits: AsyncGetClassBits:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWaitMultiple_Impl: Sized { @@ -5498,6 +5498,6 @@ impl IWaitMultiple_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 fcc10fd6b4..49acc7d6b4 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Com/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Com/mod.rs @@ -23,7 +23,7 @@ pub mod Urlmon; pub unsafe fn BindMoniker(pmk: P0, grfopt: u32) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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(); @@ -112,7 +112,7 @@ pub unsafe fn CoCreateGuid() -> ::windows_core::Result<::windows_core::GUID> { pub unsafe fn CoCreateInstance(rclsid: *const ::windows_core::GUID, punkouter: P0, dwclscontext: CLSCTX) -> ::windows_core::Result where P0: ::windows_core::IntoParam<::windows_core::IUnknown>, - T: ::windows_core::ComInterface, + 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(); @@ -212,7 +212,7 @@ pub unsafe fn CoGetApartmentType(papttype: *mut APTTYPE, paptqualifier: *mut APT #[inline] pub unsafe fn CoGetCallContext() -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { ::windows_targets::link!("ole32.dll" "system" fn CoGetCallContext(riid : *const ::windows_core::GUID, ppinterface : *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT); let mut result__ = ::std::ptr::null_mut(); @@ -227,7 +227,7 @@ pub unsafe fn CoGetCallerTID() -> ::windows_core::Result { #[inline] pub unsafe fn CoGetCancelObject(dwthreadid: u32) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { ::windows_targets::link!("ole32.dll" "system" fn CoGetCancelObject(dwthreadid : u32, iid : *const ::windows_core::GUID, ppunk : *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT); let mut result__ = ::std::ptr::null_mut(); @@ -236,7 +236,7 @@ where #[inline] pub unsafe fn CoGetClassObject(rclsid: *const ::windows_core::GUID, dwclscontext: CLSCTX, pvreserved: ::core::option::Option<*const ::core::ffi::c_void>) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { ::windows_targets::link!("ole32.dll" "system" fn CoGetClassObject(rclsid : *const ::windows_core::GUID, dwclscontext : u32, pvreserved : *const ::core::ffi::c_void, riid : *const ::windows_core::GUID, ppv : *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT); let mut result__ = ::std::ptr::null_mut(); @@ -269,7 +269,7 @@ pub unsafe fn CoGetMalloc(dwmemcontext: u32) -> ::windows_core::Result pub unsafe fn CoGetObject(pszname: P0, pbindoptions: ::core::option::Option<*const BIND_OPTS>) -> ::windows_core::Result where P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, - T: ::windows_core::ComInterface, + 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(); @@ -278,7 +278,7 @@ where #[inline] pub unsafe fn CoGetObjectContext() -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { ::windows_targets::link!("ole32.dll" "system" fn CoGetObjectContext(riid : *const ::windows_core::GUID, ppv : *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT); let mut result__ = ::std::ptr::null_mut(); @@ -623,7 +623,7 @@ pub unsafe fn CreateDataAdviseHolder() -> ::windows_core::Result(punkouter: P0, rclsid: *const ::windows_core::GUID) -> ::windows_core::Result where P0: ::windows_core::IntoParam<::windows_core::IUnknown>, - T: ::windows_core::ComInterface, + 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(); @@ -819,9 +819,8 @@ pub unsafe fn StringFromIID(rclsid: *const ::windows_core::GUID) -> ::windows_co let mut result__ = ::std::mem::zeroed(); StringFromIID(rclsid, &mut result__).from_abi(result__) } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct AsyncIAdviseSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(AsyncIAdviseSink, AsyncIAdviseSink_Vtbl, 0x00000150_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(AsyncIAdviseSink, ::windows_core::IUnknown); impl AsyncIAdviseSink { #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_System_Com_StructuredStorage\"`"] #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com_StructuredStorage"))] @@ -859,13 +858,6 @@ impl AsyncIAdviseSink { (::windows_core::Interface::vtable(self).Finish_OnClose)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(AsyncIAdviseSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for AsyncIAdviseSink { - type Vtable = AsyncIAdviseSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AsyncIAdviseSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00000150_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct AsyncIAdviseSink_Vtbl { @@ -884,9 +876,8 @@ pub struct AsyncIAdviseSink_Vtbl { pub Begin_OnClose: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), pub Finish_OnClose: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct AsyncIAdviseSink2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(AsyncIAdviseSink2, AsyncIAdviseSink2_Vtbl, 0x00000151_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(AsyncIAdviseSink2, ::windows_core::IUnknown, AsyncIAdviseSink); impl AsyncIAdviseSink2 { #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_System_Com_StructuredStorage\"`"] #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com_StructuredStorage"))] @@ -933,13 +924,6 @@ impl AsyncIAdviseSink2 { (::windows_core::Interface::vtable(self).Finish_OnLinkSrcChange)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(AsyncIAdviseSink2, ::windows_core::IUnknown, AsyncIAdviseSink); -unsafe impl ::windows_core::Interface for AsyncIAdviseSink2 { - type Vtable = AsyncIAdviseSink2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AsyncIAdviseSink2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00000151_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct AsyncIAdviseSink2_Vtbl { @@ -947,9 +931,8 @@ pub struct AsyncIAdviseSink2_Vtbl { pub Begin_OnLinkSrcChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pmk: *mut ::core::ffi::c_void), pub Finish_OnLinkSrcChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct AsyncIMultiQI(::windows_core::IUnknown); +::windows_core::imp::com_interface!(AsyncIMultiQI, AsyncIMultiQI_Vtbl, 0x000e0020_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(AsyncIMultiQI, ::windows_core::IUnknown); impl AsyncIMultiQI { pub unsafe fn Begin_QueryMultipleInterfaces(&self, pmqis: &mut [MULTI_QI]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Begin_QueryMultipleInterfaces)(::windows_core::Interface::as_raw(self), pmqis.len().try_into().unwrap(), ::core::mem::transmute(pmqis.as_ptr())).ok() @@ -958,13 +941,6 @@ impl AsyncIMultiQI { (::windows_core::Interface::vtable(self).Finish_QueryMultipleInterfaces)(::windows_core::Interface::as_raw(self), pmqis).ok() } } -::windows_core::imp::interface_hierarchy!(AsyncIMultiQI, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for AsyncIMultiQI { - type Vtable = AsyncIMultiQI_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AsyncIMultiQI { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x000e0020_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct AsyncIMultiQI_Vtbl { @@ -972,9 +948,8 @@ pub struct AsyncIMultiQI_Vtbl { pub Begin_QueryMultipleInterfaces: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cmqis: u32, pmqis: *mut MULTI_QI) -> ::windows_core::HRESULT, pub Finish_QueryMultipleInterfaces: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pmqis: *mut MULTI_QI) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct AsyncIPipeByte(::windows_core::IUnknown); +::windows_core::imp::com_interface!(AsyncIPipeByte, AsyncIPipeByte_Vtbl, 0xdb2f3acb_2f86_11d1_8e04_00c04fb9989a); +::windows_core::imp::interface_hierarchy!(AsyncIPipeByte, ::windows_core::IUnknown); impl AsyncIPipeByte { pub unsafe fn Begin_Pull(&self, crequest: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Begin_Pull)(::windows_core::Interface::as_raw(self), crequest).ok() @@ -989,13 +964,6 @@ impl AsyncIPipeByte { (::windows_core::Interface::vtable(self).Finish_Push)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(AsyncIPipeByte, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for AsyncIPipeByte { - type Vtable = AsyncIPipeByte_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AsyncIPipeByte { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdb2f3acb_2f86_11d1_8e04_00c04fb9989a); -} #[repr(C)] #[doc(hidden)] pub struct AsyncIPipeByte_Vtbl { @@ -1005,9 +973,8 @@ pub struct AsyncIPipeByte_Vtbl { pub Begin_Push: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, buf: *const u8, csent: u32) -> ::windows_core::HRESULT, pub Finish_Push: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct AsyncIPipeDouble(::windows_core::IUnknown); +::windows_core::imp::com_interface!(AsyncIPipeDouble, AsyncIPipeDouble_Vtbl, 0xdb2f3acf_2f86_11d1_8e04_00c04fb9989a); +::windows_core::imp::interface_hierarchy!(AsyncIPipeDouble, ::windows_core::IUnknown); impl AsyncIPipeDouble { pub unsafe fn Begin_Pull(&self, crequest: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Begin_Pull)(::windows_core::Interface::as_raw(self), crequest).ok() @@ -1022,13 +989,6 @@ impl AsyncIPipeDouble { (::windows_core::Interface::vtable(self).Finish_Push)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(AsyncIPipeDouble, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for AsyncIPipeDouble { - type Vtable = AsyncIPipeDouble_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AsyncIPipeDouble { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdb2f3acf_2f86_11d1_8e04_00c04fb9989a); -} #[repr(C)] #[doc(hidden)] pub struct AsyncIPipeDouble_Vtbl { @@ -1038,9 +998,8 @@ pub struct AsyncIPipeDouble_Vtbl { pub Begin_Push: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, buf: *const f64, csent: u32) -> ::windows_core::HRESULT, pub Finish_Push: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct AsyncIPipeLong(::windows_core::IUnknown); +::windows_core::imp::com_interface!(AsyncIPipeLong, AsyncIPipeLong_Vtbl, 0xdb2f3acd_2f86_11d1_8e04_00c04fb9989a); +::windows_core::imp::interface_hierarchy!(AsyncIPipeLong, ::windows_core::IUnknown); impl AsyncIPipeLong { pub unsafe fn Begin_Pull(&self, crequest: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Begin_Pull)(::windows_core::Interface::as_raw(self), crequest).ok() @@ -1055,13 +1014,6 @@ impl AsyncIPipeLong { (::windows_core::Interface::vtable(self).Finish_Push)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(AsyncIPipeLong, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for AsyncIPipeLong { - type Vtable = AsyncIPipeLong_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AsyncIPipeLong { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdb2f3acd_2f86_11d1_8e04_00c04fb9989a); -} #[repr(C)] #[doc(hidden)] pub struct AsyncIPipeLong_Vtbl { @@ -1071,9 +1023,8 @@ pub struct AsyncIPipeLong_Vtbl { pub Begin_Push: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, buf: *const i32, csent: u32) -> ::windows_core::HRESULT, pub Finish_Push: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct AsyncIUnknown(::windows_core::IUnknown); +::windows_core::imp::com_interface!(AsyncIUnknown, AsyncIUnknown_Vtbl, 0x000e0000_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(AsyncIUnknown, ::windows_core::IUnknown); impl AsyncIUnknown { pub unsafe fn Begin_QueryInterface(&self, riid: *const ::windows_core::GUID) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Begin_QueryInterface)(::windows_core::Interface::as_raw(self), riid).ok() @@ -1094,13 +1045,6 @@ impl AsyncIUnknown { (::windows_core::Interface::vtable(self).Finish_Release)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(AsyncIUnknown, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for AsyncIUnknown { - type Vtable = AsyncIUnknown_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AsyncIUnknown { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x000e0000_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct AsyncIUnknown_Vtbl { @@ -1112,31 +1056,22 @@ pub struct AsyncIUnknown_Vtbl { pub Begin_Release: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Finish_Release: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> u32, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActivationFilter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IActivationFilter, IActivationFilter_Vtbl, 0x00000017_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IActivationFilter, ::windows_core::IUnknown); impl IActivationFilter { pub unsafe fn HandleActivation(&self, dwactivationtype: u32, rclsid: *const ::windows_core::GUID) -> ::windows_core::Result<::windows_core::GUID> { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).HandleActivation)(::windows_core::Interface::as_raw(self), dwactivationtype, rclsid, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IActivationFilter, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IActivationFilter { - type Vtable = IActivationFilter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActivationFilter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00000017_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IActivationFilter_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub HandleActivation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwactivationtype: u32, rclsid: *const ::windows_core::GUID, preplacementclsid: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAddrExclusionControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAddrExclusionControl, IAddrExclusionControl_Vtbl, 0x00000148_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IAddrExclusionControl, ::windows_core::IUnknown); impl IAddrExclusionControl { pub unsafe fn GetCurrentAddrExclusionList(&self, riid: *const ::windows_core::GUID, ppenumerator: *mut *mut ::core::ffi::c_void) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetCurrentAddrExclusionList)(::windows_core::Interface::as_raw(self), riid, ppenumerator).ok() @@ -1148,13 +1083,6 @@ impl IAddrExclusionControl { (::windows_core::Interface::vtable(self).UpdateAddrExclusionList)(::windows_core::Interface::as_raw(self), penumerator.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IAddrExclusionControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAddrExclusionControl { - type Vtable = IAddrExclusionControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAddrExclusionControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00000148_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IAddrExclusionControl_Vtbl { @@ -1162,9 +1090,8 @@ pub struct IAddrExclusionControl_Vtbl { pub GetCurrentAddrExclusionList: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppenumerator: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub UpdateAddrExclusionList: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, penumerator: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAddrTrackingControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAddrTrackingControl, IAddrTrackingControl_Vtbl, 0x00000147_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IAddrTrackingControl, ::windows_core::IUnknown); impl IAddrTrackingControl { pub unsafe fn EnableCOMDynamicAddrTracking(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).EnableCOMDynamicAddrTracking)(::windows_core::Interface::as_raw(self)).ok() @@ -1173,13 +1100,6 @@ impl IAddrTrackingControl { (::windows_core::Interface::vtable(self).DisableCOMDynamicAddrTracking)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IAddrTrackingControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAddrTrackingControl { - type Vtable = IAddrTrackingControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAddrTrackingControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00000147_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IAddrTrackingControl_Vtbl { @@ -1187,9 +1107,8 @@ pub struct IAddrTrackingControl_Vtbl { pub EnableCOMDynamicAddrTracking: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub DisableCOMDynamicAddrTracking: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAdviseSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAdviseSink, IAdviseSink_Vtbl, 0x0000010f_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IAdviseSink, ::windows_core::IUnknown); impl IAdviseSink { #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_System_Com_StructuredStorage\"`"] #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com_StructuredStorage"))] @@ -1212,13 +1131,6 @@ impl IAdviseSink { (::windows_core::Interface::vtable(self).OnClose)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(IAdviseSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAdviseSink { - type Vtable = IAdviseSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAdviseSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0000010f_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IAdviseSink_Vtbl { @@ -1232,9 +1144,8 @@ pub struct IAdviseSink_Vtbl { pub OnSave: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), pub OnClose: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAdviseSink2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAdviseSink2, IAdviseSink2_Vtbl, 0x00000125_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IAdviseSink2, ::windows_core::IUnknown, IAdviseSink); impl IAdviseSink2 { #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_System_Com_StructuredStorage\"`"] #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com_StructuredStorage"))] @@ -1263,38 +1174,22 @@ impl IAdviseSink2 { (::windows_core::Interface::vtable(self).OnLinkSrcChange)(::windows_core::Interface::as_raw(self), pmk.into_param().abi()) } } -::windows_core::imp::interface_hierarchy!(IAdviseSink2, ::windows_core::IUnknown, IAdviseSink); -unsafe impl ::windows_core::Interface for IAdviseSink2 { - type Vtable = IAdviseSink2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAdviseSink2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00000125_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IAdviseSink2_Vtbl { pub base__: IAdviseSink_Vtbl, pub OnLinkSrcChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pmk: *mut ::core::ffi::c_void), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAgileObject(::windows_core::IUnknown); -impl IAgileObject {} +::windows_core::imp::com_interface!(IAgileObject, IAgileObject_Vtbl, 0x94ea2b94_e9cc_49e0_c0ff_ee64ca8f5b90); ::windows_core::imp::interface_hierarchy!(IAgileObject, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAgileObject { - type Vtable = IAgileObject_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAgileObject { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x94ea2b94_e9cc_49e0_c0ff_ee64ca8f5b90); -} +impl IAgileObject {} #[repr(C)] #[doc(hidden)] pub struct IAgileObject_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAsyncManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAsyncManager, IAsyncManager_Vtbl, 0x0000002a_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IAsyncManager, ::windows_core::IUnknown); impl IAsyncManager { pub unsafe fn CompleteCall(&self, result: ::windows_core::HRESULT) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).CompleteCall)(::windows_core::Interface::as_raw(self), result).ok() @@ -1307,13 +1202,6 @@ impl IAsyncManager { (::windows_core::Interface::vtable(self).GetState)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAsyncManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAsyncManager { - type Vtable = IAsyncManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAsyncManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0000002a_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IAsyncManager_Vtbl { @@ -1322,9 +1210,8 @@ pub struct IAsyncManager_Vtbl { pub GetCallContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, pinterface: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pulstateflags: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAsyncRpcChannelBuffer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAsyncRpcChannelBuffer, IAsyncRpcChannelBuffer_Vtbl, 0xa5029fb6_3c34_11d1_9c99_00c04fb998aa); +::windows_core::imp::interface_hierarchy!(IAsyncRpcChannelBuffer, ::windows_core::IUnknown, IRpcChannelBuffer, IRpcChannelBuffer2); impl IAsyncRpcChannelBuffer { pub unsafe fn GetBuffer(&self, pmessage: *mut RPCOLEMESSAGE, riid: *const ::windows_core::GUID) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.GetBuffer)(::windows_core::Interface::as_raw(self), pmessage, riid).ok() @@ -1358,13 +1245,6 @@ impl IAsyncRpcChannelBuffer { (::windows_core::Interface::vtable(self).GetDestCtxEx)(::windows_core::Interface::as_raw(self), pmsg, pdwdestcontext, ::core::mem::transmute(ppvdestcontext.unwrap_or(::std::ptr::null_mut()))).ok() } } -::windows_core::imp::interface_hierarchy!(IAsyncRpcChannelBuffer, ::windows_core::IUnknown, IRpcChannelBuffer, IRpcChannelBuffer2); -unsafe impl ::windows_core::Interface for IAsyncRpcChannelBuffer { - type Vtable = IAsyncRpcChannelBuffer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAsyncRpcChannelBuffer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa5029fb6_3c34_11d1_9c99_00c04fb998aa); -} #[repr(C)] #[doc(hidden)] pub struct IAsyncRpcChannelBuffer_Vtbl { @@ -1373,30 +1253,21 @@ pub struct IAsyncRpcChannelBuffer_Vtbl { pub Receive: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pmsg: *mut RPCOLEMESSAGE, pulstatus: *mut u32) -> ::windows_core::HRESULT, pub GetDestCtxEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pmsg: *const RPCOLEMESSAGE, pdwdestcontext: *mut u32, ppvdestcontext: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAuthenticate(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAuthenticate, IAuthenticate_Vtbl, 0x79eac9d0_baf9_11ce_8c82_00aa004ba90b); +::windows_core::imp::interface_hierarchy!(IAuthenticate, ::windows_core::IUnknown); impl IAuthenticate { pub unsafe fn Authenticate(&self, phwnd: *mut super::super::Foundation::HWND, pszusername: *mut ::windows_core::PWSTR, pszpassword: *mut ::windows_core::PWSTR) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Authenticate)(::windows_core::Interface::as_raw(self), phwnd, pszusername, pszpassword).ok() } } -::windows_core::imp::interface_hierarchy!(IAuthenticate, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAuthenticate { - type Vtable = IAuthenticate_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAuthenticate { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x79eac9d0_baf9_11ce_8c82_00aa004ba90b); -} #[repr(C)] #[doc(hidden)] pub struct IAuthenticate_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Authenticate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phwnd: *mut super::super::Foundation::HWND, pszusername: *mut ::windows_core::PWSTR, pszpassword: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAuthenticateEx(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAuthenticateEx, IAuthenticateEx_Vtbl, 0x2ad1edaf_d83d_48b5_9adf_03dbe19f53bd); +::windows_core::imp::interface_hierarchy!(IAuthenticateEx, ::windows_core::IUnknown, IAuthenticate); impl IAuthenticateEx { pub unsafe fn Authenticate(&self, phwnd: *mut super::super::Foundation::HWND, pszusername: *mut ::windows_core::PWSTR, pszpassword: *mut ::windows_core::PWSTR) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.Authenticate)(::windows_core::Interface::as_raw(self), phwnd, pszusername, pszpassword).ok() @@ -1405,22 +1276,14 @@ impl IAuthenticateEx { (::windows_core::Interface::vtable(self).AuthenticateEx)(::windows_core::Interface::as_raw(self), phwnd, pszusername, pszpassword, pauthinfo).ok() } } -::windows_core::imp::interface_hierarchy!(IAuthenticateEx, ::windows_core::IUnknown, IAuthenticate); -unsafe impl ::windows_core::Interface for IAuthenticateEx { - type Vtable = IAuthenticateEx_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAuthenticateEx { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2ad1edaf_d83d_48b5_9adf_03dbe19f53bd); -} #[repr(C)] #[doc(hidden)] pub struct IAuthenticateEx_Vtbl { pub base__: IAuthenticate_Vtbl, pub AuthenticateEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phwnd: *mut super::super::Foundation::HWND, pszusername: *mut ::windows_core::PWSTR, pszpassword: *mut ::windows_core::PWSTR, pauthinfo: *const AUTHENTICATEINFO) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBindCtx(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBindCtx, IBindCtx_Vtbl, 0x0000000e_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IBindCtx, ::windows_core::IUnknown); impl IBindCtx { pub unsafe fn RegisterObjectBound(&self, punk: P0) -> ::windows_core::Result<()> where @@ -1472,13 +1335,6 @@ impl IBindCtx { (::windows_core::Interface::vtable(self).RevokeObjectParam)(::windows_core::Interface::as_raw(self), pszkey.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IBindCtx, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBindCtx { - type Vtable = IBindCtx_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBindCtx { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0000000e_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IBindCtx_Vtbl { @@ -1494,9 +1350,8 @@ pub struct IBindCtx_Vtbl { pub EnumObjectParam: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RevokeObjectParam: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszkey: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBindHost(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBindHost, IBindHost_Vtbl, 0xfc4801a1_2ba9_11cf_a229_00aa003d7352); +::windows_core::imp::interface_hierarchy!(IBindHost, ::windows_core::IUnknown); impl IBindHost { pub unsafe fn CreateMoniker(&self, szname: P0, pbc: P1, ppmk: *mut ::core::option::Option, dwreserved: u32) -> ::windows_core::Result<()> where @@ -1522,13 +1377,6 @@ impl IBindHost { (::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::imp::interface_hierarchy!(IBindHost, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBindHost { - type Vtable = IBindHost_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBindHost { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfc4801a1_2ba9_11cf_a229_00aa003d7352); -} #[repr(C)] #[doc(hidden)] pub struct IBindHost_Vtbl { @@ -1537,9 +1385,8 @@ pub struct IBindHost_Vtbl { pub MonikerBindToStorage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pmk: *mut ::core::ffi::c_void, pbc: *mut ::core::ffi::c_void, pbsc: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppvobj: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub MonikerBindToObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pmk: *mut ::core::ffi::c_void, pbc: *mut ::core::ffi::c_void, pbsc: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppvobj: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBindStatusCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBindStatusCallback, IBindStatusCallback_Vtbl, 0x79eac9c1_baf9_11ce_8c82_00aa004ba90b); +::windows_core::imp::interface_hierarchy!(IBindStatusCallback, ::windows_core::IUnknown); impl IBindStatusCallback { pub unsafe fn OnStartBinding(&self, dwreserved: u32, pib: P0) -> ::windows_core::Result<()> where @@ -1583,13 +1430,6 @@ impl IBindStatusCallback { (::windows_core::Interface::vtable(self).OnObjectAvailable)(::windows_core::Interface::as_raw(self), riid, punk.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IBindStatusCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBindStatusCallback { - type Vtable = IBindStatusCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBindStatusCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x79eac9c1_baf9_11ce_8c82_00aa004ba90b); -} #[repr(C)] #[doc(hidden)] pub struct IBindStatusCallback_Vtbl { @@ -1609,9 +1449,8 @@ pub struct IBindStatusCallback_Vtbl { OnDataAvailable: usize, pub OnObjectAvailable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, punk: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBindStatusCallbackEx(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBindStatusCallbackEx, IBindStatusCallbackEx_Vtbl, 0xaaa74ef9_8ee7_4659_88d9_f8c504da73cc); +::windows_core::imp::interface_hierarchy!(IBindStatusCallbackEx, ::windows_core::IUnknown, IBindStatusCallback); impl IBindStatusCallbackEx { pub unsafe fn OnStartBinding(&self, dwreserved: u32, pib: P0) -> ::windows_core::Result<()> where @@ -1660,13 +1499,6 @@ impl IBindStatusCallbackEx { (::windows_core::Interface::vtable(self).GetBindInfoEx)(::windows_core::Interface::as_raw(self), grfbindf, pbindinfo, grfbindf2, pdwreserved).ok() } } -::windows_core::imp::interface_hierarchy!(IBindStatusCallbackEx, ::windows_core::IUnknown, IBindStatusCallback); -unsafe impl ::windows_core::Interface for IBindStatusCallbackEx { - type Vtable = IBindStatusCallbackEx_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBindStatusCallbackEx { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaaa74ef9_8ee7_4659_88d9_f8c504da73cc); -} #[repr(C)] #[doc(hidden)] pub struct IBindStatusCallbackEx_Vtbl { @@ -1676,9 +1508,8 @@ pub struct IBindStatusCallbackEx_Vtbl { #[cfg(not(all(feature = "Win32_Graphics_Gdi", feature = "Win32_Security", feature = "Win32_System_Com_StructuredStorage")))] GetBindInfoEx: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBinding(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBinding, IBinding_Vtbl, 0x79eac9c0_baf9_11ce_8c82_00aa004ba90b); +::windows_core::imp::interface_hierarchy!(IBinding, ::windows_core::IUnknown); impl IBinding { pub unsafe fn Abort(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Abort)(::windows_core::Interface::as_raw(self)).ok() @@ -1700,13 +1531,6 @@ impl IBinding { (::windows_core::Interface::vtable(self).GetBindResult)(::windows_core::Interface::as_raw(self), pclsidprotocol, pdwresult, pszresult, pdwreserved).ok() } } -::windows_core::imp::interface_hierarchy!(IBinding, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBinding { - type Vtable = IBinding_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBinding { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x79eac9c0_baf9_11ce_8c82_00aa004ba90b); -} #[repr(C)] #[doc(hidden)] pub struct IBinding_Vtbl { @@ -1718,9 +1542,8 @@ pub struct IBinding_Vtbl { pub GetPriority: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pnpriority: *mut i32) -> ::windows_core::HRESULT, pub GetBindResult: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pclsidprotocol: *mut ::windows_core::GUID, pdwresult: *mut u32, pszresult: *mut ::windows_core::PWSTR, pdwreserved: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBlockingLock(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBlockingLock, IBlockingLock_Vtbl, 0x30f3d47a_6447_11d1_8e3c_00c04fb9386d); +::windows_core::imp::interface_hierarchy!(IBlockingLock, ::windows_core::IUnknown); impl IBlockingLock { pub unsafe fn Lock(&self, dwtimeout: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Lock)(::windows_core::Interface::as_raw(self), dwtimeout).ok() @@ -1729,13 +1552,6 @@ impl IBlockingLock { (::windows_core::Interface::vtable(self).Unlock)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IBlockingLock, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBlockingLock { - type Vtable = IBlockingLock_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBlockingLock { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x30f3d47a_6447_11d1_8e3c_00c04fb9386d); -} #[repr(C)] #[doc(hidden)] pub struct IBlockingLock_Vtbl { @@ -1743,9 +1559,8 @@ pub struct IBlockingLock_Vtbl { pub Lock: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwtimeout: u32) -> ::windows_core::HRESULT, pub Unlock: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICallFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICallFactory, ICallFactory_Vtbl, 0x1c733a30_2a1c_11ce_ade5_00aa0044773d); +::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<::windows_core::IUnknown> where @@ -1755,22 +1570,14 @@ impl ICallFactory { (::windows_core::Interface::vtable(self).CreateCall)(::windows_core::Interface::as_raw(self), riid, pctrlunk.into_param().abi(), riid2, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ICallFactory, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICallFactory { - type Vtable = ICallFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICallFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1c733a30_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct ICallFactory_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub CreateCall: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, pctrlunk: *mut ::core::ffi::c_void, riid2: *const ::windows_core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICancelMethodCalls(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICancelMethodCalls, ICancelMethodCalls_Vtbl, 0x00000029_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(ICancelMethodCalls, ::windows_core::IUnknown); impl ICancelMethodCalls { pub unsafe fn Cancel(&self, ulseconds: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Cancel)(::windows_core::Interface::as_raw(self), ulseconds).ok() @@ -1779,13 +1586,6 @@ impl ICancelMethodCalls { (::windows_core::Interface::vtable(self).TestCancel)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ICancelMethodCalls, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICancelMethodCalls { - type Vtable = ICancelMethodCalls_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICancelMethodCalls { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00000029_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct ICancelMethodCalls_Vtbl { @@ -1793,9 +1593,8 @@ pub struct ICancelMethodCalls_Vtbl { pub Cancel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulseconds: u32) -> ::windows_core::HRESULT, pub TestCancel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICatInformation(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICatInformation, ICatInformation_Vtbl, 0x0002e013_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(ICatInformation, ::windows_core::IUnknown); impl ICatInformation { pub unsafe fn EnumCategories(&self, lcid: u32) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1821,13 +1620,6 @@ impl ICatInformation { (::windows_core::Interface::vtable(self).EnumReqCategoriesOfClass)(::windows_core::Interface::as_raw(self), rclsid, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ICatInformation, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICatInformation { - type Vtable = ICatInformation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICatInformation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0002e013_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct ICatInformation_Vtbl { @@ -1839,9 +1631,8 @@ pub struct ICatInformation_Vtbl { pub EnumImplCategoriesOfClass: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rclsid: *const ::windows_core::GUID, ppenumcatid: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub EnumReqCategoriesOfClass: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rclsid: *const ::windows_core::GUID, ppenumcatid: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICatRegister(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICatRegister, ICatRegister_Vtbl, 0x0002e012_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(ICatRegister, ::windows_core::IUnknown); impl ICatRegister { pub unsafe fn RegisterCategories(&self, rgcategoryinfo: &[CATEGORYINFO]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).RegisterCategories)(::windows_core::Interface::as_raw(self), rgcategoryinfo.len().try_into().unwrap(), ::core::mem::transmute(rgcategoryinfo.as_ptr())).ok() @@ -1862,13 +1653,6 @@ impl ICatRegister { (::windows_core::Interface::vtable(self).UnRegisterClassReqCategories)(::windows_core::Interface::as_raw(self), rclsid, rgcatid.len().try_into().unwrap(), ::core::mem::transmute(rgcatid.as_ptr())).ok() } } -::windows_core::imp::interface_hierarchy!(ICatRegister, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICatRegister { - type Vtable = ICatRegister_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICatRegister { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0002e012_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct ICatRegister_Vtbl { @@ -1880,9 +1664,8 @@ pub struct ICatRegister_Vtbl { pub RegisterClassReqCategories: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rclsid: *const ::windows_core::GUID, ccategories: u32, rgcatid: *const ::windows_core::GUID) -> ::windows_core::HRESULT, pub UnRegisterClassReqCategories: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rclsid: *const ::windows_core::GUID, ccategories: u32, rgcatid: *const ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IChannelHook(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IChannelHook, IChannelHook_Vtbl, 0x1008c4a0_7613_11cf_9af1_0020af6e72f4); +::windows_core::imp::interface_hierarchy!(IChannelHook, ::windows_core::IUnknown); impl IChannelHook { pub unsafe fn ClientGetSize(&self, uextent: *const ::windows_core::GUID, riid: *const ::windows_core::GUID) -> u32 { let mut result__ = ::std::mem::zeroed(); @@ -1907,13 +1690,6 @@ impl IChannelHook { (::windows_core::Interface::vtable(self).ServerFillBuffer)(::windows_core::Interface::as_raw(self), uextent, riid, pdatasize, pdatabuffer, hrfault) } } -::windows_core::imp::interface_hierarchy!(IChannelHook, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IChannelHook { - type Vtable = IChannelHook_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IChannelHook { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1008c4a0_7613_11cf_9af1_0020af6e72f4); -} #[repr(C)] #[doc(hidden)] pub struct IChannelHook_Vtbl { @@ -1925,39 +1701,30 @@ pub struct IChannelHook_Vtbl { pub ServerGetSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uextent: *const ::windows_core::GUID, riid: *const ::windows_core::GUID, hrfault: ::windows_core::HRESULT, pdatasize: *mut u32), pub ServerFillBuffer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uextent: *const ::windows_core::GUID, riid: *const ::windows_core::GUID, pdatasize: *mut u32, pdatabuffer: *const ::core::ffi::c_void, hrfault: ::windows_core::HRESULT), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IClassActivator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IClassActivator, IClassActivator_Vtbl, 0x00000140_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IClassActivator, ::windows_core::IUnknown); impl IClassActivator { pub unsafe fn GetClassObject(&self, rclsid: *const ::windows_core::GUID, dwclasscontext: u32, locale: u32) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetClassObject)(::windows_core::Interface::as_raw(self), rclsid, dwclasscontext, locale, &T::IID, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IClassActivator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IClassActivator { - type Vtable = IClassActivator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IClassActivator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00000140_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IClassActivator_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetClassObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rclsid: *const ::windows_core::GUID, dwclasscontext: u32, locale: u32, riid: *const ::windows_core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IClassFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IClassFactory, IClassFactory_Vtbl, 0x00000001_0000_0000_c000_000000000046); +::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<::windows_core::IUnknown>, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -1969,13 +1736,6 @@ impl IClassFactory { (::windows_core::Interface::vtable(self).LockServer)(::windows_core::Interface::as_raw(self), flock.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IClassFactory, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IClassFactory { - type Vtable = IClassFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IClassFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00000001_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IClassFactory_Vtbl { @@ -1983,9 +1743,8 @@ pub struct IClassFactory_Vtbl { pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punkouter: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppvobject: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub LockServer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flock: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IClientSecurity(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IClientSecurity, IClientSecurity_Vtbl, 0x0000013d_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IClientSecurity, ::windows_core::IUnknown); impl IClientSecurity { pub unsafe fn QueryBlanket(&self, pproxy: P0, pauthnsvc: *mut u32, pauthzsvc: ::core::option::Option<*mut u32>, pserverprincname: *mut *mut u16, pauthnlevel: ::core::option::Option<*mut RPC_C_AUTHN_LEVEL>, pimplevel: ::core::option::Option<*mut RPC_C_IMP_LEVEL>, pauthinfo: *mut *mut ::core::ffi::c_void, pcapabilites: EOLE_AUTHENTICATION_CAPABILITIES) -> ::windows_core::Result<()> where @@ -2008,13 +1767,6 @@ impl IClientSecurity { (::windows_core::Interface::vtable(self).CopyProxy)(::windows_core::Interface::as_raw(self), pproxy.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IClientSecurity, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IClientSecurity { - type Vtable = IClientSecurity_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IClientSecurity { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0000013d_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IClientSecurity_Vtbl { @@ -2023,9 +1775,8 @@ pub struct IClientSecurity_Vtbl { pub SetBlanket: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pproxy: *mut ::core::ffi::c_void, dwauthnsvc: u32, dwauthzsvc: u32, pserverprincname: ::windows_core::PCWSTR, dwauthnlevel: RPC_C_AUTHN_LEVEL, dwimplevel: RPC_C_IMP_LEVEL, pauthinfo: *const ::core::ffi::c_void, dwcapabilities: u32) -> ::windows_core::HRESULT, pub CopyProxy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pproxy: *mut ::core::ffi::c_void, ppcopy: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IComThreadingInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IComThreadingInfo, IComThreadingInfo_Vtbl, 0x000001ce_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IComThreadingInfo, ::windows_core::IUnknown); impl IComThreadingInfo { pub unsafe fn GetCurrentApartmentType(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2043,13 +1794,6 @@ impl IComThreadingInfo { (::windows_core::Interface::vtable(self).SetCurrentLogicalThreadId)(::windows_core::Interface::as_raw(self), rguid).ok() } } -::windows_core::imp::interface_hierarchy!(IComThreadingInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IComThreadingInfo { - type Vtable = IComThreadingInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IComThreadingInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x000001ce_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IComThreadingInfo_Vtbl { @@ -2059,9 +1803,8 @@ pub struct IComThreadingInfo_Vtbl { pub GetCurrentLogicalThreadId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pguidlogicalthreadid: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, pub SetCurrentLogicalThreadId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rguid: *const ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IConnectionPoint(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IConnectionPoint, IConnectionPoint_Vtbl, 0xb196b286_bab4_101a_b69c_00aa00341d07); +::windows_core::imp::interface_hierarchy!(IConnectionPoint, ::windows_core::IUnknown); impl IConnectionPoint { pub unsafe fn GetConnectionInterface(&self) -> ::windows_core::Result<::windows_core::GUID> { let mut result__ = ::std::mem::zeroed(); @@ -2086,13 +1829,6 @@ impl IConnectionPoint { (::windows_core::Interface::vtable(self).EnumConnections)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IConnectionPoint, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IConnectionPoint { - type Vtable = IConnectionPoint_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IConnectionPoint { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb196b286_bab4_101a_b69c_00aa00341d07); -} #[repr(C)] #[doc(hidden)] pub struct IConnectionPoint_Vtbl { @@ -2103,9 +1839,8 @@ pub struct IConnectionPoint_Vtbl { pub Unadvise: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwcookie: u32) -> ::windows_core::HRESULT, pub EnumConnections: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IConnectionPointContainer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IConnectionPointContainer, IConnectionPointContainer_Vtbl, 0xb196b284_bab4_101a_b69c_00aa00341d07); +::windows_core::imp::interface_hierarchy!(IConnectionPointContainer, ::windows_core::IUnknown); impl IConnectionPointContainer { pub unsafe fn EnumConnectionPoints(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2116,13 +1851,6 @@ impl IConnectionPointContainer { (::windows_core::Interface::vtable(self).FindConnectionPoint)(::windows_core::Interface::as_raw(self), riid, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IConnectionPointContainer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IConnectionPointContainer { - type Vtable = IConnectionPointContainer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IConnectionPointContainer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb196b284_bab4_101a_b69c_00aa00341d07); -} #[repr(C)] #[doc(hidden)] pub struct IConnectionPointContainer_Vtbl { @@ -2130,9 +1858,8 @@ pub struct IConnectionPointContainer_Vtbl { pub EnumConnectionPoints: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub FindConnectionPoint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppcp: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContext(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IContext, IContext_Vtbl, 0x000001c0_0000_0000_c000_000000000046); +::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 @@ -2151,13 +1878,6 @@ impl IContext { (::windows_core::Interface::vtable(self).EnumContextProps)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IContext, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContext { - type Vtable = IContext_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContext { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x000001c0_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IContext_Vtbl { @@ -2167,9 +1887,8 @@ pub struct IContext_Vtbl { pub GetProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rguid: *const ::windows_core::GUID, pflags: *mut u32, ppunk: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub EnumContextProps: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenumcontextprops: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContextCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IContextCallback, IContextCallback_Vtbl, 0x000001da_0000_0000_c000_000000000046); +::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 @@ -2178,22 +1897,14 @@ impl IContextCallback { (::windows_core::Interface::vtable(self).ContextCallback)(::windows_core::Interface::as_raw(self), pfncallback, pparam, riid, imethod, punk.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IContextCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContextCallback { - type Vtable = IContextCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContextCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x000001da_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IContextCallback_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub ContextCallback: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfncallback: PFNCONTEXTCALL, pparam: *const ComCallData, riid: *const ::windows_core::GUID, imethod: i32, punk: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataAdviseHolder(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDataAdviseHolder, IDataAdviseHolder_Vtbl, 0x00000110_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IDataAdviseHolder, ::windows_core::IUnknown); impl IDataAdviseHolder { pub unsafe fn Advise(&self, pdataobject: P0, pfetc: *const FORMATETC, advf: u32, padvise: P1) -> ::windows_core::Result where @@ -2217,13 +1928,6 @@ impl IDataAdviseHolder { (::windows_core::Interface::vtable(self).SendOnDataChange)(::windows_core::Interface::as_raw(self), pdataobject.into_param().abi(), dwreserved, advf).ok() } } -::windows_core::imp::interface_hierarchy!(IDataAdviseHolder, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDataAdviseHolder { - type Vtable = IDataAdviseHolder_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDataAdviseHolder { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00000110_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IDataAdviseHolder_Vtbl { @@ -2233,9 +1937,8 @@ pub struct IDataAdviseHolder_Vtbl { pub EnumAdvise: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenumadvise: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SendOnDataChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdataobject: *mut ::core::ffi::c_void, dwreserved: u32, advf: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataObject(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDataObject, IDataObject_Vtbl, 0x0000010e_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IDataObject, ::windows_core::IUnknown); impl IDataObject { #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_System_Com_StructuredStorage\"`"] #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com_StructuredStorage"))] @@ -2281,13 +1984,6 @@ impl IDataObject { (::windows_core::Interface::vtable(self).EnumDAdvise)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDataObject, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDataObject { - type Vtable = IDataObject_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDataObject { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0000010e_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IDataObject_Vtbl { @@ -2311,9 +2007,8 @@ pub struct IDataObject_Vtbl { pub DUnadvise: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwconnection: u32) -> ::windows_core::HRESULT, pub EnumDAdvise: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenumadvise: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDispatch(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDispatch, IDispatch_Vtbl, 0x00020400_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IDispatch, ::windows_core::IUnknown); impl IDispatch { pub unsafe fn GetTypeInfoCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2332,13 +2027,6 @@ impl IDispatch { (::windows_core::Interface::vtable(self).Invoke)(::windows_core::Interface::as_raw(self), dispidmember, riid, lcid, wflags, pdispparams, ::core::mem::transmute(pvarresult.unwrap_or(::std::ptr::null_mut())), ::core::mem::transmute(pexcepinfo.unwrap_or(::std::ptr::null_mut())), ::core::mem::transmute(puargerr.unwrap_or(::std::ptr::null_mut()))).ok() } } -::windows_core::imp::interface_hierarchy!(IDispatch, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDispatch { - type Vtable = IDispatch_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDispatch { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00020400_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IDispatch_Vtbl { @@ -2351,9 +2039,8 @@ pub struct IDispatch_Vtbl { #[cfg(not(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] Invoke: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumCATEGORYINFO(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumCATEGORYINFO, IEnumCATEGORYINFO_Vtbl, 0x0002e011_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IEnumCATEGORYINFO, ::windows_core::IUnknown); impl IEnumCATEGORYINFO { pub unsafe fn Next(&self, rgelt: &mut [CATEGORYINFO], pceltfetched: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), ::core::mem::transmute(rgelt.as_ptr()), pceltfetched).ok() @@ -2369,13 +2056,6 @@ impl IEnumCATEGORYINFO { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumCATEGORYINFO, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumCATEGORYINFO { - type Vtable = IEnumCATEGORYINFO_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumCATEGORYINFO { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0002e011_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IEnumCATEGORYINFO_Vtbl { @@ -2385,9 +2065,8 @@ pub struct IEnumCATEGORYINFO_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumConnectionPoints(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumConnectionPoints, IEnumConnectionPoints_Vtbl, 0xb196b285_bab4_101a_b69c_00aa00341d07); +::windows_core::imp::interface_hierarchy!(IEnumConnectionPoints, ::windows_core::IUnknown); impl IEnumConnectionPoints { pub unsafe fn Next(&self, ppcp: &mut [::core::option::Option], pcfetched: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), ppcp.len().try_into().unwrap(), ::core::mem::transmute(ppcp.as_ptr()), pcfetched).ok() @@ -2403,13 +2082,6 @@ impl IEnumConnectionPoints { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumConnectionPoints, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumConnectionPoints { - type Vtable = IEnumConnectionPoints_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumConnectionPoints { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb196b285_bab4_101a_b69c_00aa00341d07); -} #[repr(C)] #[doc(hidden)] pub struct IEnumConnectionPoints_Vtbl { @@ -2419,9 +2091,8 @@ pub struct IEnumConnectionPoints_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumConnections(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumConnections, IEnumConnections_Vtbl, 0xb196b287_bab4_101a_b69c_00aa00341d07); +::windows_core::imp::interface_hierarchy!(IEnumConnections, ::windows_core::IUnknown); impl IEnumConnections { pub unsafe fn Next(&self, rgcd: &mut [CONNECTDATA], pcfetched: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), rgcd.len().try_into().unwrap(), ::core::mem::transmute(rgcd.as_ptr()), pcfetched).ok() @@ -2437,13 +2108,6 @@ impl IEnumConnections { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumConnections, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumConnections { - type Vtable = IEnumConnections_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumConnections { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb196b287_bab4_101a_b69c_00aa00341d07); -} #[repr(C)] #[doc(hidden)] pub struct IEnumConnections_Vtbl { @@ -2453,9 +2117,8 @@ pub struct IEnumConnections_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumContextProps(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumContextProps, IEnumContextProps_Vtbl, 0x000001c1_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IEnumContextProps, ::windows_core::IUnknown); impl IEnumContextProps { pub unsafe fn Next(&self, pcontextproperties: &mut [ContextProperty], pceltfetched: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), pcontextproperties.len().try_into().unwrap(), ::core::mem::transmute(pcontextproperties.as_ptr()), pceltfetched).ok() @@ -2475,13 +2138,6 @@ impl IEnumContextProps { (::windows_core::Interface::vtable(self).Count)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumContextProps, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumContextProps { - type Vtable = IEnumContextProps_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumContextProps { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x000001c1_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IEnumContextProps_Vtbl { @@ -2492,9 +2148,8 @@ pub struct IEnumContextProps_Vtbl { pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenumcontextprops: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcelt: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumFORMATETC(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumFORMATETC, IEnumFORMATETC_Vtbl, 0x00000103_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IEnumFORMATETC, ::windows_core::IUnknown); impl IEnumFORMATETC { pub unsafe fn Next(&self, rgelt: &mut [FORMATETC], pceltfetched: ::core::option::Option<*mut u32>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), ::core::mem::transmute(rgelt.as_ptr()), ::core::mem::transmute(pceltfetched.unwrap_or(::std::ptr::null_mut()))).ok() @@ -2510,13 +2165,6 @@ impl IEnumFORMATETC { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumFORMATETC, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumFORMATETC { - type Vtable = IEnumFORMATETC_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumFORMATETC { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00000103_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IEnumFORMATETC_Vtbl { @@ -2526,9 +2174,8 @@ pub struct IEnumFORMATETC_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumGUID(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumGUID, IEnumGUID_Vtbl, 0x0002e000_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IEnumGUID, ::windows_core::IUnknown); impl IEnumGUID { pub unsafe fn Next(&self, rgelt: &mut [::windows_core::GUID], pceltfetched: ::core::option::Option<*mut u32>) -> ::windows_core::HRESULT { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), ::core::mem::transmute(rgelt.as_ptr()), ::core::mem::transmute(pceltfetched.unwrap_or(::std::ptr::null_mut()))) @@ -2544,13 +2191,6 @@ impl IEnumGUID { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumGUID, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumGUID { - type Vtable = IEnumGUID_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumGUID { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0002e000_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IEnumGUID_Vtbl { @@ -2560,9 +2200,8 @@ pub struct IEnumGUID_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumMoniker(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumMoniker, IEnumMoniker_Vtbl, 0x00000102_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IEnumMoniker, ::windows_core::IUnknown); impl IEnumMoniker { pub unsafe fn Next(&self, rgelt: &mut [::core::option::Option], pceltfetched: ::core::option::Option<*mut u32>) -> ::windows_core::HRESULT { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), ::core::mem::transmute(rgelt.as_ptr()), ::core::mem::transmute(pceltfetched.unwrap_or(::std::ptr::null_mut()))) @@ -2578,13 +2217,6 @@ impl IEnumMoniker { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumMoniker, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumMoniker { - type Vtable = IEnumMoniker_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumMoniker { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00000102_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IEnumMoniker_Vtbl { @@ -2594,9 +2226,8 @@ pub struct IEnumMoniker_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumSTATDATA(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumSTATDATA, IEnumSTATDATA_Vtbl, 0x00000105_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IEnumSTATDATA, ::windows_core::IUnknown); impl IEnumSTATDATA { pub unsafe fn Next(&self, rgelt: &mut [STATDATA], pceltfetched: ::core::option::Option<*mut u32>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), ::core::mem::transmute(rgelt.as_ptr()), ::core::mem::transmute(pceltfetched.unwrap_or(::std::ptr::null_mut()))).ok() @@ -2612,13 +2243,6 @@ impl IEnumSTATDATA { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumSTATDATA, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumSTATDATA { - type Vtable = IEnumSTATDATA_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumSTATDATA { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00000105_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IEnumSTATDATA_Vtbl { @@ -2628,9 +2252,8 @@ pub struct IEnumSTATDATA_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumString(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumString, IEnumString_Vtbl, 0x00000101_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IEnumString, ::windows_core::IUnknown); impl IEnumString { pub unsafe fn Next(&self, rgelt: &mut [::windows_core::PWSTR], pceltfetched: ::core::option::Option<*mut u32>) -> ::windows_core::HRESULT { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), ::core::mem::transmute(rgelt.as_ptr()), ::core::mem::transmute(pceltfetched.unwrap_or(::std::ptr::null_mut()))) @@ -2646,13 +2269,6 @@ impl IEnumString { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumString, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumString { - type Vtable = IEnumString_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumString { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00000101_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IEnumString_Vtbl { @@ -2662,9 +2278,8 @@ pub struct IEnumString_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumUnknown(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumUnknown, IEnumUnknown_Vtbl, 0x00000100_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IEnumUnknown, ::windows_core::IUnknown); impl IEnumUnknown { pub unsafe fn Next(&self, rgelt: &mut [::core::option::Option<::windows_core::IUnknown>], pceltfetched: ::core::option::Option<*mut u32>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), ::core::mem::transmute(rgelt.as_ptr()), ::core::mem::transmute(pceltfetched.unwrap_or(::std::ptr::null_mut()))).ok() @@ -2680,13 +2295,6 @@ impl IEnumUnknown { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumUnknown, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumUnknown { - type Vtable = IEnumUnknown_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumUnknown { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00000100_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IEnumUnknown_Vtbl { @@ -2696,9 +2304,8 @@ pub struct IEnumUnknown_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IErrorInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IErrorInfo, IErrorInfo_Vtbl, 0x1cf2b120_547d_101b_8e65_08002b2bd119); +::windows_core::imp::interface_hierarchy!(IErrorInfo, ::windows_core::IUnknown); impl IErrorInfo { pub unsafe fn GetGUID(&self) -> ::windows_core::Result<::windows_core::GUID> { let mut result__ = ::std::mem::zeroed(); @@ -2721,13 +2328,6 @@ impl IErrorInfo { (::windows_core::Interface::vtable(self).GetHelpContext)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IErrorInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IErrorInfo { - type Vtable = IErrorInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IErrorInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1cf2b120_547d_101b_8e65_08002b2bd119); -} #[repr(C)] #[doc(hidden)] pub struct IErrorInfo_Vtbl { @@ -2738,9 +2338,8 @@ pub struct IErrorInfo_Vtbl { pub GetHelpFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrhelpfile: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub GetHelpContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwhelpcontext: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IErrorLog(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IErrorLog, IErrorLog_Vtbl, 0x3127ca40_446e_11ce_8135_00aa004bb851); +::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 @@ -2749,22 +2348,14 @@ impl IErrorLog { (::windows_core::Interface::vtable(self).AddError)(::windows_core::Interface::as_raw(self), pszpropname.into_param().abi(), pexcepinfo).ok() } } -::windows_core::imp::interface_hierarchy!(IErrorLog, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IErrorLog { - type Vtable = IErrorLog_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IErrorLog { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3127ca40_446e_11ce_8135_00aa004bb851); -} #[repr(C)] #[doc(hidden)] pub struct IErrorLog_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub AddError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszpropname: ::windows_core::PCWSTR, pexcepinfo: *const EXCEPINFO) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IExternalConnection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IExternalConnection, IExternalConnection_Vtbl, 0x00000019_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IExternalConnection, ::windows_core::IUnknown); impl IExternalConnection { pub unsafe fn AddConnection(&self, extconn: u32, reserved: u32) -> u32 { (::windows_core::Interface::vtable(self).AddConnection)(::windows_core::Interface::as_raw(self), extconn, reserved) @@ -2776,13 +2367,6 @@ impl IExternalConnection { (::windows_core::Interface::vtable(self).ReleaseConnection)(::windows_core::Interface::as_raw(self), extconn, reserved, flastreleasecloses.into_param().abi()) } } -::windows_core::imp::interface_hierarchy!(IExternalConnection, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IExternalConnection { - type Vtable = IExternalConnection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IExternalConnection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00000019_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IExternalConnection_Vtbl { @@ -2790,46 +2374,29 @@ pub struct IExternalConnection_Vtbl { pub AddConnection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, extconn: u32, reserved: u32) -> u32, pub ReleaseConnection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, extconn: u32, reserved: u32, flastreleasecloses: super::super::Foundation::BOOL) -> u32, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFastRundown(::windows_core::IUnknown); -impl IFastRundown {} +::windows_core::imp::com_interface!(IFastRundown, IFastRundown_Vtbl, 0x00000040_0000_0000_c000_000000000046); ::windows_core::imp::interface_hierarchy!(IFastRundown, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFastRundown { - type Vtable = IFastRundown_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFastRundown { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00000040_0000_0000_c000_000000000046); -} +impl IFastRundown {} #[repr(C)] #[doc(hidden)] pub struct IFastRundown_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IForegroundTransfer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IForegroundTransfer, IForegroundTransfer_Vtbl, 0x00000145_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IForegroundTransfer, ::windows_core::IUnknown); impl IForegroundTransfer { pub unsafe fn AllowForegroundTransfer(&self, lpvreserved: ::core::option::Option<*const ::core::ffi::c_void>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).AllowForegroundTransfer)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(lpvreserved.unwrap_or(::std::ptr::null()))).ok() } } -::windows_core::imp::interface_hierarchy!(IForegroundTransfer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IForegroundTransfer { - type Vtable = IForegroundTransfer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IForegroundTransfer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00000145_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IForegroundTransfer_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub AllowForegroundTransfer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpvreserved: *const ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGlobalInterfaceTable(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IGlobalInterfaceTable, IGlobalInterfaceTable_Vtbl, 0x00000146_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IGlobalInterfaceTable, ::windows_core::IUnknown); impl IGlobalInterfaceTable { pub unsafe fn RegisterInterfaceInGlobal(&self, punk: P0, riid: *const ::windows_core::GUID) -> ::windows_core::Result where @@ -2845,13 +2412,6 @@ impl IGlobalInterfaceTable { (::windows_core::Interface::vtable(self).GetInterfaceFromGlobal)(::windows_core::Interface::as_raw(self), dwcookie, riid, ppv).ok() } } -::windows_core::imp::interface_hierarchy!(IGlobalInterfaceTable, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGlobalInterfaceTable { - type Vtable = IGlobalInterfaceTable_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGlobalInterfaceTable { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00000146_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IGlobalInterfaceTable_Vtbl { @@ -2860,9 +2420,8 @@ pub struct IGlobalInterfaceTable_Vtbl { pub RevokeInterfaceFromGlobal: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwcookie: u32) -> ::windows_core::HRESULT, pub GetInterfaceFromGlobal: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwcookie: u32, riid: *const ::windows_core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGlobalOptions(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IGlobalOptions, IGlobalOptions_Vtbl, 0x0000015b_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IGlobalOptions, ::windows_core::IUnknown); impl IGlobalOptions { pub unsafe fn Set(&self, dwproperty: GLOBALOPT_PROPERTIES, dwvalue: usize) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Set)(::windows_core::Interface::as_raw(self), dwproperty, dwvalue).ok() @@ -2872,13 +2431,6 @@ impl IGlobalOptions { (::windows_core::Interface::vtable(self).Query)(::windows_core::Interface::as_raw(self), dwproperty, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IGlobalOptions, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGlobalOptions { - type Vtable = IGlobalOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGlobalOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0000015b_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IGlobalOptions_Vtbl { @@ -2886,9 +2438,8 @@ pub struct IGlobalOptions_Vtbl { pub Set: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwproperty: GLOBALOPT_PROPERTIES, dwvalue: usize) -> ::windows_core::HRESULT, pub Query: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwproperty: GLOBALOPT_PROPERTIES, pdwvalue: *mut usize) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInitializeSpy(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IInitializeSpy, IInitializeSpy_Vtbl, 0x00000034_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IInitializeSpy, ::windows_core::IUnknown); impl IInitializeSpy { pub unsafe fn PreInitialize(&self, dwcoinit: u32, dwcurthreadaptrefs: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).PreInitialize)(::windows_core::Interface::as_raw(self), dwcoinit, dwcurthreadaptrefs).ok() @@ -2903,13 +2454,6 @@ impl IInitializeSpy { (::windows_core::Interface::vtable(self).PostUninitialize)(::windows_core::Interface::as_raw(self), dwnewthreadaptrefs).ok() } } -::windows_core::imp::interface_hierarchy!(IInitializeSpy, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInitializeSpy { - type Vtable = IInitializeSpy_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInitializeSpy { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00000034_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IInitializeSpy_Vtbl { @@ -2919,30 +2463,21 @@ pub struct IInitializeSpy_Vtbl { pub PreUninitialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwcurthreadaptrefs: u32) -> ::windows_core::HRESULT, pub PostUninitialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwnewthreadaptrefs: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInternalUnknown(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IInternalUnknown, IInternalUnknown_Vtbl, 0x00000021_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IInternalUnknown, ::windows_core::IUnknown); impl IInternalUnknown { pub unsafe fn QueryInternalInterface(&self, riid: *const ::windows_core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).QueryInternalInterface)(::windows_core::Interface::as_raw(self), riid, ppv).ok() } } -::windows_core::imp::interface_hierarchy!(IInternalUnknown, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInternalUnknown { - type Vtable = IInternalUnknown_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInternalUnknown { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00000021_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IInternalUnknown_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub QueryInternalInterface: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMachineGlobalObjectTable(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMachineGlobalObjectTable, IMachineGlobalObjectTable_Vtbl, 0x26d709ac_f70b_4421_a96f_d2878fafb00d); +::windows_core::imp::interface_hierarchy!(IMachineGlobalObjectTable, ::windows_core::IUnknown); impl IMachineGlobalObjectTable { pub unsafe fn RegisterObject(&self, clsid: *const ::windows_core::GUID, identifier: P0, object: P1) -> ::windows_core::Result where @@ -2955,7 +2490,7 @@ impl IMachineGlobalObjectTable { pub unsafe fn GetObject(&self, clsid: *const ::windows_core::GUID, identifier: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -2967,13 +2502,6 @@ impl IMachineGlobalObjectTable { (::windows_core::Interface::vtable(self).RevokeObject)(::windows_core::Interface::as_raw(self), token.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMachineGlobalObjectTable, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMachineGlobalObjectTable { - type Vtable = IMachineGlobalObjectTable_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMachineGlobalObjectTable { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x26d709ac_f70b_4421_a96f_d2878fafb00d); -} #[repr(C)] #[doc(hidden)] pub struct IMachineGlobalObjectTable_Vtbl { @@ -2982,9 +2510,8 @@ pub struct IMachineGlobalObjectTable_Vtbl { pub GetObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, clsid: *const ::windows_core::GUID, identifier: ::windows_core::PCWSTR, riid: *const ::windows_core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RevokeObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: MachineGlobalObjectTableRegistrationToken) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMalloc(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMalloc, IMalloc_Vtbl, 0x00000002_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IMalloc, ::windows_core::IUnknown); impl IMalloc { pub unsafe fn Alloc(&self, cb: usize) -> *mut ::core::ffi::c_void { (::windows_core::Interface::vtable(self).Alloc)(::windows_core::Interface::as_raw(self), cb) @@ -3005,13 +2532,6 @@ impl IMalloc { (::windows_core::Interface::vtable(self).HeapMinimize)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(IMalloc, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMalloc { - type Vtable = IMalloc_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMalloc { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00000002_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IMalloc_Vtbl { @@ -3023,9 +2543,8 @@ pub struct IMalloc_Vtbl { pub DidAlloc: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pv: *const ::core::ffi::c_void) -> i32, pub HeapMinimize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMallocSpy(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMallocSpy, IMallocSpy_Vtbl, 0x0000001d_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IMallocSpy, ::windows_core::IUnknown); impl IMallocSpy { pub unsafe fn PreAlloc(&self, cbrequest: usize) -> usize { (::windows_core::Interface::vtable(self).PreAlloc)(::windows_core::Interface::as_raw(self), cbrequest) @@ -3088,13 +2607,6 @@ impl IMallocSpy { (::windows_core::Interface::vtable(self).PostHeapMinimize)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(IMallocSpy, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMallocSpy { - type Vtable = IMallocSpy_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMallocSpy { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0000001d_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IMallocSpy_Vtbl { @@ -3112,9 +2624,8 @@ pub struct IMallocSpy_Vtbl { pub PreHeapMinimize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), pub PostHeapMinimize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMoniker(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMoniker, IMoniker_Vtbl, 0x0000000f_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IMoniker, ::windows_core::IUnknown, IPersist, IPersistStream); impl IMoniker { pub unsafe fn GetClassID(&self) -> ::windows_core::Result<::windows_core::GUID> { let mut result__ = ::std::mem::zeroed(); @@ -3240,13 +2751,6 @@ impl IMoniker { (::windows_core::Interface::vtable(self).IsSystemMoniker)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMoniker, ::windows_core::IUnknown, IPersist, IPersistStream); -unsafe impl ::windows_core::Interface for IMoniker { - type Vtable = IMoniker_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMoniker { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0000000f_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IMoniker_Vtbl { @@ -3267,51 +2771,34 @@ pub struct IMoniker_Vtbl { pub ParseDisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbc: *mut ::core::ffi::c_void, pmktoleft: *mut ::core::ffi::c_void, pszdisplayname: ::windows_core::PCWSTR, pcheaten: *mut u32, ppmkout: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub IsSystemMoniker: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwmksys: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMultiQI(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMultiQI, IMultiQI_Vtbl, 0x00000020_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IMultiQI, ::windows_core::IUnknown); impl IMultiQI { pub unsafe fn QueryMultipleInterfaces(&self, pmqis: &mut [MULTI_QI]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).QueryMultipleInterfaces)(::windows_core::Interface::as_raw(self), pmqis.len().try_into().unwrap(), ::core::mem::transmute(pmqis.as_ptr())).ok() } } -::windows_core::imp::interface_hierarchy!(IMultiQI, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMultiQI { - type Vtable = IMultiQI_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMultiQI { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00000020_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IMultiQI_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub QueryMultipleInterfaces: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cmqis: u32, pmqis: *mut MULTI_QI) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INoMarshal(::windows_core::IUnknown); -impl INoMarshal {} +::windows_core::imp::com_interface!(INoMarshal, INoMarshal_Vtbl, 0xecc8691b_c1db_4dc0_855e_65f6c551af49); ::windows_core::imp::interface_hierarchy!(INoMarshal, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INoMarshal { - type Vtable = INoMarshal_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INoMarshal { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xecc8691b_c1db_4dc0_855e_65f6c551af49); -} +impl INoMarshal {} #[repr(C)] #[doc(hidden)] pub struct INoMarshal_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOplockStorage(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOplockStorage, IOplockStorage_Vtbl, 0x8d19c834_8879_11d1_83e9_00c04fc2c6d4); +::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<::windows_core::PCWSTR>, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -3319,19 +2806,12 @@ impl IOplockStorage { pub unsafe fn OpenStorageEx(&self, pwcsname: P0, grfmode: u32, stgfmt: u32, grfattrs: u32) -> ::windows_core::Result where P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IOplockStorage, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOplockStorage { - type Vtable = IOplockStorage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOplockStorage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8d19c834_8879_11d1_83e9_00c04fc2c6d4); -} #[repr(C)] #[doc(hidden)] pub struct IOplockStorage_Vtbl { @@ -3339,9 +2819,8 @@ pub struct IOplockStorage_Vtbl { pub CreateStorageEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwcsname: ::windows_core::PCWSTR, grfmode: u32, stgfmt: u32, grfattrs: u32, riid: *const ::windows_core::GUID, ppstgopen: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub OpenStorageEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwcsname: ::windows_core::PCWSTR, grfmode: u32, stgfmt: u32, grfattrs: u32, riid: *const ::windows_core::GUID, ppstgopen: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPSFactoryBuffer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPSFactoryBuffer, IPSFactoryBuffer_Vtbl, 0xd5f569d0_593b_101a_b569_08002b2dbf7a); +::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 ::core::option::Option, ppv: *mut *mut ::core::ffi::c_void) -> ::windows_core::Result<()> where @@ -3357,13 +2836,6 @@ impl IPSFactoryBuffer { (::windows_core::Interface::vtable(self).CreateStub)(::windows_core::Interface::as_raw(self), riid, punkserver.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IPSFactoryBuffer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPSFactoryBuffer { - type Vtable = IPSFactoryBuffer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPSFactoryBuffer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd5f569d0_593b_101a_b569_08002b2dbf7a); -} #[repr(C)] #[doc(hidden)] pub struct IPSFactoryBuffer_Vtbl { @@ -3371,31 +2843,22 @@ pub struct IPSFactoryBuffer_Vtbl { pub CreateProxy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punkouter: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppproxy: *mut *mut ::core::ffi::c_void, ppv: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateStub: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, punkserver: *mut ::core::ffi::c_void, ppstub: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPersist(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPersist, IPersist_Vtbl, 0x0000010c_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IPersist, ::windows_core::IUnknown); impl IPersist { pub unsafe fn GetClassID(&self) -> ::windows_core::Result<::windows_core::GUID> { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetClassID)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IPersist, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPersist { - type Vtable = IPersist_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPersist { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0000010c_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IPersist_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetClassID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pclassid: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPersistFile(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPersistFile, IPersistFile_Vtbl, 0x0000010b_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IPersistFile, ::windows_core::IUnknown, IPersist); impl IPersistFile { pub unsafe fn GetClassID(&self) -> ::windows_core::Result<::windows_core::GUID> { let mut result__ = ::std::mem::zeroed(); @@ -3428,13 +2891,6 @@ impl IPersistFile { (::windows_core::Interface::vtable(self).GetCurFile)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IPersistFile, ::windows_core::IUnknown, IPersist); -unsafe impl ::windows_core::Interface for IPersistFile { - type Vtable = IPersistFile_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPersistFile { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0000010b_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IPersistFile_Vtbl { @@ -3445,9 +2901,8 @@ pub struct IPersistFile_Vtbl { pub SaveCompleted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszfilename: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub GetCurFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppszfilename: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPersistMemory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPersistMemory, IPersistMemory_Vtbl, 0xbd1ae5e0_a6ae_11ce_bd37_504200c10000); +::windows_core::imp::interface_hierarchy!(IPersistMemory, ::windows_core::IUnknown, IPersist); impl IPersistMemory { pub unsafe fn GetClassID(&self) -> ::windows_core::Result<::windows_core::GUID> { let mut result__ = ::std::mem::zeroed(); @@ -3473,13 +2928,6 @@ impl IPersistMemory { (::windows_core::Interface::vtable(self).InitNew)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IPersistMemory, ::windows_core::IUnknown, IPersist); -unsafe impl ::windows_core::Interface for IPersistMemory { - type Vtable = IPersistMemory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPersistMemory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbd1ae5e0_a6ae_11ce_bd37_504200c10000); -} #[repr(C)] #[doc(hidden)] pub struct IPersistMemory_Vtbl { @@ -3490,9 +2938,8 @@ pub struct IPersistMemory_Vtbl { pub GetSizeMax: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcbsize: *mut u32) -> ::windows_core::HRESULT, pub InitNew: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPersistStream(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPersistStream, IPersistStream_Vtbl, 0x00000109_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IPersistStream, ::windows_core::IUnknown, IPersist); impl IPersistStream { pub unsafe fn GetClassID(&self) -> ::windows_core::Result<::windows_core::GUID> { let mut result__ = ::std::mem::zeroed(); @@ -3519,13 +2966,6 @@ impl IPersistStream { (::windows_core::Interface::vtable(self).GetSizeMax)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IPersistStream, ::windows_core::IUnknown, IPersist); -unsafe impl ::windows_core::Interface for IPersistStream { - type Vtable = IPersistStream_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPersistStream { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00000109_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IPersistStream_Vtbl { @@ -3535,9 +2975,8 @@ pub struct IPersistStream_Vtbl { pub Save: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstm: *mut ::core::ffi::c_void, fcleardirty: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub GetSizeMax: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcbsize: *mut u64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPersistStreamInit(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPersistStreamInit, IPersistStreamInit_Vtbl, 0x7fd52380_4e07_101b_ae2d_08002b2ec713); +::windows_core::imp::interface_hierarchy!(IPersistStreamInit, ::windows_core::IUnknown, IPersist); impl IPersistStreamInit { pub unsafe fn GetClassID(&self) -> ::windows_core::Result<::windows_core::GUID> { let mut result__ = ::std::mem::zeroed(); @@ -3567,13 +3006,6 @@ impl IPersistStreamInit { (::windows_core::Interface::vtable(self).InitNew)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IPersistStreamInit, ::windows_core::IUnknown, IPersist); -unsafe impl ::windows_core::Interface for IPersistStreamInit { - type Vtable = IPersistStreamInit_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPersistStreamInit { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7fd52380_4e07_101b_ae2d_08002b2ec713); -} #[repr(C)] #[doc(hidden)] pub struct IPersistStreamInit_Vtbl { @@ -3584,9 +3016,8 @@ pub struct IPersistStreamInit_Vtbl { pub GetSizeMax: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcbsize: *mut u64) -> ::windows_core::HRESULT, pub InitNew: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPipeByte(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPipeByte, IPipeByte_Vtbl, 0xdb2f3aca_2f86_11d1_8e04_00c04fb9989a); +::windows_core::imp::interface_hierarchy!(IPipeByte, ::windows_core::IUnknown); impl IPipeByte { pub unsafe fn Pull(&self, buf: &mut [u8], pcreturned: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Pull)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(buf.as_ptr()), buf.len().try_into().unwrap(), pcreturned).ok() @@ -3595,13 +3026,6 @@ impl IPipeByte { (::windows_core::Interface::vtable(self).Push)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(buf.as_ptr()), buf.len().try_into().unwrap()).ok() } } -::windows_core::imp::interface_hierarchy!(IPipeByte, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPipeByte { - type Vtable = IPipeByte_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPipeByte { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdb2f3aca_2f86_11d1_8e04_00c04fb9989a); -} #[repr(C)] #[doc(hidden)] pub struct IPipeByte_Vtbl { @@ -3609,9 +3033,8 @@ pub struct IPipeByte_Vtbl { pub Pull: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, buf: *mut u8, crequest: u32, pcreturned: *mut u32) -> ::windows_core::HRESULT, pub Push: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, buf: *const u8, csent: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPipeDouble(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPipeDouble, IPipeDouble_Vtbl, 0xdb2f3ace_2f86_11d1_8e04_00c04fb9989a); +::windows_core::imp::interface_hierarchy!(IPipeDouble, ::windows_core::IUnknown); impl IPipeDouble { pub unsafe fn Pull(&self, buf: &mut [f64], pcreturned: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Pull)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(buf.as_ptr()), buf.len().try_into().unwrap(), pcreturned).ok() @@ -3620,13 +3043,6 @@ impl IPipeDouble { (::windows_core::Interface::vtable(self).Push)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(buf.as_ptr()), buf.len().try_into().unwrap()).ok() } } -::windows_core::imp::interface_hierarchy!(IPipeDouble, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPipeDouble { - type Vtable = IPipeDouble_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPipeDouble { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdb2f3ace_2f86_11d1_8e04_00c04fb9989a); -} #[repr(C)] #[doc(hidden)] pub struct IPipeDouble_Vtbl { @@ -3634,9 +3050,8 @@ pub struct IPipeDouble_Vtbl { pub Pull: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, buf: *mut f64, crequest: u32, pcreturned: *mut u32) -> ::windows_core::HRESULT, pub Push: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, buf: *const f64, csent: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPipeLong(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPipeLong, IPipeLong_Vtbl, 0xdb2f3acc_2f86_11d1_8e04_00c04fb9989a); +::windows_core::imp::interface_hierarchy!(IPipeLong, ::windows_core::IUnknown); impl IPipeLong { pub unsafe fn Pull(&self, buf: &mut [i32], pcreturned: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Pull)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(buf.as_ptr()), buf.len().try_into().unwrap(), pcreturned).ok() @@ -3645,13 +3060,6 @@ impl IPipeLong { (::windows_core::Interface::vtable(self).Push)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(buf.as_ptr()), buf.len().try_into().unwrap()).ok() } } -::windows_core::imp::interface_hierarchy!(IPipeLong, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPipeLong { - type Vtable = IPipeLong_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPipeLong { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdb2f3acc_2f86_11d1_8e04_00c04fb9989a); -} #[repr(C)] #[doc(hidden)] pub struct IPipeLong_Vtbl { @@ -3659,30 +3067,21 @@ pub struct IPipeLong_Vtbl { pub Pull: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, buf: *mut i32, crequest: u32, pcreturned: *mut u32) -> ::windows_core::HRESULT, pub Push: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, buf: *const i32, csent: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProcessInitControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IProcessInitControl, IProcessInitControl_Vtbl, 0x72380d55_8d2b_43a3_8513_2b6ef31434e9); +::windows_core::imp::interface_hierarchy!(IProcessInitControl, ::windows_core::IUnknown); impl IProcessInitControl { pub unsafe fn ResetInitializerTimeout(&self, dwsecondsremaining: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).ResetInitializerTimeout)(::windows_core::Interface::as_raw(self), dwsecondsremaining).ok() } } -::windows_core::imp::interface_hierarchy!(IProcessInitControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProcessInitControl { - type Vtable = IProcessInitControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProcessInitControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x72380d55_8d2b_43a3_8513_2b6ef31434e9); -} #[repr(C)] #[doc(hidden)] pub struct IProcessInitControl_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub ResetInitializerTimeout: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwsecondsremaining: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProcessLock(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IProcessLock, IProcessLock_Vtbl, 0x000001d5_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IProcessLock, ::windows_core::IUnknown); impl IProcessLock { pub unsafe fn AddRefOnProcess(&self) -> u32 { (::windows_core::Interface::vtable(self).AddRefOnProcess)(::windows_core::Interface::as_raw(self)) @@ -3691,13 +3090,6 @@ impl IProcessLock { (::windows_core::Interface::vtable(self).ReleaseRefOnProcess)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(IProcessLock, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProcessLock { - type Vtable = IProcessLock_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProcessLock { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x000001d5_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IProcessLock_Vtbl { @@ -3705,9 +3097,8 @@ pub struct IProcessLock_Vtbl { pub AddRefOnProcess: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> u32, pub ReleaseRefOnProcess: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> u32, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProgressNotify(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IProgressNotify, IProgressNotify_Vtbl, 0xa9d758a0_4617_11cf_95fc_00aa00680db4); +::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 @@ -3717,43 +3108,27 @@ impl IProgressNotify { (::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::imp::interface_hierarchy!(IProgressNotify, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProgressNotify { - type Vtable = IProgressNotify_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProgressNotify { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa9d758a0_4617_11cf_95fc_00aa00680db4); -} #[repr(C)] #[doc(hidden)] pub struct IProgressNotify_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnProgress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwprogresscurrent: u32, dwprogressmaximum: u32, faccurate: super::super::Foundation::BOOL, fowner: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IROTData(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IROTData, IROTData_Vtbl, 0xf29f6bc0_5021_11ce_aa15_00006901293f); +::windows_core::imp::interface_hierarchy!(IROTData, ::windows_core::IUnknown); impl IROTData { pub unsafe fn GetComparisonData(&self, pbdata: &mut [u8], pcbdata: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetComparisonData)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pbdata.as_ptr()), pbdata.len().try_into().unwrap(), pcbdata).ok() } } -::windows_core::imp::interface_hierarchy!(IROTData, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IROTData { - type Vtable = IROTData_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IROTData { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf29f6bc0_5021_11ce_aa15_00006901293f); -} #[repr(C)] #[doc(hidden)] pub struct IROTData_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetComparisonData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbdata: *mut u8, cbmax: u32, pcbdata: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IReleaseMarshalBuffers(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IReleaseMarshalBuffers, IReleaseMarshalBuffers_Vtbl, 0xeb0cb9e8_7996_11d2_872e_0000f8080859); +::windows_core::imp::interface_hierarchy!(IReleaseMarshalBuffers, ::windows_core::IUnknown); impl IReleaseMarshalBuffers { pub unsafe fn ReleaseMarshalBuffer(&self, pmsg: *mut RPCOLEMESSAGE, dwflags: u32, pchnl: P0) -> ::windows_core::Result<()> where @@ -3762,22 +3137,14 @@ impl IReleaseMarshalBuffers { (::windows_core::Interface::vtable(self).ReleaseMarshalBuffer)(::windows_core::Interface::as_raw(self), pmsg, dwflags, pchnl.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IReleaseMarshalBuffers, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IReleaseMarshalBuffers { - type Vtable = IReleaseMarshalBuffers_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IReleaseMarshalBuffers { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeb0cb9e8_7996_11d2_872e_0000f8080859); -} #[repr(C)] #[doc(hidden)] pub struct IReleaseMarshalBuffers_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub ReleaseMarshalBuffer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pmsg: *mut RPCOLEMESSAGE, dwflags: u32, pchnl: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRpcChannelBuffer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRpcChannelBuffer, IRpcChannelBuffer_Vtbl, 0xd5f56b60_593b_101a_b569_08002b2dbf7a); +::windows_core::imp::interface_hierarchy!(IRpcChannelBuffer, ::windows_core::IUnknown); impl IRpcChannelBuffer { pub unsafe fn GetBuffer(&self, pmessage: *mut RPCOLEMESSAGE, riid: *const ::windows_core::GUID) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetBuffer)(::windows_core::Interface::as_raw(self), pmessage, riid).ok() @@ -3795,13 +3162,6 @@ impl IRpcChannelBuffer { (::windows_core::Interface::vtable(self).IsConnected)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IRpcChannelBuffer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRpcChannelBuffer { - type Vtable = IRpcChannelBuffer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRpcChannelBuffer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd5f56b60_593b_101a_b569_08002b2dbf7a); -} #[repr(C)] #[doc(hidden)] pub struct IRpcChannelBuffer_Vtbl { @@ -3812,9 +3172,8 @@ pub struct IRpcChannelBuffer_Vtbl { pub GetDestCtx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwdestcontext: *mut u32, ppvdestcontext: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub IsConnected: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRpcChannelBuffer2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRpcChannelBuffer2, IRpcChannelBuffer2_Vtbl, 0x594f31d0_7f19_11d0_b194_00a0c90dc8bf); +::windows_core::imp::interface_hierarchy!(IRpcChannelBuffer2, ::windows_core::IUnknown, IRpcChannelBuffer); impl IRpcChannelBuffer2 { pub unsafe fn GetBuffer(&self, pmessage: *mut RPCOLEMESSAGE, riid: *const ::windows_core::GUID) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.GetBuffer)(::windows_core::Interface::as_raw(self), pmessage, riid).ok() @@ -3836,22 +3195,14 @@ impl IRpcChannelBuffer2 { (::windows_core::Interface::vtable(self).GetProtocolVersion)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IRpcChannelBuffer2, ::windows_core::IUnknown, IRpcChannelBuffer); -unsafe impl ::windows_core::Interface for IRpcChannelBuffer2 { - type Vtable = IRpcChannelBuffer2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRpcChannelBuffer2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x594f31d0_7f19_11d0_b194_00a0c90dc8bf); -} #[repr(C)] #[doc(hidden)] pub struct IRpcChannelBuffer2_Vtbl { pub base__: IRpcChannelBuffer_Vtbl, pub GetProtocolVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwversion: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRpcChannelBuffer3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRpcChannelBuffer3, IRpcChannelBuffer3_Vtbl, 0x25b15600_0115_11d0_bf0d_00aa00b8dfd2); +::windows_core::imp::interface_hierarchy!(IRpcChannelBuffer3, ::windows_core::IUnknown, IRpcChannelBuffer, IRpcChannelBuffer2); impl IRpcChannelBuffer3 { pub unsafe fn GetBuffer(&self, pmessage: *mut RPCOLEMESSAGE, riid: *const ::windows_core::GUID) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.GetBuffer)(::windows_core::Interface::as_raw(self), pmessage, riid).ok() @@ -3898,13 +3249,6 @@ impl IRpcChannelBuffer3 { (::windows_core::Interface::vtable(self).RegisterAsync)(::windows_core::Interface::as_raw(self), pmsg, pasyncmgr.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IRpcChannelBuffer3, ::windows_core::IUnknown, IRpcChannelBuffer, IRpcChannelBuffer2); -unsafe impl ::windows_core::Interface for IRpcChannelBuffer3 { - type Vtable = IRpcChannelBuffer3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRpcChannelBuffer3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x25b15600_0115_11d0_bf0d_00aa00b8dfd2); -} #[repr(C)] #[doc(hidden)] pub struct IRpcChannelBuffer3_Vtbl { @@ -3917,9 +3261,8 @@ pub struct IRpcChannelBuffer3_Vtbl { pub GetState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pmsg: *const RPCOLEMESSAGE, pstate: *mut u32) -> ::windows_core::HRESULT, pub RegisterAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pmsg: *mut RPCOLEMESSAGE, pasyncmgr: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRpcHelper(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRpcHelper, IRpcHelper_Vtbl, 0x00000149_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IRpcHelper, ::windows_core::IUnknown); impl IRpcHelper { pub unsafe fn GetDCOMProtocolVersion(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -3930,13 +3273,6 @@ impl IRpcHelper { (::windows_core::Interface::vtable(self).GetIIDFromOBJREF)(::windows_core::Interface::as_raw(self), pobjref, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IRpcHelper, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRpcHelper { - type Vtable = IRpcHelper_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRpcHelper { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00000149_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IRpcHelper_Vtbl { @@ -3944,9 +3280,8 @@ pub struct IRpcHelper_Vtbl { pub GetDCOMProtocolVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcomversion: *mut u32) -> ::windows_core::HRESULT, pub GetIIDFromOBJREF: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pobjref: *const ::core::ffi::c_void, piid: *mut *mut ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRpcOptions(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRpcOptions, IRpcOptions_Vtbl, 0x00000144_0000_0000_c000_000000000046); +::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 @@ -3962,13 +3297,6 @@ impl IRpcOptions { (::windows_core::Interface::vtable(self).Query)(::windows_core::Interface::as_raw(self), pprx.into_param().abi(), dwproperty, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IRpcOptions, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRpcOptions { - type Vtable = IRpcOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRpcOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00000144_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IRpcOptions_Vtbl { @@ -3976,9 +3304,8 @@ pub struct IRpcOptions_Vtbl { pub Set: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pprx: *mut ::core::ffi::c_void, dwproperty: RPCOPT_PROPERTIES, dwvalue: usize) -> ::windows_core::HRESULT, pub Query: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pprx: *mut ::core::ffi::c_void, dwproperty: RPCOPT_PROPERTIES, pdwvalue: *mut usize) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRpcProxyBuffer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRpcProxyBuffer, IRpcProxyBuffer_Vtbl, 0xd5f56a34_593b_101a_b569_08002b2dbf7a); +::windows_core::imp::interface_hierarchy!(IRpcProxyBuffer, ::windows_core::IUnknown); impl IRpcProxyBuffer { pub unsafe fn Connect(&self, prpcchannelbuffer: P0) -> ::windows_core::Result<()> where @@ -3990,13 +3317,6 @@ impl IRpcProxyBuffer { (::windows_core::Interface::vtable(self).Disconnect)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(IRpcProxyBuffer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRpcProxyBuffer { - type Vtable = IRpcProxyBuffer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRpcProxyBuffer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd5f56a34_593b_101a_b569_08002b2dbf7a); -} #[repr(C)] #[doc(hidden)] pub struct IRpcProxyBuffer_Vtbl { @@ -4004,9 +3324,8 @@ pub struct IRpcProxyBuffer_Vtbl { pub Connect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prpcchannelbuffer: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Disconnect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRpcStubBuffer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRpcStubBuffer, IRpcStubBuffer_Vtbl, 0xd5f56afc_593b_101a_b569_08002b2dbf7a); +::windows_core::imp::interface_hierarchy!(IRpcStubBuffer, ::windows_core::IUnknown); impl IRpcStubBuffer { pub unsafe fn Connect(&self, punkserver: P0) -> ::windows_core::Result<()> where @@ -4036,13 +3355,6 @@ impl IRpcStubBuffer { (::windows_core::Interface::vtable(self).DebugServerRelease)(::windows_core::Interface::as_raw(self), pv) } } -::windows_core::imp::interface_hierarchy!(IRpcStubBuffer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRpcStubBuffer { - type Vtable = IRpcStubBuffer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRpcStubBuffer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd5f56afc_593b_101a_b569_08002b2dbf7a); -} #[repr(C)] #[doc(hidden)] pub struct IRpcStubBuffer_Vtbl { @@ -4055,30 +3367,21 @@ pub struct IRpcStubBuffer_Vtbl { pub DebugServerQueryInterface: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppv: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub DebugServerRelease: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pv: *const ::core::ffi::c_void), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRpcSyntaxNegotiate(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRpcSyntaxNegotiate, IRpcSyntaxNegotiate_Vtbl, 0x58a08519_24c8_4935_b482_3fd823333a4f); +::windows_core::imp::interface_hierarchy!(IRpcSyntaxNegotiate, ::windows_core::IUnknown); impl IRpcSyntaxNegotiate { pub unsafe fn NegotiateSyntax(&self, pmsg: *mut RPCOLEMESSAGE) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).NegotiateSyntax)(::windows_core::Interface::as_raw(self), pmsg).ok() } } -::windows_core::imp::interface_hierarchy!(IRpcSyntaxNegotiate, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRpcSyntaxNegotiate { - type Vtable = IRpcSyntaxNegotiate_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRpcSyntaxNegotiate { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x58a08519_24c8_4935_b482_3fd823333a4f); -} #[repr(C)] #[doc(hidden)] pub struct IRpcSyntaxNegotiate_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub NegotiateSyntax: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pmsg: *mut RPCOLEMESSAGE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRunnableObject(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRunnableObject, IRunnableObject_Vtbl, 0x00000126_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IRunnableObject, ::windows_core::IUnknown); impl IRunnableObject { pub unsafe fn GetRunningClass(&self) -> ::windows_core::Result<::windows_core::GUID> { let mut result__ = ::std::mem::zeroed(); @@ -4107,13 +3410,6 @@ impl IRunnableObject { (::windows_core::Interface::vtable(self).SetContainedObject)(::windows_core::Interface::as_raw(self), fcontained.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IRunnableObject, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRunnableObject { - type Vtable = IRunnableObject_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRunnableObject { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00000126_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IRunnableObject_Vtbl { @@ -4124,9 +3420,8 @@ pub struct IRunnableObject_Vtbl { pub LockRunning: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flock: super::super::Foundation::BOOL, flastunlockcloses: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub SetContainedObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fcontained: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRunningObjectTable(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRunningObjectTable, IRunningObjectTable_Vtbl, 0x00000010_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IRunningObjectTable, ::windows_core::IUnknown); impl IRunningObjectTable { pub unsafe fn Register(&self, grfflags: ROT_FLAGS, punkobject: P0, pmkobjectname: P1) -> ::windows_core::Result where @@ -4167,13 +3462,6 @@ impl IRunningObjectTable { (::windows_core::Interface::vtable(self).EnumRunning)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IRunningObjectTable, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRunningObjectTable { - type Vtable = IRunningObjectTable_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRunningObjectTable { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00000010_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IRunningObjectTable_Vtbl { @@ -4186,9 +3474,8 @@ pub struct IRunningObjectTable_Vtbl { pub GetTimeOfLastChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pmkobjectname: *mut ::core::ffi::c_void, pfiletime: *mut super::super::Foundation::FILETIME) -> ::windows_core::HRESULT, pub EnumRunning: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenummoniker: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISequentialStream(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISequentialStream, ISequentialStream_Vtbl, 0x0c733a30_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(ISequentialStream, ::windows_core::IUnknown); impl ISequentialStream { pub unsafe fn Read(&self, pv: *mut ::core::ffi::c_void, cb: u32, pcbread: ::core::option::Option<*mut u32>) -> ::windows_core::HRESULT { (::windows_core::Interface::vtable(self).Read)(::windows_core::Interface::as_raw(self), pv, cb, ::core::mem::transmute(pcbread.unwrap_or(::std::ptr::null_mut()))) @@ -4197,13 +3484,6 @@ impl ISequentialStream { (::windows_core::Interface::vtable(self).Write)(::windows_core::Interface::as_raw(self), pv, cb, ::core::mem::transmute(pcbwritten.unwrap_or(::std::ptr::null_mut()))) } } -::windows_core::imp::interface_hierarchy!(ISequentialStream, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISequentialStream { - type Vtable = ISequentialStream_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISequentialStream { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733a30_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct ISequentialStream_Vtbl { @@ -4211,9 +3491,8 @@ pub struct ISequentialStream_Vtbl { pub Read: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pv: *mut ::core::ffi::c_void, cb: u32, pcbread: *mut u32) -> ::windows_core::HRESULT, pub Write: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pv: *const ::core::ffi::c_void, cb: u32, pcbwritten: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IServerSecurity(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IServerSecurity, IServerSecurity_Vtbl, 0x0000013e_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IServerSecurity, ::windows_core::IUnknown); impl IServerSecurity { pub unsafe fn QueryBlanket(&self, pauthnsvc: ::core::option::Option<*mut u32>, pauthzsvc: ::core::option::Option<*mut u32>, pserverprincname: *mut *mut u16, pauthnlevel: ::core::option::Option<*mut u32>, pimplevel: ::core::option::Option<*mut u32>, pprivs: *mut *mut ::core::ffi::c_void, pcapabilities: ::core::option::Option<*mut u32>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).QueryBlanket)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pauthnsvc.unwrap_or(::std::ptr::null_mut())), ::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())), pprivs, ::core::mem::transmute(pcapabilities.unwrap_or(::std::ptr::null_mut()))).ok() @@ -4228,13 +3507,6 @@ impl IServerSecurity { (::windows_core::Interface::vtable(self).IsImpersonating)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(IServerSecurity, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IServerSecurity { - type Vtable = IServerSecurity_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IServerSecurity { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0000013e_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IServerSecurity_Vtbl { @@ -4244,56 +3516,39 @@ pub struct IServerSecurity_Vtbl { pub RevertToSelf: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub IsImpersonating: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IServiceProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IServiceProvider, IServiceProvider_Vtbl, 0x6d5140c1_7436_11ce_8034_00aa006009fa); +::windows_core::imp::interface_hierarchy!(IServiceProvider, ::windows_core::IUnknown); impl IServiceProvider { pub unsafe fn QueryService(&self, guidservice: *const ::windows_core::GUID) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).QueryService)(::windows_core::Interface::as_raw(self), guidservice, &T::IID, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IServiceProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IServiceProvider { - type Vtable = IServiceProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IServiceProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6d5140c1_7436_11ce_8034_00aa006009fa); -} #[repr(C)] #[doc(hidden)] pub struct IServiceProvider_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub QueryService: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guidservice: *const ::windows_core::GUID, riid: *const ::windows_core::GUID, ppvobject: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStdMarshalInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IStdMarshalInfo, IStdMarshalInfo_Vtbl, 0x00000018_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IStdMarshalInfo, ::windows_core::IUnknown); impl IStdMarshalInfo { pub unsafe fn GetClassForHandler(&self, dwdestcontext: u32, pvdestcontext: ::core::option::Option<*const ::core::ffi::c_void>) -> ::windows_core::Result<::windows_core::GUID> { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetClassForHandler)(::windows_core::Interface::as_raw(self), dwdestcontext, ::core::mem::transmute(pvdestcontext.unwrap_or(::std::ptr::null())), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IStdMarshalInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStdMarshalInfo { - type Vtable = IStdMarshalInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStdMarshalInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00000018_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IStdMarshalInfo_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetClassForHandler: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwdestcontext: u32, pvdestcontext: *const ::core::ffi::c_void, pclsid: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStream(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IStream, IStream_Vtbl, 0x0000000c_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IStream, ::windows_core::IUnknown, ISequentialStream); impl IStream { pub unsafe fn Read(&self, pv: *mut ::core::ffi::c_void, cb: u32, pcbread: ::core::option::Option<*mut u32>) -> ::windows_core::HRESULT { (::windows_core::Interface::vtable(self).base__.Read)(::windows_core::Interface::as_raw(self), pv, cb, ::core::mem::transmute(pcbread.unwrap_or(::std::ptr::null_mut()))) @@ -4333,13 +3588,6 @@ impl IStream { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IStream, ::windows_core::IUnknown, ISequentialStream); -unsafe impl ::windows_core::Interface for IStream { - type Vtable = IStream_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStream { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0000000c_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IStream_Vtbl { @@ -4354,46 +3602,29 @@ pub struct IStream_Vtbl { pub Stat: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstatstg: *mut STATSTG, grfstatflag: u32) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppstm: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISupportAllowLowerTrustActivation(::windows_core::IUnknown); -impl ISupportAllowLowerTrustActivation {} +::windows_core::imp::com_interface!(ISupportAllowLowerTrustActivation, ISupportAllowLowerTrustActivation_Vtbl, 0xe9956ef2_3828_4b4b_8fa9_7db61dee4954); ::windows_core::imp::interface_hierarchy!(ISupportAllowLowerTrustActivation, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISupportAllowLowerTrustActivation { - type Vtable = ISupportAllowLowerTrustActivation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISupportAllowLowerTrustActivation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe9956ef2_3828_4b4b_8fa9_7db61dee4954); -} +impl ISupportAllowLowerTrustActivation {} #[repr(C)] #[doc(hidden)] pub struct ISupportAllowLowerTrustActivation_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISupportErrorInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISupportErrorInfo, ISupportErrorInfo_Vtbl, 0xdf0b3d60_548f_101b_8e65_08002b2bd119); +::windows_core::imp::interface_hierarchy!(ISupportErrorInfo, ::windows_core::IUnknown); impl ISupportErrorInfo { pub unsafe fn InterfaceSupportsErrorInfo(&self, riid: *const ::windows_core::GUID) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).InterfaceSupportsErrorInfo)(::windows_core::Interface::as_raw(self), riid).ok() } } -::windows_core::imp::interface_hierarchy!(ISupportErrorInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISupportErrorInfo { - type Vtable = ISupportErrorInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISupportErrorInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdf0b3d60_548f_101b_8e65_08002b2bd119); -} #[repr(C)] #[doc(hidden)] pub struct ISupportErrorInfo_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub InterfaceSupportsErrorInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISurrogate(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISurrogate, ISurrogate_Vtbl, 0x00000022_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(ISurrogate, ::windows_core::IUnknown); impl ISurrogate { pub unsafe fn LoadDllServer(&self, clsid: *const ::windows_core::GUID) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).LoadDllServer)(::windows_core::Interface::as_raw(self), clsid).ok() @@ -4402,13 +3633,6 @@ impl ISurrogate { (::windows_core::Interface::vtable(self).FreeSurrogate)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ISurrogate, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISurrogate { - type Vtable = ISurrogate_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISurrogate { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00000022_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct ISurrogate_Vtbl { @@ -4416,9 +3640,8 @@ pub struct ISurrogate_Vtbl { pub LoadDllServer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, clsid: *const ::windows_core::GUID) -> ::windows_core::HRESULT, pub FreeSurrogate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISurrogateService(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISurrogateService, ISurrogateService_Vtbl, 0x000001d4_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(ISurrogateService, ::windows_core::IUnknown); impl ISurrogateService { pub unsafe fn Init(&self, rguidprocessid: *const ::windows_core::GUID, pprocesslock: P0) -> ::windows_core::Result where @@ -4440,13 +3663,6 @@ impl ISurrogateService { (::windows_core::Interface::vtable(self).ProcessShutdown)(::windows_core::Interface::as_raw(self), shutdowntype).ok() } } -::windows_core::imp::interface_hierarchy!(ISurrogateService, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISurrogateService { - type Vtable = ISurrogateService_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISurrogateService { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x000001d4_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct ISurrogateService_Vtbl { @@ -4457,9 +3673,8 @@ pub struct ISurrogateService_Vtbl { pub CatalogRefresh: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulreserved: u32) -> ::windows_core::HRESULT, pub ProcessShutdown: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, shutdowntype: ShutdownType) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISynchronize(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISynchronize, ISynchronize_Vtbl, 0x00000030_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(ISynchronize, ::windows_core::IUnknown); impl ISynchronize { pub unsafe fn Wait(&self, dwflags: u32, dwmilliseconds: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Wait)(::windows_core::Interface::as_raw(self), dwflags, dwmilliseconds).ok() @@ -4471,13 +3686,6 @@ impl ISynchronize { (::windows_core::Interface::vtable(self).Reset)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ISynchronize, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISynchronize { - type Vtable = ISynchronize_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISynchronize { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00000030_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct ISynchronize_Vtbl { @@ -4486,9 +3694,8 @@ pub struct ISynchronize_Vtbl { pub Signal: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISynchronizeContainer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISynchronizeContainer, ISynchronizeContainer_Vtbl, 0x00000033_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(ISynchronizeContainer, ::windows_core::IUnknown); impl ISynchronizeContainer { pub unsafe fn AddSynchronize(&self, psync: P0) -> ::windows_core::Result<()> where @@ -4501,13 +3708,6 @@ impl ISynchronizeContainer { (::windows_core::Interface::vtable(self).WaitMultiple)(::windows_core::Interface::as_raw(self), dwflags, dwtimeout, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISynchronizeContainer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISynchronizeContainer { - type Vtable = ISynchronizeContainer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISynchronizeContainer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00000033_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct ISynchronizeContainer_Vtbl { @@ -4515,9 +3715,8 @@ pub struct ISynchronizeContainer_Vtbl { pub AddSynchronize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psync: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub WaitMultiple: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwflags: u32, dwtimeout: u32, ppsync: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISynchronizeEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISynchronizeEvent, ISynchronizeEvent_Vtbl, 0x00000032_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(ISynchronizeEvent, ::windows_core::IUnknown, ISynchronizeHandle); impl ISynchronizeEvent { pub unsafe fn GetHandle(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -4527,44 +3726,28 @@ impl ISynchronizeEvent { (::windows_core::Interface::vtable(self).SetEventHandle)(::windows_core::Interface::as_raw(self), ph).ok() } } -::windows_core::imp::interface_hierarchy!(ISynchronizeEvent, ::windows_core::IUnknown, ISynchronizeHandle); -unsafe impl ::windows_core::Interface for ISynchronizeEvent { - type Vtable = ISynchronizeEvent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISynchronizeEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00000032_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct ISynchronizeEvent_Vtbl { pub base__: ISynchronizeHandle_Vtbl, pub SetEventHandle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ph: *const super::super::Foundation::HANDLE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISynchronizeHandle(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISynchronizeHandle, ISynchronizeHandle_Vtbl, 0x00000031_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(ISynchronizeHandle, ::windows_core::IUnknown); impl ISynchronizeHandle { pub unsafe fn GetHandle(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetHandle)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISynchronizeHandle, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISynchronizeHandle { - type Vtable = ISynchronizeHandle_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISynchronizeHandle { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00000031_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct ISynchronizeHandle_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetHandle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ph: *mut super::super::Foundation::HANDLE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISynchronizeMutex(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISynchronizeMutex, ISynchronizeMutex_Vtbl, 0x00000025_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(ISynchronizeMutex, ::windows_core::IUnknown, ISynchronize); impl ISynchronizeMutex { pub unsafe fn Wait(&self, dwflags: u32, dwmilliseconds: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.Wait)(::windows_core::Interface::as_raw(self), dwflags, dwmilliseconds).ok() @@ -4579,43 +3762,27 @@ impl ISynchronizeMutex { (::windows_core::Interface::vtable(self).ReleaseMutex)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ISynchronizeMutex, ::windows_core::IUnknown, ISynchronize); -unsafe impl ::windows_core::Interface for ISynchronizeMutex { - type Vtable = ISynchronizeMutex_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISynchronizeMutex { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00000025_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct ISynchronizeMutex_Vtbl { pub base__: ISynchronize_Vtbl, pub ReleaseMutex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITimeAndNoticeControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITimeAndNoticeControl, ITimeAndNoticeControl_Vtbl, 0xbc0bf6ae_8878_11d1_83e9_00c04fc2c6d4); +::windows_core::imp::interface_hierarchy!(ITimeAndNoticeControl, ::windows_core::IUnknown); impl ITimeAndNoticeControl { pub unsafe fn SuppressChanges(&self, res1: u32, res2: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SuppressChanges)(::windows_core::Interface::as_raw(self), res1, res2).ok() } } -::windows_core::imp::interface_hierarchy!(ITimeAndNoticeControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITimeAndNoticeControl { - type Vtable = ITimeAndNoticeControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITimeAndNoticeControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbc0bf6ae_8878_11d1_83e9_00c04fc2c6d4); -} #[repr(C)] #[doc(hidden)] pub struct ITimeAndNoticeControl_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub SuppressChanges: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, res1: u32, res2: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITypeComp(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITypeComp, ITypeComp_Vtbl, 0x00020403_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(ITypeComp, ::windows_core::IUnknown); impl ITypeComp { #[doc = "Required features: `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -4632,13 +3799,6 @@ impl ITypeComp { (::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::imp::interface_hierarchy!(ITypeComp, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITypeComp { - type Vtable = ITypeComp_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITypeComp { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00020403_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct ITypeComp_Vtbl { @@ -4649,9 +3809,8 @@ pub struct ITypeComp_Vtbl { Bind: usize, pub BindType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, szname: ::windows_core::PCWSTR, lhashval: u32, pptinfo: *mut *mut ::core::ffi::c_void, pptcomp: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITypeInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITypeInfo, ITypeInfo_Vtbl, 0x00020401_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(ITypeInfo, ::windows_core::IUnknown); impl ITypeInfo { #[doc = "Required features: `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -4710,7 +3869,7 @@ impl ITypeInfo { pub unsafe fn CreateInstance(&self, punkouter: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam<::windows_core::IUnknown>, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -4738,13 +3897,6 @@ impl ITypeInfo { (::windows_core::Interface::vtable(self).ReleaseVarDesc)(::windows_core::Interface::as_raw(self), pvardesc) } } -::windows_core::imp::interface_hierarchy!(ITypeInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITypeInfo { - type Vtable = ITypeInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITypeInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00020401_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct ITypeInfo_Vtbl { @@ -4790,9 +3942,8 @@ pub struct ITypeInfo_Vtbl { #[cfg(not(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] ReleaseVarDesc: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITypeInfo2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITypeInfo2, ITypeInfo2_Vtbl, 0x00020412_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(ITypeInfo2, ::windows_core::IUnknown, ITypeInfo); impl ITypeInfo2 { #[doc = "Required features: `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -4851,7 +4002,7 @@ impl ITypeInfo2 { pub unsafe fn CreateInstance(&self, punkouter: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam<::windows_core::IUnknown>, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -4958,13 +4109,6 @@ impl ITypeInfo2 { (::windows_core::Interface::vtable(self).GetAllImplTypeCustData)(::windows_core::Interface::as_raw(self), index, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITypeInfo2, ::windows_core::IUnknown, ITypeInfo); -unsafe impl ::windows_core::Interface for ITypeInfo2 { - type Vtable = ITypeInfo2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITypeInfo2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00020412_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct ITypeInfo2_Vtbl { @@ -5015,9 +4159,8 @@ pub struct ITypeInfo2_Vtbl { #[cfg(not(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] GetAllImplTypeCustData: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITypeLib(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITypeLib, ITypeLib_Vtbl, 0x00020402_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(ITypeLib, ::windows_core::IUnknown); impl ITypeLib { pub unsafe fn GetTypeInfoCount(&self) -> u32 { (::windows_core::Interface::vtable(self).GetTypeInfoCount)(::windows_core::Interface::as_raw(self)) @@ -5055,13 +4198,6 @@ impl ITypeLib { (::windows_core::Interface::vtable(self).ReleaseTLibAttr)(::windows_core::Interface::as_raw(self), ptlibattr) } } -::windows_core::imp::interface_hierarchy!(ITypeLib, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITypeLib { - type Vtable = ITypeLib_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITypeLib { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00020402_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct ITypeLib_Vtbl { @@ -5077,9 +4213,8 @@ pub struct ITypeLib_Vtbl { pub FindName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sznamebuf: ::windows_core::PWSTR, lhashval: u32, pptinfo: *mut *mut ::core::ffi::c_void, rgmemid: *mut i32, pcfound: *mut u16) -> ::windows_core::HRESULT, pub ReleaseTLibAttr: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptlibattr: *const TLIBATTR), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITypeLib2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITypeLib2, ITypeLib2_Vtbl, 0x00020411_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(ITypeLib2, ::windows_core::IUnknown, ITypeLib); impl ITypeLib2 { pub unsafe fn GetTypeInfoCount(&self) -> u32 { (::windows_core::Interface::vtable(self).base__.GetTypeInfoCount)(::windows_core::Interface::as_raw(self)) @@ -5135,13 +4270,6 @@ impl ITypeLib2 { (::windows_core::Interface::vtable(self).GetAllCustData)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITypeLib2, ::windows_core::IUnknown, ITypeLib); -unsafe impl ::windows_core::Interface for ITypeLib2 { - type Vtable = ITypeLib2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITypeLib2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00020411_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct ITypeLib2_Vtbl { @@ -5157,9 +4285,8 @@ pub struct ITypeLib2_Vtbl { #[cfg(not(all(feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] GetAllCustData: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITypeLibRegistration(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITypeLibRegistration, ITypeLibRegistration_Vtbl, 0x76a3e735_02df_4a12_98eb_043ad3600af3); +::windows_core::imp::interface_hierarchy!(ITypeLibRegistration, ::windows_core::IUnknown); impl ITypeLibRegistration { pub unsafe fn GetGuid(&self) -> ::windows_core::Result<::windows_core::GUID> { let mut result__ = ::std::mem::zeroed(); @@ -5194,13 +4321,6 @@ impl ITypeLibRegistration { (::windows_core::Interface::vtable(self).GetHelpDir)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITypeLibRegistration, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITypeLibRegistration { - type Vtable = ITypeLibRegistration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITypeLibRegistration { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x76a3e735_02df_4a12_98eb_043ad3600af3); -} #[repr(C)] #[doc(hidden)] pub struct ITypeLibRegistration_Vtbl { @@ -5214,31 +4334,22 @@ pub struct ITypeLibRegistration_Vtbl { pub GetFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pflags: *mut u32) -> ::windows_core::HRESULT, pub GetHelpDir: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phelpdir: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITypeLibRegistrationReader(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITypeLibRegistrationReader, ITypeLibRegistrationReader_Vtbl, 0xed6a8a2a_b160_4e77_8f73_aa7435cd5c27); +::windows_core::imp::interface_hierarchy!(ITypeLibRegistrationReader, ::windows_core::IUnknown); impl ITypeLibRegistrationReader { pub unsafe fn EnumTypeLibRegistrations(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).EnumTypeLibRegistrations)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITypeLibRegistrationReader, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITypeLibRegistrationReader { - type Vtable = ITypeLibRegistrationReader_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITypeLibRegistrationReader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xed6a8a2a_b160_4e77_8f73_aa7435cd5c27); -} #[repr(C)] #[doc(hidden)] pub struct ITypeLibRegistrationReader_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub EnumTypeLibRegistrations: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenumunknown: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUri(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUri, IUri_Vtbl, 0xa39ee748_6a27_4817_a6f2_13914bef5890); +::windows_core::imp::interface_hierarchy!(IUri, ::windows_core::IUnknown); impl IUri { pub unsafe fn GetPropertyBSTR(&self, uriprop: Uri_PROPERTY, pbstrproperty: *mut ::windows_core::BSTR, dwflags: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetPropertyBSTR)(::windows_core::Interface::as_raw(self), uriprop, ::core::mem::transmute(pbstrproperty), dwflags).ok() @@ -5341,13 +4452,6 @@ impl IUri { (::windows_core::Interface::vtable(self).IsEqual)(::windows_core::Interface::as_raw(self), puri.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUri, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUri { - type Vtable = IUri_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUri { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa39ee748_6a27_4817_a6f2_13914bef5890); -} #[repr(C)] #[doc(hidden)] pub struct IUri_Vtbl { @@ -5378,9 +4482,8 @@ pub struct IUri_Vtbl { pub GetProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwflags: *mut u32) -> ::windows_core::HRESULT, pub IsEqual: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, puri: *mut ::core::ffi::c_void, pfequal: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUriBuilder(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUriBuilder, IUriBuilder_Vtbl, 0x4221b2e1_8955_46c0_bd5b_de9897565de7); +::windows_core::imp::interface_hierarchy!(IUriBuilder, ::windows_core::IUnknown); impl IUriBuilder { pub unsafe fn CreateUriSimple(&self, dwallowencodingpropertymask: u32, dwreserved: usize) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -5484,13 +4587,6 @@ impl IUriBuilder { (::windows_core::Interface::vtable(self).HasBeenModified)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUriBuilder, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUriBuilder { - type Vtable = IUriBuilder_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUriBuilder { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4221b2e1_8955_46c0_bd5b_de9897565de7); -} #[repr(C)] #[doc(hidden)] pub struct IUriBuilder_Vtbl { @@ -5519,9 +4615,8 @@ pub struct IUriBuilder_Vtbl { pub RemoveProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwpropertymask: u32) -> ::windows_core::HRESULT, pub HasBeenModified: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfmodified: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUrlMon(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUrlMon, IUrlMon_Vtbl, 0x00000026_0000_0000_c000_000000000046); +::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 @@ -5533,22 +4628,14 @@ impl IUrlMon { (::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::imp::interface_hierarchy!(IUrlMon, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUrlMon { - type Vtable = IUrlMon_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUrlMon { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00000026_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IUrlMon_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub AsyncGetClassBits: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rclsid: *const ::windows_core::GUID, psztype: ::windows_core::PCWSTR, pszext: ::windows_core::PCWSTR, dwfileversionms: u32, dwfileversionls: u32, pszcodebase: ::windows_core::PCWSTR, pbc: *mut ::core::ffi::c_void, dwclasscontext: u32, riid: *const ::windows_core::GUID, flags: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWaitMultiple(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWaitMultiple, IWaitMultiple_Vtbl, 0x0000002b_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IWaitMultiple, ::windows_core::IUnknown); impl IWaitMultiple { pub unsafe fn WaitMultiple(&self, timeout: u32) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -5561,13 +4648,6 @@ impl IWaitMultiple { (::windows_core::Interface::vtable(self).AddSynchronize)(::windows_core::Interface::as_raw(self), psync.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IWaitMultiple, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWaitMultiple { - type Vtable = IWaitMultiple_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWaitMultiple { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0000002b_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IWaitMultiple_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/System/ComponentServices/impl.rs b/crates/libs/windows/src/Windows/Win32/System/ComponentServices/impl.rs index c17745aa35..fa6fa9b857 100644 --- a/crates/libs/windows/src/Windows/Win32/System/ComponentServices/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/ComponentServices/impl.rs @@ -77,7 +77,7 @@ impl ContextInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -133,7 +133,7 @@ impl ContextInfo2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -164,7 +164,7 @@ impl IAppDomainHelper_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -191,7 +191,7 @@ impl IAssemblyLocator_Vtbl { Self { base__: super::Com::IDispatch_Vtbl::new::(), GetModules: GetModules:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IAsyncErrorNotify_Impl: Sized { @@ -208,7 +208,7 @@ impl IAsyncErrorNotify_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnError: OnError:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -443,7 +443,7 @@ impl ICOMAdminCatalog_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -761,7 +761,7 @@ impl ICOMAdminCatalog2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ICOMLBArguments_Impl: Sized { @@ -802,7 +802,7 @@ impl ICOMLBArguments_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1003,7 +1003,7 @@ impl ICatalogCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1105,7 +1105,7 @@ impl ICatalogObject_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ICheckSxsConfig_Impl: Sized { @@ -1122,7 +1122,7 @@ impl ICheckSxsConfig_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), IsSameSxsConfig: IsSameSxsConfig:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IComActivityEvents_Impl: Sized { @@ -1184,7 +1184,7 @@ impl IComActivityEvents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IComApp2Events_Impl: Sized { @@ -1232,7 +1232,7 @@ impl IComApp2Events_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IComAppEvents_Impl: Sized { @@ -1266,7 +1266,7 @@ impl IComAppEvents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IComCRMEvents_Impl: Sized { @@ -1384,7 +1384,7 @@ impl IComCRMEvents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IComExceptionEvents_Impl: Sized { @@ -1401,7 +1401,7 @@ impl IComExceptionEvents_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnExceptionUser: OnExceptionUser:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IComIdentityEvents_Impl: Sized { @@ -1418,7 +1418,7 @@ impl IComIdentityEvents_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnIISRequestInfo: OnIISRequestInfo:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IComInstance2Events_Impl: Sized { @@ -1445,7 +1445,7 @@ impl IComInstance2Events_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IComInstanceEvents_Impl: Sized { @@ -1472,7 +1472,7 @@ impl IComInstanceEvents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IComLTxEvents_Impl: Sized { @@ -1520,7 +1520,7 @@ impl IComLTxEvents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IComMethod2Events_Impl: Sized { @@ -1554,7 +1554,7 @@ impl IComMethod2Events_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IComMethodEvents_Impl: Sized { @@ -1588,7 +1588,7 @@ impl IComMethodEvents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IComMtaThreadPoolKnobs_Impl: Sized { @@ -1641,7 +1641,7 @@ impl IComMtaThreadPoolKnobs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IComObjectConstruction2Events_Impl: Sized { @@ -1658,7 +1658,7 @@ impl IComObjectConstruction2Events_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnObjectConstruct2: OnObjectConstruct2:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IComObjectConstructionEvents_Impl: Sized { @@ -1675,7 +1675,7 @@ impl IComObjectConstructionEvents_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnObjectConstruct: OnObjectConstruct:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IComObjectEvents_Impl: Sized { @@ -1730,7 +1730,7 @@ impl IComObjectEvents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IComObjectPool2Events_Impl: Sized { @@ -1771,7 +1771,7 @@ impl IComObjectPool2Events_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IComObjectPoolEvents_Impl: Sized { @@ -1812,7 +1812,7 @@ impl IComObjectPoolEvents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IComObjectPoolEvents2_Impl: Sized { @@ -1860,7 +1860,7 @@ impl IComObjectPoolEvents2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IComQCEvents_Impl: Sized { @@ -1922,7 +1922,7 @@ impl IComQCEvents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IComResourceEvents_Impl: Sized { @@ -1970,7 +1970,7 @@ impl IComResourceEvents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IComSecurityEvents_Impl: Sized { @@ -1997,7 +1997,7 @@ impl IComSecurityEvents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IComStaThreadPoolKnobs_Impl: Sized { @@ -2123,7 +2123,7 @@ impl IComStaThreadPoolKnobs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IComStaThreadPoolKnobs2_Impl: Sized + IComStaThreadPoolKnobs_Impl { @@ -2236,7 +2236,7 @@ impl IComStaThreadPoolKnobs2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IComThreadEvents_Impl: Sized { @@ -2326,7 +2326,7 @@ impl IComThreadEvents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IComTrackingInfoCollection_Impl: Sized { @@ -2372,7 +2372,7 @@ impl IComTrackingInfoCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IComTrackingInfoEvents_Impl: Sized { @@ -2389,7 +2389,7 @@ impl IComTrackingInfoEvents_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnNewTrackingInfo: OnNewTrackingInfo:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2416,7 +2416,7 @@ impl IComTrackingInfoObject_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetValue: GetValue:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IComTrackingInfoProperties_Impl: Sized { @@ -2455,7 +2455,7 @@ impl IComTrackingInfoProperties_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IComTransaction2Events_Impl: Sized { @@ -2496,7 +2496,7 @@ impl IComTransaction2Events_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IComTransactionEvents_Impl: Sized { @@ -2537,7 +2537,7 @@ impl IComTransactionEvents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2558,7 +2558,7 @@ impl IComUserEvent_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnUserEvent: OnUserEvent:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2616,7 +2616,7 @@ impl IContextProperties_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IContextSecurityPerimeter_Impl: Sized { @@ -2643,7 +2643,7 @@ impl IContextSecurityPerimeter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IContextState_Impl: Sized { @@ -2684,7 +2684,7 @@ impl IContextState_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICreateWithLocalTransaction_Impl: Sized { @@ -2701,7 +2701,7 @@ impl ICreateWithLocalTransaction_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CreateInstanceWithSysTx: CreateInstanceWithSysTx:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICreateWithTipTransactionEx_Impl: Sized { @@ -2718,7 +2718,7 @@ impl ICreateWithTipTransactionEx_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CreateInstance: CreateInstance:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_DistributedTransactionCoordinator\"`"] @@ -2739,7 +2739,7 @@ impl ICreateWithTransactionEx_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CreateInstance: CreateInstance:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2850,7 +2850,7 @@ impl ICrmCompensator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2961,7 +2961,7 @@ impl ICrmCompensatorVariants_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3030,7 +3030,7 @@ impl ICrmFormatLogRecords_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3102,7 +3102,7 @@ impl ICrmLogControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3145,7 +3145,7 @@ impl ICrmMonitor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3253,7 +3253,7 @@ impl ICrmMonitorClerks_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3329,7 +3329,7 @@ impl ICrmMonitorLogRecords_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDispenserDriver_Impl: Sized { @@ -3384,7 +3384,7 @@ impl IDispenserDriver_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDispenserManager_Impl: Sized { @@ -3417,7 +3417,7 @@ impl IDispenserManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumNames_Impl: Sized { @@ -3464,7 +3464,7 @@ impl IEnumNames_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3502,7 +3502,7 @@ impl IEventServerTrace_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IGetAppTrackerData_Impl: Sized { @@ -3576,7 +3576,7 @@ impl IGetAppTrackerData_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3620,7 +3620,7 @@ impl IGetContextProperties_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3647,7 +3647,7 @@ impl IGetSecurityCallContext_Vtbl { Self { base__: super::Com::IDispatch_Vtbl::new::(), GetSecurityCallContext: GetSecurityCallContext:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IHolder_Impl: Sized { @@ -3716,7 +3716,7 @@ impl IHolder_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3754,7 +3754,7 @@ impl ILBEvents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMTSActivity_Impl: Sized { @@ -3802,7 +3802,7 @@ impl IMTSActivity_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMTSCall_Impl: Sized { @@ -3819,7 +3819,7 @@ impl IMTSCall_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnCall: OnCall:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3846,7 +3846,7 @@ impl IMTSLocator_Vtbl { Self { base__: super::Com::IDispatch_Vtbl::new::(), GetEventDispatcher: GetEventDispatcher:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IManagedActivationEvents_Impl: Sized { @@ -3873,7 +3873,7 @@ impl IManagedActivationEvents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IManagedObjectInfo_Impl: Sized { @@ -3926,7 +3926,7 @@ impl IManagedObjectInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IManagedPoolAction_Impl: Sized { @@ -3943,7 +3943,7 @@ impl IManagedPoolAction_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), LastRelease: LastRelease:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IManagedPooledObj_Impl: Sized { @@ -3960,7 +3960,7 @@ impl IManagedPooledObj_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), SetHeld: SetHeld:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4050,7 +4050,7 @@ impl IMessageMover_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4132,7 +4132,7 @@ impl IMtsEventInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4208,7 +4208,7 @@ impl IMtsEvents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4258,7 +4258,7 @@ impl IMtsGrp_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IObjPool_Impl: Sized { @@ -4320,7 +4320,7 @@ impl IObjPool_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -4341,7 +4341,7 @@ impl IObjectConstruct_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Construct: Construct:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4362,7 +4362,7 @@ impl IObjectConstructString_Vtbl { Self { base__: super::Com::IDispatch_Vtbl::new::(), ConstructString: ConstructString:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IObjectContext_Impl: Sized { @@ -4431,7 +4431,7 @@ impl IObjectContext_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IObjectContextActivity_Impl: Sized { @@ -4448,7 +4448,7 @@ impl IObjectContextActivity_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetActivityId: GetActivityId:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IObjectContextInfo_Impl: Sized { @@ -4502,7 +4502,7 @@ impl IObjectContextInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IObjectContextInfo2_Impl: Sized + IObjectContextInfo_Impl { @@ -4536,7 +4536,7 @@ impl IObjectContextInfo2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IObjectContextTip_Impl: Sized { @@ -4553,7 +4553,7 @@ impl IObjectContextTip_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetTipUrl: GetTipUrl:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IObjectControl_Impl: Sized { @@ -4587,7 +4587,7 @@ impl IObjectControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPlaybackControl_Impl: Sized { @@ -4614,7 +4614,7 @@ impl IPlaybackControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4635,7 +4635,7 @@ impl IPoolManager_Vtbl { Self { base__: super::Com::IDispatch_Vtbl::new::(), ShutdownPool: ShutdownPool:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IProcessInitializer_Impl: Sized { @@ -4662,7 +4662,7 @@ impl IProcessInitializer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4757,7 +4757,7 @@ impl ISecurityCallContext_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4813,7 +4813,7 @@ impl ISecurityCallersColl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4869,7 +4869,7 @@ impl ISecurityIdentityColl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ISecurityProperty_Impl: Sized { @@ -4917,7 +4917,7 @@ impl ISecurityProperty_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISelectCOMLBServer_Impl: Sized { @@ -4944,7 +4944,7 @@ impl ISelectCOMLBServer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISendMethodEvents_Impl: Sized { @@ -4971,7 +4971,7 @@ impl ISendMethodEvents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IServiceActivity_Impl: Sized { @@ -5012,7 +5012,7 @@ impl IServiceActivity_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IServiceCall_Impl: Sized { @@ -5029,7 +5029,7 @@ impl IServiceCall_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnCall: OnCall:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IServiceComTIIntrinsicsConfig_Impl: Sized { @@ -5046,7 +5046,7 @@ impl IServiceComTIIntrinsicsConfig_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), ComTIIntrinsicsConfig: ComTIIntrinsicsConfig:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IServiceIISIntrinsicsConfig_Impl: Sized { @@ -5063,7 +5063,7 @@ impl IServiceIISIntrinsicsConfig_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), IISIntrinsicsConfig: IISIntrinsicsConfig:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IServiceInheritanceConfig_Impl: Sized { @@ -5083,7 +5083,7 @@ impl IServiceInheritanceConfig_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IServicePartitionConfig_Impl: Sized { @@ -5110,7 +5110,7 @@ impl IServicePartitionConfig_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IServicePool_Impl: Sized { @@ -5144,7 +5144,7 @@ impl IServicePool_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -5237,7 +5237,7 @@ impl IServicePoolConfig_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IServiceSxsConfig_Impl: Sized { @@ -5271,7 +5271,7 @@ impl IServiceSxsConfig_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IServiceSynchronizationConfig_Impl: Sized { @@ -5288,7 +5288,7 @@ impl IServiceSynchronizationConfig_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), ConfigureSynchronization: ConfigureSynchronization:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_DistributedTransactionCoordinator\"`"] @@ -5309,7 +5309,7 @@ impl IServiceSysTxnConfig_Vtbl { Self { base__: IServiceTransactionConfig_Vtbl::new::(), ConfigureBYOTSysTxn: ConfigureBYOTSysTxn:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IServiceThreadPoolConfig_Impl: Sized { @@ -5336,7 +5336,7 @@ impl IServiceThreadPoolConfig_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IServiceTrackerConfig_Impl: Sized { @@ -5353,7 +5353,7 @@ impl IServiceTrackerConfig_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), TrackerConfig: TrackerConfig:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_DistributedTransactionCoordinator\"`"] @@ -5374,7 +5374,7 @@ impl IServiceTransactionConfig_Vtbl { Self { base__: IServiceTransactionConfigBase_Vtbl::new::(), ConfigureBYOT: ConfigureBYOT:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IServiceTransactionConfigBase_Impl: Sized { @@ -5422,7 +5422,7 @@ impl IServiceTransactionConfigBase_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5459,7 +5459,7 @@ impl ISharedProperty_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5516,7 +5516,7 @@ impl ISharedPropertyGroup_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5566,7 +5566,7 @@ impl ISharedPropertyGroupManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ISystemAppEventData_Impl: Sized { @@ -5593,7 +5593,7 @@ impl ISystemAppEventData_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IThreadPoolKnobs_Impl: Sized { @@ -5676,7 +5676,7 @@ impl IThreadPoolKnobs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5720,7 +5720,7 @@ impl ITransactionContext_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ITransactionContextEx_Impl: Sized { @@ -5754,7 +5754,7 @@ impl ITransactionContextEx_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITransactionProperty_Impl: Sized { @@ -5899,7 +5899,7 @@ impl ITransactionProperty_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_DistributedTransactionCoordinator\"`"] @@ -5977,7 +5977,7 @@ impl ITransactionProxy_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITransactionResourcePool_Impl: Sized { @@ -6010,7 +6010,7 @@ impl ITransactionResourcePool_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITransactionStatus_Impl: Sized { @@ -6037,7 +6037,7 @@ impl ITransactionStatus_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITxProxyHolder_Impl: Sized { @@ -6054,7 +6054,7 @@ impl ITxProxyHolder_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetIdentifier: GetIdentifier:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6216,7 +6216,7 @@ impl ObjectContext_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ObjectControl_Impl: Sized { @@ -6250,7 +6250,7 @@ impl ObjectControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6319,6 +6319,6 @@ impl SecurityProperty_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } 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 f2a01d2d4c..8da34f30da 100644 --- a/crates/libs/windows/src/Windows/Win32/System/ComponentServices/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/ComponentServices/mod.rs @@ -58,11 +58,15 @@ where ::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()) } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ContextInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ContextInfo, + ContextInfo_Vtbl, + 0x19a5a02c_0ac8_11d2_b286_00c04f8ef934 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ContextInfo, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ContextInfo { pub unsafe fn IsInTransaction(&self) -> ::windows_core::Result { @@ -87,16 +91,6 @@ impl ContextInfo { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ContextInfo, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ContextInfo { - type Vtable = ContextInfo_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ContextInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x19a5a02c_0ac8_11d2_b286_00c04f8ef934); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ContextInfo_Vtbl { @@ -107,11 +101,15 @@ pub struct ContextInfo_Vtbl { pub GetActivityId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstractivityid: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub GetContextId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrctxid: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ContextInfo2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ContextInfo2, + ContextInfo2_Vtbl, + 0xc99d6e75_2375_11d4_8331_00c04f605588 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ContextInfo2, ::windows_core::IUnknown, super::Com::IDispatch, ContextInfo); #[cfg(feature = "Win32_System_Com")] impl ContextInfo2 { pub unsafe fn IsInTransaction(&self) -> ::windows_core::Result { @@ -148,16 +146,6 @@ impl ContextInfo2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ContextInfo2, ::windows_core::IUnknown, super::Com::IDispatch, ContextInfo); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ContextInfo2 { - type Vtable = ContextInfo2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ContextInfo2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc99d6e75_2375_11d4_8331_00c04f605588); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ContextInfo2_Vtbl { @@ -166,11 +154,15 @@ pub struct ContextInfo2_Vtbl { pub GetApplicationId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, __midl__contextinfo20001: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub GetApplicationInstanceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, __midl__contextinfo20002: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppDomainHelper(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IAppDomainHelper, + IAppDomainHelper_Vtbl, + 0xc7b67079_8255_42c6_9ec0_6994a3548780 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IAppDomainHelper, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IAppDomainHelper { pub unsafe fn Initialize(&self, punkad: P0, __midl__iappdomainhelper0000: isize, ppool: *mut ::core::ffi::c_void) -> ::windows_core::Result<()> @@ -187,16 +179,6 @@ impl IAppDomainHelper { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IAppDomainHelper, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IAppDomainHelper { - type Vtable = IAppDomainHelper_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IAppDomainHelper { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc7b67079_8255_42c6_9ec0_6994a3548780); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IAppDomainHelper_Vtbl { @@ -204,11 +186,15 @@ pub struct IAppDomainHelper_Vtbl { pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punkad: *mut ::core::ffi::c_void, __midl__iappdomainhelper0000: isize, ppool: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub DoCallback: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punkad: *mut ::core::ffi::c_void, __midl__iappdomainhelper0001: isize, ppool: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAssemblyLocator(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IAssemblyLocator, + IAssemblyLocator_Vtbl, + 0x391ffbb9_a8ee_432a_abc8_baa238dab90f +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IAssemblyLocator, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IAssemblyLocator { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -224,16 +210,6 @@ impl IAssemblyLocator { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IAssemblyLocator, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IAssemblyLocator { - type Vtable = IAssemblyLocator_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IAssemblyLocator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x391ffbb9_a8ee_432a_abc8_baa238dab90f); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IAssemblyLocator_Vtbl { @@ -243,32 +219,28 @@ pub struct IAssemblyLocator_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetModules: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAsyncErrorNotify(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAsyncErrorNotify, IAsyncErrorNotify_Vtbl, 0xfe6777fb_a674_4177_8f32_6d707e113484); +::windows_core::imp::interface_hierarchy!(IAsyncErrorNotify, ::windows_core::IUnknown); impl IAsyncErrorNotify { pub unsafe fn OnError(&self, hr: ::windows_core::HRESULT) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnError)(::windows_core::Interface::as_raw(self), hr).ok() } } -::windows_core::imp::interface_hierarchy!(IAsyncErrorNotify, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAsyncErrorNotify { - type Vtable = IAsyncErrorNotify_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAsyncErrorNotify { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfe6777fb_a674_4177_8f32_6d707e113484); -} #[repr(C)] #[doc(hidden)] pub struct IAsyncErrorNotify_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hr: ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICOMAdminCatalog(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICOMAdminCatalog, + ICOMAdminCatalog_Vtbl, + 0xdd662187_dfc2_11d1_a2cf_00805fc79235 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICOMAdminCatalog, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ICOMAdminCatalog { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -436,16 +408,6 @@ impl ICOMAdminCatalog { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICOMAdminCatalog, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICOMAdminCatalog { - type Vtable = ICOMAdminCatalog_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICOMAdminCatalog { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdd662187_dfc2_11d1_a2cf_00805fc79235); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICOMAdminCatalog_Vtbl { @@ -501,11 +463,15 @@ pub struct ICOMAdminCatalog_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetEventClassesForIID: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICOMAdminCatalog2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICOMAdminCatalog2, + ICOMAdminCatalog2_Vtbl, + 0x790c6e0b_9194_4cc9_9426_a48a63185696 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICOMAdminCatalog2, ::windows_core::IUnknown, super::Com::IDispatch, ICOMAdminCatalog); #[cfg(feature = "Win32_System_Com")] impl ICOMAdminCatalog2 { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -883,16 +849,6 @@ impl ICOMAdminCatalog2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICOMAdminCatalog2, ::windows_core::IUnknown, super::Com::IDispatch, ICOMAdminCatalog); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICOMAdminCatalog2 { - type Vtable = ICOMAdminCatalog2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICOMAdminCatalog2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x790c6e0b_9194_4cc9_9426_a48a63185696); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICOMAdminCatalog2_Vtbl { @@ -968,9 +924,8 @@ pub struct ICOMAdminCatalog2_Vtbl { QueryApplicationFile2: usize, pub GetComponentVersionCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrclsidorprogid: ::std::mem::MaybeUninit<::windows_core::BSTR>, plversioncount: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICOMLBArguments(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICOMLBArguments, ICOMLBArguments_Vtbl, 0x3a0f150f_8ee5_4b94_b40e_aef2f9e42ed2); +::windows_core::imp::interface_hierarchy!(ICOMLBArguments, ::windows_core::IUnknown); impl ICOMLBArguments { pub unsafe fn GetCLSID(&self, pclsid: *mut ::windows_core::GUID) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetCLSID)(::windows_core::Interface::as_raw(self), pclsid).ok() @@ -985,13 +940,6 @@ impl ICOMLBArguments { (::windows_core::Interface::vtable(self).SetMachineName)(::windows_core::Interface::as_raw(self), szservername.len().try_into().unwrap(), ::core::mem::transmute(szservername.as_ptr())).ok() } } -::windows_core::imp::interface_hierarchy!(ICOMLBArguments, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICOMLBArguments { - type Vtable = ICOMLBArguments_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICOMLBArguments { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3a0f150f_8ee5_4b94_b40e_aef2f9e42ed2); -} #[repr(C)] #[doc(hidden)] pub struct ICOMLBArguments_Vtbl { @@ -1001,11 +949,15 @@ pub struct ICOMLBArguments_Vtbl { pub GetMachineName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cchsvr: u32, szservername: ::windows_core::PWSTR) -> ::windows_core::HRESULT, pub SetMachineName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cchsvr: u32, szservername: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICatalogCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICatalogCollection, + ICatalogCollection_Vtbl, + 0x6eb22872_8a19_11d0_81b6_00a0c9231c29 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICatalogCollection, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ICatalogCollection { pub unsafe fn _NewEnum(&self) -> ::windows_core::Result<::windows_core::IUnknown> { @@ -1088,16 +1040,6 @@ impl ICatalogCollection { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICatalogCollection, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICatalogCollection { - type Vtable = ICatalogCollection_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICatalogCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6eb22872_8a19_11d0_81b6_00a0c9231c29); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICatalogCollection_Vtbl { @@ -1137,11 +1079,15 @@ pub struct ICatalogCollection_Vtbl { PopulateByKey: usize, pub PopulateByQuery: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrquerystring: ::std::mem::MaybeUninit<::windows_core::BSTR>, lquerytype: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICatalogObject(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICatalogObject, + ICatalogObject_Vtbl, + 0x6eb22871_8a19_11d0_81b6_00a0c9231c29 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICatalogObject, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ICatalogObject { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1193,16 +1139,6 @@ impl ICatalogObject { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICatalogObject, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICatalogObject { - type Vtable = ICatalogObject_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICatalogObject { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6eb22871_8a19_11d0_81b6_00a0c9231c29); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICatalogObject_Vtbl { @@ -1227,9 +1163,8 @@ pub struct ICatalogObject_Vtbl { pub Valid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbretval: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub IsPropertyWriteOnly: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpropname: ::std::mem::MaybeUninit<::windows_core::BSTR>, pbretval: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICheckSxsConfig(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICheckSxsConfig, ICheckSxsConfig_Vtbl, 0x0ff5a96f_11fc_47d1_baa6_25dd347e7242); +::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 @@ -1240,22 +1175,14 @@ impl ICheckSxsConfig { (::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::imp::interface_hierarchy!(ICheckSxsConfig, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICheckSxsConfig { - type Vtable = ICheckSxsConfig_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICheckSxsConfig { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0ff5a96f_11fc_47d1_baa6_25dd347e7242); -} #[repr(C)] #[doc(hidden)] pub struct ICheckSxsConfig_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub IsSameSxsConfig: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wszsxsname: ::windows_core::PCWSTR, wszsxsdirectory: ::windows_core::PCWSTR, wszsxsappname: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IComActivityEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IComActivityEvents, IComActivityEvents_Vtbl, 0x683130b0_2e50_11d2_98a5_00c04f8ee1c4); +::windows_core::imp::interface_hierarchy!(IComActivityEvents, ::windows_core::IUnknown); impl IComActivityEvents { pub unsafe fn OnActivityCreate(&self, pinfo: *const COMSVCSEVENTINFO, guidactivity: *const ::windows_core::GUID) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnActivityCreate)(::windows_core::Interface::as_raw(self), pinfo, guidactivity).ok() @@ -1279,13 +1206,6 @@ impl IComActivityEvents { (::windows_core::Interface::vtable(self).OnActivityLeaveSame)(::windows_core::Interface::as_raw(self), pinfo, guidcurrent, dwcalldepth).ok() } } -::windows_core::imp::interface_hierarchy!(IComActivityEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IComActivityEvents { - type Vtable = IComActivityEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IComActivityEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x683130b0_2e50_11d2_98a5_00c04f8ee1c4); -} #[repr(C)] #[doc(hidden)] pub struct IComActivityEvents_Vtbl { @@ -1298,9 +1218,8 @@ pub struct IComActivityEvents_Vtbl { pub OnActivityLeave: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidcurrent: *const ::windows_core::GUID, guidleft: *const ::windows_core::GUID) -> ::windows_core::HRESULT, pub OnActivityLeaveSame: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidcurrent: *const ::windows_core::GUID, dwcalldepth: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IComApp2Events(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IComApp2Events, IComApp2Events_Vtbl, 0x1290bc1a_b219_418d_b078_5934ded08242); +::windows_core::imp::interface_hierarchy!(IComApp2Events, ::windows_core::IUnknown); impl IComApp2Events { pub unsafe fn OnAppActivation2(&self, pinfo: *const COMSVCSEVENTINFO, guidapp: ::windows_core::GUID, guidprocess: ::windows_core::GUID) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnAppActivation2)(::windows_core::Interface::as_raw(self), pinfo, ::core::mem::transmute(guidapp), ::core::mem::transmute(guidprocess)).ok() @@ -1321,13 +1240,6 @@ impl IComApp2Events { (::windows_core::Interface::vtable(self).OnAppRecycle2)(::windows_core::Interface::as_raw(self), pinfo, ::core::mem::transmute(guidapp), ::core::mem::transmute(guidprocess), lreason).ok() } } -::windows_core::imp::interface_hierarchy!(IComApp2Events, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IComApp2Events { - type Vtable = IComApp2Events_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IComApp2Events { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1290bc1a_b219_418d_b078_5934ded08242); -} #[repr(C)] #[doc(hidden)] pub struct IComApp2Events_Vtbl { @@ -1338,9 +1250,8 @@ pub struct IComApp2Events_Vtbl { pub OnAppPaused2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidapp: ::windows_core::GUID, bpaused: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub OnAppRecycle2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidapp: ::windows_core::GUID, guidprocess: ::windows_core::GUID, lreason: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IComAppEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IComAppEvents, IComAppEvents_Vtbl, 0x683130a6_2e50_11d2_98a5_00c04f8ee1c4); +::windows_core::imp::interface_hierarchy!(IComAppEvents, ::windows_core::IUnknown); impl IComAppEvents { pub unsafe fn OnAppActivation(&self, pinfo: *const COMSVCSEVENTINFO, guidapp: ::windows_core::GUID) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnAppActivation)(::windows_core::Interface::as_raw(self), pinfo, ::core::mem::transmute(guidapp)).ok() @@ -1352,13 +1263,6 @@ impl IComAppEvents { (::windows_core::Interface::vtable(self).OnAppForceShutdown)(::windows_core::Interface::as_raw(self), pinfo, ::core::mem::transmute(guidapp)).ok() } } -::windows_core::imp::interface_hierarchy!(IComAppEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IComAppEvents { - type Vtable = IComAppEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IComAppEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x683130a6_2e50_11d2_98a5_00c04f8ee1c4); -} #[repr(C)] #[doc(hidden)] pub struct IComAppEvents_Vtbl { @@ -1367,9 +1271,8 @@ pub struct IComAppEvents_Vtbl { pub OnAppShutdown: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidapp: ::windows_core::GUID) -> ::windows_core::HRESULT, pub OnAppForceShutdown: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidapp: ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IComCRMEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IComCRMEvents, IComCRMEvents_Vtbl, 0x683130b5_2e50_11d2_98a5_00c04f8ee1c4); +::windows_core::imp::interface_hierarchy!(IComCRMEvents, ::windows_core::IUnknown); impl IComCRMEvents { pub unsafe fn OnCRMRecoveryStart(&self, pinfo: *const COMSVCSEVENTINFO, guidapp: ::windows_core::GUID) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnCRMRecoveryStart)(::windows_core::Interface::as_raw(self), pinfo, ::core::mem::transmute(guidapp)).ok() @@ -1423,13 +1326,6 @@ impl IComCRMEvents { (::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::imp::interface_hierarchy!(IComCRMEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IComCRMEvents { - type Vtable = IComCRMEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IComCRMEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x683130b5_2e50_11d2_98a5_00c04f8ee1c4); -} #[repr(C)] #[doc(hidden)] pub struct IComCRMEvents_Vtbl { @@ -1450,9 +1346,8 @@ pub struct IComCRMEvents_Vtbl { pub OnCRMForce: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidclerkclsid: ::windows_core::GUID) -> ::windows_core::HRESULT, pub OnCRMDeliver: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidclerkclsid: ::windows_core::GUID, fvariants: super::super::Foundation::BOOL, dwrecordsize: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IComExceptionEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IComExceptionEvents, IComExceptionEvents_Vtbl, 0x683130b3_2e50_11d2_98a5_00c04f8ee1c4); +::windows_core::imp::interface_hierarchy!(IComExceptionEvents, ::windows_core::IUnknown); impl IComExceptionEvents { pub unsafe fn OnExceptionUser(&self, pinfo: *const COMSVCSEVENTINFO, code: u32, address: u64, pszstacktrace: P0) -> ::windows_core::Result<()> where @@ -1461,22 +1356,14 @@ impl IComExceptionEvents { (::windows_core::Interface::vtable(self).OnExceptionUser)(::windows_core::Interface::as_raw(self), pinfo, code, address, pszstacktrace.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IComExceptionEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IComExceptionEvents { - type Vtable = IComExceptionEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IComExceptionEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x683130b3_2e50_11d2_98a5_00c04f8ee1c4); -} #[repr(C)] #[doc(hidden)] pub struct IComExceptionEvents_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnExceptionUser: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, code: u32, address: u64, pszstacktrace: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IComIdentityEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IComIdentityEvents, IComIdentityEvents_Vtbl, 0x683130b1_2e50_11d2_98a5_00c04f8ee1c4); +::windows_core::imp::interface_hierarchy!(IComIdentityEvents, ::windows_core::IUnknown); impl IComIdentityEvents { pub unsafe fn OnIISRequestInfo(&self, pinfo: *const COMSVCSEVENTINFO, objid: u64, pszclientip: P0, pszserverip: P1, pszurl: P2) -> ::windows_core::Result<()> where @@ -1487,22 +1374,14 @@ impl IComIdentityEvents { (::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::imp::interface_hierarchy!(IComIdentityEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IComIdentityEvents { - type Vtable = IComIdentityEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IComIdentityEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x683130b1_2e50_11d2_98a5_00c04f8ee1c4); -} #[repr(C)] #[doc(hidden)] pub struct IComIdentityEvents_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnIISRequestInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, objid: u64, pszclientip: ::windows_core::PCWSTR, pszserverip: ::windows_core::PCWSTR, pszurl: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IComInstance2Events(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IComInstance2Events, IComInstance2Events_Vtbl, 0x20e3bf07_b506_4ad5_a50c_d2ca5b9c158e); +::windows_core::imp::interface_hierarchy!(IComInstance2Events, ::windows_core::IUnknown); impl IComInstance2Events { pub unsafe fn OnObjectCreate2(&self, pinfo: *const COMSVCSEVENTINFO, guidactivity: *const ::windows_core::GUID, clsid: *const ::windows_core::GUID, tsid: *const ::windows_core::GUID, ctxtid: u64, objectid: u64, guidpartition: *const ::windows_core::GUID) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnObjectCreate2)(::windows_core::Interface::as_raw(self), pinfo, guidactivity, clsid, tsid, ctxtid, objectid, guidpartition).ok() @@ -1511,13 +1390,6 @@ impl IComInstance2Events { (::windows_core::Interface::vtable(self).OnObjectDestroy2)(::windows_core::Interface::as_raw(self), pinfo, ctxtid).ok() } } -::windows_core::imp::interface_hierarchy!(IComInstance2Events, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IComInstance2Events { - type Vtable = IComInstance2Events_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IComInstance2Events { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x20e3bf07_b506_4ad5_a50c_d2ca5b9c158e); -} #[repr(C)] #[doc(hidden)] pub struct IComInstance2Events_Vtbl { @@ -1525,9 +1397,8 @@ pub struct IComInstance2Events_Vtbl { pub OnObjectCreate2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidactivity: *const ::windows_core::GUID, clsid: *const ::windows_core::GUID, tsid: *const ::windows_core::GUID, ctxtid: u64, objectid: u64, guidpartition: *const ::windows_core::GUID) -> ::windows_core::HRESULT, pub OnObjectDestroy2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, ctxtid: u64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IComInstanceEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IComInstanceEvents, IComInstanceEvents_Vtbl, 0x683130a7_2e50_11d2_98a5_00c04f8ee1c4); +::windows_core::imp::interface_hierarchy!(IComInstanceEvents, ::windows_core::IUnknown); impl IComInstanceEvents { pub unsafe fn OnObjectCreate(&self, pinfo: *const COMSVCSEVENTINFO, guidactivity: *const ::windows_core::GUID, clsid: *const ::windows_core::GUID, tsid: *const ::windows_core::GUID, ctxtid: u64, objectid: u64) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnObjectCreate)(::windows_core::Interface::as_raw(self), pinfo, guidactivity, clsid, tsid, ctxtid, objectid).ok() @@ -1536,13 +1407,6 @@ impl IComInstanceEvents { (::windows_core::Interface::vtable(self).OnObjectDestroy)(::windows_core::Interface::as_raw(self), pinfo, ctxtid).ok() } } -::windows_core::imp::interface_hierarchy!(IComInstanceEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IComInstanceEvents { - type Vtable = IComInstanceEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IComInstanceEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x683130a7_2e50_11d2_98a5_00c04f8ee1c4); -} #[repr(C)] #[doc(hidden)] pub struct IComInstanceEvents_Vtbl { @@ -1550,9 +1414,8 @@ pub struct IComInstanceEvents_Vtbl { pub OnObjectCreate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidactivity: *const ::windows_core::GUID, clsid: *const ::windows_core::GUID, tsid: *const ::windows_core::GUID, ctxtid: u64, objectid: u64) -> ::windows_core::HRESULT, pub OnObjectDestroy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, ctxtid: u64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IComLTxEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IComLTxEvents, IComLTxEvents_Vtbl, 0x605cf82c_578e_4298_975d_82babcd9e053); +::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 @@ -1576,13 +1439,6 @@ impl IComLTxEvents { (::windows_core::Interface::vtable(self).OnLtxTransactionPromote)(::windows_core::Interface::as_raw(self), pinfo, ::core::mem::transmute(guidltx), ::core::mem::transmute(txnid)).ok() } } -::windows_core::imp::interface_hierarchy!(IComLTxEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IComLTxEvents { - type Vtable = IComLTxEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IComLTxEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x605cf82c_578e_4298_975d_82babcd9e053); -} #[repr(C)] #[doc(hidden)] pub struct IComLTxEvents_Vtbl { @@ -1593,9 +1449,8 @@ pub struct IComLTxEvents_Vtbl { pub OnLtxTransactionCommit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidltx: ::windows_core::GUID) -> ::windows_core::HRESULT, pub OnLtxTransactionPromote: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidltx: ::windows_core::GUID, txnid: ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IComMethod2Events(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IComMethod2Events, IComMethod2Events_Vtbl, 0xfb388aaa_567d_4024_af8e_6e93ee748573); +::windows_core::imp::interface_hierarchy!(IComMethod2Events, ::windows_core::IUnknown); impl IComMethod2Events { pub unsafe fn OnMethodCall2(&self, pinfo: *const COMSVCSEVENTINFO, oid: u64, guidcid: *const ::windows_core::GUID, guidrid: *const ::windows_core::GUID, dwthread: u32, imeth: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnMethodCall2)(::windows_core::Interface::as_raw(self), pinfo, oid, guidcid, guidrid, dwthread, imeth).ok() @@ -1607,13 +1462,6 @@ impl IComMethod2Events { (::windows_core::Interface::vtable(self).OnMethodException2)(::windows_core::Interface::as_raw(self), pinfo, oid, guidcid, guidrid, dwthread, imeth).ok() } } -::windows_core::imp::interface_hierarchy!(IComMethod2Events, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IComMethod2Events { - type Vtable = IComMethod2Events_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IComMethod2Events { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfb388aaa_567d_4024_af8e_6e93ee748573); -} #[repr(C)] #[doc(hidden)] pub struct IComMethod2Events_Vtbl { @@ -1622,9 +1470,8 @@ pub struct IComMethod2Events_Vtbl { pub OnMethodReturn2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, oid: u64, guidcid: *const ::windows_core::GUID, guidrid: *const ::windows_core::GUID, dwthread: u32, imeth: u32, hresult: ::windows_core::HRESULT) -> ::windows_core::HRESULT, pub OnMethodException2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, oid: u64, guidcid: *const ::windows_core::GUID, guidrid: *const ::windows_core::GUID, dwthread: u32, imeth: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IComMethodEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IComMethodEvents, IComMethodEvents_Vtbl, 0x683130a9_2e50_11d2_98a5_00c04f8ee1c4); +::windows_core::imp::interface_hierarchy!(IComMethodEvents, ::windows_core::IUnknown); impl IComMethodEvents { pub unsafe fn OnMethodCall(&self, pinfo: *const COMSVCSEVENTINFO, oid: u64, guidcid: *const ::windows_core::GUID, guidrid: *const ::windows_core::GUID, imeth: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnMethodCall)(::windows_core::Interface::as_raw(self), pinfo, oid, guidcid, guidrid, imeth).ok() @@ -1636,13 +1483,6 @@ impl IComMethodEvents { (::windows_core::Interface::vtable(self).OnMethodException)(::windows_core::Interface::as_raw(self), pinfo, oid, guidcid, guidrid, imeth).ok() } } -::windows_core::imp::interface_hierarchy!(IComMethodEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IComMethodEvents { - type Vtable = IComMethodEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IComMethodEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x683130a9_2e50_11d2_98a5_00c04f8ee1c4); -} #[repr(C)] #[doc(hidden)] pub struct IComMethodEvents_Vtbl { @@ -1651,9 +1491,8 @@ pub struct IComMethodEvents_Vtbl { pub OnMethodReturn: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, oid: u64, guidcid: *const ::windows_core::GUID, guidrid: *const ::windows_core::GUID, imeth: u32, hresult: ::windows_core::HRESULT) -> ::windows_core::HRESULT, pub OnMethodException: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, oid: u64, guidcid: *const ::windows_core::GUID, guidrid: *const ::windows_core::GUID, imeth: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IComMtaThreadPoolKnobs(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IComMtaThreadPoolKnobs, IComMtaThreadPoolKnobs_Vtbl, 0xf9a76d2e_76a5_43eb_a0c4_49bec8e48480); +::windows_core::imp::interface_hierarchy!(IComMtaThreadPoolKnobs, ::windows_core::IUnknown); impl IComMtaThreadPoolKnobs { pub unsafe fn MTASetMaxThreadCount(&self, dwmaxthreads: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).MTASetMaxThreadCount)(::windows_core::Interface::as_raw(self), dwmaxthreads).ok() @@ -1670,13 +1509,6 @@ impl IComMtaThreadPoolKnobs { (::windows_core::Interface::vtable(self).MTAGetThrottleValue)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IComMtaThreadPoolKnobs, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IComMtaThreadPoolKnobs { - type Vtable = IComMtaThreadPoolKnobs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IComMtaThreadPoolKnobs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf9a76d2e_76a5_43eb_a0c4_49bec8e48480); -} #[repr(C)] #[doc(hidden)] pub struct IComMtaThreadPoolKnobs_Vtbl { @@ -1686,9 +1518,8 @@ pub struct IComMtaThreadPoolKnobs_Vtbl { pub MTASetThrottleValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwthrottle: u32) -> ::windows_core::HRESULT, pub MTAGetThrottleValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwthrottle: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IComObjectConstruction2Events(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IComObjectConstruction2Events, IComObjectConstruction2Events_Vtbl, 0x4b5a7827_8df2_45c0_8f6f_57ea1f856a9f); +::windows_core::imp::interface_hierarchy!(IComObjectConstruction2Events, ::windows_core::IUnknown); 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 @@ -1697,22 +1528,14 @@ impl IComObjectConstruction2Events { (::windows_core::Interface::vtable(self).OnObjectConstruct2)(::windows_core::Interface::as_raw(self), pinfo, guidobject, sconstructstring.into_param().abi(), oid, guidpartition).ok() } } -::windows_core::imp::interface_hierarchy!(IComObjectConstruction2Events, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IComObjectConstruction2Events { - type Vtable = IComObjectConstruction2Events_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IComObjectConstruction2Events { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4b5a7827_8df2_45c0_8f6f_57ea1f856a9f); -} #[repr(C)] #[doc(hidden)] pub struct IComObjectConstruction2Events_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnObjectConstruct2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidobject: *const ::windows_core::GUID, sconstructstring: ::windows_core::PCWSTR, oid: u64, guidpartition: *const ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IComObjectConstructionEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IComObjectConstructionEvents, IComObjectConstructionEvents_Vtbl, 0x683130af_2e50_11d2_98a5_00c04f8ee1c4); +::windows_core::imp::interface_hierarchy!(IComObjectConstructionEvents, ::windows_core::IUnknown); impl IComObjectConstructionEvents { pub unsafe fn OnObjectConstruct(&self, pinfo: *const COMSVCSEVENTINFO, guidobject: *const ::windows_core::GUID, sconstructstring: P0, oid: u64) -> ::windows_core::Result<()> where @@ -1721,22 +1544,14 @@ impl IComObjectConstructionEvents { (::windows_core::Interface::vtable(self).OnObjectConstruct)(::windows_core::Interface::as_raw(self), pinfo, guidobject, sconstructstring.into_param().abi(), oid).ok() } } -::windows_core::imp::interface_hierarchy!(IComObjectConstructionEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IComObjectConstructionEvents { - type Vtable = IComObjectConstructionEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IComObjectConstructionEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x683130af_2e50_11d2_98a5_00c04f8ee1c4); -} #[repr(C)] #[doc(hidden)] pub struct IComObjectConstructionEvents_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnObjectConstruct: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidobject: *const ::windows_core::GUID, sconstructstring: ::windows_core::PCWSTR, oid: u64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IComObjectEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IComObjectEvents, IComObjectEvents_Vtbl, 0x683130aa_2e50_11d2_98a5_00c04f8ee1c4); +::windows_core::imp::interface_hierarchy!(IComObjectEvents, ::windows_core::IUnknown); impl IComObjectEvents { pub unsafe fn OnObjectActivate(&self, pinfo: *const COMSVCSEVENTINFO, ctxtid: u64, objectid: u64) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnObjectActivate)(::windows_core::Interface::as_raw(self), pinfo, ctxtid, objectid).ok() @@ -1757,13 +1572,6 @@ impl IComObjectEvents { (::windows_core::Interface::vtable(self).OnSetAbort)(::windows_core::Interface::as_raw(self), pinfo, ctxtid).ok() } } -::windows_core::imp::interface_hierarchy!(IComObjectEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IComObjectEvents { - type Vtable = IComObjectEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IComObjectEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x683130aa_2e50_11d2_98a5_00c04f8ee1c4); -} #[repr(C)] #[doc(hidden)] pub struct IComObjectEvents_Vtbl { @@ -1775,9 +1583,8 @@ pub struct IComObjectEvents_Vtbl { pub OnSetComplete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, ctxtid: u64) -> ::windows_core::HRESULT, pub OnSetAbort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, ctxtid: u64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IComObjectPool2Events(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IComObjectPool2Events, IComObjectPool2Events_Vtbl, 0x65bf6534_85ea_4f64_8cf4_3d974b2ab1cf); +::windows_core::imp::interface_hierarchy!(IComObjectPool2Events, ::windows_core::IUnknown); impl IComObjectPool2Events { pub unsafe fn OnObjPoolPutObject2(&self, pinfo: *const COMSVCSEVENTINFO, guidobject: *const ::windows_core::GUID, nreason: i32, dwavailable: u32, oid: u64) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnObjPoolPutObject2)(::windows_core::Interface::as_raw(self), pinfo, guidobject, nreason, dwavailable, oid).ok() @@ -1792,13 +1599,6 @@ impl IComObjectPool2Events { (::windows_core::Interface::vtable(self).OnObjPoolGetFromTx2)(::windows_core::Interface::as_raw(self), pinfo, guidactivity, guidobject, guidtx, objid, guidpartition).ok() } } -::windows_core::imp::interface_hierarchy!(IComObjectPool2Events, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IComObjectPool2Events { - type Vtable = IComObjectPool2Events_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IComObjectPool2Events { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x65bf6534_85ea_4f64_8cf4_3d974b2ab1cf); -} #[repr(C)] #[doc(hidden)] pub struct IComObjectPool2Events_Vtbl { @@ -1808,9 +1608,8 @@ pub struct IComObjectPool2Events_Vtbl { pub OnObjPoolRecycleToTx2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidactivity: *const ::windows_core::GUID, guidobject: *const ::windows_core::GUID, guidtx: *const ::windows_core::GUID, objid: u64) -> ::windows_core::HRESULT, pub OnObjPoolGetFromTx2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidactivity: *const ::windows_core::GUID, guidobject: *const ::windows_core::GUID, guidtx: *const ::windows_core::GUID, objid: u64, guidpartition: *const ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IComObjectPoolEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IComObjectPoolEvents, IComObjectPoolEvents_Vtbl, 0x683130ad_2e50_11d2_98a5_00c04f8ee1c4); +::windows_core::imp::interface_hierarchy!(IComObjectPoolEvents, ::windows_core::IUnknown); impl IComObjectPoolEvents { pub unsafe fn OnObjPoolPutObject(&self, pinfo: *const COMSVCSEVENTINFO, guidobject: *const ::windows_core::GUID, nreason: i32, dwavailable: u32, oid: u64) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnObjPoolPutObject)(::windows_core::Interface::as_raw(self), pinfo, guidobject, nreason, dwavailable, oid).ok() @@ -1825,13 +1624,6 @@ impl IComObjectPoolEvents { (::windows_core::Interface::vtable(self).OnObjPoolGetFromTx)(::windows_core::Interface::as_raw(self), pinfo, guidactivity, guidobject, guidtx, objid).ok() } } -::windows_core::imp::interface_hierarchy!(IComObjectPoolEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IComObjectPoolEvents { - type Vtable = IComObjectPoolEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IComObjectPoolEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x683130ad_2e50_11d2_98a5_00c04f8ee1c4); -} #[repr(C)] #[doc(hidden)] pub struct IComObjectPoolEvents_Vtbl { @@ -1841,9 +1633,8 @@ pub struct IComObjectPoolEvents_Vtbl { pub OnObjPoolRecycleToTx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidactivity: *const ::windows_core::GUID, guidobject: *const ::windows_core::GUID, guidtx: *const ::windows_core::GUID, objid: u64) -> ::windows_core::HRESULT, pub OnObjPoolGetFromTx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidactivity: *const ::windows_core::GUID, guidobject: *const ::windows_core::GUID, guidtx: *const ::windows_core::GUID, objid: u64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IComObjectPoolEvents2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IComObjectPoolEvents2, IComObjectPoolEvents2_Vtbl, 0x683130ae_2e50_11d2_98a5_00c04f8ee1c4); +::windows_core::imp::interface_hierarchy!(IComObjectPoolEvents2, ::windows_core::IUnknown); impl IComObjectPoolEvents2 { pub unsafe fn OnObjPoolCreateObject(&self, pinfo: *const COMSVCSEVENTINFO, guidobject: *const ::windows_core::GUID, dwobjscreated: u32, oid: u64) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnObjPoolCreateObject)(::windows_core::Interface::as_raw(self), pinfo, guidobject, dwobjscreated, oid).ok() @@ -1861,13 +1652,6 @@ impl IComObjectPoolEvents2 { (::windows_core::Interface::vtable(self).OnObjPoolCreatePool)(::windows_core::Interface::as_raw(self), pinfo, guidobject, dwmin, dwmax, dwtimeout).ok() } } -::windows_core::imp::interface_hierarchy!(IComObjectPoolEvents2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IComObjectPoolEvents2 { - type Vtable = IComObjectPoolEvents2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IComObjectPoolEvents2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x683130ae_2e50_11d2_98a5_00c04f8ee1c4); -} #[repr(C)] #[doc(hidden)] pub struct IComObjectPoolEvents2_Vtbl { @@ -1878,9 +1662,8 @@ pub struct IComObjectPoolEvents2_Vtbl { pub OnObjPoolTimeout: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidobject: *const ::windows_core::GUID, guidactivity: *const ::windows_core::GUID, dwtimeout: u32) -> ::windows_core::HRESULT, pub OnObjPoolCreatePool: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidobject: *const ::windows_core::GUID, dwmin: u32, dwmax: u32, dwtimeout: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IComQCEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IComQCEvents, IComQCEvents_Vtbl, 0x683130b2_2e50_11d2_98a5_00c04f8ee1c4); +::windows_core::imp::interface_hierarchy!(IComQCEvents, ::windows_core::IUnknown); impl IComQCEvents { pub unsafe fn OnQCRecord(&self, pinfo: *const COMSVCSEVENTINFO, objid: u64, szqueue: &[u16; 60], guidmsgid: *const ::windows_core::GUID, guidworkflowid: *const ::windows_core::GUID, msmqhr: ::windows_core::HRESULT) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnQCRecord)(::windows_core::Interface::as_raw(self), pinfo, objid, ::core::mem::transmute(szqueue.as_ptr()), guidmsgid, guidworkflowid, msmqhr).ok() @@ -1904,13 +1687,6 @@ impl IComQCEvents { (::windows_core::Interface::vtable(self).OnQCPlayback)(::windows_core::Interface::as_raw(self), pinfo, objid, guidmsgid, guidworkflowid, hr).ok() } } -::windows_core::imp::interface_hierarchy!(IComQCEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IComQCEvents { - type Vtable = IComQCEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IComQCEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x683130b2_2e50_11d2_98a5_00c04f8ee1c4); -} #[repr(C)] #[doc(hidden)] pub struct IComQCEvents_Vtbl { @@ -1923,9 +1699,8 @@ pub struct IComQCEvents_Vtbl { pub OnQCMoveToDeadQueue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidmsgid: *const ::windows_core::GUID, guidworkflowid: *const ::windows_core::GUID) -> ::windows_core::HRESULT, pub OnQCPlayback: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, objid: u64, guidmsgid: *const ::windows_core::GUID, guidworkflowid: *const ::windows_core::GUID, hr: ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IComResourceEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IComResourceEvents, IComResourceEvents_Vtbl, 0x683130ab_2e50_11d2_98a5_00c04f8ee1c4); +::windows_core::imp::interface_hierarchy!(IComResourceEvents, ::windows_core::IUnknown); impl IComResourceEvents { pub unsafe fn OnResourceCreate(&self, pinfo: *const COMSVCSEVENTINFO, objectid: u64, psztype: P0, resid: u64, enlisted: P1) -> ::windows_core::Result<()> where @@ -1961,13 +1736,6 @@ impl IComResourceEvents { (::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::imp::interface_hierarchy!(IComResourceEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IComResourceEvents { - type Vtable = IComResourceEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IComResourceEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x683130ab_2e50_11d2_98a5_00c04f8ee1c4); -} #[repr(C)] #[doc(hidden)] pub struct IComResourceEvents_Vtbl { @@ -1978,9 +1746,8 @@ pub struct IComResourceEvents_Vtbl { pub OnResourceDestroy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, objectid: u64, hr: ::windows_core::HRESULT, psztype: ::windows_core::PCWSTR, resid: u64) -> ::windows_core::HRESULT, pub OnResourceTrack: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, objectid: u64, psztype: ::windows_core::PCWSTR, resid: u64, enlisted: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IComSecurityEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IComSecurityEvents, IComSecurityEvents_Vtbl, 0x683130ac_2e50_11d2_98a5_00c04f8ee1c4); +::windows_core::imp::interface_hierarchy!(IComSecurityEvents, ::windows_core::IUnknown); impl IComSecurityEvents { pub unsafe fn OnAuthenticate(&self, pinfo: *const COMSVCSEVENTINFO, guidactivity: *const ::windows_core::GUID, objectid: u64, guidiid: *const ::windows_core::GUID, imeth: u32, psidoriginaluser: &[u8], psidcurrentuser: &[u8], bcurrentuserinpersonatinginproc: P0) -> ::windows_core::Result<()> where @@ -1995,13 +1762,6 @@ impl IComSecurityEvents { (::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::imp::interface_hierarchy!(IComSecurityEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IComSecurityEvents { - type Vtable = IComSecurityEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IComSecurityEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x683130ac_2e50_11d2_98a5_00c04f8ee1c4); -} #[repr(C)] #[doc(hidden)] pub struct IComSecurityEvents_Vtbl { @@ -2009,9 +1769,8 @@ pub struct IComSecurityEvents_Vtbl { pub OnAuthenticate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidactivity: *const ::windows_core::GUID, objectid: u64, guidiid: *const ::windows_core::GUID, imeth: u32, cbbyteorig: u32, psidoriginaluser: *const u8, cbbytecur: u32, psidcurrentuser: *const u8, bcurrentuserinpersonatinginproc: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub OnAuthenticateFail: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidactivity: *const ::windows_core::GUID, objectid: u64, guidiid: *const ::windows_core::GUID, imeth: u32, cbbyteorig: u32, psidoriginaluser: *const u8, cbbytecur: u32, psidcurrentuser: *const u8, bcurrentuserinpersonatinginproc: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IComStaThreadPoolKnobs(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IComStaThreadPoolKnobs, IComStaThreadPoolKnobs_Vtbl, 0x324b64fa_33b6_11d2_98b7_00c04f8ee1c4); +::windows_core::imp::interface_hierarchy!(IComStaThreadPoolKnobs, ::windows_core::IUnknown); impl IComStaThreadPoolKnobs { pub unsafe fn SetMinThreadCount(&self, minthreads: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetMinThreadCount)(::windows_core::Interface::as_raw(self), minthreads).ok() @@ -2053,13 +1812,6 @@ impl IComStaThreadPoolKnobs { (::windows_core::Interface::vtable(self).SetQueueDepth)(::windows_core::Interface::as_raw(self), dwqdepth).ok() } } -::windows_core::imp::interface_hierarchy!(IComStaThreadPoolKnobs, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IComStaThreadPoolKnobs { - type Vtable = IComStaThreadPoolKnobs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IComStaThreadPoolKnobs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x324b64fa_33b6_11d2_98b7_00c04f8ee1c4); -} #[repr(C)] #[doc(hidden)] pub struct IComStaThreadPoolKnobs_Vtbl { @@ -2076,9 +1828,8 @@ pub struct IComStaThreadPoolKnobs_Vtbl { pub GetQueueDepth: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwqdepth: *mut u32) -> ::windows_core::HRESULT, pub SetQueueDepth: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwqdepth: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IComStaThreadPoolKnobs2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IComStaThreadPoolKnobs2, IComStaThreadPoolKnobs2_Vtbl, 0x73707523_ff9a_4974_bf84_2108dc213740); +::windows_core::imp::interface_hierarchy!(IComStaThreadPoolKnobs2, ::windows_core::IUnknown, IComStaThreadPoolKnobs); impl IComStaThreadPoolKnobs2 { pub unsafe fn SetMinThreadCount(&self, minthreads: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.SetMinThreadCount)(::windows_core::Interface::as_raw(self), minthreads).ok() @@ -2161,13 +1912,6 @@ impl IComStaThreadPoolKnobs2 { (::windows_core::Interface::vtable(self).SetWaitTimeForThreadCleanup)(::windows_core::Interface::as_raw(self), dwthreadcleanupwaittime).ok() } } -::windows_core::imp::interface_hierarchy!(IComStaThreadPoolKnobs2, ::windows_core::IUnknown, IComStaThreadPoolKnobs); -unsafe impl ::windows_core::Interface for IComStaThreadPoolKnobs2 { - type Vtable = IComStaThreadPoolKnobs2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IComStaThreadPoolKnobs2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x73707523_ff9a_4974_bf84_2108dc213740); -} #[repr(C)] #[doc(hidden)] pub struct IComStaThreadPoolKnobs2_Vtbl { @@ -2183,9 +1927,8 @@ pub struct IComStaThreadPoolKnobs2_Vtbl { pub GetWaitTimeForThreadCleanup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwthreadcleanupwaittime: *mut u32) -> ::windows_core::HRESULT, pub SetWaitTimeForThreadCleanup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwthreadcleanupwaittime: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IComThreadEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IComThreadEvents, IComThreadEvents_Vtbl, 0x683130a5_2e50_11d2_98a5_00c04f8ee1c4); +::windows_core::imp::interface_hierarchy!(IComThreadEvents, ::windows_core::IUnknown); impl IComThreadEvents { pub unsafe fn OnThreadStart(&self, pinfo: *const COMSVCSEVENTINFO, threadid: u64, dwthread: u32, dwtheadcnt: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnThreadStart)(::windows_core::Interface::as_raw(self), pinfo, threadid, dwthread, dwtheadcnt).ok() @@ -2221,13 +1964,6 @@ impl IComThreadEvents { (::windows_core::Interface::vtable(self).OnThreadUnassignApartment)(::windows_core::Interface::as_raw(self), pinfo, aptid).ok() } } -::windows_core::imp::interface_hierarchy!(IComThreadEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IComThreadEvents { - type Vtable = IComThreadEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IComThreadEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x683130a5_2e50_11d2_98a5_00c04f8ee1c4); -} #[repr(C)] #[doc(hidden)] pub struct IComThreadEvents_Vtbl { @@ -2244,9 +1980,8 @@ pub struct IComThreadEvents_Vtbl { pub OnThreadAssignApartment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidactivity: *const ::windows_core::GUID, aptid: u64) -> ::windows_core::HRESULT, pub OnThreadUnassignApartment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, aptid: u64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IComTrackingInfoCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IComTrackingInfoCollection, IComTrackingInfoCollection_Vtbl, 0xc266c677_c9ad_49ab_9fd9_d9661078588a); +::windows_core::imp::interface_hierarchy!(IComTrackingInfoCollection, ::windows_core::IUnknown); impl IComTrackingInfoCollection { pub unsafe fn Type(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2260,13 +1995,6 @@ impl IComTrackingInfoCollection { (::windows_core::Interface::vtable(self).Item)(::windows_core::Interface::as_raw(self), ulindex, riid, ppv).ok() } } -::windows_core::imp::interface_hierarchy!(IComTrackingInfoCollection, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IComTrackingInfoCollection { - type Vtable = IComTrackingInfoCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IComTrackingInfoCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc266c677_c9ad_49ab_9fd9_d9661078588a); -} #[repr(C)] #[doc(hidden)] pub struct IComTrackingInfoCollection_Vtbl { @@ -2275,9 +2003,8 @@ pub struct IComTrackingInfoCollection_Vtbl { pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcount: *mut u32) -> ::windows_core::HRESULT, pub Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulindex: u32, riid: *const ::windows_core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IComTrackingInfoEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IComTrackingInfoEvents, IComTrackingInfoEvents_Vtbl, 0x4e6cdcc9_fb25_4fd5_9cc5_c9f4b6559cec); +::windows_core::imp::interface_hierarchy!(IComTrackingInfoEvents, ::windows_core::IUnknown); impl IComTrackingInfoEvents { pub unsafe fn OnNewTrackingInfo(&self, ptoplevelcollection: P0) -> ::windows_core::Result<()> where @@ -2286,22 +2013,14 @@ impl IComTrackingInfoEvents { (::windows_core::Interface::vtable(self).OnNewTrackingInfo)(::windows_core::Interface::as_raw(self), ptoplevelcollection.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IComTrackingInfoEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IComTrackingInfoEvents { - type Vtable = IComTrackingInfoEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IComTrackingInfoEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4e6cdcc9_fb25_4fd5_9cc5_c9f4b6559cec); -} #[repr(C)] #[doc(hidden)] pub struct IComTrackingInfoEvents_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnNewTrackingInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptoplevelcollection: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IComTrackingInfoObject(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IComTrackingInfoObject, IComTrackingInfoObject_Vtbl, 0x116e42c5_d8b1_47bf_ab1e_c895ed3e2372); +::windows_core::imp::interface_hierarchy!(IComTrackingInfoObject, ::windows_core::IUnknown); impl IComTrackingInfoObject { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -2313,13 +2032,6 @@ impl IComTrackingInfoObject { (::windows_core::Interface::vtable(self).GetValue)(::windows_core::Interface::as_raw(self), szpropertyname.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IComTrackingInfoObject, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IComTrackingInfoObject { - type Vtable = IComTrackingInfoObject_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IComTrackingInfoObject { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x116e42c5_d8b1_47bf_ab1e_c895ed3e2372); -} #[repr(C)] #[doc(hidden)] pub struct IComTrackingInfoObject_Vtbl { @@ -2329,9 +2041,8 @@ pub struct IComTrackingInfoObject_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] GetValue: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IComTrackingInfoProperties(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IComTrackingInfoProperties, IComTrackingInfoProperties_Vtbl, 0x789b42be_6f6b_443a_898e_67abf390aa14); +::windows_core::imp::interface_hierarchy!(IComTrackingInfoProperties, ::windows_core::IUnknown); impl IComTrackingInfoProperties { pub unsafe fn PropCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2342,13 +2053,6 @@ impl IComTrackingInfoProperties { (::windows_core::Interface::vtable(self).GetPropName)(::windows_core::Interface::as_raw(self), ulindex, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IComTrackingInfoProperties, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IComTrackingInfoProperties { - type Vtable = IComTrackingInfoProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IComTrackingInfoProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x789b42be_6f6b_443a_898e_67abf390aa14); -} #[repr(C)] #[doc(hidden)] pub struct IComTrackingInfoProperties_Vtbl { @@ -2356,9 +2060,8 @@ pub struct IComTrackingInfoProperties_Vtbl { pub PropCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcount: *mut u32) -> ::windows_core::HRESULT, pub GetPropName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulindex: u32, ppszpropname: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IComTransaction2Events(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IComTransaction2Events, IComTransaction2Events_Vtbl, 0xa136f62a_2f94_4288_86e0_d8a1fa4c0299); +::windows_core::imp::interface_hierarchy!(IComTransaction2Events, ::windows_core::IUnknown); impl IComTransaction2Events { pub unsafe fn OnTransactionStart2(&self, pinfo: *const COMSVCSEVENTINFO, guidtx: *const ::windows_core::GUID, tsid: *const ::windows_core::GUID, froot: P0, nisolationlevel: i32) -> ::windows_core::Result<()> where @@ -2379,13 +2082,6 @@ impl IComTransaction2Events { (::windows_core::Interface::vtable(self).OnTransactionCommit2)(::windows_core::Interface::as_raw(self), pinfo, guidtx).ok() } } -::windows_core::imp::interface_hierarchy!(IComTransaction2Events, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IComTransaction2Events { - type Vtable = IComTransaction2Events_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IComTransaction2Events { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa136f62a_2f94_4288_86e0_d8a1fa4c0299); -} #[repr(C)] #[doc(hidden)] pub struct IComTransaction2Events_Vtbl { @@ -2395,9 +2091,8 @@ pub struct IComTransaction2Events_Vtbl { pub OnTransactionAbort2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidtx: *const ::windows_core::GUID) -> ::windows_core::HRESULT, pub OnTransactionCommit2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidtx: *const ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IComTransactionEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IComTransactionEvents, IComTransactionEvents_Vtbl, 0x683130a8_2e50_11d2_98a5_00c04f8ee1c4); +::windows_core::imp::interface_hierarchy!(IComTransactionEvents, ::windows_core::IUnknown); impl IComTransactionEvents { pub unsafe fn OnTransactionStart(&self, pinfo: *const COMSVCSEVENTINFO, guidtx: *const ::windows_core::GUID, tsid: *const ::windows_core::GUID, froot: P0) -> ::windows_core::Result<()> where @@ -2418,13 +2113,6 @@ impl IComTransactionEvents { (::windows_core::Interface::vtable(self).OnTransactionCommit)(::windows_core::Interface::as_raw(self), pinfo, guidtx).ok() } } -::windows_core::imp::interface_hierarchy!(IComTransactionEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IComTransactionEvents { - type Vtable = IComTransactionEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IComTransactionEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x683130a8_2e50_11d2_98a5_00c04f8ee1c4); -} #[repr(C)] #[doc(hidden)] pub struct IComTransactionEvents_Vtbl { @@ -2434,9 +2122,8 @@ pub struct IComTransactionEvents_Vtbl { pub OnTransactionAbort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidtx: *const ::windows_core::GUID) -> ::windows_core::HRESULT, pub OnTransactionCommit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinfo: *const COMSVCSEVENTINFO, guidtx: *const ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IComUserEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IComUserEvent, IComUserEvent_Vtbl, 0x683130a4_2e50_11d2_98a5_00c04f8ee1c4); +::windows_core::imp::interface_hierarchy!(IComUserEvent, ::windows_core::IUnknown); impl IComUserEvent { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -2444,13 +2131,6 @@ impl IComUserEvent { (::windows_core::Interface::vtable(self).OnUserEvent)(::windows_core::Interface::as_raw(self), pinfo, pvarevent).ok() } } -::windows_core::imp::interface_hierarchy!(IComUserEvent, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IComUserEvent { - type Vtable = IComUserEvent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IComUserEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x683130a4_2e50_11d2_98a5_00c04f8ee1c4); -} #[repr(C)] #[doc(hidden)] pub struct IComUserEvent_Vtbl { @@ -2460,9 +2140,8 @@ pub struct IComUserEvent_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] OnUserEvent: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContextProperties(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IContextProperties, IContextProperties_Vtbl, 0xd396da85_bf8f_11d1_bbae_00c04fc2fa5f); +::windows_core::imp::interface_hierarchy!(IContextProperties, ::windows_core::IUnknown); impl IContextProperties { pub unsafe fn Count(&self, plcount: *mut i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Count)(::windows_core::Interface::as_raw(self), plcount).ok() @@ -2494,13 +2173,6 @@ impl IContextProperties { (::windows_core::Interface::vtable(self).RemoveProperty)(::windows_core::Interface::as_raw(self), name.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IContextProperties, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContextProperties { - type Vtable = IContextProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContextProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd396da85_bf8f_11d1_bbae_00c04fc2fa5f); -} #[repr(C)] #[doc(hidden)] pub struct IContextProperties_Vtbl { @@ -2517,9 +2189,8 @@ pub struct IContextProperties_Vtbl { SetProperty: usize, pub RemoveProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContextSecurityPerimeter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IContextSecurityPerimeter, IContextSecurityPerimeter_Vtbl, 0xa7549a29_a7c4_42e1_8dc1_7e3d748dc24a); +::windows_core::imp::interface_hierarchy!(IContextSecurityPerimeter, ::windows_core::IUnknown); impl IContextSecurityPerimeter { pub unsafe fn GetPerimeterFlag(&self, pflag: *mut super::super::Foundation::BOOL) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetPerimeterFlag)(::windows_core::Interface::as_raw(self), pflag).ok() @@ -2531,13 +2202,6 @@ impl IContextSecurityPerimeter { (::windows_core::Interface::vtable(self).SetPerimeterFlag)(::windows_core::Interface::as_raw(self), fflag.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IContextSecurityPerimeter, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContextSecurityPerimeter { - type Vtable = IContextSecurityPerimeter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContextSecurityPerimeter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa7549a29_a7c4_42e1_8dc1_7e3d748dc24a); -} #[repr(C)] #[doc(hidden)] pub struct IContextSecurityPerimeter_Vtbl { @@ -2545,9 +2209,8 @@ pub struct IContextSecurityPerimeter_Vtbl { pub GetPerimeterFlag: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pflag: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub SetPerimeterFlag: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fflag: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContextState(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IContextState, IContextState_Vtbl, 0x3c05e54b_a42a_11d2_afc4_00c04f8ee1c4); +::windows_core::imp::interface_hierarchy!(IContextState, ::windows_core::IUnknown); impl IContextState { pub unsafe fn SetDeactivateOnReturn(&self, bdeactivate: P0) -> ::windows_core::Result<()> where @@ -2565,13 +2228,6 @@ impl IContextState { (::windows_core::Interface::vtable(self).GetMyTransactionVote)(::windows_core::Interface::as_raw(self), ptxvote).ok() } } -::windows_core::imp::interface_hierarchy!(IContextState, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContextState { - type Vtable = IContextState_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContextState { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3c05e54b_a42a_11d2_afc4_00c04f8ee1c4); -} #[repr(C)] #[doc(hidden)] pub struct IContextState_Vtbl { @@ -2581,9 +2237,8 @@ pub struct IContextState_Vtbl { pub SetMyTransactionVote: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, txvote: TransactionVote) -> ::windows_core::HRESULT, pub GetMyTransactionVote: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptxvote: *mut TransactionVote) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICreateWithLocalTransaction(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICreateWithLocalTransaction, ICreateWithLocalTransaction_Vtbl, 0x227ac7a8_8423_42ce_b7cf_03061ec9aaa3); +::windows_core::imp::interface_hierarchy!(ICreateWithLocalTransaction, ::windows_core::IUnknown); 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 @@ -2592,67 +2247,44 @@ impl ICreateWithLocalTransaction { (::windows_core::Interface::vtable(self).CreateInstanceWithSysTx)(::windows_core::Interface::as_raw(self), ptransaction.into_param().abi(), rclsid, riid, pobject).ok() } } -::windows_core::imp::interface_hierarchy!(ICreateWithLocalTransaction, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICreateWithLocalTransaction { - type Vtable = ICreateWithLocalTransaction_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICreateWithLocalTransaction { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x227ac7a8_8423_42ce_b7cf_03061ec9aaa3); -} #[repr(C)] #[doc(hidden)] pub struct ICreateWithLocalTransaction_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub CreateInstanceWithSysTx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptransaction: *mut ::core::ffi::c_void, rclsid: *const ::windows_core::GUID, riid: *const ::windows_core::GUID, pobject: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICreateWithTipTransactionEx(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICreateWithTipTransactionEx, ICreateWithTipTransactionEx_Vtbl, 0x455acf59_5345_11d2_99cf_00c04f797bc9); +::windows_core::imp::interface_hierarchy!(ICreateWithTipTransactionEx, ::windows_core::IUnknown); impl ICreateWithTipTransactionEx { pub unsafe fn CreateInstance(&self, bstrtipurl: P0, rclsid: *const ::windows_core::GUID) -> ::windows_core::Result where P0: ::windows_core::IntoParam<::windows_core::BSTR>, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ICreateWithTipTransactionEx, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICreateWithTipTransactionEx { - type Vtable = ICreateWithTipTransactionEx_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICreateWithTipTransactionEx { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x455acf59_5345_11d2_99cf_00c04f797bc9); -} #[repr(C)] #[doc(hidden)] pub struct ICreateWithTipTransactionEx_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtipurl: ::std::mem::MaybeUninit<::windows_core::BSTR>, rclsid: *const ::windows_core::GUID, riid: *const ::windows_core::GUID, pobject: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICreateWithTransactionEx(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICreateWithTransactionEx, ICreateWithTransactionEx_Vtbl, 0x455acf57_5345_11d2_99cf_00c04f797bc9); +::windows_core::imp::interface_hierarchy!(ICreateWithTransactionEx, ::windows_core::IUnknown); impl ICreateWithTransactionEx { #[doc = "Required features: `\"Win32_System_DistributedTransactionCoordinator\"`"] #[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, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ICreateWithTransactionEx, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICreateWithTransactionEx { - type Vtable = ICreateWithTransactionEx_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICreateWithTransactionEx { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x455acf57_5345_11d2_99cf_00c04f797bc9); -} #[repr(C)] #[doc(hidden)] pub struct ICreateWithTransactionEx_Vtbl { @@ -2662,9 +2294,8 @@ pub struct ICreateWithTransactionEx_Vtbl { #[cfg(not(feature = "Win32_System_DistributedTransactionCoordinator"))] CreateInstance: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICrmCompensator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICrmCompensator, ICrmCompensator_Vtbl, 0xbbc01830_8d3b_11d1_82ec_00a0c91eede9); +::windows_core::imp::interface_hierarchy!(ICrmCompensator, ::windows_core::IUnknown); impl ICrmCompensator { pub unsafe fn SetLogControl(&self, plogcontrol: P0) -> ::windows_core::Result<()> where @@ -2716,13 +2347,6 @@ impl ICrmCompensator { (::windows_core::Interface::vtable(self).EndAbort)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ICrmCompensator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICrmCompensator { - type Vtable = ICrmCompensator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICrmCompensator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbbc01830_8d3b_11d1_82ec_00a0c91eede9); -} #[repr(C)] #[doc(hidden)] pub struct ICrmCompensator_Vtbl { @@ -2747,9 +2371,8 @@ pub struct ICrmCompensator_Vtbl { AbortRecord: usize, pub EndAbort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICrmCompensatorVariants(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICrmCompensatorVariants, ICrmCompensatorVariants_Vtbl, 0xf0baf8e4_7804_11d1_82e9_00a0c91eede9); +::windows_core::imp::interface_hierarchy!(ICrmCompensatorVariants, ::windows_core::IUnknown); impl ICrmCompensatorVariants { pub unsafe fn SetLogControlVariants(&self, plogcontrol: P0) -> ::windows_core::Result<()> where @@ -2801,13 +2424,6 @@ impl ICrmCompensatorVariants { (::windows_core::Interface::vtable(self).EndAbortVariants)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ICrmCompensatorVariants, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICrmCompensatorVariants { - type Vtable = ICrmCompensatorVariants_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICrmCompensatorVariants { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf0baf8e4_7804_11d1_82e9_00a0c91eede9); -} #[repr(C)] #[doc(hidden)] pub struct ICrmCompensatorVariants_Vtbl { @@ -2832,9 +2448,8 @@ pub struct ICrmCompensatorVariants_Vtbl { AbortRecordVariants: usize, pub EndAbortVariants: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICrmFormatLogRecords(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICrmFormatLogRecords, ICrmFormatLogRecords_Vtbl, 0x9c51d821_c98b_11d1_82fb_00a0c91eede9); +::windows_core::imp::interface_hierarchy!(ICrmFormatLogRecords, ::windows_core::IUnknown); impl ICrmFormatLogRecords { pub unsafe fn GetColumnCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2859,13 +2474,6 @@ impl ICrmFormatLogRecords { (::windows_core::Interface::vtable(self).GetColumnVariants)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(logrecord), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ICrmFormatLogRecords, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICrmFormatLogRecords { - type Vtable = ICrmFormatLogRecords_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICrmFormatLogRecords { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9c51d821_c98b_11d1_82fb_00a0c91eede9); -} #[repr(C)] #[doc(hidden)] pub struct ICrmFormatLogRecords_Vtbl { @@ -2884,9 +2492,8 @@ pub struct ICrmFormatLogRecords_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] GetColumnVariants: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICrmLogControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICrmLogControl, ICrmLogControl_Vtbl, 0xa0e174b3_d26e_11d2_8f84_00805fc7bcd9); +::windows_core::imp::interface_hierarchy!(ICrmLogControl, ::windows_core::IUnknown); impl ICrmLogControl { pub unsafe fn TransactionUOW(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -2919,13 +2526,6 @@ impl ICrmLogControl { (::windows_core::Interface::vtable(self).WriteLogRecord)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(rgblob.as_ptr()), rgblob.len().try_into().unwrap()).ok() } } -::windows_core::imp::interface_hierarchy!(ICrmLogControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICrmLogControl { - type Vtable = ICrmLogControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICrmLogControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa0e174b3_d26e_11d2_8f84_00805fc7bcd9); -} #[repr(C)] #[doc(hidden)] pub struct ICrmLogControl_Vtbl { @@ -2944,9 +2544,8 @@ pub struct ICrmLogControl_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] WriteLogRecord: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICrmMonitor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICrmMonitor, ICrmMonitor_Vtbl, 0x70c8e443_c7ed_11d1_82fb_00a0c91eede9); +::windows_core::imp::interface_hierarchy!(ICrmMonitor, ::windows_core::IUnknown); impl ICrmMonitor { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -2961,13 +2560,6 @@ impl ICrmMonitor { (::windows_core::Interface::vtable(self).HoldClerk)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(index), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ICrmMonitor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICrmMonitor { - type Vtable = ICrmMonitor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICrmMonitor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x70c8e443_c7ed_11d1_82fb_00a0c91eede9); -} #[repr(C)] #[doc(hidden)] pub struct ICrmMonitor_Vtbl { @@ -2981,11 +2573,15 @@ pub struct ICrmMonitor_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] HoldClerk: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICrmMonitorClerks(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICrmMonitorClerks, + ICrmMonitorClerks_Vtbl, + 0x70c8e442_c7ed_11d1_82fb_00a0c91eede9 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICrmMonitorClerks, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ICrmMonitorClerks { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3028,16 +2624,6 @@ impl ICrmMonitorClerks { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICrmMonitorClerks, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICrmMonitorClerks { - type Vtable = ICrmMonitorClerks_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICrmMonitorClerks { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x70c8e442_c7ed_11d1_82fb_00a0c91eede9); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICrmMonitorClerks_Vtbl { @@ -3065,9 +2651,8 @@ pub struct ICrmMonitorClerks_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] ActivityId: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICrmMonitorLogRecords(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICrmMonitorLogRecords, ICrmMonitorLogRecords_Vtbl, 0x70c8e441_c7ed_11d1_82fb_00a0c91eede9); +::windows_core::imp::interface_hierarchy!(ICrmMonitorLogRecords, ::windows_core::IUnknown); impl ICrmMonitorLogRecords { pub unsafe fn Count(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -3093,13 +2678,6 @@ impl ICrmMonitorLogRecords { (::windows_core::Interface::vtable(self).GetLogRecordVariants)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(indexnumber), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ICrmMonitorLogRecords, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICrmMonitorLogRecords { - type Vtable = ICrmMonitorLogRecords_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICrmMonitorLogRecords { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x70c8e441_c7ed_11d1_82fb_00a0c91eede9); -} #[repr(C)] #[doc(hidden)] pub struct ICrmMonitorLogRecords_Vtbl { @@ -3116,9 +2694,8 @@ pub struct ICrmMonitorLogRecords_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] GetLogRecordVariants: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDispenserDriver(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDispenserDriver, IDispenserDriver_Vtbl, 0x208b3651_2b48_11cf_be10_00aa00a2fa25); +::windows_core::imp::interface_hierarchy!(IDispenserDriver, ::windows_core::IUnknown); impl IDispenserDriver { pub unsafe fn CreateResource(&self, restypid: usize, presid: *mut usize, psecsfreebeforedestroy: *mut i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).CreateResource)(::windows_core::Interface::as_raw(self), restypid, presid, psecsfreebeforedestroy).ok() @@ -3142,13 +2719,6 @@ impl IDispenserDriver { (::windows_core::Interface::vtable(self).DestroyResourceS)(::windows_core::Interface::as_raw(self), resid).ok() } } -::windows_core::imp::interface_hierarchy!(IDispenserDriver, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDispenserDriver { - type Vtable = IDispenserDriver_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDispenserDriver { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x208b3651_2b48_11cf_be10_00aa00a2fa25); -} #[repr(C)] #[doc(hidden)] pub struct IDispenserDriver_Vtbl { @@ -3160,9 +2730,8 @@ pub struct IDispenserDriver_Vtbl { pub DestroyResource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, resid: usize) -> ::windows_core::HRESULT, pub DestroyResourceS: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, resid: *mut u16) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDispenserManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDispenserManager, IDispenserManager_Vtbl, 0x5cb31e10_2b5f_11cf_be10_00aa00a2fa25); +::windows_core::imp::interface_hierarchy!(IDispenserManager, ::windows_core::IUnknown); impl IDispenserManager { pub unsafe fn RegisterDispenser(&self, __midl__idispensermanager0000: P0, szdispensername: P1) -> ::windows_core::Result where @@ -3176,13 +2745,6 @@ impl IDispenserManager { (::windows_core::Interface::vtable(self).GetContext)(::windows_core::Interface::as_raw(self), __midl__idispensermanager0002, __midl__idispensermanager0003).ok() } } -::windows_core::imp::interface_hierarchy!(IDispenserManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDispenserManager { - type Vtable = IDispenserManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDispenserManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5cb31e10_2b5f_11cf_be10_00aa00a2fa25); -} #[repr(C)] #[doc(hidden)] pub struct IDispenserManager_Vtbl { @@ -3190,9 +2752,8 @@ pub struct IDispenserManager_Vtbl { pub RegisterDispenser: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, __midl__idispensermanager0000: *mut ::core::ffi::c_void, szdispensername: ::windows_core::PCWSTR, __midl__idispensermanager0001: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, __midl__idispensermanager0002: *mut usize, __midl__idispensermanager0003: *mut usize) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumNames(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumNames, IEnumNames_Vtbl, 0x51372af2_cae7_11cf_be81_00aa00a2fa25); +::windows_core::imp::interface_hierarchy!(IEnumNames, ::windows_core::IUnknown); impl IEnumNames { pub unsafe fn Next(&self, celt: u32, rgname: *mut ::windows_core::BSTR, pceltfetched: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), celt, ::core::mem::transmute(rgname), pceltfetched).ok() @@ -3208,13 +2769,6 @@ impl IEnumNames { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumNames, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumNames { - type Vtable = IEnumNames_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumNames { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51372af2_cae7_11cf_be81_00aa00a2fa25); -} #[repr(C)] #[doc(hidden)] pub struct IEnumNames_Vtbl { @@ -3224,11 +2778,15 @@ pub struct IEnumNames_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEventServerTrace(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IEventServerTrace, + IEventServerTrace_Vtbl, + 0x9a9f12b8_80af_47ab_a579_35ea57725370 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IEventServerTrace, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IEventServerTrace { pub unsafe fn StartTraceGuid(&self, bstrguidevent: P0, bstrguidfilter: P1, lpidfilter: i32) -> ::windows_core::Result<()> @@ -3250,16 +2808,6 @@ impl IEventServerTrace { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IEventServerTrace, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IEventServerTrace { - type Vtable = IEventServerTrace_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IEventServerTrace { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9a9f12b8_80af_47ab_a579_35ea57725370); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IEventServerTrace_Vtbl { @@ -3268,9 +2816,8 @@ pub struct IEventServerTrace_Vtbl { pub StopTraceGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrguidevent: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstrguidfilter: ::std::mem::MaybeUninit<::windows_core::BSTR>, lpidfilter: i32) -> ::windows_core::HRESULT, pub EnumTraceGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plcntguids: *mut i32, pbstrguidlist: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGetAppTrackerData(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IGetAppTrackerData, IGetAppTrackerData_Vtbl, 0x507c3ac8_3e12_4cb0_9366_653d3e050638); +::windows_core::imp::interface_hierarchy!(IGetAppTrackerData, ::windows_core::IUnknown); impl IGetAppTrackerData { pub unsafe fn GetApplicationProcesses(&self, partitionid: *const ::windows_core::GUID, applicationid: *const ::windows_core::GUID, flags: u32, numapplicationprocesses: *mut u32, applicationprocesses: *mut *mut ApplicationProcessSummary) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetApplicationProcesses)(::windows_core::Interface::as_raw(self), partitionid, applicationid, flags, numapplicationprocesses, applicationprocesses).ok() @@ -3296,13 +2843,6 @@ impl IGetAppTrackerData { (::windows_core::Interface::vtable(self).GetSuggestedPollingInterval)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IGetAppTrackerData, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGetAppTrackerData { - type Vtable = IGetAppTrackerData_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGetAppTrackerData { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x507c3ac8_3e12_4cb0_9366_653d3e050638); -} #[repr(C)] #[doc(hidden)] pub struct IGetAppTrackerData_Vtbl { @@ -3315,9 +2855,8 @@ pub struct IGetAppTrackerData_Vtbl { pub GetTrackerDataAsCollectionObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, toplevelcollection: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetSuggestedPollingInterval: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pollingintervalinseconds: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGetContextProperties(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IGetContextProperties, IGetContextProperties_Vtbl, 0x51372af4_cae7_11cf_be81_00aa00a2fa25); +::windows_core::imp::interface_hierarchy!(IGetContextProperties, ::windows_core::IUnknown); impl IGetContextProperties { pub unsafe fn Count(&self, plcount: *mut i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Count)(::windows_core::Interface::as_raw(self), plcount).ok() @@ -3335,13 +2874,6 @@ impl IGetContextProperties { (::windows_core::Interface::vtable(self).EnumNames)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IGetContextProperties, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGetContextProperties { - type Vtable = IGetContextProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGetContextProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51372af4_cae7_11cf_be81_00aa00a2fa25); -} #[repr(C)] #[doc(hidden)] pub struct IGetContextProperties_Vtbl { @@ -3353,11 +2885,15 @@ pub struct IGetContextProperties_Vtbl { GetProperty: usize, pub EnumNames: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGetSecurityCallContext(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IGetSecurityCallContext, + IGetSecurityCallContext_Vtbl, + 0xcafc823f_b441_11d1_b82b_0000f8757e2a +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IGetSecurityCallContext, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IGetSecurityCallContext { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3368,16 +2904,6 @@ impl IGetSecurityCallContext { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IGetSecurityCallContext, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IGetSecurityCallContext { - type Vtable = IGetSecurityCallContext_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IGetSecurityCallContext { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcafc823f_b441_11d1_b82b_0000f8757e2a); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IGetSecurityCallContext_Vtbl { @@ -3387,9 +2913,8 @@ pub struct IGetSecurityCallContext_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetSecurityCallContext: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHolder(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IHolder, IHolder_Vtbl, 0xbf6a1850_2b45_11cf_be10_00aa00a2fa25); +::windows_core::imp::interface_hierarchy!(IHolder, ::windows_core::IUnknown); impl IHolder { pub unsafe fn AllocResource(&self, __midl__iholder0000: usize, __midl__iholder0001: *mut usize) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).AllocResource)(::windows_core::Interface::as_raw(self), __midl__iholder0000, __midl__iholder0001).ok() @@ -3422,13 +2947,6 @@ impl IHolder { (::windows_core::Interface::vtable(self).RequestDestroyResource)(::windows_core::Interface::as_raw(self), __midl__iholder0009).ok() } } -::windows_core::imp::interface_hierarchy!(IHolder, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHolder { - type Vtable = IHolder_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHolder { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbf6a1850_2b45_11cf_be10_00aa00a2fa25); -} #[repr(C)] #[doc(hidden)] pub struct IHolder_Vtbl { @@ -3442,9 +2960,8 @@ pub struct IHolder_Vtbl { pub Close: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RequestDestroyResource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, __midl__iholder0009: usize) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILBEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ILBEvents, ILBEvents_Vtbl, 0x683130b4_2e50_11d2_98a5_00c04f8ee1c4); +::windows_core::imp::interface_hierarchy!(ILBEvents, ::windows_core::IUnknown); impl ILBEvents { pub unsafe fn TargetUp(&self, bstrservername: P0, bstrclsideng: P1) -> ::windows_core::Result<()> where @@ -3470,13 +2987,6 @@ impl ILBEvents { (::windows_core::Interface::vtable(self).EngineDefined)(::windows_core::Interface::as_raw(self), bstrpropname.into_param().abi(), varpropvalue, bstrclsideng.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ILBEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILBEvents { - type Vtable = ILBEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILBEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x683130b4_2e50_11d2_98a5_00c04f8ee1c4); -} #[repr(C)] #[doc(hidden)] pub struct ILBEvents_Vtbl { @@ -3488,9 +2998,8 @@ pub struct ILBEvents_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] EngineDefined: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMTSActivity(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMTSActivity, IMTSActivity_Vtbl, 0x51372af0_cae7_11cf_be81_00aa00a2fa25); +::windows_core::imp::interface_hierarchy!(IMTSActivity, ::windows_core::IUnknown); impl IMTSActivity { pub unsafe fn SynchronousCall(&self, pcall: P0) -> ::windows_core::Result<()> where @@ -3514,13 +3023,6 @@ impl IMTSActivity { (::windows_core::Interface::vtable(self).UnbindFromThread)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IMTSActivity, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMTSActivity { - type Vtable = IMTSActivity_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMTSActivity { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51372af0_cae7_11cf_be81_00aa00a2fa25); -} #[repr(C)] #[doc(hidden)] pub struct IMTSActivity_Vtbl { @@ -3531,32 +3033,28 @@ pub struct IMTSActivity_Vtbl { pub BindToCurrentThread: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub UnbindFromThread: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMTSCall(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMTSCall, IMTSCall_Vtbl, 0x51372aef_cae7_11cf_be81_00aa00a2fa25); +::windows_core::imp::interface_hierarchy!(IMTSCall, ::windows_core::IUnknown); impl IMTSCall { pub unsafe fn OnCall(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnCall)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IMTSCall, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMTSCall { - type Vtable = IMTSCall_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMTSCall { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51372aef_cae7_11cf_be81_00aa00a2fa25); -} #[repr(C)] #[doc(hidden)] pub struct IMTSCall_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnCall: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMTSLocator(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMTSLocator, + IMTSLocator_Vtbl, + 0xd19b8bfd_7f88_11d0_b16e_00aa00ba3258 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMTSLocator, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMTSLocator { pub unsafe fn GetEventDispatcher(&self) -> ::windows_core::Result<::windows_core::IUnknown> { @@ -3565,25 +3063,14 @@ impl IMTSLocator { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMTSLocator, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMTSLocator { - type Vtable = IMTSLocator_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMTSLocator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd19b8bfd_7f88_11d0_b16e_00aa00ba3258); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMTSLocator_Vtbl { pub base__: super::Com::IDispatch_Vtbl, pub GetEventDispatcher: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punk: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IManagedActivationEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IManagedActivationEvents, IManagedActivationEvents_Vtbl, 0xa5f325af_572f_46da_b8ab_827c3d95d99e); +::windows_core::imp::interface_hierarchy!(IManagedActivationEvents, ::windows_core::IUnknown); impl IManagedActivationEvents { pub unsafe fn CreateManagedStub(&self, pinfo: P0, fdist: P1) -> ::windows_core::Result<()> where @@ -3599,13 +3086,6 @@ impl IManagedActivationEvents { (::windows_core::Interface::vtable(self).DestroyManagedStub)(::windows_core::Interface::as_raw(self), pinfo.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IManagedActivationEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IManagedActivationEvents { - type Vtable = IManagedActivationEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IManagedActivationEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa5f325af_572f_46da_b8ab_827c3d95d99e); -} #[repr(C)] #[doc(hidden)] pub struct IManagedActivationEvents_Vtbl { @@ -3613,9 +3093,8 @@ pub struct IManagedActivationEvents_Vtbl { pub CreateManagedStub: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinfo: *mut ::core::ffi::c_void, fdist: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub DestroyManagedStub: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinfo: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IManagedObjectInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IManagedObjectInfo, IManagedObjectInfo_Vtbl, 0x1427c51a_4584_49d8_90a0_c50d8086cbe9); +::windows_core::imp::interface_hierarchy!(IManagedObjectInfo, ::windows_core::IUnknown); impl IManagedObjectInfo { pub unsafe fn GetIUnknown(&self) -> ::windows_core::Result<::windows_core::IUnknown> { let mut result__ = ::std::mem::zeroed(); @@ -3639,13 +3118,6 @@ impl IManagedObjectInfo { (::windows_core::Interface::vtable(self).SetWrapperStrength)(::windows_core::Interface::as_raw(self), bstrong.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IManagedObjectInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IManagedObjectInfo { - type Vtable = IManagedObjectInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IManagedObjectInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1427c51a_4584_49d8_90a0_c50d8086cbe9); -} #[repr(C)] #[doc(hidden)] pub struct IManagedObjectInfo_Vtbl { @@ -3655,30 +3127,21 @@ pub struct IManagedObjectInfo_Vtbl { pub SetInPool: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, binpool: super::super::Foundation::BOOL, ppooledobj: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetWrapperStrength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrong: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IManagedPoolAction(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IManagedPoolAction, IManagedPoolAction_Vtbl, 0xda91b74e_5388_4783_949d_c1cd5fb00506); +::windows_core::imp::interface_hierarchy!(IManagedPoolAction, ::windows_core::IUnknown); impl IManagedPoolAction { pub unsafe fn LastRelease(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).LastRelease)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IManagedPoolAction, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IManagedPoolAction { - type Vtable = IManagedPoolAction_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IManagedPoolAction { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xda91b74e_5388_4783_949d_c1cd5fb00506); -} #[repr(C)] #[doc(hidden)] pub struct IManagedPoolAction_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub LastRelease: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IManagedPooledObj(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IManagedPooledObj, IManagedPooledObj_Vtbl, 0xc5da4bea_1b42_4437_8926_b6a38860a770); +::windows_core::imp::interface_hierarchy!(IManagedPooledObj, ::windows_core::IUnknown); impl IManagedPooledObj { pub unsafe fn SetHeld(&self, m_bheld: P0) -> ::windows_core::Result<()> where @@ -3687,24 +3150,21 @@ impl IManagedPooledObj { (::windows_core::Interface::vtable(self).SetHeld)(::windows_core::Interface::as_raw(self), m_bheld.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IManagedPooledObj, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IManagedPooledObj { - type Vtable = IManagedPooledObj_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IManagedPooledObj { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc5da4bea_1b42_4437_8926_b6a38860a770); -} #[repr(C)] #[doc(hidden)] pub struct IManagedPooledObj_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub SetHeld: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, m_bheld: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMessageMover(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMessageMover, + IMessageMover_Vtbl, + 0x588a085a_b795_11d1_8054_00c04fc340ee +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMessageMover, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMessageMover { pub unsafe fn SourcePath(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -3740,16 +3200,6 @@ impl IMessageMover { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMessageMover, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMessageMover { - type Vtable = IMessageMover_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMessageMover { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x588a085a_b795_11d1_8054_00c04fc340ee); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMessageMover_Vtbl { @@ -3762,11 +3212,15 @@ pub struct IMessageMover_Vtbl { pub SetCommitBatchSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: i32) -> ::windows_core::HRESULT, pub MoveMessages: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plmessagesmoved: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMtsEventInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMtsEventInfo, + IMtsEventInfo_Vtbl, + 0xd56c3dc1_8482_11d0_b170_00aa00ba3258 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMtsEventInfo, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMtsEventInfo { pub unsafe fn Names(&self) -> ::windows_core::Result<::windows_core::IUnknown> { @@ -3796,16 +3250,6 @@ impl IMtsEventInfo { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMtsEventInfo, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMtsEventInfo { - type Vtable = IMtsEventInfo_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMtsEventInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd56c3dc1_8482_11d0_b170_00aa00ba3258); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMtsEventInfo_Vtbl { @@ -3819,11 +3263,15 @@ pub struct IMtsEventInfo_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] get_Value: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMtsEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMtsEvents, + IMtsEvents_Vtbl, + 0xbacedf4d_74ab_11d0_b162_00aa00ba3258 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMtsEvents, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMtsEvents { pub unsafe fn PackageName(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -3849,16 +3297,6 @@ impl IMtsEvents { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMtsEvents, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMtsEvents { - type Vtable = IMtsEvents_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMtsEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbacedf4d_74ab_11d0_b162_00aa00ba3258); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMtsEvents_Vtbl { @@ -3872,11 +3310,15 @@ pub struct IMtsEvents_Vtbl { pub FireEvents: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub GetProcessID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMtsGrp(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMtsGrp, + IMtsGrp_Vtbl, + 0x4b2e958c_0393_11d1_b1ab_00aa00ba3258 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMtsGrp, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMtsGrp { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -3892,16 +3334,6 @@ impl IMtsGrp { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMtsGrp, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMtsGrp { - type Vtable = IMtsGrp_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMtsGrp { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4b2e958c_0393_11d1_b1ab_00aa00ba3258); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMtsGrp_Vtbl { @@ -3910,9 +3342,8 @@ pub struct IMtsGrp_Vtbl { pub Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lindex: i32, ppunkdispatcher: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Refresh: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IObjPool(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IObjPool, IObjPool_Vtbl, 0x7d8805a0_2ea7_11d1_b1cc_00aa00ba3258); +::windows_core::imp::interface_hierarchy!(IObjPool, ::windows_core::IUnknown); impl IObjPool { pub unsafe fn Reserved1(&self) { (::windows_core::Interface::vtable(self).Reserved1)(::windows_core::Interface::as_raw(self)) @@ -3939,13 +3370,6 @@ impl IObjPool { (::windows_core::Interface::vtable(self).Reserved6)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(IObjPool, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IObjPool { - type Vtable = IObjPool_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IObjPool { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7d8805a0_2ea7_11d1_b1cc_00aa00ba3258); -} #[repr(C)] #[doc(hidden)] pub struct IObjPool_Vtbl { @@ -3958,9 +3382,8 @@ pub struct IObjPool_Vtbl { pub Reserved5: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), pub Reserved6: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IObjectConstruct(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IObjectConstruct, IObjectConstruct_Vtbl, 0x41c4f8b3_7439_11d2_98cb_00c04f8ee1c4); +::windows_core::imp::interface_hierarchy!(IObjectConstruct, ::windows_core::IUnknown); impl IObjectConstruct { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -3971,13 +3394,6 @@ impl IObjectConstruct { (::windows_core::Interface::vtable(self).Construct)(::windows_core::Interface::as_raw(self), pctorobj.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IObjectConstruct, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IObjectConstruct { - type Vtable = IObjectConstruct_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IObjectConstruct { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x41c4f8b3_7439_11d2_98cb_00c04f8ee1c4); -} #[repr(C)] #[doc(hidden)] pub struct IObjectConstruct_Vtbl { @@ -3987,11 +3403,15 @@ pub struct IObjectConstruct_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Construct: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IObjectConstructString(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IObjectConstructString, + IObjectConstructString_Vtbl, + 0x41c4f8b2_7439_11d2_98cb_00c04f8ee1c4 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IObjectConstructString, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IObjectConstructString { pub unsafe fn ConstructString(&self, pval: *mut ::windows_core::BSTR) -> ::windows_core::Result<()> { @@ -3999,25 +3419,14 @@ impl IObjectConstructString { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IObjectConstructString, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IObjectConstructString { - type Vtable = IObjectConstructString_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IObjectConstructString { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x41c4f8b2_7439_11d2_98cb_00c04f8ee1c4); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IObjectConstructString_Vtbl { pub base__: super::Com::IDispatch_Vtbl, pub ConstructString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IObjectContext(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IObjectContext, IObjectContext_Vtbl, 0x51372ae0_cae7_11cf_be81_00aa00a2fa25); +::windows_core::imp::interface_hierarchy!(IObjectContext, ::windows_core::IUnknown); impl IObjectContext { pub unsafe fn CreateInstance(&self, rclsid: *const ::windows_core::GUID, riid: *const ::windows_core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).CreateInstance)(::windows_core::Interface::as_raw(self), rclsid, riid, ppv).ok() @@ -4047,13 +3456,6 @@ impl IObjectContext { (::windows_core::Interface::vtable(self).IsCallerInRole)(::windows_core::Interface::as_raw(self), bstrrole.into_param().abi(), pfisinrole).ok() } } -::windows_core::imp::interface_hierarchy!(IObjectContext, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IObjectContext { - type Vtable = IObjectContext_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IObjectContext { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51372ae0_cae7_11cf_be81_00aa00a2fa25); -} #[repr(C)] #[doc(hidden)] pub struct IObjectContext_Vtbl { @@ -4067,30 +3469,21 @@ pub struct IObjectContext_Vtbl { pub IsSecurityEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL, pub IsCallerInRole: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrrole: ::std::mem::MaybeUninit<::windows_core::BSTR>, pfisinrole: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IObjectContextActivity(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IObjectContextActivity, IObjectContextActivity_Vtbl, 0x51372afc_cae7_11cf_be81_00aa00a2fa25); +::windows_core::imp::interface_hierarchy!(IObjectContextActivity, ::windows_core::IUnknown); impl IObjectContextActivity { pub unsafe fn GetActivityId(&self, pguid: *mut ::windows_core::GUID) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetActivityId)(::windows_core::Interface::as_raw(self), pguid).ok() } } -::windows_core::imp::interface_hierarchy!(IObjectContextActivity, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IObjectContextActivity { - type Vtable = IObjectContextActivity_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IObjectContextActivity { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51372afc_cae7_11cf_be81_00aa00a2fa25); -} #[repr(C)] #[doc(hidden)] pub struct IObjectContextActivity_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetActivityId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pguid: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IObjectContextInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IObjectContextInfo, IObjectContextInfo_Vtbl, 0x75b52ddb_e8ed_11d1_93ad_00aa00ba3258); +::windows_core::imp::interface_hierarchy!(IObjectContextInfo, ::windows_core::IUnknown); impl IObjectContextInfo { pub unsafe fn IsInTransaction(&self) -> super::super::Foundation::BOOL { (::windows_core::Interface::vtable(self).IsInTransaction)(::windows_core::Interface::as_raw(self)) @@ -4109,13 +3502,6 @@ impl IObjectContextInfo { (::windows_core::Interface::vtable(self).GetContextId)(::windows_core::Interface::as_raw(self), pguid).ok() } } -::windows_core::imp::interface_hierarchy!(IObjectContextInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IObjectContextInfo { - type Vtable = IObjectContextInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IObjectContextInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x75b52ddb_e8ed_11d1_93ad_00aa00ba3258); -} #[repr(C)] #[doc(hidden)] pub struct IObjectContextInfo_Vtbl { @@ -4126,9 +3512,8 @@ pub struct IObjectContextInfo_Vtbl { pub GetActivityId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pguid: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, pub GetContextId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pguid: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IObjectContextInfo2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IObjectContextInfo2, IObjectContextInfo2_Vtbl, 0x594be71a_4bc4_438b_9197_cfd176248b09); +::windows_core::imp::interface_hierarchy!(IObjectContextInfo2, ::windows_core::IUnknown, IObjectContextInfo); impl IObjectContextInfo2 { pub unsafe fn IsInTransaction(&self) -> super::super::Foundation::BOOL { (::windows_core::Interface::vtable(self).base__.IsInTransaction)(::windows_core::Interface::as_raw(self)) @@ -4156,13 +3541,6 @@ impl IObjectContextInfo2 { (::windows_core::Interface::vtable(self).GetApplicationInstanceId)(::windows_core::Interface::as_raw(self), pguid).ok() } } -::windows_core::imp::interface_hierarchy!(IObjectContextInfo2, ::windows_core::IUnknown, IObjectContextInfo); -unsafe impl ::windows_core::Interface for IObjectContextInfo2 { - type Vtable = IObjectContextInfo2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IObjectContextInfo2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x594be71a_4bc4_438b_9197_cfd176248b09); -} #[repr(C)] #[doc(hidden)] pub struct IObjectContextInfo2_Vtbl { @@ -4171,30 +3549,21 @@ pub struct IObjectContextInfo2_Vtbl { pub GetApplicationId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pguid: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, pub GetApplicationInstanceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pguid: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IObjectContextTip(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IObjectContextTip, IObjectContextTip_Vtbl, 0x92fd41ca_bad9_11d2_9a2d_00c04f797bc9); +::windows_core::imp::interface_hierarchy!(IObjectContextTip, ::windows_core::IUnknown); impl IObjectContextTip { pub unsafe fn GetTipUrl(&self, ptipurl: *mut ::windows_core::BSTR) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetTipUrl)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(ptipurl)).ok() } } -::windows_core::imp::interface_hierarchy!(IObjectContextTip, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IObjectContextTip { - type Vtable = IObjectContextTip_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IObjectContextTip { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x92fd41ca_bad9_11d2_9a2d_00c04f797bc9); -} #[repr(C)] #[doc(hidden)] pub struct IObjectContextTip_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetTipUrl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptipurl: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IObjectControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IObjectControl, IObjectControl_Vtbl, 0x51372aec_cae7_11cf_be81_00aa00a2fa25); +::windows_core::imp::interface_hierarchy!(IObjectControl, ::windows_core::IUnknown); impl IObjectControl { pub unsafe fn Activate(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Activate)(::windows_core::Interface::as_raw(self)).ok() @@ -4206,13 +3575,6 @@ impl IObjectControl { (::windows_core::Interface::vtable(self).CanBePooled)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(IObjectControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IObjectControl { - type Vtable = IObjectControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IObjectControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51372aec_cae7_11cf_be81_00aa00a2fa25); -} #[repr(C)] #[doc(hidden)] pub struct IObjectControl_Vtbl { @@ -4221,9 +3583,8 @@ pub struct IObjectControl_Vtbl { pub Deactivate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), pub CanBePooled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlaybackControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPlaybackControl, IPlaybackControl_Vtbl, 0x51372afd_cae7_11cf_be81_00aa00a2fa25); +::windows_core::imp::interface_hierarchy!(IPlaybackControl, ::windows_core::IUnknown); impl IPlaybackControl { pub unsafe fn FinalClientRetry(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).FinalClientRetry)(::windows_core::Interface::as_raw(self)).ok() @@ -4232,13 +3593,6 @@ impl IPlaybackControl { (::windows_core::Interface::vtable(self).FinalServerRetry)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IPlaybackControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPlaybackControl { - type Vtable = IPlaybackControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPlaybackControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51372afd_cae7_11cf_be81_00aa00a2fa25); -} #[repr(C)] #[doc(hidden)] pub struct IPlaybackControl_Vtbl { @@ -4246,11 +3600,15 @@ pub struct IPlaybackControl_Vtbl { pub FinalClientRetry: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub FinalServerRetry: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPoolManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IPoolManager, + IPoolManager_Vtbl, + 0x0a469861_5a91_43a0_99b6_d5e179bb0631 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IPoolManager, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IPoolManager { pub unsafe fn ShutdownPool(&self, clsidorprogid: P0) -> ::windows_core::Result<()> @@ -4261,25 +3619,14 @@ impl IPoolManager { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IPoolManager, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IPoolManager { - type Vtable = IPoolManager_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IPoolManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0a469861_5a91_43a0_99b6_d5e179bb0631); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IPoolManager_Vtbl { pub base__: super::Com::IDispatch_Vtbl, pub ShutdownPool: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, clsidorprogid: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProcessInitializer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IProcessInitializer, IProcessInitializer_Vtbl, 0x1113f52d_dc7f_4943_aed6_88d04027e32a); +::windows_core::imp::interface_hierarchy!(IProcessInitializer, ::windows_core::IUnknown); impl IProcessInitializer { pub unsafe fn Startup(&self, punkprocesscontrol: P0) -> ::windows_core::Result<()> where @@ -4291,13 +3638,6 @@ impl IProcessInitializer { (::windows_core::Interface::vtable(self).Shutdown)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IProcessInitializer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProcessInitializer { - type Vtable = IProcessInitializer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProcessInitializer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1113f52d_dc7f_4943_aed6_88d04027e32a); -} #[repr(C)] #[doc(hidden)] pub struct IProcessInitializer_Vtbl { @@ -4305,11 +3645,15 @@ pub struct IProcessInitializer_Vtbl { pub Startup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punkprocesscontrol: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Shutdown: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISecurityCallContext(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISecurityCallContext, + ISecurityCallContext_Vtbl, + 0xcafc823e_b441_11d1_b82b_0000f8757e2a +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISecurityCallContext, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISecurityCallContext { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -4351,16 +3695,6 @@ impl ISecurityCallContext { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISecurityCallContext, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISecurityCallContext { - type Vtable = ISecurityCallContext_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISecurityCallContext { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcafc823e_b441_11d1_b82b_0000f8757e2a); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISecurityCallContext_Vtbl { @@ -4378,11 +3712,15 @@ pub struct ISecurityCallContext_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] IsUserInRole: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISecurityCallersColl(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISecurityCallersColl, + ISecurityCallersColl_Vtbl, + 0xcafc823d_b441_11d1_b82b_0000f8757e2a +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISecurityCallersColl, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISecurityCallersColl { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -4401,16 +3739,6 @@ impl ISecurityCallersColl { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISecurityCallersColl, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISecurityCallersColl { - type Vtable = ISecurityCallersColl_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISecurityCallersColl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcafc823d_b441_11d1_b82b_0000f8757e2a); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISecurityCallersColl_Vtbl { @@ -4422,11 +3750,15 @@ pub struct ISecurityCallersColl_Vtbl { get_Item: usize, pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISecurityIdentityColl(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISecurityIdentityColl, + ISecurityIdentityColl_Vtbl, + 0xcafc823c_b441_11d1_b82b_0000f8757e2a +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISecurityIdentityColl, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISecurityIdentityColl { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -4448,16 +3780,6 @@ impl ISecurityIdentityColl { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISecurityIdentityColl, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISecurityIdentityColl { - type Vtable = ISecurityIdentityColl_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISecurityIdentityColl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcafc823c_b441_11d1_b82b_0000f8757e2a); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISecurityIdentityColl_Vtbl { @@ -4469,9 +3791,8 @@ pub struct ISecurityIdentityColl_Vtbl { get_Item: usize, pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISecurityProperty(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISecurityProperty, ISecurityProperty_Vtbl, 0x51372aea_cae7_11cf_be81_00aa00a2fa25); +::windows_core::imp::interface_hierarchy!(ISecurityProperty, ::windows_core::IUnknown); impl ISecurityProperty { pub unsafe fn GetDirectCreatorSID(&self, psid: *mut super::super::Foundation::PSID) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetDirectCreatorSID)(::windows_core::Interface::as_raw(self), psid).ok() @@ -4492,13 +3813,6 @@ impl ISecurityProperty { (::windows_core::Interface::vtable(self).ReleaseSID)(::windows_core::Interface::as_raw(self), psid.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ISecurityProperty, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISecurityProperty { - type Vtable = ISecurityProperty_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISecurityProperty { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51372aea_cae7_11cf_be81_00aa00a2fa25); -} #[repr(C)] #[doc(hidden)] pub struct ISecurityProperty_Vtbl { @@ -4509,9 +3823,8 @@ pub struct ISecurityProperty_Vtbl { pub GetOriginalCallerSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psid: *mut super::super::Foundation::PSID) -> ::windows_core::HRESULT, pub ReleaseSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psid: super::super::Foundation::PSID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISelectCOMLBServer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISelectCOMLBServer, ISelectCOMLBServer_Vtbl, 0xdcf443f4_3f8a_4872_b9f0_369a796d12d6); +::windows_core::imp::interface_hierarchy!(ISelectCOMLBServer, ::windows_core::IUnknown); impl ISelectCOMLBServer { pub unsafe fn Init(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Init)(::windows_core::Interface::as_raw(self)).ok() @@ -4523,13 +3836,6 @@ impl ISelectCOMLBServer { (::windows_core::Interface::vtable(self).GetLBServer)(::windows_core::Interface::as_raw(self), punk.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ISelectCOMLBServer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISelectCOMLBServer { - type Vtable = ISelectCOMLBServer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISelectCOMLBServer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdcf443f4_3f8a_4872_b9f0_369a796d12d6); -} #[repr(C)] #[doc(hidden)] pub struct ISelectCOMLBServer_Vtbl { @@ -4537,9 +3843,8 @@ pub struct ISelectCOMLBServer_Vtbl { pub Init: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetLBServer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punk: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISendMethodEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISendMethodEvents, ISendMethodEvents_Vtbl, 0x2732fd59_b2b4_4d44_878c_8b8f09626008); +::windows_core::imp::interface_hierarchy!(ISendMethodEvents, ::windows_core::IUnknown); impl ISendMethodEvents { pub unsafe fn SendMethodCall(&self, pidentity: *const ::core::ffi::c_void, riid: *const ::windows_core::GUID, dwmeth: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SendMethodCall)(::windows_core::Interface::as_raw(self), pidentity, riid, dwmeth).ok() @@ -4548,13 +3853,6 @@ impl ISendMethodEvents { (::windows_core::Interface::vtable(self).SendMethodReturn)(::windows_core::Interface::as_raw(self), pidentity, riid, dwmeth, hrcall, hrserver).ok() } } -::windows_core::imp::interface_hierarchy!(ISendMethodEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISendMethodEvents { - type Vtable = ISendMethodEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISendMethodEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2732fd59_b2b4_4d44_878c_8b8f09626008); -} #[repr(C)] #[doc(hidden)] pub struct ISendMethodEvents_Vtbl { @@ -4562,9 +3860,8 @@ pub struct ISendMethodEvents_Vtbl { pub SendMethodCall: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pidentity: *const ::core::ffi::c_void, riid: *const ::windows_core::GUID, dwmeth: u32) -> ::windows_core::HRESULT, pub SendMethodReturn: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pidentity: *const ::core::ffi::c_void, riid: *const ::windows_core::GUID, dwmeth: u32, hrcall: ::windows_core::HRESULT, hrserver: ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IServiceActivity(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IServiceActivity, IServiceActivity_Vtbl, 0x67532e0c_9e2f_4450_a354_035633944e17); +::windows_core::imp::interface_hierarchy!(IServiceActivity, ::windows_core::IUnknown); impl IServiceActivity { pub unsafe fn SynchronousCall(&self, piservicecall: P0) -> ::windows_core::Result<()> where @@ -4585,13 +3882,6 @@ impl IServiceActivity { (::windows_core::Interface::vtable(self).UnbindFromThread)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IServiceActivity, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IServiceActivity { - type Vtable = IServiceActivity_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IServiceActivity { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x67532e0c_9e2f_4450_a354_035633944e17); -} #[repr(C)] #[doc(hidden)] pub struct IServiceActivity_Vtbl { @@ -4601,93 +3891,60 @@ pub struct IServiceActivity_Vtbl { pub BindToCurrentThread: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub UnbindFromThread: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IServiceCall(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IServiceCall, IServiceCall_Vtbl, 0xbd3e2e12_42dd_40f4_a09a_95a50c58304b); +::windows_core::imp::interface_hierarchy!(IServiceCall, ::windows_core::IUnknown); impl IServiceCall { pub unsafe fn OnCall(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnCall)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IServiceCall, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IServiceCall { - type Vtable = IServiceCall_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IServiceCall { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbd3e2e12_42dd_40f4_a09a_95a50c58304b); -} #[repr(C)] #[doc(hidden)] pub struct IServiceCall_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnCall: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IServiceComTIIntrinsicsConfig(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IServiceComTIIntrinsicsConfig, IServiceComTIIntrinsicsConfig_Vtbl, 0x09e6831e_04e1_4ed4_9d0f_e8b168bafeaf); +::windows_core::imp::interface_hierarchy!(IServiceComTIIntrinsicsConfig, ::windows_core::IUnknown); impl IServiceComTIIntrinsicsConfig { pub unsafe fn ComTIIntrinsicsConfig(&self, comtiintrinsicsconfig: CSC_COMTIIntrinsicsConfig) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).ComTIIntrinsicsConfig)(::windows_core::Interface::as_raw(self), comtiintrinsicsconfig).ok() } } -::windows_core::imp::interface_hierarchy!(IServiceComTIIntrinsicsConfig, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IServiceComTIIntrinsicsConfig { - type Vtable = IServiceComTIIntrinsicsConfig_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IServiceComTIIntrinsicsConfig { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x09e6831e_04e1_4ed4_9d0f_e8b168bafeaf); -} #[repr(C)] #[doc(hidden)] pub struct IServiceComTIIntrinsicsConfig_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub ComTIIntrinsicsConfig: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, comtiintrinsicsconfig: CSC_COMTIIntrinsicsConfig) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IServiceIISIntrinsicsConfig(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IServiceIISIntrinsicsConfig, IServiceIISIntrinsicsConfig_Vtbl, 0x1a0cf920_d452_46f4_bc36_48118d54ea52); +::windows_core::imp::interface_hierarchy!(IServiceIISIntrinsicsConfig, ::windows_core::IUnknown); impl IServiceIISIntrinsicsConfig { pub unsafe fn IISIntrinsicsConfig(&self, iisintrinsicsconfig: CSC_IISIntrinsicsConfig) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).IISIntrinsicsConfig)(::windows_core::Interface::as_raw(self), iisintrinsicsconfig).ok() } } -::windows_core::imp::interface_hierarchy!(IServiceIISIntrinsicsConfig, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IServiceIISIntrinsicsConfig { - type Vtable = IServiceIISIntrinsicsConfig_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IServiceIISIntrinsicsConfig { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1a0cf920_d452_46f4_bc36_48118d54ea52); -} #[repr(C)] #[doc(hidden)] pub struct IServiceIISIntrinsicsConfig_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub IISIntrinsicsConfig: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, iisintrinsicsconfig: CSC_IISIntrinsicsConfig) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IServiceInheritanceConfig(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IServiceInheritanceConfig, IServiceInheritanceConfig_Vtbl, 0x92186771_d3b4_4d77_a8ea_ee842d586f35); +::windows_core::imp::interface_hierarchy!(IServiceInheritanceConfig, ::windows_core::IUnknown); impl IServiceInheritanceConfig { pub unsafe fn ContainingContextTreatment(&self, inheritanceconfig: CSC_InheritanceConfig) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).ContainingContextTreatment)(::windows_core::Interface::as_raw(self), inheritanceconfig).ok() } } -::windows_core::imp::interface_hierarchy!(IServiceInheritanceConfig, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IServiceInheritanceConfig { - type Vtable = IServiceInheritanceConfig_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IServiceInheritanceConfig { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x92186771_d3b4_4d77_a8ea_ee842d586f35); -} #[repr(C)] #[doc(hidden)] pub struct IServiceInheritanceConfig_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub ContainingContextTreatment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, inheritanceconfig: CSC_InheritanceConfig) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IServicePartitionConfig(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IServicePartitionConfig, IServicePartitionConfig_Vtbl, 0x80182d03_5ea4_4831_ae97_55beffc2e590); +::windows_core::imp::interface_hierarchy!(IServicePartitionConfig, ::windows_core::IUnknown); impl IServicePartitionConfig { pub unsafe fn PartitionConfig(&self, partitionconfig: CSC_PartitionConfig) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).PartitionConfig)(::windows_core::Interface::as_raw(self), partitionconfig).ok() @@ -4696,13 +3953,6 @@ impl IServicePartitionConfig { (::windows_core::Interface::vtable(self).PartitionID)(::windows_core::Interface::as_raw(self), guidpartitionid).ok() } } -::windows_core::imp::interface_hierarchy!(IServicePartitionConfig, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IServicePartitionConfig { - type Vtable = IServicePartitionConfig_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IServicePartitionConfig { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x80182d03_5ea4_4831_ae97_55beffc2e590); -} #[repr(C)] #[doc(hidden)] pub struct IServicePartitionConfig_Vtbl { @@ -4710,9 +3960,8 @@ pub struct IServicePartitionConfig_Vtbl { pub PartitionConfig: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, partitionconfig: CSC_PartitionConfig) -> ::windows_core::HRESULT, pub PartitionID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guidpartitionid: *const ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IServicePool(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IServicePool, IServicePool_Vtbl, 0xb302df81_ea45_451e_99a2_09f9fd1b1e13); +::windows_core::imp::interface_hierarchy!(IServicePool, ::windows_core::IUnknown); impl IServicePool { pub unsafe fn Initialize(&self, ppoolconfig: P0) -> ::windows_core::Result<()> where @@ -4727,13 +3976,6 @@ impl IServicePool { (::windows_core::Interface::vtable(self).Shutdown)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IServicePool, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IServicePool { - type Vtable = IServicePool_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IServicePool { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb302df81_ea45_451e_99a2_09f9fd1b1e13); -} #[repr(C)] #[doc(hidden)] pub struct IServicePool_Vtbl { @@ -4742,9 +3984,8 @@ pub struct IServicePool_Vtbl { pub GetObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Shutdown: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IServicePoolConfig(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IServicePoolConfig, IServicePoolConfig_Vtbl, 0xa9690656_5bca_470c_8451_250c1f43a33e); +::windows_core::imp::interface_hierarchy!(IServicePoolConfig, ::windows_core::IUnknown); impl IServicePoolConfig { pub unsafe fn SetMaxPoolSize(&self, dwmaxpool: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetMaxPoolSize)(::windows_core::Interface::as_raw(self), dwmaxpool).ok() @@ -4788,13 +4029,6 @@ impl IServicePoolConfig { (::windows_core::Interface::vtable(self).ClassFactory)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IServicePoolConfig, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IServicePoolConfig { - type Vtable = IServicePoolConfig_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IServicePoolConfig { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa9690656_5bca_470c_8451_250c1f43a33e); -} #[repr(C)] #[doc(hidden)] pub struct IServicePoolConfig_Vtbl { @@ -4816,9 +4050,8 @@ pub struct IServicePoolConfig_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] ClassFactory: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IServiceSxsConfig(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IServiceSxsConfig, IServiceSxsConfig_Vtbl, 0xc7cd7379_f3f2_4634_811b_703281d73e08); +::windows_core::imp::interface_hierarchy!(IServiceSxsConfig, ::windows_core::IUnknown); impl IServiceSxsConfig { pub unsafe fn SxsConfig(&self, scsconfig: CSC_SxsConfig) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SxsConfig)(::windows_core::Interface::as_raw(self), scsconfig).ok() @@ -4836,13 +4069,6 @@ impl IServiceSxsConfig { (::windows_core::Interface::vtable(self).SxsDirectory)(::windows_core::Interface::as_raw(self), szsxsdirectory.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IServiceSxsConfig, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IServiceSxsConfig { - type Vtable = IServiceSxsConfig_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IServiceSxsConfig { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc7cd7379_f3f2_4634_811b_703281d73e08); -} #[repr(C)] #[doc(hidden)] pub struct IServiceSxsConfig_Vtbl { @@ -4851,30 +4077,21 @@ pub struct IServiceSxsConfig_Vtbl { pub SxsName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, szsxsname: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub SxsDirectory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, szsxsdirectory: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IServiceSynchronizationConfig(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IServiceSynchronizationConfig, IServiceSynchronizationConfig_Vtbl, 0xfd880e81_6dce_4c58_af83_a208846c0030); +::windows_core::imp::interface_hierarchy!(IServiceSynchronizationConfig, ::windows_core::IUnknown); impl IServiceSynchronizationConfig { pub unsafe fn ConfigureSynchronization(&self, synchconfig: CSC_SynchronizationConfig) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).ConfigureSynchronization)(::windows_core::Interface::as_raw(self), synchconfig).ok() } } -::windows_core::imp::interface_hierarchy!(IServiceSynchronizationConfig, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IServiceSynchronizationConfig { - type Vtable = IServiceSynchronizationConfig_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IServiceSynchronizationConfig { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfd880e81_6dce_4c58_af83_a208846c0030); -} #[repr(C)] #[doc(hidden)] pub struct IServiceSynchronizationConfig_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub ConfigureSynchronization: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, synchconfig: CSC_SynchronizationConfig) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IServiceSysTxnConfig(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IServiceSysTxnConfig, IServiceSysTxnConfig_Vtbl, 0x33caf1a1_fcb8_472b_b45e_967448ded6d8); +::windows_core::imp::interface_hierarchy!(IServiceSysTxnConfig, ::windows_core::IUnknown, IServiceTransactionConfigBase, IServiceTransactionConfig); impl IServiceSysTxnConfig { pub unsafe fn ConfigureTransaction(&self, transactionconfig: CSC_TransactionConfig) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.ConfigureTransaction)(::windows_core::Interface::as_raw(self), transactionconfig).ok() @@ -4912,22 +4129,14 @@ impl IServiceSysTxnConfig { (::windows_core::Interface::vtable(self).ConfigureBYOTSysTxn)(::windows_core::Interface::as_raw(self), ptxproxy.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IServiceSysTxnConfig, ::windows_core::IUnknown, IServiceTransactionConfigBase, IServiceTransactionConfig); -unsafe impl ::windows_core::Interface for IServiceSysTxnConfig { - type Vtable = IServiceSysTxnConfig_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IServiceSysTxnConfig { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x33caf1a1_fcb8_472b_b45e_967448ded6d8); -} #[repr(C)] #[doc(hidden)] pub struct IServiceSysTxnConfig_Vtbl { pub base__: IServiceTransactionConfig_Vtbl, pub ConfigureBYOTSysTxn: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptxproxy: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IServiceThreadPoolConfig(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IServiceThreadPoolConfig, IServiceThreadPoolConfig_Vtbl, 0x186d89bc_f277_4bcc_80d5_4df7b836ef4a); +::windows_core::imp::interface_hierarchy!(IServiceThreadPoolConfig, ::windows_core::IUnknown); impl IServiceThreadPoolConfig { pub unsafe fn SelectThreadPool(&self, threadpool: CSC_ThreadPool) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SelectThreadPool)(::windows_core::Interface::as_raw(self), threadpool).ok() @@ -4936,13 +4145,6 @@ impl IServiceThreadPoolConfig { (::windows_core::Interface::vtable(self).SetBindingInfo)(::windows_core::Interface::as_raw(self), binding).ok() } } -::windows_core::imp::interface_hierarchy!(IServiceThreadPoolConfig, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IServiceThreadPoolConfig { - type Vtable = IServiceThreadPoolConfig_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IServiceThreadPoolConfig { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x186d89bc_f277_4bcc_80d5_4df7b836ef4a); -} #[repr(C)] #[doc(hidden)] pub struct IServiceThreadPoolConfig_Vtbl { @@ -4950,9 +4152,8 @@ pub struct IServiceThreadPoolConfig_Vtbl { pub SelectThreadPool: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, threadpool: CSC_ThreadPool) -> ::windows_core::HRESULT, pub SetBindingInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, binding: CSC_Binding) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IServiceTrackerConfig(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IServiceTrackerConfig, IServiceTrackerConfig_Vtbl, 0x6c3a3e1d_0ba6_4036_b76f_d0404db816c9); +::windows_core::imp::interface_hierarchy!(IServiceTrackerConfig, ::windows_core::IUnknown); impl IServiceTrackerConfig { pub unsafe fn TrackerConfig(&self, trackerconfig: CSC_TrackerConfig, sztrackerappname: P0, sztrackerctxname: P1) -> ::windows_core::Result<()> where @@ -4962,22 +4163,14 @@ impl IServiceTrackerConfig { (::windows_core::Interface::vtable(self).TrackerConfig)(::windows_core::Interface::as_raw(self), trackerconfig, sztrackerappname.into_param().abi(), sztrackerctxname.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IServiceTrackerConfig, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IServiceTrackerConfig { - type Vtable = IServiceTrackerConfig_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IServiceTrackerConfig { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6c3a3e1d_0ba6_4036_b76f_d0404db816c9); -} #[repr(C)] #[doc(hidden)] pub struct IServiceTrackerConfig_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub TrackerConfig: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, trackerconfig: CSC_TrackerConfig, sztrackerappname: ::windows_core::PCWSTR, sztrackerctxname: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IServiceTransactionConfig(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IServiceTransactionConfig, IServiceTransactionConfig_Vtbl, 0x59f4c2a3_d3d7_4a31_b6e4_6ab3177c50b9); +::windows_core::imp::interface_hierarchy!(IServiceTransactionConfig, ::windows_core::IUnknown, IServiceTransactionConfigBase); impl IServiceTransactionConfig { pub unsafe fn ConfigureTransaction(&self, transactionconfig: CSC_TransactionConfig) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.ConfigureTransaction)(::windows_core::Interface::as_raw(self), transactionconfig).ok() @@ -5009,13 +4202,6 @@ impl IServiceTransactionConfig { (::windows_core::Interface::vtable(self).ConfigureBYOT)(::windows_core::Interface::as_raw(self), pitxbyot.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IServiceTransactionConfig, ::windows_core::IUnknown, IServiceTransactionConfigBase); -unsafe impl ::windows_core::Interface for IServiceTransactionConfig { - type Vtable = IServiceTransactionConfig_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IServiceTransactionConfig { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x59f4c2a3_d3d7_4a31_b6e4_6ab3177c50b9); -} #[repr(C)] #[doc(hidden)] pub struct IServiceTransactionConfig_Vtbl { @@ -5025,9 +4211,8 @@ pub struct IServiceTransactionConfig_Vtbl { #[cfg(not(feature = "Win32_System_DistributedTransactionCoordinator"))] ConfigureBYOT: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IServiceTransactionConfigBase(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IServiceTransactionConfigBase, IServiceTransactionConfigBase_Vtbl, 0x772b3fbe_6ffd_42fb_b5f8_8f9b260f3810); +::windows_core::imp::interface_hierarchy!(IServiceTransactionConfigBase, ::windows_core::IUnknown); impl IServiceTransactionConfigBase { pub unsafe fn ConfigureTransaction(&self, transactionconfig: CSC_TransactionConfig) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).ConfigureTransaction)(::windows_core::Interface::as_raw(self), transactionconfig).ok() @@ -5051,13 +4236,6 @@ impl IServiceTransactionConfigBase { (::windows_core::Interface::vtable(self).NewTransactionDescription)(::windows_core::Interface::as_raw(self), sztxdesc.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IServiceTransactionConfigBase, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IServiceTransactionConfigBase { - type Vtable = IServiceTransactionConfigBase_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IServiceTransactionConfigBase { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x772b3fbe_6ffd_42fb_b5f8_8f9b260f3810); -} #[repr(C)] #[doc(hidden)] pub struct IServiceTransactionConfigBase_Vtbl { @@ -5068,11 +4246,15 @@ pub struct IServiceTransactionConfigBase_Vtbl { pub BringYourOwnTransaction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sztipurl: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub NewTransactionDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sztxdesc: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISharedProperty(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISharedProperty, + ISharedProperty_Vtbl, + 0x2a005c01_a5de_11cf_9e66_00aa00a3f464 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISharedProperty, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISharedProperty { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5088,16 +4270,6 @@ impl ISharedProperty { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISharedProperty, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISharedProperty { - type Vtable = ISharedProperty_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISharedProperty { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2a005c01_a5de_11cf_9e66_00aa00a3f464); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISharedProperty_Vtbl { @@ -5111,11 +4283,15 @@ pub struct ISharedProperty_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] SetValue: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISharedPropertyGroup(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISharedPropertyGroup, + ISharedPropertyGroup_Vtbl, + 0x2a005c07_a5de_11cf_9e66_00aa00a3f464 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISharedPropertyGroup, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISharedPropertyGroup { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -5148,16 +4324,6 @@ impl ISharedPropertyGroup { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISharedPropertyGroup, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISharedPropertyGroup { - type Vtable = ISharedPropertyGroup_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISharedPropertyGroup { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2a005c07_a5de_11cf_9e66_00aa00a3f464); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISharedPropertyGroup_Vtbl { @@ -5179,11 +4345,15 @@ pub struct ISharedPropertyGroup_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] get_Property: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISharedPropertyGroupManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISharedPropertyGroupManager, + ISharedPropertyGroupManager_Vtbl, + 0x2a005c0d_a5de_11cf_9e66_00aa00a3f464 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISharedPropertyGroupManager, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISharedPropertyGroupManager { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -5209,16 +4379,6 @@ impl ISharedPropertyGroupManager { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISharedPropertyGroupManager, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISharedPropertyGroupManager { - type Vtable = ISharedPropertyGroupManager_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISharedPropertyGroupManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2a005c0d_a5de_11cf_9e66_00aa00a3f464); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISharedPropertyGroupManager_Vtbl { @@ -5233,9 +4393,8 @@ pub struct ISharedPropertyGroupManager_Vtbl { get_Group: usize, pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISystemAppEventData(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISystemAppEventData, ISystemAppEventData_Vtbl, 0xd6d48a3c_d5c5_49e7_8c74_99e4889ed52f); +::windows_core::imp::interface_hierarchy!(ISystemAppEventData, ::windows_core::IUnknown); impl ISystemAppEventData { pub unsafe fn Startup(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Startup)(::windows_core::Interface::as_raw(self)).ok() @@ -5247,13 +4406,6 @@ impl ISystemAppEventData { (::windows_core::Interface::vtable(self).OnDataChanged)(::windows_core::Interface::as_raw(self), dwpid, dwmask, dwnumbersinks, bstrdwmethodmask.into_param().abi(), dwreason, u64tracehandle).ok() } } -::windows_core::imp::interface_hierarchy!(ISystemAppEventData, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISystemAppEventData { - type Vtable = ISystemAppEventData_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISystemAppEventData { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd6d48a3c_d5c5_49e7_8c74_99e4889ed52f); -} #[repr(C)] #[doc(hidden)] pub struct ISystemAppEventData_Vtbl { @@ -5261,9 +4413,8 @@ pub struct ISystemAppEventData_Vtbl { pub Startup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub OnDataChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwpid: u32, dwmask: u32, dwnumbersinks: u32, bstrdwmethodmask: ::std::mem::MaybeUninit<::windows_core::BSTR>, dwreason: u32, u64tracehandle: u64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IThreadPoolKnobs(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IThreadPoolKnobs, IThreadPoolKnobs_Vtbl, 0x51372af7_cae7_11cf_be81_00aa00a2fa25); +::windows_core::imp::interface_hierarchy!(IThreadPoolKnobs, ::windows_core::IUnknown); impl IThreadPoolKnobs { pub unsafe fn GetMaxThreads(&self, plcmaxthreads: *mut i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetMaxThreads)(::windows_core::Interface::as_raw(self), plcmaxthreads).ok() @@ -5296,13 +4447,6 @@ impl IThreadPoolKnobs { (::windows_core::Interface::vtable(self).SetQueueDepth)(::windows_core::Interface::as_raw(self), lcqueuedepth).ok() } } -::windows_core::imp::interface_hierarchy!(IThreadPoolKnobs, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IThreadPoolKnobs { - type Vtable = IThreadPoolKnobs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IThreadPoolKnobs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51372af7_cae7_11cf_be81_00aa00a2fa25); -} #[repr(C)] #[doc(hidden)] pub struct IThreadPoolKnobs_Vtbl { @@ -5318,11 +4462,15 @@ pub struct IThreadPoolKnobs_Vtbl { pub SetMinThreads: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lcminthreads: i32) -> ::windows_core::HRESULT, pub SetQueueDepth: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lcqueuedepth: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITransactionContext(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITransactionContext, + ITransactionContext_Vtbl, + 0x7999fc21_d3c6_11cf_acab_00a024a55aef +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITransactionContext, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITransactionContext { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5342,16 +4490,6 @@ impl ITransactionContext { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITransactionContext, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITransactionContext { - type Vtable = ITransactionContext_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITransactionContext { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7999fc21_d3c6_11cf_acab_00a024a55aef); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITransactionContext_Vtbl { @@ -5363,13 +4501,12 @@ pub struct ITransactionContext_Vtbl { pub Commit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Abort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITransactionContextEx(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITransactionContextEx, ITransactionContextEx_Vtbl, 0x7999fc22_d3c6_11cf_acab_00a024a55aef); +::windows_core::imp::interface_hierarchy!(ITransactionContextEx, ::windows_core::IUnknown); impl ITransactionContextEx { pub unsafe fn CreateInstance(&self, rclsid: *const ::windows_core::GUID) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).CreateInstance)(::windows_core::Interface::as_raw(self), rclsid, &T::IID, &mut result__).from_abi(result__) @@ -5381,13 +4518,6 @@ impl ITransactionContextEx { (::windows_core::Interface::vtable(self).Abort)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ITransactionContextEx, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITransactionContextEx { - type Vtable = ITransactionContextEx_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITransactionContextEx { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7999fc22_d3c6_11cf_acab_00a024a55aef); -} #[repr(C)] #[doc(hidden)] pub struct ITransactionContextEx_Vtbl { @@ -5396,9 +4526,8 @@ pub struct ITransactionContextEx_Vtbl { pub Commit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Abort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITransactionProperty(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITransactionProperty, ITransactionProperty_Vtbl, 0x788ea814_87b1_11d1_bba6_00c04fc2fa5f); +::windows_core::imp::interface_hierarchy!(ITransactionProperty, ::windows_core::IUnknown); impl ITransactionProperty { pub unsafe fn Reserved1(&self) { (::windows_core::Interface::vtable(self).Reserved1)(::windows_core::Interface::as_raw(self)) @@ -5456,13 +4585,6 @@ impl ITransactionProperty { (::windows_core::Interface::vtable(self).Reserved17)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(ITransactionProperty, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITransactionProperty { - type Vtable = ITransactionProperty_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITransactionProperty { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x788ea814_87b1_11d1_bba6_00c04fc2fa5f); -} #[repr(C)] #[doc(hidden)] pub struct ITransactionProperty_Vtbl { @@ -5486,9 +4608,8 @@ pub struct ITransactionProperty_Vtbl { pub Reserved16: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), pub Reserved17: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITransactionProxy(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITransactionProxy, ITransactionProxy_Vtbl, 0x02558374_df2e_4dae_bd6b_1d5c994f9bdc); +::windows_core::imp::interface_hierarchy!(ITransactionProxy, ::windows_core::IUnknown); impl ITransactionProxy { pub unsafe fn Commit(&self, guid: ::windows_core::GUID) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Commit)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(guid)).ok() @@ -5521,13 +4642,6 @@ impl ITransactionProxy { (::windows_core::Interface::vtable(self).IsReusable)(::windows_core::Interface::as_raw(self), pfisreusable).ok() } } -::windows_core::imp::interface_hierarchy!(ITransactionProxy, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITransactionProxy { - type Vtable = ITransactionProxy_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITransactionProxy { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x02558374_df2e_4dae_bd6b_1d5c994f9bdc); -} #[repr(C)] #[doc(hidden)] pub struct ITransactionProxy_Vtbl { @@ -5546,9 +4660,8 @@ pub struct ITransactionProxy_Vtbl { pub GetIdentifier: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstridentifier: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, pub IsReusable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfisreusable: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITransactionResourcePool(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITransactionResourcePool, ITransactionResourcePool_Vtbl, 0xc5feb7c1_346a_11d1_b1cc_00aa00ba3258); +::windows_core::imp::interface_hierarchy!(ITransactionResourcePool, ::windows_core::IUnknown); impl ITransactionResourcePool { pub unsafe fn PutResource(&self, ppool: P0, punk: P1) -> ::windows_core::Result<()> where @@ -5565,13 +4678,6 @@ impl ITransactionResourcePool { (::windows_core::Interface::vtable(self).GetResource)(::windows_core::Interface::as_raw(self), ppool.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITransactionResourcePool, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITransactionResourcePool { - type Vtable = ITransactionResourcePool_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITransactionResourcePool { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc5feb7c1_346a_11d1_b1cc_00aa00ba3258); -} #[repr(C)] #[doc(hidden)] pub struct ITransactionResourcePool_Vtbl { @@ -5579,9 +4685,8 @@ pub struct ITransactionResourcePool_Vtbl { pub PutResource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppool: *mut ::core::ffi::c_void, punk: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetResource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppool: *mut ::core::ffi::c_void, ppunk: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITransactionStatus(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITransactionStatus, ITransactionStatus_Vtbl, 0x61f589e8_3724_4898_a0a4_664ae9e1d1b4); +::windows_core::imp::interface_hierarchy!(ITransactionStatus, ::windows_core::IUnknown); impl ITransactionStatus { pub unsafe fn SetTransactionStatus(&self, hrstatus: ::windows_core::HRESULT) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetTransactionStatus)(::windows_core::Interface::as_raw(self), hrstatus).ok() @@ -5590,13 +4695,6 @@ impl ITransactionStatus { (::windows_core::Interface::vtable(self).GetTransactionStatus)(::windows_core::Interface::as_raw(self), phrstatus).ok() } } -::windows_core::imp::interface_hierarchy!(ITransactionStatus, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITransactionStatus { - type Vtable = ITransactionStatus_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITransactionStatus { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x61f589e8_3724_4898_a0a4_664ae9e1d1b4); -} #[repr(C)] #[doc(hidden)] pub struct ITransactionStatus_Vtbl { @@ -5604,32 +4702,28 @@ pub struct ITransactionStatus_Vtbl { pub SetTransactionStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hrstatus: ::windows_core::HRESULT) -> ::windows_core::HRESULT, pub GetTransactionStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phrstatus: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITxProxyHolder(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITxProxyHolder, ITxProxyHolder_Vtbl, 0x13d86f31_0139_41af_bcad_c7d50435fe9f); +::windows_core::imp::interface_hierarchy!(ITxProxyHolder, ::windows_core::IUnknown); impl ITxProxyHolder { pub unsafe fn GetIdentifier(&self, pguidltx: *mut ::windows_core::GUID) { (::windows_core::Interface::vtable(self).GetIdentifier)(::windows_core::Interface::as_raw(self), pguidltx) } } -::windows_core::imp::interface_hierarchy!(ITxProxyHolder, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITxProxyHolder { - type Vtable = ITxProxyHolder_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITxProxyHolder { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x13d86f31_0139_41af_bcad_c7d50435fe9f); -} #[repr(C)] #[doc(hidden)] pub struct ITxProxyHolder_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetIdentifier: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pguidltx: *mut ::windows_core::GUID), } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ObjectContext(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ObjectContext, + ObjectContext_Vtbl, + 0x74c08646_cedb_11cf_8b49_00aa00b8a790 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ObjectContext, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ObjectContext { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5699,16 +4793,6 @@ impl ObjectContext { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ObjectContext, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ObjectContext { - type Vtable = ObjectContext_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ObjectContext { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x74c08646_cedb_11cf_8b49_00aa00b8a790); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ObjectContext_Vtbl { @@ -5739,9 +4823,8 @@ pub struct ObjectContext_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] ContextInfo: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ObjectControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ObjectControl, ObjectControl_Vtbl, 0x7dc41850_0c31_11d0_8b79_00aa00b8a790); +::windows_core::imp::interface_hierarchy!(ObjectControl, ::windows_core::IUnknown); impl ObjectControl { pub unsafe fn Activate(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Activate)(::windows_core::Interface::as_raw(self)).ok() @@ -5753,13 +4836,6 @@ impl ObjectControl { (::windows_core::Interface::vtable(self).CanBePooled)(::windows_core::Interface::as_raw(self), pbpoolable).ok() } } -::windows_core::imp::interface_hierarchy!(ObjectControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ObjectControl { - type Vtable = ObjectControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ObjectControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7dc41850_0c31_11d0_8b79_00aa00b8a790); -} #[repr(C)] #[doc(hidden)] pub struct ObjectControl_Vtbl { @@ -5768,11 +4844,15 @@ pub struct ObjectControl_Vtbl { pub Deactivate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CanBePooled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbpoolable: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct SecurityProperty(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + SecurityProperty, + SecurityProperty_Vtbl, + 0xe74a7215_014d_11d1_a63c_00a0c911b4e0 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(SecurityProperty, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl SecurityProperty { pub unsafe fn GetDirectCallerName(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -5793,16 +4873,6 @@ impl SecurityProperty { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(SecurityProperty, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for SecurityProperty { - type Vtable = SecurityProperty_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for SecurityProperty { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe74a7215_014d_11d1_a63c_00a0c911b4e0); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct SecurityProperty_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/System/Contacts/impl.rs b/crates/libs/windows/src/Windows/Win32/System/Contacts/impl.rs index 56bd750f9c..088944a979 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Contacts/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Contacts/impl.rs @@ -29,7 +29,7 @@ impl IContact_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IContactAggregationAggregate_Impl: Sized { @@ -135,7 +135,7 @@ impl IContactAggregationAggregate_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IContactAggregationAggregateCollection_Impl: Sized { @@ -200,7 +200,7 @@ impl IContactAggregationAggregateCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IContactAggregationContact_Impl: Sized { @@ -393,7 +393,7 @@ impl IContactAggregationContact_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IContactAggregationContactCollection_Impl: Sized { @@ -471,7 +471,7 @@ impl IContactAggregationContactCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IContactAggregationGroup_Impl: Sized { @@ -578,7 +578,7 @@ impl IContactAggregationGroup_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IContactAggregationGroupCollection_Impl: Sized { @@ -643,7 +643,7 @@ impl IContactAggregationGroupCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IContactAggregationLink_Impl: Sized { @@ -823,7 +823,7 @@ impl IContactAggregationLink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IContactAggregationLinkCollection_Impl: Sized { @@ -888,7 +888,7 @@ impl IContactAggregationLinkCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IContactAggregationManager_Impl: Sized { @@ -1078,7 +1078,7 @@ impl IContactAggregationManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IContactAggregationServerPerson_Impl: Sized { @@ -1318,7 +1318,7 @@ impl IContactAggregationServerPerson_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IContactAggregationServerPersonCollection_Impl: Sized { @@ -1409,7 +1409,7 @@ impl IContactAggregationServerPersonCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IContactCollection_Impl: Sized { @@ -1449,7 +1449,7 @@ impl IContactCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IContactManager_Impl: Sized { @@ -1522,7 +1522,7 @@ impl IContactManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1630,7 +1630,7 @@ impl IContactProperties_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IContactPropertyCollection_Impl: Sized { @@ -1692,6 +1692,6 @@ impl IContactPropertyCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 4c733b8b30..5e3a7950fd 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Contacts/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Contacts/mod.rs @@ -1,6 +1,5 @@ -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContact(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IContact, IContact_Vtbl, 0xf941b671_bda7_4f77_884a_f46462f226a7); +::windows_core::imp::interface_hierarchy!(IContact, ::windows_core::IUnknown); impl IContact { pub unsafe fn GetContactID(&self, pszcontactid: &mut [u16], pdwcchcontactidrequired: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetContactID)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pszcontactid.as_ptr()), pszcontactid.len().try_into().unwrap(), pdwcchcontactidrequired).ok() @@ -12,13 +11,6 @@ impl IContact { (::windows_core::Interface::vtable(self).CommitChanges)(::windows_core::Interface::as_raw(self), dwcommitflags).ok() } } -::windows_core::imp::interface_hierarchy!(IContact, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContact { - type Vtable = IContact_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContact { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf941b671_bda7_4f77_884a_f46462f226a7); -} #[repr(C)] #[doc(hidden)] pub struct IContact_Vtbl { @@ -27,9 +19,8 @@ pub struct IContact_Vtbl { pub GetPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszpath: ::windows_core::PWSTR, cchpath: u32, pdwcchpathrequired: *mut u32) -> ::windows_core::HRESULT, pub CommitChanges: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwcommitflags: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactAggregationAggregate(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IContactAggregationAggregate, IContactAggregationAggregate_Vtbl, 0x7ed1c814_cd30_43c8_9b8d_2e489e53d54b); +::windows_core::imp::interface_hierarchy!(IContactAggregationAggregate, ::windows_core::IUnknown); impl IContactAggregationAggregate { pub unsafe fn Save(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Save)(::windows_core::Interface::as_raw(self)).ok() @@ -70,13 +61,6 @@ impl IContactAggregationAggregate { (::windows_core::Interface::vtable(self).Id)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IContactAggregationAggregate, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactAggregationAggregate { - type Vtable = IContactAggregationAggregate_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactAggregationAggregate { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7ed1c814_cd30_43c8_9b8d_2e489e53d54b); -} #[repr(C)] #[doc(hidden)] pub struct IContactAggregationAggregate_Vtbl { @@ -91,9 +75,8 @@ pub struct IContactAggregationAggregate_Vtbl { pub SetFavoriteOrder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, favoriteorder: u32) -> ::windows_core::HRESULT, pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppitemid: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactAggregationAggregateCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IContactAggregationAggregateCollection, IContactAggregationAggregateCollection_Vtbl, 0x2359f3a6_3a68_40af_98db_0f9eb143c3bb); +::windows_core::imp::interface_hierarchy!(IContactAggregationAggregateCollection, ::windows_core::IUnknown); impl IContactAggregationAggregateCollection { pub unsafe fn FindFirst(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -115,13 +98,6 @@ impl IContactAggregationAggregateCollection { (::windows_core::Interface::vtable(self).Count)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IContactAggregationAggregateCollection, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactAggregationAggregateCollection { - type Vtable = IContactAggregationAggregateCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactAggregationAggregateCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2359f3a6_3a68_40af_98db_0f9eb143c3bb); -} #[repr(C)] #[doc(hidden)] pub struct IContactAggregationAggregateCollection_Vtbl { @@ -131,9 +107,8 @@ pub struct IContactAggregationAggregateCollection_Vtbl { pub FindNext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppaggregate: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcount: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactAggregationContact(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IContactAggregationContact, IContactAggregationContact_Vtbl, 0x1eb22e86_4c86_41f0_9f9f_c251e9fda6c3); +::windows_core::imp::interface_hierarchy!(IContactAggregationContact, ::windows_core::IUnknown); impl IContactAggregationContact { pub unsafe fn Delete(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Delete)(::windows_core::Interface::as_raw(self)).ok() @@ -208,13 +183,6 @@ impl IContactAggregationContact { (::windows_core::Interface::vtable(self).SetSyncIdentityHash)(::windows_core::Interface::as_raw(self), psyncidentityhash).ok() } } -::windows_core::imp::interface_hierarchy!(IContactAggregationContact, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactAggregationContact { - type Vtable = IContactAggregationContact_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactAggregationContact { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1eb22e86_4c86_41f0_9f9f_c251e9fda6c3); -} #[repr(C)] #[doc(hidden)] pub struct IContactAggregationContact_Vtbl { @@ -238,9 +206,8 @@ pub struct IContactAggregationContact_Vtbl { pub SyncIdentityHash: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppsyncidentityhash: *mut *mut CONTACT_AGGREGATION_BLOB) -> ::windows_core::HRESULT, pub SetSyncIdentityHash: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psyncidentityhash: *const CONTACT_AGGREGATION_BLOB) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactAggregationContactCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IContactAggregationContactCollection, IContactAggregationContactCollection_Vtbl, 0x826e66fa_81de_43ca_a6fb_8c785cd996c6); +::windows_core::imp::interface_hierarchy!(IContactAggregationContactCollection, ::windows_core::IUnknown); impl IContactAggregationContactCollection { pub unsafe fn FindFirst(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -271,13 +238,6 @@ impl IContactAggregationContactCollection { (::windows_core::Interface::vtable(self).FindFirstByRemoteId)(::windows_core::Interface::as_raw(self), psourcetype.into_param().abi(), paccountid.into_param().abi(), premoteobjectid, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IContactAggregationContactCollection, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactAggregationContactCollection { - type Vtable = IContactAggregationContactCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactAggregationContactCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x826e66fa_81de_43ca_a6fb_8c785cd996c6); -} #[repr(C)] #[doc(hidden)] pub struct IContactAggregationContactCollection_Vtbl { @@ -288,9 +248,8 @@ pub struct IContactAggregationContactCollection_Vtbl { pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcount: *mut i32) -> ::windows_core::HRESULT, pub FindFirstByRemoteId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psourcetype: ::windows_core::PCWSTR, paccountid: ::windows_core::PCWSTR, premoteobjectid: *const CONTACT_AGGREGATION_BLOB, ppitem: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactAggregationGroup(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IContactAggregationGroup, IContactAggregationGroup_Vtbl, 0xc93c545f_1284_499b_96af_07372af473e0); +::windows_core::imp::interface_hierarchy!(IContactAggregationGroup, ::windows_core::IUnknown); impl IContactAggregationGroup { pub unsafe fn Delete(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Delete)(::windows_core::Interface::as_raw(self)).ok() @@ -336,13 +295,6 @@ impl IContactAggregationGroup { (::windows_core::Interface::vtable(self).SetName)(::windows_core::Interface::as_raw(self), pname.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IContactAggregationGroup, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactAggregationGroup { - type Vtable = IContactAggregationGroup_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactAggregationGroup { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc93c545f_1284_499b_96af_07372af473e0); -} #[repr(C)] #[doc(hidden)] pub struct IContactAggregationGroup_Vtbl { @@ -358,9 +310,8 @@ pub struct IContactAggregationGroup_Vtbl { pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppname: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pname: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactAggregationGroupCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IContactAggregationGroupCollection, IContactAggregationGroupCollection_Vtbl, 0x20a19a9c_d2f3_4b83_9143_beffd2cc226d); +::windows_core::imp::interface_hierarchy!(IContactAggregationGroupCollection, ::windows_core::IUnknown); impl IContactAggregationGroupCollection { pub unsafe fn FindFirst(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -379,13 +330,6 @@ impl IContactAggregationGroupCollection { (::windows_core::Interface::vtable(self).Count)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IContactAggregationGroupCollection, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactAggregationGroupCollection { - type Vtable = IContactAggregationGroupCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactAggregationGroupCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x20a19a9c_d2f3_4b83_9143_beffd2cc226d); -} #[repr(C)] #[doc(hidden)] pub struct IContactAggregationGroupCollection_Vtbl { @@ -395,9 +339,8 @@ pub struct IContactAggregationGroupCollection_Vtbl { pub FindNext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppgroup: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcount: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactAggregationLink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IContactAggregationLink, IContactAggregationLink_Vtbl, 0xb6813323_a183_4654_8627_79b30de3a0ec); +::windows_core::imp::interface_hierarchy!(IContactAggregationLink, ::windows_core::IUnknown); impl IContactAggregationLink { pub unsafe fn Delete(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Delete)(::windows_core::Interface::as_raw(self)).ok() @@ -474,13 +417,6 @@ impl IContactAggregationLink { (::windows_core::Interface::vtable(self).SetSyncIdentityHash)(::windows_core::Interface::as_raw(self), psyncidentityhash).ok() } } -::windows_core::imp::interface_hierarchy!(IContactAggregationLink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactAggregationLink { - type Vtable = IContactAggregationLink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactAggregationLink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb6813323_a183_4654_8627_79b30de3a0ec); -} #[repr(C)] #[doc(hidden)] pub struct IContactAggregationLink_Vtbl { @@ -503,9 +439,8 @@ pub struct IContactAggregationLink_Vtbl { pub SyncIdentityHash: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppsyncidentityhash: *mut *mut CONTACT_AGGREGATION_BLOB) -> ::windows_core::HRESULT, pub SetSyncIdentityHash: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psyncidentityhash: *const CONTACT_AGGREGATION_BLOB) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactAggregationLinkCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IContactAggregationLinkCollection, IContactAggregationLinkCollection_Vtbl, 0xf8bc0e93_fb55_4f28_b9fa_b1c274153292); +::windows_core::imp::interface_hierarchy!(IContactAggregationLinkCollection, ::windows_core::IUnknown); impl IContactAggregationLinkCollection { pub unsafe fn FindFirst(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -528,13 +463,6 @@ impl IContactAggregationLinkCollection { (::windows_core::Interface::vtable(self).Count)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IContactAggregationLinkCollection, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactAggregationLinkCollection { - type Vtable = IContactAggregationLinkCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactAggregationLinkCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf8bc0e93_fb55_4f28_b9fa_b1c274153292); -} #[repr(C)] #[doc(hidden)] pub struct IContactAggregationLinkCollection_Vtbl { @@ -544,9 +472,8 @@ pub struct IContactAggregationLinkCollection_Vtbl { pub FindNext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppservercontactlink: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcount: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactAggregationManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IContactAggregationManager, IContactAggregationManager_Vtbl, 0x1d865989_4b1f_4b60_8f34_c2ad468b2b50); +::windows_core::imp::interface_hierarchy!(IContactAggregationManager, ::windows_core::IUnknown); impl IContactAggregationManager { pub unsafe fn GetVersionInfo(&self, plmajorversion: *mut i32, plminorversion: *mut i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetVersionInfo)(::windows_core::Interface::as_raw(self), plmajorversion, plminorversion).ok() @@ -624,13 +551,6 @@ impl IContactAggregationManager { (::windows_core::Interface::vtable(self).get_ServerContactLinks)(::windows_core::Interface::as_raw(self), ppersonitemid.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IContactAggregationManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactAggregationManager { - type Vtable = IContactAggregationManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactAggregationManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1d865989_4b1f_4b60_8f34_c2ad468b2b50); -} #[repr(C)] #[doc(hidden)] pub struct IContactAggregationManager_Vtbl { @@ -651,9 +571,8 @@ pub struct IContactAggregationManager_Vtbl { pub ServerPersons: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppserverpersoncollection: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub get_ServerContactLinks: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppersonitemid: ::windows_core::PCWSTR, ppservercontactlinkcollection: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactAggregationServerPerson(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IContactAggregationServerPerson, IContactAggregationServerPerson_Vtbl, 0x7fdc3d4b_1b82_4334_85c5_25184ee5a5f2); +::windows_core::imp::interface_hierarchy!(IContactAggregationServerPerson, ::windows_core::IUnknown); impl IContactAggregationServerPerson { pub unsafe fn Delete(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Delete)(::windows_core::Interface::as_raw(self)).ok() @@ -754,13 +673,6 @@ impl IContactAggregationServerPerson { (::windows_core::Interface::vtable(self).SetObjectId)(::windows_core::Interface::as_raw(self), pobjectid.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IContactAggregationServerPerson, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactAggregationServerPerson { - type Vtable = IContactAggregationServerPerson_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactAggregationServerPerson { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7fdc3d4b_1b82_4334_85c5_25184ee5a5f2); -} #[repr(C)] #[doc(hidden)] pub struct IContactAggregationServerPerson_Vtbl { @@ -789,9 +701,8 @@ pub struct IContactAggregationServerPerson_Vtbl { pub ObjectId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppobjectid: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, pub SetObjectId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pobjectid: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactAggregationServerPersonCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IContactAggregationServerPersonCollection, IContactAggregationServerPersonCollection_Vtbl, 0x4f730a4a_6604_47b6_a987_669ecf1e5751); +::windows_core::imp::interface_hierarchy!(IContactAggregationServerPersonCollection, ::windows_core::IUnknown); impl IContactAggregationServerPersonCollection { pub unsafe fn FindFirst(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -827,13 +738,6 @@ impl IContactAggregationServerPersonCollection { (::windows_core::Interface::vtable(self).Count)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IContactAggregationServerPersonCollection, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactAggregationServerPersonCollection { - type Vtable = IContactAggregationServerPersonCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactAggregationServerPersonCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4f730a4a_6604_47b6_a987_669ecf1e5751); -} #[repr(C)] #[doc(hidden)] pub struct IContactAggregationServerPersonCollection_Vtbl { @@ -845,9 +749,8 @@ pub struct IContactAggregationServerPersonCollection_Vtbl { pub FindNext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppserverperson: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcount: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IContactCollection, IContactCollection_Vtbl, 0xb6afa338_d779_11d9_8bde_f66bad1e3f3a); +::windows_core::imp::interface_hierarchy!(IContactCollection, ::windows_core::IUnknown); impl IContactCollection { pub unsafe fn Reset(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Reset)(::windows_core::Interface::as_raw(self)).ok() @@ -860,13 +763,6 @@ impl IContactCollection { (::windows_core::Interface::vtable(self).GetCurrent)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IContactCollection, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactCollection { - type Vtable = IContactCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb6afa338_d779_11d9_8bde_f66bad1e3f3a); -} #[repr(C)] #[doc(hidden)] pub struct IContactCollection_Vtbl { @@ -875,9 +771,8 @@ pub struct IContactCollection_Vtbl { pub Next: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetCurrent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppcontact: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IContactManager, IContactManager_Vtbl, 0xad553d98_deb1_474a_8e17_fc0c2075b738); +::windows_core::imp::interface_hierarchy!(IContactManager, ::windows_core::IUnknown); impl IContactManager { pub unsafe fn Initialize(&self, pszappname: P0, pszappversion: P1) -> ::windows_core::Result<()> where @@ -915,13 +810,6 @@ impl IContactManager { (::windows_core::Interface::vtable(self).GetContactCollection)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IContactManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactManager { - type Vtable = IContactManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xad553d98_deb1_474a_8e17_fc0c2075b738); -} #[repr(C)] #[doc(hidden)] pub struct IContactManager_Vtbl { @@ -933,9 +821,8 @@ pub struct IContactManager_Vtbl { pub SetMeContact: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pmecontact: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetContactCollection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppcontactcollection: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactProperties(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IContactProperties, IContactProperties_Vtbl, 0x70dd27dd_5cbd_46e8_bef0_23b6b346288f); +::windows_core::imp::interface_hierarchy!(IContactProperties, ::windows_core::IUnknown); impl IContactProperties { pub unsafe fn GetString(&self, pszpropertyname: P0, dwflags: u32, pszvalue: &mut [u16], pdwcchpropertyvaluerequired: *mut u32) -> ::windows_core::Result<()> where @@ -1025,13 +912,6 @@ impl IContactProperties { (::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::imp::interface_hierarchy!(IContactProperties, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactProperties { - type Vtable = IContactProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x70dd27dd_5cbd_46e8_bef0_23b6b346288f); -} #[repr(C)] #[doc(hidden)] pub struct IContactProperties_Vtbl { @@ -1056,9 +936,8 @@ pub struct IContactProperties_Vtbl { pub DeleteLabels: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszarrayelementname: ::windows_core::PCWSTR, dwflags: u32) -> ::windows_core::HRESULT, pub GetPropertyCollection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pppropertycollection: *mut *mut ::core::ffi::c_void, dwflags: u32, pszmultivaluename: ::windows_core::PCWSTR, dwlabelcount: u32, ppszlabels: *const ::windows_core::PCWSTR, fanylabelmatches: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactPropertyCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IContactPropertyCollection, IContactPropertyCollection_Vtbl, 0xffd3adf8_fa64_4328_b1b6_2e0db509cb3c); +::windows_core::imp::interface_hierarchy!(IContactPropertyCollection, ::windows_core::IUnknown); impl IContactPropertyCollection { pub unsafe fn Reset(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Reset)(::windows_core::Interface::as_raw(self)).ok() @@ -1082,13 +961,6 @@ impl IContactPropertyCollection { (::windows_core::Interface::vtable(self).GetPropertyArrayElementID)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pszarrayelementid.as_ptr()), pszarrayelementid.len().try_into().unwrap(), pdwccharrayelementidrequired).ok() } } -::windows_core::imp::interface_hierarchy!(IContactPropertyCollection, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactPropertyCollection { - type Vtable = IContactPropertyCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactPropertyCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xffd3adf8_fa64_4328_b1b6_2e0db509cb3c); -} #[repr(C)] #[doc(hidden)] pub struct IContactPropertyCollection_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/System/DeploymentServices/impl.rs b/crates/libs/windows/src/Windows/Win32/System/DeploymentServices/impl.rs index aafc253c03..0049423d3a 100644 --- a/crates/libs/windows/src/Windows/Win32/System/DeploymentServices/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/DeploymentServices/impl.rs @@ -46,7 +46,7 @@ impl IWdsTransportCacheable_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -213,7 +213,7 @@ impl IWdsTransportClient_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -269,7 +269,7 @@ impl IWdsTransportCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -367,7 +367,7 @@ impl IWdsTransportConfigurationManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -397,7 +397,7 @@ impl IWdsTransportConfigurationManager2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -473,7 +473,7 @@ impl IWdsTransportContent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -542,7 +542,7 @@ impl IWdsTransportContentProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -599,7 +599,7 @@ impl IWdsTransportDiagnosticsPolicy_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -626,7 +626,7 @@ impl IWdsTransportManager_Vtbl { Self { base__: super::Com::IDispatch_Vtbl::new::(), GetWdsTransportServer: GetWdsTransportServer:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -723,7 +723,7 @@ impl IWdsTransportMulticastSessionPolicy_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -965,7 +965,7 @@ impl IWdsTransportNamespace_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -979,7 +979,7 @@ impl IWdsTransportNamespaceAutoCast_Vtbl { Self { base__: IWdsTransportNamespace_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1035,7 +1035,7 @@ impl IWdsTransportNamespaceManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1056,7 +1056,7 @@ impl IWdsTransportNamespaceScheduledCast_Vtbl { Self { base__: IWdsTransportNamespace_Vtbl::new::(), StartTransmission: StartTransmission:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1113,7 +1113,7 @@ impl IWdsTransportNamespaceScheduledCastAutoStart_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1127,7 +1127,7 @@ impl IWdsTransportNamespaceScheduledCastManualStart_Vtbl { Self { base__: IWdsTransportNamespaceScheduledCast_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1203,7 +1203,7 @@ impl IWdsTransportServer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1230,7 +1230,7 @@ impl IWdsTransportServer2_Vtbl { Self { base__: IWdsTransportServer_Vtbl::new::(), TftpManager: TftpManager:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1367,7 +1367,7 @@ impl IWdsTransportServicePolicy_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1444,7 +1444,7 @@ impl IWdsTransportServicePolicy2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1559,7 +1559,7 @@ impl IWdsTransportSession_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1629,7 +1629,7 @@ impl IWdsTransportSetupManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1672,7 +1672,7 @@ impl IWdsTransportSetupManager2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1780,7 +1780,7 @@ impl IWdsTransportTftpClient_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1807,6 +1807,6 @@ impl IWdsTransportTftpManager_Vtbl { Self { base__: super::Com::IDispatch_Vtbl::new::(), RetrieveTftpClients: RetrieveTftpClients:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } 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 9dc5ae8b0e..3bc8b6443d 100644 --- a/crates/libs/windows/src/Windows/Win32/System/DeploymentServices/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/DeploymentServices/mod.rs @@ -708,11 +708,15 @@ where ::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() } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWdsTransportCacheable(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWdsTransportCacheable, + IWdsTransportCacheable_Vtbl, + 0x46ad894b_0bab_47dc_84b2_7b553f1d8f80 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWdsTransportCacheable, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IWdsTransportCacheable { pub unsafe fn Dirty(&self) -> ::windows_core::Result { @@ -730,16 +734,6 @@ impl IWdsTransportCacheable { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWdsTransportCacheable, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWdsTransportCacheable { - type Vtable = IWdsTransportCacheable_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWdsTransportCacheable { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x46ad894b_0bab_47dc_84b2_7b553f1d8f80); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWdsTransportCacheable_Vtbl { @@ -749,11 +743,15 @@ pub struct IWdsTransportCacheable_Vtbl { pub Refresh: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Commit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWdsTransportClient(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWdsTransportClient, + IWdsTransportClient_Vtbl, + 0xb5dbc93a_cabe_46ca_837f_3e44e93c6545 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWdsTransportClient, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IWdsTransportClient { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -807,16 +805,6 @@ impl IWdsTransportClient { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWdsTransportClient, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWdsTransportClient { - type Vtable = IWdsTransportClient_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWdsTransportClient { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb5dbc93a_cabe_46ca_837f_3e44e93c6545); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWdsTransportClient_Vtbl { @@ -837,11 +825,15 @@ pub struct IWdsTransportClient_Vtbl { pub UserIdentity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbszuseridentity: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub Disconnect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, disconnectiontype: WDSTRANSPORT_DISCONNECT_TYPE) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWdsTransportCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWdsTransportCollection, + IWdsTransportCollection_Vtbl, + 0xb8ba4b1a_2ff4_43ab_996c_b2b10a91a6eb +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWdsTransportCollection, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IWdsTransportCollection { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -860,16 +852,6 @@ impl IWdsTransportCollection { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWdsTransportCollection, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWdsTransportCollection { - type Vtable = IWdsTransportCollection_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWdsTransportCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb8ba4b1a_2ff4_43ab_996c_b2b10a91a6eb); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWdsTransportCollection_Vtbl { @@ -881,11 +863,15 @@ pub struct IWdsTransportCollection_Vtbl { get_Item: usize, pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppval: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWdsTransportConfigurationManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWdsTransportConfigurationManager, + IWdsTransportConfigurationManager_Vtbl, + 0x84cc4779_42dd_4792_891e_1321d6d74b44 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWdsTransportConfigurationManager, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IWdsTransportConfigurationManager { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -927,16 +913,6 @@ impl IWdsTransportConfigurationManager { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWdsTransportConfigurationManager, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWdsTransportConfigurationManager { - type Vtable = IWdsTransportConfigurationManager_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWdsTransportConfigurationManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x84cc4779_42dd_4792_891e_1321d6d74b44); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWdsTransportConfigurationManager_Vtbl { @@ -957,11 +933,15 @@ pub struct IWdsTransportConfigurationManager_Vtbl { pub RestartWdsTransportServices: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub NotifyWdsTransportServices: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, servicenotification: WDSTRANSPORT_SERVICE_NOTIFICATION) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWdsTransportConfigurationManager2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWdsTransportConfigurationManager2, + IWdsTransportConfigurationManager2_Vtbl, + 0xd0d85caf_a153_4f1d_a9dd_96f431c50717 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWdsTransportConfigurationManager2, ::windows_core::IUnknown, super::Com::IDispatch, IWdsTransportConfigurationManager); #[cfg(feature = "Win32_System_Com")] impl IWdsTransportConfigurationManager2 { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1009,16 +989,6 @@ impl IWdsTransportConfigurationManager2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWdsTransportConfigurationManager2, ::windows_core::IUnknown, super::Com::IDispatch, IWdsTransportConfigurationManager); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWdsTransportConfigurationManager2 { - type Vtable = IWdsTransportConfigurationManager2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWdsTransportConfigurationManager2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd0d85caf_a153_4f1d_a9dd_96f431c50717); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWdsTransportConfigurationManager2_Vtbl { @@ -1028,11 +998,15 @@ pub struct IWdsTransportConfigurationManager2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] MulticastSessionPolicy: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWdsTransportContent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWdsTransportContent, + IWdsTransportContent_Vtbl, + 0xd405d711_0296_4ab4_a860_ac7d32e65798 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWdsTransportContent, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IWdsTransportContent { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1060,16 +1034,6 @@ impl IWdsTransportContent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWdsTransportContent, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWdsTransportContent { - type Vtable = IWdsTransportContent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWdsTransportContent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd405d711_0296_4ab4_a860_ac7d32e65798); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWdsTransportContent_Vtbl { @@ -1086,11 +1050,15 @@ pub struct IWdsTransportContent_Vtbl { RetrieveSessions: usize, pub Terminate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWdsTransportContentProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWdsTransportContentProvider, + IWdsTransportContentProvider_Vtbl, + 0xb9489f24_f219_4acf_aad7_265c7c08a6ae +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWdsTransportContentProvider, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IWdsTransportContentProvider { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -1111,16 +1079,6 @@ impl IWdsTransportContentProvider { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWdsTransportContentProvider, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWdsTransportContentProvider { - type Vtable = IWdsTransportContentProvider_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWdsTransportContentProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb9489f24_f219_4acf_aad7_265c7c08a6ae); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWdsTransportContentProvider_Vtbl { @@ -1130,11 +1088,15 @@ pub struct IWdsTransportContentProvider_Vtbl { pub FilePath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbszfilepath: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub InitializationRoutine: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbszinitializationroutine: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWdsTransportDiagnosticsPolicy(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWdsTransportDiagnosticsPolicy, + IWdsTransportDiagnosticsPolicy_Vtbl, + 0x13b33efc_7856_4f61_9a59_8de67b6b87b6 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWdsTransportDiagnosticsPolicy, ::windows_core::IUnknown, super::Com::IDispatch, IWdsTransportCacheable); #[cfg(feature = "Win32_System_Com")] impl IWdsTransportDiagnosticsPolicy { pub unsafe fn Dirty(&self) -> ::windows_core::Result { @@ -1169,16 +1131,6 @@ impl IWdsTransportDiagnosticsPolicy { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWdsTransportDiagnosticsPolicy, ::windows_core::IUnknown, super::Com::IDispatch, IWdsTransportCacheable); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWdsTransportDiagnosticsPolicy { - type Vtable = IWdsTransportDiagnosticsPolicy_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWdsTransportDiagnosticsPolicy { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x13b33efc_7856_4f61_9a59_8de67b6b87b6); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWdsTransportDiagnosticsPolicy_Vtbl { @@ -1188,11 +1140,15 @@ pub struct IWdsTransportDiagnosticsPolicy_Vtbl { pub Components: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pulcomponents: *mut u32) -> ::windows_core::HRESULT, pub SetComponents: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulcomponents: u32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWdsTransportManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWdsTransportManager, + IWdsTransportManager_Vtbl, + 0x5b0d35f5_1b13_4afd_b878_6526dc340b5d +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWdsTransportManager, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IWdsTransportManager { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1206,16 +1162,6 @@ impl IWdsTransportManager { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWdsTransportManager, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWdsTransportManager { - type Vtable = IWdsTransportManager_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWdsTransportManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5b0d35f5_1b13_4afd_b878_6526dc340b5d); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWdsTransportManager_Vtbl { @@ -1225,11 +1171,15 @@ pub struct IWdsTransportManager_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetWdsTransportServer: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWdsTransportMulticastSessionPolicy(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWdsTransportMulticastSessionPolicy, + IWdsTransportMulticastSessionPolicy_Vtbl, + 0x4e5753cf_68ec_4504_a951_4a003266606b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWdsTransportMulticastSessionPolicy, ::windows_core::IUnknown, super::Com::IDispatch, IWdsTransportCacheable); #[cfg(feature = "Win32_System_Com")] impl IWdsTransportMulticastSessionPolicy { pub unsafe fn Dirty(&self) -> ::windows_core::Result { @@ -1278,16 +1228,6 @@ impl IWdsTransportMulticastSessionPolicy { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWdsTransportMulticastSessionPolicy, ::windows_core::IUnknown, super::Com::IDispatch, IWdsTransportCacheable); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWdsTransportMulticastSessionPolicy { - type Vtable = IWdsTransportMulticastSessionPolicy_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWdsTransportMulticastSessionPolicy { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4e5753cf_68ec_4504_a951_4a003266606b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWdsTransportMulticastSessionPolicy_Vtbl { @@ -1301,11 +1241,15 @@ pub struct IWdsTransportMulticastSessionPolicy_Vtbl { pub SlowClientFallback: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbclientfallback: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub SetSlowClientFallback: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bclientfallback: super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWdsTransportNamespace(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWdsTransportNamespace, + IWdsTransportNamespace_Vtbl, + 0xfa561f57_fbef_4ed3_b056_127cb1b33b84 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWdsTransportNamespace, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IWdsTransportNamespace { pub unsafe fn Type(&self) -> ::windows_core::Result { @@ -1408,16 +1352,6 @@ impl IWdsTransportNamespace { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWdsTransportNamespace, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWdsTransportNamespace { - type Vtable = IWdsTransportNamespace_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWdsTransportNamespace { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfa561f57_fbef_4ed3_b056_127cb1b33b84); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWdsTransportNamespace_Vtbl { @@ -1450,11 +1384,15 @@ pub struct IWdsTransportNamespace_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] RetrieveContents: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWdsTransportNamespaceAutoCast(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWdsTransportNamespaceAutoCast, + IWdsTransportNamespaceAutoCast_Vtbl, + 0xad931a72_c4bd_4c41_8fbc_59c9c748df9e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWdsTransportNamespaceAutoCast, ::windows_core::IUnknown, super::Com::IDispatch, IWdsTransportNamespace); #[cfg(feature = "Win32_System_Com")] impl IWdsTransportNamespaceAutoCast { pub unsafe fn Type(&self) -> ::windows_core::Result { @@ -1557,26 +1495,20 @@ impl IWdsTransportNamespaceAutoCast { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWdsTransportNamespaceAutoCast, ::windows_core::IUnknown, super::Com::IDispatch, IWdsTransportNamespace); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWdsTransportNamespaceAutoCast { - type Vtable = IWdsTransportNamespaceAutoCast_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWdsTransportNamespaceAutoCast { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xad931a72_c4bd_4c41_8fbc_59c9c748df9e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWdsTransportNamespaceAutoCast_Vtbl { pub base__: IWdsTransportNamespace_Vtbl, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWdsTransportNamespaceManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWdsTransportNamespaceManager, + IWdsTransportNamespaceManager_Vtbl, + 0x3e22d9f6_3777_4d98_83e1_f98696717ba3 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWdsTransportNamespaceManager, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IWdsTransportNamespaceManager { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1612,16 +1544,6 @@ impl IWdsTransportNamespaceManager { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWdsTransportNamespaceManager, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWdsTransportNamespaceManager { - type Vtable = IWdsTransportNamespaceManager_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWdsTransportNamespaceManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3e22d9f6_3777_4d98_83e1_f98696717ba3); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWdsTransportNamespaceManager_Vtbl { @@ -1639,11 +1561,15 @@ pub struct IWdsTransportNamespaceManager_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] RetrieveNamespaces: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWdsTransportNamespaceScheduledCast(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWdsTransportNamespaceScheduledCast, + IWdsTransportNamespaceScheduledCast_Vtbl, + 0x3840cecf_d76c_416e_a4cc_31c741d2874b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWdsTransportNamespaceScheduledCast, ::windows_core::IUnknown, super::Com::IDispatch, IWdsTransportNamespace); #[cfg(feature = "Win32_System_Com")] impl IWdsTransportNamespaceScheduledCast { pub unsafe fn Type(&self) -> ::windows_core::Result { @@ -1749,27 +1675,21 @@ impl IWdsTransportNamespaceScheduledCast { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWdsTransportNamespaceScheduledCast, ::windows_core::IUnknown, super::Com::IDispatch, IWdsTransportNamespace); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWdsTransportNamespaceScheduledCast { - type Vtable = IWdsTransportNamespaceScheduledCast_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWdsTransportNamespaceScheduledCast { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3840cecf_d76c_416e_a4cc_31c741d2874b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWdsTransportNamespaceScheduledCast_Vtbl { pub base__: IWdsTransportNamespace_Vtbl, pub StartTransmission: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWdsTransportNamespaceScheduledCastAutoStart(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWdsTransportNamespaceScheduledCastAutoStart, + IWdsTransportNamespaceScheduledCastAutoStart_Vtbl, + 0xd606af3d_ea9c_4219_961e_7491d618d9b9 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWdsTransportNamespaceScheduledCastAutoStart, ::windows_core::IUnknown, super::Com::IDispatch, IWdsTransportNamespace, IWdsTransportNamespaceScheduledCast); #[cfg(feature = "Win32_System_Com")] impl IWdsTransportNamespaceScheduledCastAutoStart { pub unsafe fn Type(&self) -> ::windows_core::Result { @@ -1889,16 +1809,6 @@ impl IWdsTransportNamespaceScheduledCastAutoStart { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWdsTransportNamespaceScheduledCastAutoStart, ::windows_core::IUnknown, super::Com::IDispatch, IWdsTransportNamespace, IWdsTransportNamespaceScheduledCast); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWdsTransportNamespaceScheduledCastAutoStart { - type Vtable = IWdsTransportNamespaceScheduledCastAutoStart_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWdsTransportNamespaceScheduledCastAutoStart { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd606af3d_ea9c_4219_961e_7491d618d9b9); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWdsTransportNamespaceScheduledCastAutoStart_Vtbl { @@ -1908,11 +1818,15 @@ pub struct IWdsTransportNamespaceScheduledCastAutoStart_Vtbl { pub StartTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstarttime: *mut f64) -> ::windows_core::HRESULT, pub SetStartTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, starttime: f64) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWdsTransportNamespaceScheduledCastManualStart(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWdsTransportNamespaceScheduledCastManualStart, + IWdsTransportNamespaceScheduledCastManualStart_Vtbl, + 0x013e6e4c_e6a7_4fb5_b7ff_d9f5da805c31 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWdsTransportNamespaceScheduledCastManualStart, ::windows_core::IUnknown, super::Com::IDispatch, IWdsTransportNamespace, IWdsTransportNamespaceScheduledCast); #[cfg(feature = "Win32_System_Com")] impl IWdsTransportNamespaceScheduledCastManualStart { pub unsafe fn Type(&self) -> ::windows_core::Result { @@ -2018,26 +1932,20 @@ impl IWdsTransportNamespaceScheduledCastManualStart { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWdsTransportNamespaceScheduledCastManualStart, ::windows_core::IUnknown, super::Com::IDispatch, IWdsTransportNamespace, IWdsTransportNamespaceScheduledCast); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWdsTransportNamespaceScheduledCastManualStart { - type Vtable = IWdsTransportNamespaceScheduledCastManualStart_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWdsTransportNamespaceScheduledCastManualStart { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x013e6e4c_e6a7_4fb5_b7ff_d9f5da805c31); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWdsTransportNamespaceScheduledCastManualStart_Vtbl { pub base__: IWdsTransportNamespaceScheduledCast_Vtbl, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWdsTransportServer(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWdsTransportServer, + IWdsTransportServer_Vtbl, + 0x09ccd093_830d_4344_a30a_73ae8e8fca90 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWdsTransportServer, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IWdsTransportServer { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -2067,16 +1975,6 @@ impl IWdsTransportServer { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWdsTransportServer, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWdsTransportServer { - type Vtable = IWdsTransportServer_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWdsTransportServer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x09ccd093_830d_4344_a30a_73ae8e8fca90); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWdsTransportServer_Vtbl { @@ -2096,11 +1994,15 @@ pub struct IWdsTransportServer_Vtbl { NamespaceManager: usize, pub DisconnectClient: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulclientid: u32, disconnectiontype: WDSTRANSPORT_DISCONNECT_TYPE) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWdsTransportServer2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWdsTransportServer2, + IWdsTransportServer2_Vtbl, + 0x256e999f_6df4_4538_81b9_857b9ab8fb47 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWdsTransportServer2, ::windows_core::IUnknown, super::Com::IDispatch, IWdsTransportServer); #[cfg(feature = "Win32_System_Com")] impl IWdsTransportServer2 { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -2136,16 +2038,6 @@ impl IWdsTransportServer2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWdsTransportServer2, ::windows_core::IUnknown, super::Com::IDispatch, IWdsTransportServer); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWdsTransportServer2 { - type Vtable = IWdsTransportServer2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWdsTransportServer2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x256e999f_6df4_4538_81b9_857b9ab8fb47); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWdsTransportServer2_Vtbl { @@ -2155,11 +2047,15 @@ pub struct IWdsTransportServer2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] TftpManager: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWdsTransportServicePolicy(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWdsTransportServicePolicy, + IWdsTransportServicePolicy_Vtbl, + 0xb9468578_9f2b_48cc_b27a_a60799c2750c +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWdsTransportServicePolicy, ::windows_core::IUnknown, super::Com::IDispatch, IWdsTransportCacheable); #[cfg(feature = "Win32_System_Com")] impl IWdsTransportServicePolicy { pub unsafe fn Dirty(&self) -> ::windows_core::Result { @@ -2225,16 +2121,6 @@ impl IWdsTransportServicePolicy { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWdsTransportServicePolicy, ::windows_core::IUnknown, super::Com::IDispatch, IWdsTransportCacheable); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWdsTransportServicePolicy { - type Vtable = IWdsTransportServicePolicy_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWdsTransportServicePolicy { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb9468578_9f2b_48cc_b27a_a60799c2750c); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWdsTransportServicePolicy_Vtbl { @@ -2252,11 +2138,15 @@ pub struct IWdsTransportServicePolicy_Vtbl { pub NetworkProfile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pprofiletype: *mut WDSTRANSPORT_NETWORK_PROFILE_TYPE) -> ::windows_core::HRESULT, pub SetNetworkProfile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, profiletype: WDSTRANSPORT_NETWORK_PROFILE_TYPE) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWdsTransportServicePolicy2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWdsTransportServicePolicy2, + IWdsTransportServicePolicy2_Vtbl, + 0x65c19e5c_aa7e_4b91_8944_91e0e5572797 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWdsTransportServicePolicy2, ::windows_core::IUnknown, super::Com::IDispatch, IWdsTransportCacheable, IWdsTransportServicePolicy); #[cfg(feature = "Win32_System_Com")] impl IWdsTransportServicePolicy2 { pub unsafe fn Dirty(&self) -> ::windows_core::Result { @@ -2346,16 +2236,6 @@ impl IWdsTransportServicePolicy2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWdsTransportServicePolicy2, ::windows_core::IUnknown, super::Com::IDispatch, IWdsTransportCacheable, IWdsTransportServicePolicy); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWdsTransportServicePolicy2 { - type Vtable = IWdsTransportServicePolicy2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWdsTransportServicePolicy2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x65c19e5c_aa7e_4b91_8944_91e0e5572797); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWdsTransportServicePolicy2_Vtbl { @@ -2367,11 +2247,15 @@ pub struct IWdsTransportServicePolicy2_Vtbl { pub EnableTftpVariableWindowExtension: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbenabletftpvariablewindowextension: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub SetEnableTftpVariableWindowExtension: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, benabletftpvariablewindowextension: super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWdsTransportSession(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWdsTransportSession, + IWdsTransportSession_Vtbl, + 0xf4efea88_65b1_4f30_a4b9_2793987796fb +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWdsTransportSession, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IWdsTransportSession { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2411,16 +2295,6 @@ impl IWdsTransportSession { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWdsTransportSession, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWdsTransportSession { - type Vtable = IWdsTransportSession_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWdsTransportSession { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf4efea88_65b1_4f30_a4b9_2793987796fb); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWdsTransportSession_Vtbl { @@ -2440,11 +2314,15 @@ pub struct IWdsTransportSession_Vtbl { RetrieveClients: usize, pub Terminate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWdsTransportSetupManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWdsTransportSetupManager, + IWdsTransportSetupManager_Vtbl, + 0xf7238425_efa8_40a4_aef9_c98d969c0b75 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWdsTransportSetupManager, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IWdsTransportSetupManager { pub unsafe fn Version(&self) -> ::windows_core::Result { @@ -2476,16 +2354,6 @@ impl IWdsTransportSetupManager { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWdsTransportSetupManager, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWdsTransportSetupManager { - type Vtable = IWdsTransportSetupManager_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWdsTransportSetupManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf7238425_efa8_40a4_aef9_c98d969c0b75); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWdsTransportSetupManager_Vtbl { @@ -2496,11 +2364,15 @@ pub struct IWdsTransportSetupManager_Vtbl { pub RegisterContentProvider: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bszname: ::std::mem::MaybeUninit<::windows_core::BSTR>, bszdescription: ::std::mem::MaybeUninit<::windows_core::BSTR>, bszfilepath: ::std::mem::MaybeUninit<::windows_core::BSTR>, bszinitializationroutine: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub DeregisterContentProvider: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bszname: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWdsTransportSetupManager2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWdsTransportSetupManager2, + IWdsTransportSetupManager2_Vtbl, + 0x02be79da_7e9e_4366_8b6e_2aa9a91be47f +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWdsTransportSetupManager2, ::windows_core::IUnknown, super::Com::IDispatch, IWdsTransportSetupManager); #[cfg(feature = "Win32_System_Com")] impl IWdsTransportSetupManager2 { pub unsafe fn Version(&self) -> ::windows_core::Result { @@ -2542,16 +2414,6 @@ impl IWdsTransportSetupManager2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWdsTransportSetupManager2, ::windows_core::IUnknown, super::Com::IDispatch, IWdsTransportSetupManager); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWdsTransportSetupManager2 { - type Vtable = IWdsTransportSetupManager2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWdsTransportSetupManager2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x02be79da_7e9e_4366_8b6e_2aa9a91be47f); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWdsTransportSetupManager2_Vtbl { @@ -2562,11 +2424,15 @@ pub struct IWdsTransportSetupManager2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] ContentProviders: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWdsTransportTftpClient(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWdsTransportTftpClient, + IWdsTransportTftpClient_Vtbl, + 0xb022d3ae_884d_4d85_b146_53320e76ef62 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWdsTransportTftpClient, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IWdsTransportTftpClient { pub unsafe fn FileName(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -2599,16 +2465,6 @@ impl IWdsTransportTftpClient { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWdsTransportTftpClient, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWdsTransportTftpClient { - type Vtable = IWdsTransportTftpClient_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWdsTransportTftpClient { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb022d3ae_884d_4d85_b146_53320e76ef62); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWdsTransportTftpClient_Vtbl { @@ -2621,11 +2477,15 @@ pub struct IWdsTransportTftpClient_Vtbl { pub BlockSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pulblocksize: *mut u32) -> ::windows_core::HRESULT, pub WindowSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pulwindowsize: *mut u32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWdsTransportTftpManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWdsTransportTftpManager, + IWdsTransportTftpManager_Vtbl, + 0x1327a7c8_ae8a_4fb3_8150_136227c37e9a +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWdsTransportTftpManager, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IWdsTransportTftpManager { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2636,16 +2496,6 @@ impl IWdsTransportTftpManager { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWdsTransportTftpManager, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWdsTransportTftpManager { - type Vtable = IWdsTransportTftpManager_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWdsTransportTftpManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1327a7c8_ae8a_4fb3_8150_136227c37e9a); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWdsTransportTftpManager_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/System/DesktopSharing/impl.rs b/crates/libs/windows/src/Windows/Win32/System/DesktopSharing/impl.rs index c89e20b05b..38c83796f8 100644 --- a/crates/libs/windows/src/Windows/Win32/System/DesktopSharing/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/DesktopSharing/impl.rs @@ -84,7 +84,7 @@ impl IRDPSRAPIApplication_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -147,7 +147,7 @@ impl IRDPSRAPIApplicationFilter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -190,7 +190,7 @@ impl IRDPSRAPIApplicationList_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -299,7 +299,7 @@ impl IRDPSRAPIAttendee_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -355,7 +355,7 @@ impl IRDPSRAPIAttendeeDisconnectInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -398,7 +398,7 @@ impl IRDPSRAPIAttendeeManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IRDPSRAPIAudioStream_Impl: Sized { @@ -452,7 +452,7 @@ impl IRDPSRAPIAudioStream_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -479,7 +479,7 @@ impl IRDPSRAPIClipboardUseEvents_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnPasteFromClipboard: OnPasteFromClipboard:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRDPSRAPIDebug_Impl: Sized { @@ -512,7 +512,7 @@ impl IRDPSRAPIDebug_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -581,7 +581,7 @@ impl IRDPSRAPIFrameBuffer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -677,7 +677,7 @@ impl IRDPSRAPIInvitation_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -746,7 +746,7 @@ impl IRDPSRAPIInvitationManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IRDPSRAPIPerfCounterLogger_Impl: Sized { @@ -763,7 +763,7 @@ impl IRDPSRAPIPerfCounterLogger_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), LogValue: LogValue:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRDPSRAPIPerfCounterLoggingManager_Impl: Sized { @@ -786,7 +786,7 @@ impl IRDPSRAPIPerfCounterLoggingManager_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CreateLogger: CreateLogger:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -823,7 +823,7 @@ impl IRDPSRAPISessionProperties_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -974,7 +974,7 @@ impl IRDPSRAPISharingSession_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1018,7 +1018,7 @@ impl IRDPSRAPISharingSession2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1100,7 +1100,7 @@ impl IRDPSRAPITcpConnectionInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IRDPSRAPITransportStream_Impl: Sized { @@ -1161,7 +1161,7 @@ impl IRDPSRAPITransportStream_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRDPSRAPITransportStreamBuffer_Impl: Sized { @@ -1280,7 +1280,7 @@ impl IRDPSRAPITransportStreamBuffer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRDPSRAPITransportStreamEvents_Impl: Sized { @@ -1314,7 +1314,7 @@ impl IRDPSRAPITransportStreamEvents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1477,7 +1477,7 @@ impl IRDPSRAPIViewer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1547,7 +1547,7 @@ impl IRDPSRAPIVirtualChannel_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1603,7 +1603,7 @@ impl IRDPSRAPIVirtualChannelManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1699,7 +1699,7 @@ impl IRDPSRAPIWindow_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1742,7 +1742,7 @@ impl IRDPSRAPIWindowList_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IRDPViewerInputSink_Impl: Sized { @@ -1811,7 +1811,7 @@ impl IRDPViewerInputSink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1825,6 +1825,6 @@ impl _IRDPSessionEvents_Vtbl { Self { base__: super::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &<_IRDPSessionEvents as ::windows_core::ComInterface>::IID || iid == &::IID + iid == &<_IRDPSessionEvents as ::windows_core::Interface>::IID || iid == &::IID } } 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 2ee76383c4..03e023be68 100644 --- a/crates/libs/windows/src/Windows/Win32/System/DesktopSharing/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/DesktopSharing/mod.rs @@ -1,8 +1,12 @@ -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRDPSRAPIApplication(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IRDPSRAPIApplication, + IRDPSRAPIApplication_Vtbl, + 0x41e7a09d_eb7a_436e_935d_780ca2628324 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IRDPSRAPIApplication, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IRDPSRAPIApplication { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -35,16 +39,6 @@ impl IRDPSRAPIApplication { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IRDPSRAPIApplication, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IRDPSRAPIApplication { - type Vtable = IRDPSRAPIApplication_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IRDPSRAPIApplication { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x41e7a09d_eb7a_436e_935d_780ca2628324); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IRDPSRAPIApplication_Vtbl { @@ -59,11 +53,15 @@ pub struct IRDPSRAPIApplication_Vtbl { pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pretval: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub Flags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwflags: *mut u32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRDPSRAPIApplicationFilter(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IRDPSRAPIApplicationFilter, + IRDPSRAPIApplicationFilter_Vtbl, + 0xd20f10ca_6637_4f06_b1d5_277ea7e5160d +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IRDPSRAPIApplicationFilter, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IRDPSRAPIApplicationFilter { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -90,16 +88,6 @@ impl IRDPSRAPIApplicationFilter { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IRDPSRAPIApplicationFilter, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IRDPSRAPIApplicationFilter { - type Vtable = IRDPSRAPIApplicationFilter_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IRDPSRAPIApplicationFilter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd20f10ca_6637_4f06_b1d5_277ea7e5160d); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IRDPSRAPIApplicationFilter_Vtbl { @@ -115,11 +103,15 @@ pub struct IRDPSRAPIApplicationFilter_Vtbl { pub Enabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pretval: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub SetEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRDPSRAPIApplicationList(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IRDPSRAPIApplicationList, + IRDPSRAPIApplicationList_Vtbl, + 0xd4b4aeb3_22dc_4837_b3b6_42ea2517849a +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IRDPSRAPIApplicationList, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IRDPSRAPIApplicationList { pub unsafe fn _NewEnum(&self) -> ::windows_core::Result<::windows_core::IUnknown> { @@ -134,16 +126,6 @@ impl IRDPSRAPIApplicationList { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IRDPSRAPIApplicationList, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IRDPSRAPIApplicationList { - type Vtable = IRDPSRAPIApplicationList_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IRDPSRAPIApplicationList { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd4b4aeb3_22dc_4837_b3b6_42ea2517849a); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IRDPSRAPIApplicationList_Vtbl { @@ -154,11 +136,15 @@ pub struct IRDPSRAPIApplicationList_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] get_Item: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRDPSRAPIAttendee(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IRDPSRAPIAttendee, + IRDPSRAPIAttendee_Vtbl, + 0xec0671b3_1b78_4b80_a464_9132247543e3 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IRDPSRAPIAttendee, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IRDPSRAPIAttendee { pub unsafe fn Id(&self) -> ::windows_core::Result { @@ -195,16 +181,6 @@ impl IRDPSRAPIAttendee { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IRDPSRAPIAttendee, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IRDPSRAPIAttendee { - type Vtable = IRDPSRAPIAttendee_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IRDPSRAPIAttendee { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xec0671b3_1b78_4b80_a464_9132247543e3); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IRDPSRAPIAttendee_Vtbl { @@ -221,11 +197,15 @@ pub struct IRDPSRAPIAttendee_Vtbl { pub Flags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plflags: *mut i32) -> ::windows_core::HRESULT, pub ConnectivityInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppval: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRDPSRAPIAttendeeDisconnectInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IRDPSRAPIAttendeeDisconnectInfo, + IRDPSRAPIAttendeeDisconnectInfo_Vtbl, + 0xc187689f_447c_44a1_9c14_fffbb3b7ec17 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IRDPSRAPIAttendeeDisconnectInfo, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IRDPSRAPIAttendeeDisconnectInfo { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -244,16 +224,6 @@ impl IRDPSRAPIAttendeeDisconnectInfo { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IRDPSRAPIAttendeeDisconnectInfo, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IRDPSRAPIAttendeeDisconnectInfo { - type Vtable = IRDPSRAPIAttendeeDisconnectInfo_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IRDPSRAPIAttendeeDisconnectInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc187689f_447c_44a1_9c14_fffbb3b7ec17); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IRDPSRAPIAttendeeDisconnectInfo_Vtbl { @@ -265,11 +235,15 @@ pub struct IRDPSRAPIAttendeeDisconnectInfo_Vtbl { pub Reason: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, preason: *mut ATTENDEE_DISCONNECT_REASON) -> ::windows_core::HRESULT, pub Code: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRDPSRAPIAttendeeManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IRDPSRAPIAttendeeManager, + IRDPSRAPIAttendeeManager_Vtbl, + 0xba3a37e8_33da_4749_8da0_07fa34da7944 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IRDPSRAPIAttendeeManager, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IRDPSRAPIAttendeeManager { pub unsafe fn _NewEnum(&self) -> ::windows_core::Result<::windows_core::IUnknown> { @@ -284,16 +258,6 @@ impl IRDPSRAPIAttendeeManager { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IRDPSRAPIAttendeeManager, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IRDPSRAPIAttendeeManager { - type Vtable = IRDPSRAPIAttendeeManager_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IRDPSRAPIAttendeeManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xba3a37e8_33da_4749_8da0_07fa34da7944); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IRDPSRAPIAttendeeManager_Vtbl { @@ -304,9 +268,8 @@ pub struct IRDPSRAPIAttendeeManager_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] get_Item: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRDPSRAPIAudioStream(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRDPSRAPIAudioStream, IRDPSRAPIAudioStream_Vtbl, 0xe3e30ef9_89c6_4541_ba3b_19336ac6d31c); +::windows_core::imp::interface_hierarchy!(IRDPSRAPIAudioStream, ::windows_core::IUnknown); impl IRDPSRAPIAudioStream { pub unsafe fn Initialize(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -325,13 +288,6 @@ impl IRDPSRAPIAudioStream { (::windows_core::Interface::vtable(self).FreeBuffer)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IRDPSRAPIAudioStream, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRDPSRAPIAudioStream { - type Vtable = IRDPSRAPIAudioStream_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRDPSRAPIAudioStream { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe3e30ef9_89c6_4541_ba3b_19336ac6d31c); -} #[repr(C)] #[doc(hidden)] pub struct IRDPSRAPIAudioStream_Vtbl { @@ -342,9 +298,8 @@ pub struct IRDPSRAPIAudioStream_Vtbl { pub GetBuffer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppbdata: *mut *mut u8, pcbdata: *mut u32, ptimestamp: *mut u64) -> ::windows_core::HRESULT, pub FreeBuffer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRDPSRAPIClipboardUseEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRDPSRAPIClipboardUseEvents, IRDPSRAPIClipboardUseEvents_Vtbl, 0xd559f59a_7a27_4138_8763_247ce5f659a8); +::windows_core::imp::interface_hierarchy!(IRDPSRAPIClipboardUseEvents, ::windows_core::IUnknown); impl IRDPSRAPIClipboardUseEvents { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -356,13 +311,6 @@ impl IRDPSRAPIClipboardUseEvents { (::windows_core::Interface::vtable(self).OnPasteFromClipboard)(::windows_core::Interface::as_raw(self), clipboardformat, pattendee.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IRDPSRAPIClipboardUseEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRDPSRAPIClipboardUseEvents { - type Vtable = IRDPSRAPIClipboardUseEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRDPSRAPIClipboardUseEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd559f59a_7a27_4138_8763_247ce5f659a8); -} #[repr(C)] #[doc(hidden)] pub struct IRDPSRAPIClipboardUseEvents_Vtbl { @@ -372,9 +320,8 @@ pub struct IRDPSRAPIClipboardUseEvents_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] OnPasteFromClipboard: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRDPSRAPIDebug(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRDPSRAPIDebug, IRDPSRAPIDebug_Vtbl, 0xaa1e42b5_496d_4ca4_a690_348dcb2ec4ad); +::windows_core::imp::interface_hierarchy!(IRDPSRAPIDebug, ::windows_core::IUnknown); impl IRDPSRAPIDebug { pub unsafe fn SetCLXCmdLine(&self, clxcmdline: P0) -> ::windows_core::Result<()> where @@ -387,13 +334,6 @@ impl IRDPSRAPIDebug { (::windows_core::Interface::vtable(self).CLXCmdLine)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IRDPSRAPIDebug, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRDPSRAPIDebug { - type Vtable = IRDPSRAPIDebug_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRDPSRAPIDebug { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaa1e42b5_496d_4ca4_a690_348dcb2ec4ad); -} #[repr(C)] #[doc(hidden)] pub struct IRDPSRAPIDebug_Vtbl { @@ -401,11 +341,15 @@ pub struct IRDPSRAPIDebug_Vtbl { pub SetCLXCmdLine: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, clxcmdline: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub CLXCmdLine: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pclxcmdline: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRDPSRAPIFrameBuffer(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IRDPSRAPIFrameBuffer, + IRDPSRAPIFrameBuffer_Vtbl, + 0x3d67e7d2_b27b_448e_81b3_c6110ed8b4be +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IRDPSRAPIFrameBuffer, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IRDPSRAPIFrameBuffer { pub unsafe fn Width(&self) -> ::windows_core::Result { @@ -428,16 +372,6 @@ impl IRDPSRAPIFrameBuffer { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IRDPSRAPIFrameBuffer, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IRDPSRAPIFrameBuffer { - type Vtable = IRDPSRAPIFrameBuffer_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IRDPSRAPIFrameBuffer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3d67e7d2_b27b_448e_81b3_c6110ed8b4be); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IRDPSRAPIFrameBuffer_Vtbl { @@ -450,11 +384,15 @@ pub struct IRDPSRAPIFrameBuffer_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetFrameBufferBits: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRDPSRAPIInvitation(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IRDPSRAPIInvitation, + IRDPSRAPIInvitation_Vtbl, + 0x4fac1d43_fc51_45bb_b1b4_2b53aa562fa3 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IRDPSRAPIInvitation, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IRDPSRAPIInvitation { pub unsafe fn ConnectionString(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -488,16 +426,6 @@ impl IRDPSRAPIInvitation { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IRDPSRAPIInvitation, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IRDPSRAPIInvitation { - type Vtable = IRDPSRAPIInvitation_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IRDPSRAPIInvitation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4fac1d43_fc51_45bb_b1b4_2b53aa562fa3); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IRDPSRAPIInvitation_Vtbl { @@ -510,11 +438,15 @@ pub struct IRDPSRAPIInvitation_Vtbl { pub Revoked: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pretval: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub SetRevoked: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRDPSRAPIInvitationManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IRDPSRAPIInvitationManager, + IRDPSRAPIInvitationManager_Vtbl, + 0x4722b049_92c3_4c2d_8a65_f7348f644dcf +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IRDPSRAPIInvitationManager, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IRDPSRAPIInvitationManager { pub unsafe fn _NewEnum(&self) -> ::windows_core::Result<::windows_core::IUnknown> { @@ -544,16 +476,6 @@ impl IRDPSRAPIInvitationManager { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IRDPSRAPIInvitationManager, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IRDPSRAPIInvitationManager { - type Vtable = IRDPSRAPIInvitationManager_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IRDPSRAPIInvitationManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4722b049_92c3_4c2d_8a65_f7348f644dcf); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IRDPSRAPIInvitationManager_Vtbl { @@ -569,30 +491,21 @@ pub struct IRDPSRAPIInvitationManager_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] CreateInvitation: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRDPSRAPIPerfCounterLogger(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRDPSRAPIPerfCounterLogger, IRDPSRAPIPerfCounterLogger_Vtbl, 0x071c2533_0fa4_4e8f_ae83_9c10b4305ab5); +::windows_core::imp::interface_hierarchy!(IRDPSRAPIPerfCounterLogger, ::windows_core::IUnknown); impl IRDPSRAPIPerfCounterLogger { pub unsafe fn LogValue(&self, lvalue: i64) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).LogValue)(::windows_core::Interface::as_raw(self), lvalue).ok() } } -::windows_core::imp::interface_hierarchy!(IRDPSRAPIPerfCounterLogger, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRDPSRAPIPerfCounterLogger { - type Vtable = IRDPSRAPIPerfCounterLogger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRDPSRAPIPerfCounterLogger { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x071c2533_0fa4_4e8f_ae83_9c10b4305ab5); -} #[repr(C)] #[doc(hidden)] pub struct IRDPSRAPIPerfCounterLogger_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub LogValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lvalue: i64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRDPSRAPIPerfCounterLoggingManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRDPSRAPIPerfCounterLoggingManager, IRDPSRAPIPerfCounterLoggingManager_Vtbl, 0x9a512c86_ac6e_4a8e_b1a4_fcef363f6e64); +::windows_core::imp::interface_hierarchy!(IRDPSRAPIPerfCounterLoggingManager, ::windows_core::IUnknown); impl IRDPSRAPIPerfCounterLoggingManager { pub unsafe fn CreateLogger(&self, bstrcountername: P0) -> ::windows_core::Result where @@ -602,24 +515,21 @@ impl IRDPSRAPIPerfCounterLoggingManager { (::windows_core::Interface::vtable(self).CreateLogger)(::windows_core::Interface::as_raw(self), bstrcountername.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IRDPSRAPIPerfCounterLoggingManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRDPSRAPIPerfCounterLoggingManager { - type Vtable = IRDPSRAPIPerfCounterLoggingManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRDPSRAPIPerfCounterLoggingManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9a512c86_ac6e_4a8e_b1a4_fcef363f6e64); -} #[repr(C)] #[doc(hidden)] pub struct IRDPSRAPIPerfCounterLoggingManager_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub CreateLogger: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrcountername: ::std::mem::MaybeUninit<::windows_core::BSTR>, pplogger: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRDPSRAPISessionProperties(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IRDPSRAPISessionProperties, + IRDPSRAPISessionProperties_Vtbl, + 0x339b24f2_9bc0_4f16_9aac_f165433d13d4 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IRDPSRAPISessionProperties, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IRDPSRAPISessionProperties { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -641,16 +551,6 @@ impl IRDPSRAPISessionProperties { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IRDPSRAPISessionProperties, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IRDPSRAPISessionProperties { - type Vtable = IRDPSRAPISessionProperties_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IRDPSRAPISessionProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x339b24f2_9bc0_4f16_9aac_f165433d13d4); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IRDPSRAPISessionProperties_Vtbl { @@ -664,11 +564,15 @@ pub struct IRDPSRAPISessionProperties_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] put_Property: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRDPSRAPISharingSession(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IRDPSRAPISharingSession, + IRDPSRAPISharingSession_Vtbl, + 0xeeb20886_e470_4cf6_842b_2739c0ec5cfb +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IRDPSRAPISharingSession, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IRDPSRAPISharingSession { pub unsafe fn Open(&self) -> ::windows_core::Result<()> { @@ -734,16 +638,6 @@ impl IRDPSRAPISharingSession { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IRDPSRAPISharingSession, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IRDPSRAPISharingSession { - type Vtable = IRDPSRAPISharingSession_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IRDPSRAPISharingSession { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeeb20886_e470_4cf6_842b_2739c0ec5cfb); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IRDPSRAPISharingSession_Vtbl { @@ -778,11 +672,15 @@ pub struct IRDPSRAPISharingSession_Vtbl { pub SetDesktopSharedRect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, left: i32, top: i32, right: i32, bottom: i32) -> ::windows_core::HRESULT, pub GetDesktopSharedRect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pleft: *mut i32, ptop: *mut i32, pright: *mut i32, pbottom: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRDPSRAPISharingSession2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IRDPSRAPISharingSession2, + IRDPSRAPISharingSession2_Vtbl, + 0xfee4ee57_e3e8_4205_8fb0_8fd1d0675c21 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IRDPSRAPISharingSession2, ::windows_core::IUnknown, super::Com::IDispatch, IRDPSRAPISharingSession); #[cfg(feature = "Win32_System_Com")] impl IRDPSRAPISharingSession2 { pub unsafe fn Open(&self) -> ::windows_core::Result<()> { @@ -870,16 +768,6 @@ impl IRDPSRAPISharingSession2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IRDPSRAPISharingSession2, ::windows_core::IUnknown, super::Com::IDispatch, IRDPSRAPISharingSession); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IRDPSRAPISharingSession2 { - type Vtable = IRDPSRAPISharingSession2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IRDPSRAPISharingSession2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfee4ee57_e3e8_4205_8fb0_8fd1d0675c21); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IRDPSRAPISharingSession2_Vtbl { @@ -894,11 +782,15 @@ pub struct IRDPSRAPISharingSession2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] SendControlLevelChangeResponse: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRDPSRAPITcpConnectionInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IRDPSRAPITcpConnectionInfo, + IRDPSRAPITcpConnectionInfo_Vtbl, + 0xf74049a4_3d06_4028_8193_0a8c29bc2452 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IRDPSRAPITcpConnectionInfo, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IRDPSRAPITcpConnectionInfo { pub unsafe fn Protocol(&self) -> ::windows_core::Result { @@ -923,16 +815,6 @@ impl IRDPSRAPITcpConnectionInfo { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IRDPSRAPITcpConnectionInfo, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IRDPSRAPITcpConnectionInfo { - type Vtable = IRDPSRAPITcpConnectionInfo_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IRDPSRAPITcpConnectionInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf74049a4_3d06_4028_8193_0a8c29bc2452); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IRDPSRAPITcpConnectionInfo_Vtbl { @@ -943,9 +825,8 @@ pub struct IRDPSRAPITcpConnectionInfo_Vtbl { pub PeerPort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plport: *mut i32) -> ::windows_core::HRESULT, pub PeerIP: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrip: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRDPSRAPITransportStream(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRDPSRAPITransportStream, IRDPSRAPITransportStream_Vtbl, 0x36cfa065_43bb_4ef7_aed7_9b88a5053036); +::windows_core::imp::interface_hierarchy!(IRDPSRAPITransportStream, ::windows_core::IUnknown); impl IRDPSRAPITransportStream { pub unsafe fn AllocBuffer(&self, maxpayload: i32) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -979,13 +860,6 @@ impl IRDPSRAPITransportStream { (::windows_core::Interface::vtable(self).Close)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IRDPSRAPITransportStream, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRDPSRAPITransportStream { - type Vtable = IRDPSRAPITransportStream_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRDPSRAPITransportStream { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x36cfa065_43bb_4ef7_aed7_9b88a5053036); -} #[repr(C)] #[doc(hidden)] pub struct IRDPSRAPITransportStream_Vtbl { @@ -997,9 +871,8 @@ pub struct IRDPSRAPITransportStream_Vtbl { pub Open: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcallbacks: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Close: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRDPSRAPITransportStreamBuffer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRDPSRAPITransportStreamBuffer, IRDPSRAPITransportStreamBuffer_Vtbl, 0x81c80290_5085_44b0_b460_f865c39cb4a9); +::windows_core::imp::interface_hierarchy!(IRDPSRAPITransportStreamBuffer, ::windows_core::IUnknown); impl IRDPSRAPITransportStreamBuffer { pub unsafe fn Storage(&self) -> ::windows_core::Result<*mut u8> { let mut result__ = ::std::mem::zeroed(); @@ -1041,13 +914,6 @@ impl IRDPSRAPITransportStreamBuffer { (::windows_core::Interface::vtable(self).SetContext)(::windows_core::Interface::as_raw(self), pcontext.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IRDPSRAPITransportStreamBuffer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRDPSRAPITransportStreamBuffer { - type Vtable = IRDPSRAPITransportStreamBuffer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRDPSRAPITransportStreamBuffer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x81c80290_5085_44b0_b460_f865c39cb4a9); -} #[repr(C)] #[doc(hidden)] pub struct IRDPSRAPITransportStreamBuffer_Vtbl { @@ -1063,9 +929,8 @@ pub struct IRDPSRAPITransportStreamBuffer_Vtbl { pub Context: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppcontext: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcontext: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRDPSRAPITransportStreamEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRDPSRAPITransportStreamEvents, IRDPSRAPITransportStreamEvents_Vtbl, 0xea81c254_f5af_4e40_982e_3e63bb595276); +::windows_core::imp::interface_hierarchy!(IRDPSRAPITransportStreamEvents, ::windows_core::IUnknown); impl IRDPSRAPITransportStreamEvents { pub unsafe fn OnWriteCompleted(&self, pbuffer: P0) where @@ -1083,13 +948,6 @@ impl IRDPSRAPITransportStreamEvents { (::windows_core::Interface::vtable(self).OnStreamClosed)(::windows_core::Interface::as_raw(self), hrreason) } } -::windows_core::imp::interface_hierarchy!(IRDPSRAPITransportStreamEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRDPSRAPITransportStreamEvents { - type Vtable = IRDPSRAPITransportStreamEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRDPSRAPITransportStreamEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xea81c254_f5af_4e40_982e_3e63bb595276); -} #[repr(C)] #[doc(hidden)] pub struct IRDPSRAPITransportStreamEvents_Vtbl { @@ -1098,11 +956,15 @@ pub struct IRDPSRAPITransportStreamEvents_Vtbl { pub OnReadCompleted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbuffer: *mut ::core::ffi::c_void), pub OnStreamClosed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hrreason: ::windows_core::HRESULT), } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRDPSRAPIViewer(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IRDPSRAPIViewer, + IRDPSRAPIViewer_Vtbl, + 0xc6bfcd38_8ce9_404d_8ae8_f31d00c65cb5 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IRDPSRAPIViewer, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IRDPSRAPIViewer { pub unsafe fn Connect(&self, bstrconnectionstring: P0, bstrname: P1, bstrpassword: P2) -> ::windows_core::Result<()> @@ -1183,16 +1045,6 @@ impl IRDPSRAPIViewer { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IRDPSRAPIViewer, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IRDPSRAPIViewer { - type Vtable = IRDPSRAPIViewer_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IRDPSRAPIViewer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc6bfcd38_8ce9_404d_8ae8_f31d00c65cb5); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IRDPSRAPIViewer_Vtbl { @@ -1227,11 +1079,15 @@ pub struct IRDPSRAPIViewer_Vtbl { Properties: usize, pub StartReverseConnectListener: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrconnectionstring: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstrusername: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstrpassword: ::std::mem::MaybeUninit<::windows_core::BSTR>, pbstrreverseconnectstring: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRDPSRAPIVirtualChannel(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IRDPSRAPIVirtualChannel, + IRDPSRAPIVirtualChannel_Vtbl, + 0x05e12f95_28b3_4c9a_8780_d0248574a1e0 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IRDPSRAPIVirtualChannel, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IRDPSRAPIVirtualChannel { pub unsafe fn SendData(&self, bstrdata: P0, lattendeeid: i32, channelsendflags: u32) -> ::windows_core::Result<()> @@ -1257,16 +1113,6 @@ impl IRDPSRAPIVirtualChannel { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IRDPSRAPIVirtualChannel, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IRDPSRAPIVirtualChannel { - type Vtable = IRDPSRAPIVirtualChannel_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IRDPSRAPIVirtualChannel { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x05e12f95_28b3_4c9a_8780_d0248574a1e0); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IRDPSRAPIVirtualChannel_Vtbl { @@ -1277,11 +1123,15 @@ pub struct IRDPSRAPIVirtualChannel_Vtbl { pub Flags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plflags: *mut i32) -> ::windows_core::HRESULT, pub Priority: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppriority: *mut CHANNEL_PRIORITY) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRDPSRAPIVirtualChannelManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IRDPSRAPIVirtualChannelManager, + IRDPSRAPIVirtualChannelManager_Vtbl, + 0x0d11c661_5d0d_4ee4_89df_2166ae1fdfed +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IRDPSRAPIVirtualChannelManager, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IRDPSRAPIVirtualChannelManager { pub unsafe fn _NewEnum(&self) -> ::windows_core::Result<::windows_core::IUnknown> { @@ -1305,16 +1155,6 @@ impl IRDPSRAPIVirtualChannelManager { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IRDPSRAPIVirtualChannelManager, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IRDPSRAPIVirtualChannelManager { - type Vtable = IRDPSRAPIVirtualChannelManager_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IRDPSRAPIVirtualChannelManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0d11c661_5d0d_4ee4_89df_2166ae1fdfed); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IRDPSRAPIVirtualChannelManager_Vtbl { @@ -1329,11 +1169,15 @@ pub struct IRDPSRAPIVirtualChannelManager_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] CreateVirtualChannel: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRDPSRAPIWindow(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IRDPSRAPIWindow, + IRDPSRAPIWindow_Vtbl, + 0xbeafe0f9_c77b_4933_ba9f_a24cddcc27cf +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IRDPSRAPIWindow, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IRDPSRAPIWindow { pub unsafe fn Id(&self) -> ::windows_core::Result { @@ -1369,16 +1213,6 @@ impl IRDPSRAPIWindow { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IRDPSRAPIWindow, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IRDPSRAPIWindow { - type Vtable = IRDPSRAPIWindow_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IRDPSRAPIWindow { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbeafe0f9_c77b_4933_ba9f_a24cddcc27cf); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IRDPSRAPIWindow_Vtbl { @@ -1394,11 +1228,15 @@ pub struct IRDPSRAPIWindow_Vtbl { pub Show: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Flags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwflags: *mut u32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRDPSRAPIWindowList(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IRDPSRAPIWindowList, + IRDPSRAPIWindowList_Vtbl, + 0x8a05ce44_715a_4116_a189_a118f30a07bd +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IRDPSRAPIWindowList, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IRDPSRAPIWindowList { pub unsafe fn _NewEnum(&self) -> ::windows_core::Result<::windows_core::IUnknown> { @@ -1413,16 +1251,6 @@ impl IRDPSRAPIWindowList { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IRDPSRAPIWindowList, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IRDPSRAPIWindowList { - type Vtable = IRDPSRAPIWindowList_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IRDPSRAPIWindowList { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8a05ce44_715a_4116_a189_a118f30a07bd); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IRDPSRAPIWindowList_Vtbl { @@ -1433,9 +1261,8 @@ pub struct IRDPSRAPIWindowList_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] get_Item: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRDPViewerInputSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRDPViewerInputSink, IRDPViewerInputSink_Vtbl, 0xbb590853_a6c5_4a7b_8dd4_76b69eea12d5); +::windows_core::imp::interface_hierarchy!(IRDPViewerInputSink, ::windows_core::IUnknown); impl IRDPViewerInputSink { pub unsafe fn SendMouseButtonEvent(&self, buttontype: RDPSRAPI_MOUSE_BUTTON_TYPE, vbbuttondown: P0, xpos: u32, ypos: u32) -> ::windows_core::Result<()> where @@ -1470,13 +1297,6 @@ impl IRDPViewerInputSink { (::windows_core::Interface::vtable(self).EndTouchFrame)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IRDPViewerInputSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRDPViewerInputSink { - type Vtable = IRDPViewerInputSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRDPViewerInputSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbb590853_a6c5_4a7b_8dd4_76b69eea12d5); -} #[repr(C)] #[doc(hidden)] pub struct IRDPViewerInputSink_Vtbl { @@ -1490,23 +1310,17 @@ pub struct IRDPViewerInputSink_Vtbl { pub AddTouchInput: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, contactid: u32, event: u32, x: i32, y: i32) -> ::windows_core::HRESULT, pub EndTouchFrame: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] -#[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct _IRDPSessionEvents(::windows_core::IUnknown); #[cfg(feature = "Win32_System_Com")] -impl _IRDPSessionEvents {} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + _IRDPSessionEvents, + _IRDPSessionEvents_Vtbl, + 0x98a97042_6698_40e9_8efd_b3200990004b +); #[cfg(feature = "Win32_System_Com")] ::windows_core::imp::interface_hierarchy!(_IRDPSessionEvents, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for _IRDPSessionEvents { - type Vtable = _IRDPSessionEvents_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for _IRDPSessionEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x98a97042_6698_40e9_8efd_b3200990004b); -} +impl _IRDPSessionEvents {} #[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] diff --git a/crates/libs/windows/src/Windows/Win32/System/Diagnostics/ClrProfiling/impl.rs b/crates/libs/windows/src/Windows/Win32/System/Diagnostics/ClrProfiling/impl.rs index 919d26efa7..bf2676adfd 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Diagnostics/ClrProfiling/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Diagnostics/ClrProfiling/impl.rs @@ -16,7 +16,7 @@ impl ICorProfilerAssemblyReferenceProvider_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), AddAssemblyReference: AddAssemblyReference:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICorProfilerCallback_Impl: Sized { @@ -524,7 +524,7 @@ impl ICorProfilerCallback_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICorProfilerCallback10_Impl: Sized + ICorProfilerCallback9_Impl { @@ -565,7 +565,7 @@ impl ICorProfilerCallback10_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ICorProfilerCallback11_Impl: Sized + ICorProfilerCallback10_Impl { @@ -582,7 +582,7 @@ impl ICorProfilerCallback11_Vtbl { Self { base__: ICorProfilerCallback10_Vtbl::new::(), LoadAsNotificationOnly: LoadAsNotificationOnly:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ICorProfilerCallback2_Impl: Sized + ICorProfilerCallback_Impl { @@ -651,7 +651,7 @@ impl ICorProfilerCallback2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ICorProfilerCallback3_Impl: Sized + ICorProfilerCallback2_Impl { @@ -685,7 +685,7 @@ impl ICorProfilerCallback3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ICorProfilerCallback4_Impl: Sized + ICorProfilerCallback3_Impl { @@ -740,7 +740,7 @@ impl ICorProfilerCallback4_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ICorProfilerCallback5_Impl: Sized + ICorProfilerCallback4_Impl { @@ -760,7 +760,7 @@ impl ICorProfilerCallback5_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ICorProfilerCallback6_Impl: Sized + ICorProfilerCallback5_Impl { @@ -777,7 +777,7 @@ impl ICorProfilerCallback6_Vtbl { Self { base__: ICorProfilerCallback5_Vtbl::new::(), GetAssemblyReferences: GetAssemblyReferences:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ICorProfilerCallback7_Impl: Sized + ICorProfilerCallback6_Impl { @@ -797,7 +797,7 @@ impl ICorProfilerCallback7_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ICorProfilerCallback8_Impl: Sized + ICorProfilerCallback7_Impl { @@ -824,7 +824,7 @@ impl ICorProfilerCallback8_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ICorProfilerCallback9_Impl: Sized + ICorProfilerCallback8_Impl { @@ -841,7 +841,7 @@ impl ICorProfilerCallback9_Vtbl { Self { base__: ICorProfilerCallback8_Vtbl::new::(), DynamicMethodUnloaded: DynamicMethodUnloaded:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ICorProfilerFunctionControl_Impl: Sized { @@ -875,7 +875,7 @@ impl ICorProfilerFunctionControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICorProfilerFunctionEnum_Impl: Sized { @@ -935,7 +935,7 @@ impl ICorProfilerFunctionEnum_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_WinRT_Metadata\"`"] @@ -1273,7 +1273,7 @@ impl ICorProfilerInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_WinRT_Metadata\"`"] @@ -1332,7 +1332,7 @@ impl ICorProfilerInfo10_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_WinRT_Metadata\"`"] @@ -1363,7 +1363,7 @@ impl ICorProfilerInfo11_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_WinRT_Metadata\"`"] @@ -1447,18 +1447,7 @@ impl ICorProfilerInfo12_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_WinRT_Metadata\"`"] @@ -1502,19 +1491,19 @@ impl ICorProfilerInfo13_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID + iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID } } #[doc = "Required features: `\"Win32_System_WinRT_Metadata\"`"] @@ -1564,20 +1553,20 @@ impl ICorProfilerInfo14_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID + iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID } } #[doc = "Required features: `\"Win32_System_WinRT_Metadata\"`"] @@ -1789,7 +1778,7 @@ impl ICorProfilerInfo2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_WinRT_Metadata\"`"] @@ -1922,7 +1911,7 @@ impl ICorProfilerInfo3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_WinRT_Metadata\"`"] @@ -2027,7 +2016,7 @@ impl ICorProfilerInfo4_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_WinRT_Metadata\"`"] @@ -2058,7 +2047,7 @@ impl ICorProfilerInfo5_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_WinRT_Metadata\"`"] @@ -2082,7 +2071,7 @@ impl ICorProfilerInfo6_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_WinRT_Metadata\"`"] @@ -2126,7 +2115,7 @@ impl ICorProfilerInfo7_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_WinRT_Metadata\"`"] @@ -2170,7 +2159,7 @@ impl ICorProfilerInfo8_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_WinRT_Metadata\"`"] @@ -2208,7 +2197,7 @@ impl ICorProfilerInfo9_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ICorProfilerMethodEnum_Impl: Sized { @@ -2268,7 +2257,7 @@ impl ICorProfilerMethodEnum_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICorProfilerModuleEnum_Impl: Sized { @@ -2328,7 +2317,7 @@ impl ICorProfilerModuleEnum_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICorProfilerObjectEnum_Impl: Sized { @@ -2388,7 +2377,7 @@ impl ICorProfilerObjectEnum_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICorProfilerThreadEnum_Impl: Sized { @@ -2448,7 +2437,7 @@ impl ICorProfilerThreadEnum_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMethodMalloc_Impl: Sized { @@ -2465,6 +2454,6 @@ impl IMethodMalloc_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Alloc: Alloc:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 e41aeec7a3..9e0e791cc5 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 @@ -1,6 +1,5 @@ -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICorProfilerAssemblyReferenceProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICorProfilerAssemblyReferenceProvider, ICorProfilerAssemblyReferenceProvider_Vtbl, 0x66a78c24_2eef_4f65_b45f_dd1d8038bf3c); +::windows_core::imp::interface_hierarchy!(ICorProfilerAssemblyReferenceProvider, ::windows_core::IUnknown); impl ICorProfilerAssemblyReferenceProvider { #[doc = "Required features: `\"Win32_System_WinRT_Metadata\"`"] #[cfg(feature = "Win32_System_WinRT_Metadata")] @@ -8,13 +7,6 @@ impl ICorProfilerAssemblyReferenceProvider { (::windows_core::Interface::vtable(self).AddAssemblyReference)(::windows_core::Interface::as_raw(self), passemblyrefinfo).ok() } } -::windows_core::imp::interface_hierarchy!(ICorProfilerAssemblyReferenceProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICorProfilerAssemblyReferenceProvider { - type Vtable = ICorProfilerAssemblyReferenceProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICorProfilerAssemblyReferenceProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x66a78c24_2eef_4f65_b45f_dd1d8038bf3c); -} #[repr(C)] #[doc(hidden)] pub struct ICorProfilerAssemblyReferenceProvider_Vtbl { @@ -24,9 +16,8 @@ pub struct ICorProfilerAssemblyReferenceProvider_Vtbl { #[cfg(not(feature = "Win32_System_WinRT_Metadata"))] AddAssemblyReference: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICorProfilerCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICorProfilerCallback, ICorProfilerCallback_Vtbl, 0x176fbed1_a55c_4796_98ca_a9da0ef883e7); +::windows_core::imp::interface_hierarchy!(ICorProfilerCallback, ::windows_core::IUnknown); impl ICorProfilerCallback { pub unsafe fn Initialize(&self, picorprofilerinfounk: P0) -> ::windows_core::Result<()> where @@ -259,13 +250,6 @@ impl ICorProfilerCallback { (::windows_core::Interface::vtable(self).ExceptionCLRCatcherExecute)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ICorProfilerCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICorProfilerCallback { - type Vtable = ICorProfilerCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICorProfilerCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x176fbed1_a55c_4796_98ca_a9da0ef883e7); -} #[repr(C)] #[doc(hidden)] pub struct ICorProfilerCallback_Vtbl { @@ -340,9 +324,8 @@ pub struct ICorProfilerCallback_Vtbl { pub ExceptionCLRCatcherFound: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ExceptionCLRCatcherExecute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICorProfilerCallback10(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICorProfilerCallback10, ICorProfilerCallback10_Vtbl, 0xcec5b60e_c69c_495f_87f6_84d28ee16ffb); +::windows_core::imp::interface_hierarchy!(ICorProfilerCallback10, ::windows_core::IUnknown, ICorProfilerCallback, ICorProfilerCallback2, ICorProfilerCallback3, ICorProfilerCallback4, ICorProfilerCallback5, ICorProfilerCallback6, ICorProfilerCallback7, ICorProfilerCallback8, ICorProfilerCallback9); impl ICorProfilerCallback10 { pub unsafe fn Initialize(&self, picorprofilerinfounk: P0) -> ::windows_core::Result<()> where @@ -672,13 +655,6 @@ impl ICorProfilerCallback10 { (::windows_core::Interface::vtable(self).EventPipeProviderCreated)(::windows_core::Interface::as_raw(self), provider).ok() } } -::windows_core::imp::interface_hierarchy!(ICorProfilerCallback10, ::windows_core::IUnknown, ICorProfilerCallback, ICorProfilerCallback2, ICorProfilerCallback3, ICorProfilerCallback4, ICorProfilerCallback5, ICorProfilerCallback6, ICorProfilerCallback7, ICorProfilerCallback8, ICorProfilerCallback9); -unsafe impl ::windows_core::Interface for ICorProfilerCallback10 { - type Vtable = ICorProfilerCallback10_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICorProfilerCallback10 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcec5b60e_c69c_495f_87f6_84d28ee16ffb); -} #[repr(C)] #[doc(hidden)] pub struct ICorProfilerCallback10_Vtbl { @@ -686,9 +662,8 @@ pub struct ICorProfilerCallback10_Vtbl { pub EventPipeEventDelivered: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, provider: usize, eventid: u32, eventversion: u32, cbmetadatablob: u32, metadatablob: *const u8, cbeventdata: u32, eventdata: *const u8, pactivityid: *const ::windows_core::GUID, prelatedactivityid: *const ::windows_core::GUID, eventthread: usize, numstackframes: u32, stackframes: *const usize) -> ::windows_core::HRESULT, pub EventPipeProviderCreated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, provider: usize) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICorProfilerCallback11(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICorProfilerCallback11, ICorProfilerCallback11_Vtbl, 0x42350846_aaed_47f7_b128_fd0c98881cde); +::windows_core::imp::interface_hierarchy!(ICorProfilerCallback11, ::windows_core::IUnknown, ICorProfilerCallback, ICorProfilerCallback2, ICorProfilerCallback3, ICorProfilerCallback4, ICorProfilerCallback5, ICorProfilerCallback6, ICorProfilerCallback7, ICorProfilerCallback8, ICorProfilerCallback9, ICorProfilerCallback10); impl ICorProfilerCallback11 { pub unsafe fn Initialize(&self, picorprofilerinfounk: P0) -> ::windows_core::Result<()> where @@ -1021,22 +996,14 @@ impl ICorProfilerCallback11 { (::windows_core::Interface::vtable(self).LoadAsNotificationOnly)(::windows_core::Interface::as_raw(self), pbnotificationonly).ok() } } -::windows_core::imp::interface_hierarchy!(ICorProfilerCallback11, ::windows_core::IUnknown, ICorProfilerCallback, ICorProfilerCallback2, ICorProfilerCallback3, ICorProfilerCallback4, ICorProfilerCallback5, ICorProfilerCallback6, ICorProfilerCallback7, ICorProfilerCallback8, ICorProfilerCallback9, ICorProfilerCallback10); -unsafe impl ::windows_core::Interface for ICorProfilerCallback11 { - type Vtable = ICorProfilerCallback11_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICorProfilerCallback11 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x42350846_aaed_47f7_b128_fd0c98881cde); -} #[repr(C)] #[doc(hidden)] pub struct ICorProfilerCallback11_Vtbl { pub base__: ICorProfilerCallback10_Vtbl, pub LoadAsNotificationOnly: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbnotificationonly: *mut super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICorProfilerCallback2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICorProfilerCallback2, ICorProfilerCallback2_Vtbl, 0x8a8cc829_ccf2_49fe_bbae_0f022228071a); +::windows_core::imp::interface_hierarchy!(ICorProfilerCallback2, ::windows_core::IUnknown, ICorProfilerCallback); impl ICorProfilerCallback2 { pub unsafe fn Initialize(&self, picorprofilerinfounk: P0) -> ::windows_core::Result<()> where @@ -1293,13 +1260,6 @@ impl ICorProfilerCallback2 { (::windows_core::Interface::vtable(self).HandleDestroyed)(::windows_core::Interface::as_raw(self), handleid).ok() } } -::windows_core::imp::interface_hierarchy!(ICorProfilerCallback2, ::windows_core::IUnknown, ICorProfilerCallback); -unsafe impl ::windows_core::Interface for ICorProfilerCallback2 { - type Vtable = ICorProfilerCallback2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICorProfilerCallback2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8a8cc829_ccf2_49fe_bbae_0f022228071a); -} #[repr(C)] #[doc(hidden)] pub struct ICorProfilerCallback2_Vtbl { @@ -1313,9 +1273,8 @@ pub struct ICorProfilerCallback2_Vtbl { pub HandleCreated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handleid: usize, initialobjectid: usize) -> ::windows_core::HRESULT, pub HandleDestroyed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handleid: usize) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICorProfilerCallback3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICorProfilerCallback3, ICorProfilerCallback3_Vtbl, 0x4fd2ed52_7731_4b8d_9469_03d2cc3086c5); +::windows_core::imp::interface_hierarchy!(ICorProfilerCallback3, ::windows_core::IUnknown, ICorProfilerCallback, ICorProfilerCallback2); impl ICorProfilerCallback3 { pub unsafe fn Initialize(&self, picorprofilerinfounk: P0) -> ::windows_core::Result<()> where @@ -1584,13 +1543,6 @@ impl ICorProfilerCallback3 { (::windows_core::Interface::vtable(self).ProfilerDetachSucceeded)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ICorProfilerCallback3, ::windows_core::IUnknown, ICorProfilerCallback, ICorProfilerCallback2); -unsafe impl ::windows_core::Interface for ICorProfilerCallback3 { - type Vtable = ICorProfilerCallback3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICorProfilerCallback3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4fd2ed52_7731_4b8d_9469_03d2cc3086c5); -} #[repr(C)] #[doc(hidden)] pub struct ICorProfilerCallback3_Vtbl { @@ -1599,9 +1551,8 @@ pub struct ICorProfilerCallback3_Vtbl { pub ProfilerAttachComplete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ProfilerDetachSucceeded: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICorProfilerCallback4(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICorProfilerCallback4, ICorProfilerCallback4_Vtbl, 0x7b63b2e3_107d_4d48_b2f6_f61e229470d2); +::windows_core::imp::interface_hierarchy!(ICorProfilerCallback4, ::windows_core::IUnknown, ICorProfilerCallback, ICorProfilerCallback2, ICorProfilerCallback3); impl ICorProfilerCallback4 { pub unsafe fn Initialize(&self, picorprofilerinfounk: P0) -> ::windows_core::Result<()> where @@ -1897,13 +1848,6 @@ impl ICorProfilerCallback4 { (::windows_core::Interface::vtable(self).SurvivingReferences2)(::windows_core::Interface::as_raw(self), csurvivingobjectidranges, objectidrangestart, cobjectidrangelength).ok() } } -::windows_core::imp::interface_hierarchy!(ICorProfilerCallback4, ::windows_core::IUnknown, ICorProfilerCallback, ICorProfilerCallback2, ICorProfilerCallback3); -unsafe impl ::windows_core::Interface for ICorProfilerCallback4 { - type Vtable = ICorProfilerCallback4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICorProfilerCallback4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7b63b2e3_107d_4d48_b2f6_f61e229470d2); -} #[repr(C)] #[doc(hidden)] pub struct ICorProfilerCallback4_Vtbl { @@ -1915,9 +1859,8 @@ pub struct ICorProfilerCallback4_Vtbl { pub MovedReferences2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cmovedobjectidranges: u32, oldobjectidrangestart: *const usize, newobjectidrangestart: *const usize, cobjectidrangelength: *const usize) -> ::windows_core::HRESULT, pub SurvivingReferences2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, csurvivingobjectidranges: u32, objectidrangestart: *const usize, cobjectidrangelength: *const usize) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICorProfilerCallback5(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICorProfilerCallback5, ICorProfilerCallback5_Vtbl, 0x8dfba405_8c9f_45f8_bffa_83b14cef78b5); +::windows_core::imp::interface_hierarchy!(ICorProfilerCallback5, ::windows_core::IUnknown, ICorProfilerCallback, ICorProfilerCallback2, ICorProfilerCallback3, ICorProfilerCallback4); impl ICorProfilerCallback5 { pub unsafe fn Initialize(&self, picorprofilerinfounk: P0) -> ::windows_core::Result<()> where @@ -2216,22 +2159,14 @@ impl ICorProfilerCallback5 { (::windows_core::Interface::vtable(self).ConditionalWeakTableElementReferences)(::windows_core::Interface::as_raw(self), crootrefs, keyrefids, valuerefids, rootids).ok() } } -::windows_core::imp::interface_hierarchy!(ICorProfilerCallback5, ::windows_core::IUnknown, ICorProfilerCallback, ICorProfilerCallback2, ICorProfilerCallback3, ICorProfilerCallback4); -unsafe impl ::windows_core::Interface for ICorProfilerCallback5 { - type Vtable = ICorProfilerCallback5_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICorProfilerCallback5 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8dfba405_8c9f_45f8_bffa_83b14cef78b5); -} #[repr(C)] #[doc(hidden)] pub struct ICorProfilerCallback5_Vtbl { pub base__: ICorProfilerCallback4_Vtbl, pub ConditionalWeakTableElementReferences: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, crootrefs: u32, keyrefids: *const usize, valuerefids: *const usize, rootids: *const usize) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICorProfilerCallback6(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICorProfilerCallback6, ICorProfilerCallback6_Vtbl, 0xfc13df4b_4448_4f4f_950c_ba8d19d00c36); +::windows_core::imp::interface_hierarchy!(ICorProfilerCallback6, ::windows_core::IUnknown, ICorProfilerCallback, ICorProfilerCallback2, ICorProfilerCallback3, ICorProfilerCallback4, ICorProfilerCallback5); impl ICorProfilerCallback6 { pub unsafe fn Initialize(&self, picorprofilerinfounk: P0) -> ::windows_core::Result<()> where @@ -2537,22 +2472,14 @@ impl ICorProfilerCallback6 { (::windows_core::Interface::vtable(self).GetAssemblyReferences)(::windows_core::Interface::as_raw(self), wszassemblypath.into_param().abi(), pasmrefprovider.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ICorProfilerCallback6, ::windows_core::IUnknown, ICorProfilerCallback, ICorProfilerCallback2, ICorProfilerCallback3, ICorProfilerCallback4, ICorProfilerCallback5); -unsafe impl ::windows_core::Interface for ICorProfilerCallback6 { - type Vtable = ICorProfilerCallback6_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICorProfilerCallback6 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfc13df4b_4448_4f4f_950c_ba8d19d00c36); -} #[repr(C)] #[doc(hidden)] pub struct ICorProfilerCallback6_Vtbl { pub base__: ICorProfilerCallback5_Vtbl, pub GetAssemblyReferences: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wszassemblypath: ::windows_core::PCWSTR, pasmrefprovider: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICorProfilerCallback7(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICorProfilerCallback7, ICorProfilerCallback7_Vtbl, 0xf76a2dba_1d52_4539_866c_2aa518f9efc3); +::windows_core::imp::interface_hierarchy!(ICorProfilerCallback7, ::windows_core::IUnknown, ICorProfilerCallback, ICorProfilerCallback2, ICorProfilerCallback3, ICorProfilerCallback4, ICorProfilerCallback5, ICorProfilerCallback6); impl ICorProfilerCallback7 { pub unsafe fn Initialize(&self, picorprofilerinfounk: P0) -> ::windows_core::Result<()> where @@ -2861,22 +2788,14 @@ impl ICorProfilerCallback7 { (::windows_core::Interface::vtable(self).ModuleInMemorySymbolsUpdated)(::windows_core::Interface::as_raw(self), moduleid).ok() } } -::windows_core::imp::interface_hierarchy!(ICorProfilerCallback7, ::windows_core::IUnknown, ICorProfilerCallback, ICorProfilerCallback2, ICorProfilerCallback3, ICorProfilerCallback4, ICorProfilerCallback5, ICorProfilerCallback6); -unsafe impl ::windows_core::Interface for ICorProfilerCallback7 { - type Vtable = ICorProfilerCallback7_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICorProfilerCallback7 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf76a2dba_1d52_4539_866c_2aa518f9efc3); -} #[repr(C)] #[doc(hidden)] pub struct ICorProfilerCallback7_Vtbl { pub base__: ICorProfilerCallback6_Vtbl, pub ModuleInMemorySymbolsUpdated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, moduleid: usize) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICorProfilerCallback8(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICorProfilerCallback8, ICorProfilerCallback8_Vtbl, 0x5bed9b15_c079_4d47_bfe2_215a140c07e0); +::windows_core::imp::interface_hierarchy!(ICorProfilerCallback8, ::windows_core::IUnknown, ICorProfilerCallback, ICorProfilerCallback2, ICorProfilerCallback3, ICorProfilerCallback4, ICorProfilerCallback5, ICorProfilerCallback6, ICorProfilerCallback7); impl ICorProfilerCallback8 { pub unsafe fn Initialize(&self, picorprofilerinfounk: P0) -> ::windows_core::Result<()> where @@ -3197,13 +3116,6 @@ impl ICorProfilerCallback8 { (::windows_core::Interface::vtable(self).DynamicMethodJITCompilationFinished)(::windows_core::Interface::as_raw(self), functionid, hrstatus, fissafetoblock.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ICorProfilerCallback8, ::windows_core::IUnknown, ICorProfilerCallback, ICorProfilerCallback2, ICorProfilerCallback3, ICorProfilerCallback4, ICorProfilerCallback5, ICorProfilerCallback6, ICorProfilerCallback7); -unsafe impl ::windows_core::Interface for ICorProfilerCallback8 { - type Vtable = ICorProfilerCallback8_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICorProfilerCallback8 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5bed9b15_c079_4d47_bfe2_215a140c07e0); -} #[repr(C)] #[doc(hidden)] pub struct ICorProfilerCallback8_Vtbl { @@ -3211,9 +3123,8 @@ pub struct ICorProfilerCallback8_Vtbl { pub DynamicMethodJITCompilationStarted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, functionid: usize, fissafetoblock: super::super::super::Foundation::BOOL, pilheader: *const u8, cbilheader: u32) -> ::windows_core::HRESULT, pub DynamicMethodJITCompilationFinished: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, functionid: usize, hrstatus: ::windows_core::HRESULT, fissafetoblock: super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICorProfilerCallback9(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICorProfilerCallback9, ICorProfilerCallback9_Vtbl, 0x27583ec3_c8f5_482f_8052_194b8ce4705a); +::windows_core::imp::interface_hierarchy!(ICorProfilerCallback9, ::windows_core::IUnknown, ICorProfilerCallback, ICorProfilerCallback2, ICorProfilerCallback3, ICorProfilerCallback4, ICorProfilerCallback5, ICorProfilerCallback6, ICorProfilerCallback7, ICorProfilerCallback8); impl ICorProfilerCallback9 { pub unsafe fn Initialize(&self, picorprofilerinfounk: P0) -> ::windows_core::Result<()> where @@ -3537,22 +3448,14 @@ impl ICorProfilerCallback9 { (::windows_core::Interface::vtable(self).DynamicMethodUnloaded)(::windows_core::Interface::as_raw(self), functionid).ok() } } -::windows_core::imp::interface_hierarchy!(ICorProfilerCallback9, ::windows_core::IUnknown, ICorProfilerCallback, ICorProfilerCallback2, ICorProfilerCallback3, ICorProfilerCallback4, ICorProfilerCallback5, ICorProfilerCallback6, ICorProfilerCallback7, ICorProfilerCallback8); -unsafe impl ::windows_core::Interface for ICorProfilerCallback9 { - type Vtable = ICorProfilerCallback9_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICorProfilerCallback9 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x27583ec3_c8f5_482f_8052_194b8ce4705a); -} #[repr(C)] #[doc(hidden)] pub struct ICorProfilerCallback9_Vtbl { pub base__: ICorProfilerCallback8_Vtbl, pub DynamicMethodUnloaded: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, functionid: usize) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICorProfilerFunctionControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICorProfilerFunctionControl, ICorProfilerFunctionControl_Vtbl, 0xf0963021_e1ea_4732_8581_e01b0bd3c0c6); +::windows_core::imp::interface_hierarchy!(ICorProfilerFunctionControl, ::windows_core::IUnknown); impl ICorProfilerFunctionControl { pub unsafe fn SetCodegenFlags(&self, flags: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetCodegenFlags)(::windows_core::Interface::as_raw(self), flags).ok() @@ -3564,13 +3467,6 @@ impl ICorProfilerFunctionControl { (::windows_core::Interface::vtable(self).SetILInstrumentedCodeMap)(::windows_core::Interface::as_raw(self), rgilmapentries.len().try_into().unwrap(), ::core::mem::transmute(rgilmapentries.as_ptr())).ok() } } -::windows_core::imp::interface_hierarchy!(ICorProfilerFunctionControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICorProfilerFunctionControl { - type Vtable = ICorProfilerFunctionControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICorProfilerFunctionControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf0963021_e1ea_4732_8581_e01b0bd3c0c6); -} #[repr(C)] #[doc(hidden)] pub struct ICorProfilerFunctionControl_Vtbl { @@ -3579,9 +3475,8 @@ pub struct ICorProfilerFunctionControl_Vtbl { pub SetILFunctionBody: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cbnewilmethodheader: u32, pbnewilmethodheader: *const u8) -> ::windows_core::HRESULT, pub SetILInstrumentedCodeMap: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cilmapentries: u32, rgilmapentries: *const COR_IL_MAP) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICorProfilerFunctionEnum(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICorProfilerFunctionEnum, ICorProfilerFunctionEnum_Vtbl, 0xff71301a_b994_429d_a10b_b345a65280ef); +::windows_core::imp::interface_hierarchy!(ICorProfilerFunctionEnum, ::windows_core::IUnknown); impl ICorProfilerFunctionEnum { pub unsafe fn Skip(&self, celt: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Skip)(::windows_core::Interface::as_raw(self), celt).ok() @@ -3601,13 +3496,6 @@ impl ICorProfilerFunctionEnum { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), ids.len().try_into().unwrap(), ::core::mem::transmute(ids.as_ptr()), pceltfetched).ok() } } -::windows_core::imp::interface_hierarchy!(ICorProfilerFunctionEnum, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICorProfilerFunctionEnum { - type Vtable = ICorProfilerFunctionEnum_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICorProfilerFunctionEnum { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xff71301a_b994_429d_a10b_b345a65280ef); -} #[repr(C)] #[doc(hidden)] pub struct ICorProfilerFunctionEnum_Vtbl { @@ -3618,9 +3506,8 @@ pub struct ICorProfilerFunctionEnum_Vtbl { pub GetCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcelt: *mut u32) -> ::windows_core::HRESULT, pub Next: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, celt: u32, ids: *mut COR_PRF_FUNCTION, pceltfetched: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICorProfilerInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICorProfilerInfo, ICorProfilerInfo_Vtbl, 0x28b5557d_3f3f_48b4_90b2_5f9eea2f6c48); +::windows_core::imp::interface_hierarchy!(ICorProfilerInfo, ::windows_core::IUnknown); impl ICorProfilerInfo { pub unsafe fn GetClassFromObject(&self, objectid: usize) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -3745,13 +3632,6 @@ impl ICorProfilerInfo { (::windows_core::Interface::vtable(self).GetILToNativeMapping)(::windows_core::Interface::as_raw(self), functionid, map.len().try_into().unwrap(), pcmap, ::core::mem::transmute(map.as_ptr())).ok() } } -::windows_core::imp::interface_hierarchy!(ICorProfilerInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICorProfilerInfo { - type Vtable = ICorProfilerInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICorProfilerInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x28b5557d_3f3f_48b4_90b2_5f9eea2f6c48); -} #[repr(C)] #[doc(hidden)] pub struct ICorProfilerInfo_Vtbl { @@ -3793,9 +3673,8 @@ pub struct ICorProfilerInfo_Vtbl { pub EndInprocDebugging: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwprofilercontext: u32) -> ::windows_core::HRESULT, pub GetILToNativeMapping: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, functionid: usize, cmap: u32, pcmap: *mut u32, map: *mut COR_DEBUG_IL_TO_NATIVE_MAP) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICorProfilerInfo10(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICorProfilerInfo10, ICorProfilerInfo10_Vtbl, 0x2f1b5152_c869_40c9_aa5f_3abe026bd720); +::windows_core::imp::interface_hierarchy!(ICorProfilerInfo10, ::windows_core::IUnknown, ICorProfilerInfo, ICorProfilerInfo2, ICorProfilerInfo3, ICorProfilerInfo4, ICorProfilerInfo5, ICorProfilerInfo6, ICorProfilerInfo7, ICorProfilerInfo8, ICorProfilerInfo9); impl ICorProfilerInfo10 { pub unsafe fn GetClassFromObject(&self, objectid: usize) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -4127,13 +4006,6 @@ impl ICorProfilerInfo10 { (::windows_core::Interface::vtable(self).ResumeRuntime)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ICorProfilerInfo10, ::windows_core::IUnknown, ICorProfilerInfo, ICorProfilerInfo2, ICorProfilerInfo3, ICorProfilerInfo4, ICorProfilerInfo5, ICorProfilerInfo6, ICorProfilerInfo7, ICorProfilerInfo8, ICorProfilerInfo9); -unsafe impl ::windows_core::Interface for ICorProfilerInfo10 { - type Vtable = ICorProfilerInfo10_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICorProfilerInfo10 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2f1b5152_c869_40c9_aa5f_3abe026bd720); -} #[repr(C)] #[doc(hidden)] pub struct ICorProfilerInfo10_Vtbl { @@ -4145,9 +4017,8 @@ pub struct ICorProfilerInfo10_Vtbl { pub SuspendRuntime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ResumeRuntime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICorProfilerInfo11(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICorProfilerInfo11, ICorProfilerInfo11_Vtbl, 0x06398876_8987_4154_b621_40a00d6e4d04); +::windows_core::imp::interface_hierarchy!(ICorProfilerInfo11, ::windows_core::IUnknown, ICorProfilerInfo, ICorProfilerInfo2, ICorProfilerInfo3, ICorProfilerInfo4, ICorProfilerInfo5, ICorProfilerInfo6, ICorProfilerInfo7, ICorProfilerInfo8, ICorProfilerInfo9, ICorProfilerInfo10); impl ICorProfilerInfo11 { pub unsafe fn GetClassFromObject(&self, objectid: usize) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -4492,13 +4363,6 @@ impl ICorProfilerInfo11 { (::windows_core::Interface::vtable(self).SetEnvironmentVariable)(::windows_core::Interface::as_raw(self), szname.into_param().abi(), szvalue.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ICorProfilerInfo11, ::windows_core::IUnknown, ICorProfilerInfo, ICorProfilerInfo2, ICorProfilerInfo3, ICorProfilerInfo4, ICorProfilerInfo5, ICorProfilerInfo6, ICorProfilerInfo7, ICorProfilerInfo8, ICorProfilerInfo9, ICorProfilerInfo10); -unsafe impl ::windows_core::Interface for ICorProfilerInfo11 { - type Vtable = ICorProfilerInfo11_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICorProfilerInfo11 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x06398876_8987_4154_b621_40a00d6e4d04); -} #[repr(C)] #[doc(hidden)] pub struct ICorProfilerInfo11_Vtbl { @@ -4506,9 +4370,8 @@ pub struct ICorProfilerInfo11_Vtbl { pub GetEnvironmentVariableA: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, szname: ::windows_core::PCWSTR, cchvalue: u32, pcchvalue: *mut u32, szvalue: ::windows_core::PWSTR) -> ::windows_core::HRESULT, pub SetEnvironmentVariable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, szname: ::windows_core::PCWSTR, szvalue: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICorProfilerInfo12(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICorProfilerInfo12, ICorProfilerInfo12_Vtbl, 0x27b24ccd_1cb1_47c5_96ee_98190dc30959); +::windows_core::imp::interface_hierarchy!(ICorProfilerInfo12, ::windows_core::IUnknown, ICorProfilerInfo, ICorProfilerInfo2, ICorProfilerInfo3, ICorProfilerInfo4, ICorProfilerInfo5, ICorProfilerInfo6, ICorProfilerInfo7, ICorProfilerInfo8, ICorProfilerInfo9, ICorProfilerInfo10, ICorProfilerInfo11); impl ICorProfilerInfo12 { pub unsafe fn GetClassFromObject(&self, objectid: usize) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -4887,13 +4750,6 @@ impl ICorProfilerInfo12 { (::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() } } -::windows_core::imp::interface_hierarchy!(ICorProfilerInfo12, ::windows_core::IUnknown, ICorProfilerInfo, ICorProfilerInfo2, ICorProfilerInfo3, ICorProfilerInfo4, ICorProfilerInfo5, ICorProfilerInfo6, ICorProfilerInfo7, ICorProfilerInfo8, ICorProfilerInfo9, ICorProfilerInfo10, ICorProfilerInfo11); -unsafe impl ::windows_core::Interface for ICorProfilerInfo12 { - type Vtable = ICorProfilerInfo12_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICorProfilerInfo12 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x27b24ccd_1cb1_47c5_96ee_98190dc30959); -} #[repr(C)] #[doc(hidden)] pub struct ICorProfilerInfo12_Vtbl { @@ -4906,9 +4762,8 @@ pub struct ICorProfilerInfo12_Vtbl { pub EventPipeDefineEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, provider: usize, eventname: ::windows_core::PCWSTR, eventid: u32, keywords: u64, eventversion: u32, level: u32, opcode: u8, needstack: super::super::super::Foundation::BOOL, cparamdescs: u32, pparamdescs: *const COR_PRF_EVENTPIPE_PARAM_DESC, pevent: *mut usize) -> ::windows_core::HRESULT, pub EventPipeWriteEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, event: usize, cdata: u32, data: *const COR_PRF_EVENT_DATA, pactivityid: *const ::windows_core::GUID, prelatedactivityid: *const ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICorProfilerInfo13(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICorProfilerInfo13, ICorProfilerInfo13_Vtbl, 0x6e6c7ee2_0701_4ec2_9d29_2e8733b66934); +::windows_core::imp::interface_hierarchy!(ICorProfilerInfo13, ::windows_core::IUnknown, ICorProfilerInfo, ICorProfilerInfo2, ICorProfilerInfo3, ICorProfilerInfo4, ICorProfilerInfo5, ICorProfilerInfo6, ICorProfilerInfo7, ICorProfilerInfo8, ICorProfilerInfo9, ICorProfilerInfo10, ICorProfilerInfo11, ICorProfilerInfo12); impl ICorProfilerInfo13 { pub unsafe fn GetClassFromObject(&self, objectid: usize) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -5297,13 +5152,6 @@ impl ICorProfilerInfo13 { (::windows_core::Interface::vtable(self).GetObjectIDFromHandle)(::windows_core::Interface::as_raw(self), handle, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ICorProfilerInfo13, ::windows_core::IUnknown, ICorProfilerInfo, ICorProfilerInfo2, ICorProfilerInfo3, ICorProfilerInfo4, ICorProfilerInfo5, ICorProfilerInfo6, ICorProfilerInfo7, ICorProfilerInfo8, ICorProfilerInfo9, ICorProfilerInfo10, ICorProfilerInfo11, ICorProfilerInfo12); -unsafe impl ::windows_core::Interface for ICorProfilerInfo13 { - type Vtable = ICorProfilerInfo13_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICorProfilerInfo13 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6e6c7ee2_0701_4ec2_9d29_2e8733b66934); -} #[repr(C)] #[doc(hidden)] pub struct ICorProfilerInfo13_Vtbl { @@ -5312,9 +5160,8 @@ pub struct ICorProfilerInfo13_Vtbl { pub DestroyHandle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handle: *const *const ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetObjectIDFromHandle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handle: *const *const ::core::ffi::c_void, pobject: *mut usize) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICorProfilerInfo14(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICorProfilerInfo14, ICorProfilerInfo14_Vtbl, 0xf460e352_d76d_4fe9_835f_f6af9d6e862d); +::windows_core::imp::interface_hierarchy!(ICorProfilerInfo14, ::windows_core::IUnknown, ICorProfilerInfo, ICorProfilerInfo2, ICorProfilerInfo3, ICorProfilerInfo4, ICorProfilerInfo5, ICorProfilerInfo6, ICorProfilerInfo7, ICorProfilerInfo8, ICorProfilerInfo9, ICorProfilerInfo10, ICorProfilerInfo11, ICorProfilerInfo12, ICorProfilerInfo13); impl ICorProfilerInfo14 { pub unsafe fn GetClassFromObject(&self, objectid: usize) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -5717,13 +5564,6 @@ impl ICorProfilerInfo14 { (::windows_core::Interface::vtable(self).EventPipeCreateProvider2)(::windows_core::Interface::as_raw(self), providername.into_param().abi(), pcallback, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ICorProfilerInfo14, ::windows_core::IUnknown, ICorProfilerInfo, ICorProfilerInfo2, ICorProfilerInfo3, ICorProfilerInfo4, ICorProfilerInfo5, ICorProfilerInfo6, ICorProfilerInfo7, ICorProfilerInfo8, ICorProfilerInfo9, ICorProfilerInfo10, ICorProfilerInfo11, ICorProfilerInfo12, ICorProfilerInfo13); -unsafe impl ::windows_core::Interface for ICorProfilerInfo14 { - type Vtable = ICorProfilerInfo14_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICorProfilerInfo14 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf460e352_d76d_4fe9_835f_f6af9d6e862d); -} #[repr(C)] #[doc(hidden)] pub struct ICorProfilerInfo14_Vtbl { @@ -5732,9 +5572,8 @@ pub struct ICorProfilerInfo14_Vtbl { pub GetNonGCHeapBounds: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cobjectranges: u32, pcobjectranges: *mut u32, ranges: *mut COR_PRF_NONGC_HEAP_RANGE) -> ::windows_core::HRESULT, pub EventPipeCreateProvider2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, providername: ::windows_core::PCWSTR, pcallback: *const EventPipeProviderCallback, pprovider: *mut usize) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICorProfilerInfo2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICorProfilerInfo2, ICorProfilerInfo2_Vtbl, 0xcc0935cd_a518_487d_b0bb_a93214e65478); +::windows_core::imp::interface_hierarchy!(ICorProfilerInfo2, ::windows_core::IUnknown, ICorProfilerInfo); impl ICorProfilerInfo2 { pub unsafe fn GetClassFromObject(&self, objectid: usize) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -5932,13 +5771,6 @@ impl ICorProfilerInfo2 { (::windows_core::Interface::vtable(self).GetNotifiedExceptionClauseInfo)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ICorProfilerInfo2, ::windows_core::IUnknown, ICorProfilerInfo); -unsafe impl ::windows_core::Interface for ICorProfilerInfo2 { - type Vtable = ICorProfilerInfo2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICorProfilerInfo2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcc0935cd_a518_487d_b0bb_a93214e65478); -} #[repr(C)] #[doc(hidden)] pub struct ICorProfilerInfo2_Vtbl { @@ -5968,9 +5800,8 @@ pub struct ICorProfilerInfo2_Vtbl { pub GetObjectGeneration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, objectid: usize, range: *mut COR_PRF_GC_GENERATION_RANGE) -> ::windows_core::HRESULT, pub GetNotifiedExceptionClauseInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinfo: *mut COR_PRF_EX_CLAUSE_INFO) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICorProfilerInfo3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICorProfilerInfo3, ICorProfilerInfo3_Vtbl, 0xb555ed4f_452a_4e54_8b39_b5360bad32a0); +::windows_core::imp::interface_hierarchy!(ICorProfilerInfo3, ::windows_core::IUnknown, ICorProfilerInfo, ICorProfilerInfo2); impl ICorProfilerInfo3 { pub unsafe fn GetClassFromObject(&self, objectid: usize) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -6213,13 +6044,6 @@ impl ICorProfilerInfo3 { (::windows_core::Interface::vtable(self).GetModuleInfo2)(::windows_core::Interface::as_raw(self), moduleid, ppbaseloadaddress, szname.len().try_into().unwrap(), pcchname, ::core::mem::transmute(szname.as_ptr()), passemblyid, pdwmoduleflags).ok() } } -::windows_core::imp::interface_hierarchy!(ICorProfilerInfo3, ::windows_core::IUnknown, ICorProfilerInfo, ICorProfilerInfo2); -unsafe impl ::windows_core::Interface for ICorProfilerInfo3 { - type Vtable = ICorProfilerInfo3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICorProfilerInfo3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb555ed4f_452a_4e54_8b39_b5360bad32a0); -} #[repr(C)] #[doc(hidden)] pub struct ICorProfilerInfo3_Vtbl { @@ -6239,9 +6063,8 @@ pub struct ICorProfilerInfo3_Vtbl { pub GetAppDomainsContainingModule: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, moduleid: usize, cappdomainids: u32, pcappdomainids: *mut u32, appdomainids: *mut usize) -> ::windows_core::HRESULT, pub GetModuleInfo2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, moduleid: usize, ppbaseloadaddress: *mut *mut u8, cchname: u32, pcchname: *mut u32, szname: ::windows_core::PWSTR, passemblyid: *mut usize, pdwmoduleflags: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICorProfilerInfo4(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICorProfilerInfo4, ICorProfilerInfo4_Vtbl, 0x0d8fdcaa_6257_47bf_b1bf_94dac88466ee); +::windows_core::imp::interface_hierarchy!(ICorProfilerInfo4, ::windows_core::IUnknown, ICorProfilerInfo, ICorProfilerInfo2, ICorProfilerInfo3); impl ICorProfilerInfo4 { pub unsafe fn GetClassFromObject(&self, objectid: usize) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -6517,13 +6340,6 @@ impl ICorProfilerInfo4 { (::windows_core::Interface::vtable(self).GetObjectSize2)(::windows_core::Interface::as_raw(self), objectid, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ICorProfilerInfo4, ::windows_core::IUnknown, ICorProfilerInfo, ICorProfilerInfo2, ICorProfilerInfo3); -unsafe impl ::windows_core::Interface for ICorProfilerInfo4 { - type Vtable = ICorProfilerInfo4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICorProfilerInfo4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0d8fdcaa_6257_47bf_b1bf_94dac88466ee); -} #[repr(C)] #[doc(hidden)] pub struct ICorProfilerInfo4_Vtbl { @@ -6539,9 +6355,8 @@ pub struct ICorProfilerInfo4_Vtbl { pub EnumJITedFunctions2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetObjectSize2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, objectid: usize, pcsize: *mut usize) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICorProfilerInfo5(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICorProfilerInfo5, ICorProfilerInfo5_Vtbl, 0x07602928_ce38_4b83_81e7_74adaf781214); +::windows_core::imp::interface_hierarchy!(ICorProfilerInfo5, ::windows_core::IUnknown, ICorProfilerInfo, ICorProfilerInfo2, ICorProfilerInfo3, ICorProfilerInfo4); impl ICorProfilerInfo5 { pub unsafe fn GetClassFromObject(&self, objectid: usize) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -6823,13 +6638,6 @@ impl ICorProfilerInfo5 { (::windows_core::Interface::vtable(self).SetEventMask2)(::windows_core::Interface::as_raw(self), dweventslow, dweventshigh).ok() } } -::windows_core::imp::interface_hierarchy!(ICorProfilerInfo5, ::windows_core::IUnknown, ICorProfilerInfo, ICorProfilerInfo2, ICorProfilerInfo3, ICorProfilerInfo4); -unsafe impl ::windows_core::Interface for ICorProfilerInfo5 { - type Vtable = ICorProfilerInfo5_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICorProfilerInfo5 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x07602928_ce38_4b83_81e7_74adaf781214); -} #[repr(C)] #[doc(hidden)] pub struct ICorProfilerInfo5_Vtbl { @@ -6837,9 +6645,8 @@ pub struct ICorProfilerInfo5_Vtbl { pub GetEventMask2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdweventslow: *mut u32, pdweventshigh: *mut u32) -> ::windows_core::HRESULT, pub SetEventMask2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dweventslow: u32, dweventshigh: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICorProfilerInfo6(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICorProfilerInfo6, ICorProfilerInfo6_Vtbl, 0xf30a070d_bffb_46a7_b1d8_8781ef7b698a); +::windows_core::imp::interface_hierarchy!(ICorProfilerInfo6, ::windows_core::IUnknown, ICorProfilerInfo, ICorProfilerInfo2, ICorProfilerInfo3, ICorProfilerInfo4, ICorProfilerInfo5); impl ICorProfilerInfo6 { pub unsafe fn GetClassFromObject(&self, objectid: usize) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -7124,22 +6931,14 @@ impl ICorProfilerInfo6 { (::windows_core::Interface::vtable(self).EnumNgenModuleMethodsInliningThisMethod)(::windows_core::Interface::as_raw(self), inlinersmoduleid, inlineemoduleid, inlineemethodid, incompletedata, ::core::mem::transmute(ppenum)).ok() } } -::windows_core::imp::interface_hierarchy!(ICorProfilerInfo6, ::windows_core::IUnknown, ICorProfilerInfo, ICorProfilerInfo2, ICorProfilerInfo3, ICorProfilerInfo4, ICorProfilerInfo5); -unsafe impl ::windows_core::Interface for ICorProfilerInfo6 { - type Vtable = ICorProfilerInfo6_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICorProfilerInfo6 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf30a070d_bffb_46a7_b1d8_8781ef7b698a); -} #[repr(C)] #[doc(hidden)] pub struct ICorProfilerInfo6_Vtbl { pub base__: ICorProfilerInfo5_Vtbl, pub EnumNgenModuleMethodsInliningThisMethod: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, inlinersmoduleid: usize, inlineemoduleid: usize, inlineemethodid: u32, incompletedata: *mut super::super::super::Foundation::BOOL, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICorProfilerInfo7(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICorProfilerInfo7, ICorProfilerInfo7_Vtbl, 0x9aeecc0d_63e0_4187_8c00_e312f503f663); +::windows_core::imp::interface_hierarchy!(ICorProfilerInfo7, ::windows_core::IUnknown, ICorProfilerInfo, ICorProfilerInfo2, ICorProfilerInfo3, ICorProfilerInfo4, ICorProfilerInfo5, ICorProfilerInfo6); impl ICorProfilerInfo7 { pub unsafe fn GetClassFromObject(&self, objectid: usize) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -7434,13 +7233,6 @@ impl ICorProfilerInfo7 { (::windows_core::Interface::vtable(self).ReadInMemorySymbols)(::windows_core::Interface::as_raw(self), moduleid, symbolsreadoffset, psymbolbytes, countsymbolbytes, pcountsymbolbytesread).ok() } } -::windows_core::imp::interface_hierarchy!(ICorProfilerInfo7, ::windows_core::IUnknown, ICorProfilerInfo, ICorProfilerInfo2, ICorProfilerInfo3, ICorProfilerInfo4, ICorProfilerInfo5, ICorProfilerInfo6); -unsafe impl ::windows_core::Interface for ICorProfilerInfo7 { - type Vtable = ICorProfilerInfo7_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICorProfilerInfo7 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9aeecc0d_63e0_4187_8c00_e312f503f663); -} #[repr(C)] #[doc(hidden)] pub struct ICorProfilerInfo7_Vtbl { @@ -7449,9 +7241,8 @@ pub struct ICorProfilerInfo7_Vtbl { pub GetInMemorySymbolsLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, moduleid: usize, pcountsymbolbytes: *mut u32) -> ::windows_core::HRESULT, pub ReadInMemorySymbols: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, moduleid: usize, symbolsreadoffset: u32, psymbolbytes: *mut u8, countsymbolbytes: u32, pcountsymbolbytesread: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICorProfilerInfo8(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICorProfilerInfo8, ICorProfilerInfo8_Vtbl, 0xc5ac80a6_782e_4716_8044_39598c60cfbf); +::windows_core::imp::interface_hierarchy!(ICorProfilerInfo8, ::windows_core::IUnknown, ICorProfilerInfo, ICorProfilerInfo2, ICorProfilerInfo3, ICorProfilerInfo4, ICorProfilerInfo5, ICorProfilerInfo6, ICorProfilerInfo7); impl ICorProfilerInfo8 { pub unsafe fn GetClassFromObject(&self, objectid: usize) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -7756,13 +7547,6 @@ impl ICorProfilerInfo8 { (::windows_core::Interface::vtable(self).GetDynamicFunctionInfo)(::windows_core::Interface::as_raw(self), functionid, moduleid, ppvsig, pbsig, cchname, pcchname, ::core::mem::transmute(wszname)).ok() } } -::windows_core::imp::interface_hierarchy!(ICorProfilerInfo8, ::windows_core::IUnknown, ICorProfilerInfo, ICorProfilerInfo2, ICorProfilerInfo3, ICorProfilerInfo4, ICorProfilerInfo5, ICorProfilerInfo6, ICorProfilerInfo7); -unsafe impl ::windows_core::Interface for ICorProfilerInfo8 { - type Vtable = ICorProfilerInfo8_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICorProfilerInfo8 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc5ac80a6_782e_4716_8044_39598c60cfbf); -} #[repr(C)] #[doc(hidden)] pub struct ICorProfilerInfo8_Vtbl { @@ -7771,9 +7555,8 @@ pub struct ICorProfilerInfo8_Vtbl { pub GetFunctionFromIP3: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ip: *const u8, functionid: *mut usize, prejitid: *mut usize) -> ::windows_core::HRESULT, pub GetDynamicFunctionInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, functionid: usize, moduleid: *mut usize, ppvsig: *mut *mut u8, pbsig: *mut u32, cchname: u32, pcchname: *mut u32, wszname: ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICorProfilerInfo9(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICorProfilerInfo9, ICorProfilerInfo9_Vtbl, 0x008170db_f8cc_4796_9a51_dc8aa0b47012); +::windows_core::imp::interface_hierarchy!(ICorProfilerInfo9, ::windows_core::IUnknown, ICorProfilerInfo, ICorProfilerInfo2, ICorProfilerInfo3, ICorProfilerInfo4, ICorProfilerInfo5, ICorProfilerInfo6, ICorProfilerInfo7, ICorProfilerInfo8); impl ICorProfilerInfo9 { pub unsafe fn GetClassFromObject(&self, objectid: usize) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -8087,13 +7870,6 @@ impl ICorProfilerInfo9 { (::windows_core::Interface::vtable(self).GetCodeInfo4)(::windows_core::Interface::as_raw(self), pnativecodestartaddress, ccodeinfos, pccodeinfos, codeinfos).ok() } } -::windows_core::imp::interface_hierarchy!(ICorProfilerInfo9, ::windows_core::IUnknown, ICorProfilerInfo, ICorProfilerInfo2, ICorProfilerInfo3, ICorProfilerInfo4, ICorProfilerInfo5, ICorProfilerInfo6, ICorProfilerInfo7, ICorProfilerInfo8); -unsafe impl ::windows_core::Interface for ICorProfilerInfo9 { - type Vtable = ICorProfilerInfo9_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICorProfilerInfo9 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x008170db_f8cc_4796_9a51_dc8aa0b47012); -} #[repr(C)] #[doc(hidden)] pub struct ICorProfilerInfo9_Vtbl { @@ -8102,9 +7878,8 @@ pub struct ICorProfilerInfo9_Vtbl { pub GetILToNativeMapping3: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pnativecodestartaddress: usize, cmap: u32, pcmap: *mut u32, map: *mut COR_DEBUG_IL_TO_NATIVE_MAP) -> ::windows_core::HRESULT, pub GetCodeInfo4: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pnativecodestartaddress: usize, ccodeinfos: u32, pccodeinfos: *mut u32, codeinfos: *mut COR_PRF_CODE_INFO) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICorProfilerMethodEnum(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICorProfilerMethodEnum, ICorProfilerMethodEnum_Vtbl, 0xfccee788_0088_454b_a811_c99f298d1942); +::windows_core::imp::interface_hierarchy!(ICorProfilerMethodEnum, ::windows_core::IUnknown); impl ICorProfilerMethodEnum { pub unsafe fn Skip(&self, celt: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Skip)(::windows_core::Interface::as_raw(self), celt).ok() @@ -8124,13 +7899,6 @@ impl ICorProfilerMethodEnum { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), elements.len().try_into().unwrap(), ::core::mem::transmute(elements.as_ptr()), pceltfetched).ok() } } -::windows_core::imp::interface_hierarchy!(ICorProfilerMethodEnum, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICorProfilerMethodEnum { - type Vtable = ICorProfilerMethodEnum_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICorProfilerMethodEnum { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfccee788_0088_454b_a811_c99f298d1942); -} #[repr(C)] #[doc(hidden)] pub struct ICorProfilerMethodEnum_Vtbl { @@ -8141,9 +7909,8 @@ pub struct ICorProfilerMethodEnum_Vtbl { pub GetCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcelt: *mut u32) -> ::windows_core::HRESULT, pub Next: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, celt: u32, elements: *mut COR_PRF_METHOD, pceltfetched: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICorProfilerModuleEnum(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICorProfilerModuleEnum, ICorProfilerModuleEnum_Vtbl, 0xb0266d75_2081_4493_af7f_028ba34db891); +::windows_core::imp::interface_hierarchy!(ICorProfilerModuleEnum, ::windows_core::IUnknown); impl ICorProfilerModuleEnum { pub unsafe fn Skip(&self, celt: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Skip)(::windows_core::Interface::as_raw(self), celt).ok() @@ -8163,13 +7930,6 @@ impl ICorProfilerModuleEnum { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), ids.len().try_into().unwrap(), ::core::mem::transmute(ids.as_ptr()), pceltfetched).ok() } } -::windows_core::imp::interface_hierarchy!(ICorProfilerModuleEnum, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICorProfilerModuleEnum { - type Vtable = ICorProfilerModuleEnum_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICorProfilerModuleEnum { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb0266d75_2081_4493_af7f_028ba34db891); -} #[repr(C)] #[doc(hidden)] pub struct ICorProfilerModuleEnum_Vtbl { @@ -8180,9 +7940,8 @@ pub struct ICorProfilerModuleEnum_Vtbl { pub GetCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcelt: *mut u32) -> ::windows_core::HRESULT, pub Next: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, celt: u32, ids: *mut usize, pceltfetched: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICorProfilerObjectEnum(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICorProfilerObjectEnum, ICorProfilerObjectEnum_Vtbl, 0x2c6269bd_2d13_4321_ae12_6686365fd6af); +::windows_core::imp::interface_hierarchy!(ICorProfilerObjectEnum, ::windows_core::IUnknown); impl ICorProfilerObjectEnum { pub unsafe fn Skip(&self, celt: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Skip)(::windows_core::Interface::as_raw(self), celt).ok() @@ -8202,13 +7961,6 @@ impl ICorProfilerObjectEnum { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), objects.len().try_into().unwrap(), ::core::mem::transmute(objects.as_ptr()), pceltfetched).ok() } } -::windows_core::imp::interface_hierarchy!(ICorProfilerObjectEnum, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICorProfilerObjectEnum { - type Vtable = ICorProfilerObjectEnum_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICorProfilerObjectEnum { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2c6269bd_2d13_4321_ae12_6686365fd6af); -} #[repr(C)] #[doc(hidden)] pub struct ICorProfilerObjectEnum_Vtbl { @@ -8219,9 +7971,8 @@ pub struct ICorProfilerObjectEnum_Vtbl { pub GetCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcelt: *mut u32) -> ::windows_core::HRESULT, pub Next: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, celt: u32, objects: *mut usize, pceltfetched: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICorProfilerThreadEnum(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICorProfilerThreadEnum, ICorProfilerThreadEnum_Vtbl, 0x571194f7_25ed_419f_aa8b_7016b3159701); +::windows_core::imp::interface_hierarchy!(ICorProfilerThreadEnum, ::windows_core::IUnknown); impl ICorProfilerThreadEnum { pub unsafe fn Skip(&self, celt: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Skip)(::windows_core::Interface::as_raw(self), celt).ok() @@ -8241,13 +7992,6 @@ impl ICorProfilerThreadEnum { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), ids.len().try_into().unwrap(), ::core::mem::transmute(ids.as_ptr()), pceltfetched).ok() } } -::windows_core::imp::interface_hierarchy!(ICorProfilerThreadEnum, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICorProfilerThreadEnum { - type Vtable = ICorProfilerThreadEnum_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICorProfilerThreadEnum { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x571194f7_25ed_419f_aa8b_7016b3159701); -} #[repr(C)] #[doc(hidden)] pub struct ICorProfilerThreadEnum_Vtbl { @@ -8258,21 +8002,13 @@ pub struct ICorProfilerThreadEnum_Vtbl { pub GetCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcelt: *mut u32) -> ::windows_core::HRESULT, pub Next: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, celt: u32, ids: *mut usize, pceltfetched: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMethodMalloc(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMethodMalloc, IMethodMalloc_Vtbl, 0xa0efb28b_6ee2_4d7b_b983_a75ef7beedb8); +::windows_core::imp::interface_hierarchy!(IMethodMalloc, ::windows_core::IUnknown); impl IMethodMalloc { pub unsafe fn Alloc(&self, cb: u32) -> *mut ::core::ffi::c_void { (::windows_core::Interface::vtable(self).Alloc)(::windows_core::Interface::as_raw(self), cb) } } -::windows_core::imp::interface_hierarchy!(IMethodMalloc, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMethodMalloc { - type Vtable = IMethodMalloc_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMethodMalloc { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa0efb28b_6ee2_4d7b_b983_a75ef7beedb8); -} #[repr(C)] #[doc(hidden)] pub struct IMethodMalloc_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Debug/ActiveScript/impl.rs b/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Debug/ActiveScript/impl.rs index 8b956e3c0e..4d541b66ac 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Debug/ActiveScript/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Debug/ActiveScript/impl.rs @@ -64,7 +64,7 @@ impl AsyncIDebugApplicationNodeEvents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -208,7 +208,7 @@ impl IActiveScript_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -354,7 +354,7 @@ impl IActiveScriptAuthor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -375,7 +375,7 @@ impl IActiveScriptAuthorProcedure_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), ParseProcedureText: ParseProcedureText:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IActiveScriptDebug32_Impl: Sized { @@ -415,7 +415,7 @@ impl IActiveScriptDebug32_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IActiveScriptDebug64_Impl: Sized { @@ -455,7 +455,7 @@ impl IActiveScriptDebug64_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IActiveScriptEncode_Impl: Sized { @@ -489,7 +489,7 @@ impl IActiveScriptEncode_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -533,7 +533,7 @@ impl IActiveScriptError_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -554,7 +554,7 @@ impl IActiveScriptError64_Vtbl { Self { base__: IActiveScriptError_Vtbl::new::(), GetSourcePosition64: GetSourcePosition64:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -597,7 +597,7 @@ impl IActiveScriptErrorDebug_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IActiveScriptErrorDebug110_Impl: Sized { @@ -620,7 +620,7 @@ impl IActiveScriptErrorDebug110_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetExceptionThrownKind: GetExceptionThrownKind:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IActiveScriptGarbageCollector_Impl: Sized { @@ -637,7 +637,7 @@ impl IActiveScriptGarbageCollector_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CollectGarbage: CollectGarbage:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IActiveScriptHostEncode_Impl: Sized { @@ -654,7 +654,7 @@ impl IActiveScriptHostEncode_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), EncodeScriptHostFile: EncodeScriptHostFile:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -693,7 +693,7 @@ impl IActiveScriptParse32_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -732,7 +732,7 @@ impl IActiveScriptParse64_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -746,7 +746,7 @@ impl IActiveScriptParseProcedure2_32_Vtbl { Self { base__: IActiveScriptParseProcedure32_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -760,7 +760,7 @@ impl IActiveScriptParseProcedure2_64_Vtbl { Self { base__: IActiveScriptParseProcedure64_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -787,7 +787,7 @@ impl IActiveScriptParseProcedure32_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), ParseProcedureText: ParseProcedureText:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -814,7 +814,7 @@ impl IActiveScriptParseProcedure64_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), ParseProcedureText: ParseProcedureText:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -841,7 +841,7 @@ impl IActiveScriptParseProcedureOld32_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), ParseProcedureText: ParseProcedureText:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -868,7 +868,7 @@ impl IActiveScriptParseProcedureOld64_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), ParseProcedureText: ParseProcedureText:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IActiveScriptProfilerCallback_Impl: Sized { @@ -923,7 +923,7 @@ impl IActiveScriptProfilerCallback_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IActiveScriptProfilerCallback2_Impl: Sized + IActiveScriptProfilerCallback_Impl { @@ -950,7 +950,7 @@ impl IActiveScriptProfilerCallback2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IActiveScriptProfilerCallback3_Impl: Sized + IActiveScriptProfilerCallback2_Impl { @@ -967,7 +967,7 @@ impl IActiveScriptProfilerCallback3_Vtbl { Self { base__: IActiveScriptProfilerCallback2_Vtbl::new::(), SetWebWorkerId: SetWebWorkerId:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IActiveScriptProfilerControl_Impl: Sized { @@ -1001,7 +1001,7 @@ impl IActiveScriptProfilerControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IActiveScriptProfilerControl2_Impl: Sized + IActiveScriptProfilerControl_Impl { @@ -1028,7 +1028,7 @@ impl IActiveScriptProfilerControl2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IActiveScriptProfilerControl3_Impl: Sized + IActiveScriptProfilerControl2_Impl { @@ -1051,7 +1051,7 @@ impl IActiveScriptProfilerControl3_Vtbl { Self { base__: IActiveScriptProfilerControl2_Vtbl::new::(), EnumHeap: EnumHeap:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IActiveScriptProfilerControl4_Impl: Sized + IActiveScriptProfilerControl3_Impl { @@ -1068,7 +1068,7 @@ impl IActiveScriptProfilerControl4_Vtbl { Self { base__: IActiveScriptProfilerControl3_Vtbl::new::(), SummarizeHeap: SummarizeHeap:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IActiveScriptProfilerControl5_Impl: Sized + IActiveScriptProfilerControl4_Impl { @@ -1091,7 +1091,7 @@ impl IActiveScriptProfilerControl5_Vtbl { Self { base__: IActiveScriptProfilerControl4_Vtbl::new::(), EnumHeap2: EnumHeap2:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IActiveScriptProfilerHeapEnum_Impl: Sized { @@ -1132,7 +1132,7 @@ impl IActiveScriptProfilerHeapEnum_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1169,7 +1169,7 @@ impl IActiveScriptProperty_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IActiveScriptSIPInfo_Impl: Sized { @@ -1192,7 +1192,7 @@ impl IActiveScriptSIPInfo_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetSIPOID: GetSIPOID:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1277,7 +1277,7 @@ impl IActiveScriptSite_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IActiveScriptSiteDebug32_Impl: Sized { @@ -1336,7 +1336,7 @@ impl IActiveScriptSiteDebug32_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IActiveScriptSiteDebug64_Impl: Sized { @@ -1395,7 +1395,7 @@ impl IActiveScriptSiteDebug64_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IActiveScriptSiteDebugEx_Impl: Sized { @@ -1421,7 +1421,7 @@ impl IActiveScriptSiteDebugEx_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IActiveScriptSiteInterruptPoll_Impl: Sized { @@ -1438,7 +1438,7 @@ impl IActiveScriptSiteInterruptPoll_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), QueryContinue: QueryContinue:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IActiveScriptSiteTraceInfo_Impl: Sized { @@ -1455,7 +1455,7 @@ impl IActiveScriptSiteTraceInfo_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), SendScriptTraceInfo: SendScriptTraceInfo:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IActiveScriptSiteUIControl_Impl: Sized { @@ -1478,7 +1478,7 @@ impl IActiveScriptSiteUIControl_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetUIBehavior: GetUIBehavior:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IActiveScriptSiteWindow_Impl: Sized { @@ -1511,7 +1511,7 @@ impl IActiveScriptSiteWindow_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IActiveScriptStats_Impl: Sized { @@ -1545,7 +1545,7 @@ impl IActiveScriptStats_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IActiveScriptStringCompare_Impl: Sized { @@ -1568,7 +1568,7 @@ impl IActiveScriptStringCompare_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), StrComp: StrComp:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IActiveScriptTraceInfo_Impl: Sized { @@ -1595,7 +1595,7 @@ impl IActiveScriptTraceInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1651,7 +1651,7 @@ impl IActiveScriptWinRTErrorDebug_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IApplicationDebugger_Impl: Sized { @@ -1712,7 +1712,7 @@ impl IApplicationDebugger_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IApplicationDebuggerUI_Impl: Sized { @@ -1739,7 +1739,7 @@ impl IApplicationDebuggerUI_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1760,7 +1760,7 @@ impl IBindEventHandler_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), BindHandler: BindHandler:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugApplication11032_Impl: Sized + IRemoteDebugApplication110_Impl { @@ -1800,7 +1800,7 @@ impl IDebugApplication11032_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDebugApplication11064_Impl: Sized + IRemoteDebugApplication110_Impl { @@ -1840,7 +1840,7 @@ impl IDebugApplication11064_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDebugApplication32_Impl: Sized + IRemoteDebugApplication_Impl { @@ -2029,7 +2029,7 @@ impl IDebugApplication32_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDebugApplication64_Impl: Sized + IRemoteDebugApplication_Impl { @@ -2218,7 +2218,7 @@ impl IDebugApplication64_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDebugApplicationNode_Impl: Sized + IDebugDocumentProvider_Impl { @@ -2285,7 +2285,7 @@ impl IDebugApplicationNode_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDebugApplicationNode100_Impl: Sized { @@ -2325,7 +2325,7 @@ impl IDebugApplicationNode100_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugApplicationNodeEvents_Impl: Sized { @@ -2366,7 +2366,7 @@ impl IDebugApplicationNodeEvents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugApplicationThread_Impl: Sized + IRemoteDebugApplicationThread_Impl { @@ -2414,7 +2414,7 @@ impl IDebugApplicationThread_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDebugApplicationThread11032_Impl: Sized { @@ -2473,7 +2473,7 @@ impl IDebugApplicationThread11032_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugApplicationThread11064_Impl: Sized { @@ -2532,7 +2532,7 @@ impl IDebugApplicationThread11064_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugApplicationThread64_Impl: Sized + IDebugApplicationThread_Impl { @@ -2552,7 +2552,7 @@ impl IDebugApplicationThread64_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDebugApplicationThreadEvents110_Impl: Sized { @@ -2593,7 +2593,7 @@ impl IDebugApplicationThreadEvents110_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugAsyncOperation_Impl: Sized { @@ -2647,7 +2647,7 @@ impl IDebugAsyncOperation_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugAsyncOperationCallBack_Impl: Sized { @@ -2664,7 +2664,7 @@ impl IDebugAsyncOperationCallBack_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), onComplete: onComplete:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugCodeContext_Impl: Sized { @@ -2697,7 +2697,7 @@ impl IDebugCodeContext_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugCookie_Impl: Sized { @@ -2714,7 +2714,7 @@ impl IDebugCookie_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), SetDebugCookie: SetDebugCookie:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugDocument_Impl: Sized + IDebugDocumentInfo_Impl {} @@ -2724,7 +2724,7 @@ impl IDebugDocument_Vtbl { Self { base__: IDebugDocumentInfo_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDebugDocumentContext_Impl: Sized { @@ -2763,7 +2763,7 @@ impl IDebugDocumentContext_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugDocumentHelper32_Impl: Sized { @@ -2920,7 +2920,7 @@ impl IDebugDocumentHelper32_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugDocumentHelper64_Impl: Sized { @@ -3077,7 +3077,7 @@ impl IDebugDocumentHelper64_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugDocumentHost_Impl: Sized { @@ -3144,7 +3144,7 @@ impl IDebugDocumentHost_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugDocumentInfo_Impl: Sized { @@ -3183,7 +3183,7 @@ impl IDebugDocumentInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugDocumentProvider_Impl: Sized + IDebugDocumentInfo_Impl { @@ -3206,7 +3206,7 @@ impl IDebugDocumentProvider_Vtbl { Self { base__: IDebugDocumentInfo_Vtbl::new::(), GetDocument: GetDocument:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDebugDocumentText_Impl: Sized + IDebugDocument_Impl { @@ -3286,7 +3286,7 @@ impl IDebugDocumentText_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDebugDocumentTextAuthor_Impl: Sized + IDebugDocumentText_Impl { @@ -3320,7 +3320,7 @@ impl IDebugDocumentTextAuthor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDebugDocumentTextEvents_Impl: Sized { @@ -3375,7 +3375,7 @@ impl IDebugDocumentTextEvents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugDocumentTextExternalAuthor_Impl: Sized { @@ -3415,7 +3415,7 @@ impl IDebugDocumentTextExternalAuthor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugExpression_Impl: Sized { @@ -3463,7 +3463,7 @@ impl IDebugExpression_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugExpressionCallBack_Impl: Sized { @@ -3480,7 +3480,7 @@ impl IDebugExpressionCallBack_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), onComplete: onComplete:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugExpressionContext_Impl: Sized { @@ -3513,7 +3513,7 @@ impl IDebugExpressionContext_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3569,7 +3569,7 @@ impl IDebugFormatter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3625,7 +3625,7 @@ impl IDebugHelper_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugSessionProvider_Impl: Sized { @@ -3642,7 +3642,7 @@ impl IDebugSessionProvider_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), StartDebugSession: StartDebugSession:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugStackFrame_Impl: Sized { @@ -3720,7 +3720,7 @@ impl IDebugStackFrame_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugStackFrame110_Impl: Sized + IDebugStackFrame_Impl { @@ -3759,7 +3759,7 @@ impl IDebugStackFrame110_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDebugStackFrameSniffer_Impl: Sized { @@ -3782,7 +3782,7 @@ impl IDebugStackFrameSniffer_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), EnumStackFrames: EnumStackFrames:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugStackFrameSnifferEx32_Impl: Sized + IDebugStackFrameSniffer_Impl { @@ -3805,7 +3805,7 @@ impl IDebugStackFrameSnifferEx32_Vtbl { Self { base__: IDebugStackFrameSniffer_Vtbl::new::(), EnumStackFramesEx32: EnumStackFramesEx32:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDebugStackFrameSnifferEx64_Impl: Sized + IDebugStackFrameSniffer_Impl { @@ -3828,7 +3828,7 @@ impl IDebugStackFrameSnifferEx64_Vtbl { Self { base__: IDebugStackFrameSniffer_Vtbl::new::(), EnumStackFramesEx64: EnumStackFramesEx64:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDebugSyncOperation_Impl: Sized { @@ -3874,7 +3874,7 @@ impl IDebugSyncOperation_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugThreadCall32_Impl: Sized { @@ -3891,7 +3891,7 @@ impl IDebugThreadCall32_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), ThreadCallHandler: ThreadCallHandler:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugThreadCall64_Impl: Sized { @@ -3908,7 +3908,7 @@ impl IDebugThreadCall64_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), ThreadCallHandler: ThreadCallHandler:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumDebugApplicationNodes_Impl: Sized { @@ -3955,7 +3955,7 @@ impl IEnumDebugApplicationNodes_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumDebugCodeContexts_Impl: Sized { @@ -4002,7 +4002,7 @@ impl IEnumDebugCodeContexts_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumDebugExpressionContexts_Impl: Sized { @@ -4049,7 +4049,7 @@ impl IEnumDebugExpressionContexts_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumDebugStackFrames_Impl: Sized { @@ -4096,7 +4096,7 @@ impl IEnumDebugStackFrames_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumDebugStackFrames64_Impl: Sized + IEnumDebugStackFrames_Impl { @@ -4113,7 +4113,7 @@ impl IEnumDebugStackFrames64_Vtbl { Self { base__: IEnumDebugStackFrames_Vtbl::new::(), Next64: Next64:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IEnumJsStackFrames_Impl: Sized { @@ -4136,7 +4136,7 @@ impl IEnumJsStackFrames_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Next: Next::, Reset: Reset:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumRemoteDebugApplicationThreads_Impl: Sized { @@ -4183,7 +4183,7 @@ impl IEnumRemoteDebugApplicationThreads_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumRemoteDebugApplications_Impl: Sized { @@ -4230,7 +4230,7 @@ impl IEnumRemoteDebugApplications_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IJsDebug_Impl: Sized { @@ -4253,7 +4253,7 @@ impl IJsDebug_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OpenVirtualProcess: OpenVirtualProcess:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IJsDebugBreakPoint_Impl: Sized { @@ -4307,7 +4307,7 @@ impl IJsDebugBreakPoint_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IJsDebugDataTarget_Impl: Sized { @@ -4413,7 +4413,7 @@ impl IJsDebugDataTarget_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IJsDebugFrame_Impl: Sized { @@ -4493,7 +4493,7 @@ impl IJsDebugFrame_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IJsDebugProcess_Impl: Sized { @@ -4552,7 +4552,7 @@ impl IJsDebugProcess_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IJsDebugProperty_Impl: Sized { @@ -4585,7 +4585,7 @@ impl IJsDebugProperty_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IJsDebugStackWalker_Impl: Sized { @@ -4608,7 +4608,7 @@ impl IJsDebugStackWalker_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetNext: GetNext:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IJsEnumDebugProperty_Impl: Sized { @@ -4641,7 +4641,7 @@ impl IJsEnumDebugProperty_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMachineDebugManager_Impl: Sized { @@ -4687,7 +4687,7 @@ impl IMachineDebugManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMachineDebugManagerCookie_Impl: Sized { @@ -4733,7 +4733,7 @@ impl IMachineDebugManagerCookie_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMachineDebugManagerEvents_Impl: Sized { @@ -4760,7 +4760,7 @@ impl IMachineDebugManagerEvents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IProcessDebugManager32_Impl: Sized { @@ -4832,7 +4832,7 @@ impl IProcessDebugManager32_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IProcessDebugManager64_Impl: Sized { @@ -4904,7 +4904,7 @@ impl IProcessDebugManager64_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IProvideExpressionContexts_Impl: Sized { @@ -4927,7 +4927,7 @@ impl IProvideExpressionContexts_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), EnumExpressionContexts: EnumExpressionContexts:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRemoteDebugApplication_Impl: Sized { @@ -5053,7 +5053,7 @@ impl IRemoteDebugApplication_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRemoteDebugApplication110_Impl: Sized { @@ -5099,7 +5099,7 @@ impl IRemoteDebugApplication110_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRemoteDebugApplicationEvents_Impl: Sized { @@ -5182,7 +5182,7 @@ impl IRemoteDebugApplicationEvents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRemoteDebugApplicationThread_Impl: Sized { @@ -5300,7 +5300,7 @@ impl IRemoteDebugApplicationThread_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRemoteDebugCriticalErrorEvent110_Impl: Sized { @@ -5317,7 +5317,7 @@ impl IRemoteDebugCriticalErrorEvent110_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetErrorInfo: GetErrorInfo:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRemoteDebugInfoEvent110_Impl: Sized { @@ -5334,7 +5334,7 @@ impl IRemoteDebugInfoEvent110_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetEventInfo: GetEventInfo:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -5452,7 +5452,7 @@ impl IScriptEntry_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IScriptInvocationContext_Impl: Sized { @@ -5504,7 +5504,7 @@ impl IScriptInvocationContext_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -5639,7 +5639,7 @@ impl IScriptNode_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -5716,7 +5716,7 @@ impl IScriptScriptlet_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -5773,7 +5773,7 @@ impl ISimpleConnectionPoint_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5794,7 +5794,7 @@ impl ITridentEventSink_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), FireEvent: FireEvent:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWebAppDiagnosticsObjectInitialization_Impl: Sized { @@ -5811,7 +5811,7 @@ impl IWebAppDiagnosticsObjectInitialization_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Initialize: Initialize:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWebAppDiagnosticsSetup_Impl: Sized { @@ -5844,6 +5844,6 @@ impl IWebAppDiagnosticsSetup_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 494a4cc8fe..09a5fa187d 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 @@ -1,6 +1,5 @@ -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct AsyncIDebugApplicationNodeEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(AsyncIDebugApplicationNodeEvents, AsyncIDebugApplicationNodeEvents_Vtbl, 0xa2e3aa3b_aa8d_4ebf_84cd_648b737b8c13); +::windows_core::imp::interface_hierarchy!(AsyncIDebugApplicationNodeEvents, ::windows_core::IUnknown); impl AsyncIDebugApplicationNodeEvents { pub unsafe fn Begin_onAddChild(&self, prddpchild: P0) -> ::windows_core::Result<()> where @@ -36,13 +35,6 @@ impl AsyncIDebugApplicationNodeEvents { (::windows_core::Interface::vtable(self).Finish_onAttach)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(AsyncIDebugApplicationNodeEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for AsyncIDebugApplicationNodeEvents { - type Vtable = AsyncIDebugApplicationNodeEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AsyncIDebugApplicationNodeEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa2e3aa3b_aa8d_4ebf_84cd_648b737b8c13); -} #[repr(C)] #[doc(hidden)] pub struct AsyncIDebugApplicationNodeEvents_Vtbl { @@ -56,9 +48,8 @@ pub struct AsyncIDebugApplicationNodeEvents_Vtbl { pub Begin_onAttach: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prddpparent: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Finish_onAttach: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActiveScript(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IActiveScript, IActiveScript_Vtbl, 0xbb1a2ae1_a4f9_11cf_8f20_00805f2cd064); +::windows_core::imp::interface_hierarchy!(IActiveScript, ::windows_core::IUnknown); impl IActiveScript { pub unsafe fn SetScriptSite(&self, pass: P0) -> ::windows_core::Result<()> where @@ -68,7 +59,7 @@ impl IActiveScript { } pub unsafe fn GetScriptSite(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetScriptSite)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -123,13 +114,6 @@ impl IActiveScript { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IActiveScript, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IActiveScript { - type Vtable = IActiveScript_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActiveScript { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbb1a2ae1_a4f9_11cf_8f20_00805f2cd064); -} #[repr(C)] #[doc(hidden)] pub struct IActiveScript_Vtbl { @@ -154,9 +138,8 @@ pub struct IActiveScript_Vtbl { InterruptScriptThread: usize, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppscript: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActiveScriptAuthor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IActiveScriptAuthor, IActiveScriptAuthor_Vtbl, 0x9c109da0_7006_11d1_b36c_00a0c911e8b2); +::windows_core::imp::interface_hierarchy!(IActiveScriptAuthor, ::windows_core::IUnknown); impl IActiveScriptAuthor { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -247,13 +230,6 @@ impl IActiveScriptAuthor { (::windows_core::Interface::vtable(self).IsCommitChar)(::windows_core::Interface::as_raw(self), ch, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IActiveScriptAuthor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IActiveScriptAuthor { - type Vtable = IActiveScriptAuthor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActiveScriptAuthor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9c109da0_7006_11d1_b36c_00a0c911e8b2); -} #[repr(C)] #[doc(hidden)] pub struct IActiveScriptAuthor_Vtbl { @@ -279,9 +255,8 @@ pub struct IActiveScriptAuthor_Vtbl { pub GetInfoFromContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszcode: ::windows_core::PCWSTR, cchcode: u32, ichcurrentposition: u32, dwlisttypesrequested: u32, pdwlisttypesprovided: *mut u32, pichlistanchorposition: *mut u32, pichfuncanchorposition: *mut u32, pmemid: *mut i32, picurrentparameter: *mut i32, ppunk: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub IsCommitChar: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ch: u16, pfcommit: *mut super::super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActiveScriptAuthorProcedure(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IActiveScriptAuthorProcedure, IActiveScriptAuthorProcedure_Vtbl, 0x7e2d4b70_bd9a_11d0_9336_00a0c90dcaa9); +::windows_core::imp::interface_hierarchy!(IActiveScriptAuthorProcedure, ::windows_core::IUnknown); impl IActiveScriptAuthorProcedure { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -297,13 +272,6 @@ impl IActiveScriptAuthorProcedure { (::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::imp::interface_hierarchy!(IActiveScriptAuthorProcedure, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IActiveScriptAuthorProcedure { - type Vtable = IActiveScriptAuthorProcedure_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActiveScriptAuthorProcedure { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7e2d4b70_bd9a_11d0_9336_00a0c90dcaa9); -} #[repr(C)] #[doc(hidden)] pub struct IActiveScriptAuthorProcedure_Vtbl { @@ -313,9 +281,8 @@ pub struct IActiveScriptAuthorProcedure_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] ParseProcedureText: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActiveScriptDebug32(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IActiveScriptDebug32, IActiveScriptDebug32_Vtbl, 0x51973c10_cb0c_11d0_b5c9_00a0244a0e7a); +::windows_core::imp::interface_hierarchy!(IActiveScriptDebug32, ::windows_core::IUnknown); impl IActiveScriptDebug32 { pub unsafe fn GetScriptTextAttributes(&self, pstrcode: P0, unumcodechars: u32, pstrdelimiter: P1, dwflags: u32, pattr: *mut u16) -> ::windows_core::Result<()> where @@ -336,13 +303,6 @@ impl IActiveScriptDebug32 { (::windows_core::Interface::vtable(self).EnumCodeContextsOfPosition)(::windows_core::Interface::as_raw(self), dwsourcecontext, ucharacteroffset, unumchars, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IActiveScriptDebug32, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IActiveScriptDebug32 { - type Vtable = IActiveScriptDebug32_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActiveScriptDebug32 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51973c10_cb0c_11d0_b5c9_00a0244a0e7a); -} #[repr(C)] #[doc(hidden)] pub struct IActiveScriptDebug32_Vtbl { @@ -351,9 +311,8 @@ pub struct IActiveScriptDebug32_Vtbl { pub GetScriptletTextAttributes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrcode: ::windows_core::PCWSTR, unumcodechars: u32, pstrdelimiter: ::windows_core::PCWSTR, dwflags: u32, pattr: *mut u16) -> ::windows_core::HRESULT, pub EnumCodeContextsOfPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwsourcecontext: u32, ucharacteroffset: u32, unumchars: u32, ppescc: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActiveScriptDebug64(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IActiveScriptDebug64, IActiveScriptDebug64_Vtbl, 0xbc437e23_f5b8_47f4_bb79_7d1ce5483b86); +::windows_core::imp::interface_hierarchy!(IActiveScriptDebug64, ::windows_core::IUnknown); impl IActiveScriptDebug64 { pub unsafe fn GetScriptTextAttributes(&self, pstrcode: P0, unumcodechars: u32, pstrdelimiter: P1, dwflags: u32, pattr: *mut u16) -> ::windows_core::Result<()> where @@ -374,13 +333,6 @@ impl IActiveScriptDebug64 { (::windows_core::Interface::vtable(self).EnumCodeContextsOfPosition)(::windows_core::Interface::as_raw(self), dwsourcecontext, ucharacteroffset, unumchars, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IActiveScriptDebug64, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IActiveScriptDebug64 { - type Vtable = IActiveScriptDebug64_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActiveScriptDebug64 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbc437e23_f5b8_47f4_bb79_7d1ce5483b86); -} #[repr(C)] #[doc(hidden)] pub struct IActiveScriptDebug64_Vtbl { @@ -389,9 +341,8 @@ pub struct IActiveScriptDebug64_Vtbl { pub GetScriptletTextAttributes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrcode: ::windows_core::PCWSTR, unumcodechars: u32, pstrdelimiter: ::windows_core::PCWSTR, dwflags: u32, pattr: *mut u16) -> ::windows_core::HRESULT, pub EnumCodeContextsOfPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwsourcecontext: u64, ucharacteroffset: u32, unumchars: u32, ppescc: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActiveScriptEncode(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IActiveScriptEncode, IActiveScriptEncode_Vtbl, 0xbb1a2ae3_a4f9_11cf_8f20_00805f2cd064); +::windows_core::imp::interface_hierarchy!(IActiveScriptEncode, ::windows_core::IUnknown); impl IActiveScriptEncode { pub unsafe fn EncodeSection(&self, pchin: P0, cchin: u32, pchout: ::windows_core::PWSTR, cchout: u32, pcchret: *mut u32) -> ::windows_core::Result<()> where @@ -409,13 +360,6 @@ impl IActiveScriptEncode { (::windows_core::Interface::vtable(self).GetEncodeProgId)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pbstrout)).ok() } } -::windows_core::imp::interface_hierarchy!(IActiveScriptEncode, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IActiveScriptEncode { - type Vtable = IActiveScriptEncode_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActiveScriptEncode { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbb1a2ae3_a4f9_11cf_8f20_00805f2cd064); -} #[repr(C)] #[doc(hidden)] pub struct IActiveScriptEncode_Vtbl { @@ -424,9 +368,8 @@ pub struct IActiveScriptEncode_Vtbl { pub DecodeScript: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pchin: ::windows_core::PCWSTR, cchin: u32, pchout: ::windows_core::PWSTR, cchout: u32, pcchret: *mut u32) -> ::windows_core::HRESULT, pub GetEncodeProgId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrout: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActiveScriptError(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IActiveScriptError, IActiveScriptError_Vtbl, 0xeae1ba61_a4ed_11cf_8f20_00805f2cd064); +::windows_core::imp::interface_hierarchy!(IActiveScriptError, ::windows_core::IUnknown); impl IActiveScriptError { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -441,13 +384,6 @@ impl IActiveScriptError { (::windows_core::Interface::vtable(self).GetSourceLineText)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IActiveScriptError, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IActiveScriptError { - type Vtable = IActiveScriptError_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActiveScriptError { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeae1ba61_a4ed_11cf_8f20_00805f2cd064); -} #[repr(C)] #[doc(hidden)] pub struct IActiveScriptError_Vtbl { @@ -459,9 +395,8 @@ pub struct IActiveScriptError_Vtbl { pub GetSourcePosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwsourcecontext: *mut u32, pullinenumber: *mut u32, plcharacterposition: *mut i32) -> ::windows_core::HRESULT, pub GetSourceLineText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsourceline: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActiveScriptError64(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IActiveScriptError64, IActiveScriptError64_Vtbl, 0xb21fb2a1_5b8f_4963_8c21_21450f84ed7f); +::windows_core::imp::interface_hierarchy!(IActiveScriptError64, ::windows_core::IUnknown, IActiveScriptError); impl IActiveScriptError64 { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -479,22 +414,14 @@ impl IActiveScriptError64 { (::windows_core::Interface::vtable(self).GetSourcePosition64)(::windows_core::Interface::as_raw(self), pdwsourcecontext, pullinenumber, plcharacterposition).ok() } } -::windows_core::imp::interface_hierarchy!(IActiveScriptError64, ::windows_core::IUnknown, IActiveScriptError); -unsafe impl ::windows_core::Interface for IActiveScriptError64 { - type Vtable = IActiveScriptError64_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActiveScriptError64 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb21fb2a1_5b8f_4963_8c21_21450f84ed7f); -} #[repr(C)] #[doc(hidden)] pub struct IActiveScriptError64_Vtbl { pub base__: IActiveScriptError_Vtbl, pub GetSourcePosition64: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwsourcecontext: *mut u64, pullinenumber: *mut u32, plcharacterposition: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActiveScriptErrorDebug(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IActiveScriptErrorDebug, IActiveScriptErrorDebug_Vtbl, 0x51973c12_cb0c_11d0_b5c9_00a0244a0e7a); +::windows_core::imp::interface_hierarchy!(IActiveScriptErrorDebug, ::windows_core::IUnknown, IActiveScriptError); impl IActiveScriptErrorDebug { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -517,13 +444,6 @@ impl IActiveScriptErrorDebug { (::windows_core::Interface::vtable(self).GetStackFrame)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IActiveScriptErrorDebug, ::windows_core::IUnknown, IActiveScriptError); -unsafe impl ::windows_core::Interface for IActiveScriptErrorDebug { - type Vtable = IActiveScriptErrorDebug_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActiveScriptErrorDebug { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51973c12_cb0c_11d0_b5c9_00a0244a0e7a); -} #[repr(C)] #[doc(hidden)] pub struct IActiveScriptErrorDebug_Vtbl { @@ -531,52 +451,35 @@ pub struct IActiveScriptErrorDebug_Vtbl { pub GetDocumentContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppssc: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetStackFrame: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppdsf: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActiveScriptErrorDebug110(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IActiveScriptErrorDebug110, IActiveScriptErrorDebug110_Vtbl, 0x516e42b6_89a8_4530_937b_5f0708431442); +::windows_core::imp::interface_hierarchy!(IActiveScriptErrorDebug110, ::windows_core::IUnknown); impl IActiveScriptErrorDebug110 { pub unsafe fn GetExceptionThrownKind(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetExceptionThrownKind)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IActiveScriptErrorDebug110, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IActiveScriptErrorDebug110 { - type Vtable = IActiveScriptErrorDebug110_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActiveScriptErrorDebug110 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x516e42b6_89a8_4530_937b_5f0708431442); -} #[repr(C)] #[doc(hidden)] pub struct IActiveScriptErrorDebug110_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetExceptionThrownKind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pexceptionkind: *mut SCRIPT_ERROR_DEBUG_EXCEPTION_THROWN_KIND) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActiveScriptGarbageCollector(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IActiveScriptGarbageCollector, IActiveScriptGarbageCollector_Vtbl, 0x6aa2c4a0_2b53_11d4_a2a0_00104bd35090); +::windows_core::imp::interface_hierarchy!(IActiveScriptGarbageCollector, ::windows_core::IUnknown); impl IActiveScriptGarbageCollector { pub unsafe fn CollectGarbage(&self, scriptgctype: SCRIPTGCTYPE) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).CollectGarbage)(::windows_core::Interface::as_raw(self), scriptgctype).ok() } } -::windows_core::imp::interface_hierarchy!(IActiveScriptGarbageCollector, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IActiveScriptGarbageCollector { - type Vtable = IActiveScriptGarbageCollector_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActiveScriptGarbageCollector { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6aa2c4a0_2b53_11d4_a2a0_00104bd35090); -} #[repr(C)] #[doc(hidden)] pub struct IActiveScriptGarbageCollector_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub CollectGarbage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, scriptgctype: SCRIPTGCTYPE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActiveScriptHostEncode(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IActiveScriptHostEncode, IActiveScriptHostEncode_Vtbl, 0xbee9b76e_cfe3_11d1_b747_00c04fc2b085); +::windows_core::imp::interface_hierarchy!(IActiveScriptHostEncode, ::windows_core::IUnknown); impl IActiveScriptHostEncode { pub unsafe fn EncodeScriptHostFile(&self, bstrinfile: P0, pbstroutfile: *mut ::windows_core::BSTR, cflags: u32, bstrdefaultlang: P1) -> ::windows_core::Result<()> where @@ -586,22 +489,14 @@ impl IActiveScriptHostEncode { (::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::imp::interface_hierarchy!(IActiveScriptHostEncode, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IActiveScriptHostEncode { - type Vtable = IActiveScriptHostEncode_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActiveScriptHostEncode { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbee9b76e_cfe3_11d1_b747_00c04fc2b085); -} #[repr(C)] #[doc(hidden)] pub struct IActiveScriptHostEncode_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub EncodeScriptHostFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrinfile: ::std::mem::MaybeUninit<::windows_core::BSTR>, pbstroutfile: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>, cflags: u32, bstrdefaultlang: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActiveScriptParse32(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IActiveScriptParse32, IActiveScriptParse32_Vtbl, 0xbb1a2ae2_a4f9_11cf_8f20_00805f2cd064); +::windows_core::imp::interface_hierarchy!(IActiveScriptParse32, ::windows_core::IUnknown); impl IActiveScriptParse32 { pub unsafe fn InitNew(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).InitNew)(::windows_core::Interface::as_raw(self)).ok() @@ -631,13 +526,6 @@ impl IActiveScriptParse32 { (::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, pvarresult, pexcepinfo).ok() } } -::windows_core::imp::interface_hierarchy!(IActiveScriptParse32, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IActiveScriptParse32 { - type Vtable = IActiveScriptParse32_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActiveScriptParse32 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbb1a2ae2_a4f9_11cf_8f20_00805f2cd064); -} #[repr(C)] #[doc(hidden)] pub struct IActiveScriptParse32_Vtbl { @@ -652,9 +540,8 @@ pub struct IActiveScriptParse32_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] ParseScriptText: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActiveScriptParse64(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IActiveScriptParse64, IActiveScriptParse64_Vtbl, 0xc7ef7658_e1ee_480e_97ea_d52cb4d76d17); +::windows_core::imp::interface_hierarchy!(IActiveScriptParse64, ::windows_core::IUnknown); impl IActiveScriptParse64 { pub unsafe fn InitNew(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).InitNew)(::windows_core::Interface::as_raw(self)).ok() @@ -684,13 +571,6 @@ impl IActiveScriptParse64 { (::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, pvarresult, pexcepinfo).ok() } } -::windows_core::imp::interface_hierarchy!(IActiveScriptParse64, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IActiveScriptParse64 { - type Vtable = IActiveScriptParse64_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActiveScriptParse64 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc7ef7658_e1ee_480e_97ea_d52cb4d76d17); -} #[repr(C)] #[doc(hidden)] pub struct IActiveScriptParse64_Vtbl { @@ -705,9 +585,8 @@ pub struct IActiveScriptParse64_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] ParseScriptText: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActiveScriptParseProcedure2_32(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IActiveScriptParseProcedure2_32, IActiveScriptParseProcedure2_32_Vtbl, 0x71ee5b20_fb04_11d1_b3a8_00a0c911e8b2); +::windows_core::imp::interface_hierarchy!(IActiveScriptParseProcedure2_32, ::windows_core::IUnknown, IActiveScriptParseProcedure32); impl IActiveScriptParseProcedure2_32 { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -724,21 +603,13 @@ impl IActiveScriptParseProcedure2_32 { (::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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IActiveScriptParseProcedure2_32, ::windows_core::IUnknown, IActiveScriptParseProcedure32); -unsafe impl ::windows_core::Interface for IActiveScriptParseProcedure2_32 { - type Vtable = IActiveScriptParseProcedure2_32_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActiveScriptParseProcedure2_32 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x71ee5b20_fb04_11d1_b3a8_00a0c911e8b2); -} #[repr(C)] #[doc(hidden)] pub struct IActiveScriptParseProcedure2_32_Vtbl { pub base__: IActiveScriptParseProcedure32_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActiveScriptParseProcedure2_64(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IActiveScriptParseProcedure2_64, IActiveScriptParseProcedure2_64_Vtbl, 0xfe7c4271_210c_448d_9f54_76dab7047b28); +::windows_core::imp::interface_hierarchy!(IActiveScriptParseProcedure2_64, ::windows_core::IUnknown, IActiveScriptParseProcedure64); impl IActiveScriptParseProcedure2_64 { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -755,21 +626,13 @@ impl IActiveScriptParseProcedure2_64 { (::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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IActiveScriptParseProcedure2_64, ::windows_core::IUnknown, IActiveScriptParseProcedure64); -unsafe impl ::windows_core::Interface for IActiveScriptParseProcedure2_64 { - type Vtable = IActiveScriptParseProcedure2_64_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActiveScriptParseProcedure2_64 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfe7c4271_210c_448d_9f54_76dab7047b28); -} #[repr(C)] #[doc(hidden)] pub struct IActiveScriptParseProcedure2_64_Vtbl { pub base__: IActiveScriptParseProcedure64_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActiveScriptParseProcedure32(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IActiveScriptParseProcedure32, IActiveScriptParseProcedure32_Vtbl, 0xaa5b6a80_b834_11d0_932f_00a0c90dcaa9); +::windows_core::imp::interface_hierarchy!(IActiveScriptParseProcedure32, ::windows_core::IUnknown); impl IActiveScriptParseProcedure32 { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -786,13 +649,6 @@ impl IActiveScriptParseProcedure32 { (::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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IActiveScriptParseProcedure32, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IActiveScriptParseProcedure32 { - type Vtable = IActiveScriptParseProcedure32_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActiveScriptParseProcedure32 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaa5b6a80_b834_11d0_932f_00a0c90dcaa9); -} #[repr(C)] #[doc(hidden)] pub struct IActiveScriptParseProcedure32_Vtbl { @@ -802,9 +658,8 @@ pub struct IActiveScriptParseProcedure32_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] ParseProcedureText: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActiveScriptParseProcedure64(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IActiveScriptParseProcedure64, IActiveScriptParseProcedure64_Vtbl, 0xc64713b6_e029_4cc5_9200_438b72890b6a); +::windows_core::imp::interface_hierarchy!(IActiveScriptParseProcedure64, ::windows_core::IUnknown); impl IActiveScriptParseProcedure64 { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -821,13 +676,6 @@ impl IActiveScriptParseProcedure64 { (::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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IActiveScriptParseProcedure64, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IActiveScriptParseProcedure64 { - type Vtable = IActiveScriptParseProcedure64_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActiveScriptParseProcedure64 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc64713b6_e029_4cc5_9200_438b72890b6a); -} #[repr(C)] #[doc(hidden)] pub struct IActiveScriptParseProcedure64_Vtbl { @@ -837,9 +685,8 @@ pub struct IActiveScriptParseProcedure64_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] ParseProcedureText: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActiveScriptParseProcedureOld32(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IActiveScriptParseProcedureOld32, IActiveScriptParseProcedureOld32_Vtbl, 0x1cff0050_6fdd_11d0_9328_00a0c90dcaa9); +::windows_core::imp::interface_hierarchy!(IActiveScriptParseProcedureOld32, ::windows_core::IUnknown); impl IActiveScriptParseProcedureOld32 { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -855,13 +702,6 @@ impl IActiveScriptParseProcedureOld32 { (::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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IActiveScriptParseProcedureOld32, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IActiveScriptParseProcedureOld32 { - type Vtable = IActiveScriptParseProcedureOld32_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActiveScriptParseProcedureOld32 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1cff0050_6fdd_11d0_9328_00a0c90dcaa9); -} #[repr(C)] #[doc(hidden)] pub struct IActiveScriptParseProcedureOld32_Vtbl { @@ -871,9 +711,8 @@ pub struct IActiveScriptParseProcedureOld32_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] ParseProcedureText: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActiveScriptParseProcedureOld64(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IActiveScriptParseProcedureOld64, IActiveScriptParseProcedureOld64_Vtbl, 0x21f57128_08c9_4638_ba12_22d15d88dc5c); +::windows_core::imp::interface_hierarchy!(IActiveScriptParseProcedureOld64, ::windows_core::IUnknown); impl IActiveScriptParseProcedureOld64 { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -889,13 +728,6 @@ impl IActiveScriptParseProcedureOld64 { (::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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IActiveScriptParseProcedureOld64, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IActiveScriptParseProcedureOld64 { - type Vtable = IActiveScriptParseProcedureOld64_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActiveScriptParseProcedureOld64 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x21f57128_08c9_4638_ba12_22d15d88dc5c); -} #[repr(C)] #[doc(hidden)] pub struct IActiveScriptParseProcedureOld64_Vtbl { @@ -905,9 +737,8 @@ pub struct IActiveScriptParseProcedureOld64_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] ParseProcedureText: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActiveScriptProfilerCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IActiveScriptProfilerCallback, IActiveScriptProfilerCallback_Vtbl, 0x740eca23_7d9d_42e5_ba9d_f8b24b1c7a9b); +::windows_core::imp::interface_hierarchy!(IActiveScriptProfilerCallback, ::windows_core::IUnknown); impl IActiveScriptProfilerCallback { pub unsafe fn Initialize(&self, dwcontext: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Initialize)(::windows_core::Interface::as_raw(self), dwcontext).ok() @@ -936,13 +767,6 @@ impl IActiveScriptProfilerCallback { (::windows_core::Interface::vtable(self).OnFunctionExit)(::windows_core::Interface::as_raw(self), scriptid, functionid).ok() } } -::windows_core::imp::interface_hierarchy!(IActiveScriptProfilerCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IActiveScriptProfilerCallback { - type Vtable = IActiveScriptProfilerCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActiveScriptProfilerCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x740eca23_7d9d_42e5_ba9d_f8b24b1c7a9b); -} #[repr(C)] #[doc(hidden)] pub struct IActiveScriptProfilerCallback_Vtbl { @@ -954,9 +778,8 @@ pub struct IActiveScriptProfilerCallback_Vtbl { pub OnFunctionEnter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, scriptid: i32, functionid: i32) -> ::windows_core::HRESULT, pub OnFunctionExit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, scriptid: i32, functionid: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActiveScriptProfilerCallback2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IActiveScriptProfilerCallback2, IActiveScriptProfilerCallback2_Vtbl, 0x31b7f8ad_a637_409c_b22f_040995b6103d); +::windows_core::imp::interface_hierarchy!(IActiveScriptProfilerCallback2, ::windows_core::IUnknown, IActiveScriptProfilerCallback); impl IActiveScriptProfilerCallback2 { pub unsafe fn Initialize(&self, dwcontext: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.Initialize)(::windows_core::Interface::as_raw(self), dwcontext).ok() @@ -997,13 +820,6 @@ impl IActiveScriptProfilerCallback2 { (::windows_core::Interface::vtable(self).OnFunctionExitByName)(::windows_core::Interface::as_raw(self), pwszfunctionname.into_param().abi(), r#type).ok() } } -::windows_core::imp::interface_hierarchy!(IActiveScriptProfilerCallback2, ::windows_core::IUnknown, IActiveScriptProfilerCallback); -unsafe impl ::windows_core::Interface for IActiveScriptProfilerCallback2 { - type Vtable = IActiveScriptProfilerCallback2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActiveScriptProfilerCallback2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x31b7f8ad_a637_409c_b22f_040995b6103d); -} #[repr(C)] #[doc(hidden)] pub struct IActiveScriptProfilerCallback2_Vtbl { @@ -1011,9 +827,8 @@ pub struct IActiveScriptProfilerCallback2_Vtbl { pub OnFunctionEnterByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwszfunctionname: ::windows_core::PCWSTR, r#type: PROFILER_SCRIPT_TYPE) -> ::windows_core::HRESULT, pub OnFunctionExitByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwszfunctionname: ::windows_core::PCWSTR, r#type: PROFILER_SCRIPT_TYPE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActiveScriptProfilerCallback3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IActiveScriptProfilerCallback3, IActiveScriptProfilerCallback3_Vtbl, 0x6ac5ad25_2037_4687_91df_b59979d93d73); +::windows_core::imp::interface_hierarchy!(IActiveScriptProfilerCallback3, ::windows_core::IUnknown, IActiveScriptProfilerCallback, IActiveScriptProfilerCallback2); impl IActiveScriptProfilerCallback3 { pub unsafe fn Initialize(&self, dwcontext: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.Initialize)(::windows_core::Interface::as_raw(self), dwcontext).ok() @@ -1057,22 +872,14 @@ impl IActiveScriptProfilerCallback3 { (::windows_core::Interface::vtable(self).SetWebWorkerId)(::windows_core::Interface::as_raw(self), webworkerid).ok() } } -::windows_core::imp::interface_hierarchy!(IActiveScriptProfilerCallback3, ::windows_core::IUnknown, IActiveScriptProfilerCallback, IActiveScriptProfilerCallback2); -unsafe impl ::windows_core::Interface for IActiveScriptProfilerCallback3 { - type Vtable = IActiveScriptProfilerCallback3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActiveScriptProfilerCallback3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6ac5ad25_2037_4687_91df_b59979d93d73); -} #[repr(C)] #[doc(hidden)] pub struct IActiveScriptProfilerCallback3_Vtbl { pub base__: IActiveScriptProfilerCallback2_Vtbl, pub SetWebWorkerId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, webworkerid: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActiveScriptProfilerControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IActiveScriptProfilerControl, IActiveScriptProfilerControl_Vtbl, 0x784b5ff0_69b0_47d1_a7dc_2518f4230e90); +::windows_core::imp::interface_hierarchy!(IActiveScriptProfilerControl, ::windows_core::IUnknown); impl IActiveScriptProfilerControl { pub unsafe fn StartProfiling(&self, clsidprofilerobject: *const ::windows_core::GUID, dweventmask: u32, dwcontext: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).StartProfiling)(::windows_core::Interface::as_raw(self), clsidprofilerobject, dweventmask, dwcontext).ok() @@ -1084,13 +891,6 @@ impl IActiveScriptProfilerControl { (::windows_core::Interface::vtable(self).StopProfiling)(::windows_core::Interface::as_raw(self), hrshutdownreason).ok() } } -::windows_core::imp::interface_hierarchy!(IActiveScriptProfilerControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IActiveScriptProfilerControl { - type Vtable = IActiveScriptProfilerControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActiveScriptProfilerControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x784b5ff0_69b0_47d1_a7dc_2518f4230e90); -} #[repr(C)] #[doc(hidden)] pub struct IActiveScriptProfilerControl_Vtbl { @@ -1099,9 +899,8 @@ pub struct IActiveScriptProfilerControl_Vtbl { pub SetProfilerEventMask: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dweventmask: u32) -> ::windows_core::HRESULT, pub StopProfiling: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hrshutdownreason: ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActiveScriptProfilerControl2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IActiveScriptProfilerControl2, IActiveScriptProfilerControl2_Vtbl, 0x47810165_498f_40be_94f1_653557e9e7da); +::windows_core::imp::interface_hierarchy!(IActiveScriptProfilerControl2, ::windows_core::IUnknown, IActiveScriptProfilerControl); impl IActiveScriptProfilerControl2 { pub unsafe fn StartProfiling(&self, clsidprofilerobject: *const ::windows_core::GUID, dweventmask: u32, dwcontext: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.StartProfiling)(::windows_core::Interface::as_raw(self), clsidprofilerobject, dweventmask, dwcontext).ok() @@ -1119,13 +918,6 @@ impl IActiveScriptProfilerControl2 { (::windows_core::Interface::vtable(self).PrepareProfilerStop)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IActiveScriptProfilerControl2, ::windows_core::IUnknown, IActiveScriptProfilerControl); -unsafe impl ::windows_core::Interface for IActiveScriptProfilerControl2 { - type Vtable = IActiveScriptProfilerControl2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActiveScriptProfilerControl2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x47810165_498f_40be_94f1_653557e9e7da); -} #[repr(C)] #[doc(hidden)] pub struct IActiveScriptProfilerControl2_Vtbl { @@ -1133,9 +925,8 @@ pub struct IActiveScriptProfilerControl2_Vtbl { pub CompleteProfilerStart: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub PrepareProfilerStop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActiveScriptProfilerControl3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IActiveScriptProfilerControl3, IActiveScriptProfilerControl3_Vtbl, 0x0b403015_f381_4023_a5d0_6fed076de716); +::windows_core::imp::interface_hierarchy!(IActiveScriptProfilerControl3, ::windows_core::IUnknown, IActiveScriptProfilerControl, IActiveScriptProfilerControl2); impl IActiveScriptProfilerControl3 { pub unsafe fn StartProfiling(&self, clsidprofilerobject: *const ::windows_core::GUID, dweventmask: u32, dwcontext: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.StartProfiling)(::windows_core::Interface::as_raw(self), clsidprofilerobject, dweventmask, dwcontext).ok() @@ -1157,22 +948,14 @@ impl IActiveScriptProfilerControl3 { (::windows_core::Interface::vtable(self).EnumHeap)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IActiveScriptProfilerControl3, ::windows_core::IUnknown, IActiveScriptProfilerControl, IActiveScriptProfilerControl2); -unsafe impl ::windows_core::Interface for IActiveScriptProfilerControl3 { - type Vtable = IActiveScriptProfilerControl3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActiveScriptProfilerControl3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0b403015_f381_4023_a5d0_6fed076de716); -} #[repr(C)] #[doc(hidden)] pub struct IActiveScriptProfilerControl3_Vtbl { pub base__: IActiveScriptProfilerControl2_Vtbl, pub EnumHeap: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActiveScriptProfilerControl4(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IActiveScriptProfilerControl4, IActiveScriptProfilerControl4_Vtbl, 0x160f94fd_9dbc_40d4_9eac_2b71db3132f4); +::windows_core::imp::interface_hierarchy!(IActiveScriptProfilerControl4, ::windows_core::IUnknown, IActiveScriptProfilerControl, IActiveScriptProfilerControl2, IActiveScriptProfilerControl3); impl IActiveScriptProfilerControl4 { pub unsafe fn StartProfiling(&self, clsidprofilerobject: *const ::windows_core::GUID, dweventmask: u32, dwcontext: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.StartProfiling)(::windows_core::Interface::as_raw(self), clsidprofilerobject, dweventmask, dwcontext).ok() @@ -1197,22 +980,14 @@ impl IActiveScriptProfilerControl4 { (::windows_core::Interface::vtable(self).SummarizeHeap)(::windows_core::Interface::as_raw(self), heapsummary).ok() } } -::windows_core::imp::interface_hierarchy!(IActiveScriptProfilerControl4, ::windows_core::IUnknown, IActiveScriptProfilerControl, IActiveScriptProfilerControl2, IActiveScriptProfilerControl3); -unsafe impl ::windows_core::Interface for IActiveScriptProfilerControl4 { - type Vtable = IActiveScriptProfilerControl4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActiveScriptProfilerControl4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x160f94fd_9dbc_40d4_9eac_2b71db3132f4); -} #[repr(C)] #[doc(hidden)] pub struct IActiveScriptProfilerControl4_Vtbl { pub base__: IActiveScriptProfilerControl3_Vtbl, pub SummarizeHeap: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, heapsummary: *mut PROFILER_HEAP_SUMMARY) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActiveScriptProfilerControl5(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IActiveScriptProfilerControl5, IActiveScriptProfilerControl5_Vtbl, 0x1c01a2d1_8f0f_46a5_9720_0d7ed2c62f0a); +::windows_core::imp::interface_hierarchy!(IActiveScriptProfilerControl5, ::windows_core::IUnknown, IActiveScriptProfilerControl, IActiveScriptProfilerControl2, IActiveScriptProfilerControl3, IActiveScriptProfilerControl4); impl IActiveScriptProfilerControl5 { pub unsafe fn StartProfiling(&self, clsidprofilerobject: *const ::windows_core::GUID, dweventmask: u32, dwcontext: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.StartProfiling)(::windows_core::Interface::as_raw(self), clsidprofilerobject, dweventmask, dwcontext).ok() @@ -1241,22 +1016,14 @@ impl IActiveScriptProfilerControl5 { (::windows_core::Interface::vtable(self).EnumHeap2)(::windows_core::Interface::as_raw(self), enumflags, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IActiveScriptProfilerControl5, ::windows_core::IUnknown, IActiveScriptProfilerControl, IActiveScriptProfilerControl2, IActiveScriptProfilerControl3, IActiveScriptProfilerControl4); -unsafe impl ::windows_core::Interface for IActiveScriptProfilerControl5 { - type Vtable = IActiveScriptProfilerControl5_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActiveScriptProfilerControl5 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1c01a2d1_8f0f_46a5_9720_0d7ed2c62f0a); -} #[repr(C)] #[doc(hidden)] pub struct IActiveScriptProfilerControl5_Vtbl { pub base__: IActiveScriptProfilerControl4_Vtbl, pub EnumHeap2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enumflags: PROFILER_HEAP_ENUM_FLAGS, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActiveScriptProfilerHeapEnum(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IActiveScriptProfilerHeapEnum, IActiveScriptProfilerHeapEnum_Vtbl, 0x32e4694e_0d37_419b_b93d_fa20ded6e8ea); +::windows_core::imp::interface_hierarchy!(IActiveScriptProfilerHeapEnum, ::windows_core::IUnknown); impl IActiveScriptProfilerHeapEnum { pub unsafe fn Next(&self, heapobjects: &mut [*mut PROFILER_HEAP_OBJECT], pceltfetched: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), heapobjects.len().try_into().unwrap(), ::core::mem::transmute(heapobjects.as_ptr()), pceltfetched).ok() @@ -1271,13 +1038,6 @@ impl IActiveScriptProfilerHeapEnum { (::windows_core::Interface::vtable(self).GetNameIdMap)(::windows_core::Interface::as_raw(self), pnamelist, pcelt).ok() } } -::windows_core::imp::interface_hierarchy!(IActiveScriptProfilerHeapEnum, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IActiveScriptProfilerHeapEnum { - type Vtable = IActiveScriptProfilerHeapEnum_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActiveScriptProfilerHeapEnum { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x32e4694e_0d37_419b_b93d_fa20ded6e8ea); -} #[repr(C)] #[doc(hidden)] pub struct IActiveScriptProfilerHeapEnum_Vtbl { @@ -1287,9 +1047,8 @@ pub struct IActiveScriptProfilerHeapEnum_Vtbl { pub FreeObjectAndOptionalInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, celt: u32, heapobjects: *const *const PROFILER_HEAP_OBJECT) -> ::windows_core::HRESULT, pub GetNameIdMap: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pnamelist: *mut *mut *mut ::windows_core::PCWSTR, pcelt: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActiveScriptProperty(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IActiveScriptProperty, IActiveScriptProperty_Vtbl, 0x4954e0d0_fbc7_11d1_8410_006008c3fbfc); +::windows_core::imp::interface_hierarchy!(IActiveScriptProperty, ::windows_core::IUnknown); impl IActiveScriptProperty { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -1303,13 +1062,6 @@ impl IActiveScriptProperty { (::windows_core::Interface::vtable(self).SetProperty)(::windows_core::Interface::as_raw(self), dwproperty, pvarindex, pvarvalue).ok() } } -::windows_core::imp::interface_hierarchy!(IActiveScriptProperty, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IActiveScriptProperty { - type Vtable = IActiveScriptProperty_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActiveScriptProperty { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4954e0d0_fbc7_11d1_8410_006008c3fbfc); -} #[repr(C)] #[doc(hidden)] pub struct IActiveScriptProperty_Vtbl { @@ -1323,31 +1075,22 @@ pub struct IActiveScriptProperty_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] SetProperty: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActiveScriptSIPInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IActiveScriptSIPInfo, IActiveScriptSIPInfo_Vtbl, 0x764651d0_38de_11d4_a2a3_00104bd35090); +::windows_core::imp::interface_hierarchy!(IActiveScriptSIPInfo, ::windows_core::IUnknown); impl IActiveScriptSIPInfo { pub unsafe fn GetSIPOID(&self) -> ::windows_core::Result<::windows_core::GUID> { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetSIPOID)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IActiveScriptSIPInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IActiveScriptSIPInfo { - type Vtable = IActiveScriptSIPInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActiveScriptSIPInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x764651d0_38de_11d4_a2a3_00104bd35090); -} #[repr(C)] #[doc(hidden)] pub struct IActiveScriptSIPInfo_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetSIPOID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, poid_sip: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActiveScriptSite(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IActiveScriptSite, IActiveScriptSite_Vtbl, 0xdb01a1e3_a42b_11cf_8f20_00805f2cd064); +::windows_core::imp::interface_hierarchy!(IActiveScriptSite, ::windows_core::IUnknown); impl IActiveScriptSite { pub unsafe fn GetLCID(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1386,13 +1129,6 @@ impl IActiveScriptSite { (::windows_core::Interface::vtable(self).OnLeaveScript)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IActiveScriptSite, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IActiveScriptSite { - type Vtable = IActiveScriptSite_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActiveScriptSite { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdb01a1e3_a42b_11cf_8f20_00805f2cd064); -} #[repr(C)] #[doc(hidden)] pub struct IActiveScriptSite_Vtbl { @@ -1412,9 +1148,8 @@ pub struct IActiveScriptSite_Vtbl { pub OnEnterScript: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub OnLeaveScript: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActiveScriptSiteDebug32(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IActiveScriptSiteDebug32, IActiveScriptSiteDebug32_Vtbl, 0x51973c11_cb0c_11d0_b5c9_00a0244a0e7a); +::windows_core::imp::interface_hierarchy!(IActiveScriptSiteDebug32, ::windows_core::IUnknown); impl IActiveScriptSiteDebug32 { pub unsafe fn GetDocumentContextFromPosition(&self, dwsourcecontext: u32, ucharacteroffset: u32, unumchars: u32) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1435,13 +1170,6 @@ impl IActiveScriptSiteDebug32 { (::windows_core::Interface::vtable(self).OnScriptErrorDebug)(::windows_core::Interface::as_raw(self), perrordebug.into_param().abi(), pfenterdebugger, pfcallonscripterrorwhencontinuing).ok() } } -::windows_core::imp::interface_hierarchy!(IActiveScriptSiteDebug32, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IActiveScriptSiteDebug32 { - type Vtable = IActiveScriptSiteDebug32_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActiveScriptSiteDebug32 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51973c11_cb0c_11d0_b5c9_00a0244a0e7a); -} #[repr(C)] #[doc(hidden)] pub struct IActiveScriptSiteDebug32_Vtbl { @@ -1451,9 +1179,8 @@ pub struct IActiveScriptSiteDebug32_Vtbl { pub GetRootApplicationNode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppdanroot: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub OnScriptErrorDebug: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, perrordebug: *mut ::core::ffi::c_void, pfenterdebugger: *mut super::super::super::super::Foundation::BOOL, pfcallonscripterrorwhencontinuing: *mut super::super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActiveScriptSiteDebug64(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IActiveScriptSiteDebug64, IActiveScriptSiteDebug64_Vtbl, 0xd6b96b0a_7463_402c_92ac_89984226942f); +::windows_core::imp::interface_hierarchy!(IActiveScriptSiteDebug64, ::windows_core::IUnknown); impl IActiveScriptSiteDebug64 { pub unsafe fn GetDocumentContextFromPosition(&self, dwsourcecontext: u64, ucharacteroffset: u32, unumchars: u32) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1474,13 +1201,6 @@ impl IActiveScriptSiteDebug64 { (::windows_core::Interface::vtable(self).OnScriptErrorDebug)(::windows_core::Interface::as_raw(self), perrordebug.into_param().abi(), pfenterdebugger, pfcallonscripterrorwhencontinuing).ok() } } -::windows_core::imp::interface_hierarchy!(IActiveScriptSiteDebug64, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IActiveScriptSiteDebug64 { - type Vtable = IActiveScriptSiteDebug64_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActiveScriptSiteDebug64 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd6b96b0a_7463_402c_92ac_89984226942f); -} #[repr(C)] #[doc(hidden)] pub struct IActiveScriptSiteDebug64_Vtbl { @@ -1490,9 +1210,8 @@ pub struct IActiveScriptSiteDebug64_Vtbl { pub GetRootApplicationNode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppdanroot: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub OnScriptErrorDebug: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, perrordebug: *mut ::core::ffi::c_void, pfenterdebugger: *mut super::super::super::super::Foundation::BOOL, pfcallonscripterrorwhencontinuing: *mut super::super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActiveScriptSiteDebugEx(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IActiveScriptSiteDebugEx, IActiveScriptSiteDebugEx_Vtbl, 0xbb722ccb_6ad2_41c6_b780_af9c03ee69f5); +::windows_core::imp::interface_hierarchy!(IActiveScriptSiteDebugEx, ::windows_core::IUnknown); impl IActiveScriptSiteDebugEx { pub unsafe fn OnCanNotJITScriptErrorDebug(&self, perrordebug: P0) -> ::windows_core::Result where @@ -1502,86 +1221,54 @@ impl IActiveScriptSiteDebugEx { (::windows_core::Interface::vtable(self).OnCanNotJITScriptErrorDebug)(::windows_core::Interface::as_raw(self), perrordebug.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IActiveScriptSiteDebugEx, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IActiveScriptSiteDebugEx { - type Vtable = IActiveScriptSiteDebugEx_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActiveScriptSiteDebugEx { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbb722ccb_6ad2_41c6_b780_af9c03ee69f5); -} #[repr(C)] #[doc(hidden)] pub struct IActiveScriptSiteDebugEx_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnCanNotJITScriptErrorDebug: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, perrordebug: *mut ::core::ffi::c_void, pfcallonscripterrorwhencontinuing: *mut super::super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActiveScriptSiteInterruptPoll(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IActiveScriptSiteInterruptPoll, IActiveScriptSiteInterruptPoll_Vtbl, 0x539698a0_cdca_11cf_a5eb_00aa0047a063); +::windows_core::imp::interface_hierarchy!(IActiveScriptSiteInterruptPoll, ::windows_core::IUnknown); impl IActiveScriptSiteInterruptPoll { pub unsafe fn QueryContinue(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).QueryContinue)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IActiveScriptSiteInterruptPoll, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IActiveScriptSiteInterruptPoll { - type Vtable = IActiveScriptSiteInterruptPoll_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActiveScriptSiteInterruptPoll { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x539698a0_cdca_11cf_a5eb_00aa0047a063); -} #[repr(C)] #[doc(hidden)] pub struct IActiveScriptSiteInterruptPoll_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub QueryContinue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActiveScriptSiteTraceInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IActiveScriptSiteTraceInfo, IActiveScriptSiteTraceInfo_Vtbl, 0x4b7272ae_1955_4bfe_98b0_780621888569); +::windows_core::imp::interface_hierarchy!(IActiveScriptSiteTraceInfo, ::windows_core::IUnknown); impl IActiveScriptSiteTraceInfo { pub unsafe fn SendScriptTraceInfo(&self, stieventtype: SCRIPTTRACEINFO, guidcontextid: ::windows_core::GUID, dwscriptcontextcookie: u32, lscriptstatementstart: i32, lscriptstatementend: i32, dwreserved: u64) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SendScriptTraceInfo)(::windows_core::Interface::as_raw(self), stieventtype, ::core::mem::transmute(guidcontextid), dwscriptcontextcookie, lscriptstatementstart, lscriptstatementend, dwreserved).ok() } } -::windows_core::imp::interface_hierarchy!(IActiveScriptSiteTraceInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IActiveScriptSiteTraceInfo { - type Vtable = IActiveScriptSiteTraceInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActiveScriptSiteTraceInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4b7272ae_1955_4bfe_98b0_780621888569); -} #[repr(C)] #[doc(hidden)] pub struct IActiveScriptSiteTraceInfo_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub SendScriptTraceInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, stieventtype: SCRIPTTRACEINFO, guidcontextid: ::windows_core::GUID, dwscriptcontextcookie: u32, lscriptstatementstart: i32, lscriptstatementend: i32, dwreserved: u64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActiveScriptSiteUIControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IActiveScriptSiteUIControl, IActiveScriptSiteUIControl_Vtbl, 0xaedae97e_d7ee_4796_b960_7f092ae844ab); +::windows_core::imp::interface_hierarchy!(IActiveScriptSiteUIControl, ::windows_core::IUnknown); impl IActiveScriptSiteUIControl { pub unsafe fn GetUIBehavior(&self, uicitem: SCRIPTUICITEM) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetUIBehavior)(::windows_core::Interface::as_raw(self), uicitem, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IActiveScriptSiteUIControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IActiveScriptSiteUIControl { - type Vtable = IActiveScriptSiteUIControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActiveScriptSiteUIControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaedae97e_d7ee_4796_b960_7f092ae844ab); -} #[repr(C)] #[doc(hidden)] pub struct IActiveScriptSiteUIControl_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetUIBehavior: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uicitem: SCRIPTUICITEM, puichandling: *mut SCRIPTUICHANDLING) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActiveScriptSiteWindow(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IActiveScriptSiteWindow, IActiveScriptSiteWindow_Vtbl, 0xd10f6761_83e9_11cf_8f20_00805f2cd064); +::windows_core::imp::interface_hierarchy!(IActiveScriptSiteWindow, ::windows_core::IUnknown); impl IActiveScriptSiteWindow { pub unsafe fn GetWindow(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1594,13 +1281,6 @@ impl IActiveScriptSiteWindow { (::windows_core::Interface::vtable(self).EnableModeless)(::windows_core::Interface::as_raw(self), fenable.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IActiveScriptSiteWindow, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IActiveScriptSiteWindow { - type Vtable = IActiveScriptSiteWindow_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActiveScriptSiteWindow { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd10f6761_83e9_11cf_8f20_00805f2cd064); -} #[repr(C)] #[doc(hidden)] pub struct IActiveScriptSiteWindow_Vtbl { @@ -1608,9 +1288,8 @@ pub struct IActiveScriptSiteWindow_Vtbl { pub GetWindow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phwnd: *mut super::super::super::super::Foundation::HWND) -> ::windows_core::HRESULT, pub EnableModeless: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fenable: super::super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActiveScriptStats(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IActiveScriptStats, IActiveScriptStats_Vtbl, 0xb8da6310_e19b_11d0_933c_00a0c90dcaa9); +::windows_core::imp::interface_hierarchy!(IActiveScriptStats, ::windows_core::IUnknown); impl IActiveScriptStats { pub unsafe fn GetStat(&self, stid: u32, pluhi: *mut u32, plulo: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetStat)(::windows_core::Interface::as_raw(self), stid, pluhi, plulo).ok() @@ -1622,13 +1301,6 @@ impl IActiveScriptStats { (::windows_core::Interface::vtable(self).ResetStats)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IActiveScriptStats, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IActiveScriptStats { - type Vtable = IActiveScriptStats_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActiveScriptStats { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb8da6310_e19b_11d0_933c_00a0c90dcaa9); -} #[repr(C)] #[doc(hidden)] pub struct IActiveScriptStats_Vtbl { @@ -1637,9 +1309,8 @@ pub struct IActiveScriptStats_Vtbl { pub GetStatEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guid: *const ::windows_core::GUID, pluhi: *mut u32, plulo: *mut u32) -> ::windows_core::HRESULT, pub ResetStats: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActiveScriptStringCompare(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IActiveScriptStringCompare, IActiveScriptStringCompare_Vtbl, 0x58562769_ed52_42f7_8403_4963514e1f11); +::windows_core::imp::interface_hierarchy!(IActiveScriptStringCompare, ::windows_core::IUnknown); impl IActiveScriptStringCompare { pub unsafe fn StrComp(&self, bszstr1: P0, bszstr2: P1) -> ::windows_core::Result where @@ -1650,22 +1321,14 @@ impl IActiveScriptStringCompare { (::windows_core::Interface::vtable(self).StrComp)(::windows_core::Interface::as_raw(self), bszstr1.into_param().abi(), bszstr2.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IActiveScriptStringCompare, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IActiveScriptStringCompare { - type Vtable = IActiveScriptStringCompare_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActiveScriptStringCompare { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x58562769_ed52_42f7_8403_4963514e1f11); -} #[repr(C)] #[doc(hidden)] pub struct IActiveScriptStringCompare_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub StrComp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bszstr1: ::std::mem::MaybeUninit<::windows_core::BSTR>, bszstr2: ::std::mem::MaybeUninit<::windows_core::BSTR>, iret: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActiveScriptTraceInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IActiveScriptTraceInfo, IActiveScriptTraceInfo_Vtbl, 0xc35456e7_bebf_4a1b_86a9_24d56be8b369); +::windows_core::imp::interface_hierarchy!(IActiveScriptTraceInfo, ::windows_core::IUnknown); impl IActiveScriptTraceInfo { pub unsafe fn StartScriptTracing(&self, psitetraceinfo: P0, guidcontextid: ::windows_core::GUID) -> ::windows_core::Result<()> where @@ -1677,13 +1340,6 @@ impl IActiveScriptTraceInfo { (::windows_core::Interface::vtable(self).StopScriptTracing)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IActiveScriptTraceInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IActiveScriptTraceInfo { - type Vtable = IActiveScriptTraceInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActiveScriptTraceInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc35456e7_bebf_4a1b_86a9_24d56be8b369); -} #[repr(C)] #[doc(hidden)] pub struct IActiveScriptTraceInfo_Vtbl { @@ -1691,9 +1347,8 @@ pub struct IActiveScriptTraceInfo_Vtbl { pub StartScriptTracing: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psitetraceinfo: *mut ::core::ffi::c_void, guidcontextid: ::windows_core::GUID) -> ::windows_core::HRESULT, pub StopScriptTracing: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActiveScriptWinRTErrorDebug(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IActiveScriptWinRTErrorDebug, IActiveScriptWinRTErrorDebug_Vtbl, 0x73a3f82a_0fe9_4b33_ba3b_fe095f697e0a); +::windows_core::imp::interface_hierarchy!(IActiveScriptWinRTErrorDebug, ::windows_core::IUnknown, IActiveScriptError); impl IActiveScriptWinRTErrorDebug { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -1720,13 +1375,6 @@ impl IActiveScriptWinRTErrorDebug { (::windows_core::Interface::vtable(self).GetCapabilitySid)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IActiveScriptWinRTErrorDebug, ::windows_core::IUnknown, IActiveScriptError); -unsafe impl ::windows_core::Interface for IActiveScriptWinRTErrorDebug { - type Vtable = IActiveScriptWinRTErrorDebug_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActiveScriptWinRTErrorDebug { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x73a3f82a_0fe9_4b33_ba3b_fe095f697e0a); -} #[repr(C)] #[doc(hidden)] pub struct IActiveScriptWinRTErrorDebug_Vtbl { @@ -1735,9 +1383,8 @@ pub struct IActiveScriptWinRTErrorDebug_Vtbl { pub GetRestrictedErrorReference: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, referencestring: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub GetCapabilitySid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, capabilitysid: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IApplicationDebugger(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IApplicationDebugger, IApplicationDebugger_Vtbl, 0x51973c2a_cb0c_11d0_b5c9_00a0244a0e7a); +::windows_core::imp::interface_hierarchy!(IApplicationDebugger, ::windows_core::IUnknown); impl IApplicationDebugger { pub unsafe fn QueryAlive(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).QueryAlive)(::windows_core::Interface::as_raw(self)).ok() @@ -1772,13 +1419,6 @@ impl IApplicationDebugger { (::windows_core::Interface::vtable(self).onDebuggerEvent)(::windows_core::Interface::as_raw(self), riid, punk.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IApplicationDebugger, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IApplicationDebugger { - type Vtable = IApplicationDebugger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IApplicationDebugger { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51973c2a_cb0c_11d0_b5c9_00a0244a0e7a); -} #[repr(C)] #[doc(hidden)] pub struct IApplicationDebugger_Vtbl { @@ -1790,9 +1430,8 @@ pub struct IApplicationDebugger_Vtbl { pub onClose: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub onDebuggerEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, punk: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IApplicationDebuggerUI(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IApplicationDebuggerUI, IApplicationDebuggerUI_Vtbl, 0x51973c2b_cb0c_11d0_b5c9_00a0244a0e7a); +::windows_core::imp::interface_hierarchy!(IApplicationDebuggerUI, ::windows_core::IUnknown); impl IApplicationDebuggerUI { pub unsafe fn BringDocumentToTop(&self, pddt: P0) -> ::windows_core::Result<()> where @@ -1807,13 +1446,6 @@ impl IApplicationDebuggerUI { (::windows_core::Interface::vtable(self).BringDocumentContextToTop)(::windows_core::Interface::as_raw(self), pddc.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IApplicationDebuggerUI, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IApplicationDebuggerUI { - type Vtable = IApplicationDebuggerUI_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IApplicationDebuggerUI { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51973c2b_cb0c_11d0_b5c9_00a0244a0e7a); -} #[repr(C)] #[doc(hidden)] pub struct IApplicationDebuggerUI_Vtbl { @@ -1821,9 +1453,8 @@ pub struct IApplicationDebuggerUI_Vtbl { pub BringDocumentToTop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pddt: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub BringDocumentContextToTop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pddc: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBindEventHandler(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBindEventHandler, IBindEventHandler_Vtbl, 0x63cdbcb0_c1b1_11d0_9336_00a0c90dcaa9); +::windows_core::imp::interface_hierarchy!(IBindEventHandler, ::windows_core::IUnknown); impl IBindEventHandler { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -1835,13 +1466,6 @@ impl IBindEventHandler { (::windows_core::Interface::vtable(self).BindHandler)(::windows_core::Interface::as_raw(self), pstrevent.into_param().abi(), pdisp.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IBindEventHandler, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBindEventHandler { - type Vtable = IBindEventHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBindEventHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x63cdbcb0_c1b1_11d0_9336_00a0c90dcaa9); -} #[repr(C)] #[doc(hidden)] pub struct IBindEventHandler_Vtbl { @@ -1851,9 +1475,8 @@ pub struct IBindEventHandler_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] BindHandler: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugApplication11032(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugApplication11032, IDebugApplication11032_Vtbl, 0xbdb3b5de_89f2_4e11_84a5_97445f941c7d); +::windows_core::imp::interface_hierarchy!(IDebugApplication11032, ::windows_core::IUnknown, IRemoteDebugApplication110); impl IDebugApplication11032 { pub unsafe fn SetDebuggerOptions(&self, mask: SCRIPT_DEBUGGER_OPTIONS, value: SCRIPT_DEBUGGER_OPTIONS) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.SetDebuggerOptions)(::windows_core::Interface::as_raw(self), mask, value).ok() @@ -1883,13 +1506,6 @@ impl IDebugApplication11032 { (::windows_core::Interface::vtable(self).CallableWaitForHandles)(::windows_core::Interface::as_raw(self), phandles.len().try_into().unwrap(), ::core::mem::transmute(phandles.as_ptr()), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDebugApplication11032, ::windows_core::IUnknown, IRemoteDebugApplication110); -unsafe impl ::windows_core::Interface for IDebugApplication11032 { - type Vtable = IDebugApplication11032_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugApplication11032 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbdb3b5de_89f2_4e11_84a5_97445f941c7d); -} #[repr(C)] #[doc(hidden)] pub struct IDebugApplication11032_Vtbl { @@ -1898,9 +1514,8 @@ pub struct IDebugApplication11032_Vtbl { pub AsynchronousCallInMainThread: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pptc: *mut ::core::ffi::c_void, dwparam1: usize, dwparam2: usize, dwparam3: usize) -> ::windows_core::HRESULT, pub CallableWaitForHandles: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handlecount: u32, phandles: *const super::super::super::super::Foundation::HANDLE, pindex: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugApplication11064(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugApplication11064, IDebugApplication11064_Vtbl, 0x2039d958_4eeb_496a_87bb_2e5201eadeef); +::windows_core::imp::interface_hierarchy!(IDebugApplication11064, ::windows_core::IUnknown, IRemoteDebugApplication110); impl IDebugApplication11064 { pub unsafe fn SetDebuggerOptions(&self, mask: SCRIPT_DEBUGGER_OPTIONS, value: SCRIPT_DEBUGGER_OPTIONS) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.SetDebuggerOptions)(::windows_core::Interface::as_raw(self), mask, value).ok() @@ -1930,13 +1545,6 @@ impl IDebugApplication11064 { (::windows_core::Interface::vtable(self).CallableWaitForHandles)(::windows_core::Interface::as_raw(self), phandles.len().try_into().unwrap(), ::core::mem::transmute(phandles.as_ptr()), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDebugApplication11064, ::windows_core::IUnknown, IRemoteDebugApplication110); -unsafe impl ::windows_core::Interface for IDebugApplication11064 { - type Vtable = IDebugApplication11064_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugApplication11064 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2039d958_4eeb_496a_87bb_2e5201eadeef); -} #[repr(C)] #[doc(hidden)] pub struct IDebugApplication11064_Vtbl { @@ -1945,9 +1553,8 @@ pub struct IDebugApplication11064_Vtbl { pub AsynchronousCallInMainThread: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pptc: *mut ::core::ffi::c_void, dwparam1: usize, dwparam2: usize, dwparam3: usize) -> ::windows_core::HRESULT, pub CallableWaitForHandles: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handlecount: u32, phandles: *const super::super::super::super::Foundation::HANDLE, pindex: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugApplication32(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugApplication32, IDebugApplication32_Vtbl, 0x51973c32_cb0c_11d0_b5c9_00a0244a0e7a); +::windows_core::imp::interface_hierarchy!(IDebugApplication32, ::windows_core::IUnknown, IRemoteDebugApplication); impl IDebugApplication32 { pub unsafe fn ResumeFromBreakPoint(&self, prptfocus: P0, bra: BREAKRESUMEACTION, era: ERRORRESUMEACTION) -> ::windows_core::Result<()> where @@ -2089,13 +1696,6 @@ impl IDebugApplication32 { (::windows_core::Interface::vtable(self).RemoveGlobalExpressionContextProvider)(::windows_core::Interface::as_raw(self), dwcookie).ok() } } -::windows_core::imp::interface_hierarchy!(IDebugApplication32, ::windows_core::IUnknown, IRemoteDebugApplication); -unsafe impl ::windows_core::Interface for IDebugApplication32 { - type Vtable = IDebugApplication32_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugApplication32 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51973c32_cb0c_11d0_b5c9_00a0244a0e7a); -} #[repr(C)] #[doc(hidden)] pub struct IDebugApplication32_Vtbl { @@ -2121,9 +1721,8 @@ pub struct IDebugApplication32_Vtbl { pub AddGlobalExpressionContextProvider: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdsfs: *mut ::core::ffi::c_void, pdwcookie: *mut u32) -> ::windows_core::HRESULT, pub RemoveGlobalExpressionContextProvider: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwcookie: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugApplication64(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugApplication64, IDebugApplication64_Vtbl, 0x4dedc754_04c7_4f10_9e60_16a390fe6e62); +::windows_core::imp::interface_hierarchy!(IDebugApplication64, ::windows_core::IUnknown, IRemoteDebugApplication); impl IDebugApplication64 { pub unsafe fn ResumeFromBreakPoint(&self, prptfocus: P0, bra: BREAKRESUMEACTION, era: ERRORRESUMEACTION) -> ::windows_core::Result<()> where @@ -2265,13 +1864,6 @@ impl IDebugApplication64 { (::windows_core::Interface::vtable(self).RemoveGlobalExpressionContextProvider)(::windows_core::Interface::as_raw(self), dwcookie).ok() } } -::windows_core::imp::interface_hierarchy!(IDebugApplication64, ::windows_core::IUnknown, IRemoteDebugApplication); -unsafe impl ::windows_core::Interface for IDebugApplication64 { - type Vtable = IDebugApplication64_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugApplication64 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4dedc754_04c7_4f10_9e60_16a390fe6e62); -} #[repr(C)] #[doc(hidden)] pub struct IDebugApplication64_Vtbl { @@ -2297,9 +1889,8 @@ pub struct IDebugApplication64_Vtbl { pub AddGlobalExpressionContextProvider: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdsfs: *mut ::core::ffi::c_void, pdwcookie: *mut u64) -> ::windows_core::HRESULT, pub RemoveGlobalExpressionContextProvider: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwcookie: u64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugApplicationNode(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugApplicationNode, IDebugApplicationNode_Vtbl, 0x51973c34_cb0c_11d0_b5c9_00a0244a0e7a); +::windows_core::imp::interface_hierarchy!(IDebugApplicationNode, ::windows_core::IUnknown, IDebugDocumentInfo, IDebugDocumentProvider); impl IDebugApplicationNode { pub unsafe fn GetName(&self, dnt: DOCUMENTNAMETYPE) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -2340,13 +1931,6 @@ impl IDebugApplicationNode { (::windows_core::Interface::vtable(self).Detach)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IDebugApplicationNode, ::windows_core::IUnknown, IDebugDocumentInfo, IDebugDocumentProvider); -unsafe impl ::windows_core::Interface for IDebugApplicationNode { - type Vtable = IDebugApplicationNode_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugApplicationNode { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51973c34_cb0c_11d0_b5c9_00a0244a0e7a); -} #[repr(C)] #[doc(hidden)] pub struct IDebugApplicationNode_Vtbl { @@ -2358,9 +1942,8 @@ pub struct IDebugApplicationNode_Vtbl { pub Attach: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdanparent: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Detach: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugApplicationNode100(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugApplicationNode100, IDebugApplicationNode100_Vtbl, 0x90a7734e_841b_4f77_9384_a2891e76e7e2); +::windows_core::imp::interface_hierarchy!(IDebugApplicationNode100, ::windows_core::IUnknown); impl IDebugApplicationNode100 { pub unsafe fn SetFilterForEventSink(&self, dwcookie: u32, filter: APPLICATION_NODE_EVENT_FILTER) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetFilterForEventSink)(::windows_core::Interface::as_raw(self), dwcookie, filter).ok() @@ -2376,13 +1959,6 @@ impl IDebugApplicationNode100 { (::windows_core::Interface::vtable(self).QueryIsChildNode)(::windows_core::Interface::as_raw(self), psearchkey.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IDebugApplicationNode100, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugApplicationNode100 { - type Vtable = IDebugApplicationNode100_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugApplicationNode100 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x90a7734e_841b_4f77_9384_a2891e76e7e2); -} #[repr(C)] #[doc(hidden)] pub struct IDebugApplicationNode100_Vtbl { @@ -2391,9 +1967,8 @@ pub struct IDebugApplicationNode100_Vtbl { pub GetExcludedDocuments: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filter: APPLICATION_NODE_EVENT_FILTER, pdocuments: *mut TEXT_DOCUMENT_ARRAY) -> ::windows_core::HRESULT, pub QueryIsChildNode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psearchkey: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugApplicationNodeEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugApplicationNodeEvents, IDebugApplicationNodeEvents_Vtbl, 0x51973c35_cb0c_11d0_b5c9_00a0244a0e7a); +::windows_core::imp::interface_hierarchy!(IDebugApplicationNodeEvents, ::windows_core::IUnknown); impl IDebugApplicationNodeEvents { pub unsafe fn onAddChild(&self, prddpchild: P0) -> ::windows_core::Result<()> where @@ -2417,13 +1992,6 @@ impl IDebugApplicationNodeEvents { (::windows_core::Interface::vtable(self).onAttach)(::windows_core::Interface::as_raw(self), prddpparent.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IDebugApplicationNodeEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugApplicationNodeEvents { - type Vtable = IDebugApplicationNodeEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugApplicationNodeEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51973c35_cb0c_11d0_b5c9_00a0244a0e7a); -} #[repr(C)] #[doc(hidden)] pub struct IDebugApplicationNodeEvents_Vtbl { @@ -2433,9 +2001,8 @@ pub struct IDebugApplicationNodeEvents_Vtbl { pub onDetach: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub onAttach: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prddpparent: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugApplicationThread(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugApplicationThread, IDebugApplicationThread_Vtbl, 0x51973c38_cb0c_11d0_b5c9_00a0244a0e7a); +::windows_core::imp::interface_hierarchy!(IDebugApplicationThread, ::windows_core::IUnknown, IRemoteDebugApplicationThread); impl IDebugApplicationThread { pub unsafe fn GetSystemThreadId(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2500,13 +2067,6 @@ impl IDebugApplicationThread { (::windows_core::Interface::vtable(self).SetStateString)(::windows_core::Interface::as_raw(self), pstrstate.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IDebugApplicationThread, ::windows_core::IUnknown, IRemoteDebugApplicationThread); -unsafe impl ::windows_core::Interface for IDebugApplicationThread { - type Vtable = IDebugApplicationThread_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugApplicationThread { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51973c38_cb0c_11d0_b5c9_00a0244a0e7a); -} #[repr(C)] #[doc(hidden)] pub struct IDebugApplicationThread_Vtbl { @@ -2517,9 +2077,8 @@ pub struct IDebugApplicationThread_Vtbl { pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrdescription: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub SetStateString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrstate: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugApplicationThread11032(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugApplicationThread11032, IDebugApplicationThread11032_Vtbl, 0x2194ac5c_6561_404a_a2e9_f57d72de3702); +::windows_core::imp::interface_hierarchy!(IDebugApplicationThread11032, ::windows_core::IUnknown); impl IDebugApplicationThread11032 { pub unsafe fn GetActiveThreadRequestCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2540,13 +2099,6 @@ impl IDebugApplicationThread11032 { (::windows_core::Interface::vtable(self).AsynchronousCallIntoThread)(::windows_core::Interface::as_raw(self), pptc.into_param().abi(), dwparam1, dwparam2, dwparam3).ok() } } -::windows_core::imp::interface_hierarchy!(IDebugApplicationThread11032, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugApplicationThread11032 { - type Vtable = IDebugApplicationThread11032_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugApplicationThread11032 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2194ac5c_6561_404a_a2e9_f57d72de3702); -} #[repr(C)] #[doc(hidden)] pub struct IDebugApplicationThread11032_Vtbl { @@ -2556,9 +2108,8 @@ pub struct IDebugApplicationThread11032_Vtbl { pub IsThreadCallable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfiscallable: *mut super::super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub AsynchronousCallIntoThread: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pptc: *mut ::core::ffi::c_void, dwparam1: usize, dwparam2: usize, dwparam3: usize) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugApplicationThread11064(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugApplicationThread11064, IDebugApplicationThread11064_Vtbl, 0x420aa4cc_efd8_4dac_983b_47127826917d); +::windows_core::imp::interface_hierarchy!(IDebugApplicationThread11064, ::windows_core::IUnknown); impl IDebugApplicationThread11064 { pub unsafe fn GetActiveThreadRequestCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2579,13 +2130,6 @@ impl IDebugApplicationThread11064 { (::windows_core::Interface::vtable(self).AsynchronousCallIntoThread)(::windows_core::Interface::as_raw(self), pptc.into_param().abi(), dwparam1, dwparam2, dwparam3).ok() } } -::windows_core::imp::interface_hierarchy!(IDebugApplicationThread11064, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugApplicationThread11064 { - type Vtable = IDebugApplicationThread11064_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugApplicationThread11064 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x420aa4cc_efd8_4dac_983b_47127826917d); -} #[repr(C)] #[doc(hidden)] pub struct IDebugApplicationThread11064_Vtbl { @@ -2595,9 +2139,8 @@ pub struct IDebugApplicationThread11064_Vtbl { pub IsThreadCallable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfiscallable: *mut super::super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub AsynchronousCallIntoThread: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pptc: *mut ::core::ffi::c_void, dwparam1: usize, dwparam2: usize, dwparam3: usize) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugApplicationThread64(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugApplicationThread64, IDebugApplicationThread64_Vtbl, 0x9dac5886_dbad_456d_9dee_5dec39ab3dda); +::windows_core::imp::interface_hierarchy!(IDebugApplicationThread64, ::windows_core::IUnknown, IRemoteDebugApplicationThread, IDebugApplicationThread); impl IDebugApplicationThread64 { pub unsafe fn GetSystemThreadId(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2668,22 +2211,14 @@ impl IDebugApplicationThread64 { (::windows_core::Interface::vtable(self).SynchronousCallIntoThread64)(::windows_core::Interface::as_raw(self), pstcb.into_param().abi(), dwparam1, dwparam2, dwparam3).ok() } } -::windows_core::imp::interface_hierarchy!(IDebugApplicationThread64, ::windows_core::IUnknown, IRemoteDebugApplicationThread, IDebugApplicationThread); -unsafe impl ::windows_core::Interface for IDebugApplicationThread64 { - type Vtable = IDebugApplicationThread64_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugApplicationThread64 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9dac5886_dbad_456d_9dee_5dec39ab3dda); -} #[repr(C)] #[doc(hidden)] pub struct IDebugApplicationThread64_Vtbl { pub base__: IDebugApplicationThread_Vtbl, pub SynchronousCallIntoThread64: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstcb: *mut ::core::ffi::c_void, dwparam1: u64, dwparam2: u64, dwparam3: u64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugApplicationThreadEvents110(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugApplicationThreadEvents110, IDebugApplicationThreadEvents110_Vtbl, 0x84e5e468_d5da_48a8_83f4_40366429007b); +::windows_core::imp::interface_hierarchy!(IDebugApplicationThreadEvents110, ::windows_core::IUnknown); impl IDebugApplicationThreadEvents110 { pub unsafe fn OnSuspendForBreakPoint(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnSuspendForBreakPoint)(::windows_core::Interface::as_raw(self)).ok() @@ -2698,13 +2233,6 @@ impl IDebugApplicationThreadEvents110 { (::windows_core::Interface::vtable(self).OnBeginThreadRequest)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IDebugApplicationThreadEvents110, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugApplicationThreadEvents110 { - type Vtable = IDebugApplicationThreadEvents110_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugApplicationThreadEvents110 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x84e5e468_d5da_48a8_83f4_40366429007b); -} #[repr(C)] #[doc(hidden)] pub struct IDebugApplicationThreadEvents110_Vtbl { @@ -2714,9 +2242,8 @@ pub struct IDebugApplicationThreadEvents110_Vtbl { pub OnThreadRequestComplete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub OnBeginThreadRequest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugAsyncOperation(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugAsyncOperation, IDebugAsyncOperation_Vtbl, 0x51973c1b_cb0c_11d0_b5c9_00a0244a0e7a); +::windows_core::imp::interface_hierarchy!(IDebugAsyncOperation, ::windows_core::IUnknown); impl IDebugAsyncOperation { pub unsafe fn GetSyncDebugOperation(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2738,13 +2265,6 @@ impl IDebugAsyncOperation { (::windows_core::Interface::vtable(self).GetResult)(::windows_core::Interface::as_raw(self), phrresult, ::core::mem::transmute(ppunkresult)).ok() } } -::windows_core::imp::interface_hierarchy!(IDebugAsyncOperation, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugAsyncOperation { - type Vtable = IDebugAsyncOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugAsyncOperation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51973c1b_cb0c_11d0_b5c9_00a0244a0e7a); -} #[repr(C)] #[doc(hidden)] pub struct IDebugAsyncOperation_Vtbl { @@ -2755,30 +2275,21 @@ pub struct IDebugAsyncOperation_Vtbl { pub QueryIsComplete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetResult: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phrresult: *mut ::windows_core::HRESULT, ppunkresult: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugAsyncOperationCallBack(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugAsyncOperationCallBack, IDebugAsyncOperationCallBack_Vtbl, 0x51973c1c_cb0c_11d0_b5c9_00a0244a0e7a); +::windows_core::imp::interface_hierarchy!(IDebugAsyncOperationCallBack, ::windows_core::IUnknown); impl IDebugAsyncOperationCallBack { pub unsafe fn onComplete(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).onComplete)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IDebugAsyncOperationCallBack, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugAsyncOperationCallBack { - type Vtable = IDebugAsyncOperationCallBack_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugAsyncOperationCallBack { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51973c1c_cb0c_11d0_b5c9_00a0244a0e7a); -} #[repr(C)] #[doc(hidden)] pub struct IDebugAsyncOperationCallBack_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub onComplete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugCodeContext(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugCodeContext, IDebugCodeContext_Vtbl, 0x51973c13_cb0c_11d0_b5c9_00a0244a0e7a); +::windows_core::imp::interface_hierarchy!(IDebugCodeContext, ::windows_core::IUnknown); impl IDebugCodeContext { pub unsafe fn GetDocumentContext(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2788,13 +2299,6 @@ impl IDebugCodeContext { (::windows_core::Interface::vtable(self).SetBreakPoint)(::windows_core::Interface::as_raw(self), bps).ok() } } -::windows_core::imp::interface_hierarchy!(IDebugCodeContext, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugCodeContext { - type Vtable = IDebugCodeContext_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugCodeContext { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51973c13_cb0c_11d0_b5c9_00a0244a0e7a); -} #[repr(C)] #[doc(hidden)] pub struct IDebugCodeContext_Vtbl { @@ -2802,30 +2306,21 @@ pub struct IDebugCodeContext_Vtbl { pub GetDocumentContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppsc: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetBreakPoint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bps: BREAKPOINT_STATE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugCookie(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugCookie, IDebugCookie_Vtbl, 0x51973c39_cb0c_11d0_b5c9_00a0244a0e7a); +::windows_core::imp::interface_hierarchy!(IDebugCookie, ::windows_core::IUnknown); impl IDebugCookie { pub unsafe fn SetDebugCookie(&self, dwdebugappcookie: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetDebugCookie)(::windows_core::Interface::as_raw(self), dwdebugappcookie).ok() } } -::windows_core::imp::interface_hierarchy!(IDebugCookie, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugCookie { - type Vtable = IDebugCookie_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugCookie { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51973c39_cb0c_11d0_b5c9_00a0244a0e7a); -} #[repr(C)] #[doc(hidden)] pub struct IDebugCookie_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub SetDebugCookie: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwdebugappcookie: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugDocument(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugDocument, IDebugDocument_Vtbl, 0x51973c21_cb0c_11d0_b5c9_00a0244a0e7a); +::windows_core::imp::interface_hierarchy!(IDebugDocument, ::windows_core::IUnknown, IDebugDocumentInfo); impl IDebugDocument { pub unsafe fn GetName(&self, dnt: DOCUMENTNAMETYPE) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -2836,21 +2331,13 @@ impl IDebugDocument { (::windows_core::Interface::vtable(self).base__.GetDocumentClassId)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDebugDocument, ::windows_core::IUnknown, IDebugDocumentInfo); -unsafe impl ::windows_core::Interface for IDebugDocument { - type Vtable = IDebugDocument_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugDocument { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51973c21_cb0c_11d0_b5c9_00a0244a0e7a); -} #[repr(C)] #[doc(hidden)] pub struct IDebugDocument_Vtbl { pub base__: IDebugDocumentInfo_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugDocumentContext(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugDocumentContext, IDebugDocumentContext_Vtbl, 0x51973c28_cb0c_11d0_b5c9_00a0244a0e7a); +::windows_core::imp::interface_hierarchy!(IDebugDocumentContext, ::windows_core::IUnknown); impl IDebugDocumentContext { pub unsafe fn GetDocument(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2861,13 +2348,6 @@ impl IDebugDocumentContext { (::windows_core::Interface::vtable(self).EnumCodeContexts)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDebugDocumentContext, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugDocumentContext { - type Vtable = IDebugDocumentContext_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugDocumentContext { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51973c28_cb0c_11d0_b5c9_00a0244a0e7a); -} #[repr(C)] #[doc(hidden)] pub struct IDebugDocumentContext_Vtbl { @@ -2875,9 +2355,8 @@ pub struct IDebugDocumentContext_Vtbl { pub GetDocument: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppsd: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub EnumCodeContexts: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppescc: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugDocumentHelper32(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugDocumentHelper32, IDebugDocumentHelper32_Vtbl, 0x51973c26_cb0c_11d0_b5c9_00a0244a0e7a); +::windows_core::imp::interface_hierarchy!(IDebugDocumentHelper32, ::windows_core::IUnknown); impl IDebugDocumentHelper32 { pub unsafe fn Init(&self, pda: P0, pszshortname: P1, pszlongname: P2, docattr: u32) -> ::windows_core::Result<()> where @@ -2967,13 +2446,6 @@ impl IDebugDocumentHelper32 { (::windows_core::Interface::vtable(self).BringDocumentContextToTop)(::windows_core::Interface::as_raw(self), pddc.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IDebugDocumentHelper32, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugDocumentHelper32 { - type Vtable = IDebugDocumentHelper32_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugDocumentHelper32 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51973c26_cb0c_11d0_b5c9_00a0244a0e7a); -} #[repr(C)] #[doc(hidden)] pub struct IDebugDocumentHelper32_Vtbl { @@ -2997,9 +2469,8 @@ pub struct IDebugDocumentHelper32_Vtbl { pub BringDocumentToTop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub BringDocumentContextToTop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pddc: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugDocumentHelper64(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugDocumentHelper64, IDebugDocumentHelper64_Vtbl, 0xc4c7363c_20fd_47f9_bd82_4855e0150871); +::windows_core::imp::interface_hierarchy!(IDebugDocumentHelper64, ::windows_core::IUnknown); impl IDebugDocumentHelper64 { pub unsafe fn Init(&self, pda: P0, pszshortname: P1, pszlongname: P2, docattr: u32) -> ::windows_core::Result<()> where @@ -3089,13 +2560,6 @@ impl IDebugDocumentHelper64 { (::windows_core::Interface::vtable(self).BringDocumentContextToTop)(::windows_core::Interface::as_raw(self), pddc.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IDebugDocumentHelper64, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugDocumentHelper64 { - type Vtable = IDebugDocumentHelper64_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugDocumentHelper64 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc4c7363c_20fd_47f9_bd82_4855e0150871); -} #[repr(C)] #[doc(hidden)] pub struct IDebugDocumentHelper64_Vtbl { @@ -3119,9 +2583,8 @@ pub struct IDebugDocumentHelper64_Vtbl { pub BringDocumentToTop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub BringDocumentContextToTop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pddc: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugDocumentHost(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugDocumentHost, IDebugDocumentHost_Vtbl, 0x51973c27_cb0c_11d0_b5c9_00a0244a0e7a); +::windows_core::imp::interface_hierarchy!(IDebugDocumentHost, ::windows_core::IUnknown); impl IDebugDocumentHost { pub unsafe fn GetDeferredText(&self, dwtextstartcookie: u32, pchartext: ::windows_core::PWSTR, pstatextattr: *mut u16, pcnumchars: *mut u32, cmaxchars: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetDeferredText)(::windows_core::Interface::as_raw(self), dwtextstartcookie, ::core::mem::transmute(pchartext), pstatextattr, pcnumchars, cmaxchars).ok() @@ -3148,13 +2611,6 @@ impl IDebugDocumentHost { (::windows_core::Interface::vtable(self).NotifyChanged)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IDebugDocumentHost, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugDocumentHost { - type Vtable = IDebugDocumentHost_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugDocumentHost { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51973c27_cb0c_11d0_b5c9_00a0244a0e7a); -} #[repr(C)] #[doc(hidden)] pub struct IDebugDocumentHost_Vtbl { @@ -3166,9 +2622,8 @@ pub struct IDebugDocumentHost_Vtbl { pub GetFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrshortname: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub NotifyChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugDocumentInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugDocumentInfo, IDebugDocumentInfo_Vtbl, 0x51973c1f_cb0c_11d0_b5c9_00a0244a0e7a); +::windows_core::imp::interface_hierarchy!(IDebugDocumentInfo, ::windows_core::IUnknown); impl IDebugDocumentInfo { pub unsafe fn GetName(&self, dnt: DOCUMENTNAMETYPE) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -3179,13 +2634,6 @@ impl IDebugDocumentInfo { (::windows_core::Interface::vtable(self).GetDocumentClassId)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDebugDocumentInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugDocumentInfo { - type Vtable = IDebugDocumentInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugDocumentInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51973c1f_cb0c_11d0_b5c9_00a0244a0e7a); -} #[repr(C)] #[doc(hidden)] pub struct IDebugDocumentInfo_Vtbl { @@ -3193,9 +2641,8 @@ pub struct IDebugDocumentInfo_Vtbl { pub GetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dnt: DOCUMENTNAMETYPE, pbstrname: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub GetDocumentClassId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pclsiddocument: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugDocumentProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugDocumentProvider, IDebugDocumentProvider_Vtbl, 0x51973c20_cb0c_11d0_b5c9_00a0244a0e7a); +::windows_core::imp::interface_hierarchy!(IDebugDocumentProvider, ::windows_core::IUnknown, IDebugDocumentInfo); impl IDebugDocumentProvider { pub unsafe fn GetName(&self, dnt: DOCUMENTNAMETYPE) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -3210,22 +2657,14 @@ impl IDebugDocumentProvider { (::windows_core::Interface::vtable(self).GetDocument)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDebugDocumentProvider, ::windows_core::IUnknown, IDebugDocumentInfo); -unsafe impl ::windows_core::Interface for IDebugDocumentProvider { - type Vtable = IDebugDocumentProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugDocumentProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51973c20_cb0c_11d0_b5c9_00a0244a0e7a); -} #[repr(C)] #[doc(hidden)] pub struct IDebugDocumentProvider_Vtbl { pub base__: IDebugDocumentInfo_Vtbl, pub GetDocument: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppssd: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugDocumentText(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugDocumentText, IDebugDocumentText_Vtbl, 0x51973c22_cb0c_11d0_b5c9_00a0244a0e7a); +::windows_core::imp::interface_hierarchy!(IDebugDocumentText, ::windows_core::IUnknown, IDebugDocumentInfo, IDebugDocument); impl IDebugDocumentText { pub unsafe fn GetName(&self, dnt: DOCUMENTNAMETYPE) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -3263,13 +2702,6 @@ impl IDebugDocumentText { (::windows_core::Interface::vtable(self).GetContextOfPosition)(::windows_core::Interface::as_raw(self), ccharacterposition, cnumchars, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDebugDocumentText, ::windows_core::IUnknown, IDebugDocumentInfo, IDebugDocument); -unsafe impl ::windows_core::Interface for IDebugDocumentText { - type Vtable = IDebugDocumentText_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugDocumentText { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51973c22_cb0c_11d0_b5c9_00a0244a0e7a); -} #[repr(C)] #[doc(hidden)] pub struct IDebugDocumentText_Vtbl { @@ -3282,9 +2714,8 @@ pub struct IDebugDocumentText_Vtbl { pub GetPositionOfContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psc: *mut ::core::ffi::c_void, pccharacterposition: *mut u32, cnumchars: *mut u32) -> ::windows_core::HRESULT, pub GetContextOfPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ccharacterposition: u32, cnumchars: u32, ppsc: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugDocumentTextAuthor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugDocumentTextAuthor, IDebugDocumentTextAuthor_Vtbl, 0x51973c24_cb0c_11d0_b5c9_00a0244a0e7a); +::windows_core::imp::interface_hierarchy!(IDebugDocumentTextAuthor, ::windows_core::IUnknown, IDebugDocumentInfo, IDebugDocument, IDebugDocumentText); impl IDebugDocumentTextAuthor { pub unsafe fn GetName(&self, dnt: DOCUMENTNAMETYPE) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -3331,13 +2762,6 @@ impl IDebugDocumentTextAuthor { (::windows_core::Interface::vtable(self).ReplaceText)(::windows_core::Interface::as_raw(self), ccharacterposition, pchartext.len().try_into().unwrap(), ::core::mem::transmute(pchartext.as_ptr())).ok() } } -::windows_core::imp::interface_hierarchy!(IDebugDocumentTextAuthor, ::windows_core::IUnknown, IDebugDocumentInfo, IDebugDocument, IDebugDocumentText); -unsafe impl ::windows_core::Interface for IDebugDocumentTextAuthor { - type Vtable = IDebugDocumentTextAuthor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugDocumentTextAuthor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51973c24_cb0c_11d0_b5c9_00a0244a0e7a); -} #[repr(C)] #[doc(hidden)] pub struct IDebugDocumentTextAuthor_Vtbl { @@ -3346,9 +2770,8 @@ pub struct IDebugDocumentTextAuthor_Vtbl { pub RemoveText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ccharacterposition: u32, cnumtoremove: u32) -> ::windows_core::HRESULT, pub ReplaceText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ccharacterposition: u32, cnumtoreplace: u32, pchartext: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugDocumentTextEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugDocumentTextEvents, IDebugDocumentTextEvents_Vtbl, 0x51973c23_cb0c_11d0_b5c9_00a0244a0e7a); +::windows_core::imp::interface_hierarchy!(IDebugDocumentTextEvents, ::windows_core::IUnknown); impl IDebugDocumentTextEvents { pub unsafe fn onDestroy(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).onDestroy)(::windows_core::Interface::as_raw(self)).ok() @@ -3369,13 +2792,6 @@ impl IDebugDocumentTextEvents { (::windows_core::Interface::vtable(self).onUpdateDocumentAttributes)(::windows_core::Interface::as_raw(self), textdocattr).ok() } } -::windows_core::imp::interface_hierarchy!(IDebugDocumentTextEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugDocumentTextEvents { - type Vtable = IDebugDocumentTextEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugDocumentTextEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51973c23_cb0c_11d0_b5c9_00a0244a0e7a); -} #[repr(C)] #[doc(hidden)] pub struct IDebugDocumentTextEvents_Vtbl { @@ -3387,9 +2803,8 @@ pub struct IDebugDocumentTextEvents_Vtbl { pub onUpdateTextAttributes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ccharacterposition: u32, cnumtoupdate: u32) -> ::windows_core::HRESULT, pub onUpdateDocumentAttributes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, textdocattr: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugDocumentTextExternalAuthor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugDocumentTextExternalAuthor, IDebugDocumentTextExternalAuthor_Vtbl, 0x51973c25_cb0c_11d0_b5c9_00a0244a0e7a); +::windows_core::imp::interface_hierarchy!(IDebugDocumentTextExternalAuthor, ::windows_core::IUnknown); impl IDebugDocumentTextExternalAuthor { pub unsafe fn GetPathName(&self, pbstrlongname: *mut ::windows_core::BSTR, pfisoriginalfile: *mut super::super::super::super::Foundation::BOOL) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetPathName)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pbstrlongname), pfisoriginalfile).ok() @@ -3402,13 +2817,6 @@ impl IDebugDocumentTextExternalAuthor { (::windows_core::Interface::vtable(self).NotifyChanged)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IDebugDocumentTextExternalAuthor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugDocumentTextExternalAuthor { - type Vtable = IDebugDocumentTextExternalAuthor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugDocumentTextExternalAuthor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51973c25_cb0c_11d0_b5c9_00a0244a0e7a); -} #[repr(C)] #[doc(hidden)] pub struct IDebugDocumentTextExternalAuthor_Vtbl { @@ -3417,9 +2825,8 @@ pub struct IDebugDocumentTextExternalAuthor_Vtbl { pub GetFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrshortname: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub NotifyChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugExpression(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugExpression, IDebugExpression_Vtbl, 0x51973c14_cb0c_11d0_b5c9_00a0244a0e7a); +::windows_core::imp::interface_hierarchy!(IDebugExpression, ::windows_core::IUnknown); impl IDebugExpression { pub unsafe fn Start(&self, pdecb: P0) -> ::windows_core::Result<()> where @@ -3440,13 +2847,6 @@ impl IDebugExpression { (::windows_core::Interface::vtable(self).GetResultAsDebugProperty)(::windows_core::Interface::as_raw(self), phrresult, ::core::mem::transmute(ppdp)).ok() } } -::windows_core::imp::interface_hierarchy!(IDebugExpression, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugExpression { - type Vtable = IDebugExpression_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugExpression { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51973c14_cb0c_11d0_b5c9_00a0244a0e7a); -} #[repr(C)] #[doc(hidden)] pub struct IDebugExpression_Vtbl { @@ -3457,30 +2857,21 @@ pub struct IDebugExpression_Vtbl { pub GetResultAsString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phrresult: *mut ::windows_core::HRESULT, pbstrresult: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub GetResultAsDebugProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phrresult: *mut ::windows_core::HRESULT, ppdp: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugExpressionCallBack(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugExpressionCallBack, IDebugExpressionCallBack_Vtbl, 0x51973c16_cb0c_11d0_b5c9_00a0244a0e7a); +::windows_core::imp::interface_hierarchy!(IDebugExpressionCallBack, ::windows_core::IUnknown); impl IDebugExpressionCallBack { pub unsafe fn onComplete(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).onComplete)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IDebugExpressionCallBack, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugExpressionCallBack { - type Vtable = IDebugExpressionCallBack_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugExpressionCallBack { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51973c16_cb0c_11d0_b5c9_00a0244a0e7a); -} #[repr(C)] #[doc(hidden)] pub struct IDebugExpressionCallBack_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub onComplete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugExpressionContext(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugExpressionContext, IDebugExpressionContext_Vtbl, 0x51973c15_cb0c_11d0_b5c9_00a0244a0e7a); +::windows_core::imp::interface_hierarchy!(IDebugExpressionContext, ::windows_core::IUnknown); impl IDebugExpressionContext { pub unsafe fn ParseLanguageText(&self, pstrcode: P0, nradix: u32, pstrdelimiter: P1, dwflags: u32) -> ::windows_core::Result where @@ -3494,13 +2885,6 @@ impl IDebugExpressionContext { (::windows_core::Interface::vtable(self).GetLanguageInfo)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pbstrlanguagename), planguageid).ok() } } -::windows_core::imp::interface_hierarchy!(IDebugExpressionContext, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugExpressionContext { - type Vtable = IDebugExpressionContext_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugExpressionContext { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51973c15_cb0c_11d0_b5c9_00a0244a0e7a); -} #[repr(C)] #[doc(hidden)] pub struct IDebugExpressionContext_Vtbl { @@ -3508,9 +2892,8 @@ pub struct IDebugExpressionContext_Vtbl { pub ParseLanguageText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrcode: ::windows_core::PCWSTR, nradix: u32, pstrdelimiter: ::windows_core::PCWSTR, dwflags: u32, ppe: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetLanguageInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrlanguagename: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>, planguageid: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugFormatter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugFormatter, IDebugFormatter_Vtbl, 0x51973c05_cb0c_11d0_b5c9_00a0244a0e7a); +::windows_core::imp::interface_hierarchy!(IDebugFormatter, ::windows_core::IUnknown); impl IDebugFormatter { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -3534,13 +2917,6 @@ impl IDebugFormatter { (::windows_core::Interface::vtable(self).GetStringForVarType)(::windows_core::Interface::as_raw(self), vt, ptdescarraytype, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDebugFormatter, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugFormatter { - type Vtable = IDebugFormatter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugFormatter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51973c05_cb0c_11d0_b5c9_00a0244a0e7a); -} #[repr(C)] #[doc(hidden)] pub struct IDebugFormatter_Vtbl { @@ -3558,9 +2934,8 @@ pub struct IDebugFormatter_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] GetStringForVarType: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugHelper(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugHelper, IDebugHelper_Vtbl, 0x51973c3f_cb0c_11d0_b5c9_00a0244a0e7a); +::windows_core::imp::interface_hierarchy!(IDebugHelper, ::windows_core::IUnknown); impl IDebugHelper { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -3593,13 +2968,6 @@ impl IDebugHelper { (::windows_core::Interface::vtable(self).CreateSimpleConnectionPoint)(::windows_core::Interface::as_raw(self), pdisp.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDebugHelper, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugHelper { - type Vtable = IDebugHelper_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugHelper { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51973c3f_cb0c_11d0_b5c9_00a0244a0e7a); -} #[repr(C)] #[doc(hidden)] pub struct IDebugHelper_Vtbl { @@ -3617,9 +2985,8 @@ pub struct IDebugHelper_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] CreateSimpleConnectionPoint: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugSessionProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugSessionProvider, IDebugSessionProvider_Vtbl, 0x51973c29_cb0c_11d0_b5c9_00a0244a0e7a); +::windows_core::imp::interface_hierarchy!(IDebugSessionProvider, ::windows_core::IUnknown); impl IDebugSessionProvider { pub unsafe fn StartDebugSession(&self, pda: P0) -> ::windows_core::Result<()> where @@ -3628,22 +2995,14 @@ impl IDebugSessionProvider { (::windows_core::Interface::vtable(self).StartDebugSession)(::windows_core::Interface::as_raw(self), pda.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IDebugSessionProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugSessionProvider { - type Vtable = IDebugSessionProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugSessionProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51973c29_cb0c_11d0_b5c9_00a0244a0e7a); -} #[repr(C)] #[doc(hidden)] pub struct IDebugSessionProvider_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub StartDebugSession: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pda: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugStackFrame(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugStackFrame, IDebugStackFrame_Vtbl, 0x51973c17_cb0c_11d0_b5c9_00a0244a0e7a); +::windows_core::imp::interface_hierarchy!(IDebugStackFrame, ::windows_core::IUnknown); impl IDebugStackFrame { pub unsafe fn GetCodeContext(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -3672,13 +3031,6 @@ impl IDebugStackFrame { (::windows_core::Interface::vtable(self).GetDebugProperty)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDebugStackFrame, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugStackFrame { - type Vtable = IDebugStackFrame_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugStackFrame { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51973c17_cb0c_11d0_b5c9_00a0244a0e7a); -} #[repr(C)] #[doc(hidden)] pub struct IDebugStackFrame_Vtbl { @@ -3689,9 +3041,8 @@ pub struct IDebugStackFrame_Vtbl { pub GetThread: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppat: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDebugProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppdebugprop: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugStackFrame110(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugStackFrame110, IDebugStackFrame110_Vtbl, 0x4b509611_b6ea_4b24_adcb_d0ccfd1a7e33); +::windows_core::imp::interface_hierarchy!(IDebugStackFrame110, ::windows_core::IUnknown, IDebugStackFrame); impl IDebugStackFrame110 { pub unsafe fn GetCodeContext(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -3728,13 +3079,6 @@ impl IDebugStackFrame110 { (::windows_core::Interface::vtable(self).GetScriptInvocationContext)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDebugStackFrame110, ::windows_core::IUnknown, IDebugStackFrame); -unsafe impl ::windows_core::Interface for IDebugStackFrame110 { - type Vtable = IDebugStackFrame110_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugStackFrame110 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4b509611_b6ea_4b24_adcb_d0ccfd1a7e33); -} #[repr(C)] #[doc(hidden)] pub struct IDebugStackFrame110_Vtbl { @@ -3742,31 +3086,22 @@ pub struct IDebugStackFrame110_Vtbl { pub GetStackFrameType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstackframekind: *mut DEBUG_STACKFRAME_TYPE) -> ::windows_core::HRESULT, pub GetScriptInvocationContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppinvocationcontext: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugStackFrameSniffer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugStackFrameSniffer, IDebugStackFrameSniffer_Vtbl, 0x51973c18_cb0c_11d0_b5c9_00a0244a0e7a); +::windows_core::imp::interface_hierarchy!(IDebugStackFrameSniffer, ::windows_core::IUnknown); impl IDebugStackFrameSniffer { pub unsafe fn EnumStackFrames(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).EnumStackFrames)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDebugStackFrameSniffer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugStackFrameSniffer { - type Vtable = IDebugStackFrameSniffer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugStackFrameSniffer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51973c18_cb0c_11d0_b5c9_00a0244a0e7a); -} #[repr(C)] #[doc(hidden)] pub struct IDebugStackFrameSniffer_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub EnumStackFrames: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppedsf: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugStackFrameSnifferEx32(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugStackFrameSnifferEx32, IDebugStackFrameSnifferEx32_Vtbl, 0x51973c19_cb0c_11d0_b5c9_00a0244a0e7a); +::windows_core::imp::interface_hierarchy!(IDebugStackFrameSnifferEx32, ::windows_core::IUnknown, IDebugStackFrameSniffer); impl IDebugStackFrameSnifferEx32 { pub unsafe fn EnumStackFrames(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -3777,22 +3112,14 @@ impl IDebugStackFrameSnifferEx32 { (::windows_core::Interface::vtable(self).EnumStackFramesEx32)(::windows_core::Interface::as_raw(self), dwspmin, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDebugStackFrameSnifferEx32, ::windows_core::IUnknown, IDebugStackFrameSniffer); -unsafe impl ::windows_core::Interface for IDebugStackFrameSnifferEx32 { - type Vtable = IDebugStackFrameSnifferEx32_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugStackFrameSnifferEx32 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51973c19_cb0c_11d0_b5c9_00a0244a0e7a); -} #[repr(C)] #[doc(hidden)] pub struct IDebugStackFrameSnifferEx32_Vtbl { pub base__: IDebugStackFrameSniffer_Vtbl, pub EnumStackFramesEx32: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwspmin: u32, ppedsf: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugStackFrameSnifferEx64(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugStackFrameSnifferEx64, IDebugStackFrameSnifferEx64_Vtbl, 0x8cd12af4_49c1_4d52_8d8a_c146f47581aa); +::windows_core::imp::interface_hierarchy!(IDebugStackFrameSnifferEx64, ::windows_core::IUnknown, IDebugStackFrameSniffer); impl IDebugStackFrameSnifferEx64 { pub unsafe fn EnumStackFrames(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -3803,22 +3130,14 @@ impl IDebugStackFrameSnifferEx64 { (::windows_core::Interface::vtable(self).EnumStackFramesEx64)(::windows_core::Interface::as_raw(self), dwspmin, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDebugStackFrameSnifferEx64, ::windows_core::IUnknown, IDebugStackFrameSniffer); -unsafe impl ::windows_core::Interface for IDebugStackFrameSnifferEx64 { - type Vtable = IDebugStackFrameSnifferEx64_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugStackFrameSnifferEx64 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8cd12af4_49c1_4d52_8d8a_c146f47581aa); -} #[repr(C)] #[doc(hidden)] pub struct IDebugStackFrameSnifferEx64_Vtbl { pub base__: IDebugStackFrameSniffer_Vtbl, pub EnumStackFramesEx64: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwspmin: u64, ppedsf: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugSyncOperation(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugSyncOperation, IDebugSyncOperation_Vtbl, 0x51973c1a_cb0c_11d0_b5c9_00a0244a0e7a); +::windows_core::imp::interface_hierarchy!(IDebugSyncOperation, ::windows_core::IUnknown); impl IDebugSyncOperation { pub unsafe fn GetTargetThread(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -3832,13 +3151,6 @@ impl IDebugSyncOperation { (::windows_core::Interface::vtable(self).InProgressAbort)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IDebugSyncOperation, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugSyncOperation { - type Vtable = IDebugSyncOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugSyncOperation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51973c1a_cb0c_11d0_b5c9_00a0244a0e7a); -} #[repr(C)] #[doc(hidden)] pub struct IDebugSyncOperation_Vtbl { @@ -3847,51 +3159,34 @@ pub struct IDebugSyncOperation_Vtbl { pub Execute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppunkresult: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub InProgressAbort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugThreadCall32(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugThreadCall32, IDebugThreadCall32_Vtbl, 0x51973c36_cb0c_11d0_b5c9_00a0244a0e7a); +::windows_core::imp::interface_hierarchy!(IDebugThreadCall32, ::windows_core::IUnknown); impl IDebugThreadCall32 { pub unsafe fn ThreadCallHandler(&self, dwparam1: u32, dwparam2: u32, dwparam3: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).ThreadCallHandler)(::windows_core::Interface::as_raw(self), dwparam1, dwparam2, dwparam3).ok() } } -::windows_core::imp::interface_hierarchy!(IDebugThreadCall32, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugThreadCall32 { - type Vtable = IDebugThreadCall32_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugThreadCall32 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51973c36_cb0c_11d0_b5c9_00a0244a0e7a); -} #[repr(C)] #[doc(hidden)] pub struct IDebugThreadCall32_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub ThreadCallHandler: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwparam1: u32, dwparam2: u32, dwparam3: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugThreadCall64(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugThreadCall64, IDebugThreadCall64_Vtbl, 0xcb3fa335_e979_42fd_9fcf_a7546a0f3905); +::windows_core::imp::interface_hierarchy!(IDebugThreadCall64, ::windows_core::IUnknown); impl IDebugThreadCall64 { pub unsafe fn ThreadCallHandler(&self, dwparam1: u64, dwparam2: u64, dwparam3: u64) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).ThreadCallHandler)(::windows_core::Interface::as_raw(self), dwparam1, dwparam2, dwparam3).ok() } } -::windows_core::imp::interface_hierarchy!(IDebugThreadCall64, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugThreadCall64 { - type Vtable = IDebugThreadCall64_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugThreadCall64 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcb3fa335_e979_42fd_9fcf_a7546a0f3905); -} #[repr(C)] #[doc(hidden)] pub struct IDebugThreadCall64_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub ThreadCallHandler: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwparam1: u64, dwparam2: u64, dwparam3: u64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumDebugApplicationNodes(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumDebugApplicationNodes, IEnumDebugApplicationNodes_Vtbl, 0x51973c3a_cb0c_11d0_b5c9_00a0244a0e7a); +::windows_core::imp::interface_hierarchy!(IEnumDebugApplicationNodes, ::windows_core::IUnknown); impl IEnumDebugApplicationNodes { pub unsafe fn Next(&self, celt: u32, pprddp: *mut ::core::option::Option, pceltfetched: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), celt, ::core::mem::transmute(pprddp), pceltfetched).ok() @@ -3907,13 +3202,6 @@ impl IEnumDebugApplicationNodes { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumDebugApplicationNodes, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumDebugApplicationNodes { - type Vtable = IEnumDebugApplicationNodes_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumDebugApplicationNodes { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51973c3a_cb0c_11d0_b5c9_00a0244a0e7a); -} #[repr(C)] #[doc(hidden)] pub struct IEnumDebugApplicationNodes_Vtbl { @@ -3923,9 +3211,8 @@ pub struct IEnumDebugApplicationNodes_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pperddp: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumDebugCodeContexts(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumDebugCodeContexts, IEnumDebugCodeContexts_Vtbl, 0x51973c1d_cb0c_11d0_b5c9_00a0244a0e7a); +::windows_core::imp::interface_hierarchy!(IEnumDebugCodeContexts, ::windows_core::IUnknown); impl IEnumDebugCodeContexts { pub unsafe fn Next(&self, celt: u32, pscc: *mut ::core::option::Option, pceltfetched: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), celt, ::core::mem::transmute(pscc), pceltfetched).ok() @@ -3941,13 +3228,6 @@ impl IEnumDebugCodeContexts { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumDebugCodeContexts, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumDebugCodeContexts { - type Vtable = IEnumDebugCodeContexts_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumDebugCodeContexts { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51973c1d_cb0c_11d0_b5c9_00a0244a0e7a); -} #[repr(C)] #[doc(hidden)] pub struct IEnumDebugCodeContexts_Vtbl { @@ -3957,9 +3237,8 @@ pub struct IEnumDebugCodeContexts_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppescc: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumDebugExpressionContexts(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumDebugExpressionContexts, IEnumDebugExpressionContexts_Vtbl, 0x51973c40_cb0c_11d0_b5c9_00a0244a0e7a); +::windows_core::imp::interface_hierarchy!(IEnumDebugExpressionContexts, ::windows_core::IUnknown); impl IEnumDebugExpressionContexts { pub unsafe fn Next(&self, celt: u32, ppdec: *mut ::core::option::Option, pceltfetched: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), celt, ::core::mem::transmute(ppdec), pceltfetched).ok() @@ -3975,13 +3254,6 @@ impl IEnumDebugExpressionContexts { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumDebugExpressionContexts, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumDebugExpressionContexts { - type Vtable = IEnumDebugExpressionContexts_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumDebugExpressionContexts { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51973c40_cb0c_11d0_b5c9_00a0244a0e7a); -} #[repr(C)] #[doc(hidden)] pub struct IEnumDebugExpressionContexts_Vtbl { @@ -3991,9 +3263,8 @@ pub struct IEnumDebugExpressionContexts_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppedec: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumDebugStackFrames(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumDebugStackFrames, IEnumDebugStackFrames_Vtbl, 0x51973c1e_cb0c_11d0_b5c9_00a0244a0e7a); +::windows_core::imp::interface_hierarchy!(IEnumDebugStackFrames, ::windows_core::IUnknown); impl IEnumDebugStackFrames { pub unsafe fn Next(&self, celt: u32, prgdsfd: *mut DebugStackFrameDescriptor, pceltfetched: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), celt, prgdsfd, pceltfetched).ok() @@ -4009,13 +3280,6 @@ impl IEnumDebugStackFrames { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumDebugStackFrames, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumDebugStackFrames { - type Vtable = IEnumDebugStackFrames_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumDebugStackFrames { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51973c1e_cb0c_11d0_b5c9_00a0244a0e7a); -} #[repr(C)] #[doc(hidden)] pub struct IEnumDebugStackFrames_Vtbl { @@ -4025,9 +3289,8 @@ pub struct IEnumDebugStackFrames_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppedsf: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumDebugStackFrames64(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumDebugStackFrames64, IEnumDebugStackFrames64_Vtbl, 0x0dc38853_c1b0_4176_a984_b298361027af); +::windows_core::imp::interface_hierarchy!(IEnumDebugStackFrames64, ::windows_core::IUnknown, IEnumDebugStackFrames); impl IEnumDebugStackFrames64 { pub unsafe fn Next(&self, celt: u32, prgdsfd: *mut DebugStackFrameDescriptor, pceltfetched: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.Next)(::windows_core::Interface::as_raw(self), celt, prgdsfd, pceltfetched).ok() @@ -4046,22 +3309,14 @@ impl IEnumDebugStackFrames64 { (::windows_core::Interface::vtable(self).Next64)(::windows_core::Interface::as_raw(self), celt, prgdsfd, pceltfetched).ok() } } -::windows_core::imp::interface_hierarchy!(IEnumDebugStackFrames64, ::windows_core::IUnknown, IEnumDebugStackFrames); -unsafe impl ::windows_core::Interface for IEnumDebugStackFrames64 { - type Vtable = IEnumDebugStackFrames64_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumDebugStackFrames64 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0dc38853_c1b0_4176_a984_b298361027af); -} #[repr(C)] #[doc(hidden)] pub struct IEnumDebugStackFrames64_Vtbl { pub base__: IEnumDebugStackFrames_Vtbl, pub Next64: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, celt: u32, prgdsfd: *mut DebugStackFrameDescriptor64, pceltfetched: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumJsStackFrames(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumJsStackFrames, IEnumJsStackFrames_Vtbl, 0x5e7da34b_fb51_4791_abe7_cb5bdf419755); +::windows_core::imp::interface_hierarchy!(IEnumJsStackFrames, ::windows_core::IUnknown); impl IEnumJsStackFrames { pub unsafe fn Next(&self, pframes: &mut [JS_NATIVE_FRAME], pcfetched: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), pframes.len().try_into().unwrap(), ::core::mem::transmute(pframes.as_ptr()), pcfetched).ok() @@ -4070,13 +3325,6 @@ impl IEnumJsStackFrames { (::windows_core::Interface::vtable(self).Reset)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IEnumJsStackFrames, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumJsStackFrames { - type Vtable = IEnumJsStackFrames_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumJsStackFrames { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5e7da34b_fb51_4791_abe7_cb5bdf419755); -} #[repr(C)] #[doc(hidden)] pub struct IEnumJsStackFrames_Vtbl { @@ -4084,9 +3332,8 @@ pub struct IEnumJsStackFrames_Vtbl { pub Next: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cframecount: u32, pframes: *mut JS_NATIVE_FRAME, pcfetched: *mut u32) -> ::windows_core::HRESULT, pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumRemoteDebugApplicationThreads(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumRemoteDebugApplicationThreads, IEnumRemoteDebugApplicationThreads_Vtbl, 0x51973c3c_cb0c_11d0_b5c9_00a0244a0e7a); +::windows_core::imp::interface_hierarchy!(IEnumRemoteDebugApplicationThreads, ::windows_core::IUnknown); impl IEnumRemoteDebugApplicationThreads { pub unsafe fn Next(&self, celt: u32, pprdat: *mut ::core::option::Option, pceltfetched: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), celt, ::core::mem::transmute(pprdat), pceltfetched).ok() @@ -4102,13 +3349,6 @@ impl IEnumRemoteDebugApplicationThreads { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumRemoteDebugApplicationThreads, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumRemoteDebugApplicationThreads { - type Vtable = IEnumRemoteDebugApplicationThreads_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumRemoteDebugApplicationThreads { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51973c3c_cb0c_11d0_b5c9_00a0244a0e7a); -} #[repr(C)] #[doc(hidden)] pub struct IEnumRemoteDebugApplicationThreads_Vtbl { @@ -4118,9 +3358,8 @@ pub struct IEnumRemoteDebugApplicationThreads_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pperdat: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumRemoteDebugApplications(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumRemoteDebugApplications, IEnumRemoteDebugApplications_Vtbl, 0x51973c3b_cb0c_11d0_b5c9_00a0244a0e7a); +::windows_core::imp::interface_hierarchy!(IEnumRemoteDebugApplications, ::windows_core::IUnknown); impl IEnumRemoteDebugApplications { pub unsafe fn Next(&self, celt: u32, ppda: *mut ::core::option::Option, pceltfetched: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), celt, ::core::mem::transmute(ppda), pceltfetched).ok() @@ -4136,13 +3375,6 @@ impl IEnumRemoteDebugApplications { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumRemoteDebugApplications, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumRemoteDebugApplications { - type Vtable = IEnumRemoteDebugApplications_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumRemoteDebugApplications { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51973c3b_cb0c_11d0_b5c9_00a0244a0e7a); -} #[repr(C)] #[doc(hidden)] pub struct IEnumRemoteDebugApplications_Vtbl { @@ -4152,9 +3384,8 @@ pub struct IEnumRemoteDebugApplications_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppessd: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IJsDebug(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IJsDebug, IJsDebug_Vtbl, 0xbe0e89da_2ac5_4c04_ac5e_59956aae3613); +::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 @@ -4164,22 +3395,14 @@ impl IJsDebug { (::windows_core::Interface::vtable(self).OpenVirtualProcess)(::windows_core::Interface::as_raw(self), processid, runtimejsbaseaddress, pdatatarget.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IJsDebug, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IJsDebug { - type Vtable = IJsDebug_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IJsDebug { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbe0e89da_2ac5_4c04_ac5e_59956aae3613); -} #[repr(C)] #[doc(hidden)] pub struct IJsDebug_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OpenVirtualProcess: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, processid: u32, runtimejsbaseaddress: u64, pdatatarget: *mut ::core::ffi::c_void, ppprocess: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IJsDebugBreakPoint(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IJsDebugBreakPoint, IJsDebugBreakPoint_Vtbl, 0xdf6773e3_ed8d_488b_8a3e_5812577d1542); +::windows_core::imp::interface_hierarchy!(IJsDebugBreakPoint, ::windows_core::IUnknown); impl IJsDebugBreakPoint { pub unsafe fn IsEnabled(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -4198,13 +3421,6 @@ impl IJsDebugBreakPoint { (::windows_core::Interface::vtable(self).GetDocumentPosition)(::windows_core::Interface::as_raw(self), pdocumentid, pcharacteroffset, pstatementcharcount).ok() } } -::windows_core::imp::interface_hierarchy!(IJsDebugBreakPoint, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IJsDebugBreakPoint { - type Vtable = IJsDebugBreakPoint_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IJsDebugBreakPoint { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdf6773e3_ed8d_488b_8a3e_5812577d1542); -} #[repr(C)] #[doc(hidden)] pub struct IJsDebugBreakPoint_Vtbl { @@ -4215,9 +3431,8 @@ pub struct IJsDebugBreakPoint_Vtbl { pub Delete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDocumentPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdocumentid: *mut u64, pcharacteroffset: *mut u32, pstatementcharcount: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IJsDebugDataTarget(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IJsDebugDataTarget, IJsDebugDataTarget_Vtbl, 0x53b28977_53a1_48e5_9000_5d0dfa893931); +::windows_core::imp::interface_hierarchy!(IJsDebugDataTarget, ::windows_core::IUnknown); impl IJsDebugDataTarget { pub unsafe fn ReadMemory(&self, address: u64, flags: JsDebugReadMemoryFlags, pbuffer: &mut [u8], pbytesread: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).ReadMemory)(::windows_core::Interface::as_raw(self), address, flags, ::core::mem::transmute(pbuffer.as_ptr()), pbuffer.len().try_into().unwrap(), pbytesread).ok() @@ -4252,13 +3467,6 @@ impl IJsDebugDataTarget { (::windows_core::Interface::vtable(self).GetThreadContext)(::windows_core::Interface::as_raw(self), threadid, contextflags, pcontext.len().try_into().unwrap(), ::core::mem::transmute(pcontext.as_ptr())).ok() } } -::windows_core::imp::interface_hierarchy!(IJsDebugDataTarget, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IJsDebugDataTarget { - type Vtable = IJsDebugDataTarget_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IJsDebugDataTarget { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x53b28977_53a1_48e5_9000_5d0dfa893931); -} #[repr(C)] #[doc(hidden)] pub struct IJsDebugDataTarget_Vtbl { @@ -4273,9 +3481,8 @@ pub struct IJsDebugDataTarget_Vtbl { pub CreateStackFrameEnumerator: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, threadid: u32, ppenumerator: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetThreadContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, threadid: u32, contextflags: u32, contextsize: u32, pcontext: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IJsDebugFrame(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IJsDebugFrame, IJsDebugFrame_Vtbl, 0xc9196637_ab9d_44b2_bad2_13b95b3f390e); +::windows_core::imp::interface_hierarchy!(IJsDebugFrame, ::windows_core::IUnknown); impl IJsDebugFrame { pub unsafe fn GetStackRange(&self, pstart: *mut u64, pend: *mut u64) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetStackRange)(::windows_core::Interface::as_raw(self), pstart, pend).ok() @@ -4305,13 +3512,6 @@ impl IJsDebugFrame { (::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::imp::interface_hierarchy!(IJsDebugFrame, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IJsDebugFrame { - type Vtable = IJsDebugFrame_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IJsDebugFrame { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc9196637_ab9d_44b2_bad2_13b95b3f390e); -} #[repr(C)] #[doc(hidden)] pub struct IJsDebugFrame_Vtbl { @@ -4324,9 +3524,8 @@ pub struct IJsDebugFrame_Vtbl { pub GetReturnAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, preturnaddress: *mut u64) -> ::windows_core::HRESULT, pub Evaluate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pexpressiontext: ::windows_core::PCWSTR, ppdebugproperty: *mut *mut ::core::ffi::c_void, perror: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IJsDebugProcess(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IJsDebugProcess, IJsDebugProcess_Vtbl, 0x3d587168_6a2d_4041_bd3b_0de674502862); +::windows_core::imp::interface_hierarchy!(IJsDebugProcess, ::windows_core::IUnknown); impl IJsDebugProcess { pub unsafe fn CreateStackWalker(&self, threadid: u32) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -4347,13 +3546,6 @@ impl IJsDebugProcess { (::windows_core::Interface::vtable(self).GetExternalStepAddress)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IJsDebugProcess, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IJsDebugProcess { - type Vtable = IJsDebugProcess_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IJsDebugProcess { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3d587168_6a2d_4041_bd3b_0de674502862); -} #[repr(C)] #[doc(hidden)] pub struct IJsDebugProcess_Vtbl { @@ -4363,9 +3555,8 @@ pub struct IJsDebugProcess_Vtbl { pub PerformAsyncBreak: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, threadid: u32) -> ::windows_core::HRESULT, pub GetExternalStepAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcodeaddress: *mut u64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IJsDebugProperty(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IJsDebugProperty, IJsDebugProperty_Vtbl, 0xf8ffcf2b_3aa4_4320_85c3_52a312ba9633); +::windows_core::imp::interface_hierarchy!(IJsDebugProperty, ::windows_core::IUnknown); impl IJsDebugProperty { pub unsafe fn GetPropertyInfo(&self, nradix: u32, ppropertyinfo: *mut JsDebugPropertyInfo) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetPropertyInfo)(::windows_core::Interface::as_raw(self), nradix, ppropertyinfo).ok() @@ -4375,13 +3566,6 @@ impl IJsDebugProperty { (::windows_core::Interface::vtable(self).GetMembers)(::windows_core::Interface::as_raw(self), members, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IJsDebugProperty, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IJsDebugProperty { - type Vtable = IJsDebugProperty_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IJsDebugProperty { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf8ffcf2b_3aa4_4320_85c3_52a312ba9633); -} #[repr(C)] #[doc(hidden)] pub struct IJsDebugProperty_Vtbl { @@ -4389,31 +3573,22 @@ pub struct IJsDebugProperty_Vtbl { pub GetPropertyInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nradix: u32, ppropertyinfo: *mut JsDebugPropertyInfo) -> ::windows_core::HRESULT, pub GetMembers: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, members: JS_PROPERTY_MEMBERS, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IJsDebugStackWalker(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IJsDebugStackWalker, IJsDebugStackWalker_Vtbl, 0xdb24b094_73c4_456c_a4ec_e90ea00bdfe3); +::windows_core::imp::interface_hierarchy!(IJsDebugStackWalker, ::windows_core::IUnknown); impl IJsDebugStackWalker { pub unsafe fn GetNext(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetNext)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IJsDebugStackWalker, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IJsDebugStackWalker { - type Vtable = IJsDebugStackWalker_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IJsDebugStackWalker { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdb24b094_73c4_456c_a4ec_e90ea00bdfe3); -} #[repr(C)] #[doc(hidden)] pub struct IJsDebugStackWalker_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetNext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppframe: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IJsEnumDebugProperty(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IJsEnumDebugProperty, IJsEnumDebugProperty_Vtbl, 0x4092432f_2f0f_4fe1_b638_5b74a52cdcbe); +::windows_core::imp::interface_hierarchy!(IJsEnumDebugProperty, ::windows_core::IUnknown); impl IJsEnumDebugProperty { pub unsafe fn Next(&self, ppdebugproperty: &mut [::core::option::Option], pactualcount: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), ppdebugproperty.len().try_into().unwrap(), ::core::mem::transmute(ppdebugproperty.as_ptr()), pactualcount).ok() @@ -4423,13 +3598,6 @@ impl IJsEnumDebugProperty { (::windows_core::Interface::vtable(self).GetCount)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IJsEnumDebugProperty, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IJsEnumDebugProperty { - type Vtable = IJsEnumDebugProperty_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IJsEnumDebugProperty { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4092432f_2f0f_4fe1_b638_5b74a52cdcbe); -} #[repr(C)] #[doc(hidden)] pub struct IJsEnumDebugProperty_Vtbl { @@ -4437,9 +3605,8 @@ pub struct IJsEnumDebugProperty_Vtbl { pub Next: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, count: u32, ppdebugproperty: *mut *mut ::core::ffi::c_void, pactualcount: *mut u32) -> ::windows_core::HRESULT, pub GetCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcount: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMachineDebugManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMachineDebugManager, IMachineDebugManager_Vtbl, 0x51973c2c_cb0c_11d0_b5c9_00a0244a0e7a); +::windows_core::imp::interface_hierarchy!(IMachineDebugManager, ::windows_core::IUnknown); impl IMachineDebugManager { pub unsafe fn AddApplication(&self, pda: P0) -> ::windows_core::Result where @@ -4456,13 +3623,6 @@ impl IMachineDebugManager { (::windows_core::Interface::vtable(self).EnumApplications)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMachineDebugManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMachineDebugManager { - type Vtable = IMachineDebugManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMachineDebugManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51973c2c_cb0c_11d0_b5c9_00a0244a0e7a); -} #[repr(C)] #[doc(hidden)] pub struct IMachineDebugManager_Vtbl { @@ -4471,9 +3631,8 @@ pub struct IMachineDebugManager_Vtbl { pub RemoveApplication: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwappcookie: u32) -> ::windows_core::HRESULT, pub EnumApplications: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppeda: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMachineDebugManagerCookie(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMachineDebugManagerCookie, IMachineDebugManagerCookie_Vtbl, 0x51973c2d_cb0c_11d0_b5c9_00a0244a0e7a); +::windows_core::imp::interface_hierarchy!(IMachineDebugManagerCookie, ::windows_core::IUnknown); impl IMachineDebugManagerCookie { pub unsafe fn AddApplication(&self, pda: P0, dwdebugappcookie: u32) -> ::windows_core::Result where @@ -4490,13 +3649,6 @@ impl IMachineDebugManagerCookie { (::windows_core::Interface::vtable(self).EnumApplications)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMachineDebugManagerCookie, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMachineDebugManagerCookie { - type Vtable = IMachineDebugManagerCookie_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMachineDebugManagerCookie { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51973c2d_cb0c_11d0_b5c9_00a0244a0e7a); -} #[repr(C)] #[doc(hidden)] pub struct IMachineDebugManagerCookie_Vtbl { @@ -4505,9 +3657,8 @@ pub struct IMachineDebugManagerCookie_Vtbl { pub RemoveApplication: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwdebugappcookie: u32, dwappcookie: u32) -> ::windows_core::HRESULT, pub EnumApplications: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppeda: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMachineDebugManagerEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMachineDebugManagerEvents, IMachineDebugManagerEvents_Vtbl, 0x51973c2e_cb0c_11d0_b5c9_00a0244a0e7a); +::windows_core::imp::interface_hierarchy!(IMachineDebugManagerEvents, ::windows_core::IUnknown); impl IMachineDebugManagerEvents { pub unsafe fn onAddApplication(&self, pda: P0, dwappcookie: u32) -> ::windows_core::Result<()> where @@ -4522,13 +3673,6 @@ impl IMachineDebugManagerEvents { (::windows_core::Interface::vtable(self).onRemoveApplication)(::windows_core::Interface::as_raw(self), pda.into_param().abi(), dwappcookie).ok() } } -::windows_core::imp::interface_hierarchy!(IMachineDebugManagerEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMachineDebugManagerEvents { - type Vtable = IMachineDebugManagerEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMachineDebugManagerEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51973c2e_cb0c_11d0_b5c9_00a0244a0e7a); -} #[repr(C)] #[doc(hidden)] pub struct IMachineDebugManagerEvents_Vtbl { @@ -4536,9 +3680,8 @@ pub struct IMachineDebugManagerEvents_Vtbl { pub onAddApplication: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pda: *mut ::core::ffi::c_void, dwappcookie: u32) -> ::windows_core::HRESULT, pub onRemoveApplication: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pda: *mut ::core::ffi::c_void, dwappcookie: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProcessDebugManager32(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IProcessDebugManager32, IProcessDebugManager32_Vtbl, 0x51973c2f_cb0c_11d0_b5c9_00a0244a0e7a); +::windows_core::imp::interface_hierarchy!(IProcessDebugManager32, ::windows_core::IUnknown); impl IProcessDebugManager32 { pub unsafe fn CreateApplication(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -4566,13 +3709,6 @@ impl IProcessDebugManager32 { (::windows_core::Interface::vtable(self).CreateDebugDocumentHelper)(::windows_core::Interface::as_raw(self), punkouter.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IProcessDebugManager32, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProcessDebugManager32 { - type Vtable = IProcessDebugManager32_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProcessDebugManager32 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51973c2f_cb0c_11d0_b5c9_00a0244a0e7a); -} #[repr(C)] #[doc(hidden)] pub struct IProcessDebugManager32_Vtbl { @@ -4583,9 +3719,8 @@ pub struct IProcessDebugManager32_Vtbl { pub RemoveApplication: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwappcookie: u32) -> ::windows_core::HRESULT, pub CreateDebugDocumentHelper: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punkouter: *mut ::core::ffi::c_void, pddh: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProcessDebugManager64(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IProcessDebugManager64, IProcessDebugManager64_Vtbl, 0x56b9fc1c_63a9_4cc1_ac21_087d69a17fab); +::windows_core::imp::interface_hierarchy!(IProcessDebugManager64, ::windows_core::IUnknown); impl IProcessDebugManager64 { pub unsafe fn CreateApplication(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -4613,13 +3748,6 @@ impl IProcessDebugManager64 { (::windows_core::Interface::vtable(self).CreateDebugDocumentHelper)(::windows_core::Interface::as_raw(self), punkouter.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IProcessDebugManager64, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProcessDebugManager64 { - type Vtable = IProcessDebugManager64_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProcessDebugManager64 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x56b9fc1c_63a9_4cc1_ac21_087d69a17fab); -} #[repr(C)] #[doc(hidden)] pub struct IProcessDebugManager64_Vtbl { @@ -4630,31 +3758,22 @@ pub struct IProcessDebugManager64_Vtbl { pub RemoveApplication: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwappcookie: u32) -> ::windows_core::HRESULT, pub CreateDebugDocumentHelper: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punkouter: *mut ::core::ffi::c_void, pddh: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProvideExpressionContexts(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IProvideExpressionContexts, IProvideExpressionContexts_Vtbl, 0x51973c41_cb0c_11d0_b5c9_00a0244a0e7a); +::windows_core::imp::interface_hierarchy!(IProvideExpressionContexts, ::windows_core::IUnknown); impl IProvideExpressionContexts { pub unsafe fn EnumExpressionContexts(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).EnumExpressionContexts)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IProvideExpressionContexts, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProvideExpressionContexts { - type Vtable = IProvideExpressionContexts_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProvideExpressionContexts { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51973c41_cb0c_11d0_b5c9_00a0244a0e7a); -} #[repr(C)] #[doc(hidden)] pub struct IProvideExpressionContexts_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub EnumExpressionContexts: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppedec: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteDebugApplication(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRemoteDebugApplication, IRemoteDebugApplication_Vtbl, 0x51973c30_cb0c_11d0_b5c9_00a0244a0e7a); +::windows_core::imp::interface_hierarchy!(IRemoteDebugApplication, ::windows_core::IUnknown); impl IRemoteDebugApplication { pub unsafe fn ResumeFromBreakPoint(&self, prptfocus: P0, bra: BREAKRESUMEACTION, era: ERRORRESUMEACTION) -> ::windows_core::Result<()> where @@ -4705,13 +3824,6 @@ impl IRemoteDebugApplication { (::windows_core::Interface::vtable(self).EnumGlobalExpressionContexts)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IRemoteDebugApplication, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteDebugApplication { - type Vtable = IRemoteDebugApplication_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteDebugApplication { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51973c30_cb0c_11d0_b5c9_00a0244a0e7a); -} #[repr(C)] #[doc(hidden)] pub struct IRemoteDebugApplication_Vtbl { @@ -4728,9 +3840,8 @@ pub struct IRemoteDebugApplication_Vtbl { pub GetRootNode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppdanroot: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub EnumGlobalExpressionContexts: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppedec: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteDebugApplication110(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRemoteDebugApplication110, IRemoteDebugApplication110_Vtbl, 0xd5fe005b_2836_485e_b1f9_89d91aa24fd4); +::windows_core::imp::interface_hierarchy!(IRemoteDebugApplication110, ::windows_core::IUnknown); impl IRemoteDebugApplication110 { pub unsafe fn SetDebuggerOptions(&self, mask: SCRIPT_DEBUGGER_OPTIONS, value: SCRIPT_DEBUGGER_OPTIONS) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetDebuggerOptions)(::windows_core::Interface::as_raw(self), mask, value).ok() @@ -4744,13 +3855,6 @@ impl IRemoteDebugApplication110 { (::windows_core::Interface::vtable(self).GetMainThread)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IRemoteDebugApplication110, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteDebugApplication110 { - type Vtable = IRemoteDebugApplication110_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteDebugApplication110 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd5fe005b_2836_485e_b1f9_89d91aa24fd4); -} #[repr(C)] #[doc(hidden)] pub struct IRemoteDebugApplication110_Vtbl { @@ -4759,9 +3863,8 @@ pub struct IRemoteDebugApplication110_Vtbl { pub GetCurrentDebuggerOptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcurrentoptions: *mut SCRIPT_DEBUGGER_OPTIONS) -> ::windows_core::HRESULT, pub GetMainThread: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppthread: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteDebugApplicationEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRemoteDebugApplicationEvents, IRemoteDebugApplicationEvents_Vtbl, 0x51973c33_cb0c_11d0_b5c9_00a0244a0e7a); +::windows_core::imp::interface_hierarchy!(IRemoteDebugApplicationEvents, ::windows_core::IUnknown); impl IRemoteDebugApplicationEvents { pub unsafe fn OnConnectDebugger(&self, pad: P0) -> ::windows_core::Result<()> where @@ -4818,13 +3921,6 @@ impl IRemoteDebugApplicationEvents { (::windows_core::Interface::vtable(self).OnBreakFlagChange)(::windows_core::Interface::as_raw(self), abf, prdatsteppingthread.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IRemoteDebugApplicationEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteDebugApplicationEvents { - type Vtable = IRemoteDebugApplicationEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteDebugApplicationEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51973c33_cb0c_11d0_b5c9_00a0244a0e7a); -} #[repr(C)] #[doc(hidden)] pub struct IRemoteDebugApplicationEvents_Vtbl { @@ -4840,9 +3936,8 @@ pub struct IRemoteDebugApplicationEvents_Vtbl { pub OnDestroyThread: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prdat: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub OnBreakFlagChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, abf: u32, prdatsteppingthread: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteDebugApplicationThread(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRemoteDebugApplicationThread, IRemoteDebugApplicationThread_Vtbl, 0x51973c37_cb0c_11d0_b5c9_00a0244a0e7a); +::windows_core::imp::interface_hierarchy!(IRemoteDebugApplicationThread, ::windows_core::IUnknown); impl IRemoteDebugApplicationThread { pub unsafe fn GetSystemThreadId(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -4883,13 +3978,6 @@ impl IRemoteDebugApplicationThread { (::windows_core::Interface::vtable(self).GetSuspendCount)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IRemoteDebugApplicationThread, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteDebugApplicationThread { - type Vtable = IRemoteDebugApplicationThread_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteDebugApplicationThread { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51973c37_cb0c_11d0_b5c9_00a0244a0e7a); -} #[repr(C)] #[doc(hidden)] pub struct IRemoteDebugApplicationThread_Vtbl { @@ -4904,51 +3992,34 @@ pub struct IRemoteDebugApplicationThread_Vtbl { pub Resume: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwcount: *mut u32) -> ::windows_core::HRESULT, pub GetSuspendCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwcount: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteDebugCriticalErrorEvent110(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRemoteDebugCriticalErrorEvent110, IRemoteDebugCriticalErrorEvent110_Vtbl, 0x2f69c611_6b14_47e8_9260_4bb7c52f504b); +::windows_core::imp::interface_hierarchy!(IRemoteDebugCriticalErrorEvent110, ::windows_core::IUnknown); impl IRemoteDebugCriticalErrorEvent110 { pub unsafe fn GetErrorInfo(&self, pbstrsource: *mut ::windows_core::BSTR, pmessageid: *mut i32, pbstrmessage: *mut ::windows_core::BSTR, pplocation: *mut ::core::option::Option) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetErrorInfo)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pbstrsource), pmessageid, ::core::mem::transmute(pbstrmessage), ::core::mem::transmute(pplocation)).ok() } } -::windows_core::imp::interface_hierarchy!(IRemoteDebugCriticalErrorEvent110, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteDebugCriticalErrorEvent110 { - type Vtable = IRemoteDebugCriticalErrorEvent110_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteDebugCriticalErrorEvent110 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2f69c611_6b14_47e8_9260_4bb7c52f504b); -} #[repr(C)] #[doc(hidden)] pub struct IRemoteDebugCriticalErrorEvent110_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetErrorInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsource: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>, pmessageid: *mut i32, pbstrmessage: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>, pplocation: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteDebugInfoEvent110(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRemoteDebugInfoEvent110, IRemoteDebugInfoEvent110_Vtbl, 0x9ff56bb6_eb89_4c0f_8823_cc2a4c0b7f26); +::windows_core::imp::interface_hierarchy!(IRemoteDebugInfoEvent110, ::windows_core::IUnknown); impl IRemoteDebugInfoEvent110 { pub unsafe fn GetEventInfo(&self, pmessagetype: *mut DEBUG_EVENT_INFO_TYPE, pbstrmessage: *mut ::windows_core::BSTR, pbstrurl: *mut ::windows_core::BSTR, pplocation: *mut ::core::option::Option) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetEventInfo)(::windows_core::Interface::as_raw(self), pmessagetype, ::core::mem::transmute(pbstrmessage), ::core::mem::transmute(pbstrurl), ::core::mem::transmute(pplocation)).ok() } } -::windows_core::imp::interface_hierarchy!(IRemoteDebugInfoEvent110, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteDebugInfoEvent110 { - type Vtable = IRemoteDebugInfoEvent110_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteDebugInfoEvent110 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9ff56bb6_eb89_4c0f_8823_cc2a4c0b7f26); -} #[repr(C)] #[doc(hidden)] pub struct IRemoteDebugInfoEvent110_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetEventInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pmessagetype: *mut DEBUG_EVENT_INFO_TYPE, pbstrmessage: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>, pbstrurl: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>, pplocation: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IScriptEntry(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IScriptEntry, IScriptEntry_Vtbl, 0x0aee2a95_bcbb_11d0_8c72_00c04fc2b085); +::windows_core::imp::interface_hierarchy!(IScriptEntry, ::windows_core::IUnknown, IScriptNode); impl IScriptEntry { pub unsafe fn Alive(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.Alive)(::windows_core::Interface::as_raw(self)).ok() @@ -5056,13 +4127,6 @@ impl IScriptEntry { (::windows_core::Interface::vtable(self).GetRange)(::windows_core::Interface::as_raw(self), pichmin, pcch).ok() } } -::windows_core::imp::interface_hierarchy!(IScriptEntry, ::windows_core::IUnknown, IScriptNode); -unsafe impl ::windows_core::Interface for IScriptEntry { - type Vtable = IScriptEntry_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IScriptEntry { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0aee2a95_bcbb_11d0_8c72_00c04fc2b085); -} #[repr(C)] #[doc(hidden)] pub struct IScriptEntry_Vtbl { @@ -5085,9 +4149,8 @@ pub struct IScriptEntry_Vtbl { SetSignature: usize, pub GetRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pichmin: *mut u32, pcch: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IScriptInvocationContext(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IScriptInvocationContext, IScriptInvocationContext_Vtbl, 0x5d7741b7_af7e_4a2a_85e5_c77f4d0659fb); +::windows_core::imp::interface_hierarchy!(IScriptInvocationContext, ::windows_core::IUnknown); impl IScriptInvocationContext { pub unsafe fn GetContextType(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -5102,13 +4165,6 @@ impl IScriptInvocationContext { (::windows_core::Interface::vtable(self).GetContextObject)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IScriptInvocationContext, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IScriptInvocationContext { - type Vtable = IScriptInvocationContext_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IScriptInvocationContext { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5d7741b7_af7e_4a2a_85e5_c77f4d0659fb); -} #[repr(C)] #[doc(hidden)] pub struct IScriptInvocationContext_Vtbl { @@ -5117,9 +4173,8 @@ pub struct IScriptInvocationContext_Vtbl { pub GetContextDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdescription: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub GetContextObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppcontextobject: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IScriptNode(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IScriptNode, IScriptNode_Vtbl, 0x0aee2a94_bcbb_11d0_8c72_00c04fc2b085); +::windows_core::imp::interface_hierarchy!(IScriptNode, ::windows_core::IUnknown); impl IScriptNode { pub unsafe fn Alive(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Alive)(::windows_core::Interface::as_raw(self)).ok() @@ -5171,13 +4226,6 @@ impl IScriptNode { (::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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IScriptNode, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IScriptNode { - type Vtable = IScriptNode_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IScriptNode { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0aee2a94_bcbb_11d0_8c72_00c04fc2b085); -} #[repr(C)] #[doc(hidden)] pub struct IScriptNode_Vtbl { @@ -5196,9 +4244,8 @@ pub struct IScriptNode_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] CreateChildHandler: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IScriptScriptlet(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IScriptScriptlet, IScriptScriptlet_Vtbl, 0x0aee2a96_bcbb_11d0_8c72_00c04fc2b085); +::windows_core::imp::interface_hierarchy!(IScriptScriptlet, ::windows_core::IUnknown, IScriptNode, IScriptEntry); impl IScriptScriptlet { pub unsafe fn Alive(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.Alive)(::windows_core::Interface::as_raw(self)).ok() @@ -5336,13 +4383,6 @@ impl IScriptScriptlet { (::windows_core::Interface::vtable(self).SetSimpleEventName)(::windows_core::Interface::as_raw(self), psz.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IScriptScriptlet, ::windows_core::IUnknown, IScriptNode, IScriptEntry); -unsafe impl ::windows_core::Interface for IScriptScriptlet { - type Vtable = IScriptScriptlet_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IScriptScriptlet { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0aee2a96_bcbb_11d0_8c72_00c04fc2b085); -} #[repr(C)] #[doc(hidden)] pub struct IScriptScriptlet_Vtbl { @@ -5354,9 +4394,8 @@ pub struct IScriptScriptlet_Vtbl { pub GetSimpleEventName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstr: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SetSimpleEventName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psz: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISimpleConnectionPoint(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISimpleConnectionPoint, ISimpleConnectionPoint_Vtbl, 0x51973c3e_cb0c_11d0_b5c9_00a0244a0e7a); +::windows_core::imp::interface_hierarchy!(ISimpleConnectionPoint, ::windows_core::IUnknown); impl ISimpleConnectionPoint { pub unsafe fn GetEventCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -5378,13 +4417,6 @@ impl ISimpleConnectionPoint { (::windows_core::Interface::vtable(self).Unadvise)(::windows_core::Interface::as_raw(self), dwcookie).ok() } } -::windows_core::imp::interface_hierarchy!(ISimpleConnectionPoint, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISimpleConnectionPoint { - type Vtable = ISimpleConnectionPoint_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISimpleConnectionPoint { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51973c3e_cb0c_11d0_b5c9_00a0244a0e7a); -} #[repr(C)] #[doc(hidden)] pub struct ISimpleConnectionPoint_Vtbl { @@ -5397,9 +4429,8 @@ pub struct ISimpleConnectionPoint_Vtbl { Advise: usize, pub Unadvise: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwcookie: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITridentEventSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITridentEventSink, ITridentEventSink_Vtbl, 0x1dc9ca50_06ef_11d2_8415_006008c3fbfc); +::windows_core::imp::interface_hierarchy!(ITridentEventSink, ::windows_core::IUnknown); impl ITridentEventSink { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -5410,13 +4441,6 @@ impl ITridentEventSink { (::windows_core::Interface::vtable(self).FireEvent)(::windows_core::Interface::as_raw(self), pstrevent.into_param().abi(), pdp, pvarres, pei).ok() } } -::windows_core::imp::interface_hierarchy!(ITridentEventSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITridentEventSink { - type Vtable = ITridentEventSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITridentEventSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1dc9ca50_06ef_11d2_8415_006008c3fbfc); -} #[repr(C)] #[doc(hidden)] pub struct ITridentEventSink_Vtbl { @@ -5426,9 +4450,8 @@ pub struct ITridentEventSink_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] FireEvent: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebAppDiagnosticsObjectInitialization(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWebAppDiagnosticsObjectInitialization, IWebAppDiagnosticsObjectInitialization_Vtbl, 0x16ff3a42_a5f5_432b_b625_8e8e16f57e15); +::windows_core::imp::interface_hierarchy!(IWebAppDiagnosticsObjectInitialization, ::windows_core::IUnknown); impl IWebAppDiagnosticsObjectInitialization { pub unsafe fn Initialize(&self, hpassedhandle: P0, pdebugapplication: P1) -> ::windows_core::Result<()> where @@ -5438,22 +4461,14 @@ impl IWebAppDiagnosticsObjectInitialization { (::windows_core::Interface::vtable(self).Initialize)(::windows_core::Interface::as_raw(self), hpassedhandle.into_param().abi(), pdebugapplication.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IWebAppDiagnosticsObjectInitialization, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebAppDiagnosticsObjectInitialization { - type Vtable = IWebAppDiagnosticsObjectInitialization_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebAppDiagnosticsObjectInitialization { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x16ff3a42_a5f5_432b_b625_8e8e16f57e15); -} #[repr(C)] #[doc(hidden)] pub struct IWebAppDiagnosticsObjectInitialization_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hpassedhandle: super::super::super::super::Foundation::HANDLE_PTR, pdebugapplication: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebAppDiagnosticsSetup(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWebAppDiagnosticsSetup, IWebAppDiagnosticsSetup_Vtbl, 0x379bfbe1_c6c9_432a_93e1_6d17656c538c); +::windows_core::imp::interface_hierarchy!(IWebAppDiagnosticsSetup, ::windows_core::IUnknown); impl IWebAppDiagnosticsSetup { pub unsafe fn DiagnosticsSupported(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -5463,13 +4478,6 @@ impl IWebAppDiagnosticsSetup { (::windows_core::Interface::vtable(self).CreateObjectWithSiteAtWebApp)(::windows_core::Interface::as_raw(self), rclsid, dwclscontext, riid, hpasstoobject).ok() } } -::windows_core::imp::interface_hierarchy!(IWebAppDiagnosticsSetup, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebAppDiagnosticsSetup { - type Vtable = IWebAppDiagnosticsSetup_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebAppDiagnosticsSetup { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x379bfbe1_c6c9_432a_93e1_6d17656c538c); -} #[repr(C)] #[doc(hidden)] pub struct IWebAppDiagnosticsSetup_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Debug/Extensions/impl.rs b/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Debug/Extensions/impl.rs index 1495009347..5a1c0eacfe 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Debug/Extensions/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Debug/Extensions/impl.rs @@ -5,7 +5,7 @@ impl DebugBaseEventCallbacks_Vtbl { Self { base__: IDebugEventCallbacks_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait DebugBaseEventCallbacksWide_Impl: Sized + IDebugEventCallbacksWide_Impl {} @@ -15,7 +15,7 @@ impl DebugBaseEventCallbacksWide_Vtbl { Self { base__: IDebugEventCallbacksWide_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ICodeAddressConcept_Impl: Sized { @@ -38,7 +38,7 @@ impl ICodeAddressConcept_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetContainingSymbol: GetContainingSymbol:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IComparableConcept_Impl: Sized { @@ -61,7 +61,7 @@ impl IComparableConcept_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CompareObjects: CompareObjects:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDataModelConcept_Impl: Sized { @@ -94,7 +94,7 @@ impl IDataModelConcept_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -323,7 +323,7 @@ impl IDataModelManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -366,7 +366,7 @@ impl IDataModelManager2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDataModelNameBinder_Impl: Sized { @@ -419,7 +419,7 @@ impl IDataModelNameBinder_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -497,7 +497,7 @@ impl IDataModelScript_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDataModelScriptClient_Impl: Sized { @@ -514,7 +514,7 @@ impl IDataModelScriptClient_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), ReportError: ReportError:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDataModelScriptDebug_Impl: Sized { @@ -627,7 +627,7 @@ impl IDataModelScriptDebug_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDataModelScriptDebug2_Impl: Sized + IDataModelScriptDebug_Impl { @@ -650,7 +650,7 @@ impl IDataModelScriptDebug2_Vtbl { Self { base__: IDataModelScriptDebug_Vtbl::new::(), SetBreakpointAtFunction: SetBreakpointAtFunction:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDataModelScriptDebugBreakpoint_Impl: Sized { @@ -705,7 +705,7 @@ impl IDataModelScriptDebugBreakpoint_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDataModelScriptDebugBreakpointEnumerator_Impl: Sized { @@ -738,7 +738,7 @@ impl IDataModelScriptDebugBreakpointEnumerator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDataModelScriptDebugClient_Impl: Sized { @@ -755,7 +755,7 @@ impl IDataModelScriptDebugClient_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), NotifyDebugEvent: NotifyDebugEvent:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDataModelScriptDebugStack_Impl: Sized { @@ -788,7 +788,7 @@ impl IDataModelScriptDebugStack_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDataModelScriptDebugStackFrame_Impl: Sized { @@ -880,7 +880,7 @@ impl IDataModelScriptDebugStackFrame_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDataModelScriptDebugVariableSetEnumerator_Impl: Sized { @@ -907,7 +907,7 @@ impl IDataModelScriptDebugVariableSetEnumerator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDataModelScriptHostContext_Impl: Sized { @@ -940,7 +940,7 @@ impl IDataModelScriptHostContext_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDataModelScriptManager_Impl: Sized { @@ -1019,7 +1019,7 @@ impl IDataModelScriptManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDataModelScriptProvider_Impl: Sized { @@ -1097,7 +1097,7 @@ impl IDataModelScriptProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDataModelScriptProviderEnumerator_Impl: Sized { @@ -1130,7 +1130,7 @@ impl IDataModelScriptProviderEnumerator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1186,7 +1186,7 @@ impl IDataModelScriptTemplate_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDataModelScriptTemplateEnumerator_Impl: Sized { @@ -1219,7 +1219,7 @@ impl IDataModelScriptTemplateEnumerator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugAdvanced_Impl: Sized { @@ -1246,7 +1246,7 @@ impl IDebugAdvanced_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugAdvanced2_Impl: Sized { @@ -1308,7 +1308,7 @@ impl IDebugAdvanced2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugAdvanced3_Impl: Sized { @@ -1391,7 +1391,7 @@ impl IDebugAdvanced3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugAdvanced4_Impl: Sized { @@ -1481,7 +1481,7 @@ impl IDebugAdvanced4_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugBreakpoint_Impl: Sized { @@ -1683,7 +1683,7 @@ impl IDebugBreakpoint_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugBreakpoint2_Impl: Sized { @@ -1913,7 +1913,7 @@ impl IDebugBreakpoint2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugBreakpoint3_Impl: Sized { @@ -2156,7 +2156,7 @@ impl IDebugBreakpoint3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugClient_Impl: Sized { @@ -2550,7 +2550,7 @@ impl IDebugClient_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugClient2_Impl: Sized { @@ -3000,7 +3000,7 @@ impl IDebugClient2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugClient3_Impl: Sized { @@ -3484,7 +3484,7 @@ impl IDebugClient3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugClient4_Impl: Sized { @@ -4016,7 +4016,7 @@ impl IDebugClient4_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugClient5_Impl: Sized { @@ -4799,7 +4799,7 @@ impl IDebugClient5_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugClient6_Impl: Sized { @@ -5589,7 +5589,7 @@ impl IDebugClient6_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugClient7_Impl: Sized { @@ -6386,7 +6386,7 @@ impl IDebugClient7_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugClient8_Impl: Sized { @@ -7190,7 +7190,7 @@ impl IDebugClient8_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Kernel\"`"] @@ -8002,7 +8002,7 @@ impl IDebugControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Kernel\"`"] @@ -8894,7 +8894,7 @@ impl IDebugControl2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Kernel\"`"] @@ -9913,7 +9913,7 @@ impl IDebugControl3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Kernel\"`"] @@ -11339,7 +11339,7 @@ impl IDebugControl4_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Kernel\"`"] @@ -12806,7 +12806,7 @@ impl IDebugControl5_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Kernel\"`"] @@ -14293,7 +14293,7 @@ impl IDebugControl6_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Kernel\"`"] @@ -15787,7 +15787,7 @@ impl IDebugControl7_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugDataSpaces_Impl: Sized { @@ -15952,7 +15952,7 @@ impl IDebugDataSpaces_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Memory\"`"] @@ -16169,7 +16169,7 @@ impl IDebugDataSpaces2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Memory\"`, `\"Win32_System_SystemInformation\"`"] @@ -16427,7 +16427,7 @@ impl IDebugDataSpaces3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Memory\"`, `\"Win32_System_SystemInformation\"`"] @@ -16767,7 +16767,7 @@ impl IDebugDataSpaces4_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugEventCallbacks_Impl: Sized { @@ -16885,7 +16885,7 @@ impl IDebugEventCallbacks_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugEventCallbacksWide_Impl: Sized { @@ -17003,7 +17003,7 @@ impl IDebugEventCallbacksWide_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugEventContextCallbacks_Impl: Sized { @@ -17135,7 +17135,7 @@ impl IDebugEventContextCallbacks_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugFAEntryTags_Impl: Sized { @@ -17286,7 +17286,7 @@ impl IDebugFailureAnalysis_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Data_Xml_MsXml\"`, `\"Win32_System_Com\"`"] @@ -17476,7 +17476,7 @@ impl IDebugFailureAnalysis2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Data_Xml_MsXml\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -17809,7 +17809,7 @@ impl IDebugFailureAnalysis3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugHost_Impl: Sized { @@ -17861,7 +17861,7 @@ impl IDebugHost_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugHostBaseClass_Impl: Sized + IDebugHostSymbol_Impl { @@ -17884,7 +17884,7 @@ impl IDebugHostBaseClass_Vtbl { Self { base__: IDebugHostSymbol_Vtbl::new::(), GetOffset: GetOffset:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -17911,7 +17911,7 @@ impl IDebugHostConstant_Vtbl { Self { base__: IDebugHostSymbol_Vtbl::new::(), GetValue: GetValue:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDebugHostContext_Impl: Sized { @@ -17934,7 +17934,7 @@ impl IDebugHostContext_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), IsEqualTo: IsEqualTo:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -17990,7 +17990,7 @@ impl IDebugHostData_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDebugHostErrorSink_Impl: Sized { @@ -18007,7 +18007,7 @@ impl IDebugHostErrorSink_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), ReportError: ReportError:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugHostEvaluator_Impl: Sized { @@ -18034,7 +18034,7 @@ impl IDebugHostEvaluator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugHostEvaluator2_Impl: Sized + IDebugHostEvaluator_Impl { @@ -18051,7 +18051,7 @@ impl IDebugHostEvaluator2_Vtbl { Self { base__: IDebugHostEvaluator_Vtbl::new::(), AssignTo: AssignTo:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDebugHostExtensibility_Impl: Sized { @@ -18078,7 +18078,7 @@ impl IDebugHostExtensibility_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -18147,7 +18147,7 @@ impl IDebugHostField_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDebugHostMemory_Impl: Sized { @@ -18201,7 +18201,7 @@ impl IDebugHostMemory_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugHostMemory2_Impl: Sized + IDebugHostMemory_Impl { @@ -18224,7 +18224,7 @@ impl IDebugHostMemory2_Vtbl { Self { base__: IDebugHostMemory_Vtbl::new::(), LinearizeLocation: LinearizeLocation:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDebugHostModule_Impl: Sized + IDebugHostSymbol_Impl { @@ -18309,7 +18309,7 @@ impl IDebugHostModule_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDebugHostModule2_Impl: Sized + IDebugHostModule_Impl { @@ -18326,7 +18326,7 @@ impl IDebugHostModule2_Vtbl { Self { base__: IDebugHostModule_Vtbl::new::(), FindContainingSymbolByRVA: FindContainingSymbolByRVA:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDebugHostModuleSignature_Impl: Sized { @@ -18349,7 +18349,7 @@ impl IDebugHostModuleSignature_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), IsMatch: IsMatch:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugHostPublic_Impl: Sized + IDebugHostSymbol_Impl { @@ -18388,7 +18388,7 @@ impl IDebugHostPublic_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDebugHostScriptHost_Impl: Sized { @@ -18411,7 +18411,7 @@ impl IDebugHostScriptHost_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CreateContext: CreateContext:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugHostStatus_Impl: Sized { @@ -18434,7 +18434,7 @@ impl IDebugHostStatus_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), PollUserInterrupt: PollUserInterrupt:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugHostSymbol_Impl: Sized { @@ -18538,7 +18538,7 @@ impl IDebugHostSymbol_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugHostSymbol2_Impl: Sized + IDebugHostSymbol_Impl { @@ -18561,7 +18561,7 @@ impl IDebugHostSymbol2_Vtbl { Self { base__: IDebugHostSymbol_Vtbl::new::(), GetLanguage: GetLanguage:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDebugHostSymbolEnumerator_Impl: Sized { @@ -18594,7 +18594,7 @@ impl IDebugHostSymbolEnumerator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugHostSymbols_Impl: Sized { @@ -18692,7 +18692,7 @@ impl IDebugHostSymbols_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugHostType_Impl: Sized + IDebugHostSymbol_Impl { @@ -18934,7 +18934,7 @@ impl IDebugHostType_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDebugHostType2_Impl: Sized + IDebugHostType_Impl { @@ -19012,7 +19012,7 @@ impl IDebugHostType2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDebugHostTypeSignature_Impl: Sized { @@ -19058,7 +19058,7 @@ impl IDebugHostTypeSignature_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugInputCallbacks_Impl: Sized { @@ -19085,7 +19085,7 @@ impl IDebugInputCallbacks_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugOutputCallbacks_Impl: Sized { @@ -19102,7 +19102,7 @@ impl IDebugOutputCallbacks_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Output: Output:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugOutputCallbacks2_Impl: Sized { @@ -19142,7 +19142,7 @@ impl IDebugOutputCallbacks2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugOutputCallbacksWide_Impl: Sized { @@ -19159,7 +19159,7 @@ impl IDebugOutputCallbacksWide_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Output: Output:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugOutputStream_Impl: Sized { @@ -19176,7 +19176,7 @@ impl IDebugOutputStream_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Write: Write:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugPlmClient_Impl: Sized { @@ -19196,7 +19196,7 @@ impl IDebugPlmClient_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugPlmClient2_Impl: Sized { @@ -19223,7 +19223,7 @@ impl IDebugPlmClient2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugPlmClient3_Impl: Sized { @@ -19313,7 +19313,7 @@ impl IDebugPlmClient3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugRegisters_Impl: Sized { @@ -19433,7 +19433,7 @@ impl IDebugRegisters_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugRegisters2_Impl: Sized { @@ -19700,7 +19700,7 @@ impl IDebugRegisters2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugSymbolGroup_Impl: Sized { @@ -19789,7 +19789,7 @@ impl IDebugSymbolGroup_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugSymbolGroup2_Impl: Sized { @@ -19987,7 +19987,7 @@ impl IDebugSymbolGroup2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugSymbols_Impl: Sized { @@ -20422,7 +20422,7 @@ impl IDebugSymbols_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugSymbols2_Impl: Sized { @@ -20919,7 +20919,7 @@ impl IDebugSymbols2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugSymbols3_Impl: Sized { @@ -21944,7 +21944,7 @@ impl IDebugSymbols3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugSymbols4_Impl: Sized { @@ -23018,7 +23018,7 @@ impl IDebugSymbols4_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugSymbols5_Impl: Sized { @@ -24112,7 +24112,7 @@ impl IDebugSymbols5_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugSystemObjects_Impl: Sized { @@ -24466,7 +24466,7 @@ impl IDebugSystemObjects_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugSystemObjects2_Impl: Sized { @@ -24873,7 +24873,7 @@ impl IDebugSystemObjects2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugSystemObjects3_Impl: Sized { @@ -25373,7 +25373,7 @@ impl IDebugSystemObjects3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugSystemObjects4_Impl: Sized { @@ -25887,7 +25887,7 @@ impl IDebugSystemObjects4_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDynamicConceptProviderConcept_Impl: Sized { @@ -25935,7 +25935,7 @@ impl IDynamicConceptProviderConcept_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDynamicKeyProviderConcept_Impl: Sized { @@ -25975,7 +25975,7 @@ impl IDynamicKeyProviderConcept_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEquatableConcept_Impl: Sized { @@ -25998,7 +25998,7 @@ impl IEquatableConcept_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), AreObjectsEqual: AreObjectsEqual:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IHostDataModelAccess_Impl: Sized { @@ -26015,7 +26015,7 @@ impl IHostDataModelAccess_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetDataModel: GetDataModel:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IIndexableConcept_Impl: Sized { @@ -26055,7 +26055,7 @@ impl IIndexableConcept_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IIterableConcept_Impl: Sized { @@ -26094,7 +26094,7 @@ impl IIterableConcept_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IKeyEnumerator_Impl: Sized { @@ -26121,7 +26121,7 @@ impl IKeyEnumerator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IKeyStore_Impl: Sized { @@ -26169,7 +26169,7 @@ impl IKeyStore_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IModelIterator_Impl: Sized { @@ -26196,7 +26196,7 @@ impl IModelIterator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IModelKeyReference_Impl: Sized { @@ -26276,7 +26276,7 @@ impl IModelKeyReference_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IModelKeyReference2_Impl: Sized + IModelKeyReference_Impl { @@ -26293,7 +26293,7 @@ impl IModelKeyReference2_Vtbl { Self { base__: IModelKeyReference_Vtbl::new::(), OverrideContextObject: OverrideContextObject:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IModelMethod_Impl: Sized { @@ -26310,7 +26310,7 @@ impl IModelMethod_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Call: Call:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -26666,7 +26666,7 @@ impl IModelObject_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IModelPropertyAccessor_Impl: Sized { @@ -26699,7 +26699,7 @@ impl IModelPropertyAccessor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPreferredRuntimeTypeConcept_Impl: Sized { @@ -26725,7 +26725,7 @@ impl IPreferredRuntimeTypeConcept_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRawEnumerator_Impl: Sized { @@ -26752,7 +26752,7 @@ impl IRawEnumerator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IStringDisplayableConcept_Impl: Sized { @@ -26775,6 +26775,6 @@ impl IStringDisplayableConcept_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), ToDisplayString: ToDisplayString:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 9fd02e7261..bbc583d961 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 @@ -26,7 +26,7 @@ where #[inline] pub unsafe fn DebugCreate() -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { ::windows_targets::link!("dbgeng.dll" "system" fn DebugCreate(interfaceid : *const ::windows_core::GUID, interface : *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT); let mut result__ = ::std::ptr::null_mut(); @@ -35,15 +35,14 @@ where #[inline] pub unsafe fn DebugCreateEx(dbgengoptions: u32) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { ::windows_targets::link!("dbgeng.dll" "system" fn DebugCreateEx(interfaceid : *const ::windows_core::GUID, dbgengoptions : u32, interface : *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT); let mut result__ = ::std::ptr::null_mut(); DebugCreateEx(&T::IID, dbgengoptions, &mut result__).from_abi(result__) } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct DebugBaseEventCallbacks(::windows_core::IUnknown); +::windows_core::imp::com_interface!(DebugBaseEventCallbacks, DebugBaseEventCallbacks_Vtbl, 0); +::windows_core::imp::interface_hierarchy!(DebugBaseEventCallbacks, ::windows_core::IUnknown, IDebugEventCallbacks); impl DebugBaseEventCallbacks { pub unsafe fn GetInterestMask(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -103,21 +102,13 @@ impl DebugBaseEventCallbacks { (::windows_core::Interface::vtable(self).base__.ChangeSymbolState)(::windows_core::Interface::as_raw(self), flags, argument).ok() } } -::windows_core::imp::interface_hierarchy!(DebugBaseEventCallbacks, ::windows_core::IUnknown, IDebugEventCallbacks); -unsafe impl ::windows_core::Interface for DebugBaseEventCallbacks { - type Vtable = DebugBaseEventCallbacks_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DebugBaseEventCallbacks { - const IID: ::windows_core::GUID = ::windows_core::GUID::zeroed(); -} #[repr(C)] #[doc(hidden)] pub struct DebugBaseEventCallbacks_Vtbl { pub base__: IDebugEventCallbacks_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct DebugBaseEventCallbacksWide(::windows_core::IUnknown); +::windows_core::imp::com_interface!(DebugBaseEventCallbacksWide, DebugBaseEventCallbacksWide_Vtbl, 0); +::windows_core::imp::interface_hierarchy!(DebugBaseEventCallbacksWide, ::windows_core::IUnknown, IDebugEventCallbacksWide); impl DebugBaseEventCallbacksWide { pub unsafe fn GetInterestMask(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -177,21 +168,13 @@ impl DebugBaseEventCallbacksWide { (::windows_core::Interface::vtable(self).base__.ChangeSymbolState)(::windows_core::Interface::as_raw(self), flags, argument).ok() } } -::windows_core::imp::interface_hierarchy!(DebugBaseEventCallbacksWide, ::windows_core::IUnknown, IDebugEventCallbacksWide); -unsafe impl ::windows_core::Interface for DebugBaseEventCallbacksWide { - type Vtable = DebugBaseEventCallbacksWide_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DebugBaseEventCallbacksWide { - const IID: ::windows_core::GUID = ::windows_core::GUID::zeroed(); -} #[repr(C)] #[doc(hidden)] pub struct DebugBaseEventCallbacksWide_Vtbl { pub base__: IDebugEventCallbacksWide_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICodeAddressConcept(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICodeAddressConcept, ICodeAddressConcept_Vtbl, 0xc7371568_5c78_4a00_a4ab_6ef8823184cb); +::windows_core::imp::interface_hierarchy!(ICodeAddressConcept, ::windows_core::IUnknown); impl ICodeAddressConcept { pub unsafe fn GetContainingSymbol(&self, pcontextobject: P0) -> ::windows_core::Result where @@ -201,22 +184,14 @@ impl ICodeAddressConcept { (::windows_core::Interface::vtable(self).GetContainingSymbol)(::windows_core::Interface::as_raw(self), pcontextobject.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ICodeAddressConcept, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICodeAddressConcept { - type Vtable = ICodeAddressConcept_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICodeAddressConcept { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc7371568_5c78_4a00_a4ab_6ef8823184cb); -} #[repr(C)] #[doc(hidden)] pub struct ICodeAddressConcept_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetContainingSymbol: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcontextobject: *mut ::core::ffi::c_void, ppsymbol: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IComparableConcept(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IComparableConcept, IComparableConcept_Vtbl, 0xa7830646_9f0c_4a31_ba19_503f33e6c8a3); +::windows_core::imp::interface_hierarchy!(IComparableConcept, ::windows_core::IUnknown); impl IComparableConcept { pub unsafe fn CompareObjects(&self, contextobject: P0, otherobject: P1) -> ::windows_core::Result where @@ -227,22 +202,14 @@ impl IComparableConcept { (::windows_core::Interface::vtable(self).CompareObjects)(::windows_core::Interface::as_raw(self), contextobject.into_param().abi(), otherobject.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IComparableConcept, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IComparableConcept { - type Vtable = IComparableConcept_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IComparableConcept { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa7830646_9f0c_4a31_ba19_503f33e6c8a3); -} #[repr(C)] #[doc(hidden)] pub struct IComparableConcept_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub CompareObjects: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, contextobject: *mut ::core::ffi::c_void, otherobject: *mut ::core::ffi::c_void, comparisonresult: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataModelConcept(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDataModelConcept, IDataModelConcept_Vtbl, 0xfcb98d1d_1114_4fbf_b24c_effcb5def0d3); +::windows_core::imp::interface_hierarchy!(IDataModelConcept, ::windows_core::IUnknown); impl IDataModelConcept { pub unsafe fn InitializeObject(&self, modelobject: P0, matchingtypesignature: P1, wildcardmatches: P2) -> ::windows_core::Result<()> where @@ -257,13 +224,6 @@ impl IDataModelConcept { (::windows_core::Interface::vtable(self).GetName)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDataModelConcept, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDataModelConcept { - type Vtable = IDataModelConcept_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDataModelConcept { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfcb98d1d_1114_4fbf_b24c_effcb5def0d3); -} #[repr(C)] #[doc(hidden)] pub struct IDataModelConcept_Vtbl { @@ -271,9 +231,8 @@ pub struct IDataModelConcept_Vtbl { pub InitializeObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, modelobject: *mut ::core::ffi::c_void, matchingtypesignature: *mut ::core::ffi::c_void, wildcardmatches: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, modelname: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataModelManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDataModelManager, IDataModelManager_Vtbl, 0x73fe19f4_a110_4500_8ed9_3c28896f508c); +::windows_core::imp::interface_hierarchy!(IDataModelManager, ::windows_core::IUnknown); impl IDataModelManager { pub unsafe fn Close(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Close)(::windows_core::Interface::as_raw(self)).ok() @@ -407,13 +366,6 @@ impl IDataModelManager { (::windows_core::Interface::vtable(self).AcquireNamedModel)(::windows_core::Interface::as_raw(self), modelname.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDataModelManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDataModelManager { - type Vtable = IDataModelManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDataModelManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x73fe19f4_a110_4500_8ed9_3c28896f508c); -} #[repr(C)] #[doc(hidden)] pub struct IDataModelManager_Vtbl { @@ -445,9 +397,8 @@ pub struct IDataModelManager_Vtbl { pub UnregisterNamedModel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, modelname: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub AcquireNamedModel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, modelname: ::windows_core::PCWSTR, modelobject: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataModelManager2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDataModelManager2, IDataModelManager2_Vtbl, 0xf412c5ea_2284_4622_a660_a697160d3312); +::windows_core::imp::interface_hierarchy!(IDataModelManager2, ::windows_core::IUnknown, IDataModelManager); impl IDataModelManager2 { pub unsafe fn Close(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.Close)(::windows_core::Interface::as_raw(self)).ok() @@ -601,13 +552,6 @@ impl IDataModelManager2 { (::windows_core::Interface::vtable(self).CreateTypedIntrinsicObjectEx)(::windows_core::Interface::as_raw(self), context.into_param().abi(), intrinsicdata, r#type.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDataModelManager2, ::windows_core::IUnknown, IDataModelManager); -unsafe impl ::windows_core::Interface for IDataModelManager2 { - type Vtable = IDataModelManager2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDataModelManager2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf412c5ea_2284_4622_a660_a697160d3312); -} #[repr(C)] #[doc(hidden)] pub struct IDataModelManager2_Vtbl { @@ -618,9 +562,8 @@ pub struct IDataModelManager2_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] CreateTypedIntrinsicObjectEx: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataModelNameBinder(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDataModelNameBinder, IDataModelNameBinder_Vtbl, 0xaf352b7b_8292_4c01_b360_2dc3696c65e7); +::windows_core::imp::interface_hierarchy!(IDataModelNameBinder, ::windows_core::IUnknown); impl IDataModelNameBinder { pub unsafe fn BindValue(&self, contextobject: P0, name: P1, value: *mut ::core::option::Option, metadata: ::core::option::Option<*mut ::core::option::Option>) -> ::windows_core::Result<()> where @@ -651,13 +594,6 @@ impl IDataModelNameBinder { (::windows_core::Interface::vtable(self).EnumerateReferences)(::windows_core::Interface::as_raw(self), contextobject.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDataModelNameBinder, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDataModelNameBinder { - type Vtable = IDataModelNameBinder_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDataModelNameBinder { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaf352b7b_8292_4c01_b360_2dc3696c65e7); -} #[repr(C)] #[doc(hidden)] pub struct IDataModelNameBinder_Vtbl { @@ -667,9 +603,8 @@ pub struct IDataModelNameBinder_Vtbl { pub EnumerateValues: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, contextobject: *mut ::core::ffi::c_void, enumerator: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub EnumerateReferences: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, contextobject: *mut ::core::ffi::c_void, enumerator: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataModelScript(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDataModelScript, IDataModelScript_Vtbl, 0x7b4d30fc_b14a_49f8_8d87_d9a1480c97f7); +::windows_core::imp::interface_hierarchy!(IDataModelScript, ::windows_core::IUnknown); impl IDataModelScript { pub unsafe fn GetName(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -709,13 +644,6 @@ impl IDataModelScript { (::windows_core::Interface::vtable(self).InvokeMain)(::windows_core::Interface::as_raw(self), client.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IDataModelScript, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDataModelScript { - type Vtable = IDataModelScript_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDataModelScript { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7b4d30fc_b14a_49f8_8d87_d9a1480c97f7); -} #[repr(C)] #[doc(hidden)] pub struct IDataModelScript_Vtbl { @@ -731,9 +659,8 @@ pub struct IDataModelScript_Vtbl { pub IsInvocable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, isinvocable: *mut bool) -> ::windows_core::HRESULT, pub InvokeMain: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, client: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataModelScriptClient(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDataModelScriptClient, IDataModelScriptClient_Vtbl, 0x3b362b0e_89f0_46c6_a663_dfdc95194aef); +::windows_core::imp::interface_hierarchy!(IDataModelScriptClient, ::windows_core::IUnknown); impl IDataModelScriptClient { pub unsafe fn ReportError(&self, errclass: ErrorClass, hrfail: ::windows_core::HRESULT, message: P0, line: u32, position: u32) -> ::windows_core::Result<()> where @@ -742,22 +669,14 @@ impl IDataModelScriptClient { (::windows_core::Interface::vtable(self).ReportError)(::windows_core::Interface::as_raw(self), errclass, hrfail, message.into_param().abi(), line, position).ok() } } -::windows_core::imp::interface_hierarchy!(IDataModelScriptClient, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDataModelScriptClient { - type Vtable = IDataModelScriptClient_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDataModelScriptClient { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3b362b0e_89f0_46c6_a663_dfdc95194aef); -} #[repr(C)] #[doc(hidden)] pub struct IDataModelScriptClient_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub ReportError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, errclass: ErrorClass, hrfail: ::windows_core::HRESULT, message: ::windows_core::PCWSTR, line: u32, position: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataModelScriptDebug(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDataModelScriptDebug, IDataModelScriptDebug_Vtbl, 0xde8e0945_9750_4471_ab76_a8f79d6ec350); +::windows_core::imp::interface_hierarchy!(IDataModelScriptDebug, ::windows_core::IUnknown); impl IDataModelScriptDebug { pub unsafe fn GetDebugState(&self) -> ScriptDebugState { (::windows_core::Interface::vtable(self).GetDebugState)(::windows_core::Interface::as_raw(self)) @@ -801,13 +720,6 @@ impl IDataModelScriptDebug { (::windows_core::Interface::vtable(self).StopDebugging)(::windows_core::Interface::as_raw(self), debugclient.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IDataModelScriptDebug, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDataModelScriptDebug { - type Vtable = IDataModelScriptDebug_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDataModelScriptDebug { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xde8e0945_9750_4471_ab76_a8f79d6ec350); -} #[repr(C)] #[doc(hidden)] pub struct IDataModelScriptDebug_Vtbl { @@ -823,9 +735,8 @@ pub struct IDataModelScriptDebug_Vtbl { pub StartDebugging: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, debugclient: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub StopDebugging: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, debugclient: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataModelScriptDebug2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDataModelScriptDebug2, IDataModelScriptDebug2_Vtbl, 0xcbb10ed3_839e_426c_9243_e23535c1ae1a); +::windows_core::imp::interface_hierarchy!(IDataModelScriptDebug2, ::windows_core::IUnknown, IDataModelScriptDebug); impl IDataModelScriptDebug2 { pub unsafe fn GetDebugState(&self) -> ScriptDebugState { (::windows_core::Interface::vtable(self).base__.GetDebugState)(::windows_core::Interface::as_raw(self)) @@ -876,22 +787,14 @@ impl IDataModelScriptDebug2 { (::windows_core::Interface::vtable(self).SetBreakpointAtFunction)(::windows_core::Interface::as_raw(self), functionname.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDataModelScriptDebug2, ::windows_core::IUnknown, IDataModelScriptDebug); -unsafe impl ::windows_core::Interface for IDataModelScriptDebug2 { - type Vtable = IDataModelScriptDebug2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDataModelScriptDebug2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcbb10ed3_839e_426c_9243_e23535c1ae1a); -} #[repr(C)] #[doc(hidden)] pub struct IDataModelScriptDebug2_Vtbl { pub base__: IDataModelScriptDebug_Vtbl, pub SetBreakpointAtFunction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, functionname: ::windows_core::PCWSTR, breakpoint: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataModelScriptDebugBreakpoint(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDataModelScriptDebugBreakpoint, IDataModelScriptDebugBreakpoint_Vtbl, 0x6bb27b35_02e6_47cb_90a0_5371244032de); +::windows_core::imp::interface_hierarchy!(IDataModelScriptDebugBreakpoint, ::windows_core::IUnknown); impl IDataModelScriptDebugBreakpoint { pub unsafe fn GetId(&self) -> u64 { (::windows_core::Interface::vtable(self).GetId)(::windows_core::Interface::as_raw(self)) @@ -912,13 +815,6 @@ impl IDataModelScriptDebugBreakpoint { (::windows_core::Interface::vtable(self).GetPosition)(::windows_core::Interface::as_raw(self), position, ::core::mem::transmute(positionspanend.unwrap_or(::std::ptr::null_mut())), ::core::mem::transmute(linetext.unwrap_or(::std::ptr::null_mut()))).ok() } } -::windows_core::imp::interface_hierarchy!(IDataModelScriptDebugBreakpoint, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDataModelScriptDebugBreakpoint { - type Vtable = IDataModelScriptDebugBreakpoint_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDataModelScriptDebugBreakpoint { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6bb27b35_02e6_47cb_90a0_5371244032de); -} #[repr(C)] #[doc(hidden)] pub struct IDataModelScriptDebugBreakpoint_Vtbl { @@ -930,9 +826,8 @@ pub struct IDataModelScriptDebugBreakpoint_Vtbl { pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), pub GetPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, position: *mut ScriptDebugPosition, positionspanend: *mut ScriptDebugPosition, linetext: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataModelScriptDebugBreakpointEnumerator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDataModelScriptDebugBreakpointEnumerator, IDataModelScriptDebugBreakpointEnumerator_Vtbl, 0x39484a75_b4f3_4799_86da_691afa57b299); +::windows_core::imp::interface_hierarchy!(IDataModelScriptDebugBreakpointEnumerator, ::windows_core::IUnknown); impl IDataModelScriptDebugBreakpointEnumerator { pub unsafe fn Reset(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Reset)(::windows_core::Interface::as_raw(self)).ok() @@ -942,13 +837,6 @@ impl IDataModelScriptDebugBreakpointEnumerator { (::windows_core::Interface::vtable(self).GetNext)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDataModelScriptDebugBreakpointEnumerator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDataModelScriptDebugBreakpointEnumerator { - type Vtable = IDataModelScriptDebugBreakpointEnumerator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDataModelScriptDebugBreakpointEnumerator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x39484a75_b4f3_4799_86da_691afa57b299); -} #[repr(C)] #[doc(hidden)] pub struct IDataModelScriptDebugBreakpointEnumerator_Vtbl { @@ -956,9 +844,8 @@ pub struct IDataModelScriptDebugBreakpointEnumerator_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetNext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, breakpoint: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataModelScriptDebugClient(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDataModelScriptDebugClient, IDataModelScriptDebugClient_Vtbl, 0x53159b6d_d4c4_471b_a863_5b110ca800ca); +::windows_core::imp::interface_hierarchy!(IDataModelScriptDebugClient, ::windows_core::IUnknown); impl IDataModelScriptDebugClient { pub unsafe fn NotifyDebugEvent(&self, peventinfo: *const ScriptDebugEventInformation, pscript: P0, peventdataobject: P1, resumeeventkind: *mut ScriptExecutionKind) -> ::windows_core::Result<()> where @@ -968,22 +855,14 @@ impl IDataModelScriptDebugClient { (::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::imp::interface_hierarchy!(IDataModelScriptDebugClient, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDataModelScriptDebugClient { - type Vtable = IDataModelScriptDebugClient_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDataModelScriptDebugClient { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x53159b6d_d4c4_471b_a863_5b110ca800ca); -} #[repr(C)] #[doc(hidden)] pub struct IDataModelScriptDebugClient_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub NotifyDebugEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, peventinfo: *const ScriptDebugEventInformation, pscript: *mut ::core::ffi::c_void, peventdataobject: *mut ::core::ffi::c_void, resumeeventkind: *mut ScriptExecutionKind) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataModelScriptDebugStack(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDataModelScriptDebugStack, IDataModelScriptDebugStack_Vtbl, 0x051364dd_e449_443e_9762_fe578f4a5473); +::windows_core::imp::interface_hierarchy!(IDataModelScriptDebugStack, ::windows_core::IUnknown); impl IDataModelScriptDebugStack { pub unsafe fn GetFrameCount(&self) -> u64 { (::windows_core::Interface::vtable(self).GetFrameCount)(::windows_core::Interface::as_raw(self)) @@ -993,13 +872,6 @@ impl IDataModelScriptDebugStack { (::windows_core::Interface::vtable(self).GetStackFrame)(::windows_core::Interface::as_raw(self), framenumber, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDataModelScriptDebugStack, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDataModelScriptDebugStack { - type Vtable = IDataModelScriptDebugStack_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDataModelScriptDebugStack { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x051364dd_e449_443e_9762_fe578f4a5473); -} #[repr(C)] #[doc(hidden)] pub struct IDataModelScriptDebugStack_Vtbl { @@ -1007,9 +879,8 @@ pub struct IDataModelScriptDebugStack_Vtbl { pub GetFrameCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> u64, pub GetStackFrame: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, framenumber: u64, stackframe: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataModelScriptDebugStackFrame(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDataModelScriptDebugStackFrame, IDataModelScriptDebugStackFrame_Vtbl, 0xdec6ed5e_6360_4941_ab4c_a26409de4f82); +::windows_core::imp::interface_hierarchy!(IDataModelScriptDebugStackFrame, ::windows_core::IUnknown); impl IDataModelScriptDebugStackFrame { pub unsafe fn GetName(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -1041,13 +912,6 @@ impl IDataModelScriptDebugStackFrame { (::windows_core::Interface::vtable(self).EnumerateArguments)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDataModelScriptDebugStackFrame, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDataModelScriptDebugStackFrame { - type Vtable = IDataModelScriptDebugStackFrame_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDataModelScriptDebugStackFrame { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdec6ed5e_6360_4941_ab4c_a26409de4f82); -} #[repr(C)] #[doc(hidden)] pub struct IDataModelScriptDebugStackFrame_Vtbl { @@ -1060,9 +924,8 @@ pub struct IDataModelScriptDebugStackFrame_Vtbl { pub EnumerateLocals: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, variablesenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub EnumerateArguments: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, variablesenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataModelScriptDebugVariableSetEnumerator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDataModelScriptDebugVariableSetEnumerator, IDataModelScriptDebugVariableSetEnumerator_Vtbl, 0x0f9feed7_d045_4ac3_98a8_a98942cf6a35); +::windows_core::imp::interface_hierarchy!(IDataModelScriptDebugVariableSetEnumerator, ::windows_core::IUnknown); impl IDataModelScriptDebugVariableSetEnumerator { pub unsafe fn Reset(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Reset)(::windows_core::Interface::as_raw(self)).ok() @@ -1071,13 +934,6 @@ impl IDataModelScriptDebugVariableSetEnumerator { (::windows_core::Interface::vtable(self).GetNext)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(variablename), ::core::mem::transmute(variablevalue.unwrap_or(::std::ptr::null_mut())), ::core::mem::transmute(variablemetadata.unwrap_or(::std::ptr::null_mut()))).ok() } } -::windows_core::imp::interface_hierarchy!(IDataModelScriptDebugVariableSetEnumerator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDataModelScriptDebugVariableSetEnumerator { - type Vtable = IDataModelScriptDebugVariableSetEnumerator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDataModelScriptDebugVariableSetEnumerator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0f9feed7_d045_4ac3_98a8_a98942cf6a35); -} #[repr(C)] #[doc(hidden)] pub struct IDataModelScriptDebugVariableSetEnumerator_Vtbl { @@ -1085,9 +941,8 @@ pub struct IDataModelScriptDebugVariableSetEnumerator_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetNext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, variablename: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>, variablevalue: *mut *mut ::core::ffi::c_void, variablemetadata: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataModelScriptHostContext(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDataModelScriptHostContext, IDataModelScriptHostContext_Vtbl, 0x014d366a_1f23_4981_9219_b2db8b402054); +::windows_core::imp::interface_hierarchy!(IDataModelScriptHostContext, ::windows_core::IUnknown); impl IDataModelScriptHostContext { pub unsafe fn NotifyScriptChange(&self, script: P0, changekind: ScriptChangeKind) -> ::windows_core::Result<()> where @@ -1100,13 +955,6 @@ impl IDataModelScriptHostContext { (::windows_core::Interface::vtable(self).GetNamespaceObject)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDataModelScriptHostContext, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDataModelScriptHostContext { - type Vtable = IDataModelScriptHostContext_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDataModelScriptHostContext { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x014d366a_1f23_4981_9219_b2db8b402054); -} #[repr(C)] #[doc(hidden)] pub struct IDataModelScriptHostContext_Vtbl { @@ -1114,9 +962,8 @@ pub struct IDataModelScriptHostContext_Vtbl { pub NotifyScriptChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, script: *mut ::core::ffi::c_void, changekind: ScriptChangeKind) -> ::windows_core::HRESULT, pub GetNamespaceObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, namespaceobject: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataModelScriptManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDataModelScriptManager, IDataModelScriptManager_Vtbl, 0x6fd11e33_e5ad_410b_8011_68c6bc4bf80d); +::windows_core::imp::interface_hierarchy!(IDataModelScriptManager, ::windows_core::IUnknown); impl IDataModelScriptManager { pub unsafe fn GetDefaultNameBinder(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1153,13 +1000,6 @@ impl IDataModelScriptManager { (::windows_core::Interface::vtable(self).EnumerateScriptProviders)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDataModelScriptManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDataModelScriptManager { - type Vtable = IDataModelScriptManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDataModelScriptManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6fd11e33_e5ad_410b_8011_68c6bc4bf80d); -} #[repr(C)] #[doc(hidden)] pub struct IDataModelScriptManager_Vtbl { @@ -1171,9 +1011,8 @@ pub struct IDataModelScriptManager_Vtbl { pub FindProviderForScriptExtension: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, scriptextension: ::windows_core::PCWSTR, provider: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub EnumerateScriptProviders: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enumerator: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataModelScriptProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDataModelScriptProvider, IDataModelScriptProvider_Vtbl, 0x513461e0_4fca_48ce_8658_32f3e2056f3b); +::windows_core::imp::interface_hierarchy!(IDataModelScriptProvider, ::windows_core::IUnknown); impl IDataModelScriptProvider { pub unsafe fn GetName(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -1196,13 +1035,6 @@ impl IDataModelScriptProvider { (::windows_core::Interface::vtable(self).EnumerateTemplates)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDataModelScriptProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDataModelScriptProvider { - type Vtable = IDataModelScriptProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDataModelScriptProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x513461e0_4fca_48ce_8658_32f3e2056f3b); -} #[repr(C)] #[doc(hidden)] pub struct IDataModelScriptProvider_Vtbl { @@ -1213,9 +1045,8 @@ pub struct IDataModelScriptProvider_Vtbl { pub GetDefaultTemplateContent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, templatecontent: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub EnumerateTemplates: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enumerator: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataModelScriptProviderEnumerator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDataModelScriptProviderEnumerator, IDataModelScriptProviderEnumerator_Vtbl, 0x95ba00e2_704a_4fe2_a8f1_a7e7d8fb0941); +::windows_core::imp::interface_hierarchy!(IDataModelScriptProviderEnumerator, ::windows_core::IUnknown); impl IDataModelScriptProviderEnumerator { pub unsafe fn Reset(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Reset)(::windows_core::Interface::as_raw(self)).ok() @@ -1225,13 +1056,6 @@ impl IDataModelScriptProviderEnumerator { (::windows_core::Interface::vtable(self).GetNext)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDataModelScriptProviderEnumerator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDataModelScriptProviderEnumerator { - type Vtable = IDataModelScriptProviderEnumerator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDataModelScriptProviderEnumerator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x95ba00e2_704a_4fe2_a8f1_a7e7d8fb0941); -} #[repr(C)] #[doc(hidden)] pub struct IDataModelScriptProviderEnumerator_Vtbl { @@ -1239,9 +1063,8 @@ pub struct IDataModelScriptProviderEnumerator_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetNext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, provider: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataModelScriptTemplate(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDataModelScriptTemplate, IDataModelScriptTemplate_Vtbl, 0x1303dec4_fa3b_4f1b_9224_b953d16babb5); +::windows_core::imp::interface_hierarchy!(IDataModelScriptTemplate, ::windows_core::IUnknown); impl IDataModelScriptTemplate { pub unsafe fn GetName(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -1258,13 +1081,6 @@ impl IDataModelScriptTemplate { (::windows_core::Interface::vtable(self).GetContent)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDataModelScriptTemplate, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDataModelScriptTemplate { - type Vtable = IDataModelScriptTemplate_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDataModelScriptTemplate { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1303dec4_fa3b_4f1b_9224_b953d16babb5); -} #[repr(C)] #[doc(hidden)] pub struct IDataModelScriptTemplate_Vtbl { @@ -1276,9 +1092,8 @@ pub struct IDataModelScriptTemplate_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetContent: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataModelScriptTemplateEnumerator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDataModelScriptTemplateEnumerator, IDataModelScriptTemplateEnumerator_Vtbl, 0x69ce6ae2_2268_4e6f_b062_20ce62bfe677); +::windows_core::imp::interface_hierarchy!(IDataModelScriptTemplateEnumerator, ::windows_core::IUnknown); impl IDataModelScriptTemplateEnumerator { pub unsafe fn Reset(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Reset)(::windows_core::Interface::as_raw(self)).ok() @@ -1288,13 +1103,6 @@ impl IDataModelScriptTemplateEnumerator { (::windows_core::Interface::vtable(self).GetNext)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDataModelScriptTemplateEnumerator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDataModelScriptTemplateEnumerator { - type Vtable = IDataModelScriptTemplateEnumerator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDataModelScriptTemplateEnumerator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x69ce6ae2_2268_4e6f_b062_20ce62bfe677); -} #[repr(C)] #[doc(hidden)] pub struct IDataModelScriptTemplateEnumerator_Vtbl { @@ -1302,9 +1110,8 @@ pub struct IDataModelScriptTemplateEnumerator_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetNext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, templatecontent: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugAdvanced(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugAdvanced, IDebugAdvanced_Vtbl, 0xf2df5f53_071f_47bd_9de6_5734c3fed689); +::windows_core::imp::interface_hierarchy!(IDebugAdvanced, ::windows_core::IUnknown); impl IDebugAdvanced { pub unsafe fn GetThreadContext(&self, context: *mut ::core::ffi::c_void, contextsize: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetThreadContext)(::windows_core::Interface::as_raw(self), context, contextsize).ok() @@ -1313,13 +1120,6 @@ impl IDebugAdvanced { (::windows_core::Interface::vtable(self).SetThreadContext)(::windows_core::Interface::as_raw(self), context, contextsize).ok() } } -::windows_core::imp::interface_hierarchy!(IDebugAdvanced, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugAdvanced { - type Vtable = IDebugAdvanced_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugAdvanced { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf2df5f53_071f_47bd_9de6_5734c3fed689); -} #[repr(C)] #[doc(hidden)] pub struct IDebugAdvanced_Vtbl { @@ -1327,9 +1127,8 @@ pub struct IDebugAdvanced_Vtbl { pub GetThreadContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, contextsize: u32) -> ::windows_core::HRESULT, pub SetThreadContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: *const ::core::ffi::c_void, contextsize: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugAdvanced2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugAdvanced2, IDebugAdvanced2_Vtbl, 0x716d14c9_119b_4ba5_af1f_0890e672416a); +::windows_core::imp::interface_hierarchy!(IDebugAdvanced2, ::windows_core::IUnknown); impl IDebugAdvanced2 { pub unsafe fn GetThreadContext(&self, context: *mut ::core::ffi::c_void, contextsize: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetThreadContext)(::windows_core::Interface::as_raw(self), context, contextsize).ok() @@ -1359,13 +1158,6 @@ impl IDebugAdvanced2 { (::windows_core::Interface::vtable(self).GetSystemObjectInformation)(::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()))).ok() } } -::windows_core::imp::interface_hierarchy!(IDebugAdvanced2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugAdvanced2 { - type Vtable = IDebugAdvanced2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugAdvanced2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x716d14c9_119b_4ba5_af1f_0890e672416a); -} #[repr(C)] #[doc(hidden)] pub struct IDebugAdvanced2_Vtbl { @@ -1378,9 +1170,8 @@ pub struct IDebugAdvanced2_Vtbl { pub GetSymbolInformation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, which: u32, arg64: u64, arg32: u32, buffer: *mut ::core::ffi::c_void, buffersize: u32, infosize: *mut u32, stringbuffer: ::windows_core::PSTR, stringbuffersize: u32, stringsize: *mut u32) -> ::windows_core::HRESULT, pub GetSystemObjectInformation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, which: u32, arg64: u64, arg32: u32, buffer: *mut ::core::ffi::c_void, buffersize: u32, infosize: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugAdvanced3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugAdvanced3, IDebugAdvanced3_Vtbl, 0xcba4abb4_84c4_444d_87ca_a04e13286739); +::windows_core::imp::interface_hierarchy!(IDebugAdvanced3, ::windows_core::IUnknown); impl IDebugAdvanced3 { pub unsafe fn GetThreadContext(&self, context: *mut ::core::ffi::c_void, contextsize: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetThreadContext)(::windows_core::Interface::as_raw(self), context, contextsize).ok() @@ -1425,13 +1216,6 @@ impl IDebugAdvanced3 { (::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() } } -::windows_core::imp::interface_hierarchy!(IDebugAdvanced3, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugAdvanced3 { - type Vtable = IDebugAdvanced3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugAdvanced3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcba4abb4_84c4_444d_87ca_a04e13286739); -} #[repr(C)] #[doc(hidden)] pub struct IDebugAdvanced3_Vtbl { @@ -1447,9 +1231,8 @@ pub struct IDebugAdvanced3_Vtbl { pub FindSourceFileAndTokenWide: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, startelement: u32, modaddr: u64, file: ::windows_core::PCWSTR, flags: u32, filetoken: *const ::core::ffi::c_void, filetokensize: u32, foundelement: *mut u32, buffer: ::windows_core::PWSTR, buffersize: u32, foundsize: *mut u32) -> ::windows_core::HRESULT, pub GetSymbolInformationWide: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, which: u32, arg64: u64, arg32: u32, buffer: *mut ::core::ffi::c_void, buffersize: u32, infosize: *mut u32, stringbuffer: ::windows_core::PWSTR, stringbuffersize: u32, stringsize: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugAdvanced4(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugAdvanced4, IDebugAdvanced4_Vtbl, 0xd1069067_2a65_4bf0_ae97_76184b67856b); +::windows_core::imp::interface_hierarchy!(IDebugAdvanced4, ::windows_core::IUnknown); impl IDebugAdvanced4 { pub unsafe fn GetThreadContext(&self, context: *mut ::core::ffi::c_void, contextsize: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetThreadContext)(::windows_core::Interface::as_raw(self), context, contextsize).ok() @@ -1510,13 +1293,6 @@ impl IDebugAdvanced4 { .ok() } } -::windows_core::imp::interface_hierarchy!(IDebugAdvanced4, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugAdvanced4 { - type Vtable = IDebugAdvanced4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugAdvanced4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd1069067_2a65_4bf0_ae97_76184b67856b); -} #[repr(C)] #[doc(hidden)] pub struct IDebugAdvanced4_Vtbl { @@ -1533,9 +1309,8 @@ pub struct IDebugAdvanced4_Vtbl { pub GetSymbolInformationWide: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, which: u32, arg64: u64, arg32: u32, buffer: *mut ::core::ffi::c_void, buffersize: u32, infosize: *mut u32, stringbuffer: ::windows_core::PWSTR, stringbuffersize: u32, stringsize: *mut u32) -> ::windows_core::HRESULT, pub GetSymbolInformationWideEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, which: u32, arg64: u64, arg32: u32, buffer: *mut ::core::ffi::c_void, buffersize: u32, infosize: *mut u32, stringbuffer: ::windows_core::PWSTR, stringbuffersize: u32, stringsize: *mut u32, pinfoex: *mut SYMBOL_INFO_EX) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugBreakpoint(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugBreakpoint, IDebugBreakpoint_Vtbl, 0x5bd9d474_5975_423a_b88b_65a8e7110e65); +::windows_core::imp::interface_hierarchy!(IDebugBreakpoint, ::windows_core::IUnknown); impl IDebugBreakpoint { pub unsafe fn GetId(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1614,13 +1389,6 @@ impl IDebugBreakpoint { (::windows_core::Interface::vtable(self).GetParameters)(::windows_core::Interface::as_raw(self), params).ok() } } -::windows_core::imp::interface_hierarchy!(IDebugBreakpoint, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugBreakpoint { - type Vtable = IDebugBreakpoint_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugBreakpoint { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5bd9d474_5975_423a_b88b_65a8e7110e65); -} #[repr(C)] #[doc(hidden)] pub struct IDebugBreakpoint_Vtbl { @@ -1647,9 +1415,8 @@ pub struct IDebugBreakpoint_Vtbl { pub SetOffsetExpression: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, expression: ::windows_core::PCSTR) -> ::windows_core::HRESULT, pub GetParameters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, params: *mut DEBUG_BREAKPOINT_PARAMETERS) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugBreakpoint2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugBreakpoint2, IDebugBreakpoint2_Vtbl, 0x1b278d20_79f2_426e_a3f9_c1ddf375d48e); +::windows_core::imp::interface_hierarchy!(IDebugBreakpoint2, ::windows_core::IUnknown); impl IDebugBreakpoint2 { pub unsafe fn GetId(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1746,13 +1513,6 @@ impl IDebugBreakpoint2 { (::windows_core::Interface::vtable(self).SetOffsetExpressionWide)(::windows_core::Interface::as_raw(self), expression.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IDebugBreakpoint2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugBreakpoint2 { - type Vtable = IDebugBreakpoint2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugBreakpoint2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1b278d20_79f2_426e_a3f9_c1ddf375d48e); -} #[repr(C)] #[doc(hidden)] pub struct IDebugBreakpoint2_Vtbl { @@ -1783,9 +1543,8 @@ pub struct IDebugBreakpoint2_Vtbl { pub GetOffsetExpressionWide: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, buffer: ::windows_core::PWSTR, buffersize: u32, expressionsize: *mut u32) -> ::windows_core::HRESULT, pub SetOffsetExpressionWide: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, expression: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugBreakpoint3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugBreakpoint3, IDebugBreakpoint3_Vtbl, 0x38f5c249_b448_43bb_9835_579d4ec02249); +::windows_core::imp::interface_hierarchy!(IDebugBreakpoint3, ::windows_core::IUnknown); impl IDebugBreakpoint3 { pub unsafe fn GetId(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1886,13 +1645,6 @@ impl IDebugBreakpoint3 { (::windows_core::Interface::vtable(self).GetGuid)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDebugBreakpoint3, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugBreakpoint3 { - type Vtable = IDebugBreakpoint3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugBreakpoint3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x38f5c249_b448_43bb_9835_579d4ec02249); -} #[repr(C)] #[doc(hidden)] pub struct IDebugBreakpoint3_Vtbl { @@ -1924,9 +1676,8 @@ pub struct IDebugBreakpoint3_Vtbl { pub SetOffsetExpressionWide: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, expression: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub GetGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guid: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugClient(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugClient, IDebugClient_Vtbl, 0x27fe5639_8407_4f47_8364_ee118fb08ac8); +::windows_core::imp::interface_hierarchy!(IDebugClient, ::windows_core::IUnknown); impl IDebugClient { pub unsafe fn AttachKernel(&self, flags: u32, connectoptions: P0) -> ::windows_core::Result<()> where @@ -2144,13 +1895,6 @@ impl IDebugClient { (::windows_core::Interface::vtable(self).FlushCallbacks)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IDebugClient, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugClient { - type Vtable = IDebugClient_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugClient { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x27fe5639_8407_4f47_8364_ee118fb08ac8); -} #[repr(C)] #[doc(hidden)] pub struct IDebugClient_Vtbl { @@ -2201,9 +1945,8 @@ pub struct IDebugClient_Vtbl { pub SetEventCallbacks: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, callbacks: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub FlushCallbacks: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugClient2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugClient2, IDebugClient2_Vtbl, 0xedbed635_372e_4dab_bbfe_ed0d2f63be81); +::windows_core::imp::interface_hierarchy!(IDebugClient2, ::windows_core::IUnknown); impl IDebugClient2 { pub unsafe fn AttachKernel(&self, flags: u32, connectoptions: P0) -> ::windows_core::Result<()> where @@ -2452,13 +2195,6 @@ impl IDebugClient2 { (::windows_core::Interface::vtable(self).AbandonCurrentProcess)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IDebugClient2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugClient2 { - type Vtable = IDebugClient2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugClient2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xedbed635_372e_4dab_bbfe_ed0d2f63be81); -} #[repr(C)] #[doc(hidden)] pub struct IDebugClient2_Vtbl { @@ -2517,9 +2253,8 @@ pub struct IDebugClient2_Vtbl { pub DetachCurrentProcess: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub AbandonCurrentProcess: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugClient3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugClient3, IDebugClient3_Vtbl, 0xdd492d7f_71b8_4ad6_a8dc_1c887479ff91); +::windows_core::imp::interface_hierarchy!(IDebugClient3, ::windows_core::IUnknown); impl IDebugClient3 { pub unsafe fn AttachKernel(&self, flags: u32, connectoptions: P0) -> ::windows_core::Result<()> where @@ -2802,13 +2537,6 @@ impl IDebugClient3 { (::windows_core::Interface::vtable(self).CreateProcessAndAttachWide)(::windows_core::Interface::as_raw(self), server, commandline.into_param().abi(), createflags, processid, attachflags).ok() } } -::windows_core::imp::interface_hierarchy!(IDebugClient3, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugClient3 { - type Vtable = IDebugClient3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugClient3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdd492d7f_71b8_4ad6_a8dc_1c887479ff91); -} #[repr(C)] #[doc(hidden)] pub struct IDebugClient3_Vtbl { @@ -2871,9 +2599,8 @@ pub struct IDebugClient3_Vtbl { pub CreateProcessWide: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, server: u64, commandline: ::windows_core::PCWSTR, createflags: u32) -> ::windows_core::HRESULT, pub CreateProcessAndAttachWide: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, server: u64, commandline: ::windows_core::PCWSTR, createflags: u32, processid: u32, attachflags: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugClient4(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugClient4, IDebugClient4_Vtbl, 0xca83c3de_5089_4cf8_93c8_d892387f2a5e); +::windows_core::imp::interface_hierarchy!(IDebugClient4, ::windows_core::IUnknown); impl IDebugClient4 { pub unsafe fn AttachKernel(&self, flags: u32, connectoptions: P0) -> ::windows_core::Result<()> where @@ -3185,13 +2912,6 @@ impl IDebugClient4 { (::windows_core::Interface::vtable(self).GetDumpFileWide)(::windows_core::Interface::as_raw(self), index, ::core::mem::transmute(buffer.as_deref().map_or(::core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), ::core::mem::transmute(namesize.unwrap_or(::std::ptr::null_mut())), ::core::mem::transmute(handle.unwrap_or(::std::ptr::null_mut())), r#type).ok() } } -::windows_core::imp::interface_hierarchy!(IDebugClient4, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugClient4 { - type Vtable = IDebugClient4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugClient4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xca83c3de_5089_4cf8_93c8_d892387f2a5e); -} #[repr(C)] #[doc(hidden)] pub struct IDebugClient4_Vtbl { @@ -3260,9 +2980,8 @@ pub struct IDebugClient4_Vtbl { pub GetDumpFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, buffer: ::windows_core::PSTR, buffersize: u32, namesize: *mut u32, handle: *mut u64, r#type: *mut u32) -> ::windows_core::HRESULT, pub GetDumpFileWide: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, buffer: ::windows_core::PWSTR, buffersize: u32, namesize: *mut u32, handle: *mut u64, r#type: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugClient5(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugClient5, IDebugClient5_Vtbl, 0xe3acb9d7_7ec2_4f0c_a0da_e81e0cbbe628); +::windows_core::imp::interface_hierarchy!(IDebugClient5, ::windows_core::IUnknown); impl IDebugClient5 { pub unsafe fn AttachKernel(&self, flags: u32, connectoptions: P0) -> ::windows_core::Result<()> where @@ -3731,13 +3450,6 @@ impl IDebugClient5 { (::windows_core::Interface::vtable(self).SetQuitLockStringWide)(::windows_core::Interface::as_raw(self), string.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IDebugClient5, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugClient5 { - type Vtable = IDebugClient5_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugClient5 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe3acb9d7_7ec2_4f0c_a0da_e81e0cbbe628); -} #[repr(C)] #[doc(hidden)] pub struct IDebugClient5_Vtbl { @@ -3835,9 +3547,8 @@ pub struct IDebugClient5_Vtbl { pub GetQuitLockStringWide: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, buffer: ::windows_core::PWSTR, buffersize: u32, stringsize: *mut u32) -> ::windows_core::HRESULT, pub SetQuitLockStringWide: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, string: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugClient6(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugClient6, IDebugClient6_Vtbl, 0xfd28b4c5_c498_4686_a28e_62cad2154eb3); +::windows_core::imp::interface_hierarchy!(IDebugClient6, ::windows_core::IUnknown); impl IDebugClient6 { pub unsafe fn AttachKernel(&self, flags: u32, connectoptions: P0) -> ::windows_core::Result<()> where @@ -4312,13 +4023,6 @@ impl IDebugClient6 { (::windows_core::Interface::vtable(self).SetEventContextCallbacks)(::windows_core::Interface::as_raw(self), callbacks.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IDebugClient6, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugClient6 { - type Vtable = IDebugClient6_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugClient6 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfd28b4c5_c498_4686_a28e_62cad2154eb3); -} #[repr(C)] #[doc(hidden)] pub struct IDebugClient6_Vtbl { @@ -4417,9 +4121,8 @@ pub struct IDebugClient6_Vtbl { pub SetQuitLockStringWide: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, string: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub SetEventContextCallbacks: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, callbacks: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugClient7(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugClient7, IDebugClient7_Vtbl, 0x13586be3_542e_481e_b1f2_8497ba74f9a9); +::windows_core::imp::interface_hierarchy!(IDebugClient7, ::windows_core::IUnknown); impl IDebugClient7 { pub unsafe fn AttachKernel(&self, flags: u32, connectoptions: P0) -> ::windows_core::Result<()> where @@ -4897,13 +4600,6 @@ impl IDebugClient7 { (::windows_core::Interface::vtable(self).SetClientContext)(::windows_core::Interface::as_raw(self), context, contextsize).ok() } } -::windows_core::imp::interface_hierarchy!(IDebugClient7, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugClient7 { - type Vtable = IDebugClient7_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugClient7 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x13586be3_542e_481e_b1f2_8497ba74f9a9); -} #[repr(C)] #[doc(hidden)] pub struct IDebugClient7_Vtbl { @@ -5003,9 +4699,8 @@ pub struct IDebugClient7_Vtbl { pub SetEventContextCallbacks: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, callbacks: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetClientContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: *const ::core::ffi::c_void, contextsize: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugClient8(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugClient8, IDebugClient8_Vtbl, 0xcec43add_6375_469e_83d5_414e4033c19a); +::windows_core::imp::interface_hierarchy!(IDebugClient8, ::windows_core::IUnknown); impl IDebugClient8 { pub unsafe fn AttachKernel(&self, flags: u32, connectoptions: P0) -> ::windows_core::Result<()> where @@ -5489,13 +5184,6 @@ impl IDebugClient8 { (::windows_core::Interface::vtable(self).OpenDumpFileWide2)(::windows_core::Interface::as_raw(self), filename.into_param().abi(), filehandle, alternatearch).ok() } } -::windows_core::imp::interface_hierarchy!(IDebugClient8, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugClient8 { - type Vtable = IDebugClient8_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugClient8 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcec43add_6375_469e_83d5_414e4033c19a); -} #[repr(C)] #[doc(hidden)] pub struct IDebugClient8_Vtbl { @@ -5596,9 +5284,8 @@ pub struct IDebugClient8_Vtbl { pub SetClientContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: *const ::core::ffi::c_void, contextsize: u32) -> ::windows_core::HRESULT, pub OpenDumpFileWide2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filename: ::windows_core::PCWSTR, filehandle: u64, alternatearch: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugControl, IDebugControl_Vtbl, 0x5182e668_105e_416e_ad92_24ef800424ba); +::windows_core::imp::interface_hierarchy!(IDebugControl, ::windows_core::IUnknown); impl IDebugControl { pub unsafe fn GetInterrupt(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetInterrupt)(::windows_core::Interface::as_raw(self)).ok() @@ -6006,13 +5693,6 @@ impl IDebugControl { .ok() } } -::windows_core::imp::interface_hierarchy!(IDebugControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugControl { - type Vtable = IDebugControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5182e668_105e_416e_ad92_24ef800424ba); -} #[repr(C)] #[doc(hidden)] pub struct IDebugControl_Vtbl { @@ -6116,9 +5796,8 @@ pub struct IDebugControl_Vtbl { pub WaitForEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: u32, timeout: u32) -> ::windows_core::HRESULT, pub GetLastEventInformation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: *mut u32, processid: *mut u32, threadid: *mut u32, extrainformation: *mut ::core::ffi::c_void, extrainformationsize: u32, extrainformationused: *mut u32, description: ::windows_core::PSTR, descriptionsize: u32, descriptionused: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugControl2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugControl2, IDebugControl2_Vtbl, 0xd4366723_44df_4bed_8c7e_4c05424f4588); +::windows_core::imp::interface_hierarchy!(IDebugControl2, ::windows_core::IUnknown); impl IDebugControl2 { pub unsafe fn GetInterrupt(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetInterrupt)(::windows_core::Interface::as_raw(self)).ok() @@ -6572,13 +6251,6 @@ impl IDebugControl2 { (::windows_core::Interface::vtable(self).OutputTextReplacements)(::windows_core::Interface::as_raw(self), outputcontrol, flags).ok() } } -::windows_core::imp::interface_hierarchy!(IDebugControl2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugControl2 { - type Vtable = IDebugControl2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugControl2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd4366723_44df_4bed_8c7e_4c05424f4588); -} #[repr(C)] #[doc(hidden)] pub struct IDebugControl2_Vtbl { @@ -6690,9 +6362,8 @@ pub struct IDebugControl2_Vtbl { pub RemoveTextReplacements: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub OutputTextReplacements: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, outputcontrol: u32, flags: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugControl3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugControl3, IDebugControl3_Vtbl, 0x7df74a86_b03f_407f_90ab_a20dadcead08); +::windows_core::imp::interface_hierarchy!(IDebugControl3, ::windows_core::IUnknown); impl IDebugControl3 { pub unsafe fn GetInterrupt(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetInterrupt)(::windows_core::Interface::as_raw(self)).ok() @@ -7207,13 +6878,6 @@ impl IDebugControl3 { (::windows_core::Interface::vtable(self).SetNextEventIndex)(::windows_core::Interface::as_raw(self), relation, value, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDebugControl3, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugControl3 { - type Vtable = IDebugControl3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugControl3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7df74a86_b03f_407f_90ab_a20dadcead08); -} #[repr(C)] #[doc(hidden)] pub struct IDebugControl3_Vtbl { @@ -7338,9 +7002,8 @@ pub struct IDebugControl3_Vtbl { pub GetCurrentEventIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: *mut u32) -> ::windows_core::HRESULT, pub SetNextEventIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, relation: u32, value: u32, nextindex: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugControl4(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugControl4, IDebugControl4_Vtbl, 0x94e60ce9_9b41_4b19_9fc0_6d9eb35272b3); +::windows_core::imp::interface_hierarchy!(IDebugControl4, ::windows_core::IUnknown); impl IDebugControl4 { pub unsafe fn GetInterrupt(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetInterrupt)(::windows_core::Interface::as_raw(self)).ok() @@ -8147,13 +7810,6 @@ impl IDebugControl4 { (::windows_core::Interface::vtable(self).ResetManagedStatus)(::windows_core::Interface::as_raw(self), flags).ok() } } -::windows_core::imp::interface_hierarchy!(IDebugControl4, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugControl4 { - type Vtable = IDebugControl4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugControl4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x94e60ce9_9b41_4b19_9fc0_6d9eb35272b3); -} #[repr(C)] #[doc(hidden)] pub struct IDebugControl4_Vtbl { @@ -8331,9 +7987,8 @@ pub struct IDebugControl4_Vtbl { pub GetManagedStatusWide: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: *mut u32, whichstring: u32, string: ::windows_core::PWSTR, stringsize: u32, stringneeded: *mut u32) -> ::windows_core::HRESULT, pub ResetManagedStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugControl5(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugControl5, IDebugControl5_Vtbl, 0xb2ffe162_2412_429f_8d1d_5bf6dd824696); +::windows_core::imp::interface_hierarchy!(IDebugControl5, ::windows_core::IUnknown); impl IDebugControl5 { pub unsafe fn GetInterrupt(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetInterrupt)(::windows_core::Interface::as_raw(self)).ok() @@ -9156,13 +8811,6 @@ impl IDebugControl5 { (::windows_core::Interface::vtable(self).GetBreakpointByGuid)(::windows_core::Interface::as_raw(self), guid, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDebugControl5, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugControl5 { - type Vtable = IDebugControl5_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugControl5 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb2ffe162_2412_429f_8d1d_5bf6dd824696); -} #[repr(C)] #[doc(hidden)] pub struct IDebugControl5_Vtbl { @@ -9345,9 +8993,8 @@ pub struct IDebugControl5_Vtbl { pub OutputContextStackTraceEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, outputcontrol: u32, frames: *const DEBUG_STACK_FRAME_EX, framessize: u32, framecontexts: *const ::core::ffi::c_void, framecontextssize: u32, framecontextsentrysize: u32, flags: u32) -> ::windows_core::HRESULT, pub GetBreakpointByGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guid: *const ::windows_core::GUID, bp: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugControl6(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugControl6, IDebugControl6_Vtbl, 0xbc0d583f_126d_43a1_9cc4_a860ab1d537b); +::windows_core::imp::interface_hierarchy!(IDebugControl6, ::windows_core::IUnknown); impl IDebugControl6 { pub unsafe fn GetInterrupt(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetInterrupt)(::windows_core::Interface::as_raw(self)).ok() @@ -10177,13 +9824,6 @@ impl IDebugControl6 { (::windows_core::Interface::vtable(self).GetSynchronizationStatus)(::windows_core::Interface::as_raw(self), sendsattempted, secondssincelastresponse).ok() } } -::windows_core::imp::interface_hierarchy!(IDebugControl6, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugControl6 { - type Vtable = IDebugControl6_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugControl6 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbc0d583f_126d_43a1_9cc4_a860ab1d537b); -} #[repr(C)] #[doc(hidden)] pub struct IDebugControl6_Vtbl { @@ -10368,9 +10008,8 @@ pub struct IDebugControl6_Vtbl { pub GetExecutionStatusEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, status: *mut u32) -> ::windows_core::HRESULT, pub GetSynchronizationStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sendsattempted: *mut u32, secondssincelastresponse: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugControl7(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugControl7, IDebugControl7_Vtbl, 0xb86fb3b1_80d4_475b_aea3_cf06539cf63a); +::windows_core::imp::interface_hierarchy!(IDebugControl7, ::windows_core::IUnknown); impl IDebugControl7 { pub unsafe fn GetInterrupt(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetInterrupt)(::windows_core::Interface::as_raw(self)).ok() @@ -11203,13 +10842,6 @@ impl IDebugControl7 { (::windows_core::Interface::vtable(self).GetDebuggeeType2)(::windows_core::Interface::as_raw(self), flags, class, qualifier).ok() } } -::windows_core::imp::interface_hierarchy!(IDebugControl7, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugControl7 { - type Vtable = IDebugControl7_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugControl7 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb86fb3b1_80d4_475b_aea3_cf06539cf63a); -} #[repr(C)] #[doc(hidden)] pub struct IDebugControl7_Vtbl { @@ -11395,9 +11027,8 @@ pub struct IDebugControl7_Vtbl { pub GetSynchronizationStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sendsattempted: *mut u32, secondssincelastresponse: *mut u32) -> ::windows_core::HRESULT, pub GetDebuggeeType2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: u32, class: *mut u32, qualifier: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugDataSpaces(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugDataSpaces, IDebugDataSpaces_Vtbl, 0x88f7dfab_3ea7_4c3a_aefb_c4e8106173aa); +::windows_core::imp::interface_hierarchy!(IDebugDataSpaces, ::windows_core::IUnknown); impl IDebugDataSpaces { pub unsafe fn ReadVirtual(&self, offset: u64, buffer: *mut ::core::ffi::c_void, buffersize: u32, bytesread: ::core::option::Option<*mut u32>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).ReadVirtual)(::windows_core::Interface::as_raw(self), offset, buffer, buffersize, ::core::mem::transmute(bytesread.unwrap_or(::std::ptr::null_mut()))).ok() @@ -11462,13 +11093,6 @@ impl IDebugDataSpaces { (::windows_core::Interface::vtable(self).ReadProcessorSystemData)(::windows_core::Interface::as_raw(self), processor, index, buffer, buffersize, ::core::mem::transmute(datasize.unwrap_or(::std::ptr::null_mut()))).ok() } } -::windows_core::imp::interface_hierarchy!(IDebugDataSpaces, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugDataSpaces { - type Vtable = IDebugDataSpaces_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugDataSpaces { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x88f7dfab_3ea7_4c3a_aefb_c4e8106173aa); -} #[repr(C)] #[doc(hidden)] pub struct IDebugDataSpaces_Vtbl { @@ -11494,9 +11118,8 @@ pub struct IDebugDataSpaces_Vtbl { pub ReadDebuggerData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, buffer: *mut ::core::ffi::c_void, buffersize: u32, datasize: *mut u32) -> ::windows_core::HRESULT, pub ReadProcessorSystemData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, processor: u32, index: u32, buffer: *mut ::core::ffi::c_void, buffersize: u32, datasize: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugDataSpaces2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugDataSpaces2, IDebugDataSpaces2_Vtbl, 0x7a5e852f_96e9_468f_ac1b_0b3addc4a049); +::windows_core::imp::interface_hierarchy!(IDebugDataSpaces2, ::windows_core::IUnknown); impl IDebugDataSpaces2 { pub unsafe fn ReadVirtual(&self, offset: u64, buffer: *mut ::core::ffi::c_void, buffersize: u32, bytesread: ::core::option::Option<*mut u32>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).ReadVirtual)(::windows_core::Interface::as_raw(self), offset, buffer, buffersize, ::core::mem::transmute(bytesread.unwrap_or(::std::ptr::null_mut()))).ok() @@ -11582,13 +11205,6 @@ impl IDebugDataSpaces2 { (::windows_core::Interface::vtable(self).QueryVirtual)(::windows_core::Interface::as_raw(self), offset, info).ok() } } -::windows_core::imp::interface_hierarchy!(IDebugDataSpaces2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugDataSpaces2 { - type Vtable = IDebugDataSpaces2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugDataSpaces2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7a5e852f_96e9_468f_ac1b_0b3addc4a049); -} #[repr(C)] #[doc(hidden)] pub struct IDebugDataSpaces2_Vtbl { @@ -11623,9 +11239,8 @@ pub struct IDebugDataSpaces2_Vtbl { #[cfg(not(feature = "Win32_System_Memory"))] QueryVirtual: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugDataSpaces3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugDataSpaces3, IDebugDataSpaces3_Vtbl, 0x23f79d6c_8aaf_4f7c_a607_9995f5407e63); +::windows_core::imp::interface_hierarchy!(IDebugDataSpaces3, ::windows_core::IUnknown); impl IDebugDataSpaces3 { pub unsafe fn ReadVirtual(&self, offset: u64, buffer: *mut ::core::ffi::c_void, buffersize: u32, bytesread: ::core::option::Option<*mut u32>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).ReadVirtual)(::windows_core::Interface::as_raw(self), offset, buffer, buffersize, ::core::mem::transmute(bytesread.unwrap_or(::std::ptr::null_mut()))).ok() @@ -11729,13 +11344,6 @@ impl IDebugDataSpaces3 { (::windows_core::Interface::vtable(self).EndEnumTagged)(::windows_core::Interface::as_raw(self), handle).ok() } } -::windows_core::imp::interface_hierarchy!(IDebugDataSpaces3, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugDataSpaces3 { - type Vtable = IDebugDataSpaces3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugDataSpaces3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x23f79d6c_8aaf_4f7c_a607_9995f5407e63); -} #[repr(C)] #[doc(hidden)] pub struct IDebugDataSpaces3_Vtbl { @@ -11778,9 +11386,8 @@ pub struct IDebugDataSpaces3_Vtbl { pub GetNextTagged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handle: u64, tag: *mut ::windows_core::GUID, size: *mut u32) -> ::windows_core::HRESULT, pub EndEnumTagged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handle: u64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugDataSpaces4(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugDataSpaces4, IDebugDataSpaces4_Vtbl, 0xd98ada1f_29e9_4ef5_a6c0_e53349883212); +::windows_core::imp::interface_hierarchy!(IDebugDataSpaces4, ::windows_core::IUnknown); impl IDebugDataSpaces4 { pub unsafe fn ReadVirtual(&self, offset: u64, buffer: *mut ::core::ffi::c_void, buffersize: u32, bytesread: ::core::option::Option<*mut u32>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).ReadVirtual)(::windows_core::Interface::as_raw(self), offset, buffer, buffersize, ::core::mem::transmute(bytesread.unwrap_or(::std::ptr::null_mut()))).ok() @@ -11916,13 +11523,6 @@ impl IDebugDataSpaces4 { (::windows_core::Interface::vtable(self).WritePhysical2)(::windows_core::Interface::as_raw(self), offset, flags, buffer, buffersize, ::core::mem::transmute(byteswritten.unwrap_or(::std::ptr::null_mut()))).ok() } } -::windows_core::imp::interface_hierarchy!(IDebugDataSpaces4, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugDataSpaces4 { - type Vtable = IDebugDataSpaces4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugDataSpaces4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd98ada1f_29e9_4ef5_a6c0_e53349883212); -} #[repr(C)] #[doc(hidden)] pub struct IDebugDataSpaces4_Vtbl { @@ -11975,9 +11575,8 @@ pub struct IDebugDataSpaces4_Vtbl { pub ReadPhysical2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, offset: u64, flags: u32, buffer: *mut ::core::ffi::c_void, buffersize: u32, bytesread: *mut u32) -> ::windows_core::HRESULT, pub WritePhysical2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, offset: u64, flags: u32, buffer: *const ::core::ffi::c_void, buffersize: u32, byteswritten: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugEventCallbacks(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugEventCallbacks, IDebugEventCallbacks_Vtbl, 0x337be28b_5036_4d72_b6bf_c45fbb9f2eaa); +::windows_core::imp::interface_hierarchy!(IDebugEventCallbacks, ::windows_core::IUnknown); impl IDebugEventCallbacks { pub unsafe fn GetInterestMask(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -12037,13 +11636,6 @@ impl IDebugEventCallbacks { (::windows_core::Interface::vtable(self).ChangeSymbolState)(::windows_core::Interface::as_raw(self), flags, argument).ok() } } -::windows_core::imp::interface_hierarchy!(IDebugEventCallbacks, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugEventCallbacks { - type Vtable = IDebugEventCallbacks_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugEventCallbacks { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x337be28b_5036_4d72_b6bf_c45fbb9f2eaa); -} #[repr(C)] #[doc(hidden)] pub struct IDebugEventCallbacks_Vtbl { @@ -12063,9 +11655,8 @@ pub struct IDebugEventCallbacks_Vtbl { pub ChangeEngineState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: u32, argument: u64) -> ::windows_core::HRESULT, pub ChangeSymbolState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: u32, argument: u64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugEventCallbacksWide(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugEventCallbacksWide, IDebugEventCallbacksWide_Vtbl, 0x0690e046_9c23_45ac_a04f_987ac29ad0d3); +::windows_core::imp::interface_hierarchy!(IDebugEventCallbacksWide, ::windows_core::IUnknown); impl IDebugEventCallbacksWide { pub unsafe fn GetInterestMask(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -12125,13 +11716,6 @@ impl IDebugEventCallbacksWide { (::windows_core::Interface::vtable(self).ChangeSymbolState)(::windows_core::Interface::as_raw(self), flags, argument).ok() } } -::windows_core::imp::interface_hierarchy!(IDebugEventCallbacksWide, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugEventCallbacksWide { - type Vtable = IDebugEventCallbacksWide_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugEventCallbacksWide { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0690e046_9c23_45ac_a04f_987ac29ad0d3); -} #[repr(C)] #[doc(hidden)] pub struct IDebugEventCallbacksWide_Vtbl { @@ -12151,9 +11735,8 @@ pub struct IDebugEventCallbacksWide_Vtbl { pub ChangeEngineState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: u32, argument: u64) -> ::windows_core::HRESULT, pub ChangeSymbolState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: u32, argument: u64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugEventContextCallbacks(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugEventContextCallbacks, IDebugEventContextCallbacks_Vtbl, 0x61a4905b_23f9_4247_b3c5_53d087529ab7); +::windows_core::imp::interface_hierarchy!(IDebugEventContextCallbacks, ::windows_core::IUnknown); impl IDebugEventContextCallbacks { pub unsafe fn GetInterestMask(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -12213,13 +11796,6 @@ impl IDebugEventContextCallbacks { (::windows_core::Interface::vtable(self).ChangeSymbolState)(::windows_core::Interface::as_raw(self), flags, argument).ok() } } -::windows_core::imp::interface_hierarchy!(IDebugEventContextCallbacks, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugEventContextCallbacks { - type Vtable = IDebugEventContextCallbacks_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugEventContextCallbacks { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x61a4905b_23f9_4247_b3c5_53d087529ab7); -} #[repr(C)] #[doc(hidden)] pub struct IDebugEventContextCallbacks_Vtbl { @@ -12239,9 +11815,7 @@ pub struct IDebugEventContextCallbacks_Vtbl { pub ChangeEngineState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: u32, argument: u64, context: *const ::core::ffi::c_void, contextsize: u32) -> ::windows_core::HRESULT, pub ChangeSymbolState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: u32, argument: u64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugFAEntryTags(::std::ptr::NonNull<::std::ffi::c_void>); +::windows_core::imp::interface!(IDebugFAEntryTags, IDebugFAEntryTags_Vtbl); impl IDebugFAEntryTags { pub unsafe fn GetType(&self, tag: DEBUG_FLR_PARAM_TYPE) -> FA_ENTRY_TYPE { (::windows_core::Interface::vtable(self).GetType)(::windows_core::Interface::as_raw(self), tag) @@ -12271,9 +11845,6 @@ impl IDebugFAEntryTags { (::windows_core::Interface::vtable(self).IsValidTagToSet)(::windows_core::Interface::as_raw(self), tag) } } -unsafe impl ::windows_core::Interface for IDebugFAEntryTags { - type Vtable = IDebugFAEntryTags_Vtbl; -} #[repr(C)] #[doc(hidden)] pub struct IDebugFAEntryTags_Vtbl { @@ -12284,9 +11855,8 @@ pub struct IDebugFAEntryTags_Vtbl { pub GetTagByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pluginid: ::windows_core::PCSTR, tagname: ::windows_core::PCSTR, tag: *mut DEBUG_FLR_PARAM_TYPE) -> ::windows_core::HRESULT, pub IsValidTagToSet: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE) -> super::super::super::super::Foundation::BOOL, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugFailureAnalysis(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugFailureAnalysis, IDebugFailureAnalysis_Vtbl, 0xed0de363_451f_4943_820c_62dccdfa7e6d); +::windows_core::imp::interface_hierarchy!(IDebugFailureAnalysis, ::windows_core::IUnknown); impl IDebugFailureAnalysis { pub unsafe fn GetFailureClass(&self) -> u32 { (::windows_core::Interface::vtable(self).GetFailureClass)(::windows_core::Interface::as_raw(self)) @@ -12319,13 +11889,6 @@ impl IDebugFailureAnalysis { (::windows_core::Interface::vtable(self).NextEntry)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(entry.unwrap_or(::std::ptr::null()))) } } -::windows_core::imp::interface_hierarchy!(IDebugFailureAnalysis, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugFailureAnalysis { - type Vtable = IDebugFailureAnalysis_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugFailureAnalysis { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xed0de363_451f_4943_820c_62dccdfa7e6d); -} #[repr(C)] #[doc(hidden)] pub struct IDebugFailureAnalysis_Vtbl { @@ -12341,9 +11904,8 @@ pub struct IDebugFailureAnalysis_Vtbl { pub GetUlong64: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE, value: *mut u64) -> *mut FA_ENTRY, pub NextEntry: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, entry: *const FA_ENTRY) -> *mut FA_ENTRY, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugFailureAnalysis2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugFailureAnalysis2, IDebugFailureAnalysis2_Vtbl, 0xea15c288_8226_4b70_acf6_0be6b189e3ad); +::windows_core::imp::interface_hierarchy!(IDebugFailureAnalysis2, ::windows_core::IUnknown); impl IDebugFailureAnalysis2 { pub unsafe fn GetFailureClass(&self) -> u32 { (::windows_core::Interface::vtable(self).GetFailureClass)(::windows_core::Interface::as_raw(self)) @@ -12434,13 +11996,6 @@ impl IDebugFailureAnalysis2 { (::windows_core::Interface::vtable(self).AddStructuredAnalysisData)(::windows_core::Interface::as_raw(self), tag, analysis.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IDebugFailureAnalysis2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugFailureAnalysis2 { - type Vtable = IDebugFailureAnalysis2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugFailureAnalysis2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xea15c288_8226_4b70_acf6_0be6b189e3ad); -} #[repr(C)] #[doc(hidden)] pub struct IDebugFailureAnalysis2_Vtbl { @@ -12472,9 +12027,8 @@ pub struct IDebugFailureAnalysis2_Vtbl { GetAnalysisXml: usize, pub AddStructuredAnalysisData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, tag: DEBUG_FLR_PARAM_TYPE, analysis: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugFailureAnalysis3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugFailureAnalysis3, IDebugFailureAnalysis3_Vtbl, 0x3627dc67_fd45_42ff_9ba4_4a67ee64619f); +::windows_core::imp::interface_hierarchy!(IDebugFailureAnalysis3, ::windows_core::IUnknown); impl IDebugFailureAnalysis3 { pub unsafe fn GetFailureClass(&self) -> u32 { (::windows_core::Interface::vtable(self).GetFailureClass)(::windows_core::Interface::as_raw(self)) @@ -12653,13 +12207,6 @@ impl IDebugFailureAnalysis3 { (::windows_core::Interface::vtable(self).DeleteAdditionalXML)(::windows_core::Interface::as_raw(self), key.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IDebugFailureAnalysis3, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugFailureAnalysis3 { - type Vtable = IDebugFailureAnalysis3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugFailureAnalysis3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3627dc67_fd45_42ff_9ba4_4a67ee64619f); -} #[repr(C)] #[doc(hidden)] pub struct IDebugFailureAnalysis3_Vtbl { @@ -12714,9 +12261,8 @@ pub struct IDebugFailureAnalysis3_Vtbl { pub GetAdditionalXML: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, key: ::std::mem::MaybeUninit<::windows_core::BSTR>, ppxmldomelement: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub DeleteAdditionalXML: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, key: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugHost(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugHost, IDebugHost_Vtbl, 0xb8c74943_6b2c_4eeb_b5c5_35d378a6d99d); +::windows_core::imp::interface_hierarchy!(IDebugHost, ::windows_core::IUnknown); impl IDebugHost { pub unsafe fn GetHostDefinedInterface(&self) -> ::windows_core::Result<::windows_core::IUnknown> { let mut result__ = ::std::mem::zeroed(); @@ -12731,13 +12277,6 @@ impl IDebugHost { (::windows_core::Interface::vtable(self).GetDefaultMetadata)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDebugHost, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugHost { - type Vtable = IDebugHost_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugHost { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb8c74943_6b2c_4eeb_b5c5_35d378a6d99d); -} #[repr(C)] #[doc(hidden)] pub struct IDebugHost_Vtbl { @@ -12746,9 +12285,8 @@ pub struct IDebugHost_Vtbl { pub GetCurrentContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDefaultMetadata: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, defaultmetadatastore: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugHostBaseClass(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugHostBaseClass, IDebugHostBaseClass_Vtbl, 0xb94d57d2_390b_40f7_b5b4_b6db897d974b); +::windows_core::imp::interface_hierarchy!(IDebugHostBaseClass, ::windows_core::IUnknown, IDebugHostSymbol); impl IDebugHostBaseClass { pub unsafe fn GetContext(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -12789,22 +12327,14 @@ impl IDebugHostBaseClass { (::windows_core::Interface::vtable(self).GetOffset)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDebugHostBaseClass, ::windows_core::IUnknown, IDebugHostSymbol); -unsafe impl ::windows_core::Interface for IDebugHostBaseClass { - type Vtable = IDebugHostBaseClass_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugHostBaseClass { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb94d57d2_390b_40f7_b5b4_b6db897d974b); -} #[repr(C)] #[doc(hidden)] pub struct IDebugHostBaseClass_Vtbl { pub base__: IDebugHostSymbol_Vtbl, pub GetOffset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, offset: *mut u64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugHostConstant(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugHostConstant, IDebugHostConstant_Vtbl, 0x62787edc_fa76_4690_bd71_5e8c3e2937ec); +::windows_core::imp::interface_hierarchy!(IDebugHostConstant, ::windows_core::IUnknown, IDebugHostSymbol); impl IDebugHostConstant { pub unsafe fn GetContext(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -12847,13 +12377,6 @@ impl IDebugHostConstant { (::windows_core::Interface::vtable(self).GetValue)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDebugHostConstant, ::windows_core::IUnknown, IDebugHostSymbol); -unsafe impl ::windows_core::Interface for IDebugHostConstant { - type Vtable = IDebugHostConstant_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugHostConstant { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x62787edc_fa76_4690_bd71_5e8c3e2937ec); -} #[repr(C)] #[doc(hidden)] pub struct IDebugHostConstant_Vtbl { @@ -12863,9 +12386,8 @@ pub struct IDebugHostConstant_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] GetValue: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugHostContext(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugHostContext, IDebugHostContext_Vtbl, 0xa68c70d8_5ec0_46e5_b775_3134a48ea2e3); +::windows_core::imp::interface_hierarchy!(IDebugHostContext, ::windows_core::IUnknown); impl IDebugHostContext { pub unsafe fn IsEqualTo(&self, pcontext: P0) -> ::windows_core::Result where @@ -12875,22 +12397,14 @@ impl IDebugHostContext { (::windows_core::Interface::vtable(self).IsEqualTo)(::windows_core::Interface::as_raw(self), pcontext.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDebugHostContext, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugHostContext { - type Vtable = IDebugHostContext_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugHostContext { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa68c70d8_5ec0_46e5_b775_3134a48ea2e3); -} #[repr(C)] #[doc(hidden)] pub struct IDebugHostContext_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub IsEqualTo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcontext: *mut ::core::ffi::c_void, pisequal: *mut bool) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugHostData(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugHostData, IDebugHostData_Vtbl, 0xa3d64993_826c_44fa_897d_926f2fe7ad0b); +::windows_core::imp::interface_hierarchy!(IDebugHostData, ::windows_core::IUnknown, IDebugHostSymbol); impl IDebugHostData { pub unsafe fn GetContext(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -12941,13 +12455,6 @@ impl IDebugHostData { (::windows_core::Interface::vtable(self).GetValue)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDebugHostData, ::windows_core::IUnknown, IDebugHostSymbol); -unsafe impl ::windows_core::Interface for IDebugHostData { - type Vtable = IDebugHostData_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugHostData { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa3d64993_826c_44fa_897d_926f2fe7ad0b); -} #[repr(C)] #[doc(hidden)] pub struct IDebugHostData_Vtbl { @@ -12959,9 +12466,8 @@ pub struct IDebugHostData_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] GetValue: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugHostErrorSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugHostErrorSink, IDebugHostErrorSink_Vtbl, 0xc8ff0f0b_fce9_467e_8bb3_5d69ef109c00); +::windows_core::imp::interface_hierarchy!(IDebugHostErrorSink, ::windows_core::IUnknown); impl IDebugHostErrorSink { pub unsafe fn ReportError(&self, errclass: ErrorClass, hrerror: ::windows_core::HRESULT, message: P0) -> ::windows_core::Result<()> where @@ -12970,22 +12476,14 @@ impl IDebugHostErrorSink { (::windows_core::Interface::vtable(self).ReportError)(::windows_core::Interface::as_raw(self), errclass, hrerror, message.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IDebugHostErrorSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugHostErrorSink { - type Vtable = IDebugHostErrorSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugHostErrorSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc8ff0f0b_fce9_467e_8bb3_5d69ef109c00); -} #[repr(C)] #[doc(hidden)] pub struct IDebugHostErrorSink_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub ReportError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, errclass: ErrorClass, hrerror: ::windows_core::HRESULT, message: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugHostEvaluator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugHostEvaluator, IDebugHostEvaluator_Vtbl, 0x0fef9a21_577e_4997_ac7b_1c4883241d99); +::windows_core::imp::interface_hierarchy!(IDebugHostEvaluator, ::windows_core::IUnknown); impl IDebugHostEvaluator { pub unsafe fn EvaluateExpression(&self, context: P0, expression: P1, bindingcontext: P2, result: *mut ::core::option::Option, metadata: ::core::option::Option<*mut ::core::option::Option>) -> ::windows_core::Result<()> where @@ -13004,13 +12502,6 @@ impl IDebugHostEvaluator { (::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::imp::interface_hierarchy!(IDebugHostEvaluator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugHostEvaluator { - type Vtable = IDebugHostEvaluator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugHostEvaluator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0fef9a21_577e_4997_ac7b_1c4883241d99); -} #[repr(C)] #[doc(hidden)] pub struct IDebugHostEvaluator_Vtbl { @@ -13018,9 +12509,8 @@ pub struct IDebugHostEvaluator_Vtbl { pub EvaluateExpression: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, expression: ::windows_core::PCWSTR, bindingcontext: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, metadata: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub EvaluateExtendedExpression: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, expression: ::windows_core::PCWSTR, bindingcontext: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, metadata: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugHostEvaluator2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugHostEvaluator2, IDebugHostEvaluator2_Vtbl, 0xa117a435_1fb4_4092_a2ab_a929576c1e87); +::windows_core::imp::interface_hierarchy!(IDebugHostEvaluator2, ::windows_core::IUnknown, IDebugHostEvaluator); impl IDebugHostEvaluator2 { pub unsafe fn EvaluateExpression(&self, context: P0, expression: P1, bindingcontext: P2, result: *mut ::core::option::Option, metadata: ::core::option::Option<*mut ::core::option::Option>) -> ::windows_core::Result<()> where @@ -13046,22 +12536,14 @@ impl IDebugHostEvaluator2 { (::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::imp::interface_hierarchy!(IDebugHostEvaluator2, ::windows_core::IUnknown, IDebugHostEvaluator); -unsafe impl ::windows_core::Interface for IDebugHostEvaluator2 { - type Vtable = IDebugHostEvaluator2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugHostEvaluator2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa117a435_1fb4_4092_a2ab_a929576c1e87); -} #[repr(C)] #[doc(hidden)] pub struct IDebugHostEvaluator2_Vtbl { pub base__: IDebugHostEvaluator_Vtbl, pub AssignTo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, assignmentreference: *mut ::core::ffi::c_void, assignmentvalue: *mut ::core::ffi::c_void, assignmentresult: *mut *mut ::core::ffi::c_void, assignmentmetadata: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugHostExtensibility(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugHostExtensibility, IDebugHostExtensibility_Vtbl, 0x3c2b24e1_11d0_4f86_8ae5_4df166f73253); +::windows_core::imp::interface_hierarchy!(IDebugHostExtensibility, ::windows_core::IUnknown); impl IDebugHostExtensibility { pub unsafe fn CreateFunctionAlias(&self, aliasname: P0, functionobject: P1) -> ::windows_core::Result<()> where @@ -13077,13 +12559,6 @@ impl IDebugHostExtensibility { (::windows_core::Interface::vtable(self).DestroyFunctionAlias)(::windows_core::Interface::as_raw(self), aliasname.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IDebugHostExtensibility, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugHostExtensibility { - type Vtable = IDebugHostExtensibility_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugHostExtensibility { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3c2b24e1_11d0_4f86_8ae5_4df166f73253); -} #[repr(C)] #[doc(hidden)] pub struct IDebugHostExtensibility_Vtbl { @@ -13091,9 +12566,8 @@ pub struct IDebugHostExtensibility_Vtbl { pub CreateFunctionAlias: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, aliasname: ::windows_core::PCWSTR, functionobject: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub DestroyFunctionAlias: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, aliasname: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugHostField(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugHostField, IDebugHostField_Vtbl, 0xe06f6495_16bc_4cc9_b11d_2a6b23fa72f3); +::windows_core::imp::interface_hierarchy!(IDebugHostField, ::windows_core::IUnknown, IDebugHostSymbol); impl IDebugHostField { pub unsafe fn GetContext(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -13148,13 +12622,6 @@ impl IDebugHostField { (::windows_core::Interface::vtable(self).GetValue)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDebugHostField, ::windows_core::IUnknown, IDebugHostSymbol); -unsafe impl ::windows_core::Interface for IDebugHostField { - type Vtable = IDebugHostField_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugHostField { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe06f6495_16bc_4cc9_b11d_2a6b23fa72f3); -} #[repr(C)] #[doc(hidden)] pub struct IDebugHostField_Vtbl { @@ -13167,9 +12634,8 @@ pub struct IDebugHostField_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] GetValue: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugHostMemory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugHostMemory, IDebugHostMemory_Vtbl, 0x212149c9_9183_4a3e_b00e_4fd1dc95339b); +::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: ::core::option::Option<*mut u64>) -> ::windows_core::Result<()> where @@ -13203,13 +12669,6 @@ impl IDebugHostMemory { (::windows_core::Interface::vtable(self).GetDisplayStringForLocation)(::windows_core::Interface::as_raw(self), context.into_param().abi(), ::core::mem::transmute(location), verbose, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDebugHostMemory, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugHostMemory { - type Vtable = IDebugHostMemory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugHostMemory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x212149c9_9183_4a3e_b00e_4fd1dc95339b); -} #[repr(C)] #[doc(hidden)] pub struct IDebugHostMemory_Vtbl { @@ -13220,9 +12679,8 @@ pub struct IDebugHostMemory_Vtbl { pub WritePointers: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, location: Location, count: u64, pointers: *const u64) -> ::windows_core::HRESULT, pub GetDisplayStringForLocation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, location: Location, verbose: u8, locationname: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugHostMemory2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugHostMemory2, IDebugHostMemory2_Vtbl, 0xeea033de_38f6_416b_a251_1d3771001270); +::windows_core::imp::interface_hierarchy!(IDebugHostMemory2, ::windows_core::IUnknown, IDebugHostMemory); impl IDebugHostMemory2 { pub unsafe fn ReadBytes(&self, context: P0, location: Location, buffer: *mut ::core::ffi::c_void, buffersize: u64, bytesread: ::core::option::Option<*mut u64>) -> ::windows_core::Result<()> where @@ -13263,22 +12721,14 @@ impl IDebugHostMemory2 { (::windows_core::Interface::vtable(self).LinearizeLocation)(::windows_core::Interface::as_raw(self), context.into_param().abi(), ::core::mem::transmute(location), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDebugHostMemory2, ::windows_core::IUnknown, IDebugHostMemory); -unsafe impl ::windows_core::Interface for IDebugHostMemory2 { - type Vtable = IDebugHostMemory2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugHostMemory2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeea033de_38f6_416b_a251_1d3771001270); -} #[repr(C)] #[doc(hidden)] pub struct IDebugHostMemory2_Vtbl { pub base__: IDebugHostMemory_Vtbl, pub LinearizeLocation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, location: Location, plinearizedlocation: *mut Location) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugHostModule(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugHostModule, IDebugHostModule_Vtbl, 0xc9ba3e18_d070_4378_bbd0_34613b346e1e); +::windows_core::imp::interface_hierarchy!(IDebugHostModule, ::windows_core::IUnknown, IDebugHostSymbol); impl IDebugHostModule { pub unsafe fn GetContext(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -13344,13 +12794,6 @@ impl IDebugHostModule { (::windows_core::Interface::vtable(self).FindSymbolByName)(::windows_core::Interface::as_raw(self), symbolname.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDebugHostModule, ::windows_core::IUnknown, IDebugHostSymbol); -unsafe impl ::windows_core::Interface for IDebugHostModule { - type Vtable = IDebugHostModule_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugHostModule { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc9ba3e18_d070_4378_bbd0_34613b346e1e); -} #[repr(C)] #[doc(hidden)] pub struct IDebugHostModule_Vtbl { @@ -13362,9 +12805,8 @@ pub struct IDebugHostModule_Vtbl { pub FindSymbolByRVA: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rva: u64, symbol: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub FindSymbolByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, symbolname: ::windows_core::PCWSTR, symbol: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugHostModule2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugHostModule2, IDebugHostModule2_Vtbl, 0xb51887e8_bcd0_4e8f_a8c7_434398b78c37); +::windows_core::imp::interface_hierarchy!(IDebugHostModule2, ::windows_core::IUnknown, IDebugHostSymbol, IDebugHostModule); impl IDebugHostModule2 { pub unsafe fn GetContext(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -13433,22 +12875,14 @@ impl IDebugHostModule2 { (::windows_core::Interface::vtable(self).FindContainingSymbolByRVA)(::windows_core::Interface::as_raw(self), rva, ::core::mem::transmute(symbol), offset).ok() } } -::windows_core::imp::interface_hierarchy!(IDebugHostModule2, ::windows_core::IUnknown, IDebugHostSymbol, IDebugHostModule); -unsafe impl ::windows_core::Interface for IDebugHostModule2 { - type Vtable = IDebugHostModule2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugHostModule2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb51887e8_bcd0_4e8f_a8c7_434398b78c37); -} #[repr(C)] #[doc(hidden)] pub struct IDebugHostModule2_Vtbl { pub base__: IDebugHostModule_Vtbl, pub FindContainingSymbolByRVA: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rva: u64, symbol: *mut *mut ::core::ffi::c_void, offset: *mut u64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugHostModuleSignature(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugHostModuleSignature, IDebugHostModuleSignature_Vtbl, 0x31e53a5a_01ee_4bbb_b899_4b46ae7d595c); +::windows_core::imp::interface_hierarchy!(IDebugHostModuleSignature, ::windows_core::IUnknown); impl IDebugHostModuleSignature { pub unsafe fn IsMatch(&self, pmodule: P0) -> ::windows_core::Result where @@ -13458,22 +12892,14 @@ impl IDebugHostModuleSignature { (::windows_core::Interface::vtable(self).IsMatch)(::windows_core::Interface::as_raw(self), pmodule.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDebugHostModuleSignature, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugHostModuleSignature { - type Vtable = IDebugHostModuleSignature_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugHostModuleSignature { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x31e53a5a_01ee_4bbb_b899_4b46ae7d595c); -} #[repr(C)] #[doc(hidden)] pub struct IDebugHostModuleSignature_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub IsMatch: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pmodule: *mut ::core::ffi::c_void, ismatch: *mut bool) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugHostPublic(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugHostPublic, IDebugHostPublic_Vtbl, 0x6c597ac9_fb4d_4f6d_9f39_22488539f8f4); +::windows_core::imp::interface_hierarchy!(IDebugHostPublic, ::windows_core::IUnknown, IDebugHostSymbol); impl IDebugHostPublic { pub unsafe fn GetContext(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -13518,13 +12944,6 @@ impl IDebugHostPublic { (::windows_core::Interface::vtable(self).GetLocation)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDebugHostPublic, ::windows_core::IUnknown, IDebugHostSymbol); -unsafe impl ::windows_core::Interface for IDebugHostPublic { - type Vtable = IDebugHostPublic_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugHostPublic { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6c597ac9_fb4d_4f6d_9f39_22488539f8f4); -} #[repr(C)] #[doc(hidden)] pub struct IDebugHostPublic_Vtbl { @@ -13532,9 +12951,8 @@ pub struct IDebugHostPublic_Vtbl { pub GetLocationKind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, locationkind: *mut LocationKind) -> ::windows_core::HRESULT, pub GetLocation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, location: *mut Location) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugHostScriptHost(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugHostScriptHost, IDebugHostScriptHost_Vtbl, 0xb70334a4_b92c_4570_93a1_d3eb686649a0); +::windows_core::imp::interface_hierarchy!(IDebugHostScriptHost, ::windows_core::IUnknown); impl IDebugHostScriptHost { pub unsafe fn CreateContext(&self, script: P0) -> ::windows_core::Result where @@ -13544,44 +12962,28 @@ impl IDebugHostScriptHost { (::windows_core::Interface::vtable(self).CreateContext)(::windows_core::Interface::as_raw(self), script.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDebugHostScriptHost, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugHostScriptHost { - type Vtable = IDebugHostScriptHost_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugHostScriptHost { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb70334a4_b92c_4570_93a1_d3eb686649a0); -} #[repr(C)] #[doc(hidden)] pub struct IDebugHostScriptHost_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub CreateContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, script: *mut ::core::ffi::c_void, scriptcontext: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugHostStatus(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugHostStatus, IDebugHostStatus_Vtbl, 0x4f3e1ce2_86b2_4c7a_9c65_d0a9d0eecf44); +::windows_core::imp::interface_hierarchy!(IDebugHostStatus, ::windows_core::IUnknown); impl IDebugHostStatus { pub unsafe fn PollUserInterrupt(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).PollUserInterrupt)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDebugHostStatus, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugHostStatus { - type Vtable = IDebugHostStatus_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugHostStatus { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4f3e1ce2_86b2_4c7a_9c65_d0a9d0eecf44); -} #[repr(C)] #[doc(hidden)] pub struct IDebugHostStatus_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub PollUserInterrupt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, interruptrequested: *mut bool) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugHostSymbol(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugHostSymbol, IDebugHostSymbol_Vtbl, 0x0f819103_87de_4e96_8277_e05cd441fb22); +::windows_core::imp::interface_hierarchy!(IDebugHostSymbol, ::windows_core::IUnknown); impl IDebugHostSymbol { pub unsafe fn GetContext(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -13618,13 +13020,6 @@ impl IDebugHostSymbol { (::windows_core::Interface::vtable(self).CompareAgainst)(::windows_core::Interface::as_raw(self), pcomparisonsymbol.into_param().abi(), comparisonflags, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDebugHostSymbol, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugHostSymbol { - type Vtable = IDebugHostSymbol_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugHostSymbol { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0f819103_87de_4e96_8277_e05cd441fb22); -} #[repr(C)] #[doc(hidden)] pub struct IDebugHostSymbol_Vtbl { @@ -13637,9 +13032,8 @@ pub struct IDebugHostSymbol_Vtbl { pub GetContainingModule: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, containingmodule: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CompareAgainst: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcomparisonsymbol: *mut ::core::ffi::c_void, comparisonflags: u32, pmatches: *mut bool) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugHostSymbol2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugHostSymbol2, IDebugHostSymbol2_Vtbl, 0x21515b67_6720_4257_8a68_077dc944471c); +::windows_core::imp::interface_hierarchy!(IDebugHostSymbol2, ::windows_core::IUnknown, IDebugHostSymbol); impl IDebugHostSymbol2 { pub unsafe fn GetContext(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -13680,22 +13074,14 @@ impl IDebugHostSymbol2 { (::windows_core::Interface::vtable(self).GetLanguage)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDebugHostSymbol2, ::windows_core::IUnknown, IDebugHostSymbol); -unsafe impl ::windows_core::Interface for IDebugHostSymbol2 { - type Vtable = IDebugHostSymbol2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugHostSymbol2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x21515b67_6720_4257_8a68_077dc944471c); -} #[repr(C)] #[doc(hidden)] pub struct IDebugHostSymbol2_Vtbl { pub base__: IDebugHostSymbol_Vtbl, pub GetLanguage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pkind: *mut LanguageKind) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugHostSymbolEnumerator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugHostSymbolEnumerator, IDebugHostSymbolEnumerator_Vtbl, 0x28d96c86_10a3_4976_b14e_eaef4790aa1f); +::windows_core::imp::interface_hierarchy!(IDebugHostSymbolEnumerator, ::windows_core::IUnknown); impl IDebugHostSymbolEnumerator { pub unsafe fn Reset(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Reset)(::windows_core::Interface::as_raw(self)).ok() @@ -13705,13 +13091,6 @@ impl IDebugHostSymbolEnumerator { (::windows_core::Interface::vtable(self).GetNext)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDebugHostSymbolEnumerator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugHostSymbolEnumerator { - type Vtable = IDebugHostSymbolEnumerator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugHostSymbolEnumerator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x28d96c86_10a3_4976_b14e_eaef4790aa1f); -} #[repr(C)] #[doc(hidden)] pub struct IDebugHostSymbolEnumerator_Vtbl { @@ -13719,9 +13098,8 @@ pub struct IDebugHostSymbolEnumerator_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetNext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, symbol: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugHostSymbols(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugHostSymbols, IDebugHostSymbols_Vtbl, 0x854fd751_c2e1_4eb2_b525_6619cb97a588); +::windows_core::imp::interface_hierarchy!(IDebugHostSymbols, ::windows_core::IUnknown); impl IDebugHostSymbols { pub unsafe fn CreateModuleSignature(&self, pwszmodulename: P0, pwszminversion: P1, pwszmaxversion: P2) -> ::windows_core::Result where @@ -13780,13 +13158,6 @@ impl IDebugHostSymbols { (::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::imp::interface_hierarchy!(IDebugHostSymbols, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugHostSymbols { - type Vtable = IDebugHostSymbols_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugHostSymbols { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x854fd751_c2e1_4eb2_b525_6619cb97a588); -} #[repr(C)] #[doc(hidden)] pub struct IDebugHostSymbols_Vtbl { @@ -13799,9 +13170,8 @@ pub struct IDebugHostSymbols_Vtbl { pub FindModuleByLocation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, modulelocation: Location, module: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetMostDerivedObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcontext: *mut ::core::ffi::c_void, location: Location, objecttype: *mut ::core::ffi::c_void, derivedlocation: *mut Location, derivedtype: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugHostType(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugHostType, IDebugHostType_Vtbl, 0x3aadc353_2b14_4abb_9893_5e03458e07ee); +::windows_core::imp::interface_hierarchy!(IDebugHostType, ::windows_core::IUnknown, IDebugHostSymbol); impl IDebugHostType { pub unsafe fn GetContext(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -13911,13 +13281,6 @@ impl IDebugHostType { (::windows_core::Interface::vtable(self).GetGenericArgumentAt)(::windows_core::Interface::as_raw(self), i, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDebugHostType, ::windows_core::IUnknown, IDebugHostSymbol); -unsafe impl ::windows_core::Interface for IDebugHostType { - type Vtable = IDebugHostType_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugHostType { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3aadc353_2b14_4abb_9893_5e03458e07ee); -} #[repr(C)] #[doc(hidden)] pub struct IDebugHostType_Vtbl { @@ -13942,9 +13305,8 @@ pub struct IDebugHostType_Vtbl { pub GetGenericArgumentCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, argcount: *mut u64) -> ::windows_core::HRESULT, pub GetGenericArgumentAt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, i: u64, argument: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugHostType2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugHostType2, IDebugHostType2_Vtbl, 0xb28632b9_8506_4676_87ce_8f7e05e59876); +::windows_core::imp::interface_hierarchy!(IDebugHostType2, ::windows_core::IUnknown, IDebugHostSymbol, IDebugHostType); impl IDebugHostType2 { pub unsafe fn GetContext(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -14074,13 +13436,6 @@ impl IDebugHostType2 { (::windows_core::Interface::vtable(self).GetFunctionInstancePointerType)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDebugHostType2, ::windows_core::IUnknown, IDebugHostSymbol, IDebugHostType); -unsafe impl ::windows_core::Interface for IDebugHostType2 { - type Vtable = IDebugHostType2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugHostType2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb28632b9_8506_4676_87ce_8f7e05e59876); -} #[repr(C)] #[doc(hidden)] pub struct IDebugHostType2_Vtbl { @@ -14091,9 +13446,8 @@ pub struct IDebugHostType2_Vtbl { pub GetFunctionVarArgsKind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, varargskind: *mut VarArgsKind) -> ::windows_core::HRESULT, pub GetFunctionInstancePointerType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, instancepointertype: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugHostTypeSignature(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugHostTypeSignature, IDebugHostTypeSignature_Vtbl, 0x3aadc353_2b14_4abb_9893_5e03458e07ee); +::windows_core::imp::interface_hierarchy!(IDebugHostTypeSignature, ::windows_core::IUnknown); impl IDebugHostTypeSignature { pub unsafe fn GetHashCode(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -14113,13 +13467,6 @@ impl IDebugHostTypeSignature { (::windows_core::Interface::vtable(self).CompareAgainst)(::windows_core::Interface::as_raw(self), typesignature.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDebugHostTypeSignature, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugHostTypeSignature { - type Vtable = IDebugHostTypeSignature_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugHostTypeSignature { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3aadc353_2b14_4abb_9893_5e03458e07ee); -} #[repr(C)] #[doc(hidden)] pub struct IDebugHostTypeSignature_Vtbl { @@ -14128,9 +13475,8 @@ pub struct IDebugHostTypeSignature_Vtbl { pub IsMatch: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: *mut ::core::ffi::c_void, ismatch: *mut bool, wildcardmatches: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CompareAgainst: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, typesignature: *mut ::core::ffi::c_void, result: *mut SignatureComparison) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugInputCallbacks(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugInputCallbacks, IDebugInputCallbacks_Vtbl, 0x9f50e42c_f136_499e_9a97_73036c94ed2d); +::windows_core::imp::interface_hierarchy!(IDebugInputCallbacks, ::windows_core::IUnknown); impl IDebugInputCallbacks { pub unsafe fn StartInput(&self, buffersize: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).StartInput)(::windows_core::Interface::as_raw(self), buffersize).ok() @@ -14139,13 +13485,6 @@ impl IDebugInputCallbacks { (::windows_core::Interface::vtable(self).EndInput)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IDebugInputCallbacks, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugInputCallbacks { - type Vtable = IDebugInputCallbacks_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugInputCallbacks { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9f50e42c_f136_499e_9a97_73036c94ed2d); -} #[repr(C)] #[doc(hidden)] pub struct IDebugInputCallbacks_Vtbl { @@ -14153,9 +13492,8 @@ pub struct IDebugInputCallbacks_Vtbl { pub StartInput: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, buffersize: u32) -> ::windows_core::HRESULT, pub EndInput: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugOutputCallbacks(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugOutputCallbacks, IDebugOutputCallbacks_Vtbl, 0x4bf58045_d654_4c40_b0af_683090f356dc); +::windows_core::imp::interface_hierarchy!(IDebugOutputCallbacks, ::windows_core::IUnknown); impl IDebugOutputCallbacks { pub unsafe fn Output(&self, mask: u32, text: P0) -> ::windows_core::Result<()> where @@ -14164,22 +13502,14 @@ impl IDebugOutputCallbacks { (::windows_core::Interface::vtable(self).Output)(::windows_core::Interface::as_raw(self), mask, text.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IDebugOutputCallbacks, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugOutputCallbacks { - type Vtable = IDebugOutputCallbacks_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugOutputCallbacks { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4bf58045_d654_4c40_b0af_683090f356dc); -} #[repr(C)] #[doc(hidden)] pub struct IDebugOutputCallbacks_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Output: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mask: u32, text: ::windows_core::PCSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugOutputCallbacks2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugOutputCallbacks2, IDebugOutputCallbacks2_Vtbl, 0x67721fe9_56d2_4a44_a325_2b65513ce6eb); +::windows_core::imp::interface_hierarchy!(IDebugOutputCallbacks2, ::windows_core::IUnknown); impl IDebugOutputCallbacks2 { pub unsafe fn Output(&self, mask: u32, text: P0) -> ::windows_core::Result<()> where @@ -14198,13 +13528,6 @@ impl IDebugOutputCallbacks2 { (::windows_core::Interface::vtable(self).Output2)(::windows_core::Interface::as_raw(self), which, flags, arg, text.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IDebugOutputCallbacks2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugOutputCallbacks2 { - type Vtable = IDebugOutputCallbacks2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugOutputCallbacks2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x67721fe9_56d2_4a44_a325_2b65513ce6eb); -} #[repr(C)] #[doc(hidden)] pub struct IDebugOutputCallbacks2_Vtbl { @@ -14213,9 +13536,8 @@ pub struct IDebugOutputCallbacks2_Vtbl { pub GetInterestMask: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mask: *mut u32) -> ::windows_core::HRESULT, pub Output2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, which: u32, flags: u32, arg: u64, text: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugOutputCallbacksWide(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugOutputCallbacksWide, IDebugOutputCallbacksWide_Vtbl, 0x4c7fd663_c394_4e26_8ef1_34ad5ed3764c); +::windows_core::imp::interface_hierarchy!(IDebugOutputCallbacksWide, ::windows_core::IUnknown); impl IDebugOutputCallbacksWide { pub unsafe fn Output(&self, mask: u32, text: P0) -> ::windows_core::Result<()> where @@ -14224,22 +13546,14 @@ impl IDebugOutputCallbacksWide { (::windows_core::Interface::vtable(self).Output)(::windows_core::Interface::as_raw(self), mask, text.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IDebugOutputCallbacksWide, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugOutputCallbacksWide { - type Vtable = IDebugOutputCallbacksWide_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugOutputCallbacksWide { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4c7fd663_c394_4e26_8ef1_34ad5ed3764c); -} #[repr(C)] #[doc(hidden)] pub struct IDebugOutputCallbacksWide_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Output: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mask: u32, text: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugOutputStream(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugOutputStream, IDebugOutputStream_Vtbl, 0x7782d8f2_2b85_4059_ab88_28ceddca1c80); +::windows_core::imp::interface_hierarchy!(IDebugOutputStream, ::windows_core::IUnknown); impl IDebugOutputStream { pub unsafe fn Write(&self, psz: P0) -> ::windows_core::Result<()> where @@ -14248,22 +13562,14 @@ impl IDebugOutputStream { (::windows_core::Interface::vtable(self).Write)(::windows_core::Interface::as_raw(self), psz.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IDebugOutputStream, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugOutputStream { - type Vtable = IDebugOutputStream_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugOutputStream { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7782d8f2_2b85_4059_ab88_28ceddca1c80); -} #[repr(C)] #[doc(hidden)] pub struct IDebugOutputStream_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Write: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psz: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugPlmClient(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugPlmClient, IDebugPlmClient_Vtbl, 0xa02b66c4_aea3_4234_a9f7_fe4c383d4e29); +::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 @@ -14274,22 +13580,14 @@ impl IDebugPlmClient { (::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::imp::interface_hierarchy!(IDebugPlmClient, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugPlmClient { - type Vtable = IDebugPlmClient_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugPlmClient { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa02b66c4_aea3_4234_a9f7_fe4c383d4e29); -} #[repr(C)] #[doc(hidden)] pub struct IDebugPlmClient_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub LaunchPlmPackageForDebugWide: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, server: u64, timeout: u32, packagefullname: ::windows_core::PCWSTR, appname: ::windows_core::PCWSTR, arguments: ::windows_core::PCWSTR, processid: *mut u32, threadid: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugPlmClient2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugPlmClient2, IDebugPlmClient2_Vtbl, 0x597c980d_e7bd_4309_962c_9d9b69a7372c); +::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 @@ -14307,13 +13605,6 @@ impl IDebugPlmClient2 { (::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::imp::interface_hierarchy!(IDebugPlmClient2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugPlmClient2 { - type Vtable = IDebugPlmClient2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugPlmClient2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x597c980d_e7bd_4309_962c_9d9b69a7372c); -} #[repr(C)] #[doc(hidden)] pub struct IDebugPlmClient2_Vtbl { @@ -14321,9 +13612,8 @@ pub struct IDebugPlmClient2_Vtbl { pub LaunchPlmPackageForDebugWide: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, server: u64, timeout: u32, packagefullname: ::windows_core::PCWSTR, appname: ::windows_core::PCWSTR, arguments: ::windows_core::PCWSTR, processid: *mut u32, threadid: *mut u32) -> ::windows_core::HRESULT, pub LaunchPlmBgTaskForDebugWide: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, server: u64, timeout: u32, packagefullname: ::windows_core::PCWSTR, backgroundtaskid: ::windows_core::PCWSTR, processid: *mut u32, threadid: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugPlmClient3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugPlmClient3, IDebugPlmClient3_Vtbl, 0xd4a5dbd1_ca02_4d90_856a_2a92bfd0f20f); +::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 @@ -14399,13 +13689,6 @@ impl IDebugPlmClient3 { (::windows_core::Interface::vtable(self).ActivateAndDebugPlmBgTaskWide)(::windows_core::Interface::as_raw(self), server, packagefullname.into_param().abi(), backgroundtaskid.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IDebugPlmClient3, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugPlmClient3 { - type Vtable = IDebugPlmClient3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugPlmClient3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd4a5dbd1_ca02_4d90_856a_2a92bfd0f20f); -} #[repr(C)] #[doc(hidden)] pub struct IDebugPlmClient3_Vtbl { @@ -14422,9 +13705,8 @@ pub struct IDebugPlmClient3_Vtbl { pub LaunchAndDebugPlmAppWide: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, server: u64, packagefullname: ::windows_core::PCWSTR, appname: ::windows_core::PCWSTR, arguments: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub ActivateAndDebugPlmBgTaskWide: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, server: u64, packagefullname: ::windows_core::PCWSTR, backgroundtaskid: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugRegisters(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugRegisters, IDebugRegisters_Vtbl, 0xce289126_9e84_45a7_937e_67bb18691493); +::windows_core::imp::interface_hierarchy!(IDebugRegisters, ::windows_core::IUnknown); impl IDebugRegisters { pub unsafe fn GetNumberRegisters(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -14468,13 +13750,6 @@ impl IDebugRegisters { (::windows_core::Interface::vtable(self).GetFrameOffset)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDebugRegisters, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugRegisters { - type Vtable = IDebugRegisters_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugRegisters { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xce289126_9e84_45a7_937e_67bb18691493); -} #[repr(C)] #[doc(hidden)] pub struct IDebugRegisters_Vtbl { @@ -14491,9 +13766,8 @@ pub struct IDebugRegisters_Vtbl { pub GetStackOffset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, offset: *mut u64) -> ::windows_core::HRESULT, pub GetFrameOffset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, offset: *mut u64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugRegisters2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugRegisters2, IDebugRegisters2_Vtbl, 0x1656afa9_19c6_4e3a_97e7_5dc9160cf9c4); +::windows_core::imp::interface_hierarchy!(IDebugRegisters2, ::windows_core::IUnknown); impl IDebugRegisters2 { pub unsafe fn GetNumberRegisters(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -14598,13 +13872,6 @@ impl IDebugRegisters2 { (::windows_core::Interface::vtable(self).GetFrameOffset2)(::windows_core::Interface::as_raw(self), source, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDebugRegisters2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugRegisters2 { - type Vtable = IDebugRegisters2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugRegisters2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1656afa9_19c6_4e3a_97e7_5dc9160cf9c4); -} #[repr(C)] #[doc(hidden)] pub struct IDebugRegisters2_Vtbl { @@ -14636,9 +13903,8 @@ pub struct IDebugRegisters2_Vtbl { pub GetStackOffset2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, source: u32, offset: *mut u64) -> ::windows_core::HRESULT, pub GetFrameOffset2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, source: u32, offset: *mut u64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugSymbolGroup(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugSymbolGroup, IDebugSymbolGroup_Vtbl, 0xf2528316_0f1a_4431_aeed_11d096e1e2ab); +::windows_core::imp::interface_hierarchy!(IDebugSymbolGroup, ::windows_core::IUnknown); impl IDebugSymbolGroup { pub unsafe fn GetNumberSymbols(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -14687,13 +13953,6 @@ impl IDebugSymbolGroup { (::windows_core::Interface::vtable(self).OutputAsType)(::windows_core::Interface::as_raw(self), index, r#type.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IDebugSymbolGroup, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugSymbolGroup { - type Vtable = IDebugSymbolGroup_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugSymbolGroup { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf2528316_0f1a_4431_aeed_11d096e1e2ab); -} #[repr(C)] #[doc(hidden)] pub struct IDebugSymbolGroup_Vtbl { @@ -14709,9 +13968,8 @@ pub struct IDebugSymbolGroup_Vtbl { pub WriteSymbol: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, value: ::windows_core::PCSTR) -> ::windows_core::HRESULT, pub OutputAsType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, r#type: ::windows_core::PCSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugSymbolGroup2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugSymbolGroup2, IDebugSymbolGroup2_Vtbl, 0x6a7ccc5f_fb5e_4dcc_b41c_6c20307bccc7); +::windows_core::imp::interface_hierarchy!(IDebugSymbolGroup2, ::windows_core::IUnknown); impl IDebugSymbolGroup2 { pub unsafe fn GetNumberSymbols(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -14814,13 +14072,6 @@ impl IDebugSymbolGroup2 { (::windows_core::Interface::vtable(self).GetSymbolEntryInformation)(::windows_core::Interface::as_raw(self), index, entry).ok() } } -::windows_core::imp::interface_hierarchy!(IDebugSymbolGroup2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugSymbolGroup2 { - type Vtable = IDebugSymbolGroup2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugSymbolGroup2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6a7ccc5f_fb5e_4dcc_b41c_6c20307bccc7); -} #[repr(C)] #[doc(hidden)] pub struct IDebugSymbolGroup2_Vtbl { @@ -14849,9 +14100,8 @@ pub struct IDebugSymbolGroup2_Vtbl { pub GetSymbolValueTextWide: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, buffer: ::windows_core::PWSTR, buffersize: u32, namesize: *mut u32) -> ::windows_core::HRESULT, pub GetSymbolEntryInformation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, entry: *mut DEBUG_SYMBOL_ENTRY) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugSymbols(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugSymbols, IDebugSymbols_Vtbl, 0x8c31e98c_983a_48a5_9016_6fe5d667a950); +::windows_core::imp::interface_hierarchy!(IDebugSymbols, ::windows_core::IUnknown); impl IDebugSymbols { pub unsafe fn GetSymbolOptions(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -15080,13 +14330,6 @@ impl IDebugSymbols { (::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::imp::interface_hierarchy!(IDebugSymbols, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugSymbols { - type Vtable = IDebugSymbols_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugSymbols { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8c31e98c_983a_48a5_9016_6fe5d667a950); -} #[repr(C)] #[doc(hidden)] pub struct IDebugSymbols_Vtbl { @@ -15141,9 +14384,8 @@ pub struct IDebugSymbols_Vtbl { pub FindSourceFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, startelement: u32, file: ::windows_core::PCSTR, flags: u32, foundelement: *mut u32, buffer: ::windows_core::PSTR, buffersize: u32, foundsize: *mut u32) -> ::windows_core::HRESULT, pub GetSourceFileLineOffsets: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, file: ::windows_core::PCSTR, buffer: *mut u64, bufferlines: u32, filelines: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugSymbols2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugSymbols2, IDebugSymbols2_Vtbl, 0x3a707211_afdd_4495_ad4f_56fecdf8163f); +::windows_core::imp::interface_hierarchy!(IDebugSymbols2, ::windows_core::IUnknown); impl IDebugSymbols2 { pub unsafe fn GetSymbolOptions(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -15400,13 +14642,6 @@ impl IDebugSymbols2 { (::windows_core::Interface::vtable(self).SetTypeOptions)(::windows_core::Interface::as_raw(self), options).ok() } } -::windows_core::imp::interface_hierarchy!(IDebugSymbols2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugSymbols2 { - type Vtable = IDebugSymbols2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugSymbols2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3a707211_afdd_4495_ad4f_56fecdf8163f); -} #[repr(C)] #[doc(hidden)] pub struct IDebugSymbols2_Vtbl { @@ -15469,9 +14704,8 @@ pub struct IDebugSymbols2_Vtbl { pub RemoveTypeOptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, options: u32) -> ::windows_core::HRESULT, pub SetTypeOptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, options: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugSymbols3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugSymbols3, IDebugSymbols3_Vtbl, 0xf02fbecc_50ac_4f36_9ad9_c975e8f32ff8); +::windows_core::imp::interface_hierarchy!(IDebugSymbols3, ::windows_core::IUnknown); impl IDebugSymbols3 { pub unsafe fn GetSymbolOptions(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -16032,13 +15266,6 @@ impl IDebugSymbols3 { (::windows_core::Interface::vtable(self).GetSourceEntryBySourceEntry)(::windows_core::Interface::as_raw(self), fromentry, flags, toentry).ok() } } -::windows_core::imp::interface_hierarchy!(IDebugSymbols3, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugSymbols3 { - type Vtable = IDebugSymbols3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugSymbols3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf02fbecc_50ac_4f36_9ad9_c975e8f32ff8); -} #[repr(C)] #[doc(hidden)] pub struct IDebugSymbols3_Vtbl { @@ -16167,9 +15394,8 @@ pub struct IDebugSymbols3_Vtbl { pub GetSourceEntryOffsetRegions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, entry: *const DEBUG_SYMBOL_SOURCE_ENTRY, flags: u32, regions: *mut DEBUG_OFFSET_REGION, regionscount: u32, regionsavail: *mut u32) -> ::windows_core::HRESULT, pub GetSourceEntryBySourceEntry: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fromentry: *const DEBUG_SYMBOL_SOURCE_ENTRY, flags: u32, toentry: *mut DEBUG_SYMBOL_SOURCE_ENTRY) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugSymbols4(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugSymbols4, IDebugSymbols4_Vtbl, 0xe391bbd8_9d8c_4418_840b_c006592a1752); +::windows_core::imp::interface_hierarchy!(IDebugSymbols4, ::windows_core::IUnknown); impl IDebugSymbols4 { pub unsafe fn GetSymbolOptions(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -16751,13 +15977,6 @@ impl IDebugSymbols4 { (::windows_core::Interface::vtable(self).OutputSymbolByInlineContext)(::windows_core::Interface::as_raw(self), outputcontrol, flags, offset, inlinecontext).ok() } } -::windows_core::imp::interface_hierarchy!(IDebugSymbols4, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugSymbols4 { - type Vtable = IDebugSymbols4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugSymbols4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe391bbd8_9d8c_4418_840b_c006592a1752); -} #[repr(C)] #[doc(hidden)] pub struct IDebugSymbols4_Vtbl { @@ -16893,9 +16112,8 @@ pub struct IDebugSymbols4_Vtbl { pub GetLineByInlineContextWide: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, offset: u64, inlinecontext: u32, line: *mut u32, filebuffer: ::windows_core::PWSTR, filebuffersize: u32, filesize: *mut u32, displacement: *mut u64) -> ::windows_core::HRESULT, pub OutputSymbolByInlineContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, outputcontrol: u32, flags: u32, offset: u64, inlinecontext: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugSymbols5(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugSymbols5, IDebugSymbols5_Vtbl, 0xc65fa83e_1e69_475e_8e0e_b5d79e9cc17e); +::windows_core::imp::interface_hierarchy!(IDebugSymbols5, ::windows_core::IUnknown); impl IDebugSymbols5 { pub unsafe fn GetSymbolOptions(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -17484,13 +16702,6 @@ impl IDebugSymbols5 { (::windows_core::Interface::vtable(self).SetScopeFrameByIndexEx)(::windows_core::Interface::as_raw(self), flags, index).ok() } } -::windows_core::imp::interface_hierarchy!(IDebugSymbols5, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugSymbols5 { - type Vtable = IDebugSymbols5_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugSymbols5 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc65fa83e_1e69_475e_8e0e_b5d79e9cc17e); -} #[repr(C)] #[doc(hidden)] pub struct IDebugSymbols5_Vtbl { @@ -17628,9 +16839,8 @@ pub struct IDebugSymbols5_Vtbl { pub GetCurrentScopeFrameIndexEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: u32, index: *mut u32) -> ::windows_core::HRESULT, pub SetScopeFrameByIndexEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: u32, index: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugSystemObjects(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugSystemObjects, IDebugSystemObjects_Vtbl, 0x6b86fe2c_2c4f_4f0c_9da2_174311acc327); +::windows_core::imp::interface_hierarchy!(IDebugSystemObjects, ::windows_core::IUnknown); impl IDebugSystemObjects { pub unsafe fn GetEventThread(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -17743,13 +16953,6 @@ impl IDebugSystemObjects { (::windows_core::Interface::vtable(self).GetCurrentProcessExecutableName)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(buffer.as_deref().map_or(::core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), ::core::mem::transmute(exesize.unwrap_or(::std::ptr::null_mut()))).ok() } } -::windows_core::imp::interface_hierarchy!(IDebugSystemObjects, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugSystemObjects { - type Vtable = IDebugSystemObjects_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugSystemObjects { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6b86fe2c_2c4f_4f0c_9da2_174311acc327); -} #[repr(C)] #[doc(hidden)] pub struct IDebugSystemObjects_Vtbl { @@ -17784,9 +16987,8 @@ pub struct IDebugSystemObjects_Vtbl { pub GetProcessIdByHandle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handle: u64, id: *mut u32) -> ::windows_core::HRESULT, pub GetCurrentProcessExecutableName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, buffer: ::windows_core::PSTR, buffersize: u32, exesize: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugSystemObjects2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugSystemObjects2, IDebugSystemObjects2_Vtbl, 0x0ae9f5ff_1852_4679_b055_494bee6407ee); +::windows_core::imp::interface_hierarchy!(IDebugSystemObjects2, ::windows_core::IUnknown); impl IDebugSystemObjects2 { pub unsafe fn GetEventThread(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -17917,13 +17119,6 @@ impl IDebugSystemObjects2 { (::windows_core::Interface::vtable(self).SetImplicitProcessDataOffset)(::windows_core::Interface::as_raw(self), offset).ok() } } -::windows_core::imp::interface_hierarchy!(IDebugSystemObjects2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugSystemObjects2 { - type Vtable = IDebugSystemObjects2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugSystemObjects2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0ae9f5ff_1852_4679_b055_494bee6407ee); -} #[repr(C)] #[doc(hidden)] pub struct IDebugSystemObjects2_Vtbl { @@ -17963,9 +17158,8 @@ pub struct IDebugSystemObjects2_Vtbl { pub GetImplicitProcessDataOffset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, offset: *mut u64) -> ::windows_core::HRESULT, pub SetImplicitProcessDataOffset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, offset: u64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugSystemObjects3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugSystemObjects3, IDebugSystemObjects3_Vtbl, 0xe9676e2f_e286_4ea3_b0f9_dfe5d9fc330e); +::windows_core::imp::interface_hierarchy!(IDebugSystemObjects3, ::windows_core::IUnknown); impl IDebugSystemObjects3 { pub unsafe fn GetEventThread(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -18128,13 +17322,6 @@ impl IDebugSystemObjects3 { (::windows_core::Interface::vtable(self).GetCurrentSystemServerName)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(buffer.as_deref().map_or(::core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), ::core::mem::transmute(namesize.unwrap_or(::std::ptr::null_mut()))).ok() } } -::windows_core::imp::interface_hierarchy!(IDebugSystemObjects3, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugSystemObjects3 { - type Vtable = IDebugSystemObjects3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugSystemObjects3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe9676e2f_e286_4ea3_b0f9_dfe5d9fc330e); -} #[repr(C)] #[doc(hidden)] pub struct IDebugSystemObjects3_Vtbl { @@ -18183,9 +17370,8 @@ pub struct IDebugSystemObjects3_Vtbl { pub GetSystemByServer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, server: u64, id: *mut u32) -> ::windows_core::HRESULT, pub GetCurrentSystemServerName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, buffer: ::windows_core::PSTR, buffersize: u32, namesize: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugSystemObjects4(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugSystemObjects4, IDebugSystemObjects4_Vtbl, 0x489468e6_7d0f_4af5_87ab_25207454d553); +::windows_core::imp::interface_hierarchy!(IDebugSystemObjects4, ::windows_core::IUnknown); impl IDebugSystemObjects4 { pub unsafe fn GetEventThread(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -18354,13 +17540,6 @@ impl IDebugSystemObjects4 { (::windows_core::Interface::vtable(self).GetCurrentSystemServerNameWide)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(buffer.as_deref().map_or(::core::ptr::null(), |slice| slice.as_ptr())), buffer.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), ::core::mem::transmute(namesize.unwrap_or(::std::ptr::null_mut()))).ok() } } -::windows_core::imp::interface_hierarchy!(IDebugSystemObjects4, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugSystemObjects4 { - type Vtable = IDebugSystemObjects4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugSystemObjects4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x489468e6_7d0f_4af5_87ab_25207454d553); -} #[repr(C)] #[doc(hidden)] pub struct IDebugSystemObjects4_Vtbl { @@ -18411,9 +17590,8 @@ pub struct IDebugSystemObjects4_Vtbl { pub GetCurrentProcessExecutableNameWide: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, buffer: ::windows_core::PWSTR, buffersize: u32, exesize: *mut u32) -> ::windows_core::HRESULT, pub GetCurrentSystemServerNameWide: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, buffer: ::windows_core::PWSTR, buffersize: u32, namesize: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDynamicConceptProviderConcept(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDynamicConceptProviderConcept, IDynamicConceptProviderConcept_Vtbl, 0x95a7f7dd_602e_483f_9d06_a15c0ee13174); +::windows_core::imp::interface_hierarchy!(IDynamicConceptProviderConcept, ::windows_core::IUnknown); impl IDynamicConceptProviderConcept { pub unsafe fn GetConcept(&self, contextobject: P0, conceptid: *const ::windows_core::GUID, conceptinterface: *mut ::core::option::Option<::windows_core::IUnknown>, conceptmetadata: ::core::option::Option<*mut ::core::option::Option>, hasconcept: *mut bool) -> ::windows_core::Result<()> where @@ -18445,13 +17623,6 @@ impl IDynamicConceptProviderConcept { (::windows_core::Interface::vtable(self).NotifyDestruct)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IDynamicConceptProviderConcept, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDynamicConceptProviderConcept { - type Vtable = IDynamicConceptProviderConcept_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDynamicConceptProviderConcept { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x95a7f7dd_602e_483f_9d06_a15c0ee13174); -} #[repr(C)] #[doc(hidden)] pub struct IDynamicConceptProviderConcept_Vtbl { @@ -18462,9 +17633,8 @@ pub struct IDynamicConceptProviderConcept_Vtbl { pub NotifyParentChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, parentmodel: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub NotifyDestruct: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDynamicKeyProviderConcept(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDynamicKeyProviderConcept, IDynamicKeyProviderConcept_Vtbl, 0xe7983fa1_80a7_498c_988f_518ddc5d4025); +::windows_core::imp::interface_hierarchy!(IDynamicKeyProviderConcept, ::windows_core::IUnknown); impl IDynamicKeyProviderConcept { pub unsafe fn GetKey(&self, contextobject: P0, key: P1, keyvalue: ::core::option::Option<*mut ::core::option::Option>, metadata: ::core::option::Option<*mut ::core::option::Option>, haskey: ::core::option::Option<*mut bool>) -> ::windows_core::Result<()> where @@ -18490,13 +17660,6 @@ impl IDynamicKeyProviderConcept { (::windows_core::Interface::vtable(self).EnumerateKeys)(::windows_core::Interface::as_raw(self), contextobject.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDynamicKeyProviderConcept, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDynamicKeyProviderConcept { - type Vtable = IDynamicKeyProviderConcept_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDynamicKeyProviderConcept { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe7983fa1_80a7_498c_988f_518ddc5d4025); -} #[repr(C)] #[doc(hidden)] pub struct IDynamicKeyProviderConcept_Vtbl { @@ -18505,9 +17668,8 @@ pub struct IDynamicKeyProviderConcept_Vtbl { pub SetKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, contextobject: *mut ::core::ffi::c_void, key: ::windows_core::PCWSTR, keyvalue: *mut ::core::ffi::c_void, metadata: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub EnumerateKeys: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, contextobject: *mut ::core::ffi::c_void, ppenumerator: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEquatableConcept(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEquatableConcept, IEquatableConcept_Vtbl, 0xc52d5d3d_609d_4d5d_8a82_46b0acdec4f4); +::windows_core::imp::interface_hierarchy!(IEquatableConcept, ::windows_core::IUnknown); impl IEquatableConcept { pub unsafe fn AreObjectsEqual(&self, contextobject: P0, otherobject: P1) -> ::windows_core::Result where @@ -18518,43 +17680,27 @@ impl IEquatableConcept { (::windows_core::Interface::vtable(self).AreObjectsEqual)(::windows_core::Interface::as_raw(self), contextobject.into_param().abi(), otherobject.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEquatableConcept, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEquatableConcept { - type Vtable = IEquatableConcept_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEquatableConcept { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc52d5d3d_609d_4d5d_8a82_46b0acdec4f4); -} #[repr(C)] #[doc(hidden)] pub struct IEquatableConcept_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub AreObjectsEqual: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, contextobject: *mut ::core::ffi::c_void, otherobject: *mut ::core::ffi::c_void, isequal: *mut bool) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHostDataModelAccess(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IHostDataModelAccess, IHostDataModelAccess_Vtbl, 0xf2bce54e_4835_4f8a_836e_7981e29904d1); +::windows_core::imp::interface_hierarchy!(IHostDataModelAccess, ::windows_core::IUnknown); impl IHostDataModelAccess { pub unsafe fn GetDataModel(&self, manager: *mut ::core::option::Option, host: *mut ::core::option::Option) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetDataModel)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(manager), ::core::mem::transmute(host)).ok() } } -::windows_core::imp::interface_hierarchy!(IHostDataModelAccess, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHostDataModelAccess { - type Vtable = IHostDataModelAccess_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHostDataModelAccess { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf2bce54e_4835_4f8a_836e_7981e29904d1); -} #[repr(C)] #[doc(hidden)] pub struct IHostDataModelAccess_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetDataModel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, manager: *mut *mut ::core::ffi::c_void, host: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIndexableConcept(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IIndexableConcept, IIndexableConcept_Vtbl, 0xd1fad99f_3f53_4457_850c_8051df2d3fb5); +::windows_core::imp::interface_hierarchy!(IIndexableConcept, ::windows_core::IUnknown); impl IIndexableConcept { pub unsafe fn GetDimensionality(&self, contextobject: P0) -> ::windows_core::Result where @@ -18577,13 +17723,6 @@ impl IIndexableConcept { (::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::imp::interface_hierarchy!(IIndexableConcept, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIndexableConcept { - type Vtable = IIndexableConcept_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIndexableConcept { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd1fad99f_3f53_4457_850c_8051df2d3fb5); -} #[repr(C)] #[doc(hidden)] pub struct IIndexableConcept_Vtbl { @@ -18592,9 +17731,8 @@ pub struct IIndexableConcept_Vtbl { pub GetAt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, contextobject: *mut ::core::ffi::c_void, indexercount: u64, indexers: *const *mut ::core::ffi::c_void, object: *mut *mut ::core::ffi::c_void, metadata: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetAt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, contextobject: *mut ::core::ffi::c_void, indexercount: u64, indexers: *const *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIterableConcept(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IIterableConcept, IIterableConcept_Vtbl, 0xf5d49d0c_0b02_4301_9c9b_b3a6037628f3); +::windows_core::imp::interface_hierarchy!(IIterableConcept, ::windows_core::IUnknown); impl IIterableConcept { pub unsafe fn GetDefaultIndexDimensionality(&self, contextobject: P0) -> ::windows_core::Result where @@ -18611,13 +17749,6 @@ impl IIterableConcept { (::windows_core::Interface::vtable(self).GetIterator)(::windows_core::Interface::as_raw(self), contextobject.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IIterableConcept, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIterableConcept { - type Vtable = IIterableConcept_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIterableConcept { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf5d49d0c_0b02_4301_9c9b_b3a6037628f3); -} #[repr(C)] #[doc(hidden)] pub struct IIterableConcept_Vtbl { @@ -18625,9 +17756,8 @@ pub struct IIterableConcept_Vtbl { pub GetDefaultIndexDimensionality: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, contextobject: *mut ::core::ffi::c_void, dimensionality: *mut u64) -> ::windows_core::HRESULT, pub GetIterator: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, contextobject: *mut ::core::ffi::c_void, iterator: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKeyEnumerator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IKeyEnumerator, IKeyEnumerator_Vtbl, 0x345fa92e_5e00_4319_9cae_971f7601cdcf); +::windows_core::imp::interface_hierarchy!(IKeyEnumerator, ::windows_core::IUnknown); impl IKeyEnumerator { pub unsafe fn Reset(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Reset)(::windows_core::Interface::as_raw(self)).ok() @@ -18636,13 +17766,6 @@ impl IKeyEnumerator { (::windows_core::Interface::vtable(self).GetNext)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(key), ::core::mem::transmute(value.unwrap_or(::std::ptr::null_mut())), ::core::mem::transmute(metadata.unwrap_or(::std::ptr::null_mut()))).ok() } } -::windows_core::imp::interface_hierarchy!(IKeyEnumerator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKeyEnumerator { - type Vtable = IKeyEnumerator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKeyEnumerator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x345fa92e_5e00_4319_9cae_971f7601cdcf); -} #[repr(C)] #[doc(hidden)] pub struct IKeyEnumerator_Vtbl { @@ -18650,9 +17773,8 @@ pub struct IKeyEnumerator_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetNext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, key: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>, value: *mut *mut ::core::ffi::c_void, metadata: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKeyStore(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IKeyStore, IKeyStore_Vtbl, 0x0fc7557d_401d_4fca_9365_da1e9850697c); +::windows_core::imp::interface_hierarchy!(IKeyStore, ::windows_core::IUnknown); impl IKeyStore { pub unsafe fn GetKey(&self, key: P0, object: ::core::option::Option<*mut ::core::option::Option>, metadata: ::core::option::Option<*mut ::core::option::Option>) -> ::windows_core::Result<()> where @@ -18685,13 +17807,6 @@ impl IKeyStore { (::windows_core::Interface::vtable(self).ClearKeys)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IKeyStore, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKeyStore { - type Vtable = IKeyStore_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKeyStore { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0fc7557d_401d_4fca_9365_da1e9850697c); -} #[repr(C)] #[doc(hidden)] pub struct IKeyStore_Vtbl { @@ -18702,9 +17817,8 @@ pub struct IKeyStore_Vtbl { pub SetKeyValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, key: ::windows_core::PCWSTR, object: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ClearKeys: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IModelIterator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IModelIterator, IModelIterator_Vtbl, 0xe4622136_927d_4490_874f_581f3e4e3688); +::windows_core::imp::interface_hierarchy!(IModelIterator, ::windows_core::IUnknown); impl IModelIterator { pub unsafe fn Reset(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Reset)(::windows_core::Interface::as_raw(self)).ok() @@ -18713,13 +17827,6 @@ impl IModelIterator { (::windows_core::Interface::vtable(self).GetNext)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(object), indexers.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), ::core::mem::transmute(indexers.as_deref().map_or(::core::ptr::null(), |slice| slice.as_ptr())), ::core::mem::transmute(metadata.unwrap_or(::std::ptr::null_mut()))).ok() } } -::windows_core::imp::interface_hierarchy!(IModelIterator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IModelIterator { - type Vtable = IModelIterator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IModelIterator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe4622136_927d_4490_874f_581f3e4e3688); -} #[repr(C)] #[doc(hidden)] pub struct IModelIterator_Vtbl { @@ -18727,9 +17834,8 @@ pub struct IModelIterator_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetNext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, object: *mut *mut ::core::ffi::c_void, dimensions: u64, indexers: *mut *mut ::core::ffi::c_void, metadata: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IModelKeyReference(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IModelKeyReference, IModelKeyReference_Vtbl, 0x5253dcf8_5aff_4c62_b302_56a289e00998); +::windows_core::imp::interface_hierarchy!(IModelKeyReference, ::windows_core::IUnknown); impl IModelKeyReference { pub unsafe fn GetKeyName(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -18763,13 +17869,6 @@ impl IModelKeyReference { (::windows_core::Interface::vtable(self).SetKeyValue)(::windows_core::Interface::as_raw(self), object.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IModelKeyReference, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IModelKeyReference { - type Vtable = IModelKeyReference_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IModelKeyReference { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5253dcf8_5aff_4c62_b302_56a289e00998); -} #[repr(C)] #[doc(hidden)] pub struct IModelKeyReference_Vtbl { @@ -18782,9 +17881,8 @@ pub struct IModelKeyReference_Vtbl { pub SetKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, object: *mut ::core::ffi::c_void, metadata: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetKeyValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, object: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IModelKeyReference2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IModelKeyReference2, IModelKeyReference2_Vtbl, 0x80e2f7c5_7159_4e92_887e_7e0347e88406); +::windows_core::imp::interface_hierarchy!(IModelKeyReference2, ::windows_core::IUnknown, IModelKeyReference); impl IModelKeyReference2 { pub unsafe fn GetKeyName(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -18824,22 +17922,14 @@ impl IModelKeyReference2 { (::windows_core::Interface::vtable(self).OverrideContextObject)(::windows_core::Interface::as_raw(self), newcontextobject.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IModelKeyReference2, ::windows_core::IUnknown, IModelKeyReference); -unsafe impl ::windows_core::Interface for IModelKeyReference2 { - type Vtable = IModelKeyReference2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IModelKeyReference2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x80e2f7c5_7159_4e92_887e_7e0347e88406); -} #[repr(C)] #[doc(hidden)] pub struct IModelKeyReference2_Vtbl { pub base__: IModelKeyReference_Vtbl, pub OverrideContextObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newcontextobject: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IModelMethod(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IModelMethod, IModelMethod_Vtbl, 0x80600c1f_b90b_4896_82ad_1c00207909e8); +::windows_core::imp::interface_hierarchy!(IModelMethod, ::windows_core::IUnknown); impl IModelMethod { pub unsafe fn Call(&self, pcontextobject: P0, pparguments: &[::core::option::Option], ppresult: *mut ::core::option::Option, ppmetadata: ::core::option::Option<*mut ::core::option::Option>) -> ::windows_core::Result<()> where @@ -18848,22 +17938,14 @@ impl IModelMethod { (::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::imp::interface_hierarchy!(IModelMethod, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IModelMethod { - type Vtable = IModelMethod_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IModelMethod { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x80600c1f_b90b_4896_82ad_1c00207909e8); -} #[repr(C)] #[doc(hidden)] pub struct IModelMethod_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Call: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcontextobject: *mut ::core::ffi::c_void, argcount: u64, pparguments: *const *mut ::core::ffi::c_void, ppresult: *mut *mut ::core::ffi::c_void, ppmetadata: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IModelObject(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IModelObject, IModelObject_Vtbl, 0xe28c7893_3f4b_4b96_baca_293cdc55f45d); +::windows_core::imp::interface_hierarchy!(IModelObject, ::windows_core::IUnknown); impl IModelObject { pub unsafe fn GetContext(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -19035,13 +18117,6 @@ impl IModelObject { (::windows_core::Interface::vtable(self).IsEqualTo)(::windows_core::Interface::as_raw(self), other.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IModelObject, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IModelObject { - type Vtable = IModelObject_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IModelObject { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe28c7893_3f4b_4b96_baca_293cdc55f45d); -} #[repr(C)] #[doc(hidden)] pub struct IModelObject_Vtbl { @@ -19086,9 +18161,8 @@ pub struct IModelObject_Vtbl { pub Compare: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, other: *mut ::core::ffi::c_void, ppresult: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub IsEqualTo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, other: *mut ::core::ffi::c_void, equal: *mut bool) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IModelPropertyAccessor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IModelPropertyAccessor, IModelPropertyAccessor_Vtbl, 0x5a0c63d9_0526_42b8_960c_9516a3254c85); +::windows_core::imp::interface_hierarchy!(IModelPropertyAccessor, ::windows_core::IUnknown); impl IModelPropertyAccessor { pub unsafe fn GetValue(&self, key: P0, contextobject: P1) -> ::windows_core::Result where @@ -19107,13 +18181,6 @@ impl IModelPropertyAccessor { (::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::imp::interface_hierarchy!(IModelPropertyAccessor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IModelPropertyAccessor { - type Vtable = IModelPropertyAccessor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IModelPropertyAccessor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5a0c63d9_0526_42b8_960c_9516a3254c85); -} #[repr(C)] #[doc(hidden)] pub struct IModelPropertyAccessor_Vtbl { @@ -19121,9 +18188,8 @@ pub struct IModelPropertyAccessor_Vtbl { pub GetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, key: ::windows_core::PCWSTR, contextobject: *mut ::core::ffi::c_void, value: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, key: ::windows_core::PCWSTR, contextobject: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPreferredRuntimeTypeConcept(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPreferredRuntimeTypeConcept, IPreferredRuntimeTypeConcept_Vtbl, 0x9d6c1d7b_a76f_4618_8068_5f76bd9a4e8a); +::windows_core::imp::interface_hierarchy!(IPreferredRuntimeTypeConcept, ::windows_core::IUnknown); impl IPreferredRuntimeTypeConcept { pub unsafe fn CastToPreferredRuntimeType(&self, contextobject: P0) -> ::windows_core::Result where @@ -19133,22 +18199,14 @@ impl IPreferredRuntimeTypeConcept { (::windows_core::Interface::vtable(self).CastToPreferredRuntimeType)(::windows_core::Interface::as_raw(self), contextobject.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IPreferredRuntimeTypeConcept, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPreferredRuntimeTypeConcept { - type Vtable = IPreferredRuntimeTypeConcept_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPreferredRuntimeTypeConcept { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9d6c1d7b_a76f_4618_8068_5f76bd9a4e8a); -} #[repr(C)] #[doc(hidden)] pub struct IPreferredRuntimeTypeConcept_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub CastToPreferredRuntimeType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, contextobject: *mut ::core::ffi::c_void, object: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRawEnumerator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRawEnumerator, IRawEnumerator_Vtbl, 0xe13613f9_3a3c_40b5_8f48_1e5ebfb9b21b); +::windows_core::imp::interface_hierarchy!(IRawEnumerator, ::windows_core::IUnknown); impl IRawEnumerator { pub unsafe fn Reset(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Reset)(::windows_core::Interface::as_raw(self)).ok() @@ -19157,13 +18215,6 @@ impl IRawEnumerator { (::windows_core::Interface::vtable(self).GetNext)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(name.unwrap_or(::std::ptr::null_mut())), ::core::mem::transmute(kind.unwrap_or(::std::ptr::null_mut())), ::core::mem::transmute(value.unwrap_or(::std::ptr::null_mut()))).ok() } } -::windows_core::imp::interface_hierarchy!(IRawEnumerator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRawEnumerator { - type Vtable = IRawEnumerator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRawEnumerator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe13613f9_3a3c_40b5_8f48_1e5ebfb9b21b); -} #[repr(C)] #[doc(hidden)] pub struct IRawEnumerator_Vtbl { @@ -19171,9 +18222,8 @@ pub struct IRawEnumerator_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetNext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>, kind: *mut SymbolKind, value: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStringDisplayableConcept(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IStringDisplayableConcept, IStringDisplayableConcept_Vtbl, 0xd28e8d70_6c00_4205_940d_501016601ea3); +::windows_core::imp::interface_hierarchy!(IStringDisplayableConcept, ::windows_core::IUnknown); impl IStringDisplayableConcept { pub unsafe fn ToDisplayString(&self, contextobject: P0, metadata: P1) -> ::windows_core::Result<::windows_core::BSTR> where @@ -19184,13 +18234,6 @@ impl IStringDisplayableConcept { (::windows_core::Interface::vtable(self).ToDisplayString)(::windows_core::Interface::as_raw(self), contextobject.into_param().abi(), metadata.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IStringDisplayableConcept, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStringDisplayableConcept { - type Vtable = IStringDisplayableConcept_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStringDisplayableConcept { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd28e8d70_6c00_4205_940d_501016601ea3); -} #[repr(C)] #[doc(hidden)] pub struct IStringDisplayableConcept_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Debug/impl.rs b/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Debug/impl.rs index 3114066361..708e6235a4 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Debug/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Debug/impl.rs @@ -32,7 +32,7 @@ impl IDebugExtendedProperty_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -96,7 +96,7 @@ impl IDebugProperty_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugPropertyEnumType_All_Impl: Sized { @@ -119,7 +119,7 @@ impl IDebugPropertyEnumType_All_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetName: GetName:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDebugPropertyEnumType_Arguments_Impl: Sized + IDebugPropertyEnumType_All_Impl {} @@ -129,7 +129,7 @@ impl IDebugPropertyEnumType_Arguments_Vtbl { Self { base__: IDebugPropertyEnumType_All_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDebugPropertyEnumType_Locals_Impl: Sized + IDebugPropertyEnumType_All_Impl {} @@ -139,7 +139,7 @@ impl IDebugPropertyEnumType_Locals_Vtbl { Self { base__: IDebugPropertyEnumType_All_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDebugPropertyEnumType_LocalsPlusArgs_Impl: Sized + IDebugPropertyEnumType_All_Impl {} @@ -149,7 +149,7 @@ impl IDebugPropertyEnumType_LocalsPlusArgs_Vtbl { Self { base__: IDebugPropertyEnumType_All_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDebugPropertyEnumType_Registers_Impl: Sized + IDebugPropertyEnumType_All_Impl {} @@ -159,7 +159,7 @@ impl IDebugPropertyEnumType_Registers_Vtbl { Self { base__: IDebugPropertyEnumType_All_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -223,7 +223,7 @@ impl IEnumDebugExtendedPropertyInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumDebugPropertyInfo_Impl: Sized { @@ -283,7 +283,7 @@ impl IEnumDebugPropertyInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IObjectSafety_Impl: Sized { @@ -310,7 +310,7 @@ impl IObjectSafety_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Ole\"`"] @@ -367,6 +367,6 @@ impl IPerPropertyBrowsing2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 67eff24a1d..6ce0c8156b 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 @@ -2652,9 +2652,8 @@ where ::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() } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugExtendedProperty(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugExtendedProperty, IDebugExtendedProperty_Vtbl, 0x51973c52_cb0c_11d0_b5c9_00a0244a0e7a); +::windows_core::imp::interface_hierarchy!(IDebugExtendedProperty, ::windows_core::IUnknown, IDebugProperty); impl IDebugExtendedProperty { pub unsafe fn GetPropertyInfo(&self, dwfieldspec: u32, nradix: u32, ppropertyinfo: *mut DebugPropertyInfo) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.GetPropertyInfo)(::windows_core::Interface::as_raw(self), dwfieldspec, nradix, ppropertyinfo).ok() @@ -2688,13 +2687,6 @@ impl IDebugExtendedProperty { (::windows_core::Interface::vtable(self).EnumExtendedMembers)(::windows_core::Interface::as_raw(self), dwfieldspec, nradix, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDebugExtendedProperty, ::windows_core::IUnknown, IDebugProperty); -unsafe impl ::windows_core::Interface for IDebugExtendedProperty { - type Vtable = IDebugExtendedProperty_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugExtendedProperty { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51973c52_cb0c_11d0_b5c9_00a0244a0e7a); -} #[repr(C)] #[doc(hidden)] pub struct IDebugExtendedProperty_Vtbl { @@ -2705,9 +2697,8 @@ pub struct IDebugExtendedProperty_Vtbl { GetExtendedPropertyInfo: usize, pub EnumExtendedMembers: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwfieldspec: u32, nradix: u32, ppeepi: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugProperty(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugProperty, IDebugProperty_Vtbl, 0x51973c50_cb0c_11d0_b5c9_00a0244a0e7a); +::windows_core::imp::interface_hierarchy!(IDebugProperty, ::windows_core::IUnknown); impl IDebugProperty { pub unsafe fn GetPropertyInfo(&self, dwfieldspec: u32, nradix: u32, ppropertyinfo: *mut DebugPropertyInfo) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetPropertyInfo)(::windows_core::Interface::as_raw(self), dwfieldspec, nradix, ppropertyinfo).ok() @@ -2732,13 +2723,6 @@ impl IDebugProperty { (::windows_core::Interface::vtable(self).GetParent)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDebugProperty, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugProperty { - type Vtable = IDebugProperty_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugProperty { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51973c50_cb0c_11d0_b5c9_00a0244a0e7a); -} #[repr(C)] #[doc(hidden)] pub struct IDebugProperty_Vtbl { @@ -2752,115 +2736,74 @@ pub struct IDebugProperty_Vtbl { pub EnumMembers: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwfieldspec: u32, nradix: u32, refiid: *const ::windows_core::GUID, ppepi: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetParent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppdebugprop: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugPropertyEnumType_All(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugPropertyEnumType_All, IDebugPropertyEnumType_All_Vtbl, 0x51973c55_cb0c_11d0_b5c9_00a0244a0e7a); +::windows_core::imp::interface_hierarchy!(IDebugPropertyEnumType_All, ::windows_core::IUnknown); impl IDebugPropertyEnumType_All { pub unsafe fn GetName(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetName)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDebugPropertyEnumType_All, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDebugPropertyEnumType_All { - type Vtable = IDebugPropertyEnumType_All_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugPropertyEnumType_All { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51973c55_cb0c_11d0_b5c9_00a0244a0e7a); -} #[repr(C)] #[doc(hidden)] pub struct IDebugPropertyEnumType_All_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, __midl__idebugpropertyenumtype_all0000: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugPropertyEnumType_Arguments(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugPropertyEnumType_Arguments, IDebugPropertyEnumType_Arguments_Vtbl, 0x51973c57_cb0c_11d0_b5c9_00a0244a0e7a); +::windows_core::imp::interface_hierarchy!(IDebugPropertyEnumType_Arguments, ::windows_core::IUnknown, IDebugPropertyEnumType_All); impl IDebugPropertyEnumType_Arguments { pub unsafe fn GetName(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).base__.GetName)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDebugPropertyEnumType_Arguments, ::windows_core::IUnknown, IDebugPropertyEnumType_All); -unsafe impl ::windows_core::Interface for IDebugPropertyEnumType_Arguments { - type Vtable = IDebugPropertyEnumType_Arguments_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugPropertyEnumType_Arguments { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51973c57_cb0c_11d0_b5c9_00a0244a0e7a); -} #[repr(C)] #[doc(hidden)] pub struct IDebugPropertyEnumType_Arguments_Vtbl { pub base__: IDebugPropertyEnumType_All_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugPropertyEnumType_Locals(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugPropertyEnumType_Locals, IDebugPropertyEnumType_Locals_Vtbl, 0x51973c56_cb0c_11d0_b5c9_00a0244a0e7a); +::windows_core::imp::interface_hierarchy!(IDebugPropertyEnumType_Locals, ::windows_core::IUnknown, IDebugPropertyEnumType_All); impl IDebugPropertyEnumType_Locals { pub unsafe fn GetName(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).base__.GetName)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDebugPropertyEnumType_Locals, ::windows_core::IUnknown, IDebugPropertyEnumType_All); -unsafe impl ::windows_core::Interface for IDebugPropertyEnumType_Locals { - type Vtable = IDebugPropertyEnumType_Locals_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugPropertyEnumType_Locals { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51973c56_cb0c_11d0_b5c9_00a0244a0e7a); -} #[repr(C)] #[doc(hidden)] pub struct IDebugPropertyEnumType_Locals_Vtbl { pub base__: IDebugPropertyEnumType_All_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugPropertyEnumType_LocalsPlusArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugPropertyEnumType_LocalsPlusArgs, IDebugPropertyEnumType_LocalsPlusArgs_Vtbl, 0x51973c58_cb0c_11d0_b5c9_00a0244a0e7a); +::windows_core::imp::interface_hierarchy!(IDebugPropertyEnumType_LocalsPlusArgs, ::windows_core::IUnknown, IDebugPropertyEnumType_All); impl IDebugPropertyEnumType_LocalsPlusArgs { pub unsafe fn GetName(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).base__.GetName)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDebugPropertyEnumType_LocalsPlusArgs, ::windows_core::IUnknown, IDebugPropertyEnumType_All); -unsafe impl ::windows_core::Interface for IDebugPropertyEnumType_LocalsPlusArgs { - type Vtable = IDebugPropertyEnumType_LocalsPlusArgs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugPropertyEnumType_LocalsPlusArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51973c58_cb0c_11d0_b5c9_00a0244a0e7a); -} #[repr(C)] #[doc(hidden)] pub struct IDebugPropertyEnumType_LocalsPlusArgs_Vtbl { pub base__: IDebugPropertyEnumType_All_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDebugPropertyEnumType_Registers(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDebugPropertyEnumType_Registers, IDebugPropertyEnumType_Registers_Vtbl, 0x51973c59_cb0c_11d0_b5c9_00a0244a0e7a); +::windows_core::imp::interface_hierarchy!(IDebugPropertyEnumType_Registers, ::windows_core::IUnknown, IDebugPropertyEnumType_All); impl IDebugPropertyEnumType_Registers { pub unsafe fn GetName(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).base__.GetName)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDebugPropertyEnumType_Registers, ::windows_core::IUnknown, IDebugPropertyEnumType_All); -unsafe impl ::windows_core::Interface for IDebugPropertyEnumType_Registers { - type Vtable = IDebugPropertyEnumType_Registers_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDebugPropertyEnumType_Registers { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51973c59_cb0c_11d0_b5c9_00a0244a0e7a); -} #[repr(C)] #[doc(hidden)] pub struct IDebugPropertyEnumType_Registers_Vtbl { pub base__: IDebugPropertyEnumType_All_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumDebugExtendedPropertyInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumDebugExtendedPropertyInfo, IEnumDebugExtendedPropertyInfo_Vtbl, 0x51973c53_cb0c_11d0_b5c9_00a0244a0e7a); +::windows_core::imp::interface_hierarchy!(IEnumDebugExtendedPropertyInfo, ::windows_core::IUnknown); impl IEnumDebugExtendedPropertyInfo { #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -2882,13 +2825,6 @@ impl IEnumDebugExtendedPropertyInfo { (::windows_core::Interface::vtable(self).GetCount)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumDebugExtendedPropertyInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumDebugExtendedPropertyInfo { - type Vtable = IEnumDebugExtendedPropertyInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumDebugExtendedPropertyInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51973c53_cb0c_11d0_b5c9_00a0244a0e7a); -} #[repr(C)] #[doc(hidden)] pub struct IEnumDebugExtendedPropertyInfo_Vtbl { @@ -2902,9 +2838,8 @@ pub struct IEnumDebugExtendedPropertyInfo_Vtbl { pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pedpe: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcelt: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumDebugPropertyInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumDebugPropertyInfo, IEnumDebugPropertyInfo_Vtbl, 0x51973c51_cb0c_11d0_b5c9_00a0244a0e7a); +::windows_core::imp::interface_hierarchy!(IEnumDebugPropertyInfo, ::windows_core::IUnknown); impl IEnumDebugPropertyInfo { pub unsafe fn Next(&self, pi: &mut [DebugPropertyInfo], pceltsfetched: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), pi.len().try_into().unwrap(), ::core::mem::transmute(pi.as_ptr()), pceltsfetched).ok() @@ -2924,13 +2859,6 @@ impl IEnumDebugPropertyInfo { (::windows_core::Interface::vtable(self).GetCount)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumDebugPropertyInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumDebugPropertyInfo { - type Vtable = IEnumDebugPropertyInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumDebugPropertyInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51973c51_cb0c_11d0_b5c9_00a0244a0e7a); -} #[repr(C)] #[doc(hidden)] pub struct IEnumDebugPropertyInfo_Vtbl { @@ -2941,9 +2869,8 @@ pub struct IEnumDebugPropertyInfo_Vtbl { pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppepi: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcelt: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IObjectSafety(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IObjectSafety, IObjectSafety_Vtbl, 0xcb5bdc81_93c1_11cf_8f20_00805f2cd064); +::windows_core::imp::interface_hierarchy!(IObjectSafety, ::windows_core::IUnknown); impl IObjectSafety { pub unsafe fn GetInterfaceSafetyOptions(&self, riid: *const ::windows_core::GUID, pdwsupportedoptions: *mut u32, pdwenabledoptions: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetInterfaceSafetyOptions)(::windows_core::Interface::as_raw(self), riid, pdwsupportedoptions, pdwenabledoptions).ok() @@ -2952,13 +2879,6 @@ impl IObjectSafety { (::windows_core::Interface::vtable(self).SetInterfaceSafetyOptions)(::windows_core::Interface::as_raw(self), riid, dwoptionsetmask, dwenabledoptions).ok() } } -::windows_core::imp::interface_hierarchy!(IObjectSafety, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IObjectSafety { - type Vtable = IObjectSafety_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IObjectSafety { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcb5bdc81_93c1_11cf_8f20_00805f2cd064); -} #[repr(C)] #[doc(hidden)] pub struct IObjectSafety_Vtbl { @@ -2966,9 +2886,8 @@ pub struct IObjectSafety_Vtbl { pub GetInterfaceSafetyOptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, pdwsupportedoptions: *mut u32, pdwenabledoptions: *mut u32) -> ::windows_core::HRESULT, pub SetInterfaceSafetyOptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, dwoptionsetmask: u32, dwenabledoptions: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPerPropertyBrowsing2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPerPropertyBrowsing2, IPerPropertyBrowsing2_Vtbl, 0x51973c54_cb0c_11d0_b5c9_00a0244a0e7a); +::windows_core::imp::interface_hierarchy!(IPerPropertyBrowsing2, ::windows_core::IUnknown); impl IPerPropertyBrowsing2 { pub unsafe fn GetDisplayString(&self, dispid: i32) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -2987,13 +2906,6 @@ impl IPerPropertyBrowsing2 { (::windows_core::Interface::vtable(self).SetPredefinedValue)(::windows_core::Interface::as_raw(self), dispid, dwcookie).ok() } } -::windows_core::imp::interface_hierarchy!(IPerPropertyBrowsing2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPerPropertyBrowsing2 { - type Vtable = IPerPropertyBrowsing2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPerPropertyBrowsing2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51973c54_cb0c_11d0_b5c9_00a0244a0e7a); -} #[repr(C)] #[doc(hidden)] pub struct IPerPropertyBrowsing2_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Etw/impl.rs b/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Etw/impl.rs index 4a7539b01a..95d8a9a423 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Etw/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Etw/impl.rs @@ -110,7 +110,7 @@ impl ITraceEvent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITraceEventCallback_Impl: Sized { @@ -144,7 +144,7 @@ impl ITraceEventCallback_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITraceRelogger_Impl: Sized { @@ -238,6 +238,6 @@ impl ITraceRelogger_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 64b4485695..61c0d8dc8f 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 @@ -546,9 +546,8 @@ where ::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).ok() } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITraceEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITraceEvent, ITraceEvent_Vtbl, 0x8cc97f40_9028_4ff3_9b62_7d1f79ca7bcb); +::windows_core::imp::interface_hierarchy!(ITraceEvent, ::windows_core::IUnknown); impl ITraceEvent { pub unsafe fn Clone(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -590,13 +589,6 @@ impl ITraceEvent { (::windows_core::Interface::vtable(self).SetProviderId)(::windows_core::Interface::as_raw(self), providerid).ok() } } -::windows_core::imp::interface_hierarchy!(ITraceEvent, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITraceEvent { - type Vtable = ITraceEvent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITraceEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8cc97f40_9028_4ff3_9b62_7d1f79ca7bcb); -} #[repr(C)] #[doc(hidden)] pub struct ITraceEvent_Vtbl { @@ -614,9 +606,8 @@ pub struct ITraceEvent_Vtbl { pub SetTimeStamp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, timestamp: *const i64) -> ::windows_core::HRESULT, pub SetProviderId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, providerid: *const ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITraceEventCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITraceEventCallback, ITraceEventCallback_Vtbl, 0x3ed25501_593f_43e9_8f38_3ab46f5a4a52); +::windows_core::imp::interface_hierarchy!(ITraceEventCallback, ::windows_core::IUnknown); impl ITraceEventCallback { pub unsafe fn OnBeginProcessTrace(&self, headerevent: P0, relogger: P1) -> ::windows_core::Result<()> where @@ -639,13 +630,6 @@ impl ITraceEventCallback { (::windows_core::Interface::vtable(self).OnEvent)(::windows_core::Interface::as_raw(self), event.into_param().abi(), relogger.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ITraceEventCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITraceEventCallback { - type Vtable = ITraceEventCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITraceEventCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3ed25501_593f_43e9_8f38_3ab46f5a4a52); -} #[repr(C)] #[doc(hidden)] pub struct ITraceEventCallback_Vtbl { @@ -654,9 +638,8 @@ pub struct ITraceEventCallback_Vtbl { pub OnFinalizeProcessTrace: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, relogger: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub OnEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, event: *mut ::core::ffi::c_void, relogger: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITraceRelogger(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITraceRelogger, ITraceRelogger_Vtbl, 0xf754ad43_3bcc_4286_8009_9c5da214e84e); +::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 @@ -707,13 +690,6 @@ impl ITraceRelogger { (::windows_core::Interface::vtable(self).Cancel)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ITraceRelogger, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITraceRelogger { - type Vtable = ITraceRelogger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITraceRelogger { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf754ad43_3bcc_4286_8009_9c5da214e84e); -} #[repr(C)] #[doc(hidden)] pub struct ITraceRelogger_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/System/DistributedTransactionCoordinator/impl.rs b/crates/libs/windows/src/Windows/Win32/System/DistributedTransactionCoordinator/impl.rs index 382ea4ff80..f55662d4cb 100644 --- a/crates/libs/windows/src/Windows/Win32/System/DistributedTransactionCoordinator/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/DistributedTransactionCoordinator/impl.rs @@ -18,7 +18,7 @@ impl IDtcLuConfigure_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Add: Add::, Delete: Delete:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDtcLuRecovery_Impl: Sized {} @@ -28,7 +28,7 @@ impl IDtcLuRecovery_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDtcLuRecoveryFactory_Impl: Sized { @@ -51,7 +51,7 @@ impl IDtcLuRecoveryFactory_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Create: Create:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDtcLuRecoveryInitiatedByDtc_Impl: Sized { @@ -68,7 +68,7 @@ impl IDtcLuRecoveryInitiatedByDtc_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetWork: GetWork:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDtcLuRecoveryInitiatedByDtcStatusWork_Impl: Sized { @@ -85,7 +85,7 @@ impl IDtcLuRecoveryInitiatedByDtcStatusWork_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), HandleCheckLuStatus: HandleCheckLuStatus:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDtcLuRecoveryInitiatedByDtcTransWork_Impl: Sized { @@ -189,7 +189,7 @@ impl IDtcLuRecoveryInitiatedByDtcTransWork_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDtcLuRecoveryInitiatedByLu_Impl: Sized { @@ -215,7 +215,7 @@ impl IDtcLuRecoveryInitiatedByLu_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDtcLuRecoveryInitiatedByLuWork_Impl: Sized { @@ -284,7 +284,7 @@ impl IDtcLuRecoveryInitiatedByLuWork_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDtcLuRmEnlistment_Impl: Sized { @@ -339,7 +339,7 @@ impl IDtcLuRmEnlistment_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDtcLuRmEnlistmentFactory_Impl: Sized { @@ -356,7 +356,7 @@ impl IDtcLuRmEnlistmentFactory_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Create: Create:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDtcLuRmEnlistmentSink_Impl: Sized { @@ -432,7 +432,7 @@ impl IDtcLuRmEnlistmentSink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDtcLuSubordinateDtc_Impl: Sized { @@ -494,7 +494,7 @@ impl IDtcLuSubordinateDtc_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDtcLuSubordinateDtcFactory_Impl: Sized { @@ -524,7 +524,7 @@ impl IDtcLuSubordinateDtcFactory_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Create: Create:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDtcLuSubordinateDtcSink_Impl: Sized { @@ -593,7 +593,7 @@ impl IDtcLuSubordinateDtcSink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDtcNetworkAccessConfig_Impl: Sized { @@ -733,7 +733,7 @@ impl IDtcNetworkAccessConfig_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDtcNetworkAccessConfig2_Impl: Sized + IDtcNetworkAccessConfig_Impl { @@ -806,7 +806,7 @@ impl IDtcNetworkAccessConfig2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDtcNetworkAccessConfig3_Impl: Sized + IDtcNetworkAccessConfig2_Impl { @@ -839,7 +839,7 @@ impl IDtcNetworkAccessConfig3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDtcToXaHelper_Impl: Sized { @@ -866,7 +866,7 @@ impl IDtcToXaHelper_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDtcToXaHelperFactory_Impl: Sized { @@ -883,7 +883,7 @@ impl IDtcToXaHelperFactory_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Create: Create:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDtcToXaHelperSinglePipe_Impl: Sized { @@ -930,7 +930,7 @@ impl IDtcToXaHelperSinglePipe_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDtcToXaMapper_Impl: Sized { @@ -971,7 +971,7 @@ impl IDtcToXaMapper_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IGetDispenser_Impl: Sized { @@ -988,7 +988,7 @@ impl IGetDispenser_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetDispenser: GetDispenser:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IKernelTransaction_Impl: Sized { @@ -1011,7 +1011,7 @@ impl IKernelTransaction_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetHandle: GetHandle:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ILastResourceManager_Impl: Sized { @@ -1038,7 +1038,7 @@ impl ILastResourceManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPrepareInfo_Impl: Sized { @@ -1065,7 +1065,7 @@ impl IPrepareInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPrepareInfo2_Impl: Sized { @@ -1098,7 +1098,7 @@ impl IPrepareInfo2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRMHelper_Impl: Sized { @@ -1125,7 +1125,7 @@ impl IRMHelper_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IResourceManager_Impl: Sized { @@ -1172,7 +1172,7 @@ impl IResourceManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IResourceManager2_Impl: Sized + IResourceManager_Impl { @@ -1205,7 +1205,7 @@ impl IResourceManager2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IResourceManagerFactory_Impl: Sized { @@ -1228,7 +1228,7 @@ impl IResourceManagerFactory_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Create: Create:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IResourceManagerFactory2_Impl: Sized + IResourceManagerFactory_Impl { @@ -1245,7 +1245,7 @@ impl IResourceManagerFactory2_Vtbl { Self { base__: IResourceManagerFactory_Vtbl::new::(), CreateEx: CreateEx:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IResourceManagerRejoinable_Impl: Sized + IResourceManager2_Impl { @@ -1268,7 +1268,7 @@ impl IResourceManagerRejoinable_Vtbl { Self { base__: IResourceManager2_Vtbl::new::(), Rejoin: Rejoin:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IResourceManagerSink_Impl: Sized { @@ -1285,7 +1285,7 @@ impl IResourceManagerSink_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), TMDown: TMDown:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITipHelper_Impl: Sized { @@ -1337,7 +1337,7 @@ impl ITipHelper_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITipPullSink_Impl: Sized { @@ -1354,7 +1354,7 @@ impl ITipPullSink_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), PullComplete: PullComplete:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITipTransaction_Impl: Sized { @@ -1393,7 +1393,7 @@ impl ITipTransaction_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITmNodeName_Impl: Sized { @@ -1426,7 +1426,7 @@ impl ITmNodeName_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITransaction_Impl: Sized { @@ -1460,7 +1460,7 @@ impl ITransaction_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITransaction2_Impl: Sized + ITransactionCloner_Impl { @@ -1477,7 +1477,7 @@ impl ITransaction2_Vtbl { Self { base__: ITransactionCloner_Vtbl::new::(), GetTransactionInfo2: GetTransactionInfo2:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ITransactionCloner_Impl: Sized + ITransaction_Impl { @@ -1500,7 +1500,7 @@ impl ITransactionCloner_Vtbl { Self { base__: ITransaction_Vtbl::new::(), CloneWithCommitDisabled: CloneWithCommitDisabled:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ITransactionDispenser_Impl: Sized { @@ -1539,7 +1539,7 @@ impl ITransactionDispenser_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1577,7 +1577,7 @@ impl ITransactionEnlistmentAsync_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITransactionExport_Impl: Sized { @@ -1610,7 +1610,7 @@ impl ITransactionExport_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITransactionExportFactory_Impl: Sized { @@ -1649,7 +1649,7 @@ impl ITransactionExportFactory_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITransactionImport_Impl: Sized { @@ -1666,7 +1666,7 @@ impl ITransactionImport_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Import: Import:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITransactionImportWhereabouts_Impl: Sized { @@ -1699,7 +1699,7 @@ impl ITransactionImportWhereabouts_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITransactionLastEnlistmentAsync_Impl: Sized { @@ -1716,7 +1716,7 @@ impl ITransactionLastEnlistmentAsync_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), TransactionOutcome: TransactionOutcome:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITransactionLastResourceAsync_Impl: Sized { @@ -1743,7 +1743,7 @@ impl ITransactionLastResourceAsync_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITransactionOptions_Impl: Sized { @@ -1770,7 +1770,7 @@ impl ITransactionOptions_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITransactionOutcomeEvents_Impl: Sized { @@ -1811,7 +1811,7 @@ impl ITransactionOutcomeEvents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITransactionPhase0EnlistmentAsync_Impl: Sized { @@ -1865,7 +1865,7 @@ impl ITransactionPhase0EnlistmentAsync_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITransactionPhase0Factory_Impl: Sized { @@ -1888,7 +1888,7 @@ impl ITransactionPhase0Factory_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Create: Create:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITransactionPhase0NotifyAsync_Impl: Sized { @@ -1915,7 +1915,7 @@ impl ITransactionPhase0NotifyAsync_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITransactionReceiver_Impl: Sized { @@ -1968,7 +1968,7 @@ impl ITransactionReceiver_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITransactionReceiverFactory_Impl: Sized { @@ -1991,7 +1991,7 @@ impl ITransactionReceiverFactory_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Create: Create:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITransactionResource_Impl: Sized { @@ -2032,7 +2032,7 @@ impl ITransactionResource_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITransactionResourceAsync_Impl: Sized { @@ -2073,7 +2073,7 @@ impl ITransactionResourceAsync_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITransactionTransmitter_Impl: Sized { @@ -2127,7 +2127,7 @@ impl ITransactionTransmitter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITransactionTransmitterFactory_Impl: Sized { @@ -2150,7 +2150,7 @@ impl ITransactionTransmitterFactory_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Create: Create:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITransactionVoterBallotAsync2_Impl: Sized { @@ -2167,7 +2167,7 @@ impl ITransactionVoterBallotAsync2_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), VoteRequestDone: VoteRequestDone:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITransactionVoterFactory2_Impl: Sized { @@ -2190,7 +2190,7 @@ impl ITransactionVoterFactory2_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Create: Create:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITransactionVoterNotifyAsync2_Impl: Sized + ITransactionOutcomeEvents_Impl { @@ -2207,7 +2207,7 @@ impl ITransactionVoterNotifyAsync2_Vtbl { Self { base__: ITransactionOutcomeEvents_Vtbl::new::(), VoteRequest: VoteRequest:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IXAConfig_Impl: Sized { @@ -2234,7 +2234,7 @@ impl IXAConfig_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IXAObtainRMInfo_Impl: Sized { @@ -2251,7 +2251,7 @@ impl IXAObtainRMInfo_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), ObtainRMInfo: ObtainRMInfo:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IXATransLookup_Impl: Sized { @@ -2274,7 +2274,7 @@ impl IXATransLookup_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Lookup: Lookup:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IXATransLookup2_Impl: Sized { @@ -2297,6 +2297,6 @@ impl IXATransLookup2_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Lookup: Lookup:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 7c7c7c5d1b..a68ced3390 100644 --- a/crates/libs/windows/src/Windows/Win32/System/DistributedTransactionCoordinator/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/DistributedTransactionCoordinator/mod.rs @@ -34,9 +34,8 @@ where ::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() } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDtcLuConfigure(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDtcLuConfigure, IDtcLuConfigure_Vtbl, 0x4131e760_1aea_11d0_944b_00a0c905416e); +::windows_core::imp::interface_hierarchy!(IDtcLuConfigure, ::windows_core::IUnknown); impl IDtcLuConfigure { pub unsafe fn Add(&self, puclupair: &[u8]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Add)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(puclupair.as_ptr()), puclupair.len().try_into().unwrap()).ok() @@ -45,13 +44,6 @@ impl IDtcLuConfigure { (::windows_core::Interface::vtable(self).Delete)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(puclupair.as_ptr()), puclupair.len().try_into().unwrap()).ok() } } -::windows_core::imp::interface_hierarchy!(IDtcLuConfigure, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDtcLuConfigure { - type Vtable = IDtcLuConfigure_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDtcLuConfigure { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4131e760_1aea_11d0_944b_00a0c905416e); -} #[repr(C)] #[doc(hidden)] pub struct IDtcLuConfigure_Vtbl { @@ -59,89 +51,56 @@ pub struct IDtcLuConfigure_Vtbl { pub Add: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, puclupair: *const u8, cblupair: u32) -> ::windows_core::HRESULT, pub Delete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, puclupair: *const u8, cblupair: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDtcLuRecovery(::windows_core::IUnknown); -impl IDtcLuRecovery {} +::windows_core::imp::com_interface!(IDtcLuRecovery, IDtcLuRecovery_Vtbl, 0xac2b8ad2_d6f0_11d0_b386_00a0c9083365); ::windows_core::imp::interface_hierarchy!(IDtcLuRecovery, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDtcLuRecovery { - type Vtable = IDtcLuRecovery_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDtcLuRecovery { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xac2b8ad2_d6f0_11d0_b386_00a0c9083365); -} +impl IDtcLuRecovery {} #[repr(C)] #[doc(hidden)] pub struct IDtcLuRecovery_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDtcLuRecoveryFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDtcLuRecoveryFactory, IDtcLuRecoveryFactory_Vtbl, 0x4131e762_1aea_11d0_944b_00a0c905416e); +::windows_core::imp::interface_hierarchy!(IDtcLuRecoveryFactory, ::windows_core::IUnknown); impl IDtcLuRecoveryFactory { pub unsafe fn Create(&self, puclupair: &[u8]) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).Create)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(puclupair.as_ptr()), puclupair.len().try_into().unwrap(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDtcLuRecoveryFactory, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDtcLuRecoveryFactory { - type Vtable = IDtcLuRecoveryFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDtcLuRecoveryFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4131e762_1aea_11d0_944b_00a0c905416e); -} #[repr(C)] #[doc(hidden)] pub struct IDtcLuRecoveryFactory_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, puclupair: *const u8, cblupair: u32, pprecovery: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDtcLuRecoveryInitiatedByDtc(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDtcLuRecoveryInitiatedByDtc, IDtcLuRecoveryInitiatedByDtc_Vtbl, 0x4131e764_1aea_11d0_944b_00a0c905416e); +::windows_core::imp::interface_hierarchy!(IDtcLuRecoveryInitiatedByDtc, ::windows_core::IUnknown); impl IDtcLuRecoveryInitiatedByDtc { pub unsafe fn GetWork(&self, pwork: *mut DTCINITIATEDRECOVERYWORK, ppv: *mut *mut ::core::ffi::c_void) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetWork)(::windows_core::Interface::as_raw(self), pwork, ppv).ok() } } -::windows_core::imp::interface_hierarchy!(IDtcLuRecoveryInitiatedByDtc, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDtcLuRecoveryInitiatedByDtc { - type Vtable = IDtcLuRecoveryInitiatedByDtc_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDtcLuRecoveryInitiatedByDtc { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4131e764_1aea_11d0_944b_00a0c905416e); -} #[repr(C)] #[doc(hidden)] pub struct IDtcLuRecoveryInitiatedByDtc_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetWork: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwork: *mut DTCINITIATEDRECOVERYWORK, ppv: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDtcLuRecoveryInitiatedByDtcStatusWork(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDtcLuRecoveryInitiatedByDtcStatusWork, IDtcLuRecoveryInitiatedByDtcStatusWork_Vtbl, 0x4131e766_1aea_11d0_944b_00a0c905416e); +::windows_core::imp::interface_hierarchy!(IDtcLuRecoveryInitiatedByDtcStatusWork, ::windows_core::IUnknown); impl IDtcLuRecoveryInitiatedByDtcStatusWork { pub unsafe fn HandleCheckLuStatus(&self, lrecoveryseqnum: i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).HandleCheckLuStatus)(::windows_core::Interface::as_raw(self), lrecoveryseqnum).ok() } } -::windows_core::imp::interface_hierarchy!(IDtcLuRecoveryInitiatedByDtcStatusWork, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDtcLuRecoveryInitiatedByDtcStatusWork { - type Vtable = IDtcLuRecoveryInitiatedByDtcStatusWork_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDtcLuRecoveryInitiatedByDtcStatusWork { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4131e766_1aea_11d0_944b_00a0c905416e); -} #[repr(C)] #[doc(hidden)] pub struct IDtcLuRecoveryInitiatedByDtcStatusWork_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub HandleCheckLuStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lrecoveryseqnum: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDtcLuRecoveryInitiatedByDtcTransWork(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDtcLuRecoveryInitiatedByDtcTransWork, IDtcLuRecoveryInitiatedByDtcTransWork_Vtbl, 0x4131e765_1aea_11d0_944b_00a0c905416e); +::windows_core::imp::interface_hierarchy!(IDtcLuRecoveryInitiatedByDtcTransWork, ::windows_core::IUnknown); impl IDtcLuRecoveryInitiatedByDtcTransWork { pub unsafe fn GetLogNameSizes(&self, pcbourlogname: *mut u32, pcbremotelogname: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetLogNameSizes)(::windows_core::Interface::as_raw(self), pcbourlogname, pcbremotelogname).ok() @@ -183,13 +142,6 @@ impl IDtcLuRecoveryInitiatedByDtcTransWork { (::windows_core::Interface::vtable(self).ObsoleteRecoverySeqNum)(::windows_core::Interface::as_raw(self), lnewrecoveryseqnum).ok() } } -::windows_core::imp::interface_hierarchy!(IDtcLuRecoveryInitiatedByDtcTransWork, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDtcLuRecoveryInitiatedByDtcTransWork { - type Vtable = IDtcLuRecoveryInitiatedByDtcTransWork_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDtcLuRecoveryInitiatedByDtcTransWork { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4131e765_1aea_11d0_944b_00a0c905416e); -} #[repr(C)] #[doc(hidden)] pub struct IDtcLuRecoveryInitiatedByDtcTransWork_Vtbl { @@ -208,31 +160,22 @@ pub struct IDtcLuRecoveryInitiatedByDtcTransWork_Vtbl { pub GetRecoverySeqNum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plrecoveryseqnum: *mut i32) -> ::windows_core::HRESULT, pub ObsoleteRecoverySeqNum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lnewrecoveryseqnum: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDtcLuRecoveryInitiatedByLu(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDtcLuRecoveryInitiatedByLu, IDtcLuRecoveryInitiatedByLu_Vtbl, 0x4131e768_1aea_11d0_944b_00a0c905416e); +::windows_core::imp::interface_hierarchy!(IDtcLuRecoveryInitiatedByLu, ::windows_core::IUnknown); impl IDtcLuRecoveryInitiatedByLu { pub unsafe fn GetObjectToHandleWorkFromLu(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetObjectToHandleWorkFromLu)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDtcLuRecoveryInitiatedByLu, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDtcLuRecoveryInitiatedByLu { - type Vtable = IDtcLuRecoveryInitiatedByLu_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDtcLuRecoveryInitiatedByLu { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4131e768_1aea_11d0_944b_00a0c905416e); -} #[repr(C)] #[doc(hidden)] pub struct IDtcLuRecoveryInitiatedByLu_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetObjectToHandleWorkFromLu: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppwork: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDtcLuRecoveryInitiatedByLuWork(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDtcLuRecoveryInitiatedByLuWork, IDtcLuRecoveryInitiatedByLuWork_Vtbl, 0xac2b8ad1_d6f0_11d0_b386_00a0c9083365); +::windows_core::imp::interface_hierarchy!(IDtcLuRecoveryInitiatedByLuWork, ::windows_core::IUnknown); impl IDtcLuRecoveryInitiatedByLuWork { pub unsafe fn HandleTheirXln(&self, lrecoveryseqnum: i32, xln: DTCLUXLN, premotelogname: *mut u8, cbremotelogname: u32, pourlogname: *mut u8, cbourlogname: u32, dwprotocol: u32, presponse: *mut DTCLUXLNRESPONSE) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).HandleTheirXln)(::windows_core::Interface::as_raw(self), lrecoveryseqnum, xln, premotelogname, cbremotelogname, pourlogname, cbourlogname, dwprotocol, presponse).ok() @@ -259,13 +202,6 @@ impl IDtcLuRecoveryInitiatedByLuWork { (::windows_core::Interface::vtable(self).ConversationLost)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IDtcLuRecoveryInitiatedByLuWork, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDtcLuRecoveryInitiatedByLuWork { - type Vtable = IDtcLuRecoveryInitiatedByLuWork_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDtcLuRecoveryInitiatedByLuWork { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xac2b8ad1_d6f0_11d0_b386_00a0c9083365); -} #[repr(C)] #[doc(hidden)] pub struct IDtcLuRecoveryInitiatedByLuWork_Vtbl { @@ -279,9 +215,8 @@ pub struct IDtcLuRecoveryInitiatedByLuWork_Vtbl { pub HandleErrorFromOurCompareStates: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, error: DTCLUCOMPARESTATESERROR) -> ::windows_core::HRESULT, pub ConversationLost: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDtcLuRmEnlistment(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDtcLuRmEnlistment, IDtcLuRmEnlistment_Vtbl, 0x4131e769_1aea_11d0_944b_00a0c905416e); +::windows_core::imp::interface_hierarchy!(IDtcLuRmEnlistment, ::windows_core::IUnknown); impl IDtcLuRmEnlistment { pub unsafe fn Unplug(&self, fconversationlost: P0) -> ::windows_core::Result<()> where @@ -305,13 +240,6 @@ impl IDtcLuRmEnlistment { (::windows_core::Interface::vtable(self).RequestCommit)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IDtcLuRmEnlistment, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDtcLuRmEnlistment { - type Vtable = IDtcLuRmEnlistment_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDtcLuRmEnlistment { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4131e769_1aea_11d0_944b_00a0c905416e); -} #[repr(C)] #[doc(hidden)] pub struct IDtcLuRmEnlistment_Vtbl { @@ -323,9 +251,8 @@ pub struct IDtcLuRmEnlistment_Vtbl { pub Forget: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RequestCommit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDtcLuRmEnlistmentFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDtcLuRmEnlistmentFactory, IDtcLuRmEnlistmentFactory_Vtbl, 0x4131e771_1aea_11d0_944b_00a0c905416e); +::windows_core::imp::interface_hierarchy!(IDtcLuRmEnlistmentFactory, ::windows_core::IUnknown); impl IDtcLuRmEnlistmentFactory { pub unsafe fn Create(&self, puclupair: *mut u8, cblupair: u32, pitransaction: P0, ptransid: *mut u8, cbtransid: u32, prmenlistmentsink: P1, pprmenlistment: *mut ::core::option::Option) -> ::windows_core::Result<()> where @@ -335,22 +262,14 @@ impl IDtcLuRmEnlistmentFactory { (::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::imp::interface_hierarchy!(IDtcLuRmEnlistmentFactory, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDtcLuRmEnlistmentFactory { - type Vtable = IDtcLuRmEnlistmentFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDtcLuRmEnlistmentFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4131e771_1aea_11d0_944b_00a0c905416e); -} #[repr(C)] #[doc(hidden)] pub struct IDtcLuRmEnlistmentFactory_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, puclupair: *mut u8, cblupair: u32, pitransaction: *mut ::core::ffi::c_void, ptransid: *mut u8, cbtransid: u32, prmenlistmentsink: *mut ::core::ffi::c_void, pprmenlistment: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDtcLuRmEnlistmentSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDtcLuRmEnlistmentSink, IDtcLuRmEnlistmentSink_Vtbl, 0x4131e770_1aea_11d0_944b_00a0c905416e); +::windows_core::imp::interface_hierarchy!(IDtcLuRmEnlistmentSink, ::windows_core::IUnknown); impl IDtcLuRmEnlistmentSink { pub unsafe fn AckUnplug(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).AckUnplug)(::windows_core::Interface::as_raw(self)).ok() @@ -380,13 +299,6 @@ impl IDtcLuRmEnlistmentSink { (::windows_core::Interface::vtable(self).RequestCommit)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IDtcLuRmEnlistmentSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDtcLuRmEnlistmentSink { - type Vtable = IDtcLuRmEnlistmentSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDtcLuRmEnlistmentSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4131e770_1aea_11d0_944b_00a0c905416e); -} #[repr(C)] #[doc(hidden)] pub struct IDtcLuRmEnlistmentSink_Vtbl { @@ -401,9 +313,8 @@ pub struct IDtcLuRmEnlistmentSink_Vtbl { pub Prepare: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RequestCommit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDtcLuSubordinateDtc(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDtcLuSubordinateDtc, IDtcLuSubordinateDtc_Vtbl, 0x4131e773_1aea_11d0_944b_00a0c905416e); +::windows_core::imp::interface_hierarchy!(IDtcLuSubordinateDtc, ::windows_core::IUnknown); impl IDtcLuSubordinateDtc { pub unsafe fn Unplug(&self, fconversationlost: P0) -> ::windows_core::Result<()> where @@ -430,13 +341,6 @@ impl IDtcLuSubordinateDtc { (::windows_core::Interface::vtable(self).RequestCommit)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IDtcLuSubordinateDtc, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDtcLuSubordinateDtc { - type Vtable = IDtcLuSubordinateDtc_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDtcLuSubordinateDtc { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4131e773_1aea_11d0_944b_00a0c905416e); -} #[repr(C)] #[doc(hidden)] pub struct IDtcLuSubordinateDtc_Vtbl { @@ -449,9 +353,8 @@ pub struct IDtcLuSubordinateDtc_Vtbl { pub Prepare: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RequestCommit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDtcLuSubordinateDtcFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDtcLuSubordinateDtcFactory, IDtcLuSubordinateDtcFactory_Vtbl, 0x4131e775_1aea_11d0_944b_00a0c905416e); +::windows_core::imp::interface_hierarchy!(IDtcLuSubordinateDtcFactory, ::windows_core::IUnknown); impl IDtcLuSubordinateDtcFactory { pub unsafe fn Create(&self, puclupair: *mut u8, cblupair: u32, punktransactionouter: P0, isolevel: i32, isoflags: u32, poptions: P1, pptransaction: *mut ::core::option::Option, ptransid: *mut u8, cbtransid: u32, psubordinatedtcsink: P2, ppsubordinatedtc: *mut ::core::option::Option) -> ::windows_core::Result<()> where @@ -462,22 +365,14 @@ impl IDtcLuSubordinateDtcFactory { (::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::imp::interface_hierarchy!(IDtcLuSubordinateDtcFactory, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDtcLuSubordinateDtcFactory { - type Vtable = IDtcLuSubordinateDtcFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDtcLuSubordinateDtcFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4131e775_1aea_11d0_944b_00a0c905416e); -} #[repr(C)] #[doc(hidden)] pub struct IDtcLuSubordinateDtcFactory_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, puclupair: *mut u8, cblupair: u32, punktransactionouter: *mut ::core::ffi::c_void, isolevel: i32, isoflags: u32, poptions: *mut ::core::ffi::c_void, pptransaction: *mut *mut ::core::ffi::c_void, ptransid: *mut u8, cbtransid: u32, psubordinatedtcsink: *mut ::core::ffi::c_void, ppsubordinatedtc: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDtcLuSubordinateDtcSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDtcLuSubordinateDtcSink, IDtcLuSubordinateDtcSink_Vtbl, 0x4131e774_1aea_11d0_944b_00a0c905416e); +::windows_core::imp::interface_hierarchy!(IDtcLuSubordinateDtcSink, ::windows_core::IUnknown); impl IDtcLuSubordinateDtcSink { pub unsafe fn AckUnplug(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).AckUnplug)(::windows_core::Interface::as_raw(self)).ok() @@ -504,13 +399,6 @@ impl IDtcLuSubordinateDtcSink { (::windows_core::Interface::vtable(self).RequestCommit)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IDtcLuSubordinateDtcSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDtcLuSubordinateDtcSink { - type Vtable = IDtcLuSubordinateDtcSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDtcLuSubordinateDtcSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4131e774_1aea_11d0_944b_00a0c905416e); -} #[repr(C)] #[doc(hidden)] pub struct IDtcLuSubordinateDtcSink_Vtbl { @@ -524,9 +412,8 @@ pub struct IDtcLuSubordinateDtcSink_Vtbl { pub Forget: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RequestCommit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDtcNetworkAccessConfig(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDtcNetworkAccessConfig, IDtcNetworkAccessConfig_Vtbl, 0x9797c15d_a428_4291_87b6_0995031a678d); +::windows_core::imp::interface_hierarchy!(IDtcNetworkAccessConfig, ::windows_core::IUnknown); impl IDtcNetworkAccessConfig { pub unsafe fn GetAnyNetworkAccess(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -592,13 +479,6 @@ impl IDtcNetworkAccessConfig { (::windows_core::Interface::vtable(self).RestartDtcService)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IDtcNetworkAccessConfig, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDtcNetworkAccessConfig { - type Vtable = IDtcNetworkAccessConfig_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDtcNetworkAccessConfig { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9797c15d_a428_4291_87b6_0995031a678d); -} #[repr(C)] #[doc(hidden)] pub struct IDtcNetworkAccessConfig_Vtbl { @@ -617,9 +497,8 @@ pub struct IDtcNetworkAccessConfig_Vtbl { pub SetXAAccess: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bxaaccess: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub RestartDtcService: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDtcNetworkAccessConfig2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDtcNetworkAccessConfig2, IDtcNetworkAccessConfig2_Vtbl, 0xa7aa013b_eb7d_4f42_b41c_b2dec09ae034); +::windows_core::imp::interface_hierarchy!(IDtcNetworkAccessConfig2, ::windows_core::IUnknown, IDtcNetworkAccessConfig); impl IDtcNetworkAccessConfig2 { pub unsafe fn GetAnyNetworkAccess(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -712,13 +591,6 @@ impl IDtcNetworkAccessConfig2 { (::windows_core::Interface::vtable(self).SetAuthenticationLevel)(::windows_core::Interface::as_raw(self), authlevel).ok() } } -::windows_core::imp::interface_hierarchy!(IDtcNetworkAccessConfig2, ::windows_core::IUnknown, IDtcNetworkAccessConfig); -unsafe impl ::windows_core::Interface for IDtcNetworkAccessConfig2 { - type Vtable = IDtcNetworkAccessConfig2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDtcNetworkAccessConfig2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa7aa013b_eb7d_4f42_b41c_b2dec09ae034); -} #[repr(C)] #[doc(hidden)] pub struct IDtcNetworkAccessConfig2_Vtbl { @@ -730,9 +602,8 @@ pub struct IDtcNetworkAccessConfig2_Vtbl { pub GetAuthenticationLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pauthlevel: *mut AUTHENTICATION_LEVEL) -> ::windows_core::HRESULT, pub SetAuthenticationLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, authlevel: AUTHENTICATION_LEVEL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDtcNetworkAccessConfig3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDtcNetworkAccessConfig3, IDtcNetworkAccessConfig3_Vtbl, 0x76e4b4f3_2ca5_466b_89d5_fd218ee75b49); +::windows_core::imp::interface_hierarchy!(IDtcNetworkAccessConfig3, ::windows_core::IUnknown, IDtcNetworkAccessConfig, IDtcNetworkAccessConfig2); impl IDtcNetworkAccessConfig3 { pub unsafe fn GetAnyNetworkAccess(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -835,13 +706,6 @@ impl IDtcNetworkAccessConfig3 { (::windows_core::Interface::vtable(self).SetLUAccess)(::windows_core::Interface::as_raw(self), bluaccess.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IDtcNetworkAccessConfig3, ::windows_core::IUnknown, IDtcNetworkAccessConfig, IDtcNetworkAccessConfig2); -unsafe impl ::windows_core::Interface for IDtcNetworkAccessConfig3 { - type Vtable = IDtcNetworkAccessConfig3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDtcNetworkAccessConfig3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x76e4b4f3_2ca5_466b_89d5_fd218ee75b49); -} #[repr(C)] #[doc(hidden)] pub struct IDtcNetworkAccessConfig3_Vtbl { @@ -849,9 +713,8 @@ pub struct IDtcNetworkAccessConfig3_Vtbl { pub GetLUAccess: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbluaccess: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub SetLUAccess: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bluaccess: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDtcToXaHelper(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDtcToXaHelper, IDtcToXaHelper_Vtbl, 0xa9861611_304a_11d1_9813_00a0c905416e); +::windows_core::imp::interface_hierarchy!(IDtcToXaHelper, ::windows_core::IUnknown); impl IDtcToXaHelper { pub unsafe fn Close(&self, i_fdorecovery: P0) -> ::windows_core::Result<()> where @@ -866,13 +729,6 @@ impl IDtcToXaHelper { (::windows_core::Interface::vtable(self).TranslateTridToXid)(::windows_core::Interface::as_raw(self), pitransaction.into_param().abi(), pguidbqual, pxid).ok() } } -::windows_core::imp::interface_hierarchy!(IDtcToXaHelper, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDtcToXaHelper { - type Vtable = IDtcToXaHelper_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDtcToXaHelper { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa9861611_304a_11d1_9813_00a0c905416e); -} #[repr(C)] #[doc(hidden)] pub struct IDtcToXaHelper_Vtbl { @@ -880,9 +736,8 @@ pub struct IDtcToXaHelper_Vtbl { pub Close: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, i_fdorecovery: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub TranslateTridToXid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pitransaction: *mut ::core::ffi::c_void, pguidbqual: *const ::windows_core::GUID, pxid: *mut XID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDtcToXaHelperFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDtcToXaHelperFactory, IDtcToXaHelperFactory_Vtbl, 0xa9861610_304a_11d1_9813_00a0c905416e); +::windows_core::imp::interface_hierarchy!(IDtcToXaHelperFactory, ::windows_core::IUnknown); impl IDtcToXaHelperFactory { pub unsafe fn Create(&self, pszdsn: P0, pszclientdllname: P1, pguidrm: *mut ::windows_core::GUID, ppxahelper: *mut ::core::option::Option) -> ::windows_core::Result<()> where @@ -892,22 +747,14 @@ impl IDtcToXaHelperFactory { (::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::imp::interface_hierarchy!(IDtcToXaHelperFactory, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDtcToXaHelperFactory { - type Vtable = IDtcToXaHelperFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDtcToXaHelperFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa9861610_304a_11d1_9813_00a0c905416e); -} #[repr(C)] #[doc(hidden)] pub struct IDtcToXaHelperFactory_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszdsn: ::windows_core::PCSTR, pszclientdllname: ::windows_core::PCSTR, pguidrm: *mut ::windows_core::GUID, ppxahelper: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDtcToXaHelperSinglePipe(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDtcToXaHelperSinglePipe, IDtcToXaHelperSinglePipe_Vtbl, 0x47ed4971_53b3_11d1_bbb9_00c04fd658f6); +::windows_core::imp::interface_hierarchy!(IDtcToXaHelperSinglePipe, ::windows_core::IUnknown); impl IDtcToXaHelperSinglePipe { pub unsafe fn XARMCreate(&self, pszdsn: P0, pszclientdll: P1, pdwrmcookie: *mut u32) -> ::windows_core::Result<()> where @@ -934,13 +781,6 @@ impl IDtcToXaHelperSinglePipe { (::windows_core::Interface::vtable(self).ReleaseRMCookie)(::windows_core::Interface::as_raw(self), i_dwrmcookie, i_fnormal.into_param().abi()) } } -::windows_core::imp::interface_hierarchy!(IDtcToXaHelperSinglePipe, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDtcToXaHelperSinglePipe { - type Vtable = IDtcToXaHelperSinglePipe_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDtcToXaHelperSinglePipe { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x47ed4971_53b3_11d1_bbb9_00c04fd658f6); -} #[repr(C)] #[doc(hidden)] pub struct IDtcToXaHelperSinglePipe_Vtbl { @@ -950,9 +790,8 @@ pub struct IDtcToXaHelperSinglePipe_Vtbl { pub EnlistWithRM: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwrmcookie: u32, i_pitransaction: *mut ::core::ffi::c_void, i_pitransres: *mut ::core::ffi::c_void, o_ppitransenslitment: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ReleaseRMCookie: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, i_dwrmcookie: u32, i_fnormal: super::super::Foundation::BOOL), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDtcToXaMapper(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDtcToXaMapper, IDtcToXaMapper_Vtbl, 0x64ffabe0_7ce9_11d0_8ce6_00c04fdc877e); +::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 @@ -971,13 +810,6 @@ impl IDtcToXaMapper { (::windows_core::Interface::vtable(self).ReleaseResourceManager)(::windows_core::Interface::as_raw(self), dwrmcookie).ok() } } -::windows_core::imp::interface_hierarchy!(IDtcToXaMapper, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDtcToXaMapper { - type Vtable = IDtcToXaMapper_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDtcToXaMapper { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x64ffabe0_7ce9_11d0_8ce6_00c04fdc877e); -} #[repr(C)] #[doc(hidden)] pub struct IDtcToXaMapper_Vtbl { @@ -987,52 +819,35 @@ pub struct IDtcToXaMapper_Vtbl { pub EnlistResourceManager: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwrmcookie: u32, pdwitransaction: *const u32) -> ::windows_core::HRESULT, pub ReleaseResourceManager: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwrmcookie: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGetDispenser(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IGetDispenser, IGetDispenser_Vtbl, 0xc23cc370_87ef_11ce_8081_0080c758527e); +::windows_core::imp::interface_hierarchy!(IGetDispenser, ::windows_core::IUnknown); impl IGetDispenser { pub unsafe fn GetDispenser(&self, iid: *const ::windows_core::GUID, ppvobject: *mut *mut ::core::ffi::c_void) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetDispenser)(::windows_core::Interface::as_raw(self), iid, ppvobject).ok() } } -::windows_core::imp::interface_hierarchy!(IGetDispenser, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGetDispenser { - type Vtable = IGetDispenser_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGetDispenser { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc23cc370_87ef_11ce_8081_0080c758527e); -} #[repr(C)] #[doc(hidden)] pub struct IGetDispenser_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetDispenser: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, iid: *const ::windows_core::GUID, ppvobject: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKernelTransaction(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IKernelTransaction, IKernelTransaction_Vtbl, 0x79427a2b_f895_40e0_be79_b57dc82ed231); +::windows_core::imp::interface_hierarchy!(IKernelTransaction, ::windows_core::IUnknown); impl IKernelTransaction { pub unsafe fn GetHandle(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetHandle)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IKernelTransaction, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKernelTransaction { - type Vtable = IKernelTransaction_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKernelTransaction { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x79427a2b_f895_40e0_be79_b57dc82ed231); -} #[repr(C)] #[doc(hidden)] pub struct IKernelTransaction_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetHandle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phandle: *mut super::super::Foundation::HANDLE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILastResourceManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ILastResourceManager, ILastResourceManager_Vtbl, 0x4d964ad4_5b33_11d3_8a91_00c04f79eb6d); +::windows_core::imp::interface_hierarchy!(ILastResourceManager, ::windows_core::IUnknown); impl ILastResourceManager { pub unsafe fn TransactionCommitted(&self, pprepinfo: &[u8]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).TransactionCommitted)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pprepinfo.as_ptr()), pprepinfo.len().try_into().unwrap()).ok() @@ -1041,13 +856,6 @@ impl ILastResourceManager { (::windows_core::Interface::vtable(self).RecoveryDone)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ILastResourceManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILastResourceManager { - type Vtable = ILastResourceManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILastResourceManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4d964ad4_5b33_11d3_8a91_00c04f79eb6d); -} #[repr(C)] #[doc(hidden)] pub struct ILastResourceManager_Vtbl { @@ -1055,9 +863,8 @@ pub struct ILastResourceManager_Vtbl { pub TransactionCommitted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pprepinfo: *const u8, cbprepinfo: u32) -> ::windows_core::HRESULT, pub RecoveryDone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrepareInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPrepareInfo, IPrepareInfo_Vtbl, 0x80c7bfd0_87ee_11ce_8081_0080c758527e); +::windows_core::imp::interface_hierarchy!(IPrepareInfo, ::windows_core::IUnknown); impl IPrepareInfo { pub unsafe fn GetPrepareInfoSize(&self, pcbprepinfo: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetPrepareInfoSize)(::windows_core::Interface::as_raw(self), pcbprepinfo).ok() @@ -1066,13 +873,6 @@ impl IPrepareInfo { (::windows_core::Interface::vtable(self).GetPrepareInfo)(::windows_core::Interface::as_raw(self), pprepinfo).ok() } } -::windows_core::imp::interface_hierarchy!(IPrepareInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrepareInfo { - type Vtable = IPrepareInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrepareInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x80c7bfd0_87ee_11ce_8081_0080c758527e); -} #[repr(C)] #[doc(hidden)] pub struct IPrepareInfo_Vtbl { @@ -1080,9 +880,8 @@ pub struct IPrepareInfo_Vtbl { pub GetPrepareInfoSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcbprepinfo: *mut u32) -> ::windows_core::HRESULT, pub GetPrepareInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pprepinfo: *mut u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrepareInfo2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPrepareInfo2, IPrepareInfo2_Vtbl, 0x5fab2547_9779_11d1_b886_00c04fb9618a); +::windows_core::imp::interface_hierarchy!(IPrepareInfo2, ::windows_core::IUnknown); impl IPrepareInfo2 { pub unsafe fn GetPrepareInfoSize(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1092,13 +891,6 @@ impl IPrepareInfo2 { (::windows_core::Interface::vtable(self).GetPrepareInfo)(::windows_core::Interface::as_raw(self), pprepinfo.len().try_into().unwrap(), ::core::mem::transmute(pprepinfo.as_ptr())).ok() } } -::windows_core::imp::interface_hierarchy!(IPrepareInfo2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrepareInfo2 { - type Vtable = IPrepareInfo2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrepareInfo2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5fab2547_9779_11d1_b886_00c04fb9618a); -} #[repr(C)] #[doc(hidden)] pub struct IPrepareInfo2_Vtbl { @@ -1106,9 +898,8 @@ pub struct IPrepareInfo2_Vtbl { pub GetPrepareInfoSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcbprepinfo: *mut u32) -> ::windows_core::HRESULT, pub GetPrepareInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cbprepareinfo: u32, pprepinfo: *mut u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRMHelper(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRMHelper, IRMHelper_Vtbl, 0xe793f6d1_f53d_11cf_a60d_00a0c905416e); +::windows_core::imp::interface_hierarchy!(IRMHelper, ::windows_core::IUnknown); impl IRMHelper { pub unsafe fn RMCount(&self, dwctotalnumberofrms: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).RMCount)(::windows_core::Interface::as_raw(self), dwctotalnumberofrms).ok() @@ -1122,13 +913,6 @@ impl IRMHelper { (::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::imp::interface_hierarchy!(IRMHelper, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRMHelper { - type Vtable = IRMHelper_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRMHelper { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe793f6d1_f53d_11cf_a60d_00a0c905416e); -} #[repr(C)] #[doc(hidden)] pub struct IRMHelper_Vtbl { @@ -1136,9 +920,8 @@ pub struct IRMHelper_Vtbl { pub RMCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwctotalnumberofrms: u32) -> ::windows_core::HRESULT, pub RMInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pxa_switch: *mut xa_switch_t, fcdeclcallingconv: super::super::Foundation::BOOL, pszopenstring: ::windows_core::PCSTR, pszclosestring: ::windows_core::PCSTR, guidrmrecovery: ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IResourceManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IResourceManager, IResourceManager_Vtbl, 0x13741d21_87eb_11ce_8081_0080c758527e); +::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 ::core::option::Option) -> ::windows_core::Result<()> where @@ -1158,13 +941,6 @@ impl IResourceManager { (::windows_core::Interface::vtable(self).GetDistributedTransactionManager)(::windows_core::Interface::as_raw(self), iid, ppvobject).ok() } } -::windows_core::imp::interface_hierarchy!(IResourceManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IResourceManager { - type Vtable = IResourceManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IResourceManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x13741d21_87eb_11ce_8081_0080c758527e); -} #[repr(C)] #[doc(hidden)] pub struct IResourceManager_Vtbl { @@ -1174,9 +950,8 @@ pub struct IResourceManager_Vtbl { pub ReenlistmentComplete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDistributedTransactionManager: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, iid: *const ::windows_core::GUID, ppvobject: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IResourceManager2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IResourceManager2, IResourceManager2_Vtbl, 0xd136c69a_f749_11d1_8f47_00c04f8ee57d); +::windows_core::imp::interface_hierarchy!(IResourceManager2, ::windows_core::IUnknown, IResourceManager); impl IResourceManager2 { pub unsafe fn Enlist(&self, ptransaction: P0, pres: P1, puow: *mut BOID, pisolevel: *mut i32, ppenlist: *mut ::core::option::Option) -> ::windows_core::Result<()> where @@ -1207,13 +982,6 @@ impl IResourceManager2 { (::windows_core::Interface::vtable(self).Reenlist2)(::windows_core::Interface::as_raw(self), pxid, dwtimeout, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IResourceManager2, ::windows_core::IUnknown, IResourceManager); -unsafe impl ::windows_core::Interface for IResourceManager2 { - type Vtable = IResourceManager2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IResourceManager2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd136c69a_f749_11d1_8f47_00c04f8ee57d); -} #[repr(C)] #[doc(hidden)] pub struct IResourceManager2_Vtbl { @@ -1221,9 +989,8 @@ pub struct IResourceManager2_Vtbl { pub Enlist2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptransaction: *mut ::core::ffi::c_void, presasync: *mut ::core::ffi::c_void, puow: *mut BOID, pisolevel: *mut i32, pxid: *mut XID, ppenlist: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Reenlist2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pxid: *const XID, dwtimeout: u32, pxactstat: *mut XACTSTAT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IResourceManagerFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IResourceManagerFactory, IResourceManagerFactory_Vtbl, 0x13741d20_87eb_11ce_8081_0080c758527e); +::windows_core::imp::interface_hierarchy!(IResourceManagerFactory, ::windows_core::IUnknown); impl IResourceManagerFactory { pub unsafe fn Create(&self, pguidrm: *const ::windows_core::GUID, pszrmname: P0, piresmgrsink: P1) -> ::windows_core::Result where @@ -1234,22 +1001,14 @@ impl IResourceManagerFactory { (::windows_core::Interface::vtable(self).Create)(::windows_core::Interface::as_raw(self), pguidrm, pszrmname.into_param().abi(), piresmgrsink.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IResourceManagerFactory, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IResourceManagerFactory { - type Vtable = IResourceManagerFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IResourceManagerFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x13741d20_87eb_11ce_8081_0080c758527e); -} #[repr(C)] #[doc(hidden)] pub struct IResourceManagerFactory_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pguidrm: *const ::windows_core::GUID, pszrmname: ::windows_core::PCSTR, piresmgrsink: *mut ::core::ffi::c_void, ppresmgr: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IResourceManagerFactory2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IResourceManagerFactory2, IResourceManagerFactory2_Vtbl, 0x6b369c21_fbd2_11d1_8f47_00c04f8ee57d); +::windows_core::imp::interface_hierarchy!(IResourceManagerFactory2, ::windows_core::IUnknown, IResourceManagerFactory); impl IResourceManagerFactory2 { pub unsafe fn Create(&self, pguidrm: *const ::windows_core::GUID, pszrmname: P0, piresmgrsink: P1) -> ::windows_core::Result where @@ -1267,22 +1026,14 @@ impl IResourceManagerFactory2 { (::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::imp::interface_hierarchy!(IResourceManagerFactory2, ::windows_core::IUnknown, IResourceManagerFactory); -unsafe impl ::windows_core::Interface for IResourceManagerFactory2 { - type Vtable = IResourceManagerFactory2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IResourceManagerFactory2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6b369c21_fbd2_11d1_8f47_00c04f8ee57d); -} #[repr(C)] #[doc(hidden)] pub struct IResourceManagerFactory2_Vtbl { pub base__: IResourceManagerFactory_Vtbl, pub CreateEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pguidrm: *const ::windows_core::GUID, pszrmname: ::windows_core::PCSTR, piresmgrsink: *mut ::core::ffi::c_void, riidrequested: *const ::windows_core::GUID, ppvresmgr: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IResourceManagerRejoinable(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IResourceManagerRejoinable, IResourceManagerRejoinable_Vtbl, 0x6f6de620_b5df_4f3e_9cfa_c8aebd05172b); +::windows_core::imp::interface_hierarchy!(IResourceManagerRejoinable, ::windows_core::IUnknown, IResourceManager, IResourceManager2); impl IResourceManagerRejoinable { pub unsafe fn Enlist(&self, ptransaction: P0, pres: P1, puow: *mut BOID, pisolevel: *mut i32, ppenlist: *mut ::core::option::Option) -> ::windows_core::Result<()> where @@ -1317,43 +1068,27 @@ impl IResourceManagerRejoinable { (::windows_core::Interface::vtable(self).Rejoin)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pprepinfo.as_ptr()), pprepinfo.len().try_into().unwrap(), ltimeout, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IResourceManagerRejoinable, ::windows_core::IUnknown, IResourceManager, IResourceManager2); -unsafe impl ::windows_core::Interface for IResourceManagerRejoinable { - type Vtable = IResourceManagerRejoinable_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IResourceManagerRejoinable { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6f6de620_b5df_4f3e_9cfa_c8aebd05172b); -} #[repr(C)] #[doc(hidden)] pub struct IResourceManagerRejoinable_Vtbl { pub base__: IResourceManager2_Vtbl, pub Rejoin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pprepinfo: *const u8, cbprepinfo: u32, ltimeout: u32, pxactstat: *mut XACTSTAT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IResourceManagerSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IResourceManagerSink, IResourceManagerSink_Vtbl, 0x0d563181_defb_11ce_aed1_00aa0051e2c4); +::windows_core::imp::interface_hierarchy!(IResourceManagerSink, ::windows_core::IUnknown); impl IResourceManagerSink { pub unsafe fn TMDown(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).TMDown)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IResourceManagerSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IResourceManagerSink { - type Vtable = IResourceManagerSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IResourceManagerSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0d563181_defb_11ce_aed1_00aa0051e2c4); -} #[repr(C)] #[doc(hidden)] pub struct IResourceManagerSink_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub TMDown: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITipHelper(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITipHelper, ITipHelper_Vtbl, 0x17cf72d1_bac5_11d1_b1bf_00c04fc2f3ef); +::windows_core::imp::interface_hierarchy!(ITipHelper, ::windows_core::IUnknown); impl ITipHelper { pub unsafe fn Pull(&self, i_psztxurl: *const u8) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1371,13 +1106,6 @@ impl ITipHelper { (::windows_core::Interface::vtable(self).GetLocalTmUrl)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITipHelper, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITipHelper { - type Vtable = ITipHelper_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITipHelper { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x17cf72d1_bac5_11d1_b1bf_00c04fc2f3ef); -} #[repr(C)] #[doc(hidden)] pub struct ITipHelper_Vtbl { @@ -1386,30 +1114,21 @@ pub struct ITipHelper_Vtbl { pub PullAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, i_psztxurl: *const u8, i_ptippullsink: *mut ::core::ffi::c_void, o_ppitransaction: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetLocalTmUrl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, o_ppszlocaltmurl: *mut *mut u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITipPullSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITipPullSink, ITipPullSink_Vtbl, 0x17cf72d2_bac5_11d1_b1bf_00c04fc2f3ef); +::windows_core::imp::interface_hierarchy!(ITipPullSink, ::windows_core::IUnknown); impl ITipPullSink { pub unsafe fn PullComplete(&self, i_hrpull: ::windows_core::HRESULT) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).PullComplete)(::windows_core::Interface::as_raw(self), i_hrpull).ok() } } -::windows_core::imp::interface_hierarchy!(ITipPullSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITipPullSink { - type Vtable = ITipPullSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITipPullSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x17cf72d2_bac5_11d1_b1bf_00c04fc2f3ef); -} #[repr(C)] #[doc(hidden)] pub struct ITipPullSink_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub PullComplete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, i_hrpull: ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITipTransaction(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITipTransaction, ITipTransaction_Vtbl, 0x17cf72d0_bac5_11d1_b1bf_00c04fc2f3ef); +::windows_core::imp::interface_hierarchy!(ITipTransaction, ::windows_core::IUnknown); impl ITipTransaction { pub unsafe fn Push(&self, i_pszremotetmurl: *const u8) -> ::windows_core::Result<::windows_core::PSTR> { let mut result__ = ::std::mem::zeroed(); @@ -1420,13 +1139,6 @@ impl ITipTransaction { (::windows_core::Interface::vtable(self).GetTransactionUrl)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITipTransaction, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITipTransaction { - type Vtable = ITipTransaction_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITipTransaction { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x17cf72d0_bac5_11d1_b1bf_00c04fc2f3ef); -} #[repr(C)] #[doc(hidden)] pub struct ITipTransaction_Vtbl { @@ -1434,9 +1146,8 @@ pub struct ITipTransaction_Vtbl { pub Push: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, i_pszremotetmurl: *const u8, o_ppszremotetxurl: *mut ::windows_core::PSTR) -> ::windows_core::HRESULT, pub GetTransactionUrl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, o_ppszlocaltxurl: *mut ::windows_core::PSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITmNodeName(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITmNodeName, ITmNodeName_Vtbl, 0x30274f88_6ee4_474e_9b95_7807bc9ef8cf); +::windows_core::imp::interface_hierarchy!(ITmNodeName, ::windows_core::IUnknown); impl ITmNodeName { pub unsafe fn GetNodeNameSize(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1446,13 +1157,6 @@ impl ITmNodeName { (::windows_core::Interface::vtable(self).GetNodeName)(::windows_core::Interface::as_raw(self), cbnodenamebuffersize, ::core::mem::transmute(pnodenamebuffer)).ok() } } -::windows_core::imp::interface_hierarchy!(ITmNodeName, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITmNodeName { - type Vtable = ITmNodeName_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITmNodeName { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x30274f88_6ee4_474e_9b95_7807bc9ef8cf); -} #[repr(C)] #[doc(hidden)] pub struct ITmNodeName_Vtbl { @@ -1460,9 +1164,8 @@ pub struct ITmNodeName_Vtbl { pub GetNodeNameSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcbnodenamesize: *mut u32) -> ::windows_core::HRESULT, pub GetNodeName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cbnodenamebuffersize: u32, pnodenamebuffer: ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITransaction(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITransaction, ITransaction_Vtbl, 0x0fb15084_af41_11ce_bd2b_204c4f4f5020); +::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 @@ -1481,13 +1184,6 @@ impl ITransaction { (::windows_core::Interface::vtable(self).GetTransactionInfo)(::windows_core::Interface::as_raw(self), pinfo).ok() } } -::windows_core::imp::interface_hierarchy!(ITransaction, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITransaction { - type Vtable = ITransaction_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITransaction { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0fb15084_af41_11ce_bd2b_204c4f4f5020); -} #[repr(C)] #[doc(hidden)] pub struct ITransaction_Vtbl { @@ -1496,9 +1192,8 @@ pub struct ITransaction_Vtbl { pub Abort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pboidreason: *const BOID, fretaining: super::super::Foundation::BOOL, fasync: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub GetTransactionInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinfo: *mut XACTTRANSINFO) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITransaction2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITransaction2, ITransaction2_Vtbl, 0x34021548_0065_11d3_bac1_00c04f797be2); +::windows_core::imp::interface_hierarchy!(ITransaction2, ::windows_core::IUnknown, ITransaction, ITransactionCloner); impl ITransaction2 { pub unsafe fn Commit(&self, fretaining: P0, grftc: u32, grfrm: u32) -> ::windows_core::Result<()> where @@ -1524,22 +1219,14 @@ impl ITransaction2 { (::windows_core::Interface::vtable(self).GetTransactionInfo2)(::windows_core::Interface::as_raw(self), pinfo).ok() } } -::windows_core::imp::interface_hierarchy!(ITransaction2, ::windows_core::IUnknown, ITransaction, ITransactionCloner); -unsafe impl ::windows_core::Interface for ITransaction2 { - type Vtable = ITransaction2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITransaction2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x34021548_0065_11d3_bac1_00c04f797be2); -} #[repr(C)] #[doc(hidden)] pub struct ITransaction2_Vtbl { pub base__: ITransactionCloner_Vtbl, pub GetTransactionInfo2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinfo: *mut XACTTRANSINFO) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITransactionCloner(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITransactionCloner, ITransactionCloner_Vtbl, 0x02656950_2152_11d0_944c_00a0c905416e); +::windows_core::imp::interface_hierarchy!(ITransactionCloner, ::windows_core::IUnknown, ITransaction); impl ITransactionCloner { pub unsafe fn Commit(&self, fretaining: P0, grftc: u32, grfrm: u32) -> ::windows_core::Result<()> where @@ -1562,22 +1249,14 @@ impl ITransactionCloner { (::windows_core::Interface::vtable(self).CloneWithCommitDisabled)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITransactionCloner, ::windows_core::IUnknown, ITransaction); -unsafe impl ::windows_core::Interface for ITransactionCloner { - type Vtable = ITransactionCloner_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITransactionCloner { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x02656950_2152_11d0_944c_00a0c905416e); -} #[repr(C)] #[doc(hidden)] pub struct ITransactionCloner_Vtbl { pub base__: ITransaction_Vtbl, pub CloneWithCommitDisabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppitransaction: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITransactionDispenser(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITransactionDispenser, ITransactionDispenser_Vtbl, 0x3a6ad9e1_23b9_11cf_ad60_00aa00a74ccd); +::windows_core::imp::interface_hierarchy!(ITransactionDispenser, ::windows_core::IUnknown); impl ITransactionDispenser { pub unsafe fn GetOptionsObject(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1592,13 +1271,6 @@ impl ITransactionDispenser { (::windows_core::Interface::vtable(self).BeginTransaction)(::windows_core::Interface::as_raw(self), punkouter.into_param().abi(), isolevel, isoflags, poptions.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITransactionDispenser, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITransactionDispenser { - type Vtable = ITransactionDispenser_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITransactionDispenser { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3a6ad9e1_23b9_11cf_ad60_00aa00a74ccd); -} #[repr(C)] #[doc(hidden)] pub struct ITransactionDispenser_Vtbl { @@ -1606,9 +1278,8 @@ pub struct ITransactionDispenser_Vtbl { pub GetOptionsObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppoptions: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub BeginTransaction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punkouter: *mut ::core::ffi::c_void, isolevel: i32, isoflags: u32, poptions: *mut ::core::ffi::c_void, pptransaction: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITransactionEnlistmentAsync(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITransactionEnlistmentAsync, ITransactionEnlistmentAsync_Vtbl, 0x0fb15081_af41_11ce_bd2b_204c4f4f5020); +::windows_core::imp::interface_hierarchy!(ITransactionEnlistmentAsync, ::windows_core::IUnknown); impl ITransactionEnlistmentAsync { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -1625,13 +1296,6 @@ impl ITransactionEnlistmentAsync { (::windows_core::Interface::vtable(self).AbortRequestDone)(::windows_core::Interface::as_raw(self), hr).ok() } } -::windows_core::imp::interface_hierarchy!(ITransactionEnlistmentAsync, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITransactionEnlistmentAsync { - type Vtable = ITransactionEnlistmentAsync_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITransactionEnlistmentAsync { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0fb15081_af41_11ce_bd2b_204c4f4f5020); -} #[repr(C)] #[doc(hidden)] pub struct ITransactionEnlistmentAsync_Vtbl { @@ -1643,9 +1307,8 @@ pub struct ITransactionEnlistmentAsync_Vtbl { pub CommitRequestDone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hr: ::windows_core::HRESULT) -> ::windows_core::HRESULT, pub AbortRequestDone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hr: ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITransactionExport(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITransactionExport, ITransactionExport_Vtbl, 0x0141fda5_8fc0_11ce_bd18_204c4f4f5020); +::windows_core::imp::interface_hierarchy!(ITransactionExport, ::windows_core::IUnknown); impl ITransactionExport { pub unsafe fn Export(&self, punktransaction: P0) -> ::windows_core::Result where @@ -1661,13 +1324,6 @@ impl ITransactionExport { (::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::imp::interface_hierarchy!(ITransactionExport, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITransactionExport { - type Vtable = ITransactionExport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITransactionExport { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0141fda5_8fc0_11ce_bd18_204c4f4f5020); -} #[repr(C)] #[doc(hidden)] pub struct ITransactionExport_Vtbl { @@ -1675,9 +1331,8 @@ pub struct ITransactionExport_Vtbl { pub Export: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punktransaction: *mut ::core::ffi::c_void, pcbtransactioncookie: *mut u32) -> ::windows_core::HRESULT, pub GetTransactionCookie: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punktransaction: *mut ::core::ffi::c_void, cbtransactioncookie: u32, rgbtransactioncookie: *mut u8, pcbused: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITransactionExportFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITransactionExportFactory, ITransactionExportFactory_Vtbl, 0xe1cf9b53_8745_11ce_a9ba_00aa006c3706); +::windows_core::imp::interface_hierarchy!(ITransactionExportFactory, ::windows_core::IUnknown); impl ITransactionExportFactory { pub unsafe fn GetRemoteClassId(&self) -> ::windows_core::Result<::windows_core::GUID> { let mut result__ = ::std::mem::zeroed(); @@ -1688,13 +1343,6 @@ impl ITransactionExportFactory { (::windows_core::Interface::vtable(self).Create)(::windows_core::Interface::as_raw(self), rgbwhereabouts.len().try_into().unwrap(), ::core::mem::transmute(rgbwhereabouts.as_ptr()), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITransactionExportFactory, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITransactionExportFactory { - type Vtable = ITransactionExportFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITransactionExportFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe1cf9b53_8745_11ce_a9ba_00aa006c3706); -} #[repr(C)] #[doc(hidden)] pub struct ITransactionExportFactory_Vtbl { @@ -1702,34 +1350,25 @@ pub struct ITransactionExportFactory_Vtbl { pub GetRemoteClassId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pclsid: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cbwhereabouts: u32, rgbwhereabouts: *const u8, ppexport: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITransactionImport(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITransactionImport, ITransactionImport_Vtbl, 0xe1cf9b5a_8745_11ce_a9ba_00aa006c3706); +::windows_core::imp::interface_hierarchy!(ITransactionImport, ::windows_core::IUnknown); impl ITransactionImport { pub unsafe fn Import(&self, rgbtransactioncookie: &[u8]) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).Import)(::windows_core::Interface::as_raw(self), rgbtransactioncookie.len().try_into().unwrap(), ::core::mem::transmute(rgbtransactioncookie.as_ptr()), &T::IID, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITransactionImport, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITransactionImport { - type Vtable = ITransactionImport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITransactionImport { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe1cf9b5a_8745_11ce_a9ba_00aa006c3706); -} #[repr(C)] #[doc(hidden)] pub struct ITransactionImport_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Import: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cbtransactioncookie: u32, rgbtransactioncookie: *const u8, piid: *const ::windows_core::GUID, ppvtransaction: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITransactionImportWhereabouts(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITransactionImportWhereabouts, ITransactionImportWhereabouts_Vtbl, 0x0141fda4_8fc0_11ce_bd18_204c4f4f5020); +::windows_core::imp::interface_hierarchy!(ITransactionImportWhereabouts, ::windows_core::IUnknown); impl ITransactionImportWhereabouts { pub unsafe fn GetWhereaboutsSize(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1739,13 +1378,6 @@ impl ITransactionImportWhereabouts { (::windows_core::Interface::vtable(self).GetWhereabouts)(::windows_core::Interface::as_raw(self), rgbwhereabouts.len().try_into().unwrap(), ::core::mem::transmute(rgbwhereabouts.as_ptr()), pcbused).ok() } } -::windows_core::imp::interface_hierarchy!(ITransactionImportWhereabouts, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITransactionImportWhereabouts { - type Vtable = ITransactionImportWhereabouts_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITransactionImportWhereabouts { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0141fda4_8fc0_11ce_bd18_204c4f4f5020); -} #[repr(C)] #[doc(hidden)] pub struct ITransactionImportWhereabouts_Vtbl { @@ -1753,30 +1385,21 @@ pub struct ITransactionImportWhereabouts_Vtbl { pub GetWhereaboutsSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcbwhereabouts: *mut u32) -> ::windows_core::HRESULT, pub GetWhereabouts: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cbwhereabouts: u32, rgbwhereabouts: *mut u8, pcbused: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITransactionLastEnlistmentAsync(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITransactionLastEnlistmentAsync, ITransactionLastEnlistmentAsync_Vtbl, 0xc82bd533_5b30_11d3_8a91_00c04f79eb6d); +::windows_core::imp::interface_hierarchy!(ITransactionLastEnlistmentAsync, ::windows_core::IUnknown); impl ITransactionLastEnlistmentAsync { pub unsafe fn TransactionOutcome(&self, xactstat: XACTSTAT, pboidreason: *const BOID) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).TransactionOutcome)(::windows_core::Interface::as_raw(self), xactstat, pboidreason).ok() } } -::windows_core::imp::interface_hierarchy!(ITransactionLastEnlistmentAsync, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITransactionLastEnlistmentAsync { - type Vtable = ITransactionLastEnlistmentAsync_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITransactionLastEnlistmentAsync { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc82bd533_5b30_11d3_8a91_00c04f79eb6d); -} #[repr(C)] #[doc(hidden)] pub struct ITransactionLastEnlistmentAsync_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub TransactionOutcome: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, xactstat: XACTSTAT, pboidreason: *const BOID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITransactionLastResourceAsync(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITransactionLastResourceAsync, ITransactionLastResourceAsync_Vtbl, 0xc82bd532_5b30_11d3_8a91_00c04f79eb6d); +::windows_core::imp::interface_hierarchy!(ITransactionLastResourceAsync, ::windows_core::IUnknown); impl ITransactionLastResourceAsync { pub unsafe fn DelegateCommit(&self, grfrm: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).DelegateCommit)(::windows_core::Interface::as_raw(self), grfrm).ok() @@ -1785,13 +1408,6 @@ impl ITransactionLastResourceAsync { (::windows_core::Interface::vtable(self).ForgetRequest)(::windows_core::Interface::as_raw(self), pnewuow).ok() } } -::windows_core::imp::interface_hierarchy!(ITransactionLastResourceAsync, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITransactionLastResourceAsync { - type Vtable = ITransactionLastResourceAsync_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITransactionLastResourceAsync { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc82bd532_5b30_11d3_8a91_00c04f79eb6d); -} #[repr(C)] #[doc(hidden)] pub struct ITransactionLastResourceAsync_Vtbl { @@ -1799,9 +1415,8 @@ pub struct ITransactionLastResourceAsync_Vtbl { pub DelegateCommit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, grfrm: u32) -> ::windows_core::HRESULT, pub ForgetRequest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pnewuow: *const BOID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITransactionOptions(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITransactionOptions, ITransactionOptions_Vtbl, 0x3a6ad9e0_23b9_11cf_ad60_00aa00a74ccd); +::windows_core::imp::interface_hierarchy!(ITransactionOptions, ::windows_core::IUnknown); impl ITransactionOptions { pub unsafe fn SetOptions(&self, poptions: *const XACTOPT) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetOptions)(::windows_core::Interface::as_raw(self), poptions).ok() @@ -1810,13 +1425,6 @@ impl ITransactionOptions { (::windows_core::Interface::vtable(self).GetOptions)(::windows_core::Interface::as_raw(self), poptions).ok() } } -::windows_core::imp::interface_hierarchy!(ITransactionOptions, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITransactionOptions { - type Vtable = ITransactionOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITransactionOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3a6ad9e0_23b9_11cf_ad60_00aa00a74ccd); -} #[repr(C)] #[doc(hidden)] pub struct ITransactionOptions_Vtbl { @@ -1824,9 +1432,8 @@ pub struct ITransactionOptions_Vtbl { pub SetOptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, poptions: *const XACTOPT) -> ::windows_core::HRESULT, pub GetOptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, poptions: *mut XACTOPT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITransactionOutcomeEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITransactionOutcomeEvents, ITransactionOutcomeEvents_Vtbl, 0x3a6ad9e2_23b9_11cf_ad60_00aa00a74ccd); +::windows_core::imp::interface_hierarchy!(ITransactionOutcomeEvents, ::windows_core::IUnknown); impl ITransactionOutcomeEvents { pub unsafe fn Committed(&self, fretaining: P0, pnewuow: *const BOID, hr: ::windows_core::HRESULT) -> ::windows_core::Result<()> where @@ -1847,13 +1454,6 @@ impl ITransactionOutcomeEvents { (::windows_core::Interface::vtable(self).Indoubt)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ITransactionOutcomeEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITransactionOutcomeEvents { - type Vtable = ITransactionOutcomeEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITransactionOutcomeEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3a6ad9e2_23b9_11cf_ad60_00aa00a74ccd); -} #[repr(C)] #[doc(hidden)] pub struct ITransactionOutcomeEvents_Vtbl { @@ -1863,9 +1463,8 @@ pub struct ITransactionOutcomeEvents_Vtbl { pub HeuristicDecision: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwdecision: u32, pboidreason: *const BOID, hr: ::windows_core::HRESULT) -> ::windows_core::HRESULT, pub Indoubt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITransactionPhase0EnlistmentAsync(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITransactionPhase0EnlistmentAsync, ITransactionPhase0EnlistmentAsync_Vtbl, 0x82dc88e1_a954_11d1_8f88_00600895e7d5); +::windows_core::imp::interface_hierarchy!(ITransactionPhase0EnlistmentAsync, ::windows_core::IUnknown); impl ITransactionPhase0EnlistmentAsync { pub unsafe fn Enable(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Enable)(::windows_core::Interface::as_raw(self)).ok() @@ -1884,13 +1483,6 @@ impl ITransactionPhase0EnlistmentAsync { (::windows_core::Interface::vtable(self).GetTransaction)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITransactionPhase0EnlistmentAsync, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITransactionPhase0EnlistmentAsync { - type Vtable = ITransactionPhase0EnlistmentAsync_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITransactionPhase0EnlistmentAsync { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x82dc88e1_a954_11d1_8f88_00600895e7d5); -} #[repr(C)] #[doc(hidden)] pub struct ITransactionPhase0EnlistmentAsync_Vtbl { @@ -1901,9 +1493,8 @@ pub struct ITransactionPhase0EnlistmentAsync_Vtbl { pub Unenlist: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetTransaction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppitransaction: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITransactionPhase0Factory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITransactionPhase0Factory, ITransactionPhase0Factory_Vtbl, 0x82dc88e0_a954_11d1_8f88_00600895e7d5); +::windows_core::imp::interface_hierarchy!(ITransactionPhase0Factory, ::windows_core::IUnknown); impl ITransactionPhase0Factory { pub unsafe fn Create(&self, pphase0notify: P0) -> ::windows_core::Result where @@ -1913,22 +1504,14 @@ impl ITransactionPhase0Factory { (::windows_core::Interface::vtable(self).Create)(::windows_core::Interface::as_raw(self), pphase0notify.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITransactionPhase0Factory, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITransactionPhase0Factory { - type Vtable = ITransactionPhase0Factory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITransactionPhase0Factory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x82dc88e0_a954_11d1_8f88_00600895e7d5); -} #[repr(C)] #[doc(hidden)] pub struct ITransactionPhase0Factory_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pphase0notify: *mut ::core::ffi::c_void, ppphase0enlistment: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITransactionPhase0NotifyAsync(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITransactionPhase0NotifyAsync, ITransactionPhase0NotifyAsync_Vtbl, 0xef081809_0c76_11d2_87a6_00c04f990f34); +::windows_core::imp::interface_hierarchy!(ITransactionPhase0NotifyAsync, ::windows_core::IUnknown); impl ITransactionPhase0NotifyAsync { pub unsafe fn Phase0Request(&self, fabortinghint: P0) -> ::windows_core::Result<()> where @@ -1940,13 +1523,6 @@ impl ITransactionPhase0NotifyAsync { (::windows_core::Interface::vtable(self).EnlistCompleted)(::windows_core::Interface::as_raw(self), status).ok() } } -::windows_core::imp::interface_hierarchy!(ITransactionPhase0NotifyAsync, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITransactionPhase0NotifyAsync { - type Vtable = ITransactionPhase0NotifyAsync_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITransactionPhase0NotifyAsync { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xef081809_0c76_11d2_87a6_00c04f990f34); -} #[repr(C)] #[doc(hidden)] pub struct ITransactionPhase0NotifyAsync_Vtbl { @@ -1954,9 +1530,8 @@ pub struct ITransactionPhase0NotifyAsync_Vtbl { pub Phase0Request: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fabortinghint: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub EnlistCompleted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, status: ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITransactionReceiver(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITransactionReceiver, ITransactionReceiver_Vtbl, 0x59313e03_b36c_11cf_a539_00aa006887c3); +::windows_core::imp::interface_hierarchy!(ITransactionReceiver, ::windows_core::IUnknown); impl ITransactionReceiver { pub unsafe fn UnmarshalPropagationToken(&self, rgbtoken: &[u8]) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1973,13 +1548,6 @@ impl ITransactionReceiver { (::windows_core::Interface::vtable(self).Reset)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ITransactionReceiver, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITransactionReceiver { - type Vtable = ITransactionReceiver_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITransactionReceiver { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x59313e03_b36c_11cf_a539_00aa006887c3); -} #[repr(C)] #[doc(hidden)] pub struct ITransactionReceiver_Vtbl { @@ -1989,31 +1557,22 @@ pub struct ITransactionReceiver_Vtbl { pub MarshalReturnToken: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cbreturntoken: u32, rgbreturntoken: *mut u8, pcbused: *mut u32) -> ::windows_core::HRESULT, pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITransactionReceiverFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITransactionReceiverFactory, ITransactionReceiverFactory_Vtbl, 0x59313e02_b36c_11cf_a539_00aa006887c3); +::windows_core::imp::interface_hierarchy!(ITransactionReceiverFactory, ::windows_core::IUnknown); impl ITransactionReceiverFactory { pub unsafe fn Create(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).Create)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITransactionReceiverFactory, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITransactionReceiverFactory { - type Vtable = ITransactionReceiverFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITransactionReceiverFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x59313e02_b36c_11cf_a539_00aa006887c3); -} #[repr(C)] #[doc(hidden)] pub struct ITransactionReceiverFactory_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppreceiver: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITransactionResource(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITransactionResource, ITransactionResource_Vtbl, 0xee5ff7b3_4572_11d0_9452_00a0c905416e); +::windows_core::imp::interface_hierarchy!(ITransactionResource, ::windows_core::IUnknown); impl ITransactionResource { pub unsafe fn PrepareRequest(&self, fretaining: P0, grfrm: u32, fwantmoniker: P1, fsinglephase: P2) -> ::windows_core::Result<()> where @@ -2036,13 +1595,6 @@ impl ITransactionResource { (::windows_core::Interface::vtable(self).TMDown)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ITransactionResource, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITransactionResource { - type Vtable = ITransactionResource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITransactionResource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xee5ff7b3_4572_11d0_9452_00a0c905416e); -} #[repr(C)] #[doc(hidden)] pub struct ITransactionResource_Vtbl { @@ -2052,9 +1604,8 @@ pub struct ITransactionResource_Vtbl { pub AbortRequest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pboidreason: *const BOID, fretaining: super::super::Foundation::BOOL, pnewuow: *const BOID) -> ::windows_core::HRESULT, pub TMDown: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITransactionResourceAsync(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITransactionResourceAsync, ITransactionResourceAsync_Vtbl, 0x69e971f0_23ce_11cf_ad60_00aa00a74ccd); +::windows_core::imp::interface_hierarchy!(ITransactionResourceAsync, ::windows_core::IUnknown); impl ITransactionResourceAsync { pub unsafe fn PrepareRequest(&self, fretaining: P0, grfrm: u32, fwantmoniker: P1, fsinglephase: P2) -> ::windows_core::Result<()> where @@ -2077,13 +1628,6 @@ impl ITransactionResourceAsync { (::windows_core::Interface::vtable(self).TMDown)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ITransactionResourceAsync, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITransactionResourceAsync { - type Vtable = ITransactionResourceAsync_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITransactionResourceAsync { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x69e971f0_23ce_11cf_ad60_00aa00a74ccd); -} #[repr(C)] #[doc(hidden)] pub struct ITransactionResourceAsync_Vtbl { @@ -2093,9 +1637,8 @@ pub struct ITransactionResourceAsync_Vtbl { pub AbortRequest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pboidreason: *const BOID, fretaining: super::super::Foundation::BOOL, pnewuow: *const BOID) -> ::windows_core::HRESULT, pub TMDown: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITransactionTransmitter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITransactionTransmitter, ITransactionTransmitter_Vtbl, 0x59313e01_b36c_11cf_a539_00aa006887c3); +::windows_core::imp::interface_hierarchy!(ITransactionTransmitter, ::windows_core::IUnknown); impl ITransactionTransmitter { pub unsafe fn Set(&self, ptransaction: P0) -> ::windows_core::Result<()> where @@ -2117,13 +1660,6 @@ impl ITransactionTransmitter { (::windows_core::Interface::vtable(self).Reset)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ITransactionTransmitter, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITransactionTransmitter { - type Vtable = ITransactionTransmitter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITransactionTransmitter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x59313e01_b36c_11cf_a539_00aa006887c3); -} #[repr(C)] #[doc(hidden)] pub struct ITransactionTransmitter_Vtbl { @@ -2134,52 +1670,35 @@ pub struct ITransactionTransmitter_Vtbl { pub UnmarshalReturnToken: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cbreturntoken: u32, rgbreturntoken: *const u8) -> ::windows_core::HRESULT, pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITransactionTransmitterFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITransactionTransmitterFactory, ITransactionTransmitterFactory_Vtbl, 0x59313e00_b36c_11cf_a539_00aa006887c3); +::windows_core::imp::interface_hierarchy!(ITransactionTransmitterFactory, ::windows_core::IUnknown); impl ITransactionTransmitterFactory { pub unsafe fn Create(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).Create)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITransactionTransmitterFactory, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITransactionTransmitterFactory { - type Vtable = ITransactionTransmitterFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITransactionTransmitterFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x59313e00_b36c_11cf_a539_00aa006887c3); -} #[repr(C)] #[doc(hidden)] pub struct ITransactionTransmitterFactory_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pptransmitter: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITransactionVoterBallotAsync2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITransactionVoterBallotAsync2, ITransactionVoterBallotAsync2_Vtbl, 0x5433376c_414d_11d3_b206_00c04fc2f3ef); +::windows_core::imp::interface_hierarchy!(ITransactionVoterBallotAsync2, ::windows_core::IUnknown); impl ITransactionVoterBallotAsync2 { pub unsafe fn VoteRequestDone(&self, hr: ::windows_core::HRESULT, pboidreason: ::core::option::Option<*const BOID>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).VoteRequestDone)(::windows_core::Interface::as_raw(self), hr, ::core::mem::transmute(pboidreason.unwrap_or(::std::ptr::null()))).ok() } } -::windows_core::imp::interface_hierarchy!(ITransactionVoterBallotAsync2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITransactionVoterBallotAsync2 { - type Vtable = ITransactionVoterBallotAsync2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITransactionVoterBallotAsync2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5433376c_414d_11d3_b206_00c04fc2f3ef); -} #[repr(C)] #[doc(hidden)] pub struct ITransactionVoterBallotAsync2_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub VoteRequestDone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hr: ::windows_core::HRESULT, pboidreason: *const BOID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITransactionVoterFactory2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITransactionVoterFactory2, ITransactionVoterFactory2_Vtbl, 0x5433376a_414d_11d3_b206_00c04fc2f3ef); +::windows_core::imp::interface_hierarchy!(ITransactionVoterFactory2, ::windows_core::IUnknown); impl ITransactionVoterFactory2 { pub unsafe fn Create(&self, ptransaction: P0, pvoternotify: P1) -> ::windows_core::Result where @@ -2190,22 +1709,14 @@ impl ITransactionVoterFactory2 { (::windows_core::Interface::vtable(self).Create)(::windows_core::Interface::as_raw(self), ptransaction.into_param().abi(), pvoternotify.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITransactionVoterFactory2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITransactionVoterFactory2 { - type Vtable = ITransactionVoterFactory2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITransactionVoterFactory2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5433376a_414d_11d3_b206_00c04fc2f3ef); -} #[repr(C)] #[doc(hidden)] pub struct ITransactionVoterFactory2_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptransaction: *mut ::core::ffi::c_void, pvoternotify: *mut ::core::ffi::c_void, ppvoterballot: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITransactionVoterNotifyAsync2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITransactionVoterNotifyAsync2, ITransactionVoterNotifyAsync2_Vtbl, 0x5433376b_414d_11d3_b206_00c04fc2f3ef); +::windows_core::imp::interface_hierarchy!(ITransactionVoterNotifyAsync2, ::windows_core::IUnknown, ITransactionOutcomeEvents); impl ITransactionVoterNotifyAsync2 { pub unsafe fn Committed(&self, fretaining: P0, pnewuow: *const BOID, hr: ::windows_core::HRESULT) -> ::windows_core::Result<()> where @@ -2229,22 +1740,14 @@ impl ITransactionVoterNotifyAsync2 { (::windows_core::Interface::vtable(self).VoteRequest)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ITransactionVoterNotifyAsync2, ::windows_core::IUnknown, ITransactionOutcomeEvents); -unsafe impl ::windows_core::Interface for ITransactionVoterNotifyAsync2 { - type Vtable = ITransactionVoterNotifyAsync2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITransactionVoterNotifyAsync2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5433376b_414d_11d3_b206_00c04fc2f3ef); -} #[repr(C)] #[doc(hidden)] pub struct ITransactionVoterNotifyAsync2_Vtbl { pub base__: ITransactionOutcomeEvents_Vtbl, pub VoteRequest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXAConfig(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXAConfig, IXAConfig_Vtbl, 0xc8a6e3a1_9a8c_11cf_a308_00a0c905416e); +::windows_core::imp::interface_hierarchy!(IXAConfig, ::windows_core::IUnknown); impl IXAConfig { pub unsafe fn Initialize(&self, clsidhelperdll: ::windows_core::GUID) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Initialize)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(clsidhelperdll)).ok() @@ -2253,13 +1756,6 @@ impl IXAConfig { (::windows_core::Interface::vtable(self).Terminate)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IXAConfig, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXAConfig { - type Vtable = IXAConfig_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXAConfig { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc8a6e3a1_9a8c_11cf_a308_00a0c905416e); -} #[repr(C)] #[doc(hidden)] pub struct IXAConfig_Vtbl { @@ -2267,9 +1763,8 @@ pub struct IXAConfig_Vtbl { pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, clsidhelperdll: ::windows_core::GUID) -> ::windows_core::HRESULT, pub Terminate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXAObtainRMInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXAObtainRMInfo, IXAObtainRMInfo_Vtbl, 0xe793f6d2_f53d_11cf_a60d_00a0c905416e); +::windows_core::imp::interface_hierarchy!(IXAObtainRMInfo, ::windows_core::IUnknown); impl IXAObtainRMInfo { pub unsafe fn ObtainRMInfo(&self, pirmhelper: P0) -> ::windows_core::Result<()> where @@ -2278,57 +1773,34 @@ impl IXAObtainRMInfo { (::windows_core::Interface::vtable(self).ObtainRMInfo)(::windows_core::Interface::as_raw(self), pirmhelper.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IXAObtainRMInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXAObtainRMInfo { - type Vtable = IXAObtainRMInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXAObtainRMInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe793f6d2_f53d_11cf_a60d_00a0c905416e); -} #[repr(C)] #[doc(hidden)] pub struct IXAObtainRMInfo_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub ObtainRMInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pirmhelper: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXATransLookup(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXATransLookup, IXATransLookup_Vtbl, 0xf3b1f131_eeda_11ce_aed4_00aa0051e2c4); +::windows_core::imp::interface_hierarchy!(IXATransLookup, ::windows_core::IUnknown); impl IXATransLookup { pub unsafe fn Lookup(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).Lookup)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IXATransLookup, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXATransLookup { - type Vtable = IXATransLookup_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXATransLookup { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf3b1f131_eeda_11ce_aed4_00aa0051e2c4); -} #[repr(C)] #[doc(hidden)] pub struct IXATransLookup_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Lookup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pptransaction: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IXATransLookup2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IXATransLookup2, IXATransLookup2_Vtbl, 0xbf193c85_0d1a_4290_b88f_d2cb8873d1e7); +::windows_core::imp::interface_hierarchy!(IXATransLookup2, ::windows_core::IUnknown); impl IXATransLookup2 { pub unsafe fn Lookup(&self, pxid: *const XID) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).Lookup)(::windows_core::Interface::as_raw(self), pxid, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IXATransLookup2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IXATransLookup2 { - type Vtable = IXATransLookup2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IXATransLookup2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbf193c85_0d1a_4290_b88f_d2cb8873d1e7); -} #[repr(C)] #[doc(hidden)] pub struct IXATransLookup2_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/System/EventNotificationService/impl.rs b/crates/libs/windows/src/Windows/Win32/System/EventNotificationService/impl.rs index 93938e3c1c..29601c1c37 100644 --- a/crates/libs/windows/src/Windows/Win32/System/EventNotificationService/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/EventNotificationService/impl.rs @@ -61,7 +61,7 @@ impl ISensLogon_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -113,7 +113,7 @@ impl ISensLogon2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -165,7 +165,7 @@ impl ISensNetwork_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -203,6 +203,6 @@ impl ISensOnNow_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } 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 ba7cd39e74..c53ff8f273 100644 --- a/crates/libs/windows/src/Windows/Win32/System/EventNotificationService/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/EventNotificationService/mod.rs @@ -19,11 +19,15 @@ pub unsafe fn IsNetworkAlive(lpdwflags: *mut u32) -> ::windows_core::Result<()> ::windows_targets::link!("sensapi.dll" "system" fn IsNetworkAlive(lpdwflags : *mut u32) -> super::super::Foundation:: BOOL); IsNetworkAlive(lpdwflags).ok() } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISensLogon(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISensLogon, + ISensLogon_Vtbl, + 0xd597bab3_5b9f_11d1_8dd2_00aa004abd5e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISensLogon, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISensLogon { pub unsafe fn Logon(&self, bstrusername: P0) -> ::windows_core::Result<()> @@ -70,16 +74,6 @@ impl ISensLogon { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISensLogon, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISensLogon { - type Vtable = ISensLogon_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISensLogon { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd597bab3_5b9f_11d1_8dd2_00aa004abd5e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISensLogon_Vtbl { @@ -92,11 +86,15 @@ pub struct ISensLogon_Vtbl { pub StartScreenSaver: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrusername: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub StopScreenSaver: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrusername: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISensLogon2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISensLogon2, + ISensLogon2_Vtbl, + 0xd597bab4_5b9f_11d1_8dd2_00aa004abd5e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISensLogon2, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISensLogon2 { pub unsafe fn Logon(&self, bstrusername: P0, dwsessionid: u32) -> ::windows_core::Result<()> @@ -131,16 +129,6 @@ impl ISensLogon2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISensLogon2, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISensLogon2 { - type Vtable = ISensLogon2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISensLogon2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd597bab4_5b9f_11d1_8dd2_00aa004abd5e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISensLogon2_Vtbl { @@ -151,11 +139,15 @@ pub struct ISensLogon2_Vtbl { pub SessionReconnect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrusername: ::std::mem::MaybeUninit<::windows_core::BSTR>, dwsessionid: u32) -> ::windows_core::HRESULT, pub PostShell: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrusername: ::std::mem::MaybeUninit<::windows_core::BSTR>, dwsessionid: u32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISensNetwork(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISensNetwork, + ISensNetwork_Vtbl, + 0xd597bab1_5b9f_11d1_8dd2_00aa004abd5e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISensNetwork, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISensNetwork { pub unsafe fn ConnectionMade(&self, bstrconnection: P0, ultype: u32, lpqocinfo: *const SENS_QOCINFO) -> ::windows_core::Result<()> @@ -192,16 +184,6 @@ impl ISensNetwork { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISensNetwork, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISensNetwork { - type Vtable = ISensNetwork_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISensNetwork { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd597bab1_5b9f_11d1_8dd2_00aa004abd5e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISensNetwork_Vtbl { @@ -212,11 +194,15 @@ pub struct ISensNetwork_Vtbl { pub DestinationReachable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdestination: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstrconnection: ::std::mem::MaybeUninit<::windows_core::BSTR>, ultype: u32, lpqocinfo: *const SENS_QOCINFO) -> ::windows_core::HRESULT, pub DestinationReachableNoQOCInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdestination: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstrconnection: ::std::mem::MaybeUninit<::windows_core::BSTR>, ultype: u32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISensOnNow(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISensOnNow, + ISensOnNow_Vtbl, + 0xd597bab2_5b9f_11d1_8dd2_00aa004abd5e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISensOnNow, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISensOnNow { pub unsafe fn OnACPower(&self) -> ::windows_core::Result<()> { @@ -230,16 +216,6 @@ impl ISensOnNow { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISensOnNow, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISensOnNow { - type Vtable = ISensOnNow_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISensOnNow { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd597bab2_5b9f_11d1_8dd2_00aa004abd5e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISensOnNow_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/System/GroupPolicy/impl.rs b/crates/libs/windows/src/Windows/Win32/System/GroupPolicy/impl.rs index 848514dad2..8da4a8da8d 100644 --- a/crates/libs/windows/src/Windows/Win32/System/GroupPolicy/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/GroupPolicy/impl.rs @@ -75,7 +75,7 @@ impl IGPEInformation_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -242,7 +242,7 @@ impl IGPM_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -279,7 +279,7 @@ impl IGPM2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -300,7 +300,7 @@ impl IGPMAsyncCancel_Vtbl { Self { base__: super::Com::IDispatch_Vtbl::new::(), Cancel: Cancel:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -321,7 +321,7 @@ impl IGPMAsyncProgress_Vtbl { Self { base__: super::Com::IDispatch_Vtbl::new::(), Status: Status:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -456,7 +456,7 @@ impl IGPMBackup_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -512,7 +512,7 @@ impl IGPMBackupCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -568,7 +568,7 @@ impl IGPMBackupDir_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -637,7 +637,7 @@ impl IGPMBackupDirEx_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -693,7 +693,7 @@ impl IGPMCSECollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -762,7 +762,7 @@ impl IGPMClientSideExtension_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1559,7 +1559,7 @@ impl IGPMConstants_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1771,7 +1771,7 @@ impl IGPMConstants2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1912,7 +1912,7 @@ impl IGPMDomain_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1995,7 +1995,7 @@ impl IGPMDomain2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2046,7 +2046,7 @@ impl IGPMDomain3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2368,7 +2368,7 @@ impl IGPMGPO_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2405,7 +2405,7 @@ impl IGPMGPO2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2449,7 +2449,7 @@ impl IGPMGPO3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2505,7 +2505,7 @@ impl IGPMGPOCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2621,7 +2621,7 @@ impl IGPMGPOLink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2677,7 +2677,7 @@ impl IGPMGPOLinksCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2746,7 +2746,7 @@ impl IGPMMapEntry_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2802,7 +2802,7 @@ impl IGPMMapEntryCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2905,7 +2905,7 @@ impl IGPMMigrationTable_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2987,7 +2987,7 @@ impl IGPMPermission_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3357,7 +3357,7 @@ impl IGPMRSOP_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3407,7 +3407,7 @@ impl IGPMResult_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3542,7 +3542,7 @@ impl IGPMSOM_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3598,7 +3598,7 @@ impl IGPMSOMCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3619,7 +3619,7 @@ impl IGPMSearchCriteria_Vtbl { Self { base__: super::Com::IDispatch_Vtbl::new::(), Add: Add:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3696,7 +3696,7 @@ impl IGPMSecurityInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3778,7 +3778,7 @@ impl IGPMSitesContainer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4033,7 +4033,7 @@ impl IGPMStarterGPO_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4181,7 +4181,7 @@ impl IGPMStarterGPOBackup_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4237,7 +4237,7 @@ impl IGPMStarterGPOBackupCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4293,7 +4293,7 @@ impl IGPMStarterGPOCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4376,7 +4376,7 @@ impl IGPMStatusMessage_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4432,7 +4432,7 @@ impl IGPMStatusMsgCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4514,7 +4514,7 @@ impl IGPMTrustee_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4617,7 +4617,7 @@ impl IGPMWMIFilter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4673,7 +4673,7 @@ impl IGPMWMIFilterCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Registry\"`, `\"Win32_UI_Controls\"`"] @@ -4816,7 +4816,7 @@ impl IGroupPolicyObject_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRSOPInformation_Impl: Sized { @@ -4856,6 +4856,6 @@ impl IRSOPInformation_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 e4b881f109..7101a811af 100644 --- a/crates/libs/windows/src/Windows/Win32/System/GroupPolicy/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/GroupPolicy/mod.rs @@ -270,9 +270,8 @@ where ::windows_targets::link!("userenv.dll" "system" fn UnregisterGPNotification(hevent : super::super::Foundation:: HANDLE) -> super::super::Foundation:: BOOL); UnregisterGPNotification(hevent.into_param().abi()).ok() } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGPEInformation(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IGPEInformation, IGPEInformation_Vtbl, 0x8fc0b735_a0e1_11d1_a7d3_0000f87571e3); +::windows_core::imp::interface_hierarchy!(IGPEInformation, ::windows_core::IUnknown); impl IGPEInformation { pub unsafe fn GetName(&self, pszname: &mut [u16]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetName)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pszname.as_ptr()), pszname.len().try_into().unwrap()).ok() @@ -308,13 +307,6 @@ impl IGPEInformation { (::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::imp::interface_hierarchy!(IGPEInformation, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGPEInformation { - type Vtable = IGPEInformation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGPEInformation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8fc0b735_a0e1_11d1_a7d3_0000f87571e3); -} #[repr(C)] #[doc(hidden)] pub struct IGPEInformation_Vtbl { @@ -332,11 +324,15 @@ pub struct IGPEInformation_Vtbl { pub GetHint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, gphint: *mut GROUP_POLICY_HINT_TYPE) -> ::windows_core::HRESULT, pub PolicyChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bmachine: super::super::Foundation::BOOL, badd: super::super::Foundation::BOOL, pguidextension: *mut ::windows_core::GUID, pguidsnapin: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGPM(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IGPM, + IGPM_Vtbl, + 0xf5fae809_3bd6_4da9_a65e_17665b41d763 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IGPM, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IGPM { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -438,16 +434,6 @@ impl IGPM { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IGPM, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IGPM { - type Vtable = IGPM_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IGPM { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf5fae809_3bd6_4da9_a65e_17665b41d763); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IGPM_Vtbl { @@ -498,11 +484,15 @@ pub struct IGPM_Vtbl { CreateMigrationTable: usize, pub InitializeReporting: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstradmpath: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGPM2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IGPM2, + IGPM2_Vtbl, + 0x00238f8a_3d86_41ac_8f5e_06a6638a634a +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IGPM2, ::windows_core::IUnknown, super::Com::IDispatch, IGPM); #[cfg(feature = "Win32_System_Com")] impl IGPM2 { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -619,16 +609,6 @@ impl IGPM2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IGPM2, ::windows_core::IUnknown, super::Com::IDispatch, IGPM); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IGPM2 { - type Vtable = IGPM2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IGPM2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00238f8a_3d86_41ac_8f5e_06a6638a634a); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IGPM2_Vtbl { @@ -639,11 +619,15 @@ pub struct IGPM2_Vtbl { GetBackupDirEx: usize, pub InitializeReportingEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstradmpath: ::std::mem::MaybeUninit<::windows_core::BSTR>, reportingoptions: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGPMAsyncCancel(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IGPMAsyncCancel, + IGPMAsyncCancel_Vtbl, + 0xddc67754_be67_4541_8166_f48166868c9c +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IGPMAsyncCancel, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IGPMAsyncCancel { pub unsafe fn Cancel(&self) -> ::windows_core::Result<()> { @@ -651,27 +635,21 @@ impl IGPMAsyncCancel { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IGPMAsyncCancel, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IGPMAsyncCancel { - type Vtable = IGPMAsyncCancel_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IGPMAsyncCancel { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xddc67754_be67_4541_8166_f48166868c9c); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IGPMAsyncCancel_Vtbl { pub base__: super::Com::IDispatch_Vtbl, pub Cancel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGPMAsyncProgress(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IGPMAsyncProgress, + IGPMAsyncProgress_Vtbl, + 0x6aac29f8_5948_4324_bf70_423818942dbc +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IGPMAsyncProgress, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IGPMAsyncProgress { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -684,16 +662,6 @@ impl IGPMAsyncProgress { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IGPMAsyncProgress, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IGPMAsyncProgress { - type Vtable = IGPMAsyncProgress_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IGPMAsyncProgress { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6aac29f8_5948_4324_bf70_423818942dbc); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IGPMAsyncProgress_Vtbl { @@ -703,11 +671,15 @@ pub struct IGPMAsyncProgress_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] Status: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGPMBackup(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IGPMBackup, + IGPMBackup_Vtbl, + 0xd8a16a35_3b0d_416b_8d02_4df6f95a7119 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IGPMBackup, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IGPMBackup { pub unsafe fn ID(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -757,16 +729,6 @@ impl IGPMBackup { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IGPMBackup, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IGPMBackup { - type Vtable = IGPMBackup_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IGPMBackup { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd8a16a35_3b0d_416b_8d02_4df6f95a7119); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IGPMBackup_Vtbl { @@ -788,11 +750,15 @@ pub struct IGPMBackup_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GenerateReportToFile: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGPMBackupCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IGPMBackupCollection, + IGPMBackupCollection_Vtbl, + 0xc786fc0f_26d8_4bab_a745_39ca7e800cac +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IGPMBackupCollection, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IGPMBackupCollection { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -813,16 +779,6 @@ impl IGPMBackupCollection { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IGPMBackupCollection, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IGPMBackupCollection { - type Vtable = IGPMBackupCollection_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IGPMBackupCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc786fc0f_26d8_4bab_a745_39ca7e800cac); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IGPMBackupCollection_Vtbl { @@ -837,11 +793,15 @@ pub struct IGPMBackupCollection_Vtbl { #[cfg(not(feature = "Win32_System_Ole"))] _NewEnum: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGPMBackupDir(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IGPMBackupDir, + IGPMBackupDir_Vtbl, + 0xb1568bed_0a93_4acc_810f_afe7081019b9 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IGPMBackupDir, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IGPMBackupDir { pub unsafe fn BackupDirectory(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -868,16 +828,6 @@ impl IGPMBackupDir { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IGPMBackupDir, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IGPMBackupDir { - type Vtable = IGPMBackupDir_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IGPMBackupDir { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb1568bed_0a93_4acc_810f_afe7081019b9); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IGPMBackupDir_Vtbl { @@ -892,11 +842,15 @@ pub struct IGPMBackupDir_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] SearchBackups: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGPMBackupDirEx(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IGPMBackupDirEx, + IGPMBackupDirEx_Vtbl, + 0xf8dc55ed_3ba0_4864_aad4_d365189ee1d5 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IGPMBackupDirEx, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IGPMBackupDirEx { pub unsafe fn BackupDir(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -927,16 +881,6 @@ impl IGPMBackupDirEx { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IGPMBackupDirEx, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IGPMBackupDirEx { - type Vtable = IGPMBackupDirEx_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IGPMBackupDirEx { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf8dc55ed_3ba0_4864_aad4_d365189ee1d5); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IGPMBackupDirEx_Vtbl { @@ -952,11 +896,15 @@ pub struct IGPMBackupDirEx_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] SearchBackups: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGPMCSECollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IGPMCSECollection, + IGPMCSECollection_Vtbl, + 0x2e52a97d_0a4a_4a6f_85db_201622455da0 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IGPMCSECollection, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IGPMCSECollection { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -977,16 +925,6 @@ impl IGPMCSECollection { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IGPMCSECollection, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IGPMCSECollection { - type Vtable = IGPMCSECollection_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IGPMCSECollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2e52a97d_0a4a_4a6f_85db_201622455da0); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IGPMCSECollection_Vtbl { @@ -1001,11 +939,15 @@ pub struct IGPMCSECollection_Vtbl { #[cfg(not(feature = "Win32_System_Ole"))] _NewEnum: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGPMClientSideExtension(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IGPMClientSideExtension, + IGPMClientSideExtension_Vtbl, + 0x69da7488_b8db_415e_9266_901be4d49928 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IGPMClientSideExtension, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IGPMClientSideExtension { pub unsafe fn ID(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -1026,16 +968,6 @@ impl IGPMClientSideExtension { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IGPMClientSideExtension, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IGPMClientSideExtension { - type Vtable = IGPMClientSideExtension_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IGPMClientSideExtension { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x69da7488_b8db_415e_9266_901be4d49928); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IGPMClientSideExtension_Vtbl { @@ -1045,11 +977,15 @@ pub struct IGPMClientSideExtension_Vtbl { pub IsUserEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvbenabled: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub IsComputerEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvbenabled: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGPMConstants(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IGPMConstants, + IGPMConstants_Vtbl, + 0x50ef73e6_d35c_4c8d_be63_7ea5d2aac5c4 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IGPMConstants, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IGPMConstants { pub unsafe fn PermGPOApply(&self) -> ::windows_core::Result { @@ -1303,16 +1239,6 @@ impl IGPMConstants { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IGPMConstants, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IGPMConstants { - type Vtable = IGPMConstants_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IGPMConstants { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x50ef73e6_d35c_4c8d_be63_7ea5d2aac5c4); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IGPMConstants_Vtbl { @@ -1378,11 +1304,15 @@ pub struct IGPMConstants_Vtbl { pub RsopPlanningAssumeUserWQLFilterTrue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut i32) -> ::windows_core::HRESULT, pub RsopPlanningAssumeCompWQLFilterTrue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGPMConstants2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IGPMConstants2, + IGPMConstants2_Vtbl, + 0x05ae21b0_ac09_4032_a26f_9e7da786dc19 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IGPMConstants2, ::windows_core::IUnknown, super::Com::IDispatch, IGPMConstants); #[cfg(feature = "Win32_System_Com")] impl IGPMConstants2 { pub unsafe fn PermGPOApply(&self) -> ::windows_core::Result { @@ -1696,16 +1626,6 @@ impl IGPMConstants2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IGPMConstants2, ::windows_core::IUnknown, super::Com::IDispatch, IGPMConstants); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IGPMConstants2 { - type Vtable = IGPMConstants2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IGPMConstants2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x05ae21b0_ac09_4032_a26f_9e7da786dc19); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IGPMConstants2_Vtbl { @@ -1726,11 +1646,15 @@ pub struct IGPMConstants2_Vtbl { pub ReportLegacy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut GPMReportingOptions) -> ::windows_core::HRESULT, pub ReportComments: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut GPMReportingOptions) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGPMDomain(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IGPMDomain, + IGPMDomain_Vtbl, + 0x6b21cc14_5a00_4f44_a738_feec8a94c7e3 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IGPMDomain, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IGPMDomain { pub unsafe fn DomainController(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -1811,16 +1735,6 @@ impl IGPMDomain { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IGPMDomain, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IGPMDomain { - type Vtable = IGPMDomain_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IGPMDomain { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6b21cc14_5a00_4f44_a738_feec8a94c7e3); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IGPMDomain_Vtbl { @@ -1860,11 +1774,15 @@ pub struct IGPMDomain_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] SearchWMIFilters: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGPMDomain2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IGPMDomain2, + IGPMDomain2_Vtbl, + 0x7ca6bb8b_f1eb_490a_938d_3c4e51c768e6 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IGPMDomain2, ::windows_core::IUnknown, super::Com::IDispatch, IGPMDomain); #[cfg(feature = "Win32_System_Com")] impl IGPMDomain2 { pub unsafe fn DomainController(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -1995,16 +1913,6 @@ impl IGPMDomain2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IGPMDomain2, ::windows_core::IUnknown, super::Com::IDispatch, IGPMDomain); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IGPMDomain2 { - type Vtable = IGPMDomain2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IGPMDomain2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7ca6bb8b_f1eb_490a_938d_3c4e51c768e6); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IGPMDomain2_Vtbl { @@ -2034,11 +1942,15 @@ pub struct IGPMDomain2_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] RestoreStarterGPO: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGPMDomain3(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IGPMDomain3, + IGPMDomain3_Vtbl, + 0x0077fdfe_88c7_4acf_a11d_d10a7c310a03 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IGPMDomain3, ::windows_core::IUnknown, super::Com::IDispatch, IGPMDomain, IGPMDomain2); #[cfg(feature = "Win32_System_Com")] impl IGPMDomain3 { pub unsafe fn DomainController(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -2187,16 +2099,6 @@ impl IGPMDomain3 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IGPMDomain3, ::windows_core::IUnknown, super::Com::IDispatch, IGPMDomain, IGPMDomain2); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IGPMDomain3 { - type Vtable = IGPMDomain3_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IGPMDomain3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0077fdfe_88c7_4acf_a11d_d10a7c310a03); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IGPMDomain3_Vtbl { @@ -2209,11 +2111,15 @@ pub struct IGPMDomain3_Vtbl { pub SetInfrastructureDC: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SetInfrastructureFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwflags: u32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGPMGPO(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IGPMGPO, + IGPMGPO_Vtbl, + 0x58cc4352_1ca3_48e5_9864_1da4d6e0d60f +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IGPMGPO, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IGPMGPO { pub unsafe fn DisplayName(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -2375,16 +2281,6 @@ impl IGPMGPO { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IGPMGPO, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IGPMGPO { - type Vtable = IGPMGPO_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IGPMGPO { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x58cc4352_1ca3_48e5_9864_1da4d6e0d60f); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IGPMGPO_Vtbl { @@ -2452,11 +2348,15 @@ pub struct IGPMGPO_Vtbl { pub IsACLConsistent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvbconsistent: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub MakeACLConsistent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGPMGPO2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IGPMGPO2, + IGPMGPO2_Vtbl, + 0x8a66a210_b78b_4d99_88e2_c306a817c925 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IGPMGPO2, ::windows_core::IUnknown, super::Com::IDispatch, IGPMGPO); #[cfg(feature = "Win32_System_Com")] impl IGPMGPO2 { pub unsafe fn DisplayName(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -2628,16 +2528,6 @@ impl IGPMGPO2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IGPMGPO2, ::windows_core::IUnknown, super::Com::IDispatch, IGPMGPO); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IGPMGPO2 { - type Vtable = IGPMGPO2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IGPMGPO2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8a66a210_b78b_4d99_88e2_c306a817c925); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IGPMGPO2_Vtbl { @@ -2645,11 +2535,15 @@ pub struct IGPMGPO2_Vtbl { pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGPMGPO3(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IGPMGPO3, + IGPMGPO3_Vtbl, + 0x7cf123a1_f94a_4112_bfae_6aa1db9cb248 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IGPMGPO3, ::windows_core::IUnknown, super::Com::IDispatch, IGPMGPO, IGPMGPO2); #[cfg(feature = "Win32_System_Com")] impl IGPMGPO3 { pub unsafe fn DisplayName(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -2834,16 +2728,6 @@ impl IGPMGPO3 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IGPMGPO3, ::windows_core::IUnknown, super::Com::IDispatch, IGPMGPO, IGPMGPO2); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IGPMGPO3 { - type Vtable = IGPMGPO3_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IGPMGPO3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7cf123a1_f94a_4112_bfae_6aa1db9cb248); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IGPMGPO3_Vtbl { @@ -2852,11 +2736,15 @@ pub struct IGPMGPO3_Vtbl { pub SetInfrastructureDC: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SetInfrastructureFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwflags: u32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGPMGPOCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IGPMGPOCollection, + IGPMGPOCollection_Vtbl, + 0xf0f0d5cf_70ca_4c39_9e29_b642f8726c01 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IGPMGPOCollection, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IGPMGPOCollection { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -2877,16 +2765,6 @@ impl IGPMGPOCollection { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IGPMGPOCollection, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IGPMGPOCollection { - type Vtable = IGPMGPOCollection_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IGPMGPOCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf0f0d5cf_70ca_4c39_9e29_b642f8726c01); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IGPMGPOCollection_Vtbl { @@ -2901,11 +2779,15 @@ pub struct IGPMGPOCollection_Vtbl { #[cfg(not(feature = "Win32_System_Ole"))] _NewEnum: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGPMGPOLink(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IGPMGPOLink, + IGPMGPOLink_Vtbl, + 0x434b99bd_5de7_478a_809c_c251721df70c +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IGPMGPOLink, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IGPMGPOLink { pub unsafe fn GPOID(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -2951,16 +2833,6 @@ impl IGPMGPOLink { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IGPMGPOLink, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IGPMGPOLink { - type Vtable = IGPMGPOLink_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IGPMGPOLink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x434b99bd_5de7_478a_809c_c251721df70c); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IGPMGPOLink_Vtbl { @@ -2978,11 +2850,15 @@ pub struct IGPMGPOLink_Vtbl { SOM: usize, pub Delete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGPMGPOLinksCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IGPMGPOLinksCollection, + IGPMGPOLinksCollection_Vtbl, + 0x189d7b68_16bd_4d0d_a2ec_2e6aa2288c7f +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IGPMGPOLinksCollection, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IGPMGPOLinksCollection { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -3003,16 +2879,6 @@ impl IGPMGPOLinksCollection { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IGPMGPOLinksCollection, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IGPMGPOLinksCollection { - type Vtable = IGPMGPOLinksCollection_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IGPMGPOLinksCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x189d7b68_16bd_4d0d_a2ec_2e6aa2288c7f); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IGPMGPOLinksCollection_Vtbl { @@ -3027,11 +2893,15 @@ pub struct IGPMGPOLinksCollection_Vtbl { #[cfg(not(feature = "Win32_System_Ole"))] _NewEnum: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGPMMapEntry(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IGPMMapEntry, + IGPMMapEntry_Vtbl, + 0x8e79ad06_2381_4444_be4c_ff693e6e6f2b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IGPMMapEntry, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IGPMMapEntry { pub unsafe fn Source(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -3052,16 +2922,6 @@ impl IGPMMapEntry { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IGPMMapEntry, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IGPMMapEntry { - type Vtable = IGPMMapEntry_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IGPMMapEntry { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8e79ad06_2381_4444_be4c_ff693e6e6f2b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IGPMMapEntry_Vtbl { @@ -3071,11 +2931,15 @@ pub struct IGPMMapEntry_Vtbl { pub DestinationOption: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pgpmdestoption: *mut GPMDestinationOption) -> ::windows_core::HRESULT, pub EntryType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pgpmentrytype: *mut GPMEntryType) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGPMMapEntryCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IGPMMapEntryCollection, + IGPMMapEntryCollection_Vtbl, + 0xbb0bf49b_e53f_443f_b807_8be22bfb6d42 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IGPMMapEntryCollection, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IGPMMapEntryCollection { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -3096,16 +2960,6 @@ impl IGPMMapEntryCollection { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IGPMMapEntryCollection, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IGPMMapEntryCollection { - type Vtable = IGPMMapEntryCollection_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IGPMMapEntryCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbb0bf49b_e53f_443f_b807_8be22bfb6d42); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IGPMMapEntryCollection_Vtbl { @@ -3120,11 +2974,15 @@ pub struct IGPMMapEntryCollection_Vtbl { #[cfg(not(feature = "Win32_System_Ole"))] _NewEnum: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGPMMigrationTable(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IGPMMigrationTable, + IGPMMigrationTable_Vtbl, + 0x48f823b1_efaf_470b_b6ed_40d14ee1a4ec +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IGPMMigrationTable, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IGPMMigrationTable { pub unsafe fn Save(&self, bstrmigrationtablepath: P0) -> ::windows_core::Result<()> @@ -3185,16 +3043,6 @@ impl IGPMMigrationTable { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IGPMMigrationTable, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IGPMMigrationTable { - type Vtable = IGPMMigrationTable_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IGPMMigrationTable { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x48f823b1_efaf_470b_b6ed_40d14ee1a4ec); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IGPMMigrationTable_Vtbl { @@ -3226,11 +3074,15 @@ pub struct IGPMMigrationTable_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetEntries: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGPMPermission(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IGPMPermission, + IGPMPermission_Vtbl, + 0x35ebca40_e1a1_4a02_8905_d79416fb464a +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IGPMPermission, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IGPMPermission { pub unsafe fn Inherited(&self) -> ::windows_core::Result { @@ -3257,16 +3109,6 @@ impl IGPMPermission { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IGPMPermission, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IGPMPermission { - type Vtable = IGPMPermission_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IGPMPermission { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x35ebca40_e1a1_4a02_8905_d79416fb464a); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IGPMPermission_Vtbl { @@ -3280,11 +3122,15 @@ pub struct IGPMPermission_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Trustee: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGPMRSOP(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IGPMRSOP, + IGPMRSOP_Vtbl, + 0x49ed785a_3237_4ff2_b1f0_fdf5a8d5a1ee +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IGPMRSOP, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IGPMRSOP { pub unsafe fn Mode(&self) -> ::windows_core::Result { @@ -3461,16 +3307,6 @@ impl IGPMRSOP { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IGPMRSOP, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IGPMRSOP { - type Vtable = IGPMRSOP_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IGPMRSOP { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x49ed785a_3237_4ff2_b1f0_fdf5a8d5a1ee); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IGPMRSOP_Vtbl { @@ -3544,11 +3380,15 @@ pub struct IGPMRSOP_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GenerateReportToFile: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGPMResult(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IGPMResult, + IGPMResult_Vtbl, + 0x86dff7e9_f76f_42ab_9570_cebc6be8a52d +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IGPMResult, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IGPMResult { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3568,16 +3408,6 @@ impl IGPMResult { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IGPMResult, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IGPMResult { - type Vtable = IGPMResult_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IGPMResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x86dff7e9_f76f_42ab_9570_cebc6be8a52d); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IGPMResult_Vtbl { @@ -3592,11 +3422,15 @@ pub struct IGPMResult_Vtbl { Result: usize, pub OverallStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGPMSOM(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IGPMSOM, + IGPMSOM_Vtbl, + 0xc0a7f09e_05a1_4f0c_8158_9e5c33684f6b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IGPMSOM, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IGPMSOM { pub unsafe fn GPOInheritanceBlocked(&self) -> ::windows_core::Result { @@ -3658,16 +3492,6 @@ impl IGPMSOM { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IGPMSOM, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IGPMSOM { - type Vtable = IGPMSOM_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IGPMSOM { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc0a7f09e_05a1_4f0c_8158_9e5c33684f6b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IGPMSOM_Vtbl { @@ -3698,11 +3522,15 @@ pub struct IGPMSOM_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] SetSecurityInfo: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGPMSOMCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IGPMSOMCollection, + IGPMSOMCollection_Vtbl, + 0xadc1688e_00e4_4495_abba_bed200df0cab +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IGPMSOMCollection, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IGPMSOMCollection { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -3723,16 +3551,6 @@ impl IGPMSOMCollection { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IGPMSOMCollection, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IGPMSOMCollection { - type Vtable = IGPMSOMCollection_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IGPMSOMCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xadc1688e_00e4_4495_abba_bed200df0cab); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IGPMSOMCollection_Vtbl { @@ -3747,11 +3565,15 @@ pub struct IGPMSOMCollection_Vtbl { #[cfg(not(feature = "Win32_System_Ole"))] _NewEnum: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGPMSearchCriteria(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IGPMSearchCriteria, + IGPMSearchCriteria_Vtbl, + 0xd6f11c42_829b_48d4_83f5_3615b67dfc22 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IGPMSearchCriteria, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IGPMSearchCriteria { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3761,16 +3583,6 @@ impl IGPMSearchCriteria { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IGPMSearchCriteria, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IGPMSearchCriteria { - type Vtable = IGPMSearchCriteria_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IGPMSearchCriteria { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd6f11c42_829b_48d4_83f5_3615b67dfc22); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IGPMSearchCriteria_Vtbl { @@ -3780,11 +3592,15 @@ pub struct IGPMSearchCriteria_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] Add: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGPMSecurityInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IGPMSecurityInfo, + IGPMSecurityInfo_Vtbl, + 0xb6c31ed4_1c93_4d3e_ae84_eb6d61161b60 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IGPMSecurityInfo, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IGPMSecurityInfo { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -3827,16 +3643,6 @@ impl IGPMSecurityInfo { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IGPMSecurityInfo, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IGPMSecurityInfo { - type Vtable = IGPMSecurityInfo_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IGPMSecurityInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb6c31ed4_1c93_4d3e_ae84_eb6d61161b60); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IGPMSecurityInfo_Vtbl { @@ -3860,11 +3666,15 @@ pub struct IGPMSecurityInfo_Vtbl { Remove: usize, pub RemoveTrustee: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtrustee: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGPMSitesContainer(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IGPMSitesContainer, + IGPMSitesContainer_Vtbl, + 0x4725a899_2782_4d27_a6bb_d499246ffd72 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IGPMSitesContainer, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IGPMSitesContainer { pub unsafe fn DomainController(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -3899,16 +3709,6 @@ impl IGPMSitesContainer { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IGPMSitesContainer, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IGPMSitesContainer { - type Vtable = IGPMSitesContainer_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IGPMSitesContainer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4725a899_2782_4d27_a6bb_d499246ffd72); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IGPMSitesContainer_Vtbl { @@ -3925,11 +3725,15 @@ pub struct IGPMSitesContainer_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] SearchSites: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGPMStarterGPO(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IGPMStarterGPO, + IGPMStarterGPO_Vtbl, + 0xdfc3f61b_8880_4490_9337_d29c7ba8c2f0 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IGPMStarterGPO, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IGPMStarterGPO { pub unsafe fn DisplayName(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -4047,16 +3851,6 @@ impl IGPMStarterGPO { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IGPMStarterGPO, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IGPMStarterGPO { - type Vtable = IGPMStarterGPO_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IGPMStarterGPO { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdfc3f61b_8880_4490_9337_d29c7ba8c2f0); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IGPMStarterGPO_Vtbl { @@ -4104,11 +3898,15 @@ pub struct IGPMStarterGPO_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] SetSecurityInfo: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGPMStarterGPOBackup(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IGPMStarterGPOBackup, + IGPMStarterGPOBackup_Vtbl, + 0x51d98eda_a87e_43dd_b80a_0b66ef1938d6 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IGPMStarterGPOBackup, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IGPMStarterGPOBackup { pub unsafe fn BackupDir(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -4162,16 +3960,6 @@ impl IGPMStarterGPOBackup { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IGPMStarterGPOBackup, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IGPMStarterGPOBackup { - type Vtable = IGPMStarterGPOBackup_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IGPMStarterGPOBackup { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51d98eda_a87e_43dd_b80a_0b66ef1938d6); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IGPMStarterGPOBackup_Vtbl { @@ -4194,11 +3982,15 @@ pub struct IGPMStarterGPOBackup_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GenerateReportToFile: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGPMStarterGPOBackupCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IGPMStarterGPOBackupCollection, + IGPMStarterGPOBackupCollection_Vtbl, + 0xc998031d_add0_4bb5_8dea_298505d8423b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IGPMStarterGPOBackupCollection, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IGPMStarterGPOBackupCollection { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -4219,16 +4011,6 @@ impl IGPMStarterGPOBackupCollection { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IGPMStarterGPOBackupCollection, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IGPMStarterGPOBackupCollection { - type Vtable = IGPMStarterGPOBackupCollection_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IGPMStarterGPOBackupCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc998031d_add0_4bb5_8dea_298505d8423b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IGPMStarterGPOBackupCollection_Vtbl { @@ -4243,11 +4025,15 @@ pub struct IGPMStarterGPOBackupCollection_Vtbl { #[cfg(not(feature = "Win32_System_Ole"))] _NewEnum: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGPMStarterGPOCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IGPMStarterGPOCollection, + IGPMStarterGPOCollection_Vtbl, + 0x2e522729_2219_44ad_933a_64dfd650c423 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IGPMStarterGPOCollection, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IGPMStarterGPOCollection { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -4268,16 +4054,6 @@ impl IGPMStarterGPOCollection { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IGPMStarterGPOCollection, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IGPMStarterGPOCollection { - type Vtable = IGPMStarterGPOCollection_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IGPMStarterGPOCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2e522729_2219_44ad_933a_64dfd650c423); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IGPMStarterGPOCollection_Vtbl { @@ -4292,11 +4068,15 @@ pub struct IGPMStarterGPOCollection_Vtbl { #[cfg(not(feature = "Win32_System_Ole"))] _NewEnum: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGPMStatusMessage(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IGPMStatusMessage, + IGPMStatusMessage_Vtbl, + 0x8496c22f_f3de_4a1f_8f58_603caaa93d7b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IGPMStatusMessage, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IGPMStatusMessage { pub unsafe fn ObjectPath(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -4323,16 +4103,6 @@ impl IGPMStatusMessage { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IGPMStatusMessage, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IGPMStatusMessage { - type Vtable = IGPMStatusMessage_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IGPMStatusMessage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8496c22f_f3de_4a1f_8f58_603caaa93d7b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IGPMStatusMessage_Vtbl { @@ -4344,11 +4114,15 @@ pub struct IGPMStatusMessage_Vtbl { pub OperationCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Message: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGPMStatusMsgCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IGPMStatusMsgCollection, + IGPMStatusMsgCollection_Vtbl, + 0x9b6e1af0_1a92_40f3_a59d_f36ac1f728b7 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IGPMStatusMsgCollection, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IGPMStatusMsgCollection { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -4369,16 +4143,6 @@ impl IGPMStatusMsgCollection { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IGPMStatusMsgCollection, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IGPMStatusMsgCollection { - type Vtable = IGPMStatusMsgCollection_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IGPMStatusMsgCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9b6e1af0_1a92_40f3_a59d_f36ac1f728b7); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IGPMStatusMsgCollection_Vtbl { @@ -4393,11 +4157,15 @@ pub struct IGPMStatusMsgCollection_Vtbl { #[cfg(not(feature = "Win32_System_Ole"))] _NewEnum: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGPMTrustee(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IGPMTrustee, + IGPMTrustee_Vtbl, + 0x3b466da8_c1a4_4b2a_999a_befcdd56cefb +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IGPMTrustee, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IGPMTrustee { pub unsafe fn TrusteeSid(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -4422,16 +4190,6 @@ impl IGPMTrustee { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IGPMTrustee, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IGPMTrustee { - type Vtable = IGPMTrustee_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IGPMTrustee { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3b466da8_c1a4_4b2a_999a_befcdd56cefb); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IGPMTrustee_Vtbl { @@ -4442,11 +4200,15 @@ pub struct IGPMTrustee_Vtbl { pub TrusteeDSPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub TrusteeType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lval: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGPMWMIFilter(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IGPMWMIFilter, + IGPMWMIFilter_Vtbl, + 0xef2ff9b4_3c27_459a_b979_038305cec75d +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IGPMWMIFilter, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IGPMWMIFilter { pub unsafe fn Path(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -4495,16 +4257,6 @@ impl IGPMWMIFilter { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IGPMWMIFilter, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IGPMWMIFilter { - type Vtable = IGPMWMIFilter_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IGPMWMIFilter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xef2ff9b4_3c27_459a_b979_038305cec75d); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IGPMWMIFilter_Vtbl { @@ -4527,11 +4279,15 @@ pub struct IGPMWMIFilter_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] SetSecurityInfo: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGPMWMIFilterCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IGPMWMIFilterCollection, + IGPMWMIFilterCollection_Vtbl, + 0x5782d582_1a36_4661_8a94_c3c32551945b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IGPMWMIFilterCollection, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IGPMWMIFilterCollection { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -4552,16 +4308,6 @@ impl IGPMWMIFilterCollection { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IGPMWMIFilterCollection, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IGPMWMIFilterCollection { - type Vtable = IGPMWMIFilterCollection_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IGPMWMIFilterCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5782d582_1a36_4661_8a94_c3c32551945b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IGPMWMIFilterCollection_Vtbl { @@ -4576,9 +4322,8 @@ pub struct IGPMWMIFilterCollection_Vtbl { #[cfg(not(feature = "Win32_System_Ole"))] _NewEnum: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGroupPolicyObject(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IGroupPolicyObject, IGroupPolicyObject_Vtbl, 0xea502723_a23d_11d1_a7d3_0000f87571e3); +::windows_core::imp::interface_hierarchy!(IGroupPolicyObject, ::windows_core::IUnknown); impl IGroupPolicyObject { pub unsafe fn New(&self, pszdomainname: P0, pszdisplayname: P1, dwflags: u32) -> ::windows_core::Result<()> where @@ -4656,13 +4401,6 @@ impl IGroupPolicyObject { (::windows_core::Interface::vtable(self).GetPropertySheetPages)(::windows_core::Interface::as_raw(self), hpages, upagecount).ok() } } -::windows_core::imp::interface_hierarchy!(IGroupPolicyObject, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGroupPolicyObject { - type Vtable = IGroupPolicyObject_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGroupPolicyObject { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xea502723_a23d_11d1_a7d3_0000f87571e3); -} #[repr(C)] #[doc(hidden)] pub struct IGroupPolicyObject_Vtbl { @@ -4692,9 +4430,8 @@ pub struct IGroupPolicyObject_Vtbl { #[cfg(not(feature = "Win32_UI_Controls"))] GetPropertySheetPages: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRSOPInformation(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRSOPInformation, IRSOPInformation_Vtbl, 0x9a5a81b5_d9c7_49ef_9d11_ddf50968c48d); +::windows_core::imp::interface_hierarchy!(IRSOPInformation, ::windows_core::IUnknown); impl IRSOPInformation { pub unsafe fn GetNamespace(&self, dwsection: u32, pszname: &mut [u16]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetNamespace)(::windows_core::Interface::as_raw(self), dwsection, ::core::mem::transmute(pszname.as_ptr()), pszname.len().try_into().unwrap()).ok() @@ -4712,13 +4449,6 @@ impl IRSOPInformation { (::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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IRSOPInformation, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRSOPInformation { - type Vtable = IRSOPInformation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRSOPInformation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9a5a81b5_d9c7_49ef_9d11_ddf50968c48d); -} #[repr(C)] #[doc(hidden)] pub struct IRSOPInformation_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/System/Iis/impl.rs b/crates/libs/windows/src/Windows/Win32/System/Iis/impl.rs index 838b0f2038..4ad20d35b1 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Iis/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Iis/impl.rs @@ -22,7 +22,7 @@ impl AsyncIFtpAuthenticationProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait AsyncIFtpAuthorizationProvider_Impl: Sized { @@ -55,7 +55,7 @@ impl AsyncIFtpAuthorizationProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait AsyncIFtpHomeDirectoryProvider_Impl: Sized { @@ -88,7 +88,7 @@ impl AsyncIFtpHomeDirectoryProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait AsyncIFtpLogProvider_Impl: Sized { @@ -115,7 +115,7 @@ impl AsyncIFtpLogProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait AsyncIFtpPostprocessProvider_Impl: Sized { @@ -148,7 +148,7 @@ impl AsyncIFtpPostprocessProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait AsyncIFtpPreprocessProvider_Impl: Sized { @@ -181,7 +181,7 @@ impl AsyncIFtpPreprocessProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait AsyncIFtpRoleProvider_Impl: Sized { @@ -214,7 +214,7 @@ impl AsyncIFtpRoleProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait AsyncIMSAdminBaseSinkW_Impl: Sized { @@ -255,7 +255,7 @@ impl AsyncIMSAdminBaseSinkW_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IADMEXT_Impl: Sized { @@ -289,7 +289,7 @@ impl IADMEXT_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IFtpAuthenticationProvider_Impl: Sized { @@ -306,7 +306,7 @@ impl IFtpAuthenticationProvider_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), AuthenticateUser: AuthenticateUser:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IFtpAuthorizationProvider_Impl: Sized { @@ -329,7 +329,7 @@ impl IFtpAuthorizationProvider_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetUserAccessPermission: GetUserAccessPermission:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IFtpHomeDirectoryProvider_Impl: Sized { @@ -352,7 +352,7 @@ impl IFtpHomeDirectoryProvider_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetUserHomeDirectoryData: GetUserHomeDirectoryData:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IFtpLogProvider_Impl: Sized { @@ -369,7 +369,7 @@ impl IFtpLogProvider_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Log: Log:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IFtpPostprocessProvider_Impl: Sized { @@ -392,7 +392,7 @@ impl IFtpPostprocessProvider_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), HandlePostprocess: HandlePostprocess:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IFtpPreprocessProvider_Impl: Sized { @@ -415,7 +415,7 @@ impl IFtpPreprocessProvider_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), HandlePreprocess: HandlePreprocess:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -436,7 +436,7 @@ impl IFtpProviderConstruct_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Construct: Construct:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IFtpRoleProvider_Impl: Sized { @@ -459,7 +459,7 @@ impl IFtpRoleProvider_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), IsUserInRole: IsUserInRole:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMSAdminBase2W_Impl: Sized + IMSAdminBaseW_Impl { @@ -514,7 +514,7 @@ impl IMSAdminBase2W_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IMSAdminBase3W_Impl: Sized + IMSAdminBase2W_Impl { @@ -531,7 +531,7 @@ impl IMSAdminBase3W_Vtbl { Self { base__: IMSAdminBase2W_Vtbl::new::(), GetChildPaths: GetChildPaths:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IMSAdminBaseSinkW_Impl: Sized { @@ -558,7 +558,7 @@ impl IMSAdminBaseSinkW_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMSAdminBaseW_Impl: Sized { @@ -818,7 +818,7 @@ impl IMSAdminBaseW_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMSImpExpHelpW_Impl: Sized { @@ -835,6 +835,6 @@ impl IMSImpExpHelpW_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), EnumeratePathsInFile: EnumeratePathsInFile:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 fceb7b2ee0..ba2ef9546b 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Iis/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Iis/mod.rs @@ -18,9 +18,8 @@ pub unsafe fn HttpFilterProc(pfc: *mut HTTP_FILTER_CONTEXT, notificationtype: u3 ::windows_targets::link!("rpcproxy.dll" "system" fn HttpFilterProc(pfc : *mut HTTP_FILTER_CONTEXT, notificationtype : u32, pvnotification : *mut ::core::ffi::c_void) -> u32); HttpFilterProc(pfc, notificationtype, pvnotification) } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct AsyncIFtpAuthenticationProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(AsyncIFtpAuthenticationProvider, AsyncIFtpAuthenticationProvider_Vtbl, 0xc24efb65_9f3e_4996_8fb1_ce166916bab5); +::windows_core::imp::interface_hierarchy!(AsyncIFtpAuthenticationProvider, ::windows_core::IUnknown); impl AsyncIFtpAuthenticationProvider { pub unsafe fn Begin_AuthenticateUser(&self, pszsessionid: P0, pszsitename: P1, pszusername: P2, pszpassword: P3) -> ::windows_core::Result<()> where @@ -35,13 +34,6 @@ impl AsyncIFtpAuthenticationProvider { (::windows_core::Interface::vtable(self).Finish_AuthenticateUser)(::windows_core::Interface::as_raw(self), ppszcanonicalusername, pfauthenticated).ok() } } -::windows_core::imp::interface_hierarchy!(AsyncIFtpAuthenticationProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for AsyncIFtpAuthenticationProvider { - type Vtable = AsyncIFtpAuthenticationProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AsyncIFtpAuthenticationProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc24efb65_9f3e_4996_8fb1_ce166916bab5); -} #[repr(C)] #[doc(hidden)] pub struct AsyncIFtpAuthenticationProvider_Vtbl { @@ -49,9 +41,8 @@ pub struct AsyncIFtpAuthenticationProvider_Vtbl { pub Begin_AuthenticateUser: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszsessionid: ::windows_core::PCWSTR, pszsitename: ::windows_core::PCWSTR, pszusername: ::windows_core::PCWSTR, pszpassword: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub Finish_AuthenticateUser: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppszcanonicalusername: *mut ::windows_core::PWSTR, pfauthenticated: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct AsyncIFtpAuthorizationProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(AsyncIFtpAuthorizationProvider, AsyncIFtpAuthorizationProvider_Vtbl, 0x860dc339_07e5_4a5c_9c61_8820cea012bc); +::windows_core::imp::interface_hierarchy!(AsyncIFtpAuthorizationProvider, ::windows_core::IUnknown); impl AsyncIFtpAuthorizationProvider { pub unsafe fn Begin_GetUserAccessPermission(&self, pszsessionid: P0, pszsitename: P1, pszvirtualpath: P2, pszusername: P3) -> ::windows_core::Result<()> where @@ -67,13 +58,6 @@ impl AsyncIFtpAuthorizationProvider { (::windows_core::Interface::vtable(self).Finish_GetUserAccessPermission)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(AsyncIFtpAuthorizationProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for AsyncIFtpAuthorizationProvider { - type Vtable = AsyncIFtpAuthorizationProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AsyncIFtpAuthorizationProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x860dc339_07e5_4a5c_9c61_8820cea012bc); -} #[repr(C)] #[doc(hidden)] pub struct AsyncIFtpAuthorizationProvider_Vtbl { @@ -81,9 +65,8 @@ pub struct AsyncIFtpAuthorizationProvider_Vtbl { pub Begin_GetUserAccessPermission: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszsessionid: ::windows_core::PCWSTR, pszsitename: ::windows_core::PCWSTR, pszvirtualpath: ::windows_core::PCWSTR, pszusername: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub Finish_GetUserAccessPermission: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pftpaccess: *mut FTP_ACCESS) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct AsyncIFtpHomeDirectoryProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(AsyncIFtpHomeDirectoryProvider, AsyncIFtpHomeDirectoryProvider_Vtbl, 0x73f81638_6295_42bd_a2be_4a657f7c479c); +::windows_core::imp::interface_hierarchy!(AsyncIFtpHomeDirectoryProvider, ::windows_core::IUnknown); impl AsyncIFtpHomeDirectoryProvider { pub unsafe fn Begin_GetUserHomeDirectoryData(&self, pszsessionid: P0, pszsitename: P1, pszusername: P2) -> ::windows_core::Result<()> where @@ -98,13 +81,6 @@ impl AsyncIFtpHomeDirectoryProvider { (::windows_core::Interface::vtable(self).Finish_GetUserHomeDirectoryData)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(AsyncIFtpHomeDirectoryProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for AsyncIFtpHomeDirectoryProvider { - type Vtable = AsyncIFtpHomeDirectoryProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AsyncIFtpHomeDirectoryProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x73f81638_6295_42bd_a2be_4a657f7c479c); -} #[repr(C)] #[doc(hidden)] pub struct AsyncIFtpHomeDirectoryProvider_Vtbl { @@ -112,9 +88,8 @@ pub struct AsyncIFtpHomeDirectoryProvider_Vtbl { pub Begin_GetUserHomeDirectoryData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszsessionid: ::windows_core::PCWSTR, pszsitename: ::windows_core::PCWSTR, pszusername: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub Finish_GetUserHomeDirectoryData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppszhomedirectorydata: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct AsyncIFtpLogProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(AsyncIFtpLogProvider, AsyncIFtpLogProvider_Vtbl, 0x00a0ae46_2498_48b2_95e6_df678ed7d49f); +::windows_core::imp::interface_hierarchy!(AsyncIFtpLogProvider, ::windows_core::IUnknown); impl AsyncIFtpLogProvider { pub unsafe fn Begin_Log(&self, ploggingparameters: *const LOGGING_PARAMETERS) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Begin_Log)(::windows_core::Interface::as_raw(self), ploggingparameters).ok() @@ -123,13 +98,6 @@ impl AsyncIFtpLogProvider { (::windows_core::Interface::vtable(self).Finish_Log)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(AsyncIFtpLogProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for AsyncIFtpLogProvider { - type Vtable = AsyncIFtpLogProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AsyncIFtpLogProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00a0ae46_2498_48b2_95e6_df678ed7d49f); -} #[repr(C)] #[doc(hidden)] pub struct AsyncIFtpLogProvider_Vtbl { @@ -137,9 +105,8 @@ pub struct AsyncIFtpLogProvider_Vtbl { pub Begin_Log: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ploggingparameters: *const LOGGING_PARAMETERS) -> ::windows_core::HRESULT, pub Finish_Log: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct AsyncIFtpPostprocessProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(AsyncIFtpPostprocessProvider, AsyncIFtpPostprocessProvider_Vtbl, 0xa16b2542_9694_4eb1_a564_6c2e91fdc133); +::windows_core::imp::interface_hierarchy!(AsyncIFtpPostprocessProvider, ::windows_core::IUnknown); impl AsyncIFtpPostprocessProvider { pub unsafe fn Begin_HandlePostprocess(&self, ppostprocessparameters: *const POST_PROCESS_PARAMETERS) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Begin_HandlePostprocess)(::windows_core::Interface::as_raw(self), ppostprocessparameters).ok() @@ -149,13 +116,6 @@ impl AsyncIFtpPostprocessProvider { (::windows_core::Interface::vtable(self).Finish_HandlePostprocess)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(AsyncIFtpPostprocessProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for AsyncIFtpPostprocessProvider { - type Vtable = AsyncIFtpPostprocessProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AsyncIFtpPostprocessProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa16b2542_9694_4eb1_a564_6c2e91fdc133); -} #[repr(C)] #[doc(hidden)] pub struct AsyncIFtpPostprocessProvider_Vtbl { @@ -163,9 +123,8 @@ pub struct AsyncIFtpPostprocessProvider_Vtbl { pub Begin_HandlePostprocess: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppostprocessparameters: *const POST_PROCESS_PARAMETERS) -> ::windows_core::HRESULT, pub Finish_HandlePostprocess: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pftpprocessstatus: *mut FTP_PROCESS_STATUS) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct AsyncIFtpPreprocessProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(AsyncIFtpPreprocessProvider, AsyncIFtpPreprocessProvider_Vtbl, 0x6ff5fd8f_fd8e_48b1_a3e0_bf7073db4db5); +::windows_core::imp::interface_hierarchy!(AsyncIFtpPreprocessProvider, ::windows_core::IUnknown); impl AsyncIFtpPreprocessProvider { pub unsafe fn Begin_HandlePreprocess(&self, ppreprocessparameters: *const PRE_PROCESS_PARAMETERS) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Begin_HandlePreprocess)(::windows_core::Interface::as_raw(self), ppreprocessparameters).ok() @@ -175,13 +134,6 @@ impl AsyncIFtpPreprocessProvider { (::windows_core::Interface::vtable(self).Finish_HandlePreprocess)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(AsyncIFtpPreprocessProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for AsyncIFtpPreprocessProvider { - type Vtable = AsyncIFtpPreprocessProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AsyncIFtpPreprocessProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6ff5fd8f_fd8e_48b1_a3e0_bf7073db4db5); -} #[repr(C)] #[doc(hidden)] pub struct AsyncIFtpPreprocessProvider_Vtbl { @@ -189,9 +141,8 @@ pub struct AsyncIFtpPreprocessProvider_Vtbl { pub Begin_HandlePreprocess: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppreprocessparameters: *const PRE_PROCESS_PARAMETERS) -> ::windows_core::HRESULT, pub Finish_HandlePreprocess: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pftpprocessstatus: *mut FTP_PROCESS_STATUS) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct AsyncIFtpRoleProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(AsyncIFtpRoleProvider, AsyncIFtpRoleProvider_Vtbl, 0x3e83bf99_70ec_41ca_84b6_aca7c7a62caf); +::windows_core::imp::interface_hierarchy!(AsyncIFtpRoleProvider, ::windows_core::IUnknown); impl AsyncIFtpRoleProvider { pub unsafe fn Begin_IsUserInRole(&self, pszsessionid: P0, pszsitename: P1, pszusername: P2, pszrole: P3) -> ::windows_core::Result<()> where @@ -207,13 +158,6 @@ impl AsyncIFtpRoleProvider { (::windows_core::Interface::vtable(self).Finish_IsUserInRole)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(AsyncIFtpRoleProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for AsyncIFtpRoleProvider { - type Vtable = AsyncIFtpRoleProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AsyncIFtpRoleProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3e83bf99_70ec_41ca_84b6_aca7c7a62caf); -} #[repr(C)] #[doc(hidden)] pub struct AsyncIFtpRoleProvider_Vtbl { @@ -221,9 +165,8 @@ pub struct AsyncIFtpRoleProvider_Vtbl { pub Begin_IsUserInRole: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszsessionid: ::windows_core::PCWSTR, pszsitename: ::windows_core::PCWSTR, pszusername: ::windows_core::PCWSTR, pszrole: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub Finish_IsUserInRole: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfisinrole: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct AsyncIMSAdminBaseSinkW(::windows_core::IUnknown); +::windows_core::imp::com_interface!(AsyncIMSAdminBaseSinkW, AsyncIMSAdminBaseSinkW_Vtbl, 0xa9e69613_b80d_11d0_b9b9_00a0c922e750); +::windows_core::imp::interface_hierarchy!(AsyncIMSAdminBaseSinkW, ::windows_core::IUnknown); impl AsyncIMSAdminBaseSinkW { pub unsafe fn Begin_SinkNotify(&self, pcochangelist: &[MD_CHANGE_OBJECT_W]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Begin_SinkNotify)(::windows_core::Interface::as_raw(self), pcochangelist.len().try_into().unwrap(), ::core::mem::transmute(pcochangelist.as_ptr())).ok() @@ -238,13 +181,6 @@ impl AsyncIMSAdminBaseSinkW { (::windows_core::Interface::vtable(self).Finish_ShutdownNotify)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(AsyncIMSAdminBaseSinkW, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for AsyncIMSAdminBaseSinkW { - type Vtable = AsyncIMSAdminBaseSinkW_Vtbl; -} -unsafe impl ::windows_core::ComInterface for AsyncIMSAdminBaseSinkW { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa9e69613_b80d_11d0_b9b9_00a0c922e750); -} #[repr(C)] #[doc(hidden)] pub struct AsyncIMSAdminBaseSinkW_Vtbl { @@ -254,9 +190,8 @@ pub struct AsyncIMSAdminBaseSinkW_Vtbl { pub Begin_ShutdownNotify: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Finish_ShutdownNotify: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IADMEXT(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IADMEXT, IADMEXT_Vtbl, 0x51dfe970_f6f2_11d0_b9bd_00a0c922e750); +::windows_core::imp::interface_hierarchy!(IADMEXT, ::windows_core::IUnknown); impl IADMEXT { pub unsafe fn Initialize(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Initialize)(::windows_core::Interface::as_raw(self)).ok() @@ -268,13 +203,6 @@ impl IADMEXT { (::windows_core::Interface::vtable(self).Terminate)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IADMEXT, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IADMEXT { - type Vtable = IADMEXT_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IADMEXT { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51dfe970_f6f2_11d0_b9bd_00a0c922e750); -} #[repr(C)] #[doc(hidden)] pub struct IADMEXT_Vtbl { @@ -283,9 +211,8 @@ pub struct IADMEXT_Vtbl { pub EnumDcomCLSIDs: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pclsiddcom: *mut ::windows_core::GUID, dwenumindex: u32) -> ::windows_core::HRESULT, pub Terminate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFtpAuthenticationProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFtpAuthenticationProvider, IFtpAuthenticationProvider_Vtbl, 0x4659f95c_d5a8_4707_b2fc_6fd5794246cf); +::windows_core::imp::interface_hierarchy!(IFtpAuthenticationProvider, ::windows_core::IUnknown); 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 @@ -297,22 +224,14 @@ impl IFtpAuthenticationProvider { (::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::imp::interface_hierarchy!(IFtpAuthenticationProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFtpAuthenticationProvider { - type Vtable = IFtpAuthenticationProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFtpAuthenticationProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4659f95c_d5a8_4707_b2fc_6fd5794246cf); -} #[repr(C)] #[doc(hidden)] pub struct IFtpAuthenticationProvider_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub AuthenticateUser: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszsessionid: ::windows_core::PCWSTR, pszsitename: ::windows_core::PCWSTR, pszusername: ::windows_core::PCWSTR, pszpassword: ::windows_core::PCWSTR, ppszcanonicalusername: *mut ::windows_core::PWSTR, pfauthenticated: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFtpAuthorizationProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFtpAuthorizationProvider, IFtpAuthorizationProvider_Vtbl, 0xa50ae7a1_a35a_42b4_a4f3_f4f7057a05d1); +::windows_core::imp::interface_hierarchy!(IFtpAuthorizationProvider, ::windows_core::IUnknown); impl IFtpAuthorizationProvider { pub unsafe fn GetUserAccessPermission(&self, pszsessionid: P0, pszsitename: P1, pszvirtualpath: P2, pszusername: P3) -> ::windows_core::Result where @@ -325,22 +244,14 @@ impl IFtpAuthorizationProvider { (::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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IFtpAuthorizationProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFtpAuthorizationProvider { - type Vtable = IFtpAuthorizationProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFtpAuthorizationProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa50ae7a1_a35a_42b4_a4f3_f4f7057a05d1); -} #[repr(C)] #[doc(hidden)] pub struct IFtpAuthorizationProvider_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetUserAccessPermission: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszsessionid: ::windows_core::PCWSTR, pszsitename: ::windows_core::PCWSTR, pszvirtualpath: ::windows_core::PCWSTR, pszusername: ::windows_core::PCWSTR, pftpaccess: *mut FTP_ACCESS) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFtpHomeDirectoryProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFtpHomeDirectoryProvider, IFtpHomeDirectoryProvider_Vtbl, 0x0933b392_18dd_4097_8b9c_83325c35d9a6); +::windows_core::imp::interface_hierarchy!(IFtpHomeDirectoryProvider, ::windows_core::IUnknown); impl IFtpHomeDirectoryProvider { pub unsafe fn GetUserHomeDirectoryData(&self, pszsessionid: P0, pszsitename: P1, pszusername: P2) -> ::windows_core::Result<::windows_core::PWSTR> where @@ -352,87 +263,55 @@ impl IFtpHomeDirectoryProvider { (::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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IFtpHomeDirectoryProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFtpHomeDirectoryProvider { - type Vtable = IFtpHomeDirectoryProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFtpHomeDirectoryProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0933b392_18dd_4097_8b9c_83325c35d9a6); -} #[repr(C)] #[doc(hidden)] pub struct IFtpHomeDirectoryProvider_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetUserHomeDirectoryData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszsessionid: ::windows_core::PCWSTR, pszsitename: ::windows_core::PCWSTR, pszusername: ::windows_core::PCWSTR, ppszhomedirectorydata: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFtpLogProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFtpLogProvider, IFtpLogProvider_Vtbl, 0xa18a94cc_8299_4408_816c_7c3baca1a40e); +::windows_core::imp::interface_hierarchy!(IFtpLogProvider, ::windows_core::IUnknown); impl IFtpLogProvider { pub unsafe fn Log(&self, ploggingparameters: *const LOGGING_PARAMETERS) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Log)(::windows_core::Interface::as_raw(self), ploggingparameters).ok() } } -::windows_core::imp::interface_hierarchy!(IFtpLogProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFtpLogProvider { - type Vtable = IFtpLogProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFtpLogProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa18a94cc_8299_4408_816c_7c3baca1a40e); -} #[repr(C)] #[doc(hidden)] pub struct IFtpLogProvider_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Log: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ploggingparameters: *const LOGGING_PARAMETERS) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFtpPostprocessProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFtpPostprocessProvider, IFtpPostprocessProvider_Vtbl, 0x4522cbc6_16cd_49ad_8653_9a2c579e4280); +::windows_core::imp::interface_hierarchy!(IFtpPostprocessProvider, ::windows_core::IUnknown); impl IFtpPostprocessProvider { pub unsafe fn HandlePostprocess(&self, ppostprocessparameters: *const POST_PROCESS_PARAMETERS) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).HandlePostprocess)(::windows_core::Interface::as_raw(self), ppostprocessparameters, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IFtpPostprocessProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFtpPostprocessProvider { - type Vtable = IFtpPostprocessProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFtpPostprocessProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4522cbc6_16cd_49ad_8653_9a2c579e4280); -} #[repr(C)] #[doc(hidden)] pub struct IFtpPostprocessProvider_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub HandlePostprocess: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppostprocessparameters: *const POST_PROCESS_PARAMETERS, pftpprocessstatus: *mut FTP_PROCESS_STATUS) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFtpPreprocessProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFtpPreprocessProvider, IFtpPreprocessProvider_Vtbl, 0xa3c19b60_5a28_471a_8f93_ab30411cee82); +::windows_core::imp::interface_hierarchy!(IFtpPreprocessProvider, ::windows_core::IUnknown); impl IFtpPreprocessProvider { pub unsafe fn HandlePreprocess(&self, ppreprocessparameters: *const PRE_PROCESS_PARAMETERS) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).HandlePreprocess)(::windows_core::Interface::as_raw(self), ppreprocessparameters, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IFtpPreprocessProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFtpPreprocessProvider { - type Vtable = IFtpPreprocessProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFtpPreprocessProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa3c19b60_5a28_471a_8f93_ab30411cee82); -} #[repr(C)] #[doc(hidden)] pub struct IFtpPreprocessProvider_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub HandlePreprocess: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppreprocessparameters: *const PRE_PROCESS_PARAMETERS, pftpprocessstatus: *mut FTP_PROCESS_STATUS) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFtpProviderConstruct(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFtpProviderConstruct, IFtpProviderConstruct_Vtbl, 0x4d1a3f7b_412d_447c_b199_64f967e9a2da); +::windows_core::imp::interface_hierarchy!(IFtpProviderConstruct, ::windows_core::IUnknown); impl IFtpProviderConstruct { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -440,13 +319,6 @@ impl IFtpProviderConstruct { (::windows_core::Interface::vtable(self).Construct)(::windows_core::Interface::as_raw(self), configurationentries).ok() } } -::windows_core::imp::interface_hierarchy!(IFtpProviderConstruct, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFtpProviderConstruct { - type Vtable = IFtpProviderConstruct_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFtpProviderConstruct { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4d1a3f7b_412d_447c_b199_64f967e9a2da); -} #[repr(C)] #[doc(hidden)] pub struct IFtpProviderConstruct_Vtbl { @@ -456,9 +328,8 @@ pub struct IFtpProviderConstruct_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Construct: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFtpRoleProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFtpRoleProvider, IFtpRoleProvider_Vtbl, 0x909c850d_8ca0_4674_96b8_cc2941535725); +::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 @@ -471,22 +342,14 @@ impl IFtpRoleProvider { (::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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IFtpRoleProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFtpRoleProvider { - type Vtable = IFtpRoleProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFtpRoleProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x909c850d_8ca0_4674_96b8_cc2941535725); -} #[repr(C)] #[doc(hidden)] pub struct IFtpRoleProvider_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub IsUserInRole: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszsessionid: ::windows_core::PCWSTR, pszsitename: ::windows_core::PCWSTR, pszusername: ::windows_core::PCWSTR, pszrole: ::windows_core::PCWSTR, pfisinrole: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSAdminBase2W(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMSAdminBase2W, IMSAdminBase2W_Vtbl, 0x8298d101_f992_43b7_8eca_5052d885b995); +::windows_core::imp::interface_hierarchy!(IMSAdminBase2W, ::windows_core::IUnknown, IMSAdminBaseW); impl IMSAdminBase2W { pub unsafe fn AddKey(&self, hmdhandle: u32, pszmdpath: P0) -> ::windows_core::Result<()> where @@ -698,13 +561,6 @@ impl IMSAdminBase2W { (::windows_core::Interface::vtable(self).EnumHistory)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pszmdhistorylocation.as_ptr()), pdwmdmajorversion, pdwmdminorversion, pftmdhistorytime, dwmdenumindex).ok() } } -::windows_core::imp::interface_hierarchy!(IMSAdminBase2W, ::windows_core::IUnknown, IMSAdminBaseW); -unsafe impl ::windows_core::Interface for IMSAdminBase2W { - type Vtable = IMSAdminBase2W_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMSAdminBase2W { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8298d101_f992_43b7_8eca_5052d885b995); -} #[repr(C)] #[doc(hidden)] pub struct IMSAdminBase2W_Vtbl { @@ -716,9 +572,8 @@ pub struct IMSAdminBase2W_Vtbl { pub RestoreHistory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszmdhistorylocation: ::windows_core::PCWSTR, dwmdmajorversion: u32, dwmdminorversion: u32, dwmdflags: u32) -> ::windows_core::HRESULT, pub EnumHistory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszmdhistorylocation: ::windows_core::PWSTR, pdwmdmajorversion: *mut u32, pdwmdminorversion: *mut u32, pftmdhistorytime: *mut super::super::Foundation::FILETIME, dwmdenumindex: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSAdminBase3W(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMSAdminBase3W, IMSAdminBase3W_Vtbl, 0xf612954d_3b0b_4c56_9563_227b7be624b4); +::windows_core::imp::interface_hierarchy!(IMSAdminBase3W, ::windows_core::IUnknown, IMSAdminBaseW, IMSAdminBase2W); impl IMSAdminBase3W { pub unsafe fn AddKey(&self, hmdhandle: u32, pszmdpath: P0) -> ::windows_core::Result<()> where @@ -936,22 +791,14 @@ impl IMSAdminBase3W { (::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::imp::interface_hierarchy!(IMSAdminBase3W, ::windows_core::IUnknown, IMSAdminBaseW, IMSAdminBase2W); -unsafe impl ::windows_core::Interface for IMSAdminBase3W { - type Vtable = IMSAdminBase3W_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMSAdminBase3W { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf612954d_3b0b_4c56_9563_227b7be624b4); -} #[repr(C)] #[doc(hidden)] pub struct IMSAdminBase3W_Vtbl { pub base__: IMSAdminBase2W_Vtbl, pub GetChildPaths: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hmdhandle: u32, pszmdpath: ::windows_core::PCWSTR, cchmdbuffersize: u32, pszbuffer: ::windows_core::PWSTR, pcchmdrequiredbuffersize: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSAdminBaseSinkW(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMSAdminBaseSinkW, IMSAdminBaseSinkW_Vtbl, 0xa9e69612_b80d_11d0_b9b9_00a0c922e750); +::windows_core::imp::interface_hierarchy!(IMSAdminBaseSinkW, ::windows_core::IUnknown); impl IMSAdminBaseSinkW { pub unsafe fn SinkNotify(&self, pcochangelist: &[MD_CHANGE_OBJECT_W]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SinkNotify)(::windows_core::Interface::as_raw(self), pcochangelist.len().try_into().unwrap(), ::core::mem::transmute(pcochangelist.as_ptr())).ok() @@ -960,13 +807,6 @@ impl IMSAdminBaseSinkW { (::windows_core::Interface::vtable(self).ShutdownNotify)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IMSAdminBaseSinkW, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMSAdminBaseSinkW { - type Vtable = IMSAdminBaseSinkW_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMSAdminBaseSinkW { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa9e69612_b80d_11d0_b9b9_00a0c922e750); -} #[repr(C)] #[doc(hidden)] pub struct IMSAdminBaseSinkW_Vtbl { @@ -974,9 +814,8 @@ pub struct IMSAdminBaseSinkW_Vtbl { pub SinkNotify: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwmdnumelements: u32, pcochangelist: *const MD_CHANGE_OBJECT_W) -> ::windows_core::HRESULT, pub ShutdownNotify: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSAdminBaseW(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMSAdminBaseW, IMSAdminBaseW_Vtbl, 0x70b51430_b6ca_11d0_b9b9_00a0c922e750); +::windows_core::imp::interface_hierarchy!(IMSAdminBaseW, ::windows_core::IUnknown); impl IMSAdminBaseW { pub unsafe fn AddKey(&self, hmdhandle: u32, pszmdpath: P0) -> ::windows_core::Result<()> where @@ -1148,13 +987,6 @@ impl IMSAdminBaseW { (::windows_core::Interface::vtable(self).GetServerGuid)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IMSAdminBaseW, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMSAdminBaseW { - type Vtable = IMSAdminBaseW_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMSAdminBaseW { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x70b51430_b6ca_11d0_b9b9_00a0c922e750); -} #[repr(C)] #[doc(hidden)] pub struct IMSAdminBaseW_Vtbl { @@ -1191,9 +1023,8 @@ pub struct IMSAdminBaseW_Vtbl { pub UnmarshalInterface: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, piadmbwinterface: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetServerGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSImpExpHelpW(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMSImpExpHelpW, IMSImpExpHelpW_Vtbl, 0x29ff67ff_8050_480f_9f30_cc41635f2f9d); +::windows_core::imp::interface_hierarchy!(IMSImpExpHelpW, ::windows_core::IUnknown); impl IMSImpExpHelpW { pub unsafe fn EnumeratePathsInFile(&self, pszfilename: P0, pszkeytype: P1, pszbuffer: ::core::option::Option<&mut [u16]>, pdwmdrequiredbuffersize: *mut u32) -> ::windows_core::Result<()> where @@ -1203,13 +1034,6 @@ impl IMSImpExpHelpW { (::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::imp::interface_hierarchy!(IMSImpExpHelpW, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMSImpExpHelpW { - type Vtable = IMSImpExpHelpW_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMSImpExpHelpW { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x29ff67ff_8050_480f_9f30_cc41635f2f9d); -} #[repr(C)] #[doc(hidden)] pub struct IMSImpExpHelpW_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/System/MessageQueuing/impl.rs b/crates/libs/windows/src/Windows/Win32/System/MessageQueuing/impl.rs index cc0f26b0d8..d724c5d6c1 100644 --- a/crates/libs/windows/src/Windows/Win32/System/MessageQueuing/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/MessageQueuing/impl.rs @@ -22,7 +22,7 @@ impl IMSMQApplication_Vtbl { Self { base__: super::Com::IDispatch_Vtbl::new::(), MachineIdOfMachineName: MachineIdOfMachineName:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -124,7 +124,7 @@ impl IMSMQApplication2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -247,7 +247,7 @@ impl IMSMQApplication3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -303,7 +303,7 @@ impl IMSMQCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -330,7 +330,7 @@ impl IMSMQCoordinatedTransactionDispenser_Vtbl { Self { base__: super::Com::IDispatch_Vtbl::new::(), BeginTransaction: BeginTransaction:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -373,7 +373,7 @@ impl IMSMQCoordinatedTransactionDispenser2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -416,7 +416,7 @@ impl IMSMQCoordinatedTransactionDispenser3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -573,7 +573,7 @@ impl IMSMQDestination_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -587,7 +587,7 @@ impl IMSMQEvent_Vtbl { Self { base__: super::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -614,7 +614,7 @@ impl IMSMQEvent2_Vtbl { Self { base__: IMSMQEvent_Vtbl::new::(), Properties: Properties:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -628,7 +628,7 @@ impl IMSMQEvent3_Vtbl { Self { base__: IMSMQEvent2_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -756,7 +756,7 @@ impl IMSMQManagement_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1284,7 +1284,7 @@ impl IMSMQMessage_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2090,7 +2090,7 @@ impl IMSMQMessage2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3068,7 +3068,7 @@ impl IMSMQMessage3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4046,7 +4046,7 @@ impl IMSMQMessage4_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4123,7 +4123,7 @@ impl IMSMQOutgoingQueueManagement_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4160,7 +4160,7 @@ impl IMSMQPrivateDestination_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4204,7 +4204,7 @@ impl IMSMQPrivateEvent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4231,7 +4231,7 @@ impl IMSMQQuery_Vtbl { Self { base__: super::Com::IDispatch_Vtbl::new::(), LookupQueue: LookupQueue:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4274,7 +4274,7 @@ impl IMSMQQuery2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4342,7 +4342,7 @@ impl IMSMQQuery3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4410,7 +4410,7 @@ impl IMSMQQuery4_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4578,7 +4578,7 @@ impl IMSMQQueue_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4824,7 +4824,7 @@ impl IMSMQQueue2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5233,7 +5233,7 @@ impl IMSMQQueue3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5655,7 +5655,7 @@ impl IMSMQQueue4_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5978,7 +5978,7 @@ impl IMSMQQueueInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6347,7 +6347,7 @@ impl IMSMQQueueInfo2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6775,7 +6775,7 @@ impl IMSMQQueueInfo3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -7203,7 +7203,7 @@ impl IMSMQQueueInfo4_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -7240,7 +7240,7 @@ impl IMSMQQueueInfos_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -7290,7 +7290,7 @@ impl IMSMQQueueInfos2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -7340,7 +7340,7 @@ impl IMSMQQueueInfos3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -7390,7 +7390,7 @@ impl IMSMQQueueInfos4_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -7446,7 +7446,7 @@ impl IMSMQQueueManagement_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -7490,7 +7490,7 @@ impl IMSMQTransaction_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -7527,7 +7527,7 @@ impl IMSMQTransaction2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -7554,7 +7554,7 @@ impl IMSMQTransaction3_Vtbl { Self { base__: IMSMQTransaction2_Vtbl::new::(), ITransaction: ITransaction:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -7581,7 +7581,7 @@ impl IMSMQTransactionDispenser_Vtbl { Self { base__: super::Com::IDispatch_Vtbl::new::(), BeginTransaction: BeginTransaction:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -7624,7 +7624,7 @@ impl IMSMQTransactionDispenser2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -7667,7 +7667,7 @@ impl IMSMQTransactionDispenser3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -7681,6 +7681,6 @@ impl _DMSMQEventEvents_Vtbl { Self { base__: super::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &<_DMSMQEventEvents as ::windows_core::ComInterface>::IID || iid == &::IID + iid == &<_DMSMQEventEvents as ::windows_core::Interface>::IID || iid == &::IID } } 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 3dfb72bf0d..0c569001a9 100644 --- a/crates/libs/windows/src/Windows/Win32/System/MessageQueuing/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/MessageQueuing/mod.rs @@ -280,11 +280,15 @@ where ::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() } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSMQApplication(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSMQApplication, + IMSMQApplication_Vtbl, + 0xd7d6e085_dccd_11d0_aa4b_0060970debae +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSMQApplication, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMSMQApplication { pub unsafe fn MachineIdOfMachineName(&self, machinename: P0) -> ::windows_core::Result<::windows_core::BSTR> @@ -296,27 +300,21 @@ impl IMSMQApplication { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSMQApplication, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSMQApplication { - type Vtable = IMSMQApplication_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSMQApplication { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd7d6e085_dccd_11d0_aa4b_0060970debae); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSMQApplication_Vtbl { pub base__: super::Com::IDispatch_Vtbl, pub MachineIdOfMachineName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, machinename: ::std::mem::MaybeUninit<::windows_core::BSTR>, pbstrguid: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSMQApplication2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSMQApplication2, + IMSMQApplication2_Vtbl, + 0x12a30900_7300_11d2_b0e6_00e02c074f6b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSMQApplication2, ::windows_core::IUnknown, super::Com::IDispatch, IMSMQApplication); #[cfg(feature = "Win32_System_Com")] impl IMSMQApplication2 { pub unsafe fn MachineIdOfMachineName(&self, machinename: P0) -> ::windows_core::Result<::windows_core::BSTR> @@ -362,16 +360,6 @@ impl IMSMQApplication2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSMQApplication2, ::windows_core::IUnknown, super::Com::IDispatch, IMSMQApplication); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSMQApplication2 { - type Vtable = IMSMQApplication2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSMQApplication2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x12a30900_7300_11d2_b0e6_00e02c074f6b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSMQApplication2_Vtbl { @@ -390,11 +378,15 @@ pub struct IMSMQApplication2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Properties: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSMQApplication3(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSMQApplication3, + IMSMQApplication3_Vtbl, + 0xeba96b1f_2168_11d3_898c_00e02c074f6b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSMQApplication3, ::windows_core::IUnknown, super::Com::IDispatch, IMSMQApplication, IMSMQApplication2); #[cfg(feature = "Win32_System_Com")] impl IMSMQApplication3 { pub unsafe fn MachineIdOfMachineName(&self, machinename: P0) -> ::windows_core::Result<::windows_core::BSTR> @@ -485,16 +477,6 @@ impl IMSMQApplication3 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSMQApplication3, ::windows_core::IUnknown, super::Com::IDispatch, IMSMQApplication, IMSMQApplication2); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSMQApplication3 { - type Vtable = IMSMQApplication3_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSMQApplication3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeba96b1f_2168_11d3_898c_00e02c074f6b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSMQApplication3_Vtbl { @@ -519,11 +501,15 @@ pub struct IMSMQApplication3_Vtbl { pub Disconnect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Tidy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSMQCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSMQCollection, + IMSMQCollection_Vtbl, + 0x0188ac2f_ecb3_4173_9779_635ca2039c72 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSMQCollection, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMSMQCollection { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -542,16 +528,6 @@ impl IMSMQCollection { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSMQCollection, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSMQCollection { - type Vtable = IMSMQCollection_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSMQCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0188ac2f_ecb3_4173_9779_635ca2039c72); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSMQCollection_Vtbl { @@ -563,11 +539,15 @@ pub struct IMSMQCollection_Vtbl { pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcount: *mut i32) -> ::windows_core::HRESULT, pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppunk: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSMQCoordinatedTransactionDispenser(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSMQCoordinatedTransactionDispenser, + IMSMQCoordinatedTransactionDispenser_Vtbl, + 0xd7d6e081_dccd_11d0_aa4b_0060970debae +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSMQCoordinatedTransactionDispenser, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMSMQCoordinatedTransactionDispenser { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -578,16 +558,6 @@ impl IMSMQCoordinatedTransactionDispenser { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSMQCoordinatedTransactionDispenser, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSMQCoordinatedTransactionDispenser { - type Vtable = IMSMQCoordinatedTransactionDispenser_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSMQCoordinatedTransactionDispenser { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd7d6e081_dccd_11d0_aa4b_0060970debae); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSMQCoordinatedTransactionDispenser_Vtbl { @@ -597,11 +567,15 @@ pub struct IMSMQCoordinatedTransactionDispenser_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] BeginTransaction: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSMQCoordinatedTransactionDispenser2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSMQCoordinatedTransactionDispenser2, + IMSMQCoordinatedTransactionDispenser2_Vtbl, + 0xeba96b10_2168_11d3_898c_00e02c074f6b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSMQCoordinatedTransactionDispenser2, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMSMQCoordinatedTransactionDispenser2 { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -618,16 +592,6 @@ impl IMSMQCoordinatedTransactionDispenser2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSMQCoordinatedTransactionDispenser2, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSMQCoordinatedTransactionDispenser2 { - type Vtable = IMSMQCoordinatedTransactionDispenser2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSMQCoordinatedTransactionDispenser2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeba96b10_2168_11d3_898c_00e02c074f6b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSMQCoordinatedTransactionDispenser2_Vtbl { @@ -641,11 +605,15 @@ pub struct IMSMQCoordinatedTransactionDispenser2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Properties: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSMQCoordinatedTransactionDispenser3(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSMQCoordinatedTransactionDispenser3, + IMSMQCoordinatedTransactionDispenser3_Vtbl, + 0xeba96b14_2168_11d3_898c_00e02c074f6b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSMQCoordinatedTransactionDispenser3, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMSMQCoordinatedTransactionDispenser3 { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -662,16 +630,6 @@ impl IMSMQCoordinatedTransactionDispenser3 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSMQCoordinatedTransactionDispenser3, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSMQCoordinatedTransactionDispenser3 { - type Vtable = IMSMQCoordinatedTransactionDispenser3_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSMQCoordinatedTransactionDispenser3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeba96b14_2168_11d3_898c_00e02c074f6b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSMQCoordinatedTransactionDispenser3_Vtbl { @@ -685,11 +643,15 @@ pub struct IMSMQCoordinatedTransactionDispenser3_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Properties: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSMQDestination(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSMQDestination, + IMSMQDestination_Vtbl, + 0xeba96b16_2168_11d3_898c_00e02c074f6b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSMQDestination, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMSMQDestination { pub unsafe fn Open(&self) -> ::windows_core::Result<()> { @@ -768,16 +730,6 @@ impl IMSMQDestination { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSMQDestination, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSMQDestination { - type Vtable = IMSMQDestination_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSMQDestination { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeba96b16_2168_11d3_898c_00e02c074f6b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSMQDestination_Vtbl { @@ -812,34 +764,32 @@ pub struct IMSMQDestination_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Properties: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSMQEvent(::windows_core::IUnknown); -#[cfg(feature = "Win32_System_Com")] -impl IMSMQEvent {} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSMQEvent, + IMSMQEvent_Vtbl, + 0xd7d6e077_dccd_11d0_aa4b_0060970debae +); #[cfg(feature = "Win32_System_Com")] ::windows_core::imp::interface_hierarchy!(IMSMQEvent, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSMQEvent { - type Vtable = IMSMQEvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSMQEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd7d6e077_dccd_11d0_aa4b_0060970debae); -} +impl IMSMQEvent {} #[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSMQEvent_Vtbl { pub base__: super::Com::IDispatch_Vtbl, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSMQEvent2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSMQEvent2, + IMSMQEvent2_Vtbl, + 0xeba96b12_2168_11d3_898c_00e02c074f6b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSMQEvent2, ::windows_core::IUnknown, super::Com::IDispatch, IMSMQEvent); #[cfg(feature = "Win32_System_Com")] impl IMSMQEvent2 { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -850,16 +800,6 @@ impl IMSMQEvent2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSMQEvent2, ::windows_core::IUnknown, super::Com::IDispatch, IMSMQEvent); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSMQEvent2 { - type Vtable = IMSMQEvent2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSMQEvent2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeba96b12_2168_11d3_898c_00e02c074f6b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSMQEvent2_Vtbl { @@ -869,11 +809,15 @@ pub struct IMSMQEvent2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Properties: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSMQEvent3(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSMQEvent3, + IMSMQEvent3_Vtbl, + 0xeba96b1c_2168_11d3_898c_00e02c074f6b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSMQEvent3, ::windows_core::IUnknown, super::Com::IDispatch, IMSMQEvent, IMSMQEvent2); #[cfg(feature = "Win32_System_Com")] impl IMSMQEvent3 { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -884,26 +828,20 @@ impl IMSMQEvent3 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSMQEvent3, ::windows_core::IUnknown, super::Com::IDispatch, IMSMQEvent, IMSMQEvent2); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSMQEvent3 { - type Vtable = IMSMQEvent3_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSMQEvent3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeba96b1c_2168_11d3_898c_00e02c074f6b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSMQEvent3_Vtbl { pub base__: IMSMQEvent2_Vtbl, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSMQManagement(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSMQManagement, + IMSMQManagement_Vtbl, + 0xbe5f0241_e489_4957_8cc4_a452fcf3e23e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSMQManagement, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMSMQManagement { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -947,16 +885,6 @@ impl IMSMQManagement { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSMQManagement, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSMQManagement { - type Vtable = IMSMQManagement_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSMQManagement { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbe5f0241_e489_4957_8cc4_a452fcf3e23e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSMQManagement_Vtbl { @@ -977,11 +905,15 @@ pub struct IMSMQManagement_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] BytesInQueue: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSMQMessage(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSMQMessage, + IMSMQMessage_Vtbl, + 0xd7d6e074_dccd_11d0_aa4b_0060970debae +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSMQMessage, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMSMQMessage { pub unsafe fn Class(&self) -> ::windows_core::Result { @@ -1205,16 +1137,6 @@ impl IMSMQMessage { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSMQMessage, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSMQMessage { - type Vtable = IMSMQMessage_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSMQMessage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd7d6e074_dccd_11d0_aa4b_0060970debae); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSMQMessage_Vtbl { @@ -1317,11 +1239,15 @@ pub struct IMSMQMessage_Vtbl { Send: usize, pub AttachCurrentSecurityContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSMQMessage2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSMQMessage2, + IMSMQMessage2_Vtbl, + 0xd9933be0_a567_11d2_b0f3_00e02c074f6b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSMQMessage2, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMSMQMessage2 { pub unsafe fn Class(&self) -> ::windows_core::Result { @@ -1679,16 +1605,6 @@ impl IMSMQMessage2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSMQMessage2, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSMQMessage2 { - type Vtable = IMSMQMessage2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSMQMessage2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd9933be0_a567_11d2_b0f3_00e02c074f6b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSMQMessage2_Vtbl { @@ -1859,11 +1775,15 @@ pub struct IMSMQMessage2_Vtbl { putref_AdminQueueInfo: usize, pub ReceivedAuthenticationLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psreceivedauthenticationlevel: *mut i16) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSMQMessage3(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSMQMessage3, + IMSMQMessage3_Vtbl, + 0xeba96b1a_2168_11d3_898c_00e02c074f6b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSMQMessage3, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMSMQMessage3 { pub unsafe fn Class(&self) -> ::windows_core::Result { @@ -2312,16 +2232,6 @@ impl IMSMQMessage3 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSMQMessage3, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSMQMessage3 { - type Vtable = IMSMQMessage3_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSMQMessage3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeba96b1a_2168_11d3_898c_00e02c074f6b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSMQMessage3_Vtbl { @@ -2535,11 +2445,15 @@ pub struct IMSMQMessage3_Vtbl { pub SetSoapHeader: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsoapheader: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SetSoapBody: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsoapbody: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSMQMessage4(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSMQMessage4, + IMSMQMessage4_Vtbl, + 0xeba96b23_2168_11d3_898c_00e02c074f6b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSMQMessage4, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMSMQMessage4 { pub unsafe fn Class(&self) -> ::windows_core::Result { @@ -2988,16 +2902,6 @@ impl IMSMQMessage4 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSMQMessage4, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSMQMessage4 { - type Vtable = IMSMQMessage4_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSMQMessage4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeba96b23_2168_11d3_898c_00e02c074f6b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSMQMessage4_Vtbl { @@ -3211,11 +3115,15 @@ pub struct IMSMQMessage4_Vtbl { pub SetSoapHeader: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsoapheader: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SetSoapBody: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsoapbody: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSMQOutgoingQueueManagement(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSMQOutgoingQueueManagement, + IMSMQOutgoingQueueManagement_Vtbl, + 0x64c478fb_f9b0_4695_8a7f_439ac94326d3 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSMQOutgoingQueueManagement, ::windows_core::IUnknown, super::Com::IDispatch, IMSMQManagement); #[cfg(feature = "Win32_System_Com")] impl IMSMQOutgoingQueueManagement { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3284,16 +3192,6 @@ impl IMSMQOutgoingQueueManagement { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSMQOutgoingQueueManagement, ::windows_core::IUnknown, super::Com::IDispatch, IMSMQManagement); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSMQOutgoingQueueManagement { - type Vtable = IMSMQOutgoingQueueManagement_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSMQOutgoingQueueManagement { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x64c478fb_f9b0_4695_8a7f_439ac94326d3); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSMQOutgoingQueueManagement_Vtbl { @@ -3311,11 +3209,15 @@ pub struct IMSMQOutgoingQueueManagement_Vtbl { pub Pause: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub EodResend: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSMQPrivateDestination(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSMQPrivateDestination, + IMSMQPrivateDestination_Vtbl, + 0xeba96b17_2168_11d3_898c_00e02c074f6b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSMQPrivateDestination, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMSMQPrivateDestination { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3331,16 +3233,6 @@ impl IMSMQPrivateDestination { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSMQPrivateDestination, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSMQPrivateDestination { - type Vtable = IMSMQPrivateDestination_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSMQPrivateDestination { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeba96b17_2168_11d3_898c_00e02c074f6b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSMQPrivateDestination_Vtbl { @@ -3354,11 +3246,15 @@ pub struct IMSMQPrivateDestination_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] SetHandle: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSMQPrivateEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSMQPrivateEvent, + IMSMQPrivateEvent_Vtbl, + 0xd7ab3341_c9d3_11d1_bb47_0080c7c5a2c0 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSMQPrivateEvent, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMSMQPrivateEvent { pub unsafe fn Hwnd(&self) -> ::windows_core::Result { @@ -3383,16 +3279,6 @@ impl IMSMQPrivateEvent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSMQPrivateEvent, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSMQPrivateEvent { - type Vtable = IMSMQPrivateEvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSMQPrivateEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd7ab3341_c9d3_11d1_bb47_0080c7c5a2c0); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSMQPrivateEvent_Vtbl { @@ -3407,11 +3293,15 @@ pub struct IMSMQPrivateEvent_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] FireArrivedErrorEvent: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSMQQuery(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSMQQuery, + IMSMQQuery_Vtbl, + 0xd7d6e072_dccd_11d0_aa4b_0060970debae +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSMQQuery, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMSMQQuery { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3422,16 +3312,6 @@ impl IMSMQQuery { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSMQQuery, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSMQQuery { - type Vtable = IMSMQQuery_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSMQQuery { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd7d6e072_dccd_11d0_aa4b_0060970debae); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSMQQuery_Vtbl { @@ -3441,11 +3321,15 @@ pub struct IMSMQQuery_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] LookupQueue: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSMQQuery2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSMQQuery2, + IMSMQQuery2_Vtbl, + 0xeba96b0e_2168_11d3_898c_00e02c074f6b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSMQQuery2, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMSMQQuery2 { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3462,16 +3346,6 @@ impl IMSMQQuery2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSMQQuery2, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSMQQuery2 { - type Vtable = IMSMQQuery2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSMQQuery2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeba96b0e_2168_11d3_898c_00e02c074f6b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSMQQuery2_Vtbl { @@ -3485,11 +3359,15 @@ pub struct IMSMQQuery2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Properties: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSMQQuery3(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSMQQuery3, + IMSMQQuery3_Vtbl, + 0xeba96b19_2168_11d3_898c_00e02c074f6b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSMQQuery3, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMSMQQuery3 { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3512,16 +3390,6 @@ impl IMSMQQuery3 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSMQQuery3, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSMQQuery3 { - type Vtable = IMSMQQuery3_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSMQQuery3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeba96b19_2168_11d3_898c_00e02c074f6b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSMQQuery3_Vtbl { @@ -3539,11 +3407,15 @@ pub struct IMSMQQuery3_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] LookupQueue: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSMQQuery4(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSMQQuery4, + IMSMQQuery4_Vtbl, + 0xeba96b24_2168_11d3_898c_00e02c074f6b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSMQQuery4, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMSMQQuery4 { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3566,16 +3438,6 @@ impl IMSMQQuery4 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSMQQuery4, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSMQQuery4 { - type Vtable = IMSMQQuery4_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSMQQuery4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeba96b24_2168_11d3_898c_00e02c074f6b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSMQQuery4_Vtbl { @@ -3593,11 +3455,15 @@ pub struct IMSMQQuery4_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] LookupQueue: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSMQQueue(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSMQQueue, + IMSMQQueue_Vtbl, + 0xd7d6e076_dccd_11d0_aa4b_0060970debae +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSMQQueue, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMSMQQueue { pub unsafe fn Access(&self) -> ::windows_core::Result { @@ -3668,16 +3534,6 @@ impl IMSMQQueue { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSMQQueue, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSMQQueue { - type Vtable = IMSMQQueue_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSMQQueue { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd7d6e076_dccd_11d0_aa4b_0060970debae); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSMQQueue_Vtbl { @@ -3717,11 +3573,15 @@ pub struct IMSMQQueue_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] PeekCurrent: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSMQQueue2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSMQQueue2, + IMSMQQueue2_Vtbl, + 0xef0574e0_06d8_11d3_b100_00e02c074f6b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSMQQueue2, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMSMQQueue2 { pub unsafe fn Access(&self) -> ::windows_core::Result { @@ -3828,16 +3688,6 @@ impl IMSMQQueue2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSMQQueue2, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSMQQueue2 { - type Vtable = IMSMQQueue2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSMQQueue2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xef0574e0_06d8_11d3_b100_00e02c074f6b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSMQQueue2_Vtbl { @@ -3901,11 +3751,15 @@ pub struct IMSMQQueue2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Properties: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSMQQueue3(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSMQQueue3, + IMSMQQueue3_Vtbl, + 0xeba96b1b_2168_11d3_898c_00e02c074f6b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSMQQueue3, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMSMQQueue3 { pub unsafe fn Access(&self) -> ::windows_core::Result { @@ -4085,16 +3939,6 @@ impl IMSMQQueue3 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSMQQueue3, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSMQQueue3 { - type Vtable = IMSMQQueue3_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSMQQueue3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeba96b1b_2168_11d3_898c_00e02c074f6b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSMQQueue3_Vtbl { @@ -4204,11 +4048,15 @@ pub struct IMSMQQueue3_Vtbl { pub Purge: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub IsOpen2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pisopen: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSMQQueue4(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSMQQueue4, + IMSMQQueue4_Vtbl, + 0xeba96b20_2168_11d3_898c_00e02c074f6b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSMQQueue4, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMSMQQueue4 { pub unsafe fn Access(&self) -> ::windows_core::Result { @@ -4394,16 +4242,6 @@ impl IMSMQQueue4 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSMQQueue4, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSMQQueue4 { - type Vtable = IMSMQQueue4_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSMQQueue4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeba96b20_2168_11d3_898c_00e02c074f6b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSMQQueue4_Vtbl { @@ -4517,11 +4355,15 @@ pub struct IMSMQQueue4_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] ReceiveByLookupIdAllowPeek: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSMQQueueInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSMQQueueInfo, + IMSMQQueueInfo_Vtbl, + 0xd7d6e07b_dccd_11d0_aa4b_0060970debae +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSMQQueueInfo, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMSMQQueueInfo { pub unsafe fn QueueGuid(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -4652,16 +4494,6 @@ impl IMSMQQueueInfo { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSMQQueueInfo, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSMQQueueInfo { - type Vtable = IMSMQQueueInfo_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSMQQueueInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd7d6e07b_dccd_11d0_aa4b_0060970debae); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSMQQueueInfo_Vtbl { @@ -4709,11 +4541,15 @@ pub struct IMSMQQueueInfo_Vtbl { pub Refresh: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Update: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSMQQueueInfo2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSMQQueueInfo2, + IMSMQQueueInfo2_Vtbl, + 0xfd174a80_89cf_11d2_b0f2_00e02c074f6b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSMQQueueInfo2, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMSMQQueueInfo2 { pub unsafe fn QueueGuid(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -4865,16 +4701,6 @@ impl IMSMQQueueInfo2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSMQQueueInfo2, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSMQQueueInfo2 { - type Vtable = IMSMQQueueInfo2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSMQQueueInfo2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfd174a80_89cf_11d2_b0f2_00e02c074f6b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSMQQueueInfo2_Vtbl { @@ -4935,11 +4761,15 @@ pub struct IMSMQQueueInfo2_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] SetSecurity: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSMQQueueInfo3(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSMQQueueInfo3, + IMSMQQueueInfo3_Vtbl, + 0xeba96b1d_2168_11d3_898c_00e02c074f6b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSMQQueueInfo3, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMSMQQueueInfo3 { pub unsafe fn QueueGuid(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -5113,16 +4943,6 @@ impl IMSMQQueueInfo3 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSMQQueueInfo3, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSMQQueueInfo3 { - type Vtable = IMSMQQueueInfo3_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSMQQueueInfo3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeba96b1d_2168_11d3_898c_00e02c074f6b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSMQQueueInfo3_Vtbl { @@ -5188,11 +5008,15 @@ pub struct IMSMQQueueInfo3_Vtbl { pub SetMulticastAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrmulticastaddress: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub ADsPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstradspath: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSMQQueueInfo4(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSMQQueueInfo4, + IMSMQQueueInfo4_Vtbl, + 0xeba96b21_2168_11d3_898c_00e02c074f6b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSMQQueueInfo4, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMSMQQueueInfo4 { pub unsafe fn QueueGuid(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -5366,16 +5190,6 @@ impl IMSMQQueueInfo4 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSMQQueueInfo4, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSMQQueueInfo4 { - type Vtable = IMSMQQueueInfo4_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSMQQueueInfo4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeba96b21_2168_11d3_898c_00e02c074f6b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSMQQueueInfo4_Vtbl { @@ -5441,11 +5255,15 @@ pub struct IMSMQQueueInfo4_Vtbl { pub SetMulticastAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrmulticastaddress: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub ADsPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstradspath: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSMQQueueInfos(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSMQQueueInfos, + IMSMQQueueInfos_Vtbl, + 0xd7d6e07d_dccd_11d0_aa4b_0060970debae +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSMQQueueInfos, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMSMQQueueInfos { pub unsafe fn Reset(&self) -> ::windows_core::Result<()> { @@ -5459,16 +5277,6 @@ impl IMSMQQueueInfos { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSMQQueueInfos, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSMQQueueInfos { - type Vtable = IMSMQQueueInfos_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSMQQueueInfos { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd7d6e07d_dccd_11d0_aa4b_0060970debae); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSMQQueueInfos_Vtbl { @@ -5479,11 +5287,15 @@ pub struct IMSMQQueueInfos_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Next: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSMQQueueInfos2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSMQQueueInfos2, + IMSMQQueueInfos2_Vtbl, + 0xeba96b0f_2168_11d3_898c_00e02c074f6b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSMQQueueInfos2, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMSMQQueueInfos2 { pub unsafe fn Reset(&self) -> ::windows_core::Result<()> { @@ -5503,16 +5315,6 @@ impl IMSMQQueueInfos2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSMQQueueInfos2, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSMQQueueInfos2 { - type Vtable = IMSMQQueueInfos2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSMQQueueInfos2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeba96b0f_2168_11d3_898c_00e02c074f6b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSMQQueueInfos2_Vtbl { @@ -5527,11 +5329,15 @@ pub struct IMSMQQueueInfos2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Properties: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSMQQueueInfos3(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSMQQueueInfos3, + IMSMQQueueInfos3_Vtbl, + 0xeba96b1e_2168_11d3_898c_00e02c074f6b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSMQQueueInfos3, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMSMQQueueInfos3 { pub unsafe fn Reset(&self) -> ::windows_core::Result<()> { @@ -5551,16 +5357,6 @@ impl IMSMQQueueInfos3 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSMQQueueInfos3, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSMQQueueInfos3 { - type Vtable = IMSMQQueueInfos3_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSMQQueueInfos3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeba96b1e_2168_11d3_898c_00e02c074f6b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSMQQueueInfos3_Vtbl { @@ -5575,11 +5371,15 @@ pub struct IMSMQQueueInfos3_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Properties: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSMQQueueInfos4(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSMQQueueInfos4, + IMSMQQueueInfos4_Vtbl, + 0xeba96b22_2168_11d3_898c_00e02c074f6b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSMQQueueInfos4, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMSMQQueueInfos4 { pub unsafe fn Reset(&self) -> ::windows_core::Result<()> { @@ -5599,16 +5399,6 @@ impl IMSMQQueueInfos4 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSMQQueueInfos4, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSMQQueueInfos4 { - type Vtable = IMSMQQueueInfos4_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSMQQueueInfos4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeba96b22_2168_11d3_898c_00e02c074f6b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSMQQueueInfos4_Vtbl { @@ -5623,11 +5413,15 @@ pub struct IMSMQQueueInfos4_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Properties: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSMQQueueManagement(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSMQQueueManagement, + IMSMQQueueManagement_Vtbl, + 0x7fbe7759_5760_444d_b8a5_5e7ab9a84cce +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSMQQueueManagement, ::windows_core::IUnknown, super::Com::IDispatch, IMSMQManagement); #[cfg(feature = "Win32_System_Com")] impl IMSMQQueueManagement { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5687,16 +5481,6 @@ impl IMSMQQueueManagement { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSMQQueueManagement, ::windows_core::IUnknown, super::Com::IDispatch, IMSMQManagement); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSMQQueueManagement { - type Vtable = IMSMQQueueManagement_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSMQQueueManagement { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7fbe7759_5760_444d_b8a5_5e7ab9a84cce); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSMQQueueManagement_Vtbl { @@ -5711,11 +5495,15 @@ pub struct IMSMQQueueManagement_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] EodGetReceiveInfo: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSMQTransaction(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSMQTransaction, + IMSMQTransaction_Vtbl, + 0xd7d6e07f_dccd_11d0_aa4b_0060970debae +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSMQTransaction, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMSMQTransaction { pub unsafe fn Transaction(&self) -> ::windows_core::Result { @@ -5734,16 +5522,6 @@ impl IMSMQTransaction { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSMQTransaction, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSMQTransaction { - type Vtable = IMSMQTransaction_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSMQTransaction { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd7d6e07f_dccd_11d0_aa4b_0060970debae); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSMQTransaction_Vtbl { @@ -5758,11 +5536,15 @@ pub struct IMSMQTransaction_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] Abort: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSMQTransaction2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSMQTransaction2, + IMSMQTransaction2_Vtbl, + 0x2ce0c5b0_6e67_11d2_b0e6_00e02c074f6b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSMQTransaction2, ::windows_core::IUnknown, super::Com::IDispatch, IMSMQTransaction); #[cfg(feature = "Win32_System_Com")] impl IMSMQTransaction2 { pub unsafe fn Transaction(&self) -> ::windows_core::Result { @@ -5792,16 +5574,6 @@ impl IMSMQTransaction2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSMQTransaction2, ::windows_core::IUnknown, super::Com::IDispatch, IMSMQTransaction); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSMQTransaction2 { - type Vtable = IMSMQTransaction2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSMQTransaction2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2ce0c5b0_6e67_11d2_b0e6_00e02c074f6b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSMQTransaction2_Vtbl { @@ -5815,11 +5587,15 @@ pub struct IMSMQTransaction2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Properties: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSMQTransaction3(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSMQTransaction3, + IMSMQTransaction3_Vtbl, + 0xeba96b13_2168_11d3_898c_00e02c074f6b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSMQTransaction3, ::windows_core::IUnknown, super::Com::IDispatch, IMSMQTransaction, IMSMQTransaction2); #[cfg(feature = "Win32_System_Com")] impl IMSMQTransaction3 { pub unsafe fn Transaction(&self) -> ::windows_core::Result { @@ -5855,16 +5631,6 @@ impl IMSMQTransaction3 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSMQTransaction3, ::windows_core::IUnknown, super::Com::IDispatch, IMSMQTransaction, IMSMQTransaction2); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSMQTransaction3 { - type Vtable = IMSMQTransaction3_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSMQTransaction3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeba96b13_2168_11d3_898c_00e02c074f6b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSMQTransaction3_Vtbl { @@ -5874,11 +5640,15 @@ pub struct IMSMQTransaction3_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] ITransaction: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSMQTransactionDispenser(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSMQTransactionDispenser, + IMSMQTransactionDispenser_Vtbl, + 0xd7d6e083_dccd_11d0_aa4b_0060970debae +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSMQTransactionDispenser, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMSMQTransactionDispenser { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -5889,16 +5659,6 @@ impl IMSMQTransactionDispenser { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSMQTransactionDispenser, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSMQTransactionDispenser { - type Vtable = IMSMQTransactionDispenser_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSMQTransactionDispenser { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd7d6e083_dccd_11d0_aa4b_0060970debae); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSMQTransactionDispenser_Vtbl { @@ -5908,11 +5668,15 @@ pub struct IMSMQTransactionDispenser_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] BeginTransaction: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSMQTransactionDispenser2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSMQTransactionDispenser2, + IMSMQTransactionDispenser2_Vtbl, + 0xeba96b11_2168_11d3_898c_00e02c074f6b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSMQTransactionDispenser2, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMSMQTransactionDispenser2 { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -5929,16 +5693,6 @@ impl IMSMQTransactionDispenser2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSMQTransactionDispenser2, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSMQTransactionDispenser2 { - type Vtable = IMSMQTransactionDispenser2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSMQTransactionDispenser2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeba96b11_2168_11d3_898c_00e02c074f6b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSMQTransactionDispenser2_Vtbl { @@ -5952,11 +5706,15 @@ pub struct IMSMQTransactionDispenser2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Properties: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMSMQTransactionDispenser3(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMSMQTransactionDispenser3, + IMSMQTransactionDispenser3_Vtbl, + 0xeba96b15_2168_11d3_898c_00e02c074f6b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMSMQTransactionDispenser3, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMSMQTransactionDispenser3 { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -5973,16 +5731,6 @@ impl IMSMQTransactionDispenser3 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMSMQTransactionDispenser3, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMSMQTransactionDispenser3 { - type Vtable = IMSMQTransactionDispenser3_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMSMQTransactionDispenser3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeba96b15_2168_11d3_898c_00e02c074f6b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMSMQTransactionDispenser3_Vtbl { @@ -5996,23 +5744,17 @@ pub struct IMSMQTransactionDispenser3_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Properties: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] -#[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct _DMSMQEventEvents(::windows_core::IUnknown); #[cfg(feature = "Win32_System_Com")] -impl _DMSMQEventEvents {} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + _DMSMQEventEvents, + _DMSMQEventEvents_Vtbl, + 0xd7d6e078_dccd_11d0_aa4b_0060970debae +); #[cfg(feature = "Win32_System_Com")] ::windows_core::imp::interface_hierarchy!(_DMSMQEventEvents, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for _DMSMQEventEvents { - type Vtable = _DMSMQEventEvents_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for _DMSMQEventEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd7d6e078_dccd_11d0_aa4b_0060970debae); -} +impl _DMSMQEventEvents {} #[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] diff --git a/crates/libs/windows/src/Windows/Win32/System/Mmc/impl.rs b/crates/libs/windows/src/Windows/Win32/System/Mmc/impl.rs index 0409bffca8..adfc632e01 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Mmc/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Mmc/impl.rs @@ -9,7 +9,7 @@ impl AppEvents_Vtbl { Self { base__: super::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -119,7 +119,7 @@ impl Column_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -175,7 +175,7 @@ impl Columns_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -231,7 +231,7 @@ impl ContextMenu_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -426,7 +426,7 @@ impl Document_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -522,7 +522,7 @@ impl Extension_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -578,7 +578,7 @@ impl Extensions_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -696,7 +696,7 @@ impl Frame_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IColumnData_Impl: Sized { @@ -749,7 +749,7 @@ impl IColumnData_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -821,7 +821,7 @@ impl IComponent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -865,7 +865,7 @@ impl IComponent2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -943,7 +943,7 @@ impl IComponentData_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -970,7 +970,7 @@ impl IComponentData2_Vtbl { Self { base__: IComponentData_Vtbl::new::(), QueryDispatch: QueryDispatch:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1100,7 +1100,7 @@ impl IConsole_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1138,7 +1138,7 @@ impl IConsole2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1159,7 +1159,7 @@ impl IConsole3_Vtbl { Self { base__: IConsole2_Vtbl::new::(), RenameScopeItem: RenameScopeItem:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IConsoleNameSpace_Impl: Sized { @@ -1221,7 +1221,7 @@ impl IConsoleNameSpace_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IConsoleNameSpace2_Impl: Sized + IConsoleNameSpace_Impl { @@ -1248,7 +1248,7 @@ impl IConsoleNameSpace2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IConsolePower_Impl: Sized { @@ -1275,7 +1275,7 @@ impl IConsolePower_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IConsolePowerSink_Impl: Sized { @@ -1298,7 +1298,7 @@ impl IConsolePowerSink_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnPowerBroadcast: OnPowerBroadcast:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IConsoleVerb_Impl: Sized { @@ -1351,7 +1351,7 @@ impl IConsoleVerb_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IContextMenuCallback_Impl: Sized { @@ -1368,7 +1368,7 @@ impl IContextMenuCallback_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), AddItem: AddItem:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IContextMenuCallback2_Impl: Sized { @@ -1385,7 +1385,7 @@ impl IContextMenuCallback2_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), AddItem: AddItem:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1436,7 +1436,7 @@ impl IContextMenuProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IControlbar_Impl: Sized { @@ -1476,7 +1476,7 @@ impl IControlbar_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDisplayHelp_Impl: Sized { @@ -1493,7 +1493,7 @@ impl IDisplayHelp_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), ShowTopic: ShowTopic:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumTASK_Impl: Sized { @@ -1540,7 +1540,7 @@ impl IEnumTASK_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1571,7 +1571,7 @@ impl IExtendContextMenu_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IExtendControlbar_Impl: Sized { @@ -1598,7 +1598,7 @@ impl IExtendControlbar_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1629,7 +1629,7 @@ impl IExtendPropertySheet_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_System_Com\"`"] @@ -1650,7 +1650,7 @@ impl IExtendPropertySheet2_Vtbl { Self { base__: IExtendPropertySheet_Vtbl::new::(), GetWatermarks: GetWatermarks:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1739,7 +1739,7 @@ impl IExtendTaskPad_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1760,7 +1760,7 @@ impl IExtendView_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetViews: GetViews:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IHeaderCtrl_Impl: Sized { @@ -1827,7 +1827,7 @@ impl IHeaderCtrl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IHeaderCtrl2_Impl: Sized + IHeaderCtrl_Impl { @@ -1861,7 +1861,7 @@ impl IHeaderCtrl2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IImageList_Impl: Sized { @@ -1888,7 +1888,7 @@ impl IImageList_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMMCVersionInfo_Impl: Sized { @@ -1905,7 +1905,7 @@ impl IMMCVersionInfo_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetMMCVersion: GetMMCVersion:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMenuButton_Impl: Sized { @@ -1939,7 +1939,7 @@ impl IMenuButton_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMessageView_Impl: Sized { @@ -1980,7 +1980,7 @@ impl IMessageView_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2007,7 +2007,7 @@ impl INodeProperties_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetProperty: GetProperty:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Controls\"`"] @@ -2038,7 +2038,7 @@ impl IPropertySheetCallback_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2090,7 +2090,7 @@ impl IPropertySheetProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRequiredExtensions_Impl: Sized { @@ -2136,7 +2136,7 @@ impl IRequiredExtensions_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IResultData_Impl: Sized { @@ -2266,7 +2266,7 @@ impl IResultData_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IResultData2_Impl: Sized + IResultData_Impl { @@ -2283,7 +2283,7 @@ impl IResultData2_Vtbl { Self { base__: IResultData_Vtbl::new::(), RenameResultItem: RenameResultItem:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IResultDataCompare_Impl: Sized { @@ -2300,7 +2300,7 @@ impl IResultDataCompare_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Compare: Compare:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IResultDataCompareEx_Impl: Sized { @@ -2323,7 +2323,7 @@ impl IResultDataCompareEx_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Compare: Compare:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IResultOwnerData_Impl: Sized { @@ -2363,7 +2363,7 @@ impl IResultOwnerData_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_UI_WindowsAndMessaging\"`"] @@ -2439,7 +2439,7 @@ impl ISnapinAbout_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISnapinHelp_Impl: Sized { @@ -2462,7 +2462,7 @@ impl ISnapinHelp_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetHelpTopic: GetHelpTopic:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISnapinHelp2_Impl: Sized + ISnapinHelp_Impl { @@ -2485,7 +2485,7 @@ impl ISnapinHelp2_Vtbl { Self { base__: ISnapinHelp_Vtbl::new::(), GetLinkedTopics: GetLinkedTopics:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2523,7 +2523,7 @@ impl ISnapinProperties_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISnapinPropertiesCallback_Impl: Sized { @@ -2540,7 +2540,7 @@ impl ISnapinPropertiesCallback_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), AddPropertyName: AddPropertyName:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2630,7 +2630,7 @@ impl IStringTable_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] @@ -2695,7 +2695,7 @@ impl IToolbar_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IViewExtensionCallback_Impl: Sized { @@ -2712,7 +2712,7 @@ impl IViewExtensionCallback_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), AddView: AddView:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2801,7 +2801,7 @@ impl MenuItem_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2883,7 +2883,7 @@ impl Node_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2939,7 +2939,7 @@ impl Nodes_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3002,7 +3002,7 @@ impl Properties_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3052,7 +3052,7 @@ impl Property_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3128,7 +3128,7 @@ impl ScopeNamespace_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3230,7 +3230,7 @@ impl SnapIn_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3306,7 +3306,7 @@ impl SnapIns_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3719,7 +3719,7 @@ impl View_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3782,7 +3782,7 @@ impl Views_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3883,7 +3883,7 @@ impl _AppEvents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &<_AppEvents as ::windows_core::ComInterface>::IID || iid == &::IID + iid == &<_AppEvents as ::windows_core::Interface>::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4020,7 +4020,7 @@ impl _Application_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &<_Application as ::windows_core::ComInterface>::IID || iid == &::IID + iid == &<_Application as ::windows_core::Interface>::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4051,6 +4051,6 @@ impl _EventConnector_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &<_EventConnector as ::windows_core::ComInterface>::IID || iid == &::IID + iid == &<_EventConnector as ::windows_core::Interface>::IID || iid == &::IID } } 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 1f58e8edaf..3127fce1ab 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Mmc/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Mmc/mod.rs @@ -1,31 +1,29 @@ -#[doc = "Required features: `\"Win32_System_Com\"`"] -#[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct AppEvents(::windows_core::IUnknown); #[cfg(feature = "Win32_System_Com")] -impl AppEvents {} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + AppEvents, + AppEvents_Vtbl, + 0xfc7a4252_78ac_4532_8c5a_563cfe138863 +); #[cfg(feature = "Win32_System_Com")] ::windows_core::imp::interface_hierarchy!(AppEvents, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for AppEvents { - type Vtable = AppEvents_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for AppEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfc7a4252_78ac_4532_8c5a_563cfe138863); -} +impl AppEvents {} #[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct AppEvents_Vtbl { pub base__: super::Com::IDispatch_Vtbl, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct Column(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + Column, + Column_Vtbl, + 0xfd1c5f63_2b16_4d06_9ab3_f45350b940ab +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(Column, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl Column { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -65,16 +63,6 @@ impl Column { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(Column, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for Column { - type Vtable = Column_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for Column { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfd1c5f63_2b16_4d06_9ab3_f45350b940ab); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct Column_Vtbl { @@ -89,11 +77,15 @@ pub struct Column_Vtbl { pub SetAsSortColumn: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sortorder: _ColumnSortOrder) -> ::windows_core::HRESULT, pub IsSortColumn: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, issortcolumn: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct Columns(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + Columns, + Columns_Vtbl, + 0x383d4d97_fc44_478b_b139_6323dc48611c +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(Columns, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl Columns { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -112,16 +104,6 @@ impl Columns { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(Columns, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for Columns { - type Vtable = Columns_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for Columns { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x383d4d97_fc44_478b_b139_6323dc48611c); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct Columns_Vtbl { @@ -133,11 +115,15 @@ pub struct Columns_Vtbl { pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, count: *mut i32) -> ::windows_core::HRESULT, pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ContextMenu(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ContextMenu, + ContextMenu_Vtbl, + 0xdab39ce0_25e6_4e07_8362_ba9c95706545 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ContextMenu, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ContextMenu { pub unsafe fn _NewEnum(&self) -> ::windows_core::Result<::windows_core::IUnknown> { @@ -156,16 +142,6 @@ impl ContextMenu { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ContextMenu, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ContextMenu { - type Vtable = ContextMenu_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ContextMenu { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdab39ce0_25e6_4e07_8362_ba9c95706545); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ContextMenu_Vtbl { @@ -177,11 +153,15 @@ pub struct ContextMenu_Vtbl { get_Item: usize, pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, count: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct Document(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + Document, + Document_Vtbl, + 0x225120d6_1e0f_40a3_93fe_1079e6a8017b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(Document, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl Document { pub unsafe fn Save(&self) -> ::windows_core::Result<()> { @@ -268,16 +248,6 @@ impl Document { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(Document, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for Document { - type Vtable = Document_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for Document { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x225120d6_1e0f_40a3_93fe_1079e6a8017b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct Document_Vtbl { @@ -320,11 +290,15 @@ pub struct Document_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Application: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct Extension(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + Extension, + Extension_Vtbl, + 0xad4d6ca6_912f_409b_a26e_7fd234aef542 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(Extension, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl Extension { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -363,16 +337,6 @@ impl Extension { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(Extension, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for Extension { - type Vtable = Extension_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for Extension { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xad4d6ca6_912f_409b_a26e_7fd234aef542); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct Extension_Vtbl { @@ -388,11 +352,15 @@ pub struct Extension_Vtbl { pub EnableAllExtensions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enable: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub Enable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enable: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct Extensions(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + Extensions, + Extensions_Vtbl, + 0x82dbea43_8ca4_44bc_a2ca_d18741059ec8 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(Extensions, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl Extensions { pub unsafe fn _NewEnum(&self) -> ::windows_core::Result<::windows_core::IUnknown> { @@ -411,16 +379,6 @@ impl Extensions { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(Extensions, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for Extensions { - type Vtable = Extensions_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for Extensions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x82dbea43_8ca4_44bc_a2ca_d18741059ec8); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct Extensions_Vtbl { @@ -432,11 +390,15 @@ pub struct Extensions_Vtbl { Item: usize, pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, count: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct Frame(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + Frame, + Frame_Vtbl, + 0xe5e2d970_5bb3_4306_8804_b0968a31c8e6 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(Frame, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl Frame { pub unsafe fn Maximize(&self) -> ::windows_core::Result<()> { @@ -478,16 +440,6 @@ impl Frame { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(Frame, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for Frame { - type Vtable = Frame_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for Frame { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe5e2d970_5bb3_4306_8804_b0968a31c8e6); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct Frame_Vtbl { @@ -504,9 +456,8 @@ pub struct Frame_Vtbl { pub Right: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, right: *mut i32) -> ::windows_core::HRESULT, pub SetRight: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, right: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IColumnData(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IColumnData, IColumnData_Vtbl, 0x547c1354_024d_11d3_a707_00c04f8ef4cb); +::windows_core::imp::interface_hierarchy!(IColumnData, ::windows_core::IUnknown); impl IColumnData { pub unsafe fn SetColumnConfigData(&self, pcolid: *const SColumnSetID, pcolsetdata: *const MMC_COLUMN_SET_DATA) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetColumnConfigData)(::windows_core::Interface::as_raw(self), pcolid, pcolsetdata).ok() @@ -523,13 +474,6 @@ impl IColumnData { (::windows_core::Interface::vtable(self).GetColumnSortData)(::windows_core::Interface::as_raw(self), pcolid, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IColumnData, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IColumnData { - type Vtable = IColumnData_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IColumnData { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x547c1354_024d_11d3_a707_00c04f8ef4cb); -} #[repr(C)] #[doc(hidden)] pub struct IColumnData_Vtbl { @@ -539,9 +483,8 @@ pub struct IColumnData_Vtbl { pub SetColumnSortData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcolid: *const SColumnSetID, pcolsortdata: *const MMC_SORT_SET_DATA) -> ::windows_core::HRESULT, pub GetColumnSortData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcolid: *const SColumnSetID, ppcolsortdata: *mut *mut MMC_SORT_SET_DATA) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IComponent(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IComponent, IComponent_Vtbl, 0x43136eb2_d36c_11cf_adbc_00aa00a80033); +::windows_core::imp::interface_hierarchy!(IComponent, ::windows_core::IUnknown); impl IComponent { pub unsafe fn Initialize(&self, lpconsole: P0) -> ::windows_core::Result<()> where @@ -584,13 +527,6 @@ impl IComponent { (::windows_core::Interface::vtable(self).CompareObjects)(::windows_core::Interface::as_raw(self), lpdataobjecta.into_param().abi(), lpdataobjectb.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IComponent, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IComponent { - type Vtable = IComponent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IComponent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x43136eb2_d36c_11cf_adbc_00aa00a80033); -} #[repr(C)] #[doc(hidden)] pub struct IComponent_Vtbl { @@ -612,9 +548,8 @@ pub struct IComponent_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] CompareObjects: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IComponent2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IComponent2, IComponent2_Vtbl, 0x79a2d615_4a10_4ed4_8c65_8633f9335095); +::windows_core::imp::interface_hierarchy!(IComponent2, ::windows_core::IUnknown, IComponent); impl IComponent2 { pub unsafe fn Initialize(&self, lpconsole: P0) -> ::windows_core::Result<()> where @@ -669,13 +604,6 @@ impl IComponent2 { (::windows_core::Interface::vtable(self).RestoreResultView)(::windows_core::Interface::as_raw(self), cookie, presultviewtype).ok() } } -::windows_core::imp::interface_hierarchy!(IComponent2, ::windows_core::IUnknown, IComponent); -unsafe impl ::windows_core::Interface for IComponent2 { - type Vtable = IComponent2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IComponent2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x79a2d615_4a10_4ed4_8c65_8633f9335095); -} #[repr(C)] #[doc(hidden)] pub struct IComponent2_Vtbl { @@ -687,9 +615,8 @@ pub struct IComponent2_Vtbl { pub GetResultViewType2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cookie: isize, presultviewtype: *mut RESULT_VIEW_TYPE_INFO) -> ::windows_core::HRESULT, pub RestoreResultView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cookie: isize, presultviewtype: *const RESULT_VIEW_TYPE_INFO) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IComponentData(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IComponentData, IComponentData_Vtbl, 0x955ab28a_5218_11d0_a985_00c04fd8d565); +::windows_core::imp::interface_hierarchy!(IComponentData, ::windows_core::IUnknown); impl IComponentData { pub unsafe fn Initialize(&self, punknown: P0) -> ::windows_core::Result<()> where @@ -733,13 +660,6 @@ impl IComponentData { (::windows_core::Interface::vtable(self).CompareObjects)(::windows_core::Interface::as_raw(self), lpdataobjecta.into_param().abi(), lpdataobjectb.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IComponentData, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IComponentData { - type Vtable = IComponentData_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IComponentData { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x955ab28a_5218_11d0_a985_00c04fd8d565); -} #[repr(C)] #[doc(hidden)] pub struct IComponentData_Vtbl { @@ -761,9 +681,8 @@ pub struct IComponentData_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] CompareObjects: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IComponentData2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IComponentData2, IComponentData2_Vtbl, 0xcca0f2d2_82de_41b5_bf47_3b2076273d5c); +::windows_core::imp::interface_hierarchy!(IComponentData2, ::windows_core::IUnknown, IComponentData); impl IComponentData2 { pub unsafe fn Initialize(&self, punknown: P0) -> ::windows_core::Result<()> where @@ -813,13 +732,6 @@ impl IComponentData2 { (::windows_core::Interface::vtable(self).QueryDispatch)(::windows_core::Interface::as_raw(self), cookie, r#type, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IComponentData2, ::windows_core::IUnknown, IComponentData); -unsafe impl ::windows_core::Interface for IComponentData2 { - type Vtable = IComponentData2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IComponentData2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcca0f2d2_82de_41b5_bf47_3b2076273d5c); -} #[repr(C)] #[doc(hidden)] pub struct IComponentData2_Vtbl { @@ -829,9 +741,8 @@ pub struct IComponentData2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] QueryDispatch: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IConsole(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IConsole, IConsole_Vtbl, 0x43136eb1_d36c_11cf_adbc_00aa00a80033); +::windows_core::imp::interface_hierarchy!(IConsole, ::windows_core::IUnknown); impl IConsole { pub unsafe fn SetHeader(&self, pheader: P0) -> ::windows_core::Result<()> where @@ -889,13 +800,6 @@ impl IConsole { (::windows_core::Interface::vtable(self).NewWindow)(::windows_core::Interface::as_raw(self), hscopeitem, loptions).ok() } } -::windows_core::imp::interface_hierarchy!(IConsole, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IConsole { - type Vtable = IConsole_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IConsole { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x43136eb1_d36c_11cf_adbc_00aa00a80033); -} #[repr(C)] #[doc(hidden)] pub struct IConsole_Vtbl { @@ -915,9 +819,8 @@ pub struct IConsole_Vtbl { pub GetMainWindow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phwnd: *mut super::super::Foundation::HWND) -> ::windows_core::HRESULT, pub NewWindow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hscopeitem: isize, loptions: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IConsole2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IConsole2, IConsole2_Vtbl, 0x103d842a_aa63_11d1_a7e1_00c04fd8d565); +::windows_core::imp::interface_hierarchy!(IConsole2, ::windows_core::IUnknown, IConsole); impl IConsole2 { pub unsafe fn SetHeader(&self, pheader: P0) -> ::windows_core::Result<()> where @@ -990,13 +893,6 @@ impl IConsole2 { (::windows_core::Interface::vtable(self).SetStatusText)(::windows_core::Interface::as_raw(self), pszstatustext.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IConsole2, ::windows_core::IUnknown, IConsole); -unsafe impl ::windows_core::Interface for IConsole2 { - type Vtable = IConsole2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IConsole2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x103d842a_aa63_11d1_a7e1_00c04fd8d565); -} #[repr(C)] #[doc(hidden)] pub struct IConsole2_Vtbl { @@ -1005,9 +901,8 @@ pub struct IConsole2_Vtbl { pub IsTaskpadViewPreferred: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetStatusText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszstatustext: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IConsole3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IConsole3, IConsole3_Vtbl, 0x4f85efdb_d0e1_498c_8d4a_d010dfdd404f); +::windows_core::imp::interface_hierarchy!(IConsole3, ::windows_core::IUnknown, IConsole, IConsole2); impl IConsole3 { pub unsafe fn SetHeader(&self, pheader: P0) -> ::windows_core::Result<()> where @@ -1083,22 +978,14 @@ impl IConsole3 { (::windows_core::Interface::vtable(self).RenameScopeItem)(::windows_core::Interface::as_raw(self), hscopeitem).ok() } } -::windows_core::imp::interface_hierarchy!(IConsole3, ::windows_core::IUnknown, IConsole, IConsole2); -unsafe impl ::windows_core::Interface for IConsole3 { - type Vtable = IConsole3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IConsole3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4f85efdb_d0e1_498c_8d4a_d010dfdd404f); -} #[repr(C)] #[doc(hidden)] pub struct IConsole3_Vtbl { pub base__: IConsole2_Vtbl, pub RenameScopeItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hscopeitem: isize) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IConsoleNameSpace(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IConsoleNameSpace, IConsoleNameSpace_Vtbl, 0xbedeb620_f24d_11cf_8afc_00aa003ca9f6); +::windows_core::imp::interface_hierarchy!(IConsoleNameSpace, ::windows_core::IUnknown); impl IConsoleNameSpace { pub unsafe fn InsertItem(&self, item: *mut SCOPEDATAITEM) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).InsertItem)(::windows_core::Interface::as_raw(self), item).ok() @@ -1122,13 +1009,6 @@ impl IConsoleNameSpace { (::windows_core::Interface::vtable(self).GetParentItem)(::windows_core::Interface::as_raw(self), item, pitemparent, pcookie).ok() } } -::windows_core::imp::interface_hierarchy!(IConsoleNameSpace, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IConsoleNameSpace { - type Vtable = IConsoleNameSpace_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IConsoleNameSpace { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbedeb620_f24d_11cf_8afc_00aa003ca9f6); -} #[repr(C)] #[doc(hidden)] pub struct IConsoleNameSpace_Vtbl { @@ -1141,9 +1021,8 @@ pub struct IConsoleNameSpace_Vtbl { pub GetNextItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, item: isize, pitemnext: *mut isize, pcookie: *mut isize) -> ::windows_core::HRESULT, pub GetParentItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, item: isize, pitemparent: *mut isize, pcookie: *mut isize) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IConsoleNameSpace2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IConsoleNameSpace2, IConsoleNameSpace2_Vtbl, 0x255f18cc_65db_11d1_a7dc_00c04fd8d565); +::windows_core::imp::interface_hierarchy!(IConsoleNameSpace2, ::windows_core::IUnknown, IConsoleNameSpace); impl IConsoleNameSpace2 { pub unsafe fn InsertItem(&self, item: *mut SCOPEDATAITEM) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.InsertItem)(::windows_core::Interface::as_raw(self), item).ok() @@ -1173,13 +1052,6 @@ impl IConsoleNameSpace2 { (::windows_core::Interface::vtable(self).AddExtension)(::windows_core::Interface::as_raw(self), hitem, lpclsid).ok() } } -::windows_core::imp::interface_hierarchy!(IConsoleNameSpace2, ::windows_core::IUnknown, IConsoleNameSpace); -unsafe impl ::windows_core::Interface for IConsoleNameSpace2 { - type Vtable = IConsoleNameSpace2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IConsoleNameSpace2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x255f18cc_65db_11d1_a7dc_00c04fd8d565); -} #[repr(C)] #[doc(hidden)] pub struct IConsoleNameSpace2_Vtbl { @@ -1187,9 +1059,8 @@ pub struct IConsoleNameSpace2_Vtbl { pub Expand: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hitem: isize) -> ::windows_core::HRESULT, pub AddExtension: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hitem: isize, lpclsid: *const ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IConsolePower(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IConsolePower, IConsolePower_Vtbl, 0x1cfbdd0e_62ca_49ce_a3af_dbb2de61b068); +::windows_core::imp::interface_hierarchy!(IConsolePower, ::windows_core::IUnknown); impl IConsolePower { pub unsafe fn SetExecutionState(&self, dwadd: u32, dwremove: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetExecutionState)(::windows_core::Interface::as_raw(self), dwadd, dwremove).ok() @@ -1198,13 +1069,6 @@ impl IConsolePower { (::windows_core::Interface::vtable(self).ResetIdleTimer)(::windows_core::Interface::as_raw(self), dwflags).ok() } } -::windows_core::imp::interface_hierarchy!(IConsolePower, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IConsolePower { - type Vtable = IConsolePower_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IConsolePower { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1cfbdd0e_62ca_49ce_a3af_dbb2de61b068); -} #[repr(C)] #[doc(hidden)] pub struct IConsolePower_Vtbl { @@ -1212,9 +1076,8 @@ pub struct IConsolePower_Vtbl { pub SetExecutionState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwadd: u32, dwremove: u32) -> ::windows_core::HRESULT, pub ResetIdleTimer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwflags: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IConsolePowerSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IConsolePowerSink, IConsolePowerSink_Vtbl, 0x3333759f_fe4f_4975_b143_fec0a5dd6d65); +::windows_core::imp::interface_hierarchy!(IConsolePowerSink, ::windows_core::IUnknown); impl IConsolePowerSink { pub unsafe fn OnPowerBroadcast(&self, nevent: u32, lparam: P0) -> ::windows_core::Result where @@ -1224,22 +1087,14 @@ impl IConsolePowerSink { (::windows_core::Interface::vtable(self).OnPowerBroadcast)(::windows_core::Interface::as_raw(self), nevent, lparam.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IConsolePowerSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IConsolePowerSink { - type Vtable = IConsolePowerSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IConsolePowerSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3333759f_fe4f_4975_b143_fec0a5dd6d65); -} #[repr(C)] #[doc(hidden)] pub struct IConsolePowerSink_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnPowerBroadcast: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nevent: u32, lparam: super::super::Foundation::LPARAM, plreturn: *mut super::super::Foundation::LRESULT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IConsoleVerb(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IConsoleVerb, IConsoleVerb_Vtbl, 0xe49f7a60_74af_11d0_a286_00c04fd8fe93); +::windows_core::imp::interface_hierarchy!(IConsoleVerb, ::windows_core::IUnknown); impl IConsoleVerb { pub unsafe fn GetVerbState(&self, ecmdid: MMC_CONSOLE_VERB, nstate: MMC_BUTTON_STATE) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1259,13 +1114,6 @@ impl IConsoleVerb { (::windows_core::Interface::vtable(self).GetDefaultVerb)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IConsoleVerb, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IConsoleVerb { - type Vtable = IConsoleVerb_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IConsoleVerb { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe49f7a60_74af_11d0_a286_00c04fd8fe93); -} #[repr(C)] #[doc(hidden)] pub struct IConsoleVerb_Vtbl { @@ -1275,51 +1123,34 @@ pub struct IConsoleVerb_Vtbl { pub SetDefaultVerb: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ecmdid: MMC_CONSOLE_VERB) -> ::windows_core::HRESULT, pub GetDefaultVerb: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pecmdid: *mut MMC_CONSOLE_VERB) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContextMenuCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IContextMenuCallback, IContextMenuCallback_Vtbl, 0x43136eb7_d36c_11cf_adbc_00aa00a80033); +::windows_core::imp::interface_hierarchy!(IContextMenuCallback, ::windows_core::IUnknown); impl IContextMenuCallback { pub unsafe fn AddItem(&self, pitem: *const CONTEXTMENUITEM) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).AddItem)(::windows_core::Interface::as_raw(self), pitem).ok() } } -::windows_core::imp::interface_hierarchy!(IContextMenuCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContextMenuCallback { - type Vtable = IContextMenuCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContextMenuCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x43136eb7_d36c_11cf_adbc_00aa00a80033); -} #[repr(C)] #[doc(hidden)] pub struct IContextMenuCallback_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub AddItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pitem: *const CONTEXTMENUITEM) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContextMenuCallback2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IContextMenuCallback2, IContextMenuCallback2_Vtbl, 0xe178bc0e_2ed0_4b5e_8097_42c9087e8b33); +::windows_core::imp::interface_hierarchy!(IContextMenuCallback2, ::windows_core::IUnknown); impl IContextMenuCallback2 { pub unsafe fn AddItem(&self, pitem: *const CONTEXTMENUITEM2) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).AddItem)(::windows_core::Interface::as_raw(self), pitem).ok() } } -::windows_core::imp::interface_hierarchy!(IContextMenuCallback2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContextMenuCallback2 { - type Vtable = IContextMenuCallback2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContextMenuCallback2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe178bc0e_2ed0_4b5e_8097_42c9087e8b33); -} #[repr(C)] #[doc(hidden)] pub struct IContextMenuCallback2_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub AddItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pitem: *const CONTEXTMENUITEM2) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContextMenuProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IContextMenuProvider, IContextMenuProvider_Vtbl, 0x43136eb6_d36c_11cf_adbc_00aa00a80033); +::windows_core::imp::interface_hierarchy!(IContextMenuProvider, ::windows_core::IUnknown, IContextMenuCallback); impl IContextMenuProvider { pub unsafe fn AddItem(&self, pitem: *const CONTEXTMENUITEM) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.AddItem)(::windows_core::Interface::as_raw(self), pitem).ok() @@ -1352,13 +1183,6 @@ impl IContextMenuProvider { (::windows_core::Interface::vtable(self).ShowContextMenu)(::windows_core::Interface::as_raw(self), hwndparent.into_param().abi(), xpos, ypos, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IContextMenuProvider, ::windows_core::IUnknown, IContextMenuCallback); -unsafe impl ::windows_core::Interface for IContextMenuProvider { - type Vtable = IContextMenuProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContextMenuProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x43136eb6_d36c_11cf_adbc_00aa00a80033); -} #[repr(C)] #[doc(hidden)] pub struct IContextMenuProvider_Vtbl { @@ -1374,9 +1198,8 @@ pub struct IContextMenuProvider_Vtbl { AddThirdPartyExtensionItems: usize, pub ShowContextMenu: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwndparent: super::super::Foundation::HWND, xpos: i32, ypos: i32, plselected: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IControlbar(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IControlbar, IControlbar_Vtbl, 0x69fb811e_6c1c_11d0_a2cb_00c04fd909dd); +::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<::windows_core::IUnknown> where @@ -1398,13 +1221,6 @@ impl IControlbar { (::windows_core::Interface::vtable(self).Detach)(::windows_core::Interface::as_raw(self), lpunknown.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IControlbar, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IControlbar { - type Vtable = IControlbar_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IControlbar { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x69fb811e_6c1c_11d0_a2cb_00c04fd909dd); -} #[repr(C)] #[doc(hidden)] pub struct IControlbar_Vtbl { @@ -1413,9 +1229,8 @@ pub struct IControlbar_Vtbl { pub Attach: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ntype: MMC_CONTROL_TYPE, lpunknown: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Detach: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpunknown: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDisplayHelp(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDisplayHelp, IDisplayHelp_Vtbl, 0xcc593830_b926_11d1_8063_0000f875a9ce); +::windows_core::imp::interface_hierarchy!(IDisplayHelp, ::windows_core::IUnknown); impl IDisplayHelp { pub unsafe fn ShowTopic(&self, pszhelptopic: P0) -> ::windows_core::Result<()> where @@ -1424,22 +1239,14 @@ impl IDisplayHelp { (::windows_core::Interface::vtable(self).ShowTopic)(::windows_core::Interface::as_raw(self), pszhelptopic.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IDisplayHelp, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDisplayHelp { - type Vtable = IDisplayHelp_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDisplayHelp { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcc593830_b926_11d1_8063_0000f875a9ce); -} #[repr(C)] #[doc(hidden)] pub struct IDisplayHelp_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub ShowTopic: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszhelptopic: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumTASK(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumTASK, IEnumTASK_Vtbl, 0x338698b1_5a02_11d1_9fec_00600832db4a); +::windows_core::imp::interface_hierarchy!(IEnumTASK, ::windows_core::IUnknown); impl IEnumTASK { pub unsafe fn Next(&self, rgelt: &mut [MMC_TASK], pceltfetched: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), ::core::mem::transmute(rgelt.as_ptr()), pceltfetched).ok() @@ -1455,13 +1262,6 @@ impl IEnumTASK { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumTASK, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumTASK { - type Vtable = IEnumTASK_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumTASK { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x338698b1_5a02_11d1_9fec_00600832db4a); -} #[repr(C)] #[doc(hidden)] pub struct IEnumTASK_Vtbl { @@ -1471,9 +1271,8 @@ pub struct IEnumTASK_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IExtendContextMenu(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IExtendContextMenu, IExtendContextMenu_Vtbl, 0x4f3b7a4f_cfac_11cf_b8e3_00c04fd8d5b0); +::windows_core::imp::interface_hierarchy!(IExtendContextMenu, ::windows_core::IUnknown); impl IExtendContextMenu { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -1493,13 +1292,6 @@ impl IExtendContextMenu { (::windows_core::Interface::vtable(self).Command)(::windows_core::Interface::as_raw(self), lcommandid, pidataobject.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IExtendContextMenu, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IExtendContextMenu { - type Vtable = IExtendContextMenu_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IExtendContextMenu { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4f3b7a4f_cfac_11cf_b8e3_00c04fd8d5b0); -} #[repr(C)] #[doc(hidden)] pub struct IExtendContextMenu_Vtbl { @@ -1513,9 +1305,8 @@ pub struct IExtendContextMenu_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Command: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IExtendControlbar(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IExtendControlbar, IExtendControlbar_Vtbl, 0x49506520_6f40_11d0_a98b_00c04fd8d565); +::windows_core::imp::interface_hierarchy!(IExtendControlbar, ::windows_core::IUnknown); impl IExtendControlbar { pub unsafe fn SetControlbar(&self, pcontrolbar: P0) -> ::windows_core::Result<()> where @@ -1531,13 +1322,6 @@ impl IExtendControlbar { (::windows_core::Interface::vtable(self).ControlbarNotify)(::windows_core::Interface::as_raw(self), event, arg.into_param().abi(), param2.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IExtendControlbar, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IExtendControlbar { - type Vtable = IExtendControlbar_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IExtendControlbar { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x49506520_6f40_11d0_a98b_00c04fd8d565); -} #[repr(C)] #[doc(hidden)] pub struct IExtendControlbar_Vtbl { @@ -1545,9 +1329,8 @@ pub struct IExtendControlbar_Vtbl { pub SetControlbar: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcontrolbar: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ControlbarNotify: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, event: MMC_NOTIFY_TYPE, arg: super::super::Foundation::LPARAM, param2: super::super::Foundation::LPARAM) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IExtendPropertySheet(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IExtendPropertySheet, IExtendPropertySheet_Vtbl, 0x85de64dc_ef21_11cf_a285_00c04fd8dbe6); +::windows_core::imp::interface_hierarchy!(IExtendPropertySheet, ::windows_core::IUnknown); impl IExtendPropertySheet { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -1567,13 +1350,6 @@ impl IExtendPropertySheet { (::windows_core::Interface::vtable(self).QueryPagesFor)(::windows_core::Interface::as_raw(self), lpdataobject.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IExtendPropertySheet, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IExtendPropertySheet { - type Vtable = IExtendPropertySheet_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IExtendPropertySheet { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x85de64dc_ef21_11cf_a285_00c04fd8dbe6); -} #[repr(C)] #[doc(hidden)] pub struct IExtendPropertySheet_Vtbl { @@ -1587,9 +1363,8 @@ pub struct IExtendPropertySheet_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] QueryPagesFor: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IExtendPropertySheet2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IExtendPropertySheet2, IExtendPropertySheet2_Vtbl, 0xb7a87232_4a51_11d1_a7ea_00c04fd909dd); +::windows_core::imp::interface_hierarchy!(IExtendPropertySheet2, ::windows_core::IUnknown, IExtendPropertySheet); impl IExtendPropertySheet2 { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -1617,13 +1392,6 @@ impl IExtendPropertySheet2 { (::windows_core::Interface::vtable(self).GetWatermarks)(::windows_core::Interface::as_raw(self), lpidataobject.into_param().abi(), lphwatermark, lphheader, lphpalette, bstretch).ok() } } -::windows_core::imp::interface_hierarchy!(IExtendPropertySheet2, ::windows_core::IUnknown, IExtendPropertySheet); -unsafe impl ::windows_core::Interface for IExtendPropertySheet2 { - type Vtable = IExtendPropertySheet2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IExtendPropertySheet2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb7a87232_4a51_11d1_a7ea_00c04fd909dd); -} #[repr(C)] #[doc(hidden)] pub struct IExtendPropertySheet2_Vtbl { @@ -1633,9 +1401,8 @@ pub struct IExtendPropertySheet2_Vtbl { #[cfg(not(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com")))] GetWatermarks: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IExtendTaskPad(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IExtendTaskPad, IExtendTaskPad_Vtbl, 0x8dee6511_554d_11d1_9fea_00600832db4a); +::windows_core::imp::interface_hierarchy!(IExtendTaskPad, ::windows_core::IUnknown); impl IExtendTaskPad { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -1684,13 +1451,6 @@ impl IExtendTaskPad { (::windows_core::Interface::vtable(self).GetListPadInfo)(::windows_core::Interface::as_raw(self), pszgroup.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IExtendTaskPad, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IExtendTaskPad { - type Vtable = IExtendTaskPad_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IExtendTaskPad { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8dee6511_554d_11d1_9fea_00600832db4a); -} #[repr(C)] #[doc(hidden)] pub struct IExtendTaskPad_Vtbl { @@ -1708,9 +1468,8 @@ pub struct IExtendTaskPad_Vtbl { pub GetBackground: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszgroup: ::windows_core::PCWSTR, ptdo: *mut MMC_TASK_DISPLAY_OBJECT) -> ::windows_core::HRESULT, pub GetListPadInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszgroup: ::windows_core::PCWSTR, lplistpadinfo: *mut MMC_LISTPAD_INFO) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IExtendView(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IExtendView, IExtendView_Vtbl, 0x89995cee_d2ed_4c0e_ae5e_df7e76f3fa53); +::windows_core::imp::interface_hierarchy!(IExtendView, ::windows_core::IUnknown); impl IExtendView { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -1722,13 +1481,6 @@ impl IExtendView { (::windows_core::Interface::vtable(self).GetViews)(::windows_core::Interface::as_raw(self), pdataobject.into_param().abi(), pviewextensioncallback.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IExtendView, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IExtendView { - type Vtable = IExtendView_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IExtendView { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x89995cee_d2ed_4c0e_ae5e_df7e76f3fa53); -} #[repr(C)] #[doc(hidden)] pub struct IExtendView_Vtbl { @@ -1738,9 +1490,8 @@ pub struct IExtendView_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetViews: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHeaderCtrl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IHeaderCtrl, IHeaderCtrl_Vtbl, 0x43136eb3_d36c_11cf_adbc_00aa00a80033); +::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 @@ -1769,13 +1520,6 @@ impl IHeaderCtrl { (::windows_core::Interface::vtable(self).GetColumnWidth)(::windows_core::Interface::as_raw(self), ncol, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IHeaderCtrl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHeaderCtrl { - type Vtable = IHeaderCtrl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHeaderCtrl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x43136eb3_d36c_11cf_adbc_00aa00a80033); -} #[repr(C)] #[doc(hidden)] pub struct IHeaderCtrl_Vtbl { @@ -1787,9 +1531,8 @@ pub struct IHeaderCtrl_Vtbl { pub SetColumnWidth: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ncol: i32, nwidth: i32) -> ::windows_core::HRESULT, pub GetColumnWidth: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ncol: i32, pwidth: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHeaderCtrl2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IHeaderCtrl2, IHeaderCtrl2_Vtbl, 0x9757abb8_1b32_11d1_a7ce_00c04fd8d565); +::windows_core::imp::interface_hierarchy!(IHeaderCtrl2, ::windows_core::IUnknown, IHeaderCtrl); impl IHeaderCtrl2 { pub unsafe fn InsertColumn(&self, ncol: i32, title: P0, nformat: i32, nwidth: i32) -> ::windows_core::Result<()> where @@ -1827,13 +1570,6 @@ impl IHeaderCtrl2 { (::windows_core::Interface::vtable(self).GetColumnFilter)(::windows_core::Interface::as_raw(self), ncolumn, pdwtype, pfilterdata).ok() } } -::windows_core::imp::interface_hierarchy!(IHeaderCtrl2, ::windows_core::IUnknown, IHeaderCtrl); -unsafe impl ::windows_core::Interface for IHeaderCtrl2 { - type Vtable = IHeaderCtrl2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHeaderCtrl2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9757abb8_1b32_11d1_a7ce_00c04fd8d565); -} #[repr(C)] #[doc(hidden)] pub struct IHeaderCtrl2_Vtbl { @@ -1842,9 +1578,8 @@ pub struct IHeaderCtrl2_Vtbl { pub SetColumnFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ncolumn: u32, dwtype: u32, pfilterdata: *const MMC_FILTERDATA) -> ::windows_core::HRESULT, pub GetColumnFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ncolumn: u32, pdwtype: *mut u32, pfilterdata: *mut MMC_FILTERDATA) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IImageList(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IImageList, IImageList_Vtbl, 0x43136eb8_d36c_11cf_adbc_00aa00a80033); +::windows_core::imp::interface_hierarchy!(IImageList, ::windows_core::IUnknown); impl IImageList { pub unsafe fn ImageListSetIcon(&self, picon: *const isize, nloc: i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).ImageListSetIcon)(::windows_core::Interface::as_raw(self), picon, nloc).ok() @@ -1856,13 +1591,6 @@ impl IImageList { (::windows_core::Interface::vtable(self).ImageListSetStrip)(::windows_core::Interface::as_raw(self), pbmapsm, pbmaplg, nstartloc, cmask.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IImageList, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IImageList { - type Vtable = IImageList_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IImageList { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x43136eb8_d36c_11cf_adbc_00aa00a80033); -} #[repr(C)] #[doc(hidden)] pub struct IImageList_Vtbl { @@ -1870,30 +1598,21 @@ pub struct IImageList_Vtbl { pub ImageListSetIcon: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, picon: *const isize, nloc: i32) -> ::windows_core::HRESULT, pub ImageListSetStrip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbmapsm: *const isize, pbmaplg: *const isize, nstartloc: i32, cmask: super::super::Foundation::COLORREF) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMMCVersionInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMMCVersionInfo, IMMCVersionInfo_Vtbl, 0xa8d2c5fe_cdcb_4b9d_bde5_a27343ff54bc); +::windows_core::imp::interface_hierarchy!(IMMCVersionInfo, ::windows_core::IUnknown); impl IMMCVersionInfo { pub unsafe fn GetMMCVersion(&self, pversionmajor: *mut i32, pversionminor: *mut i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetMMCVersion)(::windows_core::Interface::as_raw(self), pversionmajor, pversionminor).ok() } } -::windows_core::imp::interface_hierarchy!(IMMCVersionInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMMCVersionInfo { - type Vtable = IMMCVersionInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMMCVersionInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa8d2c5fe_cdcb_4b9d_bde5_a27343ff54bc); -} #[repr(C)] #[doc(hidden)] pub struct IMMCVersionInfo_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetMMCVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pversionmajor: *mut i32, pversionminor: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMenuButton(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMenuButton, IMenuButton_Vtbl, 0x951ed750_d080_11d0_b197_000000000000); +::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 @@ -1916,13 +1635,6 @@ impl IMenuButton { (::windows_core::Interface::vtable(self).SetButtonState)(::windows_core::Interface::as_raw(self), idcommand, nstate, bstate.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMenuButton, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMenuButton { - type Vtable = IMenuButton_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMenuButton { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x951ed750_d080_11d0_b197_000000000000); -} #[repr(C)] #[doc(hidden)] pub struct IMenuButton_Vtbl { @@ -1931,9 +1643,8 @@ pub struct IMenuButton_Vtbl { pub SetButton: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, idcommand: i32, lpbuttontext: ::windows_core::PCWSTR, lptooltiptext: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub SetButtonState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, idcommand: i32, nstate: MMC_BUTTON_STATE, bstate: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMessageView(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMessageView, IMessageView_Vtbl, 0x80f94174_fccc_11d2_b991_00c04f8ecd78); +::windows_core::imp::interface_hierarchy!(IMessageView, ::windows_core::IUnknown); impl IMessageView { pub unsafe fn SetTitleText(&self, psztitletext: P0) -> ::windows_core::Result<()> where @@ -1954,13 +1665,6 @@ impl IMessageView { (::windows_core::Interface::vtable(self).Clear)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IMessageView, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMessageView { - type Vtable = IMessageView_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMessageView { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x80f94174_fccc_11d2_b991_00c04f8ecd78); -} #[repr(C)] #[doc(hidden)] pub struct IMessageView_Vtbl { @@ -1970,9 +1674,8 @@ pub struct IMessageView_Vtbl { pub SetIcon: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: IconIdentifier) -> ::windows_core::HRESULT, pub Clear: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INodeProperties(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INodeProperties, INodeProperties_Vtbl, 0x15bc4d24_a522_4406_aa55_0749537a6865); +::windows_core::imp::interface_hierarchy!(INodeProperties, ::windows_core::IUnknown); impl INodeProperties { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -1985,13 +1688,6 @@ impl INodeProperties { (::windows_core::Interface::vtable(self).GetProperty)(::windows_core::Interface::as_raw(self), pdataobject.into_param().abi(), szpropertyname.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(INodeProperties, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INodeProperties { - type Vtable = INodeProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INodeProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x15bc4d24_a522_4406_aa55_0749537a6865); -} #[repr(C)] #[doc(hidden)] pub struct INodeProperties_Vtbl { @@ -2001,9 +1697,8 @@ pub struct INodeProperties_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetProperty: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPropertySheetCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPropertySheetCallback, IPropertySheetCallback_Vtbl, 0x85de64dd_ef21_11cf_a285_00c04fd8dbe6); +::windows_core::imp::interface_hierarchy!(IPropertySheetCallback, ::windows_core::IUnknown); impl IPropertySheetCallback { #[doc = "Required features: `\"Win32_UI_Controls\"`"] #[cfg(feature = "Win32_UI_Controls")] @@ -2022,13 +1717,6 @@ impl IPropertySheetCallback { (::windows_core::Interface::vtable(self).RemovePage)(::windows_core::Interface::as_raw(self), hpage.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IPropertySheetCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPropertySheetCallback { - type Vtable = IPropertySheetCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPropertySheetCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x85de64dd_ef21_11cf_a285_00c04fd8dbe6); -} #[repr(C)] #[doc(hidden)] pub struct IPropertySheetCallback_Vtbl { @@ -2042,9 +1730,8 @@ pub struct IPropertySheetCallback_Vtbl { #[cfg(not(feature = "Win32_UI_Controls"))] RemovePage: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPropertySheetProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPropertySheetProvider, IPropertySheetProvider_Vtbl, 0x85de64de_ef21_11cf_a285_00c04fd8dbe6); +::windows_core::imp::interface_hierarchy!(IPropertySheetProvider, ::windows_core::IUnknown); impl IPropertySheetProvider { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -2080,13 +1767,6 @@ impl IPropertySheetProvider { (::windows_core::Interface::vtable(self).Show)(::windows_core::Interface::as_raw(self), window, page).ok() } } -::windows_core::imp::interface_hierarchy!(IPropertySheetProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPropertySheetProvider { - type Vtable = IPropertySheetProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPropertySheetProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x85de64de_ef21_11cf_a285_00c04fd8dbe6); -} #[repr(C)] #[doc(hidden)] pub struct IPropertySheetProvider_Vtbl { @@ -2103,9 +1783,8 @@ pub struct IPropertySheetProvider_Vtbl { pub AddExtensionPages: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Show: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, window: isize, page: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRequiredExtensions(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRequiredExtensions, IRequiredExtensions_Vtbl, 0x72782d7a_a4a0_11d1_af0f_00c04fb6dd2c); +::windows_core::imp::interface_hierarchy!(IRequiredExtensions, ::windows_core::IUnknown); impl IRequiredExtensions { pub unsafe fn EnableAllExtensions(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).EnableAllExtensions)(::windows_core::Interface::as_raw(self)).ok() @@ -2119,13 +1798,6 @@ impl IRequiredExtensions { (::windows_core::Interface::vtable(self).GetNextExtension)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IRequiredExtensions, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRequiredExtensions { - type Vtable = IRequiredExtensions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRequiredExtensions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x72782d7a_a4a0_11d1_af0f_00c04fb6dd2c); -} #[repr(C)] #[doc(hidden)] pub struct IRequiredExtensions_Vtbl { @@ -2134,9 +1806,8 @@ pub struct IRequiredExtensions_Vtbl { pub GetFirstExtension: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pextclsid: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, pub GetNextExtension: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pextclsid: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IResultData(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IResultData, IResultData_Vtbl, 0x31da5fa0_e0eb_11cf_9f21_00aa003ca9f6); +::windows_core::imp::interface_hierarchy!(IResultData, ::windows_core::IUnknown); impl IResultData { pub unsafe fn InsertItem(&self, item: *mut RESULTDATAITEM) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).InsertItem)(::windows_core::Interface::as_raw(self), item).ok() @@ -2195,13 +1866,6 @@ impl IResultData { (::windows_core::Interface::vtable(self).SetItemCount)(::windows_core::Interface::as_raw(self), nitemcount, dwoptions).ok() } } -::windows_core::imp::interface_hierarchy!(IResultData, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IResultData { - type Vtable = IResultData_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IResultData { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x31da5fa0_e0eb_11cf_9f21_00aa003ca9f6); -} #[repr(C)] #[doc(hidden)] pub struct IResultData_Vtbl { @@ -2222,9 +1886,8 @@ pub struct IResultData_Vtbl { pub SetDescBarText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, desctext: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub SetItemCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nitemcount: i32, dwoptions: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IResultData2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IResultData2, IResultData2_Vtbl, 0x0f36e0eb_a7f1_4a81_be5a_9247f7de4b1b); +::windows_core::imp::interface_hierarchy!(IResultData2, ::windows_core::IUnknown, IResultData); impl IResultData2 { pub unsafe fn InsertItem(&self, item: *mut RESULTDATAITEM) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.InsertItem)(::windows_core::Interface::as_raw(self), item).ok() @@ -2286,22 +1949,14 @@ impl IResultData2 { (::windows_core::Interface::vtable(self).RenameResultItem)(::windows_core::Interface::as_raw(self), itemid).ok() } } -::windows_core::imp::interface_hierarchy!(IResultData2, ::windows_core::IUnknown, IResultData); -unsafe impl ::windows_core::Interface for IResultData2 { - type Vtable = IResultData2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IResultData2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0f36e0eb_a7f1_4a81_be5a_9247f7de4b1b); -} #[repr(C)] #[doc(hidden)] pub struct IResultData2_Vtbl { pub base__: IResultData_Vtbl, pub RenameResultItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, itemid: isize) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IResultDataCompare(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IResultDataCompare, IResultDataCompare_Vtbl, 0xe8315a52_7a1a_11d0_a2d2_00c04fd909dd); +::windows_core::imp::interface_hierarchy!(IResultDataCompare, ::windows_core::IUnknown); impl IResultDataCompare { pub unsafe fn Compare(&self, luserparam: P0, cookiea: isize, cookieb: isize, pnresult: *mut i32) -> ::windows_core::Result<()> where @@ -2310,44 +1965,28 @@ impl IResultDataCompare { (::windows_core::Interface::vtable(self).Compare)(::windows_core::Interface::as_raw(self), luserparam.into_param().abi(), cookiea, cookieb, pnresult).ok() } } -::windows_core::imp::interface_hierarchy!(IResultDataCompare, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IResultDataCompare { - type Vtable = IResultDataCompare_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IResultDataCompare { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe8315a52_7a1a_11d0_a2d2_00c04fd909dd); -} #[repr(C)] #[doc(hidden)] pub struct IResultDataCompare_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Compare: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, luserparam: super::super::Foundation::LPARAM, cookiea: isize, cookieb: isize, pnresult: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IResultDataCompareEx(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IResultDataCompareEx, IResultDataCompareEx_Vtbl, 0x96933476_0251_11d3_aeb0_00c04f8ecd78); +::windows_core::imp::interface_hierarchy!(IResultDataCompareEx, ::windows_core::IUnknown); impl IResultDataCompareEx { pub unsafe fn Compare(&self, prdc: *const RDCOMPARE) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).Compare)(::windows_core::Interface::as_raw(self), prdc, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IResultDataCompareEx, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IResultDataCompareEx { - type Vtable = IResultDataCompareEx_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IResultDataCompareEx { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x96933476_0251_11d3_aeb0_00c04f8ecd78); -} #[repr(C)] #[doc(hidden)] pub struct IResultDataCompareEx_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Compare: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prdc: *const RDCOMPARE, pnresult: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IResultOwnerData(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IResultOwnerData, IResultOwnerData_Vtbl, 0x9cb396d8_ea83_11d0_aef1_00c04fb6dd2c); +::windows_core::imp::interface_hierarchy!(IResultOwnerData, ::windows_core::IUnknown); impl IResultOwnerData { pub unsafe fn FindItem(&self, pfindinfo: *const RESULTFINDINFO) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2363,13 +2002,6 @@ impl IResultOwnerData { (::windows_core::Interface::vtable(self).SortItems)(::windows_core::Interface::as_raw(self), ncolumn, dwsortoptions, luserparam.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IResultOwnerData, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IResultOwnerData { - type Vtable = IResultOwnerData_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IResultOwnerData { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9cb396d8_ea83_11d0_aef1_00c04fb6dd2c); -} #[repr(C)] #[doc(hidden)] pub struct IResultOwnerData_Vtbl { @@ -2378,9 +2010,8 @@ pub struct IResultOwnerData_Vtbl { pub CacheHint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nstartindex: i32, nendindex: i32) -> ::windows_core::HRESULT, pub SortItems: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ncolumn: i32, dwsortoptions: u32, luserparam: super::super::Foundation::LPARAM) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISnapinAbout(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISnapinAbout, ISnapinAbout_Vtbl, 0x1245208c_a151_11d0_a7d7_00c04fd909dd); +::windows_core::imp::interface_hierarchy!(ISnapinAbout, ::windows_core::IUnknown); impl ISnapinAbout { pub unsafe fn GetSnapinDescription(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); @@ -2406,13 +2037,6 @@ impl ISnapinAbout { (::windows_core::Interface::vtable(self).GetStaticFolderImage)(::windows_core::Interface::as_raw(self), hsmallimage, hsmallimageopen, hlargeimage, cmask).ok() } } -::windows_core::imp::interface_hierarchy!(ISnapinAbout, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISnapinAbout { - type Vtable = ISnapinAbout_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISnapinAbout { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1245208c_a151_11d0_a7d7_00c04fd909dd); -} #[repr(C)] #[doc(hidden)] pub struct ISnapinAbout_Vtbl { @@ -2429,31 +2053,22 @@ pub struct ISnapinAbout_Vtbl { #[cfg(not(feature = "Win32_Graphics_Gdi"))] GetStaticFolderImage: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISnapinHelp(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISnapinHelp, ISnapinHelp_Vtbl, 0xa6b15ace_df59_11d0_a7dd_00c04fd909dd); +::windows_core::imp::interface_hierarchy!(ISnapinHelp, ::windows_core::IUnknown); impl ISnapinHelp { pub unsafe fn GetHelpTopic(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetHelpTopic)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISnapinHelp, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISnapinHelp { - type Vtable = ISnapinHelp_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISnapinHelp { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa6b15ace_df59_11d0_a7dd_00c04fd909dd); -} #[repr(C)] #[doc(hidden)] pub struct ISnapinHelp_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetHelpTopic: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpcompiledhelpfile: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISnapinHelp2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISnapinHelp2, ISnapinHelp2_Vtbl, 0x4861a010_20f9_11d2_a510_00c04fb6dd2c); +::windows_core::imp::interface_hierarchy!(ISnapinHelp2, ::windows_core::IUnknown, ISnapinHelp); impl ISnapinHelp2 { pub unsafe fn GetHelpTopic(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); @@ -2464,22 +2079,14 @@ impl ISnapinHelp2 { (::windows_core::Interface::vtable(self).GetLinkedTopics)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISnapinHelp2, ::windows_core::IUnknown, ISnapinHelp); -unsafe impl ::windows_core::Interface for ISnapinHelp2 { - type Vtable = ISnapinHelp2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISnapinHelp2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4861a010_20f9_11d2_a510_00c04fb6dd2c); -} #[repr(C)] #[doc(hidden)] pub struct ISnapinHelp2_Vtbl { pub base__: ISnapinHelp_Vtbl, pub GetLinkedTopics: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpcompiledhelpfiles: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISnapinProperties(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISnapinProperties, ISnapinProperties_Vtbl, 0xf7889da9_4a02_4837_bf89_1a6f2a021010); +::windows_core::imp::interface_hierarchy!(ISnapinProperties, ::windows_core::IUnknown); impl ISnapinProperties { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -2501,13 +2108,6 @@ impl ISnapinProperties { (::windows_core::Interface::vtable(self).PropertiesChanged)(::windows_core::Interface::as_raw(self), pproperties.len().try_into().unwrap(), ::core::mem::transmute(pproperties.as_ptr())).ok() } } -::windows_core::imp::interface_hierarchy!(ISnapinProperties, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISnapinProperties { - type Vtable = ISnapinProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISnapinProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf7889da9_4a02_4837_bf89_1a6f2a021010); -} #[repr(C)] #[doc(hidden)] pub struct ISnapinProperties_Vtbl { @@ -2522,9 +2122,8 @@ pub struct ISnapinProperties_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] PropertiesChanged: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISnapinPropertiesCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISnapinPropertiesCallback, ISnapinPropertiesCallback_Vtbl, 0xa50fa2e5_7e61_45eb_a8d4_9a07b3e851a8); +::windows_core::imp::interface_hierarchy!(ISnapinPropertiesCallback, ::windows_core::IUnknown); impl ISnapinPropertiesCallback { pub unsafe fn AddPropertyName(&self, pszpropname: P0, dwflags: u32) -> ::windows_core::Result<()> where @@ -2533,22 +2132,14 @@ impl ISnapinPropertiesCallback { (::windows_core::Interface::vtable(self).AddPropertyName)(::windows_core::Interface::as_raw(self), pszpropname.into_param().abi(), dwflags).ok() } } -::windows_core::imp::interface_hierarchy!(ISnapinPropertiesCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISnapinPropertiesCallback { - type Vtable = ISnapinPropertiesCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISnapinPropertiesCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa50fa2e5_7e61_45eb_a8d4_9a07b3e851a8); -} #[repr(C)] #[doc(hidden)] pub struct ISnapinPropertiesCallback_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub AddPropertyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszpropname: ::windows_core::PCWSTR, dwflags: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStringTable(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IStringTable, IStringTable_Vtbl, 0xde40b7a4_0f65_11d2_8e25_00c04f8ecd78); +::windows_core::imp::interface_hierarchy!(IStringTable, ::windows_core::IUnknown); impl IStringTable { pub unsafe fn AddString(&self, pszadd: P0) -> ::windows_core::Result where @@ -2584,13 +2175,6 @@ impl IStringTable { (::windows_core::Interface::vtable(self).Enumerate)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IStringTable, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStringTable { - type Vtable = IStringTable_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStringTable { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xde40b7a4_0f65_11d2_8e25_00c04f8ecd78); -} #[repr(C)] #[doc(hidden)] pub struct IStringTable_Vtbl { @@ -2606,9 +2190,8 @@ pub struct IStringTable_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Enumerate: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IToolbar(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IToolbar, IToolbar_Vtbl, 0x43136eb9_d36c_11cf_adbc_00aa00a80033); +::windows_core::imp::interface_hierarchy!(IToolbar, ::windows_core::IUnknown); impl IToolbar { #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] #[cfg(feature = "Win32_Graphics_Gdi")] @@ -2639,13 +2222,6 @@ impl IToolbar { (::windows_core::Interface::vtable(self).SetButtonState)(::windows_core::Interface::as_raw(self), idcommand, nstate, bstate.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IToolbar, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IToolbar { - type Vtable = IToolbar_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IToolbar { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x43136eb9_d36c_11cf_adbc_00aa00a80033); -} #[repr(C)] #[doc(hidden)] pub struct IToolbar_Vtbl { @@ -2660,32 +2236,28 @@ pub struct IToolbar_Vtbl { pub GetButtonState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, idcommand: i32, nstate: MMC_BUTTON_STATE, pstate: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub SetButtonState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, idcommand: i32, nstate: MMC_BUTTON_STATE, bstate: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IViewExtensionCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IViewExtensionCallback, IViewExtensionCallback_Vtbl, 0x34dd928a_7599_41e5_9f5e_d6bc3062c2da); +::windows_core::imp::interface_hierarchy!(IViewExtensionCallback, ::windows_core::IUnknown); impl IViewExtensionCallback { pub unsafe fn AddView(&self, pextviewdata: *const MMC_EXT_VIEW_DATA) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).AddView)(::windows_core::Interface::as_raw(self), pextviewdata).ok() } } -::windows_core::imp::interface_hierarchy!(IViewExtensionCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IViewExtensionCallback { - type Vtable = IViewExtensionCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IViewExtensionCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x34dd928a_7599_41e5_9f5e_d6bc3062c2da); -} #[repr(C)] #[doc(hidden)] pub struct IViewExtensionCallback_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub AddView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pextviewdata: *const MMC_EXT_VIEW_DATA) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct MenuItem(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + MenuItem, + MenuItem_Vtbl, + 0x0178fad1_b361_4b27_96ad_67c57ebf2e1d +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(MenuItem, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl MenuItem { pub unsafe fn DisplayName(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -2713,16 +2285,6 @@ impl MenuItem { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(MenuItem, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for MenuItem { - type Vtable = MenuItem_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for MenuItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0178fad1_b361_4b27_96ad_67c57ebf2e1d); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct MenuItem_Vtbl { @@ -2734,11 +2296,15 @@ pub struct MenuItem_Vtbl { pub Execute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Enabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enabled: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct Node(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + Node, + Node_Vtbl, + 0xf81ed800_7839_4447_945d_8e15da59ca55 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(Node, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl Node { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -2766,16 +2332,6 @@ impl Node { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(Node, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for Node { - type Vtable = Node_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for Node { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf81ed800_7839_4447_945d_8e15da59ca55); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct Node_Vtbl { @@ -2786,11 +2342,15 @@ pub struct Node_Vtbl { pub IsScopeNode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, isscopenode: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub Nodetype: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nodetype: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct Nodes(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + Nodes, + Nodes_Vtbl, + 0x313b01df_b22f_4d42_b1b8_483cdcf51d35 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(Nodes, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl Nodes { pub unsafe fn _NewEnum(&self) -> ::windows_core::Result<::windows_core::IUnknown> { @@ -2809,16 +2369,6 @@ impl Nodes { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(Nodes, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for Nodes { - type Vtable = Nodes_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for Nodes { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x313b01df_b22f_4d42_b1b8_483cdcf51d35); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct Nodes_Vtbl { @@ -2830,11 +2380,15 @@ pub struct Nodes_Vtbl { Item: usize, pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, count: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct Properties(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + Properties, + Properties_Vtbl, + 0x2886abc2_a425_42b2_91c6_e25c0e04581c +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(Properties, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl Properties { pub unsafe fn _NewEnum(&self) -> ::windows_core::Result<::windows_core::IUnknown> { @@ -2862,16 +2416,6 @@ impl Properties { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(Properties, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for Properties { - type Vtable = Properties_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for Properties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2886abc2_a425_42b2_91c6_e25c0e04581c); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct Properties_Vtbl { @@ -2884,11 +2428,15 @@ pub struct Properties_Vtbl { pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, count: *mut i32) -> ::windows_core::HRESULT, pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct Property(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + Property, + Property_Vtbl, + 0x4600c3a5_e301_41d8_b6d0_ef2e4212e0ca +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(Property, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl Property { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2908,16 +2456,6 @@ impl Property { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(Property, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for Property { - type Vtable = Property_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for Property { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4600c3a5_e301_41d8_b6d0_ef2e4212e0ca); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct Property_Vtbl { @@ -2932,11 +2470,15 @@ pub struct Property_Vtbl { SetValue: usize, pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ScopeNamespace(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ScopeNamespace, + ScopeNamespace_Vtbl, + 0xebbb48dc_1a3b_4d86_b786_c21b28389012 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ScopeNamespace, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ScopeNamespace { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2982,16 +2524,6 @@ impl ScopeNamespace { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ScopeNamespace, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ScopeNamespace { - type Vtable = ScopeNamespace_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ScopeNamespace { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xebbb48dc_1a3b_4d86_b786_c21b28389012); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ScopeNamespace_Vtbl { @@ -3017,11 +2549,15 @@ pub struct ScopeNamespace_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Expand: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct SnapIn(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + SnapIn, + SnapIn_Vtbl, + 0x3be910f6_3459_49c6_a1bb_41e6be9df3ea +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(SnapIn, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl SnapIn { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -3060,16 +2596,6 @@ impl SnapIn { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(SnapIn, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for SnapIn { - type Vtable = SnapIn_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for SnapIn { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3be910f6_3459_49c6_a1bb_41e6be9df3ea); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct SnapIn_Vtbl { @@ -3088,11 +2614,15 @@ pub struct SnapIn_Vtbl { Properties: usize, pub EnableAllExtensions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enable: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct SnapIns(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + SnapIns, + SnapIns_Vtbl, + 0x2ef3de1d_b12a_49d1_92c5_0b00798768f1 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(SnapIns, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl SnapIns { pub unsafe fn _NewEnum(&self) -> ::windows_core::Result<::windows_core::IUnknown> { @@ -3128,16 +2658,6 @@ impl SnapIns { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(SnapIns, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for SnapIns { - type Vtable = SnapIns_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for SnapIns { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2ef3de1d_b12a_49d1_92c5_0b00798768f1); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct SnapIns_Vtbl { @@ -3157,11 +2677,15 @@ pub struct SnapIns_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Remove: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct View(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + View, + View_Vtbl, + 0x6efc2da2_b38c_457e_9abb_ed2d189b8c38 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(View, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl View { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3403,16 +2927,6 @@ impl View { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(View, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for View { - type Vtable = View_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for View { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6efc2da2_b38c_457e_9abb_ed2d189b8c38); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct View_Vtbl { @@ -3529,11 +3043,15 @@ pub struct View_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] ControlObject: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct Views(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + Views, + Views_Vtbl, + 0xd6b8c29d_a1ff_4d72_aab0_e381e9b9338d +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(Views, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl Views { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3560,16 +3078,6 @@ impl Views { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(Views, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for Views { - type Vtable = Views_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for Views { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd6b8c29d_a1ff_4d72_aab0_e381e9b9338d); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct Views_Vtbl { @@ -3585,11 +3093,15 @@ pub struct Views_Vtbl { Add: usize, pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct _AppEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + _AppEvents, + _AppEvents_Vtbl, + 0xde46cbdd_53f5_4635_af54_4fe71e923d3f +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(_AppEvents, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl _AppEvents { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3690,16 +3202,6 @@ impl _AppEvents { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(_AppEvents, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for _AppEvents { - type Vtable = _AppEvents_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for _AppEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xde46cbdd_53f5_4635_af54_4fe71e923d3f); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct _AppEvents_Vtbl { @@ -3750,11 +3252,15 @@ pub struct _AppEvents_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] OnListUpdated: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct _Application(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + _Application, + _Application_Vtbl, + 0xa3afb9cc_b653_4741_86ab_f0470ec1384c +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(_Application, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl _Application { pub unsafe fn Help(&self) { @@ -3811,16 +3317,6 @@ impl _Application { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(_Application, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for _Application { - type Vtable = _Application_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for _Application { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa3afb9cc_b653_4741_86ab_f0470ec1384c); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct _Application_Vtbl { @@ -3844,11 +3340,15 @@ pub struct _Application_Vtbl { pub VersionMajor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, versionmajor: *mut i32) -> ::windows_core::HRESULT, pub VersionMinor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, versionminor: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct _EventConnector(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + _EventConnector, + _EventConnector_Vtbl, + 0xc0bccd30_de44_4528_8403_a05a6a1cc8ea +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(_EventConnector, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl _EventConnector { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3864,16 +3364,6 @@ impl _EventConnector { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(_EventConnector, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for _EventConnector { - type Vtable = _EventConnector_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for _EventConnector { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc0bccd30_de44_4528_8403_a05a6a1cc8ea); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct _EventConnector_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/System/Ole/impl.rs b/crates/libs/windows/src/Windows/Win32/System/Ole/impl.rs index 854319e8c0..fdc547c9f3 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Ole/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Ole/impl.rs @@ -16,7 +16,7 @@ impl IAdviseSinkEx_Vtbl { Self { base__: super::Com::IAdviseSink_Vtbl::new::(), OnViewStatusChange: OnViewStatusChange:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Variant\"`"] @@ -37,7 +37,7 @@ impl ICanHandleException_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CanHandleException: CanHandleException:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -81,7 +81,7 @@ impl IClassFactory2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IContinue_Impl: Sized { @@ -98,7 +98,7 @@ impl IContinue_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), FContinue: FContinue:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IContinueCallback_Impl: Sized { @@ -125,7 +125,7 @@ impl IContinueCallback_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICreateErrorInfo_Impl: Sized { @@ -173,7 +173,7 @@ impl ICreateErrorInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Variant\"`"] @@ -351,7 +351,7 @@ impl ICreateTypeInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Variant\"`"] @@ -473,7 +473,7 @@ impl ICreateTypeInfo2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -566,7 +566,7 @@ impl ICreateTypeLib_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Variant\"`"] @@ -611,7 +611,7 @@ impl ICreateTypeLib2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDispError_Impl: Sized { @@ -696,7 +696,7 @@ impl IDispError_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Variant\"`"] @@ -799,7 +799,7 @@ impl IDispatchEx_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_SystemServices\"`"] @@ -830,7 +830,7 @@ impl IDropSource_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDropSourceNotify_Impl: Sized { @@ -857,7 +857,7 @@ impl IDropSourceNotify_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_SystemServices\"`"] @@ -902,7 +902,7 @@ impl IDropTarget_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnterpriseDropTarget_Impl: Sized { @@ -935,7 +935,7 @@ impl IEnterpriseDropTarget_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_WindowsAndMessaging\"`"] @@ -986,7 +986,7 @@ impl IEnumOLEVERB_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumOleDocumentViews_Impl: Sized { @@ -1033,7 +1033,7 @@ impl IEnumOleDocumentViews_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumOleUndoUnits_Impl: Sized { @@ -1080,7 +1080,7 @@ impl IEnumOleUndoUnits_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Variant\"`"] @@ -1131,7 +1131,7 @@ impl IEnumVARIANT_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_System_Com\"`"] @@ -1376,7 +1376,7 @@ impl IFont_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Variant\"`"] @@ -1390,7 +1390,7 @@ impl IFontDisp_Vtbl { Self { base__: super::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Variant\"`"] @@ -1404,7 +1404,7 @@ impl IFontEventsDisp_Vtbl { Self { base__: super::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IGetOleObject_Impl: Sized { @@ -1421,7 +1421,7 @@ impl IGetOleObject_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetOleObject: GetOleObject:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IGetVBAObject_Impl: Sized { @@ -1438,7 +1438,7 @@ impl IGetVBAObject_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetObject: GetObject:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IObjectIdentity_Impl: Sized { @@ -1455,7 +1455,7 @@ impl IObjectIdentity_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), IsEqualObject: IsEqualObject:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IObjectWithSite_Impl: Sized { @@ -1482,7 +1482,7 @@ impl IObjectWithSite_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1553,7 +1553,7 @@ impl IOleAdviseHolder_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_System_Com_StructuredStorage\"`"] @@ -1617,7 +1617,7 @@ impl IOleCache_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_System_Com_StructuredStorage\"`"] @@ -1648,7 +1648,7 @@ impl IOleCache2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1679,7 +1679,7 @@ impl IOleCacheControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1750,7 +1750,7 @@ impl IOleClientSite_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Variant\"`"] @@ -1781,7 +1781,7 @@ impl IOleCommandTarget_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1818,7 +1818,7 @@ impl IOleContainer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_UI_WindowsAndMessaging\"`"] @@ -1863,7 +1863,7 @@ impl IOleControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_UI_WindowsAndMessaging\"`"] @@ -1935,7 +1935,7 @@ impl IOleControlSite_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1985,7 +1985,7 @@ impl IOleDocument_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IOleDocumentSite_Impl: Sized { @@ -2002,7 +2002,7 @@ impl IOleDocumentSite_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), ActivateMe: ActivateMe:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2134,7 +2134,7 @@ impl IOleDocumentView_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_WindowsAndMessaging\"`"] @@ -2186,7 +2186,7 @@ impl IOleInPlaceActiveObject_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_UI_WindowsAndMessaging\"`"] @@ -2245,7 +2245,7 @@ impl IOleInPlaceFrame_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IOleInPlaceObject_Impl: Sized + IOleWindow_Impl { @@ -2286,7 +2286,7 @@ impl IOleInPlaceObject_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IOleInPlaceObjectWindowless_Impl: Sized + IOleInPlaceObject_Impl { @@ -2325,7 +2325,7 @@ impl IOleInPlaceObjectWindowless_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_UI_WindowsAndMessaging\"`"] @@ -2412,7 +2412,7 @@ impl IOleInPlaceSite_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_UI_WindowsAndMessaging\"`"] @@ -2450,7 +2450,7 @@ impl IOleInPlaceSiteEx_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_UI_WindowsAndMessaging\"`"] @@ -2563,7 +2563,7 @@ impl IOleInPlaceSiteWindowless_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IOleInPlaceUIWindow_Impl: Sized + IOleWindow_Impl { @@ -2610,7 +2610,7 @@ impl IOleInPlaceUIWindow_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2648,7 +2648,7 @@ impl IOleItemContainer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2766,7 +2766,7 @@ impl IOleLink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_System_Com\"`, `\"Win32_UI_WindowsAndMessaging\"`"] @@ -2990,7 +2990,7 @@ impl IOleObject_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IOleParentUndoUnit_Impl: Sized + IOleUndoUnit_Impl { @@ -3044,7 +3044,7 @@ impl IOleParentUndoUnit_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IOleUILinkContainerA_Impl: Sized { @@ -3119,7 +3119,7 @@ impl IOleUILinkContainerA_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IOleUILinkContainerW_Impl: Sized { @@ -3194,7 +3194,7 @@ impl IOleUILinkContainerW_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IOleUILinkInfoA_Impl: Sized + IOleUILinkContainerA_Impl { @@ -3217,7 +3217,7 @@ impl IOleUILinkInfoA_Vtbl { Self { base__: IOleUILinkContainerA_Vtbl::new::(), GetLastUpdate: GetLastUpdate:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IOleUILinkInfoW_Impl: Sized + IOleUILinkContainerW_Impl { @@ -3240,7 +3240,7 @@ impl IOleUILinkInfoW_Vtbl { Self { base__: IOleUILinkContainerW_Vtbl::new::(), GetLastUpdate: GetLastUpdate:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IOleUIObjInfoA_Impl: Sized { @@ -3288,7 +3288,7 @@ impl IOleUIObjInfoA_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IOleUIObjInfoW_Impl: Sized { @@ -3336,7 +3336,7 @@ impl IOleUIObjInfoW_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IOleUndoManager_Impl: Sized { @@ -3463,7 +3463,7 @@ impl IOleUndoManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IOleUndoUnit_Impl: Sized { @@ -3510,7 +3510,7 @@ impl IOleUndoUnit_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IOleWindow_Impl: Sized { @@ -3543,7 +3543,7 @@ impl IOleWindow_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3564,7 +3564,7 @@ impl IParseDisplayName_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), ParseDisplayName: ParseDisplayName:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Variant\"`"] @@ -3627,7 +3627,7 @@ impl IPerPropertyBrowsing_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`"] @@ -3665,7 +3665,7 @@ impl IPersistPropertyBag_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`"] @@ -3710,7 +3710,7 @@ impl IPersistPropertyBag2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_System_Com\"`"] @@ -3879,7 +3879,7 @@ impl IPicture_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_System_Com\"`"] @@ -4048,7 +4048,7 @@ impl IPicture2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Variant\"`"] @@ -4062,7 +4062,7 @@ impl IPictureDisp_Vtbl { Self { base__: super::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IPointerInactive_Impl: Sized { @@ -4102,7 +4102,7 @@ impl IPointerInactive_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_System_Com_StructuredStorage\"`"] @@ -4140,7 +4140,7 @@ impl IPrint_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPropertyNotifySink_Impl: Sized { @@ -4167,7 +4167,7 @@ impl IPropertyNotifySink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_WindowsAndMessaging\"`"] @@ -4261,7 +4261,7 @@ impl IPropertyPage_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_WindowsAndMessaging\"`"] @@ -4282,7 +4282,7 @@ impl IPropertyPage2_Vtbl { Self { base__: IPropertyPage_Vtbl::new::(), EditProperty: EditProperty:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_UI_WindowsAndMessaging\"`"] @@ -4339,7 +4339,7 @@ impl IPropertyPageSite_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IProtectFocus_Impl: Sized { @@ -4362,7 +4362,7 @@ impl IProtectFocus_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), AllowFocusChange: AllowFocusChange:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_WindowsAndMessaging\"`"] @@ -4418,7 +4418,7 @@ impl IProtectedModeMenuServices_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -4445,7 +4445,7 @@ impl IProvideClassInfo_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetClassInfo: GetClassInfo:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -4472,7 +4472,7 @@ impl IProvideClassInfo2_Vtbl { Self { base__: IProvideClassInfo_Vtbl::new::(), GetGUID: GetGUID:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -4509,7 +4509,7 @@ impl IProvideMultipleClassInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IProvideRuntimeContext_Impl: Sized { @@ -4526,7 +4526,7 @@ impl IProvideRuntimeContext_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetCurrentSourceContext: GetCurrentSourceContext:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_System_Com\"`"] @@ -4570,7 +4570,7 @@ impl IQuickActivate_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Variant\"`"] @@ -4729,7 +4729,7 @@ impl IRecordInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISimpleFrameSite_Impl: Sized { @@ -4756,7 +4756,7 @@ impl ISimpleFrameSite_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISpecifyPropertyPages_Impl: Sized { @@ -4779,7 +4779,7 @@ impl ISpecifyPropertyPages_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetPages: GetPages:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -4816,7 +4816,7 @@ impl ITypeChangeEvents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -4843,7 +4843,7 @@ impl ITypeFactory_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CreateFromTypeInfo: CreateFromTypeInfo:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITypeMarshal_Impl: Sized { @@ -4890,7 +4890,7 @@ impl ITypeMarshal_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Variant\"`"] @@ -4911,7 +4911,7 @@ impl IVBFormat_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Format: Format:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -4938,7 +4938,7 @@ impl IVBGetControl_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), EnumControls: EnumControls:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Variant\"`"] @@ -4959,7 +4959,7 @@ impl IVariantChangeType_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), ChangeType: ChangeType:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_System_Com\"`"] @@ -5018,7 +5018,7 @@ impl IViewObject_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_System_Com\"`"] @@ -5045,7 +5045,7 @@ impl IViewObject2_Vtbl { Self { base__: IViewObject_Vtbl::new::(), GetExtent: GetExtent:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_System_Com\"`"] @@ -5127,7 +5127,7 @@ impl IViewObjectEx_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IZoomEvents_Impl: Sized { @@ -5144,6 +5144,6 @@ impl IZoomEvents_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnZoomPercentChanged: OnZoomPercentChanged:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 a1ecbecb1b..433c02c539 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Ole/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Ole/mod.rs @@ -460,7 +460,7 @@ where pub unsafe fn OleCreatePictureIndirect(lppictdesc: *const PICTDESC, fown: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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(); @@ -3343,11 +3343,15 @@ where let mut result__ = ::std::mem::zeroed(); VectorFromBstr(bstr.into_param().abi(), &mut result__).from_abi(result__) } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAdviseSinkEx(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IAdviseSinkEx, + IAdviseSinkEx_Vtbl, + 0x3af24290_0c96_11ce_a0cf_00aa00600ab8 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IAdviseSinkEx, ::windows_core::IUnknown, super::Com::IAdviseSink); #[cfg(feature = "Win32_System_Com")] impl IAdviseSinkEx { #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_System_Com_StructuredStorage\"`"] @@ -3383,25 +3387,14 @@ impl IAdviseSinkEx { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IAdviseSinkEx, ::windows_core::IUnknown, super::Com::IAdviseSink); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IAdviseSinkEx { - type Vtable = IAdviseSinkEx_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IAdviseSinkEx { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3af24290_0c96_11ce_a0cf_00aa00600ab8); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IAdviseSinkEx_Vtbl { pub base__: super::Com::IAdviseSink_Vtbl, pub OnViewStatusChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwviewstatus: u32), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICanHandleException(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICanHandleException, ICanHandleException_Vtbl, 0xc5598e60_b307_11d1_b27d_006008c3fbfb); +::windows_core::imp::interface_hierarchy!(ICanHandleException, ::windows_core::IUnknown); impl ICanHandleException { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Variant"))] @@ -3409,13 +3402,6 @@ impl ICanHandleException { (::windows_core::Interface::vtable(self).CanHandleException)(::windows_core::Interface::as_raw(self), pexcepinfo, pvar).ok() } } -::windows_core::imp::interface_hierarchy!(ICanHandleException, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICanHandleException { - type Vtable = ICanHandleException_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICanHandleException { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc5598e60_b307_11d1_b27d_006008c3fbfb); -} #[repr(C)] #[doc(hidden)] pub struct ICanHandleException_Vtbl { @@ -3425,11 +3411,15 @@ pub struct ICanHandleException_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Variant")))] CanHandleException: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IClassFactory2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IClassFactory2, + IClassFactory2_Vtbl, + 0xb196b28f_bab4_101a_b69c_00aa00341d07 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IClassFactory2, ::windows_core::IUnknown, super::Com::IClassFactory); #[cfg(feature = "Win32_System_Com")] impl IClassFactory2 { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3437,7 +3427,7 @@ impl IClassFactory2 { pub unsafe fn CreateInstance(&self, punkouter: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam<::windows_core::IUnknown>, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -3462,23 +3452,13 @@ impl IClassFactory2 { P0: ::windows_core::IntoParam<::windows_core::IUnknown>, P1: ::windows_core::IntoParam<::windows_core::IUnknown>, P2: ::windows_core::IntoParam<::windows_core::BSTR>, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IClassFactory2, ::windows_core::IUnknown, super::Com::IClassFactory); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IClassFactory2 { - type Vtable = IClassFactory2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IClassFactory2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb196b28f_bab4_101a_b69c_00aa00341d07); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IClassFactory2_Vtbl { @@ -3487,30 +3467,21 @@ pub struct IClassFactory2_Vtbl { pub RequestLicKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwreserved: u32, pbstrkey: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub CreateInstanceLic: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punkouter: *mut ::core::ffi::c_void, punkreserved: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, bstrkey: ::std::mem::MaybeUninit<::windows_core::BSTR>, ppvobj: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContinue(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IContinue, IContinue_Vtbl, 0x0000012a_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IContinue, ::windows_core::IUnknown); impl IContinue { pub unsafe fn FContinue(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).FContinue)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IContinue, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContinue { - type Vtable = IContinue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContinue { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0000012a_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IContinue_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub FContinue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContinueCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IContinueCallback, IContinueCallback_Vtbl, 0xb722bcca_4e68_101b_a2bc_00aa00404770); +::windows_core::imp::interface_hierarchy!(IContinueCallback, ::windows_core::IUnknown); impl IContinueCallback { pub unsafe fn FContinue(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).FContinue)(::windows_core::Interface::as_raw(self)).ok() @@ -3522,13 +3493,6 @@ impl IContinueCallback { (::windows_core::Interface::vtable(self).FContinuePrinting)(::windows_core::Interface::as_raw(self), ncntprinted, ncurpage, pwszprintstatus.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IContinueCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContinueCallback { - type Vtable = IContinueCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContinueCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb722bcca_4e68_101b_a2bc_00aa00404770); -} #[repr(C)] #[doc(hidden)] pub struct IContinueCallback_Vtbl { @@ -3536,9 +3500,8 @@ pub struct IContinueCallback_Vtbl { pub FContinue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub FContinuePrinting: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ncntprinted: i32, ncurpage: i32, pwszprintstatus: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICreateErrorInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICreateErrorInfo, ICreateErrorInfo_Vtbl, 0x22f03340_547d_101b_8e65_08002b2bd119); +::windows_core::imp::interface_hierarchy!(ICreateErrorInfo, ::windows_core::IUnknown); impl ICreateErrorInfo { pub unsafe fn SetGUID(&self, rguid: *const ::windows_core::GUID) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetGUID)(::windows_core::Interface::as_raw(self), rguid).ok() @@ -3565,13 +3528,6 @@ impl ICreateErrorInfo { (::windows_core::Interface::vtable(self).SetHelpContext)(::windows_core::Interface::as_raw(self), dwhelpcontext).ok() } } -::windows_core::imp::interface_hierarchy!(ICreateErrorInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICreateErrorInfo { - type Vtable = ICreateErrorInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICreateErrorInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x22f03340_547d_101b_8e65_08002b2bd119); -} #[repr(C)] #[doc(hidden)] pub struct ICreateErrorInfo_Vtbl { @@ -3582,9 +3538,8 @@ pub struct ICreateErrorInfo_Vtbl { pub SetHelpFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, szhelpfile: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub SetHelpContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwhelpcontext: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICreateTypeInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICreateTypeInfo, ICreateTypeInfo_Vtbl, 0x00020405_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(ICreateTypeInfo, ::windows_core::IUnknown); impl ICreateTypeInfo { pub unsafe fn SetGuid(&self, guid: *const ::windows_core::GUID) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetGuid)(::windows_core::Interface::as_raw(self), guid).ok() @@ -3693,13 +3648,6 @@ impl ICreateTypeInfo { (::windows_core::Interface::vtable(self).LayOut)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ICreateTypeInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICreateTypeInfo { - type Vtable = ICreateTypeInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICreateTypeInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00020405_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct ICreateTypeInfo_Vtbl { @@ -3746,9 +3694,8 @@ pub struct ICreateTypeInfo_Vtbl { SetTypeIdldesc: usize, pub LayOut: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICreateTypeInfo2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICreateTypeInfo2, ICreateTypeInfo2_Vtbl, 0x0002040e_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(ICreateTypeInfo2, ::windows_core::IUnknown, ICreateTypeInfo); impl ICreateTypeInfo2 { pub unsafe fn SetGuid(&self, guid: *const ::windows_core::GUID) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.SetGuid)(::windows_core::Interface::as_raw(self), guid).ok() @@ -3917,13 +3864,6 @@ impl ICreateTypeInfo2 { (::windows_core::Interface::vtable(self).SetName)(::windows_core::Interface::as_raw(self), szname.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ICreateTypeInfo2, ::windows_core::IUnknown, ICreateTypeInfo); -unsafe impl ::windows_core::Interface for ICreateTypeInfo2 { - type Vtable = ICreateTypeInfo2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICreateTypeInfo2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0002040e_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct ICreateTypeInfo2_Vtbl { @@ -3962,9 +3902,8 @@ pub struct ICreateTypeInfo2_Vtbl { pub Invalidate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, szname: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICreateTypeLib(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICreateTypeLib, ICreateTypeLib_Vtbl, 0x00020406_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(ICreateTypeLib, ::windows_core::IUnknown); impl ICreateTypeLib { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -4012,13 +3951,6 @@ impl ICreateTypeLib { (::windows_core::Interface::vtable(self).SaveAllChanges)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ICreateTypeLib, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICreateTypeLib { - type Vtable = ICreateTypeLib_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICreateTypeLib { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00020406_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct ICreateTypeLib_Vtbl { @@ -4037,9 +3969,8 @@ pub struct ICreateTypeLib_Vtbl { pub SetLibFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulibflags: u32) -> ::windows_core::HRESULT, pub SaveAllChanges: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICreateTypeLib2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICreateTypeLib2, ICreateTypeLib2_Vtbl, 0x0002040f_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(ICreateTypeLib2, ::windows_core::IUnknown, ICreateTypeLib); impl ICreateTypeLib2 { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -4107,13 +4038,6 @@ impl ICreateTypeLib2 { (::windows_core::Interface::vtable(self).SetHelpStringDll)(::windows_core::Interface::as_raw(self), szfilename.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ICreateTypeLib2, ::windows_core::IUnknown, ICreateTypeLib); -unsafe impl ::windows_core::Interface for ICreateTypeLib2 { - type Vtable = ICreateTypeLib2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICreateTypeLib2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0002040f_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct ICreateTypeLib2_Vtbl { @@ -4126,9 +4050,8 @@ pub struct ICreateTypeLib2_Vtbl { pub SetHelpStringContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwhelpstringcontext: u32) -> ::windows_core::HRESULT, pub SetHelpStringDll: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, szfilename: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDispError(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDispError, IDispError_Vtbl, 0xa6ef9861_c720_11d0_9337_00a0c90dcaa9); +::windows_core::imp::interface_hierarchy!(IDispError, ::windows_core::IUnknown); impl IDispError { pub unsafe fn QueryErrorInfo(&self, guiderrortype: ::windows_core::GUID) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -4154,13 +4077,6 @@ impl IDispError { (::windows_core::Interface::vtable(self).GetDescription)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDispError, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDispError { - type Vtable = IDispError_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDispError { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa6ef9861_c720_11d0_9337_00a0c90dcaa9); -} #[repr(C)] #[doc(hidden)] pub struct IDispError_Vtbl { @@ -4172,11 +4088,15 @@ pub struct IDispError_Vtbl { pub GetHelpInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrfilename: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>, pdwcontext: *mut u32) -> ::windows_core::HRESULT, pub GetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdescription: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDispatchEx(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IDispatchEx, + IDispatchEx_Vtbl, + 0xa6ef9860_c720_11d0_9337_00a0c90dcaa9 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IDispatchEx, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IDispatchEx { pub unsafe fn GetDispID(&self, bstrname: P0, grfdex: u32) -> ::windows_core::Result @@ -4221,16 +4141,6 @@ impl IDispatchEx { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IDispatchEx, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IDispatchEx { - type Vtable = IDispatchEx_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IDispatchEx { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa6ef9860_c720_11d0_9337_00a0c90dcaa9); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IDispatchEx_Vtbl { @@ -4247,9 +4157,8 @@ pub struct IDispatchEx_Vtbl { pub GetNextDispID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, grfdex: u32, id: i32, pid: *mut i32) -> ::windows_core::HRESULT, pub GetNameSpaceParent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppunk: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDropSource(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDropSource, IDropSource_Vtbl, 0x00000121_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IDropSource, ::windows_core::IUnknown); impl IDropSource { #[doc = "Required features: `\"Win32_System_SystemServices\"`"] #[cfg(feature = "Win32_System_SystemServices")] @@ -4263,13 +4172,6 @@ impl IDropSource { (::windows_core::Interface::vtable(self).GiveFeedback)(::windows_core::Interface::as_raw(self), dweffect) } } -::windows_core::imp::interface_hierarchy!(IDropSource, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDropSource { - type Vtable = IDropSource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDropSource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00000121_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IDropSource_Vtbl { @@ -4280,9 +4182,8 @@ pub struct IDropSource_Vtbl { QueryContinueDrag: usize, pub GiveFeedback: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dweffect: DROPEFFECT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDropSourceNotify(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDropSourceNotify, IDropSourceNotify_Vtbl, 0x0000012b_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IDropSourceNotify, ::windows_core::IUnknown); impl IDropSourceNotify { pub unsafe fn DragEnterTarget(&self, hwndtarget: P0) -> ::windows_core::Result<()> where @@ -4294,13 +4195,6 @@ impl IDropSourceNotify { (::windows_core::Interface::vtable(self).DragLeaveTarget)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IDropSourceNotify, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDropSourceNotify { - type Vtable = IDropSourceNotify_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDropSourceNotify { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0000012b_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IDropSourceNotify_Vtbl { @@ -4308,9 +4202,8 @@ pub struct IDropSourceNotify_Vtbl { pub DragEnterTarget: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwndtarget: super::super::Foundation::HWND) -> ::windows_core::HRESULT, pub DragLeaveTarget: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDropTarget(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDropTarget, IDropTarget_Vtbl, 0x00000122_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IDropTarget, ::windows_core::IUnknown); impl IDropTarget { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_SystemServices\"`"] #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_SystemServices"))] @@ -4337,13 +4230,6 @@ impl IDropTarget { (::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::imp::interface_hierarchy!(IDropTarget, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDropTarget { - type Vtable = IDropTarget_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDropTarget { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00000122_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IDropTarget_Vtbl { @@ -4362,9 +4248,8 @@ pub struct IDropTarget_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_SystemServices")))] Drop: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnterpriseDropTarget(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnterpriseDropTarget, IEnterpriseDropTarget_Vtbl, 0x390e3878_fd55_4e18_819d_4682081c0cfd); +::windows_core::imp::interface_hierarchy!(IEnterpriseDropTarget, ::windows_core::IUnknown); impl IEnterpriseDropTarget { pub unsafe fn SetDropSourceEnterpriseId(&self, identity: P0) -> ::windows_core::Result<()> where @@ -4377,13 +4262,6 @@ impl IEnterpriseDropTarget { (::windows_core::Interface::vtable(self).IsEvaluatingEdpPolicy)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnterpriseDropTarget, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnterpriseDropTarget { - type Vtable = IEnterpriseDropTarget_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnterpriseDropTarget { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x390e3878_fd55_4e18_819d_4682081c0cfd); -} #[repr(C)] #[doc(hidden)] pub struct IEnterpriseDropTarget_Vtbl { @@ -4391,9 +4269,8 @@ pub struct IEnterpriseDropTarget_Vtbl { pub SetDropSourceEnterpriseId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, identity: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub IsEvaluatingEdpPolicy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumOLEVERB(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumOLEVERB, IEnumOLEVERB_Vtbl, 0x00000104_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IEnumOLEVERB, ::windows_core::IUnknown); impl IEnumOLEVERB { #[doc = "Required features: `\"Win32_UI_WindowsAndMessaging\"`"] #[cfg(feature = "Win32_UI_WindowsAndMessaging")] @@ -4411,13 +4288,6 @@ impl IEnumOLEVERB { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumOLEVERB, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumOLEVERB { - type Vtable = IEnumOLEVERB_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumOLEVERB { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00000104_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IEnumOLEVERB_Vtbl { @@ -4430,9 +4300,8 @@ pub struct IEnumOLEVERB_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumOleDocumentViews(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumOleDocumentViews, IEnumOleDocumentViews_Vtbl, 0xb722bcc8_4e68_101b_a2bc_00aa00404770); +::windows_core::imp::interface_hierarchy!(IEnumOleDocumentViews, ::windows_core::IUnknown); impl IEnumOleDocumentViews { pub unsafe fn Next(&self, cviews: u32, rgpview: *mut ::core::option::Option, pcfetched: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), cviews, ::core::mem::transmute(rgpview), pcfetched).ok() @@ -4448,13 +4317,6 @@ impl IEnumOleDocumentViews { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumOleDocumentViews, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumOleDocumentViews { - type Vtable = IEnumOleDocumentViews_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumOleDocumentViews { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb722bcc8_4e68_101b_a2bc_00aa00404770); -} #[repr(C)] #[doc(hidden)] pub struct IEnumOleDocumentViews_Vtbl { @@ -4464,9 +4326,8 @@ pub struct IEnumOleDocumentViews_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumOleUndoUnits(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumOleUndoUnits, IEnumOleUndoUnits_Vtbl, 0xb3e7c340_ef97_11ce_9bc9_00aa00608e01); +::windows_core::imp::interface_hierarchy!(IEnumOleUndoUnits, ::windows_core::IUnknown); impl IEnumOleUndoUnits { pub unsafe fn Next(&self, rgelt: &mut [::core::option::Option], pceltfetched: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), ::core::mem::transmute(rgelt.as_ptr()), pceltfetched).ok() @@ -4482,13 +4343,6 @@ impl IEnumOleUndoUnits { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumOleUndoUnits, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumOleUndoUnits { - type Vtable = IEnumOleUndoUnits_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumOleUndoUnits { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb3e7c340_ef97_11ce_9bc9_00aa00608e01); -} #[repr(C)] #[doc(hidden)] pub struct IEnumOleUndoUnits_Vtbl { @@ -4498,9 +4352,8 @@ pub struct IEnumOleUndoUnits_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumVARIANT(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumVARIANT, IEnumVARIANT_Vtbl, 0x00020404_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IEnumVARIANT, ::windows_core::IUnknown); impl IEnumVARIANT { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Variant"))] @@ -4518,13 +4371,6 @@ impl IEnumVARIANT { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumVARIANT, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumVARIANT { - type Vtable = IEnumVARIANT_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumVARIANT { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00020404_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IEnumVARIANT_Vtbl { @@ -4537,9 +4383,8 @@ pub struct IEnumVARIANT_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFont(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFont, IFont_Vtbl, 0xbef6e002_a874_101a_8bba_00aa00300cab); +::windows_core::imp::interface_hierarchy!(IFont, ::windows_core::IUnknown); impl IFont { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -4665,13 +4510,6 @@ impl IFont { (::windows_core::Interface::vtable(self).SetHdc)(::windows_core::Interface::as_raw(self), hdc.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IFont, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFont { - type Vtable = IFont_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFont { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbef6e002_a874_101a_8bba_00aa00300cab); -} #[repr(C)] #[doc(hidden)] pub struct IFont_Vtbl { @@ -4722,97 +4560,68 @@ pub struct IFont_Vtbl { #[cfg(not(feature = "Win32_Graphics_Gdi"))] SetHdc: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFontDisp(::windows_core::IUnknown); -#[cfg(feature = "Win32_System_Com")] -impl IFontDisp {} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFontDisp, + IFontDisp_Vtbl, + 0xbef6e003_a874_101a_8bba_00aa00300cab +); #[cfg(feature = "Win32_System_Com")] ::windows_core::imp::interface_hierarchy!(IFontDisp, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFontDisp { - type Vtable = IFontDisp_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFontDisp { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbef6e003_a874_101a_8bba_00aa00300cab); -} +impl IFontDisp {} #[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFontDisp_Vtbl { pub base__: super::Com::IDispatch_Vtbl, } -#[doc = "Required features: `\"Win32_System_Com\"`"] -#[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFontEventsDisp(::windows_core::IUnknown); #[cfg(feature = "Win32_System_Com")] -impl IFontEventsDisp {} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFontEventsDisp, + IFontEventsDisp_Vtbl, + 0x4ef6100a_af88_11d0_9846_00c04fc29993 +); #[cfg(feature = "Win32_System_Com")] ::windows_core::imp::interface_hierarchy!(IFontEventsDisp, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFontEventsDisp { - type Vtable = IFontEventsDisp_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFontEventsDisp { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4ef6100a_af88_11d0_9846_00c04fc29993); -} +impl IFontEventsDisp {} #[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFontEventsDisp_Vtbl { pub base__: super::Com::IDispatch_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGetOleObject(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IGetOleObject, IGetOleObject_Vtbl, 0x8a701da0_4feb_101b_a82e_08002b2b2337); +::windows_core::imp::interface_hierarchy!(IGetOleObject, ::windows_core::IUnknown); impl IGetOleObject { pub unsafe fn GetOleObject(&self, riid: *const ::windows_core::GUID, ppvobj: *mut *mut ::core::ffi::c_void) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetOleObject)(::windows_core::Interface::as_raw(self), riid, ppvobj).ok() } } -::windows_core::imp::interface_hierarchy!(IGetOleObject, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGetOleObject { - type Vtable = IGetOleObject_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGetOleObject { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8a701da0_4feb_101b_a82e_08002b2b2337); -} #[repr(C)] #[doc(hidden)] pub struct IGetOleObject_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetOleObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppvobj: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGetVBAObject(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IGetVBAObject, IGetVBAObject_Vtbl, 0x91733a60_3f4c_101b_a3f6_00aa0034e4e9); +::windows_core::imp::interface_hierarchy!(IGetVBAObject, ::windows_core::IUnknown); impl IGetVBAObject { pub unsafe fn GetObject(&self, riid: *const ::windows_core::GUID, ppvobj: *mut *mut ::core::ffi::c_void, dwreserved: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetObject)(::windows_core::Interface::as_raw(self), riid, ppvobj, dwreserved).ok() } } -::windows_core::imp::interface_hierarchy!(IGetVBAObject, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGetVBAObject { - type Vtable = IGetVBAObject_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGetVBAObject { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x91733a60_3f4c_101b_a3f6_00aa0034e4e9); -} #[repr(C)] #[doc(hidden)] pub struct IGetVBAObject_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppvobj: *mut *mut ::core::ffi::c_void, dwreserved: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IObjectIdentity(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IObjectIdentity, IObjectIdentity_Vtbl, 0xca04b7e6_0d21_11d1_8cc5_00c04fc2b085); +::windows_core::imp::interface_hierarchy!(IObjectIdentity, ::windows_core::IUnknown); impl IObjectIdentity { pub unsafe fn IsEqualObject(&self, punk: P0) -> ::windows_core::Result<()> where @@ -4821,22 +4630,14 @@ impl IObjectIdentity { (::windows_core::Interface::vtable(self).IsEqualObject)(::windows_core::Interface::as_raw(self), punk.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IObjectIdentity, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IObjectIdentity { - type Vtable = IObjectIdentity_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IObjectIdentity { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xca04b7e6_0d21_11d1_8cc5_00c04fc2b085); -} #[repr(C)] #[doc(hidden)] pub struct IObjectIdentity_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub IsEqualObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punk: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IObjectWithSite(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IObjectWithSite, IObjectWithSite_Vtbl, 0xfc4801a3_2ba9_11cf_a229_00aa003d7352); +::windows_core::imp::interface_hierarchy!(IObjectWithSite, ::windows_core::IUnknown); impl IObjectWithSite { pub unsafe fn SetSite(&self, punksite: P0) -> ::windows_core::Result<()> where @@ -4846,19 +4647,12 @@ impl IObjectWithSite { } pub unsafe fn GetSite(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetSite)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IObjectWithSite, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IObjectWithSite { - type Vtable = IObjectWithSite_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IObjectWithSite { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfc4801a3_2ba9_11cf_a229_00aa003d7352); -} #[repr(C)] #[doc(hidden)] pub struct IObjectWithSite_Vtbl { @@ -4866,9 +4660,8 @@ pub struct IObjectWithSite_Vtbl { pub SetSite: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punksite: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetSite: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppvsite: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOleAdviseHolder(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOleAdviseHolder, IOleAdviseHolder_Vtbl, 0x00000111_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IOleAdviseHolder, ::windows_core::IUnknown); impl IOleAdviseHolder { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -4903,13 +4696,6 @@ impl IOleAdviseHolder { (::windows_core::Interface::vtable(self).SendOnClose)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IOleAdviseHolder, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOleAdviseHolder { - type Vtable = IOleAdviseHolder_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOleAdviseHolder { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00000111_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IOleAdviseHolder_Vtbl { @@ -4930,9 +4716,8 @@ pub struct IOleAdviseHolder_Vtbl { pub SendOnSave: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SendOnClose: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOleCache(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOleCache, IOleCache_Vtbl, 0x0000011e_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IOleCache, ::windows_core::IUnknown); impl IOleCache { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -4966,13 +4751,6 @@ impl IOleCache { (::windows_core::Interface::vtable(self).SetData)(::windows_core::Interface::as_raw(self), pformatetc, pmedium, frelease.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IOleCache, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOleCache { - type Vtable = IOleCache_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOleCache { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0000011e_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IOleCache_Vtbl { @@ -4995,9 +4773,8 @@ pub struct IOleCache_Vtbl { #[cfg(not(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com_StructuredStorage")))] SetData: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOleCache2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOleCache2, IOleCache2_Vtbl, 0x00000128_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IOleCache2, ::windows_core::IUnknown, IOleCache); impl IOleCache2 { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -5042,13 +4819,6 @@ impl IOleCache2 { (::windows_core::Interface::vtable(self).DiscardCache)(::windows_core::Interface::as_raw(self), dwdiscardoptions).ok() } } -::windows_core::imp::interface_hierarchy!(IOleCache2, ::windows_core::IUnknown, IOleCache); -unsafe impl ::windows_core::Interface for IOleCache2 { - type Vtable = IOleCache2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOleCache2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00000128_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IOleCache2_Vtbl { @@ -5059,9 +4829,8 @@ pub struct IOleCache2_Vtbl { UpdateCache: usize, pub DiscardCache: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwdiscardoptions: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOleCacheControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOleCacheControl, IOleCacheControl_Vtbl, 0x00000129_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IOleCacheControl, ::windows_core::IUnknown); impl IOleCacheControl { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -5075,13 +4844,6 @@ impl IOleCacheControl { (::windows_core::Interface::vtable(self).OnStop)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IOleCacheControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOleCacheControl { - type Vtable = IOleCacheControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOleCacheControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00000129_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IOleCacheControl_Vtbl { @@ -5092,9 +4854,8 @@ pub struct IOleCacheControl_Vtbl { OnRun: usize, pub OnStop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOleClientSite(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOleClientSite, IOleClientSite_Vtbl, 0x00000118_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IOleClientSite, ::windows_core::IUnknown); impl IOleClientSite { pub unsafe fn SaveObject(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SaveObject)(::windows_core::Interface::as_raw(self)).ok() @@ -5122,13 +4883,6 @@ impl IOleClientSite { (::windows_core::Interface::vtable(self).RequestNewObjectLayout)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IOleClientSite, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOleClientSite { - type Vtable = IOleClientSite_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOleClientSite { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00000118_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IOleClientSite_Vtbl { @@ -5143,9 +4897,8 @@ pub struct IOleClientSite_Vtbl { pub OnShowWindow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fshow: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub RequestNewObjectLayout: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOleCommandTarget(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOleCommandTarget, IOleCommandTarget_Vtbl, 0xb722bccb_4e68_101b_a2bc_00aa00404770); +::windows_core::imp::interface_hierarchy!(IOleCommandTarget, ::windows_core::IUnknown); impl IOleCommandTarget { pub unsafe fn QueryStatus(&self, pguidcmdgroup: *const ::windows_core::GUID, ccmds: u32, prgcmds: *mut OLECMD, pcmdtext: *mut OLECMDTEXT) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).QueryStatus)(::windows_core::Interface::as_raw(self), pguidcmdgroup, ccmds, prgcmds, pcmdtext).ok() @@ -5156,13 +4909,6 @@ impl IOleCommandTarget { (::windows_core::Interface::vtable(self).Exec)(::windows_core::Interface::as_raw(self), pguidcmdgroup, ncmdid, ncmdexecopt, pvain, pvaout).ok() } } -::windows_core::imp::interface_hierarchy!(IOleCommandTarget, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOleCommandTarget { - type Vtable = IOleCommandTarget_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOleCommandTarget { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb722bccb_4e68_101b_a2bc_00aa00404770); -} #[repr(C)] #[doc(hidden)] pub struct IOleCommandTarget_Vtbl { @@ -5173,9 +4919,8 @@ pub struct IOleCommandTarget_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Variant")))] Exec: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOleContainer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOleContainer, IOleContainer_Vtbl, 0x0000011b_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IOleContainer, ::windows_core::IUnknown, IParseDisplayName); impl IOleContainer { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -5199,13 +4944,6 @@ impl IOleContainer { (::windows_core::Interface::vtable(self).LockContainer)(::windows_core::Interface::as_raw(self), flock.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IOleContainer, ::windows_core::IUnknown, IParseDisplayName); -unsafe impl ::windows_core::Interface for IOleContainer { - type Vtable = IOleContainer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOleContainer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0000011b_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IOleContainer_Vtbl { @@ -5216,9 +4954,8 @@ pub struct IOleContainer_Vtbl { EnumObjects: usize, pub LockContainer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flock: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOleControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOleControl, IOleControl_Vtbl, 0xb196b288_bab4_101a_b69c_00aa00341d07); +::windows_core::imp::interface_hierarchy!(IOleControl, ::windows_core::IUnknown); impl IOleControl { #[doc = "Required features: `\"Win32_UI_WindowsAndMessaging\"`"] #[cfg(feature = "Win32_UI_WindowsAndMessaging")] @@ -5240,13 +4977,6 @@ impl IOleControl { (::windows_core::Interface::vtable(self).FreezeEvents)(::windows_core::Interface::as_raw(self), bfreeze.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IOleControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOleControl { - type Vtable = IOleControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOleControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb196b288_bab4_101a_b69c_00aa00341d07); -} #[repr(C)] #[doc(hidden)] pub struct IOleControl_Vtbl { @@ -5262,9 +4992,8 @@ pub struct IOleControl_Vtbl { pub OnAmbientPropertyChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dispid: i32) -> ::windows_core::HRESULT, pub FreezeEvents: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bfreeze: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOleControlSite(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOleControlSite, IOleControlSite_Vtbl, 0xb196b289_bab4_101a_b69c_00aa00341d07); +::windows_core::imp::interface_hierarchy!(IOleControlSite, ::windows_core::IUnknown); impl IOleControlSite { pub unsafe fn OnControlInfoChanged(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnControlInfoChanged)(::windows_core::Interface::as_raw(self)).ok() @@ -5299,13 +5028,6 @@ impl IOleControlSite { (::windows_core::Interface::vtable(self).ShowPropertyFrame)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IOleControlSite, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOleControlSite { - type Vtable = IOleControlSite_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOleControlSite { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb196b289_bab4_101a_b69c_00aa00341d07); -} #[repr(C)] #[doc(hidden)] pub struct IOleControlSite_Vtbl { @@ -5324,9 +5046,8 @@ pub struct IOleControlSite_Vtbl { pub OnFocus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fgotfocus: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub ShowPropertyFrame: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOleDocument(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOleDocument, IOleDocument_Vtbl, 0xb722bcc5_4e68_101b_a2bc_00aa00404770); +::windows_core::imp::interface_hierarchy!(IOleDocument, ::windows_core::IUnknown); impl IOleDocument { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -5346,13 +5067,6 @@ impl IOleDocument { (::windows_core::Interface::vtable(self).EnumViews)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(ppenum), ::core::mem::transmute(ppview)).ok() } } -::windows_core::imp::interface_hierarchy!(IOleDocument, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOleDocument { - type Vtable = IOleDocument_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOleDocument { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb722bcc5_4e68_101b_a2bc_00aa00404770); -} #[repr(C)] #[doc(hidden)] pub struct IOleDocument_Vtbl { @@ -5364,9 +5078,8 @@ pub struct IOleDocument_Vtbl { pub GetDocMiscStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwstatus: *mut u32) -> ::windows_core::HRESULT, pub EnumViews: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void, ppview: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOleDocumentSite(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOleDocumentSite, IOleDocumentSite_Vtbl, 0xb722bcc7_4e68_101b_a2bc_00aa00404770); +::windows_core::imp::interface_hierarchy!(IOleDocumentSite, ::windows_core::IUnknown); impl IOleDocumentSite { pub unsafe fn ActivateMe(&self, pviewtoactivate: P0) -> ::windows_core::Result<()> where @@ -5375,22 +5088,14 @@ impl IOleDocumentSite { (::windows_core::Interface::vtable(self).ActivateMe)(::windows_core::Interface::as_raw(self), pviewtoactivate.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IOleDocumentSite, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOleDocumentSite { - type Vtable = IOleDocumentSite_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOleDocumentSite { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb722bcc7_4e68_101b_a2bc_00aa00404770); -} #[repr(C)] #[doc(hidden)] pub struct IOleDocumentSite_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub ActivateMe: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pviewtoactivate: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOleDocumentView(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOleDocumentView, IOleDocumentView_Vtbl, 0xb722bcc6_4e68_101b_a2bc_00aa00404770); +::windows_core::imp::interface_hierarchy!(IOleDocumentView, ::windows_core::IUnknown); impl IOleDocumentView { pub unsafe fn SetInPlaceSite(&self, pipsite: P0) -> ::windows_core::Result<()> where @@ -5458,13 +5163,6 @@ impl IOleDocumentView { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), pipsitenew.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IOleDocumentView, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOleDocumentView { - type Vtable = IOleDocumentView_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOleDocumentView { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb722bcc6_4e68_101b_a2bc_00aa00404770); -} #[repr(C)] #[doc(hidden)] pub struct IOleDocumentView_Vtbl { @@ -5489,9 +5187,8 @@ pub struct IOleDocumentView_Vtbl { ApplyViewState: usize, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pipsitenew: *mut ::core::ffi::c_void, ppviewnew: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOleInPlaceActiveObject(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOleInPlaceActiveObject, IOleInPlaceActiveObject_Vtbl, 0x00000117_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IOleInPlaceActiveObject, ::windows_core::IUnknown, IOleWindow); impl IOleInPlaceActiveObject { pub unsafe fn GetWindow(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -5534,13 +5231,6 @@ impl IOleInPlaceActiveObject { (::windows_core::Interface::vtable(self).EnableModeless)(::windows_core::Interface::as_raw(self), fenable.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IOleInPlaceActiveObject, ::windows_core::IUnknown, IOleWindow); -unsafe impl ::windows_core::Interface for IOleInPlaceActiveObject { - type Vtable = IOleInPlaceActiveObject_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOleInPlaceActiveObject { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00000117_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IOleInPlaceActiveObject_Vtbl { @@ -5554,9 +5244,8 @@ pub struct IOleInPlaceActiveObject_Vtbl { pub ResizeBorder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prcborder: *const super::super::Foundation::RECT, puiwindow: *mut ::core::ffi::c_void, fframewindow: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub EnableModeless: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOleInPlaceFrame(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOleInPlaceFrame, IOleInPlaceFrame_Vtbl, 0x00000116_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IOleInPlaceFrame, ::windows_core::IUnknown, IOleWindow, IOleInPlaceUIWindow); impl IOleInPlaceFrame { pub unsafe fn GetWindow(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -5628,13 +5317,6 @@ impl IOleInPlaceFrame { (::windows_core::Interface::vtable(self).TranslateAccelerator)(::windows_core::Interface::as_raw(self), lpmsg, wid).ok() } } -::windows_core::imp::interface_hierarchy!(IOleInPlaceFrame, ::windows_core::IUnknown, IOleWindow, IOleInPlaceUIWindow); -unsafe impl ::windows_core::Interface for IOleInPlaceFrame { - type Vtable = IOleInPlaceFrame_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOleInPlaceFrame { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00000116_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IOleInPlaceFrame_Vtbl { @@ -5658,9 +5340,8 @@ pub struct IOleInPlaceFrame_Vtbl { #[cfg(not(feature = "Win32_UI_WindowsAndMessaging"))] TranslateAccelerator: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOleInPlaceObject(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOleInPlaceObject, IOleInPlaceObject_Vtbl, 0x00000113_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IOleInPlaceObject, ::windows_core::IUnknown, IOleWindow); impl IOleInPlaceObject { pub unsafe fn GetWindow(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -5685,13 +5366,6 @@ impl IOleInPlaceObject { (::windows_core::Interface::vtable(self).ReactivateAndUndo)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IOleInPlaceObject, ::windows_core::IUnknown, IOleWindow); -unsafe impl ::windows_core::Interface for IOleInPlaceObject { - type Vtable = IOleInPlaceObject_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOleInPlaceObject { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00000113_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IOleInPlaceObject_Vtbl { @@ -5701,9 +5375,8 @@ pub struct IOleInPlaceObject_Vtbl { pub SetObjectRects: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lprcposrect: *const super::super::Foundation::RECT, lprccliprect: *const super::super::Foundation::RECT) -> ::windows_core::HRESULT, pub ReactivateAndUndo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOleInPlaceObjectWindowless(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOleInPlaceObjectWindowless, IOleInPlaceObjectWindowless_Vtbl, 0x1c2056cc_5ef4_101b_8bc8_00aa003e3b29); +::windows_core::imp::interface_hierarchy!(IOleInPlaceObjectWindowless, ::windows_core::IUnknown, IOleWindow, IOleInPlaceObject); impl IOleInPlaceObjectWindowless { pub unsafe fn GetWindow(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -5740,13 +5413,6 @@ impl IOleInPlaceObjectWindowless { (::windows_core::Interface::vtable(self).GetDropTarget)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IOleInPlaceObjectWindowless, ::windows_core::IUnknown, IOleWindow, IOleInPlaceObject); -unsafe impl ::windows_core::Interface for IOleInPlaceObjectWindowless { - type Vtable = IOleInPlaceObjectWindowless_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOleInPlaceObjectWindowless { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1c2056cc_5ef4_101b_8bc8_00aa003e3b29); -} #[repr(C)] #[doc(hidden)] pub struct IOleInPlaceObjectWindowless_Vtbl { @@ -5754,9 +5420,8 @@ pub struct IOleInPlaceObjectWindowless_Vtbl { pub OnWindowMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, plresult: *mut super::super::Foundation::LRESULT) -> ::windows_core::HRESULT, pub GetDropTarget: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppdroptarget: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOleInPlaceSite(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOleInPlaceSite, IOleInPlaceSite_Vtbl, 0x00000119_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IOleInPlaceSite, ::windows_core::IUnknown, IOleWindow); impl IOleInPlaceSite { pub unsafe fn GetWindow(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -5804,13 +5469,6 @@ impl IOleInPlaceSite { (::windows_core::Interface::vtable(self).OnPosRectChange)(::windows_core::Interface::as_raw(self), lprcposrect).ok() } } -::windows_core::imp::interface_hierarchy!(IOleInPlaceSite, ::windows_core::IUnknown, IOleWindow); -unsafe impl ::windows_core::Interface for IOleInPlaceSite { - type Vtable = IOleInPlaceSite_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOleInPlaceSite { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00000119_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IOleInPlaceSite_Vtbl { @@ -5829,9 +5487,8 @@ pub struct IOleInPlaceSite_Vtbl { pub DeactivateAndUndo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub OnPosRectChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lprcposrect: *const super::super::Foundation::RECT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOleInPlaceSiteEx(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOleInPlaceSiteEx, IOleInPlaceSiteEx_Vtbl, 0x9c2cad80_3424_11cf_b670_00aa004cd6d8); +::windows_core::imp::interface_hierarchy!(IOleInPlaceSiteEx, ::windows_core::IUnknown, IOleWindow, IOleInPlaceSite); impl IOleInPlaceSiteEx { pub unsafe fn GetWindow(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -5891,13 +5548,6 @@ impl IOleInPlaceSiteEx { (::windows_core::Interface::vtable(self).RequestUIActivate)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IOleInPlaceSiteEx, ::windows_core::IUnknown, IOleWindow, IOleInPlaceSite); -unsafe impl ::windows_core::Interface for IOleInPlaceSiteEx { - type Vtable = IOleInPlaceSiteEx_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOleInPlaceSiteEx { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9c2cad80_3424_11cf_b670_00aa004cd6d8); -} #[repr(C)] #[doc(hidden)] pub struct IOleInPlaceSiteEx_Vtbl { @@ -5906,9 +5556,8 @@ pub struct IOleInPlaceSiteEx_Vtbl { pub OnInPlaceDeactivateEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fnoredraw: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub RequestUIActivate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOleInPlaceSiteWindowless(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOleInPlaceSiteWindowless, IOleInPlaceSiteWindowless_Vtbl, 0x922eada0_3424_11cf_b670_00aa004cd6d8); +::windows_core::imp::interface_hierarchy!(IOleInPlaceSiteWindowless, ::windows_core::IUnknown, IOleWindow, IOleInPlaceSite, IOleInPlaceSiteEx); impl IOleInPlaceSiteWindowless { pub unsafe fn GetWindow(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -6032,13 +5681,6 @@ impl IOleInPlaceSiteWindowless { (::windows_core::Interface::vtable(self).OnDefWindowMessage)(::windows_core::Interface::as_raw(self), msg, wparam.into_param().abi(), lparam.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IOleInPlaceSiteWindowless, ::windows_core::IUnknown, IOleWindow, IOleInPlaceSite, IOleInPlaceSiteEx); -unsafe impl ::windows_core::Interface for IOleInPlaceSiteWindowless { - type Vtable = IOleInPlaceSiteWindowless_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOleInPlaceSiteWindowless { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x922eada0_3424_11cf_b670_00aa004cd6d8); -} #[repr(C)] #[doc(hidden)] pub struct IOleInPlaceSiteWindowless_Vtbl { @@ -6065,9 +5707,8 @@ pub struct IOleInPlaceSiteWindowless_Vtbl { pub AdjustRect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prc: *mut super::super::Foundation::RECT) -> ::windows_core::HRESULT, pub OnDefWindowMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, plresult: *mut super::super::Foundation::LRESULT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOleInPlaceUIWindow(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOleInPlaceUIWindow, IOleInPlaceUIWindow_Vtbl, 0x00000115_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IOleInPlaceUIWindow, ::windows_core::IUnknown, IOleWindow); impl IOleInPlaceUIWindow { pub unsafe fn GetWindow(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -6097,13 +5738,6 @@ impl IOleInPlaceUIWindow { (::windows_core::Interface::vtable(self).SetActiveObject)(::windows_core::Interface::as_raw(self), pactiveobject.into_param().abi(), pszobjname.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IOleInPlaceUIWindow, ::windows_core::IUnknown, IOleWindow); -unsafe impl ::windows_core::Interface for IOleInPlaceUIWindow { - type Vtable = IOleInPlaceUIWindow_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOleInPlaceUIWindow { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00000115_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IOleInPlaceUIWindow_Vtbl { @@ -6113,9 +5747,8 @@ pub struct IOleInPlaceUIWindow_Vtbl { pub SetBorderSpace: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pborderwidths: *const super::super::Foundation::RECT) -> ::windows_core::HRESULT, pub SetActiveObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pactiveobject: *mut ::core::ffi::c_void, pszobjname: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOleItemContainer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOleItemContainer, IOleItemContainer_Vtbl, 0x0000011c_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IOleItemContainer, ::windows_core::IUnknown, IParseDisplayName, IOleContainer); impl IOleItemContainer { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -6144,7 +5777,7 @@ impl IOleItemContainer { where P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, P1: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -6155,7 +5788,7 @@ impl IOleItemContainer { where P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, P1: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -6167,13 +5800,6 @@ impl IOleItemContainer { (::windows_core::Interface::vtable(self).IsRunning)(::windows_core::Interface::as_raw(self), pszitem.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IOleItemContainer, ::windows_core::IUnknown, IParseDisplayName, IOleContainer); -unsafe impl ::windows_core::Interface for IOleItemContainer { - type Vtable = IOleItemContainer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOleItemContainer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0000011c_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IOleItemContainer_Vtbl { @@ -6188,9 +5814,8 @@ pub struct IOleItemContainer_Vtbl { GetObjectStorage: usize, pub IsRunning: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszitem: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOleLink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOleLink, IOleLink_Vtbl, 0x0000011d_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IOleLink, ::windows_core::IUnknown); impl IOleLink { pub unsafe fn SetUpdateOptions(&self, dwupdateopt: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetUpdateOptions)(::windows_core::Interface::as_raw(self), dwupdateopt).ok() @@ -6250,13 +5875,6 @@ impl IOleLink { (::windows_core::Interface::vtable(self).Update)(::windows_core::Interface::as_raw(self), pbc.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IOleLink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOleLink { - type Vtable = IOleLink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOleLink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0000011d_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IOleLink_Vtbl { @@ -6285,9 +5903,8 @@ pub struct IOleLink_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Update: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOleObject(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOleObject, IOleObject_Vtbl, 0x00000112_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IOleObject, ::windows_core::IUnknown); impl IOleObject { pub unsafe fn SetClientSite(&self, pclientsite: P0) -> ::windows_core::Result<()> where @@ -6406,13 +6023,6 @@ impl IOleObject { (::windows_core::Interface::vtable(self).SetColorScheme)(::windows_core::Interface::as_raw(self), plogpal).ok() } } -::windows_core::imp::interface_hierarchy!(IOleObject, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOleObject { - type Vtable = IOleObject_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOleObject { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00000112_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IOleObject_Vtbl { @@ -6472,9 +6082,8 @@ pub struct IOleObject_Vtbl { #[cfg(not(feature = "Win32_Graphics_Gdi"))] SetColorScheme: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOleParentUndoUnit(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOleParentUndoUnit, IOleParentUndoUnit_Vtbl, 0xa1faf330_ef97_11ce_9bc9_00aa00608e01); +::windows_core::imp::interface_hierarchy!(IOleParentUndoUnit, ::windows_core::IUnknown, IOleUndoUnit); impl IOleParentUndoUnit { pub unsafe fn Do(&self, pundomanager: P0) -> ::windows_core::Result<()> where @@ -6522,13 +6131,6 @@ impl IOleParentUndoUnit { (::windows_core::Interface::vtable(self).GetParentState)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IOleParentUndoUnit, ::windows_core::IUnknown, IOleUndoUnit); -unsafe impl ::windows_core::Interface for IOleParentUndoUnit { - type Vtable = IOleParentUndoUnit_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOleParentUndoUnit { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa1faf330_ef97_11ce_9bc9_00aa00608e01); -} #[repr(C)] #[doc(hidden)] pub struct IOleParentUndoUnit_Vtbl { @@ -6539,9 +6141,8 @@ pub struct IOleParentUndoUnit_Vtbl { pub FindUnit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, puu: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetParentState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwstate: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOleUILinkContainerA(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOleUILinkContainerA, IOleUILinkContainerA_Vtbl, 0); +::windows_core::imp::interface_hierarchy!(IOleUILinkContainerA, ::windows_core::IUnknown); impl IOleUILinkContainerA { pub unsafe fn GetNextLink(&self, dwlink: u32) -> u32 { (::windows_core::Interface::vtable(self).GetNextLink)(::windows_core::Interface::as_raw(self), dwlink) @@ -6577,13 +6178,6 @@ impl IOleUILinkContainerA { (::windows_core::Interface::vtable(self).CancelLink)(::windows_core::Interface::as_raw(self), dwlink).ok() } } -::windows_core::imp::interface_hierarchy!(IOleUILinkContainerA, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOleUILinkContainerA { - type Vtable = IOleUILinkContainerA_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOleUILinkContainerA { - const IID: ::windows_core::GUID = ::windows_core::GUID::zeroed(); -} #[repr(C)] #[doc(hidden)] pub struct IOleUILinkContainerA_Vtbl { @@ -6597,9 +6191,8 @@ pub struct IOleUILinkContainerA_Vtbl { pub UpdateLink: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwlink: u32, ferrormessage: super::super::Foundation::BOOL, freserved: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub CancelLink: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwlink: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOleUILinkContainerW(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOleUILinkContainerW, IOleUILinkContainerW_Vtbl, 0); +::windows_core::imp::interface_hierarchy!(IOleUILinkContainerW, ::windows_core::IUnknown); impl IOleUILinkContainerW { pub unsafe fn GetNextLink(&self, dwlink: u32) -> u32 { (::windows_core::Interface::vtable(self).GetNextLink)(::windows_core::Interface::as_raw(self), dwlink) @@ -6635,13 +6228,6 @@ impl IOleUILinkContainerW { (::windows_core::Interface::vtable(self).CancelLink)(::windows_core::Interface::as_raw(self), dwlink).ok() } } -::windows_core::imp::interface_hierarchy!(IOleUILinkContainerW, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOleUILinkContainerW { - type Vtable = IOleUILinkContainerW_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOleUILinkContainerW { - const IID: ::windows_core::GUID = ::windows_core::GUID::zeroed(); -} #[repr(C)] #[doc(hidden)] pub struct IOleUILinkContainerW_Vtbl { @@ -6655,9 +6241,8 @@ pub struct IOleUILinkContainerW_Vtbl { pub UpdateLink: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwlink: u32, ferrormessage: super::super::Foundation::BOOL, freserved: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub CancelLink: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwlink: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOleUILinkInfoA(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOleUILinkInfoA, IOleUILinkInfoA_Vtbl, 0); +::windows_core::imp::interface_hierarchy!(IOleUILinkInfoA, ::windows_core::IUnknown, IOleUILinkContainerA); impl IOleUILinkInfoA { pub unsafe fn GetNextLink(&self, dwlink: u32) -> u32 { (::windows_core::Interface::vtable(self).base__.GetNextLink)(::windows_core::Interface::as_raw(self), dwlink) @@ -6697,22 +6282,14 @@ impl IOleUILinkInfoA { (::windows_core::Interface::vtable(self).GetLastUpdate)(::windows_core::Interface::as_raw(self), dwlink, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IOleUILinkInfoA, ::windows_core::IUnknown, IOleUILinkContainerA); -unsafe impl ::windows_core::Interface for IOleUILinkInfoA { - type Vtable = IOleUILinkInfoA_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOleUILinkInfoA { - const IID: ::windows_core::GUID = ::windows_core::GUID::zeroed(); -} #[repr(C)] #[doc(hidden)] pub struct IOleUILinkInfoA_Vtbl { pub base__: IOleUILinkContainerA_Vtbl, pub GetLastUpdate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwlink: u32, lplastupdate: *mut super::super::Foundation::FILETIME) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOleUILinkInfoW(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOleUILinkInfoW, IOleUILinkInfoW_Vtbl, 0); +::windows_core::imp::interface_hierarchy!(IOleUILinkInfoW, ::windows_core::IUnknown, IOleUILinkContainerW); impl IOleUILinkInfoW { pub unsafe fn GetNextLink(&self, dwlink: u32) -> u32 { (::windows_core::Interface::vtable(self).base__.GetNextLink)(::windows_core::Interface::as_raw(self), dwlink) @@ -6752,22 +6329,14 @@ impl IOleUILinkInfoW { (::windows_core::Interface::vtable(self).GetLastUpdate)(::windows_core::Interface::as_raw(self), dwlink, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IOleUILinkInfoW, ::windows_core::IUnknown, IOleUILinkContainerW); -unsafe impl ::windows_core::Interface for IOleUILinkInfoW { - type Vtable = IOleUILinkInfoW_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOleUILinkInfoW { - const IID: ::windows_core::GUID = ::windows_core::GUID::zeroed(); -} #[repr(C)] #[doc(hidden)] pub struct IOleUILinkInfoW_Vtbl { pub base__: IOleUILinkContainerW_Vtbl, pub GetLastUpdate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwlink: u32, lplastupdate: *mut super::super::Foundation::FILETIME) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOleUIObjInfoA(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOleUIObjInfoA, IOleUIObjInfoA_Vtbl, 0); +::windows_core::imp::interface_hierarchy!(IOleUIObjInfoA, ::windows_core::IUnknown); impl IOleUIObjInfoA { pub unsafe fn GetObjectInfo(&self, dwobject: u32, lpdwobjsize: *mut u32, lplpszlabel: ::core::option::Option<*mut ::windows_core::PSTR>, lplpsztype: ::core::option::Option<*mut ::windows_core::PSTR>, lplpszshorttype: ::core::option::Option<*mut ::windows_core::PSTR>, lplpszlocation: ::core::option::Option<*mut ::windows_core::PSTR>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetObjectInfo)(::windows_core::Interface::as_raw(self), dwobject, lpdwobjsize, ::core::mem::transmute(lplpszlabel.unwrap_or(::std::ptr::null_mut())), ::core::mem::transmute(lplpsztype.unwrap_or(::std::ptr::null_mut())), ::core::mem::transmute(lplpszshorttype.unwrap_or(::std::ptr::null_mut())), ::core::mem::transmute(lplpszlocation.unwrap_or(::std::ptr::null_mut()))).ok() @@ -6789,13 +6358,6 @@ impl IOleUIObjInfoA { (::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::imp::interface_hierarchy!(IOleUIObjInfoA, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOleUIObjInfoA { - type Vtable = IOleUIObjInfoA_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOleUIObjInfoA { - const IID: ::windows_core::GUID = ::windows_core::GUID::zeroed(); -} #[repr(C)] #[doc(hidden)] pub struct IOleUIObjInfoA_Vtbl { @@ -6806,9 +6368,8 @@ pub struct IOleUIObjInfoA_Vtbl { pub GetViewInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwobject: u32, phmetapict: *const super::super::Foundation::HGLOBAL, pdvaspect: *const u32, pncurrentscale: *const i32) -> ::windows_core::HRESULT, pub SetViewInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwobject: u32, hmetapict: super::super::Foundation::HGLOBAL, dvaspect: u32, ncurrentscale: i32, brelativetoorig: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOleUIObjInfoW(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOleUIObjInfoW, IOleUIObjInfoW_Vtbl, 0); +::windows_core::imp::interface_hierarchy!(IOleUIObjInfoW, ::windows_core::IUnknown); impl IOleUIObjInfoW { pub unsafe fn GetObjectInfo(&self, dwobject: u32, lpdwobjsize: *mut u32, lplpszlabel: ::core::option::Option<*mut ::windows_core::PWSTR>, lplpsztype: ::core::option::Option<*mut ::windows_core::PWSTR>, lplpszshorttype: ::core::option::Option<*mut ::windows_core::PWSTR>, lplpszlocation: ::core::option::Option<*mut ::windows_core::PWSTR>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetObjectInfo)(::windows_core::Interface::as_raw(self), dwobject, lpdwobjsize, ::core::mem::transmute(lplpszlabel.unwrap_or(::std::ptr::null_mut())), ::core::mem::transmute(lplpsztype.unwrap_or(::std::ptr::null_mut())), ::core::mem::transmute(lplpszshorttype.unwrap_or(::std::ptr::null_mut())), ::core::mem::transmute(lplpszlocation.unwrap_or(::std::ptr::null_mut()))).ok() @@ -6830,13 +6391,6 @@ impl IOleUIObjInfoW { (::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::imp::interface_hierarchy!(IOleUIObjInfoW, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOleUIObjInfoW { - type Vtable = IOleUIObjInfoW_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOleUIObjInfoW { - const IID: ::windows_core::GUID = ::windows_core::GUID::zeroed(); -} #[repr(C)] #[doc(hidden)] pub struct IOleUIObjInfoW_Vtbl { @@ -6847,9 +6401,8 @@ pub struct IOleUIObjInfoW_Vtbl { pub GetViewInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwobject: u32, phmetapict: *const super::super::Foundation::HGLOBAL, pdvaspect: *const u32, pncurrentscale: *const i32) -> ::windows_core::HRESULT, pub SetViewInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwobject: u32, hmetapict: super::super::Foundation::HGLOBAL, dvaspect: u32, ncurrentscale: i32, brelativetoorig: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOleUndoManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOleUndoManager, IOleUndoManager_Vtbl, 0xd001f200_ef97_11ce_9bc9_00aa00608e01); +::windows_core::imp::interface_hierarchy!(IOleUndoManager, ::windows_core::IUnknown); impl IOleUndoManager { pub unsafe fn Open(&self, ppuu: P0) -> ::windows_core::Result<()> where @@ -6915,13 +6468,6 @@ impl IOleUndoManager { (::windows_core::Interface::vtable(self).Enable)(::windows_core::Interface::as_raw(self), fenable.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IOleUndoManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOleUndoManager { - type Vtable = IOleUndoManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOleUndoManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd001f200_ef97_11ce_9bc9_00aa00608e01); -} #[repr(C)] #[doc(hidden)] pub struct IOleUndoManager_Vtbl { @@ -6939,9 +6485,8 @@ pub struct IOleUndoManager_Vtbl { pub GetLastRedoDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstr: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub Enable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOleUndoUnit(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOleUndoUnit, IOleUndoUnit_Vtbl, 0x894ad3b0_ef97_11ce_9bc9_00aa00608e01); +::windows_core::imp::interface_hierarchy!(IOleUndoUnit, ::windows_core::IUnknown); impl IOleUndoUnit { pub unsafe fn Do(&self, pundomanager: P0) -> ::windows_core::Result<()> where @@ -6960,13 +6505,6 @@ impl IOleUndoUnit { (::windows_core::Interface::vtable(self).OnNextAdd)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IOleUndoUnit, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOleUndoUnit { - type Vtable = IOleUndoUnit_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOleUndoUnit { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x894ad3b0_ef97_11ce_9bc9_00aa00608e01); -} #[repr(C)] #[doc(hidden)] pub struct IOleUndoUnit_Vtbl { @@ -6976,9 +6514,8 @@ pub struct IOleUndoUnit_Vtbl { pub GetUnitType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pclsid: *mut ::windows_core::GUID, plid: *mut i32) -> ::windows_core::HRESULT, pub OnNextAdd: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOleWindow(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOleWindow, IOleWindow_Vtbl, 0x00000114_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IOleWindow, ::windows_core::IUnknown); impl IOleWindow { pub unsafe fn GetWindow(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -6991,13 +6528,6 @@ impl IOleWindow { (::windows_core::Interface::vtable(self).ContextSensitiveHelp)(::windows_core::Interface::as_raw(self), fentermode.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IOleWindow, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOleWindow { - type Vtable = IOleWindow_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOleWindow { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00000114_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IOleWindow_Vtbl { @@ -7005,9 +6535,8 @@ pub struct IOleWindow_Vtbl { pub GetWindow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phwnd: *mut super::super::Foundation::HWND) -> ::windows_core::HRESULT, pub ContextSensitiveHelp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fentermode: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IParseDisplayName(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IParseDisplayName, IParseDisplayName_Vtbl, 0x0000011a_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IParseDisplayName, ::windows_core::IUnknown); impl IParseDisplayName { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -7019,13 +6548,6 @@ impl IParseDisplayName { (::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::imp::interface_hierarchy!(IParseDisplayName, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IParseDisplayName { - type Vtable = IParseDisplayName_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IParseDisplayName { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0000011a_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IParseDisplayName_Vtbl { @@ -7035,9 +6557,8 @@ pub struct IParseDisplayName_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] ParseDisplayName: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPerPropertyBrowsing(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPerPropertyBrowsing, IPerPropertyBrowsing_Vtbl, 0x376bd3aa_3845_101b_84ed_08002b2ec713); +::windows_core::imp::interface_hierarchy!(IPerPropertyBrowsing, ::windows_core::IUnknown); impl IPerPropertyBrowsing { pub unsafe fn GetDisplayString(&self, dispid: i32) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -7057,13 +6578,6 @@ impl IPerPropertyBrowsing { (::windows_core::Interface::vtable(self).GetPredefinedValue)(::windows_core::Interface::as_raw(self), dispid, dwcookie, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IPerPropertyBrowsing, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPerPropertyBrowsing { - type Vtable = IPerPropertyBrowsing_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPerPropertyBrowsing { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x376bd3aa_3845_101b_84ed_08002b2ec713); -} #[repr(C)] #[doc(hidden)] pub struct IPerPropertyBrowsing_Vtbl { @@ -7076,11 +6590,15 @@ pub struct IPerPropertyBrowsing_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Variant")))] GetPredefinedValue: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPersistPropertyBag(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IPersistPropertyBag, + IPersistPropertyBag_Vtbl, + 0x37d84f60_42cb_11ce_8135_00aa004bb851 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IPersistPropertyBag, ::windows_core::IUnknown, super::Com::IPersist); #[cfg(feature = "Win32_System_Com")] impl IPersistPropertyBag { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -7113,16 +6631,6 @@ impl IPersistPropertyBag { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IPersistPropertyBag, ::windows_core::IUnknown, super::Com::IPersist); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IPersistPropertyBag { - type Vtable = IPersistPropertyBag_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IPersistPropertyBag { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x37d84f60_42cb_11ce_8135_00aa004bb851); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IPersistPropertyBag_Vtbl { @@ -7137,11 +6645,15 @@ pub struct IPersistPropertyBag_Vtbl { #[cfg(not(feature = "Win32_System_Com_StructuredStorage"))] Save: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPersistPropertyBag2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IPersistPropertyBag2, + IPersistPropertyBag2_Vtbl, + 0x22f55881_280b_11d0_a8a9_00a0c90c2004 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IPersistPropertyBag2, ::windows_core::IUnknown, super::Com::IPersist); #[cfg(feature = "Win32_System_Com")] impl IPersistPropertyBag2 { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -7177,16 +6689,6 @@ impl IPersistPropertyBag2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IPersistPropertyBag2, ::windows_core::IUnknown, super::Com::IPersist); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IPersistPropertyBag2 { - type Vtable = IPersistPropertyBag2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IPersistPropertyBag2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x22f55881_280b_11d0_a8a9_00a0c90c2004); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IPersistPropertyBag2_Vtbl { @@ -7202,9 +6704,8 @@ pub struct IPersistPropertyBag2_Vtbl { Save: usize, pub IsDirty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPicture(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPicture, IPicture_Vtbl, 0x7bf80980_bf32_101a_8bbb_00aa00300cab); +::windows_core::imp::interface_hierarchy!(IPicture, ::windows_core::IUnknown); impl IPicture { pub unsafe fn Handle(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -7282,13 +6783,6 @@ impl IPicture { (::windows_core::Interface::vtable(self).Attributes)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IPicture, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPicture { - type Vtable = IPicture_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPicture { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7bf80980_bf32_101a_8bbb_00aa00300cab); -} #[repr(C)] #[doc(hidden)] pub struct IPicture_Vtbl { @@ -7320,9 +6814,8 @@ pub struct IPicture_Vtbl { SaveAsFile: usize, pub Attributes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwattr: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPicture2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPicture2, IPicture2_Vtbl, 0xf5185dd8_2012_4b0b_aad9_f052c6bd482b); +::windows_core::imp::interface_hierarchy!(IPicture2, ::windows_core::IUnknown); impl IPicture2 { pub unsafe fn Handle(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -7397,13 +6890,6 @@ impl IPicture2 { (::windows_core::Interface::vtable(self).Attributes)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IPicture2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPicture2 { - type Vtable = IPicture2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPicture2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf5185dd8_2012_4b0b_aad9_f052c6bd482b); -} #[repr(C)] #[doc(hidden)] pub struct IPicture2_Vtbl { @@ -7435,32 +6921,25 @@ pub struct IPicture2_Vtbl { SaveAsFile: usize, pub Attributes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwattr: *mut u32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] -#[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPictureDisp(::windows_core::IUnknown); #[cfg(feature = "Win32_System_Com")] -impl IPictureDisp {} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IPictureDisp, + IPictureDisp_Vtbl, + 0x7bf80981_bf32_101a_8bbb_00aa00300cab +); #[cfg(feature = "Win32_System_Com")] ::windows_core::imp::interface_hierarchy!(IPictureDisp, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IPictureDisp { - type Vtable = IPictureDisp_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IPictureDisp { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7bf80981_bf32_101a_8bbb_00aa00300cab); -} +impl IPictureDisp {} #[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IPictureDisp_Vtbl { pub base__: super::Com::IDispatch_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPointerInactive(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPointerInactive, IPointerInactive_Vtbl, 0x55980ba0_35aa_11cf_b671_00aa004cd6d8); +::windows_core::imp::interface_hierarchy!(IPointerInactive, ::windows_core::IUnknown); impl IPointerInactive { pub unsafe fn GetActivationPolicy(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -7476,13 +6955,6 @@ impl IPointerInactive { (::windows_core::Interface::vtable(self).OnInactiveSetCursor)(::windows_core::Interface::as_raw(self), prectbounds, x, y, dwmousemsg, fsetalways.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IPointerInactive, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPointerInactive { - type Vtable = IPointerInactive_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPointerInactive { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x55980ba0_35aa_11cf_b671_00aa004cd6d8); -} #[repr(C)] #[doc(hidden)] pub struct IPointerInactive_Vtbl { @@ -7491,9 +6963,8 @@ pub struct IPointerInactive_Vtbl { pub OnInactiveMouseMove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prectbounds: *const super::super::Foundation::RECT, x: i32, y: i32, grfkeystate: u32) -> ::windows_core::HRESULT, pub OnInactiveSetCursor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prectbounds: *const super::super::Foundation::RECT, x: i32, y: i32, dwmousemsg: u32, fsetalways: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrint(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPrint, IPrint_Vtbl, 0xb722bcc9_4e68_101b_a2bc_00aa00404770); +::windows_core::imp::interface_hierarchy!(IPrint, ::windows_core::IUnknown); impl IPrint { pub unsafe fn SetInitialPageNum(&self, nfirstpage: i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetInitialPageNum)(::windows_core::Interface::as_raw(self), nfirstpage).ok() @@ -7510,13 +6981,6 @@ impl IPrint { (::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::imp::interface_hierarchy!(IPrint, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrint { - type Vtable = IPrint_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrint { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb722bcc9_4e68_101b_a2bc_00aa00404770); -} #[repr(C)] #[doc(hidden)] pub struct IPrint_Vtbl { @@ -7528,9 +6992,8 @@ pub struct IPrint_Vtbl { #[cfg(not(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com_StructuredStorage")))] Print: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPropertyNotifySink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPropertyNotifySink, IPropertyNotifySink_Vtbl, 0x9bfbbc02_eff1_101a_84ed_00aa00341d07); +::windows_core::imp::interface_hierarchy!(IPropertyNotifySink, ::windows_core::IUnknown); impl IPropertyNotifySink { pub unsafe fn OnChanged(&self, dispid: i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnChanged)(::windows_core::Interface::as_raw(self), dispid).ok() @@ -7539,13 +7002,6 @@ impl IPropertyNotifySink { (::windows_core::Interface::vtable(self).OnRequestEdit)(::windows_core::Interface::as_raw(self), dispid).ok() } } -::windows_core::imp::interface_hierarchy!(IPropertyNotifySink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPropertyNotifySink { - type Vtable = IPropertyNotifySink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPropertyNotifySink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9bfbbc02_eff1_101a_84ed_00aa00341d07); -} #[repr(C)] #[doc(hidden)] pub struct IPropertyNotifySink_Vtbl { @@ -7553,9 +7009,8 @@ pub struct IPropertyNotifySink_Vtbl { pub OnChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dispid: i32) -> ::windows_core::HRESULT, pub OnRequestEdit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dispid: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPropertyPage(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPropertyPage, IPropertyPage_Vtbl, 0xb196b28d_bab4_101a_b69c_00aa00341d07); +::windows_core::imp::interface_hierarchy!(IPropertyPage, ::windows_core::IUnknown); impl IPropertyPage { pub unsafe fn SetPageSite(&self, ppagesite: P0) -> ::windows_core::Result<()> where @@ -7603,13 +7058,6 @@ impl IPropertyPage { (::windows_core::Interface::vtable(self).TranslateAccelerator)(::windows_core::Interface::as_raw(self), pmsg).ok() } } -::windows_core::imp::interface_hierarchy!(IPropertyPage, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPropertyPage { - type Vtable = IPropertyPage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPropertyPage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb196b28d_bab4_101a_b69c_00aa00341d07); -} #[repr(C)] #[doc(hidden)] pub struct IPropertyPage_Vtbl { @@ -7629,9 +7077,8 @@ pub struct IPropertyPage_Vtbl { #[cfg(not(feature = "Win32_UI_WindowsAndMessaging"))] TranslateAccelerator: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPropertyPage2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPropertyPage2, IPropertyPage2_Vtbl, 0x01e44665_24ac_101b_84ed_08002b2ec713); +::windows_core::imp::interface_hierarchy!(IPropertyPage2, ::windows_core::IUnknown, IPropertyPage); impl IPropertyPage2 { pub unsafe fn SetPageSite(&self, ppagesite: P0) -> ::windows_core::Result<()> where @@ -7682,22 +7129,14 @@ impl IPropertyPage2 { (::windows_core::Interface::vtable(self).EditProperty)(::windows_core::Interface::as_raw(self), dispid).ok() } } -::windows_core::imp::interface_hierarchy!(IPropertyPage2, ::windows_core::IUnknown, IPropertyPage); -unsafe impl ::windows_core::Interface for IPropertyPage2 { - type Vtable = IPropertyPage2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPropertyPage2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x01e44665_24ac_101b_84ed_08002b2ec713); -} #[repr(C)] #[doc(hidden)] pub struct IPropertyPage2_Vtbl { pub base__: IPropertyPage_Vtbl, pub EditProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dispid: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPropertyPageSite(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPropertyPageSite, IPropertyPageSite_Vtbl, 0xb196b28c_bab4_101a_b69c_00aa00341d07); +::windows_core::imp::interface_hierarchy!(IPropertyPageSite, ::windows_core::IUnknown); impl IPropertyPageSite { pub unsafe fn OnStatusChange(&self, dwflags: PROPPAGESTATUS) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnStatusChange)(::windows_core::Interface::as_raw(self), dwflags.0 as _).ok() @@ -7716,13 +7155,6 @@ impl IPropertyPageSite { (::windows_core::Interface::vtable(self).TranslateAccelerator)(::windows_core::Interface::as_raw(self), pmsg).ok() } } -::windows_core::imp::interface_hierarchy!(IPropertyPageSite, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPropertyPageSite { - type Vtable = IPropertyPageSite_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPropertyPageSite { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb196b28c_bab4_101a_b69c_00aa00341d07); -} #[repr(C)] #[doc(hidden)] pub struct IPropertyPageSite_Vtbl { @@ -7735,31 +7167,22 @@ pub struct IPropertyPageSite_Vtbl { #[cfg(not(feature = "Win32_UI_WindowsAndMessaging"))] TranslateAccelerator: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProtectFocus(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IProtectFocus, IProtectFocus_Vtbl, 0xd81f90a3_8156_44f7_ad28_5abb87003274); +::windows_core::imp::interface_hierarchy!(IProtectFocus, ::windows_core::IUnknown); impl IProtectFocus { pub unsafe fn AllowFocusChange(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).AllowFocusChange)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IProtectFocus, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProtectFocus { - type Vtable = IProtectFocus_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProtectFocus { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd81f90a3_8156_44f7_ad28_5abb87003274); -} #[repr(C)] #[doc(hidden)] pub struct IProtectFocus_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub AllowFocusChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfallow: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProtectedModeMenuServices(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IProtectedModeMenuServices, IProtectedModeMenuServices_Vtbl, 0x73c105ee_9dff_4a07_b83c_7eff290c266e); +::windows_core::imp::interface_hierarchy!(IProtectedModeMenuServices, ::windows_core::IUnknown); impl IProtectedModeMenuServices { #[doc = "Required features: `\"Win32_UI_WindowsAndMessaging\"`"] #[cfg(feature = "Win32_UI_WindowsAndMessaging")] @@ -7787,13 +7210,6 @@ impl IProtectedModeMenuServices { (::windows_core::Interface::vtable(self).LoadMenuID)(::windows_core::Interface::as_raw(self), pszmodulename.into_param().abi(), wresourceid, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IProtectedModeMenuServices, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProtectedModeMenuServices { - type Vtable = IProtectedModeMenuServices_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProtectedModeMenuServices { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x73c105ee_9dff_4a07_b83c_7eff290c266e); -} #[repr(C)] #[doc(hidden)] pub struct IProtectedModeMenuServices_Vtbl { @@ -7811,9 +7227,8 @@ pub struct IProtectedModeMenuServices_Vtbl { #[cfg(not(feature = "Win32_UI_WindowsAndMessaging"))] LoadMenuID: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProvideClassInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IProvideClassInfo, IProvideClassInfo_Vtbl, 0xb196b283_bab4_101a_b69c_00aa00341d07); +::windows_core::imp::interface_hierarchy!(IProvideClassInfo, ::windows_core::IUnknown); impl IProvideClassInfo { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -7822,13 +7237,6 @@ impl IProvideClassInfo { (::windows_core::Interface::vtable(self).GetClassInfo)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IProvideClassInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProvideClassInfo { - type Vtable = IProvideClassInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProvideClassInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb196b283_bab4_101a_b69c_00aa00341d07); -} #[repr(C)] #[doc(hidden)] pub struct IProvideClassInfo_Vtbl { @@ -7838,9 +7246,8 @@ pub struct IProvideClassInfo_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetClassInfo: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProvideClassInfo2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IProvideClassInfo2, IProvideClassInfo2_Vtbl, 0xa6bc3ac0_dbaa_11ce_9de3_00aa004bb851); +::windows_core::imp::interface_hierarchy!(IProvideClassInfo2, ::windows_core::IUnknown, IProvideClassInfo); impl IProvideClassInfo2 { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -7853,22 +7260,14 @@ impl IProvideClassInfo2 { (::windows_core::Interface::vtable(self).GetGUID)(::windows_core::Interface::as_raw(self), dwguidkind, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IProvideClassInfo2, ::windows_core::IUnknown, IProvideClassInfo); -unsafe impl ::windows_core::Interface for IProvideClassInfo2 { - type Vtable = IProvideClassInfo2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProvideClassInfo2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa6bc3ac0_dbaa_11ce_9de3_00aa004bb851); -} #[repr(C)] #[doc(hidden)] pub struct IProvideClassInfo2_Vtbl { pub base__: IProvideClassInfo_Vtbl, pub GetGUID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwguidkind: u32, pguid: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProvideMultipleClassInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IProvideMultipleClassInfo, IProvideMultipleClassInfo_Vtbl, 0xa7aba9c1_8983_11cf_8f20_00805f2cd064); +::windows_core::imp::interface_hierarchy!(IProvideMultipleClassInfo, ::windows_core::IUnknown, IProvideClassInfo, IProvideClassInfo2); impl IProvideMultipleClassInfo { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -7890,13 +7289,6 @@ impl IProvideMultipleClassInfo { (::windows_core::Interface::vtable(self).GetInfoOfIndex)(::windows_core::Interface::as_raw(self), iti, dwflags, ::core::mem::transmute(ppticoclass), pdwtiflags, pcdispidreserved, piidprimary, piidsource).ok() } } -::windows_core::imp::interface_hierarchy!(IProvideMultipleClassInfo, ::windows_core::IUnknown, IProvideClassInfo, IProvideClassInfo2); -unsafe impl ::windows_core::Interface for IProvideMultipleClassInfo { - type Vtable = IProvideMultipleClassInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProvideMultipleClassInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa7aba9c1_8983_11cf_8f20_00805f2cd064); -} #[repr(C)] #[doc(hidden)] pub struct IProvideMultipleClassInfo_Vtbl { @@ -7907,30 +7299,21 @@ pub struct IProvideMultipleClassInfo_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetInfoOfIndex: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProvideRuntimeContext(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IProvideRuntimeContext, IProvideRuntimeContext_Vtbl, 0x10e2414a_ec59_49d2_bc51_5add2c36febc); +::windows_core::imp::interface_hierarchy!(IProvideRuntimeContext, ::windows_core::IUnknown); impl IProvideRuntimeContext { pub unsafe fn GetCurrentSourceContext(&self, pdwcontext: *mut usize, pfexecutingglobalcode: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetCurrentSourceContext)(::windows_core::Interface::as_raw(self), pdwcontext, pfexecutingglobalcode).ok() } } -::windows_core::imp::interface_hierarchy!(IProvideRuntimeContext, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProvideRuntimeContext { - type Vtable = IProvideRuntimeContext_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProvideRuntimeContext { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x10e2414a_ec59_49d2_bc51_5add2c36febc); -} #[repr(C)] #[doc(hidden)] pub struct IProvideRuntimeContext_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetCurrentSourceContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwcontext: *mut usize, pfexecutingglobalcode: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IQuickActivate(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IQuickActivate, IQuickActivate_Vtbl, 0xcf51ed10_62fe_11cf_bf86_00a0c9034836); +::windows_core::imp::interface_hierarchy!(IQuickActivate, ::windows_core::IUnknown); impl IQuickActivate { #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_System_Com\"`"] #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] @@ -7945,13 +7328,6 @@ impl IQuickActivate { (::windows_core::Interface::vtable(self).GetContentExtent)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IQuickActivate, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IQuickActivate { - type Vtable = IQuickActivate_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IQuickActivate { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcf51ed10_62fe_11cf_bf86_00a0c9034836); -} #[repr(C)] #[doc(hidden)] pub struct IQuickActivate_Vtbl { @@ -7963,9 +7339,8 @@ pub struct IQuickActivate_Vtbl { pub SetContentExtent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psizel: *const super::super::Foundation::SIZE) -> ::windows_core::HRESULT, pub GetContentExtent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psizel: *mut super::super::Foundation::SIZE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRecordInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRecordInfo, IRecordInfo_Vtbl, 0x0000002f_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IRecordInfo, ::windows_core::IUnknown); impl IRecordInfo { pub unsafe fn RecordInit(&self, pvnew: *mut ::core::ffi::c_void) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).RecordInit)(::windows_core::Interface::as_raw(self), pvnew).ok() @@ -8046,13 +7421,6 @@ impl IRecordInfo { (::windows_core::Interface::vtable(self).RecordDestroy)(::windows_core::Interface::as_raw(self), pvrecord).ok() } } -::windows_core::imp::interface_hierarchy!(IRecordInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRecordInfo { - type Vtable = IRecordInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRecordInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0000002f_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IRecordInfo_Vtbl { @@ -8089,9 +7457,8 @@ pub struct IRecordInfo_Vtbl { pub RecordCreateCopy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvsource: *const ::core::ffi::c_void, ppvdest: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RecordDestroy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvrecord: *const ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISimpleFrameSite(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISimpleFrameSite, ISimpleFrameSite_Vtbl, 0x742b0e01_14e6_101b_914e_00aa00300cab); +::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 @@ -8110,13 +7477,6 @@ impl ISimpleFrameSite { (::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::imp::interface_hierarchy!(ISimpleFrameSite, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISimpleFrameSite { - type Vtable = ISimpleFrameSite_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISimpleFrameSite { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x742b0e01_14e6_101b_914e_00aa00300cab); -} #[repr(C)] #[doc(hidden)] pub struct ISimpleFrameSite_Vtbl { @@ -8124,31 +7484,22 @@ pub struct ISimpleFrameSite_Vtbl { pub PreMessageFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwnd: super::super::Foundation::HWND, msg: u32, wp: super::super::Foundation::WPARAM, lp: super::super::Foundation::LPARAM, plresult: *mut super::super::Foundation::LRESULT, pdwcookie: *mut u32) -> ::windows_core::HRESULT, pub PostMessageFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwnd: super::super::Foundation::HWND, msg: u32, wp: super::super::Foundation::WPARAM, lp: super::super::Foundation::LPARAM, plresult: *mut super::super::Foundation::LRESULT, dwcookie: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpecifyPropertyPages(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpecifyPropertyPages, ISpecifyPropertyPages_Vtbl, 0xb196b28b_bab4_101a_b69c_00aa00341d07); +::windows_core::imp::interface_hierarchy!(ISpecifyPropertyPages, ::windows_core::IUnknown); impl ISpecifyPropertyPages { pub unsafe fn GetPages(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetPages)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISpecifyPropertyPages, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpecifyPropertyPages { - type Vtable = ISpecifyPropertyPages_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpecifyPropertyPages { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb196b28b_bab4_101a_b69c_00aa00341d07); -} #[repr(C)] #[doc(hidden)] pub struct ISpecifyPropertyPages_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetPages: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppages: *mut CAUUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITypeChangeEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITypeChangeEvents, ITypeChangeEvents_Vtbl, 0x00020410_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(ITypeChangeEvents, ::windows_core::IUnknown); impl ITypeChangeEvents { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -8170,13 +7521,6 @@ impl ITypeChangeEvents { (::windows_core::Interface::vtable(self).AfterTypeChange)(::windows_core::Interface::as_raw(self), changekind, ptinfoafter.into_param().abi(), pstrname.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ITypeChangeEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITypeChangeEvents { - type Vtable = ITypeChangeEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITypeChangeEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00020410_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct ITypeChangeEvents_Vtbl { @@ -8190,9 +7534,8 @@ pub struct ITypeChangeEvents_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] AfterTypeChange: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITypeFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITypeFactory, ITypeFactory_Vtbl, 0x0000002e_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(ITypeFactory, ::windows_core::IUnknown); impl ITypeFactory { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -8204,13 +7547,6 @@ impl ITypeFactory { (::windows_core::Interface::vtable(self).CreateFromTypeInfo)(::windows_core::Interface::as_raw(self), ptypeinfo.into_param().abi(), riid, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITypeFactory, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITypeFactory { - type Vtable = ITypeFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITypeFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0000002e_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct ITypeFactory_Vtbl { @@ -8220,9 +7556,8 @@ pub struct ITypeFactory_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] CreateFromTypeInfo: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITypeMarshal(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITypeMarshal, ITypeMarshal_Vtbl, 0x0000002d_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(ITypeMarshal, ::windows_core::IUnknown); impl ITypeMarshal { pub unsafe fn Size(&self, pvtype: *const ::core::ffi::c_void, dwdestcontext: u32, pvdestcontext: *const ::core::ffi::c_void) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -8238,13 +7573,6 @@ impl ITypeMarshal { (::windows_core::Interface::vtable(self).Free)(::windows_core::Interface::as_raw(self), pvtype).ok() } } -::windows_core::imp::interface_hierarchy!(ITypeMarshal, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITypeMarshal { - type Vtable = ITypeMarshal_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITypeMarshal { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0000002d_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct ITypeMarshal_Vtbl { @@ -8254,9 +7582,8 @@ pub struct ITypeMarshal_Vtbl { pub Unmarshal: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvtype: *mut ::core::ffi::c_void, dwflags: u32, cbbufferlength: u32, pbuffer: *const u8, pcbread: *mut u32) -> ::windows_core::HRESULT, pub Free: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvtype: *const ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVBFormat(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVBFormat, IVBFormat_Vtbl, 0x9849fd60_3768_101b_8d72_ae6164ffe3cf); +::windows_core::imp::interface_hierarchy!(IVBFormat, ::windows_core::IUnknown); impl IVBFormat { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Variant"))] @@ -8267,13 +7594,6 @@ impl IVBFormat { (::windows_core::Interface::vtable(self).Format)(::windows_core::Interface::as_raw(self), vdata, bstrformat.into_param().abi(), lpbuffer, cb, lcid, sfirstdayofweek, sfirstweekofyear, rcb).ok() } } -::windows_core::imp::interface_hierarchy!(IVBFormat, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVBFormat { - type Vtable = IVBFormat_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVBFormat { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9849fd60_3768_101b_8d72_ae6164ffe3cf); -} #[repr(C)] #[doc(hidden)] pub struct IVBFormat_Vtbl { @@ -8283,9 +7603,8 @@ pub struct IVBFormat_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Variant")))] Format: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVBGetControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVBGetControl, IVBGetControl_Vtbl, 0x40a050a0_3c31_101b_a82e_08002b2b2337); +::windows_core::imp::interface_hierarchy!(IVBGetControl, ::windows_core::IUnknown); impl IVBGetControl { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -8294,13 +7613,6 @@ impl IVBGetControl { (::windows_core::Interface::vtable(self).EnumControls)(::windows_core::Interface::as_raw(self), dwolecontf.0 as _, dwwhich, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IVBGetControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVBGetControl { - type Vtable = IVBGetControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVBGetControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x40a050a0_3c31_101b_a82e_08002b2b2337); -} #[repr(C)] #[doc(hidden)] pub struct IVBGetControl_Vtbl { @@ -8310,9 +7622,8 @@ pub struct IVBGetControl_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] EnumControls: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVariantChangeType(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVariantChangeType, IVariantChangeType_Vtbl, 0xa6ef9862_c720_11d0_9337_00a0c90dcaa9); +::windows_core::imp::interface_hierarchy!(IVariantChangeType, ::windows_core::IUnknown); impl IVariantChangeType { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Variant"))] @@ -8320,13 +7631,6 @@ impl IVariantChangeType { (::windows_core::Interface::vtable(self).ChangeType)(::windows_core::Interface::as_raw(self), pvardst, pvarsrc, lcid, vtnew).ok() } } -::windows_core::imp::interface_hierarchy!(IVariantChangeType, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVariantChangeType { - type Vtable = IVariantChangeType_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVariantChangeType { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa6ef9862_c720_11d0_9337_00a0c90dcaa9); -} #[repr(C)] #[doc(hidden)] pub struct IVariantChangeType_Vtbl { @@ -8336,9 +7640,8 @@ pub struct IVariantChangeType_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Variant")))] ChangeType: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IViewObject(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IViewObject, IViewObject_Vtbl, 0x0000010d_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IViewObject, ::windows_core::IUnknown); impl IViewObject { #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_System_Com\"`"] #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] @@ -8379,13 +7682,6 @@ impl IViewObject { (::windows_core::Interface::vtable(self).GetAdvise)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(paspects.unwrap_or(::std::ptr::null_mut())), ::core::mem::transmute(padvf.unwrap_or(::std::ptr::null_mut())), ::core::mem::transmute(ppadvsink)).ok() } } -::windows_core::imp::interface_hierarchy!(IViewObject, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IViewObject { - type Vtable = IViewObject_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IViewObject { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0000010d_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IViewObject_Vtbl { @@ -8412,9 +7708,8 @@ pub struct IViewObject_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetAdvise: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IViewObject2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IViewObject2, IViewObject2_Vtbl, 0x00000127_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IViewObject2, ::windows_core::IUnknown, IViewObject); impl IViewObject2 { #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_System_Com\"`"] #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] @@ -8461,13 +7756,6 @@ impl IViewObject2 { (::windows_core::Interface::vtable(self).GetExtent)(::windows_core::Interface::as_raw(self), dwdrawaspect, lindex, ptd, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IViewObject2, ::windows_core::IUnknown, IViewObject); -unsafe impl ::windows_core::Interface for IViewObject2 { - type Vtable = IViewObject2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IViewObject2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00000127_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IViewObject2_Vtbl { @@ -8477,9 +7765,8 @@ pub struct IViewObject2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetExtent: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IViewObjectEx(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IViewObjectEx, IViewObjectEx_Vtbl, 0x3af24292_0c96_11ce_a0cf_00aa00600ab8); +::windows_core::imp::interface_hierarchy!(IViewObjectEx, ::windows_core::IUnknown, IViewObject, IViewObject2); impl IViewObjectEx { #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_System_Com\"`"] #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] @@ -8551,13 +7838,6 @@ impl IViewObjectEx { (::windows_core::Interface::vtable(self).GetNaturalExtent)(::windows_core::Interface::as_raw(self), dwaspect, lindex, ptd, hictargetdev.into_param().abi(), pextentinfo, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IViewObjectEx, ::windows_core::IUnknown, IViewObject, IViewObject2); -unsafe impl ::windows_core::Interface for IViewObjectEx { - type Vtable = IViewObjectEx_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IViewObjectEx { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3af24292_0c96_11ce_a0cf_00aa00600ab8); -} #[repr(C)] #[doc(hidden)] pub struct IViewObjectEx_Vtbl { @@ -8571,21 +7851,13 @@ pub struct IViewObjectEx_Vtbl { #[cfg(not(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com")))] GetNaturalExtent: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IZoomEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IZoomEvents, IZoomEvents_Vtbl, 0x41b68150_904c_4e17_a0ba_a438182e359d); +::windows_core::imp::interface_hierarchy!(IZoomEvents, ::windows_core::IUnknown); impl IZoomEvents { pub unsafe fn OnZoomPercentChanged(&self, ulzoompercent: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnZoomPercentChanged)(::windows_core::Interface::as_raw(self), ulzoompercent).ok() } } -::windows_core::imp::interface_hierarchy!(IZoomEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IZoomEvents { - type Vtable = IZoomEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IZoomEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x41b68150_904c_4e17_a0ba_a438182e359d); -} #[repr(C)] #[doc(hidden)] pub struct IZoomEvents_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/System/ParentalControls/impl.rs b/crates/libs/windows/src/Windows/Win32/System/ParentalControls/impl.rs index 77aafff51f..091664e0ee 100644 --- a/crates/libs/windows/src/Windows/Win32/System/ParentalControls/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/ParentalControls/impl.rs @@ -18,7 +18,7 @@ impl IWPCGamesSettings_Vtbl { Self { base__: IWPCSettings_Vtbl::new::(), IsBlocked: IsBlocked:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IWPCProviderConfig_Impl: Sized { @@ -58,7 +58,7 @@ impl IWPCProviderConfig_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWPCProviderState_Impl: Sized { @@ -85,7 +85,7 @@ impl IWPCProviderState_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWPCProviderSupport_Impl: Sized { @@ -108,7 +108,7 @@ impl IWPCProviderSupport_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetCurrent: GetCurrent:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWPCSettings_Impl: Sized { @@ -160,7 +160,7 @@ impl IWPCSettings_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWPCWebSettings_Impl: Sized + IWPCSettings_Impl { @@ -199,7 +199,7 @@ impl IWPCWebSettings_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IWindowsParentalControls_Impl: Sized + IWindowsParentalControlsCore_Impl { @@ -222,7 +222,7 @@ impl IWindowsParentalControls_Vtbl { Self { base__: IWindowsParentalControlsCore_Vtbl::new::(), GetGamesSettings: GetGamesSettings:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IWindowsParentalControlsCore_Impl: Sized { @@ -281,6 +281,6 @@ impl IWindowsParentalControlsCore_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 d98c06567d..bd8482398f 100644 --- a/crates/libs/windows/src/Windows/Win32/System/ParentalControls/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/ParentalControls/mod.rs @@ -1,6 +1,5 @@ -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWPCGamesSettings(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWPCGamesSettings, IWPCGamesSettings_Vtbl, 0x95e87780_e158_489e_b452_bbb850790715); +::windows_core::imp::interface_hierarchy!(IWPCGamesSettings, ::windows_core::IUnknown, IWPCSettings); impl IWPCGamesSettings { pub unsafe fn IsLoggingRequired(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -19,22 +18,14 @@ impl IWPCGamesSettings { (::windows_core::Interface::vtable(self).IsBlocked)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(guidappid), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWPCGamesSettings, ::windows_core::IUnknown, IWPCSettings); -unsafe impl ::windows_core::Interface for IWPCGamesSettings { - type Vtable = IWPCGamesSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWPCGamesSettings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x95e87780_e158_489e_b452_bbb850790715); -} #[repr(C)] #[doc(hidden)] pub struct IWPCGamesSettings_Vtbl { pub base__: IWPCSettings_Vtbl, pub IsBlocked: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guidappid: ::windows_core::GUID, pdwreasons: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWPCProviderConfig(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWPCProviderConfig, IWPCProviderConfig_Vtbl, 0xbef54196_2d02_4a26_b6e5_d65af295d0f1); +::windows_core::imp::interface_hierarchy!(IWPCProviderConfig, ::windows_core::IUnknown); impl IWPCProviderConfig { pub unsafe fn GetUserSummary(&self, bstrsid: P0) -> ::windows_core::Result<::windows_core::BSTR> where @@ -58,13 +49,6 @@ impl IWPCProviderConfig { (::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::imp::interface_hierarchy!(IWPCProviderConfig, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWPCProviderConfig { - type Vtable = IWPCProviderConfig_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWPCProviderConfig { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbef54196_2d02_4a26_b6e5_d65af295d0f1); -} #[repr(C)] #[doc(hidden)] pub struct IWPCProviderConfig_Vtbl { @@ -73,9 +57,8 @@ pub struct IWPCProviderConfig_Vtbl { pub Configure: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwnd: super::super::Foundation::HWND, bstrsid: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub RequestOverride: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwnd: super::super::Foundation::HWND, bstrpath: ::std::mem::MaybeUninit<::windows_core::BSTR>, dwflags: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWPCProviderState(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWPCProviderState, IWPCProviderState_Vtbl, 0x50b6a267_c4bd_450b_adb5_759073837c9e); +::windows_core::imp::interface_hierarchy!(IWPCProviderState, ::windows_core::IUnknown); impl IWPCProviderState { pub unsafe fn Enable(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Enable)(::windows_core::Interface::as_raw(self)).ok() @@ -84,13 +67,6 @@ impl IWPCProviderState { (::windows_core::Interface::vtable(self).Disable)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IWPCProviderState, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWPCProviderState { - type Vtable = IWPCProviderState_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWPCProviderState { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x50b6a267_c4bd_450b_adb5_759073837c9e); -} #[repr(C)] #[doc(hidden)] pub struct IWPCProviderState_Vtbl { @@ -98,31 +74,22 @@ pub struct IWPCProviderState_Vtbl { pub Enable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Disable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWPCProviderSupport(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWPCProviderSupport, IWPCProviderSupport_Vtbl, 0x41eba572_23ed_4779_bec1_8df96206c44c); +::windows_core::imp::interface_hierarchy!(IWPCProviderSupport, ::windows_core::IUnknown); impl IWPCProviderSupport { pub unsafe fn GetCurrent(&self) -> ::windows_core::Result<::windows_core::GUID> { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetCurrent)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWPCProviderSupport, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWPCProviderSupport { - type Vtable = IWPCProviderSupport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWPCProviderSupport { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x41eba572_23ed_4779_bec1_8df96206c44c); -} #[repr(C)] #[doc(hidden)] pub struct IWPCProviderSupport_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetCurrent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pguidprovider: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWPCSettings(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWPCSettings, IWPCSettings_Vtbl, 0x8fdf6ca1_0189_47e4_b670_1a8a4636e340); +::windows_core::imp::interface_hierarchy!(IWPCSettings, ::windows_core::IUnknown); impl IWPCSettings { pub unsafe fn IsLoggingRequired(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -137,13 +104,6 @@ impl IWPCSettings { (::windows_core::Interface::vtable(self).GetRestrictions)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWPCSettings, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWPCSettings { - type Vtable = IWPCSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWPCSettings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8fdf6ca1_0189_47e4_b670_1a8a4636e340); -} #[repr(C)] #[doc(hidden)] pub struct IWPCSettings_Vtbl { @@ -152,9 +112,8 @@ pub struct IWPCSettings_Vtbl { pub GetLastSettingsChangeTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptime: *mut super::super::Foundation::SYSTEMTIME) -> ::windows_core::HRESULT, pub GetRestrictions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwrestrictions: *mut WPCFLAG_RESTRICTION) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWPCWebSettings(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWPCWebSettings, IWPCWebSettings_Vtbl, 0xffccbdb8_0992_4c30_b0f1_1cbb09c240aa); +::windows_core::imp::interface_hierarchy!(IWPCWebSettings, ::windows_core::IUnknown, IWPCSettings); impl IWPCWebSettings { pub unsafe fn IsLoggingRequired(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -181,13 +140,6 @@ impl IWPCWebSettings { (::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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWPCWebSettings, ::windows_core::IUnknown, IWPCSettings); -unsafe impl ::windows_core::Interface for IWPCWebSettings { - type Vtable = IWPCWebSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWPCWebSettings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xffccbdb8_0992_4c30_b0f1_1cbb09c240aa); -} #[repr(C)] #[doc(hidden)] pub struct IWPCWebSettings_Vtbl { @@ -195,9 +147,8 @@ pub struct IWPCWebSettings_Vtbl { pub GetSettings: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwsettings: *mut WPCFLAG_WEB_SETTING) -> ::windows_core::HRESULT, pub RequestURLOverride: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwnd: super::super::Foundation::HWND, pcszurl: ::windows_core::PCWSTR, curls: u32, ppcszsuburls: *const ::windows_core::PCWSTR, pfchanged: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWindowsParentalControls(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWindowsParentalControls, IWindowsParentalControls_Vtbl, 0x28b4d88b_e072_49e6_804d_26edbe21a7b9); +::windows_core::imp::interface_hierarchy!(IWindowsParentalControls, ::windows_core::IUnknown, IWindowsParentalControlsCore); impl IWindowsParentalControls { pub unsafe fn GetVisibility(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -228,22 +179,14 @@ impl IWindowsParentalControls { (::windows_core::Interface::vtable(self).GetGamesSettings)(::windows_core::Interface::as_raw(self), pcszsid.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWindowsParentalControls, ::windows_core::IUnknown, IWindowsParentalControlsCore); -unsafe impl ::windows_core::Interface for IWindowsParentalControls { - type Vtable = IWindowsParentalControls_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWindowsParentalControls { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x28b4d88b_e072_49e6_804d_26edbe21a7b9); -} #[repr(C)] #[doc(hidden)] pub struct IWindowsParentalControls_Vtbl { pub base__: IWindowsParentalControlsCore_Vtbl, pub GetGamesSettings: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcszsid: ::windows_core::PCWSTR, ppsettings: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWindowsParentalControlsCore(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWindowsParentalControlsCore, IWindowsParentalControlsCore_Vtbl, 0x4ff40a0f_3f3b_4d7c_a41b_4f39d7b44d05); +::windows_core::imp::interface_hierarchy!(IWindowsParentalControlsCore, ::windows_core::IUnknown); impl IWindowsParentalControlsCore { pub unsafe fn GetVisibility(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -267,13 +210,6 @@ impl IWindowsParentalControlsCore { (::windows_core::Interface::vtable(self).GetWebFilterInfo)(::windows_core::Interface::as_raw(self), pguidid, ::core::mem::transmute(ppszname.unwrap_or(::std::ptr::null_mut()))).ok() } } -::windows_core::imp::interface_hierarchy!(IWindowsParentalControlsCore, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWindowsParentalControlsCore { - type Vtable = IWindowsParentalControlsCore_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWindowsParentalControlsCore { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4ff40a0f_3f3b_4d7c_a41b_4f39d7b44d05); -} #[repr(C)] #[doc(hidden)] pub struct IWindowsParentalControlsCore_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/System/Performance/impl.rs b/crates/libs/windows/src/Windows/Win32/System/Performance/impl.rs index 944d841cb7..772fea06c2 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Performance/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Performance/impl.rs @@ -9,7 +9,7 @@ impl DICounterItem_Vtbl { Self { base__: super::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -23,7 +23,7 @@ impl DILogFileItem_Vtbl { Self { base__: super::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -37,7 +37,7 @@ impl DISystemMonitor_Vtbl { Self { base__: super::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -51,7 +51,7 @@ impl DISystemMonitorEvents_Vtbl { Self { base__: super::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -65,7 +65,7 @@ impl DISystemMonitorInternal_Vtbl { Self { base__: super::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -242,7 +242,7 @@ impl IAlertDataCollector_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -399,7 +399,7 @@ impl IApiTracingDataCollector_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -596,7 +596,7 @@ impl IConfigurationDataCollector_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ICounterItem_Impl: Sized { @@ -729,7 +729,7 @@ impl ICounterItem_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -799,7 +799,7 @@ impl ICounterItem2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -875,7 +875,7 @@ impl ICounters_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1157,7 +1157,7 @@ impl IDataCollector_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1261,7 +1261,7 @@ impl IDataCollectorCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1902,7 +1902,7 @@ impl IDataCollectorSet_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1993,7 +1993,7 @@ impl IDataCollectorSetCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2263,7 +2263,7 @@ impl IDataManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2360,7 +2360,7 @@ impl IFolderAction_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2457,7 +2457,7 @@ impl IFolderActionCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ILogFileItem_Impl: Sized { @@ -2480,7 +2480,7 @@ impl ILogFileItem_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Path: Path:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2556,7 +2556,7 @@ impl ILogFiles_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2673,7 +2673,7 @@ impl IPerformanceCounterDataCollector_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2770,7 +2770,7 @@ impl ISchedule_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2867,7 +2867,7 @@ impl IScheduleCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`"] @@ -3632,7 +3632,7 @@ impl ISystemMonitor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`"] @@ -3831,7 +3831,7 @@ impl ISystemMonitor2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ISystemMonitorEvents_Impl: Sized { @@ -3879,7 +3879,7 @@ impl ISystemMonitorEvents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4302,7 +4302,7 @@ impl ITraceDataCollector_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4518,7 +4518,7 @@ impl ITraceDataProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4629,7 +4629,7 @@ impl ITraceDataProviderCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4786,7 +4786,7 @@ impl IValueMap_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4903,7 +4903,7 @@ impl IValueMapItem_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5093,7 +5093,7 @@ impl _ICounterItemUnion_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &<_ICounterItemUnion as ::windows_core::ComInterface>::IID + iid == &<_ICounterItemUnion as ::windows_core::Interface>::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`"] @@ -6040,6 +6040,6 @@ impl _ISystemMonitorUnion_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &<_ISystemMonitorUnion as ::windows_core::ComInterface>::IID + iid == &<_ISystemMonitorUnion as ::windows_core::Interface>::IID } } 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 18d1ed5fde..1cb8a85c1c 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Performance/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Performance/mod.rs @@ -1006,126 +1006,100 @@ where ::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) } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct DICounterItem(::windows_core::IUnknown); -#[cfg(feature = "Win32_System_Com")] -impl DICounterItem {} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + DICounterItem, + DICounterItem_Vtbl, + 0xc08c4ff2_0e2e_11cf_942c_008029004347 +); #[cfg(feature = "Win32_System_Com")] ::windows_core::imp::interface_hierarchy!(DICounterItem, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for DICounterItem { - type Vtable = DICounterItem_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for DICounterItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc08c4ff2_0e2e_11cf_942c_008029004347); -} +impl DICounterItem {} #[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct DICounterItem_Vtbl { pub base__: super::Com::IDispatch_Vtbl, } -#[doc = "Required features: `\"Win32_System_Com\"`"] -#[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct DILogFileItem(::windows_core::IUnknown); #[cfg(feature = "Win32_System_Com")] -impl DILogFileItem {} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + DILogFileItem, + DILogFileItem_Vtbl, + 0x8d093ffc_f777_4917_82d1_833fbc54c58f +); #[cfg(feature = "Win32_System_Com")] ::windows_core::imp::interface_hierarchy!(DILogFileItem, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for DILogFileItem { - type Vtable = DILogFileItem_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for DILogFileItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8d093ffc_f777_4917_82d1_833fbc54c58f); -} +impl DILogFileItem {} #[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct DILogFileItem_Vtbl { pub base__: super::Com::IDispatch_Vtbl, } -#[doc = "Required features: `\"Win32_System_Com\"`"] -#[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct DISystemMonitor(::windows_core::IUnknown); #[cfg(feature = "Win32_System_Com")] -impl DISystemMonitor {} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + DISystemMonitor, + DISystemMonitor_Vtbl, + 0x13d73d81_c32e_11cf_9398_00aa00a3ddea +); #[cfg(feature = "Win32_System_Com")] ::windows_core::imp::interface_hierarchy!(DISystemMonitor, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for DISystemMonitor { - type Vtable = DISystemMonitor_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for DISystemMonitor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x13d73d81_c32e_11cf_9398_00aa00a3ddea); -} +impl DISystemMonitor {} #[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct DISystemMonitor_Vtbl { pub base__: super::Com::IDispatch_Vtbl, } -#[doc = "Required features: `\"Win32_System_Com\"`"] -#[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct DISystemMonitorEvents(::windows_core::IUnknown); #[cfg(feature = "Win32_System_Com")] -impl DISystemMonitorEvents {} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + DISystemMonitorEvents, + DISystemMonitorEvents_Vtbl, + 0x84979930_4ab3_11cf_943a_008029004347 +); #[cfg(feature = "Win32_System_Com")] ::windows_core::imp::interface_hierarchy!(DISystemMonitorEvents, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for DISystemMonitorEvents { - type Vtable = DISystemMonitorEvents_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for DISystemMonitorEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x84979930_4ab3_11cf_943a_008029004347); -} +impl DISystemMonitorEvents {} #[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct DISystemMonitorEvents_Vtbl { pub base__: super::Com::IDispatch_Vtbl, } -#[doc = "Required features: `\"Win32_System_Com\"`"] -#[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct DISystemMonitorInternal(::windows_core::IUnknown); #[cfg(feature = "Win32_System_Com")] -impl DISystemMonitorInternal {} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + DISystemMonitorInternal, + DISystemMonitorInternal_Vtbl, + 0x194eb242_c32c_11cf_9398_00aa00a3ddea +); #[cfg(feature = "Win32_System_Com")] ::windows_core::imp::interface_hierarchy!(DISystemMonitorInternal, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for DISystemMonitorInternal { - type Vtable = DISystemMonitorInternal_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for DISystemMonitorInternal { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x194eb242_c32c_11cf_9398_00aa00a3ddea); -} +impl DISystemMonitorInternal {} #[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct DISystemMonitorInternal_Vtbl { pub base__: super::Com::IDispatch_Vtbl, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAlertDataCollector(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IAlertDataCollector, + IAlertDataCollector_Vtbl, + 0x03837516_098b_11d8_9414_505054503030 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IAlertDataCollector, ::windows_core::IUnknown, super::Com::IDispatch, IDataCollector); #[cfg(feature = "Win32_System_Com")] impl IAlertDataCollector { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1334,16 +1308,6 @@ impl IAlertDataCollector { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IAlertDataCollector, ::windows_core::IUnknown, super::Com::IDispatch, IDataCollector); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IAlertDataCollector { - type Vtable = IAlertDataCollector_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IAlertDataCollector { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x03837516_098b_11d8_9414_505054503030); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IAlertDataCollector_Vtbl { @@ -1371,11 +1335,15 @@ pub struct IAlertDataCollector_Vtbl { pub TriggerDataCollectorSet: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SetTriggerDataCollectorSet: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IApiTracingDataCollector(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IApiTracingDataCollector, + IApiTracingDataCollector_Vtbl, + 0x0383751a_098b_11d8_9414_505054503030 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IApiTracingDataCollector, ::windows_core::IUnknown, super::Com::IDispatch, IDataCollector); #[cfg(feature = "Win32_System_Com")] impl IApiTracingDataCollector { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1579,16 +1547,6 @@ impl IApiTracingDataCollector { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IApiTracingDataCollector, ::windows_core::IUnknown, super::Com::IDispatch, IDataCollector); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IApiTracingDataCollector { - type Vtable = IApiTracingDataCollector_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IApiTracingDataCollector { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0383751a_098b_11d8_9414_505054503030); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IApiTracingDataCollector_Vtbl { @@ -1626,11 +1584,15 @@ pub struct IApiTracingDataCollector_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] SetExcludeApis: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IConfigurationDataCollector(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IConfigurationDataCollector, + IConfigurationDataCollector_Vtbl, + 0x03837514_098b_11d8_9414_505054503030 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IConfigurationDataCollector, ::windows_core::IUnknown, super::Com::IDispatch, IDataCollector); #[cfg(feature = "Win32_System_Com")] impl IConfigurationDataCollector { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1842,16 +1804,6 @@ impl IConfigurationDataCollector { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IConfigurationDataCollector, ::windows_core::IUnknown, super::Com::IDispatch, IDataCollector); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IConfigurationDataCollector { - type Vtable = IConfigurationDataCollector_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IConfigurationDataCollector { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x03837514_098b_11d8_9414_505054503030); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IConfigurationDataCollector_Vtbl { @@ -1893,9 +1845,8 @@ pub struct IConfigurationDataCollector_Vtbl { pub SystemStateFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filename: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SetSystemStateFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filename: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICounterItem(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICounterItem, ICounterItem_Vtbl, 0x771a9520_ee28_11ce_941e_008029004347); +::windows_core::imp::interface_hierarchy!(ICounterItem, ::windows_core::IUnknown); impl ICounterItem { pub unsafe fn Value(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1940,13 +1891,6 @@ impl ICounterItem { (::windows_core::Interface::vtable(self).GetStatistics)(::windows_core::Interface::as_raw(self), max, min, avg, status).ok() } } -::windows_core::imp::interface_hierarchy!(ICounterItem, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICounterItem { - type Vtable = ICounterItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICounterItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x771a9520_ee28_11ce_941e_008029004347); -} #[repr(C)] #[doc(hidden)] pub struct ICounterItem_Vtbl { @@ -1964,9 +1908,8 @@ pub struct ICounterItem_Vtbl { pub GetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut f64, status: *mut i32) -> ::windows_core::HRESULT, pub GetStatistics: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, max: *mut f64, min: *mut f64, avg: *mut f64, status: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICounterItem2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICounterItem2, ICounterItem2_Vtbl, 0xeefcd4e1_ea1c_4435_b7f4_e341ba03b4f9); +::windows_core::imp::interface_hierarchy!(ICounterItem2, ::windows_core::IUnknown, ICounterItem); impl ICounterItem2 { pub unsafe fn Value(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2037,13 +1980,6 @@ impl ICounterItem2 { (::windows_core::Interface::vtable(self).GetDataAt)(::windows_core::Interface::as_raw(self), iindex, iwhich, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ICounterItem2, ::windows_core::IUnknown, ICounterItem); -unsafe impl ::windows_core::Interface for ICounterItem2 { - type Vtable = ICounterItem2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICounterItem2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeefcd4e1_ea1c_4435_b7f4_e341ba03b4f9); -} #[repr(C)] #[doc(hidden)] pub struct ICounterItem2_Vtbl { @@ -2057,11 +1993,15 @@ pub struct ICounterItem2_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] GetDataAt: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICounters(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICounters, + ICounters_Vtbl, + 0x79167962_28fc_11cf_942f_008029004347 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICounters, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ICounters { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -2094,16 +2034,6 @@ impl ICounters { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICounters, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICounters { - type Vtable = ICounters_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICounters { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x79167962_28fc_11cf_942f_008029004347); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICounters_Vtbl { @@ -2123,11 +2053,15 @@ pub struct ICounters_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] Remove: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataCollector(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IDataCollector, + IDataCollector_Vtbl, + 0x038374ff_098b_11d8_9414_505054503030 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IDataCollector, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IDataCollector { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2258,16 +2192,6 @@ impl IDataCollector { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IDataCollector, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IDataCollector { - type Vtable = IDataCollector_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IDataCollector { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x038374ff_098b_11d8_9414_505054503030); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IDataCollector_Vtbl { @@ -2307,11 +2231,15 @@ pub struct IDataCollector_Vtbl { SetXml: usize, pub CreateOutputLocation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, latest: super::super::Foundation::VARIANT_BOOL, location: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataCollectorCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IDataCollectorCollection, + IDataCollectorCollection_Vtbl, + 0x03837502_098b_11d8_9414_505054503030 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IDataCollectorCollection, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IDataCollectorCollection { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -2368,16 +2296,6 @@ impl IDataCollectorCollection { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IDataCollectorCollection, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IDataCollectorCollection { - type Vtable = IDataCollectorCollection_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IDataCollectorCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x03837502_098b_11d8_9414_505054503030); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IDataCollectorCollection_Vtbl { @@ -2410,11 +2328,15 @@ pub struct IDataCollectorCollection_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] CreateDataCollector: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataCollectorSet(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IDataCollectorSet, + IDataCollectorSet_Vtbl, + 0x03837520_098b_11d8_9414_505054503030 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IDataCollectorSet, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IDataCollectorSet { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2717,16 +2639,6 @@ impl IDataCollectorSet { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IDataCollectorSet, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IDataCollectorSet { - type Vtable = IDataCollectorSet_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IDataCollectorSet { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x03837520_098b_11d8_9414_505054503030); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IDataCollectorSet_Vtbl { @@ -2813,11 +2725,15 @@ pub struct IDataCollectorSet_Vtbl { pub SetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, key: ::std::mem::MaybeUninit<::windows_core::BSTR>, value: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub GetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, key: ::std::mem::MaybeUninit<::windows_core::BSTR>, value: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataCollectorSetCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IDataCollectorSetCollection, + IDataCollectorSetCollection_Vtbl, + 0x03837524_098b_11d8_9414_505054503030 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IDataCollectorSetCollection, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IDataCollectorSetCollection { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -2867,16 +2783,6 @@ impl IDataCollectorSetCollection { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IDataCollectorSetCollection, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IDataCollectorSetCollection { - type Vtable = IDataCollectorSetCollection_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IDataCollectorSetCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x03837524_098b_11d8_9414_505054503030); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IDataCollectorSetCollection_Vtbl { @@ -2902,11 +2808,15 @@ pub struct IDataCollectorSetCollection_Vtbl { AddRange: usize, pub GetDataCollectorSets: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, server: ::std::mem::MaybeUninit<::windows_core::BSTR>, filter: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IDataManager, + IDataManager_Vtbl, + 0x03837541_098b_11d8_9414_505054503030 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IDataManager, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IDataManager { pub unsafe fn Enabled(&self) -> ::windows_core::Result { @@ -3031,16 +2941,6 @@ impl IDataManager { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IDataManager, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IDataManager { - type Vtable = IDataManager_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IDataManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x03837541_098b_11d8_9414_505054503030); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IDataManager_Vtbl { @@ -3077,11 +2977,15 @@ pub struct IDataManager_Vtbl { Run: usize, pub Extract: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cabfilename: ::std::mem::MaybeUninit<::windows_core::BSTR>, destinationpath: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFolderAction(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFolderAction, + IFolderAction_Vtbl, + 0x03837543_098b_11d8_9414_505054503030 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFolderAction, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFolderAction { pub unsafe fn Age(&self) -> ::windows_core::Result { @@ -3117,16 +3021,6 @@ impl IFolderAction { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFolderAction, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFolderAction { - type Vtable = IFolderAction_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFolderAction { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x03837543_098b_11d8_9414_505054503030); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFolderAction_Vtbl { @@ -3140,11 +3034,15 @@ pub struct IFolderAction_Vtbl { pub SendCabTo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdestination: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SetSendCabTo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdestination: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFolderActionCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFolderActionCollection, + IFolderActionCollection_Vtbl, + 0x03837544_098b_11d8_9414_505054503030 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFolderActionCollection, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFolderActionCollection { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -3193,16 +3091,6 @@ impl IFolderActionCollection { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFolderActionCollection, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFolderActionCollection { - type Vtable = IFolderActionCollection_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFolderActionCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x03837544_098b_11d8_9414_505054503030); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFolderActionCollection_Vtbl { @@ -3231,33 +3119,29 @@ pub struct IFolderActionCollection_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] CreateFolderAction: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILogFileItem(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ILogFileItem, ILogFileItem_Vtbl, 0xd6b518dd_05c7_418a_89e6_4f9ce8c6841e); +::windows_core::imp::interface_hierarchy!(ILogFileItem, ::windows_core::IUnknown); impl ILogFileItem { pub unsafe fn Path(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).Path)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ILogFileItem, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILogFileItem { - type Vtable = ILogFileItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILogFileItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd6b518dd_05c7_418a_89e6_4f9ce8c6841e); -} #[repr(C)] #[doc(hidden)] pub struct ILogFileItem_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Path: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrvalue: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILogFiles(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ILogFiles, + ILogFiles_Vtbl, + 0x6a2a97e6_6851_41ea_87ad_2a8225335865 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ILogFiles, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ILogFiles { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -3290,16 +3174,6 @@ impl ILogFiles { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ILogFiles, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ILogFiles { - type Vtable = ILogFiles_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ILogFiles { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6a2a97e6_6851_41ea_87ad_2a8225335865); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ILogFiles_Vtbl { @@ -3319,11 +3193,15 @@ pub struct ILogFiles_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] Remove: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPerformanceCounterDataCollector(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IPerformanceCounterDataCollector, + IPerformanceCounterDataCollector_Vtbl, + 0x03837506_098b_11d8_9414_505054503030 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IPerformanceCounterDataCollector, ::windows_core::IUnknown, super::Com::IDispatch, IDataCollector); #[cfg(feature = "Win32_System_Com")] impl IPerformanceCounterDataCollector { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3496,16 +3374,6 @@ impl IPerformanceCounterDataCollector { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IPerformanceCounterDataCollector, ::windows_core::IUnknown, super::Com::IDispatch, IDataCollector); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IPerformanceCounterDataCollector { - type Vtable = IPerformanceCounterDataCollector_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IPerformanceCounterDataCollector { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x03837506_098b_11d8_9414_505054503030); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IPerformanceCounterDataCollector_Vtbl { @@ -3527,11 +3395,15 @@ pub struct IPerformanceCounterDataCollector_Vtbl { pub SegmentMaxRecords: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, records: *mut u32) -> ::windows_core::HRESULT, pub SetSegmentMaxRecords: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, records: u32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISchedule(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISchedule, + ISchedule_Vtbl, + 0x0383753a_098b_11d8_9414_505054503030 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISchedule, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISchedule { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3576,16 +3448,6 @@ impl ISchedule { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISchedule, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISchedule { - type Vtable = ISchedule_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISchedule { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0383753a_098b_11d8_9414_505054503030); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISchedule_Vtbl { @@ -3617,11 +3479,15 @@ pub struct ISchedule_Vtbl { pub Days: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, days: *mut WeekDays) -> ::windows_core::HRESULT, pub SetDays: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, days: WeekDays) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IScheduleCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IScheduleCollection, + IScheduleCollection_Vtbl, + 0x0383753d_098b_11d8_9414_505054503030 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IScheduleCollection, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IScheduleCollection { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -3670,16 +3536,6 @@ impl IScheduleCollection { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IScheduleCollection, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IScheduleCollection { - type Vtable = IScheduleCollection_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IScheduleCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0383753d_098b_11d8_9414_505054503030); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IScheduleCollection_Vtbl { @@ -3708,9 +3564,8 @@ pub struct IScheduleCollection_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] CreateSchedule: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISystemMonitor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISystemMonitor, ISystemMonitor_Vtbl, 0x194eb241_c32c_11cf_9398_00aa00a3ddea); +::windows_core::imp::interface_hierarchy!(ISystemMonitor, ::windows_core::IUnknown); impl ISystemMonitor { pub unsafe fn Appearance(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -4039,13 +3894,6 @@ impl ISystemMonitor { (::windows_core::Interface::vtable(self).SqlLogSetName)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISystemMonitor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISystemMonitor { - type Vtable = ISystemMonitor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISystemMonitor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x194eb241_c32c_11cf_9398_00aa00a3ddea); -} #[repr(C)] #[doc(hidden)] pub struct ISystemMonitor_Vtbl { @@ -4139,9 +3987,8 @@ pub struct ISystemMonitor_Vtbl { pub SetSqlLogSetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bssqllogsetname: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SqlLogSetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bssqllogsetname: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISystemMonitor2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISystemMonitor2, ISystemMonitor2_Vtbl, 0x08e3206a_5fd2_4fde_a8a5_8cb3b63d2677); +::windows_core::imp::interface_hierarchy!(ISystemMonitor2, ::windows_core::IUnknown, ISystemMonitor); impl ISystemMonitor2 { pub unsafe fn Appearance(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -4564,13 +4411,6 @@ impl ISystemMonitor2 { (::windows_core::Interface::vtable(self).LoadSettings)(::windows_core::Interface::as_raw(self), bstrsettingfilename.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ISystemMonitor2, ::windows_core::IUnknown, ISystemMonitor); -unsafe impl ::windows_core::Interface for ISystemMonitor2 { - type Vtable = ISystemMonitor2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISystemMonitor2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x08e3206a_5fd2_4fde_a8a5_8cb3b63d2677); -} #[repr(C)] #[doc(hidden)] pub struct ISystemMonitor2_Vtbl { @@ -4596,9 +4436,8 @@ pub struct ISystemMonitor2_Vtbl { pub BatchingLock: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flock: super::super::Foundation::VARIANT_BOOL, ebatchreason: SysmonBatchReason) -> ::windows_core::HRESULT, pub LoadSettings: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsettingfilename: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISystemMonitorEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISystemMonitorEvents, ISystemMonitorEvents_Vtbl, 0xee660ea0_4abd_11cf_943a_008029004347); +::windows_core::imp::interface_hierarchy!(ISystemMonitorEvents, ::windows_core::IUnknown); impl ISystemMonitorEvents { pub unsafe fn OnCounterSelected(&self, index: i32) { (::windows_core::Interface::vtable(self).OnCounterSelected)(::windows_core::Interface::as_raw(self), index) @@ -4616,13 +4455,6 @@ impl ISystemMonitorEvents { (::windows_core::Interface::vtable(self).OnDblClick)(::windows_core::Interface::as_raw(self), index) } } -::windows_core::imp::interface_hierarchy!(ISystemMonitorEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISystemMonitorEvents { - type Vtable = ISystemMonitorEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISystemMonitorEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xee660ea0_4abd_11cf_943a_008029004347); -} #[repr(C)] #[doc(hidden)] pub struct ISystemMonitorEvents_Vtbl { @@ -4633,11 +4465,15 @@ pub struct ISystemMonitorEvents_Vtbl { pub OnSampleCollected: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), pub OnDblClick: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32), } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITraceDataCollector(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITraceDataCollector, + ITraceDataCollector_Vtbl, + 0x0383750b_098b_11d8_9414_505054503030 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITraceDataCollector, ::windows_core::IUnknown, super::Com::IDispatch, IDataCollector); #[cfg(feature = "Win32_System_Com")] impl ITraceDataCollector { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -4920,16 +4756,6 @@ impl ITraceDataCollector { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITraceDataCollector, ::windows_core::IUnknown, super::Com::IDispatch, IDataCollector); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITraceDataCollector { - type Vtable = ITraceDataCollector_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITraceDataCollector { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0383750b_098b_11d8_9414_505054503030); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITraceDataCollector_Vtbl { @@ -4978,11 +4804,15 @@ pub struct ITraceDataCollector_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] TraceDataProviders: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITraceDataProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITraceDataProvider, + ITraceDataProvider_Vtbl, + 0x03837512_098b_11d8_9414_505054503030 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITraceDataProvider, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITraceDataProvider { pub unsafe fn DisplayName(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -5087,16 +4917,6 @@ impl ITraceDataProvider { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITraceDataProvider, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITraceDataProvider { - type Vtable = ITraceDataProvider_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITraceDataProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x03837512_098b_11d8_9414_505054503030); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITraceDataProvider_Vtbl { @@ -5145,11 +4965,15 @@ pub struct ITraceDataProvider_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetRegisteredProcesses: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITraceDataProviderCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITraceDataProviderCollection, + ITraceDataProviderCollection_Vtbl, + 0x03837510_098b_11d8_9414_505054503030 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITraceDataProviderCollection, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITraceDataProviderCollection { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -5210,16 +5034,6 @@ impl ITraceDataProviderCollection { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITraceDataProviderCollection, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITraceDataProviderCollection { - type Vtable = ITraceDataProviderCollection_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITraceDataProviderCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x03837510_098b_11d8_9414_505054503030); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITraceDataProviderCollection_Vtbl { @@ -5250,11 +5064,15 @@ pub struct ITraceDataProviderCollection_Vtbl { pub GetTraceDataProviders: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, server: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub GetTraceDataProvidersByProcess: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, server: ::std::mem::MaybeUninit<::windows_core::BSTR>, pid: u32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IValueMap(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IValueMap, + IValueMap_Vtbl, + 0x03837534_098b_11d8_9414_505054503030 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IValueMap, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IValueMap { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -5328,16 +5146,6 @@ impl IValueMap { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IValueMap, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IValueMap { - type Vtable = IValueMap_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IValueMap { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x03837534_098b_11d8_9414_505054503030); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IValueMap_Vtbl { @@ -5378,11 +5186,15 @@ pub struct IValueMap_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] CreateValueMapItem: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IValueMapItem(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IValueMapItem, + IValueMapItem_Vtbl, + 0x03837533_098b_11d8_9414_505054503030 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IValueMapItem, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IValueMapItem { pub unsafe fn Description(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -5435,16 +5247,6 @@ impl IValueMapItem { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IValueMapItem, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IValueMapItem { - type Vtable = IValueMapItem_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IValueMapItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x03837533_098b_11d8_9414_505054503030); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IValueMapItem_Vtbl { @@ -5466,9 +5268,8 @@ pub struct IValueMapItem_Vtbl { pub ValueMapType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: *mut ValueMapType) -> ::windows_core::HRESULT, pub SetValueMapType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: ValueMapType) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct _ICounterItemUnion(::windows_core::IUnknown); +::windows_core::imp::com_interface!(_ICounterItemUnion, _ICounterItemUnion_Vtbl, 0xde1a6b74_9182_4c41_8e2c_24c2cd30ee83); +::windows_core::imp::interface_hierarchy!(_ICounterItemUnion, ::windows_core::IUnknown); impl _ICounterItemUnion { pub unsafe fn Value(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -5539,13 +5340,6 @@ impl _ICounterItemUnion { (::windows_core::Interface::vtable(self).GetDataAt)(::windows_core::Interface::as_raw(self), iindex, iwhich, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(_ICounterItemUnion, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for _ICounterItemUnion { - type Vtable = _ICounterItemUnion_Vtbl; -} -unsafe impl ::windows_core::ComInterface for _ICounterItemUnion { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xde1a6b74_9182_4c41_8e2c_24c2cd30ee83); -} #[repr(C)] #[doc(hidden)] pub struct _ICounterItemUnion_Vtbl { @@ -5571,9 +5365,8 @@ pub struct _ICounterItemUnion_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] GetDataAt: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct _ISystemMonitorUnion(::windows_core::IUnknown); +::windows_core::imp::com_interface!(_ISystemMonitorUnion, _ISystemMonitorUnion_Vtbl, 0xc8a77338_265f_4de5_aa25_c7da1ce5a8f4); +::windows_core::imp::interface_hierarchy!(_ISystemMonitorUnion, ::windows_core::IUnknown); impl _ISystemMonitorUnion { pub unsafe fn Appearance(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -5996,13 +5789,6 @@ impl _ISystemMonitorUnion { (::windows_core::Interface::vtable(self).LoadSettings)(::windows_core::Interface::as_raw(self), bstrsettingfilename.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(_ISystemMonitorUnion, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for _ISystemMonitorUnion { - type Vtable = _ISystemMonitorUnion_Vtbl; -} -unsafe impl ::windows_core::ComInterface for _ISystemMonitorUnion { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc8a77338_265f_4de5_aa25_c7da1ce5a8f4); -} #[repr(C)] #[doc(hidden)] pub struct _ISystemMonitorUnion_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/System/RealTimeCommunications/impl.rs b/crates/libs/windows/src/Windows/Win32/System/RealTimeCommunications/impl.rs index 7b88c3b9ea..833d844b92 100644 --- a/crates/libs/windows/src/Windows/Win32/System/RealTimeCommunications/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/RealTimeCommunications/impl.rs @@ -26,7 +26,7 @@ impl INetworkTransportSettings_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait INotificationTransportSync_Impl: Sized { @@ -53,7 +53,7 @@ impl INotificationTransportSync_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRTCBuddy_Impl: Sized + IRTCPresenceContact_Impl { @@ -92,7 +92,7 @@ impl IRTCBuddy_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -207,7 +207,7 @@ impl IRTCBuddy2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -234,7 +234,7 @@ impl IRTCBuddyEvent_Vtbl { Self { base__: super::Com::IDispatch_Vtbl::new::(), Buddy: Buddy:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -290,7 +290,7 @@ impl IRTCBuddyEvent2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -400,7 +400,7 @@ impl IRTCBuddyGroup_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -469,7 +469,7 @@ impl IRTCBuddyGroupEvent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Media_DirectShow\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -906,7 +906,7 @@ impl IRTCClient_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Media_DirectShow\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1044,7 +1044,7 @@ impl IRTCClient2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1087,7 +1087,7 @@ impl IRTCClientEvent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IRTCClientPortManagement_Impl: Sized { @@ -1121,7 +1121,7 @@ impl IRTCClientPortManagement_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1324,7 +1324,7 @@ impl IRTCClientPresence_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1494,7 +1494,7 @@ impl IRTCClientPresence2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1584,7 +1584,7 @@ impl IRTCClientProvisioning_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1605,7 +1605,7 @@ impl IRTCClientProvisioning2_Vtbl { Self { base__: IRTCClientProvisioning_Vtbl::new::(), EnableProfileEx: EnableProfileEx:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1661,7 +1661,7 @@ impl IRTCCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1675,7 +1675,7 @@ impl IRTCDispatchEventNotification_Vtbl { Self { base__: super::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IRTCEnumBuddies_Impl: Sized { @@ -1722,7 +1722,7 @@ impl IRTCEnumBuddies_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRTCEnumGroups_Impl: Sized { @@ -1769,7 +1769,7 @@ impl IRTCEnumGroups_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRTCEnumParticipants_Impl: Sized { @@ -1816,7 +1816,7 @@ impl IRTCEnumParticipants_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRTCEnumPresenceDevices_Impl: Sized { @@ -1863,7 +1863,7 @@ impl IRTCEnumPresenceDevices_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRTCEnumProfiles_Impl: Sized { @@ -1910,7 +1910,7 @@ impl IRTCEnumProfiles_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRTCEnumUserSearchResults_Impl: Sized { @@ -1957,7 +1957,7 @@ impl IRTCEnumUserSearchResults_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRTCEnumWatchers_Impl: Sized { @@ -2004,7 +2004,7 @@ impl IRTCEnumWatchers_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2025,7 +2025,7 @@ impl IRTCEventNotification_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Event: Event:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2094,7 +2094,7 @@ impl IRTCInfoEvent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2163,7 +2163,7 @@ impl IRTCIntensityEvent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2219,7 +2219,7 @@ impl IRTCMediaEvent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2315,7 +2315,7 @@ impl IRTCMediaRequestEvent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2410,7 +2410,7 @@ impl IRTCMessagingEvent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IRTCParticipant_Impl: Sized { @@ -2488,7 +2488,7 @@ impl IRTCParticipant_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2544,7 +2544,7 @@ impl IRTCParticipantStateChangeEvent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IRTCPortManager_Impl: Sized { @@ -2578,7 +2578,7 @@ impl IRTCPortManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRTCPresenceContact_Impl: Sized { @@ -2671,7 +2671,7 @@ impl IRTCPresenceContact_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2721,7 +2721,7 @@ impl IRTCPresenceDataEvent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IRTCPresenceDevice_Impl: Sized { @@ -2780,7 +2780,7 @@ impl IRTCPresenceDevice_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2849,7 +2849,7 @@ impl IRTCPresencePropertyEvent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2899,7 +2899,7 @@ impl IRTCPresenceStatusEvent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IRTCProfile_Impl: Sized { @@ -3140,7 +3140,7 @@ impl IRTCProfile_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRTCProfile2_Impl: Sized + IRTCProfile_Impl { @@ -3193,7 +3193,7 @@ impl IRTCProfile2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3249,7 +3249,7 @@ impl IRTCProfileEvent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3276,7 +3276,7 @@ impl IRTCProfileEvent2_Vtbl { Self { base__: IRTCProfileEvent_Vtbl::new::(), EventType: EventType:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3340,7 +3340,7 @@ impl IRTCReInviteEvent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3409,7 +3409,7 @@ impl IRTCRegistrationStateChangeEvent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3478,7 +3478,7 @@ impl IRTCRoamingEvent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3695,7 +3695,7 @@ impl IRTCSession_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3766,7 +3766,7 @@ impl IRTCSession2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IRTCSessionCallControl_Impl: Sized { @@ -3860,7 +3860,7 @@ impl IRTCSessionCallControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRTCSessionDescriptionManager_Impl: Sized { @@ -3880,7 +3880,7 @@ impl IRTCSessionDescriptionManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3949,7 +3949,7 @@ impl IRTCSessionOperationCompleteEvent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3986,7 +3986,7 @@ impl IRTCSessionOperationCompleteEvent2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IRTCSessionPortManagement_Impl: Sized { @@ -4003,7 +4003,7 @@ impl IRTCSessionPortManagement_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), SetPortManager: SetPortManager:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4072,7 +4072,7 @@ impl IRTCSessionReferStatusEvent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4162,7 +4162,7 @@ impl IRTCSessionReferredEvent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4231,7 +4231,7 @@ impl IRTCSessionStateChangeEvent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4294,7 +4294,7 @@ impl IRTCSessionStateChangeEvent2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IRTCUserSearch_Impl: Sized { @@ -4327,7 +4327,7 @@ impl IRTCUserSearch_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRTCUserSearchQuery_Impl: Sized { @@ -4413,7 +4413,7 @@ impl IRTCUserSearchQuery_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRTCUserSearchResult_Impl: Sized { @@ -4436,7 +4436,7 @@ impl IRTCUserSearchResult_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), get_Value: get_Value:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4544,7 +4544,7 @@ impl IRTCUserSearchResultsEvent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IRTCWatcher_Impl: Sized + IRTCPresenceContact_Impl { @@ -4577,7 +4577,7 @@ impl IRTCWatcher_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IRTCWatcher2_Impl: Sized + IRTCWatcher_Impl { @@ -4612,7 +4612,7 @@ impl IRTCWatcher2_Vtbl { Self { base__: IRTCWatcher_Vtbl::new::(), Profile: Profile::, Scope: Scope:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4639,7 +4639,7 @@ impl IRTCWatcherEvent_Vtbl { Self { base__: super::Com::IDispatch_Vtbl::new::(), Watcher: Watcher:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4682,7 +4682,7 @@ impl IRTCWatcherEvent2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Networking_WinSock\"`"] @@ -4713,6 +4713,6 @@ impl ITransportSettingsInternal_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 a733a65d19..716624bb71 100644 --- a/crates/libs/windows/src/Windows/Win32/System/RealTimeCommunications/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/RealTimeCommunications/mod.rs @@ -1,6 +1,5 @@ -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetworkTransportSettings(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INetworkTransportSettings, INetworkTransportSettings_Vtbl, 0x5e7abb2c_f2c1_4a61_bd35_deb7a08ab0f1); +::windows_core::imp::interface_hierarchy!(INetworkTransportSettings, ::windows_core::IUnknown); impl INetworkTransportSettings { #[doc = "Required features: `\"Win32_Networking_WinSock\"`"] #[cfg(feature = "Win32_Networking_WinSock")] @@ -13,13 +12,6 @@ impl INetworkTransportSettings { (::windows_core::Interface::vtable(self).QuerySetting)(::windows_core::Interface::as_raw(self), settingid, valuein.len().try_into().unwrap(), ::core::mem::transmute(valuein.as_ptr()), lengthout, valueout).ok() } } -::windows_core::imp::interface_hierarchy!(INetworkTransportSettings, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INetworkTransportSettings { - type Vtable = INetworkTransportSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INetworkTransportSettings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5e7abb2c_f2c1_4a61_bd35_deb7a08ab0f1); -} #[repr(C)] #[doc(hidden)] pub struct INetworkTransportSettings_Vtbl { @@ -33,9 +25,8 @@ pub struct INetworkTransportSettings_Vtbl { #[cfg(not(feature = "Win32_Networking_WinSock"))] QuerySetting: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INotificationTransportSync(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INotificationTransportSync, INotificationTransportSync_Vtbl, 0x79eb1402_0ab8_49c0_9e14_a1ae4ba93058); +::windows_core::imp::interface_hierarchy!(INotificationTransportSync, ::windows_core::IUnknown); impl INotificationTransportSync { pub unsafe fn CompleteDelivery(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).CompleteDelivery)(::windows_core::Interface::as_raw(self)).ok() @@ -44,13 +35,6 @@ impl INotificationTransportSync { (::windows_core::Interface::vtable(self).Flush)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(INotificationTransportSync, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INotificationTransportSync { - type Vtable = INotificationTransportSync_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INotificationTransportSync { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x79eb1402_0ab8_49c0_9e14_a1ae4ba93058); -} #[repr(C)] #[doc(hidden)] pub struct INotificationTransportSync_Vtbl { @@ -58,9 +42,8 @@ pub struct INotificationTransportSync_Vtbl { pub CompleteDelivery: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Flush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRTCBuddy(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRTCBuddy, IRTCBuddy_Vtbl, 0xfcb136c8_7b90_4e0c_befe_56edf0ba6f1c); +::windows_core::imp::interface_hierarchy!(IRTCBuddy, ::windows_core::IUnknown, IRTCPresenceContact); impl IRTCBuddy { pub unsafe fn PresentityURI(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -111,13 +94,6 @@ impl IRTCBuddy { (::windows_core::Interface::vtable(self).Notes)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IRTCBuddy, ::windows_core::IUnknown, IRTCPresenceContact); -unsafe impl ::windows_core::Interface for IRTCBuddy { - type Vtable = IRTCBuddy_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRTCBuddy { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfcb136c8_7b90_4e0c_befe_56edf0ba6f1c); -} #[repr(C)] #[doc(hidden)] pub struct IRTCBuddy_Vtbl { @@ -125,9 +101,8 @@ pub struct IRTCBuddy_Vtbl { pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, penstatus: *mut RTC_PRESENCE_STATUS) -> ::windows_core::HRESULT, pub Notes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrnotes: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRTCBuddy2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRTCBuddy2, IRTCBuddy2_Vtbl, 0x102f9588_23e7_40e3_954d_cd7a1d5c0361); +::windows_core::imp::interface_hierarchy!(IRTCBuddy2, ::windows_core::IUnknown, IRTCPresenceContact, IRTCBuddy); impl IRTCBuddy2 { pub unsafe fn PresentityURI(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -213,13 +188,6 @@ impl IRTCBuddy2 { (::windows_core::Interface::vtable(self).SubscriptionType)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IRTCBuddy2, ::windows_core::IUnknown, IRTCPresenceContact, IRTCBuddy); -unsafe impl ::windows_core::Interface for IRTCBuddy2 { - type Vtable = IRTCBuddy2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRTCBuddy2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x102f9588_23e7_40e3_954d_cd7a1d5c0361); -} #[repr(C)] #[doc(hidden)] pub struct IRTCBuddy2_Vtbl { @@ -239,11 +207,15 @@ pub struct IRTCBuddy2_Vtbl { PresenceDevices: usize, pub SubscriptionType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pensubscriptiontype: *mut RTC_BUDDY_SUBSCRIPTION_TYPE) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRTCBuddyEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IRTCBuddyEvent, + IRTCBuddyEvent_Vtbl, + 0xf36d755d_17e6_404e_954f_0fc07574c78d +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IRTCBuddyEvent, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IRTCBuddyEvent { pub unsafe fn Buddy(&self) -> ::windows_core::Result { @@ -252,27 +224,21 @@ impl IRTCBuddyEvent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IRTCBuddyEvent, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IRTCBuddyEvent { - type Vtable = IRTCBuddyEvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IRTCBuddyEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf36d755d_17e6_404e_954f_0fc07574c78d); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IRTCBuddyEvent_Vtbl { pub base__: super::Com::IDispatch_Vtbl, pub Buddy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppbuddy: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRTCBuddyEvent2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IRTCBuddyEvent2, + IRTCBuddyEvent2_Vtbl, + 0x484a7f1e_73f0_4990_bfc2_60bc3978a720 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IRTCBuddyEvent2, ::windows_core::IUnknown, super::Com::IDispatch, IRTCBuddyEvent); #[cfg(feature = "Win32_System_Com")] impl IRTCBuddyEvent2 { pub unsafe fn Buddy(&self) -> ::windows_core::Result { @@ -293,16 +259,6 @@ impl IRTCBuddyEvent2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IRTCBuddyEvent2, ::windows_core::IUnknown, super::Com::IDispatch, IRTCBuddyEvent); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IRTCBuddyEvent2 { - type Vtable = IRTCBuddyEvent2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IRTCBuddyEvent2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x484a7f1e_73f0_4990_bfc2_60bc3978a720); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IRTCBuddyEvent2_Vtbl { @@ -311,9 +267,8 @@ pub struct IRTCBuddyEvent2_Vtbl { pub StatusCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plstatuscode: *mut i32) -> ::windows_core::HRESULT, pub StatusText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrstatustext: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRTCBuddyGroup(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRTCBuddyGroup, IRTCBuddyGroup_Vtbl, 0x60361e68_9164_4389_a4c6_d0b3925bda5e); +::windows_core::imp::interface_hierarchy!(IRTCBuddyGroup, ::windows_core::IUnknown); impl IRTCBuddyGroup { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -362,13 +317,6 @@ impl IRTCBuddyGroup { (::windows_core::Interface::vtable(self).Profile)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IRTCBuddyGroup, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRTCBuddyGroup { - type Vtable = IRTCBuddyGroup_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRTCBuddyGroup { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x60361e68_9164_4389_a4c6_d0b3925bda5e); -} #[repr(C)] #[doc(hidden)] pub struct IRTCBuddyGroup_Vtbl { @@ -386,11 +334,15 @@ pub struct IRTCBuddyGroup_Vtbl { pub SetData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdata: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub Profile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppprofile: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRTCBuddyGroupEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IRTCBuddyGroupEvent, + IRTCBuddyGroupEvent_Vtbl, + 0x3a79e1d1_b736_4414_96f8_bbc7f08863e4 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IRTCBuddyGroupEvent, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IRTCBuddyGroupEvent { pub unsafe fn EventType(&self) -> ::windows_core::Result { @@ -411,16 +363,6 @@ impl IRTCBuddyGroupEvent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IRTCBuddyGroupEvent, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IRTCBuddyGroupEvent { - type Vtable = IRTCBuddyGroupEvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IRTCBuddyGroupEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3a79e1d1_b736_4414_96f8_bbc7f08863e4); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IRTCBuddyGroupEvent_Vtbl { @@ -430,9 +372,8 @@ pub struct IRTCBuddyGroupEvent_Vtbl { pub Buddy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppbuddy: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub StatusCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plstatuscode: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRTCClient(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRTCClient, IRTCClient_Vtbl, 0x07829e45_9a34_408e_a011_bddf13487cd1); +::windows_core::imp::interface_hierarchy!(IRTCClient, ::windows_core::IUnknown); impl IRTCClient { pub unsafe fn Initialize(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Initialize)(::windows_core::Interface::as_raw(self)).ok() @@ -618,13 +559,6 @@ impl IRTCClient { (::windows_core::Interface::vtable(self).IsTuned)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IRTCClient, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRTCClient { - type Vtable = IRTCClient_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRTCClient { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x07829e45_9a34_408e_a011_bddf13487cd1); -} #[repr(C)] #[doc(hidden)] pub struct IRTCClient_Vtbl { @@ -678,9 +612,8 @@ pub struct IRTCClient_Vtbl { pub InvokeTuningWizard: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwndparent: isize) -> ::windows_core::HRESULT, pub IsTuned: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pftuned: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRTCClient2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRTCClient2, IRTCClient2_Vtbl, 0x0c91d71d_1064_42da_bfa5_572beb8eea84); +::windows_core::imp::interface_hierarchy!(IRTCClient2, ::windows_core::IUnknown, IRTCClient); impl IRTCClient2 { pub unsafe fn Initialize(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.Initialize)(::windows_core::Interface::as_raw(self)).ok() @@ -928,13 +861,6 @@ impl IRTCClient2 { (::windows_core::Interface::vtable(self).get_AllowedPorts)(::windows_core::Interface::as_raw(self), ltransport, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IRTCClient2, ::windows_core::IUnknown, IRTCClient); -unsafe impl ::windows_core::Interface for IRTCClient2 { - type Vtable = IRTCClient2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRTCClient2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c91d71d_1064_42da_bfa5_572beb8eea84); -} #[repr(C)] #[doc(hidden)] pub struct IRTCClient2_Vtbl { @@ -953,11 +879,15 @@ pub struct IRTCClient2_Vtbl { pub put_AllowedPorts: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ltransport: i32, enlistenmode: RTC_LISTEN_MODE) -> ::windows_core::HRESULT, pub get_AllowedPorts: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ltransport: i32, penlistenmode: *mut RTC_LISTEN_MODE) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRTCClientEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IRTCClientEvent, + IRTCClientEvent_Vtbl, + 0x2b493b7a_3cba_4170_9c8b_76a9dacdd644 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IRTCClientEvent, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IRTCClientEvent { pub unsafe fn EventType(&self) -> ::windows_core::Result { @@ -970,16 +900,6 @@ impl IRTCClientEvent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IRTCClientEvent, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IRTCClientEvent { - type Vtable = IRTCClientEvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IRTCClientEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2b493b7a_3cba_4170_9c8b_76a9dacdd644); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IRTCClientEvent_Vtbl { @@ -987,9 +907,8 @@ pub struct IRTCClientEvent_Vtbl { pub EventType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, peneventtype: *mut RTC_CLIENT_EVENT_TYPE) -> ::windows_core::HRESULT, pub Client: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppclient: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRTCClientPortManagement(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRTCClientPortManagement, IRTCClientPortManagement_Vtbl, 0xd5df3f03_4bde_4417_aefe_71177bdaea66); +::windows_core::imp::interface_hierarchy!(IRTCClientPortManagement, ::windows_core::IUnknown); impl IRTCClientPortManagement { pub unsafe fn StartListenAddressAndPort(&self, bstrinternallocaladdress: P0, linternallocalport: i32) -> ::windows_core::Result<()> where @@ -1007,13 +926,6 @@ impl IRTCClientPortManagement { (::windows_core::Interface::vtable(self).GetPortRange)(::windows_core::Interface::as_raw(self), enporttype, plminvalue, plmaxvalue).ok() } } -::windows_core::imp::interface_hierarchy!(IRTCClientPortManagement, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRTCClientPortManagement { - type Vtable = IRTCClientPortManagement_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRTCClientPortManagement { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd5df3f03_4bde_4417_aefe_71177bdaea66); -} #[repr(C)] #[doc(hidden)] pub struct IRTCClientPortManagement_Vtbl { @@ -1022,9 +934,8 @@ pub struct IRTCClientPortManagement_Vtbl { pub StopListenAddressAndPort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrinternallocaladdress: ::std::mem::MaybeUninit<::windows_core::BSTR>, linternallocalport: i32) -> ::windows_core::HRESULT, pub GetPortRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enporttype: RTC_PORT_TYPE, plminvalue: *mut i32, plmaxvalue: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRTCClientPresence(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRTCClientPresence, IRTCClientPresence_Vtbl, 0x11c3cbcc_0744_42d1_968a_51aa1bb274c6); +::windows_core::imp::interface_hierarchy!(IRTCClientPresence, ::windows_core::IUnknown); impl IRTCClientPresence { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -1136,13 +1047,6 @@ impl IRTCClientPresence { (::windows_core::Interface::vtable(self).SetPrivacyMode)(::windows_core::Interface::as_raw(self), enmode).ok() } } -::windows_core::imp::interface_hierarchy!(IRTCClientPresence, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRTCClientPresence { - type Vtable = IRTCClientPresence_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRTCClientPresence { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x11c3cbcc_0744_42d1_968a_51aa1bb274c6); -} #[repr(C)] #[doc(hidden)] pub struct IRTCClientPresence_Vtbl { @@ -1181,9 +1085,8 @@ pub struct IRTCClientPresence_Vtbl { pub PrivacyMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, penmode: *mut RTC_PRIVACY_MODE) -> ::windows_core::HRESULT, pub SetPrivacyMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enmode: RTC_PRIVACY_MODE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRTCClientPresence2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRTCClientPresence2, IRTCClientPresence2_Vtbl, 0xad1809e8_62f7_4783_909a_29c9d2cb1d34); +::windows_core::imp::interface_hierarchy!(IRTCClientPresence2, ::windows_core::IUnknown, IRTCClientPresence); impl IRTCClientPresence2 { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -1390,13 +1293,6 @@ impl IRTCClientPresence2 { (::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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IRTCClientPresence2, ::windows_core::IUnknown, IRTCClientPresence); -unsafe impl ::windows_core::Interface for IRTCClientPresence2 { - type Vtable = IRTCClientPresence2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRTCClientPresence2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xad1809e8_62f7_4783_909a_29c9d2cb1d34); -} #[repr(C)] #[doc(hidden)] pub struct IRTCClientPresence2_Vtbl { @@ -1423,9 +1319,8 @@ pub struct IRTCClientPresence2_Vtbl { pub GetLocalPresenceInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, penstatus: *mut RTC_PRESENCE_STATUS, pbstrnotes: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub AddBuddyEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpresentityuri: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstrusername: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstrdata: ::std::mem::MaybeUninit<::windows_core::BSTR>, fpersistent: super::super::Foundation::VARIANT_BOOL, ensubscriptiontype: RTC_BUDDY_SUBSCRIPTION_TYPE, pprofile: *mut ::core::ffi::c_void, lflags: i32, ppbuddy: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRTCClientProvisioning(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRTCClientProvisioning, IRTCClientProvisioning_Vtbl, 0xb9f5cf06_65b9_4a80_a0e6_73cae3ef3822); +::windows_core::imp::interface_hierarchy!(IRTCClientProvisioning, ::windows_core::IUnknown); impl IRTCClientProvisioning { pub unsafe fn CreateProfile(&self, bstrprofilexml: P0) -> ::windows_core::Result where @@ -1470,13 +1365,6 @@ impl IRTCClientProvisioning { (::windows_core::Interface::vtable(self).SessionCapabilities)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IRTCClientProvisioning, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRTCClientProvisioning { - type Vtable = IRTCClientProvisioning_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRTCClientProvisioning { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb9f5cf06_65b9_4a80_a0e6_73cae3ef3822); -} #[repr(C)] #[doc(hidden)] pub struct IRTCClientProvisioning_Vtbl { @@ -1492,9 +1380,8 @@ pub struct IRTCClientProvisioning_Vtbl { pub GetProfile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstruseraccount: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstruserpassword: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstruseruri: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstrserver: ::std::mem::MaybeUninit<::windows_core::BSTR>, ltransport: i32, lcookie: isize) -> ::windows_core::HRESULT, pub SessionCapabilities: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plsupportedsessions: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRTCClientProvisioning2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRTCClientProvisioning2, IRTCClientProvisioning2_Vtbl, 0xa70909b5_f40e_4587_bb75_e6bc0845023e); +::windows_core::imp::interface_hierarchy!(IRTCClientProvisioning2, ::windows_core::IUnknown, IRTCClientProvisioning); impl IRTCClientProvisioning2 { pub unsafe fn CreateProfile(&self, bstrprofilexml: P0) -> ::windows_core::Result where @@ -1545,24 +1432,21 @@ impl IRTCClientProvisioning2 { (::windows_core::Interface::vtable(self).EnableProfileEx)(::windows_core::Interface::as_raw(self), pprofile.into_param().abi(), lregisterflags, lroamingflags).ok() } } -::windows_core::imp::interface_hierarchy!(IRTCClientProvisioning2, ::windows_core::IUnknown, IRTCClientProvisioning); -unsafe impl ::windows_core::Interface for IRTCClientProvisioning2 { - type Vtable = IRTCClientProvisioning2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRTCClientProvisioning2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa70909b5_f40e_4587_bb75_e6bc0845023e); -} #[repr(C)] #[doc(hidden)] pub struct IRTCClientProvisioning2_Vtbl { pub base__: IRTCClientProvisioning_Vtbl, pub EnableProfileEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pprofile: *mut ::core::ffi::c_void, lregisterflags: i32, lroamingflags: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRTCCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IRTCCollection, + IRTCCollection_Vtbl, + 0xec7c8096_b918_4044_94f1_e4fba0361d5c +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IRTCCollection, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IRTCCollection { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -1581,16 +1465,6 @@ impl IRTCCollection { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IRTCCollection, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IRTCCollection { - type Vtable = IRTCCollection_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IRTCCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xec7c8096_b918_4044_94f1_e4fba0361d5c); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IRTCCollection_Vtbl { @@ -1602,32 +1476,25 @@ pub struct IRTCCollection_Vtbl { get_Item: usize, pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppnewenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] -#[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRTCDispatchEventNotification(::windows_core::IUnknown); #[cfg(feature = "Win32_System_Com")] -impl IRTCDispatchEventNotification {} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IRTCDispatchEventNotification, + IRTCDispatchEventNotification_Vtbl, + 0x176ddfbe_fec0_4d55_bc87_84cff1ef7f91 +); #[cfg(feature = "Win32_System_Com")] ::windows_core::imp::interface_hierarchy!(IRTCDispatchEventNotification, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IRTCDispatchEventNotification { - type Vtable = IRTCDispatchEventNotification_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IRTCDispatchEventNotification { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x176ddfbe_fec0_4d55_bc87_84cff1ef7f91); -} +impl IRTCDispatchEventNotification {} #[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IRTCDispatchEventNotification_Vtbl { pub base__: super::Com::IDispatch_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRTCEnumBuddies(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRTCEnumBuddies, IRTCEnumBuddies_Vtbl, 0xf7296917_5569_4b3b_b3af_98d1144b2b87); +::windows_core::imp::interface_hierarchy!(IRTCEnumBuddies, ::windows_core::IUnknown); impl IRTCEnumBuddies { pub unsafe fn Next(&self, ppelements: &mut [::core::option::Option], pceltfetched: ::core::option::Option<*mut u32>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), ppelements.len().try_into().unwrap(), ::core::mem::transmute(ppelements.as_ptr()), ::core::mem::transmute(pceltfetched.unwrap_or(::std::ptr::null_mut()))).ok() @@ -1643,13 +1510,6 @@ impl IRTCEnumBuddies { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IRTCEnumBuddies, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRTCEnumBuddies { - type Vtable = IRTCEnumBuddies_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRTCEnumBuddies { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf7296917_5569_4b3b_b3af_98d1144b2b87); -} #[repr(C)] #[doc(hidden)] pub struct IRTCEnumBuddies_Vtbl { @@ -1659,9 +1519,8 @@ pub struct IRTCEnumBuddies_Vtbl { pub Skip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, celt: u32) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRTCEnumGroups(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRTCEnumGroups, IRTCEnumGroups_Vtbl, 0x742378d6_a141_4415_8f27_35d99076cf5d); +::windows_core::imp::interface_hierarchy!(IRTCEnumGroups, ::windows_core::IUnknown); impl IRTCEnumGroups { pub unsafe fn Next(&self, ppelements: &mut [::core::option::Option], pceltfetched: ::core::option::Option<*mut u32>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), ppelements.len().try_into().unwrap(), ::core::mem::transmute(ppelements.as_ptr()), ::core::mem::transmute(pceltfetched.unwrap_or(::std::ptr::null_mut()))).ok() @@ -1677,13 +1536,6 @@ impl IRTCEnumGroups { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IRTCEnumGroups, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRTCEnumGroups { - type Vtable = IRTCEnumGroups_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRTCEnumGroups { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x742378d6_a141_4415_8f27_35d99076cf5d); -} #[repr(C)] #[doc(hidden)] pub struct IRTCEnumGroups_Vtbl { @@ -1693,9 +1545,8 @@ pub struct IRTCEnumGroups_Vtbl { pub Skip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, celt: u32) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRTCEnumParticipants(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRTCEnumParticipants, IRTCEnumParticipants_Vtbl, 0xfcd56f29_4a4f_41b2_ba5c_f5bccc060bf6); +::windows_core::imp::interface_hierarchy!(IRTCEnumParticipants, ::windows_core::IUnknown); impl IRTCEnumParticipants { pub unsafe fn Next(&self, ppelements: &mut [::core::option::Option], pceltfetched: ::core::option::Option<*mut u32>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), ppelements.len().try_into().unwrap(), ::core::mem::transmute(ppelements.as_ptr()), ::core::mem::transmute(pceltfetched.unwrap_or(::std::ptr::null_mut()))).ok() @@ -1711,13 +1562,6 @@ impl IRTCEnumParticipants { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IRTCEnumParticipants, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRTCEnumParticipants { - type Vtable = IRTCEnumParticipants_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRTCEnumParticipants { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfcd56f29_4a4f_41b2_ba5c_f5bccc060bf6); -} #[repr(C)] #[doc(hidden)] pub struct IRTCEnumParticipants_Vtbl { @@ -1727,9 +1571,8 @@ pub struct IRTCEnumParticipants_Vtbl { pub Skip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, celt: u32) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRTCEnumPresenceDevices(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRTCEnumPresenceDevices, IRTCEnumPresenceDevices_Vtbl, 0x708c2ab7_8bf8_42f8_8c7d_635197ad5539); +::windows_core::imp::interface_hierarchy!(IRTCEnumPresenceDevices, ::windows_core::IUnknown); impl IRTCEnumPresenceDevices { pub unsafe fn Next(&self, ppelements: &mut [::core::option::Option], pceltfetched: ::core::option::Option<*mut u32>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), ppelements.len().try_into().unwrap(), ::core::mem::transmute(ppelements.as_ptr()), ::core::mem::transmute(pceltfetched.unwrap_or(::std::ptr::null_mut()))).ok() @@ -1745,13 +1588,6 @@ impl IRTCEnumPresenceDevices { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IRTCEnumPresenceDevices, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRTCEnumPresenceDevices { - type Vtable = IRTCEnumPresenceDevices_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRTCEnumPresenceDevices { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x708c2ab7_8bf8_42f8_8c7d_635197ad5539); -} #[repr(C)] #[doc(hidden)] pub struct IRTCEnumPresenceDevices_Vtbl { @@ -1761,9 +1597,8 @@ pub struct IRTCEnumPresenceDevices_Vtbl { pub Skip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, celt: u32) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRTCEnumProfiles(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRTCEnumProfiles, IRTCEnumProfiles_Vtbl, 0x29b7c41c_ed82_4bca_84ad_39d5101b58e3); +::windows_core::imp::interface_hierarchy!(IRTCEnumProfiles, ::windows_core::IUnknown); impl IRTCEnumProfiles { pub unsafe fn Next(&self, ppelements: &mut [::core::option::Option], pceltfetched: ::core::option::Option<*mut u32>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), ppelements.len().try_into().unwrap(), ::core::mem::transmute(ppelements.as_ptr()), ::core::mem::transmute(pceltfetched.unwrap_or(::std::ptr::null_mut()))).ok() @@ -1779,13 +1614,6 @@ impl IRTCEnumProfiles { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IRTCEnumProfiles, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRTCEnumProfiles { - type Vtable = IRTCEnumProfiles_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRTCEnumProfiles { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x29b7c41c_ed82_4bca_84ad_39d5101b58e3); -} #[repr(C)] #[doc(hidden)] pub struct IRTCEnumProfiles_Vtbl { @@ -1795,9 +1623,8 @@ pub struct IRTCEnumProfiles_Vtbl { pub Skip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, celt: u32) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRTCEnumUserSearchResults(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRTCEnumUserSearchResults, IRTCEnumUserSearchResults_Vtbl, 0x83d4d877_aa5d_4a5b_8d0e_002a8067e0e8); +::windows_core::imp::interface_hierarchy!(IRTCEnumUserSearchResults, ::windows_core::IUnknown); impl IRTCEnumUserSearchResults { pub unsafe fn Next(&self, ppelements: &mut [::core::option::Option], pceltfetched: ::core::option::Option<*mut u32>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), ppelements.len().try_into().unwrap(), ::core::mem::transmute(ppelements.as_ptr()), ::core::mem::transmute(pceltfetched.unwrap_or(::std::ptr::null_mut()))).ok() @@ -1813,13 +1640,6 @@ impl IRTCEnumUserSearchResults { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IRTCEnumUserSearchResults, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRTCEnumUserSearchResults { - type Vtable = IRTCEnumUserSearchResults_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRTCEnumUserSearchResults { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x83d4d877_aa5d_4a5b_8d0e_002a8067e0e8); -} #[repr(C)] #[doc(hidden)] pub struct IRTCEnumUserSearchResults_Vtbl { @@ -1829,9 +1649,8 @@ pub struct IRTCEnumUserSearchResults_Vtbl { pub Skip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, celt: u32) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRTCEnumWatchers(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRTCEnumWatchers, IRTCEnumWatchers_Vtbl, 0xa87d55d7_db74_4ed1_9ca4_77a0e41b413e); +::windows_core::imp::interface_hierarchy!(IRTCEnumWatchers, ::windows_core::IUnknown); impl IRTCEnumWatchers { pub unsafe fn Next(&self, ppelements: &mut [::core::option::Option], pceltfetched: ::core::option::Option<*mut u32>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), ppelements.len().try_into().unwrap(), ::core::mem::transmute(ppelements.as_ptr()), ::core::mem::transmute(pceltfetched.unwrap_or(::std::ptr::null_mut()))).ok() @@ -1847,13 +1666,6 @@ impl IRTCEnumWatchers { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IRTCEnumWatchers, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRTCEnumWatchers { - type Vtable = IRTCEnumWatchers_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRTCEnumWatchers { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa87d55d7_db74_4ed1_9ca4_77a0e41b413e); -} #[repr(C)] #[doc(hidden)] pub struct IRTCEnumWatchers_Vtbl { @@ -1863,9 +1675,8 @@ pub struct IRTCEnumWatchers_Vtbl { pub Skip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, celt: u32) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRTCEventNotification(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRTCEventNotification, IRTCEventNotification_Vtbl, 0x13fa24c7_5748_4b21_91f5_7397609ce747); +::windows_core::imp::interface_hierarchy!(IRTCEventNotification, ::windows_core::IUnknown); impl IRTCEventNotification { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -1876,13 +1687,6 @@ impl IRTCEventNotification { (::windows_core::Interface::vtable(self).Event)(::windows_core::Interface::as_raw(self), rtcevent, pevent.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IRTCEventNotification, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRTCEventNotification { - type Vtable = IRTCEventNotification_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRTCEventNotification { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x13fa24c7_5748_4b21_91f5_7397609ce747); -} #[repr(C)] #[doc(hidden)] pub struct IRTCEventNotification_Vtbl { @@ -1892,11 +1696,15 @@ pub struct IRTCEventNotification_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Event: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRTCInfoEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IRTCInfoEvent, + IRTCInfoEvent_Vtbl, + 0x4e1d68ae_1912_4f49_b2c3_594fadfd425f +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IRTCInfoEvent, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IRTCInfoEvent { pub unsafe fn Session(&self) -> ::windows_core::Result { @@ -1917,16 +1725,6 @@ impl IRTCInfoEvent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IRTCInfoEvent, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IRTCInfoEvent { - type Vtable = IRTCInfoEvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IRTCInfoEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4e1d68ae_1912_4f49_b2c3_594fadfd425f); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IRTCInfoEvent_Vtbl { @@ -1936,11 +1734,15 @@ pub struct IRTCInfoEvent_Vtbl { pub Info: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrinfo: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub InfoHeader: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrinfoheader: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRTCIntensityEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IRTCIntensityEvent, + IRTCIntensityEvent_Vtbl, + 0x4c23bf51_390c_4992_a41d_41eec05b2a4b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IRTCIntensityEvent, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IRTCIntensityEvent { pub unsafe fn Level(&self) -> ::windows_core::Result { @@ -1961,16 +1763,6 @@ impl IRTCIntensityEvent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IRTCIntensityEvent, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IRTCIntensityEvent { - type Vtable = IRTCIntensityEvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IRTCIntensityEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4c23bf51_390c_4992_a41d_41eec05b2a4b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IRTCIntensityEvent_Vtbl { @@ -1980,11 +1772,15 @@ pub struct IRTCIntensityEvent_Vtbl { pub Max: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plmax: *mut i32) -> ::windows_core::HRESULT, pub Direction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pendirection: *mut RTC_AUDIO_DEVICE) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRTCMediaEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IRTCMediaEvent, + IRTCMediaEvent_Vtbl, + 0x099944fb_bcda_453e_8c41_e13da2adf7f3 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IRTCMediaEvent, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IRTCMediaEvent { pub unsafe fn MediaType(&self) -> ::windows_core::Result { @@ -2001,16 +1797,6 @@ impl IRTCMediaEvent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IRTCMediaEvent, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IRTCMediaEvent { - type Vtable = IRTCMediaEvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IRTCMediaEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x099944fb_bcda_453e_8c41_e13da2adf7f3); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IRTCMediaEvent_Vtbl { @@ -2019,11 +1805,15 @@ pub struct IRTCMediaEvent_Vtbl { pub EventType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, peneventtype: *mut RTC_MEDIA_EVENT_TYPE) -> ::windows_core::HRESULT, pub EventReason: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, peneventreason: *mut RTC_MEDIA_EVENT_REASON) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRTCMediaRequestEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IRTCMediaRequestEvent, + IRTCMediaRequestEvent_Vtbl, + 0x52572d15_148c_4d97_a36c_2da55c289d63 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IRTCMediaRequestEvent, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IRTCMediaRequestEvent { pub unsafe fn Session(&self) -> ::windows_core::Result { @@ -2054,16 +1844,6 @@ impl IRTCMediaRequestEvent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IRTCMediaRequestEvent, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IRTCMediaRequestEvent { - type Vtable = IRTCMediaRequestEvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IRTCMediaRequestEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x52572d15_148c_4d97_a36c_2da55c289d63); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IRTCMediaRequestEvent_Vtbl { @@ -2076,11 +1856,15 @@ pub struct IRTCMediaRequestEvent_Vtbl { pub Reject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub State: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstate: *mut RTC_REINVITE_STATE) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRTCMessagingEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IRTCMessagingEvent, + IRTCMessagingEvent_Vtbl, + 0xd3609541_1b29_4de5_a4ad_5aebaf319512 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IRTCMessagingEvent, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IRTCMessagingEvent { pub unsafe fn Session(&self) -> ::windows_core::Result { @@ -2109,16 +1893,6 @@ impl IRTCMessagingEvent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IRTCMessagingEvent, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IRTCMessagingEvent { - type Vtable = IRTCMessagingEvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IRTCMessagingEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd3609541_1b29_4de5_a4ad_5aebaf319512); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IRTCMessagingEvent_Vtbl { @@ -2130,9 +1904,8 @@ pub struct IRTCMessagingEvent_Vtbl { pub MessageHeader: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrmessageheader: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub UserStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, penuserstatus: *mut RTC_MESSAGING_USER_STATUS) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRTCParticipant(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRTCParticipant, IRTCParticipant_Vtbl, 0xae86add5_26b1_4414_af1d_b94cd938d739); +::windows_core::imp::interface_hierarchy!(IRTCParticipant, ::windows_core::IUnknown); impl IRTCParticipant { pub unsafe fn UserURI(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -2155,13 +1928,6 @@ impl IRTCParticipant { (::windows_core::Interface::vtable(self).Session)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IRTCParticipant, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRTCParticipant { - type Vtable = IRTCParticipant_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRTCParticipant { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xae86add5_26b1_4414_af1d_b94cd938d739); -} #[repr(C)] #[doc(hidden)] pub struct IRTCParticipant_Vtbl { @@ -2172,11 +1938,15 @@ pub struct IRTCParticipant_Vtbl { pub State: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, penstate: *mut RTC_PARTICIPANT_STATE) -> ::windows_core::HRESULT, pub Session: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppsession: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRTCParticipantStateChangeEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IRTCParticipantStateChangeEvent, + IRTCParticipantStateChangeEvent_Vtbl, + 0x09bcb597_f0fa_48f9_b420_468cea7fde04 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IRTCParticipantStateChangeEvent, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IRTCParticipantStateChangeEvent { pub unsafe fn Participant(&self) -> ::windows_core::Result { @@ -2193,16 +1963,6 @@ impl IRTCParticipantStateChangeEvent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IRTCParticipantStateChangeEvent, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IRTCParticipantStateChangeEvent { - type Vtable = IRTCParticipantStateChangeEvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IRTCParticipantStateChangeEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x09bcb597_f0fa_48f9_b420_468cea7fde04); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IRTCParticipantStateChangeEvent_Vtbl { @@ -2211,9 +1971,8 @@ pub struct IRTCParticipantStateChangeEvent_Vtbl { pub State: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, penstate: *mut RTC_PARTICIPANT_STATE) -> ::windows_core::HRESULT, pub StatusCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plstatuscode: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRTCPortManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRTCPortManager, IRTCPortManager_Vtbl, 0xda77c14b_6208_43ca_8ddf_5b60a0a69fac); +::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 @@ -2237,13 +1996,6 @@ impl IRTCPortManager { (::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::imp::interface_hierarchy!(IRTCPortManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRTCPortManager { - type Vtable = IRTCPortManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRTCPortManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xda77c14b_6208_43ca_8ddf_5b60a0a69fac); -} #[repr(C)] #[doc(hidden)] pub struct IRTCPortManager_Vtbl { @@ -2252,9 +2004,8 @@ pub struct IRTCPortManager_Vtbl { pub UpdateRemoteAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrremoteaddress: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstrinternallocaladdress: ::std::mem::MaybeUninit<::windows_core::BSTR>, linternallocalport: i32, bstrexternallocaladdress: ::std::mem::MaybeUninit<::windows_core::BSTR>, lexternallocalport: i32) -> ::windows_core::HRESULT, pub ReleaseMapping: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrinternallocaladdress: ::std::mem::MaybeUninit<::windows_core::BSTR>, linternallocalport: i32, bstrexternallocaladdress: ::std::mem::MaybeUninit<::windows_core::BSTR>, lexternallocaladdress: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRTCPresenceContact(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRTCPresenceContact, IRTCPresenceContact_Vtbl, 0x8b22f92c_cd90_42db_a733_212205c3e3df); +::windows_core::imp::interface_hierarchy!(IRTCPresenceContact, ::windows_core::IUnknown); impl IRTCPresenceContact { pub unsafe fn PresentityURI(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -2297,13 +2048,6 @@ impl IRTCPresenceContact { (::windows_core::Interface::vtable(self).SetPersistent)(::windows_core::Interface::as_raw(self), fpersistent.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IRTCPresenceContact, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRTCPresenceContact { - type Vtable = IRTCPresenceContact_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRTCPresenceContact { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8b22f92c_cd90_42db_a733_212205c3e3df); -} #[repr(C)] #[doc(hidden)] pub struct IRTCPresenceContact_Vtbl { @@ -2317,11 +2061,15 @@ pub struct IRTCPresenceContact_Vtbl { pub Persistent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfpersistent: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub SetPersistent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fpersistent: super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRTCPresenceDataEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IRTCPresenceDataEvent, + IRTCPresenceDataEvent_Vtbl, + 0x38f0e78c_8b87_4c04_a82d_aedd83c909bb +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IRTCPresenceDataEvent, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IRTCPresenceDataEvent { pub unsafe fn StatusCode(&self) -> ::windows_core::Result { @@ -2337,16 +2085,6 @@ impl IRTCPresenceDataEvent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IRTCPresenceDataEvent, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IRTCPresenceDataEvent { - type Vtable = IRTCPresenceDataEvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IRTCPresenceDataEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x38f0e78c_8b87_4c04_a82d_aedd83c909bb); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IRTCPresenceDataEvent_Vtbl { @@ -2355,9 +2093,8 @@ pub struct IRTCPresenceDataEvent_Vtbl { pub StatusText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrstatustext: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub GetPresenceData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrnamespace: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>, pbstrdata: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRTCPresenceDevice(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRTCPresenceDevice, IRTCPresenceDevice_Vtbl, 0xbc6a90dd_ad9a_48da_9b0c_2515e38521ad); +::windows_core::imp::interface_hierarchy!(IRTCPresenceDevice, ::windows_core::IUnknown); impl IRTCPresenceDevice { pub unsafe fn Status(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2375,13 +2112,6 @@ impl IRTCPresenceDevice { (::windows_core::Interface::vtable(self).GetPresenceData)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pbstrnamespace), ::core::mem::transmute(pbstrdata)).ok() } } -::windows_core::imp::interface_hierarchy!(IRTCPresenceDevice, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRTCPresenceDevice { - type Vtable = IRTCPresenceDevice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRTCPresenceDevice { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbc6a90dd_ad9a_48da_9b0c_2515e38521ad); -} #[repr(C)] #[doc(hidden)] pub struct IRTCPresenceDevice_Vtbl { @@ -2391,11 +2121,15 @@ pub struct IRTCPresenceDevice_Vtbl { pub get_PresenceProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enproperty: RTC_PRESENCE_PROPERTY, pbstrproperty: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub GetPresenceData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrnamespace: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>, pbstrdata: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRTCPresencePropertyEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IRTCPresencePropertyEvent, + IRTCPresencePropertyEvent_Vtbl, + 0xf777f570_a820_49d5_86bd_e099493f1518 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IRTCPresencePropertyEvent, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IRTCPresencePropertyEvent { pub unsafe fn StatusCode(&self) -> ::windows_core::Result { @@ -2416,16 +2150,6 @@ impl IRTCPresencePropertyEvent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IRTCPresencePropertyEvent, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IRTCPresencePropertyEvent { - type Vtable = IRTCPresencePropertyEvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IRTCPresencePropertyEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf777f570_a820_49d5_86bd_e099493f1518); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IRTCPresencePropertyEvent_Vtbl { @@ -2435,11 +2159,15 @@ pub struct IRTCPresencePropertyEvent_Vtbl { pub PresenceProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, penpresprop: *mut RTC_PRESENCE_PROPERTY) -> ::windows_core::HRESULT, pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrvalue: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRTCPresenceStatusEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IRTCPresenceStatusEvent, + IRTCPresenceStatusEvent_Vtbl, + 0x78673f32_4a0f_462c_89aa_ee7706707678 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IRTCPresenceStatusEvent, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IRTCPresenceStatusEvent { pub unsafe fn StatusCode(&self) -> ::windows_core::Result { @@ -2455,16 +2183,6 @@ impl IRTCPresenceStatusEvent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IRTCPresenceStatusEvent, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IRTCPresenceStatusEvent { - type Vtable = IRTCPresenceStatusEvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IRTCPresenceStatusEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x78673f32_4a0f_462c_89aa_ee7706707678); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IRTCPresenceStatusEvent_Vtbl { @@ -2473,9 +2191,8 @@ pub struct IRTCPresenceStatusEvent_Vtbl { pub StatusText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrstatustext: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub GetLocalPresenceInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, penstatus: *mut RTC_PRESENCE_STATUS, pbstrnotes: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRTCProfile(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRTCProfile, IRTCProfile_Vtbl, 0xd07eca9e_4062_4dd4_9e7d_722a49ba7303); +::windows_core::imp::interface_hierarchy!(IRTCProfile, ::windows_core::IUnknown); impl IRTCProfile { pub unsafe fn Key(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -2554,13 +2271,6 @@ impl IRTCProfile { (::windows_core::Interface::vtable(self).State)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IRTCProfile, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRTCProfile { - type Vtable = IRTCProfile_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRTCProfile { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd07eca9e_4062_4dd4_9e7d_722a49ba7303); -} #[repr(C)] #[doc(hidden)] pub struct IRTCProfile_Vtbl { @@ -2584,9 +2294,8 @@ pub struct IRTCProfile_Vtbl { pub SessionCapabilities: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plsupportedsessions: *mut i32) -> ::windows_core::HRESULT, pub State: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, penstate: *mut RTC_REGISTRATION_STATE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRTCProfile2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRTCProfile2, IRTCProfile2_Vtbl, 0x4b81f84e_bdc7_4184_9154_3cb2dd7917fb); +::windows_core::imp::interface_hierarchy!(IRTCProfile2, ::windows_core::IUnknown, IRTCProfile); impl IRTCProfile2 { pub unsafe fn Key(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -2682,13 +2391,6 @@ impl IRTCProfile2 { (::windows_core::Interface::vtable(self).SetAllowedAuth)(::windows_core::Interface::as_raw(self), lallowedauth).ok() } } -::windows_core::imp::interface_hierarchy!(IRTCProfile2, ::windows_core::IUnknown, IRTCProfile); -unsafe impl ::windows_core::Interface for IRTCProfile2 { - type Vtable = IRTCProfile2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRTCProfile2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4b81f84e_bdc7_4184_9154_3cb2dd7917fb); -} #[repr(C)] #[doc(hidden)] pub struct IRTCProfile2_Vtbl { @@ -2698,11 +2400,15 @@ pub struct IRTCProfile2_Vtbl { pub AllowedAuth: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plallowedauth: *mut i32) -> ::windows_core::HRESULT, pub SetAllowedAuth: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lallowedauth: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRTCProfileEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IRTCProfileEvent, + IRTCProfileEvent_Vtbl, + 0xd6d5ab3b_770e_43e8_800a_79b062395fca +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IRTCProfileEvent, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IRTCProfileEvent { pub unsafe fn Profile(&self) -> ::windows_core::Result { @@ -2719,16 +2425,6 @@ impl IRTCProfileEvent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IRTCProfileEvent, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IRTCProfileEvent { - type Vtable = IRTCProfileEvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IRTCProfileEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd6d5ab3b_770e_43e8_800a_79b062395fca); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IRTCProfileEvent_Vtbl { @@ -2737,11 +2433,15 @@ pub struct IRTCProfileEvent_Vtbl { pub Cookie: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plcookie: *mut isize) -> ::windows_core::HRESULT, pub StatusCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plstatuscode: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRTCProfileEvent2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IRTCProfileEvent2, + IRTCProfileEvent2_Vtbl, + 0x62e56edc_03fa_4121_94fb_23493fd0ae64 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IRTCProfileEvent2, ::windows_core::IUnknown, super::Com::IDispatch, IRTCProfileEvent); #[cfg(feature = "Win32_System_Com")] impl IRTCProfileEvent2 { pub unsafe fn Profile(&self) -> ::windows_core::Result { @@ -2762,27 +2462,21 @@ impl IRTCProfileEvent2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IRTCProfileEvent2, ::windows_core::IUnknown, super::Com::IDispatch, IRTCProfileEvent); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IRTCProfileEvent2 { - type Vtable = IRTCProfileEvent2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IRTCProfileEvent2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x62e56edc_03fa_4121_94fb_23493fd0ae64); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IRTCProfileEvent2_Vtbl { pub base__: IRTCProfileEvent_Vtbl, pub EventType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, peventtype: *mut RTC_PROFILE_EVENT_TYPE) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRTCReInviteEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IRTCReInviteEvent, + IRTCReInviteEvent_Vtbl, + 0x11558d84_204c_43e7_99b0_2034e9417f7d +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IRTCReInviteEvent, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IRTCReInviteEvent { pub unsafe fn Session(&self) -> ::windows_core::Result { @@ -2808,16 +2502,6 @@ impl IRTCReInviteEvent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IRTCReInviteEvent, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IRTCReInviteEvent { - type Vtable = IRTCReInviteEvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IRTCReInviteEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x11558d84_204c_43e7_99b0_2034e9417f7d); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IRTCReInviteEvent_Vtbl { @@ -2828,11 +2512,15 @@ pub struct IRTCReInviteEvent_Vtbl { pub State: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstate: *mut RTC_REINVITE_STATE) -> ::windows_core::HRESULT, pub GetRemoteSessionDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcontenttype: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>, pbstrsessiondescription: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRTCRegistrationStateChangeEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IRTCRegistrationStateChangeEvent, + IRTCRegistrationStateChangeEvent_Vtbl, + 0x62d0991b_50ab_4f02_b948_ca94f26f8f95 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IRTCRegistrationStateChangeEvent, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IRTCRegistrationStateChangeEvent { pub unsafe fn Profile(&self) -> ::windows_core::Result { @@ -2853,16 +2541,6 @@ impl IRTCRegistrationStateChangeEvent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IRTCRegistrationStateChangeEvent, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IRTCRegistrationStateChangeEvent { - type Vtable = IRTCRegistrationStateChangeEvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IRTCRegistrationStateChangeEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x62d0991b_50ab_4f02_b948_ca94f26f8f95); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IRTCRegistrationStateChangeEvent_Vtbl { @@ -2872,11 +2550,15 @@ pub struct IRTCRegistrationStateChangeEvent_Vtbl { pub StatusCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plstatuscode: *mut i32) -> ::windows_core::HRESULT, pub StatusText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrstatustext: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRTCRoamingEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IRTCRoamingEvent, + IRTCRoamingEvent_Vtbl, + 0x79960a6b_0cb1_4dc8_a805_7318e99902e8 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IRTCRoamingEvent, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IRTCRoamingEvent { pub unsafe fn EventType(&self) -> ::windows_core::Result { @@ -2897,16 +2579,6 @@ impl IRTCRoamingEvent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IRTCRoamingEvent, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IRTCRoamingEvent { - type Vtable = IRTCRoamingEvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IRTCRoamingEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x79960a6b_0cb1_4dc8_a805_7318e99902e8); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IRTCRoamingEvent_Vtbl { @@ -2916,9 +2588,8 @@ pub struct IRTCRoamingEvent_Vtbl { pub StatusCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plstatuscode: *mut i32) -> ::windows_core::HRESULT, pub StatusText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrstatustext: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRTCSession(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRTCSession, IRTCSession_Vtbl, 0x387c8086_99be_42fb_9973_7c0fc0ca9fa8); +::windows_core::imp::interface_hierarchy!(IRTCSession, ::windows_core::IUnknown); impl IRTCSession { pub unsafe fn Client(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -3011,13 +2682,6 @@ impl IRTCSession { (::windows_core::Interface::vtable(self).put_EncryptionKey)(::windows_core::Interface::as_raw(self), lmediatype, encryptionkey.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IRTCSession, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRTCSession { - type Vtable = IRTCSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRTCSession { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x387c8086_99be_42fb_9973_7c0fc0ca9fa8); -} #[repr(C)] #[doc(hidden)] pub struct IRTCSession_Vtbl { @@ -3046,9 +2710,8 @@ pub struct IRTCSession_Vtbl { pub RemoveStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lmediatype: i32, lcookie: isize) -> ::windows_core::HRESULT, pub put_EncryptionKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lmediatype: i32, encryptionkey: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRTCSession2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRTCSession2, IRTCSession2_Vtbl, 0x17d7cdfc_b007_484c_99d2_86a8a820991d); +::windows_core::imp::interface_hierarchy!(IRTCSession2, ::windows_core::IUnknown, IRTCSession); impl IRTCSession2 { pub unsafe fn Client(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -3173,13 +2836,6 @@ impl IRTCSession2 { (::windows_core::Interface::vtable(self).ReInviteWithSessionDescription)(::windows_core::Interface::as_raw(self), bstrcontenttype.into_param().abi(), bstrsessiondescription.into_param().abi(), lcookie).ok() } } -::windows_core::imp::interface_hierarchy!(IRTCSession2, ::windows_core::IUnknown, IRTCSession); -unsafe impl ::windows_core::Interface for IRTCSession2 { - type Vtable = IRTCSession2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRTCSession2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x17d7cdfc_b007_484c_99d2_86a8a820991d); -} #[repr(C)] #[doc(hidden)] pub struct IRTCSession2_Vtbl { @@ -3191,9 +2847,8 @@ pub struct IRTCSession2_Vtbl { pub AnswerWithSessionDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrcontenttype: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstrsessiondescription: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub ReInviteWithSessionDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrcontenttype: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstrsessiondescription: ::std::mem::MaybeUninit<::windows_core::BSTR>, lcookie: isize) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRTCSessionCallControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRTCSessionCallControl, IRTCSessionCallControl_Vtbl, 0xe9a50d94_190b_4f82_9530_3b8ebf60758a); +::windows_core::imp::interface_hierarchy!(IRTCSessionCallControl, ::windows_core::IUnknown); impl IRTCSessionCallControl { pub unsafe fn Hold(&self, lcookie: isize) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Hold)(::windows_core::Interface::as_raw(self), lcookie).ok() @@ -3239,13 +2894,6 @@ impl IRTCSessionCallControl { (::windows_core::Interface::vtable(self).IsReferred)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IRTCSessionCallControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRTCSessionCallControl { - type Vtable = IRTCSessionCallControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRTCSessionCallControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe9a50d94_190b_4f82_9530_3b8ebf60758a); -} #[repr(C)] #[doc(hidden)] pub struct IRTCSessionCallControl_Vtbl { @@ -3260,9 +2908,8 @@ pub struct IRTCSessionCallControl_Vtbl { pub ReferCookie: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrrefercookie: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub IsReferred: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfisreferred: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRTCSessionDescriptionManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRTCSessionDescriptionManager, IRTCSessionDescriptionManager_Vtbl, 0xba7f518e_d336_4070_93a6_865395c843f9); +::windows_core::imp::interface_hierarchy!(IRTCSessionDescriptionManager, ::windows_core::IUnknown); impl IRTCSessionDescriptionManager { pub unsafe fn EvaluateSessionDescription(&self, bstrcontenttype: P0, bstrsessiondescription: P1, pfapplicationsession: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::Result<()> where @@ -3272,24 +2919,21 @@ impl IRTCSessionDescriptionManager { (::windows_core::Interface::vtable(self).EvaluateSessionDescription)(::windows_core::Interface::as_raw(self), bstrcontenttype.into_param().abi(), bstrsessiondescription.into_param().abi(), pfapplicationsession).ok() } } -::windows_core::imp::interface_hierarchy!(IRTCSessionDescriptionManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRTCSessionDescriptionManager { - type Vtable = IRTCSessionDescriptionManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRTCSessionDescriptionManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xba7f518e_d336_4070_93a6_865395c843f9); -} #[repr(C)] #[doc(hidden)] pub struct IRTCSessionDescriptionManager_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub EvaluateSessionDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrcontenttype: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstrsessiondescription: ::std::mem::MaybeUninit<::windows_core::BSTR>, pfapplicationsession: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRTCSessionOperationCompleteEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IRTCSessionOperationCompleteEvent, + IRTCSessionOperationCompleteEvent_Vtbl, + 0xa6bff4c0_f7c8_4d3c_9a41_3550f78a95b0 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IRTCSessionOperationCompleteEvent, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IRTCSessionOperationCompleteEvent { pub unsafe fn Session(&self) -> ::windows_core::Result { @@ -3310,16 +2954,6 @@ impl IRTCSessionOperationCompleteEvent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IRTCSessionOperationCompleteEvent, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IRTCSessionOperationCompleteEvent { - type Vtable = IRTCSessionOperationCompleteEvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IRTCSessionOperationCompleteEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa6bff4c0_f7c8_4d3c_9a41_3550f78a95b0); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IRTCSessionOperationCompleteEvent_Vtbl { @@ -3329,11 +2963,15 @@ pub struct IRTCSessionOperationCompleteEvent_Vtbl { pub StatusCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plstatuscode: *mut i32) -> ::windows_core::HRESULT, pub StatusText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrstatustext: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRTCSessionOperationCompleteEvent2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IRTCSessionOperationCompleteEvent2, + IRTCSessionOperationCompleteEvent2_Vtbl, + 0xf6fc2a9b_d5bc_4241_b436_1b8460c13832 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IRTCSessionOperationCompleteEvent2, ::windows_core::IUnknown, super::Com::IDispatch, IRTCSessionOperationCompleteEvent); #[cfg(feature = "Win32_System_Com")] impl IRTCSessionOperationCompleteEvent2 { pub unsafe fn Session(&self) -> ::windows_core::Result { @@ -3361,16 +2999,6 @@ impl IRTCSessionOperationCompleteEvent2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IRTCSessionOperationCompleteEvent2, ::windows_core::IUnknown, super::Com::IDispatch, IRTCSessionOperationCompleteEvent); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IRTCSessionOperationCompleteEvent2 { - type Vtable = IRTCSessionOperationCompleteEvent2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IRTCSessionOperationCompleteEvent2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf6fc2a9b_d5bc_4241_b436_1b8460c13832); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IRTCSessionOperationCompleteEvent2_Vtbl { @@ -3378,9 +3006,8 @@ pub struct IRTCSessionOperationCompleteEvent2_Vtbl { pub Participant: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppparticipant: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetRemoteSessionDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcontenttype: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>, pbstrsessiondescription: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRTCSessionPortManagement(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRTCSessionPortManagement, IRTCSessionPortManagement_Vtbl, 0xa072f1d6_0286_4e1f_85f2_17a2948456ec); +::windows_core::imp::interface_hierarchy!(IRTCSessionPortManagement, ::windows_core::IUnknown); impl IRTCSessionPortManagement { pub unsafe fn SetPortManager(&self, pportmanager: P0) -> ::windows_core::Result<()> where @@ -3389,24 +3016,21 @@ impl IRTCSessionPortManagement { (::windows_core::Interface::vtable(self).SetPortManager)(::windows_core::Interface::as_raw(self), pportmanager.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IRTCSessionPortManagement, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRTCSessionPortManagement { - type Vtable = IRTCSessionPortManagement_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRTCSessionPortManagement { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa072f1d6_0286_4e1f_85f2_17a2948456ec); -} #[repr(C)] #[doc(hidden)] pub struct IRTCSessionPortManagement_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub SetPortManager: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pportmanager: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRTCSessionReferStatusEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IRTCSessionReferStatusEvent, + IRTCSessionReferStatusEvent_Vtbl, + 0x3d8fc2cd_5d76_44ab_bb68_2a80353b34a2 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IRTCSessionReferStatusEvent, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IRTCSessionReferStatusEvent { pub unsafe fn Session(&self) -> ::windows_core::Result { @@ -3427,16 +3051,6 @@ impl IRTCSessionReferStatusEvent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IRTCSessionReferStatusEvent, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IRTCSessionReferStatusEvent { - type Vtable = IRTCSessionReferStatusEvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IRTCSessionReferStatusEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3d8fc2cd_5d76_44ab_bb68_2a80353b34a2); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IRTCSessionReferStatusEvent_Vtbl { @@ -3446,11 +3060,15 @@ pub struct IRTCSessionReferStatusEvent_Vtbl { pub StatusCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plstatuscode: *mut i32) -> ::windows_core::HRESULT, pub StatusText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrstatustext: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRTCSessionReferredEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IRTCSessionReferredEvent, + IRTCSessionReferredEvent_Vtbl, + 0x176a6828_4fcc_4f28_a862_04597a6cf1c4 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IRTCSessionReferredEvent, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IRTCSessionReferredEvent { pub unsafe fn Session(&self) -> ::windows_core::Result { @@ -3480,16 +3098,6 @@ impl IRTCSessionReferredEvent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IRTCSessionReferredEvent, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IRTCSessionReferredEvent { - type Vtable = IRTCSessionReferredEvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IRTCSessionReferredEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x176a6828_4fcc_4f28_a862_04597a6cf1c4); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IRTCSessionReferredEvent_Vtbl { @@ -3502,11 +3110,15 @@ pub struct IRTCSessionReferredEvent_Vtbl { pub Reject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetReferredSessionState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enstate: RTC_SESSION_STATE) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRTCSessionStateChangeEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IRTCSessionStateChangeEvent, + IRTCSessionStateChangeEvent_Vtbl, + 0xb5bad703_5952_48b3_9321_7f4500521506 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IRTCSessionStateChangeEvent, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IRTCSessionStateChangeEvent { pub unsafe fn Session(&self) -> ::windows_core::Result { @@ -3527,16 +3139,6 @@ impl IRTCSessionStateChangeEvent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IRTCSessionStateChangeEvent, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IRTCSessionStateChangeEvent { - type Vtable = IRTCSessionStateChangeEvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IRTCSessionStateChangeEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb5bad703_5952_48b3_9321_7f4500521506); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IRTCSessionStateChangeEvent_Vtbl { @@ -3546,11 +3148,15 @@ pub struct IRTCSessionStateChangeEvent_Vtbl { pub StatusCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plstatuscode: *mut i32) -> ::windows_core::HRESULT, pub StatusText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrstatustext: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRTCSessionStateChangeEvent2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IRTCSessionStateChangeEvent2, + IRTCSessionStateChangeEvent2_Vtbl, + 0x4f933171_6f95_4880_80d9_2ec8d495d261 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IRTCSessionStateChangeEvent2, ::windows_core::IUnknown, super::Com::IDispatch, IRTCSessionStateChangeEvent); #[cfg(feature = "Win32_System_Com")] impl IRTCSessionStateChangeEvent2 { pub unsafe fn Session(&self) -> ::windows_core::Result { @@ -3586,16 +3192,6 @@ impl IRTCSessionStateChangeEvent2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IRTCSessionStateChangeEvent2, ::windows_core::IUnknown, super::Com::IDispatch, IRTCSessionStateChangeEvent); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IRTCSessionStateChangeEvent2 { - type Vtable = IRTCSessionStateChangeEvent2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IRTCSessionStateChangeEvent2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4f933171_6f95_4880_80d9_2ec8d495d261); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IRTCSessionStateChangeEvent2_Vtbl { @@ -3605,9 +3201,8 @@ pub struct IRTCSessionStateChangeEvent2_Vtbl { pub IsForked: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfisforked: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub GetRemoteSessionDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcontenttype: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>, pbstrsessiondescription: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRTCUserSearch(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRTCUserSearch, IRTCUserSearch_Vtbl, 0xb619882b_860c_4db4_be1b_693b6505bbe5); +::windows_core::imp::interface_hierarchy!(IRTCUserSearch, ::windows_core::IUnknown); impl IRTCUserSearch { pub unsafe fn CreateQuery(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -3621,13 +3216,6 @@ impl IRTCUserSearch { (::windows_core::Interface::vtable(self).ExecuteSearch)(::windows_core::Interface::as_raw(self), pquery.into_param().abi(), pprofile.into_param().abi(), lcookie).ok() } } -::windows_core::imp::interface_hierarchy!(IRTCUserSearch, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRTCUserSearch { - type Vtable = IRTCUserSearch_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRTCUserSearch { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb619882b_860c_4db4_be1b_693b6505bbe5); -} #[repr(C)] #[doc(hidden)] pub struct IRTCUserSearch_Vtbl { @@ -3635,9 +3223,8 @@ pub struct IRTCUserSearch_Vtbl { pub CreateQuery: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppquery: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ExecuteSearch: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pquery: *mut ::core::ffi::c_void, pprofile: *mut ::core::ffi::c_void, lcookie: isize) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRTCUserSearchQuery(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRTCUserSearchQuery, IRTCUserSearchQuery_Vtbl, 0x288300f5_d23a_4365_9a73_9985c98c2881); +::windows_core::imp::interface_hierarchy!(IRTCUserSearchQuery, ::windows_core::IUnknown); impl IRTCUserSearchQuery { pub unsafe fn put_SearchTerm(&self, bstrname: P0, bstrvalue: P1) -> ::windows_core::Result<()> where @@ -3675,13 +3262,6 @@ impl IRTCUserSearchQuery { (::windows_core::Interface::vtable(self).SearchDomain)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IRTCUserSearchQuery, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRTCUserSearchQuery { - type Vtable = IRTCUserSearchQuery_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRTCUserSearchQuery { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x288300f5_d23a_4365_9a73_9985c98c2881); -} #[repr(C)] #[doc(hidden)] pub struct IRTCUserSearchQuery_Vtbl { @@ -3694,33 +3274,29 @@ pub struct IRTCUserSearchQuery_Vtbl { pub SetSearchDomain: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdomain: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SearchDomain: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdomain: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRTCUserSearchResult(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRTCUserSearchResult, IRTCUserSearchResult_Vtbl, 0x851278b2_9592_480f_8db5_2de86b26b54d); +::windows_core::imp::interface_hierarchy!(IRTCUserSearchResult, ::windows_core::IUnknown); impl IRTCUserSearchResult { pub unsafe fn get_Value(&self, encolumn: RTC_USER_SEARCH_COLUMN) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).get_Value)(::windows_core::Interface::as_raw(self), encolumn, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IRTCUserSearchResult, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRTCUserSearchResult { - type Vtable = IRTCUserSearchResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRTCUserSearchResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x851278b2_9592_480f_8db5_2de86b26b54d); -} #[repr(C)] #[doc(hidden)] pub struct IRTCUserSearchResult_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub get_Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encolumn: RTC_USER_SEARCH_COLUMN, pbstrvalue: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRTCUserSearchResultsEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IRTCUserSearchResultsEvent, + IRTCUserSearchResultsEvent_Vtbl, + 0xd8c8c3cd_7fac_4088_81c5_c24cbc0938e3 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IRTCUserSearchResultsEvent, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IRTCUserSearchResultsEvent { pub unsafe fn EnumerateResults(&self) -> ::windows_core::Result { @@ -3755,16 +3331,6 @@ impl IRTCUserSearchResultsEvent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IRTCUserSearchResultsEvent, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IRTCUserSearchResultsEvent { - type Vtable = IRTCUserSearchResultsEvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IRTCUserSearchResultsEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd8c8c3cd_7fac_4088_81c5_c24cbc0938e3); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IRTCUserSearchResultsEvent_Vtbl { @@ -3780,9 +3346,8 @@ pub struct IRTCUserSearchResultsEvent_Vtbl { pub StatusCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plstatuscode: *mut i32) -> ::windows_core::HRESULT, pub MoreAvailable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfmoreavailable: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRTCWatcher(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRTCWatcher, IRTCWatcher_Vtbl, 0xc7cedad8_346b_4d1b_ac02_a2088df9be4f); +::windows_core::imp::interface_hierarchy!(IRTCWatcher, ::windows_core::IUnknown, IRTCPresenceContact); impl IRTCWatcher { pub unsafe fn PresentityURI(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -3832,13 +3397,6 @@ impl IRTCWatcher { (::windows_core::Interface::vtable(self).SetState)(::windows_core::Interface::as_raw(self), enstate).ok() } } -::windows_core::imp::interface_hierarchy!(IRTCWatcher, ::windows_core::IUnknown, IRTCPresenceContact); -unsafe impl ::windows_core::Interface for IRTCWatcher { - type Vtable = IRTCWatcher_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRTCWatcher { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc7cedad8_346b_4d1b_ac02_a2088df9be4f); -} #[repr(C)] #[doc(hidden)] pub struct IRTCWatcher_Vtbl { @@ -3846,9 +3404,8 @@ pub struct IRTCWatcher_Vtbl { pub State: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, penstate: *mut RTC_WATCHER_STATE) -> ::windows_core::HRESULT, pub SetState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enstate: RTC_WATCHER_STATE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRTCWatcher2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRTCWatcher2, IRTCWatcher2_Vtbl, 0xd4d9967f_d011_4b1d_91e3_aba78f96393d); +::windows_core::imp::interface_hierarchy!(IRTCWatcher2, ::windows_core::IUnknown, IRTCPresenceContact, IRTCWatcher); impl IRTCWatcher2 { pub unsafe fn PresentityURI(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -3906,13 +3463,6 @@ impl IRTCWatcher2 { (::windows_core::Interface::vtable(self).Scope)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IRTCWatcher2, ::windows_core::IUnknown, IRTCPresenceContact, IRTCWatcher); -unsafe impl ::windows_core::Interface for IRTCWatcher2 { - type Vtable = IRTCWatcher2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRTCWatcher2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd4d9967f_d011_4b1d_91e3_aba78f96393d); -} #[repr(C)] #[doc(hidden)] pub struct IRTCWatcher2_Vtbl { @@ -3920,11 +3470,15 @@ pub struct IRTCWatcher2_Vtbl { pub Profile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppprofile: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Scope: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, penscope: *mut RTC_ACE_SCOPE) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRTCWatcherEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IRTCWatcherEvent, + IRTCWatcherEvent_Vtbl, + 0xf30d7261_587a_424f_822c_312788f43548 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IRTCWatcherEvent, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IRTCWatcherEvent { pub unsafe fn Watcher(&self) -> ::windows_core::Result { @@ -3933,27 +3487,21 @@ impl IRTCWatcherEvent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IRTCWatcherEvent, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IRTCWatcherEvent { - type Vtable = IRTCWatcherEvent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IRTCWatcherEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf30d7261_587a_424f_822c_312788f43548); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IRTCWatcherEvent_Vtbl { pub base__: super::Com::IDispatch_Vtbl, pub Watcher: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppwatcher: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRTCWatcherEvent2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IRTCWatcherEvent2, + IRTCWatcherEvent2_Vtbl, + 0xe52891e8_188c_49af_b005_98ed13f83f9c +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IRTCWatcherEvent2, ::windows_core::IUnknown, super::Com::IDispatch, IRTCWatcherEvent); #[cfg(feature = "Win32_System_Com")] impl IRTCWatcherEvent2 { pub unsafe fn Watcher(&self) -> ::windows_core::Result { @@ -3970,16 +3518,6 @@ impl IRTCWatcherEvent2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IRTCWatcherEvent2, ::windows_core::IUnknown, super::Com::IDispatch, IRTCWatcherEvent); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IRTCWatcherEvent2 { - type Vtable = IRTCWatcherEvent2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IRTCWatcherEvent2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe52891e8_188c_49af_b005_98ed13f83f9c); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IRTCWatcherEvent2_Vtbl { @@ -3987,9 +3525,8 @@ pub struct IRTCWatcherEvent2_Vtbl { pub EventType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, peventtype: *mut RTC_WATCHER_EVENT_TYPE) -> ::windows_core::HRESULT, pub StatusCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plstatuscode: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITransportSettingsInternal(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITransportSettingsInternal, ITransportSettingsInternal_Vtbl, 0x5123e076_29e3_4bfd_84fe_0192d411e3e8); +::windows_core::imp::interface_hierarchy!(ITransportSettingsInternal, ::windows_core::IUnknown); impl ITransportSettingsInternal { #[doc = "Required features: `\"Win32_Networking_WinSock\"`"] #[cfg(feature = "Win32_Networking_WinSock")] @@ -4002,13 +3539,6 @@ impl ITransportSettingsInternal { (::windows_core::Interface::vtable(self).QuerySetting)(::windows_core::Interface::as_raw(self), setting).ok() } } -::windows_core::imp::interface_hierarchy!(ITransportSettingsInternal, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITransportSettingsInternal { - type Vtable = ITransportSettingsInternal_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITransportSettingsInternal { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5123e076_29e3_4bfd_84fe_0192d411e3e8); -} #[repr(C)] #[doc(hidden)] pub struct ITransportSettingsInternal_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/System/RemoteAssistance/impl.rs b/crates/libs/windows/src/Windows/Win32/System/RemoteAssistance/impl.rs index d8ded2ef03..c6533c1f84 100644 --- a/crates/libs/windows/src/Windows/Win32/System/RemoteAssistance/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/RemoteAssistance/impl.rs @@ -9,7 +9,7 @@ impl DRendezvousSessionEvents_Vtbl { Self { base__: super::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IRendezvousApplication_Impl: Sized { @@ -26,7 +26,7 @@ impl IRendezvousApplication_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), SetRendezvousSession: SetRendezvousSession:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRendezvousSession_Impl: Sized { @@ -92,6 +92,6 @@ impl IRendezvousSession_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 b957054eff..30a4152687 100644 --- a/crates/libs/windows/src/Windows/Win32/System/RemoteAssistance/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/RemoteAssistance/mod.rs @@ -1,29 +1,22 @@ -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct DRendezvousSessionEvents(::windows_core::IUnknown); -#[cfg(feature = "Win32_System_Com")] -impl DRendezvousSessionEvents {} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + DRendezvousSessionEvents, + DRendezvousSessionEvents_Vtbl, + 0x3fa19cf8_64c4_4f53_ae60_635b3806eca6 +); #[cfg(feature = "Win32_System_Com")] ::windows_core::imp::interface_hierarchy!(DRendezvousSessionEvents, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for DRendezvousSessionEvents { - type Vtable = DRendezvousSessionEvents_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for DRendezvousSessionEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3fa19cf8_64c4_4f53_ae60_635b3806eca6); -} +impl DRendezvousSessionEvents {} #[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct DRendezvousSessionEvents_Vtbl { pub base__: super::Com::IDispatch_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRendezvousApplication(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRendezvousApplication, IRendezvousApplication_Vtbl, 0x4f4d070b_a275_49fb_b10d_8ec26387b50d); +::windows_core::imp::interface_hierarchy!(IRendezvousApplication, ::windows_core::IUnknown); impl IRendezvousApplication { pub unsafe fn SetRendezvousSession(&self, prendezvoussession: P0) -> ::windows_core::Result<()> where @@ -32,22 +25,14 @@ impl IRendezvousApplication { (::windows_core::Interface::vtable(self).SetRendezvousSession)(::windows_core::Interface::as_raw(self), prendezvoussession.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IRendezvousApplication, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRendezvousApplication { - type Vtable = IRendezvousApplication_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRendezvousApplication { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4f4d070b_a275_49fb_b10d_8ec26387b50d); -} #[repr(C)] #[doc(hidden)] pub struct IRendezvousApplication_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub SetRendezvousSession: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prendezvoussession: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRendezvousSession(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRendezvousSession, IRendezvousSession_Vtbl, 0x9ba4b1dd_8b0c_48b7_9e7c_2f25857c8df5); +::windows_core::imp::interface_hierarchy!(IRendezvousSession, ::windows_core::IUnknown); impl IRendezvousSession { pub unsafe fn State(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -74,13 +59,6 @@ impl IRendezvousSession { (::windows_core::Interface::vtable(self).Terminate)(::windows_core::Interface::as_raw(self), hr, bstrappdata.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IRendezvousSession, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRendezvousSession { - type Vtable = IRendezvousSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRendezvousSession { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9ba4b1dd_8b0c_48b7_9e7c_2f25857c8df5); -} #[repr(C)] #[doc(hidden)] pub struct IRendezvousSession_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/System/RemoteDesktop/impl.rs b/crates/libs/windows/src/Windows/Win32/System/RemoteDesktop/impl.rs index eca6e48ca6..a5279ae1a2 100644 --- a/crates/libs/windows/src/Windows/Win32/System/RemoteDesktop/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/RemoteDesktop/impl.rs @@ -312,7 +312,7 @@ impl IADsTSUserEx_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IAudioDeviceEndpoint_Impl: Sized { @@ -365,7 +365,7 @@ impl IAudioDeviceEndpoint_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Media_Audio\"`"] @@ -435,7 +435,7 @@ impl IAudioEndpoint_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAudioEndpointControl_Impl: Sized { @@ -469,7 +469,7 @@ impl IAudioEndpointControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAudioEndpointRT_Impl: Sized { @@ -510,7 +510,7 @@ impl IAudioEndpointRT_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Media_Audio_Apo\"`"] @@ -548,7 +548,7 @@ impl IAudioInputEndpointRT_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Media_Audio_Apo\"`"] @@ -586,7 +586,7 @@ impl IAudioOutputEndpointRT_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -691,7 +691,7 @@ impl IRemoteDesktopClient_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -742,7 +742,7 @@ impl IRemoteDesktopClientActions_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -799,7 +799,7 @@ impl IRemoteDesktopClientSettings_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -876,7 +876,7 @@ impl IRemoteDesktopClientTouchPointer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IRemoteSystemAdditionalInfoProvider_Impl: Sized { @@ -893,7 +893,7 @@ impl IRemoteSystemAdditionalInfoProvider_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetAdditionalInfo: GetAdditionalInfo:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITSGAccountingEngine_Impl: Sized { @@ -910,7 +910,7 @@ impl ITSGAccountingEngine_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), DoAccounting: DoAccounting:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITSGAuthenticateUserSink_Impl: Sized { @@ -951,7 +951,7 @@ impl ITSGAuthenticateUserSink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITSGAuthenticationEngine_Impl: Sized { @@ -978,7 +978,7 @@ impl ITSGAuthenticationEngine_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITSGAuthorizeConnectionSink_Impl: Sized { @@ -995,7 +995,7 @@ impl ITSGAuthorizeConnectionSink_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnConnectionAuthorized: OnConnectionAuthorized:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITSGAuthorizeResourceSink_Impl: Sized { @@ -1012,7 +1012,7 @@ impl ITSGAuthorizeResourceSink_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnChannelAuthorized: OnChannelAuthorized:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITSGPolicyEngine_Impl: Sized { @@ -1074,7 +1074,7 @@ impl ITSGPolicyEngine_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITsSbBaseNotifySink_Impl: Sized { @@ -1101,7 +1101,7 @@ impl ITsSbBaseNotifySink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1301,7 +1301,7 @@ impl ITsSbClientConnection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1315,7 +1315,7 @@ impl ITsSbClientConnectionPropertySet_Vtbl { Self { base__: ITsSbPropertySet_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`"] @@ -1378,7 +1378,7 @@ impl ITsSbEnvironment_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1392,7 +1392,7 @@ impl ITsSbEnvironmentPropertySet_Vtbl { Self { base__: ITsSbPropertySet_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`"] @@ -1436,7 +1436,7 @@ impl ITsSbFilterPluginStore_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITsSbGenericNotifySink_Impl: Sized { @@ -1469,7 +1469,7 @@ impl ITsSbGenericNotifySink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1547,7 +1547,7 @@ impl ITsSbGlobalStore_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITsSbLoadBalanceResult_Impl: Sized { @@ -1570,7 +1570,7 @@ impl ITsSbLoadBalanceResult_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), TargetName: TargetName:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`"] @@ -1591,7 +1591,7 @@ impl ITsSbLoadBalancing_Vtbl { Self { base__: ITsSbPlugin_Vtbl::new::(), GetMostSuitableTarget: GetMostSuitableTarget:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ITsSbLoadBalancingNotifySink_Impl: Sized + ITsSbBaseNotifySink_Impl { @@ -1608,7 +1608,7 @@ impl ITsSbLoadBalancingNotifySink_Vtbl { Self { base__: ITsSbBaseNotifySink_Vtbl::new::(), OnGetMostSuitableTarget: OnGetMostSuitableTarget:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`"] @@ -1629,7 +1629,7 @@ impl ITsSbOrchestration_Vtbl { Self { base__: ITsSbPlugin_Vtbl::new::(), PrepareTargetForConnect: PrepareTargetForConnect:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ITsSbOrchestrationNotifySink_Impl: Sized + ITsSbBaseNotifySink_Impl { @@ -1646,7 +1646,7 @@ impl ITsSbOrchestrationNotifySink_Vtbl { Self { base__: ITsSbBaseNotifySink_Vtbl::new::(), OnReadyToConnect: OnReadyToConnect:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`"] @@ -1667,7 +1667,7 @@ impl ITsSbPlacement_Vtbl { Self { base__: ITsSbPlugin_Vtbl::new::(), QueryEnvironmentForTarget: QueryEnvironmentForTarget:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ITsSbPlacementNotifySink_Impl: Sized + ITsSbBaseNotifySink_Impl { @@ -1687,7 +1687,7 @@ impl ITsSbPlacementNotifySink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`"] @@ -1718,7 +1718,7 @@ impl ITsSbPlugin_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITsSbPluginNotifySink_Impl: Sized + ITsSbBaseNotifySink_Impl { @@ -1745,7 +1745,7 @@ impl ITsSbPluginNotifySink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1759,7 +1759,7 @@ impl ITsSbPluginPropertySet_Vtbl { Self { base__: ITsSbPropertySet_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1773,7 +1773,7 @@ impl ITsSbPropertySet_Vtbl { Self { base__: super::Com::StructuredStorage::IPropertyBag_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`"] @@ -1934,7 +1934,7 @@ impl ITsSbProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`"] @@ -1979,7 +1979,7 @@ impl ITsSbProvisioning_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ITsSbProvisioningPluginNotifySink_Impl: Sized { @@ -2034,7 +2034,7 @@ impl ITsSbProvisioningPluginNotifySink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITsSbResourceNotification_Impl: Sized { @@ -2068,7 +2068,7 @@ impl ITsSbResourceNotification_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITsSbResourceNotificationEx_Impl: Sized { @@ -2102,7 +2102,7 @@ impl ITsSbResourceNotificationEx_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`"] @@ -2116,7 +2116,7 @@ impl ITsSbResourcePlugin_Vtbl { Self { base__: ITsSbPlugin_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2371,7 +2371,7 @@ impl ITsSbResourcePluginStore_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITsSbServiceNotification_Impl: Sized { @@ -2398,7 +2398,7 @@ impl ITsSbServiceNotification_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITsSbSession_Impl: Sized { @@ -2590,7 +2590,7 @@ impl ITsSbSession_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`"] @@ -2800,7 +2800,7 @@ impl ITsSbTarget_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2814,7 +2814,7 @@ impl ITsSbTargetPropertySet_Vtbl { Self { base__: ITsSbPropertySet_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2948,7 +2948,7 @@ impl ITsSbTaskInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`"] @@ -2979,7 +2979,7 @@ impl ITsSbTaskPlugin_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3024,7 +3024,7 @@ impl ITsSbTaskPluginNotifySink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IWRdsEnhancedFastReconnectArbitrator_Impl: Sized { @@ -3050,7 +3050,7 @@ impl IWRdsEnhancedFastReconnectArbitrator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWRdsGraphicsChannel_Impl: Sized { @@ -3084,7 +3084,7 @@ impl IWRdsGraphicsChannel_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWRdsGraphicsChannelEvents_Impl: Sized { @@ -3132,7 +3132,7 @@ impl IWRdsGraphicsChannelEvents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWRdsGraphicsChannelManager_Impl: Sized { @@ -3155,7 +3155,7 @@ impl IWRdsGraphicsChannelManager_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CreateChannel: CreateChannel:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWRdsProtocolConnection_Impl: Sized { @@ -3372,7 +3372,7 @@ impl IWRdsProtocolConnection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWRdsProtocolConnectionCallback_Impl: Sized { @@ -3426,7 +3426,7 @@ impl IWRdsProtocolConnectionCallback_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWRdsProtocolConnectionSettings_Impl: Sized { @@ -3453,7 +3453,7 @@ impl IWRdsProtocolConnectionSettings_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWRdsProtocolLicenseConnection_Impl: Sized { @@ -3494,7 +3494,7 @@ impl IWRdsProtocolLicenseConnection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWRdsProtocolListener_Impl: Sized { @@ -3534,7 +3534,7 @@ impl IWRdsProtocolListener_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWRdsProtocolListenerCallback_Impl: Sized { @@ -3557,7 +3557,7 @@ impl IWRdsProtocolListenerCallback_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnConnected: OnConnected:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWRdsProtocolLogonErrorRedirector_Impl: Sized { @@ -3616,7 +3616,7 @@ impl IWRdsProtocolLogonErrorRedirector_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWRdsProtocolManager_Impl: Sized { @@ -3691,7 +3691,7 @@ impl IWRdsProtocolManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWRdsProtocolSettings_Impl: Sized { @@ -3718,7 +3718,7 @@ impl IWRdsProtocolSettings_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWRdsProtocolShadowCallback_Impl: Sized { @@ -3746,7 +3746,7 @@ impl IWRdsProtocolShadowCallback_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWRdsProtocolShadowConnection_Impl: Sized { @@ -3780,7 +3780,7 @@ impl IWRdsProtocolShadowConnection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWRdsWddmIddProps_Impl: Sized { @@ -3821,7 +3821,7 @@ impl IWRdsWddmIddProps_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWTSBitmapRenderService_Impl: Sized { @@ -3844,7 +3844,7 @@ impl IWTSBitmapRenderService_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetMappedRenderer: GetMappedRenderer:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWTSBitmapRenderer_Impl: Sized { @@ -3884,7 +3884,7 @@ impl IWTSBitmapRenderer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWTSBitmapRendererCallback_Impl: Sized { @@ -3901,7 +3901,7 @@ impl IWTSBitmapRendererCallback_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnTargetSizeChanged: OnTargetSizeChanged:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`"] @@ -3928,7 +3928,7 @@ impl IWTSListener_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetConfiguration: GetConfiguration:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWTSListenerCallback_Impl: Sized { @@ -3945,7 +3945,7 @@ impl IWTSListenerCallback_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnNewChannelConnection: OnNewChannelConnection:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWTSPlugin_Impl: Sized { @@ -3986,7 +3986,7 @@ impl IWTSPlugin_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWTSPluginServiceProvider_Impl: Sized { @@ -4009,7 +4009,7 @@ impl IWTSPluginServiceProvider_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetService: GetService:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWTSProtocolConnection_Impl: Sized { @@ -4213,7 +4213,7 @@ impl IWTSProtocolConnection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWTSProtocolConnectionCallback_Impl: Sized { @@ -4261,7 +4261,7 @@ impl IWTSProtocolConnectionCallback_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWTSProtocolLicenseConnection_Impl: Sized { @@ -4302,7 +4302,7 @@ impl IWTSProtocolLicenseConnection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWTSProtocolListener_Impl: Sized { @@ -4329,7 +4329,7 @@ impl IWTSProtocolListener_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWTSProtocolListenerCallback_Impl: Sized { @@ -4352,7 +4352,7 @@ impl IWTSProtocolListenerCallback_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnConnected: OnConnected:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWTSProtocolLogonErrorRedirector_Impl: Sized { @@ -4411,7 +4411,7 @@ impl IWTSProtocolLogonErrorRedirector_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWTSProtocolManager_Impl: Sized { @@ -4465,7 +4465,7 @@ impl IWTSProtocolManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWTSProtocolShadowCallback_Impl: Sized { @@ -4493,7 +4493,7 @@ impl IWTSProtocolShadowCallback_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWTSProtocolShadowConnection_Impl: Sized { @@ -4527,7 +4527,7 @@ impl IWTSProtocolShadowConnection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWTSSBPlugin_Impl: Sized { @@ -4588,7 +4588,7 @@ impl IWTSSBPlugin_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWTSVirtualChannel_Impl: Sized { @@ -4611,7 +4611,7 @@ impl IWTSVirtualChannel_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Write: Write::, Close: Close:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWTSVirtualChannelCallback_Impl: Sized { @@ -4638,7 +4638,7 @@ impl IWTSVirtualChannelCallback_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWTSVirtualChannelManager_Impl: Sized { @@ -4661,7 +4661,7 @@ impl IWTSVirtualChannelManager_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CreateListener: CreateListener:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -4711,7 +4711,7 @@ impl IWorkspace_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -4732,7 +4732,7 @@ impl IWorkspace2_Vtbl { Self { base__: IWorkspace_Vtbl::new::(), StartRemoteApplicationEx: StartRemoteApplicationEx:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -4769,7 +4769,7 @@ impl IWorkspace3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IWorkspaceClientExt_Impl: Sized { @@ -4815,7 +4815,7 @@ impl IWorkspaceClientExt_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWorkspaceRegistration_Impl: Sized { @@ -4848,7 +4848,7 @@ impl IWorkspaceRegistration_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWorkspaceRegistration2_Impl: Sized + IWorkspaceRegistration_Impl { @@ -4875,7 +4875,7 @@ impl IWorkspaceRegistration2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IWorkspaceReportMessage_Impl: Sized { @@ -4915,7 +4915,7 @@ impl IWorkspaceReportMessage_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4979,7 +4979,7 @@ impl IWorkspaceResTypeRegistry_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5057,7 +5057,7 @@ impl IWorkspaceScriptable_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5088,7 +5088,7 @@ impl IWorkspaceScriptable2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5123,7 +5123,7 @@ impl IWorkspaceScriptable3_Vtbl { Self { base__: IWorkspaceScriptable2_Vtbl::new::(), StartWorkspaceEx2: StartWorkspaceEx2:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ItsPubPlugin_Impl: Sized { @@ -5196,7 +5196,7 @@ impl ItsPubPlugin_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ItsPubPlugin2_Impl: Sized + ItsPubPlugin_Impl { @@ -5237,7 +5237,7 @@ impl ItsPubPlugin2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5251,6 +5251,6 @@ impl _ITSWkspEvents_Vtbl { Self { base__: super::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &<_ITSWkspEvents as ::windows_core::ComInterface>::IID || iid == &::IID + iid == &<_ITSWkspEvents as ::windows_core::Interface>::IID || iid == &::IID } } 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 80d744a76d..1d5d59f58d 100644 --- a/crates/libs/windows/src/Windows/Win32/System/RemoteDesktop/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/RemoteDesktop/mod.rs @@ -531,11 +531,15 @@ where ::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() } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IADsTSUserEx(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IADsTSUserEx, + IADsTSUserEx_Vtbl, + 0xc4930e79_2989_4462_8a60_2fcf2f2955ef +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IADsTSUserEx, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IADsTSUserEx { pub unsafe fn TerminalServicesProfilePath(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -660,16 +664,6 @@ impl IADsTSUserEx { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IADsTSUserEx, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IADsTSUserEx { - type Vtable = IADsTSUserEx_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IADsTSUserEx { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc4930e79_2989_4462_8a60_2fcf2f2955ef); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IADsTSUserEx_Vtbl { @@ -705,9 +699,8 @@ pub struct IADsTSUserEx_Vtbl { pub TerminalServicesInitialProgram: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SetTerminalServicesInitialProgram: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pnewval: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioDeviceEndpoint(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioDeviceEndpoint, IAudioDeviceEndpoint_Vtbl, 0xd4952f5a_a0b2_4cc4_8b82_9358488dd8ac); +::windows_core::imp::interface_hierarchy!(IAudioDeviceEndpoint, ::windows_core::IUnknown); impl IAudioDeviceEndpoint { pub unsafe fn SetBuffer(&self, maxperiod: i64, u32latencycoefficient: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetBuffer)(::windows_core::Interface::as_raw(self), maxperiod, u32latencycoefficient).ok() @@ -724,13 +717,6 @@ impl IAudioDeviceEndpoint { (::windows_core::Interface::vtable(self).WriteExclusiveModeParametersToSharedMemory)(::windows_core::Interface::as_raw(self), htargetprocess, hnsperiod, hnsbufferduration, u32latencycoefficient, pu32sharedmemorysize, phsharedmemory).ok() } } -::windows_core::imp::interface_hierarchy!(IAudioDeviceEndpoint, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioDeviceEndpoint { - type Vtable = IAudioDeviceEndpoint_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioDeviceEndpoint { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd4952f5a_a0b2_4cc4_8b82_9358488dd8ac); -} #[repr(C)] #[doc(hidden)] pub struct IAudioDeviceEndpoint_Vtbl { @@ -740,9 +726,8 @@ pub struct IAudioDeviceEndpoint_Vtbl { pub GetEventDrivenCapable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbiseventcapable: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub WriteExclusiveModeParametersToSharedMemory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, htargetprocess: usize, hnsperiod: i64, hnsbufferduration: i64, u32latencycoefficient: u32, pu32sharedmemorysize: *mut u32, phsharedmemory: *mut usize) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioEndpoint(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioEndpoint, IAudioEndpoint_Vtbl, 0x30a99515_1527_4451_af9f_00c5f0234daf); +::windows_core::imp::interface_hierarchy!(IAudioEndpoint, ::windows_core::IUnknown); impl IAudioEndpoint { #[doc = "Required features: `\"Win32_Media_Audio\"`"] #[cfg(feature = "Win32_Media_Audio")] @@ -768,13 +753,6 @@ impl IAudioEndpoint { (::windows_core::Interface::vtable(self).SetEventHandle)(::windows_core::Interface::as_raw(self), eventhandle.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IAudioEndpoint, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioEndpoint { - type Vtable = IAudioEndpoint_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioEndpoint { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x30a99515_1527_4451_af9f_00c5f0234daf); -} #[repr(C)] #[doc(hidden)] pub struct IAudioEndpoint_Vtbl { @@ -788,9 +766,8 @@ pub struct IAudioEndpoint_Vtbl { pub SetStreamFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, streamflags: u32) -> ::windows_core::HRESULT, pub SetEventHandle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventhandle: super::super::Foundation::HANDLE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioEndpointControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioEndpointControl, IAudioEndpointControl_Vtbl, 0xc684b72a_6df4_4774_bdf9_76b77509b653); +::windows_core::imp::interface_hierarchy!(IAudioEndpointControl, ::windows_core::IUnknown); impl IAudioEndpointControl { pub unsafe fn Start(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Start)(::windows_core::Interface::as_raw(self)).ok() @@ -802,13 +779,6 @@ impl IAudioEndpointControl { (::windows_core::Interface::vtable(self).Stop)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IAudioEndpointControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioEndpointControl { - type Vtable = IAudioEndpointControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioEndpointControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc684b72a_6df4_4774_bdf9_76b77509b653); -} #[repr(C)] #[doc(hidden)] pub struct IAudioEndpointControl_Vtbl { @@ -817,9 +787,8 @@ pub struct IAudioEndpointControl_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Stop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioEndpointRT(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioEndpointRT, IAudioEndpointRT_Vtbl, 0xdfd2005f_a6e5_4d39_a265_939ada9fbb4d); +::windows_core::imp::interface_hierarchy!(IAudioEndpointRT, ::windows_core::IUnknown); impl IAudioEndpointRT { pub unsafe fn GetCurrentPadding(&self, ppadding: *mut i64, paecurrentposition: *mut AE_CURRENT_POSITION) { (::windows_core::Interface::vtable(self).GetCurrentPadding)(::windows_core::Interface::as_raw(self), ppadding, paecurrentposition) @@ -834,13 +803,6 @@ impl IAudioEndpointRT { (::windows_core::Interface::vtable(self).SetPinActive)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IAudioEndpointRT, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioEndpointRT { - type Vtable = IAudioEndpointRT_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioEndpointRT { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdfd2005f_a6e5_4d39_a265_939ada9fbb4d); -} #[repr(C)] #[doc(hidden)] pub struct IAudioEndpointRT_Vtbl { @@ -850,9 +812,8 @@ pub struct IAudioEndpointRT_Vtbl { pub SetPinInactive: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetPinActive: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioInputEndpointRT(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioInputEndpointRT, IAudioInputEndpointRT_Vtbl, 0x8026ab61_92b2_43c1_a1df_5c37ebd08d82); +::windows_core::imp::interface_hierarchy!(IAudioInputEndpointRT, ::windows_core::IUnknown); impl IAudioInputEndpointRT { #[doc = "Required features: `\"Win32_Media_Audio_Apo\"`"] #[cfg(feature = "Win32_Media_Audio_Apo")] @@ -866,13 +827,6 @@ impl IAudioInputEndpointRT { (::windows_core::Interface::vtable(self).PulseEndpoint)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(IAudioInputEndpointRT, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioInputEndpointRT { - type Vtable = IAudioInputEndpointRT_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioInputEndpointRT { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8026ab61_92b2_43c1_a1df_5c37ebd08d82); -} #[repr(C)] #[doc(hidden)] pub struct IAudioInputEndpointRT_Vtbl { @@ -884,9 +838,8 @@ pub struct IAudioInputEndpointRT_Vtbl { pub ReleaseInputDataPointer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, u32framecount: u32, pdatapointer: usize), pub PulseEndpoint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioOutputEndpointRT(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioOutputEndpointRT, IAudioOutputEndpointRT_Vtbl, 0x8fa906e4_c31c_4e31_932e_19a66385e9aa); +::windows_core::imp::interface_hierarchy!(IAudioOutputEndpointRT, ::windows_core::IUnknown); impl IAudioOutputEndpointRT { pub unsafe fn GetOutputDataPointer(&self, u32framecount: u32, paetimestamp: *const AE_CURRENT_POSITION) -> usize { (::windows_core::Interface::vtable(self).GetOutputDataPointer)(::windows_core::Interface::as_raw(self), u32framecount, paetimestamp) @@ -900,13 +853,6 @@ impl IAudioOutputEndpointRT { (::windows_core::Interface::vtable(self).PulseEndpoint)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(IAudioOutputEndpointRT, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioOutputEndpointRT { - type Vtable = IAudioOutputEndpointRT_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioOutputEndpointRT { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8fa906e4_c31c_4e31_932e_19a66385e9aa); -} #[repr(C)] #[doc(hidden)] pub struct IAudioOutputEndpointRT_Vtbl { @@ -918,11 +864,15 @@ pub struct IAudioOutputEndpointRT_Vtbl { ReleaseOutputDataPointer: usize, pub PulseEndpoint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteDesktopClient(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IRemoteDesktopClient, + IRemoteDesktopClient_Vtbl, + 0x57d25668_625a_4905_be4e_304caa13f89c +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IRemoteDesktopClient, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IRemoteDesktopClient { pub unsafe fn Connect(&self) -> ::windows_core::Result<()> { @@ -981,16 +931,6 @@ impl IRemoteDesktopClient { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IRemoteDesktopClient, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IRemoteDesktopClient { - type Vtable = IRemoteDesktopClient_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IRemoteDesktopClient { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x57d25668_625a_4905_be4e_304caa13f89c); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IRemoteDesktopClient_Vtbl { @@ -1021,11 +961,15 @@ pub struct IRemoteDesktopClient_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] detachEvent: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteDesktopClientActions(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IRemoteDesktopClientActions, + IRemoteDesktopClientActions_Vtbl, + 0x7d54bc4e_1028_45d4_8b0a_b9b6bffba176 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IRemoteDesktopClientActions, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IRemoteDesktopClientActions { pub unsafe fn SuspendScreenUpdates(&self) -> ::windows_core::Result<()> { @@ -1043,16 +987,6 @@ impl IRemoteDesktopClientActions { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IRemoteDesktopClientActions, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IRemoteDesktopClientActions { - type Vtable = IRemoteDesktopClientActions_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IRemoteDesktopClientActions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7d54bc4e_1028_45d4_8b0a_b9b6bffba176); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IRemoteDesktopClientActions_Vtbl { @@ -1062,11 +996,15 @@ pub struct IRemoteDesktopClientActions_Vtbl { pub ExecuteRemoteAction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, remoteaction: RemoteActionType) -> ::windows_core::HRESULT, pub GetSnapshot: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, snapshotencoding: SnapshotEncodingType, snapshotformat: SnapshotFormatType, snapshotwidth: u32, snapshotheight: u32, snapshotdata: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteDesktopClientSettings(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IRemoteDesktopClientSettings, + IRemoteDesktopClientSettings_Vtbl, + 0x48a0f2a7_2713_431f_bbac_6f4558e7d64d +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IRemoteDesktopClientSettings, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IRemoteDesktopClientSettings { pub unsafe fn ApplySettings(&self, rdpfilecontents: P0) -> ::windows_core::Result<()> @@ -1098,16 +1036,6 @@ impl IRemoteDesktopClientSettings { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IRemoteDesktopClientSettings, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IRemoteDesktopClientSettings { - type Vtable = IRemoteDesktopClientSettings_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IRemoteDesktopClientSettings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x48a0f2a7_2713_431f_bbac_6f4558e7d64d); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IRemoteDesktopClientSettings_Vtbl { @@ -1123,11 +1051,15 @@ pub struct IRemoteDesktopClientSettings_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] SetRdpProperty: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteDesktopClientTouchPointer(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IRemoteDesktopClientTouchPointer, + IRemoteDesktopClientTouchPointer_Vtbl, + 0x260ec22d_8cbc_44b5_9e88_2a37f6c93ae9 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IRemoteDesktopClientTouchPointer, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IRemoteDesktopClientTouchPointer { pub unsafe fn SetEnabled(&self, enabled: P0) -> ::windows_core::Result<()> @@ -1159,16 +1091,6 @@ impl IRemoteDesktopClientTouchPointer { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IRemoteDesktopClientTouchPointer, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IRemoteDesktopClientTouchPointer { - type Vtable = IRemoteDesktopClientTouchPointer_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IRemoteDesktopClientTouchPointer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x260ec22d_8cbc_44b5_9e88_2a37f6c93ae9); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IRemoteDesktopClientTouchPointer_Vtbl { @@ -1180,55 +1102,38 @@ pub struct IRemoteDesktopClientTouchPointer_Vtbl { pub SetPointerSpeed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pointerspeed: u32) -> ::windows_core::HRESULT, pub PointerSpeed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pointerspeed: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteSystemAdditionalInfoProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRemoteSystemAdditionalInfoProvider, IRemoteSystemAdditionalInfoProvider_Vtbl, 0xeeaa3d5f_ec63_4d27_af38_e86b1d7292cb); +::windows_core::imp::interface_hierarchy!(IRemoteSystemAdditionalInfoProvider, ::windows_core::IUnknown); impl IRemoteSystemAdditionalInfoProvider { pub unsafe fn GetAdditionalInfo(&self, deduplicationid: *mut ::windows_core::HSTRING) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetAdditionalInfo)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(deduplicationid), &T::IID, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IRemoteSystemAdditionalInfoProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteSystemAdditionalInfoProvider { - type Vtable = IRemoteSystemAdditionalInfoProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteSystemAdditionalInfoProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeeaa3d5f_ec63_4d27_af38_e86b1d7292cb); -} #[repr(C)] #[doc(hidden)] pub struct IRemoteSystemAdditionalInfoProvider_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetAdditionalInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, deduplicationid: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>, riid: *const ::windows_core::GUID, mapview: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITSGAccountingEngine(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITSGAccountingEngine, ITSGAccountingEngine_Vtbl, 0x4ce2a0c9_e874_4f1a_86f4_06bbb9115338); +::windows_core::imp::interface_hierarchy!(ITSGAccountingEngine, ::windows_core::IUnknown); impl ITSGAccountingEngine { pub unsafe fn DoAccounting(&self, accountingdatatype: AAAccountingDataType, accountingdata: AAAccountingData) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).DoAccounting)(::windows_core::Interface::as_raw(self), accountingdatatype, ::core::mem::transmute(accountingdata)).ok() } } -::windows_core::imp::interface_hierarchy!(ITSGAccountingEngine, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITSGAccountingEngine { - type Vtable = ITSGAccountingEngine_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITSGAccountingEngine { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4ce2a0c9_e874_4f1a_86f4_06bbb9115338); -} #[repr(C)] #[doc(hidden)] pub struct ITSGAccountingEngine_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub DoAccounting: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, accountingdatatype: AAAccountingDataType, accountingdata: AAAccountingData) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITSGAuthenticateUserSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITSGAuthenticateUserSink, ITSGAuthenticateUserSink_Vtbl, 0x2c3e2e73_a782_47f9_8dfb_77ee1ed27a03); +::windows_core::imp::interface_hierarchy!(ITSGAuthenticateUserSink, ::windows_core::IUnknown); impl ITSGAuthenticateUserSink { pub unsafe fn OnUserAuthenticated(&self, username: P0, userdomain: P1, context: usize, usertoken: P2) -> ::windows_core::Result<()> where @@ -1248,13 +1153,6 @@ impl ITSGAuthenticateUserSink { (::windows_core::Interface::vtable(self).DisconnectUser)(::windows_core::Interface::as_raw(self), context).ok() } } -::windows_core::imp::interface_hierarchy!(ITSGAuthenticateUserSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITSGAuthenticateUserSink { - type Vtable = ITSGAuthenticateUserSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITSGAuthenticateUserSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2c3e2e73_a782_47f9_8dfb_77ee1ed27a03); -} #[repr(C)] #[doc(hidden)] pub struct ITSGAuthenticateUserSink_Vtbl { @@ -1264,9 +1162,8 @@ pub struct ITSGAuthenticateUserSink_Vtbl { pub ReauthenticateUser: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: usize) -> ::windows_core::HRESULT, pub DisconnectUser: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: usize) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITSGAuthenticationEngine(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITSGAuthenticationEngine, ITSGAuthenticationEngine_Vtbl, 0x9ee3e5bf_04ab_4691_998c_d7f622321a56); +::windows_core::imp::interface_hierarchy!(ITSGAuthenticationEngine, ::windows_core::IUnknown); impl ITSGAuthenticationEngine { pub unsafe fn AuthenticateUser(&self, mainsessionid: ::windows_core::GUID, cookiedata: *const u8, numcookiebytes: u32, context: usize, psink: P0) -> ::windows_core::Result<()> where @@ -1278,13 +1175,6 @@ impl ITSGAuthenticationEngine { (::windows_core::Interface::vtable(self).CancelAuthentication)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(mainsessionid), context).ok() } } -::windows_core::imp::interface_hierarchy!(ITSGAuthenticationEngine, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITSGAuthenticationEngine { - type Vtable = ITSGAuthenticationEngine_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITSGAuthenticationEngine { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9ee3e5bf_04ab_4691_998c_d7f622321a56); -} #[repr(C)] #[doc(hidden)] pub struct ITSGAuthenticationEngine_Vtbl { @@ -1292,51 +1182,34 @@ pub struct ITSGAuthenticationEngine_Vtbl { pub AuthenticateUser: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mainsessionid: ::windows_core::GUID, cookiedata: *const u8, numcookiebytes: u32, context: usize, psink: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CancelAuthentication: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mainsessionid: ::windows_core::GUID, context: usize) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITSGAuthorizeConnectionSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITSGAuthorizeConnectionSink, ITSGAuthorizeConnectionSink_Vtbl, 0xc27ece33_7781_4318_98ef_1cf2da7b7005); +::windows_core::imp::interface_hierarchy!(ITSGAuthorizeConnectionSink, ::windows_core::IUnknown); impl ITSGAuthorizeConnectionSink { pub unsafe fn OnConnectionAuthorized(&self, hrin: ::windows_core::HRESULT, mainsessionid: ::windows_core::GUID, pbsohresponse: &[u8], idletimeout: u32, sessiontimeout: u32, sessiontimeoutaction: SESSION_TIMEOUT_ACTION_TYPE, trustclass: AATrustClassID, policyattributes: *const u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnConnectionAuthorized)(::windows_core::Interface::as_raw(self), hrin, ::core::mem::transmute(mainsessionid), pbsohresponse.len().try_into().unwrap(), ::core::mem::transmute(pbsohresponse.as_ptr()), idletimeout, sessiontimeout, sessiontimeoutaction, trustclass, policyattributes).ok() } } -::windows_core::imp::interface_hierarchy!(ITSGAuthorizeConnectionSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITSGAuthorizeConnectionSink { - type Vtable = ITSGAuthorizeConnectionSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITSGAuthorizeConnectionSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc27ece33_7781_4318_98ef_1cf2da7b7005); -} #[repr(C)] #[doc(hidden)] pub struct ITSGAuthorizeConnectionSink_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnConnectionAuthorized: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hrin: ::windows_core::HRESULT, mainsessionid: ::windows_core::GUID, cbsohresponse: u32, pbsohresponse: *const u8, idletimeout: u32, sessiontimeout: u32, sessiontimeoutaction: SESSION_TIMEOUT_ACTION_TYPE, trustclass: AATrustClassID, policyattributes: *const u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITSGAuthorizeResourceSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITSGAuthorizeResourceSink, ITSGAuthorizeResourceSink_Vtbl, 0xfeddfcd4_fa12_4435_ae55_7ad1a9779af7); +::windows_core::imp::interface_hierarchy!(ITSGAuthorizeResourceSink, ::windows_core::IUnknown); impl ITSGAuthorizeResourceSink { pub unsafe fn OnChannelAuthorized(&self, hrin: ::windows_core::HRESULT, mainsessionid: ::windows_core::GUID, subsessionid: i32, allowedresourcenames: &[::windows_core::BSTR], failedresourcenames: &[::windows_core::BSTR]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnChannelAuthorized)(::windows_core::Interface::as_raw(self), hrin, ::core::mem::transmute(mainsessionid), subsessionid, ::core::mem::transmute(allowedresourcenames.as_ptr()), allowedresourcenames.len().try_into().unwrap(), ::core::mem::transmute(failedresourcenames.as_ptr()), failedresourcenames.len().try_into().unwrap()).ok() } } -::windows_core::imp::interface_hierarchy!(ITSGAuthorizeResourceSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITSGAuthorizeResourceSink { - type Vtable = ITSGAuthorizeResourceSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITSGAuthorizeResourceSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfeddfcd4_fa12_4435_ae55_7ad1a9779af7); -} #[repr(C)] #[doc(hidden)] pub struct ITSGAuthorizeResourceSink_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnChannelAuthorized: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hrin: ::windows_core::HRESULT, mainsessionid: ::windows_core::GUID, subsessionid: i32, allowedresourcenames: *const ::std::mem::MaybeUninit<::windows_core::BSTR>, numallowedresourcenames: u32, failedresourcenames: *const ::std::mem::MaybeUninit<::windows_core::BSTR>, numfailedresourcenames: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITSGPolicyEngine(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITSGPolicyEngine, ITSGPolicyEngine_Vtbl, 0x8bc24f08_6223_42f4_a5b4_8e37cd135bbd); +::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 @@ -1364,13 +1237,6 @@ impl ITSGPolicyEngine { (::windows_core::Interface::vtable(self).IsQuarantineEnabled)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITSGPolicyEngine, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITSGPolicyEngine { - type Vtable = ITSGPolicyEngine_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITSGPolicyEngine { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8bc24f08_6223_42f4_a5b4_8e37cd135bbd); -} #[repr(C)] #[doc(hidden)] pub struct ITSGPolicyEngine_Vtbl { @@ -1380,9 +1246,8 @@ pub struct ITSGPolicyEngine_Vtbl { pub Refresh: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub IsQuarantineEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, quarantineenabled: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITsSbBaseNotifySink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITsSbBaseNotifySink, ITsSbBaseNotifySink_Vtbl, 0x808a6537_1282_4989_9e09_f43938b71722); +::windows_core::imp::interface_hierarchy!(ITsSbBaseNotifySink, ::windows_core::IUnknown); impl ITsSbBaseNotifySink { pub unsafe fn OnError(&self, hrerror: ::windows_core::HRESULT) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnError)(::windows_core::Interface::as_raw(self), hrerror).ok() @@ -1391,13 +1256,6 @@ impl ITsSbBaseNotifySink { (::windows_core::Interface::vtable(self).OnReportStatus)(::windows_core::Interface::as_raw(self), messagetype, messageid).ok() } } -::windows_core::imp::interface_hierarchy!(ITsSbBaseNotifySink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITsSbBaseNotifySink { - type Vtable = ITsSbBaseNotifySink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITsSbBaseNotifySink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x808a6537_1282_4989_9e09_f43938b71722); -} #[repr(C)] #[doc(hidden)] pub struct ITsSbBaseNotifySink_Vtbl { @@ -1405,9 +1263,8 @@ pub struct ITsSbBaseNotifySink_Vtbl { pub OnError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hrerror: ::windows_core::HRESULT) -> ::windows_core::HRESULT, pub OnReportStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, messagetype: CLIENT_MESSAGE_TYPE, messageid: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITsSbClientConnection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITsSbClientConnection, ITsSbClientConnection_Vtbl, 0x18857499_ad61_4b1b_b7df_cbcd41fb8338); +::windows_core::imp::interface_hierarchy!(ITsSbClientConnection, ::windows_core::IUnknown); impl ITsSbClientConnection { pub unsafe fn UserName(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -1480,13 +1337,6 @@ impl ITsSbClientConnection { (::windows_core::Interface::vtable(self).GetDisconnectedSession)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITsSbClientConnection, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITsSbClientConnection { - type Vtable = ITsSbClientConnection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITsSbClientConnection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x18857499_ad61_4b1b_b7df_cbcd41fb8338); -} #[repr(C)] #[doc(hidden)] pub struct ITsSbClientConnection_Vtbl { @@ -1516,11 +1366,15 @@ pub struct ITsSbClientConnection_Vtbl { pub UserSidString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszusersidstring: *mut *mut i8) -> ::windows_core::HRESULT, pub GetDisconnectedSession: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppsession: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`"] #[cfg(feature = "Win32_System_Com_StructuredStorage")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITsSbClientConnectionPropertySet(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`"] + ITsSbClientConnectionPropertySet, + ITsSbClientConnectionPropertySet_Vtbl, + 0xe51995b0_46d6_11dd_aa21_cedc55d89593 +); +#[cfg(feature = "Win32_System_Com_StructuredStorage")] +::windows_core::imp::interface_hierarchy!(ITsSbClientConnectionPropertySet, ::windows_core::IUnknown, super::Com::StructuredStorage::IPropertyBag, ITsSbPropertySet); #[cfg(feature = "Win32_System_Com_StructuredStorage")] impl ITsSbClientConnectionPropertySet { #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1542,24 +1396,13 @@ impl ITsSbClientConnectionPropertySet { } } #[cfg(feature = "Win32_System_Com_StructuredStorage")] -::windows_core::imp::interface_hierarchy!(ITsSbClientConnectionPropertySet, ::windows_core::IUnknown, super::Com::StructuredStorage::IPropertyBag, ITsSbPropertySet); -#[cfg(feature = "Win32_System_Com_StructuredStorage")] -unsafe impl ::windows_core::Interface for ITsSbClientConnectionPropertySet { - type Vtable = ITsSbClientConnectionPropertySet_Vtbl; -} -#[cfg(feature = "Win32_System_Com_StructuredStorage")] -unsafe impl ::windows_core::ComInterface for ITsSbClientConnectionPropertySet { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe51995b0_46d6_11dd_aa21_cedc55d89593); -} -#[cfg(feature = "Win32_System_Com_StructuredStorage")] #[repr(C)] #[doc(hidden)] pub struct ITsSbClientConnectionPropertySet_Vtbl { pub base__: ITsSbPropertySet_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITsSbEnvironment(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITsSbEnvironment, ITsSbEnvironment_Vtbl, 0x8c87f7f7_bf51_4a5c_87bf_8e94fb6e2256); +::windows_core::imp::interface_hierarchy!(ITsSbEnvironment, ::windows_core::IUnknown); impl ITsSbEnvironment { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -1584,13 +1427,6 @@ impl ITsSbEnvironment { (::windows_core::Interface::vtable(self).SetEnvironmentPropertySet)(::windows_core::Interface::as_raw(self), pval.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ITsSbEnvironment, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITsSbEnvironment { - type Vtable = ITsSbEnvironment_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITsSbEnvironment { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8c87f7f7_bf51_4a5c_87bf_8e94fb6e2256); -} #[repr(C)] #[doc(hidden)] pub struct ITsSbEnvironment_Vtbl { @@ -1606,11 +1442,15 @@ pub struct ITsSbEnvironment_Vtbl { #[cfg(not(feature = "Win32_System_Com_StructuredStorage"))] SetEnvironmentPropertySet: usize, } -#[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`"] #[cfg(feature = "Win32_System_Com_StructuredStorage")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITsSbEnvironmentPropertySet(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`"] + ITsSbEnvironmentPropertySet, + ITsSbEnvironmentPropertySet_Vtbl, + 0xd0d1bf7e_7acf_11dd_a243_e51156d89593 +); +#[cfg(feature = "Win32_System_Com_StructuredStorage")] +::windows_core::imp::interface_hierarchy!(ITsSbEnvironmentPropertySet, ::windows_core::IUnknown, super::Com::StructuredStorage::IPropertyBag, ITsSbPropertySet); #[cfg(feature = "Win32_System_Com_StructuredStorage")] impl ITsSbEnvironmentPropertySet { #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1632,24 +1472,13 @@ impl ITsSbEnvironmentPropertySet { } } #[cfg(feature = "Win32_System_Com_StructuredStorage")] -::windows_core::imp::interface_hierarchy!(ITsSbEnvironmentPropertySet, ::windows_core::IUnknown, super::Com::StructuredStorage::IPropertyBag, ITsSbPropertySet); -#[cfg(feature = "Win32_System_Com_StructuredStorage")] -unsafe impl ::windows_core::Interface for ITsSbEnvironmentPropertySet { - type Vtable = ITsSbEnvironmentPropertySet_Vtbl; -} -#[cfg(feature = "Win32_System_Com_StructuredStorage")] -unsafe impl ::windows_core::ComInterface for ITsSbEnvironmentPropertySet { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd0d1bf7e_7acf_11dd_a243_e51156d89593); -} -#[cfg(feature = "Win32_System_Com_StructuredStorage")] #[repr(C)] #[doc(hidden)] pub struct ITsSbEnvironmentPropertySet_Vtbl { pub base__: ITsSbPropertySet_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITsSbFilterPluginStore(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITsSbFilterPluginStore, ITsSbFilterPluginStore_Vtbl, 0x85b44b0f_ed78_413f_9702_fa6d3b5ee755); +::windows_core::imp::interface_hierarchy!(ITsSbFilterPluginStore, ::windows_core::IUnknown); impl ITsSbFilterPluginStore { #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`"] #[cfg(feature = "Win32_System_Com_StructuredStorage")] @@ -1672,13 +1501,6 @@ impl ITsSbFilterPluginStore { (::windows_core::Interface::vtable(self).DeleteProperties)(::windows_core::Interface::as_raw(self), propertyname.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ITsSbFilterPluginStore, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITsSbFilterPluginStore { - type Vtable = ITsSbFilterPluginStore_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITsSbFilterPluginStore { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x85b44b0f_ed78_413f_9702_fa6d3b5ee755); -} #[repr(C)] #[doc(hidden)] pub struct ITsSbFilterPluginStore_Vtbl { @@ -1693,9 +1515,8 @@ pub struct ITsSbFilterPluginStore_Vtbl { EnumerateProperties: usize, pub DeleteProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertyname: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITsSbGenericNotifySink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITsSbGenericNotifySink, ITsSbGenericNotifySink_Vtbl, 0x4c4c8c4f_300b_46ad_9164_8468a7e7568c); +::windows_core::imp::interface_hierarchy!(ITsSbGenericNotifySink, ::windows_core::IUnknown); impl ITsSbGenericNotifySink { pub unsafe fn OnCompleted(&self, status: ::windows_core::HRESULT) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnCompleted)(::windows_core::Interface::as_raw(self), status).ok() @@ -1705,13 +1526,6 @@ impl ITsSbGenericNotifySink { (::windows_core::Interface::vtable(self).GetWaitTimeout)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITsSbGenericNotifySink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITsSbGenericNotifySink { - type Vtable = ITsSbGenericNotifySink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITsSbGenericNotifySink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4c4c8c4f_300b_46ad_9164_8468a7e7568c); -} #[repr(C)] #[doc(hidden)] pub struct ITsSbGenericNotifySink_Vtbl { @@ -1719,9 +1533,8 @@ pub struct ITsSbGenericNotifySink_Vtbl { pub OnCompleted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, status: ::windows_core::HRESULT) -> ::windows_core::HRESULT, pub GetWaitTimeout: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfttimeout: *mut super::super::Foundation::FILETIME) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITsSbGlobalStore(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITsSbGlobalStore, ITsSbGlobalStore_Vtbl, 0x9ab60f7b_bd72_4d9f_8a3a_a0ea5574e635); +::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 @@ -1783,13 +1596,6 @@ impl ITsSbGlobalStore { (::windows_core::Interface::vtable(self).GetFarmProperty)(::windows_core::Interface::as_raw(self), farmname.into_param().abi(), propertyname.into_param().abi(), pvarvalue).ok() } } -::windows_core::imp::interface_hierarchy!(ITsSbGlobalStore, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITsSbGlobalStore { - type Vtable = ITsSbGlobalStore_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITsSbGlobalStore { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9ab60f7b_bd72_4d9f_8a3a_a0ea5574e635); -} #[repr(C)] #[doc(hidden)] pub struct ITsSbGlobalStore_Vtbl { @@ -1808,31 +1614,22 @@ pub struct ITsSbGlobalStore_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] GetFarmProperty: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITsSbLoadBalanceResult(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITsSbLoadBalanceResult, ITsSbLoadBalanceResult_Vtbl, 0x24fdb7ac_fea6_11dc_9672_9a8956d89593); +::windows_core::imp::interface_hierarchy!(ITsSbLoadBalanceResult, ::windows_core::IUnknown); impl ITsSbLoadBalanceResult { pub unsafe fn TargetName(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).TargetName)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITsSbLoadBalanceResult, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITsSbLoadBalanceResult { - type Vtable = ITsSbLoadBalanceResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITsSbLoadBalanceResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x24fdb7ac_fea6_11dc_9672_9a8956d89593); -} #[repr(C)] #[doc(hidden)] pub struct ITsSbLoadBalanceResult_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub TargetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITsSbLoadBalancing(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITsSbLoadBalancing, ITsSbLoadBalancing_Vtbl, 0x24329274_9eb7_11dc_ae98_f2b456d89593); +::windows_core::imp::interface_hierarchy!(ITsSbLoadBalancing, ::windows_core::IUnknown, ITsSbPlugin); impl ITsSbLoadBalancing { #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`"] #[cfg(feature = "Win32_System_Com_StructuredStorage")] @@ -1855,22 +1652,14 @@ impl ITsSbLoadBalancing { (::windows_core::Interface::vtable(self).GetMostSuitableTarget)(::windows_core::Interface::as_raw(self), pconnection.into_param().abi(), plbsink.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ITsSbLoadBalancing, ::windows_core::IUnknown, ITsSbPlugin); -unsafe impl ::windows_core::Interface for ITsSbLoadBalancing { - type Vtable = ITsSbLoadBalancing_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITsSbLoadBalancing { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x24329274_9eb7_11dc_ae98_f2b456d89593); -} #[repr(C)] #[doc(hidden)] pub struct ITsSbLoadBalancing_Vtbl { pub base__: ITsSbPlugin_Vtbl, pub GetMostSuitableTarget: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pconnection: *mut ::core::ffi::c_void, plbsink: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITsSbLoadBalancingNotifySink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITsSbLoadBalancingNotifySink, ITsSbLoadBalancingNotifySink_Vtbl, 0x5f8a8297_3244_4e6a_958a_27c822c1e141); +::windows_core::imp::interface_hierarchy!(ITsSbLoadBalancingNotifySink, ::windows_core::IUnknown, ITsSbBaseNotifySink); impl ITsSbLoadBalancingNotifySink { pub unsafe fn OnError(&self, hrerror: ::windows_core::HRESULT) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.OnError)(::windows_core::Interface::as_raw(self), hrerror).ok() @@ -1886,22 +1675,14 @@ impl ITsSbLoadBalancingNotifySink { (::windows_core::Interface::vtable(self).OnGetMostSuitableTarget)(::windows_core::Interface::as_raw(self), plbresult.into_param().abi(), fisnewconnection.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ITsSbLoadBalancingNotifySink, ::windows_core::IUnknown, ITsSbBaseNotifySink); -unsafe impl ::windows_core::Interface for ITsSbLoadBalancingNotifySink { - type Vtable = ITsSbLoadBalancingNotifySink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITsSbLoadBalancingNotifySink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5f8a8297_3244_4e6a_958a_27c822c1e141); -} #[repr(C)] #[doc(hidden)] pub struct ITsSbLoadBalancingNotifySink_Vtbl { pub base__: ITsSbBaseNotifySink_Vtbl, pub OnGetMostSuitableTarget: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plbresult: *mut ::core::ffi::c_void, fisnewconnection: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITsSbOrchestration(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITsSbOrchestration, ITsSbOrchestration_Vtbl, 0x64fc1172_9eb7_11dc_8b00_3aba56d89593); +::windows_core::imp::interface_hierarchy!(ITsSbOrchestration, ::windows_core::IUnknown, ITsSbPlugin); impl ITsSbOrchestration { #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`"] #[cfg(feature = "Win32_System_Com_StructuredStorage")] @@ -1924,22 +1705,14 @@ impl ITsSbOrchestration { (::windows_core::Interface::vtable(self).PrepareTargetForConnect)(::windows_core::Interface::as_raw(self), pconnection.into_param().abi(), porchestrationnotifysink.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ITsSbOrchestration, ::windows_core::IUnknown, ITsSbPlugin); -unsafe impl ::windows_core::Interface for ITsSbOrchestration { - type Vtable = ITsSbOrchestration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITsSbOrchestration { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x64fc1172_9eb7_11dc_8b00_3aba56d89593); -} #[repr(C)] #[doc(hidden)] pub struct ITsSbOrchestration_Vtbl { pub base__: ITsSbPlugin_Vtbl, pub PrepareTargetForConnect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pconnection: *mut ::core::ffi::c_void, porchestrationnotifysink: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITsSbOrchestrationNotifySink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITsSbOrchestrationNotifySink, ITsSbOrchestrationNotifySink_Vtbl, 0x36c37d61_926b_442f_bca5_118c6d50dcf2); +::windows_core::imp::interface_hierarchy!(ITsSbOrchestrationNotifySink, ::windows_core::IUnknown, ITsSbBaseNotifySink); impl ITsSbOrchestrationNotifySink { pub unsafe fn OnError(&self, hrerror: ::windows_core::HRESULT) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.OnError)(::windows_core::Interface::as_raw(self), hrerror).ok() @@ -1954,22 +1727,14 @@ impl ITsSbOrchestrationNotifySink { (::windows_core::Interface::vtable(self).OnReadyToConnect)(::windows_core::Interface::as_raw(self), ptarget.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ITsSbOrchestrationNotifySink, ::windows_core::IUnknown, ITsSbBaseNotifySink); -unsafe impl ::windows_core::Interface for ITsSbOrchestrationNotifySink { - type Vtable = ITsSbOrchestrationNotifySink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITsSbOrchestrationNotifySink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x36c37d61_926b_442f_bca5_118c6d50dcf2); -} #[repr(C)] #[doc(hidden)] pub struct ITsSbOrchestrationNotifySink_Vtbl { pub base__: ITsSbBaseNotifySink_Vtbl, pub OnReadyToConnect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptarget: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITsSbPlacement(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITsSbPlacement, ITsSbPlacement_Vtbl, 0xdaadee5f_6d32_480e_9e36_ddab2329f06d); +::windows_core::imp::interface_hierarchy!(ITsSbPlacement, ::windows_core::IUnknown, ITsSbPlugin); impl ITsSbPlacement { #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`"] #[cfg(feature = "Win32_System_Com_StructuredStorage")] @@ -1992,22 +1757,14 @@ impl ITsSbPlacement { (::windows_core::Interface::vtable(self).QueryEnvironmentForTarget)(::windows_core::Interface::as_raw(self), pconnection.into_param().abi(), pplacementsink.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ITsSbPlacement, ::windows_core::IUnknown, ITsSbPlugin); -unsafe impl ::windows_core::Interface for ITsSbPlacement { - type Vtable = ITsSbPlacement_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITsSbPlacement { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdaadee5f_6d32_480e_9e36_ddab2329f06d); -} #[repr(C)] #[doc(hidden)] pub struct ITsSbPlacement_Vtbl { pub base__: ITsSbPlugin_Vtbl, pub QueryEnvironmentForTarget: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pconnection: *mut ::core::ffi::c_void, pplacementsink: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITsSbPlacementNotifySink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITsSbPlacementNotifySink, ITsSbPlacementNotifySink_Vtbl, 0x68a0c487_2b4f_46c2_94a1_6ce685183634); +::windows_core::imp::interface_hierarchy!(ITsSbPlacementNotifySink, ::windows_core::IUnknown, ITsSbBaseNotifySink); impl ITsSbPlacementNotifySink { pub unsafe fn OnError(&self, hrerror: ::windows_core::HRESULT) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.OnError)(::windows_core::Interface::as_raw(self), hrerror).ok() @@ -2022,22 +1779,14 @@ impl ITsSbPlacementNotifySink { (::windows_core::Interface::vtable(self).OnQueryEnvironmentCompleted)(::windows_core::Interface::as_raw(self), penvironment.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ITsSbPlacementNotifySink, ::windows_core::IUnknown, ITsSbBaseNotifySink); -unsafe impl ::windows_core::Interface for ITsSbPlacementNotifySink { - type Vtable = ITsSbPlacementNotifySink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITsSbPlacementNotifySink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x68a0c487_2b4f_46c2_94a1_6ce685183634); -} #[repr(C)] #[doc(hidden)] pub struct ITsSbPlacementNotifySink_Vtbl { pub base__: ITsSbBaseNotifySink_Vtbl, pub OnQueryEnvironmentCompleted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, penvironment: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITsSbPlugin(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITsSbPlugin, ITsSbPlugin_Vtbl, 0x48cd7406_caab_465f_a5d6_baa863b9ea4f); +::windows_core::imp::interface_hierarchy!(ITsSbPlugin, ::windows_core::IUnknown); impl ITsSbPlugin { #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`"] #[cfg(feature = "Win32_System_Com_StructuredStorage")] @@ -2053,13 +1802,6 @@ impl ITsSbPlugin { (::windows_core::Interface::vtable(self).Terminate)(::windows_core::Interface::as_raw(self), hr).ok() } } -::windows_core::imp::interface_hierarchy!(ITsSbPlugin, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITsSbPlugin { - type Vtable = ITsSbPlugin_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITsSbPlugin { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x48cd7406_caab_465f_a5d6_baa863b9ea4f); -} #[repr(C)] #[doc(hidden)] pub struct ITsSbPlugin_Vtbl { @@ -2070,9 +1812,8 @@ pub struct ITsSbPlugin_Vtbl { Initialize: usize, pub Terminate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hr: ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITsSbPluginNotifySink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITsSbPluginNotifySink, ITsSbPluginNotifySink_Vtbl, 0x44dfe30b_c3be_40f5_bf82_7a95bb795adf); +::windows_core::imp::interface_hierarchy!(ITsSbPluginNotifySink, ::windows_core::IUnknown, ITsSbBaseNotifySink); impl ITsSbPluginNotifySink { pub unsafe fn OnError(&self, hrerror: ::windows_core::HRESULT) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.OnError)(::windows_core::Interface::as_raw(self), hrerror).ok() @@ -2087,13 +1828,6 @@ impl ITsSbPluginNotifySink { (::windows_core::Interface::vtable(self).OnTerminated)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ITsSbPluginNotifySink, ::windows_core::IUnknown, ITsSbBaseNotifySink); -unsafe impl ::windows_core::Interface for ITsSbPluginNotifySink { - type Vtable = ITsSbPluginNotifySink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITsSbPluginNotifySink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x44dfe30b_c3be_40f5_bf82_7a95bb795adf); -} #[repr(C)] #[doc(hidden)] pub struct ITsSbPluginNotifySink_Vtbl { @@ -2101,11 +1835,15 @@ pub struct ITsSbPluginNotifySink_Vtbl { pub OnInitialized: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hr: ::windows_core::HRESULT) -> ::windows_core::HRESULT, pub OnTerminated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`"] #[cfg(feature = "Win32_System_Com_StructuredStorage")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITsSbPluginPropertySet(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`"] + ITsSbPluginPropertySet, + ITsSbPluginPropertySet_Vtbl, + 0x95006e34_7eff_4b6c_bb40_49a4fda7cea6 +); +#[cfg(feature = "Win32_System_Com_StructuredStorage")] +::windows_core::imp::interface_hierarchy!(ITsSbPluginPropertySet, ::windows_core::IUnknown, super::Com::StructuredStorage::IPropertyBag, ITsSbPropertySet); #[cfg(feature = "Win32_System_Com_StructuredStorage")] impl ITsSbPluginPropertySet { #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2127,26 +1865,20 @@ impl ITsSbPluginPropertySet { } } #[cfg(feature = "Win32_System_Com_StructuredStorage")] -::windows_core::imp::interface_hierarchy!(ITsSbPluginPropertySet, ::windows_core::IUnknown, super::Com::StructuredStorage::IPropertyBag, ITsSbPropertySet); -#[cfg(feature = "Win32_System_Com_StructuredStorage")] -unsafe impl ::windows_core::Interface for ITsSbPluginPropertySet { - type Vtable = ITsSbPluginPropertySet_Vtbl; -} -#[cfg(feature = "Win32_System_Com_StructuredStorage")] -unsafe impl ::windows_core::ComInterface for ITsSbPluginPropertySet { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x95006e34_7eff_4b6c_bb40_49a4fda7cea6); -} -#[cfg(feature = "Win32_System_Com_StructuredStorage")] #[repr(C)] #[doc(hidden)] pub struct ITsSbPluginPropertySet_Vtbl { pub base__: ITsSbPropertySet_Vtbl, } -#[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`"] #[cfg(feature = "Win32_System_Com_StructuredStorage")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITsSbPropertySet(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`"] + ITsSbPropertySet, + ITsSbPropertySet_Vtbl, + 0x5c025171_bb1e_4baf_a212_6d5e9774b33b +); +#[cfg(feature = "Win32_System_Com_StructuredStorage")] +::windows_core::imp::interface_hierarchy!(ITsSbPropertySet, ::windows_core::IUnknown, super::Com::StructuredStorage::IPropertyBag); #[cfg(feature = "Win32_System_Com_StructuredStorage")] impl ITsSbPropertySet { #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2168,24 +1900,13 @@ impl ITsSbPropertySet { } } #[cfg(feature = "Win32_System_Com_StructuredStorage")] -::windows_core::imp::interface_hierarchy!(ITsSbPropertySet, ::windows_core::IUnknown, super::Com::StructuredStorage::IPropertyBag); -#[cfg(feature = "Win32_System_Com_StructuredStorage")] -unsafe impl ::windows_core::Interface for ITsSbPropertySet { - type Vtable = ITsSbPropertySet_Vtbl; -} -#[cfg(feature = "Win32_System_Com_StructuredStorage")] -unsafe impl ::windows_core::ComInterface for ITsSbPropertySet { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5c025171_bb1e_4baf_a212_6d5e9774b33b); -} -#[cfg(feature = "Win32_System_Com_StructuredStorage")] #[repr(C)] #[doc(hidden)] pub struct ITsSbPropertySet_Vtbl { pub base__: super::Com::StructuredStorage::IPropertyBag_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITsSbProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITsSbProvider, ITsSbProvider_Vtbl, 0x87a4098f_6d7b_44dd_bc17_8ce44e370d52); +::windows_core::imp::interface_hierarchy!(ITsSbProvider, ::windows_core::IUnknown); impl ITsSbProvider { pub unsafe fn CreateTargetObject(&self, targetname: P0, environmentname: P1) -> ::windows_core::Result where @@ -2262,13 +1983,6 @@ impl ITsSbProvider { (::windows_core::Interface::vtable(self).CreateEnvironmentPropertySetObject)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITsSbProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITsSbProvider { - type Vtable = ITsSbProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITsSbProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x87a4098f_6d7b_44dd_bc17_8ce44e370d52); -} #[repr(C)] #[doc(hidden)] pub struct ITsSbProvider_Vtbl { @@ -2295,9 +2009,8 @@ pub struct ITsSbProvider_Vtbl { #[cfg(not(feature = "Win32_System_Com_StructuredStorage"))] CreateEnvironmentPropertySetObject: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITsSbProvisioning(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITsSbProvisioning, ITsSbProvisioning_Vtbl, 0x2f6f0dbb_9e4f_462b_9c3f_fccc3dcb6232); +::windows_core::imp::interface_hierarchy!(ITsSbProvisioning, ::windows_core::IUnknown, ITsSbPlugin); impl ITsSbProvisioning { #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`"] #[cfg(feature = "Win32_System_Com_StructuredStorage")] @@ -2343,13 +2056,6 @@ impl ITsSbProvisioning { (::windows_core::Interface::vtable(self).CancelJob)(::windows_core::Interface::as_raw(self), jobguid.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ITsSbProvisioning, ::windows_core::IUnknown, ITsSbPlugin); -unsafe impl ::windows_core::Interface for ITsSbProvisioning { - type Vtable = ITsSbProvisioning_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITsSbProvisioning { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2f6f0dbb_9e4f_462b_9c3f_fccc3dcb6232); -} #[repr(C)] #[doc(hidden)] pub struct ITsSbProvisioning_Vtbl { @@ -2359,9 +2065,8 @@ pub struct ITsSbProvisioning_Vtbl { pub DeleteVirtualMachines: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, jobxmlstring: ::std::mem::MaybeUninit<::windows_core::BSTR>, jobguid: ::std::mem::MaybeUninit<::windows_core::BSTR>, psink: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CancelJob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, jobguid: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITsSbProvisioningPluginNotifySink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITsSbProvisioningPluginNotifySink, ITsSbProvisioningPluginNotifySink_Vtbl, 0xaca87a8e_818b_4581_a032_49c3dfb9c701); +::windows_core::imp::interface_hierarchy!(ITsSbProvisioningPluginNotifySink, ::windows_core::IUnknown); impl ITsSbProvisioningPluginNotifySink { pub unsafe fn OnJobCreated(&self, pvmnotifyinfo: *const VM_NOTIFY_INFO) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnJobCreated)(::windows_core::Interface::as_raw(self), pvmnotifyinfo).ok() @@ -2392,13 +2097,6 @@ impl ITsSbProvisioningPluginNotifySink { (::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::imp::interface_hierarchy!(ITsSbProvisioningPluginNotifySink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITsSbProvisioningPluginNotifySink { - type Vtable = ITsSbProvisioningPluginNotifySink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITsSbProvisioningPluginNotifySink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaca87a8e_818b_4581_a032_49c3dfb9c701); -} #[repr(C)] #[doc(hidden)] pub struct ITsSbProvisioningPluginNotifySink_Vtbl { @@ -2410,9 +2108,8 @@ pub struct ITsSbProvisioningPluginNotifySink_Vtbl { pub LockVirtualMachine: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvmnotifyentry: *const VM_NOTIFY_ENTRY) -> ::windows_core::HRESULT, pub OnVirtualMachineHostStatusChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, vmhost: ::std::mem::MaybeUninit<::windows_core::BSTR>, vmhostnotifystatus: VM_HOST_NOTIFY_STATUS, errorcode: ::windows_core::HRESULT, errordescr: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITsSbResourceNotification(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITsSbResourceNotification, ITsSbResourceNotification_Vtbl, 0x65d3e85a_c39b_11dc_b92d_3cd255d89593); +::windows_core::imp::interface_hierarchy!(ITsSbResourceNotification, ::windows_core::IUnknown); impl ITsSbResourceNotification { pub unsafe fn NotifySessionChange(&self, changetype: TSSESSION_STATE, psession: P0) -> ::windows_core::Result<()> where @@ -2433,13 +2130,6 @@ impl ITsSbResourceNotification { (::windows_core::Interface::vtable(self).NotifyClientConnectionStateChange)(::windows_core::Interface::as_raw(self), changetype, pconnection.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ITsSbResourceNotification, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITsSbResourceNotification { - type Vtable = ITsSbResourceNotification_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITsSbResourceNotification { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x65d3e85a_c39b_11dc_b92d_3cd255d89593); -} #[repr(C)] #[doc(hidden)] pub struct ITsSbResourceNotification_Vtbl { @@ -2448,9 +2138,8 @@ pub struct ITsSbResourceNotification_Vtbl { pub NotifyTargetChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, targetchangetype: u32, ptarget: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub NotifyClientConnectionStateChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, changetype: CONNECTION_CHANGE_NOTIFICATION, pconnection: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITsSbResourceNotificationEx(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITsSbResourceNotificationEx, ITsSbResourceNotificationEx_Vtbl, 0xa8a47fde_ca91_44d2_b897_3aa28a43b2b7); +::windows_core::imp::interface_hierarchy!(ITsSbResourceNotificationEx, ::windows_core::IUnknown); impl ITsSbResourceNotificationEx { pub unsafe fn NotifySessionChangeEx(&self, targetname: P0, username: P1, domain: P2, sessionid: u32, sessionstate: TSSESSION_STATE) -> ::windows_core::Result<()> where @@ -2477,13 +2166,6 @@ impl ITsSbResourceNotificationEx { (::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::imp::interface_hierarchy!(ITsSbResourceNotificationEx, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITsSbResourceNotificationEx { - type Vtable = ITsSbResourceNotificationEx_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITsSbResourceNotificationEx { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa8a47fde_ca91_44d2_b897_3aa28a43b2b7); -} #[repr(C)] #[doc(hidden)] pub struct ITsSbResourceNotificationEx_Vtbl { @@ -2492,9 +2174,8 @@ pub struct ITsSbResourceNotificationEx_Vtbl { pub NotifyTargetChangeEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, targetname: ::std::mem::MaybeUninit<::windows_core::BSTR>, targetchangetype: u32) -> ::windows_core::HRESULT, pub NotifyClientConnectionStateChangeEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, username: ::std::mem::MaybeUninit<::windows_core::BSTR>, domain: ::std::mem::MaybeUninit<::windows_core::BSTR>, initialprogram: ::std::mem::MaybeUninit<::windows_core::BSTR>, poolname: ::std::mem::MaybeUninit<::windows_core::BSTR>, targetname: ::std::mem::MaybeUninit<::windows_core::BSTR>, connectionchangetype: CONNECTION_CHANGE_NOTIFICATION) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITsSbResourcePlugin(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITsSbResourcePlugin, ITsSbResourcePlugin_Vtbl, 0xea8db42c_98ed_4535_a88b_2a164f35490f); +::windows_core::imp::interface_hierarchy!(ITsSbResourcePlugin, ::windows_core::IUnknown, ITsSbPlugin); impl ITsSbResourcePlugin { #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`"] #[cfg(feature = "Win32_System_Com_StructuredStorage")] @@ -2510,21 +2191,13 @@ impl ITsSbResourcePlugin { (::windows_core::Interface::vtable(self).base__.Terminate)(::windows_core::Interface::as_raw(self), hr).ok() } } -::windows_core::imp::interface_hierarchy!(ITsSbResourcePlugin, ::windows_core::IUnknown, ITsSbPlugin); -unsafe impl ::windows_core::Interface for ITsSbResourcePlugin { - type Vtable = ITsSbResourcePlugin_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITsSbResourcePlugin { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xea8db42c_98ed_4535_a88b_2a164f35490f); -} #[repr(C)] #[doc(hidden)] pub struct ITsSbResourcePlugin_Vtbl { pub base__: ITsSbPlugin_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITsSbResourcePluginStore(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITsSbResourcePluginStore, ITsSbResourcePluginStore_Vtbl, 0x5c38f65f_bcf1_4036_a6bf_9e3cccae0b63); +::windows_core::imp::interface_hierarchy!(ITsSbResourcePluginStore, ::windows_core::IUnknown); impl ITsSbResourcePluginStore { pub unsafe fn QueryTarget(&self, targetname: P0, farmname: P1) -> ::windows_core::Result where @@ -2727,13 +2400,6 @@ impl ITsSbResourcePluginStore { (::windows_core::Interface::vtable(self).SetServerDrainMode)(::windows_core::Interface::as_raw(self), serverfqdn.into_param().abi(), drainmode).ok() } } -::windows_core::imp::interface_hierarchy!(ITsSbResourcePluginStore, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITsSbResourcePluginStore { - type Vtable = ITsSbResourcePluginStore_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITsSbResourcePluginStore { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5c38f65f_bcf1_4036_a6bf_9e3cccae0b63); -} #[repr(C)] #[doc(hidden)] pub struct ITsSbResourcePluginStore_Vtbl { @@ -2785,9 +2451,8 @@ pub struct ITsSbResourcePluginStore_Vtbl { pub GetServerState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, poolname: ::std::mem::MaybeUninit<::windows_core::BSTR>, serverfqdn: ::std::mem::MaybeUninit<::windows_core::BSTR>, pstate: *mut TARGET_STATE) -> ::windows_core::HRESULT, pub SetServerDrainMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, serverfqdn: ::std::mem::MaybeUninit<::windows_core::BSTR>, drainmode: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITsSbServiceNotification(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITsSbServiceNotification, ITsSbServiceNotification_Vtbl, 0x86cb68ae_86e0_4f57_8a64_bb7406bc5550); +::windows_core::imp::interface_hierarchy!(ITsSbServiceNotification, ::windows_core::IUnknown); impl ITsSbServiceNotification { pub unsafe fn NotifyServiceFailure(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).NotifyServiceFailure)(::windows_core::Interface::as_raw(self)).ok() @@ -2796,13 +2461,6 @@ impl ITsSbServiceNotification { (::windows_core::Interface::vtable(self).NotifyServiceSuccess)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ITsSbServiceNotification, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITsSbServiceNotification { - type Vtable = ITsSbServiceNotification_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITsSbServiceNotification { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x86cb68ae_86e0_4f57_8a64_bb7406bc5550); -} #[repr(C)] #[doc(hidden)] pub struct ITsSbServiceNotification_Vtbl { @@ -2810,9 +2468,8 @@ pub struct ITsSbServiceNotification_Vtbl { pub NotifyServiceFailure: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub NotifyServiceSuccess: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITsSbSession(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITsSbSession, ITsSbSession_Vtbl, 0xd453aac7_b1d8_4c5e_ba34_9afb4c8c5510); +::windows_core::imp::interface_hierarchy!(ITsSbSession, ::windows_core::IUnknown); impl ITsSbSession { pub unsafe fn SessionId(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2882,13 +2539,6 @@ impl ITsSbSession { (::windows_core::Interface::vtable(self).SetProtocolType)(::windows_core::Interface::as_raw(self), val).ok() } } -::windows_core::imp::interface_hierarchy!(ITsSbSession, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITsSbSession { - type Vtable = ITsSbSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITsSbSession { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd453aac7_b1d8_4c5e_ba34_9afb4c8c5510); -} #[repr(C)] #[doc(hidden)] pub struct ITsSbSession_Vtbl { @@ -2911,9 +2561,8 @@ pub struct ITsSbSession_Vtbl { pub ProtocolType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut u32) -> ::windows_core::HRESULT, pub SetProtocolType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, val: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITsSbTarget(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITsSbTarget, ITsSbTarget_Vtbl, 0x16616ecc_272d_411d_b324_126893033856); +::windows_core::imp::interface_hierarchy!(ITsSbTarget, ::windows_core::IUnknown); impl ITsSbTarget { pub unsafe fn TargetName(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -3005,13 +2654,6 @@ impl ITsSbTarget { (::windows_core::Interface::vtable(self).TargetLoad)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITsSbTarget, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITsSbTarget { - type Vtable = ITsSbTarget_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITsSbTarget { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x16616ecc_272d_411d_b324_126893033856); -} #[repr(C)] #[doc(hidden)] pub struct ITsSbTarget_Vtbl { @@ -3042,11 +2684,15 @@ pub struct ITsSbTarget_Vtbl { pub NumPendingConnections: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pnumpendingconnections: *mut u32) -> ::windows_core::HRESULT, pub TargetLoad: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptargetload: *mut u32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`"] #[cfg(feature = "Win32_System_Com_StructuredStorage")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITsSbTargetPropertySet(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`"] + ITsSbTargetPropertySet, + ITsSbTargetPropertySet_Vtbl, + 0xf7bda5d6_994c_4e11_a079_2763b61830ac +); +#[cfg(feature = "Win32_System_Com_StructuredStorage")] +::windows_core::imp::interface_hierarchy!(ITsSbTargetPropertySet, ::windows_core::IUnknown, super::Com::StructuredStorage::IPropertyBag, ITsSbPropertySet); #[cfg(feature = "Win32_System_Com_StructuredStorage")] impl ITsSbTargetPropertySet { #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3068,24 +2714,13 @@ impl ITsSbTargetPropertySet { } } #[cfg(feature = "Win32_System_Com_StructuredStorage")] -::windows_core::imp::interface_hierarchy!(ITsSbTargetPropertySet, ::windows_core::IUnknown, super::Com::StructuredStorage::IPropertyBag, ITsSbPropertySet); -#[cfg(feature = "Win32_System_Com_StructuredStorage")] -unsafe impl ::windows_core::Interface for ITsSbTargetPropertySet { - type Vtable = ITsSbTargetPropertySet_Vtbl; -} -#[cfg(feature = "Win32_System_Com_StructuredStorage")] -unsafe impl ::windows_core::ComInterface for ITsSbTargetPropertySet { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf7bda5d6_994c_4e11_a079_2763b61830ac); -} -#[cfg(feature = "Win32_System_Com_StructuredStorage")] #[repr(C)] #[doc(hidden)] pub struct ITsSbTargetPropertySet_Vtbl { pub base__: ITsSbPropertySet_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITsSbTaskInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITsSbTaskInfo, ITsSbTaskInfo_Vtbl, 0x523d1083_89be_48dd_99ea_04e82ffa7265); +::windows_core::imp::interface_hierarchy!(ITsSbTaskInfo, ::windows_core::IUnknown); impl ITsSbTaskInfo { pub unsafe fn TargetId(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -3126,13 +2761,6 @@ impl ITsSbTaskInfo { (::windows_core::Interface::vtable(self).Status)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITsSbTaskInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITsSbTaskInfo { - type Vtable = ITsSbTaskInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITsSbTaskInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x523d1083_89be_48dd_99ea_04e82ffa7265); -} #[repr(C)] #[doc(hidden)] pub struct ITsSbTaskInfo_Vtbl { @@ -3150,9 +2778,8 @@ pub struct ITsSbTaskInfo_Vtbl { pub Plugin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pplugin: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstatus: *mut RDV_TASK_STATUS) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITsSbTaskPlugin(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITsSbTaskPlugin, ITsSbTaskPlugin_Vtbl, 0xfa22ef0f_8705_41be_93bc_44bdbcf1c9c4); +::windows_core::imp::interface_hierarchy!(ITsSbTaskPlugin, ::windows_core::IUnknown, ITsSbPlugin); impl ITsSbTaskPlugin { #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`"] #[cfg(feature = "Win32_System_Com_StructuredStorage")] @@ -3180,13 +2807,6 @@ impl ITsSbTaskPlugin { (::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::imp::interface_hierarchy!(ITsSbTaskPlugin, ::windows_core::IUnknown, ITsSbPlugin); -unsafe impl ::windows_core::Interface for ITsSbTaskPlugin { - type Vtable = ITsSbTaskPlugin_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITsSbTaskPlugin { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfa22ef0f_8705_41be_93bc_44bdbcf1c9c4); -} #[repr(C)] #[doc(hidden)] pub struct ITsSbTaskPlugin_Vtbl { @@ -3194,9 +2814,8 @@ pub struct ITsSbTaskPlugin_Vtbl { pub InitializeTaskPlugin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pitssbtaskpluginnotifysink: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetTaskQueue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszhostname: ::std::mem::MaybeUninit<::windows_core::BSTR>, sbtaskinfosize: u32, pitssbtaskinfo: *const *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITsSbTaskPluginNotifySink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITsSbTaskPluginNotifySink, ITsSbTaskPluginNotifySink_Vtbl, 0x6aaf899e_c2ec_45ee_aa37_45e60895261a); +::windows_core::imp::interface_hierarchy!(ITsSbTaskPluginNotifySink, ::windows_core::IUnknown, ITsSbBaseNotifySink); impl ITsSbTaskPluginNotifySink { pub unsafe fn OnError(&self, hrerror: ::windows_core::HRESULT) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.OnError)(::windows_core::Interface::as_raw(self), hrerror).ok() @@ -3236,13 +2855,6 @@ impl ITsSbTaskPluginNotifySink { (::windows_core::Interface::vtable(self).OnReportTasks)(::windows_core::Interface::as_raw(self), szhostname.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ITsSbTaskPluginNotifySink, ::windows_core::IUnknown, ITsSbBaseNotifySink); -unsafe impl ::windows_core::Interface for ITsSbTaskPluginNotifySink { - type Vtable = ITsSbTaskPluginNotifySink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITsSbTaskPluginNotifySink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6aaf899e_c2ec_45ee_aa37_45e60895261a); -} #[repr(C)] #[doc(hidden)] pub struct ITsSbTaskPluginNotifySink_Vtbl { @@ -3255,31 +2867,22 @@ pub struct ITsSbTaskPluginNotifySink_Vtbl { pub OnUpdateTaskStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sztargetname: ::std::mem::MaybeUninit<::windows_core::BSTR>, taskidentifier: ::std::mem::MaybeUninit<::windows_core::BSTR>, taskstatus: RDV_TASK_STATUS) -> ::windows_core::HRESULT, pub OnReportTasks: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, szhostname: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWRdsEnhancedFastReconnectArbitrator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWRdsEnhancedFastReconnectArbitrator, IWRdsEnhancedFastReconnectArbitrator_Vtbl, 0x5718ae9b_47f2_499f_b634_d8175bd51131); +::windows_core::imp::interface_hierarchy!(IWRdsEnhancedFastReconnectArbitrator, ::windows_core::IUnknown); impl IWRdsEnhancedFastReconnectArbitrator { pub unsafe fn GetSessionForEnhancedFastReconnect(&self, psessionidarray: *const i32, dwsessioncount: u32) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetSessionForEnhancedFastReconnect)(::windows_core::Interface::as_raw(self), psessionidarray, dwsessioncount, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWRdsEnhancedFastReconnectArbitrator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWRdsEnhancedFastReconnectArbitrator { - type Vtable = IWRdsEnhancedFastReconnectArbitrator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWRdsEnhancedFastReconnectArbitrator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5718ae9b_47f2_499f_b634_d8175bd51131); -} #[repr(C)] #[doc(hidden)] pub struct IWRdsEnhancedFastReconnectArbitrator_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetSessionForEnhancedFastReconnect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psessionidarray: *const i32, dwsessioncount: u32, presultsessionid: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWRdsGraphicsChannel(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWRdsGraphicsChannel, IWRdsGraphicsChannel_Vtbl, 0x684b7a0b_edff_43ad_d5a2_4a8d5388f401); +::windows_core::imp::interface_hierarchy!(IWRdsGraphicsChannel, ::windows_core::IUnknown); impl IWRdsGraphicsChannel { pub unsafe fn Write(&self, cbsize: u32, pbuffer: *const u8, pcontext: P0) -> ::windows_core::Result<()> where @@ -3298,13 +2901,6 @@ impl IWRdsGraphicsChannel { (::windows_core::Interface::vtable(self).Open)(::windows_core::Interface::as_raw(self), pchannelevents.into_param().abi(), popencontext.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IWRdsGraphicsChannel, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWRdsGraphicsChannel { - type Vtable = IWRdsGraphicsChannel_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWRdsGraphicsChannel { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x684b7a0b_edff_43ad_d5a2_4a8d5388f401); -} #[repr(C)] #[doc(hidden)] pub struct IWRdsGraphicsChannel_Vtbl { @@ -3313,9 +2909,8 @@ pub struct IWRdsGraphicsChannel_Vtbl { pub Close: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Open: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pchannelevents: *mut ::core::ffi::c_void, popencontext: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWRdsGraphicsChannelEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWRdsGraphicsChannelEvents, IWRdsGraphicsChannelEvents_Vtbl, 0x67f2368c_d674_4fae_66a5_d20628a640d2); +::windows_core::imp::interface_hierarchy!(IWRdsGraphicsChannelEvents, ::windows_core::IUnknown); impl IWRdsGraphicsChannelEvents { pub unsafe fn OnDataReceived(&self, cbsize: u32, pbuffer: *const u8) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnDataReceived)(::windows_core::Interface::as_raw(self), cbsize, pbuffer).ok() @@ -3340,13 +2935,6 @@ impl IWRdsGraphicsChannelEvents { (::windows_core::Interface::vtable(self).OnMetricsUpdate)(::windows_core::Interface::as_raw(self), bandwidth, rtt, lastsentbyteindex).ok() } } -::windows_core::imp::interface_hierarchy!(IWRdsGraphicsChannelEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWRdsGraphicsChannelEvents { - type Vtable = IWRdsGraphicsChannelEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWRdsGraphicsChannelEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x67f2368c_d674_4fae_66a5_d20628a640d2); -} #[repr(C)] #[doc(hidden)] pub struct IWRdsGraphicsChannelEvents_Vtbl { @@ -3357,31 +2945,22 @@ pub struct IWRdsGraphicsChannelEvents_Vtbl { pub OnDataSent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwritecontext: *mut ::core::ffi::c_void, bcancelled: super::super::Foundation::BOOL, pbuffer: *const u8, cbbuffer: u32) -> ::windows_core::HRESULT, pub OnMetricsUpdate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bandwidth: u32, rtt: u32, lastsentbyteindex: u64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWRdsGraphicsChannelManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWRdsGraphicsChannelManager, IWRdsGraphicsChannelManager_Vtbl, 0x0fd57159_e83e_476a_a8b9_4a7976e71e18); +::windows_core::imp::interface_hierarchy!(IWRdsGraphicsChannelManager, ::windows_core::IUnknown); impl IWRdsGraphicsChannelManager { pub unsafe fn CreateChannel(&self, pszchannelname: *const u8, channeltype: WRdsGraphicsChannelType) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).CreateChannel)(::windows_core::Interface::as_raw(self), pszchannelname, channeltype, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWRdsGraphicsChannelManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWRdsGraphicsChannelManager { - type Vtable = IWRdsGraphicsChannelManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWRdsGraphicsChannelManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0fd57159_e83e_476a_a8b9_4a7976e71e18); -} #[repr(C)] #[doc(hidden)] pub struct IWRdsGraphicsChannelManager_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub CreateChannel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszchannelname: *const u8, channeltype: WRdsGraphicsChannelType, ppvirtualchannel: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWRdsProtocolConnection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWRdsProtocolConnection, IWRdsProtocolConnection_Vtbl, 0x324ed94f_fdaf_4ff6_81a8_42abe755830b); +::windows_core::imp::interface_hierarchy!(IWRdsProtocolConnection, ::windows_core::IUnknown); impl IWRdsProtocolConnection { pub unsafe fn GetLogonErrorRedirector(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -3483,13 +3062,6 @@ impl IWRdsProtocolConnection { (::windows_core::Interface::vtable(self).NotifyCommandProcessCreated)(::windows_core::Interface::as_raw(self), sessionid).ok() } } -::windows_core::imp::interface_hierarchy!(IWRdsProtocolConnection, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWRdsProtocolConnection { - type Vtable = IWRdsProtocolConnection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWRdsProtocolConnection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x324ed94f_fdaf_4ff6_81a8_42abe755830b); -} #[repr(C)] #[doc(hidden)] pub struct IWRdsProtocolConnection_Vtbl { @@ -3519,9 +3091,8 @@ pub struct IWRdsProtocolConnection_Vtbl { pub GetShadowConnection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppshadowconnection: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub NotifyCommandProcessCreated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sessionid: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWRdsProtocolConnectionCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWRdsProtocolConnectionCallback, IWRdsProtocolConnectionCallback_Vtbl, 0xf1d70332_d070_4ef1_a088_78313536c2d6); +::windows_core::imp::interface_hierarchy!(IWRdsProtocolConnectionCallback, ::windows_core::IUnknown); impl IWRdsProtocolConnectionCallback { pub unsafe fn OnReady(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnReady)(::windows_core::Interface::as_raw(self)).ok() @@ -3540,13 +3111,6 @@ impl IWRdsProtocolConnectionCallback { (::windows_core::Interface::vtable(self).GetConnectionId)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWRdsProtocolConnectionCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWRdsProtocolConnectionCallback { - type Vtable = IWRdsProtocolConnectionCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWRdsProtocolConnectionCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf1d70332_d070_4ef1_a088_78313536c2d6); -} #[repr(C)] #[doc(hidden)] pub struct IWRdsProtocolConnectionCallback_Vtbl { @@ -3557,9 +3121,8 @@ pub struct IWRdsProtocolConnectionCallback_Vtbl { pub RedrawWindow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rect: *const WTS_SMALL_RECT) -> ::windows_core::HRESULT, pub GetConnectionId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pconnectionid: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWRdsProtocolConnectionSettings(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWRdsProtocolConnectionSettings, IWRdsProtocolConnectionSettings_Vtbl, 0x83fcf5d3_f6f4_ea94_9cd2_32f280e1e510); +::windows_core::imp::interface_hierarchy!(IWRdsProtocolConnectionSettings, ::windows_core::IUnknown); impl IWRdsProtocolConnectionSettings { pub unsafe fn SetConnectionSetting(&self, propertyid: ::windows_core::GUID, ppropertyentriesin: *const WTS_PROPERTY_VALUE) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetConnectionSetting)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(propertyid), ppropertyentriesin).ok() @@ -3568,13 +3131,6 @@ impl IWRdsProtocolConnectionSettings { (::windows_core::Interface::vtable(self).GetConnectionSetting)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(propertyid), ppropertyentriesout).ok() } } -::windows_core::imp::interface_hierarchy!(IWRdsProtocolConnectionSettings, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWRdsProtocolConnectionSettings { - type Vtable = IWRdsProtocolConnectionSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWRdsProtocolConnectionSettings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x83fcf5d3_f6f4_ea94_9cd2_32f280e1e510); -} #[repr(C)] #[doc(hidden)] pub struct IWRdsProtocolConnectionSettings_Vtbl { @@ -3582,9 +3138,8 @@ pub struct IWRdsProtocolConnectionSettings_Vtbl { pub SetConnectionSetting: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertyid: ::windows_core::GUID, ppropertyentriesin: *const WTS_PROPERTY_VALUE) -> ::windows_core::HRESULT, pub GetConnectionSetting: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertyid: ::windows_core::GUID, ppropertyentriesout: *mut WTS_PROPERTY_VALUE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWRdsProtocolLicenseConnection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWRdsProtocolLicenseConnection, IWRdsProtocolLicenseConnection_Vtbl, 0x1d6a145f_d095_4424_957a_407fae822d84); +::windows_core::imp::interface_hierarchy!(IWRdsProtocolLicenseConnection, ::windows_core::IUnknown); impl IWRdsProtocolLicenseConnection { pub unsafe fn RequestLicensingCapabilities(&self, pplicensecapabilities: *mut WTS_LICENSE_CAPABILITIES, pcblicensecapabilities: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).RequestLicensingCapabilities)(::windows_core::Interface::as_raw(self), pplicensecapabilities, pcblicensecapabilities).ok() @@ -3599,13 +3154,6 @@ impl IWRdsProtocolLicenseConnection { (::windows_core::Interface::vtable(self).ProtocolComplete)(::windows_core::Interface::as_raw(self), ulcomplete).ok() } } -::windows_core::imp::interface_hierarchy!(IWRdsProtocolLicenseConnection, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWRdsProtocolLicenseConnection { - type Vtable = IWRdsProtocolLicenseConnection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWRdsProtocolLicenseConnection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1d6a145f_d095_4424_957a_407fae822d84); -} #[repr(C)] #[doc(hidden)] pub struct IWRdsProtocolLicenseConnection_Vtbl { @@ -3615,9 +3163,8 @@ pub struct IWRdsProtocolLicenseConnection_Vtbl { pub RequestClientLicense: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, reserve1: *const u8, reserve2: u32, ppclientlicense: *mut u8, pcbclientlicense: *mut u32) -> ::windows_core::HRESULT, pub ProtocolComplete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulcomplete: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWRdsProtocolListener(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWRdsProtocolListener, IWRdsProtocolListener_Vtbl, 0xfcbc131b_c686_451d_a773_e279e230f540); +::windows_core::imp::interface_hierarchy!(IWRdsProtocolListener, ::windows_core::IUnknown); impl IWRdsProtocolListener { pub unsafe fn GetSettings(&self, wrdslistenersettinglevel: WRDS_LISTENER_SETTING_LEVEL) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -3633,13 +3180,6 @@ impl IWRdsProtocolListener { (::windows_core::Interface::vtable(self).StopListen)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IWRdsProtocolListener, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWRdsProtocolListener { - type Vtable = IWRdsProtocolListener_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWRdsProtocolListener { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfcbc131b_c686_451d_a773_e279e230f540); -} #[repr(C)] #[doc(hidden)] pub struct IWRdsProtocolListener_Vtbl { @@ -3648,9 +3188,8 @@ pub struct IWRdsProtocolListener_Vtbl { pub StartListen: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcallback: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub StopListen: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWRdsProtocolListenerCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWRdsProtocolListenerCallback, IWRdsProtocolListenerCallback_Vtbl, 0x3ab27e5b_4449_4dc1_b74a_91621d4fe984); +::windows_core::imp::interface_hierarchy!(IWRdsProtocolListenerCallback, ::windows_core::IUnknown); impl IWRdsProtocolListenerCallback { pub unsafe fn OnConnected(&self, pconnection: P0, pwrdsconnectionsettings: *const WRDS_CONNECTION_SETTINGS) -> ::windows_core::Result where @@ -3660,22 +3199,14 @@ impl IWRdsProtocolListenerCallback { (::windows_core::Interface::vtable(self).OnConnected)(::windows_core::Interface::as_raw(self), pconnection.into_param().abi(), pwrdsconnectionsettings, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWRdsProtocolListenerCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWRdsProtocolListenerCallback { - type Vtable = IWRdsProtocolListenerCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWRdsProtocolListenerCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3ab27e5b_4449_4dc1_b74a_91621d4fe984); -} #[repr(C)] #[doc(hidden)] pub struct IWRdsProtocolListenerCallback_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnConnected: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pconnection: *mut ::core::ffi::c_void, pwrdsconnectionsettings: *const WRDS_CONNECTION_SETTINGS, pcallback: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWRdsProtocolLogonErrorRedirector(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWRdsProtocolLogonErrorRedirector, IWRdsProtocolLogonErrorRedirector_Vtbl, 0x519fe83b_142a_4120_a3d5_a405d315281a); +::windows_core::imp::interface_hierarchy!(IWRdsProtocolLogonErrorRedirector, ::windows_core::IUnknown); impl IWRdsProtocolLogonErrorRedirector { pub unsafe fn OnBeginPainting(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnBeginPainting)(::windows_core::Interface::as_raw(self)).ok() @@ -3704,13 +3235,6 @@ impl IWRdsProtocolLogonErrorRedirector { (::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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWRdsProtocolLogonErrorRedirector, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWRdsProtocolLogonErrorRedirector { - type Vtable = IWRdsProtocolLogonErrorRedirector_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWRdsProtocolLogonErrorRedirector { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x519fe83b_142a_4120_a3d5_a405d315281a); -} #[repr(C)] #[doc(hidden)] pub struct IWRdsProtocolLogonErrorRedirector_Vtbl { @@ -3720,9 +3244,8 @@ pub struct IWRdsProtocolLogonErrorRedirector_Vtbl { pub RedirectMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszcaption: ::windows_core::PCWSTR, pszmessage: ::windows_core::PCWSTR, utype: u32, presponse: *mut WTS_LOGON_ERROR_REDIRECTOR_RESPONSE) -> ::windows_core::HRESULT, pub RedirectLogonError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ntsstatus: i32, ntssubstatus: i32, pszcaption: ::windows_core::PCWSTR, pszmessage: ::windows_core::PCWSTR, utype: u32, presponse: *mut WTS_LOGON_ERROR_REDIRECTOR_RESPONSE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWRdsProtocolManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWRdsProtocolManager, IWRdsProtocolManager_Vtbl, 0xdc796967_3abb_40cd_a446_105276b58950); +::windows_core::imp::interface_hierarchy!(IWRdsProtocolManager, ::windows_core::IUnknown); impl IWRdsProtocolManager { pub unsafe fn Initialize(&self, piwrdssettings: P0, pwrdssettings: *const WRDS_SETTINGS) -> ::windows_core::Result<()> where @@ -3756,13 +3279,6 @@ impl IWRdsProtocolManager { (::windows_core::Interface::vtable(self).Uninitialize)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IWRdsProtocolManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWRdsProtocolManager { - type Vtable = IWRdsProtocolManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWRdsProtocolManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdc796967_3abb_40cd_a446_105276b58950); -} #[repr(C)] #[doc(hidden)] pub struct IWRdsProtocolManager_Vtbl { @@ -3776,9 +3292,8 @@ pub struct IWRdsProtocolManager_Vtbl { pub NotifySettingsChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwrdssettings: *const WRDS_SETTINGS) -> ::windows_core::HRESULT, pub Uninitialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWRdsProtocolSettings(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWRdsProtocolSettings, IWRdsProtocolSettings_Vtbl, 0x654a5a6a_2550_47eb_b6f7_ebd637475265); +::windows_core::imp::interface_hierarchy!(IWRdsProtocolSettings, ::windows_core::IUnknown); impl IWRdsProtocolSettings { pub unsafe fn GetSettings(&self, wrdssettingtype: WRDS_SETTING_TYPE, wrdssettinglevel: WRDS_SETTING_LEVEL, pwrdssettings: *mut WRDS_SETTINGS) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetSettings)(::windows_core::Interface::as_raw(self), wrdssettingtype, wrdssettinglevel, pwrdssettings).ok() @@ -3787,13 +3302,6 @@ impl IWRdsProtocolSettings { (::windows_core::Interface::vtable(self).MergeSettings)(::windows_core::Interface::as_raw(self), pwrdssettings, wrdsconnectionsettinglevel, pwrdsconnectionsettings).ok() } } -::windows_core::imp::interface_hierarchy!(IWRdsProtocolSettings, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWRdsProtocolSettings { - type Vtable = IWRdsProtocolSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWRdsProtocolSettings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x654a5a6a_2550_47eb_b6f7_ebd637475265); -} #[repr(C)] #[doc(hidden)] pub struct IWRdsProtocolSettings_Vtbl { @@ -3801,9 +3309,8 @@ pub struct IWRdsProtocolSettings_Vtbl { pub GetSettings: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wrdssettingtype: WRDS_SETTING_TYPE, wrdssettinglevel: WRDS_SETTING_LEVEL, pwrdssettings: *mut WRDS_SETTINGS) -> ::windows_core::HRESULT, pub MergeSettings: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwrdssettings: *const WRDS_SETTINGS, wrdsconnectionsettinglevel: WRDS_CONNECTION_SETTING_LEVEL, pwrdsconnectionsettings: *mut WRDS_CONNECTION_SETTINGS) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWRdsProtocolShadowCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWRdsProtocolShadowCallback, IWRdsProtocolShadowCallback_Vtbl, 0xe0667ce0_0372_40d6_adb2_a0f3322674d6); +::windows_core::imp::interface_hierarchy!(IWRdsProtocolShadowCallback, ::windows_core::IUnknown); impl IWRdsProtocolShadowCallback { pub unsafe fn StopShadow(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).StopShadow)(::windows_core::Interface::as_raw(self)).ok() @@ -3816,13 +3323,6 @@ impl IWRdsProtocolShadowCallback { (::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::imp::interface_hierarchy!(IWRdsProtocolShadowCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWRdsProtocolShadowCallback { - type Vtable = IWRdsProtocolShadowCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWRdsProtocolShadowCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe0667ce0_0372_40d6_adb2_a0f3322674d6); -} #[repr(C)] #[doc(hidden)] pub struct IWRdsProtocolShadowCallback_Vtbl { @@ -3830,9 +3330,8 @@ pub struct IWRdsProtocolShadowCallback_Vtbl { pub StopShadow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub InvokeTargetShadow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptargetservername: ::windows_core::PCWSTR, targetsessionid: u32, pparam1: *const u8, param1size: u32, pparam2: *const u8, param2size: u32, pparam3: *const u8, param3size: u32, pparam4: *const u8, param4size: u32, pclientname: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWRdsProtocolShadowConnection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWRdsProtocolShadowConnection, IWRdsProtocolShadowConnection_Vtbl, 0x9ae85ce6_cade_4548_8feb_99016597f60a); +::windows_core::imp::interface_hierarchy!(IWRdsProtocolShadowConnection, ::windows_core::IUnknown); impl IWRdsProtocolShadowConnection { pub unsafe fn Start(&self, ptargetservername: P0, targetsessionid: u32, hotkeyvk: u8, hotkeymodifiers: u16, pshadowcallback: P1) -> ::windows_core::Result<()> where @@ -3851,13 +3350,6 @@ impl IWRdsProtocolShadowConnection { (::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::imp::interface_hierarchy!(IWRdsProtocolShadowConnection, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWRdsProtocolShadowConnection { - type Vtable = IWRdsProtocolShadowConnection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWRdsProtocolShadowConnection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9ae85ce6_cade_4548_8feb_99016597f60a); -} #[repr(C)] #[doc(hidden)] pub struct IWRdsProtocolShadowConnection_Vtbl { @@ -3866,9 +3358,8 @@ pub struct IWRdsProtocolShadowConnection_Vtbl { pub Stop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub DoTarget: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pparam1: *const u8, param1size: u32, pparam2: *const u8, param2size: u32, pparam3: *const u8, param3size: u32, pparam4: *const u8, param4size: u32, pclientname: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWRdsWddmIddProps(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWRdsWddmIddProps, IWRdsWddmIddProps_Vtbl, 0x1382df4d_a289_43d1_a184_144726f9af90); +::windows_core::imp::interface_hierarchy!(IWRdsWddmIddProps, ::windows_core::IUnknown); impl IWRdsWddmIddProps { pub unsafe fn GetHardwareId(&self, pdisplaydriverhardwareid: &[u16]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetHardwareId)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pdisplaydriverhardwareid.as_ptr()), pdisplaydriverhardwareid.len().try_into().unwrap()).ok() @@ -3889,13 +3380,6 @@ impl IWRdsWddmIddProps { (::windows_core::Interface::vtable(self).EnableWddmIdd)(::windows_core::Interface::as_raw(self), enabled.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IWRdsWddmIddProps, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWRdsWddmIddProps { - type Vtable = IWRdsWddmIddProps_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWRdsWddmIddProps { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1382df4d_a289_43d1_a184_144726f9af90); -} #[repr(C)] #[doc(hidden)] pub struct IWRdsWddmIddProps_Vtbl { @@ -3905,9 +3389,8 @@ pub struct IWRdsWddmIddProps_Vtbl { pub OnDriverUnload: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sessionid: u32) -> ::windows_core::HRESULT, pub EnableWddmIdd: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enabled: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWTSBitmapRenderService(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWTSBitmapRenderService, IWTSBitmapRenderService_Vtbl, 0xea326091_05fe_40c1_b49c_3d2ef4626a0e); +::windows_core::imp::interface_hierarchy!(IWTSBitmapRenderService, ::windows_core::IUnknown); impl IWTSBitmapRenderService { pub unsafe fn GetMappedRenderer(&self, mappingid: u64, pmappedrenderercallback: P0) -> ::windows_core::Result where @@ -3917,22 +3400,14 @@ impl IWTSBitmapRenderService { (::windows_core::Interface::vtable(self).GetMappedRenderer)(::windows_core::Interface::as_raw(self), mappingid, pmappedrenderercallback.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWTSBitmapRenderService, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWTSBitmapRenderService { - type Vtable = IWTSBitmapRenderService_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWTSBitmapRenderService { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xea326091_05fe_40c1_b49c_3d2ef4626a0e); -} #[repr(C)] #[doc(hidden)] pub struct IWTSBitmapRenderService_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetMappedRenderer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mappingid: u64, pmappedrenderercallback: *mut ::core::ffi::c_void, ppmappedrenderer: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWTSBitmapRenderer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWTSBitmapRenderer, IWTSBitmapRenderer_Vtbl, 0x5b7acc97_f3c9_46f7_8c5b_fa685d3441b1); +::windows_core::imp::interface_hierarchy!(IWTSBitmapRenderer, ::windows_core::IUnknown); impl IWTSBitmapRenderer { pub unsafe fn Render(&self, imageformat: ::windows_core::GUID, dwwidth: u32, dwheight: u32, cbstride: i32, pimagebuffer: &[u8]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Render)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(imageformat), dwwidth, dwheight, cbstride, pimagebuffer.len().try_into().unwrap(), ::core::mem::transmute(pimagebuffer.as_ptr())).ok() @@ -3945,13 +3420,6 @@ impl IWTSBitmapRenderer { (::windows_core::Interface::vtable(self).RemoveMapping)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IWTSBitmapRenderer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWTSBitmapRenderer { - type Vtable = IWTSBitmapRenderer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWTSBitmapRenderer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5b7acc97_f3c9_46f7_8c5b_fa685d3441b1); -} #[repr(C)] #[doc(hidden)] pub struct IWTSBitmapRenderer_Vtbl { @@ -3960,30 +3428,21 @@ pub struct IWTSBitmapRenderer_Vtbl { pub GetRendererStatistics: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstatistics: *mut BITMAP_RENDERER_STATISTICS) -> ::windows_core::HRESULT, pub RemoveMapping: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWTSBitmapRendererCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWTSBitmapRendererCallback, IWTSBitmapRendererCallback_Vtbl, 0xd782928e_fe4e_4e77_ae90_9cd0b3e3b353); +::windows_core::imp::interface_hierarchy!(IWTSBitmapRendererCallback, ::windows_core::IUnknown); impl IWTSBitmapRendererCallback { pub unsafe fn OnTargetSizeChanged(&self, rcnewsize: super::super::Foundation::RECT) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnTargetSizeChanged)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(rcnewsize)).ok() } } -::windows_core::imp::interface_hierarchy!(IWTSBitmapRendererCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWTSBitmapRendererCallback { - type Vtable = IWTSBitmapRendererCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWTSBitmapRendererCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd782928e_fe4e_4e77_ae90_9cd0b3e3b353); -} #[repr(C)] #[doc(hidden)] pub struct IWTSBitmapRendererCallback_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnTargetSizeChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rcnewsize: super::super::Foundation::RECT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWTSListener(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWTSListener, IWTSListener_Vtbl, 0xa1230206_9a39_4d58_8674_cdb4dff4e73b); +::windows_core::imp::interface_hierarchy!(IWTSListener, ::windows_core::IUnknown); impl IWTSListener { #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`"] #[cfg(feature = "Win32_System_Com_StructuredStorage")] @@ -3992,13 +3451,6 @@ impl IWTSListener { (::windows_core::Interface::vtable(self).GetConfiguration)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWTSListener, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWTSListener { - type Vtable = IWTSListener_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWTSListener { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa1230206_9a39_4d58_8674_cdb4dff4e73b); -} #[repr(C)] #[doc(hidden)] pub struct IWTSListener_Vtbl { @@ -4008,9 +3460,8 @@ pub struct IWTSListener_Vtbl { #[cfg(not(feature = "Win32_System_Com_StructuredStorage"))] GetConfiguration: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWTSListenerCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWTSListenerCallback, IWTSListenerCallback_Vtbl, 0xa1230203_d6a7_11d8_b9fd_000bdbd1f198); +::windows_core::imp::interface_hierarchy!(IWTSListenerCallback, ::windows_core::IUnknown); impl IWTSListenerCallback { pub unsafe fn OnNewChannelConnection(&self, pchannel: P0, data: P1, pbaccept: *mut super::super::Foundation::BOOL, ppcallback: *mut ::core::option::Option) -> ::windows_core::Result<()> where @@ -4020,22 +3471,14 @@ impl IWTSListenerCallback { (::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::imp::interface_hierarchy!(IWTSListenerCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWTSListenerCallback { - type Vtable = IWTSListenerCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWTSListenerCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa1230203_d6a7_11d8_b9fd_000bdbd1f198); -} #[repr(C)] #[doc(hidden)] pub struct IWTSListenerCallback_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnNewChannelConnection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pchannel: *mut ::core::ffi::c_void, data: ::std::mem::MaybeUninit<::windows_core::BSTR>, pbaccept: *mut super::super::Foundation::BOOL, ppcallback: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWTSPlugin(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWTSPlugin, IWTSPlugin_Vtbl, 0xa1230201_1439_4e62_a414_190d0ac3d40e); +::windows_core::imp::interface_hierarchy!(IWTSPlugin, ::windows_core::IUnknown); impl IWTSPlugin { pub unsafe fn Initialize(&self, pchannelmgr: P0) -> ::windows_core::Result<()> where @@ -4053,13 +3496,6 @@ impl IWTSPlugin { (::windows_core::Interface::vtable(self).Terminated)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IWTSPlugin, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWTSPlugin { - type Vtable = IWTSPlugin_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWTSPlugin { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa1230201_1439_4e62_a414_190d0ac3d40e); -} #[repr(C)] #[doc(hidden)] pub struct IWTSPlugin_Vtbl { @@ -4069,31 +3505,22 @@ pub struct IWTSPlugin_Vtbl { pub Disconnected: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwdisconnectcode: u32) -> ::windows_core::HRESULT, pub Terminated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWTSPluginServiceProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWTSPluginServiceProvider, IWTSPluginServiceProvider_Vtbl, 0xd3e07363_087c_476c_86a7_dbb15f46ddb4); +::windows_core::imp::interface_hierarchy!(IWTSPluginServiceProvider, ::windows_core::IUnknown); impl IWTSPluginServiceProvider { pub unsafe fn GetService(&self, serviceid: ::windows_core::GUID) -> ::windows_core::Result<::windows_core::IUnknown> { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetService)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(serviceid), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWTSPluginServiceProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWTSPluginServiceProvider { - type Vtable = IWTSPluginServiceProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWTSPluginServiceProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd3e07363_087c_476c_86a7_dbb15f46ddb4); -} #[repr(C)] #[doc(hidden)] pub struct IWTSPluginServiceProvider_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetService: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, serviceid: ::windows_core::GUID, ppunkobject: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWTSProtocolConnection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWTSProtocolConnection, IWTSProtocolConnection_Vtbl, 0x23083765_9095_4648_98bf_ef81c914032d); +::windows_core::imp::interface_hierarchy!(IWTSProtocolConnection, ::windows_core::IUnknown); impl IWTSProtocolConnection { pub unsafe fn GetLogonErrorRedirector(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -4188,13 +3615,6 @@ impl IWTSProtocolConnection { (::windows_core::Interface::vtable(self).GetShadowConnection)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWTSProtocolConnection, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWTSProtocolConnection { - type Vtable = IWTSProtocolConnection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWTSProtocolConnection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x23083765_9095_4648_98bf_ef81c914032d); -} #[repr(C)] #[doc(hidden)] pub struct IWTSProtocolConnection_Vtbl { @@ -4223,9 +3643,8 @@ pub struct IWTSProtocolConnection_Vtbl { pub QueryProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, querytype: ::windows_core::GUID, ulnumentriesin: u32, ulnumentriesout: u32, ppropertyentriesin: *const WTS_PROPERTY_VALUE, ppropertyentriesout: *mut WTS_PROPERTY_VALUE) -> ::windows_core::HRESULT, pub GetShadowConnection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppshadowconnection: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWTSProtocolConnectionCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWTSProtocolConnectionCallback, IWTSProtocolConnectionCallback_Vtbl, 0x23083765_75eb_41fe_b4fb_e086242afa0f); +::windows_core::imp::interface_hierarchy!(IWTSProtocolConnectionCallback, ::windows_core::IUnknown); impl IWTSProtocolConnectionCallback { pub unsafe fn OnReady(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnReady)(::windows_core::Interface::as_raw(self)).ok() @@ -4243,13 +3662,6 @@ impl IWTSProtocolConnectionCallback { (::windows_core::Interface::vtable(self).DisplayIOCtl)(::windows_core::Interface::as_raw(self), displayioctl).ok() } } -::windows_core::imp::interface_hierarchy!(IWTSProtocolConnectionCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWTSProtocolConnectionCallback { - type Vtable = IWTSProtocolConnectionCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWTSProtocolConnectionCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x23083765_75eb_41fe_b4fb_e086242afa0f); -} #[repr(C)] #[doc(hidden)] pub struct IWTSProtocolConnectionCallback_Vtbl { @@ -4260,9 +3672,8 @@ pub struct IWTSProtocolConnectionCallback_Vtbl { pub RedrawWindow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rect: *const WTS_SMALL_RECT) -> ::windows_core::HRESULT, pub DisplayIOCtl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, displayioctl: *const WTS_DISPLAY_IOCTL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWTSProtocolLicenseConnection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWTSProtocolLicenseConnection, IWTSProtocolLicenseConnection_Vtbl, 0x23083765_178c_4079_8e4a_fea6496a4d70); +::windows_core::imp::interface_hierarchy!(IWTSProtocolLicenseConnection, ::windows_core::IUnknown); impl IWTSProtocolLicenseConnection { pub unsafe fn RequestLicensingCapabilities(&self, pplicensecapabilities: *mut WTS_LICENSE_CAPABILITIES, pcblicensecapabilities: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).RequestLicensingCapabilities)(::windows_core::Interface::as_raw(self), pplicensecapabilities, pcblicensecapabilities).ok() @@ -4277,13 +3688,6 @@ impl IWTSProtocolLicenseConnection { (::windows_core::Interface::vtable(self).ProtocolComplete)(::windows_core::Interface::as_raw(self), ulcomplete).ok() } } -::windows_core::imp::interface_hierarchy!(IWTSProtocolLicenseConnection, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWTSProtocolLicenseConnection { - type Vtable = IWTSProtocolLicenseConnection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWTSProtocolLicenseConnection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x23083765_178c_4079_8e4a_fea6496a4d70); -} #[repr(C)] #[doc(hidden)] pub struct IWTSProtocolLicenseConnection_Vtbl { @@ -4293,9 +3697,8 @@ pub struct IWTSProtocolLicenseConnection_Vtbl { pub RequestClientLicense: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, reserve1: *const u8, reserve2: u32, ppclientlicense: *mut u8, pcbclientlicense: *mut u32) -> ::windows_core::HRESULT, pub ProtocolComplete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulcomplete: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWTSProtocolListener(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWTSProtocolListener, IWTSProtocolListener_Vtbl, 0x23083765_45f0_4394_8f69_32b2bc0ef4ca); +::windows_core::imp::interface_hierarchy!(IWTSProtocolListener, ::windows_core::IUnknown); impl IWTSProtocolListener { pub unsafe fn StartListen(&self, pcallback: P0) -> ::windows_core::Result<()> where @@ -4307,13 +3710,6 @@ impl IWTSProtocolListener { (::windows_core::Interface::vtable(self).StopListen)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IWTSProtocolListener, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWTSProtocolListener { - type Vtable = IWTSProtocolListener_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWTSProtocolListener { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x23083765_45f0_4394_8f69_32b2bc0ef4ca); -} #[repr(C)] #[doc(hidden)] pub struct IWTSProtocolListener_Vtbl { @@ -4321,9 +3717,8 @@ pub struct IWTSProtocolListener_Vtbl { pub StartListen: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcallback: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub StopListen: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWTSProtocolListenerCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWTSProtocolListenerCallback, IWTSProtocolListenerCallback_Vtbl, 0x23083765_1a2d_4de2_97de_4a35f260f0b3); +::windows_core::imp::interface_hierarchy!(IWTSProtocolListenerCallback, ::windows_core::IUnknown); impl IWTSProtocolListenerCallback { pub unsafe fn OnConnected(&self, pconnection: P0) -> ::windows_core::Result where @@ -4333,22 +3728,14 @@ impl IWTSProtocolListenerCallback { (::windows_core::Interface::vtable(self).OnConnected)(::windows_core::Interface::as_raw(self), pconnection.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWTSProtocolListenerCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWTSProtocolListenerCallback { - type Vtable = IWTSProtocolListenerCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWTSProtocolListenerCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x23083765_1a2d_4de2_97de_4a35f260f0b3); -} #[repr(C)] #[doc(hidden)] pub struct IWTSProtocolListenerCallback_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnConnected: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pconnection: *mut ::core::ffi::c_void, pcallback: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWTSProtocolLogonErrorRedirector(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWTSProtocolLogonErrorRedirector, IWTSProtocolLogonErrorRedirector_Vtbl, 0xfd9b61a7_2916_4627_8dee_4328711ad6cb); +::windows_core::imp::interface_hierarchy!(IWTSProtocolLogonErrorRedirector, ::windows_core::IUnknown); impl IWTSProtocolLogonErrorRedirector { pub unsafe fn OnBeginPainting(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnBeginPainting)(::windows_core::Interface::as_raw(self)).ok() @@ -4377,13 +3764,6 @@ impl IWTSProtocolLogonErrorRedirector { (::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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWTSProtocolLogonErrorRedirector, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWTSProtocolLogonErrorRedirector { - type Vtable = IWTSProtocolLogonErrorRedirector_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWTSProtocolLogonErrorRedirector { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfd9b61a7_2916_4627_8dee_4328711ad6cb); -} #[repr(C)] #[doc(hidden)] pub struct IWTSProtocolLogonErrorRedirector_Vtbl { @@ -4393,9 +3773,8 @@ pub struct IWTSProtocolLogonErrorRedirector_Vtbl { pub RedirectMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszcaption: ::windows_core::PCWSTR, pszmessage: ::windows_core::PCWSTR, utype: u32, presponse: *mut WTS_LOGON_ERROR_REDIRECTOR_RESPONSE) -> ::windows_core::HRESULT, pub RedirectLogonError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ntsstatus: i32, ntssubstatus: i32, pszcaption: ::windows_core::PCWSTR, pszmessage: ::windows_core::PCWSTR, utype: u32, presponse: *mut WTS_LOGON_ERROR_REDIRECTOR_RESPONSE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWTSProtocolManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWTSProtocolManager, IWTSProtocolManager_Vtbl, 0xf9eaf6cc_ed79_4f01_821d_1f881b9f66cc); +::windows_core::imp::interface_hierarchy!(IWTSProtocolManager, ::windows_core::IUnknown); impl IWTSProtocolManager { pub unsafe fn CreateListener(&self, wszlistenername: P0) -> ::windows_core::Result where @@ -4417,13 +3796,6 @@ impl IWTSProtocolManager { (::windows_core::Interface::vtable(self).NotifySessionStateChange)(::windows_core::Interface::as_raw(self), sessionid, eventid).ok() } } -::windows_core::imp::interface_hierarchy!(IWTSProtocolManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWTSProtocolManager { - type Vtable = IWTSProtocolManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWTSProtocolManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf9eaf6cc_ed79_4f01_821d_1f881b9f66cc); -} #[repr(C)] #[doc(hidden)] pub struct IWTSProtocolManager_Vtbl { @@ -4434,9 +3806,8 @@ pub struct IWTSProtocolManager_Vtbl { pub NotifySessionOfServiceStop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sessionid: *const WTS_SESSION_ID) -> ::windows_core::HRESULT, pub NotifySessionStateChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sessionid: *const WTS_SESSION_ID, eventid: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWTSProtocolShadowCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWTSProtocolShadowCallback, IWTSProtocolShadowCallback_Vtbl, 0x503a2504_aae5_4ab1_93e0_6d1c4bc6f71a); +::windows_core::imp::interface_hierarchy!(IWTSProtocolShadowCallback, ::windows_core::IUnknown); impl IWTSProtocolShadowCallback { pub unsafe fn StopShadow(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).StopShadow)(::windows_core::Interface::as_raw(self)).ok() @@ -4449,13 +3820,6 @@ impl IWTSProtocolShadowCallback { (::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::imp::interface_hierarchy!(IWTSProtocolShadowCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWTSProtocolShadowCallback { - type Vtable = IWTSProtocolShadowCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWTSProtocolShadowCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x503a2504_aae5_4ab1_93e0_6d1c4bc6f71a); -} #[repr(C)] #[doc(hidden)] pub struct IWTSProtocolShadowCallback_Vtbl { @@ -4463,9 +3827,8 @@ pub struct IWTSProtocolShadowCallback_Vtbl { pub StopShadow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub InvokeTargetShadow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptargetservername: ::windows_core::PCWSTR, targetsessionid: u32, pparam1: *const u8, param1size: u32, pparam2: *const u8, param2size: u32, pparam3: *const u8, param3size: u32, pparam4: *const u8, param4size: u32, pclientname: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWTSProtocolShadowConnection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWTSProtocolShadowConnection, IWTSProtocolShadowConnection_Vtbl, 0xee3b0c14_37fb_456b_bab3_6d6cd51e13bf); +::windows_core::imp::interface_hierarchy!(IWTSProtocolShadowConnection, ::windows_core::IUnknown); impl IWTSProtocolShadowConnection { pub unsafe fn Start(&self, ptargetservername: P0, targetsessionid: u32, hotkeyvk: u8, hotkeymodifiers: u16, pshadowcallback: P1) -> ::windows_core::Result<()> where @@ -4484,13 +3847,6 @@ impl IWTSProtocolShadowConnection { (::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::imp::interface_hierarchy!(IWTSProtocolShadowConnection, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWTSProtocolShadowConnection { - type Vtable = IWTSProtocolShadowConnection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWTSProtocolShadowConnection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xee3b0c14_37fb_456b_bab3_6d6cd51e13bf); -} #[repr(C)] #[doc(hidden)] pub struct IWTSProtocolShadowConnection_Vtbl { @@ -4499,9 +3855,8 @@ pub struct IWTSProtocolShadowConnection_Vtbl { pub Stop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub DoTarget: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pparam1: *const u8, param1size: u32, pparam2: *const u8, param2size: u32, pparam3: *const u8, param3size: u32, pparam4: *const u8, param4size: u32, pclientname: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWTSSBPlugin(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWTSSBPlugin, IWTSSBPlugin_Vtbl, 0xdc44be78_b18d_4399_b210_641bf67a002c); +::windows_core::imp::interface_hierarchy!(IWTSSBPlugin, ::windows_core::IUnknown); impl IWTSSBPlugin { pub unsafe fn Initialize(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -4534,13 +3889,6 @@ impl IWTSSBPlugin { (::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::imp::interface_hierarchy!(IWTSSBPlugin, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWTSSBPlugin { - type Vtable = IWTSSBPlugin_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWTSSBPlugin { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdc44be78_b18d_4399_b210_641bf67a002c); -} #[repr(C)] #[doc(hidden)] pub struct IWTSSBPlugin_Vtbl { @@ -4552,9 +3900,8 @@ pub struct IWTSSBPlugin_Vtbl { pub Terminated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub WTSSBX_GetUserExternalSession: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, username: ::windows_core::PCWSTR, domainname: ::windows_core::PCWSTR, applicationtype: ::windows_core::PCWSTR, redirectorinternalip: *const WTSSBX_IP_ADDRESS, psessionid: *mut u32, pmachineconnectinfo: *mut WTSSBX_MACHINE_CONNECT_INFO) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWTSVirtualChannel(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWTSVirtualChannel, IWTSVirtualChannel_Vtbl, 0xa1230207_d6a7_11d8_b9fd_000bdbd1f198); +::windows_core::imp::interface_hierarchy!(IWTSVirtualChannel, ::windows_core::IUnknown); impl IWTSVirtualChannel { pub unsafe fn Write(&self, pbuffer: &[u8], preserved: P0) -> ::windows_core::Result<()> where @@ -4566,13 +3913,6 @@ impl IWTSVirtualChannel { (::windows_core::Interface::vtable(self).Close)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IWTSVirtualChannel, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWTSVirtualChannel { - type Vtable = IWTSVirtualChannel_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWTSVirtualChannel { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa1230207_d6a7_11d8_b9fd_000bdbd1f198); -} #[repr(C)] #[doc(hidden)] pub struct IWTSVirtualChannel_Vtbl { @@ -4580,9 +3920,8 @@ pub struct IWTSVirtualChannel_Vtbl { pub Write: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cbsize: u32, pbuffer: *const u8, preserved: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Close: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWTSVirtualChannelCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWTSVirtualChannelCallback, IWTSVirtualChannelCallback_Vtbl, 0xa1230204_d6a7_11d8_b9fd_000bdbd1f198); +::windows_core::imp::interface_hierarchy!(IWTSVirtualChannelCallback, ::windows_core::IUnknown); impl IWTSVirtualChannelCallback { pub unsafe fn OnDataReceived(&self, pbuffer: &[u8]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnDataReceived)(::windows_core::Interface::as_raw(self), pbuffer.len().try_into().unwrap(), ::core::mem::transmute(pbuffer.as_ptr())).ok() @@ -4591,13 +3930,6 @@ impl IWTSVirtualChannelCallback { (::windows_core::Interface::vtable(self).OnClose)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IWTSVirtualChannelCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWTSVirtualChannelCallback { - type Vtable = IWTSVirtualChannelCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWTSVirtualChannelCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa1230204_d6a7_11d8_b9fd_000bdbd1f198); -} #[repr(C)] #[doc(hidden)] pub struct IWTSVirtualChannelCallback_Vtbl { @@ -4605,9 +3937,8 @@ pub struct IWTSVirtualChannelCallback_Vtbl { pub OnDataReceived: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cbsize: u32, pbuffer: *const u8) -> ::windows_core::HRESULT, pub OnClose: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWTSVirtualChannelManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWTSVirtualChannelManager, IWTSVirtualChannelManager_Vtbl, 0xa1230205_d6a7_11d8_b9fd_000bdbd1f198); +::windows_core::imp::interface_hierarchy!(IWTSVirtualChannelManager, ::windows_core::IUnknown); impl IWTSVirtualChannelManager { pub unsafe fn CreateListener(&self, pszchannelname: P0, uflags: u32, plistenercallback: P1) -> ::windows_core::Result where @@ -4618,22 +3949,14 @@ impl IWTSVirtualChannelManager { (::windows_core::Interface::vtable(self).CreateListener)(::windows_core::Interface::as_raw(self), pszchannelname.into_param().abi(), uflags, plistenercallback.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWTSVirtualChannelManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWTSVirtualChannelManager { - type Vtable = IWTSVirtualChannelManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWTSVirtualChannelManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa1230205_d6a7_11d8_b9fd_000bdbd1f198); -} #[repr(C)] #[doc(hidden)] pub struct IWTSVirtualChannelManager_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub CreateListener: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszchannelname: ::windows_core::PCSTR, uflags: u32, plistenercallback: *mut ::core::ffi::c_void, pplistener: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWorkspace(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWorkspace, IWorkspace_Vtbl, 0xb922bbb8_4c55_4fea_8496_beb0b44285e5); +::windows_core::imp::interface_hierarchy!(IWorkspace, ::windows_core::IUnknown); impl IWorkspace { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -4654,13 +3977,6 @@ impl IWorkspace { (::windows_core::Interface::vtable(self).GetProcessId)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWorkspace, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWorkspace { - type Vtable = IWorkspace_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWorkspace { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb922bbb8_4c55_4fea_8496_beb0b44285e5); -} #[repr(C)] #[doc(hidden)] pub struct IWorkspace_Vtbl { @@ -4675,9 +3991,8 @@ pub struct IWorkspace_Vtbl { StartRemoteApplication: usize, pub GetProcessId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pulprocessid: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWorkspace2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWorkspace2, IWorkspace2_Vtbl, 0x96d8d7cf_783e_4286_834c_ebc0e95f783c); +::windows_core::imp::interface_hierarchy!(IWorkspace2, ::windows_core::IUnknown, IWorkspace); impl IWorkspace2 { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -4710,13 +4025,6 @@ impl IWorkspace2 { (::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::imp::interface_hierarchy!(IWorkspace2, ::windows_core::IUnknown, IWorkspace); -unsafe impl ::windows_core::Interface for IWorkspace2 { - type Vtable = IWorkspace2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWorkspace2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x96d8d7cf_783e_4286_834c_ebc0e95f783c); -} #[repr(C)] #[doc(hidden)] pub struct IWorkspace2_Vtbl { @@ -4726,9 +4034,8 @@ pub struct IWorkspace2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] StartRemoteApplicationEx: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWorkspace3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWorkspace3, IWorkspace3_Vtbl, 0x1becbe4a_d654_423b_afeb_be8d532c13c6); +::windows_core::imp::interface_hierarchy!(IWorkspace3, ::windows_core::IUnknown, IWorkspace, IWorkspace2); impl IWorkspace3 { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -4776,13 +4083,6 @@ impl IWorkspace3 { (::windows_core::Interface::vtable(self).SetClaimsToken)(::windows_core::Interface::as_raw(self), bstraccesstoken.into_param().abi(), ullaccesstokenexpiration, bstrrefreshtoken.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IWorkspace3, ::windows_core::IUnknown, IWorkspace, IWorkspace2); -unsafe impl ::windows_core::Interface for IWorkspace3 { - type Vtable = IWorkspace3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWorkspace3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1becbe4a_d654_423b_afeb_be8d532c13c6); -} #[repr(C)] #[doc(hidden)] pub struct IWorkspace3_Vtbl { @@ -4790,9 +4090,8 @@ pub struct IWorkspace3_Vtbl { pub GetClaimsToken2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrclaimshint: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstruserhint: ::std::mem::MaybeUninit<::windows_core::BSTR>, claimcookie: u32, hwndcreduiparent: u32, rectcreduiparent: super::super::Foundation::RECT, pbstraccesstoken: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SetClaimsToken: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstraccesstoken: ::std::mem::MaybeUninit<::windows_core::BSTR>, ullaccesstokenexpiration: u64, bstrrefreshtoken: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWorkspaceClientExt(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWorkspaceClientExt, IWorkspaceClientExt_Vtbl, 0x12b952f4_41ca_4f21_a829_a6d07d9a16e5); +::windows_core::imp::interface_hierarchy!(IWorkspaceClientExt, ::windows_core::IUnknown); impl IWorkspaceClientExt { pub unsafe fn GetResourceId(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -4806,13 +4105,6 @@ impl IWorkspaceClientExt { (::windows_core::Interface::vtable(self).IssueDisconnect)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IWorkspaceClientExt, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWorkspaceClientExt { - type Vtable = IWorkspaceClientExt_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWorkspaceClientExt { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x12b952f4_41ca_4f21_a829_a6d07d9a16e5); -} #[repr(C)] #[doc(hidden)] pub struct IWorkspaceClientExt_Vtbl { @@ -4821,9 +4113,8 @@ pub struct IWorkspaceClientExt_Vtbl { pub GetResourceDisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrworkspacedisplayname: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub IssueDisconnect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWorkspaceRegistration(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWorkspaceRegistration, IWorkspaceRegistration_Vtbl, 0xb922bbb8_4c55_4fea_8496_beb0b44285e6); +::windows_core::imp::interface_hierarchy!(IWorkspaceRegistration, ::windows_core::IUnknown); impl IWorkspaceRegistration { pub unsafe fn AddResource(&self, punk: P0) -> ::windows_core::Result where @@ -4836,13 +4127,6 @@ impl IWorkspaceRegistration { (::windows_core::Interface::vtable(self).RemoveResource)(::windows_core::Interface::as_raw(self), dwcookieconnection).ok() } } -::windows_core::imp::interface_hierarchy!(IWorkspaceRegistration, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWorkspaceRegistration { - type Vtable = IWorkspaceRegistration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWorkspaceRegistration { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb922bbb8_4c55_4fea_8496_beb0b44285e6); -} #[repr(C)] #[doc(hidden)] pub struct IWorkspaceRegistration_Vtbl { @@ -4850,9 +4134,8 @@ pub struct IWorkspaceRegistration_Vtbl { pub AddResource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punk: *mut ::core::ffi::c_void, pdwcookie: *mut u32) -> ::windows_core::HRESULT, pub RemoveResource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwcookieconnection: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWorkspaceRegistration2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWorkspaceRegistration2, IWorkspaceRegistration2_Vtbl, 0xcf59f654_39bb_44d8_94d0_4635728957e9); +::windows_core::imp::interface_hierarchy!(IWorkspaceRegistration2, ::windows_core::IUnknown, IWorkspaceRegistration); impl IWorkspaceRegistration2 { pub unsafe fn AddResource(&self, punk: P0) -> ::windows_core::Result where @@ -4875,13 +4158,6 @@ impl IWorkspaceRegistration2 { (::windows_core::Interface::vtable(self).RemoveResourceEx)(::windows_core::Interface::as_raw(self), dwcookieconnection, ::core::mem::transmute(correlationid)).ok() } } -::windows_core::imp::interface_hierarchy!(IWorkspaceRegistration2, ::windows_core::IUnknown, IWorkspaceRegistration); -unsafe impl ::windows_core::Interface for IWorkspaceRegistration2 { - type Vtable = IWorkspaceRegistration2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWorkspaceRegistration2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcf59f654_39bb_44d8_94d0_4635728957e9); -} #[repr(C)] #[doc(hidden)] pub struct IWorkspaceRegistration2_Vtbl { @@ -4889,9 +4165,8 @@ pub struct IWorkspaceRegistration2_Vtbl { pub AddResourceEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punk: *mut ::core::ffi::c_void, bstreventloguploadaddress: ::std::mem::MaybeUninit<::windows_core::BSTR>, pdwcookie: *mut u32, correlationid: ::windows_core::GUID) -> ::windows_core::HRESULT, pub RemoveResourceEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwcookieconnection: u32, correlationid: ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWorkspaceReportMessage(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWorkspaceReportMessage, IWorkspaceReportMessage_Vtbl, 0xa7c06739_500f_4e8c_99a8_2bd6955899eb); +::windows_core::imp::interface_hierarchy!(IWorkspaceReportMessage, ::windows_core::IUnknown); impl IWorkspaceReportMessage { pub unsafe fn RegisterErrorLogMessage(&self, bstrmessage: P0) -> ::windows_core::Result<()> where @@ -4915,13 +4190,6 @@ impl IWorkspaceReportMessage { (::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::imp::interface_hierarchy!(IWorkspaceReportMessage, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWorkspaceReportMessage { - type Vtable = IWorkspaceReportMessage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWorkspaceReportMessage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa7c06739_500f_4e8c_99a8_2bd6955899eb); -} #[repr(C)] #[doc(hidden)] pub struct IWorkspaceReportMessage_Vtbl { @@ -4930,11 +4198,15 @@ pub struct IWorkspaceReportMessage_Vtbl { pub IsErrorMessageRegistered: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrwkspid: ::std::mem::MaybeUninit<::windows_core::BSTR>, dwerrortype: u32, bstrerrormessagetype: ::std::mem::MaybeUninit<::windows_core::BSTR>, dwerrorcode: u32, pferrorexist: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub RegisterErrorEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrwkspid: ::std::mem::MaybeUninit<::windows_core::BSTR>, dwerrortype: u32, bstrerrormessagetype: ::std::mem::MaybeUninit<::windows_core::BSTR>, dwerrorcode: u32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWorkspaceResTypeRegistry(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWorkspaceResTypeRegistry, + IWorkspaceResTypeRegistry_Vtbl, + 0x1d428c79_6e2e_4351_a361_c0401a03a0ba +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWorkspaceResTypeRegistry, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IWorkspaceResTypeRegistry { pub unsafe fn AddResourceType(&self, fmachinewide: P0, bstrfileextension: P1, bstrlauncher: P2) -> ::windows_core::Result<()> @@ -4979,16 +4251,6 @@ impl IWorkspaceResTypeRegistry { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWorkspaceResTypeRegistry, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWorkspaceResTypeRegistry { - type Vtable = IWorkspaceResTypeRegistry_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWorkspaceResTypeRegistry { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1d428c79_6e2e_4351_a361_c0401a03a0ba); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWorkspaceResTypeRegistry_Vtbl { @@ -5002,11 +4264,15 @@ pub struct IWorkspaceResTypeRegistry_Vtbl { pub GetResourceTypeInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fmachinewide: super::super::Foundation::VARIANT_BOOL, bstrfileextension: ::std::mem::MaybeUninit<::windows_core::BSTR>, pbstrlauncher: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub ModifyResourceType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fmachinewide: super::super::Foundation::VARIANT_BOOL, bstrfileextension: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstrlauncher: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWorkspaceScriptable(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWorkspaceScriptable, + IWorkspaceScriptable_Vtbl, + 0xefea49a2_dda5_429d_8f42_b23b92c4c347 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWorkspaceScriptable, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IWorkspaceScriptable { pub unsafe fn DisconnectWorkspace(&self, bstrworkspaceid: P0) -> ::windows_core::Result<()> @@ -5057,16 +4323,6 @@ impl IWorkspaceScriptable { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWorkspaceScriptable, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWorkspaceScriptable { - type Vtable = IWorkspaceScriptable_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWorkspaceScriptable { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xefea49a2_dda5_429d_8f42_b23b92c4c347); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWorkspaceScriptable_Vtbl { @@ -5079,11 +4335,15 @@ pub struct IWorkspaceScriptable_Vtbl { pub OnAuthenticated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrworkspaceid: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstrusername: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub DisconnectWorkspaceByFriendlyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrworkspacefriendlyname: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWorkspaceScriptable2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWorkspaceScriptable2, + IWorkspaceScriptable2_Vtbl, + 0xefea49a2_dda5_429d_8f42_b33ba2c4c348 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWorkspaceScriptable2, ::windows_core::IUnknown, super::Com::IDispatch, IWorkspaceScriptable); #[cfg(feature = "Win32_System_Com")] impl IWorkspaceScriptable2 { pub unsafe fn DisconnectWorkspace(&self, bstrworkspaceid: P0) -> ::windows_core::Result<()> @@ -5153,16 +4413,6 @@ impl IWorkspaceScriptable2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWorkspaceScriptable2, ::windows_core::IUnknown, super::Com::IDispatch, IWorkspaceScriptable); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWorkspaceScriptable2 { - type Vtable = IWorkspaceScriptable2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWorkspaceScriptable2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xefea49a2_dda5_429d_8f42_b33ba2c4c348); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWorkspaceScriptable2_Vtbl { @@ -5170,11 +4420,15 @@ pub struct IWorkspaceScriptable2_Vtbl { pub StartWorkspaceEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrworkspaceid: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstrworkspacefriendlyname: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstrredirectorname: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstrusername: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstrpassword: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstrappcontainer: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstrworkspaceparams: ::std::mem::MaybeUninit<::windows_core::BSTR>, ltimeout: i32, lflags: i32) -> ::windows_core::HRESULT, pub ResourceDismissed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrworkspaceid: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstrworkspacefriendlyname: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWorkspaceScriptable3(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWorkspaceScriptable3, + IWorkspaceScriptable3_Vtbl, + 0x531e6512_2cbf_4bd2_80a5_d90a71636a9a +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWorkspaceScriptable3, ::windows_core::IUnknown, super::Com::IDispatch, IWorkspaceScriptable, IWorkspaceScriptable2); #[cfg(feature = "Win32_System_Com")] impl IWorkspaceScriptable3 { pub unsafe fn DisconnectWorkspace(&self, bstrworkspaceid: P0) -> ::windows_core::Result<()> @@ -5257,25 +4511,14 @@ impl IWorkspaceScriptable3 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWorkspaceScriptable3, ::windows_core::IUnknown, super::Com::IDispatch, IWorkspaceScriptable, IWorkspaceScriptable2); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWorkspaceScriptable3 { - type Vtable = IWorkspaceScriptable3_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWorkspaceScriptable3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x531e6512_2cbf_4bd2_80a5_d90a71636a9a); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWorkspaceScriptable3_Vtbl { pub base__: IWorkspaceScriptable2_Vtbl, pub StartWorkspaceEx2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrworkspaceid: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstrworkspacefriendlyname: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstrredirectorname: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstrusername: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstrpassword: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstrappcontainer: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstrworkspaceparams: ::std::mem::MaybeUninit<::windows_core::BSTR>, ltimeout: i32, lflags: i32, bstreventloguploadaddress: ::std::mem::MaybeUninit<::windows_core::BSTR>, correlationid: ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ItsPubPlugin(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ItsPubPlugin, ItsPubPlugin_Vtbl, 0x70c04b05_f347_412b_822f_36c99c54ca45); +::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 @@ -5309,13 +4552,6 @@ impl ItsPubPlugin { (::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::imp::interface_hierarchy!(ItsPubPlugin, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ItsPubPlugin { - type Vtable = ItsPubPlugin_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ItsPubPlugin { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x70c04b05_f347_412b_822f_36c99c54ca45); -} #[repr(C)] #[doc(hidden)] pub struct ItsPubPlugin_Vtbl { @@ -5327,9 +4563,8 @@ pub struct ItsPubPlugin_Vtbl { pub pluginVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub ResolveResource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, resourcetype: *mut u32, resourcelocation: ::windows_core::PWSTR, endpointname: ::windows_core::PWSTR, userid: ::windows_core::PCWSTR, alias: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ItsPubPlugin2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ItsPubPlugin2, ItsPubPlugin2_Vtbl, 0xfa4ce418_aad7_4ec6_bad1_0a321ba465d5); +::windows_core::imp::interface_hierarchy!(ItsPubPlugin2, ::windows_core::IUnknown, ItsPubPlugin); impl ItsPubPlugin2 { pub unsafe fn GetResourceList(&self, userid: P0, pceapplistsize: *mut i32, resourcelist: *mut *mut pluginResource) -> ::windows_core::Result<()> where @@ -5390,13 +4625,6 @@ impl ItsPubPlugin2 { (::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::imp::interface_hierarchy!(ItsPubPlugin2, ::windows_core::IUnknown, ItsPubPlugin); -unsafe impl ::windows_core::Interface for ItsPubPlugin2 { - type Vtable = ItsPubPlugin2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ItsPubPlugin2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfa4ce418_aad7_4ec6_bad1_0a321ba465d5); -} #[repr(C)] #[doc(hidden)] pub struct ItsPubPlugin2_Vtbl { @@ -5406,23 +4634,17 @@ pub struct ItsPubPlugin2_Vtbl { pub ResolvePersonalDesktop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, userid: ::windows_core::PCWSTR, poolid: ::windows_core::PCWSTR, epdresolutiontype: TSPUB_PLUGIN_PD_RESOLUTION_TYPE, ppdassignmenttype: *mut TSPUB_PLUGIN_PD_ASSIGNMENT_TYPE, endpointname: ::windows_core::PWSTR) -> ::windows_core::HRESULT, pub DeletePersonalDesktopAssignment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, userid: ::windows_core::PCWSTR, poolid: ::windows_core::PCWSTR, endpointname: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct _ITSWkspEvents(::windows_core::IUnknown); -#[cfg(feature = "Win32_System_Com")] -impl _ITSWkspEvents {} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + _ITSWkspEvents, + _ITSWkspEvents_Vtbl, + 0xb922bbb8_4c55_4fea_8496_beb0b44285e9 +); #[cfg(feature = "Win32_System_Com")] ::windows_core::imp::interface_hierarchy!(_ITSWkspEvents, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for _ITSWkspEvents { - type Vtable = _ITSWkspEvents_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for _ITSWkspEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb922bbb8_4c55_4fea_8496_beb0b44285e9); -} +impl _ITSWkspEvents {} #[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] diff --git a/crates/libs/windows/src/Windows/Win32/System/RemoteManagement/impl.rs b/crates/libs/windows/src/Windows/Win32/System/RemoteManagement/impl.rs index 9a47599e03..aa8c427d04 100644 --- a/crates/libs/windows/src/Windows/Win32/System/RemoteManagement/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/RemoteManagement/impl.rs @@ -64,7 +64,7 @@ impl IWSMan_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -108,7 +108,7 @@ impl IWSManConnectionOptions_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -145,7 +145,7 @@ impl IWSManConnectionOptionsEx_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -260,7 +260,7 @@ impl IWSManConnectionOptionsEx2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -316,7 +316,7 @@ impl IWSManEnumerator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -593,7 +593,7 @@ impl IWSManEx_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -623,7 +623,7 @@ impl IWSManEx2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -731,7 +731,7 @@ impl IWSManEx3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -758,7 +758,7 @@ impl IWSManInternal_Vtbl { Self { base__: super::Com::IDispatch_Vtbl::new::(), ConfigSDDL: ConfigSDDL:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -896,7 +896,7 @@ impl IWSManResourceLocator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IWSManResourceLocatorInternal_Impl: Sized {} @@ -906,7 +906,7 @@ impl IWSManResourceLocatorInternal_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1061,6 +1061,6 @@ impl IWSManSession_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } 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 4d02ffd55a..f7fd599dfd 100644 --- a/crates/libs/windows/src/Windows/Win32/System/RemoteManagement/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/RemoteManagement/mod.rs @@ -282,11 +282,15 @@ where WSManSignalShell(shell.into_param().abi(), command.into_param().abi(), flags, code.into_param().abi(), r#async, &mut result__); ::std::mem::transmute(result__) } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWSMan(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWSMan, + IWSMan_Vtbl, + 0x190d8637_5cd3_496d_ad24_69636bb5a3b5 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWSMan, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IWSMan { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -315,16 +319,6 @@ impl IWSMan { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWSMan, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWSMan { - type Vtable = IWSMan_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWSMan { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x190d8637_5cd3_496d_ad24_69636bb5a3b5); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWSMan_Vtbl { @@ -340,11 +334,15 @@ pub struct IWSMan_Vtbl { pub CommandLine: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub Error: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWSManConnectionOptions(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWSManConnectionOptions, + IWSManConnectionOptions_Vtbl, + 0xf704e861_9e52_464f_b786_da5eb2320fdd +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWSManConnectionOptions, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IWSManConnectionOptions { pub unsafe fn UserName(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -365,16 +363,6 @@ impl IWSManConnectionOptions { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWSManConnectionOptions, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWSManConnectionOptions { - type Vtable = IWSManConnectionOptions_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWSManConnectionOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf704e861_9e52_464f_b786_da5eb2320fdd); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWSManConnectionOptions_Vtbl { @@ -383,11 +371,15 @@ pub struct IWSManConnectionOptions_Vtbl { pub SetUserName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SetPassword: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, password: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWSManConnectionOptionsEx(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWSManConnectionOptionsEx, + IWSManConnectionOptionsEx_Vtbl, + 0xef43edf7_2a48_4d93_9526_8bd6ab6d4a6b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWSManConnectionOptionsEx, ::windows_core::IUnknown, super::Com::IDispatch, IWSManConnectionOptions); #[cfg(feature = "Win32_System_Com")] impl IWSManConnectionOptionsEx { pub unsafe fn UserName(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -418,16 +410,6 @@ impl IWSManConnectionOptionsEx { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWSManConnectionOptionsEx, ::windows_core::IUnknown, super::Com::IDispatch, IWSManConnectionOptions); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWSManConnectionOptionsEx { - type Vtable = IWSManConnectionOptionsEx_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWSManConnectionOptionsEx { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xef43edf7_2a48_4d93_9526_8bd6ab6d4a6b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWSManConnectionOptionsEx_Vtbl { @@ -435,11 +417,15 @@ pub struct IWSManConnectionOptionsEx_Vtbl { pub CertificateThumbprint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, thumbprint: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SetCertificateThumbprint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, thumbprint: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWSManConnectionOptionsEx2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWSManConnectionOptionsEx2, + IWSManConnectionOptionsEx2_Vtbl, + 0xf500c9ec_24ee_48ab_b38d_fc9a164c658e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWSManConnectionOptionsEx2, ::windows_core::IUnknown, super::Com::IDispatch, IWSManConnectionOptions, IWSManConnectionOptionsEx); #[cfg(feature = "Win32_System_Com")] impl IWSManConnectionOptionsEx2 { pub unsafe fn UserName(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -505,16 +491,6 @@ impl IWSManConnectionOptionsEx2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWSManConnectionOptionsEx2, ::windows_core::IUnknown, super::Com::IDispatch, IWSManConnectionOptions, IWSManConnectionOptionsEx); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWSManConnectionOptionsEx2 { - type Vtable = IWSManConnectionOptionsEx2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWSManConnectionOptionsEx2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf500c9ec_24ee_48ab_b38d_fc9a164c658e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWSManConnectionOptionsEx2_Vtbl { @@ -528,11 +504,15 @@ pub struct IWSManConnectionOptionsEx2_Vtbl { pub ProxyAuthenticationUseBasic: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut i32) -> ::windows_core::HRESULT, pub ProxyAuthenticationUseDigest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWSManEnumerator(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWSManEnumerator, + IWSManEnumerator_Vtbl, + 0xf3457ca9_abb9_4fa5_b850_90e8ca300e7f +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWSManEnumerator, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IWSManEnumerator { pub unsafe fn ReadItem(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -549,16 +529,6 @@ impl IWSManEnumerator { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWSManEnumerator, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWSManEnumerator { - type Vtable = IWSManEnumerator_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWSManEnumerator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf3457ca9_abb9_4fa5_b850_90e8ca300e7f); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWSManEnumerator_Vtbl { @@ -567,11 +537,15 @@ pub struct IWSManEnumerator_Vtbl { pub AtEndOfStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eos: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub Error: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWSManEx(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWSManEx, + IWSManEx_Vtbl, + 0x2d53bdaa_798e_49e6_a1aa_74d01256f411 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWSManEx, ::windows_core::IUnknown, super::Com::IDispatch, IWSMan); #[cfg(feature = "Win32_System_Com")] impl IWSManEx { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -685,16 +659,6 @@ impl IWSManEx { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWSManEx, ::windows_core::IUnknown, super::Com::IDispatch, IWSMan); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWSManEx { - type Vtable = IWSManEx_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWSManEx { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2d53bdaa_798e_49e6_a1aa_74d01256f411); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWSManEx_Vtbl { @@ -723,11 +687,15 @@ pub struct IWSManEx_Vtbl { pub EnumerationFlagHierarchyDeepBasePropsOnly: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: *mut i32) -> ::windows_core::HRESULT, pub EnumerationFlagReturnObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWSManEx2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWSManEx2, + IWSManEx2_Vtbl, + 0x1d1b5ae0_42d9_4021_8261_3987619512e9 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWSManEx2, ::windows_core::IUnknown, super::Com::IDispatch, IWSMan, IWSManEx); #[cfg(feature = "Win32_System_Com")] impl IWSManEx2 { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -845,27 +813,21 @@ impl IWSManEx2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWSManEx2, ::windows_core::IUnknown, super::Com::IDispatch, IWSMan, IWSManEx); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWSManEx2 { - type Vtable = IWSManEx2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWSManEx2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1d1b5ae0_42d9_4021_8261_3987619512e9); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWSManEx2_Vtbl { pub base__: IWSManEx_Vtbl, pub SessionFlagUseClientCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWSManEx3(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWSManEx3, + IWSManEx3_Vtbl, + 0x6400e966_011d_4eac_8474_049e0848afad +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWSManEx3, ::windows_core::IUnknown, super::Com::IDispatch, IWSMan, IWSManEx, IWSManEx2); #[cfg(feature = "Win32_System_Com")] impl IWSManEx3 { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1011,16 +973,6 @@ impl IWSManEx3 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWSManEx3, ::windows_core::IUnknown, super::Com::IDispatch, IWSMan, IWSManEx, IWSManEx2); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWSManEx3 { - type Vtable = IWSManEx3_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWSManEx3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6400e966_011d_4eac_8474_049e0848afad); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWSManEx3_Vtbl { @@ -1033,11 +985,15 @@ pub struct IWSManEx3_Vtbl { pub SessionFlagAllowNegotiateImplicitCredentials: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: *mut i32) -> ::windows_core::HRESULT, pub SessionFlagUseSsl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWSManInternal(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWSManInternal, + IWSManInternal_Vtbl, + 0x04ae2b1d_9954_4d99_94a9_a961e72c3a13 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWSManInternal, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IWSManInternal { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1051,16 +1007,6 @@ impl IWSManInternal { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWSManInternal, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWSManInternal { - type Vtable = IWSManInternal_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWSManInternal { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x04ae2b1d_9954_4d99_94a9_a961e72c3a13); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWSManInternal_Vtbl { @@ -1070,11 +1016,15 @@ pub struct IWSManInternal_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] ConfigSDDL: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWSManResourceLocator(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWSManResourceLocator, + IWSManResourceLocator_Vtbl, + 0xa7a1ba28_de41_466a_ad0a_c4059ead7428 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWSManResourceLocator, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IWSManResourceLocator { pub unsafe fn SetResourceURI(&self, uri: P0) -> ::windows_core::Result<()> @@ -1146,16 +1096,6 @@ impl IWSManResourceLocator { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWSManResourceLocator, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWSManResourceLocator { - type Vtable = IWSManResourceLocator_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWSManResourceLocator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa7a1ba28_de41_466a_ad0a_c4059ead7428); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWSManResourceLocator_Vtbl { @@ -1180,27 +1120,23 @@ pub struct IWSManResourceLocator_Vtbl { pub ClearOptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Error: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWSManResourceLocatorInternal(::windows_core::IUnknown); -impl IWSManResourceLocatorInternal {} +::windows_core::imp::com_interface!(IWSManResourceLocatorInternal, IWSManResourceLocatorInternal_Vtbl, 0xeffaead7_7ec8_4716_b9be_f2e7e9fb4adb); ::windows_core::imp::interface_hierarchy!(IWSManResourceLocatorInternal, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWSManResourceLocatorInternal { - type Vtable = IWSManResourceLocatorInternal_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWSManResourceLocatorInternal { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeffaead7_7ec8_4716_b9be_f2e7e9fb4adb); -} +impl IWSManResourceLocatorInternal {} #[repr(C)] #[doc(hidden)] pub struct IWSManResourceLocatorInternal_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWSManSession(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWSManSession, + IWSManSession_Vtbl, + 0xfc84fc58_1286_40c4_9da0_c8ef6ec241e0 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWSManSession, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IWSManSession { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1276,16 +1212,6 @@ impl IWSManSession { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWSManSession, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWSManSession { - type Vtable = IWSManSession_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWSManSession { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfc84fc58_1286_40c4_9da0_c8ef6ec241e0); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWSManSession_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/System/Search/impl.rs b/crates/libs/windows/src/Windows/Win32/System/Search/impl.rs index 32a744508a..a4eb8694db 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Search/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Search/impl.rs @@ -61,7 +61,7 @@ impl DataSource_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait DataSourceListener_Impl: Sized { @@ -95,7 +95,7 @@ impl DataSourceListener_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -109,7 +109,7 @@ impl DataSourceObject_Vtbl { Self { base__: super::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -154,7 +154,7 @@ impl IAccessor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_IndexServer\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -175,7 +175,7 @@ impl IAlterIndex_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), AlterIndex: AlterIndex:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_IndexServer\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -206,7 +206,7 @@ impl IAlterTable_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -227,7 +227,7 @@ impl IBindResource_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Bind: Bind:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IChapteredRowset_Impl: Sized { @@ -254,7 +254,7 @@ impl IChapteredRowset_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_IndexServer\"`"] @@ -299,7 +299,7 @@ impl IColumnMapper_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IColumnMapperCreator_Impl: Sized { @@ -322,7 +322,7 @@ impl IColumnMapperCreator_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetColumnMapper: GetColumnMapper:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_IndexServer\"`, `\"Win32_System_Com\"`"] @@ -353,7 +353,7 @@ impl IColumnsInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_IndexServer\"`, `\"Win32_System_Com\"`"] @@ -374,7 +374,7 @@ impl IColumnsInfo2_Vtbl { Self { base__: IColumnsInfo_Vtbl::new::(), GetRestrictedColumnInfo: GetRestrictedColumnInfo:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_IndexServer\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -405,7 +405,7 @@ impl IColumnsRowset_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICommand_Impl: Sized { @@ -445,7 +445,7 @@ impl ICommand_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICommandCost_Impl: Sized { @@ -500,7 +500,7 @@ impl ICommandCost_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_IndexServer\"`"] @@ -551,7 +551,7 @@ impl ICommandPersist_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICommandPrepare_Impl: Sized { @@ -578,7 +578,7 @@ impl ICommandPrepare_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_IndexServer\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -609,7 +609,7 @@ impl ICommandProperties_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICommandStream_Impl: Sized { @@ -636,7 +636,7 @@ impl ICommandStream_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICommandText_Impl: Sized + ICommand_Impl { @@ -663,7 +663,7 @@ impl ICommandText_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ICommandValidate_Impl: Sized { @@ -690,7 +690,7 @@ impl ICommandValidate_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -728,7 +728,7 @@ impl ICommandWithParameters_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Search_Common\"`, `\"Win32_System_Variant\"`"] @@ -818,7 +818,7 @@ impl ICondition_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Search_Common\"`, `\"Win32_System_Variant\"`, `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -855,7 +855,7 @@ impl ICondition2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Search_Common\"`, `\"Win32_System_Variant\"`"] @@ -924,7 +924,7 @@ impl IConditionFactory_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Search_Common\"`, `\"Win32_System_Variant\"`, `\"Win32_UI_Shell_Common\"`, `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -1004,7 +1004,7 @@ impl IConditionFactory2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Search_Common\"`, `\"Win32_System_Variant\"`"] @@ -1063,7 +1063,7 @@ impl IConditionGenerator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IConvertType_Impl: Sized { @@ -1080,7 +1080,7 @@ impl IConvertType_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CanConvert: CanConvert:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1101,7 +1101,7 @@ impl ICreateRow_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CreateRow: CreateRow:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDBAsynchNotify_Impl: Sized { @@ -1135,7 +1135,7 @@ impl IDBAsynchNotify_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDBAsynchStatus_Impl: Sized { @@ -1162,7 +1162,7 @@ impl IDBAsynchStatus_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_IndexServer\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1183,7 +1183,7 @@ impl IDBBinderProperties_Vtbl { Self { base__: IDBProperties_Vtbl::new::(), Reset: Reset:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDBCreateCommand_Impl: Sized { @@ -1206,7 +1206,7 @@ impl IDBCreateCommand_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CreateCommand: CreateCommand:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDBCreateSession_Impl: Sized { @@ -1229,7 +1229,7 @@ impl IDBCreateSession_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CreateSession: CreateSession:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_IndexServer\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1274,7 +1274,7 @@ impl IDBDataSourceAdmin_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDBInfo_Impl: Sized { @@ -1307,7 +1307,7 @@ impl IDBInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDBInitialize_Impl: Sized { @@ -1334,7 +1334,7 @@ impl IDBInitialize_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDBPromptInitialize_Impl: Sized { @@ -1367,7 +1367,7 @@ impl IDBPromptInitialize_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_IndexServer\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1405,7 +1405,7 @@ impl IDBProperties_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDBSchemaCommand_Impl: Sized { @@ -1438,7 +1438,7 @@ impl IDBSchemaCommand_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_IndexServer\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1469,7 +1469,7 @@ impl IDBSchemaRowset_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1500,7 +1500,7 @@ impl IDCInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDataConvert_Impl: Sized { @@ -1548,7 +1548,7 @@ impl IDataConvert_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1625,7 +1625,7 @@ impl IDataInitialize_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1682,7 +1682,7 @@ impl IDataSourceLocator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IEntity_Impl: Sized { @@ -1769,7 +1769,7 @@ impl IEntity_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1833,7 +1833,7 @@ impl IEnumItemProperties_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumSearchRoots_Impl: Sized { @@ -1880,7 +1880,7 @@ impl IEnumSearchRoots_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumSearchScopeRules_Impl: Sized { @@ -1927,7 +1927,7 @@ impl IEnumSearchScopeRules_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumSubscription_Impl: Sized { @@ -1987,7 +1987,7 @@ impl IEnumSubscription_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2025,7 +2025,7 @@ impl IErrorLookup_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2108,7 +2108,7 @@ impl IErrorRecords_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IGetDataSource_Impl: Sized { @@ -2131,7 +2131,7 @@ impl IGetDataSource_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetDataSource: GetDataSource:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IGetRow_Impl: Sized { @@ -2170,7 +2170,7 @@ impl IGetRow_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IGetSession_Impl: Sized { @@ -2193,7 +2193,7 @@ impl IGetSession_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetSession: GetSession:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IGetSourceRow_Impl: Sized { @@ -2216,7 +2216,7 @@ impl IGetSourceRow_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetSourceRow: GetSourceRow:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_IndexServer\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2247,7 +2247,7 @@ impl IIndexDefinition_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] @@ -2268,7 +2268,7 @@ impl IInterval_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetLimits: GetLimits:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_IndexServer\"`, `\"Win32_System_Com_StructuredStorage\"`"] @@ -2306,7 +2306,7 @@ impl ILoadFilter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_IndexServer\"`, `\"Win32_System_Com_StructuredStorage\"`"] @@ -2330,7 +2330,7 @@ impl ILoadFilterWithPrivateComActivation_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_IndexServer\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2388,7 +2388,7 @@ impl IMDDataset_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMDFind_Impl: Sized { @@ -2427,7 +2427,7 @@ impl IMDFind_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_IndexServer\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2448,7 +2448,7 @@ impl IMDRangeRowset_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetRangeRowset: GetRangeRowset:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMetaData_Impl: Sized { @@ -2465,7 +2465,7 @@ impl IMetaData_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetData: GetData:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMultipleResults_Impl: Sized { @@ -2482,7 +2482,7 @@ impl IMultipleResults_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetResult: GetResult:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait INamedEntity_Impl: Sized { @@ -2515,7 +2515,7 @@ impl INamedEntity_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait INamedEntityCollector_Impl: Sized { @@ -2532,7 +2532,7 @@ impl INamedEntityCollector_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Add: Add:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Security_Authorization\"`, `\"Win32_Storage_IndexServer\"`"] @@ -2596,7 +2596,7 @@ impl IObjectAccessControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IOpLockStatus_Impl: Sized { @@ -2648,7 +2648,7 @@ impl IOpLockStatus_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_IndexServer\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2669,7 +2669,7 @@ impl IOpenRowset_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OpenRowset: OpenRowset:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IParentRowset_Impl: Sized { @@ -2692,7 +2692,7 @@ impl IParentRowset_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetChildRowset: GetChildRowset:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_IndexServer\"`"] @@ -2719,7 +2719,7 @@ impl IProtocolHandlerSite_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetFilter: GetFilter:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2746,7 +2746,7 @@ impl IProvideMoniker_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetMoniker: GetMoniker:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] @@ -2849,7 +2849,7 @@ impl IQueryParser_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] @@ -2887,7 +2887,7 @@ impl IQueryParserManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Search_Common\"`, `\"Win32_System_Variant\"`"] @@ -2925,7 +2925,7 @@ impl IQuerySolution_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IReadData_Impl: Sized { @@ -2952,7 +2952,7 @@ impl IReadData_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRegisterProvider_Impl: Sized { @@ -2992,7 +2992,7 @@ impl IRegisterProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRelationship_Impl: Sized { @@ -3052,7 +3052,7 @@ impl IRelationship_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] @@ -3073,7 +3073,7 @@ impl IRichChunk_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetData: GetData:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_IndexServer\"`"] @@ -3111,7 +3111,7 @@ impl IRow_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_IndexServer\"`"] @@ -3132,7 +3132,7 @@ impl IRowChange_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), SetColumns: SetColumns:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRowPosition_Impl: Sized { @@ -3186,7 +3186,7 @@ impl IRowPosition_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRowPositionChange_Impl: Sized { @@ -3203,7 +3203,7 @@ impl IRowPositionChange_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnRowPositionChange: OnRowPositionChange:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_IndexServer\"`, `\"Win32_System_Com\"`"] @@ -3234,7 +3234,7 @@ impl IRowSchemaChange_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IRowset_Impl: Sized { @@ -3282,7 +3282,7 @@ impl IRowset_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRowsetAsynch_Impl: Sized { @@ -3309,7 +3309,7 @@ impl IRowsetAsynch_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRowsetBookmark_Impl: Sized { @@ -3326,7 +3326,7 @@ impl IRowsetBookmark_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), PositionOnBookmark: PositionOnBookmark:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRowsetChange_Impl: Sized { @@ -3366,7 +3366,7 @@ impl IRowsetChange_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRowsetChangeExtInfo_Impl: Sized { @@ -3393,7 +3393,7 @@ impl IRowsetChangeExtInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRowsetChapterMember_Impl: Sized { @@ -3410,7 +3410,7 @@ impl IRowsetChapterMember_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), IsRowInChapter: IsRowInChapter:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRowsetCopyRows_Impl: Sized { @@ -3463,7 +3463,7 @@ impl IRowsetCopyRows_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_IndexServer\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3500,7 +3500,7 @@ impl IRowsetCurrentIndex_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] @@ -3545,7 +3545,7 @@ impl IRowsetEvents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRowsetExactScroll_Impl: Sized + IRowsetScroll_Impl { @@ -3562,7 +3562,7 @@ impl IRowsetExactScroll_Vtbl { Self { base__: IRowsetScroll_Vtbl::new::(), GetExactPosition: GetExactPosition:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IRowsetFastLoad_Impl: Sized { @@ -3589,7 +3589,7 @@ impl IRowsetFastLoad_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRowsetFind_Impl: Sized { @@ -3606,7 +3606,7 @@ impl IRowsetFind_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), FindNextRow: FindNextRow:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRowsetIdentity_Impl: Sized { @@ -3623,7 +3623,7 @@ impl IRowsetIdentity_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), IsSameRow: IsSameRow:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_IndexServer\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3661,7 +3661,7 @@ impl IRowsetIndex_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_IndexServer\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3711,7 +3711,7 @@ impl IRowsetInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRowsetKeys_Impl: Sized { @@ -3728,7 +3728,7 @@ impl IRowsetKeys_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), ListKeys: ListKeys:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRowsetLocate_Impl: Sized + IRowset_Impl { @@ -3775,7 +3775,7 @@ impl IRowsetLocate_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IRowsetNewRowAfter_Impl: Sized { @@ -3798,7 +3798,7 @@ impl IRowsetNewRowAfter_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), SetNewDataAfter: SetNewDataAfter:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRowsetNextRowset_Impl: Sized { @@ -3821,7 +3821,7 @@ impl IRowsetNextRowset_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetNextRowset: GetNextRowset:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRowsetNotify_Impl: Sized { @@ -3855,7 +3855,7 @@ impl IRowsetNotify_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRowsetPrioritization_Impl: Sized { @@ -3889,7 +3889,7 @@ impl IRowsetPrioritization_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRowsetQueryStatus_Impl: Sized { @@ -3916,7 +3916,7 @@ impl IRowsetQueryStatus_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRowsetRefresh_Impl: Sized { @@ -3943,7 +3943,7 @@ impl IRowsetRefresh_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRowsetResynch_Impl: Sized { @@ -3970,7 +3970,7 @@ impl IRowsetResynch_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRowsetScroll_Impl: Sized + IRowsetLocate_Impl { @@ -3997,7 +3997,7 @@ impl IRowsetScroll_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IRowsetUpdate_Impl: Sized + IRowsetChange_Impl { @@ -4045,7 +4045,7 @@ impl IRowsetUpdate_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IRowsetView_Impl: Sized { @@ -4078,7 +4078,7 @@ impl IRowsetView_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRowsetWatchAll_Impl: Sized { @@ -4112,7 +4112,7 @@ impl IRowsetWatchAll_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRowsetWatchNotify_Impl: Sized { @@ -4129,7 +4129,7 @@ impl IRowsetWatchNotify_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnChange: OnChange:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRowsetWatchRegion_Impl: Sized + IRowsetWatchAll_Impl { @@ -4190,7 +4190,7 @@ impl IRowsetWatchRegion_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -4221,7 +4221,7 @@ impl IRowsetWithParameters_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISQLErrorInfo_Impl: Sized { @@ -4238,7 +4238,7 @@ impl ISQLErrorInfo_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetSQLInfo: GetSQLInfo:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4259,7 +4259,7 @@ impl ISQLGetDiagField_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetDiagField: GetDiagField:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Variant\"`"] @@ -4280,7 +4280,7 @@ impl ISQLRequestDiagFields_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), RequestDiagFields: RequestDiagFields:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISQLServerErrorInfo_Impl: Sized { @@ -4297,7 +4297,7 @@ impl ISQLServerErrorInfo_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetErrorInfo: GetErrorInfo:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISchemaLocalizerSupport_Impl: Sized { @@ -4320,7 +4320,7 @@ impl ISchemaLocalizerSupport_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Localize: Localize:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_IndexServer\"`"] @@ -4351,7 +4351,7 @@ impl ISchemaLock_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISchemaProvider_Impl: Sized { @@ -4425,7 +4425,7 @@ impl ISchemaProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_IndexServer\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4470,7 +4470,7 @@ impl IScopedOperations_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] @@ -4747,7 +4747,7 @@ impl ISearchCatalogManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] @@ -4768,7 +4768,7 @@ impl ISearchCatalogManager2_Vtbl { Self { base__: ISearchCatalogManager_Vtbl::new::(), PrioritizeMatchingURLs: PrioritizeMatchingURLs:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ISearchCrawlScopeManager_Impl: Sized { @@ -4929,7 +4929,7 @@ impl ISearchCrawlScopeManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISearchCrawlScopeManager2_Impl: Sized + ISearchCrawlScopeManager_Impl { @@ -4946,7 +4946,7 @@ impl ISearchCrawlScopeManager2_Vtbl { Self { base__: ISearchCrawlScopeManager_Vtbl::new::(), GetVersion: GetVersion:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -4984,7 +4984,7 @@ impl ISearchItemsChangedSink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISearchLanguageSupport_Impl: Sized { @@ -5044,7 +5044,7 @@ impl ISearchLanguageSupport_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] @@ -5206,7 +5206,7 @@ impl ISearchManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] @@ -5243,7 +5243,7 @@ impl ISearchManager2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ISearchNotifyInlineSite_Impl: Sized { @@ -5270,7 +5270,7 @@ impl ISearchNotifyInlineSite_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISearchPersistentItemsChangedSink_Impl: Sized { @@ -5304,7 +5304,7 @@ impl ISearchPersistentItemsChangedSink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISearchProtocol_Impl: Sized { @@ -5351,7 +5351,7 @@ impl ISearchProtocol_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -5378,7 +5378,7 @@ impl ISearchProtocol2_Vtbl { Self { base__: ISearchProtocol_Vtbl::new::(), CreateAccessorEx: CreateAccessorEx:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ISearchProtocolThreadContext_Impl: Sized { @@ -5412,7 +5412,7 @@ impl ISearchProtocolThreadContext_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`, `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -5642,7 +5642,7 @@ impl ISearchQueryHelper_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_IndexServer\"`, `\"Win32_System_Com\"`"] @@ -5680,7 +5680,7 @@ impl ISearchQueryHits_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISearchRoot_Impl: Sized { @@ -5913,7 +5913,7 @@ impl ISearchRoot_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISearchScopeRule_Impl: Sized { @@ -5978,7 +5978,7 @@ impl ISearchScopeRule_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -5999,7 +5999,7 @@ impl ISearchViewChangedSink_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnChange: OnChange:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Security_Authorization\"`"] @@ -6049,7 +6049,7 @@ impl ISecurityInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IService_Impl: Sized { @@ -6066,7 +6066,7 @@ impl IService_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), InvokeService: InvokeService:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_IndexServer\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6097,7 +6097,7 @@ impl ISessionProperties_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISimpleCommandCreator_Impl: Sized { @@ -6131,7 +6131,7 @@ impl ISimpleCommandCreator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_IndexServer\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6152,7 +6152,7 @@ impl ISourcesRowset_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetSourcesRowset: GetSourcesRowset:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IStemmer_Impl: Sized { @@ -6186,7 +6186,7 @@ impl IStemmer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6264,7 +6264,7 @@ impl ISubscriptionItem_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISubscriptionMgr_Impl: Sized { @@ -6339,7 +6339,7 @@ impl ISubscriptionMgr_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISubscriptionMgr2_Impl: Sized + ISubscriptionMgr_Impl { @@ -6419,7 +6419,7 @@ impl ISubscriptionMgr2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_IndexServer\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6440,7 +6440,7 @@ impl ITableCreation_Vtbl { Self { base__: ITableDefinition_Vtbl::new::(), GetTableDefinition: GetTableDefinition:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_IndexServer\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6485,7 +6485,7 @@ impl ITableDefinition_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_IndexServer\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6524,7 +6524,7 @@ impl ITableDefinitionWithConstraints_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_IndexServer\"`"] @@ -6555,7 +6555,7 @@ impl ITableRename_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITokenCollection_Impl: Sized { @@ -6582,7 +6582,7 @@ impl ITokenCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_DistributedTransactionCoordinator\"`"] @@ -6619,7 +6619,7 @@ impl ITransactionJoin_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_DistributedTransactionCoordinator\"`"] @@ -6656,7 +6656,7 @@ impl ITransactionLocal_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_DistributedTransactionCoordinator\"`"] @@ -6683,7 +6683,7 @@ impl ITransactionObject_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetTransactionObject: GetTransactionObject:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Security_Authorization\"`, `\"Win32_Storage_IndexServer\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6735,7 +6735,7 @@ impl ITrusteeAdmin_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Security_Authorization\"`"] @@ -6793,7 +6793,7 @@ impl ITrusteeGroupAdmin_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUMS_Impl: Sized { @@ -6865,7 +6865,7 @@ impl IUMSInitialize_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Initialize: Initialize:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_IndexServer\"`, `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] @@ -7009,7 +7009,7 @@ impl IUrlAccessor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_IndexServer\"`, `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] @@ -7047,7 +7047,7 @@ impl IUrlAccessor2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_IndexServer\"`, `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] @@ -7068,7 +7068,7 @@ impl IUrlAccessor3_Vtbl { Self { base__: IUrlAccessor2_Vtbl::new::(), GetImpersonationSidBlobs: GetImpersonationSidBlobs:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_IndexServer\"`, `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`, `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -7111,7 +7111,7 @@ impl IUrlAccessor4_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IViewChapter_Impl: Sized { @@ -7144,7 +7144,7 @@ impl IViewChapter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -7182,7 +7182,7 @@ impl IViewFilter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IViewRowset_Impl: Sized { @@ -7221,7 +7221,7 @@ impl IViewRowset_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IViewSort_Impl: Sized { @@ -7248,7 +7248,7 @@ impl IViewSort_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_IndexServer\"`"] @@ -7293,7 +7293,7 @@ impl IWordBreaker_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWordFormSink_Impl: Sized { @@ -7320,7 +7320,7 @@ impl IWordFormSink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_IndexServer\"`"] @@ -7372,7 +7372,7 @@ impl IWordSink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -7547,7 +7547,7 @@ impl OLEDBSimpleProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait OLEDBSimpleProviderListener_Impl: Sized { @@ -7616,6 +7616,6 @@ impl OLEDBSimpleProviderListener_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 5708330e46..09a4a0d34f 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Search/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Search/mod.rs @@ -1628,9 +1628,8 @@ pub unsafe fn dbprtypeW(param0: i32) -> ::windows_core::PWSTR { ::windows_targets::link!("odbcbcp.dll" "system" fn dbprtypeW(param0 : i32) -> ::windows_core::PWSTR); dbprtypeW(param0) } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct DataSource(::windows_core::IUnknown); +::windows_core::imp::com_interface!(DataSource, DataSource_Vtbl, 0x7c0ffab3_cd84_11d0_949a_00a0c91110ed); +::windows_core::imp::interface_hierarchy!(DataSource, ::windows_core::IUnknown); impl DataSource { pub unsafe fn getDataMember(&self, bstrdm: *const u16, riid: *const ::windows_core::GUID) -> ::windows_core::Result<::windows_core::IUnknown> { let mut result__ = ::std::mem::zeroed(); @@ -1657,13 +1656,6 @@ impl DataSource { (::windows_core::Interface::vtable(self).removeDataSourceListener)(::windows_core::Interface::as_raw(self), pdsl.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(DataSource, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for DataSource { - type Vtable = DataSource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DataSource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7c0ffab3_cd84_11d0_949a_00a0c91110ed); -} #[repr(C)] #[doc(hidden)] pub struct DataSource_Vtbl { @@ -1674,9 +1666,8 @@ pub struct DataSource_Vtbl { pub addDataSourceListener: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdsl: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub removeDataSourceListener: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdsl: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct DataSourceListener(::windows_core::IUnknown); +::windows_core::imp::com_interface!(DataSourceListener, DataSourceListener_Vtbl, 0x7c0ffab2_cd84_11d0_949a_00a0c91110ed); +::windows_core::imp::interface_hierarchy!(DataSourceListener, ::windows_core::IUnknown); impl DataSourceListener { pub unsafe fn dataMemberChanged(&self, bstrdm: *const u16) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).dataMemberChanged)(::windows_core::Interface::as_raw(self), bstrdm).ok() @@ -1688,13 +1679,6 @@ impl DataSourceListener { (::windows_core::Interface::vtable(self).dataMemberRemoved)(::windows_core::Interface::as_raw(self), bstrdm).ok() } } -::windows_core::imp::interface_hierarchy!(DataSourceListener, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for DataSourceListener { - type Vtable = DataSourceListener_Vtbl; -} -unsafe impl ::windows_core::ComInterface for DataSourceListener { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7c0ffab2_cd84_11d0_949a_00a0c91110ed); -} #[repr(C)] #[doc(hidden)] pub struct DataSourceListener_Vtbl { @@ -1703,32 +1687,25 @@ pub struct DataSourceListener_Vtbl { pub dataMemberAdded: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdm: *const u16) -> ::windows_core::HRESULT, pub dataMemberRemoved: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdm: *const u16) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] -#[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct DataSourceObject(::windows_core::IUnknown); #[cfg(feature = "Win32_System_Com")] -impl DataSourceObject {} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + DataSourceObject, + DataSourceObject_Vtbl, + 0x0ae9a4e4_18d4_11d1_b3b3_00aa00c1a924 +); #[cfg(feature = "Win32_System_Com")] ::windows_core::imp::interface_hierarchy!(DataSourceObject, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for DataSourceObject { - type Vtable = DataSourceObject_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for DataSourceObject { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0ae9a4e4_18d4_11d1_b3b3_00aa00c1a924); -} +impl DataSourceObject {} #[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct DataSourceObject_Vtbl { pub base__: super::Com::IDispatch_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAccessor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAccessor, IAccessor_Vtbl, 0x0c733a8c_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(IAccessor, ::windows_core::IUnknown); impl IAccessor { pub unsafe fn AddRefAccessor(&self, haccessor: P0, pcrefcount: ::core::option::Option<*mut u32>) -> ::windows_core::Result<()> where @@ -1756,13 +1733,6 @@ impl IAccessor { (::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::imp::interface_hierarchy!(IAccessor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAccessor { - type Vtable = IAccessor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAccessor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733a8c_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IAccessor_Vtbl { @@ -1778,9 +1748,8 @@ pub struct IAccessor_Vtbl { GetBindings: usize, pub ReleaseAccessor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, haccessor: HACCESSOR, pcrefcount: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAlterIndex(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAlterIndex, IAlterIndex_Vtbl, 0x0c733aa6_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(IAlterIndex, ::windows_core::IUnknown); impl IAlterIndex { #[doc = "Required features: `\"Win32_Storage_IndexServer\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -1788,13 +1757,6 @@ impl IAlterIndex { (::windows_core::Interface::vtable(self).AlterIndex)(::windows_core::Interface::as_raw(self), ptableid, pindexid, pnewindexid, rgpropertysets.len().try_into().unwrap(), ::core::mem::transmute(rgpropertysets.as_ptr())).ok() } } -::windows_core::imp::interface_hierarchy!(IAlterIndex, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAlterIndex { - type Vtable = IAlterIndex_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAlterIndex { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733aa6_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IAlterIndex_Vtbl { @@ -1804,9 +1766,8 @@ pub struct IAlterIndex_Vtbl { #[cfg(not(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] AlterIndex: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAlterTable(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAlterTable, IAlterTable_Vtbl, 0x0c733aa5_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(IAlterTable, ::windows_core::IUnknown); impl IAlterTable { #[doc = "Required features: `\"Win32_Storage_IndexServer\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -1819,13 +1780,6 @@ impl IAlterTable { (::windows_core::Interface::vtable(self).AlterTable)(::windows_core::Interface::as_raw(self), ptableid, pnewtableid, rgpropertysets.len().try_into().unwrap(), ::core::mem::transmute(rgpropertysets.as_ptr())).ok() } } -::windows_core::imp::interface_hierarchy!(IAlterTable, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAlterTable { - type Vtable = IAlterTable_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAlterTable { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733aa5_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IAlterTable_Vtbl { @@ -1839,9 +1793,8 @@ pub struct IAlterTable_Vtbl { #[cfg(not(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] AlterTable: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBindResource(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBindResource, IBindResource_Vtbl, 0x0c733ab1_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(IBindResource, ::windows_core::IUnknown); impl IBindResource { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -1854,13 +1807,6 @@ impl IBindResource { (::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::imp::interface_hierarchy!(IBindResource, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBindResource { - type Vtable = IBindResource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBindResource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733ab1_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IBindResource_Vtbl { @@ -1870,9 +1816,8 @@ pub struct IBindResource_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Bind: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IChapteredRowset(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IChapteredRowset, IChapteredRowset_Vtbl, 0x0c733a93_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(IChapteredRowset, ::windows_core::IUnknown); impl IChapteredRowset { pub unsafe fn AddRefChapter(&self, hchapter: usize, pcrefcount: ::core::option::Option<*mut u32>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).AddRefChapter)(::windows_core::Interface::as_raw(self), hchapter, ::core::mem::transmute(pcrefcount.unwrap_or(::std::ptr::null_mut()))).ok() @@ -1881,13 +1826,6 @@ impl IChapteredRowset { (::windows_core::Interface::vtable(self).ReleaseChapter)(::windows_core::Interface::as_raw(self), hchapter, ::core::mem::transmute(pcrefcount.unwrap_or(::std::ptr::null_mut()))).ok() } } -::windows_core::imp::interface_hierarchy!(IChapteredRowset, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IChapteredRowset { - type Vtable = IChapteredRowset_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IChapteredRowset { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733a93_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IChapteredRowset_Vtbl { @@ -1895,9 +1833,8 @@ pub struct IChapteredRowset_Vtbl { pub AddRefChapter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hchapter: usize, pcrefcount: *mut u32) -> ::windows_core::HRESULT, pub ReleaseChapter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hchapter: usize, pcrefcount: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IColumnMapper(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IColumnMapper, IColumnMapper_Vtbl, 0x0b63e37a_9ccc_11d0_bcdb_00805fccce04); +::windows_core::imp::interface_hierarchy!(IColumnMapper, ::windows_core::IUnknown); impl IColumnMapper { #[doc = "Required features: `\"Win32_Storage_IndexServer\"`"] #[cfg(feature = "Win32_Storage_IndexServer")] @@ -1921,13 +1858,6 @@ impl IColumnMapper { (::windows_core::Interface::vtable(self).IsMapUpToDate)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IColumnMapper, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IColumnMapper { - type Vtable = IColumnMapper_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IColumnMapper { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0b63e37a_9ccc_11d0_bcdb_00805fccce04); -} #[repr(C)] #[doc(hidden)] pub struct IColumnMapper_Vtbl { @@ -1946,9 +1876,8 @@ pub struct IColumnMapper_Vtbl { EnumPropInfo: usize, pub IsMapUpToDate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IColumnMapperCreator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IColumnMapperCreator, IColumnMapperCreator_Vtbl, 0x0b63e37b_9ccc_11d0_bcdb_00805fccce04); +::windows_core::imp::interface_hierarchy!(IColumnMapperCreator, ::windows_core::IUnknown); impl IColumnMapperCreator { pub unsafe fn GetColumnMapper(&self, wcsmachinename: P0, wcscatalogname: P1) -> ::windows_core::Result where @@ -1959,22 +1888,14 @@ impl IColumnMapperCreator { (::windows_core::Interface::vtable(self).GetColumnMapper)(::windows_core::Interface::as_raw(self), wcsmachinename.into_param().abi(), wcscatalogname.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IColumnMapperCreator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IColumnMapperCreator { - type Vtable = IColumnMapperCreator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IColumnMapperCreator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0b63e37b_9ccc_11d0_bcdb_00805fccce04); -} #[repr(C)] #[doc(hidden)] pub struct IColumnMapperCreator_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetColumnMapper: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wcsmachinename: ::windows_core::PCWSTR, wcscatalogname: ::windows_core::PCWSTR, ppcolumnmapper: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IColumnsInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IColumnsInfo, IColumnsInfo_Vtbl, 0x0c733a11_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(IColumnsInfo, ::windows_core::IUnknown); impl IColumnsInfo { #[doc = "Required features: `\"Win32_Storage_IndexServer\"`, `\"Win32_System_Com\"`"] #[cfg(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com"))] @@ -1987,13 +1908,6 @@ impl IColumnsInfo { (::windows_core::Interface::vtable(self).MapColumnIDs)(::windows_core::Interface::as_raw(self), ccolumnids, ::core::mem::transmute(rgcolumnids.unwrap_or(::std::ptr::null())), ::core::mem::transmute(rgcolumns.unwrap_or(::std::ptr::null_mut()))).ok() } } -::windows_core::imp::interface_hierarchy!(IColumnsInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IColumnsInfo { - type Vtable = IColumnsInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IColumnsInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733a11_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IColumnsInfo_Vtbl { @@ -2007,9 +1921,8 @@ pub struct IColumnsInfo_Vtbl { #[cfg(not(feature = "Win32_Storage_IndexServer"))] MapColumnIDs: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IColumnsInfo2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IColumnsInfo2, IColumnsInfo2_Vtbl, 0x0c733ab8_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(IColumnsInfo2, ::windows_core::IUnknown, IColumnsInfo); impl IColumnsInfo2 { #[doc = "Required features: `\"Win32_Storage_IndexServer\"`, `\"Win32_System_Com\"`"] #[cfg(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com"))] @@ -2027,13 +1940,6 @@ impl IColumnsInfo2 { (::windows_core::Interface::vtable(self).GetRestrictedColumnInfo)(::windows_core::Interface::as_raw(self), rgcolumnidmasks.len().try_into().unwrap(), ::core::mem::transmute(rgcolumnidmasks.as_ptr()), dwflags, pccolumns, prgcolumnids, prgcolumninfo, ::core::mem::transmute(ppstringsbuffer.unwrap_or(::std::ptr::null_mut()))).ok() } } -::windows_core::imp::interface_hierarchy!(IColumnsInfo2, ::windows_core::IUnknown, IColumnsInfo); -unsafe impl ::windows_core::Interface for IColumnsInfo2 { - type Vtable = IColumnsInfo2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IColumnsInfo2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733ab8_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IColumnsInfo2_Vtbl { @@ -2043,9 +1949,8 @@ pub struct IColumnsInfo2_Vtbl { #[cfg(not(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com")))] GetRestrictedColumnInfo: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IColumnsRowset(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IColumnsRowset, IColumnsRowset_Vtbl, 0x0c733a10_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(IColumnsRowset, ::windows_core::IUnknown); impl IColumnsRowset { #[doc = "Required features: `\"Win32_Storage_IndexServer\"`"] #[cfg(feature = "Win32_Storage_IndexServer")] @@ -2061,13 +1966,6 @@ impl IColumnsRowset { (::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::imp::interface_hierarchy!(IColumnsRowset, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IColumnsRowset { - type Vtable = IColumnsRowset_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IColumnsRowset { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733a10_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IColumnsRowset_Vtbl { @@ -2081,9 +1979,8 @@ pub struct IColumnsRowset_Vtbl { #[cfg(not(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] GetColumnsRowset: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICommand(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICommand, ICommand_Vtbl, 0x0c733a63_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(ICommand, ::windows_core::IUnknown); impl ICommand { pub unsafe fn Cancel(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Cancel)(::windows_core::Interface::as_raw(self)).ok() @@ -2099,13 +1996,6 @@ impl ICommand { (::windows_core::Interface::vtable(self).GetDBSession)(::windows_core::Interface::as_raw(self), riid, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ICommand, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICommand { - type Vtable = ICommand_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICommand { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733a63_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct ICommand_Vtbl { @@ -2114,9 +2004,8 @@ pub struct ICommand_Vtbl { pub Execute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punkouter: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, pparams: *mut DBPARAMS, pcrowsaffected: *mut isize, pprowset: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDBSession: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppsession: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICommandCost(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICommandCost, ICommandCost_Vtbl, 0x0c733a4e_2a1c_11ce_ade5_00aa0044773d); +::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 @@ -2155,13 +2044,6 @@ impl ICommandCost { (::windows_core::Interface::vtable(self).SetCostLimits)(::windows_core::Interface::as_raw(self), pwszrowsetname.into_param().abi(), ccostlimits, prgcostlimits, dwexecutionflags).ok() } } -::windows_core::imp::interface_hierarchy!(ICommandCost, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICommandCost { - type Vtable = ICommandCost_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICommandCost { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733a4e_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct ICommandCost_Vtbl { @@ -2173,9 +2055,8 @@ pub struct ICommandCost_Vtbl { pub SetCostGoals: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwszrowsetname: ::windows_core::PCWSTR, ccostgoals: u32, rgcostgoals: *const DBCOST) -> ::windows_core::HRESULT, pub SetCostLimits: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwszrowsetname: ::windows_core::PCWSTR, ccostlimits: u32, prgcostlimits: *const DBCOST, dwexecutionflags: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICommandPersist(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICommandPersist, ICommandPersist_Vtbl, 0x0c733aa7_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(ICommandPersist, ::windows_core::IUnknown); impl ICommandPersist { #[doc = "Required features: `\"Win32_Storage_IndexServer\"`"] #[cfg(feature = "Win32_Storage_IndexServer")] @@ -2199,13 +2080,6 @@ impl ICommandPersist { (::windows_core::Interface::vtable(self).SaveCommand)(::windows_core::Interface::as_raw(self), pcommandid, dwflags).ok() } } -::windows_core::imp::interface_hierarchy!(ICommandPersist, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICommandPersist { - type Vtable = ICommandPersist_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICommandPersist { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733aa7_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct ICommandPersist_Vtbl { @@ -2227,9 +2101,8 @@ pub struct ICommandPersist_Vtbl { #[cfg(not(feature = "Win32_Storage_IndexServer"))] SaveCommand: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICommandPrepare(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICommandPrepare, ICommandPrepare_Vtbl, 0x0c733a26_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(ICommandPrepare, ::windows_core::IUnknown); impl ICommandPrepare { pub unsafe fn Prepare(&self, cexpectedruns: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Prepare)(::windows_core::Interface::as_raw(self), cexpectedruns).ok() @@ -2238,13 +2111,6 @@ impl ICommandPrepare { (::windows_core::Interface::vtable(self).Unprepare)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ICommandPrepare, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICommandPrepare { - type Vtable = ICommandPrepare_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICommandPrepare { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733a26_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct ICommandPrepare_Vtbl { @@ -2252,9 +2118,8 @@ pub struct ICommandPrepare_Vtbl { pub Prepare: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cexpectedruns: u32) -> ::windows_core::HRESULT, pub Unprepare: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICommandProperties(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICommandProperties, ICommandProperties_Vtbl, 0x0c733a79_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(ICommandProperties, ::windows_core::IUnknown); impl ICommandProperties { #[doc = "Required features: `\"Win32_Storage_IndexServer\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -2267,13 +2132,6 @@ impl ICommandProperties { (::windows_core::Interface::vtable(self).SetProperties)(::windows_core::Interface::as_raw(self), rgpropertysets.len().try_into().unwrap(), ::core::mem::transmute(rgpropertysets.as_ptr())).ok() } } -::windows_core::imp::interface_hierarchy!(ICommandProperties, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICommandProperties { - type Vtable = ICommandProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICommandProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733a79_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct ICommandProperties_Vtbl { @@ -2287,9 +2145,8 @@ pub struct ICommandProperties_Vtbl { #[cfg(not(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] SetProperties: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICommandStream(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICommandStream, ICommandStream_Vtbl, 0x0c733abf_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(ICommandStream, ::windows_core::IUnknown); impl ICommandStream { pub unsafe fn GetCommandStream(&self, piid: ::core::option::Option<*mut ::windows_core::GUID>, pguiddialect: ::core::option::Option<*mut ::windows_core::GUID>, ppcommandstream: *mut ::core::option::Option<::windows_core::IUnknown>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetCommandStream)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(piid.unwrap_or(::std::ptr::null_mut())), ::core::mem::transmute(pguiddialect.unwrap_or(::std::ptr::null_mut())), ::core::mem::transmute(ppcommandstream)).ok() @@ -2301,13 +2158,6 @@ impl ICommandStream { (::windows_core::Interface::vtable(self).SetCommandStream)(::windows_core::Interface::as_raw(self), riid, rguiddialect, pcommandstream.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ICommandStream, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICommandStream { - type Vtable = ICommandStream_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICommandStream { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733abf_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct ICommandStream_Vtbl { @@ -2315,9 +2165,8 @@ pub struct ICommandStream_Vtbl { pub GetCommandStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, piid: *mut ::windows_core::GUID, pguiddialect: *mut ::windows_core::GUID, ppcommandstream: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetCommandStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, rguiddialect: *const ::windows_core::GUID, pcommandstream: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICommandText(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICommandText, ICommandText_Vtbl, 0x0c733a27_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(ICommandText, ::windows_core::IUnknown, ICommand); impl ICommandText { pub unsafe fn Cancel(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.Cancel)(::windows_core::Interface::as_raw(self)).ok() @@ -2342,13 +2191,6 @@ impl ICommandText { (::windows_core::Interface::vtable(self).SetCommandText)(::windows_core::Interface::as_raw(self), rguiddialect, pwszcommand.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ICommandText, ::windows_core::IUnknown, ICommand); -unsafe impl ::windows_core::Interface for ICommandText { - type Vtable = ICommandText_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICommandText { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733a27_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct ICommandText_Vtbl { @@ -2356,9 +2198,8 @@ pub struct ICommandText_Vtbl { pub GetCommandText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pguiddialect: *mut ::windows_core::GUID, ppwszcommand: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, pub SetCommandText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rguiddialect: *const ::windows_core::GUID, pwszcommand: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICommandValidate(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICommandValidate, ICommandValidate_Vtbl, 0x0c733a18_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(ICommandValidate, ::windows_core::IUnknown); impl ICommandValidate { pub unsafe fn ValidateCompletely(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).ValidateCompletely)(::windows_core::Interface::as_raw(self)).ok() @@ -2367,13 +2208,6 @@ impl ICommandValidate { (::windows_core::Interface::vtable(self).ValidateSyntax)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ICommandValidate, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICommandValidate { - type Vtable = ICommandValidate_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICommandValidate { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733a18_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct ICommandValidate_Vtbl { @@ -2381,9 +2215,8 @@ pub struct ICommandValidate_Vtbl { pub ValidateCompletely: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ValidateSyntax: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICommandWithParameters(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICommandWithParameters, ICommandWithParameters_Vtbl, 0x0c733a64_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(ICommandWithParameters, ::windows_core::IUnknown); impl ICommandWithParameters { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -2397,13 +2230,6 @@ impl ICommandWithParameters { (::windows_core::Interface::vtable(self).SetParameterInfo)(::windows_core::Interface::as_raw(self), cparams, ::core::mem::transmute(rgparamordinals.unwrap_or(::std::ptr::null())), ::core::mem::transmute(rgparambindinfo.unwrap_or(::std::ptr::null()))).ok() } } -::windows_core::imp::interface_hierarchy!(ICommandWithParameters, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICommandWithParameters { - type Vtable = ICommandWithParameters_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICommandWithParameters { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733a64_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct ICommandWithParameters_Vtbl { @@ -2415,11 +2241,15 @@ pub struct ICommandWithParameters_Vtbl { pub MapParameterNames: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cparamnames: usize, rgparamnames: *const ::windows_core::PCWSTR, rgparamordinals: *mut isize) -> ::windows_core::HRESULT, pub SetParameterInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cparams: usize, rgparamordinals: *const usize, rgparambindinfo: *const DBPARAMBINDINFO) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICondition(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICondition, + ICondition_Vtbl, + 0x0fc988d4_c935_4b97_a973_46282ea175c8 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICondition, ::windows_core::IUnknown, super::Com::IPersist, super::Com::IPersistStream); #[cfg(feature = "Win32_System_Com")] impl ICondition { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2464,7 +2294,7 @@ impl ICondition { } pub unsafe fn GetSubConditions(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetSubConditions)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -2493,16 +2323,6 @@ impl ICondition { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICondition, ::windows_core::IUnknown, super::Com::IPersist, super::Com::IPersistStream); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICondition { - type Vtable = ICondition_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICondition { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0fc988d4_c935_4b97_a973_46282ea175c8); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICondition_Vtbl { @@ -2524,11 +2344,15 @@ pub struct ICondition_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Clone: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICondition2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICondition2, + ICondition2_Vtbl, + 0x0db8851d_2e5b_47eb_9208_d28c325a01d7 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICondition2, ::windows_core::IUnknown, super::Com::IPersist, super::Com::IPersistStream, ICondition); #[cfg(feature = "Win32_System_Com")] impl ICondition2 { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2573,7 +2397,7 @@ impl ICondition2 { } pub unsafe fn GetSubConditions(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.GetSubConditions)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -2611,16 +2435,6 @@ impl ICondition2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICondition2, ::windows_core::IUnknown, super::Com::IPersist, super::Com::IPersistStream, ICondition); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICondition2 { - type Vtable = ICondition2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICondition2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0db8851d_2e5b_47eb_9208_d28c325a01d7); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICondition2_Vtbl { @@ -2631,9 +2445,8 @@ pub struct ICondition2_Vtbl { #[cfg(not(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Search_Common", feature = "Win32_System_Variant", feature = "Win32_UI_Shell_PropertiesSystem")))] GetLeafConditionInfo: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IConditionFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IConditionFactory, IConditionFactory_Vtbl, 0xa5efe073_b16f_474f_9f3e_9f8b497a3e08); +::windows_core::imp::interface_hierarchy!(IConditionFactory, ::windows_core::IUnknown); impl IConditionFactory { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -2679,13 +2492,6 @@ impl IConditionFactory { (::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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IConditionFactory, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IConditionFactory { - type Vtable = IConditionFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IConditionFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa5efe073_b16f_474f_9f3e_9f8b497a3e08); -} #[repr(C)] #[doc(hidden)] pub struct IConditionFactory_Vtbl { @@ -2707,9 +2513,8 @@ pub struct IConditionFactory_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Resolve: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IConditionFactory2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IConditionFactory2, IConditionFactory2_Vtbl, 0x71d222e1_432f_429e_8c13_b6dafde5077a); +::windows_core::imp::interface_hierarchy!(IConditionFactory2, ::windows_core::IUnknown, IConditionFactory); impl IConditionFactory2 { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -2757,7 +2562,7 @@ impl IConditionFactory2 { pub unsafe fn CreateTrueFalse(&self, fval: P0, cco: CONDITION_CREATION_OPTIONS) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -2767,7 +2572,7 @@ impl IConditionFactory2 { pub unsafe fn CreateNegation(&self, pcsub: P0, cco: CONDITION_CREATION_OPTIONS) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -2777,7 +2582,7 @@ impl IConditionFactory2 { pub unsafe fn CreateCompoundFromObjectArray(&self, ct: Common::CONDITION_TYPE, poasubs: P0, cco: CONDITION_CREATION_OPTIONS) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -2786,7 +2591,7 @@ impl IConditionFactory2 { #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Search_Common"))] pub unsafe fn CreateCompoundFromArray(&self, ct: Common::CONDITION_TYPE, ppcondsubs: &[::core::option::Option], cco: CONDITION_CREATION_OPTIONS) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).CreateCompoundFromArray)(::windows_core::Interface::as_raw(self), ct, ::core::mem::transmute(ppcondsubs.as_ptr()), ppcondsubs.len().try_into().unwrap(), cco, &T::IID, &mut result__).from_abi(result__) @@ -2797,7 +2602,7 @@ impl IConditionFactory2 { where P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -2806,7 +2611,7 @@ impl IConditionFactory2 { #[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 where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).CreateIntegerLeaf)(::windows_core::Interface::as_raw(self), propkey, cop, lvalue, cco, &T::IID, &mut result__).from_abi(result__) @@ -2816,7 +2621,7 @@ impl IConditionFactory2 { 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, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -2830,7 +2635,7 @@ impl IConditionFactory2 { P2: ::windows_core::IntoParam, P3: ::windows_core::IntoParam, P4: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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, 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__).from_abi(result__) @@ -2840,19 +2645,12 @@ impl IConditionFactory2 { pub unsafe fn ResolveCondition(&self, pc: P0, sqro: STRUCTURED_QUERY_RESOLVE_OPTION, pstreferencetime: ::core::option::Option<*const super::super::Foundation::SYSTEMTIME>) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IConditionFactory2, ::windows_core::IUnknown, IConditionFactory); -unsafe impl ::windows_core::Interface for IConditionFactory2 { - type Vtable = IConditionFactory2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IConditionFactory2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x71d222e1_432f_429e_8c13_b6dafde5077a); -} #[repr(C)] #[doc(hidden)] pub struct IConditionFactory2_Vtbl { @@ -2891,9 +2689,8 @@ pub struct IConditionFactory2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] ResolveCondition: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IConditionGenerator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IConditionGenerator, IConditionGenerator_Vtbl, 0x92d2cc58_4386_45a3_b98c_7e0ce64a4117); +::windows_core::imp::interface_hierarchy!(IConditionGenerator, ::windows_core::IUnknown); impl IConditionGenerator { pub unsafe fn Initialize(&self, pschemaprovider: P0) -> ::windows_core::Result<()> where @@ -2935,13 +2732,6 @@ impl IConditionGenerator { (::windows_core::Interface::vtable(self).DefaultPhrase)(::windows_core::Interface::as_raw(self), pszvaluetype.into_param().abi(), ppropvar, fuseenglish.into_param().abi(), ::core::mem::transmute(ppszphrase.unwrap_or(::std::ptr::null_mut()))).ok() } } -::windows_core::imp::interface_hierarchy!(IConditionGenerator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IConditionGenerator { - type Vtable = IConditionGenerator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IConditionGenerator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x92d2cc58_4386_45a3_b98c_7e0ce64a4117); -} #[repr(C)] #[doc(hidden)] pub struct IConditionGenerator_Vtbl { @@ -2957,30 +2747,21 @@ pub struct IConditionGenerator_Vtbl { #[cfg(not(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant")))] DefaultPhrase: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IConvertType(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IConvertType, IConvertType_Vtbl, 0x0c733a88_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(IConvertType, ::windows_core::IUnknown); impl IConvertType { pub unsafe fn CanConvert(&self, wfromtype: u16, wtotype: u16, dwconvertflags: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).CanConvert)(::windows_core::Interface::as_raw(self), wfromtype, wtotype, dwconvertflags).ok() } } -::windows_core::imp::interface_hierarchy!(IConvertType, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IConvertType { - type Vtable = IConvertType_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IConvertType { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733a88_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IConvertType_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub CanConvert: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wfromtype: u16, wtotype: u16, dwconvertflags: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICreateRow(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICreateRow, ICreateRow_Vtbl, 0x0c733ab2_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(ICreateRow, ::windows_core::IUnknown); impl ICreateRow { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -2993,13 +2774,6 @@ impl ICreateRow { (::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::imp::interface_hierarchy!(ICreateRow, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICreateRow { - type Vtable = ICreateRow_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICreateRow { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733ab2_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct ICreateRow_Vtbl { @@ -3009,9 +2783,8 @@ pub struct ICreateRow_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] CreateRow: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDBAsynchNotify(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDBAsynchNotify, IDBAsynchNotify_Vtbl, 0x0c733a96_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(IDBAsynchNotify, ::windows_core::IUnknown); impl IDBAsynchNotify { pub unsafe fn OnLowResource(&self, dwreserved: usize) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnLowResource)(::windows_core::Interface::as_raw(self), dwreserved).ok() @@ -3029,13 +2802,6 @@ impl IDBAsynchNotify { (::windows_core::Interface::vtable(self).OnStop)(::windows_core::Interface::as_raw(self), hchapter, eoperation, hrstatus, pwszstatustext.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IDBAsynchNotify, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDBAsynchNotify { - type Vtable = IDBAsynchNotify_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDBAsynchNotify { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733a96_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IDBAsynchNotify_Vtbl { @@ -3044,9 +2810,8 @@ pub struct IDBAsynchNotify_Vtbl { pub OnProgress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hchapter: usize, eoperation: u32, ulprogress: usize, ulprogressmax: usize, easynchphase: u32, pwszstatustext: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub OnStop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hchapter: usize, eoperation: u32, hrstatus: ::windows_core::HRESULT, pwszstatustext: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDBAsynchStatus(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDBAsynchStatus, IDBAsynchStatus_Vtbl, 0x0c733a95_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(IDBAsynchStatus, ::windows_core::IUnknown); impl IDBAsynchStatus { pub unsafe fn Abort(&self, hchapter: usize, eoperation: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Abort)(::windows_core::Interface::as_raw(self), hchapter, eoperation).ok() @@ -3055,13 +2820,6 @@ impl IDBAsynchStatus { (::windows_core::Interface::vtable(self).GetStatus)(::windows_core::Interface::as_raw(self), hchapter, eoperation, ::core::mem::transmute(pulprogress.unwrap_or(::std::ptr::null_mut())), ::core::mem::transmute(pulprogressmax.unwrap_or(::std::ptr::null_mut())), peasynchphase, ::core::mem::transmute(ppwszstatustext.unwrap_or(::std::ptr::null_mut()))).ok() } } -::windows_core::imp::interface_hierarchy!(IDBAsynchStatus, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDBAsynchStatus { - type Vtable = IDBAsynchStatus_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDBAsynchStatus { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733a95_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IDBAsynchStatus_Vtbl { @@ -3069,9 +2827,8 @@ pub struct IDBAsynchStatus_Vtbl { pub Abort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hchapter: usize, eoperation: u32) -> ::windows_core::HRESULT, pub GetStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hchapter: usize, eoperation: u32, pulprogress: *mut usize, pulprogressmax: *mut usize, peasynchphase: *mut u32, ppwszstatustext: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDBBinderProperties(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDBBinderProperties, IDBBinderProperties_Vtbl, 0x0c733ab3_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(IDBBinderProperties, ::windows_core::IUnknown, IDBProperties); impl IDBBinderProperties { #[doc = "Required features: `\"Win32_Storage_IndexServer\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -3092,22 +2849,14 @@ impl IDBBinderProperties { (::windows_core::Interface::vtable(self).Reset)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IDBBinderProperties, ::windows_core::IUnknown, IDBProperties); -unsafe impl ::windows_core::Interface for IDBBinderProperties { - type Vtable = IDBBinderProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDBBinderProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733ab3_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IDBBinderProperties_Vtbl { pub base__: IDBProperties_Vtbl, pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDBCreateCommand(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDBCreateCommand, IDBCreateCommand_Vtbl, 0x0c733a1d_2a1c_11ce_ade5_00aa0044773d); +::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<::windows_core::IUnknown> where @@ -3117,22 +2866,14 @@ impl IDBCreateCommand { (::windows_core::Interface::vtable(self).CreateCommand)(::windows_core::Interface::as_raw(self), punkouter.into_param().abi(), riid, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDBCreateCommand, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDBCreateCommand { - type Vtable = IDBCreateCommand_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDBCreateCommand { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733a1d_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IDBCreateCommand_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub CreateCommand: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punkouter: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppcommand: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDBCreateSession(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDBCreateSession, IDBCreateSession_Vtbl, 0x0c733a5d_2a1c_11ce_ade5_00aa0044773d); +::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<::windows_core::IUnknown> where @@ -3142,22 +2883,14 @@ impl IDBCreateSession { (::windows_core::Interface::vtable(self).CreateSession)(::windows_core::Interface::as_raw(self), punkouter.into_param().abi(), riid, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDBCreateSession, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDBCreateSession { - type Vtable = IDBCreateSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDBCreateSession { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733a5d_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IDBCreateSession_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub CreateSession: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punkouter: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppdbsession: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDBDataSourceAdmin(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDBDataSourceAdmin, IDBDataSourceAdmin_Vtbl, 0x0c733a7a_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(IDBDataSourceAdmin, ::windows_core::IUnknown); impl IDBDataSourceAdmin { #[doc = "Required features: `\"Win32_Storage_IndexServer\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -3181,13 +2914,6 @@ impl IDBDataSourceAdmin { (::windows_core::Interface::vtable(self).ModifyDataSource)(::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()))).ok() } } -::windows_core::imp::interface_hierarchy!(IDBDataSourceAdmin, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDBDataSourceAdmin { - type Vtable = IDBDataSourceAdmin_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDBDataSourceAdmin { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733a7a_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IDBDataSourceAdmin_Vtbl { @@ -3206,9 +2932,8 @@ pub struct IDBDataSourceAdmin_Vtbl { #[cfg(not(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] ModifyDataSource: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDBInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDBInfo, IDBInfo_Vtbl, 0x0c733a89_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(IDBInfo, ::windows_core::IUnknown); impl IDBInfo { pub unsafe fn GetKeywords(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); @@ -3218,13 +2943,6 @@ impl IDBInfo { (::windows_core::Interface::vtable(self).GetLiteralInfo)(::windows_core::Interface::as_raw(self), rgliterals.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), ::core::mem::transmute(rgliterals.as_deref().map_or(::core::ptr::null(), |slice| slice.as_ptr())), pcliteralinfo, prgliteralinfo, ppcharbuffer).ok() } } -::windows_core::imp::interface_hierarchy!(IDBInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDBInfo { - type Vtable = IDBInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDBInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733a89_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IDBInfo_Vtbl { @@ -3232,9 +2950,8 @@ pub struct IDBInfo_Vtbl { pub GetKeywords: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppwszkeywords: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, pub GetLiteralInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cliterals: u32, rgliterals: *const u32, pcliteralinfo: *mut u32, prgliteralinfo: *mut *mut DBLITERALINFO, ppcharbuffer: *mut *mut u16) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDBInitialize(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDBInitialize, IDBInitialize_Vtbl, 0x0c733a8b_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(IDBInitialize, ::windows_core::IUnknown); impl IDBInitialize { pub unsafe fn Initialize(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Initialize)(::windows_core::Interface::as_raw(self)).ok() @@ -3243,13 +2960,6 @@ impl IDBInitialize { (::windows_core::Interface::vtable(self).Uninitialize)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IDBInitialize, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDBInitialize { - type Vtable = IDBInitialize_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDBInitialize { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733a8b_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IDBInitialize_Vtbl { @@ -3257,9 +2967,8 @@ pub struct IDBInitialize_Vtbl { pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Uninitialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDBPromptInitialize(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDBPromptInitialize, IDBPromptInitialize_Vtbl, 0x2206ccb0_19c1_11d1_89e0_00c04fd7a829); +::windows_core::imp::interface_hierarchy!(IDBPromptInitialize, ::windows_core::IUnknown); impl IDBPromptInitialize { pub unsafe fn PromptDataSource(&self, punkouter: P0, hwndparent: P1, dwpromptoptions: u32, rgsourcetypefilter: ::core::option::Option<&[u32]>, pwszszzproviderfilter: P2, riid: *const ::windows_core::GUID, ppdatasource: *mut ::core::option::Option<::windows_core::IUnknown>) -> ::windows_core::Result<()> where @@ -3279,13 +2988,6 @@ impl IDBPromptInitialize { (::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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDBPromptInitialize, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDBPromptInitialize { - type Vtable = IDBPromptInitialize_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDBPromptInitialize { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2206ccb0_19c1_11d1_89e0_00c04fd7a829); -} #[repr(C)] #[doc(hidden)] pub struct IDBPromptInitialize_Vtbl { @@ -3293,9 +2995,8 @@ pub struct IDBPromptInitialize_Vtbl { pub PromptDataSource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punkouter: *mut ::core::ffi::c_void, hwndparent: super::super::Foundation::HWND, dwpromptoptions: u32, csourcetypefilter: u32, rgsourcetypefilter: *const u32, pwszszzproviderfilter: ::windows_core::PCWSTR, riid: *const ::windows_core::GUID, ppdatasource: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub PromptFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwndparent: super::super::Foundation::HWND, dwpromptoptions: u32, pwszinitialdirectory: ::windows_core::PCWSTR, pwszinitialfile: ::windows_core::PCWSTR, ppwszselectedfile: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDBProperties(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDBProperties, IDBProperties_Vtbl, 0x0c733a8a_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(IDBProperties, ::windows_core::IUnknown); impl IDBProperties { #[doc = "Required features: `\"Win32_Storage_IndexServer\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -3313,13 +3014,6 @@ impl IDBProperties { (::windows_core::Interface::vtable(self).SetProperties)(::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()))).ok() } } -::windows_core::imp::interface_hierarchy!(IDBProperties, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDBProperties { - type Vtable = IDBProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDBProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733a8a_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IDBProperties_Vtbl { @@ -3337,9 +3031,8 @@ pub struct IDBProperties_Vtbl { #[cfg(not(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] SetProperties: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDBSchemaCommand(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDBSchemaCommand, IDBSchemaCommand_Vtbl, 0x0c733a50_2a1c_11ce_ade5_00aa0044773d); +::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 @@ -3352,13 +3045,6 @@ impl IDBSchemaCommand { (::windows_core::Interface::vtable(self).GetSchemas)(::windows_core::Interface::as_raw(self), pcschemas, prgschemas).ok() } } -::windows_core::imp::interface_hierarchy!(IDBSchemaCommand, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDBSchemaCommand { - type Vtable = IDBSchemaCommand_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDBSchemaCommand { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733a50_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IDBSchemaCommand_Vtbl { @@ -3366,9 +3052,8 @@ pub struct IDBSchemaCommand_Vtbl { pub GetCommand: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punkouter: *mut ::core::ffi::c_void, rguidschema: *const ::windows_core::GUID, ppcommand: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetSchemas: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcschemas: *mut u32, prgschemas: *mut *mut ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDBSchemaRowset(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDBSchemaRowset, IDBSchemaRowset_Vtbl, 0x0c733a7b_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(IDBSchemaRowset, ::windows_core::IUnknown); impl IDBSchemaRowset { #[doc = "Required features: `\"Win32_Storage_IndexServer\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -3393,13 +3078,6 @@ impl IDBSchemaRowset { (::windows_core::Interface::vtable(self).GetSchemas)(::windows_core::Interface::as_raw(self), pcschemas, prgschemas, prgrestrictionsupport).ok() } } -::windows_core::imp::interface_hierarchy!(IDBSchemaRowset, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDBSchemaRowset { - type Vtable = IDBSchemaRowset_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDBSchemaRowset { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733a7b_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IDBSchemaRowset_Vtbl { @@ -3410,9 +3088,8 @@ pub struct IDBSchemaRowset_Vtbl { GetRowset: usize, pub GetSchemas: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcschemas: *mut u32, prgschemas: *mut *mut ::windows_core::GUID, prgrestrictionsupport: *mut *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDCInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDCInfo, IDCInfo_Vtbl, 0x0c733a9c_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(IDCInfo, ::windows_core::IUnknown); impl IDCInfo { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -3425,13 +3102,6 @@ impl IDCInfo { (::windows_core::Interface::vtable(self).SetInfo)(::windows_core::Interface::as_raw(self), rginfo.len().try_into().unwrap(), ::core::mem::transmute(rginfo.as_ptr())).ok() } } -::windows_core::imp::interface_hierarchy!(IDCInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDCInfo { - type Vtable = IDCInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDCInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733a9c_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IDCInfo_Vtbl { @@ -3445,9 +3115,8 @@ pub struct IDCInfo_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] SetInfo: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataConvert(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDataConvert, IDataConvert_Vtbl, 0x0c733a8d_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(IDataConvert, ::windows_core::IUnknown); impl IDataConvert { pub unsafe fn DataConvert(&self, wsrctype: u16, wdsttype: u16, cbsrclength: usize, pcbdstlength: ::core::option::Option<*mut usize>, psrc: *const ::core::ffi::c_void, pdst: *mut ::core::ffi::c_void, cbdstmaxlength: usize, dbssrcstatus: u32, pdbsstatus: ::core::option::Option<*mut u32>, bprecision: u8, bscale: u8, dwflags: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).DataConvert)(::windows_core::Interface::as_raw(self), wsrctype, wdsttype, cbsrclength, ::core::mem::transmute(pcbdstlength.unwrap_or(::std::ptr::null_mut())), psrc, pdst, cbdstmaxlength, dbssrcstatus, ::core::mem::transmute(pdbsstatus.unwrap_or(::std::ptr::null_mut())), bprecision, bscale, dwflags).ok() @@ -3459,13 +3128,6 @@ impl IDataConvert { (::windows_core::Interface::vtable(self).GetConversionSize)(::windows_core::Interface::as_raw(self), wsrctype, wdsttype, ::core::mem::transmute(pcbsrclength.unwrap_or(::std::ptr::null())), ::core::mem::transmute(pcbdstlength.unwrap_or(::std::ptr::null_mut())), ::core::mem::transmute(psrc.unwrap_or(::std::ptr::null()))).ok() } } -::windows_core::imp::interface_hierarchy!(IDataConvert, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDataConvert { - type Vtable = IDataConvert_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDataConvert { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733a8d_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IDataConvert_Vtbl { @@ -3474,9 +3136,8 @@ pub struct IDataConvert_Vtbl { pub CanConvert: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wsrctype: u16, wdsttype: u16) -> ::windows_core::HRESULT, pub GetConversionSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wsrctype: u16, wdsttype: u16, pcbsrclength: *const usize, pcbdstlength: *mut usize, psrc: *const ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataInitialize(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDataInitialize, IDataInitialize_Vtbl, 0x2206ccb1_19c1_11d1_89e0_00c04fd7a829); +::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 ::core::option::Option<::windows_core::IUnknown>) -> ::windows_core::Result<()> where @@ -3524,13 +3185,6 @@ impl IDataInitialize { (::windows_core::Interface::vtable(self).WriteStringToStorage)(::windows_core::Interface::as_raw(self), pwszfilename.into_param().abi(), pwszinitializationstring.into_param().abi(), dwcreationdisposition).ok() } } -::windows_core::imp::interface_hierarchy!(IDataInitialize, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDataInitialize { - type Vtable = IDataInitialize_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDataInitialize { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2206ccb1_19c1_11d1_89e0_00c04fd7a829); -} #[repr(C)] #[doc(hidden)] pub struct IDataInitialize_Vtbl { @@ -3545,11 +3199,15 @@ pub struct IDataInitialize_Vtbl { pub LoadStringFromStorage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwszfilename: ::windows_core::PCWSTR, ppwszinitializationstring: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, pub WriteStringToStorage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwszfilename: ::windows_core::PCWSTR, pwszinitializationstring: ::windows_core::PCWSTR, dwcreationdisposition: u32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataSourceLocator(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IDataSourceLocator, + IDataSourceLocator_Vtbl, + 0x2206ccb2_19c1_11d1_89e0_00c04fd7a829 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IDataSourceLocator, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IDataSourceLocator { pub unsafe fn hWnd(&self) -> ::windows_core::Result { @@ -3575,16 +3233,6 @@ impl IDataSourceLocator { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IDataSourceLocator, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IDataSourceLocator { - type Vtable = IDataSourceLocator_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IDataSourceLocator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2206ccb2_19c1_11d1_89e0_00c04fd7a829); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IDataSourceLocator_Vtbl { @@ -3600,9 +3248,8 @@ pub struct IDataSourceLocator_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] PromptEdit: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEntity(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEntity, IEntity_Vtbl, 0x24264891_e80b_4fd3_b7ce_4ff2fae8931f); +::windows_core::imp::interface_hierarchy!(IEntity, ::windows_core::IUnknown); impl IEntity { pub unsafe fn Name(&self, ppszname: ::core::option::Option<*mut ::windows_core::PWSTR>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Name)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(ppszname.unwrap_or(::std::ptr::null_mut()))).ok() @@ -3613,7 +3260,7 @@ impl IEntity { } pub unsafe fn Relationships(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).Relationships)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -3627,14 +3274,14 @@ impl IEntity { } pub unsafe fn MetaData(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).MetaData)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) } pub unsafe fn NamedEntities(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).NamedEntities)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -3650,13 +3297,6 @@ impl IEntity { (::windows_core::Interface::vtable(self).DefaultPhrase)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(ppszphrase.unwrap_or(::std::ptr::null_mut()))).ok() } } -::windows_core::imp::interface_hierarchy!(IEntity, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEntity { - type Vtable = IEntity_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEntity { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x24264891_e80b_4fd3_b7ce_4ff2fae8931f); -} #[repr(C)] #[doc(hidden)] pub struct IEntity_Vtbl { @@ -3670,9 +3310,8 @@ pub struct IEntity_Vtbl { pub GetNamedEntity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszvalue: ::windows_core::PCWSTR, ppnamedentity: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub DefaultPhrase: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppszphrase: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumItemProperties(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumItemProperties, IEnumItemProperties_Vtbl, 0xf72c8d96_6dbd_11d1_a1e8_00c04fc2fbe1); +::windows_core::imp::interface_hierarchy!(IEnumItemProperties, ::windows_core::IUnknown); impl IEnumItemProperties { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -3694,13 +3333,6 @@ impl IEnumItemProperties { (::windows_core::Interface::vtable(self).GetCount)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumItemProperties, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumItemProperties { - type Vtable = IEnumItemProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumItemProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf72c8d96_6dbd_11d1_a1e8_00c04fc2fbe1); -} #[repr(C)] #[doc(hidden)] pub struct IEnumItemProperties_Vtbl { @@ -3714,9 +3346,8 @@ pub struct IEnumItemProperties_Vtbl { pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pncount: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumSearchRoots(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumSearchRoots, IEnumSearchRoots_Vtbl, 0xab310581_ac80_11d1_8df3_00c04fb6ef52); +::windows_core::imp::interface_hierarchy!(IEnumSearchRoots, ::windows_core::IUnknown); impl IEnumSearchRoots { pub unsafe fn Next(&self, rgelt: &mut [::core::option::Option], pceltfetched: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), ::core::mem::transmute(rgelt.as_ptr()), pceltfetched).ok() @@ -3732,13 +3363,6 @@ impl IEnumSearchRoots { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumSearchRoots, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumSearchRoots { - type Vtable = IEnumSearchRoots_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumSearchRoots { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xab310581_ac80_11d1_8df3_00c04fb6ef52); -} #[repr(C)] #[doc(hidden)] pub struct IEnumSearchRoots_Vtbl { @@ -3748,9 +3372,8 @@ pub struct IEnumSearchRoots_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumSearchScopeRules(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumSearchScopeRules, IEnumSearchScopeRules_Vtbl, 0xab310581_ac80_11d1_8df3_00c04fb6ef54); +::windows_core::imp::interface_hierarchy!(IEnumSearchScopeRules, ::windows_core::IUnknown); impl IEnumSearchScopeRules { pub unsafe fn Next(&self, pprgelt: &mut [::core::option::Option], pceltfetched: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), pprgelt.len().try_into().unwrap(), ::core::mem::transmute(pprgelt.as_ptr()), pceltfetched).ok() @@ -3766,13 +3389,6 @@ impl IEnumSearchScopeRules { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumSearchScopeRules, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumSearchScopeRules { - type Vtable = IEnumSearchScopeRules_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumSearchScopeRules { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xab310581_ac80_11d1_8df3_00c04fb6ef54); -} #[repr(C)] #[doc(hidden)] pub struct IEnumSearchScopeRules_Vtbl { @@ -3782,9 +3398,8 @@ pub struct IEnumSearchScopeRules_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumSubscription(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumSubscription, IEnumSubscription_Vtbl, 0xf72c8d97_6dbd_11d1_a1e8_00c04fc2fbe1); +::windows_core::imp::interface_hierarchy!(IEnumSubscription, ::windows_core::IUnknown); impl IEnumSubscription { pub unsafe fn Next(&self, rgelt: &mut [::windows_core::GUID], pceltfetched: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), ::core::mem::transmute(rgelt.as_ptr()), pceltfetched).ok() @@ -3804,13 +3419,6 @@ impl IEnumSubscription { (::windows_core::Interface::vtable(self).GetCount)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumSubscription, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumSubscription { - type Vtable = IEnumSubscription_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumSubscription { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf72c8d97_6dbd_11d1_a1e8_00c04fc2fbe1); -} #[repr(C)] #[doc(hidden)] pub struct IEnumSubscription_Vtbl { @@ -3821,9 +3429,8 @@ pub struct IEnumSubscription_Vtbl { pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pncount: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IErrorLookup(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IErrorLookup, IErrorLookup_Vtbl, 0x0c733a66_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(IErrorLookup, ::windows_core::IUnknown); impl IErrorLookup { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -3837,13 +3444,6 @@ impl IErrorLookup { (::windows_core::Interface::vtable(self).ReleaseErrors)(::windows_core::Interface::as_raw(self), dwdynamicerrorid).ok() } } -::windows_core::imp::interface_hierarchy!(IErrorLookup, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IErrorLookup { - type Vtable = IErrorLookup_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IErrorLookup { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733a66_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IErrorLookup_Vtbl { @@ -3855,9 +3455,8 @@ pub struct IErrorLookup_Vtbl { pub GetHelpInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hrerror: ::windows_core::HRESULT, dwlookupid: u32, lcid: u32, pbstrhelpfile: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>, pdwhelpcontext: *mut u32) -> ::windows_core::HRESULT, pub ReleaseErrors: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwdynamicerrorid: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IErrorRecords(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IErrorRecords, IErrorRecords_Vtbl, 0x0c733a67_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(IErrorRecords, ::windows_core::IUnknown); impl IErrorRecords { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -3891,13 +3490,6 @@ impl IErrorRecords { (::windows_core::Interface::vtable(self).GetRecordCount)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IErrorRecords, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IErrorRecords { - type Vtable = IErrorRecords_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IErrorRecords { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733a67_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IErrorRecords_Vtbl { @@ -3918,31 +3510,22 @@ pub struct IErrorRecords_Vtbl { GetErrorParameters: usize, pub GetRecordCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcrecords: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGetDataSource(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IGetDataSource, IGetDataSource_Vtbl, 0x0c733a75_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(IGetDataSource, ::windows_core::IUnknown); impl IGetDataSource { pub unsafe fn GetDataSource(&self, riid: *const ::windows_core::GUID) -> ::windows_core::Result<::windows_core::IUnknown> { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetDataSource)(::windows_core::Interface::as_raw(self), riid, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IGetDataSource, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGetDataSource { - type Vtable = IGetDataSource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGetDataSource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733a75_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IGetDataSource_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetDataSource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppdatasource: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGetRow(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IGetRow, IGetRow_Vtbl, 0x0c733aaf_2a1c_11ce_ade5_00aa0044773d); +::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<::windows_core::IUnknown> where @@ -3956,13 +3539,6 @@ impl IGetRow { (::windows_core::Interface::vtable(self).GetURLFromHROW)(::windows_core::Interface::as_raw(self), hrow, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IGetRow, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGetRow { - type Vtable = IGetRow_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGetRow { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733aaf_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IGetRow_Vtbl { @@ -3970,53 +3546,36 @@ pub struct IGetRow_Vtbl { pub GetRowFromHROW: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punkouter: *mut ::core::ffi::c_void, hrow: usize, riid: *const ::windows_core::GUID, ppunk: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetURLFromHROW: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hrow: usize, ppwszurl: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGetSession(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IGetSession, IGetSession_Vtbl, 0x0c733aba_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(IGetSession, ::windows_core::IUnknown); impl IGetSession { pub unsafe fn GetSession(&self, riid: *const ::windows_core::GUID) -> ::windows_core::Result<::windows_core::IUnknown> { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetSession)(::windows_core::Interface::as_raw(self), riid, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IGetSession, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGetSession { - type Vtable = IGetSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGetSession { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733aba_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IGetSession_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetSession: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppsession: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGetSourceRow(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IGetSourceRow, IGetSourceRow_Vtbl, 0x0c733abb_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(IGetSourceRow, ::windows_core::IUnknown); impl IGetSourceRow { pub unsafe fn GetSourceRow(&self, riid: *const ::windows_core::GUID) -> ::windows_core::Result<::windows_core::IUnknown> { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetSourceRow)(::windows_core::Interface::as_raw(self), riid, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IGetSourceRow, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGetSourceRow { - type Vtable = IGetSourceRow_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGetSourceRow { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733abb_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IGetSourceRow_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetSourceRow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, pprow: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIndexDefinition(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IIndexDefinition, IIndexDefinition_Vtbl, 0x0c733a68_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(IIndexDefinition, ::windows_core::IUnknown); impl IIndexDefinition { #[doc = "Required features: `\"Win32_Storage_IndexServer\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -4029,13 +3588,6 @@ impl IIndexDefinition { (::windows_core::Interface::vtable(self).DropIndex)(::windows_core::Interface::as_raw(self), ptableid, ::core::mem::transmute(pindexid.unwrap_or(::std::ptr::null()))).ok() } } -::windows_core::imp::interface_hierarchy!(IIndexDefinition, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIndexDefinition { - type Vtable = IIndexDefinition_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIndexDefinition { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733a68_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IIndexDefinition_Vtbl { @@ -4049,9 +3601,8 @@ pub struct IIndexDefinition_Vtbl { #[cfg(not(feature = "Win32_Storage_IndexServer"))] DropIndex: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInterval(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IInterval, IInterval_Vtbl, 0x6bf0a714_3c18_430b_8b5d_83b1c234d3db); +::windows_core::imp::interface_hierarchy!(IInterval, ::windows_core::IUnknown); impl IInterval { #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] @@ -4059,13 +3610,6 @@ impl IInterval { (::windows_core::Interface::vtable(self).GetLimits)(::windows_core::Interface::as_raw(self), pilklower, ppropvarlower, pilkupper, ppropvarupper).ok() } } -::windows_core::imp::interface_hierarchy!(IInterval, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInterval { - type Vtable = IInterval_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInterval { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6bf0a714_3c18_430b_8b5d_83b1c234d3db); -} #[repr(C)] #[doc(hidden)] pub struct IInterval_Vtbl { @@ -4075,9 +3619,8 @@ pub struct IInterval_Vtbl { #[cfg(not(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant")))] GetLimits: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILoadFilter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ILoadFilter, ILoadFilter_Vtbl, 0xc7310722_ac80_11d1_8df3_00c04fb6ef4f); +::windows_core::imp::interface_hierarchy!(ILoadFilter, ::windows_core::IUnknown); impl ILoadFilter { #[doc = "Required features: `\"Win32_Storage_IndexServer\"`"] #[cfg(feature = "Win32_Storage_IndexServer")] @@ -4111,13 +3654,6 @@ impl ILoadFilter { (::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::imp::interface_hierarchy!(ILoadFilter, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILoadFilter { - type Vtable = ILoadFilter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILoadFilter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc7310722_ac80_11d1_8df3_00c04fb6ef4f); -} #[repr(C)] #[doc(hidden)] pub struct ILoadFilter_Vtbl { @@ -4135,9 +3671,8 @@ pub struct ILoadFilter_Vtbl { #[cfg(not(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com")))] LoadIFilterFromStream: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILoadFilterWithPrivateComActivation(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ILoadFilterWithPrivateComActivation, ILoadFilterWithPrivateComActivation_Vtbl, 0x40bdbd34_780b_48d3_9bb6_12ebd4ad2e75); +::windows_core::imp::interface_hierarchy!(ILoadFilterWithPrivateComActivation, ::windows_core::IUnknown, ILoadFilter); impl ILoadFilterWithPrivateComActivation { #[doc = "Required features: `\"Win32_Storage_IndexServer\"`"] #[cfg(feature = "Win32_Storage_IndexServer")] @@ -4179,13 +3714,6 @@ impl ILoadFilterWithPrivateComActivation { (::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::imp::interface_hierarchy!(ILoadFilterWithPrivateComActivation, ::windows_core::IUnknown, ILoadFilter); -unsafe impl ::windows_core::Interface for ILoadFilterWithPrivateComActivation { - type Vtable = ILoadFilterWithPrivateComActivation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILoadFilterWithPrivateComActivation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x40bdbd34_780b_48d3_9bb6_12ebd4ad2e75); -} #[repr(C)] #[doc(hidden)] pub struct ILoadFilterWithPrivateComActivation_Vtbl { @@ -4195,9 +3723,8 @@ pub struct ILoadFilterWithPrivateComActivation_Vtbl { #[cfg(not(feature = "Win32_Storage_IndexServer"))] LoadIFilterWithPrivateComActivation: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMDDataset(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMDDataset, IMDDataset_Vtbl, 0xa07cccd1_8148_11d0_87bb_00c04fc33942); +::windows_core::imp::interface_hierarchy!(IMDDataset, ::windows_core::IUnknown); impl IMDDataset { pub unsafe fn FreeAxisInfo(&self, rgaxisinfo: &[MDAXISINFO]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).FreeAxisInfo)(::windows_core::Interface::as_raw(self), rgaxisinfo.len().try_into().unwrap(), ::core::mem::transmute(rgaxisinfo.as_ptr())).ok() @@ -4224,13 +3751,6 @@ impl IMDDataset { (::windows_core::Interface::vtable(self).GetSpecification)(::windows_core::Interface::as_raw(self), riid, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMDDataset, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMDDataset { - type Vtable = IMDDataset_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMDDataset { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa07cccd1_8148_11d0_87bb_00c04fc33942); -} #[repr(C)] #[doc(hidden)] pub struct IMDDataset_Vtbl { @@ -4244,9 +3764,8 @@ pub struct IMDDataset_Vtbl { pub GetCellData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, haccessor: HACCESSOR, ulstartcell: usize, ulendcell: usize, pdata: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetSpecification: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppspecification: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMDFind(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMDFind, IMDFind_Vtbl, 0xa07cccd2_8148_11d0_87bb_00c04fc33942); +::windows_core::imp::interface_hierarchy!(IMDFind, ::windows_core::IUnknown); impl IMDFind { pub unsafe fn FindCell(&self, ulstartingordinal: usize, rgpwszmember: &[::windows_core::PCWSTR]) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -4257,13 +3776,6 @@ impl IMDFind { (::windows_core::Interface::vtable(self).FindTuple)(::windows_core::Interface::as_raw(self), ulaxisidentifier, ulstartingordinal, rgpwszmember.len().try_into().unwrap(), ::core::mem::transmute(rgpwszmember.as_ptr()), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMDFind, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMDFind { - type Vtable = IMDFind_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMDFind { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa07cccd2_8148_11d0_87bb_00c04fc33942); -} #[repr(C)] #[doc(hidden)] pub struct IMDFind_Vtbl { @@ -4271,9 +3783,8 @@ pub struct IMDFind_Vtbl { pub FindCell: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulstartingordinal: usize, cmembers: usize, rgpwszmember: *const ::windows_core::PCWSTR, pulcellordinal: *mut usize) -> ::windows_core::HRESULT, pub FindTuple: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulaxisidentifier: u32, ulstartingordinal: usize, cmembers: usize, rgpwszmember: *const ::windows_core::PCWSTR, pultupleordinal: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMDRangeRowset(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMDRangeRowset, IMDRangeRowset_Vtbl, 0x0c733aa0_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(IMDRangeRowset, ::windows_core::IUnknown); impl IMDRangeRowset { #[doc = "Required features: `\"Win32_Storage_IndexServer\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -4284,13 +3795,6 @@ impl IMDRangeRowset { (::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::imp::interface_hierarchy!(IMDRangeRowset, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMDRangeRowset { - type Vtable = IMDRangeRowset_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMDRangeRowset { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733aa0_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IMDRangeRowset_Vtbl { @@ -4300,30 +3804,21 @@ pub struct IMDRangeRowset_Vtbl { #[cfg(not(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] GetRangeRowset: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMetaData(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMetaData, IMetaData_Vtbl, 0x780102b0_c43b_4876_bc7b_5e9ba5c88794); +::windows_core::imp::interface_hierarchy!(IMetaData, ::windows_core::IUnknown); impl IMetaData { pub unsafe fn GetData(&self, ppszkey: ::core::option::Option<*mut ::windows_core::PWSTR>, ppszvalue: ::core::option::Option<*mut ::windows_core::PWSTR>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetData)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(ppszkey.unwrap_or(::std::ptr::null_mut())), ::core::mem::transmute(ppszvalue.unwrap_or(::std::ptr::null_mut()))).ok() } } -::windows_core::imp::interface_hierarchy!(IMetaData, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMetaData { - type Vtable = IMetaData_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMetaData { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x780102b0_c43b_4876_bc7b_5e9ba5c88794); -} #[repr(C)] #[doc(hidden)] pub struct IMetaData_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppszkey: *mut ::windows_core::PWSTR, ppszvalue: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMultipleResults(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMultipleResults, IMultipleResults_Vtbl, 0x0c733a90_2a1c_11ce_ade5_00aa0044773d); +::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: ::core::option::Option<*mut isize>, pprowset: ::core::option::Option<*mut ::core::option::Option<::windows_core::IUnknown>>) -> ::windows_core::Result<()> where @@ -4332,22 +3827,14 @@ impl IMultipleResults { (::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::imp::interface_hierarchy!(IMultipleResults, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMultipleResults { - type Vtable = IMultipleResults_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMultipleResults { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733a90_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IMultipleResults_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetResult: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punkouter: *mut ::core::ffi::c_void, lresultflag: isize, riid: *const ::windows_core::GUID, pcrowsaffected: *mut isize, pprowset: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INamedEntity(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INamedEntity, INamedEntity_Vtbl, 0xabdbd0b1_7d54_49fb_ab5c_bff4130004cd); +::windows_core::imp::interface_hierarchy!(INamedEntity, ::windows_core::IUnknown); impl INamedEntity { pub unsafe fn GetValue(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); @@ -4357,13 +3844,6 @@ impl INamedEntity { (::windows_core::Interface::vtable(self).DefaultPhrase)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(ppszphrase.unwrap_or(::std::ptr::null_mut()))).ok() } } -::windows_core::imp::interface_hierarchy!(INamedEntity, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INamedEntity { - type Vtable = INamedEntity_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INamedEntity { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xabdbd0b1_7d54_49fb_ab5c_bff4130004cd); -} #[repr(C)] #[doc(hidden)] pub struct INamedEntity_Vtbl { @@ -4371,9 +3851,8 @@ pub struct INamedEntity_Vtbl { pub GetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppszvalue: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, pub DefaultPhrase: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppszphrase: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INamedEntityCollector(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INamedEntityCollector, INamedEntityCollector_Vtbl, 0xaf2440f6_8afc_47d0_9a7f_396a0acfb43d); +::windows_core::imp::interface_hierarchy!(INamedEntityCollector, ::windows_core::IUnknown); 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 @@ -4383,22 +3862,14 @@ impl INamedEntityCollector { (::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::imp::interface_hierarchy!(INamedEntityCollector, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INamedEntityCollector { - type Vtable = INamedEntityCollector_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INamedEntityCollector { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaf2440f6_8afc_47d0_9a7f_396a0acfb43d); -} #[repr(C)] #[doc(hidden)] pub struct INamedEntityCollector_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Add: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, beginspan: u32, endspan: u32, beginactual: u32, endactual: u32, ptype: *mut ::core::ffi::c_void, pszvalue: ::windows_core::PCWSTR, certainty: NAMED_ENTITY_CERTAINTY) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IObjectAccessControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IObjectAccessControl, IObjectAccessControl_Vtbl, 0x0c733aa3_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(IObjectAccessControl, ::windows_core::IUnknown); impl IObjectAccessControl { #[doc = "Required features: `\"Win32_Security_Authorization\"`, `\"Win32_Storage_IndexServer\"`"] #[cfg(all(feature = "Win32_Security_Authorization", feature = "Win32_Storage_IndexServer"))] @@ -4428,13 +3899,6 @@ impl IObjectAccessControl { (::windows_core::Interface::vtable(self).SetObjectOwner)(::windows_core::Interface::as_raw(self), pobject, powner).ok() } } -::windows_core::imp::interface_hierarchy!(IObjectAccessControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IObjectAccessControl { - type Vtable = IObjectAccessControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IObjectAccessControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733aa3_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IObjectAccessControl_Vtbl { @@ -4460,9 +3924,8 @@ pub struct IObjectAccessControl_Vtbl { #[cfg(not(all(feature = "Win32_Security_Authorization", feature = "Win32_Storage_IndexServer")))] SetObjectOwner: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOpLockStatus(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOpLockStatus, IOpLockStatus_Vtbl, 0xc731065d_ac80_11d1_8df3_00c04fb6ef4f); +::windows_core::imp::interface_hierarchy!(IOpLockStatus, ::windows_core::IUnknown); impl IOpLockStatus { pub unsafe fn IsOplockValid(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -4477,13 +3940,6 @@ impl IOpLockStatus { (::windows_core::Interface::vtable(self).GetOplockEventHandle)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IOpLockStatus, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOpLockStatus { - type Vtable = IOpLockStatus_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOpLockStatus { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc731065d_ac80_11d1_8df3_00c04fb6ef4f); -} #[repr(C)] #[doc(hidden)] pub struct IOpLockStatus_Vtbl { @@ -4492,9 +3948,8 @@ pub struct IOpLockStatus_Vtbl { pub IsOplockBroken: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfisoplockbroken: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub GetOplockEventHandle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phoplockev: *mut super::super::Foundation::HANDLE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOpenRowset(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOpenRowset, IOpenRowset_Vtbl, 0x0c733a69_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(IOpenRowset, ::windows_core::IUnknown); impl IOpenRowset { #[doc = "Required features: `\"Win32_Storage_IndexServer\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -4505,13 +3960,6 @@ impl IOpenRowset { (::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::imp::interface_hierarchy!(IOpenRowset, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOpenRowset { - type Vtable = IOpenRowset_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOpenRowset { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733a69_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IOpenRowset_Vtbl { @@ -4521,9 +3969,8 @@ pub struct IOpenRowset_Vtbl { #[cfg(not(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] OpenRowset: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IParentRowset(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IParentRowset, IParentRowset_Vtbl, 0x0c733aaa_2a1c_11ce_ade5_00aa0044773d); +::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<::windows_core::IUnknown> where @@ -4533,22 +3980,14 @@ impl IParentRowset { (::windows_core::Interface::vtable(self).GetChildRowset)(::windows_core::Interface::as_raw(self), punkouter.into_param().abi(), iordinal, riid, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IParentRowset, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IParentRowset { - type Vtable = IParentRowset_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IParentRowset { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733aaa_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IParentRowset_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetChildRowset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punkouter: *mut ::core::ffi::c_void, iordinal: usize, riid: *const ::windows_core::GUID, pprowset: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProtocolHandlerSite(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IProtocolHandlerSite, IProtocolHandlerSite_Vtbl, 0x0b63e385_9ccc_11d0_bcdb_00805fccce04); +::windows_core::imp::interface_hierarchy!(IProtocolHandlerSite, ::windows_core::IUnknown); impl IProtocolHandlerSite { #[doc = "Required features: `\"Win32_Storage_IndexServer\"`"] #[cfg(feature = "Win32_Storage_IndexServer")] @@ -4561,13 +4000,6 @@ impl IProtocolHandlerSite { (::windows_core::Interface::vtable(self).GetFilter)(::windows_core::Interface::as_raw(self), pclsidobj, pcwszcontenttype.into_param().abi(), pcwszextension.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IProtocolHandlerSite, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProtocolHandlerSite { - type Vtable = IProtocolHandlerSite_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProtocolHandlerSite { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0b63e385_9ccc_11d0_bcdb_00805fccce04); -} #[repr(C)] #[doc(hidden)] pub struct IProtocolHandlerSite_Vtbl { @@ -4577,9 +4009,8 @@ pub struct IProtocolHandlerSite_Vtbl { #[cfg(not(feature = "Win32_Storage_IndexServer"))] GetFilter: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProvideMoniker(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IProvideMoniker, IProvideMoniker_Vtbl, 0x0c733a4d_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(IProvideMoniker, ::windows_core::IUnknown); impl IProvideMoniker { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -4588,13 +4019,6 @@ impl IProvideMoniker { (::windows_core::Interface::vtable(self).GetMoniker)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IProvideMoniker, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProvideMoniker { - type Vtable = IProvideMoniker_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProvideMoniker { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733a4d_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IProvideMoniker_Vtbl { @@ -4604,9 +4028,8 @@ pub struct IProvideMoniker_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetMoniker: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IQueryParser(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IQueryParser, IQueryParser_Vtbl, 0x2ebdee67_3505_43f8_9946_ea44abc8e5b0); +::windows_core::imp::interface_hierarchy!(IQueryParser, ::windows_core::IUnknown); impl IQueryParser { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -4669,13 +4092,6 @@ impl IQueryParser { (::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::imp::interface_hierarchy!(IQueryParser, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IQueryParser { - type Vtable = IQueryParser_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IQueryParser { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2ebdee67_3505_43f8_9946_ea44abc8e5b0); -} #[repr(C)] #[doc(hidden)] pub struct IQueryParser_Vtbl { @@ -4707,14 +4123,13 @@ pub struct IQueryParser_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] RestatePropertyValueToString: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IQueryParserManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IQueryParserManager, IQueryParserManager_Vtbl, 0xa879e3c4_af77_44fb_8f37_ebd1487cf920); +::windows_core::imp::interface_hierarchy!(IQueryParserManager, ::windows_core::IUnknown); impl IQueryParserManager { pub unsafe fn CreateLoadedParser(&self, pszcatalog: P0, langidforkeywords: u16) -> ::windows_core::Result where P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -4733,13 +4148,6 @@ impl IQueryParserManager { (::windows_core::Interface::vtable(self).SetOption)(::windows_core::Interface::as_raw(self), option, poptionvalue).ok() } } -::windows_core::imp::interface_hierarchy!(IQueryParserManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IQueryParserManager { - type Vtable = IQueryParserManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IQueryParserManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa879e3c4_af77_44fb_8f37_ebd1487cf920); -} #[repr(C)] #[doc(hidden)] pub struct IQueryParserManager_Vtbl { @@ -4751,9 +4159,8 @@ pub struct IQueryParserManager_Vtbl { #[cfg(not(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant")))] SetOption: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IQuerySolution(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IQuerySolution, IQuerySolution_Vtbl, 0xd6ebc66b_8921_4193_afdd_a1789fb7ff57); +::windows_core::imp::interface_hierarchy!(IQuerySolution, ::windows_core::IUnknown, IConditionFactory); impl IQuerySolution { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -4805,7 +4212,7 @@ impl IQuerySolution { } pub unsafe fn GetErrors(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetErrors)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -4814,13 +4221,6 @@ impl IQuerySolution { (::windows_core::Interface::vtable(self).GetLexicalData)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(ppszinputstring.unwrap_or(::std::ptr::null_mut())), ::core::mem::transmute(pptokens.unwrap_or(::std::ptr::null_mut())), ::core::mem::transmute(plcid.unwrap_or(::std::ptr::null_mut())), ::core::mem::transmute(ppwordbreaker.unwrap_or(::std::ptr::null_mut()))).ok() } } -::windows_core::imp::interface_hierarchy!(IQuerySolution, ::windows_core::IUnknown, IConditionFactory); -unsafe impl ::windows_core::Interface for IQuerySolution { - type Vtable = IQuerySolution_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IQuerySolution { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd6ebc66b_8921_4193_afdd_a1789fb7ff57); -} #[repr(C)] #[doc(hidden)] pub struct IQuerySolution_Vtbl { @@ -4832,9 +4232,8 @@ pub struct IQuerySolution_Vtbl { pub GetErrors: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppparseerrors: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetLexicalData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppszinputstring: *mut ::windows_core::PWSTR, pptokens: *mut *mut ::core::ffi::c_void, plcid: *mut u32, ppwordbreaker: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IReadData(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IReadData, IReadData_Vtbl, 0x0c733a6a_2a1c_11ce_ade5_00aa0044773d); +::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 @@ -4846,13 +4245,6 @@ impl IReadData { (::windows_core::Interface::vtable(self).ReleaseChapter)(::windows_core::Interface::as_raw(self), hchapter).ok() } } -::windows_core::imp::interface_hierarchy!(IReadData, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IReadData { - type Vtable = IReadData_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IReadData { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733a6a_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IReadData_Vtbl { @@ -4860,9 +4252,8 @@ pub struct IReadData_Vtbl { pub ReadData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hchapter: usize, cbbookmark: usize, pbookmark: *const u8, lrowsoffset: isize, haccessor: HACCESSOR, crows: isize, pcrowsobtained: *mut usize, ppfixeddata: *mut *mut u8, pcbvariabletotal: *mut usize, ppvariabledata: *mut *mut u8) -> ::windows_core::HRESULT, pub ReleaseChapter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hchapter: usize) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRegisterProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRegisterProvider, IRegisterProvider_Vtbl, 0x0c733ab9_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(IRegisterProvider, ::windows_core::IUnknown); impl IRegisterProvider { pub unsafe fn GetURLMapping(&self, pwszurl: P0, dwreserved: usize) -> ::windows_core::Result<::windows_core::GUID> where @@ -4884,13 +4275,6 @@ impl IRegisterProvider { (::windows_core::Interface::vtable(self).UnregisterProvider)(::windows_core::Interface::as_raw(self), pwszurl.into_param().abi(), dwreserved, rclsidprovider).ok() } } -::windows_core::imp::interface_hierarchy!(IRegisterProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRegisterProvider { - type Vtable = IRegisterProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRegisterProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733ab9_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IRegisterProvider_Vtbl { @@ -4899,9 +4283,8 @@ pub struct IRegisterProvider_Vtbl { pub SetURLMapping: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwszurl: ::windows_core::PCWSTR, dwreserved: usize, rclsidprovider: *const ::windows_core::GUID) -> ::windows_core::HRESULT, pub UnregisterProvider: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwszurl: ::windows_core::PCWSTR, dwreserved: usize, rclsidprovider: *const ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRelationship(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRelationship, IRelationship_Vtbl, 0x2769280b_5108_498c_9c7f_a51239b63147); +::windows_core::imp::interface_hierarchy!(IRelationship, ::windows_core::IUnknown); impl IRelationship { pub unsafe fn Name(&self, ppszname: ::core::option::Option<*mut ::windows_core::PWSTR>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Name)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(ppszname.unwrap_or(::std::ptr::null_mut()))).ok() @@ -4916,7 +4299,7 @@ impl IRelationship { } pub unsafe fn MetaData(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).MetaData)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -4925,13 +4308,6 @@ impl IRelationship { (::windows_core::Interface::vtable(self).DefaultPhrase)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(ppszphrase.unwrap_or(::std::ptr::null_mut()))).ok() } } -::windows_core::imp::interface_hierarchy!(IRelationship, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRelationship { - type Vtable = IRelationship_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRelationship { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2769280b_5108_498c_9c7f_a51239b63147); -} #[repr(C)] #[doc(hidden)] pub struct IRelationship_Vtbl { @@ -4942,9 +4318,8 @@ pub struct IRelationship_Vtbl { pub MetaData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, pmetadata: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub DefaultPhrase: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppszphrase: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRichChunk(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRichChunk, IRichChunk_Vtbl, 0x4fdef69c_dbc9_454e_9910_b34f3c64b510); +::windows_core::imp::interface_hierarchy!(IRichChunk, ::windows_core::IUnknown); impl IRichChunk { #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] @@ -4952,13 +4327,6 @@ impl IRichChunk { (::windows_core::Interface::vtable(self).GetData)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pfirstpos.unwrap_or(::std::ptr::null_mut())), ::core::mem::transmute(plength.unwrap_or(::std::ptr::null_mut())), ::core::mem::transmute(ppsz.unwrap_or(::std::ptr::null_mut())), ::core::mem::transmute(pvalue.unwrap_or(::std::ptr::null_mut()))).ok() } } -::windows_core::imp::interface_hierarchy!(IRichChunk, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRichChunk { - type Vtable = IRichChunk_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRichChunk { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4fdef69c_dbc9_454e_9910_b34f3c64b510); -} #[repr(C)] #[doc(hidden)] pub struct IRichChunk_Vtbl { @@ -4968,9 +4336,8 @@ pub struct IRichChunk_Vtbl { #[cfg(not(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant")))] GetData: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRow(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRow, IRow_Vtbl, 0x0c733ab4_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(IRow, ::windows_core::IUnknown); impl IRow { #[doc = "Required features: `\"Win32_Storage_IndexServer\"`"] #[cfg(feature = "Win32_Storage_IndexServer")] @@ -4989,13 +4356,6 @@ impl IRow { (::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::imp::interface_hierarchy!(IRow, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRow { - type Vtable = IRow_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRow { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733ab4_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IRow_Vtbl { @@ -5010,9 +4370,8 @@ pub struct IRow_Vtbl { #[cfg(not(feature = "Win32_Storage_IndexServer"))] Open: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRowChange(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRowChange, IRowChange_Vtbl, 0x0c733ab5_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(IRowChange, ::windows_core::IUnknown); impl IRowChange { #[doc = "Required features: `\"Win32_Storage_IndexServer\"`"] #[cfg(feature = "Win32_Storage_IndexServer")] @@ -5020,13 +4379,6 @@ impl IRowChange { (::windows_core::Interface::vtable(self).SetColumns)(::windows_core::Interface::as_raw(self), rgcolumns.len().try_into().unwrap(), ::core::mem::transmute(rgcolumns.as_ptr())).ok() } } -::windows_core::imp::interface_hierarchy!(IRowChange, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRowChange { - type Vtable = IRowChange_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRowChange { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733ab5_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IRowChange_Vtbl { @@ -5036,9 +4388,8 @@ pub struct IRowChange_Vtbl { #[cfg(not(feature = "Win32_Storage_IndexServer"))] SetColumns: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRowPosition(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRowPosition, IRowPosition_Vtbl, 0x0c733a94_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(IRowPosition, ::windows_core::IUnknown); impl IRowPosition { pub unsafe fn ClearRowPosition(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).ClearRowPosition)(::windows_core::Interface::as_raw(self)).ok() @@ -5060,13 +4411,6 @@ impl IRowPosition { (::windows_core::Interface::vtable(self).SetRowPosition)(::windows_core::Interface::as_raw(self), hchapter, hrow, dwpositionflags).ok() } } -::windows_core::imp::interface_hierarchy!(IRowPosition, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRowPosition { - type Vtable = IRowPosition_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRowPosition { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733a94_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IRowPosition_Vtbl { @@ -5077,9 +4421,8 @@ pub struct IRowPosition_Vtbl { pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prowset: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetRowPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hchapter: usize, hrow: usize, dwpositionflags: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRowPositionChange(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRowPositionChange, IRowPositionChange_Vtbl, 0x0997a571_126e_11d0_9f8a_00a0c9a0631e); +::windows_core::imp::interface_hierarchy!(IRowPositionChange, ::windows_core::IUnknown); impl IRowPositionChange { pub unsafe fn OnRowPositionChange(&self, ereason: u32, ephase: u32, fcantdeny: P0) -> ::windows_core::Result<()> where @@ -5088,22 +4431,14 @@ impl IRowPositionChange { (::windows_core::Interface::vtable(self).OnRowPositionChange)(::windows_core::Interface::as_raw(self), ereason, ephase, fcantdeny.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IRowPositionChange, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRowPositionChange { - type Vtable = IRowPositionChange_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRowPositionChange { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0997a571_126e_11d0_9f8a_00a0c9a0631e); -} #[repr(C)] #[doc(hidden)] pub struct IRowPositionChange_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnRowPositionChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ereason: u32, ephase: u32, fcantdeny: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRowSchemaChange(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRowSchemaChange, IRowSchemaChange_Vtbl, 0x0c733aae_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(IRowSchemaChange, ::windows_core::IUnknown, IRowChange); impl IRowSchemaChange { #[doc = "Required features: `\"Win32_Storage_IndexServer\"`"] #[cfg(feature = "Win32_Storage_IndexServer")] @@ -5121,13 +4456,6 @@ impl IRowSchemaChange { (::windows_core::Interface::vtable(self).AddColumns)(::windows_core::Interface::as_raw(self), ccolumns, rgnewcolumninfo, rgcolumns).ok() } } -::windows_core::imp::interface_hierarchy!(IRowSchemaChange, ::windows_core::IUnknown, IRowChange); -unsafe impl ::windows_core::Interface for IRowSchemaChange { - type Vtable = IRowSchemaChange_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRowSchemaChange { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733aae_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IRowSchemaChange_Vtbl { @@ -5141,9 +4469,8 @@ pub struct IRowSchemaChange_Vtbl { #[cfg(not(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com")))] AddColumns: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRowset(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRowset, IRowset_Vtbl, 0x0c733a7c_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(IRowset, ::windows_core::IUnknown); impl IRowset { pub unsafe fn AddRefRows(&self, crows: usize, rghrows: *const usize, rgrefcounts: *mut u32, rgrowstatus: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).AddRefRows)(::windows_core::Interface::as_raw(self), crows, rghrows, rgrefcounts, rgrowstatus).ok() @@ -5164,13 +4491,6 @@ impl IRowset { (::windows_core::Interface::vtable(self).RestartPosition)(::windows_core::Interface::as_raw(self), hreserved).ok() } } -::windows_core::imp::interface_hierarchy!(IRowset, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRowset { - type Vtable = IRowset_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRowset { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733a7c_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IRowset_Vtbl { @@ -5181,9 +4501,8 @@ pub struct IRowset_Vtbl { pub ReleaseRows: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, crows: usize, rghrows: *const usize, rgrowoptions: *const u32, rgrefcounts: *mut u32, rgrowstatus: *mut u32) -> ::windows_core::HRESULT, pub RestartPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hreserved: usize) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRowsetAsynch(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRowsetAsynch, IRowsetAsynch_Vtbl, 0x0c733a0f_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(IRowsetAsynch, ::windows_core::IUnknown); impl IRowsetAsynch { pub unsafe fn RatioFinished(&self, puldenominator: *mut usize, pulnumerator: *mut usize, pcrows: *mut usize, pfnewrows: *mut super::super::Foundation::BOOL) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).RatioFinished)(::windows_core::Interface::as_raw(self), puldenominator, pulnumerator, pcrows, pfnewrows).ok() @@ -5192,13 +4511,6 @@ impl IRowsetAsynch { (::windows_core::Interface::vtable(self).Stop)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IRowsetAsynch, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRowsetAsynch { - type Vtable = IRowsetAsynch_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRowsetAsynch { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733a0f_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IRowsetAsynch_Vtbl { @@ -5206,30 +4518,21 @@ pub struct IRowsetAsynch_Vtbl { pub RatioFinished: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, puldenominator: *mut usize, pulnumerator: *mut usize, pcrows: *mut usize, pfnewrows: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub Stop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRowsetBookmark(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRowsetBookmark, IRowsetBookmark_Vtbl, 0x0c733ac2_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(IRowsetBookmark, ::windows_core::IUnknown); impl IRowsetBookmark { pub unsafe fn PositionOnBookmark(&self, hchapter: usize, pbookmark: &[u8]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).PositionOnBookmark)(::windows_core::Interface::as_raw(self), hchapter, pbookmark.len().try_into().unwrap(), ::core::mem::transmute(pbookmark.as_ptr())).ok() } } -::windows_core::imp::interface_hierarchy!(IRowsetBookmark, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRowsetBookmark { - type Vtable = IRowsetBookmark_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRowsetBookmark { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733ac2_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IRowsetBookmark_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub PositionOnBookmark: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hchapter: usize, cbbookmark: usize, pbookmark: *const u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRowsetChange(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRowsetChange, IRowsetChange_Vtbl, 0x0c733a05_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(IRowsetChange, ::windows_core::IUnknown); impl IRowsetChange { pub unsafe fn DeleteRows(&self, hreserved: usize, crows: usize, rghrows: *const usize, rgrowstatus: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).DeleteRows)(::windows_core::Interface::as_raw(self), hreserved, crows, rghrows, rgrowstatus).ok() @@ -5248,13 +4551,6 @@ impl IRowsetChange { (::windows_core::Interface::vtable(self).InsertRow)(::windows_core::Interface::as_raw(self), hreserved, haccessor.into_param().abi(), pdata, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IRowsetChange, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRowsetChange { - type Vtable = IRowsetChange_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRowsetChange { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733a05_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IRowsetChange_Vtbl { @@ -5263,9 +4559,8 @@ pub struct IRowsetChange_Vtbl { pub SetData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hrow: usize, haccessor: HACCESSOR, pdata: *const ::core::ffi::c_void) -> ::windows_core::HRESULT, pub InsertRow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hreserved: usize, haccessor: HACCESSOR, pdata: *const ::core::ffi::c_void, phrow: *mut usize) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRowsetChangeExtInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRowsetChangeExtInfo, IRowsetChangeExtInfo_Vtbl, 0x0c733a8f_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(IRowsetChangeExtInfo, ::windows_core::IUnknown); impl IRowsetChangeExtInfo { pub unsafe fn GetOriginalRow(&self, hreserved: usize, hrow: usize, phroworiginal: *mut usize) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetOriginalRow)(::windows_core::Interface::as_raw(self), hreserved, hrow, phroworiginal).ok() @@ -5274,13 +4569,6 @@ impl IRowsetChangeExtInfo { (::windows_core::Interface::vtable(self).GetPendingColumns)(::windows_core::Interface::as_raw(self), hreserved, hrow, ccolumnordinals, rgiordinals, rgcolumnstatus).ok() } } -::windows_core::imp::interface_hierarchy!(IRowsetChangeExtInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRowsetChangeExtInfo { - type Vtable = IRowsetChangeExtInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRowsetChangeExtInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733a8f_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IRowsetChangeExtInfo_Vtbl { @@ -5288,30 +4576,21 @@ pub struct IRowsetChangeExtInfo_Vtbl { pub GetOriginalRow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hreserved: usize, hrow: usize, phroworiginal: *mut usize) -> ::windows_core::HRESULT, pub GetPendingColumns: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hreserved: usize, hrow: usize, ccolumnordinals: u32, rgiordinals: *const u32, rgcolumnstatus: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRowsetChapterMember(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRowsetChapterMember, IRowsetChapterMember_Vtbl, 0x0c733aa8_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(IRowsetChapterMember, ::windows_core::IUnknown); impl IRowsetChapterMember { pub unsafe fn IsRowInChapter(&self, hchapter: usize, hrow: usize) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).IsRowInChapter)(::windows_core::Interface::as_raw(self), hchapter, hrow).ok() } } -::windows_core::imp::interface_hierarchy!(IRowsetChapterMember, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRowsetChapterMember { - type Vtable = IRowsetChapterMember_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRowsetChapterMember { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733aa8_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IRowsetChapterMember_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub IsRowInChapter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hchapter: usize, hrow: usize) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRowsetCopyRows(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRowsetCopyRows, IRowsetCopyRows_Vtbl, 0x0c733a6b_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(IRowsetCopyRows, ::windows_core::IUnknown); impl IRowsetCopyRows { pub unsafe fn CloseSource(&self, hsourceid: u16) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).CloseSource)(::windows_core::Interface::as_raw(self), hsourceid).ok() @@ -5331,13 +4610,6 @@ impl IRowsetCopyRows { (::windows_core::Interface::vtable(self).DefineSource)(::windows_core::Interface::as_raw(self), prowsetsource.into_param().abi(), ccolids, rgsourcecolumns, rgtargetcolumns, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IRowsetCopyRows, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRowsetCopyRows { - type Vtable = IRowsetCopyRows_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRowsetCopyRows { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733a6b_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IRowsetCopyRows_Vtbl { @@ -5347,9 +4619,8 @@ pub struct IRowsetCopyRows_Vtbl { pub CopyRows: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hsourceid: u16, hreserved: usize, crows: isize, bflags: u32, pcrowscopied: *mut usize) -> ::windows_core::HRESULT, pub DefineSource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prowsetsource: *mut ::core::ffi::c_void, ccolids: usize, rgsourcecolumns: *const isize, rgtargetcolumns: *const isize, phsourceid: *mut u16) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRowsetCurrentIndex(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRowsetCurrentIndex, IRowsetCurrentIndex_Vtbl, 0x0c733abd_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(IRowsetCurrentIndex, ::windows_core::IUnknown, IRowsetIndex); impl IRowsetCurrentIndex { #[doc = "Required features: `\"Win32_Storage_IndexServer\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -5380,13 +4651,6 @@ impl IRowsetCurrentIndex { (::windows_core::Interface::vtable(self).SetIndex)(::windows_core::Interface::as_raw(self), pindexid).ok() } } -::windows_core::imp::interface_hierarchy!(IRowsetCurrentIndex, ::windows_core::IUnknown, IRowsetIndex); -unsafe impl ::windows_core::Interface for IRowsetCurrentIndex { - type Vtable = IRowsetCurrentIndex_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRowsetCurrentIndex { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733abd_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IRowsetCurrentIndex_Vtbl { @@ -5400,9 +4664,8 @@ pub struct IRowsetCurrentIndex_Vtbl { #[cfg(not(feature = "Win32_Storage_IndexServer"))] SetIndex: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRowsetEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRowsetEvents, IRowsetEvents_Vtbl, 0x1551aea5_5d66_4b11_86f5_d5634cb211b9); +::windows_core::imp::interface_hierarchy!(IRowsetEvents, ::windows_core::IUnknown); impl IRowsetEvents { #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] @@ -5425,13 +4688,6 @@ impl IRowsetEvents { (::windows_core::Interface::vtable(self).OnRowsetEvent)(::windows_core::Interface::as_raw(self), eventtype, eventdata).ok() } } -::windows_core::imp::interface_hierarchy!(IRowsetEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRowsetEvents { - type Vtable = IRowsetEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRowsetEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1551aea5_5d66_4b11_86f5_d5634cb211b9); -} #[repr(C)] #[doc(hidden)] pub struct IRowsetEvents_Vtbl { @@ -5453,9 +4709,8 @@ pub struct IRowsetEvents_Vtbl { #[cfg(not(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant")))] OnRowsetEvent: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRowsetExactScroll(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRowsetExactScroll, IRowsetExactScroll_Vtbl, 0x0c733a7f_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(IRowsetExactScroll, ::windows_core::IUnknown, IRowset, IRowsetLocate, IRowsetScroll); impl IRowsetExactScroll { pub unsafe fn AddRefRows(&self, crows: usize, rghrows: *const usize, rgrefcounts: *mut u32, rgrowstatus: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.AddRefRows)(::windows_core::Interface::as_raw(self), crows, rghrows, rgrefcounts, rgrowstatus).ok() @@ -5498,22 +4753,14 @@ impl IRowsetExactScroll { (::windows_core::Interface::vtable(self).GetExactPosition)(::windows_core::Interface::as_raw(self), hchapter, pbookmark.len().try_into().unwrap(), ::core::mem::transmute(pbookmark.as_ptr()), pulposition, pcrows).ok() } } -::windows_core::imp::interface_hierarchy!(IRowsetExactScroll, ::windows_core::IUnknown, IRowset, IRowsetLocate, IRowsetScroll); -unsafe impl ::windows_core::Interface for IRowsetExactScroll { - type Vtable = IRowsetExactScroll_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRowsetExactScroll { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733a7f_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IRowsetExactScroll_Vtbl { pub base__: IRowsetScroll_Vtbl, pub GetExactPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hchapter: usize, cbbookmark: usize, pbookmark: *const u8, pulposition: *mut usize, pcrows: *mut usize) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRowsetFastLoad(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRowsetFastLoad, IRowsetFastLoad_Vtbl, 0x5cf4ca13_ef21_11d0_97e7_00c04fc2ad98); +::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 @@ -5528,13 +4775,6 @@ impl IRowsetFastLoad { (::windows_core::Interface::vtable(self).Commit)(::windows_core::Interface::as_raw(self), fdone.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IRowsetFastLoad, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRowsetFastLoad { - type Vtable = IRowsetFastLoad_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRowsetFastLoad { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5cf4ca13_ef21_11d0_97e7_00c04fc2ad98); -} #[repr(C)] #[doc(hidden)] pub struct IRowsetFastLoad_Vtbl { @@ -5542,9 +4782,8 @@ pub struct IRowsetFastLoad_Vtbl { pub InsertRow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, haccessor: HACCESSOR, pdata: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Commit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fdone: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRowsetFind(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRowsetFind, IRowsetFind_Vtbl, 0x0c733a9d_2a1c_11ce_ade5_00aa0044773d); +::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 @@ -5553,43 +4792,27 @@ impl IRowsetFind { (::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::imp::interface_hierarchy!(IRowsetFind, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRowsetFind { - type Vtable = IRowsetFind_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRowsetFind { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733a9d_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IRowsetFind_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub FindNextRow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hchapter: usize, haccessor: HACCESSOR, pfindvalue: *const ::core::ffi::c_void, compareop: u32, cbbookmark: usize, pbookmark: *const u8, lrowsoffset: isize, crows: isize, pcrowsobtained: *mut usize, prghrows: *mut *mut usize) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRowsetIdentity(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRowsetIdentity, IRowsetIdentity_Vtbl, 0x0c733a09_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(IRowsetIdentity, ::windows_core::IUnknown); impl IRowsetIdentity { pub unsafe fn IsSameRow(&self, hthisrow: usize, hthatrow: usize) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).IsSameRow)(::windows_core::Interface::as_raw(self), hthisrow, hthatrow).ok() } } -::windows_core::imp::interface_hierarchy!(IRowsetIdentity, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRowsetIdentity { - type Vtable = IRowsetIdentity_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRowsetIdentity { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733a09_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IRowsetIdentity_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub IsSameRow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hthisrow: usize, hthatrow: usize) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRowsetIndex(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRowsetIndex, IRowsetIndex_Vtbl, 0x0c733a82_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(IRowsetIndex, ::windows_core::IUnknown); impl IRowsetIndex { #[doc = "Required features: `\"Win32_Storage_IndexServer\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -5609,13 +4832,6 @@ impl IRowsetIndex { (::windows_core::Interface::vtable(self).SetRange)(::windows_core::Interface::as_raw(self), haccessor.into_param().abi(), cstartkeycolumns, pstartdata, cendkeycolumns, penddata, dwrangeoptions).ok() } } -::windows_core::imp::interface_hierarchy!(IRowsetIndex, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRowsetIndex { - type Vtable = IRowsetIndex_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRowsetIndex { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733a82_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IRowsetIndex_Vtbl { @@ -5627,9 +4843,8 @@ pub struct IRowsetIndex_Vtbl { pub Seek: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, haccessor: HACCESSOR, ckeyvalues: usize, pdata: *const ::core::ffi::c_void, dwseekoptions: u32) -> ::windows_core::HRESULT, pub SetRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, haccessor: HACCESSOR, cstartkeycolumns: usize, pstartdata: *const ::core::ffi::c_void, cendkeycolumns: usize, penddata: *const ::core::ffi::c_void, dwrangeoptions: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRowsetInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRowsetInfo, IRowsetInfo_Vtbl, 0x0c733a55_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(IRowsetInfo, ::windows_core::IUnknown); impl IRowsetInfo { #[doc = "Required features: `\"Win32_Storage_IndexServer\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -5645,13 +4860,6 @@ impl IRowsetInfo { (::windows_core::Interface::vtable(self).GetSpecification)(::windows_core::Interface::as_raw(self), riid, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IRowsetInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRowsetInfo { - type Vtable = IRowsetInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRowsetInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733a55_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IRowsetInfo_Vtbl { @@ -5663,30 +4871,21 @@ pub struct IRowsetInfo_Vtbl { pub GetReferencedRowset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, iordinal: usize, riid: *const ::windows_core::GUID, ppreferencedrowset: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetSpecification: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppspecification: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRowsetKeys(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRowsetKeys, IRowsetKeys_Vtbl, 0x0c733a12_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(IRowsetKeys, ::windows_core::IUnknown); impl IRowsetKeys { pub unsafe fn ListKeys(&self, pccolumns: *mut usize, prgcolumns: *mut *mut usize) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).ListKeys)(::windows_core::Interface::as_raw(self), pccolumns, prgcolumns).ok() } } -::windows_core::imp::interface_hierarchy!(IRowsetKeys, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRowsetKeys { - type Vtable = IRowsetKeys_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRowsetKeys { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733a12_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IRowsetKeys_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub ListKeys: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pccolumns: *mut usize, prgcolumns: *mut *mut usize) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRowsetLocate(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRowsetLocate, IRowsetLocate_Vtbl, 0x0c733a7d_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(IRowsetLocate, ::windows_core::IUnknown, IRowset); impl IRowsetLocate { pub unsafe fn AddRefRows(&self, crows: usize, rghrows: *const usize, rgrefcounts: *mut u32, rgrowstatus: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.AddRefRows)(::windows_core::Interface::as_raw(self), crows, rghrows, rgrefcounts, rgrowstatus).ok() @@ -5720,13 +4919,6 @@ impl IRowsetLocate { (::windows_core::Interface::vtable(self).Hash)(::windows_core::Interface::as_raw(self), hreserved, cbookmarks, rgcbbookmarks, rgpbookmarks, rghashedvalues, rgbookmarkstatus).ok() } } -::windows_core::imp::interface_hierarchy!(IRowsetLocate, ::windows_core::IUnknown, IRowset); -unsafe impl ::windows_core::Interface for IRowsetLocate { - type Vtable = IRowsetLocate_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRowsetLocate { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733a7d_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IRowsetLocate_Vtbl { @@ -5736,9 +4928,8 @@ pub struct IRowsetLocate_Vtbl { pub GetRowsByBookmark: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hreserved: usize, crows: usize, rgcbbookmarks: *const usize, rgpbookmarks: *const *const u8, rghrows: *mut usize, rgrowstatus: *mut u32) -> ::windows_core::HRESULT, pub Hash: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hreserved: usize, cbookmarks: usize, rgcbbookmarks: *const usize, rgpbookmarks: *const *const u8, rghashedvalues: *mut usize, rgbookmarkstatus: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRowsetNewRowAfter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRowsetNewRowAfter, IRowsetNewRowAfter_Vtbl, 0x0c733a71_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(IRowsetNewRowAfter, ::windows_core::IUnknown); impl IRowsetNewRowAfter { pub unsafe fn SetNewDataAfter(&self, hchapter: usize, pbmprevious: &[u8], haccessor: P0, pdata: *const u8) -> ::windows_core::Result where @@ -5748,22 +4939,14 @@ impl IRowsetNewRowAfter { (::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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IRowsetNewRowAfter, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRowsetNewRowAfter { - type Vtable = IRowsetNewRowAfter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRowsetNewRowAfter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733a71_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IRowsetNewRowAfter_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub SetNewDataAfter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hchapter: usize, cbbmprevious: u32, pbmprevious: *const u8, haccessor: HACCESSOR, pdata: *const u8, phrow: *mut usize) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRowsetNextRowset(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRowsetNextRowset, IRowsetNextRowset_Vtbl, 0x0c733a72_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(IRowsetNextRowset, ::windows_core::IUnknown); impl IRowsetNextRowset { pub unsafe fn GetNextRowset(&self, punkouter: P0, riid: *const ::windows_core::GUID) -> ::windows_core::Result<::windows_core::IUnknown> where @@ -5773,22 +4956,14 @@ impl IRowsetNextRowset { (::windows_core::Interface::vtable(self).GetNextRowset)(::windows_core::Interface::as_raw(self), punkouter.into_param().abi(), riid, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IRowsetNextRowset, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRowsetNextRowset { - type Vtable = IRowsetNextRowset_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRowsetNextRowset { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733a72_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IRowsetNextRowset_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetNextRowset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punkouter: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppnextrowset: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRowsetNotify(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRowsetNotify, IRowsetNotify_Vtbl, 0x0c733a83_2a1c_11ce_ade5_00aa0044773d); +::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 @@ -5812,13 +4987,6 @@ impl IRowsetNotify { (::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::imp::interface_hierarchy!(IRowsetNotify, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRowsetNotify { - type Vtable = IRowsetNotify_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRowsetNotify { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733a83_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IRowsetNotify_Vtbl { @@ -5827,9 +4995,8 @@ pub struct IRowsetNotify_Vtbl { pub OnRowChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prowset: *mut ::core::ffi::c_void, crows: usize, rghrows: *const usize, ereason: u32, ephase: u32, fcantdeny: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub OnRowsetChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prowset: *mut ::core::ffi::c_void, ereason: u32, ephase: u32, fcantdeny: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRowsetPrioritization(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRowsetPrioritization, IRowsetPrioritization_Vtbl, 0x42811652_079d_481b_87a2_09a69ecc5f44); +::windows_core::imp::interface_hierarchy!(IRowsetPrioritization, ::windows_core::IUnknown); impl IRowsetPrioritization { pub unsafe fn SetScopePriority(&self, priority: PRIORITY_LEVEL, scopestatisticseventfrequency: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetScopePriority)(::windows_core::Interface::as_raw(self), priority, scopestatisticseventfrequency).ok() @@ -5841,13 +5008,6 @@ impl IRowsetPrioritization { (::windows_core::Interface::vtable(self).GetScopeStatistics)(::windows_core::Interface::as_raw(self), indexeddocumentcount, oustandingaddcount, oustandingmodifycount).ok() } } -::windows_core::imp::interface_hierarchy!(IRowsetPrioritization, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRowsetPrioritization { - type Vtable = IRowsetPrioritization_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRowsetPrioritization { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x42811652_079d_481b_87a2_09a69ecc5f44); -} #[repr(C)] #[doc(hidden)] pub struct IRowsetPrioritization_Vtbl { @@ -5856,9 +5016,8 @@ pub struct IRowsetPrioritization_Vtbl { pub GetScopePriority: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, priority: *mut PRIORITY_LEVEL, scopestatisticseventfrequency: *mut u32) -> ::windows_core::HRESULT, pub GetScopeStatistics: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, indexeddocumentcount: *mut u32, oustandingaddcount: *mut u32, oustandingmodifycount: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRowsetQueryStatus(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRowsetQueryStatus, IRowsetQueryStatus_Vtbl, 0xa7ac77ed_f8d7_11ce_a798_0020f8008024); +::windows_core::imp::interface_hierarchy!(IRowsetQueryStatus, ::windows_core::IUnknown); impl IRowsetQueryStatus { pub unsafe fn GetStatus(&self, pdwstatus: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetStatus)(::windows_core::Interface::as_raw(self), pdwstatus).ok() @@ -5867,13 +5026,6 @@ impl IRowsetQueryStatus { (::windows_core::Interface::vtable(self).GetStatusEx)(::windows_core::Interface::as_raw(self), pdwstatus, pcfiltereddocuments, pcdocumentstofilter, pdwratiofinisheddenominator, pdwratiofinishednumerator, cbbmk, pbmk, pirowbmk, pcrowstotal).ok() } } -::windows_core::imp::interface_hierarchy!(IRowsetQueryStatus, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRowsetQueryStatus { - type Vtable = IRowsetQueryStatus_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRowsetQueryStatus { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa7ac77ed_f8d7_11ce_a798_0020f8008024); -} #[repr(C)] #[doc(hidden)] pub struct IRowsetQueryStatus_Vtbl { @@ -5881,9 +5033,8 @@ pub struct IRowsetQueryStatus_Vtbl { pub GetStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwstatus: *mut u32) -> ::windows_core::HRESULT, pub GetStatusEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwstatus: *mut u32, pcfiltereddocuments: *mut u32, pcdocumentstofilter: *mut u32, pdwratiofinisheddenominator: *mut usize, pdwratiofinishednumerator: *mut usize, cbbmk: usize, pbmk: *const u8, pirowbmk: *mut usize, pcrowstotal: *mut usize) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRowsetRefresh(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRowsetRefresh, IRowsetRefresh_Vtbl, 0x0c733aa9_2a1c_11ce_ade5_00aa0044773d); +::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 @@ -5898,13 +5049,6 @@ impl IRowsetRefresh { (::windows_core::Interface::vtable(self).GetLastVisibleData)(::windows_core::Interface::as_raw(self), hrow, haccessor.into_param().abi(), pdata).ok() } } -::windows_core::imp::interface_hierarchy!(IRowsetRefresh, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRowsetRefresh { - type Vtable = IRowsetRefresh_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRowsetRefresh { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733aa9_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IRowsetRefresh_Vtbl { @@ -5912,9 +5056,8 @@ pub struct IRowsetRefresh_Vtbl { pub RefreshVisibleData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hchapter: usize, crows: usize, rghrows: *const usize, foverwrite: super::super::Foundation::BOOL, pcrowsrefreshed: *mut usize, prghrowsrefreshed: *mut *mut usize, prgrowstatus: *mut *mut u32) -> ::windows_core::HRESULT, pub GetLastVisibleData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hrow: usize, haccessor: HACCESSOR, pdata: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRowsetResynch(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRowsetResynch, IRowsetResynch_Vtbl, 0x0c733a84_2a1c_11ce_ade5_00aa0044773d); +::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 @@ -5926,13 +5069,6 @@ impl IRowsetResynch { (::windows_core::Interface::vtable(self).ResynchRows)(::windows_core::Interface::as_raw(self), crows, rghrows, pcrowsresynched, prghrowsresynched, prgrowstatus).ok() } } -::windows_core::imp::interface_hierarchy!(IRowsetResynch, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRowsetResynch { - type Vtable = IRowsetResynch_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRowsetResynch { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733a84_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IRowsetResynch_Vtbl { @@ -5940,9 +5076,8 @@ pub struct IRowsetResynch_Vtbl { pub GetVisibleData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hrow: usize, haccessor: HACCESSOR, pdata: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ResynchRows: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, crows: usize, rghrows: *const usize, pcrowsresynched: *mut usize, prghrowsresynched: *mut *mut usize, prgrowstatus: *mut *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRowsetScroll(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRowsetScroll, IRowsetScroll_Vtbl, 0x0c733a7e_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(IRowsetScroll, ::windows_core::IUnknown, IRowset, IRowsetLocate); impl IRowsetScroll { pub unsafe fn AddRefRows(&self, crows: usize, rghrows: *const usize, rgrefcounts: *mut u32, rgrowstatus: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.AddRefRows)(::windows_core::Interface::as_raw(self), crows, rghrows, rgrefcounts, rgrowstatus).ok() @@ -5982,13 +5117,6 @@ impl IRowsetScroll { (::windows_core::Interface::vtable(self).GetRowsAtRatio)(::windows_core::Interface::as_raw(self), hreserved1, hreserved2, ulnumerator, uldenominator, prghrows.len().try_into().unwrap(), pcrowsobtained, ::core::mem::transmute(prghrows.as_ptr())).ok() } } -::windows_core::imp::interface_hierarchy!(IRowsetScroll, ::windows_core::IUnknown, IRowset, IRowsetLocate); -unsafe impl ::windows_core::Interface for IRowsetScroll { - type Vtable = IRowsetScroll_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRowsetScroll { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733a7e_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IRowsetScroll_Vtbl { @@ -5996,9 +5124,8 @@ pub struct IRowsetScroll_Vtbl { pub GetApproximatePosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hreserved: usize, cbbookmark: usize, pbookmark: *const u8, pulposition: *mut usize, pcrows: *mut usize) -> ::windows_core::HRESULT, pub GetRowsAtRatio: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hreserved1: usize, hreserved2: usize, ulnumerator: usize, uldenominator: usize, crows: isize, pcrowsobtained: *mut usize, prghrows: *mut *mut usize) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRowsetUpdate(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRowsetUpdate, IRowsetUpdate_Vtbl, 0x0c733a6d_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(IRowsetUpdate, ::windows_core::IUnknown, IRowsetChange); impl IRowsetUpdate { pub unsafe fn DeleteRows(&self, hreserved: usize, crows: usize, rghrows: *const usize, rgrowstatus: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.DeleteRows)(::windows_core::Interface::as_raw(self), hreserved, crows, rghrows, rgrowstatus).ok() @@ -6035,13 +5162,6 @@ impl IRowsetUpdate { (::windows_core::Interface::vtable(self).Update)(::windows_core::Interface::as_raw(self), hreserved, rghrows.len().try_into().unwrap(), ::core::mem::transmute(rghrows.as_ptr()), pcrows, prgrows, prgrowstatus).ok() } } -::windows_core::imp::interface_hierarchy!(IRowsetUpdate, ::windows_core::IUnknown, IRowsetChange); -unsafe impl ::windows_core::Interface for IRowsetUpdate { - type Vtable = IRowsetUpdate_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRowsetUpdate { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733a6d_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IRowsetUpdate_Vtbl { @@ -6052,9 +5172,8 @@ pub struct IRowsetUpdate_Vtbl { pub Undo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hreserved: usize, crows: usize, rghrows: *const usize, pcrowsundone: *mut usize, prgrowsundone: *mut *mut usize, prgrowstatus: *mut *mut u32) -> ::windows_core::HRESULT, pub Update: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hreserved: usize, crows: usize, rghrows: *const usize, pcrows: *mut usize, prgrows: *mut *mut usize, prgrowstatus: *mut *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRowsetView(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRowsetView, IRowsetView_Vtbl, 0x0c733a99_2a1c_11ce_ade5_00aa0044773d); +::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<::windows_core::IUnknown> where @@ -6067,13 +5186,6 @@ impl IRowsetView { (::windows_core::Interface::vtable(self).GetView)(::windows_core::Interface::as_raw(self), hchapter, riid, phchaptersource, ::core::mem::transmute(ppview)).ok() } } -::windows_core::imp::interface_hierarchy!(IRowsetView, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRowsetView { - type Vtable = IRowsetView_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRowsetView { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733a99_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IRowsetView_Vtbl { @@ -6081,9 +5193,8 @@ pub struct IRowsetView_Vtbl { pub CreateView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punkouter: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppview: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hchapter: usize, riid: *const ::windows_core::GUID, phchaptersource: *mut usize, ppview: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRowsetWatchAll(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRowsetWatchAll, IRowsetWatchAll_Vtbl, 0x0c733a73_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(IRowsetWatchAll, ::windows_core::IUnknown); impl IRowsetWatchAll { pub unsafe fn Acknowledge(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Acknowledge)(::windows_core::Interface::as_raw(self)).ok() @@ -6095,13 +5206,6 @@ impl IRowsetWatchAll { (::windows_core::Interface::vtable(self).StopWatching)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IRowsetWatchAll, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRowsetWatchAll { - type Vtable = IRowsetWatchAll_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRowsetWatchAll { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733a73_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IRowsetWatchAll_Vtbl { @@ -6110,9 +5214,8 @@ pub struct IRowsetWatchAll_Vtbl { pub Start: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub StopWatching: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRowsetWatchNotify(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRowsetWatchNotify, IRowsetWatchNotify_Vtbl, 0x0c733a44_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(IRowsetWatchNotify, ::windows_core::IUnknown); impl IRowsetWatchNotify { pub unsafe fn OnChange(&self, prowset: P0, echangereason: u32) -> ::windows_core::Result<()> where @@ -6121,22 +5224,14 @@ impl IRowsetWatchNotify { (::windows_core::Interface::vtable(self).OnChange)(::windows_core::Interface::as_raw(self), prowset.into_param().abi(), echangereason).ok() } } -::windows_core::imp::interface_hierarchy!(IRowsetWatchNotify, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRowsetWatchNotify { - type Vtable = IRowsetWatchNotify_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRowsetWatchNotify { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733a44_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IRowsetWatchNotify_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prowset: *mut ::core::ffi::c_void, echangereason: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRowsetWatchRegion(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRowsetWatchRegion, IRowsetWatchRegion_Vtbl, 0x0c733a45_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(IRowsetWatchRegion, ::windows_core::IUnknown, IRowsetWatchAll); impl IRowsetWatchRegion { pub unsafe fn Acknowledge(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.Acknowledge)(::windows_core::Interface::as_raw(self)).ok() @@ -6167,13 +5262,6 @@ impl IRowsetWatchRegion { (::windows_core::Interface::vtable(self).ShrinkWatchRegion)(::windows_core::Interface::as_raw(self), hregion, hchapter, pbookmark.len().try_into().unwrap(), ::core::mem::transmute(pbookmark.as_ptr()), crows).ok() } } -::windows_core::imp::interface_hierarchy!(IRowsetWatchRegion, ::windows_core::IUnknown, IRowsetWatchAll); -unsafe impl ::windows_core::Interface for IRowsetWatchRegion { - type Vtable = IRowsetWatchRegion_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRowsetWatchRegion { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733a45_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IRowsetWatchRegion_Vtbl { @@ -6185,9 +5273,8 @@ pub struct IRowsetWatchRegion_Vtbl { pub Refresh: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcchangesobtained: *mut usize, prgchanges: *mut *mut DBROWWATCHCHANGE) -> ::windows_core::HRESULT, pub ShrinkWatchRegion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hregion: usize, hchapter: usize, cbbookmark: usize, pbookmark: *const u8, crows: isize) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRowsetWithParameters(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRowsetWithParameters, IRowsetWithParameters_Vtbl, 0x0c733a6e_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(IRowsetWithParameters, ::windows_core::IUnknown); impl IRowsetWithParameters { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -6198,13 +5285,6 @@ impl IRowsetWithParameters { (::windows_core::Interface::vtable(self).Requery)(::windows_core::Interface::as_raw(self), pparams, pulerrorparam, phreserved).ok() } } -::windows_core::imp::interface_hierarchy!(IRowsetWithParameters, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRowsetWithParameters { - type Vtable = IRowsetWithParameters_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRowsetWithParameters { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733a6e_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IRowsetWithParameters_Vtbl { @@ -6215,30 +5295,21 @@ pub struct IRowsetWithParameters_Vtbl { GetParameterInfo: usize, pub Requery: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pparams: *const DBPARAMS, pulerrorparam: *mut u32, phreserved: *mut usize) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISQLErrorInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISQLErrorInfo, ISQLErrorInfo_Vtbl, 0x0c733a74_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(ISQLErrorInfo, ::windows_core::IUnknown); impl ISQLErrorInfo { pub unsafe fn GetSQLInfo(&self, pbstrsqlstate: *mut ::windows_core::BSTR, plnativeerror: *mut i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetSQLInfo)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pbstrsqlstate), plnativeerror).ok() } } -::windows_core::imp::interface_hierarchy!(ISQLErrorInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISQLErrorInfo { - type Vtable = ISQLErrorInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISQLErrorInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733a74_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct ISQLErrorInfo_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetSQLInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsqlstate: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>, plnativeerror: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISQLGetDiagField(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISQLGetDiagField, ISQLGetDiagField_Vtbl, 0x228972f1_b5ff_11d0_8a80_00c04fd611cd); +::windows_core::imp::interface_hierarchy!(ISQLGetDiagField, ::windows_core::IUnknown); impl ISQLGetDiagField { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -6246,13 +5317,6 @@ impl ISQLGetDiagField { (::windows_core::Interface::vtable(self).GetDiagField)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pdiaginfo.unwrap_or(::std::ptr::null_mut()))).ok() } } -::windows_core::imp::interface_hierarchy!(ISQLGetDiagField, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISQLGetDiagField { - type Vtable = ISQLGetDiagField_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISQLGetDiagField { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x228972f1_b5ff_11d0_8a80_00c04fd611cd); -} #[repr(C)] #[doc(hidden)] pub struct ISQLGetDiagField_Vtbl { @@ -6262,9 +5326,8 @@ pub struct ISQLGetDiagField_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] GetDiagField: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISQLRequestDiagFields(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISQLRequestDiagFields, ISQLRequestDiagFields_Vtbl, 0x228972f0_b5ff_11d0_8a80_00c04fd611cd); +::windows_core::imp::interface_hierarchy!(ISQLRequestDiagFields, ::windows_core::IUnknown); impl ISQLRequestDiagFields { #[doc = "Required features: `\"Win32_System_Variant\"`"] #[cfg(feature = "Win32_System_Variant")] @@ -6272,13 +5335,6 @@ impl ISQLRequestDiagFields { (::windows_core::Interface::vtable(self).RequestDiagFields)(::windows_core::Interface::as_raw(self), rgdiagfields.len().try_into().unwrap(), ::core::mem::transmute(rgdiagfields.as_ptr())).ok() } } -::windows_core::imp::interface_hierarchy!(ISQLRequestDiagFields, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISQLRequestDiagFields { - type Vtable = ISQLRequestDiagFields_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISQLRequestDiagFields { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x228972f0_b5ff_11d0_8a80_00c04fd611cd); -} #[repr(C)] #[doc(hidden)] pub struct ISQLRequestDiagFields_Vtbl { @@ -6288,30 +5344,21 @@ pub struct ISQLRequestDiagFields_Vtbl { #[cfg(not(feature = "Win32_System_Variant"))] RequestDiagFields: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISQLServerErrorInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISQLServerErrorInfo, ISQLServerErrorInfo_Vtbl, 0x5cf4ca12_ef21_11d0_97e7_00c04fc2ad98); +::windows_core::imp::interface_hierarchy!(ISQLServerErrorInfo, ::windows_core::IUnknown); impl ISQLServerErrorInfo { pub unsafe fn GetErrorInfo(&self, pperrorinfo: *mut *mut SSERRORINFO, ppstringsbuffer: *mut *mut u16) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetErrorInfo)(::windows_core::Interface::as_raw(self), pperrorinfo, ppstringsbuffer).ok() } } -::windows_core::imp::interface_hierarchy!(ISQLServerErrorInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISQLServerErrorInfo { - type Vtable = ISQLServerErrorInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISQLServerErrorInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5cf4ca12_ef21_11d0_97e7_00c04fc2ad98); -} #[repr(C)] #[doc(hidden)] pub struct ISQLServerErrorInfo_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetErrorInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pperrorinfo: *mut *mut SSERRORINFO, ppstringsbuffer: *mut *mut u16) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISchemaLocalizerSupport(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISchemaLocalizerSupport, ISchemaLocalizerSupport_Vtbl, 0xca3fdca2_bfbe_4eed_90d7_0caef0a1bda1); +::windows_core::imp::interface_hierarchy!(ISchemaLocalizerSupport, ::windows_core::IUnknown); impl ISchemaLocalizerSupport { pub unsafe fn Localize(&self, pszglobalstring: P0) -> ::windows_core::Result<::windows_core::PWSTR> where @@ -6321,22 +5368,14 @@ impl ISchemaLocalizerSupport { (::windows_core::Interface::vtable(self).Localize)(::windows_core::Interface::as_raw(self), pszglobalstring.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISchemaLocalizerSupport, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISchemaLocalizerSupport { - type Vtable = ISchemaLocalizerSupport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISchemaLocalizerSupport { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xca3fdca2_bfbe_4eed_90d7_0caef0a1bda1); -} #[repr(C)] #[doc(hidden)] pub struct ISchemaLocalizerSupport_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Localize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszglobalstring: ::windows_core::PCWSTR, ppszlocalstring: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISchemaLock(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISchemaLock, ISchemaLock_Vtbl, 0x4c2389fb_2511_11d4_b258_00c04f7971ce); +::windows_core::imp::interface_hierarchy!(ISchemaLock, ::windows_core::IUnknown); impl ISchemaLock { #[doc = "Required features: `\"Win32_Storage_IndexServer\"`"] #[cfg(feature = "Win32_Storage_IndexServer")] @@ -6350,13 +5389,6 @@ impl ISchemaLock { (::windows_core::Interface::vtable(self).ReleaseSchemaLock)(::windows_core::Interface::as_raw(self), hlockhandle.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ISchemaLock, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISchemaLock { - type Vtable = ISchemaLock_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISchemaLock { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4c2389fb_2511_11d4_b258_00c04f7971ce); -} #[repr(C)] #[doc(hidden)] pub struct ISchemaLock_Vtbl { @@ -6367,13 +5399,12 @@ pub struct ISchemaLock_Vtbl { GetSchemaLock: usize, pub ReleaseSchemaLock: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hlockhandle: super::super::Foundation::HANDLE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISchemaProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISchemaProvider, ISchemaProvider_Vtbl, 0x8cf89bcb_394c_49b2_ae28_a59dd4ed7f68); +::windows_core::imp::interface_hierarchy!(ISchemaProvider, ::windows_core::IUnknown); impl ISchemaProvider { pub unsafe fn Entities(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).Entities)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -6391,7 +5422,7 @@ impl ISchemaProvider { } pub unsafe fn MetaData(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).MetaData)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -6417,13 +5448,6 @@ impl ISchemaProvider { (::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::imp::interface_hierarchy!(ISchemaProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISchemaProvider { - type Vtable = ISchemaProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISchemaProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8cf89bcb_394c_49b2_ae28_a59dd4ed7f68); -} #[repr(C)] #[doc(hidden)] pub struct ISchemaProvider_Vtbl { @@ -6436,9 +5460,8 @@ pub struct ISchemaProvider_Vtbl { pub SaveBinary: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszschemabinarypath: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub LookupAuthoredNamedEntity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pentity: *mut ::core::ffi::c_void, pszinputstring: ::windows_core::PCWSTR, ptokencollection: *mut ::core::ffi::c_void, ctokensbegin: u32, pctokenslength: *mut u32, ppszvalue: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IScopedOperations(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IScopedOperations, IScopedOperations_Vtbl, 0x0c733ab0_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(IScopedOperations, ::windows_core::IUnknown, IBindResource); impl IScopedOperations { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -6478,13 +5501,6 @@ impl IScopedOperations { (::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::imp::interface_hierarchy!(IScopedOperations, ::windows_core::IUnknown, IBindResource); -unsafe impl ::windows_core::Interface for IScopedOperations { - type Vtable = IScopedOperations_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IScopedOperations { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733ab0_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IScopedOperations_Vtbl { @@ -6503,9 +5519,8 @@ pub struct IScopedOperations_Vtbl { #[cfg(not(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] OpenRowset: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISearchCatalogManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISearchCatalogManager, ISearchCatalogManager_Vtbl, 0xab310581_ac80_11d1_8df3_00c04fb6ef50); +::windows_core::imp::interface_hierarchy!(ISearchCatalogManager, ::windows_core::IUnknown); impl ISearchCatalogManager { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); @@ -6596,7 +5611,7 @@ impl ISearchCatalogManager { 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, - T: ::windows_core::ComInterface, + 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).from_abi(result__) @@ -6636,13 +5651,6 @@ impl ISearchCatalogManager { (::windows_core::Interface::vtable(self).GetCrawlScopeManager)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISearchCatalogManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISearchCatalogManager { - type Vtable = ISearchCatalogManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISearchCatalogManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xab310581_ac80_11d1_8df3_00c04fb6ef50); -} #[repr(C)] #[doc(hidden)] pub struct ISearchCatalogManager_Vtbl { @@ -6683,9 +5691,8 @@ pub struct ISearchCatalogManager_Vtbl { pub DiacriticSensitivity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfdiacriticsensitive: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub GetCrawlScopeManager: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppcrawlscopemanager: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISearchCatalogManager2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISearchCatalogManager2, ISearchCatalogManager2_Vtbl, 0x7ac3286d_4d1d_4817_84fc_c1c85e3af0d9); +::windows_core::imp::interface_hierarchy!(ISearchCatalogManager2, ::windows_core::IUnknown, ISearchCatalogManager); impl ISearchCatalogManager2 { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); @@ -6776,7 +5783,7 @@ impl ISearchCatalogManager2 { 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, - T: ::windows_core::ComInterface, + 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).from_abi(result__) @@ -6822,22 +5829,14 @@ impl ISearchCatalogManager2 { (::windows_core::Interface::vtable(self).PrioritizeMatchingURLs)(::windows_core::Interface::as_raw(self), pszpattern.into_param().abi(), dwprioritizeflags).ok() } } -::windows_core::imp::interface_hierarchy!(ISearchCatalogManager2, ::windows_core::IUnknown, ISearchCatalogManager); -unsafe impl ::windows_core::Interface for ISearchCatalogManager2 { - type Vtable = ISearchCatalogManager2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISearchCatalogManager2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7ac3286d_4d1d_4817_84fc_c1c85e3af0d9); -} #[repr(C)] #[doc(hidden)] pub struct ISearchCatalogManager2_Vtbl { pub base__: ISearchCatalogManager_Vtbl, pub PrioritizeMatchingURLs: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszpattern: ::windows_core::PCWSTR, dwprioritizeflags: PRIORITIZE_FLAGS) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISearchCrawlScopeManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISearchCrawlScopeManager, ISearchCrawlScopeManager_Vtbl, 0xab310581_ac80_11d1_8df3_00c04fb6ef55); +::windows_core::imp::interface_hierarchy!(ISearchCrawlScopeManager, ::windows_core::IUnknown); impl ISearchCrawlScopeManager { pub unsafe fn AddDefaultScopeRule(&self, pszurl: P0, finclude: P1, ffollowflags: u32) -> ::windows_core::Result<()> where @@ -6936,13 +5935,6 @@ impl ISearchCrawlScopeManager { (::windows_core::Interface::vtable(self).RemoveDefaultScopeRule)(::windows_core::Interface::as_raw(self), pszurl.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ISearchCrawlScopeManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISearchCrawlScopeManager { - type Vtable = ISearchCrawlScopeManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISearchCrawlScopeManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xab310581_ac80_11d1_8df3_00c04fb6ef55); -} #[repr(C)] #[doc(hidden)] pub struct ISearchCrawlScopeManager_Vtbl { @@ -6964,9 +5956,8 @@ pub struct ISearchCrawlScopeManager_Vtbl { pub GetParentScopeVersionId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszurl: ::windows_core::PCWSTR, plscopeid: *mut i32) -> ::windows_core::HRESULT, pub RemoveDefaultScopeRule: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszurl: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISearchCrawlScopeManager2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISearchCrawlScopeManager2, ISearchCrawlScopeManager2_Vtbl, 0x6292f7ad_4e19_4717_a534_8fc22bcd5ccd); +::windows_core::imp::interface_hierarchy!(ISearchCrawlScopeManager2, ::windows_core::IUnknown, ISearchCrawlScopeManager); impl ISearchCrawlScopeManager2 { pub unsafe fn AddDefaultScopeRule(&self, pszurl: P0, finclude: P1, ffollowflags: u32) -> ::windows_core::Result<()> where @@ -7068,22 +6059,14 @@ impl ISearchCrawlScopeManager2 { (::windows_core::Interface::vtable(self).GetVersion)(::windows_core::Interface::as_raw(self), plversion, phfilemapping).ok() } } -::windows_core::imp::interface_hierarchy!(ISearchCrawlScopeManager2, ::windows_core::IUnknown, ISearchCrawlScopeManager); -unsafe impl ::windows_core::Interface for ISearchCrawlScopeManager2 { - type Vtable = ISearchCrawlScopeManager2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISearchCrawlScopeManager2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6292f7ad_4e19_4717_a534_8fc22bcd5ccd); -} #[repr(C)] #[doc(hidden)] pub struct ISearchCrawlScopeManager2_Vtbl { pub base__: ISearchCrawlScopeManager_Vtbl, pub GetVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plversion: *mut *mut i32, phfilemapping: *mut super::super::Foundation::HANDLE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISearchItemsChangedSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISearchItemsChangedSink, ISearchItemsChangedSink_Vtbl, 0xab310581_ac80_11d1_8df3_00c04fb6ef58); +::windows_core::imp::interface_hierarchy!(ISearchItemsChangedSink, ::windows_core::IUnknown); impl ISearchItemsChangedSink { pub unsafe fn StartedMonitoringScope(&self, pszurl: P0) -> ::windows_core::Result<()> where @@ -7103,13 +6086,6 @@ impl ISearchItemsChangedSink { (::windows_core::Interface::vtable(self).OnItemsChanged)(::windows_core::Interface::as_raw(self), dwnumberofchanges, rgdatachangeentries, rgdwdocids, rghrcompletioncodes).ok() } } -::windows_core::imp::interface_hierarchy!(ISearchItemsChangedSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISearchItemsChangedSink { - type Vtable = ISearchItemsChangedSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISearchItemsChangedSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xab310581_ac80_11d1_8df3_00c04fb6ef58); -} #[repr(C)] #[doc(hidden)] pub struct ISearchItemsChangedSink_Vtbl { @@ -7121,9 +6097,8 @@ pub struct ISearchItemsChangedSink_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] OnItemsChanged: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISearchLanguageSupport(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISearchLanguageSupport, ISearchLanguageSupport_Vtbl, 0x24c3cbaa_ebc1_491a_9ef1_9f6d8deb1b8f); +::windows_core::imp::interface_hierarchy!(ISearchLanguageSupport, ::windows_core::IUnknown); impl ISearchLanguageSupport { pub unsafe fn SetDiacriticSensitivity(&self, fdiacriticsensitive: P0) -> ::windows_core::Result<()> where @@ -7137,14 +6112,14 @@ impl ISearchLanguageSupport { } pub unsafe fn LoadWordBreaker(&self, lcid: u32, plcidused: *mut u32) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).LoadWordBreaker)(::windows_core::Interface::as_raw(self), lcid, &T::IID, &mut result__, plcidused).from_abi(result__) } pub unsafe fn LoadStemmer(&self, lcid: u32, plcidused: *mut u32) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).LoadStemmer)(::windows_core::Interface::as_raw(self), lcid, &T::IID, &mut result__, plcidused).from_abi(result__) @@ -7154,13 +6129,6 @@ impl ISearchLanguageSupport { (::windows_core::Interface::vtable(self).IsPrefixNormalized)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pwcsquerytoken.as_ptr()), pwcsquerytoken.len().try_into().unwrap(), ::core::mem::transmute(pwcsdocumenttoken.as_ptr()), pwcsdocumenttoken.len().try_into().unwrap(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISearchLanguageSupport, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISearchLanguageSupport { - type Vtable = ISearchLanguageSupport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISearchLanguageSupport { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x24c3cbaa_ebc1_491a_9ef1_9f6d8deb1b8f); -} #[repr(C)] #[doc(hidden)] pub struct ISearchLanguageSupport_Vtbl { @@ -7171,9 +6139,8 @@ pub struct ISearchLanguageSupport_Vtbl { pub LoadStemmer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lcid: u32, riid: *const ::windows_core::GUID, ppstemmer: *mut *mut ::core::ffi::c_void, plcidused: *mut u32) -> ::windows_core::HRESULT, pub IsPrefixNormalized: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwcsquerytoken: ::windows_core::PCWSTR, cwcquerytoken: u32, pwcsdocumenttoken: ::windows_core::PCWSTR, cwcdocumenttoken: u32, pulprefixlength: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISearchManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISearchManager, ISearchManager_Vtbl, 0xab310581_ac80_11d1_8df3_00c04fb6ef69); +::windows_core::imp::interface_hierarchy!(ISearchManager, ::windows_core::IUnknown); impl ISearchManager { pub unsafe fn GetIndexerVersionStr(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); @@ -7245,13 +6212,6 @@ impl ISearchManager { (::windows_core::Interface::vtable(self).PortNumber)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISearchManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISearchManager { - type Vtable = ISearchManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISearchManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xab310581_ac80_11d1_8df3_00c04fb6ef69); -} #[repr(C)] #[doc(hidden)] pub struct ISearchManager_Vtbl { @@ -7276,9 +6236,8 @@ pub struct ISearchManager_Vtbl { pub LocalBypass: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pflocalbypass: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub PortNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwportnumber: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISearchManager2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISearchManager2, ISearchManager2_Vtbl, 0xdbab3f73_db19_4a79_bfc0_a61a93886ddf); +::windows_core::imp::interface_hierarchy!(ISearchManager2, ::windows_core::IUnknown, ISearchManager); impl ISearchManager2 { pub unsafe fn GetIndexerVersionStr(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); @@ -7363,13 +6322,6 @@ impl ISearchManager2 { (::windows_core::Interface::vtable(self).DeleteCatalog)(::windows_core::Interface::as_raw(self), pszcatalog.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ISearchManager2, ::windows_core::IUnknown, ISearchManager); -unsafe impl ::windows_core::Interface for ISearchManager2 { - type Vtable = ISearchManager2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISearchManager2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdbab3f73_db19_4a79_bfc0_a61a93886ddf); -} #[repr(C)] #[doc(hidden)] pub struct ISearchManager2_Vtbl { @@ -7377,9 +6329,8 @@ pub struct ISearchManager2_Vtbl { pub CreateCatalog: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszcatalog: ::windows_core::PCWSTR, ppcatalogmanager: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub DeleteCatalog: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszcatalog: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISearchNotifyInlineSite(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISearchNotifyInlineSite, ISearchNotifyInlineSite_Vtbl, 0xb5702e61_e75c_4b64_82a1_6cb4f832fccf); +::windows_core::imp::interface_hierarchy!(ISearchNotifyInlineSite, ::windows_core::IUnknown); impl ISearchNotifyInlineSite { pub unsafe fn OnItemIndexedStatusChange(&self, sipstatus: SEARCH_INDEXING_PHASE, rgitemstatusentries: &[SEARCH_ITEM_INDEXING_STATUS]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnItemIndexedStatusChange)(::windows_core::Interface::as_raw(self), sipstatus, rgitemstatusentries.len().try_into().unwrap(), ::core::mem::transmute(rgitemstatusentries.as_ptr())).ok() @@ -7388,13 +6339,6 @@ impl ISearchNotifyInlineSite { (::windows_core::Interface::vtable(self).OnCatalogStatusChange)(::windows_core::Interface::as_raw(self), guidcatalogresetsignature, guidcheckpointsignature, dwlastcheckpointnumber).ok() } } -::windows_core::imp::interface_hierarchy!(ISearchNotifyInlineSite, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISearchNotifyInlineSite { - type Vtable = ISearchNotifyInlineSite_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISearchNotifyInlineSite { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb5702e61_e75c_4b64_82a1_6cb4f832fccf); -} #[repr(C)] #[doc(hidden)] pub struct ISearchNotifyInlineSite_Vtbl { @@ -7402,9 +6346,8 @@ pub struct ISearchNotifyInlineSite_Vtbl { pub OnItemIndexedStatusChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sipstatus: SEARCH_INDEXING_PHASE, dwnumentries: u32, rgitemstatusentries: *const SEARCH_ITEM_INDEXING_STATUS) -> ::windows_core::HRESULT, pub OnCatalogStatusChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guidcatalogresetsignature: *const ::windows_core::GUID, guidcheckpointsignature: *const ::windows_core::GUID, dwlastcheckpointnumber: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISearchPersistentItemsChangedSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISearchPersistentItemsChangedSink, ISearchPersistentItemsChangedSink_Vtbl, 0xa2ffdf9b_4758_4f84_b729_df81a1a0612f); +::windows_core::imp::interface_hierarchy!(ISearchPersistentItemsChangedSink, ::windows_core::IUnknown); impl ISearchPersistentItemsChangedSink { pub unsafe fn StartedMonitoringScope(&self, pszurl: P0) -> ::windows_core::Result<()> where @@ -7422,13 +6365,6 @@ impl ISearchPersistentItemsChangedSink { (::windows_core::Interface::vtable(self).OnItemsChanged)(::windows_core::Interface::as_raw(self), dwnumberofchanges, datachangeentries, hrcompletioncodes).ok() } } -::windows_core::imp::interface_hierarchy!(ISearchPersistentItemsChangedSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISearchPersistentItemsChangedSink { - type Vtable = ISearchPersistentItemsChangedSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISearchPersistentItemsChangedSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa2ffdf9b_4758_4f84_b729_df81a1a0612f); -} #[repr(C)] #[doc(hidden)] pub struct ISearchPersistentItemsChangedSink_Vtbl { @@ -7437,9 +6373,8 @@ pub struct ISearchPersistentItemsChangedSink_Vtbl { pub StoppedMonitoringScope: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszurl: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub OnItemsChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwnumberofchanges: u32, datachangeentries: *const SEARCH_ITEM_PERSISTENT_CHANGE, hrcompletioncodes: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISearchProtocol(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISearchProtocol, ISearchProtocol_Vtbl, 0xc73106ba_ac80_11d1_8df3_00c04fb6ef4f); +::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 @@ -7464,13 +6399,6 @@ impl ISearchProtocol { (::windows_core::Interface::vtable(self).ShutDown)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ISearchProtocol, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISearchProtocol { - type Vtable = ISearchProtocol_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISearchProtocol { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc73106ba_ac80_11d1_8df3_00c04fb6ef4f); -} #[repr(C)] #[doc(hidden)] pub struct ISearchProtocol_Vtbl { @@ -7480,9 +6408,8 @@ pub struct ISearchProtocol_Vtbl { pub CloseAccessor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, paccessor: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ShutDown: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISearchProtocol2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISearchProtocol2, ISearchProtocol2_Vtbl, 0x7789f0b2_b5b2_4722_8b65_5dbd150697a9); +::windows_core::imp::interface_hierarchy!(ISearchProtocol2, ::windows_core::IUnknown, ISearchProtocol); impl ISearchProtocol2 { pub unsafe fn Init(&self, ptimeoutinfo: *const TIMEOUT_INFO, pprotocolhandlersite: P0, pproxyinfo: *const PROXY_INFO) -> ::windows_core::Result<()> where @@ -7516,13 +6443,6 @@ impl ISearchProtocol2 { (::windows_core::Interface::vtable(self).CreateAccessorEx)(::windows_core::Interface::as_raw(self), pcwszurl.into_param().abi(), pauthenticationinfo, pincrementalaccessinfo, piteminfo, puserdata, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISearchProtocol2, ::windows_core::IUnknown, ISearchProtocol); -unsafe impl ::windows_core::Interface for ISearchProtocol2 { - type Vtable = ISearchProtocol2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISearchProtocol2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7789f0b2_b5b2_4722_8b65_5dbd150697a9); -} #[repr(C)] #[doc(hidden)] pub struct ISearchProtocol2_Vtbl { @@ -7532,9 +6452,8 @@ pub struct ISearchProtocol2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] CreateAccessorEx: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISearchProtocolThreadContext(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISearchProtocolThreadContext, ISearchProtocolThreadContext_Vtbl, 0xc73106e1_ac80_11d1_8df3_00c04fb6ef4f); +::windows_core::imp::interface_hierarchy!(ISearchProtocolThreadContext, ::windows_core::IUnknown); impl ISearchProtocolThreadContext { pub unsafe fn ThreadInit(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).ThreadInit)(::windows_core::Interface::as_raw(self)).ok() @@ -7546,13 +6465,6 @@ impl ISearchProtocolThreadContext { (::windows_core::Interface::vtable(self).ThreadIdle)(::windows_core::Interface::as_raw(self), dwtimeelaspedsincelastcallinms).ok() } } -::windows_core::imp::interface_hierarchy!(ISearchProtocolThreadContext, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISearchProtocolThreadContext { - type Vtable = ISearchProtocolThreadContext_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISearchProtocolThreadContext { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc73106e1_ac80_11d1_8df3_00c04fb6ef4f); -} #[repr(C)] #[doc(hidden)] pub struct ISearchProtocolThreadContext_Vtbl { @@ -7561,9 +6473,8 @@ pub struct ISearchProtocolThreadContext_Vtbl { pub ThreadShutdown: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ThreadIdle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwtimeelaspedsincelastcallinms: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISearchQueryHelper(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISearchQueryHelper, ISearchQueryHelper_Vtbl, 0xab310581_ac80_11d1_8df3_00c04fb6ef63); +::windows_core::imp::interface_hierarchy!(ISearchQueryHelper, ::windows_core::IUnknown); impl ISearchQueryHelper { pub unsafe fn ConnectionString(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); @@ -7657,13 +6568,6 @@ impl ISearchQueryHelper { (::windows_core::Interface::vtable(self).QueryMaxResults)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISearchQueryHelper, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISearchQueryHelper { - type Vtable = ISearchQueryHelper_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISearchQueryHelper { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xab310581_ac80_11d1_8df3_00c04fb6ef63); -} #[repr(C)] #[doc(hidden)] pub struct ISearchQueryHelper_Vtbl { @@ -7693,9 +6597,8 @@ pub struct ISearchQueryHelper_Vtbl { pub SetQueryMaxResults: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cmaxresults: i32) -> ::windows_core::HRESULT, pub QueryMaxResults: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcmaxresults: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISearchQueryHits(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISearchQueryHits, ISearchQueryHits_Vtbl, 0xed8ce7e0_106c_11ce_84e2_00aa004b9986); +::windows_core::imp::interface_hierarchy!(ISearchQueryHits, ::windows_core::IUnknown); impl ISearchQueryHits { #[doc = "Required features: `\"Win32_Storage_IndexServer\"`"] #[cfg(feature = "Win32_Storage_IndexServer")] @@ -7716,13 +6619,6 @@ impl ISearchQueryHits { (::windows_core::Interface::vtable(self).NextHitOffset)(::windows_core::Interface::as_raw(self), pcregion, paregion) } } -::windows_core::imp::interface_hierarchy!(ISearchQueryHits, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISearchQueryHits { - type Vtable = ISearchQueryHits_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISearchQueryHits { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xed8ce7e0_106c_11ce_84e2_00aa004b9986); -} #[repr(C)] #[doc(hidden)] pub struct ISearchQueryHits_Vtbl { @@ -7740,9 +6636,8 @@ pub struct ISearchQueryHits_Vtbl { #[cfg(not(feature = "Win32_Storage_IndexServer"))] NextHitOffset: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISearchRoot(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISearchRoot, ISearchRoot_Vtbl, 0x04c18ccf_1f57_4cbd_88cc_3900f5195ce3); +::windows_core::imp::interface_hierarchy!(ISearchRoot, ::windows_core::IUnknown); impl ISearchRoot { pub unsafe fn SetSchedule(&self, psztaskarg: P0) -> ::windows_core::Result<()> where @@ -7846,13 +6741,6 @@ impl ISearchRoot { (::windows_core::Interface::vtable(self).Password)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISearchRoot, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISearchRoot { - type Vtable = ISearchRoot_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISearchRoot { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x04c18ccf_1f57_4cbd_88cc_3900f5195ce3); -} #[repr(C)] #[doc(hidden)] pub struct ISearchRoot_Vtbl { @@ -7880,9 +6768,8 @@ pub struct ISearchRoot_Vtbl { pub SetPassword: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszpassword: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub Password: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppszpassword: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISearchScopeRule(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISearchScopeRule, ISearchScopeRule_Vtbl, 0xab310581_ac80_11d1_8df3_00c04fb6ef53); +::windows_core::imp::interface_hierarchy!(ISearchScopeRule, ::windows_core::IUnknown); impl ISearchScopeRule { pub unsafe fn PatternOrURL(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); @@ -7901,13 +6788,6 @@ impl ISearchScopeRule { (::windows_core::Interface::vtable(self).FollowFlags)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISearchScopeRule, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISearchScopeRule { - type Vtable = ISearchScopeRule_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISearchScopeRule { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xab310581_ac80_11d1_8df3_00c04fb6ef53); -} #[repr(C)] #[doc(hidden)] pub struct ISearchScopeRule_Vtbl { @@ -7917,9 +6797,8 @@ pub struct ISearchScopeRule_Vtbl { pub IsDefault: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfisdefault: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub FollowFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfollowflags: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISearchViewChangedSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISearchViewChangedSink, ISearchViewChangedSink_Vtbl, 0xab310581_ac80_11d1_8df3_00c04fb6ef65); +::windows_core::imp::interface_hierarchy!(ISearchViewChangedSink, ::windows_core::IUnknown); impl ISearchViewChangedSink { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -7927,13 +6806,6 @@ impl ISearchViewChangedSink { (::windows_core::Interface::vtable(self).OnChange)(::windows_core::Interface::as_raw(self), pdwdocid, pchange, pfinview).ok() } } -::windows_core::imp::interface_hierarchy!(ISearchViewChangedSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISearchViewChangedSink { - type Vtable = ISearchViewChangedSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISearchViewChangedSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xab310581_ac80_11d1_8df3_00c04fb6ef65); -} #[repr(C)] #[doc(hidden)] pub struct ISearchViewChangedSink_Vtbl { @@ -7943,9 +6815,8 @@ pub struct ISearchViewChangedSink_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] OnChange: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISecurityInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISecurityInfo, ISecurityInfo_Vtbl, 0x0c733aa4_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(ISecurityInfo, ::windows_core::IUnknown); impl ISecurityInfo { #[doc = "Required features: `\"Win32_Security_Authorization\"`"] #[cfg(feature = "Win32_Security_Authorization")] @@ -7961,13 +6832,6 @@ impl ISecurityInfo { (::windows_core::Interface::vtable(self).GetPermissions)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(objecttype), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISecurityInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISecurityInfo { - type Vtable = ISecurityInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISecurityInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733aa4_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct ISecurityInfo_Vtbl { @@ -7979,9 +6843,8 @@ pub struct ISecurityInfo_Vtbl { pub GetObjectTypes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cobjecttypes: *mut u32, rgobjecttypes: *mut *mut ::windows_core::GUID) -> ::windows_core::HRESULT, pub GetPermissions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, objecttype: ::windows_core::GUID, ppermissions: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IService(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IService, IService_Vtbl, 0x06210e88_01f5_11d1_b512_0080c781c384); +::windows_core::imp::interface_hierarchy!(IService, ::windows_core::IUnknown); impl IService { pub unsafe fn InvokeService(&self, punkinner: P0) -> ::windows_core::Result<()> where @@ -7990,22 +6853,14 @@ impl IService { (::windows_core::Interface::vtable(self).InvokeService)(::windows_core::Interface::as_raw(self), punkinner.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IService, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IService { - type Vtable = IService_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IService { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x06210e88_01f5_11d1_b512_0080c781c384); -} #[repr(C)] #[doc(hidden)] pub struct IService_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub InvokeService: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punkinner: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISessionProperties(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISessionProperties, ISessionProperties_Vtbl, 0x0c733a85_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(ISessionProperties, ::windows_core::IUnknown); impl ISessionProperties { #[doc = "Required features: `\"Win32_Storage_IndexServer\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -8018,13 +6873,6 @@ impl ISessionProperties { (::windows_core::Interface::vtable(self).SetProperties)(::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()))).ok() } } -::windows_core::imp::interface_hierarchy!(ISessionProperties, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISessionProperties { - type Vtable = ISessionProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISessionProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733a85_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct ISessionProperties_Vtbl { @@ -8038,9 +6886,8 @@ pub struct ISessionProperties_Vtbl { #[cfg(not(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] SetProperties: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISimpleCommandCreator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISimpleCommandCreator, ISimpleCommandCreator_Vtbl, 0x5e341ab7_02d0_11d1_900c_00a0c9063796); +::windows_core::imp::interface_hierarchy!(ISimpleCommandCreator, ::windows_core::IUnknown); impl ISimpleCommandCreator { pub unsafe fn CreateICommand(&self, ppiunknown: *mut ::core::option::Option<::windows_core::IUnknown>, pouterunk: P0) -> ::windows_core::Result<()> where @@ -8062,13 +6909,6 @@ impl ISimpleCommandCreator { (::windows_core::Interface::vtable(self).GetDefaultCatalog)(::windows_core::Interface::as_raw(self), pwszcatalogname.into_param().abi(), cwcin, pcwcout).ok() } } -::windows_core::imp::interface_hierarchy!(ISimpleCommandCreator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISimpleCommandCreator { - type Vtable = ISimpleCommandCreator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISimpleCommandCreator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5e341ab7_02d0_11d1_900c_00a0c9063796); -} #[repr(C)] #[doc(hidden)] pub struct ISimpleCommandCreator_Vtbl { @@ -8077,9 +6917,8 @@ pub struct ISimpleCommandCreator_Vtbl { pub VerifyCatalog: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwszmachine: ::windows_core::PCWSTR, pwszcatalogname: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub GetDefaultCatalog: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwszcatalogname: ::windows_core::PCWSTR, cwcin: u32, pcwcout: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISourcesRowset(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISourcesRowset, ISourcesRowset_Vtbl, 0x0c733a1e_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(ISourcesRowset, ::windows_core::IUnknown); impl ISourcesRowset { #[doc = "Required features: `\"Win32_Storage_IndexServer\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -8090,13 +6929,6 @@ impl ISourcesRowset { (::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::imp::interface_hierarchy!(ISourcesRowset, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISourcesRowset { - type Vtable = ISourcesRowset_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISourcesRowset { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733a1e_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct ISourcesRowset_Vtbl { @@ -8106,9 +6938,8 @@ pub struct ISourcesRowset_Vtbl { #[cfg(not(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] GetSourcesRowset: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStemmer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IStemmer, IStemmer_Vtbl, 0xefbaf140_7f42_11ce_be57_00aa0051fe20); +::windows_core::imp::interface_hierarchy!(IStemmer, ::windows_core::IUnknown); impl IStemmer { pub unsafe fn Init(&self, ulmaxtokensize: u32, pflicense: *mut super::super::Foundation::BOOL) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Init)(::windows_core::Interface::as_raw(self), ulmaxtokensize, pflicense).ok() @@ -8124,13 +6955,6 @@ impl IStemmer { (::windows_core::Interface::vtable(self).GetLicenseToUse)(::windows_core::Interface::as_raw(self), ppwcslicense).ok() } } -::windows_core::imp::interface_hierarchy!(IStemmer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStemmer { - type Vtable = IStemmer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStemmer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xefbaf140_7f42_11ce_be57_00aa0051fe20); -} #[repr(C)] #[doc(hidden)] pub struct IStemmer_Vtbl { @@ -8139,9 +6963,8 @@ pub struct IStemmer_Vtbl { pub GenerateWordForms: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwcinbuf: ::windows_core::PCWSTR, cwc: u32, pstemsink: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetLicenseToUse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppwcslicense: *const *const u16) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISubscriptionItem(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISubscriptionItem, ISubscriptionItem_Vtbl, 0xa97559f8_6c4a_11d1_a1e8_00c04fc2fbe1); +::windows_core::imp::interface_hierarchy!(ISubscriptionItem, ::windows_core::IUnknown); impl ISubscriptionItem { pub unsafe fn GetCookie(&self) -> ::windows_core::Result<::windows_core::GUID> { let mut result__ = ::std::mem::zeroed(); @@ -8171,13 +6994,6 @@ impl ISubscriptionItem { (::windows_core::Interface::vtable(self).NotifyChanged)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ISubscriptionItem, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISubscriptionItem { - type Vtable = ISubscriptionItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISubscriptionItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa97559f8_6c4a_11d1_a1e8_00c04fc2fbe1); -} #[repr(C)] #[doc(hidden)] pub struct ISubscriptionItem_Vtbl { @@ -8196,9 +7012,8 @@ pub struct ISubscriptionItem_Vtbl { pub EnumProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenumitemproperties: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub NotifyChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISubscriptionMgr(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISubscriptionMgr, ISubscriptionMgr_Vtbl, 0x085fb2c0_0df8_11d1_8f4b_00a0c905413f); +::windows_core::imp::interface_hierarchy!(ISubscriptionMgr, ::windows_core::IUnknown); impl ISubscriptionMgr { pub unsafe fn DeleteSubscription(&self, pwszurl: P0, hwnd: P1) -> ::windows_core::Result<()> where @@ -8248,13 +7063,6 @@ impl ISubscriptionMgr { (::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::imp::interface_hierarchy!(ISubscriptionMgr, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISubscriptionMgr { - type Vtable = ISubscriptionMgr_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISubscriptionMgr { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x085fb2c0_0df8_11d1_8f4b_00a0c905413f); -} #[repr(C)] #[doc(hidden)] pub struct ISubscriptionMgr_Vtbl { @@ -8268,9 +7076,8 @@ pub struct ISubscriptionMgr_Vtbl { pub ShowSubscriptionProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwszurl: ::windows_core::PCWSTR, hwnd: super::super::Foundation::HWND) -> ::windows_core::HRESULT, pub CreateSubscription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwnd: super::super::Foundation::HWND, pwszurl: ::windows_core::PCWSTR, pwszfriendlyname: ::windows_core::PCWSTR, dwflags: u32, substype: SUBSCRIPTIONTYPE, pinfo: *mut SUBSCRIPTIONINFO) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISubscriptionMgr2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISubscriptionMgr2, ISubscriptionMgr2_Vtbl, 0x614bc270_aedf_11d1_a1f9_00c04fc2fbe1); +::windows_core::imp::interface_hierarchy!(ISubscriptionMgr2, ::windows_core::IUnknown, ISubscriptionMgr); impl ISubscriptionMgr2 { pub unsafe fn DeleteSubscription(&self, pwszurl: P0, hwnd: P1) -> ::windows_core::Result<()> where @@ -8347,13 +7154,6 @@ impl ISubscriptionMgr2 { (::windows_core::Interface::vtable(self).AbortAll)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ISubscriptionMgr2, ::windows_core::IUnknown, ISubscriptionMgr); -unsafe impl ::windows_core::Interface for ISubscriptionMgr2 { - type Vtable = ISubscriptionMgr2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISubscriptionMgr2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x614bc270_aedf_11d1_a1f9_00c04fc2fbe1); -} #[repr(C)] #[doc(hidden)] pub struct ISubscriptionMgr2_Vtbl { @@ -8366,9 +7166,8 @@ pub struct ISubscriptionMgr2_Vtbl { pub AbortItems: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwnumcookies: u32, pcookies: *const ::windows_core::GUID) -> ::windows_core::HRESULT, pub AbortAll: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITableCreation(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITableCreation, ITableCreation_Vtbl, 0x0c733abc_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(ITableCreation, ::windows_core::IUnknown, ITableDefinition); impl ITableCreation { #[doc = "Required features: `\"Win32_Storage_IndexServer\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -8422,13 +7221,6 @@ impl ITableCreation { .ok() } } -::windows_core::imp::interface_hierarchy!(ITableCreation, ::windows_core::IUnknown, ITableDefinition); -unsafe impl ::windows_core::Interface for ITableCreation { - type Vtable = ITableCreation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITableCreation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733abc_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct ITableCreation_Vtbl { @@ -8438,9 +7230,8 @@ pub struct ITableCreation_Vtbl { #[cfg(not(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] GetTableDefinition: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITableDefinition(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITableDefinition, ITableDefinition_Vtbl, 0x0c733a86_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(ITableDefinition, ::windows_core::IUnknown); impl ITableDefinition { #[doc = "Required features: `\"Win32_Storage_IndexServer\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -8478,13 +7269,6 @@ impl ITableDefinition { (::windows_core::Interface::vtable(self).DropColumn)(::windows_core::Interface::as_raw(self), ptableid, pcolumnid).ok() } } -::windows_core::imp::interface_hierarchy!(ITableDefinition, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITableDefinition { - type Vtable = ITableDefinition_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITableDefinition { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733a86_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct ITableDefinition_Vtbl { @@ -8506,9 +7290,8 @@ pub struct ITableDefinition_Vtbl { #[cfg(not(feature = "Win32_Storage_IndexServer"))] DropColumn: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITableDefinitionWithConstraints(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITableDefinitionWithConstraints, ITableDefinitionWithConstraints_Vtbl, 0x0c733aab_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(ITableDefinitionWithConstraints, ::windows_core::IUnknown, ITableDefinition, ITableCreation); impl ITableDefinitionWithConstraints { #[doc = "Required features: `\"Win32_Storage_IndexServer\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -8580,13 +7363,6 @@ impl ITableDefinitionWithConstraints { (::windows_core::Interface::vtable(self).DropConstraint)(::windows_core::Interface::as_raw(self), ptableid, pconstraintid).ok() } } -::windows_core::imp::interface_hierarchy!(ITableDefinitionWithConstraints, ::windows_core::IUnknown, ITableDefinition, ITableCreation); -unsafe impl ::windows_core::Interface for ITableDefinitionWithConstraints { - type Vtable = ITableDefinitionWithConstraints_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITableDefinitionWithConstraints { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733aab_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct ITableDefinitionWithConstraints_Vtbl { @@ -8604,9 +7380,8 @@ pub struct ITableDefinitionWithConstraints_Vtbl { #[cfg(not(feature = "Win32_Storage_IndexServer"))] DropConstraint: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITableRename(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITableRename, ITableRename_Vtbl, 0x0c733a77_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(ITableRename, ::windows_core::IUnknown); impl ITableRename { #[doc = "Required features: `\"Win32_Storage_IndexServer\"`"] #[cfg(feature = "Win32_Storage_IndexServer")] @@ -8619,13 +7394,6 @@ impl ITableRename { (::windows_core::Interface::vtable(self).RenameTable)(::windows_core::Interface::as_raw(self), poldtableid, poldindexid, pnewtableid, pnewindexid).ok() } } -::windows_core::imp::interface_hierarchy!(ITableRename, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITableRename { - type Vtable = ITableRename_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITableRename { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733a77_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct ITableRename_Vtbl { @@ -8639,9 +7407,8 @@ pub struct ITableRename_Vtbl { #[cfg(not(feature = "Win32_Storage_IndexServer"))] RenameTable: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITokenCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITokenCollection, ITokenCollection_Vtbl, 0x22d8b4f2_f577_4adb_a335_c2ae88416fab); +::windows_core::imp::interface_hierarchy!(ITokenCollection, ::windows_core::IUnknown); impl ITokenCollection { pub unsafe fn NumberOfTokens(&self, pcount: *const u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).NumberOfTokens)(::windows_core::Interface::as_raw(self), pcount).ok() @@ -8650,13 +7417,6 @@ impl ITokenCollection { (::windows_core::Interface::vtable(self).GetToken)(::windows_core::Interface::as_raw(self), i, ::core::mem::transmute(pbegin.unwrap_or(::std::ptr::null_mut())), ::core::mem::transmute(plength.unwrap_or(::std::ptr::null_mut())), ::core::mem::transmute(ppsz.unwrap_or(::std::ptr::null_mut()))).ok() } } -::windows_core::imp::interface_hierarchy!(ITokenCollection, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITokenCollection { - type Vtable = ITokenCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITokenCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x22d8b4f2_f577_4adb_a335_c2ae88416fab); -} #[repr(C)] #[doc(hidden)] pub struct ITokenCollection_Vtbl { @@ -8664,9 +7424,8 @@ pub struct ITokenCollection_Vtbl { pub NumberOfTokens: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcount: *const u32) -> ::windows_core::HRESULT, pub GetToken: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, i: u32, pbegin: *mut u32, plength: *mut u32, ppsz: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITransactionJoin(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITransactionJoin, ITransactionJoin_Vtbl, 0x0c733a5e_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(ITransactionJoin, ::windows_core::IUnknown); impl ITransactionJoin { #[doc = "Required features: `\"Win32_System_DistributedTransactionCoordinator\"`"] #[cfg(feature = "Win32_System_DistributedTransactionCoordinator")] @@ -8684,13 +7443,6 @@ impl ITransactionJoin { (::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::imp::interface_hierarchy!(ITransactionJoin, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITransactionJoin { - type Vtable = ITransactionJoin_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITransactionJoin { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733a5e_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct ITransactionJoin_Vtbl { @@ -8704,11 +7456,15 @@ pub struct ITransactionJoin_Vtbl { #[cfg(not(feature = "Win32_System_DistributedTransactionCoordinator"))] JoinTransaction: usize, } -#[doc = "Required features: `\"Win32_System_DistributedTransactionCoordinator\"`"] #[cfg(feature = "Win32_System_DistributedTransactionCoordinator")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITransactionLocal(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_DistributedTransactionCoordinator\"`"] + ITransactionLocal, + ITransactionLocal_Vtbl, + 0x0c733a5f_2a1c_11ce_ade5_00aa0044773d +); +#[cfg(feature = "Win32_System_DistributedTransactionCoordinator")] +::windows_core::imp::interface_hierarchy!(ITransactionLocal, ::windows_core::IUnknown, super::DistributedTransactionCoordinator::ITransaction); #[cfg(feature = "Win32_System_DistributedTransactionCoordinator")] impl ITransactionLocal { #[doc = "Required features: `\"Win32_System_DistributedTransactionCoordinator\"`"] @@ -8749,16 +7505,6 @@ impl ITransactionLocal { } } #[cfg(feature = "Win32_System_DistributedTransactionCoordinator")] -::windows_core::imp::interface_hierarchy!(ITransactionLocal, ::windows_core::IUnknown, super::DistributedTransactionCoordinator::ITransaction); -#[cfg(feature = "Win32_System_DistributedTransactionCoordinator")] -unsafe impl ::windows_core::Interface for ITransactionLocal { - type Vtable = ITransactionLocal_Vtbl; -} -#[cfg(feature = "Win32_System_DistributedTransactionCoordinator")] -unsafe impl ::windows_core::ComInterface for ITransactionLocal { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733a5f_2a1c_11ce_ade5_00aa0044773d); -} -#[cfg(feature = "Win32_System_DistributedTransactionCoordinator")] #[repr(C)] #[doc(hidden)] pub struct ITransactionLocal_Vtbl { @@ -8772,9 +7518,8 @@ pub struct ITransactionLocal_Vtbl { #[cfg(not(feature = "Win32_System_DistributedTransactionCoordinator"))] StartTransaction: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITransactionObject(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITransactionObject, ITransactionObject_Vtbl, 0x0c733a60_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(ITransactionObject, ::windows_core::IUnknown); impl ITransactionObject { #[doc = "Required features: `\"Win32_System_DistributedTransactionCoordinator\"`"] #[cfg(feature = "Win32_System_DistributedTransactionCoordinator")] @@ -8783,13 +7528,6 @@ impl ITransactionObject { (::windows_core::Interface::vtable(self).GetTransactionObject)(::windows_core::Interface::as_raw(self), ultransactionlevel, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITransactionObject, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITransactionObject { - type Vtable = ITransactionObject_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITransactionObject { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733a60_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct ITransactionObject_Vtbl { @@ -8799,9 +7537,8 @@ pub struct ITransactionObject_Vtbl { #[cfg(not(feature = "Win32_System_DistributedTransactionCoordinator"))] GetTransactionObject: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITrusteeAdmin(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITrusteeAdmin, ITrusteeAdmin_Vtbl, 0x0c733aa1_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(ITrusteeAdmin, ::windows_core::IUnknown); impl ITrusteeAdmin { #[doc = "Required features: `\"Win32_Security_Authorization\"`"] #[cfg(feature = "Win32_Security_Authorization")] @@ -8829,13 +7566,6 @@ impl ITrusteeAdmin { (::windows_core::Interface::vtable(self).GetTrusteeProperties)(::windows_core::Interface::as_raw(self), ptrustee, rgpropertyidsets.len().try_into().unwrap(), ::core::mem::transmute(rgpropertyidsets.as_ptr()), pcpropertysets, prgpropertysets).ok() } } -::windows_core::imp::interface_hierarchy!(ITrusteeAdmin, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITrusteeAdmin { - type Vtable = ITrusteeAdmin_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITrusteeAdmin { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733aa1_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct ITrusteeAdmin_Vtbl { @@ -8861,9 +7591,8 @@ pub struct ITrusteeAdmin_Vtbl { #[cfg(not(all(feature = "Win32_Security_Authorization", feature = "Win32_Storage_IndexServer", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] GetTrusteeProperties: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITrusteeGroupAdmin(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITrusteeGroupAdmin, ITrusteeGroupAdmin_Vtbl, 0x0c733aa2_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(ITrusteeGroupAdmin, ::windows_core::IUnknown); impl ITrusteeGroupAdmin { #[doc = "Required features: `\"Win32_Security_Authorization\"`"] #[cfg(feature = "Win32_Security_Authorization")] @@ -8892,13 +7621,6 @@ impl ITrusteeGroupAdmin { (::windows_core::Interface::vtable(self).GetMemberships)(::windows_core::Interface::as_raw(self), ptrustee, pcmemberships, prgmemberships).ok() } } -::windows_core::imp::interface_hierarchy!(ITrusteeGroupAdmin, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITrusteeGroupAdmin { - type Vtable = ITrusteeGroupAdmin_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITrusteeGroupAdmin { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733aa2_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct ITrusteeGroupAdmin_Vtbl { @@ -8924,9 +7646,7 @@ pub struct ITrusteeGroupAdmin_Vtbl { #[cfg(not(feature = "Win32_Security_Authorization"))] GetMemberships: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUMS(::std::ptr::NonNull<::std::ffi::c_void>); +::windows_core::imp::interface!(IUMS, IUMS_Vtbl); impl IUMS { pub unsafe fn SqlUmsSuspend(&self, ticks: u32) { (::windows_core::Interface::vtable(self).SqlUmsSuspend)(::windows_core::Interface::as_raw(self), ticks) @@ -8944,9 +7664,6 @@ impl IUMS { (::windows_core::Interface::vtable(self).SqlUmsFIsPremptive)(::windows_core::Interface::as_raw(self)) } } -unsafe impl ::windows_core::Interface for IUMS { - type Vtable = IUMS_Vtbl; -} #[repr(C)] #[doc(hidden)] pub struct IUMS_Vtbl { @@ -8956,30 +7673,21 @@ pub struct IUMS_Vtbl { pub SqlUmsSwitchNonPremptive: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), pub SqlUmsFIsPremptive: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUMSInitialize(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUMSInitialize, IUMSInitialize_Vtbl, 0x5cf4ca14_ef21_11d0_97e7_00c04fc2ad98); +::windows_core::imp::interface_hierarchy!(IUMSInitialize, ::windows_core::IUnknown); impl IUMSInitialize { pub unsafe fn Initialize(&self, pums: *mut ::core::ffi::c_void) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Initialize)(::windows_core::Interface::as_raw(self), pums).ok() } } -::windows_core::imp::interface_hierarchy!(IUMSInitialize, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUMSInitialize { - type Vtable = IUMSInitialize_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUMSInitialize { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5cf4ca14_ef21_11d0_97e7_00c04fc2ad98); -} #[repr(C)] #[doc(hidden)] pub struct IUMSInitialize_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pums: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUrlAccessor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUrlAccessor, IUrlAccessor_Vtbl, 0x0b63e318_9ccc_11d0_bcdb_00805fccce04); +::windows_core::imp::interface_hierarchy!(IUrlAccessor, ::windows_core::IUnknown); impl IUrlAccessor { #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] @@ -9033,13 +7741,6 @@ impl IUrlAccessor { (::windows_core::Interface::vtable(self).BindToFilter)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUrlAccessor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUrlAccessor { - type Vtable = IUrlAccessor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUrlAccessor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0b63e318_9ccc_11d0_bcdb_00805fccce04); -} #[repr(C)] #[doc(hidden)] pub struct IUrlAccessor_Vtbl { @@ -9067,9 +7768,8 @@ pub struct IUrlAccessor_Vtbl { #[cfg(not(feature = "Win32_Storage_IndexServer"))] BindToFilter: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUrlAccessor2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUrlAccessor2, IUrlAccessor2_Vtbl, 0xc7310734_ac80_11d1_8df3_00c04fb6ef4f); +::windows_core::imp::interface_hierarchy!(IUrlAccessor2, ::windows_core::IUnknown, IUrlAccessor); impl IUrlAccessor2 { #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] @@ -9132,13 +7832,6 @@ impl IUrlAccessor2 { (::windows_core::Interface::vtable(self).GetCodePage)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(wszcodepage.as_ptr()), wszcodepage.len().try_into().unwrap(), pdwlength).ok() } } -::windows_core::imp::interface_hierarchy!(IUrlAccessor2, ::windows_core::IUnknown, IUrlAccessor); -unsafe impl ::windows_core::Interface for IUrlAccessor2 { - type Vtable = IUrlAccessor2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUrlAccessor2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc7310734_ac80_11d1_8df3_00c04fb6ef4f); -} #[repr(C)] #[doc(hidden)] pub struct IUrlAccessor2_Vtbl { @@ -9147,9 +7840,8 @@ pub struct IUrlAccessor2_Vtbl { pub IsDocument: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetCodePage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wszcodepage: ::windows_core::PWSTR, dwsize: u32, pdwlength: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUrlAccessor3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUrlAccessor3, IUrlAccessor3_Vtbl, 0x6fbc7005_0455_4874_b8ff_7439450241a3); +::windows_core::imp::interface_hierarchy!(IUrlAccessor3, ::windows_core::IUnknown, IUrlAccessor, IUrlAccessor2); impl IUrlAccessor3 { #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] @@ -9220,13 +7912,6 @@ impl IUrlAccessor3 { (::windows_core::Interface::vtable(self).GetImpersonationSidBlobs)(::windows_core::Interface::as_raw(self), pcwszurl.into_param().abi(), pcsidcount, ppsidblobs).ok() } } -::windows_core::imp::interface_hierarchy!(IUrlAccessor3, ::windows_core::IUnknown, IUrlAccessor, IUrlAccessor2); -unsafe impl ::windows_core::Interface for IUrlAccessor3 { - type Vtable = IUrlAccessor3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUrlAccessor3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6fbc7005_0455_4874_b8ff_7439450241a3); -} #[repr(C)] #[doc(hidden)] pub struct IUrlAccessor3_Vtbl { @@ -9236,9 +7921,8 @@ pub struct IUrlAccessor3_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetImpersonationSidBlobs: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUrlAccessor4(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUrlAccessor4, IUrlAccessor4_Vtbl, 0x5cc51041_c8d2_41d7_bca3_9e9e286297dc); +::windows_core::imp::interface_hierarchy!(IUrlAccessor4, ::windows_core::IUnknown, IUrlAccessor, IUrlAccessor2, IUrlAccessor3); impl IUrlAccessor4 { #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] @@ -9319,13 +8003,6 @@ impl IUrlAccessor4 { (::windows_core::Interface::vtable(self).ShouldIndexProperty)(::windows_core::Interface::as_raw(self), key, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUrlAccessor4, ::windows_core::IUnknown, IUrlAccessor, IUrlAccessor2, IUrlAccessor3); -unsafe impl ::windows_core::Interface for IUrlAccessor4 { - type Vtable = IUrlAccessor4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUrlAccessor4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5cc51041_c8d2_41d7_bca3_9e9e286297dc); -} #[repr(C)] #[doc(hidden)] pub struct IUrlAccessor4_Vtbl { @@ -9336,9 +8013,8 @@ pub struct IUrlAccessor4_Vtbl { #[cfg(not(feature = "Win32_UI_Shell_PropertiesSystem"))] ShouldIndexProperty: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IViewChapter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IViewChapter, IViewChapter_Vtbl, 0x0c733a98_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(IViewChapter, ::windows_core::IUnknown); impl IViewChapter { pub unsafe fn GetSpecification(&self, riid: *const ::windows_core::GUID) -> ::windows_core::Result<::windows_core::IUnknown> { let mut result__ = ::std::mem::zeroed(); @@ -9348,13 +8024,6 @@ impl IViewChapter { (::windows_core::Interface::vtable(self).OpenViewChapter)(::windows_core::Interface::as_raw(self), hsource, ::core::mem::transmute(phviewchapter.unwrap_or(::std::ptr::null_mut()))).ok() } } -::windows_core::imp::interface_hierarchy!(IViewChapter, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IViewChapter { - type Vtable = IViewChapter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IViewChapter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733a98_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IViewChapter_Vtbl { @@ -9362,9 +8031,8 @@ pub struct IViewChapter_Vtbl { pub GetSpecification: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, pprowset: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub OpenViewChapter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hsource: usize, phviewchapter: *mut usize) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IViewFilter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IViewFilter, IViewFilter_Vtbl, 0x0c733a9b_2a1c_11ce_ade5_00aa0044773d); +::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 @@ -9384,13 +8052,6 @@ impl IViewFilter { (::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::imp::interface_hierarchy!(IViewFilter, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IViewFilter { - type Vtable = IViewFilter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IViewFilter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733a9b_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IViewFilter_Vtbl { @@ -9402,9 +8063,8 @@ pub struct IViewFilter_Vtbl { GetFilterBindings: usize, pub SetFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, haccessor: HACCESSOR, crows: usize, compareops: *const u32, pcriteriadata: *const ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IViewRowset(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IViewRowset, IViewRowset_Vtbl, 0x0c733a97_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(IViewRowset, ::windows_core::IUnknown); impl IViewRowset { pub unsafe fn GetSpecification(&self, riid: *const ::windows_core::GUID) -> ::windows_core::Result<::windows_core::IUnknown> { let mut result__ = ::std::mem::zeroed(); @@ -9418,13 +8078,6 @@ impl IViewRowset { (::windows_core::Interface::vtable(self).OpenViewRowset)(::windows_core::Interface::as_raw(self), punkouter.into_param().abi(), riid, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IViewRowset, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IViewRowset { - type Vtable = IViewRowset_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IViewRowset { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733a97_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IViewRowset_Vtbl { @@ -9432,9 +8085,8 @@ pub struct IViewRowset_Vtbl { pub GetSpecification: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppobject: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub OpenViewRowset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punkouter: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, pprowset: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IViewSort(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IViewSort, IViewSort_Vtbl, 0x0c733a9a_2a1c_11ce_ade5_00aa0044773d); +::windows_core::imp::interface_hierarchy!(IViewSort, ::windows_core::IUnknown); impl IViewSort { pub unsafe fn GetSortOrder(&self, pcvalues: *mut usize, prgcolumns: *mut *mut usize, prgorders: *mut *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetSortOrder)(::windows_core::Interface::as_raw(self), pcvalues, prgcolumns, prgorders).ok() @@ -9443,13 +8095,6 @@ impl IViewSort { (::windows_core::Interface::vtable(self).SetSortOrder)(::windows_core::Interface::as_raw(self), cvalues, rgcolumns, rgorders).ok() } } -::windows_core::imp::interface_hierarchy!(IViewSort, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IViewSort { - type Vtable = IViewSort_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IViewSort { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c733a9a_2a1c_11ce_ade5_00aa0044773d); -} #[repr(C)] #[doc(hidden)] pub struct IViewSort_Vtbl { @@ -9457,9 +8102,8 @@ pub struct IViewSort_Vtbl { pub GetSortOrder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcvalues: *mut usize, prgcolumns: *mut *mut usize, prgorders: *mut *mut u32) -> ::windows_core::HRESULT, pub SetSortOrder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cvalues: usize, rgcolumns: *const usize, rgorders: *const u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWordBreaker(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWordBreaker, IWordBreaker_Vtbl, 0xd53552c8_77e3_101a_b552_08002b33b0e6); +::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 @@ -9488,13 +8132,6 @@ impl IWordBreaker { (::windows_core::Interface::vtable(self).GetLicenseToUse)(::windows_core::Interface::as_raw(self), ppwcslicense).ok() } } -::windows_core::imp::interface_hierarchy!(IWordBreaker, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWordBreaker { - type Vtable = IWordBreaker_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWordBreaker { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd53552c8_77e3_101a_b552_08002b33b0e6); -} #[repr(C)] #[doc(hidden)] pub struct IWordBreaker_Vtbl { @@ -9507,9 +8144,8 @@ pub struct IWordBreaker_Vtbl { pub ComposePhrase: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwcnoun: ::windows_core::PCWSTR, cwcnoun: u32, pwcmodifier: ::windows_core::PCWSTR, cwcmodifier: u32, ulattachmenttype: u32, pwcphrase: ::windows_core::PCWSTR, pcwcphrase: *mut u32) -> ::windows_core::HRESULT, pub GetLicenseToUse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppwcslicense: *const *const u16) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWordFormSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWordFormSink, IWordFormSink_Vtbl, 0xfe77c330_7f42_11ce_be57_00aa0051fe20); +::windows_core::imp::interface_hierarchy!(IWordFormSink, ::windows_core::IUnknown); impl IWordFormSink { pub unsafe fn PutAltWord(&self, pwcinbuf: P0, cwc: u32) -> ::windows_core::Result<()> where @@ -9524,13 +8160,6 @@ impl IWordFormSink { (::windows_core::Interface::vtable(self).PutWord)(::windows_core::Interface::as_raw(self), pwcinbuf.into_param().abi(), cwc).ok() } } -::windows_core::imp::interface_hierarchy!(IWordFormSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWordFormSink { - type Vtable = IWordFormSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWordFormSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfe77c330_7f42_11ce_be57_00aa0051fe20); -} #[repr(C)] #[doc(hidden)] pub struct IWordFormSink_Vtbl { @@ -9538,9 +8167,8 @@ pub struct IWordFormSink_Vtbl { pub PutAltWord: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwcinbuf: ::windows_core::PCWSTR, cwc: u32) -> ::windows_core::HRESULT, pub PutWord: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwcinbuf: ::windows_core::PCWSTR, cwc: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWordSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWordSink, IWordSink_Vtbl, 0xcc907054_c058_101a_b554_08002b33b0e6); +::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 @@ -9566,13 +8194,6 @@ impl IWordSink { (::windows_core::Interface::vtable(self).PutBreak)(::windows_core::Interface::as_raw(self), breaktype).ok() } } -::windows_core::imp::interface_hierarchy!(IWordSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWordSink { - type Vtable = IWordSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWordSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcc907054_c058_101a_b554_08002b33b0e6); -} #[repr(C)] #[doc(hidden)] pub struct IWordSink_Vtbl { @@ -9586,9 +8207,8 @@ pub struct IWordSink_Vtbl { #[cfg(not(feature = "Win32_Storage_IndexServer"))] PutBreak: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct OLEDBSimpleProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(OLEDBSimpleProvider, OLEDBSimpleProvider_Vtbl, 0xe0e270c0_c0be_11d0_8fe4_00a0c90a6341); +::windows_core::imp::interface_hierarchy!(OLEDBSimpleProvider, ::windows_core::IUnknown); impl OLEDBSimpleProvider { pub unsafe fn getRowCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -9655,13 +8275,6 @@ impl OLEDBSimpleProvider { (::windows_core::Interface::vtable(self).stopTransfer)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(OLEDBSimpleProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for OLEDBSimpleProvider { - type Vtable = OLEDBSimpleProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for OLEDBSimpleProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe0e270c0_c0be_11d0_8fe4_00a0c90a6341); -} #[repr(C)] #[doc(hidden)] pub struct OLEDBSimpleProvider_Vtbl { @@ -9690,9 +8303,8 @@ pub struct OLEDBSimpleProvider_Vtbl { pub getEstimatedRows: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pirows: *mut isize) -> ::windows_core::HRESULT, pub stopTransfer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct OLEDBSimpleProviderListener(::windows_core::IUnknown); +::windows_core::imp::com_interface!(OLEDBSimpleProviderListener, OLEDBSimpleProviderListener_Vtbl, 0xe0e270c1_c0be_11d0_8fe4_00a0c90a6341); +::windows_core::imp::interface_hierarchy!(OLEDBSimpleProviderListener, ::windows_core::IUnknown); impl OLEDBSimpleProviderListener { pub unsafe fn aboutToChangeCell(&self, irow: isize, icolumn: isize) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).aboutToChangeCell)(::windows_core::Interface::as_raw(self), irow, icolumn).ok() @@ -9719,13 +8331,6 @@ impl OLEDBSimpleProviderListener { (::windows_core::Interface::vtable(self).transferComplete)(::windows_core::Interface::as_raw(self), xfer).ok() } } -::windows_core::imp::interface_hierarchy!(OLEDBSimpleProviderListener, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for OLEDBSimpleProviderListener { - type Vtable = OLEDBSimpleProviderListener_Vtbl; -} -unsafe impl ::windows_core::ComInterface for OLEDBSimpleProviderListener { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe0e270c1_c0be_11d0_8fe4_00a0c90a6341); -} #[repr(C)] #[doc(hidden)] pub struct OLEDBSimpleProviderListener_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/System/SecurityCenter/impl.rs b/crates/libs/windows/src/Windows/Win32/System/SecurityCenter/impl.rs index 99859cd197..4075f78ccd 100644 --- a/crates/libs/windows/src/Windows/Win32/System/SecurityCenter/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/SecurityCenter/impl.rs @@ -16,7 +16,7 @@ impl IWSCDefaultProduct_Vtbl { Self { base__: super::Com::IDispatch_Vtbl::new::(), SetDefaultProduct: SetDefaultProduct:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -66,7 +66,7 @@ impl IWSCProductList_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -174,7 +174,7 @@ impl IWscProduct_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -269,7 +269,7 @@ impl IWscProduct2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -296,6 +296,6 @@ impl IWscProduct3_Vtbl { Self { base__: IWscProduct2_Vtbl::new::(), AntivirusDaysUntilExpired: AntivirusDaysUntilExpired:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } 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 dd7e5225d7..98eb670832 100644 --- a/crates/libs/windows/src/Windows/Win32/System/SecurityCenter/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/SecurityCenter/mod.rs @@ -34,11 +34,15 @@ where ::windows_targets::link!("wscapi.dll" "system" fn WscUnRegisterChanges(hregistrationhandle : super::super::Foundation:: HANDLE) -> ::windows_core::HRESULT); WscUnRegisterChanges(hregistrationhandle.into_param().abi()).ok() } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWSCDefaultProduct(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWSCDefaultProduct, + IWSCDefaultProduct_Vtbl, + 0x0476d69c_f21a_11e5_9ce9_5e5517507c66 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWSCDefaultProduct, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IWSCDefaultProduct { pub unsafe fn SetDefaultProduct(&self, etype: SECURITY_PRODUCT_TYPE, pguid: P0) -> ::windows_core::Result<()> @@ -49,27 +53,21 @@ impl IWSCDefaultProduct { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWSCDefaultProduct, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWSCDefaultProduct { - type Vtable = IWSCDefaultProduct_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWSCDefaultProduct { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0476d69c_f21a_11e5_9ce9_5e5517507c66); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWSCDefaultProduct_Vtbl { pub base__: super::Com::IDispatch_Vtbl, pub SetDefaultProduct: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, etype: SECURITY_PRODUCT_TYPE, pguid: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWSCProductList(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWSCProductList, + IWSCProductList_Vtbl, + 0x722a338c_6e8e_4e72_ac27_1417fb0c81c2 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWSCProductList, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IWSCProductList { pub unsafe fn Initialize(&self, provider: WSC_SECURITY_PROVIDER) -> ::windows_core::Result<()> { @@ -87,16 +85,6 @@ impl IWSCProductList { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWSCProductList, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWSCProductList { - type Vtable = IWSCProductList_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWSCProductList { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x722a338c_6e8e_4e72_ac27_1417fb0c81c2); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWSCProductList_Vtbl { @@ -108,11 +96,15 @@ pub struct IWSCProductList_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] get_Item: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWscProduct(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWscProduct, + IWscProduct_Vtbl, + 0x8c38232e_3a45_4a27_92b0_1a16a975f669 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWscProduct, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IWscProduct { pub unsafe fn ProductName(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -145,16 +137,6 @@ impl IWscProduct { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWscProduct, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWscProduct { - type Vtable = IWscProduct_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWscProduct { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8c38232e_3a45_4a27_92b0_1a16a975f669); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWscProduct_Vtbl { @@ -167,11 +149,15 @@ pub struct IWscProduct_Vtbl { pub ProductGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub ProductIsDefault: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWscProduct2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWscProduct2, + IWscProduct2_Vtbl, + 0xf896ca54_fe09_4403_86d4_23cb488d81d8 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWscProduct2, ::windows_core::IUnknown, super::Com::IDispatch, IWscProduct); #[cfg(feature = "Win32_System_Com")] impl IWscProduct2 { pub unsafe fn ProductName(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -228,16 +214,6 @@ impl IWscProduct2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWscProduct2, ::windows_core::IUnknown, super::Com::IDispatch, IWscProduct); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWscProduct2 { - type Vtable = IWscProduct2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWscProduct2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf896ca54_fe09_4403_86d4_23cb488d81d8); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWscProduct2_Vtbl { @@ -249,11 +225,15 @@ pub struct IWscProduct2_Vtbl { pub FirewallPrivateProfileSubstatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pestatus: *mut WSC_SECURITY_PRODUCT_SUBSTATUS) -> ::windows_core::HRESULT, pub FirewallPublicProfileSubstatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pestatus: *mut WSC_SECURITY_PRODUCT_SUBSTATUS) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWscProduct3(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWscProduct3, + IWscProduct3_Vtbl, + 0x55536524_d1d1_4726_8c7c_04996a1904e7 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWscProduct3, ::windows_core::IUnknown, super::Com::IDispatch, IWscProduct, IWscProduct2); #[cfg(feature = "Win32_System_Com")] impl IWscProduct3 { pub unsafe fn ProductName(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -314,16 +294,6 @@ impl IWscProduct3 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWscProduct3, ::windows_core::IUnknown, super::Com::IDispatch, IWscProduct, IWscProduct2); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWscProduct3 { - type Vtable = IWscProduct3_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWscProduct3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x55536524_d1d1_4726_8c7c_04996a1904e7); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWscProduct3_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/System/ServerBackup/impl.rs b/crates/libs/windows/src/Windows/Win32/System/ServerBackup/impl.rs index 77c46bf15c..e891c1fa60 100644 --- a/crates/libs/windows/src/Windows/Win32/System/ServerBackup/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/ServerBackup/impl.rs @@ -28,7 +28,7 @@ impl IWsbApplicationAsync_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWsbApplicationBackupSupport_Impl: Sized { @@ -51,7 +51,7 @@ impl IWsbApplicationBackupSupport_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CheckConsistency: CheckConsistency:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWsbApplicationRestoreSupport_Impl: Sized { @@ -98,6 +98,6 @@ impl IWsbApplicationRestoreSupport_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 157b3687f7..e9bb4f0cd3 100644 --- a/crates/libs/windows/src/Windows/Win32/System/ServerBackup/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/ServerBackup/mod.rs @@ -1,6 +1,5 @@ -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWsbApplicationAsync(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWsbApplicationAsync, IWsbApplicationAsync_Vtbl, 0x0843f6f7_895c_44a6_b0c2_05a5022aa3a1); +::windows_core::imp::interface_hierarchy!(IWsbApplicationAsync, ::windows_core::IUnknown); impl IWsbApplicationAsync { pub unsafe fn QueryStatus(&self) -> ::windows_core::Result<::windows_core::HRESULT> { let mut result__ = ::std::mem::zeroed(); @@ -10,13 +9,6 @@ impl IWsbApplicationAsync { (::windows_core::Interface::vtable(self).Abort)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IWsbApplicationAsync, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWsbApplicationAsync { - type Vtable = IWsbApplicationAsync_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWsbApplicationAsync { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0843f6f7_895c_44a6_b0c2_05a5022aa3a1); -} #[repr(C)] #[doc(hidden)] pub struct IWsbApplicationAsync_Vtbl { @@ -24,9 +16,8 @@ pub struct IWsbApplicationAsync_Vtbl { pub QueryStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phrresult: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, pub Abort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWsbApplicationBackupSupport(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWsbApplicationBackupSupport, IWsbApplicationBackupSupport_Vtbl, 0x1eff3510_4a27_46ad_b9e0_08332f0f4f6d); +::windows_core::imp::interface_hierarchy!(IWsbApplicationBackupSupport, ::windows_core::IUnknown); 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 @@ -38,22 +29,14 @@ impl IWsbApplicationBackupSupport { (::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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWsbApplicationBackupSupport, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWsbApplicationBackupSupport { - type Vtable = IWsbApplicationBackupSupport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWsbApplicationBackupSupport { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1eff3510_4a27_46ad_b9e0_08332f0f4f6d); -} #[repr(C)] #[doc(hidden)] pub struct IWsbApplicationBackupSupport_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub CheckConsistency: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wszwritermetadata: ::windows_core::PCWSTR, wszcomponentname: ::windows_core::PCWSTR, wszcomponentlogicalpath: ::windows_core::PCWSTR, cvolumes: u32, rgwszsourcevolumepath: *const ::windows_core::PCWSTR, rgwszsnapshotvolumepath: *const ::windows_core::PCWSTR, ppasync: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWsbApplicationRestoreSupport(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWsbApplicationRestoreSupport, IWsbApplicationRestoreSupport_Vtbl, 0x8d3bdb38_4ee8_4718_85f9_c7dbc4ab77aa); +::windows_core::imp::interface_hierarchy!(IWsbApplicationRestoreSupport, ::windows_core::IUnknown); impl IWsbApplicationRestoreSupport { pub unsafe fn PreRestore(&self, wszwritermetadata: P0, wszcomponentname: P1, wszcomponentlogicalpath: P2, bnorollforward: P3) -> ::windows_core::Result<()> where @@ -81,13 +64,6 @@ impl IWsbApplicationRestoreSupport { (::windows_core::Interface::vtable(self).IsRollForwardSupported)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWsbApplicationRestoreSupport, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWsbApplicationRestoreSupport { - type Vtable = IWsbApplicationRestoreSupport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWsbApplicationRestoreSupport { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8d3bdb38_4ee8_4718_85f9_c7dbc4ab77aa); -} #[repr(C)] #[doc(hidden)] pub struct IWsbApplicationRestoreSupport_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/System/SettingsManagementInfrastructure/impl.rs b/crates/libs/windows/src/Windows/Win32/System/SettingsManagementInfrastructure/impl.rs index 064af4e8cf..58797217d2 100644 --- a/crates/libs/windows/src/Windows/Win32/System/SettingsManagementInfrastructure/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/SettingsManagementInfrastructure/impl.rs @@ -45,7 +45,7 @@ impl IItemEnumerator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -123,7 +123,7 @@ impl ISettingsContext_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -312,7 +312,7 @@ impl ISettingsEngine_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISettingsIdentity_Impl: Sized { @@ -365,7 +365,7 @@ impl ISettingsIdentity_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -632,7 +632,7 @@ impl ISettingsItem_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -734,7 +734,7 @@ impl ISettingsNamespace_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISettingsResult_Impl: Sized { @@ -825,7 +825,7 @@ impl ISettingsResult_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITargetInfo_Impl: Sized { @@ -1057,6 +1057,6 @@ impl ITargetInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 b84df7faa9..3317dd6b04 100644 --- a/crates/libs/windows/src/Windows/Win32/System/SettingsManagementInfrastructure/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/SettingsManagementInfrastructure/mod.rs @@ -1,6 +1,5 @@ -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IItemEnumerator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IItemEnumerator, IItemEnumerator_Vtbl, 0x9f7d7bb7_20b3_11da_81a5_0030f1642e3c); +::windows_core::imp::interface_hierarchy!(IItemEnumerator, ::windows_core::IUnknown); impl IItemEnumerator { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -16,13 +15,6 @@ impl IItemEnumerator { (::windows_core::Interface::vtable(self).Reset)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IItemEnumerator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IItemEnumerator { - type Vtable = IItemEnumerator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IItemEnumerator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9f7d7bb7_20b3_11da_81a5_0030f1642e3c); -} #[repr(C)] #[doc(hidden)] pub struct IItemEnumerator_Vtbl { @@ -34,9 +26,8 @@ pub struct IItemEnumerator_Vtbl { pub MoveNext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, itemvalid: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISettingsContext(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISettingsContext, ISettingsContext_Vtbl, 0x9f7d7bbd_20b3_11da_81a5_0030f1642e3c); +::windows_core::imp::interface_hierarchy!(ISettingsContext, ::windows_core::IUnknown); impl ISettingsContext { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -81,13 +72,6 @@ impl ISettingsContext { (::windows_core::Interface::vtable(self).RevertSetting)(::windows_core::Interface::as_raw(self), pidentity.into_param().abi(), pwzsetting.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ISettingsContext, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISettingsContext { - type Vtable = ISettingsContext_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISettingsContext { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9f7d7bbd_20b3_11da_81a5_0030f1642e3c); -} #[repr(C)] #[doc(hidden)] pub struct ISettingsContext_Vtbl { @@ -106,9 +90,8 @@ pub struct ISettingsContext_Vtbl { pub GetStoredSettings: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pidentity: *mut ::core::ffi::c_void, ppaddedsettings: *mut *mut ::core::ffi::c_void, ppmodifiedsettings: *mut *mut ::core::ffi::c_void, ppdeletedsettings: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RevertSetting: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pidentity: *mut ::core::ffi::c_void, pwzsetting: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISettingsEngine(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISettingsEngine, ISettingsEngine_Vtbl, 0x9f7d7bb9_20b3_11da_81a5_0030f1642e3c); +::windows_core::imp::interface_hierarchy!(ISettingsEngine, ::windows_core::IUnknown); impl ISettingsEngine { pub unsafe fn GetNamespaces(&self, flags: WcmNamespaceEnumerationFlags, reserved: *const ::core::ffi::c_void) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -192,13 +175,6 @@ impl ISettingsEngine { (::windows_core::Interface::vtable(self).GetSettingsContext)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISettingsEngine, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISettingsEngine { - type Vtable = ISettingsEngine_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISettingsEngine { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9f7d7bb9_20b3_11da_81a5_0030f1642e3c); -} #[repr(C)] #[doc(hidden)] pub struct ISettingsEngine_Vtbl { @@ -223,9 +199,8 @@ pub struct ISettingsEngine_Vtbl { pub ApplySettingsContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, settingscontext: *mut ::core::ffi::c_void, pppwzidentities: *mut *mut ::windows_core::PWSTR, pcidentities: *mut usize) -> ::windows_core::HRESULT, pub GetSettingsContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, settingscontext: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISettingsIdentity(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISettingsIdentity, ISettingsIdentity_Vtbl, 0x9f7d7bb6_20b3_11da_81a5_0030f1642e3c); +::windows_core::imp::interface_hierarchy!(ISettingsIdentity, ::windows_core::IUnknown); impl ISettingsIdentity { pub unsafe fn GetAttribute(&self, reserved: *const ::core::ffi::c_void, name: P0) -> ::windows_core::Result<::windows_core::BSTR> where @@ -249,13 +224,6 @@ impl ISettingsIdentity { (::windows_core::Interface::vtable(self).SetFlags)(::windows_core::Interface::as_raw(self), flags).ok() } } -::windows_core::imp::interface_hierarchy!(ISettingsIdentity, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISettingsIdentity { - type Vtable = ISettingsIdentity_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISettingsIdentity { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9f7d7bb6_20b3_11da_81a5_0030f1642e3c); -} #[repr(C)] #[doc(hidden)] pub struct ISettingsIdentity_Vtbl { @@ -265,9 +233,8 @@ pub struct ISettingsIdentity_Vtbl { pub GetFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: *mut u32) -> ::windows_core::HRESULT, pub SetFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISettingsItem(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISettingsItem, ISettingsItem_Vtbl, 0x9f7d7bbb_20b3_11da_81a5_0030f1642e3c); +::windows_core::imp::interface_hierarchy!(ISettingsItem, ::windows_core::IUnknown); impl ISettingsItem { pub unsafe fn GetName(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -382,13 +349,6 @@ impl ISettingsItem { (::windows_core::Interface::vtable(self).GetKeyValue)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISettingsItem, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISettingsItem { - type Vtable = ISettingsItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISettingsItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9f7d7bbb_20b3_11da_81a5_0030f1642e3c); -} #[repr(C)] #[doc(hidden)] pub struct ISettingsItem_Vtbl { @@ -434,9 +394,8 @@ pub struct ISettingsItem_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] GetKeyValue: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISettingsNamespace(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISettingsNamespace, ISettingsNamespace_Vtbl, 0x9f7d7bba_20b3_11da_81a5_0030f1642e3c); +::windows_core::imp::interface_hierarchy!(ISettingsNamespace, ::windows_core::IUnknown); impl ISettingsNamespace { pub unsafe fn GetIdentity(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -483,13 +442,6 @@ impl ISettingsNamespace { (::windows_core::Interface::vtable(self).GetAttribute)(::windows_core::Interface::as_raw(self), name.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISettingsNamespace, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISettingsNamespace { - type Vtable = ISettingsNamespace_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISettingsNamespace { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9f7d7bba_20b3_11da_81a5_0030f1642e3c); -} #[repr(C)] #[doc(hidden)] pub struct ISettingsNamespace_Vtbl { @@ -505,9 +457,8 @@ pub struct ISettingsNamespace_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] GetAttribute: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISettingsResult(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISettingsResult, ISettingsResult_Vtbl, 0x9f7d7bbc_20b3_11da_81a5_0030f1642e3c); +::windows_core::imp::interface_hierarchy!(ISettingsResult, ::windows_core::IUnknown); impl ISettingsResult { pub unsafe fn GetDescription(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -534,13 +485,6 @@ impl ISettingsResult { (::windows_core::Interface::vtable(self).GetSource)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISettingsResult, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISettingsResult { - type Vtable = ISettingsResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISettingsResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9f7d7bbc_20b3_11da_81a5_0030f1642e3c); -} #[repr(C)] #[doc(hidden)] pub struct ISettingsResult_Vtbl { @@ -552,9 +496,8 @@ pub struct ISettingsResult_Vtbl { pub GetColumn: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwcolumn: *mut u32) -> ::windows_core::HRESULT, pub GetSource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, file: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITargetInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITargetInfo, ITargetInfo_Vtbl, 0x9f7d7bb8_20b3_11da_81a5_0030f1642e3c); +::windows_core::imp::interface_hierarchy!(ITargetInfo, ::windows_core::IUnknown); impl ITargetInfo { pub unsafe fn GetTargetMode(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -675,13 +618,6 @@ impl ITargetInfo { (::windows_core::Interface::vtable(self).GetSchemaHiveMountName)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITargetInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITargetInfo { - type Vtable = ITargetInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITargetInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9f7d7bb8_20b3_11da_81a5_0030f1642e3c); -} #[repr(C)] #[doc(hidden)] pub struct ITargetInfo_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/System/SideShow/impl.rs b/crates/libs/windows/src/Windows/Win32/System/SideShow/impl.rs index 90e9a96858..52cca5baec 100644 --- a/crates/libs/windows/src/Windows/Win32/System/SideShow/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/SideShow/impl.rs @@ -16,7 +16,7 @@ impl ISideShowBulkCapabilities_Vtbl { Self { base__: ISideShowCapabilities_Vtbl::new::(), GetCapabilities: GetCapabilities:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`, `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -37,7 +37,7 @@ impl ISideShowCapabilities_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetCapability: GetCapability:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISideShowCapabilitiesCollection_Impl: Sized { @@ -76,7 +76,7 @@ impl ISideShowCapabilitiesCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISideShowContent_Impl: Sized { @@ -122,7 +122,7 @@ impl ISideShowContent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISideShowContentManager_Impl: Sized { @@ -176,7 +176,7 @@ impl ISideShowContentManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISideShowEvents_Impl: Sized { @@ -223,7 +223,7 @@ impl ISideShowEvents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -275,7 +275,7 @@ impl ISideShowKeyCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_WindowsAndMessaging\"`"] @@ -392,7 +392,7 @@ impl ISideShowNotification_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISideShowNotificationManager_Impl: Sized { @@ -426,7 +426,7 @@ impl ISideShowNotificationManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] @@ -478,7 +478,7 @@ impl ISideShowPropVariantCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISideShowSession_Impl: Sized { @@ -517,6 +517,6 @@ impl ISideShowSession_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 b8f40af6c0..3fc9a58c84 100644 --- a/crates/libs/windows/src/Windows/Win32/System/SideShow/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/SideShow/mod.rs @@ -1,6 +1,5 @@ -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISideShowBulkCapabilities(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISideShowBulkCapabilities, ISideShowBulkCapabilities_Vtbl, 0x3a2b7fbc_3ad5_48bd_bbf1_0e6cfbd10807); +::windows_core::imp::interface_hierarchy!(ISideShowBulkCapabilities, ::windows_core::IUnknown, ISideShowCapabilities); impl ISideShowBulkCapabilities { #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`, `\"Win32_UI_Shell_PropertiesSystem\"`"] #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant", feature = "Win32_UI_Shell_PropertiesSystem"))] @@ -14,22 +13,14 @@ impl ISideShowBulkCapabilities { (::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::imp::interface_hierarchy!(ISideShowBulkCapabilities, ::windows_core::IUnknown, ISideShowCapabilities); -unsafe impl ::windows_core::Interface for ISideShowBulkCapabilities { - type Vtable = ISideShowBulkCapabilities_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISideShowBulkCapabilities { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3a2b7fbc_3ad5_48bd_bbf1_0e6cfbd10807); -} #[repr(C)] #[doc(hidden)] pub struct ISideShowBulkCapabilities_Vtbl { pub base__: ISideShowCapabilities_Vtbl, pub GetCapabilities: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, in_keycollection: *mut ::core::ffi::c_void, inout_pvalues: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISideShowCapabilities(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISideShowCapabilities, ISideShowCapabilities_Vtbl, 0x535e1379_c09e_4a54_a511_597bab3a72b8); +::windows_core::imp::interface_hierarchy!(ISideShowCapabilities, ::windows_core::IUnknown); impl ISideShowCapabilities { #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`, `\"Win32_UI_Shell_PropertiesSystem\"`"] #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant", feature = "Win32_UI_Shell_PropertiesSystem"))] @@ -37,13 +28,6 @@ impl ISideShowCapabilities { (::windows_core::Interface::vtable(self).GetCapability)(::windows_core::Interface::as_raw(self), in_keycapability, inout_pvalue).ok() } } -::windows_core::imp::interface_hierarchy!(ISideShowCapabilities, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISideShowCapabilities { - type Vtable = ISideShowCapabilities_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISideShowCapabilities { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x535e1379_c09e_4a54_a511_597bab3a72b8); -} #[repr(C)] #[doc(hidden)] pub struct ISideShowCapabilities_Vtbl { @@ -53,9 +37,8 @@ pub struct ISideShowCapabilities_Vtbl { #[cfg(not(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant", feature = "Win32_UI_Shell_PropertiesSystem")))] GetCapability: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISideShowCapabilitiesCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISideShowCapabilitiesCollection, ISideShowCapabilitiesCollection_Vtbl, 0x50305597_5e0d_4ff7_b3af_33d0d9bd52dd); +::windows_core::imp::interface_hierarchy!(ISideShowCapabilitiesCollection, ::windows_core::IUnknown); impl ISideShowCapabilitiesCollection { pub unsafe fn GetCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -66,13 +49,6 @@ impl ISideShowCapabilitiesCollection { (::windows_core::Interface::vtable(self).GetAt)(::windows_core::Interface::as_raw(self), in_dwindex, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISideShowCapabilitiesCollection, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISideShowCapabilitiesCollection { - type Vtable = ISideShowCapabilitiesCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISideShowCapabilitiesCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x50305597_5e0d_4ff7_b3af_33d0d9bd52dd); -} #[repr(C)] #[doc(hidden)] pub struct ISideShowCapabilitiesCollection_Vtbl { @@ -80,9 +56,8 @@ pub struct ISideShowCapabilitiesCollection_Vtbl { pub GetCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, out_pdwcount: *mut u32) -> ::windows_core::HRESULT, pub GetAt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, in_dwindex: u32, out_ppcapabilities: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISideShowContent(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISideShowContent, ISideShowContent_Vtbl, 0xc18552ed_74ff_4fec_be07_4cfed29d4887); +::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 @@ -99,13 +74,6 @@ impl ISideShowContent { (::windows_core::Interface::vtable(self).DifferentiateContent)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISideShowContent, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISideShowContent { - type Vtable = ISideShowContent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISideShowContent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc18552ed_74ff_4fec_be07_4cfed29d4887); -} #[repr(C)] #[doc(hidden)] pub struct ISideShowContent_Vtbl { @@ -114,9 +82,8 @@ pub struct ISideShowContent_Vtbl { pub ContentId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, out_pcontentid: *mut u32) -> ::windows_core::HRESULT, pub DifferentiateContent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, out_pfdifferentiatecontent: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISideShowContentManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISideShowContentManager, ISideShowContentManager_Vtbl, 0xa5d5b66b_eef9_41db_8d7e_e17c33ab10b0); +::windows_core::imp::interface_hierarchy!(ISideShowContentManager, ::windows_core::IUnknown); impl ISideShowContentManager { pub unsafe fn Add(&self, in_picontent: P0) -> ::windows_core::Result<()> where @@ -141,13 +108,6 @@ impl ISideShowContentManager { (::windows_core::Interface::vtable(self).GetDeviceCapabilities)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISideShowContentManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISideShowContentManager { - type Vtable = ISideShowContentManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISideShowContentManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa5d5b66b_eef9_41db_8d7e_e17c33ab10b0); -} #[repr(C)] #[doc(hidden)] pub struct ISideShowContentManager_Vtbl { @@ -158,9 +118,8 @@ pub struct ISideShowContentManager_Vtbl { pub SetEventSink: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, in_pievents: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDeviceCapabilities: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, out_ppcollection: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISideShowEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISideShowEvents, ISideShowEvents_Vtbl, 0x61feca4c_deb4_4a7e_8d75_51f1132d615b); +::windows_core::imp::interface_hierarchy!(ISideShowEvents, ::windows_core::IUnknown); impl ISideShowEvents { pub unsafe fn ContentMissing(&self, in_contentid: u32) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -185,13 +144,6 @@ impl ISideShowEvents { (::windows_core::Interface::vtable(self).DeviceRemoved)(::windows_core::Interface::as_raw(self), in_pidevice.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ISideShowEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISideShowEvents { - type Vtable = ISideShowEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISideShowEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x61feca4c_deb4_4a7e_8d75_51f1132d615b); -} #[repr(C)] #[doc(hidden)] pub struct ISideShowEvents_Vtbl { @@ -201,9 +153,8 @@ pub struct ISideShowEvents_Vtbl { pub DeviceAdded: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, in_pidevice: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub DeviceRemoved: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, in_pidevice: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISideShowKeyCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISideShowKeyCollection, ISideShowKeyCollection_Vtbl, 0x045473bc_a37b_4957_b144_68105411ed8e); +::windows_core::imp::interface_hierarchy!(ISideShowKeyCollection, ::windows_core::IUnknown); impl ISideShowKeyCollection { #[doc = "Required features: `\"Win32_UI_Shell_PropertiesSystem\"`"] #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] @@ -225,13 +176,6 @@ impl ISideShowKeyCollection { (::windows_core::Interface::vtable(self).RemoveAt)(::windows_core::Interface::as_raw(self), dwindex).ok() } } -::windows_core::imp::interface_hierarchy!(ISideShowKeyCollection, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISideShowKeyCollection { - type Vtable = ISideShowKeyCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISideShowKeyCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x045473bc_a37b_4957_b144_68105411ed8e); -} #[repr(C)] #[doc(hidden)] pub struct ISideShowKeyCollection_Vtbl { @@ -248,9 +192,8 @@ pub struct ISideShowKeyCollection_Vtbl { pub GetCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcelems: *const u32) -> ::windows_core::HRESULT, pub RemoveAt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwindex: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISideShowNotification(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISideShowNotification, ISideShowNotification_Vtbl, 0x03c93300_8ab2_41c5_9b79_46127a30e148); +::windows_core::imp::interface_hierarchy!(ISideShowNotification, ::windows_core::IUnknown); impl ISideShowNotification { pub unsafe fn NotificationId(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -301,13 +244,6 @@ impl ISideShowNotification { (::windows_core::Interface::vtable(self).SetExpirationTime)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(in_ptime.unwrap_or(::std::ptr::null()))).ok() } } -::windows_core::imp::interface_hierarchy!(ISideShowNotification, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISideShowNotification { - type Vtable = ISideShowNotification_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISideShowNotification { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x03c93300_8ab2_41c5_9b79_46127a30e148); -} #[repr(C)] #[doc(hidden)] pub struct ISideShowNotification_Vtbl { @@ -329,9 +265,8 @@ pub struct ISideShowNotification_Vtbl { pub ExpirationTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, out_ptime: *mut super::super::Foundation::SYSTEMTIME) -> ::windows_core::HRESULT, pub SetExpirationTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, in_ptime: *const super::super::Foundation::SYSTEMTIME) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISideShowNotificationManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISideShowNotificationManager, ISideShowNotificationManager_Vtbl, 0x63cea909_f2b9_4302_b5e1_c68e6d9ab833); +::windows_core::imp::interface_hierarchy!(ISideShowNotificationManager, ::windows_core::IUnknown); impl ISideShowNotificationManager { pub unsafe fn Show(&self, in_pinotification: P0) -> ::windows_core::Result<()> where @@ -346,13 +281,6 @@ impl ISideShowNotificationManager { (::windows_core::Interface::vtable(self).RevokeAll)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ISideShowNotificationManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISideShowNotificationManager { - type Vtable = ISideShowNotificationManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISideShowNotificationManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x63cea909_f2b9_4302_b5e1_c68e6d9ab833); -} #[repr(C)] #[doc(hidden)] pub struct ISideShowNotificationManager_Vtbl { @@ -361,9 +289,8 @@ pub struct ISideShowNotificationManager_Vtbl { pub Revoke: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, in_notificationid: u32) -> ::windows_core::HRESULT, pub RevokeAll: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISideShowPropVariantCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISideShowPropVariantCollection, ISideShowPropVariantCollection_Vtbl, 0x2ea7a549_7bff_4aae_bab0_22d43111de49); +::windows_core::imp::interface_hierarchy!(ISideShowPropVariantCollection, ::windows_core::IUnknown); impl ISideShowPropVariantCollection { #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] @@ -385,13 +312,6 @@ impl ISideShowPropVariantCollection { (::windows_core::Interface::vtable(self).RemoveAt)(::windows_core::Interface::as_raw(self), dwindex).ok() } } -::windows_core::imp::interface_hierarchy!(ISideShowPropVariantCollection, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISideShowPropVariantCollection { - type Vtable = ISideShowPropVariantCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISideShowPropVariantCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2ea7a549_7bff_4aae_bab0_22d43111de49); -} #[repr(C)] #[doc(hidden)] pub struct ISideShowPropVariantCollection_Vtbl { @@ -408,9 +328,8 @@ pub struct ISideShowPropVariantCollection_Vtbl { pub GetCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcelems: *const u32) -> ::windows_core::HRESULT, pub RemoveAt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwindex: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISideShowSession(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISideShowSession, ISideShowSession_Vtbl, 0xe22331ee_9e7d_4922_9fc2_ab7aa41ce491); +::windows_core::imp::interface_hierarchy!(ISideShowSession, ::windows_core::IUnknown); impl ISideShowSession { pub unsafe fn RegisterContent(&self, in_applicationid: *const ::windows_core::GUID, in_endpointid: *const ::windows_core::GUID) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -421,13 +340,6 @@ impl ISideShowSession { (::windows_core::Interface::vtable(self).RegisterNotifications)(::windows_core::Interface::as_raw(self), in_applicationid, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISideShowSession, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISideShowSession { - type Vtable = ISideShowSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISideShowSession { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe22331ee_9e7d_4922_9fc2_ab7aa41ce491); -} #[repr(C)] #[doc(hidden)] pub struct ISideShowSession_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/System/TaskScheduler/impl.rs b/crates/libs/windows/src/Windows/Win32/System/TaskScheduler/impl.rs index dc0dd97fd5..aaf0dbba7a 100644 --- a/crates/libs/windows/src/Windows/Win32/System/TaskScheduler/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/TaskScheduler/impl.rs @@ -33,7 +33,7 @@ impl IAction_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -138,7 +138,7 @@ impl IActionCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -165,7 +165,7 @@ impl IBootTrigger_Vtbl { Self { base__: ITrigger_Vtbl::new::(), Delay: Delay::, SetDelay: SetDelay:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -210,7 +210,7 @@ impl IComHandlerAction_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -255,7 +255,7 @@ impl IDailyTrigger_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -418,7 +418,7 @@ impl IEmailAction_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IEnumWorkItems_Impl: Sized { @@ -465,7 +465,7 @@ impl IEnumWorkItems_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -530,7 +530,7 @@ impl IEventTrigger_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -589,7 +589,7 @@ impl IExecAction_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -620,7 +620,7 @@ impl IExecAction2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -693,7 +693,7 @@ impl IIdleSettings_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -707,7 +707,7 @@ impl IIdleTrigger_Vtbl { Self { base__: ITrigger_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -752,7 +752,7 @@ impl ILogonTrigger_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -811,7 +811,7 @@ impl IMaintenanceSettings_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -898,7 +898,7 @@ impl IMonthlyDOWTrigger_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -971,7 +971,7 @@ impl IMonthlyTrigger_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1016,7 +1016,7 @@ impl INetworkSettings_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1117,7 +1117,7 @@ impl IPrincipal_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1169,7 +1169,7 @@ impl IPrincipal2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Controls\"`"] @@ -1196,7 +1196,7 @@ impl IProvideTaskPage_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetPage: GetPage:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1423,7 +1423,7 @@ impl IRegisteredTask_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1479,7 +1479,7 @@ impl IRegisteredTaskCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1622,7 +1622,7 @@ impl IRegistrationInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1649,7 +1649,7 @@ impl IRegistrationTrigger_Vtbl { Self { base__: ITrigger_Vtbl::new::(), Delay: Delay::, SetDelay: SetDelay:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1708,7 +1708,7 @@ impl IRepetitionPattern_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1817,7 +1817,7 @@ impl IRunningTask_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1873,7 +1873,7 @@ impl IRunningTaskCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IScheduledWorkItem_Impl: Sized { @@ -2161,7 +2161,7 @@ impl IScheduledWorkItem_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2220,7 +2220,7 @@ impl ISessionStateChangeTrigger_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2265,7 +2265,7 @@ impl IShowMessageAction_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ITask_Impl: Sized + IScheduledWorkItem_Impl { @@ -2398,7 +2398,7 @@ impl ITask_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2543,7 +2543,7 @@ impl ITaskDefinition_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2711,7 +2711,7 @@ impl ITaskFolder_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2767,7 +2767,7 @@ impl ITaskFolderCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ITaskHandler_Impl: Sized { @@ -2814,7 +2814,7 @@ impl ITaskHandler_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITaskHandlerStatus_Impl: Sized { @@ -2841,7 +2841,7 @@ impl ITaskHandlerStatus_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2918,7 +2918,7 @@ impl ITaskNamedValueCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2963,7 +2963,7 @@ impl ITaskNamedValuePair_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ITaskScheduler_Impl: Sized { @@ -3056,7 +3056,7 @@ impl ITaskScheduler_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3184,7 +3184,7 @@ impl ITaskService_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3493,7 +3493,7 @@ impl ITaskSettings_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3538,7 +3538,7 @@ impl ITaskSettings2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3630,7 +3630,7 @@ impl ITaskSettings3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ITaskTrigger_Impl: Sized { @@ -3670,7 +3670,7 @@ impl ITaskTrigger_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITaskVariables_Impl: Sized { @@ -3716,7 +3716,7 @@ impl ITaskVariables_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3747,7 +3747,7 @@ impl ITimeTrigger_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3861,7 +3861,7 @@ impl ITrigger_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3938,7 +3938,7 @@ impl ITriggerCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3997,6 +3997,6 @@ impl IWeeklyTrigger_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } 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 586b8bf40b..5dc4bd4a62 100644 --- a/crates/libs/windows/src/Windows/Win32/System/TaskScheduler/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/TaskScheduler/mod.rs @@ -1,8 +1,12 @@ -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAction(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IAction, + IAction_Vtbl, + 0xbae54997_48b1_4cbe_9965_d6be263ebea4 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IAction, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IAction { pub unsafe fn Id(&self, pid: *mut ::windows_core::BSTR) -> ::windows_core::Result<()> { @@ -19,16 +23,6 @@ impl IAction { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IAction, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IAction { - type Vtable = IAction_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IAction { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbae54997_48b1_4cbe_9965_d6be263ebea4); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IAction_Vtbl { @@ -37,11 +31,15 @@ pub struct IAction_Vtbl { pub SetId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub Type: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptype: *mut TASK_ACTION_TYPE) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActionCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IActionCollection, + IActionCollection_Vtbl, + 0x02820e19_7b98_4ed2_b2e8_fdccceff619b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IActionCollection, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IActionCollection { pub unsafe fn Count(&self, pcount: *mut i32) -> ::windows_core::Result<()> { @@ -91,16 +89,6 @@ impl IActionCollection { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IActionCollection, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IActionCollection { - type Vtable = IActionCollection_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IActionCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x02820e19_7b98_4ed2_b2e8_fdccceff619b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IActionCollection_Vtbl { @@ -125,11 +113,15 @@ pub struct IActionCollection_Vtbl { pub Context: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcontext: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SetContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBootTrigger(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IBootTrigger, + IBootTrigger_Vtbl, + 0x2a9c35da_d357_41f4_bbc1_207ac1b1f3cb +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IBootTrigger, ::windows_core::IUnknown, super::Com::IDispatch, ITrigger); #[cfg(feature = "Win32_System_Com")] impl IBootTrigger { pub unsafe fn Type(&self, ptype: *mut TASK_TRIGGER_TYPE2) -> ::windows_core::Result<()> { @@ -205,16 +197,6 @@ impl IBootTrigger { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IBootTrigger, ::windows_core::IUnknown, super::Com::IDispatch, ITrigger); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IBootTrigger { - type Vtable = IBootTrigger_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IBootTrigger { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2a9c35da_d357_41f4_bbc1_207ac1b1f3cb); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IBootTrigger_Vtbl { @@ -222,11 +204,15 @@ pub struct IBootTrigger_Vtbl { pub Delay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdelay: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SetDelay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, delay: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IComHandlerAction(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IComHandlerAction, + IComHandlerAction_Vtbl, + 0x6d2fd252_75c5_4f66_90ba_2a7d8cc3039f +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IComHandlerAction, ::windows_core::IUnknown, super::Com::IDispatch, IAction); #[cfg(feature = "Win32_System_Com")] impl IComHandlerAction { pub unsafe fn Id(&self, pid: *mut ::windows_core::BSTR) -> ::windows_core::Result<()> { @@ -261,16 +247,6 @@ impl IComHandlerAction { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IComHandlerAction, ::windows_core::IUnknown, super::Com::IDispatch, IAction); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IComHandlerAction { - type Vtable = IComHandlerAction_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IComHandlerAction { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6d2fd252_75c5_4f66_90ba_2a7d8cc3039f); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IComHandlerAction_Vtbl { @@ -280,11 +256,15 @@ pub struct IComHandlerAction_Vtbl { pub Data: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdata: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SetData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, data: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDailyTrigger(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IDailyTrigger, + IDailyTrigger_Vtbl, + 0x126c5cd8_b288_41d5_8dbf_e491446adc5c +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IDailyTrigger, ::windows_core::IUnknown, super::Com::IDispatch, ITrigger); #[cfg(feature = "Win32_System_Com")] impl IDailyTrigger { pub unsafe fn Type(&self, ptype: *mut TASK_TRIGGER_TYPE2) -> ::windows_core::Result<()> { @@ -366,16 +346,6 @@ impl IDailyTrigger { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IDailyTrigger, ::windows_core::IUnknown, super::Com::IDispatch, ITrigger); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IDailyTrigger { - type Vtable = IDailyTrigger_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IDailyTrigger { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x126c5cd8_b288_41d5_8dbf_e491446adc5c); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IDailyTrigger_Vtbl { @@ -385,11 +355,15 @@ pub struct IDailyTrigger_Vtbl { pub RandomDelay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prandomdelay: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SetRandomDelay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, randomdelay: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmailAction(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IEmailAction, + IEmailAction_Vtbl, + 0x10f62c64_7e16_4314_a0c2_0c3683f99d40 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IEmailAction, ::windows_core::IUnknown, super::Com::IDispatch, IAction); #[cfg(feature = "Win32_System_Com")] impl IEmailAction { pub unsafe fn Id(&self, pid: *mut ::windows_core::BSTR) -> ::windows_core::Result<()> { @@ -502,16 +476,6 @@ impl IEmailAction { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IEmailAction, ::windows_core::IUnknown, super::Com::IDispatch, IAction); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IEmailAction { - type Vtable = IEmailAction_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IEmailAction { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x10f62c64_7e16_4314_a0c2_0c3683f99d40); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IEmailAction_Vtbl { @@ -549,9 +513,8 @@ pub struct IEmailAction_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] SetAttachments: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumWorkItems(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumWorkItems, IEnumWorkItems_Vtbl, 0x148bd528_a2ab_11ce_b11f_00aa00530503); +::windows_core::imp::interface_hierarchy!(IEnumWorkItems, ::windows_core::IUnknown); impl IEnumWorkItems { pub unsafe fn Next(&self, celt: u32, rgpwsznames: *mut *mut ::windows_core::PWSTR, pceltfetched: *mut u32) -> ::windows_core::HRESULT { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), celt, rgpwsznames, pceltfetched) @@ -567,13 +530,6 @@ impl IEnumWorkItems { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumWorkItems, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumWorkItems { - type Vtable = IEnumWorkItems_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumWorkItems { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x148bd528_a2ab_11ce_b11f_00aa00530503); -} #[repr(C)] #[doc(hidden)] pub struct IEnumWorkItems_Vtbl { @@ -583,11 +539,15 @@ pub struct IEnumWorkItems_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenumworkitems: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEventTrigger(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IEventTrigger, + IEventTrigger_Vtbl, + 0xd45b0167_9653_4eef_b94f_0732ca7af251 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IEventTrigger, ::windows_core::IUnknown, super::Com::IDispatch, ITrigger); #[cfg(feature = "Win32_System_Com")] impl IEventTrigger { pub unsafe fn Type(&self, ptype: *mut TASK_TRIGGER_TYPE2) -> ::windows_core::Result<()> { @@ -686,16 +646,6 @@ impl IEventTrigger { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IEventTrigger, ::windows_core::IUnknown, super::Com::IDispatch, ITrigger); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IEventTrigger { - type Vtable = IEventTrigger_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IEventTrigger { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd45b0167_9653_4eef_b94f_0732ca7af251); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IEventTrigger_Vtbl { @@ -713,11 +663,15 @@ pub struct IEventTrigger_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] SetValueQueries: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IExecAction(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IExecAction, + IExecAction_Vtbl, + 0x4c3d624d_fd6b_49a3_b9b7_09cb3cd3f047 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IExecAction, ::windows_core::IUnknown, super::Com::IDispatch, IAction); #[cfg(feature = "Win32_System_Com")] impl IExecAction { pub unsafe fn Id(&self, pid: *mut ::windows_core::BSTR) -> ::windows_core::Result<()> { @@ -761,16 +715,6 @@ impl IExecAction { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IExecAction, ::windows_core::IUnknown, super::Com::IDispatch, IAction); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IExecAction { - type Vtable = IExecAction_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IExecAction { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4c3d624d_fd6b_49a3_b9b7_09cb3cd3f047); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IExecAction_Vtbl { @@ -782,11 +726,15 @@ pub struct IExecAction_Vtbl { pub WorkingDirectory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pworkingdirectory: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SetWorkingDirectory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, workingdirectory: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IExecAction2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IExecAction2, + IExecAction2_Vtbl, + 0xf2a82542_bda5_4e6b_9143_e2bf4f8987b6 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IExecAction2, ::windows_core::IUnknown, super::Com::IDispatch, IAction, IExecAction); #[cfg(feature = "Win32_System_Com")] impl IExecAction2 { pub unsafe fn Id(&self, pid: *mut ::windows_core::BSTR) -> ::windows_core::Result<()> { @@ -839,16 +787,6 @@ impl IExecAction2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IExecAction2, ::windows_core::IUnknown, super::Com::IDispatch, IAction, IExecAction); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IExecAction2 { - type Vtable = IExecAction2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IExecAction2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf2a82542_bda5_4e6b_9143_e2bf4f8987b6); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IExecAction2_Vtbl { @@ -856,11 +794,15 @@ pub struct IExecAction2_Vtbl { pub HideAppWindow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phideappwindow: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub SetHideAppWindow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hideappwindow: super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIdleSettings(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IIdleSettings, + IIdleSettings_Vtbl, + 0x84594461_0053_4342_a8fd_088fabf11f32 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IIdleSettings, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IIdleSettings { pub unsafe fn IdleDuration(&self, pdelay: *mut ::windows_core::BSTR) -> ::windows_core::Result<()> { @@ -901,16 +843,6 @@ impl IIdleSettings { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IIdleSettings, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IIdleSettings { - type Vtable = IIdleSettings_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IIdleSettings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x84594461_0053_4342_a8fd_088fabf11f32); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IIdleSettings_Vtbl { @@ -924,11 +856,15 @@ pub struct IIdleSettings_Vtbl { pub RestartOnIdle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prestart: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub SetRestartOnIdle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, restart: super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIdleTrigger(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IIdleTrigger, + IIdleTrigger_Vtbl, + 0xd537d2b0_9fb3_4d34_9739_1ff5ce7b1ef3 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IIdleTrigger, ::windows_core::IUnknown, super::Com::IDispatch, ITrigger); #[cfg(feature = "Win32_System_Com")] impl IIdleTrigger { pub unsafe fn Type(&self, ptype: *mut TASK_TRIGGER_TYPE2) -> ::windows_core::Result<()> { @@ -995,26 +931,20 @@ impl IIdleTrigger { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IIdleTrigger, ::windows_core::IUnknown, super::Com::IDispatch, ITrigger); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IIdleTrigger { - type Vtable = IIdleTrigger_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IIdleTrigger { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd537d2b0_9fb3_4d34_9739_1ff5ce7b1ef3); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IIdleTrigger_Vtbl { pub base__: ITrigger_Vtbl, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILogonTrigger(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ILogonTrigger, + ILogonTrigger_Vtbl, + 0x72dade38_fae4_4b3e_baf4_5d009af02b1c +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ILogonTrigger, ::windows_core::IUnknown, super::Com::IDispatch, ITrigger); #[cfg(feature = "Win32_System_Com")] impl ILogonTrigger { pub unsafe fn Type(&self, ptype: *mut TASK_TRIGGER_TYPE2) -> ::windows_core::Result<()> { @@ -1099,16 +1029,6 @@ impl ILogonTrigger { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ILogonTrigger, ::windows_core::IUnknown, super::Com::IDispatch, ITrigger); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ILogonTrigger { - type Vtable = ILogonTrigger_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ILogonTrigger { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x72dade38_fae4_4b3e_baf4_5d009af02b1c); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ILogonTrigger_Vtbl { @@ -1118,11 +1038,15 @@ pub struct ILogonTrigger_Vtbl { pub UserId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, puser: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SetUserId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, user: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMaintenanceSettings(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMaintenanceSettings, + IMaintenanceSettings_Vtbl, + 0xa6024fa8_9652_4adb_a6bf_5cfcd877a7ba +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMaintenanceSettings, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMaintenanceSettings { pub unsafe fn SetPeriod(&self, value: P0) -> ::windows_core::Result<()> @@ -1154,16 +1078,6 @@ impl IMaintenanceSettings { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMaintenanceSettings, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMaintenanceSettings { - type Vtable = IMaintenanceSettings_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMaintenanceSettings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa6024fa8_9652_4adb_a6bf_5cfcd877a7ba); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMaintenanceSettings_Vtbl { @@ -1175,11 +1089,15 @@ pub struct IMaintenanceSettings_Vtbl { pub SetExclusive: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub Exclusive: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, target: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMonthlyDOWTrigger(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMonthlyDOWTrigger, + IMonthlyDOWTrigger_Vtbl, + 0x77d025a3_90fa_43aa_b52e_cda5499b946a +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMonthlyDOWTrigger, ::windows_core::IUnknown, super::Com::IDispatch, ITrigger); #[cfg(feature = "Win32_System_Com")] impl IMonthlyDOWTrigger { pub unsafe fn Type(&self, ptype: *mut TASK_TRIGGER_TYPE2) -> ::windows_core::Result<()> { @@ -1282,16 +1200,6 @@ impl IMonthlyDOWTrigger { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMonthlyDOWTrigger, ::windows_core::IUnknown, super::Com::IDispatch, ITrigger); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMonthlyDOWTrigger { - type Vtable = IMonthlyDOWTrigger_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMonthlyDOWTrigger { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x77d025a3_90fa_43aa_b52e_cda5499b946a); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMonthlyDOWTrigger_Vtbl { @@ -1307,11 +1215,15 @@ pub struct IMonthlyDOWTrigger_Vtbl { pub RandomDelay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prandomdelay: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SetRandomDelay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, randomdelay: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMonthlyTrigger(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMonthlyTrigger, + IMonthlyTrigger_Vtbl, + 0x97c45ef1_6b02_4a1a_9c0e_1ebfba1500ac +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMonthlyTrigger, ::windows_core::IUnknown, super::Com::IDispatch, ITrigger); #[cfg(feature = "Win32_System_Com")] impl IMonthlyTrigger { pub unsafe fn Type(&self, ptype: *mut TASK_TRIGGER_TYPE2) -> ::windows_core::Result<()> { @@ -1408,16 +1320,6 @@ impl IMonthlyTrigger { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMonthlyTrigger, ::windows_core::IUnknown, super::Com::IDispatch, ITrigger); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMonthlyTrigger { - type Vtable = IMonthlyTrigger_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMonthlyTrigger { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x97c45ef1_6b02_4a1a_9c0e_1ebfba1500ac); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMonthlyTrigger_Vtbl { @@ -1431,11 +1333,15 @@ pub struct IMonthlyTrigger_Vtbl { pub RandomDelay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prandomdelay: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SetRandomDelay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, randomdelay: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetworkSettings(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + INetworkSettings, + INetworkSettings_Vtbl, + 0x9f7dea84_c30b_4245_80b6_00e9f646f1b4 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(INetworkSettings, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl INetworkSettings { pub unsafe fn Name(&self, pname: *mut ::windows_core::BSTR) -> ::windows_core::Result<()> { @@ -1458,16 +1364,6 @@ impl INetworkSettings { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(INetworkSettings, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for INetworkSettings { - type Vtable = INetworkSettings_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for INetworkSettings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9f7dea84_c30b_4245_80b6_00e9f646f1b4); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct INetworkSettings_Vtbl { @@ -1477,11 +1373,15 @@ pub struct INetworkSettings_Vtbl { pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pid: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SetId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrincipal(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IPrincipal, + IPrincipal_Vtbl, + 0xd98d51e5_c9b4_496a_a9c1_18980261cf0f +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IPrincipal, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IPrincipal { pub unsafe fn Id(&self, pid: *mut ::windows_core::BSTR) -> ::windows_core::Result<()> { @@ -1534,16 +1434,6 @@ impl IPrincipal { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IPrincipal, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IPrincipal { - type Vtable = IPrincipal_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IPrincipal { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd98d51e5_c9b4_496a_a9c1_18980261cf0f); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IPrincipal_Vtbl { @@ -1561,11 +1451,15 @@ pub struct IPrincipal_Vtbl { pub RunLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prunlevel: *mut TASK_RUNLEVEL_TYPE) -> ::windows_core::HRESULT, pub SetRunLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, runlevel: TASK_RUNLEVEL_TYPE) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrincipal2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IPrincipal2, + IPrincipal2_Vtbl, + 0x248919ae_e345_4a6d_8aeb_e0d3165c904e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IPrincipal2, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IPrincipal2 { pub unsafe fn ProcessTokenSidType(&self, pprocesstokensidtype: *mut TASK_PROCESSTOKENSID_TYPE) -> ::windows_core::Result<()> { @@ -1588,16 +1482,6 @@ impl IPrincipal2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IPrincipal2, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IPrincipal2 { - type Vtable = IPrincipal2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IPrincipal2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x248919ae_e345_4a6d_8aeb_e0d3165c904e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IPrincipal2_Vtbl { @@ -1608,9 +1492,8 @@ pub struct IPrincipal2_Vtbl { pub get_RequiredPrivilege: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32, pprivilege: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub AddRequiredPrivilege: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, privilege: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProvideTaskPage(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IProvideTaskPage, IProvideTaskPage_Vtbl, 0x4086658a_cbbb_11cf_b604_00c04fd8d565); +::windows_core::imp::interface_hierarchy!(IProvideTaskPage, ::windows_core::IUnknown); impl IProvideTaskPage { #[doc = "Required features: `\"Win32_UI_Controls\"`"] #[cfg(feature = "Win32_UI_Controls")] @@ -1622,13 +1505,6 @@ impl IProvideTaskPage { (::windows_core::Interface::vtable(self).GetPage)(::windows_core::Interface::as_raw(self), tptype, fpersistchanges.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IProvideTaskPage, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProvideTaskPage { - type Vtable = IProvideTaskPage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProvideTaskPage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4086658a_cbbb_11cf_b604_00c04fd8d565); -} #[repr(C)] #[doc(hidden)] pub struct IProvideTaskPage_Vtbl { @@ -1638,11 +1514,15 @@ pub struct IProvideTaskPage_Vtbl { #[cfg(not(feature = "Win32_UI_Controls"))] GetPage: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRegisteredTask(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IRegisteredTask, + IRegisteredTask_Vtbl, + 0x9c86f320_dee3_4dd1_b972_a303f26b061e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IRegisteredTask, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IRegisteredTask { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -1732,16 +1612,6 @@ impl IRegisteredTask { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IRegisteredTask, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IRegisteredTask { - type Vtable = IRegisteredTask_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IRegisteredTask { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9c86f320_dee3_4dd1_b972_a303f26b061e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IRegisteredTask_Vtbl { @@ -1777,11 +1647,15 @@ pub struct IRegisteredTask_Vtbl { pub Stop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: i32) -> ::windows_core::HRESULT, pub GetRunTimes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pststart: *const super::super::Foundation::SYSTEMTIME, pstend: *const super::super::Foundation::SYSTEMTIME, pcount: *mut u32, pruntimes: *mut *mut super::super::Foundation::SYSTEMTIME) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRegisteredTaskCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IRegisteredTaskCollection, + IRegisteredTaskCollection_Vtbl, + 0x86627eb4_42a7_41e4_a4d9_ac33a72f2d52 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IRegisteredTaskCollection, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IRegisteredTaskCollection { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -1800,16 +1674,6 @@ impl IRegisteredTaskCollection { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IRegisteredTaskCollection, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IRegisteredTaskCollection { - type Vtable = IRegisteredTaskCollection_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IRegisteredTaskCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x86627eb4_42a7_41e4_a4d9_ac33a72f2d52); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IRegisteredTaskCollection_Vtbl { @@ -1821,11 +1685,15 @@ pub struct IRegisteredTaskCollection_Vtbl { get_Item: usize, pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRegistrationInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IRegistrationInfo, + IRegistrationInfo_Vtbl, + 0x416d8b73_cb41_4ea1_805c_9be9a5ac4a74 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IRegistrationInfo, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IRegistrationInfo { pub unsafe fn Description(&self, pdescription: *mut ::windows_core::BSTR) -> ::windows_core::Result<()> { @@ -1912,16 +1780,6 @@ impl IRegistrationInfo { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IRegistrationInfo, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IRegistrationInfo { - type Vtable = IRegistrationInfo_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IRegistrationInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x416d8b73_cb41_4ea1_805c_9be9a5ac4a74); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IRegistrationInfo_Vtbl { @@ -1951,11 +1809,15 @@ pub struct IRegistrationInfo_Vtbl { pub Source: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psource: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SetSource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, source: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRegistrationTrigger(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IRegistrationTrigger, + IRegistrationTrigger_Vtbl, + 0x4c8fec3a_c218_4e0c_b23d_629024db91a2 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IRegistrationTrigger, ::windows_core::IUnknown, super::Com::IDispatch, ITrigger); #[cfg(feature = "Win32_System_Com")] impl IRegistrationTrigger { pub unsafe fn Type(&self, ptype: *mut TASK_TRIGGER_TYPE2) -> ::windows_core::Result<()> { @@ -2031,16 +1893,6 @@ impl IRegistrationTrigger { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IRegistrationTrigger, ::windows_core::IUnknown, super::Com::IDispatch, ITrigger); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IRegistrationTrigger { - type Vtable = IRegistrationTrigger_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IRegistrationTrigger { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4c8fec3a_c218_4e0c_b23d_629024db91a2); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IRegistrationTrigger_Vtbl { @@ -2048,11 +1900,15 @@ pub struct IRegistrationTrigger_Vtbl { pub Delay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdelay: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SetDelay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, delay: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRepetitionPattern(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IRepetitionPattern, + IRepetitionPattern_Vtbl, + 0x7fb9acf1_26be_400e_85b5_294b9c75dfd6 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IRepetitionPattern, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IRepetitionPattern { pub unsafe fn Interval(&self, pinterval: *mut ::windows_core::BSTR) -> ::windows_core::Result<()> { @@ -2084,16 +1940,6 @@ impl IRepetitionPattern { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IRepetitionPattern, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IRepetitionPattern { - type Vtable = IRepetitionPattern_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IRepetitionPattern { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7fb9acf1_26be_400e_85b5_294b9c75dfd6); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IRepetitionPattern_Vtbl { @@ -2105,11 +1951,15 @@ pub struct IRepetitionPattern_Vtbl { pub StopAtDurationEnd: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstop: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub SetStopAtDurationEnd: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, stop: super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRunningTask(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IRunningTask, + IRunningTask_Vtbl, + 0x653758fb_7b9a_4f1e_a471_beeb8e9b834e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IRunningTask, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IRunningTask { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -2144,16 +1994,6 @@ impl IRunningTask { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IRunningTask, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IRunningTask { - type Vtable = IRunningTask_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IRunningTask { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x653758fb_7b9a_4f1e_a471_beeb8e9b834e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IRunningTask_Vtbl { @@ -2167,11 +2007,15 @@ pub struct IRunningTask_Vtbl { pub Refresh: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub EnginePID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppid: *mut u32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRunningTaskCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IRunningTaskCollection, + IRunningTaskCollection_Vtbl, + 0x6a67614b_6828_4fec_aa54_6d52e8f1f2db +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IRunningTaskCollection, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IRunningTaskCollection { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -2190,16 +2034,6 @@ impl IRunningTaskCollection { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IRunningTaskCollection, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IRunningTaskCollection { - type Vtable = IRunningTaskCollection_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IRunningTaskCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6a67614b_6828_4fec_aa54_6d52e8f1f2db); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IRunningTaskCollection_Vtbl { @@ -2211,9 +2045,8 @@ pub struct IRunningTaskCollection_Vtbl { get_Item: usize, pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IScheduledWorkItem(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IScheduledWorkItem, IScheduledWorkItem_Vtbl, 0xa6b952f0_a4b1_11d0_997d_00aa006887ec); +::windows_core::imp::interface_hierarchy!(IScheduledWorkItem, ::windows_core::IUnknown); impl IScheduledWorkItem { pub unsafe fn CreateTrigger(&self, pinewtrigger: *mut u16, pptrigger: *mut ::core::option::Option) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).CreateTrigger)(::windows_core::Interface::as_raw(self), pinewtrigger, ::core::mem::transmute(pptrigger)).ok() @@ -2328,13 +2161,6 @@ impl IScheduledWorkItem { (::windows_core::Interface::vtable(self).GetAccountInformation)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IScheduledWorkItem, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IScheduledWorkItem { - type Vtable = IScheduledWorkItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IScheduledWorkItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa6b952f0_a4b1_11d0_997d_00aa006887ec); -} #[repr(C)] #[doc(hidden)] pub struct IScheduledWorkItem_Vtbl { @@ -2369,11 +2195,15 @@ pub struct IScheduledWorkItem_Vtbl { pub SetAccountInformation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwszaccountname: ::windows_core::PCWSTR, pwszpassword: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub GetAccountInformation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppwszaccountname: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISessionStateChangeTrigger(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISessionStateChangeTrigger, + ISessionStateChangeTrigger_Vtbl, + 0x754da71b_4385_4475_9dd9_598294fa3641 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISessionStateChangeTrigger, ::windows_core::IUnknown, super::Com::IDispatch, ITrigger); #[cfg(feature = "Win32_System_Com")] impl ISessionStateChangeTrigger { pub unsafe fn Type(&self, ptype: *mut TASK_TRIGGER_TYPE2) -> ::windows_core::Result<()> { @@ -2464,16 +2294,6 @@ impl ISessionStateChangeTrigger { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISessionStateChangeTrigger, ::windows_core::IUnknown, super::Com::IDispatch, ITrigger); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISessionStateChangeTrigger { - type Vtable = ISessionStateChangeTrigger_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISessionStateChangeTrigger { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x754da71b_4385_4475_9dd9_598294fa3641); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISessionStateChangeTrigger_Vtbl { @@ -2485,11 +2305,15 @@ pub struct ISessionStateChangeTrigger_Vtbl { pub StateChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptype: *mut TASK_SESSION_STATE_CHANGE_TYPE) -> ::windows_core::HRESULT, pub SetStateChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: TASK_SESSION_STATE_CHANGE_TYPE) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShowMessageAction(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IShowMessageAction, + IShowMessageAction_Vtbl, + 0x505e9e68_af89_46b8_a30f_56162a83d537 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IShowMessageAction, ::windows_core::IUnknown, super::Com::IDispatch, IAction); #[cfg(feature = "Win32_System_Com")] impl IShowMessageAction { pub unsafe fn Id(&self, pid: *mut ::windows_core::BSTR) -> ::windows_core::Result<()> { @@ -2524,16 +2348,6 @@ impl IShowMessageAction { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IShowMessageAction, ::windows_core::IUnknown, super::Com::IDispatch, IAction); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IShowMessageAction { - type Vtable = IShowMessageAction_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IShowMessageAction { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x505e9e68_af89_46b8_a30f_56162a83d537); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IShowMessageAction_Vtbl { @@ -2543,9 +2357,8 @@ pub struct IShowMessageAction_Vtbl { pub MessageBody: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pmessagebody: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SetMessageBody: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, messagebody: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITask(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITask, ITask_Vtbl, 0x148bd524_a2ab_11ce_b11f_00aa00530503); +::windows_core::imp::interface_hierarchy!(ITask, ::windows_core::IUnknown, IScheduledWorkItem); impl ITask { pub unsafe fn CreateTrigger(&self, pinewtrigger: *mut u16, pptrigger: *mut ::core::option::Option) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.CreateTrigger)(::windows_core::Interface::as_raw(self), pinewtrigger, ::core::mem::transmute(pptrigger)).ok() @@ -2711,13 +2524,6 @@ impl ITask { (::windows_core::Interface::vtable(self).GetMaxRunTime)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITask, ::windows_core::IUnknown, IScheduledWorkItem); -unsafe impl ::windows_core::Interface for ITask { - type Vtable = ITask_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITask { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x148bd524_a2ab_11ce_b11f_00aa00530503); -} #[repr(C)] #[doc(hidden)] pub struct ITask_Vtbl { @@ -2735,11 +2541,15 @@ pub struct ITask_Vtbl { pub SetMaxRunTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwmaxruntimems: u32) -> ::windows_core::HRESULT, pub GetMaxRunTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwmaxruntimems: *mut u32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITaskDefinition(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITaskDefinition, + ITaskDefinition_Vtbl, + 0xf5bc8fc5_536d_4f77_b852_fbc1356fdeb6 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITaskDefinition, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITaskDefinition { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2832,16 +2642,6 @@ impl ITaskDefinition { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITaskDefinition, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITaskDefinition { - type Vtable = ITaskDefinition_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITaskDefinition { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf5bc8fc5_536d_4f77_b852_fbc1356fdeb6); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITaskDefinition_Vtbl { @@ -2891,11 +2691,15 @@ pub struct ITaskDefinition_Vtbl { pub XmlText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pxml: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SetXmlText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, xml: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITaskFolder(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITaskFolder, + ITaskFolder_Vtbl, + 0x8cfac062_a080_4c15_9a88_aa7c2af80dfc +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITaskFolder, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITaskFolder { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -2989,16 +2793,6 @@ impl ITaskFolder { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITaskFolder, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITaskFolder { - type Vtable = ITaskFolder_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITaskFolder { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8cfac062_a080_4c15_9a88_aa7c2af80dfc); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITaskFolder_Vtbl { @@ -3038,11 +2832,15 @@ pub struct ITaskFolder_Vtbl { pub GetSecurityDescriptor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, securityinformation: i32, psddl: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SetSecurityDescriptor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sddl: ::std::mem::MaybeUninit<::windows_core::BSTR>, flags: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITaskFolderCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITaskFolderCollection, + ITaskFolderCollection_Vtbl, + 0x79184a66_8664_423f_97f1_637356a5d812 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITaskFolderCollection, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITaskFolderCollection { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -3061,16 +2859,6 @@ impl ITaskFolderCollection { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITaskFolderCollection, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITaskFolderCollection { - type Vtable = ITaskFolderCollection_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITaskFolderCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x79184a66_8664_423f_97f1_637356a5d812); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITaskFolderCollection_Vtbl { @@ -3082,9 +2870,8 @@ pub struct ITaskFolderCollection_Vtbl { get_Item: usize, pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITaskHandler(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITaskHandler, ITaskHandler_Vtbl, 0x839d7762_5121_4009_9234_4f0d19394f04); +::windows_core::imp::interface_hierarchy!(ITaskHandler, ::windows_core::IUnknown); impl ITaskHandler { pub unsafe fn Start(&self, phandlerservices: P0, data: P1) -> ::windows_core::Result<()> where @@ -3104,13 +2891,6 @@ impl ITaskHandler { (::windows_core::Interface::vtable(self).Resume)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ITaskHandler, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITaskHandler { - type Vtable = ITaskHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITaskHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x839d7762_5121_4009_9234_4f0d19394f04); -} #[repr(C)] #[doc(hidden)] pub struct ITaskHandler_Vtbl { @@ -3120,9 +2900,8 @@ pub struct ITaskHandler_Vtbl { pub Pause: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Resume: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITaskHandlerStatus(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITaskHandlerStatus, ITaskHandlerStatus_Vtbl, 0xeaec7a8f_27a0_4ddc_8675_14726a01a38a); +::windows_core::imp::interface_hierarchy!(ITaskHandlerStatus, ::windows_core::IUnknown); impl ITaskHandlerStatus { pub unsafe fn UpdateStatus(&self, percentcomplete: i16, statusmessage: P0) -> ::windows_core::Result<()> where @@ -3134,13 +2913,6 @@ impl ITaskHandlerStatus { (::windows_core::Interface::vtable(self).TaskCompleted)(::windows_core::Interface::as_raw(self), taskerrcode).ok() } } -::windows_core::imp::interface_hierarchy!(ITaskHandlerStatus, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITaskHandlerStatus { - type Vtable = ITaskHandlerStatus_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITaskHandlerStatus { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeaec7a8f_27a0_4ddc_8675_14726a01a38a); -} #[repr(C)] #[doc(hidden)] pub struct ITaskHandlerStatus_Vtbl { @@ -3148,11 +2920,15 @@ pub struct ITaskHandlerStatus_Vtbl { pub UpdateStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, percentcomplete: i16, statusmessage: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub TaskCompleted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, taskerrcode: ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITaskNamedValueCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITaskNamedValueCollection, + ITaskNamedValueCollection_Vtbl, + 0xb4ef826b_63c3_46e4_a504_ef69e4f7ea4d +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITaskNamedValueCollection, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITaskNamedValueCollection { pub unsafe fn Count(&self, pcount: *mut i32) -> ::windows_core::Result<()> { @@ -3186,16 +2962,6 @@ impl ITaskNamedValueCollection { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITaskNamedValueCollection, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITaskNamedValueCollection { - type Vtable = ITaskNamedValueCollection_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITaskNamedValueCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb4ef826b_63c3_46e4_a504_ef69e4f7ea4d); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITaskNamedValueCollection_Vtbl { @@ -3213,11 +2979,15 @@ pub struct ITaskNamedValueCollection_Vtbl { pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32) -> ::windows_core::HRESULT, pub Clear: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITaskNamedValuePair(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITaskNamedValuePair, + ITaskNamedValuePair_Vtbl, + 0x39038068_2b46_4afd_8662_7bb6f868d221 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITaskNamedValuePair, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITaskNamedValuePair { pub unsafe fn Name(&self, pname: *mut ::windows_core::BSTR) -> ::windows_core::Result<()> { @@ -3240,16 +3010,6 @@ impl ITaskNamedValuePair { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITaskNamedValuePair, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITaskNamedValuePair { - type Vtable = ITaskNamedValuePair_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITaskNamedValuePair { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x39038068_2b46_4afd_8662_7bb6f868d221); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITaskNamedValuePair_Vtbl { @@ -3259,9 +3019,8 @@ pub struct ITaskNamedValuePair_Vtbl { pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITaskScheduler(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITaskScheduler, ITaskScheduler_Vtbl, 0x148bd527_a2ab_11ce_b11f_00aa00530503); +::windows_core::imp::interface_hierarchy!(ITaskScheduler, ::windows_core::IUnknown); impl ITaskScheduler { pub unsafe fn SetTargetComputer(&self, pwszcomputer: P0) -> ::windows_core::Result<()> where @@ -3311,13 +3070,6 @@ impl ITaskScheduler { (::windows_core::Interface::vtable(self).IsOfType)(::windows_core::Interface::as_raw(self), pwszname.into_param().abi(), riid).ok() } } -::windows_core::imp::interface_hierarchy!(ITaskScheduler, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITaskScheduler { - type Vtable = ITaskScheduler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITaskScheduler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x148bd527_a2ab_11ce_b11f_00aa00530503); -} #[repr(C)] #[doc(hidden)] pub struct ITaskScheduler_Vtbl { @@ -3331,11 +3083,15 @@ pub struct ITaskScheduler_Vtbl { pub AddWorkItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwsztaskname: ::windows_core::PCWSTR, pworkitem: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub IsOfType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwszname: ::windows_core::PCWSTR, riid: *const ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITaskService(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITaskService, + ITaskService_Vtbl, + 0x2faba4c7_4da9_4013_9697_20cc3fd40f85 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITaskService, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITaskService { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3386,16 +3142,6 @@ impl ITaskService { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITaskService, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITaskService { - type Vtable = ITaskService_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITaskService { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2faba4c7_4da9_4013_9697_20cc3fd40f85); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITaskService_Vtbl { @@ -3422,11 +3168,15 @@ pub struct ITaskService_Vtbl { pub ConnectedDomain: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdomain: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub HighestVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pversion: *mut u32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITaskSettings(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITaskSettings, + ITaskSettings_Vtbl, + 0x8fd4711d_2d02_4c8c_87e3_eff699de127e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITaskSettings, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITaskSettings { pub unsafe fn AllowDemandStart(&self, pallowdemandstart: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::Result<()> { @@ -3609,16 +3359,6 @@ impl ITaskSettings { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITaskSettings, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITaskSettings { - type Vtable = ITaskSettings_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITaskSettings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8fd4711d_2d02_4c8c_87e3_eff699de127e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITaskSettings_Vtbl { @@ -3676,11 +3416,15 @@ pub struct ITaskSettings_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] SetNetworkSettings: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITaskSettings2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITaskSettings2, + ITaskSettings2_Vtbl, + 0x2c05c3f0_6eed_4c05_a15f_ed7d7a98a369 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITaskSettings2, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITaskSettings2 { pub unsafe fn DisallowStartOnRemoteAppSession(&self, pdisallowstart: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::Result<()> { @@ -3703,16 +3447,6 @@ impl ITaskSettings2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITaskSettings2, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITaskSettings2 { - type Vtable = ITaskSettings2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITaskSettings2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2c05c3f0_6eed_4c05_a15f_ed7d7a98a369); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITaskSettings2_Vtbl { @@ -3722,11 +3456,15 @@ pub struct ITaskSettings2_Vtbl { pub UseUnifiedSchedulingEngine: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, puseunifiedengine: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub SetUseUnifiedSchedulingEngine: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, useunifiedengine: super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITaskSettings3(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITaskSettings3, + ITaskSettings3_Vtbl, + 0x0ad9d0d7_0c7f_4ebb_9a5f_d1c648dca528 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITaskSettings3, ::windows_core::IUnknown, super::Com::IDispatch, ITaskSettings); #[cfg(feature = "Win32_System_Com")] impl ITaskSettings3 { pub unsafe fn AllowDemandStart(&self, pallowdemandstart: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::Result<()> { @@ -3956,16 +3694,6 @@ impl ITaskSettings3 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITaskSettings3, ::windows_core::IUnknown, super::Com::IDispatch, ITaskSettings); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITaskSettings3 { - type Vtable = ITaskSettings3_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITaskSettings3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0ad9d0d7_0c7f_4ebb_9a5f_d1c648dca528); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITaskSettings3_Vtbl { @@ -3989,9 +3717,8 @@ pub struct ITaskSettings3_Vtbl { pub Volatile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvolatile: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub SetVolatile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, volatile: super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITaskTrigger(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITaskTrigger, ITaskTrigger_Vtbl, 0x148bd52b_a2ab_11ce_b11f_00aa00530503); +::windows_core::imp::interface_hierarchy!(ITaskTrigger, ::windows_core::IUnknown); impl ITaskTrigger { pub unsafe fn SetTrigger(&self, ptrigger: *const TASK_TRIGGER) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetTrigger)(::windows_core::Interface::as_raw(self), ptrigger).ok() @@ -4004,13 +3731,6 @@ impl ITaskTrigger { (::windows_core::Interface::vtable(self).GetTriggerString)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITaskTrigger, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITaskTrigger { - type Vtable = ITaskTrigger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITaskTrigger { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x148bd52b_a2ab_11ce_b11f_00aa00530503); -} #[repr(C)] #[doc(hidden)] pub struct ITaskTrigger_Vtbl { @@ -4019,9 +3739,8 @@ pub struct ITaskTrigger_Vtbl { pub GetTrigger: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptrigger: *mut TASK_TRIGGER) -> ::windows_core::HRESULT, pub GetTriggerString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppwsztrigger: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITaskVariables(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITaskVariables, ITaskVariables_Vtbl, 0x3e4c9351_d966_4b8b_bb87_ceba68bb0107); +::windows_core::imp::interface_hierarchy!(ITaskVariables, ::windows_core::IUnknown); impl ITaskVariables { pub unsafe fn GetInput(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -4038,13 +3757,6 @@ impl ITaskVariables { (::windows_core::Interface::vtable(self).GetContext)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITaskVariables, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITaskVariables { - type Vtable = ITaskVariables_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITaskVariables { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3e4c9351_d966_4b8b_bb87_ceba68bb0107); -} #[repr(C)] #[doc(hidden)] pub struct ITaskVariables_Vtbl { @@ -4053,11 +3765,15 @@ pub struct ITaskVariables_Vtbl { pub SetOutput: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub GetContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcontext: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITimeTrigger(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITimeTrigger, + ITimeTrigger_Vtbl, + 0xb45747e0_eba7_4276_9f29_85c5bb300006 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITimeTrigger, ::windows_core::IUnknown, super::Com::IDispatch, ITrigger); #[cfg(feature = "Win32_System_Com")] impl ITimeTrigger { pub unsafe fn Type(&self, ptype: *mut TASK_TRIGGER_TYPE2) -> ::windows_core::Result<()> { @@ -4133,16 +3849,6 @@ impl ITimeTrigger { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITimeTrigger, ::windows_core::IUnknown, super::Com::IDispatch, ITrigger); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITimeTrigger { - type Vtable = ITimeTrigger_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITimeTrigger { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb45747e0_eba7_4276_9f29_85c5bb300006); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITimeTrigger_Vtbl { @@ -4150,11 +3856,15 @@ pub struct ITimeTrigger_Vtbl { pub RandomDelay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prandomdelay: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SetRandomDelay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, randomdelay: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITrigger(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITrigger, + ITrigger_Vtbl, + 0x09941815_ea89_4b5b_89e0_2a773801fac3 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITrigger, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITrigger { pub unsafe fn Type(&self, ptype: *mut TASK_TRIGGER_TYPE2) -> ::windows_core::Result<()> { @@ -4221,16 +3931,6 @@ impl ITrigger { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITrigger, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITrigger { - type Vtable = ITrigger_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITrigger { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x09941815_ea89_4b5b_89e0_2a773801fac3); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITrigger_Vtbl { @@ -4255,11 +3955,15 @@ pub struct ITrigger_Vtbl { pub Enabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, penabled: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub SetEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enabled: super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITriggerCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITriggerCollection, + ITriggerCollection_Vtbl, + 0x85df5081_1b24_4f32_878a_d9d14df4cb77 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITriggerCollection, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITriggerCollection { pub unsafe fn Count(&self, pcount: *mut i32) -> ::windows_core::Result<()> { @@ -4291,16 +3995,6 @@ impl ITriggerCollection { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITriggerCollection, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITriggerCollection { - type Vtable = ITriggerCollection_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITriggerCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x85df5081_1b24_4f32_878a_d9d14df4cb77); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITriggerCollection_Vtbl { @@ -4321,11 +4015,15 @@ pub struct ITriggerCollection_Vtbl { Remove: usize, pub Clear: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWeeklyTrigger(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWeeklyTrigger, + IWeeklyTrigger_Vtbl, + 0x5038fc98_82ff_436d_8728_a512a57c9dc1 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWeeklyTrigger, ::windows_core::IUnknown, super::Com::IDispatch, ITrigger); #[cfg(feature = "Win32_System_Com")] impl IWeeklyTrigger { pub unsafe fn Type(&self, ptype: *mut TASK_TRIGGER_TYPE2) -> ::windows_core::Result<()> { @@ -4413,16 +4111,6 @@ impl IWeeklyTrigger { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWeeklyTrigger, ::windows_core::IUnknown, super::Com::IDispatch, ITrigger); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWeeklyTrigger { - type Vtable = IWeeklyTrigger_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWeeklyTrigger { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5038fc98_82ff_436d_8728_a512a57c9dc1); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWeeklyTrigger_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/System/Threading/impl.rs b/crates/libs/windows/src/Windows/Win32/System/Threading/impl.rs index b087259f91..82ba6f5a48 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Threading/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Threading/impl.rs @@ -22,7 +22,7 @@ impl IRtwqAsyncCallback_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRtwqAsyncResult_Impl: Sized { @@ -82,7 +82,7 @@ impl IRtwqAsyncResult_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRtwqPlatformEvents_Impl: Sized { @@ -116,7 +116,7 @@ impl IRtwqPlatformEvents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait RTWQASYNCRESULT_Impl: Sized + IRtwqAsyncResult_Impl {} @@ -126,6 +126,6 @@ impl RTWQASYNCRESULT_Vtbl { Self { base__: IRtwqAsyncResult_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } 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 de77d6921c..b826eee84e 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Threading/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Threading/mod.rs @@ -2496,9 +2496,8 @@ where ::windows_targets::link!("kernel32.dll" "system" fn Wow64SuspendThread(hthread : super::super::Foundation:: HANDLE) -> u32); Wow64SuspendThread(hthread.into_param().abi()) } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRtwqAsyncCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRtwqAsyncCallback, IRtwqAsyncCallback_Vtbl, 0xa27003cf_2354_4f2a_8d6a_ab7cff15437e); +::windows_core::imp::interface_hierarchy!(IRtwqAsyncCallback, ::windows_core::IUnknown); impl IRtwqAsyncCallback { pub unsafe fn GetParameters(&self, pdwflags: *mut u32, pdwqueue: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetParameters)(::windows_core::Interface::as_raw(self), pdwflags, pdwqueue).ok() @@ -2510,13 +2509,6 @@ impl IRtwqAsyncCallback { (::windows_core::Interface::vtable(self).Invoke)(::windows_core::Interface::as_raw(self), pasyncresult.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IRtwqAsyncCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRtwqAsyncCallback { - type Vtable = IRtwqAsyncCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRtwqAsyncCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa27003cf_2354_4f2a_8d6a_ab7cff15437e); -} #[repr(C)] #[doc(hidden)] pub struct IRtwqAsyncCallback_Vtbl { @@ -2524,9 +2516,8 @@ pub struct IRtwqAsyncCallback_Vtbl { pub GetParameters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwflags: *mut u32, pdwqueue: *mut u32) -> ::windows_core::HRESULT, pub Invoke: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pasyncresult: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRtwqAsyncResult(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRtwqAsyncResult, IRtwqAsyncResult_Vtbl, 0xac6b7889_0740_4d51_8619_905994a55cc6); +::windows_core::imp::interface_hierarchy!(IRtwqAsyncResult, ::windows_core::IUnknown); impl IRtwqAsyncResult { pub unsafe fn GetState(&self) -> ::windows_core::Result<::windows_core::IUnknown> { let mut result__ = ::std::mem::zeroed(); @@ -2546,13 +2537,6 @@ impl IRtwqAsyncResult { (::windows_core::Interface::vtable(self).GetStateNoAddRef)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(IRtwqAsyncResult, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRtwqAsyncResult { - type Vtable = IRtwqAsyncResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRtwqAsyncResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xac6b7889_0740_4d51_8619_905994a55cc6); -} #[repr(C)] #[doc(hidden)] pub struct IRtwqAsyncResult_Vtbl { @@ -2563,9 +2547,8 @@ pub struct IRtwqAsyncResult_Vtbl { pub GetObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppobject: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetStateNoAddRef: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::core::option::Option<::windows_core::IUnknown>, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRtwqPlatformEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRtwqPlatformEvents, IRtwqPlatformEvents_Vtbl, 0x63d9255a_7ff1_4b61_8faf_ed6460dacf2b); +::windows_core::imp::interface_hierarchy!(IRtwqPlatformEvents, ::windows_core::IUnknown); impl IRtwqPlatformEvents { pub unsafe fn InitializationComplete(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).InitializationComplete)(::windows_core::Interface::as_raw(self)).ok() @@ -2577,13 +2560,6 @@ impl IRtwqPlatformEvents { (::windows_core::Interface::vtable(self).ShutdownComplete)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IRtwqPlatformEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRtwqPlatformEvents { - type Vtable = IRtwqPlatformEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRtwqPlatformEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x63d9255a_7ff1_4b61_8faf_ed6460dacf2b); -} #[repr(C)] #[doc(hidden)] pub struct IRtwqPlatformEvents_Vtbl { @@ -2592,9 +2568,8 @@ pub struct IRtwqPlatformEvents_Vtbl { pub ShutdownStart: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ShutdownComplete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct RTWQASYNCRESULT(::windows_core::IUnknown); +::windows_core::imp::com_interface!(RTWQASYNCRESULT, RTWQASYNCRESULT_Vtbl, 0); +::windows_core::imp::interface_hierarchy!(RTWQASYNCRESULT, ::windows_core::IUnknown, IRtwqAsyncResult); impl RTWQASYNCRESULT { pub unsafe fn GetState(&self) -> ::windows_core::Result<::windows_core::IUnknown> { let mut result__ = ::std::mem::zeroed(); @@ -2614,13 +2589,6 @@ impl RTWQASYNCRESULT { (::windows_core::Interface::vtable(self).base__.GetStateNoAddRef)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(RTWQASYNCRESULT, ::windows_core::IUnknown, IRtwqAsyncResult); -unsafe impl ::windows_core::Interface for RTWQASYNCRESULT { - type Vtable = RTWQASYNCRESULT_Vtbl; -} -unsafe impl ::windows_core::ComInterface for RTWQASYNCRESULT { - const IID: ::windows_core::GUID = ::windows_core::GUID::zeroed(); -} #[repr(C)] #[doc(hidden)] pub struct RTWQASYNCRESULT_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/System/TransactionServer/impl.rs b/crates/libs/windows/src/Windows/Win32/System/TransactionServer/impl.rs index 96868e1a46..333f2b9010 100644 --- a/crates/libs/windows/src/Windows/Win32/System/TransactionServer/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/TransactionServer/impl.rs @@ -52,7 +52,7 @@ impl ICatalog_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -97,7 +97,7 @@ impl IComponentUtil_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -135,7 +135,7 @@ impl IPackageUtil_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -166,7 +166,7 @@ impl IRemoteComponentUtil_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -197,6 +197,6 @@ impl IRoleAssociationUtil_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } 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 33684b2490..a19bfa0579 100644 --- a/crates/libs/windows/src/Windows/Win32/System/TransactionServer/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/TransactionServer/mod.rs @@ -1,8 +1,12 @@ -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICatalog(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICatalog, + ICatalog_Vtbl, + 0x6eb22870_8a19_11d0_81b6_00a0c9231c29 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICatalog, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ICatalog { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -31,16 +35,6 @@ impl ICatalog { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICatalog, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICatalog { - type Vtable = ICatalog_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICatalog { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6eb22870_8a19_11d0_81b6_00a0c9231c29); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICatalog_Vtbl { @@ -56,11 +50,15 @@ pub struct ICatalog_Vtbl { pub MajorVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows_core::HRESULT, pub MinorVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IComponentUtil(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IComponentUtil, + IComponentUtil_Vtbl, + 0x6eb22873_8a19_11d0_81b6_00a0c9231c29 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IComponentUtil, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IComponentUtil { pub unsafe fn InstallComponent(&self, bstrdllfile: P0, bstrtypelibfile: P1, bstrproxystubdllfile: P2) -> ::windows_core::Result<()> @@ -94,16 +92,6 @@ impl IComponentUtil { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IComponentUtil, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IComponentUtil { - type Vtable = IComponentUtil_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IComponentUtil { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6eb22873_8a19_11d0_81b6_00a0c9231c29); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IComponentUtil_Vtbl { @@ -116,11 +104,15 @@ pub struct IComponentUtil_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetCLSIDs: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPackageUtil(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IPackageUtil, + IPackageUtil_Vtbl, + 0x6eb22874_8a19_11d0_81b6_00a0c9231c29 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IPackageUtil, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IPackageUtil { pub unsafe fn InstallPackage(&self, bstrpackagefile: P0, bstrinstallpath: P1, loptions: i32) -> ::windows_core::Result<()> @@ -145,16 +137,6 @@ impl IPackageUtil { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IPackageUtil, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IPackageUtil { - type Vtable = IPackageUtil_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IPackageUtil { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6eb22874_8a19_11d0_81b6_00a0c9231c29); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IPackageUtil_Vtbl { @@ -163,11 +145,15 @@ pub struct IPackageUtil_Vtbl { pub ExportPackage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpackageid: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstrpackagefile: ::std::mem::MaybeUninit<::windows_core::BSTR>, loptions: i32) -> ::windows_core::HRESULT, pub ShutdownPackage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpackageid: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteComponentUtil(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IRemoteComponentUtil, + IRemoteComponentUtil_Vtbl, + 0x6eb22875_8a19_11d0_81b6_00a0c9231c29 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IRemoteComponentUtil, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IRemoteComponentUtil { pub unsafe fn InstallRemoteComponent(&self, bstrserver: P0, bstrpackageid: P1, bstrclsid: P2) -> ::windows_core::Result<()> @@ -188,16 +174,6 @@ impl IRemoteComponentUtil { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IRemoteComponentUtil, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IRemoteComponentUtil { - type Vtable = IRemoteComponentUtil_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IRemoteComponentUtil { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6eb22875_8a19_11d0_81b6_00a0c9231c29); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IRemoteComponentUtil_Vtbl { @@ -205,11 +181,15 @@ pub struct IRemoteComponentUtil_Vtbl { pub InstallRemoteComponent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrserver: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstrpackageid: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstrclsid: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub InstallRemoteComponentByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrserver: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstrpackagename: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstrprogid: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRoleAssociationUtil(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IRoleAssociationUtil, + IRoleAssociationUtil_Vtbl, + 0x6eb22876_8a19_11d0_81b6_00a0c9231c29 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IRoleAssociationUtil, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IRoleAssociationUtil { pub unsafe fn AssociateRole(&self, bstrroleid: P0) -> ::windows_core::Result<()> @@ -226,16 +206,6 @@ impl IRoleAssociationUtil { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IRoleAssociationUtil, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IRoleAssociationUtil { - type Vtable = IRoleAssociationUtil_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IRoleAssociationUtil { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6eb22876_8a19_11d0_81b6_00a0c9231c29); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IRoleAssociationUtil_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/System/UpdateAgent/impl.rs b/crates/libs/windows/src/Windows/Win32/System/UpdateAgent/impl.rs index 283c871b5e..83c35e357c 100644 --- a/crates/libs/windows/src/Windows/Win32/System/UpdateAgent/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/UpdateAgent/impl.rs @@ -73,7 +73,7 @@ impl IAutomaticUpdates_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -100,7 +100,7 @@ impl IAutomaticUpdates2_Vtbl { Self { base__: IAutomaticUpdates_Vtbl::new::(), Results: Results:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -143,7 +143,7 @@ impl IAutomaticUpdatesResults_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -260,7 +260,7 @@ impl IAutomaticUpdatesSettings_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -310,7 +310,7 @@ impl IAutomaticUpdatesSettings2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -367,7 +367,7 @@ impl IAutomaticUpdatesSettings3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -501,7 +501,7 @@ impl ICategory_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -557,7 +557,7 @@ impl ICategoryCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -578,7 +578,7 @@ impl IDownloadCompletedCallback_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Invoke: Invoke:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -592,7 +592,7 @@ impl IDownloadCompletedCallbackArgs_Vtbl { Self { base__: super::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -675,7 +675,7 @@ impl IDownloadJob_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -809,7 +809,7 @@ impl IDownloadProgress_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -830,7 +830,7 @@ impl IDownloadProgressChangedCallback_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Invoke: Invoke:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -857,7 +857,7 @@ impl IDownloadProgressChangedCallbackArgs_Vtbl { Self { base__: super::Com::IDispatch_Vtbl::new::(), Progress: Progress:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -913,7 +913,7 @@ impl IDownloadResult_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -982,7 +982,7 @@ impl IImageInformation_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1006,7 +1006,7 @@ impl IInstallationAgent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1075,7 +1075,7 @@ impl IInstallationBehavior_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1096,7 +1096,7 @@ impl IInstallationCompletedCallback_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Invoke: Invoke:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1110,7 +1110,7 @@ impl IInstallationCompletedCallbackArgs_Vtbl { Self { base__: super::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1193,7 +1193,7 @@ impl IInstallationJob_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1262,7 +1262,7 @@ impl IInstallationProgress_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1283,7 +1283,7 @@ impl IInstallationProgressChangedCallback_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Invoke: Invoke:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1310,7 +1310,7 @@ impl IInstallationProgressChangedCallbackArgs_Vtbl { Self { base__: super::Com::IDispatch_Vtbl::new::(), Progress: Progress:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1379,7 +1379,7 @@ impl IInstallationResult_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1406,7 +1406,7 @@ impl IInvalidProductLicenseException_Vtbl { Self { base__: IUpdateException_Vtbl::new::(), Product: Product:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1427,7 +1427,7 @@ impl ISearchCompletedCallback_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Invoke: Invoke:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1441,7 +1441,7 @@ impl ISearchCompletedCallbackArgs_Vtbl { Self { base__: super::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1498,7 +1498,7 @@ impl ISearchJob_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1567,7 +1567,7 @@ impl ISearchResult_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1690,7 +1690,7 @@ impl IStringCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1733,7 +1733,7 @@ impl ISystemInformation_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2317,7 +2317,7 @@ impl IUpdate_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2380,7 +2380,7 @@ impl IUpdate2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2407,7 +2407,7 @@ impl IUpdate3_Vtbl { Self { base__: IUpdate2_Vtbl::new::(), BrowseOnly: BrowseOnly:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2434,7 +2434,7 @@ impl IUpdate4_Vtbl { Self { base__: IUpdate3_Vtbl::new::(), PerUser: PerUser:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2477,7 +2477,7 @@ impl IUpdate5_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2600,7 +2600,7 @@ impl IUpdateCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2627,7 +2627,7 @@ impl IUpdateDownloadContent_Vtbl { Self { base__: super::Com::IDispatch_Vtbl::new::(), DownloadUrl: DownloadUrl:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2657,7 +2657,7 @@ impl IUpdateDownloadContent2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2713,7 +2713,7 @@ impl IUpdateDownloadContentCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2756,7 +2756,7 @@ impl IUpdateDownloadResult_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2892,7 +2892,7 @@ impl IUpdateDownloader_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2948,7 +2948,7 @@ impl IUpdateException_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3004,7 +3004,7 @@ impl IUpdateExceptionCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3203,7 +3203,7 @@ impl IUpdateHistoryEntry_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3230,7 +3230,7 @@ impl IUpdateHistoryEntry2_Vtbl { Self { base__: IUpdateHistoryEntry_Vtbl::new::(), Categories: Categories:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3286,7 +3286,7 @@ impl IUpdateHistoryEntryCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3329,7 +3329,7 @@ impl IUpdateIdentity_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3385,7 +3385,7 @@ impl IUpdateInstallationResult_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3639,7 +3639,7 @@ impl IUpdateInstaller_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3676,7 +3676,7 @@ impl IUpdateInstaller2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3713,7 +3713,7 @@ impl IUpdateInstaller3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3734,7 +3734,7 @@ impl IUpdateInstaller4_Vtbl { Self { base__: IUpdateInstaller3_Vtbl::new::(), Commit: Commit:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IUpdateLockdown_Impl: Sized { @@ -3751,7 +3751,7 @@ impl IUpdateLockdown_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), LockDown: LockDown:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3966,7 +3966,7 @@ impl IUpdateSearcher_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4003,7 +4003,7 @@ impl IUpdateSearcher2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4040,7 +4040,7 @@ impl IUpdateSearcher3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4226,7 +4226,7 @@ impl IUpdateService_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4253,7 +4253,7 @@ impl IUpdateService2_Vtbl { Self { base__: IUpdateService_Vtbl::new::(), IsDefaultAUService: IsDefaultAUService:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4309,7 +4309,7 @@ impl IUpdateServiceCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4393,7 +4393,7 @@ impl IUpdateServiceManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4456,7 +4456,7 @@ impl IUpdateServiceManager2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4525,7 +4525,7 @@ impl IUpdateServiceRegistration_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4634,7 +4634,7 @@ impl IUpdateSession_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4671,7 +4671,7 @@ impl IUpdateSession2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4714,7 +4714,7 @@ impl IUpdateSession3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4865,7 +4865,7 @@ impl IWebProxy_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4986,7 +4986,7 @@ impl IWindowsDriverUpdate_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5049,7 +5049,7 @@ impl IWindowsDriverUpdate2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5076,7 +5076,7 @@ impl IWindowsDriverUpdate3_Vtbl { Self { base__: IWindowsDriverUpdate2_Vtbl::new::(), BrowseOnly: BrowseOnly:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5119,7 +5119,7 @@ impl IWindowsDriverUpdate4_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5162,7 +5162,7 @@ impl IWindowsDriverUpdate5_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5283,7 +5283,7 @@ impl IWindowsDriverUpdateEntry_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5339,7 +5339,7 @@ impl IWindowsDriverUpdateEntryCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5366,6 +5366,6 @@ impl IWindowsUpdateAgentInfo_Vtbl { Self { base__: super::Com::IDispatch_Vtbl::new::(), GetInfo: GetInfo:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } 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 bb8f803361..f86bd1fbaf 100644 --- a/crates/libs/windows/src/Windows/Win32/System/UpdateAgent/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/UpdateAgent/mod.rs @@ -1,8 +1,12 @@ -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAutomaticUpdates(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IAutomaticUpdates, + IAutomaticUpdates_Vtbl, + 0x673425bf_c082_4c7c_bdfd_569464b8e0ce +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IAutomaticUpdates, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IAutomaticUpdates { pub unsafe fn DetectNow(&self) -> ::windows_core::Result<()> { @@ -32,16 +36,6 @@ impl IAutomaticUpdates { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IAutomaticUpdates, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IAutomaticUpdates { - type Vtable = IAutomaticUpdates_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IAutomaticUpdates { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x673425bf_c082_4c7c_bdfd_569464b8e0ce); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IAutomaticUpdates_Vtbl { @@ -57,11 +51,15 @@ pub struct IAutomaticUpdates_Vtbl { pub ServiceEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub EnableService: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAutomaticUpdates2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IAutomaticUpdates2, + IAutomaticUpdates2_Vtbl, + 0x4a2f5c31_cfd9_410e_b7fb_29a653973a0f +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IAutomaticUpdates2, ::windows_core::IUnknown, super::Com::IDispatch, IAutomaticUpdates); #[cfg(feature = "Win32_System_Com")] impl IAutomaticUpdates2 { pub unsafe fn DetectNow(&self) -> ::windows_core::Result<()> { @@ -97,16 +95,6 @@ impl IAutomaticUpdates2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IAutomaticUpdates2, ::windows_core::IUnknown, super::Com::IDispatch, IAutomaticUpdates); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IAutomaticUpdates2 { - type Vtable = IAutomaticUpdates2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IAutomaticUpdates2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4a2f5c31_cfd9_410e_b7fb_29a653973a0f); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IAutomaticUpdates2_Vtbl { @@ -116,11 +104,15 @@ pub struct IAutomaticUpdates2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Results: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAutomaticUpdatesResults(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IAutomaticUpdatesResults, + IAutomaticUpdatesResults_Vtbl, + 0xe7a4d634_7942_4dd9_a111_82228ba33901 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IAutomaticUpdatesResults, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IAutomaticUpdatesResults { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -137,16 +129,6 @@ impl IAutomaticUpdatesResults { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IAutomaticUpdatesResults, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IAutomaticUpdatesResults { - type Vtable = IAutomaticUpdatesResults_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IAutomaticUpdatesResults { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe7a4d634_7942_4dd9_a111_82228ba33901); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IAutomaticUpdatesResults_Vtbl { @@ -160,11 +142,15 @@ pub struct IAutomaticUpdatesResults_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] LastInstallationSuccessDate: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAutomaticUpdatesSettings(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IAutomaticUpdatesSettings, + IAutomaticUpdatesSettings_Vtbl, + 0x2ee48f22_af3c_405f_8970_f71be12ee9a2 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IAutomaticUpdatesSettings, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IAutomaticUpdatesSettings { pub unsafe fn NotificationLevel(&self) -> ::windows_core::Result { @@ -204,16 +190,6 @@ impl IAutomaticUpdatesSettings { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IAutomaticUpdatesSettings, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IAutomaticUpdatesSettings { - type Vtable = IAutomaticUpdatesSettings_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IAutomaticUpdatesSettings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2ee48f22_af3c_405f_8970_f71be12ee9a2); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IAutomaticUpdatesSettings_Vtbl { @@ -229,11 +205,15 @@ pub struct IAutomaticUpdatesSettings_Vtbl { pub Refresh: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Save: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAutomaticUpdatesSettings2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IAutomaticUpdatesSettings2, + IAutomaticUpdatesSettings2_Vtbl, + 0x6abc136a_c3ca_4384_8171_cb2b1e59b8dc +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IAutomaticUpdatesSettings2, ::windows_core::IUnknown, super::Com::IDispatch, IAutomaticUpdatesSettings); #[cfg(feature = "Win32_System_Com")] impl IAutomaticUpdatesSettings2 { pub unsafe fn NotificationLevel(&self) -> ::windows_core::Result { @@ -287,16 +267,6 @@ impl IAutomaticUpdatesSettings2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IAutomaticUpdatesSettings2, ::windows_core::IUnknown, super::Com::IDispatch, IAutomaticUpdatesSettings); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IAutomaticUpdatesSettings2 { - type Vtable = IAutomaticUpdatesSettings2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IAutomaticUpdatesSettings2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6abc136a_c3ca_4384_8171_cb2b1e59b8dc); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IAutomaticUpdatesSettings2_Vtbl { @@ -305,11 +275,15 @@ pub struct IAutomaticUpdatesSettings2_Vtbl { pub SetIncludeRecommendedUpdates: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub CheckPermission: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, usertype: AutomaticUpdatesUserType, permissiontype: AutomaticUpdatesPermissionType, userhaspermission: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAutomaticUpdatesSettings3(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IAutomaticUpdatesSettings3, + IAutomaticUpdatesSettings3_Vtbl, + 0xb587f5c3_f57e_485f_bbf5_0d181c5cd0dc +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IAutomaticUpdatesSettings3, ::windows_core::IUnknown, super::Com::IDispatch, IAutomaticUpdatesSettings, IAutomaticUpdatesSettings2); #[cfg(feature = "Win32_System_Com")] impl IAutomaticUpdatesSettings3 { pub unsafe fn NotificationLevel(&self) -> ::windows_core::Result { @@ -383,16 +357,6 @@ impl IAutomaticUpdatesSettings3 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IAutomaticUpdatesSettings3, ::windows_core::IUnknown, super::Com::IDispatch, IAutomaticUpdatesSettings, IAutomaticUpdatesSettings2); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IAutomaticUpdatesSettings3 { - type Vtable = IAutomaticUpdatesSettings3_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IAutomaticUpdatesSettings3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb587f5c3_f57e_485f_bbf5_0d181c5cd0dc); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IAutomaticUpdatesSettings3_Vtbl { @@ -402,11 +366,15 @@ pub struct IAutomaticUpdatesSettings3_Vtbl { pub FeaturedUpdatesEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub SetFeaturedUpdatesEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICategory(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICategory, + ICategory_Vtbl, + 0x81ddc1b8_9d35_47a6_b471_5b80f519223b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICategory, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ICategory { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -455,16 +423,6 @@ impl ICategory { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICategory, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICategory { - type Vtable = ICategory_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICategory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x81ddc1b8_9d35_47a6_b471_5b80f519223b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICategory_Vtbl { @@ -491,11 +449,15 @@ pub struct ICategory_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Updates: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICategoryCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ICategoryCollection, + ICategoryCollection_Vtbl, + 0x3a56bfb8_576c_43f7_9335_fe4838fd7e37 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ICategoryCollection, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ICategoryCollection { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -514,16 +476,6 @@ impl ICategoryCollection { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ICategoryCollection, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ICategoryCollection { - type Vtable = ICategoryCollection_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ICategoryCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3a56bfb8_576c_43f7_9335_fe4838fd7e37); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ICategoryCollection_Vtbl { @@ -535,9 +487,8 @@ pub struct ICategoryCollection_Vtbl { pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDownloadCompletedCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDownloadCompletedCallback, IDownloadCompletedCallback_Vtbl, 0x77254866_9f5b_4c8e_b9e2_c77a8530d64b); +::windows_core::imp::interface_hierarchy!(IDownloadCompletedCallback, ::windows_core::IUnknown); impl IDownloadCompletedCallback { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -549,13 +500,6 @@ impl IDownloadCompletedCallback { (::windows_core::Interface::vtable(self).Invoke)(::windows_core::Interface::as_raw(self), downloadjob.into_param().abi(), callbackargs.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IDownloadCompletedCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDownloadCompletedCallback { - type Vtable = IDownloadCompletedCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDownloadCompletedCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x77254866_9f5b_4c8e_b9e2_c77a8530d64b); -} #[repr(C)] #[doc(hidden)] pub struct IDownloadCompletedCallback_Vtbl { @@ -565,34 +509,32 @@ pub struct IDownloadCompletedCallback_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Invoke: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDownloadCompletedCallbackArgs(::windows_core::IUnknown); -#[cfg(feature = "Win32_System_Com")] -impl IDownloadCompletedCallbackArgs {} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IDownloadCompletedCallbackArgs, + IDownloadCompletedCallbackArgs_Vtbl, + 0xfa565b23_498c_47a0_979d_e7d5b1813360 +); #[cfg(feature = "Win32_System_Com")] ::windows_core::imp::interface_hierarchy!(IDownloadCompletedCallbackArgs, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IDownloadCompletedCallbackArgs { - type Vtable = IDownloadCompletedCallbackArgs_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IDownloadCompletedCallbackArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfa565b23_498c_47a0_979d_e7d5b1813360); -} +impl IDownloadCompletedCallbackArgs {} #[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IDownloadCompletedCallbackArgs_Vtbl { pub base__: super::Com::IDispatch_Vtbl, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDownloadJob(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IDownloadJob, + IDownloadJob_Vtbl, + 0xc574de85_7358_43f6_aae8_8697e62d8ba7 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IDownloadJob, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IDownloadJob { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -625,16 +567,6 @@ impl IDownloadJob { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IDownloadJob, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IDownloadJob { - type Vtable = IDownloadJob_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IDownloadJob { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc574de85_7358_43f6_aae8_8697e62d8ba7); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IDownloadJob_Vtbl { @@ -655,11 +587,15 @@ pub struct IDownloadJob_Vtbl { GetProgress: usize, pub RequestAbort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDownloadProgress(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IDownloadProgress, + IDownloadProgress_Vtbl, + 0xd31a5bac_f719_4178_9dbb_5e2cb47fd18a +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IDownloadProgress, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IDownloadProgress { pub unsafe fn CurrentUpdateBytesDownloaded(&self) -> ::windows_core::Result { @@ -702,16 +638,6 @@ impl IDownloadProgress { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IDownloadProgress, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IDownloadProgress { - type Vtable = IDownloadProgress_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IDownloadProgress { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd31a5bac_f719_4178_9dbb_5e2cb47fd18a); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IDownloadProgress_Vtbl { @@ -729,9 +655,8 @@ pub struct IDownloadProgress_Vtbl { pub CurrentUpdateDownloadPhase: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut DownloadPhase) -> ::windows_core::HRESULT, pub CurrentUpdatePercentComplete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDownloadProgressChangedCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDownloadProgressChangedCallback, IDownloadProgressChangedCallback_Vtbl, 0x8c3f1cdd_6173_4591_aebd_a56a53ca77c1); +::windows_core::imp::interface_hierarchy!(IDownloadProgressChangedCallback, ::windows_core::IUnknown); impl IDownloadProgressChangedCallback { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -743,13 +668,6 @@ impl IDownloadProgressChangedCallback { (::windows_core::Interface::vtable(self).Invoke)(::windows_core::Interface::as_raw(self), downloadjob.into_param().abi(), callbackargs.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IDownloadProgressChangedCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDownloadProgressChangedCallback { - type Vtable = IDownloadProgressChangedCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDownloadProgressChangedCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8c3f1cdd_6173_4591_aebd_a56a53ca77c1); -} #[repr(C)] #[doc(hidden)] pub struct IDownloadProgressChangedCallback_Vtbl { @@ -759,11 +677,15 @@ pub struct IDownloadProgressChangedCallback_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Invoke: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDownloadProgressChangedCallbackArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IDownloadProgressChangedCallbackArgs, + IDownloadProgressChangedCallbackArgs_Vtbl, + 0x324ff2c6_4981_4b04_9412_57481745ab24 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IDownloadProgressChangedCallbackArgs, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IDownloadProgressChangedCallbackArgs { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -774,16 +696,6 @@ impl IDownloadProgressChangedCallbackArgs { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IDownloadProgressChangedCallbackArgs, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IDownloadProgressChangedCallbackArgs { - type Vtable = IDownloadProgressChangedCallbackArgs_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IDownloadProgressChangedCallbackArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x324ff2c6_4981_4b04_9412_57481745ab24); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IDownloadProgressChangedCallbackArgs_Vtbl { @@ -793,11 +705,15 @@ pub struct IDownloadProgressChangedCallbackArgs_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Progress: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDownloadResult(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IDownloadResult, + IDownloadResult_Vtbl, + 0xdaa4fdd0_4727_4dbe_a1e7_745dca317144 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IDownloadResult, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IDownloadResult { pub unsafe fn HResult(&self) -> ::windows_core::Result { @@ -816,16 +732,6 @@ impl IDownloadResult { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IDownloadResult, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IDownloadResult { - type Vtable = IDownloadResult_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IDownloadResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdaa4fdd0_4727_4dbe_a1e7_745dca317144); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IDownloadResult_Vtbl { @@ -837,11 +743,15 @@ pub struct IDownloadResult_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetUpdateResult: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IImageInformation(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IImageInformation, + IImageInformation_Vtbl, + 0x7c907864_346c_4aeb_8f3f_57da289f969f +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IImageInformation, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IImageInformation { pub unsafe fn AltText(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -862,16 +772,6 @@ impl IImageInformation { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IImageInformation, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IImageInformation { - type Vtable = IImageInformation_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IImageInformation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7c907864_346c_4aeb_8f3f_57da289f969f); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IImageInformation_Vtbl { @@ -881,11 +781,15 @@ pub struct IImageInformation_Vtbl { pub Source: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub Width: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInstallationAgent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IInstallationAgent, + IInstallationAgent_Vtbl, + 0x925cbc18_a2ea_4648_bf1c_ec8badcfe20a +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IInstallationAgent, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IInstallationAgent { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -899,16 +803,6 @@ impl IInstallationAgent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IInstallationAgent, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IInstallationAgent { - type Vtable = IInstallationAgent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IInstallationAgent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x925cbc18_a2ea_4648_bf1c_ec8badcfe20a); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IInstallationAgent_Vtbl { @@ -918,11 +812,15 @@ pub struct IInstallationAgent_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] RecordInstallationResult: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInstallationBehavior(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IInstallationBehavior, + IInstallationBehavior_Vtbl, + 0xd9a59339_e245_4dbd_9686_4d5763e39624 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IInstallationBehavior, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IInstallationBehavior { pub unsafe fn CanRequestUserInput(&self) -> ::windows_core::Result { @@ -943,16 +841,6 @@ impl IInstallationBehavior { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IInstallationBehavior, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IInstallationBehavior { - type Vtable = IInstallationBehavior_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IInstallationBehavior { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd9a59339_e245_4dbd_9686_4d5763e39624); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IInstallationBehavior_Vtbl { @@ -962,9 +850,8 @@ pub struct IInstallationBehavior_Vtbl { pub RebootBehavior: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut InstallationRebootBehavior) -> ::windows_core::HRESULT, pub RequiresNetworkConnectivity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInstallationCompletedCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IInstallationCompletedCallback, IInstallationCompletedCallback_Vtbl, 0x45f4f6f3_d602_4f98_9a8a_3efa152ad2d3); +::windows_core::imp::interface_hierarchy!(IInstallationCompletedCallback, ::windows_core::IUnknown); impl IInstallationCompletedCallback { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -976,13 +863,6 @@ impl IInstallationCompletedCallback { (::windows_core::Interface::vtable(self).Invoke)(::windows_core::Interface::as_raw(self), installationjob.into_param().abi(), callbackargs.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IInstallationCompletedCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInstallationCompletedCallback { - type Vtable = IInstallationCompletedCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInstallationCompletedCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x45f4f6f3_d602_4f98_9a8a_3efa152ad2d3); -} #[repr(C)] #[doc(hidden)] pub struct IInstallationCompletedCallback_Vtbl { @@ -992,34 +872,32 @@ pub struct IInstallationCompletedCallback_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Invoke: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInstallationCompletedCallbackArgs(::windows_core::IUnknown); -#[cfg(feature = "Win32_System_Com")] -impl IInstallationCompletedCallbackArgs {} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IInstallationCompletedCallbackArgs, + IInstallationCompletedCallbackArgs_Vtbl, + 0x250e2106_8efb_4705_9653_ef13c581b6a1 +); #[cfg(feature = "Win32_System_Com")] ::windows_core::imp::interface_hierarchy!(IInstallationCompletedCallbackArgs, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IInstallationCompletedCallbackArgs { - type Vtable = IInstallationCompletedCallbackArgs_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IInstallationCompletedCallbackArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x250e2106_8efb_4705_9653_ef13c581b6a1); -} +impl IInstallationCompletedCallbackArgs {} #[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IInstallationCompletedCallbackArgs_Vtbl { pub base__: super::Com::IDispatch_Vtbl, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInstallationJob(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IInstallationJob, + IInstallationJob_Vtbl, + 0x5c209f0b_bad5_432a_9556_4699bed2638a +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IInstallationJob, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IInstallationJob { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1052,16 +930,6 @@ impl IInstallationJob { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IInstallationJob, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IInstallationJob { - type Vtable = IInstallationJob_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IInstallationJob { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5c209f0b_bad5_432a_9556_4699bed2638a); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IInstallationJob_Vtbl { @@ -1082,11 +950,15 @@ pub struct IInstallationJob_Vtbl { GetProgress: usize, pub RequestAbort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInstallationProgress(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IInstallationProgress, + IInstallationProgress_Vtbl, + 0x345c8244_43a3_4e32_a368_65f073b76f36 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IInstallationProgress, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IInstallationProgress { pub unsafe fn CurrentUpdateIndex(&self) -> ::windows_core::Result { @@ -1109,16 +981,6 @@ impl IInstallationProgress { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IInstallationProgress, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IInstallationProgress { - type Vtable = IInstallationProgress_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IInstallationProgress { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x345c8244_43a3_4e32_a368_65f073b76f36); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IInstallationProgress_Vtbl { @@ -1131,9 +993,8 @@ pub struct IInstallationProgress_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetUpdateResult: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInstallationProgressChangedCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IInstallationProgressChangedCallback, IInstallationProgressChangedCallback_Vtbl, 0xe01402d5_f8da_43ba_a012_38894bd048f1); +::windows_core::imp::interface_hierarchy!(IInstallationProgressChangedCallback, ::windows_core::IUnknown); impl IInstallationProgressChangedCallback { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -1145,13 +1006,6 @@ impl IInstallationProgressChangedCallback { (::windows_core::Interface::vtable(self).Invoke)(::windows_core::Interface::as_raw(self), installationjob.into_param().abi(), callbackargs.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IInstallationProgressChangedCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInstallationProgressChangedCallback { - type Vtable = IInstallationProgressChangedCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInstallationProgressChangedCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe01402d5_f8da_43ba_a012_38894bd048f1); -} #[repr(C)] #[doc(hidden)] pub struct IInstallationProgressChangedCallback_Vtbl { @@ -1161,11 +1015,15 @@ pub struct IInstallationProgressChangedCallback_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Invoke: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInstallationProgressChangedCallbackArgs(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IInstallationProgressChangedCallbackArgs, + IInstallationProgressChangedCallbackArgs_Vtbl, + 0xe4f14e1e_689d_4218_a0b9_bc189c484a01 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IInstallationProgressChangedCallbackArgs, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IInstallationProgressChangedCallbackArgs { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1176,16 +1034,6 @@ impl IInstallationProgressChangedCallbackArgs { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IInstallationProgressChangedCallbackArgs, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IInstallationProgressChangedCallbackArgs { - type Vtable = IInstallationProgressChangedCallbackArgs_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IInstallationProgressChangedCallbackArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe4f14e1e_689d_4218_a0b9_bc189c484a01); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IInstallationProgressChangedCallbackArgs_Vtbl { @@ -1195,11 +1043,15 @@ pub struct IInstallationProgressChangedCallbackArgs_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Progress: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInstallationResult(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IInstallationResult, + IInstallationResult_Vtbl, + 0xa43c56d6_7451_48d4_af96_b6cd2d0d9b7a +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IInstallationResult, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IInstallationResult { pub unsafe fn HResult(&self) -> ::windows_core::Result { @@ -1222,16 +1074,6 @@ impl IInstallationResult { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IInstallationResult, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IInstallationResult { - type Vtable = IInstallationResult_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IInstallationResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa43c56d6_7451_48d4_af96_b6cd2d0d9b7a); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IInstallationResult_Vtbl { @@ -1244,11 +1086,15 @@ pub struct IInstallationResult_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetUpdateResult: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInvalidProductLicenseException(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IInvalidProductLicenseException, + IInvalidProductLicenseException_Vtbl, + 0xa37d00f5_7bb0_4953_b414_f9e98326f2e8 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IInvalidProductLicenseException, ::windows_core::IUnknown, super::Com::IDispatch, IUpdateException); #[cfg(feature = "Win32_System_Com")] impl IInvalidProductLicenseException { pub unsafe fn Message(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -1269,25 +1115,14 @@ impl IInvalidProductLicenseException { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IInvalidProductLicenseException, ::windows_core::IUnknown, super::Com::IDispatch, IUpdateException); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IInvalidProductLicenseException { - type Vtable = IInvalidProductLicenseException_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IInvalidProductLicenseException { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa37d00f5_7bb0_4953_b414_f9e98326f2e8); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IInvalidProductLicenseException_Vtbl { pub base__: IUpdateException_Vtbl, pub Product: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISearchCompletedCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISearchCompletedCallback, ISearchCompletedCallback_Vtbl, 0x88aee058_d4b0_4725_a2f1_814a67ae964c); +::windows_core::imp::interface_hierarchy!(ISearchCompletedCallback, ::windows_core::IUnknown); impl ISearchCompletedCallback { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -1299,13 +1134,6 @@ impl ISearchCompletedCallback { (::windows_core::Interface::vtable(self).Invoke)(::windows_core::Interface::as_raw(self), searchjob.into_param().abi(), callbackargs.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ISearchCompletedCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISearchCompletedCallback { - type Vtable = ISearchCompletedCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISearchCompletedCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x88aee058_d4b0_4725_a2f1_814a67ae964c); -} #[repr(C)] #[doc(hidden)] pub struct ISearchCompletedCallback_Vtbl { @@ -1315,34 +1143,32 @@ pub struct ISearchCompletedCallback_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Invoke: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] -#[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISearchCompletedCallbackArgs(::windows_core::IUnknown); #[cfg(feature = "Win32_System_Com")] -impl ISearchCompletedCallbackArgs {} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISearchCompletedCallbackArgs, + ISearchCompletedCallbackArgs_Vtbl, + 0xa700a634_2850_4c47_938a_9e4b6e5af9a6 +); #[cfg(feature = "Win32_System_Com")] ::windows_core::imp::interface_hierarchy!(ISearchCompletedCallbackArgs, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISearchCompletedCallbackArgs { - type Vtable = ISearchCompletedCallbackArgs_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISearchCompletedCallbackArgs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa700a634_2850_4c47_938a_9e4b6e5af9a6); -} +impl ISearchCompletedCallbackArgs {} #[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISearchCompletedCallbackArgs_Vtbl { pub base__: super::Com::IDispatch_Vtbl, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISearchJob(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISearchJob, + ISearchJob_Vtbl, + 0x7366ea16_7a1a_4ea2_b042_973d3e9cd99b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISearchJob, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISearchJob { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1363,16 +1189,6 @@ impl ISearchJob { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISearchJob, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISearchJob { - type Vtable = ISearchJob_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISearchJob { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7366ea16_7a1a_4ea2_b042_973d3e9cd99b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISearchJob_Vtbl { @@ -1385,11 +1201,15 @@ pub struct ISearchJob_Vtbl { pub CleanUp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RequestAbort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISearchResult(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISearchResult, + ISearchResult_Vtbl, + 0xd40cff62_e08c_4498_941a_01e25f0fd33c +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISearchResult, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISearchResult { pub unsafe fn ResultCode(&self) -> ::windows_core::Result { @@ -1416,16 +1236,6 @@ impl ISearchResult { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISearchResult, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISearchResult { - type Vtable = ISearchResult_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISearchResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd40cff62_e08c_4498_941a_01e25f0fd33c); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISearchResult_Vtbl { @@ -1444,11 +1254,15 @@ pub struct ISearchResult_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Warnings: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStringCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IStringCollection, + IStringCollection_Vtbl, + 0xeff90582_2ddc_480f_a06d_60f3fbc362c3 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IStringCollection, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IStringCollection { pub unsafe fn get_Item(&self, index: i32) -> ::windows_core::Result<::windows_core::BSTR> { @@ -1500,16 +1314,6 @@ impl IStringCollection { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IStringCollection, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IStringCollection { - type Vtable = IStringCollection_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IStringCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeff90582_2ddc_480f_a06d_60f3fbc362c3); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IStringCollection_Vtbl { @@ -1528,11 +1332,15 @@ pub struct IStringCollection_Vtbl { pub Insert: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32, value: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub RemoveAt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISystemInformation(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISystemInformation, + ISystemInformation_Vtbl, + 0xade87bf7_7b56_4275_8fab_b9b0e591844b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISystemInformation, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISystemInformation { pub unsafe fn OemHardwareSupportLink(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -1545,16 +1353,6 @@ impl ISystemInformation { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISystemInformation, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISystemInformation { - type Vtable = ISystemInformation_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISystemInformation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xade87bf7_7b56_4275_8fab_b9b0e591844b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISystemInformation_Vtbl { @@ -1562,11 +1360,15 @@ pub struct ISystemInformation_Vtbl { pub OemHardwareSupportLink: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub RebootRequired: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUpdate(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IUpdate, + IUpdate_Vtbl, + 0x6a92b07a_d821_4682_b423_5c805022cc4d +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IUpdate, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IUpdate { pub unsafe fn Title(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -1783,16 +1585,6 @@ impl IUpdate { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IUpdate, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IUpdate { - type Vtable = IUpdate_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IUpdate { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6a92b07a_d821_4682_b423_5c805022cc4d); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IUpdate_Vtbl { @@ -1885,11 +1677,15 @@ pub struct IUpdate_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] DownloadContents: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUpdate2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IUpdate2, + IUpdate2_Vtbl, + 0x144fe9b0_d23d_4a8b_8634_fb4457533b7a +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IUpdate2, ::windows_core::IUnknown, super::Com::IDispatch, IUpdate); #[cfg(feature = "Win32_System_Com")] impl IUpdate2 { pub unsafe fn Title(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -2128,16 +1924,6 @@ impl IUpdate2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IUpdate2, ::windows_core::IUnknown, super::Com::IDispatch, IUpdate); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IUpdate2 { - type Vtable = IUpdate2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IUpdate2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x144fe9b0_d23d_4a8b_8634_fb4457533b7a); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IUpdate2_Vtbl { @@ -2153,11 +1939,15 @@ pub struct IUpdate2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] CopyToCache: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUpdate3(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IUpdate3, + IUpdate3_Vtbl, + 0x112eda6b_95b3_476f_9d90_aee82c6b8181 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IUpdate3, ::windows_core::IUnknown, super::Com::IDispatch, IUpdate, IUpdate2); #[cfg(feature = "Win32_System_Com")] impl IUpdate3 { pub unsafe fn Title(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -2400,27 +2190,21 @@ impl IUpdate3 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IUpdate3, ::windows_core::IUnknown, super::Com::IDispatch, IUpdate, IUpdate2); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IUpdate3 { - type Vtable = IUpdate3_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IUpdate3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x112eda6b_95b3_476f_9d90_aee82c6b8181); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IUpdate3_Vtbl { pub base__: IUpdate2_Vtbl, pub BrowseOnly: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUpdate4(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IUpdate4, + IUpdate4_Vtbl, + 0x27e94b0d_5139_49a2_9a61_93522dc54652 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IUpdate4, ::windows_core::IUnknown, super::Com::IDispatch, IUpdate, IUpdate2, IUpdate3); #[cfg(feature = "Win32_System_Com")] impl IUpdate4 { pub unsafe fn Title(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -2667,27 +2451,21 @@ impl IUpdate4 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IUpdate4, ::windows_core::IUnknown, super::Com::IDispatch, IUpdate, IUpdate2, IUpdate3); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IUpdate4 { - type Vtable = IUpdate4_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IUpdate4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x27e94b0d_5139_49a2_9a61_93522dc54652); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IUpdate4_Vtbl { pub base__: IUpdate3_Vtbl, pub PerUser: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUpdate5(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IUpdate5, + IUpdate5_Vtbl, + 0xc1c2f21a_d2f4_4902_b5c6_8a081c19a890 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IUpdate5, ::windows_core::IUnknown, super::Com::IDispatch, IUpdate, IUpdate2, IUpdate3, IUpdate4); #[cfg(feature = "Win32_System_Com")] impl IUpdate5 { pub unsafe fn Title(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -2942,16 +2720,6 @@ impl IUpdate5 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IUpdate5, ::windows_core::IUnknown, super::Com::IDispatch, IUpdate, IUpdate2, IUpdate3, IUpdate4); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IUpdate5 { - type Vtable = IUpdate5_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IUpdate5 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc1c2f21a_d2f4_4902_b5c6_8a081c19a890); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IUpdate5_Vtbl { @@ -2959,11 +2727,15 @@ pub struct IUpdate5_Vtbl { pub AutoSelection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut AutoSelectionMode) -> ::windows_core::HRESULT, pub AutoDownload: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut AutoDownloadMode) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUpdateCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IUpdateCollection, + IUpdateCollection_Vtbl, + 0x07f7438c_7709_4ca5_b518_91279288134e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IUpdateCollection, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IUpdateCollection { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3023,16 +2795,6 @@ impl IUpdateCollection { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IUpdateCollection, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IUpdateCollection { - type Vtable = IUpdateCollection_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IUpdateCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x07f7438c_7709_4ca5_b518_91279288134e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IUpdateCollection_Vtbl { @@ -3063,11 +2825,15 @@ pub struct IUpdateCollection_Vtbl { Insert: usize, pub RemoveAt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUpdateDownloadContent(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IUpdateDownloadContent, + IUpdateDownloadContent_Vtbl, + 0x54a2cb2d_9a0c_48b6_8a50_9abb69ee2d02 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IUpdateDownloadContent, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IUpdateDownloadContent { pub unsafe fn DownloadUrl(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -3076,27 +2842,21 @@ impl IUpdateDownloadContent { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IUpdateDownloadContent, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IUpdateDownloadContent { - type Vtable = IUpdateDownloadContent_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IUpdateDownloadContent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x54a2cb2d_9a0c_48b6_8a50_9abb69ee2d02); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IUpdateDownloadContent_Vtbl { pub base__: super::Com::IDispatch_Vtbl, pub DownloadUrl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUpdateDownloadContent2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IUpdateDownloadContent2, + IUpdateDownloadContent2_Vtbl, + 0xc97ad11b_f257_420b_9d9f_377f733f6f68 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IUpdateDownloadContent2, ::windows_core::IUnknown, super::Com::IDispatch, IUpdateDownloadContent); #[cfg(feature = "Win32_System_Com")] impl IUpdateDownloadContent2 { pub unsafe fn DownloadUrl(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -3109,27 +2869,21 @@ impl IUpdateDownloadContent2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IUpdateDownloadContent2, ::windows_core::IUnknown, super::Com::IDispatch, IUpdateDownloadContent); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IUpdateDownloadContent2 { - type Vtable = IUpdateDownloadContent2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IUpdateDownloadContent2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc97ad11b_f257_420b_9d9f_377f733f6f68); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IUpdateDownloadContent2_Vtbl { pub base__: IUpdateDownloadContent_Vtbl, pub IsDeltaCompressedContent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUpdateDownloadContentCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IUpdateDownloadContentCollection, + IUpdateDownloadContentCollection_Vtbl, + 0xbc5513c8_b3b8_4bf7_a4d4_361c0d8c88ba +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IUpdateDownloadContentCollection, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IUpdateDownloadContentCollection { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3148,16 +2902,6 @@ impl IUpdateDownloadContentCollection { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IUpdateDownloadContentCollection, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IUpdateDownloadContentCollection { - type Vtable = IUpdateDownloadContentCollection_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IUpdateDownloadContentCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbc5513c8_b3b8_4bf7_a4d4_361c0d8c88ba); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IUpdateDownloadContentCollection_Vtbl { @@ -3169,11 +2913,15 @@ pub struct IUpdateDownloadContentCollection_Vtbl { pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUpdateDownloadResult(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IUpdateDownloadResult, + IUpdateDownloadResult_Vtbl, + 0xbf99af76_b575_42ad_8aa4_33cbb5477af1 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IUpdateDownloadResult, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IUpdateDownloadResult { pub unsafe fn HResult(&self) -> ::windows_core::Result { @@ -3186,16 +2934,6 @@ impl IUpdateDownloadResult { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IUpdateDownloadResult, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IUpdateDownloadResult { - type Vtable = IUpdateDownloadResult_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IUpdateDownloadResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbf99af76_b575_42ad_8aa4_33cbb5477af1); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IUpdateDownloadResult_Vtbl { @@ -3203,11 +2941,15 @@ pub struct IUpdateDownloadResult_Vtbl { pub HResult: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows_core::HRESULT, pub ResultCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut OperationResultCode) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUpdateDownloader(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IUpdateDownloader, + IUpdateDownloader_Vtbl, + 0x68f1c6f9_7ecc_4666_a464_247fe12496c3 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IUpdateDownloader, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IUpdateDownloader { pub unsafe fn ClientApplicationID(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -3278,16 +3020,6 @@ impl IUpdateDownloader { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IUpdateDownloader, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IUpdateDownloader { - type Vtable = IUpdateDownloader_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IUpdateDownloader { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x68f1c6f9_7ecc_4666_a464_247fe12496c3); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IUpdateDownloader_Vtbl { @@ -3319,11 +3051,15 @@ pub struct IUpdateDownloader_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] EndDownload: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUpdateException(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IUpdateException, + IUpdateException_Vtbl, + 0xa376dd5e_09d4_427f_af7c_fed5b6e1c1d6 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IUpdateException, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IUpdateException { pub unsafe fn Message(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -3340,16 +3076,6 @@ impl IUpdateException { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IUpdateException, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IUpdateException { - type Vtable = IUpdateException_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IUpdateException { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa376dd5e_09d4_427f_af7c_fed5b6e1c1d6); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IUpdateException_Vtbl { @@ -3358,11 +3084,15 @@ pub struct IUpdateException_Vtbl { pub HResult: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows_core::HRESULT, pub Context: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut UpdateExceptionContext) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUpdateExceptionCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IUpdateExceptionCollection, + IUpdateExceptionCollection_Vtbl, + 0x503626a3_8e14_4729_9355_0fe664bd2321 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IUpdateExceptionCollection, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IUpdateExceptionCollection { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3381,16 +3111,6 @@ impl IUpdateExceptionCollection { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IUpdateExceptionCollection, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IUpdateExceptionCollection { - type Vtable = IUpdateExceptionCollection_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IUpdateExceptionCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x503626a3_8e14_4729_9355_0fe664bd2321); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IUpdateExceptionCollection_Vtbl { @@ -3402,11 +3122,15 @@ pub struct IUpdateExceptionCollection_Vtbl { pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUpdateHistoryEntry(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IUpdateHistoryEntry, + IUpdateHistoryEntry_Vtbl, + 0xbe56a644_af0e_4e0e_a311_c1d8e695cbff +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IUpdateHistoryEntry, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IUpdateHistoryEntry { pub unsafe fn Operation(&self) -> ::windows_core::Result { @@ -3471,16 +3195,6 @@ impl IUpdateHistoryEntry { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IUpdateHistoryEntry, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IUpdateHistoryEntry { - type Vtable = IUpdateHistoryEntry_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IUpdateHistoryEntry { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbe56a644_af0e_4e0e_a311_c1d8e695cbff); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IUpdateHistoryEntry_Vtbl { @@ -3506,11 +3220,15 @@ pub struct IUpdateHistoryEntry_Vtbl { pub UninstallationNotes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SupportUrl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUpdateHistoryEntry2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IUpdateHistoryEntry2, + IUpdateHistoryEntry2_Vtbl, + 0xc2bfb780_4539_4132_ab8c_0a8772013ab6 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IUpdateHistoryEntry2, ::windows_core::IUnknown, super::Com::IDispatch, IUpdateHistoryEntry); #[cfg(feature = "Win32_System_Com")] impl IUpdateHistoryEntry2 { pub unsafe fn Operation(&self) -> ::windows_core::Result { @@ -3581,16 +3299,6 @@ impl IUpdateHistoryEntry2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IUpdateHistoryEntry2, ::windows_core::IUnknown, super::Com::IDispatch, IUpdateHistoryEntry); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IUpdateHistoryEntry2 { - type Vtable = IUpdateHistoryEntry2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IUpdateHistoryEntry2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc2bfb780_4539_4132_ab8c_0a8772013ab6); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IUpdateHistoryEntry2_Vtbl { @@ -3600,11 +3308,15 @@ pub struct IUpdateHistoryEntry2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Categories: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUpdateHistoryEntryCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IUpdateHistoryEntryCollection, + IUpdateHistoryEntryCollection_Vtbl, + 0xa7f04f3c_a290_435b_aadf_a116c3357a5c +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IUpdateHistoryEntryCollection, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IUpdateHistoryEntryCollection { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3623,16 +3335,6 @@ impl IUpdateHistoryEntryCollection { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IUpdateHistoryEntryCollection, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IUpdateHistoryEntryCollection { - type Vtable = IUpdateHistoryEntryCollection_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IUpdateHistoryEntryCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa7f04f3c_a290_435b_aadf_a116c3357a5c); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IUpdateHistoryEntryCollection_Vtbl { @@ -3644,11 +3346,15 @@ pub struct IUpdateHistoryEntryCollection_Vtbl { pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUpdateIdentity(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IUpdateIdentity, + IUpdateIdentity_Vtbl, + 0x46297823_9940_4c09_aed9_cd3ea6d05968 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IUpdateIdentity, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IUpdateIdentity { pub unsafe fn RevisionNumber(&self) -> ::windows_core::Result { @@ -3661,16 +3367,6 @@ impl IUpdateIdentity { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IUpdateIdentity, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IUpdateIdentity { - type Vtable = IUpdateIdentity_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IUpdateIdentity { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x46297823_9940_4c09_aed9_cd3ea6d05968); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IUpdateIdentity_Vtbl { @@ -3678,11 +3374,15 @@ pub struct IUpdateIdentity_Vtbl { pub RevisionNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows_core::HRESULT, pub UpdateID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUpdateInstallationResult(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IUpdateInstallationResult, + IUpdateInstallationResult_Vtbl, + 0xd940f0f8_3cbb_4fd0_993f_471e7f2328ad +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IUpdateInstallationResult, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IUpdateInstallationResult { pub unsafe fn HResult(&self) -> ::windows_core::Result { @@ -3696,17 +3396,7 @@ impl IUpdateInstallationResult { pub unsafe fn ResultCode(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).ResultCode)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) - } -} -#[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IUpdateInstallationResult, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IUpdateInstallationResult { - type Vtable = IUpdateInstallationResult_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IUpdateInstallationResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd940f0f8_3cbb_4fd0_993f_471e7f2328ad); + } } #[cfg(feature = "Win32_System_Com")] #[repr(C)] @@ -3717,11 +3407,15 @@ pub struct IUpdateInstallationResult_Vtbl { pub RebootRequired: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub ResultCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut OperationResultCode) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUpdateInstaller(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IUpdateInstaller, + IUpdateInstaller_Vtbl, + 0x7b929c68_ccdc_4226_96b1_8724600b54c2 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IUpdateInstaller, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IUpdateInstaller { pub unsafe fn ClientApplicationID(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -3857,16 +3551,6 @@ impl IUpdateInstaller { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IUpdateInstaller, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IUpdateInstaller { - type Vtable = IUpdateInstaller_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IUpdateInstaller { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7b929c68_ccdc_4226_96b1_8724600b54c2); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IUpdateInstaller_Vtbl { @@ -3920,11 +3604,15 @@ pub struct IUpdateInstaller_Vtbl { pub SetAllowSourcePrompts: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub RebootRequiredBeforeInstallation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUpdateInstaller2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IUpdateInstaller2, + IUpdateInstaller2_Vtbl, + 0x3442d4fe_224d_4cee_98cf_30e0c4d229e6 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IUpdateInstaller2, ::windows_core::IUnknown, super::Com::IDispatch, IUpdateInstaller); #[cfg(feature = "Win32_System_Com")] impl IUpdateInstaller2 { pub unsafe fn ClientApplicationID(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -4070,16 +3758,6 @@ impl IUpdateInstaller2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IUpdateInstaller2, ::windows_core::IUnknown, super::Com::IDispatch, IUpdateInstaller); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IUpdateInstaller2 { - type Vtable = IUpdateInstaller2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IUpdateInstaller2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3442d4fe_224d_4cee_98cf_30e0c4d229e6); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IUpdateInstaller2_Vtbl { @@ -4087,11 +3765,15 @@ pub struct IUpdateInstaller2_Vtbl { pub ForceQuiet: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub SetForceQuiet: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUpdateInstaller3(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IUpdateInstaller3, + IUpdateInstaller3_Vtbl, + 0x16d11c35_099a_48d0_8338_5fae64047f8e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IUpdateInstaller3, ::windows_core::IUnknown, super::Com::IDispatch, IUpdateInstaller, IUpdateInstaller2); #[cfg(feature = "Win32_System_Com")] impl IUpdateInstaller3 { pub unsafe fn ClientApplicationID(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -4247,16 +3929,6 @@ impl IUpdateInstaller3 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IUpdateInstaller3, ::windows_core::IUnknown, super::Com::IDispatch, IUpdateInstaller, IUpdateInstaller2); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IUpdateInstaller3 { - type Vtable = IUpdateInstaller3_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IUpdateInstaller3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x16d11c35_099a_48d0_8338_5fae64047f8e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IUpdateInstaller3_Vtbl { @@ -4264,11 +3936,15 @@ pub struct IUpdateInstaller3_Vtbl { pub AttemptCloseAppsIfNecessary: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub SetAttemptCloseAppsIfNecessary: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUpdateInstaller4(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IUpdateInstaller4, + IUpdateInstaller4_Vtbl, + 0xef8208ea_2304_492d_9109_23813b0958e1 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IUpdateInstaller4, ::windows_core::IUnknown, super::Com::IDispatch, IUpdateInstaller, IUpdateInstaller2, IUpdateInstaller3); #[cfg(feature = "Win32_System_Com")] impl IUpdateInstaller4 { pub unsafe fn ClientApplicationID(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -4427,48 +4103,34 @@ impl IUpdateInstaller4 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IUpdateInstaller4, ::windows_core::IUnknown, super::Com::IDispatch, IUpdateInstaller, IUpdateInstaller2, IUpdateInstaller3); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IUpdateInstaller4 { - type Vtable = IUpdateInstaller4_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IUpdateInstaller4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xef8208ea_2304_492d_9109_23813b0958e1); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IUpdateInstaller4_Vtbl { pub base__: IUpdateInstaller3_Vtbl, pub Commit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwflags: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUpdateLockdown(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUpdateLockdown, IUpdateLockdown_Vtbl, 0xa976c28d_75a1_42aa_94ae_8af8b872089a); +::windows_core::imp::interface_hierarchy!(IUpdateLockdown, ::windows_core::IUnknown); impl IUpdateLockdown { pub unsafe fn LockDown(&self, flags: i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).LockDown)(::windows_core::Interface::as_raw(self), flags).ok() } } -::windows_core::imp::interface_hierarchy!(IUpdateLockdown, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUpdateLockdown { - type Vtable = IUpdateLockdown_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUpdateLockdown { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa976c28d_75a1_42aa_94ae_8af8b872089a); -} #[repr(C)] #[doc(hidden)] pub struct IUpdateLockdown_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub LockDown: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUpdateSearcher(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IUpdateSearcher, + IUpdateSearcher_Vtbl, + 0x8f45abf1_f9ae_4b95_a933_f0f66e5056ea +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IUpdateSearcher, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IUpdateSearcher { pub unsafe fn CanAutomaticallyUpgradeService(&self) -> ::windows_core::Result { @@ -4575,16 +4237,6 @@ impl IUpdateSearcher { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IUpdateSearcher, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IUpdateSearcher { - type Vtable = IUpdateSearcher_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IUpdateSearcher { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8f45abf1_f9ae_4b95_a933_f0f66e5056ea); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IUpdateSearcher_Vtbl { @@ -4620,11 +4272,15 @@ pub struct IUpdateSearcher_Vtbl { pub ServiceID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SetServiceID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUpdateSearcher2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IUpdateSearcher2, + IUpdateSearcher2_Vtbl, + 0x4cbdcb2d_1589_4beb_bd1c_3e582ff0add0 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IUpdateSearcher2, ::windows_core::IUnknown, super::Com::IDispatch, IUpdateSearcher); #[cfg(feature = "Win32_System_Com")] impl IUpdateSearcher2 { pub unsafe fn CanAutomaticallyUpgradeService(&self) -> ::windows_core::Result { @@ -4741,16 +4397,6 @@ impl IUpdateSearcher2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IUpdateSearcher2, ::windows_core::IUnknown, super::Com::IDispatch, IUpdateSearcher); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IUpdateSearcher2 { - type Vtable = IUpdateSearcher2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IUpdateSearcher2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4cbdcb2d_1589_4beb_bd1c_3e582ff0add0); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IUpdateSearcher2_Vtbl { @@ -4758,11 +4404,15 @@ pub struct IUpdateSearcher2_Vtbl { pub IgnoreDownloadPriority: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub SetIgnoreDownloadPriority: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUpdateSearcher3(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IUpdateSearcher3, + IUpdateSearcher3_Vtbl, + 0x04c6895d_eaf2_4034_97f3_311de9be413a +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IUpdateSearcher3, ::windows_core::IUnknown, super::Com::IDispatch, IUpdateSearcher, IUpdateSearcher2); #[cfg(feature = "Win32_System_Com")] impl IUpdateSearcher3 { pub unsafe fn CanAutomaticallyUpgradeService(&self) -> ::windows_core::Result { @@ -4886,16 +4536,6 @@ impl IUpdateSearcher3 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IUpdateSearcher3, ::windows_core::IUnknown, super::Com::IDispatch, IUpdateSearcher, IUpdateSearcher2); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IUpdateSearcher3 { - type Vtable = IUpdateSearcher3_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IUpdateSearcher3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x04c6895d_eaf2_4034_97f3_311de9be413a); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IUpdateSearcher3_Vtbl { @@ -4903,11 +4543,15 @@ pub struct IUpdateSearcher3_Vtbl { pub SearchScope: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut SearchScope) -> ::windows_core::HRESULT, pub SetSearchScope: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: SearchScope) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUpdateService(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IUpdateService, + IUpdateService_Vtbl, + 0x76b3b17e_aed6_4da5_85f0_83587f81abe3 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IUpdateService, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IUpdateService { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -4968,16 +4612,6 @@ impl IUpdateService { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IUpdateService, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IUpdateService { - type Vtable = IUpdateService_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IUpdateService { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x76b3b17e_aed6_4da5_85f0_83587f81abe3); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IUpdateService_Vtbl { @@ -5002,11 +4636,15 @@ pub struct IUpdateService_Vtbl { pub ServiceUrl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SetupPrefix: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUpdateService2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IUpdateService2, + IUpdateService2_Vtbl, + 0x1518b460_6518_4172_940f_c75883b24ceb +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IUpdateService2, ::windows_core::IUnknown, super::Com::IDispatch, IUpdateService); #[cfg(feature = "Win32_System_Com")] impl IUpdateService2 { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -5071,27 +4709,21 @@ impl IUpdateService2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IUpdateService2, ::windows_core::IUnknown, super::Com::IDispatch, IUpdateService); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IUpdateService2 { - type Vtable = IUpdateService2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IUpdateService2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1518b460_6518_4172_940f_c75883b24ceb); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IUpdateService2_Vtbl { pub base__: IUpdateService_Vtbl, pub IsDefaultAUService: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUpdateServiceCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IUpdateServiceCollection, + IUpdateServiceCollection_Vtbl, + 0x9b0353aa_0e52_44ff_b8b0_1f7fa0437f88 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IUpdateServiceCollection, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IUpdateServiceCollection { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -5110,16 +4742,6 @@ impl IUpdateServiceCollection { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IUpdateServiceCollection, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IUpdateServiceCollection { - type Vtable = IUpdateServiceCollection_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IUpdateServiceCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9b0353aa_0e52_44ff_b8b0_1f7fa0437f88); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IUpdateServiceCollection_Vtbl { @@ -5131,11 +4753,15 @@ pub struct IUpdateServiceCollection_Vtbl { pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUpdateServiceManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IUpdateServiceManager, + IUpdateServiceManager_Vtbl, + 0x23857e3c_02ba_44a3_9423_b1c900805f37 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IUpdateServiceManager, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IUpdateServiceManager { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -5192,16 +4818,6 @@ impl IUpdateServiceManager { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IUpdateServiceManager, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IUpdateServiceManager { - type Vtable = IUpdateServiceManager_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IUpdateServiceManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x23857e3c_02ba_44a3_9423_b1c900805f37); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IUpdateServiceManager_Vtbl { @@ -5226,11 +4842,15 @@ pub struct IUpdateServiceManager_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] SetOption: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUpdateServiceManager2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IUpdateServiceManager2, + IUpdateServiceManager2_Vtbl, + 0x0bb8531d_7e8d_424f_986c_a0b8f60a3e7b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IUpdateServiceManager2, ::windows_core::IUnknown, super::Com::IDispatch, IUpdateServiceManager); #[cfg(feature = "Win32_System_Com")] impl IUpdateServiceManager2 { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -5316,16 +4936,6 @@ impl IUpdateServiceManager2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IUpdateServiceManager2, ::windows_core::IUnknown, super::Com::IDispatch, IUpdateServiceManager); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IUpdateServiceManager2 { - type Vtable = IUpdateServiceManager2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IUpdateServiceManager2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0bb8531d_7e8d_424f_986c_a0b8f60a3e7b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IUpdateServiceManager2_Vtbl { @@ -5341,11 +4951,15 @@ pub struct IUpdateServiceManager2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] AddService2: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUpdateServiceRegistration(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IUpdateServiceRegistration, + IUpdateServiceRegistration_Vtbl, + 0xdde02280_12b3_4e0b_937b_6747f6acb286 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IUpdateServiceRegistration, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IUpdateServiceRegistration { pub unsafe fn RegistrationState(&self) -> ::windows_core::Result { @@ -5368,16 +4982,6 @@ impl IUpdateServiceRegistration { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IUpdateServiceRegistration, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IUpdateServiceRegistration { - type Vtable = IUpdateServiceRegistration_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IUpdateServiceRegistration { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdde02280_12b3_4e0b_937b_6747f6acb286); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IUpdateServiceRegistration_Vtbl { @@ -5390,11 +4994,15 @@ pub struct IUpdateServiceRegistration_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Service: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUpdateSession(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IUpdateSession, + IUpdateSession_Vtbl, + 0x816858a4_260d_4260_933a_2585f1abc76b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IUpdateSession, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IUpdateSession { pub unsafe fn ClientApplicationID(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -5445,16 +5053,6 @@ impl IUpdateSession { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IUpdateSession, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IUpdateSession { - type Vtable = IUpdateSession_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IUpdateSession { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x816858a4_260d_4260_933a_2585f1abc76b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IUpdateSession_Vtbl { @@ -5483,11 +5081,15 @@ pub struct IUpdateSession_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] CreateUpdateInstaller: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUpdateSession2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IUpdateSession2, + IUpdateSession2_Vtbl, + 0x91caf7b0_eb23_49ed_9937_c52d817f46f7 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IUpdateSession2, ::windows_core::IUnknown, super::Com::IDispatch, IUpdateSession); #[cfg(feature = "Win32_System_Com")] impl IUpdateSession2 { pub unsafe fn ClientApplicationID(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -5545,16 +5147,6 @@ impl IUpdateSession2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IUpdateSession2, ::windows_core::IUnknown, super::Com::IDispatch, IUpdateSession); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IUpdateSession2 { - type Vtable = IUpdateSession2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IUpdateSession2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x91caf7b0_eb23_49ed_9937_c52d817f46f7); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IUpdateSession2_Vtbl { @@ -5562,11 +5154,15 @@ pub struct IUpdateSession2_Vtbl { pub UserLocale: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut u32) -> ::windows_core::HRESULT, pub SetUserLocale: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lcid: u32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUpdateSession3(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IUpdateSession3, + IUpdateSession3_Vtbl, + 0x918efd1e_b5d8_4c90_8540_aeb9bdc56f9d +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IUpdateSession3, ::windows_core::IUnknown, super::Com::IDispatch, IUpdateSession, IUpdateSession2); #[cfg(feature = "Win32_System_Com")] impl IUpdateSession3 { pub unsafe fn ClientApplicationID(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -5639,16 +5235,6 @@ impl IUpdateSession3 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IUpdateSession3, ::windows_core::IUnknown, super::Com::IDispatch, IUpdateSession, IUpdateSession2); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IUpdateSession3 { - type Vtable = IUpdateSession3_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IUpdateSession3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x918efd1e_b5d8_4c90_8540_aeb9bdc56f9d); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IUpdateSession3_Vtbl { @@ -5662,11 +5248,15 @@ pub struct IUpdateSession3_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] QueryHistory: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebProxy(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWebProxy, + IWebProxy_Vtbl, + 0x174c81fe_aecd_4dae_b8a0_2c6318dd86a8 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWebProxy, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IWebProxy { pub unsafe fn Address(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -5749,16 +5339,6 @@ impl IWebProxy { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWebProxy, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWebProxy { - type Vtable = IWebProxy_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWebProxy { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x174c81fe_aecd_4dae_b8a0_2c6318dd86a8); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWebProxy_Vtbl { @@ -5784,11 +5364,15 @@ pub struct IWebProxy_Vtbl { pub AutoDetect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub SetAutoDetect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWindowsDriverUpdate(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWindowsDriverUpdate, + IWindowsDriverUpdate_Vtbl, + 0xb383cd1a_5ce9_4504_9f63_764b1236f191 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWindowsDriverUpdate, ::windows_core::IUnknown, super::Com::IDispatch, IUpdate); #[cfg(feature = "Win32_System_Com")] impl IWindowsDriverUpdate { pub unsafe fn Title(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -6037,16 +5621,6 @@ impl IWindowsDriverUpdate { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWindowsDriverUpdate, ::windows_core::IUnknown, super::Com::IDispatch, IUpdate); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWindowsDriverUpdate { - type Vtable = IWindowsDriverUpdate_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWindowsDriverUpdate { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb383cd1a_5ce9_4504_9f63_764b1236f191); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWindowsDriverUpdate_Vtbl { @@ -6060,11 +5634,15 @@ pub struct IWindowsDriverUpdate_Vtbl { pub DeviceProblemNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows_core::HRESULT, pub DeviceStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWindowsDriverUpdate2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWindowsDriverUpdate2, + IWindowsDriverUpdate2_Vtbl, + 0x615c4269_7a48_43bd_96b7_bf6ca27d6c3e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWindowsDriverUpdate2, ::windows_core::IUnknown, super::Com::IDispatch, IUpdate, IWindowsDriverUpdate); #[cfg(feature = "Win32_System_Com")] impl IWindowsDriverUpdate2 { pub unsafe fn Title(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -6335,16 +5913,6 @@ impl IWindowsDriverUpdate2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWindowsDriverUpdate2, ::windows_core::IUnknown, super::Com::IDispatch, IUpdate, IWindowsDriverUpdate); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWindowsDriverUpdate2 { - type Vtable = IWindowsDriverUpdate2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWindowsDriverUpdate2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x615c4269_7a48_43bd_96b7_bf6ca27d6c3e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWindowsDriverUpdate2_Vtbl { @@ -6360,11 +5928,15 @@ pub struct IWindowsDriverUpdate2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] CopyToCache: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWindowsDriverUpdate3(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWindowsDriverUpdate3, + IWindowsDriverUpdate3_Vtbl, + 0x49ebd502_4a96_41bd_9e3e_4c5057f4250c +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWindowsDriverUpdate3, ::windows_core::IUnknown, super::Com::IDispatch, IUpdate, IWindowsDriverUpdate, IWindowsDriverUpdate2); #[cfg(feature = "Win32_System_Com")] impl IWindowsDriverUpdate3 { pub unsafe fn Title(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -6639,27 +6211,21 @@ impl IWindowsDriverUpdate3 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWindowsDriverUpdate3, ::windows_core::IUnknown, super::Com::IDispatch, IUpdate, IWindowsDriverUpdate, IWindowsDriverUpdate2); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWindowsDriverUpdate3 { - type Vtable = IWindowsDriverUpdate3_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWindowsDriverUpdate3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x49ebd502_4a96_41bd_9e3e_4c5057f4250c); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWindowsDriverUpdate3_Vtbl { pub base__: IWindowsDriverUpdate2_Vtbl, pub BrowseOnly: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWindowsDriverUpdate4(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWindowsDriverUpdate4, + IWindowsDriverUpdate4_Vtbl, + 0x004c6a2b_0c19_4c69_9f5c_a269b2560db9 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWindowsDriverUpdate4, ::windows_core::IUnknown, super::Com::IDispatch, IUpdate, IWindowsDriverUpdate, IWindowsDriverUpdate2, IWindowsDriverUpdate3); #[cfg(feature = "Win32_System_Com")] impl IWindowsDriverUpdate4 { pub unsafe fn Title(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -6944,16 +6510,6 @@ impl IWindowsDriverUpdate4 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWindowsDriverUpdate4, ::windows_core::IUnknown, super::Com::IDispatch, IUpdate, IWindowsDriverUpdate, IWindowsDriverUpdate2, IWindowsDriverUpdate3); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWindowsDriverUpdate4 { - type Vtable = IWindowsDriverUpdate4_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWindowsDriverUpdate4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x004c6a2b_0c19_4c69_9f5c_a269b2560db9); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWindowsDriverUpdate4_Vtbl { @@ -6964,11 +6520,15 @@ pub struct IWindowsDriverUpdate4_Vtbl { WindowsDriverUpdateEntries: usize, pub PerUser: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWindowsDriverUpdate5(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWindowsDriverUpdate5, + IWindowsDriverUpdate5_Vtbl, + 0x70cf5c82_8642_42bb_9dbc_0cfd263c6c4f +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWindowsDriverUpdate5, ::windows_core::IUnknown, super::Com::IDispatch, IUpdate, IWindowsDriverUpdate, IWindowsDriverUpdate2, IWindowsDriverUpdate3, IWindowsDriverUpdate4); #[cfg(feature = "Win32_System_Com")] impl IWindowsDriverUpdate5 { pub unsafe fn Title(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -7261,16 +6821,6 @@ impl IWindowsDriverUpdate5 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWindowsDriverUpdate5, ::windows_core::IUnknown, super::Com::IDispatch, IUpdate, IWindowsDriverUpdate, IWindowsDriverUpdate2, IWindowsDriverUpdate3, IWindowsDriverUpdate4); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWindowsDriverUpdate5 { - type Vtable = IWindowsDriverUpdate5_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWindowsDriverUpdate5 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x70cf5c82_8642_42bb_9dbc_0cfd263c6c4f); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWindowsDriverUpdate5_Vtbl { @@ -7278,11 +6828,15 @@ pub struct IWindowsDriverUpdate5_Vtbl { pub AutoSelection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut AutoSelectionMode) -> ::windows_core::HRESULT, pub AutoDownload: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut AutoDownloadMode) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWindowsDriverUpdateEntry(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWindowsDriverUpdateEntry, + IWindowsDriverUpdateEntry_Vtbl, + 0xed8bfe40_a60b_42ea_9652_817dfcfa23ec +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWindowsDriverUpdateEntry, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IWindowsDriverUpdateEntry { pub unsafe fn DriverClass(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -7319,16 +6873,6 @@ impl IWindowsDriverUpdateEntry { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWindowsDriverUpdateEntry, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWindowsDriverUpdateEntry { - type Vtable = IWindowsDriverUpdateEntry_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWindowsDriverUpdateEntry { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xed8bfe40_a60b_42ea_9652_817dfcfa23ec); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWindowsDriverUpdateEntry_Vtbl { @@ -7342,11 +6886,15 @@ pub struct IWindowsDriverUpdateEntry_Vtbl { pub DeviceProblemNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows_core::HRESULT, pub DeviceStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWindowsDriverUpdateEntryCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWindowsDriverUpdateEntryCollection, + IWindowsDriverUpdateEntryCollection_Vtbl, + 0x0d521700_a372_4bef_828b_3d00c10adebd +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWindowsDriverUpdateEntryCollection, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IWindowsDriverUpdateEntryCollection { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -7365,16 +6913,6 @@ impl IWindowsDriverUpdateEntryCollection { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWindowsDriverUpdateEntryCollection, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWindowsDriverUpdateEntryCollection { - type Vtable = IWindowsDriverUpdateEntryCollection_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWindowsDriverUpdateEntryCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0d521700_a372_4bef_828b_3d00c10adebd); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWindowsDriverUpdateEntryCollection_Vtbl { @@ -7386,11 +6924,15 @@ pub struct IWindowsDriverUpdateEntryCollection_Vtbl { pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWindowsUpdateAgentInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWindowsUpdateAgentInfo, + IWindowsUpdateAgentInfo_Vtbl, + 0x85713fa1_7796_4fa2_be3b_e2d6124dd373 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWindowsUpdateAgentInfo, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IWindowsUpdateAgentInfo { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -7401,16 +6943,6 @@ impl IWindowsUpdateAgentInfo { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWindowsUpdateAgentInfo, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWindowsUpdateAgentInfo { - type Vtable = IWindowsUpdateAgentInfo_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWindowsUpdateAgentInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x85713fa1_7796_4fa2_be3b_e2d6124dd373); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWindowsUpdateAgentInfo_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/System/UpdateAssessment/impl.rs b/crates/libs/windows/src/Windows/Win32/System/UpdateAssessment/impl.rs index 86c3df2af0..6717b53e60 100644 --- a/crates/libs/windows/src/Windows/Win32/System/UpdateAssessment/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/UpdateAssessment/impl.rs @@ -18,6 +18,6 @@ impl IWaaSAssessor_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetOSUpdateAssessment: GetOSUpdateAssessment:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/Win32/System/UpdateAssessment/mod.rs b/crates/libs/windows/src/Windows/Win32/System/UpdateAssessment/mod.rs index 7406168c8a..e0327f0707 100644 --- a/crates/libs/windows/src/Windows/Win32/System/UpdateAssessment/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/UpdateAssessment/mod.rs @@ -1,19 +1,11 @@ -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWaaSAssessor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWaaSAssessor, IWaaSAssessor_Vtbl, 0x2347bbef_1a3b_45a4_902d_3e09c269b45e); +::windows_core::imp::interface_hierarchy!(IWaaSAssessor, ::windows_core::IUnknown); impl IWaaSAssessor { pub unsafe fn GetOSUpdateAssessment(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetOSUpdateAssessment)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWaaSAssessor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWaaSAssessor { - type Vtable = IWaaSAssessor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWaaSAssessor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2347bbef_1a3b_45a4_902d_3e09c269b45e); -} #[repr(C)] #[doc(hidden)] pub struct IWaaSAssessor_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/System/WinRT/AllJoyn/impl.rs b/crates/libs/windows/src/Windows/Win32/System/WinRT/AllJoyn/impl.rs index e42f2b8fa5..d52fe25c05 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WinRT/AllJoyn/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WinRT/AllJoyn/impl.rs @@ -15,7 +15,7 @@ impl IWindowsDevicesAllJoynBusAttachmentFactoryInterop_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWindowsDevicesAllJoynBusAttachmentInterop_Impl: Sized { @@ -41,7 +41,7 @@ impl IWindowsDevicesAllJoynBusAttachmentInterop_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWindowsDevicesAllJoynBusObjectFactoryInterop_Impl: Sized { @@ -61,7 +61,7 @@ impl IWindowsDevicesAllJoynBusObjectFactoryInterop_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWindowsDevicesAllJoynBusObjectInterop_Impl: Sized { @@ -101,6 +101,6 @@ impl IWindowsDevicesAllJoynBusObjectInterop_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/libs/windows/src/Windows/Win32/System/WinRT/AllJoyn/mod.rs b/crates/libs/windows/src/Windows/Win32/System/WinRT/AllJoyn/mod.rs index 314e89554c..80d91d25c5 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WinRT/AllJoyn/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WinRT/AllJoyn/mod.rs @@ -1,78 +1,53 @@ -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWindowsDevicesAllJoynBusAttachmentFactoryInterop(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWindowsDevicesAllJoynBusAttachmentFactoryInterop, IWindowsDevicesAllJoynBusAttachmentFactoryInterop_Vtbl, 0x4b8f7505_b239_4e7b_88af_f6682575d861); +::windows_core::imp::interface_hierarchy!(IWindowsDevicesAllJoynBusAttachmentFactoryInterop, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IWindowsDevicesAllJoynBusAttachmentFactoryInterop { pub unsafe fn CreateFromWin32Handle(&self, win32handle: u64, enableaboutdata: u8) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).CreateFromWin32Handle)(::windows_core::Interface::as_raw(self), win32handle, enableaboutdata, &T::IID, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWindowsDevicesAllJoynBusAttachmentFactoryInterop, ::windows_core::IUnknown, ::windows_core::IInspectable); -unsafe impl ::windows_core::Interface for IWindowsDevicesAllJoynBusAttachmentFactoryInterop { - type Vtable = IWindowsDevicesAllJoynBusAttachmentFactoryInterop_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWindowsDevicesAllJoynBusAttachmentFactoryInterop { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4b8f7505_b239_4e7b_88af_f6682575d861); -} #[repr(C)] #[doc(hidden)] pub struct IWindowsDevicesAllJoynBusAttachmentFactoryInterop_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateFromWin32Handle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, win32handle: u64, enableaboutdata: u8, riid: *const ::windows_core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWindowsDevicesAllJoynBusAttachmentInterop(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWindowsDevicesAllJoynBusAttachmentInterop, IWindowsDevicesAllJoynBusAttachmentInterop_Vtbl, 0xfd89c65b_b50e_4a19_9d0c_b42b783281cd); +::windows_core::imp::interface_hierarchy!(IWindowsDevicesAllJoynBusAttachmentInterop, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IWindowsDevicesAllJoynBusAttachmentInterop { pub unsafe fn Win32Handle(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).Win32Handle)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWindowsDevicesAllJoynBusAttachmentInterop, ::windows_core::IUnknown, ::windows_core::IInspectable); -unsafe impl ::windows_core::Interface for IWindowsDevicesAllJoynBusAttachmentInterop { - type Vtable = IWindowsDevicesAllJoynBusAttachmentInterop_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWindowsDevicesAllJoynBusAttachmentInterop { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfd89c65b_b50e_4a19_9d0c_b42b783281cd); -} #[repr(C)] #[doc(hidden)] pub struct IWindowsDevicesAllJoynBusAttachmentInterop_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub Win32Handle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut u64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWindowsDevicesAllJoynBusObjectFactoryInterop(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWindowsDevicesAllJoynBusObjectFactoryInterop, IWindowsDevicesAllJoynBusObjectFactoryInterop_Vtbl, 0x6174e506_8b95_4e36_95c0_b88fed34938c); +::windows_core::imp::interface_hierarchy!(IWindowsDevicesAllJoynBusObjectFactoryInterop, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IWindowsDevicesAllJoynBusObjectFactoryInterop { pub unsafe fn CreateFromWin32Handle(&self, win32handle: u64) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).CreateFromWin32Handle)(::windows_core::Interface::as_raw(self), win32handle, &T::IID, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWindowsDevicesAllJoynBusObjectFactoryInterop, ::windows_core::IUnknown, ::windows_core::IInspectable); -unsafe impl ::windows_core::Interface for IWindowsDevicesAllJoynBusObjectFactoryInterop { - type Vtable = IWindowsDevicesAllJoynBusObjectFactoryInterop_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWindowsDevicesAllJoynBusObjectFactoryInterop { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6174e506_8b95_4e36_95c0_b88fed34938c); -} #[repr(C)] #[doc(hidden)] pub struct IWindowsDevicesAllJoynBusObjectFactoryInterop_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateFromWin32Handle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, win32handle: u64, riid: *const ::windows_core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWindowsDevicesAllJoynBusObjectInterop(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWindowsDevicesAllJoynBusObjectInterop, IWindowsDevicesAllJoynBusObjectInterop_Vtbl, 0xd78aa3d5_5054_428f_99f2_ec3a5de3c3bc); +::windows_core::imp::interface_hierarchy!(IWindowsDevicesAllJoynBusObjectInterop, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IWindowsDevicesAllJoynBusObjectInterop { pub unsafe fn AddPropertyGetHandler(&self, context: *const ::core::ffi::c_void, interfacename: &::windows_core::HSTRING, callback: isize) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).AddPropertyGetHandler)(::windows_core::Interface::as_raw(self), context, ::core::mem::transmute_copy(interfacename), callback).ok() @@ -85,13 +60,6 @@ impl IWindowsDevicesAllJoynBusObjectInterop { (::windows_core::Interface::vtable(self).Win32Handle)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWindowsDevicesAllJoynBusObjectInterop, ::windows_core::IUnknown, ::windows_core::IInspectable); -unsafe impl ::windows_core::Interface for IWindowsDevicesAllJoynBusObjectInterop { - type Vtable = IWindowsDevicesAllJoynBusObjectInterop_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWindowsDevicesAllJoynBusObjectInterop { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd78aa3d5_5054_428f_99f2_ec3a5de3c3bc); -} #[repr(C)] #[doc(hidden)] pub struct IWindowsDevicesAllJoynBusObjectInterop_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/System/WinRT/Composition/impl.rs b/crates/libs/windows/src/Windows/Win32/System/WinRT/Composition/impl.rs index 1e8cb759d1..d122aed132 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WinRT/Composition/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WinRT/Composition/impl.rs @@ -25,7 +25,7 @@ impl ICompositionCapabilitiesInteropFactory_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICompositionDrawingSurfaceInterop_Impl: Sized { @@ -80,7 +80,7 @@ impl ICompositionDrawingSurfaceInterop_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICompositionDrawingSurfaceInterop2_Impl: Sized + ICompositionDrawingSurfaceInterop_Impl { @@ -97,7 +97,7 @@ impl ICompositionDrawingSurfaceInterop2_Vtbl { Self { base__: ICompositionDrawingSurfaceInterop_Vtbl::new::(), CopySurface: CopySurface:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ICompositionGraphicsDeviceInterop_Impl: Sized { @@ -130,7 +130,7 @@ impl ICompositionGraphicsDeviceInterop_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"UI_Composition_Desktop\"`"] @@ -167,7 +167,7 @@ impl ICompositorDesktopInterop_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"UI_Composition\"`"] @@ -223,7 +223,7 @@ impl ICompositorInterop_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDesktopWindowTargetInterop_Impl: Sized { @@ -246,7 +246,7 @@ impl IDesktopWindowTargetInterop_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Hwnd: Hwnd:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Input_Pointer\"`, `\"Win32_UI_WindowsAndMessaging\"`"] @@ -270,6 +270,6 @@ impl IVisualInteractionSourceInterop_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 dd14b91dc8..46bedc87d6 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 @@ -1,6 +1,5 @@ -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionCapabilitiesInteropFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICompositionCapabilitiesInteropFactory, ICompositionCapabilitiesInteropFactory_Vtbl, 0x2c9db356_e70d_4642_8298_bc4aa5b4865c); +::windows_core::imp::interface_hierarchy!(ICompositionCapabilitiesInteropFactory, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ICompositionCapabilitiesInteropFactory { #[doc = "Required features: `\"UI_Composition\"`"] #[cfg(feature = "UI_Composition")] @@ -12,13 +11,6 @@ impl ICompositionCapabilitiesInteropFactory { (::windows_core::Interface::vtable(self).GetForWindow)(::windows_core::Interface::as_raw(self), hwnd.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ICompositionCapabilitiesInteropFactory, ::windows_core::IUnknown, ::windows_core::IInspectable); -unsafe impl ::windows_core::Interface for ICompositionCapabilitiesInteropFactory { - type Vtable = ICompositionCapabilitiesInteropFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionCapabilitiesInteropFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2c9db356_e70d_4642_8298_bc4aa5b4865c); -} #[repr(C)] #[doc(hidden)] pub struct ICompositionCapabilitiesInteropFactory_Vtbl { @@ -28,13 +20,12 @@ pub struct ICompositionCapabilitiesInteropFactory_Vtbl { #[cfg(not(feature = "UI_Composition"))] GetForWindow: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionDrawingSurfaceInterop(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICompositionDrawingSurfaceInterop, ICompositionDrawingSurfaceInterop_Vtbl, 0xfd04e6e3_fe0c_4c3c_ab19_a07601a576ee); +::windows_core::imp::interface_hierarchy!(ICompositionDrawingSurfaceInterop, ::windows_core::IUnknown); impl ICompositionDrawingSurfaceInterop { pub unsafe fn BeginDraw(&self, updaterect: ::core::option::Option<*const super::super::super::Foundation::RECT>, updateoffset: *mut super::super::super::Foundation::POINT) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).BeginDraw)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(updaterect.unwrap_or(::std::ptr::null())), &T::IID, &mut result__, updateoffset).from_abi(result__) @@ -55,13 +46,6 @@ impl ICompositionDrawingSurfaceInterop { (::windows_core::Interface::vtable(self).SuspendDraw)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ICompositionDrawingSurfaceInterop, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionDrawingSurfaceInterop { - type Vtable = ICompositionDrawingSurfaceInterop_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionDrawingSurfaceInterop { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfd04e6e3_fe0c_4c3c_ab19_a07601a576ee); -} #[repr(C)] #[doc(hidden)] pub struct ICompositionDrawingSurfaceInterop_Vtbl { @@ -73,13 +57,12 @@ pub struct ICompositionDrawingSurfaceInterop_Vtbl { pub ResumeDraw: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SuspendDraw: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionDrawingSurfaceInterop2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICompositionDrawingSurfaceInterop2, ICompositionDrawingSurfaceInterop2_Vtbl, 0x41e64aae_98c0_4239_8e95_a330dd6aa18b); +::windows_core::imp::interface_hierarchy!(ICompositionDrawingSurfaceInterop2, ::windows_core::IUnknown, ICompositionDrawingSurfaceInterop); impl ICompositionDrawingSurfaceInterop2 { pub unsafe fn BeginDraw(&self, updaterect: ::core::option::Option<*const super::super::super::Foundation::RECT>, updateoffset: *mut super::super::super::Foundation::POINT) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.BeginDraw)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(updaterect.unwrap_or(::std::ptr::null())), &T::IID, &mut result__, updateoffset).from_abi(result__) @@ -106,22 +89,14 @@ impl ICompositionDrawingSurfaceInterop2 { (::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::imp::interface_hierarchy!(ICompositionDrawingSurfaceInterop2, ::windows_core::IUnknown, ICompositionDrawingSurfaceInterop); -unsafe impl ::windows_core::Interface for ICompositionDrawingSurfaceInterop2 { - type Vtable = ICompositionDrawingSurfaceInterop2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionDrawingSurfaceInterop2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x41e64aae_98c0_4239_8e95_a330dd6aa18b); -} #[repr(C)] #[doc(hidden)] pub struct ICompositionDrawingSurfaceInterop2_Vtbl { pub base__: ICompositionDrawingSurfaceInterop_Vtbl, pub CopySurface: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, destinationresource: *mut ::core::ffi::c_void, destinationoffsetx: i32, destinationoffsety: i32, sourcerectangle: *const super::super::super::Foundation::RECT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositionGraphicsDeviceInterop(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICompositionGraphicsDeviceInterop, ICompositionGraphicsDeviceInterop_Vtbl, 0xa116ff71_f8bf_4c8a_9c98_70779a32a9c8); +::windows_core::imp::interface_hierarchy!(ICompositionGraphicsDeviceInterop, ::windows_core::IUnknown); impl ICompositionGraphicsDeviceInterop { pub unsafe fn GetRenderingDevice(&self) -> ::windows_core::Result<::windows_core::IUnknown> { let mut result__ = ::std::mem::zeroed(); @@ -134,13 +109,6 @@ impl ICompositionGraphicsDeviceInterop { (::windows_core::Interface::vtable(self).SetRenderingDevice)(::windows_core::Interface::as_raw(self), value.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ICompositionGraphicsDeviceInterop, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositionGraphicsDeviceInterop { - type Vtable = ICompositionGraphicsDeviceInterop_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositionGraphicsDeviceInterop { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa116ff71_f8bf_4c8a_9c98_70779a32a9c8); -} #[repr(C)] #[doc(hidden)] pub struct ICompositionGraphicsDeviceInterop_Vtbl { @@ -148,9 +116,8 @@ pub struct ICompositionGraphicsDeviceInterop_Vtbl { pub GetRenderingDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetRenderingDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositorDesktopInterop(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICompositorDesktopInterop, ICompositorDesktopInterop_Vtbl, 0x29e691fa_4567_4dca_b319_d0f207eb6807); +::windows_core::imp::interface_hierarchy!(ICompositorDesktopInterop, ::windows_core::IUnknown); impl ICompositorDesktopInterop { #[doc = "Required features: `\"UI_Composition_Desktop\"`"] #[cfg(feature = "UI_Composition_Desktop")] @@ -166,13 +133,6 @@ impl ICompositorDesktopInterop { (::windows_core::Interface::vtable(self).EnsureOnThread)(::windows_core::Interface::as_raw(self), threadid).ok() } } -::windows_core::imp::interface_hierarchy!(ICompositorDesktopInterop, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositorDesktopInterop { - type Vtable = ICompositorDesktopInterop_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositorDesktopInterop { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x29e691fa_4567_4dca_b319_d0f207eb6807); -} #[repr(C)] #[doc(hidden)] pub struct ICompositorDesktopInterop_Vtbl { @@ -183,9 +143,8 @@ pub struct ICompositorDesktopInterop_Vtbl { CreateDesktopWindowTarget: usize, pub EnsureOnThread: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, threadid: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICompositorInterop(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICompositorInterop, ICompositorInterop_Vtbl, 0x25297d5c_3ad4_4c9c_b5cf_e36a38512330); +::windows_core::imp::interface_hierarchy!(ICompositorInterop, ::windows_core::IUnknown); impl ICompositorInterop { #[doc = "Required features: `\"UI_Composition\"`"] #[cfg(feature = "UI_Composition")] @@ -215,13 +174,6 @@ impl ICompositorInterop { (::windows_core::Interface::vtable(self).CreateGraphicsDevice)(::windows_core::Interface::as_raw(self), renderingdevice.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ICompositorInterop, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICompositorInterop { - type Vtable = ICompositorInterop_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICompositorInterop { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x25297d5c_3ad4_4c9c_b5cf_e36a38512330); -} #[repr(C)] #[doc(hidden)] pub struct ICompositorInterop_Vtbl { @@ -239,31 +191,22 @@ pub struct ICompositorInterop_Vtbl { #[cfg(not(feature = "UI_Composition"))] CreateGraphicsDevice: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDesktopWindowTargetInterop(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDesktopWindowTargetInterop, IDesktopWindowTargetInterop_Vtbl, 0x35dbf59e_e3f9_45b0_81e7_fe75f4145dc9); +::windows_core::imp::interface_hierarchy!(IDesktopWindowTargetInterop, ::windows_core::IUnknown); impl IDesktopWindowTargetInterop { pub unsafe fn Hwnd(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).Hwnd)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDesktopWindowTargetInterop, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDesktopWindowTargetInterop { - type Vtable = IDesktopWindowTargetInterop_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDesktopWindowTargetInterop { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x35dbf59e_e3f9_45b0_81e7_fe75f4145dc9); -} #[repr(C)] #[doc(hidden)] pub struct IDesktopWindowTargetInterop_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Hwnd: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut super::super::super::Foundation::HWND) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVisualInteractionSourceInterop(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVisualInteractionSourceInterop, IVisualInteractionSourceInterop_Vtbl, 0x11f62cd1_2f9d_42d3_b05f_d6790d9e9f8e); +::windows_core::imp::interface_hierarchy!(IVisualInteractionSourceInterop, ::windows_core::IUnknown); impl IVisualInteractionSourceInterop { #[doc = "Required features: `\"Win32_UI_Input_Pointer\"`, `\"Win32_UI_WindowsAndMessaging\"`"] #[cfg(all(feature = "Win32_UI_Input_Pointer", feature = "Win32_UI_WindowsAndMessaging"))] @@ -271,13 +214,6 @@ impl IVisualInteractionSourceInterop { (::windows_core::Interface::vtable(self).TryRedirectForManipulation)(::windows_core::Interface::as_raw(self), pointerinfo).ok() } } -::windows_core::imp::interface_hierarchy!(IVisualInteractionSourceInterop, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVisualInteractionSourceInterop { - type Vtable = IVisualInteractionSourceInterop_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVisualInteractionSourceInterop { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x11f62cd1_2f9d_42d3_b05f_d6790d9e9f8e); -} #[repr(C)] #[doc(hidden)] pub struct IVisualInteractionSourceInterop_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/System/WinRT/CoreInputView/impl.rs b/crates/libs/windows/src/Windows/Win32/System/WinRT/CoreInputView/impl.rs index 95d2d9090f..ce53455700 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WinRT/CoreInputView/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WinRT/CoreInputView/impl.rs @@ -15,6 +15,6 @@ impl ICoreFrameworkInputViewInterop_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 89c0da8c3f..29861ac7c0 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 @@ -1,23 +1,15 @@ -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreFrameworkInputViewInterop(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICoreFrameworkInputViewInterop, ICoreFrameworkInputViewInterop_Vtbl, 0x0e3da342_b11c_484b_9c1c_be0d61c2f6c5); +::windows_core::imp::interface_hierarchy!(ICoreFrameworkInputViewInterop, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ICoreFrameworkInputViewInterop { pub unsafe fn GetForWindow(&self, appwindow: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ICoreFrameworkInputViewInterop, ::windows_core::IUnknown, ::windows_core::IInspectable); -unsafe impl ::windows_core::Interface for ICoreFrameworkInputViewInterop { - type Vtable = ICoreFrameworkInputViewInterop_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreFrameworkInputViewInterop { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0e3da342_b11c_484b_9c1c_be0d61c2f6c5); -} #[repr(C)] #[doc(hidden)] pub struct ICoreFrameworkInputViewInterop_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/System/WinRT/Direct3D11/impl.rs b/crates/libs/windows/src/Windows/Win32/System/WinRT/Direct3D11/impl.rs index 1b6c152583..cc60ec6e90 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WinRT/Direct3D11/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WinRT/Direct3D11/impl.rs @@ -12,6 +12,6 @@ impl IDirect3DDxgiInterfaceAccess_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetInterface: GetInterface:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 87763092e1..6f48ba3099 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 @@ -20,25 +20,17 @@ where let mut result__ = ::std::mem::zeroed(); CreateDirect3D11SurfaceFromDXGISurface(dgxisurface.into_param().abi(), &mut result__).from_abi(result__) } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDirect3DDxgiInterfaceAccess(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDirect3DDxgiInterfaceAccess, IDirect3DDxgiInterfaceAccess_Vtbl, 0xa9b3d012_3df2_4ee3_b8d1_8695f457d3c1); +::windows_core::imp::interface_hierarchy!(IDirect3DDxgiInterfaceAccess, ::windows_core::IUnknown); impl IDirect3DDxgiInterfaceAccess { pub unsafe fn GetInterface(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetInterface)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDirect3DDxgiInterfaceAccess, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDirect3DDxgiInterfaceAccess { - type Vtable = IDirect3DDxgiInterfaceAccess_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDirect3DDxgiInterfaceAccess { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa9b3d012_3df2_4ee3_b8d1_8695f457d3c1); -} #[repr(C)] #[doc(hidden)] pub struct IDirect3DDxgiInterfaceAccess_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/System/WinRT/Display/impl.rs b/crates/libs/windows/src/Windows/Win32/System/WinRT/Display/impl.rs index 4c0e4f06f4..1677574b4d 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WinRT/Display/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WinRT/Display/impl.rs @@ -38,7 +38,7 @@ impl IDisplayDeviceInterop_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDisplayPathInterop_Impl: Sized { @@ -77,6 +77,6 @@ impl IDisplayPathInterop_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 ac28d0804b..ae6c419422 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 @@ -1,6 +1,5 @@ -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDisplayDeviceInterop(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDisplayDeviceInterop, IDisplayDeviceInterop_Vtbl, 0x64338358_366a_471b_bd56_dd8ef48e439b); +::windows_core::imp::interface_hierarchy!(IDisplayDeviceInterop, ::windows_core::IUnknown); impl IDisplayDeviceInterop { #[doc = "Required features: `\"Win32_Security\"`"] #[cfg(feature = "Win32_Security")] @@ -19,13 +18,6 @@ impl IDisplayDeviceInterop { (::windows_core::Interface::vtable(self).OpenSharedHandle)(::windows_core::Interface::as_raw(self), nthandle.into_param().abi(), ::core::mem::transmute(riid), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDisplayDeviceInterop, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDisplayDeviceInterop { - type Vtable = IDisplayDeviceInterop_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDisplayDeviceInterop { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x64338358_366a_471b_bd56_dd8ef48e439b); -} #[repr(C)] #[doc(hidden)] pub struct IDisplayDeviceInterop_Vtbl { @@ -36,9 +28,8 @@ pub struct IDisplayDeviceInterop_Vtbl { CreateSharedHandle: usize, pub OpenSharedHandle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nthandle: super::super::super::Foundation::HANDLE, riid: ::windows_core::GUID, ppvobj: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDisplayPathInterop(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDisplayPathInterop, IDisplayPathInterop_Vtbl, 0xa6ba4205_e59e_4e71_b25b_4e436d21ee3d); +::windows_core::imp::interface_hierarchy!(IDisplayPathInterop, ::windows_core::IUnknown); impl IDisplayPathInterop { pub unsafe fn CreateSourcePresentationHandle(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -49,13 +40,6 @@ impl IDisplayPathInterop { (::windows_core::Interface::vtable(self).GetSourceId)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDisplayPathInterop, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDisplayPathInterop { - type Vtable = IDisplayPathInterop_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDisplayPathInterop { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa6ba4205_e59e_4e71_b25b_4e436d21ee3d); -} #[repr(C)] #[doc(hidden)] pub struct IDisplayPathInterop_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/System/WinRT/Graphics/Capture/impl.rs b/crates/libs/windows/src/Windows/Win32/System/WinRT/Graphics/Capture/impl.rs index 7f084db944..898b348100 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WinRT/Graphics/Capture/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WinRT/Graphics/Capture/impl.rs @@ -26,6 +26,6 @@ impl IGraphicsCaptureItemInterop_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 76b7b6f084..f7c8250a1c 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 @@ -1,11 +1,10 @@ -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGraphicsCaptureItemInterop(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IGraphicsCaptureItemInterop, IGraphicsCaptureItemInterop_Vtbl, 0x3628e81b_3cac_4c60_b7f4_23ce0e0c3356); +::windows_core::imp::interface_hierarchy!(IGraphicsCaptureItemInterop, ::windows_core::IUnknown); impl IGraphicsCaptureItemInterop { pub unsafe fn CreateForWindow(&self, window: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -15,19 +14,12 @@ impl IGraphicsCaptureItemInterop { pub unsafe fn CreateForMonitor(&self, monitor: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IGraphicsCaptureItemInterop, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGraphicsCaptureItemInterop { - type Vtable = IGraphicsCaptureItemInterop_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGraphicsCaptureItemInterop { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3628e81b_3cac_4c60_b7f4_23ce0e0c3356); -} #[repr(C)] #[doc(hidden)] pub struct IGraphicsCaptureItemInterop_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/System/WinRT/Graphics/Direct2D/impl.rs b/crates/libs/windows/src/Windows/Win32/System/WinRT/Graphics/Direct2D/impl.rs index b7bf66795e..d81fda9de1 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WinRT/Graphics/Direct2D/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WinRT/Graphics/Direct2D/impl.rs @@ -38,7 +38,7 @@ impl IGeometrySource2DInterop_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Foundation\"`, `\"Graphics_Effects\"`"] @@ -127,6 +127,6 @@ impl IGraphicsEffectD2D1Interop_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 bbf309ba0d..0b9ab4d67b 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 @@ -1,6 +1,5 @@ -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGeometrySource2DInterop(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IGeometrySource2DInterop, IGeometrySource2DInterop_Vtbl, 0x0657af73_53fd_47cf_84ff_c8492d2a80a3); +::windows_core::imp::interface_hierarchy!(IGeometrySource2DInterop, ::windows_core::IUnknown); impl IGeometrySource2DInterop { #[doc = "Required features: `\"Win32_Graphics_Direct2D\"`"] #[cfg(feature = "Win32_Graphics_Direct2D")] @@ -18,13 +17,6 @@ impl IGeometrySource2DInterop { (::windows_core::Interface::vtable(self).TryGetGeometryUsingFactory)(::windows_core::Interface::as_raw(self), factory.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IGeometrySource2DInterop, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGeometrySource2DInterop { - type Vtable = IGeometrySource2DInterop_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGeometrySource2DInterop { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0657af73_53fd_47cf_84ff_c8492d2a80a3); -} #[repr(C)] #[doc(hidden)] pub struct IGeometrySource2DInterop_Vtbl { @@ -38,9 +30,8 @@ pub struct IGeometrySource2DInterop_Vtbl { #[cfg(not(feature = "Win32_Graphics_Direct2D"))] TryGetGeometryUsingFactory: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGraphicsEffectD2D1Interop(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IGraphicsEffectD2D1Interop, IGraphicsEffectD2D1Interop_Vtbl, 0x2fc57384_a068_44d7_a331_30982fcf7177); +::windows_core::imp::interface_hierarchy!(IGraphicsEffectD2D1Interop, ::windows_core::IUnknown); impl IGraphicsEffectD2D1Interop { pub unsafe fn GetEffectId(&self) -> ::windows_core::Result<::windows_core::GUID> { let mut result__ = ::std::mem::zeroed(); @@ -73,13 +64,6 @@ impl IGraphicsEffectD2D1Interop { (::windows_core::Interface::vtable(self).GetSourceCount)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IGraphicsEffectD2D1Interop, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGraphicsEffectD2D1Interop { - type Vtable = IGraphicsEffectD2D1Interop_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGraphicsEffectD2D1Interop { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2fc57384_a068_44d7_a331_30982fcf7177); -} #[repr(C)] #[doc(hidden)] pub struct IGraphicsEffectD2D1Interop_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/System/WinRT/Graphics/Imaging/impl.rs b/crates/libs/windows/src/Windows/Win32/System/WinRT/Graphics/Imaging/impl.rs index 8cc0dbd9a0..32acc5a88f 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WinRT/Graphics/Imaging/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WinRT/Graphics/Imaging/impl.rs @@ -12,7 +12,7 @@ impl ISoftwareBitmapNative_Vtbl { Self { base__: ::windows_core::IInspectable_Vtbl::new::(), GetData: GetData:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Imaging\"`, `\"Win32_Media_MediaFoundation\"`"] @@ -43,6 +43,6 @@ impl ISoftwareBitmapNativeFactory_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 61b2975154..a36c26b6b3 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 @@ -1,31 +1,22 @@ -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISoftwareBitmapNative(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISoftwareBitmapNative, ISoftwareBitmapNative_Vtbl, 0x94bc8415_04ea_4b2e_af13_4de95aa898eb); +::windows_core::imp::interface_hierarchy!(ISoftwareBitmapNative, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ISoftwareBitmapNative { pub unsafe fn GetData(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetData)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISoftwareBitmapNative, ::windows_core::IUnknown, ::windows_core::IInspectable); -unsafe impl ::windows_core::Interface for ISoftwareBitmapNative { - type Vtable = ISoftwareBitmapNative_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISoftwareBitmapNative { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x94bc8415_04ea_4b2e_af13_4de95aa898eb); -} #[repr(C)] #[doc(hidden)] pub struct ISoftwareBitmapNative_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISoftwareBitmapNativeFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISoftwareBitmapNativeFactory, ISoftwareBitmapNativeFactory_Vtbl, 0xc3c181ec_2914_4791_af02_02d224a10b43); +::windows_core::imp::interface_hierarchy!(ISoftwareBitmapNativeFactory, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ISoftwareBitmapNativeFactory { #[doc = "Required features: `\"Win32_Graphics_Imaging\"`"] #[cfg(feature = "Win32_Graphics_Imaging")] @@ -33,7 +24,7 @@ impl ISoftwareBitmapNativeFactory { where P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -44,19 +35,12 @@ impl ISoftwareBitmapNativeFactory { where P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISoftwareBitmapNativeFactory, ::windows_core::IUnknown, ::windows_core::IInspectable); -unsafe impl ::windows_core::Interface for ISoftwareBitmapNativeFactory { - type Vtable = ISoftwareBitmapNativeFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISoftwareBitmapNativeFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc3c181ec_2914_4791_af02_02d224a10b43); -} #[repr(C)] #[doc(hidden)] pub struct ISoftwareBitmapNativeFactory_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/System/WinRT/Holographic/impl.rs b/crates/libs/windows/src/Windows/Win32/System/WinRT/Holographic/impl.rs index 40950ce871..1a7ef454c0 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WinRT/Holographic/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WinRT/Holographic/impl.rs @@ -59,7 +59,7 @@ impl IHolographicCameraInterop_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] @@ -90,7 +90,7 @@ impl IHolographicCameraRenderingParametersInterop_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`, `\"Win32_Graphics_Dxgi_Common\"`"] @@ -154,7 +154,7 @@ impl IHolographicQuadLayerInterop_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] @@ -178,6 +178,6 @@ impl IHolographicQuadLayerUpdateParametersInterop_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 de66e7a8cb..e8bae913b6 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 @@ -1,6 +1,5 @@ -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHolographicCameraInterop(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IHolographicCameraInterop, IHolographicCameraInterop_Vtbl, 0x7cc1f9c5_6d02_41fa_9500_e1809eb48eec); +::windows_core::imp::interface_hierarchy!(IHolographicCameraInterop, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IHolographicCameraInterop { #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`, `\"Win32_Graphics_Dxgi_Common\"`"] #[cfg(all(feature = "Win32_Graphics_Direct3D12", feature = "Win32_Graphics_Dxgi_Common"))] @@ -48,13 +47,6 @@ impl IHolographicCameraInterop { (::windows_core::Interface::vtable(self).UnacquireDirect3D12BufferResource)(::windows_core::Interface::as_raw(self), presourcetounacquire.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IHolographicCameraInterop, ::windows_core::IUnknown, ::windows_core::IInspectable); -unsafe impl ::windows_core::Interface for IHolographicCameraInterop { - type Vtable = IHolographicCameraInterop_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHolographicCameraInterop { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7cc1f9c5_6d02_41fa_9500_e1809eb48eec); -} #[repr(C)] #[doc(hidden)] pub struct IHolographicCameraInterop_Vtbl { @@ -80,9 +72,8 @@ pub struct IHolographicCameraInterop_Vtbl { #[cfg(not(feature = "Win32_Graphics_Direct3D12"))] UnacquireDirect3D12BufferResource: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHolographicCameraRenderingParametersInterop(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IHolographicCameraRenderingParametersInterop, IHolographicCameraRenderingParametersInterop_Vtbl, 0xf75b68d6_d1fd_4707_aafd_fa6f4c0e3bf4); +::windows_core::imp::interface_hierarchy!(IHolographicCameraRenderingParametersInterop, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IHolographicCameraRenderingParametersInterop { #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] #[cfg(feature = "Win32_Graphics_Direct3D12")] @@ -105,13 +96,6 @@ impl IHolographicCameraRenderingParametersInterop { (::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::imp::interface_hierarchy!(IHolographicCameraRenderingParametersInterop, ::windows_core::IUnknown, ::windows_core::IInspectable); -unsafe impl ::windows_core::Interface for IHolographicCameraRenderingParametersInterop { - type Vtable = IHolographicCameraRenderingParametersInterop_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHolographicCameraRenderingParametersInterop { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf75b68d6_d1fd_4707_aafd_fa6f4c0e3bf4); -} #[repr(C)] #[doc(hidden)] pub struct IHolographicCameraRenderingParametersInterop_Vtbl { @@ -125,9 +109,8 @@ pub struct IHolographicCameraRenderingParametersInterop_Vtbl { #[cfg(not(feature = "Win32_Graphics_Direct3D12"))] CommitDirect3D12ResourceWithDepthData: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHolographicQuadLayerInterop(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IHolographicQuadLayerInterop, IHolographicQuadLayerInterop_Vtbl, 0xcfa688f0_639e_4a47_83d7_6b7f5ebf7fed); +::windows_core::imp::interface_hierarchy!(IHolographicQuadLayerInterop, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IHolographicQuadLayerInterop { #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`, `\"Win32_Graphics_Dxgi_Common\"`"] #[cfg(all(feature = "Win32_Graphics_Direct3D12", feature = "Win32_Graphics_Dxgi_Common"))] @@ -175,13 +158,6 @@ impl IHolographicQuadLayerInterop { (::windows_core::Interface::vtable(self).UnacquireDirect3D12BufferResource)(::windows_core::Interface::as_raw(self), presourcetounacquire.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IHolographicQuadLayerInterop, ::windows_core::IUnknown, ::windows_core::IInspectable); -unsafe impl ::windows_core::Interface for IHolographicQuadLayerInterop { - type Vtable = IHolographicQuadLayerInterop_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHolographicQuadLayerInterop { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcfa688f0_639e_4a47_83d7_6b7f5ebf7fed); -} #[repr(C)] #[doc(hidden)] pub struct IHolographicQuadLayerInterop_Vtbl { @@ -207,9 +183,8 @@ pub struct IHolographicQuadLayerInterop_Vtbl { #[cfg(not(feature = "Win32_Graphics_Direct3D12"))] UnacquireDirect3D12BufferResource: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHolographicQuadLayerUpdateParametersInterop(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IHolographicQuadLayerUpdateParametersInterop, IHolographicQuadLayerUpdateParametersInterop_Vtbl, 0xe5f549cd_c909_444f_8809_7cc18a9c8920); +::windows_core::imp::interface_hierarchy!(IHolographicQuadLayerUpdateParametersInterop, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IHolographicQuadLayerUpdateParametersInterop { #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] #[cfg(feature = "Win32_Graphics_Direct3D12")] @@ -221,13 +196,6 @@ impl IHolographicQuadLayerUpdateParametersInterop { (::windows_core::Interface::vtable(self).CommitDirect3D12Resource)(::windows_core::Interface::as_raw(self), pcolorresourcetocommit.into_param().abi(), pcolorresourcefence.into_param().abi(), colorresourcefencesignalvalue).ok() } } -::windows_core::imp::interface_hierarchy!(IHolographicQuadLayerUpdateParametersInterop, ::windows_core::IUnknown, ::windows_core::IInspectable); -unsafe impl ::windows_core::Interface for IHolographicQuadLayerUpdateParametersInterop { - type Vtable = IHolographicQuadLayerUpdateParametersInterop_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHolographicQuadLayerUpdateParametersInterop { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe5f549cd_c909_444f_8809_7cc18a9c8920); -} #[repr(C)] #[doc(hidden)] pub struct IHolographicQuadLayerUpdateParametersInterop_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/System/WinRT/Isolation/impl.rs b/crates/libs/windows/src/Windows/Win32/System/WinRT/Isolation/impl.rs index 270588d77a..626fa7dc82 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WinRT/Isolation/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WinRT/Isolation/impl.rs @@ -18,6 +18,6 @@ impl IIsolatedEnvironmentInterop_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetHostHwndInterop: GetHostHwndInterop:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 eab5adf169..206e11e465 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 @@ -1,6 +1,5 @@ -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIsolatedEnvironmentInterop(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IIsolatedEnvironmentInterop, IIsolatedEnvironmentInterop_Vtbl, 0x85713c2e_8e62_46c5_8de2_c647e1d54636); +::windows_core::imp::interface_hierarchy!(IIsolatedEnvironmentInterop, ::windows_core::IUnknown); impl IIsolatedEnvironmentInterop { pub unsafe fn GetHostHwndInterop(&self, containerhwnd: P0) -> ::windows_core::Result where @@ -10,13 +9,6 @@ impl IIsolatedEnvironmentInterop { (::windows_core::Interface::vtable(self).GetHostHwndInterop)(::windows_core::Interface::as_raw(self), containerhwnd.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IIsolatedEnvironmentInterop, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIsolatedEnvironmentInterop { - type Vtable = IIsolatedEnvironmentInterop_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIsolatedEnvironmentInterop { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x85713c2e_8e62_46c5_8de2_c647e1d54636); -} #[repr(C)] #[doc(hidden)] pub struct IIsolatedEnvironmentInterop_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/System/WinRT/ML/impl.rs b/crates/libs/windows/src/Windows/Win32/System/WinRT/ML/impl.rs index 3fdb528711..7b1bbd6922 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WinRT/ML/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WinRT/ML/impl.rs @@ -25,7 +25,7 @@ impl ILearningModelDeviceFactoryNative_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_AI_MachineLearning_WinML\"`"] @@ -52,7 +52,7 @@ impl ILearningModelOperatorProviderNative_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetRegistry: GetRegistry:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ILearningModelSessionOptionsNative_Impl: Sized { @@ -72,7 +72,7 @@ impl ILearningModelSessionOptionsNative_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ILearningModelSessionOptionsNative1_Impl: Sized { @@ -89,7 +89,7 @@ impl ILearningModelSessionOptionsNative1_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), SetIntraOpThreadSpinning: SetIntraOpThreadSpinning:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] @@ -126,7 +126,7 @@ impl ITensorNative_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] @@ -147,6 +147,6 @@ impl ITensorStaticsNative_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CreateFromD3D12Resource: CreateFromD3D12Resource:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 5023347a2a..0280334dca 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 @@ -1,6 +1,5 @@ -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILearningModelDeviceFactoryNative(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ILearningModelDeviceFactoryNative, ILearningModelDeviceFactoryNative_Vtbl, 0x1e9b31a1_662e_4ae0_af67_f63bb337e634); +::windows_core::imp::interface_hierarchy!(ILearningModelDeviceFactoryNative, ::windows_core::IUnknown); impl ILearningModelDeviceFactoryNative { #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] #[cfg(feature = "Win32_Graphics_Direct3D12")] @@ -12,13 +11,6 @@ impl ILearningModelDeviceFactoryNative { (::windows_core::Interface::vtable(self).CreateFromD3D12CommandQueue)(::windows_core::Interface::as_raw(self), value.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ILearningModelDeviceFactoryNative, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILearningModelDeviceFactoryNative { - type Vtable = ILearningModelDeviceFactoryNative_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILearningModelDeviceFactoryNative { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1e9b31a1_662e_4ae0_af67_f63bb337e634); -} #[repr(C)] #[doc(hidden)] pub struct ILearningModelDeviceFactoryNative_Vtbl { @@ -28,9 +20,8 @@ pub struct ILearningModelDeviceFactoryNative_Vtbl { #[cfg(not(feature = "Win32_Graphics_Direct3D12"))] CreateFromD3D12CommandQueue: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILearningModelOperatorProviderNative(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ILearningModelOperatorProviderNative, ILearningModelOperatorProviderNative_Vtbl, 0x1adaa23a_eb67_41f3_aad8_5d984e9bacd4); +::windows_core::imp::interface_hierarchy!(ILearningModelOperatorProviderNative, ::windows_core::IUnknown); impl ILearningModelOperatorProviderNative { #[doc = "Required features: `\"Win32_AI_MachineLearning_WinML\"`"] #[cfg(feature = "Win32_AI_MachineLearning_WinML")] @@ -39,13 +30,6 @@ impl ILearningModelOperatorProviderNative { (::windows_core::Interface::vtable(self).GetRegistry)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ILearningModelOperatorProviderNative, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILearningModelOperatorProviderNative { - type Vtable = ILearningModelOperatorProviderNative_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILearningModelOperatorProviderNative { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1adaa23a_eb67_41f3_aad8_5d984e9bacd4); -} #[repr(C)] #[doc(hidden)] pub struct ILearningModelOperatorProviderNative_Vtbl { @@ -55,51 +39,34 @@ pub struct ILearningModelOperatorProviderNative_Vtbl { #[cfg(not(feature = "Win32_AI_MachineLearning_WinML"))] GetRegistry: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILearningModelSessionOptionsNative(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ILearningModelSessionOptionsNative, ILearningModelSessionOptionsNative_Vtbl, 0xc71e953f_37b4_4564_8658_d8396866db0d); +::windows_core::imp::interface_hierarchy!(ILearningModelSessionOptionsNative, ::windows_core::IUnknown); impl ILearningModelSessionOptionsNative { pub unsafe fn SetIntraOpNumThreadsOverride(&self, intraopnumthreads: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetIntraOpNumThreadsOverride)(::windows_core::Interface::as_raw(self), intraopnumthreads).ok() } } -::windows_core::imp::interface_hierarchy!(ILearningModelSessionOptionsNative, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILearningModelSessionOptionsNative { - type Vtable = ILearningModelSessionOptionsNative_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILearningModelSessionOptionsNative { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc71e953f_37b4_4564_8658_d8396866db0d); -} #[repr(C)] #[doc(hidden)] pub struct ILearningModelSessionOptionsNative_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub SetIntraOpNumThreadsOverride: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, intraopnumthreads: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILearningModelSessionOptionsNative1(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ILearningModelSessionOptionsNative1, ILearningModelSessionOptionsNative1_Vtbl, 0x5da37a26_0526_414b_91e4_2a0fa3ddba40); +::windows_core::imp::interface_hierarchy!(ILearningModelSessionOptionsNative1, ::windows_core::IUnknown); impl ILearningModelSessionOptionsNative1 { pub unsafe fn SetIntraOpThreadSpinning(&self, allowspinning: u8) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetIntraOpThreadSpinning)(::windows_core::Interface::as_raw(self), allowspinning).ok() } } -::windows_core::imp::interface_hierarchy!(ILearningModelSessionOptionsNative1, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILearningModelSessionOptionsNative1 { - type Vtable = ILearningModelSessionOptionsNative1_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILearningModelSessionOptionsNative1 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5da37a26_0526_414b_91e4_2a0fa3ddba40); -} #[repr(C)] #[doc(hidden)] pub struct ILearningModelSessionOptionsNative1_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub SetIntraOpThreadSpinning: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, allowspinning: u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITensorNative(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITensorNative, ITensorNative_Vtbl, 0x52f547ef_5b03_49b5_82d6_565f1ee0dd49); +::windows_core::imp::interface_hierarchy!(ITensorNative, ::windows_core::IUnknown); impl ITensorNative { pub unsafe fn GetBuffer(&self, value: *mut *mut u8, capacity: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetBuffer)(::windows_core::Interface::as_raw(self), value, capacity).ok() @@ -111,13 +78,6 @@ impl ITensorNative { (::windows_core::Interface::vtable(self).GetD3D12Resource)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITensorNative, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITensorNative { - type Vtable = ITensorNative_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITensorNative { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x52f547ef_5b03_49b5_82d6_565f1ee0dd49); -} #[repr(C)] #[doc(hidden)] pub struct ITensorNative_Vtbl { @@ -128,9 +88,8 @@ pub struct ITensorNative_Vtbl { #[cfg(not(feature = "Win32_Graphics_Direct3D12"))] GetD3D12Resource: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITensorStaticsNative(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITensorStaticsNative, ITensorStaticsNative_Vtbl, 0x39d055a4_66f6_4ebc_95d9_7a29ebe7690a); +::windows_core::imp::interface_hierarchy!(ITensorStaticsNative, ::windows_core::IUnknown); impl ITensorStaticsNative { #[doc = "Required features: `\"Win32_Graphics_Direct3D12\"`"] #[cfg(feature = "Win32_Graphics_Direct3D12")] @@ -141,13 +100,6 @@ impl ITensorStaticsNative { (::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::imp::interface_hierarchy!(ITensorStaticsNative, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITensorStaticsNative { - type Vtable = ITensorStaticsNative_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITensorStaticsNative { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x39d055a4_66f6_4ebc_95d9_7a29ebe7690a); -} #[repr(C)] #[doc(hidden)] pub struct ITensorStaticsNative_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/System/WinRT/Media/impl.rs b/crates/libs/windows/src/Windows/Win32/System/WinRT/Media/impl.rs index 1237d65f3d..8d58c6c197 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WinRT/Media/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WinRT/Media/impl.rs @@ -12,7 +12,7 @@ impl IAudioFrameNative_Vtbl { Self { base__: ::windows_core::IInspectable_Vtbl::new::(), GetData: GetData:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Media_MediaFoundation\"`"] @@ -36,7 +36,7 @@ impl IAudioFrameNativeFactory_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVideoFrameNative_Impl: Sized { @@ -63,7 +63,7 @@ impl IVideoFrameNative_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Media_MediaFoundation\"`"] @@ -87,6 +87,6 @@ impl IVideoFrameNativeFactory_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 c851f5955a..569625afb9 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 @@ -1,31 +1,22 @@ -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioFrameNative(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioFrameNative, IAudioFrameNative_Vtbl, 0x20be1e2e_930f_4746_9335_3c332f255093); +::windows_core::imp::interface_hierarchy!(IAudioFrameNative, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IAudioFrameNative { pub unsafe fn GetData(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetData)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAudioFrameNative, ::windows_core::IUnknown, ::windows_core::IInspectable); -unsafe impl ::windows_core::Interface for IAudioFrameNative { - type Vtable = IAudioFrameNative_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioFrameNative { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x20be1e2e_930f_4746_9335_3c332f255093); -} #[repr(C)] #[doc(hidden)] pub struct IAudioFrameNative_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioFrameNativeFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioFrameNativeFactory, IAudioFrameNativeFactory_Vtbl, 0x7bd67cf8_bf7d_43e6_af8d_b170ee0c0110); +::windows_core::imp::interface_hierarchy!(IAudioFrameNativeFactory, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IAudioFrameNativeFactory { #[doc = "Required features: `\"Win32_Media_MediaFoundation\"`"] #[cfg(feature = "Win32_Media_MediaFoundation")] @@ -33,19 +24,12 @@ impl IAudioFrameNativeFactory { where P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAudioFrameNativeFactory, ::windows_core::IUnknown, ::windows_core::IInspectable); -unsafe impl ::windows_core::Interface for IAudioFrameNativeFactory { - type Vtable = IAudioFrameNativeFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioFrameNativeFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7bd67cf8_bf7d_43e6_af8d_b170ee0c0110); -} #[repr(C)] #[doc(hidden)] pub struct IAudioFrameNativeFactory_Vtbl { @@ -55,32 +39,24 @@ pub struct IAudioFrameNativeFactory_Vtbl { #[cfg(not(feature = "Win32_Media_MediaFoundation"))] CreateFromMFSample: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVideoFrameNative(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVideoFrameNative, IVideoFrameNative_Vtbl, 0x26ba702b_314a_4620_aaf6_7a51aa58fa18); +::windows_core::imp::interface_hierarchy!(IVideoFrameNative, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IVideoFrameNative { pub unsafe fn GetData(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetData)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) } pub unsafe fn GetDevice(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetDevice)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IVideoFrameNative, ::windows_core::IUnknown, ::windows_core::IInspectable); -unsafe impl ::windows_core::Interface for IVideoFrameNative { - type Vtable = IVideoFrameNative_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVideoFrameNative { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x26ba702b_314a_4620_aaf6_7a51aa58fa18); -} #[repr(C)] #[doc(hidden)] pub struct IVideoFrameNative_Vtbl { @@ -88,9 +64,8 @@ pub struct IVideoFrameNative_Vtbl { pub GetData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVideoFrameNativeFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVideoFrameNativeFactory, IVideoFrameNativeFactory_Vtbl, 0x69e3693e_8e1e_4e63_ac4c_7fdc21d9731d); +::windows_core::imp::interface_hierarchy!(IVideoFrameNativeFactory, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IVideoFrameNativeFactory { #[doc = "Required features: `\"Win32_Media_MediaFoundation\"`"] #[cfg(feature = "Win32_Media_MediaFoundation")] @@ -99,19 +74,12 @@ impl IVideoFrameNativeFactory { P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, P2: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IVideoFrameNativeFactory, ::windows_core::IUnknown, ::windows_core::IInspectable); -unsafe impl ::windows_core::Interface for IVideoFrameNativeFactory { - type Vtable = IVideoFrameNativeFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVideoFrameNativeFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x69e3693e_8e1e_4e63_ac4c_7fdc21d9731d); -} #[repr(C)] #[doc(hidden)] pub struct IVideoFrameNativeFactory_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/System/WinRT/Metadata/impl.rs b/crates/libs/windows/src/Windows/Win32/System/WinRT/Metadata/impl.rs index 15522238be..34cde5e742 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WinRT/Metadata/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WinRT/Metadata/impl.rs @@ -119,7 +119,7 @@ impl ICeeGen_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IHostFilter_Impl: Sized { @@ -136,7 +136,7 @@ impl IHostFilter_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), MarkToken: MarkToken:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMapToken_Impl: Sized { @@ -153,7 +153,7 @@ impl IMapToken_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Map: Map:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMetaDataAssemblyEmit_Impl: Sized { @@ -236,7 +236,7 @@ impl IMetaDataAssemblyEmit_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMetaDataAssemblyImport_Impl: Sized { @@ -347,7 +347,7 @@ impl IMetaDataAssemblyImport_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMetaDataDispenser_Impl: Sized { @@ -399,7 +399,7 @@ impl IMetaDataDispenser_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -464,7 +464,7 @@ impl IMetaDataDispenserEx_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -838,7 +838,7 @@ impl IMetaDataEmit_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -911,7 +911,7 @@ impl IMetaDataEmit2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IMetaDataError_Impl: Sized { @@ -928,7 +928,7 @@ impl IMetaDataError_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnError: OnError:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMetaDataFilter_Impl: Sized { @@ -962,7 +962,7 @@ impl IMetaDataFilter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMetaDataImport_Impl: Sized { @@ -1457,7 +1457,7 @@ impl IMetaDataImport_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMetaDataImport2_Impl: Sized + IMetaDataImport_Impl { @@ -1526,7 +1526,7 @@ impl IMetaDataImport2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IMetaDataInfo_Impl: Sized { @@ -1543,7 +1543,7 @@ impl IMetaDataInfo_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetFileMapping: GetFileMapping:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMetaDataTables_Impl: Sized { @@ -1689,7 +1689,7 @@ impl IMetaDataTables_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMetaDataTables2_Impl: Sized + IMetaDataTables_Impl { @@ -1716,7 +1716,7 @@ impl IMetaDataTables2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IMetaDataValidate_Impl: Sized { @@ -1743,7 +1743,7 @@ impl IMetaDataValidate_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMetaDataWinMDImport_Impl: Sized { @@ -1763,7 +1763,7 @@ impl IMetaDataWinMDImport_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRoMetaDataLocator_Impl: Sized { 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 e2f4294080..ee7da53cd0 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 @@ -89,9 +89,8 @@ pub unsafe fn RoResolveNamespace(name: &::windows_core::HSTRING, windowsmetadata ) .ok() } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICeeGen(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICeeGen, ICeeGen_Vtbl, 0x7ed1bdff_8e36_11d2_9c56_00a0c9b7cc45); +::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 @@ -146,13 +145,6 @@ impl ICeeGen { (::windows_core::Interface::vtable(self).ComputePointer)(::windows_core::Interface::as_raw(self), section, rva, lpbuffer).ok() } } -::windows_core::imp::interface_hierarchy!(ICeeGen, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICeeGen { - type Vtable = ICeeGen_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICeeGen { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7ed1bdff_8e36_11d2_9c56_00a0c9b7cc45); -} #[repr(C)] #[doc(hidden)] pub struct ICeeGen_Vtbl { @@ -173,51 +165,34 @@ pub struct ICeeGen_Vtbl { pub GenerateCeeMemoryImage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppimage: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ComputePointer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, section: *mut ::core::ffi::c_void, rva: u32, lpbuffer: *mut *mut u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHostFilter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IHostFilter, IHostFilter_Vtbl, 0xd0e80dd3_12d4_11d3_b39d_00c04ff81795); +::windows_core::imp::interface_hierarchy!(IHostFilter, ::windows_core::IUnknown); impl IHostFilter { pub unsafe fn MarkToken(&self, tk: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).MarkToken)(::windows_core::Interface::as_raw(self), tk).ok() } } -::windows_core::imp::interface_hierarchy!(IHostFilter, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHostFilter { - type Vtable = IHostFilter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHostFilter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd0e80dd3_12d4_11d3_b39d_00c04ff81795); -} #[repr(C)] #[doc(hidden)] pub struct IHostFilter_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub MarkToken: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, tk: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMapToken(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMapToken, IMapToken_Vtbl, 0x06a3ea8b_0225_11d1_bf72_00c04fc31e12); +::windows_core::imp::interface_hierarchy!(IMapToken, ::windows_core::IUnknown); impl IMapToken { pub unsafe fn Map(&self, tkimp: u32, tkemit: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Map)(::windows_core::Interface::as_raw(self), tkimp, tkemit).ok() } } -::windows_core::imp::interface_hierarchy!(IMapToken, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMapToken { - type Vtable = IMapToken_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMapToken { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x06a3ea8b_0225_11d1_bf72_00c04fc31e12); -} #[repr(C)] #[doc(hidden)] pub struct IMapToken_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Map: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, tkimp: u32, tkemit: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMetaDataAssemblyEmit(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMetaDataAssemblyEmit, IMetaDataAssemblyEmit_Vtbl, 0x211ef15b_5317_4438_b196_dec87b887693); +::windows_core::imp::interface_hierarchy!(IMetaDataAssemblyEmit, ::windows_core::IUnknown); 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 @@ -271,13 +246,6 @@ impl IMetaDataAssemblyEmit { (::windows_core::Interface::vtable(self).SetManifestResourceProps)(::windows_core::Interface::as_raw(self), mr, tkimplementation, dwoffset, dwresourceflags).ok() } } -::windows_core::imp::interface_hierarchy!(IMetaDataAssemblyEmit, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMetaDataAssemblyEmit { - type Vtable = IMetaDataAssemblyEmit_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMetaDataAssemblyEmit { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x211ef15b_5317_4438_b196_dec87b887693); -} #[repr(C)] #[doc(hidden)] pub struct IMetaDataAssemblyEmit_Vtbl { @@ -293,9 +261,8 @@ pub struct IMetaDataAssemblyEmit_Vtbl { pub SetExportedTypeProps: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ct: u32, tkimplementation: u32, tktypedef: u32, dwexportedtypeflags: u32) -> ::windows_core::HRESULT, pub SetManifestResourceProps: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mr: u32, tkimplementation: u32, dwoffset: u32, dwresourceflags: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMetaDataAssemblyImport(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMetaDataAssemblyImport, IMetaDataAssemblyImport_Vtbl, 0xee62470b_e94b_424e_9b7c_2f00c9249f93); +::windows_core::imp::interface_hierarchy!(IMetaDataAssemblyImport, ::windows_core::IUnknown); impl IMetaDataAssemblyImport { pub unsafe fn GetAssemblyProps(&self, mda: u32, ppbpublickey: *const *const ::core::ffi::c_void, pcbpublickey: *mut u32, pulhashalgid: *mut u32, szname: ::core::option::Option<&mut [u16]>, pchname: *mut u32, pmetadata: *mut ASSEMBLYMETADATA, pdwassemblyflags: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetAssemblyProps)(::windows_core::Interface::as_raw(self), mda, ppbpublickey, pcbpublickey, pulhashalgid, ::core::mem::transmute(szname.as_deref().map_or(::core::ptr::null(), |slice| slice.as_ptr())), szname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pchname, pmetadata, pdwassemblyflags).ok() @@ -351,13 +318,6 @@ impl IMetaDataAssemblyImport { (::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::imp::interface_hierarchy!(IMetaDataAssemblyImport, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMetaDataAssemblyImport { - type Vtable = IMetaDataAssemblyImport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMetaDataAssemblyImport { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xee62470b_e94b_424e_9b7c_2f00c9249f93); -} #[repr(C)] #[doc(hidden)] pub struct IMetaDataAssemblyImport_Vtbl { @@ -377,9 +337,8 @@ pub struct IMetaDataAssemblyImport_Vtbl { pub CloseEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, henum: *mut ::core::ffi::c_void), pub FindAssembliesByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, szappbase: ::windows_core::PCWSTR, szprivatebin: ::windows_core::PCWSTR, szassemblyname: ::windows_core::PCWSTR, ppiunk: *mut *mut ::core::ffi::c_void, cmax: u32, pcassemblies: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMetaDataDispenser(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMetaDataDispenser, IMetaDataDispenser_Vtbl, 0x809c652e_7396_11d2_9771_00a0c9b4d50c); +::windows_core::imp::interface_hierarchy!(IMetaDataDispenser, ::windows_core::IUnknown); impl IMetaDataDispenser { pub unsafe fn DefineScope(&self, rclsid: *const ::windows_core::GUID, dwcreateflags: u32, riid: *const ::windows_core::GUID) -> ::windows_core::Result<::windows_core::IUnknown> { let mut result__ = ::std::mem::zeroed(); @@ -397,13 +356,6 @@ impl IMetaDataDispenser { (::windows_core::Interface::vtable(self).OpenScopeOnMemory)(::windows_core::Interface::as_raw(self), pdata, cbdata, dwopenflags, riid, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMetaDataDispenser, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMetaDataDispenser { - type Vtable = IMetaDataDispenser_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMetaDataDispenser { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x809c652e_7396_11d2_9771_00a0c9b4d50c); -} #[repr(C)] #[doc(hidden)] pub struct IMetaDataDispenser_Vtbl { @@ -412,9 +364,8 @@ pub struct IMetaDataDispenser_Vtbl { pub OpenScope: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, szscope: ::windows_core::PCWSTR, dwopenflags: u32, riid: *const ::windows_core::GUID, ppiunk: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub OpenScopeOnMemory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdata: *const ::core::ffi::c_void, cbdata: u32, dwopenflags: u32, riid: *const ::windows_core::GUID, ppiunk: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMetaDataDispenserEx(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMetaDataDispenserEx, IMetaDataDispenserEx_Vtbl, 0x31bcfce2_dafb_11d2_9f81_00c04f79a0a3); +::windows_core::imp::interface_hierarchy!(IMetaDataDispenserEx, ::windows_core::IUnknown, IMetaDataDispenser); impl IMetaDataDispenserEx { pub unsafe fn DefineScope(&self, rclsid: *const ::windows_core::GUID, dwcreateflags: u32, riid: *const ::windows_core::GUID) -> ::windows_core::Result<::windows_core::IUnknown> { let mut result__ = ::std::mem::zeroed(); @@ -474,13 +425,6 @@ impl IMetaDataDispenserEx { (::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::imp::interface_hierarchy!(IMetaDataDispenserEx, ::windows_core::IUnknown, IMetaDataDispenser); -unsafe impl ::windows_core::Interface for IMetaDataDispenserEx { - type Vtable = IMetaDataDispenserEx_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMetaDataDispenserEx { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x31bcfce2_dafb_11d2_9f81_00c04f79a0a3); -} #[repr(C)] #[doc(hidden)] pub struct IMetaDataDispenserEx_Vtbl { @@ -501,9 +445,8 @@ pub struct IMetaDataDispenserEx_Vtbl { pub FindAssembly: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, szappbase: ::windows_core::PCWSTR, szprivatebin: ::windows_core::PCWSTR, szglobalbin: ::windows_core::PCWSTR, szassemblyname: ::windows_core::PCWSTR, szname: ::windows_core::PCWSTR, cchname: u32, pcname: *mut u32) -> ::windows_core::HRESULT, pub FindAssemblyModule: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, szappbase: ::windows_core::PCWSTR, szprivatebin: ::windows_core::PCWSTR, szglobalbin: ::windows_core::PCWSTR, szassemblyname: ::windows_core::PCWSTR, szmodulename: ::windows_core::PCWSTR, szname: ::windows_core::PWSTR, cchname: u32, pcname: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMetaDataEmit(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMetaDataEmit, IMetaDataEmit_Vtbl, 0xba3fee4c_ecb9_4e41_83b7_183fa41cd859); +::windows_core::imp::interface_hierarchy!(IMetaDataEmit, ::windows_core::IUnknown); impl IMetaDataEmit { pub unsafe fn SetModuleProps(&self, szname: P0) -> ::windows_core::Result<()> where @@ -733,13 +676,6 @@ impl IMetaDataEmit { (::windows_core::Interface::vtable(self).MergeEnd)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IMetaDataEmit, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMetaDataEmit { - type Vtable = IMetaDataEmit_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMetaDataEmit { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xba3fee4c_ecb9_4e41_83b7_183fa41cd859); -} #[repr(C)] #[doc(hidden)] pub struct IMetaDataEmit_Vtbl { @@ -797,9 +733,8 @@ pub struct IMetaDataEmit_Vtbl { pub Merge: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pimport: *mut ::core::ffi::c_void, phostmaptoken: *mut ::core::ffi::c_void, phandler: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub MergeEnd: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMetaDataEmit2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMetaDataEmit2, IMetaDataEmit2_Vtbl, 0xf5dd9950_f693_42e6_830e_7b833e8146a9); +::windows_core::imp::interface_hierarchy!(IMetaDataEmit2, ::windows_core::IUnknown, IMetaDataEmit); impl IMetaDataEmit2 { pub unsafe fn SetModuleProps(&self, szname: P0) -> ::windows_core::Result<()> where @@ -1067,13 +1002,6 @@ impl IMetaDataEmit2 { (::windows_core::Interface::vtable(self).ResetENCLog)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IMetaDataEmit2, ::windows_core::IUnknown, IMetaDataEmit); -unsafe impl ::windows_core::Interface for IMetaDataEmit2 { - type Vtable = IMetaDataEmit2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMetaDataEmit2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf5dd9950_f693_42e6_830e_7b833e8146a9); -} #[repr(C)] #[doc(hidden)] pub struct IMetaDataEmit2_Vtbl { @@ -1090,30 +1018,21 @@ pub struct IMetaDataEmit2_Vtbl { pub SetGenericParamProps: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, gp: u32, dwparamflags: u32, szname: ::windows_core::PCWSTR, reserved: u32, rtkconstraints: *mut u32) -> ::windows_core::HRESULT, pub ResetENCLog: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMetaDataError(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMetaDataError, IMetaDataError_Vtbl, 0xb81ff171_20f3_11d2_8dcc_00a0c9b09c19); +::windows_core::imp::interface_hierarchy!(IMetaDataError, ::windows_core::IUnknown); impl IMetaDataError { pub unsafe fn OnError(&self, hrerror: ::windows_core::HRESULT, token: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnError)(::windows_core::Interface::as_raw(self), hrerror, token).ok() } } -::windows_core::imp::interface_hierarchy!(IMetaDataError, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMetaDataError { - type Vtable = IMetaDataError_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMetaDataError { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb81ff171_20f3_11d2_8dcc_00a0c9b09c19); -} #[repr(C)] #[doc(hidden)] pub struct IMetaDataError_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hrerror: ::windows_core::HRESULT, token: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMetaDataFilter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMetaDataFilter, IMetaDataFilter_Vtbl, 0xd0e80dd1_12d4_11d3_b39d_00c04ff81795); +::windows_core::imp::interface_hierarchy!(IMetaDataFilter, ::windows_core::IUnknown); impl IMetaDataFilter { pub unsafe fn UnmarkAll(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).UnmarkAll)(::windows_core::Interface::as_raw(self)).ok() @@ -1125,13 +1044,6 @@ impl IMetaDataFilter { (::windows_core::Interface::vtable(self).IsTokenMarked)(::windows_core::Interface::as_raw(self), tk, pismarked).ok() } } -::windows_core::imp::interface_hierarchy!(IMetaDataFilter, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMetaDataFilter { - type Vtable = IMetaDataFilter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMetaDataFilter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd0e80dd1_12d4_11d3_b39d_00c04ff81795); -} #[repr(C)] #[doc(hidden)] pub struct IMetaDataFilter_Vtbl { @@ -1140,9 +1052,8 @@ pub struct IMetaDataFilter_Vtbl { pub MarkToken: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, tk: u32) -> ::windows_core::HRESULT, pub IsTokenMarked: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, tk: u32, pismarked: *mut super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMetaDataImport(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMetaDataImport, IMetaDataImport_Vtbl, 0x7dac8207_d3ae_4c75_9b67_92801a497d44); +::windows_core::imp::interface_hierarchy!(IMetaDataImport, ::windows_core::IUnknown); impl IMetaDataImport { pub unsafe fn CloseEnum(&self, henum: *mut ::core::ffi::c_void) { (::windows_core::Interface::vtable(self).CloseEnum)(::windows_core::Interface::as_raw(self), henum) @@ -1367,13 +1278,6 @@ impl IMetaDataImport { (::windows_core::Interface::vtable(self).IsGlobal)(::windows_core::Interface::as_raw(self), pd, pbglobal).ok() } } -::windows_core::imp::interface_hierarchy!(IMetaDataImport, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMetaDataImport { - type Vtable = IMetaDataImport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMetaDataImport { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7dac8207_d3ae_4c75_9b67_92801a497d44); -} #[repr(C)] #[doc(hidden)] pub struct IMetaDataImport_Vtbl { @@ -1441,9 +1345,8 @@ pub struct IMetaDataImport_Vtbl { pub GetNativeCallConvFromSig: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvsig: *const ::core::ffi::c_void, cbsig: u32, pcallconv: *mut u32) -> ::windows_core::HRESULT, pub IsGlobal: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pd: u32, pbglobal: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMetaDataImport2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMetaDataImport2, IMetaDataImport2_Vtbl, 0xfce5efa0_8bba_4f8e_a036_8f2022b08466); +::windows_core::imp::interface_hierarchy!(IMetaDataImport2, ::windows_core::IUnknown, IMetaDataImport); impl IMetaDataImport2 { pub unsafe fn CloseEnum(&self, henum: *mut ::core::ffi::c_void) { (::windows_core::Interface::vtable(self).base__.CloseEnum)(::windows_core::Interface::as_raw(self), henum) @@ -1692,13 +1595,6 @@ impl IMetaDataImport2 { (::windows_core::Interface::vtable(self).EnumMethodSpecs)(::windows_core::Interface::as_raw(self), phenum, tk, rmethodspecs, cmax, pcmethodspecs).ok() } } -::windows_core::imp::interface_hierarchy!(IMetaDataImport2, ::windows_core::IUnknown, IMetaDataImport); -unsafe impl ::windows_core::Interface for IMetaDataImport2 { - type Vtable = IMetaDataImport2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMetaDataImport2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfce5efa0_8bba_4f8e_a036_8f2022b08466); -} #[repr(C)] #[doc(hidden)] pub struct IMetaDataImport2_Vtbl { @@ -1712,30 +1608,21 @@ pub struct IMetaDataImport2_Vtbl { pub GetVersionString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwzbuf: ::windows_core::PWSTR, ccbufsize: u32, pccbufsize: *mut u32) -> ::windows_core::HRESULT, pub EnumMethodSpecs: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phenum: *mut *mut ::core::ffi::c_void, tk: u32, rmethodspecs: *mut u32, cmax: u32, pcmethodspecs: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMetaDataInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMetaDataInfo, IMetaDataInfo_Vtbl, 0x7998ea64_7f95_48b8_86fc_17caf48bf5cb); +::windows_core::imp::interface_hierarchy!(IMetaDataInfo, ::windows_core::IUnknown); impl IMetaDataInfo { pub unsafe fn GetFileMapping(&self, ppvdata: *const *const ::core::ffi::c_void, pcbdata: *mut u64, pdwmappingtype: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetFileMapping)(::windows_core::Interface::as_raw(self), ppvdata, pcbdata, pdwmappingtype).ok() } } -::windows_core::imp::interface_hierarchy!(IMetaDataInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMetaDataInfo { - type Vtable = IMetaDataInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMetaDataInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7998ea64_7f95_48b8_86fc_17caf48bf5cb); -} #[repr(C)] #[doc(hidden)] pub struct IMetaDataInfo_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetFileMapping: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppvdata: *const *const ::core::ffi::c_void, pcbdata: *mut u64, pdwmappingtype: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMetaDataTables(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMetaDataTables, IMetaDataTables_Vtbl, 0xd8f579ab_402d_4b8e_82d9_5d63b1065c68); +::windows_core::imp::interface_hierarchy!(IMetaDataTables, ::windows_core::IUnknown); impl IMetaDataTables { pub unsafe fn GetStringHeapSize(&self, pcbstrings: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetStringHeapSize)(::windows_core::Interface::as_raw(self), pcbstrings).ok() @@ -1795,13 +1682,6 @@ impl IMetaDataTables { (::windows_core::Interface::vtable(self).GetNextUserString)(::windows_core::Interface::as_raw(self), ixuserstring, pnext).ok() } } -::windows_core::imp::interface_hierarchy!(IMetaDataTables, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMetaDataTables { - type Vtable = IMetaDataTables_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMetaDataTables { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd8f579ab_402d_4b8e_82d9_5d63b1065c68); -} #[repr(C)] #[doc(hidden)] pub struct IMetaDataTables_Vtbl { @@ -1826,9 +1706,8 @@ pub struct IMetaDataTables_Vtbl { pub GetNextGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ixguid: u32, pnext: *mut u32) -> ::windows_core::HRESULT, pub GetNextUserString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ixuserstring: u32, pnext: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMetaDataTables2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMetaDataTables2, IMetaDataTables2_Vtbl, 0xbadb5f70_58da_43a9_a1c6_d74819f19b15); +::windows_core::imp::interface_hierarchy!(IMetaDataTables2, ::windows_core::IUnknown, IMetaDataTables); impl IMetaDataTables2 { pub unsafe fn GetStringHeapSize(&self, pcbstrings: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.GetStringHeapSize)(::windows_core::Interface::as_raw(self), pcbstrings).ok() @@ -1894,13 +1773,6 @@ impl IMetaDataTables2 { (::windows_core::Interface::vtable(self).GetMetaDataStreamInfo)(::windows_core::Interface::as_raw(self), ix, ppchname, ppv, pcb).ok() } } -::windows_core::imp::interface_hierarchy!(IMetaDataTables2, ::windows_core::IUnknown, IMetaDataTables); -unsafe impl ::windows_core::Interface for IMetaDataTables2 { - type Vtable = IMetaDataTables2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMetaDataTables2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbadb5f70_58da_43a9_a1c6_d74819f19b15); -} #[repr(C)] #[doc(hidden)] pub struct IMetaDataTables2_Vtbl { @@ -1908,9 +1780,8 @@ pub struct IMetaDataTables2_Vtbl { pub GetMetaDataStorage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppvmd: *const *const ::core::ffi::c_void, pcbmd: *mut u32) -> ::windows_core::HRESULT, pub GetMetaDataStreamInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ix: u32, ppchname: *const *const i8, ppv: *const *const ::core::ffi::c_void, pcb: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMetaDataValidate(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMetaDataValidate, IMetaDataValidate_Vtbl, 0x4709c9c6_81ff_11d3_9fc7_00c04f79a0a3); +::windows_core::imp::interface_hierarchy!(IMetaDataValidate, ::windows_core::IUnknown); impl IMetaDataValidate { pub unsafe fn ValidatorInit(&self, dwmoduletype: u32, punk: P0) -> ::windows_core::Result<()> where @@ -1922,13 +1793,6 @@ impl IMetaDataValidate { (::windows_core::Interface::vtable(self).ValidateMetaData)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IMetaDataValidate, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMetaDataValidate { - type Vtable = IMetaDataValidate_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMetaDataValidate { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4709c9c6_81ff_11d3_9fc7_00c04f79a0a3); -} #[repr(C)] #[doc(hidden)] pub struct IMetaDataValidate_Vtbl { @@ -1936,30 +1800,20 @@ pub struct IMetaDataValidate_Vtbl { pub ValidatorInit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwmoduletype: u32, punk: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ValidateMetaData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMetaDataWinMDImport(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMetaDataWinMDImport, IMetaDataWinMDImport_Vtbl, 0x969ea0c5_964e_411b_a807_b0f3c2dfcbd4); +::windows_core::imp::interface_hierarchy!(IMetaDataWinMDImport, ::windows_core::IUnknown); impl IMetaDataWinMDImport { pub unsafe fn GetUntransformedTypeRefProps(&self, tr: u32, ptkresolutionscope: *mut u32, szname: ::core::option::Option<&mut [u16]>, pchname: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetUntransformedTypeRefProps)(::windows_core::Interface::as_raw(self), tr, ptkresolutionscope, ::core::mem::transmute(szname.as_deref().map_or(::core::ptr::null(), |slice| slice.as_ptr())), szname.as_deref().map_or(0, |slice| slice.len().try_into().unwrap()), pchname).ok() } } -::windows_core::imp::interface_hierarchy!(IMetaDataWinMDImport, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMetaDataWinMDImport { - type Vtable = IMetaDataWinMDImport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMetaDataWinMDImport { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x969ea0c5_964e_411b_a807_b0f3c2dfcbd4); -} #[repr(C)] #[doc(hidden)] pub struct IMetaDataWinMDImport_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetUntransformedTypeRefProps: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, tr: u32, ptkresolutionscope: *mut u32, szname: ::windows_core::PWSTR, cchname: u32, pchname: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRoMetaDataLocator(::std::ptr::NonNull<::std::ffi::c_void>); +::windows_core::imp::interface!(IRoMetaDataLocator, IRoMetaDataLocator_Vtbl); impl IRoMetaDataLocator { pub unsafe fn Locate(&self, nameelement: P0, metadatadestination: P1) -> ::windows_core::Result<()> where @@ -1969,17 +1823,12 @@ impl IRoMetaDataLocator { (::windows_core::Interface::vtable(self).Locate)(::windows_core::Interface::as_raw(self), nameelement.into_param().abi(), metadatadestination.into_param().abi()).ok() } } -unsafe impl ::windows_core::Interface for IRoMetaDataLocator { - type Vtable = IRoMetaDataLocator_Vtbl; -} #[repr(C)] #[doc(hidden)] pub struct IRoMetaDataLocator_Vtbl { pub Locate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nameelement: ::windows_core::PCWSTR, metadatadestination: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRoSimpleMetaDataBuilder(::std::ptr::NonNull<::std::ffi::c_void>); +::windows_core::imp::interface!(IRoSimpleMetaDataBuilder, IRoSimpleMetaDataBuilder_Vtbl); impl IRoSimpleMetaDataBuilder { pub unsafe fn SetWinRtInterface(&self, iid: ::windows_core::GUID) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetWinRtInterface)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(iid)).ok() @@ -2033,9 +1882,6 @@ impl IRoSimpleMetaDataBuilder { (::windows_core::Interface::vtable(self).SetParameterizedDelegate)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(piid), numargs).ok() } } -unsafe impl ::windows_core::Interface for IRoSimpleMetaDataBuilder { - type Vtable = IRoSimpleMetaDataBuilder_Vtbl; -} #[repr(C)] #[doc(hidden)] pub struct IRoSimpleMetaDataBuilder_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/System/WinRT/Pdf/impl.rs b/crates/libs/windows/src/Windows/Win32/System/WinRT/Pdf/impl.rs index aa71b45395..fe0c5f3ed4 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WinRT/Pdf/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WinRT/Pdf/impl.rs @@ -26,6 +26,6 @@ impl IPdfRendererNative_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 af173d806a..f12d25fccf 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 @@ -9,9 +9,8 @@ where let mut result__ = ::std::mem::zeroed(); PdfCreateRenderer(pdevice.into_param().abi(), &mut result__).from_abi(result__) } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPdfRendererNative(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPdfRendererNative, IPdfRendererNative_Vtbl, 0x7d9dcd91_d277_4947_8527_07a0daeda94a); +::windows_core::imp::interface_hierarchy!(IPdfRendererNative, ::windows_core::IUnknown); impl IPdfRendererNative { #[doc = "Required features: `\"Win32_Graphics_Direct2D_Common\"`, `\"Win32_Graphics_Dxgi\"`"] #[cfg(all(feature = "Win32_Graphics_Direct2D_Common", feature = "Win32_Graphics_Dxgi"))] @@ -32,13 +31,6 @@ impl IPdfRendererNative { (::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::imp::interface_hierarchy!(IPdfRendererNative, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPdfRendererNative { - type Vtable = IPdfRendererNative_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPdfRendererNative { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7d9dcd91_d277_4947_8527_07a0daeda94a); -} #[repr(C)] #[doc(hidden)] pub struct IPdfRendererNative_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/System/WinRT/Printing/impl.rs b/crates/libs/windows/src/Windows/Win32/System/WinRT/Printing/impl.rs index c9859fe384..af985d2420 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WinRT/Printing/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WinRT/Printing/impl.rs @@ -22,7 +22,7 @@ impl IPrintManagerInterop_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_System_Com\"`"] @@ -78,7 +78,7 @@ impl IPrintWorkflowConfigurationNative_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_Xps\"`"] @@ -115,7 +115,7 @@ impl IPrintWorkflowObjectModelSourceFileContentNative_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_Xps\"`"] @@ -142,7 +142,7 @@ impl IPrintWorkflowXpsObjectModelTargetPackageNative_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), DocumentPackageTarget: DocumentPackageTarget:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_Xps\"`, `\"Win32_System_Com\"`"] @@ -194,7 +194,7 @@ impl IPrintWorkflowXpsReceiver_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_Xps\"`, `\"Win32_System_Com\"`"] @@ -215,7 +215,7 @@ impl IPrintWorkflowXpsReceiver2_Vtbl { Self { base__: IPrintWorkflowXpsReceiver_Vtbl::new::(), Failed: Failed:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IPrinting3DManagerInterop_Impl: Sized { @@ -242,6 +242,6 @@ impl IPrinting3DManagerInterop_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 bcdf326cc8..268ee7c93e 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 @@ -1,11 +1,10 @@ -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintManagerInterop(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPrintManagerInterop, IPrintManagerInterop_Vtbl, 0xc5435a42_8d43_4e7b_a68a_ef311e392087); +::windows_core::imp::interface_hierarchy!(IPrintManagerInterop, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IPrintManagerInterop { pub unsafe fn GetForWindow(&self, appwindow: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -13,19 +12,12 @@ impl IPrintManagerInterop { pub unsafe fn ShowPrintUIForWindowAsync(&self, appwindow: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IPrintManagerInterop, ::windows_core::IUnknown, ::windows_core::IInspectable); -unsafe impl ::windows_core::Interface for IPrintManagerInterop { - type Vtable = IPrintManagerInterop_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintManagerInterop { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc5435a42_8d43_4e7b_a68a_ef311e392087); -} #[repr(C)] #[doc(hidden)] pub struct IPrintManagerInterop_Vtbl { @@ -33,9 +25,8 @@ pub struct IPrintManagerInterop_Vtbl { pub GetForWindow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, appwindow: super::super::super::Foundation::HWND, riid: *const ::windows_core::GUID, printmanager: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ShowPrintUIForWindowAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, appwindow: super::super::super::Foundation::HWND, riid: *const ::windows_core::GUID, asyncoperation: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintWorkflowConfigurationNative(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPrintWorkflowConfigurationNative, IPrintWorkflowConfigurationNative_Vtbl, 0xc056be0a_9ee2_450a_9823_964f0006f2bb); +::windows_core::imp::interface_hierarchy!(IPrintWorkflowConfigurationNative, ::windows_core::IUnknown); impl IPrintWorkflowConfigurationNative { #[doc = "Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_System_Com\"`"] #[cfg(all(feature = "Win32_Graphics_Printing", feature = "Win32_System_Com"))] @@ -56,13 +47,6 @@ impl IPrintWorkflowConfigurationNative { (::windows_core::Interface::vtable(self).UserProperties)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IPrintWorkflowConfigurationNative, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintWorkflowConfigurationNative { - type Vtable = IPrintWorkflowConfigurationNative_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintWorkflowConfigurationNative { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc056be0a_9ee2_450a_9823_964f0006f2bb); -} #[repr(C)] #[doc(hidden)] pub struct IPrintWorkflowConfigurationNative_Vtbl { @@ -80,9 +64,8 @@ pub struct IPrintWorkflowConfigurationNative_Vtbl { #[cfg(not(all(feature = "Win32_Graphics_Printing", feature = "Win32_System_Com")))] UserProperties: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintWorkflowObjectModelSourceFileContentNative(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPrintWorkflowObjectModelSourceFileContentNative, IPrintWorkflowObjectModelSourceFileContentNative_Vtbl, 0x68c9e477_993e_4052_8ac6_454eff58db9d); +::windows_core::imp::interface_hierarchy!(IPrintWorkflowObjectModelSourceFileContentNative, ::windows_core::IUnknown); impl IPrintWorkflowObjectModelSourceFileContentNative { pub unsafe fn StartXpsOMGeneration(&self, receiver: P0) -> ::windows_core::Result<()> where @@ -97,13 +80,6 @@ impl IPrintWorkflowObjectModelSourceFileContentNative { (::windows_core::Interface::vtable(self).ObjectFactory)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IPrintWorkflowObjectModelSourceFileContentNative, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintWorkflowObjectModelSourceFileContentNative { - type Vtable = IPrintWorkflowObjectModelSourceFileContentNative_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintWorkflowObjectModelSourceFileContentNative { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x68c9e477_993e_4052_8ac6_454eff58db9d); -} #[repr(C)] #[doc(hidden)] pub struct IPrintWorkflowObjectModelSourceFileContentNative_Vtbl { @@ -114,9 +90,8 @@ pub struct IPrintWorkflowObjectModelSourceFileContentNative_Vtbl { #[cfg(not(feature = "Win32_Storage_Xps"))] ObjectFactory: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintWorkflowXpsObjectModelTargetPackageNative(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPrintWorkflowXpsObjectModelTargetPackageNative, IPrintWorkflowXpsObjectModelTargetPackageNative_Vtbl, 0x7d96bc74_9b54_4ca1_ad3a_979c3d44ddac); +::windows_core::imp::interface_hierarchy!(IPrintWorkflowXpsObjectModelTargetPackageNative, ::windows_core::IUnknown); impl IPrintWorkflowXpsObjectModelTargetPackageNative { #[doc = "Required features: `\"Win32_Storage_Xps\"`"] #[cfg(feature = "Win32_Storage_Xps")] @@ -125,13 +100,6 @@ impl IPrintWorkflowXpsObjectModelTargetPackageNative { (::windows_core::Interface::vtable(self).DocumentPackageTarget)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IPrintWorkflowXpsObjectModelTargetPackageNative, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintWorkflowXpsObjectModelTargetPackageNative { - type Vtable = IPrintWorkflowXpsObjectModelTargetPackageNative_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintWorkflowXpsObjectModelTargetPackageNative { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7d96bc74_9b54_4ca1_ad3a_979c3d44ddac); -} #[repr(C)] #[doc(hidden)] pub struct IPrintWorkflowXpsObjectModelTargetPackageNative_Vtbl { @@ -141,9 +109,8 @@ pub struct IPrintWorkflowXpsObjectModelTargetPackageNative_Vtbl { #[cfg(not(feature = "Win32_Storage_Xps"))] DocumentPackageTarget: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintWorkflowXpsReceiver(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPrintWorkflowXpsReceiver, IPrintWorkflowXpsReceiver_Vtbl, 0x04097374_77b8_47f6_8167_aae29d4cf84b); +::windows_core::imp::interface_hierarchy!(IPrintWorkflowXpsReceiver, ::windows_core::IUnknown); impl IPrintWorkflowXpsReceiver { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -181,13 +148,6 @@ impl IPrintWorkflowXpsReceiver { (::windows_core::Interface::vtable(self).Close)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IPrintWorkflowXpsReceiver, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintWorkflowXpsReceiver { - type Vtable = IPrintWorkflowXpsReceiver_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintWorkflowXpsReceiver { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x04097374_77b8_47f6_8167_aae29d4cf84b); -} #[repr(C)] #[doc(hidden)] pub struct IPrintWorkflowXpsReceiver_Vtbl { @@ -207,9 +167,8 @@ pub struct IPrintWorkflowXpsReceiver_Vtbl { AddPage: usize, pub Close: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintWorkflowXpsReceiver2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPrintWorkflowXpsReceiver2, IPrintWorkflowXpsReceiver2_Vtbl, 0x023bcc0c_dfab_4a61_b074_490c6995580d); +::windows_core::imp::interface_hierarchy!(IPrintWorkflowXpsReceiver2, ::windows_core::IUnknown, IPrintWorkflowXpsReceiver); impl IPrintWorkflowXpsReceiver2 { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -250,27 +209,19 @@ impl IPrintWorkflowXpsReceiver2 { (::windows_core::Interface::vtable(self).Failed)(::windows_core::Interface::as_raw(self), xpserror).ok() } } -::windows_core::imp::interface_hierarchy!(IPrintWorkflowXpsReceiver2, ::windows_core::IUnknown, IPrintWorkflowXpsReceiver); -unsafe impl ::windows_core::Interface for IPrintWorkflowXpsReceiver2 { - type Vtable = IPrintWorkflowXpsReceiver2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintWorkflowXpsReceiver2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x023bcc0c_dfab_4a61_b074_490c6995580d); -} #[repr(C)] #[doc(hidden)] pub struct IPrintWorkflowXpsReceiver2_Vtbl { pub base__: IPrintWorkflowXpsReceiver_Vtbl, pub Failed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, xpserror: ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrinting3DManagerInterop(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPrinting3DManagerInterop, IPrinting3DManagerInterop_Vtbl, 0x9ca31010_1484_4587_b26b_dddf9f9caecd); +::windows_core::imp::interface_hierarchy!(IPrinting3DManagerInterop, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IPrinting3DManagerInterop { pub unsafe fn GetForWindow(&self, appwindow: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -278,19 +229,12 @@ impl IPrinting3DManagerInterop { pub unsafe fn ShowPrintUIForWindowAsync(&self, appwindow: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IPrinting3DManagerInterop, ::windows_core::IUnknown, ::windows_core::IInspectable); -unsafe impl ::windows_core::Interface for IPrinting3DManagerInterop { - type Vtable = IPrinting3DManagerInterop_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrinting3DManagerInterop { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9ca31010_1484_4587_b26b_dddf9f9caecd); -} #[repr(C)] #[doc(hidden)] pub struct IPrinting3DManagerInterop_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/System/WinRT/Shell/impl.rs b/crates/libs/windows/src/Windows/Win32/System/WinRT/Shell/impl.rs index eb35ca44b6..29a61ecd0b 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WinRT/Shell/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WinRT/Shell/impl.rs @@ -16,6 +16,6 @@ impl IDDEInitializer_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Initialize: Initialize:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 a78aca6c34..8b24113efb 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 @@ -1,6 +1,5 @@ -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDDEInitializer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDDEInitializer, IDDEInitializer_Vtbl, 0x30dc931f_33fc_4ffd_a168_942258cf3ca4); +::windows_core::imp::interface_hierarchy!(IDDEInitializer, ::windows_core::IUnknown); impl IDDEInitializer { #[doc = "Required features: `\"Win32_UI_Shell\"`"] #[cfg(feature = "Win32_UI_Shell")] @@ -18,13 +17,6 @@ impl IDDEInitializer { (::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::imp::interface_hierarchy!(IDDEInitializer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDDEInitializer { - type Vtable = IDDEInitializer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDDEInitializer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x30dc931f_33fc_4ffd_a168_942258cf3ca4); -} #[repr(C)] #[doc(hidden)] pub struct IDDEInitializer_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/System/WinRT/Storage/impl.rs b/crates/libs/windows/src/Windows/Win32/System/WinRT/Storage/impl.rs index d1b5044407..36b972205a 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WinRT/Storage/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WinRT/Storage/impl.rs @@ -12,7 +12,7 @@ impl IOplockBreakingHandler_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OplockBreaking: OplockBreaking:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRandomAccessStreamFileAccessMode_Impl: Sized { @@ -35,7 +35,7 @@ impl IRandomAccessStreamFileAccessMode_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetMode: GetMode:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IStorageFolderHandleAccess_Impl: Sized { @@ -58,7 +58,7 @@ impl IStorageFolderHandleAccess_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Create: Create:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IStorageItemHandleAccess_Impl: Sized { @@ -81,7 +81,7 @@ impl IStorageItemHandleAccess_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Create: Create:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUnbufferedFileHandleOplockCallback_Impl: Sized { @@ -98,7 +98,7 @@ impl IUnbufferedFileHandleOplockCallback_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnBrokenCallback: OnBrokenCallback:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUnbufferedFileHandleProvider_Impl: Sized { @@ -131,6 +131,6 @@ impl IUnbufferedFileHandleProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 9c8a47ca22..619c89fb3a 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 @@ -1,49 +1,32 @@ -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOplockBreakingHandler(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOplockBreakingHandler, IOplockBreakingHandler_Vtbl, 0x826abe3d_3acd_47d3_84f2_88aaedcf6304); +::windows_core::imp::interface_hierarchy!(IOplockBreakingHandler, ::windows_core::IUnknown); impl IOplockBreakingHandler { pub unsafe fn OplockBreaking(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OplockBreaking)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IOplockBreakingHandler, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOplockBreakingHandler { - type Vtable = IOplockBreakingHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOplockBreakingHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x826abe3d_3acd_47d3_84f2_88aaedcf6304); -} #[repr(C)] #[doc(hidden)] pub struct IOplockBreakingHandler_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OplockBreaking: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRandomAccessStreamFileAccessMode(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRandomAccessStreamFileAccessMode, IRandomAccessStreamFileAccessMode_Vtbl, 0x332e5848_2e15_458e_85c4_c911c0c3d6f4); +::windows_core::imp::interface_hierarchy!(IRandomAccessStreamFileAccessMode, ::windows_core::IUnknown); impl IRandomAccessStreamFileAccessMode { pub unsafe fn GetMode(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetMode)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IRandomAccessStreamFileAccessMode, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRandomAccessStreamFileAccessMode { - type Vtable = IRandomAccessStreamFileAccessMode_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRandomAccessStreamFileAccessMode { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x332e5848_2e15_458e_85c4_c911c0c3d6f4); -} #[repr(C)] #[doc(hidden)] pub struct IRandomAccessStreamFileAccessMode_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fileaccessmode: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageFolderHandleAccess(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IStorageFolderHandleAccess, IStorageFolderHandleAccess_Vtbl, 0xdf19938f_5462_48a0_be65_d2a3271a08d6); +::windows_core::imp::interface_hierarchy!(IStorageFolderHandleAccess, ::windows_core::IUnknown); 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 @@ -54,22 +37,14 @@ impl IStorageFolderHandleAccess { (::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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IStorageFolderHandleAccess, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorageFolderHandleAccess { - type Vtable = IStorageFolderHandleAccess_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageFolderHandleAccess { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdf19938f_5462_48a0_be65_d2a3271a08d6); -} #[repr(C)] #[doc(hidden)] pub struct IStorageFolderHandleAccess_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filename: ::windows_core::PCWSTR, creationoptions: HANDLE_CREATION_OPTIONS, accessoptions: HANDLE_ACCESS_OPTIONS, sharingoptions: HANDLE_SHARING_OPTIONS, options: HANDLE_OPTIONS, oplockbreakinghandler: *mut ::core::ffi::c_void, interophandle: *mut super::super::super::Foundation::HANDLE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageItemHandleAccess(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IStorageItemHandleAccess, IStorageItemHandleAccess_Vtbl, 0x5ca296b2_2c25_4d22_b785_b885c8201e6a); +::windows_core::imp::interface_hierarchy!(IStorageItemHandleAccess, ::windows_core::IUnknown); impl IStorageItemHandleAccess { pub unsafe fn Create(&self, accessoptions: HANDLE_ACCESS_OPTIONS, sharingoptions: HANDLE_SHARING_OPTIONS, options: HANDLE_OPTIONS, oplockbreakinghandler: P0) -> ::windows_core::Result where @@ -79,43 +54,27 @@ impl IStorageItemHandleAccess { (::windows_core::Interface::vtable(self).Create)(::windows_core::Interface::as_raw(self), accessoptions, sharingoptions, options, oplockbreakinghandler.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IStorageItemHandleAccess, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorageItemHandleAccess { - type Vtable = IStorageItemHandleAccess_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageItemHandleAccess { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5ca296b2_2c25_4d22_b785_b885c8201e6a); -} #[repr(C)] #[doc(hidden)] pub struct IStorageItemHandleAccess_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, accessoptions: HANDLE_ACCESS_OPTIONS, sharingoptions: HANDLE_SHARING_OPTIONS, options: HANDLE_OPTIONS, oplockbreakinghandler: *mut ::core::ffi::c_void, interophandle: *mut super::super::super::Foundation::HANDLE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUnbufferedFileHandleOplockCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUnbufferedFileHandleOplockCallback, IUnbufferedFileHandleOplockCallback_Vtbl, 0xd1019a0e_6243_4329_8497_2e75894d7710); +::windows_core::imp::interface_hierarchy!(IUnbufferedFileHandleOplockCallback, ::windows_core::IUnknown); impl IUnbufferedFileHandleOplockCallback { pub unsafe fn OnBrokenCallback(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnBrokenCallback)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IUnbufferedFileHandleOplockCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUnbufferedFileHandleOplockCallback { - type Vtable = IUnbufferedFileHandleOplockCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUnbufferedFileHandleOplockCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd1019a0e_6243_4329_8497_2e75894d7710); -} #[repr(C)] #[doc(hidden)] pub struct IUnbufferedFileHandleOplockCallback_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnBrokenCallback: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUnbufferedFileHandleProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUnbufferedFileHandleProvider, IUnbufferedFileHandleProvider_Vtbl, 0xa65c9109_42ab_4b94_a7b1_dd2e4e68515e); +::windows_core::imp::interface_hierarchy!(IUnbufferedFileHandleProvider, ::windows_core::IUnknown); impl IUnbufferedFileHandleProvider { pub unsafe fn OpenUnbufferedFileHandle(&self, oplockbreakcallback: P0) -> ::windows_core::Result where @@ -128,13 +87,6 @@ impl IUnbufferedFileHandleProvider { (::windows_core::Interface::vtable(self).CloseUnbufferedFileHandle)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IUnbufferedFileHandleProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUnbufferedFileHandleProvider { - type Vtable = IUnbufferedFileHandleProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUnbufferedFileHandleProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa65c9109_42ab_4b94_a7b1_dd2e4e68515e); -} #[repr(C)] #[doc(hidden)] pub struct IUnbufferedFileHandleProvider_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/System/WinRT/impl.rs b/crates/libs/windows/src/Windows/Win32/System/WinRT/impl.rs index 24134d747b..06b682098f 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WinRT/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WinRT/impl.rs @@ -29,7 +29,7 @@ impl IAccountsSettingsPaneInterop_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IActivationFactory_Impl: Sized { @@ -55,7 +55,7 @@ impl IActivationFactory_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAgileReference_Impl: Sized { @@ -72,7 +72,7 @@ impl IAgileReference_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Resolve: Resolve:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IApartmentShutdown_Impl: Sized { @@ -89,7 +89,7 @@ impl IApartmentShutdown_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnUninitialize: OnUninitialize:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAppServiceConnectionExtendedExecution_Impl: Sized { @@ -109,7 +109,7 @@ impl IAppServiceConnectionExtendedExecution_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IBufferByteAccess_Impl: Sized { @@ -132,7 +132,7 @@ impl IBufferByteAccess_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Buffer: Buffer:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICastingController_Impl: Sized { @@ -186,7 +186,7 @@ impl ICastingController_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICastingEventHandler_Impl: Sized { @@ -213,7 +213,7 @@ impl ICastingEventHandler_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -256,7 +256,7 @@ impl ICastingSourceInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICoreInputInterop_Impl: Sized { @@ -283,7 +283,7 @@ impl ICoreInputInterop_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICoreWindowAdapterInterop_Impl: Sized { @@ -394,7 +394,7 @@ impl ICoreWindowAdapterInterop_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICoreWindowComponentInterop_Impl: Sized { @@ -427,7 +427,7 @@ impl ICoreWindowComponentInterop_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICoreWindowInterop_Impl: Sized { @@ -460,7 +460,7 @@ impl ICoreWindowInterop_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICorrelationVectorInformation_Impl: Sized { @@ -506,7 +506,7 @@ impl ICorrelationVectorInformation_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICorrelationVectorSource_Impl: Sized { @@ -529,7 +529,7 @@ impl ICorrelationVectorSource_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CorrelationVector: CorrelationVector:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDragDropManagerInterop_Impl: Sized { @@ -549,7 +549,7 @@ impl IDragDropManagerInterop_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IHolographicSpaceInterop_Impl: Sized { @@ -569,7 +569,7 @@ impl IHolographicSpaceInterop_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IInputPaneInterop_Impl: Sized { @@ -586,7 +586,7 @@ impl IInputPaneInterop_Vtbl { Self { base__: ::windows_core::IInspectable_Vtbl::new::(), GetForWindow: GetForWindow:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ILanguageExceptionErrorInfo_Impl: Sized { @@ -609,7 +609,7 @@ impl ILanguageExceptionErrorInfo_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetLanguageException: GetLanguageException:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ILanguageExceptionErrorInfo2_Impl: Sized + ILanguageExceptionErrorInfo_Impl { @@ -655,7 +655,7 @@ impl ILanguageExceptionErrorInfo2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ILanguageExceptionStackBackTrace_Impl: Sized { @@ -672,7 +672,7 @@ impl ILanguageExceptionStackBackTrace_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetStackBackTrace: GetStackBackTrace:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ILanguageExceptionTransform_Impl: Sized { @@ -698,7 +698,7 @@ impl ILanguageExceptionTransform_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMemoryBufferByteAccess_Impl: Sized { @@ -715,7 +715,7 @@ impl IMemoryBufferByteAccess_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetBuffer: GetBuffer:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMessageDispatcher_Impl: Sized { @@ -732,7 +732,7 @@ impl IMessageDispatcher_Vtbl { Self { base__: ::windows_core::IInspectable_Vtbl::new::(), PumpMessages: PumpMessages:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPlayToManagerInterop_Impl: Sized { @@ -759,7 +759,7 @@ impl IPlayToManagerInterop_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRestrictedErrorInfo_Impl: Sized { @@ -792,7 +792,7 @@ impl IRestrictedErrorInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IShareWindowCommandEventArgsInterop_Impl: Sized { @@ -815,7 +815,7 @@ impl IShareWindowCommandEventArgsInterop_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetWindow: GetWindow:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IShareWindowCommandSourceInterop_Impl: Sized { @@ -832,7 +832,7 @@ impl IShareWindowCommandSourceInterop_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetForWindow: GetForWindow:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISpatialInteractionManagerInterop_Impl: Sized { @@ -852,7 +852,7 @@ impl ISpatialInteractionManagerInterop_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISystemMediaTransportControlsInterop_Impl: Sized { @@ -872,7 +872,7 @@ impl ISystemMediaTransportControlsInterop_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUIViewSettingsInterop_Impl: Sized { @@ -892,7 +892,7 @@ impl IUIViewSettingsInterop_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUserActivityInterop_Impl: Sized { @@ -912,7 +912,7 @@ impl IUserActivityInterop_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUserActivityRequestManagerInterop_Impl: Sized { @@ -932,7 +932,7 @@ impl IUserActivityRequestManagerInterop_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUserActivitySourceHostInterop_Impl: Sized { @@ -952,7 +952,7 @@ impl IUserActivitySourceHostInterop_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUserConsentVerifierInterop_Impl: Sized { @@ -972,7 +972,7 @@ impl IUserConsentVerifierInterop_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWeakReference_Impl: Sized { @@ -989,7 +989,7 @@ impl IWeakReference_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Resolve: Resolve:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWeakReferenceSource_Impl: Sized { @@ -1012,7 +1012,7 @@ impl IWeakReferenceSource_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetWeakReference: GetWeakReference:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWebAuthenticationCoreManagerInterop_Impl: Sized { @@ -1039,6 +1039,6 @@ impl IWebAuthenticationCoreManagerInterop_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 4672826aeb..cdd82f64fe 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WinRT/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WinRT/mod.rs @@ -52,7 +52,7 @@ pub unsafe fn CoDecodeProxy(dwclientpid: u32, ui64proxyaddress: u64) -> ::window #[inline] pub unsafe fn CreateControlInput() -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { ::windows_targets::link!("windows.ui.dll" "cdecl" fn CreateControlInput(riid : *const ::windows_core::GUID, ppv : *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT); let mut result__ = ::std::ptr::null_mut(); @@ -62,7 +62,7 @@ where pub unsafe fn CreateControlInputEx(pcorewindow: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam<::windows_core::IUnknown>, - T: ::windows_core::ComInterface, + 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(); @@ -80,7 +80,7 @@ pub unsafe fn CreateDispatcherQueueController(options: DispatcherQueueOptions) - pub unsafe fn CreateRandomAccessStreamOnFile(filepath: P0, accessmode: u32) -> ::windows_core::Result where P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, - T: ::windows_core::ComInterface, + 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(); @@ -92,7 +92,7 @@ where pub unsafe fn CreateRandomAccessStreamOverStream(stream: P0, options: BSOS_OPTIONS) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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(); @@ -102,7 +102,7 @@ where pub unsafe fn CreateStreamOverRandomAccessStream(randomaccessstream: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam<::windows_core::IUnknown>, - T: ::windows_core::ComInterface, + 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(); @@ -183,7 +183,7 @@ pub unsafe fn RoFailFastWithErrorContext(hrerror: ::windows_core::HRESULT) { #[inline] pub unsafe fn RoGetActivationFactory(activatableclassid: &::windows_core::HSTRING) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { ::windows_targets::link!("api-ms-win-core-winrt-l1-1-0.dll" "system" fn RoGetActivationFactory(activatableclassid : ::std::mem::MaybeUninit <::windows_core::HSTRING >, iid : *const ::windows_core::GUID, factory : *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT); let mut result__ = ::std::ptr::null_mut(); @@ -467,14 +467,13 @@ pub unsafe fn WindowsTrimStringStart(string: &::windows_core::HSTRING, trimstrin let mut result__ = ::std::mem::zeroed(); WindowsTrimStringStart(::core::mem::transmute_copy(string), ::core::mem::transmute_copy(trimstring), &mut result__).from_abi(result__) } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAccountsSettingsPaneInterop(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAccountsSettingsPaneInterop, IAccountsSettingsPaneInterop_Vtbl, 0xd3ee12ad_3865_4362_9746_b75a682df0e6); +::windows_core::imp::interface_hierarchy!(IAccountsSettingsPaneInterop, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IAccountsSettingsPaneInterop { pub unsafe fn GetForWindow(&self, appwindow: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -482,7 +481,7 @@ impl IAccountsSettingsPaneInterop { pub unsafe fn ShowManageAccountsForWindowAsync(&self, appwindow: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -490,19 +489,12 @@ impl IAccountsSettingsPaneInterop { pub unsafe fn ShowAddAccountForWindowAsync(&self, appwindow: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAccountsSettingsPaneInterop, ::windows_core::IUnknown, ::windows_core::IInspectable); -unsafe impl ::windows_core::Interface for IAccountsSettingsPaneInterop { - type Vtable = IAccountsSettingsPaneInterop_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAccountsSettingsPaneInterop { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd3ee12ad_3865_4362_9746_b75a682df0e6); -} #[repr(C)] #[doc(hidden)] pub struct IAccountsSettingsPaneInterop_Vtbl { @@ -511,124 +503,83 @@ pub struct IAccountsSettingsPaneInterop_Vtbl { pub ShowManageAccountsForWindowAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, appwindow: super::super::Foundation::HWND, riid: *const ::windows_core::GUID, asyncaction: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ShowAddAccountForWindowAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, appwindow: super::super::Foundation::HWND, riid: *const ::windows_core::GUID, asyncaction: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActivationFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IActivationFactory, IActivationFactory_Vtbl, 0x00000035_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IActivationFactory, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IActivationFactory { pub unsafe fn ActivateInstance(&self) -> ::windows_core::Result<::windows_core::IInspectable> { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).ActivateInstance)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IActivationFactory, ::windows_core::IUnknown, ::windows_core::IInspectable); -unsafe impl ::windows_core::Interface for IActivationFactory { - type Vtable = IActivationFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActivationFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00000035_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IActivationFactory_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ActivateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, instance: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAgileReference(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAgileReference, IAgileReference_Vtbl, 0xc03f6a43_65a4_9818_987e_e0b810d2a6f2); +::windows_core::imp::interface_hierarchy!(IAgileReference, ::windows_core::IUnknown); impl IAgileReference { pub unsafe fn Resolve(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).Resolve)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAgileReference, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAgileReference { - type Vtable = IAgileReference_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAgileReference { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc03f6a43_65a4_9818_987e_e0b810d2a6f2); -} #[repr(C)] #[doc(hidden)] pub struct IAgileReference_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Resolve: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppvobjectreference: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IApartmentShutdown(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IApartmentShutdown, IApartmentShutdown_Vtbl, 0xa2f05a09_27a2_42b5_bc0e_ac163ef49d9b); +::windows_core::imp::interface_hierarchy!(IApartmentShutdown, ::windows_core::IUnknown); impl IApartmentShutdown { pub unsafe fn OnUninitialize(&self, ui64apartmentidentifier: u64) { (::windows_core::Interface::vtable(self).OnUninitialize)(::windows_core::Interface::as_raw(self), ui64apartmentidentifier) } } -::windows_core::imp::interface_hierarchy!(IApartmentShutdown, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IApartmentShutdown { - type Vtable = IApartmentShutdown_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IApartmentShutdown { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa2f05a09_27a2_42b5_bc0e_ac163ef49d9b); -} #[repr(C)] #[doc(hidden)] pub struct IApartmentShutdown_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnUninitialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ui64apartmentidentifier: u64), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppServiceConnectionExtendedExecution(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppServiceConnectionExtendedExecution, IAppServiceConnectionExtendedExecution_Vtbl, 0x65219584_f9cb_4ae3_81f9_a28a6ca450d9); +::windows_core::imp::interface_hierarchy!(IAppServiceConnectionExtendedExecution, ::windows_core::IUnknown); impl IAppServiceConnectionExtendedExecution { pub unsafe fn OpenForExtendedExecutionAsync(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).OpenForExtendedExecutionAsync)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAppServiceConnectionExtendedExecution, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppServiceConnectionExtendedExecution { - type Vtable = IAppServiceConnectionExtendedExecution_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppServiceConnectionExtendedExecution { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x65219584_f9cb_4ae3_81f9_a28a6ca450d9); -} #[repr(C)] #[doc(hidden)] pub struct IAppServiceConnectionExtendedExecution_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OpenForExtendedExecutionAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, operation: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBufferByteAccess(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBufferByteAccess, IBufferByteAccess_Vtbl, 0x905a0fef_bc53_11df_8c49_001e4fc686da); +::windows_core::imp::interface_hierarchy!(IBufferByteAccess, ::windows_core::IUnknown); impl IBufferByteAccess { pub unsafe fn Buffer(&self) -> ::windows_core::Result<*mut u8> { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).Buffer)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IBufferByteAccess, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBufferByteAccess { - type Vtable = IBufferByteAccess_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBufferByteAccess { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x905a0fef_bc53_11df_8c49_001e4fc686da); -} #[repr(C)] #[doc(hidden)] pub struct IBufferByteAccess_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Buffer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut *mut u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICastingController(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICastingController, ICastingController_Vtbl, 0xf0a56423_a664_4fbd_8b43_409a45e8d9a1); +::windows_core::imp::interface_hierarchy!(ICastingController, ::windows_core::IUnknown); impl ICastingController { pub unsafe fn Initialize(&self, castingengine: P0, castingsource: P1) -> ::windows_core::Result<()> where @@ -654,13 +605,6 @@ impl ICastingController { (::windows_core::Interface::vtable(self).UnAdvise)(::windows_core::Interface::as_raw(self), cookie).ok() } } -::windows_core::imp::interface_hierarchy!(ICastingController, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICastingController { - type Vtable = ICastingController_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICastingController { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf0a56423_a664_4fbd_8b43_409a45e8d9a1); -} #[repr(C)] #[doc(hidden)] pub struct ICastingController_Vtbl { @@ -671,9 +615,8 @@ pub struct ICastingController_Vtbl { pub Advise: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventhandler: *mut ::core::ffi::c_void, cookie: *mut u32) -> ::windows_core::HRESULT, pub UnAdvise: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cookie: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICastingEventHandler(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICastingEventHandler, ICastingEventHandler_Vtbl, 0xc79a6cb7_bebd_47a6_a2ad_4d45ad79c7bc); +::windows_core::imp::interface_hierarchy!(ICastingEventHandler, ::windows_core::IUnknown); impl ICastingEventHandler { pub unsafe fn OnStateChanged(&self, newstate: CASTING_CONNECTION_STATE) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnStateChanged)(::windows_core::Interface::as_raw(self), newstate).ok() @@ -685,13 +628,6 @@ impl ICastingEventHandler { (::windows_core::Interface::vtable(self).OnError)(::windows_core::Interface::as_raw(self), errorstatus, errormessage.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ICastingEventHandler, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICastingEventHandler { - type Vtable = ICastingEventHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICastingEventHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc79a6cb7_bebd_47a6_a2ad_4d45ad79c7bc); -} #[repr(C)] #[doc(hidden)] pub struct ICastingEventHandler_Vtbl { @@ -699,9 +635,8 @@ pub struct ICastingEventHandler_Vtbl { pub OnStateChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newstate: CASTING_CONNECTION_STATE) -> ::windows_core::HRESULT, pub OnError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, errorstatus: CASTING_CONNECTION_ERROR_STATUS, errormessage: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICastingSourceInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICastingSourceInfo, ICastingSourceInfo_Vtbl, 0x45101ab7_7c3a_4bce_9500_12c09024b298); +::windows_core::imp::interface_hierarchy!(ICastingSourceInfo, ::windows_core::IUnknown); impl ICastingSourceInfo { pub unsafe fn GetController(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -714,13 +649,6 @@ impl ICastingSourceInfo { (::windows_core::Interface::vtable(self).GetProperties)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ICastingSourceInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICastingSourceInfo { - type Vtable = ICastingSourceInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICastingSourceInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x45101ab7_7c3a_4bce_9500_12c09024b298); -} #[repr(C)] #[doc(hidden)] pub struct ICastingSourceInfo_Vtbl { @@ -731,9 +659,8 @@ pub struct ICastingSourceInfo_Vtbl { #[cfg(not(feature = "Win32_UI_Shell_PropertiesSystem"))] GetProperties: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreInputInterop(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICoreInputInterop, ICoreInputInterop_Vtbl, 0x40bfe3e3_b75a_4479_ac96_475365749bb8); +::windows_core::imp::interface_hierarchy!(ICoreInputInterop, ::windows_core::IUnknown); impl ICoreInputInterop { pub unsafe fn SetInputSource(&self, value: P0) -> ::windows_core::Result<()> where @@ -745,13 +672,6 @@ impl ICoreInputInterop { (::windows_core::Interface::vtable(self).SetMessageHandled)(::windows_core::Interface::as_raw(self), value).ok() } } -::windows_core::imp::interface_hierarchy!(ICoreInputInterop, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreInputInterop { - type Vtable = ICoreInputInterop_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreInputInterop { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x40bfe3e3_b75a_4479_ac96_475365749bb8); -} #[repr(C)] #[doc(hidden)] pub struct ICoreInputInterop_Vtbl { @@ -759,9 +679,8 @@ pub struct ICoreInputInterop_Vtbl { pub SetInputSource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetMessageHandled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreWindowAdapterInterop(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICoreWindowAdapterInterop, ICoreWindowAdapterInterop_Vtbl, 0x7a5b6fd1_cd73_4b6c_9cf4_2e869eaf470a); +::windows_core::imp::interface_hierarchy!(ICoreWindowAdapterInterop, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ICoreWindowAdapterInterop { pub unsafe fn AppActivationClientAdapter(&self) -> ::windows_core::Result<::windows_core::IUnknown> { let mut result__ = ::std::mem::zeroed(); @@ -798,13 +717,6 @@ impl ICoreWindowAdapterInterop { (::windows_core::Interface::vtable(self).SetWindowClientAdapter)(::windows_core::Interface::as_raw(self), value.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ICoreWindowAdapterInterop, ::windows_core::IUnknown, ::windows_core::IInspectable); -unsafe impl ::windows_core::Interface for ICoreWindowAdapterInterop { - type Vtable = ICoreWindowAdapterInterop_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreWindowAdapterInterop { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7a5b6fd1_cd73_4b6c_9cf4_2e869eaf470a); -} #[repr(C)] #[doc(hidden)] pub struct ICoreWindowAdapterInterop_Vtbl { @@ -818,9 +730,8 @@ pub struct ICoreWindowAdapterInterop_Vtbl { pub TitleBarClientAdapter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetWindowClientAdapter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreWindowComponentInterop(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICoreWindowComponentInterop, ICoreWindowComponentInterop_Vtbl, 0x0576ab31_a310_4c40_ba31_fd37e0298dfa); +::windows_core::imp::interface_hierarchy!(ICoreWindowComponentInterop, ::windows_core::IUnknown); impl ICoreWindowComponentInterop { pub unsafe fn ConfigureComponentInput(&self, hostviewinstanceid: u32, hwndhost: P0, inputsourcevisual: P1) -> ::windows_core::Result<()> where @@ -834,13 +745,6 @@ impl ICoreWindowComponentInterop { (::windows_core::Interface::vtable(self).GetViewInstanceId)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ICoreWindowComponentInterop, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreWindowComponentInterop { - type Vtable = ICoreWindowComponentInterop_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreWindowComponentInterop { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0576ab31_a310_4c40_ba31_fd37e0298dfa); -} #[repr(C)] #[doc(hidden)] pub struct ICoreWindowComponentInterop_Vtbl { @@ -848,9 +752,8 @@ pub struct ICoreWindowComponentInterop_Vtbl { pub ConfigureComponentInput: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hostviewinstanceid: u32, hwndhost: super::super::Foundation::HWND, inputsourcevisual: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetViewInstanceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, componentviewinstanceid: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreWindowInterop(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICoreWindowInterop, ICoreWindowInterop_Vtbl, 0x45d64a29_a63e_4cb6_b498_5781d298cb4f); +::windows_core::imp::interface_hierarchy!(ICoreWindowInterop, ::windows_core::IUnknown); impl ICoreWindowInterop { pub unsafe fn WindowHandle(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -860,13 +763,6 @@ impl ICoreWindowInterop { (::windows_core::Interface::vtable(self).SetMessageHandled)(::windows_core::Interface::as_raw(self), value).ok() } } -::windows_core::imp::interface_hierarchy!(ICoreWindowInterop, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreWindowInterop { - type Vtable = ICoreWindowInterop_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreWindowInterop { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x45d64a29_a63e_4cb6_b498_5781d298cb4f); -} #[repr(C)] #[doc(hidden)] pub struct ICoreWindowInterop_Vtbl { @@ -874,9 +770,8 @@ pub struct ICoreWindowInterop_Vtbl { pub WindowHandle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwnd: *mut super::super::Foundation::HWND) -> ::windows_core::HRESULT, pub SetMessageHandled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICorrelationVectorInformation(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICorrelationVectorInformation, ICorrelationVectorInformation_Vtbl, 0x83c78b3c_d88b_4950_aa6e_22b8d22aabd3); +::windows_core::imp::interface_hierarchy!(ICorrelationVectorInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ICorrelationVectorInformation { pub unsafe fn LastCorrelationVectorForThread(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let mut result__ = ::std::mem::zeroed(); @@ -890,13 +785,6 @@ impl ICorrelationVectorInformation { (::windows_core::Interface::vtable(self).SetNextCorrelationVectorForThread)(::windows_core::Interface::as_raw(self), ::core::mem::transmute_copy(cv)).ok() } } -::windows_core::imp::interface_hierarchy!(ICorrelationVectorInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); -unsafe impl ::windows_core::Interface for ICorrelationVectorInformation { - type Vtable = ICorrelationVectorInformation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICorrelationVectorInformation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x83c78b3c_d88b_4950_aa6e_22b8d22aabd3); -} #[repr(C)] #[doc(hidden)] pub struct ICorrelationVectorInformation_Vtbl { @@ -905,131 +793,90 @@ pub struct ICorrelationVectorInformation_Vtbl { pub NextCorrelationVectorForThread: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cv: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, pub SetNextCorrelationVectorForThread: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cv: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICorrelationVectorSource(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICorrelationVectorSource, ICorrelationVectorSource_Vtbl, 0x152b8a3b_b9b9_4685_b56e_974847bc7545); +::windows_core::imp::interface_hierarchy!(ICorrelationVectorSource, ::windows_core::IUnknown); impl ICorrelationVectorSource { pub unsafe fn CorrelationVector(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).CorrelationVector)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ICorrelationVectorSource, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICorrelationVectorSource { - type Vtable = ICorrelationVectorSource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICorrelationVectorSource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x152b8a3b_b9b9_4685_b56e_974847bc7545); -} #[repr(C)] #[doc(hidden)] pub struct ICorrelationVectorSource_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub CorrelationVector: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cv: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDragDropManagerInterop(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDragDropManagerInterop, IDragDropManagerInterop_Vtbl, 0x5ad8cba7_4c01_4dac_9074_827894292d63); +::windows_core::imp::interface_hierarchy!(IDragDropManagerInterop, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IDragDropManagerInterop { pub unsafe fn GetForWindow(&self, hwnd: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDragDropManagerInterop, ::windows_core::IUnknown, ::windows_core::IInspectable); -unsafe impl ::windows_core::Interface for IDragDropManagerInterop { - type Vtable = IDragDropManagerInterop_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDragDropManagerInterop { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5ad8cba7_4c01_4dac_9074_827894292d63); -} #[repr(C)] #[doc(hidden)] pub struct IDragDropManagerInterop_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetForWindow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwnd: super::super::Foundation::HWND, riid: *const ::windows_core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHolographicSpaceInterop(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IHolographicSpaceInterop, IHolographicSpaceInterop_Vtbl, 0x5c4ee536_6a98_4b86_a170_587013d6fd4b); +::windows_core::imp::interface_hierarchy!(IHolographicSpaceInterop, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IHolographicSpaceInterop { pub unsafe fn CreateForWindow(&self, window: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IHolographicSpaceInterop, ::windows_core::IUnknown, ::windows_core::IInspectable); -unsafe impl ::windows_core::Interface for IHolographicSpaceInterop { - type Vtable = IHolographicSpaceInterop_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHolographicSpaceInterop { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5c4ee536_6a98_4b86_a170_587013d6fd4b); -} #[repr(C)] #[doc(hidden)] pub struct IHolographicSpaceInterop_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateForWindow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, window: super::super::Foundation::HWND, riid: *const ::windows_core::GUID, holographicspace: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInputPaneInterop(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IInputPaneInterop, IInputPaneInterop_Vtbl, 0x75cf2c57_9195_4931_8332_f0b409e916af); +::windows_core::imp::interface_hierarchy!(IInputPaneInterop, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IInputPaneInterop { pub unsafe fn GetForWindow(&self, appwindow: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IInputPaneInterop, ::windows_core::IUnknown, ::windows_core::IInspectable); -unsafe impl ::windows_core::Interface for IInputPaneInterop { - type Vtable = IInputPaneInterop_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInputPaneInterop { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x75cf2c57_9195_4931_8332_f0b409e916af); -} #[repr(C)] #[doc(hidden)] pub struct IInputPaneInterop_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetForWindow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, appwindow: super::super::Foundation::HWND, riid: *const ::windows_core::GUID, inputpane: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILanguageExceptionErrorInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ILanguageExceptionErrorInfo, ILanguageExceptionErrorInfo_Vtbl, 0x04a2dbf3_df83_116c_0946_0812abf6e07d); +::windows_core::imp::interface_hierarchy!(ILanguageExceptionErrorInfo, ::windows_core::IUnknown); impl ILanguageExceptionErrorInfo { pub unsafe fn GetLanguageException(&self) -> ::windows_core::Result<::windows_core::IUnknown> { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetLanguageException)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ILanguageExceptionErrorInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILanguageExceptionErrorInfo { - type Vtable = ILanguageExceptionErrorInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILanguageExceptionErrorInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x04a2dbf3_df83_116c_0946_0812abf6e07d); -} #[repr(C)] #[doc(hidden)] pub struct ILanguageExceptionErrorInfo_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetLanguageException: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, languageexception: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILanguageExceptionErrorInfo2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ILanguageExceptionErrorInfo2, ILanguageExceptionErrorInfo2_Vtbl, 0x5746e5c4_5b97_424c_b620_2822915734dd); +::windows_core::imp::interface_hierarchy!(ILanguageExceptionErrorInfo2, ::windows_core::IUnknown, ILanguageExceptionErrorInfo); impl ILanguageExceptionErrorInfo2 { pub unsafe fn GetLanguageException(&self) -> ::windows_core::Result<::windows_core::IUnknown> { let mut result__ = ::std::mem::zeroed(); @@ -1050,13 +897,6 @@ impl ILanguageExceptionErrorInfo2 { (::windows_core::Interface::vtable(self).GetPropagationContextHead)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ILanguageExceptionErrorInfo2, ::windows_core::IUnknown, ILanguageExceptionErrorInfo); -unsafe impl ::windows_core::Interface for ILanguageExceptionErrorInfo2 { - type Vtable = ILanguageExceptionErrorInfo2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILanguageExceptionErrorInfo2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5746e5c4_5b97_424c_b620_2822915734dd); -} #[repr(C)] #[doc(hidden)] pub struct ILanguageExceptionErrorInfo2_Vtbl { @@ -1065,99 +905,66 @@ pub struct ILanguageExceptionErrorInfo2_Vtbl { pub CapturePropagationContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, languageexception: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetPropagationContextHead: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propagatedlanguageexceptionerrorinfohead: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILanguageExceptionStackBackTrace(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ILanguageExceptionStackBackTrace, ILanguageExceptionStackBackTrace_Vtbl, 0xcbe53fb5_f967_4258_8d34_42f5e25833de); +::windows_core::imp::interface_hierarchy!(ILanguageExceptionStackBackTrace, ::windows_core::IUnknown); impl ILanguageExceptionStackBackTrace { pub unsafe fn GetStackBackTrace(&self, maxframestocapture: u32, stackbacktrace: *mut usize, framescaptured: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetStackBackTrace)(::windows_core::Interface::as_raw(self), maxframestocapture, stackbacktrace, framescaptured).ok() } } -::windows_core::imp::interface_hierarchy!(ILanguageExceptionStackBackTrace, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILanguageExceptionStackBackTrace { - type Vtable = ILanguageExceptionStackBackTrace_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILanguageExceptionStackBackTrace { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcbe53fb5_f967_4258_8d34_42f5e25833de); -} #[repr(C)] #[doc(hidden)] pub struct ILanguageExceptionStackBackTrace_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetStackBackTrace: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, maxframestocapture: u32, stackbacktrace: *mut usize, framescaptured: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILanguageExceptionTransform(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ILanguageExceptionTransform, ILanguageExceptionTransform_Vtbl, 0xfeb5a271_a6cd_45ce_880a_696706badc65); +::windows_core::imp::interface_hierarchy!(ILanguageExceptionTransform, ::windows_core::IUnknown); impl ILanguageExceptionTransform { pub unsafe fn GetTransformedRestrictedErrorInfo(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetTransformedRestrictedErrorInfo)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ILanguageExceptionTransform, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILanguageExceptionTransform { - type Vtable = ILanguageExceptionTransform_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILanguageExceptionTransform { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfeb5a271_a6cd_45ce_880a_696706badc65); -} #[repr(C)] #[doc(hidden)] pub struct ILanguageExceptionTransform_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetTransformedRestrictedErrorInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, restrictederrorinfo: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMemoryBufferByteAccess(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMemoryBufferByteAccess, IMemoryBufferByteAccess_Vtbl, 0x5b0d3235_4dba_4d44_865e_8f1d0e4fd04d); +::windows_core::imp::interface_hierarchy!(IMemoryBufferByteAccess, ::windows_core::IUnknown); impl IMemoryBufferByteAccess { pub unsafe fn GetBuffer(&self, value: *mut *mut u8, capacity: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetBuffer)(::windows_core::Interface::as_raw(self), value, capacity).ok() } } -::windows_core::imp::interface_hierarchy!(IMemoryBufferByteAccess, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMemoryBufferByteAccess { - type Vtable = IMemoryBufferByteAccess_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMemoryBufferByteAccess { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5b0d3235_4dba_4d44_865e_8f1d0e4fd04d); -} #[repr(C)] #[doc(hidden)] pub struct IMemoryBufferByteAccess_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetBuffer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut *mut u8, capacity: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMessageDispatcher(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMessageDispatcher, IMessageDispatcher_Vtbl, 0xf5f84c8f_cfd0_4cd6_b66b_c5d26ff1689d); +::windows_core::imp::interface_hierarchy!(IMessageDispatcher, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IMessageDispatcher { pub unsafe fn PumpMessages(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).PumpMessages)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IMessageDispatcher, ::windows_core::IUnknown, ::windows_core::IInspectable); -unsafe impl ::windows_core::Interface for IMessageDispatcher { - type Vtable = IMessageDispatcher_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMessageDispatcher { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf5f84c8f_cfd0_4cd6_b66b_c5d26ff1689d); -} #[repr(C)] #[doc(hidden)] pub struct IMessageDispatcher_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub PumpMessages: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPlayToManagerInterop(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPlayToManagerInterop, IPlayToManagerInterop_Vtbl, 0x24394699_1f2c_4eb3_8cd7_0ec1da42a540); +::windows_core::imp::interface_hierarchy!(IPlayToManagerInterop, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IPlayToManagerInterop { pub unsafe fn GetForWindow(&self, appwindow: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -1169,13 +976,6 @@ impl IPlayToManagerInterop { (::windows_core::Interface::vtable(self).ShowPlayToUIForWindow)(::windows_core::Interface::as_raw(self), appwindow.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IPlayToManagerInterop, ::windows_core::IUnknown, ::windows_core::IInspectable); -unsafe impl ::windows_core::Interface for IPlayToManagerInterop { - type Vtable = IPlayToManagerInterop_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPlayToManagerInterop { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x24394699_1f2c_4eb3_8cd7_0ec1da42a540); -} #[repr(C)] #[doc(hidden)] pub struct IPlayToManagerInterop_Vtbl { @@ -1183,9 +983,8 @@ pub struct IPlayToManagerInterop_Vtbl { pub GetForWindow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, appwindow: super::super::Foundation::HWND, riid: *const ::windows_core::GUID, playtomanager: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ShowPlayToUIForWindow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, appwindow: super::super::Foundation::HWND) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRestrictedErrorInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRestrictedErrorInfo, IRestrictedErrorInfo_Vtbl, 0x82ba7092_4c88_427d_a7bc_16dd93feb67e); +::windows_core::imp::interface_hierarchy!(IRestrictedErrorInfo, ::windows_core::IUnknown); impl IRestrictedErrorInfo { pub unsafe fn GetErrorDetails(&self, description: *mut ::windows_core::BSTR, error: *mut ::windows_core::HRESULT, restricteddescription: *mut ::windows_core::BSTR, capabilitysid: *mut ::windows_core::BSTR) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetErrorDetails)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(description), error, ::core::mem::transmute(restricteddescription), ::core::mem::transmute(capabilitysid)).ok() @@ -1195,15 +994,8 @@ impl IRestrictedErrorInfo { (::windows_core::Interface::vtable(self).GetReference)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IRestrictedErrorInfo, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for IRestrictedErrorInfo {} unsafe impl ::core::marker::Sync for IRestrictedErrorInfo {} -unsafe impl ::windows_core::Interface for IRestrictedErrorInfo { - type Vtable = IRestrictedErrorInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRestrictedErrorInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x82ba7092_4c88_427d_a7bc_16dd93feb67e); -} #[repr(C)] #[doc(hidden)] pub struct IRestrictedErrorInfo_Vtbl { @@ -1211,287 +1003,198 @@ pub struct IRestrictedErrorInfo_Vtbl { pub GetErrorDetails: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, description: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>, error: *mut ::windows_core::HRESULT, restricteddescription: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>, capabilitysid: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub GetReference: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, reference: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShareWindowCommandEventArgsInterop(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IShareWindowCommandEventArgsInterop, IShareWindowCommandEventArgsInterop_Vtbl, 0x6571a721_643d_43d4_aca4_6b6f5f30f1ad); +::windows_core::imp::interface_hierarchy!(IShareWindowCommandEventArgsInterop, ::windows_core::IUnknown); impl IShareWindowCommandEventArgsInterop { pub unsafe fn GetWindow(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetWindow)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IShareWindowCommandEventArgsInterop, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IShareWindowCommandEventArgsInterop { - type Vtable = IShareWindowCommandEventArgsInterop_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IShareWindowCommandEventArgsInterop { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6571a721_643d_43d4_aca4_6b6f5f30f1ad); -} #[repr(C)] #[doc(hidden)] pub struct IShareWindowCommandEventArgsInterop_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetWindow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut super::super::Foundation::HWND) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShareWindowCommandSourceInterop(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IShareWindowCommandSourceInterop, IShareWindowCommandSourceInterop_Vtbl, 0x461a191f_8424_43a6_a0fa_3451a22f56ab); +::windows_core::imp::interface_hierarchy!(IShareWindowCommandSourceInterop, ::windows_core::IUnknown); impl IShareWindowCommandSourceInterop { pub unsafe fn GetForWindow(&self, appwindow: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IShareWindowCommandSourceInterop, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IShareWindowCommandSourceInterop { - type Vtable = IShareWindowCommandSourceInterop_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IShareWindowCommandSourceInterop { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x461a191f_8424_43a6_a0fa_3451a22f56ab); -} #[repr(C)] #[doc(hidden)] pub struct IShareWindowCommandSourceInterop_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetForWindow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, appwindow: super::super::Foundation::HWND, riid: *const ::windows_core::GUID, sharewindowcommandsource: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpatialInteractionManagerInterop(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpatialInteractionManagerInterop, ISpatialInteractionManagerInterop_Vtbl, 0x5c4ee536_6a98_4b86_a170_587013d6fd4b); +::windows_core::imp::interface_hierarchy!(ISpatialInteractionManagerInterop, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ISpatialInteractionManagerInterop { pub unsafe fn GetForWindow(&self, window: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISpatialInteractionManagerInterop, ::windows_core::IUnknown, ::windows_core::IInspectable); -unsafe impl ::windows_core::Interface for ISpatialInteractionManagerInterop { - type Vtable = ISpatialInteractionManagerInterop_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpatialInteractionManagerInterop { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5c4ee536_6a98_4b86_a170_587013d6fd4b); -} #[repr(C)] #[doc(hidden)] pub struct ISpatialInteractionManagerInterop_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetForWindow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, window: super::super::Foundation::HWND, riid: *const ::windows_core::GUID, spatialinteractionmanager: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISystemMediaTransportControlsInterop(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISystemMediaTransportControlsInterop, ISystemMediaTransportControlsInterop_Vtbl, 0xddb0472d_c911_4a1f_86d9_dc3d71a95f5a); +::windows_core::imp::interface_hierarchy!(ISystemMediaTransportControlsInterop, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ISystemMediaTransportControlsInterop { pub unsafe fn GetForWindow(&self, appwindow: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISystemMediaTransportControlsInterop, ::windows_core::IUnknown, ::windows_core::IInspectable); -unsafe impl ::windows_core::Interface for ISystemMediaTransportControlsInterop { - type Vtable = ISystemMediaTransportControlsInterop_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISystemMediaTransportControlsInterop { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xddb0472d_c911_4a1f_86d9_dc3d71a95f5a); -} #[repr(C)] #[doc(hidden)] pub struct ISystemMediaTransportControlsInterop_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetForWindow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, appwindow: super::super::Foundation::HWND, riid: *const ::windows_core::GUID, mediatransportcontrol: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIViewSettingsInterop(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIViewSettingsInterop, IUIViewSettingsInterop_Vtbl, 0x3694dbf9_8f68_44be_8ff5_195c98ede8a6); +::windows_core::imp::interface_hierarchy!(IUIViewSettingsInterop, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IUIViewSettingsInterop { pub unsafe fn GetForWindow(&self, hwnd: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUIViewSettingsInterop, ::windows_core::IUnknown, ::windows_core::IInspectable); -unsafe impl ::windows_core::Interface for IUIViewSettingsInterop { - type Vtable = IUIViewSettingsInterop_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIViewSettingsInterop { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3694dbf9_8f68_44be_8ff5_195c98ede8a6); -} #[repr(C)] #[doc(hidden)] pub struct IUIViewSettingsInterop_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetForWindow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwnd: super::super::Foundation::HWND, riid: *const ::windows_core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserActivityInterop(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUserActivityInterop, IUserActivityInterop_Vtbl, 0x1ade314d_0e0a_40d9_824c_9a088a50059f); +::windows_core::imp::interface_hierarchy!(IUserActivityInterop, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IUserActivityInterop { pub unsafe fn CreateSessionForWindow(&self, window: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUserActivityInterop, ::windows_core::IUnknown, ::windows_core::IInspectable); -unsafe impl ::windows_core::Interface for IUserActivityInterop { - type Vtable = IUserActivityInterop_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserActivityInterop { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1ade314d_0e0a_40d9_824c_9a088a50059f); -} #[repr(C)] #[doc(hidden)] pub struct IUserActivityInterop_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateSessionForWindow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, window: super::super::Foundation::HWND, iid: *const ::windows_core::GUID, value: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserActivityRequestManagerInterop(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUserActivityRequestManagerInterop, IUserActivityRequestManagerInterop_Vtbl, 0xdd69f876_9699_4715_9095_e37ea30dfa1b); +::windows_core::imp::interface_hierarchy!(IUserActivityRequestManagerInterop, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IUserActivityRequestManagerInterop { pub unsafe fn GetForWindow(&self, window: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUserActivityRequestManagerInterop, ::windows_core::IUnknown, ::windows_core::IInspectable); -unsafe impl ::windows_core::Interface for IUserActivityRequestManagerInterop { - type Vtable = IUserActivityRequestManagerInterop_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserActivityRequestManagerInterop { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdd69f876_9699_4715_9095_e37ea30dfa1b); -} #[repr(C)] #[doc(hidden)] pub struct IUserActivityRequestManagerInterop_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetForWindow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, window: super::super::Foundation::HWND, iid: *const ::windows_core::GUID, value: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserActivitySourceHostInterop(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUserActivitySourceHostInterop, IUserActivitySourceHostInterop_Vtbl, 0xc15df8bc_8844_487a_b85b_7578e0f61419); +::windows_core::imp::interface_hierarchy!(IUserActivitySourceHostInterop, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IUserActivitySourceHostInterop { pub unsafe fn SetActivitySourceHost(&self, activitysourcehost: &::windows_core::HSTRING) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetActivitySourceHost)(::windows_core::Interface::as_raw(self), ::core::mem::transmute_copy(activitysourcehost)).ok() } } -::windows_core::imp::interface_hierarchy!(IUserActivitySourceHostInterop, ::windows_core::IUnknown, ::windows_core::IInspectable); -unsafe impl ::windows_core::Interface for IUserActivitySourceHostInterop { - type Vtable = IUserActivitySourceHostInterop_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserActivitySourceHostInterop { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc15df8bc_8844_487a_b85b_7578e0f61419); -} #[repr(C)] #[doc(hidden)] pub struct IUserActivitySourceHostInterop_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub SetActivitySourceHost: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, activitysourcehost: ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserConsentVerifierInterop(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUserConsentVerifierInterop, IUserConsentVerifierInterop_Vtbl, 0x39e050c3_4e74_441a_8dc0_b81104df949c); +::windows_core::imp::interface_hierarchy!(IUserConsentVerifierInterop, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IUserConsentVerifierInterop { pub unsafe fn RequestVerificationForWindowAsync(&self, appwindow: P0, message: &::windows_core::HSTRING) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUserConsentVerifierInterop, ::windows_core::IUnknown, ::windows_core::IInspectable); -unsafe impl ::windows_core::Interface for IUserConsentVerifierInterop { - type Vtable = IUserConsentVerifierInterop_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserConsentVerifierInterop { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x39e050c3_4e74_441a_8dc0_b81104df949c); -} #[repr(C)] #[doc(hidden)] pub struct IUserConsentVerifierInterop_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub RequestVerificationForWindowAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, appwindow: super::super::Foundation::HWND, message: ::std::mem::MaybeUninit<::windows_core::HSTRING>, riid: *const ::windows_core::GUID, asyncoperation: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWeakReference(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWeakReference, IWeakReference_Vtbl, 0x00000037_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IWeakReference, ::windows_core::IUnknown); impl IWeakReference { pub unsafe fn Resolve(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).Resolve)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWeakReference, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWeakReference { - type Vtable = IWeakReference_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWeakReference { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00000037_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IWeakReference_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Resolve: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, objectreference: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWeakReferenceSource(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWeakReferenceSource, IWeakReferenceSource_Vtbl, 0x00000038_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IWeakReferenceSource, ::windows_core::IUnknown); impl IWeakReferenceSource { pub unsafe fn GetWeakReference(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetWeakReference)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWeakReferenceSource, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWeakReferenceSource { - type Vtable = IWeakReferenceSource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWeakReferenceSource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00000038_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IWeakReferenceSource_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetWeakReference: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, weakreference: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebAuthenticationCoreManagerInterop(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWebAuthenticationCoreManagerInterop, IWebAuthenticationCoreManagerInterop_Vtbl, 0xf4b8e804_811e_4436_b69c_44cb67b72084); +::windows_core::imp::interface_hierarchy!(IWebAuthenticationCoreManagerInterop, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IWebAuthenticationCoreManagerInterop { pub unsafe fn RequestTokenForWindowAsync(&self, appwindow: P0, request: P1) -> ::windows_core::Result where P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam<::windows_core::IInspectable>, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -1501,19 +1204,12 @@ impl IWebAuthenticationCoreManagerInterop { P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam<::windows_core::IInspectable>, P2: ::windows_core::IntoParam<::windows_core::IInspectable>, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWebAuthenticationCoreManagerInterop, ::windows_core::IUnknown, ::windows_core::IInspectable); -unsafe impl ::windows_core::Interface for IWebAuthenticationCoreManagerInterop { - type Vtable = IWebAuthenticationCoreManagerInterop_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebAuthenticationCoreManagerInterop { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf4b8e804_811e_4436_b69c_44cb67b72084); -} #[repr(C)] #[doc(hidden)] pub struct IWebAuthenticationCoreManagerInterop_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/System/WindowsProgramming/impl.rs b/crates/libs/windows/src/Windows/Win32/System/WindowsProgramming/impl.rs index 63f81260a7..06b1ce0758 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WindowsProgramming/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WindowsProgramming/impl.rs @@ -86,7 +86,7 @@ impl ICameraUIControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICameraUIControlEventCallback_Impl: Sized { @@ -134,7 +134,7 @@ impl ICameraUIControlEventCallback_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IClipServiceNotificationHelper_Impl: Sized { @@ -151,7 +151,7 @@ impl IClipServiceNotificationHelper_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), ShowToast: ShowToast:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IContainerActivationHelper_Impl: Sized { @@ -174,7 +174,7 @@ impl IContainerActivationHelper_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CanActivateClientVM: CanActivateClientVM:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDefaultBrowserSyncSettings_Impl: Sized { @@ -191,7 +191,7 @@ impl IDefaultBrowserSyncSettings_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), IsEnabled: IsEnabled:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDeleteBrowsingHistory_Impl: Sized { @@ -208,7 +208,7 @@ impl IDeleteBrowsingHistory_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), DeleteBrowsingHistory: DeleteBrowsingHistory:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Ole\"`"] @@ -253,7 +253,7 @@ impl IEditionUpgradeBroker_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEditionUpgradeHelper_Impl: Sized { @@ -319,7 +319,7 @@ impl IEditionUpgradeHelper_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IFClipNotificationHelper_Impl: Sized { @@ -336,7 +336,7 @@ impl IFClipNotificationHelper_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), ShowSystemDialog: ShowSystemDialog:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWindowsLockModeHelper_Impl: Sized { @@ -359,6 +359,6 @@ impl IWindowsLockModeHelper_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetSMode: GetSMode:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 a14ac77306..e36f8142f4 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WindowsProgramming/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WindowsProgramming/mod.rs @@ -1694,9 +1694,8 @@ pub unsafe fn uaw_wcsrchr(string: *const u16, character: u16) -> *mut u16 { ::windows_targets::link!("kernel32.dll" "system" fn uaw_wcsrchr(string : *const u16, character : u16) -> *mut u16); uaw_wcsrchr(string, character) } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICameraUIControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICameraUIControl, ICameraUIControl_Vtbl, 0xb8733adf_3d68_4b8f_bb08_e28a0bed0376); +::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 @@ -1736,13 +1735,6 @@ impl ICameraUIControl { (::windows_core::Interface::vtable(self).RemoveCapturedItem)(::windows_core::Interface::as_raw(self), pszpath.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ICameraUIControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICameraUIControl { - type Vtable = ICameraUIControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICameraUIControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb8733adf_3d68_4b8f_bb08_e28a0bed0376); -} #[repr(C)] #[doc(hidden)] pub struct ICameraUIControl_Vtbl { @@ -1759,9 +1751,8 @@ pub struct ICameraUIControl_Vtbl { GetSelectedItems: usize, pub RemoveCapturedItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszpath: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICameraUIControlEventCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICameraUIControlEventCallback, ICameraUIControlEventCallback_Vtbl, 0x1bfa0c2c_fbcd_4776_bda4_88bf974e74f4); +::windows_core::imp::interface_hierarchy!(ICameraUIControlEventCallback, ::windows_core::IUnknown); impl ICameraUIControlEventCallback { pub unsafe fn OnStartupComplete(&self) { (::windows_core::Interface::vtable(self).OnStartupComplete)(::windows_core::Interface::as_raw(self)) @@ -1785,13 +1776,6 @@ impl ICameraUIControlEventCallback { (::windows_core::Interface::vtable(self).OnClosed)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(ICameraUIControlEventCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICameraUIControlEventCallback { - type Vtable = ICameraUIControlEventCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICameraUIControlEventCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1bfa0c2c_fbcd_4776_bda4_88bf974e74f4); -} #[repr(C)] #[doc(hidden)] pub struct ICameraUIControlEventCallback_Vtbl { @@ -1802,9 +1786,8 @@ pub struct ICameraUIControlEventCallback_Vtbl { pub OnItemDeleted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszpath: ::windows_core::PCWSTR), pub OnClosed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IClipServiceNotificationHelper(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IClipServiceNotificationHelper, IClipServiceNotificationHelper_Vtbl, 0xc39948f0_6142_44fd_98ca_e1681a8d68b5); +::windows_core::imp::interface_hierarchy!(IClipServiceNotificationHelper, ::windows_core::IUnknown); impl IClipServiceNotificationHelper { pub unsafe fn ShowToast(&self, titletext: P0, bodytext: P1, packagename: P2, appid: P3, launchcommand: P4) -> ::windows_core::Result<()> where @@ -1817,86 +1800,54 @@ impl IClipServiceNotificationHelper { (::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::imp::interface_hierarchy!(IClipServiceNotificationHelper, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IClipServiceNotificationHelper { - type Vtable = IClipServiceNotificationHelper_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IClipServiceNotificationHelper { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc39948f0_6142_44fd_98ca_e1681a8d68b5); -} #[repr(C)] #[doc(hidden)] pub struct IClipServiceNotificationHelper_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub ShowToast: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, titletext: ::std::mem::MaybeUninit<::windows_core::BSTR>, bodytext: ::std::mem::MaybeUninit<::windows_core::BSTR>, packagename: ::std::mem::MaybeUninit<::windows_core::BSTR>, appid: ::std::mem::MaybeUninit<::windows_core::BSTR>, launchcommand: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContainerActivationHelper(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IContainerActivationHelper, IContainerActivationHelper_Vtbl, 0xb524f93f_80d5_4ec7_ae9e_d66e93ade1fa); +::windows_core::imp::interface_hierarchy!(IContainerActivationHelper, ::windows_core::IUnknown); impl IContainerActivationHelper { pub unsafe fn CanActivateClientVM(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).CanActivateClientVM)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IContainerActivationHelper, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContainerActivationHelper { - type Vtable = IContainerActivationHelper_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContainerActivationHelper { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb524f93f_80d5_4ec7_ae9e_d66e93ade1fa); -} #[repr(C)] #[doc(hidden)] pub struct IContainerActivationHelper_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub CanActivateClientVM: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, isallowed: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDefaultBrowserSyncSettings(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDefaultBrowserSyncSettings, IDefaultBrowserSyncSettings_Vtbl, 0x7a27faad_5ae6_4255_9030_c530936292e3); +::windows_core::imp::interface_hierarchy!(IDefaultBrowserSyncSettings, ::windows_core::IUnknown); impl IDefaultBrowserSyncSettings { pub unsafe fn IsEnabled(&self) -> super::super::Foundation::BOOL { (::windows_core::Interface::vtable(self).IsEnabled)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(IDefaultBrowserSyncSettings, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDefaultBrowserSyncSettings { - type Vtable = IDefaultBrowserSyncSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDefaultBrowserSyncSettings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7a27faad_5ae6_4255_9030_c530936292e3); -} #[repr(C)] #[doc(hidden)] pub struct IDefaultBrowserSyncSettings_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub IsEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDeleteBrowsingHistory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDeleteBrowsingHistory, IDeleteBrowsingHistory_Vtbl, 0xcf38ed4b_2be7_4461_8b5e_9a466dc82ae3); +::windows_core::imp::interface_hierarchy!(IDeleteBrowsingHistory, ::windows_core::IUnknown); impl IDeleteBrowsingHistory { pub unsafe fn DeleteBrowsingHistory(&self, dwflags: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).DeleteBrowsingHistory)(::windows_core::Interface::as_raw(self), dwflags).ok() } } -::windows_core::imp::interface_hierarchy!(IDeleteBrowsingHistory, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDeleteBrowsingHistory { - type Vtable = IDeleteBrowsingHistory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDeleteBrowsingHistory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcf38ed4b_2be7_4461_8b5e_9a466dc82ae3); -} #[repr(C)] #[doc(hidden)] pub struct IDeleteBrowsingHistory_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub DeleteBrowsingHistory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwflags: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEditionUpgradeBroker(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEditionUpgradeBroker, IEditionUpgradeBroker_Vtbl, 0xff19cbcf_9455_4937_b872_6b7929a460af); +::windows_core::imp::interface_hierarchy!(IEditionUpgradeBroker, ::windows_core::IUnknown); impl IEditionUpgradeBroker { #[doc = "Required features: `\"Win32_System_Ole\"`"] #[cfg(feature = "Win32_System_Ole")] @@ -1919,13 +1870,6 @@ impl IEditionUpgradeBroker { (::windows_core::Interface::vtable(self).CanUpgrade)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IEditionUpgradeBroker, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEditionUpgradeBroker { - type Vtable = IEditionUpgradeBroker_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEditionUpgradeBroker { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xff19cbcf_9455_4937_b872_6b7929a460af); -} #[repr(C)] #[doc(hidden)] pub struct IEditionUpgradeBroker_Vtbl { @@ -1938,9 +1882,8 @@ pub struct IEditionUpgradeBroker_Vtbl { pub ShowProductKeyUI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CanUpgrade: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEditionUpgradeHelper(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEditionUpgradeHelper, IEditionUpgradeHelper_Vtbl, 0xd3e9e342_5deb_43b6_849e_6913b85d503a); +::windows_core::imp::interface_hierarchy!(IEditionUpgradeHelper, ::windows_core::IUnknown); impl IEditionUpgradeHelper { pub unsafe fn CanUpgrade(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1964,13 +1907,6 @@ impl IEditionUpgradeHelper { (::windows_core::Interface::vtable(self).GetGenuineLocalStatus)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEditionUpgradeHelper, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEditionUpgradeHelper { - type Vtable = IEditionUpgradeHelper_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEditionUpgradeHelper { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd3e9e342_5deb_43b6_849e_6913b85d503a); -} #[repr(C)] #[doc(hidden)] pub struct IEditionUpgradeHelper_Vtbl { @@ -1981,9 +1917,8 @@ pub struct IEditionUpgradeHelper_Vtbl { pub GetOsProductContentId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, contentid: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, pub GetGenuineLocalStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, isgenuine: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFClipNotificationHelper(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFClipNotificationHelper, IFClipNotificationHelper_Vtbl, 0x3d5e3d21_bd41_4c2a_a669_b17ce87fb50b); +::windows_core::imp::interface_hierarchy!(IFClipNotificationHelper, ::windows_core::IUnknown); impl IFClipNotificationHelper { pub unsafe fn ShowSystemDialog(&self, titletext: P0, bodytext: P1) -> ::windows_core::Result<()> where @@ -1993,35 +1928,20 @@ impl IFClipNotificationHelper { (::windows_core::Interface::vtable(self).ShowSystemDialog)(::windows_core::Interface::as_raw(self), titletext.into_param().abi(), bodytext.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IFClipNotificationHelper, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFClipNotificationHelper { - type Vtable = IFClipNotificationHelper_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFClipNotificationHelper { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3d5e3d21_bd41_4c2a_a669_b17ce87fb50b); -} #[repr(C)] #[doc(hidden)] pub struct IFClipNotificationHelper_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub ShowSystemDialog: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, titletext: ::std::mem::MaybeUninit<::windows_core::BSTR>, bodytext: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWindowsLockModeHelper(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWindowsLockModeHelper, IWindowsLockModeHelper_Vtbl, 0xf342d19e_cc22_4648_bb5d_03ccf75b47c5); +::windows_core::imp::interface_hierarchy!(IWindowsLockModeHelper, ::windows_core::IUnknown); impl IWindowsLockModeHelper { pub unsafe fn GetSMode(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetSMode)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWindowsLockModeHelper, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWindowsLockModeHelper { - type Vtable = IWindowsLockModeHelper_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWindowsLockModeHelper { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf342d19e_cc22_4648_bb5d_03ccf75b47c5); -} #[repr(C)] #[doc(hidden)] pub struct IWindowsLockModeHelper_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/System/WindowsSync/impl.rs b/crates/libs/windows/src/Windows/Win32/System/WindowsSync/impl.rs index b1f5125b5e..9c1689929c 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WindowsSync/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WindowsSync/impl.rs @@ -36,7 +36,7 @@ impl IAsynchronousDataRetriever_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IChangeConflict_Impl: Sized { @@ -129,7 +129,7 @@ impl IChangeConflict_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IChangeUnitException_Impl: Sized { @@ -163,7 +163,7 @@ impl IChangeUnitException_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IChangeUnitListFilterInfo_Impl: Sized + ISyncFilterInfo_Impl { @@ -197,7 +197,7 @@ impl IChangeUnitListFilterInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IClockVector_Impl: Sized { @@ -224,7 +224,7 @@ impl IClockVector_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IClockVectorElement_Impl: Sized { @@ -251,7 +251,7 @@ impl IClockVectorElement_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICombinedFilterInfo_Impl: Sized + ISyncFilterInfo_Impl { @@ -291,7 +291,7 @@ impl ICombinedFilterInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IConstraintConflict_Impl: Sized { @@ -424,7 +424,7 @@ impl IConstraintConflict_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IConstructReplicaKeyMap_Impl: Sized { @@ -441,7 +441,7 @@ impl IConstructReplicaKeyMap_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), FindOrAddReplica: FindOrAddReplica:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICoreFragment_Impl: Sized { @@ -489,7 +489,7 @@ impl ICoreFragment_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICoreFragmentInspector_Impl: Sized { @@ -516,7 +516,7 @@ impl ICoreFragmentInspector_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICustomFilterInfo_Impl: Sized + ISyncFilterInfo_Impl { @@ -539,7 +539,7 @@ impl ICustomFilterInfo_Vtbl { Self { base__: ISyncFilterInfo_Vtbl::new::(), GetSyncFilter: GetSyncFilter:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDataRetrieverCallback_Impl: Sized { @@ -566,7 +566,7 @@ impl IDataRetrieverCallback_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumChangeUnitExceptions_Impl: Sized { @@ -613,7 +613,7 @@ impl IEnumChangeUnitExceptions_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumClockVector_Impl: Sized { @@ -660,7 +660,7 @@ impl IEnumClockVector_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumFeedClockVector_Impl: Sized { @@ -707,7 +707,7 @@ impl IEnumFeedClockVector_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumItemIds_Impl: Sized { @@ -724,7 +724,7 @@ impl IEnumItemIds_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Next: Next:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumRangeExceptions_Impl: Sized { @@ -771,7 +771,7 @@ impl IEnumRangeExceptions_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumSingleItemExceptions_Impl: Sized { @@ -818,7 +818,7 @@ impl IEnumSingleItemExceptions_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumSyncChangeUnits_Impl: Sized { @@ -865,7 +865,7 @@ impl IEnumSyncChangeUnits_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumSyncChanges_Impl: Sized { @@ -912,7 +912,7 @@ impl IEnumSyncChanges_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -963,7 +963,7 @@ impl IEnumSyncProviderConfigUIInfos_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -1014,7 +1014,7 @@ impl IEnumSyncProviderInfos_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IFeedClockVector_Impl: Sized + IClockVector_Impl { @@ -1041,7 +1041,7 @@ impl IFeedClockVector_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IFeedClockVectorElement_Impl: Sized + IClockVectorElement_Impl { @@ -1068,7 +1068,7 @@ impl IFeedClockVectorElement_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IFilterKeyMap_Impl: Sized { @@ -1115,7 +1115,7 @@ impl IFilterKeyMap_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IFilterRequestCallback_Impl: Sized { @@ -1132,7 +1132,7 @@ impl IFilterRequestCallback_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), RequestFilter: RequestFilter:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IFilterTrackingProvider_Impl: Sized { @@ -1159,7 +1159,7 @@ impl IFilterTrackingProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IFilterTrackingRequestCallback_Impl: Sized { @@ -1176,7 +1176,7 @@ impl IFilterTrackingRequestCallback_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), RequestTrackedFilter: RequestTrackedFilter:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IFilterTrackingSyncChangeBuilder_Impl: Sized { @@ -1203,7 +1203,7 @@ impl IFilterTrackingSyncChangeBuilder_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IForgottenKnowledge_Impl: Sized + ISyncKnowledge_Impl { @@ -1220,7 +1220,7 @@ impl IForgottenKnowledge_Vtbl { Self { base__: ISyncKnowledge_Vtbl::new::(), ForgetToVersion: ForgetToVersion:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IKnowledgeSyncProvider_Impl: Sized + ISyncProvider_Impl { @@ -1282,7 +1282,7 @@ impl IKnowledgeSyncProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ILoadChangeContext_Impl: Sized { @@ -1322,7 +1322,7 @@ impl ILoadChangeContext_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IProviderConverter_Impl: Sized { @@ -1339,7 +1339,7 @@ impl IProviderConverter_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Initialize: Initialize:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRangeException_Impl: Sized { @@ -1373,7 +1373,7 @@ impl IRangeException_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRecoverableError_Impl: Sized { @@ -1427,7 +1427,7 @@ impl IRecoverableError_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRecoverableErrorData_Impl: Sized { @@ -1461,7 +1461,7 @@ impl IRecoverableErrorData_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -1505,7 +1505,7 @@ impl IRegisteredSyncProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IReplicaKeyMap_Impl: Sized { @@ -1539,7 +1539,7 @@ impl IReplicaKeyMap_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRequestFilteredSync_Impl: Sized { @@ -1556,7 +1556,7 @@ impl IRequestFilteredSync_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), SpecifyFilter: SpecifyFilter:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISingleItemException_Impl: Sized { @@ -1583,7 +1583,7 @@ impl ISingleItemException_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISupportFilteredSync_Impl: Sized { @@ -1600,7 +1600,7 @@ impl ISupportFilteredSync_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), AddFilter: AddFilter:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISupportLastWriteTime_Impl: Sized { @@ -1627,7 +1627,7 @@ impl ISupportLastWriteTime_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISyncCallback_Impl: Sized { @@ -1675,7 +1675,7 @@ impl ISyncCallback_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISyncCallback2_Impl: Sized + ISyncCallback_Impl { @@ -1702,7 +1702,7 @@ impl ISyncCallback2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ISyncChange_Impl: Sized { @@ -1803,7 +1803,7 @@ impl ISyncChange_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISyncChangeBatch_Impl: Sized + ISyncChangeBatchBase_Impl { @@ -1843,7 +1843,7 @@ impl ISyncChangeBatch_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ISyncChangeBatch2_Impl: Sized + ISyncChangeBatch_Impl { @@ -1882,7 +1882,7 @@ impl ISyncChangeBatch2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ISyncChangeBatchAdvanced_Impl: Sized { @@ -1935,7 +1935,7 @@ impl ISyncChangeBatchAdvanced_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISyncChangeBatchBase_Impl: Sized { @@ -2076,7 +2076,7 @@ impl ISyncChangeBatchBase_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISyncChangeBatchBase2_Impl: Sized + ISyncChangeBatchBase_Impl { @@ -2093,7 +2093,7 @@ impl ISyncChangeBatchBase2_Vtbl { Self { base__: ISyncChangeBatchBase_Vtbl::new::(), SerializeWithOptions: SerializeWithOptions:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ISyncChangeBatchWithFilterKeyMap_Impl: Sized { @@ -2198,7 +2198,7 @@ impl ISyncChangeBatchWithFilterKeyMap_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISyncChangeBatchWithPrerequisite_Impl: Sized + ISyncChangeBatchBase_Impl { @@ -2244,7 +2244,7 @@ impl ISyncChangeBatchWithPrerequisite_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ISyncChangeBuilder_Impl: Sized { @@ -2261,7 +2261,7 @@ impl ISyncChangeBuilder_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), AddChangeUnitMetadata: AddChangeUnitMetadata:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISyncChangeUnit_Impl: Sized { @@ -2301,7 +2301,7 @@ impl ISyncChangeUnit_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISyncChangeWithFilterKeyMap_Impl: Sized { @@ -2413,7 +2413,7 @@ impl ISyncChangeWithFilterKeyMap_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISyncChangeWithPrerequisite_Impl: Sized { @@ -2452,7 +2452,7 @@ impl ISyncChangeWithPrerequisite_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISyncConstraintCallback_Impl: Sized { @@ -2469,7 +2469,7 @@ impl ISyncConstraintCallback_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnConstraintConflict: OnConstraintConflict:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISyncDataConverter_Impl: Sized { @@ -2534,7 +2534,7 @@ impl ISyncDataConverter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISyncFilter_Impl: Sized { @@ -2561,7 +2561,7 @@ impl ISyncFilter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISyncFilterDeserializer_Impl: Sized { @@ -2584,7 +2584,7 @@ impl ISyncFilterDeserializer_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), DeserializeSyncFilter: DeserializeSyncFilter:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISyncFilterInfo_Impl: Sized { @@ -2601,7 +2601,7 @@ impl ISyncFilterInfo_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Serialize: Serialize:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISyncFilterInfo2_Impl: Sized + ISyncFilterInfo_Impl { @@ -2618,7 +2618,7 @@ impl ISyncFilterInfo2_Vtbl { Self { base__: ISyncFilterInfo_Vtbl::new::(), GetFlags: GetFlags:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ISyncFullEnumerationChange_Impl: Sized { @@ -2657,7 +2657,7 @@ impl ISyncFullEnumerationChange_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISyncFullEnumerationChangeBatch_Impl: Sized + ISyncChangeBatchBase_Impl { @@ -2697,7 +2697,7 @@ impl ISyncFullEnumerationChangeBatch_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ISyncFullEnumerationChangeBatch2_Impl: Sized + ISyncFullEnumerationChangeBatch_Impl { @@ -2723,7 +2723,7 @@ impl ISyncFullEnumerationChangeBatch2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ISyncKnowledge_Impl: Sized { @@ -2940,7 +2940,7 @@ impl ISyncKnowledge_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISyncKnowledge2_Impl: Sized + ISyncKnowledge_Impl { @@ -3075,7 +3075,7 @@ impl ISyncKnowledge2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ISyncMergeTombstoneChange_Impl: Sized { @@ -3092,7 +3092,7 @@ impl ISyncMergeTombstoneChange_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetWinnerItemId: GetWinnerItemId:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISyncProvider_Impl: Sized { @@ -3109,7 +3109,7 @@ impl ISyncProvider_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetIdParameters: GetIdParameters:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -3166,7 +3166,7 @@ impl ISyncProviderConfigUI_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`, `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -3196,7 +3196,7 @@ impl ISyncProviderConfigUIInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`, `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -3226,7 +3226,7 @@ impl ISyncProviderInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -3421,7 +3421,7 @@ impl ISyncProviderRegistration_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISyncRegistrationChange_Impl: Sized { @@ -3460,7 +3460,7 @@ impl ISyncRegistrationChange_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISyncSessionExtendedErrorInfo_Impl: Sized { @@ -3483,7 +3483,7 @@ impl ISyncSessionExtendedErrorInfo_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetSyncProviderWithError: GetSyncProviderWithError:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISyncSessionState_Impl: Sized { @@ -3545,7 +3545,7 @@ impl ISyncSessionState_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISyncSessionState2_Impl: Sized + ISyncSessionState_Impl { @@ -3572,7 +3572,7 @@ impl ISyncSessionState2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ISynchronousDataRetriever_Impl: Sized { @@ -3605,6 +3605,6 @@ impl ISynchronousDataRetriever_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 0850b6d13b..6832ca62d8 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WindowsSync/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WindowsSync/mod.rs @@ -1,6 +1,5 @@ -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAsynchronousDataRetriever(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAsynchronousDataRetriever, IAsynchronousDataRetriever_Vtbl, 0x9fc7e470_61ea_4a88_9be4_df56a27cfef2); +::windows_core::imp::interface_hierarchy!(IAsynchronousDataRetriever, ::windows_core::IUnknown); impl IAsynchronousDataRetriever { pub unsafe fn GetIdParameters(&self, pidparameters: *mut ID_PARAMETERS) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetIdParameters)(::windows_core::Interface::as_raw(self), pidparameters).ok() @@ -24,13 +23,6 @@ impl IAsynchronousDataRetriever { (::windows_core::Interface::vtable(self).LoadChangeData)(::windows_core::Interface::as_raw(self), ploadchangecontext.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IAsynchronousDataRetriever, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAsynchronousDataRetriever { - type Vtable = IAsynchronousDataRetriever_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAsynchronousDataRetriever { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9fc7e470_61ea_4a88_9be4_df56a27cfef2); -} #[repr(C)] #[doc(hidden)] pub struct IAsynchronousDataRetriever_Vtbl { @@ -40,9 +32,8 @@ pub struct IAsynchronousDataRetriever_Vtbl { pub RevokeCallback: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdataretrievercallback: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub LoadChangeData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ploadchangecontext: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IChangeConflict(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IChangeConflict, IChangeConflict_Vtbl, 0x014ebf97_9f20_4f7a_bdd4_25979c77c002); +::windows_core::imp::interface_hierarchy!(IChangeConflict, ::windows_core::IUnknown); impl IChangeConflict { pub unsafe fn GetDestinationProviderConflictingChange(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -79,13 +70,6 @@ impl IChangeConflict { (::windows_core::Interface::vtable(self).SetResolveActionForChangeUnit)(::windows_core::Interface::as_raw(self), pchangeunit.into_param().abi(), resolveaction).ok() } } -::windows_core::imp::interface_hierarchy!(IChangeConflict, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IChangeConflict { - type Vtable = IChangeConflict_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IChangeConflict { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x014ebf97_9f20_4f7a_bdd4_25979c77c002); -} #[repr(C)] #[doc(hidden)] pub struct IChangeConflict_Vtbl { @@ -99,9 +83,8 @@ pub struct IChangeConflict_Vtbl { pub GetResolveActionForChangeUnit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pchangeunit: *mut ::core::ffi::c_void, presolveaction: *mut SYNC_RESOLVE_ACTION) -> ::windows_core::HRESULT, pub SetResolveActionForChangeUnit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pchangeunit: *mut ::core::ffi::c_void, resolveaction: SYNC_RESOLVE_ACTION) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IChangeUnitException(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IChangeUnitException, IChangeUnitException_Vtbl, 0x0cd7ee7c_fec0_4021_99ee_f0e5348f2a5f); +::windows_core::imp::interface_hierarchy!(IChangeUnitException, ::windows_core::IUnknown); impl IChangeUnitException { pub unsafe fn GetItemId(&self, pbitemid: *mut u8, pcbidsize: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetItemId)(::windows_core::Interface::as_raw(self), pbitemid, pcbidsize).ok() @@ -113,13 +96,6 @@ impl IChangeUnitException { (::windows_core::Interface::vtable(self).GetClockVector)(::windows_core::Interface::as_raw(self), riid, ppunk).ok() } } -::windows_core::imp::interface_hierarchy!(IChangeUnitException, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IChangeUnitException { - type Vtable = IChangeUnitException_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IChangeUnitException { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0cd7ee7c_fec0_4021_99ee_f0e5348f2a5f); -} #[repr(C)] #[doc(hidden)] pub struct IChangeUnitException_Vtbl { @@ -128,9 +104,8 @@ pub struct IChangeUnitException_Vtbl { pub GetChangeUnitId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbchangeunitid: *mut u8, pcbidsize: *mut u32) -> ::windows_core::HRESULT, pub GetClockVector: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppunk: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IChangeUnitListFilterInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IChangeUnitListFilterInfo, IChangeUnitListFilterInfo_Vtbl, 0xf2837671_0bdf_43fa_b502_232375fb50c2); +::windows_core::imp::interface_hierarchy!(IChangeUnitListFilterInfo, ::windows_core::IUnknown, ISyncFilterInfo); impl IChangeUnitListFilterInfo { pub unsafe fn Serialize(&self, pbbuffer: *mut u8, pcbbuffer: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.Serialize)(::windows_core::Interface::as_raw(self), pbbuffer, pcbbuffer).ok() @@ -145,13 +120,6 @@ impl IChangeUnitListFilterInfo { (::windows_core::Interface::vtable(self).GetChangeUnitId)(::windows_core::Interface::as_raw(self), dwchangeunitidindex, pbchangeunitid, pcbidsize).ok() } } -::windows_core::imp::interface_hierarchy!(IChangeUnitListFilterInfo, ::windows_core::IUnknown, ISyncFilterInfo); -unsafe impl ::windows_core::Interface for IChangeUnitListFilterInfo { - type Vtable = IChangeUnitListFilterInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IChangeUnitListFilterInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf2837671_0bdf_43fa_b502_232375fb50c2); -} #[repr(C)] #[doc(hidden)] pub struct IChangeUnitListFilterInfo_Vtbl { @@ -160,9 +128,8 @@ pub struct IChangeUnitListFilterInfo_Vtbl { pub GetChangeUnitIdCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwchangeunitidcount: *mut u32) -> ::windows_core::HRESULT, pub GetChangeUnitId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwchangeunitidindex: u32, pbchangeunitid: *mut u8, pcbidsize: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IClockVector(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IClockVector, IClockVector_Vtbl, 0x14b2274a_8698_4cc6_9333_f89bd1d47bc4); +::windows_core::imp::interface_hierarchy!(IClockVector, ::windows_core::IUnknown); impl IClockVector { pub unsafe fn GetClockVectorElements(&self, riid: *const ::windows_core::GUID, ppienumclockvector: *mut *mut ::core::ffi::c_void) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetClockVectorElements)(::windows_core::Interface::as_raw(self), riid, ppienumclockvector).ok() @@ -171,13 +138,6 @@ impl IClockVector { (::windows_core::Interface::vtable(self).GetClockVectorElementCount)(::windows_core::Interface::as_raw(self), pdwcount).ok() } } -::windows_core::imp::interface_hierarchy!(IClockVector, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IClockVector { - type Vtable = IClockVector_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IClockVector { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x14b2274a_8698_4cc6_9333_f89bd1d47bc4); -} #[repr(C)] #[doc(hidden)] pub struct IClockVector_Vtbl { @@ -185,9 +145,8 @@ pub struct IClockVector_Vtbl { pub GetClockVectorElements: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppienumclockvector: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetClockVectorElementCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwcount: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IClockVectorElement(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IClockVectorElement, IClockVectorElement_Vtbl, 0xe71c4250_adf8_4a07_8fae_5669596909c1); +::windows_core::imp::interface_hierarchy!(IClockVectorElement, ::windows_core::IUnknown); impl IClockVectorElement { pub unsafe fn GetReplicaKey(&self, pdwreplicakey: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetReplicaKey)(::windows_core::Interface::as_raw(self), pdwreplicakey).ok() @@ -196,13 +155,6 @@ impl IClockVectorElement { (::windows_core::Interface::vtable(self).GetTickCount)(::windows_core::Interface::as_raw(self), pulltickcount).ok() } } -::windows_core::imp::interface_hierarchy!(IClockVectorElement, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IClockVectorElement { - type Vtable = IClockVectorElement_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IClockVectorElement { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe71c4250_adf8_4a07_8fae_5669596909c1); -} #[repr(C)] #[doc(hidden)] pub struct IClockVectorElement_Vtbl { @@ -210,9 +162,8 @@ pub struct IClockVectorElement_Vtbl { pub GetReplicaKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwreplicakey: *mut u32) -> ::windows_core::HRESULT, pub GetTickCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pulltickcount: *mut u64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICombinedFilterInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICombinedFilterInfo, ICombinedFilterInfo_Vtbl, 0x11f9de71_2818_4779_b2ac_42d450565f45); +::windows_core::imp::interface_hierarchy!(ICombinedFilterInfo, ::windows_core::IUnknown, ISyncFilterInfo); impl ICombinedFilterInfo { pub unsafe fn Serialize(&self, pbbuffer: *mut u8, pcbbuffer: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.Serialize)(::windows_core::Interface::as_raw(self), pbbuffer, pcbbuffer).ok() @@ -228,13 +179,6 @@ impl ICombinedFilterInfo { (::windows_core::Interface::vtable(self).GetFilterCombinationType)(::windows_core::Interface::as_raw(self), pfiltercombinationtype).ok() } } -::windows_core::imp::interface_hierarchy!(ICombinedFilterInfo, ::windows_core::IUnknown, ISyncFilterInfo); -unsafe impl ::windows_core::Interface for ICombinedFilterInfo { - type Vtable = ICombinedFilterInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICombinedFilterInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x11f9de71_2818_4779_b2ac_42d450565f45); -} #[repr(C)] #[doc(hidden)] pub struct ICombinedFilterInfo_Vtbl { @@ -243,9 +187,8 @@ pub struct ICombinedFilterInfo_Vtbl { pub GetFilterInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwfilterindex: u32, ppifilterinfo: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetFilterCombinationType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfiltercombinationtype: *mut FILTER_COMBINATION_TYPE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IConstraintConflict(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IConstraintConflict, IConstraintConflict_Vtbl, 0x00d2302e_1cf8_4835_b85f_b7ca4f799e0a); +::windows_core::imp::interface_hierarchy!(IConstraintConflict, ::windows_core::IUnknown); impl IConstraintConflict { pub unsafe fn GetDestinationProviderConflictingChange(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -296,13 +239,6 @@ impl IConstraintConflict { (::windows_core::Interface::vtable(self).IsTemporary)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IConstraintConflict, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IConstraintConflict { - type Vtable = IConstraintConflict_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IConstraintConflict { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00d2302e_1cf8_4835_b85f_b7ca4f799e0a); -} #[repr(C)] #[doc(hidden)] pub struct IConstraintConflict_Vtbl { @@ -320,30 +256,21 @@ pub struct IConstraintConflict_Vtbl { pub GetConstraintConflictReason: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pconstraintconflictreason: *mut CONSTRAINT_CONFLICT_REASON) -> ::windows_core::HRESULT, pub IsTemporary: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IConstructReplicaKeyMap(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IConstructReplicaKeyMap, IConstructReplicaKeyMap_Vtbl, 0xded10970_ec85_4115_b52c_4405845642a5); +::windows_core::imp::interface_hierarchy!(IConstructReplicaKeyMap, ::windows_core::IUnknown); impl IConstructReplicaKeyMap { pub unsafe fn FindOrAddReplica(&self, pbreplicaid: *const u8, pdwreplicakey: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).FindOrAddReplica)(::windows_core::Interface::as_raw(self), pbreplicaid, pdwreplicakey).ok() } } -::windows_core::imp::interface_hierarchy!(IConstructReplicaKeyMap, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IConstructReplicaKeyMap { - type Vtable = IConstructReplicaKeyMap_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IConstructReplicaKeyMap { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xded10970_ec85_4115_b52c_4405845642a5); -} #[repr(C)] #[doc(hidden)] pub struct IConstructReplicaKeyMap_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub FindOrAddReplica: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbreplicaid: *const u8, pdwreplicakey: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreFragment(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICoreFragment, ICoreFragment_Vtbl, 0x613b2ab5_b304_47d9_9c31_ce6c54401a15); +::windows_core::imp::interface_hierarchy!(ICoreFragment, ::windows_core::IUnknown); impl ICoreFragment { pub unsafe fn NextColumn(&self, pchangeunitid: *mut u8, pchangeunitidsize: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).NextColumn)(::windows_core::Interface::as_raw(self), pchangeunitid, pchangeunitidsize).ok() @@ -361,13 +288,6 @@ impl ICoreFragment { (::windows_core::Interface::vtable(self).GetRangeCount)(::windows_core::Interface::as_raw(self), prangecount).ok() } } -::windows_core::imp::interface_hierarchy!(ICoreFragment, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreFragment { - type Vtable = ICoreFragment_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreFragment { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x613b2ab5_b304_47d9_9c31_ce6c54401a15); -} #[repr(C)] #[doc(hidden)] pub struct ICoreFragment_Vtbl { @@ -378,9 +298,8 @@ pub struct ICoreFragment_Vtbl { pub GetColumnCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcolumncount: *mut u32) -> ::windows_core::HRESULT, pub GetRangeCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prangecount: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoreFragmentInspector(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICoreFragmentInspector, ICoreFragmentInspector_Vtbl, 0xf7fcc5fd_ae26_4679_ba16_96aac583c134); +::windows_core::imp::interface_hierarchy!(ICoreFragmentInspector, ::windows_core::IUnknown); impl ICoreFragmentInspector { pub unsafe fn NextCoreFragments(&self, requestedcount: u32, ppicorefragments: *mut ::core::option::Option, pfetchedcount: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).NextCoreFragments)(::windows_core::Interface::as_raw(self), requestedcount, ::core::mem::transmute(ppicorefragments), pfetchedcount).ok() @@ -389,13 +308,6 @@ impl ICoreFragmentInspector { (::windows_core::Interface::vtable(self).Reset)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ICoreFragmentInspector, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoreFragmentInspector { - type Vtable = ICoreFragmentInspector_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoreFragmentInspector { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf7fcc5fd_ae26_4679_ba16_96aac583c134); -} #[repr(C)] #[doc(hidden)] pub struct ICoreFragmentInspector_Vtbl { @@ -403,9 +315,8 @@ pub struct ICoreFragmentInspector_Vtbl { pub NextCoreFragments: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, requestedcount: u32, ppicorefragments: *mut *mut ::core::ffi::c_void, pfetchedcount: *mut u32) -> ::windows_core::HRESULT, pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICustomFilterInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICustomFilterInfo, ICustomFilterInfo_Vtbl, 0x1d335dff_6f88_4e4d_91a8_a3f351cfd473); +::windows_core::imp::interface_hierarchy!(ICustomFilterInfo, ::windows_core::IUnknown, ISyncFilterInfo); impl ICustomFilterInfo { pub unsafe fn Serialize(&self, pbbuffer: *mut u8, pcbbuffer: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.Serialize)(::windows_core::Interface::as_raw(self), pbbuffer, pcbbuffer).ok() @@ -415,22 +326,14 @@ impl ICustomFilterInfo { (::windows_core::Interface::vtable(self).GetSyncFilter)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ICustomFilterInfo, ::windows_core::IUnknown, ISyncFilterInfo); -unsafe impl ::windows_core::Interface for ICustomFilterInfo { - type Vtable = ICustomFilterInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICustomFilterInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1d335dff_6f88_4e4d_91a8_a3f351cfd473); -} #[repr(C)] #[doc(hidden)] pub struct ICustomFilterInfo_Vtbl { pub base__: ISyncFilterInfo_Vtbl, pub GetSyncFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pisyncfilter: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataRetrieverCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDataRetrieverCallback, IDataRetrieverCallback_Vtbl, 0x71b4863b_f969_4676_bbc3_3d9fdc3fb2c7); +::windows_core::imp::interface_hierarchy!(IDataRetrieverCallback, ::windows_core::IUnknown); impl IDataRetrieverCallback { pub unsafe fn LoadChangeDataComplete(&self, punkdata: P0) -> ::windows_core::Result<()> where @@ -442,13 +345,6 @@ impl IDataRetrieverCallback { (::windows_core::Interface::vtable(self).LoadChangeDataError)(::windows_core::Interface::as_raw(self), hrerror).ok() } } -::windows_core::imp::interface_hierarchy!(IDataRetrieverCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDataRetrieverCallback { - type Vtable = IDataRetrieverCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDataRetrieverCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x71b4863b_f969_4676_bbc3_3d9fdc3fb2c7); -} #[repr(C)] #[doc(hidden)] pub struct IDataRetrieverCallback_Vtbl { @@ -456,9 +352,8 @@ pub struct IDataRetrieverCallback_Vtbl { pub LoadChangeDataComplete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punkdata: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub LoadChangeDataError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hrerror: ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumChangeUnitExceptions(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumChangeUnitExceptions, IEnumChangeUnitExceptions_Vtbl, 0x3074e802_9319_4420_be21_1022e2e21da8); +::windows_core::imp::interface_hierarchy!(IEnumChangeUnitExceptions, ::windows_core::IUnknown); impl IEnumChangeUnitExceptions { pub unsafe fn Next(&self, cexceptions: u32, ppchangeunitexception: *mut ::core::option::Option, pcfetched: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), cexceptions, ::core::mem::transmute(ppchangeunitexception), pcfetched).ok() @@ -474,13 +369,6 @@ impl IEnumChangeUnitExceptions { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumChangeUnitExceptions, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumChangeUnitExceptions { - type Vtable = IEnumChangeUnitExceptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumChangeUnitExceptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3074e802_9319_4420_be21_1022e2e21da8); -} #[repr(C)] #[doc(hidden)] pub struct IEnumChangeUnitExceptions_Vtbl { @@ -490,9 +378,8 @@ pub struct IEnumChangeUnitExceptions_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumClockVector(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumClockVector, IEnumClockVector_Vtbl, 0x525844db_2837_4799_9e80_81a66e02220c); +::windows_core::imp::interface_hierarchy!(IEnumClockVector, ::windows_core::IUnknown); impl IEnumClockVector { pub unsafe fn Next(&self, cclockvectorelements: u32, ppiclockvectorelements: *mut ::core::option::Option, pcfetched: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), cclockvectorelements, ::core::mem::transmute(ppiclockvectorelements), pcfetched).ok() @@ -508,13 +395,6 @@ impl IEnumClockVector { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumClockVector, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumClockVector { - type Vtable = IEnumClockVector_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumClockVector { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x525844db_2837_4799_9e80_81a66e02220c); -} #[repr(C)] #[doc(hidden)] pub struct IEnumClockVector_Vtbl { @@ -524,9 +404,8 @@ pub struct IEnumClockVector_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppienum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumFeedClockVector(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumFeedClockVector, IEnumFeedClockVector_Vtbl, 0x550f763d_146a_48f6_abeb_6c88c7f70514); +::windows_core::imp::interface_hierarchy!(IEnumFeedClockVector, ::windows_core::IUnknown); impl IEnumFeedClockVector { pub unsafe fn Next(&self, cclockvectorelements: u32, ppiclockvectorelements: *mut ::core::option::Option, pcfetched: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), cclockvectorelements, ::core::mem::transmute(ppiclockvectorelements), pcfetched).ok() @@ -542,13 +421,6 @@ impl IEnumFeedClockVector { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumFeedClockVector, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumFeedClockVector { - type Vtable = IEnumFeedClockVector_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumFeedClockVector { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x550f763d_146a_48f6_abeb_6c88c7f70514); -} #[repr(C)] #[doc(hidden)] pub struct IEnumFeedClockVector_Vtbl { @@ -558,30 +430,21 @@ pub struct IEnumFeedClockVector_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppienum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumItemIds(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumItemIds, IEnumItemIds_Vtbl, 0x43aa3f61_4b2e_4b60_83df_b110d3e148f1); +::windows_core::imp::interface_hierarchy!(IEnumItemIds, ::windows_core::IUnknown); impl IEnumItemIds { pub unsafe fn Next(&self, pbitemid: *mut u8, pcbitemidsize: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), pbitemid, pcbitemidsize).ok() } } -::windows_core::imp::interface_hierarchy!(IEnumItemIds, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumItemIds { - type Vtable = IEnumItemIds_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumItemIds { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x43aa3f61_4b2e_4b60_83df_b110d3e148f1); -} #[repr(C)] #[doc(hidden)] pub struct IEnumItemIds_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Next: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbitemid: *mut u8, pcbitemidsize: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumRangeExceptions(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumRangeExceptions, IEnumRangeExceptions_Vtbl, 0x0944439f_ddb1_4176_b703_046ff22a2386); +::windows_core::imp::interface_hierarchy!(IEnumRangeExceptions, ::windows_core::IUnknown); impl IEnumRangeExceptions { pub unsafe fn Next(&self, cexceptions: u32, pprangeexception: *mut ::core::option::Option, pcfetched: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), cexceptions, ::core::mem::transmute(pprangeexception), pcfetched).ok() @@ -597,13 +460,6 @@ impl IEnumRangeExceptions { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumRangeExceptions, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumRangeExceptions { - type Vtable = IEnumRangeExceptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumRangeExceptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0944439f_ddb1_4176_b703_046ff22a2386); -} #[repr(C)] #[doc(hidden)] pub struct IEnumRangeExceptions_Vtbl { @@ -613,9 +469,8 @@ pub struct IEnumRangeExceptions_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumSingleItemExceptions(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumSingleItemExceptions, IEnumSingleItemExceptions_Vtbl, 0xe563381c_1b4d_4c66_9796_c86faccdcd40); +::windows_core::imp::interface_hierarchy!(IEnumSingleItemExceptions, ::windows_core::IUnknown); impl IEnumSingleItemExceptions { pub unsafe fn Next(&self, cexceptions: u32, ppsingleitemexception: *mut ::core::option::Option, pcfetched: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), cexceptions, ::core::mem::transmute(ppsingleitemexception), pcfetched).ok() @@ -631,13 +486,6 @@ impl IEnumSingleItemExceptions { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumSingleItemExceptions, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumSingleItemExceptions { - type Vtable = IEnumSingleItemExceptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumSingleItemExceptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe563381c_1b4d_4c66_9796_c86faccdcd40); -} #[repr(C)] #[doc(hidden)] pub struct IEnumSingleItemExceptions_Vtbl { @@ -647,9 +495,8 @@ pub struct IEnumSingleItemExceptions_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumSyncChangeUnits(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumSyncChangeUnits, IEnumSyncChangeUnits_Vtbl, 0x346b35f1_8703_4c6d_ab1a_4dbca2cff97f); +::windows_core::imp::interface_hierarchy!(IEnumSyncChangeUnits, ::windows_core::IUnknown); impl IEnumSyncChangeUnits { pub unsafe fn Next(&self, cchanges: u32, ppchangeunit: *mut ::core::option::Option, pcfetched: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), cchanges, ::core::mem::transmute(ppchangeunit), pcfetched).ok() @@ -665,13 +512,6 @@ impl IEnumSyncChangeUnits { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumSyncChangeUnits, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumSyncChangeUnits { - type Vtable = IEnumSyncChangeUnits_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumSyncChangeUnits { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x346b35f1_8703_4c6d_ab1a_4dbca2cff97f); -} #[repr(C)] #[doc(hidden)] pub struct IEnumSyncChangeUnits_Vtbl { @@ -681,9 +521,8 @@ pub struct IEnumSyncChangeUnits_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumSyncChanges(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumSyncChanges, IEnumSyncChanges_Vtbl, 0x5f86be4a_5e78_4e32_ac1c_c24fd223ef85); +::windows_core::imp::interface_hierarchy!(IEnumSyncChanges, ::windows_core::IUnknown); impl IEnumSyncChanges { pub unsafe fn Next(&self, cchanges: u32, ppchange: *mut ::core::option::Option, pcfetched: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), cchanges, ::core::mem::transmute(ppchange), pcfetched).ok() @@ -699,13 +538,6 @@ impl IEnumSyncChanges { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumSyncChanges, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumSyncChanges { - type Vtable = IEnumSyncChanges_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumSyncChanges { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5f86be4a_5e78_4e32_ac1c_c24fd223ef85); -} #[repr(C)] #[doc(hidden)] pub struct IEnumSyncChanges_Vtbl { @@ -715,9 +547,8 @@ pub struct IEnumSyncChanges_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumSyncProviderConfigUIInfos(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumSyncProviderConfigUIInfos, IEnumSyncProviderConfigUIInfos_Vtbl, 0xf6be2602_17c6_4658_a2d7_68ed3330f641); +::windows_core::imp::interface_hierarchy!(IEnumSyncProviderConfigUIInfos, ::windows_core::IUnknown); impl IEnumSyncProviderConfigUIInfos { #[doc = "Required features: `\"Win32_UI_Shell_PropertiesSystem\"`"] #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] @@ -735,13 +566,6 @@ impl IEnumSyncProviderConfigUIInfos { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumSyncProviderConfigUIInfos, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumSyncProviderConfigUIInfos { - type Vtable = IEnumSyncProviderConfigUIInfos_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumSyncProviderConfigUIInfos { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf6be2602_17c6_4658_a2d7_68ed3330f641); -} #[repr(C)] #[doc(hidden)] pub struct IEnumSyncProviderConfigUIInfos_Vtbl { @@ -754,9 +578,8 @@ pub struct IEnumSyncProviderConfigUIInfos_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumSyncProviderInfos(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumSyncProviderInfos, IEnumSyncProviderInfos_Vtbl, 0xa04ba850_5eb1_460d_a973_393fcb608a11); +::windows_core::imp::interface_hierarchy!(IEnumSyncProviderInfos, ::windows_core::IUnknown); impl IEnumSyncProviderInfos { #[doc = "Required features: `\"Win32_UI_Shell_PropertiesSystem\"`"] #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] @@ -774,13 +597,6 @@ impl IEnumSyncProviderInfos { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumSyncProviderInfos, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumSyncProviderInfos { - type Vtable = IEnumSyncProviderInfos_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumSyncProviderInfos { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa04ba850_5eb1_460d_a973_393fcb608a11); -} #[repr(C)] #[doc(hidden)] pub struct IEnumSyncProviderInfos_Vtbl { @@ -793,9 +609,8 @@ pub struct IEnumSyncProviderInfos_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFeedClockVector(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFeedClockVector, IFeedClockVector_Vtbl, 0x8d1d98d1_9fb8_4ec9_a553_54dd924e0f67); +::windows_core::imp::interface_hierarchy!(IFeedClockVector, ::windows_core::IUnknown, IClockVector); impl IFeedClockVector { pub unsafe fn GetClockVectorElements(&self, riid: *const ::windows_core::GUID, ppienumclockvector: *mut *mut ::core::ffi::c_void) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.GetClockVectorElements)(::windows_core::Interface::as_raw(self), riid, ppienumclockvector).ok() @@ -810,13 +625,6 @@ impl IFeedClockVector { (::windows_core::Interface::vtable(self).IsNoConflictsSpecified)(::windows_core::Interface::as_raw(self), pfisnoconflictsspecified).ok() } } -::windows_core::imp::interface_hierarchy!(IFeedClockVector, ::windows_core::IUnknown, IClockVector); -unsafe impl ::windows_core::Interface for IFeedClockVector { - type Vtable = IFeedClockVector_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFeedClockVector { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8d1d98d1_9fb8_4ec9_a553_54dd924e0f67); -} #[repr(C)] #[doc(hidden)] pub struct IFeedClockVector_Vtbl { @@ -824,9 +632,8 @@ pub struct IFeedClockVector_Vtbl { pub GetUpdateCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwupdatecount: *mut u32) -> ::windows_core::HRESULT, pub IsNoConflictsSpecified: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfisnoconflictsspecified: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFeedClockVectorElement(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFeedClockVectorElement, IFeedClockVectorElement_Vtbl, 0xa40b46d2_e97b_4156_b6da_991f501b0f05); +::windows_core::imp::interface_hierarchy!(IFeedClockVectorElement, ::windows_core::IUnknown, IClockVectorElement); impl IFeedClockVectorElement { pub unsafe fn GetReplicaKey(&self, pdwreplicakey: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.GetReplicaKey)(::windows_core::Interface::as_raw(self), pdwreplicakey).ok() @@ -841,13 +648,6 @@ impl IFeedClockVectorElement { (::windows_core::Interface::vtable(self).GetFlags)(::windows_core::Interface::as_raw(self), pbflags).ok() } } -::windows_core::imp::interface_hierarchy!(IFeedClockVectorElement, ::windows_core::IUnknown, IClockVectorElement); -unsafe impl ::windows_core::Interface for IFeedClockVectorElement { - type Vtable = IFeedClockVectorElement_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFeedClockVectorElement { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa40b46d2_e97b_4156_b6da_991f501b0f05); -} #[repr(C)] #[doc(hidden)] pub struct IFeedClockVectorElement_Vtbl { @@ -855,9 +655,8 @@ pub struct IFeedClockVectorElement_Vtbl { pub GetSyncTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psynctime: *mut SYNC_TIME) -> ::windows_core::HRESULT, pub GetFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbflags: *mut u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFilterKeyMap(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFilterKeyMap, IFilterKeyMap_Vtbl, 0xca169652_07c6_4708_a3da_6e4eba8d2297); +::windows_core::imp::interface_hierarchy!(IFilterKeyMap, ::windows_core::IUnknown); impl IFilterKeyMap { pub unsafe fn GetCount(&self, pdwcount: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetCount)(::windows_core::Interface::as_raw(self), pdwcount).ok() @@ -876,13 +675,6 @@ impl IFilterKeyMap { (::windows_core::Interface::vtable(self).Serialize)(::windows_core::Interface::as_raw(self), pbfilterkeymap, pcbfilterkeymap).ok() } } -::windows_core::imp::interface_hierarchy!(IFilterKeyMap, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFilterKeyMap { - type Vtable = IFilterKeyMap_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFilterKeyMap { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xca169652_07c6_4708_a3da_6e4eba8d2297); -} #[repr(C)] #[doc(hidden)] pub struct IFilterKeyMap_Vtbl { @@ -892,9 +684,8 @@ pub struct IFilterKeyMap_Vtbl { pub GetFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwfilterkey: u32, ppisyncfilter: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Serialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbfilterkeymap: *mut u8, pcbfilterkeymap: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFilterRequestCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFilterRequestCallback, IFilterRequestCallback_Vtbl, 0x82df8873_6360_463a_a8a1_ede5e1a1594d); +::windows_core::imp::interface_hierarchy!(IFilterRequestCallback, ::windows_core::IUnknown); impl IFilterRequestCallback { pub unsafe fn RequestFilter(&self, pfilter: P0, filteringtype: FILTERING_TYPE) -> ::windows_core::Result<()> where @@ -903,22 +694,14 @@ impl IFilterRequestCallback { (::windows_core::Interface::vtable(self).RequestFilter)(::windows_core::Interface::as_raw(self), pfilter.into_param().abi(), filteringtype).ok() } } -::windows_core::imp::interface_hierarchy!(IFilterRequestCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFilterRequestCallback { - type Vtable = IFilterRequestCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFilterRequestCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x82df8873_6360_463a_a8a1_ede5e1a1594d); -} #[repr(C)] #[doc(hidden)] pub struct IFilterRequestCallback_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub RequestFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfilter: *mut ::core::ffi::c_void, filteringtype: FILTERING_TYPE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFilterTrackingProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFilterTrackingProvider, IFilterTrackingProvider_Vtbl, 0x743383c0_fc4e_45ba_ad81_d9d84c7a24f8); +::windows_core::imp::interface_hierarchy!(IFilterTrackingProvider, ::windows_core::IUnknown); impl IFilterTrackingProvider { pub unsafe fn SpecifyTrackedFilters(&self, pcallback: P0) -> ::windows_core::Result<()> where @@ -933,13 +716,6 @@ impl IFilterTrackingProvider { (::windows_core::Interface::vtable(self).AddTrackedFilter)(::windows_core::Interface::as_raw(self), pfilter.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IFilterTrackingProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFilterTrackingProvider { - type Vtable = IFilterTrackingProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFilterTrackingProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x743383c0_fc4e_45ba_ad81_d9d84c7a24f8); -} #[repr(C)] #[doc(hidden)] pub struct IFilterTrackingProvider_Vtbl { @@ -947,9 +723,8 @@ pub struct IFilterTrackingProvider_Vtbl { pub SpecifyTrackedFilters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcallback: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub AddTrackedFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfilter: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFilterTrackingRequestCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFilterTrackingRequestCallback, IFilterTrackingRequestCallback_Vtbl, 0x713ca7bb_c858_4674_b4b6_1122436587a9); +::windows_core::imp::interface_hierarchy!(IFilterTrackingRequestCallback, ::windows_core::IUnknown); impl IFilterTrackingRequestCallback { pub unsafe fn RequestTrackedFilter(&self, pfilter: P0) -> ::windows_core::Result<()> where @@ -958,22 +733,14 @@ impl IFilterTrackingRequestCallback { (::windows_core::Interface::vtable(self).RequestTrackedFilter)(::windows_core::Interface::as_raw(self), pfilter.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IFilterTrackingRequestCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFilterTrackingRequestCallback { - type Vtable = IFilterTrackingRequestCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFilterTrackingRequestCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x713ca7bb_c858_4674_b4b6_1122436587a9); -} #[repr(C)] #[doc(hidden)] pub struct IFilterTrackingRequestCallback_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub RequestTrackedFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfilter: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFilterTrackingSyncChangeBuilder(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFilterTrackingSyncChangeBuilder, IFilterTrackingSyncChangeBuilder_Vtbl, 0x295024a0_70da_4c58_883c_ce2afb308d0b); +::windows_core::imp::interface_hierarchy!(IFilterTrackingSyncChangeBuilder, ::windows_core::IUnknown); impl IFilterTrackingSyncChangeBuilder { pub unsafe fn AddFilterChange(&self, dwfilterkey: u32, pfilterchange: *const SYNC_FILTER_CHANGE) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).AddFilterChange)(::windows_core::Interface::as_raw(self), dwfilterkey, pfilterchange).ok() @@ -982,13 +749,6 @@ impl IFilterTrackingSyncChangeBuilder { (::windows_core::Interface::vtable(self).SetAllChangeUnitsPresentFlag)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IFilterTrackingSyncChangeBuilder, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFilterTrackingSyncChangeBuilder { - type Vtable = IFilterTrackingSyncChangeBuilder_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFilterTrackingSyncChangeBuilder { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x295024a0_70da_4c58_883c_ce2afb308d0b); -} #[repr(C)] #[doc(hidden)] pub struct IFilterTrackingSyncChangeBuilder_Vtbl { @@ -996,9 +756,8 @@ pub struct IFilterTrackingSyncChangeBuilder_Vtbl { pub AddFilterChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwfilterkey: u32, pfilterchange: *const SYNC_FILTER_CHANGE) -> ::windows_core::HRESULT, pub SetAllChangeUnitsPresentFlag: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IForgottenKnowledge(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IForgottenKnowledge, IForgottenKnowledge_Vtbl, 0x456e0f96_6036_452b_9f9d_bcc4b4a85db2); +::windows_core::imp::interface_hierarchy!(IForgottenKnowledge, ::windows_core::IUnknown, ISyncKnowledge); impl IForgottenKnowledge { pub unsafe fn GetOwnerReplicaId(&self, pbreplicaid: *mut u8, pcbidsize: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.GetOwnerReplicaId)(::windows_core::Interface::as_raw(self), pbreplicaid, pcbidsize).ok() @@ -1100,22 +859,14 @@ impl IForgottenKnowledge { (::windows_core::Interface::vtable(self).ForgetToVersion)(::windows_core::Interface::as_raw(self), pknowledge.into_param().abi(), pversion).ok() } } -::windows_core::imp::interface_hierarchy!(IForgottenKnowledge, ::windows_core::IUnknown, ISyncKnowledge); -unsafe impl ::windows_core::Interface for IForgottenKnowledge { - type Vtable = IForgottenKnowledge_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IForgottenKnowledge { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x456e0f96_6036_452b_9f9d_bcc4b4a85db2); -} #[repr(C)] #[doc(hidden)] pub struct IForgottenKnowledge_Vtbl { pub base__: ISyncKnowledge_Vtbl, pub ForgetToVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pknowledge: *mut ::core::ffi::c_void, pversion: *const SYNC_VERSION) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKnowledgeSyncProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IKnowledgeSyncProvider, IKnowledgeSyncProvider_Vtbl, 0x43434a49_8da4_47f2_8172_ad7b8b024978); +::windows_core::imp::interface_hierarchy!(IKnowledgeSyncProvider, ::windows_core::IUnknown, ISyncProvider); impl IKnowledgeSyncProvider { pub unsafe fn GetIdParameters(&self, pidparameters: *mut ID_PARAMETERS) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.GetIdParameters)(::windows_core::Interface::as_raw(self), pidparameters).ok() @@ -1164,13 +915,6 @@ impl IKnowledgeSyncProvider { (::windows_core::Interface::vtable(self).EndSession)(::windows_core::Interface::as_raw(self), psessionstate.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IKnowledgeSyncProvider, ::windows_core::IUnknown, ISyncProvider); -unsafe impl ::windows_core::Interface for IKnowledgeSyncProvider { - type Vtable = IKnowledgeSyncProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKnowledgeSyncProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x43434a49_8da4_47f2_8172_ad7b8b024978); -} #[repr(C)] #[doc(hidden)] pub struct IKnowledgeSyncProvider_Vtbl { @@ -1183,9 +927,8 @@ pub struct IKnowledgeSyncProvider_Vtbl { pub ProcessFullEnumerationChangeBatch: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, resolutionpolicy: CONFLICT_RESOLUTION_POLICY, psourcechangebatch: *mut ::core::ffi::c_void, punkdataretriever: *mut ::core::ffi::c_void, pcallback: *mut ::core::ffi::c_void, psyncsessionstatistics: *mut SYNC_SESSION_STATISTICS) -> ::windows_core::HRESULT, pub EndSession: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psessionstate: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILoadChangeContext(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ILoadChangeContext, ILoadChangeContext_Vtbl, 0x44a4aaca_ec39_46d5_b5c9_d633c0ee67e2); +::windows_core::imp::interface_hierarchy!(ILoadChangeContext, ::windows_core::IUnknown); impl ILoadChangeContext { pub unsafe fn GetSyncChange(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1205,13 +948,6 @@ impl ILoadChangeContext { (::windows_core::Interface::vtable(self).SetRecoverableErrorOnChangeUnit)(::windows_core::Interface::as_raw(self), hrerror, pchangeunit.into_param().abi(), perrordata.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ILoadChangeContext, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILoadChangeContext { - type Vtable = ILoadChangeContext_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILoadChangeContext { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x44a4aaca_ec39_46d5_b5c9_d633c0ee67e2); -} #[repr(C)] #[doc(hidden)] pub struct ILoadChangeContext_Vtbl { @@ -1220,9 +956,8 @@ pub struct ILoadChangeContext_Vtbl { pub SetRecoverableErrorOnChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hrerror: ::windows_core::HRESULT, perrordata: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetRecoverableErrorOnChangeUnit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hrerror: ::windows_core::HRESULT, pchangeunit: *mut ::core::ffi::c_void, perrordata: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProviderConverter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IProviderConverter, IProviderConverter_Vtbl, 0x809b7276_98cf_4957_93a5_0ebdd3dddffd); +::windows_core::imp::interface_hierarchy!(IProviderConverter, ::windows_core::IUnknown); impl IProviderConverter { pub unsafe fn Initialize(&self, pisyncprovider: P0) -> ::windows_core::Result<()> where @@ -1231,22 +966,14 @@ impl IProviderConverter { (::windows_core::Interface::vtable(self).Initialize)(::windows_core::Interface::as_raw(self), pisyncprovider.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IProviderConverter, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProviderConverter { - type Vtable = IProviderConverter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProviderConverter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x809b7276_98cf_4957_93a5_0ebdd3dddffd); -} #[repr(C)] #[doc(hidden)] pub struct IProviderConverter_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pisyncprovider: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRangeException(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRangeException, IRangeException_Vtbl, 0x75ae8777_6848_49f7_956c_a3a92f5096e8); +::windows_core::imp::interface_hierarchy!(IRangeException, ::windows_core::IUnknown); impl IRangeException { pub unsafe fn GetClosedRangeStart(&self, pbclosedrangestart: *mut u8, pcbidsize: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetClosedRangeStart)(::windows_core::Interface::as_raw(self), pbclosedrangestart, pcbidsize).ok() @@ -1258,13 +985,6 @@ impl IRangeException { (::windows_core::Interface::vtable(self).GetClockVector)(::windows_core::Interface::as_raw(self), riid, ppunk).ok() } } -::windows_core::imp::interface_hierarchy!(IRangeException, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRangeException { - type Vtable = IRangeException_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRangeException { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x75ae8777_6848_49f7_956c_a3a92f5096e8); -} #[repr(C)] #[doc(hidden)] pub struct IRangeException_Vtbl { @@ -1273,9 +993,8 @@ pub struct IRangeException_Vtbl { pub GetClosedRangeEnd: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbclosedrangeend: *mut u8, pcbidsize: *mut u32) -> ::windows_core::HRESULT, pub GetClockVector: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppunk: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRecoverableError(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRecoverableError, IRecoverableError_Vtbl, 0x0f5625e8_0a7b_45ee_9637_1ce13645909e); +::windows_core::imp::interface_hierarchy!(IRecoverableError, ::windows_core::IUnknown); impl IRecoverableError { pub unsafe fn GetStage(&self, pstage: *mut SYNC_PROGRESS_STAGE) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetStage)(::windows_core::Interface::as_raw(self), pstage).ok() @@ -1297,13 +1016,6 @@ impl IRecoverableError { (::windows_core::Interface::vtable(self).GetRecoverableErrorDataForChangeUnit)(::windows_core::Interface::as_raw(self), pchangeunit.into_param().abi(), phrerror, ::core::mem::transmute(pperrordata)).ok() } } -::windows_core::imp::interface_hierarchy!(IRecoverableError, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRecoverableError { - type Vtable = IRecoverableError_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRecoverableError { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0f5625e8_0a7b_45ee_9637_1ce13645909e); -} #[repr(C)] #[doc(hidden)] pub struct IRecoverableError_Vtbl { @@ -1314,9 +1026,8 @@ pub struct IRecoverableError_Vtbl { pub GetRecoverableErrorDataForChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phrerror: *mut ::windows_core::HRESULT, pperrordata: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetRecoverableErrorDataForChangeUnit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pchangeunit: *mut ::core::ffi::c_void, phrerror: *mut ::windows_core::HRESULT, pperrordata: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRecoverableErrorData(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRecoverableErrorData, IRecoverableErrorData_Vtbl, 0xb37c4a0a_4b7d_4c2d_9711_3b00d119b1c8); +::windows_core::imp::interface_hierarchy!(IRecoverableErrorData, ::windows_core::IUnknown); impl IRecoverableErrorData { pub unsafe fn Initialize(&self, pcszitemdisplayname: P0, pcszerrordescription: P1) -> ::windows_core::Result<()> where @@ -1338,13 +1049,6 @@ impl IRecoverableErrorData { (::windows_core::Interface::vtable(self).GetErrorDescription)(::windows_core::Interface::as_raw(self), pszerrordescription.into_param().abi(), pccherrordescription).ok() } } -::windows_core::imp::interface_hierarchy!(IRecoverableErrorData, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRecoverableErrorData { - type Vtable = IRecoverableErrorData_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRecoverableErrorData { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb37c4a0a_4b7d_4c2d_9711_3b00d119b1c8); -} #[repr(C)] #[doc(hidden)] pub struct IRecoverableErrorData_Vtbl { @@ -1353,9 +1057,8 @@ pub struct IRecoverableErrorData_Vtbl { pub GetItemDisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszitemdisplayname: ::windows_core::PCWSTR, pcchitemdisplayname: *mut u32) -> ::windows_core::HRESULT, pub GetErrorDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszerrordescription: ::windows_core::PCWSTR, pccherrordescription: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRegisteredSyncProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRegisteredSyncProvider, IRegisteredSyncProvider_Vtbl, 0x913bcf76_47c1_40b5_a896_5e8a9c414c14); +::windows_core::imp::interface_hierarchy!(IRegisteredSyncProvider, ::windows_core::IUnknown); impl IRegisteredSyncProvider { #[doc = "Required features: `\"Win32_UI_Shell_PropertiesSystem\"`"] #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] @@ -1373,13 +1076,6 @@ impl IRegisteredSyncProvider { (::windows_core::Interface::vtable(self).Reset)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IRegisteredSyncProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRegisteredSyncProvider { - type Vtable = IRegisteredSyncProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRegisteredSyncProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x913bcf76_47c1_40b5_a896_5e8a9c414c14); -} #[repr(C)] #[doc(hidden)] pub struct IRegisteredSyncProvider_Vtbl { @@ -1391,9 +1087,8 @@ pub struct IRegisteredSyncProvider_Vtbl { pub GetInstanceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pguidinstanceid: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IReplicaKeyMap(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IReplicaKeyMap, IReplicaKeyMap_Vtbl, 0x2209f4fc_fd10_4ff0_84a8_f0a1982e440e); +::windows_core::imp::interface_hierarchy!(IReplicaKeyMap, ::windows_core::IUnknown); impl IReplicaKeyMap { pub unsafe fn LookupReplicaKey(&self, pbreplicaid: *const u8, pdwreplicakey: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).LookupReplicaKey)(::windows_core::Interface::as_raw(self), pbreplicaid, pdwreplicakey).ok() @@ -1405,13 +1100,6 @@ impl IReplicaKeyMap { (::windows_core::Interface::vtable(self).Serialize)(::windows_core::Interface::as_raw(self), pbreplicakeymap, pcbreplicakeymap).ok() } } -::windows_core::imp::interface_hierarchy!(IReplicaKeyMap, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IReplicaKeyMap { - type Vtable = IReplicaKeyMap_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IReplicaKeyMap { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2209f4fc_fd10_4ff0_84a8_f0a1982e440e); -} #[repr(C)] #[doc(hidden)] pub struct IReplicaKeyMap_Vtbl { @@ -1420,9 +1108,8 @@ pub struct IReplicaKeyMap_Vtbl { pub LookupReplicaId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwreplicakey: u32, pbreplicaid: *mut u8, pcbidsize: *mut u32) -> ::windows_core::HRESULT, pub Serialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbreplicakeymap: *mut u8, pcbreplicakeymap: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRequestFilteredSync(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRequestFilteredSync, IRequestFilteredSync_Vtbl, 0x2e020184_6d18_46a7_a32a_da4aeb06696c); +::windows_core::imp::interface_hierarchy!(IRequestFilteredSync, ::windows_core::IUnknown); impl IRequestFilteredSync { pub unsafe fn SpecifyFilter(&self, pcallback: P0) -> ::windows_core::Result<()> where @@ -1431,22 +1118,14 @@ impl IRequestFilteredSync { (::windows_core::Interface::vtable(self).SpecifyFilter)(::windows_core::Interface::as_raw(self), pcallback.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IRequestFilteredSync, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRequestFilteredSync { - type Vtable = IRequestFilteredSync_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRequestFilteredSync { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2e020184_6d18_46a7_a32a_da4aeb06696c); -} #[repr(C)] #[doc(hidden)] pub struct IRequestFilteredSync_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub SpecifyFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcallback: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISingleItemException(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISingleItemException, ISingleItemException_Vtbl, 0x892fb9b0_7c55_4a18_9316_fdf449569b64); +::windows_core::imp::interface_hierarchy!(ISingleItemException, ::windows_core::IUnknown); impl ISingleItemException { pub unsafe fn GetItemId(&self, pbitemid: *mut u8, pcbidsize: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetItemId)(::windows_core::Interface::as_raw(self), pbitemid, pcbidsize).ok() @@ -1455,13 +1134,6 @@ impl ISingleItemException { (::windows_core::Interface::vtable(self).GetClockVector)(::windows_core::Interface::as_raw(self), riid, ppunk).ok() } } -::windows_core::imp::interface_hierarchy!(ISingleItemException, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISingleItemException { - type Vtable = ISingleItemException_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISingleItemException { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x892fb9b0_7c55_4a18_9316_fdf449569b64); -} #[repr(C)] #[doc(hidden)] pub struct ISingleItemException_Vtbl { @@ -1469,9 +1141,8 @@ pub struct ISingleItemException_Vtbl { pub GetItemId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbitemid: *mut u8, pcbidsize: *mut u32) -> ::windows_core::HRESULT, pub GetClockVector: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppunk: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISupportFilteredSync(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISupportFilteredSync, ISupportFilteredSync_Vtbl, 0x3d128ded_d555_4e0d_bf4b_fb213a8a9302); +::windows_core::imp::interface_hierarchy!(ISupportFilteredSync, ::windows_core::IUnknown); impl ISupportFilteredSync { pub unsafe fn AddFilter(&self, pfilter: P0, filteringtype: FILTERING_TYPE) -> ::windows_core::Result<()> where @@ -1480,22 +1151,14 @@ impl ISupportFilteredSync { (::windows_core::Interface::vtable(self).AddFilter)(::windows_core::Interface::as_raw(self), pfilter.into_param().abi(), filteringtype).ok() } } -::windows_core::imp::interface_hierarchy!(ISupportFilteredSync, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISupportFilteredSync { - type Vtable = ISupportFilteredSync_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISupportFilteredSync { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3d128ded_d555_4e0d_bf4b_fb213a8a9302); -} #[repr(C)] #[doc(hidden)] pub struct ISupportFilteredSync_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub AddFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfilter: *mut ::core::ffi::c_void, filteringtype: FILTERING_TYPE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISupportLastWriteTime(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISupportLastWriteTime, ISupportLastWriteTime_Vtbl, 0xeadf816f_d0bd_43ca_8f40_5acdc6c06f7a); +::windows_core::imp::interface_hierarchy!(ISupportLastWriteTime, ::windows_core::IUnknown); impl ISupportLastWriteTime { pub unsafe fn GetItemChangeTime(&self, pbitemid: *const u8, pulltimestamp: *mut u64) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetItemChangeTime)(::windows_core::Interface::as_raw(self), pbitemid, pulltimestamp).ok() @@ -1504,13 +1167,6 @@ impl ISupportLastWriteTime { (::windows_core::Interface::vtable(self).GetChangeUnitChangeTime)(::windows_core::Interface::as_raw(self), pbitemid, pbchangeunitid, pulltimestamp).ok() } } -::windows_core::imp::interface_hierarchy!(ISupportLastWriteTime, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISupportLastWriteTime { - type Vtable = ISupportLastWriteTime_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISupportLastWriteTime { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeadf816f_d0bd_43ca_8f40_5acdc6c06f7a); -} #[repr(C)] #[doc(hidden)] pub struct ISupportLastWriteTime_Vtbl { @@ -1518,9 +1174,8 @@ pub struct ISupportLastWriteTime_Vtbl { pub GetItemChangeTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbitemid: *const u8, pulltimestamp: *mut u64) -> ::windows_core::HRESULT, pub GetChangeUnitChangeTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbitemid: *const u8, pbchangeunitid: *const u8, pulltimestamp: *mut u64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyncCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISyncCallback, ISyncCallback_Vtbl, 0x0599797f_5ed9_485c_ae36_0c5d1bf2e7a5); +::windows_core::imp::interface_hierarchy!(ISyncCallback, ::windows_core::IUnknown); impl ISyncCallback { pub unsafe fn OnProgress(&self, provider: SYNC_PROVIDER_ROLE, syncstage: SYNC_PROGRESS_STAGE, dwcompletedwork: u32, dwtotalwork: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnProgress)(::windows_core::Interface::as_raw(self), provider, syncstage, dwcompletedwork, dwtotalwork).ok() @@ -1547,13 +1202,6 @@ impl ISyncCallback { (::windows_core::Interface::vtable(self).OnRecoverableError)(::windows_core::Interface::as_raw(self), precoverableerror.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ISyncCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISyncCallback { - type Vtable = ISyncCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyncCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0599797f_5ed9_485c_ae36_0c5d1bf2e7a5); -} #[repr(C)] #[doc(hidden)] pub struct ISyncCallback_Vtbl { @@ -1564,9 +1212,8 @@ pub struct ISyncCallback_Vtbl { pub OnFullEnumerationNeeded: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfullenumerationaction: *mut SYNC_FULL_ENUMERATION_ACTION) -> ::windows_core::HRESULT, pub OnRecoverableError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, precoverableerror: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyncCallback2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISyncCallback2, ISyncCallback2_Vtbl, 0x47ce84af_7442_4ead_8630_12015e030ad7); +::windows_core::imp::interface_hierarchy!(ISyncCallback2, ::windows_core::IUnknown, ISyncCallback); impl ISyncCallback2 { pub unsafe fn OnProgress(&self, provider: SYNC_PROVIDER_ROLE, syncstage: SYNC_PROGRESS_STAGE, dwcompletedwork: u32, dwtotalwork: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.OnProgress)(::windows_core::Interface::as_raw(self), provider, syncstage, dwcompletedwork, dwtotalwork).ok() @@ -1599,13 +1246,6 @@ impl ISyncCallback2 { (::windows_core::Interface::vtable(self).OnChangeFailed)(::windows_core::Interface::as_raw(self), dwchangesapplied, dwchangesfailed).ok() } } -::windows_core::imp::interface_hierarchy!(ISyncCallback2, ::windows_core::IUnknown, ISyncCallback); -unsafe impl ::windows_core::Interface for ISyncCallback2 { - type Vtable = ISyncCallback2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyncCallback2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x47ce84af_7442_4ead_8630_12015e030ad7); -} #[repr(C)] #[doc(hidden)] pub struct ISyncCallback2_Vtbl { @@ -1613,9 +1253,8 @@ pub struct ISyncCallback2_Vtbl { pub OnChangeApplied: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwchangesapplied: u32, dwchangesfailed: u32) -> ::windows_core::HRESULT, pub OnChangeFailed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwchangesapplied: u32, dwchangesfailed: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyncChange(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISyncChange, ISyncChange_Vtbl, 0xa1952beb_0f6b_4711_b136_01da85b968a6); +::windows_core::imp::interface_hierarchy!(ISyncChange, ::windows_core::IUnknown); impl ISyncChange { pub unsafe fn GetOwnerReplicaId(&self, pbreplicaid: *mut u8, pcbidsize: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetOwnerReplicaId)(::windows_core::Interface::as_raw(self), pbreplicaid, pcbidsize).ok() @@ -1651,13 +1290,6 @@ impl ISyncChange { (::windows_core::Interface::vtable(self).SetWorkEstimate)(::windows_core::Interface::as_raw(self), dwwork).ok() } } -::windows_core::imp::interface_hierarchy!(ISyncChange, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISyncChange { - type Vtable = ISyncChange_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyncChange { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa1952beb_0f6b_4711_b136_01da85b968a6); -} #[repr(C)] #[doc(hidden)] pub struct ISyncChange_Vtbl { @@ -1673,9 +1305,8 @@ pub struct ISyncChange_Vtbl { pub GetLearnedKnowledge: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pplearnedknowledge: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetWorkEstimate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwwork: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyncChangeBatch(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISyncChangeBatch, ISyncChangeBatch_Vtbl, 0x70c64dee_380f_4c2e_8f70_31c55bd5f9b3); +::windows_core::imp::interface_hierarchy!(ISyncChangeBatch, ::windows_core::IUnknown, ISyncChangeBatchBase); impl ISyncChangeBatch { pub unsafe fn GetChangeEnumerator(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1745,13 +1376,6 @@ impl ISyncChangeBatch { (::windows_core::Interface::vtable(self).AddLoggedConflict)(::windows_core::Interface::as_raw(self), pbownerreplicaid, pbitemid, pchangeversion, pcreationversion, dwflags, dwworkforchange, pconflictknowledge.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISyncChangeBatch, ::windows_core::IUnknown, ISyncChangeBatchBase); -unsafe impl ::windows_core::Interface for ISyncChangeBatch { - type Vtable = ISyncChangeBatch_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyncChangeBatch { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x70c64dee_380f_4c2e_8f70_31c55bd5f9b3); -} #[repr(C)] #[doc(hidden)] pub struct ISyncChangeBatch_Vtbl { @@ -1760,9 +1384,8 @@ pub struct ISyncChangeBatch_Vtbl { pub EndUnorderedGroup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pmadewithknowledge: *mut ::core::ffi::c_void, fallchangesforknowledge: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub AddLoggedConflict: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbownerreplicaid: *const u8, pbitemid: *const u8, pchangeversion: *const SYNC_VERSION, pcreationversion: *const SYNC_VERSION, dwflags: u32, dwworkforchange: u32, pconflictknowledge: *mut ::core::ffi::c_void, ppchangebuilder: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyncChangeBatch2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISyncChangeBatch2, ISyncChangeBatch2_Vtbl, 0x225f4a33_f5ee_4cc7_b039_67a262b4b2ac); +::windows_core::imp::interface_hierarchy!(ISyncChangeBatch2, ::windows_core::IUnknown, ISyncChangeBatchBase, ISyncChangeBatch); impl ISyncChangeBatch2 { pub unsafe fn GetChangeEnumerator(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1843,13 +1466,6 @@ impl ISyncChangeBatch2 { (::windows_core::Interface::vtable(self).AddMergeTombstoneLoggedConflict)(::windows_core::Interface::as_raw(self), pbownerreplicaid, pbwinneritemid, pbitemid, pchangeversion, pcreationversion, dwworkforchange, pconflictknowledge.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISyncChangeBatch2, ::windows_core::IUnknown, ISyncChangeBatchBase, ISyncChangeBatch); -unsafe impl ::windows_core::Interface for ISyncChangeBatch2 { - type Vtable = ISyncChangeBatch2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyncChangeBatch2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x225f4a33_f5ee_4cc7_b039_67a262b4b2ac); -} #[repr(C)] #[doc(hidden)] pub struct ISyncChangeBatch2_Vtbl { @@ -1857,9 +1473,8 @@ pub struct ISyncChangeBatch2_Vtbl { pub AddMergeTombstoneMetadataToGroup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbownerreplicaid: *const u8, pbwinneritemid: *const u8, pbitemid: *const u8, pchangeversion: *const SYNC_VERSION, pcreationversion: *const SYNC_VERSION, dwworkforchange: u32, ppchangebuilder: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub AddMergeTombstoneLoggedConflict: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbownerreplicaid: *const u8, pbwinneritemid: *const u8, pbitemid: *const u8, pchangeversion: *const SYNC_VERSION, pcreationversion: *const SYNC_VERSION, dwworkforchange: u32, pconflictknowledge: *mut ::core::ffi::c_void, ppchangebuilder: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyncChangeBatchAdvanced(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISyncChangeBatchAdvanced, ISyncChangeBatchAdvanced_Vtbl, 0x0f1a4995_cbc8_421d_b550_5d0bebf3e9a5); +::windows_core::imp::interface_hierarchy!(ISyncChangeBatchAdvanced, ::windows_core::IUnknown); impl ISyncChangeBatchAdvanced { pub unsafe fn GetFilterInfo(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1876,13 +1491,6 @@ impl ISyncChangeBatchAdvanced { (::windows_core::Interface::vtable(self).GetBatchLevelKnowledgeShouldBeApplied)(::windows_core::Interface::as_raw(self), pfbatchknowledgeshouldbeapplied).ok() } } -::windows_core::imp::interface_hierarchy!(ISyncChangeBatchAdvanced, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISyncChangeBatchAdvanced { - type Vtable = ISyncChangeBatchAdvanced_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyncChangeBatchAdvanced { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0f1a4995_cbc8_421d_b550_5d0bebf3e9a5); -} #[repr(C)] #[doc(hidden)] pub struct ISyncChangeBatchAdvanced_Vtbl { @@ -1892,9 +1500,8 @@ pub struct ISyncChangeBatchAdvanced_Vtbl { pub GetUpperBoundItemId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbitemid: *mut u8, pcbidsize: *mut u32) -> ::windows_core::HRESULT, pub GetBatchLevelKnowledgeShouldBeApplied: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfbatchknowledgeshouldbeapplied: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyncChangeBatchBase(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISyncChangeBatchBase, ISyncChangeBatchBase_Vtbl, 0x52f6e694_6a71_4494_a184_a8311bf5d227); +::windows_core::imp::interface_hierarchy!(ISyncChangeBatchBase, ::windows_core::IUnknown); impl ISyncChangeBatchBase { pub unsafe fn GetChangeEnumerator(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1947,13 +1554,6 @@ impl ISyncChangeBatchBase { (::windows_core::Interface::vtable(self).Serialize)(::windows_core::Interface::as_raw(self), pbchangebatch, pcbchangebatch).ok() } } -::windows_core::imp::interface_hierarchy!(ISyncChangeBatchBase, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISyncChangeBatchBase { - type Vtable = ISyncChangeBatchBase_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyncChangeBatchBase { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x52f6e694_6a71_4494_a184_a8311bf5d227); -} #[repr(C)] #[doc(hidden)] pub struct ISyncChangeBatchBase_Vtbl { @@ -1973,9 +1573,8 @@ pub struct ISyncChangeBatchBase_Vtbl { pub SetRemainingWorkEstimateForSession: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwremainingworkforsession: u32) -> ::windows_core::HRESULT, pub Serialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbchangebatch: *mut u8, pcbchangebatch: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyncChangeBatchBase2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISyncChangeBatchBase2, ISyncChangeBatchBase2_Vtbl, 0x6fdb596a_d755_4584_bd0c_c0c23a548fbf); +::windows_core::imp::interface_hierarchy!(ISyncChangeBatchBase2, ::windows_core::IUnknown, ISyncChangeBatchBase); impl ISyncChangeBatchBase2 { pub unsafe fn GetChangeEnumerator(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2031,22 +1630,14 @@ impl ISyncChangeBatchBase2 { (::windows_core::Interface::vtable(self).SerializeWithOptions)(::windows_core::Interface::as_raw(self), targetformatversion, dwflags, pbbuffer, pdwserializedsize).ok() } } -::windows_core::imp::interface_hierarchy!(ISyncChangeBatchBase2, ::windows_core::IUnknown, ISyncChangeBatchBase); -unsafe impl ::windows_core::Interface for ISyncChangeBatchBase2 { - type Vtable = ISyncChangeBatchBase2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyncChangeBatchBase2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6fdb596a_d755_4584_bd0c_c0c23a548fbf); -} #[repr(C)] #[doc(hidden)] pub struct ISyncChangeBatchBase2_Vtbl { pub base__: ISyncChangeBatchBase_Vtbl, pub SerializeWithOptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, targetformatversion: SYNC_SERIALIZATION_VERSION, dwflags: u32, pbbuffer: *mut u8, pdwserializedsize: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyncChangeBatchWithFilterKeyMap(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISyncChangeBatchWithFilterKeyMap, ISyncChangeBatchWithFilterKeyMap_Vtbl, 0xde247002_566d_459a_a6ed_a5aab3459fb7); +::windows_core::imp::interface_hierarchy!(ISyncChangeBatchWithFilterKeyMap, ::windows_core::IUnknown); impl ISyncChangeBatchWithFilterKeyMap { pub unsafe fn GetFilterKeyMap(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2105,13 +1696,6 @@ impl ISyncChangeBatchWithFilterKeyMap { (::windows_core::Interface::vtable(self).GetLearnedFilterForgottenKnowledgeAfterRecoveryComplete)(::windows_core::Interface::as_raw(self), pdestinationknowledge.into_param().abi(), pnewmoveins.into_param().abi(), dwfilterkey, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISyncChangeBatchWithFilterKeyMap, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISyncChangeBatchWithFilterKeyMap { - type Vtable = ISyncChangeBatchWithFilterKeyMap_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyncChangeBatchWithFilterKeyMap { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xde247002_566d_459a_a6ed_a5aab3459fb7); -} #[repr(C)] #[doc(hidden)] pub struct ISyncChangeBatchWithFilterKeyMap_Vtbl { @@ -2125,9 +1709,8 @@ pub struct ISyncChangeBatchWithFilterKeyMap_Vtbl { pub GetFilteredReplicaLearnedForgottenKnowledgeAfterRecoveryComplete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdestinationknowledge: *mut ::core::ffi::c_void, pnewmoveins: *mut ::core::ffi::c_void, pplearnedforgottenknowledge: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetLearnedFilterForgottenKnowledgeAfterRecoveryComplete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdestinationknowledge: *mut ::core::ffi::c_void, pnewmoveins: *mut ::core::ffi::c_void, dwfilterkey: u32, pplearnedfilterforgottenknowledge: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyncChangeBatchWithPrerequisite(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISyncChangeBatchWithPrerequisite, ISyncChangeBatchWithPrerequisite_Vtbl, 0x097f13be_5b92_4048_b3f2_7b42a2515e07); +::windows_core::imp::interface_hierarchy!(ISyncChangeBatchWithPrerequisite, ::windows_core::IUnknown, ISyncChangeBatchBase); impl ISyncChangeBatchWithPrerequisite { pub unsafe fn GetChangeEnumerator(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2197,13 +1780,6 @@ impl ISyncChangeBatchWithPrerequisite { (::windows_core::Interface::vtable(self).GetLearnedForgottenKnowledge)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISyncChangeBatchWithPrerequisite, ::windows_core::IUnknown, ISyncChangeBatchBase); -unsafe impl ::windows_core::Interface for ISyncChangeBatchWithPrerequisite { - type Vtable = ISyncChangeBatchWithPrerequisite_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyncChangeBatchWithPrerequisite { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x097f13be_5b92_4048_b3f2_7b42a2515e07); -} #[repr(C)] #[doc(hidden)] pub struct ISyncChangeBatchWithPrerequisite_Vtbl { @@ -2212,30 +1788,21 @@ pub struct ISyncChangeBatchWithPrerequisite_Vtbl { pub GetLearnedKnowledgeWithPrerequisite: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdestinationknowledge: *mut ::core::ffi::c_void, pplearnedwithprerequisiteknowledge: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetLearnedForgottenKnowledge: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pplearnedforgottenknowledge: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyncChangeBuilder(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISyncChangeBuilder, ISyncChangeBuilder_Vtbl, 0x56f14771_8677_484f_a170_e386e418a676); +::windows_core::imp::interface_hierarchy!(ISyncChangeBuilder, ::windows_core::IUnknown); impl ISyncChangeBuilder { pub unsafe fn AddChangeUnitMetadata(&self, pbchangeunitid: *const u8, pchangeunitversion: *const SYNC_VERSION) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).AddChangeUnitMetadata)(::windows_core::Interface::as_raw(self), pbchangeunitid, pchangeunitversion).ok() } } -::windows_core::imp::interface_hierarchy!(ISyncChangeBuilder, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISyncChangeBuilder { - type Vtable = ISyncChangeBuilder_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyncChangeBuilder { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x56f14771_8677_484f_a170_e386e418a676); -} #[repr(C)] #[doc(hidden)] pub struct ISyncChangeBuilder_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub AddChangeUnitMetadata: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbchangeunitid: *const u8, pchangeunitversion: *const SYNC_VERSION) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyncChangeUnit(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISyncChangeUnit, ISyncChangeUnit_Vtbl, 0x60edd8ca_7341_4bb7_95ce_fab6394b51cb); +::windows_core::imp::interface_hierarchy!(ISyncChangeUnit, ::windows_core::IUnknown); impl ISyncChangeUnit { pub unsafe fn GetItemChange(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2248,13 +1815,6 @@ impl ISyncChangeUnit { (::windows_core::Interface::vtable(self).GetChangeUnitVersion)(::windows_core::Interface::as_raw(self), pbcurrentreplicaid, pversion).ok() } } -::windows_core::imp::interface_hierarchy!(ISyncChangeUnit, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISyncChangeUnit { - type Vtable = ISyncChangeUnit_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyncChangeUnit { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x60edd8ca_7341_4bb7_95ce_fab6394b51cb); -} #[repr(C)] #[doc(hidden)] pub struct ISyncChangeUnit_Vtbl { @@ -2263,9 +1823,8 @@ pub struct ISyncChangeUnit_Vtbl { pub GetChangeUnitId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbchangeunitid: *mut u8, pcbidsize: *mut u32) -> ::windows_core::HRESULT, pub GetChangeUnitVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbcurrentreplicaid: *const u8, pversion: *mut SYNC_VERSION) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyncChangeWithFilterKeyMap(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISyncChangeWithFilterKeyMap, ISyncChangeWithFilterKeyMap_Vtbl, 0xbfe1ef00_e87d_42fd_a4e9_242d70414aef); +::windows_core::imp::interface_hierarchy!(ISyncChangeWithFilterKeyMap, ::windows_core::IUnknown); impl ISyncChangeWithFilterKeyMap { pub unsafe fn GetFilterCount(&self, pdwfiltercount: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetFilterCount)(::windows_core::Interface::as_raw(self), pdwfiltercount).ok() @@ -2321,13 +1880,6 @@ impl ISyncChangeWithFilterKeyMap { (::windows_core::Interface::vtable(self).GetLearnedFilterForgottenKnowledgeAfterRecoveryComplete)(::windows_core::Interface::as_raw(self), pdestinationknowledge.into_param().abi(), pnewmoveins.into_param().abi(), dwfilterkey, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISyncChangeWithFilterKeyMap, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISyncChangeWithFilterKeyMap { - type Vtable = ISyncChangeWithFilterKeyMap_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyncChangeWithFilterKeyMap { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbfe1ef00_e87d_42fd_a4e9_242d70414aef); -} #[repr(C)] #[doc(hidden)] pub struct ISyncChangeWithFilterKeyMap_Vtbl { @@ -2342,9 +1894,8 @@ pub struct ISyncChangeWithFilterKeyMap_Vtbl { pub GetFilteredReplicaLearnedForgottenKnowledgeAfterRecoveryComplete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdestinationknowledge: *mut ::core::ffi::c_void, pnewmoveins: *mut ::core::ffi::c_void, pplearnedforgottenknowledge: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetLearnedFilterForgottenKnowledgeAfterRecoveryComplete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdestinationknowledge: *mut ::core::ffi::c_void, pnewmoveins: *mut ::core::ffi::c_void, dwfilterkey: u32, pplearnedfilterforgottenknowledge: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyncChangeWithPrerequisite(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISyncChangeWithPrerequisite, ISyncChangeWithPrerequisite_Vtbl, 0x9e38382f_1589_48c3_92e4_05ecdcb4f3f7); +::windows_core::imp::interface_hierarchy!(ISyncChangeWithPrerequisite, ::windows_core::IUnknown); impl ISyncChangeWithPrerequisite { pub unsafe fn GetPrerequisiteKnowledge(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2358,13 +1909,6 @@ impl ISyncChangeWithPrerequisite { (::windows_core::Interface::vtable(self).GetLearnedKnowledgeWithPrerequisite)(::windows_core::Interface::as_raw(self), pdestinationknowledge.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISyncChangeWithPrerequisite, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISyncChangeWithPrerequisite { - type Vtable = ISyncChangeWithPrerequisite_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyncChangeWithPrerequisite { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9e38382f_1589_48c3_92e4_05ecdcb4f3f7); -} #[repr(C)] #[doc(hidden)] pub struct ISyncChangeWithPrerequisite_Vtbl { @@ -2372,9 +1916,8 @@ pub struct ISyncChangeWithPrerequisite_Vtbl { pub GetPrerequisiteKnowledge: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppprerequisiteknowledge: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetLearnedKnowledgeWithPrerequisite: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdestinationknowledge: *mut ::core::ffi::c_void, pplearnedknowledgewithprerequisite: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyncConstraintCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISyncConstraintCallback, ISyncConstraintCallback_Vtbl, 0x8af3843e_75b3_438c_bb51_6f020d70d3cb); +::windows_core::imp::interface_hierarchy!(ISyncConstraintCallback, ::windows_core::IUnknown); impl ISyncConstraintCallback { pub unsafe fn OnConstraintConflict(&self, pconflict: P0) -> ::windows_core::Result<()> where @@ -2383,22 +1926,14 @@ impl ISyncConstraintCallback { (::windows_core::Interface::vtable(self).OnConstraintConflict)(::windows_core::Interface::as_raw(self), pconflict.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ISyncConstraintCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISyncConstraintCallback { - type Vtable = ISyncConstraintCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyncConstraintCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8af3843e_75b3_438c_bb51_6f020d70d3cb); -} #[repr(C)] #[doc(hidden)] pub struct ISyncConstraintCallback_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnConstraintConflict: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pconflict: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyncDataConverter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISyncDataConverter, ISyncDataConverter_Vtbl, 0x435d4861_68d5_44aa_a0f9_72a0b00ef9cf); +::windows_core::imp::interface_hierarchy!(ISyncDataConverter, ::windows_core::IUnknown); impl ISyncDataConverter { pub unsafe fn ConvertDataRetrieverFromProviderFormat(&self, punkdataretrieverin: P0, penumsyncchanges: P1) -> ::windows_core::Result<::windows_core::IUnknown> where @@ -2433,13 +1968,6 @@ impl ISyncDataConverter { (::windows_core::Interface::vtable(self).ConvertDataToProviderFormat)(::windows_core::Interface::as_raw(self), pdatacontext.into_param().abi(), punkdataout.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISyncDataConverter, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISyncDataConverter { - type Vtable = ISyncDataConverter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyncDataConverter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x435d4861_68d5_44aa_a0f9_72a0b00ef9cf); -} #[repr(C)] #[doc(hidden)] pub struct ISyncDataConverter_Vtbl { @@ -2449,9 +1977,8 @@ pub struct ISyncDataConverter_Vtbl { pub ConvertDataFromProviderFormat: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdatacontext: *mut ::core::ffi::c_void, punkdatain: *mut ::core::ffi::c_void, ppunkdataout: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ConvertDataToProviderFormat: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdatacontext: *mut ::core::ffi::c_void, punkdataout: *mut ::core::ffi::c_void, ppunkdataout: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyncFilter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISyncFilter, ISyncFilter_Vtbl, 0x087a3f15_0fcb_44c1_9639_53c14e2b5506); +::windows_core::imp::interface_hierarchy!(ISyncFilter, ::windows_core::IUnknown); impl ISyncFilter { pub unsafe fn IsIdentical(&self, psyncfilter: P0) -> ::windows_core::Result<()> where @@ -2463,13 +1990,6 @@ impl ISyncFilter { (::windows_core::Interface::vtable(self).Serialize)(::windows_core::Interface::as_raw(self), pbsyncfilter, pcbsyncfilter).ok() } } -::windows_core::imp::interface_hierarchy!(ISyncFilter, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISyncFilter { - type Vtable = ISyncFilter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyncFilter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x087a3f15_0fcb_44c1_9639_53c14e2b5506); -} #[repr(C)] #[doc(hidden)] pub struct ISyncFilter_Vtbl { @@ -2477,52 +1997,35 @@ pub struct ISyncFilter_Vtbl { pub IsIdentical: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psyncfilter: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Serialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbsyncfilter: *mut u8, pcbsyncfilter: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyncFilterDeserializer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISyncFilterDeserializer, ISyncFilterDeserializer_Vtbl, 0xb45b7a72_e5c7_46be_9c82_77b8b15dab8a); +::windows_core::imp::interface_hierarchy!(ISyncFilterDeserializer, ::windows_core::IUnknown); impl ISyncFilterDeserializer { pub unsafe fn DeserializeSyncFilter(&self, pbsyncfilter: *const u8, dwcbsyncfilter: u32) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).DeserializeSyncFilter)(::windows_core::Interface::as_raw(self), pbsyncfilter, dwcbsyncfilter, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISyncFilterDeserializer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISyncFilterDeserializer { - type Vtable = ISyncFilterDeserializer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyncFilterDeserializer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb45b7a72_e5c7_46be_9c82_77b8b15dab8a); -} #[repr(C)] #[doc(hidden)] pub struct ISyncFilterDeserializer_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub DeserializeSyncFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbsyncfilter: *const u8, dwcbsyncfilter: u32, ppisyncfilter: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyncFilterInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISyncFilterInfo, ISyncFilterInfo_Vtbl, 0x794eaaf8_3f2e_47e6_9728_17e6fcf94cb7); +::windows_core::imp::interface_hierarchy!(ISyncFilterInfo, ::windows_core::IUnknown); impl ISyncFilterInfo { pub unsafe fn Serialize(&self, pbbuffer: *mut u8, pcbbuffer: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Serialize)(::windows_core::Interface::as_raw(self), pbbuffer, pcbbuffer).ok() } } -::windows_core::imp::interface_hierarchy!(ISyncFilterInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISyncFilterInfo { - type Vtable = ISyncFilterInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyncFilterInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x794eaaf8_3f2e_47e6_9728_17e6fcf94cb7); -} #[repr(C)] #[doc(hidden)] pub struct ISyncFilterInfo_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Serialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbbuffer: *mut u8, pcbbuffer: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyncFilterInfo2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISyncFilterInfo2, ISyncFilterInfo2_Vtbl, 0x19b394ba_e3d0_468c_934d_321968b2ab34); +::windows_core::imp::interface_hierarchy!(ISyncFilterInfo2, ::windows_core::IUnknown, ISyncFilterInfo); impl ISyncFilterInfo2 { pub unsafe fn Serialize(&self, pbbuffer: *mut u8, pcbbuffer: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.Serialize)(::windows_core::Interface::as_raw(self), pbbuffer, pcbbuffer).ok() @@ -2531,22 +2034,14 @@ impl ISyncFilterInfo2 { (::windows_core::Interface::vtable(self).GetFlags)(::windows_core::Interface::as_raw(self), pdwflags).ok() } } -::windows_core::imp::interface_hierarchy!(ISyncFilterInfo2, ::windows_core::IUnknown, ISyncFilterInfo); -unsafe impl ::windows_core::Interface for ISyncFilterInfo2 { - type Vtable = ISyncFilterInfo2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyncFilterInfo2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x19b394ba_e3d0_468c_934d_321968b2ab34); -} #[repr(C)] #[doc(hidden)] pub struct ISyncFilterInfo2_Vtbl { pub base__: ISyncFilterInfo_Vtbl, pub GetFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwflags: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyncFullEnumerationChange(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISyncFullEnumerationChange, ISyncFullEnumerationChange_Vtbl, 0x9785e0bd_bdff_40c4_98c5_b34b2f1991b3); +::windows_core::imp::interface_hierarchy!(ISyncFullEnumerationChange, ::windows_core::IUnknown); impl ISyncFullEnumerationChange { pub unsafe fn GetLearnedKnowledgeAfterRecoveryComplete(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2557,13 +2052,6 @@ impl ISyncFullEnumerationChange { (::windows_core::Interface::vtable(self).GetLearnedForgottenKnowledge)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISyncFullEnumerationChange, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISyncFullEnumerationChange { - type Vtable = ISyncFullEnumerationChange_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyncFullEnumerationChange { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9785e0bd_bdff_40c4_98c5_b34b2f1991b3); -} #[repr(C)] #[doc(hidden)] pub struct ISyncFullEnumerationChange_Vtbl { @@ -2571,9 +2059,8 @@ pub struct ISyncFullEnumerationChange_Vtbl { pub GetLearnedKnowledgeAfterRecoveryComplete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pplearnedknowledge: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetLearnedForgottenKnowledge: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pplearnedforgottenknowledge: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyncFullEnumerationChangeBatch(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISyncFullEnumerationChangeBatch, ISyncFullEnumerationChangeBatch_Vtbl, 0xef64197d_4f44_4ea2_b355_4524713e3bed); +::windows_core::imp::interface_hierarchy!(ISyncFullEnumerationChangeBatch, ::windows_core::IUnknown, ISyncChangeBatchBase); impl ISyncFullEnumerationChangeBatch { pub unsafe fn GetChangeEnumerator(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2636,13 +2123,6 @@ impl ISyncFullEnumerationChangeBatch { (::windows_core::Interface::vtable(self).GetClosedUpperBoundItemId)(::windows_core::Interface::as_raw(self), pbclosedupperbounditemid, pcbidsize).ok() } } -::windows_core::imp::interface_hierarchy!(ISyncFullEnumerationChangeBatch, ::windows_core::IUnknown, ISyncChangeBatchBase); -unsafe impl ::windows_core::Interface for ISyncFullEnumerationChangeBatch { - type Vtable = ISyncFullEnumerationChangeBatch_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyncFullEnumerationChangeBatch { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xef64197d_4f44_4ea2_b355_4524713e3bed); -} #[repr(C)] #[doc(hidden)] pub struct ISyncFullEnumerationChangeBatch_Vtbl { @@ -2651,9 +2131,8 @@ pub struct ISyncFullEnumerationChangeBatch_Vtbl { pub GetClosedLowerBoundItemId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbclosedlowerbounditemid: *mut u8, pcbidsize: *mut u32) -> ::windows_core::HRESULT, pub GetClosedUpperBoundItemId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbclosedupperbounditemid: *mut u8, pcbidsize: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyncFullEnumerationChangeBatch2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISyncFullEnumerationChangeBatch2, ISyncFullEnumerationChangeBatch2_Vtbl, 0xe06449f4_a205_4b65_9724_01b22101eec1); +::windows_core::imp::interface_hierarchy!(ISyncFullEnumerationChangeBatch2, ::windows_core::IUnknown, ISyncChangeBatchBase, ISyncFullEnumerationChangeBatch); impl ISyncFullEnumerationChangeBatch2 { pub unsafe fn GetChangeEnumerator(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2720,22 +2199,14 @@ impl ISyncFullEnumerationChangeBatch2 { (::windows_core::Interface::vtable(self).AddMergeTombstoneMetadataToGroup)(::windows_core::Interface::as_raw(self), pbownerreplicaid, pbwinneritemid, pbitemid, pchangeversion, pcreationversion, dwworkforchange, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISyncFullEnumerationChangeBatch2, ::windows_core::IUnknown, ISyncChangeBatchBase, ISyncFullEnumerationChangeBatch); -unsafe impl ::windows_core::Interface for ISyncFullEnumerationChangeBatch2 { - type Vtable = ISyncFullEnumerationChangeBatch2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyncFullEnumerationChangeBatch2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe06449f4_a205_4b65_9724_01b22101eec1); -} #[repr(C)] #[doc(hidden)] pub struct ISyncFullEnumerationChangeBatch2_Vtbl { pub base__: ISyncFullEnumerationChangeBatch_Vtbl, pub AddMergeTombstoneMetadataToGroup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbownerreplicaid: *const u8, pbwinneritemid: *const u8, pbitemid: *const u8, pchangeversion: *const SYNC_VERSION, pcreationversion: *const SYNC_VERSION, dwworkforchange: u32, ppchangebuilder: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyncKnowledge(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISyncKnowledge, ISyncKnowledge_Vtbl, 0x615bbb53_c945_4203_bf4b_2cb65919a0aa); +::windows_core::imp::interface_hierarchy!(ISyncKnowledge, ::windows_core::IUnknown); impl ISyncKnowledge { pub unsafe fn GetOwnerReplicaId(&self, pbreplicaid: *mut u8, pcbidsize: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetOwnerReplicaId)(::windows_core::Interface::as_raw(self), pbreplicaid, pcbidsize).ok() @@ -2831,13 +2302,6 @@ impl ISyncKnowledge { (::windows_core::Interface::vtable(self).GetVersion)(::windows_core::Interface::as_raw(self), pdwversion).ok() } } -::windows_core::imp::interface_hierarchy!(ISyncKnowledge, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISyncKnowledge { - type Vtable = ISyncKnowledge_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyncKnowledge { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x615bbb53_c945_4203_bf4b_2cb65919a0aa); -} #[repr(C)] #[doc(hidden)] pub struct ISyncKnowledge_Vtbl { @@ -2867,9 +2331,8 @@ pub struct ISyncKnowledge_Vtbl { pub FindClockVectorForChangeUnit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbitemid: *const u8, pbchangeunitid: *const u8, riid: *const ::windows_core::GUID, ppunk: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwversion: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyncKnowledge2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISyncKnowledge2, ISyncKnowledge2_Vtbl, 0xed0addc0_3b4b_46a1_9a45_45661d2114c8); +::windows_core::imp::interface_hierarchy!(ISyncKnowledge2, ::windows_core::IUnknown, ISyncKnowledge); impl ISyncKnowledge2 { pub unsafe fn GetOwnerReplicaId(&self, pbreplicaid: *mut u8, pcbidsize: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.GetOwnerReplicaId)(::windows_core::Interface::as_raw(self), pbreplicaid, pcbidsize).ok() @@ -3033,13 +2496,6 @@ impl ISyncKnowledge2 { (::windows_core::Interface::vtable(self).CompareToKnowledgeCookie)(::windows_core::Interface::as_raw(self), pknowledgecookie.into_param().abi(), presult).ok() } } -::windows_core::imp::interface_hierarchy!(ISyncKnowledge2, ::windows_core::IUnknown, ISyncKnowledge); -unsafe impl ::windows_core::Interface for ISyncKnowledge2 { - type Vtable = ISyncKnowledge2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyncKnowledge2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xed0addc0_3b4b_46a1_9a45_45661d2114c8); -} #[repr(C)] #[doc(hidden)] pub struct ISyncKnowledge2_Vtbl { @@ -3059,51 +2515,34 @@ pub struct ISyncKnowledge2_Vtbl { pub GetKnowledgeCookie: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppknowledgecookie: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CompareToKnowledgeCookie: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pknowledgecookie: *mut ::core::ffi::c_void, presult: *mut KNOWLEDGE_COOKIE_COMPARISON_RESULT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyncMergeTombstoneChange(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISyncMergeTombstoneChange, ISyncMergeTombstoneChange_Vtbl, 0x6ec62597_0903_484c_ad61_36d6e938f47b); +::windows_core::imp::interface_hierarchy!(ISyncMergeTombstoneChange, ::windows_core::IUnknown); impl ISyncMergeTombstoneChange { pub unsafe fn GetWinnerItemId(&self, pbwinneritemid: *mut u8, pcbidsize: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetWinnerItemId)(::windows_core::Interface::as_raw(self), pbwinneritemid, pcbidsize).ok() } } -::windows_core::imp::interface_hierarchy!(ISyncMergeTombstoneChange, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISyncMergeTombstoneChange { - type Vtable = ISyncMergeTombstoneChange_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyncMergeTombstoneChange { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6ec62597_0903_484c_ad61_36d6e938f47b); -} #[repr(C)] #[doc(hidden)] pub struct ISyncMergeTombstoneChange_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetWinnerItemId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbwinneritemid: *mut u8, pcbidsize: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyncProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISyncProvider, ISyncProvider_Vtbl, 0x8f657056_2bce_4a17_8c68_c7bb7898b56f); +::windows_core::imp::interface_hierarchy!(ISyncProvider, ::windows_core::IUnknown); impl ISyncProvider { pub unsafe fn GetIdParameters(&self, pidparameters: *mut ID_PARAMETERS) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetIdParameters)(::windows_core::Interface::as_raw(self), pidparameters).ok() } } -::windows_core::imp::interface_hierarchy!(ISyncProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISyncProvider { - type Vtable = ISyncProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyncProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8f657056_2bce_4a17_8c68_c7bb7898b56f); -} #[repr(C)] #[doc(hidden)] pub struct ISyncProvider_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetIdParameters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pidparameters: *mut ID_PARAMETERS) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyncProviderConfigUI(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISyncProviderConfigUI, ISyncProviderConfigUI_Vtbl, 0x7b0705f6_cbcd_4071_ab05_3bdc364d4a0c); +::windows_core::imp::interface_hierarchy!(ISyncProviderConfigUI, ::windows_core::IUnknown); impl ISyncProviderConfigUI { #[doc = "Required features: `\"Win32_UI_Shell_PropertiesSystem\"`"] #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] @@ -3140,13 +2579,6 @@ impl ISyncProviderConfigUI { (::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::imp::interface_hierarchy!(ISyncProviderConfigUI, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISyncProviderConfigUI { - type Vtable = ISyncProviderConfigUI_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyncProviderConfigUI { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7b0705f6_cbcd_4071_ab05_3bdc364d4a0c); -} #[repr(C)] #[doc(hidden)] pub struct ISyncProviderConfigUI_Vtbl { @@ -3168,11 +2600,15 @@ pub struct ISyncProviderConfigUI_Vtbl { #[cfg(not(feature = "Win32_UI_Shell_PropertiesSystem"))] ModifySyncProvider: usize, } -#[doc = "Required features: `\"Win32_UI_Shell_PropertiesSystem\"`"] #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyncProviderConfigUIInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_UI_Shell_PropertiesSystem\"`"] + ISyncProviderConfigUIInfo, + ISyncProviderConfigUIInfo_Vtbl, + 0x214141ae_33d7_4d8d_8e37_f227e880ce50 +); +#[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] +::windows_core::imp::interface_hierarchy!(ISyncProviderConfigUIInfo, ::windows_core::IUnknown, super::super::UI::Shell::PropertiesSystem::IPropertyStore); #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl ISyncProviderConfigUIInfo { #[doc = "Required features: `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -3208,27 +2644,21 @@ impl ISyncProviderConfigUIInfo { } } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] -::windows_core::imp::interface_hierarchy!(ISyncProviderConfigUIInfo, ::windows_core::IUnknown, super::super::UI::Shell::PropertiesSystem::IPropertyStore); -#[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] -unsafe impl ::windows_core::Interface for ISyncProviderConfigUIInfo { - type Vtable = ISyncProviderConfigUIInfo_Vtbl; -} -#[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] -unsafe impl ::windows_core::ComInterface for ISyncProviderConfigUIInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x214141ae_33d7_4d8d_8e37_f227e880ce50); -} -#[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] #[repr(C)] #[doc(hidden)] pub struct ISyncProviderConfigUIInfo_Vtbl { pub base__: super::super::UI::Shell::PropertiesSystem::IPropertyStore_Vtbl, pub GetSyncProviderConfigUI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwclscontext: u32, ppsyncproviderconfigui: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_UI_Shell_PropertiesSystem\"`"] #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyncProviderInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_UI_Shell_PropertiesSystem\"`"] + ISyncProviderInfo, + ISyncProviderInfo_Vtbl, + 0x1ee135de_88a4_4504_b0d0_f7920d7e5ba6 +); +#[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] +::windows_core::imp::interface_hierarchy!(ISyncProviderInfo, ::windows_core::IUnknown, super::super::UI::Shell::PropertiesSystem::IPropertyStore); #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl ISyncProviderInfo { #[doc = "Required features: `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -3264,25 +2694,14 @@ impl ISyncProviderInfo { } } #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] -::windows_core::imp::interface_hierarchy!(ISyncProviderInfo, ::windows_core::IUnknown, super::super::UI::Shell::PropertiesSystem::IPropertyStore); -#[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] -unsafe impl ::windows_core::Interface for ISyncProviderInfo { - type Vtable = ISyncProviderInfo_Vtbl; -} -#[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] -unsafe impl ::windows_core::ComInterface for ISyncProviderInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1ee135de_88a4_4504_b0d0_f7920d7e5ba6); -} -#[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] #[repr(C)] #[doc(hidden)] pub struct ISyncProviderInfo_Vtbl { pub base__: super::super::UI::Shell::PropertiesSystem::IPropertyStore_Vtbl, pub GetSyncProvider: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwclscontext: u32, ppsyncprovider: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyncProviderRegistration(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISyncProviderRegistration, ISyncProviderRegistration_Vtbl, 0xcb45953b_7624_47bc_a472_eb8cac6b222e); +::windows_core::imp::interface_hierarchy!(ISyncProviderRegistration, ::windows_core::IUnknown); impl ISyncProviderRegistration { #[doc = "Required features: `\"Win32_UI_Shell_PropertiesSystem\"`"] #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] @@ -3360,13 +2779,6 @@ impl ISyncProviderRegistration { (::windows_core::Interface::vtable(self).GetChange)(::windows_core::Interface::as_raw(self), hevent.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISyncProviderRegistration, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISyncProviderRegistration { - type Vtable = ISyncProviderRegistration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyncProviderRegistration { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcb45953b_7624_47bc_a472_eb8cac6b222e); -} #[repr(C)] #[doc(hidden)] pub struct ISyncProviderRegistration_Vtbl { @@ -3403,9 +2815,8 @@ pub struct ISyncProviderRegistration_Vtbl { pub RevokeEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hevent: super::super::Foundation::HANDLE) -> ::windows_core::HRESULT, pub GetChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hevent: super::super::Foundation::HANDLE, ppchange: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyncRegistrationChange(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISyncRegistrationChange, ISyncRegistrationChange_Vtbl, 0xeea0d9ae_6b29_43b4_9e70_e3ae33bb2c3b); +::windows_core::imp::interface_hierarchy!(ISyncRegistrationChange, ::windows_core::IUnknown); impl ISyncRegistrationChange { pub unsafe fn GetEvent(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -3416,13 +2827,6 @@ impl ISyncRegistrationChange { (::windows_core::Interface::vtable(self).GetInstanceId)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISyncRegistrationChange, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISyncRegistrationChange { - type Vtable = ISyncRegistrationChange_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyncRegistrationChange { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeea0d9ae_6b29_43b4_9e70_e3ae33bb2c3b); -} #[repr(C)] #[doc(hidden)] pub struct ISyncRegistrationChange_Vtbl { @@ -3430,31 +2834,22 @@ pub struct ISyncRegistrationChange_Vtbl { pub GetEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psreevent: *mut SYNC_REGISTRATION_EVENT) -> ::windows_core::HRESULT, pub GetInstanceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pguidinstanceid: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyncSessionExtendedErrorInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISyncSessionExtendedErrorInfo, ISyncSessionExtendedErrorInfo_Vtbl, 0x326c6810_790a_409b_b741_6999388761eb); +::windows_core::imp::interface_hierarchy!(ISyncSessionExtendedErrorInfo, ::windows_core::IUnknown); impl ISyncSessionExtendedErrorInfo { pub unsafe fn GetSyncProviderWithError(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetSyncProviderWithError)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISyncSessionExtendedErrorInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISyncSessionExtendedErrorInfo { - type Vtable = ISyncSessionExtendedErrorInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyncSessionExtendedErrorInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x326c6810_790a_409b_b741_6999388761eb); -} #[repr(C)] #[doc(hidden)] pub struct ISyncSessionExtendedErrorInfo_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetSyncProviderWithError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppproviderwitherror: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyncSessionState(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISyncSessionState, ISyncSessionState_Vtbl, 0xb8a940fe_9f01_483b_9434_c37d361225d9); +::windows_core::imp::interface_hierarchy!(ISyncSessionState, ::windows_core::IUnknown); impl ISyncSessionState { pub unsafe fn IsCanceled(&self, pfiscanceled: *mut super::super::Foundation::BOOL) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).IsCanceled)(::windows_core::Interface::as_raw(self), pfiscanceled).ok() @@ -3478,13 +2873,6 @@ impl ISyncSessionState { (::windows_core::Interface::vtable(self).OnProgress)(::windows_core::Interface::as_raw(self), provider, syncstage, dwcompletedwork, dwtotalwork).ok() } } -::windows_core::imp::interface_hierarchy!(ISyncSessionState, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISyncSessionState { - type Vtable = ISyncSessionState_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyncSessionState { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb8a940fe_9f01_483b_9434_c37d361225d9); -} #[repr(C)] #[doc(hidden)] pub struct ISyncSessionState_Vtbl { @@ -3497,9 +2885,8 @@ pub struct ISyncSessionState_Vtbl { pub SetForgottenKnowledgeRecoveryRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prange: *const SYNC_RANGE) -> ::windows_core::HRESULT, pub OnProgress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, provider: SYNC_PROVIDER_ROLE, syncstage: SYNC_PROGRESS_STAGE, dwcompletedwork: u32, dwtotalwork: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyncSessionState2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISyncSessionState2, ISyncSessionState2_Vtbl, 0x9e37cfa3_9e38_4c61_9ca3_ffe810b45ca2); +::windows_core::imp::interface_hierarchy!(ISyncSessionState2, ::windows_core::IUnknown, ISyncSessionState); impl ISyncSessionState2 { pub unsafe fn IsCanceled(&self, pfiscanceled: *mut super::super::Foundation::BOOL) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.IsCanceled)(::windows_core::Interface::as_raw(self), pfiscanceled).ok() @@ -3532,13 +2919,6 @@ impl ISyncSessionState2 { (::windows_core::Interface::vtable(self).GetSessionErrorStatus)(::windows_core::Interface::as_raw(self), phrsessionerror).ok() } } -::windows_core::imp::interface_hierarchy!(ISyncSessionState2, ::windows_core::IUnknown, ISyncSessionState); -unsafe impl ::windows_core::Interface for ISyncSessionState2 { - type Vtable = ISyncSessionState2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyncSessionState2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9e37cfa3_9e38_4c61_9ca3_ffe810b45ca2); -} #[repr(C)] #[doc(hidden)] pub struct ISyncSessionState2_Vtbl { @@ -3546,9 +2926,8 @@ pub struct ISyncSessionState2_Vtbl { pub SetProviderWithError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fself: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub GetSessionErrorStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phrsessionerror: *mut ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISynchronousDataRetriever(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISynchronousDataRetriever, ISynchronousDataRetriever_Vtbl, 0x9b22f2a9_a4cd_4648_9d8e_3a510d4da04b); +::windows_core::imp::interface_hierarchy!(ISynchronousDataRetriever, ::windows_core::IUnknown); impl ISynchronousDataRetriever { pub unsafe fn GetIdParameters(&self, pidparameters: *mut ID_PARAMETERS) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetIdParameters)(::windows_core::Interface::as_raw(self), pidparameters).ok() @@ -3561,13 +2940,6 @@ impl ISynchronousDataRetriever { (::windows_core::Interface::vtable(self).LoadChangeData)(::windows_core::Interface::as_raw(self), ploadchangecontext.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISynchronousDataRetriever, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISynchronousDataRetriever { - type Vtable = ISynchronousDataRetriever_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISynchronousDataRetriever { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9b22f2a9_a4cd_4648_9d8e_3a510d4da04b); -} #[repr(C)] #[doc(hidden)] pub struct ISynchronousDataRetriever_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/System/Wmi/impl.rs b/crates/libs/windows/src/Windows/Win32/System/Wmi/impl.rs index c9052575aa..fd9cc8dc6b 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Wmi/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Wmi/impl.rs @@ -49,7 +49,7 @@ impl IEnumWbemClassObject_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMofCompiler_Impl: Sized { @@ -83,7 +83,7 @@ impl IMofCompiler_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -500,7 +500,7 @@ impl ISWbemDateTime_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -543,7 +543,7 @@ impl ISWbemEventSource_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -557,7 +557,7 @@ impl ISWbemLastError_Vtbl { Self { base__: ISWbemObject_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -600,7 +600,7 @@ impl ISWbemLocator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -682,7 +682,7 @@ impl ISWbemMethod_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -738,7 +738,7 @@ impl ISWbemMethodSet_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -788,7 +788,7 @@ impl ISWbemNamedValue_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -884,7 +884,7 @@ impl ISWbemNamedValueSet_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1219,7 +1219,7 @@ impl ISWbemObject_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1276,7 +1276,7 @@ impl ISWbemObjectEx_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1532,7 +1532,7 @@ impl ISWbemObjectPath_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1614,7 +1614,7 @@ impl ISWbemObjectSet_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1690,7 +1690,7 @@ impl ISWbemPrivilege_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1786,7 +1786,7 @@ impl ISWbemPrivilegeSet_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1901,7 +1901,7 @@ impl ISWbemProperty_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1977,7 +1977,7 @@ impl ISWbemPropertySet_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2113,7 +2113,7 @@ impl ISWbemQualifier_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2189,7 +2189,7 @@ impl ISWbemQualifierSet_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2278,7 +2278,7 @@ impl ISWbemRefreshableItem_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2401,7 +2401,7 @@ impl ISWbemRefresher_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2471,7 +2471,7 @@ impl ISWbemSecurity_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2719,7 +2719,7 @@ impl ISWbemServices_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2752,7 +2752,7 @@ impl ISWbemServicesEx_Vtbl { Self { base__: ISWbemServices_Vtbl::new::(), Put: Put::, PutAsync: PutAsync:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2773,7 +2773,7 @@ impl ISWbemSink_Vtbl { Self { base__: super::Com::IDispatch_Vtbl::new::(), Cancel: Cancel:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2787,7 +2787,7 @@ impl ISWbemSinkEvents_Vtbl { Self { base__: super::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IUnsecuredApartment_Impl: Sized { @@ -2810,7 +2810,7 @@ impl IUnsecuredApartment_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CreateObjectStub: CreateObjectStub:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2866,7 +2866,7 @@ impl IWMIExtension_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IWbemAddressResolution_Impl: Sized { @@ -2883,7 +2883,7 @@ impl IWbemAddressResolution_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Resolve: Resolve:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWbemBackupRestore_Impl: Sized { @@ -2910,7 +2910,7 @@ impl IWbemBackupRestore_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWbemBackupRestoreEx_Impl: Sized + IWbemBackupRestore_Impl { @@ -2937,7 +2937,7 @@ impl IWbemBackupRestoreEx_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IWbemCallResult_Impl: Sized { @@ -3002,7 +3002,7 @@ impl IWbemCallResult_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3247,7 +3247,7 @@ impl IWbemClassObject_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWbemClientConnectionTransport_Impl: Sized { @@ -3295,7 +3295,7 @@ impl IWbemClientConnectionTransport_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWbemClientTransport_Impl: Sized { @@ -3318,7 +3318,7 @@ impl IWbemClientTransport_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), ConnectServer: ConnectServer:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWbemConfigureRefresher_Impl: Sized { @@ -3366,7 +3366,7 @@ impl IWbemConfigureRefresher_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWbemConnectorLogin_Impl: Sized { @@ -3383,7 +3383,7 @@ impl IWbemConnectorLogin_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), ConnectorLogin: ConnectorLogin:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWbemConstructClassObject_Impl: Sized { @@ -3424,7 +3424,7 @@ impl IWbemConstructClassObject_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3522,7 +3522,7 @@ impl IWbemContext_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWbemDecoupledBasicEventProvider_Impl: Sized + IWbemDecoupledRegistrar_Impl { @@ -3561,7 +3561,7 @@ impl IWbemDecoupledBasicEventProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IWbemDecoupledRegistrar_Impl: Sized { @@ -3588,7 +3588,7 @@ impl IWbemDecoupledRegistrar_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWbemEventConsumerProvider_Impl: Sized { @@ -3611,7 +3611,7 @@ impl IWbemEventConsumerProvider_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), FindConsumer: FindConsumer:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWbemEventProvider_Impl: Sized { @@ -3628,7 +3628,7 @@ impl IWbemEventProvider_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), ProvideEvents: ProvideEvents:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWbemEventProviderQuerySink_Impl: Sized { @@ -3655,7 +3655,7 @@ impl IWbemEventProviderQuerySink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWbemEventProviderSecurity_Impl: Sized { @@ -3672,7 +3672,7 @@ impl IWbemEventProviderSecurity_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), AccessCheck: AccessCheck:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWbemEventSink_Impl: Sized + IWbemObjectSink_Impl { @@ -3719,7 +3719,7 @@ impl IWbemEventSink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IWbemHiPerfEnum_Impl: Sized { @@ -3760,7 +3760,7 @@ impl IWbemHiPerfEnum_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWbemHiPerfProvider_Impl: Sized { @@ -3827,7 +3827,7 @@ impl IWbemHiPerfProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWbemLevel1Login_Impl: Sized { @@ -3892,7 +3892,7 @@ impl IWbemLevel1Login_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWbemLocator_Impl: Sized { @@ -3915,7 +3915,7 @@ impl IWbemLocator_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), ConnectServer: ConnectServer:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4014,7 +4014,7 @@ impl IWbemObjectAccess_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IWbemObjectSink_Impl: Sized { @@ -4041,7 +4041,7 @@ impl IWbemObjectSink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4105,7 +4105,7 @@ impl IWbemObjectSinkEx_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IWbemObjectTextSrc_Impl: Sized { @@ -4144,7 +4144,7 @@ impl IWbemObjectTextSrc_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWbemPath_Impl: Sized { @@ -4363,7 +4363,7 @@ impl IWbemPath_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4462,7 +4462,7 @@ impl IWbemPathKeyList_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4499,7 +4499,7 @@ impl IWbemPropertyProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWbemProviderIdentity_Impl: Sized { @@ -4516,7 +4516,7 @@ impl IWbemProviderIdentity_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), SetRegistrationObject: SetRegistrationObject:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWbemProviderInit_Impl: Sized { @@ -4533,7 +4533,7 @@ impl IWbemProviderInit_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Initialize: Initialize:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWbemProviderInitSink_Impl: Sized { @@ -4550,7 +4550,7 @@ impl IWbemProviderInitSink_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), SetStatus: SetStatus:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4622,7 +4622,7 @@ impl IWbemQualifierSet_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWbemQuery_Impl: Sized { @@ -4684,7 +4684,7 @@ impl IWbemQuery_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWbemRefresher_Impl: Sized { @@ -4701,7 +4701,7 @@ impl IWbemRefresher_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Refresh: Refresh:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWbemServices_Impl: Sized { @@ -4905,7 +4905,7 @@ impl IWbemServices_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWbemShutdown_Impl: Sized { @@ -4922,7 +4922,7 @@ impl IWbemShutdown_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Shutdown: Shutdown:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWbemStatusCodeText_Impl: Sized { @@ -4961,7 +4961,7 @@ impl IWbemStatusCodeText_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWbemTransport_Impl: Sized { @@ -4978,7 +4978,7 @@ impl IWbemTransport_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Initialize: Initialize:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWbemUnboundObjectSink_Impl: Sized { @@ -4995,7 +4995,7 @@ impl IWbemUnboundObjectSink_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), IndicateToConsumer: IndicateToConsumer:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWbemUnsecuredApartment_Impl: Sized + IUnsecuredApartment_Impl { @@ -5018,6 +5018,6 @@ impl IWbemUnsecuredApartment_Vtbl { Self { base__: IUnsecuredApartment_Vtbl::new::(), CreateSinkStub: CreateSinkStub:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } 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 bc290bd152..2b44416b45 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Wmi/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Wmi/mod.rs @@ -3,9 +3,8 @@ pub unsafe fn MI_Application_InitializeV1(flags: u32, applicationid: ::core::opt ::windows_targets::link!("mi.dll" "cdecl" fn MI_Application_InitializeV1(flags : u32, applicationid : *const u16, extendederror : *mut *mut MI_Instance, application : *mut MI_Application) -> MI_Result); MI_Application_InitializeV1(flags, ::core::mem::transmute(applicationid.unwrap_or(::std::ptr::null())), ::core::mem::transmute(extendederror.unwrap_or(::std::ptr::null_mut())), application) } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumWbemClassObject(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumWbemClassObject, IEnumWbemClassObject_Vtbl, 0x027947e1_d731_11ce_a357_000000000001); +::windows_core::imp::interface_hierarchy!(IEnumWbemClassObject, ::windows_core::IUnknown); impl IEnumWbemClassObject { pub unsafe fn Reset(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Reset)(::windows_core::Interface::as_raw(self)).ok() @@ -27,13 +26,6 @@ impl IEnumWbemClassObject { (::windows_core::Interface::vtable(self).Skip)(::windows_core::Interface::as_raw(self), ltimeout, ncount) } } -::windows_core::imp::interface_hierarchy!(IEnumWbemClassObject, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumWbemClassObject { - type Vtable = IEnumWbemClassObject_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumWbemClassObject { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x027947e1_d731_11ce_a357_000000000001); -} #[repr(C)] #[doc(hidden)] pub struct IEnumWbemClassObject_Vtbl { @@ -44,9 +36,8 @@ pub struct IEnumWbemClassObject_Vtbl { pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Skip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ltimeout: i32, ncount: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMofCompiler(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMofCompiler, IMofCompiler_Vtbl, 0x6daf974e_2e37_11d2_aec9_00c04fb68820); +::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 @@ -76,13 +67,6 @@ impl IMofCompiler { (::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::imp::interface_hierarchy!(IMofCompiler, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMofCompiler { - type Vtable = IMofCompiler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMofCompiler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6daf974e_2e37_11d2_aec9_00c04fb68820); -} #[repr(C)] #[doc(hidden)] pub struct IMofCompiler_Vtbl { @@ -91,11 +75,15 @@ pub struct IMofCompiler_Vtbl { pub CompileBuffer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, buffsize: i32, pbuffer: *const u8, serverandnamespace: ::windows_core::PCWSTR, user: ::windows_core::PCWSTR, authority: ::windows_core::PCWSTR, password: ::windows_core::PCWSTR, loptionflags: i32, lclassflags: i32, linstanceflags: i32, pinfo: *mut WBEM_COMPILE_STATUS_INFO) -> ::windows_core::HRESULT, pub CreateBMOF: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, textfilename: ::windows_core::PCWSTR, bmoffilename: ::windows_core::PCWSTR, serverandnamespace: ::windows_core::PCWSTR, loptionflags: i32, lclassflags: i32, linstanceflags: i32, pinfo: *mut WBEM_COMPILE_STATUS_INFO) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISWbemDateTime(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISWbemDateTime, + ISWbemDateTime_Vtbl, + 0x5e97458a_cf77_11d3_b38f_00105a1f473a +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISWbemDateTime, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISWbemDateTime { pub unsafe fn Value(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -283,16 +271,6 @@ impl ISWbemDateTime { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISWbemDateTime, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISWbemDateTime { - type Vtable = ISWbemDateTime_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISWbemDateTime { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5e97458a_cf77_11d3_b38f_00105a1f473a); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISWbemDateTime_Vtbl { @@ -338,11 +316,15 @@ pub struct ISWbemDateTime_Vtbl { pub GetFileTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bislocal: super::super::Foundation::VARIANT_BOOL, strfiletime: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SetFileTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strfiletime: ::std::mem::MaybeUninit<::windows_core::BSTR>, bislocal: super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISWbemEventSource(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISWbemEventSource, + ISWbemEventSource_Vtbl, + 0x27d54d92_0ebe_11d2_8b22_00600806d9b6 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISWbemEventSource, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISWbemEventSource { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -359,16 +341,6 @@ impl ISWbemEventSource { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISWbemEventSource, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISWbemEventSource { - type Vtable = ISWbemEventSource_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISWbemEventSource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x27d54d92_0ebe_11d2_8b22_00600806d9b6); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISWbemEventSource_Vtbl { @@ -382,11 +354,15 @@ pub struct ISWbemEventSource_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Security_: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISWbemLastError(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISWbemLastError, + ISWbemLastError_Vtbl, + 0xd962db84_d4bb_11d1_8b09_00600806d9b6 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISWbemLastError, ::windows_core::IUnknown, super::Com::IDispatch, ISWbemObject); #[cfg(feature = "Win32_System_Com")] impl ISWbemLastError { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -620,26 +596,20 @@ impl ISWbemLastError { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISWbemLastError, ::windows_core::IUnknown, super::Com::IDispatch, ISWbemObject); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISWbemLastError { - type Vtable = ISWbemLastError_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISWbemLastError { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd962db84_d4bb_11d1_8b09_00600806d9b6); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISWbemLastError_Vtbl { pub base__: ISWbemObject_Vtbl, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISWbemLocator(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISWbemLocator, + ISWbemLocator_Vtbl, + 0x76a6415b_cb41_11d1_8b02_00600806d9b6 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISWbemLocator, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISWbemLocator { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -665,16 +635,6 @@ impl ISWbemLocator { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISWbemLocator, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISWbemLocator { - type Vtable = ISWbemLocator_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISWbemLocator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x76a6415b_cb41_11d1_8b02_00600806d9b6); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISWbemLocator_Vtbl { @@ -688,11 +648,15 @@ pub struct ISWbemLocator_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Security_: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISWbemMethod(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISWbemMethod, + ISWbemMethod_Vtbl, + 0x422e8e90_d955_11d1_8b09_00600806d9b6 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISWbemMethod, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISWbemMethod { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -723,16 +687,6 @@ impl ISWbemMethod { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISWbemMethod, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISWbemMethod { - type Vtable = ISWbemMethod_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISWbemMethod { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x422e8e90_d955_11d1_8b09_00600806d9b6); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISWbemMethod_Vtbl { @@ -752,11 +706,15 @@ pub struct ISWbemMethod_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Qualifiers_: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISWbemMethodSet(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISWbemMethodSet, + ISWbemMethodSet_Vtbl, + 0xc93ba292_d955_11d1_8b09_00600806d9b6 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISWbemMethodSet, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISWbemMethodSet { pub unsafe fn _NewEnum(&self) -> ::windows_core::Result<::windows_core::IUnknown> { @@ -778,16 +736,6 @@ impl ISWbemMethodSet { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISWbemMethodSet, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISWbemMethodSet { - type Vtable = ISWbemMethodSet_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISWbemMethodSet { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc93ba292_d955_11d1_8b09_00600806d9b6); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISWbemMethodSet_Vtbl { @@ -799,11 +747,15 @@ pub struct ISWbemMethodSet_Vtbl { Item: usize, pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, icount: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISWbemNamedValue(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISWbemNamedValue, + ISWbemNamedValue_Vtbl, + 0x76a64164_cb41_11d1_8b02_00600806d9b6 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISWbemNamedValue, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISWbemNamedValue { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -823,16 +775,6 @@ impl ISWbemNamedValue { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISWbemNamedValue, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISWbemNamedValue { - type Vtable = ISWbemNamedValue_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISWbemNamedValue { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x76a64164_cb41_11d1_8b02_00600806d9b6); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISWbemNamedValue_Vtbl { @@ -847,11 +789,15 @@ pub struct ISWbemNamedValue_Vtbl { SetValue: usize, pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISWbemNamedValueSet(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISWbemNamedValueSet, + ISWbemNamedValueSet_Vtbl, + 0xcf2376ea_ce8c_11d1_8b05_00600806d9b6 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISWbemNamedValueSet, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISWbemNamedValueSet { pub unsafe fn _NewEnum(&self) -> ::windows_core::Result<::windows_core::IUnknown> { @@ -897,16 +843,6 @@ impl ISWbemNamedValueSet { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISWbemNamedValueSet, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISWbemNamedValueSet { - type Vtable = ISWbemNamedValueSet_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISWbemNamedValueSet { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcf2376ea_ce8c_11d1_8b05_00600806d9b6); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISWbemNamedValueSet_Vtbl { @@ -928,11 +864,15 @@ pub struct ISWbemNamedValueSet_Vtbl { Clone: usize, pub DeleteAll: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISWbemObject(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISWbemObject, + ISWbemObject_Vtbl, + 0x76a6415a_cb41_11d1_8b02_00600806d9b6 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISWbemObject, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISWbemObject { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1166,16 +1106,6 @@ impl ISWbemObject { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISWbemObject, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISWbemObject { - type Vtable = ISWbemObject_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISWbemObject { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x76a6415a_cb41_11d1_8b02_00600806d9b6); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISWbemObject_Vtbl { @@ -1278,11 +1208,15 @@ pub struct ISWbemObject_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Security_: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISWbemObjectEx(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISWbemObjectEx, + ISWbemObjectEx_Vtbl, + 0x269ad56a_8a67_4129_bc8c_0506dcfe9880 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISWbemObjectEx, ::windows_core::IUnknown, super::Com::IDispatch, ISWbemObject); #[cfg(feature = "Win32_System_Com")] impl ISWbemObjectEx { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1548,16 +1482,6 @@ impl ISWbemObjectEx { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISWbemObjectEx, ::windows_core::IUnknown, super::Com::IDispatch, ISWbemObject); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISWbemObjectEx { - type Vtable = ISWbemObjectEx_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISWbemObjectEx { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x269ad56a_8a67_4129_bc8c_0506dcfe9880); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISWbemObjectEx_Vtbl { @@ -1579,11 +1503,15 @@ pub struct ISWbemObjectEx_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] SetFromText_: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISWbemObjectPath(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISWbemObjectPath, + ISWbemObjectPath_Vtbl, + 0x5791bc27_ce9c_11d1_97bf_0000f81e849c +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISWbemObjectPath, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISWbemObjectPath { pub unsafe fn Path(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -1698,16 +1626,6 @@ impl ISWbemObjectPath { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISWbemObjectPath, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISWbemObjectPath { - type Vtable = ISWbemObjectPath_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISWbemObjectPath { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5791bc27_ce9c_11d1_97bf_0000f81e849c); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISWbemObjectPath_Vtbl { @@ -1742,11 +1660,15 @@ pub struct ISWbemObjectPath_Vtbl { pub Authority: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strauthority: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SetAuthority: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strauthority: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISWbemObjectSet(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISWbemObjectSet, + ISWbemObjectSet_Vtbl, + 0x76a6415f_cb41_11d1_8b02_00600806d9b6 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISWbemObjectSet, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISWbemObjectSet { pub unsafe fn _NewEnum(&self) -> ::windows_core::Result<::windows_core::IUnknown> { @@ -1780,16 +1702,6 @@ impl ISWbemObjectSet { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISWbemObjectSet, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISWbemObjectSet { - type Vtable = ISWbemObjectSet_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISWbemObjectSet { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x76a6415f_cb41_11d1_8b02_00600806d9b6); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISWbemObjectSet_Vtbl { @@ -1809,11 +1721,15 @@ pub struct ISWbemObjectSet_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] ItemIndex: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISWbemPrivilege(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISWbemPrivilege, + ISWbemPrivilege_Vtbl, + 0x26ee67bd_5804_11d2_8b4a_00600806d9b6 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISWbemPrivilege, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISWbemPrivilege { pub unsafe fn IsEnabled(&self) -> ::windows_core::Result { @@ -1840,16 +1756,6 @@ impl ISWbemPrivilege { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISWbemPrivilege, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISWbemPrivilege { - type Vtable = ISWbemPrivilege_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISWbemPrivilege { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x26ee67bd_5804_11d2_8b4a_00600806d9b6); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISWbemPrivilege_Vtbl { @@ -1860,11 +1766,15 @@ pub struct ISWbemPrivilege_Vtbl { pub DisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strdisplayname: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub Identifier: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, iprivilege: *mut WbemPrivilegeEnum) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISWbemPrivilegeSet(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISWbemPrivilegeSet, + ISWbemPrivilegeSet_Vtbl, + 0x26ee67bf_5804_11d2_8b4a_00600806d9b6 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISWbemPrivilegeSet, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISWbemPrivilegeSet { pub unsafe fn _NewEnum(&self) -> ::windows_core::Result<::windows_core::IUnknown> { @@ -1908,16 +1818,6 @@ impl ISWbemPrivilegeSet { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISWbemPrivilegeSet, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISWbemPrivilegeSet { - type Vtable = ISWbemPrivilegeSet_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISWbemPrivilegeSet { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x26ee67bf_5804_11d2_8b4a_00600806d9b6); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISWbemPrivilegeSet_Vtbl { @@ -1939,11 +1839,15 @@ pub struct ISWbemPrivilegeSet_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] AddAsString: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISWbemProperty(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISWbemProperty, + ISWbemProperty_Vtbl, + 0x1a388f98_d4ba_11d1_8b09_00600806d9b6 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISWbemProperty, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISWbemProperty { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1985,16 +1889,6 @@ impl ISWbemProperty { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISWbemProperty, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISWbemProperty { - type Vtable = ISWbemProperty_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISWbemProperty { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1a388f98_d4ba_11d1_8b09_00600806d9b6); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISWbemProperty_Vtbl { @@ -2017,11 +1911,15 @@ pub struct ISWbemProperty_Vtbl { Qualifiers_: usize, pub IsArray: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bisarray: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISWbemPropertySet(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISWbemPropertySet, + ISWbemPropertySet_Vtbl, + 0xdea0a7b2_d4ba_11d1_8b09_00600806d9b6 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISWbemPropertySet, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISWbemPropertySet { pub unsafe fn _NewEnum(&self) -> ::windows_core::Result<::windows_core::IUnknown> { @@ -2059,16 +1957,6 @@ impl ISWbemPropertySet { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISWbemPropertySet, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISWbemPropertySet { - type Vtable = ISWbemPropertySet_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISWbemPropertySet { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdea0a7b2_d4ba_11d1_8b09_00600806d9b6); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISWbemPropertySet_Vtbl { @@ -2085,11 +1973,15 @@ pub struct ISWbemPropertySet_Vtbl { Add: usize, pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: ::std::mem::MaybeUninit<::windows_core::BSTR>, iflags: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISWbemQualifier(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISWbemQualifier, + ISWbemQualifier_Vtbl, + 0x79b05932_d3b7_11d1_8b06_00600806d9b6 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISWbemQualifier, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISWbemQualifier { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2147,16 +2039,6 @@ impl ISWbemQualifier { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISWbemQualifier, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISWbemQualifier { - type Vtable = ISWbemQualifier_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISWbemQualifier { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x79b05932_d3b7_11d1_8b06_00600806d9b6); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISWbemQualifier_Vtbl { @@ -2179,11 +2061,15 @@ pub struct ISWbemQualifier_Vtbl { pub SetIsOverridable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bisoverridable: super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub IsAmended: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bisamended: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISWbemQualifierSet(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISWbemQualifierSet, + ISWbemQualifierSet_Vtbl, + 0x9b16ed16_d3df_11d1_8b08_00600806d9b6 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISWbemQualifierSet, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISWbemQualifierSet { pub unsafe fn _NewEnum(&self) -> ::windows_core::Result<::windows_core::IUnknown> { @@ -2223,16 +2109,6 @@ impl ISWbemQualifierSet { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISWbemQualifierSet, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISWbemQualifierSet { - type Vtable = ISWbemQualifierSet_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISWbemQualifierSet { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9b16ed16_d3df_11d1_8b08_00600806d9b6); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISWbemQualifierSet_Vtbl { @@ -2249,11 +2125,15 @@ pub struct ISWbemQualifierSet_Vtbl { Add: usize, pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: ::std::mem::MaybeUninit<::windows_core::BSTR>, iflags: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISWbemRefreshableItem(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISWbemRefreshableItem, + ISWbemRefreshableItem_Vtbl, + 0x5ad4bf92_daab_11d3_b38f_00105a1f473a +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISWbemRefreshableItem, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISWbemRefreshableItem { pub unsafe fn Index(&self) -> ::windows_core::Result { @@ -2287,16 +2167,6 @@ impl ISWbemRefreshableItem { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISWbemRefreshableItem, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISWbemRefreshableItem { - type Vtable = ISWbemRefreshableItem_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISWbemRefreshableItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5ad4bf92_daab_11d3_b38f_00105a1f473a); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISWbemRefreshableItem_Vtbl { @@ -2317,11 +2187,15 @@ pub struct ISWbemRefreshableItem_Vtbl { ObjectSet: usize, pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, iflags: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISWbemRefresher(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISWbemRefresher, + ISWbemRefresher_Vtbl, + 0x14d8250e_d9c2_11d3_b38f_00105a1f473a +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISWbemRefresher, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISWbemRefresher { pub unsafe fn _NewEnum(&self) -> ::windows_core::Result<::windows_core::IUnknown> { @@ -2381,16 +2255,6 @@ impl ISWbemRefresher { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISWbemRefresher, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISWbemRefresher { - type Vtable = ISWbemRefresher_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISWbemRefresher { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x14d8250e_d9c2_11d3_b38f_00105a1f473a); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISWbemRefresher_Vtbl { @@ -2415,11 +2279,15 @@ pub struct ISWbemRefresher_Vtbl { pub SetAutoReconnect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bcount: super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub DeleteAll: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISWbemSecurity(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISWbemSecurity, + ISWbemSecurity_Vtbl, + 0xb54d66e6_2287_11d2_8b33_00600806d9b6 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISWbemSecurity, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISWbemSecurity { pub unsafe fn ImpersonationLevel(&self) -> ::windows_core::Result { @@ -2444,16 +2312,6 @@ impl ISWbemSecurity { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISWbemSecurity, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISWbemSecurity { - type Vtable = ISWbemSecurity_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISWbemSecurity { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb54d66e6_2287_11d2_8b33_00600806d9b6); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISWbemSecurity_Vtbl { @@ -2467,11 +2325,15 @@ pub struct ISWbemSecurity_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Privileges: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISWbemServices(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISWbemServices, + ISWbemServices_Vtbl, + 0x76a6415c_cb41_11d1_8b02_00600806d9b6 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISWbemServices, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISWbemServices { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2704,16 +2566,6 @@ impl ISWbemServices { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISWbemServices, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISWbemServices { - type Vtable = ISWbemServices_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISWbemServices { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x76a6415c_cb41_11d1_8b02_00600806d9b6); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISWbemServices_Vtbl { @@ -2796,11 +2648,15 @@ pub struct ISWbemServices_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Security_: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISWbemServicesEx(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISWbemServicesEx, + ISWbemServicesEx_Vtbl, + 0xd2f68443_85dc_427e_91d8_366554cc754c +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISWbemServicesEx, ::windows_core::IUnknown, super::Com::IDispatch, ISWbemServices); #[cfg(feature = "Win32_System_Com")] impl ISWbemServicesEx { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3054,16 +2910,6 @@ impl ISWbemServicesEx { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISWbemServicesEx, ::windows_core::IUnknown, super::Com::IDispatch, ISWbemServices); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISWbemServicesEx { - type Vtable = ISWbemServicesEx_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISWbemServicesEx { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd2f68443_85dc_427e_91d8_366554cc754c); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISWbemServicesEx_Vtbl { @@ -3077,11 +2923,15 @@ pub struct ISWbemServicesEx_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] PutAsync: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISWbemSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISWbemSink, + ISWbemSink_Vtbl, + 0x75718c9f_f029_11d1_a1ac_00c04fb6c223 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ISWbemSink, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ISWbemSink { pub unsafe fn Cancel(&self) -> ::windows_core::Result<()> { @@ -3089,48 +2939,31 @@ impl ISWbemSink { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ISWbemSink, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISWbemSink { - type Vtable = ISWbemSink_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISWbemSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x75718c9f_f029_11d1_a1ac_00c04fb6c223); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISWbemSink_Vtbl { pub base__: super::Com::IDispatch_Vtbl, pub Cancel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISWbemSinkEvents(::windows_core::IUnknown); -#[cfg(feature = "Win32_System_Com")] -impl ISWbemSinkEvents {} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISWbemSinkEvents, + ISWbemSinkEvents_Vtbl, + 0x75718ca0_f029_11d1_a1ac_00c04fb6c223 +); #[cfg(feature = "Win32_System_Com")] ::windows_core::imp::interface_hierarchy!(ISWbemSinkEvents, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISWbemSinkEvents { - type Vtable = ISWbemSinkEvents_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISWbemSinkEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x75718ca0_f029_11d1_a1ac_00c04fb6c223); -} +impl ISWbemSinkEvents {} #[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISWbemSinkEvents_Vtbl { pub base__: super::Com::IDispatch_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUnsecuredApartment(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUnsecuredApartment, IUnsecuredApartment_Vtbl, 0x1cfaba8c_1523_11d1_ad79_00c04fd8fdff); +::windows_core::imp::interface_hierarchy!(IUnsecuredApartment, ::windows_core::IUnknown); impl IUnsecuredApartment { pub unsafe fn CreateObjectStub(&self, pobject: P0) -> ::windows_core::Result<::windows_core::IUnknown> where @@ -3140,24 +2973,21 @@ impl IUnsecuredApartment { (::windows_core::Interface::vtable(self).CreateObjectStub)(::windows_core::Interface::as_raw(self), pobject.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUnsecuredApartment, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUnsecuredApartment { - type Vtable = IUnsecuredApartment_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUnsecuredApartment { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1cfaba8c_1523_11d1_ad79_00c04fd8fdff); -} #[repr(C)] #[doc(hidden)] pub struct IUnsecuredApartment_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub CreateObjectStub: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pobject: *mut ::core::ffi::c_void, ppstub: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWMIExtension(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWMIExtension, + IWMIExtension_Vtbl, + 0xadc1f06e_5c7e_11d2_8b74_00104b2afb41 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWMIExtension, ::windows_core::IUnknown, super::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IWMIExtension { pub unsafe fn WMIObjectPath(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -3178,16 +3008,6 @@ impl IWMIExtension { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWMIExtension, ::windows_core::IUnknown, super::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWMIExtension { - type Vtable = IWMIExtension_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWMIExtension { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xadc1f06e_5c7e_11d2_8b74_00104b2afb41); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWMIExtension_Vtbl { @@ -3202,9 +3022,8 @@ pub struct IWMIExtension_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetWMIServices: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWbemAddressResolution(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWbemAddressResolution, IWbemAddressResolution_Vtbl, 0xf7ce2e12_8c90_11d1_9e7b_00c04fc324a8); +::windows_core::imp::interface_hierarchy!(IWbemAddressResolution, ::windows_core::IUnknown); impl IWbemAddressResolution { pub unsafe fn Resolve(&self, wsznamespacepath: P0, wszaddresstype: ::windows_core::PWSTR, pdwaddresslength: *mut u32, pabbinaryaddress: *mut *mut u8) -> ::windows_core::Result<()> where @@ -3213,22 +3032,14 @@ impl IWbemAddressResolution { (::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::imp::interface_hierarchy!(IWbemAddressResolution, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWbemAddressResolution { - type Vtable = IWbemAddressResolution_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWbemAddressResolution { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf7ce2e12_8c90_11d1_9e7b_00c04fc324a8); -} #[repr(C)] #[doc(hidden)] pub struct IWbemAddressResolution_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Resolve: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wsznamespacepath: ::windows_core::PCWSTR, wszaddresstype: ::windows_core::PWSTR, pdwaddresslength: *mut u32, pabbinaryaddress: *mut *mut u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWbemBackupRestore(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWbemBackupRestore, IWbemBackupRestore_Vtbl, 0xc49e32c7_bc8b_11d2_85d4_00105a1f8304); +::windows_core::imp::interface_hierarchy!(IWbemBackupRestore, ::windows_core::IUnknown); impl IWbemBackupRestore { pub unsafe fn Backup(&self, strbackuptofile: P0, lflags: i32) -> ::windows_core::Result<()> where @@ -3243,13 +3054,6 @@ impl IWbemBackupRestore { (::windows_core::Interface::vtable(self).Restore)(::windows_core::Interface::as_raw(self), strrestorefromfile.into_param().abi(), lflags).ok() } } -::windows_core::imp::interface_hierarchy!(IWbemBackupRestore, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWbemBackupRestore { - type Vtable = IWbemBackupRestore_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWbemBackupRestore { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc49e32c7_bc8b_11d2_85d4_00105a1f8304); -} #[repr(C)] #[doc(hidden)] pub struct IWbemBackupRestore_Vtbl { @@ -3257,9 +3061,8 @@ pub struct IWbemBackupRestore_Vtbl { pub Backup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strbackuptofile: ::windows_core::PCWSTR, lflags: i32) -> ::windows_core::HRESULT, pub Restore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strrestorefromfile: ::windows_core::PCWSTR, lflags: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWbemBackupRestoreEx(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWbemBackupRestoreEx, IWbemBackupRestoreEx_Vtbl, 0xa359dec5_e813_4834_8a2a_ba7f1d777d76); +::windows_core::imp::interface_hierarchy!(IWbemBackupRestoreEx, ::windows_core::IUnknown, IWbemBackupRestore); impl IWbemBackupRestoreEx { pub unsafe fn Backup(&self, strbackuptofile: P0, lflags: i32) -> ::windows_core::Result<()> where @@ -3280,13 +3083,6 @@ impl IWbemBackupRestoreEx { (::windows_core::Interface::vtable(self).Resume)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IWbemBackupRestoreEx, ::windows_core::IUnknown, IWbemBackupRestore); -unsafe impl ::windows_core::Interface for IWbemBackupRestoreEx { - type Vtable = IWbemBackupRestoreEx_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWbemBackupRestoreEx { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa359dec5_e813_4834_8a2a_ba7f1d777d76); -} #[repr(C)] #[doc(hidden)] pub struct IWbemBackupRestoreEx_Vtbl { @@ -3294,9 +3090,8 @@ pub struct IWbemBackupRestoreEx_Vtbl { pub Pause: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Resume: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWbemCallResult(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWbemCallResult, IWbemCallResult_Vtbl, 0x44aca675_e8fc_11d0_a07c_00c04fb68820); +::windows_core::imp::interface_hierarchy!(IWbemCallResult, ::windows_core::IUnknown); impl IWbemCallResult { pub unsafe fn GetResultObject(&self, ltimeout: i32) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -3315,13 +3110,6 @@ impl IWbemCallResult { (::windows_core::Interface::vtable(self).GetCallStatus)(::windows_core::Interface::as_raw(self), ltimeout, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWbemCallResult, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWbemCallResult { - type Vtable = IWbemCallResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWbemCallResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x44aca675_e8fc_11d0_a07c_00c04fb68820); -} #[repr(C)] #[doc(hidden)] pub struct IWbemCallResult_Vtbl { @@ -3331,9 +3119,8 @@ pub struct IWbemCallResult_Vtbl { pub GetResultServices: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ltimeout: i32, ppservices: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetCallStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ltimeout: i32, plstatus: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWbemClassObject(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWbemClassObject, IWbemClassObject_Vtbl, 0xdc12a681_737f_11cf_884d_00aa004b2e24); +::windows_core::imp::interface_hierarchy!(IWbemClassObject, ::windows_core::IUnknown); impl IWbemClassObject { pub unsafe fn GetQualifierSet(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -3467,13 +3254,6 @@ impl IWbemClassObject { (::windows_core::Interface::vtable(self).GetMethodOrigin)(::windows_core::Interface::as_raw(self), wszmethodname.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWbemClassObject, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWbemClassObject { - type Vtable = IWbemClassObject_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWbemClassObject { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdc12a681_737f_11cf_884d_00aa004b2e24); -} #[repr(C)] #[doc(hidden)] pub struct IWbemClassObject_Vtbl { @@ -3515,9 +3295,8 @@ pub struct IWbemClassObject_Vtbl { pub GetMethodQualifierSet: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wszmethod: ::windows_core::PCWSTR, ppqualset: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetMethodOrigin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wszmethodname: ::windows_core::PCWSTR, pstrclassname: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWbemClientConnectionTransport(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWbemClientConnectionTransport, IWbemClientConnectionTransport_Vtbl, 0xa889c72a_fcc1_4a9e_af61_ed071333fb5b); +::windows_core::imp::interface_hierarchy!(IWbemClientConnectionTransport, ::windows_core::IUnknown); 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 ::core::option::Option) -> ::windows_core::Result where @@ -3527,7 +3306,7 @@ impl IWbemClientConnectionTransport { P3: ::windows_core::IntoParam<::windows_core::BSTR>, P4: ::windows_core::IntoParam<::windows_core::BSTR>, P5: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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)).from_abi(result__) @@ -3551,13 +3330,6 @@ impl IWbemClientConnectionTransport { (::windows_core::Interface::vtable(self).Cancel)(::windows_core::Interface::as_raw(self), lflags, phandler.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IWbemClientConnectionTransport, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWbemClientConnectionTransport { - type Vtable = IWbemClientConnectionTransport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWbemClientConnectionTransport { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa889c72a_fcc1_4a9e_af61_ed071333fb5b); -} #[repr(C)] #[doc(hidden)] pub struct IWbemClientConnectionTransport_Vtbl { @@ -3566,9 +3338,8 @@ pub struct IWbemClientConnectionTransport_Vtbl { pub OpenAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, straddresstype: ::std::mem::MaybeUninit<::windows_core::BSTR>, dwbinaryaddresslength: u32, abbinaryaddress: *const u8, strobject: ::std::mem::MaybeUninit<::windows_core::BSTR>, struser: ::std::mem::MaybeUninit<::windows_core::BSTR>, strpassword: ::std::mem::MaybeUninit<::windows_core::BSTR>, strlocale: ::std::mem::MaybeUninit<::windows_core::BSTR>, lflags: i32, pctx: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, presponsehandler: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Cancel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, phandler: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWbemClientTransport(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWbemClientTransport, IWbemClientTransport_Vtbl, 0xf7ce2e11_8c90_11d1_9e7b_00c04fc324a8); +::windows_core::imp::interface_hierarchy!(IWbemClientTransport, ::windows_core::IUnknown); 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 @@ -3584,22 +3355,14 @@ impl IWbemClientTransport { (::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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWbemClientTransport, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWbemClientTransport { - type Vtable = IWbemClientTransport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWbemClientTransport { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf7ce2e11_8c90_11d1_9e7b_00c04fc324a8); -} #[repr(C)] #[doc(hidden)] pub struct IWbemClientTransport_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub ConnectServer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, straddresstype: ::std::mem::MaybeUninit<::windows_core::BSTR>, dwbinaryaddresslength: u32, abbinaryaddress: *const u8, strnetworkresource: ::std::mem::MaybeUninit<::windows_core::BSTR>, struser: ::std::mem::MaybeUninit<::windows_core::BSTR>, strpassword: ::std::mem::MaybeUninit<::windows_core::BSTR>, strlocale: ::std::mem::MaybeUninit<::windows_core::BSTR>, lsecurityflags: i32, strauthority: ::std::mem::MaybeUninit<::windows_core::BSTR>, pctx: *mut ::core::ffi::c_void, ppnamespace: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWbemConfigureRefresher(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWbemConfigureRefresher, IWbemConfigureRefresher_Vtbl, 0x49353c92_516b_11d1_aea6_00c04fb68820); +::windows_core::imp::interface_hierarchy!(IWbemConfigureRefresher, ::windows_core::IUnknown); impl IWbemConfigureRefresher { pub unsafe fn AddObjectByPath(&self, pnamespace: P0, wszpath: P1, lflags: i32, pcontext: P2, pprefreshable: *mut ::core::option::Option, plid: *mut i32) -> ::windows_core::Result<()> where @@ -3635,13 +3398,6 @@ impl IWbemConfigureRefresher { (::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::imp::interface_hierarchy!(IWbemConfigureRefresher, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWbemConfigureRefresher { - type Vtable = IWbemConfigureRefresher_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWbemConfigureRefresher { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x49353c92_516b_11d1_aea6_00c04fb68820); -} #[repr(C)] #[doc(hidden)] pub struct IWbemConfigureRefresher_Vtbl { @@ -3652,37 +3408,28 @@ pub struct IWbemConfigureRefresher_Vtbl { pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lid: i32, lflags: i32) -> ::windows_core::HRESULT, pub AddEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pnamespace: *mut ::core::ffi::c_void, wszclassname: ::windows_core::PCWSTR, lflags: i32, pcontext: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void, plid: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWbemConnectorLogin(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWbemConnectorLogin, IWbemConnectorLogin_Vtbl, 0xd8ec9cb1_b135_4f10_8b1b_c7188bb0d186); +::windows_core::imp::interface_hierarchy!(IWbemConnectorLogin, ::windows_core::IUnknown); impl IWbemConnectorLogin { pub unsafe fn ConnectorLogin(&self, wsznetworkresource: P0, wszpreferredlocale: P1, lflags: i32, pctx: P2) -> ::windows_core::Result where P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, P2: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWbemConnectorLogin, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWbemConnectorLogin { - type Vtable = IWbemConnectorLogin_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWbemConnectorLogin { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd8ec9cb1_b135_4f10_8b1b_c7188bb0d186); -} #[repr(C)] #[doc(hidden)] pub struct IWbemConnectorLogin_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub ConnectorLogin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wsznetworkresource: ::windows_core::PCWSTR, wszpreferredlocale: ::windows_core::PCWSTR, lflags: i32, pctx: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, pinterface: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWbemConstructClassObject(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWbemConstructClassObject, IWbemConstructClassObject_Vtbl, 0x9ef76194_70d5_11d1_ad90_00c04fd8fdff); +::windows_core::imp::interface_hierarchy!(IWbemConstructClassObject, ::windows_core::IUnknown); impl IWbemConstructClassObject { pub unsafe fn SetInheritanceChain(&self, lnumantecedents: i32, awszantecedents: *const ::windows_core::PCWSTR) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetInheritanceChain)(::windows_core::Interface::as_raw(self), lnumantecedents, awszantecedents).ok() @@ -3707,13 +3454,6 @@ impl IWbemConstructClassObject { (::windows_core::Interface::vtable(self).SetServerNamespace)(::windows_core::Interface::as_raw(self), wszserver.into_param().abi(), wsznamespace.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IWbemConstructClassObject, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWbemConstructClassObject { - type Vtable = IWbemConstructClassObject_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWbemConstructClassObject { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9ef76194_70d5_11d1_ad90_00c04fd8fdff); -} #[repr(C)] #[doc(hidden)] pub struct IWbemConstructClassObject_Vtbl { @@ -3723,9 +3463,8 @@ pub struct IWbemConstructClassObject_Vtbl { pub SetMethodOrigin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wszmethodname: ::windows_core::PCWSTR, loriginindex: i32) -> ::windows_core::HRESULT, pub SetServerNamespace: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wszserver: ::windows_core::PCWSTR, wsznamespace: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWbemContext(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWbemContext, IWbemContext_Vtbl, 0x44aca674_e8fc_11d0_a07c_00c04fb68820); +::windows_core::imp::interface_hierarchy!(IWbemContext, ::windows_core::IUnknown); impl IWbemContext { pub unsafe fn Clone(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -3775,13 +3514,6 @@ impl IWbemContext { (::windows_core::Interface::vtable(self).DeleteAll)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IWbemContext, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWbemContext { - type Vtable = IWbemContext_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWbemContext { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x44aca674_e8fc_11d0_a07c_00c04fb68820); -} #[repr(C)] #[doc(hidden)] pub struct IWbemContext_Vtbl { @@ -3808,9 +3540,8 @@ pub struct IWbemContext_Vtbl { pub DeleteValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wszname: ::windows_core::PCWSTR, lflags: i32) -> ::windows_core::HRESULT, pub DeleteAll: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWbemDecoupledBasicEventProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWbemDecoupledBasicEventProvider, IWbemDecoupledBasicEventProvider_Vtbl, 0x86336d20_ca11_4786_9ef1_bc8a946b42fc); +::windows_core::imp::interface_hierarchy!(IWbemDecoupledBasicEventProvider, ::windows_core::IUnknown, IWbemDecoupledRegistrar); 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 @@ -3841,13 +3572,6 @@ impl IWbemDecoupledBasicEventProvider { (::windows_core::Interface::vtable(self).GetService)(::windows_core::Interface::as_raw(self), a_flags, a_context.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWbemDecoupledBasicEventProvider, ::windows_core::IUnknown, IWbemDecoupledRegistrar); -unsafe impl ::windows_core::Interface for IWbemDecoupledBasicEventProvider { - type Vtable = IWbemDecoupledBasicEventProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWbemDecoupledBasicEventProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x86336d20_ca11_4786_9ef1_bc8a946b42fc); -} #[repr(C)] #[doc(hidden)] pub struct IWbemDecoupledBasicEventProvider_Vtbl { @@ -3855,9 +3579,8 @@ pub struct IWbemDecoupledBasicEventProvider_Vtbl { pub GetSink: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, a_flags: i32, a_context: *mut ::core::ffi::c_void, a_sink: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetService: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, a_flags: i32, a_context: *mut ::core::ffi::c_void, a_service: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWbemDecoupledRegistrar(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWbemDecoupledRegistrar, IWbemDecoupledRegistrar_Vtbl, 0x1005cbcf_e64f_4646_bcd3_3a089d8a84b4); +::windows_core::imp::interface_hierarchy!(IWbemDecoupledRegistrar, ::windows_core::IUnknown); 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 @@ -3874,13 +3597,6 @@ impl IWbemDecoupledRegistrar { (::windows_core::Interface::vtable(self).UnRegister)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IWbemDecoupledRegistrar, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWbemDecoupledRegistrar { - type Vtable = IWbemDecoupledRegistrar_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWbemDecoupledRegistrar { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1005cbcf_e64f_4646_bcd3_3a089d8a84b4); -} #[repr(C)] #[doc(hidden)] pub struct IWbemDecoupledRegistrar_Vtbl { @@ -3888,9 +3604,8 @@ pub struct IWbemDecoupledRegistrar_Vtbl { pub Register: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, a_flags: i32, a_context: *mut ::core::ffi::c_void, a_user: ::windows_core::PCWSTR, a_locale: ::windows_core::PCWSTR, a_scope: ::windows_core::PCWSTR, a_registration: ::windows_core::PCWSTR, piunknown: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub UnRegister: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWbemEventConsumerProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWbemEventConsumerProvider, IWbemEventConsumerProvider_Vtbl, 0xe246107a_b06e_11d0_ad61_00c04fd8fdff); +::windows_core::imp::interface_hierarchy!(IWbemEventConsumerProvider, ::windows_core::IUnknown); impl IWbemEventConsumerProvider { pub unsafe fn FindConsumer(&self, plogicalconsumer: P0) -> ::windows_core::Result where @@ -3900,22 +3615,14 @@ impl IWbemEventConsumerProvider { (::windows_core::Interface::vtable(self).FindConsumer)(::windows_core::Interface::as_raw(self), plogicalconsumer.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWbemEventConsumerProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWbemEventConsumerProvider { - type Vtable = IWbemEventConsumerProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWbemEventConsumerProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe246107a_b06e_11d0_ad61_00c04fd8fdff); -} #[repr(C)] #[doc(hidden)] pub struct IWbemEventConsumerProvider_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub FindConsumer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plogicalconsumer: *mut ::core::ffi::c_void, ppconsumer: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWbemEventProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWbemEventProvider, IWbemEventProvider_Vtbl, 0xe245105b_b06e_11d0_ad61_00c04fd8fdff); +::windows_core::imp::interface_hierarchy!(IWbemEventProvider, ::windows_core::IUnknown); impl IWbemEventProvider { pub unsafe fn ProvideEvents(&self, psink: P0, lflags: i32) -> ::windows_core::Result<()> where @@ -3924,22 +3631,14 @@ impl IWbemEventProvider { (::windows_core::Interface::vtable(self).ProvideEvents)(::windows_core::Interface::as_raw(self), psink.into_param().abi(), lflags).ok() } } -::windows_core::imp::interface_hierarchy!(IWbemEventProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWbemEventProvider { - type Vtable = IWbemEventProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWbemEventProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe245105b_b06e_11d0_ad61_00c04fd8fdff); -} #[repr(C)] #[doc(hidden)] pub struct IWbemEventProvider_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub ProvideEvents: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psink: *mut ::core::ffi::c_void, lflags: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWbemEventProviderQuerySink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWbemEventProviderQuerySink, IWbemEventProviderQuerySink_Vtbl, 0x580acaf8_fa1c_11d0_ad72_00c04fd8fdff); +::windows_core::imp::interface_hierarchy!(IWbemEventProviderQuerySink, ::windows_core::IUnknown); impl IWbemEventProviderQuerySink { pub unsafe fn NewQuery(&self, dwid: u32, wszquerylanguage: *const u16, wszquery: *const u16) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).NewQuery)(::windows_core::Interface::as_raw(self), dwid, wszquerylanguage, wszquery).ok() @@ -3948,13 +3647,6 @@ impl IWbemEventProviderQuerySink { (::windows_core::Interface::vtable(self).CancelQuery)(::windows_core::Interface::as_raw(self), dwid).ok() } } -::windows_core::imp::interface_hierarchy!(IWbemEventProviderQuerySink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWbemEventProviderQuerySink { - type Vtable = IWbemEventProviderQuerySink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWbemEventProviderQuerySink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x580acaf8_fa1c_11d0_ad72_00c04fd8fdff); -} #[repr(C)] #[doc(hidden)] pub struct IWbemEventProviderQuerySink_Vtbl { @@ -3962,30 +3654,21 @@ pub struct IWbemEventProviderQuerySink_Vtbl { pub NewQuery: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwid: u32, wszquerylanguage: *const u16, wszquery: *const u16) -> ::windows_core::HRESULT, pub CancelQuery: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwid: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWbemEventProviderSecurity(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWbemEventProviderSecurity, IWbemEventProviderSecurity_Vtbl, 0x631f7d96_d993_11d2_b339_00105a1f4aaf); +::windows_core::imp::interface_hierarchy!(IWbemEventProviderSecurity, ::windows_core::IUnknown); impl IWbemEventProviderSecurity { pub unsafe fn AccessCheck(&self, wszquerylanguage: *const u16, wszquery: *const u16, psid: &[u8]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).AccessCheck)(::windows_core::Interface::as_raw(self), wszquerylanguage, wszquery, psid.len().try_into().unwrap(), ::core::mem::transmute(psid.as_ptr())).ok() } } -::windows_core::imp::interface_hierarchy!(IWbemEventProviderSecurity, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWbemEventProviderSecurity { - type Vtable = IWbemEventProviderSecurity_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWbemEventProviderSecurity { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x631f7d96_d993_11d2_b339_00105a1f4aaf); -} #[repr(C)] #[doc(hidden)] pub struct IWbemEventProviderSecurity_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub AccessCheck: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wszquerylanguage: *const u16, wszquery: *const u16, lsidlength: i32, psid: *const u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWbemEventSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWbemEventSink, IWbemEventSink_Vtbl, 0x3ae0080a_7e3a_4366_bf89_0feedc931659); +::windows_core::imp::interface_hierarchy!(IWbemEventSink, ::windows_core::IUnknown, IWbemObjectSink); impl IWbemEventSink { pub unsafe fn Indicate(&self, apobjarray: &[::core::option::Option]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.Indicate)(::windows_core::Interface::as_raw(self), apobjarray.len().try_into().unwrap(), ::core::mem::transmute(apobjarray.as_ptr())).ok() @@ -4014,13 +3697,6 @@ impl IWbemEventSink { (::windows_core::Interface::vtable(self).SetBatchingParameters)(::windows_core::Interface::as_raw(self), lflags, dwmaxbuffersize, dwmaxsendlatency).ok() } } -::windows_core::imp::interface_hierarchy!(IWbemEventSink, ::windows_core::IUnknown, IWbemObjectSink); -unsafe impl ::windows_core::Interface for IWbemEventSink { - type Vtable = IWbemEventSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWbemEventSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3ae0080a_7e3a_4366_bf89_0feedc931659); -} #[repr(C)] #[doc(hidden)] pub struct IWbemEventSink_Vtbl { @@ -4030,9 +3706,8 @@ pub struct IWbemEventSink_Vtbl { pub GetRestrictedSink: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lnumqueries: i32, awszqueries: *const ::windows_core::PCWSTR, pcallback: *mut ::core::ffi::c_void, ppsink: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetBatchingParameters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, dwmaxbuffersize: u32, dwmaxsendlatency: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWbemHiPerfEnum(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWbemHiPerfEnum, IWbemHiPerfEnum_Vtbl, 0x2705c288_79ae_11d2_b348_00105a1f8177); +::windows_core::imp::interface_hierarchy!(IWbemHiPerfEnum, ::windows_core::IUnknown); impl IWbemHiPerfEnum { pub unsafe fn AddObjects(&self, lflags: i32, unumobjects: u32, apids: *const i32, apobj: *const ::core::option::Option) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).AddObjects)(::windows_core::Interface::as_raw(self), lflags, unumobjects, apids, ::core::mem::transmute(apobj)).ok() @@ -4047,13 +3722,6 @@ impl IWbemHiPerfEnum { (::windows_core::Interface::vtable(self).RemoveAll)(::windows_core::Interface::as_raw(self), lflags).ok() } } -::windows_core::imp::interface_hierarchy!(IWbemHiPerfEnum, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWbemHiPerfEnum { - type Vtable = IWbemHiPerfEnum_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWbemHiPerfEnum { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2705c288_79ae_11d2_b348_00105a1f8177); -} #[repr(C)] #[doc(hidden)] pub struct IWbemHiPerfEnum_Vtbl { @@ -4063,9 +3731,8 @@ pub struct IWbemHiPerfEnum_Vtbl { pub GetObjects: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, unumobjects: u32, apobj: *mut *mut ::core::ffi::c_void, pureturned: *mut u32) -> ::windows_core::HRESULT, pub RemoveAll: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWbemHiPerfProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWbemHiPerfProvider, IWbemHiPerfProvider_Vtbl, 0x49353c93_516b_11d1_aea6_00c04fb68820); +::windows_core::imp::interface_hierarchy!(IWbemHiPerfProvider, ::windows_core::IUnknown); impl IWbemHiPerfProvider { pub unsafe fn QueryInstances(&self, pnamespace: P0, wszclass: P1, lflags: i32, pctx: P2, psink: P3) -> ::windows_core::Result<()> where @@ -4117,13 +3784,6 @@ impl IWbemHiPerfProvider { (::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::imp::interface_hierarchy!(IWbemHiPerfProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWbemHiPerfProvider { - type Vtable = IWbemHiPerfProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWbemHiPerfProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x49353c93_516b_11d1_aea6_00c04fb68820); -} #[repr(C)] #[doc(hidden)] pub struct IWbemHiPerfProvider_Vtbl { @@ -4135,9 +3795,8 @@ pub struct IWbemHiPerfProvider_Vtbl { pub CreateRefreshableEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pnamespace: *mut ::core::ffi::c_void, wszclass: ::windows_core::PCWSTR, prefresher: *mut ::core::ffi::c_void, lflags: i32, pcontext: *mut ::core::ffi::c_void, phiperfenum: *mut ::core::ffi::c_void, plid: *mut i32) -> ::windows_core::HRESULT, pub GetObjects: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pnamespace: *mut ::core::ffi::c_void, lnumobjects: i32, apobj: *mut *mut ::core::ffi::c_void, lflags: i32, pcontext: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWbemLevel1Login(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWbemLevel1Login, IWbemLevel1Login_Vtbl, 0xf309ad18_d86a_11d0_a075_00c04fb68820); +::windows_core::imp::interface_hierarchy!(IWbemLevel1Login, ::windows_core::IUnknown); impl IWbemLevel1Login { pub unsafe fn EstablishPosition(&self, wszlocalelist: P0, dwnumlocales: u32) -> ::windows_core::Result where @@ -4172,13 +3831,6 @@ impl IWbemLevel1Login { (::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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWbemLevel1Login, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWbemLevel1Login { - type Vtable = IWbemLevel1Login_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWbemLevel1Login { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf309ad18_d86a_11d0_a075_00c04fb68820); -} #[repr(C)] #[doc(hidden)] pub struct IWbemLevel1Login_Vtbl { @@ -4188,9 +3840,8 @@ pub struct IWbemLevel1Login_Vtbl { pub WBEMLogin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wszpreferredlocale: ::windows_core::PCWSTR, accesstoken: *const u8, lflags: i32, pctx: *mut ::core::ffi::c_void, ppnamespace: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub NTLMLogin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wsznetworkresource: ::windows_core::PCWSTR, wszpreferredlocale: ::windows_core::PCWSTR, lflags: i32, pctx: *mut ::core::ffi::c_void, ppnamespace: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWbemLocator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWbemLocator, IWbemLocator_Vtbl, 0xdc12a687_737f_11cf_884d_00aa004b2e24); +::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 @@ -4205,22 +3856,14 @@ impl IWbemLocator { (::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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWbemLocator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWbemLocator { - type Vtable = IWbemLocator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWbemLocator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdc12a687_737f_11cf_884d_00aa004b2e24); -} #[repr(C)] #[doc(hidden)] pub struct IWbemLocator_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub ConnectServer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strnetworkresource: ::std::mem::MaybeUninit<::windows_core::BSTR>, struser: ::std::mem::MaybeUninit<::windows_core::BSTR>, strpassword: ::std::mem::MaybeUninit<::windows_core::BSTR>, strlocale: ::std::mem::MaybeUninit<::windows_core::BSTR>, lsecurityflags: i32, strauthority: ::std::mem::MaybeUninit<::windows_core::BSTR>, pctx: *mut ::core::ffi::c_void, ppnamespace: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWbemObjectAccess(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWbemObjectAccess, IWbemObjectAccess_Vtbl, 0x49353c9a_516b_11d1_aea6_00c04fb68820); +::windows_core::imp::interface_hierarchy!(IWbemObjectAccess, ::windows_core::IUnknown, IWbemClassObject); impl IWbemObjectAccess { pub unsafe fn GetQualifierSet(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -4389,13 +4032,6 @@ impl IWbemObjectAccess { (::windows_core::Interface::vtable(self).Unlock)(::windows_core::Interface::as_raw(self), lflags).ok() } } -::windows_core::imp::interface_hierarchy!(IWbemObjectAccess, ::windows_core::IUnknown, IWbemClassObject); -unsafe impl ::windows_core::Interface for IWbemObjectAccess { - type Vtable = IWbemObjectAccess_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWbemObjectAccess { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x49353c9a_516b_11d1_aea6_00c04fb68820); -} #[repr(C)] #[doc(hidden)] pub struct IWbemObjectAccess_Vtbl { @@ -4411,9 +4047,8 @@ pub struct IWbemObjectAccess_Vtbl { pub Lock: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32) -> ::windows_core::HRESULT, pub Unlock: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWbemObjectSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWbemObjectSink, IWbemObjectSink_Vtbl, 0x7c857801_7381_11cf_884d_00aa004b2e24); +::windows_core::imp::interface_hierarchy!(IWbemObjectSink, ::windows_core::IUnknown); impl IWbemObjectSink { pub unsafe fn Indicate(&self, apobjarray: &[::core::option::Option]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Indicate)(::windows_core::Interface::as_raw(self), apobjarray.len().try_into().unwrap(), ::core::mem::transmute(apobjarray.as_ptr())).ok() @@ -4426,13 +4061,6 @@ impl IWbemObjectSink { (::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::imp::interface_hierarchy!(IWbemObjectSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWbemObjectSink { - type Vtable = IWbemObjectSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWbemObjectSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7c857801_7381_11cf_884d_00aa004b2e24); -} #[repr(C)] #[doc(hidden)] pub struct IWbemObjectSink_Vtbl { @@ -4440,9 +4068,8 @@ pub struct IWbemObjectSink_Vtbl { pub Indicate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lobjectcount: i32, apobjarray: *const *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, hresult: ::windows_core::HRESULT, strparam: ::std::mem::MaybeUninit<::windows_core::BSTR>, pobjparam: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWbemObjectSinkEx(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWbemObjectSinkEx, IWbemObjectSinkEx_Vtbl, 0xe7d35cfa_348b_485e_b524_252725d697ca); +::windows_core::imp::interface_hierarchy!(IWbemObjectSinkEx, ::windows_core::IUnknown, IWbemObjectSink); impl IWbemObjectSinkEx { pub unsafe fn Indicate(&self, apobjarray: &[::core::option::Option]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.Indicate)(::windows_core::Interface::as_raw(self), apobjarray.len().try_into().unwrap(), ::core::mem::transmute(apobjarray.as_ptr())).ok() @@ -4491,13 +4118,6 @@ impl IWbemObjectSinkEx { (::windows_core::Interface::vtable(self).WriteStreamParameter)(::windows_core::Interface::as_raw(self), strname.into_param().abi(), vtvalue, ultype, ulflags).ok() } } -::windows_core::imp::interface_hierarchy!(IWbemObjectSinkEx, ::windows_core::IUnknown, IWbemObjectSink); -unsafe impl ::windows_core::Interface for IWbemObjectSinkEx { - type Vtable = IWbemObjectSinkEx_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWbemObjectSinkEx { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe7d35cfa_348b_485e_b524_252725d697ca); -} #[repr(C)] #[doc(hidden)] pub struct IWbemObjectSinkEx_Vtbl { @@ -4511,9 +4131,8 @@ pub struct IWbemObjectSinkEx_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] WriteStreamParameter: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWbemObjectTextSrc(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWbemObjectTextSrc, IWbemObjectTextSrc_Vtbl, 0xbfbf883a_cad7_11d3_a11b_00105a1f515a); +::windows_core::imp::interface_hierarchy!(IWbemObjectTextSrc, ::windows_core::IUnknown); impl IWbemObjectTextSrc { pub unsafe fn GetText(&self, lflags: i32, pobj: P0, uobjtextformat: u32, pctx: P1) -> ::windows_core::Result<::windows_core::BSTR> where @@ -4532,13 +4151,6 @@ impl IWbemObjectTextSrc { (::windows_core::Interface::vtable(self).CreateFromText)(::windows_core::Interface::as_raw(self), lflags, strtext.into_param().abi(), uobjtextformat, pctx.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWbemObjectTextSrc, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWbemObjectTextSrc { - type Vtable = IWbemObjectTextSrc_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWbemObjectTextSrc { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbfbf883a_cad7_11d3_a11b_00105a1f515a); -} #[repr(C)] #[doc(hidden)] pub struct IWbemObjectTextSrc_Vtbl { @@ -4546,9 +4158,8 @@ pub struct IWbemObjectTextSrc_Vtbl { pub GetText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, pobj: *mut ::core::ffi::c_void, uobjtextformat: u32, pctx: *mut ::core::ffi::c_void, strtext: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub CreateFromText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, strtext: ::std::mem::MaybeUninit<::windows_core::BSTR>, uobjtextformat: u32, pctx: *mut ::core::ffi::c_void, pnewobj: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWbemPath(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWbemPath, IWbemPath_Vtbl, 0x3bc15af2_736c_477e_9e51_238af8667dcc); +::windows_core::imp::interface_hierarchy!(IWbemPath, ::windows_core::IUnknown); impl IWbemPath { pub unsafe fn SetText(&self, umode: u32, pszpath: P0) -> ::windows_core::Result<()> where @@ -4668,13 +4279,6 @@ impl IWbemPath { (::windows_core::Interface::vtable(self).IsSameClassName)(::windows_core::Interface::as_raw(self), wszclass.into_param().abi()) } } -::windows_core::imp::interface_hierarchy!(IWbemPath, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWbemPath { - type Vtable = IWbemPath_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWbemPath { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3bc15af2_736c_477e_9e51_238af8667dcc); -} #[repr(C)] #[doc(hidden)] pub struct IWbemPath_Vtbl { @@ -4706,9 +4310,8 @@ pub struct IWbemPath_Vtbl { pub IsLocal: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wszmachine: ::windows_core::PCWSTR) -> super::super::Foundation::BOOL, pub IsSameClassName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wszclass: ::windows_core::PCWSTR) -> super::super::Foundation::BOOL, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWbemPathKeyList(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWbemPathKeyList, IWbemPathKeyList_Vtbl, 0x9ae62877_7544_4bb0_aa26_a13824659ed6); +::windows_core::imp::interface_hierarchy!(IWbemPathKeyList, ::windows_core::IUnknown); impl IWbemPathKeyList { pub unsafe fn GetCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -4756,13 +4359,6 @@ impl IWbemPathKeyList { (::windows_core::Interface::vtable(self).GetText)(::windows_core::Interface::as_raw(self), lflags, pubufflength, ::core::mem::transmute(psztext)).ok() } } -::windows_core::imp::interface_hierarchy!(IWbemPathKeyList, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWbemPathKeyList { - type Vtable = IWbemPathKeyList_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWbemPathKeyList { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9ae62877_7544_4bb0_aa26_a13824659ed6); -} #[repr(C)] #[doc(hidden)] pub struct IWbemPathKeyList_Vtbl { @@ -4784,9 +4380,8 @@ pub struct IWbemPathKeyList_Vtbl { pub GetInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, urequestedinfo: u32, puresponse: *mut u64) -> ::windows_core::HRESULT, pub GetText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, pubufflength: *mut u32, psztext: ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWbemPropertyProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWbemPropertyProvider, IWbemPropertyProvider_Vtbl, 0xce61e841_65bc_11d0_b6bd_00aa003240c7); +::windows_core::imp::interface_hierarchy!(IWbemPropertyProvider, ::windows_core::IUnknown); impl IWbemPropertyProvider { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -4812,13 +4407,6 @@ impl IWbemPropertyProvider { (::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(), pvvalue).ok() } } -::windows_core::imp::interface_hierarchy!(IWbemPropertyProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWbemPropertyProvider { - type Vtable = IWbemPropertyProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWbemPropertyProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xce61e841_65bc_11d0_b6bd_00aa003240c7); -} #[repr(C)] #[doc(hidden)] pub struct IWbemPropertyProvider_Vtbl { @@ -4832,9 +4420,8 @@ pub struct IWbemPropertyProvider_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] PutProperty: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWbemProviderIdentity(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWbemProviderIdentity, IWbemProviderIdentity_Vtbl, 0x631f7d97_d993_11d2_b339_00105a1f4aaf); +::windows_core::imp::interface_hierarchy!(IWbemProviderIdentity, ::windows_core::IUnknown); impl IWbemProviderIdentity { pub unsafe fn SetRegistrationObject(&self, lflags: i32, pprovreg: P0) -> ::windows_core::Result<()> where @@ -4843,22 +4430,14 @@ impl IWbemProviderIdentity { (::windows_core::Interface::vtable(self).SetRegistrationObject)(::windows_core::Interface::as_raw(self), lflags, pprovreg.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IWbemProviderIdentity, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWbemProviderIdentity { - type Vtable = IWbemProviderIdentity_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWbemProviderIdentity { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x631f7d97_d993_11d2_b339_00105a1f4aaf); -} #[repr(C)] #[doc(hidden)] pub struct IWbemProviderIdentity_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub SetRegistrationObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, pprovreg: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWbemProviderInit(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWbemProviderInit, IWbemProviderInit_Vtbl, 0x1be41572_91dd_11d1_aeb2_00c04fb68820); +::windows_core::imp::interface_hierarchy!(IWbemProviderInit, ::windows_core::IUnknown); 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 @@ -4872,43 +4451,27 @@ impl IWbemProviderInit { (::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::imp::interface_hierarchy!(IWbemProviderInit, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWbemProviderInit { - type Vtable = IWbemProviderInit_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWbemProviderInit { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1be41572_91dd_11d1_aeb2_00c04fb68820); -} #[repr(C)] #[doc(hidden)] pub struct IWbemProviderInit_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wszuser: ::windows_core::PCWSTR, lflags: i32, wsznamespace: ::windows_core::PCWSTR, wszlocale: ::windows_core::PCWSTR, pnamespace: *mut ::core::ffi::c_void, pctx: *mut ::core::ffi::c_void, pinitsink: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWbemProviderInitSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWbemProviderInitSink, IWbemProviderInitSink_Vtbl, 0x1be41571_91dd_11d1_aeb2_00c04fb68820); +::windows_core::imp::interface_hierarchy!(IWbemProviderInitSink, ::windows_core::IUnknown); impl IWbemProviderInitSink { pub unsafe fn SetStatus(&self, lstatus: i32, lflags: i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetStatus)(::windows_core::Interface::as_raw(self), lstatus, lflags).ok() } } -::windows_core::imp::interface_hierarchy!(IWbemProviderInitSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWbemProviderInitSink { - type Vtable = IWbemProviderInitSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWbemProviderInitSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1be41571_91dd_11d1_aeb2_00c04fb68820); -} #[repr(C)] #[doc(hidden)] pub struct IWbemProviderInitSink_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub SetStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lstatus: i32, lflags: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWbemQualifierSet(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWbemQualifierSet, IWbemQualifierSet_Vtbl, 0xdc12a680_737f_11cf_884d_00aa004b2e24); +::windows_core::imp::interface_hierarchy!(IWbemQualifierSet, ::windows_core::IUnknown); impl IWbemQualifierSet { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -4950,13 +4513,6 @@ impl IWbemQualifierSet { (::windows_core::Interface::vtable(self).EndEnumeration)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IWbemQualifierSet, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWbemQualifierSet { - type Vtable = IWbemQualifierSet_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWbemQualifierSet { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdc12a680_737f_11cf_884d_00aa004b2e24); -} #[repr(C)] #[doc(hidden)] pub struct IWbemQualifierSet_Vtbl { @@ -4981,9 +4537,8 @@ pub struct IWbemQualifierSet_Vtbl { Next: usize, pub EndEnumeration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWbemQuery(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWbemQuery, IWbemQuery_Vtbl, 0x81166f58_dd98_11d3_a120_00105a1f515a); +::windows_core::imp::interface_hierarchy!(IWbemQuery, ::windows_core::IUnknown); impl IWbemQuery { pub unsafe fn Empty(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Empty)(::windows_core::Interface::as_raw(self)).ok() @@ -5011,13 +4566,6 @@ impl IWbemQuery { (::windows_core::Interface::vtable(self).GetQueryInfo)(::windows_core::Interface::as_raw(self), uanalysistype, uinfoid, ubufsize, pdestbuf).ok() } } -::windows_core::imp::interface_hierarchy!(IWbemQuery, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWbemQuery { - type Vtable = IWbemQuery_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWbemQuery { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x81166f58_dd98_11d3_a120_00105a1f515a); -} #[repr(C)] #[doc(hidden)] pub struct IWbemQuery_Vtbl { @@ -5030,30 +4578,21 @@ pub struct IWbemQuery_Vtbl { pub FreeMemory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pmem: *const ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetQueryInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uanalysistype: u32, uinfoid: u32, ubufsize: u32, pdestbuf: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWbemRefresher(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWbemRefresher, IWbemRefresher_Vtbl, 0x49353c99_516b_11d1_aea6_00c04fb68820); +::windows_core::imp::interface_hierarchy!(IWbemRefresher, ::windows_core::IUnknown); impl IWbemRefresher { pub unsafe fn Refresh(&self, lflags: i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Refresh)(::windows_core::Interface::as_raw(self), lflags).ok() } } -::windows_core::imp::interface_hierarchy!(IWbemRefresher, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWbemRefresher { - type Vtable = IWbemRefresher_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWbemRefresher { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x49353c99_516b_11d1_aea6_00c04fb68820); -} #[repr(C)] #[doc(hidden)] pub struct IWbemRefresher_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Refresh: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWbemServices(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWbemServices, IWbemServices_Vtbl, 0x9556dc99_828c_11cf_a37e_00aa003240c7); +::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: ::core::option::Option<*mut ::core::option::Option>, ppresult: ::core::option::Option<*mut ::core::option::Option>) -> ::windows_core::Result<()> where @@ -5235,13 +4774,6 @@ impl IWbemServices { (::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::imp::interface_hierarchy!(IWbemServices, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWbemServices { - type Vtable = IWbemServices_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWbemServices { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9556dc99_828c_11cf_a37e_00aa003240c7); -} #[repr(C)] #[doc(hidden)] pub struct IWbemServices_Vtbl { @@ -5270,9 +4802,8 @@ pub struct IWbemServices_Vtbl { pub ExecMethod: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strobjectpath: ::std::mem::MaybeUninit<::windows_core::BSTR>, strmethodname: ::std::mem::MaybeUninit<::windows_core::BSTR>, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: *mut ::core::ffi::c_void, pinparams: *mut ::core::ffi::c_void, ppoutparams: *mut *mut ::core::ffi::c_void, ppcallresult: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ExecMethodAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strobjectpath: ::std::mem::MaybeUninit<::windows_core::BSTR>, strmethodname: ::std::mem::MaybeUninit<::windows_core::BSTR>, lflags: WBEM_GENERIC_FLAG_TYPE, pctx: *mut ::core::ffi::c_void, pinparams: *mut ::core::ffi::c_void, presponsehandler: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWbemShutdown(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWbemShutdown, IWbemShutdown_Vtbl, 0xb7b31df9_d515_11d3_a11c_00105a1f515a); +::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 @@ -5281,22 +4812,14 @@ impl IWbemShutdown { (::windows_core::Interface::vtable(self).Shutdown)(::windows_core::Interface::as_raw(self), ureason, umaxmilliseconds, pctx.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IWbemShutdown, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWbemShutdown { - type Vtable = IWbemShutdown_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWbemShutdown { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb7b31df9_d515_11d3_a11c_00105a1f515a); -} #[repr(C)] #[doc(hidden)] pub struct IWbemShutdown_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Shutdown: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ureason: i32, umaxmilliseconds: u32, pctx: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWbemStatusCodeText(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWbemStatusCodeText, IWbemStatusCodeText_Vtbl, 0xeb87e1bc_3233_11d2_aec9_00c04fb68820); +::windows_core::imp::interface_hierarchy!(IWbemStatusCodeText, ::windows_core::IUnknown); impl IWbemStatusCodeText { pub unsafe fn GetErrorCodeText(&self, hres: ::windows_core::HRESULT, localeid: u32, lflags: i32) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -5307,13 +4830,6 @@ impl IWbemStatusCodeText { (::windows_core::Interface::vtable(self).GetFacilityCodeText)(::windows_core::Interface::as_raw(self), hres, localeid, lflags, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWbemStatusCodeText, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWbemStatusCodeText { - type Vtable = IWbemStatusCodeText_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWbemStatusCodeText { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeb87e1bc_3233_11d2_aec9_00c04fb68820); -} #[repr(C)] #[doc(hidden)] pub struct IWbemStatusCodeText_Vtbl { @@ -5321,30 +4837,21 @@ pub struct IWbemStatusCodeText_Vtbl { pub GetErrorCodeText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hres: ::windows_core::HRESULT, localeid: u32, lflags: i32, messagetext: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub GetFacilityCodeText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hres: ::windows_core::HRESULT, localeid: u32, lflags: i32, messagetext: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWbemTransport(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWbemTransport, IWbemTransport_Vtbl, 0x553fe584_2156_11d0_b6ae_00aa003240c7); +::windows_core::imp::interface_hierarchy!(IWbemTransport, ::windows_core::IUnknown); impl IWbemTransport { pub unsafe fn Initialize(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Initialize)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IWbemTransport, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWbemTransport { - type Vtable = IWbemTransport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWbemTransport { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x553fe584_2156_11d0_b6ae_00aa003240c7); -} #[repr(C)] #[doc(hidden)] pub struct IWbemTransport_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWbemUnboundObjectSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWbemUnboundObjectSink, IWbemUnboundObjectSink_Vtbl, 0xe246107b_b06e_11d0_ad61_00c04fd8fdff); +::windows_core::imp::interface_hierarchy!(IWbemUnboundObjectSink, ::windows_core::IUnknown); impl IWbemUnboundObjectSink { pub unsafe fn IndicateToConsumer(&self, plogicalconsumer: P0, apobjects: &[::core::option::Option]) -> ::windows_core::Result<()> where @@ -5353,22 +4860,14 @@ impl IWbemUnboundObjectSink { (::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::imp::interface_hierarchy!(IWbemUnboundObjectSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWbemUnboundObjectSink { - type Vtable = IWbemUnboundObjectSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWbemUnboundObjectSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe246107b_b06e_11d0_ad61_00c04fd8fdff); -} #[repr(C)] #[doc(hidden)] pub struct IWbemUnboundObjectSink_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub IndicateToConsumer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plogicalconsumer: *mut ::core::ffi::c_void, lnumobjects: i32, apobjects: *const *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWbemUnsecuredApartment(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWbemUnsecuredApartment, IWbemUnsecuredApartment_Vtbl, 0x31739d04_3471_4cf4_9a7c_57a44ae71956); +::windows_core::imp::interface_hierarchy!(IWbemUnsecuredApartment, ::windows_core::IUnknown, IUnsecuredApartment); impl IWbemUnsecuredApartment { pub unsafe fn CreateObjectStub(&self, pobject: P0) -> ::windows_core::Result<::windows_core::IUnknown> where @@ -5386,13 +4885,6 @@ impl IWbemUnsecuredApartment { (::windows_core::Interface::vtable(self).CreateSinkStub)(::windows_core::Interface::as_raw(self), psink.into_param().abi(), dwflags, wszreserved.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWbemUnsecuredApartment, ::windows_core::IUnknown, IUnsecuredApartment); -unsafe impl ::windows_core::Interface for IWbemUnsecuredApartment { - type Vtable = IWbemUnsecuredApartment_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWbemUnsecuredApartment { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x31739d04_3471_4cf4_9a7c_57a44ae71956); -} #[repr(C)] #[doc(hidden)] pub struct IWbemUnsecuredApartment_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/UI/Accessibility/impl.rs b/crates/libs/windows/src/Windows/Win32/UI/Accessibility/impl.rs index 5aba7da019..8999d199ff 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Accessibility/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Accessibility/impl.rs @@ -12,7 +12,7 @@ impl IAccIdentity_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetIdentityString: GetIdentityString:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -33,7 +33,7 @@ impl IAccPropServer_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetPropValue: GetPropValue:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`, `\"Win32_UI_WindowsAndMessaging\"`"] @@ -155,7 +155,7 @@ impl IAccPropServices_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -409,7 +409,7 @@ impl IAccessible_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -472,7 +472,7 @@ impl IAccessibleEx_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -499,7 +499,7 @@ impl IAccessibleHandler_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), AccessibleObjectFromID: AccessibleObjectFromID:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -542,7 +542,7 @@ impl IAccessibleHostingElementProviders_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -605,7 +605,7 @@ impl IAccessibleWindowlessSite_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAnnotationProvider_Impl: Sized { @@ -683,7 +683,7 @@ impl IAnnotationProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICustomNavigationProvider_Impl: Sized { @@ -706,7 +706,7 @@ impl ICustomNavigationProvider_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Navigate: Navigate:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDockProvider_Impl: Sized { @@ -739,7 +739,7 @@ impl IDockProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -808,7 +808,7 @@ impl IDragProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -851,7 +851,7 @@ impl IDropTargetProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IExpandCollapseProvider_Impl: Sized { @@ -891,7 +891,7 @@ impl IExpandCollapseProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IGridItemProvider_Impl: Sized { @@ -969,7 +969,7 @@ impl IGridItemProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IGridProvider_Impl: Sized { @@ -1021,7 +1021,7 @@ impl IGridProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IInvokeProvider_Impl: Sized { @@ -1038,7 +1038,7 @@ impl IInvokeProvider_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Invoke: Invoke:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1065,7 +1065,7 @@ impl IItemContainerProvider_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), FindItemByProperty: FindItemByProperty:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1246,7 +1246,7 @@ impl ILegacyIAccessibleProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1309,7 +1309,7 @@ impl IMultipleViewProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IObjectModelProvider_Impl: Sized { @@ -1332,7 +1332,7 @@ impl IObjectModelProvider_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetUnderlyingObjectModel: GetUnderlyingObjectModel:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IProxyProviderWinEventHandler_Impl: Sized { @@ -1349,7 +1349,7 @@ impl IProxyProviderWinEventHandler_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), RespondToWinEvent: RespondToWinEvent:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1387,7 +1387,7 @@ impl IProxyProviderWinEventSink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRangeValueProvider_Impl: Sized { @@ -1485,7 +1485,7 @@ impl IRangeValueProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1516,7 +1516,7 @@ impl IRawElementProviderAdviseEvents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1605,7 +1605,7 @@ impl IRawElementProviderFragment_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRawElementProviderFragmentRoot_Impl: Sized { @@ -1644,7 +1644,7 @@ impl IRawElementProviderFragmentRoot_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1671,7 +1671,7 @@ impl IRawElementProviderHostingAccessibles_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetEmbeddedAccessibles: GetEmbeddedAccessibles:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRawElementProviderHwndOverride_Impl: Sized { @@ -1697,7 +1697,7 @@ impl IRawElementProviderHwndOverride_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1766,7 +1766,7 @@ impl IRawElementProviderSimple_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1787,7 +1787,7 @@ impl IRawElementProviderSimple2_Vtbl { Self { base__: IRawElementProviderSimple_Vtbl::new::(), ShowContextMenu: ShowContextMenu:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1814,7 +1814,7 @@ impl IRawElementProviderSimple3_Vtbl { Self { base__: IRawElementProviderSimple2_Vtbl::new::(), GetMetadataValue: GetMetadataValue:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1857,7 +1857,7 @@ impl IRawElementProviderWindowlessSite_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRichEditUiaInformation_Impl: Sized { @@ -1884,7 +1884,7 @@ impl IRichEditUiaInformation_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRicheditWindowlessAccessibility_Impl: Sized { @@ -1907,7 +1907,7 @@ impl IRicheditWindowlessAccessibility_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CreateProvider: CreateProvider:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IScrollItemProvider_Impl: Sized { @@ -1924,7 +1924,7 @@ impl IScrollItemProvider_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), ScrollIntoView: ScrollIntoView:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IScrollProvider_Impl: Sized { @@ -2029,7 +2029,7 @@ impl IScrollProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISelectionItemProvider_Impl: Sized { @@ -2089,7 +2089,7 @@ impl ISelectionItemProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2145,7 +2145,7 @@ impl ISelectionProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2214,7 +2214,7 @@ impl ISelectionProvider2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2270,7 +2270,7 @@ impl ISpreadsheetItemProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISpreadsheetProvider_Impl: Sized { @@ -2293,7 +2293,7 @@ impl ISpreadsheetProvider_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetItemByName: GetItemByName:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IStylesProvider_Impl: Sized { @@ -2397,7 +2397,7 @@ impl IStylesProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISynchronizedInputProvider_Impl: Sized { @@ -2424,7 +2424,7 @@ impl ISynchronizedInputProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2467,7 +2467,7 @@ impl ITableItemProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2523,7 +2523,7 @@ impl ITableProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITextChildProvider_Impl: Sized { @@ -2562,7 +2562,7 @@ impl ITextChildProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2605,7 +2605,7 @@ impl ITextEditProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2700,7 +2700,7 @@ impl ITextProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2737,7 +2737,7 @@ impl ITextProvider2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2952,7 +2952,7 @@ impl ITextRangeProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2973,7 +2973,7 @@ impl ITextRangeProvider2_Vtbl { Self { base__: ITextRangeProvider_Vtbl::new::(), ShowContextMenu: ShowContextMenu:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IToggleProvider_Impl: Sized { @@ -3006,7 +3006,7 @@ impl IToggleProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITransformProvider_Impl: Sized { @@ -3079,7 +3079,7 @@ impl ITransformProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITransformProvider2_Impl: Sized + ITransformProvider_Impl { @@ -3158,7 +3158,7 @@ impl ITransformProvider2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3806,7 +3806,7 @@ impl IUIAutomation_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3883,7 +3883,7 @@ impl IUIAutomation2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3914,7 +3914,7 @@ impl IUIAutomation3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3945,7 +3945,7 @@ impl IUIAutomation4_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3976,7 +3976,7 @@ impl IUIAutomation5_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4074,7 +4074,7 @@ impl IUIAutomation6_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IUIAutomationActiveTextPositionChangedEventHandler_Impl: Sized { @@ -4094,7 +4094,7 @@ impl IUIAutomationActiveTextPositionChangedEventHandler_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -4144,7 +4144,7 @@ impl IUIAutomationAndCondition_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IUIAutomationAnnotationPattern_Impl: Sized { @@ -4287,7 +4287,7 @@ impl IUIAutomationAnnotationPattern_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUIAutomationBoolCondition_Impl: Sized + IUIAutomationCondition_Impl { @@ -4310,7 +4310,7 @@ impl IUIAutomationBoolCondition_Vtbl { Self { base__: IUIAutomationCondition_Vtbl::new::(), BooleanValue: BooleanValue:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IUIAutomationCacheRequest_Impl: Sized { @@ -4410,7 +4410,7 @@ impl IUIAutomationCacheRequest_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4431,7 +4431,7 @@ impl IUIAutomationChangesEventHandler_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), HandleChangesEvent: HandleChangesEvent:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUIAutomationCondition_Impl: Sized {} @@ -4441,7 +4441,7 @@ impl IUIAutomationCondition_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUIAutomationCustomNavigationPattern_Impl: Sized { @@ -4464,7 +4464,7 @@ impl IUIAutomationCustomNavigationPattern_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Navigate: Navigate:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUIAutomationDockPattern_Impl: Sized { @@ -4510,7 +4510,7 @@ impl IUIAutomationDockPattern_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -4631,7 +4631,7 @@ impl IUIAutomationDragPattern_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -4700,7 +4700,7 @@ impl IUIAutomationDropTargetPattern_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5759,7 +5759,7 @@ impl IUIAutomationElement_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5854,7 +5854,7 @@ impl IUIAutomationElement2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5904,7 +5904,7 @@ impl IUIAutomationElement3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6051,7 +6051,7 @@ impl IUIAutomationElement4_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6120,7 +6120,7 @@ impl IUIAutomationElement5_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6163,7 +6163,7 @@ impl IUIAutomationElement6_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6245,7 +6245,7 @@ impl IUIAutomationElement7_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6288,7 +6288,7 @@ impl IUIAutomationElement8_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6331,7 +6331,7 @@ impl IUIAutomationElement9_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IUIAutomationElementArray_Impl: Sized { @@ -6370,7 +6370,7 @@ impl IUIAutomationElementArray_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUIAutomationEventHandler_Impl: Sized { @@ -6387,7 +6387,7 @@ impl IUIAutomationEventHandler_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), HandleAutomationEvent: HandleAutomationEvent:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUIAutomationEventHandlerGroup_Impl: Sized { @@ -6449,7 +6449,7 @@ impl IUIAutomationEventHandlerGroup_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUIAutomationExpandCollapsePattern_Impl: Sized { @@ -6502,7 +6502,7 @@ impl IUIAutomationExpandCollapsePattern_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUIAutomationFocusChangedEventHandler_Impl: Sized { @@ -6519,7 +6519,7 @@ impl IUIAutomationFocusChangedEventHandler_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), HandleFocusChangedEvent: HandleFocusChangedEvent:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUIAutomationGridItemPattern_Impl: Sized { @@ -6662,7 +6662,7 @@ impl IUIAutomationGridItemPattern_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUIAutomationGridPattern_Impl: Sized { @@ -6740,7 +6740,7 @@ impl IUIAutomationGridPattern_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUIAutomationInvokePattern_Impl: Sized { @@ -6757,7 +6757,7 @@ impl IUIAutomationInvokePattern_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Invoke: Invoke:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6784,7 +6784,7 @@ impl IUIAutomationItemContainerPattern_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), FindItemByProperty: FindItemByProperty:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -7095,7 +7095,7 @@ impl IUIAutomationLegacyIAccessiblePattern_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -7184,7 +7184,7 @@ impl IUIAutomationMultipleViewPattern_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUIAutomationNotCondition_Impl: Sized + IUIAutomationCondition_Impl { @@ -7207,7 +7207,7 @@ impl IUIAutomationNotCondition_Vtbl { Self { base__: IUIAutomationCondition_Vtbl::new::(), GetChild: GetChild:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IUIAutomationNotificationEventHandler_Impl: Sized { @@ -7224,7 +7224,7 @@ impl IUIAutomationNotificationEventHandler_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), HandleNotificationEvent: HandleNotificationEvent:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUIAutomationObjectModelPattern_Impl: Sized { @@ -7247,7 +7247,7 @@ impl IUIAutomationObjectModelPattern_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetUnderlyingObjectModel: GetUnderlyingObjectModel:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -7297,7 +7297,7 @@ impl IUIAutomationOrCondition_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IUIAutomationPatternHandler_Impl: Sized { @@ -7330,7 +7330,7 @@ impl IUIAutomationPatternHandler_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUIAutomationPatternInstance_Impl: Sized { @@ -7357,7 +7357,7 @@ impl IUIAutomationPatternInstance_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -7381,7 +7381,7 @@ impl IUIAutomationPropertyChangedEventHandler_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -7437,7 +7437,7 @@ impl IUIAutomationPropertyCondition_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IUIAutomationProxyFactory_Impl: Sized { @@ -7476,7 +7476,7 @@ impl IUIAutomationProxyFactory_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -7626,7 +7626,7 @@ impl IUIAutomationProxyFactoryEntry_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -7724,7 +7724,7 @@ impl IUIAutomationProxyFactoryMapping_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUIAutomationRangeValuePattern_Impl: Sized { @@ -7900,7 +7900,7 @@ impl IUIAutomationRangeValuePattern_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUIAutomationRegistrar_Impl: Sized { @@ -7946,7 +7946,7 @@ impl IUIAutomationRegistrar_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUIAutomationScrollItemPattern_Impl: Sized { @@ -7963,7 +7963,7 @@ impl IUIAutomationScrollItemPattern_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), ScrollIntoView: ScrollIntoView:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUIAutomationScrollPattern_Impl: Sized { @@ -8146,7 +8146,7 @@ impl IUIAutomationScrollPattern_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUIAutomationSelectionItemPattern_Impl: Sized { @@ -8232,7 +8232,7 @@ impl IUIAutomationSelectionItemPattern_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUIAutomationSelectionPattern_Impl: Sized { @@ -8323,7 +8323,7 @@ impl IUIAutomationSelectionPattern_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUIAutomationSelectionPattern2_Impl: Sized + IUIAutomationSelectionPattern_Impl { @@ -8440,7 +8440,7 @@ impl IUIAutomationSelectionPattern2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -8535,7 +8535,7 @@ impl IUIAutomationSpreadsheetItemPattern_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUIAutomationSpreadsheetPattern_Impl: Sized { @@ -8558,7 +8558,7 @@ impl IUIAutomationSpreadsheetPattern_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetItemByName: GetItemByName:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -8582,7 +8582,7 @@ impl IUIAutomationStructureChangedEventHandler_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUIAutomationStylesPattern_Impl: Sized { @@ -8791,7 +8791,7 @@ impl IUIAutomationStylesPattern_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUIAutomationSynchronizedInputPattern_Impl: Sized { @@ -8818,7 +8818,7 @@ impl IUIAutomationSynchronizedInputPattern_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUIAutomationTableItemPattern_Impl: Sized { @@ -8883,7 +8883,7 @@ impl IUIAutomationTableItemPattern_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUIAutomationTablePattern_Impl: Sized { @@ -8974,7 +8974,7 @@ impl IUIAutomationTablePattern_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUIAutomationTextChildPattern_Impl: Sized { @@ -9013,7 +9013,7 @@ impl IUIAutomationTextChildPattern_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUIAutomationTextEditPattern_Impl: Sized + IUIAutomationTextPattern_Impl { @@ -9052,7 +9052,7 @@ impl IUIAutomationTextEditPattern_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -9076,7 +9076,7 @@ impl IUIAutomationTextEditTextChangedEventHandler_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUIAutomationTextPattern_Impl: Sized { @@ -9167,7 +9167,7 @@ impl IUIAutomationTextPattern_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUIAutomationTextPattern2_Impl: Sized + IUIAutomationTextPattern_Impl { @@ -9200,7 +9200,7 @@ impl IUIAutomationTextPattern2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -9415,7 +9415,7 @@ impl IUIAutomationTextRange_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -9436,7 +9436,7 @@ impl IUIAutomationTextRange2_Vtbl { Self { base__: IUIAutomationTextRange_Vtbl::new::(), ShowContextMenu: ShowContextMenu:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -9492,7 +9492,7 @@ impl IUIAutomationTextRange3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IUIAutomationTextRangeArray_Impl: Sized { @@ -9531,7 +9531,7 @@ impl IUIAutomationTextRangeArray_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUIAutomationTogglePattern_Impl: Sized { @@ -9577,7 +9577,7 @@ impl IUIAutomationTogglePattern_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUIAutomationTransformPattern_Impl: Sized { @@ -9689,7 +9689,7 @@ impl IUIAutomationTransformPattern_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUIAutomationTransformPattern2_Impl: Sized + IUIAutomationTransformPattern_Impl { @@ -9820,7 +9820,7 @@ impl IUIAutomationTransformPattern2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IUIAutomationTreeWalker_Impl: Sized { @@ -10002,7 +10002,7 @@ impl IUIAutomationTreeWalker_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUIAutomationValuePattern_Impl: Sized { @@ -10074,7 +10074,7 @@ impl IUIAutomationValuePattern_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUIAutomationVirtualizedItemPattern_Impl: Sized { @@ -10091,7 +10091,7 @@ impl IUIAutomationVirtualizedItemPattern_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Realize: Realize:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUIAutomationWindowPattern_Impl: Sized { @@ -10287,7 +10287,7 @@ impl IUIAutomationWindowPattern_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IValueProvider_Impl: Sized { @@ -10333,7 +10333,7 @@ impl IValueProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVirtualizedItemProvider_Impl: Sized { @@ -10350,7 +10350,7 @@ impl IVirtualizedItemProvider_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Realize: Realize:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWindowProvider_Impl: Sized { @@ -10468,6 +10468,6 @@ impl IWindowProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 04170a73f1..c558f76466 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Accessibility/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Accessibility/mod.rs @@ -1020,30 +1020,21 @@ where ::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() } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAccIdentity(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAccIdentity, IAccIdentity_Vtbl, 0x7852b78d_1cfd_41c1_a615_9c0c85960b5f); +::windows_core::imp::interface_hierarchy!(IAccIdentity, ::windows_core::IUnknown); impl IAccIdentity { pub unsafe fn GetIdentityString(&self, dwidchild: u32, ppidstring: *mut *mut u8, pdwidstringlen: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetIdentityString)(::windows_core::Interface::as_raw(self), dwidchild, ppidstring, pdwidstringlen).ok() } } -::windows_core::imp::interface_hierarchy!(IAccIdentity, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAccIdentity { - type Vtable = IAccIdentity_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAccIdentity { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7852b78d_1cfd_41c1_a615_9c0c85960b5f); -} #[repr(C)] #[doc(hidden)] pub struct IAccIdentity_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetIdentityString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwidchild: u32, ppidstring: *mut *mut u8, pdwidstringlen: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAccPropServer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAccPropServer, IAccPropServer_Vtbl, 0x76c0dbbb_15e0_4e7b_b61b_20eeea2001e0); +::windows_core::imp::interface_hierarchy!(IAccPropServer, ::windows_core::IUnknown); impl IAccPropServer { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -1051,13 +1042,6 @@ impl IAccPropServer { (::windows_core::Interface::vtable(self).GetPropValue)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pidstring.as_ptr()), pidstring.len().try_into().unwrap(), ::core::mem::transmute(idprop), pvarvalue, pfhasprop).ok() } } -::windows_core::imp::interface_hierarchy!(IAccPropServer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAccPropServer { - type Vtable = IAccPropServer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAccPropServer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x76c0dbbb_15e0_4e7b_b61b_20eeea2001e0); -} #[repr(C)] #[doc(hidden)] pub struct IAccPropServer_Vtbl { @@ -1067,9 +1051,8 @@ pub struct IAccPropServer_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] GetPropValue: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAccPropServices(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAccPropServices, IAccPropServices_Vtbl, 0x6e26e776_04f0_495d_80e4_3330352e3169); +::windows_core::imp::interface_hierarchy!(IAccPropServices, ::windows_core::IUnknown); impl IAccPropServices { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -1170,13 +1153,6 @@ impl IAccPropServices { (::windows_core::Interface::vtable(self).DecomposeHmenuIdentityString)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pidstring.as_ptr()), pidstring.len().try_into().unwrap(), phmenu, pidchild).ok() } } -::windows_core::imp::interface_hierarchy!(IAccPropServices, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAccPropServices { - type Vtable = IAccPropServices_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAccPropServices { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6e26e776_04f0_495d_80e4_3330352e3169); -} #[repr(C)] #[doc(hidden)] pub struct IAccPropServices_Vtbl { @@ -1221,11 +1197,15 @@ pub struct IAccPropServices_Vtbl { #[cfg(not(feature = "Win32_UI_WindowsAndMessaging"))] DecomposeHmenuIdentityString: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAccessible(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IAccessible, + IAccessible_Vtbl, + 0x618736e0_3c3d_11cf_810c_00aa00389b71 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IAccessible, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IAccessible { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1354,16 +1334,6 @@ impl IAccessible { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IAccessible, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IAccessible { - type Vtable = IAccessible_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IAccessible { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x618736e0_3c3d_11cf_810c_00aa00389b71); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IAccessible_Vtbl { @@ -1450,9 +1420,8 @@ pub struct IAccessible_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] put_accValue: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAccessibleEx(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAccessibleEx, IAccessibleEx_Vtbl, 0xf8b80ada_2c44_48d0_89be_5ff23c9cd875); +::windows_core::imp::interface_hierarchy!(IAccessibleEx, ::windows_core::IUnknown); impl IAccessibleEx { pub unsafe fn GetObjectForChild(&self, idchild: i32) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1477,13 +1446,6 @@ impl IAccessibleEx { (::windows_core::Interface::vtable(self).ConvertReturnedElement)(::windows_core::Interface::as_raw(self), pin.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAccessibleEx, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAccessibleEx { - type Vtable = IAccessibleEx_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAccessibleEx { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf8b80ada_2c44_48d0_89be_5ff23c9cd875); -} #[repr(C)] #[doc(hidden)] pub struct IAccessibleEx_Vtbl { @@ -1499,9 +1461,8 @@ pub struct IAccessibleEx_Vtbl { GetRuntimeId: usize, pub ConvertReturnedElement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pin: *mut ::core::ffi::c_void, ppretvalout: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAccessibleHandler(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAccessibleHandler, IAccessibleHandler_Vtbl, 0x03022430_abc4_11d0_bde2_00aa001a1953); +::windows_core::imp::interface_hierarchy!(IAccessibleHandler, ::windows_core::IUnknown); impl IAccessibleHandler { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -1510,13 +1471,6 @@ impl IAccessibleHandler { (::windows_core::Interface::vtable(self).AccessibleObjectFromID)(::windows_core::Interface::as_raw(self), hwnd, lobjectid, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAccessibleHandler, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAccessibleHandler { - type Vtable = IAccessibleHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAccessibleHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x03022430_abc4_11d0_bde2_00aa001a1953); -} #[repr(C)] #[doc(hidden)] pub struct IAccessibleHandler_Vtbl { @@ -1526,9 +1480,8 @@ pub struct IAccessibleHandler_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] AccessibleObjectFromID: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAccessibleHostingElementProviders(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAccessibleHostingElementProviders, IAccessibleHostingElementProviders_Vtbl, 0x33ac331b_943e_4020_b295_db37784974a3); +::windows_core::imp::interface_hierarchy!(IAccessibleHostingElementProviders, ::windows_core::IUnknown); impl IAccessibleHostingElementProviders { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -1544,13 +1497,6 @@ impl IAccessibleHostingElementProviders { (::windows_core::Interface::vtable(self).GetObjectIdForProvider)(::windows_core::Interface::as_raw(self), pprovider.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAccessibleHostingElementProviders, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAccessibleHostingElementProviders { - type Vtable = IAccessibleHostingElementProviders_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAccessibleHostingElementProviders { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x33ac331b_943e_4020_b295_db37784974a3); -} #[repr(C)] #[doc(hidden)] pub struct IAccessibleHostingElementProviders_Vtbl { @@ -1561,9 +1507,8 @@ pub struct IAccessibleHostingElementProviders_Vtbl { GetEmbeddedFragmentRoots: usize, pub GetObjectIdForProvider: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pprovider: *mut ::core::ffi::c_void, pidobject: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAccessibleWindowlessSite(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAccessibleWindowlessSite, IAccessibleWindowlessSite_Vtbl, 0xbf3abd9c_76da_4389_9eb6_1427d25abab7); +::windows_core::imp::interface_hierarchy!(IAccessibleWindowlessSite, ::windows_core::IUnknown); impl IAccessibleWindowlessSite { pub unsafe fn AcquireObjectIdRange(&self, rangesize: i32, prangeowner: P0) -> ::windows_core::Result where @@ -1594,13 +1539,6 @@ impl IAccessibleWindowlessSite { (::windows_core::Interface::vtable(self).GetParentAccessible)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAccessibleWindowlessSite, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAccessibleWindowlessSite { - type Vtable = IAccessibleWindowlessSite_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAccessibleWindowlessSite { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbf3abd9c_76da_4389_9eb6_1427d25abab7); -} #[repr(C)] #[doc(hidden)] pub struct IAccessibleWindowlessSite_Vtbl { @@ -1616,9 +1554,8 @@ pub struct IAccessibleWindowlessSite_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetParentAccessible: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAnnotationProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAnnotationProvider, IAnnotationProvider_Vtbl, 0xf95c7e80_bd63_4601_9782_445ebff011fc); +::windows_core::imp::interface_hierarchy!(IAnnotationProvider, ::windows_core::IUnknown); impl IAnnotationProvider { pub unsafe fn AnnotationTypeId(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1641,13 +1578,6 @@ impl IAnnotationProvider { (::windows_core::Interface::vtable(self).Target)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAnnotationProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAnnotationProvider { - type Vtable = IAnnotationProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAnnotationProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf95c7e80_bd63_4601_9782_445ebff011fc); -} #[repr(C)] #[doc(hidden)] pub struct IAnnotationProvider_Vtbl { @@ -1658,31 +1588,22 @@ pub struct IAnnotationProvider_Vtbl { pub DateTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub Target: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICustomNavigationProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICustomNavigationProvider, ICustomNavigationProvider_Vtbl, 0x2062a28a_8c07_4b94_8e12_7037c622aeb8); +::windows_core::imp::interface_hierarchy!(ICustomNavigationProvider, ::windows_core::IUnknown); impl ICustomNavigationProvider { pub unsafe fn Navigate(&self, direction: NavigateDirection) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).Navigate)(::windows_core::Interface::as_raw(self), direction, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ICustomNavigationProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICustomNavigationProvider { - type Vtable = ICustomNavigationProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICustomNavigationProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2062a28a_8c07_4b94_8e12_7037c622aeb8); -} #[repr(C)] #[doc(hidden)] pub struct ICustomNavigationProvider_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Navigate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, direction: NavigateDirection, pretval: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDockProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDockProvider, IDockProvider_Vtbl, 0x159bc72c_4ad3_485e_9637_d7052edf0146); +::windows_core::imp::interface_hierarchy!(IDockProvider, ::windows_core::IUnknown); impl IDockProvider { pub unsafe fn SetDockPosition(&self, dockposition: DockPosition) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetDockPosition)(::windows_core::Interface::as_raw(self), dockposition).ok() @@ -1692,13 +1613,6 @@ impl IDockProvider { (::windows_core::Interface::vtable(self).DockPosition)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDockProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDockProvider { - type Vtable = IDockProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDockProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x159bc72c_4ad3_485e_9637_d7052edf0146); -} #[repr(C)] #[doc(hidden)] pub struct IDockProvider_Vtbl { @@ -1706,9 +1620,8 @@ pub struct IDockProvider_Vtbl { pub SetDockPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dockposition: DockPosition) -> ::windows_core::HRESULT, pub DockPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pretval: *mut DockPosition) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDragProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDragProvider, IDragProvider_Vtbl, 0x6aa7bbbb_7ff9_497d_904f_d20b897929d8); +::windows_core::imp::interface_hierarchy!(IDragProvider, ::windows_core::IUnknown); impl IDragProvider { pub unsafe fn IsGrabbed(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1731,13 +1644,6 @@ impl IDragProvider { (::windows_core::Interface::vtable(self).GetGrabbedItems)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDragProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDragProvider { - type Vtable = IDragProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDragProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6aa7bbbb_7ff9_497d_904f_d20b897929d8); -} #[repr(C)] #[doc(hidden)] pub struct IDragProvider_Vtbl { @@ -1753,9 +1659,8 @@ pub struct IDragProvider_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetGrabbedItems: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDropTargetProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDropTargetProvider, IDropTargetProvider_Vtbl, 0xbae82bfd_358a_481c_85a0_d8b4d90a5d61); +::windows_core::imp::interface_hierarchy!(IDropTargetProvider, ::windows_core::IUnknown); impl IDropTargetProvider { pub unsafe fn DropTargetEffect(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -1768,13 +1673,6 @@ impl IDropTargetProvider { (::windows_core::Interface::vtable(self).DropTargetEffects)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDropTargetProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDropTargetProvider { - type Vtable = IDropTargetProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDropTargetProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbae82bfd_358a_481c_85a0_d8b4d90a5d61); -} #[repr(C)] #[doc(hidden)] pub struct IDropTargetProvider_Vtbl { @@ -1785,9 +1683,8 @@ pub struct IDropTargetProvider_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] DropTargetEffects: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IExpandCollapseProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IExpandCollapseProvider, IExpandCollapseProvider_Vtbl, 0xd847d3a5_cab0_4a98_8c32_ecb45c59ad24); +::windows_core::imp::interface_hierarchy!(IExpandCollapseProvider, ::windows_core::IUnknown); impl IExpandCollapseProvider { pub unsafe fn Expand(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Expand)(::windows_core::Interface::as_raw(self)).ok() @@ -1800,13 +1697,6 @@ impl IExpandCollapseProvider { (::windows_core::Interface::vtable(self).ExpandCollapseState)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IExpandCollapseProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IExpandCollapseProvider { - type Vtable = IExpandCollapseProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IExpandCollapseProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd847d3a5_cab0_4a98_8c32_ecb45c59ad24); -} #[repr(C)] #[doc(hidden)] pub struct IExpandCollapseProvider_Vtbl { @@ -1815,9 +1705,8 @@ pub struct IExpandCollapseProvider_Vtbl { pub Collapse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ExpandCollapseState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pretval: *mut ExpandCollapseState) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGridItemProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IGridItemProvider, IGridItemProvider_Vtbl, 0xd02541f1_fb81_4d64_ae32_f520f8a6dbd1); +::windows_core::imp::interface_hierarchy!(IGridItemProvider, ::windows_core::IUnknown); impl IGridItemProvider { pub unsafe fn Row(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1840,13 +1729,6 @@ impl IGridItemProvider { (::windows_core::Interface::vtable(self).ContainingGrid)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IGridItemProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGridItemProvider { - type Vtable = IGridItemProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGridItemProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd02541f1_fb81_4d64_ae32_f520f8a6dbd1); -} #[repr(C)] #[doc(hidden)] pub struct IGridItemProvider_Vtbl { @@ -1857,9 +1739,8 @@ pub struct IGridItemProvider_Vtbl { pub ColumnSpan: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pretval: *mut i32) -> ::windows_core::HRESULT, pub ContainingGrid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pretval: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGridProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IGridProvider, IGridProvider_Vtbl, 0xb17d6187_0907_464b_a168_0ef17a1572b1); +::windows_core::imp::interface_hierarchy!(IGridProvider, ::windows_core::IUnknown); impl IGridProvider { pub unsafe fn GetItem(&self, row: i32, column: i32) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1874,13 +1755,6 @@ impl IGridProvider { (::windows_core::Interface::vtable(self).ColumnCount)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IGridProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGridProvider { - type Vtable = IGridProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGridProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb17d6187_0907_464b_a168_0ef17a1572b1); -} #[repr(C)] #[doc(hidden)] pub struct IGridProvider_Vtbl { @@ -1889,30 +1763,21 @@ pub struct IGridProvider_Vtbl { pub RowCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pretval: *mut i32) -> ::windows_core::HRESULT, pub ColumnCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pretval: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInvokeProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IInvokeProvider, IInvokeProvider_Vtbl, 0x54fcb24b_e18e_47a2_b4d3_eccbe77599a2); +::windows_core::imp::interface_hierarchy!(IInvokeProvider, ::windows_core::IUnknown); impl IInvokeProvider { pub unsafe fn Invoke(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Invoke)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IInvokeProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInvokeProvider { - type Vtable = IInvokeProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInvokeProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x54fcb24b_e18e_47a2_b4d3_eccbe77599a2); -} #[repr(C)] #[doc(hidden)] pub struct IInvokeProvider_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Invoke: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IItemContainerProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IItemContainerProvider, IItemContainerProvider_Vtbl, 0xe747770b_39ce_4382_ab30_d8fb3f336f24); +::windows_core::imp::interface_hierarchy!(IItemContainerProvider, ::windows_core::IUnknown); impl IItemContainerProvider { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -1924,13 +1789,6 @@ impl IItemContainerProvider { (::windows_core::Interface::vtable(self).FindItemByProperty)(::windows_core::Interface::as_raw(self), pstartafter.into_param().abi(), propertyid, ::core::mem::transmute(value), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IItemContainerProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IItemContainerProvider { - type Vtable = IItemContainerProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IItemContainerProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe747770b_39ce_4382_ab30_d8fb3f336f24); -} #[repr(C)] #[doc(hidden)] pub struct IItemContainerProvider_Vtbl { @@ -1940,9 +1798,8 @@ pub struct IItemContainerProvider_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] FindItemByProperty: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILegacyIAccessibleProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ILegacyIAccessibleProvider, ILegacyIAccessibleProvider_Vtbl, 0xe44c3566_915d_4070_99c6_047bff5a08f5); +::windows_core::imp::interface_hierarchy!(ILegacyIAccessibleProvider, ::windows_core::IUnknown); impl ILegacyIAccessibleProvider { pub unsafe fn Select(&self, flagsselect: i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Select)(::windows_core::Interface::as_raw(self), flagsselect).ok() @@ -2005,13 +1862,6 @@ impl ILegacyIAccessibleProvider { (::windows_core::Interface::vtable(self).DefaultAction)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ILegacyIAccessibleProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILegacyIAccessibleProvider { - type Vtable = ILegacyIAccessibleProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILegacyIAccessibleProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe44c3566_915d_4070_99c6_047bff5a08f5); -} #[repr(C)] #[doc(hidden)] pub struct ILegacyIAccessibleProvider_Vtbl { @@ -2037,9 +1887,8 @@ pub struct ILegacyIAccessibleProvider_Vtbl { GetSelection: usize, pub DefaultAction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszdefaultaction: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMultipleViewProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMultipleViewProvider, IMultipleViewProvider_Vtbl, 0x6278cab1_b556_4a1a_b4e0_418acc523201); +::windows_core::imp::interface_hierarchy!(IMultipleViewProvider, ::windows_core::IUnknown); impl IMultipleViewProvider { pub unsafe fn GetViewName(&self, viewid: i32) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -2059,13 +1908,6 @@ impl IMultipleViewProvider { (::windows_core::Interface::vtable(self).GetSupportedViews)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMultipleViewProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMultipleViewProvider { - type Vtable = IMultipleViewProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMultipleViewProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6278cab1_b556_4a1a_b4e0_418acc523201); -} #[repr(C)] #[doc(hidden)] pub struct IMultipleViewProvider_Vtbl { @@ -2078,31 +1920,22 @@ pub struct IMultipleViewProvider_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetSupportedViews: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IObjectModelProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IObjectModelProvider, IObjectModelProvider_Vtbl, 0x3ad86ebd_f5ef_483d_bb18_b1042a475d64); +::windows_core::imp::interface_hierarchy!(IObjectModelProvider, ::windows_core::IUnknown); impl IObjectModelProvider { pub unsafe fn GetUnderlyingObjectModel(&self) -> ::windows_core::Result<::windows_core::IUnknown> { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetUnderlyingObjectModel)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IObjectModelProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IObjectModelProvider { - type Vtable = IObjectModelProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IObjectModelProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3ad86ebd_f5ef_483d_bb18_b1042a475d64); -} #[repr(C)] #[doc(hidden)] pub struct IObjectModelProvider_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetUnderlyingObjectModel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppunknown: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProxyProviderWinEventHandler(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IProxyProviderWinEventHandler, IProxyProviderWinEventHandler_Vtbl, 0x89592ad4_f4e0_43d5_a3b6_bad7e111b435); +::windows_core::imp::interface_hierarchy!(IProxyProviderWinEventHandler, ::windows_core::IUnknown); impl IProxyProviderWinEventHandler { pub unsafe fn RespondToWinEvent(&self, idwinevent: u32, hwnd: P0, idobject: i32, idchild: i32, psink: P1) -> ::windows_core::Result<()> where @@ -2112,22 +1945,14 @@ impl IProxyProviderWinEventHandler { (::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::imp::interface_hierarchy!(IProxyProviderWinEventHandler, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProxyProviderWinEventHandler { - type Vtable = IProxyProviderWinEventHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProxyProviderWinEventHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x89592ad4_f4e0_43d5_a3b6_bad7e111b435); -} #[repr(C)] #[doc(hidden)] pub struct IProxyProviderWinEventHandler_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub RespondToWinEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, idwinevent: u32, hwnd: super::super::Foundation::HWND, idobject: i32, idchild: i32, psink: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProxyProviderWinEventSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IProxyProviderWinEventSink, IProxyProviderWinEventSink_Vtbl, 0x4fd82b78_a43e_46ac_9803_0a6969c7c183); +::windows_core::imp::interface_hierarchy!(IProxyProviderWinEventSink, ::windows_core::IUnknown); impl IProxyProviderWinEventSink { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -2152,13 +1977,6 @@ impl IProxyProviderWinEventSink { (::windows_core::Interface::vtable(self).AddStructureChangedEvent)(::windows_core::Interface::as_raw(self), pprovider.into_param().abi(), structurechangetype, runtimeid).ok() } } -::windows_core::imp::interface_hierarchy!(IProxyProviderWinEventSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProxyProviderWinEventSink { - type Vtable = IProxyProviderWinEventSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProxyProviderWinEventSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4fd82b78_a43e_46ac_9803_0a6969c7c183); -} #[repr(C)] #[doc(hidden)] pub struct IProxyProviderWinEventSink_Vtbl { @@ -2173,9 +1991,8 @@ pub struct IProxyProviderWinEventSink_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] AddStructureChangedEvent: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRangeValueProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRangeValueProvider, IRangeValueProvider_Vtbl, 0x36dc7aef_33e6_4691_afe1_2be7274b3d33); +::windows_core::imp::interface_hierarchy!(IRangeValueProvider, ::windows_core::IUnknown); impl IRangeValueProvider { pub unsafe fn SetValue(&self, val: f64) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetValue)(::windows_core::Interface::as_raw(self), val).ok() @@ -2205,13 +2022,6 @@ impl IRangeValueProvider { (::windows_core::Interface::vtable(self).SmallChange)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IRangeValueProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRangeValueProvider { - type Vtable = IRangeValueProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRangeValueProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x36dc7aef_33e6_4691_afe1_2be7274b3d33); -} #[repr(C)] #[doc(hidden)] pub struct IRangeValueProvider_Vtbl { @@ -2224,9 +2034,8 @@ pub struct IRangeValueProvider_Vtbl { pub LargeChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pretval: *mut f64) -> ::windows_core::HRESULT, pub SmallChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pretval: *mut f64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRawElementProviderAdviseEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRawElementProviderAdviseEvents, IRawElementProviderAdviseEvents_Vtbl, 0xa407b27b_0f6d_4427_9292_473c7bf93258); +::windows_core::imp::interface_hierarchy!(IRawElementProviderAdviseEvents, ::windows_core::IUnknown); impl IRawElementProviderAdviseEvents { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -2239,13 +2048,6 @@ impl IRawElementProviderAdviseEvents { (::windows_core::Interface::vtable(self).AdviseEventRemoved)(::windows_core::Interface::as_raw(self), eventid, propertyids).ok() } } -::windows_core::imp::interface_hierarchy!(IRawElementProviderAdviseEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRawElementProviderAdviseEvents { - type Vtable = IRawElementProviderAdviseEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRawElementProviderAdviseEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa407b27b_0f6d_4427_9292_473c7bf93258); -} #[repr(C)] #[doc(hidden)] pub struct IRawElementProviderAdviseEvents_Vtbl { @@ -2259,9 +2061,8 @@ pub struct IRawElementProviderAdviseEvents_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] AdviseEventRemoved: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRawElementProviderFragment(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRawElementProviderFragment, IRawElementProviderFragment_Vtbl, 0xf7063da8_8359_439c_9297_bbc5299a7d87); +::windows_core::imp::interface_hierarchy!(IRawElementProviderFragment, ::windows_core::IUnknown); impl IRawElementProviderFragment { pub unsafe fn Navigate(&self, direction: NavigateDirection) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2291,13 +2092,6 @@ impl IRawElementProviderFragment { (::windows_core::Interface::vtable(self).FragmentRoot)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IRawElementProviderFragment, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRawElementProviderFragment { - type Vtable = IRawElementProviderFragment_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRawElementProviderFragment { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf7063da8_8359_439c_9297_bbc5299a7d87); -} #[repr(C)] #[doc(hidden)] pub struct IRawElementProviderFragment_Vtbl { @@ -2315,9 +2109,8 @@ pub struct IRawElementProviderFragment_Vtbl { pub SetFocus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub FragmentRoot: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pretval: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRawElementProviderFragmentRoot(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRawElementProviderFragmentRoot, IRawElementProviderFragmentRoot_Vtbl, 0x620ce2a5_ab8f_40a9_86cb_de3c75599b58); +::windows_core::imp::interface_hierarchy!(IRawElementProviderFragmentRoot, ::windows_core::IUnknown); impl IRawElementProviderFragmentRoot { pub unsafe fn ElementProviderFromPoint(&self, x: f64, y: f64) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2328,13 +2121,6 @@ impl IRawElementProviderFragmentRoot { (::windows_core::Interface::vtable(self).GetFocus)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IRawElementProviderFragmentRoot, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRawElementProviderFragmentRoot { - type Vtable = IRawElementProviderFragmentRoot_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRawElementProviderFragmentRoot { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x620ce2a5_ab8f_40a9_86cb_de3c75599b58); -} #[repr(C)] #[doc(hidden)] pub struct IRawElementProviderFragmentRoot_Vtbl { @@ -2342,9 +2128,8 @@ pub struct IRawElementProviderFragmentRoot_Vtbl { pub ElementProviderFromPoint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, x: f64, y: f64, pretval: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetFocus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pretval: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRawElementProviderHostingAccessibles(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRawElementProviderHostingAccessibles, IRawElementProviderHostingAccessibles_Vtbl, 0x24be0b07_d37d_487a_98cf_a13ed465e9b3); +::windows_core::imp::interface_hierarchy!(IRawElementProviderHostingAccessibles, ::windows_core::IUnknown); impl IRawElementProviderHostingAccessibles { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -2353,13 +2138,6 @@ impl IRawElementProviderHostingAccessibles { (::windows_core::Interface::vtable(self).GetEmbeddedAccessibles)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IRawElementProviderHostingAccessibles, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRawElementProviderHostingAccessibles { - type Vtable = IRawElementProviderHostingAccessibles_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRawElementProviderHostingAccessibles { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x24be0b07_d37d_487a_98cf_a13ed465e9b3); -} #[repr(C)] #[doc(hidden)] pub struct IRawElementProviderHostingAccessibles_Vtbl { @@ -2369,9 +2147,8 @@ pub struct IRawElementProviderHostingAccessibles_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetEmbeddedAccessibles: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRawElementProviderHwndOverride(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRawElementProviderHwndOverride, IRawElementProviderHwndOverride_Vtbl, 0x1d5df27c_8947_4425_b8d9_79787bb460b8); +::windows_core::imp::interface_hierarchy!(IRawElementProviderHwndOverride, ::windows_core::IUnknown); impl IRawElementProviderHwndOverride { pub unsafe fn GetOverrideProviderForHwnd(&self, hwnd: P0) -> ::windows_core::Result where @@ -2381,22 +2158,14 @@ impl IRawElementProviderHwndOverride { (::windows_core::Interface::vtable(self).GetOverrideProviderForHwnd)(::windows_core::Interface::as_raw(self), hwnd.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IRawElementProviderHwndOverride, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRawElementProviderHwndOverride { - type Vtable = IRawElementProviderHwndOverride_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRawElementProviderHwndOverride { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1d5df27c_8947_4425_b8d9_79787bb460b8); -} #[repr(C)] #[doc(hidden)] pub struct IRawElementProviderHwndOverride_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetOverrideProviderForHwnd: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwnd: super::super::Foundation::HWND, pretval: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRawElementProviderSimple(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRawElementProviderSimple, IRawElementProviderSimple_Vtbl, 0xd6dd68d1_86fd_4332_8666_9abedea2d24c); +::windows_core::imp::interface_hierarchy!(IRawElementProviderSimple, ::windows_core::IUnknown); impl IRawElementProviderSimple { pub unsafe fn ProviderOptions(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2417,13 +2186,6 @@ impl IRawElementProviderSimple { (::windows_core::Interface::vtable(self).HostRawElementProvider)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IRawElementProviderSimple, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRawElementProviderSimple { - type Vtable = IRawElementProviderSimple_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRawElementProviderSimple { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd6dd68d1_86fd_4332_8666_9abedea2d24c); -} #[repr(C)] #[doc(hidden)] pub struct IRawElementProviderSimple_Vtbl { @@ -2436,9 +2198,8 @@ pub struct IRawElementProviderSimple_Vtbl { GetPropertyValue: usize, pub HostRawElementProvider: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pretval: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRawElementProviderSimple2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRawElementProviderSimple2, IRawElementProviderSimple2_Vtbl, 0xa0a839a9_8da1_4a82_806a_8e0d44e79f56); +::windows_core::imp::interface_hierarchy!(IRawElementProviderSimple2, ::windows_core::IUnknown, IRawElementProviderSimple); impl IRawElementProviderSimple2 { pub unsafe fn ProviderOptions(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2462,22 +2223,14 @@ impl IRawElementProviderSimple2 { (::windows_core::Interface::vtable(self).ShowContextMenu)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IRawElementProviderSimple2, ::windows_core::IUnknown, IRawElementProviderSimple); -unsafe impl ::windows_core::Interface for IRawElementProviderSimple2 { - type Vtable = IRawElementProviderSimple2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRawElementProviderSimple2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa0a839a9_8da1_4a82_806a_8e0d44e79f56); -} #[repr(C)] #[doc(hidden)] pub struct IRawElementProviderSimple2_Vtbl { pub base__: IRawElementProviderSimple_Vtbl, pub ShowContextMenu: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRawElementProviderSimple3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRawElementProviderSimple3, IRawElementProviderSimple3_Vtbl, 0xfcf5d820_d7ec_4613_bdf6_42a84ce7daaf); +::windows_core::imp::interface_hierarchy!(IRawElementProviderSimple3, ::windows_core::IUnknown, IRawElementProviderSimple, IRawElementProviderSimple2); impl IRawElementProviderSimple3 { pub unsafe fn ProviderOptions(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2507,13 +2260,6 @@ impl IRawElementProviderSimple3 { (::windows_core::Interface::vtable(self).GetMetadataValue)(::windows_core::Interface::as_raw(self), targetid, metadataid, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IRawElementProviderSimple3, ::windows_core::IUnknown, IRawElementProviderSimple, IRawElementProviderSimple2); -unsafe impl ::windows_core::Interface for IRawElementProviderSimple3 { - type Vtable = IRawElementProviderSimple3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRawElementProviderSimple3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfcf5d820_d7ec_4613_bdf6_42a84ce7daaf); -} #[repr(C)] #[doc(hidden)] pub struct IRawElementProviderSimple3_Vtbl { @@ -2523,9 +2269,8 @@ pub struct IRawElementProviderSimple3_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] GetMetadataValue: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRawElementProviderWindowlessSite(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRawElementProviderWindowlessSite, IRawElementProviderWindowlessSite_Vtbl, 0x0a2a93cc_bfad_42ac_9b2e_0991fb0d3ea0); +::windows_core::imp::interface_hierarchy!(IRawElementProviderWindowlessSite, ::windows_core::IUnknown); impl IRawElementProviderWindowlessSite { pub unsafe fn GetAdjacentFragment(&self, direction: NavigateDirection) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2538,13 +2283,6 @@ impl IRawElementProviderWindowlessSite { (::windows_core::Interface::vtable(self).GetRuntimeIdPrefix)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IRawElementProviderWindowlessSite, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRawElementProviderWindowlessSite { - type Vtable = IRawElementProviderWindowlessSite_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRawElementProviderWindowlessSite { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0a2a93cc_bfad_42ac_9b2e_0991fb0d3ea0); -} #[repr(C)] #[doc(hidden)] pub struct IRawElementProviderWindowlessSite_Vtbl { @@ -2555,9 +2293,8 @@ pub struct IRawElementProviderWindowlessSite_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetRuntimeIdPrefix: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRichEditUiaInformation(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRichEditUiaInformation, IRichEditUiaInformation_Vtbl, 0); +::windows_core::imp::interface_hierarchy!(IRichEditUiaInformation, ::windows_core::IUnknown); impl IRichEditUiaInformation { pub unsafe fn GetBoundaryRectangle(&self, puiarect: *mut UiaRect) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetBoundaryRectangle)(::windows_core::Interface::as_raw(self), puiarect).ok() @@ -2566,13 +2303,6 @@ impl IRichEditUiaInformation { (::windows_core::Interface::vtable(self).IsVisible)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IRichEditUiaInformation, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRichEditUiaInformation { - type Vtable = IRichEditUiaInformation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRichEditUiaInformation { - const IID: ::windows_core::GUID = ::windows_core::GUID::zeroed(); -} #[repr(C)] #[doc(hidden)] pub struct IRichEditUiaInformation_Vtbl { @@ -2580,9 +2310,8 @@ pub struct IRichEditUiaInformation_Vtbl { pub GetBoundaryRectangle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, puiarect: *mut UiaRect) -> ::windows_core::HRESULT, pub IsVisible: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRicheditWindowlessAccessibility(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRicheditWindowlessAccessibility, IRicheditWindowlessAccessibility_Vtbl, 0); +::windows_core::imp::interface_hierarchy!(IRicheditWindowlessAccessibility, ::windows_core::IUnknown); impl IRicheditWindowlessAccessibility { pub unsafe fn CreateProvider(&self, psite: P0) -> ::windows_core::Result where @@ -2592,43 +2321,27 @@ impl IRicheditWindowlessAccessibility { (::windows_core::Interface::vtable(self).CreateProvider)(::windows_core::Interface::as_raw(self), psite.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IRicheditWindowlessAccessibility, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRicheditWindowlessAccessibility { - type Vtable = IRicheditWindowlessAccessibility_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRicheditWindowlessAccessibility { - const IID: ::windows_core::GUID = ::windows_core::GUID::zeroed(); -} #[repr(C)] #[doc(hidden)] pub struct IRicheditWindowlessAccessibility_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub CreateProvider: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psite: *mut ::core::ffi::c_void, ppprovider: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IScrollItemProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IScrollItemProvider, IScrollItemProvider_Vtbl, 0x2360c714_4bf1_4b26_ba65_9b21316127eb); +::windows_core::imp::interface_hierarchy!(IScrollItemProvider, ::windows_core::IUnknown); impl IScrollItemProvider { pub unsafe fn ScrollIntoView(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).ScrollIntoView)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IScrollItemProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IScrollItemProvider { - type Vtable = IScrollItemProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IScrollItemProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2360c714_4bf1_4b26_ba65_9b21316127eb); -} #[repr(C)] #[doc(hidden)] pub struct IScrollItemProvider_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub ScrollIntoView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IScrollProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IScrollProvider, IScrollProvider_Vtbl, 0xb38b8077_1fc3_42a5_8cae_d40c2215055a); +::windows_core::imp::interface_hierarchy!(IScrollProvider, ::windows_core::IUnknown); impl IScrollProvider { pub unsafe fn Scroll(&self, horizontalamount: ScrollAmount, verticalamount: ScrollAmount) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Scroll)(::windows_core::Interface::as_raw(self), horizontalamount, verticalamount).ok() @@ -2661,13 +2374,6 @@ impl IScrollProvider { (::windows_core::Interface::vtable(self).VerticallyScrollable)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IScrollProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IScrollProvider { - type Vtable = IScrollProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IScrollProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb38b8077_1fc3_42a5_8cae_d40c2215055a); -} #[repr(C)] #[doc(hidden)] pub struct IScrollProvider_Vtbl { @@ -2681,9 +2387,8 @@ pub struct IScrollProvider_Vtbl { pub HorizontallyScrollable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pretval: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub VerticallyScrollable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pretval: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISelectionItemProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISelectionItemProvider, ISelectionItemProvider_Vtbl, 0x2acad808_b2d4_452d_a407_91ff1ad167b2); +::windows_core::imp::interface_hierarchy!(ISelectionItemProvider, ::windows_core::IUnknown); impl ISelectionItemProvider { pub unsafe fn Select(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Select)(::windows_core::Interface::as_raw(self)).ok() @@ -2703,13 +2408,6 @@ impl ISelectionItemProvider { (::windows_core::Interface::vtable(self).SelectionContainer)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISelectionItemProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISelectionItemProvider { - type Vtable = ISelectionItemProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISelectionItemProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2acad808_b2d4_452d_a407_91ff1ad167b2); -} #[repr(C)] #[doc(hidden)] pub struct ISelectionItemProvider_Vtbl { @@ -2720,9 +2418,8 @@ pub struct ISelectionItemProvider_Vtbl { pub IsSelected: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pretval: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub SelectionContainer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pretval: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISelectionProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISelectionProvider, ISelectionProvider_Vtbl, 0xfb8b03af_3bdf_48d4_bd36_1a65793be168); +::windows_core::imp::interface_hierarchy!(ISelectionProvider, ::windows_core::IUnknown); impl ISelectionProvider { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -2739,13 +2436,6 @@ impl ISelectionProvider { (::windows_core::Interface::vtable(self).IsSelectionRequired)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISelectionProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISelectionProvider { - type Vtable = ISelectionProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISelectionProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfb8b03af_3bdf_48d4_bd36_1a65793be168); -} #[repr(C)] #[doc(hidden)] pub struct ISelectionProvider_Vtbl { @@ -2757,9 +2447,8 @@ pub struct ISelectionProvider_Vtbl { pub CanSelectMultiple: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pretval: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub IsSelectionRequired: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pretval: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISelectionProvider2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISelectionProvider2, ISelectionProvider2_Vtbl, 0x14f68475_ee1c_44f6_a869_d239381f0fe7); +::windows_core::imp::interface_hierarchy!(ISelectionProvider2, ::windows_core::IUnknown, ISelectionProvider); impl ISelectionProvider2 { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -2792,13 +2481,6 @@ impl ISelectionProvider2 { (::windows_core::Interface::vtable(self).ItemCount)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISelectionProvider2, ::windows_core::IUnknown, ISelectionProvider); -unsafe impl ::windows_core::Interface for ISelectionProvider2 { - type Vtable = ISelectionProvider2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISelectionProvider2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x14f68475_ee1c_44f6_a869_d239381f0fe7); -} #[repr(C)] #[doc(hidden)] pub struct ISelectionProvider2_Vtbl { @@ -2808,9 +2490,8 @@ pub struct ISelectionProvider2_Vtbl { pub CurrentSelectedItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ItemCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpreadsheetItemProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpreadsheetItemProvider, ISpreadsheetItemProvider_Vtbl, 0xeaed4660_7b3d_4879_a2e6_365ce603f3d0); +::windows_core::imp::interface_hierarchy!(ISpreadsheetItemProvider, ::windows_core::IUnknown); impl ISpreadsheetItemProvider { pub unsafe fn Formula(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -2829,13 +2510,6 @@ impl ISpreadsheetItemProvider { (::windows_core::Interface::vtable(self).GetAnnotationTypes)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISpreadsheetItemProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpreadsheetItemProvider { - type Vtable = ISpreadsheetItemProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpreadsheetItemProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeaed4660_7b3d_4879_a2e6_365ce603f3d0); -} #[repr(C)] #[doc(hidden)] pub struct ISpreadsheetItemProvider_Vtbl { @@ -2850,9 +2524,8 @@ pub struct ISpreadsheetItemProvider_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetAnnotationTypes: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpreadsheetProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpreadsheetProvider, ISpreadsheetProvider_Vtbl, 0x6f6b5d35_5525_4f80_b758_85473832ffc7); +::windows_core::imp::interface_hierarchy!(ISpreadsheetProvider, ::windows_core::IUnknown); impl ISpreadsheetProvider { pub unsafe fn GetItemByName(&self, name: P0) -> ::windows_core::Result where @@ -2862,22 +2535,14 @@ impl ISpreadsheetProvider { (::windows_core::Interface::vtable(self).GetItemByName)(::windows_core::Interface::as_raw(self), name.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISpreadsheetProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpreadsheetProvider { - type Vtable = ISpreadsheetProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpreadsheetProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6f6b5d35_5525_4f80_b758_85473832ffc7); -} #[repr(C)] #[doc(hidden)] pub struct ISpreadsheetProvider_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetItemByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::windows_core::PCWSTR, pretval: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStylesProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IStylesProvider, IStylesProvider_Vtbl, 0x19b6b649_f5d7_4a6d_bdcb_129252be588a); +::windows_core::imp::interface_hierarchy!(IStylesProvider, ::windows_core::IUnknown); impl IStylesProvider { pub unsafe fn StyleId(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2908,13 +2573,6 @@ impl IStylesProvider { (::windows_core::Interface::vtable(self).ExtendedProperties)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IStylesProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStylesProvider { - type Vtable = IStylesProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStylesProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x19b6b649_f5d7_4a6d_bdcb_129252be588a); -} #[repr(C)] #[doc(hidden)] pub struct IStylesProvider_Vtbl { @@ -2927,9 +2585,8 @@ pub struct IStylesProvider_Vtbl { pub FillPatternColor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows_core::HRESULT, pub ExtendedProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISynchronizedInputProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISynchronizedInputProvider, ISynchronizedInputProvider_Vtbl, 0x29db1a06_02ce_4cf7_9b42_565d4fab20ee); +::windows_core::imp::interface_hierarchy!(ISynchronizedInputProvider, ::windows_core::IUnknown); impl ISynchronizedInputProvider { pub unsafe fn StartListening(&self, inputtype: SynchronizedInputType) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).StartListening)(::windows_core::Interface::as_raw(self), inputtype).ok() @@ -2938,13 +2595,6 @@ impl ISynchronizedInputProvider { (::windows_core::Interface::vtable(self).Cancel)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ISynchronizedInputProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISynchronizedInputProvider { - type Vtable = ISynchronizedInputProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISynchronizedInputProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x29db1a06_02ce_4cf7_9b42_565d4fab20ee); -} #[repr(C)] #[doc(hidden)] pub struct ISynchronizedInputProvider_Vtbl { @@ -2952,9 +2602,8 @@ pub struct ISynchronizedInputProvider_Vtbl { pub StartListening: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, inputtype: SynchronizedInputType) -> ::windows_core::HRESULT, pub Cancel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITableItemProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITableItemProvider, ITableItemProvider_Vtbl, 0xb9734fa6_771f_4d78_9c90_2517999349cd); +::windows_core::imp::interface_hierarchy!(ITableItemProvider, ::windows_core::IUnknown); impl ITableItemProvider { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -2969,13 +2618,6 @@ impl ITableItemProvider { (::windows_core::Interface::vtable(self).GetColumnHeaderItems)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITableItemProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITableItemProvider { - type Vtable = ITableItemProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITableItemProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb9734fa6_771f_4d78_9c90_2517999349cd); -} #[repr(C)] #[doc(hidden)] pub struct ITableItemProvider_Vtbl { @@ -2989,9 +2631,8 @@ pub struct ITableItemProvider_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetColumnHeaderItems: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITableProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITableProvider, ITableProvider_Vtbl, 0x9c860395_97b3_490a_b52a_858cc22af166); +::windows_core::imp::interface_hierarchy!(ITableProvider, ::windows_core::IUnknown); impl ITableProvider { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -3010,13 +2651,6 @@ impl ITableProvider { (::windows_core::Interface::vtable(self).RowOrColumnMajor)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITableProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITableProvider { - type Vtable = ITableProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITableProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9c860395_97b3_490a_b52a_858cc22af166); -} #[repr(C)] #[doc(hidden)] pub struct ITableProvider_Vtbl { @@ -3031,9 +2665,8 @@ pub struct ITableProvider_Vtbl { GetColumnHeaders: usize, pub RowOrColumnMajor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pretval: *mut RowOrColumnMajor) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITextChildProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITextChildProvider, ITextChildProvider_Vtbl, 0x4c2de2b9_c88f_4f88_a111_f1d336b7d1a9); +::windows_core::imp::interface_hierarchy!(ITextChildProvider, ::windows_core::IUnknown); impl ITextChildProvider { pub unsafe fn TextContainer(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -3044,13 +2677,6 @@ impl ITextChildProvider { (::windows_core::Interface::vtable(self).TextRange)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITextChildProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITextChildProvider { - type Vtable = ITextChildProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITextChildProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4c2de2b9_c88f_4f88_a111_f1d336b7d1a9); -} #[repr(C)] #[doc(hidden)] pub struct ITextChildProvider_Vtbl { @@ -3058,9 +2684,8 @@ pub struct ITextChildProvider_Vtbl { pub TextContainer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pretval: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub TextRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pretval: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITextEditProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITextEditProvider, ITextEditProvider_Vtbl, 0xea3605b4_3a05_400e_b5f9_4e91b40f6176); +::windows_core::imp::interface_hierarchy!(ITextEditProvider, ::windows_core::IUnknown, ITextProvider); impl ITextEditProvider { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -3102,13 +2727,6 @@ impl ITextEditProvider { (::windows_core::Interface::vtable(self).GetConversionTarget)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITextEditProvider, ::windows_core::IUnknown, ITextProvider); -unsafe impl ::windows_core::Interface for ITextEditProvider { - type Vtable = ITextEditProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITextEditProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xea3605b4_3a05_400e_b5f9_4e91b40f6176); -} #[repr(C)] #[doc(hidden)] pub struct ITextEditProvider_Vtbl { @@ -3116,9 +2734,8 @@ pub struct ITextEditProvider_Vtbl { pub GetActiveComposition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pretval: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetConversionTarget: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pretval: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITextProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITextProvider, ITextProvider_Vtbl, 0x3589c92c_63f3_4367_99bb_ada653b77cf2); +::windows_core::imp::interface_hierarchy!(ITextProvider, ::windows_core::IUnknown); impl ITextProvider { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -3152,13 +2769,6 @@ impl ITextProvider { (::windows_core::Interface::vtable(self).SupportedTextSelection)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITextProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITextProvider { - type Vtable = ITextProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITextProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3589c92c_63f3_4367_99bb_ada653b77cf2); -} #[repr(C)] #[doc(hidden)] pub struct ITextProvider_Vtbl { @@ -3176,9 +2786,8 @@ pub struct ITextProvider_Vtbl { pub DocumentRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pretval: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SupportedTextSelection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pretval: *mut SupportedTextSelection) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITextProvider2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITextProvider2, ITextProvider2_Vtbl, 0x0dc5e6ed_3e16_4bf1_8f9a_a979878bc195); +::windows_core::imp::interface_hierarchy!(ITextProvider2, ::windows_core::IUnknown, ITextProvider); impl ITextProvider2 { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -3222,13 +2831,6 @@ impl ITextProvider2 { (::windows_core::Interface::vtable(self).GetCaretRange)(::windows_core::Interface::as_raw(self), isactive, ::core::mem::transmute(pretval)).ok() } } -::windows_core::imp::interface_hierarchy!(ITextProvider2, ::windows_core::IUnknown, ITextProvider); -unsafe impl ::windows_core::Interface for ITextProvider2 { - type Vtable = ITextProvider2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITextProvider2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0dc5e6ed_3e16_4bf1_8f9a_a979878bc195); -} #[repr(C)] #[doc(hidden)] pub struct ITextProvider2_Vtbl { @@ -3236,9 +2838,8 @@ pub struct ITextProvider2_Vtbl { pub RangeFromAnnotation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, annotationelement: *mut ::core::ffi::c_void, pretval: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetCaretRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, isactive: *mut super::super::Foundation::BOOL, pretval: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITextRangeProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITextRangeProvider, ITextRangeProvider_Vtbl, 0x5347ad7b_c355_46f8_aff5_909033582f63); +::windows_core::imp::interface_hierarchy!(ITextRangeProvider, ::windows_core::IUnknown); impl ITextRangeProvider { pub unsafe fn Clone(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -3335,13 +2936,6 @@ impl ITextRangeProvider { (::windows_core::Interface::vtable(self).GetChildren)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITextRangeProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITextRangeProvider { - type Vtable = ITextRangeProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITextRangeProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5347ad7b_c355_46f8_aff5_909033582f63); -} #[repr(C)] #[doc(hidden)] pub struct ITextRangeProvider_Vtbl { @@ -3377,9 +2971,8 @@ pub struct ITextRangeProvider_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetChildren: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITextRangeProvider2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITextRangeProvider2, ITextRangeProvider2_Vtbl, 0x9bbce42c_1921_4f18_89ca_dba1910a0386); +::windows_core::imp::interface_hierarchy!(ITextRangeProvider2, ::windows_core::IUnknown, ITextRangeProvider); impl ITextRangeProvider2 { pub unsafe fn Clone(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -3479,22 +3072,14 @@ impl ITextRangeProvider2 { (::windows_core::Interface::vtable(self).ShowContextMenu)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ITextRangeProvider2, ::windows_core::IUnknown, ITextRangeProvider); -unsafe impl ::windows_core::Interface for ITextRangeProvider2 { - type Vtable = ITextRangeProvider2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITextRangeProvider2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9bbce42c_1921_4f18_89ca_dba1910a0386); -} #[repr(C)] #[doc(hidden)] pub struct ITextRangeProvider2_Vtbl { pub base__: ITextRangeProvider_Vtbl, pub ShowContextMenu: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IToggleProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IToggleProvider, IToggleProvider_Vtbl, 0x56d00bd0_c4f4_433c_a836_1a52a57e0892); +::windows_core::imp::interface_hierarchy!(IToggleProvider, ::windows_core::IUnknown); impl IToggleProvider { pub unsafe fn Toggle(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Toggle)(::windows_core::Interface::as_raw(self)).ok() @@ -3504,13 +3089,6 @@ impl IToggleProvider { (::windows_core::Interface::vtable(self).ToggleState)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IToggleProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IToggleProvider { - type Vtable = IToggleProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IToggleProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x56d00bd0_c4f4_433c_a836_1a52a57e0892); -} #[repr(C)] #[doc(hidden)] pub struct IToggleProvider_Vtbl { @@ -3518,9 +3096,8 @@ pub struct IToggleProvider_Vtbl { pub Toggle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ToggleState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pretval: *mut ToggleState) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITransformProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITransformProvider, ITransformProvider_Vtbl, 0x6829ddc4_4f91_4ffa_b86f_bd3e2987cb4c); +::windows_core::imp::interface_hierarchy!(ITransformProvider, ::windows_core::IUnknown); impl ITransformProvider { pub unsafe fn Move(&self, x: f64, y: f64) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Move)(::windows_core::Interface::as_raw(self), x, y).ok() @@ -3544,13 +3121,6 @@ impl ITransformProvider { (::windows_core::Interface::vtable(self).CanRotate)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITransformProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITransformProvider { - type Vtable = ITransformProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITransformProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6829ddc4_4f91_4ffa_b86f_bd3e2987cb4c); -} #[repr(C)] #[doc(hidden)] pub struct ITransformProvider_Vtbl { @@ -3562,9 +3132,8 @@ pub struct ITransformProvider_Vtbl { pub CanResize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pretval: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub CanRotate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pretval: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITransformProvider2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITransformProvider2, ITransformProvider2_Vtbl, 0x4758742f_7ac2_460c_bc48_09fc09308a93); +::windows_core::imp::interface_hierarchy!(ITransformProvider2, ::windows_core::IUnknown, ITransformProvider); impl ITransformProvider2 { pub unsafe fn Move(&self, x: f64, y: f64) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.Move)(::windows_core::Interface::as_raw(self), x, y).ok() @@ -3610,13 +3179,6 @@ impl ITransformProvider2 { (::windows_core::Interface::vtable(self).ZoomByUnit)(::windows_core::Interface::as_raw(self), zoomunit).ok() } } -::windows_core::imp::interface_hierarchy!(ITransformProvider2, ::windows_core::IUnknown, ITransformProvider); -unsafe impl ::windows_core::Interface for ITransformProvider2 { - type Vtable = ITransformProvider2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITransformProvider2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4758742f_7ac2_460c_bc48_09fc09308a93); -} #[repr(C)] #[doc(hidden)] pub struct ITransformProvider2_Vtbl { @@ -3628,9 +3190,8 @@ pub struct ITransformProvider2_Vtbl { pub ZoomMaximum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pretval: *mut f64) -> ::windows_core::HRESULT, pub ZoomByUnit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, zoomunit: ZoomUnit) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomation(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomation, IUIAutomation_Vtbl, 0x30cbe57d_d9d0_452a_ab13_7ac5ac4825ee); +::windows_core::imp::interface_hierarchy!(IUIAutomation, ::windows_core::IUnknown); impl IUIAutomation { pub unsafe fn CompareElements(&self, el1: P0, el2: P1) -> ::windows_core::Result where @@ -3960,13 +3521,6 @@ impl IUIAutomation { (::windows_core::Interface::vtable(self).ElementFromIAccessibleBuildCache)(::windows_core::Interface::as_raw(self), accessible.into_param().abi(), childid, cacherequest.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUIAutomation, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAutomation { - type Vtable = IUIAutomation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x30cbe57d_d9d0_452a_ab13_7ac5ac4825ee); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomation_Vtbl { @@ -4075,9 +3629,8 @@ pub struct IUIAutomation_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] ElementFromIAccessibleBuildCache: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomation2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomation2, IUIAutomation2_Vtbl, 0x34723aff_0c9d_49d0_9896_7ab52df8cd8a); +::windows_core::imp::interface_hierarchy!(IUIAutomation2, ::windows_core::IUnknown, IUIAutomation); impl IUIAutomation2 { pub unsafe fn CompareElements(&self, el1: P0, el2: P1) -> ::windows_core::Result where @@ -4431,13 +3984,6 @@ impl IUIAutomation2 { (::windows_core::Interface::vtable(self).SetTransactionTimeout)(::windows_core::Interface::as_raw(self), timeout).ok() } } -::windows_core::imp::interface_hierarchy!(IUIAutomation2, ::windows_core::IUnknown, IUIAutomation); -unsafe impl ::windows_core::Interface for IUIAutomation2 { - type Vtable = IUIAutomation2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomation2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x34723aff_0c9d_49d0_9896_7ab52df8cd8a); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomation2_Vtbl { @@ -4449,9 +3995,8 @@ pub struct IUIAutomation2_Vtbl { pub TransactionTimeout: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, timeout: *mut u32) -> ::windows_core::HRESULT, pub SetTransactionTimeout: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, timeout: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomation3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomation3, IUIAutomation3_Vtbl, 0x73d768da_9b51_4b89_936e_c209290973e7); +::windows_core::imp::interface_hierarchy!(IUIAutomation3, ::windows_core::IUnknown, IUIAutomation, IUIAutomation2); impl IUIAutomation3 { pub unsafe fn CompareElements(&self, el1: P0, el2: P1) -> ::windows_core::Result where @@ -4820,13 +4365,6 @@ impl IUIAutomation3 { (::windows_core::Interface::vtable(self).RemoveTextEditTextChangedEventHandler)(::windows_core::Interface::as_raw(self), element.into_param().abi(), handler.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IUIAutomation3, ::windows_core::IUnknown, IUIAutomation, IUIAutomation2); -unsafe impl ::windows_core::Interface for IUIAutomation3 { - type Vtable = IUIAutomation3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomation3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x73d768da_9b51_4b89_936e_c209290973e7); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomation3_Vtbl { @@ -4834,9 +4372,8 @@ pub struct IUIAutomation3_Vtbl { pub AddTextEditTextChangedEventHandler: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, scope: TreeScope, texteditchangetype: TextEditChangeType, cacherequest: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RemoveTextEditTextChangedEventHandler: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomation4(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomation4, IUIAutomation4_Vtbl, 0x1189c02a_05f8_4319_8e21_e817e3db2860); +::windows_core::imp::interface_hierarchy!(IUIAutomation4, ::windows_core::IUnknown, IUIAutomation, IUIAutomation2, IUIAutomation3); impl IUIAutomation4 { pub unsafe fn CompareElements(&self, el1: P0, el2: P1) -> ::windows_core::Result where @@ -5220,13 +4757,6 @@ impl IUIAutomation4 { (::windows_core::Interface::vtable(self).RemoveChangesEventHandler)(::windows_core::Interface::as_raw(self), element.into_param().abi(), handler.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IUIAutomation4, ::windows_core::IUnknown, IUIAutomation, IUIAutomation2, IUIAutomation3); -unsafe impl ::windows_core::Interface for IUIAutomation4 { - type Vtable = IUIAutomation4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomation4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1189c02a_05f8_4319_8e21_e817e3db2860); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomation4_Vtbl { @@ -5234,9 +4764,8 @@ pub struct IUIAutomation4_Vtbl { pub AddChangesEventHandler: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, scope: TreeScope, changetypes: *const i32, changescount: i32, pcacherequest: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RemoveChangesEventHandler: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomation5(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomation5, IUIAutomation5_Vtbl, 0x25f700c8_d816_4057_a9dc_3cbdee77e256); +::windows_core::imp::interface_hierarchy!(IUIAutomation5, ::windows_core::IUnknown, IUIAutomation, IUIAutomation2, IUIAutomation3, IUIAutomation4); impl IUIAutomation5 { pub unsafe fn CompareElements(&self, el1: P0, el2: P1) -> ::windows_core::Result where @@ -5635,13 +5164,6 @@ impl IUIAutomation5 { (::windows_core::Interface::vtable(self).RemoveNotificationEventHandler)(::windows_core::Interface::as_raw(self), element.into_param().abi(), handler.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IUIAutomation5, ::windows_core::IUnknown, IUIAutomation, IUIAutomation2, IUIAutomation3, IUIAutomation4); -unsafe impl ::windows_core::Interface for IUIAutomation5 { - type Vtable = IUIAutomation5_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomation5 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x25f700c8_d816_4057_a9dc_3cbdee77e256); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomation5_Vtbl { @@ -5649,9 +5171,8 @@ pub struct IUIAutomation5_Vtbl { pub AddNotificationEventHandler: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, scope: TreeScope, cacherequest: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RemoveNotificationEventHandler: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomation6(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomation6, IUIAutomation6_Vtbl, 0xaae072da_29e3_413d_87a7_192dbf81ed10); +::windows_core::imp::interface_hierarchy!(IUIAutomation6, ::windows_core::IUnknown, IUIAutomation, IUIAutomation2, IUIAutomation3, IUIAutomation4, IUIAutomation5); impl IUIAutomation6 { pub unsafe fn CompareElements(&self, el1: P0, el2: P1) -> ::windows_core::Result where @@ -6097,13 +5618,6 @@ impl IUIAutomation6 { (::windows_core::Interface::vtable(self).RemoveActiveTextPositionChangedEventHandler)(::windows_core::Interface::as_raw(self), element.into_param().abi(), handler.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IUIAutomation6, ::windows_core::IUnknown, IUIAutomation, IUIAutomation2, IUIAutomation3, IUIAutomation4, IUIAutomation5); -unsafe impl ::windows_core::Interface for IUIAutomation6 { - type Vtable = IUIAutomation6_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomation6 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaae072da_29e3_413d_87a7_192dbf81ed10); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomation6_Vtbl { @@ -6118,9 +5632,8 @@ pub struct IUIAutomation6_Vtbl { pub AddActiveTextPositionChangedEventHandler: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, scope: TreeScope, cacherequest: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RemoveActiveTextPositionChangedEventHandler: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomationActiveTextPositionChangedEventHandler(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomationActiveTextPositionChangedEventHandler, IUIAutomationActiveTextPositionChangedEventHandler_Vtbl, 0xf97933b0_8dae_4496_8997_5ba015fe0d82); +::windows_core::imp::interface_hierarchy!(IUIAutomationActiveTextPositionChangedEventHandler, ::windows_core::IUnknown); impl IUIAutomationActiveTextPositionChangedEventHandler { pub unsafe fn HandleActiveTextPositionChangedEvent(&self, sender: P0, range: P1) -> ::windows_core::Result<()> where @@ -6130,22 +5643,14 @@ impl IUIAutomationActiveTextPositionChangedEventHandler { (::windows_core::Interface::vtable(self).HandleActiveTextPositionChangedEvent)(::windows_core::Interface::as_raw(self), sender.into_param().abi(), range.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IUIAutomationActiveTextPositionChangedEventHandler, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAutomationActiveTextPositionChangedEventHandler { - type Vtable = IUIAutomationActiveTextPositionChangedEventHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomationActiveTextPositionChangedEventHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf97933b0_8dae_4496_8997_5ba015fe0d82); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomationActiveTextPositionChangedEventHandler_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub HandleActiveTextPositionChangedEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sender: *mut ::core::ffi::c_void, range: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomationAndCondition(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomationAndCondition, IUIAutomationAndCondition_Vtbl, 0xa7d0af36_b912_45fe_9855_091ddc174aec); +::windows_core::imp::interface_hierarchy!(IUIAutomationAndCondition, ::windows_core::IUnknown, IUIAutomationCondition); impl IUIAutomationAndCondition { pub unsafe fn ChildCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -6161,13 +5666,6 @@ impl IUIAutomationAndCondition { (::windows_core::Interface::vtable(self).GetChildren)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUIAutomationAndCondition, ::windows_core::IUnknown, IUIAutomationCondition); -unsafe impl ::windows_core::Interface for IUIAutomationAndCondition { - type Vtable = IUIAutomationAndCondition_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomationAndCondition { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa7d0af36_b912_45fe_9855_091ddc174aec); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomationAndCondition_Vtbl { @@ -6179,9 +5677,8 @@ pub struct IUIAutomationAndCondition_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetChildren: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomationAnnotationPattern(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomationAnnotationPattern, IUIAutomationAnnotationPattern_Vtbl, 0x9a175b21_339e_41b1_8e8b_623f6b681098); +::windows_core::imp::interface_hierarchy!(IUIAutomationAnnotationPattern, ::windows_core::IUnknown); impl IUIAutomationAnnotationPattern { pub unsafe fn CurrentAnnotationTypeId(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -6224,13 +5721,6 @@ impl IUIAutomationAnnotationPattern { (::windows_core::Interface::vtable(self).CachedTarget)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUIAutomationAnnotationPattern, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAutomationAnnotationPattern { - type Vtable = IUIAutomationAnnotationPattern_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomationAnnotationPattern { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9a175b21_339e_41b1_8e8b_623f6b681098); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomationAnnotationPattern_Vtbl { @@ -6246,31 +5736,22 @@ pub struct IUIAutomationAnnotationPattern_Vtbl { pub CachedDateTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub CachedTarget: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomationBoolCondition(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomationBoolCondition, IUIAutomationBoolCondition_Vtbl, 0x1b4e1f2e_75eb_4d0b_8952_5a69988e2307); +::windows_core::imp::interface_hierarchy!(IUIAutomationBoolCondition, ::windows_core::IUnknown, IUIAutomationCondition); impl IUIAutomationBoolCondition { pub unsafe fn BooleanValue(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).BooleanValue)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUIAutomationBoolCondition, ::windows_core::IUnknown, IUIAutomationCondition); -unsafe impl ::windows_core::Interface for IUIAutomationBoolCondition { - type Vtable = IUIAutomationBoolCondition_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomationBoolCondition { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1b4e1f2e_75eb_4d0b_8952_5a69988e2307); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomationBoolCondition_Vtbl { pub base__: IUIAutomationCondition_Vtbl, pub BooleanValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, boolval: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomationCacheRequest(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomationCacheRequest, IUIAutomationCacheRequest_Vtbl, 0xb32a92b5_bc25_4078_9c08_d7ee95c48e03); +::windows_core::imp::interface_hierarchy!(IUIAutomationCacheRequest, ::windows_core::IUnknown); impl IUIAutomationCacheRequest { pub unsafe fn AddProperty(&self, propertyid: UIA_PROPERTY_ID) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).AddProperty)(::windows_core::Interface::as_raw(self), propertyid).ok() @@ -6307,13 +5788,6 @@ impl IUIAutomationCacheRequest { (::windows_core::Interface::vtable(self).SetAutomationElementMode)(::windows_core::Interface::as_raw(self), mode).ok() } } -::windows_core::imp::interface_hierarchy!(IUIAutomationCacheRequest, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAutomationCacheRequest { - type Vtable = IUIAutomationCacheRequest_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomationCacheRequest { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb32a92b5_bc25_4078_9c08_d7ee95c48e03); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomationCacheRequest_Vtbl { @@ -6328,9 +5802,8 @@ pub struct IUIAutomationCacheRequest_Vtbl { pub AutomationElementMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mode: *mut AutomationElementMode) -> ::windows_core::HRESULT, pub SetAutomationElementMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mode: AutomationElementMode) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomationChangesEventHandler(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomationChangesEventHandler, IUIAutomationChangesEventHandler_Vtbl, 0x58edca55_2c3e_4980_b1b9_56c17f27a2a0); +::windows_core::imp::interface_hierarchy!(IUIAutomationChangesEventHandler, ::windows_core::IUnknown); impl IUIAutomationChangesEventHandler { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -6341,13 +5814,6 @@ impl IUIAutomationChangesEventHandler { (::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::imp::interface_hierarchy!(IUIAutomationChangesEventHandler, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAutomationChangesEventHandler { - type Vtable = IUIAutomationChangesEventHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomationChangesEventHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x58edca55_2c3e_4980_b1b9_56c17f27a2a0); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomationChangesEventHandler_Vtbl { @@ -6357,47 +5823,30 @@ pub struct IUIAutomationChangesEventHandler_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] HandleChangesEvent: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomationCondition(::windows_core::IUnknown); -impl IUIAutomationCondition {} +::windows_core::imp::com_interface!(IUIAutomationCondition, IUIAutomationCondition_Vtbl, 0x352ffba8_0973_437c_a61f_f64cafd81df9); ::windows_core::imp::interface_hierarchy!(IUIAutomationCondition, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAutomationCondition { - type Vtable = IUIAutomationCondition_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomationCondition { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x352ffba8_0973_437c_a61f_f64cafd81df9); -} +impl IUIAutomationCondition {} #[repr(C)] #[doc(hidden)] pub struct IUIAutomationCondition_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomationCustomNavigationPattern(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomationCustomNavigationPattern, IUIAutomationCustomNavigationPattern_Vtbl, 0x01ea217a_1766_47ed_a6cc_acf492854b1f); +::windows_core::imp::interface_hierarchy!(IUIAutomationCustomNavigationPattern, ::windows_core::IUnknown); impl IUIAutomationCustomNavigationPattern { pub unsafe fn Navigate(&self, direction: NavigateDirection) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).Navigate)(::windows_core::Interface::as_raw(self), direction, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUIAutomationCustomNavigationPattern, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAutomationCustomNavigationPattern { - type Vtable = IUIAutomationCustomNavigationPattern_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomationCustomNavigationPattern { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x01ea217a_1766_47ed_a6cc_acf492854b1f); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomationCustomNavigationPattern_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Navigate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, direction: NavigateDirection, pretval: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomationDockPattern(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomationDockPattern, IUIAutomationDockPattern_Vtbl, 0xfde5ef97_1464_48f6_90bf_43d0948e86ec); +::windows_core::imp::interface_hierarchy!(IUIAutomationDockPattern, ::windows_core::IUnknown); impl IUIAutomationDockPattern { pub unsafe fn SetDockPosition(&self, dockpos: DockPosition) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetDockPosition)(::windows_core::Interface::as_raw(self), dockpos).ok() @@ -6411,13 +5860,6 @@ impl IUIAutomationDockPattern { (::windows_core::Interface::vtable(self).CachedDockPosition)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUIAutomationDockPattern, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAutomationDockPattern { - type Vtable = IUIAutomationDockPattern_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomationDockPattern { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfde5ef97_1464_48f6_90bf_43d0948e86ec); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomationDockPattern_Vtbl { @@ -6426,9 +5868,8 @@ pub struct IUIAutomationDockPattern_Vtbl { pub CurrentDockPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut DockPosition) -> ::windows_core::HRESULT, pub CachedDockPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut DockPosition) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomationDragPattern(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomationDragPattern, IUIAutomationDragPattern_Vtbl, 0x1dc7b570_1f54_4bad_bcda_d36a722fb7bd); +::windows_core::imp::interface_hierarchy!(IUIAutomationDragPattern, ::windows_core::IUnknown); impl IUIAutomationDragPattern { pub unsafe fn CurrentIsGrabbed(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -6467,13 +5908,6 @@ impl IUIAutomationDragPattern { (::windows_core::Interface::vtable(self).GetCachedGrabbedItems)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUIAutomationDragPattern, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAutomationDragPattern { - type Vtable = IUIAutomationDragPattern_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomationDragPattern { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1dc7b570_1f54_4bad_bcda_d36a722fb7bd); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomationDragPattern_Vtbl { @@ -6493,9 +5927,8 @@ pub struct IUIAutomationDragPattern_Vtbl { pub GetCurrentGrabbedItems: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetCachedGrabbedItems: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomationDropTargetPattern(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomationDropTargetPattern, IUIAutomationDropTargetPattern_Vtbl, 0x69a095f7_eee4_430e_a46b_fb73b1ae39a5); +::windows_core::imp::interface_hierarchy!(IUIAutomationDropTargetPattern, ::windows_core::IUnknown); impl IUIAutomationDropTargetPattern { pub unsafe fn CurrentDropTargetEffect(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -6518,13 +5951,6 @@ impl IUIAutomationDropTargetPattern { (::windows_core::Interface::vtable(self).CachedDropTargetEffects)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUIAutomationDropTargetPattern, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAutomationDropTargetPattern { - type Vtable = IUIAutomationDropTargetPattern_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomationDropTargetPattern { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x69a095f7_eee4_430e_a46b_fb73b1ae39a5); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomationDropTargetPattern_Vtbl { @@ -6540,9 +5966,8 @@ pub struct IUIAutomationDropTargetPattern_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] CachedDropTargetEffects: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomationElement(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomationElement, IUIAutomationElement_Vtbl, 0xd22108aa_8ac5_49a5_837b_37bbb3d7591e); +::windows_core::imp::interface_hierarchy!(IUIAutomationElement, ::windows_core::IUnknown); impl IUIAutomationElement { pub unsafe fn SetFocus(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetFocus)(::windows_core::Interface::as_raw(self)).ok() @@ -6622,14 +6047,14 @@ impl IUIAutomationElement { } pub unsafe fn GetCurrentPatternAs(&self, patternid: UIA_PATTERN_ID) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetCurrentPatternAs)(::windows_core::Interface::as_raw(self), patternid, &T::IID, &mut result__).from_abi(result__) } pub unsafe fn GetCachedPatternAs(&self, patternid: UIA_PATTERN_ID) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetCachedPatternAs)(::windows_core::Interface::as_raw(self), patternid, &T::IID, &mut result__).from_abi(result__) @@ -6910,13 +6335,6 @@ impl IUIAutomationElement { (::windows_core::Interface::vtable(self).GetClickablePoint)(::windows_core::Interface::as_raw(self), clickable, gotclickable).ok() } } -::windows_core::imp::interface_hierarchy!(IUIAutomationElement, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAutomationElement { - type Vtable = IUIAutomationElement_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomationElement { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd22108aa_8ac5_49a5_837b_37bbb3d7591e); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomationElement_Vtbl { @@ -7019,9 +6437,8 @@ pub struct IUIAutomationElement_Vtbl { pub CachedProviderDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub GetClickablePoint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, clickable: *mut super::super::Foundation::POINT, gotclickable: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomationElement2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomationElement2, IUIAutomationElement2_Vtbl, 0x6749c683_f70d_4487_a698_5f79d55290d6); +::windows_core::imp::interface_hierarchy!(IUIAutomationElement2, ::windows_core::IUnknown, IUIAutomationElement); impl IUIAutomationElement2 { pub unsafe fn SetFocus(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.SetFocus)(::windows_core::Interface::as_raw(self)).ok() @@ -7101,14 +6518,14 @@ impl IUIAutomationElement2 { } pub unsafe fn GetCurrentPatternAs(&self, patternid: UIA_PATTERN_ID) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.GetCurrentPatternAs)(::windows_core::Interface::as_raw(self), patternid, &T::IID, &mut result__).from_abi(result__) } pub unsafe fn GetCachedPatternAs(&self, patternid: UIA_PATTERN_ID) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.GetCachedPatternAs)(::windows_core::Interface::as_raw(self), patternid, &T::IID, &mut result__).from_abi(result__) @@ -7413,13 +6830,6 @@ impl IUIAutomationElement2 { (::windows_core::Interface::vtable(self).CachedFlowsFrom)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUIAutomationElement2, ::windows_core::IUnknown, IUIAutomationElement); -unsafe impl ::windows_core::Interface for IUIAutomationElement2 { - type Vtable = IUIAutomationElement2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomationElement2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6749c683_f70d_4487_a698_5f79d55290d6); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomationElement2_Vtbl { @@ -7431,9 +6841,8 @@ pub struct IUIAutomationElement2_Vtbl { pub CurrentFlowsFrom: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CachedFlowsFrom: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomationElement3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomationElement3, IUIAutomationElement3_Vtbl, 0x8471df34_aee0_4a01_a7de_7db9af12c296); +::windows_core::imp::interface_hierarchy!(IUIAutomationElement3, ::windows_core::IUnknown, IUIAutomationElement, IUIAutomationElement2); impl IUIAutomationElement3 { pub unsafe fn SetFocus(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.SetFocus)(::windows_core::Interface::as_raw(self)).ok() @@ -7513,14 +6922,14 @@ impl IUIAutomationElement3 { } pub unsafe fn GetCurrentPatternAs(&self, patternid: UIA_PATTERN_ID) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.GetCurrentPatternAs)(::windows_core::Interface::as_raw(self), patternid, &T::IID, &mut result__).from_abi(result__) } pub unsafe fn GetCachedPatternAs(&self, patternid: UIA_PATTERN_ID) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.GetCachedPatternAs)(::windows_core::Interface::as_raw(self), patternid, &T::IID, &mut result__).from_abi(result__) @@ -7836,13 +7245,6 @@ impl IUIAutomationElement3 { (::windows_core::Interface::vtable(self).CachedIsPeripheral)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUIAutomationElement3, ::windows_core::IUnknown, IUIAutomationElement, IUIAutomationElement2); -unsafe impl ::windows_core::Interface for IUIAutomationElement3 { - type Vtable = IUIAutomationElement3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomationElement3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8471df34_aee0_4a01_a7de_7db9af12c296); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomationElement3_Vtbl { @@ -7851,9 +7253,8 @@ pub struct IUIAutomationElement3_Vtbl { pub CurrentIsPeripheral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub CachedIsPeripheral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomationElement4(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomationElement4, IUIAutomationElement4_Vtbl, 0x3b6e233c_52fb_4063_a4c9_77c075c2a06b); +::windows_core::imp::interface_hierarchy!(IUIAutomationElement4, ::windows_core::IUnknown, IUIAutomationElement, IUIAutomationElement2, IUIAutomationElement3); impl IUIAutomationElement4 { pub unsafe fn SetFocus(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.SetFocus)(::windows_core::Interface::as_raw(self)).ok() @@ -7933,14 +7334,14 @@ impl IUIAutomationElement4 { } pub unsafe fn GetCurrentPatternAs(&self, patternid: UIA_PATTERN_ID) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.GetCurrentPatternAs)(::windows_core::Interface::as_raw(self), patternid, &T::IID, &mut result__).from_abi(result__) } pub unsafe fn GetCachedPatternAs(&self, patternid: UIA_PATTERN_ID) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.GetCachedPatternAs)(::windows_core::Interface::as_raw(self), patternid, &T::IID, &mut result__).from_abi(result__) @@ -8300,13 +7701,6 @@ impl IUIAutomationElement4 { (::windows_core::Interface::vtable(self).CachedAnnotationObjects)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUIAutomationElement4, ::windows_core::IUnknown, IUIAutomationElement, IUIAutomationElement2, IUIAutomationElement3); -unsafe impl ::windows_core::Interface for IUIAutomationElement4 { - type Vtable = IUIAutomationElement4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomationElement4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3b6e233c_52fb_4063_a4c9_77c075c2a06b); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomationElement4_Vtbl { @@ -8328,9 +7722,8 @@ pub struct IUIAutomationElement4_Vtbl { CachedAnnotationTypes: usize, pub CachedAnnotationObjects: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomationElement5(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomationElement5, IUIAutomationElement5_Vtbl, 0x98141c1d_0d0e_4175_bbe2_6bff455842a7); +::windows_core::imp::interface_hierarchy!(IUIAutomationElement5, ::windows_core::IUnknown, IUIAutomationElement, IUIAutomationElement2, IUIAutomationElement3, IUIAutomationElement4); impl IUIAutomationElement5 { pub unsafe fn SetFocus(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.SetFocus)(::windows_core::Interface::as_raw(self)).ok() @@ -8410,14 +7803,14 @@ impl IUIAutomationElement5 { } pub unsafe fn GetCurrentPatternAs(&self, patternid: UIA_PATTERN_ID) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.GetCurrentPatternAs)(::windows_core::Interface::as_raw(self), patternid, &T::IID, &mut result__).from_abi(result__) } pub unsafe fn GetCachedPatternAs(&self, patternid: UIA_PATTERN_ID) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.GetCachedPatternAs)(::windows_core::Interface::as_raw(self), patternid, &T::IID, &mut result__).from_abi(result__) @@ -8793,13 +8186,6 @@ impl IUIAutomationElement5 { (::windows_core::Interface::vtable(self).CachedLocalizedLandmarkType)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUIAutomationElement5, ::windows_core::IUnknown, IUIAutomationElement, IUIAutomationElement2, IUIAutomationElement3, IUIAutomationElement4); -unsafe impl ::windows_core::Interface for IUIAutomationElement5 { - type Vtable = IUIAutomationElement5_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomationElement5 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x98141c1d_0d0e_4175_bbe2_6bff455842a7); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomationElement5_Vtbl { @@ -8809,9 +8195,8 @@ pub struct IUIAutomationElement5_Vtbl { pub CachedLandmarkType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut UIA_LANDMARKTYPE_ID) -> ::windows_core::HRESULT, pub CachedLocalizedLandmarkType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomationElement6(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomationElement6, IUIAutomationElement6_Vtbl, 0x4780d450_8bca_4977_afa5_a4a517f555e3); +::windows_core::imp::interface_hierarchy!(IUIAutomationElement6, ::windows_core::IUnknown, IUIAutomationElement, IUIAutomationElement2, IUIAutomationElement3, IUIAutomationElement4, IUIAutomationElement5); impl IUIAutomationElement6 { pub unsafe fn SetFocus(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.SetFocus)(::windows_core::Interface::as_raw(self)).ok() @@ -8891,14 +8276,14 @@ impl IUIAutomationElement6 { } pub unsafe fn GetCurrentPatternAs(&self, patternid: UIA_PATTERN_ID) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.GetCurrentPatternAs)(::windows_core::Interface::as_raw(self), patternid, &T::IID, &mut result__).from_abi(result__) } pub unsafe fn GetCachedPatternAs(&self, patternid: UIA_PATTERN_ID) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.GetCachedPatternAs)(::windows_core::Interface::as_raw(self), patternid, &T::IID, &mut result__).from_abi(result__) @@ -9282,13 +8667,6 @@ impl IUIAutomationElement6 { (::windows_core::Interface::vtable(self).CachedFullDescription)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUIAutomationElement6, ::windows_core::IUnknown, IUIAutomationElement, IUIAutomationElement2, IUIAutomationElement3, IUIAutomationElement4, IUIAutomationElement5); -unsafe impl ::windows_core::Interface for IUIAutomationElement6 { - type Vtable = IUIAutomationElement6_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomationElement6 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4780d450_8bca_4977_afa5_a4a517f555e3); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomationElement6_Vtbl { @@ -9296,9 +8674,8 @@ pub struct IUIAutomationElement6_Vtbl { pub CurrentFullDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub CachedFullDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomationElement7(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomationElement7, IUIAutomationElement7_Vtbl, 0x204e8572_cfc3_4c11_b0c8_7da7420750b7); +::windows_core::imp::interface_hierarchy!(IUIAutomationElement7, ::windows_core::IUnknown, IUIAutomationElement, IUIAutomationElement2, IUIAutomationElement3, IUIAutomationElement4, IUIAutomationElement5, IUIAutomationElement6); impl IUIAutomationElement7 { pub unsafe fn SetFocus(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.SetFocus)(::windows_core::Interface::as_raw(self)).ok() @@ -9378,14 +8755,14 @@ impl IUIAutomationElement7 { } pub unsafe fn GetCurrentPatternAs(&self, patternid: UIA_PATTERN_ID) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.GetCurrentPatternAs)(::windows_core::Interface::as_raw(self), patternid, &T::IID, &mut result__).from_abi(result__) } pub unsafe fn GetCachedPatternAs(&self, patternid: UIA_PATTERN_ID) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.GetCachedPatternAs)(::windows_core::Interface::as_raw(self), patternid, &T::IID, &mut result__).from_abi(result__) @@ -9809,13 +9186,6 @@ impl IUIAutomationElement7 { (::windows_core::Interface::vtable(self).GetCurrentMetadataValue)(::windows_core::Interface::as_raw(self), targetid, metadataid, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUIAutomationElement7, ::windows_core::IUnknown, IUIAutomationElement, IUIAutomationElement2, IUIAutomationElement3, IUIAutomationElement4, IUIAutomationElement5, IUIAutomationElement6); -unsafe impl ::windows_core::Interface for IUIAutomationElement7 { - type Vtable = IUIAutomationElement7_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomationElement7 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x204e8572_cfc3_4c11_b0c8_7da7420750b7); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomationElement7_Vtbl { @@ -9829,9 +9199,8 @@ pub struct IUIAutomationElement7_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] GetCurrentMetadataValue: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomationElement8(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomationElement8, IUIAutomationElement8_Vtbl, 0x8c60217d_5411_4cde_bcc0_1ceda223830c); +::windows_core::imp::interface_hierarchy!(IUIAutomationElement8, ::windows_core::IUnknown, IUIAutomationElement, IUIAutomationElement2, IUIAutomationElement3, IUIAutomationElement4, IUIAutomationElement5, IUIAutomationElement6, IUIAutomationElement7); impl IUIAutomationElement8 { pub unsafe fn SetFocus(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.SetFocus)(::windows_core::Interface::as_raw(self)).ok() @@ -9911,14 +9280,14 @@ impl IUIAutomationElement8 { } pub unsafe fn GetCurrentPatternAs(&self, patternid: UIA_PATTERN_ID) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.GetCurrentPatternAs)(::windows_core::Interface::as_raw(self), patternid, &T::IID, &mut result__).from_abi(result__) } pub unsafe fn GetCachedPatternAs(&self, patternid: UIA_PATTERN_ID) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.GetCachedPatternAs)(::windows_core::Interface::as_raw(self), patternid, &T::IID, &mut result__).from_abi(result__) @@ -10350,13 +9719,6 @@ impl IUIAutomationElement8 { (::windows_core::Interface::vtable(self).CachedHeadingLevel)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUIAutomationElement8, ::windows_core::IUnknown, IUIAutomationElement, IUIAutomationElement2, IUIAutomationElement3, IUIAutomationElement4, IUIAutomationElement5, IUIAutomationElement6, IUIAutomationElement7); -unsafe impl ::windows_core::Interface for IUIAutomationElement8 { - type Vtable = IUIAutomationElement8_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomationElement8 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8c60217d_5411_4cde_bcc0_1ceda223830c); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomationElement8_Vtbl { @@ -10364,9 +9726,8 @@ pub struct IUIAutomationElement8_Vtbl { pub CurrentHeadingLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut UIA_HEADINGLEVEL_ID) -> ::windows_core::HRESULT, pub CachedHeadingLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut UIA_HEADINGLEVEL_ID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomationElement9(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomationElement9, IUIAutomationElement9_Vtbl, 0x39325fac_039d_440e_a3a3_5eb81a5cecc3); +::windows_core::imp::interface_hierarchy!(IUIAutomationElement9, ::windows_core::IUnknown, IUIAutomationElement, IUIAutomationElement2, IUIAutomationElement3, IUIAutomationElement4, IUIAutomationElement5, IUIAutomationElement6, IUIAutomationElement7, IUIAutomationElement8); impl IUIAutomationElement9 { pub unsafe fn SetFocus(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.SetFocus)(::windows_core::Interface::as_raw(self)).ok() @@ -10446,14 +9807,14 @@ impl IUIAutomationElement9 { } pub unsafe fn GetCurrentPatternAs(&self, patternid: UIA_PATTERN_ID) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.GetCurrentPatternAs)(::windows_core::Interface::as_raw(self), patternid, &T::IID, &mut result__).from_abi(result__) } pub unsafe fn GetCachedPatternAs(&self, patternid: UIA_PATTERN_ID) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.GetCachedPatternAs)(::windows_core::Interface::as_raw(self), patternid, &T::IID, &mut result__).from_abi(result__) @@ -10893,13 +10254,6 @@ impl IUIAutomationElement9 { (::windows_core::Interface::vtable(self).CachedIsDialog)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUIAutomationElement9, ::windows_core::IUnknown, IUIAutomationElement, IUIAutomationElement2, IUIAutomationElement3, IUIAutomationElement4, IUIAutomationElement5, IUIAutomationElement6, IUIAutomationElement7, IUIAutomationElement8); -unsafe impl ::windows_core::Interface for IUIAutomationElement9 { - type Vtable = IUIAutomationElement9_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomationElement9 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x39325fac_039d_440e_a3a3_5eb81a5cecc3); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomationElement9_Vtbl { @@ -10907,9 +10261,8 @@ pub struct IUIAutomationElement9_Vtbl { pub CurrentIsDialog: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub CachedIsDialog: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomationElementArray(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomationElementArray, IUIAutomationElementArray_Vtbl, 0x14314595_b4bc_4055_95f2_58f2e42c9855); +::windows_core::imp::interface_hierarchy!(IUIAutomationElementArray, ::windows_core::IUnknown); impl IUIAutomationElementArray { pub unsafe fn Length(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -10920,13 +10273,6 @@ impl IUIAutomationElementArray { (::windows_core::Interface::vtable(self).GetElement)(::windows_core::Interface::as_raw(self), index, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUIAutomationElementArray, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAutomationElementArray { - type Vtable = IUIAutomationElementArray_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomationElementArray { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x14314595_b4bc_4055_95f2_58f2e42c9855); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomationElementArray_Vtbl { @@ -10934,9 +10280,8 @@ pub struct IUIAutomationElementArray_Vtbl { pub Length: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, length: *mut i32) -> ::windows_core::HRESULT, pub GetElement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32, element: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomationEventHandler(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomationEventHandler, IUIAutomationEventHandler_Vtbl, 0x146c3c17_f12e_4e22_8c27_f894b9b79c69); +::windows_core::imp::interface_hierarchy!(IUIAutomationEventHandler, ::windows_core::IUnknown); impl IUIAutomationEventHandler { pub unsafe fn HandleAutomationEvent(&self, sender: P0, eventid: UIA_EVENT_ID) -> ::windows_core::Result<()> where @@ -10945,22 +10290,14 @@ impl IUIAutomationEventHandler { (::windows_core::Interface::vtable(self).HandleAutomationEvent)(::windows_core::Interface::as_raw(self), sender.into_param().abi(), eventid).ok() } } -::windows_core::imp::interface_hierarchy!(IUIAutomationEventHandler, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAutomationEventHandler { - type Vtable = IUIAutomationEventHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomationEventHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x146c3c17_f12e_4e22_8c27_f894b9b79c69); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomationEventHandler_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub HandleAutomationEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sender: *mut ::core::ffi::c_void, eventid: UIA_EVENT_ID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomationEventHandlerGroup(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomationEventHandlerGroup, IUIAutomationEventHandlerGroup_Vtbl, 0xc9ee12f2_c13b_4408_997c_639914377f4e); +::windows_core::imp::interface_hierarchy!(IUIAutomationEventHandlerGroup, ::windows_core::IUnknown); impl IUIAutomationEventHandlerGroup { pub unsafe fn AddActiveTextPositionChangedEventHandler(&self, scope: TreeScope, cacherequest: P0, handler: P1) -> ::windows_core::Result<()> where @@ -11012,13 +10349,6 @@ impl IUIAutomationEventHandlerGroup { (::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::imp::interface_hierarchy!(IUIAutomationEventHandlerGroup, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAutomationEventHandlerGroup { - type Vtable = IUIAutomationEventHandlerGroup_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomationEventHandlerGroup { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc9ee12f2_c13b_4408_997c_639914377f4e); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomationEventHandlerGroup_Vtbl { @@ -11031,9 +10361,8 @@ pub struct IUIAutomationEventHandlerGroup_Vtbl { pub AddStructureChangedEventHandler: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, scope: TreeScope, cacherequest: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub AddTextEditTextChangedEventHandler: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, scope: TreeScope, texteditchangetype: TextEditChangeType, cacherequest: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomationExpandCollapsePattern(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomationExpandCollapsePattern, IUIAutomationExpandCollapsePattern_Vtbl, 0x619be086_1f4e_4ee4_bafa_210128738730); +::windows_core::imp::interface_hierarchy!(IUIAutomationExpandCollapsePattern, ::windows_core::IUnknown); impl IUIAutomationExpandCollapsePattern { pub unsafe fn Expand(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Expand)(::windows_core::Interface::as_raw(self)).ok() @@ -11048,14 +10377,7 @@ impl IUIAutomationExpandCollapsePattern { pub unsafe fn CachedExpandCollapseState(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).CachedExpandCollapseState)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) - } -} -::windows_core::imp::interface_hierarchy!(IUIAutomationExpandCollapsePattern, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAutomationExpandCollapsePattern { - type Vtable = IUIAutomationExpandCollapsePattern_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomationExpandCollapsePattern { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x619be086_1f4e_4ee4_bafa_210128738730); + } } #[repr(C)] #[doc(hidden)] @@ -11066,9 +10388,8 @@ pub struct IUIAutomationExpandCollapsePattern_Vtbl { pub CurrentExpandCollapseState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ExpandCollapseState) -> ::windows_core::HRESULT, pub CachedExpandCollapseState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ExpandCollapseState) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomationFocusChangedEventHandler(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomationFocusChangedEventHandler, IUIAutomationFocusChangedEventHandler_Vtbl, 0xc270f6b5_5c69_4290_9745_7a7f97169468); +::windows_core::imp::interface_hierarchy!(IUIAutomationFocusChangedEventHandler, ::windows_core::IUnknown); impl IUIAutomationFocusChangedEventHandler { pub unsafe fn HandleFocusChangedEvent(&self, sender: P0) -> ::windows_core::Result<()> where @@ -11077,22 +10398,14 @@ impl IUIAutomationFocusChangedEventHandler { (::windows_core::Interface::vtable(self).HandleFocusChangedEvent)(::windows_core::Interface::as_raw(self), sender.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IUIAutomationFocusChangedEventHandler, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAutomationFocusChangedEventHandler { - type Vtable = IUIAutomationFocusChangedEventHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomationFocusChangedEventHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc270f6b5_5c69_4290_9745_7a7f97169468); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomationFocusChangedEventHandler_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub HandleFocusChangedEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sender: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomationGridItemPattern(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomationGridItemPattern, IUIAutomationGridItemPattern_Vtbl, 0x78f8ef57_66c3_4e09_bd7c_e79b2004894d); +::windows_core::imp::interface_hierarchy!(IUIAutomationGridItemPattern, ::windows_core::IUnknown); impl IUIAutomationGridItemPattern { pub unsafe fn CurrentContainingGrid(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -11135,13 +10448,6 @@ impl IUIAutomationGridItemPattern { (::windows_core::Interface::vtable(self).CachedColumnSpan)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUIAutomationGridItemPattern, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAutomationGridItemPattern { - type Vtable = IUIAutomationGridItemPattern_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomationGridItemPattern { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x78f8ef57_66c3_4e09_bd7c_e79b2004894d); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomationGridItemPattern_Vtbl { @@ -11157,9 +10463,8 @@ pub struct IUIAutomationGridItemPattern_Vtbl { pub CachedRowSpan: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows_core::HRESULT, pub CachedColumnSpan: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomationGridPattern(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomationGridPattern, IUIAutomationGridPattern_Vtbl, 0x414c3cdc_856b_4f5b_8538_3131c6302550); +::windows_core::imp::interface_hierarchy!(IUIAutomationGridPattern, ::windows_core::IUnknown); impl IUIAutomationGridPattern { pub unsafe fn GetItem(&self, row: i32, column: i32) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -11182,13 +10487,6 @@ impl IUIAutomationGridPattern { (::windows_core::Interface::vtable(self).CachedColumnCount)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUIAutomationGridPattern, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAutomationGridPattern { - type Vtable = IUIAutomationGridPattern_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomationGridPattern { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x414c3cdc_856b_4f5b_8538_3131c6302550); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomationGridPattern_Vtbl { @@ -11199,30 +10497,21 @@ pub struct IUIAutomationGridPattern_Vtbl { pub CachedRowCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows_core::HRESULT, pub CachedColumnCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomationInvokePattern(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomationInvokePattern, IUIAutomationInvokePattern_Vtbl, 0xfb377fbe_8ea6_46d5_9c73_6499642d3059); +::windows_core::imp::interface_hierarchy!(IUIAutomationInvokePattern, ::windows_core::IUnknown); impl IUIAutomationInvokePattern { pub unsafe fn Invoke(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Invoke)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IUIAutomationInvokePattern, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAutomationInvokePattern { - type Vtable = IUIAutomationInvokePattern_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomationInvokePattern { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfb377fbe_8ea6_46d5_9c73_6499642d3059); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomationInvokePattern_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Invoke: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomationItemContainerPattern(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomationItemContainerPattern, IUIAutomationItemContainerPattern_Vtbl, 0xc690fdb2_27a8_423c_812d_429773c9084e); +::windows_core::imp::interface_hierarchy!(IUIAutomationItemContainerPattern, ::windows_core::IUnknown); impl IUIAutomationItemContainerPattern { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -11234,13 +10523,6 @@ impl IUIAutomationItemContainerPattern { (::windows_core::Interface::vtable(self).FindItemByProperty)(::windows_core::Interface::as_raw(self), pstartafter.into_param().abi(), propertyid, ::core::mem::transmute(value), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUIAutomationItemContainerPattern, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAutomationItemContainerPattern { - type Vtable = IUIAutomationItemContainerPattern_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomationItemContainerPattern { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc690fdb2_27a8_423c_812d_429773c9084e); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomationItemContainerPattern_Vtbl { @@ -11250,9 +10532,8 @@ pub struct IUIAutomationItemContainerPattern_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] FindItemByProperty: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomationLegacyIAccessiblePattern(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomationLegacyIAccessiblePattern, IUIAutomationLegacyIAccessiblePattern_Vtbl, 0x828055ad_355b_4435_86d5_3b51c14a9b1b); +::windows_core::imp::interface_hierarchy!(IUIAutomationLegacyIAccessiblePattern, ::windows_core::IUnknown); impl IUIAutomationLegacyIAccessiblePattern { pub unsafe fn Select(&self, flagsselect: i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Select)(::windows_core::Interface::as_raw(self), flagsselect).ok() @@ -11353,13 +10634,6 @@ impl IUIAutomationLegacyIAccessiblePattern { (::windows_core::Interface::vtable(self).GetIAccessible)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUIAutomationLegacyIAccessiblePattern, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAutomationLegacyIAccessiblePattern { - type Vtable = IUIAutomationLegacyIAccessiblePattern_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomationLegacyIAccessiblePattern { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x828055ad_355b_4435_86d5_3b51c14a9b1b); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomationLegacyIAccessiblePattern_Vtbl { @@ -11392,9 +10666,8 @@ pub struct IUIAutomationLegacyIAccessiblePattern_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetIAccessible: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomationMultipleViewPattern(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomationMultipleViewPattern, IUIAutomationMultipleViewPattern_Vtbl, 0x8d253c91_1dc5_4bb5_b18f_ade16fa495e8); +::windows_core::imp::interface_hierarchy!(IUIAutomationMultipleViewPattern, ::windows_core::IUnknown); impl IUIAutomationMultipleViewPattern { pub unsafe fn GetViewName(&self, view: i32) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -11424,13 +10697,6 @@ impl IUIAutomationMultipleViewPattern { (::windows_core::Interface::vtable(self).GetCachedSupportedViews)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUIAutomationMultipleViewPattern, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAutomationMultipleViewPattern { - type Vtable = IUIAutomationMultipleViewPattern_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomationMultipleViewPattern { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8d253c91_1dc5_4bb5_b18f_ade16fa495e8); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomationMultipleViewPattern_Vtbl { @@ -11448,31 +10714,22 @@ pub struct IUIAutomationMultipleViewPattern_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetCachedSupportedViews: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomationNotCondition(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomationNotCondition, IUIAutomationNotCondition_Vtbl, 0xf528b657_847b_498c_8896_d52b565407a1); +::windows_core::imp::interface_hierarchy!(IUIAutomationNotCondition, ::windows_core::IUnknown, IUIAutomationCondition); impl IUIAutomationNotCondition { pub unsafe fn GetChild(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetChild)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUIAutomationNotCondition, ::windows_core::IUnknown, IUIAutomationCondition); -unsafe impl ::windows_core::Interface for IUIAutomationNotCondition { - type Vtable = IUIAutomationNotCondition_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomationNotCondition { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf528b657_847b_498c_8896_d52b565407a1); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomationNotCondition_Vtbl { pub base__: IUIAutomationCondition_Vtbl, pub GetChild: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, condition: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomationNotificationEventHandler(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomationNotificationEventHandler, IUIAutomationNotificationEventHandler_Vtbl, 0xc7cb2637_e6c2_4d0c_85de_4948c02175c7); +::windows_core::imp::interface_hierarchy!(IUIAutomationNotificationEventHandler, ::windows_core::IUnknown); impl IUIAutomationNotificationEventHandler { pub unsafe fn HandleNotificationEvent(&self, sender: P0, notificationkind: NotificationKind, notificationprocessing: NotificationProcessing, displaystring: P1, activityid: P2) -> ::windows_core::Result<()> where @@ -11483,44 +10740,28 @@ impl IUIAutomationNotificationEventHandler { (::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::imp::interface_hierarchy!(IUIAutomationNotificationEventHandler, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAutomationNotificationEventHandler { - type Vtable = IUIAutomationNotificationEventHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomationNotificationEventHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc7cb2637_e6c2_4d0c_85de_4948c02175c7); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomationNotificationEventHandler_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub HandleNotificationEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sender: *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, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomationObjectModelPattern(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomationObjectModelPattern, IUIAutomationObjectModelPattern_Vtbl, 0x71c284b3_c14d_4d14_981e_19751b0d756d); +::windows_core::imp::interface_hierarchy!(IUIAutomationObjectModelPattern, ::windows_core::IUnknown); impl IUIAutomationObjectModelPattern { pub unsafe fn GetUnderlyingObjectModel(&self) -> ::windows_core::Result<::windows_core::IUnknown> { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetUnderlyingObjectModel)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUIAutomationObjectModelPattern, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAutomationObjectModelPattern { - type Vtable = IUIAutomationObjectModelPattern_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomationObjectModelPattern { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x71c284b3_c14d_4d14_981e_19751b0d756d); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomationObjectModelPattern_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetUnderlyingObjectModel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomationOrCondition(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomationOrCondition, IUIAutomationOrCondition_Vtbl, 0x8753f032_3db1_47b5_a1fc_6e34a266c712); +::windows_core::imp::interface_hierarchy!(IUIAutomationOrCondition, ::windows_core::IUnknown, IUIAutomationCondition); impl IUIAutomationOrCondition { pub unsafe fn ChildCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -11536,13 +10777,6 @@ impl IUIAutomationOrCondition { (::windows_core::Interface::vtable(self).GetChildren)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUIAutomationOrCondition, ::windows_core::IUnknown, IUIAutomationCondition); -unsafe impl ::windows_core::Interface for IUIAutomationOrCondition { - type Vtable = IUIAutomationOrCondition_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomationOrCondition { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8753f032_3db1_47b5_a1fc_6e34a266c712); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomationOrCondition_Vtbl { @@ -11554,9 +10788,8 @@ pub struct IUIAutomationOrCondition_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetChildren: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomationPatternHandler(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomationPatternHandler, IUIAutomationPatternHandler_Vtbl, 0xd97022f3_a947_465e_8b2a_ac4315fa54e8); +::windows_core::imp::interface_hierarchy!(IUIAutomationPatternHandler, ::windows_core::IUnknown); impl IUIAutomationPatternHandler { pub unsafe fn CreateClientWrapper(&self, ppatterninstance: P0) -> ::windows_core::Result<::windows_core::IUnknown> where @@ -11572,13 +10805,6 @@ impl IUIAutomationPatternHandler { (::windows_core::Interface::vtable(self).Dispatch)(::windows_core::Interface::as_raw(self), ptarget.into_param().abi(), index, pparams, cparams).ok() } } -::windows_core::imp::interface_hierarchy!(IUIAutomationPatternHandler, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAutomationPatternHandler { - type Vtable = IUIAutomationPatternHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomationPatternHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd97022f3_a947_465e_8b2a_ac4315fa54e8); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomationPatternHandler_Vtbl { @@ -11586,9 +10812,8 @@ pub struct IUIAutomationPatternHandler_Vtbl { pub CreateClientWrapper: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppatterninstance: *mut ::core::ffi::c_void, pclientwrapper: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Dispatch: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptarget: *mut ::core::ffi::c_void, index: u32, pparams: *const UIAutomationParameter, cparams: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomationPatternInstance(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomationPatternInstance, IUIAutomationPatternInstance_Vtbl, 0xc03a7fe4_9431_409f_bed8_ae7c2299bc8d); +::windows_core::imp::interface_hierarchy!(IUIAutomationPatternInstance, ::windows_core::IUnknown); impl IUIAutomationPatternInstance { pub unsafe fn GetProperty(&self, index: u32, cached: P0, r#type: UIAutomationType, pptr: *mut ::core::ffi::c_void) -> ::windows_core::Result<()> where @@ -11600,13 +10825,6 @@ impl IUIAutomationPatternInstance { (::windows_core::Interface::vtable(self).CallMethod)(::windows_core::Interface::as_raw(self), index, pparams, cparams).ok() } } -::windows_core::imp::interface_hierarchy!(IUIAutomationPatternInstance, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAutomationPatternInstance { - type Vtable = IUIAutomationPatternInstance_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomationPatternInstance { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc03a7fe4_9431_409f_bed8_ae7c2299bc8d); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomationPatternInstance_Vtbl { @@ -11614,9 +10832,8 @@ pub struct IUIAutomationPatternInstance_Vtbl { pub GetProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, cached: super::super::Foundation::BOOL, r#type: UIAutomationType, pptr: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CallMethod: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, pparams: *const UIAutomationParameter, cparams: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomationPropertyChangedEventHandler(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomationPropertyChangedEventHandler, IUIAutomationPropertyChangedEventHandler_Vtbl, 0x40cd37d4_c756_4b0c_8c6f_bddfeeb13b50); +::windows_core::imp::interface_hierarchy!(IUIAutomationPropertyChangedEventHandler, ::windows_core::IUnknown); impl IUIAutomationPropertyChangedEventHandler { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -11627,13 +10844,6 @@ impl IUIAutomationPropertyChangedEventHandler { (::windows_core::Interface::vtable(self).HandlePropertyChangedEvent)(::windows_core::Interface::as_raw(self), sender.into_param().abi(), propertyid, ::core::mem::transmute(newvalue)).ok() } } -::windows_core::imp::interface_hierarchy!(IUIAutomationPropertyChangedEventHandler, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAutomationPropertyChangedEventHandler { - type Vtable = IUIAutomationPropertyChangedEventHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomationPropertyChangedEventHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x40cd37d4_c756_4b0c_8c6f_bddfeeb13b50); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomationPropertyChangedEventHandler_Vtbl { @@ -11643,9 +10853,8 @@ pub struct IUIAutomationPropertyChangedEventHandler_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] HandlePropertyChangedEvent: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomationPropertyCondition(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomationPropertyCondition, IUIAutomationPropertyCondition_Vtbl, 0x99ebf2cb_5578_4267_9ad4_afd6ea77e94b); +::windows_core::imp::interface_hierarchy!(IUIAutomationPropertyCondition, ::windows_core::IUnknown, IUIAutomationCondition); impl IUIAutomationPropertyCondition { pub unsafe fn PropertyId(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -11662,13 +10871,6 @@ impl IUIAutomationPropertyCondition { (::windows_core::Interface::vtable(self).PropertyConditionFlags)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUIAutomationPropertyCondition, ::windows_core::IUnknown, IUIAutomationCondition); -unsafe impl ::windows_core::Interface for IUIAutomationPropertyCondition { - type Vtable = IUIAutomationPropertyCondition_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomationPropertyCondition { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x99ebf2cb_5578_4267_9ad4_afd6ea77e94b); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomationPropertyCondition_Vtbl { @@ -11680,9 +10882,8 @@ pub struct IUIAutomationPropertyCondition_Vtbl { PropertyValue: usize, pub PropertyConditionFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: *mut PropertyConditionFlags) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomationProxyFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomationProxyFactory, IUIAutomationProxyFactory_Vtbl, 0x85b94ecd_849d_42b6_b94d_d6db23fdf5a4); +::windows_core::imp::interface_hierarchy!(IUIAutomationProxyFactory, ::windows_core::IUnknown); impl IUIAutomationProxyFactory { pub unsafe fn CreateProvider(&self, hwnd: P0, idobject: i32, idchild: i32) -> ::windows_core::Result where @@ -11696,13 +10897,6 @@ impl IUIAutomationProxyFactory { (::windows_core::Interface::vtable(self).ProxyFactoryId)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUIAutomationProxyFactory, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAutomationProxyFactory { - type Vtable = IUIAutomationProxyFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomationProxyFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x85b94ecd_849d_42b6_b94d_d6db23fdf5a4); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomationProxyFactory_Vtbl { @@ -11710,9 +10904,8 @@ pub struct IUIAutomationProxyFactory_Vtbl { pub CreateProvider: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwnd: super::super::Foundation::HWND, idobject: i32, idchild: i32, provider: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ProxyFactoryId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, factoryid: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomationProxyFactoryEntry(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomationProxyFactoryEntry, IUIAutomationProxyFactoryEntry_Vtbl, 0xd50e472e_b64b_490c_bca1_d30696f9f289); +::windows_core::imp::interface_hierarchy!(IUIAutomationProxyFactoryEntry, ::windows_core::IUnknown); impl IUIAutomationProxyFactoryEntry { pub unsafe fn ProxyFactory(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -11780,13 +10973,6 @@ impl IUIAutomationProxyFactoryEntry { (::windows_core::Interface::vtable(self).GetWinEventsForAutomationEvent)(::windows_core::Interface::as_raw(self), eventid, propertyid, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUIAutomationProxyFactoryEntry, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAutomationProxyFactoryEntry { - type Vtable = IUIAutomationProxyFactoryEntry_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomationProxyFactoryEntry { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd50e472e_b64b_490c_bca1_d30696f9f289); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomationProxyFactoryEntry_Vtbl { @@ -11811,9 +10997,8 @@ pub struct IUIAutomationProxyFactoryEntry_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetWinEventsForAutomationEvent: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomationProxyFactoryMapping(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomationProxyFactoryMapping, IUIAutomationProxyFactoryMapping_Vtbl, 0x09e31e18_872d_4873_93d1_1e541ec133fd); +::windows_core::imp::interface_hierarchy!(IUIAutomationProxyFactoryMapping, ::windows_core::IUnknown); impl IUIAutomationProxyFactoryMapping { pub unsafe fn Count(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -11855,13 +11040,6 @@ impl IUIAutomationProxyFactoryMapping { (::windows_core::Interface::vtable(self).RestoreDefaultTable)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IUIAutomationProxyFactoryMapping, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAutomationProxyFactoryMapping { - type Vtable = IUIAutomationProxyFactoryMapping_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomationProxyFactoryMapping { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x09e31e18_872d_4873_93d1_1e541ec133fd); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomationProxyFactoryMapping_Vtbl { @@ -11885,9 +11063,8 @@ pub struct IUIAutomationProxyFactoryMapping_Vtbl { pub ClearTable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RestoreDefaultTable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomationRangeValuePattern(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomationRangeValuePattern, IUIAutomationRangeValuePattern_Vtbl, 0x59213f4f_7346_49e5_b120_80555987a148); +::windows_core::imp::interface_hierarchy!(IUIAutomationRangeValuePattern, ::windows_core::IUnknown); impl IUIAutomationRangeValuePattern { pub unsafe fn SetValue(&self, val: f64) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetValue)(::windows_core::Interface::as_raw(self), val).ok() @@ -11941,13 +11118,6 @@ impl IUIAutomationRangeValuePattern { (::windows_core::Interface::vtable(self).CachedSmallChange)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUIAutomationRangeValuePattern, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAutomationRangeValuePattern { - type Vtable = IUIAutomationRangeValuePattern_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomationRangeValuePattern { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x59213f4f_7346_49e5_b120_80555987a148); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomationRangeValuePattern_Vtbl { @@ -11966,9 +11136,8 @@ pub struct IUIAutomationRangeValuePattern_Vtbl { pub CachedLargeChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut f64) -> ::windows_core::HRESULT, pub CachedSmallChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut f64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomationRegistrar(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomationRegistrar, IUIAutomationRegistrar_Vtbl, 0x8609c4ec_4a1a_4d88_a357_5a66e060e1cf); +::windows_core::imp::interface_hierarchy!(IUIAutomationRegistrar, ::windows_core::IUnknown); impl IUIAutomationRegistrar { pub unsafe fn RegisterProperty(&self, property: *const UIAutomationPropertyInfo) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -11982,13 +11151,6 @@ impl IUIAutomationRegistrar { (::windows_core::Interface::vtable(self).RegisterPattern)(::windows_core::Interface::as_raw(self), pattern, ppatternid, ppatternavailablepropertyid, ppropertyids.len().try_into().unwrap(), ::core::mem::transmute(ppropertyids.as_ptr()), peventids.len().try_into().unwrap(), ::core::mem::transmute(peventids.as_ptr())).ok() } } -::windows_core::imp::interface_hierarchy!(IUIAutomationRegistrar, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAutomationRegistrar { - type Vtable = IUIAutomationRegistrar_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomationRegistrar { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8609c4ec_4a1a_4d88_a357_5a66e060e1cf); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomationRegistrar_Vtbl { @@ -11997,30 +11159,21 @@ pub struct IUIAutomationRegistrar_Vtbl { pub RegisterEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, event: *const UIAutomationEventInfo, eventid: *mut i32) -> ::windows_core::HRESULT, pub RegisterPattern: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pattern: *const UIAutomationPatternInfo, ppatternid: *mut i32, ppatternavailablepropertyid: *mut i32, propertyidcount: u32, ppropertyids: *mut i32, eventidcount: u32, peventids: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomationScrollItemPattern(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomationScrollItemPattern, IUIAutomationScrollItemPattern_Vtbl, 0xb488300f_d015_4f19_9c29_bb595e3645ef); +::windows_core::imp::interface_hierarchy!(IUIAutomationScrollItemPattern, ::windows_core::IUnknown); impl IUIAutomationScrollItemPattern { pub unsafe fn ScrollIntoView(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).ScrollIntoView)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IUIAutomationScrollItemPattern, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAutomationScrollItemPattern { - type Vtable = IUIAutomationScrollItemPattern_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomationScrollItemPattern { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb488300f_d015_4f19_9c29_bb595e3645ef); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomationScrollItemPattern_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub ScrollIntoView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomationScrollPattern(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomationScrollPattern, IUIAutomationScrollPattern_Vtbl, 0x88f4d42a_e881_459d_a77c_73bbbb7e02dc); +::windows_core::imp::interface_hierarchy!(IUIAutomationScrollPattern, ::windows_core::IUnknown); impl IUIAutomationScrollPattern { pub unsafe fn Scroll(&self, horizontalamount: ScrollAmount, verticalamount: ScrollAmount) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Scroll)(::windows_core::Interface::as_raw(self), horizontalamount, verticalamount).ok() @@ -12077,13 +11230,6 @@ impl IUIAutomationScrollPattern { (::windows_core::Interface::vtable(self).CachedVerticallyScrollable)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUIAutomationScrollPattern, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAutomationScrollPattern { - type Vtable = IUIAutomationScrollPattern_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomationScrollPattern { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x88f4d42a_e881_459d_a77c_73bbbb7e02dc); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomationScrollPattern_Vtbl { @@ -12103,9 +11249,8 @@ pub struct IUIAutomationScrollPattern_Vtbl { pub CachedHorizontallyScrollable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub CachedVerticallyScrollable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomationSelectionItemPattern(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomationSelectionItemPattern, IUIAutomationSelectionItemPattern_Vtbl, 0xa8efa66a_0fda_421a_9194_38021f3578ea); +::windows_core::imp::interface_hierarchy!(IUIAutomationSelectionItemPattern, ::windows_core::IUnknown); impl IUIAutomationSelectionItemPattern { pub unsafe fn Select(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Select)(::windows_core::Interface::as_raw(self)).ok() @@ -12133,13 +11278,6 @@ impl IUIAutomationSelectionItemPattern { (::windows_core::Interface::vtable(self).CachedSelectionContainer)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUIAutomationSelectionItemPattern, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAutomationSelectionItemPattern { - type Vtable = IUIAutomationSelectionItemPattern_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomationSelectionItemPattern { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa8efa66a_0fda_421a_9194_38021f3578ea); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomationSelectionItemPattern_Vtbl { @@ -12152,9 +11290,8 @@ pub struct IUIAutomationSelectionItemPattern_Vtbl { pub CachedIsSelected: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub CachedSelectionContainer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomationSelectionPattern(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomationSelectionPattern, IUIAutomationSelectionPattern_Vtbl, 0x5ed5202e_b2ac_47a6_b638_4b0bf140d78e); +::windows_core::imp::interface_hierarchy!(IUIAutomationSelectionPattern, ::windows_core::IUnknown); impl IUIAutomationSelectionPattern { pub unsafe fn GetCurrentSelection(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -12181,13 +11318,6 @@ impl IUIAutomationSelectionPattern { (::windows_core::Interface::vtable(self).CachedIsSelectionRequired)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUIAutomationSelectionPattern, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAutomationSelectionPattern { - type Vtable = IUIAutomationSelectionPattern_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomationSelectionPattern { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5ed5202e_b2ac_47a6_b638_4b0bf140d78e); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomationSelectionPattern_Vtbl { @@ -12199,9 +11329,8 @@ pub struct IUIAutomationSelectionPattern_Vtbl { pub CachedCanSelectMultiple: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub CachedIsSelectionRequired: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomationSelectionPattern2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomationSelectionPattern2, IUIAutomationSelectionPattern2_Vtbl, 0x0532bfae_c011_4e32_a343_6d642d798555); +::windows_core::imp::interface_hierarchy!(IUIAutomationSelectionPattern2, ::windows_core::IUnknown, IUIAutomationSelectionPattern); impl IUIAutomationSelectionPattern2 { pub unsafe fn GetCurrentSelection(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -12260,13 +11389,6 @@ impl IUIAutomationSelectionPattern2 { (::windows_core::Interface::vtable(self).CachedItemCount)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUIAutomationSelectionPattern2, ::windows_core::IUnknown, IUIAutomationSelectionPattern); -unsafe impl ::windows_core::Interface for IUIAutomationSelectionPattern2 { - type Vtable = IUIAutomationSelectionPattern2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomationSelectionPattern2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0532bfae_c011_4e32_a343_6d642d798555); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomationSelectionPattern2_Vtbl { @@ -12280,9 +11402,8 @@ pub struct IUIAutomationSelectionPattern2_Vtbl { pub CachedCurrentSelectedItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CachedItemCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomationSpreadsheetItemPattern(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomationSpreadsheetItemPattern, IUIAutomationSpreadsheetItemPattern_Vtbl, 0x7d4fb86c_8d34_40e1_8e83_62c15204e335); +::windows_core::imp::interface_hierarchy!(IUIAutomationSpreadsheetItemPattern, ::windows_core::IUnknown); impl IUIAutomationSpreadsheetItemPattern { pub unsafe fn CurrentFormula(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -12313,13 +11434,6 @@ impl IUIAutomationSpreadsheetItemPattern { (::windows_core::Interface::vtable(self).GetCachedAnnotationTypes)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUIAutomationSpreadsheetItemPattern, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAutomationSpreadsheetItemPattern { - type Vtable = IUIAutomationSpreadsheetItemPattern_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomationSpreadsheetItemPattern { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7d4fb86c_8d34_40e1_8e83_62c15204e335); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomationSpreadsheetItemPattern_Vtbl { @@ -12337,9 +11451,8 @@ pub struct IUIAutomationSpreadsheetItemPattern_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetCachedAnnotationTypes: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomationSpreadsheetPattern(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomationSpreadsheetPattern, IUIAutomationSpreadsheetPattern_Vtbl, 0x7517a7c8_faae_4de9_9f08_29b91e8595c1); +::windows_core::imp::interface_hierarchy!(IUIAutomationSpreadsheetPattern, ::windows_core::IUnknown); impl IUIAutomationSpreadsheetPattern { pub unsafe fn GetItemByName(&self, name: P0) -> ::windows_core::Result where @@ -12349,22 +11462,14 @@ impl IUIAutomationSpreadsheetPattern { (::windows_core::Interface::vtable(self).GetItemByName)(::windows_core::Interface::as_raw(self), name.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUIAutomationSpreadsheetPattern, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAutomationSpreadsheetPattern { - type Vtable = IUIAutomationSpreadsheetPattern_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomationSpreadsheetPattern { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7517a7c8_faae_4de9_9f08_29b91e8595c1); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomationSpreadsheetPattern_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetItemByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows_core::BSTR>, element: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomationStructureChangedEventHandler(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomationStructureChangedEventHandler, IUIAutomationStructureChangedEventHandler_Vtbl, 0xe81d1b4e_11c5_42f8_9754_e7036c79f054); +::windows_core::imp::interface_hierarchy!(IUIAutomationStructureChangedEventHandler, ::windows_core::IUnknown); impl IUIAutomationStructureChangedEventHandler { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -12375,13 +11480,6 @@ impl IUIAutomationStructureChangedEventHandler { (::windows_core::Interface::vtable(self).HandleStructureChangedEvent)(::windows_core::Interface::as_raw(self), sender.into_param().abi(), changetype, runtimeid).ok() } } -::windows_core::imp::interface_hierarchy!(IUIAutomationStructureChangedEventHandler, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAutomationStructureChangedEventHandler { - type Vtable = IUIAutomationStructureChangedEventHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomationStructureChangedEventHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe81d1b4e_11c5_42f8_9754_e7036c79f054); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomationStructureChangedEventHandler_Vtbl { @@ -12391,9 +11489,8 @@ pub struct IUIAutomationStructureChangedEventHandler_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] HandleStructureChangedEvent: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomationStylesPattern(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomationStylesPattern, IUIAutomationStylesPattern_Vtbl, 0x85b5f0a2_bd79_484a_ad2b_388c9838d5fb); +::windows_core::imp::interface_hierarchy!(IUIAutomationStylesPattern, ::windows_core::IUnknown); impl IUIAutomationStylesPattern { pub unsafe fn CurrentStyleId(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -12458,13 +11555,6 @@ impl IUIAutomationStylesPattern { (::windows_core::Interface::vtable(self).GetCachedExtendedPropertiesAsArray)(::windows_core::Interface::as_raw(self), propertyarray, propertycount).ok() } } -::windows_core::imp::interface_hierarchy!(IUIAutomationStylesPattern, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAutomationStylesPattern { - type Vtable = IUIAutomationStylesPattern_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomationStylesPattern { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x85b5f0a2_bd79_484a_ad2b_388c9838d5fb); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomationStylesPattern_Vtbl { @@ -12486,9 +11576,8 @@ pub struct IUIAutomationStylesPattern_Vtbl { pub CachedExtendedProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub GetCachedExtendedPropertiesAsArray: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertyarray: *mut *mut ExtendedProperty, propertycount: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomationSynchronizedInputPattern(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomationSynchronizedInputPattern, IUIAutomationSynchronizedInputPattern_Vtbl, 0x2233be0b_afb7_448b_9fda_3b378aa5eae1); +::windows_core::imp::interface_hierarchy!(IUIAutomationSynchronizedInputPattern, ::windows_core::IUnknown); impl IUIAutomationSynchronizedInputPattern { pub unsafe fn StartListening(&self, inputtype: SynchronizedInputType) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).StartListening)(::windows_core::Interface::as_raw(self), inputtype).ok() @@ -12497,13 +11586,6 @@ impl IUIAutomationSynchronizedInputPattern { (::windows_core::Interface::vtable(self).Cancel)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IUIAutomationSynchronizedInputPattern, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAutomationSynchronizedInputPattern { - type Vtable = IUIAutomationSynchronizedInputPattern_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomationSynchronizedInputPattern { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2233be0b_afb7_448b_9fda_3b378aa5eae1); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomationSynchronizedInputPattern_Vtbl { @@ -12511,9 +11593,8 @@ pub struct IUIAutomationSynchronizedInputPattern_Vtbl { pub StartListening: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, inputtype: SynchronizedInputType) -> ::windows_core::HRESULT, pub Cancel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomationTableItemPattern(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomationTableItemPattern, IUIAutomationTableItemPattern_Vtbl, 0x0b964eb3_ef2e_4464_9c79_61d61737a27e); +::windows_core::imp::interface_hierarchy!(IUIAutomationTableItemPattern, ::windows_core::IUnknown); impl IUIAutomationTableItemPattern { pub unsafe fn GetCurrentRowHeaderItems(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -12532,13 +11613,6 @@ impl IUIAutomationTableItemPattern { (::windows_core::Interface::vtable(self).GetCachedColumnHeaderItems)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUIAutomationTableItemPattern, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAutomationTableItemPattern { - type Vtable = IUIAutomationTableItemPattern_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomationTableItemPattern { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0b964eb3_ef2e_4464_9c79_61d61737a27e); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomationTableItemPattern_Vtbl { @@ -12548,9 +11622,8 @@ pub struct IUIAutomationTableItemPattern_Vtbl { pub GetCachedRowHeaderItems: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetCachedColumnHeaderItems: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomationTablePattern(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomationTablePattern, IUIAutomationTablePattern_Vtbl, 0x620e691c_ea96_4710_a850_754b24ce2417); +::windows_core::imp::interface_hierarchy!(IUIAutomationTablePattern, ::windows_core::IUnknown); impl IUIAutomationTablePattern { pub unsafe fn GetCurrentRowHeaders(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -12577,13 +11650,6 @@ impl IUIAutomationTablePattern { (::windows_core::Interface::vtable(self).CachedRowOrColumnMajor)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUIAutomationTablePattern, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAutomationTablePattern { - type Vtable = IUIAutomationTablePattern_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomationTablePattern { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x620e691c_ea96_4710_a850_754b24ce2417); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomationTablePattern_Vtbl { @@ -12595,9 +11661,8 @@ pub struct IUIAutomationTablePattern_Vtbl { pub GetCachedColumnHeaders: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CachedRowOrColumnMajor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut RowOrColumnMajor) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomationTextChildPattern(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomationTextChildPattern, IUIAutomationTextChildPattern_Vtbl, 0x6552b038_ae05_40c8_abfd_aa08352aab86); +::windows_core::imp::interface_hierarchy!(IUIAutomationTextChildPattern, ::windows_core::IUnknown); impl IUIAutomationTextChildPattern { pub unsafe fn TextContainer(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -12608,13 +11673,6 @@ impl IUIAutomationTextChildPattern { (::windows_core::Interface::vtable(self).TextRange)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUIAutomationTextChildPattern, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAutomationTextChildPattern { - type Vtable = IUIAutomationTextChildPattern_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomationTextChildPattern { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6552b038_ae05_40c8_abfd_aa08352aab86); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomationTextChildPattern_Vtbl { @@ -12622,9 +11680,8 @@ pub struct IUIAutomationTextChildPattern_Vtbl { pub TextContainer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, container: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub TextRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, range: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomationTextEditPattern(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomationTextEditPattern, IUIAutomationTextEditPattern_Vtbl, 0x17e21576_996c_4870_99d9_bff323380c06); +::windows_core::imp::interface_hierarchy!(IUIAutomationTextEditPattern, ::windows_core::IUnknown, IUIAutomationTextPattern); impl IUIAutomationTextEditPattern { pub unsafe fn RangeFromPoint(&self, pt: super::super::Foundation::POINT) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -12662,13 +11719,6 @@ impl IUIAutomationTextEditPattern { (::windows_core::Interface::vtable(self).GetConversionTarget)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUIAutomationTextEditPattern, ::windows_core::IUnknown, IUIAutomationTextPattern); -unsafe impl ::windows_core::Interface for IUIAutomationTextEditPattern { - type Vtable = IUIAutomationTextEditPattern_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomationTextEditPattern { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x17e21576_996c_4870_99d9_bff323380c06); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomationTextEditPattern_Vtbl { @@ -12676,9 +11726,8 @@ pub struct IUIAutomationTextEditPattern_Vtbl { pub GetActiveComposition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, range: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetConversionTarget: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, range: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomationTextEditTextChangedEventHandler(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomationTextEditTextChangedEventHandler, IUIAutomationTextEditTextChangedEventHandler_Vtbl, 0x92faa680_e704_4156_931a_e32d5bb38f3f); +::windows_core::imp::interface_hierarchy!(IUIAutomationTextEditTextChangedEventHandler, ::windows_core::IUnknown); impl IUIAutomationTextEditTextChangedEventHandler { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -12689,13 +11738,6 @@ impl IUIAutomationTextEditTextChangedEventHandler { (::windows_core::Interface::vtable(self).HandleTextEditTextChangedEvent)(::windows_core::Interface::as_raw(self), sender.into_param().abi(), texteditchangetype, eventstrings).ok() } } -::windows_core::imp::interface_hierarchy!(IUIAutomationTextEditTextChangedEventHandler, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAutomationTextEditTextChangedEventHandler { - type Vtable = IUIAutomationTextEditTextChangedEventHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomationTextEditTextChangedEventHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x92faa680_e704_4156_931a_e32d5bb38f3f); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomationTextEditTextChangedEventHandler_Vtbl { @@ -12705,9 +11747,8 @@ pub struct IUIAutomationTextEditTextChangedEventHandler_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] HandleTextEditTextChangedEvent: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomationTextPattern(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomationTextPattern, IUIAutomationTextPattern_Vtbl, 0x32eba289_3583_42c9_9c59_3b6d9a1e9b6a); +::windows_core::imp::interface_hierarchy!(IUIAutomationTextPattern, ::windows_core::IUnknown); impl IUIAutomationTextPattern { pub unsafe fn RangeFromPoint(&self, pt: super::super::Foundation::POINT) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -12737,13 +11778,6 @@ impl IUIAutomationTextPattern { (::windows_core::Interface::vtable(self).SupportedTextSelection)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUIAutomationTextPattern, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAutomationTextPattern { - type Vtable = IUIAutomationTextPattern_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomationTextPattern { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x32eba289_3583_42c9_9c59_3b6d9a1e9b6a); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomationTextPattern_Vtbl { @@ -12755,9 +11789,8 @@ pub struct IUIAutomationTextPattern_Vtbl { pub DocumentRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, range: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SupportedTextSelection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, supportedtextselection: *mut SupportedTextSelection) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomationTextPattern2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomationTextPattern2, IUIAutomationTextPattern2_Vtbl, 0x506a921a_fcc9_409f_b23b_37eb74106872); +::windows_core::imp::interface_hierarchy!(IUIAutomationTextPattern2, ::windows_core::IUnknown, IUIAutomationTextPattern); impl IUIAutomationTextPattern2 { pub unsafe fn RangeFromPoint(&self, pt: super::super::Foundation::POINT) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -12797,13 +11830,6 @@ impl IUIAutomationTextPattern2 { (::windows_core::Interface::vtable(self).GetCaretRange)(::windows_core::Interface::as_raw(self), isactive, ::core::mem::transmute(range)).ok() } } -::windows_core::imp::interface_hierarchy!(IUIAutomationTextPattern2, ::windows_core::IUnknown, IUIAutomationTextPattern); -unsafe impl ::windows_core::Interface for IUIAutomationTextPattern2 { - type Vtable = IUIAutomationTextPattern2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomationTextPattern2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x506a921a_fcc9_409f_b23b_37eb74106872); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomationTextPattern2_Vtbl { @@ -12811,9 +11837,8 @@ pub struct IUIAutomationTextPattern2_Vtbl { pub RangeFromAnnotation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, annotation: *mut ::core::ffi::c_void, range: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetCaretRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, isactive: *mut super::super::Foundation::BOOL, range: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomationTextRange(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomationTextRange, IUIAutomationTextRange_Vtbl, 0xa543cc6a_f4ae_494b_8239_c814481187a8); +::windows_core::imp::interface_hierarchy!(IUIAutomationTextRange, ::windows_core::IUnknown); impl IUIAutomationTextRange { pub unsafe fn Clone(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -12908,13 +11933,6 @@ impl IUIAutomationTextRange { (::windows_core::Interface::vtable(self).GetChildren)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUIAutomationTextRange, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAutomationTextRange { - type Vtable = IUIAutomationTextRange_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomationTextRange { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa543cc6a_f4ae_494b_8239_c814481187a8); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomationTextRange_Vtbl { @@ -12947,9 +11965,8 @@ pub struct IUIAutomationTextRange_Vtbl { pub ScrollIntoView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, aligntotop: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub GetChildren: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, children: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomationTextRange2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomationTextRange2, IUIAutomationTextRange2_Vtbl, 0xbb9b40e0_5e04_46bd_9be0_4b601b9afad4); +::windows_core::imp::interface_hierarchy!(IUIAutomationTextRange2, ::windows_core::IUnknown, IUIAutomationTextRange); impl IUIAutomationTextRange2 { pub unsafe fn Clone(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -13047,22 +12064,14 @@ impl IUIAutomationTextRange2 { (::windows_core::Interface::vtable(self).ShowContextMenu)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IUIAutomationTextRange2, ::windows_core::IUnknown, IUIAutomationTextRange); -unsafe impl ::windows_core::Interface for IUIAutomationTextRange2 { - type Vtable = IUIAutomationTextRange2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomationTextRange2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbb9b40e0_5e04_46bd_9be0_4b601b9afad4); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomationTextRange2_Vtbl { pub base__: IUIAutomationTextRange_Vtbl, pub ShowContextMenu: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomationTextRange3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomationTextRange3, IUIAutomationTextRange3_Vtbl, 0x6a315d69_5512_4c2e_85f0_53fce6dd4bc2); +::windows_core::imp::interface_hierarchy!(IUIAutomationTextRange3, ::windows_core::IUnknown, IUIAutomationTextRange, IUIAutomationTextRange2); impl IUIAutomationTextRange3 { pub unsafe fn Clone(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -13180,13 +12189,6 @@ impl IUIAutomationTextRange3 { (::windows_core::Interface::vtable(self).GetAttributeValues)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(attributeids.as_ptr()), attributeids.len().try_into().unwrap(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUIAutomationTextRange3, ::windows_core::IUnknown, IUIAutomationTextRange, IUIAutomationTextRange2); -unsafe impl ::windows_core::Interface for IUIAutomationTextRange3 { - type Vtable = IUIAutomationTextRange3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomationTextRange3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6a315d69_5512_4c2e_85f0_53fce6dd4bc2); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomationTextRange3_Vtbl { @@ -13198,9 +12200,8 @@ pub struct IUIAutomationTextRange3_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetAttributeValues: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomationTextRangeArray(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomationTextRangeArray, IUIAutomationTextRangeArray_Vtbl, 0xce4ae76a_e717_4c98_81ea_47371d028eb6); +::windows_core::imp::interface_hierarchy!(IUIAutomationTextRangeArray, ::windows_core::IUnknown); impl IUIAutomationTextRangeArray { pub unsafe fn Length(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -13211,13 +12212,6 @@ impl IUIAutomationTextRangeArray { (::windows_core::Interface::vtable(self).GetElement)(::windows_core::Interface::as_raw(self), index, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUIAutomationTextRangeArray, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAutomationTextRangeArray { - type Vtable = IUIAutomationTextRangeArray_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomationTextRangeArray { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xce4ae76a_e717_4c98_81ea_47371d028eb6); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomationTextRangeArray_Vtbl { @@ -13225,9 +12219,8 @@ pub struct IUIAutomationTextRangeArray_Vtbl { pub Length: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, length: *mut i32) -> ::windows_core::HRESULT, pub GetElement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32, element: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomationTogglePattern(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomationTogglePattern, IUIAutomationTogglePattern_Vtbl, 0x94cf8058_9b8d_4ab9_8bfd_4cd0a33c8c70); +::windows_core::imp::interface_hierarchy!(IUIAutomationTogglePattern, ::windows_core::IUnknown); impl IUIAutomationTogglePattern { pub unsafe fn Toggle(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Toggle)(::windows_core::Interface::as_raw(self)).ok() @@ -13241,13 +12234,6 @@ impl IUIAutomationTogglePattern { (::windows_core::Interface::vtable(self).CachedToggleState)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUIAutomationTogglePattern, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAutomationTogglePattern { - type Vtable = IUIAutomationTogglePattern_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomationTogglePattern { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x94cf8058_9b8d_4ab9_8bfd_4cd0a33c8c70); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomationTogglePattern_Vtbl { @@ -13256,9 +12242,8 @@ pub struct IUIAutomationTogglePattern_Vtbl { pub CurrentToggleState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ToggleState) -> ::windows_core::HRESULT, pub CachedToggleState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ToggleState) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomationTransformPattern(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomationTransformPattern, IUIAutomationTransformPattern_Vtbl, 0xa9b55844_a55d_4ef0_926d_569c16ff89bb); +::windows_core::imp::interface_hierarchy!(IUIAutomationTransformPattern, ::windows_core::IUnknown); impl IUIAutomationTransformPattern { pub unsafe fn Move(&self, x: f64, y: f64) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Move)(::windows_core::Interface::as_raw(self), x, y).ok() @@ -13294,13 +12279,6 @@ impl IUIAutomationTransformPattern { (::windows_core::Interface::vtable(self).CachedCanRotate)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUIAutomationTransformPattern, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAutomationTransformPattern { - type Vtable = IUIAutomationTransformPattern_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomationTransformPattern { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa9b55844_a55d_4ef0_926d_569c16ff89bb); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomationTransformPattern_Vtbl { @@ -13315,9 +12293,8 @@ pub struct IUIAutomationTransformPattern_Vtbl { pub CachedCanResize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub CachedCanRotate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomationTransformPattern2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomationTransformPattern2, IUIAutomationTransformPattern2_Vtbl, 0x6d74d017_6ecb_4381_b38b_3c17a48ff1c2); +::windows_core::imp::interface_hierarchy!(IUIAutomationTransformPattern2, ::windows_core::IUnknown, IUIAutomationTransformPattern); impl IUIAutomationTransformPattern2 { pub unsafe fn Move(&self, x: f64, y: f64) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.Move)(::windows_core::Interface::as_raw(self), x, y).ok() @@ -13391,13 +12368,6 @@ impl IUIAutomationTransformPattern2 { (::windows_core::Interface::vtable(self).CachedZoomMaximum)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUIAutomationTransformPattern2, ::windows_core::IUnknown, IUIAutomationTransformPattern); -unsafe impl ::windows_core::Interface for IUIAutomationTransformPattern2 { - type Vtable = IUIAutomationTransformPattern2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomationTransformPattern2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6d74d017_6ecb_4381_b38b_3c17a48ff1c2); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomationTransformPattern2_Vtbl { @@ -13413,9 +12383,8 @@ pub struct IUIAutomationTransformPattern2_Vtbl { pub CurrentZoomMaximum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut f64) -> ::windows_core::HRESULT, pub CachedZoomMaximum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut f64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomationTreeWalker(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomationTreeWalker, IUIAutomationTreeWalker_Vtbl, 0x4042c624_389c_4afc_a630_9df854a541fc); +::windows_core::imp::interface_hierarchy!(IUIAutomationTreeWalker, ::windows_core::IUnknown); impl IUIAutomationTreeWalker { pub unsafe fn GetParentElement(&self, element: P0) -> ::windows_core::Result where @@ -13512,13 +12481,6 @@ impl IUIAutomationTreeWalker { (::windows_core::Interface::vtable(self).Condition)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUIAutomationTreeWalker, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAutomationTreeWalker { - type Vtable = IUIAutomationTreeWalker_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomationTreeWalker { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4042c624_389c_4afc_a630_9df854a541fc); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomationTreeWalker_Vtbl { @@ -13537,9 +12499,8 @@ pub struct IUIAutomationTreeWalker_Vtbl { pub NormalizeElementBuildCache: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, cacherequest: *mut ::core::ffi::c_void, normalized: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Condition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, condition: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomationValuePattern(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomationValuePattern, IUIAutomationValuePattern_Vtbl, 0xa94cd8b1_0844_4cd6_9d2d_640537ab39e9); +::windows_core::imp::interface_hierarchy!(IUIAutomationValuePattern, ::windows_core::IUnknown); impl IUIAutomationValuePattern { pub unsafe fn SetValue(&self, val: P0) -> ::windows_core::Result<()> where @@ -13564,13 +12525,6 @@ impl IUIAutomationValuePattern { (::windows_core::Interface::vtable(self).CachedIsReadOnly)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUIAutomationValuePattern, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAutomationValuePattern { - type Vtable = IUIAutomationValuePattern_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomationValuePattern { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa94cd8b1_0844_4cd6_9d2d_640537ab39e9); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomationValuePattern_Vtbl { @@ -13581,30 +12535,21 @@ pub struct IUIAutomationValuePattern_Vtbl { pub CachedValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub CachedIsReadOnly: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomationVirtualizedItemPattern(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomationVirtualizedItemPattern, IUIAutomationVirtualizedItemPattern_Vtbl, 0x6ba3d7a6_04cf_4f11_8793_a8d1cde9969f); +::windows_core::imp::interface_hierarchy!(IUIAutomationVirtualizedItemPattern, ::windows_core::IUnknown); impl IUIAutomationVirtualizedItemPattern { pub unsafe fn Realize(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Realize)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IUIAutomationVirtualizedItemPattern, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAutomationVirtualizedItemPattern { - type Vtable = IUIAutomationVirtualizedItemPattern_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomationVirtualizedItemPattern { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6ba3d7a6_04cf_4f11_8793_a8d1cde9969f); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomationVirtualizedItemPattern_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Realize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAutomationWindowPattern(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAutomationWindowPattern, IUIAutomationWindowPattern_Vtbl, 0x0faef453_9208_43ef_bbb2_3b485177864f); +::windows_core::imp::interface_hierarchy!(IUIAutomationWindowPattern, ::windows_core::IUnknown); impl IUIAutomationWindowPattern { pub unsafe fn Close(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Close)(::windows_core::Interface::as_raw(self)).ok() @@ -13665,13 +12610,6 @@ impl IUIAutomationWindowPattern { (::windows_core::Interface::vtable(self).CachedWindowInteractionState)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUIAutomationWindowPattern, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAutomationWindowPattern { - type Vtable = IUIAutomationWindowPattern_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAutomationWindowPattern { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0faef453_9208_43ef_bbb2_3b485177864f); -} #[repr(C)] #[doc(hidden)] pub struct IUIAutomationWindowPattern_Vtbl { @@ -13692,9 +12630,8 @@ pub struct IUIAutomationWindowPattern_Vtbl { pub CachedWindowVisualState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut WindowVisualState) -> ::windows_core::HRESULT, pub CachedWindowInteractionState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut WindowInteractionState) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IValueProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IValueProvider, IValueProvider_Vtbl, 0xc7935180_6fb3_4201_b174_7df73adbf64a); +::windows_core::imp::interface_hierarchy!(IValueProvider, ::windows_core::IUnknown); impl IValueProvider { pub unsafe fn SetValue(&self, val: P0) -> ::windows_core::Result<()> where @@ -13711,13 +12648,6 @@ impl IValueProvider { (::windows_core::Interface::vtable(self).IsReadOnly)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IValueProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IValueProvider { - type Vtable = IValueProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IValueProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc7935180_6fb3_4201_b174_7df73adbf64a); -} #[repr(C)] #[doc(hidden)] pub struct IValueProvider_Vtbl { @@ -13726,30 +12656,21 @@ pub struct IValueProvider_Vtbl { pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pretval: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub IsReadOnly: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pretval: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVirtualizedItemProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVirtualizedItemProvider, IVirtualizedItemProvider_Vtbl, 0xcb98b665_2d35_4fac_ad35_f3c60d0c0b8b); +::windows_core::imp::interface_hierarchy!(IVirtualizedItemProvider, ::windows_core::IUnknown); impl IVirtualizedItemProvider { pub unsafe fn Realize(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Realize)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IVirtualizedItemProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVirtualizedItemProvider { - type Vtable = IVirtualizedItemProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVirtualizedItemProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcb98b665_2d35_4fac_ad35_f3c60d0c0b8b); -} #[repr(C)] #[doc(hidden)] pub struct IVirtualizedItemProvider_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Realize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWindowProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWindowProvider, IWindowProvider_Vtbl, 0x987df77b_db06_4d77_8f8a_86a9c3bb90b9); +::windows_core::imp::interface_hierarchy!(IWindowProvider, ::windows_core::IUnknown); impl IWindowProvider { pub unsafe fn SetVisualState(&self, state: WindowVisualState) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetVisualState)(::windows_core::Interface::as_raw(self), state).ok() @@ -13786,13 +12707,6 @@ impl IWindowProvider { (::windows_core::Interface::vtable(self).IsTopmost)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWindowProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWindowProvider { - type Vtable = IWindowProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWindowProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x987df77b_db06_4d77_8f8a_86a9c3bb90b9); -} #[repr(C)] #[doc(hidden)] pub struct IWindowProvider_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/UI/Animation/impl.rs b/crates/libs/windows/src/Windows/Win32/UI/Animation/impl.rs index 1371ced305..e27d3b77d1 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Animation/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Animation/impl.rs @@ -81,7 +81,7 @@ impl IUIAnimationInterpolator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUIAnimationInterpolator2_Impl: Sized { @@ -169,7 +169,7 @@ impl IUIAnimationInterpolator2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUIAnimationLoopIterationChangeHandler2_Impl: Sized { @@ -186,7 +186,7 @@ impl IUIAnimationLoopIterationChangeHandler2_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnLoopIterationChanged: OnLoopIterationChanged:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUIAnimationManager_Impl: Sized { @@ -362,7 +362,7 @@ impl IUIAnimationManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUIAnimationManager2_Impl: Sized { @@ -564,7 +564,7 @@ impl IUIAnimationManager2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUIAnimationManagerEventHandler_Impl: Sized { @@ -581,7 +581,7 @@ impl IUIAnimationManagerEventHandler_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnManagerStatusChanged: OnManagerStatusChanged:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUIAnimationManagerEventHandler2_Impl: Sized { @@ -598,7 +598,7 @@ impl IUIAnimationManagerEventHandler2_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnManagerStatusChanged: OnManagerStatusChanged:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUIAnimationPrimitiveInterpolation_Impl: Sized { @@ -625,7 +625,7 @@ impl IUIAnimationPrimitiveInterpolation_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUIAnimationPriorityComparison_Impl: Sized { @@ -642,7 +642,7 @@ impl IUIAnimationPriorityComparison_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), HasPriority: HasPriority:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUIAnimationPriorityComparison2_Impl: Sized { @@ -659,7 +659,7 @@ impl IUIAnimationPriorityComparison2_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), HasPriority: HasPriority:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUIAnimationStoryboard_Impl: Sized { @@ -815,7 +815,7 @@ impl IUIAnimationStoryboard_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUIAnimationStoryboard2_Impl: Sized { @@ -978,7 +978,7 @@ impl IUIAnimationStoryboard2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUIAnimationStoryboardEventHandler_Impl: Sized { @@ -1005,7 +1005,7 @@ impl IUIAnimationStoryboardEventHandler_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUIAnimationStoryboardEventHandler2_Impl: Sized { @@ -1032,7 +1032,7 @@ impl IUIAnimationStoryboardEventHandler2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUIAnimationTimer_Impl: Sized { @@ -1100,7 +1100,7 @@ impl IUIAnimationTimer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUIAnimationTimerClientEventHandler_Impl: Sized { @@ -1120,7 +1120,7 @@ impl IUIAnimationTimerClientEventHandler_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUIAnimationTimerEventHandler_Impl: Sized { @@ -1154,7 +1154,7 @@ impl IUIAnimationTimerEventHandler_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUIAnimationTimerUpdateHandler_Impl: Sized { @@ -1194,7 +1194,7 @@ impl IUIAnimationTimerUpdateHandler_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUIAnimationTransition_Impl: Sized { @@ -1241,7 +1241,7 @@ impl IUIAnimationTransition_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUIAnimationTransition2_Impl: Sized { @@ -1315,7 +1315,7 @@ impl IUIAnimationTransition2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUIAnimationTransitionFactory_Impl: Sized { @@ -1338,7 +1338,7 @@ impl IUIAnimationTransitionFactory_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CreateTransition: CreateTransition:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUIAnimationTransitionFactory2_Impl: Sized { @@ -1361,7 +1361,7 @@ impl IUIAnimationTransitionFactory2_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CreateTransition: CreateTransition:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUIAnimationTransitionLibrary_Impl: Sized { @@ -1530,7 +1530,7 @@ impl IUIAnimationTransitionLibrary_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUIAnimationTransitionLibrary2_Impl: Sized { @@ -1790,7 +1790,7 @@ impl IUIAnimationTransitionLibrary2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUIAnimationVariable_Impl: Sized { @@ -1943,7 +1943,7 @@ impl IUIAnimationVariable_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_DirectComposition\"`"] @@ -2190,7 +2190,7 @@ impl IUIAnimationVariable2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUIAnimationVariableChangeHandler_Impl: Sized { @@ -2207,7 +2207,7 @@ impl IUIAnimationVariableChangeHandler_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnValueChanged: OnValueChanged:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUIAnimationVariableChangeHandler2_Impl: Sized { @@ -2224,7 +2224,7 @@ impl IUIAnimationVariableChangeHandler2_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnValueChanged: OnValueChanged:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUIAnimationVariableCurveChangeHandler2_Impl: Sized { @@ -2241,7 +2241,7 @@ impl IUIAnimationVariableCurveChangeHandler2_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnCurveChanged: OnCurveChanged:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUIAnimationVariableIntegerChangeHandler_Impl: Sized { @@ -2258,7 +2258,7 @@ impl IUIAnimationVariableIntegerChangeHandler_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnIntegerValueChanged: OnIntegerValueChanged:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUIAnimationVariableIntegerChangeHandler2_Impl: Sized { @@ -2275,6 +2275,6 @@ impl IUIAnimationVariableIntegerChangeHandler2_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnIntegerValueChanged: OnIntegerValueChanged:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 9e5b3898e1..87f151d10d 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Animation/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Animation/mod.rs @@ -1,6 +1,5 @@ -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAnimationInterpolator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAnimationInterpolator, IUIAnimationInterpolator_Vtbl, 0x7815cbba_ddf7_478c_a46c_7b6c738b7978); +::windows_core::imp::interface_hierarchy!(IUIAnimationInterpolator, ::windows_core::IUnknown); impl IUIAnimationInterpolator { pub unsafe fn SetInitialValueAndVelocity(&self, initialvalue: f64, initialvelocity: f64) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetInitialValueAndVelocity)(::windows_core::Interface::as_raw(self), initialvalue, initialvelocity).ok() @@ -28,13 +27,6 @@ impl IUIAnimationInterpolator { (::windows_core::Interface::vtable(self).GetDependencies)(::windows_core::Interface::as_raw(self), initialvaluedependencies, initialvelocitydependencies, durationdependencies).ok() } } -::windows_core::imp::interface_hierarchy!(IUIAnimationInterpolator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAnimationInterpolator { - type Vtable = IUIAnimationInterpolator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAnimationInterpolator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7815cbba_ddf7_478c_a46c_7b6c738b7978); -} #[repr(C)] #[doc(hidden)] pub struct IUIAnimationInterpolator_Vtbl { @@ -47,9 +39,8 @@ pub struct IUIAnimationInterpolator_Vtbl { pub InterpolateVelocity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, offset: f64, velocity: *mut f64) -> ::windows_core::HRESULT, pub GetDependencies: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, initialvaluedependencies: *mut UI_ANIMATION_DEPENDENCIES, initialvelocitydependencies: *mut UI_ANIMATION_DEPENDENCIES, durationdependencies: *mut UI_ANIMATION_DEPENDENCIES) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAnimationInterpolator2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAnimationInterpolator2, IUIAnimationInterpolator2_Vtbl, 0xea76aff8_ea22_4a23_a0ef_a6a966703518); +::windows_core::imp::interface_hierarchy!(IUIAnimationInterpolator2, ::windows_core::IUnknown); impl IUIAnimationInterpolator2 { pub unsafe fn GetDimension(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -84,13 +75,6 @@ impl IUIAnimationInterpolator2 { (::windows_core::Interface::vtable(self).GetDependencies)(::windows_core::Interface::as_raw(self), initialvaluedependencies, initialvelocitydependencies, durationdependencies).ok() } } -::windows_core::imp::interface_hierarchy!(IUIAnimationInterpolator2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAnimationInterpolator2 { - type Vtable = IUIAnimationInterpolator2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAnimationInterpolator2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xea76aff8_ea22_4a23_a0ef_a6a966703518); -} #[repr(C)] #[doc(hidden)] pub struct IUIAnimationInterpolator2_Vtbl { @@ -105,9 +89,8 @@ pub struct IUIAnimationInterpolator2_Vtbl { pub GetPrimitiveInterpolation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, interpolation: *mut ::core::ffi::c_void, cdimension: u32) -> ::windows_core::HRESULT, pub GetDependencies: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, initialvaluedependencies: *mut UI_ANIMATION_DEPENDENCIES, initialvelocitydependencies: *mut UI_ANIMATION_DEPENDENCIES, durationdependencies: *mut UI_ANIMATION_DEPENDENCIES) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAnimationLoopIterationChangeHandler2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAnimationLoopIterationChangeHandler2, IUIAnimationLoopIterationChangeHandler2_Vtbl, 0x2d3b15a4_4762_47ab_a030_b23221df3ae0); +::windows_core::imp::interface_hierarchy!(IUIAnimationLoopIterationChangeHandler2, ::windows_core::IUnknown); impl IUIAnimationLoopIterationChangeHandler2 { pub unsafe fn OnLoopIterationChanged(&self, storyboard: P0, id: usize, newiterationcount: u32, olditerationcount: u32) -> ::windows_core::Result<()> where @@ -116,22 +99,14 @@ impl IUIAnimationLoopIterationChangeHandler2 { (::windows_core::Interface::vtable(self).OnLoopIterationChanged)(::windows_core::Interface::as_raw(self), storyboard.into_param().abi(), id, newiterationcount, olditerationcount).ok() } } -::windows_core::imp::interface_hierarchy!(IUIAnimationLoopIterationChangeHandler2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAnimationLoopIterationChangeHandler2 { - type Vtable = IUIAnimationLoopIterationChangeHandler2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAnimationLoopIterationChangeHandler2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2d3b15a4_4762_47ab_a030_b23221df3ae0); -} #[repr(C)] #[doc(hidden)] pub struct IUIAnimationLoopIterationChangeHandler2_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnLoopIterationChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, storyboard: *mut ::core::ffi::c_void, id: usize, newiterationcount: u32, olditerationcount: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAnimationManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAnimationManager, IUIAnimationManager_Vtbl, 0x9169896c_ac8d_4e7d_94e5_67fa4dc2f2e8); +::windows_core::imp::interface_hierarchy!(IUIAnimationManager, ::windows_core::IUnknown); impl IUIAnimationManager { pub unsafe fn CreateAnimationVariable(&self, initialvalue: f64) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -221,13 +196,6 @@ impl IUIAnimationManager { (::windows_core::Interface::vtable(self).Shutdown)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IUIAnimationManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAnimationManager { - type Vtable = IUIAnimationManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAnimationManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9169896c_ac8d_4e7d_94e5_67fa4dc2f2e8); -} #[repr(C)] #[doc(hidden)] pub struct IUIAnimationManager_Vtbl { @@ -252,9 +220,8 @@ pub struct IUIAnimationManager_Vtbl { pub SetDefaultLongestAcceptableDelay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, delay: f64) -> ::windows_core::HRESULT, pub Shutdown: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAnimationManager2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAnimationManager2, IUIAnimationManager2_Vtbl, 0xd8b6f7d4_4109_4d3f_acee_879926968cb1); +::windows_core::imp::interface_hierarchy!(IUIAnimationManager2, ::windows_core::IUnknown); impl IUIAnimationManager2 { pub unsafe fn CreateAnimationVectorVariable(&self, initialvalue: &[f64]) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -353,13 +320,6 @@ impl IUIAnimationManager2 { (::windows_core::Interface::vtable(self).Shutdown)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IUIAnimationManager2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAnimationManager2 { - type Vtable = IUIAnimationManager2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAnimationManager2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd8b6f7d4_4109_4d3f_acee_879926968cb1); -} #[repr(C)] #[doc(hidden)] pub struct IUIAnimationManager2_Vtbl { @@ -386,51 +346,34 @@ pub struct IUIAnimationManager2_Vtbl { pub SetDefaultLongestAcceptableDelay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, delay: f64) -> ::windows_core::HRESULT, pub Shutdown: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAnimationManagerEventHandler(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAnimationManagerEventHandler, IUIAnimationManagerEventHandler_Vtbl, 0x783321ed_78a3_4366_b574_6af607a64788); +::windows_core::imp::interface_hierarchy!(IUIAnimationManagerEventHandler, ::windows_core::IUnknown); impl IUIAnimationManagerEventHandler { pub unsafe fn OnManagerStatusChanged(&self, newstatus: UI_ANIMATION_MANAGER_STATUS, previousstatus: UI_ANIMATION_MANAGER_STATUS) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnManagerStatusChanged)(::windows_core::Interface::as_raw(self), newstatus, previousstatus).ok() } } -::windows_core::imp::interface_hierarchy!(IUIAnimationManagerEventHandler, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAnimationManagerEventHandler { - type Vtable = IUIAnimationManagerEventHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAnimationManagerEventHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x783321ed_78a3_4366_b574_6af607a64788); -} #[repr(C)] #[doc(hidden)] pub struct IUIAnimationManagerEventHandler_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnManagerStatusChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newstatus: UI_ANIMATION_MANAGER_STATUS, previousstatus: UI_ANIMATION_MANAGER_STATUS) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAnimationManagerEventHandler2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAnimationManagerEventHandler2, IUIAnimationManagerEventHandler2_Vtbl, 0xf6e022ba_bff3_42ec_9033_e073f33e83c3); +::windows_core::imp::interface_hierarchy!(IUIAnimationManagerEventHandler2, ::windows_core::IUnknown); impl IUIAnimationManagerEventHandler2 { pub unsafe fn OnManagerStatusChanged(&self, newstatus: UI_ANIMATION_MANAGER_STATUS, previousstatus: UI_ANIMATION_MANAGER_STATUS) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnManagerStatusChanged)(::windows_core::Interface::as_raw(self), newstatus, previousstatus).ok() } } -::windows_core::imp::interface_hierarchy!(IUIAnimationManagerEventHandler2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAnimationManagerEventHandler2 { - type Vtable = IUIAnimationManagerEventHandler2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAnimationManagerEventHandler2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf6e022ba_bff3_42ec_9033_e073f33e83c3); -} #[repr(C)] #[doc(hidden)] pub struct IUIAnimationManagerEventHandler2_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnManagerStatusChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newstatus: UI_ANIMATION_MANAGER_STATUS, previousstatus: UI_ANIMATION_MANAGER_STATUS) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAnimationPrimitiveInterpolation(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAnimationPrimitiveInterpolation, IUIAnimationPrimitiveInterpolation_Vtbl, 0xbab20d63_4361_45da_a24f_ab8508846b5b); +::windows_core::imp::interface_hierarchy!(IUIAnimationPrimitiveInterpolation, ::windows_core::IUnknown); impl IUIAnimationPrimitiveInterpolation { pub unsafe fn AddCubic(&self, dimension: u32, beginoffset: f64, constantcoefficient: f32, linearcoefficient: f32, quadraticcoefficient: f32, cubiccoefficient: f32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).AddCubic)(::windows_core::Interface::as_raw(self), dimension, beginoffset, constantcoefficient, linearcoefficient, quadraticcoefficient, cubiccoefficient).ok() @@ -439,13 +382,6 @@ impl IUIAnimationPrimitiveInterpolation { (::windows_core::Interface::vtable(self).AddSinusoidal)(::windows_core::Interface::as_raw(self), dimension, beginoffset, bias, amplitude, frequency, phase).ok() } } -::windows_core::imp::interface_hierarchy!(IUIAnimationPrimitiveInterpolation, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAnimationPrimitiveInterpolation { - type Vtable = IUIAnimationPrimitiveInterpolation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAnimationPrimitiveInterpolation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbab20d63_4361_45da_a24f_ab8508846b5b); -} #[repr(C)] #[doc(hidden)] pub struct IUIAnimationPrimitiveInterpolation_Vtbl { @@ -453,9 +389,8 @@ pub struct IUIAnimationPrimitiveInterpolation_Vtbl { pub AddCubic: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dimension: u32, beginoffset: f64, constantcoefficient: f32, linearcoefficient: f32, quadraticcoefficient: f32, cubiccoefficient: f32) -> ::windows_core::HRESULT, pub AddSinusoidal: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dimension: u32, beginoffset: f64, bias: f32, amplitude: f32, frequency: f32, phase: f32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAnimationPriorityComparison(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAnimationPriorityComparison, IUIAnimationPriorityComparison_Vtbl, 0x83fa9b74_5f86_4618_bc6a_a2fac19b3f44); +::windows_core::imp::interface_hierarchy!(IUIAnimationPriorityComparison, ::windows_core::IUnknown); impl IUIAnimationPriorityComparison { pub unsafe fn HasPriority(&self, scheduledstoryboard: P0, newstoryboard: P1, priorityeffect: UI_ANIMATION_PRIORITY_EFFECT) -> ::windows_core::Result<()> where @@ -465,22 +400,14 @@ impl IUIAnimationPriorityComparison { (::windows_core::Interface::vtable(self).HasPriority)(::windows_core::Interface::as_raw(self), scheduledstoryboard.into_param().abi(), newstoryboard.into_param().abi(), priorityeffect).ok() } } -::windows_core::imp::interface_hierarchy!(IUIAnimationPriorityComparison, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAnimationPriorityComparison { - type Vtable = IUIAnimationPriorityComparison_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAnimationPriorityComparison { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x83fa9b74_5f86_4618_bc6a_a2fac19b3f44); -} #[repr(C)] #[doc(hidden)] pub struct IUIAnimationPriorityComparison_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub HasPriority: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, scheduledstoryboard: *mut ::core::ffi::c_void, newstoryboard: *mut ::core::ffi::c_void, priorityeffect: UI_ANIMATION_PRIORITY_EFFECT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAnimationPriorityComparison2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAnimationPriorityComparison2, IUIAnimationPriorityComparison2_Vtbl, 0x5b6d7a37_4621_467c_8b05_70131de62ddb); +::windows_core::imp::interface_hierarchy!(IUIAnimationPriorityComparison2, ::windows_core::IUnknown); impl IUIAnimationPriorityComparison2 { pub unsafe fn HasPriority(&self, scheduledstoryboard: P0, newstoryboard: P1, priorityeffect: UI_ANIMATION_PRIORITY_EFFECT) -> ::windows_core::Result<()> where @@ -490,22 +417,14 @@ impl IUIAnimationPriorityComparison2 { (::windows_core::Interface::vtable(self).HasPriority)(::windows_core::Interface::as_raw(self), scheduledstoryboard.into_param().abi(), newstoryboard.into_param().abi(), priorityeffect).ok() } } -::windows_core::imp::interface_hierarchy!(IUIAnimationPriorityComparison2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAnimationPriorityComparison2 { - type Vtable = IUIAnimationPriorityComparison2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAnimationPriorityComparison2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5b6d7a37_4621_467c_8b05_70131de62ddb); -} #[repr(C)] #[doc(hidden)] pub struct IUIAnimationPriorityComparison2_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub HasPriority: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, scheduledstoryboard: *mut ::core::ffi::c_void, newstoryboard: *mut ::core::ffi::c_void, priorityeffect: UI_ANIMATION_PRIORITY_EFFECT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAnimationStoryboard(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAnimationStoryboard, IUIAnimationStoryboard_Vtbl, 0xa8ff128f_9bf9_4af1_9e67_e5e410defb84); +::windows_core::imp::interface_hierarchy!(IUIAnimationStoryboard, ::windows_core::IUnknown); impl IUIAnimationStoryboard { pub unsafe fn AddTransition(&self, variable: P0, transition: P1) -> ::windows_core::Result<()> where @@ -597,13 +516,6 @@ impl IUIAnimationStoryboard { (::windows_core::Interface::vtable(self).SetStoryboardEventHandler)(::windows_core::Interface::as_raw(self), handler.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IUIAnimationStoryboard, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAnimationStoryboard { - type Vtable = IUIAnimationStoryboard_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAnimationStoryboard { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa8ff128f_9bf9_4af1_9e67_e5e410defb84); -} #[repr(C)] #[doc(hidden)] pub struct IUIAnimationStoryboard_Vtbl { @@ -626,9 +538,8 @@ pub struct IUIAnimationStoryboard_Vtbl { pub GetElapsedTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, elapsedtime: *mut f64) -> ::windows_core::HRESULT, pub SetStoryboardEventHandler: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAnimationStoryboard2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAnimationStoryboard2, IUIAnimationStoryboard2_Vtbl, 0xae289cd2_12d4_4945_9419_9e41be034df2); +::windows_core::imp::interface_hierarchy!(IUIAnimationStoryboard2, ::windows_core::IUnknown); impl IUIAnimationStoryboard2 { pub unsafe fn AddTransition(&self, variable: P0, transition: P1) -> ::windows_core::Result<()> where @@ -727,13 +638,6 @@ impl IUIAnimationStoryboard2 { (::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::imp::interface_hierarchy!(IUIAnimationStoryboard2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAnimationStoryboard2 { - type Vtable = IUIAnimationStoryboard2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAnimationStoryboard2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xae289cd2_12d4_4945_9419_9e41be034df2); -} #[repr(C)] #[doc(hidden)] pub struct IUIAnimationStoryboard2_Vtbl { @@ -757,9 +661,8 @@ pub struct IUIAnimationStoryboard2_Vtbl { pub GetElapsedTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, elapsedtime: *mut f64) -> ::windows_core::HRESULT, pub SetStoryboardEventHandler: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, fregisterstatuschangefornextanimationevent: super::super::Foundation::BOOL, fregisterupdatefornextanimationevent: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAnimationStoryboardEventHandler(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAnimationStoryboardEventHandler, IUIAnimationStoryboardEventHandler_Vtbl, 0x3d5c9008_ec7c_4364_9f8a_9af3c58cbae6); +::windows_core::imp::interface_hierarchy!(IUIAnimationStoryboardEventHandler, ::windows_core::IUnknown); impl IUIAnimationStoryboardEventHandler { pub unsafe fn OnStoryboardStatusChanged(&self, storyboard: P0, newstatus: UI_ANIMATION_STORYBOARD_STATUS, previousstatus: UI_ANIMATION_STORYBOARD_STATUS) -> ::windows_core::Result<()> where @@ -774,13 +677,6 @@ impl IUIAnimationStoryboardEventHandler { (::windows_core::Interface::vtable(self).OnStoryboardUpdated)(::windows_core::Interface::as_raw(self), storyboard.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IUIAnimationStoryboardEventHandler, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAnimationStoryboardEventHandler { - type Vtable = IUIAnimationStoryboardEventHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAnimationStoryboardEventHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3d5c9008_ec7c_4364_9f8a_9af3c58cbae6); -} #[repr(C)] #[doc(hidden)] pub struct IUIAnimationStoryboardEventHandler_Vtbl { @@ -788,9 +684,8 @@ pub struct IUIAnimationStoryboardEventHandler_Vtbl { pub OnStoryboardStatusChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, storyboard: *mut ::core::ffi::c_void, newstatus: UI_ANIMATION_STORYBOARD_STATUS, previousstatus: UI_ANIMATION_STORYBOARD_STATUS) -> ::windows_core::HRESULT, pub OnStoryboardUpdated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, storyboard: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAnimationStoryboardEventHandler2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAnimationStoryboardEventHandler2, IUIAnimationStoryboardEventHandler2_Vtbl, 0xbac5f55a_ba7c_414c_b599_fbf850f553c6); +::windows_core::imp::interface_hierarchy!(IUIAnimationStoryboardEventHandler2, ::windows_core::IUnknown); impl IUIAnimationStoryboardEventHandler2 { pub unsafe fn OnStoryboardStatusChanged(&self, storyboard: P0, newstatus: UI_ANIMATION_STORYBOARD_STATUS, previousstatus: UI_ANIMATION_STORYBOARD_STATUS) -> ::windows_core::Result<()> where @@ -805,13 +700,6 @@ impl IUIAnimationStoryboardEventHandler2 { (::windows_core::Interface::vtable(self).OnStoryboardUpdated)(::windows_core::Interface::as_raw(self), storyboard.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IUIAnimationStoryboardEventHandler2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAnimationStoryboardEventHandler2 { - type Vtable = IUIAnimationStoryboardEventHandler2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAnimationStoryboardEventHandler2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbac5f55a_ba7c_414c_b599_fbf850f553c6); -} #[repr(C)] #[doc(hidden)] pub struct IUIAnimationStoryboardEventHandler2_Vtbl { @@ -819,9 +707,8 @@ pub struct IUIAnimationStoryboardEventHandler2_Vtbl { pub OnStoryboardStatusChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, storyboard: *mut ::core::ffi::c_void, newstatus: UI_ANIMATION_STORYBOARD_STATUS, previousstatus: UI_ANIMATION_STORYBOARD_STATUS) -> ::windows_core::HRESULT, pub OnStoryboardUpdated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, storyboard: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAnimationTimer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAnimationTimer, IUIAnimationTimer_Vtbl, 0x6b0efad1_a053_41d6_9085_33a689144665); +::windows_core::imp::interface_hierarchy!(IUIAnimationTimer, ::windows_core::IUnknown); impl IUIAnimationTimer { pub unsafe fn SetTimerUpdateHandler(&self, updatehandler: P0, idlebehavior: UI_ANIMATION_IDLE_BEHAVIOR) -> ::windows_core::Result<()> where @@ -852,13 +739,6 @@ impl IUIAnimationTimer { (::windows_core::Interface::vtable(self).SetFrameRateThreshold)(::windows_core::Interface::as_raw(self), framespersecond).ok() } } -::windows_core::imp::interface_hierarchy!(IUIAnimationTimer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAnimationTimer { - type Vtable = IUIAnimationTimer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAnimationTimer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6b0efad1_a053_41d6_9085_33a689144665); -} #[repr(C)] #[doc(hidden)] pub struct IUIAnimationTimer_Vtbl { @@ -871,30 +751,21 @@ pub struct IUIAnimationTimer_Vtbl { pub GetTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, seconds: *mut f64) -> ::windows_core::HRESULT, pub SetFrameRateThreshold: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, framespersecond: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAnimationTimerClientEventHandler(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAnimationTimerClientEventHandler, IUIAnimationTimerClientEventHandler_Vtbl, 0xbedb4db6_94fa_4bfb_a47f_ef2d9e408c25); +::windows_core::imp::interface_hierarchy!(IUIAnimationTimerClientEventHandler, ::windows_core::IUnknown); impl IUIAnimationTimerClientEventHandler { pub unsafe fn OnTimerClientStatusChanged(&self, newstatus: UI_ANIMATION_TIMER_CLIENT_STATUS, previousstatus: UI_ANIMATION_TIMER_CLIENT_STATUS) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnTimerClientStatusChanged)(::windows_core::Interface::as_raw(self), newstatus, previousstatus).ok() } } -::windows_core::imp::interface_hierarchy!(IUIAnimationTimerClientEventHandler, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAnimationTimerClientEventHandler { - type Vtable = IUIAnimationTimerClientEventHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAnimationTimerClientEventHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbedb4db6_94fa_4bfb_a47f_ef2d9e408c25); -} #[repr(C)] #[doc(hidden)] pub struct IUIAnimationTimerClientEventHandler_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnTimerClientStatusChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newstatus: UI_ANIMATION_TIMER_CLIENT_STATUS, previousstatus: UI_ANIMATION_TIMER_CLIENT_STATUS) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAnimationTimerEventHandler(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAnimationTimerEventHandler, IUIAnimationTimerEventHandler_Vtbl, 0x274a7dea_d771_4095_abbd_8df7abd23ce3); +::windows_core::imp::interface_hierarchy!(IUIAnimationTimerEventHandler, ::windows_core::IUnknown); impl IUIAnimationTimerEventHandler { pub unsafe fn OnPreUpdate(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnPreUpdate)(::windows_core::Interface::as_raw(self)).ok() @@ -906,13 +777,6 @@ impl IUIAnimationTimerEventHandler { (::windows_core::Interface::vtable(self).OnRenderingTooSlow)(::windows_core::Interface::as_raw(self), framespersecond).ok() } } -::windows_core::imp::interface_hierarchy!(IUIAnimationTimerEventHandler, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAnimationTimerEventHandler { - type Vtable = IUIAnimationTimerEventHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAnimationTimerEventHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x274a7dea_d771_4095_abbd_8df7abd23ce3); -} #[repr(C)] #[doc(hidden)] pub struct IUIAnimationTimerEventHandler_Vtbl { @@ -921,9 +785,8 @@ pub struct IUIAnimationTimerEventHandler_Vtbl { pub OnPostUpdate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub OnRenderingTooSlow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, framespersecond: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAnimationTimerUpdateHandler(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAnimationTimerUpdateHandler, IUIAnimationTimerUpdateHandler_Vtbl, 0x195509b7_5d5e_4e3e_b278_ee3759b367ad); +::windows_core::imp::interface_hierarchy!(IUIAnimationTimerUpdateHandler, ::windows_core::IUnknown); impl IUIAnimationTimerUpdateHandler { pub unsafe fn OnUpdate(&self, timenow: f64) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -939,13 +802,6 @@ impl IUIAnimationTimerUpdateHandler { (::windows_core::Interface::vtable(self).ClearTimerClientEventHandler)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IUIAnimationTimerUpdateHandler, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAnimationTimerUpdateHandler { - type Vtable = IUIAnimationTimerUpdateHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAnimationTimerUpdateHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x195509b7_5d5e_4e3e_b278_ee3759b367ad); -} #[repr(C)] #[doc(hidden)] pub struct IUIAnimationTimerUpdateHandler_Vtbl { @@ -954,9 +810,8 @@ pub struct IUIAnimationTimerUpdateHandler_Vtbl { pub SetTimerClientEventHandler: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ClearTimerClientEventHandler: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAnimationTransition(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAnimationTransition, IUIAnimationTransition_Vtbl, 0xdc6ce252_f731_41cf_b610_614b6ca049ad); +::windows_core::imp::interface_hierarchy!(IUIAnimationTransition, ::windows_core::IUnknown); impl IUIAnimationTransition { pub unsafe fn SetInitialValue(&self, value: f64) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetInitialValue)(::windows_core::Interface::as_raw(self), value).ok() @@ -972,13 +827,6 @@ impl IUIAnimationTransition { (::windows_core::Interface::vtable(self).GetDuration)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUIAnimationTransition, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAnimationTransition { - type Vtable = IUIAnimationTransition_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAnimationTransition { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdc6ce252_f731_41cf_b610_614b6ca049ad); -} #[repr(C)] #[doc(hidden)] pub struct IUIAnimationTransition_Vtbl { @@ -988,9 +836,8 @@ pub struct IUIAnimationTransition_Vtbl { pub IsDurationKnown: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDuration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, duration: *mut f64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAnimationTransition2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAnimationTransition2, IUIAnimationTransition2_Vtbl, 0x62ff9123_a85a_4e9b_a218_435a93e268fd); +::windows_core::imp::interface_hierarchy!(IUIAnimationTransition2, ::windows_core::IUnknown); impl IUIAnimationTransition2 { pub unsafe fn GetDimension(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1016,13 +863,6 @@ impl IUIAnimationTransition2 { (::windows_core::Interface::vtable(self).GetDuration)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUIAnimationTransition2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAnimationTransition2 { - type Vtable = IUIAnimationTransition2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAnimationTransition2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x62ff9123_a85a_4e9b_a218_435a93e268fd); -} #[repr(C)] #[doc(hidden)] pub struct IUIAnimationTransition2_Vtbl { @@ -1035,9 +875,8 @@ pub struct IUIAnimationTransition2_Vtbl { pub IsDurationKnown: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDuration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, duration: *mut f64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAnimationTransitionFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAnimationTransitionFactory, IUIAnimationTransitionFactory_Vtbl, 0xfcd91e03_3e3b_45ad_bbb1_6dfc8153743d); +::windows_core::imp::interface_hierarchy!(IUIAnimationTransitionFactory, ::windows_core::IUnknown); impl IUIAnimationTransitionFactory { pub unsafe fn CreateTransition(&self, interpolator: P0) -> ::windows_core::Result where @@ -1047,22 +886,14 @@ impl IUIAnimationTransitionFactory { (::windows_core::Interface::vtable(self).CreateTransition)(::windows_core::Interface::as_raw(self), interpolator.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUIAnimationTransitionFactory, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAnimationTransitionFactory { - type Vtable = IUIAnimationTransitionFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAnimationTransitionFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfcd91e03_3e3b_45ad_bbb1_6dfc8153743d); -} #[repr(C)] #[doc(hidden)] pub struct IUIAnimationTransitionFactory_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub CreateTransition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, interpolator: *mut ::core::ffi::c_void, transition: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAnimationTransitionFactory2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAnimationTransitionFactory2, IUIAnimationTransitionFactory2_Vtbl, 0x937d4916_c1a6_42d5_88d8_30344d6efe31); +::windows_core::imp::interface_hierarchy!(IUIAnimationTransitionFactory2, ::windows_core::IUnknown); impl IUIAnimationTransitionFactory2 { pub unsafe fn CreateTransition(&self, interpolator: P0) -> ::windows_core::Result where @@ -1072,22 +903,14 @@ impl IUIAnimationTransitionFactory2 { (::windows_core::Interface::vtable(self).CreateTransition)(::windows_core::Interface::as_raw(self), interpolator.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUIAnimationTransitionFactory2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAnimationTransitionFactory2 { - type Vtable = IUIAnimationTransitionFactory2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAnimationTransitionFactory2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x937d4916_c1a6_42d5_88d8_30344d6efe31); -} #[repr(C)] #[doc(hidden)] pub struct IUIAnimationTransitionFactory2_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub CreateTransition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, interpolator: *mut ::core::ffi::c_void, transition: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAnimationTransitionLibrary(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAnimationTransitionLibrary, IUIAnimationTransitionLibrary_Vtbl, 0xca5a14b1_d24f_48b8_8fe4_c78169ba954e); +::windows_core::imp::interface_hierarchy!(IUIAnimationTransitionLibrary, ::windows_core::IUnknown); impl IUIAnimationTransitionLibrary { pub unsafe fn CreateInstantaneousTransition(&self, finalvalue: f64) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1138,13 +961,6 @@ impl IUIAnimationTransitionLibrary { (::windows_core::Interface::vtable(self).CreateParabolicTransitionFromAcceleration)(::windows_core::Interface::as_raw(self), finalvalue, finalvelocity, acceleration, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUIAnimationTransitionLibrary, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAnimationTransitionLibrary { - type Vtable = IUIAnimationTransitionLibrary_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAnimationTransitionLibrary { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xca5a14b1_d24f_48b8_8fe4_c78169ba954e); -} #[repr(C)] #[doc(hidden)] pub struct IUIAnimationTransitionLibrary_Vtbl { @@ -1162,9 +978,8 @@ pub struct IUIAnimationTransitionLibrary_Vtbl { pub CreateSmoothStopTransition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, maximumduration: f64, finalvalue: f64, transition: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateParabolicTransitionFromAcceleration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, finalvalue: f64, finalvelocity: f64, acceleration: f64, transition: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAnimationTransitionLibrary2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAnimationTransitionLibrary2, IUIAnimationTransitionLibrary2_Vtbl, 0x03cfae53_9580_4ee3_b363_2ece51b4af6a); +::windows_core::imp::interface_hierarchy!(IUIAnimationTransitionLibrary2, ::windows_core::IUnknown); impl IUIAnimationTransitionLibrary2 { pub unsafe fn CreateInstantaneousTransition(&self, finalvalue: f64) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1243,13 +1058,6 @@ impl IUIAnimationTransitionLibrary2 { (::windows_core::Interface::vtable(self).CreateCubicBezierLinearVectorTransition)(::windows_core::Interface::as_raw(self), duration, ::core::mem::transmute(finalvalue.as_ptr()), finalvalue.len().try_into().unwrap(), x1, y1, x2, y2, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUIAnimationTransitionLibrary2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAnimationTransitionLibrary2 { - type Vtable = IUIAnimationTransitionLibrary2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAnimationTransitionLibrary2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x03cfae53_9580_4ee3_b363_2ece51b4af6a); -} #[repr(C)] #[doc(hidden)] pub struct IUIAnimationTransitionLibrary2_Vtbl { @@ -1274,9 +1082,8 @@ pub struct IUIAnimationTransitionLibrary2_Vtbl { pub CreateCubicBezierLinearTransition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, duration: f64, finalvalue: f64, x1: f64, y1: f64, x2: f64, y2: f64, pptransition: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateCubicBezierLinearVectorTransition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, duration: f64, finalvalue: *const f64, cdimension: u32, x1: f64, y1: f64, x2: f64, y2: f64, pptransition: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAnimationVariable(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAnimationVariable, IUIAnimationVariable_Vtbl, 0x8ceeb155_2849_4ce5_9448_91ff70e1e4d9); +::windows_core::imp::interface_hierarchy!(IUIAnimationVariable, ::windows_core::IUnknown); impl IUIAnimationVariable { pub unsafe fn GetValue(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1337,13 +1144,6 @@ impl IUIAnimationVariable { (::windows_core::Interface::vtable(self).SetVariableIntegerChangeHandler)(::windows_core::Interface::as_raw(self), handler.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IUIAnimationVariable, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAnimationVariable { - type Vtable = IUIAnimationVariable_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAnimationVariable { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8ceeb155_2849_4ce5_9448_91ff70e1e4d9); -} #[repr(C)] #[doc(hidden)] pub struct IUIAnimationVariable_Vtbl { @@ -1363,9 +1163,8 @@ pub struct IUIAnimationVariable_Vtbl { pub SetVariableChangeHandler: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetVariableIntegerChangeHandler: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAnimationVariable2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAnimationVariable2, IUIAnimationVariable2_Vtbl, 0x4914b304_96ab_44d9_9e77_d5109b7e7466); +::windows_core::imp::interface_hierarchy!(IUIAnimationVariable2, ::windows_core::IUnknown); impl IUIAnimationVariable2 { pub unsafe fn GetDimension(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1475,13 +1274,6 @@ impl IUIAnimationVariable2 { (::windows_core::Interface::vtable(self).SetVariableCurveChangeHandler)(::windows_core::Interface::as_raw(self), handler.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IUIAnimationVariable2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAnimationVariable2 { - type Vtable = IUIAnimationVariable2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAnimationVariable2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4914b304_96ab_44d9_9e77_d5109b7e7466); -} #[repr(C)] #[doc(hidden)] pub struct IUIAnimationVariable2_Vtbl { @@ -1519,9 +1311,8 @@ pub struct IUIAnimationVariable2_Vtbl { pub SetVariableIntegerChangeHandler: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, fregisterfornextanimationevent: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub SetVariableCurveChangeHandler: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAnimationVariableChangeHandler(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAnimationVariableChangeHandler, IUIAnimationVariableChangeHandler_Vtbl, 0x6358b7ba_87d2_42d5_bf71_82e919dd5862); +::windows_core::imp::interface_hierarchy!(IUIAnimationVariableChangeHandler, ::windows_core::IUnknown); impl IUIAnimationVariableChangeHandler { pub unsafe fn OnValueChanged(&self, storyboard: P0, variable: P1, newvalue: f64, previousvalue: f64) -> ::windows_core::Result<()> where @@ -1531,22 +1322,14 @@ impl IUIAnimationVariableChangeHandler { (::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::imp::interface_hierarchy!(IUIAnimationVariableChangeHandler, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAnimationVariableChangeHandler { - type Vtable = IUIAnimationVariableChangeHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAnimationVariableChangeHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6358b7ba_87d2_42d5_bf71_82e919dd5862); -} #[repr(C)] #[doc(hidden)] pub struct IUIAnimationVariableChangeHandler_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnValueChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, storyboard: *mut ::core::ffi::c_void, variable: *mut ::core::ffi::c_void, newvalue: f64, previousvalue: f64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAnimationVariableChangeHandler2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAnimationVariableChangeHandler2, IUIAnimationVariableChangeHandler2_Vtbl, 0x63acc8d2_6eae_4bb0_b879_586dd8cfbe42); +::windows_core::imp::interface_hierarchy!(IUIAnimationVariableChangeHandler2, ::windows_core::IUnknown); impl IUIAnimationVariableChangeHandler2 { pub unsafe fn OnValueChanged(&self, storyboard: P0, variable: P1, newvalue: *const f64, previousvalue: *const f64, cdimension: u32) -> ::windows_core::Result<()> where @@ -1556,22 +1339,14 @@ impl IUIAnimationVariableChangeHandler2 { (::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::imp::interface_hierarchy!(IUIAnimationVariableChangeHandler2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAnimationVariableChangeHandler2 { - type Vtable = IUIAnimationVariableChangeHandler2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAnimationVariableChangeHandler2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x63acc8d2_6eae_4bb0_b879_586dd8cfbe42); -} #[repr(C)] #[doc(hidden)] pub struct IUIAnimationVariableChangeHandler2_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnValueChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, storyboard: *mut ::core::ffi::c_void, variable: *mut ::core::ffi::c_void, newvalue: *const f64, previousvalue: *const f64, cdimension: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAnimationVariableCurveChangeHandler2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAnimationVariableCurveChangeHandler2, IUIAnimationVariableCurveChangeHandler2_Vtbl, 0x72895e91_0145_4c21_9192_5aab40eddf80); +::windows_core::imp::interface_hierarchy!(IUIAnimationVariableCurveChangeHandler2, ::windows_core::IUnknown); impl IUIAnimationVariableCurveChangeHandler2 { pub unsafe fn OnCurveChanged(&self, variable: P0) -> ::windows_core::Result<()> where @@ -1580,22 +1355,14 @@ impl IUIAnimationVariableCurveChangeHandler2 { (::windows_core::Interface::vtable(self).OnCurveChanged)(::windows_core::Interface::as_raw(self), variable.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IUIAnimationVariableCurveChangeHandler2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAnimationVariableCurveChangeHandler2 { - type Vtable = IUIAnimationVariableCurveChangeHandler2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAnimationVariableCurveChangeHandler2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x72895e91_0145_4c21_9192_5aab40eddf80); -} #[repr(C)] #[doc(hidden)] pub struct IUIAnimationVariableCurveChangeHandler2_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnCurveChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, variable: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAnimationVariableIntegerChangeHandler(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAnimationVariableIntegerChangeHandler, IUIAnimationVariableIntegerChangeHandler_Vtbl, 0xbb3e1550_356e_44b0_99da_85ac6017865e); +::windows_core::imp::interface_hierarchy!(IUIAnimationVariableIntegerChangeHandler, ::windows_core::IUnknown); impl IUIAnimationVariableIntegerChangeHandler { pub unsafe fn OnIntegerValueChanged(&self, storyboard: P0, variable: P1, newvalue: i32, previousvalue: i32) -> ::windows_core::Result<()> where @@ -1605,22 +1372,14 @@ impl IUIAnimationVariableIntegerChangeHandler { (::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::imp::interface_hierarchy!(IUIAnimationVariableIntegerChangeHandler, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAnimationVariableIntegerChangeHandler { - type Vtable = IUIAnimationVariableIntegerChangeHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAnimationVariableIntegerChangeHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbb3e1550_356e_44b0_99da_85ac6017865e); -} #[repr(C)] #[doc(hidden)] pub struct IUIAnimationVariableIntegerChangeHandler_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnIntegerValueChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, storyboard: *mut ::core::ffi::c_void, variable: *mut ::core::ffi::c_void, newvalue: i32, previousvalue: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIAnimationVariableIntegerChangeHandler2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIAnimationVariableIntegerChangeHandler2, IUIAnimationVariableIntegerChangeHandler2_Vtbl, 0x829b6cf1_4f3a_4412_ae09_b243eb4c6b58); +::windows_core::imp::interface_hierarchy!(IUIAnimationVariableIntegerChangeHandler2, ::windows_core::IUnknown); impl IUIAnimationVariableIntegerChangeHandler2 { pub unsafe fn OnIntegerValueChanged(&self, storyboard: P0, variable: P1, newvalue: *const i32, previousvalue: *const i32, cdimension: u32) -> ::windows_core::Result<()> where @@ -1630,13 +1389,6 @@ impl IUIAnimationVariableIntegerChangeHandler2 { (::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::imp::interface_hierarchy!(IUIAnimationVariableIntegerChangeHandler2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIAnimationVariableIntegerChangeHandler2 { - type Vtable = IUIAnimationVariableIntegerChangeHandler2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIAnimationVariableIntegerChangeHandler2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x829b6cf1_4f3a_4412_ae09_b243eb4c6b58); -} #[repr(C)] #[doc(hidden)] pub struct IUIAnimationVariableIntegerChangeHandler2_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/UI/ColorSystem/impl.rs b/crates/libs/windows/src/Windows/Win32/UI/ColorSystem/impl.rs index 2505644281..babbee858d 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/ColorSystem/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/ColorSystem/impl.rs @@ -109,7 +109,7 @@ impl IDeviceModelPlugIn_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IGamutMapModelPlugIn_Impl: Sized { @@ -136,6 +136,6 @@ impl IGamutMapModelPlugIn_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 5f27ab8c20..a71938aa3b 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/ColorSystem/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/ColorSystem/mod.rs @@ -870,9 +870,8 @@ pub unsafe fn WcsTranslateColors(hcolortransform: isize, ncolors: u32, ninputcha ::windows_targets::link!("mscms.dll" "system" fn WcsTranslateColors(hcolortransform : isize, ncolors : u32, ninputchannels : u32, cdtinput : COLORDATATYPE, cbinput : u32, pinputdata : *const ::core::ffi::c_void, noutputchannels : u32, cdtoutput : COLORDATATYPE, cboutput : u32, poutputdata : *mut ::core::ffi::c_void) -> super::super::Foundation:: BOOL); WcsTranslateColors(hcolortransform, ncolors, ninputchannels, cdtinput, cbinput, pinputdata, noutputchannels, cdtoutput, cboutput, poutputdata) } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDeviceModelPlugIn(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDeviceModelPlugIn, IDeviceModelPlugIn_Vtbl, 0x1cd63475_07c4_46fe_a903_d655316d11fd); +::windows_core::imp::interface_hierarchy!(IDeviceModelPlugIn, ::windows_core::IUnknown); impl IDeviceModelPlugIn { pub unsafe fn Initialize(&self, bstrxml: P0, cnummodels: u32, imodelposition: u32) -> ::windows_core::Result<()> where @@ -918,13 +917,6 @@ impl IDeviceModelPlugIn { (::windows_core::Interface::vtable(self).GetNeutralAxis)(::windows_core::Interface::as_raw(self), pxyzcolors.len().try_into().unwrap(), ::core::mem::transmute(pxyzcolors.as_ptr())).ok() } } -::windows_core::imp::interface_hierarchy!(IDeviceModelPlugIn, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDeviceModelPlugIn { - type Vtable = IDeviceModelPlugIn_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDeviceModelPlugIn { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1cd63475_07c4_46fe_a903_d655316d11fd); -} #[repr(C)] #[doc(hidden)] pub struct IDeviceModelPlugIn_Vtbl { @@ -941,9 +933,8 @@ pub struct IDeviceModelPlugIn_Vtbl { pub GetNeutralAxisSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pccolors: *mut u32) -> ::windows_core::HRESULT, pub GetNeutralAxis: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ccolors: u32, pxyzcolors: *mut XYZColorF) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGamutMapModelPlugIn(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IGamutMapModelPlugIn, IGamutMapModelPlugIn_Vtbl, 0x2dd80115_ad1e_41f6_a219_a4f4b583d1f9); +::windows_core::imp::interface_hierarchy!(IGamutMapModelPlugIn, ::windows_core::IUnknown); impl IGamutMapModelPlugIn { pub unsafe fn Initialize(&self, bstrxml: P0, psrcplugin: P1, pdestplugin: P2, psrcgbd: *const GamutBoundaryDescription, pdestgbd: *const GamutBoundaryDescription) -> ::windows_core::Result<()> where @@ -957,13 +948,6 @@ impl IGamutMapModelPlugIn { (::windows_core::Interface::vtable(self).SourceToDestinationAppearanceColors)(::windows_core::Interface::as_raw(self), ccolors, pinputcolors, poutputcolors).ok() } } -::windows_core::imp::interface_hierarchy!(IGamutMapModelPlugIn, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGamutMapModelPlugIn { - type Vtable = IGamutMapModelPlugIn_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGamutMapModelPlugIn { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2dd80115_ad1e_41f6_a219_a4f4b583d1f9); -} #[repr(C)] #[doc(hidden)] pub struct IGamutMapModelPlugIn_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/UI/Controls/Dialogs/impl.rs b/crates/libs/windows/src/Windows/Win32/UI/Controls/Dialogs/impl.rs index 784ca40596..a877a0191e 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Controls/Dialogs/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Controls/Dialogs/impl.rs @@ -29,7 +29,7 @@ impl IPrintDialogCallback_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] @@ -67,6 +67,6 @@ impl IPrintDialogServices_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 59ba193db6..580e673802 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 @@ -121,9 +121,8 @@ pub unsafe fn ReplaceTextW(param0: *mut FINDREPLACEW) -> super::super::super::Fo ::windows_targets::link!("comdlg32.dll" "system" fn ReplaceTextW(param0 : *mut FINDREPLACEW) -> super::super::super::Foundation:: HWND); ReplaceTextW(param0) } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintDialogCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPrintDialogCallback, IPrintDialogCallback_Vtbl, 0x5852a2c3_6530_11d1_b6a3_0000f8757bf9); +::windows_core::imp::interface_hierarchy!(IPrintDialogCallback, ::windows_core::IUnknown); impl IPrintDialogCallback { pub unsafe fn InitDone(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).InitDone)(::windows_core::Interface::as_raw(self)).ok() @@ -140,13 +139,6 @@ impl IPrintDialogCallback { (::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::imp::interface_hierarchy!(IPrintDialogCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintDialogCallback { - type Vtable = IPrintDialogCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintDialogCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5852a2c3_6530_11d1_b6a3_0000f8757bf9); -} #[repr(C)] #[doc(hidden)] pub struct IPrintDialogCallback_Vtbl { @@ -155,9 +147,8 @@ pub struct IPrintDialogCallback_Vtbl { pub SelectionChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub HandleMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hdlg: super::super::super::Foundation::HWND, umsg: u32, wparam: super::super::super::Foundation::WPARAM, lparam: super::super::super::Foundation::LPARAM, presult: *mut super::super::super::Foundation::LRESULT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintDialogServices(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPrintDialogServices, IPrintDialogServices_Vtbl, 0x509aaeda_5639_11d1_b6a1_0000f8757bf9); +::windows_core::imp::interface_hierarchy!(IPrintDialogServices, ::windows_core::IUnknown); impl IPrintDialogServices { #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] #[cfg(feature = "Win32_Graphics_Gdi")] @@ -171,13 +162,6 @@ impl IPrintDialogServices { (::windows_core::Interface::vtable(self).GetCurrentPortName)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pportname), pcchsize).ok() } } -::windows_core::imp::interface_hierarchy!(IPrintDialogServices, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintDialogServices { - type Vtable = IPrintDialogServices_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintDialogServices { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x509aaeda_5639_11d1_b6a1_0000f8757bf9); -} #[repr(C)] #[doc(hidden)] pub struct IPrintDialogServices_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/UI/Controls/RichEdit/impl.rs b/crates/libs/windows/src/Windows/Win32/UI/Controls/RichEdit/impl.rs index 6508c208df..137c8bd16f 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Controls/RichEdit/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Controls/RichEdit/impl.rs @@ -130,7 +130,7 @@ impl IRichEditOle_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Ole\"`, `\"Win32_System_SystemServices\"`, `\"Win32_UI_WindowsAndMessaging\"`"] @@ -223,7 +223,7 @@ impl IRichEditOleCallback_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -244,7 +244,7 @@ impl IRicheditUiaOverrides_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetPropertyOverrideValue: GetPropertyOverrideValue:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -258,7 +258,7 @@ impl ITextDisplays_Vtbl { Self { base__: super::super::super::System::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -480,7 +480,7 @@ impl ITextDocument_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -949,7 +949,7 @@ impl ITextDocument2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1194,7 +1194,7 @@ impl ITextDocument2Old_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1764,7 +1764,7 @@ impl ITextFont_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2235,7 +2235,7 @@ impl ITextFont2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Globalization\"`, `\"Win32_Graphics_Gdi\"`, `\"Win32_UI_WindowsAndMessaging\"`"] @@ -2531,7 +2531,7 @@ impl ITextHost_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Globalization\"`, `\"Win32_Graphics_Gdi\"`, `\"Win32_UI_WindowsAndMessaging\"`"] @@ -2632,7 +2632,7 @@ impl ITextHost2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3129,7 +3129,7 @@ impl ITextPara_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3306,7 +3306,7 @@ impl ITextPara2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3890,7 +3890,7 @@ impl ITextRange_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4289,7 +4289,7 @@ impl ITextRange2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4754,7 +4754,7 @@ impl ITextRow_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4889,7 +4889,7 @@ impl ITextSelection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4903,7 +4903,7 @@ impl ITextSelection2_Vtbl { Self { base__: ITextRange2_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`"] @@ -5066,7 +5066,7 @@ impl ITextServices_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Direct2D\"`, `\"Win32_Graphics_Gdi\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`"] @@ -5097,7 +5097,7 @@ impl ITextServices2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -5240,7 +5240,7 @@ impl ITextStory_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5296,7 +5296,7 @@ impl ITextStoryRanges_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5323,7 +5323,7 @@ impl ITextStoryRanges2_Vtbl { Self { base__: ITextStoryRanges_Vtbl::new::(), Item2: Item2:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5477,6 +5477,6 @@ impl ITextStrings_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } 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 d84ab220e4..2a8c505f89 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 @@ -1,6 +1,5 @@ -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRichEditOle(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRichEditOle, IRichEditOle_Vtbl, 0x00020d00_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IRichEditOle, ::windows_core::IUnknown); impl IRichEditOle { #[doc = "Required features: `\"Win32_System_Ole\"`"] #[cfg(feature = "Win32_System_Ole")] @@ -84,13 +83,6 @@ impl IRichEditOle { (::windows_core::Interface::vtable(self).ImportDataObject)(::windows_core::Interface::as_raw(self), lpdataobj.into_param().abi(), cf, hmetapict.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IRichEditOle, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRichEditOle { - type Vtable = IRichEditOle_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRichEditOle { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00020d00_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IRichEditOle_Vtbl { @@ -130,9 +122,8 @@ pub struct IRichEditOle_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] ImportDataObject: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRichEditOleCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRichEditOleCallback, IRichEditOleCallback_Vtbl, 0x00020d03_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IRichEditOleCallback, ::windows_core::IUnknown); impl IRichEditOleCallback { #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`"] #[cfg(feature = "Win32_System_Com_StructuredStorage")] @@ -205,13 +196,6 @@ impl IRichEditOleCallback { (::windows_core::Interface::vtable(self).GetContextMenu)(::windows_core::Interface::as_raw(self), seltype, lpoleobj.into_param().abi(), lpchrg, lphmenu).ok() } } -::windows_core::imp::interface_hierarchy!(IRichEditOleCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRichEditOleCallback { - type Vtable = IRichEditOleCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRichEditOleCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00020d03_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IRichEditOleCallback_Vtbl { @@ -251,9 +235,8 @@ pub struct IRichEditOleCallback_Vtbl { #[cfg(not(all(feature = "Win32_System_Ole", feature = "Win32_UI_WindowsAndMessaging")))] GetContextMenu: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRicheditUiaOverrides(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRicheditUiaOverrides, IRicheditUiaOverrides_Vtbl, 0); +::windows_core::imp::interface_hierarchy!(IRicheditUiaOverrides, ::windows_core::IUnknown); impl IRicheditUiaOverrides { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -261,13 +244,6 @@ impl IRicheditUiaOverrides { (::windows_core::Interface::vtable(self).GetPropertyOverrideValue)(::windows_core::Interface::as_raw(self), propertyid, pretvalue).ok() } } -::windows_core::imp::interface_hierarchy!(IRicheditUiaOverrides, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRicheditUiaOverrides { - type Vtable = IRicheditUiaOverrides_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRicheditUiaOverrides { - const IID: ::windows_core::GUID = ::windows_core::GUID::zeroed(); -} #[repr(C)] #[doc(hidden)] pub struct IRicheditUiaOverrides_Vtbl { @@ -277,34 +253,32 @@ pub struct IRicheditUiaOverrides_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] GetPropertyOverrideValue: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] -#[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITextDisplays(::windows_core::IUnknown); #[cfg(feature = "Win32_System_Com")] -impl ITextDisplays {} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITextDisplays, + ITextDisplays_Vtbl, + 0xc241f5f2_7206_11d8_a2c7_00a0d1d6c6b3 +); #[cfg(feature = "Win32_System_Com")] ::windows_core::imp::interface_hierarchy!(ITextDisplays, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITextDisplays { - type Vtable = ITextDisplays_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITextDisplays { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc241f5f2_7206_11d8_a2c7_00a0d1d6c6b3); -} +impl ITextDisplays {} #[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITextDisplays_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITextDocument(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITextDocument, + ITextDocument_Vtbl, + 0x8cc497c0_a1df_11ce_8098_00aa0047be5d +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITextDocument, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITextDocument { pub unsafe fn GetName(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -390,16 +364,6 @@ impl ITextDocument { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITextDocument, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITextDocument { - type Vtable = ITextDocument_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITextDocument { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8cc497c0_a1df_11ce_8098_00aa0047be5d); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITextDocument_Vtbl { @@ -442,11 +406,15 @@ pub struct ITextDocument_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] RangeFromPoint: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITextDocument2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITextDocument2, + ITextDocument2_Vtbl, + 0xc241f5e0_7206_11d8_a2c7_00a0d1d6c6b3 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITextDocument2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ITextDocument); #[cfg(feature = "Win32_System_Com")] impl ITextDocument2 { pub unsafe fn GetName(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -723,16 +691,6 @@ impl ITextDocument2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITextDocument2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ITextDocument); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITextDocument2 { - type Vtable = ITextDocument2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITextDocument2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc241f5e0_7206_11d8_a2c7_00a0d1d6c6b3); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITextDocument2_Vtbl { @@ -812,11 +770,15 @@ pub struct ITextDocument2_Vtbl { pub GetNewStory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppstory: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetStory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32, ppstory: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITextDocument2Old(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITextDocument2Old, + ITextDocument2Old_Vtbl, + 0x01c25500_4268_11d1_883a_3c8b00c10000 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITextDocument2Old, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ITextDocument); #[cfg(feature = "Win32_System_Com")] impl ITextDocument2Old { pub unsafe fn GetName(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -999,16 +961,6 @@ impl ITextDocument2Old { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITextDocument2Old, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ITextDocument); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITextDocument2Old { - type Vtable = ITextDocument2Old_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITextDocument2Old { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x01c25500_4268_11d1_883a_3c8b00c10000); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITextDocument2Old_Vtbl { @@ -1047,11 +999,15 @@ pub struct ITextDocument2Old_Vtbl { pub GetCallManager: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppvoid: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ReleaseCallManager: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvoid: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITextFont(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITextFont, + ITextFont_Vtbl, + 0x8cc497c3_a1df_11ce_8098_00aa0047be5d +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITextFont, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITextFont { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1264,16 +1220,6 @@ impl ITextFont { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITextFont, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITextFont { - type Vtable = ITextFont_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITextFont { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8cc497c3_a1df_11ce_8098_00aa0047be5d); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITextFont_Vtbl { @@ -1343,11 +1289,15 @@ pub struct ITextFont_Vtbl { pub GetWeight: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut i32) -> ::windows_core::HRESULT, pub SetWeight: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITextFont2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITextFont2, + ITextFont2_Vtbl, + 0xc241f5e3_7206_11d8_a2c7_00a0d1d6c6b3 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITextFont2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ITextFont); #[cfg(feature = "Win32_System_Com")] impl ITextFont2 { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1732,16 +1682,6 @@ impl ITextFont2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITextFont2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ITextFont); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITextFont2 { - type Vtable = ITextFont2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITextFont2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc241f5e3_7206_11d8_a2c7_00a0d1d6c6b3); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITextFont2_Vtbl { @@ -1802,9 +1742,8 @@ pub struct ITextFont2_Vtbl { pub SetEffects2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i32, mask: i32) -> ::windows_core::HRESULT, pub SetProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: i32, value: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITextHost(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITextHost, ITextHost_Vtbl, 0); +::windows_core::imp::interface_hierarchy!(ITextHost, ::windows_core::IUnknown); impl ITextHost { #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] #[cfg(feature = "Win32_Graphics_Gdi")] @@ -1984,13 +1923,6 @@ impl ITextHost { (::windows_core::Interface::vtable(self).TxGetSelectionBarWidth)(::windows_core::Interface::as_raw(self), lselbarwidth).ok() } } -::windows_core::imp::interface_hierarchy!(ITextHost, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITextHost { - type Vtable = ITextHost_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITextHost { - const IID: ::windows_core::GUID = ::windows_core::GUID::zeroed(); -} #[repr(C)] #[doc(hidden)] pub struct ITextHost_Vtbl { @@ -2068,9 +2000,8 @@ pub struct ITextHost_Vtbl { TxImmReleaseContext: usize, pub TxGetSelectionBarWidth: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lselbarwidth: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITextHost2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITextHost2, ITextHost2_Vtbl, 0); +::windows_core::imp::interface_hierarchy!(ITextHost2, ::windows_core::IUnknown, ITextHost); impl ITextHost2 { #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] #[cfg(feature = "Win32_Graphics_Gdi")] @@ -2300,13 +2231,6 @@ impl ITextHost2 { (::windows_core::Interface::vtable(self).TxGetHorzExtent)(::windows_core::Interface::as_raw(self), plhorzextent).ok() } } -::windows_core::imp::interface_hierarchy!(ITextHost2, ::windows_core::IUnknown, ITextHost); -unsafe impl ::windows_core::Interface for ITextHost2 { - type Vtable = ITextHost2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITextHost2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::zeroed(); -} #[repr(C)] #[doc(hidden)] pub struct ITextHost2_Vtbl { @@ -2333,11 +2257,15 @@ pub struct ITextHost2_Vtbl { pub TxDestroyCaret: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub TxGetHorzExtent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plhorzextent: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITextPara(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITextPara, + ITextPara_Vtbl, + 0x8cc497c4_a1df_11ce_8098_00aa0047be5d +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITextPara, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITextPara { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2522,16 +2450,6 @@ impl ITextPara { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITextPara, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITextPara { - type Vtable = ITextPara_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITextPara { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8cc497c4_a1df_11ce_8098_00aa0047be5d); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITextPara_Vtbl { @@ -2594,11 +2512,15 @@ pub struct ITextPara_Vtbl { pub DeleteTab: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, tbpos: f32) -> ::windows_core::HRESULT, pub GetTab: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, itab: i32, ptbpos: *mut f32, ptbalign: *mut i32, ptbleader: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITextPara2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITextPara2, + ITextPara2_Vtbl, + 0xc241f5e4_7206_11d8_a2c7_00a0d1d6c6b3 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITextPara2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ITextPara); #[cfg(feature = "Win32_System_Com")] impl ITextPara2 { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2851,16 +2773,6 @@ impl ITextPara2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITextPara2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ITextPara); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITextPara2 { - type Vtable = ITextPara2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITextPara2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc241f5e4_7206_11d8_a2c7_00a0d1d6c6b3); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITextPara2_Vtbl { @@ -2891,11 +2803,15 @@ pub struct ITextPara2_Vtbl { pub SetEffects: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i32, mask: i32) -> ::windows_core::HRESULT, pub SetProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: i32, value: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITextRange(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITextRange, + ITextRange_Vtbl, + 0x8cc497c2_a1df_11ce_8098_00aa0047be5d +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITextRange, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITextRange { pub unsafe fn GetText(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -3158,16 +3074,6 @@ impl ITextRange { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITextRange, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITextRange { - type Vtable = ITextRange_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITextRange { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8cc497c2_a1df_11ce_8098_00aa0047be5d); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITextRange_Vtbl { @@ -3284,11 +3190,15 @@ pub struct ITextRange_Vtbl { pub ScrollIntoView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i32) -> ::windows_core::HRESULT, pub GetEmbeddedObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppobject: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITextRange2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITextRange2, + ITextRange2_Vtbl, + 0xc241f5e2_7206_11d8_a2c7_00a0d1d6c6b3 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITextRange2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ITextRange, ITextSelection); #[cfg(feature = "Win32_System_Com")] impl ITextRange2 { pub unsafe fn GetText(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -3774,16 +3684,6 @@ impl ITextRange2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITextRange2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ITextRange, ITextSelection); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITextRange2 { - type Vtable = ITextRange2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITextRange2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc241f5e2_7206_11d8_a2c7_00a0d1d6c6b3); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITextRange2_Vtbl { @@ -3859,11 +3759,15 @@ pub struct ITextRange2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] InsertImage: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITextRow(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITextRow, + ITextRow_Vtbl, + 0xc241f5ef_7206_11d8_a2c7_00a0d1d6c6b3 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITextRow, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITextRow { pub unsafe fn GetAlignment(&self) -> ::windows_core::Result { @@ -4032,16 +3936,6 @@ impl ITextRow { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITextRow, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITextRow { - type Vtable = ITextRow_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITextRow { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc241f5ef_7206_11d8_a2c7_00a0d1d6c6b3); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITextRow_Vtbl { @@ -4096,11 +3990,15 @@ pub struct ITextRow_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i32) -> ::windows_core::HRESULT, pub SetProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: i32, value: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITextSelection(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITextSelection, + ITextSelection_Vtbl, + 0x8cc497c1_a1df_11ce_8098_00aa0047be5d +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITextSelection, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ITextRange); #[cfg(feature = "Win32_System_Com")] impl ITextSelection { pub unsafe fn GetText(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -4404,16 +4302,6 @@ impl ITextSelection { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITextSelection, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ITextRange); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITextSelection { - type Vtable = ITextSelection_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITextSelection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8cc497c1_a1df_11ce_8098_00aa0047be5d); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITextSelection_Vtbl { @@ -4429,11 +4317,15 @@ pub struct ITextSelection_Vtbl { pub EndKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, unit: i32, extend: i32, pdelta: *mut i32) -> ::windows_core::HRESULT, pub TypeText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstr: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITextSelection2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITextSelection2, + ITextSelection2_Vtbl, + 0xc241f5e1_7206_11d8_a2c7_00a0d1d6c6b3 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITextSelection2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ITextRange, ITextSelection, ITextRange2); #[cfg(feature = "Win32_System_Com")] impl ITextSelection2 { pub unsafe fn GetText(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -4919,24 +4811,13 @@ impl ITextSelection2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITextSelection2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ITextRange, ITextSelection, ITextRange2); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITextSelection2 { - type Vtable = ITextSelection2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITextSelection2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc241f5e1_7206_11d8_a2c7_00a0d1d6c6b3); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITextSelection2_Vtbl { pub base__: ITextRange2_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITextServices(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITextServices, ITextServices_Vtbl, 0); +::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 @@ -5027,13 +4908,6 @@ impl ITextServices { (::windows_core::Interface::vtable(self).TxGetCachedSize)(::windows_core::Interface::as_raw(self), pdwwidth, pdwheight).ok() } } -::windows_core::imp::interface_hierarchy!(ITextServices, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITextServices { - type Vtable = ITextServices_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITextServices { - const IID: ::windows_core::GUID = ::windows_core::GUID::zeroed(); -} #[repr(C)] #[doc(hidden)] pub struct ITextServices_Vtbl { @@ -5072,9 +4946,8 @@ pub struct ITextServices_Vtbl { pub OnTxPropertyBitsChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwmask: u32, dwbits: u32) -> ::windows_core::HRESULT, pub TxGetCachedSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwwidth: *mut u32, pdwheight: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITextServices2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITextServices2, ITextServices2_Vtbl, 0); +::windows_core::imp::interface_hierarchy!(ITextServices2, ::windows_core::IUnknown, ITextServices); impl ITextServices2 { pub unsafe fn TxSendMessage(&self, msg: u32, wparam: P0, lparam: P1, plresult: *mut super::super::super::Foundation::LRESULT) -> ::windows_core::Result<()> where @@ -5182,13 +5055,6 @@ impl ITextServices2 { (::windows_core::Interface::vtable(self).TxDrawD2D)(::windows_core::Interface::as_raw(self), prendertarget.into_param().abi(), lprcbounds, lprcupdate, lviewid).ok() } } -::windows_core::imp::interface_hierarchy!(ITextServices2, ::windows_core::IUnknown, ITextServices); -unsafe impl ::windows_core::Interface for ITextServices2 { - type Vtable = ITextServices2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITextServices2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::zeroed(); -} #[repr(C)] #[doc(hidden)] pub struct ITextServices2_Vtbl { @@ -5202,9 +5068,8 @@ pub struct ITextServices2_Vtbl { #[cfg(not(feature = "Win32_Graphics_Direct2D"))] TxDrawD2D: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITextStory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITextStory, ITextStory_Vtbl, 0xc241f5f3_7206_11d8_a2c7_00a0d1d6c6b3); +::windows_core::imp::interface_hierarchy!(ITextStory, ::windows_core::IUnknown); impl ITextStory { pub unsafe fn GetActive(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -5258,13 +5123,6 @@ impl ITextStory { (::windows_core::Interface::vtable(self).SetText)(::windows_core::Interface::as_raw(self), flags, bstr.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ITextStory, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITextStory { - type Vtable = ITextStory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITextStory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc241f5f3_7206_11d8_a2c7_00a0d1d6c6b3); -} #[repr(C)] #[doc(hidden)] pub struct ITextStory_Vtbl { @@ -5285,11 +5143,15 @@ pub struct ITextStory_Vtbl { pub SetProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: i32, value: i32) -> ::windows_core::HRESULT, pub SetText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: i32, bstr: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITextStoryRanges(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITextStoryRanges, + ITextStoryRanges_Vtbl, + 0x8cc497c5_a1df_11ce_8098_00aa0047be5d +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITextStoryRanges, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITextStoryRanges { pub unsafe fn _NewEnum(&self) -> ::windows_core::Result<::windows_core::IUnknown> { @@ -5308,16 +5170,6 @@ impl ITextStoryRanges { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITextStoryRanges, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITextStoryRanges { - type Vtable = ITextStoryRanges_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITextStoryRanges { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8cc497c5_a1df_11ce_8098_00aa0047be5d); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITextStoryRanges_Vtbl { @@ -5329,11 +5181,15 @@ pub struct ITextStoryRanges_Vtbl { Item: usize, pub GetCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcount: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITextStoryRanges2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITextStoryRanges2, + ITextStoryRanges2_Vtbl, + 0xc241f5e5_7206_11d8_a2c7_00a0d1d6c6b3 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITextStoryRanges2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ITextStoryRanges); #[cfg(feature = "Win32_System_Com")] impl ITextStoryRanges2 { pub unsafe fn _NewEnum(&self) -> ::windows_core::Result<::windows_core::IUnknown> { @@ -5358,16 +5214,6 @@ impl ITextStoryRanges2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITextStoryRanges2, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch, ITextStoryRanges); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITextStoryRanges2 { - type Vtable = ITextStoryRanges2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITextStoryRanges2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc241f5e5_7206_11d8_a2c7_00a0d1d6c6b3); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITextStoryRanges2_Vtbl { @@ -5377,11 +5223,15 @@ pub struct ITextStoryRanges2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Item2: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITextStrings(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ITextStrings, + ITextStrings_Vtbl, + 0xc241f5e7_7206_11d8_a2c7_00a0d1d6c6b3 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ITextStrings, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ITextStrings { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -5478,16 +5328,6 @@ impl ITextStrings { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ITextStrings, ::windows_core::IUnknown, super::super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ITextStrings { - type Vtable = ITextStrings_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ITextStrings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc241f5e7_7206_11d8_a2c7_00a0d1d6c6b3); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ITextStrings_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/UI/Controls/impl.rs b/crates/libs/windows/src/Windows/Win32/UI/Controls/impl.rs index 3a40ae84dc..3f90159e17 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Controls/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Controls/impl.rs @@ -275,7 +275,7 @@ impl IImageList_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_UI_WindowsAndMessaging\"`"] @@ -376,6 +376,6 @@ impl IImageList2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } 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 d76b837e57..ee21f7ad10 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Controls/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Controls/mod.rs @@ -1252,7 +1252,7 @@ where pub unsafe fn ImageList_CoCreateInstance(rclsid: *const ::windows_core::GUID, punkouter: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam<::windows_core::IUnknown>, - T: ::windows_core::ComInterface, + 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(); @@ -1861,9 +1861,8 @@ where ::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()) } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IImageList(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IImageList, IImageList_Vtbl, 0x46eb5926_582e_4017_9fdf_e8998daa0950); +::windows_core::imp::interface_hierarchy!(IImageList, ::windows_core::IUnknown); impl IImageList { #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] #[cfg(feature = "Win32_Graphics_Gdi")] @@ -2013,13 +2012,6 @@ impl IImageList { (::windows_core::Interface::vtable(self).GetOverlayImage)(::windows_core::Interface::as_raw(self), ioverlay, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IImageList, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IImageList { - type Vtable = IImageList_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IImageList { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x46eb5926_582e_4017_9fdf_e8998daa0950); -} #[repr(C)] #[doc(hidden)] pub struct IImageList_Vtbl { @@ -2075,9 +2067,8 @@ pub struct IImageList_Vtbl { pub GetItemFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, i: i32, dwflags: *mut IMAGE_LIST_ITEM_FLAGS) -> ::windows_core::HRESULT, pub GetOverlayImage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ioverlay: i32, piindex: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IImageList2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IImageList2, IImageList2_Vtbl, 0x192b9d83_50fc_457b_90a0_2b82a8b5dae1); +::windows_core::imp::interface_hierarchy!(IImageList2, ::windows_core::IUnknown, IImageList); impl IImageList2 { #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] #[cfg(feature = "Win32_Graphics_Gdi")] @@ -2279,13 +2270,6 @@ impl IImageList2 { (::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::imp::interface_hierarchy!(IImageList2, ::windows_core::IUnknown, IImageList); -unsafe impl ::windows_core::Interface for IImageList2 { - type Vtable = IImageList2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IImageList2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x192b9d83_50fc_457b_90a0_2b82a8b5dae1); -} #[repr(C)] #[doc(hidden)] pub struct IImageList2_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/UI/Input/Ime/impl.rs b/crates/libs/windows/src/Windows/Win32/UI/Input/Ime/impl.rs index 2c9491a5d0..988cd6d74a 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Input/Ime/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Input/Ime/impl.rs @@ -149,7 +149,7 @@ impl IActiveIME_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Globalization\"`, `\"Win32_UI_TextServices\"`"] @@ -176,7 +176,7 @@ impl IActiveIME2_Vtbl { Self { base__: IActiveIME_Vtbl::new::(), Sleep: Sleep::, Unsleep: Unsleep:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Globalization\"`, `\"Win32_Graphics_Gdi\"`, `\"Win32_UI_TextServices\"`"] @@ -759,7 +759,7 @@ impl IActiveIMMApp_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Globalization\"`, `\"Win32_Graphics_Gdi\"`, `\"Win32_UI_TextServices\"`"] @@ -1542,7 +1542,7 @@ impl IActiveIMMIME_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_WindowsAndMessaging\"`"] @@ -1600,7 +1600,7 @@ impl IActiveIMMMessagePumpOwner_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IActiveIMMRegistrar_Impl: Sized { @@ -1627,7 +1627,7 @@ impl IActiveIMMRegistrar_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Globalization\"`"] @@ -1678,7 +1678,7 @@ impl IEnumInputContext_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumRegisterWordA_Impl: Sized { @@ -1725,7 +1725,7 @@ impl IEnumRegisterWordA_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumRegisterWordW_Impl: Sized { @@ -1772,7 +1772,7 @@ impl IEnumRegisterWordW_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1786,7 +1786,7 @@ impl IFEClassFactory_Vtbl { Self { base__: super::super::super::System::Com::IClassFactory_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IFECommon_Impl: Sized { @@ -1827,7 +1827,7 @@ impl IFECommon_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IFEDictionary_Impl: Sized { @@ -1959,7 +1959,7 @@ impl IFEDictionary_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IFELanguage_Impl: Sized { @@ -2014,7 +2014,7 @@ impl IFELanguage_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IImePad_Impl: Sized { @@ -2031,7 +2031,7 @@ impl IImePad_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Request: Request:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_WindowsAndMessaging\"`"] @@ -2083,7 +2083,7 @@ impl IImePadApplet_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2114,7 +2114,7 @@ impl IImePlugInDictDictionaryList_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IImeSpecifyApplets_Impl: Sized { @@ -2131,6 +2131,6 @@ impl IImeSpecifyApplets_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetAppletIIDList: GetAppletIIDList:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 8f618c7d0b..d44e1aeb0f 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 @@ -812,9 +812,8 @@ where ::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()) } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActiveIME(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IActiveIME, IActiveIME_Vtbl, 0x6fe20962_d077_11d0_8fe7_00aa006bcc59); +::windows_core::imp::interface_hierarchy!(IActiveIME, ::windows_core::IUnknown); impl IActiveIME { pub unsafe fn Inquire(&self, dwsysteminfoflags: u32, pimeinfo: *mut IMEINFO, szwndclass: ::windows_core::PWSTR, pdwprivate: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Inquire)(::windows_core::Interface::as_raw(self), dwsysteminfoflags, pimeinfo, ::core::mem::transmute(szwndclass), pdwprivate).ok() @@ -932,13 +931,6 @@ impl IActiveIME { (::windows_core::Interface::vtable(self).GetLangId)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IActiveIME, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IActiveIME { - type Vtable = IActiveIME_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActiveIME { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6fe20962_d077_11d0_8fe7_00aa006bcc59); -} #[repr(C)] #[doc(hidden)] pub struct IActiveIME_Vtbl { @@ -988,9 +980,8 @@ pub struct IActiveIME_Vtbl { pub GetCodePageA: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ucodepage: *mut u32) -> ::windows_core::HRESULT, pub GetLangId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plid: *mut u16) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActiveIME2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IActiveIME2, IActiveIME2_Vtbl, 0xe1c4bf0e_2d53_11d2_93e1_0060b067b86e); +::windows_core::imp::interface_hierarchy!(IActiveIME2, ::windows_core::IUnknown, IActiveIME); impl IActiveIME2 { pub unsafe fn Inquire(&self, dwsysteminfoflags: u32, pimeinfo: *mut IMEINFO, szwndclass: ::windows_core::PWSTR, pdwprivate: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.Inquire)(::windows_core::Interface::as_raw(self), dwsysteminfoflags, pimeinfo, ::core::mem::transmute(szwndclass), pdwprivate).ok() @@ -1117,13 +1108,6 @@ impl IActiveIME2 { (::windows_core::Interface::vtable(self).Unsleep)(::windows_core::Interface::as_raw(self), fdead.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IActiveIME2, ::windows_core::IUnknown, IActiveIME); -unsafe impl ::windows_core::Interface for IActiveIME2 { - type Vtable = IActiveIME2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActiveIME2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe1c4bf0e_2d53_11d2_93e1_0060b067b86e); -} #[repr(C)] #[doc(hidden)] pub struct IActiveIME2_Vtbl { @@ -1131,9 +1115,8 @@ pub struct IActiveIME2_Vtbl { pub Sleep: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Unsleep: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fdead: super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActiveIMMApp(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IActiveIMMApp, IActiveIMMApp_Vtbl, 0x08c0e040_62d1_11d1_9326_0060b067b86e); +::windows_core::imp::interface_hierarchy!(IActiveIMMApp, ::windows_core::IUnknown); impl IActiveIMMApp { #[doc = "Required features: `\"Win32_Globalization\"`"] #[cfg(feature = "Win32_Globalization")] @@ -1690,13 +1673,6 @@ impl IActiveIMMApp { (::windows_core::Interface::vtable(self).EnumInputContext)(::windows_core::Interface::as_raw(self), idthread, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IActiveIMMApp, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IActiveIMMApp { - type Vtable = IActiveIMMApp_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActiveIMMApp { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x08c0e040_62d1_11d1_9326_0060b067b86e); -} #[repr(C)] #[doc(hidden)] pub struct IActiveIMMApp_Vtbl { @@ -1941,9 +1917,8 @@ pub struct IActiveIMMApp_Vtbl { GetImeMenuItemsW: usize, pub EnumInputContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, idthread: u32, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActiveIMMIME(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IActiveIMMIME, IActiveIMMIME_Vtbl, 0x08c03411_f96b_11d0_a475_00aa006bcc59); +::windows_core::imp::interface_hierarchy!(IActiveIMMIME, ::windows_core::IUnknown); impl IActiveIMMIME { #[doc = "Required features: `\"Win32_Globalization\"`"] #[cfg(feature = "Win32_Globalization")] @@ -2654,13 +2629,6 @@ impl IActiveIMMIME { (::windows_core::Interface::vtable(self).IsSleeping)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IActiveIMMIME, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IActiveIMMIME { - type Vtable = IActiveIMMIME_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActiveIMMIME { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x08c03411_f96b_11d0_a475_00aa006bcc59); -} #[repr(C)] #[doc(hidden)] pub struct IActiveIMMIME_Vtbl { @@ -2970,9 +2938,8 @@ pub struct IActiveIMMIME_Vtbl { pub SendIMCW: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwnd: super::super::super::Foundation::HWND, umsg: u32, wparam: super::super::super::Foundation::WPARAM, lparam: super::super::super::Foundation::LPARAM, plresult: *mut super::super::super::Foundation::LRESULT) -> ::windows_core::HRESULT, pub IsSleeping: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActiveIMMMessagePumpOwner(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IActiveIMMMessagePumpOwner, IActiveIMMMessagePumpOwner_Vtbl, 0xb5cf2cfa_8aeb_11d1_9364_0060b067b86e); +::windows_core::imp::interface_hierarchy!(IActiveIMMMessagePumpOwner, ::windows_core::IUnknown); impl IActiveIMMMessagePumpOwner { pub unsafe fn Start(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Start)(::windows_core::Interface::as_raw(self)).ok() @@ -2993,13 +2960,6 @@ impl IActiveIMMMessagePumpOwner { (::windows_core::Interface::vtable(self).Resume)(::windows_core::Interface::as_raw(self), dwcookie).ok() } } -::windows_core::imp::interface_hierarchy!(IActiveIMMMessagePumpOwner, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IActiveIMMMessagePumpOwner { - type Vtable = IActiveIMMMessagePumpOwner_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActiveIMMMessagePumpOwner { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb5cf2cfa_8aeb_11d1_9364_0060b067b86e); -} #[repr(C)] #[doc(hidden)] pub struct IActiveIMMMessagePumpOwner_Vtbl { @@ -3013,9 +2973,8 @@ pub struct IActiveIMMMessagePumpOwner_Vtbl { pub Pause: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwcookie: *mut u32) -> ::windows_core::HRESULT, pub Resume: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwcookie: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActiveIMMRegistrar(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IActiveIMMRegistrar, IActiveIMMRegistrar_Vtbl, 0xb3458082_bd00_11d1_939b_0060b067b86e); +::windows_core::imp::interface_hierarchy!(IActiveIMMRegistrar, ::windows_core::IUnknown); impl IActiveIMMRegistrar { pub unsafe fn RegisterIME(&self, rclsid: *const ::windows_core::GUID, lgid: u16, psziconfile: P0, pszdesc: P1) -> ::windows_core::Result<()> where @@ -3028,13 +2987,6 @@ impl IActiveIMMRegistrar { (::windows_core::Interface::vtable(self).UnregisterIME)(::windows_core::Interface::as_raw(self), rclsid).ok() } } -::windows_core::imp::interface_hierarchy!(IActiveIMMRegistrar, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IActiveIMMRegistrar { - type Vtable = IActiveIMMRegistrar_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActiveIMMRegistrar { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb3458082_bd00_11d1_939b_0060b067b86e); -} #[repr(C)] #[doc(hidden)] pub struct IActiveIMMRegistrar_Vtbl { @@ -3042,9 +2994,8 @@ pub struct IActiveIMMRegistrar_Vtbl { pub RegisterIME: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rclsid: *const ::windows_core::GUID, lgid: u16, psziconfile: ::windows_core::PCWSTR, pszdesc: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub UnregisterIME: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rclsid: *const ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumInputContext(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumInputContext, IEnumInputContext_Vtbl, 0x09b5eab0_f997_11d1_93d4_0060b067b86e); +::windows_core::imp::interface_hierarchy!(IEnumInputContext, ::windows_core::IUnknown); impl IEnumInputContext { pub unsafe fn Clone(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -3062,13 +3013,6 @@ impl IEnumInputContext { (::windows_core::Interface::vtable(self).Skip)(::windows_core::Interface::as_raw(self), ulcount).ok() } } -::windows_core::imp::interface_hierarchy!(IEnumInputContext, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumInputContext { - type Vtable = IEnumInputContext_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumInputContext { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x09b5eab0_f997_11d1_93d4_0060b067b86e); -} #[repr(C)] #[doc(hidden)] pub struct IEnumInputContext_Vtbl { @@ -3081,9 +3025,8 @@ pub struct IEnumInputContext_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Skip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulcount: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumRegisterWordA(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumRegisterWordA, IEnumRegisterWordA_Vtbl, 0x08c03412_f96b_11d0_a475_00aa006bcc59); +::windows_core::imp::interface_hierarchy!(IEnumRegisterWordA, ::windows_core::IUnknown); impl IEnumRegisterWordA { pub unsafe fn Clone(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -3099,13 +3042,6 @@ impl IEnumRegisterWordA { (::windows_core::Interface::vtable(self).Skip)(::windows_core::Interface::as_raw(self), ulcount).ok() } } -::windows_core::imp::interface_hierarchy!(IEnumRegisterWordA, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumRegisterWordA { - type Vtable = IEnumRegisterWordA_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumRegisterWordA { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x08c03412_f96b_11d0_a475_00aa006bcc59); -} #[repr(C)] #[doc(hidden)] pub struct IEnumRegisterWordA_Vtbl { @@ -3115,9 +3051,8 @@ pub struct IEnumRegisterWordA_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Skip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulcount: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumRegisterWordW(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumRegisterWordW, IEnumRegisterWordW_Vtbl, 0x4955dd31_b159_11d0_8fcf_00aa006bcc59); +::windows_core::imp::interface_hierarchy!(IEnumRegisterWordW, ::windows_core::IUnknown); impl IEnumRegisterWordW { pub unsafe fn Clone(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -3133,13 +3068,6 @@ impl IEnumRegisterWordW { (::windows_core::Interface::vtable(self).Skip)(::windows_core::Interface::as_raw(self), ulcount).ok() } } -::windows_core::imp::interface_hierarchy!(IEnumRegisterWordW, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumRegisterWordW { - type Vtable = IEnumRegisterWordW_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumRegisterWordW { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4955dd31_b159_11d0_8fcf_00aa006bcc59); -} #[repr(C)] #[doc(hidden)] pub struct IEnumRegisterWordW_Vtbl { @@ -3149,11 +3077,15 @@ pub struct IEnumRegisterWordW_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Skip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulcount: u32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFEClassFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFEClassFactory, + IFEClassFactory_Vtbl, + 0 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFEClassFactory, ::windows_core::IUnknown, super::super::super::System::Com::IClassFactory); #[cfg(feature = "Win32_System_Com")] impl IFEClassFactory { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3161,7 +3093,7 @@ impl IFEClassFactory { pub unsafe fn CreateInstance(&self, punkouter: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam<::windows_core::IUnknown>, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -3176,24 +3108,13 @@ impl IFEClassFactory { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFEClassFactory, ::windows_core::IUnknown, super::super::super::System::Com::IClassFactory); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFEClassFactory { - type Vtable = IFEClassFactory_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFEClassFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::zeroed(); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFEClassFactory_Vtbl { pub base__: super::super::super::System::Com::IClassFactory_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFECommon(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFECommon, IFECommon_Vtbl, 0x019f7151_e6db_11d0_83c3_00c04fddb82e); +::windows_core::imp::interface_hierarchy!(IFECommon, ::windows_core::IUnknown); impl IFECommon { pub unsafe fn IsDefaultIME(&self, szname: &[u8]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).IsDefaultIME)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(szname.as_ptr()), szname.len().try_into().unwrap()).ok() @@ -3208,13 +3129,6 @@ impl IFECommon { (::windows_core::Interface::vtable(self).InvokeDictToolDialog)(::windows_core::Interface::as_raw(self), pimedlg).ok() } } -::windows_core::imp::interface_hierarchy!(IFECommon, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFECommon { - type Vtable = IFECommon_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFECommon { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x019f7151_e6db_11d0_83c3_00c04fddb82e); -} #[repr(C)] #[doc(hidden)] pub struct IFECommon_Vtbl { @@ -3224,9 +3138,8 @@ pub struct IFECommon_Vtbl { pub InvokeWordRegDialog: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pimedlg: *mut IMEDLG) -> ::windows_core::HRESULT, pub InvokeDictToolDialog: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pimedlg: *mut IMEDLG) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFEDictionary(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFEDictionary, IFEDictionary_Vtbl, 0x019f7153_e6db_11d0_83c3_00c04fddb82e); +::windows_core::imp::interface_hierarchy!(IFEDictionary, ::windows_core::IUnknown); impl IFEDictionary { pub unsafe fn Open(&self, pchdictpath: ::core::option::Option<&mut [u8; 260]>, pshf: *mut IMESHF) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Open)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pchdictpath.as_deref().map_or(::core::ptr::null(), |slice| slice.as_ptr())), pshf).ok() @@ -3300,13 +3213,6 @@ impl IFEDictionary { (::windows_core::Interface::vtable(self).ConvertFromUserToSys)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IFEDictionary, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFEDictionary { - type Vtable = IFEDictionary_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFEDictionary { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x019f7153_e6db_11d0_83c3_00c04fddb82e); -} #[repr(C)] #[doc(hidden)] pub struct IFEDictionary_Vtbl { @@ -3329,9 +3235,8 @@ pub struct IFEDictionary_Vtbl { pub ConvertFromOldMSIME: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pchdic: ::windows_core::PCSTR, pfnlog: PFNLOG, reg: IMEREG) -> ::windows_core::HRESULT, pub ConvertFromUserToSys: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFELanguage(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFELanguage, IFELanguage_Vtbl, 0x019f7152_e6db_11d0_83c3_00c04fddb82e); +::windows_core::imp::interface_hierarchy!(IFELanguage, ::windows_core::IUnknown); impl IFELanguage { pub unsafe fn Open(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Open)(::windows_core::Interface::as_raw(self)).ok() @@ -3361,13 +3266,6 @@ impl IFELanguage { (::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::imp::interface_hierarchy!(IFELanguage, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFELanguage { - type Vtable = IFELanguage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFELanguage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x019f7152_e6db_11d0_83c3_00c04fddb82e); -} #[repr(C)] #[doc(hidden)] pub struct IFELanguage_Vtbl { @@ -3379,9 +3277,8 @@ pub struct IFELanguage_Vtbl { pub GetPhonetic: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, string: ::std::mem::MaybeUninit<::windows_core::BSTR>, start: i32, length: i32, phonetic: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub GetConversion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, string: ::std::mem::MaybeUninit<::windows_core::BSTR>, start: i32, length: i32, result: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IImePad(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IImePad, IImePad_Vtbl, 0x5d8e643a_c3a9_11d1_afef_00805f0c8b6d); +::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 @@ -3392,22 +3289,14 @@ impl IImePad { (::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::imp::interface_hierarchy!(IImePad, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IImePad { - type Vtable = IImePad_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IImePad { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5d8e643a_c3a9_11d1_afef_00805f0c8b6d); -} #[repr(C)] #[doc(hidden)] pub struct IImePad_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Request: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, piimepadapplet: *mut ::core::ffi::c_void, reqid: i32, wparam: super::super::super::Foundation::WPARAM, lparam: super::super::super::Foundation::LPARAM) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IImePadApplet(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IImePadApplet, IImePadApplet_Vtbl, 0x5d8e643b_c3a9_11d1_afef_00805f0c8b6d); +::windows_core::imp::interface_hierarchy!(IImePadApplet, ::windows_core::IUnknown); impl IImePadApplet { pub unsafe fn Initialize(&self, lpiimepad: P0) -> ::windows_core::Result<()> where @@ -3438,13 +3327,6 @@ impl IImePadApplet { (::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::imp::interface_hierarchy!(IImePadApplet, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IImePadApplet { - type Vtable = IImePadApplet_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IImePadApplet { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5d8e643b_c3a9_11d1_afef_00805f0c8b6d); -} #[repr(C)] #[doc(hidden)] pub struct IImePadApplet_Vtbl { @@ -3458,9 +3340,8 @@ pub struct IImePadApplet_Vtbl { pub CreateUI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwndparent: super::super::super::Foundation::HWND, lpimeappletui: *mut IMEAPPLETUI) -> ::windows_core::HRESULT, pub Notify: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpimepad: *mut ::core::ffi::c_void, notify: i32, wparam: super::super::super::Foundation::WPARAM, lparam: super::super::super::Foundation::LPARAM) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IImePlugInDictDictionaryList(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IImePlugInDictDictionaryList, IImePlugInDictDictionaryList_Vtbl, 0x98752974_b0a6_489b_8f6f_bff3769c8eeb); +::windows_core::imp::interface_hierarchy!(IImePlugInDictDictionaryList, ::windows_core::IUnknown); impl IImePlugInDictDictionaryList { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -3474,13 +3355,6 @@ impl IImePlugInDictDictionaryList { (::windows_core::Interface::vtable(self).DeleteDictionary)(::windows_core::Interface::as_raw(self), bstrdictionaryguid.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IImePlugInDictDictionaryList, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IImePlugInDictDictionaryList { - type Vtable = IImePlugInDictDictionaryList_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IImePlugInDictDictionaryList { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x98752974_b0a6_489b_8f6f_bff3769c8eeb); -} #[repr(C)] #[doc(hidden)] pub struct IImePlugInDictDictionaryList_Vtbl { @@ -3491,21 +3365,13 @@ pub struct IImePlugInDictDictionaryList_Vtbl { GetDictionariesInUse: usize, pub DeleteDictionary: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdictionaryguid: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IImeSpecifyApplets(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IImeSpecifyApplets, IImeSpecifyApplets_Vtbl, 0x5d8e643c_c3a9_11d1_afef_00805f0c8b6d); +::windows_core::imp::interface_hierarchy!(IImeSpecifyApplets, ::windows_core::IUnknown); impl IImeSpecifyApplets { pub unsafe fn GetAppletIIDList(&self, refiid: *const ::windows_core::GUID, lpiidlist: *mut APPLETIDLIST) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetAppletIIDList)(::windows_core::Interface::as_raw(self), refiid, lpiidlist).ok() } } -::windows_core::imp::interface_hierarchy!(IImeSpecifyApplets, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IImeSpecifyApplets { - type Vtable = IImeSpecifyApplets_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IImeSpecifyApplets { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5d8e643c_c3a9_11d1_afef_00805f0c8b6d); -} #[repr(C)] #[doc(hidden)] pub struct IImeSpecifyApplets_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/UI/Input/Ink/impl.rs b/crates/libs/windows/src/Windows/Win32/UI/Input/Ink/impl.rs index d80add1d26..c72072585a 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Input/Ink/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Input/Ink/impl.rs @@ -12,7 +12,7 @@ impl IInkCommitRequestHandler_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnCommitRequested: OnCommitRequested:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IInkD2DRenderer_Impl: Sized { @@ -29,7 +29,7 @@ impl IInkD2DRenderer_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Draw: Draw:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IInkD2DRenderer2_Impl: Sized { @@ -46,7 +46,7 @@ impl IInkD2DRenderer2_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Draw: Draw:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IInkDesktopHost_Impl: Sized { @@ -80,7 +80,7 @@ impl IInkDesktopHost_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IInkHostWorkItem_Impl: Sized { @@ -97,7 +97,7 @@ impl IInkHostWorkItem_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Invoke: Invoke:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IInkPresenterDesktop_Impl: Sized { @@ -145,6 +145,6 @@ impl IInkPresenterDesktop_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 d9d9fa67ca..ede530202f 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 @@ -1,27 +1,18 @@ -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkCommitRequestHandler(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IInkCommitRequestHandler, IInkCommitRequestHandler_Vtbl, 0xfabea3fc_b108_45b6_a9fc_8d08fa9f85cf); +::windows_core::imp::interface_hierarchy!(IInkCommitRequestHandler, ::windows_core::IUnknown); impl IInkCommitRequestHandler { pub unsafe fn OnCommitRequested(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnCommitRequested)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IInkCommitRequestHandler, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInkCommitRequestHandler { - type Vtable = IInkCommitRequestHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInkCommitRequestHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfabea3fc_b108_45b6_a9fc_8d08fa9f85cf); -} #[repr(C)] #[doc(hidden)] pub struct IInkCommitRequestHandler_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnCommitRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkD2DRenderer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IInkD2DRenderer, IInkD2DRenderer_Vtbl, 0x407fb1de_f85a_4150_97cf_b7fb274fb4f8); +::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 @@ -32,22 +23,14 @@ impl IInkD2DRenderer { (::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::imp::interface_hierarchy!(IInkD2DRenderer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInkD2DRenderer { - type Vtable = IInkD2DRenderer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInkD2DRenderer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x407fb1de_f85a_4150_97cf_b7fb274fb4f8); -} #[repr(C)] #[doc(hidden)] pub struct IInkD2DRenderer_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Draw: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pd2d1devicecontext: *mut ::core::ffi::c_void, pinkstrokeiterable: *mut ::core::ffi::c_void, fhighcontrast: super::super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkD2DRenderer2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IInkD2DRenderer2, IInkD2DRenderer2_Vtbl, 0x0a95dcd9_4578_4b71_b20b_bf664d4bfeee); +::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 @@ -57,22 +40,14 @@ impl IInkD2DRenderer2 { (::windows_core::Interface::vtable(self).Draw)(::windows_core::Interface::as_raw(self), pd2d1devicecontext.into_param().abi(), pinkstrokeiterable.into_param().abi(), highcontrastadjustment).ok() } } -::windows_core::imp::interface_hierarchy!(IInkD2DRenderer2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInkD2DRenderer2 { - type Vtable = IInkD2DRenderer2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInkD2DRenderer2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0a95dcd9_4578_4b71_b20b_bf664d4bfeee); -} #[repr(C)] #[doc(hidden)] pub struct IInkD2DRenderer2_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Draw: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pd2d1devicecontext: *mut ::core::ffi::c_void, pinkstrokeiterable: *mut ::core::ffi::c_void, highcontrastadjustment: INK_HIGH_CONTRAST_ADJUSTMENT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkDesktopHost(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IInkDesktopHost, IInkDesktopHost_Vtbl, 0x4ce7d875_a981_4140_a1ff_ad93258e8d59); +::windows_core::imp::interface_hierarchy!(IInkDesktopHost, ::windows_core::IUnknown); impl IInkDesktopHost { pub unsafe fn QueueWorkItem(&self, workitem: P0) -> ::windows_core::Result<()> where @@ -82,7 +57,7 @@ impl IInkDesktopHost { } pub unsafe fn CreateInkPresenter(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).CreateInkPresenter)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -90,19 +65,12 @@ impl IInkDesktopHost { pub unsafe fn CreateAndInitializeInkPresenter(&self, rootvisual: P0, width: f32, height: f32) -> ::windows_core::Result where P0: ::windows_core::IntoParam<::windows_core::IUnknown>, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IInkDesktopHost, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInkDesktopHost { - type Vtable = IInkDesktopHost_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInkDesktopHost { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4ce7d875_a981_4140_a1ff_ad93258e8d59); -} #[repr(C)] #[doc(hidden)] pub struct IInkDesktopHost_Vtbl { @@ -111,30 +79,21 @@ pub struct IInkDesktopHost_Vtbl { pub CreateInkPresenter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateAndInitializeInkPresenter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rootvisual: *mut ::core::ffi::c_void, width: f32, height: f32, riid: *const ::windows_core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkHostWorkItem(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IInkHostWorkItem, IInkHostWorkItem_Vtbl, 0xccda0a9a_1b78_4632_bb96_97800662e26c); +::windows_core::imp::interface_hierarchy!(IInkHostWorkItem, ::windows_core::IUnknown); impl IInkHostWorkItem { pub unsafe fn Invoke(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Invoke)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IInkHostWorkItem, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInkHostWorkItem { - type Vtable = IInkHostWorkItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInkHostWorkItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xccda0a9a_1b78_4632_bb96_97800662e26c); -} #[repr(C)] #[doc(hidden)] pub struct IInkHostWorkItem_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Invoke: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkPresenterDesktop(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IInkPresenterDesktop, IInkPresenterDesktop_Vtbl, 0x73f3c0d9_2e8b_48f3_895e_20cbd27b723b); +::windows_core::imp::interface_hierarchy!(IInkPresenterDesktop, ::windows_core::IUnknown); impl IInkPresenterDesktop { pub unsafe fn SetRootVisual(&self, rootvisual: P0, device: P1) -> ::windows_core::Result<()> where @@ -159,13 +118,6 @@ impl IInkPresenterDesktop { (::windows_core::Interface::vtable(self).OnHighContrastChanged)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IInkPresenterDesktop, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInkPresenterDesktop { - type Vtable = IInkPresenterDesktop_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInkPresenterDesktop { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x73f3c0d9_2e8b_48f3_895e_20cbd27b723b); -} #[repr(C)] #[doc(hidden)] pub struct IInkPresenterDesktop_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/UI/Input/Radial/impl.rs b/crates/libs/windows/src/Windows/Win32/UI/Input/Radial/impl.rs index bbf45dd9b2..0fc26e3753 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Input/Radial/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Input/Radial/impl.rs @@ -15,7 +15,7 @@ impl IRadialControllerConfigurationInterop_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRadialControllerIndependentInputSourceInterop_Impl: Sized { @@ -35,7 +35,7 @@ impl IRadialControllerIndependentInputSourceInterop_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRadialControllerInterop_Impl: Sized { @@ -55,6 +55,6 @@ impl IRadialControllerInterop_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 12429fd57c..a56e2349ea 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 @@ -1,75 +1,51 @@ -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRadialControllerConfigurationInterop(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRadialControllerConfigurationInterop, IRadialControllerConfigurationInterop_Vtbl, 0x787cdaac_3186_476d_87e4_b9374a7b9970); +::windows_core::imp::interface_hierarchy!(IRadialControllerConfigurationInterop, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IRadialControllerConfigurationInterop { pub unsafe fn GetForWindow(&self, hwnd: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IRadialControllerConfigurationInterop, ::windows_core::IUnknown, ::windows_core::IInspectable); -unsafe impl ::windows_core::Interface for IRadialControllerConfigurationInterop { - type Vtable = IRadialControllerConfigurationInterop_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRadialControllerConfigurationInterop { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x787cdaac_3186_476d_87e4_b9374a7b9970); -} #[repr(C)] #[doc(hidden)] pub struct IRadialControllerConfigurationInterop_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub GetForWindow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwnd: super::super::super::Foundation::HWND, riid: *const ::windows_core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRadialControllerIndependentInputSourceInterop(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRadialControllerIndependentInputSourceInterop, IRadialControllerIndependentInputSourceInterop_Vtbl, 0x3d577eff_4cee_11e6_b535_001bdc06ab3b); +::windows_core::imp::interface_hierarchy!(IRadialControllerIndependentInputSourceInterop, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IRadialControllerIndependentInputSourceInterop { pub unsafe fn CreateForWindow(&self, hwnd: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IRadialControllerIndependentInputSourceInterop, ::windows_core::IUnknown, ::windows_core::IInspectable); -unsafe impl ::windows_core::Interface for IRadialControllerIndependentInputSourceInterop { - type Vtable = IRadialControllerIndependentInputSourceInterop_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRadialControllerIndependentInputSourceInterop { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3d577eff_4cee_11e6_b535_001bdc06ab3b); -} #[repr(C)] #[doc(hidden)] pub struct IRadialControllerIndependentInputSourceInterop_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub CreateForWindow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwnd: super::super::super::Foundation::HWND, riid: *const ::windows_core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRadialControllerInterop(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRadialControllerInterop, IRadialControllerInterop_Vtbl, 0x1b0535c9_57ad_45c1_9d79_ad5c34360513); +::windows_core::imp::interface_hierarchy!(IRadialControllerInterop, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IRadialControllerInterop { pub unsafe fn CreateForWindow(&self, hwnd: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IRadialControllerInterop, ::windows_core::IUnknown, ::windows_core::IInspectable); -unsafe impl ::windows_core::Interface for IRadialControllerInterop { - type Vtable = IRadialControllerInterop_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRadialControllerInterop { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1b0535c9_57ad_45c1_9d79_ad5c34360513); -} #[repr(C)] #[doc(hidden)] pub struct IRadialControllerInterop_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/UI/Input/Touch/impl.rs b/crates/libs/windows/src/Windows/Win32/UI/Input/Touch/impl.rs index 1332d2e87d..c2ec4d417d 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Input/Touch/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Input/Touch/impl.rs @@ -495,7 +495,7 @@ impl IInertiaProcessor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IManipulationProcessor_Impl: Sized { @@ -709,7 +709,7 @@ impl IManipulationProcessor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait _IManipulationEvents_Impl: Sized { @@ -757,6 +757,6 @@ impl _IManipulationEvents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &<_IManipulationEvents as ::windows_core::ComInterface>::IID + iid == &<_IManipulationEvents as ::windows_core::Interface>::IID } } 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 d6c17b04c2..626dcb49cd 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 @@ -78,9 +78,8 @@ where ::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() } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInertiaProcessor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IInertiaProcessor, IInertiaProcessor_Vtbl, 0x18b00c6d_c5ee_41b1_90a9_9d4a929095ad); +::windows_core::imp::interface_hierarchy!(IInertiaProcessor, ::windows_core::IUnknown); impl IInertiaProcessor { pub unsafe fn InitialOriginX(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -254,13 +253,6 @@ impl IInertiaProcessor { (::windows_core::Interface::vtable(self).CompleteTime)(::windows_core::Interface::as_raw(self), timestamp).ok() } } -::windows_core::imp::interface_hierarchy!(IInertiaProcessor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInertiaProcessor { - type Vtable = IInertiaProcessor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInertiaProcessor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x18b00c6d_c5ee_41b1_90a9_9d4a929095ad); -} #[repr(C)] #[doc(hidden)] pub struct IInertiaProcessor_Vtbl { @@ -315,9 +307,8 @@ pub struct IInertiaProcessor_Vtbl { pub Complete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CompleteTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, timestamp: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IManipulationProcessor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IManipulationProcessor, IManipulationProcessor_Vtbl, 0xa22ac519_8300_48a0_bef4_f1be8737dba4); +::windows_core::imp::interface_hierarchy!(IManipulationProcessor, ::windows_core::IUnknown); impl IManipulationProcessor { pub unsafe fn SupportedManipulations(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -392,13 +383,6 @@ impl IManipulationProcessor { (::windows_core::Interface::vtable(self).SetMinimumScaleRotateRadius)(::windows_core::Interface::as_raw(self), minradius).ok() } } -::windows_core::imp::interface_hierarchy!(IManipulationProcessor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IManipulationProcessor { - type Vtable = IManipulationProcessor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IManipulationProcessor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa22ac519_8300_48a0_bef4_f1be8737dba4); -} #[repr(C)] #[doc(hidden)] pub struct IManipulationProcessor_Vtbl { @@ -425,9 +409,8 @@ pub struct IManipulationProcessor_Vtbl { pub MinimumScaleRotateRadius: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, minradius: *mut f32) -> ::windows_core::HRESULT, pub SetMinimumScaleRotateRadius: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, minradius: f32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct _IManipulationEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(_IManipulationEvents, _IManipulationEvents_Vtbl, 0x4f62c8da_9c53_4b22_93df_927a862bbb03); +::windows_core::imp::interface_hierarchy!(_IManipulationEvents, ::windows_core::IUnknown); impl _IManipulationEvents { pub unsafe fn ManipulationStarted(&self, x: f32, y: f32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).ManipulationStarted)(::windows_core::Interface::as_raw(self), x, y).ok() @@ -439,13 +422,6 @@ impl _IManipulationEvents { (::windows_core::Interface::vtable(self).ManipulationCompleted)(::windows_core::Interface::as_raw(self), x, y, cumulativetranslationx, cumulativetranslationy, cumulativescale, cumulativeexpansion, cumulativerotation).ok() } } -::windows_core::imp::interface_hierarchy!(_IManipulationEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for _IManipulationEvents { - type Vtable = _IManipulationEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for _IManipulationEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4f62c8da_9c53_4b22_93df_927a862bbb03); -} #[repr(C)] #[doc(hidden)] pub struct _IManipulationEvents_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/UI/LegacyWindowsEnvironmentFeatures/impl.rs b/crates/libs/windows/src/Windows/Win32/UI/LegacyWindowsEnvironmentFeatures/impl.rs index f5b33ba08f..5d13a0b032 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/LegacyWindowsEnvironmentFeatures/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/LegacyWindowsEnvironmentFeatures/impl.rs @@ -40,7 +40,7 @@ impl IADesktopP2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IActiveDesktopP_Impl: Sized { @@ -81,7 +81,7 @@ impl IActiveDesktopP_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -102,7 +102,7 @@ impl IBriefcaseInitiator_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), IsMonikerInBriefcase: IsMonikerInBriefcase:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Registry\"`"] @@ -160,7 +160,7 @@ impl IEmptyVolumeCache_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Registry\"`"] @@ -181,7 +181,7 @@ impl IEmptyVolumeCache2_Vtbl { Self { base__: IEmptyVolumeCache_Vtbl::new::(), InitializeEx: InitializeEx:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IEmptyVolumeCacheCallBack_Impl: Sized { @@ -208,7 +208,7 @@ impl IEmptyVolumeCacheCallBack_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`"] @@ -245,7 +245,7 @@ impl IReconcilableObject_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IReconcileInitiator_Impl: Sized { @@ -272,6 +272,6 @@ impl IReconcileInitiator_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 025e99ddb2..875809b038 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/LegacyWindowsEnvironmentFeatures/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/LegacyWindowsEnvironmentFeatures/mod.rs @@ -1,6 +1,5 @@ -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IADesktopP2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IADesktopP2, IADesktopP2_Vtbl, 0xb22754e2_4574_11d1_9888_006097deacf9); +::windows_core::imp::interface_hierarchy!(IADesktopP2, ::windows_core::IUnknown); impl IADesktopP2 { pub unsafe fn ReReadWallpaper(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).ReReadWallpaper)(::windows_core::Interface::as_raw(self)).ok() @@ -20,13 +19,6 @@ impl IADesktopP2 { (::windows_core::Interface::vtable(self).MakeDynamicChanges)(::windows_core::Interface::as_raw(self), poleobj.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IADesktopP2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IADesktopP2 { - type Vtable = IADesktopP2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IADesktopP2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb22754e2_4574_11d1_9888_006097deacf9); -} #[repr(C)] #[doc(hidden)] pub struct IADesktopP2_Vtbl { @@ -39,9 +31,8 @@ pub struct IADesktopP2_Vtbl { #[cfg(not(feature = "Win32_System_Ole"))] MakeDynamicChanges: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActiveDesktopP(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IActiveDesktopP, IActiveDesktopP_Vtbl, 0x52502ee0_ec80_11d0_89ab_00c04fc2972d); +::windows_core::imp::interface_hierarchy!(IActiveDesktopP, ::windows_core::IUnknown); impl IActiveDesktopP { pub unsafe fn SetSafeMode(&self, dwflags: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetSafeMode)(::windows_core::Interface::as_raw(self), dwflags).ok() @@ -59,13 +50,6 @@ impl IActiveDesktopP { (::windows_core::Interface::vtable(self).GetScheme)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pwszschemename), pdwcchbuffer, dwflags).ok() } } -::windows_core::imp::interface_hierarchy!(IActiveDesktopP, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IActiveDesktopP { - type Vtable = IActiveDesktopP_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActiveDesktopP { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x52502ee0_ec80_11d0_89ab_00c04fc2972d); -} #[repr(C)] #[doc(hidden)] pub struct IActiveDesktopP_Vtbl { @@ -75,9 +59,8 @@ pub struct IActiveDesktopP_Vtbl { pub SetScheme: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwszschemename: ::windows_core::PCWSTR, dwflags: u32) -> ::windows_core::HRESULT, pub GetScheme: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwszschemename: ::windows_core::PWSTR, pdwcchbuffer: *mut u32, dwflags: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBriefcaseInitiator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBriefcaseInitiator, IBriefcaseInitiator_Vtbl, 0x99180164_da16_101a_935c_444553540000); +::windows_core::imp::interface_hierarchy!(IBriefcaseInitiator, ::windows_core::IUnknown); impl IBriefcaseInitiator { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -88,13 +71,6 @@ impl IBriefcaseInitiator { (::windows_core::Interface::vtable(self).IsMonikerInBriefcase)(::windows_core::Interface::as_raw(self), pmk.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IBriefcaseInitiator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBriefcaseInitiator { - type Vtable = IBriefcaseInitiator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBriefcaseInitiator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x99180164_da16_101a_935c_444553540000); -} #[repr(C)] #[doc(hidden)] pub struct IBriefcaseInitiator_Vtbl { @@ -104,9 +80,8 @@ pub struct IBriefcaseInitiator_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] IsMonikerInBriefcase: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmptyVolumeCache(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEmptyVolumeCache, IEmptyVolumeCache_Vtbl, 0x8fce5227_04da_11d1_a004_00805f8abe06); +::windows_core::imp::interface_hierarchy!(IEmptyVolumeCache, ::windows_core::IUnknown); impl IEmptyVolumeCache { #[doc = "Required features: `\"Win32_System_Registry\"`"] #[cfg(feature = "Win32_System_Registry")] @@ -140,13 +115,6 @@ impl IEmptyVolumeCache { (::windows_core::Interface::vtable(self).Deactivate)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEmptyVolumeCache, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmptyVolumeCache { - type Vtable = IEmptyVolumeCache_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmptyVolumeCache { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8fce5227_04da_11d1_a004_00805f8abe06); -} #[repr(C)] #[doc(hidden)] pub struct IEmptyVolumeCache_Vtbl { @@ -160,9 +128,8 @@ pub struct IEmptyVolumeCache_Vtbl { pub ShowProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwnd: super::super::Foundation::HWND) -> ::windows_core::HRESULT, pub Deactivate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwflags: *mut EMPTY_VOLUME_CACHE_FLAGS) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmptyVolumeCache2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEmptyVolumeCache2, IEmptyVolumeCache2_Vtbl, 0x02b7e3ba_4db3_11d2_b2d9_00c04f8eec8c); +::windows_core::imp::interface_hierarchy!(IEmptyVolumeCache2, ::windows_core::IUnknown, IEmptyVolumeCache); impl IEmptyVolumeCache2 { #[doc = "Required features: `\"Win32_System_Registry\"`"] #[cfg(feature = "Win32_System_Registry")] @@ -206,13 +173,6 @@ impl IEmptyVolumeCache2 { (::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::imp::interface_hierarchy!(IEmptyVolumeCache2, ::windows_core::IUnknown, IEmptyVolumeCache); -unsafe impl ::windows_core::Interface for IEmptyVolumeCache2 { - type Vtable = IEmptyVolumeCache2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmptyVolumeCache2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x02b7e3ba_4db3_11d2_b2d9_00c04f8eec8c); -} #[repr(C)] #[doc(hidden)] pub struct IEmptyVolumeCache2_Vtbl { @@ -222,9 +182,8 @@ pub struct IEmptyVolumeCache2_Vtbl { #[cfg(not(feature = "Win32_System_Registry"))] InitializeEx: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEmptyVolumeCacheCallBack(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEmptyVolumeCacheCallBack, IEmptyVolumeCacheCallBack_Vtbl, 0x6e793361_73c6_11d0_8469_00aa00442901); +::windows_core::imp::interface_hierarchy!(IEmptyVolumeCacheCallBack, ::windows_core::IUnknown); impl IEmptyVolumeCacheCallBack { pub unsafe fn ScanProgress(&self, dwlspaceused: u64, dwflags: u32, pcwszstatus: P0) -> ::windows_core::Result<()> where @@ -239,13 +198,6 @@ impl IEmptyVolumeCacheCallBack { (::windows_core::Interface::vtable(self).PurgeProgress)(::windows_core::Interface::as_raw(self), dwlspacefreed, dwlspacetofree, dwflags, pcwszstatus.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IEmptyVolumeCacheCallBack, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEmptyVolumeCacheCallBack { - type Vtable = IEmptyVolumeCacheCallBack_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEmptyVolumeCacheCallBack { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6e793361_73c6_11d0_8469_00aa00442901); -} #[repr(C)] #[doc(hidden)] pub struct IEmptyVolumeCacheCallBack_Vtbl { @@ -253,9 +205,8 @@ pub struct IEmptyVolumeCacheCallBack_Vtbl { pub ScanProgress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwlspaceused: u64, dwflags: u32, pcwszstatus: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub PurgeProgress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwlspacefreed: u64, dwlspacetofree: u64, dwflags: u32, pcwszstatus: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IReconcilableObject(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IReconcilableObject, IReconcilableObject_Vtbl, 0x99180162_da16_101a_935c_444553540000); +::windows_core::imp::interface_hierarchy!(IReconcilableObject, ::windows_core::IUnknown); impl IReconcilableObject { #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`"] #[cfg(feature = "Win32_System_Com_StructuredStorage")] @@ -273,13 +224,6 @@ impl IReconcilableObject { (::windows_core::Interface::vtable(self).GetProgressFeedbackMaxEstimate)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IReconcilableObject, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IReconcilableObject { - type Vtable = IReconcilableObject_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IReconcilableObject { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x99180162_da16_101a_935c_444553540000); -} #[repr(C)] #[doc(hidden)] pub struct IReconcilableObject_Vtbl { @@ -290,9 +234,8 @@ pub struct IReconcilableObject_Vtbl { Reconcile: usize, pub GetProgressFeedbackMaxEstimate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pulprogressmax: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IReconcileInitiator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IReconcileInitiator, IReconcileInitiator_Vtbl, 0x99180161_da16_101a_935c_444553540000); +::windows_core::imp::interface_hierarchy!(IReconcileInitiator, ::windows_core::IUnknown); impl IReconcileInitiator { pub unsafe fn SetAbortCallback(&self, punkforabort: P0) -> ::windows_core::Result<()> where @@ -304,13 +247,6 @@ impl IReconcileInitiator { (::windows_core::Interface::vtable(self).SetProgressFeedback)(::windows_core::Interface::as_raw(self), ulprogress, ulprogressmax).ok() } } -::windows_core::imp::interface_hierarchy!(IReconcileInitiator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IReconcileInitiator { - type Vtable = IReconcileInitiator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IReconcileInitiator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x99180161_da16_101a_935c_444553540000); -} #[repr(C)] #[doc(hidden)] pub struct IReconcileInitiator_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/UI/Notifications/impl.rs b/crates/libs/windows/src/Windows/Win32/UI/Notifications/impl.rs index 2742943467..b5729fa1f3 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Notifications/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Notifications/impl.rs @@ -12,6 +12,6 @@ impl INotificationActivationCallback_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Activate: Activate:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 b5b2d0715d..c866d2e35a 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Notifications/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Notifications/mod.rs @@ -1,6 +1,5 @@ -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INotificationActivationCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INotificationActivationCallback, INotificationActivationCallback_Vtbl, 0x53e31837_6600_4a81_9395_75cffe746f94); +::windows_core::imp::interface_hierarchy!(INotificationActivationCallback, ::windows_core::IUnknown); impl INotificationActivationCallback { pub unsafe fn Activate(&self, appusermodelid: P0, invokedargs: P1, data: &[NOTIFICATION_USER_INPUT_DATA]) -> ::windows_core::Result<()> where @@ -10,13 +9,6 @@ impl INotificationActivationCallback { (::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::imp::interface_hierarchy!(INotificationActivationCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INotificationActivationCallback { - type Vtable = INotificationActivationCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INotificationActivationCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x53e31837_6600_4a81_9395_75cffe746f94); -} #[repr(C)] #[doc(hidden)] pub struct INotificationActivationCallback_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/UI/Ribbon/impl.rs b/crates/libs/windows/src/Windows/Win32/UI/Ribbon/impl.rs index ab3936decd..16a125a1bc 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Ribbon/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Ribbon/impl.rs @@ -35,7 +35,7 @@ impl IUIApplication_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUICollection_Impl: Sized { @@ -109,7 +109,7 @@ impl IUICollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUICollectionChangedEvent_Impl: Sized { @@ -126,7 +126,7 @@ impl IUICollectionChangedEvent_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnChanged: OnChanged:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`, `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -163,7 +163,7 @@ impl IUICommandHandler_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUIContextualUI_Impl: Sized { @@ -180,7 +180,7 @@ impl IUIContextualUI_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), ShowAtLocation: ShowAtLocation:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUIEventLogger_Impl: Sized { @@ -197,7 +197,7 @@ impl IUIEventLogger_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnUIEvent: OnUIEvent:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUIEventingManager_Impl: Sized { @@ -214,7 +214,7 @@ impl IUIEventingManager_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), SetEventLogger: SetEventLogger:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`, `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -300,7 +300,7 @@ impl IUIFramework_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] @@ -327,7 +327,7 @@ impl IUIImage_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetBitmap: GetBitmap:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] @@ -354,7 +354,7 @@ impl IUIImageFromBitmap_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CreateImage: CreateImage:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -398,7 +398,7 @@ impl IUIRibbon_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`, `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -425,6 +425,6 @@ impl IUISimplePropertySet_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetValue: GetValue:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 4b3b012054..938455f463 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Ribbon/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Ribbon/mod.rs @@ -1,6 +1,5 @@ -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIApplication(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIApplication, IUIApplication_Vtbl, 0xd428903c_729a_491d_910d_682a08ff2522); +::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 @@ -19,13 +18,6 @@ impl IUIApplication { (::windows_core::Interface::vtable(self).OnDestroyUICommand)(::windows_core::Interface::as_raw(self), commandid, typeid, commandhandler.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IUIApplication, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIApplication { - type Vtable = IUIApplication_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIApplication { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd428903c_729a_491d_910d_682a08ff2522); -} #[repr(C)] #[doc(hidden)] pub struct IUIApplication_Vtbl { @@ -34,9 +26,8 @@ pub struct IUIApplication_Vtbl { pub OnCreateUICommand: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, commandid: u32, typeid: UI_COMMANDTYPE, commandhandler: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub OnDestroyUICommand: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, commandid: u32, typeid: UI_COMMANDTYPE, commandhandler: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUICollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUICollection, IUICollection_Vtbl, 0xdf4f45bf_6f9d_4dd7_9d68_d8f9cd18c4db); +::windows_core::imp::interface_hierarchy!(IUICollection, ::windows_core::IUnknown); impl IUICollection { pub unsafe fn GetCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -71,13 +62,6 @@ impl IUICollection { (::windows_core::Interface::vtable(self).Clear)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IUICollection, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUICollection { - type Vtable = IUICollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUICollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdf4f45bf_6f9d_4dd7_9d68_d8f9cd18c4db); -} #[repr(C)] #[doc(hidden)] pub struct IUICollection_Vtbl { @@ -90,9 +74,8 @@ pub struct IUICollection_Vtbl { pub Replace: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, indexreplaced: u32, itemreplacewith: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clear: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUICollectionChangedEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUICollectionChangedEvent, IUICollectionChangedEvent_Vtbl, 0x6502ae91_a14d_44b5_bbd0_62aacc581d52); +::windows_core::imp::interface_hierarchy!(IUICollectionChangedEvent, ::windows_core::IUnknown); impl IUICollectionChangedEvent { pub unsafe fn OnChanged(&self, action: UI_COLLECTIONCHANGE, oldindex: u32, olditem: P0, newindex: u32, newitem: P1) -> ::windows_core::Result<()> where @@ -102,22 +85,14 @@ impl IUICollectionChangedEvent { (::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::imp::interface_hierarchy!(IUICollectionChangedEvent, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUICollectionChangedEvent { - type Vtable = IUICollectionChangedEvent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUICollectionChangedEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6502ae91_a14d_44b5_bbd0_62aacc581d52); -} #[repr(C)] #[doc(hidden)] pub struct IUICollectionChangedEvent_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, action: UI_COLLECTIONCHANGE, oldindex: u32, olditem: *mut ::core::ffi::c_void, newindex: u32, newitem: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUICommandHandler(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUICommandHandler, IUICommandHandler_Vtbl, 0x75ae0a2d_dc03_4c9f_8883_069660d0beb6); +::windows_core::imp::interface_hierarchy!(IUICommandHandler, ::windows_core::IUnknown); impl IUICommandHandler { #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`, `\"Win32_UI_Shell_PropertiesSystem\"`"] #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant", feature = "Win32_UI_Shell_PropertiesSystem"))] @@ -134,13 +109,6 @@ impl IUICommandHandler { (::windows_core::Interface::vtable(self).UpdateProperty)(::windows_core::Interface::as_raw(self), commandid, key, ::core::mem::transmute(currentvalue.unwrap_or(::std::ptr::null())), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUICommandHandler, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUICommandHandler { - type Vtable = IUICommandHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUICommandHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x75ae0a2d_dc03_4c9f_8883_069660d0beb6); -} #[repr(C)] #[doc(hidden)] pub struct IUICommandHandler_Vtbl { @@ -154,51 +122,34 @@ pub struct IUICommandHandler_Vtbl { #[cfg(not(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant", feature = "Win32_UI_Shell_PropertiesSystem")))] UpdateProperty: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIContextualUI(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIContextualUI, IUIContextualUI_Vtbl, 0xeea11f37_7c46_437c_8e55_b52122b29293); +::windows_core::imp::interface_hierarchy!(IUIContextualUI, ::windows_core::IUnknown); impl IUIContextualUI { pub unsafe fn ShowAtLocation(&self, x: i32, y: i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).ShowAtLocation)(::windows_core::Interface::as_raw(self), x, y).ok() } } -::windows_core::imp::interface_hierarchy!(IUIContextualUI, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIContextualUI { - type Vtable = IUIContextualUI_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIContextualUI { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeea11f37_7c46_437c_8e55_b52122b29293); -} #[repr(C)] #[doc(hidden)] pub struct IUIContextualUI_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub ShowAtLocation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, x: i32, y: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIEventLogger(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIEventLogger, IUIEventLogger_Vtbl, 0xec3e1034_dbf4_41a1_95d5_03e0f1026e05); +::windows_core::imp::interface_hierarchy!(IUIEventLogger, ::windows_core::IUnknown); impl IUIEventLogger { pub unsafe fn OnUIEvent(&self, peventparams: *const UI_EVENTPARAMS) { (::windows_core::Interface::vtable(self).OnUIEvent)(::windows_core::Interface::as_raw(self), peventparams) } } -::windows_core::imp::interface_hierarchy!(IUIEventLogger, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIEventLogger { - type Vtable = IUIEventLogger_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIEventLogger { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xec3e1034_dbf4_41a1_95d5_03e0f1026e05); -} #[repr(C)] #[doc(hidden)] pub struct IUIEventLogger_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnUIEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, peventparams: *const UI_EVENTPARAMS), } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIEventingManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIEventingManager, IUIEventingManager_Vtbl, 0x3be6ea7f_9a9b_4198_9368_9b0f923bd534); +::windows_core::imp::interface_hierarchy!(IUIEventingManager, ::windows_core::IUnknown); impl IUIEventingManager { pub unsafe fn SetEventLogger(&self, eventlogger: P0) -> ::windows_core::Result<()> where @@ -207,22 +158,14 @@ impl IUIEventingManager { (::windows_core::Interface::vtable(self).SetEventLogger)(::windows_core::Interface::as_raw(self), eventlogger.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IUIEventingManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIEventingManager { - type Vtable = IUIEventingManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIEventingManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3be6ea7f_9a9b_4198_9368_9b0f923bd534); -} #[repr(C)] #[doc(hidden)] pub struct IUIEventingManager_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub SetEventLogger: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventlogger: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIFramework(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIFramework, IUIFramework_Vtbl, 0xf4f0385d_6872_43a8_ad09_4c339cb3f5c5); +::windows_core::imp::interface_hierarchy!(IUIFramework, ::windows_core::IUnknown); impl IUIFramework { pub unsafe fn Initialize(&self, framewnd: P0, application: P1) -> ::windows_core::Result<()> where @@ -267,13 +210,6 @@ impl IUIFramework { (::windows_core::Interface::vtable(self).SetModes)(::windows_core::Interface::as_raw(self), imodes).ok() } } -::windows_core::imp::interface_hierarchy!(IUIFramework, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIFramework { - type Vtable = IUIFramework_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIFramework { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf4f0385d_6872_43a8_ad09_4c339cb3f5c5); -} #[repr(C)] #[doc(hidden)] pub struct IUIFramework_Vtbl { @@ -297,9 +233,8 @@ pub struct IUIFramework_Vtbl { pub FlushPendingInvalidations: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetModes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, imodes: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIImage(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIImage, IUIImage_Vtbl, 0x23c8c838_4de6_436b_ab01_5554bb7c30dd); +::windows_core::imp::interface_hierarchy!(IUIImage, ::windows_core::IUnknown); impl IUIImage { #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] #[cfg(feature = "Win32_Graphics_Gdi")] @@ -308,13 +243,6 @@ impl IUIImage { (::windows_core::Interface::vtable(self).GetBitmap)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUIImage, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIImage { - type Vtable = IUIImage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIImage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x23c8c838_4de6_436b_ab01_5554bb7c30dd); -} #[repr(C)] #[doc(hidden)] pub struct IUIImage_Vtbl { @@ -324,9 +252,8 @@ pub struct IUIImage_Vtbl { #[cfg(not(feature = "Win32_Graphics_Gdi"))] GetBitmap: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIImageFromBitmap(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIImageFromBitmap, IUIImageFromBitmap_Vtbl, 0x18aba7f3_4c1c_4ba2_bf6c_f5c3326fa816); +::windows_core::imp::interface_hierarchy!(IUIImageFromBitmap, ::windows_core::IUnknown); impl IUIImageFromBitmap { #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] #[cfg(feature = "Win32_Graphics_Gdi")] @@ -338,13 +265,6 @@ impl IUIImageFromBitmap { (::windows_core::Interface::vtable(self).CreateImage)(::windows_core::Interface::as_raw(self), bitmap.into_param().abi(), options, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUIImageFromBitmap, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIImageFromBitmap { - type Vtable = IUIImageFromBitmap_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIImageFromBitmap { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x18aba7f3_4c1c_4ba2_bf6c_f5c3326fa816); -} #[repr(C)] #[doc(hidden)] pub struct IUIImageFromBitmap_Vtbl { @@ -354,9 +274,8 @@ pub struct IUIImageFromBitmap_Vtbl { #[cfg(not(feature = "Win32_Graphics_Gdi"))] CreateImage: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIRibbon(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIRibbon, IUIRibbon_Vtbl, 0x803982ab_370a_4f7e_a9e7_8784036a6e26); +::windows_core::imp::interface_hierarchy!(IUIRibbon, ::windows_core::IUnknown); impl IUIRibbon { pub unsafe fn GetHeight(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -379,13 +298,6 @@ impl IUIRibbon { (::windows_core::Interface::vtable(self).SaveSettingsToStream)(::windows_core::Interface::as_raw(self), pstream.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IUIRibbon, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIRibbon { - type Vtable = IUIRibbon_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIRibbon { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x803982ab_370a_4f7e_a9e7_8784036a6e26); -} #[repr(C)] #[doc(hidden)] pub struct IUIRibbon_Vtbl { @@ -400,9 +312,8 @@ pub struct IUIRibbon_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] SaveSettingsToStream: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUISimplePropertySet(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUISimplePropertySet, IUISimplePropertySet_Vtbl, 0xc205bb48_5b1c_4219_a106_15bd0a5f24e2); +::windows_core::imp::interface_hierarchy!(IUISimplePropertySet, ::windows_core::IUnknown); impl IUISimplePropertySet { #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`, `\"Win32_UI_Shell_PropertiesSystem\"`"] #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant", feature = "Win32_UI_Shell_PropertiesSystem"))] @@ -411,13 +322,6 @@ impl IUISimplePropertySet { (::windows_core::Interface::vtable(self).GetValue)(::windows_core::Interface::as_raw(self), key, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUISimplePropertySet, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUISimplePropertySet { - type Vtable = IUISimplePropertySet_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUISimplePropertySet { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc205bb48_5b1c_4219_a106_15bd0a5f24e2); -} #[repr(C)] #[doc(hidden)] pub struct IUISimplePropertySet_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/UI/Shell/Common/impl.rs b/crates/libs/windows/src/Windows/Win32/UI/Shell/Common/impl.rs index eba6ebeaf4..62166d3ece 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Shell/Common/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Shell/Common/impl.rs @@ -28,7 +28,7 @@ impl IObjectArray_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IObjectCollection_Impl: Sized + IObjectArray_Impl { @@ -69,6 +69,6 @@ impl IObjectCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } 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 44cb2fc61e..c2a5c7fc10 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 @@ -1,6 +1,5 @@ -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IObjectArray(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IObjectArray, IObjectArray_Vtbl, 0x92ca9dcd_5622_4bba_a805_5e9f541bd8c9); +::windows_core::imp::interface_hierarchy!(IObjectArray, ::windows_core::IUnknown); impl IObjectArray { pub unsafe fn GetCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -8,19 +7,12 @@ impl IObjectArray { } pub unsafe fn GetAt(&self, uiindex: u32) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetAt)(::windows_core::Interface::as_raw(self), uiindex, &T::IID, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IObjectArray, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IObjectArray { - type Vtable = IObjectArray_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IObjectArray { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x92ca9dcd_5622_4bba_a805_5e9f541bd8c9); -} #[repr(C)] #[doc(hidden)] pub struct IObjectArray_Vtbl { @@ -28,9 +20,8 @@ pub struct IObjectArray_Vtbl { pub GetCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcobjects: *mut u32) -> ::windows_core::HRESULT, pub GetAt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uiindex: u32, riid: *const ::windows_core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IObjectCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IObjectCollection, IObjectCollection_Vtbl, 0x5632b1a4_e38a_400a_928a_d4cd63230295); +::windows_core::imp::interface_hierarchy!(IObjectCollection, ::windows_core::IUnknown, IObjectArray); impl IObjectCollection { pub unsafe fn GetCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -38,7 +29,7 @@ impl IObjectCollection { } pub unsafe fn GetAt(&self, uiindex: u32) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.GetAt)(::windows_core::Interface::as_raw(self), uiindex, &T::IID, &mut result__).from_abi(result__) @@ -62,13 +53,6 @@ impl IObjectCollection { (::windows_core::Interface::vtable(self).Clear)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IObjectCollection, ::windows_core::IUnknown, IObjectArray); -unsafe impl ::windows_core::Interface for IObjectCollection { - type Vtable = IObjectCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IObjectCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5632b1a4_e38a_400a_928a_d4cd63230295); -} #[repr(C)] #[doc(hidden)] pub struct IObjectCollection_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/UI/Shell/PropertiesSystem/impl.rs b/crates/libs/windows/src/Windows/Win32/UI/Shell/PropertiesSystem/impl.rs index 974d4b1766..8f3ea8c2df 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Shell/PropertiesSystem/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Shell/PropertiesSystem/impl.rs @@ -12,7 +12,7 @@ impl ICreateObject_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CreateObject: CreateObject:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDelayedPropertyStoreFactory_Impl: Sized + IPropertyStoreFactory_Impl { @@ -29,7 +29,7 @@ impl IDelayedPropertyStoreFactory_Vtbl { Self { base__: IPropertyStoreFactory_Vtbl::new::(), GetDelayedPropertyStore: GetDelayedPropertyStore:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IInitializeWithFile_Impl: Sized { @@ -46,7 +46,7 @@ impl IInitializeWithFile_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Initialize: Initialize:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -67,7 +67,7 @@ impl IInitializeWithStream_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Initialize: Initialize:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] @@ -130,7 +130,7 @@ impl INamedPropertyStore_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IObjectWithPropertyKey_Impl: Sized { @@ -157,7 +157,7 @@ impl IObjectWithPropertyKey_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPersistSerializedPropStorage_Impl: Sized { @@ -191,7 +191,7 @@ impl IPersistSerializedPropStorage_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPersistSerializedPropStorage2_Impl: Sized + IPersistSerializedPropStorage_Impl { @@ -224,7 +224,7 @@ impl IPersistSerializedPropStorage2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] @@ -251,7 +251,7 @@ impl IPropertyChange_Vtbl { Self { base__: IObjectWithPropertyKey_Vtbl::new::(), ApplyToPropVariant: ApplyToPropVariant:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IPropertyChangeArray_Impl: Sized { @@ -319,7 +319,7 @@ impl IPropertyChangeArray_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Search_Common\"`, `\"Win32_System_Variant\"`"] @@ -573,7 +573,7 @@ impl IPropertyDescription_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Search_Common\"`, `\"Win32_System_Variant\"`"] @@ -603,7 +603,7 @@ impl IPropertyDescription2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Search_Common\"`, `\"Win32_System_Variant\"`"] @@ -634,7 +634,7 @@ impl IPropertyDescriptionAliasInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IPropertyDescriptionList_Impl: Sized { @@ -667,7 +667,7 @@ impl IPropertyDescriptionList_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Search_Common\"`, `\"Win32_System_Variant\"`"] @@ -688,7 +688,7 @@ impl IPropertyDescriptionRelatedPropertyInfo_Vtbl { Self { base__: IPropertyDescription_Vtbl::new::(), GetRelatedProperty: GetRelatedProperty:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Search_Common\"`, `\"Win32_System_Variant\"`"] @@ -757,7 +757,7 @@ impl IPropertyDescriptionSearchInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] @@ -839,7 +839,7 @@ impl IPropertyEnumType_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] @@ -866,7 +866,7 @@ impl IPropertyEnumType2_Vtbl { Self { base__: IPropertyEnumType_Vtbl::new::(), GetImageReference: GetImageReference:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] @@ -923,7 +923,7 @@ impl IPropertyEnumTypeList_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] @@ -987,7 +987,7 @@ impl IPropertyStore_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] @@ -1038,7 +1038,7 @@ impl IPropertyStoreCache_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IPropertyStoreCapabilities_Impl: Sized { @@ -1055,7 +1055,7 @@ impl IPropertyStoreCapabilities_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), IsPropertyWritable: IsPropertyWritable:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPropertyStoreFactory_Impl: Sized { @@ -1082,7 +1082,7 @@ impl IPropertyStoreFactory_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] @@ -1168,7 +1168,7 @@ impl IPropertySystem_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPropertySystemChangeNotify_Impl: Sized { @@ -1185,7 +1185,7 @@ impl IPropertySystemChangeNotify_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), SchemaRefreshed: SchemaRefreshed:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] @@ -1270,6 +1270,6 @@ impl IPropertyUI_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 2282c7fc45..ede8004718 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 @@ -678,7 +678,7 @@ where pub unsafe fn SHGetPropertyStoreForWindow(hwnd: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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(); @@ -698,7 +698,7 @@ pub unsafe fn SHGetPropertyStoreFromParsingName(pszpath: P0, pbc: P1, where P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, P1: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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(); @@ -734,75 +734,58 @@ where ::windows_targets::link!("shell32.dll" "system" fn SHPropStgWriteMultiple(pps : * mut::core::ffi::c_void, pucodepage : *mut u32, cpspec : u32, rgpspec : *const super::super::super::System::Com::StructuredStorage:: PROPSPEC, rgvar : *mut super::super::super::System::Com::StructuredStorage:: PROPVARIANT, propidnamefirst : u32) -> ::windows_core::HRESULT); SHPropStgWriteMultiple(pps.into_param().abi(), ::core::mem::transmute(pucodepage.unwrap_or(::std::ptr::null_mut())), cpspec, rgpspec, rgvar, propidnamefirst).ok() } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICreateObject(::windows_core::IUnknown); +::windows_core::imp::com_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<::windows_core::IUnknown>, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ICreateObject, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICreateObject { - type Vtable = ICreateObject_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICreateObject { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x75121952_e0d0_43e5_9380_1d80483acf72); -} #[repr(C)] #[doc(hidden)] pub struct ICreateObject_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub CreateObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, clsid: *const ::windows_core::GUID, punkouter: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDelayedPropertyStoreFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDelayedPropertyStoreFactory, IDelayedPropertyStoreFactory_Vtbl, 0x40d4577f_e237_4bdb_bd69_58f089431b6a); +::windows_core::imp::interface_hierarchy!(IDelayedPropertyStoreFactory, ::windows_core::IUnknown, IPropertyStoreFactory); impl IDelayedPropertyStoreFactory { pub unsafe fn GetPropertyStore(&self, flags: GETPROPERTYSTOREFLAGS, punkfactory: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam<::windows_core::IUnknown>, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) } pub unsafe fn GetPropertyStoreForKeys(&self, rgkeys: *const PROPERTYKEY, ckeys: u32, flags: GETPROPERTYSTOREFLAGS) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.GetPropertyStoreForKeys)(::windows_core::Interface::as_raw(self), rgkeys, ckeys, flags, &T::IID, &mut result__).from_abi(result__) } pub unsafe fn GetDelayedPropertyStore(&self, flags: GETPROPERTYSTOREFLAGS, dwstoreid: u32) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetDelayedPropertyStore)(::windows_core::Interface::as_raw(self), flags, dwstoreid, &T::IID, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDelayedPropertyStoreFactory, ::windows_core::IUnknown, IPropertyStoreFactory); -unsafe impl ::windows_core::Interface for IDelayedPropertyStoreFactory { - type Vtable = IDelayedPropertyStoreFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDelayedPropertyStoreFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x40d4577f_e237_4bdb_bd69_58f089431b6a); -} #[repr(C)] #[doc(hidden)] pub struct IDelayedPropertyStoreFactory_Vtbl { pub base__: IPropertyStoreFactory_Vtbl, pub GetDelayedPropertyStore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: GETPROPERTYSTOREFLAGS, dwstoreid: u32, riid: *const ::windows_core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInitializeWithFile(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IInitializeWithFile, IInitializeWithFile_Vtbl, 0xb7d14566_0509_4cce_a71f_0a554233bd9b); +::windows_core::imp::interface_hierarchy!(IInitializeWithFile, ::windows_core::IUnknown); impl IInitializeWithFile { pub unsafe fn Initialize(&self, pszfilepath: P0, grfmode: u32) -> ::windows_core::Result<()> where @@ -811,22 +794,14 @@ impl IInitializeWithFile { (::windows_core::Interface::vtable(self).Initialize)(::windows_core::Interface::as_raw(self), pszfilepath.into_param().abi(), grfmode).ok() } } -::windows_core::imp::interface_hierarchy!(IInitializeWithFile, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInitializeWithFile { - type Vtable = IInitializeWithFile_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInitializeWithFile { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb7d14566_0509_4cce_a71f_0a554233bd9b); -} #[repr(C)] #[doc(hidden)] pub struct IInitializeWithFile_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszfilepath: ::windows_core::PCWSTR, grfmode: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInitializeWithStream(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IInitializeWithStream, IInitializeWithStream_Vtbl, 0xb824b49d_22ac_4161_ac8a_9916e8fa3f7f); +::windows_core::imp::interface_hierarchy!(IInitializeWithStream, ::windows_core::IUnknown); impl IInitializeWithStream { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -837,13 +812,6 @@ impl IInitializeWithStream { (::windows_core::Interface::vtable(self).Initialize)(::windows_core::Interface::as_raw(self), pstream.into_param().abi(), grfmode).ok() } } -::windows_core::imp::interface_hierarchy!(IInitializeWithStream, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInitializeWithStream { - type Vtable = IInitializeWithStream_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInitializeWithStream { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb824b49d_22ac_4161_ac8a_9916e8fa3f7f); -} #[repr(C)] #[doc(hidden)] pub struct IInitializeWithStream_Vtbl { @@ -853,9 +821,8 @@ pub struct IInitializeWithStream_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Initialize: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INamedPropertyStore(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INamedPropertyStore, INamedPropertyStore_Vtbl, 0x71604b0f_97b0_4764_8577_2f13e98a1422); +::windows_core::imp::interface_hierarchy!(INamedPropertyStore, ::windows_core::IUnknown); impl INamedPropertyStore { #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] @@ -883,13 +850,6 @@ impl INamedPropertyStore { (::windows_core::Interface::vtable(self).GetNameAt)(::windows_core::Interface::as_raw(self), iprop, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(INamedPropertyStore, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INamedPropertyStore { - type Vtable = INamedPropertyStore_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INamedPropertyStore { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x71604b0f_97b0_4764_8577_2f13e98a1422); -} #[repr(C)] #[doc(hidden)] pub struct INamedPropertyStore_Vtbl { @@ -905,9 +865,8 @@ pub struct INamedPropertyStore_Vtbl { pub GetNameCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwcount: *mut u32) -> ::windows_core::HRESULT, pub GetNameAt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, iprop: u32, pbstrname: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IObjectWithPropertyKey(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IObjectWithPropertyKey, IObjectWithPropertyKey_Vtbl, 0xfc0ca0a7_c316_4fd2_9031_3e628e6d4f23); +::windows_core::imp::interface_hierarchy!(IObjectWithPropertyKey, ::windows_core::IUnknown); impl IObjectWithPropertyKey { pub unsafe fn SetPropertyKey(&self, key: *const PROPERTYKEY) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetPropertyKey)(::windows_core::Interface::as_raw(self), key).ok() @@ -916,13 +875,6 @@ impl IObjectWithPropertyKey { (::windows_core::Interface::vtable(self).GetPropertyKey)(::windows_core::Interface::as_raw(self), pkey).ok() } } -::windows_core::imp::interface_hierarchy!(IObjectWithPropertyKey, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IObjectWithPropertyKey { - type Vtable = IObjectWithPropertyKey_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IObjectWithPropertyKey { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfc0ca0a7_c316_4fd2_9031_3e628e6d4f23); -} #[repr(C)] #[doc(hidden)] pub struct IObjectWithPropertyKey_Vtbl { @@ -930,9 +882,8 @@ pub struct IObjectWithPropertyKey_Vtbl { pub SetPropertyKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, key: *const PROPERTYKEY) -> ::windows_core::HRESULT, pub GetPropertyKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pkey: *mut PROPERTYKEY) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPersistSerializedPropStorage(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPersistSerializedPropStorage, IPersistSerializedPropStorage_Vtbl, 0xe318ad57_0aa0_450f_aca5_6fab7103d917); +::windows_core::imp::interface_hierarchy!(IPersistSerializedPropStorage, ::windows_core::IUnknown); impl IPersistSerializedPropStorage { pub unsafe fn SetFlags(&self, flags: i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetFlags)(::windows_core::Interface::as_raw(self), flags).ok() @@ -947,13 +898,6 @@ impl IPersistSerializedPropStorage { (::windows_core::Interface::vtable(self).GetPropertyStorage)(::windows_core::Interface::as_raw(self), ppsps, pcb).ok() } } -::windows_core::imp::interface_hierarchy!(IPersistSerializedPropStorage, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPersistSerializedPropStorage { - type Vtable = IPersistSerializedPropStorage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPersistSerializedPropStorage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe318ad57_0aa0_450f_aca5_6fab7103d917); -} #[repr(C)] #[doc(hidden)] pub struct IPersistSerializedPropStorage_Vtbl { @@ -962,9 +906,8 @@ pub struct IPersistSerializedPropStorage_Vtbl { pub SetPropertyStorage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psps: PCUSERIALIZEDPROPSTORAGE, cb: u32) -> ::windows_core::HRESULT, pub GetPropertyStorage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppsps: *mut *mut SERIALIZEDPROPSTORAGE, pcb: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPersistSerializedPropStorage2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPersistSerializedPropStorage2, IPersistSerializedPropStorage2_Vtbl, 0x77effa68_4f98_4366_ba72_573b3d880571); +::windows_core::imp::interface_hierarchy!(IPersistSerializedPropStorage2, ::windows_core::IUnknown, IPersistSerializedPropStorage); impl IPersistSerializedPropStorage2 { pub unsafe fn SetFlags(&self, flags: i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.SetFlags)(::windows_core::Interface::as_raw(self), flags).ok() @@ -986,13 +929,6 @@ impl IPersistSerializedPropStorage2 { (::windows_core::Interface::vtable(self).GetPropertyStorageBuffer)(::windows_core::Interface::as_raw(self), psps, cb, pcbwritten).ok() } } -::windows_core::imp::interface_hierarchy!(IPersistSerializedPropStorage2, ::windows_core::IUnknown, IPersistSerializedPropStorage); -unsafe impl ::windows_core::Interface for IPersistSerializedPropStorage2 { - type Vtable = IPersistSerializedPropStorage2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPersistSerializedPropStorage2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x77effa68_4f98_4366_ba72_573b3d880571); -} #[repr(C)] #[doc(hidden)] pub struct IPersistSerializedPropStorage2_Vtbl { @@ -1000,9 +936,8 @@ pub struct IPersistSerializedPropStorage2_Vtbl { pub GetPropertyStorageSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcb: *mut u32) -> ::windows_core::HRESULT, pub GetPropertyStorageBuffer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psps: *mut SERIALIZEDPROPSTORAGE, cb: u32, pcbwritten: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPropertyChange(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPropertyChange, IPropertyChange_Vtbl, 0xf917bc8a_1bba_4478_a245_1bde03eb9431); +::windows_core::imp::interface_hierarchy!(IPropertyChange, ::windows_core::IUnknown, IObjectWithPropertyKey); impl IPropertyChange { pub unsafe fn SetPropertyKey(&self, key: *const PROPERTYKEY) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.SetPropertyKey)(::windows_core::Interface::as_raw(self), key).ok() @@ -1017,13 +952,6 @@ impl IPropertyChange { (::windows_core::Interface::vtable(self).ApplyToPropVariant)(::windows_core::Interface::as_raw(self), propvarin, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IPropertyChange, ::windows_core::IUnknown, IObjectWithPropertyKey); -unsafe impl ::windows_core::Interface for IPropertyChange { - type Vtable = IPropertyChange_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPropertyChange { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf917bc8a_1bba_4478_a245_1bde03eb9431); -} #[repr(C)] #[doc(hidden)] pub struct IPropertyChange_Vtbl { @@ -1033,9 +961,8 @@ pub struct IPropertyChange_Vtbl { #[cfg(not(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant")))] ApplyToPropVariant: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPropertyChangeArray(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPropertyChangeArray, IPropertyChangeArray_Vtbl, 0x380f5cad_1b5e_42f2_805d_637fd392d31e); +::windows_core::imp::interface_hierarchy!(IPropertyChangeArray, ::windows_core::IUnknown); impl IPropertyChangeArray { pub unsafe fn GetCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1043,7 +970,7 @@ impl IPropertyChangeArray { } pub unsafe fn GetAt(&self, iindex: u32) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetAt)(::windows_core::Interface::as_raw(self), iindex, &T::IID, &mut result__).from_abi(result__) @@ -1073,13 +1000,6 @@ impl IPropertyChangeArray { (::windows_core::Interface::vtable(self).IsKeyInArray)(::windows_core::Interface::as_raw(self), key).ok() } } -::windows_core::imp::interface_hierarchy!(IPropertyChangeArray, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPropertyChangeArray { - type Vtable = IPropertyChangeArray_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPropertyChangeArray { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x380f5cad_1b5e_42f2_805d_637fd392d31e); -} #[repr(C)] #[doc(hidden)] pub struct IPropertyChangeArray_Vtbl { @@ -1092,9 +1012,8 @@ pub struct IPropertyChangeArray_Vtbl { pub RemoveAt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, iindex: u32) -> ::windows_core::HRESULT, pub IsKeyInArray: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, key: *const PROPERTYKEY) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPropertyDescription(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPropertyDescription, IPropertyDescription_Vtbl, 0x6f79d558_3e96_4549_a1d1_7d75d2288814); +::windows_core::imp::interface_hierarchy!(IPropertyDescription, ::windows_core::IUnknown); impl IPropertyDescription { pub unsafe fn GetPropertyKey(&self, pkey: *mut PROPERTYKEY) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetPropertyKey)(::windows_core::Interface::as_raw(self), pkey).ok() @@ -1170,7 +1089,7 @@ impl IPropertyDescription { } pub unsafe fn GetEnumTypeList(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetEnumTypeList)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -1192,13 +1111,6 @@ impl IPropertyDescription { (::windows_core::Interface::vtable(self).IsValueCanonical)(::windows_core::Interface::as_raw(self), propvar).ok() } } -::windows_core::imp::interface_hierarchy!(IPropertyDescription, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPropertyDescription { - type Vtable = IPropertyDescription_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPropertyDescription { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6f79d558_3e96_4549_a1d1_7d75d2288814); -} #[repr(C)] #[doc(hidden)] pub struct IPropertyDescription_Vtbl { @@ -1240,9 +1152,8 @@ pub struct IPropertyDescription_Vtbl { #[cfg(not(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant")))] IsValueCanonical: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPropertyDescription2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPropertyDescription2, IPropertyDescription2_Vtbl, 0x57d2eded_5062_400e_b107_5dae79fe57a6); +::windows_core::imp::interface_hierarchy!(IPropertyDescription2, ::windows_core::IUnknown, IPropertyDescription); impl IPropertyDescription2 { pub unsafe fn GetPropertyKey(&self, pkey: *mut PROPERTYKEY) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.GetPropertyKey)(::windows_core::Interface::as_raw(self), pkey).ok() @@ -1318,7 +1229,7 @@ impl IPropertyDescription2 { } pub unsafe fn GetEnumTypeList(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.GetEnumTypeList)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -1346,13 +1257,6 @@ impl IPropertyDescription2 { (::windows_core::Interface::vtable(self).GetImageReferenceForValue)(::windows_core::Interface::as_raw(self), propvar, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IPropertyDescription2, ::windows_core::IUnknown, IPropertyDescription); -unsafe impl ::windows_core::Interface for IPropertyDescription2 { - type Vtable = IPropertyDescription2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPropertyDescription2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x57d2eded_5062_400e_b107_5dae79fe57a6); -} #[repr(C)] #[doc(hidden)] pub struct IPropertyDescription2_Vtbl { @@ -1362,9 +1266,8 @@ pub struct IPropertyDescription2_Vtbl { #[cfg(not(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant")))] GetImageReferenceForValue: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPropertyDescriptionAliasInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPropertyDescriptionAliasInfo, IPropertyDescriptionAliasInfo_Vtbl, 0xf67104fc_2af9_46fd_b32d_243c1404f3d1); +::windows_core::imp::interface_hierarchy!(IPropertyDescriptionAliasInfo, ::windows_core::IUnknown, IPropertyDescription); impl IPropertyDescriptionAliasInfo { pub unsafe fn GetPropertyKey(&self, pkey: *mut PROPERTYKEY) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.GetPropertyKey)(::windows_core::Interface::as_raw(self), pkey).ok() @@ -1440,7 +1343,7 @@ impl IPropertyDescriptionAliasInfo { } pub unsafe fn GetEnumTypeList(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.GetEnumTypeList)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -1463,26 +1366,19 @@ impl IPropertyDescriptionAliasInfo { } pub unsafe fn GetSortByAlias(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetSortByAlias)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) } pub unsafe fn GetAdditionalSortByAliases(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetAdditionalSortByAliases)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IPropertyDescriptionAliasInfo, ::windows_core::IUnknown, IPropertyDescription); -unsafe impl ::windows_core::Interface for IPropertyDescriptionAliasInfo { - type Vtable = IPropertyDescriptionAliasInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPropertyDescriptionAliasInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf67104fc_2af9_46fd_b32d_243c1404f3d1); -} #[repr(C)] #[doc(hidden)] pub struct IPropertyDescriptionAliasInfo_Vtbl { @@ -1490,9 +1386,8 @@ pub struct IPropertyDescriptionAliasInfo_Vtbl { pub GetSortByAlias: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetAdditionalSortByAliases: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPropertyDescriptionList(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPropertyDescriptionList, IPropertyDescriptionList_Vtbl, 0x1f9fc1d0_c39b_4b26_817f_011967d3440e); +::windows_core::imp::interface_hierarchy!(IPropertyDescriptionList, ::windows_core::IUnknown); impl IPropertyDescriptionList { pub unsafe fn GetCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1500,19 +1395,12 @@ impl IPropertyDescriptionList { } pub unsafe fn GetAt(&self, ielem: u32) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetAt)(::windows_core::Interface::as_raw(self), ielem, &T::IID, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IPropertyDescriptionList, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPropertyDescriptionList { - type Vtable = IPropertyDescriptionList_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPropertyDescriptionList { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1f9fc1d0_c39b_4b26_817f_011967d3440e); -} #[repr(C)] #[doc(hidden)] pub struct IPropertyDescriptionList_Vtbl { @@ -1520,9 +1408,8 @@ pub struct IPropertyDescriptionList_Vtbl { pub GetCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcelem: *mut u32) -> ::windows_core::HRESULT, pub GetAt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ielem: u32, riid: *const ::windows_core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPropertyDescriptionRelatedPropertyInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPropertyDescriptionRelatedPropertyInfo, IPropertyDescriptionRelatedPropertyInfo_Vtbl, 0x507393f4_2a3d_4a60_b59e_d9c75716c2dd); +::windows_core::imp::interface_hierarchy!(IPropertyDescriptionRelatedPropertyInfo, ::windows_core::IUnknown, IPropertyDescription); impl IPropertyDescriptionRelatedPropertyInfo { pub unsafe fn GetPropertyKey(&self, pkey: *mut PROPERTYKEY) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.GetPropertyKey)(::windows_core::Interface::as_raw(self), pkey).ok() @@ -1598,7 +1485,7 @@ impl IPropertyDescriptionRelatedPropertyInfo { } pub unsafe fn GetEnumTypeList(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.GetEnumTypeList)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -1622,28 +1509,20 @@ impl IPropertyDescriptionRelatedPropertyInfo { pub unsafe fn GetRelatedProperty(&self, pszrelationshipname: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IPropertyDescriptionRelatedPropertyInfo, ::windows_core::IUnknown, IPropertyDescription); -unsafe impl ::windows_core::Interface for IPropertyDescriptionRelatedPropertyInfo { - type Vtable = IPropertyDescriptionRelatedPropertyInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPropertyDescriptionRelatedPropertyInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x507393f4_2a3d_4a60_b59e_d9c75716c2dd); -} #[repr(C)] #[doc(hidden)] pub struct IPropertyDescriptionRelatedPropertyInfo_Vtbl { pub base__: IPropertyDescription_Vtbl, pub GetRelatedProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszrelationshipname: ::windows_core::PCWSTR, riid: *const ::windows_core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPropertyDescriptionSearchInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPropertyDescriptionSearchInfo, IPropertyDescriptionSearchInfo_Vtbl, 0x078f91bd_29a2_440f_924e_46a291524520); +::windows_core::imp::interface_hierarchy!(IPropertyDescriptionSearchInfo, ::windows_core::IUnknown, IPropertyDescription); impl IPropertyDescriptionSearchInfo { pub unsafe fn GetPropertyKey(&self, pkey: *mut PROPERTYKEY) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.GetPropertyKey)(::windows_core::Interface::as_raw(self), pkey).ok() @@ -1719,7 +1598,7 @@ impl IPropertyDescriptionSearchInfo { } pub unsafe fn GetEnumTypeList(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.GetEnumTypeList)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -1757,13 +1636,6 @@ impl IPropertyDescriptionSearchInfo { (::windows_core::Interface::vtable(self).GetMaxSize)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IPropertyDescriptionSearchInfo, ::windows_core::IUnknown, IPropertyDescription); -unsafe impl ::windows_core::Interface for IPropertyDescriptionSearchInfo { - type Vtable = IPropertyDescriptionSearchInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPropertyDescriptionSearchInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x078f91bd_29a2_440f_924e_46a291524520); -} #[repr(C)] #[doc(hidden)] pub struct IPropertyDescriptionSearchInfo_Vtbl { @@ -1773,9 +1645,8 @@ pub struct IPropertyDescriptionSearchInfo_Vtbl { pub GetProjectionString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppszprojection: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, pub GetMaxSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcbmaxsize: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPropertyEnumType(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPropertyEnumType, IPropertyEnumType_Vtbl, 0x11e1fbf9_2d56_4a6b_8db3_7cd193a471f2); +::windows_core::imp::interface_hierarchy!(IPropertyEnumType, ::windows_core::IUnknown); impl IPropertyEnumType { pub unsafe fn GetEnumType(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1804,13 +1675,6 @@ impl IPropertyEnumType { (::windows_core::Interface::vtable(self).GetDisplayText)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IPropertyEnumType, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPropertyEnumType { - type Vtable = IPropertyEnumType_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPropertyEnumType { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x11e1fbf9_2d56_4a6b_8db3_7cd193a471f2); -} #[repr(C)] #[doc(hidden)] pub struct IPropertyEnumType_Vtbl { @@ -1830,9 +1694,8 @@ pub struct IPropertyEnumType_Vtbl { GetRangeSetValue: usize, pub GetDisplayText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppszdisplay: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPropertyEnumType2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPropertyEnumType2, IPropertyEnumType2_Vtbl, 0x9b6e051c_5ddd_4321_9070_fe2acb55e794); +::windows_core::imp::interface_hierarchy!(IPropertyEnumType2, ::windows_core::IUnknown, IPropertyEnumType); impl IPropertyEnumType2 { pub unsafe fn GetEnumType(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1865,22 +1728,14 @@ impl IPropertyEnumType2 { (::windows_core::Interface::vtable(self).GetImageReference)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IPropertyEnumType2, ::windows_core::IUnknown, IPropertyEnumType); -unsafe impl ::windows_core::Interface for IPropertyEnumType2 { - type Vtable = IPropertyEnumType2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPropertyEnumType2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9b6e051c_5ddd_4321_9070_fe2acb55e794); -} #[repr(C)] #[doc(hidden)] pub struct IPropertyEnumType2_Vtbl { pub base__: IPropertyEnumType_Vtbl, pub GetImageReference: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppszimageres: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPropertyEnumTypeList(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPropertyEnumTypeList, IPropertyEnumTypeList_Vtbl, 0xa99400f4_3d84_4557_94ba_1242fb2cc9a6); +::windows_core::imp::interface_hierarchy!(IPropertyEnumTypeList, ::windows_core::IUnknown); impl IPropertyEnumTypeList { pub unsafe fn GetCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1888,14 +1743,14 @@ impl IPropertyEnumTypeList { } pub unsafe fn GetAt(&self, itype: u32) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetAt)(::windows_core::Interface::as_raw(self), itype, &T::IID, &mut result__).from_abi(result__) } pub unsafe fn GetConditionAt(&self, nindex: u32) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetConditionAt)(::windows_core::Interface::as_raw(self), nindex, &T::IID, &mut result__).from_abi(result__) @@ -1907,13 +1762,6 @@ impl IPropertyEnumTypeList { (::windows_core::Interface::vtable(self).FindMatchingIndex)(::windows_core::Interface::as_raw(self), propvarcmp, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IPropertyEnumTypeList, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPropertyEnumTypeList { - type Vtable = IPropertyEnumTypeList_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPropertyEnumTypeList { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa99400f4_3d84_4557_94ba_1242fb2cc9a6); -} #[repr(C)] #[doc(hidden)] pub struct IPropertyEnumTypeList_Vtbl { @@ -1926,9 +1774,8 @@ pub struct IPropertyEnumTypeList_Vtbl { #[cfg(not(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant")))] FindMatchingIndex: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPropertyStore(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPropertyStore, IPropertyStore_Vtbl, 0x886d8eeb_8cf2_4446_8d02_cdba1dbdcf99); +::windows_core::imp::interface_hierarchy!(IPropertyStore, ::windows_core::IUnknown); impl IPropertyStore { pub unsafe fn GetCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1952,13 +1799,6 @@ impl IPropertyStore { (::windows_core::Interface::vtable(self).Commit)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IPropertyStore, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPropertyStore { - type Vtable = IPropertyStore_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPropertyStore { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x886d8eeb_8cf2_4446_8d02_cdba1dbdcf99); -} #[repr(C)] #[doc(hidden)] pub struct IPropertyStore_Vtbl { @@ -1975,9 +1815,8 @@ pub struct IPropertyStore_Vtbl { SetValue: usize, pub Commit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPropertyStoreCache(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPropertyStoreCache, IPropertyStoreCache_Vtbl, 0x3017056d_9a91_4e90_937d_746c72abbf4f); +::windows_core::imp::interface_hierarchy!(IPropertyStoreCache, ::windows_core::IUnknown, IPropertyStore); impl IPropertyStoreCache { pub unsafe fn GetCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2018,13 +1857,6 @@ impl IPropertyStoreCache { (::windows_core::Interface::vtable(self).SetValueAndState)(::windows_core::Interface::as_raw(self), key, ppropvar, state).ok() } } -::windows_core::imp::interface_hierarchy!(IPropertyStoreCache, ::windows_core::IUnknown, IPropertyStore); -unsafe impl ::windows_core::Interface for IPropertyStoreCache { - type Vtable = IPropertyStoreCache_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPropertyStoreCache { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3017056d_9a91_4e90_937d_746c72abbf4f); -} #[repr(C)] #[doc(hidden)] pub struct IPropertyStoreCache_Vtbl { @@ -2040,54 +1872,38 @@ pub struct IPropertyStoreCache_Vtbl { #[cfg(not(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant")))] SetValueAndState: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPropertyStoreCapabilities(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPropertyStoreCapabilities, IPropertyStoreCapabilities_Vtbl, 0xc8e2d566_186e_4d49_bf41_6909ead56acc); +::windows_core::imp::interface_hierarchy!(IPropertyStoreCapabilities, ::windows_core::IUnknown); impl IPropertyStoreCapabilities { pub unsafe fn IsPropertyWritable(&self, key: *const PROPERTYKEY) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).IsPropertyWritable)(::windows_core::Interface::as_raw(self), key).ok() } } -::windows_core::imp::interface_hierarchy!(IPropertyStoreCapabilities, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPropertyStoreCapabilities { - type Vtable = IPropertyStoreCapabilities_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPropertyStoreCapabilities { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc8e2d566_186e_4d49_bf41_6909ead56acc); -} #[repr(C)] #[doc(hidden)] pub struct IPropertyStoreCapabilities_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub IsPropertyWritable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, key: *const PROPERTYKEY) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPropertyStoreFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPropertyStoreFactory, IPropertyStoreFactory_Vtbl, 0xbc110b6d_57e8_4148_a9c6_91015ab2f3a5); +::windows_core::imp::interface_hierarchy!(IPropertyStoreFactory, ::windows_core::IUnknown); impl IPropertyStoreFactory { pub unsafe fn GetPropertyStore(&self, flags: GETPROPERTYSTOREFLAGS, punkfactory: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam<::windows_core::IUnknown>, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) } pub unsafe fn GetPropertyStoreForKeys(&self, rgkeys: *const PROPERTYKEY, ckeys: u32, flags: GETPROPERTYSTOREFLAGS) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetPropertyStoreForKeys)(::windows_core::Interface::as_raw(self), rgkeys, ckeys, flags, &T::IID, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IPropertyStoreFactory, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPropertyStoreFactory { - type Vtable = IPropertyStoreFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPropertyStoreFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbc110b6d_57e8_4148_a9c6_91015ab2f3a5); -} #[repr(C)] #[doc(hidden)] pub struct IPropertyStoreFactory_Vtbl { @@ -2095,13 +1911,12 @@ pub struct IPropertyStoreFactory_Vtbl { pub GetPropertyStore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: GETPROPERTYSTOREFLAGS, punkfactory: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetPropertyStoreForKeys: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rgkeys: *const PROPERTYKEY, ckeys: u32, flags: GETPROPERTYSTOREFLAGS, riid: *const ::windows_core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPropertySystem(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPropertySystem, IPropertySystem_Vtbl, 0xca724e8a_c3e6_442b_88a4_6fb0db8035a3); +::windows_core::imp::interface_hierarchy!(IPropertySystem, ::windows_core::IUnknown); impl IPropertySystem { pub unsafe fn GetPropertyDescription(&self, propkey: *const PROPERTYKEY) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetPropertyDescription)(::windows_core::Interface::as_raw(self), propkey, &T::IID, &mut result__).from_abi(result__) @@ -2109,7 +1924,7 @@ impl IPropertySystem { pub unsafe fn GetPropertyDescriptionByName(&self, pszcanonicalname: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -2117,14 +1932,14 @@ impl IPropertySystem { pub unsafe fn GetPropertyDescriptionListFromString(&self, pszproplist: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) } pub unsafe fn EnumeratePropertyDescriptions(&self, filteron: PROPDESC_ENUMFILTER) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).EnumeratePropertyDescriptions)(::windows_core::Interface::as_raw(self), filteron, &T::IID, &mut result__).from_abi(result__) @@ -2156,13 +1971,6 @@ impl IPropertySystem { (::windows_core::Interface::vtable(self).RefreshPropertySchema)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IPropertySystem, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPropertySystem { - type Vtable = IPropertySystem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPropertySystem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xca724e8a_c3e6_442b_88a4_6fb0db8035a3); -} #[repr(C)] #[doc(hidden)] pub struct IPropertySystem_Vtbl { @@ -2183,30 +1991,21 @@ pub struct IPropertySystem_Vtbl { pub UnregisterPropertySchema: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszpath: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub RefreshPropertySchema: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPropertySystemChangeNotify(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPropertySystemChangeNotify, IPropertySystemChangeNotify_Vtbl, 0xfa955fd9_38be_4879_a6ce_824cf52d609f); +::windows_core::imp::interface_hierarchy!(IPropertySystemChangeNotify, ::windows_core::IUnknown); impl IPropertySystemChangeNotify { pub unsafe fn SchemaRefreshed(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SchemaRefreshed)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IPropertySystemChangeNotify, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPropertySystemChangeNotify { - type Vtable = IPropertySystemChangeNotify_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPropertySystemChangeNotify { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfa955fd9_38be_4879_a6ce_824cf52d609f); -} #[repr(C)] #[doc(hidden)] pub struct IPropertySystemChangeNotify_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub SchemaRefreshed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPropertyUI(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPropertyUI, IPropertyUI_Vtbl, 0x757a7d9f_919a_4118_99d7_dbb208c8cc66); +::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 @@ -2240,13 +2039,6 @@ impl IPropertyUI { (::windows_core::Interface::vtable(self).GetHelpInfo)(::windows_core::Interface::as_raw(self), fmtid, pid, ::core::mem::transmute(pwszhelpfile.as_ptr()), pwszhelpfile.len().try_into().unwrap(), puhelpid).ok() } } -::windows_core::imp::interface_hierarchy!(IPropertyUI, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPropertyUI { - type Vtable = IPropertyUI_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPropertyUI { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x757a7d9f_919a_4118_99d7_dbb208c8cc66); -} #[repr(C)] #[doc(hidden)] pub struct IPropertyUI_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/UI/Shell/impl.rs b/crates/libs/windows/src/Windows/Win32/UI/Shell/impl.rs index e7a30d20ff..c28d05ee40 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Shell/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Shell/impl.rs @@ -26,7 +26,7 @@ impl CIE4ConnectionPoint_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -69,7 +69,7 @@ impl DFConstraint_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -83,7 +83,7 @@ impl DShellFolderViewEvents_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -97,7 +97,7 @@ impl DShellNameSpaceEvents_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -111,7 +111,7 @@ impl DShellWindowsEvents_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -125,7 +125,7 @@ impl DWebBrowserEvents_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -139,7 +139,7 @@ impl DWebBrowserEvents2_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -268,7 +268,7 @@ impl Folder_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -338,7 +338,7 @@ impl Folder2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -375,7 +375,7 @@ impl Folder3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -595,7 +595,7 @@ impl FolderItem_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -632,7 +632,7 @@ impl FolderItem2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -695,7 +695,7 @@ impl FolderItemVerb_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -777,7 +777,7 @@ impl FolderItemVerbs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -859,7 +859,7 @@ impl FolderItems_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -880,7 +880,7 @@ impl FolderItems2_Vtbl { Self { base__: FolderItems_Vtbl::new::(), InvokeVerbEx: InvokeVerbEx:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -913,7 +913,7 @@ impl FolderItems3_Vtbl { Self { base__: FolderItems2_Vtbl::new::(), Filter: Filter::, Verbs: Verbs:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IACList_Impl: Sized { @@ -930,7 +930,7 @@ impl IACList_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Expand: Expand:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IACList2_Impl: Sized + IACList_Impl { @@ -963,7 +963,7 @@ impl IACList2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] @@ -1001,7 +1001,7 @@ impl IAccessibilityDockingService_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAccessibilityDockingServiceCallback_Impl: Sized { @@ -1018,7 +1018,7 @@ impl IAccessibilityDockingServiceCallback_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Undocked: Undocked:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAccessibleObject_Impl: Sized { @@ -1035,7 +1035,7 @@ impl IAccessibleObject_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), SetAccessibleName: SetAccessibleName:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IActionProgress_Impl: Sized { @@ -1096,7 +1096,7 @@ impl IActionProgress_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IActionProgressDialog_Impl: Sized { @@ -1123,7 +1123,7 @@ impl IActionProgressDialog_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] @@ -1205,7 +1205,7 @@ impl IAppActivationUIInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAppPublisher_Impl: Sized { @@ -1270,7 +1270,7 @@ impl IAppPublisher_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] @@ -1333,7 +1333,7 @@ impl IAppVisibility_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] @@ -1364,7 +1364,7 @@ impl IAppVisibilityEvents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IApplicationActivationManager_Impl: Sized { @@ -1416,7 +1416,7 @@ impl IApplicationActivationManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IApplicationAssociationRegistration_Impl: Sized { @@ -1489,7 +1489,7 @@ impl IApplicationAssociationRegistration_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IApplicationAssociationRegistrationUI_Impl: Sized { @@ -1509,7 +1509,7 @@ impl IApplicationAssociationRegistrationUI_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_Common\"`"] @@ -1580,7 +1580,7 @@ impl IApplicationDesignModeSettings_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_Common\"`"] @@ -1652,7 +1652,7 @@ impl IApplicationDesignModeSettings2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IApplicationDestinations_Impl: Sized { @@ -1686,7 +1686,7 @@ impl IApplicationDestinations_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IApplicationDocumentLists_Impl: Sized { @@ -1713,7 +1713,7 @@ impl IApplicationDocumentLists_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1797,7 +1797,7 @@ impl IAssocHandler_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAssocHandlerInvoker_Impl: Sized { @@ -1824,7 +1824,7 @@ impl IAssocHandlerInvoker_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAttachmentExecute_Impl: Sized { @@ -1927,7 +1927,7 @@ impl IAttachmentExecute_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAutoComplete_Impl: Sized { @@ -1950,7 +1950,7 @@ impl IAutoComplete_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Init: Init::, Enable: Enable:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAutoComplete2_Impl: Sized + IAutoComplete_Impl { @@ -1983,7 +1983,7 @@ impl IAutoComplete2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IAutoCompleteDropDown_Impl: Sized { @@ -2010,7 +2010,7 @@ impl IAutoCompleteDropDown_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IBandHost_Impl: Sized { @@ -2044,7 +2044,7 @@ impl IBandHost_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Ole\"`"] @@ -2123,7 +2123,7 @@ impl IBandSite_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IBannerNotificationHandler_Impl: Sized { @@ -2140,7 +2140,7 @@ impl IBannerNotificationHandler_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnBannerEvent: OnBannerEvent:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] @@ -2197,7 +2197,7 @@ impl IBanneredBar_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IBrowserFrameOptions_Impl: Sized { @@ -2220,7 +2220,7 @@ impl IBrowserFrameOptions_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetFrameOptions: GetFrameOptions:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`, `\"Win32_UI_Shell_Common\"`"] @@ -2525,7 +2525,7 @@ impl IBrowserService_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`, `\"Win32_UI_Controls\"`, `\"Win32_UI_Shell_Common\"`, `\"Win32_UI_WindowsAndMessaging\"`"] @@ -3000,7 +3000,7 @@ impl IBrowserService2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`, `\"Win32_UI_Controls\"`, `\"Win32_UI_Shell_Common\"`, `\"Win32_UI_WindowsAndMessaging\"`"] @@ -3037,7 +3037,7 @@ impl IBrowserService3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`, `\"Win32_UI_Controls\"`, `\"Win32_UI_Shell_Common\"`, `\"Win32_UI_WindowsAndMessaging\"`"] @@ -3075,7 +3075,7 @@ impl IBrowserService4_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ICDBurn_Impl: Sized { @@ -3115,7 +3115,7 @@ impl ICDBurn_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICDBurnExt_Impl: Sized { @@ -3138,7 +3138,7 @@ impl ICDBurnExt_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetSupportedActionTypes: GetSupportedActionTypes:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_Common\"`"] @@ -3183,7 +3183,7 @@ impl ICategorizer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -3254,7 +3254,7 @@ impl ICategoryProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -3312,7 +3312,7 @@ impl IColumnManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`, `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -3356,7 +3356,7 @@ impl IColumnProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Ole\"`, `\"Win32_UI_Shell_Common\"`"] @@ -3394,7 +3394,7 @@ impl ICommDlgBrowser_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Ole\"`, `\"Win32_UI_Shell_Common\"`"] @@ -3438,7 +3438,7 @@ impl ICommDlgBrowser2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Ole\"`, `\"Win32_UI_Shell_Common\"`"] @@ -3476,7 +3476,7 @@ impl ICommDlgBrowser3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IComputerInfoChangeNotify_Impl: Sized { @@ -3493,7 +3493,7 @@ impl IComputerInfoChangeNotify_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), ComputerInfoChanged: ComputerInfoChanged:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] @@ -3524,7 +3524,7 @@ impl IConnectableCredentialProviderCredential_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IContactManagerInterop_Impl: Sized { @@ -3541,7 +3541,7 @@ impl IContactManagerInterop_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), ShowContactCardForWindow: ShowContactCardForWindow:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_WindowsAndMessaging\"`"] @@ -3579,7 +3579,7 @@ impl IContextMenu_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_WindowsAndMessaging\"`"] @@ -3600,7 +3600,7 @@ impl IContextMenu2_Vtbl { Self { base__: IContextMenu_Vtbl::new::(), HandleMenuMsg: HandleMenuMsg:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_UI_WindowsAndMessaging\"`"] @@ -3621,7 +3621,7 @@ impl IContextMenu3_Vtbl { Self { base__: IContextMenu2_Vtbl::new::(), HandleMenuMsg2: HandleMenuMsg2:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3642,7 +3642,7 @@ impl IContextMenuCB_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CallBack: CallBack:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IContextMenuSite_Impl: Sized { @@ -3659,7 +3659,7 @@ impl IContextMenuSite_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), DoContextMenuPopup: DoContextMenuPopup:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICopyHookA_Impl: Sized { @@ -3676,7 +3676,7 @@ impl ICopyHookA_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CopyCallback: CopyCallback:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICopyHookW_Impl: Sized { @@ -3693,7 +3693,7 @@ impl ICopyHookW_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CopyCallback: CopyCallback:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICreateProcessInputs_Impl: Sized { @@ -3761,7 +3761,7 @@ impl ICreateProcessInputs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICreatingProcess_Impl: Sized { @@ -3778,7 +3778,7 @@ impl ICreatingProcess_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnCreating: OnCreating:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICredentialProvider_Impl: Sized { @@ -3865,7 +3865,7 @@ impl ICredentialProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] @@ -4031,7 +4031,7 @@ impl ICredentialProviderCredential_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] @@ -4058,7 +4058,7 @@ impl ICredentialProviderCredential2_Vtbl { Self { base__: ICredentialProviderCredential_Vtbl::new::(), GetUserSid: GetUserSid:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] @@ -4151,7 +4151,7 @@ impl ICredentialProviderCredentialEvents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] @@ -4189,7 +4189,7 @@ impl ICredentialProviderCredentialEvents2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ICredentialProviderCredentialWithFieldOptions_Impl: Sized { @@ -4212,7 +4212,7 @@ impl ICredentialProviderCredentialWithFieldOptions_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetFieldOptions: GetFieldOptions:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICredentialProviderEvents_Impl: Sized { @@ -4229,7 +4229,7 @@ impl ICredentialProviderEvents_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CredentialsChanged: CredentialsChanged:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICredentialProviderFilter_Impl: Sized { @@ -4256,7 +4256,7 @@ impl ICredentialProviderFilter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICredentialProviderSetUserArray_Impl: Sized { @@ -4273,7 +4273,7 @@ impl ICredentialProviderSetUserArray_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), SetUserArray: SetUserArray:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`, `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -4342,7 +4342,7 @@ impl ICredentialProviderUser_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICredentialProviderUserArray_Impl: Sized { @@ -4401,7 +4401,7 @@ impl ICredentialProviderUserArray_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_Common\"`"] @@ -4415,7 +4415,7 @@ impl ICurrentItem_Vtbl { Self { base__: IRelatedItem_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ICurrentWorkingDirectory_Impl: Sized { @@ -4442,7 +4442,7 @@ impl ICurrentWorkingDirectory_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_Common\"`"] @@ -4522,7 +4522,7 @@ impl ICustomDestinationList_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -4586,7 +4586,7 @@ impl IDataObjectAsyncCapability_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -4623,7 +4623,7 @@ impl IDataObjectProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDataTransferManagerInterop_Impl: Sized { @@ -4650,7 +4650,7 @@ impl IDataTransferManagerInterop_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Registry\"`"] @@ -4709,7 +4709,7 @@ impl IDefaultExtractIconInit_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Registry\"`, `\"Win32_UI_Shell_Common\"`"] @@ -4760,7 +4760,7 @@ impl IDefaultFolderMenuInitialize_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -4781,7 +4781,7 @@ impl IDelegateFolder_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), SetItemAlloc: SetItemAlloc:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_Common\"`"] @@ -4795,7 +4795,7 @@ impl IDelegateItem_Vtbl { Self { base__: IRelatedItem_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Ole\"`"] @@ -4816,7 +4816,7 @@ impl IDeskBand_Vtbl { Self { base__: IDockingWindow_Vtbl::new::(), GetBandInfo: GetBandInfo:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Ole\"`"] @@ -4866,7 +4866,7 @@ impl IDeskBand2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IDeskBandInfo_Impl: Sized { @@ -4889,7 +4889,7 @@ impl IDeskBandInfo_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetDefaultBandWidth: GetDefaultBandWidth:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Ole\"`"] @@ -4933,7 +4933,7 @@ impl IDeskBar_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Ole\"`"] @@ -4984,7 +4984,7 @@ impl IDeskBarClient_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IDesktopGadget_Impl: Sized { @@ -5001,7 +5001,7 @@ impl IDesktopGadget_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), RunGadget: RunGadget:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDesktopWallpaper_Impl: Sized { @@ -5174,7 +5174,7 @@ impl IDesktopWallpaper_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -5201,7 +5201,7 @@ impl IDestinationStreamFactory_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetDestinationStream: GetDestinationStream:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_Common\"`"] @@ -5215,7 +5215,7 @@ impl IDisplayItem_Vtbl { Self { base__: IRelatedItem_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5236,7 +5236,7 @@ impl IDocViewSite_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnSetTitle: OnSetTitle:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Ole\"`"] @@ -5274,7 +5274,7 @@ impl IDockingWindow_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Ole\"`"] @@ -5312,7 +5312,7 @@ impl IDockingWindowFrame_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Ole\"`"] @@ -5356,7 +5356,7 @@ impl IDockingWindowSite_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_System_Com\"`"] @@ -5387,7 +5387,7 @@ impl IDragSourceHelper_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_System_Com\"`"] @@ -5408,7 +5408,7 @@ impl IDragSourceHelper2_Vtbl { Self { base__: IDragSourceHelper_Vtbl::new::(), SetFlags: SetFlags:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`"] @@ -5460,7 +5460,7 @@ impl IDropTargetHelper_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDynamicHWHandler_Impl: Sized { @@ -5483,7 +5483,7 @@ impl IDynamicHWHandler_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetDynamicInfo: GetDynamicInfo:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -5527,7 +5527,7 @@ impl IEnumACString_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IEnumAssocHandlers_Impl: Sized { @@ -5544,7 +5544,7 @@ impl IEnumAssocHandlers_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Next: Next:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumExplorerCommand_Impl: Sized { @@ -5591,7 +5591,7 @@ impl IEnumExplorerCommand_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumExtraSearch_Impl: Sized { @@ -5638,7 +5638,7 @@ impl IEnumExtraSearch_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_Common\"`"] @@ -5689,7 +5689,7 @@ impl IEnumFullIDList_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumHLITEM_Impl: Sized { @@ -5736,7 +5736,7 @@ impl IEnumHLITEM_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_Common\"`"] @@ -5781,7 +5781,7 @@ impl IEnumIDList_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumObjects_Impl: Sized { @@ -5828,7 +5828,7 @@ impl IEnumObjects_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumPublishedApps_Impl: Sized { @@ -5857,7 +5857,7 @@ impl IEnumPublishedApps_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Next: Next::, Reset: Reset:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumReadyCallback_Impl: Sized { @@ -5874,7 +5874,7 @@ impl IEnumReadyCallback_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), EnumReady: EnumReady:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumResources_Impl: Sized { @@ -5921,7 +5921,7 @@ impl IEnumResources_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumShellItems_Impl: Sized { @@ -5968,7 +5968,7 @@ impl IEnumShellItems_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumSyncMgrConflict_Impl: Sized { @@ -6015,7 +6015,7 @@ impl IEnumSyncMgrConflict_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumSyncMgrEvents_Impl: Sized { @@ -6062,7 +6062,7 @@ impl IEnumSyncMgrEvents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumSyncMgrSyncItems_Impl: Sized { @@ -6109,7 +6109,7 @@ impl IEnumSyncMgrSyncItems_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumTravelLogEntry_Impl: Sized { @@ -6156,7 +6156,7 @@ impl IEnumTravelLogEntry_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_Common\"`"] @@ -6193,7 +6193,7 @@ impl IEnumerableView_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IExecuteCommand_Impl: Sized { @@ -6255,7 +6255,7 @@ impl IExecuteCommand_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IExecuteCommandApplicationHostEnvironment_Impl: Sized { @@ -6278,7 +6278,7 @@ impl IExecuteCommandApplicationHostEnvironment_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetValue: GetValue:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IExecuteCommandHost_Impl: Sized { @@ -6301,7 +6301,7 @@ impl IExecuteCommandHost_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetUIMode: GetUIMode:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`, `\"Win32_UI_WindowsAndMessaging\"`"] @@ -6345,7 +6345,7 @@ impl IExpDispSupport_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`, `\"Win32_UI_WindowsAndMessaging\"`"] @@ -6389,7 +6389,7 @@ impl IExpDispSupportXP_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_Common\"`, `\"Win32_UI_WindowsAndMessaging\"`"] @@ -6523,7 +6523,7 @@ impl IExplorerBrowser_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Ole\"`, `\"Win32_UI_Shell_Common\"`"] @@ -6568,7 +6568,7 @@ impl IExplorerBrowserEvents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -6683,7 +6683,7 @@ impl IExplorerCommand_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IExplorerCommandProvider_Impl: Sized { @@ -6710,7 +6710,7 @@ impl IExplorerCommandProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IExplorerCommandState_Impl: Sized { @@ -6733,7 +6733,7 @@ impl IExplorerCommandState_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetState: GetState:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IExplorerPaneVisibility_Impl: Sized { @@ -6756,7 +6756,7 @@ impl IExplorerPaneVisibility_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetPaneState: GetPaneState:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IExtensionServices_Impl: Sized { @@ -6783,7 +6783,7 @@ impl IExtensionServices_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_WindowsAndMessaging\"`"] @@ -6814,7 +6814,7 @@ impl IExtractIconA_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_WindowsAndMessaging\"`"] @@ -6845,7 +6845,7 @@ impl IExtractIconW_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] @@ -6882,7 +6882,7 @@ impl IExtractImage_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] @@ -6909,7 +6909,7 @@ impl IExtractImage2_Vtbl { Self { base__: IExtractImage_Vtbl::new::(), GetDateStamp: GetDateStamp:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_Common\"`"] @@ -7129,7 +7129,7 @@ impl IFileDialog_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_Common\"`"] @@ -7160,7 +7160,7 @@ impl IFileDialog2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IFileDialogControlEvents_Impl: Sized { @@ -7201,7 +7201,7 @@ impl IFileDialogControlEvents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IFileDialogCustomize_Impl: Sized { @@ -7433,7 +7433,7 @@ impl IFileDialogCustomize_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IFileDialogEvents_Impl: Sized { @@ -7507,7 +7507,7 @@ impl IFileDialogEvents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IFileIsInUse_Impl: Sized { @@ -7579,7 +7579,7 @@ impl IFileIsInUse_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_Common\"`"] @@ -7622,7 +7622,7 @@ impl IFileOpenDialog_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -7791,7 +7791,7 @@ impl IFileOperation_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -7812,7 +7812,7 @@ impl IFileOperation2_Vtbl { Self { base__: IFileOperation_Vtbl::new::(), SetOperationFlags2: SetOperationFlags2:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IFileOperationProgressSink_Impl: Sized { @@ -7937,7 +7937,7 @@ impl IFileOperationProgressSink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_Common\"`, `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -7995,7 +7995,7 @@ impl IFileSaveDialog_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -8065,7 +8065,7 @@ impl IFileSearchBand_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] @@ -8102,7 +8102,7 @@ impl IFileSyncMergeHandler_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_FileSystem\"`"] @@ -8133,7 +8133,7 @@ impl IFileSystemBindData_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_FileSystem\"`"] @@ -8190,7 +8190,7 @@ impl IFileSystemBindData2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IFolderBandPriv_Impl: Sized { @@ -8231,7 +8231,7 @@ impl IFolderBandPriv_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_Common\"`"] @@ -8262,7 +8262,7 @@ impl IFolderFilter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IFolderFilterSite_Impl: Sized { @@ -8279,7 +8279,7 @@ impl IFolderFilterSite_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), SetFilter: SetFilter:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_Common\"`"] @@ -8436,7 +8436,7 @@ impl IFolderView_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`, `\"Win32_UI_Shell_Common\"`, `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -8676,7 +8676,7 @@ impl IFolderView2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -8697,7 +8697,7 @@ impl IFolderViewHost_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Initialize: Initialize:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -8718,7 +8718,7 @@ impl IFolderViewOC_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::(), SetFolderView: SetFolderView:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IFolderViewOptions_Impl: Sized { @@ -8751,7 +8751,7 @@ impl IFolderViewOptions_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -8835,7 +8835,7 @@ impl IFolderViewSettings_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IFrameworkInputPane_Impl: Sized { @@ -8894,7 +8894,7 @@ impl IFrameworkInputPane_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IFrameworkInputPaneHandler_Impl: Sized { @@ -8921,7 +8921,7 @@ impl IFrameworkInputPaneHandler_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IGetServiceIds_Impl: Sized { @@ -8938,7 +8938,7 @@ impl IGetServiceIds_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetServiceIds: GetServiceIds:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -8976,7 +8976,7 @@ impl IHWEventHandler_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -8997,7 +8997,7 @@ impl IHWEventHandler2_Vtbl { Self { base__: IHWEventHandler_Vtbl::new::(), HandleEventWithHWND: HandleEventWithHWND:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IHandlerActivationHost_Impl: Sized { @@ -9024,7 +9024,7 @@ impl IHandlerActivationHost_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IHandlerInfo_Impl: Sized { @@ -9076,7 +9076,7 @@ impl IHandlerInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IHandlerInfo2_Impl: Sized + IHandlerInfo_Impl { @@ -9099,7 +9099,7 @@ impl IHandlerInfo2_Vtbl { Self { base__: IHandlerInfo_Vtbl::new::(), GetApplicationId: GetApplicationId:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -9238,7 +9238,7 @@ impl IHlink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -9389,7 +9389,7 @@ impl IHlinkBrowseContext_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -9447,7 +9447,7 @@ impl IHlinkFrame_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -9504,7 +9504,7 @@ impl IHlinkSite_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -9574,7 +9574,7 @@ impl IHlinkTarget_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IHomeGroup_Impl: Sized { @@ -9613,7 +9613,7 @@ impl IHomeGroup_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IIOCancelInformation_Impl: Sized { @@ -9640,7 +9640,7 @@ impl IIOCancelInformation_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_Common\"`"] @@ -9654,7 +9654,7 @@ impl IIdentityName_Vtbl { Self { base__: IRelatedItem_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`"] @@ -9681,7 +9681,7 @@ impl IImageRecompress_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), RecompressImage: RecompressImage:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`"] @@ -9702,7 +9702,7 @@ impl IInitializeCommand_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Initialize: Initialize:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_Common\"`"] @@ -9723,7 +9723,7 @@ impl IInitializeNetworkFolder_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Initialize: Initialize:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IInitializeObject_Impl: Sized { @@ -9740,7 +9740,7 @@ impl IInitializeObject_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Initialize: Initialize:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -9761,7 +9761,7 @@ impl IInitializeWithBindCtx_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Initialize: Initialize:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IInitializeWithItem_Impl: Sized { @@ -9778,7 +9778,7 @@ impl IInitializeWithItem_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Initialize: Initialize:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -9799,7 +9799,7 @@ impl IInitializeWithPropertyStore_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Initialize: Initialize:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IInitializeWithWindow_Impl: Sized { @@ -9816,7 +9816,7 @@ impl IInitializeWithWindow_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Initialize: Initialize:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_WindowsAndMessaging\"`"] @@ -9854,7 +9854,7 @@ impl IInputObject_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_WindowsAndMessaging\"`"] @@ -9875,7 +9875,7 @@ impl IInputObject2_Vtbl { Self { base__: IInputObject_Vtbl::new::(), TranslateAcceleratorGlobal: TranslateAcceleratorGlobal:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IInputObjectSite_Impl: Sized { @@ -9892,7 +9892,7 @@ impl IInputObjectSite_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnFocusChangeIS: OnFocusChangeIS:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_DirectComposition\"`"] @@ -9913,7 +9913,7 @@ impl IInputPaneAnimationCoordinator_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), AddAnimation: AddAnimation:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IInputPanelConfiguration_Impl: Sized { @@ -9930,7 +9930,7 @@ impl IInputPanelConfiguration_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), EnableFocusTracking: EnableFocusTracking:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IInputPanelInvocationConfiguration_Impl: Sized { @@ -9947,7 +9947,7 @@ impl IInputPanelInvocationConfiguration_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), RequireTouchInEditControl: RequireTouchInEditControl:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_Common\"`"] @@ -9968,7 +9968,7 @@ impl IInsertItem_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), InsertItem: InsertItem:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IItemNameLimits_Impl: Sized { @@ -10001,7 +10001,7 @@ impl IItemNameLimits_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_Common\"`"] @@ -10117,7 +10117,7 @@ impl IKnownFolder_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_Common\"`"] @@ -10240,7 +10240,7 @@ impl IKnownFolderManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ILaunchSourceAppUserModelId_Impl: Sized { @@ -10263,7 +10263,7 @@ impl ILaunchSourceAppUserModelId_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetAppUserModelId: GetAppUserModelId:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ILaunchSourceViewSizePreference_Impl: Sized { @@ -10302,7 +10302,7 @@ impl ILaunchSourceViewSizePreference_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] @@ -10329,7 +10329,7 @@ impl ILaunchTargetMonitor_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetMonitor: GetMonitor:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ILaunchTargetViewSizePreference_Impl: Sized { @@ -10355,7 +10355,7 @@ impl ILaunchTargetViewSizePreference_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ILaunchUIContext_Impl: Sized { @@ -10382,7 +10382,7 @@ impl ILaunchUIContext_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ILaunchUIContextProvider_Impl: Sized { @@ -10399,7 +10399,7 @@ impl ILaunchUIContextProvider_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), UpdateContext: UpdateContext:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_WindowsAndMessaging\"`"] @@ -10430,7 +10430,7 @@ impl IMenuBand_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Ole\"`"] @@ -10468,7 +10468,7 @@ impl IMenuPopup_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IModalWindow_Impl: Sized { @@ -10485,7 +10485,7 @@ impl IModalWindow_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Show: Show:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -10535,7 +10535,7 @@ impl INameSpaceTreeAccessible_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait INameSpaceTreeControl_Impl: Sized { @@ -10729,7 +10729,7 @@ impl INameSpaceTreeControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait INameSpaceTreeControl2_Impl: Sized + INameSpaceTreeControl_Impl { @@ -10782,7 +10782,7 @@ impl INameSpaceTreeControl2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_UI_Controls\"`"] @@ -10833,7 +10833,7 @@ impl INameSpaceTreeControlCustomDraw_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait INameSpaceTreeControlDropHandler_Impl: Sized { @@ -10888,7 +10888,7 @@ impl INameSpaceTreeControlDropHandler_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait INameSpaceTreeControlEvents_Impl: Sized { @@ -11027,7 +11027,7 @@ impl INameSpaceTreeControlEvents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait INameSpaceTreeControlFolderCapabilities_Impl: Sized { @@ -11050,7 +11050,7 @@ impl INameSpaceTreeControlFolderCapabilities_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetFolderCapabilities: GetFolderCapabilities:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] @@ -11088,7 +11088,7 @@ impl INamedPropertyBag_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_Common\"`"] @@ -11119,7 +11119,7 @@ impl INamespaceWalk_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_Common\"`"] @@ -11164,7 +11164,7 @@ impl INamespaceWalkCB_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_Common\"`"] @@ -11185,7 +11185,7 @@ impl INamespaceWalkCB2_Vtbl { Self { base__: INamespaceWalkCB_Vtbl::new::(), WalkComplete: WalkComplete:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_Common\"`"] @@ -11235,7 +11235,7 @@ impl INetworkFolderInternal_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_Common\"`"] @@ -11272,7 +11272,7 @@ impl INewMenuClient_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait INewShortcutHookA_Impl: Sized { @@ -11327,7 +11327,7 @@ impl INewShortcutHookA_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait INewShortcutHookW_Impl: Sized { @@ -11382,7 +11382,7 @@ impl INewShortcutHookW_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -11409,7 +11409,7 @@ impl INewWDEvents_Vtbl { Self { base__: IWebWizardHost_Vtbl::new::(), PassportAuthenticate: PassportAuthenticate:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait INewWindowManager_Impl: Sized { @@ -11426,7 +11426,7 @@ impl INewWindowManager_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), EvaluateNewWindow: EvaluateNewWindow:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -11447,7 +11447,7 @@ impl INotifyReplica_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), YouAreAReplica: YouAreAReplica:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IObjMgr_Impl: Sized { @@ -11474,7 +11474,7 @@ impl IObjMgr_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IObjectProvider_Impl: Sized { @@ -11491,7 +11491,7 @@ impl IObjectProvider_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), QueryObject: QueryObject:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IObjectWithAppUserModelID_Impl: Sized { @@ -11524,7 +11524,7 @@ impl IObjectWithAppUserModelID_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IObjectWithBackReferences_Impl: Sized { @@ -11541,7 +11541,7 @@ impl IObjectWithBackReferences_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), RemoveBackReferences: RemoveBackReferences:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IObjectWithCancelEvent_Impl: Sized { @@ -11564,7 +11564,7 @@ impl IObjectWithCancelEvent_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetCancelEvent: GetCancelEvent:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IObjectWithFolderEnumMode_Impl: Sized { @@ -11597,7 +11597,7 @@ impl IObjectWithFolderEnumMode_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IObjectWithProgID_Impl: Sized { @@ -11630,7 +11630,7 @@ impl IObjectWithProgID_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IObjectWithSelection_Impl: Sized { @@ -11657,7 +11657,7 @@ impl IObjectWithSelection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IOpenControlPanel_Impl: Sized { @@ -11697,7 +11697,7 @@ impl IOpenControlPanel_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IOpenSearchSource_Impl: Sized { @@ -11714,7 +11714,7 @@ impl IOpenSearchSource_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetResults: GetResults:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -11814,7 +11814,7 @@ impl IOperationsProgressDialog_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPackageDebugSettings_Impl: Sized { @@ -11944,7 +11944,7 @@ impl IPackageDebugSettings_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPackageDebugSettings2_Impl: Sized + IPackageDebugSettings_Impl { @@ -11961,7 +11961,7 @@ impl IPackageDebugSettings2_Vtbl { Self { base__: IPackageDebugSettings_Vtbl::new::(), EnumerateApps: EnumerateApps:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IPackageExecutionStateChangeNotification_Impl: Sized { @@ -11978,7 +11978,7 @@ impl IPackageExecutionStateChangeNotification_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnStateChanged: OnStateChanged:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_Common\"`"] @@ -12009,7 +12009,7 @@ impl IParentAndItem_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IParseAndCreateItem_Impl: Sized { @@ -12036,7 +12036,7 @@ impl IParseAndCreateItem_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_UI_Shell_Common\"`"] @@ -12057,7 +12057,7 @@ impl IPersistFolder_Vtbl { Self { base__: super::super::System::Com::IPersist_Vtbl::new::(), Initialize: Initialize:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_UI_Shell_Common\"`"] @@ -12084,7 +12084,7 @@ impl IPersistFolder2_Vtbl { Self { base__: IPersistFolder_Vtbl::new::(), GetCurFolder: GetCurFolder:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_UI_Shell_Common\"`"] @@ -12115,7 +12115,7 @@ impl IPersistFolder3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_UI_Shell_Common\"`"] @@ -12152,7 +12152,7 @@ impl IPersistIDList_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_UI_WindowsAndMessaging\"`"] @@ -12224,7 +12224,7 @@ impl IPreviewHandler_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_WindowsAndMessaging\"`"] @@ -12261,7 +12261,7 @@ impl IPreviewHandlerFrame_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] @@ -12299,7 +12299,7 @@ impl IPreviewHandlerVisuals_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_Common\"`"] @@ -12313,7 +12313,7 @@ impl IPreviewItem_Vtbl { Self { base__: IRelatedItem_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IPreviousVersionsInfo_Impl: Sized { @@ -12336,7 +12336,7 @@ impl IPreviousVersionsInfo_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), AreSnapshotsAvailable: AreSnapshotsAvailable:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -12373,7 +12373,7 @@ impl IProfferService_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IProgressDialog_Impl: Sized { @@ -12456,7 +12456,7 @@ impl IProgressDialog_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -12521,7 +12521,7 @@ impl IPropertyKeyStore_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPublishedApp_Impl: Sized + IShellApp_Impl { @@ -12555,7 +12555,7 @@ impl IPublishedApp_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IPublishedApp2_Impl: Sized + IPublishedApp_Impl { @@ -12572,7 +12572,7 @@ impl IPublishedApp2_Vtbl { Self { base__: IPublishedApp_Vtbl::new::(), Install2: Install2:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Data_Xml_MsXml\"`, `\"Win32_System_Com\"`, `\"Win32_UI_Controls\"`"] @@ -12603,7 +12603,7 @@ impl IPublishingWizard_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Registry\"`"] @@ -12661,7 +12661,7 @@ impl IQueryAssociations_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IQueryCancelAutoPlay_Impl: Sized { @@ -12678,7 +12678,7 @@ impl IQueryCancelAutoPlay_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), AllowAutoPlay: AllowAutoPlay:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IQueryCodePage_Impl: Sized { @@ -12711,7 +12711,7 @@ impl IQueryCodePage_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IQueryContinue_Impl: Sized { @@ -12728,7 +12728,7 @@ impl IQueryContinue_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), QueryContinue: QueryContinue:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IQueryContinueWithStatus_Impl: Sized + IQueryContinue_Impl { @@ -12745,7 +12745,7 @@ impl IQueryContinueWithStatus_Vtbl { Self { base__: IQueryContinue_Vtbl::new::(), SetStatusMessage: SetStatusMessage:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IQueryInfo_Impl: Sized { @@ -12784,7 +12784,7 @@ impl IQueryInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRegTreeItem_Impl: Sized { @@ -12817,7 +12817,7 @@ impl IRegTreeItem_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_Common\"`"] @@ -12860,7 +12860,7 @@ impl IRelatedItem_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRemoteComputer_Impl: Sized { @@ -12877,7 +12877,7 @@ impl IRemoteComputer_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Initialize: Initialize:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IResolveShellLink_Impl: Sized { @@ -12894,7 +12894,7 @@ impl IResolveShellLink_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), ResolveShellLink: ResolveShellLink:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_Common\"`"] @@ -12946,7 +12946,7 @@ impl IResultsFolder_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRunnableTask_Impl: Sized { @@ -12994,7 +12994,7 @@ impl IRunnableTask_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -13169,7 +13169,7 @@ impl IScriptErrorList_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ISearchBoxInfo_Impl: Sized { @@ -13202,7 +13202,7 @@ impl ISearchBoxInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISearchContext_Impl: Sized { @@ -13254,7 +13254,7 @@ impl ISearchContext_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Search\"`, `\"Win32_UI_Shell_Common\"`, `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -13361,7 +13361,7 @@ impl ISearchFolderItemFactory_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] @@ -13437,7 +13437,7 @@ impl ISharedBitmap_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISharingConfigurationManager_Impl: Sized { @@ -13505,7 +13505,7 @@ impl ISharingConfigurationManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IShellApp_Impl: Sized { @@ -13559,7 +13559,7 @@ impl IShellApp_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_UI_Controls\"`, `\"Win32_UI_Shell_Common\"`, `\"Win32_UI_WindowsAndMessaging\"`"] @@ -13685,7 +13685,7 @@ impl IShellBrowser_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_Common\"`"] @@ -13706,7 +13706,7 @@ impl IShellChangeNotify_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnChange: OnChange:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_Common\"`"] @@ -13737,7 +13737,7 @@ impl IShellDetails_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -13945,7 +13945,7 @@ impl IShellDispatch_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -14067,7 +14067,7 @@ impl IShellDispatch2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -14088,7 +14088,7 @@ impl IShellDispatch3_Vtbl { Self { base__: IShellDispatch2_Vtbl::new::(), AddToRecent: AddToRecent:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -14145,7 +14145,7 @@ impl IShellDispatch4_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -14166,7 +14166,7 @@ impl IShellDispatch5_Vtbl { Self { base__: IShellDispatch4_Vtbl::new::(), WindowSwitcher: WindowSwitcher:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -14187,7 +14187,7 @@ impl IShellDispatch6_Vtbl { Self { base__: IShellDispatch5_Vtbl::new::(), SearchCommand: SearchCommand:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Registry\"`, `\"Win32_UI_Shell_Common\"`"] @@ -14208,7 +14208,7 @@ impl IShellExtInit_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Initialize: Initialize:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -14334,7 +14334,7 @@ impl IShellFavoritesNameSpace_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_UI_Shell_Common\"`"] @@ -14421,7 +14421,7 @@ impl IShellFolder_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`, `\"Win32_UI_Shell_Common\"`, `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -14511,7 +14511,7 @@ impl IShellFolder2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_Common\"`"] @@ -14549,7 +14549,7 @@ impl IShellFolderBand_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_UI_Shell_Common\"`"] @@ -14828,7 +14828,7 @@ impl IShellFolderView_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IShellFolderViewCB_Impl: Sized { @@ -14845,7 +14845,7 @@ impl IShellFolderViewCB_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), MessageSFVCB: MessageSFVCB:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -14973,7 +14973,7 @@ impl IShellFolderViewDual_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -15017,7 +15017,7 @@ impl IShellFolderViewDual2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -15121,7 +15121,7 @@ impl IShellFolderViewDual3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_Common\"`"] @@ -15148,7 +15148,7 @@ impl IShellIcon_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetIconOf: GetIconOf:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_Common\"`"] @@ -15179,7 +15179,7 @@ impl IShellIconOverlay_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IShellIconOverlayIdentifier_Impl: Sized { @@ -15219,7 +15219,7 @@ impl IShellIconOverlayIdentifier_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IShellIconOverlayManager_Impl: Sized { @@ -15267,7 +15267,7 @@ impl IShellIconOverlayManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_Graphics_GdiPlus\"`, `\"Win32_System_Com_StructuredStorage\"`"] @@ -15506,7 +15506,7 @@ impl IShellImageData_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IShellImageDataAbort_Impl: Sized { @@ -15523,7 +15523,7 @@ impl IShellImageDataAbort_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), QueryAbort: QueryAbort:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -15592,7 +15592,7 @@ impl IShellImageDataFactory_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_SystemServices\"`"] @@ -15668,7 +15668,7 @@ impl IShellItem_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_SystemServices\"`, `\"Win32_System_Variant\"`, `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -15824,7 +15824,7 @@ impl IShellItem2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_SystemServices\"`, `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -15914,7 +15914,7 @@ impl IShellItemArray_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IShellItemFilter_Impl: Sized { @@ -15947,7 +15947,7 @@ impl IShellItemFilter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] @@ -15974,7 +15974,7 @@ impl IShellItemImageFactory_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetImage: GetImage:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IShellItemResources_Impl: Sized { @@ -16081,7 +16081,7 @@ impl IShellItemResources_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IShellLibrary_Impl: Sized { @@ -16243,7 +16243,7 @@ impl IShellLibrary_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_FileSystem\"`, `\"Win32_UI_Shell_Common\"`, `\"Win32_UI_WindowsAndMessaging\"`"] @@ -16404,7 +16404,7 @@ impl IShellLinkA_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IShellLinkDataList_Impl: Sized { @@ -16458,7 +16458,7 @@ impl IShellLinkDataList_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -16623,7 +16623,7 @@ impl IShellLinkDual_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -16650,7 +16650,7 @@ impl IShellLinkDual2_Vtbl { Self { base__: IShellLinkDual_Vtbl::new::(), Target: Target:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Storage_FileSystem\"`, `\"Win32_UI_Shell_Common\"`, `\"Win32_UI_WindowsAndMessaging\"`"] @@ -16811,7 +16811,7 @@ impl IShellLinkW_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Registry\"`, `\"Win32_UI_Shell_Common\"`, `\"Win32_UI_WindowsAndMessaging\"`"] @@ -16891,7 +16891,7 @@ impl IShellMenu_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_Common\"`, `\"Win32_UI_WindowsAndMessaging\"`"] @@ -16912,7 +16912,7 @@ impl IShellMenuCallback_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CallbackSM: CallbackSM:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -17136,7 +17136,7 @@ impl IShellNameSpace_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Controls\"`"] @@ -17167,7 +17167,7 @@ impl IShellPropSheetExt_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IShellRunDll_Impl: Sized { @@ -17184,7 +17184,7 @@ impl IShellRunDll_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Run: Run:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IShellService_Impl: Sized { @@ -17201,7 +17201,7 @@ impl IShellService_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), SetOwner: SetOwner:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IShellTaskScheduler_Impl: Sized { @@ -17242,7 +17242,7 @@ impl IShellTaskScheduler_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -17362,7 +17362,7 @@ impl IShellUIHelper_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -17539,7 +17539,7 @@ impl IShellUIHelper2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -17665,7 +17665,7 @@ impl IShellUIHelper3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -17844,7 +17844,7 @@ impl IShellUIHelper4_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -17916,7 +17916,7 @@ impl IShellUIHelper5_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -18037,7 +18037,7 @@ impl IShellUIHelper6_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -18141,7 +18141,7 @@ impl IShellUIHelper7_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -18231,7 +18231,7 @@ impl IShellUIHelper8_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -18258,7 +18258,7 @@ impl IShellUIHelper9_Vtbl { Self { base__: IShellUIHelper8_Vtbl::new::(), GetOSSku: GetOSSku:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Ole\"`, `\"Win32_UI_Controls\"`, `\"Win32_UI_Shell_Common\"`, `\"Win32_UI_WindowsAndMessaging\"`"] @@ -18364,7 +18364,7 @@ impl IShellView_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Ole\"`, `\"Win32_UI_Controls\"`, `\"Win32_UI_Shell_Common\"`, `\"Win32_UI_WindowsAndMessaging\"`"] @@ -18409,7 +18409,7 @@ impl IShellView2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Ole\"`, `\"Win32_UI_Controls\"`, `\"Win32_UI_Shell_Common\"`, `\"Win32_UI_WindowsAndMessaging\"`"] @@ -18436,7 +18436,7 @@ impl IShellView3_Vtbl { Self { base__: IShellView2_Vtbl::new::(), CreateViewWindow3: CreateViewWindow3:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -18560,7 +18560,7 @@ impl IShellWindows_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -18610,7 +18610,7 @@ impl ISortColumnArray_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IStartMenuPinnedList_Impl: Sized { @@ -18627,7 +18627,7 @@ impl IStartMenuPinnedList_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), RemoveFromList: RemoveFromList:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IStorageProviderBanners_Impl: Sized { @@ -18674,7 +18674,7 @@ impl IStorageProviderBanners_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IStorageProviderCopyHook_Impl: Sized { @@ -18697,7 +18697,7 @@ impl IStorageProviderCopyHook_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CopyCallback: CopyCallback:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IStorageProviderHandler_Impl: Sized { @@ -18749,7 +18749,7 @@ impl IStorageProviderHandler_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -18786,7 +18786,7 @@ impl IStorageProviderPropertyHandler_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_IO\"`"] @@ -18831,7 +18831,7 @@ impl IStreamAsync_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IStreamUnbufferedInfo_Impl: Sized { @@ -18854,7 +18854,7 @@ impl IStreamUnbufferedInfo_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetSectorSize: GetSectorSize:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISuspensionDependencyManager_Impl: Sized { @@ -18888,7 +18888,7 @@ impl ISuspensionDependencyManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`, `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -18958,7 +18958,7 @@ impl ISyncMgrConflict_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_Common\"`"] @@ -18985,7 +18985,7 @@ impl ISyncMgrConflictFolder_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetConflictIDList: GetConflictIDList:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISyncMgrConflictItems_Impl: Sized { @@ -19018,7 +19018,7 @@ impl ISyncMgrConflictItems_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISyncMgrConflictPresenter_Impl: Sized { @@ -19035,7 +19035,7 @@ impl ISyncMgrConflictPresenter_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), PresentConflict: PresentConflict:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISyncMgrConflictResolutionItems_Impl: Sized { @@ -19074,7 +19074,7 @@ impl ISyncMgrConflictResolutionItems_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISyncMgrConflictResolveInfo_Impl: Sized { @@ -19161,7 +19161,7 @@ impl ISyncMgrConflictResolveInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -19218,7 +19218,7 @@ impl ISyncMgrConflictStore_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISyncMgrControl_Impl: Sized { @@ -19336,7 +19336,7 @@ impl ISyncMgrControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_WindowsAndMessaging\"`"] @@ -19387,7 +19387,7 @@ impl ISyncMgrEnumItems_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISyncMgrEvent_Impl: Sized { @@ -19543,7 +19543,7 @@ impl ISyncMgrEvent_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISyncMgrEventLinkUIOperation_Impl: Sized + ISyncMgrUIOperation_Impl { @@ -19560,7 +19560,7 @@ impl ISyncMgrEventLinkUIOperation_Vtbl { Self { base__: ISyncMgrUIOperation_Vtbl::new::(), Init: Init:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ISyncMgrEventStore_Impl: Sized { @@ -19619,7 +19619,7 @@ impl ISyncMgrEventStore_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISyncMgrHandler_Impl: Sized { @@ -19712,7 +19712,7 @@ impl ISyncMgrHandler_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -19749,7 +19749,7 @@ impl ISyncMgrHandlerCollection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISyncMgrHandlerInfo_Impl: Sized { @@ -19835,7 +19835,7 @@ impl ISyncMgrHandlerInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISyncMgrRegister_Impl: Sized { @@ -19869,7 +19869,7 @@ impl ISyncMgrRegister_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISyncMgrResolutionHandler_Impl: Sized { @@ -19947,7 +19947,7 @@ impl ISyncMgrResolutionHandler_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISyncMgrScheduleWizardUIOperation_Impl: Sized + ISyncMgrUIOperation_Impl { @@ -19964,7 +19964,7 @@ impl ISyncMgrScheduleWizardUIOperation_Vtbl { Self { base__: ISyncMgrUIOperation_Vtbl::new::(), InitWizard: InitWizard:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ISyncMgrSessionCreator_Impl: Sized { @@ -19987,7 +19987,7 @@ impl ISyncMgrSessionCreator_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CreateSession: CreateSession:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -20080,7 +20080,7 @@ impl ISyncMgrSyncCallback_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISyncMgrSyncItem_Impl: Sized { @@ -20179,7 +20179,7 @@ impl ISyncMgrSyncItem_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISyncMgrSyncItemContainer_Impl: Sized { @@ -20231,7 +20231,7 @@ impl ISyncMgrSyncItemContainer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISyncMgrSyncItemInfo_Impl: Sized { @@ -20297,7 +20297,7 @@ impl ISyncMgrSyncItemInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISyncMgrSyncResult_Impl: Sized { @@ -20314,7 +20314,7 @@ impl ISyncMgrSyncResult_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Result: Result:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_WindowsAndMessaging\"`"] @@ -20413,7 +20413,7 @@ impl ISyncMgrSynchronize_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISyncMgrSynchronizeCallback_Impl: Sized { @@ -20489,7 +20489,7 @@ impl ISyncMgrSynchronizeCallback_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISyncMgrSynchronizeInvoke_Impl: Sized { @@ -20516,7 +20516,7 @@ impl ISyncMgrSynchronizeInvoke_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISyncMgrUIOperation_Impl: Sized { @@ -20533,7 +20533,7 @@ impl ISyncMgrUIOperation_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Run: Run:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITaskbarList_Impl: Sized { @@ -20581,7 +20581,7 @@ impl ITaskbarList_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITaskbarList2_Impl: Sized + ITaskbarList_Impl { @@ -20598,7 +20598,7 @@ impl ITaskbarList2_Vtbl { Self { base__: ITaskbarList_Vtbl::new::(), MarkFullscreenWindow: MarkFullscreenWindow:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Controls\"`, `\"Win32_UI_WindowsAndMessaging\"`"] @@ -20699,7 +20699,7 @@ impl ITaskbarList3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Controls\"`, `\"Win32_UI_WindowsAndMessaging\"`"] @@ -20720,7 +20720,7 @@ impl ITaskbarList4_Vtbl { Self { base__: ITaskbarList3_Vtbl::new::(), SetTabProperties: SetTabProperties:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IThumbnailCache_Impl: Sized { @@ -20747,7 +20747,7 @@ impl IThumbnailCache_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IThumbnailCachePrimer_Impl: Sized { @@ -20764,7 +20764,7 @@ impl IThumbnailCachePrimer_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), PageInThumbnail: PageInThumbnail:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] @@ -20791,7 +20791,7 @@ impl IThumbnailCapture_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CaptureThumbnail: CaptureThumbnail:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_UI_Shell_Common\"`"] @@ -20812,7 +20812,7 @@ impl IThumbnailHandlerFactory_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetThumbnailHandler: GetThumbnailHandler:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] @@ -20833,7 +20833,7 @@ impl IThumbnailProvider_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetThumbnail: GetThumbnail:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IThumbnailSettings_Impl: Sized { @@ -20850,7 +20850,7 @@ impl IThumbnailSettings_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), SetContext: SetContext:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -20881,7 +20881,7 @@ impl IThumbnailStreamCache_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Registry\"`, `\"Win32_UI_Shell_Common\"`, `\"Win32_UI_WindowsAndMessaging\"`"] @@ -20912,7 +20912,7 @@ impl ITrackShellMenu_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -20933,7 +20933,7 @@ impl ITranscodeImage_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), TranscodeImage: TranscodeImage:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -20999,7 +20999,7 @@ impl ITransferAdviseSink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITransferDestination_Impl: Sized { @@ -21039,7 +21039,7 @@ impl ITransferDestination_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_Common\"`"] @@ -21053,7 +21053,7 @@ impl ITransferMediumItem_Vtbl { Self { base__: IRelatedItem_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_PropertiesSystem\"`"] @@ -21203,7 +21203,7 @@ impl ITransferSource_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_Common\"`"] @@ -21247,7 +21247,7 @@ impl ITravelEntry_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_Common\"`, `\"Win32_UI_WindowsAndMessaging\"`"] @@ -21353,7 +21353,7 @@ impl ITravelLog_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_UI_Shell_Common\"`"] @@ -21397,7 +21397,7 @@ impl ITravelLogClient_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITravelLogEntry_Impl: Sized { @@ -21436,7 +21436,7 @@ impl ITravelLogEntry_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITravelLogStg_Impl: Sized { @@ -21528,7 +21528,7 @@ impl ITravelLogStg_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITrayDeskBand_Impl: Sized { @@ -21569,7 +21569,7 @@ impl ITrayDeskBand_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IURLSearchHook_Impl: Sized { @@ -21586,7 +21586,7 @@ impl IURLSearchHook_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Translate: Translate:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IURLSearchHook2_Impl: Sized + IURLSearchHook_Impl { @@ -21603,7 +21603,7 @@ impl IURLSearchHook2_Vtbl { Self { base__: IURLSearchHook_Vtbl::new::(), TranslateWithSearchContext: TranslateWithSearchContext:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IUniformResourceLocatorA_Impl: Sized { @@ -21643,7 +21643,7 @@ impl IUniformResourceLocatorA_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUniformResourceLocatorW_Impl: Sized { @@ -21683,7 +21683,7 @@ impl IUniformResourceLocatorW_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_UI_Shell_Common\"`"] @@ -21710,7 +21710,7 @@ impl IUpdateIDList_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Update: Update:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_Common\"`"] @@ -21724,7 +21724,7 @@ impl IUseToBrowseItem_Vtbl { Self { base__: IRelatedItem_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IUserAccountChangeCallback_Impl: Sized { @@ -21741,7 +21741,7 @@ impl IUserAccountChangeCallback_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnPictureChange: OnPictureChange:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_WindowsAndMessaging\"`"] @@ -21793,7 +21793,7 @@ impl IUserNotification_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_WindowsAndMessaging\"`"] @@ -21845,7 +21845,7 @@ impl IUserNotification2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUserNotificationCallback_Impl: Sized { @@ -21879,7 +21879,7 @@ impl IUserNotificationCallback_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Shell_Common\"`"] @@ -21893,7 +21893,7 @@ impl IViewStateIdentityItem_Vtbl { Self { base__: IRelatedItem_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IVirtualDesktopManager_Impl: Sized { @@ -21939,7 +21939,7 @@ impl IVirtualDesktopManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] @@ -22024,7 +22024,7 @@ impl IVisualProperties_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -22294,7 +22294,7 @@ impl IWebBrowser_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -22498,7 +22498,7 @@ impl IWebBrowser2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -22721,7 +22721,7 @@ impl IWebBrowserApp_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Controls\"`"] @@ -22752,7 +22752,7 @@ impl IWebWizardExtension_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -22844,7 +22844,7 @@ impl IWebWizardHost_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -22871,7 +22871,7 @@ impl IWebWizardHost2_Vtbl { Self { base__: IWebWizardHost_Vtbl::new::(), SignString: SignString:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Controls\"`"] @@ -22921,7 +22921,7 @@ impl IWizardExtension_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_Controls\"`"] @@ -22977,6 +22977,6 @@ impl IWizardSite_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 ecf91bb34c..30ba54ae22 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Shell/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Shell/mod.rs @@ -7,7 +7,7 @@ pub mod PropertiesSystem; #[inline] pub unsafe fn AssocCreate(clsid: ::windows_core::GUID) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { ::windows_targets::link!("shlwapi.dll" "system" fn AssocCreate(clsid : ::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(); @@ -18,7 +18,7 @@ where #[inline] pub unsafe fn AssocCreateForClasses(rgclasses: &[ASSOCIATIONELEMENT]) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { ::windows_targets::link!("shell32.dll" "system" fn AssocCreateForClasses(rgclasses : *const ASSOCIATIONELEMENT, cclasses : u32, riid : *const ::windows_core::GUID, ppv : *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT); let mut result__ = ::std::ptr::null_mut(); @@ -653,7 +653,7 @@ pub unsafe fn HlinkClone(pihl: P0, pihlsiteforclone: P1, dwsitedata: where P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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(); @@ -663,7 +663,7 @@ where pub unsafe fn HlinkCreateBrowseContext(piunkouter: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam<::windows_core::IUnknown>, - T: ::windows_core::ComInterface, + 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(); @@ -677,7 +677,7 @@ where P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, P3: ::windows_core::IntoParam<::windows_core::PCWSTR>, P4: ::windows_core::IntoParam<::windows_core::IUnknown>, - T: ::windows_core::ComInterface, + 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(); @@ -691,7 +691,7 @@ where P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, P2: ::windows_core::IntoParam<::windows_core::IUnknown>, - T: ::windows_core::ComInterface, + 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(); @@ -707,7 +707,7 @@ where P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, P3: ::windows_core::IntoParam, P4: ::windows_core::IntoParam<::windows_core::IUnknown>, - T: ::windows_core::ComInterface, + 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(); @@ -721,7 +721,7 @@ where P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, P3: ::windows_core::IntoParam, P4: ::windows_core::IntoParam<::windows_core::IUnknown>, - T: ::windows_core::ComInterface, + 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(); @@ -1195,7 +1195,7 @@ pub unsafe fn IUnknown_AtomicRelease(ppunk: ::core::option::Option<*mut *mut ::c pub unsafe fn IUnknown_GetSite(punk: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam<::windows_core::IUnknown>, - T: ::windows_core::ComInterface, + 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(); @@ -1214,7 +1214,7 @@ where pub unsafe fn IUnknown_QueryService(punk: P0, guidservice: *const ::windows_core::GUID) -> ::windows_core::Result where P0: ::windows_core::IntoParam<::windows_core::IUnknown>, - T: ::windows_core::ComInterface, + 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(); @@ -2461,7 +2461,7 @@ pub unsafe fn PropVariantToStrRet(propvar: *const super::super::System::Com::Str #[inline] pub unsafe fn QISearch(that: *mut ::core::ffi::c_void, pqit: *const QITAB) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { ::windows_targets::link!("shlwapi.dll" "system" fn QISearch(that : *mut ::core::ffi::c_void, pqit : *const QITAB, riid : *const ::windows_core::GUID, ppv : *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT); let mut result__ = ::std::ptr::null_mut(); @@ -2599,7 +2599,7 @@ where pub unsafe fn SHAssocEnumHandlersForProtocolByApplication(protocol: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, - T: ::windows_core::ComInterface, + 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(); @@ -2619,7 +2619,7 @@ where pub unsafe fn SHBindToFolderIDListParent(psfroot: P0, pidl: *const Common::ITEMIDLIST, ppidllast: ::core::option::Option<*mut *mut Common::ITEMIDLIST>) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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(); @@ -2632,7 +2632,7 @@ pub unsafe fn SHBindToFolderIDListParentEx(psfroot: P0, pidl: *const where P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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(); @@ -2645,7 +2645,7 @@ pub unsafe fn SHBindToObject(psf: P0, pidl: *const Common::ITEMIDLIST where P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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(); @@ -2656,7 +2656,7 @@ where #[inline] pub unsafe fn SHBindToParent(pidl: *const Common::ITEMIDLIST, ppidllast: ::core::option::Option<*mut *mut Common::ITEMIDLIST>) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { ::windows_targets::link!("shell32.dll" "system" fn SHBindToParent(pidl : *const Common:: ITEMIDLIST, riid : *const ::windows_core::GUID, ppv : *mut *mut ::core::ffi::c_void, ppidllast : *mut *mut Common:: ITEMIDLIST) -> ::windows_core::HRESULT); let mut result__ = ::std::ptr::null_mut(); @@ -2744,7 +2744,7 @@ pub unsafe fn SHCoCreateInstance(pszclsid: P0, pclsid: ::core::option where P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, P1: ::windows_core::IntoParam<::windows_core::IUnknown>, - T: ::windows_core::ComInterface, + 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(); @@ -2777,7 +2777,7 @@ where #[inline] pub unsafe fn SHCreateAssociationRegistration() -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { ::windows_targets::link!("shell32.dll" "system" fn SHCreateAssociationRegistration(riid : *const ::windows_core::GUID, ppv : *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT); let mut result__ = ::std::ptr::null_mut(); @@ -2789,7 +2789,7 @@ where pub unsafe fn SHCreateDataObject(pidlfolder: ::core::option::Option<*const Common::ITEMIDLIST>, apidl: ::core::option::Option<&[*const Common::ITEMIDLIST]>, pdtinner: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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(); @@ -2800,7 +2800,7 @@ where #[inline] pub unsafe fn SHCreateDefaultContextMenu(pdcm: *const DEFCONTEXTMENU) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { ::windows_targets::link!("shell32.dll" "system" fn SHCreateDefaultContextMenu(pdcm : *const DEFCONTEXTMENU, riid : *const ::windows_core::GUID, ppv : *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT); let mut result__ = ::std::ptr::null_mut(); @@ -2809,7 +2809,7 @@ where #[inline] pub unsafe fn SHCreateDefaultExtractIcon() -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { ::windows_targets::link!("shell32.dll" "system" fn SHCreateDefaultExtractIcon(riid : *const ::windows_core::GUID, ppv : *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT); let mut result__ = ::std::ptr::null_mut(); @@ -2859,7 +2859,7 @@ where pub unsafe fn SHCreateFileExtractIconW(pszfile: P0, dwfileattributes: u32) -> ::windows_core::Result where P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, - T: ::windows_core::ComInterface, + 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(); @@ -2870,7 +2870,7 @@ where #[inline] pub unsafe fn SHCreateItemFromIDList(pidl: *const Common::ITEMIDLIST) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { ::windows_targets::link!("shell32.dll" "system" fn SHCreateItemFromIDList(pidl : *const Common:: ITEMIDLIST, riid : *const ::windows_core::GUID, ppv : *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT); let mut result__ = ::std::ptr::null_mut(); @@ -2883,7 +2883,7 @@ pub unsafe fn SHCreateItemFromParsingName(pszpath: P0, pbc: P1) -> :: where P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, P1: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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(); @@ -2897,7 +2897,7 @@ where P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, P2: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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(); @@ -2907,7 +2907,7 @@ where pub unsafe fn SHCreateItemInKnownFolder(kfid: *const ::windows_core::GUID, dwkfflags: u32, pszitem: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, - T: ::windows_core::ComInterface, + 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(); @@ -2919,7 +2919,7 @@ where pub unsafe fn SHCreateItemWithParent(pidlparent: ::core::option::Option<*const Common::ITEMIDLIST>, psfparent: P0, pidl: *const Common::ITEMIDLIST) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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(); @@ -3002,7 +3002,7 @@ where pub unsafe fn SHCreateShellItemArrayFromDataObject(pdo: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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(); @@ -3020,7 +3020,7 @@ pub unsafe fn SHCreateShellItemArrayFromIDLists(rgpidl: &[*const Common::ITEMIDL pub unsafe fn SHCreateShellItemArrayFromShellItem(psi: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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(); @@ -3516,7 +3516,7 @@ where #[inline] pub unsafe fn SHGetImageList(iimagelist: i32) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { ::windows_targets::link!("shell32.dll" "system" fn SHGetImageList(iimagelist : i32, riid : *const ::windows_core::GUID, ppvobj : *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT); let mut result__ = ::std::ptr::null_mut(); @@ -3539,7 +3539,7 @@ pub unsafe fn SHGetInverseCMAP(pbmap: &mut [u8]) -> ::windows_core::Result<()> { pub unsafe fn SHGetItemFromDataObject(pdtobj: P0, dwflags: DATAOBJ_GET_ITEM_FLAGS) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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(); @@ -3549,7 +3549,7 @@ where pub unsafe fn SHGetItemFromObject(punk: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam<::windows_core::IUnknown>, - T: ::windows_core::ComInterface, + 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(); @@ -3570,7 +3570,7 @@ where pub unsafe fn SHGetKnownFolderItem(rfid: *const ::windows_core::GUID, flags: KNOWN_FOLDER_FLAG, htoken: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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(); @@ -3774,7 +3774,7 @@ where pub unsafe fn SHGetViewStatePropertyBag(pidl: ::core::option::Option<*const Common::ITEMIDLIST>, pszbagname: P0, dwflags: u32) -> ::windows_core::Result where P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, - T: ::windows_core::ComInterface, + 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(); @@ -4909,7 +4909,7 @@ pub unsafe fn StgMakeUniqueName(pstgparent: P0, pszfilespec: P1, grfm where P0: ::windows_core::IntoParam, P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, - T: ::windows_core::ComInterface, + 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(); @@ -5840,11 +5840,15 @@ where ::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) } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct CIE4ConnectionPoint(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + CIE4ConnectionPoint, + CIE4ConnectionPoint_Vtbl, + 0 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(CIE4ConnectionPoint, ::windows_core::IUnknown, super::super::System::Com::IConnectionPoint); #[cfg(feature = "Win32_System_Com")] impl CIE4ConnectionPoint { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -5894,16 +5898,6 @@ impl CIE4ConnectionPoint { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(CIE4ConnectionPoint, ::windows_core::IUnknown, super::super::System::Com::IConnectionPoint); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for CIE4ConnectionPoint { - type Vtable = CIE4ConnectionPoint_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for CIE4ConnectionPoint { - const IID: ::windows_core::GUID = ::windows_core::GUID::zeroed(); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct CIE4ConnectionPoint_Vtbl { @@ -5917,11 +5911,15 @@ pub struct CIE4ConnectionPoint_Vtbl { #[cfg(not(feature = "Win32_UI_Shell_Common"))] DoInvokePIDLIE4: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct DFConstraint(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + DFConstraint, + DFConstraint_Vtbl, + 0x4a3df050_23bd_11d2_939f_00a0c91eedba +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(DFConstraint, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl DFConstraint { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -5936,16 +5934,6 @@ impl DFConstraint { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(DFConstraint, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for DFConstraint { - type Vtable = DFConstraint_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for DFConstraint { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4a3df050_23bd_11d2_939f_00a0c91eedba); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct DFConstraint_Vtbl { @@ -5956,126 +5944,100 @@ pub struct DFConstraint_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] Value: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] -#[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct DShellFolderViewEvents(::windows_core::IUnknown); #[cfg(feature = "Win32_System_Com")] -impl DShellFolderViewEvents {} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + DShellFolderViewEvents, + DShellFolderViewEvents_Vtbl, + 0x62112aa2_ebe4_11cf_a5fb_0020afe7292d +); #[cfg(feature = "Win32_System_Com")] ::windows_core::imp::interface_hierarchy!(DShellFolderViewEvents, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for DShellFolderViewEvents { - type Vtable = DShellFolderViewEvents_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for DShellFolderViewEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x62112aa2_ebe4_11cf_a5fb_0020afe7292d); -} +impl DShellFolderViewEvents {} #[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct DShellFolderViewEvents_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct DShellNameSpaceEvents(::windows_core::IUnknown); -#[cfg(feature = "Win32_System_Com")] -impl DShellNameSpaceEvents {} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + DShellNameSpaceEvents, + DShellNameSpaceEvents_Vtbl, + 0x55136806_b2de_11d1_b9f2_00a0c98bc547 +); #[cfg(feature = "Win32_System_Com")] ::windows_core::imp::interface_hierarchy!(DShellNameSpaceEvents, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for DShellNameSpaceEvents { - type Vtable = DShellNameSpaceEvents_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for DShellNameSpaceEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x55136806_b2de_11d1_b9f2_00a0c98bc547); -} +impl DShellNameSpaceEvents {} #[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct DShellNameSpaceEvents_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct DShellWindowsEvents(::windows_core::IUnknown); -#[cfg(feature = "Win32_System_Com")] -impl DShellWindowsEvents {} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + DShellWindowsEvents, + DShellWindowsEvents_Vtbl, + 0xfe4106e0_399a_11d0_a48c_00a0c90a8f39 +); #[cfg(feature = "Win32_System_Com")] ::windows_core::imp::interface_hierarchy!(DShellWindowsEvents, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for DShellWindowsEvents { - type Vtable = DShellWindowsEvents_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for DShellWindowsEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfe4106e0_399a_11d0_a48c_00a0c90a8f39); -} +impl DShellWindowsEvents {} #[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct DShellWindowsEvents_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, } -#[doc = "Required features: `\"Win32_System_Com\"`"] -#[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct DWebBrowserEvents(::windows_core::IUnknown); #[cfg(feature = "Win32_System_Com")] -impl DWebBrowserEvents {} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + DWebBrowserEvents, + DWebBrowserEvents_Vtbl, + 0xeab22ac2_30c1_11cf_a7eb_0000c05bae0b +); #[cfg(feature = "Win32_System_Com")] ::windows_core::imp::interface_hierarchy!(DWebBrowserEvents, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for DWebBrowserEvents { - type Vtable = DWebBrowserEvents_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for DWebBrowserEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeab22ac2_30c1_11cf_a7eb_0000c05bae0b); -} +impl DWebBrowserEvents {} #[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct DWebBrowserEvents_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct DWebBrowserEvents2(::windows_core::IUnknown); -#[cfg(feature = "Win32_System_Com")] -impl DWebBrowserEvents2 {} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + DWebBrowserEvents2, + DWebBrowserEvents2_Vtbl, + 0x34a715a0_6587_11d0_924a_0020afc7ac4d +); #[cfg(feature = "Win32_System_Com")] ::windows_core::imp::interface_hierarchy!(DWebBrowserEvents2, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for DWebBrowserEvents2 { - type Vtable = DWebBrowserEvents2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for DWebBrowserEvents2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x34a715a0_6587_11d0_924a_0020afc7ac4d); -} +impl DWebBrowserEvents2 {} #[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct DWebBrowserEvents2_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct Folder(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + Folder, + Folder_Vtbl, + 0xbbcbde60_c3ff_11ce_8350_444553540000 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(Folder, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl Folder { pub unsafe fn Title(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -6141,16 +6103,6 @@ impl Folder { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(Folder, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for Folder { - type Vtable = Folder_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for Folder { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbbcbde60_c3ff_11ce_8350_444553540000); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct Folder_Vtbl { @@ -6193,11 +6145,15 @@ pub struct Folder_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] GetDetailsOf: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct Folder2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + Folder2, + Folder2_Vtbl, + 0xf0d2d8ef_3890_11d2_bf8b_00c04fb93661 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(Folder2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, Folder); #[cfg(feature = "Win32_System_Com")] impl Folder2 { pub unsafe fn Title(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -6283,16 +6239,6 @@ impl Folder2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(Folder2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, Folder); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for Folder2 { - type Vtable = Folder2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for Folder2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf0d2d8ef_3890_11d2_bf8b_00c04fb93661); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct Folder2_Vtbl { @@ -6306,11 +6252,15 @@ pub struct Folder2_Vtbl { pub HaveToShowWebViewBarricade: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbhavetoshowwebviewbarricade: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub DismissedWebViewBarricade: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct Folder3(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + Folder3, + Folder3_Vtbl, + 0xa7ae5f64_c4d7_4d7f_9307_4d24ee54b841 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(Folder3, ::windows_core::IUnknown, super::super::System::Com::IDispatch, Folder, Folder2); #[cfg(feature = "Win32_System_Com")] impl Folder3 { pub unsafe fn Title(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -6406,16 +6356,6 @@ impl Folder3 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(Folder3, ::windows_core::IUnknown, super::super::System::Com::IDispatch, Folder, Folder2); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for Folder3 { - type Vtable = Folder3_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for Folder3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa7ae5f64_c4d7_4d7f_9307_4d24ee54b841); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct Folder3_Vtbl { @@ -6423,11 +6363,15 @@ pub struct Folder3_Vtbl { pub ShowWebViewBarricade: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbshowwebviewbarricade: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub SetShowWebViewBarricade: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bshowwebviewbarricade: super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct FolderItem(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + FolderItem, + FolderItem_Vtbl, + 0xfac32c80_cbe4_11ce_8350_444553540000 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(FolderItem, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl FolderItem { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -6512,16 +6456,6 @@ impl FolderItem { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(FolderItem, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for FolderItem { - type Vtable = FolderItem_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for FolderItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfac32c80_cbe4_11ce_8350_444553540000); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct FolderItem_Vtbl { @@ -6562,11 +6496,15 @@ pub struct FolderItem_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] InvokeVerb: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct FolderItem2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + FolderItem2, + FolderItem2_Vtbl, + 0xedc817aa_92b8_11d1_b075_00c04fc33aa5 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(FolderItem2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, FolderItem); #[cfg(feature = "Win32_System_Com")] impl FolderItem2 { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -6665,16 +6603,6 @@ impl FolderItem2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(FolderItem2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, FolderItem); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for FolderItem2 { - type Vtable = FolderItem2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for FolderItem2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xedc817aa_92b8_11d1_b075_00c04fc33aa5); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct FolderItem2_Vtbl { @@ -6688,11 +6616,15 @@ pub struct FolderItem2_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] ExtendedProperty: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct FolderItemVerb(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + FolderItemVerb, + FolderItemVerb_Vtbl, + 0x08ec3e00_50b0_11cf_960c_0080c7f4ee85 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(FolderItemVerb, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl FolderItemVerb { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -6716,16 +6648,6 @@ impl FolderItemVerb { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(FolderItemVerb, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for FolderItemVerb { - type Vtable = FolderItemVerb_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for FolderItemVerb { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x08ec3e00_50b0_11cf_960c_0080c7f4ee85); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct FolderItemVerb_Vtbl { @@ -6741,11 +6663,15 @@ pub struct FolderItemVerb_Vtbl { pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbs: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub DoIt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct FolderItemVerbs(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + FolderItemVerbs, + FolderItemVerbs_Vtbl, + 0x1f8352c0_50b0_11cf_960c_0080c7f4ee85 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(FolderItemVerbs, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl FolderItemVerbs { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -6776,16 +6702,6 @@ impl FolderItemVerbs { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(FolderItemVerbs, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for FolderItemVerbs { - type Vtable = FolderItemVerbs_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for FolderItemVerbs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1f8352c0_50b0_11cf_960c_0080c7f4ee85); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct FolderItemVerbs_Vtbl { @@ -6805,11 +6721,15 @@ pub struct FolderItemVerbs_Vtbl { Item: usize, pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppunk: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct FolderItems(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + FolderItems, + FolderItems_Vtbl, + 0x744129e0_cbe5_11ce_8350_444553540000 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(FolderItems, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl FolderItems { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -6840,16 +6760,6 @@ impl FolderItems { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(FolderItems, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for FolderItems { - type Vtable = FolderItems_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for FolderItems { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x744129e0_cbe5_11ce_8350_444553540000); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct FolderItems_Vtbl { @@ -6869,11 +6779,15 @@ pub struct FolderItems_Vtbl { Item: usize, pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppunk: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct FolderItems2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + FolderItems2, + FolderItems2_Vtbl, + 0xc94f0ad0_f363_11d2_a327_00c04f8eec7f +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(FolderItems2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, FolderItems); #[cfg(feature = "Win32_System_Com")] impl FolderItems2 { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -6909,16 +6823,6 @@ impl FolderItems2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(FolderItems2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, FolderItems); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for FolderItems2 { - type Vtable = FolderItems2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for FolderItems2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc94f0ad0_f363_11d2_a327_00c04f8eec7f); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct FolderItems2_Vtbl { @@ -6928,11 +6832,15 @@ pub struct FolderItems2_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] InvokeVerbEx: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct FolderItems3(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + FolderItems3, + FolderItems3_Vtbl, + 0xeaa7c309_bbec_49d5_821d_64d966cb667f +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(FolderItems3, ::windows_core::IUnknown, super::super::System::Com::IDispatch, FolderItems, FolderItems2); #[cfg(feature = "Win32_System_Com")] impl FolderItems3 { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -6980,16 +6888,6 @@ impl FolderItems3 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(FolderItems3, ::windows_core::IUnknown, super::super::System::Com::IDispatch, FolderItems, FolderItems2); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for FolderItems3 { - type Vtable = FolderItems3_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for FolderItems3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeaa7c309_bbec_49d5_821d_64d966cb667f); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct FolderItems3_Vtbl { @@ -7000,9 +6898,8 @@ pub struct FolderItems3_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Verbs: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IACList(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IACList, IACList_Vtbl, 0x77a130b0_94fd_11d0_a544_00c04fd7d062); +::windows_core::imp::interface_hierarchy!(IACList, ::windows_core::IUnknown); impl IACList { pub unsafe fn Expand(&self, pszexpand: P0) -> ::windows_core::Result<()> where @@ -7011,22 +6908,14 @@ impl IACList { (::windows_core::Interface::vtable(self).Expand)(::windows_core::Interface::as_raw(self), pszexpand.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IACList, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IACList { - type Vtable = IACList_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IACList { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x77a130b0_94fd_11d0_a544_00c04fd7d062); -} #[repr(C)] #[doc(hidden)] pub struct IACList_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Expand: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszexpand: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IACList2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IACList2, IACList2_Vtbl, 0x470141a0_5186_11d2_bbb6_0060977b464c); +::windows_core::imp::interface_hierarchy!(IACList2, ::windows_core::IUnknown, IACList); impl IACList2 { pub unsafe fn Expand(&self, pszexpand: P0) -> ::windows_core::Result<()> where @@ -7042,13 +6931,6 @@ impl IACList2 { (::windows_core::Interface::vtable(self).GetOptions)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IACList2, ::windows_core::IUnknown, IACList); -unsafe impl ::windows_core::Interface for IACList2 { - type Vtable = IACList2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IACList2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x470141a0_5186_11d2_bbb6_0060977b464c); -} #[repr(C)] #[doc(hidden)] pub struct IACList2_Vtbl { @@ -7056,9 +6938,8 @@ pub struct IACList2_Vtbl { pub SetOptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwflag: u32) -> ::windows_core::HRESULT, pub GetOptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwflag: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAccessibilityDockingService(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAccessibilityDockingService, IAccessibilityDockingService_Vtbl, 0x8849dc22_cedf_4c95_998d_051419dd3f76); +::windows_core::imp::interface_hierarchy!(IAccessibilityDockingService, ::windows_core::IUnknown); impl IAccessibilityDockingService { #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] #[cfg(feature = "Win32_Graphics_Gdi")] @@ -7085,13 +6966,6 @@ impl IAccessibilityDockingService { (::windows_core::Interface::vtable(self).UndockWindow)(::windows_core::Interface::as_raw(self), hwnd.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IAccessibilityDockingService, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAccessibilityDockingService { - type Vtable = IAccessibilityDockingService_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAccessibilityDockingService { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8849dc22_cedf_4c95_998d_051419dd3f76); -} #[repr(C)] #[doc(hidden)] pub struct IAccessibilityDockingService_Vtbl { @@ -7106,30 +6980,21 @@ pub struct IAccessibilityDockingService_Vtbl { DockWindow: usize, pub UndockWindow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwnd: super::super::Foundation::HWND) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAccessibilityDockingServiceCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAccessibilityDockingServiceCallback, IAccessibilityDockingServiceCallback_Vtbl, 0x157733fd_a592_42e5_b594_248468c5a81b); +::windows_core::imp::interface_hierarchy!(IAccessibilityDockingServiceCallback, ::windows_core::IUnknown); impl IAccessibilityDockingServiceCallback { pub unsafe fn Undocked(&self, undockreason: UNDOCK_REASON) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Undocked)(::windows_core::Interface::as_raw(self), undockreason).ok() } } -::windows_core::imp::interface_hierarchy!(IAccessibilityDockingServiceCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAccessibilityDockingServiceCallback { - type Vtable = IAccessibilityDockingServiceCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAccessibilityDockingServiceCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x157733fd_a592_42e5_b594_248468c5a81b); -} #[repr(C)] #[doc(hidden)] pub struct IAccessibilityDockingServiceCallback_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Undocked: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, undockreason: UNDOCK_REASON) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAccessibleObject(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAccessibleObject, IAccessibleObject_Vtbl, 0x95a391c5_9ed4_4c28_8401_ab9e06719e11); +::windows_core::imp::interface_hierarchy!(IAccessibleObject, ::windows_core::IUnknown); impl IAccessibleObject { pub unsafe fn SetAccessibleName(&self, pszname: P0) -> ::windows_core::Result<()> where @@ -7138,22 +7003,14 @@ impl IAccessibleObject { (::windows_core::Interface::vtable(self).SetAccessibleName)(::windows_core::Interface::as_raw(self), pszname.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IAccessibleObject, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAccessibleObject { - type Vtable = IAccessibleObject_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAccessibleObject { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x95a391c5_9ed4_4c28_8401_ab9e06719e11); -} #[repr(C)] #[doc(hidden)] pub struct IAccessibleObject_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub SetAccessibleName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszname: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActionProgress(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IActionProgress, IActionProgress_Vtbl, 0x49ff1173_eadc_446d_9285_156453a6431c); +::windows_core::imp::interface_hierarchy!(IActionProgress, ::windows_core::IUnknown); impl IActionProgress { pub unsafe fn Begin(&self, action: SPACTION, flags: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Begin)(::windows_core::Interface::as_raw(self), action, flags).ok() @@ -7179,13 +7036,6 @@ impl IActionProgress { (::windows_core::Interface::vtable(self).End)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IActionProgress, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IActionProgress { - type Vtable = IActionProgress_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActionProgress { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x49ff1173_eadc_446d_9285_156453a6431c); -} #[repr(C)] #[doc(hidden)] pub struct IActionProgress_Vtbl { @@ -7197,9 +7047,8 @@ pub struct IActionProgress_Vtbl { pub ResetCancel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub End: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActionProgressDialog(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IActionProgressDialog, IActionProgressDialog_Vtbl, 0x49ff1172_eadc_446d_9285_156453a6431c); +::windows_core::imp::interface_hierarchy!(IActionProgressDialog, ::windows_core::IUnknown); impl IActionProgressDialog { pub unsafe fn Initialize(&self, flags: u32, psztitle: P0, pszcancel: P1) -> ::windows_core::Result<()> where @@ -7212,13 +7061,6 @@ impl IActionProgressDialog { (::windows_core::Interface::vtable(self).Stop)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IActionProgressDialog, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IActionProgressDialog { - type Vtable = IActionProgressDialog_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActionProgressDialog { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x49ff1172_eadc_446d_9285_156453a6431c); -} #[repr(C)] #[doc(hidden)] pub struct IActionProgressDialog_Vtbl { @@ -7226,9 +7068,8 @@ pub struct IActionProgressDialog_Vtbl { pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: u32, psztitle: ::windows_core::PCWSTR, pszcancel: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub Stop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppActivationUIInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppActivationUIInfo, IAppActivationUIInfo_Vtbl, 0xabad189d_9fa3_4278_b3ca_8ca448a88dcb); +::windows_core::imp::interface_hierarchy!(IAppActivationUIInfo, ::windows_core::IUnknown); impl IAppActivationUIInfo { #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] #[cfg(feature = "Win32_Graphics_Gdi")] @@ -7253,13 +7094,6 @@ impl IAppActivationUIInfo { (::windows_core::Interface::vtable(self).GetKeyState)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAppActivationUIInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppActivationUIInfo { - type Vtable = IAppActivationUIInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppActivationUIInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xabad189d_9fa3_4278_b3ca_8ca448a88dcb); -} #[repr(C)] #[doc(hidden)] pub struct IAppActivationUIInfo_Vtbl { @@ -7273,9 +7107,8 @@ pub struct IAppActivationUIInfo_Vtbl { pub GetShowUI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub GetKeyState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppPublisher(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppPublisher, IAppPublisher_Vtbl, 0x07250a10_9cf9_11d1_9076_006008059382); +::windows_core::imp::interface_hierarchy!(IAppPublisher, ::windows_core::IUnknown); impl IAppPublisher { pub unsafe fn GetNumberOfCategories(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -7294,13 +7127,6 @@ impl IAppPublisher { (::windows_core::Interface::vtable(self).EnumApps)(::windows_core::Interface::as_raw(self), pappcategoryid, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAppPublisher, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppPublisher { - type Vtable = IAppPublisher_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppPublisher { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x07250a10_9cf9_11d1_9076_006008059382); -} #[repr(C)] #[doc(hidden)] pub struct IAppPublisher_Vtbl { @@ -7310,9 +7136,8 @@ pub struct IAppPublisher_Vtbl { pub GetNumberOfApps: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwapps: *mut u32) -> ::windows_core::HRESULT, pub EnumApps: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pappcategoryid: *const ::windows_core::GUID, ppepa: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppVisibility(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppVisibility, IAppVisibility_Vtbl, 0x2246ea2d_caea_4444_a3c4_6de827e44313); +::windows_core::imp::interface_hierarchy!(IAppVisibility, ::windows_core::IUnknown); impl IAppVisibility { #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] #[cfg(feature = "Win32_Graphics_Gdi")] @@ -7338,13 +7163,6 @@ impl IAppVisibility { (::windows_core::Interface::vtable(self).Unadvise)(::windows_core::Interface::as_raw(self), dwcookie).ok() } } -::windows_core::imp::interface_hierarchy!(IAppVisibility, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppVisibility { - type Vtable = IAppVisibility_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppVisibility { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2246ea2d_caea_4444_a3c4_6de827e44313); -} #[repr(C)] #[doc(hidden)] pub struct IAppVisibility_Vtbl { @@ -7357,9 +7175,8 @@ pub struct IAppVisibility_Vtbl { pub Advise: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcallback: *mut ::core::ffi::c_void, pdwcookie: *mut u32) -> ::windows_core::HRESULT, pub Unadvise: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwcookie: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAppVisibilityEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAppVisibilityEvents, IAppVisibilityEvents_Vtbl, 0x6584ce6b_7d82_49c2_89c9_c6bc02ba8c38); +::windows_core::imp::interface_hierarchy!(IAppVisibilityEvents, ::windows_core::IUnknown); impl IAppVisibilityEvents { #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] #[cfg(feature = "Win32_Graphics_Gdi")] @@ -7376,13 +7193,6 @@ impl IAppVisibilityEvents { (::windows_core::Interface::vtable(self).LauncherVisibilityChange)(::windows_core::Interface::as_raw(self), currentvisiblestate.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IAppVisibilityEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAppVisibilityEvents { - type Vtable = IAppVisibilityEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAppVisibilityEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6584ce6b_7d82_49c2_89c9_c6bc02ba8c38); -} #[repr(C)] #[doc(hidden)] pub struct IAppVisibilityEvents_Vtbl { @@ -7393,9 +7203,8 @@ pub struct IAppVisibilityEvents_Vtbl { AppVisibilityOnMonitorChanged: usize, pub LauncherVisibilityChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, currentvisiblestate: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IApplicationActivationManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IApplicationActivationManager, IApplicationActivationManager_Vtbl, 0x2e941141_7f97_4756_ba1d_9decde894a3d); +::windows_core::imp::interface_hierarchy!(IApplicationActivationManager, ::windows_core::IUnknown); impl IApplicationActivationManager { pub unsafe fn ActivateApplication(&self, appusermodelid: P0, arguments: P1, options: ACTIVATEOPTIONS) -> ::windows_core::Result where @@ -7423,13 +7232,6 @@ impl IApplicationActivationManager { (::windows_core::Interface::vtable(self).ActivateForProtocol)(::windows_core::Interface::as_raw(self), appusermodelid.into_param().abi(), itemarray.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IApplicationActivationManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IApplicationActivationManager { - type Vtable = IApplicationActivationManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IApplicationActivationManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2e941141_7f97_4756_ba1d_9decde894a3d); -} #[repr(C)] #[doc(hidden)] pub struct IApplicationActivationManager_Vtbl { @@ -7438,9 +7240,8 @@ pub struct IApplicationActivationManager_Vtbl { pub ActivateForFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, appusermodelid: ::windows_core::PCWSTR, itemarray: *mut ::core::ffi::c_void, verb: ::windows_core::PCWSTR, processid: *mut u32) -> ::windows_core::HRESULT, pub ActivateForProtocol: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, appusermodelid: ::windows_core::PCWSTR, itemarray: *mut ::core::ffi::c_void, processid: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IApplicationAssociationRegistration(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IApplicationAssociationRegistration, IApplicationAssociationRegistration_Vtbl, 0x4e530b0a_e611_4c77_a3ac_9031d022281b); +::windows_core::imp::interface_hierarchy!(IApplicationAssociationRegistration, ::windows_core::IUnknown); impl IApplicationAssociationRegistration { pub unsafe fn QueryCurrentDefault(&self, pszquery: P0, atquerytype: ASSOCIATIONTYPE, alquerylevel: ASSOCIATIONLEVEL) -> ::windows_core::Result<::windows_core::PWSTR> where @@ -7481,13 +7282,6 @@ impl IApplicationAssociationRegistration { (::windows_core::Interface::vtable(self).ClearUserAssociations)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IApplicationAssociationRegistration, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IApplicationAssociationRegistration { - type Vtable = IApplicationAssociationRegistration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IApplicationAssociationRegistration { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4e530b0a_e611_4c77_a3ac_9031d022281b); -} #[repr(C)] #[doc(hidden)] pub struct IApplicationAssociationRegistration_Vtbl { @@ -7499,9 +7293,8 @@ pub struct IApplicationAssociationRegistration_Vtbl { pub SetAppAsDefaultAll: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszappregistryname: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub ClearUserAssociations: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IApplicationAssociationRegistrationUI(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IApplicationAssociationRegistrationUI, IApplicationAssociationRegistrationUI_Vtbl, 0x1f76a169_f994_40ac_8fc8_0959e8874710); +::windows_core::imp::interface_hierarchy!(IApplicationAssociationRegistrationUI, ::windows_core::IUnknown); impl IApplicationAssociationRegistrationUI { pub unsafe fn LaunchAdvancedAssociationUI(&self, pszappregistryname: P0) -> ::windows_core::Result<()> where @@ -7510,22 +7303,14 @@ impl IApplicationAssociationRegistrationUI { (::windows_core::Interface::vtable(self).LaunchAdvancedAssociationUI)(::windows_core::Interface::as_raw(self), pszappregistryname.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IApplicationAssociationRegistrationUI, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IApplicationAssociationRegistrationUI { - type Vtable = IApplicationAssociationRegistrationUI_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IApplicationAssociationRegistrationUI { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1f76a169_f994_40ac_8fc8_0959e8874710); -} #[repr(C)] #[doc(hidden)] pub struct IApplicationAssociationRegistrationUI_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub LaunchAdvancedAssociationUI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszappregistryname: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IApplicationDesignModeSettings(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IApplicationDesignModeSettings, IApplicationDesignModeSettings_Vtbl, 0x2a3dee9a_e31d_46d6_8508_bcc597db3557); +::windows_core::imp::interface_hierarchy!(IApplicationDesignModeSettings, ::windows_core::IUnknown); impl IApplicationDesignModeSettings { pub unsafe fn SetNativeDisplaySize(&self, nativedisplaysizepixels: super::super::Foundation::SIZE) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetNativeDisplaySize)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(nativedisplaysizepixels)).ok() @@ -7552,13 +7337,6 @@ impl IApplicationDesignModeSettings { (::windows_core::Interface::vtable(self).TriggerEdgeGesture)(::windows_core::Interface::as_raw(self), edgegesturekind).ok() } } -::windows_core::imp::interface_hierarchy!(IApplicationDesignModeSettings, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IApplicationDesignModeSettings { - type Vtable = IApplicationDesignModeSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IApplicationDesignModeSettings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2a3dee9a_e31d_46d6_8508_bcc597db3557); -} #[repr(C)] #[doc(hidden)] pub struct IApplicationDesignModeSettings_Vtbl { @@ -7576,9 +7354,8 @@ pub struct IApplicationDesignModeSettings_Vtbl { IsApplicationViewStateSupported: usize, pub TriggerEdgeGesture: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, edgegesturekind: EDGE_GESTURE_KIND) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IApplicationDesignModeSettings2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IApplicationDesignModeSettings2, IApplicationDesignModeSettings2_Vtbl, 0x490514e1_675a_4d6e_a58d_e54901b4ca2f); +::windows_core::imp::interface_hierarchy!(IApplicationDesignModeSettings2, ::windows_core::IUnknown, IApplicationDesignModeSettings); impl IApplicationDesignModeSettings2 { pub unsafe fn SetNativeDisplaySize(&self, nativedisplaysizepixels: super::super::Foundation::SIZE) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.SetNativeDisplaySize)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(nativedisplaysizepixels)).ok() @@ -7630,13 +7407,6 @@ impl IApplicationDesignModeSettings2 { (::windows_core::Interface::vtable(self).GetApplicationViewOrientation)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(applicationsizepixels), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IApplicationDesignModeSettings2, ::windows_core::IUnknown, IApplicationDesignModeSettings); -unsafe impl ::windows_core::Interface for IApplicationDesignModeSettings2 { - type Vtable = IApplicationDesignModeSettings2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IApplicationDesignModeSettings2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x490514e1_675a_4d6e_a58d_e54901b4ca2f); -} #[repr(C)] #[doc(hidden)] pub struct IApplicationDesignModeSettings2_Vtbl { @@ -7649,9 +7419,8 @@ pub struct IApplicationDesignModeSettings2_Vtbl { pub GetApplicationSizeBounds: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, minapplicationsizepixels: *mut super::super::Foundation::SIZE, maxapplicationsizepixels: *mut super::super::Foundation::SIZE) -> ::windows_core::HRESULT, pub GetApplicationViewOrientation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, applicationsizepixels: super::super::Foundation::SIZE, vieworientation: *mut APPLICATION_VIEW_ORIENTATION) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IApplicationDestinations(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IApplicationDestinations, IApplicationDestinations_Vtbl, 0x12337d35_94c6_48a0_bce7_6a9c69d4d600); +::windows_core::imp::interface_hierarchy!(IApplicationDestinations, ::windows_core::IUnknown); impl IApplicationDestinations { pub unsafe fn SetAppID(&self, pszappid: P0) -> ::windows_core::Result<()> where @@ -7669,13 +7438,6 @@ impl IApplicationDestinations { (::windows_core::Interface::vtable(self).RemoveAllDestinations)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IApplicationDestinations, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IApplicationDestinations { - type Vtable = IApplicationDestinations_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IApplicationDestinations { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x12337d35_94c6_48a0_bce7_6a9c69d4d600); -} #[repr(C)] #[doc(hidden)] pub struct IApplicationDestinations_Vtbl { @@ -7684,9 +7446,8 @@ pub struct IApplicationDestinations_Vtbl { pub RemoveDestination: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punk: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RemoveAllDestinations: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IApplicationDocumentLists(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IApplicationDocumentLists, IApplicationDocumentLists_Vtbl, 0x3c594f9f_9f30_47a1_979a_c9e83d3d0a06); +::windows_core::imp::interface_hierarchy!(IApplicationDocumentLists, ::windows_core::IUnknown); impl IApplicationDocumentLists { pub unsafe fn SetAppID(&self, pszappid: P0) -> ::windows_core::Result<()> where @@ -7696,19 +7457,12 @@ impl IApplicationDocumentLists { } pub unsafe fn GetList(&self, listtype: APPDOCLISTTYPE, citemsdesired: u32) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetList)(::windows_core::Interface::as_raw(self), listtype, citemsdesired, &T::IID, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IApplicationDocumentLists, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IApplicationDocumentLists { - type Vtable = IApplicationDocumentLists_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IApplicationDocumentLists { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3c594f9f_9f30_47a1_979a_c9e83d3d0a06); -} #[repr(C)] #[doc(hidden)] pub struct IApplicationDocumentLists_Vtbl { @@ -7716,9 +7470,8 @@ pub struct IApplicationDocumentLists_Vtbl { pub SetAppID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszappid: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub GetList: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, listtype: APPDOCLISTTYPE, citemsdesired: u32, riid: *const ::windows_core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAssocHandler(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAssocHandler, IAssocHandler_Vtbl, 0xf04061ac_1659_4a3f_a954_775aa57fc083); +::windows_core::imp::interface_hierarchy!(IAssocHandler, ::windows_core::IUnknown); impl IAssocHandler { pub unsafe fn GetName(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); @@ -7758,13 +7511,6 @@ impl IAssocHandler { (::windows_core::Interface::vtable(self).CreateInvoker)(::windows_core::Interface::as_raw(self), pdo.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAssocHandler, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAssocHandler { - type Vtable = IAssocHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAssocHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf04061ac_1659_4a3f_a954_775aa57fc083); -} #[repr(C)] #[doc(hidden)] pub struct IAssocHandler_Vtbl { @@ -7783,9 +7529,8 @@ pub struct IAssocHandler_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] CreateInvoker: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAssocHandlerInvoker(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAssocHandlerInvoker, IAssocHandlerInvoker_Vtbl, 0x92218cab_ecaa_4335_8133_807fd234c2ee); +::windows_core::imp::interface_hierarchy!(IAssocHandlerInvoker, ::windows_core::IUnknown); impl IAssocHandlerInvoker { pub unsafe fn SupportsSelection(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SupportsSelection)(::windows_core::Interface::as_raw(self)).ok() @@ -7794,13 +7539,6 @@ impl IAssocHandlerInvoker { (::windows_core::Interface::vtable(self).Invoke)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IAssocHandlerInvoker, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAssocHandlerInvoker { - type Vtable = IAssocHandlerInvoker_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAssocHandlerInvoker { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x92218cab_ecaa_4335_8133_807fd234c2ee); -} #[repr(C)] #[doc(hidden)] pub struct IAssocHandlerInvoker_Vtbl { @@ -7808,9 +7546,8 @@ pub struct IAssocHandlerInvoker_Vtbl { pub SupportsSelection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Invoke: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAttachmentExecute(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAttachmentExecute, IAttachmentExecute_Vtbl, 0x73db1241_1e85_4581_8e4f_a81e1d0f8c57); +::windows_core::imp::interface_hierarchy!(IAttachmentExecute, ::windows_core::IUnknown); impl IAttachmentExecute { pub unsafe fn SetClientTitle(&self, psztitle: P0) -> ::windows_core::Result<()> where @@ -7875,13 +7612,6 @@ impl IAttachmentExecute { (::windows_core::Interface::vtable(self).ClearClientState)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IAttachmentExecute, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAttachmentExecute { - type Vtable = IAttachmentExecute_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAttachmentExecute { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x73db1241_1e85_4581_8e4f_a81e1d0f8c57); -} #[repr(C)] #[doc(hidden)] pub struct IAttachmentExecute_Vtbl { @@ -7899,9 +7629,8 @@ pub struct IAttachmentExecute_Vtbl { pub SaveWithUI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwnd: super::super::Foundation::HWND) -> ::windows_core::HRESULT, pub ClearClientState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAutoComplete(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAutoComplete, IAutoComplete_Vtbl, 0x00bb2762_6a77_11d0_a535_00c04fd7d062); +::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 @@ -7919,13 +7648,6 @@ impl IAutoComplete { (::windows_core::Interface::vtable(self).Enable)(::windows_core::Interface::as_raw(self), fenable.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IAutoComplete, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAutoComplete { - type Vtable = IAutoComplete_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAutoComplete { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00bb2762_6a77_11d0_a535_00c04fd7d062); -} #[repr(C)] #[doc(hidden)] pub struct IAutoComplete_Vtbl { @@ -7933,9 +7655,8 @@ pub struct IAutoComplete_Vtbl { pub Init: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwndedit: super::super::Foundation::HWND, punkacl: *mut ::core::ffi::c_void, pwszregkeypath: ::windows_core::PCWSTR, pwszquickcomplete: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub Enable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAutoComplete2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAutoComplete2, IAutoComplete2_Vtbl, 0xeac04bc0_3791_11d2_bb95_0060977b464c); +::windows_core::imp::interface_hierarchy!(IAutoComplete2, ::windows_core::IUnknown, IAutoComplete); impl IAutoComplete2 { pub unsafe fn Init(&self, hwndedit: P0, punkacl: P1, pwszregkeypath: P2, pwszquickcomplete: P3) -> ::windows_core::Result<()> where @@ -7960,13 +7681,6 @@ impl IAutoComplete2 { (::windows_core::Interface::vtable(self).GetOptions)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAutoComplete2, ::windows_core::IUnknown, IAutoComplete); -unsafe impl ::windows_core::Interface for IAutoComplete2 { - type Vtable = IAutoComplete2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAutoComplete2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeac04bc0_3791_11d2_bb95_0060977b464c); -} #[repr(C)] #[doc(hidden)] pub struct IAutoComplete2_Vtbl { @@ -7974,9 +7688,8 @@ pub struct IAutoComplete2_Vtbl { pub SetOptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwflag: u32) -> ::windows_core::HRESULT, pub GetOptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwflag: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAutoCompleteDropDown(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAutoCompleteDropDown, IAutoCompleteDropDown_Vtbl, 0x3cd141f4_3c6a_11d2_bcaa_00c04fd929db); +::windows_core::imp::interface_hierarchy!(IAutoCompleteDropDown, ::windows_core::IUnknown); impl IAutoCompleteDropDown { pub unsafe fn GetDropDownStatus(&self, pdwflags: *mut u32, ppwszstring: *mut ::windows_core::PWSTR) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetDropDownStatus)(::windows_core::Interface::as_raw(self), pdwflags, ppwszstring).ok() @@ -7985,13 +7698,6 @@ impl IAutoCompleteDropDown { (::windows_core::Interface::vtable(self).ResetEnumerator)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IAutoCompleteDropDown, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAutoCompleteDropDown { - type Vtable = IAutoCompleteDropDown_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAutoCompleteDropDown { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3cd141f4_3c6a_11d2_bcaa_00c04fd929db); -} #[repr(C)] #[doc(hidden)] pub struct IAutoCompleteDropDown_Vtbl { @@ -7999,15 +7705,14 @@ pub struct IAutoCompleteDropDown_Vtbl { pub GetDropDownStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwflags: *mut u32, ppwszstring: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, pub ResetEnumerator: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBandHost(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBandHost, IBandHost_Vtbl, 0xb9075c7c_d48e_403f_ab99_d6c77a1084ac); +::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, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -8022,13 +7727,6 @@ impl IBandHost { (::windows_core::Interface::vtable(self).DestroyBand)(::windows_core::Interface::as_raw(self), rclsidband).ok() } } -::windows_core::imp::interface_hierarchy!(IBandHost, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBandHost { - type Vtable = IBandHost_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBandHost { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb9075c7c_d48e_403f_ab99_d6c77a1084ac); -} #[repr(C)] #[doc(hidden)] pub struct IBandHost_Vtbl { @@ -8037,9 +7735,8 @@ pub struct IBandHost_Vtbl { pub SetBandAvailability: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rclsidband: *const ::windows_core::GUID, favailable: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub DestroyBand: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rclsidband: *const ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBandSite(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBandSite, IBandSite_Vtbl, 0x4cf504b0_de96_11d0_8b3f_00a0c911e8e5); +::windows_core::imp::interface_hierarchy!(IBandSite, ::windows_core::IUnknown); impl IBandSite { pub unsafe fn AddBand(&self, punk: P0) -> ::windows_core::Result<()> where @@ -8064,7 +7761,7 @@ impl IBandSite { } pub unsafe fn GetBandObject(&self, dwbandid: u32) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetBandObject)(::windows_core::Interface::as_raw(self), dwbandid, &T::IID, &mut result__).from_abi(result__) @@ -8076,13 +7773,6 @@ impl IBandSite { (::windows_core::Interface::vtable(self).GetBandSiteInfo)(::windows_core::Interface::as_raw(self), pbsinfo).ok() } } -::windows_core::imp::interface_hierarchy!(IBandSite, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBandSite { - type Vtable = IBandSite_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBandSite { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4cf504b0_de96_11d0_8b3f_00a0c911e8e5); -} #[repr(C)] #[doc(hidden)] pub struct IBandSite_Vtbl { @@ -8099,30 +7789,21 @@ pub struct IBandSite_Vtbl { pub SetBandSiteInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbsinfo: *const BANDSITEINFO) -> ::windows_core::HRESULT, pub GetBandSiteInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbsinfo: *mut BANDSITEINFO) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBannerNotificationHandler(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBannerNotificationHandler, IBannerNotificationHandler_Vtbl, 0x8d7b2ba7_db05_46a8_823c_d2b6de08ee91); +::windows_core::imp::interface_hierarchy!(IBannerNotificationHandler, ::windows_core::IUnknown); impl IBannerNotificationHandler { pub unsafe fn OnBannerEvent(&self, notification: *const BANNER_NOTIFICATION) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnBannerEvent)(::windows_core::Interface::as_raw(self), notification).ok() } } -::windows_core::imp::interface_hierarchy!(IBannerNotificationHandler, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBannerNotificationHandler { - type Vtable = IBannerNotificationHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBannerNotificationHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8d7b2ba7_db05_46a8_823c_d2b6de08ee91); -} #[repr(C)] #[doc(hidden)] pub struct IBannerNotificationHandler_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnBannerEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, notification: *const BANNER_NOTIFICATION) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBanneredBar(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBanneredBar, IBanneredBar_Vtbl, 0x596a9a94_013e_11d1_8d34_00a0c90f2719); +::windows_core::imp::interface_hierarchy!(IBanneredBar, ::windows_core::IUnknown); impl IBanneredBar { pub unsafe fn SetIconSize(&self, iicon: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetIconSize)(::windows_core::Interface::as_raw(self), iicon).ok() @@ -8146,13 +7827,6 @@ impl IBanneredBar { (::windows_core::Interface::vtable(self).GetBitmap)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IBanneredBar, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBanneredBar { - type Vtable = IBanneredBar_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBanneredBar { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x596a9a94_013e_11d1_8d34_00a0c90f2719); -} #[repr(C)] #[doc(hidden)] pub struct IBanneredBar_Vtbl { @@ -8168,31 +7842,22 @@ pub struct IBanneredBar_Vtbl { #[cfg(not(feature = "Win32_Graphics_Gdi"))] GetBitmap: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBrowserFrameOptions(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBrowserFrameOptions, IBrowserFrameOptions_Vtbl, 0x10df43c8_1dbe_11d3_8b34_006097df5bd4); +::windows_core::imp::interface_hierarchy!(IBrowserFrameOptions, ::windows_core::IUnknown); impl IBrowserFrameOptions { pub unsafe fn GetFrameOptions(&self, dwmask: u32) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetFrameOptions)(::windows_core::Interface::as_raw(self), dwmask, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IBrowserFrameOptions, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBrowserFrameOptions { - type Vtable = IBrowserFrameOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBrowserFrameOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x10df43c8_1dbe_11d3_8b34_006097df5bd4); -} #[repr(C)] #[doc(hidden)] pub struct IBrowserFrameOptions_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetFrameOptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwmask: u32, pdwoptions: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBrowserService(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBrowserService, IBrowserService_Vtbl, 0x02ba3b52_0547_11d1_b833_00c04fc9b31f); +::windows_core::imp::interface_hierarchy!(IBrowserService, ::windows_core::IUnknown); impl IBrowserService { #[doc = "Required features: `\"Win32_System_Ole\"`"] #[cfg(feature = "Win32_System_Ole")] @@ -8363,13 +8028,6 @@ impl IBrowserService { (::windows_core::Interface::vtable(self).RegisterWindow)(::windows_core::Interface::as_raw(self), fforceregister.into_param().abi(), swc).ok() } } -::windows_core::imp::interface_hierarchy!(IBrowserService, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IBrowserService { - type Vtable = IBrowserService_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBrowserService { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x02ba3b52_0547_11d1_b833_00c04fc9b31f); -} #[repr(C)] #[doc(hidden)] pub struct IBrowserService_Vtbl { @@ -8453,9 +8111,8 @@ pub struct IBrowserService_Vtbl { GetPalette: usize, pub RegisterWindow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fforceregister: super::super::Foundation::BOOL, swc: ShellWindowTypeConstants) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBrowserService2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBrowserService2, IBrowserService2_Vtbl, 0x68bd21cc_438b_11d2_a560_00a0c92dbfe8); +::windows_core::imp::interface_hierarchy!(IBrowserService2, ::windows_core::IUnknown, IBrowserService); impl IBrowserService2 { #[doc = "Required features: `\"Win32_System_Ole\"`"] #[cfg(feature = "Win32_System_Ole")] @@ -8935,13 +8592,6 @@ impl IBrowserService2 { (::windows_core::Interface::vtable(self).v_CheckZoneCrossing)(::windows_core::Interface::as_raw(self), pidl).ok() } } -::windows_core::imp::interface_hierarchy!(IBrowserService2, ::windows_core::IUnknown, IBrowserService); -unsafe impl ::windows_core::Interface for IBrowserService2 { - type Vtable = IBrowserService2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBrowserService2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x68bd21cc_438b_11d2_a560_00a0c92dbfe8); -} #[repr(C)] #[doc(hidden)] pub struct IBrowserService2_Vtbl { @@ -9063,9 +8713,8 @@ pub struct IBrowserService2_Vtbl { #[cfg(not(feature = "Win32_UI_Shell_Common"))] v_CheckZoneCrossing: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBrowserService3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBrowserService3, IBrowserService3_Vtbl, 0x27d7ce21_762d_48f3_86f3_40e2fd3749c4); +::windows_core::imp::interface_hierarchy!(IBrowserService3, ::windows_core::IUnknown, IBrowserService, IBrowserService2); impl IBrowserService3 { #[doc = "Required features: `\"Win32_System_Ole\"`"] #[cfg(feature = "Win32_System_Ole")] @@ -9560,13 +9209,6 @@ impl IBrowserService3 { (::windows_core::Interface::vtable(self).IEParseDisplayNameEx)(::windows_core::Interface::as_raw(self), uicp, pwszpath.into_param().abi(), dwflags, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IBrowserService3, ::windows_core::IUnknown, IBrowserService, IBrowserService2); -unsafe impl ::windows_core::Interface for IBrowserService3 { - type Vtable = IBrowserService3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBrowserService3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x27d7ce21_762d_48f3_86f3_40e2fd3749c4); -} #[repr(C)] #[doc(hidden)] pub struct IBrowserService3_Vtbl { @@ -9577,9 +9219,8 @@ pub struct IBrowserService3_Vtbl { #[cfg(not(feature = "Win32_UI_Shell_Common"))] IEParseDisplayNameEx: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IBrowserService4(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IBrowserService4, IBrowserService4_Vtbl, 0x639f1bff_e135_4096_abd8_e0f504d649a4); +::windows_core::imp::interface_hierarchy!(IBrowserService4, ::windows_core::IUnknown, IBrowserService, IBrowserService2, IBrowserService3); impl IBrowserService4 { #[doc = "Required features: `\"Win32_System_Ole\"`"] #[cfg(feature = "Win32_System_Ole")] @@ -10086,13 +9727,6 @@ impl IBrowserService4 { (::windows_core::Interface::vtable(self)._ResizeAllBorders)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IBrowserService4, ::windows_core::IUnknown, IBrowserService, IBrowserService2, IBrowserService3); -unsafe impl ::windows_core::Interface for IBrowserService4 { - type Vtable = IBrowserService4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IBrowserService4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x639f1bff_e135_4096_abd8_e0f504d649a4); -} #[repr(C)] #[doc(hidden)] pub struct IBrowserService4_Vtbl { @@ -10101,9 +9735,8 @@ pub struct IBrowserService4_Vtbl { pub SaveViewState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub _ResizeAllBorders: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICDBurn(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICDBurn, ICDBurn_Vtbl, 0x3d73a659_e5d0_4d42_afc0_5121ba425c8d); +::windows_core::imp::interface_hierarchy!(ICDBurn, ::windows_core::IUnknown); impl ICDBurn { pub unsafe fn GetRecorderDriveLetter(&self, pszdrive: &mut [u16]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetRecorderDriveLetter)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pszdrive.as_ptr()), pszdrive.len().try_into().unwrap()).ok() @@ -10119,13 +9752,6 @@ impl ICDBurn { (::windows_core::Interface::vtable(self).HasRecordableDrive)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ICDBurn, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICDBurn { - type Vtable = ICDBurn_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICDBurn { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3d73a659_e5d0_4d42_afc0_5121ba425c8d); -} #[repr(C)] #[doc(hidden)] pub struct ICDBurn_Vtbl { @@ -10134,31 +9760,22 @@ pub struct ICDBurn_Vtbl { pub Burn: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwnd: super::super::Foundation::HWND) -> ::windows_core::HRESULT, pub HasRecordableDrive: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfhasrecorder: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICDBurnExt(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICDBurnExt, ICDBurnExt_Vtbl, 0x2271dcca_74fc_4414_8fb7_c56b05ace2d7); +::windows_core::imp::interface_hierarchy!(ICDBurnExt, ::windows_core::IUnknown); impl ICDBurnExt { pub unsafe fn GetSupportedActionTypes(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetSupportedActionTypes)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ICDBurnExt, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICDBurnExt { - type Vtable = ICDBurnExt_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICDBurnExt { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2271dcca_74fc_4414_8fb7_c56b05ace2d7); -} #[repr(C)] #[doc(hidden)] pub struct ICDBurnExt_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetSupportedActionTypes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwactions: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICategorizer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICategorizer, ICategorizer_Vtbl, 0xa3b14589_9174_49a8_89a3_06a1ae2b9ba7); +::windows_core::imp::interface_hierarchy!(ICategorizer, ::windows_core::IUnknown); impl ICategorizer { pub unsafe fn GetDescription(&self, pszdesc: &mut [u16]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetDescription)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pszdesc.as_ptr()), pszdesc.len().try_into().unwrap()).ok() @@ -10175,13 +9792,6 @@ impl ICategorizer { (::windows_core::Interface::vtable(self).CompareCategory)(::windows_core::Interface::as_raw(self), csfflags, dwcategoryid1, dwcategoryid2).ok() } } -::windows_core::imp::interface_hierarchy!(ICategorizer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICategorizer { - type Vtable = ICategorizer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICategorizer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa3b14589_9174_49a8_89a3_06a1ae2b9ba7); -} #[repr(C)] #[doc(hidden)] pub struct ICategorizer_Vtbl { @@ -10194,9 +9804,8 @@ pub struct ICategorizer_Vtbl { pub GetCategoryInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwcategoryid: u32, pci: *mut CATEGORY_INFO) -> ::windows_core::HRESULT, pub CompareCategory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, csfflags: CATSORT_FLAGS, dwcategoryid1: u32, dwcategoryid2: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICategoryProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICategoryProvider, ICategoryProvider_Vtbl, 0x9af64809_5864_4c26_a720_c1f78c086ee3); +::windows_core::imp::interface_hierarchy!(ICategoryProvider, ::windows_core::IUnknown); impl ICategoryProvider { #[doc = "Required features: `\"Win32_UI_Shell_PropertiesSystem\"`"] #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] @@ -10225,19 +9834,12 @@ impl ICategoryProvider { } pub unsafe fn CreateCategory(&self, pguid: *const ::windows_core::GUID) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).CreateCategory)(::windows_core::Interface::as_raw(self), pguid, &T::IID, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ICategoryProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICategoryProvider { - type Vtable = ICategoryProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICategoryProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9af64809_5864_4c26_a720_c1f78c086ee3); -} #[repr(C)] #[doc(hidden)] pub struct ICategoryProvider_Vtbl { @@ -10261,9 +9863,8 @@ pub struct ICategoryProvider_Vtbl { pub GetCategoryName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pguid: *const ::windows_core::GUID, pszname: ::windows_core::PWSTR, cch: u32) -> ::windows_core::HRESULT, pub CreateCategory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pguid: *const ::windows_core::GUID, riid: *const ::windows_core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IColumnManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IColumnManager, IColumnManager_Vtbl, 0xd8ec27bb_3f3b_4042_b10a_4acfd924d453); +::windows_core::imp::interface_hierarchy!(IColumnManager, ::windows_core::IUnknown); impl IColumnManager { #[doc = "Required features: `\"Win32_UI_Shell_PropertiesSystem\"`"] #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] @@ -10290,13 +9891,6 @@ impl IColumnManager { (::windows_core::Interface::vtable(self).SetColumns)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(rgkeyorder.as_ptr()), rgkeyorder.len().try_into().unwrap()).ok() } } -::windows_core::imp::interface_hierarchy!(IColumnManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IColumnManager { - type Vtable = IColumnManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IColumnManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd8ec27bb_3f3b_4042_b10a_4acfd924d453); -} #[repr(C)] #[doc(hidden)] pub struct IColumnManager_Vtbl { @@ -10319,9 +9913,8 @@ pub struct IColumnManager_Vtbl { #[cfg(not(feature = "Win32_UI_Shell_PropertiesSystem"))] SetColumns: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IColumnProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IColumnProvider, IColumnProvider_Vtbl, 0xe8025004_1c42_11d2_be2c_00a0c9a83da1); +::windows_core::imp::interface_hierarchy!(IColumnProvider, ::windows_core::IUnknown); impl IColumnProvider { pub unsafe fn Initialize(&self, psci: *const SHCOLUMNINIT) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Initialize)(::windows_core::Interface::as_raw(self), psci).ok() @@ -10338,13 +9931,6 @@ impl IColumnProvider { (::windows_core::Interface::vtable(self).GetItemData)(::windows_core::Interface::as_raw(self), pscid, pscd, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IColumnProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IColumnProvider { - type Vtable = IColumnProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IColumnProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe8025004_1c42_11d2_be2c_00a0c9a83da1); -} #[repr(C)] #[doc(hidden)] pub struct IColumnProvider_Vtbl { @@ -10359,9 +9945,8 @@ pub struct IColumnProvider_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant", feature = "Win32_UI_Shell_PropertiesSystem")))] GetItemData: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICommDlgBrowser(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICommDlgBrowser, ICommDlgBrowser_Vtbl, 0x000214f1_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(ICommDlgBrowser, ::windows_core::IUnknown); impl ICommDlgBrowser { #[doc = "Required features: `\"Win32_System_Ole\"`"] #[cfg(feature = "Win32_System_Ole")] @@ -10388,13 +9973,6 @@ impl ICommDlgBrowser { (::windows_core::Interface::vtable(self).IncludeObject)(::windows_core::Interface::as_raw(self), ppshv.into_param().abi(), pidl).ok() } } -::windows_core::imp::interface_hierarchy!(ICommDlgBrowser, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICommDlgBrowser { - type Vtable = ICommDlgBrowser_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICommDlgBrowser { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x000214f1_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct ICommDlgBrowser_Vtbl { @@ -10412,9 +9990,8 @@ pub struct ICommDlgBrowser_Vtbl { #[cfg(not(all(feature = "Win32_System_Ole", feature = "Win32_UI_Shell_Common")))] IncludeObject: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICommDlgBrowser2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICommDlgBrowser2, ICommDlgBrowser2_Vtbl, 0x10339516_2894_11d2_9039_00c04f8eeb3e); +::windows_core::imp::interface_hierarchy!(ICommDlgBrowser2, ::windows_core::IUnknown, ICommDlgBrowser); impl ICommDlgBrowser2 { #[doc = "Required features: `\"Win32_System_Ole\"`"] #[cfg(feature = "Win32_System_Ole")] @@ -10461,13 +10038,6 @@ impl ICommDlgBrowser2 { (::windows_core::Interface::vtable(self).GetViewFlags)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ICommDlgBrowser2, ::windows_core::IUnknown, ICommDlgBrowser); -unsafe impl ::windows_core::Interface for ICommDlgBrowser2 { - type Vtable = ICommDlgBrowser2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICommDlgBrowser2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x10339516_2894_11d2_9039_00c04f8eeb3e); -} #[repr(C)] #[doc(hidden)] pub struct ICommDlgBrowser2_Vtbl { @@ -10482,9 +10052,8 @@ pub struct ICommDlgBrowser2_Vtbl { GetDefaultMenuText: usize, pub GetViewFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwflags: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICommDlgBrowser3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICommDlgBrowser3, ICommDlgBrowser3_Vtbl, 0xc8ad25a1_3294_41ee_8165_71174bd01c57); +::windows_core::imp::interface_hierarchy!(ICommDlgBrowser3, ::windows_core::IUnknown, ICommDlgBrowser, ICommDlgBrowser2); impl ICommDlgBrowser3 { #[doc = "Required features: `\"Win32_System_Ole\"`"] #[cfg(feature = "Win32_System_Ole")] @@ -10550,13 +10119,6 @@ impl ICommDlgBrowser3 { (::windows_core::Interface::vtable(self).OnPreViewCreated)(::windows_core::Interface::as_raw(self), ppshv.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ICommDlgBrowser3, ::windows_core::IUnknown, ICommDlgBrowser, ICommDlgBrowser2); -unsafe impl ::windows_core::Interface for ICommDlgBrowser3 { - type Vtable = ICommDlgBrowser3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICommDlgBrowser3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc8ad25a1_3294_41ee_8165_71174bd01c57); -} #[repr(C)] #[doc(hidden)] pub struct ICommDlgBrowser3_Vtbl { @@ -10571,30 +10133,21 @@ pub struct ICommDlgBrowser3_Vtbl { #[cfg(not(feature = "Win32_System_Ole"))] OnPreViewCreated: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IComputerInfoChangeNotify(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IComputerInfoChangeNotify, IComputerInfoChangeNotify_Vtbl, 0x0df60d92_6818_46d6_b358_d66170dde466); +::windows_core::imp::interface_hierarchy!(IComputerInfoChangeNotify, ::windows_core::IUnknown); impl IComputerInfoChangeNotify { pub unsafe fn ComputerInfoChanged(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).ComputerInfoChanged)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IComputerInfoChangeNotify, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IComputerInfoChangeNotify { - type Vtable = IComputerInfoChangeNotify_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IComputerInfoChangeNotify { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0df60d92_6818_46d6_b358_d66170dde466); -} #[repr(C)] #[doc(hidden)] pub struct IComputerInfoChangeNotify_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub ComputerInfoChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IConnectableCredentialProviderCredential(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IConnectableCredentialProviderCredential, IConnectableCredentialProviderCredential_Vtbl, 0x9387928b_ac75_4bf9_8ab2_2b93c4a55290); +::windows_core::imp::interface_hierarchy!(IConnectableCredentialProviderCredential, ::windows_core::IUnknown, ICredentialProviderCredential); impl IConnectableCredentialProviderCredential { pub unsafe fn Advise(&self, pcpce: P0) -> ::windows_core::Result<()> where @@ -10677,13 +10230,6 @@ impl IConnectableCredentialProviderCredential { (::windows_core::Interface::vtable(self).Disconnect)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IConnectableCredentialProviderCredential, ::windows_core::IUnknown, ICredentialProviderCredential); -unsafe impl ::windows_core::Interface for IConnectableCredentialProviderCredential { - type Vtable = IConnectableCredentialProviderCredential_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IConnectableCredentialProviderCredential { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9387928b_ac75_4bf9_8ab2_2b93c4a55290); -} #[repr(C)] #[doc(hidden)] pub struct IConnectableCredentialProviderCredential_Vtbl { @@ -10691,9 +10237,8 @@ pub struct IConnectableCredentialProviderCredential_Vtbl { pub Connect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pqcws: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Disconnect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContactManagerInterop(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IContactManagerInterop, IContactManagerInterop_Vtbl, 0x99eacba7_e073_43b6_a896_55afe48a0833); +::windows_core::imp::interface_hierarchy!(IContactManagerInterop, ::windows_core::IUnknown); impl IContactManagerInterop { pub unsafe fn ShowContactCardForWindow(&self, appwindow: P0, contact: P1, selection: *const super::super::Foundation::RECT, preferredplacement: FLYOUT_PLACEMENT) -> ::windows_core::Result<()> where @@ -10703,22 +10248,14 @@ impl IContactManagerInterop { (::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::imp::interface_hierarchy!(IContactManagerInterop, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContactManagerInterop { - type Vtable = IContactManagerInterop_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContactManagerInterop { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x99eacba7_e073_43b6_a896_55afe48a0833); -} #[repr(C)] #[doc(hidden)] pub struct IContactManagerInterop_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub ShowContactCardForWindow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, appwindow: super::super::Foundation::HWND, contact: *mut ::core::ffi::c_void, selection: *const super::super::Foundation::RECT, preferredplacement: FLYOUT_PLACEMENT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContextMenu(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IContextMenu, IContextMenu_Vtbl, 0x000214e4_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IContextMenu, ::windows_core::IUnknown); impl IContextMenu { #[doc = "Required features: `\"Win32_UI_WindowsAndMessaging\"`"] #[cfg(feature = "Win32_UI_WindowsAndMessaging")] @@ -10735,13 +10272,6 @@ impl IContextMenu { (::windows_core::Interface::vtable(self).GetCommandString)(::windows_core::Interface::as_raw(self), idcmd, utype, ::core::mem::transmute(preserved.unwrap_or(::std::ptr::null())), ::core::mem::transmute(pszname), cchmax).ok() } } -::windows_core::imp::interface_hierarchy!(IContextMenu, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContextMenu { - type Vtable = IContextMenu_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContextMenu { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x000214e4_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IContextMenu_Vtbl { @@ -10753,9 +10283,8 @@ pub struct IContextMenu_Vtbl { pub InvokeCommand: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pici: *const CMINVOKECOMMANDINFO) -> ::windows_core::HRESULT, pub GetCommandString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, idcmd: usize, utype: u32, preserved: *const u32, pszname: ::windows_core::PSTR, cchmax: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContextMenu2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IContextMenu2, IContextMenu2_Vtbl, 0x000214f4_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IContextMenu2, ::windows_core::IUnknown, IContextMenu); impl IContextMenu2 { #[doc = "Required features: `\"Win32_UI_WindowsAndMessaging\"`"] #[cfg(feature = "Win32_UI_WindowsAndMessaging")] @@ -10779,22 +10308,14 @@ impl IContextMenu2 { (::windows_core::Interface::vtable(self).HandleMenuMsg)(::windows_core::Interface::as_raw(self), umsg, wparam.into_param().abi(), lparam.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IContextMenu2, ::windows_core::IUnknown, IContextMenu); -unsafe impl ::windows_core::Interface for IContextMenu2 { - type Vtable = IContextMenu2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContextMenu2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x000214f4_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IContextMenu2_Vtbl { pub base__: IContextMenu_Vtbl, pub HandleMenuMsg: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContextMenu3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IContextMenu3, IContextMenu3_Vtbl, 0xbcfce0a0_ec17_11d0_8d10_00a0c90f2719); +::windows_core::imp::interface_hierarchy!(IContextMenu3, ::windows_core::IUnknown, IContextMenu, IContextMenu2); impl IContextMenu3 { #[doc = "Required features: `\"Win32_UI_WindowsAndMessaging\"`"] #[cfg(feature = "Win32_UI_WindowsAndMessaging")] @@ -10825,22 +10346,14 @@ impl IContextMenu3 { (::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::imp::interface_hierarchy!(IContextMenu3, ::windows_core::IUnknown, IContextMenu, IContextMenu2); -unsafe impl ::windows_core::Interface for IContextMenu3 { - type Vtable = IContextMenu3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContextMenu3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbcfce0a0_ec17_11d0_8d10_00a0c90f2719); -} #[repr(C)] #[doc(hidden)] pub struct IContextMenu3_Vtbl { pub base__: IContextMenu2_Vtbl, pub HandleMenuMsg2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, plresult: *mut super::super::Foundation::LRESULT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContextMenuCB(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IContextMenuCB, IContextMenuCB_Vtbl, 0x3409e930_5a39_11d1_83fa_00a0c90dc849); +::windows_core::imp::interface_hierarchy!(IContextMenuCB, ::windows_core::IUnknown); impl IContextMenuCB { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -10855,13 +10368,6 @@ impl IContextMenuCB { (::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::imp::interface_hierarchy!(IContextMenuCB, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContextMenuCB { - type Vtable = IContextMenuCB_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContextMenuCB { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3409e930_5a39_11d1_83fa_00a0c90dc849); -} #[repr(C)] #[doc(hidden)] pub struct IContextMenuCB_Vtbl { @@ -10871,9 +10377,8 @@ pub struct IContextMenuCB_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] CallBack: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IContextMenuSite(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IContextMenuSite, IContextMenuSite_Vtbl, 0x0811aebe_0b87_4c54_9e72_548cf649016b); +::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 @@ -10882,22 +10387,14 @@ impl IContextMenuSite { (::windows_core::Interface::vtable(self).DoContextMenuPopup)(::windows_core::Interface::as_raw(self), punkcontextmenu.into_param().abi(), fflags, ::core::mem::transmute(pt)).ok() } } -::windows_core::imp::interface_hierarchy!(IContextMenuSite, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IContextMenuSite { - type Vtable = IContextMenuSite_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IContextMenuSite { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0811aebe_0b87_4c54_9e72_548cf649016b); -} #[repr(C)] #[doc(hidden)] pub struct IContextMenuSite_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub DoContextMenuPopup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punkcontextmenu: *mut ::core::ffi::c_void, fflags: u32, pt: super::super::Foundation::POINT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICopyHookA(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICopyHookA, ICopyHookA_Vtbl, 0x000214ef_0000_0000_c000_000000000046); +::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 @@ -10908,22 +10405,14 @@ impl ICopyHookA { (::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::imp::interface_hierarchy!(ICopyHookA, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICopyHookA { - type Vtable = ICopyHookA_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICopyHookA { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x000214ef_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct ICopyHookA_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub CopyCallback: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwnd: super::super::Foundation::HWND, wfunc: u32, wflags: u32, pszsrcfile: ::windows_core::PCSTR, dwsrcattribs: u32, pszdestfile: ::windows_core::PCSTR, dwdestattribs: u32) -> u32, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICopyHookW(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICopyHookW, ICopyHookW_Vtbl, 0x000214fc_0000_0000_c000_000000000046); +::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 @@ -10932,14 +10421,7 @@ impl ICopyHookW { P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, { (::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::imp::interface_hierarchy!(ICopyHookW, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICopyHookW { - type Vtable = ICopyHookW_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICopyHookW { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x000214fc_0000_0000_c000_000000000046); + } } #[repr(C)] #[doc(hidden)] @@ -10947,9 +10429,8 @@ pub struct ICopyHookW_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub CopyCallback: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwnd: super::super::Foundation::HWND, wfunc: u32, wflags: u32, pszsrcfile: ::windows_core::PCWSTR, dwsrcattribs: u32, pszdestfile: ::windows_core::PCWSTR, dwdestattribs: u32) -> u32, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICreateProcessInputs(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICreateProcessInputs, ICreateProcessInputs_Vtbl, 0xf6ef6140_e26f_4d82_bac4_e9ba5fd239a8); +::windows_core::imp::interface_hierarchy!(ICreateProcessInputs, ::windows_core::IUnknown); impl ICreateProcessInputs { pub unsafe fn GetCreateFlags(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -10981,13 +10462,6 @@ impl ICreateProcessInputs { (::windows_core::Interface::vtable(self).SetEnvironmentVariable)(::windows_core::Interface::as_raw(self), pszname.into_param().abi(), pszvalue.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ICreateProcessInputs, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICreateProcessInputs { - type Vtable = ICreateProcessInputs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICreateProcessInputs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf6ef6140_e26f_4d82_bac4_e9ba5fd239a8); -} #[repr(C)] #[doc(hidden)] pub struct ICreateProcessInputs_Vtbl { @@ -11000,9 +10474,8 @@ pub struct ICreateProcessInputs_Vtbl { pub SetTitle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psztitle: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub SetEnvironmentVariable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszname: ::windows_core::PCWSTR, pszvalue: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICreatingProcess(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICreatingProcess, ICreatingProcess_Vtbl, 0xc2b937a9_3110_4398_8a56_f34c6342d244); +::windows_core::imp::interface_hierarchy!(ICreatingProcess, ::windows_core::IUnknown); impl ICreatingProcess { pub unsafe fn OnCreating(&self, pcpi: P0) -> ::windows_core::Result<()> where @@ -11011,22 +10484,14 @@ impl ICreatingProcess { (::windows_core::Interface::vtable(self).OnCreating)(::windows_core::Interface::as_raw(self), pcpi.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ICreatingProcess, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICreatingProcess { - type Vtable = ICreatingProcess_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICreatingProcess { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc2b937a9_3110_4398_8a56_f34c6342d244); -} #[repr(C)] #[doc(hidden)] pub struct ICreatingProcess_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnCreating: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcpi: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICredentialProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICredentialProvider, ICredentialProvider_Vtbl, 0xd27c3481_5a1c_45b2_8aaa_c20ebbe8229e); +::windows_core::imp::interface_hierarchy!(ICredentialProvider, ::windows_core::IUnknown); impl ICredentialProvider { pub unsafe fn SetUsageScenario(&self, cpus: CREDENTIAL_PROVIDER_USAGE_SCENARIO, dwflags: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetUsageScenario)(::windows_core::Interface::as_raw(self), cpus, dwflags).ok() @@ -11059,13 +10524,6 @@ impl ICredentialProvider { (::windows_core::Interface::vtable(self).GetCredentialAt)(::windows_core::Interface::as_raw(self), dwindex, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ICredentialProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICredentialProvider { - type Vtable = ICredentialProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICredentialProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd27c3481_5a1c_45b2_8aaa_c20ebbe8229e); -} #[repr(C)] #[doc(hidden)] pub struct ICredentialProvider_Vtbl { @@ -11079,9 +10537,8 @@ pub struct ICredentialProvider_Vtbl { pub GetCredentialCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwcount: *mut u32, pdwdefault: *mut u32, pbautologonwithdefault: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub GetCredentialAt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwindex: u32, ppcpc: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICredentialProviderCredential(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICredentialProviderCredential, ICredentialProviderCredential_Vtbl, 0x63913a93_40c1_481a_818d_4072ff8c70cc); +::windows_core::imp::interface_hierarchy!(ICredentialProviderCredential, ::windows_core::IUnknown); impl ICredentialProviderCredential { pub unsafe fn Advise(&self, pcpce: P0) -> ::windows_core::Result<()> where @@ -11155,13 +10612,6 @@ impl ICredentialProviderCredential { (::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::imp::interface_hierarchy!(ICredentialProviderCredential, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICredentialProviderCredential { - type Vtable = ICredentialProviderCredential_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICredentialProviderCredential { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x63913a93_40c1_481a_818d_4072ff8c70cc); -} #[repr(C)] #[doc(hidden)] pub struct ICredentialProviderCredential_Vtbl { @@ -11187,9 +10637,8 @@ pub struct ICredentialProviderCredential_Vtbl { pub GetSerialization: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcpgsr: *mut CREDENTIAL_PROVIDER_GET_SERIALIZATION_RESPONSE, pcpcs: *mut CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION, ppszoptionalstatustext: *mut ::windows_core::PWSTR, pcpsioptionalstatusicon: *mut CREDENTIAL_PROVIDER_STATUS_ICON) -> ::windows_core::HRESULT, pub ReportResult: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ntsstatus: super::super::Foundation::NTSTATUS, ntssubstatus: super::super::Foundation::NTSTATUS, ppszoptionalstatustext: *mut ::windows_core::PWSTR, pcpsioptionalstatusicon: *mut CREDENTIAL_PROVIDER_STATUS_ICON) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICredentialProviderCredential2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICredentialProviderCredential2, ICredentialProviderCredential2_Vtbl, 0xfd672c54_40ea_4d6e_9b49_cfb1a7507bd7); +::windows_core::imp::interface_hierarchy!(ICredentialProviderCredential2, ::windows_core::IUnknown, ICredentialProviderCredential); impl ICredentialProviderCredential2 { pub unsafe fn Advise(&self, pcpce: P0) -> ::windows_core::Result<()> where @@ -11267,22 +10716,14 @@ impl ICredentialProviderCredential2 { (::windows_core::Interface::vtable(self).GetUserSid)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ICredentialProviderCredential2, ::windows_core::IUnknown, ICredentialProviderCredential); -unsafe impl ::windows_core::Interface for ICredentialProviderCredential2 { - type Vtable = ICredentialProviderCredential2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICredentialProviderCredential2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfd672c54_40ea_4d6e_9b49_cfb1a7507bd7); -} #[repr(C)] #[doc(hidden)] pub struct ICredentialProviderCredential2_Vtbl { pub base__: ICredentialProviderCredential_Vtbl, pub GetUserSid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sid: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICredentialProviderCredentialEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICredentialProviderCredentialEvents, ICredentialProviderCredentialEvents_Vtbl, 0xfa6fa76b_66b7_4b11_95f1_86171118e816); +::windows_core::imp::interface_hierarchy!(ICredentialProviderCredentialEvents, ::windows_core::IUnknown); impl ICredentialProviderCredentialEvents { pub unsafe fn SetFieldState(&self, pcpc: P0, dwfieldid: u32, cpfs: CREDENTIAL_PROVIDER_FIELD_STATE) -> ::windows_core::Result<()> where @@ -11350,13 +10791,6 @@ impl ICredentialProviderCredentialEvents { (::windows_core::Interface::vtable(self).OnCreatingWindow)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ICredentialProviderCredentialEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICredentialProviderCredentialEvents { - type Vtable = ICredentialProviderCredentialEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICredentialProviderCredentialEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfa6fa76b_66b7_4b11_95f1_86171118e816); -} #[repr(C)] #[doc(hidden)] pub struct ICredentialProviderCredentialEvents_Vtbl { @@ -11375,9 +10809,8 @@ pub struct ICredentialProviderCredentialEvents_Vtbl { pub SetFieldSubmitButton: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcpc: *mut ::core::ffi::c_void, dwfieldid: u32, dwadjacentto: u32) -> ::windows_core::HRESULT, pub OnCreatingWindow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phwndowner: *mut super::super::Foundation::HWND) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICredentialProviderCredentialEvents2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICredentialProviderCredentialEvents2, ICredentialProviderCredentialEvents2_Vtbl, 0xb53c00b6_9922_4b78_b1f4_ddfe774dc39b); +::windows_core::imp::interface_hierarchy!(ICredentialProviderCredentialEvents2, ::windows_core::IUnknown, ICredentialProviderCredentialEvents); impl ICredentialProviderCredentialEvents2 { pub unsafe fn SetFieldState(&self, pcpc: P0, dwfieldid: u32, cpfs: CREDENTIAL_PROVIDER_FIELD_STATE) -> ::windows_core::Result<()> where @@ -11457,13 +10890,6 @@ impl ICredentialProviderCredentialEvents2 { (::windows_core::Interface::vtable(self).SetFieldOptions)(::windows_core::Interface::as_raw(self), credential.into_param().abi(), fieldid, options).ok() } } -::windows_core::imp::interface_hierarchy!(ICredentialProviderCredentialEvents2, ::windows_core::IUnknown, ICredentialProviderCredentialEvents); -unsafe impl ::windows_core::Interface for ICredentialProviderCredentialEvents2 { - type Vtable = ICredentialProviderCredentialEvents2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICredentialProviderCredentialEvents2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb53c00b6_9922_4b78_b1f4_ddfe774dc39b); -} #[repr(C)] #[doc(hidden)] pub struct ICredentialProviderCredentialEvents2_Vtbl { @@ -11472,52 +10898,35 @@ pub struct ICredentialProviderCredentialEvents2_Vtbl { pub EndFieldUpdates: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetFieldOptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, credential: *mut ::core::ffi::c_void, fieldid: u32, options: CREDENTIAL_PROVIDER_CREDENTIAL_FIELD_OPTIONS) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICredentialProviderCredentialWithFieldOptions(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICredentialProviderCredentialWithFieldOptions, ICredentialProviderCredentialWithFieldOptions_Vtbl, 0xdbc6fb30_c843_49e3_a645_573e6f39446a); +::windows_core::imp::interface_hierarchy!(ICredentialProviderCredentialWithFieldOptions, ::windows_core::IUnknown); impl ICredentialProviderCredentialWithFieldOptions { pub unsafe fn GetFieldOptions(&self, fieldid: u32) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetFieldOptions)(::windows_core::Interface::as_raw(self), fieldid, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ICredentialProviderCredentialWithFieldOptions, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICredentialProviderCredentialWithFieldOptions { - type Vtable = ICredentialProviderCredentialWithFieldOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICredentialProviderCredentialWithFieldOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdbc6fb30_c843_49e3_a645_573e6f39446a); -} #[repr(C)] #[doc(hidden)] pub struct ICredentialProviderCredentialWithFieldOptions_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetFieldOptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fieldid: u32, options: *mut CREDENTIAL_PROVIDER_CREDENTIAL_FIELD_OPTIONS) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICredentialProviderEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICredentialProviderEvents, ICredentialProviderEvents_Vtbl, 0x34201e5a_a787_41a3_a5a4_bd6dcf2a854e); +::windows_core::imp::interface_hierarchy!(ICredentialProviderEvents, ::windows_core::IUnknown); impl ICredentialProviderEvents { pub unsafe fn CredentialsChanged(&self, upadvisecontext: usize) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).CredentialsChanged)(::windows_core::Interface::as_raw(self), upadvisecontext).ok() } } -::windows_core::imp::interface_hierarchy!(ICredentialProviderEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICredentialProviderEvents { - type Vtable = ICredentialProviderEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICredentialProviderEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x34201e5a_a787_41a3_a5a4_bd6dcf2a854e); -} #[repr(C)] #[doc(hidden)] pub struct ICredentialProviderEvents_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub CredentialsChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, upadvisecontext: usize) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICredentialProviderFilter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICredentialProviderFilter, ICredentialProviderFilter_Vtbl, 0xa5da53f9_d475_4080_a120_910c4a739880); +::windows_core::imp::interface_hierarchy!(ICredentialProviderFilter, ::windows_core::IUnknown); impl ICredentialProviderFilter { pub unsafe fn Filter(&self, cpus: CREDENTIAL_PROVIDER_USAGE_SCENARIO, dwflags: u32, rgclsidproviders: *const ::windows_core::GUID, rgballow: *mut super::super::Foundation::BOOL, cproviders: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Filter)(::windows_core::Interface::as_raw(self), cpus, dwflags, rgclsidproviders, rgballow, cproviders).ok() @@ -11526,13 +10935,6 @@ impl ICredentialProviderFilter { (::windows_core::Interface::vtable(self).UpdateRemoteCredential)(::windows_core::Interface::as_raw(self), pcpcsin, pcpcsout).ok() } } -::windows_core::imp::interface_hierarchy!(ICredentialProviderFilter, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICredentialProviderFilter { - type Vtable = ICredentialProviderFilter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICredentialProviderFilter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa5da53f9_d475_4080_a120_910c4a739880); -} #[repr(C)] #[doc(hidden)] pub struct ICredentialProviderFilter_Vtbl { @@ -11540,9 +10942,8 @@ pub struct ICredentialProviderFilter_Vtbl { pub Filter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cpus: CREDENTIAL_PROVIDER_USAGE_SCENARIO, dwflags: u32, rgclsidproviders: *const ::windows_core::GUID, rgballow: *mut super::super::Foundation::BOOL, cproviders: u32) -> ::windows_core::HRESULT, pub UpdateRemoteCredential: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcpcsin: *const CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION, pcpcsout: *mut CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICredentialProviderSetUserArray(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICredentialProviderSetUserArray, ICredentialProviderSetUserArray_Vtbl, 0x095c1484_1c0c_4388_9c6d_500e61bf84bd); +::windows_core::imp::interface_hierarchy!(ICredentialProviderSetUserArray, ::windows_core::IUnknown); impl ICredentialProviderSetUserArray { pub unsafe fn SetUserArray(&self, users: P0) -> ::windows_core::Result<()> where @@ -11551,22 +10952,14 @@ impl ICredentialProviderSetUserArray { (::windows_core::Interface::vtable(self).SetUserArray)(::windows_core::Interface::as_raw(self), users.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ICredentialProviderSetUserArray, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICredentialProviderSetUserArray { - type Vtable = ICredentialProviderSetUserArray_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICredentialProviderSetUserArray { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x095c1484_1c0c_4388_9c6d_500e61bf84bd); -} #[repr(C)] #[doc(hidden)] pub struct ICredentialProviderSetUserArray_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub SetUserArray: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, users: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICredentialProviderUser(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICredentialProviderUser, ICredentialProviderUser_Vtbl, 0x13793285_3ea6_40fd_b420_15f47da41fbb); +::windows_core::imp::interface_hierarchy!(ICredentialProviderUser, ::windows_core::IUnknown); impl ICredentialProviderUser { pub unsafe fn GetSid(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); @@ -11589,13 +10982,6 @@ impl ICredentialProviderUser { (::windows_core::Interface::vtable(self).GetValue)(::windows_core::Interface::as_raw(self), key, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ICredentialProviderUser, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICredentialProviderUser { - type Vtable = ICredentialProviderUser_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICredentialProviderUser { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x13793285_3ea6_40fd_b420_15f47da41fbb); -} #[repr(C)] #[doc(hidden)] pub struct ICredentialProviderUser_Vtbl { @@ -11611,9 +10997,8 @@ pub struct ICredentialProviderUser_Vtbl { #[cfg(not(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant", feature = "Win32_UI_Shell_PropertiesSystem")))] GetValue: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICredentialProviderUserArray(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICredentialProviderUserArray, ICredentialProviderUserArray_Vtbl, 0x90c119ae_0f18_4520_a1f1_114366a40fe8); +::windows_core::imp::interface_hierarchy!(ICredentialProviderUserArray, ::windows_core::IUnknown); impl ICredentialProviderUserArray { pub unsafe fn SetProviderFilter(&self, guidprovidertofilterto: *const ::windows_core::GUID) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetProviderFilter)(::windows_core::Interface::as_raw(self), guidprovidertofilterto).ok() @@ -11631,13 +11016,6 @@ impl ICredentialProviderUserArray { (::windows_core::Interface::vtable(self).GetAt)(::windows_core::Interface::as_raw(self), userindex, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ICredentialProviderUserArray, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICredentialProviderUserArray { - type Vtable = ICredentialProviderUserArray_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICredentialProviderUserArray { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x90c119ae_0f18_4520_a1f1_114366a40fe8); -} #[repr(C)] #[doc(hidden)] pub struct ICredentialProviderUserArray_Vtbl { @@ -11647,9 +11025,8 @@ pub struct ICredentialProviderUserArray_Vtbl { pub GetCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, usercount: *mut u32) -> ::windows_core::HRESULT, pub GetAt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, userindex: u32, user: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICurrentItem(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICurrentItem, ICurrentItem_Vtbl, 0x240a7174_d653_4a1d_a6d3_d4943cfbfe3d); +::windows_core::imp::interface_hierarchy!(ICurrentItem, ::windows_core::IUnknown, IRelatedItem); impl ICurrentItem { #[doc = "Required features: `\"Win32_UI_Shell_Common\"`"] #[cfg(feature = "Win32_UI_Shell_Common")] @@ -11662,21 +11039,13 @@ impl ICurrentItem { (::windows_core::Interface::vtable(self).base__.GetItem)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ICurrentItem, ::windows_core::IUnknown, IRelatedItem); -unsafe impl ::windows_core::Interface for ICurrentItem { - type Vtable = ICurrentItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICurrentItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x240a7174_d653_4a1d_a6d3_d4943cfbfe3d); -} #[repr(C)] #[doc(hidden)] pub struct ICurrentItem_Vtbl { pub base__: IRelatedItem_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICurrentWorkingDirectory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICurrentWorkingDirectory, ICurrentWorkingDirectory_Vtbl, 0x91956d21_9276_11d1_921a_006097df5bd4); +::windows_core::imp::interface_hierarchy!(ICurrentWorkingDirectory, ::windows_core::IUnknown); impl ICurrentWorkingDirectory { pub unsafe fn GetDirectory(&self, pwzpath: &mut [u16]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetDirectory)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pwzpath.as_ptr()), pwzpath.len().try_into().unwrap()).ok() @@ -11688,13 +11057,6 @@ impl ICurrentWorkingDirectory { (::windows_core::Interface::vtable(self).SetDirectory)(::windows_core::Interface::as_raw(self), pwzpath.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ICurrentWorkingDirectory, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICurrentWorkingDirectory { - type Vtable = ICurrentWorkingDirectory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICurrentWorkingDirectory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x91956d21_9276_11d1_921a_006097df5bd4); -} #[repr(C)] #[doc(hidden)] pub struct ICurrentWorkingDirectory_Vtbl { @@ -11702,9 +11064,8 @@ pub struct ICurrentWorkingDirectory_Vtbl { pub GetDirectory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwzpath: ::windows_core::PWSTR, cchsize: u32) -> ::windows_core::HRESULT, pub SetDirectory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwzpath: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICustomDestinationList(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICustomDestinationList, ICustomDestinationList_Vtbl, 0x6332debf_87b5_4670_90c0_5e57b408a49e); +::windows_core::imp::interface_hierarchy!(ICustomDestinationList, ::windows_core::IUnknown); impl ICustomDestinationList { pub unsafe fn SetAppID(&self, pszappid: P0) -> ::windows_core::Result<()> where @@ -11714,7 +11075,7 @@ impl ICustomDestinationList { } pub unsafe fn BeginList(&self, pcminslots: *mut u32) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).BeginList)(::windows_core::Interface::as_raw(self), pcminslots, &T::IID, &mut result__).from_abi(result__) @@ -11744,7 +11105,7 @@ impl ICustomDestinationList { } pub unsafe fn GetRemovedDestinations(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetRemovedDestinations)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -11759,13 +11120,6 @@ impl ICustomDestinationList { (::windows_core::Interface::vtable(self).AbortList)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ICustomDestinationList, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICustomDestinationList { - type Vtable = ICustomDestinationList_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICustomDestinationList { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6332debf_87b5_4670_90c0_5e57b408a49e); -} #[repr(C)] #[doc(hidden)] pub struct ICustomDestinationList_Vtbl { @@ -11786,9 +11140,8 @@ pub struct ICustomDestinationList_Vtbl { pub DeleteList: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszappid: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub AbortList: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataObjectAsyncCapability(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDataObjectAsyncCapability, IDataObjectAsyncCapability_Vtbl, 0x3d8b0590_f691_11d2_8ea9_006097df5bd4); +::windows_core::imp::interface_hierarchy!(IDataObjectAsyncCapability, ::windows_core::IUnknown); impl IDataObjectAsyncCapability { pub unsafe fn SetAsyncMode(&self, fdoopasync: P0) -> ::windows_core::Result<()> where @@ -11821,13 +11174,6 @@ impl IDataObjectAsyncCapability { (::windows_core::Interface::vtable(self).EndOperation)(::windows_core::Interface::as_raw(self), hresult, pbcreserved.into_param().abi(), dweffects).ok() } } -::windows_core::imp::interface_hierarchy!(IDataObjectAsyncCapability, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDataObjectAsyncCapability { - type Vtable = IDataObjectAsyncCapability_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDataObjectAsyncCapability { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3d8b0590_f691_11d2_8ea9_006097df5bd4); -} #[repr(C)] #[doc(hidden)] pub struct IDataObjectAsyncCapability_Vtbl { @@ -11844,9 +11190,8 @@ pub struct IDataObjectAsyncCapability_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] EndOperation: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataObjectProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDataObjectProvider, IDataObjectProvider_Vtbl, 0x3d25f6d6_4b2a_433c_9184_7c33ad35d001); +::windows_core::imp::interface_hierarchy!(IDataObjectProvider, ::windows_core::IUnknown); impl IDataObjectProvider { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -11863,13 +11208,6 @@ impl IDataObjectProvider { (::windows_core::Interface::vtable(self).SetDataObject)(::windows_core::Interface::as_raw(self), dataobject.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IDataObjectProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDataObjectProvider { - type Vtable = IDataObjectProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDataObjectProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3d25f6d6_4b2a_433c_9184_7c33ad35d001); -} #[repr(C)] #[doc(hidden)] pub struct IDataObjectProvider_Vtbl { @@ -11883,14 +11221,13 @@ pub struct IDataObjectProvider_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] SetDataObject: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDataTransferManagerInterop(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDataTransferManagerInterop, IDataTransferManagerInterop_Vtbl, 0x3a3dcd6c_3eab_43dc_bcde_45671ce800c8); +::windows_core::imp::interface_hierarchy!(IDataTransferManagerInterop, ::windows_core::IUnknown); impl IDataTransferManagerInterop { pub unsafe fn GetForWindow(&self, appwindow: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -11902,13 +11239,6 @@ impl IDataTransferManagerInterop { (::windows_core::Interface::vtable(self).ShowShareUIForWindow)(::windows_core::Interface::as_raw(self), appwindow.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IDataTransferManagerInterop, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDataTransferManagerInterop { - type Vtable = IDataTransferManagerInterop_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDataTransferManagerInterop { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3a3dcd6c_3eab_43dc_bcde_45671ce800c8); -} #[repr(C)] #[doc(hidden)] pub struct IDataTransferManagerInterop_Vtbl { @@ -11916,9 +11246,8 @@ pub struct IDataTransferManagerInterop_Vtbl { pub GetForWindow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, appwindow: super::super::Foundation::HWND, riid: *const ::windows_core::GUID, datatransfermanager: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ShowShareUIForWindow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, appwindow: super::super::Foundation::HWND) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDefaultExtractIconInit(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDefaultExtractIconInit, IDefaultExtractIconInit_Vtbl, 0x41ded17d_d6b3_4261_997d_88c60e4b1d58); +::windows_core::imp::interface_hierarchy!(IDefaultExtractIconInit, ::windows_core::IUnknown); impl IDefaultExtractIconInit { pub unsafe fn SetFlags(&self, uflags: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetFlags)(::windows_core::Interface::as_raw(self), uflags).ok() @@ -11956,13 +11285,6 @@ impl IDefaultExtractIconInit { (::windows_core::Interface::vtable(self).SetDefaultIcon)(::windows_core::Interface::as_raw(self), pszfile.into_param().abi(), iicon).ok() } } -::windows_core::imp::interface_hierarchy!(IDefaultExtractIconInit, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDefaultExtractIconInit { - type Vtable = IDefaultExtractIconInit_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDefaultExtractIconInit { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x41ded17d_d6b3_4261_997d_88c60e4b1d58); -} #[repr(C)] #[doc(hidden)] pub struct IDefaultExtractIconInit_Vtbl { @@ -11977,9 +11299,8 @@ pub struct IDefaultExtractIconInit_Vtbl { pub SetShortcutIcon: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszfile: ::windows_core::PCWSTR, iicon: i32) -> ::windows_core::HRESULT, pub SetDefaultIcon: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszfile: ::windows_core::PCWSTR, iicon: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDefaultFolderMenuInitialize(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDefaultFolderMenuInitialize, IDefaultFolderMenuInitialize_Vtbl, 0x7690aa79_f8fc_4615_a327_36f7d18f5d91); +::windows_core::imp::interface_hierarchy!(IDefaultFolderMenuInitialize, ::windows_core::IUnknown); impl IDefaultFolderMenuInitialize { #[doc = "Required features: `\"Win32_System_Registry\"`, `\"Win32_UI_Shell_Common\"`"] #[cfg(all(feature = "Win32_System_Registry", feature = "Win32_UI_Shell_Common"))] @@ -12003,13 +11324,6 @@ impl IDefaultFolderMenuInitialize { (::windows_core::Interface::vtable(self).SetHandlerClsid)(::windows_core::Interface::as_raw(self), rclsid).ok() } } -::windows_core::imp::interface_hierarchy!(IDefaultFolderMenuInitialize, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDefaultFolderMenuInitialize { - type Vtable = IDefaultFolderMenuInitialize_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDefaultFolderMenuInitialize { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7690aa79_f8fc_4615_a327_36f7d18f5d91); -} #[repr(C)] #[doc(hidden)] pub struct IDefaultFolderMenuInitialize_Vtbl { @@ -12022,9 +11336,8 @@ pub struct IDefaultFolderMenuInitialize_Vtbl { pub GetMenuRestrictions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dfmrmask: DEFAULT_FOLDER_MENU_RESTRICTIONS, pdfmrvalues: *mut DEFAULT_FOLDER_MENU_RESTRICTIONS) -> ::windows_core::HRESULT, pub SetHandlerClsid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rclsid: *const ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDelegateFolder(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDelegateFolder, IDelegateFolder_Vtbl, 0xadd8ba80_002b_11d0_8f0f_00c04fd7d062); +::windows_core::imp::interface_hierarchy!(IDelegateFolder, ::windows_core::IUnknown); impl IDelegateFolder { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -12035,13 +11348,6 @@ impl IDelegateFolder { (::windows_core::Interface::vtable(self).SetItemAlloc)(::windows_core::Interface::as_raw(self), pmalloc.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IDelegateFolder, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDelegateFolder { - type Vtable = IDelegateFolder_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDelegateFolder { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xadd8ba80_002b_11d0_8f0f_00c04fd7d062); -} #[repr(C)] #[doc(hidden)] pub struct IDelegateFolder_Vtbl { @@ -12051,9 +11357,8 @@ pub struct IDelegateFolder_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] SetItemAlloc: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDelegateItem(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDelegateItem, IDelegateItem_Vtbl, 0x3c5a1c94_c951_4cb7_bb6d_3b93f30cce93); +::windows_core::imp::interface_hierarchy!(IDelegateItem, ::windows_core::IUnknown, IRelatedItem); impl IDelegateItem { #[doc = "Required features: `\"Win32_UI_Shell_Common\"`"] #[cfg(feature = "Win32_UI_Shell_Common")] @@ -12066,23 +11371,20 @@ impl IDelegateItem { (::windows_core::Interface::vtable(self).base__.GetItem)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDelegateItem, ::windows_core::IUnknown, IRelatedItem); -unsafe impl ::windows_core::Interface for IDelegateItem { - type Vtable = IDelegateItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDelegateItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3c5a1c94_c951_4cb7_bb6d_3b93f30cce93); -} #[repr(C)] #[doc(hidden)] pub struct IDelegateItem_Vtbl { pub base__: IRelatedItem_Vtbl, } -#[doc = "Required features: `\"Win32_System_Ole\"`"] #[cfg(feature = "Win32_System_Ole")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDeskBand(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Ole\"`"] + IDeskBand, + IDeskBand_Vtbl, + 0xeb0fe172_1a3a_11d0_89b3_00a0c90a90ac +); +#[cfg(feature = "Win32_System_Ole")] +::windows_core::imp::interface_hierarchy!(IDeskBand, ::windows_core::IUnknown, super::super::System::Ole::IOleWindow, IDockingWindow); #[cfg(feature = "Win32_System_Ole")] impl IDeskBand { #[doc = "Required features: `\"Win32_System_Ole\"`"] @@ -12120,27 +11422,21 @@ impl IDeskBand { } } #[cfg(feature = "Win32_System_Ole")] -::windows_core::imp::interface_hierarchy!(IDeskBand, ::windows_core::IUnknown, super::super::System::Ole::IOleWindow, IDockingWindow); -#[cfg(feature = "Win32_System_Ole")] -unsafe impl ::windows_core::Interface for IDeskBand { - type Vtable = IDeskBand_Vtbl; -} -#[cfg(feature = "Win32_System_Ole")] -unsafe impl ::windows_core::ComInterface for IDeskBand { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeb0fe172_1a3a_11d0_89b3_00a0c90a90ac); -} -#[cfg(feature = "Win32_System_Ole")] #[repr(C)] #[doc(hidden)] pub struct IDeskBand_Vtbl { pub base__: IDockingWindow_Vtbl, pub GetBandInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwbandid: u32, dwviewmode: u32, pdbi: *mut DESKBANDINFO) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Ole\"`"] #[cfg(feature = "Win32_System_Ole")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDeskBand2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Ole\"`"] + IDeskBand2, + IDeskBand2_Vtbl, + 0x79d16de4_abee_4021_8d9d_9169b261d657 +); +#[cfg(feature = "Win32_System_Ole")] +::windows_core::imp::interface_hierarchy!(IDeskBand2, ::windows_core::IUnknown, super::super::System::Ole::IOleWindow, IDockingWindow, IDeskBand); #[cfg(feature = "Win32_System_Ole")] impl IDeskBand2 { #[doc = "Required features: `\"Win32_System_Ole\"`"] @@ -12192,16 +11488,6 @@ impl IDeskBand2 { } } #[cfg(feature = "Win32_System_Ole")] -::windows_core::imp::interface_hierarchy!(IDeskBand2, ::windows_core::IUnknown, super::super::System::Ole::IOleWindow, IDockingWindow, IDeskBand); -#[cfg(feature = "Win32_System_Ole")] -unsafe impl ::windows_core::Interface for IDeskBand2 { - type Vtable = IDeskBand2_Vtbl; -} -#[cfg(feature = "Win32_System_Ole")] -unsafe impl ::windows_core::ComInterface for IDeskBand2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x79d16de4_abee_4021_8d9d_9169b261d657); -} -#[cfg(feature = "Win32_System_Ole")] #[repr(C)] #[doc(hidden)] pub struct IDeskBand2_Vtbl { @@ -12210,33 +11496,29 @@ pub struct IDeskBand2_Vtbl { pub SetCompositionState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fcompositionenabled: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub GetCompositionState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfcompositionenabled: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDeskBandInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDeskBandInfo, IDeskBandInfo_Vtbl, 0x77e425fc_cbf9_4307_ba6a_bb5727745661); +::windows_core::imp::interface_hierarchy!(IDeskBandInfo, ::windows_core::IUnknown); impl IDeskBandInfo { pub unsafe fn GetDefaultBandWidth(&self, dwbandid: u32, dwviewmode: u32) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetDefaultBandWidth)(::windows_core::Interface::as_raw(self), dwbandid, dwviewmode, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDeskBandInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDeskBandInfo { - type Vtable = IDeskBandInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDeskBandInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x77e425fc_cbf9_4307_ba6a_bb5727745661); -} #[repr(C)] #[doc(hidden)] pub struct IDeskBandInfo_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetDefaultBandWidth: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwbandid: u32, dwviewmode: u32, pnwidth: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Ole\"`"] #[cfg(feature = "Win32_System_Ole")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDeskBar(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Ole\"`"] + IDeskBar, + IDeskBar_Vtbl, + 0xeb0fe173_1a3a_11d0_89b3_00a0c90a90ac +); +#[cfg(feature = "Win32_System_Ole")] +::windows_core::imp::interface_hierarchy!(IDeskBar, ::windows_core::IUnknown, super::super::System::Ole::IOleWindow); #[cfg(feature = "Win32_System_Ole")] impl IDeskBar { #[doc = "Required features: `\"Win32_System_Ole\"`"] @@ -12268,16 +11550,6 @@ impl IDeskBar { } } #[cfg(feature = "Win32_System_Ole")] -::windows_core::imp::interface_hierarchy!(IDeskBar, ::windows_core::IUnknown, super::super::System::Ole::IOleWindow); -#[cfg(feature = "Win32_System_Ole")] -unsafe impl ::windows_core::Interface for IDeskBar { - type Vtable = IDeskBar_Vtbl; -} -#[cfg(feature = "Win32_System_Ole")] -unsafe impl ::windows_core::ComInterface for IDeskBar { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeb0fe173_1a3a_11d0_89b3_00a0c90a90ac); -} -#[cfg(feature = "Win32_System_Ole")] #[repr(C)] #[doc(hidden)] pub struct IDeskBar_Vtbl { @@ -12286,11 +11558,15 @@ pub struct IDeskBar_Vtbl { pub GetClient: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppunkclient: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub OnPosRectChangeDB: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prc: *const super::super::Foundation::RECT) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Ole\"`"] #[cfg(feature = "Win32_System_Ole")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDeskBarClient(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Ole\"`"] + IDeskBarClient, + IDeskBarClient_Vtbl, + 0xeb0fe175_1a3a_11d0_89b3_00a0c90a90ac +); +#[cfg(feature = "Win32_System_Ole")] +::windows_core::imp::interface_hierarchy!(IDeskBarClient, ::windows_core::IUnknown, super::super::System::Ole::IOleWindow); #[cfg(feature = "Win32_System_Ole")] impl IDeskBarClient { #[doc = "Required features: `\"Win32_System_Ole\"`"] @@ -12325,16 +11601,6 @@ impl IDeskBarClient { } } #[cfg(feature = "Win32_System_Ole")] -::windows_core::imp::interface_hierarchy!(IDeskBarClient, ::windows_core::IUnknown, super::super::System::Ole::IOleWindow); -#[cfg(feature = "Win32_System_Ole")] -unsafe impl ::windows_core::Interface for IDeskBarClient { - type Vtable = IDeskBarClient_Vtbl; -} -#[cfg(feature = "Win32_System_Ole")] -unsafe impl ::windows_core::ComInterface for IDeskBarClient { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeb0fe175_1a3a_11d0_89b3_00a0c90a90ac); -} -#[cfg(feature = "Win32_System_Ole")] #[repr(C)] #[doc(hidden)] pub struct IDeskBarClient_Vtbl { @@ -12344,9 +11610,8 @@ pub struct IDeskBarClient_Vtbl { pub UIActivateDBC: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwstate: u32) -> ::windows_core::HRESULT, pub GetSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwwhich: u32, prc: *mut super::super::Foundation::RECT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDesktopGadget(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDesktopGadget, IDesktopGadget_Vtbl, 0xc1646bc4_f298_4f91_a204_eb2dd1709d1a); +::windows_core::imp::interface_hierarchy!(IDesktopGadget, ::windows_core::IUnknown); impl IDesktopGadget { pub unsafe fn RunGadget(&self, gadgetpath: P0) -> ::windows_core::Result<()> where @@ -12355,22 +11620,14 @@ impl IDesktopGadget { (::windows_core::Interface::vtable(self).RunGadget)(::windows_core::Interface::as_raw(self), gadgetpath.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IDesktopGadget, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDesktopGadget { - type Vtable = IDesktopGadget_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDesktopGadget { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc1646bc4_f298_4f91_a204_eb2dd1709d1a); -} #[repr(C)] #[doc(hidden)] pub struct IDesktopGadget_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub RunGadget: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, gadgetpath: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDesktopWallpaper(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDesktopWallpaper, IDesktopWallpaper_Vtbl, 0xb92b56a9_8b55_4e14_9a89_0199bbb6f93b); +::windows_core::imp::interface_hierarchy!(IDesktopWallpaper, ::windows_core::IUnknown); impl IDesktopWallpaper { pub unsafe fn SetWallpaper(&self, monitorid: P0, wallpaper: P1) -> ::windows_core::Result<()> where @@ -12451,13 +11708,6 @@ impl IDesktopWallpaper { (::windows_core::Interface::vtable(self).Enable)(::windows_core::Interface::as_raw(self), enable.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IDesktopWallpaper, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDesktopWallpaper { - type Vtable = IDesktopWallpaper_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDesktopWallpaper { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb92b56a9_8b55_4e14_9a89_0199bbb6f93b); -} #[repr(C)] #[doc(hidden)] pub struct IDesktopWallpaper_Vtbl { @@ -12479,9 +11729,8 @@ pub struct IDesktopWallpaper_Vtbl { pub GetStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, state: *mut DESKTOP_SLIDESHOW_STATE) -> ::windows_core::HRESULT, pub Enable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enable: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDestinationStreamFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDestinationStreamFactory, IDestinationStreamFactory_Vtbl, 0x8a87781b_39a7_4a1f_aab3_a39b9c34a7d9); +::windows_core::imp::interface_hierarchy!(IDestinationStreamFactory, ::windows_core::IUnknown); impl IDestinationStreamFactory { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -12490,13 +11739,6 @@ impl IDestinationStreamFactory { (::windows_core::Interface::vtable(self).GetDestinationStream)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDestinationStreamFactory, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDestinationStreamFactory { - type Vtable = IDestinationStreamFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDestinationStreamFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8a87781b_39a7_4a1f_aab3_a39b9c34a7d9); -} #[repr(C)] #[doc(hidden)] pub struct IDestinationStreamFactory_Vtbl { @@ -12506,9 +11748,8 @@ pub struct IDestinationStreamFactory_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetDestinationStream: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDisplayItem(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDisplayItem, IDisplayItem_Vtbl, 0xc6fd5997_9f6b_4888_8703_94e80e8cde3f); +::windows_core::imp::interface_hierarchy!(IDisplayItem, ::windows_core::IUnknown, IRelatedItem); impl IDisplayItem { #[doc = "Required features: `\"Win32_UI_Shell_Common\"`"] #[cfg(feature = "Win32_UI_Shell_Common")] @@ -12521,21 +11762,13 @@ impl IDisplayItem { (::windows_core::Interface::vtable(self).base__.GetItem)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDisplayItem, ::windows_core::IUnknown, IRelatedItem); -unsafe impl ::windows_core::Interface for IDisplayItem { - type Vtable = IDisplayItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDisplayItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc6fd5997_9f6b_4888_8703_94e80e8cde3f); -} #[repr(C)] #[doc(hidden)] pub struct IDisplayItem_Vtbl { pub base__: IRelatedItem_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDocViewSite(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDocViewSite, IDocViewSite_Vtbl, 0x87d605e0_c511_11cf_89a9_00a0c9054129); +::windows_core::imp::interface_hierarchy!(IDocViewSite, ::windows_core::IUnknown); impl IDocViewSite { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -12543,13 +11776,6 @@ impl IDocViewSite { (::windows_core::Interface::vtable(self).OnSetTitle)(::windows_core::Interface::as_raw(self), pvtitle).ok() } } -::windows_core::imp::interface_hierarchy!(IDocViewSite, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDocViewSite { - type Vtable = IDocViewSite_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDocViewSite { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x87d605e0_c511_11cf_89a9_00a0c9054129); -} #[repr(C)] #[doc(hidden)] pub struct IDocViewSite_Vtbl { @@ -12559,11 +11785,15 @@ pub struct IDocViewSite_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] OnSetTitle: usize, } -#[doc = "Required features: `\"Win32_System_Ole\"`"] #[cfg(feature = "Win32_System_Ole")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDockingWindow(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Ole\"`"] + IDockingWindow, + IDockingWindow_Vtbl, + 0x012dd920_7b26_11d0_8ca9_00a0c92dbfe8 +); +#[cfg(feature = "Win32_System_Ole")] +::windows_core::imp::interface_hierarchy!(IDockingWindow, ::windows_core::IUnknown, super::super::System::Ole::IOleWindow); #[cfg(feature = "Win32_System_Ole")] impl IDockingWindow { #[doc = "Required features: `\"Win32_System_Ole\"`"] @@ -12598,16 +11828,6 @@ impl IDockingWindow { } } #[cfg(feature = "Win32_System_Ole")] -::windows_core::imp::interface_hierarchy!(IDockingWindow, ::windows_core::IUnknown, super::super::System::Ole::IOleWindow); -#[cfg(feature = "Win32_System_Ole")] -unsafe impl ::windows_core::Interface for IDockingWindow { - type Vtable = IDockingWindow_Vtbl; -} -#[cfg(feature = "Win32_System_Ole")] -unsafe impl ::windows_core::ComInterface for IDockingWindow { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x012dd920_7b26_11d0_8ca9_00a0c92dbfe8); -} -#[cfg(feature = "Win32_System_Ole")] #[repr(C)] #[doc(hidden)] pub struct IDockingWindow_Vtbl { @@ -12616,11 +11836,15 @@ pub struct IDockingWindow_Vtbl { pub CloseDW: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwreserved: u32) -> ::windows_core::HRESULT, pub ResizeBorderDW: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prcborder: *const super::super::Foundation::RECT, punktoolbarsite: *mut ::core::ffi::c_void, freserved: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Ole\"`"] #[cfg(feature = "Win32_System_Ole")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDockingWindowFrame(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Ole\"`"] + IDockingWindowFrame, + IDockingWindowFrame_Vtbl, + 0x47d2657a_7b27_11d0_8ca9_00a0c92dbfe8 +); +#[cfg(feature = "Win32_System_Ole")] +::windows_core::imp::interface_hierarchy!(IDockingWindowFrame, ::windows_core::IUnknown, super::super::System::Ole::IOleWindow); #[cfg(feature = "Win32_System_Ole")] impl IDockingWindowFrame { #[doc = "Required features: `\"Win32_System_Ole\"`"] @@ -12658,16 +11882,6 @@ impl IDockingWindowFrame { } } #[cfg(feature = "Win32_System_Ole")] -::windows_core::imp::interface_hierarchy!(IDockingWindowFrame, ::windows_core::IUnknown, super::super::System::Ole::IOleWindow); -#[cfg(feature = "Win32_System_Ole")] -unsafe impl ::windows_core::Interface for IDockingWindowFrame { - type Vtable = IDockingWindowFrame_Vtbl; -} -#[cfg(feature = "Win32_System_Ole")] -unsafe impl ::windows_core::ComInterface for IDockingWindowFrame { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x47d2657a_7b27_11d0_8ca9_00a0c92dbfe8); -} -#[cfg(feature = "Win32_System_Ole")] #[repr(C)] #[doc(hidden)] pub struct IDockingWindowFrame_Vtbl { @@ -12676,11 +11890,15 @@ pub struct IDockingWindowFrame_Vtbl { pub RemoveToolbar: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punksrc: *mut ::core::ffi::c_void, dwremoveflags: u32) -> ::windows_core::HRESULT, pub FindToolbar: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwszitem: ::windows_core::PCWSTR, riid: *const ::windows_core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Ole\"`"] #[cfg(feature = "Win32_System_Ole")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDockingWindowSite(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Ole\"`"] + IDockingWindowSite, + IDockingWindowSite_Vtbl, + 0x2a342fc2_7b26_11d0_8ca9_00a0c92dbfe8 +); +#[cfg(feature = "Win32_System_Ole")] +::windows_core::imp::interface_hierarchy!(IDockingWindowSite, ::windows_core::IUnknown, super::super::System::Ole::IOleWindow); #[cfg(feature = "Win32_System_Ole")] impl IDockingWindowSite { #[doc = "Required features: `\"Win32_System_Ole\"`"] @@ -12718,16 +11936,6 @@ impl IDockingWindowSite { } } #[cfg(feature = "Win32_System_Ole")] -::windows_core::imp::interface_hierarchy!(IDockingWindowSite, ::windows_core::IUnknown, super::super::System::Ole::IOleWindow); -#[cfg(feature = "Win32_System_Ole")] -unsafe impl ::windows_core::Interface for IDockingWindowSite { - type Vtable = IDockingWindowSite_Vtbl; -} -#[cfg(feature = "Win32_System_Ole")] -unsafe impl ::windows_core::ComInterface for IDockingWindowSite { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2a342fc2_7b26_11d0_8ca9_00a0c92dbfe8); -} -#[cfg(feature = "Win32_System_Ole")] #[repr(C)] #[doc(hidden)] pub struct IDockingWindowSite_Vtbl { @@ -12736,9 +11944,8 @@ pub struct IDockingWindowSite_Vtbl { pub RequestBorderSpaceDW: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punkobj: *mut ::core::ffi::c_void, pbw: *const super::super::Foundation::RECT) -> ::windows_core::HRESULT, pub SetBorderSpaceDW: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punkobj: *mut ::core::ffi::c_void, pbw: *const super::super::Foundation::RECT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDragSourceHelper(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDragSourceHelper, IDragSourceHelper_Vtbl, 0xde5bf786_477a_11d2_839d_00c04fd918d0); +::windows_core::imp::interface_hierarchy!(IDragSourceHelper, ::windows_core::IUnknown); impl IDragSourceHelper { #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_System_Com\"`"] #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] @@ -12758,13 +11965,6 @@ impl IDragSourceHelper { (::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::imp::interface_hierarchy!(IDragSourceHelper, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDragSourceHelper { - type Vtable = IDragSourceHelper_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDragSourceHelper { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xde5bf786_477a_11d2_839d_00c04fd918d0); -} #[repr(C)] #[doc(hidden)] pub struct IDragSourceHelper_Vtbl { @@ -12778,9 +11978,8 @@ pub struct IDragSourceHelper_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] InitializeFromWindow: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDragSourceHelper2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDragSourceHelper2, IDragSourceHelper2_Vtbl, 0x83e07d0d_0c5f_4163_bf1a_60b274051e40); +::windows_core::imp::interface_hierarchy!(IDragSourceHelper2, ::windows_core::IUnknown, IDragSourceHelper); impl IDragSourceHelper2 { #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_System_Com\"`"] #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] @@ -12803,22 +12002,14 @@ impl IDragSourceHelper2 { (::windows_core::Interface::vtable(self).SetFlags)(::windows_core::Interface::as_raw(self), dwflags).ok() } } -::windows_core::imp::interface_hierarchy!(IDragSourceHelper2, ::windows_core::IUnknown, IDragSourceHelper); -unsafe impl ::windows_core::Interface for IDragSourceHelper2 { - type Vtable = IDragSourceHelper2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDragSourceHelper2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x83e07d0d_0c5f_4163_bf1a_60b274051e40); -} #[repr(C)] #[doc(hidden)] pub struct IDragSourceHelper2_Vtbl { pub base__: IDragSourceHelper_Vtbl, pub SetFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwflags: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDropTargetHelper(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDropTargetHelper, IDropTargetHelper_Vtbl, 0x4657278b_411b_11d2_839a_00c04fd918d0); +::windows_core::imp::interface_hierarchy!(IDropTargetHelper, ::windows_core::IUnknown); impl IDropTargetHelper { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`"] #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -12852,13 +12043,6 @@ impl IDropTargetHelper { (::windows_core::Interface::vtable(self).Show)(::windows_core::Interface::as_raw(self), fshow.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IDropTargetHelper, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDropTargetHelper { - type Vtable = IDropTargetHelper_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDropTargetHelper { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4657278b_411b_11d2_839a_00c04fd918d0); -} #[repr(C)] #[doc(hidden)] pub struct IDropTargetHelper_Vtbl { @@ -12878,9 +12062,8 @@ pub struct IDropTargetHelper_Vtbl { Drop: usize, pub Show: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fshow: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDynamicHWHandler(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDynamicHWHandler, IDynamicHWHandler_Vtbl, 0xdc2601d7_059e_42fc_a09d_2afd21b6d5f7); +::windows_core::imp::interface_hierarchy!(IDynamicHWHandler, ::windows_core::IUnknown); impl IDynamicHWHandler { pub unsafe fn GetDynamicInfo(&self, pszdeviceid: P0, dwcontenttype: u32) -> ::windows_core::Result<::windows_core::PWSTR> where @@ -12890,24 +12073,21 @@ impl IDynamicHWHandler { (::windows_core::Interface::vtable(self).GetDynamicInfo)(::windows_core::Interface::as_raw(self), pszdeviceid.into_param().abi(), dwcontenttype, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDynamicHWHandler, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDynamicHWHandler { - type Vtable = IDynamicHWHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDynamicHWHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdc2601d7_059e_42fc_a09d_2afd21b6d5f7); -} #[repr(C)] #[doc(hidden)] pub struct IDynamicHWHandler_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetDynamicInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszdeviceid: ::windows_core::PCWSTR, dwcontenttype: u32, ppszaction: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumACString(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IEnumACString, + IEnumACString_Vtbl, + 0x8e74c210_cf9d_4eaf_a403_7356428f0a5a +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IEnumACString, ::windows_core::IUnknown, super::super::System::Com::IEnumString); #[cfg(feature = "Win32_System_Com")] impl IEnumACString { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -12943,16 +12123,6 @@ impl IEnumACString { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IEnumACString, ::windows_core::IUnknown, super::super::System::Com::IEnumString); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IEnumACString { - type Vtable = IEnumACString_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IEnumACString { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8e74c210_cf9d_4eaf_a403_7356428f0a5a); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IEnumACString_Vtbl { @@ -12961,30 +12131,21 @@ pub struct IEnumACString_Vtbl { pub SetEnumOptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwoptions: u32) -> ::windows_core::HRESULT, pub GetEnumOptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwoptions: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumAssocHandlers(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumAssocHandlers, IEnumAssocHandlers_Vtbl, 0x973810ae_9599_4b88_9e4d_6ee98c9552da); +::windows_core::imp::interface_hierarchy!(IEnumAssocHandlers, ::windows_core::IUnknown); impl IEnumAssocHandlers { pub unsafe fn Next(&self, rgelt: &mut [::core::option::Option], pceltfetched: ::core::option::Option<*mut u32>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), ::core::mem::transmute(rgelt.as_ptr()), ::core::mem::transmute(pceltfetched.unwrap_or(::std::ptr::null_mut()))).ok() } } -::windows_core::imp::interface_hierarchy!(IEnumAssocHandlers, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumAssocHandlers { - type Vtable = IEnumAssocHandlers_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumAssocHandlers { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x973810ae_9599_4b88_9e4d_6ee98c9552da); -} #[repr(C)] #[doc(hidden)] pub struct IEnumAssocHandlers_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Next: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, celt: u32, rgelt: *mut *mut ::core::ffi::c_void, pceltfetched: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumExplorerCommand(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumExplorerCommand, IEnumExplorerCommand_Vtbl, 0xa88826f8_186f_4987_aade_ea0cef8fbfe8); +::windows_core::imp::interface_hierarchy!(IEnumExplorerCommand, ::windows_core::IUnknown); impl IEnumExplorerCommand { pub unsafe fn Next(&self, puicommand: &mut [::core::option::Option], pceltfetched: ::core::option::Option<*mut u32>) -> ::windows_core::HRESULT { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), puicommand.len().try_into().unwrap(), ::core::mem::transmute(puicommand.as_ptr()), ::core::mem::transmute(pceltfetched.unwrap_or(::std::ptr::null_mut()))) @@ -13000,13 +12161,6 @@ impl IEnumExplorerCommand { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumExplorerCommand, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumExplorerCommand { - type Vtable = IEnumExplorerCommand_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumExplorerCommand { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa88826f8_186f_4987_aade_ea0cef8fbfe8); -} #[repr(C)] #[doc(hidden)] pub struct IEnumExplorerCommand_Vtbl { @@ -13016,9 +12170,8 @@ pub struct IEnumExplorerCommand_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumExtraSearch(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumExtraSearch, IEnumExtraSearch_Vtbl, 0x0e700be1_9db6_11d1_a1ce_00c04fd75d13); +::windows_core::imp::interface_hierarchy!(IEnumExtraSearch, ::windows_core::IUnknown); impl IEnumExtraSearch { pub unsafe fn Next(&self, rgelt: &mut [EXTRASEARCH], pceltfetched: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), ::core::mem::transmute(rgelt.as_ptr()), pceltfetched).ok() @@ -13034,13 +12187,6 @@ impl IEnumExtraSearch { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumExtraSearch, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumExtraSearch { - type Vtable = IEnumExtraSearch_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumExtraSearch { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0e700be1_9db6_11d1_a1ce_00c04fd75d13); -} #[repr(C)] #[doc(hidden)] pub struct IEnumExtraSearch_Vtbl { @@ -13050,9 +12196,8 @@ pub struct IEnumExtraSearch_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumFullIDList(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumFullIDList, IEnumFullIDList_Vtbl, 0xd0191542_7954_4908_bc06_b2360bbe45ba); +::windows_core::imp::interface_hierarchy!(IEnumFullIDList, ::windows_core::IUnknown); impl IEnumFullIDList { #[doc = "Required features: `\"Win32_UI_Shell_Common\"`"] #[cfg(feature = "Win32_UI_Shell_Common")] @@ -13070,13 +12215,6 @@ impl IEnumFullIDList { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumFullIDList, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumFullIDList { - type Vtable = IEnumFullIDList_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumFullIDList { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd0191542_7954_4908_bc06_b2360bbe45ba); -} #[repr(C)] #[doc(hidden)] pub struct IEnumFullIDList_Vtbl { @@ -13089,9 +12227,8 @@ pub struct IEnumFullIDList_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumHLITEM(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumHLITEM, IEnumHLITEM_Vtbl, 0x79eac9c6_baf9_11ce_8c82_00aa004ba90b); +::windows_core::imp::interface_hierarchy!(IEnumHLITEM, ::windows_core::IUnknown); impl IEnumHLITEM { pub unsafe fn Next(&self, celt: u32, rgelt: *mut HLITEM, pceltfetched: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), celt, rgelt, pceltfetched).ok() @@ -13107,13 +12244,6 @@ impl IEnumHLITEM { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumHLITEM, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumHLITEM { - type Vtable = IEnumHLITEM_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumHLITEM { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x79eac9c6_baf9_11ce_8c82_00aa004ba90b); -} #[repr(C)] #[doc(hidden)] pub struct IEnumHLITEM_Vtbl { @@ -13123,9 +12253,8 @@ pub struct IEnumHLITEM_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppienumhlitem: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumIDList(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumIDList, IEnumIDList_Vtbl, 0x000214f2_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IEnumIDList, ::windows_core::IUnknown); impl IEnumIDList { #[doc = "Required features: `\"Win32_UI_Shell_Common\"`"] #[cfg(feature = "Win32_UI_Shell_Common")] @@ -13142,13 +12271,6 @@ impl IEnumIDList { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(ppenum)) } } -::windows_core::imp::interface_hierarchy!(IEnumIDList, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumIDList { - type Vtable = IEnumIDList_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumIDList { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x000214f2_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IEnumIDList_Vtbl { @@ -13161,9 +12283,8 @@ pub struct IEnumIDList_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumObjects(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumObjects, IEnumObjects_Vtbl, 0x2c1c7e2e_2d0e_4059_831e_1e6f82335c2e); +::windows_core::imp::interface_hierarchy!(IEnumObjects, ::windows_core::IUnknown); impl IEnumObjects { pub unsafe fn Next(&self, riid: *const ::windows_core::GUID, rgelt: &mut [*mut ::core::ffi::c_void], pceltfetched: ::core::option::Option<*mut u32>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), riid, ::core::mem::transmute(rgelt.as_ptr()), ::core::mem::transmute(pceltfetched.unwrap_or(::std::ptr::null_mut()))).ok() @@ -13179,13 +12300,6 @@ impl IEnumObjects { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumObjects, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumObjects { - type Vtable = IEnumObjects_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumObjects { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2c1c7e2e_2d0e_4059_831e_1e6f82335c2e); -} #[repr(C)] #[doc(hidden)] pub struct IEnumObjects_Vtbl { @@ -13195,9 +12309,8 @@ pub struct IEnumObjects_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumPublishedApps(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumPublishedApps, IEnumPublishedApps_Vtbl, 0x0b124f8c_91f0_11d1_b8b5_006008059382); +::windows_core::imp::interface_hierarchy!(IEnumPublishedApps, ::windows_core::IUnknown); impl IEnumPublishedApps { pub unsafe fn Next(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -13207,13 +12320,6 @@ impl IEnumPublishedApps { (::windows_core::Interface::vtable(self).Reset)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IEnumPublishedApps, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumPublishedApps { - type Vtable = IEnumPublishedApps_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumPublishedApps { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0b124f8c_91f0_11d1_b8b5_006008059382); -} #[repr(C)] #[doc(hidden)] pub struct IEnumPublishedApps_Vtbl { @@ -13221,30 +12327,21 @@ pub struct IEnumPublishedApps_Vtbl { pub Next: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pia: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumReadyCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumReadyCallback, IEnumReadyCallback_Vtbl, 0x61e00d45_8fff_4e60_924e_6537b61612dd); +::windows_core::imp::interface_hierarchy!(IEnumReadyCallback, ::windows_core::IUnknown); impl IEnumReadyCallback { pub unsafe fn EnumReady(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).EnumReady)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IEnumReadyCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumReadyCallback { - type Vtable = IEnumReadyCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumReadyCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x61e00d45_8fff_4e60_924e_6537b61612dd); -} #[repr(C)] #[doc(hidden)] pub struct IEnumReadyCallback_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub EnumReady: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumResources(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumResources, IEnumResources_Vtbl, 0x2dd81fe3_a83c_4da9_a330_47249d345ba1); +::windows_core::imp::interface_hierarchy!(IEnumResources, ::windows_core::IUnknown); impl IEnumResources { pub unsafe fn Next(&self, psir: &mut [SHELL_ITEM_RESOURCE], pceltfetched: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), psir.len().try_into().unwrap(), ::core::mem::transmute(psir.as_ptr()), pceltfetched).ok() @@ -13260,13 +12357,6 @@ impl IEnumResources { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumResources, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumResources { - type Vtable = IEnumResources_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumResources { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2dd81fe3_a83c_4da9_a330_47249d345ba1); -} #[repr(C)] #[doc(hidden)] pub struct IEnumResources_Vtbl { @@ -13276,9 +12366,8 @@ pub struct IEnumResources_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenumr: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumShellItems(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumShellItems, IEnumShellItems_Vtbl, 0x70629033_e363_4a28_a567_0db78006e6d7); +::windows_core::imp::interface_hierarchy!(IEnumShellItems, ::windows_core::IUnknown); impl IEnumShellItems { pub unsafe fn Next(&self, rgelt: &mut [::core::option::Option], pceltfetched: ::core::option::Option<*mut u32>) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), ::core::mem::transmute(rgelt.as_ptr()), ::core::mem::transmute(pceltfetched.unwrap_or(::std::ptr::null_mut()))).ok() @@ -13294,13 +12383,6 @@ impl IEnumShellItems { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumShellItems, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumShellItems { - type Vtable = IEnumShellItems_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumShellItems { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x70629033_e363_4a28_a567_0db78006e6d7); -} #[repr(C)] #[doc(hidden)] pub struct IEnumShellItems_Vtbl { @@ -13310,9 +12392,8 @@ pub struct IEnumShellItems_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumSyncMgrConflict(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumSyncMgrConflict, IEnumSyncMgrConflict_Vtbl, 0x82705914_dda3_4893_ba99_49de6c8c8036); +::windows_core::imp::interface_hierarchy!(IEnumSyncMgrConflict, ::windows_core::IUnknown); impl IEnumSyncMgrConflict { pub unsafe fn Next(&self, rgelt: &mut [::core::option::Option], pceltfetched: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), ::core::mem::transmute(rgelt.as_ptr()), pceltfetched).ok() @@ -13328,13 +12409,6 @@ impl IEnumSyncMgrConflict { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumSyncMgrConflict, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumSyncMgrConflict { - type Vtable = IEnumSyncMgrConflict_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumSyncMgrConflict { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x82705914_dda3_4893_ba99_49de6c8c8036); -} #[repr(C)] #[doc(hidden)] pub struct IEnumSyncMgrConflict_Vtbl { @@ -13344,9 +12418,8 @@ pub struct IEnumSyncMgrConflict_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumSyncMgrEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumSyncMgrEvents, IEnumSyncMgrEvents_Vtbl, 0xc81a1d4e_8cf7_4683_80e0_bcae88d677b6); +::windows_core::imp::interface_hierarchy!(IEnumSyncMgrEvents, ::windows_core::IUnknown); impl IEnumSyncMgrEvents { pub unsafe fn Next(&self, rgelt: &mut [::core::option::Option], pceltfetched: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), ::core::mem::transmute(rgelt.as_ptr()), pceltfetched).ok() @@ -13362,13 +12435,6 @@ impl IEnumSyncMgrEvents { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumSyncMgrEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumSyncMgrEvents { - type Vtable = IEnumSyncMgrEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumSyncMgrEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc81a1d4e_8cf7_4683_80e0_bcae88d677b6); -} #[repr(C)] #[doc(hidden)] pub struct IEnumSyncMgrEvents_Vtbl { @@ -13378,9 +12444,8 @@ pub struct IEnumSyncMgrEvents_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumSyncMgrSyncItems(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumSyncMgrSyncItems, IEnumSyncMgrSyncItems_Vtbl, 0x54b3abf3_f085_4181_b546_e29c403c726b); +::windows_core::imp::interface_hierarchy!(IEnumSyncMgrSyncItems, ::windows_core::IUnknown); impl IEnumSyncMgrSyncItems { pub unsafe fn Next(&self, rgelt: &mut [::core::option::Option], pceltfetched: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), ::core::mem::transmute(rgelt.as_ptr()), pceltfetched).ok() @@ -13396,13 +12461,6 @@ impl IEnumSyncMgrSyncItems { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumSyncMgrSyncItems, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumSyncMgrSyncItems { - type Vtable = IEnumSyncMgrSyncItems_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumSyncMgrSyncItems { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x54b3abf3_f085_4181_b546_e29c403c726b); -} #[repr(C)] #[doc(hidden)] pub struct IEnumSyncMgrSyncItems_Vtbl { @@ -13412,9 +12470,8 @@ pub struct IEnumSyncMgrSyncItems_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumTravelLogEntry(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumTravelLogEntry, IEnumTravelLogEntry_Vtbl, 0x7ebfdd85_ad18_11d3_a4c5_00c04f72d6b8); +::windows_core::imp::interface_hierarchy!(IEnumTravelLogEntry, ::windows_core::IUnknown); impl IEnumTravelLogEntry { pub unsafe fn Next(&self, rgelt: &mut [::core::option::Option], pceltfetched: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), ::core::mem::transmute(rgelt.as_ptr()), pceltfetched).ok() @@ -13430,13 +12487,6 @@ impl IEnumTravelLogEntry { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumTravelLogEntry, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumTravelLogEntry { - type Vtable = IEnumTravelLogEntry_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumTravelLogEntry { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7ebfdd85_ad18_11d3_a4c5_00c04f72d6b8); -} #[repr(C)] #[doc(hidden)] pub struct IEnumTravelLogEntry_Vtbl { @@ -13446,9 +12496,8 @@ pub struct IEnumTravelLogEntry_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumerableView(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumerableView, IEnumerableView_Vtbl, 0x8c8bf236_1aec_495f_9894_91d57c3c686f); +::windows_core::imp::interface_hierarchy!(IEnumerableView, ::windows_core::IUnknown); impl IEnumerableView { pub unsafe fn SetEnumReadyCallback(&self, percb: P0) -> ::windows_core::Result<()> where @@ -13463,13 +12512,6 @@ impl IEnumerableView { (::windows_core::Interface::vtable(self).CreateEnumIDListFromContents)(::windows_core::Interface::as_raw(self), pidlfolder, dwenumflags, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumerableView, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumerableView { - type Vtable = IEnumerableView_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumerableView { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8c8bf236_1aec_495f_9894_91d57c3c686f); -} #[repr(C)] #[doc(hidden)] pub struct IEnumerableView_Vtbl { @@ -13480,9 +12522,8 @@ pub struct IEnumerableView_Vtbl { #[cfg(not(feature = "Win32_UI_Shell_Common"))] CreateEnumIDListFromContents: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IExecuteCommand(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IExecuteCommand, IExecuteCommand_Vtbl, 0x7f9185b0_cb92_43c5_80a9_92277a4f7b54); +::windows_core::imp::interface_hierarchy!(IExecuteCommand, ::windows_core::IUnknown); impl IExecuteCommand { pub unsafe fn SetKeyState(&self, grfkeystate: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetKeyState)(::windows_core::Interface::as_raw(self), grfkeystate).ok() @@ -13515,13 +12556,6 @@ impl IExecuteCommand { (::windows_core::Interface::vtable(self).Execute)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IExecuteCommand, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IExecuteCommand { - type Vtable = IExecuteCommand_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IExecuteCommand { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7f9185b0_cb92_43c5_80a9_92277a4f7b54); -} #[repr(C)] #[doc(hidden)] pub struct IExecuteCommand_Vtbl { @@ -13534,53 +12568,36 @@ pub struct IExecuteCommand_Vtbl { pub SetDirectory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszdirectory: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub Execute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IExecuteCommandApplicationHostEnvironment(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IExecuteCommandApplicationHostEnvironment, IExecuteCommandApplicationHostEnvironment_Vtbl, 0x18b21aa9_e184_4ff0_9f5e_f882d03771b3); +::windows_core::imp::interface_hierarchy!(IExecuteCommandApplicationHostEnvironment, ::windows_core::IUnknown); impl IExecuteCommandApplicationHostEnvironment { pub unsafe fn GetValue(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetValue)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IExecuteCommandApplicationHostEnvironment, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IExecuteCommandApplicationHostEnvironment { - type Vtable = IExecuteCommandApplicationHostEnvironment_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IExecuteCommandApplicationHostEnvironment { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x18b21aa9_e184_4ff0_9f5e_f882d03771b3); -} #[repr(C)] #[doc(hidden)] pub struct IExecuteCommandApplicationHostEnvironment_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pahe: *mut AHE_TYPE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IExecuteCommandHost(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IExecuteCommandHost, IExecuteCommandHost_Vtbl, 0x4b6832a2_5f04_4c9d_b89d_727a15d103e7); +::windows_core::imp::interface_hierarchy!(IExecuteCommandHost, ::windows_core::IUnknown); impl IExecuteCommandHost { pub unsafe fn GetUIMode(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetUIMode)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IExecuteCommandHost, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IExecuteCommandHost { - type Vtable = IExecuteCommandHost_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IExecuteCommandHost { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4b6832a2_5f04_4c9d_b89d_727a15d103e7); -} #[repr(C)] #[doc(hidden)] pub struct IExecuteCommandHost_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetUIMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, puimode: *mut EC_HOST_UI_MODE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IExpDispSupport(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IExpDispSupport, IExpDispSupport_Vtbl, 0x0d7d1d00_6fc0_11d0_a974_00c04fd705a2); +::windows_core::imp::interface_hierarchy!(IExpDispSupport, ::windows_core::IUnknown); impl IExpDispSupport { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -13599,13 +12616,6 @@ impl IExpDispSupport { (::windows_core::Interface::vtable(self).OnInvoke)(::windows_core::Interface::as_raw(self), dispidmember, iid, lcid, wflags, pdispparams, pvarresult, pexcepinfo, puargerr).ok() } } -::windows_core::imp::interface_hierarchy!(IExpDispSupport, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IExpDispSupport { - type Vtable = IExpDispSupport_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IExpDispSupport { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0d7d1d00_6fc0_11d0_a974_00c04fd705a2); -} #[repr(C)] #[doc(hidden)] pub struct IExpDispSupport_Vtbl { @@ -13623,9 +12633,8 @@ pub struct IExpDispSupport_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] OnInvoke: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IExpDispSupportXP(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IExpDispSupportXP, IExpDispSupportXP_Vtbl, 0x2f0dd58c_f789_4f14_99fb_9293b3c9c212); +::windows_core::imp::interface_hierarchy!(IExpDispSupportXP, ::windows_core::IUnknown); impl IExpDispSupportXP { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -13644,13 +12653,6 @@ impl IExpDispSupportXP { (::windows_core::Interface::vtable(self).OnInvoke)(::windows_core::Interface::as_raw(self), dispidmember, iid, lcid, wflags, pdispparams, pvarresult, pexcepinfo, puargerr).ok() } } -::windows_core::imp::interface_hierarchy!(IExpDispSupportXP, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IExpDispSupportXP { - type Vtable = IExpDispSupportXP_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IExpDispSupportXP { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2f0dd58c_f789_4f14_99fb_9293b3c9c212); -} #[repr(C)] #[doc(hidden)] pub struct IExpDispSupportXP_Vtbl { @@ -13668,9 +12670,8 @@ pub struct IExpDispSupportXP_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] OnInvoke: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IExplorerBrowser(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IExplorerBrowser, IExplorerBrowser_Vtbl, 0xdfd3b6b5_c10c_4be9_85f6_a66969f402f6); +::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: ::core::option::Option<*const FOLDERSETTINGS>) -> ::windows_core::Result<()> where @@ -13740,19 +12741,12 @@ impl IExplorerBrowser { } pub unsafe fn GetCurrentView(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetCurrentView)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IExplorerBrowser, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IExplorerBrowser { - type Vtable = IExplorerBrowser_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IExplorerBrowser { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdfd3b6b5_c10c_4be9_85f6_a66969f402f6); -} #[repr(C)] #[doc(hidden)] pub struct IExplorerBrowser_Vtbl { @@ -13779,9 +12773,8 @@ pub struct IExplorerBrowser_Vtbl { pub RemoveAll: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetCurrentView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IExplorerBrowserEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IExplorerBrowserEvents, IExplorerBrowserEvents_Vtbl, 0x361bbdc7_e6ee_4e13_be58_58e2240c810f); +::windows_core::imp::interface_hierarchy!(IExplorerBrowserEvents, ::windows_core::IUnknown); impl IExplorerBrowserEvents { #[doc = "Required features: `\"Win32_UI_Shell_Common\"`"] #[cfg(feature = "Win32_UI_Shell_Common")] @@ -13807,13 +12800,6 @@ impl IExplorerBrowserEvents { (::windows_core::Interface::vtable(self).OnNavigationFailed)(::windows_core::Interface::as_raw(self), pidlfolder).ok() } } -::windows_core::imp::interface_hierarchy!(IExplorerBrowserEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IExplorerBrowserEvents { - type Vtable = IExplorerBrowserEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IExplorerBrowserEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x361bbdc7_e6ee_4e13_be58_58e2240c810f); -} #[repr(C)] #[doc(hidden)] pub struct IExplorerBrowserEvents_Vtbl { @@ -13835,9 +12821,8 @@ pub struct IExplorerBrowserEvents_Vtbl { #[cfg(not(feature = "Win32_UI_Shell_Common"))] OnNavigationFailed: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IExplorerCommand(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IExplorerCommand, IExplorerCommand_Vtbl, 0xa08ce4d0_fa25_44ab_b57c_c7b1c323e0b9); +::windows_core::imp::interface_hierarchy!(IExplorerCommand, ::windows_core::IUnknown); impl IExplorerCommand { pub unsafe fn GetTitle(&self, psiitemarray: P0) -> ::windows_core::Result<::windows_core::PWSTR> where @@ -13890,13 +12875,6 @@ impl IExplorerCommand { (::windows_core::Interface::vtable(self).EnumSubCommands)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IExplorerCommand, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IExplorerCommand { - type Vtable = IExplorerCommand_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IExplorerCommand { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa08ce4d0_fa25_44ab_b57c_c7b1c323e0b9); -} #[repr(C)] #[doc(hidden)] pub struct IExplorerCommand_Vtbl { @@ -13913,33 +12891,25 @@ pub struct IExplorerCommand_Vtbl { pub GetFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pflags: *mut u32) -> ::windows_core::HRESULT, pub EnumSubCommands: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IExplorerCommandProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IExplorerCommandProvider, IExplorerCommandProvider_Vtbl, 0x64961751_0835_43c0_8ffe_d57686530e64); +::windows_core::imp::interface_hierarchy!(IExplorerCommandProvider, ::windows_core::IUnknown); impl IExplorerCommandProvider { pub unsafe fn GetCommands(&self, punksite: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam<::windows_core::IUnknown>, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) } pub unsafe fn GetCommand(&self, rguidcommandid: *const ::windows_core::GUID) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetCommand)(::windows_core::Interface::as_raw(self), rguidcommandid, &T::IID, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IExplorerCommandProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IExplorerCommandProvider { - type Vtable = IExplorerCommandProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IExplorerCommandProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x64961751_0835_43c0_8ffe_d57686530e64); -} #[repr(C)] #[doc(hidden)] pub struct IExplorerCommandProvider_Vtbl { @@ -13947,9 +12917,8 @@ pub struct IExplorerCommandProvider_Vtbl { pub GetCommands: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punksite: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetCommand: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rguidcommandid: *const ::windows_core::GUID, riid: *const ::windows_core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IExplorerCommandState(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IExplorerCommandState, IExplorerCommandState_Vtbl, 0xbddacb60_7657_47ae_8445_d23e1acf82ae); +::windows_core::imp::interface_hierarchy!(IExplorerCommandState, ::windows_core::IUnknown); impl IExplorerCommandState { pub unsafe fn GetState(&self, psiitemarray: P0, foktobeslow: P1) -> ::windows_core::Result where @@ -13960,44 +12929,28 @@ impl IExplorerCommandState { (::windows_core::Interface::vtable(self).GetState)(::windows_core::Interface::as_raw(self), psiitemarray.into_param().abi(), foktobeslow.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IExplorerCommandState, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IExplorerCommandState { - type Vtable = IExplorerCommandState_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IExplorerCommandState { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbddacb60_7657_47ae_8445_d23e1acf82ae); -} #[repr(C)] #[doc(hidden)] pub struct IExplorerCommandState_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psiitemarray: *mut ::core::ffi::c_void, foktobeslow: super::super::Foundation::BOOL, pcmdstate: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IExplorerPaneVisibility(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IExplorerPaneVisibility, IExplorerPaneVisibility_Vtbl, 0xe07010ec_bc17_44c0_97b0_46c7c95b9edc); +::windows_core::imp::interface_hierarchy!(IExplorerPaneVisibility, ::windows_core::IUnknown); impl IExplorerPaneVisibility { pub unsafe fn GetPaneState(&self, ep: *const ::windows_core::GUID) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetPaneState)(::windows_core::Interface::as_raw(self), ep, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IExplorerPaneVisibility, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IExplorerPaneVisibility { - type Vtable = IExplorerPaneVisibility_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IExplorerPaneVisibility { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe07010ec_bc17_44c0_97b0_46c7c95b9edc); -} #[repr(C)] #[doc(hidden)] pub struct IExplorerPaneVisibility_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetPaneState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ep: *const ::windows_core::GUID, peps: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IExtensionServices(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IExtensionServices, IExtensionServices_Vtbl, 0x79eac9cb_baf9_11ce_8c82_00aa004ba90b); +::windows_core::imp::interface_hierarchy!(IExtensionServices, ::windows_core::IUnknown); impl IExtensionServices { pub unsafe fn SetAdditionalHeaders(&self, pwzadditionalheaders: P0) -> ::windows_core::Result<()> where @@ -14014,13 +12967,6 @@ impl IExtensionServices { (::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::imp::interface_hierarchy!(IExtensionServices, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IExtensionServices { - type Vtable = IExtensionServices_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IExtensionServices { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x79eac9cb_baf9_11ce_8c82_00aa004ba90b); -} #[repr(C)] #[doc(hidden)] pub struct IExtensionServices_Vtbl { @@ -14028,9 +12974,8 @@ pub struct IExtensionServices_Vtbl { pub SetAdditionalHeaders: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwzadditionalheaders: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub SetAuthenticateData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phwnd: super::super::Foundation::HWND, pwzusername: ::windows_core::PCWSTR, pwzpassword: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IExtractIconA(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IExtractIconA, IExtractIconA_Vtbl, 0x000214eb_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IExtractIconA, ::windows_core::IUnknown); impl IExtractIconA { pub unsafe fn GetIconLocation(&self, uflags: u32, psziconfile: &mut [u8], piindex: *mut i32, pwflags: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetIconLocation)(::windows_core::Interface::as_raw(self), uflags, ::core::mem::transmute(psziconfile.as_ptr()), psziconfile.len().try_into().unwrap(), piindex, pwflags).ok() @@ -14044,13 +12989,6 @@ impl IExtractIconA { (::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::imp::interface_hierarchy!(IExtractIconA, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IExtractIconA { - type Vtable = IExtractIconA_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IExtractIconA { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x000214eb_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IExtractIconA_Vtbl { @@ -14061,9 +12999,8 @@ pub struct IExtractIconA_Vtbl { #[cfg(not(feature = "Win32_UI_WindowsAndMessaging"))] Extract: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IExtractIconW(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IExtractIconW, IExtractIconW_Vtbl, 0x000214fa_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IExtractIconW, ::windows_core::IUnknown); impl IExtractIconW { pub unsafe fn GetIconLocation(&self, uflags: u32, psziconfile: &mut [u16], piindex: *mut i32, pwflags: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetIconLocation)(::windows_core::Interface::as_raw(self), uflags, ::core::mem::transmute(psziconfile.as_ptr()), psziconfile.len().try_into().unwrap(), piindex, pwflags).ok() @@ -14077,13 +13014,6 @@ impl IExtractIconW { (::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::imp::interface_hierarchy!(IExtractIconW, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IExtractIconW { - type Vtable = IExtractIconW_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IExtractIconW { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x000214fa_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IExtractIconW_Vtbl { @@ -14094,9 +13024,8 @@ pub struct IExtractIconW_Vtbl { #[cfg(not(feature = "Win32_UI_WindowsAndMessaging"))] Extract: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IExtractImage(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IExtractImage, IExtractImage_Vtbl, 0xbb2e617c_0920_11d1_9a0b_00c04fc2d6c1); +::windows_core::imp::interface_hierarchy!(IExtractImage, ::windows_core::IUnknown); impl IExtractImage { pub unsafe fn GetLocation(&self, pszpathbuffer: &mut [u16], pdwpriority: *mut u32, prgsize: *const super::super::Foundation::SIZE, dwrecclrdepth: u32, pdwflags: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetLocation)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pszpathbuffer.as_ptr()), pszpathbuffer.len().try_into().unwrap(), pdwpriority, prgsize, dwrecclrdepth, pdwflags).ok() @@ -14108,13 +13037,6 @@ impl IExtractImage { (::windows_core::Interface::vtable(self).Extract)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IExtractImage, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IExtractImage { - type Vtable = IExtractImage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IExtractImage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbb2e617c_0920_11d1_9a0b_00c04fc2d6c1); -} #[repr(C)] #[doc(hidden)] pub struct IExtractImage_Vtbl { @@ -14125,9 +13047,8 @@ pub struct IExtractImage_Vtbl { #[cfg(not(feature = "Win32_Graphics_Gdi"))] Extract: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IExtractImage2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IExtractImage2, IExtractImage2_Vtbl, 0x953bb1ee_93b4_11d1_98a3_00c04fb687da); +::windows_core::imp::interface_hierarchy!(IExtractImage2, ::windows_core::IUnknown, IExtractImage); impl IExtractImage2 { pub unsafe fn GetLocation(&self, pszpathbuffer: &mut [u16], pdwpriority: *mut u32, prgsize: *const super::super::Foundation::SIZE, dwrecclrdepth: u32, pdwflags: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.GetLocation)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pszpathbuffer.as_ptr()), pszpathbuffer.len().try_into().unwrap(), pdwpriority, prgsize, dwrecclrdepth, pdwflags).ok() @@ -14143,22 +13064,14 @@ impl IExtractImage2 { (::windows_core::Interface::vtable(self).GetDateStamp)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IExtractImage2, ::windows_core::IUnknown, IExtractImage); -unsafe impl ::windows_core::Interface for IExtractImage2 { - type Vtable = IExtractImage2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IExtractImage2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x953bb1ee_93b4_11d1_98a3_00c04fb687da); -} #[repr(C)] #[doc(hidden)] pub struct IExtractImage2_Vtbl { pub base__: IExtractImage_Vtbl, pub GetDateStamp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdatestamp: *mut super::super::Foundation::FILETIME) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFileDialog(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFileDialog, IFileDialog_Vtbl, 0x42f85136_db7e_439c_85f1_e4075d135fc8); +::windows_core::imp::interface_hierarchy!(IFileDialog, ::windows_core::IUnknown, IModalWindow); impl IFileDialog { pub unsafe fn Show(&self, hwndowner: P0) -> ::windows_core::Result<()> where @@ -14275,13 +13188,6 @@ impl IFileDialog { (::windows_core::Interface::vtable(self).SetFilter)(::windows_core::Interface::as_raw(self), pfilter.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IFileDialog, ::windows_core::IUnknown, IModalWindow); -unsafe impl ::windows_core::Interface for IFileDialog { - type Vtable = IFileDialog_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFileDialog { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x42f85136_db7e_439c_85f1_e4075d135fc8); -} #[repr(C)] #[doc(hidden)] pub struct IFileDialog_Vtbl { @@ -14313,9 +13219,8 @@ pub struct IFileDialog_Vtbl { pub ClearClientData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfilter: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFileDialog2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFileDialog2, IFileDialog2_Vtbl, 0x61744fc7_85b5_4791_a9b0_272276309b13); +::windows_core::imp::interface_hierarchy!(IFileDialog2, ::windows_core::IUnknown, IModalWindow, IFileDialog); impl IFileDialog2 { pub unsafe fn Show(&self, hwndowner: P0) -> ::windows_core::Result<()> where @@ -14444,13 +13349,6 @@ impl IFileDialog2 { (::windows_core::Interface::vtable(self).SetNavigationRoot)(::windows_core::Interface::as_raw(self), psi.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IFileDialog2, ::windows_core::IUnknown, IModalWindow, IFileDialog); -unsafe impl ::windows_core::Interface for IFileDialog2 { - type Vtable = IFileDialog2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFileDialog2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x61744fc7_85b5_4791_a9b0_272276309b13); -} #[repr(C)] #[doc(hidden)] pub struct IFileDialog2_Vtbl { @@ -14458,9 +13356,8 @@ pub struct IFileDialog2_Vtbl { pub SetCancelButtonLabel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszlabel: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub SetNavigationRoot: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psi: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFileDialogControlEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFileDialogControlEvents, IFileDialogControlEvents_Vtbl, 0x36116642_d713_4b97_9b83_7484a9d00433); +::windows_core::imp::interface_hierarchy!(IFileDialogControlEvents, ::windows_core::IUnknown); impl IFileDialogControlEvents { pub unsafe fn OnItemSelected(&self, pfdc: P0, dwidctl: u32, dwiditem: u32) -> ::windows_core::Result<()> where @@ -14488,13 +13385,6 @@ impl IFileDialogControlEvents { (::windows_core::Interface::vtable(self).OnControlActivating)(::windows_core::Interface::as_raw(self), pfdc.into_param().abi(), dwidctl).ok() } } -::windows_core::imp::interface_hierarchy!(IFileDialogControlEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFileDialogControlEvents { - type Vtable = IFileDialogControlEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFileDialogControlEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x36116642_d713_4b97_9b83_7484a9d00433); -} #[repr(C)] #[doc(hidden)] pub struct IFileDialogControlEvents_Vtbl { @@ -14504,9 +13394,8 @@ pub struct IFileDialogControlEvents_Vtbl { pub OnCheckButtonToggled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfdc: *mut ::core::ffi::c_void, dwidctl: u32, bchecked: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub OnControlActivating: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfdc: *mut ::core::ffi::c_void, dwidctl: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFileDialogCustomize(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFileDialogCustomize, IFileDialogCustomize_Vtbl, 0xe6fdd21a_163f_4975_9c8c_a69f1ba37034); +::windows_core::imp::interface_hierarchy!(IFileDialogCustomize, ::windows_core::IUnknown); impl IFileDialogCustomize { pub unsafe fn EnableOpenDropDown(&self, dwidctl: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).EnableOpenDropDown)(::windows_core::Interface::as_raw(self), dwidctl).ok() @@ -14629,13 +13518,6 @@ impl IFileDialogCustomize { (::windows_core::Interface::vtable(self).SetControlItemText)(::windows_core::Interface::as_raw(self), dwidctl, dwiditem, pszlabel.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IFileDialogCustomize, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFileDialogCustomize { - type Vtable = IFileDialogCustomize_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFileDialogCustomize { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe6fdd21a_163f_4975_9c8c_a69f1ba37034); -} #[repr(C)] #[doc(hidden)] pub struct IFileDialogCustomize_Vtbl { @@ -14668,9 +13550,8 @@ pub struct IFileDialogCustomize_Vtbl { pub MakeProminent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwidctl: u32) -> ::windows_core::HRESULT, pub SetControlItemText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwidctl: u32, dwiditem: u32, pszlabel: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFileDialogEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFileDialogEvents, IFileDialogEvents_Vtbl, 0x973510db_7d7f_452b_8975_74a85828d354); +::windows_core::imp::interface_hierarchy!(IFileDialogEvents, ::windows_core::IUnknown); impl IFileDialogEvents { pub unsafe fn OnFileOk(&self, pfd: P0) -> ::windows_core::Result<()> where @@ -14720,13 +13601,6 @@ impl IFileDialogEvents { (::windows_core::Interface::vtable(self).OnOverwrite)(::windows_core::Interface::as_raw(self), pfd.into_param().abi(), psi.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IFileDialogEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFileDialogEvents { - type Vtable = IFileDialogEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFileDialogEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x973510db_7d7f_452b_8975_74a85828d354); -} #[repr(C)] #[doc(hidden)] pub struct IFileDialogEvents_Vtbl { @@ -14739,9 +13613,8 @@ pub struct IFileDialogEvents_Vtbl { pub OnTypeChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfd: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub OnOverwrite: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfd: *mut ::core::ffi::c_void, psi: *mut ::core::ffi::c_void, presponse: *mut FDE_OVERWRITE_RESPONSE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFileIsInUse(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFileIsInUse, IFileIsInUse_Vtbl, 0x64a1cbf0_3a1a_4461_9158_376969693950); +::windows_core::imp::interface_hierarchy!(IFileIsInUse, ::windows_core::IUnknown); impl IFileIsInUse { pub unsafe fn GetAppName(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); @@ -14763,13 +13636,6 @@ impl IFileIsInUse { (::windows_core::Interface::vtable(self).CloseFile)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IFileIsInUse, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFileIsInUse { - type Vtable = IFileIsInUse_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFileIsInUse { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x64a1cbf0_3a1a_4461_9158_376969693950); -} #[repr(C)] #[doc(hidden)] pub struct IFileIsInUse_Vtbl { @@ -14780,9 +13646,8 @@ pub struct IFileIsInUse_Vtbl { pub GetSwitchToHWND: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phwnd: *mut super::super::Foundation::HWND) -> ::windows_core::HRESULT, pub CloseFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFileOpenDialog(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFileOpenDialog, IFileOpenDialog_Vtbl, 0xd57c7288_d4ad_4768_be02_9d969532d960); +::windows_core::imp::interface_hierarchy!(IFileOpenDialog, ::windows_core::IUnknown, IModalWindow, IFileDialog); impl IFileOpenDialog { pub unsafe fn Show(&self, hwndowner: P0) -> ::windows_core::Result<()> where @@ -14907,13 +13772,6 @@ impl IFileOpenDialog { (::windows_core::Interface::vtable(self).GetSelectedItems)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IFileOpenDialog, ::windows_core::IUnknown, IModalWindow, IFileDialog); -unsafe impl ::windows_core::Interface for IFileOpenDialog { - type Vtable = IFileOpenDialog_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFileOpenDialog { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd57c7288_d4ad_4768_be02_9d969532d960); -} #[repr(C)] #[doc(hidden)] pub struct IFileOpenDialog_Vtbl { @@ -14921,9 +13779,8 @@ pub struct IFileOpenDialog_Vtbl { pub GetResults: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetSelectedItems: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppsai: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFileOperation(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFileOperation, IFileOperation_Vtbl, 0x947aab5f_0a5c_4c13_b4d6_4bf7836fc9f8); +::windows_core::imp::interface_hierarchy!(IFileOperation, ::windows_core::IUnknown); impl IFileOperation { pub unsafe fn Advise(&self, pfops: P0) -> ::windows_core::Result where @@ -15053,13 +13910,6 @@ impl IFileOperation { (::windows_core::Interface::vtable(self).GetAnyOperationsAborted)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IFileOperation, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFileOperation { - type Vtable = IFileOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFileOperation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x947aab5f_0a5c_4c13_b4d6_4bf7836fc9f8); -} #[repr(C)] #[doc(hidden)] pub struct IFileOperation_Vtbl { @@ -15088,9 +13938,8 @@ pub struct IFileOperation_Vtbl { pub PerformOperations: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetAnyOperationsAborted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfanyoperationsaborted: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFileOperation2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFileOperation2, IFileOperation2_Vtbl, 0xcd8f23c1_8f61_4916_909d_55bdd0918753); +::windows_core::imp::interface_hierarchy!(IFileOperation2, ::windows_core::IUnknown, IFileOperation); impl IFileOperation2 { pub unsafe fn Advise(&self, pfops: P0) -> ::windows_core::Result where @@ -15223,22 +14072,14 @@ impl IFileOperation2 { (::windows_core::Interface::vtable(self).SetOperationFlags2)(::windows_core::Interface::as_raw(self), operationflags2).ok() } } -::windows_core::imp::interface_hierarchy!(IFileOperation2, ::windows_core::IUnknown, IFileOperation); -unsafe impl ::windows_core::Interface for IFileOperation2 { - type Vtable = IFileOperation2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFileOperation2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcd8f23c1_8f61_4916_909d_55bdd0918753); -} #[repr(C)] #[doc(hidden)] pub struct IFileOperation2_Vtbl { pub base__: IFileOperation_Vtbl, pub SetOperationFlags2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, operationflags2: FILE_OPERATION_FLAGS2) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFileOperationProgressSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFileOperationProgressSink, IFileOperationProgressSink_Vtbl, 0x04b0f1a7_9490_44bc_96e1_4296a31252e2); +::windows_core::imp::interface_hierarchy!(IFileOperationProgressSink, ::windows_core::IUnknown); impl IFileOperationProgressSink { pub unsafe fn StartOperations(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).StartOperations)(::windows_core::Interface::as_raw(self)).ok() @@ -15337,13 +14178,6 @@ impl IFileOperationProgressSink { (::windows_core::Interface::vtable(self).ResumeTimer)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IFileOperationProgressSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFileOperationProgressSink { - type Vtable = IFileOperationProgressSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFileOperationProgressSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x04b0f1a7_9490_44bc_96e1_4296a31252e2); -} #[repr(C)] #[doc(hidden)] pub struct IFileOperationProgressSink_Vtbl { @@ -15365,9 +14199,8 @@ pub struct IFileOperationProgressSink_Vtbl { pub PauseTimer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ResumeTimer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFileSaveDialog(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFileSaveDialog, IFileSaveDialog_Vtbl, 0x84bccd23_5fde_4cdb_aea4_af64b83d78ab); +::windows_core::imp::interface_hierarchy!(IFileSaveDialog, ::windows_core::IUnknown, IModalWindow, IFileDialog); impl IFileSaveDialog { pub unsafe fn Show(&self, hwndowner: P0) -> ::windows_core::Result<()> where @@ -15524,13 +14357,6 @@ impl IFileSaveDialog { (::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::imp::interface_hierarchy!(IFileSaveDialog, ::windows_core::IUnknown, IModalWindow, IFileDialog); -unsafe impl ::windows_core::Interface for IFileSaveDialog { - type Vtable = IFileSaveDialog_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFileSaveDialog { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x84bccd23_5fde_4cdb_aea4_af64b83d78ab); -} #[repr(C)] #[doc(hidden)] pub struct IFileSaveDialog_Vtbl { @@ -15553,11 +14379,15 @@ pub struct IFileSaveDialog_Vtbl { #[cfg(not(feature = "Win32_UI_Shell_PropertiesSystem"))] ApplyProperties: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFileSearchBand(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFileSearchBand, + IFileSearchBand_Vtbl, + 0x2d91eea1_9932_11d2_be86_00a0c9a83da1 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFileSearchBand, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFileSearchBand { pub unsafe fn SetFocus(&self) -> ::windows_core::Result<()> { @@ -15589,16 +14419,6 @@ impl IFileSearchBand { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFileSearchBand, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFileSearchBand { - type Vtable = IFileSearchBand_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFileSearchBand { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2d91eea1_9932_11d2_be86_00a0c9a83da1); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFileSearchBand_Vtbl { @@ -15618,9 +14438,8 @@ pub struct IFileSearchBand_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] QueryFile: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFileSyncMergeHandler(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFileSyncMergeHandler, IFileSyncMergeHandler_Vtbl, 0xd97b5aac_c792_433c_975d_35c4eadc7a9d); +::windows_core::imp::interface_hierarchy!(IFileSyncMergeHandler, ::windows_core::IUnknown); impl IFileSyncMergeHandler { pub unsafe fn Merge(&self, localfilepath: P0, serverfilepath: P1) -> ::windows_core::Result where @@ -15640,13 +14459,6 @@ impl IFileSyncMergeHandler { (::windows_core::Interface::vtable(self).ShowResolveConflictUIAsync)(::windows_core::Interface::as_raw(self), localfilepath.into_param().abi(), monitortodisplayon.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IFileSyncMergeHandler, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFileSyncMergeHandler { - type Vtable = IFileSyncMergeHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFileSyncMergeHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd97b5aac_c792_433c_975d_35c4eadc7a9d); -} #[repr(C)] #[doc(hidden)] pub struct IFileSyncMergeHandler_Vtbl { @@ -15657,9 +14469,8 @@ pub struct IFileSyncMergeHandler_Vtbl { #[cfg(not(feature = "Win32_Graphics_Gdi"))] ShowResolveConflictUIAsync: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFileSystemBindData(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFileSystemBindData, IFileSystemBindData_Vtbl, 0x01e18d10_4d8b_11d2_855d_006008059367); +::windows_core::imp::interface_hierarchy!(IFileSystemBindData, ::windows_core::IUnknown); impl IFileSystemBindData { #[doc = "Required features: `\"Win32_Storage_FileSystem\"`"] #[cfg(feature = "Win32_Storage_FileSystem")] @@ -15672,13 +14483,6 @@ impl IFileSystemBindData { (::windows_core::Interface::vtable(self).GetFindData)(::windows_core::Interface::as_raw(self), pfd).ok() } } -::windows_core::imp::interface_hierarchy!(IFileSystemBindData, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFileSystemBindData { - type Vtable = IFileSystemBindData_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFileSystemBindData { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x01e18d10_4d8b_11d2_855d_006008059367); -} #[repr(C)] #[doc(hidden)] pub struct IFileSystemBindData_Vtbl { @@ -15692,9 +14496,8 @@ pub struct IFileSystemBindData_Vtbl { #[cfg(not(feature = "Win32_Storage_FileSystem"))] GetFindData: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFileSystemBindData2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFileSystemBindData2, IFileSystemBindData2_Vtbl, 0x3acf075f_71db_4afa_81f0_3fc4fdf2a5b8); +::windows_core::imp::interface_hierarchy!(IFileSystemBindData2, ::windows_core::IUnknown, IFileSystemBindData); impl IFileSystemBindData2 { #[doc = "Required features: `\"Win32_Storage_FileSystem\"`"] #[cfg(feature = "Win32_Storage_FileSystem")] @@ -15721,13 +14524,6 @@ impl IFileSystemBindData2 { (::windows_core::Interface::vtable(self).GetJunctionCLSID)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IFileSystemBindData2, ::windows_core::IUnknown, IFileSystemBindData); -unsafe impl ::windows_core::Interface for IFileSystemBindData2 { - type Vtable = IFileSystemBindData2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFileSystemBindData2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3acf075f_71db_4afa_81f0_3fc4fdf2a5b8); -} #[repr(C)] #[doc(hidden)] pub struct IFileSystemBindData2_Vtbl { @@ -15737,9 +14533,8 @@ pub struct IFileSystemBindData2_Vtbl { pub SetJunctionCLSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, clsid: *const ::windows_core::GUID) -> ::windows_core::HRESULT, pub GetJunctionCLSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pclsid: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFolderBandPriv(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFolderBandPriv, IFolderBandPriv_Vtbl, 0x47c01f95_e185_412c_b5c5_4f27df965aea); +::windows_core::imp::interface_hierarchy!(IFolderBandPriv, ::windows_core::IUnknown); impl IFolderBandPriv { pub unsafe fn SetCascade(&self, fcascade: P0) -> ::windows_core::Result<()> where @@ -15766,13 +14561,6 @@ impl IFolderBandPriv { (::windows_core::Interface::vtable(self).SetNoText)(::windows_core::Interface::as_raw(self), fnotext.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IFolderBandPriv, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFolderBandPriv { - type Vtable = IFolderBandPriv_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFolderBandPriv { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x47c01f95_e185_412c_b5c5_4f27df965aea); -} #[repr(C)] #[doc(hidden)] pub struct IFolderBandPriv_Vtbl { @@ -15782,9 +14570,8 @@ pub struct IFolderBandPriv_Vtbl { pub SetNoIcons: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fnoicons: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub SetNoText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fnotext: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFolderFilter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFolderFilter, IFolderFilter_Vtbl, 0x9cc22886_dc8e_11d2_b1d0_00c04f8eeb3e); +::windows_core::imp::interface_hierarchy!(IFolderFilter, ::windows_core::IUnknown); impl IFolderFilter { #[doc = "Required features: `\"Win32_UI_Shell_Common\"`"] #[cfg(feature = "Win32_UI_Shell_Common")] @@ -15803,13 +14590,6 @@ impl IFolderFilter { (::windows_core::Interface::vtable(self).GetEnumFlags)(::windows_core::Interface::as_raw(self), psf.into_param().abi(), pidlfolder, phwnd, pgrfflags).ok() } } -::windows_core::imp::interface_hierarchy!(IFolderFilter, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFolderFilter { - type Vtable = IFolderFilter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFolderFilter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9cc22886_dc8e_11d2_b1d0_00c04f8eeb3e); -} #[repr(C)] #[doc(hidden)] pub struct IFolderFilter_Vtbl { @@ -15823,9 +14603,8 @@ pub struct IFolderFilter_Vtbl { #[cfg(not(feature = "Win32_UI_Shell_Common"))] GetEnumFlags: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFolderFilterSite(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFolderFilterSite, IFolderFilterSite_Vtbl, 0xc0a651f5_b48b_11d2_b5ed_006097c686f6); +::windows_core::imp::interface_hierarchy!(IFolderFilterSite, ::windows_core::IUnknown); impl IFolderFilterSite { pub unsafe fn SetFilter(&self, punk: P0) -> ::windows_core::Result<()> where @@ -15834,22 +14613,14 @@ impl IFolderFilterSite { (::windows_core::Interface::vtable(self).SetFilter)(::windows_core::Interface::as_raw(self), punk.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IFolderFilterSite, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFolderFilterSite { - type Vtable = IFolderFilterSite_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFolderFilterSite { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc0a651f5_b48b_11d2_b5ed_006097c686f6); -} #[repr(C)] #[doc(hidden)] pub struct IFolderFilterSite_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub SetFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punk: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFolderView(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFolderView, IFolderView_Vtbl, 0xcde725b0_ccc9_4519_917e_325d72fab4ce); +::windows_core::imp::interface_hierarchy!(IFolderView, ::windows_core::IUnknown); impl IFolderView { pub unsafe fn GetCurrentViewMode(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -15860,7 +14631,7 @@ impl IFolderView { } pub unsafe fn GetFolder(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetFolder)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -15877,7 +14648,7 @@ impl IFolderView { } pub unsafe fn Items(&self, uflags: _SVGIO) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).Items)(::windows_core::Interface::as_raw(self), uflags.0 as _, &T::IID, &mut result__).from_abi(result__) @@ -15915,13 +14686,6 @@ impl IFolderView { (::windows_core::Interface::vtable(self).SelectAndPositionItems)(::windows_core::Interface::as_raw(self), cidl, apidl, ::core::mem::transmute(apt.unwrap_or(::std::ptr::null())), dwflags).ok() } } -::windows_core::imp::interface_hierarchy!(IFolderView, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFolderView { - type Vtable = IFolderView_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFolderView { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcde725b0_ccc9_4519_917e_325d72fab4ce); -} #[repr(C)] #[doc(hidden)] pub struct IFolderView_Vtbl { @@ -15950,9 +14714,8 @@ pub struct IFolderView_Vtbl { #[cfg(not(feature = "Win32_UI_Shell_Common"))] SelectAndPositionItems: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFolderView2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFolderView2, IFolderView2_Vtbl, 0x1af3a467_214f_4298_908e_06b03e0b39f9); +::windows_core::imp::interface_hierarchy!(IFolderView2, ::windows_core::IUnknown, IFolderView); impl IFolderView2 { pub unsafe fn GetCurrentViewMode(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -15963,7 +14726,7 @@ impl IFolderView2 { } pub unsafe fn GetFolder(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.GetFolder)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -15980,7 +14743,7 @@ impl IFolderView2 { } pub unsafe fn Items(&self, uflags: _SVGIO) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.Items)(::windows_core::Interface::as_raw(self), uflags.0 as _, &T::IID, &mut result__).from_abi(result__) @@ -16086,7 +14849,7 @@ impl IFolderView2 { } pub unsafe fn GetItem(&self, iitem: i32) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetItem)(::windows_core::Interface::as_raw(self), iitem, &T::IID, &mut result__).from_abi(result__) @@ -16147,13 +14910,6 @@ impl IFolderView2 { (::windows_core::Interface::vtable(self).DoRename)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IFolderView2, ::windows_core::IUnknown, IFolderView); -unsafe impl ::windows_core::Interface for IFolderView2 { - type Vtable = IFolderView2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFolderView2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1af3a467_214f_4298_908e_06b03e0b39f9); -} #[repr(C)] #[doc(hidden)] pub struct IFolderView2_Vtbl { @@ -16211,9 +14967,8 @@ pub struct IFolderView2_Vtbl { pub IsMoveInSameFolder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub DoRename: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFolderViewHost(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFolderViewHost, IFolderViewHost_Vtbl, 0x1ea58f02_d55a_411d_b09e_9e65ac21605b); +::windows_core::imp::interface_hierarchy!(IFolderViewHost, ::windows_core::IUnknown); impl IFolderViewHost { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -16225,13 +14980,6 @@ impl IFolderViewHost { (::windows_core::Interface::vtable(self).Initialize)(::windows_core::Interface::as_raw(self), hwndparent.into_param().abi(), pdo.into_param().abi(), prc).ok() } } -::windows_core::imp::interface_hierarchy!(IFolderViewHost, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFolderViewHost { - type Vtable = IFolderViewHost_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFolderViewHost { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1ea58f02_d55a_411d_b09e_9e65ac21605b); -} #[repr(C)] #[doc(hidden)] pub struct IFolderViewHost_Vtbl { @@ -16241,11 +14989,15 @@ pub struct IFolderViewHost_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Initialize: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFolderViewOC(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IFolderViewOC, + IFolderViewOC_Vtbl, + 0x9ba05970_f6a8_11cf_a442_00a0c90a8f39 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IFolderViewOC, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IFolderViewOC { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -16258,16 +15010,6 @@ impl IFolderViewOC { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IFolderViewOC, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IFolderViewOC { - type Vtable = IFolderViewOC_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IFolderViewOC { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9ba05970_f6a8_11cf_a442_00a0c90a8f39); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IFolderViewOC_Vtbl { @@ -16277,9 +15019,8 @@ pub struct IFolderViewOC_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] SetFolderView: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFolderViewOptions(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFolderViewOptions, IFolderViewOptions_Vtbl, 0x3cc974d2_b302_4d36_ad3e_06d93f695d3f); +::windows_core::imp::interface_hierarchy!(IFolderViewOptions, ::windows_core::IUnknown); impl IFolderViewOptions { pub unsafe fn SetFolderViewOptions(&self, fvomask: FOLDERVIEWOPTIONS, fvoflags: FOLDERVIEWOPTIONS) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetFolderViewOptions)(::windows_core::Interface::as_raw(self), fvomask, fvoflags).ok() @@ -16289,13 +15030,6 @@ impl IFolderViewOptions { (::windows_core::Interface::vtable(self).GetFolderViewOptions)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IFolderViewOptions, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFolderViewOptions { - type Vtable = IFolderViewOptions_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFolderViewOptions { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3cc974d2_b302_4d36_ad3e_06d93f695d3f); -} #[repr(C)] #[doc(hidden)] pub struct IFolderViewOptions_Vtbl { @@ -16303,13 +15037,12 @@ pub struct IFolderViewOptions_Vtbl { pub SetFolderViewOptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fvomask: FOLDERVIEWOPTIONS, fvoflags: FOLDERVIEWOPTIONS) -> ::windows_core::HRESULT, pub GetFolderViewOptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfvoflags: *mut FOLDERVIEWOPTIONS) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFolderViewSettings(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFolderViewSettings, IFolderViewSettings_Vtbl, 0xae8c987d_8797_4ed3_be72_2a47dd938db0); +::windows_core::imp::interface_hierarchy!(IFolderViewSettings, ::windows_core::IUnknown); impl IFolderViewSettings { pub unsafe fn GetColumnPropertyList(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetColumnPropertyList)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -16340,13 +15073,6 @@ impl IFolderViewSettings { (::windows_core::Interface::vtable(self).GetGroupSubsetCount)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IFolderViewSettings, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFolderViewSettings { - type Vtable = IFolderViewSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFolderViewSettings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xae8c987d_8797_4ed3_be72_2a47dd938db0); -} #[repr(C)] #[doc(hidden)] pub struct IFolderViewSettings_Vtbl { @@ -16365,9 +15091,8 @@ pub struct IFolderViewSettings_Vtbl { GetSortColumns: usize, pub GetGroupSubsetCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcvisiblerows: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFrameworkInputPane(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFrameworkInputPane, IFrameworkInputPane_Vtbl, 0x5752238b_24f0_495a_82f1_2fd593056796); +::windows_core::imp::interface_hierarchy!(IFrameworkInputPane, ::windows_core::IUnknown); impl IFrameworkInputPane { pub unsafe fn Advise(&self, pwindow: P0, phandler: P1) -> ::windows_core::Result where @@ -16393,13 +15118,6 @@ impl IFrameworkInputPane { (::windows_core::Interface::vtable(self).Location)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IFrameworkInputPane, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFrameworkInputPane { - type Vtable = IFrameworkInputPane_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFrameworkInputPane { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5752238b_24f0_495a_82f1_2fd593056796); -} #[repr(C)] #[doc(hidden)] pub struct IFrameworkInputPane_Vtbl { @@ -16409,9 +15127,8 @@ pub struct IFrameworkInputPane_Vtbl { pub Unadvise: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwcookie: u32) -> ::windows_core::HRESULT, pub Location: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prcinputpanescreenlocation: *mut super::super::Foundation::RECT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IFrameworkInputPaneHandler(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IFrameworkInputPaneHandler, IFrameworkInputPaneHandler_Vtbl, 0x226c537b_1e76_4d9e_a760_33db29922f18); +::windows_core::imp::interface_hierarchy!(IFrameworkInputPaneHandler, ::windows_core::IUnknown); impl IFrameworkInputPaneHandler { pub unsafe fn Showing(&self, prcinputpanescreenlocation: *const super::super::Foundation::RECT, fensurefocusedelementinview: P0) -> ::windows_core::Result<()> where @@ -16426,13 +15143,6 @@ impl IFrameworkInputPaneHandler { (::windows_core::Interface::vtable(self).Hiding)(::windows_core::Interface::as_raw(self), fensurefocusedelementinview.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IFrameworkInputPaneHandler, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IFrameworkInputPaneHandler { - type Vtable = IFrameworkInputPaneHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IFrameworkInputPaneHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x226c537b_1e76_4d9e_a760_33db29922f18); -} #[repr(C)] #[doc(hidden)] pub struct IFrameworkInputPaneHandler_Vtbl { @@ -16440,30 +15150,21 @@ pub struct IFrameworkInputPaneHandler_Vtbl { pub Showing: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prcinputpanescreenlocation: *const super::super::Foundation::RECT, fensurefocusedelementinview: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub Hiding: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fensurefocusedelementinview: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGetServiceIds(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IGetServiceIds, IGetServiceIds_Vtbl, 0x4a073526_6103_4e21_b7bc_f519d1524e5d); +::windows_core::imp::interface_hierarchy!(IGetServiceIds, ::windows_core::IUnknown); impl IGetServiceIds { pub unsafe fn GetServiceIds(&self, serviceidcount: *mut u32, serviceids: *mut *mut ::windows_core::GUID) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetServiceIds)(::windows_core::Interface::as_raw(self), serviceidcount, serviceids).ok() } } -::windows_core::imp::interface_hierarchy!(IGetServiceIds, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGetServiceIds { - type Vtable = IGetServiceIds_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGetServiceIds { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4a073526_6103_4e21_b7bc_f519d1524e5d); -} #[repr(C)] #[doc(hidden)] pub struct IGetServiceIds_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetServiceIds: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, serviceidcount: *mut u32, serviceids: *mut *mut ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHWEventHandler(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IHWEventHandler, IHWEventHandler_Vtbl, 0xc1fb73d0_ec3a_4ba2_b512_8cdb9187b6d1); +::windows_core::imp::interface_hierarchy!(IHWEventHandler, ::windows_core::IUnknown); impl IHWEventHandler { pub unsafe fn Initialize(&self, pszparams: P0) -> ::windows_core::Result<()> where @@ -16492,13 +15193,6 @@ impl IHWEventHandler { (::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::imp::interface_hierarchy!(IHWEventHandler, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHWEventHandler { - type Vtable = IHWEventHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHWEventHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc1fb73d0_ec3a_4ba2_b512_8cdb9187b6d1); -} #[repr(C)] #[doc(hidden)] pub struct IHWEventHandler_Vtbl { @@ -16510,9 +15204,8 @@ pub struct IHWEventHandler_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] HandleEventWithContent: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHWEventHandler2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IHWEventHandler2, IHWEventHandler2_Vtbl, 0xcfcc809f_295d_42e8_9ffc_424b33c487e6); +::windows_core::imp::interface_hierarchy!(IHWEventHandler2, ::windows_core::IUnknown, IHWEventHandler); impl IHWEventHandler2 { pub unsafe fn Initialize(&self, pszparams: P0) -> ::windows_core::Result<()> where @@ -16550,22 +15243,14 @@ impl IHWEventHandler2 { (::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::imp::interface_hierarchy!(IHWEventHandler2, ::windows_core::IUnknown, IHWEventHandler); -unsafe impl ::windows_core::Interface for IHWEventHandler2 { - type Vtable = IHWEventHandler2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHWEventHandler2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcfcc809f_295d_42e8_9ffc_424b33c487e6); -} #[repr(C)] #[doc(hidden)] pub struct IHWEventHandler2_Vtbl { pub base__: IHWEventHandler_Vtbl, pub HandleEventWithHWND: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszdeviceid: ::windows_core::PCWSTR, pszaltdeviceid: ::windows_core::PCWSTR, pszeventtype: ::windows_core::PCWSTR, hwndowner: super::super::Foundation::HWND) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHandlerActivationHost(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IHandlerActivationHost, IHandlerActivationHost_Vtbl, 0x35094a87_8bb1_4237_96c6_c417eebdb078); +::windows_core::imp::interface_hierarchy!(IHandlerActivationHost, ::windows_core::IUnknown); impl IHandlerActivationHost { pub unsafe fn BeforeCoCreateInstance(&self, clsidhandler: *const ::windows_core::GUID, itemsbeingactivated: P0, handlerinfo: P1) -> ::windows_core::Result<()> where @@ -16583,13 +15268,6 @@ impl IHandlerActivationHost { (::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::imp::interface_hierarchy!(IHandlerActivationHost, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHandlerActivationHost { - type Vtable = IHandlerActivationHost_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHandlerActivationHost { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x35094a87_8bb1_4237_96c6_c417eebdb078); -} #[repr(C)] #[doc(hidden)] pub struct IHandlerActivationHost_Vtbl { @@ -16597,9 +15275,8 @@ pub struct IHandlerActivationHost_Vtbl { pub BeforeCoCreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, clsidhandler: *const ::windows_core::GUID, itemsbeingactivated: *mut ::core::ffi::c_void, handlerinfo: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub BeforeCreateProcess: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, applicationpath: ::windows_core::PCWSTR, commandline: ::windows_core::PCWSTR, handlerinfo: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHandlerInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IHandlerInfo, IHandlerInfo_Vtbl, 0x997706ef_f880_453b_8118_39e1a2d2655a); +::windows_core::imp::interface_hierarchy!(IHandlerInfo, ::windows_core::IUnknown); impl IHandlerInfo { pub unsafe fn GetApplicationDisplayName(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); @@ -16614,13 +15291,6 @@ impl IHandlerInfo { (::windows_core::Interface::vtable(self).GetApplicationIconReference)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IHandlerInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHandlerInfo { - type Vtable = IHandlerInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHandlerInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x997706ef_f880_453b_8118_39e1a2d2655a); -} #[repr(C)] #[doc(hidden)] pub struct IHandlerInfo_Vtbl { @@ -16629,9 +15299,8 @@ pub struct IHandlerInfo_Vtbl { pub GetApplicationPublisher: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, pub GetApplicationIconReference: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHandlerInfo2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IHandlerInfo2, IHandlerInfo2_Vtbl, 0x31cca04c_04d3_4ea9_90de_97b15e87a532); +::windows_core::imp::interface_hierarchy!(IHandlerInfo2, ::windows_core::IUnknown, IHandlerInfo); impl IHandlerInfo2 { pub unsafe fn GetApplicationDisplayName(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); @@ -16650,22 +15319,14 @@ impl IHandlerInfo2 { (::windows_core::Interface::vtable(self).GetApplicationId)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IHandlerInfo2, ::windows_core::IUnknown, IHandlerInfo); -unsafe impl ::windows_core::Interface for IHandlerInfo2 { - type Vtable = IHandlerInfo2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHandlerInfo2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x31cca04c_04d3_4ea9_90de_97b15e87a532); -} #[repr(C)] #[doc(hidden)] pub struct IHandlerInfo2_Vtbl { pub base__: IHandlerInfo_Vtbl, pub GetApplicationId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHlink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IHlink, IHlink_Vtbl, 0x79eac9c3_baf9_11ce_8c82_00aa004ba90b); +::windows_core::imp::interface_hierarchy!(IHlink, ::windows_core::IUnknown); impl IHlink { pub unsafe fn SetHlinkSite(&self, pihlsite: P0, dwsitedata: u32) -> ::windows_core::Result<()> where @@ -16745,13 +15406,6 @@ impl IHlink { (::windows_core::Interface::vtable(self).GetAdditionalParams)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IHlink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHlink { - type Vtable = IHlink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHlink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x79eac9c3_baf9_11ce_8c82_00aa004ba90b); -} #[repr(C)] #[doc(hidden)] pub struct IHlink_Vtbl { @@ -16780,9 +15434,8 @@ pub struct IHlink_Vtbl { pub SetAdditionalParams: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwzadditionalparams: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub GetAdditionalParams: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppwzadditionalparams: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHlinkBrowseContext(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IHlinkBrowseContext, IHlinkBrowseContext_Vtbl, 0x79eac9c7_baf9_11ce_8c82_00aa004ba90b); +::windows_core::imp::interface_hierarchy!(IHlinkBrowseContext, ::windows_core::IUnknown); impl IHlinkBrowseContext { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -16869,13 +15522,6 @@ impl IHlinkBrowseContext { (::windows_core::Interface::vtable(self).Close)(::windows_core::Interface::as_raw(self), reserved).ok() } } -::windows_core::imp::interface_hierarchy!(IHlinkBrowseContext, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHlinkBrowseContext { - type Vtable = IHlinkBrowseContext_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHlinkBrowseContext { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x79eac9c7_baf9_11ce_8c82_00aa004ba90b); -} #[repr(C)] #[doc(hidden)] pub struct IHlinkBrowseContext_Vtbl { @@ -16910,9 +15556,8 @@ pub struct IHlinkBrowseContext_Vtbl { pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, piunkouter: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppiunkobj: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Close: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, reserved: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHlinkFrame(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IHlinkFrame, IHlinkFrame_Vtbl, 0x79eac9c5_baf9_11ce_8c82_00aa004ba90b); +::windows_core::imp::interface_hierarchy!(IHlinkFrame, ::windows_core::IUnknown); impl IHlinkFrame { pub unsafe fn SetBrowseContext(&self, pihlbc: P0) -> ::windows_core::Result<()> where @@ -16955,13 +15600,6 @@ impl IHlinkFrame { (::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::imp::interface_hierarchy!(IHlinkFrame, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHlinkFrame { - type Vtable = IHlinkFrame_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHlinkFrame { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x79eac9c5_baf9_11ce_8c82_00aa004ba90b); -} #[repr(C)] #[doc(hidden)] pub struct IHlinkFrame_Vtbl { @@ -16981,9 +15619,8 @@ pub struct IHlinkFrame_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] UpdateHlink: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHlinkSite(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IHlinkSite, IHlinkSite_Vtbl, 0x79eac9c2_baf9_11ce_8c82_00aa004ba90b); +::windows_core::imp::interface_hierarchy!(IHlinkSite, ::windows_core::IUnknown); impl IHlinkSite { pub unsafe fn QueryService(&self, dwsitedata: u32, guidservice: *const ::windows_core::GUID, riid: *const ::windows_core::GUID) -> ::windows_core::Result<::windows_core::IUnknown> { let mut result__ = ::std::mem::zeroed(); @@ -17005,13 +15642,6 @@ impl IHlinkSite { (::windows_core::Interface::vtable(self).OnNavigationComplete)(::windows_core::Interface::as_raw(self), dwsitedata, dwreserved, hrerror, pwzerror.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IHlinkSite, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHlinkSite { - type Vtable = IHlinkSite_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHlinkSite { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x79eac9c2_baf9_11ce_8c82_00aa004ba90b); -} #[repr(C)] #[doc(hidden)] pub struct IHlinkSite_Vtbl { @@ -17024,9 +15654,8 @@ pub struct IHlinkSite_Vtbl { pub ReadyToNavigate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwsitedata: u32, dwreserved: u32) -> ::windows_core::HRESULT, pub OnNavigationComplete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwsitedata: u32, dwreserved: u32, hrerror: ::windows_core::HRESULT, pwzerror: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHlinkTarget(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IHlinkTarget, IHlinkTarget_Vtbl, 0x79eac9c4_baf9_11ce_8c82_00aa004ba90b); +::windows_core::imp::interface_hierarchy!(IHlinkTarget, ::windows_core::IUnknown); impl IHlinkTarget { pub unsafe fn SetBrowseContext(&self, pihlbc: P0) -> ::windows_core::Result<()> where @@ -17061,13 +15690,6 @@ impl IHlinkTarget { (::windows_core::Interface::vtable(self).GetFriendlyName)(::windows_core::Interface::as_raw(self), pwzlocation.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IHlinkTarget, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHlinkTarget { - type Vtable = IHlinkTarget_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHlinkTarget { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x79eac9c4_baf9_11ce_8c82_00aa004ba90b); -} #[repr(C)] #[doc(hidden)] pub struct IHlinkTarget_Vtbl { @@ -17081,9 +15703,8 @@ pub struct IHlinkTarget_Vtbl { GetMoniker: usize, pub GetFriendlyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwzlocation: ::windows_core::PCWSTR, ppwzfriendlyname: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHomeGroup(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IHomeGroup, IHomeGroup_Vtbl, 0x7a3bd1d9_35a9_4fb3_a467_f48cac35e2d0); +::windows_core::imp::interface_hierarchy!(IHomeGroup, ::windows_core::IUnknown); impl IHomeGroup { pub unsafe fn IsMember(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -17097,13 +15718,6 @@ impl IHomeGroup { (::windows_core::Interface::vtable(self).ShowSharingWizard)(::windows_core::Interface::as_raw(self), owner.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IHomeGroup, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHomeGroup { - type Vtable = IHomeGroup_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHomeGroup { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7a3bd1d9_35a9_4fb3_a467_f48cac35e2d0); -} #[repr(C)] #[doc(hidden)] pub struct IHomeGroup_Vtbl { @@ -17111,9 +15725,8 @@ pub struct IHomeGroup_Vtbl { pub IsMember: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, member: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub ShowSharingWizard: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: super::super::Foundation::HWND, sharingchoices: *mut HOMEGROUPSHARINGCHOICES) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIOCancelInformation(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IIOCancelInformation, IIOCancelInformation_Vtbl, 0xf5b0bf81_8cb5_4b1b_9449_1a159e0c733c); +::windows_core::imp::interface_hierarchy!(IIOCancelInformation, ::windows_core::IUnknown); impl IIOCancelInformation { pub unsafe fn SetCancelInformation(&self, dwthreadid: u32, umsgcancel: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetCancelInformation)(::windows_core::Interface::as_raw(self), dwthreadid, umsgcancel).ok() @@ -17122,13 +15735,6 @@ impl IIOCancelInformation { (::windows_core::Interface::vtable(self).GetCancelInformation)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pdwthreadid.unwrap_or(::std::ptr::null_mut())), ::core::mem::transmute(pumsgcancel.unwrap_or(::std::ptr::null_mut()))).ok() } } -::windows_core::imp::interface_hierarchy!(IIOCancelInformation, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IIOCancelInformation { - type Vtable = IIOCancelInformation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIOCancelInformation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf5b0bf81_8cb5_4b1b_9449_1a159e0c733c); -} #[repr(C)] #[doc(hidden)] pub struct IIOCancelInformation_Vtbl { @@ -17136,9 +15742,8 @@ pub struct IIOCancelInformation_Vtbl { pub SetCancelInformation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwthreadid: u32, umsgcancel: u32) -> ::windows_core::HRESULT, pub GetCancelInformation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwthreadid: *mut u32, pumsgcancel: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIdentityName(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IIdentityName, IIdentityName_Vtbl, 0x7d903fca_d6f9_4810_8332_946c0177e247); +::windows_core::imp::interface_hierarchy!(IIdentityName, ::windows_core::IUnknown, IRelatedItem); impl IIdentityName { #[doc = "Required features: `\"Win32_UI_Shell_Common\"`"] #[cfg(feature = "Win32_UI_Shell_Common")] @@ -17151,21 +15756,13 @@ impl IIdentityName { (::windows_core::Interface::vtable(self).base__.GetItem)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IIdentityName, ::windows_core::IUnknown, IRelatedItem); -unsafe impl ::windows_core::Interface for IIdentityName { - type Vtable = IIdentityName_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IIdentityName { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7d903fca_d6f9_4810_8332_946c0177e247); -} #[repr(C)] #[doc(hidden)] pub struct IIdentityName_Vtbl { pub base__: IRelatedItem_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IImageRecompress(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IImageRecompress, IImageRecompress_Vtbl, 0x505f1513_6b3e_4892_a272_59f8889a4d3e); +::windows_core::imp::interface_hierarchy!(IImageRecompress, ::windows_core::IUnknown); impl IImageRecompress { #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`"] #[cfg(feature = "Win32_System_Com_StructuredStorage")] @@ -17178,13 +15775,6 @@ impl IImageRecompress { (::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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IImageRecompress, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IImageRecompress { - type Vtable = IImageRecompress_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IImageRecompress { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x505f1513_6b3e_4892_a272_59f8889a4d3e); -} #[repr(C)] #[doc(hidden)] pub struct IImageRecompress_Vtbl { @@ -17194,9 +15784,8 @@ pub struct IImageRecompress_Vtbl { #[cfg(not(feature = "Win32_System_Com_StructuredStorage"))] RecompressImage: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInitializeCommand(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IInitializeCommand, IInitializeCommand_Vtbl, 0x85075acf_231f_40ea_9610_d26b7b58f638); +::windows_core::imp::interface_hierarchy!(IInitializeCommand, ::windows_core::IUnknown); impl IInitializeCommand { #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`"] #[cfg(feature = "Win32_System_Com_StructuredStorage")] @@ -17208,13 +15797,6 @@ impl IInitializeCommand { (::windows_core::Interface::vtable(self).Initialize)(::windows_core::Interface::as_raw(self), pszcommandname.into_param().abi(), ppb.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IInitializeCommand, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInitializeCommand { - type Vtable = IInitializeCommand_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInitializeCommand { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x85075acf_231f_40ea_9610_d26b7b58f638); -} #[repr(C)] #[doc(hidden)] pub struct IInitializeCommand_Vtbl { @@ -17224,9 +15806,8 @@ pub struct IInitializeCommand_Vtbl { #[cfg(not(feature = "Win32_System_Com_StructuredStorage"))] Initialize: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInitializeNetworkFolder(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IInitializeNetworkFolder, IInitializeNetworkFolder_Vtbl, 0x6e0f9881_42a8_4f2a_97f8_8af4e026d92d); +::windows_core::imp::interface_hierarchy!(IInitializeNetworkFolder, ::windows_core::IUnknown); impl IInitializeNetworkFolder { #[doc = "Required features: `\"Win32_UI_Shell_Common\"`"] #[cfg(feature = "Win32_UI_Shell_Common")] @@ -17238,13 +15819,6 @@ impl IInitializeNetworkFolder { (::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::imp::interface_hierarchy!(IInitializeNetworkFolder, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInitializeNetworkFolder { - type Vtable = IInitializeNetworkFolder_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInitializeNetworkFolder { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6e0f9881_42a8_4f2a_97f8_8af4e026d92d); -} #[repr(C)] #[doc(hidden)] pub struct IInitializeNetworkFolder_Vtbl { @@ -17254,30 +15828,21 @@ pub struct IInitializeNetworkFolder_Vtbl { #[cfg(not(feature = "Win32_UI_Shell_Common"))] Initialize: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInitializeObject(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IInitializeObject, IInitializeObject_Vtbl, 0x4622ad16_ff23_11d0_8d34_00a0c90f2719); +::windows_core::imp::interface_hierarchy!(IInitializeObject, ::windows_core::IUnknown); impl IInitializeObject { pub unsafe fn Initialize(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Initialize)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IInitializeObject, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInitializeObject { - type Vtable = IInitializeObject_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInitializeObject { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4622ad16_ff23_11d0_8d34_00a0c90f2719); -} #[repr(C)] #[doc(hidden)] pub struct IInitializeObject_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInitializeWithBindCtx(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IInitializeWithBindCtx, IInitializeWithBindCtx_Vtbl, 0x71c0d2bc_726d_45cc_a6c0_2e31c1db2159); +::windows_core::imp::interface_hierarchy!(IInitializeWithBindCtx, ::windows_core::IUnknown); impl IInitializeWithBindCtx { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -17288,13 +15853,6 @@ impl IInitializeWithBindCtx { (::windows_core::Interface::vtable(self).Initialize)(::windows_core::Interface::as_raw(self), pbc.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IInitializeWithBindCtx, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInitializeWithBindCtx { - type Vtable = IInitializeWithBindCtx_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInitializeWithBindCtx { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x71c0d2bc_726d_45cc_a6c0_2e31c1db2159); -} #[repr(C)] #[doc(hidden)] pub struct IInitializeWithBindCtx_Vtbl { @@ -17304,9 +15862,8 @@ pub struct IInitializeWithBindCtx_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Initialize: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInitializeWithItem(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IInitializeWithItem, IInitializeWithItem_Vtbl, 0x7f73be3f_fb79_493c_a6c7_7ee14e245841); +::windows_core::imp::interface_hierarchy!(IInitializeWithItem, ::windows_core::IUnknown); impl IInitializeWithItem { pub unsafe fn Initialize(&self, psi: P0, grfmode: u32) -> ::windows_core::Result<()> where @@ -17315,22 +15872,14 @@ impl IInitializeWithItem { (::windows_core::Interface::vtable(self).Initialize)(::windows_core::Interface::as_raw(self), psi.into_param().abi(), grfmode).ok() } } -::windows_core::imp::interface_hierarchy!(IInitializeWithItem, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInitializeWithItem { - type Vtable = IInitializeWithItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInitializeWithItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7f73be3f_fb79_493c_a6c7_7ee14e245841); -} #[repr(C)] #[doc(hidden)] pub struct IInitializeWithItem_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psi: *mut ::core::ffi::c_void, grfmode: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInitializeWithPropertyStore(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IInitializeWithPropertyStore, IInitializeWithPropertyStore_Vtbl, 0xc3e12eb5_7d8d_44f8_b6dd_0e77b34d6de4); +::windows_core::imp::interface_hierarchy!(IInitializeWithPropertyStore, ::windows_core::IUnknown); impl IInitializeWithPropertyStore { #[doc = "Required features: `\"Win32_UI_Shell_PropertiesSystem\"`"] #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] @@ -17341,13 +15890,6 @@ impl IInitializeWithPropertyStore { (::windows_core::Interface::vtable(self).Initialize)(::windows_core::Interface::as_raw(self), pps.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IInitializeWithPropertyStore, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInitializeWithPropertyStore { - type Vtable = IInitializeWithPropertyStore_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInitializeWithPropertyStore { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc3e12eb5_7d8d_44f8_b6dd_0e77b34d6de4); -} #[repr(C)] #[doc(hidden)] pub struct IInitializeWithPropertyStore_Vtbl { @@ -17357,9 +15899,8 @@ pub struct IInitializeWithPropertyStore_Vtbl { #[cfg(not(feature = "Win32_UI_Shell_PropertiesSystem"))] Initialize: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInitializeWithWindow(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IInitializeWithWindow, IInitializeWithWindow_Vtbl, 0x3e68d4bd_7135_4d10_8018_9fb6d9f33fa1); +::windows_core::imp::interface_hierarchy!(IInitializeWithWindow, ::windows_core::IUnknown); impl IInitializeWithWindow { pub unsafe fn Initialize(&self, hwnd: P0) -> ::windows_core::Result<()> where @@ -17368,22 +15909,14 @@ impl IInitializeWithWindow { (::windows_core::Interface::vtable(self).Initialize)(::windows_core::Interface::as_raw(self), hwnd.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IInitializeWithWindow, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInitializeWithWindow { - type Vtable = IInitializeWithWindow_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInitializeWithWindow { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3e68d4bd_7135_4d10_8018_9fb6d9f33fa1); -} #[repr(C)] #[doc(hidden)] pub struct IInitializeWithWindow_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwnd: super::super::Foundation::HWND) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInputObject(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IInputObject, IInputObject_Vtbl, 0x68284faa_6a48_11d0_8c78_00c04fd918b4); +::windows_core::imp::interface_hierarchy!(IInputObject, ::windows_core::IUnknown); impl IInputObject { #[doc = "Required features: `\"Win32_UI_WindowsAndMessaging\"`"] #[cfg(feature = "Win32_UI_WindowsAndMessaging")] @@ -17402,13 +15935,6 @@ impl IInputObject { (::windows_core::Interface::vtable(self).TranslateAcceleratorIO)(::windows_core::Interface::as_raw(self), pmsg).ok() } } -::windows_core::imp::interface_hierarchy!(IInputObject, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInputObject { - type Vtable = IInputObject_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInputObject { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x68284faa_6a48_11d0_8c78_00c04fd918b4); -} #[repr(C)] #[doc(hidden)] pub struct IInputObject_Vtbl { @@ -17423,9 +15949,8 @@ pub struct IInputObject_Vtbl { #[cfg(not(feature = "Win32_UI_WindowsAndMessaging"))] TranslateAcceleratorIO: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInputObject2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IInputObject2, IInputObject2_Vtbl, 0x6915c085_510b_44cd_94af_28dfa56cf92b); +::windows_core::imp::interface_hierarchy!(IInputObject2, ::windows_core::IUnknown, IInputObject); impl IInputObject2 { #[doc = "Required features: `\"Win32_UI_WindowsAndMessaging\"`"] #[cfg(feature = "Win32_UI_WindowsAndMessaging")] @@ -17449,13 +15974,6 @@ impl IInputObject2 { (::windows_core::Interface::vtable(self).TranslateAcceleratorGlobal)(::windows_core::Interface::as_raw(self), pmsg).ok() } } -::windows_core::imp::interface_hierarchy!(IInputObject2, ::windows_core::IUnknown, IInputObject); -unsafe impl ::windows_core::Interface for IInputObject2 { - type Vtable = IInputObject2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInputObject2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6915c085_510b_44cd_94af_28dfa56cf92b); -} #[repr(C)] #[doc(hidden)] pub struct IInputObject2_Vtbl { @@ -17465,9 +15983,8 @@ pub struct IInputObject2_Vtbl { #[cfg(not(feature = "Win32_UI_WindowsAndMessaging"))] TranslateAcceleratorGlobal: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInputObjectSite(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IInputObjectSite, IInputObjectSite_Vtbl, 0xf1db8392_7331_11d0_8c99_00a0c92dbfe8); +::windows_core::imp::interface_hierarchy!(IInputObjectSite, ::windows_core::IUnknown); impl IInputObjectSite { pub unsafe fn OnFocusChangeIS(&self, punkobj: P0, fsetfocus: P1) -> ::windows_core::Result<()> where @@ -17477,22 +15994,14 @@ impl IInputObjectSite { (::windows_core::Interface::vtable(self).OnFocusChangeIS)(::windows_core::Interface::as_raw(self), punkobj.into_param().abi(), fsetfocus.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IInputObjectSite, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInputObjectSite { - type Vtable = IInputObjectSite_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInputObjectSite { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf1db8392_7331_11d0_8c99_00a0c92dbfe8); -} #[repr(C)] #[doc(hidden)] pub struct IInputObjectSite_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnFocusChangeIS: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punkobj: *mut ::core::ffi::c_void, fsetfocus: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInputPaneAnimationCoordinator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IInputPaneAnimationCoordinator, IInputPaneAnimationCoordinator_Vtbl, 0x2af16ba9_2de5_4b75_82d9_01372afbffb4); +::windows_core::imp::interface_hierarchy!(IInputPaneAnimationCoordinator, ::windows_core::IUnknown); impl IInputPaneAnimationCoordinator { #[doc = "Required features: `\"Win32_Graphics_DirectComposition\"`"] #[cfg(feature = "Win32_Graphics_DirectComposition")] @@ -17504,13 +16013,6 @@ impl IInputPaneAnimationCoordinator { (::windows_core::Interface::vtable(self).AddAnimation)(::windows_core::Interface::as_raw(self), device.into_param().abi(), animation.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IInputPaneAnimationCoordinator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInputPaneAnimationCoordinator { - type Vtable = IInputPaneAnimationCoordinator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInputPaneAnimationCoordinator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2af16ba9_2de5_4b75_82d9_01372afbffb4); -} #[repr(C)] #[doc(hidden)] pub struct IInputPaneAnimationCoordinator_Vtbl { @@ -17520,51 +16022,34 @@ pub struct IInputPaneAnimationCoordinator_Vtbl { #[cfg(not(feature = "Win32_Graphics_DirectComposition"))] AddAnimation: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInputPanelConfiguration(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IInputPanelConfiguration, IInputPanelConfiguration_Vtbl, 0x41c81592_514c_48bd_a22e_e6af638521a6); +::windows_core::imp::interface_hierarchy!(IInputPanelConfiguration, ::windows_core::IUnknown); impl IInputPanelConfiguration { pub unsafe fn EnableFocusTracking(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).EnableFocusTracking)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IInputPanelConfiguration, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInputPanelConfiguration { - type Vtable = IInputPanelConfiguration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInputPanelConfiguration { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x41c81592_514c_48bd_a22e_e6af638521a6); -} #[repr(C)] #[doc(hidden)] pub struct IInputPanelConfiguration_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub EnableFocusTracking: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInputPanelInvocationConfiguration(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IInputPanelInvocationConfiguration, IInputPanelInvocationConfiguration_Vtbl, 0xa213f136_3b45_4362_a332_efb6547cd432); +::windows_core::imp::interface_hierarchy!(IInputPanelInvocationConfiguration, ::windows_core::IUnknown); impl IInputPanelInvocationConfiguration { pub unsafe fn RequireTouchInEditControl(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).RequireTouchInEditControl)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IInputPanelInvocationConfiguration, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInputPanelInvocationConfiguration { - type Vtable = IInputPanelInvocationConfiguration_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInputPanelInvocationConfiguration { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa213f136_3b45_4362_a332_efb6547cd432); -} #[repr(C)] #[doc(hidden)] pub struct IInputPanelInvocationConfiguration_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub RequireTouchInEditControl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInsertItem(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IInsertItem, IInsertItem_Vtbl, 0xd2b57227_3d23_4b95_93c0_492bd454c356); +::windows_core::imp::interface_hierarchy!(IInsertItem, ::windows_core::IUnknown); impl IInsertItem { #[doc = "Required features: `\"Win32_UI_Shell_Common\"`"] #[cfg(feature = "Win32_UI_Shell_Common")] @@ -17572,13 +16057,6 @@ impl IInsertItem { (::windows_core::Interface::vtable(self).InsertItem)(::windows_core::Interface::as_raw(self), pidl).ok() } } -::windows_core::imp::interface_hierarchy!(IInsertItem, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInsertItem { - type Vtable = IInsertItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInsertItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd2b57227_3d23_4b95_93c0_492bd454c356); -} #[repr(C)] #[doc(hidden)] pub struct IInsertItem_Vtbl { @@ -17588,9 +16066,8 @@ pub struct IInsertItem_Vtbl { #[cfg(not(feature = "Win32_UI_Shell_Common"))] InsertItem: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IItemNameLimits(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IItemNameLimits, IItemNameLimits_Vtbl, 0x1df0d7f1_b267_4d28_8b10_12e23202a5c4); +::windows_core::imp::interface_hierarchy!(IItemNameLimits, ::windows_core::IUnknown); impl IItemNameLimits { pub unsafe fn GetValidCharacters(&self, ppwszvalidchars: *mut ::windows_core::PWSTR, ppwszinvalidchars: *mut ::windows_core::PWSTR) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetValidCharacters)(::windows_core::Interface::as_raw(self), ppwszvalidchars, ppwszinvalidchars).ok() @@ -17603,13 +16080,6 @@ impl IItemNameLimits { (::windows_core::Interface::vtable(self).GetMaxLength)(::windows_core::Interface::as_raw(self), pszname.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IItemNameLimits, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IItemNameLimits { - type Vtable = IItemNameLimits_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IItemNameLimits { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1df0d7f1_b267_4d28_8b10_12e23202a5c4); -} #[repr(C)] #[doc(hidden)] pub struct IItemNameLimits_Vtbl { @@ -17617,9 +16087,8 @@ pub struct IItemNameLimits_Vtbl { pub GetValidCharacters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppwszvalidchars: *mut ::windows_core::PWSTR, ppwszinvalidchars: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, pub GetMaxLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszname: ::windows_core::PCWSTR, pimaxnamelen: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKnownFolder(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IKnownFolder, IKnownFolder_Vtbl, 0x3aa7af7e_9b36_420c_a8e3_f77d4674a488); +::windows_core::imp::interface_hierarchy!(IKnownFolder, ::windows_core::IUnknown); impl IKnownFolder { pub unsafe fn GetId(&self) -> ::windows_core::Result<::windows_core::GUID> { let mut result__ = ::std::mem::zeroed(); @@ -17631,7 +16100,7 @@ impl IKnownFolder { } pub unsafe fn GetShellItem(&self, dwflags: u32) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetShellItem)(::windows_core::Interface::as_raw(self), dwflags, &T::IID, &mut result__).from_abi(result__) @@ -17664,13 +16133,6 @@ impl IKnownFolder { (::windows_core::Interface::vtable(self).GetFolderDefinition)(::windows_core::Interface::as_raw(self), pkfd).ok() } } -::windows_core::imp::interface_hierarchy!(IKnownFolder, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKnownFolder { - type Vtable = IKnownFolder_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKnownFolder { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3aa7af7e_9b36_420c_a8e3_f77d4674a488); -} #[repr(C)] #[doc(hidden)] pub struct IKnownFolder_Vtbl { @@ -17688,9 +16150,8 @@ pub struct IKnownFolder_Vtbl { pub GetRedirectionCapabilities: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcapabilities: *mut u32) -> ::windows_core::HRESULT, pub GetFolderDefinition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pkfd: *mut KNOWNFOLDER_DEFINITION) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IKnownFolderManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IKnownFolderManager, IKnownFolderManager_Vtbl, 0x8be2d872_86aa_4d47_b776_32cca40c7018); +::windows_core::imp::interface_hierarchy!(IKnownFolderManager, ::windows_core::IUnknown); impl IKnownFolderManager { pub unsafe fn FolderIdFromCsidl(&self, ncsidl: i32) -> ::windows_core::Result<::windows_core::GUID> { let mut result__ = ::std::mem::zeroed(); @@ -17741,13 +16202,6 @@ impl IKnownFolderManager { (::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::imp::interface_hierarchy!(IKnownFolderManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IKnownFolderManager { - type Vtable = IKnownFolderManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IKnownFolderManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8be2d872_86aa_4d47_b776_32cca40c7018); -} #[repr(C)] #[doc(hidden)] pub struct IKnownFolderManager_Vtbl { @@ -17766,31 +16220,22 @@ pub struct IKnownFolderManager_Vtbl { FindFolderFromIDList: usize, pub Redirect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rfid: *const ::windows_core::GUID, hwnd: super::super::Foundation::HWND, flags: u32, psztargetpath: ::windows_core::PCWSTR, cfolders: u32, pexclusion: *const ::windows_core::GUID, ppszerror: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILaunchSourceAppUserModelId(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ILaunchSourceAppUserModelId, ILaunchSourceAppUserModelId_Vtbl, 0x989191ac_28ff_4cf0_9584_e0d078bc2396); +::windows_core::imp::interface_hierarchy!(ILaunchSourceAppUserModelId, ::windows_core::IUnknown); impl ILaunchSourceAppUserModelId { pub unsafe fn GetAppUserModelId(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetAppUserModelId)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ILaunchSourceAppUserModelId, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILaunchSourceAppUserModelId { - type Vtable = ILaunchSourceAppUserModelId_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILaunchSourceAppUserModelId { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x989191ac_28ff_4cf0_9584_e0d078bc2396); -} #[repr(C)] #[doc(hidden)] pub struct ILaunchSourceAppUserModelId_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetAppUserModelId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, launchingapp: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILaunchSourceViewSizePreference(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ILaunchSourceViewSizePreference, ILaunchSourceViewSizePreference_Vtbl, 0xe5aa01f7_1fb8_4830_8720_4e6734cbd5f3); +::windows_core::imp::interface_hierarchy!(ILaunchSourceViewSizePreference, ::windows_core::IUnknown); impl ILaunchSourceViewSizePreference { pub unsafe fn GetSourceViewToPosition(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -17801,13 +16246,6 @@ impl ILaunchSourceViewSizePreference { (::windows_core::Interface::vtable(self).GetSourceViewSizePreference)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ILaunchSourceViewSizePreference, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILaunchSourceViewSizePreference { - type Vtable = ILaunchSourceViewSizePreference_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILaunchSourceViewSizePreference { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe5aa01f7_1fb8_4830_8720_4e6734cbd5f3); -} #[repr(C)] #[doc(hidden)] pub struct ILaunchSourceViewSizePreference_Vtbl { @@ -17815,9 +16253,8 @@ pub struct ILaunchSourceViewSizePreference_Vtbl { pub GetSourceViewToPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwnd: *mut super::super::Foundation::HWND) -> ::windows_core::HRESULT, pub GetSourceViewSizePreference: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sourcesizeafterlaunch: *mut APPLICATION_VIEW_SIZE_PREFERENCE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILaunchTargetMonitor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ILaunchTargetMonitor, ILaunchTargetMonitor_Vtbl, 0x266fbc7e_490d_46ed_a96b_2274db252003); +::windows_core::imp::interface_hierarchy!(ILaunchTargetMonitor, ::windows_core::IUnknown); impl ILaunchTargetMonitor { #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] #[cfg(feature = "Win32_Graphics_Gdi")] @@ -17826,13 +16263,6 @@ impl ILaunchTargetMonitor { (::windows_core::Interface::vtable(self).GetMonitor)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ILaunchTargetMonitor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILaunchTargetMonitor { - type Vtable = ILaunchTargetMonitor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILaunchTargetMonitor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x266fbc7e_490d_46ed_a96b_2274db252003); -} #[repr(C)] #[doc(hidden)] pub struct ILaunchTargetMonitor_Vtbl { @@ -17842,31 +16272,22 @@ pub struct ILaunchTargetMonitor_Vtbl { #[cfg(not(feature = "Win32_Graphics_Gdi"))] GetMonitor: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILaunchTargetViewSizePreference(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ILaunchTargetViewSizePreference, ILaunchTargetViewSizePreference_Vtbl, 0x2f0666c6_12f7_4360_b511_a394a0553725); +::windows_core::imp::interface_hierarchy!(ILaunchTargetViewSizePreference, ::windows_core::IUnknown); impl ILaunchTargetViewSizePreference { pub unsafe fn GetTargetViewSizePreference(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetTargetViewSizePreference)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ILaunchTargetViewSizePreference, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILaunchTargetViewSizePreference { - type Vtable = ILaunchTargetViewSizePreference_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILaunchTargetViewSizePreference { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2f0666c6_12f7_4360_b511_a394a0553725); -} #[repr(C)] #[doc(hidden)] pub struct ILaunchTargetViewSizePreference_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetTargetViewSizePreference: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, targetsizeonlaunch: *mut APPLICATION_VIEW_SIZE_PREFERENCE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILaunchUIContext(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ILaunchUIContext, ILaunchUIContext_Vtbl, 0x1791e8f6_21c7_4340_882a_a6a93e3fd73b); +::windows_core::imp::interface_hierarchy!(ILaunchUIContext, ::windows_core::IUnknown); impl ILaunchUIContext { pub unsafe fn SetAssociatedWindow(&self, value: P0) -> ::windows_core::Result<()> where @@ -17878,13 +16299,6 @@ impl ILaunchUIContext { (::windows_core::Interface::vtable(self).SetTabGroupingPreference)(::windows_core::Interface::as_raw(self), value).ok() } } -::windows_core::imp::interface_hierarchy!(ILaunchUIContext, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILaunchUIContext { - type Vtable = ILaunchUIContext_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILaunchUIContext { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1791e8f6_21c7_4340_882a_a6a93e3fd73b); -} #[repr(C)] #[doc(hidden)] pub struct ILaunchUIContext_Vtbl { @@ -17892,9 +16306,8 @@ pub struct ILaunchUIContext_Vtbl { pub SetAssociatedWindow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::Foundation::HWND) -> ::windows_core::HRESULT, pub SetTabGroupingPreference: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILaunchUIContextProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ILaunchUIContextProvider, ILaunchUIContextProvider_Vtbl, 0x0d12c4c8_a3d9_4e24_94c1_0e20c5a956c4); +::windows_core::imp::interface_hierarchy!(ILaunchUIContextProvider, ::windows_core::IUnknown); impl ILaunchUIContextProvider { pub unsafe fn UpdateContext(&self, context: P0) -> ::windows_core::Result<()> where @@ -17903,22 +16316,14 @@ impl ILaunchUIContextProvider { (::windows_core::Interface::vtable(self).UpdateContext)(::windows_core::Interface::as_raw(self), context.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ILaunchUIContextProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILaunchUIContextProvider { - type Vtable = ILaunchUIContextProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILaunchUIContextProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0d12c4c8_a3d9_4e24_94c1_0e20c5a956c4); -} #[repr(C)] #[doc(hidden)] pub struct ILaunchUIContextProvider_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub UpdateContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMenuBand(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMenuBand, IMenuBand_Vtbl, 0x568804cd_cbd7_11d0_9816_00c04fd91972); +::windows_core::imp::interface_hierarchy!(IMenuBand, ::windows_core::IUnknown); impl IMenuBand { #[doc = "Required features: `\"Win32_UI_WindowsAndMessaging\"`"] #[cfg(feature = "Win32_UI_WindowsAndMessaging")] @@ -17931,13 +16336,6 @@ impl IMenuBand { (::windows_core::Interface::vtable(self).TranslateMenuMessage)(::windows_core::Interface::as_raw(self), pmsg, plret).ok() } } -::windows_core::imp::interface_hierarchy!(IMenuBand, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMenuBand { - type Vtable = IMenuBand_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMenuBand { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x568804cd_cbd7_11d0_9816_00c04fd91972); -} #[repr(C)] #[doc(hidden)] pub struct IMenuBand_Vtbl { @@ -17951,11 +16349,15 @@ pub struct IMenuBand_Vtbl { #[cfg(not(feature = "Win32_UI_WindowsAndMessaging"))] TranslateMenuMessage: usize, } -#[doc = "Required features: `\"Win32_System_Ole\"`"] #[cfg(feature = "Win32_System_Ole")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMenuPopup(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Ole\"`"] + IMenuPopup, + IMenuPopup_Vtbl, + 0xd1e7afeb_6a2e_11d0_8c78_00c04fd918b4 +); +#[cfg(feature = "Win32_System_Ole")] +::windows_core::imp::interface_hierarchy!(IMenuPopup, ::windows_core::IUnknown, super::super::System::Ole::IOleWindow, IDeskBar); #[cfg(feature = "Win32_System_Ole")] impl IMenuPopup { #[doc = "Required features: `\"Win32_System_Ole\"`"] @@ -18002,16 +16404,6 @@ impl IMenuPopup { } } #[cfg(feature = "Win32_System_Ole")] -::windows_core::imp::interface_hierarchy!(IMenuPopup, ::windows_core::IUnknown, super::super::System::Ole::IOleWindow, IDeskBar); -#[cfg(feature = "Win32_System_Ole")] -unsafe impl ::windows_core::Interface for IMenuPopup { - type Vtable = IMenuPopup_Vtbl; -} -#[cfg(feature = "Win32_System_Ole")] -unsafe impl ::windows_core::ComInterface for IMenuPopup { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd1e7afeb_6a2e_11d0_8c78_00c04fd918b4); -} -#[cfg(feature = "Win32_System_Ole")] #[repr(C)] #[doc(hidden)] pub struct IMenuPopup_Vtbl { @@ -18023,9 +16415,8 @@ pub struct IMenuPopup_Vtbl { #[cfg(not(feature = "Win32_System_Ole"))] SetSubMenu: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IModalWindow(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IModalWindow, IModalWindow_Vtbl, 0xb4db1657_70d7_485e_8e3e_6fcb5a5c1802); +::windows_core::imp::interface_hierarchy!(IModalWindow, ::windows_core::IUnknown); impl IModalWindow { pub unsafe fn Show(&self, hwndowner: P0) -> ::windows_core::Result<()> where @@ -18034,22 +16425,14 @@ impl IModalWindow { (::windows_core::Interface::vtable(self).Show)(::windows_core::Interface::as_raw(self), hwndowner.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IModalWindow, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IModalWindow { - type Vtable = IModalWindow_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IModalWindow { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb4db1657_70d7_485e_8e3e_6fcb5a5c1802); -} #[repr(C)] #[doc(hidden)] pub struct IModalWindow_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Show: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwndowner: super::super::Foundation::HWND) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INameSpaceTreeAccessible(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INameSpaceTreeAccessible, INameSpaceTreeAccessible_Vtbl, 0x71f312de_43ed_4190_8477_e9536b82350b); +::windows_core::imp::interface_hierarchy!(INameSpaceTreeAccessible, ::windows_core::IUnknown); impl INameSpaceTreeAccessible { pub unsafe fn OnGetDefaultAccessibilityAction(&self, psi: P0) -> ::windows_core::Result<::windows_core::BSTR> where @@ -18074,13 +16457,6 @@ impl INameSpaceTreeAccessible { (::windows_core::Interface::vtable(self).OnGetAccessibilityRole)(::windows_core::Interface::as_raw(self), psi.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(INameSpaceTreeAccessible, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INameSpaceTreeAccessible { - type Vtable = INameSpaceTreeAccessible_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INameSpaceTreeAccessible { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x71f312de_43ed_4190_8477_e9536b82350b); -} #[repr(C)] #[doc(hidden)] pub struct INameSpaceTreeAccessible_Vtbl { @@ -18092,9 +16468,8 @@ pub struct INameSpaceTreeAccessible_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] OnGetAccessibilityRole: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INameSpaceTreeControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INameSpaceTreeControl, INameSpaceTreeControl_Vtbl, 0x028212a3_b627_47e9_8856_c14265554e4f); +::windows_core::imp::interface_hierarchy!(INameSpaceTreeControl, ::windows_core::IUnknown); impl INameSpaceTreeControl { pub unsafe fn Initialize(&self, hwndparent: P0, prc: *const super::super::Foundation::RECT, nsctsflags: u32) -> ::windows_core::Result<()> where @@ -18203,13 +16578,6 @@ impl INameSpaceTreeControl { (::windows_core::Interface::vtable(self).CollapseAll)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(INameSpaceTreeControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INameSpaceTreeControl { - type Vtable = INameSpaceTreeControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INameSpaceTreeControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x028212a3_b627_47e9_8856_c14265554e4f); -} #[repr(C)] #[doc(hidden)] pub struct INameSpaceTreeControl_Vtbl { @@ -18234,9 +16602,8 @@ pub struct INameSpaceTreeControl_Vtbl { pub GetItemRect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psi: *mut ::core::ffi::c_void, prect: *mut super::super::Foundation::RECT) -> ::windows_core::HRESULT, pub CollapseAll: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INameSpaceTreeControl2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INameSpaceTreeControl2, INameSpaceTreeControl2_Vtbl, 0x7cc7aed8_290e_49bc_8945_c1401cc9306c); +::windows_core::imp::interface_hierarchy!(INameSpaceTreeControl2, ::windows_core::IUnknown, INameSpaceTreeControl); impl INameSpaceTreeControl2 { pub unsafe fn Initialize(&self, hwndparent: P0, prc: *const super::super::Foundation::RECT, nsctsflags: u32) -> ::windows_core::Result<()> where @@ -18359,13 +16726,6 @@ impl INameSpaceTreeControl2 { (::windows_core::Interface::vtable(self).GetControlStyle2)(::windows_core::Interface::as_raw(self), nstcsmask, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(INameSpaceTreeControl2, ::windows_core::IUnknown, INameSpaceTreeControl); -unsafe impl ::windows_core::Interface for INameSpaceTreeControl2 { - type Vtable = INameSpaceTreeControl2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INameSpaceTreeControl2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7cc7aed8_290e_49bc_8945_c1401cc9306c); -} #[repr(C)] #[doc(hidden)] pub struct INameSpaceTreeControl2_Vtbl { @@ -18375,9 +16735,8 @@ pub struct INameSpaceTreeControl2_Vtbl { pub SetControlStyle2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nstcsmask: NSTCSTYLE2, nstcsstyle: NSTCSTYLE2) -> ::windows_core::HRESULT, pub GetControlStyle2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nstcsmask: NSTCSTYLE2, pnstcsstyle: *mut NSTCSTYLE2) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INameSpaceTreeControlCustomDraw(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INameSpaceTreeControlCustomDraw, INameSpaceTreeControlCustomDraw_Vtbl, 0x2d3ba758_33ee_42d5_bb7b_5f3431d86c78); +::windows_core::imp::interface_hierarchy!(INameSpaceTreeControlCustomDraw, ::windows_core::IUnknown); impl INameSpaceTreeControlCustomDraw { #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] #[cfg(feature = "Win32_Graphics_Gdi")] @@ -18413,13 +16772,6 @@ impl INameSpaceTreeControlCustomDraw { (::windows_core::Interface::vtable(self).ItemPostPaint)(::windows_core::Interface::as_raw(self), hdc.into_param().abi(), prc, pnstccditem).ok() } } -::windows_core::imp::interface_hierarchy!(INameSpaceTreeControlCustomDraw, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INameSpaceTreeControlCustomDraw { - type Vtable = INameSpaceTreeControlCustomDraw_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INameSpaceTreeControlCustomDraw { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2d3ba758_33ee_42d5_bb7b_5f3431d86c78); -} #[repr(C)] #[doc(hidden)] pub struct INameSpaceTreeControlCustomDraw_Vtbl { @@ -18441,9 +16793,8 @@ pub struct INameSpaceTreeControlCustomDraw_Vtbl { #[cfg(not(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_Controls")))] ItemPostPaint: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INameSpaceTreeControlDropHandler(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INameSpaceTreeControlDropHandler, INameSpaceTreeControlDropHandler_Vtbl, 0xf9c665d6_c2f2_4c19_bf33_8322d7352f51); +::windows_core::imp::interface_hierarchy!(INameSpaceTreeControlDropHandler, ::windows_core::IUnknown); impl INameSpaceTreeControlDropHandler { pub unsafe fn OnDragEnter(&self, psiover: P0, psiadata: P1, foutsidesource: P2, grfkeystate: u32, pdweffect: *mut u32) -> ::windows_core::Result<()> where @@ -18488,13 +16839,6 @@ impl INameSpaceTreeControlDropHandler { (::windows_core::Interface::vtable(self).OnDragLeave)(::windows_core::Interface::as_raw(self), psiover.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(INameSpaceTreeControlDropHandler, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INameSpaceTreeControlDropHandler { - type Vtable = INameSpaceTreeControlDropHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INameSpaceTreeControlDropHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf9c665d6_c2f2_4c19_bf33_8322d7352f51); -} #[repr(C)] #[doc(hidden)] pub struct INameSpaceTreeControlDropHandler_Vtbl { @@ -18506,9 +16850,8 @@ pub struct INameSpaceTreeControlDropHandler_Vtbl { pub OnDropPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psiover: *mut ::core::ffi::c_void, psiadata: *mut ::core::ffi::c_void, inewposition: i32, ioldposition: i32) -> ::windows_core::HRESULT, pub OnDragLeave: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psiover: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INameSpaceTreeControlEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INameSpaceTreeControlEvents, INameSpaceTreeControlEvents_Vtbl, 0x93d77985_b3d8_4484_8318_672cdda002ce); +::windows_core::imp::interface_hierarchy!(INameSpaceTreeControlEvents, ::windows_core::IUnknown); impl INameSpaceTreeControlEvents { pub unsafe fn OnItemClick(&self, psi: P0, nstcehittest: u32, nstceclicktype: u32) -> ::windows_core::Result<()> where @@ -18623,13 +16966,6 @@ impl INameSpaceTreeControlEvents { (::windows_core::Interface::vtable(self).OnGetDefaultIconIndex)(::windows_core::Interface::as_raw(self), psi.into_param().abi(), pidefaulticon, piopenicon).ok() } } -::windows_core::imp::interface_hierarchy!(INameSpaceTreeControlEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INameSpaceTreeControlEvents { - type Vtable = INameSpaceTreeControlEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INameSpaceTreeControlEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x93d77985_b3d8_4484_8318_672cdda002ce); -} #[repr(C)] #[doc(hidden)] pub struct INameSpaceTreeControlEvents_Vtbl { @@ -18653,31 +16989,22 @@ pub struct INameSpaceTreeControlEvents_Vtbl { pub OnBeforeStateImageChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psi: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub OnGetDefaultIconIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psi: *mut ::core::ffi::c_void, pidefaulticon: *mut i32, piopenicon: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INameSpaceTreeControlFolderCapabilities(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INameSpaceTreeControlFolderCapabilities, INameSpaceTreeControlFolderCapabilities_Vtbl, 0xe9701183_e6b3_4ff2_8568_813615fec7be); +::windows_core::imp::interface_hierarchy!(INameSpaceTreeControlFolderCapabilities, ::windows_core::IUnknown); impl INameSpaceTreeControlFolderCapabilities { pub unsafe fn GetFolderCapabilities(&self, nfcmask: NSTCFOLDERCAPABILITIES) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetFolderCapabilities)(::windows_core::Interface::as_raw(self), nfcmask, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(INameSpaceTreeControlFolderCapabilities, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INameSpaceTreeControlFolderCapabilities { - type Vtable = INameSpaceTreeControlFolderCapabilities_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INameSpaceTreeControlFolderCapabilities { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe9701183_e6b3_4ff2_8568_813615fec7be); -} #[repr(C)] #[doc(hidden)] pub struct INameSpaceTreeControlFolderCapabilities_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetFolderCapabilities: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nfcmask: NSTCFOLDERCAPABILITIES, pnfcvalue: *mut NSTCFOLDERCAPABILITIES) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INamedPropertyBag(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INamedPropertyBag, INamedPropertyBag_Vtbl, 0xfb700430_952c_11d1_946f_000000000000); +::windows_core::imp::interface_hierarchy!(INamedPropertyBag, ::windows_core::IUnknown); impl INamedPropertyBag { #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant"))] @@ -18705,13 +17032,6 @@ impl INamedPropertyBag { (::windows_core::Interface::vtable(self).RemovePropertyNPB)(::windows_core::Interface::as_raw(self), pszbagname.into_param().abi(), pszpropname.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(INamedPropertyBag, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INamedPropertyBag { - type Vtable = INamedPropertyBag_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INamedPropertyBag { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfb700430_952c_11d1_946f_000000000000); -} #[repr(C)] #[doc(hidden)] pub struct INamedPropertyBag_Vtbl { @@ -18726,9 +17046,8 @@ pub struct INamedPropertyBag_Vtbl { WritePropertyNPB: usize, pub RemovePropertyNPB: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszbagname: ::windows_core::PCWSTR, pszpropname: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INamespaceWalk(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INamespaceWalk, INamespaceWalk_Vtbl, 0x57ced8a7_3f4a_432c_9350_30f24483f74f); +::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 @@ -18743,13 +17062,6 @@ impl INamespaceWalk { (::windows_core::Interface::vtable(self).GetIDArrayResult)(::windows_core::Interface::as_raw(self), pcitems, prgpidl).ok() } } -::windows_core::imp::interface_hierarchy!(INamespaceWalk, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INamespaceWalk { - type Vtable = INamespaceWalk_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INamespaceWalk { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x57ced8a7_3f4a_432c_9350_30f24483f74f); -} #[repr(C)] #[doc(hidden)] pub struct INamespaceWalk_Vtbl { @@ -18760,9 +17072,8 @@ pub struct INamespaceWalk_Vtbl { #[cfg(not(feature = "Win32_UI_Shell_Common"))] GetIDArrayResult: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INamespaceWalkCB(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INamespaceWalkCB, INamespaceWalkCB_Vtbl, 0xd92995f8_cf5e_4a76_bf59_ead39ea2b97e); +::windows_core::imp::interface_hierarchy!(INamespaceWalkCB, ::windows_core::IUnknown); impl INamespaceWalkCB { #[doc = "Required features: `\"Win32_UI_Shell_Common\"`"] #[cfg(feature = "Win32_UI_Shell_Common")] @@ -18792,13 +17103,6 @@ impl INamespaceWalkCB { (::windows_core::Interface::vtable(self).InitializeProgressDialog)(::windows_core::Interface::as_raw(self), ppsztitle, ppszcancel).ok() } } -::windows_core::imp::interface_hierarchy!(INamespaceWalkCB, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INamespaceWalkCB { - type Vtable = INamespaceWalkCB_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INamespaceWalkCB { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd92995f8_cf5e_4a76_bf59_ead39ea2b97e); -} #[repr(C)] #[doc(hidden)] pub struct INamespaceWalkCB_Vtbl { @@ -18817,9 +17121,8 @@ pub struct INamespaceWalkCB_Vtbl { LeaveFolder: usize, pub InitializeProgressDialog: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppsztitle: *mut ::windows_core::PWSTR, ppszcancel: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INamespaceWalkCB2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INamespaceWalkCB2, INamespaceWalkCB2_Vtbl, 0x7ac7492b_c38e_438a_87db_68737844ff70); +::windows_core::imp::interface_hierarchy!(INamespaceWalkCB2, ::windows_core::IUnknown, INamespaceWalkCB); impl INamespaceWalkCB2 { #[doc = "Required features: `\"Win32_UI_Shell_Common\"`"] #[cfg(feature = "Win32_UI_Shell_Common")] @@ -18852,22 +17155,14 @@ impl INamespaceWalkCB2 { (::windows_core::Interface::vtable(self).WalkComplete)(::windows_core::Interface::as_raw(self), hr).ok() } } -::windows_core::imp::interface_hierarchy!(INamespaceWalkCB2, ::windows_core::IUnknown, INamespaceWalkCB); -unsafe impl ::windows_core::Interface for INamespaceWalkCB2 { - type Vtable = INamespaceWalkCB2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INamespaceWalkCB2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7ac7492b_c38e_438a_87db_68737844ff70); -} #[repr(C)] #[doc(hidden)] pub struct INamespaceWalkCB2_Vtbl { pub base__: INamespaceWalkCB_Vtbl, pub WalkComplete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hr: ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INetworkFolderInternal(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INetworkFolderInternal, INetworkFolderInternal_Vtbl, 0xceb38218_c971_47bb_a703_f0bc99ccdb81); +::windows_core::imp::interface_hierarchy!(INetworkFolderInternal, ::windows_core::IUnknown); impl INetworkFolderInternal { pub unsafe fn GetResourceDisplayType(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -18885,13 +17180,6 @@ impl INetworkFolderInternal { (::windows_core::Interface::vtable(self).GetProvider)(::windows_core::Interface::as_raw(self), itemids.len().try_into().unwrap(), ::core::mem::transmute(itemids.as_ptr()), provider.len().try_into().unwrap(), ::core::mem::transmute(provider.as_ptr())).ok() } } -::windows_core::imp::interface_hierarchy!(INetworkFolderInternal, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INetworkFolderInternal { - type Vtable = INetworkFolderInternal_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INetworkFolderInternal { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xceb38218_c971_47bb_a703_f0bc99ccdb81); -} #[repr(C)] #[doc(hidden)] pub struct INetworkFolderInternal_Vtbl { @@ -18906,9 +17194,8 @@ pub struct INetworkFolderInternal_Vtbl { #[cfg(not(feature = "Win32_UI_Shell_Common"))] GetProvider: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INewMenuClient(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INewMenuClient, INewMenuClient_Vtbl, 0xdcb07fdc_3bb5_451c_90be_966644fed7b0); +::windows_core::imp::interface_hierarchy!(INewMenuClient, ::windows_core::IUnknown); impl INewMenuClient { pub unsafe fn IncludeItems(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -18920,13 +17207,6 @@ impl INewMenuClient { (::windows_core::Interface::vtable(self).SelectAndEditItem)(::windows_core::Interface::as_raw(self), pidlitem, flags).ok() } } -::windows_core::imp::interface_hierarchy!(INewMenuClient, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INewMenuClient { - type Vtable = INewMenuClient_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INewMenuClient { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdcb07fdc_3bb5_451c_90be_966644fed7b0); -} #[repr(C)] #[doc(hidden)] pub struct INewMenuClient_Vtbl { @@ -18937,9 +17217,8 @@ pub struct INewMenuClient_Vtbl { #[cfg(not(feature = "Win32_UI_Shell_Common"))] SelectAndEditItem: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INewShortcutHookA(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INewShortcutHookA, INewShortcutHookA_Vtbl, 0x000214e1_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(INewShortcutHookA, ::windows_core::IUnknown); impl INewShortcutHookA { pub unsafe fn SetReferent(&self, pcszreferent: P0, hwnd: P1) -> ::windows_core::Result<()> where @@ -18967,13 +17246,6 @@ impl INewShortcutHookA { (::windows_core::Interface::vtable(self).GetExtension)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pszextension.as_ptr()), pszextension.len().try_into().unwrap()).ok() } } -::windows_core::imp::interface_hierarchy!(INewShortcutHookA, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INewShortcutHookA { - type Vtable = INewShortcutHookA_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INewShortcutHookA { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x000214e1_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct INewShortcutHookA_Vtbl { @@ -18985,9 +17257,8 @@ pub struct INewShortcutHookA_Vtbl { pub GetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszname: ::windows_core::PSTR, cchname: i32) -> ::windows_core::HRESULT, pub GetExtension: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszextension: ::windows_core::PSTR, cchextension: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INewShortcutHookW(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INewShortcutHookW, INewShortcutHookW_Vtbl, 0x000214f7_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(INewShortcutHookW, ::windows_core::IUnknown); impl INewShortcutHookW { pub unsafe fn SetReferent(&self, pcszreferent: P0, hwnd: P1) -> ::windows_core::Result<()> where @@ -19015,13 +17286,6 @@ impl INewShortcutHookW { (::windows_core::Interface::vtable(self).GetExtension)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pszextension.as_ptr()), pszextension.len().try_into().unwrap()).ok() } } -::windows_core::imp::interface_hierarchy!(INewShortcutHookW, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INewShortcutHookW { - type Vtable = INewShortcutHookW_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INewShortcutHookW { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x000214f7_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct INewShortcutHookW_Vtbl { @@ -19033,11 +17297,15 @@ pub struct INewShortcutHookW_Vtbl { pub GetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszname: ::windows_core::PWSTR, cchname: i32) -> ::windows_core::HRESULT, pub GetExtension: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszextension: ::windows_core::PWSTR, cchextension: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INewWDEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + INewWDEvents, + INewWDEvents_Vtbl, + 0x0751c551_7568_41c9_8e5b_e22e38919236 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(INewWDEvents, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IWebWizardHost); #[cfg(feature = "Win32_System_Com")] impl INewWDEvents { pub unsafe fn FinalBack(&self) -> ::windows_core::Result<()> { @@ -19100,25 +17368,14 @@ impl INewWDEvents { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(INewWDEvents, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IWebWizardHost); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for INewWDEvents { - type Vtable = INewWDEvents_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for INewWDEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0751c551_7568_41c9_8e5b_e22e38919236); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct INewWDEvents_Vtbl { pub base__: IWebWizardHost_Vtbl, pub PassportAuthenticate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsigninurl: ::std::mem::MaybeUninit<::windows_core::BSTR>, pvfauthenitcated: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INewWindowManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INewWindowManager, INewWindowManager_Vtbl, 0xd2bc4c84_3f72_4a52_a604_7bcbf3982cbb); +::windows_core::imp::interface_hierarchy!(INewWindowManager, ::windows_core::IUnknown); 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 @@ -19131,22 +17388,14 @@ impl INewWindowManager { (::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::imp::interface_hierarchy!(INewWindowManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INewWindowManager { - type Vtable = INewWindowManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INewWindowManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd2bc4c84_3f72_4a52_a604_7bcbf3982cbb); -} #[repr(C)] #[doc(hidden)] pub struct INewWindowManager_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub EvaluateNewWindow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszurl: ::windows_core::PCWSTR, pszname: ::windows_core::PCWSTR, pszurlcontext: ::windows_core::PCWSTR, pszfeatures: ::windows_core::PCWSTR, freplace: super::super::Foundation::BOOL, dwflags: u32, dwuseractiontime: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct INotifyReplica(::windows_core::IUnknown); +::windows_core::imp::com_interface!(INotifyReplica, INotifyReplica_Vtbl, 0x99180163_da16_101a_935c_444553540000); +::windows_core::imp::interface_hierarchy!(INotifyReplica, ::windows_core::IUnknown); impl INotifyReplica { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -19154,13 +17403,6 @@ impl INotifyReplica { (::windows_core::Interface::vtable(self).YouAreAReplica)(::windows_core::Interface::as_raw(self), rgpmkotherreplicas.len().try_into().unwrap(), ::core::mem::transmute(rgpmkotherreplicas.as_ptr())).ok() } } -::windows_core::imp::interface_hierarchy!(INotifyReplica, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for INotifyReplica { - type Vtable = INotifyReplica_Vtbl; -} -unsafe impl ::windows_core::ComInterface for INotifyReplica { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x99180163_da16_101a_935c_444553540000); -} #[repr(C)] #[doc(hidden)] pub struct INotifyReplica_Vtbl { @@ -19170,9 +17412,8 @@ pub struct INotifyReplica_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] YouAreAReplica: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IObjMgr(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IObjMgr, IObjMgr_Vtbl, 0x00bb2761_6a77_11d0_a535_00c04fd7d062); +::windows_core::imp::interface_hierarchy!(IObjMgr, ::windows_core::IUnknown); impl IObjMgr { pub unsafe fn Append(&self, punk: P0) -> ::windows_core::Result<()> where @@ -19187,13 +17428,6 @@ impl IObjMgr { (::windows_core::Interface::vtable(self).Remove)(::windows_core::Interface::as_raw(self), punk.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IObjMgr, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IObjMgr { - type Vtable = IObjMgr_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IObjMgr { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00bb2761_6a77_11d0_a535_00c04fd7d062); -} #[repr(C)] #[doc(hidden)] pub struct IObjMgr_Vtbl { @@ -19201,34 +17435,25 @@ pub struct IObjMgr_Vtbl { pub Append: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punk: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punk: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IObjectProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IObjectProvider, IObjectProvider_Vtbl, 0xa6087428_3be3_4d73_b308_7c04a540bf1a); +::windows_core::imp::interface_hierarchy!(IObjectProvider, ::windows_core::IUnknown); impl IObjectProvider { pub unsafe fn QueryObject(&self, guidobject: *const ::windows_core::GUID) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).QueryObject)(::windows_core::Interface::as_raw(self), guidobject, &T::IID, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IObjectProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IObjectProvider { - type Vtable = IObjectProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IObjectProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa6087428_3be3_4d73_b308_7c04a540bf1a); -} #[repr(C)] #[doc(hidden)] pub struct IObjectProvider_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub QueryObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guidobject: *const ::windows_core::GUID, riid: *const ::windows_core::GUID, ppvout: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IObjectWithAppUserModelID(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IObjectWithAppUserModelID, IObjectWithAppUserModelID_Vtbl, 0x36db0196_9665_46d1_9ba7_d3709eecf9ed); +::windows_core::imp::interface_hierarchy!(IObjectWithAppUserModelID, ::windows_core::IUnknown); impl IObjectWithAppUserModelID { pub unsafe fn SetAppID(&self, pszappid: P0) -> ::windows_core::Result<()> where @@ -19241,13 +17466,6 @@ impl IObjectWithAppUserModelID { (::windows_core::Interface::vtable(self).GetAppID)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IObjectWithAppUserModelID, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IObjectWithAppUserModelID { - type Vtable = IObjectWithAppUserModelID_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IObjectWithAppUserModelID { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x36db0196_9665_46d1_9ba7_d3709eecf9ed); -} #[repr(C)] #[doc(hidden)] pub struct IObjectWithAppUserModelID_Vtbl { @@ -19255,52 +17473,35 @@ pub struct IObjectWithAppUserModelID_Vtbl { pub SetAppID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszappid: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub GetAppID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppszappid: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IObjectWithBackReferences(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IObjectWithBackReferences, IObjectWithBackReferences_Vtbl, 0x321a6a6a_d61f_4bf3_97ae_14be2986bb36); +::windows_core::imp::interface_hierarchy!(IObjectWithBackReferences, ::windows_core::IUnknown); impl IObjectWithBackReferences { pub unsafe fn RemoveBackReferences(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).RemoveBackReferences)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IObjectWithBackReferences, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IObjectWithBackReferences { - type Vtable = IObjectWithBackReferences_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IObjectWithBackReferences { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x321a6a6a_d61f_4bf3_97ae_14be2986bb36); -} #[repr(C)] #[doc(hidden)] pub struct IObjectWithBackReferences_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub RemoveBackReferences: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IObjectWithCancelEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IObjectWithCancelEvent, IObjectWithCancelEvent_Vtbl, 0xf279b885_0ae9_4b85_ac06_ddecf9408941); +::windows_core::imp::interface_hierarchy!(IObjectWithCancelEvent, ::windows_core::IUnknown); impl IObjectWithCancelEvent { pub unsafe fn GetCancelEvent(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetCancelEvent)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IObjectWithCancelEvent, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IObjectWithCancelEvent { - type Vtable = IObjectWithCancelEvent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IObjectWithCancelEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf279b885_0ae9_4b85_ac06_ddecf9408941); -} #[repr(C)] #[doc(hidden)] pub struct IObjectWithCancelEvent_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetCancelEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phevent: *mut super::super::Foundation::HANDLE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IObjectWithFolderEnumMode(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IObjectWithFolderEnumMode, IObjectWithFolderEnumMode_Vtbl, 0x6a9d9026_0e6e_464c_b000_42ecc07de673); +::windows_core::imp::interface_hierarchy!(IObjectWithFolderEnumMode, ::windows_core::IUnknown); impl IObjectWithFolderEnumMode { pub unsafe fn SetMode(&self, femode: FOLDER_ENUM_MODE) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetMode)(::windows_core::Interface::as_raw(self), femode).ok() @@ -19310,13 +17511,6 @@ impl IObjectWithFolderEnumMode { (::windows_core::Interface::vtable(self).GetMode)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IObjectWithFolderEnumMode, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IObjectWithFolderEnumMode { - type Vtable = IObjectWithFolderEnumMode_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IObjectWithFolderEnumMode { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6a9d9026_0e6e_464c_b000_42ecc07de673); -} #[repr(C)] #[doc(hidden)] pub struct IObjectWithFolderEnumMode_Vtbl { @@ -19324,9 +17518,8 @@ pub struct IObjectWithFolderEnumMode_Vtbl { pub SetMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, femode: FOLDER_ENUM_MODE) -> ::windows_core::HRESULT, pub GetMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfemode: *mut FOLDER_ENUM_MODE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IObjectWithProgID(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IObjectWithProgID, IObjectWithProgID_Vtbl, 0x71e806fb_8dee_46fc_bf8c_7748a8a1ae13); +::windows_core::imp::interface_hierarchy!(IObjectWithProgID, ::windows_core::IUnknown); impl IObjectWithProgID { pub unsafe fn SetProgID(&self, pszprogid: P0) -> ::windows_core::Result<()> where @@ -19339,13 +17532,6 @@ impl IObjectWithProgID { (::windows_core::Interface::vtable(self).GetProgID)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IObjectWithProgID, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IObjectWithProgID { - type Vtable = IObjectWithProgID_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IObjectWithProgID { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x71e806fb_8dee_46fc_bf8c_7748a8a1ae13); -} #[repr(C)] #[doc(hidden)] pub struct IObjectWithProgID_Vtbl { @@ -19353,9 +17539,8 @@ pub struct IObjectWithProgID_Vtbl { pub SetProgID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszprogid: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub GetProgID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppszprogid: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IObjectWithSelection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IObjectWithSelection, IObjectWithSelection_Vtbl, 0x1c9cd5bb_98e9_4491_a60f_31aacc72b83c); +::windows_core::imp::interface_hierarchy!(IObjectWithSelection, ::windows_core::IUnknown); impl IObjectWithSelection { pub unsafe fn SetSelection(&self, psia: P0) -> ::windows_core::Result<()> where @@ -19365,19 +17550,12 @@ impl IObjectWithSelection { } pub unsafe fn GetSelection(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetSelection)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IObjectWithSelection, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IObjectWithSelection { - type Vtable = IObjectWithSelection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IObjectWithSelection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1c9cd5bb_98e9_4491_a60f_31aacc72b83c); -} #[repr(C)] #[doc(hidden)] pub struct IObjectWithSelection_Vtbl { @@ -19385,9 +17563,8 @@ pub struct IObjectWithSelection_Vtbl { pub SetSelection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psia: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetSelection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOpenControlPanel(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOpenControlPanel, IOpenControlPanel_Vtbl, 0xd11ad862_66de_4df4_bf6c_1f5621996af1); +::windows_core::imp::interface_hierarchy!(IOpenControlPanel, ::windows_core::IUnknown); impl IOpenControlPanel { pub unsafe fn Open(&self, pszname: P0, pszpage: P1, punksite: P2) -> ::windows_core::Result<()> where @@ -19408,13 +17585,6 @@ impl IOpenControlPanel { (::windows_core::Interface::vtable(self).GetCurrentView)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IOpenControlPanel, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOpenControlPanel { - type Vtable = IOpenControlPanel_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOpenControlPanel { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd11ad862_66de_4df4_bf6c_1f5621996af1); -} #[repr(C)] #[doc(hidden)] pub struct IOpenControlPanel_Vtbl { @@ -19423,36 +17593,27 @@ pub struct IOpenControlPanel_Vtbl { pub GetPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszname: ::windows_core::PCWSTR, pszpath: ::windows_core::PWSTR, cchpath: u32) -> ::windows_core::HRESULT, pub GetCurrentView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pview: *mut CPVIEW) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOpenSearchSource(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOpenSearchSource, IOpenSearchSource_Vtbl, 0xf0ee7333_e6fc_479b_9f25_a860c234a38e); +::windows_core::imp::interface_hierarchy!(IOpenSearchSource, ::windows_core::IUnknown); 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<::windows_core::PCWSTR>, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IOpenSearchSource, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOpenSearchSource { - type Vtable = IOpenSearchSource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOpenSearchSource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf0ee7333_e6fc_479b_9f25_a860c234a38e); -} #[repr(C)] #[doc(hidden)] pub struct IOpenSearchSource_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetResults: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwnd: super::super::Foundation::HWND, pszquery: ::windows_core::PCWSTR, dwstartindex: u32, dwcount: u32, riid: *const ::windows_core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOperationsProgressDialog(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOperationsProgressDialog, IOperationsProgressDialog_Vtbl, 0x0c9fb851_e5c9_43eb_a370_f0677b13874c); +::windows_core::imp::interface_hierarchy!(IOperationsProgressDialog, ::windows_core::IUnknown); impl IOperationsProgressDialog { pub unsafe fn StartProgressDialog(&self, hwndowner: P0, flags: u32) -> ::windows_core::Result<()> where @@ -19499,13 +17660,6 @@ impl IOperationsProgressDialog { (::windows_core::Interface::vtable(self).GetOperationStatus)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IOperationsProgressDialog, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOperationsProgressDialog { - type Vtable = IOperationsProgressDialog_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOperationsProgressDialog { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c9fb851_e5c9_43eb_a370_f0677b13874c); -} #[repr(C)] #[doc(hidden)] pub struct IOperationsProgressDialog_Vtbl { @@ -19525,9 +17679,8 @@ pub struct IOperationsProgressDialog_Vtbl { #[cfg(not(feature = "Win32_UI_Shell_PropertiesSystem"))] GetOperationStatus: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPackageDebugSettings(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPackageDebugSettings, IPackageDebugSettings_Vtbl, 0xf27c3930_8029_4ad1_94e3_3dba417810c1); +::windows_core::imp::interface_hierarchy!(IPackageDebugSettings, ::windows_core::IUnknown); impl IPackageDebugSettings { pub unsafe fn EnableDebugging(&self, packagefullname: P0, debuggercommandline: P1, environment: P2) -> ::windows_core::Result<()> where @@ -19616,13 +17769,6 @@ impl IPackageDebugSettings { (::windows_core::Interface::vtable(self).UnregisterForPackageStateChanges)(::windows_core::Interface::as_raw(self), dwcookie).ok() } } -::windows_core::imp::interface_hierarchy!(IPackageDebugSettings, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPackageDebugSettings { - type Vtable = IPackageDebugSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPackageDebugSettings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf27c3930_8029_4ad1_94e3_3dba417810c1); -} #[repr(C)] #[doc(hidden)] pub struct IPackageDebugSettings_Vtbl { @@ -19643,9 +17789,8 @@ pub struct IPackageDebugSettings_Vtbl { pub RegisterForPackageStateChanges: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, packagefullname: ::windows_core::PCWSTR, ppackageexecutionstatechangenotification: *mut ::core::ffi::c_void, pdwcookie: *mut u32) -> ::windows_core::HRESULT, pub UnregisterForPackageStateChanges: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwcookie: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPackageDebugSettings2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPackageDebugSettings2, IPackageDebugSettings2_Vtbl, 0x6e3194bb_ab82_4d22_93f5_fabda40e7b16); +::windows_core::imp::interface_hierarchy!(IPackageDebugSettings2, ::windows_core::IUnknown, IPackageDebugSettings); impl IPackageDebugSettings2 { pub unsafe fn EnableDebugging(&self, packagefullname: P0, debuggercommandline: P1, environment: P2) -> ::windows_core::Result<()> where @@ -19740,22 +17885,14 @@ impl IPackageDebugSettings2 { (::windows_core::Interface::vtable(self).EnumerateApps)(::windows_core::Interface::as_raw(self), packagefullname.into_param().abi(), appcount, appusermodelids, appdisplaynames).ok() } } -::windows_core::imp::interface_hierarchy!(IPackageDebugSettings2, ::windows_core::IUnknown, IPackageDebugSettings); -unsafe impl ::windows_core::Interface for IPackageDebugSettings2 { - type Vtable = IPackageDebugSettings2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPackageDebugSettings2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6e3194bb_ab82_4d22_93f5_fabda40e7b16); -} #[repr(C)] #[doc(hidden)] pub struct IPackageDebugSettings2_Vtbl { pub base__: IPackageDebugSettings_Vtbl, pub EnumerateApps: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, packagefullname: ::windows_core::PCWSTR, appcount: *mut u32, appusermodelids: *mut *mut ::windows_core::PWSTR, appdisplaynames: *mut *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPackageExecutionStateChangeNotification(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPackageExecutionStateChangeNotification, IPackageExecutionStateChangeNotification_Vtbl, 0x1bb12a62_2ad8_432b_8ccf_0c2c52afcd5b); +::windows_core::imp::interface_hierarchy!(IPackageExecutionStateChangeNotification, ::windows_core::IUnknown); impl IPackageExecutionStateChangeNotification { pub unsafe fn OnStateChanged(&self, pszpackagefullname: P0, pesnewstate: PACKAGE_EXECUTION_STATE) -> ::windows_core::Result<()> where @@ -19764,22 +17901,14 @@ impl IPackageExecutionStateChangeNotification { (::windows_core::Interface::vtable(self).OnStateChanged)(::windows_core::Interface::as_raw(self), pszpackagefullname.into_param().abi(), pesnewstate).ok() } } -::windows_core::imp::interface_hierarchy!(IPackageExecutionStateChangeNotification, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPackageExecutionStateChangeNotification { - type Vtable = IPackageExecutionStateChangeNotification_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPackageExecutionStateChangeNotification { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1bb12a62_2ad8_432b_8ccf_0c2c52afcd5b); -} #[repr(C)] #[doc(hidden)] pub struct IPackageExecutionStateChangeNotification_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnStateChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszpackagefullname: ::windows_core::PCWSTR, pesnewstate: PACKAGE_EXECUTION_STATE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IParentAndItem(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IParentAndItem, IParentAndItem_Vtbl, 0xb3a4b685_b685_4805_99d9_5dead2873236); +::windows_core::imp::interface_hierarchy!(IParentAndItem, ::windows_core::IUnknown); impl IParentAndItem { #[doc = "Required features: `\"Win32_UI_Shell_Common\"`"] #[cfg(feature = "Win32_UI_Shell_Common")] @@ -19795,13 +17924,6 @@ impl IParentAndItem { (::windows_core::Interface::vtable(self).GetParentAndItem)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(ppidlparent.unwrap_or(::std::ptr::null_mut())), ::core::mem::transmute(ppsf.unwrap_or(::std::ptr::null_mut())), ::core::mem::transmute(ppidlchild.unwrap_or(::std::ptr::null_mut()))).ok() } } -::windows_core::imp::interface_hierarchy!(IParentAndItem, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IParentAndItem { - type Vtable = IParentAndItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IParentAndItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb3a4b685_b685_4805_99d9_5dead2873236); -} #[repr(C)] #[doc(hidden)] pub struct IParentAndItem_Vtbl { @@ -19815,9 +17937,8 @@ pub struct IParentAndItem_Vtbl { #[cfg(not(feature = "Win32_UI_Shell_Common"))] GetParentAndItem: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IParseAndCreateItem(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IParseAndCreateItem, IParseAndCreateItem_Vtbl, 0x67efed0e_e827_4408_b493_78f3982b685c); +::windows_core::imp::interface_hierarchy!(IParseAndCreateItem, ::windows_core::IUnknown); impl IParseAndCreateItem { pub unsafe fn SetItem(&self, psi: P0) -> ::windows_core::Result<()> where @@ -19827,19 +17948,12 @@ impl IParseAndCreateItem { } pub unsafe fn GetItem(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetItem)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IParseAndCreateItem, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IParseAndCreateItem { - type Vtable = IParseAndCreateItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IParseAndCreateItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x67efed0e_e827_4408_b493_78f3982b685c); -} #[repr(C)] #[doc(hidden)] pub struct IParseAndCreateItem_Vtbl { @@ -19847,11 +17961,15 @@ pub struct IParseAndCreateItem_Vtbl { pub SetItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psi: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPersistFolder(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IPersistFolder, + IPersistFolder_Vtbl, + 0x000214ea_0000_0000_c000_000000000046 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IPersistFolder, ::windows_core::IUnknown, super::super::System::Com::IPersist); #[cfg(feature = "Win32_System_Com")] impl IPersistFolder { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -19867,16 +17985,6 @@ impl IPersistFolder { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IPersistFolder, ::windows_core::IUnknown, super::super::System::Com::IPersist); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IPersistFolder { - type Vtable = IPersistFolder_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IPersistFolder { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x000214ea_0000_0000_c000_000000000046); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IPersistFolder_Vtbl { @@ -19886,11 +17994,15 @@ pub struct IPersistFolder_Vtbl { #[cfg(not(feature = "Win32_UI_Shell_Common"))] Initialize: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPersistFolder2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IPersistFolder2, + IPersistFolder2_Vtbl, + 0x1ac3d9f0_175c_11d1_95be_00609797ea4f +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IPersistFolder2, ::windows_core::IUnknown, super::super::System::Com::IPersist, IPersistFolder); #[cfg(feature = "Win32_System_Com")] impl IPersistFolder2 { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -19912,16 +18024,6 @@ impl IPersistFolder2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IPersistFolder2, ::windows_core::IUnknown, super::super::System::Com::IPersist, IPersistFolder); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IPersistFolder2 { - type Vtable = IPersistFolder2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IPersistFolder2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1ac3d9f0_175c_11d1_95be_00609797ea4f); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IPersistFolder2_Vtbl { @@ -19931,11 +18033,15 @@ pub struct IPersistFolder2_Vtbl { #[cfg(not(feature = "Win32_UI_Shell_Common"))] GetCurFolder: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPersistFolder3(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IPersistFolder3, + IPersistFolder3_Vtbl, + 0xcef04fdf_fe72_11d2_87a5_00c04f6837cf +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IPersistFolder3, ::windows_core::IUnknown, super::super::System::Com::IPersist, IPersistFolder, IPersistFolder2); #[cfg(feature = "Win32_System_Com")] impl IPersistFolder3 { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -19970,16 +18076,6 @@ impl IPersistFolder3 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IPersistFolder3, ::windows_core::IUnknown, super::super::System::Com::IPersist, IPersistFolder, IPersistFolder2); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IPersistFolder3 { - type Vtable = IPersistFolder3_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IPersistFolder3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcef04fdf_fe72_11d2_87a5_00c04f6837cf); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IPersistFolder3_Vtbl { @@ -19993,11 +18089,15 @@ pub struct IPersistFolder3_Vtbl { #[cfg(not(feature = "Win32_UI_Shell_Common"))] GetFolderTargetInfo: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPersistIDList(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IPersistIDList, + IPersistIDList_Vtbl, + 0x1079acfc_29bd_11d3_8e0d_00c04f6837d5 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IPersistIDList, ::windows_core::IUnknown, super::super::System::Com::IPersist); #[cfg(feature = "Win32_System_Com")] impl IPersistIDList { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -20019,16 +18119,6 @@ impl IPersistIDList { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IPersistIDList, ::windows_core::IUnknown, super::super::System::Com::IPersist); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IPersistIDList { - type Vtable = IPersistIDList_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IPersistIDList { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1079acfc_29bd_11d3_8e0d_00c04f6837d5); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IPersistIDList_Vtbl { @@ -20042,9 +18132,8 @@ pub struct IPersistIDList_Vtbl { #[cfg(not(feature = "Win32_UI_Shell_Common"))] GetIDList: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPreviewHandler(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPreviewHandler, IPreviewHandler_Vtbl, 0x8895b1c6_b41f_4c1c_a562_0d564250836f); +::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 @@ -20074,13 +18163,6 @@ impl IPreviewHandler { (::windows_core::Interface::vtable(self).TranslateAccelerator)(::windows_core::Interface::as_raw(self), pmsg).ok() } } -::windows_core::imp::interface_hierarchy!(IPreviewHandler, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPreviewHandler { - type Vtable = IPreviewHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPreviewHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8895b1c6_b41f_4c1c_a562_0d564250836f); -} #[repr(C)] #[doc(hidden)] pub struct IPreviewHandler_Vtbl { @@ -20096,9 +18178,8 @@ pub struct IPreviewHandler_Vtbl { #[cfg(not(feature = "Win32_UI_WindowsAndMessaging"))] TranslateAccelerator: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPreviewHandlerFrame(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPreviewHandlerFrame, IPreviewHandlerFrame_Vtbl, 0xfec87aaf_35f9_447a_adb7_20234491401a); +::windows_core::imp::interface_hierarchy!(IPreviewHandlerFrame, ::windows_core::IUnknown); impl IPreviewHandlerFrame { #[doc = "Required features: `\"Win32_UI_WindowsAndMessaging\"`"] #[cfg(feature = "Win32_UI_WindowsAndMessaging")] @@ -20112,13 +18193,6 @@ impl IPreviewHandlerFrame { (::windows_core::Interface::vtable(self).TranslateAccelerator)(::windows_core::Interface::as_raw(self), pmsg).ok() } } -::windows_core::imp::interface_hierarchy!(IPreviewHandlerFrame, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPreviewHandlerFrame { - type Vtable = IPreviewHandlerFrame_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPreviewHandlerFrame { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfec87aaf_35f9_447a_adb7_20234491401a); -} #[repr(C)] #[doc(hidden)] pub struct IPreviewHandlerFrame_Vtbl { @@ -20132,9 +18206,8 @@ pub struct IPreviewHandlerFrame_Vtbl { #[cfg(not(feature = "Win32_UI_WindowsAndMessaging"))] TranslateAccelerator: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPreviewHandlerVisuals(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPreviewHandlerVisuals, IPreviewHandlerVisuals_Vtbl, 0x196bf9a5_b346_4ef0_aa1e_5dcdb76768b1); +::windows_core::imp::interface_hierarchy!(IPreviewHandlerVisuals, ::windows_core::IUnknown); impl IPreviewHandlerVisuals { pub unsafe fn SetBackgroundColor(&self, color: P0) -> ::windows_core::Result<()> where @@ -20154,13 +18227,6 @@ impl IPreviewHandlerVisuals { (::windows_core::Interface::vtable(self).SetTextColor)(::windows_core::Interface::as_raw(self), color.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IPreviewHandlerVisuals, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPreviewHandlerVisuals { - type Vtable = IPreviewHandlerVisuals_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPreviewHandlerVisuals { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x196bf9a5_b346_4ef0_aa1e_5dcdb76768b1); -} #[repr(C)] #[doc(hidden)] pub struct IPreviewHandlerVisuals_Vtbl { @@ -20172,9 +18238,8 @@ pub struct IPreviewHandlerVisuals_Vtbl { SetFont: usize, pub SetTextColor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, color: super::super::Foundation::COLORREF) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPreviewItem(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPreviewItem, IPreviewItem_Vtbl, 0x36149969_0a8f_49c8_8b00_4aecb20222fb); +::windows_core::imp::interface_hierarchy!(IPreviewItem, ::windows_core::IUnknown, IRelatedItem); impl IPreviewItem { #[doc = "Required features: `\"Win32_UI_Shell_Common\"`"] #[cfg(feature = "Win32_UI_Shell_Common")] @@ -20187,21 +18252,13 @@ impl IPreviewItem { (::windows_core::Interface::vtable(self).base__.GetItem)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IPreviewItem, ::windows_core::IUnknown, IRelatedItem); -unsafe impl ::windows_core::Interface for IPreviewItem { - type Vtable = IPreviewItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPreviewItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x36149969_0a8f_49c8_8b00_4aecb20222fb); -} #[repr(C)] #[doc(hidden)] pub struct IPreviewItem_Vtbl { pub base__: IRelatedItem_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPreviousVersionsInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPreviousVersionsInfo, IPreviousVersionsInfo_Vtbl, 0x76e54780_ad74_48e3_a695_3ba9a0aff10d); +::windows_core::imp::interface_hierarchy!(IPreviousVersionsInfo, ::windows_core::IUnknown); impl IPreviousVersionsInfo { pub unsafe fn AreSnapshotsAvailable(&self, pszpath: P0, foktobeslow: P1) -> ::windows_core::Result where @@ -20212,22 +18269,14 @@ impl IPreviousVersionsInfo { (::windows_core::Interface::vtable(self).AreSnapshotsAvailable)(::windows_core::Interface::as_raw(self), pszpath.into_param().abi(), foktobeslow.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IPreviousVersionsInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPreviousVersionsInfo { - type Vtable = IPreviousVersionsInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPreviousVersionsInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x76e54780_ad74_48e3_a695_3ba9a0aff10d); -} #[repr(C)] #[doc(hidden)] pub struct IPreviousVersionsInfo_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub AreSnapshotsAvailable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszpath: ::windows_core::PCWSTR, foktobeslow: super::super::Foundation::BOOL, pfavailable: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProfferService(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IProfferService, IProfferService_Vtbl, 0xcb728b20_f786_11ce_92ad_00aa00a74cd0); +::windows_core::imp::interface_hierarchy!(IProfferService, ::windows_core::IUnknown); impl IProfferService { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -20242,13 +18291,6 @@ impl IProfferService { (::windows_core::Interface::vtable(self).RevokeService)(::windows_core::Interface::as_raw(self), cookie).ok() } } -::windows_core::imp::interface_hierarchy!(IProfferService, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProfferService { - type Vtable = IProfferService_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProfferService { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcb728b20_f786_11ce_92ad_00aa00a74cd0); -} #[repr(C)] #[doc(hidden)] pub struct IProfferService_Vtbl { @@ -20259,9 +18301,8 @@ pub struct IProfferService_Vtbl { ProfferService: usize, pub RevokeService: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cookie: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IProgressDialog(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IProgressDialog, IProgressDialog_Vtbl, 0xebbc7c04_315e_11d2_b62f_006097df5bd4); +::windows_core::imp::interface_hierarchy!(IProgressDialog, ::windows_core::IUnknown); impl IProgressDialog { pub unsafe fn StartProgressDialog(&self, hwndparent: P0, punkenablemodless: P1, dwflags: u32, pvresevered: ::core::option::Option<*const ::core::ffi::c_void>) -> ::windows_core::Result<()> where @@ -20308,15 +18349,8 @@ impl IProgressDialog { (::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() } pub unsafe fn Timer(&self, dwtimeraction: u32, pvresevered: ::core::option::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() - } -} -::windows_core::imp::interface_hierarchy!(IProgressDialog, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IProgressDialog { - type Vtable = IProgressDialog_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IProgressDialog { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xebbc7c04_315e_11d2_b62f_006097df5bd4); + (::windows_core::Interface::vtable(self).Timer)(::windows_core::Interface::as_raw(self), dwtimeraction, ::core::mem::transmute(pvresevered.unwrap_or(::std::ptr::null()))).ok() + } } #[repr(C)] #[doc(hidden)] @@ -20333,9 +18367,8 @@ pub struct IProgressDialog_Vtbl { pub SetCancelMsg: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwzcancelmsg: ::windows_core::PCWSTR, pvresevered: *const ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Timer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwtimeraction: u32, pvresevered: *const ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPropertyKeyStore(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPropertyKeyStore, IPropertyKeyStore_Vtbl, 0x75bd59aa_f23b_4963_aba4_0b355752a91b); +::windows_core::imp::interface_hierarchy!(IPropertyKeyStore, ::windows_core::IUnknown); impl IPropertyKeyStore { pub unsafe fn GetKeyCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -20365,13 +18398,6 @@ impl IPropertyKeyStore { (::windows_core::Interface::vtable(self).RemoveKey)(::windows_core::Interface::as_raw(self), key).ok() } } -::windows_core::imp::interface_hierarchy!(IPropertyKeyStore, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPropertyKeyStore { - type Vtable = IPropertyKeyStore_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPropertyKeyStore { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x75bd59aa_f23b_4963_aba4_0b355752a91b); -} #[repr(C)] #[doc(hidden)] pub struct IPropertyKeyStore_Vtbl { @@ -20395,9 +18421,8 @@ pub struct IPropertyKeyStore_Vtbl { #[cfg(not(feature = "Win32_UI_Shell_PropertiesSystem"))] RemoveKey: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPublishedApp(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPublishedApp, IPublishedApp_Vtbl, 0x1bc752e0_9046_11d1_b8b3_006008059382); +::windows_core::imp::interface_hierarchy!(IPublishedApp, ::windows_core::IUnknown, IShellApp); impl IPublishedApp { pub unsafe fn GetAppInfo(&self, pai: *mut APPINFODATA) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.GetAppInfo)(::windows_core::Interface::as_raw(self), pai).ok() @@ -20425,13 +18450,6 @@ impl IPublishedApp { (::windows_core::Interface::vtable(self).Unschedule)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IPublishedApp, ::windows_core::IUnknown, IShellApp); -unsafe impl ::windows_core::Interface for IPublishedApp { - type Vtable = IPublishedApp_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPublishedApp { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1bc752e0_9046_11d1_b8b3_006008059382); -} #[repr(C)] #[doc(hidden)] pub struct IPublishedApp_Vtbl { @@ -20440,9 +18458,8 @@ pub struct IPublishedApp_Vtbl { pub GetPublishedAppInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppai: *mut PUBAPPINFO) -> ::windows_core::HRESULT, pub Unschedule: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPublishedApp2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPublishedApp2, IPublishedApp2_Vtbl, 0x12b81347_1b3a_4a04_aa61_3f768b67fd7e); +::windows_core::imp::interface_hierarchy!(IPublishedApp2, ::windows_core::IUnknown, IShellApp, IPublishedApp); impl IPublishedApp2 { pub unsafe fn GetAppInfo(&self, pai: *mut APPINFODATA) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.GetAppInfo)(::windows_core::Interface::as_raw(self), pai).ok() @@ -20476,22 +18493,14 @@ impl IPublishedApp2 { (::windows_core::Interface::vtable(self).Install2)(::windows_core::Interface::as_raw(self), pstinstall, hwndparent.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IPublishedApp2, ::windows_core::IUnknown, IShellApp, IPublishedApp); -unsafe impl ::windows_core::Interface for IPublishedApp2 { - type Vtable = IPublishedApp2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPublishedApp2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x12b81347_1b3a_4a04_aa61_3f768b67fd7e); -} #[repr(C)] #[doc(hidden)] pub struct IPublishedApp2_Vtbl { pub base__: IPublishedApp_Vtbl, pub Install2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstinstall: *const super::super::Foundation::SYSTEMTIME, hwndparent: super::super::Foundation::HWND) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPublishingWizard(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPublishingWizard, IPublishingWizard_Vtbl, 0xaa9198bb_ccec_472d_beed_19a4f6733f7a); +::windows_core::imp::interface_hierarchy!(IPublishingWizard, ::windows_core::IUnknown, IWizardExtension); impl IPublishingWizard { #[doc = "Required features: `\"Win32_UI_Controls\"`"] #[cfg(feature = "Win32_UI_Controls")] @@ -20525,13 +18534,6 @@ impl IPublishingWizard { (::windows_core::Interface::vtable(self).GetTransferManifest)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(phrfromtransfer.unwrap_or(::std::ptr::null_mut())), ::core::mem::transmute(pdocmanifest.unwrap_or(::std::ptr::null_mut()))).ok() } } -::windows_core::imp::interface_hierarchy!(IPublishingWizard, ::windows_core::IUnknown, IWizardExtension); -unsafe impl ::windows_core::Interface for IPublishingWizard { - type Vtable = IPublishingWizard_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPublishingWizard { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaa9198bb_ccec_472d_beed_19a4f6733f7a); -} #[repr(C)] #[doc(hidden)] pub struct IPublishingWizard_Vtbl { @@ -20545,9 +18547,8 @@ pub struct IPublishingWizard_Vtbl { #[cfg(not(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_System_Com")))] GetTransferManifest: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IQueryAssociations(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IQueryAssociations, IQueryAssociations_Vtbl, 0xc46ca590_3c3f_11d2_bee6_0000f805ca57); +::windows_core::imp::interface_hierarchy!(IQueryAssociations, ::windows_core::IUnknown); impl IQueryAssociations { #[doc = "Required features: `\"Win32_System_Registry\"`"] #[cfg(feature = "Win32_System_Registry")] @@ -20587,13 +18588,6 @@ impl IQueryAssociations { (::windows_core::Interface::vtable(self).GetEnum)(::windows_core::Interface::as_raw(self), flags, assocenum, pszextra.into_param().abi(), riid, ppvout).ok() } } -::windows_core::imp::interface_hierarchy!(IQueryAssociations, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IQueryAssociations { - type Vtable = IQueryAssociations_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IQueryAssociations { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc46ca590_3c3f_11d2_bee6_0000f805ca57); -} #[repr(C)] #[doc(hidden)] pub struct IQueryAssociations_Vtbl { @@ -20610,9 +18604,8 @@ pub struct IQueryAssociations_Vtbl { pub GetData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: ASSOCF, data: ASSOCDATA, pszextra: ::windows_core::PCWSTR, pvout: *mut ::core::ffi::c_void, pcbout: *mut u32) -> ::windows_core::HRESULT, pub GetEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: ASSOCF, assocenum: ASSOCENUM, pszextra: ::windows_core::PCWSTR, riid: *const ::windows_core::GUID, ppvout: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IQueryCancelAutoPlay(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IQueryCancelAutoPlay, IQueryCancelAutoPlay_Vtbl, 0xddefe873_6997_4e68_be26_39b633adbe12); +::windows_core::imp::interface_hierarchy!(IQueryCancelAutoPlay, ::windows_core::IUnknown); impl IQueryCancelAutoPlay { pub unsafe fn AllowAutoPlay(&self, pszpath: P0, dwcontenttype: u32, pszlabel: P1, dwserialnumber: u32) -> ::windows_core::Result<()> where @@ -20622,22 +18615,14 @@ impl IQueryCancelAutoPlay { (::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::imp::interface_hierarchy!(IQueryCancelAutoPlay, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IQueryCancelAutoPlay { - type Vtable = IQueryCancelAutoPlay_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IQueryCancelAutoPlay { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xddefe873_6997_4e68_be26_39b633adbe12); -} #[repr(C)] #[doc(hidden)] pub struct IQueryCancelAutoPlay_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub AllowAutoPlay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszpath: ::windows_core::PCWSTR, dwcontenttype: u32, pszlabel: ::windows_core::PCWSTR, dwserialnumber: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IQueryCodePage(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IQueryCodePage, IQueryCodePage_Vtbl, 0xc7b236ce_ee80_11d0_985f_006008059382); +::windows_core::imp::interface_hierarchy!(IQueryCodePage, ::windows_core::IUnknown); impl IQueryCodePage { pub unsafe fn GetCodePage(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -20647,13 +18632,6 @@ impl IQueryCodePage { (::windows_core::Interface::vtable(self).SetCodePage)(::windows_core::Interface::as_raw(self), uicodepage).ok() } } -::windows_core::imp::interface_hierarchy!(IQueryCodePage, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IQueryCodePage { - type Vtable = IQueryCodePage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IQueryCodePage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc7b236ce_ee80_11d0_985f_006008059382); -} #[repr(C)] #[doc(hidden)] pub struct IQueryCodePage_Vtbl { @@ -20661,30 +18639,21 @@ pub struct IQueryCodePage_Vtbl { pub GetCodePage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, puicodepage: *mut u32) -> ::windows_core::HRESULT, pub SetCodePage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uicodepage: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IQueryContinue(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IQueryContinue, IQueryContinue_Vtbl, 0x7307055c_b24a_486b_9f25_163e597a28a9); +::windows_core::imp::interface_hierarchy!(IQueryContinue, ::windows_core::IUnknown); impl IQueryContinue { pub unsafe fn QueryContinue(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).QueryContinue)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IQueryContinue, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IQueryContinue { - type Vtable = IQueryContinue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IQueryContinue { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7307055c_b24a_486b_9f25_163e597a28a9); -} #[repr(C)] #[doc(hidden)] pub struct IQueryContinue_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub QueryContinue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IQueryContinueWithStatus(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IQueryContinueWithStatus, IQueryContinueWithStatus_Vtbl, 0x9090be5b_502b_41fb_bccc_0049a6c7254b); +::windows_core::imp::interface_hierarchy!(IQueryContinueWithStatus, ::windows_core::IUnknown, IQueryContinue); impl IQueryContinueWithStatus { pub unsafe fn QueryContinue(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.QueryContinue)(::windows_core::Interface::as_raw(self)).ok() @@ -20696,22 +18665,14 @@ impl IQueryContinueWithStatus { (::windows_core::Interface::vtable(self).SetStatusMessage)(::windows_core::Interface::as_raw(self), psz.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IQueryContinueWithStatus, ::windows_core::IUnknown, IQueryContinue); -unsafe impl ::windows_core::Interface for IQueryContinueWithStatus { - type Vtable = IQueryContinueWithStatus_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IQueryContinueWithStatus { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9090be5b_502b_41fb_bccc_0049a6c7254b); -} #[repr(C)] #[doc(hidden)] pub struct IQueryContinueWithStatus_Vtbl { pub base__: IQueryContinue_Vtbl, pub SetStatusMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psz: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IQueryInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IQueryInfo, IQueryInfo_Vtbl, 0x00021500_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IQueryInfo, ::windows_core::IUnknown); impl IQueryInfo { pub unsafe fn GetInfoTip(&self, dwflags: QITIPF_FLAGS) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); @@ -20722,13 +18683,6 @@ impl IQueryInfo { (::windows_core::Interface::vtable(self).GetInfoFlags)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IQueryInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IQueryInfo { - type Vtable = IQueryInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IQueryInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00021500_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IQueryInfo_Vtbl { @@ -20736,9 +18690,8 @@ pub struct IQueryInfo_Vtbl { pub GetInfoTip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwflags: u32, ppwsztip: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, pub GetInfoFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwflags: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRegTreeItem(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRegTreeItem, IRegTreeItem_Vtbl, 0xa9521922_0812_4d44_9ec3_7fd38c726f3d); +::windows_core::imp::interface_hierarchy!(IRegTreeItem, ::windows_core::IUnknown); impl IRegTreeItem { pub unsafe fn GetCheckState(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -20751,13 +18704,6 @@ impl IRegTreeItem { (::windows_core::Interface::vtable(self).SetCheckState)(::windows_core::Interface::as_raw(self), bcheck.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IRegTreeItem, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRegTreeItem { - type Vtable = IRegTreeItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRegTreeItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa9521922_0812_4d44_9ec3_7fd38c726f3d); -} #[repr(C)] #[doc(hidden)] pub struct IRegTreeItem_Vtbl { @@ -20765,9 +18711,8 @@ pub struct IRegTreeItem_Vtbl { pub GetCheckState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbcheck: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub SetCheckState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bcheck: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRelatedItem(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRelatedItem, IRelatedItem_Vtbl, 0xa73ce67a_8ab1_44f1_8d43_d2fcbf6b1cd0); +::windows_core::imp::interface_hierarchy!(IRelatedItem, ::windows_core::IUnknown); impl IRelatedItem { #[doc = "Required features: `\"Win32_UI_Shell_Common\"`"] #[cfg(feature = "Win32_UI_Shell_Common")] @@ -20780,13 +18725,6 @@ impl IRelatedItem { (::windows_core::Interface::vtable(self).GetItem)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IRelatedItem, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRelatedItem { - type Vtable = IRelatedItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRelatedItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa73ce67a_8ab1_44f1_8d43_d2fcbf6b1cd0); -} #[repr(C)] #[doc(hidden)] pub struct IRelatedItem_Vtbl { @@ -20797,9 +18735,8 @@ pub struct IRelatedItem_Vtbl { GetItemIDList: usize, pub GetItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppsi: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRemoteComputer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRemoteComputer, IRemoteComputer_Vtbl, 0x000214fe_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IRemoteComputer, ::windows_core::IUnknown); impl IRemoteComputer { pub unsafe fn Initialize(&self, pszmachine: P0, benumerating: P1) -> ::windows_core::Result<()> where @@ -20809,22 +18746,14 @@ impl IRemoteComputer { (::windows_core::Interface::vtable(self).Initialize)(::windows_core::Interface::as_raw(self), pszmachine.into_param().abi(), benumerating.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IRemoteComputer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRemoteComputer { - type Vtable = IRemoteComputer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRemoteComputer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x000214fe_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IRemoteComputer_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszmachine: ::windows_core::PCWSTR, benumerating: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IResolveShellLink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IResolveShellLink, IResolveShellLink_Vtbl, 0x5cd52983_9449_11d2_963a_00c04f79adf0); +::windows_core::imp::interface_hierarchy!(IResolveShellLink, ::windows_core::IUnknown); impl IResolveShellLink { pub unsafe fn ResolveShellLink(&self, punklink: P0, hwnd: P1, fflags: u32) -> ::windows_core::Result<()> where @@ -20834,22 +18763,14 @@ impl IResolveShellLink { (::windows_core::Interface::vtable(self).ResolveShellLink)(::windows_core::Interface::as_raw(self), punklink.into_param().abi(), hwnd.into_param().abi(), fflags).ok() } } -::windows_core::imp::interface_hierarchy!(IResolveShellLink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IResolveShellLink { - type Vtable = IResolveShellLink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IResolveShellLink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5cd52983_9449_11d2_963a_00c04f79adf0); -} #[repr(C)] #[doc(hidden)] pub struct IResolveShellLink_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub ResolveShellLink: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punklink: *mut ::core::ffi::c_void, hwnd: super::super::Foundation::HWND, fflags: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IResultsFolder(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IResultsFolder, IResultsFolder_Vtbl, 0x96e5ae6d_6ae1_4b1c_900c_c6480eaa8828); +::windows_core::imp::interface_hierarchy!(IResultsFolder, ::windows_core::IUnknown); impl IResultsFolder { pub unsafe fn AddItem(&self, psi: P0) -> ::windows_core::Result<()> where @@ -20877,13 +18798,6 @@ impl IResultsFolder { (::windows_core::Interface::vtable(self).RemoveAll)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IResultsFolder, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IResultsFolder { - type Vtable = IResultsFolder_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IResultsFolder { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x96e5ae6d_6ae1_4b1c_900c_c6480eaa8828); -} #[repr(C)] #[doc(hidden)] pub struct IResultsFolder_Vtbl { @@ -20900,9 +18814,8 @@ pub struct IResultsFolder_Vtbl { RemoveIDList: usize, pub RemoveAll: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRunnableTask(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRunnableTask, IRunnableTask_Vtbl, 0x85788d00_6807_11d0_b810_00c04fd706ec); +::windows_core::imp::interface_hierarchy!(IRunnableTask, ::windows_core::IUnknown); impl IRunnableTask { pub unsafe fn Run(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Run)(::windows_core::Interface::as_raw(self)).ok() @@ -20923,13 +18836,6 @@ impl IRunnableTask { (::windows_core::Interface::vtable(self).IsRunning)(::windows_core::Interface::as_raw(self)) } } -::windows_core::imp::interface_hierarchy!(IRunnableTask, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRunnableTask { - type Vtable = IRunnableTask_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRunnableTask { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x85788d00_6807_11d0_b810_00c04fd706ec); -} #[repr(C)] #[doc(hidden)] pub struct IRunnableTask_Vtbl { @@ -20940,11 +18846,15 @@ pub struct IRunnableTask_Vtbl { pub Resume: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub IsRunning: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> u32, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IScriptErrorList(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IScriptErrorList, + IScriptErrorList_Vtbl, + 0xf3470f24_15fd_11d2_bb2e_00805ff7efca +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IScriptErrorList, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IScriptErrorList { pub unsafe fn advanceError(&self) -> ::windows_core::Result<()> { @@ -21007,16 +18917,6 @@ impl IScriptErrorList { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IScriptErrorList, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IScriptErrorList { - type Vtable = IScriptErrorList_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IScriptErrorList { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf3470f24_15fd_11d2_bb2e_00805ff7efca); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IScriptErrorList_Vtbl { @@ -21036,13 +18936,12 @@ pub struct IScriptErrorList_Vtbl { pub getPerErrorDisplay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfpererrordisplay: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub setPerErrorDisplay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fpererrordisplay: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISearchBoxInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISearchBoxInfo, ISearchBoxInfo_Vtbl, 0x6af6e03f_d664_4ef4_9626_f7e0ed36755e); +::windows_core::imp::interface_hierarchy!(ISearchBoxInfo, ::windows_core::IUnknown); impl ISearchBoxInfo { pub unsafe fn GetCondition(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetCondition)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -21052,13 +18951,6 @@ impl ISearchBoxInfo { (::windows_core::Interface::vtable(self).GetText)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISearchBoxInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISearchBoxInfo { - type Vtable = ISearchBoxInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISearchBoxInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6af6e03f_d664_4ef4_9626_f7e0ed36755e); -} #[repr(C)] #[doc(hidden)] pub struct ISearchBoxInfo_Vtbl { @@ -21066,9 +18958,8 @@ pub struct ISearchBoxInfo_Vtbl { pub GetCondition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppsz: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISearchContext(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISearchContext, ISearchContext_Vtbl, 0x09f656a2_41af_480c_88f7_16cc0d164615); +::windows_core::imp::interface_hierarchy!(ISearchContext, ::windows_core::IUnknown); impl ISearchContext { pub unsafe fn GetSearchUrl(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -21083,13 +18974,6 @@ impl ISearchContext { (::windows_core::Interface::vtable(self).GetSearchStyle)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISearchContext, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISearchContext { - type Vtable = ISearchContext_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISearchContext { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x09f656a2_41af_480c_88f7_16cc0d164615); -} #[repr(C)] #[doc(hidden)] pub struct ISearchContext_Vtbl { @@ -21098,9 +18982,8 @@ pub struct ISearchContext_Vtbl { pub GetSearchText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsearchtext: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub GetSearchStyle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwsearchstyle: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISearchFolderItemFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISearchFolderItemFactory, ISearchFolderItemFactory_Vtbl, 0xa0ffbc28_5482_4366_be27_3e81e78e06c2); +::windows_core::imp::interface_hierarchy!(ISearchFolderItemFactory, ::windows_core::IUnknown); impl ISearchFolderItemFactory { pub unsafe fn SetDisplayName(&self, pszdisplayname: P0) -> ::windows_core::Result<()> where @@ -21153,7 +19036,7 @@ impl ISearchFolderItemFactory { } pub unsafe fn GetShellItem(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetShellItem)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) @@ -21165,13 +19048,6 @@ impl ISearchFolderItemFactory { (::windows_core::Interface::vtable(self).GetIDList)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISearchFolderItemFactory, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISearchFolderItemFactory { - type Vtable = ISearchFolderItemFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISearchFolderItemFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa0ffbc28_5482_4366_be27_3e81e78e06c2); -} #[repr(C)] #[doc(hidden)] pub struct ISearchFolderItemFactory_Vtbl { @@ -21207,9 +19083,8 @@ pub struct ISearchFolderItemFactory_Vtbl { #[cfg(not(feature = "Win32_UI_Shell_Common"))] GetIDList: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISharedBitmap(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISharedBitmap, ISharedBitmap_Vtbl, 0x091162a4_bc96_411f_aae8_c5122cd03363); +::windows_core::imp::interface_hierarchy!(ISharedBitmap, ::windows_core::IUnknown); impl ISharedBitmap { #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] #[cfg(feature = "Win32_Graphics_Gdi")] @@ -21240,13 +19115,6 @@ impl ISharedBitmap { (::windows_core::Interface::vtable(self).Detach)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISharedBitmap, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISharedBitmap { - type Vtable = ISharedBitmap_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISharedBitmap { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x091162a4_bc96_411f_aae8_c5122cd03363); -} #[repr(C)] #[doc(hidden)] pub struct ISharedBitmap_Vtbl { @@ -21266,9 +19134,8 @@ pub struct ISharedBitmap_Vtbl { #[cfg(not(feature = "Win32_Graphics_Gdi"))] Detach: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISharingConfigurationManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISharingConfigurationManager, ISharingConfigurationManager_Vtbl, 0xb4cd448a_9c86_4466_9201_2e62105b87ae); +::windows_core::imp::interface_hierarchy!(ISharingConfigurationManager, ::windows_core::IUnknown); impl ISharingConfigurationManager { pub unsafe fn CreateShare(&self, dsid: DEF_SHARE_ID, role: SHARE_ROLE) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).CreateShare)(::windows_core::Interface::as_raw(self), dsid, role).ok() @@ -21293,13 +19160,6 @@ impl ISharingConfigurationManager { (::windows_core::Interface::vtable(self).ArePrintersShared)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ISharingConfigurationManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISharingConfigurationManager { - type Vtable = ISharingConfigurationManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISharingConfigurationManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb4cd448a_9c86_4466_9201_2e62105b87ae); -} #[repr(C)] #[doc(hidden)] pub struct ISharingConfigurationManager_Vtbl { @@ -21312,9 +19172,8 @@ pub struct ISharingConfigurationManager_Vtbl { pub StopSharingPrinters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ArePrintersShared: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShellApp(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IShellApp, IShellApp_Vtbl, 0xa3e14960_935f_11d1_b8b8_006008059382); +::windows_core::imp::interface_hierarchy!(IShellApp, ::windows_core::IUnknown); impl IShellApp { pub unsafe fn GetAppInfo(&self, pai: *mut APPINFODATA) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetAppInfo)(::windows_core::Interface::as_raw(self), pai).ok() @@ -21333,13 +19192,6 @@ impl IShellApp { (::windows_core::Interface::vtable(self).IsInstalled)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IShellApp, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IShellApp { - type Vtable = IShellApp_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IShellApp { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa3e14960_935f_11d1_b8b8_006008059382); -} #[repr(C)] #[doc(hidden)] pub struct IShellApp_Vtbl { @@ -21350,11 +19202,15 @@ pub struct IShellApp_Vtbl { pub GetCachedSlowAppInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psaid: *mut SLOWAPPINFO) -> ::windows_core::HRESULT, pub IsInstalled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Ole\"`"] #[cfg(feature = "Win32_System_Ole")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShellBrowser(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Ole\"`"] + IShellBrowser, + IShellBrowser_Vtbl, + 0x000214e2_0000_0000_c000_000000000046 +); +#[cfg(feature = "Win32_System_Ole")] +::windows_core::imp::interface_hierarchy!(IShellBrowser, ::windows_core::IUnknown, super::super::System::Ole::IOleWindow); #[cfg(feature = "Win32_System_Ole")] impl IShellBrowser { #[doc = "Required features: `\"Win32_System_Ole\"`"] @@ -21456,16 +19312,6 @@ impl IShellBrowser { } } #[cfg(feature = "Win32_System_Ole")] -::windows_core::imp::interface_hierarchy!(IShellBrowser, ::windows_core::IUnknown, super::super::System::Ole::IOleWindow); -#[cfg(feature = "Win32_System_Ole")] -unsafe impl ::windows_core::Interface for IShellBrowser { - type Vtable = IShellBrowser_Vtbl; -} -#[cfg(feature = "Win32_System_Ole")] -unsafe impl ::windows_core::ComInterface for IShellBrowser { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x000214e2_0000_0000_c000_000000000046); -} -#[cfg(feature = "Win32_System_Ole")] #[repr(C)] #[doc(hidden)] pub struct IShellBrowser_Vtbl { @@ -21511,9 +19357,8 @@ pub struct IShellBrowser_Vtbl { #[cfg(not(feature = "Win32_UI_Controls"))] SetToolbarItems: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShellChangeNotify(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IShellChangeNotify, IShellChangeNotify_Vtbl, 0xd82be2b1_5764_11d0_a96e_00c04fd705a2); +::windows_core::imp::interface_hierarchy!(IShellChangeNotify, ::windows_core::IUnknown); impl IShellChangeNotify { #[doc = "Required features: `\"Win32_UI_Shell_Common\"`"] #[cfg(feature = "Win32_UI_Shell_Common")] @@ -21521,13 +19366,6 @@ impl IShellChangeNotify { (::windows_core::Interface::vtable(self).OnChange)(::windows_core::Interface::as_raw(self), levent, ::core::mem::transmute(pidl1.unwrap_or(::std::ptr::null())), ::core::mem::transmute(pidl2.unwrap_or(::std::ptr::null()))).ok() } } -::windows_core::imp::interface_hierarchy!(IShellChangeNotify, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IShellChangeNotify { - type Vtable = IShellChangeNotify_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IShellChangeNotify { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd82be2b1_5764_11d0_a96e_00c04fd705a2); -} #[repr(C)] #[doc(hidden)] pub struct IShellChangeNotify_Vtbl { @@ -21537,9 +19375,8 @@ pub struct IShellChangeNotify_Vtbl { #[cfg(not(feature = "Win32_UI_Shell_Common"))] OnChange: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShellDetails(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IShellDetails, IShellDetails_Vtbl, 0x000214ec_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IShellDetails, ::windows_core::IUnknown); impl IShellDetails { #[doc = "Required features: `\"Win32_UI_Shell_Common\"`"] #[cfg(feature = "Win32_UI_Shell_Common")] @@ -21550,13 +19387,6 @@ impl IShellDetails { (::windows_core::Interface::vtable(self).ColumnClick)(::windows_core::Interface::as_raw(self), icolumn).ok() } } -::windows_core::imp::interface_hierarchy!(IShellDetails, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IShellDetails { - type Vtable = IShellDetails_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IShellDetails { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x000214ec_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IShellDetails_Vtbl { @@ -21567,11 +19397,15 @@ pub struct IShellDetails_Vtbl { GetDetailsOf: usize, pub ColumnClick: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, icolumn: u32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShellDispatch(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IShellDispatch, + IShellDispatch_Vtbl, + 0xd8f015c0_c278_11ce_a49e_444553540000 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IShellDispatch, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IShellDispatch { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -21670,16 +19504,6 @@ impl IShellDispatch { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IShellDispatch, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IShellDispatch { - type Vtable = IShellDispatch_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IShellDispatch { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd8f015c0_c278_11ce_a49e_444553540000); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IShellDispatch_Vtbl { @@ -21729,11 +19553,15 @@ pub struct IShellDispatch_Vtbl { pub RefreshMenu: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ControlPanelItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdir: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShellDispatch2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IShellDispatch2, + IShellDispatch2_Vtbl, + 0xa4c6892c_3ba9_11d2_9dea_00c04fb16162 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IShellDispatch2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IShellDispatch); #[cfg(feature = "Win32_System_Com")] impl IShellDispatch2 { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -21910,16 +19738,6 @@ impl IShellDispatch2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IShellDispatch2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IShellDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IShellDispatch2 { - type Vtable = IShellDispatch2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IShellDispatch2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa4c6892c_3ba9_11d2_9dea_00c04fb16162); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IShellDispatch2_Vtbl { @@ -21955,11 +19773,15 @@ pub struct IShellDispatch2_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] ShowBrowserBar: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShellDispatch3(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IShellDispatch3, + IShellDispatch3_Vtbl, + 0x177160ca_bb5a_411c_841d_bd38facdeaa0 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IShellDispatch3, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IShellDispatch, IShellDispatch2); #[cfg(feature = "Win32_System_Com")] impl IShellDispatch3 { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -22144,16 +19966,6 @@ impl IShellDispatch3 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IShellDispatch3, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IShellDispatch, IShellDispatch2); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IShellDispatch3 { - type Vtable = IShellDispatch3_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IShellDispatch3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x177160ca_bb5a_411c_841d_bd38facdeaa0); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IShellDispatch3_Vtbl { @@ -22163,11 +19975,15 @@ pub struct IShellDispatch3_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] AddToRecent: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShellDispatch4(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IShellDispatch4, + IShellDispatch4_Vtbl, + 0xefd84b2d_4bcf_4298_be25_eb542a59fbda +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IShellDispatch4, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IShellDispatch, IShellDispatch2, IShellDispatch3); #[cfg(feature = "Win32_System_Com")] impl IShellDispatch4 { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -22371,16 +20187,6 @@ impl IShellDispatch4 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IShellDispatch4, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IShellDispatch, IShellDispatch2, IShellDispatch3); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IShellDispatch4 { - type Vtable = IShellDispatch4_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IShellDispatch4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xefd84b2d_4bcf_4298_be25_eb542a59fbda); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IShellDispatch4_Vtbl { @@ -22393,11 +20199,15 @@ pub struct IShellDispatch4_Vtbl { ExplorerPolicy: usize, pub GetSetting: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lsetting: i32, presult: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShellDispatch5(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IShellDispatch5, + IShellDispatch5_Vtbl, + 0x866738b9_6cf2_4de8_8767_f794ebe74f4e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IShellDispatch5, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IShellDispatch, IShellDispatch2, IShellDispatch3, IShellDispatch4); #[cfg(feature = "Win32_System_Com")] impl IShellDispatch5 { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -22604,27 +20414,21 @@ impl IShellDispatch5 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IShellDispatch5, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IShellDispatch, IShellDispatch2, IShellDispatch3, IShellDispatch4); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IShellDispatch5 { - type Vtable = IShellDispatch5_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IShellDispatch5 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x866738b9_6cf2_4de8_8767_f794ebe74f4e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IShellDispatch5_Vtbl { pub base__: IShellDispatch4_Vtbl, pub WindowSwitcher: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShellDispatch6(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IShellDispatch6, + IShellDispatch6_Vtbl, + 0x286e6f1b_7113_4355_9562_96b7e9d64c54 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IShellDispatch6, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IShellDispatch, IShellDispatch2, IShellDispatch3, IShellDispatch4, IShellDispatch5); #[cfg(feature = "Win32_System_Com")] impl IShellDispatch6 { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -22834,25 +20638,14 @@ impl IShellDispatch6 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IShellDispatch6, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IShellDispatch, IShellDispatch2, IShellDispatch3, IShellDispatch4, IShellDispatch5); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IShellDispatch6 { - type Vtable = IShellDispatch6_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IShellDispatch6 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x286e6f1b_7113_4355_9562_96b7e9d64c54); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IShellDispatch6_Vtbl { pub base__: IShellDispatch5_Vtbl, pub SearchCommand: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShellExtInit(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IShellExtInit, IShellExtInit_Vtbl, 0x000214e8_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IShellExtInit, ::windows_core::IUnknown); impl IShellExtInit { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Registry\"`, `\"Win32_UI_Shell_Common\"`"] #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Registry", feature = "Win32_UI_Shell_Common"))] @@ -22864,13 +20657,6 @@ impl IShellExtInit { (::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::imp::interface_hierarchy!(IShellExtInit, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IShellExtInit { - type Vtable = IShellExtInit_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IShellExtInit { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x000214e8_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IShellExtInit_Vtbl { @@ -22880,11 +20666,15 @@ pub struct IShellExtInit_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Registry", feature = "Win32_UI_Shell_Common")))] Initialize: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShellFavoritesNameSpace(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IShellFavoritesNameSpace, + IShellFavoritesNameSpace_Vtbl, + 0x55136804_b2de_11d1_b9f2_00a0c98bc547 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IShellFavoritesNameSpace, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IShellFavoritesNameSpace { pub unsafe fn MoveSelectionUp(&self) -> ::windows_core::Result<()> { @@ -22937,16 +20727,6 @@ impl IShellFavoritesNameSpace { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IShellFavoritesNameSpace, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IShellFavoritesNameSpace { - type Vtable = IShellFavoritesNameSpace_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IShellFavoritesNameSpace { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x55136804_b2de_11d1_b9f2_00a0c98bc547); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IShellFavoritesNameSpace_Vtbl { @@ -22965,9 +20745,8 @@ pub struct IShellFavoritesNameSpace_Vtbl { pub DeleteSubscriptionForSelection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbool: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub SetRoot: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrfullpath: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShellFolder(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IShellFolder, IShellFolder_Vtbl, 0x000214e6_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IShellFolder, ::windows_core::IUnknown); impl IShellFolder { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_UI_Shell_Common\"`"] #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] @@ -22990,7 +20769,7 @@ impl IShellFolder { pub unsafe fn BindToObject(&self, pidl: *const Common::ITEMIDLIST, pbc: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -23000,7 +20779,7 @@ impl IShellFolder { pub unsafe fn BindToStorage(&self, pidl: *const Common::ITEMIDLIST, pbc: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -23016,7 +20795,7 @@ impl IShellFolder { pub unsafe fn CreateViewObject(&self, hwndowner: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -23031,7 +20810,7 @@ impl IShellFolder { pub unsafe fn GetUIObjectOf(&self, hwndowner: P0, apidl: &[*const Common::ITEMIDLIST], rgfreserved: ::core::option::Option<*const u32>) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -23051,13 +20830,6 @@ impl IShellFolder { (::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::imp::interface_hierarchy!(IShellFolder, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IShellFolder { - type Vtable = IShellFolder_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IShellFolder { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x000214e6_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IShellFolder_Vtbl { @@ -23097,9 +20869,8 @@ pub struct IShellFolder_Vtbl { #[cfg(not(feature = "Win32_UI_Shell_Common"))] SetNameOf: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShellFolder2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IShellFolder2, IShellFolder2_Vtbl, 0x93f2f68c_1d1b_11d3_a30e_00c04f79abd1); +::windows_core::imp::interface_hierarchy!(IShellFolder2, ::windows_core::IUnknown, IShellFolder); impl IShellFolder2 { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_UI_Shell_Common\"`"] #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] @@ -23122,7 +20893,7 @@ impl IShellFolder2 { pub unsafe fn BindToObject(&self, pidl: *const Common::ITEMIDLIST, pbc: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -23132,7 +20903,7 @@ impl IShellFolder2 { pub unsafe fn BindToStorage(&self, pidl: *const Common::ITEMIDLIST, pbc: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -23148,7 +20919,7 @@ impl IShellFolder2 { pub unsafe fn CreateViewObject(&self, hwndowner: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -23163,7 +20934,7 @@ impl IShellFolder2 { pub unsafe fn GetUIObjectOf(&self, hwndowner: P0, apidl: &[*const Common::ITEMIDLIST], rgfreserved: ::core::option::Option<*const u32>) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -23214,13 +20985,6 @@ impl IShellFolder2 { (::windows_core::Interface::vtable(self).MapColumnToSCID)(::windows_core::Interface::as_raw(self), icolumn, pscid).ok() } } -::windows_core::imp::interface_hierarchy!(IShellFolder2, ::windows_core::IUnknown, IShellFolder); -unsafe impl ::windows_core::Interface for IShellFolder2 { - type Vtable = IShellFolder2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IShellFolder2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x93f2f68c_1d1b_11d3_a30e_00c04f79abd1); -} #[repr(C)] #[doc(hidden)] pub struct IShellFolder2_Vtbl { @@ -23242,9 +21006,8 @@ pub struct IShellFolder2_Vtbl { #[cfg(not(feature = "Win32_UI_Shell_PropertiesSystem"))] MapColumnToSCID: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShellFolderBand(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IShellFolderBand, IShellFolderBand_Vtbl, 0x7fe80cc8_c247_11d0_b93a_00a0c90312e1); +::windows_core::imp::interface_hierarchy!(IShellFolderBand, ::windows_core::IUnknown); impl IShellFolderBand { #[doc = "Required features: `\"Win32_UI_Shell_Common\"`"] #[cfg(feature = "Win32_UI_Shell_Common")] @@ -23265,13 +21028,6 @@ impl IShellFolderBand { (::windows_core::Interface::vtable(self).GetBandInfoSFB)(::windows_core::Interface::as_raw(self), pbi).ok() } } -::windows_core::imp::interface_hierarchy!(IShellFolderBand, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IShellFolderBand { - type Vtable = IShellFolderBand_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IShellFolderBand { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7fe80cc8_c247_11d0_b93a_00a0c90312e1); -} #[repr(C)] #[doc(hidden)] pub struct IShellFolderBand_Vtbl { @@ -23289,9 +21045,8 @@ pub struct IShellFolderBand_Vtbl { #[cfg(not(feature = "Win32_UI_Shell_Common"))] GetBandInfoSFB: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShellFolderView(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IShellFolderView, IShellFolderView_Vtbl, 0x37a378c0_f82d_11ce_ae65_08002b2e1262); +::windows_core::imp::interface_hierarchy!(IShellFolderView, ::windows_core::IUnknown); impl IShellFolderView { pub unsafe fn Rearrange(&self, lparamsort: P0) -> ::windows_core::Result<()> where @@ -23440,13 +21195,6 @@ impl IShellFolderView { (::windows_core::Interface::vtable(self).SetAutomationObject)(::windows_core::Interface::as_raw(self), pdisp.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IShellFolderView, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IShellFolderView { - type Vtable = IShellFolderView_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IShellFolderView { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x37a378c0_f82d_11ce_ae65_08002b2e1262); -} #[repr(C)] #[doc(hidden)] pub struct IShellFolderView_Vtbl { @@ -23516,9 +21264,8 @@ pub struct IShellFolderView_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] SetAutomationObject: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShellFolderViewCB(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IShellFolderViewCB, IShellFolderViewCB_Vtbl, 0x2047e320_f2a9_11ce_ae65_08002b2e1262); +::windows_core::imp::interface_hierarchy!(IShellFolderViewCB, ::windows_core::IUnknown); impl IShellFolderViewCB { pub unsafe fn MessageSFVCB(&self, umsg: SFVM_MESSAGE_ID, wparam: P0, lparam: P1) -> ::windows_core::Result<()> where @@ -23528,24 +21275,21 @@ impl IShellFolderViewCB { (::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::imp::interface_hierarchy!(IShellFolderViewCB, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IShellFolderViewCB { - type Vtable = IShellFolderViewCB_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IShellFolderViewCB { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2047e320_f2a9_11ce_ae65_08002b2e1262); -} #[repr(C)] #[doc(hidden)] pub struct IShellFolderViewCB_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub MessageSFVCB: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShellFolderViewDual(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IShellFolderViewDual, + IShellFolderViewDual_Vtbl, + 0xe7a1af80_4d96_11cf_960c_0080c7f4ee85 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IShellFolderViewDual, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IShellFolderViewDual { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -23604,16 +21348,6 @@ impl IShellFolderViewDual { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IShellFolderViewDual, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IShellFolderViewDual { - type Vtable = IShellFolderViewDual_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IShellFolderViewDual { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe7a1af80_4d96_11cf_960c_0080c7f4ee85); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IShellFolderViewDual_Vtbl { @@ -23652,11 +21386,15 @@ pub struct IShellFolderViewDual_Vtbl { Script: usize, pub ViewOptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plviewoptions: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShellFolderViewDual2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IShellFolderViewDual2, + IShellFolderViewDual2_Vtbl, + 0x31c147b6_0ade_4a3c_b514_ddf932ef6d17 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IShellFolderViewDual2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IShellFolderViewDual); #[cfg(feature = "Win32_System_Com")] impl IShellFolderViewDual2 { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -23725,16 +21463,6 @@ impl IShellFolderViewDual2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IShellFolderViewDual2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IShellFolderViewDual); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IShellFolderViewDual2 { - type Vtable = IShellFolderViewDual2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IShellFolderViewDual2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x31c147b6_0ade_4a3c_b514_ddf932ef6d17); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IShellFolderViewDual2_Vtbl { @@ -23743,11 +21471,15 @@ pub struct IShellFolderViewDual2_Vtbl { pub SetCurrentViewMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, viewmode: u32) -> ::windows_core::HRESULT, pub SelectItemRelative: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, irelative: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShellFolderViewDual3(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IShellFolderViewDual3, + IShellFolderViewDual3_Vtbl, + 0x29ec8e6c_46d3_411f_baaa_611a6c9cac66 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IShellFolderViewDual3, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IShellFolderViewDual, IShellFolderViewDual2); #[cfg(feature = "Win32_System_Com")] impl IShellFolderViewDual3 { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -23856,16 +21588,6 @@ impl IShellFolderViewDual3 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IShellFolderViewDual3, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IShellFolderViewDual, IShellFolderViewDual2); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IShellFolderViewDual3 { - type Vtable = IShellFolderViewDual3_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IShellFolderViewDual3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x29ec8e6c_46d3_411f_baaa_611a6c9cac66); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IShellFolderViewDual3_Vtbl { @@ -23880,9 +21602,8 @@ pub struct IShellFolderViewDual3_Vtbl { pub IconSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, piiconsize: *mut i32) -> ::windows_core::HRESULT, pub FilterView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrfiltertext: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShellIcon(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IShellIcon, IShellIcon_Vtbl, 0x000214e5_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IShellIcon, ::windows_core::IUnknown); impl IShellIcon { #[doc = "Required features: `\"Win32_UI_Shell_Common\"`"] #[cfg(feature = "Win32_UI_Shell_Common")] @@ -23891,13 +21612,6 @@ impl IShellIcon { (::windows_core::Interface::vtable(self).GetIconOf)(::windows_core::Interface::as_raw(self), pidl, flags, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IShellIcon, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IShellIcon { - type Vtable = IShellIcon_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IShellIcon { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x000214e5_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IShellIcon_Vtbl { @@ -23907,9 +21621,8 @@ pub struct IShellIcon_Vtbl { #[cfg(not(feature = "Win32_UI_Shell_Common"))] GetIconOf: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShellIconOverlay(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IShellIconOverlay, IShellIconOverlay_Vtbl, 0x7d688a70_c613_11d0_999b_00c04fd655e1); +::windows_core::imp::interface_hierarchy!(IShellIconOverlay, ::windows_core::IUnknown); impl IShellIconOverlay { #[doc = "Required features: `\"Win32_UI_Shell_Common\"`"] #[cfg(feature = "Win32_UI_Shell_Common")] @@ -23922,13 +21635,6 @@ impl IShellIconOverlay { (::windows_core::Interface::vtable(self).GetOverlayIconIndex)(::windows_core::Interface::as_raw(self), pidl, piconindex).ok() } } -::windows_core::imp::interface_hierarchy!(IShellIconOverlay, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IShellIconOverlay { - type Vtable = IShellIconOverlay_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IShellIconOverlay { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7d688a70_c613_11d0_999b_00c04fd655e1); -} #[repr(C)] #[doc(hidden)] pub struct IShellIconOverlay_Vtbl { @@ -23942,9 +21648,8 @@ pub struct IShellIconOverlay_Vtbl { #[cfg(not(feature = "Win32_UI_Shell_Common"))] GetOverlayIconIndex: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShellIconOverlayIdentifier(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IShellIconOverlayIdentifier, IShellIconOverlayIdentifier_Vtbl, 0x0c6c4200_c589_11d0_999a_00c04fd655e1); +::windows_core::imp::interface_hierarchy!(IShellIconOverlayIdentifier, ::windows_core::IUnknown); impl IShellIconOverlayIdentifier { pub unsafe fn IsMemberOf(&self, pwszpath: P0, dwattrib: u32) -> ::windows_core::Result<()> where @@ -23960,13 +21665,6 @@ impl IShellIconOverlayIdentifier { (::windows_core::Interface::vtable(self).GetPriority)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IShellIconOverlayIdentifier, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IShellIconOverlayIdentifier { - type Vtable = IShellIconOverlayIdentifier_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IShellIconOverlayIdentifier { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0c6c4200_c589_11d0_999a_00c04fd655e1); -} #[repr(C)] #[doc(hidden)] pub struct IShellIconOverlayIdentifier_Vtbl { @@ -23975,9 +21673,8 @@ pub struct IShellIconOverlayIdentifier_Vtbl { pub GetOverlayInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwsziconfile: ::windows_core::PWSTR, cchmax: i32, pindex: *mut i32, pdwflags: *mut u32) -> ::windows_core::HRESULT, pub GetPriority: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppriority: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShellIconOverlayManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IShellIconOverlayManager, IShellIconOverlayManager_Vtbl, 0xf10b5e34_dd3b_42a7_aa7d_2f4ec54bb09b); +::windows_core::imp::interface_hierarchy!(IShellIconOverlayManager, ::windows_core::IUnknown); impl IShellIconOverlayManager { pub unsafe fn GetFileOverlayInfo(&self, pwszpath: P0, dwattrib: u32, pindex: *mut i32, dwflags: u32) -> ::windows_core::Result<()> where @@ -24004,13 +21701,6 @@ impl IShellIconOverlayManager { (::windows_core::Interface::vtable(self).OverlayIndexFromImageIndex)(::windows_core::Interface::as_raw(self), iimage, piindex, fadd.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IShellIconOverlayManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IShellIconOverlayManager { - type Vtable = IShellIconOverlayManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IShellIconOverlayManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf10b5e34_dd3b_42a7_aa7d_2f4ec54bb09b); -} #[repr(C)] #[doc(hidden)] pub struct IShellIconOverlayManager_Vtbl { @@ -24021,9 +21711,8 @@ pub struct IShellIconOverlayManager_Vtbl { pub LoadNonloadedOverlayIdentifiers: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub OverlayIndexFromImageIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, iimage: i32, piindex: *mut i32, fadd: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShellImageData(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IShellImageData, IShellImageData_Vtbl, 0xbfdeec12_8040_4403_a5ea_9e07dafcf530); +::windows_core::imp::interface_hierarchy!(IShellImageData, ::windows_core::IUnknown); impl IShellImageData { pub unsafe fn Decode(&self, dwflags: u32, cxdesired: u32, cydesired: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Decode)(::windows_core::Interface::as_raw(self), dwflags, cxdesired, cydesired).ok() @@ -24138,13 +21827,6 @@ impl IShellImageData { (::windows_core::Interface::vtable(self).ReplaceFrame)(::windows_core::Interface::as_raw(self), pimg).ok() } } -::windows_core::imp::interface_hierarchy!(IShellImageData, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IShellImageData { - type Vtable = IShellImageData_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IShellImageData { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbfdeec12_8040_4403_a5ea_9e07dafcf530); -} #[repr(C)] #[doc(hidden)] pub struct IShellImageData_Vtbl { @@ -24192,30 +21874,21 @@ pub struct IShellImageData_Vtbl { pub CloneFrame: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppimg: *mut *mut u8) -> ::windows_core::HRESULT, pub ReplaceFrame: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pimg: *mut u8) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShellImageDataAbort(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IShellImageDataAbort, IShellImageDataAbort_Vtbl, 0x53fb8e58_50c0_4003_b4aa_0c8df28e7f3a); +::windows_core::imp::interface_hierarchy!(IShellImageDataAbort, ::windows_core::IUnknown); impl IShellImageDataAbort { pub unsafe fn QueryAbort(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).QueryAbort)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IShellImageDataAbort, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IShellImageDataAbort { - type Vtable = IShellImageDataAbort_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IShellImageDataAbort { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x53fb8e58_50c0_4003_b4aa_0c8df28e7f3a); -} #[repr(C)] #[doc(hidden)] pub struct IShellImageDataAbort_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub QueryAbort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShellImageDataFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IShellImageDataFactory, IShellImageDataFactory_Vtbl, 0x9be8ed5c_edab_4d75_90f3_bd5bdbb21c82); +::windows_core::imp::interface_hierarchy!(IShellImageDataFactory, ::windows_core::IUnknown); impl IShellImageDataFactory { pub unsafe fn CreateIShellImageData(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -24245,13 +21918,6 @@ impl IShellImageDataFactory { (::windows_core::Interface::vtable(self).GetDataFormatFromPath)(::windows_core::Interface::as_raw(self), pszpath.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IShellImageDataFactory, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IShellImageDataFactory { - type Vtable = IShellImageDataFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IShellImageDataFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9be8ed5c_edab_4d75_90f3_bd5bdbb21c82); -} #[repr(C)] #[doc(hidden)] pub struct IShellImageDataFactory_Vtbl { @@ -24264,16 +21930,15 @@ pub struct IShellImageDataFactory_Vtbl { CreateImageFromStream: usize, pub GetDataFormatFromPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszpath: ::windows_core::PCWSTR, pdataformat: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShellItem(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IShellItem, IShellItem_Vtbl, 0x43826d1e_e718_42ee_bc55_a1e261c37bfe); +::windows_core::imp::interface_hierarchy!(IShellItem, ::windows_core::IUnknown); impl IShellItem { #[doc = "Required features: `\"Win32_System_Com\"`"] #[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, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -24300,13 +21965,6 @@ impl IShellItem { (::windows_core::Interface::vtable(self).Compare)(::windows_core::Interface::as_raw(self), psi.into_param().abi(), hint, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IShellItem, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IShellItem { - type Vtable = IShellItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IShellItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x43826d1e_e718_42ee_bc55_a1e261c37bfe); -} #[repr(C)] #[doc(hidden)] pub struct IShellItem_Vtbl { @@ -24323,16 +21981,15 @@ pub struct IShellItem_Vtbl { GetAttributes: usize, pub Compare: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psi: *mut ::core::ffi::c_void, hint: u32, piorder: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShellItem2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IShellItem2, IShellItem2_Vtbl, 0x7e9fb0d3_919f_4307_ab2e_9b1860310c93); +::windows_core::imp::interface_hierarchy!(IShellItem2, ::windows_core::IUnknown, IShellItem); impl IShellItem2 { #[doc = "Required features: `\"Win32_System_Com\"`"] #[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, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -24362,7 +22019,7 @@ impl IShellItem2 { #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn GetPropertyStore(&self, flags: PropertiesSystem::GETPROPERTYSTOREFLAGS) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetPropertyStore)(::windows_core::Interface::as_raw(self), flags, &T::IID, &mut result__).from_abi(result__) @@ -24372,7 +22029,7 @@ impl IShellItem2 { pub unsafe fn GetPropertyStoreWithCreateObject(&self, flags: PropertiesSystem::GETPROPERTYSTOREFLAGS, punkcreateobject: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam<::windows_core::IUnknown>, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -24381,7 +22038,7 @@ impl IShellItem2 { #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn GetPropertyStoreForKeys(&self, rgkeys: &[PropertiesSystem::PROPERTYKEY], flags: PropertiesSystem::GETPROPERTYSTOREFLAGS) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetPropertyStoreForKeys)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(rgkeys.as_ptr()), rgkeys.len().try_into().unwrap(), flags, &T::IID, &mut result__).from_abi(result__) @@ -24390,7 +22047,7 @@ impl IShellItem2 { #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn GetPropertyDescriptionList(&self, keytype: *const PropertiesSystem::PROPERTYKEY) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetPropertyDescriptionList)(::windows_core::Interface::as_raw(self), keytype, &T::IID, &mut result__).from_abi(result__) @@ -24452,13 +22109,6 @@ impl IShellItem2 { (::windows_core::Interface::vtable(self).GetBool)(::windows_core::Interface::as_raw(self), key, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IShellItem2, ::windows_core::IUnknown, IShellItem); -unsafe impl ::windows_core::Interface for IShellItem2 { - type Vtable = IShellItem2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IShellItem2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7e9fb0d3_919f_4307_ab2e_9b1860310c93); -} #[repr(C)] #[doc(hidden)] pub struct IShellItem2_Vtbl { @@ -24516,16 +22166,15 @@ pub struct IShellItem2_Vtbl { #[cfg(not(feature = "Win32_UI_Shell_PropertiesSystem"))] GetBool: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShellItemArray(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IShellItemArray, IShellItemArray_Vtbl, 0xb63ea76d_1f85_456f_a19c_48159efa858b); +::windows_core::imp::interface_hierarchy!(IShellItemArray, ::windows_core::IUnknown); impl IShellItemArray { #[doc = "Required features: `\"Win32_System_Com\"`"] #[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, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -24534,7 +22183,7 @@ impl IShellItemArray { #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn GetPropertyStore(&self, flags: PropertiesSystem::GETPROPERTYSTOREFLAGS) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetPropertyStore)(::windows_core::Interface::as_raw(self), flags, &T::IID, &mut result__).from_abi(result__) @@ -24543,7 +22192,7 @@ impl IShellItemArray { #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub unsafe fn GetPropertyDescriptionList(&self, keytype: *const PropertiesSystem::PROPERTYKEY) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetPropertyDescriptionList)(::windows_core::Interface::as_raw(self), keytype, &T::IID, &mut result__).from_abi(result__) @@ -24567,13 +22216,6 @@ impl IShellItemArray { (::windows_core::Interface::vtable(self).EnumItems)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IShellItemArray, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IShellItemArray { - type Vtable = IShellItemArray_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IShellItemArray { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb63ea76d_1f85_456f_a19c_48159efa858b); -} #[repr(C)] #[doc(hidden)] pub struct IShellItemArray_Vtbl { @@ -24598,9 +22240,8 @@ pub struct IShellItemArray_Vtbl { pub GetItemAt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwindex: u32, ppsi: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub EnumItems: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenumshellitems: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShellItemFilter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IShellItemFilter, IShellItemFilter_Vtbl, 0x2659b475_eeb8_48b7_8f07_b378810f48cf); +::windows_core::imp::interface_hierarchy!(IShellItemFilter, ::windows_core::IUnknown); impl IShellItemFilter { pub unsafe fn IncludeItem(&self, psi: P0) -> ::windows_core::Result<()> where @@ -24616,13 +22257,6 @@ impl IShellItemFilter { (::windows_core::Interface::vtable(self).GetEnumFlagsForItem)(::windows_core::Interface::as_raw(self), psi.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IShellItemFilter, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IShellItemFilter { - type Vtable = IShellItemFilter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IShellItemFilter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2659b475_eeb8_48b7_8f07_b378810f48cf); -} #[repr(C)] #[doc(hidden)] pub struct IShellItemFilter_Vtbl { @@ -24630,9 +22264,8 @@ pub struct IShellItemFilter_Vtbl { pub IncludeItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psi: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetEnumFlagsForItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psi: *mut ::core::ffi::c_void, pgrfflags: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShellItemImageFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IShellItemImageFactory, IShellItemImageFactory_Vtbl, 0xbcc18b79_ba16_442f_80c4_8a59c30c463b); +::windows_core::imp::interface_hierarchy!(IShellItemImageFactory, ::windows_core::IUnknown); impl IShellItemImageFactory { #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] #[cfg(feature = "Win32_Graphics_Gdi")] @@ -24641,13 +22274,6 @@ impl IShellItemImageFactory { (::windows_core::Interface::vtable(self).GetImage)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(size), flags, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IShellItemImageFactory, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IShellItemImageFactory { - type Vtable = IShellItemImageFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IShellItemImageFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbcc18b79_ba16_442f_80c4_8a59c30c463b); -} #[repr(C)] #[doc(hidden)] pub struct IShellItemImageFactory_Vtbl { @@ -24657,9 +22283,8 @@ pub struct IShellItemImageFactory_Vtbl { #[cfg(not(feature = "Win32_Graphics_Gdi"))] GetImage: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShellItemResources(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IShellItemResources, IShellItemResources_Vtbl, 0xff5693be_2ce0_4d48_b5c5_40817d1acdb9); +::windows_core::imp::interface_hierarchy!(IShellItemResources, ::windows_core::IUnknown); impl IShellItemResources { pub unsafe fn GetAttributes(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -24688,14 +22313,14 @@ impl IShellItemResources { } pub unsafe fn OpenResource(&self, pcsir: *const SHELL_ITEM_RESOURCE) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).OpenResource)(::windows_core::Interface::as_raw(self), pcsir, &T::IID, &mut result__).from_abi(result__) } pub unsafe fn CreateResource(&self, pcsir: *const SHELL_ITEM_RESOURCE) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).CreateResource)(::windows_core::Interface::as_raw(self), pcsir, &T::IID, &mut result__).from_abi(result__) @@ -24704,13 +22329,6 @@ impl IShellItemResources { (::windows_core::Interface::vtable(self).MarkForDelete)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IShellItemResources, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IShellItemResources { - type Vtable = IShellItemResources_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IShellItemResources { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xff5693be_2ce0_4d48_b5c5_40817d1acdb9); -} #[repr(C)] #[doc(hidden)] pub struct IShellItemResources_Vtbl { @@ -24726,9 +22344,8 @@ pub struct IShellItemResources_Vtbl { pub CreateResource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcsir: *const SHELL_ITEM_RESOURCE, riid: *const ::windows_core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub MarkForDelete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShellLibrary(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IShellLibrary, IShellLibrary_Vtbl, 0x11a66efa_382e_451a_9234_1e0e12ef3085); +::windows_core::imp::interface_hierarchy!(IShellLibrary, ::windows_core::IUnknown); impl IShellLibrary { pub unsafe fn LoadLibraryFromItem(&self, psilibrary: P0, grfmode: u32) -> ::windows_core::Result<()> where @@ -24753,7 +22370,7 @@ impl IShellLibrary { } pub unsafe fn GetFolders(&self, lff: LIBRARYFOLDERFILTER) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetFolders)(::windows_core::Interface::as_raw(self), lff, &T::IID, &mut result__).from_abi(result__) @@ -24761,14 +22378,14 @@ impl IShellLibrary { pub unsafe fn ResolveFolder(&self, psifoldertoresolve: P0, dwtimeout: u32) -> ::windows_core::Result where P0: ::windows_core::IntoParam, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) } pub unsafe fn GetDefaultSaveFolder(&self, dsft: DEFAULTSAVEFOLDERTYPE) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetDefaultSaveFolder)(::windows_core::Interface::as_raw(self), dsft, &T::IID, &mut result__).from_abi(result__) @@ -24822,13 +22439,6 @@ impl IShellLibrary { (::windows_core::Interface::vtable(self).SaveInKnownFolder)(::windows_core::Interface::as_raw(self), kfidtosavein, pszlibraryname.into_param().abi(), lsf, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IShellLibrary, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IShellLibrary { - type Vtable = IShellLibrary_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IShellLibrary { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x11a66efa_382e_451a_9234_1e0e12ef3085); -} #[repr(C)] #[doc(hidden)] pub struct IShellLibrary_Vtbl { @@ -24851,9 +22461,8 @@ pub struct IShellLibrary_Vtbl { pub Save: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psifoldertosavein: *mut ::core::ffi::c_void, pszlibraryname: ::windows_core::PCWSTR, lsf: LIBRARYSAVEFLAGS, ppsisavedto: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SaveInKnownFolder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, kfidtosavein: *const ::windows_core::GUID, pszlibraryname: ::windows_core::PCWSTR, lsf: LIBRARYSAVEFLAGS, ppsisavedto: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShellLinkA(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IShellLinkA, IShellLinkA_Vtbl, 0x000214ee_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IShellLinkA, ::windows_core::IUnknown); impl IShellLinkA { #[doc = "Required features: `\"Win32_Storage_FileSystem\"`"] #[cfg(feature = "Win32_Storage_FileSystem")] @@ -24944,13 +22553,6 @@ impl IShellLinkA { (::windows_core::Interface::vtable(self).SetPath)(::windows_core::Interface::as_raw(self), pszfile.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IShellLinkA, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IShellLinkA { - type Vtable = IShellLinkA_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IShellLinkA { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x000214ee_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IShellLinkA_Vtbl { @@ -24989,9 +22591,8 @@ pub struct IShellLinkA_Vtbl { pub Resolve: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwnd: super::super::Foundation::HWND, fflags: u32) -> ::windows_core::HRESULT, pub SetPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszfile: ::windows_core::PCSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShellLinkDataList(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IShellLinkDataList, IShellLinkDataList_Vtbl, 0x45e2b4ae_b1c3_11d0_b92f_00a0c90312e1); +::windows_core::imp::interface_hierarchy!(IShellLinkDataList, ::windows_core::IUnknown); impl IShellLinkDataList { pub unsafe fn AddDataBlock(&self, pdatablock: *const ::core::ffi::c_void) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).AddDataBlock)(::windows_core::Interface::as_raw(self), pdatablock).ok() @@ -25010,13 +22611,6 @@ impl IShellLinkDataList { (::windows_core::Interface::vtable(self).SetFlags)(::windows_core::Interface::as_raw(self), dwflags).ok() } } -::windows_core::imp::interface_hierarchy!(IShellLinkDataList, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IShellLinkDataList { - type Vtable = IShellLinkDataList_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IShellLinkDataList { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x45e2b4ae_b1c3_11d0_b92f_00a0c90312e1); -} #[repr(C)] #[doc(hidden)] pub struct IShellLinkDataList_Vtbl { @@ -25027,11 +22621,15 @@ pub struct IShellLinkDataList_Vtbl { pub GetFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwflags: *mut u32) -> ::windows_core::HRESULT, pub SetFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwflags: u32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShellLinkDual(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IShellLinkDual, + IShellLinkDual_Vtbl, + 0x88a05c00_f000_11ce_8350_444553540000 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IShellLinkDual, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IShellLinkDual { pub unsafe fn Path(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -25107,16 +22705,6 @@ impl IShellLinkDual { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IShellLinkDual, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IShellLinkDual { - type Vtable = IShellLinkDual_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IShellLinkDual { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x88a05c00_f000_11ce_8350_444553540000); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IShellLinkDual_Vtbl { @@ -25141,11 +22729,15 @@ pub struct IShellLinkDual_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] Save: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShellLinkDual2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IShellLinkDual2, + IShellLinkDual2_Vtbl, + 0x317ee249_f12e_11d2_b1e4_00c04f8eeb3e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IShellLinkDual2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IShellLinkDual); #[cfg(feature = "Win32_System_Com")] impl IShellLinkDual2 { pub unsafe fn Path(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -25227,16 +22819,6 @@ impl IShellLinkDual2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IShellLinkDual2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IShellLinkDual); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IShellLinkDual2 { - type Vtable = IShellLinkDual2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IShellLinkDual2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x317ee249_f12e_11d2_b1e4_00c04f8eeb3e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IShellLinkDual2_Vtbl { @@ -25246,9 +22828,8 @@ pub struct IShellLinkDual2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Target: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShellLinkW(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IShellLinkW, IShellLinkW_Vtbl, 0x000214f9_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IShellLinkW, ::windows_core::IUnknown); impl IShellLinkW { #[doc = "Required features: `\"Win32_Storage_FileSystem\"`"] #[cfg(feature = "Win32_Storage_FileSystem")] @@ -25339,13 +22920,6 @@ impl IShellLinkW { (::windows_core::Interface::vtable(self).SetPath)(::windows_core::Interface::as_raw(self), pszfile.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IShellLinkW, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IShellLinkW { - type Vtable = IShellLinkW_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IShellLinkW { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x000214f9_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IShellLinkW_Vtbl { @@ -25384,9 +22958,8 @@ pub struct IShellLinkW_Vtbl { pub Resolve: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwnd: super::super::Foundation::HWND, fflags: u32) -> ::windows_core::HRESULT, pub SetPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszfile: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShellMenu(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IShellMenu, IShellMenu_Vtbl, 0xee1f7637_e138_11d1_8379_00c04fd918d0); +::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 @@ -25442,13 +23015,6 @@ impl IShellMenu { (::windows_core::Interface::vtable(self).SetMenuToolbar)(::windows_core::Interface::as_raw(self), punk.into_param().abi(), dwflags).ok() } } -::windows_core::imp::interface_hierarchy!(IShellMenu, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IShellMenu { - type Vtable = IShellMenu_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IShellMenu { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xee1f7637_e138_11d1_8379_00c04fd918d0); -} #[repr(C)] #[doc(hidden)] pub struct IShellMenu_Vtbl { @@ -25481,9 +23047,8 @@ pub struct IShellMenu_Vtbl { GetState: usize, pub SetMenuToolbar: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punk: *mut ::core::ffi::c_void, dwflags: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShellMenuCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IShellMenuCallback, IShellMenuCallback_Vtbl, 0x4ca300a1_9b8d_11d1_8b22_00c04fd918d0); +::windows_core::imp::interface_hierarchy!(IShellMenuCallback, ::windows_core::IUnknown); impl IShellMenuCallback { #[doc = "Required features: `\"Win32_UI_Shell_Common\"`, `\"Win32_UI_WindowsAndMessaging\"`"] #[cfg(all(feature = "Win32_UI_Shell_Common", feature = "Win32_UI_WindowsAndMessaging"))] @@ -25495,13 +23060,6 @@ impl IShellMenuCallback { (::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::imp::interface_hierarchy!(IShellMenuCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IShellMenuCallback { - type Vtable = IShellMenuCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IShellMenuCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4ca300a1_9b8d_11d1_8b22_00c04fd918d0); -} #[repr(C)] #[doc(hidden)] pub struct IShellMenuCallback_Vtbl { @@ -25511,11 +23069,15 @@ pub struct IShellMenuCallback_Vtbl { #[cfg(not(all(feature = "Win32_UI_Shell_Common", feature = "Win32_UI_WindowsAndMessaging")))] CallbackSM: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShellNameSpace(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IShellNameSpace, + IShellNameSpace_Vtbl, + 0xe572d3c9_37be_4ae2_825d_d521763e3108 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IShellNameSpace, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IShellFavoritesNameSpace); #[cfg(feature = "Win32_System_Com")] impl IShellNameSpace { pub unsafe fn MoveSelectionUp(&self) -> ::windows_core::Result<()> { @@ -25659,16 +23221,6 @@ impl IShellNameSpace { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IShellNameSpace, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IShellFavoritesNameSpace); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IShellNameSpace { - type Vtable = IShellNameSpace_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IShellNameSpace { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe572d3c9_37be_4ae2_825d_d521763e3108); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IShellNameSpace_Vtbl { @@ -25713,9 +23265,8 @@ pub struct IShellNameSpace_Vtbl { Expand: usize, pub UnselectAll: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShellPropSheetExt(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IShellPropSheetExt, IShellPropSheetExt_Vtbl, 0x000214e9_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IShellPropSheetExt, ::windows_core::IUnknown); impl IShellPropSheetExt { #[doc = "Required features: `\"Win32_UI_Controls\"`"] #[cfg(feature = "Win32_UI_Controls")] @@ -25734,13 +23285,6 @@ impl IShellPropSheetExt { (::windows_core::Interface::vtable(self).ReplacePage)(::windows_core::Interface::as_raw(self), upageid, pfnreplacewith, lparam.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IShellPropSheetExt, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IShellPropSheetExt { - type Vtable = IShellPropSheetExt_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IShellPropSheetExt { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x000214e9_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IShellPropSheetExt_Vtbl { @@ -25754,9 +23298,8 @@ pub struct IShellPropSheetExt_Vtbl { #[cfg(not(feature = "Win32_UI_Controls"))] ReplacePage: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShellRunDll(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IShellRunDll, IShellRunDll_Vtbl, 0xfce4bde0_4b68_4b80_8e9c_7426315a7388); +::windows_core::imp::interface_hierarchy!(IShellRunDll, ::windows_core::IUnknown); impl IShellRunDll { pub unsafe fn Run(&self, pszargs: P0) -> ::windows_core::Result<()> where @@ -25765,22 +23308,14 @@ impl IShellRunDll { (::windows_core::Interface::vtable(self).Run)(::windows_core::Interface::as_raw(self), pszargs.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IShellRunDll, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IShellRunDll { - type Vtable = IShellRunDll_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IShellRunDll { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfce4bde0_4b68_4b80_8e9c_7426315a7388); -} #[repr(C)] #[doc(hidden)] pub struct IShellRunDll_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Run: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszargs: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShellService(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IShellService, IShellService_Vtbl, 0x5836fb00_8187_11cf_a12b_00aa004ae837); +::windows_core::imp::interface_hierarchy!(IShellService, ::windows_core::IUnknown); impl IShellService { pub unsafe fn SetOwner(&self, punkowner: P0) -> ::windows_core::Result<()> where @@ -25789,22 +23324,14 @@ impl IShellService { (::windows_core::Interface::vtable(self).SetOwner)(::windows_core::Interface::as_raw(self), punkowner.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IShellService, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IShellService { - type Vtable = IShellService_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IShellService { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5836fb00_8187_11cf_a12b_00aa004ae837); -} #[repr(C)] #[doc(hidden)] pub struct IShellService_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub SetOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punkowner: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShellTaskScheduler(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IShellTaskScheduler, IShellTaskScheduler_Vtbl, 0x6ccb7be0_6807_11d0_b810_00c04fd706ec); +::windows_core::imp::interface_hierarchy!(IShellTaskScheduler, ::windows_core::IUnknown); impl IShellTaskScheduler { pub unsafe fn AddTask(&self, prt: P0, rtoid: *const ::windows_core::GUID, lparam: usize, dwpriority: u32) -> ::windows_core::Result<()> where @@ -25825,13 +23352,6 @@ impl IShellTaskScheduler { (::windows_core::Interface::vtable(self).Status)(::windows_core::Interface::as_raw(self), dwreleasestatus, dwthreadtimeout).ok() } } -::windows_core::imp::interface_hierarchy!(IShellTaskScheduler, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IShellTaskScheduler { - type Vtable = IShellTaskScheduler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IShellTaskScheduler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6ccb7be0_6807_11d0_b810_00c04fd706ec); -} #[repr(C)] #[doc(hidden)] pub struct IShellTaskScheduler_Vtbl { @@ -25841,11 +23361,15 @@ pub struct IShellTaskScheduler_Vtbl { pub CountTasks: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rtoid: *const ::windows_core::GUID) -> u32, pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwreleasestatus: u32, dwthreadtimeout: u32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShellUIHelper(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IShellUIHelper, + IShellUIHelper_Vtbl, + 0x729fe2f8_1ea8_11d1_8f85_00c04fc2fbe1 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IShellUIHelper, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IShellUIHelper { pub unsafe fn ResetFirstBootMode(&self) -> ::windows_core::Result<()> { @@ -25933,16 +23457,6 @@ impl IShellUIHelper { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IShellUIHelper, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IShellUIHelper { - type Vtable = IShellUIHelper_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IShellUIHelper { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x729fe2f8_1ea8_11d1_8f85_00c04fc2fbe1); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IShellUIHelper_Vtbl { @@ -25982,11 +23496,15 @@ pub struct IShellUIHelper_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] ShowBrowserUI: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShellUIHelper2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IShellUIHelper2, + IShellUIHelper2_Vtbl, + 0xa7fe6eda_1932_4281_b881_87b31b8bc52c +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IShellUIHelper2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IShellUIHelper); #[cfg(feature = "Win32_System_Com")] impl IShellUIHelper2 { pub unsafe fn ResetFirstBootMode(&self) -> ::windows_core::Result<()> { @@ -26147,16 +23665,6 @@ impl IShellUIHelper2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IShellUIHelper2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IShellUIHelper); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IShellUIHelper2 { - type Vtable = IShellUIHelper2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IShellUIHelper2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa7fe6eda_1932_4281_b881_87b31b8bc52c); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IShellUIHelper2_Vtbl { @@ -26178,11 +23686,15 @@ pub struct IShellUIHelper2_Vtbl { pub RunOnceHasShown: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfshown: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub SearchGuideUrl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrurl: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShellUIHelper3(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IShellUIHelper3, + IShellUIHelper3_Vtbl, + 0x528df2ec_d419_40bc_9b6d_dcdbf9c1b25d +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IShellUIHelper3, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IShellUIHelper, IShellUIHelper2); #[cfg(feature = "Win32_System_Com")] impl IShellUIHelper3 { pub unsafe fn ResetFirstBootMode(&self) -> ::windows_core::Result<()> { @@ -26410,16 +23922,6 @@ impl IShellUIHelper3 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IShellUIHelper3, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IShellUIHelper, IShellUIHelper2); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IShellUIHelper3 { - type Vtable = IShellUIHelper3_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IShellUIHelper3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x528df2ec_d419_40bc_9b6d_dcdbf9c1b25d); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IShellUIHelper3_Vtbl { @@ -26441,11 +23943,15 @@ pub struct IShellUIHelper3_Vtbl { pub ShowTabsHelp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ShowInPrivateHelp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShellUIHelper4(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IShellUIHelper4, + IShellUIHelper4_Vtbl, + 0xb36e6a53_8073_499e_824c_d776330a333e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IShellUIHelper4, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IShellUIHelper, IShellUIHelper2, IShellUIHelper3); #[cfg(feature = "Win32_System_Com")] impl IShellUIHelper4 { pub unsafe fn ResetFirstBootMode(&self) -> ::windows_core::Result<()> { @@ -26777,16 +24283,6 @@ impl IShellUIHelper4 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IShellUIHelper4, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IShellUIHelper, IShellUIHelper2, IShellUIHelper3); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IShellUIHelper4 { - type Vtable = IShellUIHelper4_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IShellUIHelper4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb36e6a53_8073_499e_824c_d776330a333e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IShellUIHelper4_Vtbl { @@ -26831,11 +24327,15 @@ pub struct IShellUIHelper4_Vtbl { pub msTrackingProtectionEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfenabled: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub msActiveXFilteringEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfenabled: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShellUIHelper5(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IShellUIHelper5, + IShellUIHelper5_Vtbl, + 0xa2a08b09_103d_4d3f_b91c_ea455ca82efa +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IShellUIHelper5, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IShellUIHelper, IShellUIHelper2, IShellUIHelper3, IShellUIHelper4); #[cfg(feature = "Win32_System_Com")] impl IShellUIHelper5 { pub unsafe fn ResetFirstBootMode(&self) -> ::windows_core::Result<()> { @@ -27197,16 +24697,6 @@ impl IShellUIHelper5 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IShellUIHelper5, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IShellUIHelper, IShellUIHelper2, IShellUIHelper3, IShellUIHelper4); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IShellUIHelper5 { - type Vtable = IShellUIHelper5_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IShellUIHelper5 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa2a08b09_103d_4d3f_b91c_ea455ca82efa); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IShellUIHelper5_Vtbl { @@ -27222,11 +24712,15 @@ pub struct IShellUIHelper5_Vtbl { pub msLaunchNetworkClientHelp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub msChangeDefaultBrowser: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fchange: super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShellUIHelper6(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IShellUIHelper6, + IShellUIHelper6_Vtbl, + 0x987a573e_46ee_4e89_96ab_ddf7f8fdc98c +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IShellUIHelper6, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IShellUIHelper, IShellUIHelper2, IShellUIHelper3, IShellUIHelper4, IShellUIHelper5); #[cfg(feature = "Win32_System_Com")] impl IShellUIHelper6 { pub unsafe fn ResetFirstBootMode(&self) -> ::windows_core::Result<()> { @@ -27664,16 +25158,6 @@ impl IShellUIHelper6 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IShellUIHelper6, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IShellUIHelper, IShellUIHelper2, IShellUIHelper3, IShellUIHelper4, IShellUIHelper5); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IShellUIHelper6 { - type Vtable = IShellUIHelper6_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IShellUIHelper6 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x987a573e_46ee_4e89_96ab_ddf7f8fdc98c); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IShellUIHelper6_Vtbl { @@ -27708,11 +25192,15 @@ pub struct IShellUIHelper6_Vtbl { pub msStopPeriodicBadgeUpdate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub msLaunchInternetOptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShellUIHelper7(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IShellUIHelper7, + IShellUIHelper7_Vtbl, + 0x60e567c8_9573_4ab2_a264_637c6c161cb1 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IShellUIHelper7, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IShellUIHelper, IShellUIHelper2, IShellUIHelper3, IShellUIHelper4, IShellUIHelper5, IShellUIHelper6); #[cfg(feature = "Win32_System_Com")] impl IShellUIHelper7 { pub unsafe fn ResetFirstBootMode(&self) -> ::windows_core::Result<()> { @@ -28203,19 +25691,9 @@ impl IShellUIHelper7 { where P0: ::windows_core::IntoParam<::windows_core::BSTR>, P1: ::windows_core::IntoParam, - { - (::windows_core::Interface::vtable(self).LaunchIE)(::windows_core::Interface::as_raw(self), bstrurl.into_param().abi(), automated.into_param().abi()).ok() - } -} -#[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IShellUIHelper7, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IShellUIHelper, IShellUIHelper2, IShellUIHelper3, IShellUIHelper4, IShellUIHelper5, IShellUIHelper6); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IShellUIHelper7 { - type Vtable = IShellUIHelper7_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IShellUIHelper7 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x60e567c8_9573_4ab2_a264_637c6c161cb1); + { + (::windows_core::Interface::vtable(self).LaunchIE)(::windows_core::Interface::as_raw(self), bstrurl.into_param().abi(), automated.into_param().abi()).ok() + } } #[cfg(feature = "Win32_System_Com")] #[repr(C)] @@ -28232,11 +25710,15 @@ pub struct IShellUIHelper7_Vtbl { pub HasNeedIEAutoLaunchFlag: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrurl: ::std::mem::MaybeUninit<::windows_core::BSTR>, exists: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub LaunchIE: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrurl: ::std::mem::MaybeUninit<::windows_core::BSTR>, automated: super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShellUIHelper8(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IShellUIHelper8, + IShellUIHelper8_Vtbl, + 0x66debcf2_05b0_4f07_b49b_b96241a65db2 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IShellUIHelper8, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IShellUIHelper, IShellUIHelper2, IShellUIHelper3, IShellUIHelper4, IShellUIHelper5, IShellUIHelper6, IShellUIHelper7); #[cfg(feature = "Win32_System_Com")] impl IShellUIHelper8 { pub unsafe fn ResetFirstBootMode(&self) -> ::windows_core::Result<()> { @@ -28760,16 +26242,6 @@ impl IShellUIHelper8 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IShellUIHelper8, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IShellUIHelper, IShellUIHelper2, IShellUIHelper3, IShellUIHelper4, IShellUIHelper5, IShellUIHelper6, IShellUIHelper7); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IShellUIHelper8 { - type Vtable = IShellUIHelper8_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IShellUIHelper8 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x66debcf2_05b0_4f07_b49b_b96241a65db2); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IShellUIHelper8_Vtbl { @@ -28782,11 +26254,15 @@ pub struct IShellUIHelper8_Vtbl { pub OpenFavoritesSettings: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub LaunchInHVSI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrurl: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShellUIHelper9(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IShellUIHelper9, + IShellUIHelper9_Vtbl, + 0x6cdf73b0_7f2f_451f_bc0f_63e0f3284e54 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IShellUIHelper9, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IShellUIHelper, IShellUIHelper2, IShellUIHelper3, IShellUIHelper4, IShellUIHelper5, IShellUIHelper6, IShellUIHelper7, IShellUIHelper8); #[cfg(feature = "Win32_System_Com")] impl IShellUIHelper9 { pub unsafe fn ResetFirstBootMode(&self) -> ::windows_core::Result<()> { @@ -29314,27 +26790,21 @@ impl IShellUIHelper9 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IShellUIHelper9, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IShellUIHelper, IShellUIHelper2, IShellUIHelper3, IShellUIHelper4, IShellUIHelper5, IShellUIHelper6, IShellUIHelper7, IShellUIHelper8); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IShellUIHelper9 { - type Vtable = IShellUIHelper9_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IShellUIHelper9 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6cdf73b0_7f2f_451f_bc0f_63e0f3284e54); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IShellUIHelper9_Vtbl { pub base__: IShellUIHelper8_Vtbl, pub GetOSSku: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwresult: *mut u32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Ole\"`"] #[cfg(feature = "Win32_System_Ole")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShellView(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Ole\"`"] + IShellView, + IShellView_Vtbl, + 0x000214e3_0000_0000_c000_000000000046 +); +#[cfg(feature = "Win32_System_Ole")] +::windows_core::imp::interface_hierarchy!(IShellView, ::windows_core::IUnknown, super::super::System::Ole::IOleWindow); #[cfg(feature = "Win32_System_Ole")] impl IShellView { #[doc = "Required features: `\"Win32_System_Ole\"`"] @@ -29403,23 +26873,13 @@ impl IShellView { } pub unsafe fn GetItemObject(&self, uitem: _SVGIO) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetItemObject)(::windows_core::Interface::as_raw(self), uitem.0 as _, &T::IID, &mut result__).from_abi(result__) } } #[cfg(feature = "Win32_System_Ole")] -::windows_core::imp::interface_hierarchy!(IShellView, ::windows_core::IUnknown, super::super::System::Ole::IOleWindow); -#[cfg(feature = "Win32_System_Ole")] -unsafe impl ::windows_core::Interface for IShellView { - type Vtable = IShellView_Vtbl; -} -#[cfg(feature = "Win32_System_Ole")] -unsafe impl ::windows_core::ComInterface for IShellView { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x000214e3_0000_0000_c000_000000000046); -} -#[cfg(feature = "Win32_System_Ole")] #[repr(C)] #[doc(hidden)] pub struct IShellView_Vtbl { @@ -29448,11 +26908,15 @@ pub struct IShellView_Vtbl { SelectItem: usize, pub GetItemObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uitem: u32, riid: *const ::windows_core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Ole\"`"] #[cfg(feature = "Win32_System_Ole")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShellView2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Ole\"`"] + IShellView2, + IShellView2_Vtbl, + 0x88e39e80_3578_11cf_ae69_08002b2e1262 +); +#[cfg(feature = "Win32_System_Ole")] +::windows_core::imp::interface_hierarchy!(IShellView2, ::windows_core::IUnknown, super::super::System::Ole::IOleWindow, IShellView); #[cfg(feature = "Win32_System_Ole")] impl IShellView2 { #[doc = "Required features: `\"Win32_System_Ole\"`"] @@ -29521,7 +26985,7 @@ impl IShellView2 { } pub unsafe fn GetItemObject(&self, uitem: _SVGIO) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.GetItemObject)(::windows_core::Interface::as_raw(self), uitem.0 as _, &T::IID, &mut result__).from_abi(result__) @@ -29546,16 +27010,6 @@ impl IShellView2 { } } #[cfg(feature = "Win32_System_Ole")] -::windows_core::imp::interface_hierarchy!(IShellView2, ::windows_core::IUnknown, super::super::System::Ole::IOleWindow, IShellView); -#[cfg(feature = "Win32_System_Ole")] -unsafe impl ::windows_core::Interface for IShellView2 { - type Vtable = IShellView2_Vtbl; -} -#[cfg(feature = "Win32_System_Ole")] -unsafe impl ::windows_core::ComInterface for IShellView2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x88e39e80_3578_11cf_ae69_08002b2e1262); -} -#[cfg(feature = "Win32_System_Ole")] #[repr(C)] #[doc(hidden)] pub struct IShellView2_Vtbl { @@ -29574,11 +27028,15 @@ pub struct IShellView2_Vtbl { #[cfg(not(feature = "Win32_UI_Shell_Common"))] SelectAndPositionItem: usize, } -#[doc = "Required features: `\"Win32_System_Ole\"`"] #[cfg(feature = "Win32_System_Ole")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShellView3(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Ole\"`"] + IShellView3, + IShellView3_Vtbl, + 0xec39fa88_f8af_41c5_8421_38bed28f4673 +); +#[cfg(feature = "Win32_System_Ole")] +::windows_core::imp::interface_hierarchy!(IShellView3, ::windows_core::IUnknown, super::super::System::Ole::IOleWindow, IShellView, IShellView2); #[cfg(feature = "Win32_System_Ole")] impl IShellView3 { #[doc = "Required features: `\"Win32_System_Ole\"`"] @@ -29647,7 +27105,7 @@ impl IShellView3 { } pub unsafe fn GetItemObject(&self, uitem: _SVGIO) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).base__.base__.GetItemObject)(::windows_core::Interface::as_raw(self), uitem.0 as _, &T::IID, &mut result__).from_abi(result__) @@ -29682,16 +27140,6 @@ impl IShellView3 { } } #[cfg(feature = "Win32_System_Ole")] -::windows_core::imp::interface_hierarchy!(IShellView3, ::windows_core::IUnknown, super::super::System::Ole::IOleWindow, IShellView, IShellView2); -#[cfg(feature = "Win32_System_Ole")] -unsafe impl ::windows_core::Interface for IShellView3 { - type Vtable = IShellView3_Vtbl; -} -#[cfg(feature = "Win32_System_Ole")] -unsafe impl ::windows_core::ComInterface for IShellView3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xec39fa88_f8af_41c5_8421_38bed28f4673); -} -#[cfg(feature = "Win32_System_Ole")] #[repr(C)] #[doc(hidden)] pub struct IShellView3_Vtbl { @@ -29701,11 +27149,15 @@ pub struct IShellView3_Vtbl { #[cfg(not(feature = "Win32_System_Ole"))] CreateViewWindow3: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IShellWindows(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IShellWindows, + IShellWindows_Vtbl, + 0x85cb6900_4d95_11cf_960c_0080c7f4ee85 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IShellWindows, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IShellWindows { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -29770,16 +27222,6 @@ impl IShellWindows { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IShellWindows, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IShellWindows { - type Vtable = IShellWindows_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IShellWindows { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x85cb6900_4d95_11cf_960c_0080c7f4ee85); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IShellWindows_Vtbl { @@ -29811,9 +27253,8 @@ pub struct IShellWindows_Vtbl { pub OnCreated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lcookie: i32, punk: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ProcessAttachDetach: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fattach: super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISortColumnArray(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISortColumnArray, ISortColumnArray_Vtbl, 0x6dfc60fb_f2e9_459b_beb5_288f1a7c7d54); +::windows_core::imp::interface_hierarchy!(ISortColumnArray, ::windows_core::IUnknown); impl ISortColumnArray { pub unsafe fn GetCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -29829,13 +27270,6 @@ impl ISortColumnArray { (::windows_core::Interface::vtable(self).GetSortType)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISortColumnArray, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISortColumnArray { - type Vtable = ISortColumnArray_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISortColumnArray { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6dfc60fb_f2e9_459b_beb5_288f1a7c7d54); -} #[repr(C)] #[doc(hidden)] pub struct ISortColumnArray_Vtbl { @@ -29847,9 +27281,8 @@ pub struct ISortColumnArray_Vtbl { GetAt: usize, pub GetSortType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: *mut SORT_ORDER_TYPE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStartMenuPinnedList(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IStartMenuPinnedList, IStartMenuPinnedList_Vtbl, 0x4cd19ada_25a5_4a32_b3b7_347bee5be36b); +::windows_core::imp::interface_hierarchy!(IStartMenuPinnedList, ::windows_core::IUnknown); impl IStartMenuPinnedList { pub unsafe fn RemoveFromList(&self, pitem: P0) -> ::windows_core::Result<()> where @@ -29858,22 +27291,14 @@ impl IStartMenuPinnedList { (::windows_core::Interface::vtable(self).RemoveFromList)(::windows_core::Interface::as_raw(self), pitem.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IStartMenuPinnedList, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStartMenuPinnedList { - type Vtable = IStartMenuPinnedList_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStartMenuPinnedList { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4cd19ada_25a5_4a32_b3b7_347bee5be36b); -} #[repr(C)] #[doc(hidden)] pub struct IStartMenuPinnedList_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub RemoveFromList: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pitem: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageProviderBanners(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IStorageProviderBanners, IStorageProviderBanners_Vtbl, 0x5efb46d7_47c0_4b68_acda_ded47c90ec91); +::windows_core::imp::interface_hierarchy!(IStorageProviderBanners, ::windows_core::IUnknown); impl IStorageProviderBanners { pub unsafe fn SetBanner(&self, provideridentity: P0, subscriptionid: P1, contentid: P2) -> ::windows_core::Result<()> where @@ -29905,13 +27330,6 @@ impl IStorageProviderBanners { (::windows_core::Interface::vtable(self).GetBanner)(::windows_core::Interface::as_raw(self), provideridentity.into_param().abi(), subscriptionid.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IStorageProviderBanners, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorageProviderBanners { - type Vtable = IStorageProviderBanners_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageProviderBanners { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5efb46d7_47c0_4b68_acda_ded47c90ec91); -} #[repr(C)] #[doc(hidden)] pub struct IStorageProviderBanners_Vtbl { @@ -29921,9 +27339,8 @@ pub struct IStorageProviderBanners_Vtbl { pub ClearAllBanners: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, provideridentity: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub GetBanner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, provideridentity: ::windows_core::PCWSTR, subscriptionid: ::windows_core::PCWSTR, contentid: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageProviderCopyHook(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IStorageProviderCopyHook, IStorageProviderCopyHook_Vtbl, 0x7bf992a9_af7a_4dba_b2e5_4d080b1ecbc6); +::windows_core::imp::interface_hierarchy!(IStorageProviderCopyHook, ::windows_core::IUnknown); 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 @@ -29935,22 +27352,14 @@ impl IStorageProviderCopyHook { (::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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IStorageProviderCopyHook, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorageProviderCopyHook { - type Vtable = IStorageProviderCopyHook_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageProviderCopyHook { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7bf992a9_af7a_4dba_b2e5_4d080b1ecbc6); -} #[repr(C)] #[doc(hidden)] pub struct IStorageProviderCopyHook_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub CopyCallback: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwnd: super::super::Foundation::HWND, operation: u32, flags: u32, srcfile: ::windows_core::PCWSTR, srcattribs: u32, destfile: ::windows_core::PCWSTR, destattribs: u32, result: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageProviderHandler(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IStorageProviderHandler, IStorageProviderHandler_Vtbl, 0x162c6fb5_44d3_435b_903d_e613fa093fb5); +::windows_core::imp::interface_hierarchy!(IStorageProviderHandler, ::windows_core::IUnknown); impl IStorageProviderHandler { pub unsafe fn GetPropertyHandlerFromPath(&self, path: P0) -> ::windows_core::Result where @@ -29974,13 +27383,6 @@ impl IStorageProviderHandler { (::windows_core::Interface::vtable(self).GetPropertyHandlerFromFileId)(::windows_core::Interface::as_raw(self), fileid.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IStorageProviderHandler, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorageProviderHandler { - type Vtable = IStorageProviderHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageProviderHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x162c6fb5_44d3_435b_903d_e613fa093fb5); -} #[repr(C)] #[doc(hidden)] pub struct IStorageProviderHandler_Vtbl { @@ -29989,9 +27391,8 @@ pub struct IStorageProviderHandler_Vtbl { pub GetPropertyHandlerFromUri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uri: ::windows_core::PCWSTR, propertyhandler: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetPropertyHandlerFromFileId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fileid: ::windows_core::PCWSTR, propertyhandler: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStorageProviderPropertyHandler(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IStorageProviderPropertyHandler, IStorageProviderPropertyHandler_Vtbl, 0x301dfbe5_524c_4b0f_8b2d_21c40b3a2988); +::windows_core::imp::interface_hierarchy!(IStorageProviderPropertyHandler, ::windows_core::IUnknown); impl IStorageProviderPropertyHandler { #[doc = "Required features: `\"Win32_UI_Shell_PropertiesSystem\"`"] #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] @@ -30008,13 +27409,6 @@ impl IStorageProviderPropertyHandler { (::windows_core::Interface::vtable(self).SaveProperties)(::windows_core::Interface::as_raw(self), propertiestosave.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IStorageProviderPropertyHandler, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStorageProviderPropertyHandler { - type Vtable = IStorageProviderPropertyHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStorageProviderPropertyHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x301dfbe5_524c_4b0f_8b2d_21c40b3a2988); -} #[repr(C)] #[doc(hidden)] pub struct IStorageProviderPropertyHandler_Vtbl { @@ -30028,11 +27422,15 @@ pub struct IStorageProviderPropertyHandler_Vtbl { #[cfg(not(feature = "Win32_UI_Shell_PropertiesSystem"))] SaveProperties: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStreamAsync(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IStreamAsync, + IStreamAsync_Vtbl, + 0xfe0b6665_e0ca_49b9_a178_2b5cb48d92a5 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IStreamAsync, ::windows_core::IUnknown, super::super::System::Com::ISequentialStream, super::super::System::Com::IStream); #[cfg(feature = "Win32_System_Com")] impl IStreamAsync { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -30117,16 +27515,6 @@ impl IStreamAsync { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IStreamAsync, ::windows_core::IUnknown, super::super::System::Com::ISequentialStream, super::super::System::Com::IStream); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IStreamAsync { - type Vtable = IStreamAsync_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IStreamAsync { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfe0b6665_e0ca_49b9_a178_2b5cb48d92a5); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IStreamAsync_Vtbl { @@ -30145,31 +27533,22 @@ pub struct IStreamAsync_Vtbl { OverlappedResult: usize, pub CancelIo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStreamUnbufferedInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IStreamUnbufferedInfo, IStreamUnbufferedInfo_Vtbl, 0x8a68fdda_1fdc_4c20_8ceb_416643b5a625); +::windows_core::imp::interface_hierarchy!(IStreamUnbufferedInfo, ::windows_core::IUnknown); impl IStreamUnbufferedInfo { pub unsafe fn GetSectorSize(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetSectorSize)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IStreamUnbufferedInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStreamUnbufferedInfo { - type Vtable = IStreamUnbufferedInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStreamUnbufferedInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8a68fdda_1fdc_4c20_8ceb_416643b5a625); -} #[repr(C)] #[doc(hidden)] pub struct IStreamUnbufferedInfo_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetSectorSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcbsectorsize: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISuspensionDependencyManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISuspensionDependencyManager, ISuspensionDependencyManager_Vtbl, 0x52b83a42_2543_416a_81d9_c0de7969c8b3); +::windows_core::imp::interface_hierarchy!(ISuspensionDependencyManager, ::windows_core::IUnknown); impl ISuspensionDependencyManager { pub unsafe fn RegisterAsChild(&self, processhandle: P0) -> ::windows_core::Result<()> where @@ -30190,13 +27569,6 @@ impl ISuspensionDependencyManager { (::windows_core::Interface::vtable(self).UngroupChildFromParent)(::windows_core::Interface::as_raw(self), childprocesshandle.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ISuspensionDependencyManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISuspensionDependencyManager { - type Vtable = ISuspensionDependencyManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISuspensionDependencyManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x52b83a42_2543_416a_81d9_c0de7969c8b3); -} #[repr(C)] #[doc(hidden)] pub struct ISuspensionDependencyManager_Vtbl { @@ -30205,9 +27577,8 @@ pub struct ISuspensionDependencyManager_Vtbl { pub GroupChildWithParent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, childprocesshandle: super::super::Foundation::HANDLE) -> ::windows_core::HRESULT, pub UngroupChildFromParent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, childprocesshandle: super::super::Foundation::HANDLE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyncMgrConflict(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISyncMgrConflict, ISyncMgrConflict_Vtbl, 0x9c204249_c443_4ba4_85ed_c972681db137); +::windows_core::imp::interface_hierarchy!(ISyncMgrConflict, ::windows_core::IUnknown); impl ISyncMgrConflict { #[doc = "Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_System_Variant\"`, `\"Win32_UI_Shell_PropertiesSystem\"`"] #[cfg(all(feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Variant", feature = "Win32_UI_Shell_PropertiesSystem"))] @@ -30233,19 +27604,12 @@ impl ISyncMgrConflict { } pub unsafe fn GetResolutionHandler(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetResolutionHandler)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISyncMgrConflict, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISyncMgrConflict { - type Vtable = ISyncMgrConflict_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyncMgrConflict { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9c204249_c443_4ba4_85ed_c972681db137); -} #[repr(C)] #[doc(hidden)] pub struct ISyncMgrConflict_Vtbl { @@ -30262,9 +27626,8 @@ pub struct ISyncMgrConflict_Vtbl { pub Resolve: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, presolveinfo: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetResolutionHandler: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppvresolutionhandler: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyncMgrConflictFolder(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISyncMgrConflictFolder, ISyncMgrConflictFolder_Vtbl, 0x59287f5e_bc81_4fca_a7f1_e5a8ecdb1d69); +::windows_core::imp::interface_hierarchy!(ISyncMgrConflictFolder, ::windows_core::IUnknown); impl ISyncMgrConflictFolder { #[doc = "Required features: `\"Win32_UI_Shell_Common\"`"] #[cfg(feature = "Win32_UI_Shell_Common")] @@ -30276,13 +27639,6 @@ impl ISyncMgrConflictFolder { (::windows_core::Interface::vtable(self).GetConflictIDList)(::windows_core::Interface::as_raw(self), pconflict.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISyncMgrConflictFolder, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISyncMgrConflictFolder { - type Vtable = ISyncMgrConflictFolder_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyncMgrConflictFolder { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x59287f5e_bc81_4fca_a7f1_e5a8ecdb1d69); -} #[repr(C)] #[doc(hidden)] pub struct ISyncMgrConflictFolder_Vtbl { @@ -30292,9 +27648,8 @@ pub struct ISyncMgrConflictFolder_Vtbl { #[cfg(not(feature = "Win32_UI_Shell_Common"))] GetConflictIDList: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyncMgrConflictItems(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISyncMgrConflictItems, ISyncMgrConflictItems_Vtbl, 0x9c7ead52_8023_4936_a4db_d2a9a99e436a); +::windows_core::imp::interface_hierarchy!(ISyncMgrConflictItems, ::windows_core::IUnknown); impl ISyncMgrConflictItems { pub unsafe fn GetCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -30304,13 +27659,6 @@ impl ISyncMgrConflictItems { (::windows_core::Interface::vtable(self).GetItem)(::windows_core::Interface::as_raw(self), iindex, piteminfo).ok() } } -::windows_core::imp::interface_hierarchy!(ISyncMgrConflictItems, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISyncMgrConflictItems { - type Vtable = ISyncMgrConflictItems_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyncMgrConflictItems { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9c7ead52_8023_4936_a4db_d2a9a99e436a); -} #[repr(C)] #[doc(hidden)] pub struct ISyncMgrConflictItems_Vtbl { @@ -30318,9 +27666,8 @@ pub struct ISyncMgrConflictItems_Vtbl { pub GetCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcount: *mut u32) -> ::windows_core::HRESULT, pub GetItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, iindex: u32, piteminfo: *mut CONFIRM_CONFLICT_ITEM) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyncMgrConflictPresenter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISyncMgrConflictPresenter, ISyncMgrConflictPresenter_Vtbl, 0x0b4f5353_fd2b_42cd_8763_4779f2d508a3); +::windows_core::imp::interface_hierarchy!(ISyncMgrConflictPresenter, ::windows_core::IUnknown); impl ISyncMgrConflictPresenter { pub unsafe fn PresentConflict(&self, pconflict: P0, presolveinfo: P1) -> ::windows_core::Result<()> where @@ -30330,22 +27677,14 @@ impl ISyncMgrConflictPresenter { (::windows_core::Interface::vtable(self).PresentConflict)(::windows_core::Interface::as_raw(self), pconflict.into_param().abi(), presolveinfo.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ISyncMgrConflictPresenter, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISyncMgrConflictPresenter { - type Vtable = ISyncMgrConflictPresenter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyncMgrConflictPresenter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0b4f5353_fd2b_42cd_8763_4779f2d508a3); -} #[repr(C)] #[doc(hidden)] pub struct ISyncMgrConflictPresenter_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub PresentConflict: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pconflict: *mut ::core::ffi::c_void, presolveinfo: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyncMgrConflictResolutionItems(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISyncMgrConflictResolutionItems, ISyncMgrConflictResolutionItems_Vtbl, 0x458725b9_129d_4135_a998_9ceafec27007); +::windows_core::imp::interface_hierarchy!(ISyncMgrConflictResolutionItems, ::windows_core::IUnknown); impl ISyncMgrConflictResolutionItems { pub unsafe fn GetCount(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -30356,13 +27695,6 @@ impl ISyncMgrConflictResolutionItems { (::windows_core::Interface::vtable(self).GetItem)(::windows_core::Interface::as_raw(self), iindex, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISyncMgrConflictResolutionItems, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISyncMgrConflictResolutionItems { - type Vtable = ISyncMgrConflictResolutionItems_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyncMgrConflictResolutionItems { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x458725b9_129d_4135_a998_9ceafec27007); -} #[repr(C)] #[doc(hidden)] pub struct ISyncMgrConflictResolutionItems_Vtbl { @@ -30370,9 +27702,8 @@ pub struct ISyncMgrConflictResolutionItems_Vtbl { pub GetCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcount: *mut u32) -> ::windows_core::HRESULT, pub GetItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, iindex: u32, piteminfo: *mut CONFIRM_CONFLICT_RESULT_INFO) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyncMgrConflictResolveInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISyncMgrConflictResolveInfo, ISyncMgrConflictResolveInfo_Vtbl, 0xc405a219_25a2_442e_8743_b845a2cee93f); +::windows_core::imp::interface_hierarchy!(ISyncMgrConflictResolveInfo, ::windows_core::IUnknown); impl ISyncMgrConflictResolveInfo { pub unsafe fn GetIterationInfo(&self, pncurrentconflict: *mut u32, pcconflicts: *mut u32, pcremainingforapplytoall: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetIterationInfo)(::windows_core::Interface::as_raw(self), pncurrentconflict, pcconflicts, pcremainingforapplytoall).ok() @@ -30405,13 +27736,6 @@ impl ISyncMgrConflictResolveInfo { (::windows_core::Interface::vtable(self).SetItemChoices)(::windows_core::Interface::as_raw(self), prgiconflictitemindexes, cchoices).ok() } } -::windows_core::imp::interface_hierarchy!(ISyncMgrConflictResolveInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISyncMgrConflictResolveInfo { - type Vtable = ISyncMgrConflictResolveInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyncMgrConflictResolveInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc405a219_25a2_442e_8743_b845a2cee93f); -} #[repr(C)] #[doc(hidden)] pub struct ISyncMgrConflictResolveInfo_Vtbl { @@ -30425,9 +27749,8 @@ pub struct ISyncMgrConflictResolveInfo_Vtbl { pub SetPresenterChoice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, npresenterchoice: SYNCMGR_PRESENTER_CHOICE, fapplytoall: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub SetItemChoices: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prgiconflictitemindexes: *mut u32, cchoices: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyncMgrConflictStore(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISyncMgrConflictStore, ISyncMgrConflictStore_Vtbl, 0xcf8fc579_c396_4774_85f1_d908a831156e); +::windows_core::imp::interface_hierarchy!(ISyncMgrConflictStore, ::windows_core::IUnknown); impl ISyncMgrConflictStore { pub unsafe fn EnumConflicts(&self, pszhandlerid: P0, pszitemid: P1) -> ::windows_core::Result where @@ -30441,7 +27764,7 @@ impl ISyncMgrConflictStore { #[cfg(feature = "Win32_System_Com")] pub unsafe fn BindToConflict(&self, pconflictidinfo: *const SYNCMGR_CONFLICT_ID_INFO) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).BindToConflict)(::windows_core::Interface::as_raw(self), pconflictidinfo, &T::IID, &mut result__).from_abi(result__) @@ -30460,13 +27783,6 @@ impl ISyncMgrConflictStore { (::windows_core::Interface::vtable(self).GetCount)(::windows_core::Interface::as_raw(self), pszhandlerid.into_param().abi(), pszitemid.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISyncMgrConflictStore, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISyncMgrConflictStore { - type Vtable = ISyncMgrConflictStore_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyncMgrConflictStore { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcf8fc579_c396_4774_85f1_d908a831156e); -} #[repr(C)] #[doc(hidden)] pub struct ISyncMgrConflictStore_Vtbl { @@ -30482,9 +27798,8 @@ pub struct ISyncMgrConflictStore_Vtbl { RemoveConflicts: usize, pub GetCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszhandlerid: ::windows_core::PCWSTR, pszitemid: ::windows_core::PCWSTR, pnconflicts: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyncMgrControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISyncMgrControl, ISyncMgrControl_Vtbl, 0x9b63616c_36b2_46bc_959f_c1593952d19b); +::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 @@ -30589,13 +27904,6 @@ impl ISyncMgrControl { (::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::imp::interface_hierarchy!(ISyncMgrControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISyncMgrControl { - type Vtable = ISyncMgrControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyncMgrControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9b63616c_36b2_46bc_959f_c1593952d19b); -} #[repr(C)] #[doc(hidden)] pub struct ISyncMgrControl_Vtbl { @@ -30616,9 +27924,8 @@ pub struct ISyncMgrControl_Vtbl { pub EnableHandler: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fenable: super::super::Foundation::BOOL, pszhandlerid: ::windows_core::PCWSTR, hwndowner: super::super::Foundation::HWND, ncontrolflags: SYNCMGR_CONTROL_FLAGS) -> ::windows_core::HRESULT, pub EnableItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fenable: super::super::Foundation::BOOL, pszhandlerid: ::windows_core::PCWSTR, pszitemid: ::windows_core::PCWSTR, hwndowner: super::super::Foundation::HWND, ncontrolflags: SYNCMGR_CONTROL_FLAGS) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyncMgrEnumItems(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISyncMgrEnumItems, ISyncMgrEnumItems_Vtbl, 0x6295df2a_35ee_11d1_8707_00c04fd93327); +::windows_core::imp::interface_hierarchy!(ISyncMgrEnumItems, ::windows_core::IUnknown); impl ISyncMgrEnumItems { #[doc = "Required features: `\"Win32_UI_WindowsAndMessaging\"`"] #[cfg(feature = "Win32_UI_WindowsAndMessaging")] @@ -30636,13 +27943,6 @@ impl ISyncMgrEnumItems { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISyncMgrEnumItems, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISyncMgrEnumItems { - type Vtable = ISyncMgrEnumItems_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyncMgrEnumItems { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6295df2a_35ee_11d1_8707_00c04fd93327); -} #[repr(C)] #[doc(hidden)] pub struct ISyncMgrEnumItems_Vtbl { @@ -30655,9 +27955,8 @@ pub struct ISyncMgrEnumItems_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyncMgrEvent(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISyncMgrEvent, ISyncMgrEvent_Vtbl, 0xfee0ef8b_46bd_4db4_b7e6_ff2c687313bc); +::windows_core::imp::interface_hierarchy!(ISyncMgrEvent, ::windows_core::IUnknown); impl ISyncMgrEvent { pub unsafe fn GetEventID(&self) -> ::windows_core::Result<::windows_core::GUID> { let mut result__ = ::std::mem::zeroed(); @@ -30704,13 +28003,6 @@ impl ISyncMgrEvent { (::windows_core::Interface::vtable(self).GetContext)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISyncMgrEvent, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISyncMgrEvent { - type Vtable = ISyncMgrEvent_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyncMgrEvent { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfee0ef8b_46bd_4db4_b7e6_ff2c687313bc); -} #[repr(C)] #[doc(hidden)] pub struct ISyncMgrEvent_Vtbl { @@ -30727,9 +28019,8 @@ pub struct ISyncMgrEvent_Vtbl { pub GetLinkReference: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppszlinkreference: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, pub GetContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppszcontext: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyncMgrEventLinkUIOperation(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISyncMgrEventLinkUIOperation, ISyncMgrEventLinkUIOperation_Vtbl, 0x64522e52_848b_4015_89ce_5a36f00b94ff); +::windows_core::imp::interface_hierarchy!(ISyncMgrEventLinkUIOperation, ::windows_core::IUnknown, ISyncMgrUIOperation); impl ISyncMgrEventLinkUIOperation { pub unsafe fn Run(&self, hwndowner: P0) -> ::windows_core::Result<()> where @@ -30744,22 +28035,14 @@ impl ISyncMgrEventLinkUIOperation { (::windows_core::Interface::vtable(self).Init)(::windows_core::Interface::as_raw(self), rguideventid, pevent.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ISyncMgrEventLinkUIOperation, ::windows_core::IUnknown, ISyncMgrUIOperation); -unsafe impl ::windows_core::Interface for ISyncMgrEventLinkUIOperation { - type Vtable = ISyncMgrEventLinkUIOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyncMgrEventLinkUIOperation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x64522e52_848b_4015_89ce_5a36f00b94ff); -} #[repr(C)] #[doc(hidden)] pub struct ISyncMgrEventLinkUIOperation_Vtbl { pub base__: ISyncMgrUIOperation_Vtbl, pub Init: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rguideventid: *const ::windows_core::GUID, pevent: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyncMgrEventStore(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISyncMgrEventStore, ISyncMgrEventStore_Vtbl, 0x37e412f9_016e_44c2_81ff_db3add774266); +::windows_core::imp::interface_hierarchy!(ISyncMgrEventStore, ::windows_core::IUnknown); impl ISyncMgrEventStore { pub unsafe fn GetEventEnumerator(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -30777,13 +28060,6 @@ impl ISyncMgrEventStore { (::windows_core::Interface::vtable(self).RemoveEvent)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pguideventids.as_ptr()), pguideventids.len().try_into().unwrap()).ok() } } -::windows_core::imp::interface_hierarchy!(ISyncMgrEventStore, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISyncMgrEventStore { - type Vtable = ISyncMgrEventStore_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyncMgrEventStore { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x37e412f9_016e_44c2_81ff_db3add774266); -} #[repr(C)] #[doc(hidden)] pub struct ISyncMgrEventStore_Vtbl { @@ -30793,9 +28069,8 @@ pub struct ISyncMgrEventStore_Vtbl { pub GetEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rguideventid: *const ::windows_core::GUID, ppevent: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RemoveEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pguideventids: *const ::windows_core::GUID, cevents: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyncMgrHandler(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISyncMgrHandler, ISyncMgrHandler_Vtbl, 0x04ec2e43_ac77_49f9_9b98_0307ef7a72a2); +::windows_core::imp::interface_hierarchy!(ISyncMgrHandler, ::windows_core::IUnknown); impl ISyncMgrHandler { pub unsafe fn GetName(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); @@ -30807,7 +28082,7 @@ impl ISyncMgrHandler { } pub unsafe fn GetObject(&self, rguidobjectid: *const ::windows_core::GUID) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetObject)(::windows_core::Interface::as_raw(self), rguidobjectid, &T::IID, &mut result__).from_abi(result__) @@ -30841,13 +28116,6 @@ impl ISyncMgrHandler { (::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::imp::interface_hierarchy!(ISyncMgrHandler, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISyncMgrHandler { - type Vtable = ISyncMgrHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyncMgrHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x04ec2e43_ac77_49f9_9b98_0307ef7a72a2); -} #[repr(C)] #[doc(hidden)] pub struct ISyncMgrHandler_Vtbl { @@ -30861,9 +28129,8 @@ pub struct ISyncMgrHandler_Vtbl { pub Enable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub Synchronize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppszitemids: *const ::windows_core::PCWSTR, citems: u32, hwndowner: super::super::Foundation::HWND, psessioncreator: *mut ::core::ffi::c_void, punk: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyncMgrHandlerCollection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISyncMgrHandlerCollection, ISyncMgrHandlerCollection_Vtbl, 0xa7f337a3_d20b_45cb_9ed7_87d094ca5045); +::windows_core::imp::interface_hierarchy!(ISyncMgrHandlerCollection, ::windows_core::IUnknown); impl ISyncMgrHandlerCollection { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -30874,19 +28141,12 @@ impl ISyncMgrHandlerCollection { pub unsafe fn BindToHandler(&self, pszhandlerid: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISyncMgrHandlerCollection, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISyncMgrHandlerCollection { - type Vtable = ISyncMgrHandlerCollection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyncMgrHandlerCollection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa7f337a3_d20b_45cb_9ed7_87d094ca5045); -} #[repr(C)] #[doc(hidden)] pub struct ISyncMgrHandlerCollection_Vtbl { @@ -30897,9 +28157,8 @@ pub struct ISyncMgrHandlerCollection_Vtbl { GetHandlerEnumerator: usize, pub BindToHandler: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszhandlerid: ::windows_core::PCWSTR, riid: *const ::windows_core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyncMgrHandlerInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISyncMgrHandlerInfo, ISyncMgrHandlerInfo_Vtbl, 0x4ff1d798_ecf7_4524_aa81_1e362a0aef3a); +::windows_core::imp::interface_hierarchy!(ISyncMgrHandlerInfo, ::windows_core::IUnknown); impl ISyncMgrHandlerInfo { pub unsafe fn GetType(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -30927,13 +28186,6 @@ impl ISyncMgrHandlerInfo { (::windows_core::Interface::vtable(self).IsConnected)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ISyncMgrHandlerInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISyncMgrHandlerInfo { - type Vtable = ISyncMgrHandlerInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyncMgrHandlerInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4ff1d798_ecf7_4524_aa81_1e362a0aef3a); -} #[repr(C)] #[doc(hidden)] pub struct ISyncMgrHandlerInfo_Vtbl { @@ -30946,9 +28198,8 @@ pub struct ISyncMgrHandlerInfo_Vtbl { pub IsEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub IsConnected: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyncMgrRegister(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISyncMgrRegister, ISyncMgrRegister_Vtbl, 0x6295df42_35ee_11d1_8707_00c04fd93327); +::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 @@ -30963,13 +28214,6 @@ impl ISyncMgrRegister { (::windows_core::Interface::vtable(self).GetHandlerRegistrationInfo)(::windows_core::Interface::as_raw(self), clsidhandler, pdwsyncmgrregisterflags).ok() } } -::windows_core::imp::interface_hierarchy!(ISyncMgrRegister, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISyncMgrRegister { - type Vtable = ISyncMgrRegister_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyncMgrRegister { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6295df42_35ee_11d1_8707_00c04fd93327); -} #[repr(C)] #[doc(hidden)] pub struct ISyncMgrRegister_Vtbl { @@ -30978,9 +28222,8 @@ pub struct ISyncMgrRegister_Vtbl { pub UnregisterSyncMgrHandler: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, clsidhandler: *const ::windows_core::GUID, dwreserved: u32) -> ::windows_core::HRESULT, pub GetHandlerRegistrationInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, clsidhandler: *const ::windows_core::GUID, pdwsyncmgrregisterflags: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyncMgrResolutionHandler(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISyncMgrResolutionHandler, ISyncMgrResolutionHandler_Vtbl, 0x40a3d052_8bff_4c4b_a338_d4a395700de9); +::windows_core::imp::interface_hierarchy!(ISyncMgrResolutionHandler, ::windows_core::IUnknown); impl ISyncMgrResolutionHandler { pub unsafe fn QueryAbilities(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -31009,13 +28252,6 @@ impl ISyncMgrResolutionHandler { (::windows_core::Interface::vtable(self).KeepItems)(::windows_core::Interface::as_raw(self), parray.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISyncMgrResolutionHandler, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISyncMgrResolutionHandler { - type Vtable = ISyncMgrResolutionHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyncMgrResolutionHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x40a3d052_8bff_4c4b_a338_d4a395700de9); -} #[repr(C)] #[doc(hidden)] pub struct ISyncMgrResolutionHandler_Vtbl { @@ -31026,9 +28262,8 @@ pub struct ISyncMgrResolutionHandler_Vtbl { pub RemoveFromSyncSet: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfeedback: *mut SYNCMGR_RESOLUTION_FEEDBACK) -> ::windows_core::HRESULT, pub KeepItems: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, parray: *mut ::core::ffi::c_void, pfeedback: *mut SYNCMGR_RESOLUTION_FEEDBACK) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyncMgrScheduleWizardUIOperation(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISyncMgrScheduleWizardUIOperation, ISyncMgrScheduleWizardUIOperation_Vtbl, 0x459a6c84_21d2_4ddc_8a53_f023a46066f2); +::windows_core::imp::interface_hierarchy!(ISyncMgrScheduleWizardUIOperation, ::windows_core::IUnknown, ISyncMgrUIOperation); impl ISyncMgrScheduleWizardUIOperation { pub unsafe fn Run(&self, hwndowner: P0) -> ::windows_core::Result<()> where @@ -31043,22 +28278,14 @@ impl ISyncMgrScheduleWizardUIOperation { (::windows_core::Interface::vtable(self).InitWizard)(::windows_core::Interface::as_raw(self), pszhandlerid.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ISyncMgrScheduleWizardUIOperation, ::windows_core::IUnknown, ISyncMgrUIOperation); -unsafe impl ::windows_core::Interface for ISyncMgrScheduleWizardUIOperation { - type Vtable = ISyncMgrScheduleWizardUIOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyncMgrScheduleWizardUIOperation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x459a6c84_21d2_4ddc_8a53_f023a46066f2); -} #[repr(C)] #[doc(hidden)] pub struct ISyncMgrScheduleWizardUIOperation_Vtbl { pub base__: ISyncMgrUIOperation_Vtbl, pub InitWizard: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszhandlerid: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyncMgrSessionCreator(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISyncMgrSessionCreator, ISyncMgrSessionCreator_Vtbl, 0x17f48517_f305_4321_a08d_b25a834918fd); +::windows_core::imp::interface_hierarchy!(ISyncMgrSessionCreator, ::windows_core::IUnknown); impl ISyncMgrSessionCreator { pub unsafe fn CreateSession(&self, pszhandlerid: P0, ppszitemids: &[::windows_core::PCWSTR]) -> ::windows_core::Result where @@ -31068,22 +28295,14 @@ impl ISyncMgrSessionCreator { (::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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISyncMgrSessionCreator, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISyncMgrSessionCreator { - type Vtable = ISyncMgrSessionCreator_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyncMgrSessionCreator { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x17f48517_f305_4321_a08d_b25a834918fd); -} #[repr(C)] #[doc(hidden)] pub struct ISyncMgrSessionCreator_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub CreateSession: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszhandlerid: ::windows_core::PCWSTR, ppszitemids: *const ::windows_core::PCWSTR, citems: u32, ppcallback: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyncMgrSyncCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISyncMgrSyncCallback, ISyncMgrSyncCallback_Vtbl, 0x884ccd87_b139_4937_a4ba_4f8e19513fbe); +::windows_core::imp::interface_hierarchy!(ISyncMgrSyncCallback, ::windows_core::IUnknown); 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 @@ -31149,13 +28368,6 @@ impl ISyncMgrSyncCallback { (::windows_core::Interface::vtable(self).ReportManualSync)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ISyncMgrSyncCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISyncMgrSyncCallback { - type Vtable = ISyncMgrSyncCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyncMgrSyncCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x884ccd87_b139_4937_a4ba_4f8e19513fbe); -} #[repr(C)] #[doc(hidden)] pub struct ISyncMgrSyncCallback_Vtbl { @@ -31174,9 +28386,8 @@ pub struct ISyncMgrSyncCallback_Vtbl { pub CommitItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszitemid: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub ReportManualSync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyncMgrSyncItem(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISyncMgrSyncItem, ISyncMgrSyncItem_Vtbl, 0xb20b24ce_2593_4f04_bd8b_7ad6c45051cd); +::windows_core::imp::interface_hierarchy!(ISyncMgrSyncItem, ::windows_core::IUnknown); impl ISyncMgrSyncItem { pub unsafe fn GetItemID(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); @@ -31192,7 +28403,7 @@ impl ISyncMgrSyncItem { } pub unsafe fn GetObject(&self, rguidobjectid: *const ::windows_core::GUID) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetObject)(::windows_core::Interface::as_raw(self), rguidobjectid, &T::IID, &mut result__).from_abi(result__) @@ -31215,13 +28426,6 @@ impl ISyncMgrSyncItem { (::windows_core::Interface::vtable(self).Delete)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ISyncMgrSyncItem, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISyncMgrSyncItem { - type Vtable = ISyncMgrSyncItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyncMgrSyncItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb20b24ce_2593_4f04_bd8b_7ad6c45051cd); -} #[repr(C)] #[doc(hidden)] pub struct ISyncMgrSyncItem_Vtbl { @@ -31235,9 +28439,8 @@ pub struct ISyncMgrSyncItem_Vtbl { pub Enable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub Delete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyncMgrSyncItemContainer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISyncMgrSyncItemContainer, ISyncMgrSyncItemContainer_Vtbl, 0x90701133_be32_4129_a65c_99e616cafff4); +::windows_core::imp::interface_hierarchy!(ISyncMgrSyncItemContainer, ::windows_core::IUnknown); impl ISyncMgrSyncItemContainer { pub unsafe fn GetSyncItem(&self, pszitemid: P0) -> ::windows_core::Result where @@ -31255,13 +28458,6 @@ impl ISyncMgrSyncItemContainer { (::windows_core::Interface::vtable(self).GetSyncItemCount)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ISyncMgrSyncItemContainer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISyncMgrSyncItemContainer { - type Vtable = ISyncMgrSyncItemContainer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyncMgrSyncItemContainer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x90701133_be32_4129_a65c_99e616cafff4); -} #[repr(C)] #[doc(hidden)] pub struct ISyncMgrSyncItemContainer_Vtbl { @@ -31270,9 +28466,8 @@ pub struct ISyncMgrSyncItemContainer_Vtbl { pub GetSyncItemEnumerator: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetSyncItemCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcitems: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyncMgrSyncItemInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISyncMgrSyncItemInfo, ISyncMgrSyncItemInfo_Vtbl, 0xe7fd9502_be0c_4464_90a1_2b5277031232); +::windows_core::imp::interface_hierarchy!(ISyncMgrSyncItemInfo, ::windows_core::IUnknown); impl ISyncMgrSyncItemInfo { pub unsafe fn GetTypeLabel(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); @@ -31293,13 +28488,6 @@ impl ISyncMgrSyncItemInfo { (::windows_core::Interface::vtable(self).IsConnected)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ISyncMgrSyncItemInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISyncMgrSyncItemInfo { - type Vtable = ISyncMgrSyncItemInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyncMgrSyncItemInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe7fd9502_be0c_4464_90a1_2b5277031232); -} #[repr(C)] #[doc(hidden)] pub struct ISyncMgrSyncItemInfo_Vtbl { @@ -31310,30 +28498,21 @@ pub struct ISyncMgrSyncItemInfo_Vtbl { pub IsEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub IsConnected: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyncMgrSyncResult(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISyncMgrSyncResult, ISyncMgrSyncResult_Vtbl, 0x2b90f17e_5a3e_4b33_bb7f_1bc48056b94d); +::windows_core::imp::interface_hierarchy!(ISyncMgrSyncResult, ::windows_core::IUnknown); impl ISyncMgrSyncResult { pub unsafe fn Result(&self, nstatus: SYNCMGR_PROGRESS_STATUS, cerror: u32, cconflicts: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Result)(::windows_core::Interface::as_raw(self), nstatus, cerror, cconflicts).ok() } } -::windows_core::imp::interface_hierarchy!(ISyncMgrSyncResult, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISyncMgrSyncResult { - type Vtable = ISyncMgrSyncResult_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyncMgrSyncResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2b90f17e_5a3e_4b33_bb7f_1bc48056b94d); -} #[repr(C)] #[doc(hidden)] pub struct ISyncMgrSyncResult_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Result: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nstatus: SYNCMGR_PROGRESS_STATUS, cerror: u32, cconflicts: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyncMgrSynchronize(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISyncMgrSynchronize, ISyncMgrSynchronize_Vtbl, 0x6295df40_35ee_11d1_8707_00c04fd93327); +::windows_core::imp::interface_hierarchy!(ISyncMgrSynchronize, ::windows_core::IUnknown); impl ISyncMgrSynchronize { pub unsafe fn Initialize(&self, dwreserved: u32, dwsyncmgrflags: u32, lpcookie: &[u8]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Initialize)(::windows_core::Interface::as_raw(self), dwreserved, dwsyncmgrflags, lpcookie.len().try_into().unwrap(), ::core::mem::transmute(lpcookie.as_ptr())).ok() @@ -31350,7 +28529,7 @@ impl ISyncMgrSynchronize { } pub unsafe fn GetItemObject(&self, itemid: *const ::windows_core::GUID) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).GetItemObject)(::windows_core::Interface::as_raw(self), itemid, &T::IID, &mut result__).from_abi(result__) @@ -31389,13 +28568,6 @@ impl ISyncMgrSynchronize { (::windows_core::Interface::vtable(self).ShowError)(::windows_core::Interface::as_raw(self), hwndparent.into_param().abi(), errorid).ok() } } -::windows_core::imp::interface_hierarchy!(ISyncMgrSynchronize, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISyncMgrSynchronize { - type Vtable = ISyncMgrSynchronize_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyncMgrSynchronize { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6295df40_35ee_11d1_8707_00c04fd93327); -} #[repr(C)] #[doc(hidden)] pub struct ISyncMgrSynchronize_Vtbl { @@ -31414,9 +28586,8 @@ pub struct ISyncMgrSynchronize_Vtbl { pub SetItemStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pitemid: *const ::windows_core::GUID, dwsyncmgrstatus: u32) -> ::windows_core::HRESULT, pub ShowError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwndparent: super::super::Foundation::HWND, errorid: *const ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyncMgrSynchronizeCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISyncMgrSynchronizeCallback, ISyncMgrSynchronizeCallback_Vtbl, 0x6295df41_35ee_11d1_8707_00c04fd93327); +::windows_core::imp::interface_hierarchy!(ISyncMgrSynchronizeCallback, ::windows_core::IUnknown); impl ISyncMgrSynchronizeCallback { pub unsafe fn ShowPropertiesCompleted(&self, hr: ::windows_core::HRESULT) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).ShowPropertiesCompleted)(::windows_core::Interface::as_raw(self), hr).ok() @@ -31455,13 +28626,6 @@ impl ISyncMgrSynchronizeCallback { (::windows_core::Interface::vtable(self).EstablishConnection)(::windows_core::Interface::as_raw(self), pwszconnection.into_param().abi(), dwreserved).ok() } } -::windows_core::imp::interface_hierarchy!(ISyncMgrSynchronizeCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISyncMgrSynchronizeCallback { - type Vtable = ISyncMgrSynchronizeCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyncMgrSynchronizeCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6295df41_35ee_11d1_8707_00c04fd93327); -} #[repr(C)] #[doc(hidden)] pub struct ISyncMgrSynchronizeCallback_Vtbl { @@ -31476,23 +28640,15 @@ pub struct ISyncMgrSynchronizeCallback_Vtbl { pub DeleteLogError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, errorid: *const ::windows_core::GUID, dwreserved: u32) -> ::windows_core::HRESULT, pub EstablishConnection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwszconnection: ::windows_core::PCWSTR, dwreserved: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyncMgrSynchronizeInvoke(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISyncMgrSynchronizeInvoke, ISyncMgrSynchronizeInvoke_Vtbl, 0x6295df2c_35ee_11d1_8707_00c04fd93327); +::windows_core::imp::interface_hierarchy!(ISyncMgrSynchronizeInvoke, ::windows_core::IUnknown); impl ISyncMgrSynchronizeInvoke { pub unsafe fn UpdateItems(&self, dwinvokeflags: u32, clsid: *const ::windows_core::GUID, pcookie: &[u8]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).UpdateItems)(::windows_core::Interface::as_raw(self), dwinvokeflags, clsid, pcookie.len().try_into().unwrap(), ::core::mem::transmute(pcookie.as_ptr())).ok() } pub unsafe fn UpdateAll(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).UpdateAll)(::windows_core::Interface::as_raw(self)).ok() - } -} -::windows_core::imp::interface_hierarchy!(ISyncMgrSynchronizeInvoke, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISyncMgrSynchronizeInvoke { - type Vtable = ISyncMgrSynchronizeInvoke_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyncMgrSynchronizeInvoke { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6295df2c_35ee_11d1_8707_00c04fd93327); + } } #[repr(C)] #[doc(hidden)] @@ -31501,9 +28657,8 @@ pub struct ISyncMgrSynchronizeInvoke_Vtbl { pub UpdateItems: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwinvokeflags: u32, clsid: *const ::windows_core::GUID, cbcookie: u32, pcookie: *const u8) -> ::windows_core::HRESULT, pub UpdateAll: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISyncMgrUIOperation(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISyncMgrUIOperation, ISyncMgrUIOperation_Vtbl, 0xfc7cfa47_dfe1_45b5_a049_8cfd82bec271); +::windows_core::imp::interface_hierarchy!(ISyncMgrUIOperation, ::windows_core::IUnknown); impl ISyncMgrUIOperation { pub unsafe fn Run(&self, hwndowner: P0) -> ::windows_core::Result<()> where @@ -31512,22 +28667,14 @@ impl ISyncMgrUIOperation { (::windows_core::Interface::vtable(self).Run)(::windows_core::Interface::as_raw(self), hwndowner.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ISyncMgrUIOperation, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISyncMgrUIOperation { - type Vtable = ISyncMgrUIOperation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISyncMgrUIOperation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfc7cfa47_dfe1_45b5_a049_8cfd82bec271); -} #[repr(C)] #[doc(hidden)] pub struct ISyncMgrUIOperation_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Run: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwndowner: super::super::Foundation::HWND) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITaskbarList(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITaskbarList, ITaskbarList_Vtbl, 0x56fdf342_fd6d_11d0_958a_006097c9a090); +::windows_core::imp::interface_hierarchy!(ITaskbarList, ::windows_core::IUnknown); impl ITaskbarList { pub unsafe fn HrInit(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).HrInit)(::windows_core::Interface::as_raw(self)).ok() @@ -31557,13 +28704,6 @@ impl ITaskbarList { (::windows_core::Interface::vtable(self).SetActiveAlt)(::windows_core::Interface::as_raw(self), hwnd.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ITaskbarList, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITaskbarList { - type Vtable = ITaskbarList_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITaskbarList { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x56fdf342_fd6d_11d0_958a_006097c9a090); -} #[repr(C)] #[doc(hidden)] pub struct ITaskbarList_Vtbl { @@ -31574,9 +28714,8 @@ pub struct ITaskbarList_Vtbl { pub ActivateTab: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwnd: super::super::Foundation::HWND) -> ::windows_core::HRESULT, pub SetActiveAlt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwnd: super::super::Foundation::HWND) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITaskbarList2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITaskbarList2, ITaskbarList2_Vtbl, 0x602d4995_b13a_429b_a66e_1935e44f4317); +::windows_core::imp::interface_hierarchy!(ITaskbarList2, ::windows_core::IUnknown, ITaskbarList); impl ITaskbarList2 { pub unsafe fn HrInit(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.HrInit)(::windows_core::Interface::as_raw(self)).ok() @@ -31613,22 +28752,14 @@ impl ITaskbarList2 { (::windows_core::Interface::vtable(self).MarkFullscreenWindow)(::windows_core::Interface::as_raw(self), hwnd.into_param().abi(), ffullscreen.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ITaskbarList2, ::windows_core::IUnknown, ITaskbarList); -unsafe impl ::windows_core::Interface for ITaskbarList2 { - type Vtable = ITaskbarList2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITaskbarList2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x602d4995_b13a_429b_a66e_1935e44f4317); -} #[repr(C)] #[doc(hidden)] pub struct ITaskbarList2_Vtbl { pub base__: ITaskbarList_Vtbl, pub MarkFullscreenWindow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwnd: super::super::Foundation::HWND, ffullscreen: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITaskbarList3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITaskbarList3, ITaskbarList3_Vtbl, 0xea1afb91_9e28_4b86_90e9_9e9f8a5eefaf); +::windows_core::imp::interface_hierarchy!(ITaskbarList3, ::windows_core::IUnknown, ITaskbarList, ITaskbarList2); impl ITaskbarList3 { pub unsafe fn HrInit(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.HrInit)(::windows_core::Interface::as_raw(self)).ok() @@ -31752,13 +28883,6 @@ impl ITaskbarList3 { (::windows_core::Interface::vtable(self).SetThumbnailClip)(::windows_core::Interface::as_raw(self), hwnd.into_param().abi(), prcclip).ok() } } -::windows_core::imp::interface_hierarchy!(ITaskbarList3, ::windows_core::IUnknown, ITaskbarList, ITaskbarList2); -unsafe impl ::windows_core::Interface for ITaskbarList3 { - type Vtable = ITaskbarList3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITaskbarList3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xea1afb91_9e28_4b86_90e9_9e9f8a5eefaf); -} #[repr(C)] #[doc(hidden)] pub struct ITaskbarList3_Vtbl { @@ -31788,9 +28912,8 @@ pub struct ITaskbarList3_Vtbl { pub SetThumbnailTooltip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwnd: super::super::Foundation::HWND, psztip: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub SetThumbnailClip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwnd: super::super::Foundation::HWND, prcclip: *const super::super::Foundation::RECT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITaskbarList4(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITaskbarList4, ITaskbarList4_Vtbl, 0xc43dc798_95d1_4bea_9030_bb99e2983a1a); +::windows_core::imp::interface_hierarchy!(ITaskbarList4, ::windows_core::IUnknown, ITaskbarList, ITaskbarList2, ITaskbarList3); impl ITaskbarList4 { pub unsafe fn HrInit(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.base__.base__.HrInit)(::windows_core::Interface::as_raw(self)).ok() @@ -31920,22 +29043,14 @@ impl ITaskbarList4 { (::windows_core::Interface::vtable(self).SetTabProperties)(::windows_core::Interface::as_raw(self), hwndtab.into_param().abi(), stpflags).ok() } } -::windows_core::imp::interface_hierarchy!(ITaskbarList4, ::windows_core::IUnknown, ITaskbarList, ITaskbarList2, ITaskbarList3); -unsafe impl ::windows_core::Interface for ITaskbarList4 { - type Vtable = ITaskbarList4_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITaskbarList4 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc43dc798_95d1_4bea_9030_bb99e2983a1a); -} #[repr(C)] #[doc(hidden)] pub struct ITaskbarList4_Vtbl { pub base__: ITaskbarList3_Vtbl, pub SetTabProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwndtab: super::super::Foundation::HWND, stpflags: STPFLAG) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IThumbnailCache(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IThumbnailCache, IThumbnailCache_Vtbl, 0xf676c15d_596a_4ce2_8234_33996f445db1); +::windows_core::imp::interface_hierarchy!(IThumbnailCache, ::windows_core::IUnknown); impl IThumbnailCache { pub unsafe fn GetThumbnail(&self, pshellitem: P0, cxyrequestedthumbsize: u32, flags: WTS_FLAGS, ppvthumb: ::core::option::Option<*mut ::core::option::Option>, poutflags: ::core::option::Option<*mut WTS_CACHEFLAGS>, pthumbnailid: ::core::option::Option<*mut WTS_THUMBNAILID>) -> ::windows_core::Result<()> where @@ -31947,13 +29062,6 @@ impl IThumbnailCache { (::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() } } -::windows_core::imp::interface_hierarchy!(IThumbnailCache, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IThumbnailCache { - type Vtable = IThumbnailCache_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IThumbnailCache { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf676c15d_596a_4ce2_8234_33996f445db1); -} #[repr(C)] #[doc(hidden)] pub struct IThumbnailCache_Vtbl { @@ -31961,9 +29069,8 @@ pub struct IThumbnailCache_Vtbl { pub GetThumbnail: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pshellitem: *mut ::core::ffi::c_void, cxyrequestedthumbsize: u32, flags: WTS_FLAGS, ppvthumb: *mut *mut ::core::ffi::c_void, poutflags: *mut WTS_CACHEFLAGS, pthumbnailid: *mut WTS_THUMBNAILID) -> ::windows_core::HRESULT, pub GetThumbnailByID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, thumbnailid: WTS_THUMBNAILID, cxyrequestedthumbsize: u32, ppvthumb: *mut *mut ::core::ffi::c_void, poutflags: *mut WTS_CACHEFLAGS) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IThumbnailCachePrimer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IThumbnailCachePrimer, IThumbnailCachePrimer_Vtbl, 0x0f03f8fe_2b26_46f0_965a_212aa8d66b76); +::windows_core::imp::interface_hierarchy!(IThumbnailCachePrimer, ::windows_core::IUnknown); impl IThumbnailCachePrimer { pub unsafe fn PageInThumbnail(&self, psi: P0, wtsflags: WTS_FLAGS, cxyrequestedthumbsize: u32) -> ::windows_core::Result<()> where @@ -31972,22 +29079,14 @@ impl IThumbnailCachePrimer { (::windows_core::Interface::vtable(self).PageInThumbnail)(::windows_core::Interface::as_raw(self), psi.into_param().abi(), wtsflags, cxyrequestedthumbsize).ok() } } -::windows_core::imp::interface_hierarchy!(IThumbnailCachePrimer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IThumbnailCachePrimer { - type Vtable = IThumbnailCachePrimer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IThumbnailCachePrimer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0f03f8fe_2b26_46f0_965a_212aa8d66b76); -} #[repr(C)] #[doc(hidden)] pub struct IThumbnailCachePrimer_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub PageInThumbnail: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psi: *mut ::core::ffi::c_void, wtsflags: WTS_FLAGS, cxyrequestedthumbsize: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IThumbnailCapture(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IThumbnailCapture, IThumbnailCapture_Vtbl, 0x4ea39266_7211_409f_b622_f63dbd16c533); +::windows_core::imp::interface_hierarchy!(IThumbnailCapture, ::windows_core::IUnknown); impl IThumbnailCapture { #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] #[cfg(feature = "Win32_Graphics_Gdi")] @@ -31999,13 +29098,6 @@ impl IThumbnailCapture { (::windows_core::Interface::vtable(self).CaptureThumbnail)(::windows_core::Interface::as_raw(self), pmaxsize, phtmldoc2.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IThumbnailCapture, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IThumbnailCapture { - type Vtable = IThumbnailCapture_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IThumbnailCapture { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4ea39266_7211_409f_b622_f63dbd16c533); -} #[repr(C)] #[doc(hidden)] pub struct IThumbnailCapture_Vtbl { @@ -32015,28 +29107,20 @@ pub struct IThumbnailCapture_Vtbl { #[cfg(not(feature = "Win32_Graphics_Gdi"))] CaptureThumbnail: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IThumbnailHandlerFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IThumbnailHandlerFactory, IThumbnailHandlerFactory_Vtbl, 0xe35b4b2e_00da_4bc1_9f13_38bc11f5d417); +::windows_core::imp::interface_hierarchy!(IThumbnailHandlerFactory, ::windows_core::IUnknown); impl IThumbnailHandlerFactory { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_UI_Shell_Common\"`"] #[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, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IThumbnailHandlerFactory, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IThumbnailHandlerFactory { - type Vtable = IThumbnailHandlerFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IThumbnailHandlerFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe35b4b2e_00da_4bc1_9f13_38bc11f5d417); -} #[repr(C)] #[doc(hidden)] pub struct IThumbnailHandlerFactory_Vtbl { @@ -32046,9 +29130,8 @@ pub struct IThumbnailHandlerFactory_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common")))] GetThumbnailHandler: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IThumbnailProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IThumbnailProvider, IThumbnailProvider_Vtbl, 0xe357fccd_a995_4576_b01f_234630154e96); +::windows_core::imp::interface_hierarchy!(IThumbnailProvider, ::windows_core::IUnknown); impl IThumbnailProvider { #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] #[cfg(feature = "Win32_Graphics_Gdi")] @@ -32056,13 +29139,6 @@ impl IThumbnailProvider { (::windows_core::Interface::vtable(self).GetThumbnail)(::windows_core::Interface::as_raw(self), cx, phbmp, pdwalpha).ok() } } -::windows_core::imp::interface_hierarchy!(IThumbnailProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IThumbnailProvider { - type Vtable = IThumbnailProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IThumbnailProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe357fccd_a995_4576_b01f_234630154e96); -} #[repr(C)] #[doc(hidden)] pub struct IThumbnailProvider_Vtbl { @@ -32072,30 +29148,21 @@ pub struct IThumbnailProvider_Vtbl { #[cfg(not(feature = "Win32_Graphics_Gdi"))] GetThumbnail: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IThumbnailSettings(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IThumbnailSettings, IThumbnailSettings_Vtbl, 0xf4376f00_bef5_4d45_80f3_1e023bbf1209); +::windows_core::imp::interface_hierarchy!(IThumbnailSettings, ::windows_core::IUnknown); impl IThumbnailSettings { pub unsafe fn SetContext(&self, dwcontext: WTS_CONTEXTFLAGS) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetContext)(::windows_core::Interface::as_raw(self), dwcontext).ok() } } -::windows_core::imp::interface_hierarchy!(IThumbnailSettings, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IThumbnailSettings { - type Vtable = IThumbnailSettings_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IThumbnailSettings { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf4376f00_bef5_4d45_80f3_1e023bbf1209); -} #[repr(C)] #[doc(hidden)] pub struct IThumbnailSettings_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub SetContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwcontext: WTS_CONTEXTFLAGS) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IThumbnailStreamCache(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IThumbnailStreamCache, IThumbnailStreamCache_Vtbl, 0x90e11430_9569_41d8_ae75_6d4d2ae7cca0); +::windows_core::imp::interface_hierarchy!(IThumbnailStreamCache, ::windows_core::IUnknown); impl IThumbnailStreamCache { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -32115,13 +29182,6 @@ impl IThumbnailStreamCache { (::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::imp::interface_hierarchy!(IThumbnailStreamCache, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IThumbnailStreamCache { - type Vtable = IThumbnailStreamCache_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IThumbnailStreamCache { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x90e11430_9569_41d8_ae75_6d4d2ae7cca0); -} #[repr(C)] #[doc(hidden)] pub struct IThumbnailStreamCache_Vtbl { @@ -32135,9 +29195,8 @@ pub struct IThumbnailStreamCache_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] SetThumbnailStream: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITrackShellMenu(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITrackShellMenu, ITrackShellMenu_Vtbl, 0x8278f932_2a3e_11d2_838f_00c04fd918d0); +::windows_core::imp::interface_hierarchy!(ITrackShellMenu, ::windows_core::IUnknown, IShellMenu); impl ITrackShellMenu { pub unsafe fn Initialize(&self, psmc: P0, uid: u32, uidancestor: u32, dwflags: u32) -> ::windows_core::Result<()> where @@ -32206,13 +29265,6 @@ impl ITrackShellMenu { (::windows_core::Interface::vtable(self).Popup)(::windows_core::Interface::as_raw(self), hwnd.into_param().abi(), ppt, prcexclude, dwflags).ok() } } -::windows_core::imp::interface_hierarchy!(ITrackShellMenu, ::windows_core::IUnknown, IShellMenu); -unsafe impl ::windows_core::Interface for ITrackShellMenu { - type Vtable = ITrackShellMenu_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITrackShellMenu { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8278f932_2a3e_11d2_838f_00c04fd918d0); -} #[repr(C)] #[doc(hidden)] pub struct ITrackShellMenu_Vtbl { @@ -32220,9 +29272,8 @@ pub struct ITrackShellMenu_Vtbl { pub SetObscured: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwndtb: super::super::Foundation::HWND, punkband: *mut ::core::ffi::c_void, dwsmsetflags: u32) -> ::windows_core::HRESULT, pub Popup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwnd: super::super::Foundation::HWND, ppt: *mut super::super::Foundation::POINTL, prcexclude: *mut super::super::Foundation::RECTL, dwflags: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITranscodeImage(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITranscodeImage, ITranscodeImage_Vtbl, 0xbae86ddd_dc11_421c_b7ab_cc55d1d65c44); +::windows_core::imp::interface_hierarchy!(ITranscodeImage, ::windows_core::IUnknown); impl ITranscodeImage { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -32234,13 +29285,6 @@ impl ITranscodeImage { (::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::imp::interface_hierarchy!(ITranscodeImage, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITranscodeImage { - type Vtable = ITranscodeImage_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITranscodeImage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbae86ddd_dc11_421c_b7ab_cc55d1d65c44); -} #[repr(C)] #[doc(hidden)] pub struct ITranscodeImage_Vtbl { @@ -32250,9 +29294,8 @@ pub struct ITranscodeImage_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] TranscodeImage: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITransferAdviseSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITransferAdviseSink, ITransferAdviseSink_Vtbl, 0xd594d0d8_8da7_457b_b3b4_ce5dbaac0b88); +::windows_core::imp::interface_hierarchy!(ITransferAdviseSink, ::windows_core::IUnknown); impl ITransferAdviseSink { pub unsafe fn UpdateProgress(&self, ullsizecurrent: u64, ullsizetotal: u64, nfilescurrent: i32, nfilestotal: i32, nfolderscurrent: i32, nfolderstotal: i32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).UpdateProgress)(::windows_core::Interface::as_raw(self), ullsizecurrent, ullsizetotal, nfilescurrent, nfilestotal, nfolderscurrent, nfolderstotal).ok() @@ -32297,13 +29340,6 @@ impl ITransferAdviseSink { (::windows_core::Interface::vtable(self).PropertyFailure)(::windows_core::Interface::as_raw(self), psi.into_param().abi(), pkey, hrerror).ok() } } -::windows_core::imp::interface_hierarchy!(ITransferAdviseSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITransferAdviseSink { - type Vtable = ITransferAdviseSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITransferAdviseSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd594d0d8_8da7_457b_b3b4_ce5dbaac0b88); -} #[repr(C)] #[doc(hidden)] pub struct ITransferAdviseSink_Vtbl { @@ -32319,9 +29355,8 @@ pub struct ITransferAdviseSink_Vtbl { #[cfg(not(feature = "Win32_UI_Shell_PropertiesSystem"))] PropertyFailure: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITransferDestination(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITransferDestination, ITransferDestination_Vtbl, 0x48addd32_3ca5_4124_abe3_b5a72531b207); +::windows_core::imp::interface_hierarchy!(ITransferDestination, ::windows_core::IUnknown); impl ITransferDestination { pub unsafe fn Advise(&self, psink: P0) -> ::windows_core::Result where @@ -32340,13 +29375,6 @@ impl ITransferDestination { (::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::imp::interface_hierarchy!(ITransferDestination, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITransferDestination { - type Vtable = ITransferDestination_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITransferDestination { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x48addd32_3ca5_4124_abe3_b5a72531b207); -} #[repr(C)] #[doc(hidden)] pub struct ITransferDestination_Vtbl { @@ -32355,9 +29383,8 @@ pub struct ITransferDestination_Vtbl { pub Unadvise: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwcookie: u32) -> ::windows_core::HRESULT, pub CreateItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszname: ::windows_core::PCWSTR, dwattributes: u32, ullsize: u64, flags: u32, riiditem: *const ::windows_core::GUID, ppvitem: *mut *mut ::core::ffi::c_void, riidresources: *const ::windows_core::GUID, ppvresources: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITransferMediumItem(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITransferMediumItem, ITransferMediumItem_Vtbl, 0x77f295d5_2d6f_4e19_b8ae_322f3e721ab5); +::windows_core::imp::interface_hierarchy!(ITransferMediumItem, ::windows_core::IUnknown, IRelatedItem); impl ITransferMediumItem { #[doc = "Required features: `\"Win32_UI_Shell_Common\"`"] #[cfg(feature = "Win32_UI_Shell_Common")] @@ -32370,21 +29397,13 @@ impl ITransferMediumItem { (::windows_core::Interface::vtable(self).base__.GetItem)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITransferMediumItem, ::windows_core::IUnknown, IRelatedItem); -unsafe impl ::windows_core::Interface for ITransferMediumItem { - type Vtable = ITransferMediumItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITransferMediumItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x77f295d5_2d6f_4e19_b8ae_322f3e721ab5); -} #[repr(C)] #[doc(hidden)] pub struct ITransferMediumItem_Vtbl { pub base__: IRelatedItem_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITransferSource(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITransferSource, ITransferSource_Vtbl, 0x00adb003_bde9_45c6_8e29_d09f9353e108); +::windows_core::imp::interface_hierarchy!(ITransferSource, ::windows_core::IUnknown); impl ITransferSource { pub unsafe fn Advise(&self, psink: P0) -> ::windows_core::Result where @@ -32478,13 +29497,6 @@ impl ITransferSource { (::windows_core::Interface::vtable(self).LeaveFolder)(::windows_core::Interface::as_raw(self), psichildfolderdest.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ITransferSource, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITransferSource { - type Vtable = ITransferSource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITransferSource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00adb003_bde9_45c6_8e29_d09f9353e108); -} #[repr(C)] #[doc(hidden)] pub struct ITransferSource_Vtbl { @@ -32506,9 +29518,8 @@ pub struct ITransferSource_Vtbl { pub EnterFolder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psichildfolderdest: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub LeaveFolder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psichildfolderdest: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITravelEntry(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITravelEntry, ITravelEntry_Vtbl, 0xf46edb3b_bc2f_11d0_9412_00aa00a3ebd3); +::windows_core::imp::interface_hierarchy!(ITravelEntry, ::windows_core::IUnknown); impl ITravelEntry { pub unsafe fn Invoke(&self, punk: P0) -> ::windows_core::Result<()> where @@ -32530,13 +29541,6 @@ impl ITravelEntry { (::windows_core::Interface::vtable(self).GetPidl)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITravelEntry, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITravelEntry { - type Vtable = ITravelEntry_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITravelEntry { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf46edb3b_bc2f_11d0_9412_00aa00a3ebd3); -} #[repr(C)] #[doc(hidden)] pub struct ITravelEntry_Vtbl { @@ -32548,9 +29552,8 @@ pub struct ITravelEntry_Vtbl { #[cfg(not(feature = "Win32_UI_Shell_Common"))] GetPidl: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITravelLog(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITravelLog, ITravelLog_Vtbl, 0x66a9cb08_4802_11d2_a561_00a0c92dbfe8); +::windows_core::imp::interface_hierarchy!(ITravelLog, ::windows_core::IUnknown); impl ITravelLog { pub unsafe fn AddEntry(&self, punk: P0, fislocalanchor: P1) -> ::windows_core::Result<()> where @@ -32623,13 +29626,6 @@ impl ITravelLog { (::windows_core::Interface::vtable(self).Revert)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ITravelLog, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITravelLog { - type Vtable = ITravelLog_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITravelLog { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x66a9cb08_4802_11d2_a561_00a0c92dbfe8); -} #[repr(C)] #[doc(hidden)] pub struct ITravelLog_Vtbl { @@ -32652,9 +29648,8 @@ pub struct ITravelLog_Vtbl { pub CountEntries: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punk: *mut ::core::ffi::c_void) -> u32, pub Revert: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITravelLogClient(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITravelLogClient, ITravelLogClient_Vtbl, 0x241c033e_e659_43da_aa4d_4086dbc4758d); +::windows_core::imp::interface_hierarchy!(ITravelLogClient, ::windows_core::IUnknown); impl ITravelLogClient { pub unsafe fn FindWindowByIndex(&self, dwid: u32) -> ::windows_core::Result<::windows_core::IUnknown> { let mut result__ = ::std::mem::zeroed(); @@ -32675,13 +29670,6 @@ impl ITravelLogClient { (::windows_core::Interface::vtable(self).LoadHistoryPosition)(::windows_core::Interface::as_raw(self), pszurllocation.into_param().abi(), dwposition).ok() } } -::windows_core::imp::interface_hierarchy!(ITravelLogClient, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITravelLogClient { - type Vtable = ITravelLogClient_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITravelLogClient { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x241c033e_e659_43da_aa4d_4086dbc4758d); -} #[repr(C)] #[doc(hidden)] pub struct ITravelLogClient_Vtbl { @@ -32693,9 +29681,8 @@ pub struct ITravelLogClient_Vtbl { GetWindowData: usize, pub LoadHistoryPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszurllocation: ::windows_core::PCWSTR, dwposition: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITravelLogEntry(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITravelLogEntry, ITravelLogEntry_Vtbl, 0x7ebfdd87_ad18_11d3_a4c5_00c04f72d6b8); +::windows_core::imp::interface_hierarchy!(ITravelLogEntry, ::windows_core::IUnknown); impl ITravelLogEntry { pub unsafe fn GetTitle(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); @@ -32706,13 +29693,6 @@ impl ITravelLogEntry { (::windows_core::Interface::vtable(self).GetURL)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITravelLogEntry, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITravelLogEntry { - type Vtable = ITravelLogEntry_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITravelLogEntry { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7ebfdd87_ad18_11d3_a4c5_00c04f72d6b8); -} #[repr(C)] #[doc(hidden)] pub struct ITravelLogEntry_Vtbl { @@ -32720,9 +29700,8 @@ pub struct ITravelLogEntry_Vtbl { pub GetTitle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppsztitle: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, pub GetURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppszurl: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITravelLogStg(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITravelLogStg, ITravelLogStg_Vtbl, 0x7ebfdd80_ad18_11d3_a4c5_00c04f72d6b8); +::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 @@ -32766,13 +29745,6 @@ impl ITravelLogStg { (::windows_core::Interface::vtable(self).GetRelativeEntry)(::windows_core::Interface::as_raw(self), ioffset, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITravelLogStg, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITravelLogStg { - type Vtable = ITravelLogStg_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITravelLogStg { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7ebfdd80_ad18_11d3_a4c5_00c04f72d6b8); -} #[repr(C)] #[doc(hidden)] pub struct ITravelLogStg_Vtbl { @@ -32785,9 +29757,8 @@ pub struct ITravelLogStg_Vtbl { pub RemoveEntry: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptle: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetRelativeEntry: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ioffset: i32, ptle: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITrayDeskBand(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITrayDeskBand, ITrayDeskBand_Vtbl, 0x6d67e846_5b9c_4db8_9cbc_dde12f4254f1); +::windows_core::imp::interface_hierarchy!(ITrayDeskBand, ::windows_core::IUnknown); impl ITrayDeskBand { pub unsafe fn ShowDeskBand(&self, clsid: *const ::windows_core::GUID) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).ShowDeskBand)(::windows_core::Interface::as_raw(self), clsid).ok() @@ -32802,13 +29773,6 @@ impl ITrayDeskBand { (::windows_core::Interface::vtable(self).DeskBandRegistrationChanged)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ITrayDeskBand, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITrayDeskBand { - type Vtable = ITrayDeskBand_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITrayDeskBand { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6d67e846_5b9c_4db8_9cbc_dde12f4254f1); -} #[repr(C)] #[doc(hidden)] pub struct ITrayDeskBand_Vtbl { @@ -32818,30 +29782,21 @@ pub struct ITrayDeskBand_Vtbl { pub IsDeskBandShown: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, clsid: *const ::windows_core::GUID) -> ::windows_core::HRESULT, pub DeskBandRegistrationChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IURLSearchHook(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IURLSearchHook, IURLSearchHook_Vtbl, 0xac60f6a0_0fd9_11d0_99cb_00c04fd64497); +::windows_core::imp::interface_hierarchy!(IURLSearchHook, ::windows_core::IUnknown); impl IURLSearchHook { pub unsafe fn Translate(&self, pwszsearchurl: &mut [u16]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Translate)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pwszsearchurl.as_ptr()), pwszsearchurl.len().try_into().unwrap()).ok() } } -::windows_core::imp::interface_hierarchy!(IURLSearchHook, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IURLSearchHook { - type Vtable = IURLSearchHook_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IURLSearchHook { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xac60f6a0_0fd9_11d0_99cb_00c04fd64497); -} #[repr(C)] #[doc(hidden)] pub struct IURLSearchHook_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Translate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwszsearchurl: ::windows_core::PWSTR, cchbuffersize: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IURLSearchHook2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IURLSearchHook2, IURLSearchHook2_Vtbl, 0x5ee44da4_6d32_46e3_86bc_07540dedd0e0); +::windows_core::imp::interface_hierarchy!(IURLSearchHook2, ::windows_core::IUnknown, IURLSearchHook); impl IURLSearchHook2 { pub unsafe fn Translate(&self, pwszsearchurl: &mut [u16]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.Translate)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pwszsearchurl.as_ptr()), pwszsearchurl.len().try_into().unwrap()).ok() @@ -32853,22 +29808,14 @@ impl IURLSearchHook2 { (::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::imp::interface_hierarchy!(IURLSearchHook2, ::windows_core::IUnknown, IURLSearchHook); -unsafe impl ::windows_core::Interface for IURLSearchHook2 { - type Vtable = IURLSearchHook2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IURLSearchHook2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5ee44da4_6d32_46e3_86bc_07540dedd0e0); -} #[repr(C)] #[doc(hidden)] pub struct IURLSearchHook2_Vtbl { pub base__: IURLSearchHook_Vtbl, pub TranslateWithSearchContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwszsearchurl: ::windows_core::PWSTR, cchbuffersize: u32, psearchcontext: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUniformResourceLocatorA(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUniformResourceLocatorA, IUniformResourceLocatorA_Vtbl, 0xfbf23b80_e3f0_101b_8488_00aa003e56f8); +::windows_core::imp::interface_hierarchy!(IUniformResourceLocatorA, ::windows_core::IUnknown); impl IUniformResourceLocatorA { pub unsafe fn SetURL(&self, pcszurl: P0, dwinflags: u32) -> ::windows_core::Result<()> where @@ -32884,13 +29831,6 @@ impl IUniformResourceLocatorA { (::windows_core::Interface::vtable(self).InvokeCommand)(::windows_core::Interface::as_raw(self), purlici).ok() } } -::windows_core::imp::interface_hierarchy!(IUniformResourceLocatorA, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUniformResourceLocatorA { - type Vtable = IUniformResourceLocatorA_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUniformResourceLocatorA { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfbf23b80_e3f0_101b_8488_00aa003e56f8); -} #[repr(C)] #[doc(hidden)] pub struct IUniformResourceLocatorA_Vtbl { @@ -32899,9 +29839,8 @@ pub struct IUniformResourceLocatorA_Vtbl { pub GetURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppszurl: *mut ::windows_core::PSTR) -> ::windows_core::HRESULT, pub InvokeCommand: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, purlici: *mut URLINVOKECOMMANDINFOA) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUniformResourceLocatorW(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUniformResourceLocatorW, IUniformResourceLocatorW_Vtbl, 0xcabb0da0_da57_11cf_9974_0020afd79762); +::windows_core::imp::interface_hierarchy!(IUniformResourceLocatorW, ::windows_core::IUnknown); impl IUniformResourceLocatorW { pub unsafe fn SetURL(&self, pcszurl: P0, dwinflags: u32) -> ::windows_core::Result<()> where @@ -32917,13 +29856,6 @@ impl IUniformResourceLocatorW { (::windows_core::Interface::vtable(self).InvokeCommand)(::windows_core::Interface::as_raw(self), purlici).ok() } } -::windows_core::imp::interface_hierarchy!(IUniformResourceLocatorW, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUniformResourceLocatorW { - type Vtable = IUniformResourceLocatorW_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUniformResourceLocatorW { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcabb0da0_da57_11cf_9974_0020afd79762); -} #[repr(C)] #[doc(hidden)] pub struct IUniformResourceLocatorW_Vtbl { @@ -32932,9 +29864,8 @@ pub struct IUniformResourceLocatorW_Vtbl { pub GetURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppszurl: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, pub InvokeCommand: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, purlici: *mut URLINVOKECOMMANDINFOW) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUpdateIDList(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUpdateIDList, IUpdateIDList_Vtbl, 0x6589b6d2_5f8d_4b9e_b7e0_23cdd9717d8c); +::windows_core::imp::interface_hierarchy!(IUpdateIDList, ::windows_core::IUnknown); impl IUpdateIDList { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_UI_Shell_Common\"`"] #[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))] @@ -32946,13 +29877,6 @@ impl IUpdateIDList { (::windows_core::Interface::vtable(self).Update)(::windows_core::Interface::as_raw(self), pbc.into_param().abi(), pidlin, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUpdateIDList, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUpdateIDList { - type Vtable = IUpdateIDList_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUpdateIDList { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6589b6d2_5f8d_4b9e_b7e0_23cdd9717d8c); -} #[repr(C)] #[doc(hidden)] pub struct IUpdateIDList_Vtbl { @@ -32962,9 +29886,8 @@ pub struct IUpdateIDList_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common")))] Update: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUseToBrowseItem(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUseToBrowseItem, IUseToBrowseItem_Vtbl, 0x05edda5c_98a3_4717_8adb_c5e7da991eb1); +::windows_core::imp::interface_hierarchy!(IUseToBrowseItem, ::windows_core::IUnknown, IRelatedItem); impl IUseToBrowseItem { #[doc = "Required features: `\"Win32_UI_Shell_Common\"`"] #[cfg(feature = "Win32_UI_Shell_Common")] @@ -32977,21 +29900,13 @@ impl IUseToBrowseItem { (::windows_core::Interface::vtable(self).base__.GetItem)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUseToBrowseItem, ::windows_core::IUnknown, IRelatedItem); -unsafe impl ::windows_core::Interface for IUseToBrowseItem { - type Vtable = IUseToBrowseItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUseToBrowseItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x05edda5c_98a3_4717_8adb_c5e7da991eb1); -} #[repr(C)] #[doc(hidden)] pub struct IUseToBrowseItem_Vtbl { pub base__: IRelatedItem_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserAccountChangeCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUserAccountChangeCallback, IUserAccountChangeCallback_Vtbl, 0xa561e69a_b4b8_4113_91a5_64c6bcca3430); +::windows_core::imp::interface_hierarchy!(IUserAccountChangeCallback, ::windows_core::IUnknown); impl IUserAccountChangeCallback { pub unsafe fn OnPictureChange(&self, pszusername: P0) -> ::windows_core::Result<()> where @@ -33000,22 +29915,14 @@ impl IUserAccountChangeCallback { (::windows_core::Interface::vtable(self).OnPictureChange)(::windows_core::Interface::as_raw(self), pszusername.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IUserAccountChangeCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserAccountChangeCallback { - type Vtable = IUserAccountChangeCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserAccountChangeCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa561e69a_b4b8_4113_91a5_64c6bcca3430); -} #[repr(C)] #[doc(hidden)] pub struct IUserAccountChangeCallback_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnPictureChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszusername: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserNotification(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUserNotification, IUserNotification_Vtbl, 0xba9711ba_5893_4787_a7e1_41277151550b); +::windows_core::imp::interface_hierarchy!(IUserNotification, ::windows_core::IUnknown); impl IUserNotification { pub unsafe fn SetBalloonInfo(&self, psztitle: P0, psztext: P1, dwinfoflags: u32) -> ::windows_core::Result<()> where @@ -33049,13 +29956,6 @@ impl IUserNotification { (::windows_core::Interface::vtable(self).PlaySound)(::windows_core::Interface::as_raw(self), pszsoundname.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IUserNotification, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserNotification { - type Vtable = IUserNotification_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserNotification { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xba9711ba_5893_4787_a7e1_41277151550b); -} #[repr(C)] #[doc(hidden)] pub struct IUserNotification_Vtbl { @@ -33069,9 +29969,8 @@ pub struct IUserNotification_Vtbl { pub Show: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pqc: *mut ::core::ffi::c_void, dwcontinuepollinterval: u32) -> ::windows_core::HRESULT, pub PlaySound: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszsoundname: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserNotification2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUserNotification2, IUserNotification2_Vtbl, 0x215913cc_57eb_4fab_ab5a_e5fa7bea2a6c); +::windows_core::imp::interface_hierarchy!(IUserNotification2, ::windows_core::IUnknown); impl IUserNotification2 { pub unsafe fn SetBalloonInfo(&self, psztitle: P0, psztext: P1, dwinfoflags: u32) -> ::windows_core::Result<()> where @@ -33106,13 +30005,6 @@ impl IUserNotification2 { (::windows_core::Interface::vtable(self).PlaySound)(::windows_core::Interface::as_raw(self), pszsoundname.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IUserNotification2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserNotification2 { - type Vtable = IUserNotification2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserNotification2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x215913cc_57eb_4fab_ab5a_e5fa7bea2a6c); -} #[repr(C)] #[doc(hidden)] pub struct IUserNotification2_Vtbl { @@ -33126,9 +30018,8 @@ pub struct IUserNotification2_Vtbl { pub Show: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pqc: *mut ::core::ffi::c_void, dwcontinuepollinterval: u32, psink: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub PlaySound: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszsoundname: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUserNotificationCallback(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUserNotificationCallback, IUserNotificationCallback_Vtbl, 0x19108294_0441_4aff_8013_fa0a730b0bea); +::windows_core::imp::interface_hierarchy!(IUserNotificationCallback, ::windows_core::IUnknown); impl IUserNotificationCallback { pub unsafe fn OnBalloonUserClick(&self, pt: *const super::super::Foundation::POINT) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnBalloonUserClick)(::windows_core::Interface::as_raw(self), pt).ok() @@ -33140,13 +30031,6 @@ impl IUserNotificationCallback { (::windows_core::Interface::vtable(self).OnContextMenu)(::windows_core::Interface::as_raw(self), pt).ok() } } -::windows_core::imp::interface_hierarchy!(IUserNotificationCallback, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUserNotificationCallback { - type Vtable = IUserNotificationCallback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUserNotificationCallback { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x19108294_0441_4aff_8013_fa0a730b0bea); -} #[repr(C)] #[doc(hidden)] pub struct IUserNotificationCallback_Vtbl { @@ -33155,9 +30039,8 @@ pub struct IUserNotificationCallback_Vtbl { pub OnLeftClick: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pt: *const super::super::Foundation::POINT) -> ::windows_core::HRESULT, pub OnContextMenu: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pt: *const super::super::Foundation::POINT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IViewStateIdentityItem(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IViewStateIdentityItem, IViewStateIdentityItem_Vtbl, 0x9d264146_a94f_4195_9f9f_3bb12ce0c955); +::windows_core::imp::interface_hierarchy!(IViewStateIdentityItem, ::windows_core::IUnknown, IRelatedItem); impl IViewStateIdentityItem { #[doc = "Required features: `\"Win32_UI_Shell_Common\"`"] #[cfg(feature = "Win32_UI_Shell_Common")] @@ -33170,21 +30053,13 @@ impl IViewStateIdentityItem { (::windows_core::Interface::vtable(self).base__.GetItem)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IViewStateIdentityItem, ::windows_core::IUnknown, IRelatedItem); -unsafe impl ::windows_core::Interface for IViewStateIdentityItem { - type Vtable = IViewStateIdentityItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IViewStateIdentityItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9d264146_a94f_4195_9f9f_3bb12ce0c955); -} #[repr(C)] #[doc(hidden)] pub struct IViewStateIdentityItem_Vtbl { pub base__: IRelatedItem_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVirtualDesktopManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVirtualDesktopManager, IVirtualDesktopManager_Vtbl, 0xa5cd92ff_29be_454c_8d04_d82879fb3f1b); +::windows_core::imp::interface_hierarchy!(IVirtualDesktopManager, ::windows_core::IUnknown); impl IVirtualDesktopManager { pub unsafe fn IsWindowOnCurrentVirtualDesktop(&self, toplevelwindow: P0) -> ::windows_core::Result where @@ -33207,13 +30082,6 @@ impl IVirtualDesktopManager { (::windows_core::Interface::vtable(self).MoveWindowToDesktop)(::windows_core::Interface::as_raw(self), toplevelwindow.into_param().abi(), desktopid).ok() } } -::windows_core::imp::interface_hierarchy!(IVirtualDesktopManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVirtualDesktopManager { - type Vtable = IVirtualDesktopManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVirtualDesktopManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa5cd92ff_29be_454c_8d04_d82879fb3f1b); -} #[repr(C)] #[doc(hidden)] pub struct IVirtualDesktopManager_Vtbl { @@ -33222,9 +30090,8 @@ pub struct IVirtualDesktopManager_Vtbl { pub GetWindowDesktopId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, toplevelwindow: super::super::Foundation::HWND, desktopid: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, pub MoveWindowToDesktop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, toplevelwindow: super::super::Foundation::HWND, desktopid: *const ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVisualProperties(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVisualProperties, IVisualProperties_Vtbl, 0xe693cf68_d967_4112_8763_99172aee5e5a); +::windows_core::imp::interface_hierarchy!(IVisualProperties, ::windows_core::IUnknown); impl IVisualProperties { #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] #[cfg(feature = "Win32_Graphics_Gdi")] @@ -33272,13 +30139,6 @@ impl IVisualProperties { (::windows_core::Interface::vtable(self).SetTheme)(::windows_core::Interface::as_raw(self), pszsubappname.into_param().abi(), pszsubidlist.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IVisualProperties, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVisualProperties { - type Vtable = IVisualProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVisualProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe693cf68_d967_4112_8763_99172aee5e5a); -} #[repr(C)] #[doc(hidden)] pub struct IVisualProperties_Vtbl { @@ -33301,11 +30161,15 @@ pub struct IVisualProperties_Vtbl { GetFont: usize, pub SetTheme: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszsubappname: ::windows_core::PCWSTR, pszsubidlist: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebBrowser(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWebBrowser, + IWebBrowser_Vtbl, + 0xeab22ac1_30c1_11cf_a7eb_0000c05bae0b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWebBrowser, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IWebBrowser { pub unsafe fn GoBack(&self) -> ::windows_core::Result<()> { @@ -33413,16 +30277,6 @@ impl IWebBrowser { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWebBrowser, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWebBrowser { - type Vtable = IWebBrowser_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWebBrowser { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeab22ac1_30c1_11cf_a7eb_0000c05bae0b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWebBrowser_Vtbl { @@ -33471,11 +30325,15 @@ pub struct IWebBrowser_Vtbl { pub LocationURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, locationurl: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub Busy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbool: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebBrowser2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWebBrowser2, + IWebBrowser2_Vtbl, + 0xd30c1661_cdaf_11d0_8a3e_00c04fc9e26e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWebBrowser2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IWebBrowser, IWebBrowserApp); #[cfg(feature = "Win32_System_Com")] impl IWebBrowser2 { pub unsafe fn GoBack(&self) -> ::windows_core::Result<()> { @@ -33776,16 +30634,6 @@ impl IWebBrowser2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWebBrowser2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IWebBrowser, IWebBrowserApp); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWebBrowser2 { - type Vtable = IWebBrowser2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWebBrowser2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd30c1661_cdaf_11d0_8a3e_00c04fc9e26e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWebBrowser2_Vtbl { @@ -33825,11 +30673,15 @@ pub struct IWebBrowser2_Vtbl { pub Resizable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub SetResizable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebBrowserApp(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWebBrowserApp, + IWebBrowserApp_Vtbl, + 0x0002df05_0000_0000_c000_000000000046 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWebBrowserApp, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IWebBrowser); #[cfg(feature = "Win32_System_Com")] impl IWebBrowserApp { pub unsafe fn GoBack(&self) -> ::windows_core::Result<()> { @@ -34033,16 +30885,6 @@ impl IWebBrowserApp { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWebBrowserApp, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IWebBrowser); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWebBrowserApp { - type Vtable = IWebBrowserApp_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWebBrowserApp { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0002df05_0000_0000_c000_000000000046); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWebBrowserApp_Vtbl { @@ -34074,9 +30916,8 @@ pub struct IWebBrowserApp_Vtbl { pub FullScreen: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbfullscreen: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub SetFullScreen: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bfullscreen: super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebWizardExtension(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWebWizardExtension, IWebWizardExtension_Vtbl, 0x0e6b3f66_98d1_48c0_a222_fbde74e2fbc5); +::windows_core::imp::interface_hierarchy!(IWebWizardExtension, ::windows_core::IUnknown, IWizardExtension); impl IWebWizardExtension { #[doc = "Required features: `\"Win32_UI_Controls\"`"] #[cfg(feature = "Win32_UI_Controls")] @@ -34108,13 +30949,6 @@ impl IWebWizardExtension { (::windows_core::Interface::vtable(self).SetErrorURL)(::windows_core::Interface::as_raw(self), pszerrorurl.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IWebWizardExtension, ::windows_core::IUnknown, IWizardExtension); -unsafe impl ::windows_core::Interface for IWebWizardExtension { - type Vtable = IWebWizardExtension_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebWizardExtension { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0e6b3f66_98d1_48c0_a222_fbde74e2fbc5); -} #[repr(C)] #[doc(hidden)] pub struct IWebWizardExtension_Vtbl { @@ -34122,11 +30956,15 @@ pub struct IWebWizardExtension_Vtbl { pub SetInitialURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszurl: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub SetErrorURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszerrorurl: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebWizardHost(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWebWizardHost, + IWebWizardHost_Vtbl, + 0x18bcc359_4990_4bfb_b951_3c83702be5f9 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWebWizardHost, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IWebWizardHost { pub unsafe fn FinalBack(&self) -> ::windows_core::Result<()> { @@ -34182,16 +31020,6 @@ impl IWebWizardHost { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWebWizardHost, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWebWizardHost { - type Vtable = IWebWizardHost_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWebWizardHost { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x18bcc359_4990_4bfb_b951_3c83702be5f9); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWebWizardHost_Vtbl { @@ -34212,11 +31040,15 @@ pub struct IWebWizardHost_Vtbl { pub SetWizardButtons: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, vfenableback: super::super::Foundation::VARIANT_BOOL, vfenablenext: super::super::Foundation::VARIANT_BOOL, vflastpage: super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub SetHeaderText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrheadertitle: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstrheadersubtitle: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebWizardHost2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IWebWizardHost2, + IWebWizardHost2_Vtbl, + 0xf9c013dc_3c23_4041_8e39_cfb402f7ea59 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IWebWizardHost2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IWebWizardHost); #[cfg(feature = "Win32_System_Com")] impl IWebWizardHost2 { pub unsafe fn FinalBack(&self) -> ::windows_core::Result<()> { @@ -34279,25 +31111,14 @@ impl IWebWizardHost2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IWebWizardHost2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IWebWizardHost); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IWebWizardHost2 { - type Vtable = IWebWizardHost2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IWebWizardHost2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf9c013dc_3c23_4041_8e39_cfb402f7ea59); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IWebWizardHost2_Vtbl { pub base__: IWebWizardHost_Vtbl, pub SignString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::BSTR>, signedvalue: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWizardExtension(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWizardExtension, IWizardExtension_Vtbl, 0xc02ea696_86cc_491e_9b23_74394a0444a8); +::windows_core::imp::interface_hierarchy!(IWizardExtension, ::windows_core::IUnknown); impl IWizardExtension { #[doc = "Required features: `\"Win32_UI_Controls\"`"] #[cfg(feature = "Win32_UI_Controls")] @@ -34317,13 +31138,6 @@ impl IWizardExtension { (::windows_core::Interface::vtable(self).GetLastPage)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWizardExtension, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWizardExtension { - type Vtable = IWizardExtension_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWizardExtension { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc02ea696_86cc_491e_9b23_74394a0444a8); -} #[repr(C)] #[doc(hidden)] pub struct IWizardExtension_Vtbl { @@ -34341,9 +31155,8 @@ pub struct IWizardExtension_Vtbl { #[cfg(not(feature = "Win32_UI_Controls"))] GetLastPage: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWizardSite(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWizardSite, IWizardSite_Vtbl, 0x88960f5b_422f_4e7b_8013_73415381c3c3); +::windows_core::imp::interface_hierarchy!(IWizardSite, ::windows_core::IUnknown); impl IWizardSite { #[doc = "Required features: `\"Win32_UI_Controls\"`"] #[cfg(feature = "Win32_UI_Controls")] @@ -34364,13 +31177,6 @@ impl IWizardSite { (::windows_core::Interface::vtable(self).GetCancelledPage)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWizardSite, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWizardSite { - type Vtable = IWizardSite_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWizardSite { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x88960f5b_422f_4e7b_8013_73415381c3c3); -} #[repr(C)] #[doc(hidden)] pub struct IWizardSite_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/UI/TabletPC/impl.rs b/crates/libs/windows/src/Windows/Win32/UI/TabletPC/impl.rs index 6b15ea9984..c740f92081 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/TabletPC/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/TabletPC/impl.rs @@ -153,7 +153,7 @@ impl IDynamicRenderer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IGestureRecognizer_Impl: Sized { @@ -220,7 +220,7 @@ impl IGestureRecognizer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -251,7 +251,7 @@ impl IHandwrittenTextInsertion_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -265,7 +265,7 @@ impl IInk_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -676,7 +676,7 @@ impl IInkCollector_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -778,7 +778,7 @@ impl IInkCursor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -834,7 +834,7 @@ impl IInkCursorButton_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -890,7 +890,7 @@ impl IInkCursorButtons_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -946,7 +946,7 @@ impl IInkCursors_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1023,7 +1023,7 @@ impl IInkCustomStrokes_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1317,7 +1317,7 @@ impl IInkDisp_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1407,7 +1407,7 @@ impl IInkDivider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1450,7 +1450,7 @@ impl IInkDivisionResult_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1519,7 +1519,7 @@ impl IInkDivisionUnit_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1575,7 +1575,7 @@ impl IInkDivisionUnits_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1798,7 +1798,7 @@ impl IInkDrawingAttributes_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2582,7 +2582,7 @@ impl IInkEdit_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2678,7 +2678,7 @@ impl IInkExtendedProperties_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2728,7 +2728,7 @@ impl IInkExtendedProperty_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2778,7 +2778,7 @@ impl IInkGesture_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IInkLineInfo_Impl: Sized { @@ -2833,7 +2833,7 @@ impl IInkLineInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3384,7 +3384,7 @@ impl IInkOverlay_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3988,7 +3988,7 @@ impl IInkPicture_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4188,7 +4188,7 @@ impl IInkRecognitionAlternate_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4257,7 +4257,7 @@ impl IInkRecognitionAlternates_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4353,7 +4353,7 @@ impl IInkRecognitionResult_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4461,7 +4461,7 @@ impl IInkRecognizer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4504,7 +4504,7 @@ impl IInkRecognizer2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4755,7 +4755,7 @@ impl IInkRecognizerContext_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4792,7 +4792,7 @@ impl IInkRecognizerContext2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4923,7 +4923,7 @@ impl IInkRecognizerGuide_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -4992,7 +4992,7 @@ impl IInkRecognizers_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5123,7 +5123,7 @@ impl IInkRectangle_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5257,7 +5257,7 @@ impl IInkRenderer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5643,7 +5643,7 @@ impl IInkStrokeDisp_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5842,7 +5842,7 @@ impl IInkStrokes_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5931,7 +5931,7 @@ impl IInkTablet_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -5958,7 +5958,7 @@ impl IInkTablet2_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::(), DeviceKind: DeviceKind:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6001,7 +6001,7 @@ impl IInkTablet3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6083,7 +6083,7 @@ impl IInkTablets_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6290,7 +6290,7 @@ impl IInkTransform_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6328,7 +6328,7 @@ impl IInkWordList_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6349,7 +6349,7 @@ impl IInkWordList2_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::(), AddWords: AddWords:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IInputPanelWindowHandle_Impl: Sized { @@ -6402,7 +6402,7 @@ impl IInputPanelWindowHandle_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6556,7 +6556,7 @@ impl IMathInputControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6826,7 +6826,7 @@ impl IPenInputPanel_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -7138,7 +7138,7 @@ impl IRealTimeStylus_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRealTimeStylus2_Impl: Sized { @@ -7171,7 +7171,7 @@ impl IRealTimeStylus2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRealTimeStylus3_Impl: Sized { @@ -7204,7 +7204,7 @@ impl IRealTimeStylus3_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IRealTimeStylusSynchronization_Impl: Sized { @@ -7231,7 +7231,7 @@ impl IRealTimeStylusSynchronization_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -7245,7 +7245,7 @@ impl ISketchInk_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -7310,7 +7310,7 @@ impl IStrokeBuilder_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -7324,7 +7324,7 @@ impl IStylusAsyncPlugin_Vtbl { Self { base__: IStylusPlugin_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -7466,7 +7466,7 @@ impl IStylusPlugin_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -7480,7 +7480,7 @@ impl IStylusSyncPlugin_Vtbl { Self { base__: IStylusPlugin_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ITextInputPanel_Impl: Sized { @@ -7746,7 +7746,7 @@ impl ITextInputPanel_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -7847,7 +7847,7 @@ impl ITextInputPanelEventSink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITextInputPanelRunInfo_Impl: Sized { @@ -7870,7 +7870,7 @@ impl ITextInputPanelRunInfo_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), IsTipRunning: IsTipRunning:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITipAutoCompleteClient_Impl: Sized { @@ -7924,7 +7924,7 @@ impl ITipAutoCompleteClient_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITipAutoCompleteProvider_Impl: Sized { @@ -7951,7 +7951,7 @@ impl ITipAutoCompleteProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -7965,7 +7965,7 @@ impl _IInkCollectorEvents_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &<_IInkCollectorEvents as ::windows_core::ComInterface>::IID || iid == &::IID + iid == &<_IInkCollectorEvents as ::windows_core::Interface>::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -7979,7 +7979,7 @@ impl _IInkEditEvents_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &<_IInkEditEvents as ::windows_core::ComInterface>::IID || iid == &::IID + iid == &<_IInkEditEvents as ::windows_core::Interface>::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -7993,7 +7993,7 @@ impl _IInkEvents_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &<_IInkEvents as ::windows_core::ComInterface>::IID || iid == &::IID + iid == &<_IInkEvents as ::windows_core::Interface>::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -8007,7 +8007,7 @@ impl _IInkOverlayEvents_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &<_IInkOverlayEvents as ::windows_core::ComInterface>::IID || iid == &::IID + iid == &<_IInkOverlayEvents as ::windows_core::Interface>::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -8021,7 +8021,7 @@ impl _IInkPictureEvents_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &<_IInkPictureEvents as ::windows_core::ComInterface>::IID || iid == &::IID + iid == &<_IInkPictureEvents as ::windows_core::Interface>::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -8035,7 +8035,7 @@ impl _IInkRecognitionEvents_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &<_IInkRecognitionEvents as ::windows_core::ComInterface>::IID || iid == &::IID + iid == &<_IInkRecognitionEvents as ::windows_core::Interface>::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -8049,7 +8049,7 @@ impl _IInkStrokesEvents_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &<_IInkStrokesEvents as ::windows_core::ComInterface>::IID || iid == &::IID + iid == &<_IInkStrokesEvents as ::windows_core::Interface>::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -8063,7 +8063,7 @@ impl _IMathInputControlEvents_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &<_IMathInputControlEvents as ::windows_core::ComInterface>::IID || iid == &::IID + iid == &<_IMathInputControlEvents as ::windows_core::Interface>::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -8077,6 +8077,6 @@ impl _IPenInputPanelEvents_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &<_IPenInputPanelEvents as ::windows_core::ComInterface>::IID || iid == &::IID + iid == &<_IPenInputPanelEvents as ::windows_core::Interface>::IID || iid == &::IID } } 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 c6774321f5..44b5196b29 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/TabletPC/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/TabletPC/mod.rs @@ -213,9 +213,8 @@ where ::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() } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDynamicRenderer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDynamicRenderer, IDynamicRenderer_Vtbl, 0xa079468e_7165_46f9_b7af_98ad01a93009); +::windows_core::imp::interface_hierarchy!(IDynamicRenderer, ::windows_core::IUnknown); impl IDynamicRenderer { pub unsafe fn Enabled(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -291,13 +290,6 @@ impl IDynamicRenderer { (::windows_core::Interface::vtable(self).Draw)(::windows_core::Interface::as_raw(self), hdc.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IDynamicRenderer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDynamicRenderer { - type Vtable = IDynamicRenderer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDynamicRenderer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa079468e_7165_46f9_b7af_98ad01a93009); -} #[repr(C)] #[doc(hidden)] pub struct IDynamicRenderer_Vtbl { @@ -324,9 +316,8 @@ pub struct IDynamicRenderer_Vtbl { pub Refresh: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Draw: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hdc: super::super::Foundation::HANDLE_PTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IGestureRecognizer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IGestureRecognizer, IGestureRecognizer_Vtbl, 0xae9ef86b_7054_45e3_ae22_3174dc8811b7); +::windows_core::imp::interface_hierarchy!(IGestureRecognizer, ::windows_core::IUnknown); impl IGestureRecognizer { pub unsafe fn Enabled(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -352,13 +343,6 @@ impl IGestureRecognizer { (::windows_core::Interface::vtable(self).Reset)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IGestureRecognizer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IGestureRecognizer { - type Vtable = IGestureRecognizer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IGestureRecognizer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xae9ef86b_7054_45e3_ae22_3174dc8811b7); -} #[repr(C)] #[doc(hidden)] pub struct IGestureRecognizer_Vtbl { @@ -370,9 +354,8 @@ pub struct IGestureRecognizer_Vtbl { pub EnableGestures: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cgestures: u32, pgestures: *const i32) -> ::windows_core::HRESULT, pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHandwrittenTextInsertion(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IHandwrittenTextInsertion, IHandwrittenTextInsertion_Vtbl, 0x56fdea97_ecd6_43e7_aa3a_816be7785860); +::windows_core::imp::interface_hierarchy!(IHandwrittenTextInsertion, ::windows_core::IUnknown); impl IHandwrittenTextInsertion { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -392,13 +375,6 @@ impl IHandwrittenTextInsertion { (::windows_core::Interface::vtable(self).InsertInkRecognitionResult)(::windows_core::Interface::as_raw(self), piinkrecoresult.into_param().abi(), locale, falternatecontainsautospacinginformation.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IHandwrittenTextInsertion, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHandwrittenTextInsertion { - type Vtable = IHandwrittenTextInsertion_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHandwrittenTextInsertion { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x56fdea97_ecd6_43e7_aa3a_816be7785860); -} #[repr(C)] #[doc(hidden)] pub struct IHandwrittenTextInsertion_Vtbl { @@ -412,34 +388,32 @@ pub struct IHandwrittenTextInsertion_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] InsertInkRecognitionResult: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] -#[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInk(::windows_core::IUnknown); #[cfg(feature = "Win32_System_Com")] -impl IInk {} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IInk, + IInk_Vtbl, + 0x03f8e511_43a1_11d3_8bb6_0080c7d6bad5 +); #[cfg(feature = "Win32_System_Com")] ::windows_core::imp::interface_hierarchy!(IInk, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IInk { - type Vtable = IInk_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IInk { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x03f8e511_43a1_11d3_8bb6_0080c7d6bad5); -} +impl IInk {} #[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IInk_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkCollector(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IInkCollector, + IInkCollector_Vtbl, + 0xf0f060b5_8b1f_4a7c_89ec_880692588a4f +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IInkCollector, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IInkCollector { pub unsafe fn hWnd(&self) -> ::windows_core::Result { @@ -657,16 +631,6 @@ impl IInkCollector { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IInkCollector, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IInkCollector { - type Vtable = IInkCollector_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IInkCollector { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf0f060b5_8b1f_4a7c_89ec_880692588a4f); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IInkCollector_Vtbl { @@ -760,11 +724,15 @@ pub struct IInkCollector_Vtbl { pub GetEventInterest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventid: InkCollectorEventInterest, listen: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub SetEventInterest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventid: InkCollectorEventInterest, listen: super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkCursor(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IInkCursor, + IInkCursor_Vtbl, + 0xad30c630_40c5_4350_8405_9c71012fc558 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IInkCursor, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IInkCursor { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -807,16 +775,6 @@ impl IInkCursor { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IInkCursor, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IInkCursor { - type Vtable = IInkCursor_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IInkCursor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xad30c630_40c5_4350_8405_9c71012fc558); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IInkCursor_Vtbl { @@ -841,11 +799,15 @@ pub struct IInkCursor_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Buttons: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkCursorButton(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IInkCursorButton, + IInkCursorButton_Vtbl, + 0x85ef9417_1d59_49b2_a13c_702c85430894 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IInkCursorButton, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IInkCursorButton { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -862,16 +824,6 @@ impl IInkCursorButton { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IInkCursorButton, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IInkCursorButton { - type Vtable = IInkCursorButton_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IInkCursorButton { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x85ef9417_1d59_49b2_a13c_702c85430894); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IInkCursorButton_Vtbl { @@ -880,11 +832,15 @@ pub struct IInkCursorButton_Vtbl { pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub State: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, currentstate: *mut InkCursorButtonState) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkCursorButtons(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IInkCursorButtons, + IInkCursorButtons_Vtbl, + 0x3671cc40_b624_4671_9fa0_db119d952d54 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IInkCursorButtons, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IInkCursorButtons { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -903,16 +859,6 @@ impl IInkCursorButtons { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IInkCursorButtons, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IInkCursorButtons { - type Vtable = IInkCursorButtons_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IInkCursorButtons { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3671cc40_b624_4671_9fa0_db119d952d54); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IInkCursorButtons_Vtbl { @@ -924,11 +870,15 @@ pub struct IInkCursorButtons_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] Item: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkCursors(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IInkCursors, + IInkCursors_Vtbl, + 0xa248c1ac_c698_4e06_9e5c_d57f77c7e647 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IInkCursors, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IInkCursors { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -947,16 +897,6 @@ impl IInkCursors { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IInkCursors, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IInkCursors { - type Vtable = IInkCursors_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IInkCursors { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa248c1ac_c698_4e06_9e5c_d57f77c7e647); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IInkCursors_Vtbl { @@ -968,11 +908,15 @@ pub struct IInkCursors_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Item: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkCustomStrokes(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IInkCustomStrokes, + IInkCustomStrokes_Vtbl, + 0x7e23a88f_c30e_420f_9bdb_28902543f0c1 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IInkCustomStrokes, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IInkCustomStrokes { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -1008,16 +952,6 @@ impl IInkCustomStrokes { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IInkCustomStrokes, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IInkCustomStrokes { - type Vtable = IInkCustomStrokes_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IInkCustomStrokes { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7e23a88f_c30e_420f_9bdb_28902543f0c1); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IInkCustomStrokes_Vtbl { @@ -1038,11 +972,15 @@ pub struct IInkCustomStrokes_Vtbl { Remove: usize, pub Clear: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkDisp(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IInkDisp, + IInkDisp_Vtbl, + 0x9d398fa0_c4e2_4fcd_9973_975caaf47ea6 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IInkDisp, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IInkDisp { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1222,16 +1160,6 @@ impl IInkDisp { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IInkDisp, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IInkDisp { - type Vtable = IInkDisp_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IInkDisp { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9d398fa0_c4e2_4fcd_9973_975caaf47ea6); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IInkDisp_Vtbl { @@ -1331,11 +1259,15 @@ pub struct IInkDisp_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] ClipboardPaste: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkDivider(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IInkDivider, + IInkDivider_Vtbl, + 0x5de00405_f9a4_4651_b0c5_c317defd58b9 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IInkDivider, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IInkDivider { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1381,16 +1313,6 @@ impl IInkDivider { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IInkDivider, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IInkDivider { - type Vtable = IInkDivider_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IInkDivider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5de00405_f9a4_4651_b0c5_c317defd58b9); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IInkDivider_Vtbl { @@ -1418,11 +1340,15 @@ pub struct IInkDivider_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Divide: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkDivisionResult(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IInkDivisionResult, + IInkDivisionResult_Vtbl, + 0x2dbec0a7_74c7_4b38_81eb_aa8ef0c24900 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IInkDivisionResult, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IInkDivisionResult { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1439,16 +1365,6 @@ impl IInkDivisionResult { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IInkDivisionResult, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IInkDivisionResult { - type Vtable = IInkDivisionResult_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IInkDivisionResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2dbec0a7_74c7_4b38_81eb_aa8ef0c24900); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IInkDivisionResult_Vtbl { @@ -1462,11 +1378,15 @@ pub struct IInkDivisionResult_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] ResultByType: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkDivisionUnit(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IInkDivisionUnit, + IInkDivisionUnit_Vtbl, + 0x85aee342_48b0_4244_9dd5_1ed435410fab +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IInkDivisionUnit, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IInkDivisionUnit { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1491,16 +1411,6 @@ impl IInkDivisionUnit { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IInkDivisionUnit, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IInkDivisionUnit { - type Vtable = IInkDivisionUnit_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IInkDivisionUnit { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x85aee342_48b0_4244_9dd5_1ed435410fab); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IInkDivisionUnit_Vtbl { @@ -1516,11 +1426,15 @@ pub struct IInkDivisionUnit_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] RotationTransform: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkDivisionUnits(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IInkDivisionUnits, + IInkDivisionUnits_Vtbl, + 0x1bb5ddc2_31cc_4135_ab82_2c66c9f00c41 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IInkDivisionUnits, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IInkDivisionUnits { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -1539,16 +1453,6 @@ impl IInkDivisionUnits { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IInkDivisionUnits, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IInkDivisionUnits { - type Vtable = IInkDivisionUnits_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IInkDivisionUnits { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1bb5ddc2_31cc_4135_ab82_2c66c9f00c41); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IInkDivisionUnits_Vtbl { @@ -1560,11 +1464,15 @@ pub struct IInkDivisionUnits_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Item: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkDrawingAttributes(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IInkDrawingAttributes, + IInkDrawingAttributes_Vtbl, + 0xbf519b75_0a15_4623_adc9_c00d436a8092 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IInkDrawingAttributes, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IInkDrawingAttributes { pub unsafe fn Color(&self) -> ::windows_core::Result { @@ -1653,16 +1561,6 @@ impl IInkDrawingAttributes { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IInkDrawingAttributes, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IInkDrawingAttributes { - type Vtable = IInkDrawingAttributes_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IInkDrawingAttributes { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbf519b75_0a15_4623_adc9_c00d436a8092); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IInkDrawingAttributes_Vtbl { @@ -1694,11 +1592,15 @@ pub struct IInkDrawingAttributes_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Clone: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkEdit(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IInkEdit, + IInkEdit_Vtbl, + 0xf2127a19_fbfb_4aed_8464_3f36d78cfefb +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IInkEdit, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IInkEdit { pub unsafe fn Status(&self) -> ::windows_core::Result { @@ -2076,16 +1978,6 @@ impl IInkEdit { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IInkEdit, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IInkEdit { - type Vtable = IInkEdit_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IInkEdit { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf2127a19_fbfb_4aed_8464_3f36d78cfefb); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IInkEdit_Vtbl { @@ -2252,11 +2144,15 @@ pub struct IInkEdit_Vtbl { pub SetSelRTF: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrselrtf: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub Refresh: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkExtendedProperties(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IInkExtendedProperties, + IInkExtendedProperties_Vtbl, + 0x89f2a8be_95a9_4530_8b8f_88e971e3e25f +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IInkExtendedProperties, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IInkExtendedProperties { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -2299,16 +2195,6 @@ impl IInkExtendedProperties { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IInkExtendedProperties, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IInkExtendedProperties { - type Vtable = IInkExtendedProperties_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IInkExtendedProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x89f2a8be_95a9_4530_8b8f_88e971e3e25f); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IInkExtendedProperties_Vtbl { @@ -2330,11 +2216,15 @@ pub struct IInkExtendedProperties_Vtbl { pub Clear: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub DoesPropertyExist: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guid: ::std::mem::MaybeUninit<::windows_core::BSTR>, doespropertyexist: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkExtendedProperty(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IInkExtendedProperty, + IInkExtendedProperty_Vtbl, + 0xdb489209_b7c3_411d_90f6_1548cfff271e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IInkExtendedProperty, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IInkExtendedProperty { pub unsafe fn Guid(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -2354,16 +2244,6 @@ impl IInkExtendedProperty { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IInkExtendedProperty, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IInkExtendedProperty { - type Vtable = IInkExtendedProperty_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IInkExtendedProperty { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdb489209_b7c3_411d_90f6_1548cfff271e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IInkExtendedProperty_Vtbl { @@ -2378,11 +2258,15 @@ pub struct IInkExtendedProperty_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] SetData: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkGesture(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IInkGesture, + IInkGesture_Vtbl, + 0x3bdc0a97_04e5_4e26_b813_18f052d41def +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IInkGesture, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IInkGesture { pub unsafe fn Confidence(&self) -> ::windows_core::Result { @@ -2398,16 +2282,6 @@ impl IInkGesture { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IInkGesture, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IInkGesture { - type Vtable = IInkGesture_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IInkGesture { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3bdc0a97_04e5_4e26_b813_18f052d41def); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IInkGesture_Vtbl { @@ -2416,9 +2290,8 @@ pub struct IInkGesture_Vtbl { pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: *mut InkApplicationGesture) -> ::windows_core::HRESULT, pub GetHotPoint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, x: *mut i32, y: *mut i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkLineInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IInkLineInfo, IInkLineInfo_Vtbl, 0x9c1c5ad6_f22f_4de4_b453_a2cc482e7c33); +::windows_core::imp::interface_hierarchy!(IInkLineInfo, ::windows_core::IUnknown); impl IInkLineInfo { pub unsafe fn SetFormat(&self, pim: *const INKMETRIC) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetFormat)(::windows_core::Interface::as_raw(self), pim).ok() @@ -2445,13 +2318,6 @@ impl IInkLineInfo { (::windows_core::Interface::vtable(self).Recognize)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IInkLineInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInkLineInfo { - type Vtable = IInkLineInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInkLineInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9c1c5ad6_f22f_4de4_b453_a2cc482e7c33); -} #[repr(C)] #[doc(hidden)] pub struct IInkLineInfo_Vtbl { @@ -2463,11 +2329,15 @@ pub struct IInkLineInfo_Vtbl { pub SetCandidate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ncandidatenum: u32, strrecogword: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub Recognize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkOverlay(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IInkOverlay, + IInkOverlay_Vtbl, + 0xb82a463b_c1c5_45a3_997c_deab5651b67a +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IInkOverlay, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IInkOverlay { pub unsafe fn hWnd(&self) -> ::windows_core::Result { @@ -2749,16 +2619,6 @@ impl IInkOverlay { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IInkOverlay, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IInkOverlay { - type Vtable = IInkOverlay_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IInkOverlay { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb82a463b_c1c5_45a3_997c_deab5651b67a); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IInkOverlay_Vtbl { @@ -2875,11 +2735,15 @@ pub struct IInkOverlay_Vtbl { pub GetEventInterest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventid: InkCollectorEventInterest, listen: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub SetEventInterest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventid: InkCollectorEventInterest, listen: super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkPicture(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IInkPicture, + IInkPicture_Vtbl, + 0xe85662e0_379a_40d7_9b5c_757d233f9923 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IInkPicture, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IInkPicture { pub unsafe fn hWnd(&self) -> ::windows_core::Result { @@ -3189,16 +3053,6 @@ impl IInkPicture { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IInkPicture, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IInkPicture { - type Vtable = IInkPicture_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IInkPicture { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe85662e0_379a_40d7_9b5c_757d233f9923); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IInkPicture_Vtbl { @@ -3326,11 +3180,15 @@ pub struct IInkPicture_Vtbl { pub Enabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbool: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub SetEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, vbool: super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkRecognitionAlternate(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IInkRecognitionAlternate, + IInkRecognitionAlternate_Vtbl, + 0xb7e660ad_77e4_429b_adda_873780d1fc4a +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IInkRecognitionAlternate, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IInkRecognitionAlternate { pub unsafe fn String(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -3429,16 +3287,6 @@ impl IInkRecognitionAlternate { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IInkRecognitionAlternate, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IInkRecognitionAlternate { - type Vtable = IInkRecognitionAlternate_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IInkRecognitionAlternate { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb7e660ad_77e4_429b_adda_873780d1fc4a); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IInkRecognitionAlternate_Vtbl { @@ -3495,11 +3343,15 @@ pub struct IInkRecognitionAlternate_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] GetPropertyValue: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkRecognitionAlternates(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IInkRecognitionAlternates, + IInkRecognitionAlternates_Vtbl, + 0x286a167f_9f19_4c61_9d53_4f07be622b84 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IInkRecognitionAlternates, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IInkRecognitionAlternates { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -3524,16 +3376,6 @@ impl IInkRecognitionAlternates { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IInkRecognitionAlternates, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IInkRecognitionAlternates { - type Vtable = IInkRecognitionAlternates_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IInkRecognitionAlternates { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x286a167f_9f19_4c61_9d53_4f07be622b84); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IInkRecognitionAlternates_Vtbl { @@ -3549,11 +3391,15 @@ pub struct IInkRecognitionAlternates_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Item: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkRecognitionResult(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IInkRecognitionResult, + IInkRecognitionResult_Vtbl, + 0x3bc129a8_86cd_45ad_bde8_e0d32d61c16d +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IInkRecognitionResult, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IInkRecognitionResult { pub unsafe fn TopString(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -3595,16 +3441,6 @@ impl IInkRecognitionResult { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IInkRecognitionResult, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IInkRecognitionResult { - type Vtable = IInkRecognitionResult_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IInkRecognitionResult { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3bc129a8_86cd_45ad_bde8_e0d32d61c16d); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IInkRecognitionResult_Vtbl { @@ -3629,11 +3465,15 @@ pub struct IInkRecognitionResult_Vtbl { ModifyTopAlternate: usize, pub SetResultOnStrokes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkRecognizer(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IInkRecognizer, + IInkRecognizer_Vtbl, + 0x782bf7cf_034b_4396_8a32_3a1833cf6b56 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IInkRecognizer, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IInkRecognizer { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -3674,16 +3514,6 @@ impl IInkRecognizer { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IInkRecognizer, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IInkRecognizer { - type Vtable = IInkRecognizer_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IInkRecognizer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x782bf7cf_034b_4396_8a32_3a1833cf6b56); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IInkRecognizer_Vtbl { @@ -3708,11 +3538,15 @@ pub struct IInkRecognizer_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] CreateRecognizerContext: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkRecognizer2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IInkRecognizer2, + IInkRecognizer2_Vtbl, + 0x6110118a_3a75_4ad6_b2aa_04b2b72bbe65 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IInkRecognizer2, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IInkRecognizer2 { pub unsafe fn Id(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -3727,16 +3561,6 @@ impl IInkRecognizer2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IInkRecognizer2, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IInkRecognizer2 { - type Vtable = IInkRecognizer2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IInkRecognizer2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6110118a_3a75_4ad6_b2aa_04b2b72bbe65); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IInkRecognizer2_Vtbl { @@ -3747,11 +3571,15 @@ pub struct IInkRecognizer2_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] UnicodeRanges: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkRecognizerContext(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IInkRecognizerContext, + IInkRecognizerContext_Vtbl, + 0xc68f52f9_32a3_4625_906c_44fc23b40958 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IInkRecognizerContext, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IInkRecognizerContext { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3882,16 +3710,6 @@ impl IInkRecognizerContext { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IInkRecognizerContext, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IInkRecognizerContext { - type Vtable = IInkRecognizerContext_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IInkRecognizerContext { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc68f52f9_32a3_4625_906c_44fc23b40958); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IInkRecognizerContext_Vtbl { @@ -3954,11 +3772,15 @@ pub struct IInkRecognizerContext_Vtbl { Clone: usize, pub IsStringSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, string: ::std::mem::MaybeUninit<::windows_core::BSTR>, supported: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkRecognizerContext2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IInkRecognizerContext2, + IInkRecognizerContext2_Vtbl, + 0xd6f0e32f_73d8_408e_8e9f_5fea592c363f +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IInkRecognizerContext2, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IInkRecognizerContext2 { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3974,16 +3796,6 @@ impl IInkRecognizerContext2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IInkRecognizerContext2, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IInkRecognizerContext2 { - type Vtable = IInkRecognizerContext2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IInkRecognizerContext2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd6f0e32f_73d8_408e_8e9f_5fea592c363f); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IInkRecognizerContext2_Vtbl { @@ -3997,11 +3809,15 @@ pub struct IInkRecognizerContext2_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] SetEnabledUnicodeRanges: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkRecognizerGuide(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IInkRecognizerGuide, + IInkRecognizerGuide_Vtbl, + 0xd934be07_7b84_4208_9136_83c20994e905 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IInkRecognizerGuide, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IInkRecognizerGuide { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -4061,16 +3877,6 @@ impl IInkRecognizerGuide { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IInkRecognizerGuide, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IInkRecognizerGuide { - type Vtable = IInkRecognizerGuide_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IInkRecognizerGuide { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd934be07_7b84_4208_9136_83c20994e905); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IInkRecognizerGuide_Vtbl { @@ -4100,11 +3906,15 @@ pub struct IInkRecognizerGuide_Vtbl { pub GuideData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, precoguide: *mut InkRecoGuide) -> ::windows_core::HRESULT, pub SetGuideData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, recoguide: InkRecoGuide) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkRecognizers(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IInkRecognizers, + IInkRecognizers_Vtbl, + 0x9ccc4f12_b0b7_4a8b_bf58_4aeca4e8cefd +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IInkRecognizers, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IInkRecognizers { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -4129,16 +3939,6 @@ impl IInkRecognizers { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IInkRecognizers, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IInkRecognizers { - type Vtable = IInkRecognizers_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IInkRecognizers { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9ccc4f12_b0b7_4a8b_bf58_4aeca4e8cefd); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IInkRecognizers_Vtbl { @@ -4154,11 +3954,15 @@ pub struct IInkRecognizers_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Item: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkRectangle(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IInkRectangle, + IInkRectangle_Vtbl, + 0x9794ff82_6071_4717_8a8b_6ac7c64a686e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IInkRectangle, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IInkRectangle { pub unsafe fn Top(&self) -> ::windows_core::Result { @@ -4204,16 +4008,6 @@ impl IInkRectangle { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IInkRectangle, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IInkRectangle { - type Vtable = IInkRectangle_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IInkRectangle { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9794ff82_6071_4717_8a8b_6ac7c64a686e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IInkRectangle_Vtbl { @@ -4231,11 +4025,15 @@ pub struct IInkRectangle_Vtbl { pub GetRectangle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, top: *mut i32, left: *mut i32, bottom: *mut i32, right: *mut i32) -> ::windows_core::HRESULT, pub SetRectangle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, top: i32, left: i32, bottom: i32, right: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkRenderer(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IInkRenderer, + IInkRenderer_Vtbl, + 0xe6257a9c_b511_4f4c_a8b0_a7dbc9506b83 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IInkRenderer, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IInkRenderer { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -4336,16 +4134,6 @@ impl IInkRenderer { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IInkRenderer, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IInkRenderer { - type Vtable = IInkRenderer_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IInkRenderer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe6257a9c_b511_4f4c_a8b0_a7dbc9506b83); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IInkRenderer_Vtbl { @@ -4396,11 +4184,15 @@ pub struct IInkRenderer_Vtbl { pub Rotate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, degrees: f32, x: f32, y: f32) -> ::windows_core::HRESULT, pub ScaleTransform: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, horizontalmultiplier: f32, verticalmultiplier: f32, applyonpenwidth: super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkStrokeDisp(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IInkStrokeDisp, + IInkStrokeDisp_Vtbl, + 0x43242fea_91d1_4a72_963e_fbb91829cfa2 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IInkStrokeDisp, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IInkStrokeDisp { pub unsafe fn ID(&self) -> ::windows_core::Result { @@ -4599,16 +4391,6 @@ impl IInkStrokeDisp { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IInkStrokeDisp, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IInkStrokeDisp { - type Vtable = IInkStrokeDisp_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IInkStrokeDisp { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x43242fea_91d1_4a72_963e_fbb91829cfa2); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IInkStrokeDisp_Vtbl { @@ -4713,11 +4495,15 @@ pub struct IInkStrokeDisp_Vtbl { pub Shear: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, horizontalmultiplier: f32, verticalmultiplier: f32) -> ::windows_core::HRESULT, pub ScaleTransform: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, horizontalmultiplier: f32, verticalmultiplier: f32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkStrokes(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IInkStrokes, + IInkStrokes_Vtbl, + 0xf1f4c9d8_590a_4963_b3ae_1935671bb6f3 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IInkStrokes, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IInkStrokes { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -4838,16 +4624,6 @@ impl IInkStrokes { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IInkStrokes, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IInkStrokes { - type Vtable = IInkStrokes_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IInkStrokes { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf1f4c9d8_590a_4963_b3ae_1935671bb6f3); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IInkStrokes_Vtbl { @@ -4909,11 +4685,15 @@ pub struct IInkStrokes_Vtbl { Clip: usize, pub RemoveRecognitionResult: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkTablet(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IInkTablet, + IInkTablet_Vtbl, + 0x2de25eaa_6ef8_42d5_aee9_185bc81b912d +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IInkTablet, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IInkTablet { pub unsafe fn Name(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -4949,16 +4729,6 @@ impl IInkTablet { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IInkTablet, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IInkTablet { - type Vtable = IInkTablet_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IInkTablet { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2de25eaa_6ef8_42d5_aee9_185bc81b912d); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IInkTablet_Vtbl { @@ -4973,11 +4743,15 @@ pub struct IInkTablet_Vtbl { pub IsPacketPropertySupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, packetpropertyname: ::std::mem::MaybeUninit<::windows_core::BSTR>, supported: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub GetPropertyMetrics: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertyname: ::std::mem::MaybeUninit<::windows_core::BSTR>, minimum: *mut i32, maximum: *mut i32, units: *mut TabletPropertyMetricUnit, resolution: *mut f32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkTablet2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IInkTablet2, + IInkTablet2_Vtbl, + 0x90c91ad2_fa36_49d6_9516_ce8d570f6f85 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IInkTablet2, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IInkTablet2 { pub unsafe fn DeviceKind(&self) -> ::windows_core::Result { @@ -4986,27 +4760,21 @@ impl IInkTablet2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IInkTablet2, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IInkTablet2 { - type Vtable = IInkTablet2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IInkTablet2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x90c91ad2_fa36_49d6_9516_ce8d570f6f85); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IInkTablet2_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, pub DeviceKind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, kind: *mut TabletDeviceKind) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkTablet3(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IInkTablet3, + IInkTablet3_Vtbl, + 0x7e313997_1327_41dd_8ca9_79f24be17250 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IInkTablet3, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IInkTablet3 { pub unsafe fn IsMultiTouch(&self) -> ::windows_core::Result { @@ -5019,16 +4787,6 @@ impl IInkTablet3 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IInkTablet3, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IInkTablet3 { - type Vtable = IInkTablet3_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IInkTablet3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7e313997_1327_41dd_8ca9_79f24be17250); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IInkTablet3_Vtbl { @@ -5036,11 +4794,15 @@ pub struct IInkTablet3_Vtbl { pub IsMultiTouch: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pismultitouch: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub MaximumCursors: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pmaximumcursors: *mut u32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkTablets(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IInkTablets, + IInkTablets_Vtbl, + 0x112086d9_7779_4535_a699_862b43ac1863 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IInkTablets, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IInkTablets { pub unsafe fn Count(&self) -> ::windows_core::Result { @@ -5072,16 +4834,6 @@ impl IInkTablets { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IInkTablets, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IInkTablets { - type Vtable = IInkTablets_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IInkTablets { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x112086d9_7779_4535_a699_862b43ac1863); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IInkTablets_Vtbl { @@ -5098,11 +4850,15 @@ pub struct IInkTablets_Vtbl { Item: usize, pub IsPacketPropertySupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, packetpropertyname: ::std::mem::MaybeUninit<::windows_core::BSTR>, supported: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkTransform(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IInkTransform, + IInkTransform_Vtbl, + 0x615f1d43_8703_4565_88e2_8201d2ecd7b7 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IInkTransform, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IInkTransform { pub unsafe fn Reset(&self) -> ::windows_core::Result<()> { @@ -5187,16 +4943,6 @@ impl IInkTransform { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IInkTransform, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IInkTransform { - type Vtable = IInkTransform_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IInkTransform { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x615f1d43_8703_4565_88e2_8201d2ecd7b7); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IInkTransform_Vtbl { @@ -5230,11 +4976,15 @@ pub struct IInkTransform_Vtbl { #[cfg(not(feature = "Win32_Graphics_Gdi"))] SetData: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkWordList(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IInkWordList, + IInkWordList_Vtbl, + 0x76ba3491_cb2f_406b_9961_0e0c4cdaaef2 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IInkWordList, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IInkWordList { pub unsafe fn AddWord(&self, newword: P0) -> ::windows_core::Result<()> @@ -5259,16 +5009,6 @@ impl IInkWordList { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IInkWordList, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IInkWordList { - type Vtable = IInkWordList_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IInkWordList { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x76ba3491_cb2f_406b_9961_0e0c4cdaaef2); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IInkWordList_Vtbl { @@ -5280,11 +5020,15 @@ pub struct IInkWordList_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Merge: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInkWordList2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IInkWordList2, + IInkWordList2_Vtbl, + 0x14542586_11bf_4f5f_b6e7_49d0744aab6e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IInkWordList2, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IInkWordList2 { pub unsafe fn AddWords(&self, newwords: P0) -> ::windows_core::Result<()> @@ -5295,25 +5039,14 @@ impl IInkWordList2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IInkWordList2, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IInkWordList2 { - type Vtable = IInkWordList2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IInkWordList2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x14542586_11bf_4f5f_b6e7_49d0744aab6e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IInkWordList2_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, pub AddWords: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newwords: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInputPanelWindowHandle(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IInputPanelWindowHandle, IInputPanelWindowHandle_Vtbl, 0x4af81847_fdc4_4fc3_ad0b_422479c1b935); +::windows_core::imp::interface_hierarchy!(IInputPanelWindowHandle, ::windows_core::IUnknown); impl IInputPanelWindowHandle { pub unsafe fn AttachedEditWindow32(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -5330,13 +5063,6 @@ impl IInputPanelWindowHandle { (::windows_core::Interface::vtable(self).SetAttachedEditWindow64)(::windows_core::Interface::as_raw(self), attachededitwindow).ok() } } -::windows_core::imp::interface_hierarchy!(IInputPanelWindowHandle, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInputPanelWindowHandle { - type Vtable = IInputPanelWindowHandle_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInputPanelWindowHandle { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4af81847_fdc4_4fc3_ad0b_422479c1b935); -} #[repr(C)] #[doc(hidden)] pub struct IInputPanelWindowHandle_Vtbl { @@ -5346,11 +5072,15 @@ pub struct IInputPanelWindowHandle_Vtbl { pub AttachedEditWindow64: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, attachededitwindow: *mut i64) -> ::windows_core::HRESULT, pub SetAttachedEditWindow64: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, attachededitwindow: i64) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMathInputControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IMathInputControl, + IMathInputControl_Vtbl, + 0xeba615aa_fac6_4738_ba5f_ff09e9fe473e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IMathInputControl, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IMathInputControl { pub unsafe fn Show(&self) -> ::windows_core::Result<()> { @@ -5434,16 +5164,6 @@ impl IMathInputControl { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IMathInputControl, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IMathInputControl { - type Vtable = IMathInputControl_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IMathInputControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xeba615aa_fac6_4738_ba5f_ff09e9fe473e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IMathInputControl_Vtbl { @@ -5472,11 +5192,15 @@ pub struct IMathInputControl_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole")))] GetHoverIcon: usize, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPenInputPanel(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IPenInputPanel, + IPenInputPanel_Vtbl, + 0xfa7a4083_5747_4040_a182_0b0e9fd4fac7 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IPenInputPanel, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IPenInputPanel { pub unsafe fn Busy(&self) -> ::windows_core::Result { @@ -5581,16 +5305,6 @@ impl IPenInputPanel { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IPenInputPanel, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IPenInputPanel { - type Vtable = IPenInputPanel_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IPenInputPanel { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfa7a4083_5747_4040_a182_0b0e9fd4fac7); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IPenInputPanel_Vtbl { @@ -5621,9 +5335,8 @@ pub struct IPenInputPanel_Vtbl { pub Refresh: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub EnableTsf: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enable: super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRealTimeStylus(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRealTimeStylus, IRealTimeStylus_Vtbl, 0xa8bb5d22_3144_4a7b_93cd_f34a16be513a); +::windows_core::imp::interface_hierarchy!(IRealTimeStylus, ::windows_core::IUnknown); impl IRealTimeStylus { pub unsafe fn Enabled(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -5768,13 +5481,6 @@ impl IRealTimeStylus { (::windows_core::Interface::vtable(self).GetPacketDescriptionData)(::windows_core::Interface::as_raw(self), tcid, ::core::mem::transmute(pfinktodevicescalex.unwrap_or(::std::ptr::null_mut())), ::core::mem::transmute(pfinktodevicescaley.unwrap_or(::std::ptr::null_mut())), pcpacketproperties, pppacketproperties).ok() } } -::windows_core::imp::interface_hierarchy!(IRealTimeStylus, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRealTimeStylus { - type Vtable = IRealTimeStylus_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRealTimeStylus { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa8bb5d22_3144_4a7b_93cd_f34a16be513a); -} #[repr(C)] #[doc(hidden)] pub struct IRealTimeStylus_Vtbl { @@ -5829,9 +5535,8 @@ pub struct IRealTimeStylus_Vtbl { pub GetDesiredPacketDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcproperties: *mut u32, pppropertyguids: *mut *mut ::windows_core::GUID) -> ::windows_core::HRESULT, pub GetPacketDescriptionData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, tcid: u32, pfinktodevicescalex: *mut f32, pfinktodevicescaley: *mut f32, pcpacketproperties: *mut u32, pppacketproperties: *mut *mut PACKET_PROPERTY) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRealTimeStylus2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRealTimeStylus2, IRealTimeStylus2_Vtbl, 0xb5f2a6cd_3179_4a3e_b9c4_bb5865962be2); +::windows_core::imp::interface_hierarchy!(IRealTimeStylus2, ::windows_core::IUnknown); impl IRealTimeStylus2 { pub unsafe fn FlicksEnabled(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -5844,13 +5549,6 @@ impl IRealTimeStylus2 { (::windows_core::Interface::vtable(self).SetFlicksEnabled)(::windows_core::Interface::as_raw(self), fenable.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IRealTimeStylus2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRealTimeStylus2 { - type Vtable = IRealTimeStylus2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRealTimeStylus2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb5f2a6cd_3179_4a3e_b9c4_bb5865962be2); -} #[repr(C)] #[doc(hidden)] pub struct IRealTimeStylus2_Vtbl { @@ -5858,9 +5556,8 @@ pub struct IRealTimeStylus2_Vtbl { pub FlicksEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfenable: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub SetFlicksEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRealTimeStylus3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRealTimeStylus3, IRealTimeStylus3_Vtbl, 0xd70230a3_6986_4051_b57a_1cf69f4d9db5); +::windows_core::imp::interface_hierarchy!(IRealTimeStylus3, ::windows_core::IUnknown); impl IRealTimeStylus3 { pub unsafe fn MultiTouchEnabled(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -5873,13 +5570,6 @@ impl IRealTimeStylus3 { (::windows_core::Interface::vtable(self).SetMultiTouchEnabled)(::windows_core::Interface::as_raw(self), fenable.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IRealTimeStylus3, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRealTimeStylus3 { - type Vtable = IRealTimeStylus3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRealTimeStylus3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd70230a3_6986_4051_b57a_1cf69f4d9db5); -} #[repr(C)] #[doc(hidden)] pub struct IRealTimeStylus3_Vtbl { @@ -5887,9 +5577,8 @@ pub struct IRealTimeStylus3_Vtbl { pub MultiTouchEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfenable: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub SetMultiTouchEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRealTimeStylusSynchronization(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRealTimeStylusSynchronization, IRealTimeStylusSynchronization_Vtbl, 0xaa87eab8_ab4a_4cea_b5cb_46d84c6a2509); +::windows_core::imp::interface_hierarchy!(IRealTimeStylusSynchronization, ::windows_core::IUnknown); impl IRealTimeStylusSynchronization { pub unsafe fn AcquireLock(&self, lock: RealTimeStylusLockType) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).AcquireLock)(::windows_core::Interface::as_raw(self), lock).ok() @@ -5898,13 +5587,6 @@ impl IRealTimeStylusSynchronization { (::windows_core::Interface::vtable(self).ReleaseLock)(::windows_core::Interface::as_raw(self), lock).ok() } } -::windows_core::imp::interface_hierarchy!(IRealTimeStylusSynchronization, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IRealTimeStylusSynchronization { - type Vtable = IRealTimeStylusSynchronization_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRealTimeStylusSynchronization { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaa87eab8_ab4a_4cea_b5cb_46d84c6a2509); -} #[repr(C)] #[doc(hidden)] pub struct IRealTimeStylusSynchronization_Vtbl { @@ -5912,32 +5594,25 @@ pub struct IRealTimeStylusSynchronization_Vtbl { pub AcquireLock: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lock: RealTimeStylusLockType) -> ::windows_core::HRESULT, pub ReleaseLock: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lock: RealTimeStylusLockType) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISketchInk(::windows_core::IUnknown); -#[cfg(feature = "Win32_System_Com")] -impl ISketchInk {} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ISketchInk, + ISketchInk_Vtbl, + 0xb4563688_98eb_4646_b279_44da14d45748 +); #[cfg(feature = "Win32_System_Com")] ::windows_core::imp::interface_hierarchy!(ISketchInk, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ISketchInk { - type Vtable = ISketchInk_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ISketchInk { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb4563688_98eb_4646_b279_44da14d45748); -} +impl ISketchInk {} #[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ISketchInk_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStrokeBuilder(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IStrokeBuilder, IStrokeBuilder_Vtbl, 0xa5fd4e2d_c44b_4092_9177_260905eb672b); +::windows_core::imp::interface_hierarchy!(IStrokeBuilder, ::windows_core::IUnknown); impl IStrokeBuilder { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -5972,13 +5647,6 @@ impl IStrokeBuilder { (::windows_core::Interface::vtable(self).putref_Ink)(::windows_core::Interface::as_raw(self), piinkobj.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IStrokeBuilder, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStrokeBuilder { - type Vtable = IStrokeBuilder_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStrokeBuilder { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa5fd4e2d_c44b_4092_9177_260905eb672b); -} #[repr(C)] #[doc(hidden)] pub struct IStrokeBuilder_Vtbl { @@ -6005,9 +5673,8 @@ pub struct IStrokeBuilder_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] putref_Ink: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStylusAsyncPlugin(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IStylusAsyncPlugin, IStylusAsyncPlugin_Vtbl, 0xa7cca85a_31bc_4cd2_aadc_3289a3af11c8); +::windows_core::imp::interface_hierarchy!(IStylusAsyncPlugin, ::windows_core::IUnknown, IStylusPlugin); impl IStylusAsyncPlugin { pub unsafe fn RealTimeStylusEnabled(&self, pirtssrc: P0, ptcids: &[u32]) -> ::windows_core::Result<()> where @@ -6114,21 +5781,13 @@ impl IStylusAsyncPlugin { (::windows_core::Interface::vtable(self).base__.DataInterest)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IStylusAsyncPlugin, ::windows_core::IUnknown, IStylusPlugin); -unsafe impl ::windows_core::Interface for IStylusAsyncPlugin { - type Vtable = IStylusAsyncPlugin_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStylusAsyncPlugin { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa7cca85a_31bc_4cd2_aadc_3289a3af11c8); -} #[repr(C)] #[doc(hidden)] pub struct IStylusAsyncPlugin_Vtbl { pub base__: IStylusPlugin_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStylusPlugin(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IStylusPlugin, IStylusPlugin_Vtbl, 0xa81436d8_4757_4fd1_a185_133f97c6c545); +::windows_core::imp::interface_hierarchy!(IStylusPlugin, ::windows_core::IUnknown); impl IStylusPlugin { pub unsafe fn RealTimeStylusEnabled(&self, pirtssrc: P0, ptcids: &[u32]) -> ::windows_core::Result<()> where @@ -6235,13 +5894,6 @@ impl IStylusPlugin { (::windows_core::Interface::vtable(self).DataInterest)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IStylusPlugin, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IStylusPlugin { - type Vtable = IStylusPlugin_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStylusPlugin { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa81436d8_4757_4fd1_a185_133f97c6c545); -} #[repr(C)] #[doc(hidden)] pub struct IStylusPlugin_Vtbl { @@ -6267,9 +5919,8 @@ pub struct IStylusPlugin_Vtbl { pub UpdateMapping: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pirtssrc: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub DataInterest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdatainterest: *mut RealTimeStylusDataInterest) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStylusSyncPlugin(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IStylusSyncPlugin, IStylusSyncPlugin_Vtbl, 0xa157b174_482f_4d71_a3f6_3a41ddd11be9); +::windows_core::imp::interface_hierarchy!(IStylusSyncPlugin, ::windows_core::IUnknown, IStylusPlugin); impl IStylusSyncPlugin { pub unsafe fn RealTimeStylusEnabled(&self, pirtssrc: P0, ptcids: &[u32]) -> ::windows_core::Result<()> where @@ -6376,21 +6027,13 @@ impl IStylusSyncPlugin { (::windows_core::Interface::vtable(self).base__.DataInterest)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IStylusSyncPlugin, ::windows_core::IUnknown, IStylusPlugin); -unsafe impl ::windows_core::Interface for IStylusSyncPlugin { - type Vtable = IStylusSyncPlugin_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStylusSyncPlugin { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa157b174_482f_4d71_a3f6_3a41ddd11be9); -} #[repr(C)] #[doc(hidden)] pub struct IStylusSyncPlugin_Vtbl { pub base__: IStylusPlugin_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITextInputPanel(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITextInputPanel, ITextInputPanel_Vtbl, 0x6b6a65a5_6af3_46c2_b6ea_56cd1f80df71); +::windows_core::imp::interface_hierarchy!(ITextInputPanel, ::windows_core::IUnknown); impl ITextInputPanel { pub unsafe fn AttachedEditWindow(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -6499,13 +6142,6 @@ impl ITextInputPanel { (::windows_core::Interface::vtable(self).Unadvise)(::windows_core::Interface::as_raw(self), eventsink.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ITextInputPanel, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITextInputPanel { - type Vtable = ITextInputPanel_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITextInputPanel { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6b6a65a5_6af3_46c2_b6ea_56cd1f80df71); -} #[repr(C)] #[doc(hidden)] pub struct ITextInputPanel_Vtbl { @@ -6536,9 +6172,8 @@ pub struct ITextInputPanel_Vtbl { pub Advise: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventsink: *mut ::core::ffi::c_void, eventmask: u32) -> ::windows_core::HRESULT, pub Unadvise: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventsink: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITextInputPanelEventSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITextInputPanelEventSink, ITextInputPanelEventSink_Vtbl, 0x27560408_8e64_4fe1_804e_421201584b31); +::windows_core::imp::interface_hierarchy!(ITextInputPanelEventSink, ::windows_core::IUnknown); impl ITextInputPanelEventSink { pub unsafe fn InPlaceStateChanging(&self, oldinplacestate: InPlaceState, newinplacestate: InPlaceState) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).InPlaceStateChanging)(::windows_core::Interface::as_raw(self), oldinplacestate, newinplacestate).ok() @@ -6589,13 +6224,6 @@ impl ITextInputPanelEventSink { (::windows_core::Interface::vtable(self).TextInserted)(::windows_core::Interface::as_raw(self), ink).ok() } } -::windows_core::imp::interface_hierarchy!(ITextInputPanelEventSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITextInputPanelEventSink { - type Vtable = ITextInputPanelEventSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITextInputPanelEventSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x27560408_8e64_4fe1_804e_421201584b31); -} #[repr(C)] #[doc(hidden)] pub struct ITextInputPanelEventSink_Vtbl { @@ -6619,31 +6247,22 @@ pub struct ITextInputPanelEventSink_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] TextInserted: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITextInputPanelRunInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITextInputPanelRunInfo, ITextInputPanelRunInfo_Vtbl, 0x9f424568_1920_48cc_9811_a993cbf5adba); +::windows_core::imp::interface_hierarchy!(ITextInputPanelRunInfo, ::windows_core::IUnknown); impl ITextInputPanelRunInfo { pub unsafe fn IsTipRunning(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).IsTipRunning)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITextInputPanelRunInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITextInputPanelRunInfo { - type Vtable = ITextInputPanelRunInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITextInputPanelRunInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9f424568_1920_48cc_9811_a993cbf5adba); -} #[repr(C)] #[doc(hidden)] pub struct ITextInputPanelRunInfo_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub IsTipRunning: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfrunning: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITipAutoCompleteClient(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITipAutoCompleteClient, ITipAutoCompleteClient_Vtbl, 0x5e078e03_8265_4bbe_9487_d242edbef910); +::windows_core::imp::interface_hierarchy!(ITipAutoCompleteClient, ::windows_core::IUnknown); impl ITipAutoCompleteClient { pub unsafe fn AdviseProvider(&self, hwndfield: P0, piprovider: P1) -> ::windows_core::Result<()> where @@ -6673,13 +6292,6 @@ impl ITipAutoCompleteClient { (::windows_core::Interface::vtable(self).RequestShowUI)(::windows_core::Interface::as_raw(self), hwndlist.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITipAutoCompleteClient, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITipAutoCompleteClient { - type Vtable = ITipAutoCompleteClient_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITipAutoCompleteClient { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5e078e03_8265_4bbe_9487_d242edbef910); -} #[repr(C)] #[doc(hidden)] pub struct ITipAutoCompleteClient_Vtbl { @@ -6690,9 +6302,8 @@ pub struct ITipAutoCompleteClient_Vtbl { pub PreferredRects: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prcaclist: *const super::super::Foundation::RECT, prcfield: *const super::super::Foundation::RECT, prcmodifiedaclist: *mut super::super::Foundation::RECT, pfshownabovetip: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub RequestShowUI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwndlist: super::super::Foundation::HWND, pfallowshowing: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITipAutoCompleteProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITipAutoCompleteProvider, ITipAutoCompleteProvider_Vtbl, 0x7c6cf46d_8404_46b9_ad33_f5b6036d4007); +::windows_core::imp::interface_hierarchy!(ITipAutoCompleteProvider, ::windows_core::IUnknown); impl ITipAutoCompleteProvider { pub unsafe fn UpdatePendingText(&self, bstrpendingtext: P0) -> ::windows_core::Result<()> where @@ -6707,13 +6318,6 @@ impl ITipAutoCompleteProvider { (::windows_core::Interface::vtable(self).Show)(::windows_core::Interface::as_raw(self), fshow.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ITipAutoCompleteProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITipAutoCompleteProvider { - type Vtable = ITipAutoCompleteProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITipAutoCompleteProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7c6cf46d_8404_46b9_ad33_f5b6036d4007); -} #[repr(C)] #[doc(hidden)] pub struct ITipAutoCompleteProvider_Vtbl { @@ -6721,207 +6325,153 @@ pub struct ITipAutoCompleteProvider_Vtbl { pub UpdatePendingText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpendingtext: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub Show: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fshow: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] -#[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct _IInkCollectorEvents(::windows_core::IUnknown); #[cfg(feature = "Win32_System_Com")] -impl _IInkCollectorEvents {} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + _IInkCollectorEvents, + _IInkCollectorEvents_Vtbl, + 0x11a583f2_712d_4fea_abcf_ab4af38ea06b +); #[cfg(feature = "Win32_System_Com")] ::windows_core::imp::interface_hierarchy!(_IInkCollectorEvents, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for _IInkCollectorEvents { - type Vtable = _IInkCollectorEvents_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for _IInkCollectorEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x11a583f2_712d_4fea_abcf_ab4af38ea06b); -} +impl _IInkCollectorEvents {} #[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct _IInkCollectorEvents_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, } -#[doc = "Required features: `\"Win32_System_Com\"`"] -#[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct _IInkEditEvents(::windows_core::IUnknown); #[cfg(feature = "Win32_System_Com")] -impl _IInkEditEvents {} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + _IInkEditEvents, + _IInkEditEvents_Vtbl, + 0xe3b0b797_a72e_46db_a0d7_6c9eba8e9bbc +); #[cfg(feature = "Win32_System_Com")] ::windows_core::imp::interface_hierarchy!(_IInkEditEvents, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for _IInkEditEvents { - type Vtable = _IInkEditEvents_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for _IInkEditEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe3b0b797_a72e_46db_a0d7_6c9eba8e9bbc); -} +impl _IInkEditEvents {} #[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct _IInkEditEvents_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, } -#[doc = "Required features: `\"Win32_System_Com\"`"] -#[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct _IInkEvents(::windows_core::IUnknown); #[cfg(feature = "Win32_System_Com")] -impl _IInkEvents {} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + _IInkEvents, + _IInkEvents_Vtbl, + 0x427b1865_ca3f_479a_83a9_0f420f2a0073 +); #[cfg(feature = "Win32_System_Com")] ::windows_core::imp::interface_hierarchy!(_IInkEvents, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for _IInkEvents { - type Vtable = _IInkEvents_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for _IInkEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x427b1865_ca3f_479a_83a9_0f420f2a0073); -} +impl _IInkEvents {} #[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct _IInkEvents_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct _IInkOverlayEvents(::windows_core::IUnknown); -#[cfg(feature = "Win32_System_Com")] -impl _IInkOverlayEvents {} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + _IInkOverlayEvents, + _IInkOverlayEvents_Vtbl, + 0x31179b69_e563_489e_b16f_712f1e8a0651 +); #[cfg(feature = "Win32_System_Com")] ::windows_core::imp::interface_hierarchy!(_IInkOverlayEvents, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for _IInkOverlayEvents { - type Vtable = _IInkOverlayEvents_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for _IInkOverlayEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x31179b69_e563_489e_b16f_712f1e8a0651); -} +impl _IInkOverlayEvents {} #[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct _IInkOverlayEvents_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct _IInkPictureEvents(::windows_core::IUnknown); -#[cfg(feature = "Win32_System_Com")] -impl _IInkPictureEvents {} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + _IInkPictureEvents, + _IInkPictureEvents_Vtbl, + 0x60ff4fee_22ff_4484_acc1_d308d9cd7ea3 +); #[cfg(feature = "Win32_System_Com")] ::windows_core::imp::interface_hierarchy!(_IInkPictureEvents, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for _IInkPictureEvents { - type Vtable = _IInkPictureEvents_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for _IInkPictureEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x60ff4fee_22ff_4484_acc1_d308d9cd7ea3); -} +impl _IInkPictureEvents {} #[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct _IInkPictureEvents_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, } -#[doc = "Required features: `\"Win32_System_Com\"`"] -#[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct _IInkRecognitionEvents(::windows_core::IUnknown); #[cfg(feature = "Win32_System_Com")] -impl _IInkRecognitionEvents {} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + _IInkRecognitionEvents, + _IInkRecognitionEvents_Vtbl, + 0x17bce92f_2e21_47fd_9d33_3c6afbfd8c59 +); #[cfg(feature = "Win32_System_Com")] ::windows_core::imp::interface_hierarchy!(_IInkRecognitionEvents, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for _IInkRecognitionEvents { - type Vtable = _IInkRecognitionEvents_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for _IInkRecognitionEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x17bce92f_2e21_47fd_9d33_3c6afbfd8c59); -} +impl _IInkRecognitionEvents {} #[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct _IInkRecognitionEvents_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, } -#[doc = "Required features: `\"Win32_System_Com\"`"] -#[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct _IInkStrokesEvents(::windows_core::IUnknown); #[cfg(feature = "Win32_System_Com")] -impl _IInkStrokesEvents {} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + _IInkStrokesEvents, + _IInkStrokesEvents_Vtbl, + 0xf33053ec_5d25_430a_928f_76a6491dde15 +); #[cfg(feature = "Win32_System_Com")] ::windows_core::imp::interface_hierarchy!(_IInkStrokesEvents, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for _IInkStrokesEvents { - type Vtable = _IInkStrokesEvents_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for _IInkStrokesEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf33053ec_5d25_430a_928f_76a6491dde15); -} +impl _IInkStrokesEvents {} #[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct _IInkStrokesEvents_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, } -#[doc = "Required features: `\"Win32_System_Com\"`"] -#[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct _IMathInputControlEvents(::windows_core::IUnknown); #[cfg(feature = "Win32_System_Com")] -impl _IMathInputControlEvents {} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + _IMathInputControlEvents, + _IMathInputControlEvents_Vtbl, + 0x683336b5_a47d_4358_96f9_875a472ae70a +); #[cfg(feature = "Win32_System_Com")] ::windows_core::imp::interface_hierarchy!(_IMathInputControlEvents, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for _IMathInputControlEvents { - type Vtable = _IMathInputControlEvents_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for _IMathInputControlEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x683336b5_a47d_4358_96f9_875a472ae70a); -} +impl _IMathInputControlEvents {} #[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct _IMathInputControlEvents_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct _IPenInputPanelEvents(::windows_core::IUnknown); -#[cfg(feature = "Win32_System_Com")] -impl _IPenInputPanelEvents {} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + _IPenInputPanelEvents, + _IPenInputPanelEvents_Vtbl, + 0xb7e489da_3719_439f_848f_e7acbd820f17 +); #[cfg(feature = "Win32_System_Com")] ::windows_core::imp::interface_hierarchy!(_IPenInputPanelEvents, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for _IPenInputPanelEvents { - type Vtable = _IPenInputPanelEvents_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for _IPenInputPanelEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb7e489da_3719_439f_848f_e7acbd820f17); -} +impl _IPenInputPanelEvents {} #[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] diff --git a/crates/libs/windows/src/Windows/Win32/UI/TextServices/impl.rs b/crates/libs/windows/src/Windows/Win32/UI/TextServices/impl.rs index c5ef2e2886..b54185a4f5 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/TextServices/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/TextServices/impl.rs @@ -64,7 +64,7 @@ impl IAccClientDocMgr_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -134,7 +134,7 @@ impl IAccDictionary_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAccServerDocMgr_Impl: Sized { @@ -168,7 +168,7 @@ impl IAccServerDocMgr_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -258,7 +258,7 @@ impl IAccStore_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IAnchor_Impl: Sized { @@ -384,7 +384,7 @@ impl IAnchor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IClonableWrapper_Impl: Sized { @@ -401,7 +401,7 @@ impl IClonableWrapper_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CloneNewWrapper: CloneNewWrapper:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -422,7 +422,7 @@ impl ICoCreateLocally_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CoCreateLocally: CoCreateLocally:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -443,7 +443,7 @@ impl ICoCreatedLocally_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), LocalInit: LocalInit:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IDocWrap_Impl: Sized { @@ -476,7 +476,7 @@ impl IDocWrap_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumITfCompositionView_Impl: Sized { @@ -523,7 +523,7 @@ impl IEnumITfCompositionView_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumSpeechCommands_Impl: Sized { @@ -570,7 +570,7 @@ impl IEnumSpeechCommands_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumTfCandidates_Impl: Sized { @@ -617,7 +617,7 @@ impl IEnumTfCandidates_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumTfContextViews_Impl: Sized { @@ -664,7 +664,7 @@ impl IEnumTfContextViews_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumTfContexts_Impl: Sized { @@ -711,7 +711,7 @@ impl IEnumTfContexts_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumTfDisplayAttributeInfo_Impl: Sized { @@ -758,7 +758,7 @@ impl IEnumTfDisplayAttributeInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumTfDocumentMgrs_Impl: Sized { @@ -805,7 +805,7 @@ impl IEnumTfDocumentMgrs_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumTfFunctionProviders_Impl: Sized { @@ -852,7 +852,7 @@ impl IEnumTfFunctionProviders_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumTfInputProcessorProfiles_Impl: Sized { @@ -899,7 +899,7 @@ impl IEnumTfInputProcessorProfiles_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumTfLangBarItems_Impl: Sized { @@ -946,7 +946,7 @@ impl IEnumTfLangBarItems_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumTfLanguageProfiles_Impl: Sized { @@ -993,7 +993,7 @@ impl IEnumTfLanguageProfiles_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumTfLatticeElements_Impl: Sized { @@ -1040,7 +1040,7 @@ impl IEnumTfLatticeElements_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumTfProperties_Impl: Sized { @@ -1087,7 +1087,7 @@ impl IEnumTfProperties_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1138,7 +1138,7 @@ impl IEnumTfPropertyValue_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumTfRanges_Impl: Sized { @@ -1185,7 +1185,7 @@ impl IEnumTfRanges_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumTfUIElements_Impl: Sized { @@ -1232,7 +1232,7 @@ impl IEnumTfUIElements_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IInternalDocWrap_Impl: Sized { @@ -1249,7 +1249,7 @@ impl IInternalDocWrap_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), NotifyRevoke: NotifyRevoke:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISpeechCommandProvider_Impl: Sized { @@ -1282,7 +1282,7 @@ impl ISpeechCommandProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1553,7 +1553,7 @@ impl ITextStoreACP_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1811,7 +1811,7 @@ impl ITextStoreACP2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITextStoreACPEx_Impl: Sized { @@ -1828,7 +1828,7 @@ impl ITextStoreACPEx_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), ScrollToRect: ScrollToRect:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1879,7 +1879,7 @@ impl ITextStoreACPServices_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITextStoreACPSink_Impl: Sized { @@ -1948,7 +1948,7 @@ impl ITextStoreACPSink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITextStoreACPSinkEx_Impl: Sized + ITextStoreACPSink_Impl { @@ -1965,7 +1965,7 @@ impl ITextStoreACPSinkEx_Vtbl { Self { base__: ITextStoreACPSink_Vtbl::new::(), OnDisconnect: OnDisconnect:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2237,7 +2237,7 @@ impl ITextStoreAnchor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITextStoreAnchorEx_Impl: Sized { @@ -2254,7 +2254,7 @@ impl ITextStoreAnchorEx_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), ScrollToRect: ScrollToRect:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITextStoreAnchorSink_Impl: Sized { @@ -2323,7 +2323,7 @@ impl ITextStoreAnchorSink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITextStoreSinkAnchorEx_Impl: Sized + ITextStoreAnchorSink_Impl { @@ -2340,7 +2340,7 @@ impl ITextStoreSinkAnchorEx_Vtbl { Self { base__: ITextStoreAnchorSink_Vtbl::new::(), OnDisconnect: OnDisconnect:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ITfActiveLanguageProfileNotifySink_Impl: Sized { @@ -2357,7 +2357,7 @@ impl ITfActiveLanguageProfileNotifySink_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnActivated: OnActivated:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITfCandidateList_Impl: Sized { @@ -2416,7 +2416,7 @@ impl ITfCandidateList_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITfCandidateListUIElement_Impl: Sized + ITfUIElement_Impl { @@ -2521,7 +2521,7 @@ impl ITfCandidateListUIElement_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ITfCandidateListUIElementBehavior_Impl: Sized + ITfCandidateListUIElement_Impl { @@ -2555,7 +2555,7 @@ impl ITfCandidateListUIElementBehavior_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ITfCandidateString_Impl: Sized { @@ -2594,7 +2594,7 @@ impl ITfCandidateString_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2751,7 +2751,7 @@ impl ITfCategoryMgr_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITfCleanupContextDurationSink_Impl: Sized { @@ -2778,7 +2778,7 @@ impl ITfCleanupContextDurationSink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITfCleanupContextSink_Impl: Sized { @@ -2795,7 +2795,7 @@ impl ITfCleanupContextSink_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnCleanupContext: OnCleanupContext:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITfClientId_Impl: Sized { @@ -2818,7 +2818,7 @@ impl ITfClientId_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetClientId: GetClientId:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -2855,7 +2855,7 @@ impl ITfCompartment_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITfCompartmentEventSink_Impl: Sized { @@ -2872,7 +2872,7 @@ impl ITfCompartmentEventSink_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnChange: OnChange:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2922,7 +2922,7 @@ impl ITfCompartmentMgr_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITfComposition_Impl: Sized { @@ -2969,7 +2969,7 @@ impl ITfComposition_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITfCompositionSink_Impl: Sized { @@ -2986,7 +2986,7 @@ impl ITfCompositionSink_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnCompositionTerminated: OnCompositionTerminated:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITfCompositionView_Impl: Sized { @@ -3025,7 +3025,7 @@ impl ITfCompositionView_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITfConfigureSystemKeystrokeFeed_Impl: Sized { @@ -3052,7 +3052,7 @@ impl ITfConfigureSystemKeystrokeFeed_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITfContext_Impl: Sized { @@ -3248,7 +3248,7 @@ impl ITfContext_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITfContextComposition_Impl: Sized { @@ -3313,7 +3313,7 @@ impl ITfContextComposition_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITfContextKeyEventSink_Impl: Sized { @@ -3378,7 +3378,7 @@ impl ITfContextKeyEventSink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3467,7 +3467,7 @@ impl ITfContextOwner_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITfContextOwnerCompositionServices_Impl: Sized + ITfContextComposition_Impl { @@ -3484,7 +3484,7 @@ impl ITfContextOwnerCompositionServices_Vtbl { Self { base__: ITfContextComposition_Vtbl::new::(), TerminateComposition: TerminateComposition:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ITfContextOwnerCompositionSink_Impl: Sized { @@ -3524,7 +3524,7 @@ impl ITfContextOwnerCompositionSink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3596,7 +3596,7 @@ impl ITfContextOwnerServices_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITfContextView_Impl: Sized { @@ -3655,7 +3655,7 @@ impl ITfContextView_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -3698,7 +3698,7 @@ impl ITfCreatePropertyStore_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITfDisplayAttributeInfo_Impl: Sized { @@ -3758,7 +3758,7 @@ impl ITfDisplayAttributeInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITfDisplayAttributeMgr_Impl: Sized { @@ -3798,7 +3798,7 @@ impl ITfDisplayAttributeMgr_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITfDisplayAttributeNotifySink_Impl: Sized { @@ -3815,7 +3815,7 @@ impl ITfDisplayAttributeNotifySink_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnUpdateInfo: OnUpdateInfo:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITfDisplayAttributeProvider_Impl: Sized { @@ -3854,7 +3854,7 @@ impl ITfDisplayAttributeProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITfDocumentMgr_Impl: Sized { @@ -3927,7 +3927,7 @@ impl ITfDocumentMgr_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITfEditRecord_Impl: Sized { @@ -3966,7 +3966,7 @@ impl ITfEditRecord_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITfEditSession_Impl: Sized { @@ -3983,7 +3983,7 @@ impl ITfEditSession_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), DoEditSession: DoEditSession:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITfEditTransactionSink_Impl: Sized { @@ -4010,7 +4010,7 @@ impl ITfEditTransactionSink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITfFnAdviseText_Impl: Sized + ITfFunction_Impl { @@ -4037,7 +4037,7 @@ impl ITfFnAdviseText_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ITfFnBalloon_Impl: Sized { @@ -4054,7 +4054,7 @@ impl ITfFnBalloon_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), UpdateBalloon: UpdateBalloon:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITfFnConfigure_Impl: Sized + ITfFunction_Impl { @@ -4071,7 +4071,7 @@ impl ITfFnConfigure_Vtbl { Self { base__: ITfFunction_Vtbl::new::(), Show: Show:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ITfFnConfigureRegisterEudc_Impl: Sized + ITfFunction_Impl { @@ -4088,7 +4088,7 @@ impl ITfFnConfigureRegisterEudc_Vtbl { Self { base__: ITfFunction_Vtbl::new::(), Show: Show:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ITfFnConfigureRegisterWord_Impl: Sized + ITfFunction_Impl { @@ -4105,7 +4105,7 @@ impl ITfFnConfigureRegisterWord_Vtbl { Self { base__: ITfFunction_Vtbl::new::(), Show: Show:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ITfFnCustomSpeechCommand_Impl: Sized + ITfFunction_Impl { @@ -4122,7 +4122,7 @@ impl ITfFnCustomSpeechCommand_Vtbl { Self { base__: ITfFunction_Vtbl::new::(), SetSpeechCommandProvider: SetSpeechCommandProvider:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ITfFnGetLinguisticAlternates_Impl: Sized + ITfFunction_Impl { @@ -4145,7 +4145,7 @@ impl ITfFnGetLinguisticAlternates_Vtbl { Self { base__: ITfFunction_Vtbl::new::(), GetAlternates: GetAlternates:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ITfFnGetPreferredTouchKeyboardLayout_Impl: Sized + ITfFunction_Impl { @@ -4162,7 +4162,7 @@ impl ITfFnGetPreferredTouchKeyboardLayout_Vtbl { Self { base__: ITfFunction_Vtbl::new::(), GetLayout: GetLayout:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ITfFnGetSAPIObject_Impl: Sized + ITfFunction_Impl { @@ -4185,7 +4185,7 @@ impl ITfFnGetSAPIObject_Vtbl { Self { base__: ITfFunction_Vtbl::new::(), Get: Get:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ITfFnLMInternal_Impl: Sized + ITfFnLMProcessor_Impl { @@ -4202,7 +4202,7 @@ impl ITfFnLMInternal_Vtbl { Self { base__: ITfFnLMProcessor_Vtbl::new::(), ProcessLattice: ProcessLattice:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait ITfFnLMProcessor_Impl: Sized + ITfFunction_Impl { @@ -4282,7 +4282,7 @@ impl ITfFnLMProcessor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ITfFnLangProfileUtil_Impl: Sized + ITfFunction_Impl { @@ -4315,7 +4315,7 @@ impl ITfFnLangProfileUtil_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ITfFnPlayBack_Impl: Sized + ITfFunction_Impl { @@ -4342,7 +4342,7 @@ impl ITfFnPlayBack_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ITfFnPropertyUIStatus_Impl: Sized + ITfFunction_Impl { @@ -4375,7 +4375,7 @@ impl ITfFnPropertyUIStatus_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ITfFnReconversion_Impl: Sized + ITfFunction_Impl { @@ -4415,7 +4415,7 @@ impl ITfFnReconversion_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ITfFnSearchCandidateProvider_Impl: Sized + ITfFunction_Impl { @@ -4448,7 +4448,7 @@ impl ITfFnSearchCandidateProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ITfFnShowHelp_Impl: Sized + ITfFunction_Impl { @@ -4465,7 +4465,7 @@ impl ITfFnShowHelp_Vtbl { Self { base__: ITfFunction_Vtbl::new::(), Show: Show:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ITfFunction_Impl: Sized { @@ -4488,7 +4488,7 @@ impl ITfFunction_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetDisplayName: GetDisplayName:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITfFunctionProvider_Impl: Sized { @@ -4540,7 +4540,7 @@ impl ITfFunctionProvider_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITfInputProcessorProfileActivationSink_Impl: Sized { @@ -4557,7 +4557,7 @@ impl ITfInputProcessorProfileActivationSink_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnActivated: OnActivated:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITfInputProcessorProfileMgr_Impl: Sized { @@ -4646,7 +4646,7 @@ impl ITfInputProcessorProfileMgr_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITfInputProcessorProfileSubstituteLayout_Impl: Sized { @@ -4672,7 +4672,7 @@ impl ITfInputProcessorProfileSubstituteLayout_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -4845,7 +4845,7 @@ impl ITfInputProcessorProfiles_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -4869,7 +4869,7 @@ impl ITfInputProcessorProfilesEx_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ITfInputScope_Impl: Sized { @@ -4935,7 +4935,7 @@ impl ITfInputScope_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -4962,7 +4962,7 @@ impl ITfInputScope2_Vtbl { Self { base__: ITfInputScope_Vtbl::new::(), EnumWordList: EnumWordList:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -5005,7 +5005,7 @@ impl ITfInsertAtSelection_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITfIntegratableCandidateListUIElement_Impl: Sized { @@ -5071,7 +5071,7 @@ impl ITfIntegratableCandidateListUIElement_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITfKeyEventSink_Impl: Sized { @@ -5156,7 +5156,7 @@ impl ITfKeyEventSink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITfKeyTraceEventSink_Impl: Sized { @@ -5183,7 +5183,7 @@ impl ITfKeyTraceEventSink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITfKeystrokeMgr_Impl: Sized { @@ -5348,7 +5348,7 @@ impl ITfKeystrokeMgr_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITfLMLattice_Impl: Sized { @@ -5387,7 +5387,7 @@ impl ITfLMLattice_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITfLangBarEventSink_Impl: Sized { @@ -5448,7 +5448,7 @@ impl ITfLangBarEventSink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITfLangBarItem_Impl: Sized { @@ -5501,7 +5501,7 @@ impl ITfLangBarItem_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITfLangBarItemBalloon_Impl: Sized + ITfLangBarItem_Impl { @@ -5547,7 +5547,7 @@ impl ITfLangBarItemBalloon_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] @@ -5591,7 +5591,7 @@ impl ITfLangBarItemBitmap_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] @@ -5662,7 +5662,7 @@ impl ITfLangBarItemBitmapButton_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_UI_WindowsAndMessaging\"`"] @@ -5726,7 +5726,7 @@ impl ITfLangBarItemButton_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ITfLangBarItemMgr_Impl: Sized { @@ -5847,7 +5847,7 @@ impl ITfLangBarItemMgr_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITfLangBarItemSink_Impl: Sized { @@ -5864,7 +5864,7 @@ impl ITfLangBarItemSink_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnUpdate: OnUpdate:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITfLangBarMgr_Impl: Sized { @@ -5952,7 +5952,7 @@ impl ITfLangBarMgr_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITfLanguageProfileNotifySink_Impl: Sized { @@ -5985,7 +5985,7 @@ impl ITfLanguageProfileNotifySink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITfMSAAControl_Impl: Sized { @@ -6012,7 +6012,7 @@ impl ITfMSAAControl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] @@ -6033,7 +6033,7 @@ impl ITfMenu_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), AddMenuItem: AddMenuItem:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_WindowsAndMessaging\"`"] @@ -6078,7 +6078,7 @@ impl ITfMessagePump_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITfMouseSink_Impl: Sized { @@ -6101,7 +6101,7 @@ impl ITfMouseSink_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnMouseEvent: OnMouseEvent:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITfMouseTracker_Impl: Sized { @@ -6134,7 +6134,7 @@ impl ITfMouseTracker_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITfMouseTrackerACP_Impl: Sized { @@ -6167,7 +6167,7 @@ impl ITfMouseTrackerACP_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -6194,7 +6194,7 @@ impl ITfPersistentPropertyLoaderACP_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), LoadProperty: LoadProperty:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITfPreservedKeyNotifySink_Impl: Sized { @@ -6211,7 +6211,7 @@ impl ITfPreservedKeyNotifySink_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnUpdated: OnUpdated:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6256,7 +6256,7 @@ impl ITfProperty_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6390,7 +6390,7 @@ impl ITfPropertyStore_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -6417,7 +6417,7 @@ impl ITfQueryEmbedded_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), QueryInsertEmbedded: QueryInsertEmbedded:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -6660,7 +6660,7 @@ impl ITfRange_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -6691,7 +6691,7 @@ impl ITfRangeACP_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ITfRangeBackup_Impl: Sized { @@ -6708,7 +6708,7 @@ impl ITfRangeBackup_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Restore: Restore:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -6771,7 +6771,7 @@ impl ITfReadOnlyProperty_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITfReadingInformationUIElement_Impl: Sized + ITfUIElement_Impl { @@ -6862,7 +6862,7 @@ impl ITfReadingInformationUIElement_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ITfReverseConversion_Impl: Sized { @@ -6885,7 +6885,7 @@ impl ITfReverseConversion_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), DoReverseConversion: DoReverseConversion:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITfReverseConversionList_Impl: Sized { @@ -6924,7 +6924,7 @@ impl ITfReverseConversionList_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITfReverseConversionMgr_Impl: Sized { @@ -6947,7 +6947,7 @@ impl ITfReverseConversionMgr_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetReverseConversion: GetReverseConversion:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITfSource_Impl: Sized { @@ -6980,7 +6980,7 @@ impl ITfSource_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITfSourceSingle_Impl: Sized { @@ -7007,7 +7007,7 @@ impl ITfSourceSingle_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITfSpeechUIServer_Impl: Sized { @@ -7041,7 +7041,7 @@ impl ITfSpeechUIServer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITfStatusSink_Impl: Sized { @@ -7058,7 +7058,7 @@ impl ITfStatusSink_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnStatusChange: OnStatusChange:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITfSystemDeviceTypeLangBarItem_Impl: Sized { @@ -7091,7 +7091,7 @@ impl ITfSystemDeviceTypeLangBarItem_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_WindowsAndMessaging\"`"] @@ -7122,7 +7122,7 @@ impl ITfSystemLangBarItem_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITfSystemLangBarItemSink_Impl: Sized { @@ -7149,7 +7149,7 @@ impl ITfSystemLangBarItemSink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITfSystemLangBarItemText_Impl: Sized { @@ -7182,7 +7182,7 @@ impl ITfSystemLangBarItemText_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITfTextEditSink_Impl: Sized { @@ -7199,7 +7199,7 @@ impl ITfTextEditSink_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnEndEdit: OnEndEdit:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITfTextInputProcessor_Impl: Sized { @@ -7226,7 +7226,7 @@ impl ITfTextInputProcessor_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITfTextInputProcessorEx_Impl: Sized + ITfTextInputProcessor_Impl { @@ -7243,7 +7243,7 @@ impl ITfTextInputProcessorEx_Vtbl { Self { base__: ITfTextInputProcessor_Vtbl::new::(), ActivateEx: ActivateEx:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ITfTextLayoutSink_Impl: Sized { @@ -7260,7 +7260,7 @@ impl ITfTextLayoutSink_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnLayoutChange: OnLayoutChange:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITfThreadFocusSink_Impl: Sized { @@ -7287,7 +7287,7 @@ impl ITfThreadFocusSink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITfThreadMgr_Impl: Sized { @@ -7431,7 +7431,7 @@ impl ITfThreadMgr_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITfThreadMgr2_Impl: Sized { @@ -7596,7 +7596,7 @@ impl ITfThreadMgr2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITfThreadMgrEventSink_Impl: Sized { @@ -7644,7 +7644,7 @@ impl ITfThreadMgrEventSink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITfThreadMgrEx_Impl: Sized + ITfThreadMgr_Impl { @@ -7677,7 +7677,7 @@ impl ITfThreadMgrEx_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ITfToolTipUIElement_Impl: Sized + ITfUIElement_Impl { @@ -7700,7 +7700,7 @@ impl ITfToolTipUIElement_Vtbl { Self { base__: ITfUIElement_Vtbl::new::(), GetString: GetString:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ITfTransitoryExtensionSink_Impl: Sized { @@ -7726,7 +7726,7 @@ impl ITfTransitoryExtensionSink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITfTransitoryExtensionUIElement_Impl: Sized + ITfUIElement_Impl { @@ -7749,7 +7749,7 @@ impl ITfTransitoryExtensionUIElement_Vtbl { Self { base__: ITfUIElement_Vtbl::new::(), GetDocumentMgr: GetDocumentMgr:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ITfUIElement_Impl: Sized { @@ -7808,7 +7808,7 @@ impl ITfUIElement_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITfUIElementMgr_Impl: Sized { @@ -7868,7 +7868,7 @@ impl ITfUIElementMgr_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITfUIElementSink_Impl: Sized { @@ -7902,7 +7902,7 @@ impl ITfUIElementSink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IUIManagerEventSink_Impl: Sized { @@ -7957,7 +7957,7 @@ impl IUIManagerEventSink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IVersionInfo_Impl: Sized { @@ -8029,6 +8029,6 @@ impl IVersionInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 92bb4a6e29..644a1e97c8 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/TextServices/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/TextServices/mod.rs @@ -16,9 +16,8 @@ pub unsafe fn UninitLocalMsCtfMonitor() -> ::windows_core::Result<()> { ::windows_targets::link!("msctfmonitor.dll" "system" fn UninitLocalMsCtfMonitor() -> ::windows_core::HRESULT); UninitLocalMsCtfMonitor().ok() } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAccClientDocMgr(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAccClientDocMgr, IAccClientDocMgr_Vtbl, 0x4c896039_7b6d_49e6_a8c1_45116a98292b); +::windows_core::imp::interface_hierarchy!(IAccClientDocMgr, ::windows_core::IUnknown); impl IAccClientDocMgr { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -42,13 +41,6 @@ impl IAccClientDocMgr { (::windows_core::Interface::vtable(self).GetFocused)(::windows_core::Interface::as_raw(self), riid, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAccClientDocMgr, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAccClientDocMgr { - type Vtable = IAccClientDocMgr_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAccClientDocMgr { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4c896039_7b6d_49e6_a8c1_45116a98292b); -} #[repr(C)] #[doc(hidden)] pub struct IAccClientDocMgr_Vtbl { @@ -61,9 +53,8 @@ pub struct IAccClientDocMgr_Vtbl { pub LookupByPoint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pt: super::super::Foundation::POINT, riid: *const ::windows_core::GUID, ppunk: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetFocused: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppunk: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAccDictionary(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAccDictionary, IAccDictionary_Vtbl, 0x1dc4cb5f_d737_474d_ade9_5ccfc9bc1cc9); +::windows_core::imp::interface_hierarchy!(IAccDictionary, ::windows_core::IUnknown); impl IAccDictionary { pub unsafe fn GetLocalizedString(&self, term: *const ::windows_core::GUID, lcid: u32, presult: *mut ::windows_core::BSTR, plcid: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetLocalizedString)(::windows_core::Interface::as_raw(self), term, lcid, ::core::mem::transmute(presult), plcid).ok() @@ -89,13 +80,6 @@ impl IAccDictionary { (::windows_core::Interface::vtable(self).ConvertValueToString)(::windows_core::Interface::as_raw(self), term, lcid, ::core::mem::transmute(varvalue), ::core::mem::transmute(pbstrresult), plcid).ok() } } -::windows_core::imp::interface_hierarchy!(IAccDictionary, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAccDictionary { - type Vtable = IAccDictionary_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAccDictionary { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1dc4cb5f_d737_474d_ade9_5ccfc9bc1cc9); -} #[repr(C)] #[doc(hidden)] pub struct IAccDictionary_Vtbl { @@ -109,9 +93,8 @@ pub struct IAccDictionary_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] ConvertValueToString: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAccServerDocMgr(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAccServerDocMgr, IAccServerDocMgr_Vtbl, 0xad7c73cf_6dd5_4855_abc2_b04bad5b9153); +::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 @@ -132,13 +115,6 @@ impl IAccServerDocMgr { (::windows_core::Interface::vtable(self).OnDocumentFocus)(::windows_core::Interface::as_raw(self), punk.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IAccServerDocMgr, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAccServerDocMgr { - type Vtable = IAccServerDocMgr_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAccServerDocMgr { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xad7c73cf_6dd5_4855_abc2_b04bad5b9153); -} #[repr(C)] #[doc(hidden)] pub struct IAccServerDocMgr_Vtbl { @@ -147,9 +123,8 @@ pub struct IAccServerDocMgr_Vtbl { pub RevokeDocument: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punk: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub OnDocumentFocus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punk: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAccStore(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAccStore, IAccStore_Vtbl, 0xe2cd4a63_2b72_4d48_b739_95e4765195ba); +::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 @@ -191,13 +166,6 @@ impl IAccStore { (::windows_core::Interface::vtable(self).GetFocused)(::windows_core::Interface::as_raw(self), riid, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAccStore, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAccStore { - type Vtable = IAccStore_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAccStore { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe2cd4a63_2b72_4d48_b739_95e4765195ba); -} #[repr(C)] #[doc(hidden)] pub struct IAccStore_Vtbl { @@ -213,9 +181,8 @@ pub struct IAccStore_Vtbl { pub OnDocumentFocus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punk: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetFocused: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppunk: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAnchor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAnchor, IAnchor_Vtbl, 0x0feb7e34_5a60_4356_8ef7_abdec2ff7cf8); +::windows_core::imp::interface_hierarchy!(IAnchor, ::windows_core::IUnknown); impl IAnchor { pub unsafe fn SetGravity(&self, gravity: TsGravity) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetGravity)(::windows_core::Interface::as_raw(self), gravity).ok() @@ -269,13 +236,6 @@ impl IAnchor { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAnchor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAnchor { - type Vtable = IAnchor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAnchor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0feb7e34_5a60_4356_8ef7_abdec2ff7cf8); -} #[repr(C)] #[doc(hidden)] pub struct IAnchor_Vtbl { @@ -292,34 +252,25 @@ pub struct IAnchor_Vtbl { pub ClearChangeHistory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppaclone: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IClonableWrapper(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IClonableWrapper, IClonableWrapper_Vtbl, 0xb33e75ff_e84c_4dca_a25c_33b8dc003374); +::windows_core::imp::interface_hierarchy!(IClonableWrapper, ::windows_core::IUnknown); impl IClonableWrapper { pub unsafe fn CloneNewWrapper(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).CloneNewWrapper)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IClonableWrapper, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IClonableWrapper { - type Vtable = IClonableWrapper_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IClonableWrapper { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb33e75ff_e84c_4dca_a25c_33b8dc003374); -} #[repr(C)] #[doc(hidden)] pub struct IClonableWrapper_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub CloneNewWrapper: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoCreateLocally(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICoCreateLocally, ICoCreateLocally_Vtbl, 0x03de00aa_f272_41e3_99cb_03c5e8114ea0); +::windows_core::imp::interface_hierarchy!(ICoCreateLocally, ::windows_core::IUnknown); impl ICoCreateLocally { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -330,13 +281,6 @@ impl ICoCreateLocally { (::windows_core::Interface::vtable(self).CoCreateLocally)(::windows_core::Interface::as_raw(self), rclsid, dwclscontext, riid, ::core::mem::transmute(punk), riidparam, punkparam.into_param().abi(), ::core::mem::transmute(varparam)).ok() } } -::windows_core::imp::interface_hierarchy!(ICoCreateLocally, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoCreateLocally { - type Vtable = ICoCreateLocally_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoCreateLocally { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x03de00aa_f272_41e3_99cb_03c5e8114ea0); -} #[repr(C)] #[doc(hidden)] pub struct ICoCreateLocally_Vtbl { @@ -346,9 +290,8 @@ pub struct ICoCreateLocally_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] CoCreateLocally: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICoCreatedLocally(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICoCreatedLocally, ICoCreatedLocally_Vtbl, 0x0a53eb6c_1908_4742_8cff_2cee2e93f94c); +::windows_core::imp::interface_hierarchy!(ICoCreatedLocally, ::windows_core::IUnknown); impl ICoCreatedLocally { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -360,13 +303,6 @@ impl ICoCreatedLocally { (::windows_core::Interface::vtable(self).LocalInit)(::windows_core::Interface::as_raw(self), punklocalobject.into_param().abi(), riidparam, punkparam.into_param().abi(), ::core::mem::transmute(varparam)).ok() } } -::windows_core::imp::interface_hierarchy!(ICoCreatedLocally, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICoCreatedLocally { - type Vtable = ICoCreatedLocally_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICoCreatedLocally { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0a53eb6c_1908_4742_8cff_2cee2e93f94c); -} #[repr(C)] #[doc(hidden)] pub struct ICoCreatedLocally_Vtbl { @@ -376,9 +312,8 @@ pub struct ICoCreatedLocally_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] LocalInit: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDocWrap(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDocWrap, IDocWrap_Vtbl, 0xdcd285fe_0be0_43bd_99c9_aaaec513c555); +::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 @@ -391,13 +326,6 @@ impl IDocWrap { (::windows_core::Interface::vtable(self).GetWrappedDoc)(::windows_core::Interface::as_raw(self), riid, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDocWrap, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDocWrap { - type Vtable = IDocWrap_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDocWrap { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdcd285fe_0be0_43bd_99c9_aaaec513c555); -} #[repr(C)] #[doc(hidden)] pub struct IDocWrap_Vtbl { @@ -405,9 +333,8 @@ pub struct IDocWrap_Vtbl { pub SetDoc: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, punk: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetWrappedDoc: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppunk: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumITfCompositionView(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumITfCompositionView, IEnumITfCompositionView_Vtbl, 0x5efd22ba_7838_46cb_88e2_cadb14124f8f); +::windows_core::imp::interface_hierarchy!(IEnumITfCompositionView, ::windows_core::IUnknown); impl IEnumITfCompositionView { pub unsafe fn Clone(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -423,13 +350,6 @@ impl IEnumITfCompositionView { (::windows_core::Interface::vtable(self).Skip)(::windows_core::Interface::as_raw(self), ulcount).ok() } } -::windows_core::imp::interface_hierarchy!(IEnumITfCompositionView, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumITfCompositionView { - type Vtable = IEnumITfCompositionView_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumITfCompositionView { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5efd22ba_7838_46cb_88e2_cadb14124f8f); -} #[repr(C)] #[doc(hidden)] pub struct IEnumITfCompositionView_Vtbl { @@ -439,9 +359,8 @@ pub struct IEnumITfCompositionView_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Skip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulcount: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumSpeechCommands(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumSpeechCommands, IEnumSpeechCommands_Vtbl, 0x8c5dac4f_083c_4b85_a4c9_71746048adca); +::windows_core::imp::interface_hierarchy!(IEnumSpeechCommands, ::windows_core::IUnknown); impl IEnumSpeechCommands { pub unsafe fn Clone(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -457,13 +376,6 @@ impl IEnumSpeechCommands { (::windows_core::Interface::vtable(self).Skip)(::windows_core::Interface::as_raw(self), ulcount).ok() } } -::windows_core::imp::interface_hierarchy!(IEnumSpeechCommands, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumSpeechCommands { - type Vtable = IEnumSpeechCommands_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumSpeechCommands { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8c5dac4f_083c_4b85_a4c9_71746048adca); -} #[repr(C)] #[doc(hidden)] pub struct IEnumSpeechCommands_Vtbl { @@ -473,9 +385,8 @@ pub struct IEnumSpeechCommands_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Skip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulcount: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumTfCandidates(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumTfCandidates, IEnumTfCandidates_Vtbl, 0xdefb1926_6c80_4ce8_87d4_d6b72b812bde); +::windows_core::imp::interface_hierarchy!(IEnumTfCandidates, ::windows_core::IUnknown); impl IEnumTfCandidates { pub unsafe fn Clone(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -491,13 +402,6 @@ impl IEnumTfCandidates { (::windows_core::Interface::vtable(self).Skip)(::windows_core::Interface::as_raw(self), ulcount).ok() } } -::windows_core::imp::interface_hierarchy!(IEnumTfCandidates, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumTfCandidates { - type Vtable = IEnumTfCandidates_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumTfCandidates { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdefb1926_6c80_4ce8_87d4_d6b72b812bde); -} #[repr(C)] #[doc(hidden)] pub struct IEnumTfCandidates_Vtbl { @@ -507,9 +411,8 @@ pub struct IEnumTfCandidates_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Skip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulcount: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumTfContextViews(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumTfContextViews, IEnumTfContextViews_Vtbl, 0xf0c0f8dd_cf38_44e1_bb0f_68cf0d551c78); +::windows_core::imp::interface_hierarchy!(IEnumTfContextViews, ::windows_core::IUnknown); impl IEnumTfContextViews { pub unsafe fn Clone(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -525,13 +428,6 @@ impl IEnumTfContextViews { (::windows_core::Interface::vtable(self).Skip)(::windows_core::Interface::as_raw(self), ulcount).ok() } } -::windows_core::imp::interface_hierarchy!(IEnumTfContextViews, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumTfContextViews { - type Vtable = IEnumTfContextViews_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumTfContextViews { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf0c0f8dd_cf38_44e1_bb0f_68cf0d551c78); -} #[repr(C)] #[doc(hidden)] pub struct IEnumTfContextViews_Vtbl { @@ -541,9 +437,8 @@ pub struct IEnumTfContextViews_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Skip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulcount: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumTfContexts(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumTfContexts, IEnumTfContexts_Vtbl, 0x8f1a7ea6_1654_4502_a86e_b2902344d507); +::windows_core::imp::interface_hierarchy!(IEnumTfContexts, ::windows_core::IUnknown); impl IEnumTfContexts { pub unsafe fn Clone(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -559,13 +454,6 @@ impl IEnumTfContexts { (::windows_core::Interface::vtable(self).Skip)(::windows_core::Interface::as_raw(self), ulcount).ok() } } -::windows_core::imp::interface_hierarchy!(IEnumTfContexts, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumTfContexts { - type Vtable = IEnumTfContexts_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumTfContexts { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8f1a7ea6_1654_4502_a86e_b2902344d507); -} #[repr(C)] #[doc(hidden)] pub struct IEnumTfContexts_Vtbl { @@ -575,9 +463,8 @@ pub struct IEnumTfContexts_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Skip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulcount: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumTfDisplayAttributeInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumTfDisplayAttributeInfo, IEnumTfDisplayAttributeInfo_Vtbl, 0x7cef04d7_cb75_4e80_a7ab_5f5bc7d332de); +::windows_core::imp::interface_hierarchy!(IEnumTfDisplayAttributeInfo, ::windows_core::IUnknown); impl IEnumTfDisplayAttributeInfo { pub unsafe fn Clone(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -593,13 +480,6 @@ impl IEnumTfDisplayAttributeInfo { (::windows_core::Interface::vtable(self).Skip)(::windows_core::Interface::as_raw(self), ulcount).ok() } } -::windows_core::imp::interface_hierarchy!(IEnumTfDisplayAttributeInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumTfDisplayAttributeInfo { - type Vtable = IEnumTfDisplayAttributeInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumTfDisplayAttributeInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7cef04d7_cb75_4e80_a7ab_5f5bc7d332de); -} #[repr(C)] #[doc(hidden)] pub struct IEnumTfDisplayAttributeInfo_Vtbl { @@ -609,9 +489,8 @@ pub struct IEnumTfDisplayAttributeInfo_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Skip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulcount: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumTfDocumentMgrs(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumTfDocumentMgrs, IEnumTfDocumentMgrs_Vtbl, 0xaa80e808_2021_11d2_93e0_0060b067b86e); +::windows_core::imp::interface_hierarchy!(IEnumTfDocumentMgrs, ::windows_core::IUnknown); impl IEnumTfDocumentMgrs { pub unsafe fn Clone(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -627,13 +506,6 @@ impl IEnumTfDocumentMgrs { (::windows_core::Interface::vtable(self).Skip)(::windows_core::Interface::as_raw(self), ulcount).ok() } } -::windows_core::imp::interface_hierarchy!(IEnumTfDocumentMgrs, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumTfDocumentMgrs { - type Vtable = IEnumTfDocumentMgrs_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumTfDocumentMgrs { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaa80e808_2021_11d2_93e0_0060b067b86e); -} #[repr(C)] #[doc(hidden)] pub struct IEnumTfDocumentMgrs_Vtbl { @@ -643,9 +515,8 @@ pub struct IEnumTfDocumentMgrs_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Skip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulcount: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumTfFunctionProviders(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumTfFunctionProviders, IEnumTfFunctionProviders_Vtbl, 0xe4b24db0_0990_11d3_8df0_00105a2799b5); +::windows_core::imp::interface_hierarchy!(IEnumTfFunctionProviders, ::windows_core::IUnknown); impl IEnumTfFunctionProviders { pub unsafe fn Clone(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -661,13 +532,6 @@ impl IEnumTfFunctionProviders { (::windows_core::Interface::vtable(self).Skip)(::windows_core::Interface::as_raw(self), ulcount).ok() } } -::windows_core::imp::interface_hierarchy!(IEnumTfFunctionProviders, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumTfFunctionProviders { - type Vtable = IEnumTfFunctionProviders_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumTfFunctionProviders { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe4b24db0_0990_11d3_8df0_00105a2799b5); -} #[repr(C)] #[doc(hidden)] pub struct IEnumTfFunctionProviders_Vtbl { @@ -677,9 +541,8 @@ pub struct IEnumTfFunctionProviders_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Skip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulcount: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumTfInputProcessorProfiles(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumTfInputProcessorProfiles, IEnumTfInputProcessorProfiles_Vtbl, 0x71c6e74d_0f28_11d8_a82a_00065b84435c); +::windows_core::imp::interface_hierarchy!(IEnumTfInputProcessorProfiles, ::windows_core::IUnknown); impl IEnumTfInputProcessorProfiles { pub unsafe fn Clone(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -695,13 +558,6 @@ impl IEnumTfInputProcessorProfiles { (::windows_core::Interface::vtable(self).Skip)(::windows_core::Interface::as_raw(self), ulcount).ok() } } -::windows_core::imp::interface_hierarchy!(IEnumTfInputProcessorProfiles, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumTfInputProcessorProfiles { - type Vtable = IEnumTfInputProcessorProfiles_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumTfInputProcessorProfiles { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x71c6e74d_0f28_11d8_a82a_00065b84435c); -} #[repr(C)] #[doc(hidden)] pub struct IEnumTfInputProcessorProfiles_Vtbl { @@ -711,9 +567,8 @@ pub struct IEnumTfInputProcessorProfiles_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Skip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulcount: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumTfLangBarItems(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumTfLangBarItems, IEnumTfLangBarItems_Vtbl, 0x583f34d0_de25_11d2_afdd_00105a2799b5); +::windows_core::imp::interface_hierarchy!(IEnumTfLangBarItems, ::windows_core::IUnknown); impl IEnumTfLangBarItems { pub unsafe fn Clone(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -729,13 +584,6 @@ impl IEnumTfLangBarItems { (::windows_core::Interface::vtable(self).Skip)(::windows_core::Interface::as_raw(self), ulcount).ok() } } -::windows_core::imp::interface_hierarchy!(IEnumTfLangBarItems, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumTfLangBarItems { - type Vtable = IEnumTfLangBarItems_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumTfLangBarItems { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x583f34d0_de25_11d2_afdd_00105a2799b5); -} #[repr(C)] #[doc(hidden)] pub struct IEnumTfLangBarItems_Vtbl { @@ -745,9 +593,8 @@ pub struct IEnumTfLangBarItems_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Skip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulcount: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumTfLanguageProfiles(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumTfLanguageProfiles, IEnumTfLanguageProfiles_Vtbl, 0x3d61bf11_ac5f_42c8_a4cb_931bcc28c744); +::windows_core::imp::interface_hierarchy!(IEnumTfLanguageProfiles, ::windows_core::IUnknown); impl IEnumTfLanguageProfiles { pub unsafe fn Clone(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -763,13 +610,6 @@ impl IEnumTfLanguageProfiles { (::windows_core::Interface::vtable(self).Skip)(::windows_core::Interface::as_raw(self), ulcount).ok() } } -::windows_core::imp::interface_hierarchy!(IEnumTfLanguageProfiles, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumTfLanguageProfiles { - type Vtable = IEnumTfLanguageProfiles_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumTfLanguageProfiles { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3d61bf11_ac5f_42c8_a4cb_931bcc28c744); -} #[repr(C)] #[doc(hidden)] pub struct IEnumTfLanguageProfiles_Vtbl { @@ -779,9 +619,8 @@ pub struct IEnumTfLanguageProfiles_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Skip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulcount: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumTfLatticeElements(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumTfLatticeElements, IEnumTfLatticeElements_Vtbl, 0x56988052_47da_4a05_911a_e3d941f17145); +::windows_core::imp::interface_hierarchy!(IEnumTfLatticeElements, ::windows_core::IUnknown); impl IEnumTfLatticeElements { pub unsafe fn Clone(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -797,13 +636,6 @@ impl IEnumTfLatticeElements { (::windows_core::Interface::vtable(self).Skip)(::windows_core::Interface::as_raw(self), ulcount).ok() } } -::windows_core::imp::interface_hierarchy!(IEnumTfLatticeElements, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumTfLatticeElements { - type Vtable = IEnumTfLatticeElements_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumTfLatticeElements { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x56988052_47da_4a05_911a_e3d941f17145); -} #[repr(C)] #[doc(hidden)] pub struct IEnumTfLatticeElements_Vtbl { @@ -813,9 +645,8 @@ pub struct IEnumTfLatticeElements_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Skip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulcount: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumTfProperties(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumTfProperties, IEnumTfProperties_Vtbl, 0x19188cb0_aca9_11d2_afc5_00105a2799b5); +::windows_core::imp::interface_hierarchy!(IEnumTfProperties, ::windows_core::IUnknown); impl IEnumTfProperties { pub unsafe fn Clone(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -831,13 +662,6 @@ impl IEnumTfProperties { (::windows_core::Interface::vtable(self).Skip)(::windows_core::Interface::as_raw(self), ulcount).ok() } } -::windows_core::imp::interface_hierarchy!(IEnumTfProperties, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumTfProperties { - type Vtable = IEnumTfProperties_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumTfProperties { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x19188cb0_aca9_11d2_afc5_00105a2799b5); -} #[repr(C)] #[doc(hidden)] pub struct IEnumTfProperties_Vtbl { @@ -847,9 +671,8 @@ pub struct IEnumTfProperties_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Skip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulcount: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumTfPropertyValue(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumTfPropertyValue, IEnumTfPropertyValue_Vtbl, 0x8ed8981b_7c10_4d7d_9fb3_ab72e9c75f72); +::windows_core::imp::interface_hierarchy!(IEnumTfPropertyValue, ::windows_core::IUnknown); impl IEnumTfPropertyValue { pub unsafe fn Clone(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -867,13 +690,6 @@ impl IEnumTfPropertyValue { (::windows_core::Interface::vtable(self).Skip)(::windows_core::Interface::as_raw(self), ulcount).ok() } } -::windows_core::imp::interface_hierarchy!(IEnumTfPropertyValue, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumTfPropertyValue { - type Vtable = IEnumTfPropertyValue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumTfPropertyValue { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8ed8981b_7c10_4d7d_9fb3_ab72e9c75f72); -} #[repr(C)] #[doc(hidden)] pub struct IEnumTfPropertyValue_Vtbl { @@ -886,9 +702,8 @@ pub struct IEnumTfPropertyValue_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Skip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulcount: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumTfRanges(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumTfRanges, IEnumTfRanges_Vtbl, 0xf99d3f40_8e32_11d2_bf46_00105a2799b5); +::windows_core::imp::interface_hierarchy!(IEnumTfRanges, ::windows_core::IUnknown); impl IEnumTfRanges { pub unsafe fn Clone(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -904,13 +719,6 @@ impl IEnumTfRanges { (::windows_core::Interface::vtable(self).Skip)(::windows_core::Interface::as_raw(self), ulcount).ok() } } -::windows_core::imp::interface_hierarchy!(IEnumTfRanges, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumTfRanges { - type Vtable = IEnumTfRanges_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumTfRanges { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf99d3f40_8e32_11d2_bf46_00105a2799b5); -} #[repr(C)] #[doc(hidden)] pub struct IEnumTfRanges_Vtbl { @@ -920,9 +728,8 @@ pub struct IEnumTfRanges_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Skip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulcount: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumTfUIElements(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumTfUIElements, IEnumTfUIElements_Vtbl, 0x887aa91e_acba_4931_84da_3c5208cf543f); +::windows_core::imp::interface_hierarchy!(IEnumTfUIElements, ::windows_core::IUnknown); impl IEnumTfUIElements { pub unsafe fn Clone(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -938,13 +745,6 @@ impl IEnumTfUIElements { (::windows_core::Interface::vtable(self).Skip)(::windows_core::Interface::as_raw(self), ulcount).ok() } } -::windows_core::imp::interface_hierarchy!(IEnumTfUIElements, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumTfUIElements { - type Vtable = IEnumTfUIElements_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumTfUIElements { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x887aa91e_acba_4931_84da_3c5208cf543f); -} #[repr(C)] #[doc(hidden)] pub struct IEnumTfUIElements_Vtbl { @@ -954,30 +754,21 @@ pub struct IEnumTfUIElements_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Skip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulcount: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInternalDocWrap(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IInternalDocWrap, IInternalDocWrap_Vtbl, 0xe1aa6466_9db4_40ba_be03_77c38e8e60b2); +::windows_core::imp::interface_hierarchy!(IInternalDocWrap, ::windows_core::IUnknown); impl IInternalDocWrap { pub unsafe fn NotifyRevoke(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).NotifyRevoke)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IInternalDocWrap, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInternalDocWrap { - type Vtable = IInternalDocWrap_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInternalDocWrap { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe1aa6466_9db4_40ba_be03_77c38e8e60b2); -} #[repr(C)] #[doc(hidden)] pub struct IInternalDocWrap_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub NotifyRevoke: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISpeechCommandProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISpeechCommandProvider, ISpeechCommandProvider_Vtbl, 0x38e09d4c_586d_435a_b592_c8a86691dec6); +::windows_core::imp::interface_hierarchy!(ISpeechCommandProvider, ::windows_core::IUnknown); impl ISpeechCommandProvider { pub unsafe fn EnumSpeechCommands(&self, langid: u16) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -987,13 +778,6 @@ impl ISpeechCommandProvider { (::windows_core::Interface::vtable(self).ProcessCommand)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pszcommand.as_ptr()), pszcommand.len().try_into().unwrap(), langid).ok() } } -::windows_core::imp::interface_hierarchy!(ISpeechCommandProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISpeechCommandProvider { - type Vtable = ISpeechCommandProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISpeechCommandProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x38e09d4c_586d_435a_b592_c8a86691dec6); -} #[repr(C)] #[doc(hidden)] pub struct ISpeechCommandProvider_Vtbl { @@ -1001,9 +785,8 @@ pub struct ISpeechCommandProvider_Vtbl { pub EnumSpeechCommands: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, langid: u16, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ProcessCommand: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszcommand: ::windows_core::PCWSTR, cch: u32, langid: u16) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITextStoreACP(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITextStoreACP, ITextStoreACP_Vtbl, 0x28888fe3_c2a0_483a_a3ea_8cb1ce51ff3d); +::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 @@ -1118,13 +901,6 @@ impl ITextStoreACP { (::windows_core::Interface::vtable(self).GetWnd)(::windows_core::Interface::as_raw(self), vcview, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITextStoreACP, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITextStoreACP { - type Vtable = ITextStoreACP_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITextStoreACP { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x28888fe3_c2a0_483a_a3ea_8cb1ce51ff3d); -} #[repr(C)] #[doc(hidden)] pub struct ITextStoreACP_Vtbl { @@ -1171,9 +947,8 @@ pub struct ITextStoreACP_Vtbl { pub GetScreenExt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, vcview: u32, prc: *mut super::super::Foundation::RECT) -> ::windows_core::HRESULT, pub GetWnd: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, vcview: u32, phwnd: *mut super::super::Foundation::HWND) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITextStoreACP2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITextStoreACP2, ITextStoreACP2_Vtbl, 0xf86ad89f_5fe4_4b8d_bb9f_ef3797a84f1f); +::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 @@ -1284,13 +1059,6 @@ impl ITextStoreACP2 { (::windows_core::Interface::vtable(self).GetScreenExt)(::windows_core::Interface::as_raw(self), vcview, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITextStoreACP2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITextStoreACP2 { - type Vtable = ITextStoreACP2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITextStoreACP2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf86ad89f_5fe4_4b8d_bb9f_ef3797a84f1f); -} #[repr(C)] #[doc(hidden)] pub struct ITextStoreACP2_Vtbl { @@ -1336,30 +1104,21 @@ pub struct ITextStoreACP2_Vtbl { pub GetTextExt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, vcview: u32, acpstart: i32, acpend: i32, prc: *mut super::super::Foundation::RECT, pfclipped: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub GetScreenExt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, vcview: u32, prc: *mut super::super::Foundation::RECT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITextStoreACPEx(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITextStoreACPEx, ITextStoreACPEx_Vtbl, 0xa2de3bc2_3d8e_11d3_81a9_f753fbe61a00); +::windows_core::imp::interface_hierarchy!(ITextStoreACPEx, ::windows_core::IUnknown); impl ITextStoreACPEx { pub unsafe fn ScrollToRect(&self, acpstart: i32, acpend: i32, rc: super::super::Foundation::RECT, dwposition: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).ScrollToRect)(::windows_core::Interface::as_raw(self), acpstart, acpend, ::core::mem::transmute(rc), dwposition).ok() } } -::windows_core::imp::interface_hierarchy!(ITextStoreACPEx, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITextStoreACPEx { - type Vtable = ITextStoreACPEx_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITextStoreACPEx { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa2de3bc2_3d8e_11d3_81a9_f753fbe61a00); -} #[repr(C)] #[doc(hidden)] pub struct ITextStoreACPEx_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub ScrollToRect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, acpstart: i32, acpend: i32, rc: super::super::Foundation::RECT, dwposition: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITextStoreACPServices(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITextStoreACPServices, ITextStoreACPServices_Vtbl, 0xaa80e901_2021_11d2_93e0_0060b067b86e); +::windows_core::imp::interface_hierarchy!(ITextStoreACPServices, ::windows_core::IUnknown); impl ITextStoreACPServices { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -1392,13 +1151,6 @@ impl ITextStoreACPServices { (::windows_core::Interface::vtable(self).CreateRange)(::windows_core::Interface::as_raw(self), acpstart, acpend, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITextStoreACPServices, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITextStoreACPServices { - type Vtable = ITextStoreACPServices_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITextStoreACPServices { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaa80e901_2021_11d2_93e0_0060b067b86e); -} #[repr(C)] #[doc(hidden)] pub struct ITextStoreACPServices_Vtbl { @@ -1414,9 +1166,8 @@ pub struct ITextStoreACPServices_Vtbl { pub ForceLoadProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pprop: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, acpstart: i32, acpend: i32, pprange: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITextStoreACPSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITextStoreACPSink, ITextStoreACPSink_Vtbl, 0x22d44c94_a419_4542_a272_ae26093ececf); +::windows_core::imp::interface_hierarchy!(ITextStoreACPSink, ::windows_core::IUnknown); impl ITextStoreACPSink { pub unsafe fn OnTextChange(&self, dwflags: TEXT_STORE_TEXT_CHANGE_FLAGS, pchange: *const TS_TEXTCHANGE) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnTextChange)(::windows_core::Interface::as_raw(self), dwflags, pchange).ok() @@ -1443,13 +1194,6 @@ impl ITextStoreACPSink { (::windows_core::Interface::vtable(self).OnEndEditTransaction)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ITextStoreACPSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITextStoreACPSink { - type Vtable = ITextStoreACPSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITextStoreACPSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x22d44c94_a419_4542_a272_ae26093ececf); -} #[repr(C)] #[doc(hidden)] pub struct ITextStoreACPSink_Vtbl { @@ -1463,9 +1207,8 @@ pub struct ITextStoreACPSink_Vtbl { pub OnStartEditTransaction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub OnEndEditTransaction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITextStoreACPSinkEx(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITextStoreACPSinkEx, ITextStoreACPSinkEx_Vtbl, 0x2bdf9464_41e2_43e3_950c_a6865ba25cd4); +::windows_core::imp::interface_hierarchy!(ITextStoreACPSinkEx, ::windows_core::IUnknown, ITextStoreACPSink); impl ITextStoreACPSinkEx { pub unsafe fn OnTextChange(&self, dwflags: TEXT_STORE_TEXT_CHANGE_FLAGS, pchange: *const TS_TEXTCHANGE) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.OnTextChange)(::windows_core::Interface::as_raw(self), dwflags, pchange).ok() @@ -1495,22 +1238,14 @@ impl ITextStoreACPSinkEx { (::windows_core::Interface::vtable(self).OnDisconnect)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ITextStoreACPSinkEx, ::windows_core::IUnknown, ITextStoreACPSink); -unsafe impl ::windows_core::Interface for ITextStoreACPSinkEx { - type Vtable = ITextStoreACPSinkEx_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITextStoreACPSinkEx { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2bdf9464_41e2_43e3_950c_a6865ba25cd4); -} #[repr(C)] #[doc(hidden)] pub struct ITextStoreACPSinkEx_Vtbl { pub base__: ITextStoreACPSink_Vtbl, pub OnDisconnect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITextStoreAnchor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITextStoreAnchor, ITextStoreAnchor_Vtbl, 0x9b2077b0_5f18_4dec_bee9_3cc722f5dfe0); +::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 @@ -1663,13 +1398,6 @@ impl ITextStoreAnchor { (::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::imp::interface_hierarchy!(ITextStoreAnchor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITextStoreAnchor { - type Vtable = ITextStoreAnchor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITextStoreAnchor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9b2077b0_5f18_4dec_bee9_3cc722f5dfe0); -} #[repr(C)] #[doc(hidden)] pub struct ITextStoreAnchor_Vtbl { @@ -1717,9 +1445,8 @@ pub struct ITextStoreAnchor_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] InsertEmbeddedAtSelection: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITextStoreAnchorEx(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITextStoreAnchorEx, ITextStoreAnchorEx_Vtbl, 0xa2de3bc1_3d8e_11d3_81a9_f753fbe61a00); +::windows_core::imp::interface_hierarchy!(ITextStoreAnchorEx, ::windows_core::IUnknown); impl ITextStoreAnchorEx { pub unsafe fn ScrollToRect(&self, pstart: P0, pend: P1, rc: super::super::Foundation::RECT, dwposition: u32) -> ::windows_core::Result<()> where @@ -1729,22 +1456,14 @@ impl ITextStoreAnchorEx { (::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::imp::interface_hierarchy!(ITextStoreAnchorEx, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITextStoreAnchorEx { - type Vtable = ITextStoreAnchorEx_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITextStoreAnchorEx { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa2de3bc1_3d8e_11d3_81a9_f753fbe61a00); -} #[repr(C)] #[doc(hidden)] pub struct ITextStoreAnchorEx_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub ScrollToRect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstart: *mut ::core::ffi::c_void, pend: *mut ::core::ffi::c_void, rc: super::super::Foundation::RECT, dwposition: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITextStoreAnchorSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITextStoreAnchorSink, ITextStoreAnchorSink_Vtbl, 0xaa80e905_2021_11d2_93e0_0060b067b86e); +::windows_core::imp::interface_hierarchy!(ITextStoreAnchorSink, ::windows_core::IUnknown); impl ITextStoreAnchorSink { pub unsafe fn OnTextChange(&self, dwflags: TEXT_STORE_CHANGE_FLAGS, pastart: P0, paend: P1) -> ::windows_core::Result<()> where @@ -1779,13 +1498,6 @@ impl ITextStoreAnchorSink { (::windows_core::Interface::vtable(self).OnEndEditTransaction)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ITextStoreAnchorSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITextStoreAnchorSink { - type Vtable = ITextStoreAnchorSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITextStoreAnchorSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaa80e905_2021_11d2_93e0_0060b067b86e); -} #[repr(C)] #[doc(hidden)] pub struct ITextStoreAnchorSink_Vtbl { @@ -1799,9 +1511,8 @@ pub struct ITextStoreAnchorSink_Vtbl { pub OnStartEditTransaction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub OnEndEditTransaction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITextStoreSinkAnchorEx(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITextStoreSinkAnchorEx, ITextStoreSinkAnchorEx_Vtbl, 0x25642426_028d_4474_977b_111bb114fe3e); +::windows_core::imp::interface_hierarchy!(ITextStoreSinkAnchorEx, ::windows_core::IUnknown, ITextStoreAnchorSink); impl ITextStoreSinkAnchorEx { pub unsafe fn OnTextChange(&self, dwflags: TEXT_STORE_CHANGE_FLAGS, pastart: P0, paend: P1) -> ::windows_core::Result<()> where @@ -1839,22 +1550,14 @@ impl ITextStoreSinkAnchorEx { (::windows_core::Interface::vtable(self).OnDisconnect)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ITextStoreSinkAnchorEx, ::windows_core::IUnknown, ITextStoreAnchorSink); -unsafe impl ::windows_core::Interface for ITextStoreSinkAnchorEx { - type Vtable = ITextStoreSinkAnchorEx_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITextStoreSinkAnchorEx { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x25642426_028d_4474_977b_111bb114fe3e); -} #[repr(C)] #[doc(hidden)] pub struct ITextStoreSinkAnchorEx_Vtbl { pub base__: ITextStoreAnchorSink_Vtbl, pub OnDisconnect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfActiveLanguageProfileNotifySink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfActiveLanguageProfileNotifySink, ITfActiveLanguageProfileNotifySink_Vtbl, 0xb246cb75_a93e_4652_bf8c_b3fe0cfd7e57); +::windows_core::imp::interface_hierarchy!(ITfActiveLanguageProfileNotifySink, ::windows_core::IUnknown); impl ITfActiveLanguageProfileNotifySink { pub unsafe fn OnActivated(&self, clsid: *const ::windows_core::GUID, guidprofile: *const ::windows_core::GUID, factivated: P0) -> ::windows_core::Result<()> where @@ -1863,22 +1566,14 @@ impl ITfActiveLanguageProfileNotifySink { (::windows_core::Interface::vtable(self).OnActivated)(::windows_core::Interface::as_raw(self), clsid, guidprofile, factivated.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ITfActiveLanguageProfileNotifySink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfActiveLanguageProfileNotifySink { - type Vtable = ITfActiveLanguageProfileNotifySink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfActiveLanguageProfileNotifySink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb246cb75_a93e_4652_bf8c_b3fe0cfd7e57); -} #[repr(C)] #[doc(hidden)] pub struct ITfActiveLanguageProfileNotifySink_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnActivated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, clsid: *const ::windows_core::GUID, guidprofile: *const ::windows_core::GUID, factivated: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfCandidateList(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfCandidateList, ITfCandidateList_Vtbl, 0xa3ad50fb_9bdb_49e3_a843_6c76520fbf5d); +::windows_core::imp::interface_hierarchy!(ITfCandidateList, ::windows_core::IUnknown); impl ITfCandidateList { pub unsafe fn EnumCandidates(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -1896,13 +1591,6 @@ impl ITfCandidateList { (::windows_core::Interface::vtable(self).SetResult)(::windows_core::Interface::as_raw(self), nindex, imcr).ok() } } -::windows_core::imp::interface_hierarchy!(ITfCandidateList, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfCandidateList { - type Vtable = ITfCandidateList_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfCandidateList { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa3ad50fb_9bdb_49e3_a843_6c76520fbf5d); -} #[repr(C)] #[doc(hidden)] pub struct ITfCandidateList_Vtbl { @@ -1912,9 +1600,8 @@ pub struct ITfCandidateList_Vtbl { pub GetCandidateNum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pncnt: *mut u32) -> ::windows_core::HRESULT, pub SetResult: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nindex: u32, imcr: TfCandidateResult) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfCandidateListUIElement(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfCandidateListUIElement, ITfCandidateListUIElement_Vtbl, 0xea1ea138_19df_11d7_a6d2_00065b84435c); +::windows_core::imp::interface_hierarchy!(ITfCandidateListUIElement, ::windows_core::IUnknown, ITfUIElement); impl ITfCandidateListUIElement { pub unsafe fn GetDescription(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -1965,13 +1652,6 @@ impl ITfCandidateListUIElement { (::windows_core::Interface::vtable(self).GetCurrentPage)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITfCandidateListUIElement, ::windows_core::IUnknown, ITfUIElement); -unsafe impl ::windows_core::Interface for ITfCandidateListUIElement { - type Vtable = ITfCandidateListUIElement_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfCandidateListUIElement { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xea1ea138_19df_11d7_a6d2_00065b84435c); -} #[repr(C)] #[doc(hidden)] pub struct ITfCandidateListUIElement_Vtbl { @@ -1985,9 +1665,8 @@ pub struct ITfCandidateListUIElement_Vtbl { pub SetPageIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pindex: *const u32, upagecnt: u32) -> ::windows_core::HRESULT, pub GetCurrentPage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pupage: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfCandidateListUIElementBehavior(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfCandidateListUIElementBehavior, ITfCandidateListUIElementBehavior_Vtbl, 0x85fad185_58ce_497a_9460_355366b64b9a); +::windows_core::imp::interface_hierarchy!(ITfCandidateListUIElementBehavior, ::windows_core::IUnknown, ITfUIElement, ITfCandidateListUIElement); impl ITfCandidateListUIElementBehavior { pub unsafe fn GetDescription(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -2047,13 +1726,6 @@ impl ITfCandidateListUIElementBehavior { (::windows_core::Interface::vtable(self).Abort)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ITfCandidateListUIElementBehavior, ::windows_core::IUnknown, ITfUIElement, ITfCandidateListUIElement); -unsafe impl ::windows_core::Interface for ITfCandidateListUIElementBehavior { - type Vtable = ITfCandidateListUIElementBehavior_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfCandidateListUIElementBehavior { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x85fad185_58ce_497a_9460_355366b64b9a); -} #[repr(C)] #[doc(hidden)] pub struct ITfCandidateListUIElementBehavior_Vtbl { @@ -2062,9 +1734,8 @@ pub struct ITfCandidateListUIElementBehavior_Vtbl { pub Finalize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Abort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfCandidateString(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfCandidateString, ITfCandidateString_Vtbl, 0x581f317e_fd9d_443f_b972_ed00467c5d40); +::windows_core::imp::interface_hierarchy!(ITfCandidateString, ::windows_core::IUnknown); impl ITfCandidateString { pub unsafe fn GetString(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -2075,13 +1746,6 @@ impl ITfCandidateString { (::windows_core::Interface::vtable(self).GetIndex)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITfCandidateString, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfCandidateString { - type Vtable = ITfCandidateString_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfCandidateString { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x581f317e_fd9d_443f_b972_ed00467c5d40); -} #[repr(C)] #[doc(hidden)] pub struct ITfCandidateString_Vtbl { @@ -2089,9 +1753,8 @@ pub struct ITfCandidateString_Vtbl { pub GetString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstr: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub GetIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pnindex: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfCategoryMgr(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfCategoryMgr, ITfCategoryMgr_Vtbl, 0xc3acefb5_f69d_4905_938f_fcadcf4be830); +::windows_core::imp::interface_hierarchy!(ITfCategoryMgr, ::windows_core::IUnknown); impl ITfCategoryMgr { pub unsafe fn RegisterCategory(&self, rclsid: *const ::windows_core::GUID, rcatid: *const ::windows_core::GUID, rguid: *const ::windows_core::GUID) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).RegisterCategory)(::windows_core::Interface::as_raw(self), rclsid, rcatid, rguid).ok() @@ -2147,13 +1810,6 @@ impl ITfCategoryMgr { (::windows_core::Interface::vtable(self).IsEqualTfGuidAtom)(::windows_core::Interface::as_raw(self), guidatom, rguid, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITfCategoryMgr, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfCategoryMgr { - type Vtable = ITfCategoryMgr_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfCategoryMgr { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc3acefb5_f69d_4905_938f_fcadcf4be830); -} #[repr(C)] #[doc(hidden)] pub struct ITfCategoryMgr_Vtbl { @@ -2179,9 +1835,8 @@ pub struct ITfCategoryMgr_Vtbl { pub GetGUID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guidatom: u32, pguid: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, pub IsEqualTfGuidAtom: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guidatom: u32, rguid: *const ::windows_core::GUID, pfequal: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfCleanupContextDurationSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfCleanupContextDurationSink, ITfCleanupContextDurationSink_Vtbl, 0x45c35144_154e_4797_bed8_d33ae7bf8794); +::windows_core::imp::interface_hierarchy!(ITfCleanupContextDurationSink, ::windows_core::IUnknown); impl ITfCleanupContextDurationSink { pub unsafe fn OnStartCleanupContext(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnStartCleanupContext)(::windows_core::Interface::as_raw(self)).ok() @@ -2190,13 +1845,6 @@ impl ITfCleanupContextDurationSink { (::windows_core::Interface::vtable(self).OnEndCleanupContext)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ITfCleanupContextDurationSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfCleanupContextDurationSink { - type Vtable = ITfCleanupContextDurationSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfCleanupContextDurationSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x45c35144_154e_4797_bed8_d33ae7bf8794); -} #[repr(C)] #[doc(hidden)] pub struct ITfCleanupContextDurationSink_Vtbl { @@ -2204,9 +1852,8 @@ pub struct ITfCleanupContextDurationSink_Vtbl { pub OnStartCleanupContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub OnEndCleanupContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfCleanupContextSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfCleanupContextSink, ITfCleanupContextSink_Vtbl, 0x01689689_7acb_4e9b_ab7c_7ea46b12b522); +::windows_core::imp::interface_hierarchy!(ITfCleanupContextSink, ::windows_core::IUnknown); impl ITfCleanupContextSink { pub unsafe fn OnCleanupContext(&self, ecwrite: u32, pic: P0) -> ::windows_core::Result<()> where @@ -2215,44 +1862,28 @@ impl ITfCleanupContextSink { (::windows_core::Interface::vtable(self).OnCleanupContext)(::windows_core::Interface::as_raw(self), ecwrite, pic.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ITfCleanupContextSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfCleanupContextSink { - type Vtable = ITfCleanupContextSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfCleanupContextSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x01689689_7acb_4e9b_ab7c_7ea46b12b522); -} #[repr(C)] #[doc(hidden)] pub struct ITfCleanupContextSink_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnCleanupContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ecwrite: u32, pic: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfClientId(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfClientId, ITfClientId_Vtbl, 0xd60a7b49_1b9f_4be2_b702_47e9dc05dec3); +::windows_core::imp::interface_hierarchy!(ITfClientId, ::windows_core::IUnknown); impl ITfClientId { pub unsafe fn GetClientId(&self, rclsid: *const ::windows_core::GUID) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetClientId)(::windows_core::Interface::as_raw(self), rclsid, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITfClientId, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfClientId { - type Vtable = ITfClientId_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfClientId { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd60a7b49_1b9f_4be2_b702_47e9dc05dec3); -} #[repr(C)] #[doc(hidden)] pub struct ITfClientId_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetClientId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rclsid: *const ::windows_core::GUID, ptid: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfCompartment(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfCompartment, ITfCompartment_Vtbl, 0xbb08f7a9_607a_4384_8623_056892b64371); +::windows_core::imp::interface_hierarchy!(ITfCompartment, ::windows_core::IUnknown); impl ITfCompartment { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -2266,13 +1897,6 @@ impl ITfCompartment { (::windows_core::Interface::vtable(self).GetValue)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITfCompartment, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfCompartment { - type Vtable = ITfCompartment_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfCompartment { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbb08f7a9_607a_4384_8623_056892b64371); -} #[repr(C)] #[doc(hidden)] pub struct ITfCompartment_Vtbl { @@ -2286,30 +1910,21 @@ pub struct ITfCompartment_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] GetValue: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfCompartmentEventSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfCompartmentEventSink, ITfCompartmentEventSink_Vtbl, 0x743abd5f_f26d_48df_8cc5_238492419b64); +::windows_core::imp::interface_hierarchy!(ITfCompartmentEventSink, ::windows_core::IUnknown); impl ITfCompartmentEventSink { pub unsafe fn OnChange(&self, rguid: *const ::windows_core::GUID) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnChange)(::windows_core::Interface::as_raw(self), rguid).ok() } } -::windows_core::imp::interface_hierarchy!(ITfCompartmentEventSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfCompartmentEventSink { - type Vtable = ITfCompartmentEventSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfCompartmentEventSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x743abd5f_f26d_48df_8cc5_238492419b64); -} #[repr(C)] #[doc(hidden)] pub struct ITfCompartmentEventSink_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rguid: *const ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfCompartmentMgr(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfCompartmentMgr, ITfCompartmentMgr_Vtbl, 0x7dcf57ac_18ad_438b_824d_979bffb74b7c); +::windows_core::imp::interface_hierarchy!(ITfCompartmentMgr, ::windows_core::IUnknown); impl ITfCompartmentMgr { pub unsafe fn GetCompartment(&self, rguid: *const ::windows_core::GUID) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2325,13 +1940,6 @@ impl ITfCompartmentMgr { (::windows_core::Interface::vtable(self).EnumCompartments)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITfCompartmentMgr, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfCompartmentMgr { - type Vtable = ITfCompartmentMgr_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfCompartmentMgr { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7dcf57ac_18ad_438b_824d_979bffb74b7c); -} #[repr(C)] #[doc(hidden)] pub struct ITfCompartmentMgr_Vtbl { @@ -2343,9 +1951,8 @@ pub struct ITfCompartmentMgr_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] EnumCompartments: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfComposition(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfComposition, ITfComposition_Vtbl, 0x20168d64_5a8f_4a5a_b7bd_cfa29f4d0fd9); +::windows_core::imp::interface_hierarchy!(ITfComposition, ::windows_core::IUnknown); impl ITfComposition { pub unsafe fn GetRange(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2367,13 +1974,6 @@ impl ITfComposition { (::windows_core::Interface::vtable(self).EndComposition)(::windows_core::Interface::as_raw(self), ecwrite).ok() } } -::windows_core::imp::interface_hierarchy!(ITfComposition, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfComposition { - type Vtable = ITfComposition_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfComposition { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x20168d64_5a8f_4a5a_b7bd_cfa29f4d0fd9); -} #[repr(C)] #[doc(hidden)] pub struct ITfComposition_Vtbl { @@ -2383,9 +1983,8 @@ pub struct ITfComposition_Vtbl { pub ShiftEnd: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ecwrite: u32, pnewend: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub EndComposition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ecwrite: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfCompositionSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfCompositionSink, ITfCompositionSink_Vtbl, 0xa781718c_579a_4b15_a280_32b8577acc5e); +::windows_core::imp::interface_hierarchy!(ITfCompositionSink, ::windows_core::IUnknown); impl ITfCompositionSink { pub unsafe fn OnCompositionTerminated(&self, ecwrite: u32, pcomposition: P0) -> ::windows_core::Result<()> where @@ -2394,22 +1993,14 @@ impl ITfCompositionSink { (::windows_core::Interface::vtable(self).OnCompositionTerminated)(::windows_core::Interface::as_raw(self), ecwrite, pcomposition.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ITfCompositionSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfCompositionSink { - type Vtable = ITfCompositionSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfCompositionSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa781718c_579a_4b15_a280_32b8577acc5e); -} #[repr(C)] #[doc(hidden)] pub struct ITfCompositionSink_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnCompositionTerminated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ecwrite: u32, pcomposition: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfCompositionView(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfCompositionView, ITfCompositionView_Vtbl, 0xd7540241_f9a1_4364_befc_dbcd2c4395b7); +::windows_core::imp::interface_hierarchy!(ITfCompositionView, ::windows_core::IUnknown); impl ITfCompositionView { pub unsafe fn GetOwnerClsid(&self) -> ::windows_core::Result<::windows_core::GUID> { let mut result__ = ::std::mem::zeroed(); @@ -2420,13 +2011,6 @@ impl ITfCompositionView { (::windows_core::Interface::vtable(self).GetRange)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITfCompositionView, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfCompositionView { - type Vtable = ITfCompositionView_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfCompositionView { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd7540241_f9a1_4364_befc_dbcd2c4395b7); -} #[repr(C)] #[doc(hidden)] pub struct ITfCompositionView_Vtbl { @@ -2434,9 +2018,8 @@ pub struct ITfCompositionView_Vtbl { pub GetOwnerClsid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pclsid: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, pub GetRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pprange: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfConfigureSystemKeystrokeFeed(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfConfigureSystemKeystrokeFeed, ITfConfigureSystemKeystrokeFeed_Vtbl, 0x0d2c969a_bc9c_437c_84ee_951c49b1a764); +::windows_core::imp::interface_hierarchy!(ITfConfigureSystemKeystrokeFeed, ::windows_core::IUnknown); impl ITfConfigureSystemKeystrokeFeed { pub unsafe fn DisableSystemKeystrokeFeed(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).DisableSystemKeystrokeFeed)(::windows_core::Interface::as_raw(self)).ok() @@ -2445,13 +2028,6 @@ impl ITfConfigureSystemKeystrokeFeed { (::windows_core::Interface::vtable(self).EnableSystemKeystrokeFeed)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ITfConfigureSystemKeystrokeFeed, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfConfigureSystemKeystrokeFeed { - type Vtable = ITfConfigureSystemKeystrokeFeed_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfConfigureSystemKeystrokeFeed { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0d2c969a_bc9c_437c_84ee_951c49b1a764); -} #[repr(C)] #[doc(hidden)] pub struct ITfConfigureSystemKeystrokeFeed_Vtbl { @@ -2459,9 +2035,8 @@ pub struct ITfConfigureSystemKeystrokeFeed_Vtbl { pub DisableSystemKeystrokeFeed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub EnableSystemKeystrokeFeed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfContext(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfContext, ITfContext_Vtbl, 0xaa80e7fd_2021_11d2_93e0_0060b067b86e); +::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<::windows_core::HRESULT> where @@ -2528,13 +2103,6 @@ impl ITfContext { (::windows_core::Interface::vtable(self).CreateRangeBackup)(::windows_core::Interface::as_raw(self), ec, prange.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITfContext, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfContext { - type Vtable = ITfContext_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfContext { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaa80e7fd_2021_11d2_93e0_0060b067b86e); -} #[repr(C)] #[doc(hidden)] pub struct ITfContext_Vtbl { @@ -2555,9 +2123,8 @@ pub struct ITfContext_Vtbl { pub GetDocumentMgr: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppdm: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateRangeBackup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ec: u32, prange: *mut ::core::ffi::c_void, ppbackup: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfContextComposition(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfContextComposition, ITfContextComposition_Vtbl, 0xd40c8aae_ac92_4fc7_9a11_0ee0e23aa39b); +::windows_core::imp::interface_hierarchy!(ITfContextComposition, ::windows_core::IUnknown); impl ITfContextComposition { pub unsafe fn StartComposition(&self, ecwrite: u32, pcompositionrange: P0, psink: P1) -> ::windows_core::Result where @@ -2587,13 +2154,6 @@ impl ITfContextComposition { (::windows_core::Interface::vtable(self).TakeOwnership)(::windows_core::Interface::as_raw(self), ecwrite, pcomposition.into_param().abi(), psink.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITfContextComposition, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfContextComposition { - type Vtable = ITfContextComposition_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfContextComposition { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd40c8aae_ac92_4fc7_9a11_0ee0e23aa39b); -} #[repr(C)] #[doc(hidden)] pub struct ITfContextComposition_Vtbl { @@ -2603,9 +2163,8 @@ pub struct ITfContextComposition_Vtbl { pub FindComposition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ecread: u32, ptestrange: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub TakeOwnership: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ecwrite: u32, pcomposition: *mut ::core::ffi::c_void, psink: *mut ::core::ffi::c_void, ppcomposition: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfContextKeyEventSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfContextKeyEventSink, ITfContextKeyEventSink_Vtbl, 0x0552ba5d_c835_4934_bf50_846aaa67432f); +::windows_core::imp::interface_hierarchy!(ITfContextKeyEventSink, ::windows_core::IUnknown); impl ITfContextKeyEventSink { pub unsafe fn OnKeyDown(&self, wparam: P0, lparam: P1) -> ::windows_core::Result where @@ -2640,13 +2199,6 @@ impl ITfContextKeyEventSink { (::windows_core::Interface::vtable(self).OnTestKeyUp)(::windows_core::Interface::as_raw(self), wparam.into_param().abi(), lparam.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITfContextKeyEventSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfContextKeyEventSink { - type Vtable = ITfContextKeyEventSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfContextKeyEventSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0552ba5d_c835_4934_bf50_846aaa67432f); -} #[repr(C)] #[doc(hidden)] pub struct ITfContextKeyEventSink_Vtbl { @@ -2656,9 +2208,8 @@ pub struct ITfContextKeyEventSink_Vtbl { pub OnTestKeyDown: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, pfeaten: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub OnTestKeyUp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, pfeaten: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfContextOwner(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfContextOwner, ITfContextOwner_Vtbl, 0xaa80e80c_2021_11d2_93e0_0060b067b86e); +::windows_core::imp::interface_hierarchy!(ITfContextOwner, ::windows_core::IUnknown); impl ITfContextOwner { pub unsafe fn GetACPFromPoint(&self, ptscreen: *const super::super::Foundation::POINT, dwflags: u32) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2686,13 +2237,6 @@ impl ITfContextOwner { (::windows_core::Interface::vtable(self).GetAttribute)(::windows_core::Interface::as_raw(self), rguidattribute, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITfContextOwner, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfContextOwner { - type Vtable = ITfContextOwner_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfContextOwner { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaa80e80c_2021_11d2_93e0_0060b067b86e); -} #[repr(C)] #[doc(hidden)] pub struct ITfContextOwner_Vtbl { @@ -2707,9 +2251,8 @@ pub struct ITfContextOwner_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] GetAttribute: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfContextOwnerCompositionServices(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfContextOwnerCompositionServices, ITfContextOwnerCompositionServices_Vtbl, 0x86462810_593b_4916_9764_19c08e9ce110); +::windows_core::imp::interface_hierarchy!(ITfContextOwnerCompositionServices, ::windows_core::IUnknown, ITfContextComposition); impl ITfContextOwnerCompositionServices { pub unsafe fn StartComposition(&self, ecwrite: u32, pcompositionrange: P0, psink: P1) -> ::windows_core::Result where @@ -2745,22 +2288,14 @@ impl ITfContextOwnerCompositionServices { (::windows_core::Interface::vtable(self).TerminateComposition)(::windows_core::Interface::as_raw(self), pcomposition.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ITfContextOwnerCompositionServices, ::windows_core::IUnknown, ITfContextComposition); -unsafe impl ::windows_core::Interface for ITfContextOwnerCompositionServices { - type Vtable = ITfContextOwnerCompositionServices_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfContextOwnerCompositionServices { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x86462810_593b_4916_9764_19c08e9ce110); -} #[repr(C)] #[doc(hidden)] pub struct ITfContextOwnerCompositionServices_Vtbl { pub base__: ITfContextComposition_Vtbl, pub TerminateComposition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcomposition: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfContextOwnerCompositionSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfContextOwnerCompositionSink, ITfContextOwnerCompositionSink_Vtbl, 0x5f20aa40_b57a_4f34_96ab_3576f377cc79); +::windows_core::imp::interface_hierarchy!(ITfContextOwnerCompositionSink, ::windows_core::IUnknown); impl ITfContextOwnerCompositionSink { pub unsafe fn OnStartComposition(&self, pcomposition: P0) -> ::windows_core::Result where @@ -2783,13 +2318,6 @@ impl ITfContextOwnerCompositionSink { (::windows_core::Interface::vtable(self).OnEndComposition)(::windows_core::Interface::as_raw(self), pcomposition.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ITfContextOwnerCompositionSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfContextOwnerCompositionSink { - type Vtable = ITfContextOwnerCompositionSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfContextOwnerCompositionSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5f20aa40_b57a_4f34_96ab_3576f377cc79); -} #[repr(C)] #[doc(hidden)] pub struct ITfContextOwnerCompositionSink_Vtbl { @@ -2798,9 +2326,8 @@ pub struct ITfContextOwnerCompositionSink_Vtbl { pub OnUpdateComposition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcomposition: *mut ::core::ffi::c_void, prangenew: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub OnEndComposition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcomposition: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfContextOwnerServices(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfContextOwnerServices, ITfContextOwnerServices_Vtbl, 0xb23eb630_3e1c_11d3_a745_0050040ab407); +::windows_core::imp::interface_hierarchy!(ITfContextOwnerServices, ::windows_core::IUnknown); impl ITfContextOwnerServices { pub unsafe fn OnLayoutChange(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnLayoutChange)(::windows_core::Interface::as_raw(self)).ok() @@ -2842,13 +2369,6 @@ impl ITfContextOwnerServices { (::windows_core::Interface::vtable(self).CreateRange)(::windows_core::Interface::as_raw(self), acpstart, acpend, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITfContextOwnerServices, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfContextOwnerServices { - type Vtable = ITfContextOwnerServices_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfContextOwnerServices { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb23eb630_3e1c_11d3_a745_0050040ab407); -} #[repr(C)] #[doc(hidden)] pub struct ITfContextOwnerServices_Vtbl { @@ -2867,9 +2387,8 @@ pub struct ITfContextOwnerServices_Vtbl { pub ForceLoadProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pprop: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, acpstart: i32, acpend: i32, pprange: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfContextView(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfContextView, ITfContextView_Vtbl, 0x2433bf8e_0f9b_435c_ba2c_180611978c30); +::windows_core::imp::interface_hierarchy!(ITfContextView, ::windows_core::IUnknown); impl ITfContextView { pub unsafe fn GetRangeFromPoint(&self, ec: u32, ppt: *const super::super::Foundation::POINT, dwflags: u32) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2890,13 +2409,6 @@ impl ITfContextView { (::windows_core::Interface::vtable(self).GetWnd)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITfContextView, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfContextView { - type Vtable = ITfContextView_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfContextView { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2433bf8e_0f9b_435c_ba2c_180611978c30); -} #[repr(C)] #[doc(hidden)] pub struct ITfContextView_Vtbl { @@ -2906,9 +2418,8 @@ pub struct ITfContextView_Vtbl { pub GetScreenExt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prc: *mut super::super::Foundation::RECT) -> ::windows_core::HRESULT, pub GetWnd: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phwnd: *mut super::super::Foundation::HWND) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfCreatePropertyStore(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfCreatePropertyStore, ITfCreatePropertyStore_Vtbl, 0x2463fbf0_b0af_11d2_afc5_00105a2799b5); +::windows_core::imp::interface_hierarchy!(ITfCreatePropertyStore, ::windows_core::IUnknown); impl ITfCreatePropertyStore { pub unsafe fn IsStoreSerializable(&self, guidprop: *const ::windows_core::GUID, prange: P0, ppropstore: P1) -> ::windows_core::Result where @@ -2929,13 +2440,6 @@ impl ITfCreatePropertyStore { (::windows_core::Interface::vtable(self).CreatePropertyStore)(::windows_core::Interface::as_raw(self), guidprop, prange.into_param().abi(), cb, pstream.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITfCreatePropertyStore, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfCreatePropertyStore { - type Vtable = ITfCreatePropertyStore_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfCreatePropertyStore { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2463fbf0_b0af_11d2_afc5_00105a2799b5); -} #[repr(C)] #[doc(hidden)] pub struct ITfCreatePropertyStore_Vtbl { @@ -2946,9 +2450,8 @@ pub struct ITfCreatePropertyStore_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] CreatePropertyStore: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfDisplayAttributeInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfDisplayAttributeInfo, ITfDisplayAttributeInfo_Vtbl, 0x70528852_2f26_4aea_8c96_215150578932); +::windows_core::imp::interface_hierarchy!(ITfDisplayAttributeInfo, ::windows_core::IUnknown); impl ITfDisplayAttributeInfo { pub unsafe fn GetGUID(&self) -> ::windows_core::Result<::windows_core::GUID> { let mut result__ = ::std::mem::zeroed(); @@ -2968,13 +2471,6 @@ impl ITfDisplayAttributeInfo { (::windows_core::Interface::vtable(self).Reset)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ITfDisplayAttributeInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfDisplayAttributeInfo { - type Vtable = ITfDisplayAttributeInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfDisplayAttributeInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x70528852_2f26_4aea_8c96_215150578932); -} #[repr(C)] #[doc(hidden)] pub struct ITfDisplayAttributeInfo_Vtbl { @@ -2985,9 +2481,8 @@ pub struct ITfDisplayAttributeInfo_Vtbl { pub SetAttributeInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pda: *const TF_DISPLAYATTRIBUTE) -> ::windows_core::HRESULT, pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfDisplayAttributeMgr(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfDisplayAttributeMgr, ITfDisplayAttributeMgr_Vtbl, 0x8ded7393_5db1_475c_9e71_a39111b0ff67); +::windows_core::imp::interface_hierarchy!(ITfDisplayAttributeMgr, ::windows_core::IUnknown); impl ITfDisplayAttributeMgr { pub unsafe fn OnUpdateInfo(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnUpdateInfo)(::windows_core::Interface::as_raw(self)).ok() @@ -3000,13 +2495,6 @@ impl ITfDisplayAttributeMgr { (::windows_core::Interface::vtable(self).GetDisplayAttributeInfo)(::windows_core::Interface::as_raw(self), guid, ::core::mem::transmute(ppinfo), pclsidowner).ok() } } -::windows_core::imp::interface_hierarchy!(ITfDisplayAttributeMgr, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfDisplayAttributeMgr { - type Vtable = ITfDisplayAttributeMgr_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfDisplayAttributeMgr { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8ded7393_5db1_475c_9e71_a39111b0ff67); -} #[repr(C)] #[doc(hidden)] pub struct ITfDisplayAttributeMgr_Vtbl { @@ -3015,30 +2503,21 @@ pub struct ITfDisplayAttributeMgr_Vtbl { pub EnumDisplayAttributeInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDisplayAttributeInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guid: *const ::windows_core::GUID, ppinfo: *mut *mut ::core::ffi::c_void, pclsidowner: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfDisplayAttributeNotifySink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfDisplayAttributeNotifySink, ITfDisplayAttributeNotifySink_Vtbl, 0xad56f402_e162_4f25_908f_7d577cf9bda9); +::windows_core::imp::interface_hierarchy!(ITfDisplayAttributeNotifySink, ::windows_core::IUnknown); impl ITfDisplayAttributeNotifySink { pub unsafe fn OnUpdateInfo(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnUpdateInfo)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ITfDisplayAttributeNotifySink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfDisplayAttributeNotifySink { - type Vtable = ITfDisplayAttributeNotifySink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfDisplayAttributeNotifySink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xad56f402_e162_4f25_908f_7d577cf9bda9); -} #[repr(C)] #[doc(hidden)] pub struct ITfDisplayAttributeNotifySink_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnUpdateInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfDisplayAttributeProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfDisplayAttributeProvider, ITfDisplayAttributeProvider_Vtbl, 0xfee47777_163c_4769_996a_6e9c50ad8f54); +::windows_core::imp::interface_hierarchy!(ITfDisplayAttributeProvider, ::windows_core::IUnknown); impl ITfDisplayAttributeProvider { pub unsafe fn EnumDisplayAttributeInfo(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -3049,13 +2528,6 @@ impl ITfDisplayAttributeProvider { (::windows_core::Interface::vtable(self).GetDisplayAttributeInfo)(::windows_core::Interface::as_raw(self), guid, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITfDisplayAttributeProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfDisplayAttributeProvider { - type Vtable = ITfDisplayAttributeProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfDisplayAttributeProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfee47777_163c_4769_996a_6e9c50ad8f54); -} #[repr(C)] #[doc(hidden)] pub struct ITfDisplayAttributeProvider_Vtbl { @@ -3063,9 +2535,8 @@ pub struct ITfDisplayAttributeProvider_Vtbl { pub EnumDisplayAttributeInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetDisplayAttributeInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guid: *const ::windows_core::GUID, ppinfo: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfDocumentMgr(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfDocumentMgr, ITfDocumentMgr_Vtbl, 0xaa80e7f4_2021_11d2_93e0_0060b067b86e); +::windows_core::imp::interface_hierarchy!(ITfDocumentMgr, ::windows_core::IUnknown); impl ITfDocumentMgr { pub unsafe fn CreateContext(&self, tidowner: u32, dwflags: u32, punk: P0, ppic: *mut ::core::option::Option, pectextstore: *mut u32) -> ::windows_core::Result<()> where @@ -3095,13 +2566,6 @@ impl ITfDocumentMgr { (::windows_core::Interface::vtable(self).EnumContexts)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITfDocumentMgr, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfDocumentMgr { - type Vtable = ITfDocumentMgr_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfDocumentMgr { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaa80e7f4_2021_11d2_93e0_0060b067b86e); -} #[repr(C)] #[doc(hidden)] pub struct ITfDocumentMgr_Vtbl { @@ -3113,9 +2577,8 @@ pub struct ITfDocumentMgr_Vtbl { pub GetBase: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppic: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub EnumContexts: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfEditRecord(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfEditRecord, ITfEditRecord_Vtbl, 0x42d4d099_7c1a_4a89_b836_6c6f22160df0); +::windows_core::imp::interface_hierarchy!(ITfEditRecord, ::windows_core::IUnknown); impl ITfEditRecord { pub unsafe fn GetSelectionStatus(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -3126,13 +2589,6 @@ impl ITfEditRecord { (::windows_core::Interface::vtable(self).GetTextAndPropertyUpdates)(::windows_core::Interface::as_raw(self), dwflags, ::core::mem::transmute(prgproperties.as_ptr()), prgproperties.len().try_into().unwrap(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITfEditRecord, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfEditRecord { - type Vtable = ITfEditRecord_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfEditRecord { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x42d4d099_7c1a_4a89_b836_6c6f22160df0); -} #[repr(C)] #[doc(hidden)] pub struct ITfEditRecord_Vtbl { @@ -3140,30 +2596,21 @@ pub struct ITfEditRecord_Vtbl { pub GetSelectionStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfchanged: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub GetTextAndPropertyUpdates: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwflags: GET_TEXT_AND_PROPERTY_UPDATES_FLAGS, prgproperties: *const *const ::windows_core::GUID, cproperties: u32, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfEditSession(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfEditSession, ITfEditSession_Vtbl, 0xaa80e803_2021_11d2_93e0_0060b067b86e); +::windows_core::imp::interface_hierarchy!(ITfEditSession, ::windows_core::IUnknown); impl ITfEditSession { pub unsafe fn DoEditSession(&self, ec: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).DoEditSession)(::windows_core::Interface::as_raw(self), ec).ok() } } -::windows_core::imp::interface_hierarchy!(ITfEditSession, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfEditSession { - type Vtable = ITfEditSession_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfEditSession { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaa80e803_2021_11d2_93e0_0060b067b86e); -} #[repr(C)] #[doc(hidden)] pub struct ITfEditSession_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub DoEditSession: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ec: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfEditTransactionSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfEditTransactionSink, ITfEditTransactionSink_Vtbl, 0x708fbf70_b520_416b_b06c_2c41ab44f8ba); +::windows_core::imp::interface_hierarchy!(ITfEditTransactionSink, ::windows_core::IUnknown); impl ITfEditTransactionSink { pub unsafe fn OnStartEditTransaction(&self, pic: P0) -> ::windows_core::Result<()> where @@ -3178,13 +2625,6 @@ impl ITfEditTransactionSink { (::windows_core::Interface::vtable(self).OnEndEditTransaction)(::windows_core::Interface::as_raw(self), pic.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ITfEditTransactionSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfEditTransactionSink { - type Vtable = ITfEditTransactionSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfEditTransactionSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x708fbf70_b520_416b_b06c_2c41ab44f8ba); -} #[repr(C)] #[doc(hidden)] pub struct ITfEditTransactionSink_Vtbl { @@ -3192,9 +2632,8 @@ pub struct ITfEditTransactionSink_Vtbl { pub OnStartEditTransaction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pic: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub OnEndEditTransaction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pic: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfFnAdviseText(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfFnAdviseText, ITfFnAdviseText_Vtbl, 0x3527268b_7d53_4dd9_92b7_7296ae461249); +::windows_core::imp::interface_hierarchy!(ITfFnAdviseText, ::windows_core::IUnknown, ITfFunction); impl ITfFnAdviseText { pub unsafe fn GetDisplayName(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -3214,13 +2653,6 @@ impl ITfFnAdviseText { (::windows_core::Interface::vtable(self).OnLatticeUpdate)(::windows_core::Interface::as_raw(self), prange.into_param().abi(), plattice.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ITfFnAdviseText, ::windows_core::IUnknown, ITfFunction); -unsafe impl ::windows_core::Interface for ITfFnAdviseText { - type Vtable = ITfFnAdviseText_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfFnAdviseText { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3527268b_7d53_4dd9_92b7_7296ae461249); -} #[repr(C)] #[doc(hidden)] pub struct ITfFnAdviseText_Vtbl { @@ -3228,30 +2660,21 @@ pub struct ITfFnAdviseText_Vtbl { pub OnTextUpdate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prange: *mut ::core::ffi::c_void, pchtext: ::windows_core::PCWSTR, cch: i32) -> ::windows_core::HRESULT, pub OnLatticeUpdate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prange: *mut ::core::ffi::c_void, plattice: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfFnBalloon(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfFnBalloon, ITfFnBalloon_Vtbl, 0x3bab89e4_5fbe_45f4_a5bc_dca36ad225a8); +::windows_core::imp::interface_hierarchy!(ITfFnBalloon, ::windows_core::IUnknown); impl ITfFnBalloon { pub unsafe fn UpdateBalloon(&self, style: TfLBBalloonStyle, pch: &[u16]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).UpdateBalloon)(::windows_core::Interface::as_raw(self), style, ::core::mem::transmute(pch.as_ptr()), pch.len().try_into().unwrap()).ok() } } -::windows_core::imp::interface_hierarchy!(ITfFnBalloon, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfFnBalloon { - type Vtable = ITfFnBalloon_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfFnBalloon { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3bab89e4_5fbe_45f4_a5bc_dca36ad225a8); -} #[repr(C)] #[doc(hidden)] pub struct ITfFnBalloon_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub UpdateBalloon: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, style: TfLBBalloonStyle, pch: ::windows_core::PCWSTR, cch: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfFnConfigure(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfFnConfigure, ITfFnConfigure_Vtbl, 0x88f567c6_1757_49f8_a1b2_89234c1eeff9); +::windows_core::imp::interface_hierarchy!(ITfFnConfigure, ::windows_core::IUnknown, ITfFunction); impl ITfFnConfigure { pub unsafe fn GetDisplayName(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -3264,22 +2687,14 @@ impl ITfFnConfigure { (::windows_core::Interface::vtable(self).Show)(::windows_core::Interface::as_raw(self), hwndparent.into_param().abi(), langid, rguidprofile).ok() } } -::windows_core::imp::interface_hierarchy!(ITfFnConfigure, ::windows_core::IUnknown, ITfFunction); -unsafe impl ::windows_core::Interface for ITfFnConfigure { - type Vtable = ITfFnConfigure_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfFnConfigure { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x88f567c6_1757_49f8_a1b2_89234c1eeff9); -} #[repr(C)] #[doc(hidden)] pub struct ITfFnConfigure_Vtbl { pub base__: ITfFunction_Vtbl, pub Show: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwndparent: super::super::Foundation::HWND, langid: u16, rguidprofile: *const ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfFnConfigureRegisterEudc(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfFnConfigureRegisterEudc, ITfFnConfigureRegisterEudc_Vtbl, 0xb5e26ff5_d7ad_4304_913f_21a2ed95a1b0); +::windows_core::imp::interface_hierarchy!(ITfFnConfigureRegisterEudc, ::windows_core::IUnknown, ITfFunction); impl ITfFnConfigureRegisterEudc { pub unsafe fn GetDisplayName(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -3293,22 +2708,14 @@ impl ITfFnConfigureRegisterEudc { (::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::imp::interface_hierarchy!(ITfFnConfigureRegisterEudc, ::windows_core::IUnknown, ITfFunction); -unsafe impl ::windows_core::Interface for ITfFnConfigureRegisterEudc { - type Vtable = ITfFnConfigureRegisterEudc_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfFnConfigureRegisterEudc { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb5e26ff5_d7ad_4304_913f_21a2ed95a1b0); -} #[repr(C)] #[doc(hidden)] pub struct ITfFnConfigureRegisterEudc_Vtbl { pub base__: ITfFunction_Vtbl, pub Show: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwndparent: super::super::Foundation::HWND, langid: u16, rguidprofile: *const ::windows_core::GUID, bstrregistered: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfFnConfigureRegisterWord(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfFnConfigureRegisterWord, ITfFnConfigureRegisterWord_Vtbl, 0xbb95808a_6d8f_4bca_8400_5390b586aedf); +::windows_core::imp::interface_hierarchy!(ITfFnConfigureRegisterWord, ::windows_core::IUnknown, ITfFunction); impl ITfFnConfigureRegisterWord { pub unsafe fn GetDisplayName(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -3322,22 +2729,14 @@ impl ITfFnConfigureRegisterWord { (::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::imp::interface_hierarchy!(ITfFnConfigureRegisterWord, ::windows_core::IUnknown, ITfFunction); -unsafe impl ::windows_core::Interface for ITfFnConfigureRegisterWord { - type Vtable = ITfFnConfigureRegisterWord_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfFnConfigureRegisterWord { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbb95808a_6d8f_4bca_8400_5390b586aedf); -} #[repr(C)] #[doc(hidden)] pub struct ITfFnConfigureRegisterWord_Vtbl { pub base__: ITfFunction_Vtbl, pub Show: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwndparent: super::super::Foundation::HWND, langid: u16, rguidprofile: *const ::windows_core::GUID, bstrregistered: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfFnCustomSpeechCommand(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfFnCustomSpeechCommand, ITfFnCustomSpeechCommand_Vtbl, 0xfca6c349_a12f_43a3_8dd6_5a5a4282577b); +::windows_core::imp::interface_hierarchy!(ITfFnCustomSpeechCommand, ::windows_core::IUnknown, ITfFunction); impl ITfFnCustomSpeechCommand { pub unsafe fn GetDisplayName(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -3350,22 +2749,14 @@ impl ITfFnCustomSpeechCommand { (::windows_core::Interface::vtable(self).SetSpeechCommandProvider)(::windows_core::Interface::as_raw(self), pspcmdprovider.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ITfFnCustomSpeechCommand, ::windows_core::IUnknown, ITfFunction); -unsafe impl ::windows_core::Interface for ITfFnCustomSpeechCommand { - type Vtable = ITfFnCustomSpeechCommand_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfFnCustomSpeechCommand { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfca6c349_a12f_43a3_8dd6_5a5a4282577b); -} #[repr(C)] #[doc(hidden)] pub struct ITfFnCustomSpeechCommand_Vtbl { pub base__: ITfFunction_Vtbl, pub SetSpeechCommandProvider: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pspcmdprovider: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfFnGetLinguisticAlternates(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfFnGetLinguisticAlternates, ITfFnGetLinguisticAlternates_Vtbl, 0xea163ce2_7a65_4506_82a3_c528215da64e); +::windows_core::imp::interface_hierarchy!(ITfFnGetLinguisticAlternates, ::windows_core::IUnknown, ITfFunction); impl ITfFnGetLinguisticAlternates { pub unsafe fn GetDisplayName(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -3379,22 +2770,14 @@ impl ITfFnGetLinguisticAlternates { (::windows_core::Interface::vtable(self).GetAlternates)(::windows_core::Interface::as_raw(self), prange.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITfFnGetLinguisticAlternates, ::windows_core::IUnknown, ITfFunction); -unsafe impl ::windows_core::Interface for ITfFnGetLinguisticAlternates { - type Vtable = ITfFnGetLinguisticAlternates_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfFnGetLinguisticAlternates { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xea163ce2_7a65_4506_82a3_c528215da64e); -} #[repr(C)] #[doc(hidden)] pub struct ITfFnGetLinguisticAlternates_Vtbl { pub base__: ITfFunction_Vtbl, pub GetAlternates: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prange: *mut ::core::ffi::c_void, ppcandidatelist: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfFnGetPreferredTouchKeyboardLayout(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfFnGetPreferredTouchKeyboardLayout, ITfFnGetPreferredTouchKeyboardLayout_Vtbl, 0x5f309a41_590a_4acc_a97f_d8efff13fdfc); +::windows_core::imp::interface_hierarchy!(ITfFnGetPreferredTouchKeyboardLayout, ::windows_core::IUnknown, ITfFunction); impl ITfFnGetPreferredTouchKeyboardLayout { pub unsafe fn GetDisplayName(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -3404,22 +2787,14 @@ impl ITfFnGetPreferredTouchKeyboardLayout { (::windows_core::Interface::vtable(self).GetLayout)(::windows_core::Interface::as_raw(self), ptkblayouttype, pwpreferredlayoutid).ok() } } -::windows_core::imp::interface_hierarchy!(ITfFnGetPreferredTouchKeyboardLayout, ::windows_core::IUnknown, ITfFunction); -unsafe impl ::windows_core::Interface for ITfFnGetPreferredTouchKeyboardLayout { - type Vtable = ITfFnGetPreferredTouchKeyboardLayout_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfFnGetPreferredTouchKeyboardLayout { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5f309a41_590a_4acc_a97f_d8efff13fdfc); -} #[repr(C)] #[doc(hidden)] pub struct ITfFnGetPreferredTouchKeyboardLayout_Vtbl { pub base__: ITfFunction_Vtbl, pub GetLayout: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptkblayouttype: *mut TKBLayoutType, pwpreferredlayoutid: *const u16) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfFnGetSAPIObject(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfFnGetSAPIObject, ITfFnGetSAPIObject_Vtbl, 0x5c0ab7ea_167d_4f59_bfb5_4693755e90ca); +::windows_core::imp::interface_hierarchy!(ITfFnGetSAPIObject, ::windows_core::IUnknown, ITfFunction); impl ITfFnGetSAPIObject { pub unsafe fn GetDisplayName(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -3430,22 +2805,14 @@ impl ITfFnGetSAPIObject { (::windows_core::Interface::vtable(self).Get)(::windows_core::Interface::as_raw(self), sobj, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITfFnGetSAPIObject, ::windows_core::IUnknown, ITfFunction); -unsafe impl ::windows_core::Interface for ITfFnGetSAPIObject { - type Vtable = ITfFnGetSAPIObject_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfFnGetSAPIObject { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5c0ab7ea_167d_4f59_bfb5_4693755e90ca); -} #[repr(C)] #[doc(hidden)] pub struct ITfFnGetSAPIObject_Vtbl { pub base__: ITfFunction_Vtbl, pub Get: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sobj: TfSapiObject, ppunk: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfFnLMInternal(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfFnLMInternal, ITfFnLMInternal_Vtbl, 0x04b825b1_ac9a_4f7b_b5ad_c7168f1ee445); +::windows_core::imp::interface_hierarchy!(ITfFnLMInternal, ::windows_core::IUnknown, ITfFunction, ITfFnLMProcessor); impl ITfFnLMInternal { pub unsafe fn GetDisplayName(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -3504,22 +2871,14 @@ impl ITfFnLMInternal { (::windows_core::Interface::vtable(self).ProcessLattice)(::windows_core::Interface::as_raw(self), prange.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ITfFnLMInternal, ::windows_core::IUnknown, ITfFunction, ITfFnLMProcessor); -unsafe impl ::windows_core::Interface for ITfFnLMInternal { - type Vtable = ITfFnLMInternal_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfFnLMInternal { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x04b825b1_ac9a_4f7b_b5ad_c7168f1ee445); -} #[repr(C)] #[doc(hidden)] pub struct ITfFnLMInternal_Vtbl { pub base__: ITfFnLMProcessor_Vtbl, pub ProcessLattice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prange: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfFnLMProcessor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfFnLMProcessor, ITfFnLMProcessor_Vtbl, 0x7afbf8e7_ac4b_4082_b058_890899d3a010); +::windows_core::imp::interface_hierarchy!(ITfFnLMProcessor, ::windows_core::IUnknown, ITfFunction); impl ITfFnLMProcessor { pub unsafe fn GetDisplayName(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -3572,13 +2931,6 @@ impl ITfFnLMProcessor { (::windows_core::Interface::vtable(self).InvokeFunc)(::windows_core::Interface::as_raw(self), pic.into_param().abi(), refguidfunc).ok() } } -::windows_core::imp::interface_hierarchy!(ITfFnLMProcessor, ::windows_core::IUnknown, ITfFunction); -unsafe impl ::windows_core::Interface for ITfFnLMProcessor { - type Vtable = ITfFnLMProcessor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfFnLMProcessor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7afbf8e7_ac4b_4082_b058_890899d3a010); -} #[repr(C)] #[doc(hidden)] pub struct ITfFnLMProcessor_Vtbl { @@ -3591,9 +2943,8 @@ pub struct ITfFnLMProcessor_Vtbl { pub InvokeKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fup: super::super::Foundation::BOOL, vkey: super::super::Foundation::WPARAM, lparamkeydata: super::super::Foundation::LPARAM) -> ::windows_core::HRESULT, pub InvokeFunc: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pic: *mut ::core::ffi::c_void, refguidfunc: *const ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfFnLangProfileUtil(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfFnLangProfileUtil, ITfFnLangProfileUtil_Vtbl, 0xa87a8574_a6c1_4e15_99f0_3d3965f548eb); +::windows_core::imp::interface_hierarchy!(ITfFnLangProfileUtil, ::windows_core::IUnknown, ITfFunction); impl ITfFnLangProfileUtil { pub unsafe fn GetDisplayName(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -3607,13 +2958,6 @@ impl ITfFnLangProfileUtil { (::windows_core::Interface::vtable(self).IsProfileAvailableForLang)(::windows_core::Interface::as_raw(self), langid, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITfFnLangProfileUtil, ::windows_core::IUnknown, ITfFunction); -unsafe impl ::windows_core::Interface for ITfFnLangProfileUtil { - type Vtable = ITfFnLangProfileUtil_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfFnLangProfileUtil { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa87a8574_a6c1_4e15_99f0_3d3965f548eb); -} #[repr(C)] #[doc(hidden)] pub struct ITfFnLangProfileUtil_Vtbl { @@ -3621,9 +2965,8 @@ pub struct ITfFnLangProfileUtil_Vtbl { pub RegisterActiveProfiles: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub IsProfileAvailableForLang: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, langid: u16, pfavailable: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfFnPlayBack(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfFnPlayBack, ITfFnPlayBack_Vtbl, 0xa3a416a4_0f64_11d3_b5b7_00c04fc324a1); +::windows_core::imp::interface_hierarchy!(ITfFnPlayBack, ::windows_core::IUnknown, ITfFunction); impl ITfFnPlayBack { pub unsafe fn GetDisplayName(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -3642,13 +2985,6 @@ impl ITfFnPlayBack { (::windows_core::Interface::vtable(self).Play)(::windows_core::Interface::as_raw(self), prange.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ITfFnPlayBack, ::windows_core::IUnknown, ITfFunction); -unsafe impl ::windows_core::Interface for ITfFnPlayBack { - type Vtable = ITfFnPlayBack_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfFnPlayBack { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa3a416a4_0f64_11d3_b5b7_00c04fc324a1); -} #[repr(C)] #[doc(hidden)] pub struct ITfFnPlayBack_Vtbl { @@ -3656,9 +2992,8 @@ pub struct ITfFnPlayBack_Vtbl { pub QueryRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prange: *mut ::core::ffi::c_void, ppnewrange: *mut *mut ::core::ffi::c_void, pfplayable: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub Play: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prange: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfFnPropertyUIStatus(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfFnPropertyUIStatus, ITfFnPropertyUIStatus_Vtbl, 0x2338ac6e_2b9d_44c0_a75e_ee64f256b3bd); +::windows_core::imp::interface_hierarchy!(ITfFnPropertyUIStatus, ::windows_core::IUnknown, ITfFunction); impl ITfFnPropertyUIStatus { pub unsafe fn GetDisplayName(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -3672,13 +3007,6 @@ impl ITfFnPropertyUIStatus { (::windows_core::Interface::vtable(self).SetStatus)(::windows_core::Interface::as_raw(self), refguidprop, dw).ok() } } -::windows_core::imp::interface_hierarchy!(ITfFnPropertyUIStatus, ::windows_core::IUnknown, ITfFunction); -unsafe impl ::windows_core::Interface for ITfFnPropertyUIStatus { - type Vtable = ITfFnPropertyUIStatus_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfFnPropertyUIStatus { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2338ac6e_2b9d_44c0_a75e_ee64f256b3bd); -} #[repr(C)] #[doc(hidden)] pub struct ITfFnPropertyUIStatus_Vtbl { @@ -3686,9 +3014,8 @@ pub struct ITfFnPropertyUIStatus_Vtbl { pub GetStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, refguidprop: *const ::windows_core::GUID, pdw: *mut u32) -> ::windows_core::HRESULT, pub SetStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, refguidprop: *const ::windows_core::GUID, dw: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfFnReconversion(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfFnReconversion, ITfFnReconversion_Vtbl, 0x4cea93c0_0a58_11d3_8df0_00105a2799b5); +::windows_core::imp::interface_hierarchy!(ITfFnReconversion, ::windows_core::IUnknown, ITfFunction); impl ITfFnReconversion { pub unsafe fn GetDisplayName(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -3714,13 +3041,6 @@ impl ITfFnReconversion { (::windows_core::Interface::vtable(self).Reconvert)(::windows_core::Interface::as_raw(self), prange.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ITfFnReconversion, ::windows_core::IUnknown, ITfFunction); -unsafe impl ::windows_core::Interface for ITfFnReconversion { - type Vtable = ITfFnReconversion_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfFnReconversion { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4cea93c0_0a58_11d3_8df0_00105a2799b5); -} #[repr(C)] #[doc(hidden)] pub struct ITfFnReconversion_Vtbl { @@ -3729,9 +3049,8 @@ pub struct ITfFnReconversion_Vtbl { pub GetReconversion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prange: *mut ::core::ffi::c_void, ppcandlist: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Reconvert: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prange: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfFnSearchCandidateProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfFnSearchCandidateProvider, ITfFnSearchCandidateProvider_Vtbl, 0x87a2ad8f_f27b_4920_8501_67602280175d); +::windows_core::imp::interface_hierarchy!(ITfFnSearchCandidateProvider, ::windows_core::IUnknown, ITfFunction); impl ITfFnSearchCandidateProvider { pub unsafe fn GetDisplayName(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -3754,13 +3073,6 @@ impl ITfFnSearchCandidateProvider { (::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::imp::interface_hierarchy!(ITfFnSearchCandidateProvider, ::windows_core::IUnknown, ITfFunction); -unsafe impl ::windows_core::Interface for ITfFnSearchCandidateProvider { - type Vtable = ITfFnSearchCandidateProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfFnSearchCandidateProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x87a2ad8f_f27b_4920_8501_67602280175d); -} #[repr(C)] #[doc(hidden)] pub struct ITfFnSearchCandidateProvider_Vtbl { @@ -3768,9 +3080,8 @@ pub struct ITfFnSearchCandidateProvider_Vtbl { pub GetSearchCandidates: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrquery: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstrapplicationid: ::std::mem::MaybeUninit<::windows_core::BSTR>, pplist: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetResult: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrquery: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstrapplicationid: ::std::mem::MaybeUninit<::windows_core::BSTR>, bstrresult: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfFnShowHelp(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfFnShowHelp, ITfFnShowHelp_Vtbl, 0x5ab1d30c_094d_4c29_8ea5_0bf59be87bf3); +::windows_core::imp::interface_hierarchy!(ITfFnShowHelp, ::windows_core::IUnknown, ITfFunction); impl ITfFnShowHelp { pub unsafe fn GetDisplayName(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -3783,44 +3094,28 @@ impl ITfFnShowHelp { (::windows_core::Interface::vtable(self).Show)(::windows_core::Interface::as_raw(self), hwndparent.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ITfFnShowHelp, ::windows_core::IUnknown, ITfFunction); -unsafe impl ::windows_core::Interface for ITfFnShowHelp { - type Vtable = ITfFnShowHelp_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfFnShowHelp { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5ab1d30c_094d_4c29_8ea5_0bf59be87bf3); -} #[repr(C)] #[doc(hidden)] pub struct ITfFnShowHelp_Vtbl { pub base__: ITfFunction_Vtbl, pub Show: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwndparent: super::super::Foundation::HWND) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfFunction(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfFunction, ITfFunction_Vtbl, 0xdb593490_098f_11d3_8df0_00105a2799b5); +::windows_core::imp::interface_hierarchy!(ITfFunction, ::windows_core::IUnknown); impl ITfFunction { pub unsafe fn GetDisplayName(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetDisplayName)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITfFunction, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfFunction { - type Vtable = ITfFunction_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfFunction { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdb593490_098f_11d3_8df0_00105a2799b5); -} #[repr(C)] #[doc(hidden)] pub struct ITfFunction_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetDisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfFunctionProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfFunctionProvider, ITfFunctionProvider_Vtbl, 0x101d6610_0990_11d3_8df0_00105a2799b5); +::windows_core::imp::interface_hierarchy!(ITfFunctionProvider, ::windows_core::IUnknown); impl ITfFunctionProvider { pub unsafe fn GetType(&self) -> ::windows_core::Result<::windows_core::GUID> { let mut result__ = ::std::mem::zeroed(); @@ -3835,13 +3130,6 @@ impl ITfFunctionProvider { (::windows_core::Interface::vtable(self).GetFunction)(::windows_core::Interface::as_raw(self), rguid, riid, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITfFunctionProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfFunctionProvider { - type Vtable = ITfFunctionProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfFunctionProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x101d6610_0990_11d3_8df0_00105a2799b5); -} #[repr(C)] #[doc(hidden)] pub struct ITfFunctionProvider_Vtbl { @@ -3850,9 +3138,8 @@ pub struct ITfFunctionProvider_Vtbl { pub GetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdesc: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub GetFunction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rguid: *const ::windows_core::GUID, riid: *const ::windows_core::GUID, ppunk: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfInputProcessorProfileActivationSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfInputProcessorProfileActivationSink, ITfInputProcessorProfileActivationSink_Vtbl, 0x71c6e74e_0f28_11d8_a82a_00065b84435c); +::windows_core::imp::interface_hierarchy!(ITfInputProcessorProfileActivationSink, ::windows_core::IUnknown); 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 @@ -3861,22 +3148,14 @@ impl ITfInputProcessorProfileActivationSink { (::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::imp::interface_hierarchy!(ITfInputProcessorProfileActivationSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfInputProcessorProfileActivationSink { - type Vtable = ITfInputProcessorProfileActivationSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfInputProcessorProfileActivationSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x71c6e74e_0f28_11d8_a82a_00065b84435c); -} #[repr(C)] #[doc(hidden)] pub struct ITfInputProcessorProfileActivationSink_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnActivated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwprofiletype: u32, langid: u16, clsid: *const ::windows_core::GUID, catid: *const ::windows_core::GUID, guidprofile: *const ::windows_core::GUID, hkl: HKL, dwflags: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfInputProcessorProfileMgr(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfInputProcessorProfileMgr, ITfInputProcessorProfileMgr_Vtbl, 0x71c6e74c_0f28_11d8_a82a_00065b84435c); +::windows_core::imp::interface_hierarchy!(ITfInputProcessorProfileMgr, ::windows_core::IUnknown); 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 @@ -3917,13 +3196,6 @@ impl ITfInputProcessorProfileMgr { (::windows_core::Interface::vtable(self).GetActiveProfile)(::windows_core::Interface::as_raw(self), catid, pprofile).ok() } } -::windows_core::imp::interface_hierarchy!(ITfInputProcessorProfileMgr, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfInputProcessorProfileMgr { - type Vtable = ITfInputProcessorProfileMgr_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfInputProcessorProfileMgr { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x71c6e74c_0f28_11d8_a82a_00065b84435c); -} #[repr(C)] #[doc(hidden)] pub struct ITfInputProcessorProfileMgr_Vtbl { @@ -3937,31 +3209,22 @@ pub struct ITfInputProcessorProfileMgr_Vtbl { pub UnregisterProfile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rclsid: *const ::windows_core::GUID, langid: u16, guidprofile: *const ::windows_core::GUID, dwflags: u32) -> ::windows_core::HRESULT, pub GetActiveProfile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, catid: *const ::windows_core::GUID, pprofile: *mut TF_INPUTPROCESSORPROFILE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfInputProcessorProfileSubstituteLayout(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfInputProcessorProfileSubstituteLayout, ITfInputProcessorProfileSubstituteLayout_Vtbl, 0x4fd67194_1002_4513_bff2_c0ddf6258552); +::windows_core::imp::interface_hierarchy!(ITfInputProcessorProfileSubstituteLayout, ::windows_core::IUnknown); impl ITfInputProcessorProfileSubstituteLayout { pub unsafe fn GetSubstituteKeyboardLayout(&self, rclsid: *const ::windows_core::GUID, langid: u16, guidprofile: *const ::windows_core::GUID) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetSubstituteKeyboardLayout)(::windows_core::Interface::as_raw(self), rclsid, langid, guidprofile, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITfInputProcessorProfileSubstituteLayout, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfInputProcessorProfileSubstituteLayout { - type Vtable = ITfInputProcessorProfileSubstituteLayout_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfInputProcessorProfileSubstituteLayout { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4fd67194_1002_4513_bff2_c0ddf6258552); -} #[repr(C)] #[doc(hidden)] pub struct ITfInputProcessorProfileSubstituteLayout_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetSubstituteKeyboardLayout: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rclsid: *const ::windows_core::GUID, langid: u16, guidprofile: *const ::windows_core::GUID, phkl: *mut HKL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfInputProcessorProfiles(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfInputProcessorProfiles, ITfInputProcessorProfiles_Vtbl, 0x1f02b6c5_7842_4ee6_8a0b_9a24183a95ca); +::windows_core::imp::interface_hierarchy!(ITfInputProcessorProfiles, ::windows_core::IUnknown); impl ITfInputProcessorProfiles { pub unsafe fn Register(&self, rclsid: *const ::windows_core::GUID) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Register)(::windows_core::Interface::as_raw(self), rclsid).ok() @@ -4034,13 +3297,6 @@ impl ITfInputProcessorProfiles { (::windows_core::Interface::vtable(self).SubstituteKeyboardLayout)(::windows_core::Interface::as_raw(self), rclsid, langid, guidprofile, hkl.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ITfInputProcessorProfiles, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfInputProcessorProfiles { - type Vtable = ITfInputProcessorProfiles_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfInputProcessorProfiles { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1f02b6c5_7842_4ee6_8a0b_9a24183a95ca); -} #[repr(C)] #[doc(hidden)] pub struct ITfInputProcessorProfiles_Vtbl { @@ -4067,9 +3323,8 @@ pub struct ITfInputProcessorProfiles_Vtbl { pub EnableLanguageProfileByDefault: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rclsid: *const ::windows_core::GUID, langid: u16, guidprofile: *const ::windows_core::GUID, fenable: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub SubstituteKeyboardLayout: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rclsid: *const ::windows_core::GUID, langid: u16, guidprofile: *const ::windows_core::GUID, hkl: HKL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfInputProcessorProfilesEx(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfInputProcessorProfilesEx, ITfInputProcessorProfilesEx_Vtbl, 0x892f230f_fe00_4a41_a98e_fcd6de0d35ef); +::windows_core::imp::interface_hierarchy!(ITfInputProcessorProfilesEx, ::windows_core::IUnknown, ITfInputProcessorProfiles); impl ITfInputProcessorProfilesEx { pub unsafe fn Register(&self, rclsid: *const ::windows_core::GUID) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.Register)(::windows_core::Interface::as_raw(self), rclsid).ok() @@ -4145,22 +3400,14 @@ impl ITfInputProcessorProfilesEx { (::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() } } -::windows_core::imp::interface_hierarchy!(ITfInputProcessorProfilesEx, ::windows_core::IUnknown, ITfInputProcessorProfiles); -unsafe impl ::windows_core::Interface for ITfInputProcessorProfilesEx { - type Vtable = ITfInputProcessorProfilesEx_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfInputProcessorProfilesEx { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x892f230f_fe00_4a41_a98e_fcd6de0d35ef); -} #[repr(C)] #[doc(hidden)] pub struct ITfInputProcessorProfilesEx_Vtbl { pub base__: ITfInputProcessorProfiles_Vtbl, pub SetLanguageProfileDisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rclsid: *const ::windows_core::GUID, langid: u16, guidprofile: *const ::windows_core::GUID, pchfile: ::windows_core::PCWSTR, cchfile: u32, uresid: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfInputScope(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfInputScope, ITfInputScope_Vtbl, 0xfde1eaee_6924_4cdf_91e7_da38cff5559d); +::windows_core::imp::interface_hierarchy!(ITfInputScope, ::windows_core::IUnknown); impl ITfInputScope { pub unsafe fn GetInputScopes(&self, pprginputscopes: *mut *mut InputScope, pccount: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetInputScopes)(::windows_core::Interface::as_raw(self), pprginputscopes, pccount).ok() @@ -4181,13 +3428,6 @@ impl ITfInputScope { (::windows_core::Interface::vtable(self).GetXML)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITfInputScope, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfInputScope { - type Vtable = ITfInputScope_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfInputScope { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfde1eaee_6924_4cdf_91e7_da38cff5559d); -} #[repr(C)] #[doc(hidden)] pub struct ITfInputScope_Vtbl { @@ -4198,9 +3438,8 @@ pub struct ITfInputScope_Vtbl { pub GetSRGS: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsrgs: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub GetXML: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrxml: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfInputScope2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfInputScope2, ITfInputScope2_Vtbl, 0x5731eaa0_6bc2_4681_a532_92fbb74d7c41); +::windows_core::imp::interface_hierarchy!(ITfInputScope2, ::windows_core::IUnknown, ITfInputScope); impl ITfInputScope2 { pub unsafe fn GetInputScopes(&self, pprginputscopes: *mut *mut InputScope, pccount: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.GetInputScopes)(::windows_core::Interface::as_raw(self), pprginputscopes, pccount).ok() @@ -4227,13 +3466,6 @@ impl ITfInputScope2 { (::windows_core::Interface::vtable(self).EnumWordList)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITfInputScope2, ::windows_core::IUnknown, ITfInputScope); -unsafe impl ::windows_core::Interface for ITfInputScope2 { - type Vtable = ITfInputScope2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfInputScope2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5731eaa0_6bc2_4681_a532_92fbb74d7c41); -} #[repr(C)] #[doc(hidden)] pub struct ITfInputScope2_Vtbl { @@ -4243,9 +3475,8 @@ pub struct ITfInputScope2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] EnumWordList: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfInsertAtSelection(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfInsertAtSelection, ITfInsertAtSelection_Vtbl, 0x55ce16ba_3014_41c1_9ceb_fade1446ac6c); +::windows_core::imp::interface_hierarchy!(ITfInsertAtSelection, ::windows_core::IUnknown); impl ITfInsertAtSelection { pub unsafe fn InsertTextAtSelection(&self, ec: u32, dwflags: INSERT_TEXT_AT_SELECTION_FLAGS, pchtext: &[u16]) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -4261,13 +3492,6 @@ impl ITfInsertAtSelection { (::windows_core::Interface::vtable(self).InsertEmbeddedAtSelection)(::windows_core::Interface::as_raw(self), ec, dwflags, pdataobject.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITfInsertAtSelection, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfInsertAtSelection { - type Vtable = ITfInsertAtSelection_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfInsertAtSelection { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x55ce16ba_3014_41c1_9ceb_fade1446ac6c); -} #[repr(C)] #[doc(hidden)] pub struct ITfInsertAtSelection_Vtbl { @@ -4278,9 +3502,8 @@ pub struct ITfInsertAtSelection_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] InsertEmbeddedAtSelection: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfIntegratableCandidateListUIElement(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfIntegratableCandidateListUIElement, ITfIntegratableCandidateListUIElement_Vtbl, 0xc7a6f54f_b180_416f_b2bf_7bf2e4683d7b); +::windows_core::imp::interface_hierarchy!(ITfIntegratableCandidateListUIElement, ::windows_core::IUnknown); impl ITfIntegratableCandidateListUIElement { pub unsafe fn SetIntegrationStyle(&self, guidintegrationstyle: ::windows_core::GUID) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetIntegrationStyle)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(guidintegrationstyle)).ok() @@ -4305,13 +3528,6 @@ impl ITfIntegratableCandidateListUIElement { (::windows_core::Interface::vtable(self).FinalizeExactCompositionString)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ITfIntegratableCandidateListUIElement, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfIntegratableCandidateListUIElement { - type Vtable = ITfIntegratableCandidateListUIElement_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfIntegratableCandidateListUIElement { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc7a6f54f_b180_416f_b2bf_7bf2e4683d7b); -} #[repr(C)] #[doc(hidden)] pub struct ITfIntegratableCandidateListUIElement_Vtbl { @@ -4322,9 +3538,8 @@ pub struct ITfIntegratableCandidateListUIElement_Vtbl { pub ShowCandidateNumbers: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfshow: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub FinalizeExactCompositionString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfKeyEventSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfKeyEventSink, ITfKeyEventSink_Vtbl, 0xaa80e7f5_2021_11d2_93e0_0060b067b86e); +::windows_core::imp::interface_hierarchy!(ITfKeyEventSink, ::windows_core::IUnknown); impl ITfKeyEventSink { pub unsafe fn OnSetFocus(&self, fforeground: P0) -> ::windows_core::Result<()> where @@ -4376,13 +3591,6 @@ impl ITfKeyEventSink { (::windows_core::Interface::vtable(self).OnPreservedKey)(::windows_core::Interface::as_raw(self), pic.into_param().abi(), rguid, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITfKeyEventSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfKeyEventSink { - type Vtable = ITfKeyEventSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfKeyEventSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaa80e7f5_2021_11d2_93e0_0060b067b86e); -} #[repr(C)] #[doc(hidden)] pub struct ITfKeyEventSink_Vtbl { @@ -4394,9 +3602,8 @@ pub struct ITfKeyEventSink_Vtbl { pub OnKeyUp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pic: *mut ::core::ffi::c_void, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, pfeaten: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub OnPreservedKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pic: *mut ::core::ffi::c_void, rguid: *const ::windows_core::GUID, pfeaten: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfKeyTraceEventSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfKeyTraceEventSink, ITfKeyTraceEventSink_Vtbl, 0x1cd4c13b_1c36_4191_a70a_7f3e611f367d); +::windows_core::imp::interface_hierarchy!(ITfKeyTraceEventSink, ::windows_core::IUnknown); impl ITfKeyTraceEventSink { pub unsafe fn OnKeyTraceDown(&self, wparam: P0, lparam: P1) -> ::windows_core::Result<()> where @@ -4413,13 +3620,6 @@ impl ITfKeyTraceEventSink { (::windows_core::Interface::vtable(self).OnKeyTraceUp)(::windows_core::Interface::as_raw(self), wparam.into_param().abi(), lparam.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ITfKeyTraceEventSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfKeyTraceEventSink { - type Vtable = ITfKeyTraceEventSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfKeyTraceEventSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1cd4c13b_1c36_4191_a70a_7f3e611f367d); -} #[repr(C)] #[doc(hidden)] pub struct ITfKeyTraceEventSink_Vtbl { @@ -4427,9 +3627,8 @@ pub struct ITfKeyTraceEventSink_Vtbl { pub OnKeyTraceDown: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> ::windows_core::HRESULT, pub OnKeyTraceUp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfKeystrokeMgr(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfKeystrokeMgr, ITfKeystrokeMgr_Vtbl, 0xaa80e7f0_2021_11d2_93e0_0060b067b86e); +::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 @@ -4509,13 +3708,6 @@ impl ITfKeystrokeMgr { (::windows_core::Interface::vtable(self).SimulatePreservedKey)(::windows_core::Interface::as_raw(self), pic.into_param().abi(), rguid, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITfKeystrokeMgr, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfKeystrokeMgr { - type Vtable = ITfKeystrokeMgr_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfKeystrokeMgr { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaa80e7f0_2021_11d2_93e0_0060b067b86e); -} #[repr(C)] #[doc(hidden)] pub struct ITfKeystrokeMgr_Vtbl { @@ -4535,9 +3727,8 @@ pub struct ITfKeystrokeMgr_Vtbl { pub GetPreservedKeyDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rguid: *const ::windows_core::GUID, pbstrdesc: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub SimulatePreservedKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pic: *mut ::core::ffi::c_void, rguid: *const ::windows_core::GUID, pfeaten: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfLMLattice(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfLMLattice, ITfLMLattice_Vtbl, 0xd4236675_a5bf_4570_9d42_5d6d7b02d59b); +::windows_core::imp::interface_hierarchy!(ITfLMLattice, ::windows_core::IUnknown); impl ITfLMLattice { pub unsafe fn QueryType(&self, rguidtype: *const ::windows_core::GUID) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -4548,13 +3739,6 @@ impl ITfLMLattice { (::windows_core::Interface::vtable(self).EnumLatticeElements)(::windows_core::Interface::as_raw(self), dwframestart, rguidtype, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITfLMLattice, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfLMLattice { - type Vtable = ITfLMLattice_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfLMLattice { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd4236675_a5bf_4570_9d42_5d6d7b02d59b); -} #[repr(C)] #[doc(hidden)] pub struct ITfLMLattice_Vtbl { @@ -4562,9 +3746,8 @@ pub struct ITfLMLattice_Vtbl { pub QueryType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rguidtype: *const ::windows_core::GUID, pfsupported: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub EnumLatticeElements: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwframestart: u32, rguidtype: *const ::windows_core::GUID, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfLangBarEventSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfLangBarEventSink, ITfLangBarEventSink_Vtbl, 0x18a4e900_e0ae_11d2_afdd_00105a2799b5); +::windows_core::imp::interface_hierarchy!(ITfLangBarEventSink, ::windows_core::IUnknown); impl ITfLangBarEventSink { pub unsafe fn OnSetFocus(&self, dwthreadid: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnSetFocus)(::windows_core::Interface::as_raw(self), dwthreadid).ok() @@ -4590,13 +3773,6 @@ impl ITfLangBarEventSink { (::windows_core::Interface::vtable(self).GetItemFloatingRect)(::windows_core::Interface::as_raw(self), dwthreadid, rguid, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITfLangBarEventSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfLangBarEventSink { - type Vtable = ITfLangBarEventSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfLangBarEventSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x18a4e900_e0ae_11d2_afdd_00105a2799b5); -} #[repr(C)] #[doc(hidden)] pub struct ITfLangBarEventSink_Vtbl { @@ -4608,9 +3784,8 @@ pub struct ITfLangBarEventSink_Vtbl { pub ShowFloating: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwflags: u32) -> ::windows_core::HRESULT, pub GetItemFloatingRect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwthreadid: u32, rguid: *const ::windows_core::GUID, prc: *mut super::super::Foundation::RECT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfLangBarItem(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfLangBarItem, ITfLangBarItem_Vtbl, 0x73540d69_edeb_4ee9_96c9_23aa30b25916); +::windows_core::imp::interface_hierarchy!(ITfLangBarItem, ::windows_core::IUnknown); impl ITfLangBarItem { pub unsafe fn GetInfo(&self, pinfo: *mut TF_LANGBARITEMINFO) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetInfo)(::windows_core::Interface::as_raw(self), pinfo).ok() @@ -4630,13 +3805,6 @@ impl ITfLangBarItem { (::windows_core::Interface::vtable(self).GetTooltipString)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITfLangBarItem, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfLangBarItem { - type Vtable = ITfLangBarItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfLangBarItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x73540d69_edeb_4ee9_96c9_23aa30b25916); -} #[repr(C)] #[doc(hidden)] pub struct ITfLangBarItem_Vtbl { @@ -4646,9 +3814,8 @@ pub struct ITfLangBarItem_Vtbl { pub Show: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fshow: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub GetTooltipString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtooltip: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfLangBarItemBalloon(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfLangBarItemBalloon, ITfLangBarItemBalloon_Vtbl, 0x01c2d285_d3c7_4b7b_b5b5_d97411d0c283); +::windows_core::imp::interface_hierarchy!(ITfLangBarItemBalloon, ::windows_core::IUnknown, ITfLangBarItem); impl ITfLangBarItemBalloon { pub unsafe fn GetInfo(&self, pinfo: *mut TF_LANGBARITEMINFO) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.GetInfo)(::windows_core::Interface::as_raw(self), pinfo).ok() @@ -4677,14 +3844,7 @@ impl ITfLangBarItemBalloon { pub unsafe fn GetBalloonInfo(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetBalloonInfo)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) - } -} -::windows_core::imp::interface_hierarchy!(ITfLangBarItemBalloon, ::windows_core::IUnknown, ITfLangBarItem); -unsafe impl ::windows_core::Interface for ITfLangBarItemBalloon { - type Vtable = ITfLangBarItemBalloon_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfLangBarItemBalloon { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x01c2d285_d3c7_4b7b_b5b5_d97411d0c283); + } } #[repr(C)] #[doc(hidden)] @@ -4694,9 +3854,8 @@ pub struct ITfLangBarItemBalloon_Vtbl { pub GetPreferredSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszdefault: *const super::super::Foundation::SIZE, psz: *mut super::super::Foundation::SIZE) -> ::windows_core::HRESULT, pub GetBalloonInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinfo: *mut TF_LBBALLOONINFO) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfLangBarItemBitmap(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfLangBarItemBitmap, ITfLangBarItemBitmap_Vtbl, 0x73830352_d722_4179_ada5_f045c98df355); +::windows_core::imp::interface_hierarchy!(ITfLangBarItemBitmap, ::windows_core::IUnknown, ITfLangBarItem); impl ITfLangBarItemBitmap { pub unsafe fn GetInfo(&self, pinfo: *mut TF_LANGBARITEMINFO) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.GetInfo)(::windows_core::Interface::as_raw(self), pinfo).ok() @@ -4728,13 +3887,6 @@ impl ITfLangBarItemBitmap { (::windows_core::Interface::vtable(self).DrawBitmap)(::windows_core::Interface::as_raw(self), bmwidth, bmheight, dwflags, phbmp, phbmpmask).ok() } } -::windows_core::imp::interface_hierarchy!(ITfLangBarItemBitmap, ::windows_core::IUnknown, ITfLangBarItem); -unsafe impl ::windows_core::Interface for ITfLangBarItemBitmap { - type Vtable = ITfLangBarItemBitmap_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfLangBarItemBitmap { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x73830352_d722_4179_ada5_f045c98df355); -} #[repr(C)] #[doc(hidden)] pub struct ITfLangBarItemBitmap_Vtbl { @@ -4746,9 +3898,8 @@ pub struct ITfLangBarItemBitmap_Vtbl { #[cfg(not(feature = "Win32_Graphics_Gdi"))] DrawBitmap: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfLangBarItemBitmapButton(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfLangBarItemBitmapButton, ITfLangBarItemBitmapButton_Vtbl, 0xa26a0525_3fae_4fa0_89ee_88a964f9f1b5); +::windows_core::imp::interface_hierarchy!(ITfLangBarItemBitmapButton, ::windows_core::IUnknown, ITfLangBarItem); impl ITfLangBarItemBitmapButton { pub unsafe fn GetInfo(&self, pinfo: *mut TF_LANGBARITEMINFO) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.GetInfo)(::windows_core::Interface::as_raw(self), pinfo).ok() @@ -4793,13 +3944,6 @@ impl ITfLangBarItemBitmapButton { (::windows_core::Interface::vtable(self).GetText)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITfLangBarItemBitmapButton, ::windows_core::IUnknown, ITfLangBarItem); -unsafe impl ::windows_core::Interface for ITfLangBarItemBitmapButton { - type Vtable = ITfLangBarItemBitmapButton_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfLangBarItemBitmapButton { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa26a0525_3fae_4fa0_89ee_88a964f9f1b5); -} #[repr(C)] #[doc(hidden)] pub struct ITfLangBarItemBitmapButton_Vtbl { @@ -4814,9 +3958,8 @@ pub struct ITfLangBarItemBitmapButton_Vtbl { DrawBitmap: usize, pub GetText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtext: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfLangBarItemButton(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfLangBarItemButton, ITfLangBarItemButton_Vtbl, 0x28c7f1d0_de25_11d2_afdd_00105a2799b5); +::windows_core::imp::interface_hierarchy!(ITfLangBarItemButton, ::windows_core::IUnknown, ITfLangBarItem); impl ITfLangBarItemButton { pub unsafe fn GetInfo(&self, pinfo: *mut TF_LANGBARITEMINFO) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.GetInfo)(::windows_core::Interface::as_raw(self), pinfo).ok() @@ -4858,13 +4001,6 @@ impl ITfLangBarItemButton { (::windows_core::Interface::vtable(self).GetText)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITfLangBarItemButton, ::windows_core::IUnknown, ITfLangBarItem); -unsafe impl ::windows_core::Interface for ITfLangBarItemButton { - type Vtable = ITfLangBarItemButton_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfLangBarItemButton { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x28c7f1d0_de25_11d2_afdd_00105a2799b5); -} #[repr(C)] #[doc(hidden)] pub struct ITfLangBarItemButton_Vtbl { @@ -4878,9 +4014,8 @@ pub struct ITfLangBarItemButton_Vtbl { GetIcon: usize, pub GetText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtext: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfLangBarItemMgr(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfLangBarItemMgr, ITfLangBarItemMgr_Vtbl, 0xba468c55_9956_4fb1_a59d_52a7dd7cc6aa); +::windows_core::imp::interface_hierarchy!(ITfLangBarItemMgr, ::windows_core::IUnknown); impl ITfLangBarItemMgr { pub unsafe fn EnumItems(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -4932,13 +4067,6 @@ impl ITfLangBarItemMgr { (::windows_core::Interface::vtable(self).UnadviseItemsSink)(::windows_core::Interface::as_raw(self), pdwcookie.len().try_into().unwrap(), ::core::mem::transmute(pdwcookie.as_ptr())).ok() } } -::windows_core::imp::interface_hierarchy!(ITfLangBarItemMgr, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfLangBarItemMgr { - type Vtable = ITfLangBarItemMgr_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfLangBarItemMgr { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xba468c55_9956_4fb1_a59d_52a7dd7cc6aa); -} #[repr(C)] #[doc(hidden)] pub struct ITfLangBarItemMgr_Vtbl { @@ -4956,30 +4084,21 @@ pub struct ITfLangBarItemMgr_Vtbl { pub AdviseItemsSink: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulcount: u32, ppunk: *const *mut ::core::ffi::c_void, pguiditem: *const ::windows_core::GUID, pdwcookie: *mut u32) -> ::windows_core::HRESULT, pub UnadviseItemsSink: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulcount: u32, pdwcookie: *const u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfLangBarItemSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfLangBarItemSink, ITfLangBarItemSink_Vtbl, 0x57dbe1a0_de25_11d2_afdd_00105a2799b5); +::windows_core::imp::interface_hierarchy!(ITfLangBarItemSink, ::windows_core::IUnknown); impl ITfLangBarItemSink { pub unsafe fn OnUpdate(&self, dwflags: u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnUpdate)(::windows_core::Interface::as_raw(self), dwflags).ok() } } -::windows_core::imp::interface_hierarchy!(ITfLangBarItemSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfLangBarItemSink { - type Vtable = ITfLangBarItemSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfLangBarItemSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x57dbe1a0_de25_11d2_afdd_00105a2799b5); -} #[repr(C)] #[doc(hidden)] pub struct ITfLangBarItemSink_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnUpdate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwflags: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfLangBarMgr(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfLangBarMgr, ITfLangBarMgr_Vtbl, 0x87955690_e627_11d2_8ddb_00105a2799b5); +::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 @@ -5021,13 +4140,6 @@ impl ITfLangBarMgr { (::windows_core::Interface::vtable(self).GetShowFloatingStatus)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITfLangBarMgr, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfLangBarMgr { - type Vtable = ITfLangBarMgr_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfLangBarMgr { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x87955690_e627_11d2_8ddb_00105a2799b5); -} #[repr(C)] #[doc(hidden)] pub struct ITfLangBarMgr_Vtbl { @@ -5042,9 +4154,8 @@ pub struct ITfLangBarMgr_Vtbl { pub ShowFloating: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwflags: u32) -> ::windows_core::HRESULT, pub GetShowFloatingStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwflags: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfLanguageProfileNotifySink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfLanguageProfileNotifySink, ITfLanguageProfileNotifySink_Vtbl, 0x43c9fe15_f494_4c17_9de2_b8a4ac350aa8); +::windows_core::imp::interface_hierarchy!(ITfLanguageProfileNotifySink, ::windows_core::IUnknown); impl ITfLanguageProfileNotifySink { pub unsafe fn OnLanguageChange(&self, langid: u16) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -5054,13 +4165,6 @@ impl ITfLanguageProfileNotifySink { (::windows_core::Interface::vtable(self).OnLanguageChanged)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ITfLanguageProfileNotifySink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfLanguageProfileNotifySink { - type Vtable = ITfLanguageProfileNotifySink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfLanguageProfileNotifySink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x43c9fe15_f494_4c17_9de2_b8a4ac350aa8); -} #[repr(C)] #[doc(hidden)] pub struct ITfLanguageProfileNotifySink_Vtbl { @@ -5068,9 +4172,8 @@ pub struct ITfLanguageProfileNotifySink_Vtbl { pub OnLanguageChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, langid: u16, pfaccept: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub OnLanguageChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfMSAAControl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfMSAAControl, ITfMSAAControl_Vtbl, 0xb5f8fb3b_393f_4f7c_84cb_504924c2705a); +::windows_core::imp::interface_hierarchy!(ITfMSAAControl, ::windows_core::IUnknown); impl ITfMSAAControl { pub unsafe fn SystemEnableMSAA(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SystemEnableMSAA)(::windows_core::Interface::as_raw(self)).ok() @@ -5079,13 +4182,6 @@ impl ITfMSAAControl { (::windows_core::Interface::vtable(self).SystemDisableMSAA)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ITfMSAAControl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfMSAAControl { - type Vtable = ITfMSAAControl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfMSAAControl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb5f8fb3b_393f_4f7c_84cb_504924c2705a); -} #[repr(C)] #[doc(hidden)] pub struct ITfMSAAControl_Vtbl { @@ -5093,9 +4189,8 @@ pub struct ITfMSAAControl_Vtbl { pub SystemEnableMSAA: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SystemDisableMSAA: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfMenu(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfMenu, ITfMenu_Vtbl, 0x6f8a98e4_aaa0_4f15_8c5b_07e0df0a3dd8); +::windows_core::imp::interface_hierarchy!(ITfMenu, ::windows_core::IUnknown); impl ITfMenu { #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] #[cfg(feature = "Win32_Graphics_Gdi")] @@ -5107,13 +4202,6 @@ impl ITfMenu { (::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::imp::interface_hierarchy!(ITfMenu, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfMenu { - type Vtable = ITfMenu_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfMenu { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6f8a98e4_aaa0_4f15_8c5b_07e0df0a3dd8); -} #[repr(C)] #[doc(hidden)] pub struct ITfMenu_Vtbl { @@ -5123,9 +4211,8 @@ pub struct ITfMenu_Vtbl { #[cfg(not(feature = "Win32_Graphics_Gdi"))] AddMenuItem: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfMessagePump(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfMessagePump, ITfMessagePump_Vtbl, 0x8f1b8ad8_0b6b_4874_90c5_bd76011e8f7c); +::windows_core::imp::interface_hierarchy!(ITfMessagePump, ::windows_core::IUnknown); impl ITfMessagePump { #[doc = "Required features: `\"Win32_UI_WindowsAndMessaging\"`"] #[cfg(feature = "Win32_UI_WindowsAndMessaging")] @@ -5160,13 +4247,6 @@ impl ITfMessagePump { (::windows_core::Interface::vtable(self).GetMessageW)(::windows_core::Interface::as_raw(self), pmsg, hwnd.into_param().abi(), wmsgfiltermin, wmsgfiltermax, pfresult).ok() } } -::windows_core::imp::interface_hierarchy!(ITfMessagePump, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfMessagePump { - type Vtable = ITfMessagePump_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfMessagePump { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8f1b8ad8_0b6b_4874_90c5_bd76011e8f7c); -} #[repr(C)] #[doc(hidden)] pub struct ITfMessagePump_Vtbl { @@ -5188,31 +4268,22 @@ pub struct ITfMessagePump_Vtbl { #[cfg(not(feature = "Win32_UI_WindowsAndMessaging"))] GetMessageW: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfMouseSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfMouseSink, ITfMouseSink_Vtbl, 0xa1adaaa2_3a24_449d_ac96_5183e7f5c217); +::windows_core::imp::interface_hierarchy!(ITfMouseSink, ::windows_core::IUnknown); impl ITfMouseSink { pub unsafe fn OnMouseEvent(&self, uedge: u32, uquadrant: u32, dwbtnstatus: u32) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).OnMouseEvent)(::windows_core::Interface::as_raw(self), uedge, uquadrant, dwbtnstatus, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITfMouseSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfMouseSink { - type Vtable = ITfMouseSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfMouseSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa1adaaa2_3a24_449d_ac96_5183e7f5c217); -} #[repr(C)] #[doc(hidden)] pub struct ITfMouseSink_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnMouseEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uedge: u32, uquadrant: u32, dwbtnstatus: u32, pfeaten: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfMouseTracker(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfMouseTracker, ITfMouseTracker_Vtbl, 0x09d146cd_a544_4132_925b_7afa8ef322d0); +::windows_core::imp::interface_hierarchy!(ITfMouseTracker, ::windows_core::IUnknown); impl ITfMouseTracker { pub unsafe fn AdviseMouseSink(&self, range: P0, psink: P1) -> ::windows_core::Result where @@ -5226,13 +4297,6 @@ impl ITfMouseTracker { (::windows_core::Interface::vtable(self).UnadviseMouseSink)(::windows_core::Interface::as_raw(self), dwcookie).ok() } } -::windows_core::imp::interface_hierarchy!(ITfMouseTracker, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfMouseTracker { - type Vtable = ITfMouseTracker_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfMouseTracker { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x09d146cd_a544_4132_925b_7afa8ef322d0); -} #[repr(C)] #[doc(hidden)] pub struct ITfMouseTracker_Vtbl { @@ -5240,9 +4304,8 @@ pub struct ITfMouseTracker_Vtbl { pub AdviseMouseSink: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, range: *mut ::core::ffi::c_void, psink: *mut ::core::ffi::c_void, pdwcookie: *mut u32) -> ::windows_core::HRESULT, pub UnadviseMouseSink: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwcookie: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfMouseTrackerACP(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfMouseTrackerACP, ITfMouseTrackerACP_Vtbl, 0x3bdd78e2_c16e_47fd_b883_ce6facc1a208); +::windows_core::imp::interface_hierarchy!(ITfMouseTrackerACP, ::windows_core::IUnknown); impl ITfMouseTrackerACP { pub unsafe fn AdviseMouseSink(&self, range: P0, psink: P1) -> ::windows_core::Result where @@ -5256,13 +4319,6 @@ impl ITfMouseTrackerACP { (::windows_core::Interface::vtable(self).UnadviseMouseSink)(::windows_core::Interface::as_raw(self), dwcookie).ok() } } -::windows_core::imp::interface_hierarchy!(ITfMouseTrackerACP, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfMouseTrackerACP { - type Vtable = ITfMouseTrackerACP_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfMouseTrackerACP { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3bdd78e2_c16e_47fd_b883_ce6facc1a208); -} #[repr(C)] #[doc(hidden)] pub struct ITfMouseTrackerACP_Vtbl { @@ -5270,9 +4326,8 @@ pub struct ITfMouseTrackerACP_Vtbl { pub AdviseMouseSink: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, range: *mut ::core::ffi::c_void, psink: *mut ::core::ffi::c_void, pdwcookie: *mut u32) -> ::windows_core::HRESULT, pub UnadviseMouseSink: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwcookie: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfPersistentPropertyLoaderACP(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfPersistentPropertyLoaderACP, ITfPersistentPropertyLoaderACP_Vtbl, 0x4ef89150_0807_11d3_8df0_00105a2799b5); +::windows_core::imp::interface_hierarchy!(ITfPersistentPropertyLoaderACP, ::windows_core::IUnknown); impl ITfPersistentPropertyLoaderACP { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -5281,13 +4336,6 @@ impl ITfPersistentPropertyLoaderACP { (::windows_core::Interface::vtable(self).LoadProperty)(::windows_core::Interface::as_raw(self), phdr, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITfPersistentPropertyLoaderACP, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfPersistentPropertyLoaderACP { - type Vtable = ITfPersistentPropertyLoaderACP_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfPersistentPropertyLoaderACP { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4ef89150_0807_11d3_8df0_00105a2799b5); -} #[repr(C)] #[doc(hidden)] pub struct ITfPersistentPropertyLoaderACP_Vtbl { @@ -5297,30 +4345,21 @@ pub struct ITfPersistentPropertyLoaderACP_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] LoadProperty: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfPreservedKeyNotifySink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfPreservedKeyNotifySink, ITfPreservedKeyNotifySink_Vtbl, 0x6f77c993_d2b1_446e_853e_5912efc8a286); +::windows_core::imp::interface_hierarchy!(ITfPreservedKeyNotifySink, ::windows_core::IUnknown); impl ITfPreservedKeyNotifySink { pub unsafe fn OnUpdated(&self, pprekey: *const TF_PRESERVEDKEY) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnUpdated)(::windows_core::Interface::as_raw(self), pprekey).ok() } } -::windows_core::imp::interface_hierarchy!(ITfPreservedKeyNotifySink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfPreservedKeyNotifySink { - type Vtable = ITfPreservedKeyNotifySink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfPreservedKeyNotifySink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6f77c993_d2b1_446e_853e_5912efc8a286); -} #[repr(C)] #[doc(hidden)] pub struct ITfPreservedKeyNotifySink_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnUpdated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pprekey: *const TF_PRESERVEDKEY) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfProperty(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfProperty, ITfProperty_Vtbl, 0xe2449660_9542_11d2_bf46_00105a2799b5); +::windows_core::imp::interface_hierarchy!(ITfProperty, ::windows_core::IUnknown, ITfReadOnlyProperty); impl ITfProperty { pub unsafe fn GetType(&self) -> ::windows_core::Result<::windows_core::GUID> { let mut result__ = ::std::mem::zeroed(); @@ -5373,13 +4412,6 @@ impl ITfProperty { (::windows_core::Interface::vtable(self).Clear)(::windows_core::Interface::as_raw(self), ec, prange.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ITfProperty, ::windows_core::IUnknown, ITfReadOnlyProperty); -unsafe impl ::windows_core::Interface for ITfProperty { - type Vtable = ITfProperty_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfProperty { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe2449660_9542_11d2_bf46_00105a2799b5); -} #[repr(C)] #[doc(hidden)] pub struct ITfProperty_Vtbl { @@ -5392,9 +4424,8 @@ pub struct ITfProperty_Vtbl { SetValue: usize, pub Clear: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ec: u32, prange: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfPropertyStore(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfPropertyStore, ITfPropertyStore_Vtbl, 0x6834b120_88cb_11d2_bf45_00105a2799b5); +::windows_core::imp::interface_hierarchy!(ITfPropertyStore, ::windows_core::IUnknown); impl ITfPropertyStore { pub unsafe fn GetType(&self) -> ::windows_core::Result<::windows_core::GUID> { let mut result__ = ::std::mem::zeroed(); @@ -5450,13 +4481,6 @@ impl ITfPropertyStore { (::windows_core::Interface::vtable(self).Serialize)(::windows_core::Interface::as_raw(self), pstream.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITfPropertyStore, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfPropertyStore { - type Vtable = ITfPropertyStore_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfPropertyStore { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6834b120_88cb_11d2_bf45_00105a2799b5); -} #[repr(C)] #[doc(hidden)] pub struct ITfPropertyStore_Vtbl { @@ -5477,9 +4501,8 @@ pub struct ITfPropertyStore_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Serialize: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfQueryEmbedded(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfQueryEmbedded, ITfQueryEmbedded_Vtbl, 0x0fab9bdb_d250_4169_84e5_6be118fdd7a8); +::windows_core::imp::interface_hierarchy!(ITfQueryEmbedded, ::windows_core::IUnknown); impl ITfQueryEmbedded { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -5488,13 +4511,6 @@ impl ITfQueryEmbedded { (::windows_core::Interface::vtable(self).QueryInsertEmbedded)(::windows_core::Interface::as_raw(self), pguidservice, pformatetc, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITfQueryEmbedded, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfQueryEmbedded { - type Vtable = ITfQueryEmbedded_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfQueryEmbedded { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0fab9bdb_d250_4169_84e5_6be118fdd7a8); -} #[repr(C)] #[doc(hidden)] pub struct ITfQueryEmbedded_Vtbl { @@ -5504,9 +4520,8 @@ pub struct ITfQueryEmbedded_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] QueryInsertEmbedded: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfRange(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfRange, ITfRange_Vtbl, 0xaa80e7ff_2021_11d2_93e0_0060b067b86e); +::windows_core::imp::interface_hierarchy!(ITfRange, ::windows_core::IUnknown); impl ITfRange { pub unsafe fn GetText(&self, ec: u32, dwflags: u32, pchtext: &mut [u16], pcch: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetText)(::windows_core::Interface::as_raw(self), ec, dwflags, ::core::mem::transmute(pchtext.as_ptr()), pchtext.len().try_into().unwrap(), pcch).ok() @@ -5612,13 +4627,6 @@ impl ITfRange { (::windows_core::Interface::vtable(self).GetContext)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITfRange, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfRange { - type Vtable = ITfRange_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfRange { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaa80e7ff_2021_11d2_93e0_0060b067b86e); -} #[repr(C)] #[doc(hidden)] pub struct ITfRange_Vtbl { @@ -5652,9 +4660,8 @@ pub struct ITfRange_Vtbl { pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppclone: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppcontext: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfRangeACP(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfRangeACP, ITfRangeACP_Vtbl, 0x057a6296_029b_4154_b79a_0d461d4ea94c); +::windows_core::imp::interface_hierarchy!(ITfRangeACP, ::windows_core::IUnknown, ITfRange); impl ITfRangeACP { pub unsafe fn GetText(&self, ec: u32, dwflags: u32, pchtext: &mut [u16], pcch: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).base__.GetText)(::windows_core::Interface::as_raw(self), ec, dwflags, ::core::mem::transmute(pchtext.as_ptr()), pchtext.len().try_into().unwrap(), pcch).ok() @@ -5766,13 +4773,6 @@ impl ITfRangeACP { (::windows_core::Interface::vtable(self).SetExtent)(::windows_core::Interface::as_raw(self), acpanchor, cch).ok() } } -::windows_core::imp::interface_hierarchy!(ITfRangeACP, ::windows_core::IUnknown, ITfRange); -unsafe impl ::windows_core::Interface for ITfRangeACP { - type Vtable = ITfRangeACP_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfRangeACP { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x057a6296_029b_4154_b79a_0d461d4ea94c); -} #[repr(C)] #[doc(hidden)] pub struct ITfRangeACP_Vtbl { @@ -5780,9 +4780,8 @@ pub struct ITfRangeACP_Vtbl { pub GetExtent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pacpanchor: *mut i32, pcch: *mut i32) -> ::windows_core::HRESULT, pub SetExtent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, acpanchor: i32, cch: i32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfRangeBackup(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfRangeBackup, ITfRangeBackup_Vtbl, 0x463a506d_6992_49d2_9b88_93d55e70bb16); +::windows_core::imp::interface_hierarchy!(ITfRangeBackup, ::windows_core::IUnknown); impl ITfRangeBackup { pub unsafe fn Restore(&self, ec: u32, prange: P0) -> ::windows_core::Result<()> where @@ -5791,22 +4790,14 @@ impl ITfRangeBackup { (::windows_core::Interface::vtable(self).Restore)(::windows_core::Interface::as_raw(self), ec, prange.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ITfRangeBackup, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfRangeBackup { - type Vtable = ITfRangeBackup_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfRangeBackup { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x463a506d_6992_49d2_9b88_93d55e70bb16); -} #[repr(C)] #[doc(hidden)] pub struct ITfRangeBackup_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Restore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ec: u32, prange: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfReadOnlyProperty(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfReadOnlyProperty, ITfReadOnlyProperty_Vtbl, 0x17d49a3d_f8b8_4b2f_b254_52319dd64c53); +::windows_core::imp::interface_hierarchy!(ITfReadOnlyProperty, ::windows_core::IUnknown); impl ITfReadOnlyProperty { pub unsafe fn GetType(&self) -> ::windows_core::Result<::windows_core::GUID> { let mut result__ = ::std::mem::zeroed(); @@ -5832,13 +4823,6 @@ impl ITfReadOnlyProperty { (::windows_core::Interface::vtable(self).GetContext)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITfReadOnlyProperty, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfReadOnlyProperty { - type Vtable = ITfReadOnlyProperty_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfReadOnlyProperty { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x17d49a3d_f8b8_4b2f_b254_52319dd64c53); -} #[repr(C)] #[doc(hidden)] pub struct ITfReadOnlyProperty_Vtbl { @@ -5851,9 +4835,8 @@ pub struct ITfReadOnlyProperty_Vtbl { GetValue: usize, pub GetContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppcontext: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfReadingInformationUIElement(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfReadingInformationUIElement, ITfReadingInformationUIElement_Vtbl, 0xea1ea139_19df_11d7_a6d2_00065b84435c); +::windows_core::imp::interface_hierarchy!(ITfReadingInformationUIElement, ::windows_core::IUnknown, ITfUIElement); impl ITfReadingInformationUIElement { pub unsafe fn GetDescription(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -5898,13 +4881,6 @@ impl ITfReadingInformationUIElement { (::windows_core::Interface::vtable(self).IsVerticalOrderPreferred)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITfReadingInformationUIElement, ::windows_core::IUnknown, ITfUIElement); -unsafe impl ::windows_core::Interface for ITfReadingInformationUIElement { - type Vtable = ITfReadingInformationUIElement_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfReadingInformationUIElement { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xea1ea139_19df_11d7_a6d2_00065b84435c); -} #[repr(C)] #[doc(hidden)] pub struct ITfReadingInformationUIElement_Vtbl { @@ -5916,9 +4892,8 @@ pub struct ITfReadingInformationUIElement_Vtbl { pub GetErrorIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, perrorindex: *mut u32) -> ::windows_core::HRESULT, pub IsVerticalOrderPreferred: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfvertical: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfReverseConversion(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfReverseConversion, ITfReverseConversion_Vtbl, 0xa415e162_157d_417d_8a8c_0ab26c7d2781); +::windows_core::imp::interface_hierarchy!(ITfReverseConversion, ::windows_core::IUnknown); impl ITfReverseConversion { pub unsafe fn DoReverseConversion(&self, lpstr: P0) -> ::windows_core::Result where @@ -5928,22 +4903,14 @@ impl ITfReverseConversion { (::windows_core::Interface::vtable(self).DoReverseConversion)(::windows_core::Interface::as_raw(self), lpstr.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITfReverseConversion, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfReverseConversion { - type Vtable = ITfReverseConversion_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfReverseConversion { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa415e162_157d_417d_8a8c_0ab26c7d2781); -} #[repr(C)] #[doc(hidden)] pub struct ITfReverseConversion_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub DoReverseConversion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpstr: ::windows_core::PCWSTR, pplist: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfReverseConversionList(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfReverseConversionList, ITfReverseConversionList_Vtbl, 0x151d69f0_86f4_4674_b721_56911e797f47); +::windows_core::imp::interface_hierarchy!(ITfReverseConversionList, ::windows_core::IUnknown); impl ITfReverseConversionList { pub unsafe fn GetLength(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -5954,13 +4921,6 @@ impl ITfReverseConversionList { (::windows_core::Interface::vtable(self).GetString)(::windows_core::Interface::as_raw(self), uindex, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITfReverseConversionList, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfReverseConversionList { - type Vtable = ITfReverseConversionList_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfReverseConversionList { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x151d69f0_86f4_4674_b721_56911e797f47); -} #[repr(C)] #[doc(hidden)] pub struct ITfReverseConversionList_Vtbl { @@ -5968,31 +4928,22 @@ pub struct ITfReverseConversionList_Vtbl { pub GetLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, puindex: *mut u32) -> ::windows_core::HRESULT, pub GetString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uindex: u32, pbstr: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfReverseConversionMgr(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfReverseConversionMgr, ITfReverseConversionMgr_Vtbl, 0xb643c236_c493_41b6_abb3_692412775cc4); +::windows_core::imp::interface_hierarchy!(ITfReverseConversionMgr, ::windows_core::IUnknown); impl ITfReverseConversionMgr { pub unsafe fn GetReverseConversion(&self, langid: u16, guidprofile: *const ::windows_core::GUID, dwflag: u32) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetReverseConversion)(::windows_core::Interface::as_raw(self), langid, guidprofile, dwflag, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITfReverseConversionMgr, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfReverseConversionMgr { - type Vtable = ITfReverseConversionMgr_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfReverseConversionMgr { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb643c236_c493_41b6_abb3_692412775cc4); -} #[repr(C)] #[doc(hidden)] pub struct ITfReverseConversionMgr_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetReverseConversion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, langid: u16, guidprofile: *const ::windows_core::GUID, dwflag: u32, ppreverseconversion: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfSource(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfSource, ITfSource_Vtbl, 0x4ea48a35_60ae_446f_8fd6_e6a8d82459f7); +::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 @@ -6005,13 +4956,6 @@ impl ITfSource { (::windows_core::Interface::vtable(self).UnadviseSink)(::windows_core::Interface::as_raw(self), dwcookie).ok() } } -::windows_core::imp::interface_hierarchy!(ITfSource, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfSource { - type Vtable = ITfSource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfSource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4ea48a35_60ae_446f_8fd6_e6a8d82459f7); -} #[repr(C)] #[doc(hidden)] pub struct ITfSource_Vtbl { @@ -6019,9 +4963,8 @@ pub struct ITfSource_Vtbl { pub AdviseSink: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, punk: *mut ::core::ffi::c_void, pdwcookie: *mut u32) -> ::windows_core::HRESULT, pub UnadviseSink: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwcookie: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfSourceSingle(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfSourceSingle, ITfSourceSingle_Vtbl, 0x73131f9c_56a9_49dd_b0ee_d046633f7528); +::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 @@ -6033,13 +4976,6 @@ impl ITfSourceSingle { (::windows_core::Interface::vtable(self).UnadviseSingleSink)(::windows_core::Interface::as_raw(self), tid, riid).ok() } } -::windows_core::imp::interface_hierarchy!(ITfSourceSingle, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfSourceSingle { - type Vtable = ITfSourceSingle_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfSourceSingle { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x73131f9c_56a9_49dd_b0ee_d046633f7528); -} #[repr(C)] #[doc(hidden)] pub struct ITfSourceSingle_Vtbl { @@ -6047,9 +4983,8 @@ pub struct ITfSourceSingle_Vtbl { pub AdviseSingleSink: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, tid: u32, riid: *const ::windows_core::GUID, punk: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub UnadviseSingleSink: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, tid: u32, riid: *const ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfSpeechUIServer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfSpeechUIServer, ITfSpeechUIServer_Vtbl, 0x90e9a944_9244_489f_a78f_de67afc013a7); +::windows_core::imp::interface_hierarchy!(ITfSpeechUIServer, ::windows_core::IUnknown); impl ITfSpeechUIServer { pub unsafe fn Initialize(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Initialize)(::windows_core::Interface::as_raw(self)).ok() @@ -6064,13 +4999,6 @@ impl ITfSpeechUIServer { (::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() } } -::windows_core::imp::interface_hierarchy!(ITfSpeechUIServer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfSpeechUIServer { - type Vtable = ITfSpeechUIServer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfSpeechUIServer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x90e9a944_9244_489f_a78f_de67afc013a7); -} #[repr(C)] #[doc(hidden)] pub struct ITfSpeechUIServer_Vtbl { @@ -6079,9 +5007,8 @@ pub struct ITfSpeechUIServer_Vtbl { pub ShowUI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fshow: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub UpdateBalloon: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, style: TfLBBalloonStyle, pch: ::windows_core::PCWSTR, cch: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfStatusSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfStatusSink, ITfStatusSink_Vtbl, 0x6b7d8d73_b267_4f69_b32e_1ca321ce4f45); +::windows_core::imp::interface_hierarchy!(ITfStatusSink, ::windows_core::IUnknown); impl ITfStatusSink { pub unsafe fn OnStatusChange(&self, pic: P0, dwflags: u32) -> ::windows_core::Result<()> where @@ -6090,22 +5017,14 @@ impl ITfStatusSink { (::windows_core::Interface::vtable(self).OnStatusChange)(::windows_core::Interface::as_raw(self), pic.into_param().abi(), dwflags).ok() } } -::windows_core::imp::interface_hierarchy!(ITfStatusSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfStatusSink { - type Vtable = ITfStatusSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfStatusSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6b7d8d73_b267_4f69_b32e_1ca321ce4f45); -} #[repr(C)] #[doc(hidden)] pub struct ITfStatusSink_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnStatusChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pic: *mut ::core::ffi::c_void, dwflags: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfSystemDeviceTypeLangBarItem(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfSystemDeviceTypeLangBarItem, ITfSystemDeviceTypeLangBarItem_Vtbl, 0x45672eb9_9059_46a2_838d_4530355f6a77); +::windows_core::imp::interface_hierarchy!(ITfSystemDeviceTypeLangBarItem, ::windows_core::IUnknown); impl ITfSystemDeviceTypeLangBarItem { pub unsafe fn SetIconMode(&self, dwflags: LANG_BAR_ITEM_ICON_MODE_FLAGS) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetIconMode)(::windows_core::Interface::as_raw(self), dwflags).ok() @@ -6115,13 +5034,6 @@ impl ITfSystemDeviceTypeLangBarItem { (::windows_core::Interface::vtable(self).GetIconMode)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITfSystemDeviceTypeLangBarItem, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfSystemDeviceTypeLangBarItem { - type Vtable = ITfSystemDeviceTypeLangBarItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfSystemDeviceTypeLangBarItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x45672eb9_9059_46a2_838d_4530355f6a77); -} #[repr(C)] #[doc(hidden)] pub struct ITfSystemDeviceTypeLangBarItem_Vtbl { @@ -6129,9 +5041,8 @@ pub struct ITfSystemDeviceTypeLangBarItem_Vtbl { pub SetIconMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwflags: LANG_BAR_ITEM_ICON_MODE_FLAGS) -> ::windows_core::HRESULT, pub GetIconMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwflags: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfSystemLangBarItem(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfSystemLangBarItem, ITfSystemLangBarItem_Vtbl, 0x1e13e9ec_6b33_4d4a_b5eb_8a92f029f356); +::windows_core::imp::interface_hierarchy!(ITfSystemLangBarItem, ::windows_core::IUnknown); impl ITfSystemLangBarItem { #[doc = "Required features: `\"Win32_UI_WindowsAndMessaging\"`"] #[cfg(feature = "Win32_UI_WindowsAndMessaging")] @@ -6145,13 +5056,6 @@ impl ITfSystemLangBarItem { (::windows_core::Interface::vtable(self).SetTooltipString)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pchtooltip.as_ptr()), pchtooltip.len().try_into().unwrap()).ok() } } -::windows_core::imp::interface_hierarchy!(ITfSystemLangBarItem, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfSystemLangBarItem { - type Vtable = ITfSystemLangBarItem_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfSystemLangBarItem { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1e13e9ec_6b33_4d4a_b5eb_8a92f029f356); -} #[repr(C)] #[doc(hidden)] pub struct ITfSystemLangBarItem_Vtbl { @@ -6162,9 +5066,8 @@ pub struct ITfSystemLangBarItem_Vtbl { SetIcon: usize, pub SetTooltipString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pchtooltip: ::windows_core::PCWSTR, cch: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfSystemLangBarItemSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfSystemLangBarItemSink, ITfSystemLangBarItemSink_Vtbl, 0x1449d9ab_13cf_4687_aa3e_8d8b18574396); +::windows_core::imp::interface_hierarchy!(ITfSystemLangBarItemSink, ::windows_core::IUnknown); impl ITfSystemLangBarItemSink { pub unsafe fn InitMenu(&self, pmenu: P0) -> ::windows_core::Result<()> where @@ -6176,13 +5079,6 @@ impl ITfSystemLangBarItemSink { (::windows_core::Interface::vtable(self).OnMenuSelect)(::windows_core::Interface::as_raw(self), wid).ok() } } -::windows_core::imp::interface_hierarchy!(ITfSystemLangBarItemSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfSystemLangBarItemSink { - type Vtable = ITfSystemLangBarItemSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfSystemLangBarItemSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1449d9ab_13cf_4687_aa3e_8d8b18574396); -} #[repr(C)] #[doc(hidden)] pub struct ITfSystemLangBarItemSink_Vtbl { @@ -6190,9 +5086,8 @@ pub struct ITfSystemLangBarItemSink_Vtbl { pub InitMenu: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pmenu: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub OnMenuSelect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wid: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfSystemLangBarItemText(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfSystemLangBarItemText, ITfSystemLangBarItemText_Vtbl, 0x5c4ce0e5_ba49_4b52_ac6b_3b397b4f701f); +::windows_core::imp::interface_hierarchy!(ITfSystemLangBarItemText, ::windows_core::IUnknown); impl ITfSystemLangBarItemText { pub unsafe fn SetItemText(&self, pch: &[u16]) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetItemText)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pch.as_ptr()), pch.len().try_into().unwrap()).ok() @@ -6202,13 +5097,6 @@ impl ITfSystemLangBarItemText { (::windows_core::Interface::vtable(self).GetItemText)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITfSystemLangBarItemText, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfSystemLangBarItemText { - type Vtable = ITfSystemLangBarItemText_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfSystemLangBarItemText { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5c4ce0e5_ba49_4b52_ac6b_3b397b4f701f); -} #[repr(C)] #[doc(hidden)] pub struct ITfSystemLangBarItemText_Vtbl { @@ -6216,9 +5104,8 @@ pub struct ITfSystemLangBarItemText_Vtbl { pub SetItemText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pch: ::windows_core::PCWSTR, cch: u32) -> ::windows_core::HRESULT, pub GetItemText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtext: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfTextEditSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfTextEditSink, ITfTextEditSink_Vtbl, 0x8127d409_ccd3_4683_967a_b43d5b482bf7); +::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 @@ -6228,22 +5115,14 @@ impl ITfTextEditSink { (::windows_core::Interface::vtable(self).OnEndEdit)(::windows_core::Interface::as_raw(self), pic.into_param().abi(), ecreadonly, peditrecord.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ITfTextEditSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfTextEditSink { - type Vtable = ITfTextEditSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfTextEditSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8127d409_ccd3_4683_967a_b43d5b482bf7); -} #[repr(C)] #[doc(hidden)] pub struct ITfTextEditSink_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnEndEdit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pic: *mut ::core::ffi::c_void, ecreadonly: u32, peditrecord: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfTextInputProcessor(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfTextInputProcessor, ITfTextInputProcessor_Vtbl, 0xaa80e7f7_2021_11d2_93e0_0060b067b86e); +::windows_core::imp::interface_hierarchy!(ITfTextInputProcessor, ::windows_core::IUnknown); impl ITfTextInputProcessor { pub unsafe fn Activate(&self, ptim: P0, tid: u32) -> ::windows_core::Result<()> where @@ -6255,13 +5134,6 @@ impl ITfTextInputProcessor { (::windows_core::Interface::vtable(self).Deactivate)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ITfTextInputProcessor, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfTextInputProcessor { - type Vtable = ITfTextInputProcessor_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfTextInputProcessor { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaa80e7f7_2021_11d2_93e0_0060b067b86e); -} #[repr(C)] #[doc(hidden)] pub struct ITfTextInputProcessor_Vtbl { @@ -6269,9 +5141,8 @@ pub struct ITfTextInputProcessor_Vtbl { pub Activate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptim: *mut ::core::ffi::c_void, tid: u32) -> ::windows_core::HRESULT, pub Deactivate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfTextInputProcessorEx(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfTextInputProcessorEx, ITfTextInputProcessorEx_Vtbl, 0x6e4e2102_f9cd_433d_b496_303ce03a6507); +::windows_core::imp::interface_hierarchy!(ITfTextInputProcessorEx, ::windows_core::IUnknown, ITfTextInputProcessor); impl ITfTextInputProcessorEx { pub unsafe fn Activate(&self, ptim: P0, tid: u32) -> ::windows_core::Result<()> where @@ -6289,22 +5160,14 @@ impl ITfTextInputProcessorEx { (::windows_core::Interface::vtable(self).ActivateEx)(::windows_core::Interface::as_raw(self), ptim.into_param().abi(), tid, dwflags).ok() } } -::windows_core::imp::interface_hierarchy!(ITfTextInputProcessorEx, ::windows_core::IUnknown, ITfTextInputProcessor); -unsafe impl ::windows_core::Interface for ITfTextInputProcessorEx { - type Vtable = ITfTextInputProcessorEx_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfTextInputProcessorEx { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6e4e2102_f9cd_433d_b496_303ce03a6507); -} #[repr(C)] #[doc(hidden)] pub struct ITfTextInputProcessorEx_Vtbl { pub base__: ITfTextInputProcessor_Vtbl, pub ActivateEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptim: *mut ::core::ffi::c_void, tid: u32, dwflags: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfTextLayoutSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfTextLayoutSink, ITfTextLayoutSink_Vtbl, 0x2af2d06a_dd5b_4927_a0b4_54f19c91fade); +::windows_core::imp::interface_hierarchy!(ITfTextLayoutSink, ::windows_core::IUnknown); impl ITfTextLayoutSink { pub unsafe fn OnLayoutChange(&self, pic: P0, lcode: TfLayoutCode, pview: P1) -> ::windows_core::Result<()> where @@ -6314,22 +5177,14 @@ impl ITfTextLayoutSink { (::windows_core::Interface::vtable(self).OnLayoutChange)(::windows_core::Interface::as_raw(self), pic.into_param().abi(), lcode, pview.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ITfTextLayoutSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfTextLayoutSink { - type Vtable = ITfTextLayoutSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfTextLayoutSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2af2d06a_dd5b_4927_a0b4_54f19c91fade); -} #[repr(C)] #[doc(hidden)] pub struct ITfTextLayoutSink_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnLayoutChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pic: *mut ::core::ffi::c_void, lcode: TfLayoutCode, pview: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfThreadFocusSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfThreadFocusSink, ITfThreadFocusSink_Vtbl, 0xc0f1db0c_3a20_405c_a303_96b6010a885f); +::windows_core::imp::interface_hierarchy!(ITfThreadFocusSink, ::windows_core::IUnknown); impl ITfThreadFocusSink { pub unsafe fn OnSetThreadFocus(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnSetThreadFocus)(::windows_core::Interface::as_raw(self)).ok() @@ -6338,13 +5193,6 @@ impl ITfThreadFocusSink { (::windows_core::Interface::vtable(self).OnKillThreadFocus)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ITfThreadFocusSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfThreadFocusSink { - type Vtable = ITfThreadFocusSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfThreadFocusSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc0f1db0c_3a20_405c_a303_96b6010a885f); -} #[repr(C)] #[doc(hidden)] pub struct ITfThreadFocusSink_Vtbl { @@ -6352,9 +5200,8 @@ pub struct ITfThreadFocusSink_Vtbl { pub OnSetThreadFocus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub OnKillThreadFocus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfThreadMgr(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfThreadMgr, ITfThreadMgr_Vtbl, 0xaa80e801_2021_11d2_93e0_0060b067b86e); +::windows_core::imp::interface_hierarchy!(ITfThreadMgr, ::windows_core::IUnknown); impl ITfThreadMgr { pub unsafe fn Activate(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -6406,13 +5253,6 @@ impl ITfThreadMgr { (::windows_core::Interface::vtable(self).GetGlobalCompartment)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITfThreadMgr, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfThreadMgr { - type Vtable = ITfThreadMgr_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfThreadMgr { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaa80e801_2021_11d2_93e0_0060b067b86e); -} #[repr(C)] #[doc(hidden)] pub struct ITfThreadMgr_Vtbl { @@ -6429,9 +5269,8 @@ pub struct ITfThreadMgr_Vtbl { pub EnumFunctionProviders: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetGlobalCompartment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppcompmgr: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfThreadMgr2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfThreadMgr2, ITfThreadMgr2_Vtbl, 0x0ab198ef_6477_4ee8_8812_6780edb82d5e); +::windows_core::imp::interface_hierarchy!(ITfThreadMgr2, ::windows_core::IUnknown); impl ITfThreadMgr2 { pub unsafe fn Activate(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -6488,13 +5327,6 @@ impl ITfThreadMgr2 { (::windows_core::Interface::vtable(self).ResumeKeystrokeHandling)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ITfThreadMgr2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfThreadMgr2 { - type Vtable = ITfThreadMgr2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfThreadMgr2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x0ab198ef_6477_4ee8_8812_6780edb82d5e); -} #[repr(C)] #[doc(hidden)] pub struct ITfThreadMgr2_Vtbl { @@ -6514,9 +5346,8 @@ pub struct ITfThreadMgr2_Vtbl { pub SuspendKeystrokeHandling: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub ResumeKeystrokeHandling: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfThreadMgrEventSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfThreadMgrEventSink, ITfThreadMgrEventSink_Vtbl, 0xaa80e80e_2021_11d2_93e0_0060b067b86e); +::windows_core::imp::interface_hierarchy!(ITfThreadMgrEventSink, ::windows_core::IUnknown); impl ITfThreadMgrEventSink { pub unsafe fn OnInitDocumentMgr(&self, pdim: P0) -> ::windows_core::Result<()> where @@ -6550,13 +5381,6 @@ impl ITfThreadMgrEventSink { (::windows_core::Interface::vtable(self).OnPopContext)(::windows_core::Interface::as_raw(self), pic.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ITfThreadMgrEventSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfThreadMgrEventSink { - type Vtable = ITfThreadMgrEventSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfThreadMgrEventSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaa80e80e_2021_11d2_93e0_0060b067b86e); -} #[repr(C)] #[doc(hidden)] pub struct ITfThreadMgrEventSink_Vtbl { @@ -6567,9 +5391,8 @@ pub struct ITfThreadMgrEventSink_Vtbl { pub OnPushContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pic: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub OnPopContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pic: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfThreadMgrEx(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfThreadMgrEx, ITfThreadMgrEx_Vtbl, 0x3e90ade3_7594_4cb0_bb58_69628f5f458c); +::windows_core::imp::interface_hierarchy!(ITfThreadMgrEx, ::windows_core::IUnknown, ITfThreadMgr); impl ITfThreadMgrEx { pub unsafe fn Activate(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -6628,13 +5451,6 @@ impl ITfThreadMgrEx { (::windows_core::Interface::vtable(self).GetActiveFlags)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITfThreadMgrEx, ::windows_core::IUnknown, ITfThreadMgr); -unsafe impl ::windows_core::Interface for ITfThreadMgrEx { - type Vtable = ITfThreadMgrEx_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfThreadMgrEx { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3e90ade3_7594_4cb0_bb58_69628f5f458c); -} #[repr(C)] #[doc(hidden)] pub struct ITfThreadMgrEx_Vtbl { @@ -6642,9 +5458,8 @@ pub struct ITfThreadMgrEx_Vtbl { pub ActivateEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptid: *mut u32, dwflags: u32) -> ::windows_core::HRESULT, pub GetActiveFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpdwflags: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfToolTipUIElement(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfToolTipUIElement, ITfToolTipUIElement_Vtbl, 0x52b18b5c_555d_46b2_b00a_fa680144fbdb); +::windows_core::imp::interface_hierarchy!(ITfToolTipUIElement, ::windows_core::IUnknown, ITfUIElement); impl ITfToolTipUIElement { pub unsafe fn GetDescription(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -6669,22 +5484,14 @@ impl ITfToolTipUIElement { (::windows_core::Interface::vtable(self).GetString)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITfToolTipUIElement, ::windows_core::IUnknown, ITfUIElement); -unsafe impl ::windows_core::Interface for ITfToolTipUIElement { - type Vtable = ITfToolTipUIElement_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfToolTipUIElement { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x52b18b5c_555d_46b2_b00a_fa680144fbdb); -} #[repr(C)] #[doc(hidden)] pub struct ITfToolTipUIElement_Vtbl { pub base__: ITfUIElement_Vtbl, pub GetString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstr: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfTransitoryExtensionSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfTransitoryExtensionSink, ITfTransitoryExtensionSink_Vtbl, 0xa615096f_1c57_4813_8a15_55ee6e5a839c); +::windows_core::imp::interface_hierarchy!(ITfTransitoryExtensionSink, ::windows_core::IUnknown); impl ITfTransitoryExtensionSink { pub unsafe fn OnTransitoryExtensionUpdated(&self, pic: P0, ecreadonly: u32, presultrange: P1, pcompositionrange: P2) -> ::windows_core::Result where @@ -6696,22 +5503,14 @@ impl ITfTransitoryExtensionSink { (::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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITfTransitoryExtensionSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfTransitoryExtensionSink { - type Vtable = ITfTransitoryExtensionSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfTransitoryExtensionSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa615096f_1c57_4813_8a15_55ee6e5a839c); -} #[repr(C)] #[doc(hidden)] pub struct ITfTransitoryExtensionSink_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnTransitoryExtensionUpdated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pic: *mut ::core::ffi::c_void, ecreadonly: u32, presultrange: *mut ::core::ffi::c_void, pcompositionrange: *mut ::core::ffi::c_void, pfdeleteresultrange: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfTransitoryExtensionUIElement(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfTransitoryExtensionUIElement, ITfTransitoryExtensionUIElement_Vtbl, 0x858f956a_972f_42a2_a2f2_0321e1abe209); +::windows_core::imp::interface_hierarchy!(ITfTransitoryExtensionUIElement, ::windows_core::IUnknown, ITfUIElement); impl ITfTransitoryExtensionUIElement { pub unsafe fn GetDescription(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -6736,22 +5535,14 @@ impl ITfTransitoryExtensionUIElement { (::windows_core::Interface::vtable(self).GetDocumentMgr)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITfTransitoryExtensionUIElement, ::windows_core::IUnknown, ITfUIElement); -unsafe impl ::windows_core::Interface for ITfTransitoryExtensionUIElement { - type Vtable = ITfTransitoryExtensionUIElement_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfTransitoryExtensionUIElement { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x858f956a_972f_42a2_a2f2_0321e1abe209); -} #[repr(C)] #[doc(hidden)] pub struct ITfTransitoryExtensionUIElement_Vtbl { pub base__: ITfUIElement_Vtbl, pub GetDocumentMgr: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppdim: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfUIElement(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfUIElement, ITfUIElement_Vtbl, 0xea1ea137_19df_11d7_a6d2_00065b84435c); +::windows_core::imp::interface_hierarchy!(ITfUIElement, ::windows_core::IUnknown); impl ITfUIElement { pub unsafe fn GetDescription(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); @@ -6772,13 +5563,6 @@ impl ITfUIElement { (::windows_core::Interface::vtable(self).IsShown)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITfUIElement, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfUIElement { - type Vtable = ITfUIElement_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfUIElement { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xea1ea137_19df_11d7_a6d2_00065b84435c); -} #[repr(C)] #[doc(hidden)] pub struct ITfUIElement_Vtbl { @@ -6788,9 +5572,8 @@ pub struct ITfUIElement_Vtbl { pub Show: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bshow: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub IsShown: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbshow: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfUIElementMgr(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfUIElementMgr, ITfUIElementMgr_Vtbl, 0xea1ea135_19df_11d7_a6d2_00065b84435c); +::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 @@ -6813,13 +5596,6 @@ impl ITfUIElementMgr { (::windows_core::Interface::vtable(self).EnumUIElements)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITfUIElementMgr, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfUIElementMgr { - type Vtable = ITfUIElementMgr_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfUIElementMgr { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xea1ea135_19df_11d7_a6d2_00065b84435c); -} #[repr(C)] #[doc(hidden)] pub struct ITfUIElementMgr_Vtbl { @@ -6830,9 +5606,8 @@ pub struct ITfUIElementMgr_Vtbl { pub GetUIElement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwuielementid: u32, ppelement: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub EnumUIElements: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITfUIElementSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITfUIElementSink, ITfUIElementSink_Vtbl, 0xea1ea136_19df_11d7_a6d2_00065b84435c); +::windows_core::imp::interface_hierarchy!(ITfUIElementSink, ::windows_core::IUnknown); impl ITfUIElementSink { pub unsafe fn BeginUIElement(&self, dwuielementid: u32, pbshow: *mut super::super::Foundation::BOOL) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).BeginUIElement)(::windows_core::Interface::as_raw(self), dwuielementid, pbshow).ok() @@ -6844,13 +5619,6 @@ impl ITfUIElementSink { (::windows_core::Interface::vtable(self).EndUIElement)(::windows_core::Interface::as_raw(self), dwuielementid).ok() } } -::windows_core::imp::interface_hierarchy!(ITfUIElementSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITfUIElementSink { - type Vtable = ITfUIElementSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITfUIElementSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xea1ea136_19df_11d7_a6d2_00065b84435c); -} #[repr(C)] #[doc(hidden)] pub struct ITfUIElementSink_Vtbl { @@ -6859,9 +5627,8 @@ pub struct ITfUIElementSink_Vtbl { pub UpdateUIElement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwuielementid: u32) -> ::windows_core::HRESULT, pub EndUIElement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwuielementid: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUIManagerEventSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUIManagerEventSink, IUIManagerEventSink_Vtbl, 0xcd91d690_a7e8_4265_9b38_8bb3bbaba7de); +::windows_core::imp::interface_hierarchy!(IUIManagerEventSink, ::windows_core::IUnknown); impl IUIManagerEventSink { pub unsafe fn OnWindowOpening(&self, prcbounds: *const super::super::Foundation::RECT) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnWindowOpening)(::windows_core::Interface::as_raw(self), prcbounds).ok() @@ -6882,13 +5649,6 @@ impl IUIManagerEventSink { (::windows_core::Interface::vtable(self).OnWindowClosed)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IUIManagerEventSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUIManagerEventSink { - type Vtable = IUIManagerEventSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUIManagerEventSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcd91d690_a7e8_4265_9b38_8bb3bbaba7de); -} #[repr(C)] #[doc(hidden)] pub struct IUIManagerEventSink_Vtbl { @@ -6900,9 +5660,8 @@ pub struct IUIManagerEventSink_Vtbl { pub OnWindowClosing: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub OnWindowClosed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IVersionInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IVersionInfo, IVersionInfo_Vtbl, 0x401518ec_db00_4611_9b29_2a0e4b9afa85); +::windows_core::imp::interface_hierarchy!(IVersionInfo, ::windows_core::IUnknown); impl IVersionInfo { pub unsafe fn GetSubcomponentCount(&self, ulsub: u32) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -6924,13 +5683,6 @@ impl IVersionInfo { (::windows_core::Interface::vtable(self).GetInstanceDescription)(::windows_core::Interface::as_raw(self), ulsub, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IVersionInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IVersionInfo { - type Vtable = IVersionInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IVersionInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x401518ec_db00_4611_9b29_2a0e4b9afa85); -} #[repr(C)] #[doc(hidden)] pub struct IVersionInfo_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/UI/Wpf/impl.rs b/crates/libs/windows/src/Windows/Win32/UI/Wpf/impl.rs index 44bebc56e2..bdf61a34c8 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Wpf/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Wpf/impl.rs @@ -45,7 +45,7 @@ impl IMILBitmapEffect_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMILBitmapEffectConnections_Impl: Sized { @@ -84,7 +84,7 @@ impl IMILBitmapEffectConnections_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMILBitmapEffectConnectionsInfo_Impl: Sized { @@ -149,7 +149,7 @@ impl IMILBitmapEffectConnectionsInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMILBitmapEffectConnector_Impl: Sized + IMILBitmapEffectConnectorInfo_Impl { @@ -188,7 +188,7 @@ impl IMILBitmapEffectConnector_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IMILBitmapEffectConnectorInfo_Impl: Sized { @@ -253,7 +253,7 @@ impl IMILBitmapEffectConnectorInfo_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMILBitmapEffectEvents_Impl: Sized { @@ -280,7 +280,7 @@ impl IMILBitmapEffectEvents_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMILBitmapEffectFactory_Impl: Sized { @@ -332,7 +332,7 @@ impl IMILBitmapEffectFactory_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMILBitmapEffectGroup_Impl: Sized { @@ -378,7 +378,7 @@ impl IMILBitmapEffectGroup_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMILBitmapEffectGroupImpl_Impl: Sized { @@ -424,7 +424,7 @@ impl IMILBitmapEffectGroupImpl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Imaging\"`"] @@ -502,7 +502,7 @@ impl IMILBitmapEffectImpl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMILBitmapEffectInputConnector_Impl: Sized + IMILBitmapEffectConnector_Impl { @@ -535,7 +535,7 @@ impl IMILBitmapEffectInputConnector_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IMILBitmapEffectInteriorInputConnector_Impl: Sized { @@ -558,7 +558,7 @@ impl IMILBitmapEffectInteriorInputConnector_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetInputConnector: GetInputConnector:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMILBitmapEffectInteriorOutputConnector_Impl: Sized { @@ -581,7 +581,7 @@ impl IMILBitmapEffectInteriorOutputConnector_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetOutputConnector: GetOutputConnector:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMILBitmapEffectOutputConnector_Impl: Sized + IMILBitmapEffectConnector_Impl { @@ -620,7 +620,7 @@ impl IMILBitmapEffectOutputConnector_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } pub trait IMILBitmapEffectOutputConnectorImpl_Impl: Sized { @@ -647,7 +647,7 @@ impl IMILBitmapEffectOutputConnectorImpl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dwm\"`, `\"Win32_Graphics_Imaging\"`"] @@ -718,7 +718,7 @@ impl IMILBitmapEffectPrimitive_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMILBitmapEffectPrimitiveImpl_Impl: Sized { @@ -751,7 +751,7 @@ impl IMILBitmapEffectPrimitiveImpl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMILBitmapEffectRenderContext_Impl: Sized { @@ -826,7 +826,7 @@ impl IMILBitmapEffectRenderContext_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMILBitmapEffectRenderContextImpl_Impl: Sized { @@ -880,7 +880,7 @@ impl IMILBitmapEffectRenderContextImpl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMILBitmapEffects_Impl: Sized { @@ -945,6 +945,6 @@ impl IMILBitmapEffects_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } 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 9cae2e39c5..fd2e1fdf03 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Wpf/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Wpf/mod.rs @@ -1,6 +1,5 @@ -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMILBitmapEffect(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMILBitmapEffect, IMILBitmapEffect_Vtbl, 0x8a6ff321_c944_4a1b_9944_9954af301258); +::windows_core::imp::interface_hierarchy!(IMILBitmapEffect, ::windows_core::IUnknown); impl IMILBitmapEffect { #[doc = "Required features: `\"Win32_Graphics_Imaging\"`"] #[cfg(feature = "Win32_Graphics_Imaging")] @@ -24,13 +23,6 @@ impl IMILBitmapEffect { (::windows_core::Interface::vtable(self).SetInputSource)(::windows_core::Interface::as_raw(self), uiindex, pbitmapsource.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMILBitmapEffect, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMILBitmapEffect { - type Vtable = IMILBitmapEffect_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMILBitmapEffect { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8a6ff321_c944_4a1b_9944_9954af301258); -} #[repr(C)] #[doc(hidden)] pub struct IMILBitmapEffect_Vtbl { @@ -45,9 +37,8 @@ pub struct IMILBitmapEffect_Vtbl { #[cfg(not(feature = "Win32_Graphics_Imaging"))] SetInputSource: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMILBitmapEffectConnections(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMILBitmapEffectConnections, IMILBitmapEffectConnections_Vtbl, 0xc2b5d861_9b1a_4374_89b0_dec4874d6a81); +::windows_core::imp::interface_hierarchy!(IMILBitmapEffectConnections, ::windows_core::IUnknown); impl IMILBitmapEffectConnections { pub unsafe fn GetInputConnector(&self, uiindex: u32) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -58,13 +49,6 @@ impl IMILBitmapEffectConnections { (::windows_core::Interface::vtable(self).GetOutputConnector)(::windows_core::Interface::as_raw(self), uiindex, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMILBitmapEffectConnections, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMILBitmapEffectConnections { - type Vtable = IMILBitmapEffectConnections_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMILBitmapEffectConnections { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc2b5d861_9b1a_4374_89b0_dec4874d6a81); -} #[repr(C)] #[doc(hidden)] pub struct IMILBitmapEffectConnections_Vtbl { @@ -72,9 +56,8 @@ pub struct IMILBitmapEffectConnections_Vtbl { pub GetInputConnector: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uiindex: u32, ppconnector: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetOutputConnector: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uiindex: u32, ppconnector: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMILBitmapEffectConnectionsInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMILBitmapEffectConnectionsInfo, IMILBitmapEffectConnectionsInfo_Vtbl, 0x476b538a_c765_4237_ba4a_d6a880ff0cfc); +::windows_core::imp::interface_hierarchy!(IMILBitmapEffectConnectionsInfo, ::windows_core::IUnknown); impl IMILBitmapEffectConnectionsInfo { pub unsafe fn GetNumberInputs(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -93,13 +76,6 @@ impl IMILBitmapEffectConnectionsInfo { (::windows_core::Interface::vtable(self).GetOutputConnectorInfo)(::windows_core::Interface::as_raw(self), uiindex, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMILBitmapEffectConnectionsInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMILBitmapEffectConnectionsInfo { - type Vtable = IMILBitmapEffectConnectionsInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMILBitmapEffectConnectionsInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x476b538a_c765_4237_ba4a_d6a880ff0cfc); -} #[repr(C)] #[doc(hidden)] pub struct IMILBitmapEffectConnectionsInfo_Vtbl { @@ -109,9 +85,8 @@ pub struct IMILBitmapEffectConnectionsInfo_Vtbl { pub GetInputConnectorInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uiindex: u32, ppconnectorinfo: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetOutputConnectorInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uiindex: u32, ppconnectorinfo: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMILBitmapEffectConnector(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMILBitmapEffectConnector, IMILBitmapEffectConnector_Vtbl, 0xf59567b3_76c1_4d47_ba1e_79f955e350ef); +::windows_core::imp::interface_hierarchy!(IMILBitmapEffectConnector, ::windows_core::IUnknown, IMILBitmapEffectConnectorInfo); impl IMILBitmapEffectConnector { pub unsafe fn GetIndex(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -138,13 +113,6 @@ impl IMILBitmapEffectConnector { (::windows_core::Interface::vtable(self).GetBitmapEffect)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMILBitmapEffectConnector, ::windows_core::IUnknown, IMILBitmapEffectConnectorInfo); -unsafe impl ::windows_core::Interface for IMILBitmapEffectConnector { - type Vtable = IMILBitmapEffectConnector_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMILBitmapEffectConnector { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf59567b3_76c1_4d47_ba1e_79f955e350ef); -} #[repr(C)] #[doc(hidden)] pub struct IMILBitmapEffectConnector_Vtbl { @@ -152,9 +120,8 @@ pub struct IMILBitmapEffectConnector_Vtbl { pub IsConnected: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfconnected: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub GetBitmapEffect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppeffect: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMILBitmapEffectConnectorInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMILBitmapEffectConnectorInfo, IMILBitmapEffectConnectorInfo_Vtbl, 0xf66d2e4b_b46b_42fc_859e_3da0ecdb3c43); +::windows_core::imp::interface_hierarchy!(IMILBitmapEffectConnectorInfo, ::windows_core::IUnknown); impl IMILBitmapEffectConnectorInfo { pub unsafe fn GetIndex(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -173,13 +140,6 @@ impl IMILBitmapEffectConnectorInfo { (::windows_core::Interface::vtable(self).GetFormat)(::windows_core::Interface::as_raw(self), ulindex, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMILBitmapEffectConnectorInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMILBitmapEffectConnectorInfo { - type Vtable = IMILBitmapEffectConnectorInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMILBitmapEffectConnectorInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf66d2e4b_b46b_42fc_859e_3da0ecdb3c43); -} #[repr(C)] #[doc(hidden)] pub struct IMILBitmapEffectConnectorInfo_Vtbl { @@ -189,9 +149,8 @@ pub struct IMILBitmapEffectConnectorInfo_Vtbl { pub GetNumberFormats: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pulnumberformats: *mut u32) -> ::windows_core::HRESULT, pub GetFormat: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulindex: u32, pformat: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMILBitmapEffectEvents(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMILBitmapEffectEvents, IMILBitmapEffectEvents_Vtbl, 0x2e880dd8_f8ce_457b_8199_d60bb3d7ef98); +::windows_core::imp::interface_hierarchy!(IMILBitmapEffectEvents, ::windows_core::IUnknown); impl IMILBitmapEffectEvents { pub unsafe fn PropertyChange(&self, peffect: P0, bstrpropertyname: P1) -> ::windows_core::Result<()> where @@ -207,13 +166,6 @@ impl IMILBitmapEffectEvents { (::windows_core::Interface::vtable(self).DirtyRegion)(::windows_core::Interface::as_raw(self), peffect.into_param().abi(), prect).ok() } } -::windows_core::imp::interface_hierarchy!(IMILBitmapEffectEvents, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMILBitmapEffectEvents { - type Vtable = IMILBitmapEffectEvents_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMILBitmapEffectEvents { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2e880dd8_f8ce_457b_8199_d60bb3d7ef98); -} #[repr(C)] #[doc(hidden)] pub struct IMILBitmapEffectEvents_Vtbl { @@ -221,9 +173,8 @@ pub struct IMILBitmapEffectEvents_Vtbl { pub PropertyChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, peffect: *mut ::core::ffi::c_void, bstrpropertyname: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub DirtyRegion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, peffect: *mut ::core::ffi::c_void, prect: *const MilRectD) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMILBitmapEffectFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMILBitmapEffectFactory, IMILBitmapEffectFactory_Vtbl, 0x33a9df34_a403_4ec7_b07e_bc0682370845); +::windows_core::imp::interface_hierarchy!(IMILBitmapEffectFactory, ::windows_core::IUnknown); impl IMILBitmapEffectFactory { pub unsafe fn CreateEffect(&self, pguideffect: *const ::windows_core::GUID) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -238,13 +189,6 @@ impl IMILBitmapEffectFactory { (::windows_core::Interface::vtable(self).CreateEffectOuter)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMILBitmapEffectFactory, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMILBitmapEffectFactory { - type Vtable = IMILBitmapEffectFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMILBitmapEffectFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x33a9df34_a403_4ec7_b07e_bc0682370845); -} #[repr(C)] #[doc(hidden)] pub struct IMILBitmapEffectFactory_Vtbl { @@ -253,9 +197,8 @@ pub struct IMILBitmapEffectFactory_Vtbl { pub CreateContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppcontext: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub CreateEffectOuter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppeffect: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMILBitmapEffectGroup(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMILBitmapEffectGroup, IMILBitmapEffectGroup_Vtbl, 0x2f952360_698a_4ac6_81a1_bcfdf08eb8e8); +::windows_core::imp::interface_hierarchy!(IMILBitmapEffectGroup, ::windows_core::IUnknown); impl IMILBitmapEffectGroup { pub unsafe fn GetInteriorInputConnector(&self, uiindex: u32) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -272,13 +215,6 @@ impl IMILBitmapEffectGroup { (::windows_core::Interface::vtable(self).Add)(::windows_core::Interface::as_raw(self), peffect.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMILBitmapEffectGroup, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMILBitmapEffectGroup { - type Vtable = IMILBitmapEffectGroup_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMILBitmapEffectGroup { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2f952360_698a_4ac6_81a1_bcfdf08eb8e8); -} #[repr(C)] #[doc(hidden)] pub struct IMILBitmapEffectGroup_Vtbl { @@ -287,9 +223,8 @@ pub struct IMILBitmapEffectGroup_Vtbl { pub GetInteriorOutputConnector: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uiindex: u32, ppconnector: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Add: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, peffect: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMILBitmapEffectGroupImpl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMILBitmapEffectGroupImpl, IMILBitmapEffectGroupImpl_Vtbl, 0x78fed518_1cfc_4807_8b85_6b6e51398f62); +::windows_core::imp::interface_hierarchy!(IMILBitmapEffectGroupImpl, ::windows_core::IUnknown); impl IMILBitmapEffectGroupImpl { pub unsafe fn Preprocess(&self, pcontext: P0) -> ::windows_core::Result<()> where @@ -306,13 +241,6 @@ impl IMILBitmapEffectGroupImpl { (::windows_core::Interface::vtable(self).GetChildren)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMILBitmapEffectGroupImpl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMILBitmapEffectGroupImpl { - type Vtable = IMILBitmapEffectGroupImpl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMILBitmapEffectGroupImpl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x78fed518_1cfc_4807_8b85_6b6e51398f62); -} #[repr(C)] #[doc(hidden)] pub struct IMILBitmapEffectGroupImpl_Vtbl { @@ -321,9 +249,8 @@ pub struct IMILBitmapEffectGroupImpl_Vtbl { pub GetNumberChildren: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, puinumberchildren: *mut u32) -> ::windows_core::HRESULT, pub GetChildren: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pchildren: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMILBitmapEffectImpl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMILBitmapEffectImpl, IMILBitmapEffectImpl_Vtbl, 0xcc2468f2_9936_47be_b4af_06b5df5dbcbb); +::windows_core::imp::interface_hierarchy!(IMILBitmapEffectImpl, ::windows_core::IUnknown); impl IMILBitmapEffectImpl { pub unsafe fn IsInPlaceModificationAllowed(&self, poutputconnector: P0) -> ::windows_core::Result where @@ -370,13 +297,6 @@ impl IMILBitmapEffectImpl { (::windows_core::Interface::vtable(self).Initialize)(::windows_core::Interface::as_raw(self), pinner.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMILBitmapEffectImpl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMILBitmapEffectImpl { - type Vtable = IMILBitmapEffectImpl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMILBitmapEffectImpl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xcc2468f2_9936_47be_b4af_06b5df5dbcbb); -} #[repr(C)] #[doc(hidden)] pub struct IMILBitmapEffectImpl_Vtbl { @@ -398,9 +318,8 @@ pub struct IMILBitmapEffectImpl_Vtbl { GetOutputBitmapSource: usize, pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinner: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMILBitmapEffectInputConnector(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMILBitmapEffectInputConnector, IMILBitmapEffectInputConnector_Vtbl, 0xa9b4ecaa_7a3c_45e7_8573_f4b81b60dd6c); +::windows_core::imp::interface_hierarchy!(IMILBitmapEffectInputConnector, ::windows_core::IUnknown, IMILBitmapEffectConnectorInfo, IMILBitmapEffectConnector); impl IMILBitmapEffectInputConnector { pub unsafe fn GetIndex(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -437,13 +356,6 @@ impl IMILBitmapEffectInputConnector { (::windows_core::Interface::vtable(self).GetConnection)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMILBitmapEffectInputConnector, ::windows_core::IUnknown, IMILBitmapEffectConnectorInfo, IMILBitmapEffectConnector); -unsafe impl ::windows_core::Interface for IMILBitmapEffectInputConnector { - type Vtable = IMILBitmapEffectInputConnector_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMILBitmapEffectInputConnector { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa9b4ecaa_7a3c_45e7_8573_f4b81b60dd6c); -} #[repr(C)] #[doc(hidden)] pub struct IMILBitmapEffectInputConnector_Vtbl { @@ -451,53 +363,36 @@ pub struct IMILBitmapEffectInputConnector_Vtbl { pub ConnectTo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pconnector: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetConnection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppconnector: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMILBitmapEffectInteriorInputConnector(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMILBitmapEffectInteriorInputConnector, IMILBitmapEffectInteriorInputConnector_Vtbl, 0x20287e9e_86a2_4e15_953d_eb1438a5b842); +::windows_core::imp::interface_hierarchy!(IMILBitmapEffectInteriorInputConnector, ::windows_core::IUnknown); impl IMILBitmapEffectInteriorInputConnector { pub unsafe fn GetInputConnector(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetInputConnector)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMILBitmapEffectInteriorInputConnector, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMILBitmapEffectInteriorInputConnector { - type Vtable = IMILBitmapEffectInteriorInputConnector_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMILBitmapEffectInteriorInputConnector { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x20287e9e_86a2_4e15_953d_eb1438a5b842); -} #[repr(C)] #[doc(hidden)] pub struct IMILBitmapEffectInteriorInputConnector_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetInputConnector: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinputconnector: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMILBitmapEffectInteriorOutputConnector(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMILBitmapEffectInteriorOutputConnector, IMILBitmapEffectInteriorOutputConnector_Vtbl, 0x00bbb6dc_acc9_4bfc_b344_8bee383dfefa); +::windows_core::imp::interface_hierarchy!(IMILBitmapEffectInteriorOutputConnector, ::windows_core::IUnknown); impl IMILBitmapEffectInteriorOutputConnector { pub unsafe fn GetOutputConnector(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetOutputConnector)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMILBitmapEffectInteriorOutputConnector, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMILBitmapEffectInteriorOutputConnector { - type Vtable = IMILBitmapEffectInteriorOutputConnector_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMILBitmapEffectInteriorOutputConnector { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00bbb6dc_acc9_4bfc_b344_8bee383dfefa); -} #[repr(C)] #[doc(hidden)] pub struct IMILBitmapEffectInteriorOutputConnector_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetOutputConnector: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, poutputconnector: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMILBitmapEffectOutputConnector(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMILBitmapEffectOutputConnector, IMILBitmapEffectOutputConnector_Vtbl, 0x92957aad_841b_4866_82ec_8752468b07fd); +::windows_core::imp::interface_hierarchy!(IMILBitmapEffectOutputConnector, ::windows_core::IUnknown, IMILBitmapEffectConnectorInfo, IMILBitmapEffectConnector); impl IMILBitmapEffectOutputConnector { pub unsafe fn GetIndex(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -532,13 +427,6 @@ impl IMILBitmapEffectOutputConnector { (::windows_core::Interface::vtable(self).GetConnection)(::windows_core::Interface::as_raw(self), uiindex, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMILBitmapEffectOutputConnector, ::windows_core::IUnknown, IMILBitmapEffectConnectorInfo, IMILBitmapEffectConnector); -unsafe impl ::windows_core::Interface for IMILBitmapEffectOutputConnector { - type Vtable = IMILBitmapEffectOutputConnector_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMILBitmapEffectOutputConnector { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x92957aad_841b_4866_82ec_8752468b07fd); -} #[repr(C)] #[doc(hidden)] pub struct IMILBitmapEffectOutputConnector_Vtbl { @@ -546,9 +434,8 @@ pub struct IMILBitmapEffectOutputConnector_Vtbl { pub GetNumberConnections: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, puinumberconnections: *mut u32) -> ::windows_core::HRESULT, pub GetConnection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uiindex: u32, ppconnection: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMILBitmapEffectOutputConnectorImpl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMILBitmapEffectOutputConnectorImpl, IMILBitmapEffectOutputConnectorImpl_Vtbl, 0x21fae777_8b39_4bfa_9f2d_f3941ed36913); +::windows_core::imp::interface_hierarchy!(IMILBitmapEffectOutputConnectorImpl, ::windows_core::IUnknown); impl IMILBitmapEffectOutputConnectorImpl { pub unsafe fn AddBackLink(&self, pconnection: P0) -> ::windows_core::Result<()> where @@ -563,13 +450,6 @@ impl IMILBitmapEffectOutputConnectorImpl { (::windows_core::Interface::vtable(self).RemoveBackLink)(::windows_core::Interface::as_raw(self), pconnection.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IMILBitmapEffectOutputConnectorImpl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMILBitmapEffectOutputConnectorImpl { - type Vtable = IMILBitmapEffectOutputConnectorImpl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMILBitmapEffectOutputConnectorImpl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x21fae777_8b39_4bfa_9f2d_f3941ed36913); -} #[repr(C)] #[doc(hidden)] pub struct IMILBitmapEffectOutputConnectorImpl_Vtbl { @@ -577,9 +457,8 @@ pub struct IMILBitmapEffectOutputConnectorImpl_Vtbl { pub AddBackLink: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pconnection: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RemoveBackLink: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pconnection: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMILBitmapEffectPrimitive(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMILBitmapEffectPrimitive, IMILBitmapEffectPrimitive_Vtbl, 0x67e31025_3091_4dfc_98d6_dd494551461d); +::windows_core::imp::interface_hierarchy!(IMILBitmapEffectPrimitive, ::windows_core::IUnknown); impl IMILBitmapEffectPrimitive { #[doc = "Required features: `\"Win32_Graphics_Imaging\"`"] #[cfg(feature = "Win32_Graphics_Imaging")] @@ -617,13 +496,6 @@ impl IMILBitmapEffectPrimitive { (::windows_core::Interface::vtable(self).GetAffineMatrix)(::windows_core::Interface::as_raw(self), uiindex, pmatrix).ok() } } -::windows_core::imp::interface_hierarchy!(IMILBitmapEffectPrimitive, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMILBitmapEffectPrimitive { - type Vtable = IMILBitmapEffectPrimitive_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMILBitmapEffectPrimitive { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x67e31025_3091_4dfc_98d6_dd494551461d); -} #[repr(C)] #[doc(hidden)] pub struct IMILBitmapEffectPrimitive_Vtbl { @@ -641,9 +513,8 @@ pub struct IMILBitmapEffectPrimitive_Vtbl { #[cfg(not(feature = "Win32_Graphics_Dwm"))] GetAffineMatrix: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMILBitmapEffectPrimitiveImpl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMILBitmapEffectPrimitiveImpl, IMILBitmapEffectPrimitiveImpl_Vtbl, 0xce41e00b_efa6_44e7_b007_dd042e3ae126); +::windows_core::imp::interface_hierarchy!(IMILBitmapEffectPrimitiveImpl, ::windows_core::IUnknown); impl IMILBitmapEffectPrimitiveImpl { pub unsafe fn IsDirty(&self, uioutputindex: u32, pfdirty: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT { (::windows_core::Interface::vtable(self).IsDirty)(::windows_core::Interface::as_raw(self), uioutputindex, pfdirty) @@ -653,13 +524,6 @@ impl IMILBitmapEffectPrimitiveImpl { (::windows_core::Interface::vtable(self).IsVolatile)(::windows_core::Interface::as_raw(self), uioutputindex, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMILBitmapEffectPrimitiveImpl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMILBitmapEffectPrimitiveImpl { - type Vtable = IMILBitmapEffectPrimitiveImpl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMILBitmapEffectPrimitiveImpl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xce41e00b_efa6_44e7_b007_dd042e3ae126); -} #[repr(C)] #[doc(hidden)] pub struct IMILBitmapEffectPrimitiveImpl_Vtbl { @@ -667,9 +531,8 @@ pub struct IMILBitmapEffectPrimitiveImpl_Vtbl { pub IsDirty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uioutputindex: u32, pfdirty: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub IsVolatile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uioutputindex: u32, pfvolatile: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMILBitmapEffectRenderContext(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMILBitmapEffectRenderContext, IMILBitmapEffectRenderContext_Vtbl, 0x12a2ec7e_2d33_44b2_b334_1abb7846e390); +::windows_core::imp::interface_hierarchy!(IMILBitmapEffectRenderContext, ::windows_core::IUnknown); impl IMILBitmapEffectRenderContext { pub unsafe fn SetOutputPixelFormat(&self, format: *const ::windows_core::GUID) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).SetOutputPixelFormat)(::windows_core::Interface::as_raw(self), format).ok() @@ -700,13 +563,6 @@ impl IMILBitmapEffectRenderContext { (::windows_core::Interface::vtable(self).SetRegionOfInterest)(::windows_core::Interface::as_raw(self), prect).ok() } } -::windows_core::imp::interface_hierarchy!(IMILBitmapEffectRenderContext, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMILBitmapEffectRenderContext { - type Vtable = IMILBitmapEffectRenderContext_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMILBitmapEffectRenderContext { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x12a2ec7e_2d33_44b2_b334_1abb7846e390); -} #[repr(C)] #[doc(hidden)] pub struct IMILBitmapEffectRenderContext_Vtbl { @@ -720,9 +576,8 @@ pub struct IMILBitmapEffectRenderContext_Vtbl { pub GetOutputDPI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdbldpix: *mut f64, pdbldpiy: *mut f64) -> ::windows_core::HRESULT, pub SetRegionOfInterest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prect: *const MilRectD) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMILBitmapEffectRenderContextImpl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMILBitmapEffectRenderContextImpl, IMILBitmapEffectRenderContextImpl_Vtbl, 0x4d25accb_797d_4fd2_b128_dffeff84fcc3); +::windows_core::imp::interface_hierarchy!(IMILBitmapEffectRenderContextImpl, ::windows_core::IUnknown); impl IMILBitmapEffectRenderContextImpl { pub unsafe fn GetUseSoftwareRenderer(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -741,13 +596,6 @@ impl IMILBitmapEffectRenderContextImpl { (::windows_core::Interface::vtable(self).UpdateOutputBounds)(::windows_core::Interface::as_raw(self), prect).ok() } } -::windows_core::imp::interface_hierarchy!(IMILBitmapEffectRenderContextImpl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMILBitmapEffectRenderContextImpl { - type Vtable = IMILBitmapEffectRenderContextImpl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMILBitmapEffectRenderContextImpl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4d25accb_797d_4fd2_b128_dffeff84fcc3); -} #[repr(C)] #[doc(hidden)] pub struct IMILBitmapEffectRenderContextImpl_Vtbl { @@ -758,9 +606,8 @@ pub struct IMILBitmapEffectRenderContextImpl_Vtbl { pub GetOutputBounds: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prect: *mut MilRectD) -> ::windows_core::HRESULT, pub UpdateOutputBounds: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prect: *const MilRectD) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMILBitmapEffects(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMILBitmapEffects, IMILBitmapEffects_Vtbl, 0x51ac3dce_67c5_448b_9180_ad3eabddd5dd); +::windows_core::imp::interface_hierarchy!(IMILBitmapEffects, ::windows_core::IUnknown); impl IMILBitmapEffects { pub unsafe fn _NewEnum(&self) -> ::windows_core::Result<::windows_core::IUnknown> { let mut result__ = ::std::mem::zeroed(); @@ -779,13 +626,6 @@ impl IMILBitmapEffects { (::windows_core::Interface::vtable(self).Count)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IMILBitmapEffects, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMILBitmapEffects { - type Vtable = IMILBitmapEffects_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMILBitmapEffects { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x51ac3dce_67c5_448b_9180_ad3eabddd5dd); -} #[repr(C)] #[doc(hidden)] pub struct IMILBitmapEffects_Vtbl { diff --git a/crates/libs/windows/src/Windows/Win32/Web/InternetExplorer/impl.rs b/crates/libs/windows/src/Windows/Win32/Web/InternetExplorer/impl.rs index fad970e1e4..6e769fd8c1 100644 --- a/crates/libs/windows/src/Windows/Win32/Web/InternetExplorer/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Web/InternetExplorer/impl.rs @@ -34,7 +34,7 @@ impl IActiveXUIHandlerSite_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IActiveXUIHandlerSite2_Impl: Sized { @@ -67,7 +67,7 @@ impl IActiveXUIHandlerSite2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IActiveXUIHandlerSite3_Impl: Sized { @@ -90,7 +90,7 @@ impl IActiveXUIHandlerSite3_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), MessageBoxW: MessageBoxW:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -111,7 +111,7 @@ impl IAnchorClick_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::(), ProcOnClick: ProcOnClick:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IAudioSessionSite_Impl: Sized { @@ -151,7 +151,7 @@ impl IAudioSessionSite_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ICaretPositionProvider_Impl: Sized { @@ -168,7 +168,7 @@ impl ICaretPositionProvider_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetCaretPosition: GetCaretPosition:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -182,7 +182,7 @@ impl IDeviceRect_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] @@ -213,7 +213,7 @@ impl IDithererImpl_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_Web_MsHtml\"`"] @@ -324,7 +324,7 @@ impl IDocObjectService_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -345,7 +345,7 @@ impl IDownloadBehavior_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::(), startDownload: startDownload:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_Security\"`, `\"Win32_System_Com_StructuredStorage\"`"] @@ -366,7 +366,7 @@ impl IDownloadManager_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Download: Download:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumManagerFrames_Impl: Sized { @@ -426,7 +426,7 @@ impl IEnumManagerFrames_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumOpenServiceActivity_Impl: Sized { @@ -473,7 +473,7 @@ impl IEnumOpenServiceActivity_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumOpenServiceActivityCategory_Impl: Sized { @@ -520,7 +520,7 @@ impl IEnumOpenServiceActivityCategory_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IEnumSTATURL_Impl: Sized { @@ -574,7 +574,7 @@ impl IEnumSTATURL_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_Web_MsHtml\"`"] @@ -617,7 +617,7 @@ impl IExtensionValidation_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IHTMLPersistData_Impl: Sized { @@ -669,7 +669,7 @@ impl IHTMLPersistData_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -726,7 +726,7 @@ impl IHTMLPersistDataOM_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -817,7 +817,7 @@ impl IHTMLUserDataOM_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1060,7 +1060,7 @@ impl IHeaderFooter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1093,7 +1093,7 @@ impl IHeaderFooter2_Vtbl { Self { base__: IHeaderFooter_Vtbl::new::(), Setfont: Setfont::, font: font:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1137,7 +1137,7 @@ impl IHomePage_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IHomePageSetting_Impl: Sized { @@ -1177,7 +1177,7 @@ impl IHomePageSetting_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1204,7 +1204,7 @@ impl IIEWebDriverManager_Vtbl { Self { base__: super::super::System::Com::IDispatch_Vtbl::new::(), ExecuteCommand: ExecuteCommand:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1248,7 +1248,7 @@ impl IIEWebDriverSite_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IImageDecodeEventSink_Impl: Sized { @@ -1309,7 +1309,7 @@ impl IImageDecodeEventSink_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IImageDecodeEventSink2_Impl: Sized + IImageDecodeEventSink_Impl { @@ -1332,7 +1332,7 @@ impl IImageDecodeEventSink2_Vtbl { Self { base__: IImageDecodeEventSink_Vtbl::new::(), IsAlphaPremultRequired: IsAlphaPremultRequired:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1370,7 +1370,7 @@ impl IImageDecodeFilter_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1407,7 +1407,7 @@ impl IIntelliForms_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IInternetExplorerManager_Impl: Sized { @@ -1424,7 +1424,7 @@ impl IInternetExplorerManager_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CreateObject: CreateObject:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IInternetExplorerManager2_Impl: Sized { @@ -1447,7 +1447,7 @@ impl IInternetExplorerManager2_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), EnumFrameWindows: EnumFrameWindows:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -1577,7 +1577,7 @@ impl ILayoutRect_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IMapMIMEToCLSID_Impl: Sized { @@ -1611,7 +1611,7 @@ impl IMapMIMEToCLSID_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IMediaActivityNotifySite_Impl: Sized { @@ -1638,7 +1638,7 @@ impl IMediaActivityNotifySite_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IOpenService_Impl: Sized { @@ -1684,7 +1684,7 @@ impl IOpenService_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_UI_WindowsAndMessaging\"`"] @@ -1917,7 +1917,7 @@ impl IOpenServiceActivity_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IOpenServiceActivityCategory_Impl: Sized { @@ -1989,7 +1989,7 @@ impl IOpenServiceActivityCategory_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IOpenServiceActivityInput_Impl: Sized { @@ -2041,7 +2041,7 @@ impl IOpenServiceActivityInput_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IOpenServiceActivityManager_Impl: Sized { @@ -2106,7 +2106,7 @@ impl IOpenServiceActivityManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2143,7 +2143,7 @@ impl IOpenServiceActivityOutputContext_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IOpenServiceManager_Impl: Sized { @@ -2189,7 +2189,7 @@ impl IOpenServiceManager_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPeerFactory_Impl: Sized {} @@ -2199,7 +2199,7 @@ impl IPeerFactory_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2250,7 +2250,7 @@ impl IPersistHistory_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IPrintTaskRequestFactory_Impl: Sized { @@ -2267,7 +2267,7 @@ impl IPrintTaskRequestFactory_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), CreatePrintTaskRequest: CreatePrintTaskRequest:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IPrintTaskRequestHandler_Impl: Sized { @@ -2284,7 +2284,7 @@ impl IPrintTaskRequestHandler_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), HandlePrintTaskRequest: HandlePrintTaskRequest:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IScrollableContextMenu_Impl: Sized { @@ -2317,7 +2317,7 @@ impl IScrollableContextMenu_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IScrollableContextMenu2_Impl: Sized + IScrollableContextMenu_Impl { @@ -2344,7 +2344,7 @@ impl IScrollableContextMenu2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2371,7 +2371,7 @@ impl ISniffStream_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), Init: Init::, Peek: Peek:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISurfacePresenterFlip_Impl: Sized { @@ -2398,7 +2398,7 @@ impl ISurfacePresenterFlip_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] @@ -2419,7 +2419,7 @@ impl ISurfacePresenterFlip2_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), SetRotation: SetRotation:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ISurfacePresenterFlipBuffer_Impl: Sized { @@ -2446,7 +2446,7 @@ impl ISurfacePresenterFlipBuffer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Ole\"`"] @@ -2489,7 +2489,7 @@ impl ITargetContainer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITargetEmbedding_Impl: Sized { @@ -2512,7 +2512,7 @@ impl ITargetEmbedding_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetTargetFrame: GetTargetFrame:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Ole\"`"] @@ -2663,7 +2663,7 @@ impl ITargetFrame_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Ole\"`"] @@ -2806,7 +2806,7 @@ impl ITargetFrame2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2883,7 +2883,7 @@ impl ITargetFramePriv_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2904,7 +2904,7 @@ impl ITargetFramePriv2_Vtbl { Self { base__: ITargetFramePriv_Vtbl::new::(), AggregatedNavigation2: AggregatedNavigation2:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ITargetNotify_Impl: Sized { @@ -2931,7 +2931,7 @@ impl ITargetNotify_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITargetNotify2_Impl: Sized + ITargetNotify_Impl { @@ -2948,7 +2948,7 @@ impl ITargetNotify2_Vtbl { Self { base__: ITargetNotify_Vtbl::new::(), GetOptionString: GetOptionString:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3005,7 +3005,7 @@ impl ITimer_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3026,7 +3026,7 @@ impl ITimerEx_Vtbl { Self { base__: ITimer_Vtbl::new::(), SetMode: SetMode:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait ITimerService_Impl: Sized { @@ -3072,7 +3072,7 @@ impl ITimerService_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3093,7 +3093,7 @@ impl ITimerSink_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnTimer: OnTimer:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait ITridentTouchInput_Impl: Sized { @@ -3116,7 +3116,7 @@ impl ITridentTouchInput_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), OnPointerMessage: OnPointerMessage:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Web_MsHtml\"`"] @@ -3147,7 +3147,7 @@ impl ITridentTouchInputSite_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3161,7 +3161,7 @@ impl IUrlHistoryNotify_Vtbl { Self { base__: super::super::System::Ole::IOleCommandTarget_Vtbl::new::() } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IUrlHistoryStg_Impl: Sized { @@ -3215,7 +3215,7 @@ impl IUrlHistoryStg_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Ole\"`"] @@ -3246,7 +3246,7 @@ impl IUrlHistoryStg2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } pub trait IViewObjectPresentFlip_Impl: Sized { @@ -3280,7 +3280,7 @@ impl IViewObjectPresentFlip_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IViewObjectPresentFlip2_Impl: Sized { @@ -3297,7 +3297,7 @@ impl IViewObjectPresentFlip2_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), NotifyLeavingView: NotifyLeavingView:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`, `\"Win32_Web_MsHtml\"`"] @@ -3400,7 +3400,7 @@ impl IViewObjectPresentFlipSite_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] @@ -3430,7 +3430,7 @@ impl IViewObjectPresentFlipSite2_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWebBrowserEventsService_Impl: Sized { @@ -3484,7 +3484,7 @@ impl IWebBrowserEventsService_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } pub trait IWebBrowserEventsUrlService_Impl: Sized { @@ -3507,7 +3507,7 @@ impl IWebBrowserEventsUrlService_Vtbl { Self { base__: ::windows_core::IUnknown_Vtbl::new::(), GetUrlForEvents: GetUrlForEvents:: } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] @@ -3557,6 +3557,6 @@ impl Iwfolders_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID || iid == &::IID + iid == &::IID || iid == &::IID } } 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 b8a6aa4281..6d6c7d83d3 100644 --- a/crates/libs/windows/src/Windows/Win32/Web/InternetExplorer/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Web/InternetExplorer/mod.rs @@ -477,9 +477,8 @@ where ::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() } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActiveXUIHandlerSite(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IActiveXUIHandlerSite, IActiveXUIHandlerSite_Vtbl, 0x30510853_98b5_11cf_bb82_00aa00bdce0b); +::windows_core::imp::interface_hierarchy!(IActiveXUIHandlerSite, ::windows_core::IUnknown); impl IActiveXUIHandlerSite { pub unsafe fn CreateScrollableContextMenu(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -494,13 +493,6 @@ impl IActiveXUIHandlerSite { (::windows_core::Interface::vtable(self).PickFileAndGetResult)(::windows_core::Interface::as_raw(self), filepicker.into_param().abi(), allowmultipleselections.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IActiveXUIHandlerSite, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IActiveXUIHandlerSite { - type Vtable = IActiveXUIHandlerSite_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActiveXUIHandlerSite { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x30510853_98b5_11cf_bb82_00aa00bdce0b); -} #[repr(C)] #[doc(hidden)] pub struct IActiveXUIHandlerSite_Vtbl { @@ -508,9 +500,8 @@ pub struct IActiveXUIHandlerSite_Vtbl { pub CreateScrollableContextMenu: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, scrollablecontextmenu: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub PickFileAndGetResult: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filepicker: *mut ::core::ffi::c_void, allowmultipleselections: super::super::Foundation::BOOL, result: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActiveXUIHandlerSite2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IActiveXUIHandlerSite2, IActiveXUIHandlerSite2_Vtbl, 0x7e3707b2_d087_4542_ac1f_a0d2fcd080fd); +::windows_core::imp::interface_hierarchy!(IActiveXUIHandlerSite2, ::windows_core::IUnknown); impl IActiveXUIHandlerSite2 { pub unsafe fn AddSuspensionExemption(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -520,13 +511,6 @@ impl IActiveXUIHandlerSite2 { (::windows_core::Interface::vtable(self).RemoveSuspensionExemption)(::windows_core::Interface::as_raw(self), ullcookie).ok() } } -::windows_core::imp::interface_hierarchy!(IActiveXUIHandlerSite2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IActiveXUIHandlerSite2 { - type Vtable = IActiveXUIHandlerSite2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActiveXUIHandlerSite2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7e3707b2_d087_4542_ac1f_a0d2fcd080fd); -} #[repr(C)] #[doc(hidden)] pub struct IActiveXUIHandlerSite2_Vtbl { @@ -534,9 +518,8 @@ pub struct IActiveXUIHandlerSite2_Vtbl { pub AddSuspensionExemption: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pullcookie: *mut u64) -> ::windows_core::HRESULT, pub RemoveSuspensionExemption: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ullcookie: u64) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IActiveXUIHandlerSite3(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IActiveXUIHandlerSite3, IActiveXUIHandlerSite3_Vtbl, 0x7904009a_1238_47f4_901c_871375c34608); +::windows_core::imp::interface_hierarchy!(IActiveXUIHandlerSite3, ::windows_core::IUnknown); impl IActiveXUIHandlerSite3 { pub unsafe fn MessageBoxW(&self, hwnd: P0, text: P1, caption: P2, r#type: u32) -> ::windows_core::Result where @@ -548,24 +531,21 @@ impl IActiveXUIHandlerSite3 { (::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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IActiveXUIHandlerSite3, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IActiveXUIHandlerSite3 { - type Vtable = IActiveXUIHandlerSite3_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IActiveXUIHandlerSite3 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7904009a_1238_47f4_901c_871375c34608); -} #[repr(C)] #[doc(hidden)] pub struct IActiveXUIHandlerSite3_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub MessageBoxW: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwnd: super::super::Foundation::HWND, text: ::windows_core::PCWSTR, caption: ::windows_core::PCWSTR, r#type: u32, result: *mut i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAnchorClick(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IAnchorClick, + IAnchorClick_Vtbl, + 0x13d5413b_33b9_11d2_95a7_00c04f8ecb02 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IAnchorClick, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IAnchorClick { pub unsafe fn ProcOnClick(&self) -> ::windows_core::Result<()> { @@ -573,25 +553,14 @@ impl IAnchorClick { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IAnchorClick, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IAnchorClick { - type Vtable = IAnchorClick_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IAnchorClick { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x13d5413b_33b9_11d2_95a7_00c04f8ecb02); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IAnchorClick_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, pub ProcOnClick: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAudioSessionSite(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAudioSessionSite, IAudioSessionSite_Vtbl, 0xd7d8b684_d02d_4517_b6b7_19e3dfe29c45); +::windows_core::imp::interface_hierarchy!(IAudioSessionSite, ::windows_core::IUnknown); impl IAudioSessionSite { pub unsafe fn GetAudioSessionGuid(&self) -> ::windows_core::Result<::windows_core::GUID> { let mut result__ = ::std::mem::zeroed(); @@ -610,13 +579,6 @@ impl IAudioSessionSite { (::windows_core::Interface::vtable(self).OnAudioStreamDestroyed)(::windows_core::Interface::as_raw(self), endpointid.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IAudioSessionSite, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAudioSessionSite { - type Vtable = IAudioSessionSite_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAudioSessionSite { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd7d8b684_d02d_4517_b6b7_19e3dfe29c45); -} #[repr(C)] #[doc(hidden)] pub struct IAudioSessionSite_Vtbl { @@ -625,53 +587,38 @@ pub struct IAudioSessionSite_Vtbl { pub OnAudioStreamCreated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, endpointid: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, pub OnAudioStreamDestroyed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, endpointid: ::windows_core::PCWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICaretPositionProvider(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ICaretPositionProvider, ICaretPositionProvider_Vtbl, 0x58da43a2_108e_4d5b_9f75_e5f74f93fff5); +::windows_core::imp::interface_hierarchy!(ICaretPositionProvider, ::windows_core::IUnknown); impl ICaretPositionProvider { pub unsafe fn GetCaretPosition(&self, pptcaret: *mut super::super::Foundation::POINT, pflheight: *mut f32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetCaretPosition)(::windows_core::Interface::as_raw(self), pptcaret, pflheight).ok() } } -::windows_core::imp::interface_hierarchy!(ICaretPositionProvider, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICaretPositionProvider { - type Vtable = ICaretPositionProvider_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICaretPositionProvider { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x58da43a2_108e_4d5b_9f75_e5f74f93fff5); -} #[repr(C)] #[doc(hidden)] pub struct ICaretPositionProvider_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetCaretPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pptcaret: *mut super::super::Foundation::POINT, pflheight: *mut f32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDeviceRect(::windows_core::IUnknown); -#[cfg(feature = "Win32_System_Com")] -impl IDeviceRect {} +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IDeviceRect, + IDeviceRect_Vtbl, + 0x3050f6d5_98b5_11cf_bb82_00aa00bdce0b +); #[cfg(feature = "Win32_System_Com")] ::windows_core::imp::interface_hierarchy!(IDeviceRect, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IDeviceRect { - type Vtable = IDeviceRect_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IDeviceRect { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3050f6d5_98b5_11cf_bb82_00aa00bdce0b); -} +impl IDeviceRect {} #[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IDeviceRect_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDithererImpl(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDithererImpl, IDithererImpl_Vtbl, 0x7c48e840_3910_11d0_86fc_00a0c913f750); +::windows_core::imp::interface_hierarchy!(IDithererImpl, ::windows_core::IUnknown); impl IDithererImpl { #[doc = "Required features: `\"Win32_Graphics_Gdi\"`"] #[cfg(feature = "Win32_Graphics_Gdi")] @@ -685,13 +632,6 @@ impl IDithererImpl { (::windows_core::Interface::vtable(self).SetEventSink)(::windows_core::Interface::as_raw(self), peventsink.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IDithererImpl, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDithererImpl { - type Vtable = IDithererImpl_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDithererImpl { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7c48e840_3910_11d0_86fc_00a0c913f750); -} #[repr(C)] #[doc(hidden)] pub struct IDithererImpl_Vtbl { @@ -702,9 +642,8 @@ pub struct IDithererImpl_Vtbl { SetDestColorTable: usize, pub SetEventSink: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, peventsink: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDocObjectService(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDocObjectService, IDocObjectService_Vtbl, 0x3050f801_98b5_11cf_bb82_00aa00bdce0b); +::windows_core::imp::interface_hierarchy!(IDocObjectService, ::windows_core::IUnknown); impl IDocObjectService { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -773,13 +712,6 @@ impl IDocObjectService { (::windows_core::Interface::vtable(self).IsErrorUrl)(::windows_core::Interface::as_raw(self), lpszurl.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IDocObjectService, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDocObjectService { - type Vtable = IDocObjectService_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDocObjectService { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3050f801_98b5_11cf_bb82_00aa00bdce0b); -} #[repr(C)] #[doc(hidden)] pub struct IDocObjectService_Vtbl { @@ -810,11 +742,15 @@ pub struct IDocObjectService_Vtbl { pub GetUrlSearchComponent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsearch: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub IsErrorUrl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpszurl: ::windows_core::PCWSTR, pfiserror: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDownloadBehavior(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IDownloadBehavior, + IDownloadBehavior_Vtbl, + 0x3050f5bd_98b5_11cf_bb82_00aa00bdce0b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IDownloadBehavior, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IDownloadBehavior { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -828,16 +764,6 @@ impl IDownloadBehavior { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IDownloadBehavior, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IDownloadBehavior { - type Vtable = IDownloadBehavior_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IDownloadBehavior { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3050f5bd_98b5_11cf_bb82_00aa00bdce0b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IDownloadBehavior_Vtbl { @@ -847,9 +773,8 @@ pub struct IDownloadBehavior_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] startDownload: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IDownloadManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IDownloadManager, IDownloadManager_Vtbl, 0x988934a4_064b_11d3_bb80_00104b35e7f9); +::windows_core::imp::interface_hierarchy!(IDownloadManager, ::windows_core::IUnknown); impl IDownloadManager { #[doc = "Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_Security\"`, `\"Win32_System_Com_StructuredStorage\"`"] #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_Security", feature = "Win32_System_Com_StructuredStorage"))] @@ -863,13 +788,6 @@ impl IDownloadManager { (::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::imp::interface_hierarchy!(IDownloadManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IDownloadManager { - type Vtable = IDownloadManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IDownloadManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x988934a4_064b_11d3_bb80_00104b35e7f9); -} #[repr(C)] #[doc(hidden)] pub struct IDownloadManager_Vtbl { @@ -879,9 +797,8 @@ pub struct IDownloadManager_Vtbl { #[cfg(not(all(feature = "Win32_Graphics_Gdi", feature = "Win32_Security", feature = "Win32_System_Com_StructuredStorage")))] Download: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumManagerFrames(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumManagerFrames, IEnumManagerFrames_Vtbl, 0x3caa826a_9b1f_4a79_bc81_f0430ded1648); +::windows_core::imp::interface_hierarchy!(IEnumManagerFrames, ::windows_core::IUnknown); impl IEnumManagerFrames { pub unsafe fn Next(&self, ppwindows: &mut [*mut super::super::Foundation::HWND], pceltfetched: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), ppwindows.len().try_into().unwrap(), ::core::mem::transmute(ppwindows.as_ptr()), pceltfetched).ok() @@ -901,13 +818,6 @@ impl IEnumManagerFrames { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumManagerFrames, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumManagerFrames { - type Vtable = IEnumManagerFrames_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumManagerFrames { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3caa826a_9b1f_4a79_bc81_f0430ded1648); -} #[repr(C)] #[doc(hidden)] pub struct IEnumManagerFrames_Vtbl { @@ -918,9 +828,8 @@ pub struct IEnumManagerFrames_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumOpenServiceActivity(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumOpenServiceActivity, IEnumOpenServiceActivity_Vtbl, 0xa436d7d2_17c3_4ef4_a1e8_5c86faff26c0); +::windows_core::imp::interface_hierarchy!(IEnumOpenServiceActivity, ::windows_core::IUnknown); impl IEnumOpenServiceActivity { pub unsafe fn Next(&self, rgelt: &mut [::core::option::Option], pceltfetched: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), ::core::mem::transmute(rgelt.as_ptr()), pceltfetched).ok() @@ -936,13 +845,6 @@ impl IEnumOpenServiceActivity { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumOpenServiceActivity, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumOpenServiceActivity { - type Vtable = IEnumOpenServiceActivity_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumOpenServiceActivity { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa436d7d2_17c3_4ef4_a1e8_5c86faff26c0); -} #[repr(C)] #[doc(hidden)] pub struct IEnumOpenServiceActivity_Vtbl { @@ -952,9 +854,8 @@ pub struct IEnumOpenServiceActivity_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumOpenServiceActivityCategory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumOpenServiceActivityCategory, IEnumOpenServiceActivityCategory_Vtbl, 0x33627a56_8c9a_4430_8fd1_b5f5c771afb6); +::windows_core::imp::interface_hierarchy!(IEnumOpenServiceActivityCategory, ::windows_core::IUnknown); impl IEnumOpenServiceActivityCategory { pub unsafe fn Next(&self, rgelt: &mut [::core::option::Option], pceltfetched: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), rgelt.len().try_into().unwrap(), ::core::mem::transmute(rgelt.as_ptr()), pceltfetched).ok() @@ -970,13 +871,6 @@ impl IEnumOpenServiceActivityCategory { (::windows_core::Interface::vtable(self).Clone)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IEnumOpenServiceActivityCategory, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumOpenServiceActivityCategory { - type Vtable = IEnumOpenServiceActivityCategory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumOpenServiceActivityCategory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x33627a56_8c9a_4430_8fd1_b5f5c771afb6); -} #[repr(C)] #[doc(hidden)] pub struct IEnumOpenServiceActivityCategory_Vtbl { @@ -986,9 +880,8 @@ pub struct IEnumOpenServiceActivityCategory_Vtbl { pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IEnumSTATURL(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IEnumSTATURL, IEnumSTATURL_Vtbl, 0x3c374a42_bae4_11cf_bf7d_00aa006946ee); +::windows_core::imp::interface_hierarchy!(IEnumSTATURL, ::windows_core::IUnknown); impl IEnumSTATURL { pub unsafe fn Next(&self, celt: u32, rgelt: *mut STATURL, pceltfetched: *mut u32) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Next)(::windows_core::Interface::as_raw(self), celt, rgelt, pceltfetched).ok() @@ -1010,13 +903,6 @@ impl IEnumSTATURL { (::windows_core::Interface::vtable(self).SetFilter)(::windows_core::Interface::as_raw(self), poszfilter.into_param().abi(), dwflags).ok() } } -::windows_core::imp::interface_hierarchy!(IEnumSTATURL, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IEnumSTATURL { - type Vtable = IEnumSTATURL_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IEnumSTATURL { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3c374a42_bae4_11cf_bf7d_00aa006946ee); -} #[repr(C)] #[doc(hidden)] pub struct IEnumSTATURL_Vtbl { @@ -1027,9 +913,8 @@ pub struct IEnumSTATURL_Vtbl { pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, poszfilter: ::windows_core::PCWSTR, dwflags: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IExtensionValidation(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IExtensionValidation, IExtensionValidation_Vtbl, 0x7d33f73d_8525_4e0f_87db_830288baff44); +::windows_core::imp::interface_hierarchy!(IExtensionValidation, ::windows_core::IUnknown); impl IExtensionValidation { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_Web_MsHtml\"`"] #[cfg(all(feature = "Win32_System_Com", feature = "Win32_Web_MsHtml"))] @@ -1048,13 +933,6 @@ impl IExtensionValidation { (::windows_core::Interface::vtable(self).DisplayName)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IExtensionValidation, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IExtensionValidation { - type Vtable = IExtensionValidation_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IExtensionValidation { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7d33f73d_8525_4e0f_87db_830288baff44); -} #[repr(C)] #[doc(hidden)] pub struct IExtensionValidation_Vtbl { @@ -1065,9 +943,8 @@ pub struct IExtensionValidation_Vtbl { Validate: usize, pub DisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, displayname: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHTMLPersistData(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IHTMLPersistData, IHTMLPersistData_Vtbl, 0x3050f4c5_98b5_11cf_bb82_00aa00bdce0b); +::windows_core::imp::interface_hierarchy!(IHTMLPersistData, ::windows_core::IUnknown); impl IHTMLPersistData { pub unsafe fn save(&self, punk: P0, ltype: i32) -> ::windows_core::Result where @@ -1088,13 +965,6 @@ impl IHTMLPersistData { (::windows_core::Interface::vtable(self).queryType)(::windows_core::Interface::as_raw(self), ltype, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IHTMLPersistData, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHTMLPersistData { - type Vtable = IHTMLPersistData_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHTMLPersistData { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3050f4c5_98b5_11cf_bb82_00aa00bdce0b); -} #[repr(C)] #[doc(hidden)] pub struct IHTMLPersistData_Vtbl { @@ -1103,11 +973,15 @@ pub struct IHTMLPersistData_Vtbl { pub load: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punk: *mut ::core::ffi::c_void, ltype: i32, fdodefault: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub queryType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ltype: i32, pfsupportstype: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHTMLPersistDataOM(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IHTMLPersistDataOM, + IHTMLPersistDataOM_Vtbl, + 0x3050f4c0_98b5_11cf_bb82_00aa00bdce0b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IHTMLPersistDataOM, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IHTMLPersistDataOM { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1141,16 +1015,6 @@ impl IHTMLPersistDataOM { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IHTMLPersistDataOM, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IHTMLPersistDataOM { - type Vtable = IHTMLPersistDataOM_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IHTMLPersistDataOM { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3050f4c0_98b5_11cf_bb82_00aa00bdce0b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IHTMLPersistDataOM_Vtbl { @@ -1169,11 +1033,15 @@ pub struct IHTMLPersistDataOM_Vtbl { setAttribute: usize, pub removeAttribute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHTMLUserDataOM(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IHTMLUserDataOM, + IHTMLUserDataOM_Vtbl, + 0x3050f48f_98b5_11cf_bb82_00aa00bdce0b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IHTMLUserDataOM, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IHTMLUserDataOM { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -1229,16 +1097,6 @@ impl IHTMLUserDataOM { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IHTMLUserDataOM, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IHTMLUserDataOM { - type Vtable = IHTMLUserDataOM_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IHTMLUserDataOM { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3050f48f_98b5_11cf_bb82_00aa00bdce0b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IHTMLUserDataOM_Vtbl { @@ -1261,11 +1119,15 @@ pub struct IHTMLUserDataOM_Vtbl { pub Setexpires: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstr: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub expires: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstr: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHeaderFooter(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IHeaderFooter, + IHeaderFooter_Vtbl, + 0x3050f6ce_98b5_11cf_bb82_00aa00bdce0b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IHeaderFooter, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IHeaderFooter { pub unsafe fn htmlHead(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -1372,16 +1234,6 @@ impl IHeaderFooter { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IHeaderFooter, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IHeaderFooter { - type Vtable = IHeaderFooter_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IHeaderFooter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3050f6ce_98b5_11cf_bb82_00aa00bdce0b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IHeaderFooter_Vtbl { @@ -1409,11 +1261,15 @@ pub struct IHeaderFooter_Vtbl { pub SettimeLong: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, v: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub timeLong: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, p: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHeaderFooter2(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IHeaderFooter2, + IHeaderFooter2_Vtbl, + 0x305104a5_98b5_11cf_bb82_00aa00bdce0b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IHeaderFooter2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IHeaderFooter); #[cfg(feature = "Win32_System_Com")] impl IHeaderFooter2 { pub unsafe fn htmlHead(&self) -> ::windows_core::Result<::windows_core::BSTR> { @@ -1530,16 +1386,6 @@ impl IHeaderFooter2 { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IHeaderFooter2, ::windows_core::IUnknown, super::super::System::Com::IDispatch, IHeaderFooter); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IHeaderFooter2 { - type Vtable = IHeaderFooter2_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IHeaderFooter2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x305104a5_98b5_11cf_bb82_00aa00bdce0b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IHeaderFooter2_Vtbl { @@ -1547,11 +1393,15 @@ pub struct IHeaderFooter2_Vtbl { pub Setfont: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, v: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub font: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, p: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHomePage(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IHomePage, + IHomePage_Vtbl, + 0x766bf2af_d650_11d1_9811_00c04fc31d2e +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IHomePage, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IHomePage { pub unsafe fn navigateHomePage(&self) -> ::windows_core::Result<()> { @@ -1572,16 +1422,6 @@ impl IHomePage { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IHomePage, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IHomePage { - type Vtable = IHomePage_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IHomePage { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x766bf2af_d650_11d1_9811_00c04fc31d2e); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IHomePage_Vtbl { @@ -1590,9 +1430,8 @@ pub struct IHomePage_Vtbl { pub setHomePage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrurl: ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub isHomePage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrurl: ::std::mem::MaybeUninit<::windows_core::BSTR>, p: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IHomePageSetting(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IHomePageSetting, IHomePageSetting_Vtbl, 0xfdfc244f_18fa_4ff2_b08e_1d618f3ffbe4); +::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 @@ -1613,13 +1452,6 @@ impl IHomePageSetting { (::windows_core::Interface::vtable(self).SetHomePageToBrowserDefault)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IHomePageSetting, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IHomePageSetting { - type Vtable = IHomePageSetting_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IHomePageSetting { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xfdfc244f_18fa_4ff2_b08e_1d618f3ffbe4); -} #[repr(C)] #[doc(hidden)] pub struct IHomePageSetting_Vtbl { @@ -1628,11 +1460,15 @@ pub struct IHomePageSetting_Vtbl { pub IsHomePage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uri: ::windows_core::PCWSTR, isdefault: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub SetHomePageToBrowserDefault: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIEWebDriverManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IIEWebDriverManager, + IIEWebDriverManager_Vtbl, + 0xbd1dc630_6590_4ca2_a293_6bc72b2438d8 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IIEWebDriverManager, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IIEWebDriverManager { pub unsafe fn ExecuteCommand(&self, command: P0) -> ::windows_core::Result<::windows_core::PWSTR> @@ -1644,27 +1480,21 @@ impl IIEWebDriverManager { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IIEWebDriverManager, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IIEWebDriverManager { - type Vtable = IIEWebDriverManager_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IIEWebDriverManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbd1dc630_6590_4ca2_a293_6bc72b2438d8); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IIEWebDriverManager_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, pub ExecuteCommand: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, command: ::windows_core::PCWSTR, response: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIEWebDriverSite(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IIEWebDriverSite, + IIEWebDriverSite_Vtbl, + 0xffb84444_453d_4fbc_9f9d_8db5c471ec75 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IIEWebDriverSite, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IIEWebDriverSite { pub unsafe fn WindowOperation(&self, operationcode: u32, hwnd: u32) -> ::windows_core::Result<()> { @@ -1688,16 +1518,6 @@ impl IIEWebDriverSite { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IIEWebDriverSite, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IIEWebDriverSite { - type Vtable = IIEWebDriverSite_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IIEWebDriverSite { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xffb84444_453d_4fbc_9f9d_8db5c471ec75); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IIEWebDriverSite_Vtbl { @@ -1709,9 +1529,8 @@ pub struct IIEWebDriverSite_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] GetCapabilityValue: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IImageDecodeEventSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IImageDecodeEventSink, IImageDecodeEventSink_Vtbl, 0xbaa342a0_2ded_11d0_86f4_00a0c913f750); +::windows_core::imp::interface_hierarchy!(IImageDecodeEventSink, ::windows_core::IUnknown); impl IImageDecodeEventSink { pub unsafe fn GetSurface(&self, nwidth: i32, nheight: i32, bfid: *const ::windows_core::GUID, npasses: u32, dwhints: u32) -> ::windows_core::Result<::windows_core::IUnknown> { let mut result__ = ::std::mem::zeroed(); @@ -1736,13 +1555,6 @@ impl IImageDecodeEventSink { (::windows_core::Interface::vtable(self).OnProgress)(::windows_core::Interface::as_raw(self), pbounds, bcomplete.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IImageDecodeEventSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IImageDecodeEventSink { - type Vtable = IImageDecodeEventSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IImageDecodeEventSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbaa342a0_2ded_11d0_86f4_00a0c913f750); -} #[repr(C)] #[doc(hidden)] pub struct IImageDecodeEventSink_Vtbl { @@ -1754,9 +1566,8 @@ pub struct IImageDecodeEventSink_Vtbl { pub OnPalette: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub OnProgress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbounds: *const super::super::Foundation::RECT, bcomplete: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IImageDecodeEventSink2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IImageDecodeEventSink2, IImageDecodeEventSink2_Vtbl, 0x8ebd8a57_8a96_48c9_84a6_962e2db9c931); +::windows_core::imp::interface_hierarchy!(IImageDecodeEventSink2, ::windows_core::IUnknown, IImageDecodeEventSink); impl IImageDecodeEventSink2 { pub unsafe fn GetSurface(&self, nwidth: i32, nheight: i32, bfid: *const ::windows_core::GUID, npasses: u32, dwhints: u32) -> ::windows_core::Result<::windows_core::IUnknown> { let mut result__ = ::std::mem::zeroed(); @@ -1785,22 +1596,14 @@ impl IImageDecodeEventSink2 { (::windows_core::Interface::vtable(self).IsAlphaPremultRequired)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IImageDecodeEventSink2, ::windows_core::IUnknown, IImageDecodeEventSink); -unsafe impl ::windows_core::Interface for IImageDecodeEventSink2 { - type Vtable = IImageDecodeEventSink2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IImageDecodeEventSink2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8ebd8a57_8a96_48c9_84a6_962e2db9c931); -} #[repr(C)] #[doc(hidden)] pub struct IImageDecodeEventSink2_Vtbl { pub base__: IImageDecodeEventSink_Vtbl, pub IsAlphaPremultRequired: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfpremultalpha: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IImageDecodeFilter(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IImageDecodeFilter, IImageDecodeFilter_Vtbl, 0xa3ccedf3_2de2_11d0_86f4_00a0c913f750); +::windows_core::imp::interface_hierarchy!(IImageDecodeFilter, ::windows_core::IUnknown); impl IImageDecodeFilter { pub unsafe fn Initialize(&self, peventsink: P0) -> ::windows_core::Result<()> where @@ -1820,13 +1623,6 @@ impl IImageDecodeFilter { (::windows_core::Interface::vtable(self).Terminate)(::windows_core::Interface::as_raw(self), hrstatus).ok() } } -::windows_core::imp::interface_hierarchy!(IImageDecodeFilter, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IImageDecodeFilter { - type Vtable = IImageDecodeFilter_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IImageDecodeFilter { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xa3ccedf3_2de2_11d0_86f4_00a0c913f750); -} #[repr(C)] #[doc(hidden)] pub struct IImageDecodeFilter_Vtbl { @@ -1838,11 +1634,15 @@ pub struct IImageDecodeFilter_Vtbl { Process: usize, pub Terminate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hrstatus: ::windows_core::HRESULT) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IIntelliForms(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IIntelliForms, + IIntelliForms_Vtbl, + 0x9b9f68e6_1aaa_11d2_bca5_00c04fd929db +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IIntelliForms, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl IIntelliForms { pub unsafe fn enabled(&self) -> ::windows_core::Result { @@ -1857,16 +1657,6 @@ impl IIntelliForms { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IIntelliForms, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IIntelliForms { - type Vtable = IIntelliForms_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IIntelliForms { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9b9f68e6_1aaa_11d2_bca5_00c04fd929db); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IIntelliForms_Vtbl { @@ -1874,59 +1664,47 @@ pub struct IIntelliForms_Vtbl { pub enabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, pub Setenabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bval: super::super::Foundation::VARIANT_BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInternetExplorerManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IInternetExplorerManager, IInternetExplorerManager_Vtbl, 0xacc84351_04ff_44f9_b23f_655ed168c6d5); +::windows_core::imp::interface_hierarchy!(IInternetExplorerManager, ::windows_core::IUnknown); impl IInternetExplorerManager { pub unsafe fn CreateObject(&self, dwconfig: u32, pszurl: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IInternetExplorerManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInternetExplorerManager { - type Vtable = IInternetExplorerManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInternetExplorerManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xacc84351_04ff_44f9_b23f_655ed168c6d5); -} #[repr(C)] #[doc(hidden)] pub struct IInternetExplorerManager_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub CreateObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwconfig: u32, pszurl: ::windows_core::PCWSTR, riid: *const ::windows_core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IInternetExplorerManager2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IInternetExplorerManager2, IInternetExplorerManager2_Vtbl, 0xdfbb5136_9259_4895_b4a7_c1934429919a); +::windows_core::imp::interface_hierarchy!(IInternetExplorerManager2, ::windows_core::IUnknown); impl IInternetExplorerManager2 { pub unsafe fn EnumFrameWindows(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).EnumFrameWindows)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IInternetExplorerManager2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IInternetExplorerManager2 { - type Vtable = IInternetExplorerManager2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IInternetExplorerManager2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xdfbb5136_9259_4895_b4a7_c1934429919a); -} #[repr(C)] #[doc(hidden)] pub struct IInternetExplorerManager2_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub EnumFrameWindows: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILayoutRect(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + ILayoutRect, + ILayoutRect_Vtbl, + 0x3050f665_98b5_11cf_bb82_00aa00bdce0b +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(ILayoutRect, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl ILayoutRect { pub unsafe fn SetnextRect(&self, bstrelementid: P0) -> ::windows_core::Result<()> @@ -1992,16 +1770,6 @@ impl ILayoutRect { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(ILayoutRect, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for ILayoutRect { - type Vtable = ILayoutRect_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for ILayoutRect { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3050f665_98b5_11cf_bb82_00aa00bdce0b); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct ILayoutRect_Vtbl { @@ -2033,9 +1801,8 @@ pub struct ILayoutRect_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] contentDocument: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMapMIMEToCLSID(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMapMIMEToCLSID, IMapMIMEToCLSID_Vtbl, 0xd9e89500_30fa_11d0_b724_00aa006c1a01); +::windows_core::imp::interface_hierarchy!(IMapMIMEToCLSID, ::windows_core::IUnknown); impl IMapMIMEToCLSID { pub unsafe fn EnableDefaultMappings(&self, benable: P0) -> ::windows_core::Result<()> where @@ -2056,13 +1823,6 @@ impl IMapMIMEToCLSID { (::windows_core::Interface::vtable(self).SetMapping)(::windows_core::Interface::as_raw(self), pszmimetype.into_param().abi(), dwmapmode, clsid).ok() } } -::windows_core::imp::interface_hierarchy!(IMapMIMEToCLSID, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMapMIMEToCLSID { - type Vtable = IMapMIMEToCLSID_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMapMIMEToCLSID { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd9e89500_30fa_11d0_b724_00aa006c1a01); -} #[repr(C)] #[doc(hidden)] pub struct IMapMIMEToCLSID_Vtbl { @@ -2071,9 +1831,8 @@ pub struct IMapMIMEToCLSID_Vtbl { pub MapMIMEToCLSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszmimetype: ::windows_core::PCWSTR, pclsid: *const ::windows_core::GUID) -> ::windows_core::HRESULT, pub SetMapping: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszmimetype: ::windows_core::PCWSTR, dwmapmode: u32, clsid: *const ::windows_core::GUID) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IMediaActivityNotifySite(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IMediaActivityNotifySite, IMediaActivityNotifySite_Vtbl, 0x8165cfef_179d_46c2_bc71_3fa726dc1f8d); +::windows_core::imp::interface_hierarchy!(IMediaActivityNotifySite, ::windows_core::IUnknown); impl IMediaActivityNotifySite { pub unsafe fn OnMediaActivityStarted(&self, mediaactivitytype: MEDIA_ACTIVITY_NOTIFY_TYPE) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).OnMediaActivityStarted)(::windows_core::Interface::as_raw(self), mediaactivitytype).ok() @@ -2082,13 +1841,6 @@ impl IMediaActivityNotifySite { (::windows_core::Interface::vtable(self).OnMediaActivityStopped)(::windows_core::Interface::as_raw(self), mediaactivitytype).ok() } } -::windows_core::imp::interface_hierarchy!(IMediaActivityNotifySite, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IMediaActivityNotifySite { - type Vtable = IMediaActivityNotifySite_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IMediaActivityNotifySite { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8165cfef_179d_46c2_bc71_3fa726dc1f8d); -} #[repr(C)] #[doc(hidden)] pub struct IMediaActivityNotifySite_Vtbl { @@ -2096,9 +1848,8 @@ pub struct IMediaActivityNotifySite_Vtbl { pub OnMediaActivityStarted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mediaactivitytype: MEDIA_ACTIVITY_NOTIFY_TYPE) -> ::windows_core::HRESULT, pub OnMediaActivityStopped: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mediaactivitytype: MEDIA_ACTIVITY_NOTIFY_TYPE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOpenService(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOpenService, IOpenService_Vtbl, 0xc2952ed1_6a89_4606_925f_1ed8b4be0630); +::windows_core::imp::interface_hierarchy!(IOpenService, ::windows_core::IUnknown); impl IOpenService { pub unsafe fn IsDefault(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2116,13 +1867,6 @@ impl IOpenService { (::windows_core::Interface::vtable(self).GetID)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IOpenService, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOpenService { - type Vtable = IOpenService_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOpenService { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc2952ed1_6a89_4606_925f_1ed8b4be0630); -} #[repr(C)] #[doc(hidden)] pub struct IOpenService_Vtbl { @@ -2131,9 +1875,8 @@ pub struct IOpenService_Vtbl { pub SetDefault: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fdefault: super::super::Foundation::BOOL, hwnd: super::super::Foundation::HWND) -> ::windows_core::HRESULT, pub GetID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrid: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOpenServiceActivity(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOpenServiceActivity, IOpenServiceActivity_Vtbl, 0x13645c88_221a_4905_8ed1_4f5112cfc108); +::windows_core::imp::interface_hierarchy!(IOpenServiceActivity, ::windows_core::IUnknown, IOpenService); impl IOpenServiceActivity { pub unsafe fn IsDefault(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2247,13 +1990,6 @@ impl IOpenServiceActivity { (::windows_core::Interface::vtable(self).SetEnabled)(::windows_core::Interface::as_raw(self), fenable.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IOpenServiceActivity, ::windows_core::IUnknown, IOpenService); -unsafe impl ::windows_core::Interface for IOpenServiceActivity { - type Vtable = IOpenServiceActivity_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOpenServiceActivity { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x13645c88_221a_4905_8ed1_4f5112cfc108); -} #[repr(C)] #[doc(hidden)] pub struct IOpenServiceActivity_Vtbl { @@ -2280,9 +2016,8 @@ pub struct IOpenServiceActivity_Vtbl { pub IsEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfisenabled: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub SetEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOpenServiceActivityCategory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOpenServiceActivityCategory, IOpenServiceActivityCategory_Vtbl, 0x850af9d6_7309_40b5_bdb8_786c106b2153); +::windows_core::imp::interface_hierarchy!(IOpenServiceActivityCategory, ::windows_core::IUnknown); impl IOpenServiceActivityCategory { pub unsafe fn HasDefaultActivity(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2312,13 +2047,6 @@ impl IOpenServiceActivityCategory { (::windows_core::Interface::vtable(self).GetActivityEnumerator)(::windows_core::Interface::as_raw(self), pinput.into_param().abi(), poutput.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IOpenServiceActivityCategory, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOpenServiceActivityCategory { - type Vtable = IOpenServiceActivityCategory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOpenServiceActivityCategory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x850af9d6_7309_40b5_bdb8_786c106b2153); -} #[repr(C)] #[doc(hidden)] pub struct IOpenServiceActivityCategory_Vtbl { @@ -2329,9 +2057,8 @@ pub struct IOpenServiceActivityCategory_Vtbl { pub GetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub GetActivityEnumerator: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinput: *mut ::core::ffi::c_void, poutput: *mut ::core::ffi::c_void, ppenumactivity: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOpenServiceActivityInput(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOpenServiceActivityInput, IOpenServiceActivityInput_Vtbl, 0x75cb4db9_6da0_4da3_83ce_422b6a433346); +::windows_core::imp::interface_hierarchy!(IOpenServiceActivityInput, ::windows_core::IUnknown); impl IOpenServiceActivityInput { pub unsafe fn GetVariable(&self, pwzvariablename: P0, pwzvariabletype: P1) -> ::windows_core::Result<::windows_core::BSTR> where @@ -2354,13 +2081,6 @@ impl IOpenServiceActivityInput { (::windows_core::Interface::vtable(self).GetType)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IOpenServiceActivityInput, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOpenServiceActivityInput { - type Vtable = IOpenServiceActivityInput_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOpenServiceActivityInput { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x75cb4db9_6da0_4da3_83ce_422b6a433346); -} #[repr(C)] #[doc(hidden)] pub struct IOpenServiceActivityInput_Vtbl { @@ -2369,9 +2089,8 @@ pub struct IOpenServiceActivityInput_Vtbl { pub HasVariable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwzvariablename: ::windows_core::PCWSTR, pwzvariabletype: ::windows_core::PCWSTR, pfhasvariable: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, pub GetType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptype: *mut OpenServiceActivityContentType) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOpenServiceActivityManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOpenServiceActivityManager, IOpenServiceActivityManager_Vtbl, 0x8a2d0a9d_e920_4bdc_a291_d30f650bc4f1); +::windows_core::imp::interface_hierarchy!(IOpenServiceActivityManager, ::windows_core::IUnknown); impl IOpenServiceActivityManager { pub unsafe fn GetCategoryEnumerator(&self, etype: OpenServiceActivityContentType) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -2397,13 +2116,6 @@ impl IOpenServiceActivityManager { (::windows_core::Interface::vtable(self).GetVersionCookie)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IOpenServiceActivityManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOpenServiceActivityManager { - type Vtable = IOpenServiceActivityManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOpenServiceActivityManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x8a2d0a9d_e920_4bdc_a291_d30f650bc4f1); -} #[repr(C)] #[doc(hidden)] pub struct IOpenServiceActivityManager_Vtbl { @@ -2413,9 +2125,8 @@ pub struct IOpenServiceActivityManager_Vtbl { pub GetActivityByHomepageAndCategory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwzhomepage: ::windows_core::PCWSTR, pwzcategory: ::windows_core::PCWSTR, ppactivity: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetVersionCookie: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwversioncookie: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOpenServiceActivityOutputContext(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOpenServiceActivityOutputContext, IOpenServiceActivityOutputContext_Vtbl, 0xe289deab_f709_49a9_b99e_282364074571); +::windows_core::imp::interface_hierarchy!(IOpenServiceActivityOutputContext, ::windows_core::IUnknown); impl IOpenServiceActivityOutputContext { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -2441,13 +2152,6 @@ impl IOpenServiceActivityOutputContext { (::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__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IOpenServiceActivityOutputContext, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOpenServiceActivityOutputContext { - type Vtable = IOpenServiceActivityOutputContext_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOpenServiceActivityOutputContext { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe289deab_f709_49a9_b99e_282364074571); -} #[repr(C)] #[doc(hidden)] pub struct IOpenServiceActivityOutputContext_Vtbl { @@ -2461,9 +2165,8 @@ pub struct IOpenServiceActivityOutputContext_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] CanNavigate: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IOpenServiceManager(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IOpenServiceManager, IOpenServiceManager_Vtbl, 0x5664125f_4e10_4e90_98e4_e4513d955a14); +::windows_core::imp::interface_hierarchy!(IOpenServiceManager, ::windows_core::IUnknown); impl IOpenServiceManager { pub unsafe fn InstallService(&self, pwzserviceurl: P0) -> ::windows_core::Result where @@ -2486,13 +2189,6 @@ impl IOpenServiceManager { (::windows_core::Interface::vtable(self).GetServiceByID)(::windows_core::Interface::as_raw(self), pwzid.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IOpenServiceManager, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IOpenServiceManager { - type Vtable = IOpenServiceManager_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IOpenServiceManager { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5664125f_4e10_4e90_98e4_e4513d955a14); -} #[repr(C)] #[doc(hidden)] pub struct IOpenServiceManager_Vtbl { @@ -2501,27 +2197,23 @@ pub struct IOpenServiceManager_Vtbl { pub UninstallService: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pservice: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetServiceByID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwzid: ::windows_core::PCWSTR, ppservice: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPeerFactory(::windows_core::IUnknown); -impl IPeerFactory {} +::windows_core::imp::com_interface!(IPeerFactory, IPeerFactory_Vtbl, 0x6663f9d3_b482_11d1_89c6_00c04fb6bfc4); ::windows_core::imp::interface_hierarchy!(IPeerFactory, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPeerFactory { - type Vtable = IPeerFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPeerFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x6663f9d3_b482_11d1_89c6_00c04fb6bfc4); -} +impl IPeerFactory {} #[repr(C)] #[doc(hidden)] pub struct IPeerFactory_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPersistHistory(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + IPersistHistory, + IPersistHistory_Vtbl, + 0x91a565c1_e38f_11d0_94bf_00a0c9055cbf +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(IPersistHistory, ::windows_core::IUnknown, super::super::System::Com::IPersist); #[cfg(feature = "Win32_System_Com")] impl IPersistHistory { #[doc = "Required features: `\"Win32_System_Com\"`"] @@ -2556,16 +2248,6 @@ impl IPersistHistory { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(IPersistHistory, ::windows_core::IUnknown, super::super::System::Com::IPersist); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for IPersistHistory { - type Vtable = IPersistHistory_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for IPersistHistory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x91a565c1_e38f_11d0_94bf_00a0c9055cbf); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct IPersistHistory_Vtbl { @@ -2581,9 +2263,8 @@ pub struct IPersistHistory_Vtbl { pub SetPositionCookie: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwpositioncookie: u32) -> ::windows_core::HRESULT, pub GetPositionCookie: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwpositioncookie: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintTaskRequestFactory(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPrintTaskRequestFactory, IPrintTaskRequestFactory_Vtbl, 0xbb516745_8c34_4f8b_9605_684dcb144be5); +::windows_core::imp::interface_hierarchy!(IPrintTaskRequestFactory, ::windows_core::IUnknown); impl IPrintTaskRequestFactory { pub unsafe fn CreatePrintTaskRequest(&self, pprinttaskrequesthandler: P0) -> ::windows_core::Result<()> where @@ -2592,22 +2273,14 @@ impl IPrintTaskRequestFactory { (::windows_core::Interface::vtable(self).CreatePrintTaskRequest)(::windows_core::Interface::as_raw(self), pprinttaskrequesthandler.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IPrintTaskRequestFactory, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintTaskRequestFactory { - type Vtable = IPrintTaskRequestFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintTaskRequestFactory { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbb516745_8c34_4f8b_9605_684dcb144be5); -} #[repr(C)] #[doc(hidden)] pub struct IPrintTaskRequestFactory_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub CreatePrintTaskRequest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pprinttaskrequesthandler: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPrintTaskRequestHandler(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPrintTaskRequestHandler, IPrintTaskRequestHandler_Vtbl, 0x191cd340_cf36_44ff_bd53_d1b701799d9b); +::windows_core::imp::interface_hierarchy!(IPrintTaskRequestHandler, ::windows_core::IUnknown); impl IPrintTaskRequestHandler { pub unsafe fn HandlePrintTaskRequest(&self, pprinttaskrequest: P0) -> ::windows_core::Result<()> where @@ -2616,22 +2289,14 @@ impl IPrintTaskRequestHandler { (::windows_core::Interface::vtable(self).HandlePrintTaskRequest)(::windows_core::Interface::as_raw(self), pprinttaskrequest.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IPrintTaskRequestHandler, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPrintTaskRequestHandler { - type Vtable = IPrintTaskRequestHandler_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPrintTaskRequestHandler { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x191cd340_cf36_44ff_bd53_d1b701799d9b); -} #[repr(C)] #[doc(hidden)] pub struct IPrintTaskRequestHandler_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub HandlePrintTaskRequest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pprinttaskrequest: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IScrollableContextMenu(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IScrollableContextMenu, IScrollableContextMenu_Vtbl, 0x30510854_98b5_11cf_bb82_00aa00bdce0b); +::windows_core::imp::interface_hierarchy!(IScrollableContextMenu, ::windows_core::IUnknown); impl IScrollableContextMenu { pub unsafe fn AddItem(&self, itemtext: P0, cmdid: u32) -> ::windows_core::Result<()> where @@ -2644,13 +2309,6 @@ impl IScrollableContextMenu { (::windows_core::Interface::vtable(self).ShowModal)(::windows_core::Interface::as_raw(self), x, y, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IScrollableContextMenu, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IScrollableContextMenu { - type Vtable = IScrollableContextMenu_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IScrollableContextMenu { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x30510854_98b5_11cf_bb82_00aa00bdce0b); -} #[repr(C)] #[doc(hidden)] pub struct IScrollableContextMenu_Vtbl { @@ -2658,9 +2316,8 @@ pub struct IScrollableContextMenu_Vtbl { pub AddItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, itemtext: ::windows_core::PCWSTR, cmdid: u32) -> ::windows_core::HRESULT, pub ShowModal: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, x: i32, y: i32, cmdid: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IScrollableContextMenu2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IScrollableContextMenu2, IScrollableContextMenu2_Vtbl, 0xf77e9056_8674_4936_924c_0e4a06fa634a); +::windows_core::imp::interface_hierarchy!(IScrollableContextMenu2, ::windows_core::IUnknown, IScrollableContextMenu); impl IScrollableContextMenu2 { pub unsafe fn AddItem(&self, itemtext: P0, cmdid: u32) -> ::windows_core::Result<()> where @@ -2679,13 +2336,6 @@ impl IScrollableContextMenu2 { (::windows_core::Interface::vtable(self).SetPlacement)(::windows_core::Interface::as_raw(self), scmp).ok() } } -::windows_core::imp::interface_hierarchy!(IScrollableContextMenu2, ::windows_core::IUnknown, IScrollableContextMenu); -unsafe impl ::windows_core::Interface for IScrollableContextMenu2 { - type Vtable = IScrollableContextMenu2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IScrollableContextMenu2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xf77e9056_8674_4936_924c_0e4a06fa634a); -} #[repr(C)] #[doc(hidden)] pub struct IScrollableContextMenu2_Vtbl { @@ -2693,9 +2343,8 @@ pub struct IScrollableContextMenu2_Vtbl { pub AddSeparator: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetPlacement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, scmp: SCROLLABLECONTEXTMENU_PLACEMENT) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISniffStream(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISniffStream, ISniffStream_Vtbl, 0x4ef17940_30e0_11d0_b724_00aa006c1a01); +::windows_core::imp::interface_hierarchy!(ISniffStream, ::windows_core::IUnknown); impl ISniffStream { #[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] @@ -2709,13 +2358,6 @@ impl ISniffStream { (::windows_core::Interface::vtable(self).Peek)(::windows_core::Interface::as_raw(self), pbuffer, nbytes, pnbytesread).ok() } } -::windows_core::imp::interface_hierarchy!(ISniffStream, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISniffStream { - type Vtable = ISniffStream_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISniffStream { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4ef17940_30e0_11d0_b724_00aa006c1a01); -} #[repr(C)] #[doc(hidden)] pub struct ISniffStream_Vtbl { @@ -2726,9 +2368,8 @@ pub struct ISniffStream_Vtbl { Init: usize, pub Peek: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbuffer: *mut ::core::ffi::c_void, nbytes: u32, pnbytesread: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISurfacePresenterFlip(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISurfacePresenterFlip, ISurfacePresenterFlip_Vtbl, 0x30510848_98b5_11cf_bb82_00aa00bdce0b); +::windows_core::imp::interface_hierarchy!(ISurfacePresenterFlip, ::windows_core::IUnknown); impl ISurfacePresenterFlip { pub unsafe fn Present(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).Present)(::windows_core::Interface::as_raw(self)).ok() @@ -2737,13 +2378,6 @@ impl ISurfacePresenterFlip { (::windows_core::Interface::vtable(self).GetBuffer)(::windows_core::Interface::as_raw(self), backbufferindex, riid, ppbuffer).ok() } } -::windows_core::imp::interface_hierarchy!(ISurfacePresenterFlip, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISurfacePresenterFlip { - type Vtable = ISurfacePresenterFlip_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISurfacePresenterFlip { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x30510848_98b5_11cf_bb82_00aa00bdce0b); -} #[repr(C)] #[doc(hidden)] pub struct ISurfacePresenterFlip_Vtbl { @@ -2751,9 +2385,8 @@ pub struct ISurfacePresenterFlip_Vtbl { pub Present: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetBuffer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, backbufferindex: u32, riid: *const ::windows_core::GUID, ppbuffer: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISurfacePresenterFlip2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISurfacePresenterFlip2, ISurfacePresenterFlip2_Vtbl, 0x30510865_98b5_11cf_bb82_00aa00bdce0b); +::windows_core::imp::interface_hierarchy!(ISurfacePresenterFlip2, ::windows_core::IUnknown); impl ISurfacePresenterFlip2 { #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] #[cfg(feature = "Win32_Graphics_Dxgi_Common")] @@ -2761,13 +2394,6 @@ impl ISurfacePresenterFlip2 { (::windows_core::Interface::vtable(self).SetRotation)(::windows_core::Interface::as_raw(self), dxgirotation).ok() } } -::windows_core::imp::interface_hierarchy!(ISurfacePresenterFlip2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISurfacePresenterFlip2 { - type Vtable = ISurfacePresenterFlip2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISurfacePresenterFlip2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x30510865_98b5_11cf_bb82_00aa00bdce0b); -} #[repr(C)] #[doc(hidden)] pub struct ISurfacePresenterFlip2_Vtbl { @@ -2777,9 +2403,8 @@ pub struct ISurfacePresenterFlip2_Vtbl { #[cfg(not(feature = "Win32_Graphics_Dxgi_Common"))] SetRotation: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ISurfacePresenterFlipBuffer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ISurfacePresenterFlipBuffer, ISurfacePresenterFlipBuffer_Vtbl, 0xe43f4a08_8bbc_4665_ac92_c55ce61fd7e7); +::windows_core::imp::interface_hierarchy!(ISurfacePresenterFlipBuffer, ::windows_core::IUnknown); impl ISurfacePresenterFlipBuffer { pub unsafe fn BeginDraw(&self, riid: *const ::windows_core::GUID, ppbuffer: *mut *mut ::core::ffi::c_void) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).BeginDraw)(::windows_core::Interface::as_raw(self), riid, ppbuffer).ok() @@ -2788,13 +2413,6 @@ impl ISurfacePresenterFlipBuffer { (::windows_core::Interface::vtable(self).EndDraw)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(ISurfacePresenterFlipBuffer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ISurfacePresenterFlipBuffer { - type Vtable = ISurfacePresenterFlipBuffer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ISurfacePresenterFlipBuffer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe43f4a08_8bbc_4665_ac92_c55ce61fd7e7); -} #[repr(C)] #[doc(hidden)] pub struct ISurfacePresenterFlipBuffer_Vtbl { @@ -2802,9 +2420,8 @@ pub struct ISurfacePresenterFlipBuffer_Vtbl { pub BeginDraw: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppbuffer: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub EndDraw: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITargetContainer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITargetContainer, ITargetContainer_Vtbl, 0x7847ec01_2bec_11d0_82b4_00a0c90c29c5); +::windows_core::imp::interface_hierarchy!(ITargetContainer, ::windows_core::IUnknown); impl ITargetContainer { pub unsafe fn GetFrameUrl(&self) -> ::windows_core::Result<::windows_core::PWSTR> { let mut result__ = ::std::mem::zeroed(); @@ -2817,13 +2434,6 @@ impl ITargetContainer { (::windows_core::Interface::vtable(self).GetFramesContainer)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITargetContainer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITargetContainer { - type Vtable = ITargetContainer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITargetContainer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7847ec01_2bec_11d0_82b4_00a0c90c29c5); -} #[repr(C)] #[doc(hidden)] pub struct ITargetContainer_Vtbl { @@ -2834,31 +2444,22 @@ pub struct ITargetContainer_Vtbl { #[cfg(not(feature = "Win32_System_Ole"))] GetFramesContainer: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITargetEmbedding(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITargetEmbedding, ITargetEmbedding_Vtbl, 0x548793c0_9e74_11cf_9655_00a0c9034923); +::windows_core::imp::interface_hierarchy!(ITargetEmbedding, ::windows_core::IUnknown); impl ITargetEmbedding { pub unsafe fn GetTargetFrame(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetTargetFrame)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITargetEmbedding, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITargetEmbedding { - type Vtable = ITargetEmbedding_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITargetEmbedding { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x548793c0_9e74_11cf_9655_00a0c9034923); -} #[repr(C)] #[doc(hidden)] pub struct ITargetEmbedding_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetTargetFrame: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pptargetframe: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITargetFrame(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITargetFrame, ITargetFrame_Vtbl, 0xd5f78c80_5252_11cf_90fa_00aa0042106e); +::windows_core::imp::interface_hierarchy!(ITargetFrame, ::windows_core::IUnknown); impl ITargetFrame { pub unsafe fn SetFrameName(&self, pszframename: P0) -> ::windows_core::Result<()> where @@ -2927,13 +2528,6 @@ impl ITargetFrame { (::windows_core::Interface::vtable(self).OnChildFrameDeactivate)(::windows_core::Interface::as_raw(self), punkchildframe.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ITargetFrame, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITargetFrame { - type Vtable = ITargetFrame_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITargetFrame { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xd5f78c80_5252_11cf_90fa_00aa0042106e); -} #[repr(C)] #[doc(hidden)] pub struct ITargetFrame_Vtbl { @@ -2956,9 +2550,8 @@ pub struct ITargetFrame_Vtbl { pub OnChildFrameActivate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punkchildframe: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub OnChildFrameDeactivate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punkchildframe: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITargetFrame2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITargetFrame2, ITargetFrame2_Vtbl, 0x86d52e11_94a8_11d0_82af_00c04fd5ae38); +::windows_core::imp::interface_hierarchy!(ITargetFrame2, ::windows_core::IUnknown); impl ITargetFrame2 { pub unsafe fn SetFrameName(&self, pszframename: P0) -> ::windows_core::Result<()> where @@ -3018,13 +2611,6 @@ impl ITargetFrame2 { (::windows_core::Interface::vtable(self).GetTargetAlias)(::windows_core::Interface::as_raw(self), psztargetname.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITargetFrame2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITargetFrame2 { - type Vtable = ITargetFrame2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITargetFrame2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x86d52e11_94a8_11d0_82af_00c04fd5ae38); -} #[repr(C)] #[doc(hidden)] pub struct ITargetFrame2_Vtbl { @@ -3045,9 +2631,8 @@ pub struct ITargetFrame2_Vtbl { pub FindFrame: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psztargetname: ::windows_core::PCWSTR, dwflags: u32, ppunktargetframe: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetTargetAlias: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psztargetname: ::windows_core::PCWSTR, ppsztargetalias: *mut ::windows_core::PWSTR) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITargetFramePriv(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITargetFramePriv, ITargetFramePriv_Vtbl, 0x9216e421_2bf5_11d0_82b4_00a0c90c29c5); +::windows_core::imp::interface_hierarchy!(ITargetFramePriv, ::windows_core::IUnknown); impl ITargetFramePriv { pub unsafe fn FindFrameDownwards(&self, psztargetname: P0, dwflags: u32) -> ::windows_core::Result<::windows_core::IUnknown> where @@ -3093,13 +2678,6 @@ impl ITargetFramePriv { (::windows_core::Interface::vtable(self).FindBrowserByIndex)(::windows_core::Interface::as_raw(self), dwid, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITargetFramePriv, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITargetFramePriv { - type Vtable = ITargetFramePriv_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITargetFramePriv { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x9216e421_2bf5_11d0_82b4_00a0c90c29c5); -} #[repr(C)] #[doc(hidden)] pub struct ITargetFramePriv_Vtbl { @@ -3114,9 +2692,8 @@ pub struct ITargetFramePriv_Vtbl { NavigateHack: usize, pub FindBrowserByIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwid: u32, ppunkbrowser: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITargetFramePriv2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITargetFramePriv2, ITargetFramePriv2_Vtbl, 0xb2c867e6_69d6_46f2_a611_ded9a4bd7fef); +::windows_core::imp::interface_hierarchy!(ITargetFramePriv2, ::windows_core::IUnknown, ITargetFramePriv); impl ITargetFramePriv2 { pub unsafe fn FindFrameDownwards(&self, psztargetname: P0, dwflags: u32) -> ::windows_core::Result<::windows_core::IUnknown> where @@ -3174,13 +2751,6 @@ impl ITargetFramePriv2 { (::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::imp::interface_hierarchy!(ITargetFramePriv2, ::windows_core::IUnknown, ITargetFramePriv); -unsafe impl ::windows_core::Interface for ITargetFramePriv2 { - type Vtable = ITargetFramePriv2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITargetFramePriv2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xb2c867e6_69d6_46f2_a611_ded9a4bd7fef); -} #[repr(C)] #[doc(hidden)] pub struct ITargetFramePriv2_Vtbl { @@ -3190,9 +2760,8 @@ pub struct ITargetFramePriv2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] AggregatedNavigation2: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITargetNotify(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITargetNotify, ITargetNotify_Vtbl, 0x863a99a0_21bc_11d0_82b4_00a0c90c29c5); +::windows_core::imp::interface_hierarchy!(ITargetNotify, ::windows_core::IUnknown); impl ITargetNotify { pub unsafe fn OnCreate(&self, punkdestination: P0, cbcookie: u32) -> ::windows_core::Result<()> where @@ -3207,13 +2776,6 @@ impl ITargetNotify { (::windows_core::Interface::vtable(self).OnReuse)(::windows_core::Interface::as_raw(self), punkdestination.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ITargetNotify, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITargetNotify { - type Vtable = ITargetNotify_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITargetNotify { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x863a99a0_21bc_11d0_82b4_00a0c90c29c5); -} #[repr(C)] #[doc(hidden)] pub struct ITargetNotify_Vtbl { @@ -3221,9 +2783,8 @@ pub struct ITargetNotify_Vtbl { pub OnCreate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punkdestination: *mut ::core::ffi::c_void, cbcookie: u32) -> ::windows_core::HRESULT, pub OnReuse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punkdestination: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITargetNotify2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITargetNotify2, ITargetNotify2_Vtbl, 0x3050f6b1_98b5_11cf_bb82_00aa00bdce0b); +::windows_core::imp::interface_hierarchy!(ITargetNotify2, ::windows_core::IUnknown, ITargetNotify); impl ITargetNotify2 { pub unsafe fn OnCreate(&self, punkdestination: P0, cbcookie: u32) -> ::windows_core::Result<()> where @@ -3241,22 +2802,14 @@ impl ITargetNotify2 { (::windows_core::Interface::vtable(self).GetOptionString)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(pbstroptions)).ok() } } -::windows_core::imp::interface_hierarchy!(ITargetNotify2, ::windows_core::IUnknown, ITargetNotify); -unsafe impl ::windows_core::Interface for ITargetNotify2 { - type Vtable = ITargetNotify2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITargetNotify2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3050f6b1_98b5_11cf_bb82_00aa00bdce0b); -} #[repr(C)] #[doc(hidden)] pub struct ITargetNotify2_Vtbl { pub base__: ITargetNotify_Vtbl, pub GetOptionString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstroptions: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITimer(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITimer, ITimer_Vtbl, 0x3050f360_98b5_11cf_bb82_00aa00bdce0b); +::windows_core::imp::interface_hierarchy!(ITimer, ::windows_core::IUnknown); impl ITimer { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -3283,13 +2836,6 @@ impl ITimer { (::windows_core::Interface::vtable(self).GetTime)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITimer, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITimer { - type Vtable = ITimer_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITimer { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3050f360_98b5_11cf_bb82_00aa00bdce0b); -} #[repr(C)] #[doc(hidden)] pub struct ITimer_Vtbl { @@ -3305,9 +2851,8 @@ pub struct ITimer_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] GetTime: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITimerEx(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITimerEx, ITimerEx_Vtbl, 0x30510414_98b5_11cf_bb82_00aa00bdce0b); +::windows_core::imp::interface_hierarchy!(ITimerEx, ::windows_core::IUnknown, ITimer); impl ITimerEx { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -3337,22 +2882,14 @@ impl ITimerEx { (::windows_core::Interface::vtable(self).SetMode)(::windows_core::Interface::as_raw(self), dwmode).ok() } } -::windows_core::imp::interface_hierarchy!(ITimerEx, ::windows_core::IUnknown, ITimer); -unsafe impl ::windows_core::Interface for ITimerEx { - type Vtable = ITimerEx_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITimerEx { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x30510414_98b5_11cf_bb82_00aa00bdce0b); -} #[repr(C)] #[doc(hidden)] pub struct ITimerEx_Vtbl { pub base__: ITimer_Vtbl, pub SetMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwmode: u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITimerService(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITimerService, ITimerService_Vtbl, 0x3050f35f_98b5_11cf_bb82_00aa00bdce0b); +::windows_core::imp::interface_hierarchy!(ITimerService, ::windows_core::IUnknown); impl ITimerService { pub unsafe fn CreateTimer(&self, preferencetimer: P0) -> ::windows_core::Result where @@ -3372,13 +2909,6 @@ impl ITimerService { (::windows_core::Interface::vtable(self).SetNamedTimerReference)(::windows_core::Interface::as_raw(self), rguidname, preferencetimer.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(ITimerService, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITimerService { - type Vtable = ITimerService_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITimerService { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3050f35f_98b5_11cf_bb82_00aa00bdce0b); -} #[repr(C)] #[doc(hidden)] pub struct ITimerService_Vtbl { @@ -3387,9 +2917,8 @@ pub struct ITimerService_Vtbl { pub GetNamedTimer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rguidname: *const ::windows_core::GUID, pptimer: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub SetNamedTimerReference: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rguidname: *const ::windows_core::GUID, preferencetimer: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITimerSink(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITimerSink, ITimerSink_Vtbl, 0x3050f361_98b5_11cf_bb82_00aa00bdce0b); +::windows_core::imp::interface_hierarchy!(ITimerSink, ::windows_core::IUnknown); impl ITimerSink { #[doc = "Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Variant\"`"] #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant"))] @@ -3397,13 +2926,6 @@ impl ITimerSink { (::windows_core::Interface::vtable(self).OnTimer)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(vtimeadvise)).ok() } } -::windows_core::imp::interface_hierarchy!(ITimerSink, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITimerSink { - type Vtable = ITimerSink_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITimerSink { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3050f361_98b5_11cf_bb82_00aa00bdce0b); -} #[repr(C)] #[doc(hidden)] pub struct ITimerSink_Vtbl { @@ -3413,9 +2935,8 @@ pub struct ITimerSink_Vtbl { #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Variant")))] OnTimer: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITridentTouchInput(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITridentTouchInput, ITridentTouchInput_Vtbl, 0x30510850_98b5_11cf_bb82_00aa00bdce0b); +::windows_core::imp::interface_hierarchy!(ITridentTouchInput, ::windows_core::IUnknown); impl ITridentTouchInput { pub unsafe fn OnPointerMessage(&self, msg: u32, wparam: P0, lparam: P1) -> ::windows_core::Result where @@ -3426,22 +2947,14 @@ impl ITridentTouchInput { (::windows_core::Interface::vtable(self).OnPointerMessage)(::windows_core::Interface::as_raw(self), msg, wparam.into_param().abi(), lparam.into_param().abi(), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ITridentTouchInput, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITridentTouchInput { - type Vtable = ITridentTouchInput_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITridentTouchInput { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x30510850_98b5_11cf_bb82_00aa00bdce0b); -} #[repr(C)] #[doc(hidden)] pub struct ITridentTouchInput_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub OnPointerMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, msg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, pfallowmanipulations: *mut super::super::Foundation::BOOL) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITridentTouchInputSite(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ITridentTouchInputSite, ITridentTouchInputSite_Vtbl, 0x30510849_98b5_11cf_bb82_00aa00bdce0b); +::windows_core::imp::interface_hierarchy!(ITridentTouchInputSite, ::windows_core::IUnknown); impl ITridentTouchInputSite { #[doc = "Required features: `\"Win32_Web_MsHtml\"`"] #[cfg(feature = "Win32_Web_MsHtml")] @@ -3452,13 +2965,6 @@ impl ITridentTouchInputSite { (::windows_core::Interface::vtable(self).ZoomToPoint)(::windows_core::Interface::as_raw(self), x, y).ok() } } -::windows_core::imp::interface_hierarchy!(ITridentTouchInputSite, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITridentTouchInputSite { - type Vtable = ITridentTouchInputSite_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITridentTouchInputSite { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x30510849_98b5_11cf_bb82_00aa00bdce0b); -} #[repr(C)] #[doc(hidden)] pub struct ITridentTouchInputSite_Vtbl { @@ -3469,11 +2975,15 @@ pub struct ITridentTouchInputSite_Vtbl { SetManipulationMode: usize, pub ZoomToPoint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, x: i32, y: i32) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Ole\"`"] #[cfg(feature = "Win32_System_Ole")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUrlHistoryNotify(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Ole\"`"] + IUrlHistoryNotify, + IUrlHistoryNotify_Vtbl, + 0xbc40bec1_c493_11d0_831b_00c04fd5ae38 +); +#[cfg(feature = "Win32_System_Ole")] +::windows_core::imp::interface_hierarchy!(IUrlHistoryNotify, ::windows_core::IUnknown, super::super::System::Ole::IOleCommandTarget); #[cfg(feature = "Win32_System_Ole")] impl IUrlHistoryNotify { #[doc = "Required features: `\"Win32_System_Ole\"`"] @@ -3488,24 +2998,13 @@ impl IUrlHistoryNotify { } } #[cfg(feature = "Win32_System_Ole")] -::windows_core::imp::interface_hierarchy!(IUrlHistoryNotify, ::windows_core::IUnknown, super::super::System::Ole::IOleCommandTarget); -#[cfg(feature = "Win32_System_Ole")] -unsafe impl ::windows_core::Interface for IUrlHistoryNotify { - type Vtable = IUrlHistoryNotify_Vtbl; -} -#[cfg(feature = "Win32_System_Ole")] -unsafe impl ::windows_core::ComInterface for IUrlHistoryNotify { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbc40bec1_c493_11d0_831b_00c04fd5ae38); -} -#[cfg(feature = "Win32_System_Ole")] #[repr(C)] #[doc(hidden)] pub struct IUrlHistoryNotify_Vtbl { pub base__: super::super::System::Ole::IOleCommandTarget_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUrlHistoryStg(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUrlHistoryStg, IUrlHistoryStg_Vtbl, 0x3c374a41_bae4_11cf_bf7d_00aa006946ee); +::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 @@ -3529,7 +3028,7 @@ impl IUrlHistoryStg { pub unsafe fn BindToObject(&self, pocsurl: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -3539,13 +3038,6 @@ impl IUrlHistoryStg { (::windows_core::Interface::vtable(self).EnumUrls)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IUrlHistoryStg, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUrlHistoryStg { - type Vtable = IUrlHistoryStg_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUrlHistoryStg { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x3c374a41_bae4_11cf_bf7d_00aa006946ee); -} #[repr(C)] #[doc(hidden)] pub struct IUrlHistoryStg_Vtbl { @@ -3556,9 +3048,8 @@ pub struct IUrlHistoryStg_Vtbl { pub BindToObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pocsurl: ::windows_core::PCWSTR, riid: *const ::windows_core::GUID, ppvout: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub EnumUrls: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUrlHistoryStg2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IUrlHistoryStg2, IUrlHistoryStg2_Vtbl, 0xafa0dc11_c313_11d0_831a_00c04fd5ae38); +::windows_core::imp::interface_hierarchy!(IUrlHistoryStg2, ::windows_core::IUnknown, IUrlHistoryStg); impl IUrlHistoryStg2 { pub unsafe fn AddUrl(&self, pocsurl: P0, pocstitle: P1, dwflags: u32) -> ::windows_core::Result<()> where @@ -3582,7 +3073,7 @@ impl IUrlHistoryStg2 { pub unsafe fn BindToObject(&self, pocsurl: P0) -> ::windows_core::Result where P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, - T: ::windows_core::ComInterface, + 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__).from_abi(result__) @@ -3607,13 +3098,6 @@ impl IUrlHistoryStg2 { (::windows_core::Interface::vtable(self).ClearHistory)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IUrlHistoryStg2, ::windows_core::IUnknown, IUrlHistoryStg); -unsafe impl ::windows_core::Interface for IUrlHistoryStg2 { - type Vtable = IUrlHistoryStg2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUrlHistoryStg2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xafa0dc11_c313_11d0_831a_00c04fd5ae38); -} #[repr(C)] #[doc(hidden)] pub struct IUrlHistoryStg2_Vtbl { @@ -3624,9 +3108,8 @@ pub struct IUrlHistoryStg2_Vtbl { AddUrlAndNotify: usize, pub ClearHistory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IViewObjectPresentFlip(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IViewObjectPresentFlip, IViewObjectPresentFlip_Vtbl, 0x30510847_98b5_11cf_bb82_00aa00bdce0b); +::windows_core::imp::interface_hierarchy!(IViewObjectPresentFlip, ::windows_core::IUnknown); impl IViewObjectPresentFlip { pub unsafe fn NotifyRender(&self, frecreatepresenter: P0) -> ::windows_core::Result<()> where @@ -3647,13 +3130,6 @@ impl IViewObjectPresentFlip { (::windows_core::Interface::vtable(self).RenderObjectToSharedBuffer)(::windows_core::Interface::as_raw(self), pbuffer.into_param().abi()).ok() } } -::windows_core::imp::interface_hierarchy!(IViewObjectPresentFlip, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IViewObjectPresentFlip { - type Vtable = IViewObjectPresentFlip_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IViewObjectPresentFlip { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x30510847_98b5_11cf_bb82_00aa00bdce0b); -} #[repr(C)] #[doc(hidden)] pub struct IViewObjectPresentFlip_Vtbl { @@ -3662,30 +3138,21 @@ pub struct IViewObjectPresentFlip_Vtbl { pub RenderObjectToBitmap: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbitmap: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub RenderObjectToSharedBuffer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbuffer: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IViewObjectPresentFlip2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IViewObjectPresentFlip2, IViewObjectPresentFlip2_Vtbl, 0x30510856_98b5_11cf_bb82_00aa00bdce0b); +::windows_core::imp::interface_hierarchy!(IViewObjectPresentFlip2, ::windows_core::IUnknown); impl IViewObjectPresentFlip2 { pub unsafe fn NotifyLeavingView(&self) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).NotifyLeavingView)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IViewObjectPresentFlip2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IViewObjectPresentFlip2 { - type Vtable = IViewObjectPresentFlip2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IViewObjectPresentFlip2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x30510856_98b5_11cf_bb82_00aa00bdce0b); -} #[repr(C)] #[doc(hidden)] pub struct IViewObjectPresentFlip2_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub NotifyLeavingView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IViewObjectPresentFlipSite(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IViewObjectPresentFlipSite, IViewObjectPresentFlipSite_Vtbl, 0x30510846_98b5_11cf_bb82_00aa00bdce0b); +::windows_core::imp::interface_hierarchy!(IViewObjectPresentFlipSite, ::windows_core::IUnknown); impl IViewObjectPresentFlipSite { #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`, `\"Win32_Web_MsHtml\"`"] #[cfg(all(feature = "Win32_Graphics_Dxgi_Common", feature = "Win32_Web_MsHtml"))] @@ -3722,13 +3189,6 @@ impl IViewObjectPresentFlipSite { (::windows_core::Interface::vtable(self).GetFullScreenSize)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IViewObjectPresentFlipSite, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IViewObjectPresentFlipSite { - type Vtable = IViewObjectPresentFlipSite_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IViewObjectPresentFlipSite { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x30510846_98b5_11cf_bb82_00aa00bdce0b); -} #[repr(C)] #[doc(hidden)] pub struct IViewObjectPresentFlipSite_Vtbl { @@ -3745,9 +3205,8 @@ pub struct IViewObjectPresentFlipSite_Vtbl { pub GetMetrics: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppos: *mut super::super::Foundation::POINT, psize: *mut super::super::Foundation::SIZE, pscalex: *mut f32, pscaley: *mut f32) -> ::windows_core::HRESULT, pub GetFullScreenSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psize: *mut super::super::Foundation::SIZE) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IViewObjectPresentFlipSite2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IViewObjectPresentFlipSite2, IViewObjectPresentFlipSite2_Vtbl, 0xaad0cbf1_e7fd_4f12_8902_c78132a8e01d); +::windows_core::imp::interface_hierarchy!(IViewObjectPresentFlipSite2, ::windows_core::IUnknown); impl IViewObjectPresentFlipSite2 { #[doc = "Required features: `\"Win32_Graphics_Dxgi_Common\"`"] #[cfg(feature = "Win32_Graphics_Dxgi_Common")] @@ -3756,13 +3215,6 @@ impl IViewObjectPresentFlipSite2 { (::windows_core::Interface::vtable(self).GetRotationForCurrentOutput)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IViewObjectPresentFlipSite2, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IViewObjectPresentFlipSite2 { - type Vtable = IViewObjectPresentFlipSite2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IViewObjectPresentFlipSite2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xaad0cbf1_e7fd_4f12_8902_c78132a8e01d); -} #[repr(C)] #[doc(hidden)] pub struct IViewObjectPresentFlipSite2_Vtbl { @@ -3772,9 +3224,8 @@ pub struct IViewObjectPresentFlipSite2_Vtbl { #[cfg(not(feature = "Win32_Graphics_Dxgi_Common"))] GetRotationForCurrentOutput: usize, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebBrowserEventsService(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWebBrowserEventsService, IWebBrowserEventsService_Vtbl, 0x54a8f188_9ebd_4795_ad16_9b4945119636); +::windows_core::imp::interface_hierarchy!(IWebBrowserEventsService, ::windows_core::IUnknown); impl IWebBrowserEventsService { pub unsafe fn FireBeforeNavigate2Event(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); @@ -3793,13 +3244,6 @@ impl IWebBrowserEventsService { (::windows_core::Interface::vtable(self).FireDocumentCompleteEvent)(::windows_core::Interface::as_raw(self)).ok() } } -::windows_core::imp::interface_hierarchy!(IWebBrowserEventsService, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebBrowserEventsService { - type Vtable = IWebBrowserEventsService_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebBrowserEventsService { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x54a8f188_9ebd_4795_ad16_9b4945119636); -} #[repr(C)] #[doc(hidden)] pub struct IWebBrowserEventsService_Vtbl { @@ -3810,33 +3254,29 @@ pub struct IWebBrowserEventsService_Vtbl { pub FireDownloadCompleteEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub FireDocumentCompleteEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWebBrowserEventsUrlService(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWebBrowserEventsUrlService, IWebBrowserEventsUrlService_Vtbl, 0x87cc5d04_eafa_4833_9820_8f986530cc00); +::windows_core::imp::interface_hierarchy!(IWebBrowserEventsUrlService, ::windows_core::IUnknown); impl IWebBrowserEventsUrlService { pub unsafe fn GetUrlForEvents(&self) -> ::windows_core::Result<::windows_core::BSTR> { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetUrlForEvents)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWebBrowserEventsUrlService, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWebBrowserEventsUrlService { - type Vtable = IWebBrowserEventsUrlService_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWebBrowserEventsUrlService { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x87cc5d04_eafa_4833_9820_8f986530cc00); -} #[repr(C)] #[doc(hidden)] pub struct IWebBrowserEventsUrlService_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetUrlForEvents: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, purl: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[doc = "Required features: `\"Win32_System_Com\"`"] #[cfg(feature = "Win32_System_Com")] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct Iwfolders(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Win32_System_Com\"`"] + Iwfolders, + Iwfolders_Vtbl, + 0xbae31f98_1b81_11d2_a97a_00c04f8ecb02 +); +#[cfg(feature = "Win32_System_Com")] +::windows_core::imp::interface_hierarchy!(Iwfolders, ::windows_core::IUnknown, super::super::System::Com::IDispatch); #[cfg(feature = "Win32_System_Com")] impl Iwfolders { pub unsafe fn navigate(&self, bstrurl: P0) -> ::windows_core::Result<::windows_core::BSTR> @@ -3864,16 +3304,6 @@ impl Iwfolders { } } #[cfg(feature = "Win32_System_Com")] -::windows_core::imp::interface_hierarchy!(Iwfolders, ::windows_core::IUnknown, super::super::System::Com::IDispatch); -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::Interface for Iwfolders { - type Vtable = Iwfolders_Vtbl; -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows_core::ComInterface for Iwfolders { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xbae31f98_1b81_11d2_a97a_00c04f8ecb02); -} -#[cfg(feature = "Win32_System_Com")] #[repr(C)] #[doc(hidden)] pub struct Iwfolders_Vtbl { From 1b4bdd61b97888b1304d0ed0352f1844d44195e1 Mon Sep 17 00:00:00 2001 From: Kenny Kerr Date: Fri, 5 Jan 2024 12:19:02 -0600 Subject: [PATCH 02/10] generated docs --- .../libs/windows/src/Windows/Data/Text/mod.rs | 14 ++++++-- .../windows/src/Windows/Devices/Sms/mod.rs | 14 ++++++-- .../src/Windows/Graphics/Display/mod.rs | 7 +++- .../src/Windows/Security/Isolation/mod.rs | 14 ++++++-- .../libs/windows/src/Windows/Storage/mod.rs | 7 +++- .../libs/windows/src/Windows/UI/WebUI/mod.rs | 35 ++++++++++++++++--- 6 files changed, 78 insertions(+), 13 deletions(-) diff --git a/crates/libs/windows/src/Windows/Data/Text/mod.rs b/crates/libs/windows/src/Windows/Data/Text/mod.rs index 25d6a672d1..b5f6532467 100644 --- a/crates/libs/windows/src/Windows/Data/Text/mod.rs +++ b/crates/libs/windows/src/Windows/Data/Text/mod.rs @@ -1042,7 +1042,12 @@ impl ::core::default::Default for TextSegment { } } #[cfg(feature = "Foundation_Collections")] -::windows_core::imp::com_interface!(SelectableWordSegmentsTokenizingHandler, SelectableWordSegmentsTokenizingHandler_Vtbl, 0x3a3dfc9c_aede_4dc7_9e6c_41c044bd3592); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Foundation_Collections\"`"] + SelectableWordSegmentsTokenizingHandler, + SelectableWordSegmentsTokenizingHandler_Vtbl, + 0x3a3dfc9c_aede_4dc7_9e6c_41c044bd3592 +); #[cfg(feature = "Foundation_Collections")] impl SelectableWordSegmentsTokenizingHandler { pub fn new>, ::core::option::Option<&super::super::Foundation::Collections::IIterable>) -> ::windows_core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { @@ -1118,7 +1123,12 @@ pub struct SelectableWordSegmentsTokenizingHandler_Vtbl { Invoke: usize, } #[cfg(feature = "Foundation_Collections")] -::windows_core::imp::com_interface!(WordSegmentsTokenizingHandler, WordSegmentsTokenizingHandler_Vtbl, 0xa5dd6357_bf2a_4c4f_a31f_29e71c6f8b35); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Foundation_Collections\"`"] + WordSegmentsTokenizingHandler, + WordSegmentsTokenizingHandler_Vtbl, + 0xa5dd6357_bf2a_4c4f_a31f_29e71c6f8b35 +); #[cfg(feature = "Foundation_Collections")] impl WordSegmentsTokenizingHandler { pub fn new>, ::core::option::Option<&super::super::Foundation::Collections::IIterable>) -> ::windows_core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { diff --git a/crates/libs/windows/src/Windows/Devices/Sms/mod.rs b/crates/libs/windows/src/Windows/Devices/Sms/mod.rs index b0827e1be3..9d96b3eac8 100644 --- a/crates/libs/windows/src/Windows/Devices/Sms/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Sms/mod.rs @@ -3778,7 +3778,12 @@ impl ::core::default::Default for SmsEncodedLength { } } #[cfg(feature = "deprecated")] -::windows_core::imp::com_interface!(SmsDeviceStatusChangedEventHandler, SmsDeviceStatusChangedEventHandler_Vtbl, 0x982b1162_3dd7_4618_af89_0c272d5d06d8); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + SmsDeviceStatusChangedEventHandler, + SmsDeviceStatusChangedEventHandler_Vtbl, + 0x982b1162_3dd7_4618_af89_0c272d5d06d8 +); #[cfg(feature = "deprecated")] impl SmsDeviceStatusChangedEventHandler { pub fn new) -> ::windows_core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { @@ -3853,7 +3858,12 @@ pub struct SmsDeviceStatusChangedEventHandler_Vtbl { Invoke: usize, } #[cfg(feature = "deprecated")] -::windows_core::imp::com_interface!(SmsMessageReceivedEventHandler, SmsMessageReceivedEventHandler_Vtbl, 0x0b7ad409_ec2d_47ce_a253_732beeebcacd); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + SmsMessageReceivedEventHandler, + SmsMessageReceivedEventHandler_Vtbl, + 0x0b7ad409_ec2d_47ce_a253_732beeebcacd +); #[cfg(feature = "deprecated")] impl SmsMessageReceivedEventHandler { pub fn new, ::core::option::Option<&SmsMessageReceivedEventArgs>) -> ::windows_core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { diff --git a/crates/libs/windows/src/Windows/Graphics/Display/mod.rs b/crates/libs/windows/src/Windows/Graphics/Display/mod.rs index 9bb01f2b6a..c641b859dd 100644 --- a/crates/libs/windows/src/Windows/Graphics/Display/mod.rs +++ b/crates/libs/windows/src/Windows/Graphics/Display/mod.rs @@ -1465,7 +1465,12 @@ impl ::core::default::Default for NitRange { } } #[cfg(feature = "deprecated")] -::windows_core::imp::com_interface!(DisplayPropertiesEventHandler, DisplayPropertiesEventHandler_Vtbl, 0xdbdd8b01_f1a1_46d1_9ee3_543bcc995980); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"deprecated\"`"] + DisplayPropertiesEventHandler, + DisplayPropertiesEventHandler_Vtbl, + 0xdbdd8b01_f1a1_46d1_9ee3_543bcc995980 +); #[cfg(feature = "deprecated")] impl DisplayPropertiesEventHandler { pub fn new) -> ::windows_core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { diff --git a/crates/libs/windows/src/Windows/Security/Isolation/mod.rs b/crates/libs/windows/src/Windows/Security/Isolation/mod.rs index 48ca282ce9..004b349e6e 100644 --- a/crates/libs/windows/src/Windows/Security/Isolation/mod.rs +++ b/crates/libs/windows/src/Windows/Security/Isolation/mod.rs @@ -1787,7 +1787,12 @@ impl ::core::default::Default for IsolatedWindowsEnvironmentCreateProgress { } } #[cfg(feature = "Foundation_Collections")] -::windows_core::imp::com_interface!(HostMessageReceivedCallback, HostMessageReceivedCallback_Vtbl, 0xfaf26ffa_8ce1_4cc1_b278_322d31a5e4a3); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Foundation_Collections\"`"] + HostMessageReceivedCallback, + HostMessageReceivedCallback_Vtbl, + 0xfaf26ffa_8ce1_4cc1_b278_322d31a5e4a3 +); #[cfg(feature = "Foundation_Collections")] impl HostMessageReceivedCallback { pub fn new>) -> ::windows_core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { @@ -1862,7 +1867,12 @@ pub struct HostMessageReceivedCallback_Vtbl { Invoke: usize, } #[cfg(feature = "Foundation_Collections")] -::windows_core::imp::com_interface!(MessageReceivedCallback, MessageReceivedCallback_Vtbl, 0xf5b4c8ff_1d9d_4995_9fea_4d15257c0757); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Foundation_Collections\"`"] + MessageReceivedCallback, + MessageReceivedCallback_Vtbl, + 0xf5b4c8ff_1d9d_4995_9fea_4d15257c0757 +); #[cfg(feature = "Foundation_Collections")] impl MessageReceivedCallback { pub fn new>) -> ::windows_core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { diff --git a/crates/libs/windows/src/Windows/Storage/mod.rs b/crates/libs/windows/src/Windows/Storage/mod.rs index 991adab595..8abc931c44 100644 --- a/crates/libs/windows/src/Windows/Storage/mod.rs +++ b/crates/libs/windows/src/Windows/Storage/mod.rs @@ -5463,7 +5463,12 @@ pub struct ApplicationDataSetVersionHandler_Vtbl { pub Invoke: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, setversionrequest: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } #[cfg(feature = "Storage_Streams")] -::windows_core::imp::com_interface!(StreamedFileDataRequestedHandler, StreamedFileDataRequestedHandler_Vtbl, 0xfef6a824_2fe1_4d07_a35b_b77c50b5f4cc); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"Storage_Streams\"`"] + StreamedFileDataRequestedHandler, + StreamedFileDataRequestedHandler_Vtbl, + 0xfef6a824_2fe1_4d07_a35b_b77c50b5f4cc +); #[cfg(feature = "Storage_Streams")] impl StreamedFileDataRequestedHandler { pub fn new) -> ::windows_core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { diff --git a/crates/libs/windows/src/Windows/UI/WebUI/mod.rs b/crates/libs/windows/src/Windows/UI/WebUI/mod.rs index 539903b46c..4849c022f8 100644 --- a/crates/libs/windows/src/Windows/UI/WebUI/mod.rs +++ b/crates/libs/windows/src/Windows/UI/WebUI/mod.rs @@ -5501,7 +5501,12 @@ impl ::windows_core::RuntimeType for PrintContent { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::from_slice(b"enum(Windows.UI.WebUI.PrintContent;i4)"); } #[cfg(feature = "ApplicationModel_Activation")] -::windows_core::imp::com_interface!(ActivatedEventHandler, ActivatedEventHandler_Vtbl, 0x50f1e730_c5d1_4b6b_9adb_8a11756be29c); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"ApplicationModel_Activation\"`"] + ActivatedEventHandler, + ActivatedEventHandler_Vtbl, + 0x50f1e730_c5d1_4b6b_9adb_8a11756be29c +); #[cfg(feature = "ApplicationModel_Activation")] impl ActivatedEventHandler { pub fn new, ::core::option::Option<&super::super::ApplicationModel::Activation::IActivatedEventArgs>) -> ::windows_core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { @@ -5577,7 +5582,12 @@ pub struct ActivatedEventHandler_Vtbl { Invoke: usize, } #[cfg(feature = "ApplicationModel_Activation")] -::windows_core::imp::com_interface!(BackgroundActivatedEventHandler, BackgroundActivatedEventHandler_Vtbl, 0xedb19fbb_0761_47cc_9a77_24d7072965ca); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"ApplicationModel_Activation\"`"] + BackgroundActivatedEventHandler, + BackgroundActivatedEventHandler_Vtbl, + 0xedb19fbb_0761_47cc_9a77_24d7072965ca +); #[cfg(feature = "ApplicationModel_Activation")] impl BackgroundActivatedEventHandler { pub fn new, ::core::option::Option<&super::super::ApplicationModel::Activation::IBackgroundActivatedEventArgs>) -> ::windows_core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { @@ -5653,7 +5663,12 @@ pub struct BackgroundActivatedEventHandler_Vtbl { Invoke: usize, } #[cfg(feature = "ApplicationModel")] -::windows_core::imp::com_interface!(EnteredBackgroundEventHandler, EnteredBackgroundEventHandler_Vtbl, 0x2b09a173_b68e_4def_88c1_8de84e5aab2f); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"ApplicationModel\"`"] + EnteredBackgroundEventHandler, + EnteredBackgroundEventHandler_Vtbl, + 0x2b09a173_b68e_4def_88c1_8de84e5aab2f +); #[cfg(feature = "ApplicationModel")] impl EnteredBackgroundEventHandler { pub fn new, ::core::option::Option<&super::super::ApplicationModel::IEnteredBackgroundEventArgs>) -> ::windows_core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { @@ -5729,7 +5744,12 @@ pub struct EnteredBackgroundEventHandler_Vtbl { Invoke: usize, } #[cfg(feature = "ApplicationModel")] -::windows_core::imp::com_interface!(LeavingBackgroundEventHandler, LeavingBackgroundEventHandler_Vtbl, 0x00b4ccd9_7a9c_4b6b_9ac4_13474f268bc4); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"ApplicationModel\"`"] + LeavingBackgroundEventHandler, + LeavingBackgroundEventHandler_Vtbl, + 0x00b4ccd9_7a9c_4b6b_9ac4_13474f268bc4 +); #[cfg(feature = "ApplicationModel")] impl LeavingBackgroundEventHandler { pub fn new, ::core::option::Option<&super::super::ApplicationModel::ILeavingBackgroundEventArgs>) -> ::windows_core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { @@ -5934,7 +5954,12 @@ pub struct ResumingEventHandler_Vtbl { pub Invoke: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sender: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } #[cfg(feature = "ApplicationModel")] -::windows_core::imp::com_interface!(SuspendingEventHandler, SuspendingEventHandler_Vtbl, 0x509c429c_78e2_4883_abc8_8960dcde1b5c); +::windows_core::imp::com_interface!( + #[doc = "Required features: `\"ApplicationModel\"`"] + SuspendingEventHandler, + SuspendingEventHandler_Vtbl, + 0x509c429c_78e2_4883_abc8_8960dcde1b5c +); #[cfg(feature = "ApplicationModel")] impl SuspendingEventHandler { pub fn new, ::core::option::Option<&super::super::ApplicationModel::ISuspendingEventArgs>) -> ::windows_core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { From 73496107d0f953e30336334980e25b2593180ee4 Mon Sep 17 00:00:00 2001 From: Kenny Kerr Date: Fri, 5 Jan 2024 12:25:08 -0600 Subject: [PATCH 03/10] bindgen --- crates/libs/bindgen/src/metadata.rs | 27 +------ crates/libs/bindgen/src/rust/classes.rs | 38 +++++---- crates/libs/bindgen/src/rust/com_methods.rs | 4 +- crates/libs/bindgen/src/rust/delegates.rs | 31 +++++--- crates/libs/bindgen/src/rust/functions.rs | 4 +- crates/libs/bindgen/src/rust/implements.rs | 4 +- crates/libs/bindgen/src/rust/interfaces.rs | 79 ++++++++++++------- crates/libs/bindgen/src/rust/iterators.rs | 4 +- crates/libs/bindgen/src/rust/winrt_methods.rs | 4 +- crates/libs/bindgen/src/rust/writer.rs | 60 ++++++-------- 10 files changed, 131 insertions(+), 124 deletions(-) diff --git a/crates/libs/bindgen/src/metadata.rs b/crates/libs/bindgen/src/metadata.rs index b678c4b32b..ec62c1bb13 100644 --- a/crates/libs/bindgen/src/metadata.rs +++ b/crates/libs/bindgen/src/metadata.rs @@ -40,7 +40,6 @@ pub enum SignatureParamKind { ArrayRelativeLen(usize), ArrayRelativeByteLen(usize), ArrayRelativePtr(usize), - TryInto, IntoParam, OptionalPointer, ValueType, @@ -115,7 +114,7 @@ impl SignatureParamKind { impl SignatureParam { pub fn is_convertible(&self) -> bool { - !self.def.flags().contains(ParamAttributes::Out) && !self.ty.is_winrt_array() && !self.ty.is_pointer() && !self.kind.is_array() && (type_is_borrowed(&self.ty) || type_is_non_exclusive_winrt_interface(&self.ty) || type_is_trivially_convertible(&self.ty)) + !self.def.flags().contains(ParamAttributes::Out) && !self.ty.is_winrt_array() && !self.ty.is_pointer() && !self.kind.is_array() && (type_is_borrowed(&self.ty) || type_is_trivially_convertible(&self.ty)) } fn is_retval(&self) -> bool { @@ -292,11 +291,7 @@ pub fn method_def_signature(namespace: &str, row: MethodDef, generics: &[Type]) for param in &mut params { if param.kind == SignatureParamKind::Other { if param.is_convertible() { - if type_is_non_exclusive_winrt_interface(¶m.ty) { - param.kind = SignatureParamKind::TryInto; - } else { - param.kind = SignatureParamKind::IntoParam; - } + param.kind = SignatureParamKind::IntoParam; } else { let flags = param.def.flags(); if param.ty.is_pointer() && (flags.contains(ParamAttributes::Optional) || param.def.has_attribute("ReservedAttribute")) { @@ -376,24 +371,6 @@ pub fn type_is_borrowed(ty: &Type) -> bool { } } -pub fn type_is_non_exclusive_winrt_interface(ty: &Type) -> bool { - match ty { - Type::TypeDef(row, _) => { - let flags = row.flags(); - if !flags.contains(TypeAttributes::WindowsRuntime) { - false - } else { - match row.kind() { - TypeKind::Interface => !type_def_is_exclusive(*row), - TypeKind::Class => row.has_attribute("ComposableAttribute"), - _ => false, - } - } - } - _ => false, - } -} - fn type_is_trivially_convertible(ty: &Type) -> bool { match ty { Type::TypeDef(row, _) => match row.kind() { diff --git a/crates/libs/bindgen/src/rust/classes.rs b/crates/libs/bindgen/src/rust/classes.rs index bba378a668..23f3024484 100644 --- a/crates/libs/bindgen/src/rust/classes.rs +++ b/crates/libs/bindgen/src/rust/classes.rs @@ -89,20 +89,24 @@ fn gen_class(writer: &Writer, def: metadata::TypeDef) -> TokenStream { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct #name(::windows_core::IUnknown); + }; + + tokens.combine(&gen_conversions(writer, def, &name, &interfaces, &cfg)); + + tokens.combine("e! { #features impl #name { #new #methods #(#factories)* } - }; + }); tokens.combine(&writer.interface_winrt_trait(def, &[], &name, &TokenStream::new(), &TokenStream::new(), &features)); tokens.combine(&writer.interface_trait(def, &[], &name, &TokenStream::new(), &features, true)); tokens.combine(&writer.runtime_name_trait(def, &[], &name, &TokenStream::new(), &features)); tokens.combine(&writer.async_get(def, &[], &name, &TokenStream::new(), &TokenStream::new(), &features)); tokens.combine(&iterators::writer(writer, def, &[], &name, &TokenStream::new(), &TokenStream::new(), &cfg)); - tokens.combine(&gen_conversions(writer, def, &name, &interfaces, &cfg)); tokens.combine(&writer.agile(def, &name, &TokenStream::new(), &features)); tokens } else { @@ -122,13 +126,17 @@ fn gen_class(writer: &Writer, def: metadata::TypeDef) -> TokenStream { } } -fn gen_conversions(writer: &Writer, def: metadata::TypeDef, name: &TokenStream, interfaces: &[metadata::Interface], cfg: &cfg::Cfg) -> TokenStream { +fn gen_conversions(writer: &Writer, def: metadata::TypeDef, ident: &TokenStream, interfaces: &[metadata::Interface], cfg: &cfg::Cfg) -> TokenStream { let features = writer.cfg_features(cfg); let mut tokens = quote! { #features - ::windows_core::imp::interface_hierarchy!(#name, ::windows_core::IUnknown, ::windows_core::IInspectable); + ::windows_core::imp::interface_hierarchy!(#ident, ::windows_core::IUnknown, ::windows_core::IInspectable); }; + let mut hierarchy = format!("::windows_core::imp::required_hierarchy!({ident}"); + let mut hierarchy_cfg = cfg.clone(); + let mut hierarchy_added = false; + for interface in interfaces { if type_is_exclusive(&interface.ty) { continue; @@ -139,22 +147,22 @@ fn gen_conversions(writer: &Writer, def: metadata::TypeDef, name: &TokenStream, } let into = writer.type_name(&interface.ty); - let features = writer.cfg_features(&cfg.union(&cfg::type_cfg(&interface.ty))); - - tokens.combine("e! { - #features - impl ::windows_core::CanTryInto<#into> for #name {} - }); + write!(&mut hierarchy, ", {into}").unwrap(); + hierarchy_cfg = hierarchy_cfg.union(&cfg::type_cfg(&interface.ty)); + hierarchy_added = true; } for def in metadata::type_def_bases(def) { let into = writer.type_def_name(def, &[]); - let features = writer.cfg_features(&cfg.union(&cfg::type_def_cfg(def, &[]))); + write!(&mut hierarchy, ", {into}").unwrap(); + hierarchy_cfg = hierarchy_cfg.union(&cfg::type_def_cfg(def, &[])); + hierarchy_added = true; + } - tokens.combine("e! { - #features - impl ::windows_core::CanTryInto<#into> for #name {} - }); + if hierarchy_added { + hierarchy.push_str(");"); + tokens.combine(&writer.cfg_features(&hierarchy_cfg)); + tokens.push_str(&hierarchy); } tokens diff --git a/crates/libs/bindgen/src/rust/com_methods.rs b/crates/libs/bindgen/src/rust/com_methods.rs index 15a438cd7b..6578d4798e 100644 --- a/crates/libs/bindgen/src/rust/com_methods.rs +++ b/crates/libs/bindgen/src/rust/com_methods.rs @@ -28,7 +28,7 @@ pub fn writer(writer: &Writer, def: metadata::TypeDef, kind: metadata::Interface let args = writer.win32_args(&signature.params, kind); let params = writer.win32_params(&signature.params, kind); let generics = expand_generics(generics, quote!(T)); - let where_clause = expand_where_clause(where_clause, quote!(T: ::windows_core::ComInterface)); + let where_clause = expand_where_clause(where_clause, quote!(T: ::windows_core::Interface)); quote! { #doc @@ -43,7 +43,7 @@ pub fn writer(writer: &Writer, def: metadata::TypeDef, kind: metadata::Interface let args = writer.win32_args(&signature.params, kind); let params = writer.win32_params(&signature.params, kind); let generics = expand_generics(generics, quote!(T)); - let where_clause = expand_where_clause(where_clause, quote!(T: ::windows_core::ComInterface)); + let where_clause = expand_where_clause(where_clause, quote!(T: ::windows_core::Interface)); quote! { #doc diff --git a/crates/libs/bindgen/src/rust/delegates.rs b/crates/libs/bindgen/src/rust/delegates.rs index 36f3f8a560..75b366991f 100644 --- a/crates/libs/bindgen/src/rust/delegates.rs +++ b/crates/libs/bindgen/src/rust/delegates.rs @@ -68,12 +68,23 @@ fn gen_win_delegate(writer: &Writer, def: metadata::TypeDef) -> TokenStream { let invoke = winrt_methods::writer(writer, def, generics, metadata::InterfaceKind::Default, method, &mut MethodNames::new(), &mut MethodNames::new()); let invoke_upcall = winrt_methods::gen_upcall(writer, &signature, quote! { ((*this).invoke) }); - let mut tokens = quote! { - #doc - #features - #[repr(transparent)] - #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] - pub struct #ident(pub ::windows_core::IUnknown, #phantoms) where #constraints; + let mut tokens = if generics.is_empty() { + let iid = writer.guid_literal(metadata::type_def_guid(def)); + quote! { + #features + ::windows_core::imp::com_interface!(#doc #ident, #vtbl, #iid); + } + } else { + quote! { + #doc + #features + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] + pub struct #ident(::windows_core::IUnknown, #phantoms) where #constraints; + } + }; + + tokens.combine("e! { #features impl<#constraints> #ident { pub fn new<#fn_constraint>(invoke: F) -> Self { @@ -109,9 +120,9 @@ fn gen_win_delegate(writer: &Writer, def: metadata::TypeDef) -> TokenStream { return ::windows_core::HRESULT(-2147467261); // E_POINTER } - *interface = if *iid == <#ident as ::windows_core::ComInterface>::IID || - *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID || - *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID { + *interface = if *iid == <#ident as ::windows_core::Interface>::IID || + *iid == <::windows_core::IUnknown as ::windows_core::Interface>::IID || + *iid == <::windows_core::imp::IAgileObject as ::windows_core::Interface>::IID { &mut (*this).vtable as *mut _ as _ } else { ::core::ptr::null_mut() @@ -145,7 +156,7 @@ fn gen_win_delegate(writer: &Writer, def: metadata::TypeDef) -> TokenStream { #invoke_upcall } } - }; + }); tokens.combine(&writer.interface_trait(def, generics, &ident, &constraints, &features, true)); tokens.combine(&writer.interface_winrt_trait(def, generics, &ident, &constraints, &phantoms, &features)); diff --git a/crates/libs/bindgen/src/rust/functions.rs b/crates/libs/bindgen/src/rust/functions.rs index 17ed31021f..01831d4595 100644 --- a/crates/libs/bindgen/src/rust/functions.rs +++ b/crates/libs/bindgen/src/rust/functions.rs @@ -46,7 +46,7 @@ fn gen_win_function(writer: &Writer, namespace: &str, def: metadata::MethodDef) let args = writer.win32_args(&signature.params, kind); let params = writer.win32_params(&signature.params, kind); let generics = expand_generics(generics, quote!(T)); - let where_clause = expand_where_clause(where_clause, quote!(T: ::windows_core::ComInterface)); + let where_clause = expand_where_clause(where_clause, quote!(T: ::windows_core::Interface)); quote! { #doc @@ -63,7 +63,7 @@ fn gen_win_function(writer: &Writer, namespace: &str, def: metadata::MethodDef) let args = writer.win32_args(&signature.params, kind); let params = writer.win32_params(&signature.params, kind); let generics = expand_generics(generics, quote!(T)); - let where_clause = expand_where_clause(where_clause, quote!(T: ::windows_core::ComInterface)); + let where_clause = expand_where_clause(where_clause, quote!(T: ::windows_core::Interface)); quote! { #doc diff --git a/crates/libs/bindgen/src/rust/implements.rs b/crates/libs/bindgen/src/rust/implements.rs index 4d38a5201b..1f78b9cbc1 100644 --- a/crates/libs/bindgen/src/rust/implements.rs +++ b/crates/libs/bindgen/src/rust/implements.rs @@ -29,7 +29,7 @@ pub fn writer(writer: &Writer, def: metadata::TypeDef) -> TokenStream { } } - let mut matches = quote! { iid == &<#type_ident as ::windows_core::ComInterface>::IID }; + let mut matches = quote! { iid == &<#type_ident as ::windows_core::Interface>::IID }; if let Some(metadata::Type::TypeDef(def, _)) = vtables.last() { requires.combine(&gen_required_trait(writer, *def, &[])) @@ -40,7 +40,7 @@ pub fn writer(writer: &Writer, def: metadata::TypeDef) -> TokenStream { let name = writer.type_def_name(*def, generics); matches.combine("e! { - || iid == &<#name as ::windows_core::ComInterface>::IID + || iid == &<#name as ::windows_core::Interface>::IID }) } } diff --git a/crates/libs/bindgen/src/rust/interfaces.rs b/crates/libs/bindgen/src/rust/interfaces.rs index 2152707a6f..e3f811c8c0 100644 --- a/crates/libs/bindgen/src/rust/interfaces.rs +++ b/crates/libs/bindgen/src/rust/interfaces.rs @@ -24,6 +24,7 @@ fn gen_sys_interface(def: metadata::TypeDef) -> TokenStream { fn gen_win_interface(writer: &Writer, def: metadata::TypeDef) -> TokenStream { let generics = &metadata::type_def_generics(def); let ident = writer.type_def_name(def, generics); + let vtbl_ident = writer.type_def_vtbl_name(def, generics); let is_exclusive = metadata::type_def_is_exclusive(def); let phantoms = writer.generic_phantoms(generics); let constraints = writer.generic_constraints(generics); @@ -34,25 +35,29 @@ fn gen_win_interface(writer: &Writer, def: metadata::TypeDef) -> TokenStream { let vtables = metadata::type_def_vtables(def); let has_unknown_base = matches!(vtables.first(), Some(metadata::Type::IUnknown)); - let mut tokens = if is_exclusive { - quote! { #[doc(hidden)] } - } else { - quote! { #doc } - }; + let mut tokens = quote! {}; if has_unknown_base { - tokens.combine("e! { - #features - #[repr(transparent)] - #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] - pub struct #ident(::windows_core::IUnknown, #phantoms) where #constraints; - }); + if generics.is_empty() { + let iid = writer.guid_literal(metadata::type_def_guid(def)); + tokens.combine("e! { + #features + ::windows_core::imp::com_interface!(#doc #ident, #vtbl_ident, #iid); + }); + } else { + tokens.combine("e! { + #doc + #features + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] + pub struct #ident(::windows_core::IUnknown, #phantoms) where #constraints; + }); + } } else { tokens.combine("e! { + #doc #features - #[repr(transparent)] - #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] - pub struct #ident(::std::ptr::NonNull<::std::ffi::c_void>); + ::windows_core::imp::interface!(#ident, #vtbl_ident); }); } @@ -95,13 +100,6 @@ fn gen_win_interface(writer: &Writer, def: metadata::TypeDef) -> TokenStream { } } - tokens.combine("e! { - #features - impl<#constraints> #ident { - #methods - } - }); - if !vtables.is_empty() && generics.is_empty() { let mut hierarchy = format!("::windows_core::imp::interface_hierarchy!({ident}"); let mut hierarchy_cfg = cfg.clone(); @@ -127,17 +125,40 @@ fn gen_win_interface(writer: &Writer, def: metadata::TypeDef) -> TokenStream { } } - if def.flags().contains(metadata::TypeAttributes::WindowsRuntime) { - for interface in &interfaces { - let into = writer.type_name(&interface.ty); - let cfg = writer.cfg_features(&cfg.union(&cfg::type_cfg(&interface.ty))); - tokens.combine("e! { - #cfg - impl<#constraints> ::windows_core::CanTryInto<#into> for #ident {} - }); + if def.flags().contains(metadata::TypeAttributes::WindowsRuntime) && !interfaces.is_empty() { + if generics.is_empty() { + let mut hierarchy = format!("::windows_core::imp::required_hierarchy!({ident}"); + let mut hierarchy_cfg = cfg.clone(); + + for interface in &interfaces { + let into = writer.type_name(&interface.ty); + + write!(&mut hierarchy, ", {into}").unwrap(); + hierarchy_cfg = hierarchy_cfg.union(&cfg::type_cfg(&interface.ty)); + } + + hierarchy.push_str(");"); + tokens.combine(&writer.cfg_features(&hierarchy_cfg)); + tokens.push_str(&hierarchy); + } else { + for interface in &interfaces { + let into = writer.type_name(&interface.ty); + let cfg = writer.cfg_features(&cfg.union(&cfg::type_cfg(&interface.ty))); + tokens.combine("e! { + #cfg + impl<#constraints> ::windows_core::CanInto<#into> for #ident { const QUERY: bool = true; } + }); + } } } + tokens.combine("e! { + #features + impl<#constraints> #ident { + #methods + } + }); + tokens.combine(&writer.interface_winrt_trait(def, generics, &ident, &constraints, &phantoms, &features)); tokens.combine(&writer.async_get(def, generics, &ident, &constraints, &phantoms, &features)); tokens.combine(&iterators::writer(writer, def, generics, &ident, &constraints, &phantoms, &cfg)); diff --git a/crates/libs/bindgen/src/rust/iterators.rs b/crates/libs/bindgen/src/rust/iterators.rs index bc1a0f9c52..098e06dda4 100644 --- a/crates/libs/bindgen/src/rust/iterators.rs +++ b/crates/libs/bindgen/src/rust/iterators.rs @@ -172,7 +172,7 @@ pub fn writer(writer: &Writer, def: metadata::TypeDef, generics: &[metadata::Typ type IntoIter = #wfc VectorViewIterator; fn into_iter(self) -> Self::IntoIter { - #wfc VectorViewIterator::new(::windows_core::ComInterface::cast(self).ok()) + #wfc VectorViewIterator::new(::windows_core::Interface::cast(self).ok()) } } }; @@ -199,7 +199,7 @@ pub fn writer(writer: &Writer, def: metadata::TypeDef, generics: &[metadata::Typ type IntoIter = #wfc VectorIterator; fn into_iter(self) -> Self::IntoIter { - #wfc VectorIterator::new(::windows_core::ComInterface::cast(self).ok()) + #wfc VectorIterator::new(::windows_core::Interface::cast(self).ok()) } } }; diff --git a/crates/libs/bindgen/src/rust/winrt_methods.rs b/crates/libs/bindgen/src/rust/winrt_methods.rs index eeb62ccc71..0c8936d3eb 100644 --- a/crates/libs/bindgen/src/rust/winrt_methods.rs +++ b/crates/libs/bindgen/src/rust/winrt_methods.rs @@ -78,7 +78,7 @@ pub fn writer(writer: &Writer, def: metadata::TypeDef, generic_types: &[metadata #doc #features pub fn #name<#generics>(&self, #params) -> ::windows_core::Result<#return_type_tokens> #where_clause { - let this = &::windows_core::ComInterface::cast::<#interface_name>(self)?; + let this = &::windows_core::Interface::cast::<#interface_name>(self)?; unsafe { #vcall } @@ -142,8 +142,6 @@ fn gen_winrt_abi_args(writer: &Writer, params: &[metadata::SignatureParam]) -> T } else { quote! { #name.len().try_into().unwrap(), ::core::mem::transmute(#name.as_ptr()), } } - } else if metadata::type_is_non_exclusive_winrt_interface(¶m.ty) { - quote! { #name.try_into_param()?.abi(), } } else if metadata::type_is_borrowed(¶m.ty) { quote! { #name.into_param().abi(), } } else if metadata::type_is_blittable(¶m.ty) { diff --git a/crates/libs/bindgen/src/rust/writer.rs b/crates/libs/bindgen/src/rust/writer.rs index 2b1f9e3e39..90c5cc5fdb 100644 --- a/crates/libs/bindgen/src/rust/writer.rs +++ b/crates/libs/bindgen/src/rust/writer.rs @@ -311,18 +311,10 @@ impl Writer { name }; for (position, param) in self.generic_params(params) { - match param.kind { - metadata::SignatureParamKind::TryInto => { - let name: TokenStream = gen_name(position); - let into = self.type_name(¶m.ty); - tokens.combine("e! { #name: ::windows_core::TryIntoParam<#into>, }); - } - metadata::SignatureParamKind::IntoParam => { - let name: TokenStream = gen_name(position); - let into = self.type_name(¶m.ty); - tokens.combine("e! { #name: ::windows_core::IntoParam<#into>, }); - } - _ => {} + 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 @@ -552,6 +544,14 @@ impl Writer { let guid = self.type_name(&metadata::Type::GUID); format!("{}::from_u128(0x{:08x?}_{:04x?}_{:04x?}_{:02x?}{:02x?}_{:02x?}{:02x?}{:02x?}{:02x?}{:02x?}{:02x?})", guid.into_string(), value.0, value.1, value.2, value.3, value.4, value.5, value.6, value.7, value.8, value.9, value.10).into() } + + pub fn guid_literal(&self, value: Option) -> TokenStream { + match value { + Some(value) => format!("0x{:08x?}_{:04x?}_{:04x?}_{:02x?}{:02x?}_{:02x?}{:02x?}{:02x?}{:02x?}{:02x?}{:02x?}", value.0, value.1, value.2, value.3, value.4, value.5, value.6, value.7, value.8, value.9, value.10).into(), + None => quote! { 0 }, + } + } + pub fn agile(&self, def: metadata::TypeDef, ident: &TokenStream, constraints: &TokenStream, features: &TokenStream) -> TokenStream { if type_def_is_agile(def) { quote! { @@ -714,10 +714,7 @@ impl Writer { #features unsafe impl ::windows_core::Interface for #ident { type Vtable = #vtbl; - } - #features - unsafe impl ::windows_core::ComInterface for #ident { - const IID: ::windows_core::GUID = <#default_name as ::windows_core::ComInterface>::IID; + const IID: ::windows_core::GUID = <#default_name as ::windows_core::Interface>::IID; } } } else { @@ -737,23 +734,21 @@ impl Writer { } }; - let mut tokens = quote! { - #features - unsafe impl<#constraints> ::windows_core::Interface for #ident { - type Vtable = #vtbl; - } - }; - if has_unknown_base { - tokens.combine("e! { - #features - unsafe impl<#constraints> ::windows_core::ComInterface for #ident { - const IID: ::windows_core::GUID = #guid; + if generics.is_empty() { + quote! {} + } else { + quote! { + #features + unsafe impl<#constraints> ::windows_core::Interface for #ident { + type Vtable = #vtbl; + const IID: ::windows_core::GUID = #guid; + } } - }); + } + } else { + quote! {} } - - tokens } } pub fn interface_vtbl(&self, def: metadata::TypeDef, generics: &[metadata::Type], _ident: &TokenStream, constraints: &TokenStream, features: &TokenStream) -> TokenStream { @@ -923,9 +918,6 @@ impl Writer { quote! { #name.len().try_into().unwrap(), } } } - metadata::SignatureParamKind::TryInto => { - quote! { #name.try_into_param()?.abi(), } - } metadata::SignatureParamKind::IntoParam => { quote! { #name.into_param().abi(), } } @@ -1019,7 +1011,7 @@ impl Writer { } } metadata::SignatureParamKind::ArrayRelativePtr(_) => {} - metadata::SignatureParamKind::TryInto | metadata::SignatureParamKind::IntoParam => { + metadata::SignatureParamKind::IntoParam => { let (position, _) = generic_params.next().unwrap(); let kind: TokenStream = format!("P{position}").into(); tokens.combine("e! { #name: #kind, }); From 3b59d61337b923c4e20343ed709bef346356f6a1 Mon Sep 17 00:00:00 2001 From: Kenny Kerr Date: Fri, 5 Jan 2024 12:25:28 -0600 Subject: [PATCH 04/10] macros --- crates/libs/implement/src/lib.rs | 8 ++++---- crates/libs/interface/src/lib.rs | 4 +--- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/crates/libs/implement/src/lib.rs b/crates/libs/implement/src/lib.rs index 75eb526acc..45234a22b7 100644 --- a/crates/libs/implement/src/lib.rs +++ b/crates/libs/implement/src/lib.rs @@ -135,9 +135,9 @@ pub fn implement(attributes: proc_macro::TokenStream, original_type: proc_macro: let iid = &*iid; - *interface = if iid == &<::windows::core::IUnknown as ::windows::core::ComInterface>::IID - || iid == &<::windows::core::IInspectable as ::windows::core::ComInterface>::IID - || iid == &<::windows::core::imp::IAgileObject as ::windows::core::ComInterface>::IID { + *interface = if iid == &<::windows::core::IUnknown as ::windows::core::Interface>::IID + || iid == &<::windows::core::IInspectable as ::windows::core::Interface>::IID + || iid == &<::windows::core::imp::IAgileObject as ::windows::core::Interface>::IID { &self.identity as *const _ as *mut _ } #(#queries)* else { ::core::ptr::null_mut() @@ -181,7 +181,7 @@ pub fn implement(attributes: proc_macro::TokenStream, original_type: proc_macro: /// /// This function can only be safely called if `self` has been heap allocated and pinned using /// the mechanisms provided by `implement` macro. - unsafe fn cast(&self) -> ::windows::core::Result { + unsafe fn cast(&self) -> ::windows::core::Result { let boxed = (self as *const _ as *const *mut ::core::ffi::c_void).sub(1 + #interfaces_len) as *mut #impl_ident::#generics; let mut result = None; <#impl_ident::#generics as ::windows::core::IUnknownImpl>::QueryInterface(&*boxed, &I::IID, &mut result as *mut _ as _).and_some(result) diff --git a/crates/libs/interface/src/lib.rs b/crates/libs/interface/src/lib.rs index 16301095b3..5ca509587f 100644 --- a/crates/libs/interface/src/lib.rs +++ b/crates/libs/interface/src/lib.rs @@ -96,8 +96,6 @@ impl Interface { #implementation unsafe impl ::windows::core::Interface for #name { type Vtable = #vtable_name; - } - unsafe impl ::windows::core::ComInterface for #name { const IID: ::windows::core::GUID = #guid; } impl ::windows::core::RuntimeName for #name {} @@ -259,7 +257,7 @@ impl Interface { } pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &<#name as ::windows::core::ComInterface>::IID + iid == &<#name as ::windows::core::Interface>::IID } } } From 3109d509dd3a5507054b16ee3a297ee1bf8e34cd Mon Sep 17 00:00:00 2001 From: Kenny Kerr Date: Fri, 5 Jan 2024 12:29:53 -0600 Subject: [PATCH 05/10] windows-core --- crates/libs/core/src/agile_reference.rs | 8 +- crates/libs/core/src/com_interface.rs | 50 ----- crates/libs/core/src/event.rs | 20 +- crates/libs/core/src/imp/com_bindings.rs | 223 ++++++-------------- crates/libs/core/src/imp/factory_cache.rs | 6 +- crates/libs/core/src/imp/generic_factory.rs | 9 +- crates/libs/core/src/imp/mod.rs | 56 ++++- crates/libs/core/src/imp/sha1.rs | 4 +- crates/libs/core/src/imp/weak_ref_count.rs | 2 +- crates/libs/core/src/inspectable.rs | 13 +- crates/libs/core/src/interface.rs | 36 +++- crates/libs/core/src/lib.rs | 4 +- crates/libs/core/src/param.rs | 83 ++------ crates/libs/core/src/unknown.rs | 7 +- crates/libs/core/src/weak.rs | 4 +- 15 files changed, 207 insertions(+), 318 deletions(-) delete mode 100644 crates/libs/core/src/com_interface.rs diff --git a/crates/libs/core/src/agile_reference.rs b/crates/libs/core/src/agile_reference.rs index 91dcd1593d..c8f15453c8 100644 --- a/crates/libs/core/src/agile_reference.rs +++ b/crates/libs/core/src/agile_reference.rs @@ -6,10 +6,10 @@ use std::marker::PhantomData; #[derive(Clone, PartialEq, Eq)] pub struct AgileReference(crate::imp::IAgileReference, PhantomData); -impl AgileReference { +impl AgileReference { /// Creates an agile reference to the object. pub fn new(object: &T) -> Result { - unsafe { crate::imp::RoGetAgileReference(crate::imp::AGILEREFERENCE_DEFAULT, &T::IID, object.as_unknown()).map(|reference| Self(reference, Default::default())) } + unsafe { crate::imp::RoGetAgileReference(crate::imp::AGILEREFERENCE_DEFAULT, &T::IID, std::mem::transmute::<_, &IUnknown>(object)).map(|reference| Self(reference, Default::default())) } } /// Retrieves a proxy to the target of the `AgileReference` object that may safely be used within any thread context in which get is called. @@ -18,8 +18,8 @@ impl AgileReference { } } -unsafe impl Send for AgileReference {} -unsafe impl Sync for AgileReference {} +unsafe impl Send for AgileReference {} +unsafe impl Sync for AgileReference {} impl std::fmt::Debug for AgileReference { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { diff --git a/crates/libs/core/src/com_interface.rs b/crates/libs/core/src/com_interface.rs deleted file mode 100644 index 5259238b9e..0000000000 --- a/crates/libs/core/src/com_interface.rs +++ /dev/null @@ -1,50 +0,0 @@ -use super::*; - -/// Provides low-level access to a COM interface. -/// -/// This trait is automatically implemented by the generated bindings and should not be -/// implemented manually. -/// -/// # Safety -/// -/// It is only safe to implement this trait if the implementing type is a valid COM interface pointer meaning -/// the following criteria are met: -/// * its in-memory representation is equal to `NonNull>` -/// * the vtable is correctly structured beginning with the `IUnknown` function pointers -/// * the vtable must be the correct vtable for the supplied IID -pub unsafe trait ComInterface: Interface + Clone { - /// A unique identifier representing this interface. - const IID: GUID; - - // Casts the `ComInterface` to a `IUnknown`. - fn as_unknown(&self) -> &IUnknown { - // SAFETY: it is always safe to treat a `ComInterface` as an `IUnknown`. - unsafe { std::mem::transmute(self) } - } - - /// Attempts to cast the current interface to another interface using `QueryInterface`. - /// - /// The name `cast` is preferred to `query` because there is a WinRT method named query but not one - /// named cast. - fn cast(&self) -> Result { - let mut result = None; - // SAFETY: `result` is valid for writing an interface pointer and it is safe - // to cast the `result` pointer as `T` on success because we are using the `IID` tied - // to `T` which the implementor of `ComInterface` has guaranteed is correct - unsafe { self.query(&T::IID, &mut result as *mut _ as _).and_some(result) } - } - - /// Attempts to create a [`Weak`] reference to this object. - fn downgrade(&self) -> Result> { - self.cast::().and_then(|source| Weak::downgrade(&source)) - } - - /// Call `QueryInterface` on this interface - /// - /// # Safety - /// - /// `interface` must be a non-null, valid pointer for writing an interface pointer. - unsafe fn query(&self, iid: *const GUID, interface: *mut *mut std::ffi::c_void) -> HRESULT { - (self.assume_vtable::().QueryInterface)(self.as_raw(), iid, interface) - } -} diff --git a/crates/libs/core/src/event.rs b/crates/libs/core/src/event.rs index eea0683dfc..c63a252d42 100644 --- a/crates/libs/core/src/event.rs +++ b/crates/libs/core/src/event.rs @@ -5,19 +5,19 @@ use std::sync::*; /// /// The implementation is thread-safe and designed to avoid contention between events being /// raised and delegates being added or removed. -pub struct Event { +pub struct Event { swap: Mutex<()>, change: Mutex<()>, delegates: Array, } -impl Default for Event { +impl Default for Event { fn default() -> Self { Self::new() } } -impl Event { +impl Event { /// Creates a new, empty `Event`. pub fn new() -> Self { Self { delegates: Array::new(), swap: Mutex::default(), change: Mutex::default() } @@ -109,19 +109,19 @@ impl Event { } /// A thread-safe reference-counted array of delegates. -struct Array { +struct Array { buffer: *mut Buffer, len: usize, _phantom: std::marker::PhantomData, } -impl Default for Array { +impl Default for Array { fn default() -> Self { Self::new() } } -impl Array { +impl Array { /// Creates a new, empty `Array` with no capacity. fn new() -> Self { Self { buffer: std::ptr::null_mut(), len: 0, _phantom: std::marker::PhantomData } @@ -176,7 +176,7 @@ impl Array { } } -impl Clone for Array { +impl Clone for Array { fn clone(&self) -> Self { if !self.is_empty() { unsafe { (*self.buffer).0.add_ref() }; @@ -185,7 +185,7 @@ impl Clone for Array { } } -impl Drop for Array { +impl Drop for Array { fn drop(&mut self) { unsafe { if !self.is_empty() && (*self.buffer).0.release() == 0 { @@ -200,7 +200,7 @@ impl Drop for Array { #[repr(C)] struct Buffer(crate::imp::RefCount, std::marker::PhantomData); -impl Buffer { +impl Buffer { /// Creates a new `Buffer` with the specified size in bytes. fn new(len: usize) -> Result<*mut Self> { if len == 0 { @@ -234,7 +234,7 @@ enum Delegate { Indirect(AgileReference), } -impl Delegate { +impl Delegate { /// Creates a new `Delegate`, containing a suitable reference to the specified delegate. fn new(delegate: &T) -> Result { if delegate.cast::().is_ok() { diff --git a/crates/libs/core/src/imp/com_bindings.rs b/crates/libs/core/src/imp/com_bindings.rs index b47efbd88c..9439e0f06e 100644 --- a/crates/libs/core/src/imp/com_bindings.rs +++ b/crates/libs/core/src/imp/com_bindings.rs @@ -79,50 +79,33 @@ impl ::core::default::Default for DateTime { pub const E_BOUNDS: ::windows_core::HRESULT = ::windows_core::HRESULT(-2147483637i32); pub const E_NOINTERFACE: ::windows_core::HRESULT = ::windows_core::HRESULT(-2147467262i32); pub const E_OUTOFMEMORY: ::windows_core::HRESULT = ::windows_core::HRESULT(-2147024882i32); -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAgileObject(::windows_core::IUnknown); -impl IAgileObject {} +::windows_core::imp::com_interface!(IAgileObject, IAgileObject_Vtbl, 0x94ea2b94_e9cc_49e0_c0ff_ee64ca8f5b90); ::windows_core::imp::interface_hierarchy!(IAgileObject, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAgileObject { - type Vtable = IAgileObject_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAgileObject { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x94ea2b94_e9cc_49e0_c0ff_ee64ca8f5b90); -} +impl IAgileObject {} #[repr(C)] #[doc(hidden)] pub struct IAgileObject_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IAgileReference(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IAgileReference, IAgileReference_Vtbl, 0xc03f6a43_65a4_9818_987e_e0b810d2a6f2); +::windows_core::imp::interface_hierarchy!(IAgileReference, ::windows_core::IUnknown); impl IAgileReference { pub unsafe fn Resolve(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).Resolve)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IAgileReference, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IAgileReference { - type Vtable = IAgileReference_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IAgileReference { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xc03f6a43_65a4_9818_987e_e0b810d2a6f2); -} #[repr(C)] #[doc(hidden)] pub struct IAgileReference_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Resolve: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, ppvobjectreference: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IErrorInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IErrorInfo, IErrorInfo_Vtbl, 0x1cf2b120_547d_101b_8e65_08002b2bd119); +::windows_core::imp::interface_hierarchy!(IErrorInfo, ::windows_core::IUnknown); impl IErrorInfo { pub unsafe fn GetGUID(&self) -> ::windows_core::Result<::windows_core::GUID> { let mut result__ = ::std::mem::zeroed(); @@ -145,13 +128,6 @@ impl IErrorInfo { (::windows_core::Interface::vtable(self).GetHelpContext)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IErrorInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IErrorInfo { - type Vtable = IErrorInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IErrorInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x1cf2b120_547d_101b_8e65_08002b2bd119); -} #[repr(C)] #[doc(hidden)] pub struct IErrorInfo_Vtbl { @@ -162,31 +138,22 @@ pub struct IErrorInfo_Vtbl { pub GetHelpFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrhelpfile: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub GetHelpContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwhelpcontext: *mut u32) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILanguageExceptionErrorInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ILanguageExceptionErrorInfo, ILanguageExceptionErrorInfo_Vtbl, 0x04a2dbf3_df83_116c_0946_0812abf6e07d); +::windows_core::imp::interface_hierarchy!(ILanguageExceptionErrorInfo, ::windows_core::IUnknown); impl ILanguageExceptionErrorInfo { pub unsafe fn GetLanguageException(&self) -> ::windows_core::Result<::windows_core::IUnknown> { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetLanguageException)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ILanguageExceptionErrorInfo, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ILanguageExceptionErrorInfo { - type Vtable = ILanguageExceptionErrorInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILanguageExceptionErrorInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x04a2dbf3_df83_116c_0946_0812abf6e07d); -} #[repr(C)] #[doc(hidden)] pub struct ILanguageExceptionErrorInfo_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub GetLanguageException: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, languageexception: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ILanguageExceptionErrorInfo2(::windows_core::IUnknown); +::windows_core::imp::com_interface!(ILanguageExceptionErrorInfo2, ILanguageExceptionErrorInfo2_Vtbl, 0x5746e5c4_5b97_424c_b620_2822915734dd); +::windows_core::imp::interface_hierarchy!(ILanguageExceptionErrorInfo2, ::windows_core::IUnknown, ILanguageExceptionErrorInfo); impl ILanguageExceptionErrorInfo2 { pub unsafe fn GetLanguageException(&self) -> ::windows_core::Result<::windows_core::IUnknown> { let mut result__ = ::std::mem::zeroed(); @@ -207,13 +174,6 @@ impl ILanguageExceptionErrorInfo2 { (::windows_core::Interface::vtable(self).GetPropagationContextHead)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(ILanguageExceptionErrorInfo2, ::windows_core::IUnknown, ILanguageExceptionErrorInfo); -unsafe impl ::windows_core::Interface for ILanguageExceptionErrorInfo2 { - type Vtable = ILanguageExceptionErrorInfo2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ILanguageExceptionErrorInfo2 { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x5746e5c4_5b97_424c_b620_2822915734dd); -} #[repr(C)] #[doc(hidden)] pub struct ILanguageExceptionErrorInfo2_Vtbl { @@ -222,9 +182,8 @@ pub struct ILanguageExceptionErrorInfo2_Vtbl { pub CapturePropagationContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, languageexception: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub GetPropagationContextHead: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propagatedlanguageexceptionerrorinfohead: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPropertyValue(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IPropertyValue, IPropertyValue_Vtbl, 0x4bd682dd_7554_40e9_9a9b_82654ede7e62); +::windows_core::imp::interface_hierarchy!(IPropertyValue, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IPropertyValue { pub fn Type(&self) -> ::windows_core::Result { let this = self; @@ -443,16 +402,9 @@ impl IPropertyValue { unsafe { (::windows_core::Interface::vtable(this).GetRectArray)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } } } -::windows_core::imp::interface_hierarchy!(IPropertyValue, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IPropertyValue { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IPropertyValue { - type Vtable = IPropertyValue_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPropertyValue { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x4bd682dd_7554_40e9_9a9b_82654ede7e62); -} #[repr(C)] #[doc(hidden)] pub struct IPropertyValue_Vtbl { @@ -497,16 +449,7 @@ pub struct IPropertyValue_Vtbl { pub GetSizeArray: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value_array_size: *mut u32, value: *mut *mut Size) -> ::windows_core::HRESULT, pub GetRectArray: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value_array_size: *mut u32, value: *mut *mut Rect) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IPropertyValueStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IPropertyValueStatics { - type Vtable = IPropertyValueStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IPropertyValueStatics { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x629bdbc8_d932_4ff4_96b9_8d96c5c1e858); -} +::windows_core::imp::com_interface!(IPropertyValueStatics, IPropertyValueStatics_Vtbl, 0x629bdbc8_d932_4ff4_96b9_8d96c5c1e858); #[repr(C)] #[doc(hidden)] pub struct IPropertyValueStatics_Vtbl { @@ -556,6 +499,11 @@ pub struct IPropertyValueStatics_Vtbl { pub struct IReference(::windows_core::IUnknown, ::core::marker::PhantomData) where T: ::windows_core::RuntimeType + 'static; +impl ::windows_core::CanInto<::windows_core::IUnknown> for IReference {} +impl ::windows_core::CanInto<::windows_core::IInspectable> for IReference {} +impl ::windows_core::CanInto for IReference { + const QUERY: bool = true; +} impl IReference { pub fn Value(&self) -> ::windows_core::Result { let this = self; @@ -565,232 +513,227 @@ impl IReference { } } pub fn Type(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Type)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn IsNumericScalar(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).IsNumericScalar)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetUInt8(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetUInt8)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetInt16(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetInt16)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetUInt16(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetUInt16)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetInt32(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetInt32)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetUInt32(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetUInt32)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetInt64(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetInt64)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetUInt64(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetUInt64)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetSingle(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetSingle)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetDouble(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetDouble)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetChar16(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetChar16)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetBoolean(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetBoolean)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetString)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetGuid(&self) -> ::windows_core::Result<::windows_core::GUID> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetGuid)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetDateTime(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetDateTime)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetTimeSpan(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetTimeSpan)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetPoint(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetPoint)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetSize(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetSize)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetRect(&self) -> ::windows_core::Result { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetRect)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) } } pub fn GetUInt8Array(&self, value: &mut ::windows_core::Array) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).GetUInt8Array)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } } pub fn GetInt16Array(&self, value: &mut ::windows_core::Array) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).GetInt16Array)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } } pub fn GetUInt16Array(&self, value: &mut ::windows_core::Array) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).GetUInt16Array)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } } pub fn GetInt32Array(&self, value: &mut ::windows_core::Array) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).GetInt32Array)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } } pub fn GetUInt32Array(&self, value: &mut ::windows_core::Array) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).GetUInt32Array)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } } pub fn GetInt64Array(&self, value: &mut ::windows_core::Array) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).GetInt64Array)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } } pub fn GetUInt64Array(&self, value: &mut ::windows_core::Array) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).GetUInt64Array)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } } pub fn GetSingleArray(&self, value: &mut ::windows_core::Array) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).GetSingleArray)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } } pub fn GetDoubleArray(&self, value: &mut ::windows_core::Array) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).GetDoubleArray)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } } pub fn GetChar16Array(&self, value: &mut ::windows_core::Array) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).GetChar16Array)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } } pub fn GetBooleanArray(&self, value: &mut ::windows_core::Array) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).GetBooleanArray)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } } pub fn GetStringArray(&self, value: &mut ::windows_core::Array<::windows_core::HSTRING>) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).GetStringArray)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } } pub fn GetInspectableArray(&self, value: &mut ::windows_core::Array<::windows_core::IInspectable>) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).GetInspectableArray)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } } pub fn GetGuidArray(&self, value: &mut ::windows_core::Array<::windows_core::GUID>) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).GetGuidArray)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } } pub fn GetDateTimeArray(&self, value: &mut ::windows_core::Array) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).GetDateTimeArray)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } } pub fn GetTimeSpanArray(&self, value: &mut ::windows_core::Array) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).GetTimeSpanArray)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } } pub fn GetPointArray(&self, value: &mut ::windows_core::Array) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).GetPointArray)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } } pub fn GetSizeArray(&self, value: &mut ::windows_core::Array) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).GetSizeArray)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } } pub fn GetRectArray(&self, value: &mut ::windows_core::Array) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).GetRectArray)(::windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } } } -impl ::windows_core::CanInto<::windows_core::IUnknown> for IReference {} -impl ::windows_core::CanInto<::windows_core::IInspectable> for IReference {} -impl ::windows_core::CanTryInto for IReference {} impl ::windows_core::RuntimeType for IReference { const SIGNATURE: ::windows_core::imp::ConstBuffer = { ::windows_core::imp::ConstBuffer::new().push_slice(b"pinterface(").push_slice(b"{61c17706-2d65-11e0-9ae8-d48564015472}").push_slice(b";").push_other(T::SIGNATURE).push_slice(b")") }; } unsafe impl ::windows_core::Interface for IReference { type Vtable = IReference_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IReference { const IID: ::windows_core::GUID = ::windows_core::GUID::from_signature(::SIGNATURE); } #[repr(C)] @@ -803,9 +746,8 @@ where pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::AbiType) -> ::windows_core::HRESULT, pub T: ::core::marker::PhantomData, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IRestrictedErrorInfo(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IRestrictedErrorInfo, IRestrictedErrorInfo_Vtbl, 0x82ba7092_4c88_427d_a7bc_16dd93feb67e); +::windows_core::imp::interface_hierarchy!(IRestrictedErrorInfo, ::windows_core::IUnknown); impl IRestrictedErrorInfo { pub unsafe fn GetErrorDetails(&self, description: *mut ::windows_core::BSTR, error: *mut ::windows_core::HRESULT, restricteddescription: *mut ::windows_core::BSTR, capabilitysid: *mut ::windows_core::BSTR) -> ::windows_core::Result<()> { (::windows_core::Interface::vtable(self).GetErrorDetails)(::windows_core::Interface::as_raw(self), ::core::mem::transmute(description), error, ::core::mem::transmute(restricteddescription), ::core::mem::transmute(capabilitysid)).ok() @@ -815,15 +757,8 @@ impl IRestrictedErrorInfo { (::windows_core::Interface::vtable(self).GetReference)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IRestrictedErrorInfo, ::windows_core::IUnknown); unsafe impl ::core::marker::Send for IRestrictedErrorInfo {} unsafe impl ::core::marker::Sync for IRestrictedErrorInfo {} -unsafe impl ::windows_core::Interface for IRestrictedErrorInfo { - type Vtable = IRestrictedErrorInfo_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IRestrictedErrorInfo { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x82ba7092_4c88_427d_a7bc_16dd93feb67e); -} #[repr(C)] #[doc(hidden)] pub struct IRestrictedErrorInfo_Vtbl { @@ -831,9 +766,8 @@ pub struct IRestrictedErrorInfo_Vtbl { pub GetErrorDetails: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, description: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>, error: *mut ::windows_core::HRESULT, restricteddescription: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>, capabilitysid: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, pub GetReference: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, reference: *mut ::std::mem::MaybeUninit<::windows_core::BSTR>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStringable(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IStringable, IStringable_Vtbl, 0x96369f54_8eb6_48f0_abce_c1b211e627c3); +::windows_core::imp::interface_hierarchy!(IStringable, ::windows_core::IUnknown, ::windows_core::IInspectable); impl IStringable { pub fn ToString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -843,63 +777,40 @@ impl IStringable { } } } -::windows_core::imp::interface_hierarchy!(IStringable, ::windows_core::IUnknown, ::windows_core::IInspectable); impl ::windows_core::RuntimeType for IStringable { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IStringable { - type Vtable = IStringable_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStringable { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x96369f54_8eb6_48f0_abce_c1b211e627c3); -} #[repr(C)] #[doc(hidden)] pub struct IStringable_Vtbl { pub base__: ::windows_core::IInspectable_Vtbl, pub ToString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWeakReference(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWeakReference, IWeakReference_Vtbl, 0x00000037_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IWeakReference, ::windows_core::IUnknown); impl IWeakReference { pub unsafe fn Resolve(&self) -> ::windows_core::Result where - T: ::windows_core::ComInterface, + T: ::windows_core::Interface, { let mut result__ = ::std::ptr::null_mut(); (::windows_core::Interface::vtable(self).Resolve)(::windows_core::Interface::as_raw(self), &T::IID, &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWeakReference, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWeakReference { - type Vtable = IWeakReference_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWeakReference { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00000037_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IWeakReference_Vtbl { pub base__: ::windows_core::IUnknown_Vtbl, pub Resolve: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows_core::GUID, objectreference: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWeakReferenceSource(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IWeakReferenceSource, IWeakReferenceSource_Vtbl, 0x00000038_0000_0000_c000_000000000046); +::windows_core::imp::interface_hierarchy!(IWeakReferenceSource, ::windows_core::IUnknown); impl IWeakReferenceSource { pub unsafe fn GetWeakReference(&self) -> ::windows_core::Result { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(self).GetWeakReference)(::windows_core::Interface::as_raw(self), &mut result__).from_abi(result__) } } -::windows_core::imp::interface_hierarchy!(IWeakReferenceSource, ::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWeakReferenceSource { - type Vtable = IWeakReferenceSource_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWeakReferenceSource { - const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x00000038_0000_0000_c000_000000000046); -} #[repr(C)] #[doc(hidden)] pub struct IWeakReferenceSource_Vtbl { diff --git a/crates/libs/core/src/imp/factory_cache.rs b/crates/libs/core/src/imp/factory_cache.rs index 1f8d929456..d0202dbf6e 100644 --- a/crates/libs/core/src/imp/factory_cache.rs +++ b/crates/libs/core/src/imp/factory_cache.rs @@ -1,5 +1,5 @@ use super::*; -use crate::ComInterface; +use crate::Interface; use std::marker::PhantomData; use std::sync::atomic::{AtomicPtr, Ordering}; @@ -16,7 +16,7 @@ impl FactoryCache { } } -impl FactoryCache { +impl FactoryCache { pub fn call crate::Result>(&self, callback: F) -> crate::Result { loop { // Attempt to load a previously cached factory pointer. @@ -49,7 +49,7 @@ unsafe impl Sync for FactoryCache {} /// Attempts to load the factory object for the given WinRT class. /// This can be used to access COM interfaces implemented on a Windows Runtime class factory. -pub fn factory() -> crate::Result { +pub fn factory() -> crate::Result { let mut factory: Option = None; let name = crate::HSTRING::from(C::NAME); diff --git a/crates/libs/core/src/imp/generic_factory.rs b/crates/libs/core/src/imp/generic_factory.rs index cccff8a0a2..dee1bad4fd 100644 --- a/crates/libs/core/src/imp/generic_factory.rs +++ b/crates/libs/core/src/imp/generic_factory.rs @@ -1,4 +1,4 @@ -use crate::ComInterface; +use crate::Interface; // A streamlined version of the IActivationFactory interface used by WinRT class factories used internally by the windows crate // to simplify code generation. Components should implement the `IActivationFactory` interface published by the windows crate. @@ -7,7 +7,7 @@ use crate::ComInterface; pub struct IGenericFactory(crate::IUnknown); impl IGenericFactory { - pub fn ActivateInstance(&self) -> crate::Result { + pub fn ActivateInstance(&self) -> crate::Result { unsafe { let mut result__ = std::mem::zeroed(); (crate::Interface::vtable(self).ActivateInstance)(std::mem::transmute_copy(self), &mut result__ as *mut _ as *mut _).from_abi::(result__)?.cast() @@ -21,10 +21,7 @@ pub struct IGenericFactory_Vtbl { pub ActivateInstance: unsafe extern "system" fn(this: *mut std::ffi::c_void, instance: *mut *mut std::ffi::c_void) -> crate::HRESULT, } -unsafe impl crate::Interface for IGenericFactory { +unsafe impl Interface for IGenericFactory { type Vtable = IGenericFactory_Vtbl; -} - -unsafe impl ComInterface for IGenericFactory { const IID: crate::GUID = crate::GUID::from_u128(0x00000035_0000_0000_c000_000000000046); } diff --git a/crates/libs/core/src/imp/mod.rs b/crates/libs/core/src/imp/mod.rs index 1dd08527e1..7ed833360d 100644 --- a/crates/libs/core/src/imp/mod.rs +++ b/crates/libs/core/src/imp/mod.rs @@ -33,10 +33,10 @@ pub fn wide_trim_end(mut wide: &[u16]) -> &[u16] { #[doc(hidden)] #[macro_export] macro_rules! interface_hierarchy { - ($child:ty, $parent:ty) => { + ($child:ident, $parent:ty) => { impl ::windows_core::CanInto<$parent> for $child {} }; - ($child:ty, $first:ty, $($rest:ty),+) => { + ($child:ident, $first:ty, $($rest:ty),+) => { $crate::imp::interface_hierarchy!($child, $first); $crate::imp::interface_hierarchy!($child, $($rest),+); }; @@ -44,3 +44,55 @@ macro_rules! interface_hierarchy { #[doc(hidden)] pub use interface_hierarchy; + +#[doc(hidden)] +#[macro_export] +macro_rules! required_hierarchy { + ($child:ident, $parent:ty) => { + impl ::windows_core::CanInto<$parent> for $child { const QUERY: bool = true; } + }; + ($child:ident, $first:ty, $($rest:ty),+) => { + $crate::imp::required_hierarchy!($child, $first); + $crate::imp::required_hierarchy!($child, $($rest),+); + }; +} + +#[doc(hidden)] +pub use required_hierarchy; + +#[doc(hidden)] +#[macro_export] +macro_rules! interface { + ($(#[$doc:meta])? $name:ident, $vtbl:ident) => { + $(#[$doc])? + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] + pub struct $name(::std::ptr::NonNull<::std::ffi::c_void>); + unsafe impl ::windows_core::Interface for $name { + type Vtable = $vtbl; + const IID: ::windows_core::GUID = ::windows_core::GUID::zeroed(); + const UNKNOWN: bool = false; + } + }; +} + +#[doc(hidden)] +pub use interface; + +#[doc(hidden)] +#[macro_export] +macro_rules! com_interface { + ($(#[$doc:meta])? $name:ident, $vtbl:ident, $iid:literal) => { + $(#[$doc])? + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] + pub struct $name(::windows_core::IUnknown); + unsafe impl ::windows_core::Interface for $name { + type Vtable = $vtbl; + const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128($iid); + } + }; +} + +#[doc(hidden)] +pub use com_interface; diff --git a/crates/libs/core/src/imp/sha1.rs b/crates/libs/core/src/imp/sha1.rs index 14ef98fb7e..d93ba87077 100644 --- a/crates/libs/core/src/imp/sha1.rs +++ b/crates/libs/core/src/imp/sha1.rs @@ -16,11 +16,11 @@ pub struct ConstBuffer { } impl ConstBuffer { - pub const fn for_class() -> Self { + pub const fn for_class() -> Self { Self::new().push_slice(b"rc(").push_slice(T::NAME.as_bytes()).push(b';').push_guid(&T::IID).push(b')') } - pub const fn for_interface() -> Self { + pub const fn for_interface() -> Self { Self::new().push_guid(&T::IID) } diff --git a/crates/libs/core/src/imp/weak_ref_count.rs b/crates/libs/core/src/imp/weak_ref_count.rs index 038147a2d0..025d1eea6a 100644 --- a/crates/libs/core/src/imp/weak_ref_count.rs +++ b/crates/libs/core/src/imp/weak_ref_count.rs @@ -1,5 +1,5 @@ use super::*; -use crate::ComInterface; +use crate::Interface; use std::sync::atomic::{AtomicIsize, Ordering}; #[doc(hidden)] diff --git a/crates/libs/core/src/inspectable.rs b/crates/libs/core/src/inspectable.rs index d9e92753ba..19719050dd 100644 --- a/crates/libs/core/src/inspectable.rs +++ b/crates/libs/core/src/inspectable.rs @@ -39,9 +39,6 @@ pub struct IInspectable_Vtbl { unsafe impl Interface for IInspectable { type Vtable = IInspectable_Vtbl; -} - -unsafe impl ComInterface for IInspectable { const IID: GUID = GUID::from_u128(0xaf86e2e0_b12d_4c6a_9c5a_d7aa65101e90); } @@ -87,7 +84,7 @@ impl std::fmt::Debug for IInspectable { // Attempts to retrieve the string representation of the object via the // IStringable interface. If that fails, it will use the canonical type // name to give some idea of what the object represents. - let name = ::cast::(self).and_then(|s| s.ToString()).or_else(|_| self.GetRuntimeClassName()).unwrap_or_default(); + let name = ::cast::(self).and_then(|s| s.ToString()).or_else(|_| self.GetRuntimeClassName()).unwrap_or_default(); write!(f, "\"{}\"", name) } } @@ -103,13 +100,13 @@ macro_rules! primitive_boxed_type { impl TryFrom for $t { type Error = Error; fn try_from(value: IInspectable) -> Result { - ::cast::>(&value)?.Value() + ::cast::>(&value)?.Value() } } impl TryFrom<&IInspectable> for $t { type Error = Error; fn try_from(value: &IInspectable) -> Result { - ::cast::>(value)?.Value() + ::cast::>(value)?.Value() } })* }; @@ -148,12 +145,12 @@ impl TryFrom<&HSTRING> for IInspectable { impl TryFrom for HSTRING { type Error = Error; fn try_from(value: IInspectable) -> Result { - ::cast::>(&value)?.Value() + ::cast::>(&value)?.Value() } } impl TryFrom<&IInspectable> for HSTRING { type Error = Error; fn try_from(value: &IInspectable) -> Result { - ::cast::>(value)?.Value() + ::cast::>(value)?.Value() } } diff --git a/crates/libs/core/src/interface.rs b/crates/libs/core/src/interface.rs index 602f9dbb7e..9d602669ff 100644 --- a/crates/libs/core/src/interface.rs +++ b/crates/libs/core/src/interface.rs @@ -1,11 +1,15 @@ +use super::*; + /// Provides low-level access to an interface vtable. /// /// This trait is automatically implemented by the generated bindings and should not be /// implemented manually. /// /// # Safety -pub unsafe trait Interface: Sized { +pub unsafe trait Interface: Sized + Clone { type Vtable; + const IID: GUID; + const UNKNOWN: bool = true; /// A reference to the interface's vtable #[doc(hidden)] @@ -63,6 +67,36 @@ pub unsafe trait Interface: Sized { Some(std::mem::transmute_copy(&raw)) } } + + /// Attempts to cast the current interface to another interface using `QueryInterface`. + /// + /// The name `cast` is preferred to `query` because there is a WinRT method named query but not one + /// named cast. + fn cast(&self) -> Result { + let mut result = None; + // SAFETY: `result` is valid for writing an interface pointer and it is safe + // to cast the `result` pointer as `T` on success because we are using the `IID` tied + // to `T` which the implementor of `Interface` has guaranteed is correct + unsafe { self.query(&T::IID, &mut result as *mut _ as _).and_some(result) } + } + + /// Attempts to create a [`Weak`] reference to this object. + fn downgrade(&self) -> Result> { + self.cast::().and_then(|source| Weak::downgrade(&source)) + } + + /// Call `QueryInterface` on this interface + /// + /// # Safety + /// + /// `interface` must be a non-null, valid pointer for writing an interface pointer. + unsafe fn query(&self, iid: *const GUID, interface: *mut *mut std::ffi::c_void) -> HRESULT { + if Self::UNKNOWN { + (self.assume_vtable::().QueryInterface)(self.as_raw(), iid, interface) + } else { + panic!() + } + } } /// # Safety diff --git a/crates/libs/core/src/lib.rs b/crates/libs/core/src/lib.rs index ea5c36d0c2..64b9dc1888 100644 --- a/crates/libs/core/src/lib.rs +++ b/crates/libs/core/src/lib.rs @@ -14,7 +14,6 @@ pub mod imp; mod agile_reference; mod array; mod as_impl; -mod com_interface; mod error; mod event; mod guid; @@ -33,7 +32,6 @@ mod weak; pub use agile_reference::*; pub use array::*; pub use as_impl::*; -pub use com_interface::*; pub use error::*; pub use event::*; pub use guid::*; @@ -54,6 +52,6 @@ pub type Result = std::result::Result; /// Attempts to load the factory object for the given WinRT class. /// This can be used to access COM interfaces implemented on a Windows Runtime class factory. -pub fn factory() -> Result { +pub fn factory() -> Result { crate::imp::factory::() } diff --git a/crates/libs/core/src/param.rs b/crates/libs/core/src/param.rs index 442b8e4967..d90acbe38a 100644 --- a/crates/libs/core/src/param.rs +++ b/crates/libs/core/src/param.rs @@ -17,68 +17,10 @@ impl> Param { } } -#[doc(hidden)] -pub trait TryIntoParam> { - fn try_into_param(self) -> Result>; -} - -impl TryIntoParam for Option<&T> -where - T: ComInterface, -{ - fn try_into_param(self) -> Result> { - match self { - Some(from) => Ok(Param::Borrowed(from.abi())), - None => Ok(Param::Borrowed(unsafe { std::mem::zeroed() })), - } - } -} - -impl TryIntoParam for &U -where - T: ComInterface, - U: ComInterface, - U: CanTryInto, -{ - fn try_into_param(self) -> Result> { - if U::CAN_INTO { - Ok(Param::Borrowed(self.abi())) - } else { - Ok(Param::Owned(self.cast()?)) - } - } -} - -#[doc(hidden)] -pub trait CanTryInto: ComInterface -where - T: ComInterface, -{ - const CAN_INTO: bool = false; +pub trait CanInto: Sized { + const QUERY: bool = false; } -impl CanTryInto for U -where - T: ComInterface, - U: ComInterface, - U: CanInto, -{ - const CAN_INTO: bool = true; -} - -#[doc(hidden)] -pub trait CanInto: Sized -where - T: Clone, -{ - fn can_into(&self) -> &T { - unsafe { std::mem::transmute(self) } - } - - fn can_clone_into(&self) -> T { - self.can_into().clone() - } -} impl CanInto for T where T: Clone {} #[doc(hidden)] @@ -94,21 +36,28 @@ where T: Type, { fn into_param(self) -> Param { - match self { - Some(item) => Param::Borrowed(item.abi()), - None => Param::Borrowed(unsafe { std::mem::zeroed() }), - } + Param::Borrowed(match self { + Some(item) => item.abi(), + None => unsafe { std::mem::zeroed() }, + }) } } impl IntoParam for &U where T: TypeKind + Clone, - U: TypeKind + Clone, + T: Interface, + U: Interface, U: CanInto, { fn into_param(self) -> Param { - Param::Borrowed(self.abi()) + unsafe { + if U::QUERY { + self.cast().map_or(Param::Borrowed(std::mem::zeroed()), |ok| Param::Owned(ok)) + } else { + Param::Borrowed(std::mem::transmute_copy(self)) + } + } } } @@ -128,6 +77,6 @@ where U: CanInto, { fn into_param(self) -> Param { - unsafe { Param::Owned(std::mem::transmute_copy(&self)) } + Param::Owned(unsafe { std::mem::transmute_copy(&self) }) } } diff --git a/crates/libs/core/src/unknown.rs b/crates/libs/core/src/unknown.rs index a6f62e00e0..67261ccf51 100644 --- a/crates/libs/core/src/unknown.rs +++ b/crates/libs/core/src/unknown.rs @@ -15,11 +15,12 @@ pub struct IUnknown_Vtbl { pub Release: unsafe extern "system" fn(this: *mut std::ffi::c_void) -> u32, } +// impl TypeKind for IUnknown { +// type TypeKind = ReferenceType; +// } + unsafe impl Interface for IUnknown { type Vtable = IUnknown_Vtbl; -} - -unsafe impl ComInterface for IUnknown { const IID: GUID = GUID::from_u128(0x00000000_0000_0000_c000_000000000046); } diff --git a/crates/libs/core/src/weak.rs b/crates/libs/core/src/weak.rs index fa3eb46452..4eaebaf5bc 100644 --- a/crates/libs/core/src/weak.rs +++ b/crates/libs/core/src/weak.rs @@ -3,9 +3,9 @@ use std::marker::PhantomData; /// `Weak` holds a non-owning reference to an object. #[derive(Clone, PartialEq, Eq, Default)] -pub struct Weak(Option, PhantomData); +pub struct Weak(Option, PhantomData); -impl Weak { +impl Weak { /// Creates a new `Weak` object without any backing object. pub fn new() -> Self { Self(None, PhantomData) From 11da8acd24000496823049e7dcf214c9ab786ca5 Mon Sep 17 00:00:00 2001 From: Kenny Kerr Date: Fri, 5 Jan 2024 12:30:14 -0600 Subject: [PATCH 06/10] tests --- crates/samples/windows/direct3d12/src/main.rs | 2 +- crates/tests/component/src/bindings.rs | 60 ++---- crates/tests/component/src/lib.rs | 4 +- crates/tests/component_client/src/bindings.rs | 56 ++---- crates/tests/component_client/src/lib.rs | 2 +- crates/tests/debug_inspectable/tests/tests.rs | 4 +- crates/tests/implement/tests/com_chain.rs | 2 +- crates/tests/implement/tests/dual.rs | 2 +- crates/tests/implement/tests/identity.rs | 4 +- crates/tests/implement/tests/query.rs | 2 +- crates/tests/implement/tests/vector.rs | 2 +- .../tests/interface/tests/non_com_existing.rs | 2 + .../tests/interop/tests/activate_instance.rs | 2 +- crates/tests/no_use/tests/test.rs | 2 +- crates/tests/riddle/src/generic_interfaces.rs | 21 +- crates/tests/riddle/src/params.rs | 10 +- crates/tests/standalone/src/b_calendar.rs | 105 ++++------ crates/tests/standalone/src/b_stringable.rs | 15 +- crates/tests/standalone/src/b_uri.rs | 186 ++++++------------ crates/tests/weak_ref/tests/count.rs | 2 +- crates/tests/winrt/tests/cast.rs | 2 +- crates/tests/winrt/tests/collections.rs | 2 +- crates/tests/winrt/tests/composition.rs | 4 +- crates/tests/winrt/tests/delegates.rs | 2 +- crates/tests/winrt/tests/generic_guids.rs | 2 +- crates/tests/winrt/tests/interface.rs | 2 +- crates/tests/winrt/tests/object.rs | 2 +- crates/tests/winrt/tests/send_sync.rs | 2 +- crates/tests/winrt/tests/uri.rs | 2 +- 29 files changed, 168 insertions(+), 337 deletions(-) diff --git a/crates/samples/windows/direct3d12/src/main.rs b/crates/samples/windows/direct3d12/src/main.rs index 7f8ffa4cf0..4ac091643c 100644 --- a/crates/samples/windows/direct3d12/src/main.rs +++ b/crates/samples/windows/direct3d12/src/main.rs @@ -411,7 +411,7 @@ mod d3d12_hello_triangle { populate_command_list(resources).unwrap(); // Execute the command list. - let command_list = Some(resources.command_list.can_clone_into()); + let command_list = Some(resources.command_list.cast().unwrap()); unsafe { resources.command_queue.ExecuteCommandLists(&[command_list]) }; // Present the frame. diff --git a/crates/tests/component/src/bindings.rs b/crates/tests/component/src/bindings.rs index 691c677ff0..d9a833ad74 100644 --- a/crates/tests/component/src/bindings.rs +++ b/crates/tests/component/src/bindings.rs @@ -8,9 +8,11 @@ clippy::all )] pub mod Nested { - #[repr(transparent)] - #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] - pub struct IThing(::windows_core::IUnknown); + ::windows_core::imp::com_interface!( + IThing, + IThing_Vtbl, + 0x5448be22_9873_5ae6_9106_f6e8455d2fdd + ); impl IThing { pub fn Method(&self) -> ::windows_core::Result<()> { let this = self; @@ -31,13 +33,6 @@ pub mod Nested { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } - unsafe impl ::windows_core::Interface for IThing { - type Vtable = IThing_Vtbl; - } - unsafe impl ::windows_core::ComInterface for IThing { - const IID: ::windows_core::GUID = - ::windows_core::GUID::from_u128(0x5448be22_9873_5ae6_9106_f6e8455d2fdd); - } #[repr(C)] #[doc(hidden)] pub struct IThing_Vtbl { @@ -74,21 +69,11 @@ pub mod Nested { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IClass(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IClass { - type Vtable = IClass_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IClass { - const IID: ::windows_core::GUID = - ::windows_core::GUID::from_u128(0x97540591_1323_59c0_9ae0_f510cae62e54); -} +::windows_core::imp::com_interface!(IClass, IClass_Vtbl, 0x97540591_1323_59c0_9ae0_f510cae62e54); #[repr(C)] #[doc(hidden)] pub struct IClass_Vtbl { @@ -238,7 +223,7 @@ impl Class { where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, P1: ::windows_core::IntoParam, - P2: ::windows_core::TryIntoParam<::windows::Foundation::IStringable>, + P2: ::windows_core::IntoParam<::windows::Foundation::IStringable>, P3: ::windows_core::IntoParam, { let this = self; @@ -247,7 +232,7 @@ impl Class { ::windows_core::Interface::as_raw(this), a.into_param().abi(), b.into_param().abi(), - c.try_into_param()?.abi(), + c.into_param().abi(), d.into_param().abi(), ) .ok() @@ -260,9 +245,7 @@ impl ::windows_core::RuntimeType for Class { } unsafe impl ::windows_core::Interface for Class { type Vtable = IClass_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Class { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Class { const NAME: &'static str = "test_component.Class"; @@ -331,9 +314,11 @@ impl ::windows_core::RuntimeType for Flags { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::from_slice(b"enum(test_component.Flags;u4)"); } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct Callback(pub ::windows_core::IUnknown); +::windows_core::imp::com_interface!( + Callback, + Callback_Vtbl, + 0xe39afc7e_93f1_5a1d_92ef_bd5f71c62cb8 +); impl Callback { pub fn new ::windows_core::Result + ::core::marker::Send + 'static>( invoke: F, @@ -382,9 +367,9 @@ impl ::windows_core::Result + ::core::marker::Send + 'stat if iid.is_null() || interface.is_null() { return ::windows_core::HRESULT(-2147467261); } - *interface = if *iid == ::IID - || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID - || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID + *interface = if *iid == ::IID + || *iid == <::windows_core::IUnknown as ::windows_core::Interface>::IID + || *iid == <::windows_core::imp::IAgileObject as ::windows_core::Interface>::IID { &mut (*this).vtable as *mut _ as _ } else { @@ -424,13 +409,6 @@ impl ::windows_core::Result + ::core::marker::Send + 'stat } } } -unsafe impl ::windows_core::Interface for Callback { - type Vtable = Callback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Callback { - const IID: ::windows_core::GUID = - ::windows_core::GUID::from_u128(0xe39afc7e_93f1_5a1d_92ef_bd5f71c62cb8); -} impl ::windows_core::RuntimeType for Callback { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); @@ -640,6 +618,6 @@ impl IClass_Vtbl { } } pub fn matches(iid: &::windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } diff --git a/crates/tests/component/src/lib.rs b/crates/tests/component/src/lib.rs index a6e42b8c4a..29da70293e 100644 --- a/crates/tests/component/src/lib.rs +++ b/crates/tests/component/src/lib.rs @@ -49,8 +49,8 @@ impl bindings::IClass_Impl for Class { let c = c.ok_or_else(|| Error::from(E_INVALIDARG))?; let d = d.ok_or_else(|| Error::from(E_INVALIDARG))?; - let a: IUnknown = a.can_clone_into(); - let b: IUnknown = b.can_clone_into(); + let a: IUnknown = a.cast()?; + let b: IUnknown = b.cast()?; assert_eq!(a, b); assert_eq!(c.ToString()?, "client"); assert_eq!(d.Invoke(123)?, 123); diff --git a/crates/tests/component_client/src/bindings.rs b/crates/tests/component_client/src/bindings.rs index b3a0e03596..20e698966b 100644 --- a/crates/tests/component_client/src/bindings.rs +++ b/crates/tests/component_client/src/bindings.rs @@ -8,9 +8,11 @@ clippy::all )] pub mod Nested { - #[repr(transparent)] - #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] - pub struct IThing(::windows_core::IUnknown); + ::windows_core::imp::com_interface!( + IThing, + IThing_Vtbl, + 0x5448be22_9873_5ae6_9106_f6e8455d2fdd + ); impl IThing { pub fn Method(&self) -> ::windows_core::Result<()> { let this = self; @@ -31,13 +33,6 @@ pub mod Nested { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } - unsafe impl ::windows_core::Interface for IThing { - type Vtable = IThing_Vtbl; - } - unsafe impl ::windows_core::ComInterface for IThing { - const IID: ::windows_core::GUID = - ::windows_core::GUID::from_u128(0x5448be22_9873_5ae6_9106_f6e8455d2fdd); - } #[repr(C)] #[doc(hidden)] pub struct IThing_Vtbl { @@ -46,17 +41,7 @@ pub mod Nested { unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IClass(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IClass { - type Vtable = IClass_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IClass { - const IID: ::windows_core::GUID = - ::windows_core::GUID::from_u128(0x97540591_1323_59c0_9ae0_f510cae62e54); -} +::windows_core::imp::com_interface!(IClass, IClass_Vtbl, 0x97540591_1323_59c0_9ae0_f510cae62e54); #[repr(C)] #[doc(hidden)] pub struct IClass_Vtbl { @@ -206,7 +191,7 @@ impl Class { where P0: ::windows_core::IntoParam<::windows_core::IInspectable>, P1: ::windows_core::IntoParam, - P2: ::windows_core::TryIntoParam<::windows::Foundation::IStringable>, + P2: ::windows_core::IntoParam<::windows::Foundation::IStringable>, P3: ::windows_core::IntoParam, { let this = self; @@ -215,7 +200,7 @@ impl Class { ::windows_core::Interface::as_raw(this), a.into_param().abi(), b.into_param().abi(), - c.try_into_param()?.abi(), + c.into_param().abi(), d.into_param().abi(), ) .ok() @@ -228,9 +213,7 @@ impl ::windows_core::RuntimeType for Class { } unsafe impl ::windows_core::Interface for Class { type Vtable = IClass_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Class { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Class { const NAME: &'static str = "test_component.Class"; @@ -299,9 +282,11 @@ impl ::windows_core::RuntimeType for Flags { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::from_slice(b"enum(test_component.Flags;u4)"); } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct Callback(pub ::windows_core::IUnknown); +::windows_core::imp::com_interface!( + Callback, + Callback_Vtbl, + 0xe39afc7e_93f1_5a1d_92ef_bd5f71c62cb8 +); impl Callback { pub fn new ::windows_core::Result + ::core::marker::Send + 'static>( invoke: F, @@ -350,9 +335,9 @@ impl ::windows_core::Result + ::core::marker::Send + 'stat if iid.is_null() || interface.is_null() { return ::windows_core::HRESULT(-2147467261); } - *interface = if *iid == ::IID - || *iid == <::windows_core::IUnknown as ::windows_core::ComInterface>::IID - || *iid == <::windows_core::imp::IAgileObject as ::windows_core::ComInterface>::IID + *interface = if *iid == ::IID + || *iid == <::windows_core::IUnknown as ::windows_core::Interface>::IID + || *iid == <::windows_core::imp::IAgileObject as ::windows_core::Interface>::IID { &mut (*this).vtable as *mut _ as _ } else { @@ -392,13 +377,6 @@ impl ::windows_core::Result + ::core::marker::Send + 'stat } } } -unsafe impl ::windows_core::Interface for Callback { - type Vtable = Callback_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Callback { - const IID: ::windows_core::GUID = - ::windows_core::GUID::from_u128(0xe39afc7e_93f1_5a1d_92ef_bd5f71c62cb8); -} impl ::windows_core::RuntimeType for Callback { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); diff --git a/crates/tests/component_client/src/lib.rs b/crates/tests/component_client/src/lib.rs index 19a7a1dffb..7536c52fc8 100644 --- a/crates/tests/component_client/src/lib.rs +++ b/crates/tests/component_client/src/lib.rs @@ -49,7 +49,7 @@ fn test() -> Result<()> { assert_eq!(inspectable.GetRuntimeClassName()?, "test_component.Class"); // This just casts down to IInspectable since the vtable already includes IInspectable. - let inspectable: &IInspectable = class.can_into(); + let inspectable: &IInspectable = unsafe { std::mem::transmute(&class) }; // Notice GetRuntimeClassName returns the specific interface name. assert_eq!(inspectable.GetRuntimeClassName()?, "test_component.IClass"); diff --git a/crates/tests/debug_inspectable/tests/tests.rs b/crates/tests/debug_inspectable/tests/tests.rs index 315c65cbe3..b61a5d1cfe 100644 --- a/crates/tests/debug_inspectable/tests/tests.rs +++ b/crates/tests/debug_inspectable/tests/tests.rs @@ -2,8 +2,8 @@ use windows::{core::*, Foundation::Collections::*, Foundation::*}; #[test] fn test() -> Result<()> { - let stringable: IInspectable = Uri::CreateUri(h!("https://kennykerr.ca"))?.can_clone_into(); - let non_stringable: IInspectable = PropertySet::new()?.can_clone_into(); + let stringable: IInspectable = Uri::CreateUri(h!("https://kennykerr.ca"))?.cast()?; + let non_stringable: IInspectable = PropertySet::new()?.cast()?; assert_eq!(format!("{:?}", stringable), "\"https://kennykerr.ca/\""); assert_eq!( diff --git a/crates/tests/implement/tests/com_chain.rs b/crates/tests/implement/tests/com_chain.rs index b7a01410bf..ff32319aaf 100644 --- a/crates/tests/implement/tests/com_chain.rs +++ b/crates/tests/implement/tests/com_chain.rs @@ -40,7 +40,7 @@ fn test() -> Result<()> { stream.cast::()?; stream.cast::()?; - let persist: &IPersist = stream.can_into(); + let persist: &IPersist = &stream.cast()?; persist.GetClassID()?; persist.cast::()?; persist.cast::()?; diff --git a/crates/tests/implement/tests/dual.rs b/crates/tests/implement/tests/dual.rs index d918eb12bf..24e6da2f30 100644 --- a/crates/tests/implement/tests/dual.rs +++ b/crates/tests/implement/tests/dual.rs @@ -48,7 +48,7 @@ fn implement() -> Result<()> { // Confirms that the conversion to `IInspectable` properly handles // reference counting. - let _: IInspectable = s.can_clone_into(); + let _: IInspectable = s.cast()?; } assert!(receiver.recv().unwrap() == "drop: object"); diff --git a/crates/tests/implement/tests/identity.rs b/crates/tests/implement/tests/identity.rs index ca62ca4d36..90e26b7266 100644 --- a/crates/tests/implement/tests/identity.rs +++ b/crates/tests/implement/tests/identity.rs @@ -69,11 +69,11 @@ fn identity() -> Result<()> { assert_eq!(a.GetRuntimeClassName()?, "Windows.Foundation.IStringable"); let b: IStringable = a.cast()?; - let c: &IInspectable = b.can_into(); + let c: &IInspectable = &b.cast()?; assert_eq!(c.GetRuntimeClassName()?, "Windows.Foundation.IStringable"); let d: IClosable = a.cast()?; - let e: &IInspectable = d.can_into(); + let e: &IInspectable = std::mem::transmute(&d); assert_eq!(e.GetRuntimeClassName()?, "Windows.Foundation.IClosable"); let f: IInspectable = e.cast()?; diff --git a/crates/tests/implement/tests/query.rs b/crates/tests/implement/tests/query.rs index dc01b93e33..b20f68bc28 100644 --- a/crates/tests/implement/tests/query.rs +++ b/crates/tests/implement/tests/query.rs @@ -28,7 +28,7 @@ fn test() { } } -fn test_query(interface: &I) { +fn test_query(interface: &I) { unsafe { // Successful query { diff --git a/crates/tests/implement/tests/vector.rs b/crates/tests/implement/tests/vector.rs index 525fc39c41..bbc3784c91 100644 --- a/crates/tests/implement/tests/vector.rs +++ b/crates/tests/implement/tests/vector.rs @@ -235,7 +235,7 @@ fn test() -> Result<()> { assert_eq!(30, v.GetAt(2)?); assert!(v.GetAt(20).is_err()); assert_eq!(3, v.Size()?); - let c: &IInspectable = v.can_into(); + let c: &IInspectable = unsafe { std::mem::transmute(&v) }; assert_eq!( c.GetRuntimeClassName()?, "Windows.Foundation.Collections.IVector" diff --git a/crates/tests/interface/tests/non_com_existing.rs b/crates/tests/interface/tests/non_com_existing.rs index 1853a4cf23..1f772dacef 100644 --- a/crates/tests/interface/tests/non_com_existing.rs +++ b/crates/tests/interface/tests/non_com_existing.rs @@ -197,6 +197,8 @@ fn test() -> Result<()> { None, ); + // TODO: also test that the actual non-COM interface parameter binding works with null and non-null interface args. + Ok(()) } } diff --git a/crates/tests/interop/tests/activate_instance.rs b/crates/tests/interop/tests/activate_instance.rs index 01b175ff3f..81708f744b 100644 --- a/crates/tests/interop/tests/activate_instance.rs +++ b/crates/tests/interop/tests/activate_instance.rs @@ -1,5 +1,5 @@ use windows::{ - core::{ComInterface, Result, HSTRING}, + core::{Interface, Result, HSTRING}, Foundation::Collections::StringMap, Win32::System::Com::{CoInitializeEx, COINIT_MULTITHREADED}, Win32::System::WinRT::RoActivateInstance, diff --git a/crates/tests/no_use/tests/test.rs b/crates/tests/no_use/tests/test.rs index b19564d529..3570327ac9 100644 --- a/crates/tests/no_use/tests/test.rs +++ b/crates/tests/no_use/tests/test.rs @@ -23,7 +23,7 @@ fn test() -> windows::core::Result<()> { let a: windows::Foundation::IStringable = Test("test").into(); assert!(a.ToString()? == "test"); - let b: windows::Foundation::IClosable = windows::core::ComInterface::cast(&a)?; + let b: windows::Foundation::IClosable = windows::core::Interface::cast(&a)?; b.Close()?; Ok(()) diff --git a/crates/tests/riddle/src/generic_interfaces.rs b/crates/tests/riddle/src/generic_interfaces.rs index 13d29a49f1..137e7b42ef 100644 --- a/crates/tests/riddle/src/generic_interfaces.rs +++ b/crates/tests/riddle/src/generic_interfaces.rs @@ -45,10 +45,6 @@ impl ::windows_core::RuntimeType for I } unsafe impl ::windows_core::Interface for IIterable { type Vtable = IIterable_Vtbl; -} -unsafe impl ::windows_core::ComInterface - for IIterable -{ const IID: ::windows_core::GUID = ::windows_core::GUID::from_signature(::SIGNATURE); } @@ -125,10 +121,6 @@ impl ::windows_core::RuntimeType for I } unsafe impl ::windows_core::Interface for IIterator { type Vtable = IIterator_Vtbl; -} -unsafe impl ::windows_core::ComInterface - for IIterator -{ const IID: ::windows_core::GUID = ::windows_core::GUID::from_signature(::SIGNATURE); } @@ -215,10 +207,6 @@ unsafe impl { type Vtable = IKeyValuePair_Vtbl; -} -unsafe impl - ::windows_core::ComInterface for IKeyValuePair -{ const IID: ::windows_core::GUID = ::windows_core::GUID::from_signature(::SIGNATURE); } @@ -302,7 +290,7 @@ impl ::windows_core::Result>> { - let this = &::windows_core::ComInterface::cast::>>(self)?; + let this = &::windows_core::Interface::cast::>>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)( @@ -322,8 +310,9 @@ impl - ::windows_core::CanTryInto>> for IMapView + ::windows_core::CanInto>> for IMapView { + const QUERY: bool = true; } impl ::windows_core::RuntimeType for IMapView @@ -343,10 +332,6 @@ unsafe impl { type Vtable = IMapView_Vtbl; -} -unsafe impl - ::windows_core::ComInterface for IMapView -{ const IID: ::windows_core::GUID = ::windows_core::GUID::from_signature(::SIGNATURE); } diff --git a/crates/tests/riddle/src/params.rs b/crates/tests/riddle/src/params.rs index 87f17e101c..5097e30d1a 100644 --- a/crates/tests/riddle/src/params.rs +++ b/crates/tests/riddle/src/params.rs @@ -7,9 +7,7 @@ dead_code, clippy::all )] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IParams(::windows_core::IUnknown); +::windows_core::imp::com_interface!(IParams, IParams_Vtbl, 0); impl IParams { pub fn Nothing(&self) -> ::windows_core::Result<()> { let this = self; @@ -199,12 +197,6 @@ impl ::windows_core::RuntimeType for IParams { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IParams { - type Vtable = IParams_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IParams { - const IID: ::windows_core::GUID = ::windows_core::GUID::zeroed(); -} #[repr(C)] #[doc(hidden)] pub struct IParams_Vtbl { diff --git a/crates/tests/standalone/src/b_calendar.rs b/crates/tests/standalone/src/b_calendar.rs index 5e25216d2a..f5651657e3 100644 --- a/crates/tests/standalone/src/b_calendar.rs +++ b/crates/tests/standalone/src/b_calendar.rs @@ -1142,13 +1142,13 @@ impl Calendar { languages: P0, ) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::ICalendarFactory(|this| unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateCalendarDefaultCalendarAndClock)( ::windows_core::Interface::as_raw(this), - languages.try_into_param()?.abi(), + languages.into_param().abi(), &mut result__, ) .from_abi(result__) @@ -1160,13 +1160,13 @@ impl Calendar { clock: &::windows_core::HSTRING, ) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::ICalendarFactory(|this| unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateCalendar)( ::windows_core::Interface::as_raw(this), - languages.try_into_param()?.abi(), + languages.into_param().abi(), ::core::mem::transmute_copy(calendar), ::core::mem::transmute_copy(clock), &mut result__, @@ -1181,13 +1181,13 @@ impl Calendar { timezoneid: &::windows_core::HSTRING, ) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam>, + P0: ::windows_core::IntoParam>, { Self::ICalendarFactory2(|this| unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).CreateCalendarWithTimeZone)( ::windows_core::Interface::as_raw(this), - languages.try_into_param()?.abi(), + languages.into_param().abi(), ::core::mem::transmute_copy(calendar), ::core::mem::transmute_copy(clock), ::core::mem::transmute_copy(timezoneid), @@ -1197,7 +1197,7 @@ impl Calendar { }) } pub fn GetTimeZone(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetTimeZone)( @@ -1211,7 +1211,7 @@ impl Calendar { &self, timezoneid: &::windows_core::HSTRING, ) -> ::windows_core::Result<()> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { (::windows_core::Interface::vtable(this).ChangeTimeZone)( ::windows_core::Interface::as_raw(this), @@ -1221,7 +1221,7 @@ impl Calendar { } } pub fn TimeZoneAsFullString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TimeZoneAsFullString)( @@ -1235,7 +1235,7 @@ impl Calendar { &self, ideallength: i32, ) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).TimeZoneAsString)( @@ -1269,9 +1269,7 @@ impl ::windows_core::RuntimeType for Calendar { } unsafe impl ::windows_core::Interface for Calendar { type Vtable = ICalendar_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Calendar { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Calendar { const NAME: &'static str = "Windows.Globalization.Calendar"; @@ -1348,17 +1346,11 @@ impl ::windows_core::RuntimeType for DayOfWeek { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::from_slice(b"enum(Windows.Globalization.DayOfWeek;i4)"); } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICalendar(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICalendar { - type Vtable = ICalendar_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICalendar { - const IID: ::windows_core::GUID = - ::windows_core::GUID::from_u128(0xca30221d_86d9_40fb_a26b_d44eb7cf08ea); -} +::windows_core::imp::com_interface!( + ICalendar, + ICalendar_Vtbl, + 0xca30221d_86d9_40fb_a26b_d44eb7cf08ea +); #[repr(C)] #[doc(hidden)] pub struct ICalendar_Vtbl { @@ -1766,17 +1758,11 @@ pub struct ICalendar_Vtbl { result__: *mut bool, ) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICalendarFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICalendarFactory { - type Vtable = ICalendarFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICalendarFactory { - const IID: ::windows_core::GUID = - ::windows_core::GUID::from_u128(0x83f58412_e56b_4c75_a66e_0f63d57758a6); -} +::windows_core::imp::com_interface!( + ICalendarFactory, + ICalendarFactory_Vtbl, + 0x83f58412_e56b_4c75_a66e_0f63d57758a6 +); #[repr(C)] #[doc(hidden)] pub struct ICalendarFactory_Vtbl { @@ -1795,17 +1781,11 @@ pub struct ICalendarFactory_Vtbl { result__: *mut *mut ::core::ffi::c_void, ) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ICalendarFactory2(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ICalendarFactory2 { - type Vtable = ICalendarFactory2_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ICalendarFactory2 { - const IID: ::windows_core::GUID = - ::windows_core::GUID::from_u128(0xb44b378c_ca7e_4590_9e72_ea2bec1a5115); -} +::windows_core::imp::com_interface!( + ICalendarFactory2, + ICalendarFactory2_Vtbl, + 0xb44b378c_ca7e_4590_9e72_ea2bec1a5115 +); #[repr(C)] #[doc(hidden)] pub struct ICalendarFactory2_Vtbl { @@ -1871,10 +1851,6 @@ impl ::core::iter::IntoIterator for &IIterable ::windows_core::Interface for IIterable { type Vtable = IIterable_Vtbl; -} -unsafe impl ::windows_core::ComInterface - for IIterable -{ const IID: ::windows_core::GUID = ::windows_core::GUID::from_signature(::SIGNATURE); } @@ -1977,10 +1953,6 @@ impl ::core::iter::Iterator for IIterator { } unsafe impl ::windows_core::Interface for IIterator { type Vtable = IIterator_Vtbl; -} -unsafe impl ::windows_core::ComInterface - for IIterator -{ const IID: ::windows_core::GUID = ::windows_core::GUID::from_signature(::SIGNATURE); } @@ -2011,17 +1983,11 @@ where ) -> ::windows_core::HRESULT, pub T: ::core::marker::PhantomData, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct ITimeZoneOnCalendar(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for ITimeZoneOnCalendar { - type Vtable = ITimeZoneOnCalendar_Vtbl; -} -unsafe impl ::windows_core::ComInterface for ITimeZoneOnCalendar { - const IID: ::windows_core::GUID = - ::windows_core::GUID::from_u128(0xbb3c25e5_46cf_4317_a3f5_02621ad54478); -} +::windows_core::imp::com_interface!( + ITimeZoneOnCalendar, + ITimeZoneOnCalendar_Vtbl, + 0xbb3c25e5_46cf_4317_a3f5_02621ad54478 +); #[repr(C)] #[doc(hidden)] pub struct ITimeZoneOnCalendar_Vtbl { @@ -2108,7 +2074,7 @@ impl IVectorView { } } pub fn First(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)( @@ -2127,9 +2093,10 @@ impl ::windows_core::CanInto<::windows for IVectorView { } -impl ::windows_core::CanTryInto> +impl ::windows_core::CanInto> for IVectorView { + const QUERY: bool = true; } impl ::windows_core::RuntimeType for IVectorView { const SIGNATURE: ::windows_core::imp::ConstBuffer = { @@ -2180,10 +2147,6 @@ impl ::core::iter::IntoIterator for &IVectorView } unsafe impl ::windows_core::Interface for IVectorView { type Vtable = IVectorView_Vtbl; -} -unsafe impl ::windows_core::ComInterface - for IVectorView -{ const IID: ::windows_core::GUID = ::windows_core::GUID::from_signature(::SIGNATURE); } diff --git a/crates/tests/standalone/src/b_stringable.rs b/crates/tests/standalone/src/b_stringable.rs index 2870cd9b7e..0d9b45f259 100644 --- a/crates/tests/standalone/src/b_stringable.rs +++ b/crates/tests/standalone/src/b_stringable.rs @@ -7,9 +7,11 @@ dead_code, clippy::all )] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStringable(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + IStringable, + IStringable_Vtbl, + 0x96369f54_8eb6_48f0_abce_c1b211e627c3 +); impl IStringable { pub fn ToString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -32,13 +34,6 @@ impl ::windows_core::RuntimeType for IStringable { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IStringable { - type Vtable = IStringable_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStringable { - const IID: ::windows_core::GUID = - ::windows_core::GUID::from_u128(0x96369f54_8eb6_48f0_abce_c1b211e627c3); -} #[repr(C)] #[doc(hidden)] pub struct IStringable_Vtbl { diff --git a/crates/tests/standalone/src/b_uri.rs b/crates/tests/standalone/src/b_uri.rs index 63ef2ee8bb..c4e84b97b3 100644 --- a/crates/tests/standalone/src/b_uri.rs +++ b/crates/tests/standalone/src/b_uri.rs @@ -59,10 +59,6 @@ impl ::core::iter::IntoIterator for &IIterable ::windows_core::Interface for IIterable { type Vtable = IIterable_Vtbl; -} -unsafe impl ::windows_core::ComInterface - for IIterable -{ const IID: ::windows_core::GUID = ::windows_core::GUID::from_signature(::SIGNATURE); } @@ -165,10 +161,6 @@ impl ::core::iter::Iterator for IIterator { } unsafe impl ::windows_core::Interface for IIterator { type Vtable = IIterator_Vtbl; -} -unsafe impl ::windows_core::ComInterface - for IIterator -{ const IID: ::windows_core::GUID = ::windows_core::GUID::from_signature(::SIGNATURE); } @@ -199,9 +191,11 @@ where ) -> ::windows_core::HRESULT, pub T: ::core::marker::PhantomData, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IStringable(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + IStringable, + IStringable_Vtbl, + 0x96369f54_8eb6_48f0_abce_c1b211e627c3 +); impl IStringable { pub fn ToString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -224,13 +218,6 @@ impl ::windows_core::RuntimeType for IStringable { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IStringable { - type Vtable = IStringable_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IStringable { - const IID: ::windows_core::GUID = - ::windows_core::GUID::from_u128(0x96369f54_8eb6_48f0_abce_c1b211e627c3); -} #[repr(C)] #[doc(hidden)] pub struct IStringable_Vtbl { @@ -240,17 +227,11 @@ pub struct IStringable_Vtbl { result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>, ) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUriEscapeStatics(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUriEscapeStatics { - type Vtable = IUriEscapeStatics_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUriEscapeStatics { - const IID: ::windows_core::GUID = - ::windows_core::GUID::from_u128(0xc1d432ba_c824_4452_a7fd_512bc3bbe9a1); -} +::windows_core::imp::com_interface!( + IUriEscapeStatics, + IUriEscapeStatics_Vtbl, + 0xc1d432ba_c824_4452_a7fd_512bc3bbe9a1 +); #[repr(C)] #[doc(hidden)] pub struct IUriEscapeStatics_Vtbl { @@ -266,17 +247,11 @@ pub struct IUriEscapeStatics_Vtbl { result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>, ) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUriRuntimeClass(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUriRuntimeClass { - type Vtable = IUriRuntimeClass_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUriRuntimeClass { - const IID: ::windows_core::GUID = - ::windows_core::GUID::from_u128(0x9e365e57_48b2_4160_956f_c7385120bbfc); -} +::windows_core::imp::com_interface!( + IUriRuntimeClass, + IUriRuntimeClass_Vtbl, + 0x9e365e57_48b2_4160_956f_c7385120bbfc +); #[repr(C)] #[doc(hidden)] pub struct IUriRuntimeClass_Vtbl { @@ -352,17 +327,11 @@ pub struct IUriRuntimeClass_Vtbl { result__: *mut *mut ::core::ffi::c_void, ) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUriRuntimeClassFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUriRuntimeClassFactory { - type Vtable = IUriRuntimeClassFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUriRuntimeClassFactory { - const IID: ::windows_core::GUID = - ::windows_core::GUID::from_u128(0x44a9796f_723e_4fdf_a218_033e75b0c084); -} +::windows_core::imp::com_interface!( + IUriRuntimeClassFactory, + IUriRuntimeClassFactory_Vtbl, + 0x44a9796f_723e_4fdf_a218_033e75b0c084 +); #[repr(C)] #[doc(hidden)] pub struct IUriRuntimeClassFactory_Vtbl { @@ -379,17 +348,11 @@ pub struct IUriRuntimeClassFactory_Vtbl { result__: *mut *mut ::core::ffi::c_void, ) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IUriRuntimeClassWithAbsoluteCanonicalUri(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IUriRuntimeClassWithAbsoluteCanonicalUri { - type Vtable = IUriRuntimeClassWithAbsoluteCanonicalUri_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IUriRuntimeClassWithAbsoluteCanonicalUri { - const IID: ::windows_core::GUID = - ::windows_core::GUID::from_u128(0x758d9661_221c_480f_a339_50656673f46f); -} +::windows_core::imp::com_interface!( + IUriRuntimeClassWithAbsoluteCanonicalUri, + IUriRuntimeClassWithAbsoluteCanonicalUri_Vtbl, + 0x758d9661_221c_480f_a339_50656673f46f +); #[repr(C)] #[doc(hidden)] pub struct IUriRuntimeClassWithAbsoluteCanonicalUri_Vtbl { @@ -467,7 +430,7 @@ impl IVectorView { } } pub fn First(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)( @@ -486,9 +449,10 @@ impl ::windows_core::CanInto<::windows for IVectorView { } -impl ::windows_core::CanTryInto> +impl ::windows_core::CanInto> for IVectorView { + const QUERY: bool = true; } impl ::windows_core::RuntimeType for IVectorView { const SIGNATURE: ::windows_core::imp::ConstBuffer = { @@ -539,10 +503,6 @@ impl ::core::iter::IntoIterator for &IVectorView } unsafe impl ::windows_core::Interface for IVectorView { type Vtable = IVectorView_Vtbl; -} -unsafe impl ::windows_core::ComInterface - for IVectorView -{ const IID: ::windows_core::GUID = ::windows_core::GUID::from_signature(::SIGNATURE); } @@ -577,9 +537,11 @@ where ) -> ::windows_core::HRESULT, pub T: ::core::marker::PhantomData, } -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWwwFormUrlDecoderEntry(::windows_core::IUnknown); +::windows_core::imp::com_interface!( + IWwwFormUrlDecoderEntry, + IWwwFormUrlDecoderEntry_Vtbl, + 0x125e7431_f678_4e8e_b670_20a9b06c512d +); impl IWwwFormUrlDecoderEntry { pub fn Name(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -613,13 +575,6 @@ impl ::windows_core::RuntimeType for IWwwFormUrlDecoderEntry { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); } -unsafe impl ::windows_core::Interface for IWwwFormUrlDecoderEntry { - type Vtable = IWwwFormUrlDecoderEntry_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWwwFormUrlDecoderEntry { - const IID: ::windows_core::GUID = - ::windows_core::GUID::from_u128(0x125e7431_f678_4e8e_b670_20a9b06c512d); -} #[repr(C)] #[doc(hidden)] pub struct IWwwFormUrlDecoderEntry_Vtbl { @@ -633,17 +588,11 @@ pub struct IWwwFormUrlDecoderEntry_Vtbl { result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>, ) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWwwFormUrlDecoderRuntimeClass(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWwwFormUrlDecoderRuntimeClass { - type Vtable = IWwwFormUrlDecoderRuntimeClass_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWwwFormUrlDecoderRuntimeClass { - const IID: ::windows_core::GUID = - ::windows_core::GUID::from_u128(0xd45a0451_f225_4542_9296_0e1df5d254df); -} +::windows_core::imp::com_interface!( + IWwwFormUrlDecoderRuntimeClass, + IWwwFormUrlDecoderRuntimeClass_Vtbl, + 0xd45a0451_f225_4542_9296_0e1df5d254df +); #[repr(C)] #[doc(hidden)] pub struct IWwwFormUrlDecoderRuntimeClass_Vtbl { @@ -654,17 +603,11 @@ pub struct IWwwFormUrlDecoderRuntimeClass_Vtbl { result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>, ) -> ::windows_core::HRESULT, } -#[doc(hidden)] -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] -pub struct IWwwFormUrlDecoderRuntimeClassFactory(::windows_core::IUnknown); -unsafe impl ::windows_core::Interface for IWwwFormUrlDecoderRuntimeClassFactory { - type Vtable = IWwwFormUrlDecoderRuntimeClassFactory_Vtbl; -} -unsafe impl ::windows_core::ComInterface for IWwwFormUrlDecoderRuntimeClassFactory { - const IID: ::windows_core::GUID = - ::windows_core::GUID::from_u128(0x5b8c6b3d_24ae_41b5_a1bf_f0c3d544845b); -} +::windows_core::imp::com_interface!( + IWwwFormUrlDecoderRuntimeClassFactory, + IWwwFormUrlDecoderRuntimeClassFactory_Vtbl, + 0x5b8c6b3d_24ae_41b5_a1bf_f0c3d544845b +); #[repr(C)] #[doc(hidden)] pub struct IWwwFormUrlDecoderRuntimeClassFactory_Vtbl { @@ -680,7 +623,7 @@ pub struct IWwwFormUrlDecoderRuntimeClassFactory_Vtbl { pub struct Uri(::windows_core::IUnknown); impl Uri { pub fn ToString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { - let this = &::windows_core::ComInterface::cast::(self)?; + let this = &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).ToString)( @@ -936,7 +879,7 @@ impl Uri { } pub fn AbsoluteCanonicalUri(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = - &::windows_core::ComInterface::cast::(self)?; + &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).AbsoluteCanonicalUri)( @@ -948,7 +891,7 @@ impl Uri { } pub fn DisplayIri(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = - &::windows_core::ComInterface::cast::(self)?; + &::windows_core::Interface::cast::(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).DisplayIri)( @@ -984,9 +927,7 @@ impl ::windows_core::RuntimeType for Uri { } unsafe impl ::windows_core::Interface for Uri { type Vtable = IUriRuntimeClass_Vtbl; -} -unsafe impl ::windows_core::ComInterface for Uri { - const IID: ::windows_core::GUID = ::IID; + const IID: ::windows_core::GUID = ::IID; } impl ::windows_core::RuntimeName for Uri { const NAME: &'static str = "Windows.Foundation.Uri"; @@ -996,7 +937,7 @@ impl ::windows_core::RuntimeName for Uri { ::windows_core::IUnknown, ::windows_core::IInspectable ); -impl ::windows_core::CanTryInto for Uri {} +::windows_core::imp::required_hierarchy!(Uri, IStringable); unsafe impl ::core::marker::Send for Uri {} unsafe impl ::core::marker::Sync for Uri {} #[repr(transparent)] @@ -1004,7 +945,7 @@ unsafe impl ::core::marker::Sync for Uri {} pub struct WwwFormUrlDecoder(::windows_core::IUnknown); impl WwwFormUrlDecoder { pub fn First(&self) -> ::windows_core::Result> { - let this = &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).First)( @@ -1015,8 +956,7 @@ impl WwwFormUrlDecoder { } } pub fn GetAt(&self, index: u32) -> ::windows_core::Result { - let this = - &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetAt)( @@ -1028,8 +968,7 @@ impl WwwFormUrlDecoder { } } pub fn Size(&self) -> ::windows_core::Result { - let this = - &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).Size)( @@ -1041,15 +980,14 @@ impl WwwFormUrlDecoder { } pub fn IndexOf(&self, value: P0, index: &mut u32) -> ::windows_core::Result where - P0: ::windows_core::TryIntoParam, + P0: ::windows_core::IntoParam, { - let this = - &::windows_core::ComInterface::cast::>(self)?; + 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.try_into_param()?.abi(), + value.into_param().abi(), index, &mut result__, ) @@ -1061,8 +999,7 @@ impl WwwFormUrlDecoder { startindex: u32, items: &mut [::core::option::Option], ) -> ::windows_core::Result { - let this = - &::windows_core::ComInterface::cast::>(self)?; + let this = &::windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = ::std::mem::zeroed(); (::windows_core::Interface::vtable(this).GetMany)( @@ -1123,10 +1060,8 @@ impl ::windows_core::RuntimeType for WwwFormUrlDecoder { } unsafe impl ::windows_core::Interface for WwwFormUrlDecoder { type Vtable = IWwwFormUrlDecoderRuntimeClass_Vtbl; -} -unsafe impl ::windows_core::ComInterface for WwwFormUrlDecoder { const IID: ::windows_core::GUID = - ::IID; + ::IID; } impl ::windows_core::RuntimeName for WwwFormUrlDecoder { const NAME: &'static str = "Windows.Foundation.WwwFormUrlDecoder"; @@ -1142,7 +1077,7 @@ impl ::core::iter::IntoIterator for &WwwFormUrlDecoder { type Item = IWwwFormUrlDecoderEntry; type IntoIter = VectorViewIterator; fn into_iter(self) -> Self::IntoIter { - VectorViewIterator::new(::windows_core::ComInterface::cast(self).ok()) + VectorViewIterator::new(::windows_core::Interface::cast(self).ok()) } } ::windows_core::imp::interface_hierarchy!( @@ -1150,7 +1085,10 @@ impl ::core::iter::IntoIterator for &WwwFormUrlDecoder { ::windows_core::IUnknown, ::windows_core::IInspectable ); -impl ::windows_core::CanTryInto> for WwwFormUrlDecoder {} -impl ::windows_core::CanTryInto> for WwwFormUrlDecoder {} +::windows_core::imp::required_hierarchy!( + WwwFormUrlDecoder, + IIterable, + IVectorView +); unsafe impl ::core::marker::Send for WwwFormUrlDecoder {} unsafe impl ::core::marker::Sync for WwwFormUrlDecoder {} diff --git a/crates/tests/weak_ref/tests/count.rs b/crates/tests/weak_ref/tests/count.rs index d89ad20011..a241f65fd6 100644 --- a/crates/tests/weak_ref/tests/count.rs +++ b/crates/tests/weak_ref/tests/count.rs @@ -1,5 +1,5 @@ use windows::core::imp::WeakRefCount; -use windows::core::ComInterface; +use windows::core::Interface; use windows::Win32::System::WinRT::IWeakReferenceSource; #[test] diff --git a/crates/tests/winrt/tests/cast.rs b/crates/tests/winrt/tests/cast.rs index 55650138a2..6e49ac196f 100644 --- a/crates/tests/winrt/tests/cast.rs +++ b/crates/tests/winrt/tests/cast.rs @@ -1,4 +1,4 @@ -use windows::core::{ComInterface, Result}; +use windows::core::{Interface, Result}; use windows::Foundation::{IClosable, IStringable, Uri}; #[test] diff --git a/crates/tests/winrt/tests/collections.rs b/crates/tests/winrt/tests/collections.rs index d9889d63e1..bc10f569f6 100644 --- a/crates/tests/winrt/tests/collections.rs +++ b/crates/tests/winrt/tests/collections.rs @@ -2,7 +2,7 @@ use core::convert::*; use core::iter::FromIterator; use windows::{ - core::ComInterface, + core::Interface, Foundation::Collections::{IIterable, IVectorView, PropertySet}, Foundation::{IWwwFormUrlDecoderEntry, Uri}, }; diff --git a/crates/tests/winrt/tests/composition.rs b/crates/tests/winrt/tests/composition.rs index 10555aa7b1..83a4f97a01 100644 --- a/crates/tests/winrt/tests/composition.rs +++ b/crates/tests/winrt/tests/composition.rs @@ -1,5 +1,5 @@ use windows::{ - core::{ComInterface, HSTRING}, + core::{Interface, HSTRING}, System::DispatcherQueueController, Win32::System::WinRT::{ CreateDispatcherQueueController, DispatcherQueueOptions, DQTAT_COM_NONE, @@ -62,7 +62,7 @@ fn class_hierarchy_conversion() -> windows::core::Result<()> { #[test] fn composition() -> windows::core::Result<()> { - use windows::core::ComInterface; + use windows::core::Interface; use windows::Foundation::Numerics::Vector3; use windows::UI::Composition::{CompositionColorBrush, Compositor}; use windows::UI::{Color, Colors}; diff --git a/crates/tests/winrt/tests/delegates.rs b/crates/tests/winrt/tests/delegates.rs index 8ad5fcf3d1..8301849715 100644 --- a/crates/tests/winrt/tests/delegates.rs +++ b/crates/tests/winrt/tests/delegates.rs @@ -7,7 +7,7 @@ use windows::{ Foundation::{AsyncActionCompletedHandler, AsyncStatus, TypedEventHandler, Uri}, }; -use windows::core::ComInterface; +use windows::core::Interface; #[test] fn non_generic() -> windows::core::Result<()> { diff --git a/crates/tests/winrt/tests/generic_guids.rs b/crates/tests/winrt/tests/generic_guids.rs index c6730c2f36..1bc42189cf 100644 --- a/crates/tests/winrt/tests/generic_guids.rs +++ b/crates/tests/winrt/tests/generic_guids.rs @@ -15,7 +15,7 @@ fn signatures() { #[test] fn generic_guids() { - use windows::core::ComInterface; + use windows::core::Interface; type A = IIterable; type B = IKeyValuePair>; diff --git a/crates/tests/winrt/tests/interface.rs b/crates/tests/winrt/tests/interface.rs index d56cf84cf0..0fb0b99572 100644 --- a/crates/tests/winrt/tests/interface.rs +++ b/crates/tests/winrt/tests/interface.rs @@ -1,4 +1,4 @@ -use windows::core::ComInterface; +use windows::core::Interface; use windows::Foundation::IStringable; #[test] diff --git a/crates/tests/winrt/tests/object.rs b/crates/tests/winrt/tests/object.rs index 66954f93d5..e7ea10a773 100644 --- a/crates/tests/winrt/tests/object.rs +++ b/crates/tests/winrt/tests/object.rs @@ -1,4 +1,4 @@ -use windows::core::ComInterface; +use windows::core::Interface; use windows::Foundation::{IStringable, PropertyValue, Uri}; #[test] diff --git a/crates/tests/winrt/tests/send_sync.rs b/crates/tests/winrt/tests/send_sync.rs index 861f5c9409..9bc4c2dc30 100644 --- a/crates/tests/winrt/tests/send_sync.rs +++ b/crates/tests/winrt/tests/send_sync.rs @@ -1,5 +1,5 @@ use std::thread; -use windows::core::{ComInterface, HRESULT, HSTRING}; +use windows::core::{Interface, HRESULT, HSTRING}; use windows::Foundation::*; use windows::Storage::Streams::*; diff --git a/crates/tests/winrt/tests/uri.rs b/crates/tests/winrt/tests/uri.rs index 1bfa759dec..e146dcd6b4 100644 --- a/crates/tests/winrt/tests/uri.rs +++ b/crates/tests/winrt/tests/uri.rs @@ -1,4 +1,4 @@ -use windows::core::{ComInterface, RuntimeName}; +use windows::core::{Interface, RuntimeName}; use windows::Foundation::{IStringable, IUriRuntimeClass, Uri}; use windows::Win32::System::Com::IAgileObject; From 623e811fd51435b46b09ecd1d4f5a6547cfd052b Mon Sep 17 00:00:00 2001 From: Kenny Kerr Date: Fri, 5 Jan 2024 12:37:40 -0600 Subject: [PATCH 07/10] tests --- crates/tests/component/src/bindings.rs | 20 ++-- crates/tests/component_client/src/bindings.rs | 20 ++-- crates/tests/riddle/src/generic_interfaces.rs | 74 ++++++------ crates/tests/riddle/src/params.rs | 10 +- crates/tests/standalone/src/b_calendar.rs | 68 +++++------ crates/tests/standalone/src/b_stringable.rs | 10 +- crates/tests/standalone/src/b_uri.rs | 110 +++++++++--------- 7 files changed, 156 insertions(+), 156 deletions(-) diff --git a/crates/tests/component/src/bindings.rs b/crates/tests/component/src/bindings.rs index d9a833ad74..1aea822cea 100644 --- a/crates/tests/component/src/bindings.rs +++ b/crates/tests/component/src/bindings.rs @@ -13,6 +13,11 @@ pub mod Nested { IThing_Vtbl, 0x5448be22_9873_5ae6_9106_f6e8455d2fdd ); + ::windows_core::imp::interface_hierarchy!( + IThing, + ::windows_core::IUnknown, + ::windows_core::IInspectable + ); impl IThing { pub fn Method(&self) -> ::windows_core::Result<()> { let this = self; @@ -24,11 +29,6 @@ pub mod Nested { } } } - ::windows_core::imp::interface_hierarchy!( - IThing, - ::windows_core::IUnknown, - ::windows_core::IInspectable - ); impl ::windows_core::RuntimeType for IThing { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); @@ -123,6 +123,11 @@ pub struct IClass_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Class(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!( + Class, + ::windows_core::IUnknown, + ::windows_core::IInspectable +); impl Class { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -250,11 +255,6 @@ unsafe impl ::windows_core::Interface for Class { impl ::windows_core::RuntimeName for Class { const NAME: &'static str = "test_component.Class"; } -::windows_core::imp::interface_hierarchy!( - Class, - ::windows_core::IUnknown, - ::windows_core::IInspectable -); unsafe impl ::core::marker::Send for Class {} unsafe impl ::core::marker::Sync for Class {} #[repr(transparent)] diff --git a/crates/tests/component_client/src/bindings.rs b/crates/tests/component_client/src/bindings.rs index 20e698966b..9d57a549de 100644 --- a/crates/tests/component_client/src/bindings.rs +++ b/crates/tests/component_client/src/bindings.rs @@ -13,6 +13,11 @@ pub mod Nested { IThing_Vtbl, 0x5448be22_9873_5ae6_9106_f6e8455d2fdd ); + ::windows_core::imp::interface_hierarchy!( + IThing, + ::windows_core::IUnknown, + ::windows_core::IInspectable + ); impl IThing { pub fn Method(&self) -> ::windows_core::Result<()> { let this = self; @@ -24,11 +29,6 @@ pub mod Nested { } } } - ::windows_core::imp::interface_hierarchy!( - IThing, - ::windows_core::IUnknown, - ::windows_core::IInspectable - ); impl ::windows_core::RuntimeType for IThing { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); @@ -91,6 +91,11 @@ pub struct IClass_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Class(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!( + Class, + ::windows_core::IUnknown, + ::windows_core::IInspectable +); impl Class { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -218,11 +223,6 @@ unsafe impl ::windows_core::Interface for Class { impl ::windows_core::RuntimeName for Class { const NAME: &'static str = "test_component.Class"; } -::windows_core::imp::interface_hierarchy!( - Class, - ::windows_core::IUnknown, - ::windows_core::IInspectable -); unsafe impl ::core::marker::Send for Class {} unsafe impl ::core::marker::Sync for Class {} #[repr(transparent)] diff --git a/crates/tests/riddle/src/generic_interfaces.rs b/crates/tests/riddle/src/generic_interfaces.rs index 137e7b42ef..268a6c4657 100644 --- a/crates/tests/riddle/src/generic_interfaces.rs +++ b/crates/tests/riddle/src/generic_interfaces.rs @@ -12,6 +12,14 @@ pub struct IIterable(::windows_core::IUnknown, ::core::marker::PhantomData) where T: ::windows_core::RuntimeType + 'static; +impl ::windows_core::CanInto<::windows_core::IUnknown> + for IIterable +{ +} +impl ::windows_core::CanInto<::windows_core::IInspectable> + for IIterable +{ +} impl IIterable { pub fn First(&self) -> ::windows_core::Result> { let this = self; @@ -25,14 +33,6 @@ impl IIterable { } } } -impl ::windows_core::CanInto<::windows_core::IUnknown> - for IIterable -{ -} -impl ::windows_core::CanInto<::windows_core::IInspectable> - for IIterable -{ -} impl ::windows_core::RuntimeType for IIterable { const SIGNATURE: ::windows_core::imp::ConstBuffer = { ::windows_core::imp::ConstBuffer::new() @@ -66,6 +66,14 @@ where pub struct IIterator(::windows_core::IUnknown, ::core::marker::PhantomData) where T: ::windows_core::RuntimeType + 'static; +impl ::windows_core::CanInto<::windows_core::IUnknown> + for IIterator +{ +} +impl ::windows_core::CanInto<::windows_core::IInspectable> + for IIterator +{ +} impl IIterator { pub fn get_Current(&self) -> ::windows_core::Result { let this = self; @@ -101,14 +109,6 @@ impl IIterator { } } } -impl ::windows_core::CanInto<::windows_core::IUnknown> - for IIterator -{ -} -impl ::windows_core::CanInto<::windows_core::IInspectable> - for IIterator -{ -} impl ::windows_core::RuntimeType for IIterator { const SIGNATURE: ::windows_core::imp::ConstBuffer = { ::windows_core::imp::ConstBuffer::new() @@ -155,6 +155,14 @@ pub struct IKeyValuePair( where K: ::windows_core::RuntimeType + 'static, V: ::windows_core::RuntimeType + 'static; +impl + ::windows_core::CanInto<::windows_core::IUnknown> for IKeyValuePair +{ +} +impl + ::windows_core::CanInto<::windows_core::IInspectable> for IKeyValuePair +{ +} impl IKeyValuePair { @@ -181,14 +189,6 @@ impl - ::windows_core::CanInto<::windows_core::IUnknown> for IKeyValuePair -{ -} -impl - ::windows_core::CanInto<::windows_core::IInspectable> for IKeyValuePair -{ -} impl ::windows_core::RuntimeType for IKeyValuePair { @@ -239,6 +239,19 @@ pub struct IMapView( where K: ::windows_core::RuntimeType + 'static, V: ::windows_core::RuntimeType + 'static; +impl + ::windows_core::CanInto<::windows_core::IUnknown> for IMapView +{ +} +impl + ::windows_core::CanInto<::windows_core::IInspectable> for IMapView +{ +} +impl + ::windows_core::CanInto>> for IMapView +{ + const QUERY: bool = true; +} impl IMapView { @@ -301,19 +314,6 @@ impl - ::windows_core::CanInto<::windows_core::IUnknown> for IMapView -{ -} -impl - ::windows_core::CanInto<::windows_core::IInspectable> for IMapView -{ -} -impl - ::windows_core::CanInto>> for IMapView -{ - const QUERY: bool = true; -} impl ::windows_core::RuntimeType for IMapView { diff --git a/crates/tests/riddle/src/params.rs b/crates/tests/riddle/src/params.rs index 5097e30d1a..7a1b422167 100644 --- a/crates/tests/riddle/src/params.rs +++ b/crates/tests/riddle/src/params.rs @@ -8,6 +8,11 @@ clippy::all )] ::windows_core::imp::com_interface!(IParams, IParams_Vtbl, 0); +::windows_core::imp::interface_hierarchy!( + IParams, + ::windows_core::IUnknown, + ::windows_core::IInspectable +); impl IParams { pub fn Nothing(&self) -> ::windows_core::Result<()> { let this = self; @@ -188,11 +193,6 @@ impl IParams { } } } -::windows_core::imp::interface_hierarchy!( - IParams, - ::windows_core::IUnknown, - ::windows_core::IInspectable -); impl ::windows_core::RuntimeType for IParams { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); diff --git a/crates/tests/standalone/src/b_calendar.rs b/crates/tests/standalone/src/b_calendar.rs index f5651657e3..f08023eb4b 100644 --- a/crates/tests/standalone/src/b_calendar.rs +++ b/crates/tests/standalone/src/b_calendar.rs @@ -10,6 +10,11 @@ #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Calendar(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!( + Calendar, + ::windows_core::IUnknown, + ::windows_core::IInspectable +); impl Calendar { pub fn new() -> ::windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1274,11 +1279,6 @@ unsafe impl ::windows_core::Interface for Calendar { impl ::windows_core::RuntimeName for Calendar { const NAME: &'static str = "Windows.Globalization.Calendar"; } -::windows_core::imp::interface_hierarchy!( - Calendar, - ::windows_core::IUnknown, - ::windows_core::IInspectable -); unsafe impl ::core::marker::Send for Calendar {} unsafe impl ::core::marker::Sync for Calendar {} #[repr(C)] @@ -1804,6 +1804,14 @@ pub struct ICalendarFactory2_Vtbl { pub struct IIterable(::windows_core::IUnknown, ::core::marker::PhantomData) where T: ::windows_core::RuntimeType + 'static; +impl ::windows_core::CanInto<::windows_core::IUnknown> + for IIterable +{ +} +impl ::windows_core::CanInto<::windows_core::IInspectable> + for IIterable +{ +} impl IIterable { pub fn First(&self) -> ::windows_core::Result> { let this = self; @@ -1817,14 +1825,6 @@ impl IIterable { } } } -impl ::windows_core::CanInto<::windows_core::IUnknown> - for IIterable -{ -} -impl ::windows_core::CanInto<::windows_core::IInspectable> - for IIterable -{ -} impl ::windows_core::RuntimeType for IIterable { const SIGNATURE: ::windows_core::imp::ConstBuffer = { ::windows_core::imp::ConstBuffer::new() @@ -1872,6 +1872,14 @@ where pub struct IIterator(::windows_core::IUnknown, ::core::marker::PhantomData) where T: ::windows_core::RuntimeType + 'static; +impl ::windows_core::CanInto<::windows_core::IUnknown> + for IIterator +{ +} +impl ::windows_core::CanInto<::windows_core::IInspectable> + for IIterator +{ +} impl IIterator { pub fn Current(&self) -> ::windows_core::Result { let this = self; @@ -1923,14 +1931,6 @@ impl IIterator { } } } -impl ::windows_core::CanInto<::windows_core::IUnknown> - for IIterator -{ -} -impl ::windows_core::CanInto<::windows_core::IInspectable> - for IIterator -{ -} impl ::windows_core::RuntimeType for IIterator { const SIGNATURE: ::windows_core::imp::ConstBuffer = { ::windows_core::imp::ConstBuffer::new() @@ -2015,6 +2015,19 @@ pub struct ITimeZoneOnCalendar_Vtbl { pub struct IVectorView(::windows_core::IUnknown, ::core::marker::PhantomData) where T: ::windows_core::RuntimeType + 'static; +impl ::windows_core::CanInto<::windows_core::IUnknown> + for IVectorView +{ +} +impl ::windows_core::CanInto<::windows_core::IInspectable> + for IVectorView +{ +} +impl ::windows_core::CanInto> + for IVectorView +{ + const QUERY: bool = true; +} impl IVectorView { pub fn GetAt(&self, index: u32) -> ::windows_core::Result { let this = self; @@ -2085,19 +2098,6 @@ impl IVectorView { } } } -impl ::windows_core::CanInto<::windows_core::IUnknown> - for IVectorView -{ -} -impl ::windows_core::CanInto<::windows_core::IInspectable> - for IVectorView -{ -} -impl ::windows_core::CanInto> - for IVectorView -{ - const QUERY: bool = true; -} impl ::windows_core::RuntimeType for IVectorView { const SIGNATURE: ::windows_core::imp::ConstBuffer = { ::windows_core::imp::ConstBuffer::new() diff --git a/crates/tests/standalone/src/b_stringable.rs b/crates/tests/standalone/src/b_stringable.rs index 0d9b45f259..dd8608e84b 100644 --- a/crates/tests/standalone/src/b_stringable.rs +++ b/crates/tests/standalone/src/b_stringable.rs @@ -12,6 +12,11 @@ IStringable_Vtbl, 0x96369f54_8eb6_48f0_abce_c1b211e627c3 ); +::windows_core::imp::interface_hierarchy!( + IStringable, + ::windows_core::IUnknown, + ::windows_core::IInspectable +); impl IStringable { pub fn ToString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -25,11 +30,6 @@ impl IStringable { } } } -::windows_core::imp::interface_hierarchy!( - IStringable, - ::windows_core::IUnknown, - ::windows_core::IInspectable -); impl ::windows_core::RuntimeType for IStringable { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); diff --git a/crates/tests/standalone/src/b_uri.rs b/crates/tests/standalone/src/b_uri.rs index c4e84b97b3..3c00c41196 100644 --- a/crates/tests/standalone/src/b_uri.rs +++ b/crates/tests/standalone/src/b_uri.rs @@ -12,6 +12,14 @@ pub struct IIterable(::windows_core::IUnknown, ::core::marker::PhantomData) where T: ::windows_core::RuntimeType + 'static; +impl ::windows_core::CanInto<::windows_core::IUnknown> + for IIterable +{ +} +impl ::windows_core::CanInto<::windows_core::IInspectable> + for IIterable +{ +} impl IIterable { pub fn First(&self) -> ::windows_core::Result> { let this = self; @@ -25,14 +33,6 @@ impl IIterable { } } } -impl ::windows_core::CanInto<::windows_core::IUnknown> - for IIterable -{ -} -impl ::windows_core::CanInto<::windows_core::IInspectable> - for IIterable -{ -} impl ::windows_core::RuntimeType for IIterable { const SIGNATURE: ::windows_core::imp::ConstBuffer = { ::windows_core::imp::ConstBuffer::new() @@ -80,6 +80,14 @@ where pub struct IIterator(::windows_core::IUnknown, ::core::marker::PhantomData) where T: ::windows_core::RuntimeType + 'static; +impl ::windows_core::CanInto<::windows_core::IUnknown> + for IIterator +{ +} +impl ::windows_core::CanInto<::windows_core::IInspectable> + for IIterator +{ +} impl IIterator { pub fn Current(&self) -> ::windows_core::Result { let this = self; @@ -131,14 +139,6 @@ impl IIterator { } } } -impl ::windows_core::CanInto<::windows_core::IUnknown> - for IIterator -{ -} -impl ::windows_core::CanInto<::windows_core::IInspectable> - for IIterator -{ -} impl ::windows_core::RuntimeType for IIterator { const SIGNATURE: ::windows_core::imp::ConstBuffer = { ::windows_core::imp::ConstBuffer::new() @@ -196,6 +196,11 @@ where IStringable_Vtbl, 0x96369f54_8eb6_48f0_abce_c1b211e627c3 ); +::windows_core::imp::interface_hierarchy!( + IStringable, + ::windows_core::IUnknown, + ::windows_core::IInspectable +); impl IStringable { pub fn ToString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -209,11 +214,6 @@ impl IStringable { } } } -::windows_core::imp::interface_hierarchy!( - IStringable, - ::windows_core::IUnknown, - ::windows_core::IInspectable -); impl ::windows_core::RuntimeType for IStringable { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); @@ -371,6 +371,19 @@ pub struct IUriRuntimeClassWithAbsoluteCanonicalUri_Vtbl { pub struct IVectorView(::windows_core::IUnknown, ::core::marker::PhantomData) where T: ::windows_core::RuntimeType + 'static; +impl ::windows_core::CanInto<::windows_core::IUnknown> + for IVectorView +{ +} +impl ::windows_core::CanInto<::windows_core::IInspectable> + for IVectorView +{ +} +impl ::windows_core::CanInto> + for IVectorView +{ + const QUERY: bool = true; +} impl IVectorView { pub fn GetAt(&self, index: u32) -> ::windows_core::Result { let this = self; @@ -441,19 +454,6 @@ impl IVectorView { } } } -impl ::windows_core::CanInto<::windows_core::IUnknown> - for IVectorView -{ -} -impl ::windows_core::CanInto<::windows_core::IInspectable> - for IVectorView -{ -} -impl ::windows_core::CanInto> - for IVectorView -{ - const QUERY: bool = true; -} impl ::windows_core::RuntimeType for IVectorView { const SIGNATURE: ::windows_core::imp::ConstBuffer = { ::windows_core::imp::ConstBuffer::new() @@ -542,6 +542,11 @@ where IWwwFormUrlDecoderEntry_Vtbl, 0x125e7431_f678_4e8e_b670_20a9b06c512d ); +::windows_core::imp::interface_hierarchy!( + IWwwFormUrlDecoderEntry, + ::windows_core::IUnknown, + ::windows_core::IInspectable +); impl IWwwFormUrlDecoderEntry { pub fn Name(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = self; @@ -566,11 +571,6 @@ impl IWwwFormUrlDecoderEntry { } } } -::windows_core::imp::interface_hierarchy!( - IWwwFormUrlDecoderEntry, - ::windows_core::IUnknown, - ::windows_core::IInspectable -); impl ::windows_core::RuntimeType for IWwwFormUrlDecoderEntry { const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::(); @@ -621,6 +621,12 @@ pub struct IWwwFormUrlDecoderRuntimeClassFactory_Vtbl { #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct Uri(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!( + Uri, + ::windows_core::IUnknown, + ::windows_core::IInspectable +); +::windows_core::imp::required_hierarchy!(Uri, IStringable); impl Uri { pub fn ToString(&self) -> ::windows_core::Result<::windows_core::HSTRING> { let this = &::windows_core::Interface::cast::(self)?; @@ -932,17 +938,21 @@ unsafe impl ::windows_core::Interface for Uri { impl ::windows_core::RuntimeName for Uri { const NAME: &'static str = "Windows.Foundation.Uri"; } -::windows_core::imp::interface_hierarchy!( - Uri, - ::windows_core::IUnknown, - ::windows_core::IInspectable -); -::windows_core::imp::required_hierarchy!(Uri, IStringable); unsafe impl ::core::marker::Send for Uri {} unsafe impl ::core::marker::Sync for Uri {} #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] pub struct WwwFormUrlDecoder(::windows_core::IUnknown); +::windows_core::imp::interface_hierarchy!( + WwwFormUrlDecoder, + ::windows_core::IUnknown, + ::windows_core::IInspectable +); +::windows_core::imp::required_hierarchy!( + WwwFormUrlDecoder, + IIterable, + IVectorView +); impl WwwFormUrlDecoder { pub fn First(&self) -> ::windows_core::Result> { let this = &::windows_core::Interface::cast::>(self)?; @@ -1080,15 +1090,5 @@ impl ::core::iter::IntoIterator for &WwwFormUrlDecoder { VectorViewIterator::new(::windows_core::Interface::cast(self).ok()) } } -::windows_core::imp::interface_hierarchy!( - WwwFormUrlDecoder, - ::windows_core::IUnknown, - ::windows_core::IInspectable -); -::windows_core::imp::required_hierarchy!( - WwwFormUrlDecoder, - IIterable, - IVectorView -); unsafe impl ::core::marker::Send for WwwFormUrlDecoder {} unsafe impl ::core::marker::Sync for WwwFormUrlDecoder {} From 1410e73e45a540d34c1441ecfb0aaa258156ab00 Mon Sep 17 00:00:00 2001 From: Kenny Kerr Date: Fri, 5 Jan 2024 13:48:02 -0600 Subject: [PATCH 08/10] test for 2759 --- crates/tests/implement/tests/vector.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/crates/tests/implement/tests/vector.rs b/crates/tests/implement/tests/vector.rs index bbc3784c91..3a175b1b2e 100644 --- a/crates/tests/implement/tests/vector.rs +++ b/crates/tests/implement/tests/vector.rs @@ -275,3 +275,18 @@ fn test() -> Result<()> { Ok(()) } + +// Test for https://github.com/microsoft/windows-rs/issues/2759 +#[test] +fn test_2759() -> Result<()> { + let v: IVector = Vector::new(vec![]).into(); + let uri = Uri::CreateUri(h!("https://github.com/"))?; + v.Append(&uri)?; + let uri = Uri::CreateUri(h!("https://microsoft.com/"))?; + v.Append(&uri)?; + + assert_eq!(&v.GetAt(0)?.ToString()?, h!("https://github.com/")); + assert_eq!(&v.GetAt(1)?.ToString()?, h!("https://microsoft.com/")); + + Ok(()) +} From 81d3f6aeeccea602536b2d63f4fc93658bec309a Mon Sep 17 00:00:00 2001 From: Kenny Kerr Date: Fri, 5 Jan 2024 20:13:36 -0600 Subject: [PATCH 09/10] panic message --- crates/libs/core/src/interface.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/libs/core/src/interface.rs b/crates/libs/core/src/interface.rs index 9d602669ff..b9b1593d11 100644 --- a/crates/libs/core/src/interface.rs +++ b/crates/libs/core/src/interface.rs @@ -94,7 +94,7 @@ pub unsafe trait Interface: Sized + Clone { if Self::UNKNOWN { (self.assume_vtable::().QueryInterface)(self.as_raw(), iid, interface) } else { - panic!() + panic!("Non-COM interfaces cannot be queried.") } } } From b5e5000f4b0aa2b029626397d42fe8d91463b997 Mon Sep 17 00:00:00 2001 From: Kenny Kerr Date: Fri, 5 Jan 2024 21:23:59 -0600 Subject: [PATCH 10/10] warning (no local repro) --- crates/tests/implement/tests/identity.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/tests/implement/tests/identity.rs b/crates/tests/implement/tests/identity.rs index 90e26b7266..5f8bdb05f0 100644 --- a/crates/tests/implement/tests/identity.rs +++ b/crates/tests/implement/tests/identity.rs @@ -5,14 +5,14 @@ use windows::{core::*, Foundation::*}; static mut COUNTER: isize = 0; #[implement(IStringable, IClosable)] -struct Test(String, i128); +struct Test(String); impl Test { fn new(value: &str) -> Self { unsafe { COUNTER += 1; } - Self(value.to_string(), 0) + Self(value.to_string()) } }